@ckeditor/ckeditor5-document-outline
Advanced tools
Comparing version 0.0.0-nightly-20230912.0 to 0.0.0-nightly-20230913.0
{ | ||
"name": "@ckeditor/ckeditor5-document-outline", | ||
"version": "0.0.0-nightly-20230912.0", | ||
"version": "0.0.0-nightly-20230913.0", | ||
"description": "Document outline feature for CKEditor 5.", | ||
@@ -15,4 +15,4 @@ "keywords": [ | ||
"dependencies": { | ||
"ckeditor5": "0.0.0-nightly-20230912.0", | ||
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20230912.0", | ||
"ckeditor5": "0.0.0-nightly-20230913.0", | ||
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20230913.0", | ||
"lodash-es": "4.17.21" | ||
@@ -19,0 +19,0 @@ }, |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x5a79=['documentOutlineLicenseKeyTrialLimit:operations','info','licenseKey','document-outline-invalid-license-key','init','documentOutlineLicenseKeyValid','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','pluginName','destroy','documentOutlineLicenseKeyInvalid','document-outline-trial-license-key-reached-limit-changes','_licenseKeyCheckInterval','requires','documentOutlineLicenseKeyTrial'];(function(_0x3f11d6,_0x5a79d8){const _0x1a89c2=function(_0x241fb6){while(--_0x241fb6){_0x3f11d6['push'](_0x3f11d6['shift']());}};_0x1a89c2(++_0x5a79d8);}(_0x5a79,0x74));const _0x1a89=function(_0x3f11d6,_0x5a79d8){_0x3f11d6=_0x3f11d6-0x0;let _0x1a89c2=_0x5a79[_0x3f11d6];return _0x1a89c2;};import{Plugin as _0x1a73ac}from'ckeditor5/src/core';import{CKEditorError as _0x443461}from'ckeditor5/src/utils';import _0x54e3c0 from'./documentoutline/documentoutlineutils';import _0x4df480 from'./documentoutline/documentoutlineui';export default class l extends _0x1a73ac{static get[_0x1a89('0x2')](){return[_0x54e3c0,_0x4df480];}static get[_0x1a89('0xc')](){return'DocumentOutline';}constructor(_0x1a0b3f){super(_0x1a0b3f),this[_0x1a89('0x1')]=null;}[_0x1a89('0x8')](){const _0xa243d7=this[_0x1a89('0xb')];this[_0x1a89('0x6')]=_0xa243d7['config']['get']('licenseKey');const _0x4da586=this['editor'];this[_0x1a89('0x1')]=setInterval(()=>{let _0x542b3f;for(const _0x11d956 in _0x4da586){const _0x24a97d=_0x11d956,_0x373145=_0x4da586[_0x24a97d];if('documentOutlineLicenseKeyTrial'===_0x373145||_0x1a89('0xe')===_0x373145||'documentOutlineLicenseKeyValid'===_0x373145||_0x1a89('0x4')===_0x373145){delete _0x4da586[_0x24a97d],_0x542b3f=_0x373145;break;}}if(_0x1a89('0xe')===_0x542b3f)throw clearInterval(this[_0x1a89('0x1')]),new _0x443461(_0x1a89('0x7'),null);if(_0x1a89('0x3')===_0x542b3f&&console[_0x1a89('0x5')](_0x1a89('0xa')),_0x1a89('0x4')===_0x542b3f)throw clearInterval(this[_0x1a89('0x1')]),new _0x443461(_0x1a89('0x0'),null);_0x1a89('0x9')===_0x542b3f&&clearInterval(this[_0x1a89('0x1')]);},0x3e8);}[_0x1a89('0xd')](){this[_0x1a89('0x1')]&&clearInterval(this[_0x1a89('0x1')]);}} | ||
const _0x1030=['documentOutlineLicenseKeyInvalid','requires','documentOutlineLicenseKeyTrialLimit:operations','info','config','DocumentOutline','destroy','licenseKey','documentOutlineLicenseKeyValid','document-outline-trial-license-key-reached-limit-changes','documentOutlineLicenseKeyTrial','_licenseKeyCheckInterval','get','document-outline-invalid-license-key','editor'];(function(_0x49c5b6,_0x103033){const _0x231644=function(_0x56750e){while(--_0x56750e){_0x49c5b6['push'](_0x49c5b6['shift']());}};_0x231644(++_0x103033);}(_0x1030,0x19a));const _0x2316=function(_0x49c5b6,_0x103033){_0x49c5b6=_0x49c5b6-0x0;let _0x231644=_0x1030[_0x49c5b6];return _0x231644;};import{Plugin as _0x1dbad5}from'ckeditor5/src/core';import{CKEditorError as _0x12f5c3}from'ckeditor5/src/utils';import _0x1bf308 from'./documentoutline/documentoutlineutils';import _0x7daacc from'./documentoutline/documentoutlineui';export default class l extends _0x1dbad5{static get[_0x2316('0xb')](){return[_0x1bf308,_0x7daacc];}static get['pluginName'](){return _0x2316('0x0');}constructor(_0x661466){super(_0x661466),this[_0x2316('0x6')]=null;}['init'](){const _0x4e3abe=this[_0x2316('0x9')];this[_0x2316('0x2')]=_0x4e3abe[_0x2316('0xe')][_0x2316('0x7')]('licenseKey');const _0x5a8e1a=this[_0x2316('0x9')];this[_0x2316('0x6')]=setInterval(()=>{let _0x1162d7;for(const _0x5df3c1 in _0x5a8e1a){const _0xa7d344=_0x5df3c1,_0x5049c4=_0x5a8e1a[_0xa7d344];if(_0x2316('0x5')===_0x5049c4||_0x2316('0xa')===_0x5049c4||_0x2316('0x3')===_0x5049c4||_0x2316('0xc')===_0x5049c4){delete _0x5a8e1a[_0xa7d344],_0x1162d7=_0x5049c4;break;}}if(_0x2316('0xa')===_0x1162d7)throw clearInterval(this[_0x2316('0x6')]),new _0x12f5c3(_0x2316('0x8'),null);if(_0x2316('0x5')===_0x1162d7&&console[_0x2316('0xd')]('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.'),'documentOutlineLicenseKeyTrialLimit:operations'===_0x1162d7)throw clearInterval(this[_0x2316('0x6')]),new _0x12f5c3(_0x2316('0x4'),null);_0x2316('0x3')===_0x1162d7&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}[_0x2316('0x1')](){this[_0x2316('0x6')]&&clearInterval(this['_licenseKeyCheckInterval']);}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x4262=['level','pluginName','data','backward','name','item','_getHeadingNames','modelElement','documentOutline.headings','get','view','activeItemIndex','toModel','_getActiveHeading','_headingNames','change','fire','domConverter','afterInit','document','element','config','text','model','DocumentOutlineUtils','selection','_deriveHeadingElementsFromConversion','indexOf','editor','getFirstPosition','getChildren','includes','init','getChild','_getOutlineDefinitions','push'];(function(_0x3d43cb,_0x4262b1){const _0x1a3dc9=function(_0x46500e){while(--_0x46500e){_0x3d43cb['push'](_0x3d43cb['shift']());}};_0x1a3dc9(++_0x4262b1);}(_0x4262,0x165));const _0x1a3d=function(_0x3d43cb,_0x4262b1){_0x3d43cb=_0x3d43cb-0x0;let _0x1a3dc9=_0x4262[_0x3d43cb];return _0x1a3dc9;};import{Plugin as _0x227809}from'ckeditor5/src/core';import{debounce as _0x14bce2}from'lodash-es';import{TreeWalker as _0x37b8f4}from'ckeditor5/src/engine';import{getElementText as _0x5d3d0e,getDefaultFeatureHeadingNames as _0x4fb839}from'./utils';import{diff as _0x3cf757,diffToChanges as _0xa63926}from'ckeditor5/src/utils';export default class n extends _0x227809{constructor(){super(...arguments),this[_0x1a3d('0x11')]=[];}static get[_0x1a3d('0x4')](){return _0x1a3d('0x1b');}[_0x1a3d('0x23')](){const _0x123de9=this[_0x1a3d('0x1f')];this[_0x1a3d('0x11')]=this[_0x1a3d('0x9')]();let _0x4ed91e=[];_0x123de9['model'][_0x1a3d('0x16')]['on'](_0x1a3d('0x12'),_0x14bce2(()=>{const _0x5124c9=_0x4ed91e;_0x4ed91e=this[_0x1a3d('0x1')]();const _0x3b4f14=_0x3cf757(_0x5124c9,_0x4ed91e,(_0xc711ec,_0x584900)=>_0xc711ec[_0x1a3d('0x3')]===_0x584900['level']&&_0xc711ec['text']===_0x584900[_0x1a3d('0x19')]&&_0xc711ec['modelElement']===_0x584900[_0x1a3d('0xa')]),_0x30f155=_0xa63926(_0x3b4f14,_0x4ed91e),_0x62e19d=this[_0x1a3d('0x10')](),_0x20e38d=_0x4ed91e['findIndex'](_0x57ea6e=>_0x57ea6e[_0x1a3d('0xa')]===_0x62e19d);_0x30f155['length']&&this['fire'](_0x1a3d('0x12'),{'outlineDefinitions':_0x4ed91e,'activeItemIndex':_0x20e38d,'outlineChanges':_0x30f155}),this[_0x1a3d('0x13')](_0x1a3d('0xe'),{'index':_0x20e38d});},0xfa,{'leading':!0x0,'trailing':!0x0}));}[_0x1a3d('0x15')](){this[_0x1a3d('0x11')]['length']||this[_0x1a3d('0x1d')]();}[_0x1a3d('0x1')](){const _0x58f4a4=this[_0x1a3d('0x1f')],_0x14d328=[],_0x584260=this[_0x1a3d('0x11')];for(const _0x1b55ae of _0x58f4a4['model'][_0x1a3d('0x16')]['getRootNames']())_0x115bba(_0x58f4a4[_0x1a3d('0x1a')][_0x1a3d('0x16')]['getRoot'](_0x1b55ae));function _0x115bba(_0x3ecdc7){for(const _0x5c2a72 of _0x3ecdc7[_0x1a3d('0x21')]())_0x5c2a72['is']('element')&&(_0x584260[_0x1a3d('0x22')](_0x5c2a72[_0x1a3d('0x7')])&&_0x14d328[_0x1a3d('0x2')]({'level':_0x584260[_0x1a3d('0x1e')](_0x5c2a72[_0x1a3d('0x7')])+0x1,'text':_0x5d3d0e(_0x5c2a72),'modelElement':_0x5c2a72}),_0x115bba(_0x5c2a72));}return _0x14d328;}[_0x1a3d('0x10')](){const _0x132d6c=this['editor'][_0x1a3d('0x1a')][_0x1a3d('0x16')][_0x1a3d('0x1c')][_0x1a3d('0x20')](),_0x48289e=new _0x37b8f4({'direction':_0x1a3d('0x6'),'startPosition':_0x132d6c});for(const _0x28594b of _0x48289e)if(_0x28594b['item']['is'](_0x1a3d('0x17'))&&this[_0x1a3d('0x11')]['includes'](_0x28594b[_0x1a3d('0x8')][_0x1a3d('0x7')]))return _0x28594b['item'];}[_0x1a3d('0x9')](){const _0x2e7021=this[_0x1a3d('0x1f')][_0x1a3d('0x18')][_0x1a3d('0xc')](_0x1a3d('0xb'));return _0x2e7021||_0x4fb839(this[_0x1a3d('0x1f')]);}['_deriveHeadingElementsFromConversion'](){const _0x114499=this['editor'],_0x15ff89=['h1','h2','h3','h4','h5','h6'],_0xcc306d=[];for(const _0x153321 of _0x15ff89){const _0x5340c1=_0x114499['editing'][_0x1a3d('0xd')][_0x1a3d('0x14')]['domToView'](document['createElement'](_0x153321)),_0x26baec=_0x114499[_0x1a3d('0x5')][_0x1a3d('0xf')](_0x5340c1)[_0x1a3d('0x0')](0x0);(null==_0x26baec?void 0x0:_0x26baec['is'](_0x1a3d('0x17')))&&_0xcc306d[_0x1a3d('0x2')](_0x26baec[_0x1a3d('0x7')]);}this[_0x1a3d('0x11')]=_0xcc306d;}} | ||
const _0x130b=['name','change','_headingNames','getChild','model','push','level','DocumentOutlineUtils','indexOf','getRootNames','afterInit','config','_getActiveHeading','document','get','domToView','getChildren','domConverter','text','element','backward','documentOutline.headings','selection','modelElement','length','_getOutlineDefinitions','data','item','init','editor','getRoot','pluginName','fire','createElement'];(function(_0x6cf58e,_0x130bc3){const _0x4ae4c8=function(_0x42760b){while(--_0x42760b){_0x6cf58e['push'](_0x6cf58e['shift']());}};_0x4ae4c8(++_0x130bc3);}(_0x130b,0x80));const _0x4ae4=function(_0x6cf58e,_0x130bc3){_0x6cf58e=_0x6cf58e-0x0;let _0x4ae4c8=_0x130b[_0x6cf58e];return _0x4ae4c8;};import{Plugin as _0x2af94a}from'ckeditor5/src/core';import{debounce as _0x5f137a}from'lodash-es';import{TreeWalker as _0x303dd3}from'ckeditor5/src/engine';import{getElementText as _0x38ab48,getDefaultFeatureHeadingNames as _0x16681c}from'./utils';import{diff as _0x2d728e,diffToChanges as _0x206131}from'ckeditor5/src/utils';export default class n extends _0x2af94a{constructor(){super(...arguments),this[_0x4ae4('0xa')]=[];}static get[_0x4ae4('0x5')](){return _0x4ae4('0xf');}[_0x4ae4('0x2')](){const _0x259b22=this[_0x4ae4('0x3')];this[_0x4ae4('0xa')]=this['_getHeadingNames']();let _0x18e6b9=[];_0x259b22[_0x4ae4('0xc')][_0x4ae4('0x15')]['on'](_0x4ae4('0x9'),_0x5f137a(()=>{const _0x3c8589=_0x18e6b9;_0x18e6b9=this[_0x4ae4('0x21')]();const _0x5c98e5=_0x2d728e(_0x3c8589,_0x18e6b9,(_0x3de654,_0x589a72)=>_0x3de654[_0x4ae4('0xe')]===_0x589a72[_0x4ae4('0xe')]&&_0x3de654[_0x4ae4('0x1a')]===_0x589a72[_0x4ae4('0x1a')]&&_0x3de654[_0x4ae4('0x1f')]===_0x589a72['modelElement']),_0x211474=_0x206131(_0x5c98e5,_0x18e6b9),_0x47ad29=this[_0x4ae4('0x14')](),_0x206c48=_0x18e6b9['findIndex'](_0x198580=>_0x198580[_0x4ae4('0x1f')]===_0x47ad29);_0x211474[_0x4ae4('0x20')]&&this[_0x4ae4('0x6')]('change',{'outlineDefinitions':_0x18e6b9,'activeItemIndex':_0x206c48,'outlineChanges':_0x211474}),this[_0x4ae4('0x6')]('activeItemIndex',{'index':_0x206c48});},0xfa,{'leading':!0x0,'trailing':!0x0}));}[_0x4ae4('0x12')](){this[_0x4ae4('0xa')]['length']||this['_deriveHeadingElementsFromConversion']();}[_0x4ae4('0x21')](){const _0x5c083d=this[_0x4ae4('0x3')],_0x21a297=[],_0x327d82=this['_headingNames'];for(const _0x3fc388 of _0x5c083d[_0x4ae4('0xc')]['document'][_0x4ae4('0x11')]())_0x1dbe70(_0x5c083d[_0x4ae4('0xc')]['document'][_0x4ae4('0x4')](_0x3fc388));function _0x1dbe70(_0xb2bfa5){for(const _0x285a00 of _0xb2bfa5[_0x4ae4('0x18')]())_0x285a00['is']('element')&&(_0x327d82['includes'](_0x285a00[_0x4ae4('0x8')])&&_0x21a297[_0x4ae4('0xd')]({'level':_0x327d82[_0x4ae4('0x10')](_0x285a00[_0x4ae4('0x8')])+0x1,'text':_0x38ab48(_0x285a00),'modelElement':_0x285a00}),_0x1dbe70(_0x285a00));}return _0x21a297;}[_0x4ae4('0x14')](){const _0x8df555=this['editor']['model'][_0x4ae4('0x15')][_0x4ae4('0x1e')]['getFirstPosition'](),_0x18e06f=new _0x303dd3({'direction':_0x4ae4('0x1c'),'startPosition':_0x8df555});for(const _0xcc1a5e of _0x18e06f)if(_0xcc1a5e[_0x4ae4('0x1')]['is'](_0x4ae4('0x1b'))&&this[_0x4ae4('0xa')]['includes'](_0xcc1a5e[_0x4ae4('0x1')][_0x4ae4('0x8')]))return _0xcc1a5e[_0x4ae4('0x1')];}['_getHeadingNames'](){const _0xa9116d=this['editor'][_0x4ae4('0x13')][_0x4ae4('0x16')](_0x4ae4('0x1d'));return _0xa9116d||_0x16681c(this[_0x4ae4('0x3')]);}['_deriveHeadingElementsFromConversion'](){const _0x4222a9=this[_0x4ae4('0x3')],_0x2ff648=['h1','h2','h3','h4','h5','h6'],_0x3725b5=[];for(const _0x402b6e of _0x2ff648){const _0x4d4183=_0x4222a9['editing']['view'][_0x4ae4('0x19')][_0x4ae4('0x17')](document[_0x4ae4('0x7')](_0x402b6e)),_0x4f3c87=_0x4222a9[_0x4ae4('0x0')]['toModel'](_0x4d4183)[_0x4ae4('0xb')](0x0);(null==_0x4f3c87?void 0x0:_0x4f3c87['is']('element'))&&_0x3725b5[_0x4ae4('0xd')](_0x4f3c87[_0x4ae4('0x8')]);}this['_headingNames']=_0x3725b5;}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
import{View as _0x2b6f78}from'ckeditor5/src/ui';export default class $ extends _0x2b6f78{constructor(_0x111091,_0x531897=!0x1){super(_0x111091);const t=_0x111091['t'],_0x36e01d=this['bindTemplate'],_0x4652e9=_0x531897?'['+t('Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x26ef47=>!_0x26ef47),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x36e01d['to']('level',_0x3ee1e6=>'ck-document-outline__item_level-'+_0x3ee1e6),_0x36e01d['if']('isActive','ck-document-outline__item_active'),_0x36e01d['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x36e01d['to']('text')},'children':[{'text':_0x36e01d['to']('text',_0xba3212=>_0xba3212||_0x4652e9)}],'on':{'click':_0x36e01d['to']('click')}});}} | ||
import{View as _0x201fd8}from'ckeditor5/src/ui';export default class $ extends _0x201fd8{constructor(_0x5c317a,_0x2fba4c=!0x1){super(_0x5c317a);const t=_0x5c317a['t'],_0xc1a412=this['bindTemplate'],_0x1077a2=_0x2fba4c?'['+t('Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x6620af=>!_0x6620af),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0xc1a412['to']('level',_0x28443e=>'ck-document-outline__item_level-'+_0x28443e),_0xc1a412['if']('isActive','ck-document-outline__item_active'),_0xc1a412['if']('isEmpty','ck-document-outline__item_empty')],'title':_0xc1a412['to']('text')},'children':[{'text':_0xc1a412['to']('text',_0x394f62=>_0x394f62||_0x1077a2)}],'on':{'click':_0xc1a412['to']('click')}});}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
import{View as _0xa0d6a8}from'ckeditor5/src/ui';import{scrollAncestorsToShowTarget as _0x484376}from'ckeditor5/src/utils';import _0x2b3a84 from'./documentoutlineitemview';export default class d extends _0xa0d6a8{constructor(_0x4e0842,_0x4981ad=!0x1,_0xa24489){super(_0x4e0842);const t=_0x4e0842['t'];this['showEmptyHeadingText']=_0x4981ad,this['set']('activeItemIndex',-0x1),this['_documentOutlineContainer']=_0xa24489,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x5ede6c,_0x473a69,_0x2c3498,_0x593943)=>{this['_setActiveItem'](_0x593943,_0x2c3498);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x4e0842['contentLanguageDirection'],'data-document-outline-empty-placeholder':t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x2e639f){_0x2e639f['forEach'](_0x6a8b57=>{'insert'==_0x6a8b57['type']?this['_insertItem'](_0x6a8b57['index'],..._0x6a8b57['values']):'delete'==_0x6a8b57['type']&&this['_deleteItem'](_0x6a8b57['index'],_0x6a8b57['howMany']);});}['_setActiveItem'](_0x1982eb,_0x20b4c4){if(-0x1!==_0x1982eb){const _0x44e270=this['items']['get'](_0x1982eb);_0x44e270&&(_0x44e270['isActive']=!0x1);}-0x1!==_0x20b4c4&&(this['items']['get'](_0x20b4c4)['isActive']=!0x0,this['_scrollToItem'](_0x20b4c4));}['_insertItem'](_0x370f06,..._0x5958bf){const _0x131e83=_0x5958bf['map']((_0x44a043,_0x3ac90e)=>{const _0x1d25c8=new _0x2b3a84(this['locale'],this['showEmptyHeadingText']);return _0x1d25c8['text']=_0x44a043['text'],_0x1d25c8['level']=_0x44a043['level'],_0x370f06+_0x3ac90e===this['activeItemIndex']&&(_0x1d25c8['isActive']=!0x0),_0x1d25c8;});this['items']['addMany'](_0x131e83,_0x370f06);}['_deleteItem'](_0x13bb40,_0x2dd3ee){do{this['items']['remove'](_0x13bb40);}while(--_0x2dd3ee);}['_handleItemClick'](_0x42aab1){const _0x557263=this['items']['getIndex'](_0x42aab1['source']);this['fire']('itemSelected',_0x557263);}['_scrollToItem'](_0x53d019){_0x484376(this['items']['get'](_0x53d019)['element'],0x14,this['_documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}} | ||
import{View as _0x5185b9}from'ckeditor5/src/ui';import{scrollAncestorsToShowTarget as _0x24b0f6}from'ckeditor5/src/utils';import _0x326a4b from'./documentoutlineitemview';export default class d extends _0x5185b9{constructor(_0x1ca4d4,_0x533e29=!0x1,_0x459716){super(_0x1ca4d4);const t=_0x1ca4d4['t'];this['showEmptyHeadingText']=_0x533e29,this['set']('activeItemIndex',-0x1),this['_documentOutlineContainer']=_0x459716,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x3034f2,_0x591888,_0x3cbb59,_0x4ebf6b)=>{this['_setActiveItem'](_0x4ebf6b,_0x3cbb59);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x1ca4d4['contentLanguageDirection'],'data-document-outline-empty-placeholder':t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x20dd86){_0x20dd86['forEach'](_0x255343=>{'insert'==_0x255343['type']?this['_insertItem'](_0x255343['index'],..._0x255343['values']):'delete'==_0x255343['type']&&this['_deleteItem'](_0x255343['index'],_0x255343['howMany']);});}['_setActiveItem'](_0x583d78,_0x616800){if(-0x1!==_0x583d78){const _0x5ed8be=this['items']['get'](_0x583d78);_0x5ed8be&&(_0x5ed8be['isActive']=!0x1);}-0x1!==_0x616800&&(this['items']['get'](_0x616800)['isActive']=!0x0,this['_scrollToItem'](_0x616800));}['_insertItem'](_0x1ceb19,..._0x34c891){const _0xf54759=_0x34c891['map']((_0x19928b,_0x12db57)=>{const _0x395460=new _0x326a4b(this['locale'],this['showEmptyHeadingText']);return _0x395460['text']=_0x19928b['text'],_0x395460['level']=_0x19928b['level'],_0x1ceb19+_0x12db57===this['activeItemIndex']&&(_0x395460['isActive']=!0x0),_0x395460;});this['items']['addMany'](_0xf54759,_0x1ceb19);}['_deleteItem'](_0x4150d0,_0x2b4bff){do{this['items']['remove'](_0x4150d0);}while(--_0x2b4bff);}['_handleItemClick'](_0xbcc6d1){const _0x5aee16=this['items']['getIndex'](_0xbcc6d1['source']);this['fire']('itemSelected',_0x5aee16);}['_scrollToItem'](_0xf0ee92){_0x24b0f6(this['items']['get'](_0xf0ee92)['element'],0x14,this['_documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x8ba2=['htmlH2','plugins','htmlH3','paragraph','reduce','push','heading.options','htmlH6','model','data','htmlH1','get','getChildren','htmlH5','htmlH4','config','has','GeneralHtmlSupport'];(function(_0x48d5fd,_0x8ba288){const _0x2c8a8a=function(_0x4000e9){while(--_0x4000e9){_0x48d5fd['push'](_0x48d5fd['shift']());}};_0x2c8a8a(++_0x8ba288);}(_0x8ba2,0x196));const _0x2c8a=function(_0x48d5fd,_0x8ba288){_0x48d5fd=_0x48d5fd-0x0;let _0x2c8a8a=_0x8ba2[_0x48d5fd];return _0x2c8a8a;};import{Text as _0x4ae84c}from'ckeditor5/src/engine';export function getElementText(_0xc95f2f){let _0x3702cf='';for(const _0x461673 of _0xc95f2f[_0x2c8a('0x2')]())_0x461673 instanceof _0x4ae84c&&(_0x3702cf+=_0x461673[_0x2c8a('0x11')]);return _0x3702cf;}export function getDefaultFeatureHeadingNames(_0x5d4058){const _0x445785=_0x5d4058[_0x2c8a('0x5')][_0x2c8a('0x1')](_0x2c8a('0xe'));return _0x445785?_0x445785[_0x2c8a('0xc')]((_0x340d23,_0x305bdc)=>(_0x2c8a('0xb')!==_0x305bdc[_0x2c8a('0x10')]&&_0x340d23[_0x2c8a('0xd')](_0x305bdc[_0x2c8a('0x10')]),_0x340d23),[]):_0x5d4058[_0x2c8a('0x9')][_0x2c8a('0x6')](_0x2c8a('0x7'))?[_0x2c8a('0x0'),_0x2c8a('0x8'),_0x2c8a('0xa'),_0x2c8a('0x4'),_0x2c8a('0x3'),_0x2c8a('0xf')]:[];} | ||
const _0x1352=['GeneralHtmlSupport','htmlH3','htmlH6','heading.options','data','htmlH2','paragraph','htmlH5','get','has','model','getChildren','htmlH4'];(function(_0x154a3a,_0x135207){const _0x5d982b=function(_0x1329da){while(--_0x1329da){_0x154a3a['push'](_0x154a3a['shift']());}};_0x5d982b(++_0x135207);}(_0x1352,0x69));const _0x5d98=function(_0x154a3a,_0x135207){_0x154a3a=_0x154a3a-0x0;let _0x5d982b=_0x1352[_0x154a3a];return _0x5d982b;};import{Text as _0x43ceb1}from'ckeditor5/src/engine';export function getElementText(_0x34ac69){let _0x25d18a='';for(const _0x590b7b of _0x34ac69[_0x5d98('0xa')]())_0x590b7b instanceof _0x43ceb1&&(_0x25d18a+=_0x590b7b[_0x5d98('0x3')]);return _0x25d18a;}export function getDefaultFeatureHeadingNames(_0x5c000c){const _0x18f4bb=_0x5c000c['config'][_0x5d98('0x7')](_0x5d98('0x2'));return _0x18f4bb?_0x18f4bb['reduce']((_0x29bc6e,_0x1fca94)=>(_0x5d98('0x5')!==_0x1fca94[_0x5d98('0x9')]&&_0x29bc6e['push'](_0x1fca94[_0x5d98('0x9')]),_0x29bc6e),[]):_0x5c000c['plugins'][_0x5d98('0x8')](_0x5d98('0xc'))?['htmlH1',_0x5d98('0x4'),_0x5d98('0x0'),_0x5d98('0xb'),_0x5d98('0x6'),_0x5d98('0x1')]:[];} |
@@ -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 _0x4dcf4f 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':_0x4dcf4f};import'./augmentation'; | ||
export{default as DocumentOutline}from'./documentoutline';export{default as DocumentOutlineUI}from'./documentoutline/documentoutlineui';export{default as DocumentOutlineUtils}from'./documentoutline/documentoutlineutils';import _0x1b885e 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':_0x1b885e};import'./augmentation'; |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
var _0x4ab9=['pluginName','TableOfContents','requires'];(function(_0x313f0d,_0x4ab97b){var _0x106113=function(_0x348690){while(--_0x348690){_0x313f0d['push'](_0x313f0d['shift']());}};_0x106113(++_0x4ab97b);}(_0x4ab9,0x133));var _0x1061=function(_0x313f0d,_0x4ab97b){_0x313f0d=_0x313f0d-0x0;var _0x106113=_0x4ab9[_0x313f0d];return _0x106113;};import{Plugin as _0x1a1c2e}from'ckeditor5/src/core';import _0x4a16f7 from'./tableofcontents/tableofcontentsediting';import _0x2b0871 from'./tableofcontents/tableofcontentsui';export default class c extends _0x1a1c2e{static get[_0x1061('0x1')](){return[_0x4a16f7,_0x2b0871];}static get[_0x1061('0x2')](){return _0x1061('0x0');}} | ||
var _0x2451=['pluginName','requires'];(function(_0xfbb7ea,_0x245180){var _0x36b5c9=function(_0x18074b){while(--_0x18074b){_0xfbb7ea['push'](_0xfbb7ea['shift']());}};_0x36b5c9(++_0x245180);}(_0x2451,0xa6));var _0x36b5=function(_0xfbb7ea,_0x245180){_0xfbb7ea=_0xfbb7ea-0x0;var _0x36b5c9=_0x2451[_0xfbb7ea];return _0x36b5c9;};import{Plugin as _0x3cc835}from'ckeditor5/src/core';import _0xa9a38 from'./tableofcontents/tableofcontentsediting';import _0x2ede60 from'./tableofcontents/tableofcontentsui';export default class c extends _0x3cc835{static get[_0x36b5('0x1')](){return[_0xa9a38,_0x2ede60];}static get[_0x36b5('0x0')](){return'TableOfContents';}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x3bab=['forEach','schema','nodeAfter','attributes','remove','heading.options','getChanges','downcast','consume','_customUpcastHeadingsConversion','string','add','removeAttribute','document','modelRange','name','differ','delete','length','clear','item','element:','afterInit','writer','registerPostFixer','hasAttribute','view','getAttribute','HeadingId','_customDataDowncastHeadingsConversion','_registerHeadingIdAttributePostfixer','viewItem','position','headingId','match','get','config','upcastDispatcher','conversion','getContainedElement','toViewElement','set','for','model','setAttribute','data','type','editor','insert','low','attribute:headingId:'];(function(_0x2307cd,_0x3baba0){const _0x343c1c=function(_0x347939){while(--_0x347939){_0x2307cd['push'](_0x2307cd['shift']());}};_0x343c1c(++_0x3baba0);}(_0x3bab,0xf7));const _0x343c=function(_0x2307cd,_0x3baba0){_0x2307cd=_0x2307cd-0x0;let _0x343c1c=_0x3bab[_0x2307cd];return _0x343c1c;};import{Plugin as _0x496c3f}from'ckeditor5/src/core';import{uid as _0x4689cb,priorities as _0x58d03a}from'ckeditor5/src/utils';export default class A extends _0x496c3f{static get['pluginName'](){return _0x343c('0x24');}[_0x343c('0x1e')](){const _0x11e0f6=this[_0x343c('0x4')];if(_0x11e0f6[_0x343c('0x2c')][_0x343c('0x2b')]('headingId.modelAttributeName'))return;(function(_0x400f1a){const _0x21ba50=new Map();if(_0x400f1a)return _0x400f1a[_0x343c('0x8')](_0x437ab4=>{'paragraph'!==_0x437ab4[_0x343c('0x0')]&&_0x21ba50[_0x343c('0x31')](_0x437ab4[_0x343c('0x22')],_0x437ab4['model']);}),_0x21ba50['get']('h1')||_0x21ba50[_0x343c('0x31')]('h1','heading1'),_0x21ba50;return _0x21ba50;}(this[_0x343c('0x4')][_0x343c('0x2c')][_0x343c('0x2b')](_0x343c('0xd')))['forEach']((_0x6e0e35,_0xb53e66)=>{this[_0x343c('0x11')](_0xb53e66),this[_0x343c('0x25')](_0x6e0e35),_0x11e0f6[_0x343c('0x0')][_0x343c('0x9')]['isRegistered'](_0x6e0e35)&&_0x11e0f6[_0x343c('0x0')][_0x343c('0x9')]['extend'](_0x6e0e35,{'allowAttributes':_0x343c('0x29')});}),this[_0x343c('0x26')]());}['_customUpcastHeadingsConversion'](_0xfcadd3){this['editor'][_0x343c('0x2')][_0x343c('0x2d')]['on'](_0x343c('0x1d')+_0xfcadd3,(_0x1e31ea,_0x277966,_0x30e79a)=>{const {consumable:_0x1867f6,writer:_0x389d4a}=_0x30e79a,_0x1c0881=_0x277966[_0x343c('0x27')][_0x343c('0x23')]('id'),_0x341312=_0x277966[_0x343c('0x16')][_0x343c('0x2f')]();if(!(_0x1c0881&&_0x1c0881[_0x343c('0x1a')]||_0x341312[_0x343c('0x21')]('headingId')))return _0x1867f6[_0x343c('0x10')](_0x277966[_0x343c('0x27')],{'attributes':['id']}),void _0x389d4a[_0x343c('0x1')](_0x343c('0x29'),_0x4689cb(),_0x341312);_0x1867f6[_0x343c('0x10')](_0x277966[_0x343c('0x27')],{'attributes':['id']})&&_0x389d4a[_0x343c('0x1')](_0x343c('0x29'),_0x1c0881,_0x341312);},{'priority':_0x58d03a[_0x343c('0x2b')](_0x343c('0x6'))+0.5});}[_0x343c('0x25')](_0x362ad1){this['editor'][_0x343c('0x2e')][_0x343c('0x32')](_0x343c('0xf'))[_0x343c('0x13')](_0x25691b=>_0x25691b['on'](_0x343c('0x7')+_0x362ad1,(_0x42254d,_0x1389ff,_0x64f5b2)=>{if(!_0x64f5b2['consumable'][_0x343c('0x10')](_0x1389ff[_0x343c('0x1c')],_0x42254d[_0x343c('0x17')]))return;const _0x55d52c=_0x1389ff[_0x343c('0x1c')]['getAttribute'](_0x343c('0x29')),_0x528bbc=_0x64f5b2['mapper'][_0x343c('0x30')](_0x1389ff[_0x343c('0x1c')]);_0x64f5b2[_0x343c('0x1f')][_0x343c('0x1')]('id',_0x55d52c,_0x528bbc);}));}[_0x343c('0x26')](){const _0x21ed1f=this[_0x343c('0x4')],_0x20d91e=new Set(),_0x47af86=new Set();function _0x3039d0(_0x49cac2,_0x3cf781){const _0x359950=_0x4689cb();return _0x47af86[_0x343c('0x13')](_0x359950),_0x49cac2['setAttribute'](_0x343c('0x29'),_0x359950,_0x3cf781),_0x359950;}function _0x5225e0(_0x2f97c2,_0x1ef36e){_0x2f97c2[_0x343c('0x14')]('headingId',_0x1ef36e);}_0x21ed1f[_0x343c('0x0')][_0x343c('0x15')][_0x343c('0x20')](_0x3881dd=>{const _0x590f95=_0x21ed1f[_0x343c('0x0')][_0x343c('0x15')][_0x343c('0x18')][_0x343c('0xe')]();let _0x2440e9=!0x1;for(const _0x4bb3ed of _0x590f95)if(_0x343c('0x5')==_0x4bb3ed[_0x343c('0x3')]&&_0x4bb3ed[_0x343c('0x17')]){if(_0x4bb3ed[_0x343c('0x17')][_0x343c('0x2a')](/heading\d/)){const _0x2b4905=_0x4bb3ed[_0x343c('0xb')][_0x343c('0x2b')]('headingId');_0x343c('0x12')==typeof _0x2b4905?_0x20d91e['has'](_0x2b4905)?(_0x3039d0(_0x3881dd,_0x4bb3ed[_0x343c('0x28')][_0x343c('0xa')]),_0x2440e9=!0x0):_0x47af86['add'](_0x2b4905):(_0x3039d0(_0x3881dd,_0x4bb3ed[_0x343c('0x28')]['nodeAfter']),_0x2440e9=!0x0);}else _0x343c('0x12')==typeof _0x4bb3ed['attributes'][_0x343c('0x2b')](_0x343c('0x29'))&&(_0x5225e0(_0x3881dd,_0x4bb3ed['position']['nodeAfter']),_0x2440e9=!0x0);}else{if(_0x343c('0xc')==_0x4bb3ed['type']){const _0x569d41=_0x4bb3ed['attributes']['get'](_0x343c('0x29'));_0x343c('0x12')==typeof _0x569d41&&_0x20d91e[_0x343c('0x19')](_0x569d41);}}return _0x2440e9;}),_0x21ed1f[_0x343c('0x0')][_0x343c('0x15')]['on']('change',()=>{_0x47af86[_0x343c('0x8')](_0x1f6caf=>_0x20d91e[_0x343c('0x13')](_0x1f6caf)),_0x47af86[_0x343c('0x1b')]();});}} | ||
const _0xd43c=['length','registerPostFixer','nodeAfter','_customUpcastHeadingsConversion','removeAttribute','change','forEach','headingId','set','element:','downcast','data','paragraph','_registerHeadingIdAttributePostfixer','heading1','getChanges','viewItem','view','low','remove','attributes','match','extend','setAttribute','name','hasAttribute','afterInit','conversion','has','schema','HeadingId','toViewElement','model','heading.options','document','config','getAttribute','clear','delete','add','editor','consume','string','type','headingId.modelAttributeName','mapper','get','attribute:headingId:','writer','item','for','consumable','pluginName','position','isRegistered'];(function(_0x2a1a87,_0xd43c43){const _0x42e9ac=function(_0x5936ae){while(--_0x5936ae){_0x2a1a87['push'](_0x2a1a87['shift']());}};_0x42e9ac(++_0xd43c43);}(_0xd43c,0x115));const _0x42e9=function(_0x2a1a87,_0xd43c43){_0x2a1a87=_0x2a1a87-0x0;let _0x42e9ac=_0xd43c[_0x2a1a87];return _0x42e9ac;};import{Plugin as _0x1434d9}from'ckeditor5/src/core';import{uid as _0x19d26e,priorities as _0x3a624a}from'ckeditor5/src/utils';export default class A extends _0x1434d9{static get[_0x42e9('0x32')](){return _0x42e9('0x1c');}[_0x42e9('0x18')](){const _0x2253de=this[_0x42e9('0x26')];if(_0x2253de[_0x42e9('0x21')]['get'](_0x42e9('0x2a')))return;(function(_0x137e04){const _0x51d3ac=new Map();if(_0x137e04)return _0x137e04['forEach'](_0x1b9cb6=>{_0x42e9('0xa')!==_0x1b9cb6[_0x42e9('0x1e')]&&_0x51d3ac['set'](_0x1b9cb6[_0x42e9('0xf')],_0x1b9cb6[_0x42e9('0x1e')]);}),_0x51d3ac[_0x42e9('0x2c')]('h1')||_0x51d3ac[_0x42e9('0x6')]('h1',_0x42e9('0xc')),_0x51d3ac;return _0x51d3ac;}(this['editor'][_0x42e9('0x21')]['get'](_0x42e9('0x1f')))[_0x42e9('0x4')]((_0x33469c,_0x4ed7c5)=>{this[_0x42e9('0x1')](_0x4ed7c5),this['_customDataDowncastHeadingsConversion'](_0x33469c),_0x2253de['model'][_0x42e9('0x1b')][_0x42e9('0x34')](_0x33469c)&&_0x2253de[_0x42e9('0x1e')][_0x42e9('0x1b')][_0x42e9('0x14')](_0x33469c,{'allowAttributes':_0x42e9('0x5')});}),this['_registerHeadingIdAttributePostfixer']());}[_0x42e9('0x1')](_0x994f4a){this[_0x42e9('0x26')][_0x42e9('0x9')]['upcastDispatcher']['on'](_0x42e9('0x7')+_0x994f4a,(_0x36441b,_0x512fad,_0x2fcabc)=>{const {consumable:_0x40f2c4,writer:_0x37cc33}=_0x2fcabc,_0x1e6510=_0x512fad[_0x42e9('0xe')]['getAttribute']('id'),_0x2bbbb2=_0x512fad['modelRange']['getContainedElement']();if(!(_0x1e6510&&_0x1e6510[_0x42e9('0x35')]||_0x2bbbb2[_0x42e9('0x17')](_0x42e9('0x5'))))return _0x40f2c4[_0x42e9('0x27')](_0x512fad[_0x42e9('0xe')],{'attributes':['id']}),void _0x37cc33[_0x42e9('0x15')](_0x42e9('0x5'),_0x19d26e(),_0x2bbbb2);_0x40f2c4[_0x42e9('0x27')](_0x512fad['viewItem'],{'attributes':['id']})&&_0x37cc33[_0x42e9('0x15')](_0x42e9('0x5'),_0x1e6510,_0x2bbbb2);},{'priority':_0x3a624a['get'](_0x42e9('0x10'))+0.5});}['_customDataDowncastHeadingsConversion'](_0x567439){this[_0x42e9('0x26')][_0x42e9('0x19')][_0x42e9('0x30')](_0x42e9('0x8'))[_0x42e9('0x25')](_0x14be83=>_0x14be83['on'](_0x42e9('0x2d')+_0x567439,(_0x486903,_0x29b3f5,_0x3b4352)=>{if(!_0x3b4352[_0x42e9('0x31')][_0x42e9('0x27')](_0x29b3f5['item'],_0x486903['name']))return;const _0x561f2f=_0x29b3f5[_0x42e9('0x2f')][_0x42e9('0x22')]('headingId'),_0x241c56=_0x3b4352[_0x42e9('0x2b')][_0x42e9('0x1d')](_0x29b3f5[_0x42e9('0x2f')]);_0x3b4352[_0x42e9('0x2e')][_0x42e9('0x15')]('id',_0x561f2f,_0x241c56);}));}[_0x42e9('0xb')](){const _0x33c259=this[_0x42e9('0x26')],_0x29ccdf=new Set(),_0x5c61c4=new Set();function _0x5f207b(_0x4c4cf2,_0x29a1fe){const _0x47c8bb=_0x19d26e();return _0x5c61c4[_0x42e9('0x25')](_0x47c8bb),_0x4c4cf2[_0x42e9('0x15')](_0x42e9('0x5'),_0x47c8bb,_0x29a1fe),_0x47c8bb;}function _0x5a67cf(_0x3637d5,_0x316f8f){_0x3637d5[_0x42e9('0x2')]('headingId',_0x316f8f);}_0x33c259[_0x42e9('0x1e')]['document'][_0x42e9('0x36')](_0x4d73a8=>{const _0x42c848=_0x33c259[_0x42e9('0x1e')][_0x42e9('0x20')]['differ'][_0x42e9('0xd')]();let _0x6e0ee4=!0x1;for(const _0x4d7bcc of _0x42c848)if('insert'==_0x4d7bcc[_0x42e9('0x29')]&&_0x4d7bcc[_0x42e9('0x16')]){if(_0x4d7bcc[_0x42e9('0x16')][_0x42e9('0x13')](/heading\d/)){const _0x3a206a=_0x4d7bcc[_0x42e9('0x12')]['get'](_0x42e9('0x5'));_0x42e9('0x28')==typeof _0x3a206a?_0x29ccdf[_0x42e9('0x1a')](_0x3a206a)?(_0x5f207b(_0x4d73a8,_0x4d7bcc['position']['nodeAfter']),_0x6e0ee4=!0x0):_0x5c61c4['add'](_0x3a206a):(_0x5f207b(_0x4d73a8,_0x4d7bcc[_0x42e9('0x33')][_0x42e9('0x0')]),_0x6e0ee4=!0x0);}else'string'==typeof _0x4d7bcc[_0x42e9('0x12')][_0x42e9('0x2c')](_0x42e9('0x5'))&&(_0x5a67cf(_0x4d73a8,_0x4d7bcc[_0x42e9('0x33')][_0x42e9('0x0')]),_0x6e0ee4=!0x0);}else{if(_0x42e9('0x11')==_0x4d7bcc[_0x42e9('0x29')]){const _0x2f99b8=_0x4d7bcc[_0x42e9('0x12')][_0x42e9('0x2c')](_0x42e9('0x5'));'string'==typeof _0x2f99b8&&_0x29ccdf[_0x42e9('0x24')](_0x2f99b8);}}return _0x6e0ee4;}),_0x33c259[_0x42e9('0x1e')][_0x42e9('0x20')]['on'](_0x42e9('0x3'),()=>{_0x5c61c4[_0x42e9('0x4')](_0x16f9b5=>_0x29ccdf['add'](_0x16f9b5)),_0x5c61c4[_0x42e9('0x23')]();});}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x44a3=['tableOfContents','createElement','insertObject','isEnabled','change','model','refresh','selection','findAllowedParent','editor','execute','document','schema'];(function(_0x1b7248,_0x44a38c){const _0x6d1bb8=function(_0x158dc5){while(--_0x158dc5){_0x1b7248['push'](_0x1b7248['shift']());}};_0x6d1bb8(++_0x44a38c);}(_0x44a3,0xd7));const _0x6d1b=function(_0x1b7248,_0x44a38c){_0x1b7248=_0x1b7248-0x0;let _0x6d1bb8=_0x44a3[_0x1b7248];return _0x6d1bb8;};import{Command as _0x302d4e}from'ckeditor5/src/core';export default class O extends _0x302d4e{[_0x6d1b('0x3')](){this['editor'][_0x6d1b('0xb')][_0x6d1b('0xa')](_0x5ee49f=>{this[_0x6d1b('0x2')][_0x6d1b('0xb')][_0x6d1b('0x8')](_0x5ee49f[_0x6d1b('0x7')](_0x6d1b('0x6')));});}[_0x6d1b('0xc')](){const _0xf58c88=this['editor'][_0x6d1b('0xb')],_0x1fd963=_0xf58c88[_0x6d1b('0x4')][_0x6d1b('0x0')]['getFirstPosition']();this[_0x6d1b('0x9')]=null!==(_0x1fd963&&_0xf58c88[_0x6d1b('0x5')][_0x6d1b('0x1')](_0x1fd963,_0x6d1b('0x6')));}} | ||
const _0x45b1=['editor','schema','model','isEnabled','findAllowedParent','execute','createElement','change','tableOfContents'];(function(_0x367ea4,_0x45b1df){const _0x46b617=function(_0x5f1113){while(--_0x5f1113){_0x367ea4['push'](_0x367ea4['shift']());}};_0x46b617(++_0x45b1df);}(_0x45b1,0x149));const _0x46b6=function(_0x367ea4,_0x45b1df){_0x367ea4=_0x367ea4-0x0;let _0x46b617=_0x45b1[_0x367ea4];return _0x46b617;};import{Command as _0x419090}from'ckeditor5/src/core';export default class O extends _0x419090{[_0x46b6('0x0')](){this[_0x46b6('0x4')][_0x46b6('0x6')][_0x46b6('0x2')](_0x5cd933=>{this['editor'][_0x46b6('0x6')]['insertObject'](_0x5cd933[_0x46b6('0x1')](_0x46b6('0x3')));});}['refresh'](){const _0x170329=this['editor'][_0x46b6('0x6')],_0x284231=_0x170329['document']['selection']['getFirstPosition']();this[_0x46b6('0x7')]=null!==(_0x284231&&_0x170329[_0x46b6('0x5')][_0x46b6('0x8')](_0x284231,_0x46b6('0x3')));}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
import{ButtonView as _0x57c51d}from'ckeditor5/src/ui';import{CKEditorError as _0x13bbea}from'ckeditor5/src/utils';import{Plugin as _0x512a7c}from'ckeditor5/src/core';import _0x46a247 from'../../theme/icons/table-of-contents.svg';export default class s extends _0x512a7c{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x4723a4){super(_0x4723a4),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x3dc6a5=this['editor'],t=_0x3dc6a5['t'];_0x3dc6a5['ui']['componentFactory']['add']('tableOfContents',_0x1b8807=>{const _0x48b13e=_0x3dc6a5['commands']['get']('insertTableOfContents'),_0x525f9f=new _0x57c51d(_0x1b8807);return _0x525f9f['set']({'label':t('Table\x20of\x20contents'),'icon':_0x46a247,'tooltip':!0x0}),_0x525f9f['bind']('isEnabled')['to'](_0x48b13e,'isEnabled'),this['listenTo'](_0x525f9f,'execute',()=>{_0x3dc6a5['execute']('insertTableOfContents'),_0x3dc6a5['editing']['view']['focus']();}),_0x525f9f;}),this['licenseKey']=_0x3dc6a5['config']['get']('licenseKey');const _0x37a269=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x38aefa;for(const _0x2abf9e in _0x37a269){const _0x1e73e2=_0x2abf9e,_0x314f58=_0x37a269[_0x1e73e2];if('tableOfContentsLicenseKeyTrial'===_0x314f58||'tableOfContentsLicenseKeyInvalid'===_0x314f58||'tableOfContentsLicenseKeyValid'===_0x314f58||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x314f58){delete _0x37a269[_0x1e73e2],_0x38aefa=_0x314f58;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x38aefa)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x13bbea('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x38aefa&&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'===_0x38aefa)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x13bbea('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x38aefa&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}} | ||
import{ButtonView as _0x9cc1a1}from'ckeditor5/src/ui';import{CKEditorError as _0x54e0cb}from'ckeditor5/src/utils';import{Plugin as _0x4ed1ce}from'ckeditor5/src/core';import _0x101f24 from'../../theme/icons/table-of-contents.svg';export default class s extends _0x4ed1ce{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x44cf57){super(_0x44cf57),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x4b129c=this['editor'],t=_0x4b129c['t'];_0x4b129c['ui']['componentFactory']['add']('tableOfContents',_0x45f6dd=>{const _0xb14912=_0x4b129c['commands']['get']('insertTableOfContents'),_0x4d9472=new _0x9cc1a1(_0x45f6dd);return _0x4d9472['set']({'label':t('Table\x20of\x20contents'),'icon':_0x101f24,'tooltip':!0x0}),_0x4d9472['bind']('isEnabled')['to'](_0xb14912,'isEnabled'),this['listenTo'](_0x4d9472,'execute',()=>{_0x4b129c['execute']('insertTableOfContents'),_0x4b129c['editing']['view']['focus']();}),_0x4d9472;}),this['licenseKey']=_0x4b129c['config']['get']('licenseKey');const _0x3ae8d1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1beb71;for(const _0x231f6e in _0x3ae8d1){const _0xd619e2=_0x231f6e,_0x55b331=_0x3ae8d1[_0xd619e2];if('tableOfContentsLicenseKeyTrial'===_0x55b331||'tableOfContentsLicenseKeyInvalid'===_0x55b331||'tableOfContentsLicenseKeyValid'===_0x55b331||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x55b331){delete _0x3ae8d1[_0xd619e2],_0x1beb71=_0x55b331;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x1beb71)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x54e0cb('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x1beb71&&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'===_0x1beb71)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x54e0cb('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x1beb71&&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
396211
+ Added@ckeditor/ckeditor5-clipboard@0.0.0-nightly-20230913.0(transitive)
+ Added@ckeditor/ckeditor5-core@0.0.0-nightly-20230913.0(transitive)
+ Added@ckeditor/ckeditor5-engine@0.0.0-nightly-20230913.0(transitive)
+ Added@ckeditor/ckeditor5-enter@0.0.0-nightly-20230913.0(transitive)
+ Added@ckeditor/ckeditor5-paragraph@0.0.0-nightly-20230913.0(transitive)
+ Added@ckeditor/ckeditor5-select-all@0.0.0-nightly-20230913.0(transitive)
+ Added@ckeditor/ckeditor5-typing@0.0.0-nightly-20230913.0(transitive)
+ Added@ckeditor/ckeditor5-ui@0.0.0-nightly-20230913.0(transitive)
+ Added@ckeditor/ckeditor5-undo@0.0.0-nightly-20230913.0(transitive)
+ Added@ckeditor/ckeditor5-upload@0.0.0-nightly-20230913.0(transitive)
+ Added@ckeditor/ckeditor5-utils@0.0.0-nightly-20230913.0(transitive)
+ Added@ckeditor/ckeditor5-watchdog@0.0.0-nightly-20230913.0(transitive)
+ Added@ckeditor/ckeditor5-widget@0.0.0-nightly-20230913.0(transitive)
+ Addedckeditor5@0.0.0-nightly-20230913.0(transitive)
- Removed@ckeditor/ckeditor5-clipboard@0.0.0-nightly-20230912.0(transitive)
- Removed@ckeditor/ckeditor5-core@0.0.0-nightly-20230912.0(transitive)
- Removed@ckeditor/ckeditor5-engine@0.0.0-nightly-20230912.0(transitive)
- Removed@ckeditor/ckeditor5-enter@0.0.0-nightly-20230912.0(transitive)
- Removed@ckeditor/ckeditor5-paragraph@0.0.0-nightly-20230912.0(transitive)
- Removed@ckeditor/ckeditor5-select-all@0.0.0-nightly-20230912.0(transitive)
- Removed@ckeditor/ckeditor5-typing@0.0.0-nightly-20230912.0(transitive)
- Removed@ckeditor/ckeditor5-ui@0.0.0-nightly-20230912.0(transitive)
- Removed@ckeditor/ckeditor5-undo@0.0.0-nightly-20230912.0(transitive)
- Removed@ckeditor/ckeditor5-upload@0.0.0-nightly-20230912.0(transitive)
- Removed@ckeditor/ckeditor5-utils@0.0.0-nightly-20230912.0(transitive)
- Removed@ckeditor/ckeditor5-watchdog@0.0.0-nightly-20230912.0(transitive)
- Removed@ckeditor/ckeditor5-widget@0.0.0-nightly-20230912.0(transitive)
- Removedckeditor5@0.0.0-nightly-20230912.0(transitive)