@ckeditor/ckeditor5-document-outline
Advanced tools
Comparing version 0.0.0-nightly-20230818.0 to 0.0.0-nightly-20230818.1
{ | ||
"name": "@ckeditor/ckeditor5-document-outline", | ||
"version": "0.0.0-nightly-20230818.0", | ||
"version": "0.0.0-nightly-20230818.1", | ||
"description": "Document outline feature for CKEditor 5.", | ||
@@ -15,4 +15,4 @@ "keywords": [ | ||
"dependencies": { | ||
"ckeditor5": "0.0.0-nightly-20230818.0", | ||
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20230818.0", | ||
"ckeditor5": "0.0.0-nightly-20230818.1", | ||
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20230818.1", | ||
"lodash-es": "4.17.21" | ||
@@ -19,0 +19,0 @@ }, |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x2c1a=['documentOutlineLicenseKeyTrial','DocumentOutline','licenseKey','documentOutlineLicenseKeyValid','_licenseKeyCheckInterval','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20document\x20outline\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','editor','document-outline-trial-license-key-reached-limit-changes','config','info','destroy','documentOutlineLicenseKeyInvalid','documentOutlineLicenseKeyTrialLimit:operations','requires'];(function(_0x2f4d0d,_0x2c1a11){const _0x2a1df3=function(_0x3300fc){while(--_0x3300fc){_0x2f4d0d['push'](_0x2f4d0d['shift']());}};_0x2a1df3(++_0x2c1a11);}(_0x2c1a,0x12a));const _0x2a1d=function(_0x2f4d0d,_0x2c1a11){_0x2f4d0d=_0x2f4d0d-0x0;let _0x2a1df3=_0x2c1a[_0x2f4d0d];return _0x2a1df3;};import{Plugin as _0x30e4eb}from'ckeditor5/src/core';import{CKEditorError as _0x720533}from'ckeditor5/src/utils';import _0x21b178 from'./documentoutline/documentoutlineutils';import _0x372970 from'./documentoutline/documentoutlineui';export default class l extends _0x30e4eb{static get[_0x2a1d('0x9')](){return[_0x21b178,_0x372970];}static get['pluginName'](){return _0x2a1d('0xb');}constructor(_0xf0d3d){super(_0xf0d3d),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x10b0d7=this[_0x2a1d('0x2')];this['licenseKey']=_0x10b0d7[_0x2a1d('0x4')]['get'](_0x2a1d('0xc'));const _0x35ba86=this[_0x2a1d('0x2')];this[_0x2a1d('0x0')]=setInterval(()=>{let _0x5bdb64;for(const _0x67186b in _0x35ba86){const _0x5f2c5e=_0x67186b,_0x41842a=_0x35ba86[_0x5f2c5e];if('documentOutlineLicenseKeyTrial'===_0x41842a||_0x2a1d('0x7')===_0x41842a||'documentOutlineLicenseKeyValid'===_0x41842a||'documentOutlineLicenseKeyTrialLimit:operations'===_0x41842a){delete _0x35ba86[_0x5f2c5e],_0x5bdb64=_0x41842a;break;}}if('documentOutlineLicenseKeyInvalid'===_0x5bdb64)throw clearInterval(this[_0x2a1d('0x0')]),new _0x720533('document-outline-invalid-license-key',null);if(_0x2a1d('0xa')===_0x5bdb64&&console[_0x2a1d('0x5')](_0x2a1d('0x1')),_0x2a1d('0x8')===_0x5bdb64)throw clearInterval(this[_0x2a1d('0x0')]),new _0x720533(_0x2a1d('0x3'),null);_0x2a1d('0xd')===_0x5bdb64&&clearInterval(this[_0x2a1d('0x0')]);},0x3e8);}[_0x2a1d('0x6')](){this[_0x2a1d('0x0')]&&clearInterval(this[_0x2a1d('0x0')]);}} | ||
const _0x3e89=['pluginName','documentOutlineLicenseKeyValid','editor','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20document\x20outline\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','document-outline-trial-license-key-reached-limit-changes','destroy','requires','document-outline-invalid-license-key','DocumentOutline','documentOutlineLicenseKeyTrialLimit:operations','_licenseKeyCheckInterval','init','documentOutlineLicenseKeyInvalid','documentOutlineLicenseKeyTrial','licenseKey'];(function(_0x5c1de4,_0x3e8991){const _0x124f8a=function(_0x5a5cb4){while(--_0x5a5cb4){_0x5c1de4['push'](_0x5c1de4['shift']());}};_0x124f8a(++_0x3e8991);}(_0x3e89,0x1e7));const _0x124f=function(_0x5c1de4,_0x3e8991){_0x5c1de4=_0x5c1de4-0x0;let _0x124f8a=_0x3e89[_0x5c1de4];return _0x124f8a;};import{Plugin as _0xc11bd5}from'ckeditor5/src/core';import{CKEditorError as _0x4c8338}from'ckeditor5/src/utils';import _0x1e5eff from'./documentoutline/documentoutlineutils';import _0x2e1344 from'./documentoutline/documentoutlineui';export default class l extends _0xc11bd5{static get[_0x124f('0xe')](){return[_0x1e5eff,_0x2e1344];}static get[_0x124f('0x8')](){return _0x124f('0x1');}constructor(_0x4b5f30){super(_0x4b5f30),this['_licenseKeyCheckInterval']=null;}[_0x124f('0x4')](){const _0x1f32b4=this['editor'];this['licenseKey']=_0x1f32b4['config']['get'](_0x124f('0x7'));const _0x4d11bd=this[_0x124f('0xa')];this[_0x124f('0x3')]=setInterval(()=>{let _0x1ac1ee;for(const _0x44df33 in _0x4d11bd){const _0x44a3be=_0x44df33,_0x394fa4=_0x4d11bd[_0x44a3be];if(_0x124f('0x6')===_0x394fa4||_0x124f('0x5')===_0x394fa4||_0x124f('0x9')===_0x394fa4||_0x124f('0x2')===_0x394fa4){delete _0x4d11bd[_0x44a3be],_0x1ac1ee=_0x394fa4;break;}}if(_0x124f('0x5')===_0x1ac1ee)throw clearInterval(this[_0x124f('0x3')]),new _0x4c8338(_0x124f('0x0'),null);if(_0x124f('0x6')===_0x1ac1ee&&console['info'](_0x124f('0xb')),_0x124f('0x2')===_0x1ac1ee)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x4c8338(_0x124f('0xc'),null);_0x124f('0x9')===_0x1ac1ee&&clearInterval(this[_0x124f('0x3')]);},0x3e8);}[_0x124f('0xd')](){this['_licenseKeyCheckInterval']&&clearInterval(this[_0x124f('0x3')]);}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0xa72d=['modelElement','domConverter','_getOutlineDefinitions','DocumentOutlineUtils','push','config','getRoot','afterInit','change','backward','text','item','createElement','init','editor','level','fire','document','toModel','editing','_deriveHeadingElementsFromConversion','getChild','domToView','includes','_getHeadingNames','element','get','name','documentOutline.headings','model','selection','_getActiveHeading','_headingNames','getChildren','getRootNames'];(function(_0x5ef533,_0xa72db){const _0x2fbc2a=function(_0x5a4cd7){while(--_0x5a4cd7){_0x5ef533['push'](_0x5ef533['shift']());}};_0x2fbc2a(++_0xa72db);}(_0xa72d,0x1f3));const _0x2fbc=function(_0x5ef533,_0xa72db){_0x5ef533=_0x5ef533-0x0;let _0x2fbc2a=_0xa72d[_0x5ef533];return _0x2fbc2a;};import{Plugin as _0x58c928}from'ckeditor5/src/core';import{debounce as _0x4d1106}from'lodash-es';import{TreeWalker as _0x37998f}from'ckeditor5/src/engine';import{getElementText as _0xfb83dc,getDefaultFeatureHeadingNames as _0x386cca}from'./utils';import{diff as _0x120b1f,diffToChanges as _0xeba8f8}from'ckeditor5/src/utils';export default class n extends _0x58c928{constructor(){super(...arguments),this['_headingNames']=[];}static get['pluginName'](){return _0x2fbc('0x1d');}[_0x2fbc('0x4')](){const _0xd91de=this[_0x2fbc('0x5')];this[_0x2fbc('0x17')]=this[_0x2fbc('0xf')]();let _0x2edf1d=[];_0xd91de[_0x2fbc('0x14')][_0x2fbc('0x8')]['on'](_0x2fbc('0x22'),_0x4d1106(()=>{const _0x116c32=_0x2edf1d;_0x2edf1d=this[_0x2fbc('0x1c')]();const _0x2e3f1a=_0x120b1f(_0x116c32,_0x2edf1d,(_0x3667d2,_0x78746e)=>_0x3667d2[_0x2fbc('0x6')]===_0x78746e[_0x2fbc('0x6')]&&_0x3667d2['text']===_0x78746e[_0x2fbc('0x1')]&&_0x3667d2[_0x2fbc('0x1a')]===_0x78746e[_0x2fbc('0x1a')]),_0x3fc90b=_0xeba8f8(_0x2e3f1a,_0x2edf1d),_0x508485=this[_0x2fbc('0x16')](),_0x2e4152=_0x2edf1d['findIndex'](_0x33584a=>_0x33584a['modelElement']===_0x508485);_0x3fc90b['length']&&this[_0x2fbc('0x7')](_0x2fbc('0x22'),{'outlineDefinitions':_0x2edf1d,'activeItemIndex':_0x2e4152,'outlineChanges':_0x3fc90b}),this[_0x2fbc('0x7')]('activeItemIndex',{'index':_0x2e4152});},0xfa,{'leading':!0x0,'trailing':!0x0}));}[_0x2fbc('0x21')](){this[_0x2fbc('0x17')]['length']||this[_0x2fbc('0xb')]();}['_getOutlineDefinitions'](){const _0x1233ee=this['editor'],_0x9809cc=[],_0x29d91e=this[_0x2fbc('0x17')];for(const _0x41e017 of _0x1233ee[_0x2fbc('0x14')]['document'][_0x2fbc('0x19')]())_0x5601c4(_0x1233ee['model']['document'][_0x2fbc('0x20')](_0x41e017));function _0x5601c4(_0x24e7d6){for(const _0x498e92 of _0x24e7d6[_0x2fbc('0x18')]())_0x498e92['is'](_0x2fbc('0x10'))&&(_0x29d91e[_0x2fbc('0xe')](_0x498e92[_0x2fbc('0x12')])&&_0x9809cc[_0x2fbc('0x1e')]({'level':_0x29d91e['indexOf'](_0x498e92[_0x2fbc('0x12')])+0x1,'text':_0xfb83dc(_0x498e92),'modelElement':_0x498e92}),_0x5601c4(_0x498e92));}return _0x9809cc;}['_getActiveHeading'](){const _0x31cb93=this[_0x2fbc('0x5')][_0x2fbc('0x14')][_0x2fbc('0x8')][_0x2fbc('0x15')]['getFirstPosition'](),_0x4f60b0=new _0x37998f({'direction':_0x2fbc('0x0'),'startPosition':_0x31cb93});for(const _0x30997b of _0x4f60b0)if(_0x30997b['item']['is'](_0x2fbc('0x10'))&&this[_0x2fbc('0x17')]['includes'](_0x30997b[_0x2fbc('0x2')][_0x2fbc('0x12')]))return _0x30997b['item'];}[_0x2fbc('0xf')](){const _0x56c513=this[_0x2fbc('0x5')][_0x2fbc('0x1f')][_0x2fbc('0x11')](_0x2fbc('0x13'));return _0x56c513||_0x386cca(this[_0x2fbc('0x5')]);}['_deriveHeadingElementsFromConversion'](){const _0x55f5bc=this['editor'],_0x61a879=['h1','h2','h3','h4','h5','h6'],_0x44a860=[];for(const _0x3e0b96 of _0x61a879){const _0x5d7096=_0x55f5bc[_0x2fbc('0xa')]['view'][_0x2fbc('0x1b')][_0x2fbc('0xd')](document[_0x2fbc('0x3')](_0x3e0b96)),_0x20f326=_0x55f5bc['data'][_0x2fbc('0x9')](_0x5d7096)[_0x2fbc('0xc')](0x0);(null==_0x20f326?void 0x0:_0x20f326['is']('element'))&&_0x44a860[_0x2fbc('0x1e')](_0x20f326['name']);}this[_0x2fbc('0x17')]=_0x44a860;}} | ||
const _0xd603=['getRootNames','fire','push','_deriveHeadingElementsFromConversion','_headingNames','level','name','length','domToView','change','activeItemIndex','config','data','indexOf','element','text','getRoot','getFirstPosition','domConverter','document','init','getChild','editor','item','selection','_getActiveHeading','afterInit','get','view','model','modelElement','documentOutline.headings','includes','_getHeadingNames','backward','_getOutlineDefinitions'];(function(_0x23f6cf,_0xd60394){const _0x448b91=function(_0x5686a8){while(--_0x5686a8){_0x23f6cf['push'](_0x23f6cf['shift']());}};_0x448b91(++_0xd60394);}(_0xd603,0xfb));const _0x448b=function(_0x23f6cf,_0xd60394){_0x23f6cf=_0x23f6cf-0x0;let _0x448b91=_0xd603[_0x23f6cf];return _0x448b91;};import{Plugin as _0x506032}from'ckeditor5/src/core';import{debounce as _0x2a684f}from'lodash-es';import{TreeWalker as _0x3ac4bf}from'ckeditor5/src/engine';import{getElementText as _0x4272be,getDefaultFeatureHeadingNames as _0x3cdee4}from'./utils';import{diff as _0x905f11,diffToChanges as _0xcfb1ad}from'ckeditor5/src/utils';export default class n extends _0x506032{constructor(){super(...arguments),this[_0x448b('0x5')]=[];}static get['pluginName'](){return'DocumentOutlineUtils';}[_0x448b('0x15')](){const _0x5ac294=this['editor'];this[_0x448b('0x5')]=this[_0x448b('0x22')]();let _0x51e8c9=[];_0x5ac294[_0x448b('0x1e')]['document']['on'](_0x448b('0xa'),_0x2a684f(()=>{const _0x6fca93=_0x51e8c9;_0x51e8c9=this[_0x448b('0x0')]();const _0x209c1a=_0x905f11(_0x6fca93,_0x51e8c9,(_0x56cc37,_0x14e7b)=>_0x56cc37[_0x448b('0x6')]===_0x14e7b['level']&&_0x56cc37[_0x448b('0x10')]===_0x14e7b[_0x448b('0x10')]&&_0x56cc37[_0x448b('0x1f')]===_0x14e7b[_0x448b('0x1f')]),_0x8dbe11=_0xcfb1ad(_0x209c1a,_0x51e8c9),_0x3f9a76=this['_getActiveHeading'](),_0x457afd=_0x51e8c9['findIndex'](_0xdb5742=>_0xdb5742[_0x448b('0x1f')]===_0x3f9a76);_0x8dbe11[_0x448b('0x8')]&&this[_0x448b('0x2')](_0x448b('0xa'),{'outlineDefinitions':_0x51e8c9,'activeItemIndex':_0x457afd,'outlineChanges':_0x8dbe11}),this[_0x448b('0x2')](_0x448b('0xb'),{'index':_0x457afd});},0xfa,{'leading':!0x0,'trailing':!0x0}));}[_0x448b('0x1b')](){this[_0x448b('0x5')]['length']||this[_0x448b('0x4')]();}[_0x448b('0x0')](){const _0x212a3e=this[_0x448b('0x17')],_0x4b64e3=[],_0x4f6d18=this['_headingNames'];for(const _0x1d77d8 of _0x212a3e[_0x448b('0x1e')][_0x448b('0x14')][_0x448b('0x1')]())_0xce0c36(_0x212a3e[_0x448b('0x1e')]['document'][_0x448b('0x11')](_0x1d77d8));function _0xce0c36(_0x498f10){for(const _0x427121 of _0x498f10['getChildren']())_0x427121['is']('element')&&(_0x4f6d18[_0x448b('0x21')](_0x427121[_0x448b('0x7')])&&_0x4b64e3[_0x448b('0x3')]({'level':_0x4f6d18[_0x448b('0xe')](_0x427121[_0x448b('0x7')])+0x1,'text':_0x4272be(_0x427121),'modelElement':_0x427121}),_0xce0c36(_0x427121));}return _0x4b64e3;}[_0x448b('0x1a')](){const _0x308d99=this['editor'][_0x448b('0x1e')]['document'][_0x448b('0x19')][_0x448b('0x12')](),_0x36fce8=new _0x3ac4bf({'direction':_0x448b('0x23'),'startPosition':_0x308d99});for(const _0x3f2106 of _0x36fce8)if(_0x3f2106[_0x448b('0x18')]['is']('element')&&this[_0x448b('0x5')][_0x448b('0x21')](_0x3f2106[_0x448b('0x18')]['name']))return _0x3f2106[_0x448b('0x18')];}[_0x448b('0x22')](){const _0x1198d1=this['editor'][_0x448b('0xc')][_0x448b('0x1c')](_0x448b('0x20'));return _0x1198d1||_0x3cdee4(this[_0x448b('0x17')]);}[_0x448b('0x4')](){const _0x473ad7=this[_0x448b('0x17')],_0x4dda4a=['h1','h2','h3','h4','h5','h6'],_0x25feab=[];for(const _0x5d6575 of _0x4dda4a){const _0x3a93e4=_0x473ad7['editing'][_0x448b('0x1d')][_0x448b('0x13')][_0x448b('0x9')](document['createElement'](_0x5d6575)),_0x2d7b26=_0x473ad7[_0x448b('0xd')]['toModel'](_0x3a93e4)[_0x448b('0x16')](0x0);(null==_0x2d7b26?void 0x0:_0x2d7b26['is'](_0x448b('0xf')))&&_0x25feab[_0x448b('0x3')](_0x2d7b26[_0x448b('0x7')]);}this[_0x448b('0x5')]=_0x25feab;}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
import{View as _0x38bf0}from'ckeditor5/src/ui';export default class $ extends _0x38bf0{constructor(_0x202a8a,_0x40727e=!0x1){super(_0x202a8a);const t=_0x202a8a['t'],_0x32a310=this['bindTemplate'],_0x2cf1ae=_0x40727e?'['+t('Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0xeb13e8=>!_0xeb13e8),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x32a310['to']('level',_0x46d55=>'ck-document-outline__item_level-'+_0x46d55),_0x32a310['if']('isActive','ck-document-outline__item_active'),_0x32a310['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x32a310['to']('text')},'children':[{'text':_0x32a310['to']('text',_0x255cc9=>_0x255cc9||_0x2cf1ae)}],'on':{'click':_0x32a310['to']('click')}});}} | ||
import{View as _0x56ddfc}from'ckeditor5/src/ui';export default class $ extends _0x56ddfc{constructor(_0x9b263,_0x2c23a4=!0x1){super(_0x9b263);const t=_0x9b263['t'],_0x2b7a23=this['bindTemplate'],_0x3471e6=_0x2c23a4?'['+t('Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x193d9c=>!_0x193d9c),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x2b7a23['to']('level',_0x198e19=>'ck-document-outline__item_level-'+_0x198e19),_0x2b7a23['if']('isActive','ck-document-outline__item_active'),_0x2b7a23['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x2b7a23['to']('text')},'children':[{'text':_0x2b7a23['to']('text',_0xc27e82=>_0xc27e82||_0x3471e6)}],'on':{'click':_0x2b7a23['to']('click')}});}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
import{View as _0x402e17}from'ckeditor5/src/ui';import{scrollAncestorsToShowTarget as _0x453386}from'ckeditor5/src/utils';import _0x2afde0 from'./documentoutlineitemview';export default class d extends _0x402e17{constructor(_0x3d92ea,_0x428cd5=!0x1,_0x336c0f){super(_0x3d92ea);const t=_0x3d92ea['t'];this['showEmptyHeadingText']=_0x428cd5,this['set']('activeItemIndex',-0x1),this['_documentOutlineContainer']=_0x336c0f,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x331edf,_0x9c97ed,_0x1dd61f,_0x39bccc)=>{this['_setActiveItem'](_0x39bccc,_0x1dd61f);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x3d92ea['contentLanguageDirection'],'data-document-outline-empty-placeholder':t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x509f81){_0x509f81['forEach'](_0x2de290=>{'insert'==_0x2de290['type']?this['_insertItem'](_0x2de290['index'],..._0x2de290['values']):'delete'==_0x2de290['type']&&this['_deleteItem'](_0x2de290['index'],_0x2de290['howMany']);});}['_setActiveItem'](_0x7fdab9,_0x4830ed){if(-0x1!==_0x7fdab9){const _0x4a2b56=this['items']['get'](_0x7fdab9);_0x4a2b56&&(_0x4a2b56['isActive']=!0x1);}-0x1!==_0x4830ed&&(this['items']['get'](_0x4830ed)['isActive']=!0x0,this['_scrollToItem'](_0x4830ed));}['_insertItem'](_0x9172e0,..._0x177373){const _0x2d7763=_0x177373['map']((_0x1e0395,_0x23b3a3)=>{const _0x499605=new _0x2afde0(this['locale'],this['showEmptyHeadingText']);return _0x499605['text']=_0x1e0395['text'],_0x499605['level']=_0x1e0395['level'],_0x9172e0+_0x23b3a3===this['activeItemIndex']&&(_0x499605['isActive']=!0x0),_0x499605;});this['items']['addMany'](_0x2d7763,_0x9172e0);}['_deleteItem'](_0x2fd5c3,_0x342917){do{this['items']['remove'](_0x2fd5c3);}while(--_0x342917);}['_handleItemClick'](_0x3b7f57){const _0x34c9af=this['items']['getIndex'](_0x3b7f57['source']);this['fire']('itemSelected',_0x34c9af);}['_scrollToItem'](_0x2536ed){_0x453386(this['items']['get'](_0x2536ed)['element'],0x14,this['_documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}} | ||
import{View as _0x59b9a2}from'ckeditor5/src/ui';import{scrollAncestorsToShowTarget as _0x446292}from'ckeditor5/src/utils';import _0x25c6c0 from'./documentoutlineitemview';export default class d extends _0x59b9a2{constructor(_0x287cd8,_0x4af6e9=!0x1,_0x344805){super(_0x287cd8);const t=_0x287cd8['t'];this['showEmptyHeadingText']=_0x4af6e9,this['set']('activeItemIndex',-0x1),this['_documentOutlineContainer']=_0x344805,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x4623f3,_0x1e1b17,_0x49f517,_0xd3928a)=>{this['_setActiveItem'](_0xd3928a,_0x49f517);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x287cd8['contentLanguageDirection'],'data-document-outline-empty-placeholder':t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0xd698c2){_0xd698c2['forEach'](_0x35c701=>{'insert'==_0x35c701['type']?this['_insertItem'](_0x35c701['index'],..._0x35c701['values']):'delete'==_0x35c701['type']&&this['_deleteItem'](_0x35c701['index'],_0x35c701['howMany']);});}['_setActiveItem'](_0xa94c70,_0xb754ae){if(-0x1!==_0xa94c70){const _0x3b5794=this['items']['get'](_0xa94c70);_0x3b5794&&(_0x3b5794['isActive']=!0x1);}-0x1!==_0xb754ae&&(this['items']['get'](_0xb754ae)['isActive']=!0x0,this['_scrollToItem'](_0xb754ae));}['_insertItem'](_0x527ec2,..._0xebe323){const _0x151b5c=_0xebe323['map']((_0x49a88e,_0x5668ad)=>{const _0x39ce98=new _0x25c6c0(this['locale'],this['showEmptyHeadingText']);return _0x39ce98['text']=_0x49a88e['text'],_0x39ce98['level']=_0x49a88e['level'],_0x527ec2+_0x5668ad===this['activeItemIndex']&&(_0x39ce98['isActive']=!0x0),_0x39ce98;});this['items']['addMany'](_0x151b5c,_0x527ec2);}['_deleteItem'](_0x821860,_0x40bf27){do{this['items']['remove'](_0x821860);}while(--_0x40bf27);}['_handleItemClick'](_0x3ab2c4){const _0x249865=this['items']['getIndex'](_0x3ab2c4['source']);this['fire']('itemSelected',_0x249865);}['_scrollToItem'](_0x4a9b6e){_0x446292(this['items']['get'](_0x4a9b6e)['element'],0x14,this['_documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x1ce1=['getChildren','htmlH2','htmlH4','has','model','GeneralHtmlSupport','reduce','plugins','heading.options','config','htmlH5','htmlH6','htmlH3'];(function(_0x5cf2a4,_0x1ce164){const _0x30ffcd=function(_0x28ba36){while(--_0x28ba36){_0x5cf2a4['push'](_0x5cf2a4['shift']());}};_0x30ffcd(++_0x1ce164);}(_0x1ce1,0x1ea));const _0x30ff=function(_0x5cf2a4,_0x1ce164){_0x5cf2a4=_0x5cf2a4-0x0;let _0x30ffcd=_0x1ce1[_0x5cf2a4];return _0x30ffcd;};import{Text as _0x339ca3}from'ckeditor5/src/engine';export function getElementText(_0x42a5c5){let _0x238f17='';for(const _0x2b00fc of _0x42a5c5[_0x30ff('0x4')]())_0x2b00fc instanceof _0x339ca3&&(_0x238f17+=_0x2b00fc['data']);return _0x238f17;}export function getDefaultFeatureHeadingNames(_0x29598b){const _0x3fcfb8=_0x29598b[_0x30ff('0x0')]['get'](_0x30ff('0xc'));return _0x3fcfb8?_0x3fcfb8[_0x30ff('0xa')]((_0x480369,_0x47b122)=>('paragraph'!==_0x47b122[_0x30ff('0x8')]&&_0x480369['push'](_0x47b122['model']),_0x480369),[]):_0x29598b[_0x30ff('0xb')][_0x30ff('0x7')](_0x30ff('0x9'))?['htmlH1',_0x30ff('0x5'),_0x30ff('0x3'),_0x30ff('0x6'),_0x30ff('0x1'),_0x30ff('0x2')]:[];} | ||
const _0x370c=['getChildren','htmlH6','GeneralHtmlSupport','paragraph','data','get','htmlH3','has','htmlH1','htmlH2','push'];(function(_0x3f20ff,_0x370c81){const _0x8622f6=function(_0x3ca5e2){while(--_0x3ca5e2){_0x3f20ff['push'](_0x3f20ff['shift']());}};_0x8622f6(++_0x370c81);}(_0x370c,0x16d));const _0x8622=function(_0x3f20ff,_0x370c81){_0x3f20ff=_0x3f20ff-0x0;let _0x8622f6=_0x370c[_0x3f20ff];return _0x8622f6;};import{Text as _0x531e72}from'ckeditor5/src/engine';export function getElementText(_0x333ceb){let _0x1b5847='';for(const _0x5d8424 of _0x333ceb[_0x8622('0x9')]())_0x5d8424 instanceof _0x531e72&&(_0x1b5847+=_0x5d8424[_0x8622('0x2')]);return _0x1b5847;}export function getDefaultFeatureHeadingNames(_0x58fd6d){const _0x207590=_0x58fd6d['config'][_0x8622('0x3')]('heading.options');return _0x207590?_0x207590['reduce']((_0x15957b,_0x52aeee)=>(_0x8622('0x1')!==_0x52aeee['model']&&_0x15957b[_0x8622('0x8')](_0x52aeee['model']),_0x15957b),[]):_0x58fd6d['plugins'][_0x8622('0x5')](_0x8622('0x0'))?[_0x8622('0x6'),_0x8622('0x7'),_0x8622('0x4'),'htmlH4','htmlH5',_0x8622('0xa')]:[];} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
export{default as DocumentOutline}from'./documentoutline';export{default as DocumentOutlineUI}from'./documentoutline/documentoutlineui';export{default as DocumentOutlineUtils}from'./documentoutline/documentoutlineutils';import _0x32f9a0 from'../theme/icons/table-of-contents.svg';export{default as TableOfContents}from'./tableofcontents';export{default as TableOfContentsCommand}from'./tableofcontents/tableofcontentscommand';export{default as TableOfContentsEditing}from'./tableofcontents/tableofcontentsediting';export{default as TableOfContentsUI}from'./tableofcontents/tableofcontentsui';export{default as HeadingId}from'./tableofcontents/headingid';export const icons={'tableOfContentsIcon':_0x32f9a0};import'./augmentation'; | ||
export{default as DocumentOutline}from'./documentoutline';export{default as DocumentOutlineUI}from'./documentoutline/documentoutlineui';export{default as DocumentOutlineUtils}from'./documentoutline/documentoutlineutils';import _0x49da6 from'../theme/icons/table-of-contents.svg';export{default as TableOfContents}from'./tableofcontents';export{default as TableOfContentsCommand}from'./tableofcontents/tableofcontentscommand';export{default as TableOfContentsEditing}from'./tableofcontents/tableofcontentsediting';export{default as TableOfContentsUI}from'./tableofcontents/tableofcontentsui';export{default as HeadingId}from'./tableofcontents/headingid';export const icons={'tableOfContentsIcon':_0x49da6};import'./augmentation'; |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
var _0x5ac6=['TableOfContents','pluginName'];(function(_0x6c0681,_0x5ac60a){var _0x108351=function(_0x4de45f){while(--_0x4de45f){_0x6c0681['push'](_0x6c0681['shift']());}};_0x108351(++_0x5ac60a);}(_0x5ac6,0x80));var _0x1083=function(_0x6c0681,_0x5ac60a){_0x6c0681=_0x6c0681-0x0;var _0x108351=_0x5ac6[_0x6c0681];return _0x108351;};import{Plugin as _0x392a3a}from'ckeditor5/src/core';import _0x21bdfc from'./tableofcontents/tableofcontentsediting';import _0x1898f7 from'./tableofcontents/tableofcontentsui';export default class c extends _0x392a3a{static get['requires'](){return[_0x21bdfc,_0x1898f7];}static get[_0x1083('0x1')](){return _0x1083('0x0');}} | ||
var _0x5726=['pluginName','requires','TableOfContents'];(function(_0x515107,_0x5726dc){var _0x4e212b=function(_0x3ded5c){while(--_0x3ded5c){_0x515107['push'](_0x515107['shift']());}};_0x4e212b(++_0x5726dc);}(_0x5726,0x1b9));var _0x4e21=function(_0x515107,_0x5726dc){_0x515107=_0x515107-0x0;var _0x4e212b=_0x5726[_0x515107];return _0x4e212b;};import{Plugin as _0x448922}from'ckeditor5/src/core';import _0x3f0039 from'./tableofcontents/tableofcontentsediting';import _0x21074b from'./tableofcontents/tableofcontentsui';export default class c extends _0x448922{static get[_0x4e21('0x1')](){return[_0x3f0039,_0x21074b];}static get[_0x4e21('0x0')](){return _0x4e21('0x2');}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x497f=['nodeAfter','match','set','name','headingId','getContainedElement','insert','HeadingId','type','get','mapper','change','_customDataDowncastHeadingsConversion','modelRange','editor','viewItem','string','headingId.modelAttributeName','element:','document','attributes','getAttribute','_registerHeadingIdAttributePostfixer','heading.options','paragraph','removeAttribute','extend','conversion','hasAttribute','attribute:headingId:','downcast','low','config','remove','consumable','_customUpcastHeadingsConversion','for','delete','registerPostFixer','data','item','consume','writer','model','forEach','setAttribute','differ','getChanges','add','toViewElement','isRegistered','position','has','afterInit','upcastDispatcher'];(function(_0x1170a2,_0x497fea){const _0x36b5e1=function(_0x3433f6){while(--_0x3433f6){_0x1170a2['push'](_0x1170a2['shift']());}};_0x36b5e1(++_0x497fea);}(_0x497f,0x68));const _0x36b5=function(_0x1170a2,_0x497fea){_0x1170a2=_0x1170a2-0x0;let _0x36b5e1=_0x497f[_0x1170a2];return _0x36b5e1;};import{Plugin as _0x1ce3f6}from'ckeditor5/src/core';import{uid as _0x255f46,priorities as _0x19b8d1}from'ckeditor5/src/utils';export default class A extends _0x1ce3f6{static get['pluginName'](){return _0x36b5('0xd');}[_0x36b5('0x4')](){const _0x2a1f45=this[_0x36b5('0x14')];if(_0x2a1f45[_0x36b5('0x26')][_0x36b5('0xf')](_0x36b5('0x17')))return;(function(_0x15d64f){const _0xa6a958=new Map();if(_0x15d64f)return _0x15d64f[_0x36b5('0x32')](_0x54301d=>{_0x36b5('0x1e')!==_0x54301d[_0x36b5('0x31')]&&_0xa6a958[_0x36b5('0x8')](_0x54301d['view'],_0x54301d[_0x36b5('0x31')]);}),_0xa6a958['get']('h1')||_0xa6a958[_0x36b5('0x8')]('h1','heading1'),_0xa6a958;return _0xa6a958;}(this['editor'][_0x36b5('0x26')]['get'](_0x36b5('0x1d')))[_0x36b5('0x32')]((_0x118c08,_0x43df79)=>{this[_0x36b5('0x29')](_0x43df79),this[_0x36b5('0x12')](_0x118c08),_0x2a1f45[_0x36b5('0x31')]['schema'][_0x36b5('0x1')](_0x118c08)&&_0x2a1f45[_0x36b5('0x31')]['schema'][_0x36b5('0x20')](_0x118c08,{'allowAttributes':_0x36b5('0xa')});}),this[_0x36b5('0x1c')]());}[_0x36b5('0x29')](_0x24772e){this[_0x36b5('0x14')][_0x36b5('0x2d')][_0x36b5('0x5')]['on'](_0x36b5('0x18')+_0x24772e,(_0x6afbed,_0x32e832,_0x5563e3)=>{const {consumable:_0x3cb10b,writer:_0x51b7aa}=_0x5563e3,_0x38a405=_0x32e832[_0x36b5('0x15')][_0x36b5('0x1b')]('id'),_0x59fee3=_0x32e832[_0x36b5('0x13')][_0x36b5('0xb')]();if(!(_0x38a405&&_0x38a405['length']||_0x59fee3[_0x36b5('0x22')](_0x36b5('0xa'))))return _0x3cb10b[_0x36b5('0x2f')](_0x32e832['viewItem'],{'attributes':['id']}),void _0x51b7aa[_0x36b5('0x33')]('headingId',_0x255f46(),_0x59fee3);_0x3cb10b[_0x36b5('0x2f')](_0x32e832[_0x36b5('0x15')],{'attributes':['id']})&&_0x51b7aa[_0x36b5('0x33')](_0x36b5('0xa'),_0x38a405,_0x59fee3);},{'priority':_0x19b8d1[_0x36b5('0xf')](_0x36b5('0x25'))+0.5});}[_0x36b5('0x12')](_0x58cc89){this[_0x36b5('0x14')][_0x36b5('0x21')][_0x36b5('0x2a')](_0x36b5('0x24'))['add'](_0x51f3db=>_0x51f3db['on'](_0x36b5('0x23')+_0x58cc89,(_0x1066b8,_0x1d38f1,_0x2988be)=>{if(!_0x2988be[_0x36b5('0x28')][_0x36b5('0x2f')](_0x1d38f1[_0x36b5('0x2e')],_0x1066b8[_0x36b5('0x9')]))return;const _0x27a880=_0x1d38f1[_0x36b5('0x2e')][_0x36b5('0x1b')](_0x36b5('0xa')),_0x54eb5b=_0x2988be[_0x36b5('0x10')][_0x36b5('0x0')](_0x1d38f1[_0x36b5('0x2e')]);_0x2988be[_0x36b5('0x30')][_0x36b5('0x33')]('id',_0x27a880,_0x54eb5b);}));}[_0x36b5('0x1c')](){const _0x3dc1d2=this[_0x36b5('0x14')],_0x3c99f7=new Set(),_0x32b230=new Set();function _0x509981(_0x480963,_0x21a953){const _0x21cfc5=_0x255f46();return _0x32b230[_0x36b5('0x36')](_0x21cfc5),_0x480963['setAttribute'](_0x36b5('0xa'),_0x21cfc5,_0x21a953),_0x21cfc5;}function _0x527abc(_0x1de41a,_0x42c5a5){_0x1de41a[_0x36b5('0x1f')](_0x36b5('0xa'),_0x42c5a5);}_0x3dc1d2[_0x36b5('0x31')]['document'][_0x36b5('0x2c')](_0x386b61=>{const _0x136744=_0x3dc1d2[_0x36b5('0x31')][_0x36b5('0x19')][_0x36b5('0x34')][_0x36b5('0x35')]();let _0x303fc9=!0x1;for(const _0x57d929 of _0x136744)if(_0x36b5('0xc')==_0x57d929['type']&&_0x57d929[_0x36b5('0x9')]){if(_0x57d929['name'][_0x36b5('0x7')](/heading\d/)){const _0xaa996c=_0x57d929['attributes'][_0x36b5('0xf')](_0x36b5('0xa'));_0x36b5('0x16')==typeof _0xaa996c?_0x3c99f7[_0x36b5('0x3')](_0xaa996c)?(_0x509981(_0x386b61,_0x57d929[_0x36b5('0x2')][_0x36b5('0x6')]),_0x303fc9=!0x0):_0x32b230[_0x36b5('0x36')](_0xaa996c):(_0x509981(_0x386b61,_0x57d929['position'][_0x36b5('0x6')]),_0x303fc9=!0x0);}else _0x36b5('0x16')==typeof _0x57d929[_0x36b5('0x1a')]['get'](_0x36b5('0xa'))&&(_0x527abc(_0x386b61,_0x57d929[_0x36b5('0x2')][_0x36b5('0x6')]),_0x303fc9=!0x0);}else{if(_0x36b5('0x27')==_0x57d929[_0x36b5('0xe')]){const _0x4a3723=_0x57d929[_0x36b5('0x1a')][_0x36b5('0xf')](_0x36b5('0xa'));_0x36b5('0x16')==typeof _0x4a3723&&_0x3c99f7[_0x36b5('0x2b')](_0x4a3723);}}return _0x303fc9;}),_0x3dc1d2[_0x36b5('0x31')][_0x36b5('0x19')]['on'](_0x36b5('0x11'),()=>{_0x32b230['forEach'](_0x54221f=>_0x3c99f7['add'](_0x54221f)),_0x32b230['clear']();});}} | ||
const _0x497c=['low','view','add','model','getContainedElement','get','delete','conversion','editor','data','differ','modelRange','headingId.modelAttributeName','change','downcast','headingId','forEach','has','item','string','mapper','attributes','insert','config','isRegistered','document','extend','clear','type','viewItem','setAttribute','name','registerPostFixer','pluginName','_customUpcastHeadingsConversion','getAttribute','getChanges','consume','nodeAfter','schema','for','toViewElement','_customDataDowncastHeadingsConversion','_registerHeadingIdAttributePostfixer','set','position','heading.options','attribute:headingId:','writer','paragraph','afterInit','upcastDispatcher','length'];(function(_0x163232,_0x497cbf){const _0x367053=function(_0x44e531){while(--_0x44e531){_0x163232['push'](_0x163232['shift']());}};_0x367053(++_0x497cbf);}(_0x497c,0xc1));const _0x3670=function(_0x163232,_0x497cbf){_0x163232=_0x163232-0x0;let _0x367053=_0x497c[_0x163232];return _0x367053;};import{Plugin as _0x6d1ec6}from'ckeditor5/src/core';import{uid as _0x478aea,priorities as _0x28dc85}from'ckeditor5/src/utils';export default class A extends _0x6d1ec6{static get[_0x3670('0x34')](){return'HeadingId';}[_0x3670('0x10')](){const _0x919fd3=this['editor'];if(_0x919fd3[_0x3670('0x2a')]['get'](_0x3670('0x1f')))return;(function(_0x1d9ae2){const _0x2b47bd=new Map();if(_0x1d9ae2)return _0x1d9ae2[_0x3670('0x23')](_0x5397e7=>{_0x3670('0xf')!==_0x5397e7[_0x3670('0x16')]&&_0x2b47bd['set'](_0x5397e7[_0x3670('0x14')],_0x5397e7[_0x3670('0x16')]);}),_0x2b47bd[_0x3670('0x18')]('h1')||_0x2b47bd[_0x3670('0xa')]('h1','heading1'),_0x2b47bd;return _0x2b47bd;}(this[_0x3670('0x1b')]['config'][_0x3670('0x18')](_0x3670('0xc')))[_0x3670('0x23')]((_0x5de713,_0x40c60b)=>{this[_0x3670('0x0')](_0x40c60b),this[_0x3670('0x8')](_0x5de713),_0x919fd3['model'][_0x3670('0x5')][_0x3670('0x2b')](_0x5de713)&&_0x919fd3[_0x3670('0x16')][_0x3670('0x5')][_0x3670('0x2d')](_0x5de713,{'allowAttributes':_0x3670('0x22')});}),this[_0x3670('0x9')]());}['_customUpcastHeadingsConversion'](_0x300c64){this[_0x3670('0x1b')][_0x3670('0x1c')][_0x3670('0x11')]['on']('element:'+_0x300c64,(_0x4dd910,_0x14db1d,_0x41908b)=>{const {consumable:_0x34af6f,writer:_0x254644}=_0x41908b,_0x193700=_0x14db1d[_0x3670('0x30')][_0x3670('0x1')]('id'),_0x552e32=_0x14db1d[_0x3670('0x1e')][_0x3670('0x17')]();if(!(_0x193700&&_0x193700[_0x3670('0x12')]||_0x552e32['hasAttribute'](_0x3670('0x22'))))return _0x34af6f[_0x3670('0x3')](_0x14db1d[_0x3670('0x30')],{'attributes':['id']}),void _0x254644[_0x3670('0x31')]('headingId',_0x478aea(),_0x552e32);_0x34af6f[_0x3670('0x3')](_0x14db1d[_0x3670('0x30')],{'attributes':['id']})&&_0x254644[_0x3670('0x31')](_0x3670('0x22'),_0x193700,_0x552e32);},{'priority':_0x28dc85[_0x3670('0x18')](_0x3670('0x13'))+0.5});}[_0x3670('0x8')](_0x2cc346){this[_0x3670('0x1b')][_0x3670('0x1a')][_0x3670('0x6')](_0x3670('0x21'))[_0x3670('0x15')](_0x1f35fd=>_0x1f35fd['on'](_0x3670('0xd')+_0x2cc346,(_0x42f67b,_0x3935fb,_0x44f501)=>{if(!_0x44f501['consumable']['consume'](_0x3935fb[_0x3670('0x25')],_0x42f67b[_0x3670('0x32')]))return;const _0x305b82=_0x3935fb[_0x3670('0x25')]['getAttribute'](_0x3670('0x22')),_0x39694d=_0x44f501[_0x3670('0x27')][_0x3670('0x7')](_0x3935fb['item']);_0x44f501[_0x3670('0xe')][_0x3670('0x31')]('id',_0x305b82,_0x39694d);}));}[_0x3670('0x9')](){const _0x27ed6f=this[_0x3670('0x1b')],_0x11c82d=new Set(),_0x36ad30=new Set();function _0x38121f(_0x620b9f,_0x20659f){const _0x2a72ff=_0x478aea();return _0x36ad30['add'](_0x2a72ff),_0x620b9f['setAttribute'](_0x3670('0x22'),_0x2a72ff,_0x20659f),_0x2a72ff;}function _0x41d4c0(_0x334366,_0x2f2b9c){_0x334366['removeAttribute']('headingId',_0x2f2b9c);}_0x27ed6f[_0x3670('0x16')][_0x3670('0x2c')][_0x3670('0x33')](_0x236184=>{const _0xa15341=_0x27ed6f[_0x3670('0x16')][_0x3670('0x2c')][_0x3670('0x1d')][_0x3670('0x2')]();let _0x12af9c=!0x1;for(const _0x49137d of _0xa15341)if(_0x3670('0x29')==_0x49137d[_0x3670('0x2f')]&&_0x49137d[_0x3670('0x32')]){if(_0x49137d[_0x3670('0x32')]['match'](/heading\d/)){const _0x5c6e22=_0x49137d[_0x3670('0x28')][_0x3670('0x18')](_0x3670('0x22'));_0x3670('0x26')==typeof _0x5c6e22?_0x11c82d[_0x3670('0x24')](_0x5c6e22)?(_0x38121f(_0x236184,_0x49137d[_0x3670('0xb')][_0x3670('0x4')]),_0x12af9c=!0x0):_0x36ad30[_0x3670('0x15')](_0x5c6e22):(_0x38121f(_0x236184,_0x49137d[_0x3670('0xb')][_0x3670('0x4')]),_0x12af9c=!0x0);}else _0x3670('0x26')==typeof _0x49137d[_0x3670('0x28')][_0x3670('0x18')](_0x3670('0x22'))&&(_0x41d4c0(_0x236184,_0x49137d[_0x3670('0xb')][_0x3670('0x4')]),_0x12af9c=!0x0);}else{if('remove'==_0x49137d[_0x3670('0x2f')]){const _0xc8a262=_0x49137d['attributes']['get']('headingId');'string'==typeof _0xc8a262&&_0x11c82d[_0x3670('0x19')](_0xc8a262);}}return _0x12af9c;}),_0x27ed6f[_0x3670('0x16')][_0x3670('0x2c')]['on'](_0x3670('0x20'),()=>{_0x36ad30['forEach'](_0x20fd69=>_0x11c82d[_0x3670('0x15')](_0x20fd69)),_0x36ad30[_0x3670('0x2e')]();});}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x58a1=['editor','isEnabled','execute','refresh','schema','model','insertObject','tableOfContents','getFirstPosition','selection'];(function(_0x23fde3,_0x58a105){const _0xf1e199=function(_0x29b99d){while(--_0x29b99d){_0x23fde3['push'](_0x23fde3['shift']());}};_0xf1e199(++_0x58a105);}(_0x58a1,0xfb));const _0xf1e1=function(_0x23fde3,_0x58a105){_0x23fde3=_0x23fde3-0x0;let _0xf1e199=_0x58a1[_0x23fde3];return _0xf1e199;};import{Command as _0x353380}from'ckeditor5/src/core';export default class O extends _0x353380{[_0xf1e1('0x1')](){this[_0xf1e1('0x9')]['model']['change'](_0x3f4797=>{this[_0xf1e1('0x9')]['model'][_0xf1e1('0x5')](_0x3f4797['createElement']('tableOfContents'));});}[_0xf1e1('0x2')](){const _0x41d26d=this[_0xf1e1('0x9')][_0xf1e1('0x4')],_0x347d7f=_0x41d26d['document'][_0xf1e1('0x8')][_0xf1e1('0x7')]();this[_0xf1e1('0x0')]=null!==(_0x347d7f&&_0x41d26d[_0xf1e1('0x3')]['findAllowedParent'](_0x347d7f,_0xf1e1('0x6')));}} | ||
const _0x4a33=['model','editor','tableOfContents','refresh','getFirstPosition','createElement','schema','execute','findAllowedParent'];(function(_0x3cad38,_0x4a33e9){const _0x31391c=function(_0x5b2a4b){while(--_0x5b2a4b){_0x3cad38['push'](_0x3cad38['shift']());}};_0x31391c(++_0x4a33e9);}(_0x4a33,0x163));const _0x3139=function(_0x3cad38,_0x4a33e9){_0x3cad38=_0x3cad38-0x0;let _0x31391c=_0x4a33[_0x3cad38];return _0x31391c;};import{Command as _0xdee933}from'ckeditor5/src/core';export default class O extends _0xdee933{[_0x3139('0x3')](){this['editor'][_0x3139('0x5')]['change'](_0x21ea63=>{this[_0x3139('0x6')][_0x3139('0x5')]['insertObject'](_0x21ea63[_0x3139('0x1')]('tableOfContents'));});}[_0x3139('0x8')](){const _0x2fe8f3=this[_0x3139('0x6')][_0x3139('0x5')],_0x155198=_0x2fe8f3['document']['selection'][_0x3139('0x0')]();this['isEnabled']=null!==(_0x155198&&_0x2fe8f3[_0x3139('0x2')][_0x3139('0x4')](_0x155198,_0x3139('0x7')));}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
import{ButtonView as _0x1ba71b}from'ckeditor5/src/ui';import{CKEditorError as _0x406b4e}from'ckeditor5/src/utils';import{Plugin as _0x60b109}from'ckeditor5/src/core';import _0x18083b from'../../theme/icons/table-of-contents.svg';export default class s extends _0x60b109{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x5fdad){super(_0x5fdad),this['_licenseKeyCheckInterval']=null;}['init'](){const _0xfa25e2=this['editor'],t=_0xfa25e2['t'];_0xfa25e2['ui']['componentFactory']['add']('tableOfContents',_0x238c12=>{const _0x4ec60c=_0xfa25e2['commands']['get']('insertTableOfContents'),_0x51cbd2=new _0x1ba71b(_0x238c12);return _0x51cbd2['set']({'label':t('Table\x20of\x20contents'),'icon':_0x18083b,'tooltip':!0x0}),_0x51cbd2['bind']('isEnabled')['to'](_0x4ec60c,'isEnabled'),this['listenTo'](_0x51cbd2,'execute',()=>{_0xfa25e2['execute']('insertTableOfContents'),_0xfa25e2['editing']['view']['focus']();}),_0x51cbd2;}),this['licenseKey']=_0xfa25e2['config']['get']('licenseKey');const _0x3fa226=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x44d6e5;for(const _0x5b5cab in _0x3fa226){const _0x10eb9d=_0x5b5cab,_0x522c67=_0x3fa226[_0x10eb9d];if('tableOfContentsLicenseKeyTrial'===_0x522c67||'tableOfContentsLicenseKeyInvalid'===_0x522c67||'tableOfContentsLicenseKeyValid'===_0x522c67||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x522c67){delete _0x3fa226[_0x10eb9d],_0x44d6e5=_0x522c67;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x44d6e5)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x406b4e('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x44d6e5&&console['info']('You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20table\x20of\x20contents\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.'),'tableOfContentsLicenseKeyTrialLimit:operations'===_0x44d6e5)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x406b4e('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x44d6e5&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}} | ||
import{ButtonView as _0x1f5178}from'ckeditor5/src/ui';import{CKEditorError as _0x28ca02}from'ckeditor5/src/utils';import{Plugin as _0x2dd408}from'ckeditor5/src/core';import _0x322f62 from'../../theme/icons/table-of-contents.svg';export default class s extends _0x2dd408{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x185ffc){super(_0x185ffc),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x57a80d=this['editor'],t=_0x57a80d['t'];_0x57a80d['ui']['componentFactory']['add']('tableOfContents',_0x1248c3=>{const _0x1ae3ec=_0x57a80d['commands']['get']('insertTableOfContents'),_0x493d32=new _0x1f5178(_0x1248c3);return _0x493d32['set']({'label':t('Table\x20of\x20contents'),'icon':_0x322f62,'tooltip':!0x0}),_0x493d32['bind']('isEnabled')['to'](_0x1ae3ec,'isEnabled'),this['listenTo'](_0x493d32,'execute',()=>{_0x57a80d['execute']('insertTableOfContents'),_0x57a80d['editing']['view']['focus']();}),_0x493d32;}),this['licenseKey']=_0x57a80d['config']['get']('licenseKey');const _0x3c8ea3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4018a3;for(const _0x1452af in _0x3c8ea3){const _0x3472bb=_0x1452af,_0x5625c2=_0x3c8ea3[_0x3472bb];if('tableOfContentsLicenseKeyTrial'===_0x5625c2||'tableOfContentsLicenseKeyInvalid'===_0x5625c2||'tableOfContentsLicenseKeyValid'===_0x5625c2||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x5625c2){delete _0x3c8ea3[_0x3472bb],_0x4018a3=_0x5625c2;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x4018a3)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x28ca02('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x4018a3&&console['info']('You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20table\x20of\x20contents\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.'),'tableOfContentsLicenseKeyTrialLimit:operations'===_0x4018a3)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x28ca02('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x4018a3&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
394305
+ Added@ckeditor/ckeditor5-clipboard@0.0.0-nightly-20230818.1(transitive)
+ Added@ckeditor/ckeditor5-core@0.0.0-nightly-20230818.1(transitive)
+ Added@ckeditor/ckeditor5-engine@0.0.0-nightly-20230818.1(transitive)
+ Added@ckeditor/ckeditor5-enter@0.0.0-nightly-20230818.1(transitive)
+ Added@ckeditor/ckeditor5-paragraph@0.0.0-nightly-20230818.1(transitive)
+ Added@ckeditor/ckeditor5-select-all@0.0.0-nightly-20230818.1(transitive)
+ Added@ckeditor/ckeditor5-typing@0.0.0-nightly-20230818.1(transitive)
+ Added@ckeditor/ckeditor5-ui@0.0.0-nightly-20230818.1(transitive)
+ Added@ckeditor/ckeditor5-undo@0.0.0-nightly-20230818.1(transitive)
+ Added@ckeditor/ckeditor5-upload@0.0.0-nightly-20230818.1(transitive)
+ Added@ckeditor/ckeditor5-utils@0.0.0-nightly-20230818.1(transitive)
+ Added@ckeditor/ckeditor5-watchdog@0.0.0-nightly-20230818.1(transitive)
+ Added@ckeditor/ckeditor5-widget@0.0.0-nightly-20230818.1(transitive)
+ Addedckeditor5@0.0.0-nightly-20230818.1(transitive)
- Removed@ckeditor/ckeditor5-clipboard@0.0.0-nightly-20230818.0(transitive)
- Removed@ckeditor/ckeditor5-core@0.0.0-nightly-20230818.0(transitive)
- Removed@ckeditor/ckeditor5-engine@0.0.0-nightly-20230818.0(transitive)
- Removed@ckeditor/ckeditor5-enter@0.0.0-nightly-20230818.0(transitive)
- Removed@ckeditor/ckeditor5-paragraph@0.0.0-nightly-20230818.0(transitive)
- Removed@ckeditor/ckeditor5-select-all@0.0.0-nightly-20230818.0(transitive)
- Removed@ckeditor/ckeditor5-typing@0.0.0-nightly-20230818.0(transitive)
- Removed@ckeditor/ckeditor5-ui@0.0.0-nightly-20230818.0(transitive)
- Removed@ckeditor/ckeditor5-undo@0.0.0-nightly-20230818.0(transitive)
- Removed@ckeditor/ckeditor5-upload@0.0.0-nightly-20230818.0(transitive)
- Removed@ckeditor/ckeditor5-utils@0.0.0-nightly-20230818.0(transitive)
- Removed@ckeditor/ckeditor5-watchdog@0.0.0-nightly-20230818.0(transitive)
- Removed@ckeditor/ckeditor5-widget@0.0.0-nightly-20230818.0(transitive)
- Removedckeditor5@0.0.0-nightly-20230818.0(transitive)