@ckeditor/ckeditor5-format-painter 48.5.0-alpha.3 → 48.5.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x17553b,Plugin as _0x386092}from'@ckeditor/ckeditor5-core';import{RemoveFormatCommand as _0x3d1861}from'@ckeditor/ckeditor5-remove-format';import{SplitButtonView as _0x472b59,UIModel as _0x496958,addListToDropdown as _0x2105d8,createDropdown as _0x5f5ac4}from'@ckeditor/ckeditor5-ui';import{Collection as _0x1c819f,DomEmitterMixin as _0x1006c7,global as _0x1ad09b,uid as _0x5ade59}from'@ckeditor/ckeditor5-utils';import{ClickObserver as _0x138d46}from'@ckeditor/ckeditor5-engine';import{IconPaintRoller as _0x229f41}from'@ckeditor/ckeditor5-icons';const w='copyFormat',g='pasteFormat',h='ck-format-painter-active';var y=class extends _0x17553b{constructor(_0x5b6c49){super(_0x5b6c49),this['value']=void 0x0,this['on']('change:isEnabled',(_0x2f72b6,_0x28a665,_0x4ab94a)=>{_0x4ab94a||this['reset']();}),this['on']('change:value',()=>_0x5b6c49['commands']['get'](g)['refresh']());}execute(){this['value']=this['_getFormattingAttributes']();}reset(){this['value']=void 0x0;}_getFormattingAttributes(){const _0x4665e1=this['editor']['model'],_0x1d704e=_0x4665e1['document']['selection'];return Object['fromEntries'](Array['from'](_0x1d704e['getAttributes']())['filter'](([_0x3da2d5])=>_0x4665e1['schema']['getAttributeProperties'](_0x3da2d5)['isFormatting']));}},p=class extends _0x17553b{constructor(_0x1d72a6){super(_0x1d72a6),this['_removeFormatCommand']=new _0x3d1861(_0x1d72a6);}execute(_0x14b736={}){const _0x5cf9d2=this['editor']['model'],_0x4e29a5=_0x5cf9d2['document']['selection'],_0x1b32a8=Array['from'](_0x4e29a5['getRanges']()),_0x261907=_0x4e29a5['isCollapsed']?[this['_createRangeOnEntireWord'](_0x5cf9d2,_0x4e29a5)]:_0x1b32a8;_0x5cf9d2['change'](_0x47a415=>{_0x47a415['setSelection'](_0x261907),this['_removeFormatCommand']['execute']();for(const _0x4db298 in _0x14b736)for(const _0x5ad72d of _0x5cf9d2['schema']['getValidRanges'](_0x261907,_0x4db298))_0x47a415['setAttribute'](_0x4db298,_0x14b736[_0x4db298],_0x5ad72d);_0x47a415['setSelection'](_0x1b32a8);});}_createRangeOnEntireWord(_0x42d9ab,_0x23968d){const _0x80a947=_0x42d9ab['createSelection'](_0x23968d);_0x42d9ab['modifySelection'](_0x80a947,{'unit':'word','direction':'backward'});const _0x46ae8f=_0x80a947['getFirstPosition']();_0x42d9ab['modifySelection'](_0x80a947,{'unit':'word','direction':'forward'});const _0x8a92d1=_0x80a947['getLastPosition']();return _0x42d9ab['createRange'](_0x46ae8f,_0x8a92d1);}},P=class extends _0x386092{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'FormatPainterEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x8c308e=this['editor'];_0x8c308e['commands']['add'](w,new y(_0x8c308e)),_0x8c308e['commands']['add'](g,new p(_0x8c308e)),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x590a40=[this['editor']];for(const _0xcd7935 of _0x590a40){let _0x839394;for(const _0x28828e in _0xcd7935){const _0x21b91c=_0x28828e,_0xc0f34f=_0xcd7935[_0x21b91c];if('formatPainterLicenseKeyValid'==_0xc0f34f||'formatPainterLicenseKeyInvalid'==_0xc0f34f||'formatPainterLicenseKeyExpired'==_0xc0f34f||'formatPainterLicenseKeyDomainLimit'==_0xc0f34f||'formatPainterLicenseKeyNotAllowed'==_0xc0f34f||'formatPainterLicenseKeyEvaluationLimit'==_0xc0f34f||'formatPainterLicenseKeyUsageLimit'==_0xc0f34f){delete _0xcd7935[_0x21b91c],_0x839394=_0xc0f34f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'formatPainterLicenseKeyInvalid'==_0x839394&&_0xcd7935['_showLicenseError']('invalid'),'formatPainterLicenseKeyExpired'==_0x839394&&_0xcd7935['_showLicenseError']('expired'),'formatPainterLicenseKeyDomainLimit'==_0x839394&&_0xcd7935['_showLicenseError']('domainLimit'),'formatPainterLicenseKeyNotAllowed'==_0x839394&&_0xcd7935['_showLicenseError']('featureNotAllowed','FormatPainter'),'formatPainterLicenseKeyEvaluationLimit'==_0x839394&&_0xcd7935['_showLicenseError']('evaluationLimit'),'formatPainterLicenseKeyUsageLimit'==_0x839394&&_0xcd7935['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function L(_0x26d647,_0x3582f0){const t=_0x26d647['t'];switch(_0x3582f0){case'Paint\x20formatting':return t('Paint\x20formatting');case'Copy\x20text\x20formatting':return t('Copy\x20text\x20formatting');case'Paste\x20text\x20formatting':return t('Paste\x20text\x20formatting');case'Continuous\x20painting':return t('Continuous\x20painting');case'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':return t('Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.');case'Formatting\x20copied.':return t('Formatting\x20copied.');case'Pasted\x20formatting.':return t('Pasted\x20formatting.');case'Painting\x20cancelled.':return t('Painting\x20cancelled.');default:return _0x3582f0;}}const v=/* #__PURE__ -- @preserve */
24
- _0x1006c7(_0x386092);var k=class extends v{static get['pluginName'](){return'FormatPainterUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0xfd8c73=this['editor'];_0xfd8c73['editing']['view']['addObserver'](_0x138d46),_0xfd8c73['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':L(_0xfd8c73['locale'],'Copy\x20text\x20formatting'),'keystroke':'Ctrl+Alt+C'},{'label':L(_0xfd8c73['locale'],'Paste\x20text\x20formatting'),'keystroke':'Ctrl+Alt+V'}]}),_0xfd8c73['ui']['componentFactory']['add']('formatPainter',_0x4b7445=>{const _0x38fa79=_0x5f5ac4(_0x4b7445,_0x472b59),_0x202dda=_0xfd8c73['commands']['get'](w);_0x38fa79['buttonView']['set']({'label':L(_0xfd8c73['locale'],'Paint\x20formatting'),'icon':_0x229f41,'keystroke':'Ctrl+Alt+C','tooltip':!0x0}),_0x38fa79['class']='ck-format-painter-dropdown',_0x202dda&&(_0x38fa79['bind']('isEnabled')['to'](_0x202dda,'isEnabled'),this['listenTo'](_0x202dda,'change:isEnabled',(_0x492673,_0x95b24c,_0x1a815d)=>{_0x1a815d||this['_finishPainting']();}),_0x38fa79['buttonView']['bind']('isOn')['to'](_0x202dda,'value',_0x40c842=>!!_0x40c842),this['listenTo'](_0xfd8c73,'destroy',()=>this['_toggleSpecialCursor'](!0x1)),this['listenTo'](_0x202dda,'change:value',(_0x2d2066,_0x4c0dc9,_0x962458)=>{this['_toggleSpecialCursor'](!!_0x962458);}));const _0x3541eb=new _0x496958({'withText':!0x0,'label':L(_0xfd8c73['locale'],'Continuous\x20painting'),'tooltip':L(_0xfd8c73['locale'],'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.'),'isOn':!0x1,'role':'menuitemcheckbox'});_0x2105d8(_0x38fa79,new _0x1c819f([{'type':'switchbutton','model':_0x3541eb}]),{'role':'menu'});const _0x30e5b6=()=>{this['_copyFormatting'](),this['listenTo'](_0x1ad09b['window']['document'],'mouseup',()=>{this['_pasteFormatting'](),_0x3541eb['isOn']||this['_finishPainting']();});};return this['listenTo'](_0x38fa79,'execute',()=>{_0x3541eb['isOn']=!_0x3541eb['isOn'];}),this['listenTo'](_0x38fa79['buttonView'],'execute',()=>{_0xfd8c73['editing']['view']['focus'](),_0x38fa79['buttonView']['isOn']?this['_finishPainting']():_0x30e5b6();}),_0xfd8c73['keystrokes']['set']('Ctrl+Alt+C',(_0x28fe01,_0x46d4e2)=>{_0x30e5b6(),_0x3541eb['isOn']=!0x0,_0x46d4e2();},{'priority':'high'}),_0xfd8c73['keystrokes']['set']('Ctrl+Alt+V',(_0x3d8581,_0x4a2aea)=>{_0x38fa79['buttonView']['isOn']&&(this['_pasteFormatting'](),_0x3541eb['isOn']||this['_finishPainting'](),_0x4a2aea());},{'priority':'high'}),_0xfd8c73['keystrokes']['set']('Esc',(_0x5210c1,_0xd535fe)=>{_0x38fa79['buttonView']['isOn']&&(_0x3541eb['isOn']=!0x1,this['_finishPainting'](),_0xfd8c73['ui']['ariaLiveAnnouncer']['announce'](L(_0xfd8c73['locale'],'Painting\x20cancelled.')),_0xd535fe());}),_0x38fa79;});}afterInit(){!async function(_0x467c13){const _0x3c860f='un0NFQUoX1evzk3yMEfwl7TxbDrisOZaWtKq52P98dchBVpjS4mYLC6gJIHGRA',_0x5f8cad=0x79410,_0x550d7a={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x591ed1(_0x598290){const _0xb43df6=new window['Promise'](_0x2bebb0=>{_0x598290['once']('ready',_0x2bebb0);}),_0x424883=window['Date']['now'](),_0x320f15=_0x598290['config']['get']('licenseKey');async function _0x2eb3b1(){let _0x55903e,_0x3a1a2a=null,_0x4b1ebb=null;try{return'GPL'==_0x320f15?'NotAllowed':(_0x55903e=_0x4c3bba(),_0x55903e?(_0x55903e['usageEndpoint']&&(_0x4b1ebb=_0x34563e(_0x55903e['usageEndpoint'],_0x55903e['jti'])),await _0x52ef1d()?_0xbfa78d()?_0x31e90b()?'Expired':_0x354883()?('evaluation'==_0x55903e['licenseType']&&(_0x3a1a2a=_0x3a3777('EvaluationLimit')),await _0x25e54c()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x31e90b(){const _0x1065bb=['evaluation','trial']['includes'](_0x55903e['licenseType'])?_0x424883/0x3e8:0xe10*_0x5f8cad;return _0x55903e['exp']<_0x1065bb;}function _0xbfa78d(){const _0x1a2dc9=_0x55903e['features'];return!!_0x1a2dc9&&(!!_0x1a2dc9['includes']('*')||(!!_0x1a2dc9['includes']('FP')||(!!_0x1a2dc9['includes']('PP')||!(!_0x1a2dc9['includes']('TRILIUM')||!_0x3ddd89()))));}function _0x354883(){const _0x4689e3=_0x55903e['licensedHosts'];if(!_0x4689e3||0x0==_0x4689e3['length'])return!0x0;const {hostname:_0x46c626}=new URL(window['location']['href']);if(_0x4689e3['includes'](_0x46c626))return!0x0;const _0xf92749=_0x46c626['split']('.');return _0x4689e3['filter'](_0x380e11=>_0x380e11['includes']('*'))['map'](_0x34fb9a=>_0x34fb9a['split']('.'))['filter'](_0x13192b=>_0x13192b['length']<=_0xf92749['length'])['map'](_0x1ca15a=>Array(_0xf92749['length']-_0x1ca15a['length'])['fill']('*'===_0x1ca15a[0x0]?'*':'')['concat'](_0x1ca15a))['some'](_0xa5f776=>_0xf92749['every']((_0x5b14f9,_0x1e6545)=>_0xa5f776[_0x1e6545]===_0x5b14f9||'*'===_0xa5f776[_0x1e6545]));}function _0x25e54c(){return _0x3a1a2a&&_0x4b1ebb?new window['Promise']((_0x153708,_0x570a75)=>{_0x3a1a2a['then'](_0x153708,_0x570a75),_0x4b1ebb['then'](_0x55cd74=>{'Valid'!=_0x55cd74&&_0x153708(_0x55cd74);},_0x570a75);}):_0x3a1a2a||_0x4b1ebb||'Valid';}}function _0x34563e(_0x3736f8,_0x2bf464){return new window['Promise'](_0x38bde1=>{if(_0x2006fd())return _0x38bde1('Valid');_0x2da0fb(),_0x598290['decorate']('_sendUsageRequest');let _0x50f891=!0x1;const _0x28ee6c=_0x5ade59();function _0x28f179(_0x4561a3){return!!_0x4561a3&&('object'==typeof _0x4561a3||'function'==typeof _0x4561a3)&&'function'==typeof _0x4561a3['then']&&'function'==typeof _0x4561a3['catch'];}function _0x5f4b02(_0x3b458e){_0x4c9d90(_0x3b458e)['then'](_0x122c7c=>_0x122c7c&&'ok'==_0x122c7c['status']?_0x3fb993(_0x5106f9(_0x28ee6c+_0x2bf464))!=_0x122c7c['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x39bf87=>(_0x21bb0c(),_0x39bf87),()=>{const _0x37fea0=_0x2a0533();return null==_0x37fea0?(_0x21bb0c(),'Valid'):_0x424883-_0x37fea0>0x240c8400?'UsageLimit':'Valid';})['then'](_0x38bde1)['catch'](()=>{_0x38bde1('UsageLimit');});const _0x29c945=0x36ee80;function _0x21bb0c(){const _0x29b827='llct-'+_0x3fb993(_0x5106f9(_0x3736f8)),_0x1a89d0=_0x2cd339(_0x3fb993(window['Math']['ceil'](_0x424883/_0x29c945)));window['localStorage']['setItem'](_0x29b827,_0x1a89d0);}function _0x2a0533(){const _0x2f910f='llct-'+_0x3fb993(_0x5106f9(_0x3736f8)),_0xfff36b=window['localStorage']['getItem'](_0x2f910f);return _0xfff36b?window['parseInt'](_0x2cd339(_0xfff36b),0x10)*_0x29c945:null;}function _0x4c9d90(_0x2d8ace){return new window['Promise']((_0x4b2803,_0x1a021f)=>{_0x2d8ace['then'](_0x4b2803,_0x1a021f),window['setTimeout'](_0x1a021f,0x1d4c0);});}}_0x598290['on']('_sendUsageRequest',(_0x3c80eb,_0x4d3c3c)=>{if(_0x4d3c3c[0x0]!=_0x3736f8)return _0x38bde1('UsageLimit');_0x4d3c3c[0x1]={..._0x4d3c3c[0x1],'requestId':_0x28ee6c};},{'priority':'high'}),_0x598290['on']('_sendUsageRequest',_0x1c8826=>{_0x28f179(_0x1c8826['return'])&&(_0x50f891=!0x0,_0x5f4b02(_0x1c8826['return']));},{'priority':'low'}),_0xb43df6['then'](()=>{_0x50f891||_0x38bde1('UsageLimit');});});function _0x2006fd(){return'auto'==_0x598290['editing']['view']['_overlayModeHint'];}function _0x2da0fb(){_0x598290['editing']['view']['_overlayModeHint']='auto';}}function _0x3a3777(_0x1a308c){const _0x91b5fb=[new window['Promise'](_0x187ad4=>setTimeout(_0x187ad4,0x93ecc)),_0xb43df6['then'](()=>new window['Promise'](_0x1a36d2=>{let _0x6be1b2=0x0;_0x598290['model']['on']('applyOperation',(_0x1eaef2,_0x14308c)=>{_0x14308c[0x0]['isDocumentOperation']&&_0x6be1b2++,0x5e8==_0x6be1b2&&(_0x1a36d2(),_0x1eaef2['off']());});}))];return window['Promise']['race'](_0x91b5fb)['then'](()=>_0x1a308c);}async function _0x31b805(){await _0xb43df6,_0x598290['model']['change']=_0x1efd6c,_0x598290['model']['enqueueChange']=_0x1efd6c,_0x598290['enableReadOnlyMode']('model');}function _0x3ddd89(){return window['glob']&&window['glob']['triliumVersion'];}function _0x5a95ac(_0x268394){const _0x32dba1=_0x2a3172();_0x598290[_0x32dba1]='formatPainterLicenseKey'+_0x268394,'Valid'!=_0x268394&&_0x31b805();}function _0x2a3172(){const _0x3fa88e=window['String'](window['performance']['now']())['replace']('.','');let _0x2bfb8a='u';for(let _0x3231a5=0x0;_0x3231a5<_0x3fa88e['length'];_0x3231a5+=0x2){let _0x3067da=window['parseInt'](_0x3fa88e['substring'](_0x3231a5,_0x3231a5+0x2));_0x3067da>=0x3e&&(_0x3067da-=0x3e),_0x2bfb8a+=_0x3c860f[_0x3067da];}return _0x2bfb8a;}function _0x4c3bba(){const _0x3bb013=_0x320f15['split']('.');if(0x3!=_0x3bb013['length'])return null;return _0x37197e(_0x3bb013[0x1]);function _0x37197e(_0x7a68b8){const _0x2b17be=_0x38cfb8(_0x7a68b8);return _0x2b17be&&_0x2c6154()?_0x2b17be:null;function _0x2c6154(){const _0x5ce3dd=_0x2b17be['jti'],_0x5d0dc4=window['parseInt'](_0x5ce3dd['substring'](_0x5ce3dd['length']-0x8),0x10),_0x4d0194={..._0x2b17be,'jti':_0x5ce3dd['substring'](0x0,_0x5ce3dd['length']-0x8)};return delete _0x4d0194['vc'],_0x5106f9(_0x4d0194)==_0x5d0dc4;}}}async function _0x52ef1d(){let _0x56283d=!0x0;try{const [_0x5c262a,_0x36f14d,_0x22a88f]=_0x320f15['split']('.');return _0x569890(_0x5c262a),await _0x5efe01(_0x5c262a,_0x36f14d,_0x22a88f),_0x56283d;}catch{return!0x1;}function _0x569890(_0x216931){const _0x3dd6e6=_0x38cfb8(_0x216931);_0x3dd6e6&&'ES256'==_0x3dd6e6['alg']||(_0x56283d=!0x1);}async function _0x5efe01(_0x32806b,_0x58287a,_0x50fd7b){const _0x52ff05=window['Uint8Array']['from'](_0x185a66(_0x50fd7b),_0x43de2e=>_0x43de2e['charCodeAt'](0x0)),_0x1e477a=new window['TextEncoder']()['encode'](_0x32806b+'.'+_0x58287a),_0x550b1a=window['crypto']['subtle'];if(!_0x550b1a)return;const _0x535a95=await _0x550b1a['importKey']('jwk',_0x550d7a,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x550b1a['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x535a95,_0x52ff05,_0x1e477a)||(_0x56283d=!0x1);}}function _0x38cfb8(_0x26ec77){return _0x26ec77['startsWith']('ey')?JSON['parse'](_0x185a66(_0x26ec77)):null;}function _0x185a66(_0x28a71f){return window['atob'](_0x28a71f['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x5106f9(_0x2d61b1){let _0xf37b3d=0x1505;function _0x4616cf(_0x3e158a){for(let _0x582cc1=0x0;_0x582cc1<_0x3e158a['length'];_0x582cc1++){const _0x4cab87=_0x3e158a['charCodeAt'](_0x582cc1);_0xf37b3d=(_0xf37b3d<<0x5)+_0xf37b3d+_0x4cab87,_0xf37b3d&=_0xf37b3d;}}function _0x53f4a0(_0x17080f){Array['isArray'](_0x17080f)?_0x17080f['forEach'](_0x53f4a0):_0x17080f&&'object'==typeof _0x17080f?Object['entries'](_0x17080f)['sort']()['forEach'](([_0x33daaf,_0x5ed7d1])=>{_0x4616cf(_0x33daaf),_0x53f4a0(_0x5ed7d1);}):_0x4616cf(window['String'](_0x17080f));}return _0x53f4a0(_0x2d61b1),_0xf37b3d>>>0x0;}function _0x3fb993(_0x2a62f9){return _0x2a62f9['toString'](0x10)['padStart'](0x8,'0');}function _0x2cd339(_0x3a06c5){return _0x3a06c5['split']('')['reverse']()['join']('');}function _0x1efd6c(){}_0x5a95ac(await _0x2eb3b1());}_0x591ed1(_0x467c13['editor']);}(this);}_toggleSpecialCursor(_0x395f51){this['editor']['editing']['view']['change'](_0x4cc971=>{for(const _0x4611d0 of this['editor']['editing']['view']['document']['roots'])_0x395f51?_0x4cc971['addClass'](h,_0x4611d0):_0x4cc971['removeClass'](h,_0x4611d0);});}_copyFormatting(){const {editor:_0x43b812}=this;_0x43b812['execute'](w),_0x43b812['ui']['ariaLiveAnnouncer']['announce'](L(_0x43b812['locale'],'Formatting\x20copied.'));}_pasteFormatting(){const {editor:_0x706fe5}=this,_0x465937=_0x706fe5['commands']['get'](w)['value'];_0x706fe5['execute'](g,_0x465937),_0x706fe5['ui']['ariaLiveAnnouncer']['announce'](L(_0x706fe5['locale'],'Pasted\x20formatting.'));}_finishPainting(){this['editor']['commands']['get'](w)['reset'](),this['stopListening'](_0x1ad09b['window']['document'],'mouseup');}},x=class extends _0x386092{static get requires(){return[P,k];}static get['pluginName'](){return'FormatPainter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{y as CopyFormatCommand,x as FormatPainter,P as FormatPainterEditing,k as FormatPainterUI,p as PasteFormatCommand};
23
+ import{Command as _0x269e7f,Plugin as _0x2b80dc}from'@ckeditor/ckeditor5-core';import{RemoveFormatCommand as _0x35c01a}from'@ckeditor/ckeditor5-remove-format';import{SplitButtonView as _0x3fb5ca,UIModel as _0x41070b,addListToDropdown as _0x5e84db,createDropdown as _0x35843e}from'@ckeditor/ckeditor5-ui';import{Collection as _0x2e9ec7,DomEmitterMixin as _0x1ddc8e,global as _0x5bed2c,uid as _0x1e6a3e}from'@ckeditor/ckeditor5-utils';import{ClickObserver as _0x10d55e}from'@ckeditor/ckeditor5-engine';import{IconPaintRoller as _0x11f764}from'@ckeditor/ckeditor5-icons';const w='copyFormat',g='pasteFormat',h='ck-format-painter-active';var y=class extends _0x269e7f{constructor(_0x5575ca){super(_0x5575ca),this['value']=void 0x0,this['on']('change:isEnabled',(_0x4ffc07,_0x1e448e,_0x403579)=>{_0x403579||this['reset']();}),this['on']('change:value',()=>_0x5575ca['commands']['get'](g)['refresh']());}execute(){this['value']=this['_getFormattingAttributes']();}reset(){this['value']=void 0x0;}_getFormattingAttributes(){const _0x217979=this['editor']['model'],_0x58a285=_0x217979['document']['selection'];return Object['fromEntries'](Array['from'](_0x58a285['getAttributes']())['filter'](([_0x10bad7])=>_0x217979['schema']['getAttributeProperties'](_0x10bad7)['isFormatting']));}},p=class extends _0x269e7f{constructor(_0x459338){super(_0x459338),this['_removeFormatCommand']=new _0x35c01a(_0x459338);}execute(_0x4657b0={}){const _0x50e903=this['editor']['model'],_0x1c7dae=_0x50e903['document']['selection'],_0x21155b=Array['from'](_0x1c7dae['getRanges']()),_0x4ade88=_0x1c7dae['isCollapsed']?[this['_createRangeOnEntireWord'](_0x50e903,_0x1c7dae)]:_0x21155b;_0x50e903['change'](_0x28e8b0=>{_0x28e8b0['setSelection'](_0x4ade88),this['_removeFormatCommand']['execute']();for(const _0x8fe8e9 in _0x4657b0)for(const _0x2f12e3 of _0x50e903['schema']['getValidRanges'](_0x4ade88,_0x8fe8e9))_0x28e8b0['setAttribute'](_0x8fe8e9,_0x4657b0[_0x8fe8e9],_0x2f12e3);_0x28e8b0['setSelection'](_0x21155b);});}_createRangeOnEntireWord(_0x281c6c,_0x824d9a){const _0x18944b=_0x281c6c['createSelection'](_0x824d9a);_0x281c6c['modifySelection'](_0x18944b,{'unit':'word','direction':'backward'});const _0x1dcd82=_0x18944b['getFirstPosition']();_0x281c6c['modifySelection'](_0x18944b,{'unit':'word','direction':'forward'});const _0x5d8349=_0x18944b['getLastPosition']();return _0x281c6c['createRange'](_0x1dcd82,_0x5d8349);}},P=class extends _0x2b80dc{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'FormatPainterEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0xd105ce=this['editor'];_0xd105ce['commands']['add'](w,new y(_0xd105ce)),_0xd105ce['commands']['add'](g,new p(_0xd105ce)),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x3bbacc=[this['editor']];for(const _0x28755f of _0x3bbacc){let _0x429840;for(const _0x187e25 in _0x28755f){const _0x18a81f=_0x187e25,_0x5557aa=_0x28755f[_0x18a81f];if('formatPainterLicenseKeyValid'==_0x5557aa||'formatPainterLicenseKeyInvalid'==_0x5557aa||'formatPainterLicenseKeyExpired'==_0x5557aa||'formatPainterLicenseKeyDomainLimit'==_0x5557aa||'formatPainterLicenseKeyNotAllowed'==_0x5557aa||'formatPainterLicenseKeyEvaluationLimit'==_0x5557aa||'formatPainterLicenseKeyUsageLimit'==_0x5557aa){delete _0x28755f[_0x18a81f],_0x429840=_0x5557aa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'formatPainterLicenseKeyInvalid'==_0x429840&&_0x28755f['_showLicenseError']('invalid'),'formatPainterLicenseKeyExpired'==_0x429840&&_0x28755f['_showLicenseError']('expired'),'formatPainterLicenseKeyDomainLimit'==_0x429840&&_0x28755f['_showLicenseError']('domainLimit'),'formatPainterLicenseKeyNotAllowed'==_0x429840&&_0x28755f['_showLicenseError']('featureNotAllowed','FormatPainter'),'formatPainterLicenseKeyEvaluationLimit'==_0x429840&&_0x28755f['_showLicenseError']('evaluationLimit'),'formatPainterLicenseKeyUsageLimit'==_0x429840&&_0x28755f['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function L(_0xc7cb41,_0x1297b0){const t=_0xc7cb41['t'];switch(_0x1297b0){case'Paint\x20formatting':return t('Paint\x20formatting');case'Copy\x20text\x20formatting':return t('Copy\x20text\x20formatting');case'Paste\x20text\x20formatting':return t('Paste\x20text\x20formatting');case'Continuous\x20painting':return t('Continuous\x20painting');case'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':return t('Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.');case'Formatting\x20copied.':return t('Formatting\x20copied.');case'Pasted\x20formatting.':return t('Pasted\x20formatting.');case'Painting\x20cancelled.':return t('Painting\x20cancelled.');default:return _0x1297b0;}}const v=/* #__PURE__ -- @preserve */
24
+ _0x1ddc8e(_0x2b80dc);var k=class extends v{static get['pluginName'](){return'FormatPainterUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x19eeae=this['editor'];_0x19eeae['editing']['view']['addObserver'](_0x10d55e),_0x19eeae['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':L(_0x19eeae['locale'],'Copy\x20text\x20formatting'),'keystroke':'Ctrl+Alt+C'},{'label':L(_0x19eeae['locale'],'Paste\x20text\x20formatting'),'keystroke':'Ctrl+Alt+V'}]}),_0x19eeae['ui']['componentFactory']['add']('formatPainter',_0x3ed039=>{const _0x3a2ec9=_0x35843e(_0x3ed039,_0x3fb5ca),_0x2d44b8=_0x19eeae['commands']['get'](w);_0x3a2ec9['buttonView']['set']({'label':L(_0x19eeae['locale'],'Paint\x20formatting'),'icon':_0x11f764,'keystroke':'Ctrl+Alt+C','tooltip':!0x0}),_0x3a2ec9['class']='ck-format-painter-dropdown',_0x2d44b8&&(_0x3a2ec9['bind']('isEnabled')['to'](_0x2d44b8,'isEnabled'),this['listenTo'](_0x2d44b8,'change:isEnabled',(_0x27e7a5,_0x4c69b8,_0x454c35)=>{_0x454c35||this['_finishPainting']();}),_0x3a2ec9['buttonView']['bind']('isOn')['to'](_0x2d44b8,'value',_0x5d9cb3=>!!_0x5d9cb3),this['listenTo'](_0x19eeae,'destroy',()=>this['_toggleSpecialCursor'](!0x1)),this['listenTo'](_0x2d44b8,'change:value',(_0x763c95,_0x252b56,_0x857acd)=>{this['_toggleSpecialCursor'](!!_0x857acd);}));const _0x283de3=new _0x41070b({'withText':!0x0,'label':L(_0x19eeae['locale'],'Continuous\x20painting'),'tooltip':L(_0x19eeae['locale'],'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.'),'isOn':!0x1,'role':'menuitemcheckbox'});_0x5e84db(_0x3a2ec9,new _0x2e9ec7([{'type':'switchbutton','model':_0x283de3}]),{'role':'menu'});const _0x43d641=()=>{this['_copyFormatting'](),this['listenTo'](_0x5bed2c['window']['document'],'mouseup',()=>{this['_pasteFormatting'](),_0x283de3['isOn']||this['_finishPainting']();});};return this['listenTo'](_0x3a2ec9,'execute',()=>{_0x283de3['isOn']=!_0x283de3['isOn'];}),this['listenTo'](_0x3a2ec9['buttonView'],'execute',()=>{_0x19eeae['editing']['view']['focus'](),_0x3a2ec9['buttonView']['isOn']?this['_finishPainting']():_0x43d641();}),_0x19eeae['keystrokes']['set']('Ctrl+Alt+C',(_0x5cf7e1,_0x5e145e)=>{_0x43d641(),_0x283de3['isOn']=!0x0,_0x5e145e();},{'priority':'high'}),_0x19eeae['keystrokes']['set']('Ctrl+Alt+V',(_0x191375,_0x5586c9)=>{_0x3a2ec9['buttonView']['isOn']&&(this['_pasteFormatting'](),_0x283de3['isOn']||this['_finishPainting'](),_0x5586c9());},{'priority':'high'}),_0x19eeae['keystrokes']['set']('Esc',(_0x4f749d,_0x219087)=>{_0x3a2ec9['buttonView']['isOn']&&(_0x283de3['isOn']=!0x1,this['_finishPainting'](),_0x19eeae['ui']['ariaLiveAnnouncer']['announce'](L(_0x19eeae['locale'],'Painting\x20cancelled.')),_0x219087());}),_0x3a2ec9;});}afterInit(){!async function(_0x1d0847){const _0x5c2140='un0NFQUoX1evzk3yMEfwl7TxbDrisOZaWtKq52P98dchBVpjS4mYLC6gJIHGRA',_0x159e31=0x79428,_0x3d4718={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x17707c(_0x293d5d){const _0xbd56b3=new window['Promise'](_0x3e0dcf=>{_0x293d5d['once']('ready',_0x3e0dcf);}),_0x19263a=window['Date']['now'](),_0x5346d8=_0x293d5d['config']['get']('licenseKey');async function _0x55d9ef(){let _0x14a40b,_0x3a84f9=null,_0x17bac7=null;try{return'GPL'==_0x5346d8?'NotAllowed':(_0x14a40b=_0x538f31(),_0x14a40b?(_0x14a40b['usageEndpoint']&&(_0x17bac7=_0x2f6c48(_0x14a40b['usageEndpoint'],_0x14a40b['jti'])),await _0x39dd81()?_0x3cbe77()?_0x310651()?'Expired':_0x570133()?('evaluation'==_0x14a40b['licenseType']&&(_0x3a84f9=_0x4f1511('EvaluationLimit')),await _0x2bbe68()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x310651(){const _0x497cbf=['evaluation','trial']['includes'](_0x14a40b['licenseType'])?_0x19263a/0x3e8:0xe10*_0x159e31;return _0x14a40b['exp']<_0x497cbf;}function _0x3cbe77(){const _0x2150e7=_0x14a40b['features'];return!!_0x2150e7&&(!!_0x2150e7['includes']('*')||(!!_0x2150e7['includes']('FP')||(!!_0x2150e7['includes']('PP')||!(!_0x2150e7['includes']('TRILIUM')||!_0x5ee485()))));}function _0x570133(){const _0x5d0477=_0x14a40b['licensedHosts'];if(!_0x5d0477||0x0==_0x5d0477['length'])return!0x0;const {hostname:_0x2e4736}=new URL(window['location']['href']);if(_0x5d0477['includes'](_0x2e4736))return!0x0;const _0x5b7529=_0x2e4736['split']('.');return _0x5d0477['filter'](_0x46fb87=>_0x46fb87['includes']('*'))['map'](_0x307116=>_0x307116['split']('.'))['filter'](_0x1fcddf=>_0x1fcddf['length']<=_0x5b7529['length'])['map'](_0x51bee2=>Array(_0x5b7529['length']-_0x51bee2['length'])['fill']('*'===_0x51bee2[0x0]?'*':'')['concat'](_0x51bee2))['some'](_0x28c756=>_0x5b7529['every']((_0x2dcd14,_0x319cf6)=>_0x28c756[_0x319cf6]===_0x2dcd14||'*'===_0x28c756[_0x319cf6]));}function _0x2bbe68(){return _0x3a84f9&&_0x17bac7?new window['Promise']((_0x2f34b1,_0x28f883)=>{_0x3a84f9['then'](_0x2f34b1,_0x28f883),_0x17bac7['then'](_0x54d164=>{'Valid'!=_0x54d164&&_0x2f34b1(_0x54d164);},_0x28f883);}):_0x3a84f9||_0x17bac7||'Valid';}}function _0x2f6c48(_0x15e9aa,_0x550570){return new window['Promise'](_0x3c6e04=>{if(_0x2c538a())return _0x3c6e04('Valid');_0xaa79ba(),_0x293d5d['decorate']('_sendUsageRequest');let _0x1a5442=!0x1;const _0x318ae0=_0x1e6a3e();function _0x3c6afb(_0x2d8a52){return!!_0x2d8a52&&('object'==typeof _0x2d8a52||'function'==typeof _0x2d8a52)&&'function'==typeof _0x2d8a52['then']&&'function'==typeof _0x2d8a52['catch'];}function _0x28f619(_0x4e5a00){_0xabe95e(_0x4e5a00)['then'](_0x27555d=>_0x27555d&&'ok'==_0x27555d['status']?_0x23036d(_0x174600(_0x318ae0+_0x550570))!=_0x27555d['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x109441=>(_0x5d5173(),_0x109441),()=>{const _0x4dbf6d=_0x29a82b();return null==_0x4dbf6d?(_0x5d5173(),'Valid'):_0x19263a-_0x4dbf6d>0x240c8400?'UsageLimit':'Valid';})['then'](_0x3c6e04)['catch'](()=>{_0x3c6e04('UsageLimit');});const _0x5e2925=0x36ee80;function _0x5d5173(){const _0x4ef360='llct-'+_0x23036d(_0x174600(_0x15e9aa)),_0xfeb63f=_0xf5ad3c(_0x23036d(window['Math']['ceil'](_0x19263a/_0x5e2925)));window['localStorage']['setItem'](_0x4ef360,_0xfeb63f);}function _0x29a82b(){const _0x3b8f45='llct-'+_0x23036d(_0x174600(_0x15e9aa)),_0x4afb5d=window['localStorage']['getItem'](_0x3b8f45);return _0x4afb5d?window['parseInt'](_0xf5ad3c(_0x4afb5d),0x10)*_0x5e2925:null;}function _0xabe95e(_0x3ce109){return new window['Promise']((_0x4efbdb,_0x415ffc)=>{_0x3ce109['then'](_0x4efbdb,_0x415ffc),window['setTimeout'](_0x415ffc,0x1d4c0);});}}_0x293d5d['on']('_sendUsageRequest',(_0x2470c5,_0x369dc7)=>{if(_0x369dc7[0x0]!=_0x15e9aa)return _0x3c6e04('UsageLimit');_0x369dc7[0x1]={..._0x369dc7[0x1],'requestId':_0x318ae0};},{'priority':'high'}),_0x293d5d['on']('_sendUsageRequest',_0xd0974f=>{_0x3c6afb(_0xd0974f['return'])&&(_0x1a5442=!0x0,_0x28f619(_0xd0974f['return']));},{'priority':'low'}),_0xbd56b3['then'](()=>{_0x1a5442||_0x3c6e04('UsageLimit');});});function _0x2c538a(){return'auto'==_0x293d5d['editing']['view']['_overlayModeHint'];}function _0xaa79ba(){_0x293d5d['editing']['view']['_overlayModeHint']='auto';}}function _0x4f1511(_0x1f14ca){const _0x32b8e3=[new window['Promise'](_0x226dda=>setTimeout(_0x226dda,0x93ecc)),_0xbd56b3['then'](()=>new window['Promise'](_0x5b12a2=>{let _0x268483=0x0;_0x293d5d['model']['on']('applyOperation',(_0x3e7707,_0x44e4bc)=>{_0x44e4bc[0x0]['isDocumentOperation']&&_0x268483++,0x5e8==_0x268483&&(_0x5b12a2(),_0x3e7707['off']());});}))];return window['Promise']['race'](_0x32b8e3)['then'](()=>_0x1f14ca);}async function _0x1c0d0b(){await _0xbd56b3,_0x293d5d['model']['change']=_0x3541ad,_0x293d5d['model']['enqueueChange']=_0x3541ad,_0x293d5d['enableReadOnlyMode']('model');}function _0x5ee485(){return window['glob']&&window['glob']['triliumVersion'];}function _0x95030d(_0x1dd2d7){const _0x445863=_0x1cd2ae();_0x293d5d[_0x445863]='formatPainterLicenseKey'+_0x1dd2d7,'Valid'!=_0x1dd2d7&&_0x1c0d0b();}function _0x1cd2ae(){const _0x5e97da=window['String'](window['performance']['now']())['replace']('.','');let _0x22337e='u';for(let _0x1b6df2=0x0;_0x1b6df2<_0x5e97da['length'];_0x1b6df2+=0x2){let _0x10c85b=window['parseInt'](_0x5e97da['substring'](_0x1b6df2,_0x1b6df2+0x2));_0x10c85b>=0x3e&&(_0x10c85b-=0x3e),_0x22337e+=_0x5c2140[_0x10c85b];}return _0x22337e;}function _0x538f31(){const _0x392bf8=_0x5346d8['split']('.');if(0x3!=_0x392bf8['length'])return null;return _0x288395(_0x392bf8[0x1]);function _0x288395(_0x23b276){const _0x364a60=_0x3497d1(_0x23b276);return _0x364a60&&_0x2a845d()?_0x364a60:null;function _0x2a845d(){const _0x372f33=_0x364a60['jti'],_0x505f80=window['parseInt'](_0x372f33['substring'](_0x372f33['length']-0x8),0x10),_0x335667={..._0x364a60,'jti':_0x372f33['substring'](0x0,_0x372f33['length']-0x8)};return delete _0x335667['vc'],_0x174600(_0x335667)==_0x505f80;}}}async function _0x39dd81(){let _0x4ef29a=!0x0;try{const [_0xe2fb16,_0x2d9c7a,_0x324171]=_0x5346d8['split']('.');return _0x17df63(_0xe2fb16),await _0x1a98c9(_0xe2fb16,_0x2d9c7a,_0x324171),_0x4ef29a;}catch{return!0x1;}function _0x17df63(_0x17ec5b){const _0x48bf7f=_0x3497d1(_0x17ec5b);_0x48bf7f&&'ES256'==_0x48bf7f['alg']||(_0x4ef29a=!0x1);}async function _0x1a98c9(_0x2e4844,_0x399334,_0x2f9aa6){const _0x2c8e75=window['Uint8Array']['from'](_0x529b45(_0x2f9aa6),_0x4cac31=>_0x4cac31['charCodeAt'](0x0)),_0x5521a3=new window['TextEncoder']()['encode'](_0x2e4844+'.'+_0x399334),_0x2c0c26=window['crypto']['subtle'];if(!_0x2c0c26)return;const _0x14ad22=await _0x2c0c26['importKey']('jwk',_0x3d4718,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x2c0c26['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x14ad22,_0x2c8e75,_0x5521a3)||(_0x4ef29a=!0x1);}}function _0x3497d1(_0x3a23fd){return _0x3a23fd['startsWith']('ey')?JSON['parse'](_0x529b45(_0x3a23fd)):null;}function _0x529b45(_0x533431){return window['atob'](_0x533431['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x174600(_0xfb406){let _0x3f0288=0x1505;function _0x36cc9d(_0xdf7585){for(let _0x5dc15f=0x0;_0x5dc15f<_0xdf7585['length'];_0x5dc15f++){const _0xd7bd07=_0xdf7585['charCodeAt'](_0x5dc15f);_0x3f0288=(_0x3f0288<<0x5)+_0x3f0288+_0xd7bd07,_0x3f0288&=_0x3f0288;}}function _0x9cc4da(_0x775698){Array['isArray'](_0x775698)?_0x775698['forEach'](_0x9cc4da):_0x775698&&'object'==typeof _0x775698?Object['entries'](_0x775698)['sort']()['forEach'](([_0x43dfc8,_0x1819fc])=>{_0x36cc9d(_0x43dfc8),_0x9cc4da(_0x1819fc);}):_0x36cc9d(window['String'](_0x775698));}return _0x9cc4da(_0xfb406),_0x3f0288>>>0x0;}function _0x23036d(_0x444f5f){return _0x444f5f['toString'](0x10)['padStart'](0x8,'0');}function _0xf5ad3c(_0x45788d){return _0x45788d['split']('')['reverse']()['join']('');}function _0x3541ad(){}_0x95030d(await _0x55d9ef());}_0x17707c(_0x1d0847['editor']);}(this);}_toggleSpecialCursor(_0x1b9d6a){this['editor']['editing']['view']['change'](_0xa295d7=>{for(const _0xde3812 of this['editor']['editing']['view']['document']['roots'])_0x1b9d6a?_0xa295d7['addClass'](h,_0xde3812):_0xa295d7['removeClass'](h,_0xde3812);});}_copyFormatting(){const {editor:_0xf1f8e9}=this;_0xf1f8e9['execute'](w),_0xf1f8e9['ui']['ariaLiveAnnouncer']['announce'](L(_0xf1f8e9['locale'],'Formatting\x20copied.'));}_pasteFormatting(){const {editor:_0xde8e3e}=this,_0x505a45=_0xde8e3e['commands']['get'](w)['value'];_0xde8e3e['execute'](g,_0x505a45),_0xde8e3e['ui']['ariaLiveAnnouncer']['announce'](L(_0xde8e3e['locale'],'Pasted\x20formatting.'));}_finishPainting(){this['editor']['commands']['get'](w)['reset'](),this['stopListening'](_0x5bed2c['window']['document'],'mouseup');}},x=class extends _0x2b80dc{static get requires(){return[P,k];}static get['pluginName'](){return'FormatPainter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{y as CopyFormatCommand,x as FormatPainter,P as FormatPainterEditing,k as FormatPainterUI,p as PasteFormatCommand};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-format-painter",
3
- "version": "48.5.0-alpha.3",
3
+ "version": "48.5.0-alpha.4",
4
4
  "description": "Format painter feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -21,12 +21,12 @@
21
21
  "./package.json": "./package.json"
22
22
  },
23
23
  "dependencies": {
24
- "@ckeditor/ckeditor5-core": "48.5.0-alpha.3",
25
- "@ckeditor/ckeditor5-engine": "48.5.0-alpha.3",
26
- "@ckeditor/ckeditor5-icons": "48.5.0-alpha.3",
27
- "@ckeditor/ckeditor5-remove-format": "48.5.0-alpha.3",
28
- "@ckeditor/ckeditor5-ui": "48.5.0-alpha.3",
29
- "@ckeditor/ckeditor5-utils": "48.5.0-alpha.3"
24
+ "@ckeditor/ckeditor5-core": "48.5.0-alpha.4",
25
+ "@ckeditor/ckeditor5-engine": "48.5.0-alpha.4",
26
+ "@ckeditor/ckeditor5-icons": "48.5.0-alpha.4",
27
+ "@ckeditor/ckeditor5-remove-format": "48.5.0-alpha.4",
28
+ "@ckeditor/ckeditor5-ui": "48.5.0-alpha.4",
29
+ "@ckeditor/ckeditor5-utils": "48.5.0-alpha.4"
30
30
  },
31
31
  "files": [
32
32
  "dist",