@ckeditor/ckeditor5-slash-command 48.3.0-alpha.4 → 48.3.0-alpha.5

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 +1 -1
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x821801}from'@ckeditor/ckeditor5-core';import{Mention as _0x131817}from'@ckeditor/ckeditor5-mention';import{CKEditorError as _0x5d8a7d,uid as _0x42f15f}from'@ckeditor/ckeditor5-utils';import{IconBrowseFiles as _0xa935c2,IconBulletedList as _0x14a54e,IconCodeBlock as _0xfb0adf,IconEmoji as _0x12251e,IconFootnote as _0x409cfe,IconHeading1 as _0x4d7761,IconHeading2 as _0x2c0d50,IconHeading3 as _0x221c32,IconHeading4 as _0x3d61cb,IconHeading5 as _0x58290d,IconHeading6 as _0x48d4aa,IconHorizontalLine as _0x1cc15c,IconHtml as _0x257afd,IconIndent as _0x1be1b7,IconNumberedList as _0x2db1ee,IconOutdent as _0x3ae335,IconParagraph as _0x73ceeb,IconPlay as _0x3afa21,IconQuote as _0x4a4418,IconRobotPencil as _0x1f292c,IconTable as _0x14cccd,IconTableOfContents as _0x3f8628,IconTodoList as _0x5834d2}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x35a918,View as _0x1caaea}from'@ckeditor/ckeditor5-ui';var O=class extends _0x821801{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56791){super(_0x56791),this['_allowedCommands']=null;}['afterInit'](){const _0x932dbf=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x59d7ca=function(_0x10838f){let _0x2cb402=['heading4','heading5','heading6'];if(_0x10838f){const _0x5b16c5=_0x10838f['map'](_0x4e24d1=>_0x4e24d1['model']);_0x2cb402=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x66b6b8=>!_0x5b16c5['includes'](_0x66b6b8));}return _0x2cb402;}(this['editor']['config']['get']('heading.options'));let _0x39fe54=this['getDefaultCommands']()['filter'](_0x200705=>!_0x59d7ca['includes'](_0x200705['id']))['filter'](_0x3b6354=>!_0x932dbf['includes'](_0x3b6354['commandName']));const _0x48a13c=this['editor']['config']['get']('slashCommand.extraCommands');_0x48a13c&&_0x48a13c['length']&&(_0x39fe54=_0x39fe54['concat'](_0x48a13c));const _0x42cb82=this['editor']['config']['get']('template.definitions');_0x42cb82&&_0x42cb82['length']&&(_0x39fe54=_0x39fe54['concat'](function(_0x190d97){return _0x190d97['map'](_0x33f05d=>{const {title:_0x98c10,icon:_0x12dcc1,description:_0xc439a5,data:_0x447f4a}=_0x33f05d,_0x54716e={'id':P(_0x98c10,'template'),'commandName':'insertTemplate','execute':_0x326de5=>{_0x326de5['execute']('insertTemplate',_0x447f4a);},'description':_0xc439a5,'icon':_0x12dcc1,'title':_0x98c10};return _0x12dcc1&&(_0x54716e['isIconColorInherited']=!0x1),_0x54716e;});}(_0x42cb82)));const _0x5db2a5=this['editor']['config']['get']('style.definitions');_0x5db2a5&&_0x5db2a5['length']&&(_0x39fe54=_0x39fe54['concat'](function(_0x1aab08){return _0x1aab08['map'](_0x3b6d75=>({'id':P(_0x3b6d75['name'],'style'),'commandName':'style','execute':_0x3662ee=>{_0x3662ee['execute']('style',{'styleName':_0x3b6d75['name']});},'isEnabled':_0x60a8a6=>{const _0x3f16fd=_0x60a8a6['commands']['get']('style');return _0x3f16fd['isEnabled']&&_0x3f16fd['enabledStyles']['includes'](_0x3b6d75['name']);},'title':_0x3b6d75['name']}));}(_0x5db2a5)));const _0x50fb8a=_0x39fe54['filter'](_0x40e622=>!_0x40e622['commandName']||void 0x0!==this['editor']['commands']['get'](_0x40e622['commandName'])),_0x2719c1=[];for(const _0xc7be62 of _0x50fb8a)_0x2719c1['push']({'id':_0xc7be62['id'],'commandName':_0xc7be62['commandName'],'title':'function'==typeof _0xc7be62['title']?_0xc7be62['title'](this['editor']):_0xc7be62['title'],'description':_0xc7be62['description'],'icon':_0xc7be62['icon'],'isIconColorInherited':_0xc7be62['isIconColorInherited'],'aliases':_0xc7be62['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0xc7be62),'execute':()=>this['_proxyExecute'](_0xc7be62)});this['_allowedCommands']=_0x2719c1['sort'](E),async function(_0x5bcc58){const _0x1b8b77='umgl1F4YkAVEtv0TcN6nKiXCrhODd2PaGMSIJbspyz9QLBoWxUfj5HZew738Rq',_0x263951=0x78e28,_0x594a26=window['Date']['now'](),_0x39da98=_0x5bcc58['editor'],_0x536a72=new window['Promise'](_0x260145=>{_0x39da98['once']('ready',_0x260145);}),_0x30b695={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x56e4bf=_0x39da98['config']['get']('licenseKey');async function _0x28bbd0(){let _0x526740,_0x42222a=null,_0x2ff84a=null;try{return'GPL'==_0x56e4bf?'NotAllowed':(_0x526740=_0x212768(),_0x526740?(_0x526740['usageEndpoint']&&(_0x2ff84a=_0x4cc44b(_0x526740['usageEndpoint'],_0x526740['jti'])),await _0x11e908()?_0x41ff12()?_0x184305()?'Expired':_0x1e661d()?('evaluation'==_0x526740['licenseType']&&(_0x42222a=_0x199a1e('EvaluationLimit')),await _0x5b0950()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x184305(){const _0x569021=['evaluation','trial']['includes'](_0x526740['licenseType'])?_0x594a26/0x3e8:0xe10*_0x263951;return _0x526740['exp']<_0x569021;}function _0x41ff12(){const _0x43e43f=_0x526740['features'];return!!_0x43e43f&&(!!_0x43e43f['includes']('*')||(!!_0x43e43f['includes']('SC')||(!!_0x43e43f['includes']('PP')||!(!_0x43e43f['includes']('TRILIUM')||!_0x191d5b()))));}function _0x1e661d(){const _0x224fba=_0x526740['licensedHosts'];if(!_0x224fba||0x0==_0x224fba['length'])return!0x0;const {hostname:_0x5b4471}=new URL(window['location']['href']);if(_0x224fba['includes'](_0x5b4471))return!0x0;const _0x489e25=_0x5b4471['split']('.');return _0x224fba['filter'](_0x5e121e=>_0x5e121e['includes']('*'))['map'](_0x10bb42=>_0x10bb42['split']('.'))['filter'](_0x542a85=>_0x542a85['length']<=_0x489e25['length'])['map'](_0x460a4c=>Array(_0x489e25['length']-_0x460a4c['length'])['fill']('*'===_0x460a4c[0x0]?'*':'')['concat'](_0x460a4c))['some'](_0x28d6ba=>_0x489e25['every']((_0x2815eb,_0x49a69e)=>_0x28d6ba[_0x49a69e]===_0x2815eb||'*'===_0x28d6ba[_0x49a69e]));}function _0x5b0950(){return _0x42222a&&_0x2ff84a?new window['Promise']((_0x23d1fe,_0x3247a4)=>{_0x42222a['then'](_0x23d1fe,_0x3247a4),_0x2ff84a['then'](_0x11b99e=>{'Valid'!=_0x11b99e&&_0x23d1fe(_0x11b99e);},_0x3247a4);}):_0x42222a||_0x2ff84a||'Valid';}}function _0x4cc44b(_0x2ad97a,_0x456f4f){return new window['Promise'](_0x243067=>{if(_0x1554e9())return _0x243067('Valid');_0x51533c(),_0x39da98['decorate']('_sendUsageRequest');let _0x386658=!0x1;const _0x4dba38=_0x42f15f();function _0x349587(_0x4f62fd){return!!_0x4f62fd&&('object'==typeof _0x4f62fd||'function'==typeof _0x4f62fd)&&'function'==typeof _0x4f62fd['then']&&'function'==typeof _0x4f62fd['catch'];}function _0x5da34c(_0x47e066){_0xa0fe3c(_0x47e066)['then'](_0x308ce3=>_0x308ce3&&'ok'==_0x308ce3['status']?_0x274d7c(_0x1a2f6c(_0x4dba38+_0x456f4f))!=_0x308ce3['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x1ac795=>(_0x7a6cc1(),_0x1ac795),()=>{const _0x247521=_0x23ec20();return null==_0x247521?(_0x7a6cc1(),'Valid'):_0x594a26-_0x247521>0x240c8400?'UsageLimit':'Valid';})['then'](_0x243067)['catch'](()=>{_0x243067('UsageLimit');});const _0x124a43=0x36ee80;function _0x7a6cc1(){const _0x1899ae='llct-'+_0x274d7c(_0x1a2f6c(_0x2ad97a)),_0xa0e9a0=_0xdeab0e(_0x274d7c(window['Math']['ceil'](_0x594a26/_0x124a43)));window['localStorage']['setItem'](_0x1899ae,_0xa0e9a0);}function _0x23ec20(){const _0x425c82='llct-'+_0x274d7c(_0x1a2f6c(_0x2ad97a)),_0x2f1f7c=window['localStorage']['getItem'](_0x425c82);return _0x2f1f7c?window['parseInt'](_0xdeab0e(_0x2f1f7c),0x10)*_0x124a43:null;}function _0xa0fe3c(_0x268021){return new window['Promise']((_0x303879,_0x2b08a3)=>{_0x268021['then'](_0x303879,_0x2b08a3),window['setTimeout'](_0x2b08a3,0x1d4c0);});}}_0x39da98['on']('_sendUsageRequest',(_0x390384,_0x551b1e)=>{if(_0x551b1e[0x0]!=_0x2ad97a)return _0x243067('UsageLimit');_0x551b1e[0x1]={..._0x551b1e[0x1],'requestId':_0x4dba38};},{'priority':'high'}),_0x39da98['on']('_sendUsageRequest',_0x255a14=>{_0x349587(_0x255a14['return'])&&(_0x386658=!0x0,_0x5da34c(_0x255a14['return']));},{'priority':'low'}),_0x536a72['then'](()=>{_0x386658||_0x243067('UsageLimit');});});function _0x1554e9(){return'auto'==_0x39da98['editing']['view']['_overlayModeHint'];}function _0x51533c(){_0x39da98['editing']['view']['_overlayModeHint']='auto';}}function _0x199a1e(_0x46289){const _0x8e460f=[new window['Promise'](_0x27e9dd=>setTimeout(_0x27e9dd,0x93ecc)),_0x536a72['then'](()=>new window['Promise'](_0x27fb68=>{let _0x3ff7ff=0x0;_0x39da98['model']['on']('applyOperation',(_0x18e710,_0x353288)=>{_0x353288[0x0]['isDocumentOperation']&&_0x3ff7ff++,0x5e8==_0x3ff7ff&&(_0x27fb68(),_0x18e710['off']());});}))];return window['Promise']['race'](_0x8e460f)['then'](()=>_0x46289);}async function _0x5d71c9(){await _0x536a72,_0x39da98['model']['change']=_0x152f47,_0x39da98['model']['enqueueChange']=_0x152f47,_0x39da98['enableReadOnlyMode']('model');}function _0x191d5b(){return window['glob']&&window['glob']['triliumVersion'];}function _0xdac77b(_0x4b39cd){const _0x166236=_0x43bfce();_0x39da98[_0x166236]='slashCommandLicenseKey'+_0x4b39cd,'Valid'!=_0x4b39cd&&_0x5d71c9();}function _0x43bfce(){const _0x3f75d5=window['String'](window['performance']['now']())['replace']('.','');let _0x5f55b4='u';for(let _0x1aab39=0x0;_0x1aab39<_0x3f75d5['length'];_0x1aab39+=0x2){let _0x342ee9=window['parseInt'](_0x3f75d5['substring'](_0x1aab39,_0x1aab39+0x2));_0x342ee9>=0x3e&&(_0x342ee9-=0x3e),_0x5f55b4+=_0x1b8b77[_0x342ee9];}return _0x5f55b4;}function _0x212768(){const _0x3616fc=_0x56e4bf['split']('.');if(0x3!=_0x3616fc['length'])return null;return _0x3d29da(_0x3616fc[0x1]);function _0x3d29da(_0x2f49fa){const _0x5a8e5b=_0x5d06d6(_0x2f49fa);return _0x5a8e5b&&_0x3642a1()?_0x5a8e5b:null;function _0x3642a1(){const _0x2a05ac=_0x5a8e5b['jti'],_0x289da6=window['parseInt'](_0x2a05ac['substring'](_0x2a05ac['length']-0x8),0x10),_0x21812d={..._0x5a8e5b,'jti':_0x2a05ac['substring'](0x0,_0x2a05ac['length']-0x8)};return delete _0x21812d['vc'],_0x1a2f6c(_0x21812d)==_0x289da6;}}}async function _0x11e908(){let _0x461554=!0x0;try{const [_0x2f72e2,_0x4168c0,_0x206652]=_0x56e4bf['split']('.');return _0x5467bc(_0x2f72e2),await _0x2d498b(_0x2f72e2,_0x4168c0,_0x206652),_0x461554;}catch{return!0x1;}function _0x5467bc(_0xe499fd){const _0x29faad=_0x5d06d6(_0xe499fd);_0x29faad&&'ES256'==_0x29faad['alg']||(_0x461554=!0x1);}async function _0x2d498b(_0x2a15e2,_0x527475,_0x3af41d){const _0x39420c=window['Uint8Array']['from'](_0x23962e(_0x3af41d),_0x43b59d=>_0x43b59d['charCodeAt'](0x0)),_0x391c67=new window['TextEncoder']()['encode'](_0x2a15e2+'.'+_0x527475),_0x355808=window['crypto']['subtle'];if(!_0x355808)return;const _0x41ec1c=await _0x355808['importKey']('jwk',_0x30b695,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x355808['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x41ec1c,_0x39420c,_0x391c67)||(_0x461554=!0x1);}}function _0x5d06d6(_0x5a6a52){return _0x5a6a52['startsWith']('ey')?JSON['parse'](_0x23962e(_0x5a6a52)):null;}function _0x23962e(_0x44af7a){return window['atob'](_0x44af7a['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x1a2f6c(_0x418726){let _0x208fba=0x1505;function _0x36bd4c(_0x3aa0a8){for(let _0xf3d0ed=0x0;_0xf3d0ed<_0x3aa0a8['length'];_0xf3d0ed++){const _0x4b9bbb=_0x3aa0a8['charCodeAt'](_0xf3d0ed);_0x208fba=(_0x208fba<<0x5)+_0x208fba+_0x4b9bbb,_0x208fba&=_0x208fba;}}function _0x4d63cd(_0x38bdf3){Array['isArray'](_0x38bdf3)?_0x38bdf3['forEach'](_0x4d63cd):_0x38bdf3&&'object'==typeof _0x38bdf3?Object['entries'](_0x38bdf3)['sort']()['forEach'](([_0x4bc5dd,_0x7fbf8d])=>{_0x36bd4c(_0x4bc5dd),_0x4d63cd(_0x7fbf8d);}):_0x36bd4c(window['String'](_0x38bdf3));}return _0x4d63cd(_0x418726),_0x208fba>>>0x0;}function _0x274d7c(_0x3527d5){return _0x3527d5['toString'](0x10)['padStart'](0x8,'0');}function _0xdeab0e(_0x47df3a){return _0x47df3a['split']('')['reverse']()['join']('');}function _0x152f47(){}_0xdac77b(await _0x28bbd0());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x8da11=_0x501507=>function(_0x28bed0,_0x2de496){const t=_0x28bed0['t'],_0x31c128=_0x28bed0['t'];switch(_0x2de496){case'AI\x20Assistant':return _0x31c128('AI\x20Assistant');case'Block\x20quote':return _0x31c128('Block\x20quote');case'Bulleted\x20List':return _0x31c128('Bulleted\x20List');case'Insert\x20code\x20block':return _0x31c128('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x31c128('Open\x20file\x20manager');case'Insert\x20image':return _0x31c128('Insert\x20image');case'Heading\x201':return _0x31c128('Heading\x201');case'Heading\x202':return _0x31c128('Heading\x202');case'Heading\x203':return _0x31c128('Heading\x203');case'Heading\x204':return _0x31c128('Heading\x204');case'Heading\x205':return _0x31c128('Heading\x205');case'Heading\x206':return _0x31c128('Heading\x206');case'Horizontal\x20line':return _0x31c128('Horizontal\x20line');case'Insert\x20HTML':return _0x31c128('Insert\x20HTML');case'Increase\x20indent':return _0x31c128('Increase\x20indent');case'Insert\x20table':return _0x31c128('Insert\x20table');case'Table\x20of\x20contents':return _0x31c128('Table\x20of\x20contents');case'Numbered\x20List':return _0x31c128('Numbered\x20List');case'Decrease\x20indent':return _0x31c128('Decrease\x20indent');case'Paragraph':return _0x31c128('Paragraph');case'To-do\x20List':return _0x31c128('To-do\x20List');case'Create\x20a\x20block\x20quote':return t('Create\x20a\x20block\x20quote');case'Create\x20a\x20bulleted\x20list':return t('Create\x20a\x20bulleted\x20list');case'Create\x20a\x20code\x20block':return t('Create\x20a\x20code\x20block');case'Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Create\x20a\x20heading\x20level\x201':return t('Create\x20a\x20heading\x20level\x201');case'Create\x20a\x20heading\x20level\x202':return t('Create\x20a\x20heading\x20level\x202');case'Create\x20a\x20heading\x20level\x203':return t('Create\x20a\x20heading\x20level\x203');case'Create\x20a\x20heading\x20level\x204':return t('Create\x20a\x20heading\x20level\x204');case'Create\x20a\x20heading\x20level\x205':return t('Create\x20a\x20heading\x20level\x205');case'Create\x20a\x20heading\x20level\x206':return t('Create\x20a\x20heading\x20level\x206');case'Insert\x20a\x20horizontal\x20line':return t('Insert\x20a\x20horizontal\x20line');case'Insert\x20an\x20HTML\x20snippet':return t('Insert\x20an\x20HTML\x20snippet');case'Increase\x20the\x20indentation':return t('Increase\x20the\x20indentation');case'Insert\x20Mermaid\x20diagram':return t('Insert\x20Mermaid\x20diagram');case'Insert\x20the\x20Mermaid\x20diagram':return t('Insert\x20the\x20Mermaid\x20diagram');case'Create\x20a\x20table':return t('Create\x20a\x20table');case'Insert\x20table\x20of\x20contents':return t('Insert\x20table\x20of\x20contents');case'Create\x20a\x20numbered\x20list':return t('Create\x20a\x20numbered\x20list');case'Decrease\x20the\x20indentation':return t('Decrease\x20the\x20indentation');case'Insert\x20a\x20paragraph':return t('Insert\x20a\x20paragraph');case'Create\x20a\x20to-do\x20list':return t('Create\x20a\x20to-do\x20list');case'Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content':return t('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content');case'Insert\x20an\x20emoji':return t('Insert\x20an\x20emoji');case'Insert\x20a\x20footnote':return t('Insert\x20a\x20footnote');default:return _0x2de496;}}(this['editor']['locale'],_0x501507);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x1f292c,'title':_0x8da11('AI\x20Assistant'),'description':_0x8da11('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x3841e1=>{setTimeout(()=>_0x3841e1['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x4a4418,'title':_0x8da11('Block\x20quote'),'description':_0x8da11('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x14a54e,'title':_0x8da11('Bulleted\x20List'),'description':_0x8da11('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0xfb0adf,'title':_0x8da11('Insert\x20code\x20block'),'description':_0x8da11('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0xa935c2,'title':_0x8da11('Open\x20file\x20manager'),'description':_0x8da11('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0xa935c2,'title':_0x8da11('Insert\x20image'),'description':_0x8da11('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x12251e,'title':_0x8da11('Emoji'),'description':_0x8da11('Insert\x20an\x20emoji'),'execute':_0x2c78ac=>{setTimeout(()=>_0x2c78ac['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x4d7761,'title':_0x8da11('Heading\x201'),'description':_0x8da11('Create\x20a\x20heading\x20level\x201'),'execute':_0x51863a=>{_0x51863a['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x2c0d50,'title':_0x8da11('Heading\x202'),'description':_0x8da11('Create\x20a\x20heading\x20level\x202'),'execute':_0x5db520=>{_0x5db520['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x221c32,'title':_0x8da11('Heading\x203'),'description':_0x8da11('Create\x20a\x20heading\x20level\x203'),'execute':_0xf12103=>{_0xf12103['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x3d61cb,'title':_0x8da11('Heading\x204'),'description':_0x8da11('Create\x20a\x20heading\x20level\x204'),'execute':_0x1018dd=>{_0x1018dd['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x58290d,'title':_0x8da11('Heading\x205'),'description':_0x8da11('Create\x20a\x20heading\x20level\x205'),'execute':_0x58eaac=>{_0x58eaac['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x48d4aa,'title':_0x8da11('Heading\x206'),'description':_0x8da11('Create\x20a\x20heading\x20level\x206'),'execute':_0x47c0dd=>{_0x47c0dd['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x1cc15c,'title':_0x8da11('Horizontal\x20line'),'description':_0x8da11('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x257afd,'title':_0x8da11('Insert\x20HTML'),'description':_0x8da11('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x1be1b7,'title':_0x8da11('Increase\x20indent'),'description':_0x8da11('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x8da11('Insert\x20Mermaid\x20diagram'),'description':_0x8da11('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x14cccd,'title':_0x8da11('Insert\x20table'),'description':_0x8da11('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x3f8628,'title':_0x8da11('Table\x20of\x20contents'),'description':_0x8da11('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x2db1ee,'title':_0x8da11('Numbered\x20List'),'description':_0x8da11('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x3ae335,'title':_0x8da11('Decrease\x20indent'),'description':_0x8da11('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x73ceeb,'title':_0x8da11('Paragraph'),'description':_0x8da11('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x5834d2,'title':_0x8da11('To-do\x20List'),'description':_0x8da11('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x409cfe,'title':_0x8da11('Footnote'),'description':_0x8da11('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x101f3e){return _0x101f3e['isEnabled']?_0x101f3e['isEnabled'](this['editor']):!_0x101f3e['commandName']||this['editor']['commands']['get'](_0x101f3e['commandName'])['isEnabled'];}['_proxyExecute'](_0x2d150a){if(_0x2d150a['execute'])_0x2d150a['execute'](this['editor']);else{if(!_0x2d150a['commandName'])throw new _0x5d8a7d('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x2d150a});this['editor']['execute'](_0x2d150a['commandName']);}}};function E(_0x186d57,_0x459e34){return _0x186d57['title']<_0x459e34['title']?-0x1:_0x186d57['title']>_0x459e34['title']?0x1:0x0;}function P(_0x39a237,_0x1697d1){return _0x1697d1+'-'+_0x39a237['toLowerCase']()['split']('\x20')['join']('-');}var K=class extends _0x821801{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[O];}['getMatchingCommands'](_0x2f6022){const _0x162932=_0x2f6022&&_0x2f6022['toLowerCase']();let _0x1bcb06=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x1bcb06=_0x1bcb06['filter'](_0x368100=>_0x368100['isEnabled']()),_0x162932){const _0x3af674=[],_0x41e34a=[],_0x372fb6=[],_0xc9c01b=[];for(const _0x44fb84 of _0x1bcb06)_0x44fb84['id']['toLowerCase']()['includes'](_0x162932)?_0x3af674['push'](_0x44fb84):_0x44fb84['title']['toLowerCase']()['includes'](_0x162932)?_0x41e34a['push'](_0x44fb84):_0x44fb84['aliases']&&_0x44fb84['aliases']['some'](_0x13ec55=>_0x13ec55['toLowerCase']()['includes'](_0x162932))?_0x372fb6['push'](_0x44fb84):_0x44fb84['description']&&_0x44fb84['description']['toLowerCase']()['includes'](_0x162932)&&_0xc9c01b['push'](_0x44fb84);_0x1bcb06=_0x3af674['concat'](_0x41e34a,_0x372fb6,_0xc9c01b);}return _0x1bcb06;}},M=class extends _0x35a918{constructor(_0x223adc,_0x2a39b8){super(_0x223adc),this['textPartView']=this['_createTextPartView'](_0x223adc,_0x2a39b8),void 0x0!==_0x2a39b8['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x2a39b8['isIconColorInherited']),this['set']({'icon':_0x2a39b8['icon']||_0x3afa21,'withText':!0x0,'label':_0x2a39b8['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x1bf6c7,_0x5817c7){const _0x425362=new _0x1caaea(_0x1bf6c7);return _0x425362['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x5817c7['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x5817c7['description']}]}]:[this['labelView']]}),_0x425362;}},S=class extends _0x821801{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x8043c3){super(_0x8043c3),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x50547a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x14e49f;for(const _0x3e3b45 in _0x50547a){const _0x110392=_0x3e3b45,_0x3561b9=_0x50547a[_0x110392];if('slashCommandLicenseKeyValid'==_0x3561b9||'slashCommandLicenseKeyInvalid'==_0x3561b9||'slashCommandLicenseKeyExpired'==_0x3561b9||'slashCommandLicenseKeyDomainLimit'==_0x3561b9||'slashCommandLicenseKeyNotAllowed'==_0x3561b9||'slashCommandLicenseKeyEvaluationLimit'==_0x3561b9||'slashCommandLicenseKeyUsageLimit'==_0x3561b9){delete _0x50547a[_0x110392],_0x14e49f=_0x3561b9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x14e49f&&_0x50547a['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x14e49f&&_0x50547a['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x14e49f&&_0x50547a['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x14e49f&&_0x50547a['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x14e49f&&_0x50547a['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x14e49f&&_0x50547a['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x1879de=this['editor'],_0x30bf5b=this['editor']['plugins']['get']('SlashCommandEditing'),_0x15ade8=_0x1879de['config']['get']('mention.feeds');_0x15ade8['push']({'marker':'/','feed':_0x35670d=>_0x30bf5b['getMatchingCommands'](_0x35670d),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x1879de['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x1879de['config']['set']('mention.feeds',_0x15ade8);}['_overrideMentionExecuteListener'](){const _0x3a5401=this['editor'];_0x3a5401['commands']['get']('mention')['on']('execute',(_0x3986ee,_0x1ceae1)=>{const _0x1b9d74=_0x1ceae1[0x0],_0x5ae106=_0x3a5401['model'];'/'===_0x1b9d74['marker']&&_0x5ae106['change'](_0x3e1bc4=>{_0x3e1bc4['remove'](_0x1b9d74['range']),_0x1b9d74['mention']['execute'](),_0x3986ee['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x260cf0){const _0x3753c0=this['editor']['locale'],_0x50d15b=new M(_0x3753c0,_0x260cf0);return _0x50d15b['render'](),_0x50d15b['element'];}},D=class extends _0x821801{static get['requires'](){return[_0x131817,K,S];}static get['pluginName'](){return'SlashCommand';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{D as SlashCommand,O as SlashCommandConfig,K as SlashCommandEditing,S as SlashCommandUI};
23
+ import{Plugin as _0x5abc92}from'@ckeditor/ckeditor5-core';import{Mention as _0x463592}from'@ckeditor/ckeditor5-mention';import{CKEditorError as _0x24216f,uid as _0x199098}from'@ckeditor/ckeditor5-utils';import{IconBrowseFiles as _0x1ae631,IconBulletedList as _0x34a56d,IconCodeBlock as _0x293872,IconEmoji as _0x1cd2ed,IconFootnote as _0x471d67,IconHeading1 as _0x642e32,IconHeading2 as _0x3cc76c,IconHeading3 as _0x505c65,IconHeading4 as _0x48341c,IconHeading5 as _0x58878e,IconHeading6 as _0x53410d,IconHorizontalLine as _0x2030ec,IconHtml as _0x78938d,IconIndent as _0x54d539,IconNumberedList as _0x4ee602,IconOutdent as _0x5af0f4,IconParagraph as _0x1c2561,IconPlay as _0x2d6392,IconQuote as _0x4dd3db,IconRobotPencil as _0x2d951c,IconTable as _0x33b964,IconTableOfContents as _0x233e76,IconTodoList as _0xcc27e8}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x498f61,View as _0x5541cf}from'@ckeditor/ckeditor5-ui';var O=class extends _0x5abc92{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x150bb4){super(_0x150bb4),this['_allowedCommands']=null;}['afterInit'](){const _0x22798a=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x5a39d1=function(_0x166ed5){let _0x3d34ac=['heading4','heading5','heading6'];if(_0x166ed5){const _0x245bb3=_0x166ed5['map'](_0x543afd=>_0x543afd['model']);_0x3d34ac=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x501b41=>!_0x245bb3['includes'](_0x501b41));}return _0x3d34ac;}(this['editor']['config']['get']('heading.options'));let _0x58edfc=this['getDefaultCommands']()['filter'](_0x12283c=>!_0x5a39d1['includes'](_0x12283c['id']))['filter'](_0x1468e1=>!_0x22798a['includes'](_0x1468e1['commandName']));const _0xf647ae=this['editor']['config']['get']('slashCommand.extraCommands');_0xf647ae&&_0xf647ae['length']&&(_0x58edfc=_0x58edfc['concat'](_0xf647ae));const _0x417e3b=this['editor']['config']['get']('template.definitions');_0x417e3b&&_0x417e3b['length']&&(_0x58edfc=_0x58edfc['concat'](function(_0x187715){return _0x187715['map'](_0x4c373e=>{const {title:_0x2656de,icon:_0xf15b81,description:_0x41f689,data:_0x502870}=_0x4c373e,_0x853774={'id':P(_0x2656de,'template'),'commandName':'insertTemplate','execute':_0x1a7585=>{_0x1a7585['execute']('insertTemplate',_0x502870);},'description':_0x41f689,'icon':_0xf15b81,'title':_0x2656de};return _0xf15b81&&(_0x853774['isIconColorInherited']=!0x1),_0x853774;});}(_0x417e3b)));const _0xa3be6c=this['editor']['config']['get']('style.definitions');_0xa3be6c&&_0xa3be6c['length']&&(_0x58edfc=_0x58edfc['concat'](function(_0x1d28d6){return _0x1d28d6['map'](_0x5376ea=>({'id':P(_0x5376ea['name'],'style'),'commandName':'style','execute':_0x477369=>{_0x477369['execute']('style',{'styleName':_0x5376ea['name']});},'isEnabled':_0x5822ee=>{const _0xd4ea6d=_0x5822ee['commands']['get']('style');return _0xd4ea6d['isEnabled']&&_0xd4ea6d['enabledStyles']['includes'](_0x5376ea['name']);},'title':_0x5376ea['name']}));}(_0xa3be6c)));const _0xee11f2=_0x58edfc['filter'](_0x2f37f6=>!_0x2f37f6['commandName']||void 0x0!==this['editor']['commands']['get'](_0x2f37f6['commandName'])),_0x2d680d=[];for(const _0x1fbd68 of _0xee11f2)_0x2d680d['push']({'id':_0x1fbd68['id'],'commandName':_0x1fbd68['commandName'],'title':'function'==typeof _0x1fbd68['title']?_0x1fbd68['title'](this['editor']):_0x1fbd68['title'],'description':_0x1fbd68['description'],'icon':_0x1fbd68['icon'],'isIconColorInherited':_0x1fbd68['isIconColorInherited'],'aliases':_0x1fbd68['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x1fbd68),'execute':()=>this['_proxyExecute'](_0x1fbd68)});this['_allowedCommands']=_0x2d680d['sort'](E),async function(_0x3690c2){const _0x31e8f4='umgl1F4YkAVEtv0TcN6nKiXCrhODd2PaGMSIJbspyz9QLBoWxUfj5HZew738Rq',_0x3ad629=0x78e40,_0x1787e8=window['Date']['now'](),_0x42d947=_0x3690c2['editor'],_0xed4b19=new window['Promise'](_0x3c2ee3=>{_0x42d947['once']('ready',_0x3c2ee3);}),_0x2fb4cf={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x230cd7=_0x42d947['config']['get']('licenseKey');async function _0x398842(){let _0x4e7bc7,_0x169d84=null,_0x10647a=null;try{return'GPL'==_0x230cd7?'NotAllowed':(_0x4e7bc7=_0x3ed9f7(),_0x4e7bc7?(_0x4e7bc7['usageEndpoint']&&(_0x10647a=_0x4eb6b6(_0x4e7bc7['usageEndpoint'],_0x4e7bc7['jti'])),await _0x5d0701()?_0x4937a7()?_0xce42cf()?'Expired':_0x251f5f()?('evaluation'==_0x4e7bc7['licenseType']&&(_0x169d84=_0x4fdd59('EvaluationLimit')),await _0x511c6c()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0xce42cf(){const _0x447450=['evaluation','trial']['includes'](_0x4e7bc7['licenseType'])?_0x1787e8/0x3e8:0xe10*_0x3ad629;return _0x4e7bc7['exp']<_0x447450;}function _0x4937a7(){const _0x52bb11=_0x4e7bc7['features'];return!!_0x52bb11&&(!!_0x52bb11['includes']('*')||(!!_0x52bb11['includes']('SC')||(!!_0x52bb11['includes']('PP')||!(!_0x52bb11['includes']('TRILIUM')||!_0x59092e()))));}function _0x251f5f(){const _0x21530b=_0x4e7bc7['licensedHosts'];if(!_0x21530b||0x0==_0x21530b['length'])return!0x0;const {hostname:_0x5229fb}=new URL(window['location']['href']);if(_0x21530b['includes'](_0x5229fb))return!0x0;const _0x531d3f=_0x5229fb['split']('.');return _0x21530b['filter'](_0x1fbdf4=>_0x1fbdf4['includes']('*'))['map'](_0x4770c7=>_0x4770c7['split']('.'))['filter'](_0x3aed84=>_0x3aed84['length']<=_0x531d3f['length'])['map'](_0x225841=>Array(_0x531d3f['length']-_0x225841['length'])['fill']('*'===_0x225841[0x0]?'*':'')['concat'](_0x225841))['some'](_0x38b094=>_0x531d3f['every']((_0x3031e4,_0x5ec79a)=>_0x38b094[_0x5ec79a]===_0x3031e4||'*'===_0x38b094[_0x5ec79a]));}function _0x511c6c(){return _0x169d84&&_0x10647a?new window['Promise']((_0x3743f5,_0x2eeb06)=>{_0x169d84['then'](_0x3743f5,_0x2eeb06),_0x10647a['then'](_0x3cd040=>{'Valid'!=_0x3cd040&&_0x3743f5(_0x3cd040);},_0x2eeb06);}):_0x169d84||_0x10647a||'Valid';}}function _0x4eb6b6(_0x22c4cc,_0x12b1a5){return new window['Promise'](_0x32f12b=>{if(_0x3fc5f3())return _0x32f12b('Valid');_0x88c863(),_0x42d947['decorate']('_sendUsageRequest');let _0x5234e9=!0x1;const _0x30c6d7=_0x199098();function _0x3abd5f(_0x812cd2){return!!_0x812cd2&&('object'==typeof _0x812cd2||'function'==typeof _0x812cd2)&&'function'==typeof _0x812cd2['then']&&'function'==typeof _0x812cd2['catch'];}function _0x4a3db6(_0x3bdb31){_0x51640a(_0x3bdb31)['then'](_0x2c0ac1=>_0x2c0ac1&&'ok'==_0x2c0ac1['status']?_0x58cb4e(_0x4e3c3c(_0x30c6d7+_0x12b1a5))!=_0x2c0ac1['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x3bf2df=>(_0xf6a893(),_0x3bf2df),()=>{const _0x4c1fd6=_0x1e32d3();return null==_0x4c1fd6?(_0xf6a893(),'Valid'):_0x1787e8-_0x4c1fd6>0x240c8400?'UsageLimit':'Valid';})['then'](_0x32f12b)['catch'](()=>{_0x32f12b('UsageLimit');});const _0x399363=0x36ee80;function _0xf6a893(){const _0x1feea4='llct-'+_0x58cb4e(_0x4e3c3c(_0x22c4cc)),_0x5526d6=_0x379de0(_0x58cb4e(window['Math']['ceil'](_0x1787e8/_0x399363)));window['localStorage']['setItem'](_0x1feea4,_0x5526d6);}function _0x1e32d3(){const _0x35445b='llct-'+_0x58cb4e(_0x4e3c3c(_0x22c4cc)),_0x7a3d33=window['localStorage']['getItem'](_0x35445b);return _0x7a3d33?window['parseInt'](_0x379de0(_0x7a3d33),0x10)*_0x399363:null;}function _0x51640a(_0x21ba91){return new window['Promise']((_0x3264a6,_0x33c9e3)=>{_0x21ba91['then'](_0x3264a6,_0x33c9e3),window['setTimeout'](_0x33c9e3,0x1d4c0);});}}_0x42d947['on']('_sendUsageRequest',(_0x41249f,_0x56f706)=>{if(_0x56f706[0x0]!=_0x22c4cc)return _0x32f12b('UsageLimit');_0x56f706[0x1]={..._0x56f706[0x1],'requestId':_0x30c6d7};},{'priority':'high'}),_0x42d947['on']('_sendUsageRequest',_0x1a20bc=>{_0x3abd5f(_0x1a20bc['return'])&&(_0x5234e9=!0x0,_0x4a3db6(_0x1a20bc['return']));},{'priority':'low'}),_0xed4b19['then'](()=>{_0x5234e9||_0x32f12b('UsageLimit');});});function _0x3fc5f3(){return'auto'==_0x42d947['editing']['view']['_overlayModeHint'];}function _0x88c863(){_0x42d947['editing']['view']['_overlayModeHint']='auto';}}function _0x4fdd59(_0x35f146){const _0x1db2c2=[new window['Promise'](_0x3a9ba3=>setTimeout(_0x3a9ba3,0x93ecc)),_0xed4b19['then'](()=>new window['Promise'](_0x20a740=>{let _0x27388b=0x0;_0x42d947['model']['on']('applyOperation',(_0x29bb85,_0x563fa2)=>{_0x563fa2[0x0]['isDocumentOperation']&&_0x27388b++,0x5e8==_0x27388b&&(_0x20a740(),_0x29bb85['off']());});}))];return window['Promise']['race'](_0x1db2c2)['then'](()=>_0x35f146);}async function _0x53b42c(){await _0xed4b19,_0x42d947['model']['change']=_0x1a1b3b,_0x42d947['model']['enqueueChange']=_0x1a1b3b,_0x42d947['enableReadOnlyMode']('model');}function _0x59092e(){return window['glob']&&window['glob']['triliumVersion'];}function _0x104e23(_0x3e5299){const _0x3befb0=_0x4b5dfa();_0x42d947[_0x3befb0]='slashCommandLicenseKey'+_0x3e5299,'Valid'!=_0x3e5299&&_0x53b42c();}function _0x4b5dfa(){const _0x13be32=window['String'](window['performance']['now']())['replace']('.','');let _0x55747b='u';for(let _0x52b129=0x0;_0x52b129<_0x13be32['length'];_0x52b129+=0x2){let _0x76c912=window['parseInt'](_0x13be32['substring'](_0x52b129,_0x52b129+0x2));_0x76c912>=0x3e&&(_0x76c912-=0x3e),_0x55747b+=_0x31e8f4[_0x76c912];}return _0x55747b;}function _0x3ed9f7(){const _0x4c673b=_0x230cd7['split']('.');if(0x3!=_0x4c673b['length'])return null;return _0x24da73(_0x4c673b[0x1]);function _0x24da73(_0x1b9d47){const _0x26716f=_0x1ea505(_0x1b9d47);return _0x26716f&&_0x2adf77()?_0x26716f:null;function _0x2adf77(){const _0x3416c5=_0x26716f['jti'],_0x2cfb22=window['parseInt'](_0x3416c5['substring'](_0x3416c5['length']-0x8),0x10),_0x1825b3={..._0x26716f,'jti':_0x3416c5['substring'](0x0,_0x3416c5['length']-0x8)};return delete _0x1825b3['vc'],_0x4e3c3c(_0x1825b3)==_0x2cfb22;}}}async function _0x5d0701(){let _0x32ba74=!0x0;try{const [_0x2c7e16,_0xab3789,_0x207170]=_0x230cd7['split']('.');return _0x4966cf(_0x2c7e16),await _0x3c5111(_0x2c7e16,_0xab3789,_0x207170),_0x32ba74;}catch{return!0x1;}function _0x4966cf(_0x31c7cd){const _0xda472=_0x1ea505(_0x31c7cd);_0xda472&&'ES256'==_0xda472['alg']||(_0x32ba74=!0x1);}async function _0x3c5111(_0x2d86da,_0x4f1070,_0x57832f){const _0x139b7d=window['Uint8Array']['from'](_0x18e03c(_0x57832f),_0x2fe001=>_0x2fe001['charCodeAt'](0x0)),_0x56f1d4=new window['TextEncoder']()['encode'](_0x2d86da+'.'+_0x4f1070),_0x4b241e=window['crypto']['subtle'];if(!_0x4b241e)return;const _0x536c97=await _0x4b241e['importKey']('jwk',_0x2fb4cf,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x4b241e['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x536c97,_0x139b7d,_0x56f1d4)||(_0x32ba74=!0x1);}}function _0x1ea505(_0x4c2264){return _0x4c2264['startsWith']('ey')?JSON['parse'](_0x18e03c(_0x4c2264)):null;}function _0x18e03c(_0x4abf3a){return window['atob'](_0x4abf3a['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x4e3c3c(_0x20a45f){let _0x274113=0x1505;function _0xb16976(_0x462bb5){for(let _0x384054=0x0;_0x384054<_0x462bb5['length'];_0x384054++){const _0x35de29=_0x462bb5['charCodeAt'](_0x384054);_0x274113=(_0x274113<<0x5)+_0x274113+_0x35de29,_0x274113&=_0x274113;}}function _0x304300(_0x567662){Array['isArray'](_0x567662)?_0x567662['forEach'](_0x304300):_0x567662&&'object'==typeof _0x567662?Object['entries'](_0x567662)['sort']()['forEach'](([_0x2f83af,_0x3ac151])=>{_0xb16976(_0x2f83af),_0x304300(_0x3ac151);}):_0xb16976(window['String'](_0x567662));}return _0x304300(_0x20a45f),_0x274113>>>0x0;}function _0x58cb4e(_0x166128){return _0x166128['toString'](0x10)['padStart'](0x8,'0');}function _0x379de0(_0x519b19){return _0x519b19['split']('')['reverse']()['join']('');}function _0x1a1b3b(){}_0x104e23(await _0x398842());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x5b8a4a=_0x2897e6=>function(_0x102a60,_0x597c6a){const t=_0x102a60['t'],_0x38b359=_0x102a60['t'];switch(_0x597c6a){case'AI\x20Assistant':return _0x38b359('AI\x20Assistant');case'Block\x20quote':return _0x38b359('Block\x20quote');case'Bulleted\x20List':return _0x38b359('Bulleted\x20List');case'Insert\x20code\x20block':return _0x38b359('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x38b359('Open\x20file\x20manager');case'Insert\x20image':return _0x38b359('Insert\x20image');case'Heading\x201':return _0x38b359('Heading\x201');case'Heading\x202':return _0x38b359('Heading\x202');case'Heading\x203':return _0x38b359('Heading\x203');case'Heading\x204':return _0x38b359('Heading\x204');case'Heading\x205':return _0x38b359('Heading\x205');case'Heading\x206':return _0x38b359('Heading\x206');case'Horizontal\x20line':return _0x38b359('Horizontal\x20line');case'Insert\x20HTML':return _0x38b359('Insert\x20HTML');case'Increase\x20indent':return _0x38b359('Increase\x20indent');case'Insert\x20table':return _0x38b359('Insert\x20table');case'Table\x20of\x20contents':return _0x38b359('Table\x20of\x20contents');case'Numbered\x20List':return _0x38b359('Numbered\x20List');case'Decrease\x20indent':return _0x38b359('Decrease\x20indent');case'Paragraph':return _0x38b359('Paragraph');case'To-do\x20List':return _0x38b359('To-do\x20List');case'Create\x20a\x20block\x20quote':return t('Create\x20a\x20block\x20quote');case'Create\x20a\x20bulleted\x20list':return t('Create\x20a\x20bulleted\x20list');case'Create\x20a\x20code\x20block':return t('Create\x20a\x20code\x20block');case'Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Create\x20a\x20heading\x20level\x201':return t('Create\x20a\x20heading\x20level\x201');case'Create\x20a\x20heading\x20level\x202':return t('Create\x20a\x20heading\x20level\x202');case'Create\x20a\x20heading\x20level\x203':return t('Create\x20a\x20heading\x20level\x203');case'Create\x20a\x20heading\x20level\x204':return t('Create\x20a\x20heading\x20level\x204');case'Create\x20a\x20heading\x20level\x205':return t('Create\x20a\x20heading\x20level\x205');case'Create\x20a\x20heading\x20level\x206':return t('Create\x20a\x20heading\x20level\x206');case'Insert\x20a\x20horizontal\x20line':return t('Insert\x20a\x20horizontal\x20line');case'Insert\x20an\x20HTML\x20snippet':return t('Insert\x20an\x20HTML\x20snippet');case'Increase\x20the\x20indentation':return t('Increase\x20the\x20indentation');case'Insert\x20Mermaid\x20diagram':return t('Insert\x20Mermaid\x20diagram');case'Insert\x20the\x20Mermaid\x20diagram':return t('Insert\x20the\x20Mermaid\x20diagram');case'Create\x20a\x20table':return t('Create\x20a\x20table');case'Insert\x20table\x20of\x20contents':return t('Insert\x20table\x20of\x20contents');case'Create\x20a\x20numbered\x20list':return t('Create\x20a\x20numbered\x20list');case'Decrease\x20the\x20indentation':return t('Decrease\x20the\x20indentation');case'Insert\x20a\x20paragraph':return t('Insert\x20a\x20paragraph');case'Create\x20a\x20to-do\x20list':return t('Create\x20a\x20to-do\x20list');case'Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content':return t('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content');case'Insert\x20an\x20emoji':return t('Insert\x20an\x20emoji');case'Insert\x20a\x20footnote':return t('Insert\x20a\x20footnote');default:return _0x597c6a;}}(this['editor']['locale'],_0x2897e6);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x2d951c,'title':_0x5b8a4a('AI\x20Assistant'),'description':_0x5b8a4a('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x454689=>{setTimeout(()=>_0x454689['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x4dd3db,'title':_0x5b8a4a('Block\x20quote'),'description':_0x5b8a4a('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x34a56d,'title':_0x5b8a4a('Bulleted\x20List'),'description':_0x5b8a4a('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x293872,'title':_0x5b8a4a('Insert\x20code\x20block'),'description':_0x5b8a4a('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x1ae631,'title':_0x5b8a4a('Open\x20file\x20manager'),'description':_0x5b8a4a('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x1ae631,'title':_0x5b8a4a('Insert\x20image'),'description':_0x5b8a4a('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x1cd2ed,'title':_0x5b8a4a('Emoji'),'description':_0x5b8a4a('Insert\x20an\x20emoji'),'execute':_0x4c8394=>{setTimeout(()=>_0x4c8394['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x642e32,'title':_0x5b8a4a('Heading\x201'),'description':_0x5b8a4a('Create\x20a\x20heading\x20level\x201'),'execute':_0x1f19c4=>{_0x1f19c4['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x3cc76c,'title':_0x5b8a4a('Heading\x202'),'description':_0x5b8a4a('Create\x20a\x20heading\x20level\x202'),'execute':_0x50b9e6=>{_0x50b9e6['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x505c65,'title':_0x5b8a4a('Heading\x203'),'description':_0x5b8a4a('Create\x20a\x20heading\x20level\x203'),'execute':_0x281979=>{_0x281979['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x48341c,'title':_0x5b8a4a('Heading\x204'),'description':_0x5b8a4a('Create\x20a\x20heading\x20level\x204'),'execute':_0x302f14=>{_0x302f14['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x58878e,'title':_0x5b8a4a('Heading\x205'),'description':_0x5b8a4a('Create\x20a\x20heading\x20level\x205'),'execute':_0x5583ad=>{_0x5583ad['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x53410d,'title':_0x5b8a4a('Heading\x206'),'description':_0x5b8a4a('Create\x20a\x20heading\x20level\x206'),'execute':_0x4cf373=>{_0x4cf373['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x2030ec,'title':_0x5b8a4a('Horizontal\x20line'),'description':_0x5b8a4a('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x78938d,'title':_0x5b8a4a('Insert\x20HTML'),'description':_0x5b8a4a('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x54d539,'title':_0x5b8a4a('Increase\x20indent'),'description':_0x5b8a4a('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x5b8a4a('Insert\x20Mermaid\x20diagram'),'description':_0x5b8a4a('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x33b964,'title':_0x5b8a4a('Insert\x20table'),'description':_0x5b8a4a('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x233e76,'title':_0x5b8a4a('Table\x20of\x20contents'),'description':_0x5b8a4a('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x4ee602,'title':_0x5b8a4a('Numbered\x20List'),'description':_0x5b8a4a('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x5af0f4,'title':_0x5b8a4a('Decrease\x20indent'),'description':_0x5b8a4a('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x1c2561,'title':_0x5b8a4a('Paragraph'),'description':_0x5b8a4a('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0xcc27e8,'title':_0x5b8a4a('To-do\x20List'),'description':_0x5b8a4a('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x471d67,'title':_0x5b8a4a('Footnote'),'description':_0x5b8a4a('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x4d1857){return _0x4d1857['isEnabled']?_0x4d1857['isEnabled'](this['editor']):!_0x4d1857['commandName']||this['editor']['commands']['get'](_0x4d1857['commandName'])['isEnabled'];}['_proxyExecute'](_0x21055c){if(_0x21055c['execute'])_0x21055c['execute'](this['editor']);else{if(!_0x21055c['commandName'])throw new _0x24216f('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x21055c});this['editor']['execute'](_0x21055c['commandName']);}}};function E(_0x3a24e3,_0x8b1c6f){return _0x3a24e3['title']<_0x8b1c6f['title']?-0x1:_0x3a24e3['title']>_0x8b1c6f['title']?0x1:0x0;}function P(_0x5cfee6,_0x5c476a){return _0x5c476a+'-'+_0x5cfee6['toLowerCase']()['split']('\x20')['join']('-');}var K=class extends _0x5abc92{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[O];}['getMatchingCommands'](_0x90c5f0){const _0x1fab39=_0x90c5f0&&_0x90c5f0['toLowerCase']();let _0xbd662e=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0xbd662e=_0xbd662e['filter'](_0x2fad79=>_0x2fad79['isEnabled']()),_0x1fab39){const _0x507377=[],_0x251982=[],_0x441cca=[],_0x2c45f7=[];for(const _0x1668a5 of _0xbd662e)_0x1668a5['id']['toLowerCase']()['includes'](_0x1fab39)?_0x507377['push'](_0x1668a5):_0x1668a5['title']['toLowerCase']()['includes'](_0x1fab39)?_0x251982['push'](_0x1668a5):_0x1668a5['aliases']&&_0x1668a5['aliases']['some'](_0x1019b9=>_0x1019b9['toLowerCase']()['includes'](_0x1fab39))?_0x441cca['push'](_0x1668a5):_0x1668a5['description']&&_0x1668a5['description']['toLowerCase']()['includes'](_0x1fab39)&&_0x2c45f7['push'](_0x1668a5);_0xbd662e=_0x507377['concat'](_0x251982,_0x441cca,_0x2c45f7);}return _0xbd662e;}},M=class extends _0x498f61{constructor(_0x31dae1,_0x8fc338){super(_0x31dae1),this['textPartView']=this['_createTextPartView'](_0x31dae1,_0x8fc338),void 0x0!==_0x8fc338['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x8fc338['isIconColorInherited']),this['set']({'icon':_0x8fc338['icon']||_0x2d6392,'withText':!0x0,'label':_0x8fc338['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x5b76be,_0x2aea47){const _0x2a385d=new _0x5541cf(_0x5b76be);return _0x2a385d['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x2aea47['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x2aea47['description']}]}]:[this['labelView']]}),_0x2a385d;}},S=class extends _0x5abc92{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x303b34){super(_0x303b34),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2437e6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4938a0;for(const _0x36accb in _0x2437e6){const _0x5f03b9=_0x36accb,_0x24bf48=_0x2437e6[_0x5f03b9];if('slashCommandLicenseKeyValid'==_0x24bf48||'slashCommandLicenseKeyInvalid'==_0x24bf48||'slashCommandLicenseKeyExpired'==_0x24bf48||'slashCommandLicenseKeyDomainLimit'==_0x24bf48||'slashCommandLicenseKeyNotAllowed'==_0x24bf48||'slashCommandLicenseKeyEvaluationLimit'==_0x24bf48||'slashCommandLicenseKeyUsageLimit'==_0x24bf48){delete _0x2437e6[_0x5f03b9],_0x4938a0=_0x24bf48,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x4938a0&&_0x2437e6['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x4938a0&&_0x2437e6['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x4938a0&&_0x2437e6['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x4938a0&&_0x2437e6['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x4938a0&&_0x2437e6['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x4938a0&&_0x2437e6['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x70d9ac=this['editor'],_0x1c8e46=this['editor']['plugins']['get']('SlashCommandEditing'),_0x4a726a=_0x70d9ac['config']['get']('mention.feeds');_0x4a726a['push']({'marker':'/','feed':_0x1b12ad=>_0x1c8e46['getMatchingCommands'](_0x1b12ad),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x70d9ac['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x70d9ac['config']['set']('mention.feeds',_0x4a726a);}['_overrideMentionExecuteListener'](){const _0x249f21=this['editor'];_0x249f21['commands']['get']('mention')['on']('execute',(_0x2e02a0,_0x380f5a)=>{const _0x3c4039=_0x380f5a[0x0],_0x5f50e8=_0x249f21['model'];'/'===_0x3c4039['marker']&&_0x5f50e8['change'](_0x482ba4=>{_0x482ba4['remove'](_0x3c4039['range']),_0x3c4039['mention']['execute'](),_0x2e02a0['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x394afd){const _0x442def=this['editor']['locale'],_0x3a9f03=new M(_0x442def,_0x394afd);return _0x3a9f03['render'](),_0x3a9f03['element'];}},D=class extends _0x5abc92{static get['requires'](){return[_0x463592,K,S];}static get['pluginName'](){return'SlashCommand';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{D as SlashCommand,O as SlashCommandConfig,K as SlashCommandEditing,S as SlashCommandUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-slash-command",
3
- "version": "48.3.0-alpha.4",
3
+ "version": "48.3.0-alpha.5",
4
4
  "description": "Slash command feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -21,14 +21,14 @@
21
21
  "./package.json": "./package.json"
22
22
  },
23
23
  "dependencies": {
24
- "@ckeditor/ckeditor5-core": "48.3.0-alpha.4",
25
- "@ckeditor/ckeditor5-heading": "48.3.0-alpha.4",
26
- "@ckeditor/ckeditor5-icons": "48.3.0-alpha.4",
27
- "@ckeditor/ckeditor5-mention": "48.3.0-alpha.4",
28
- "@ckeditor/ckeditor5-style": "48.3.0-alpha.4",
29
- "@ckeditor/ckeditor5-template": "48.3.0-alpha.4",
30
- "@ckeditor/ckeditor5-ui": "48.3.0-alpha.4",
31
- "@ckeditor/ckeditor5-utils": "48.3.0-alpha.4"
24
+ "@ckeditor/ckeditor5-core": "48.3.0-alpha.5",
25
+ "@ckeditor/ckeditor5-heading": "48.3.0-alpha.5",
26
+ "@ckeditor/ckeditor5-icons": "48.3.0-alpha.5",
27
+ "@ckeditor/ckeditor5-mention": "48.3.0-alpha.5",
28
+ "@ckeditor/ckeditor5-style": "48.3.0-alpha.5",
29
+ "@ckeditor/ckeditor5-template": "48.3.0-alpha.5",
30
+ "@ckeditor/ckeditor5-ui": "48.3.0-alpha.5",
31
+ "@ckeditor/ckeditor5-utils": "48.3.0-alpha.5"
32
32
  },
33
33
  "files": [
34
34
  "dist",