Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ckeditor/ckeditor5-document-outline

Package Overview
Dependencies
Maintainers
1
Versions
628
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-document-outline - npm Package Compare versions

Comparing version 0.0.0-nightly-20230809.0 to 0.0.0-nightly-20230810.0

6

package.json
{
"name": "@ckeditor/ckeditor5-document-outline",
"version": "0.0.0-nightly-20230809.0",
"version": "0.0.0-nightly-20230810.0",
"description": "Document outline feature for CKEditor 5.",

@@ -15,4 +15,4 @@ "keywords": [

"dependencies": {
"ckeditor5": "0.0.0-nightly-20230809.0",
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20230809.0",
"ckeditor5": "0.0.0-nightly-20230810.0",
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20230810.0",
"lodash-es": "4.17.21"

@@ -19,0 +19,0 @@ },

@@ -23,2 +23,2 @@ /*

*/
const _0x2f60=['editor','_licenseKeyCheckInterval','document-outline-trial-license-key-reached-limit-changes','licenseKey','get','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.','documentOutlineLicenseKeyValid','DocumentOutline','document-outline-invalid-license-key','destroy','requires','documentOutlineLicenseKeyTrialLimit:operations','pluginName','init','documentOutlineLicenseKeyTrial','documentOutlineLicenseKeyInvalid'];(function(_0x27c11c,_0x2f6046){const _0x5eb242=function(_0x52ff7f){while(--_0x52ff7f){_0x27c11c['push'](_0x27c11c['shift']());}};_0x5eb242(++_0x2f6046);}(_0x2f60,0x10b));const _0x5eb2=function(_0x27c11c,_0x2f6046){_0x27c11c=_0x27c11c-0x0;let _0x5eb242=_0x2f60[_0x27c11c];return _0x5eb242;};import{Plugin as _0x56c951}from'ckeditor5/src/core';import{CKEditorError as _0x23da3d}from'ckeditor5/src/utils';import _0x3363ef from'./documentoutline/documentoutlineutils';import _0x5b6689 from'./documentoutline/documentoutlineui';export default class l extends _0x56c951{static get[_0x5eb2('0xf')](){return[_0x3363ef,_0x5b6689];}static get[_0x5eb2('0x1')](){return _0x5eb2('0xc');}constructor(_0x1a7c10){super(_0x1a7c10),this['_licenseKeyCheckInterval']=null;}[_0x5eb2('0x2')](){const _0x1cdb70=this[_0x5eb2('0x5')];this[_0x5eb2('0x8')]=_0x1cdb70['config'][_0x5eb2('0x9')](_0x5eb2('0x8'));const _0x50bb96=this[_0x5eb2('0x5')];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5a22d5;for(const _0x457cb4 in _0x50bb96){const _0x16b001=_0x457cb4,_0x1abe3c=_0x50bb96[_0x16b001];if(_0x5eb2('0x3')===_0x1abe3c||'documentOutlineLicenseKeyInvalid'===_0x1abe3c||_0x5eb2('0xb')===_0x1abe3c||_0x5eb2('0x0')===_0x1abe3c){delete _0x50bb96[_0x16b001],_0x5a22d5=_0x1abe3c;break;}}if(_0x5eb2('0x4')===_0x5a22d5)throw clearInterval(this[_0x5eb2('0x6')]),new _0x23da3d(_0x5eb2('0xd'),null);if(_0x5eb2('0x3')===_0x5a22d5&&console['info'](_0x5eb2('0xa')),_0x5eb2('0x0')===_0x5a22d5)throw clearInterval(this[_0x5eb2('0x6')]),new _0x23da3d(_0x5eb2('0x7'),null);_0x5eb2('0xb')===_0x5a22d5&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}[_0x5eb2('0xe')](){this[_0x5eb2('0x6')]&&clearInterval(this['_licenseKeyCheckInterval']);}}
const _0x1d97=['documentOutlineLicenseKeyTrialLimit:operations','_licenseKeyCheckInterval','document-outline-invalid-license-key','requires','document-outline-trial-license-key-reached-limit-changes','destroy','licenseKey','init','pluginName','config','documentOutlineLicenseKeyValid','info','DocumentOutline','editor','documentOutlineLicenseKeyInvalid','get','documentOutlineLicenseKeyTrial'];(function(_0x13ba11,_0x1d97a7){const _0x4df45a=function(_0x29cb77){while(--_0x29cb77){_0x13ba11['push'](_0x13ba11['shift']());}};_0x4df45a(++_0x1d97a7);}(_0x1d97,0xb6));const _0x4df4=function(_0x13ba11,_0x1d97a7){_0x13ba11=_0x13ba11-0x0;let _0x4df45a=_0x1d97[_0x13ba11];return _0x4df45a;};import{Plugin as _0x1849f2}from'ckeditor5/src/core';import{CKEditorError as _0x546997}from'ckeditor5/src/utils';import _0x370515 from'./documentoutline/documentoutlineutils';import _0x2348d1 from'./documentoutline/documentoutlineui';export default class l extends _0x1849f2{static get[_0x4df4('0x8')](){return[_0x370515,_0x2348d1];}static get[_0x4df4('0xd')](){return _0x4df4('0x0');}constructor(_0x289920){super(_0x289920),this[_0x4df4('0x6')]=null;}[_0x4df4('0xc')](){const _0xdf87d1=this[_0x4df4('0x1')];this[_0x4df4('0xb')]=_0xdf87d1[_0x4df4('0xe')][_0x4df4('0x3')](_0x4df4('0xb'));const _0x183615=this[_0x4df4('0x1')];this[_0x4df4('0x6')]=setInterval(()=>{let _0x3e570f;for(const _0x34e24a in _0x183615){const _0x351955=_0x34e24a,_0x3f4c43=_0x183615[_0x351955];if(_0x4df4('0x4')===_0x3f4c43||'documentOutlineLicenseKeyInvalid'===_0x3f4c43||_0x4df4('0xf')===_0x3f4c43||_0x4df4('0x5')===_0x3f4c43){delete _0x183615[_0x351955],_0x3e570f=_0x3f4c43;break;}}if(_0x4df4('0x2')===_0x3e570f)throw clearInterval(this[_0x4df4('0x6')]),new _0x546997(_0x4df4('0x7'),null);if('documentOutlineLicenseKeyTrial'===_0x3e570f&&console[_0x4df4('0x10')]('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.'),_0x4df4('0x5')===_0x3e570f)throw clearInterval(this[_0x4df4('0x6')]),new _0x546997(_0x4df4('0x9'),null);'documentOutlineLicenseKeyValid'===_0x3e570f&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}[_0x4df4('0xa')](){this[_0x4df4('0x6')]&&clearInterval(this[_0x4df4('0x6')]);}}

@@ -23,2 +23,2 @@ /*

*/
const _0x2d69=['_deriveHeadingElementsFromConversion','activeItemIndex','domConverter','push','length','_getHeadingNames','toModel','getRootNames','name','includes','fire','_headingNames','element','view','editing','_getOutlineDefinitions','text','getChildren','model','editor','get','DocumentOutlineUtils','item','indexOf','change','getChild','createElement','modelElement','domToView','document'];(function(_0x57a6d9,_0x2d69a2){const _0x59a069=function(_0x55eba0){while(--_0x55eba0){_0x57a6d9['push'](_0x57a6d9['shift']());}};_0x59a069(++_0x2d69a2);}(_0x2d69,0x1d4));const _0x59a0=function(_0x57a6d9,_0x2d69a2){_0x57a6d9=_0x57a6d9-0x0;let _0x59a069=_0x2d69[_0x57a6d9];return _0x59a069;};import{Plugin as _0xdb05bf}from'ckeditor5/src/core';import{debounce as _0x1ed899}from'lodash-es';import{TreeWalker as _0xad1c35}from'ckeditor5/src/engine';import{getElementText as _0x426d45,getDefaultFeatureHeadingNames as _0x12426b}from'./utils';import{diff as _0x2bb571,diffToChanges as _0x3e5f20}from'ckeditor5/src/utils';export default class n extends _0xdb05bf{constructor(){super(...arguments),this['_headingNames']=[];}static get['pluginName'](){return _0x59a0('0x3');}['init'](){const _0x404c35=this['editor'];this['_headingNames']=this[_0x59a0('0x11')]();let _0x4afbb6=[];_0x404c35[_0x59a0('0x0')][_0x59a0('0xb')]['on']('change',_0x1ed899(()=>{const _0x19b5a9=_0x4afbb6;_0x4afbb6=this[_0x59a0('0x1b')]();const _0x1cd5a9=_0x2bb571(_0x19b5a9,_0x4afbb6,(_0x4ca9c6,_0x597ee6)=>_0x4ca9c6['level']===_0x597ee6['level']&&_0x4ca9c6[_0x59a0('0x1c')]===_0x597ee6['text']&&_0x4ca9c6[_0x59a0('0x9')]===_0x597ee6[_0x59a0('0x9')]),_0x44d447=_0x3e5f20(_0x1cd5a9,_0x4afbb6),_0x1d1aea=this['_getActiveHeading'](),_0x234662=_0x4afbb6['findIndex'](_0x90a4d4=>_0x90a4d4[_0x59a0('0x9')]===_0x1d1aea);_0x44d447[_0x59a0('0x10')]&&this[_0x59a0('0x16')](_0x59a0('0x6'),{'outlineDefinitions':_0x4afbb6,'activeItemIndex':_0x234662,'outlineChanges':_0x44d447}),this[_0x59a0('0x16')](_0x59a0('0xd'),{'index':_0x234662});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this[_0x59a0('0xc')]();}[_0x59a0('0x1b')](){const _0x3efdd7=this['editor'],_0x271e1e=[],_0x45a417=this['_headingNames'];for(const _0x2d8d0a of _0x3efdd7['model'][_0x59a0('0xb')][_0x59a0('0x13')]())_0x1ac056(_0x3efdd7[_0x59a0('0x0')]['document']['getRoot'](_0x2d8d0a));function _0x1ac056(_0x3178af){for(const _0x36dff3 of _0x3178af[_0x59a0('0x1d')]())_0x36dff3['is'](_0x59a0('0x18'))&&(_0x45a417[_0x59a0('0x15')](_0x36dff3[_0x59a0('0x14')])&&_0x271e1e[_0x59a0('0xf')]({'level':_0x45a417[_0x59a0('0x5')](_0x36dff3[_0x59a0('0x14')])+0x1,'text':_0x426d45(_0x36dff3),'modelElement':_0x36dff3}),_0x1ac056(_0x36dff3));}return _0x271e1e;}['_getActiveHeading'](){const _0x52efd2=this[_0x59a0('0x1')][_0x59a0('0x0')][_0x59a0('0xb')]['selection']['getFirstPosition'](),_0x4f2b86=new _0xad1c35({'direction':'backward','startPosition':_0x52efd2});for(const _0x25b2ba of _0x4f2b86)if(_0x25b2ba['item']['is']('element')&&this[_0x59a0('0x17')][_0x59a0('0x15')](_0x25b2ba[_0x59a0('0x4')][_0x59a0('0x14')]))return _0x25b2ba[_0x59a0('0x4')];}[_0x59a0('0x11')](){const _0x29ffa4=this[_0x59a0('0x1')]['config'][_0x59a0('0x2')]('documentOutline.headings');return _0x29ffa4||_0x12426b(this[_0x59a0('0x1')]);}['_deriveHeadingElementsFromConversion'](){const _0x34ab8a=this[_0x59a0('0x1')],_0x2b7bcb=['h1','h2','h3','h4','h5','h6'],_0x449778=[];for(const _0x34a578 of _0x2b7bcb){const _0xa94729=_0x34ab8a[_0x59a0('0x1a')][_0x59a0('0x19')][_0x59a0('0xe')][_0x59a0('0xa')](document[_0x59a0('0x8')](_0x34a578)),_0x44260a=_0x34ab8a['data'][_0x59a0('0x12')](_0xa94729)[_0x59a0('0x7')](0x0);(null==_0x44260a?void 0x0:_0x44260a['is'](_0x59a0('0x18')))&&_0x449778['push'](_0x44260a[_0x59a0('0x14')]);}this[_0x59a0('0x17')]=_0x449778;}}
const _0x400e=['selection','getRoot','level','_deriveHeadingElementsFromConversion','_getActiveHeading','item','activeItemIndex','text','view','domConverter','get','modelElement','push','domToView','_getOutlineDefinitions','includes','data','afterInit','_getHeadingNames','DocumentOutlineUtils','fire','getChildren','backward','getChild','indexOf','editing','findIndex','length','name','editor','_headingNames','createElement','change','toModel','element','model','document'];(function(_0x89cd3d,_0x400ede){const _0x45e324=function(_0x453d3f){while(--_0x453d3f){_0x89cd3d['push'](_0x89cd3d['shift']());}};_0x45e324(++_0x400ede);}(_0x400e,0x88));const _0x45e3=function(_0x89cd3d,_0x400ede){_0x89cd3d=_0x89cd3d-0x0;let _0x45e324=_0x400e[_0x89cd3d];return _0x45e324;};import{Plugin as _0x3b5ddf}from'ckeditor5/src/core';import{debounce as _0x5e0495}from'lodash-es';import{TreeWalker as _0x2be3d3}from'ckeditor5/src/engine';import{getElementText as _0x179bdb,getDefaultFeatureHeadingNames as _0x14be9d}from'./utils';import{diff as _0x4f4712,diffToChanges as _0x2970bd}from'ckeditor5/src/utils';export default class n extends _0x3b5ddf{constructor(){super(...arguments),this[_0x45e3('0x5')]=[];}static get['pluginName'](){return _0x45e3('0x1f');}['init'](){const _0x9689d9=this[_0x45e3('0x4')];this[_0x45e3('0x5')]=this[_0x45e3('0x1e')]();let _0x56d979=[];_0x9689d9[_0x45e3('0xa')][_0x45e3('0xb')]['on']('change',_0x5e0495(()=>{const _0x32283=_0x56d979;_0x56d979=this['_getOutlineDefinitions']();const _0x36eb54=_0x4f4712(_0x32283,_0x56d979,(_0x26fb5c,_0x32531a)=>_0x26fb5c[_0x45e3('0xe')]===_0x32531a[_0x45e3('0xe')]&&_0x26fb5c['text']===_0x32531a[_0x45e3('0x13')]&&_0x26fb5c[_0x45e3('0x17')]===_0x32531a[_0x45e3('0x17')]),_0x18d57e=_0x2970bd(_0x36eb54,_0x56d979),_0x2907cb=this[_0x45e3('0x10')](),_0x3346d6=_0x56d979[_0x45e3('0x1')](_0x16db28=>_0x16db28[_0x45e3('0x17')]===_0x2907cb);_0x18d57e[_0x45e3('0x2')]&&this['fire'](_0x45e3('0x7'),{'outlineDefinitions':_0x56d979,'activeItemIndex':_0x3346d6,'outlineChanges':_0x18d57e}),this[_0x45e3('0x20')](_0x45e3('0x12'),{'index':_0x3346d6});},0xfa,{'leading':!0x0,'trailing':!0x0}));}[_0x45e3('0x1d')](){this['_headingNames'][_0x45e3('0x2')]||this[_0x45e3('0xf')]();}[_0x45e3('0x1a')](){const _0x2f2c23=this[_0x45e3('0x4')],_0x59a342=[],_0x386e23=this['_headingNames'];for(const _0x386961 of _0x2f2c23[_0x45e3('0xa')][_0x45e3('0xb')]['getRootNames']())_0x183570(_0x2f2c23[_0x45e3('0xa')][_0x45e3('0xb')][_0x45e3('0xd')](_0x386961));function _0x183570(_0x5518ff){for(const _0x17bfe2 of _0x5518ff[_0x45e3('0x21')]())_0x17bfe2['is'](_0x45e3('0x9'))&&(_0x386e23[_0x45e3('0x1b')](_0x17bfe2[_0x45e3('0x3')])&&_0x59a342[_0x45e3('0x18')]({'level':_0x386e23[_0x45e3('0x24')](_0x17bfe2['name'])+0x1,'text':_0x179bdb(_0x17bfe2),'modelElement':_0x17bfe2}),_0x183570(_0x17bfe2));}return _0x59a342;}[_0x45e3('0x10')](){const _0x1b6e35=this['editor'][_0x45e3('0xa')][_0x45e3('0xb')][_0x45e3('0xc')]['getFirstPosition'](),_0x42d626=new _0x2be3d3({'direction':_0x45e3('0x22'),'startPosition':_0x1b6e35});for(const _0x31fb1e of _0x42d626)if(_0x31fb1e[_0x45e3('0x11')]['is']('element')&&this['_headingNames'][_0x45e3('0x1b')](_0x31fb1e['item'][_0x45e3('0x3')]))return _0x31fb1e[_0x45e3('0x11')];}[_0x45e3('0x1e')](){const _0x409a75=this[_0x45e3('0x4')]['config'][_0x45e3('0x16')]('documentOutline.headings');return _0x409a75||_0x14be9d(this[_0x45e3('0x4')]);}['_deriveHeadingElementsFromConversion'](){const _0x21cb7a=this[_0x45e3('0x4')],_0x1134a1=['h1','h2','h3','h4','h5','h6'],_0x34b94b=[];for(const _0x26bcf0 of _0x1134a1){const _0x1ec48a=_0x21cb7a[_0x45e3('0x0')][_0x45e3('0x14')][_0x45e3('0x15')][_0x45e3('0x19')](document[_0x45e3('0x6')](_0x26bcf0)),_0x3dddb6=_0x21cb7a[_0x45e3('0x1c')][_0x45e3('0x8')](_0x1ec48a)[_0x45e3('0x23')](0x0);(null==_0x3dddb6?void 0x0:_0x3dddb6['is'](_0x45e3('0x9')))&&_0x34b94b[_0x45e3('0x18')](_0x3dddb6[_0x45e3('0x3')]);}this[_0x45e3('0x5')]=_0x34b94b;}}

@@ -23,2 +23,2 @@ /*

*/
import{View as _0x2d75a9}from'ckeditor5/src/ui';export default class $ extends _0x2d75a9{constructor(_0x32a181,_0x37baa5=!0x1){super(_0x32a181);const t=_0x32a181['t'],_0x36e6ad=this['bindTemplate'],_0xdf58c7=_0x37baa5?'['+t('Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x1bd587=>!_0x1bd587),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x36e6ad['to']('level',_0x224ecb=>'ck-document-outline__item_level-'+_0x224ecb),_0x36e6ad['if']('isActive','ck-document-outline__item_active'),_0x36e6ad['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x36e6ad['to']('text')},'children':[{'text':_0x36e6ad['to']('text',_0x3e6d3e=>_0x3e6d3e||_0xdf58c7)}],'on':{'click':_0x36e6ad['to']('click')}});}}
import{View as _0x26481e}from'ckeditor5/src/ui';export default class $ extends _0x26481e{constructor(_0x492b66,_0x27f16c=!0x1){super(_0x492b66);const t=_0x492b66['t'],_0x2cfaaa=this['bindTemplate'],_0x4fdd81=_0x27f16c?'['+t('Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x94b1f6=>!_0x94b1f6),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x2cfaaa['to']('level',_0x28a700=>'ck-document-outline__item_level-'+_0x28a700),_0x2cfaaa['if']('isActive','ck-document-outline__item_active'),_0x2cfaaa['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x2cfaaa['to']('text')},'children':[{'text':_0x2cfaaa['to']('text',_0x28e194=>_0x28e194||_0x4fdd81)}],'on':{'click':_0x2cfaaa['to']('click')}});}}

@@ -23,2 +23,2 @@ /*

*/
import{View as _0x1c613b}from'ckeditor5/src/ui';import{scrollAncestorsToShowTarget as _0x31967c}from'ckeditor5/src/utils';import _0x46fb14 from'./documentoutlineitemview';export default class d extends _0x1c613b{constructor(_0x52daa0,_0x5dc1c7=!0x1,_0x5ef95a){super(_0x52daa0);const t=_0x52daa0['t'];this['showEmptyHeadingText']=_0x5dc1c7,this['set']('activeItemIndex',-0x1),this['_documentOutlineContainer']=_0x5ef95a,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x28fbac,_0x2045f2,_0x4260f2,_0x5416df)=>{this['_setActiveItem'](_0x5416df,_0x4260f2);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x52daa0['contentLanguageDirection'],'data-document-outline-empty-placeholder':t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x309743){_0x309743['forEach'](_0xafff92=>{'insert'==_0xafff92['type']?this['_insertItem'](_0xafff92['index'],..._0xafff92['values']):'delete'==_0xafff92['type']&&this['_deleteItem'](_0xafff92['index'],_0xafff92['howMany']);});}['_setActiveItem'](_0x5ecebf,_0x2f59ac){if(-0x1!==_0x5ecebf){const _0x3f6303=this['items']['get'](_0x5ecebf);_0x3f6303&&(_0x3f6303['isActive']=!0x1);}-0x1!==_0x2f59ac&&(this['items']['get'](_0x2f59ac)['isActive']=!0x0,this['_scrollToItem'](_0x2f59ac));}['_insertItem'](_0x24a4b2,..._0x16914c){const _0x3851f1=_0x16914c['map']((_0x1833eb,_0x38e2e5)=>{const _0x39f3a7=new _0x46fb14(this['locale'],this['showEmptyHeadingText']);return _0x39f3a7['text']=_0x1833eb['text'],_0x39f3a7['level']=_0x1833eb['level'],_0x24a4b2+_0x38e2e5===this['activeItemIndex']&&(_0x39f3a7['isActive']=!0x0),_0x39f3a7;});this['items']['addMany'](_0x3851f1,_0x24a4b2);}['_deleteItem'](_0x18f5c5,_0x3a2f17){do{this['items']['remove'](_0x18f5c5);}while(--_0x3a2f17);}['_handleItemClick'](_0x252b65){const _0x4ffbee=this['items']['getIndex'](_0x252b65['source']);this['fire']('itemSelected',_0x4ffbee);}['_scrollToItem'](_0x5a0ed2){_0x31967c(this['items']['get'](_0x5a0ed2)['element'],0x14,this['_documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}
import{View as _0x66e08a}from'ckeditor5/src/ui';import{scrollAncestorsToShowTarget as _0x1f971c}from'ckeditor5/src/utils';import _0x226899 from'./documentoutlineitemview';export default class d extends _0x66e08a{constructor(_0x36d3ad,_0x728c2c=!0x1,_0x1027d){super(_0x36d3ad);const t=_0x36d3ad['t'];this['showEmptyHeadingText']=_0x728c2c,this['set']('activeItemIndex',-0x1),this['_documentOutlineContainer']=_0x1027d,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x5cd819,_0xcb0a45,_0x573294,_0x23c026)=>{this['_setActiveItem'](_0x23c026,_0x573294);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x36d3ad['contentLanguageDirection'],'data-document-outline-empty-placeholder':t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x317da0){_0x317da0['forEach'](_0x4915b9=>{'insert'==_0x4915b9['type']?this['_insertItem'](_0x4915b9['index'],..._0x4915b9['values']):'delete'==_0x4915b9['type']&&this['_deleteItem'](_0x4915b9['index'],_0x4915b9['howMany']);});}['_setActiveItem'](_0x14395e,_0x5c1b8c){if(-0x1!==_0x14395e){const _0x5355f3=this['items']['get'](_0x14395e);_0x5355f3&&(_0x5355f3['isActive']=!0x1);}-0x1!==_0x5c1b8c&&(this['items']['get'](_0x5c1b8c)['isActive']=!0x0,this['_scrollToItem'](_0x5c1b8c));}['_insertItem'](_0x90a086,..._0x213265){const _0x467878=_0x213265['map']((_0x2b71eb,_0x27c5f5)=>{const _0x48b710=new _0x226899(this['locale'],this['showEmptyHeadingText']);return _0x48b710['text']=_0x2b71eb['text'],_0x48b710['level']=_0x2b71eb['level'],_0x90a086+_0x27c5f5===this['activeItemIndex']&&(_0x48b710['isActive']=!0x0),_0x48b710;});this['items']['addMany'](_0x467878,_0x90a086);}['_deleteItem'](_0x5dd542,_0x230b32){do{this['items']['remove'](_0x5dd542);}while(--_0x230b32);}['_handleItemClick'](_0x1ba418){const _0x570022=this['items']['getIndex'](_0x1ba418['source']);this['fire']('itemSelected',_0x570022);}['_scrollToItem'](_0x5e29e9){_0x1f971c(this['items']['get'](_0x5e29e9)['element'],0x14,this['_documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}

@@ -23,2 +23,2 @@ /*

*/
const _0x59ed=['htmlH1','htmlH3','model','htmlH4','paragraph','htmlH2','data','GeneralHtmlSupport','htmlH6','get','push','config','heading.options','reduce','plugins'];(function(_0x195185,_0x59edcd){const _0x28fffd=function(_0x48e939){while(--_0x48e939){_0x195185['push'](_0x195185['shift']());}};_0x28fffd(++_0x59edcd);}(_0x59ed,0xce));const _0x28ff=function(_0x195185,_0x59edcd){_0x195185=_0x195185-0x0;let _0x28fffd=_0x59ed[_0x195185];return _0x28fffd;};import{Text as _0x431a41}from'ckeditor5/src/engine';export function getElementText(_0x8eeba2){let _0x3ecf27='';for(const _0x5bd603 of _0x8eeba2['getChildren']())_0x5bd603 instanceof _0x431a41&&(_0x3ecf27+=_0x5bd603[_0x28ff('0xa')]);return _0x3ecf27;}export function getDefaultFeatureHeadingNames(_0x5473f5){const _0x321ced=_0x5473f5[_0x28ff('0x0')][_0x28ff('0xd')](_0x28ff('0x1'));return _0x321ced?_0x321ced[_0x28ff('0x2')]((_0x15c3a2,_0x5cb7ec)=>(_0x28ff('0x8')!==_0x5cb7ec[_0x28ff('0x6')]&&_0x15c3a2[_0x28ff('0xe')](_0x5cb7ec[_0x28ff('0x6')]),_0x15c3a2),[]):_0x5473f5[_0x28ff('0x3')]['has'](_0x28ff('0xb'))?[_0x28ff('0x4'),_0x28ff('0x9'),_0x28ff('0x5'),_0x28ff('0x7'),'htmlH5',_0x28ff('0xc')]:[];}
const _0x2189=['getChildren','heading.options','htmlH1','paragraph','htmlH2','htmlH4','model','reduce','htmlH3','data','has','htmlH5','plugins','get','config','htmlH6','GeneralHtmlSupport'];(function(_0x2ed1eb,_0x21891d){const _0xda790c=function(_0x3c704e){while(--_0x3c704e){_0x2ed1eb['push'](_0x2ed1eb['shift']());}};_0xda790c(++_0x21891d);}(_0x2189,0x128));const _0xda79=function(_0x2ed1eb,_0x21891d){_0x2ed1eb=_0x2ed1eb-0x0;let _0xda790c=_0x2189[_0x2ed1eb];return _0xda790c;};import{Text as _0x1f4867}from'ckeditor5/src/engine';export function getElementText(_0x123216){let _0x50850f='';for(const _0x41dd45 of _0x123216[_0xda79('0xa')]())_0x41dd45 instanceof _0x1f4867&&(_0x50850f+=_0x41dd45[_0xda79('0x2')]);return _0x50850f;}export function getDefaultFeatureHeadingNames(_0x3be0d4){const _0x345d4f=_0x3be0d4[_0xda79('0x7')][_0xda79('0x6')](_0xda79('0xb'));return _0x345d4f?_0x345d4f[_0xda79('0x0')]((_0x153055,_0x3b2b28)=>(_0xda79('0xd')!==_0x3b2b28['model']&&_0x153055['push'](_0x3b2b28[_0xda79('0x10')]),_0x153055),[]):_0x3be0d4[_0xda79('0x5')][_0xda79('0x3')](_0xda79('0x9'))?[_0xda79('0xc'),_0xda79('0xe'),_0xda79('0x1'),_0xda79('0xf'),_0xda79('0x4'),_0xda79('0x8')]:[];}

@@ -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 _0x5648b4 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':_0x5648b4};import'./augmentation';
export{default as DocumentOutline}from'./documentoutline';export{default as DocumentOutlineUI}from'./documentoutline/documentoutlineui';export{default as DocumentOutlineUtils}from'./documentoutline/documentoutlineutils';import _0x440e4f 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':_0x440e4f};import'./augmentation';

@@ -23,2 +23,2 @@ /*

*/
var _0x4c5e=['requires','pluginName','TableOfContents'];(function(_0x2b43cb,_0x4c5e99){var _0x34444a=function(_0x2b3eb1){while(--_0x2b3eb1){_0x2b43cb['push'](_0x2b43cb['shift']());}};_0x34444a(++_0x4c5e99);}(_0x4c5e,0x119));var _0x3444=function(_0x2b43cb,_0x4c5e99){_0x2b43cb=_0x2b43cb-0x0;var _0x34444a=_0x4c5e[_0x2b43cb];return _0x34444a;};import{Plugin as _0xbad756}from'ckeditor5/src/core';import _0x1f57b9 from'./tableofcontents/tableofcontentsediting';import _0x179b23 from'./tableofcontents/tableofcontentsui';export default class c extends _0xbad756{static get[_0x3444('0x1')](){return[_0x1f57b9,_0x179b23];}static get[_0x3444('0x2')](){return _0x3444('0x0');}}
var _0x3455=['TableOfContents'];(function(_0x2462f6,_0x3455fd){var _0x3c20ea=function(_0x426977){while(--_0x426977){_0x2462f6['push'](_0x2462f6['shift']());}};_0x3c20ea(++_0x3455fd);}(_0x3455,0xfc));var _0x3c20=function(_0x2462f6,_0x3455fd){_0x2462f6=_0x2462f6-0x0;var _0x3c20ea=_0x3455[_0x2462f6];return _0x3c20ea;};import{Plugin as _0x28b755}from'ckeditor5/src/core';import _0x172da0 from'./tableofcontents/tableofcontentsediting';import _0x3a76eb from'./tableofcontents/tableofcontentsui';export default class c extends _0x28b755{static get['requires'](){return[_0x172da0,_0x3a76eb];}static get['pluginName'](){return _0x3c20('0x0');}}

@@ -23,2 +23,2 @@ /*

*/
const _0x2537=['headingId.modelAttributeName','nodeAfter','_customUpcastHeadingsConversion','data','getAttribute','position','mapper','_customDataDowncastHeadingsConversion','removeAttribute','item','view','consume','type','remove','conversion','attributes','get','insert','model','add','_registerHeadingIdAttributePostfixer','setAttribute','getContainedElement','low','writer','attribute:headingId:','isRegistered','change','viewItem','set','length','downcast','element:','for','heading1','has','delete','document','registerPostFixer','modelRange','getChanges','editor','name','upcastDispatcher','differ','headingId','match','config','hasAttribute','string','schema','forEach'];(function(_0x74bba2,_0x2537f9){const _0x482b1e=function(_0xbba75){while(--_0xbba75){_0x74bba2['push'](_0x74bba2['shift']());}};_0x482b1e(++_0x2537f9);}(_0x2537,0x82));const _0x482b=function(_0x74bba2,_0x2537f9){_0x74bba2=_0x74bba2-0x0;let _0x482b1e=_0x2537[_0x74bba2];return _0x482b1e;};import{Plugin as _0x3c53b8}from'ckeditor5/src/core';import{uid as _0x5d2a1d,priorities as _0x30fc78}from'ckeditor5/src/utils';export default class A extends _0x3c53b8{static get['pluginName'](){return'HeadingId';}['afterInit'](){const _0x3d466b=this[_0x482b('0xf')];if(_0x3d466b[_0x482b('0x15')][_0x482b('0x2a')](_0x482b('0x1a')))return;(function(_0x4ba059){const _0x3f55e7=new Map();if(_0x4ba059)return _0x4ba059[_0x482b('0x19')](_0x4918db=>{'paragraph'!==_0x4918db[_0x482b('0x2c')]&&_0x3f55e7[_0x482b('0x3')](_0x4918db[_0x482b('0x24')],_0x4918db[_0x482b('0x2c')]);}),_0x3f55e7['get']('h1')||_0x3f55e7['set']('h1',_0x482b('0x8')),_0x3f55e7;return _0x3f55e7;}(this['editor']['config']['get']('heading.options'))[_0x482b('0x19')]((_0x2a4693,_0x105bbe)=>{this[_0x482b('0x1c')](_0x105bbe),this[_0x482b('0x21')](_0x2a4693),_0x3d466b[_0x482b('0x2c')]['schema'][_0x482b('0x0')](_0x2a4693)&&_0x3d466b[_0x482b('0x2c')][_0x482b('0x18')]['extend'](_0x2a4693,{'allowAttributes':_0x482b('0x13')});}),this[_0x482b('0x2e')]());}[_0x482b('0x1c')](_0x3ac008){this[_0x482b('0xf')][_0x482b('0x1d')][_0x482b('0x11')]['on'](_0x482b('0x6')+_0x3ac008,(_0x3eaf76,_0x56b30a,_0xa9efdd)=>{const {consumable:_0x94e9a0,writer:_0x13259f}=_0xa9efdd,_0x53b948=_0x56b30a[_0x482b('0x2')][_0x482b('0x1e')]('id'),_0x22c870=_0x56b30a[_0x482b('0xd')][_0x482b('0x30')]();if(!(_0x53b948&&_0x53b948[_0x482b('0x4')]||_0x22c870[_0x482b('0x16')](_0x482b('0x13'))))return _0x94e9a0['consume'](_0x56b30a[_0x482b('0x2')],{'attributes':['id']}),void _0x13259f[_0x482b('0x2f')]('headingId',_0x5d2a1d(),_0x22c870);_0x94e9a0[_0x482b('0x25')](_0x56b30a['viewItem'],{'attributes':['id']})&&_0x13259f[_0x482b('0x2f')](_0x482b('0x13'),_0x53b948,_0x22c870);},{'priority':_0x30fc78['get'](_0x482b('0x31'))+0.5});}[_0x482b('0x21')](_0xf386d7){this['editor'][_0x482b('0x28')][_0x482b('0x7')](_0x482b('0x5'))[_0x482b('0x2d')](_0x49ef83=>_0x49ef83['on'](_0x482b('0x33')+_0xf386d7,(_0x53d4e3,_0x553e7e,_0x1044f2)=>{if(!_0x1044f2['consumable'][_0x482b('0x25')](_0x553e7e['item'],_0x53d4e3[_0x482b('0x10')]))return;const _0x510f9b=_0x553e7e['item'][_0x482b('0x1e')](_0x482b('0x13')),_0xed472=_0x1044f2[_0x482b('0x20')]['toViewElement'](_0x553e7e[_0x482b('0x23')]);_0x1044f2[_0x482b('0x32')]['setAttribute']('id',_0x510f9b,_0xed472);}));}[_0x482b('0x2e')](){const _0x195d7a=this[_0x482b('0xf')],_0x189f9a=new Set(),_0xe99c67=new Set();function _0x796664(_0x1c912b,_0x5546e3){const _0x4549f5=_0x5d2a1d();return _0xe99c67['add'](_0x4549f5),_0x1c912b[_0x482b('0x2f')](_0x482b('0x13'),_0x4549f5,_0x5546e3),_0x4549f5;}function _0x5bf215(_0x2dcd46,_0x592157){_0x2dcd46[_0x482b('0x22')](_0x482b('0x13'),_0x592157);}_0x195d7a[_0x482b('0x2c')][_0x482b('0xb')][_0x482b('0xc')](_0x29edb7=>{const _0x3afb98=_0x195d7a['model'][_0x482b('0xb')][_0x482b('0x12')][_0x482b('0xe')]();let _0x5ce753=!0x1;for(const _0x455e2d of _0x3afb98)if(_0x482b('0x2b')==_0x455e2d['type']&&_0x455e2d[_0x482b('0x10')]){if(_0x455e2d[_0x482b('0x10')][_0x482b('0x14')](/heading\d/)){const _0x251f06=_0x455e2d[_0x482b('0x29')]['get']('headingId');_0x482b('0x17')==typeof _0x251f06?_0x189f9a[_0x482b('0x9')](_0x251f06)?(_0x796664(_0x29edb7,_0x455e2d[_0x482b('0x1f')]['nodeAfter']),_0x5ce753=!0x0):_0xe99c67[_0x482b('0x2d')](_0x251f06):(_0x796664(_0x29edb7,_0x455e2d[_0x482b('0x1f')][_0x482b('0x1b')]),_0x5ce753=!0x0);}else'string'==typeof _0x455e2d[_0x482b('0x29')]['get']('headingId')&&(_0x5bf215(_0x29edb7,_0x455e2d[_0x482b('0x1f')][_0x482b('0x1b')]),_0x5ce753=!0x0);}else{if(_0x482b('0x27')==_0x455e2d[_0x482b('0x26')]){const _0x211b3e=_0x455e2d[_0x482b('0x29')][_0x482b('0x2a')]('headingId');_0x482b('0x17')==typeof _0x211b3e&&_0x189f9a[_0x482b('0xa')](_0x211b3e);}}return _0x5ce753;}),_0x195d7a[_0x482b('0x2c')][_0x482b('0xb')]['on'](_0x482b('0x1'),()=>{_0xe99c67['forEach'](_0x98b7be=>_0x189f9a['add'](_0x98b7be)),_0xe99c67['clear']();});}}
const _0x1bda=['consume','editor','heading.options','get','attributes','clear','extend','attribute:headingId:','headingId.modelAttributeName','_customDataDowncastHeadingsConversion','string','position','config','data','add','model','downcast','remove','consumable','pluginName','_registerHeadingIdAttributePostfixer','has','schema','length','_customUpcastHeadingsConversion','getContainedElement','forEach','setAttribute','HeadingId','getAttribute','nodeAfter','set','conversion','item','isRegistered','modelRange','toViewElement','paragraph','afterInit','headingId','writer','type','viewItem','match','element:','heading1','low','document'];(function(_0x912c1d,_0x1bda64){const _0x5200d3=function(_0x3b4a67){while(--_0x3b4a67){_0x912c1d['push'](_0x912c1d['shift']());}};_0x5200d3(++_0x1bda64);}(_0x1bda,0x8a));const _0x5200=function(_0x912c1d,_0x1bda64){_0x912c1d=_0x912c1d-0x0;let _0x5200d3=_0x1bda[_0x912c1d];return _0x5200d3;};import{Plugin as _0x54927b}from'ckeditor5/src/core';import{uid as _0xd05fd4,priorities as _0x2939ee}from'ckeditor5/src/utils';export default class A extends _0x54927b{static get[_0x5200('0x19')](){return _0x5200('0x22');}[_0x5200('0x2c')](){const _0x4a3a3b=this[_0x5200('0x7')];if(_0x4a3a3b['config'][_0x5200('0x9')](_0x5200('0xe')))return;(function(_0x53fc85){const _0x2e98dc=new Map();if(_0x53fc85)return _0x53fc85['forEach'](_0xca5ac4=>{_0x5200('0x2b')!==_0xca5ac4[_0x5200('0x15')]&&_0x2e98dc[_0x5200('0x25')](_0xca5ac4['view'],_0xca5ac4[_0x5200('0x15')]);}),_0x2e98dc[_0x5200('0x9')]('h1')||_0x2e98dc['set']('h1',_0x5200('0x3')),_0x2e98dc;return _0x2e98dc;}(this[_0x5200('0x7')][_0x5200('0x12')][_0x5200('0x9')](_0x5200('0x8')))[_0x5200('0x20')]((_0x903b0,_0x48e090)=>{this[_0x5200('0x1e')](_0x48e090),this[_0x5200('0xf')](_0x903b0),_0x4a3a3b['model'][_0x5200('0x1c')][_0x5200('0x28')](_0x903b0)&&_0x4a3a3b['model'][_0x5200('0x1c')][_0x5200('0xc')](_0x903b0,{'allowAttributes':_0x5200('0x2d')});}),this['_registerHeadingIdAttributePostfixer']());}['_customUpcastHeadingsConversion'](_0x5cb0e2){this[_0x5200('0x7')][_0x5200('0x13')]['upcastDispatcher']['on'](_0x5200('0x2')+_0x5cb0e2,(_0x10ee19,_0x3d77f7,_0xbd8d2a)=>{const {consumable:_0x3c3e86,writer:_0x36b69f}=_0xbd8d2a,_0x3f5dc5=_0x3d77f7[_0x5200('0x0')][_0x5200('0x23')]('id'),_0x43a0a6=_0x3d77f7[_0x5200('0x29')][_0x5200('0x1f')]();if(!(_0x3f5dc5&&_0x3f5dc5[_0x5200('0x1d')]||_0x43a0a6['hasAttribute'](_0x5200('0x2d'))))return _0x3c3e86[_0x5200('0x6')](_0x3d77f7['viewItem'],{'attributes':['id']}),void _0x36b69f[_0x5200('0x21')](_0x5200('0x2d'),_0xd05fd4(),_0x43a0a6);_0x3c3e86[_0x5200('0x6')](_0x3d77f7[_0x5200('0x0')],{'attributes':['id']})&&_0x36b69f[_0x5200('0x21')](_0x5200('0x2d'),_0x3f5dc5,_0x43a0a6);},{'priority':_0x2939ee[_0x5200('0x9')](_0x5200('0x4'))+0.5});}[_0x5200('0xf')](_0x209910){this[_0x5200('0x7')][_0x5200('0x26')]['for'](_0x5200('0x16'))[_0x5200('0x14')](_0x2e5e4b=>_0x2e5e4b['on'](_0x5200('0xd')+_0x209910,(_0x1e037d,_0x5ef1e2,_0x1774ec)=>{if(!_0x1774ec[_0x5200('0x18')][_0x5200('0x6')](_0x5ef1e2[_0x5200('0x27')],_0x1e037d['name']))return;const _0x10ca33=_0x5ef1e2[_0x5200('0x27')]['getAttribute'](_0x5200('0x2d')),_0x2dfa26=_0x1774ec['mapper'][_0x5200('0x2a')](_0x5ef1e2['item']);_0x1774ec[_0x5200('0x2e')][_0x5200('0x21')]('id',_0x10ca33,_0x2dfa26);}));}[_0x5200('0x1a')](){const _0x41ee29=this[_0x5200('0x7')],_0x3508b6=new Set(),_0x1ce26a=new Set();function _0x464da8(_0x4bf138,_0x337ff8){const _0x194327=_0xd05fd4();return _0x1ce26a[_0x5200('0x14')](_0x194327),_0x4bf138[_0x5200('0x21')](_0x5200('0x2d'),_0x194327,_0x337ff8),_0x194327;}function _0x270766(_0xa86cbc,_0x4bf844){_0xa86cbc['removeAttribute'](_0x5200('0x2d'),_0x4bf844);}_0x41ee29['model'][_0x5200('0x5')]['registerPostFixer'](_0x124588=>{const _0x1af212=_0x41ee29['model'][_0x5200('0x5')]['differ']['getChanges']();let _0x516a09=!0x1;for(const _0xfc6f31 of _0x1af212)if('insert'==_0xfc6f31[_0x5200('0x2f')]&&_0xfc6f31['name']){if(_0xfc6f31['name'][_0x5200('0x1')](/heading\d/)){const _0x588127=_0xfc6f31['attributes'][_0x5200('0x9')](_0x5200('0x2d'));'string'==typeof _0x588127?_0x3508b6[_0x5200('0x1b')](_0x588127)?(_0x464da8(_0x124588,_0xfc6f31[_0x5200('0x11')][_0x5200('0x24')]),_0x516a09=!0x0):_0x1ce26a[_0x5200('0x14')](_0x588127):(_0x464da8(_0x124588,_0xfc6f31[_0x5200('0x11')][_0x5200('0x24')]),_0x516a09=!0x0);}else _0x5200('0x10')==typeof _0xfc6f31[_0x5200('0xa')][_0x5200('0x9')](_0x5200('0x2d'))&&(_0x270766(_0x124588,_0xfc6f31[_0x5200('0x11')][_0x5200('0x24')]),_0x516a09=!0x0);}else{if(_0x5200('0x17')==_0xfc6f31[_0x5200('0x2f')]){const _0x1b8aec=_0xfc6f31[_0x5200('0xa')][_0x5200('0x9')](_0x5200('0x2d'));_0x5200('0x10')==typeof _0x1b8aec&&_0x3508b6['delete'](_0x1b8aec);}}return _0x516a09;}),_0x41ee29['model'][_0x5200('0x5')]['on']('change',()=>{_0x1ce26a['forEach'](_0x1f0262=>_0x3508b6['add'](_0x1f0262)),_0x1ce26a[_0x5200('0xb')]();});}}

@@ -23,2 +23,2 @@ /*

*/
const _0x2ec8=['createElement','model','getFirstPosition','tableOfContents','editor','schema','change','refresh','selection','isEnabled','findAllowedParent'];(function(_0x2089dc,_0x2ec881){const _0x350249=function(_0xfdc437){while(--_0xfdc437){_0x2089dc['push'](_0x2089dc['shift']());}};_0x350249(++_0x2ec881);}(_0x2ec8,0xec));const _0x3502=function(_0x2089dc,_0x2ec881){_0x2089dc=_0x2089dc-0x0;let _0x350249=_0x2ec8[_0x2089dc];return _0x350249;};import{Command as _0xbea86f}from'ckeditor5/src/core';export default class O extends _0xbea86f{['execute'](){this[_0x3502('0xa')][_0x3502('0x7')][_0x3502('0x1')](_0x4f7294=>{this[_0x3502('0xa')][_0x3502('0x7')]['insertObject'](_0x4f7294[_0x3502('0x6')](_0x3502('0x9')));});}[_0x3502('0x2')](){const _0x5a6b13=this['editor'][_0x3502('0x7')],_0x444328=_0x5a6b13['document'][_0x3502('0x3')][_0x3502('0x8')]();this[_0x3502('0x4')]=null!==(_0x444328&&_0x5a6b13[_0x3502('0x0')][_0x3502('0x5')](_0x444328,_0x3502('0x9')));}}
const _0x289b=['tableOfContents','schema','createElement','refresh','execute','editor','document','model'];(function(_0x5aca56,_0x289bea){const _0x573d30=function(_0x327a50){while(--_0x327a50){_0x5aca56['push'](_0x5aca56['shift']());}};_0x573d30(++_0x289bea);}(_0x289b,0x1e1));const _0x573d=function(_0x5aca56,_0x289bea){_0x5aca56=_0x5aca56-0x0;let _0x573d30=_0x289b[_0x5aca56];return _0x573d30;};import{Command as _0xfe575b}from'ckeditor5/src/core';export default class O extends _0xfe575b{[_0x573d('0x3')](){this[_0x573d('0x4')][_0x573d('0x6')]['change'](_0x1173b2=>{this[_0x573d('0x4')][_0x573d('0x6')]['insertObject'](_0x1173b2[_0x573d('0x1')](_0x573d('0x7')));});}[_0x573d('0x2')](){const _0x18854c=this['editor'][_0x573d('0x6')],_0x4e38b8=_0x18854c[_0x573d('0x5')]['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x4e38b8&&_0x18854c[_0x573d('0x0')]['findAllowedParent'](_0x4e38b8,_0x573d('0x7')));}}

@@ -23,2 +23,2 @@ /*

*/
import{ButtonView as _0xe30b74}from'ckeditor5/src/ui';import{CKEditorError as _0x1ffb00}from'ckeditor5/src/utils';import{Plugin as _0x30a082}from'ckeditor5/src/core';import _0x22c91c from'../../theme/icons/table-of-contents.svg';export default class s extends _0x30a082{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x3a184b){super(_0x3a184b),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x1b484a=this['editor'],t=_0x1b484a['t'];_0x1b484a['ui']['componentFactory']['add']('tableOfContents',_0xf4f85a=>{const _0x4b5dbe=_0x1b484a['commands']['get']('insertTableOfContents'),_0x433eb7=new _0xe30b74(_0xf4f85a);return _0x433eb7['set']({'label':t('Table\x20of\x20contents'),'icon':_0x22c91c,'tooltip':!0x0}),_0x433eb7['bind']('isEnabled')['to'](_0x4b5dbe,'isEnabled'),this['listenTo'](_0x433eb7,'execute',()=>{_0x1b484a['execute']('insertTableOfContents'),_0x1b484a['editing']['view']['focus']();}),_0x433eb7;}),this['licenseKey']=_0x1b484a['config']['get']('licenseKey');const _0x32901a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x46d915;for(const _0x22682a in _0x32901a){const _0x180155=_0x22682a,_0x2df293=_0x32901a[_0x180155];if('tableOfContentsLicenseKeyTrial'===_0x2df293||'tableOfContentsLicenseKeyInvalid'===_0x2df293||'tableOfContentsLicenseKeyValid'===_0x2df293||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x2df293){delete _0x32901a[_0x180155],_0x46d915=_0x2df293;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x46d915)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x1ffb00('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x46d915&&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'===_0x46d915)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x1ffb00('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x46d915&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}
import{ButtonView as _0x443ef2}from'ckeditor5/src/ui';import{CKEditorError as _0x3ebab3}from'ckeditor5/src/utils';import{Plugin as _0x3b50b4}from'ckeditor5/src/core';import _0x21dcd4 from'../../theme/icons/table-of-contents.svg';export default class s extends _0x3b50b4{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x3f4b6a){super(_0x3f4b6a),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x37f3dc=this['editor'],t=_0x37f3dc['t'];_0x37f3dc['ui']['componentFactory']['add']('tableOfContents',_0x2f335e=>{const _0x1eb28e=_0x37f3dc['commands']['get']('insertTableOfContents'),_0x124e2f=new _0x443ef2(_0x2f335e);return _0x124e2f['set']({'label':t('Table\x20of\x20contents'),'icon':_0x21dcd4,'tooltip':!0x0}),_0x124e2f['bind']('isEnabled')['to'](_0x1eb28e,'isEnabled'),this['listenTo'](_0x124e2f,'execute',()=>{_0x37f3dc['execute']('insertTableOfContents'),_0x37f3dc['editing']['view']['focus']();}),_0x124e2f;}),this['licenseKey']=_0x37f3dc['config']['get']('licenseKey');const _0x79b5b9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xf33ecf;for(const _0x229821 in _0x79b5b9){const _0x3ad5ef=_0x229821,_0x4d9eec=_0x79b5b9[_0x3ad5ef];if('tableOfContentsLicenseKeyTrial'===_0x4d9eec||'tableOfContentsLicenseKeyInvalid'===_0x4d9eec||'tableOfContentsLicenseKeyValid'===_0x4d9eec||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x4d9eec){delete _0x79b5b9[_0x3ad5ef],_0xf33ecf=_0x4d9eec;break;}}if('tableOfContentsLicenseKeyInvalid'===_0xf33ecf)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x3ebab3('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0xf33ecf&&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'===_0xf33ecf)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x3ebab3('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0xf33ecf&&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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc