UNPKG

@uploadcare/blocks

Version:

Building blocks for Uploadcare products integration

24 lines (19 loc) 459 B
// @ts-nocheck const SourceBtnClass = window.customElements.get('lr-source-btn'); class CustomSourceBtn extends SourceBtnClass { initTypes() { super.initTypes(); this.registerType({ ...this.getType('local'), icon: 'facebook', textKey: 'custom', }); this.registerType({ type: 'custom', activity: 'url', icon: 'facebook', textKey: 'custom', }); } } CustomSourceBtn.reg('custom-source-btn');