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
626
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-20230810.0 to 0.0.0-nightly-20230811.0

6

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

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

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

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

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

*/
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')]);}}
const _0xac01=['document-outline-invalid-license-key','get','info','destroy','licenseKey','config','requires','_licenseKeyCheckInterval','pluginName','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','documentOutlineLicenseKeyTrial','DocumentOutline','documentOutlineLicenseKeyTrialLimit:operations','documentOutlineLicenseKeyValid'];(function(_0x9d03af,_0xac01fa){const _0x59408f=function(_0x2f5abd){while(--_0x2f5abd){_0x9d03af['push'](_0x9d03af['shift']());}};_0x59408f(++_0xac01fa);}(_0xac01,0x8d));const _0x5940=function(_0x9d03af,_0xac01fa){_0x9d03af=_0x9d03af-0x0;let _0x59408f=_0xac01[_0x9d03af];return _0x59408f;};import{Plugin as _0xa16670}from'ckeditor5/src/core';import{CKEditorError as _0xa2b43a}from'ckeditor5/src/utils';import _0x415b43 from'./documentoutline/documentoutlineutils';import _0x177646 from'./documentoutline/documentoutlineui';export default class l extends _0xa16670{static get[_0x5940('0x0')](){return[_0x415b43,_0x177646];}static get[_0x5940('0x2')](){return _0x5940('0x6');}constructor(_0x91a1f0){super(_0x91a1f0),this[_0x5940('0x1')]=null;}['init'](){const _0x22b87f=this['editor'];this[_0x5940('0xd')]=_0x22b87f[_0x5940('0xe')][_0x5940('0xa')](_0x5940('0xd'));const _0x4e3e04=this['editor'];this[_0x5940('0x1')]=setInterval(()=>{let _0x2930ab;for(const _0x52f21f in _0x4e3e04){const _0x326e99=_0x52f21f,_0x5310db=_0x4e3e04[_0x326e99];if(_0x5940('0x5')===_0x5310db||'documentOutlineLicenseKeyInvalid'===_0x5310db||_0x5940('0x8')===_0x5310db||_0x5940('0x7')===_0x5310db){delete _0x4e3e04[_0x326e99],_0x2930ab=_0x5310db;break;}}if('documentOutlineLicenseKeyInvalid'===_0x2930ab)throw clearInterval(this['_licenseKeyCheckInterval']),new _0xa2b43a(_0x5940('0x9'),null);if(_0x5940('0x5')===_0x2930ab&&console[_0x5940('0xb')](_0x5940('0x3')),'documentOutlineLicenseKeyTrialLimit:operations'===_0x2930ab)throw clearInterval(this[_0x5940('0x1')]),new _0xa2b43a(_0x5940('0x4'),null);'documentOutlineLicenseKeyValid'===_0x2930ab&&clearInterval(this[_0x5940('0x1')]);},0x3e8);}[_0x5940('0xc')](){this['_licenseKeyCheckInterval']&&clearInterval(this[_0x5940('0x1')]);}}

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

*/
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;}}
const _0x5d64=['createElement','indexOf','modelElement','domToView','_getHeadingNames','document','config','get','DocumentOutlineUtils','editor','text','_getOutlineDefinitions','getFirstPosition','_headingNames','data','_deriveHeadingElementsFromConversion','getChild','_getActiveHeading','init','selection','push','fire','length','element','backward','documentOutline.headings','includes','change','model','pluginName','getChildren','getRoot','name','findIndex','getRootNames','toModel'];(function(_0x5de9a5,_0x5d649e){const _0x376da9=function(_0x40926c){while(--_0x40926c){_0x5de9a5['push'](_0x5de9a5['shift']());}};_0x376da9(++_0x5d649e);}(_0x5d64,0x1ee));const _0x376d=function(_0x5de9a5,_0x5d649e){_0x5de9a5=_0x5de9a5-0x0;let _0x376da9=_0x5d64[_0x5de9a5];return _0x376da9;};import{Plugin as _0x5a5497}from'ckeditor5/src/core';import{debounce as _0x3b2410}from'lodash-es';import{TreeWalker as _0x1a8c4e}from'ckeditor5/src/engine';import{getElementText as _0x2646d3,getDefaultFeatureHeadingNames as _0x3a3976}from'./utils';import{diff as _0x286aa8,diffToChanges as _0x1c7d52}from'ckeditor5/src/utils';export default class n extends _0x5a5497{constructor(){super(...arguments),this[_0x376d('0x17')]=[];}static get[_0x376d('0x3')](){return _0x376d('0x12');}[_0x376d('0x1c')](){const _0x473c6e=this[_0x376d('0x13')];this['_headingNames']=this[_0x376d('0xe')]();let _0x216140=[];_0x473c6e[_0x376d('0x2')][_0x376d('0xf')]['on'](_0x376d('0x1'),_0x3b2410(()=>{const _0x2929c9=_0x216140;_0x216140=this[_0x376d('0x15')]();const _0x2da7b6=_0x286aa8(_0x2929c9,_0x216140,(_0x5c08d0,_0x55bcde)=>_0x5c08d0['level']===_0x55bcde['level']&&_0x5c08d0[_0x376d('0x14')]===_0x55bcde[_0x376d('0x14')]&&_0x5c08d0[_0x376d('0xc')]===_0x55bcde[_0x376d('0xc')]),_0x25a31b=_0x1c7d52(_0x2da7b6,_0x216140),_0x2657a3=this[_0x376d('0x1b')](),_0x4252ae=_0x216140[_0x376d('0x7')](_0x1b2b15=>_0x1b2b15[_0x376d('0xc')]===_0x2657a3);_0x25a31b[_0x376d('0x20')]&&this[_0x376d('0x1f')]('change',{'outlineDefinitions':_0x216140,'activeItemIndex':_0x4252ae,'outlineChanges':_0x25a31b}),this['fire']('activeItemIndex',{'index':_0x4252ae});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames'][_0x376d('0x20')]||this[_0x376d('0x19')]();}[_0x376d('0x15')](){const _0x428cd3=this[_0x376d('0x13')],_0x2fa5fe=[],_0x54c3b7=this[_0x376d('0x17')];for(const _0x57bb87 of _0x428cd3[_0x376d('0x2')][_0x376d('0xf')][_0x376d('0x8')]())_0x1abdb4(_0x428cd3[_0x376d('0x2')][_0x376d('0xf')][_0x376d('0x5')](_0x57bb87));function _0x1abdb4(_0x247815){for(const _0x4faad6 of _0x247815[_0x376d('0x4')]())_0x4faad6['is'](_0x376d('0x21'))&&(_0x54c3b7[_0x376d('0x0')](_0x4faad6[_0x376d('0x6')])&&_0x2fa5fe[_0x376d('0x1e')]({'level':_0x54c3b7[_0x376d('0xb')](_0x4faad6[_0x376d('0x6')])+0x1,'text':_0x2646d3(_0x4faad6),'modelElement':_0x4faad6}),_0x1abdb4(_0x4faad6));}return _0x2fa5fe;}[_0x376d('0x1b')](){const _0x9c2ce7=this[_0x376d('0x13')]['model'][_0x376d('0xf')][_0x376d('0x1d')][_0x376d('0x16')](),_0x5f0842=new _0x1a8c4e({'direction':_0x376d('0x22'),'startPosition':_0x9c2ce7});for(const _0x2df019 of _0x5f0842)if(_0x2df019['item']['is'](_0x376d('0x21'))&&this[_0x376d('0x17')][_0x376d('0x0')](_0x2df019['item'][_0x376d('0x6')]))return _0x2df019['item'];}[_0x376d('0xe')](){const _0x1b8fd2=this[_0x376d('0x13')][_0x376d('0x10')][_0x376d('0x11')](_0x376d('0x23'));return _0x1b8fd2||_0x3a3976(this[_0x376d('0x13')]);}[_0x376d('0x19')](){const _0x142a3b=this[_0x376d('0x13')],_0x1d01e9=['h1','h2','h3','h4','h5','h6'],_0x244680=[];for(const _0xabd7fa of _0x1d01e9){const _0x331948=_0x142a3b['editing']['view']['domConverter'][_0x376d('0xd')](document[_0x376d('0xa')](_0xabd7fa)),_0x1bc9e9=_0x142a3b[_0x376d('0x18')][_0x376d('0x9')](_0x331948)[_0x376d('0x1a')](0x0);(null==_0x1bc9e9?void 0x0:_0x1bc9e9['is'](_0x376d('0x21')))&&_0x244680[_0x376d('0x1e')](_0x1bc9e9[_0x376d('0x6')]);}this[_0x376d('0x17')]=_0x244680;}}

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

*/
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')}});}}
import{View as _0x225565}from'ckeditor5/src/ui';export default class $ extends _0x225565{constructor(_0x1fda12,_0x3d5c85=!0x1){super(_0x1fda12);const t=_0x1fda12['t'],_0x5c143c=this['bindTemplate'],_0x43896b=_0x3d5c85?'['+t('Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x1c0e9c=>!_0x1c0e9c),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x5c143c['to']('level',_0x321e5f=>'ck-document-outline__item_level-'+_0x321e5f),_0x5c143c['if']('isActive','ck-document-outline__item_active'),_0x5c143c['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x5c143c['to']('text')},'children':[{'text':_0x5c143c['to']('text',_0x2da761=>_0x2da761||_0x43896b)}],'on':{'click':_0x5c143c['to']('click')}});}}

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

*/
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']();}}
import{View as _0x285cb1}from'ckeditor5/src/ui';import{scrollAncestorsToShowTarget as _0xf3d8bc}from'ckeditor5/src/utils';import _0x7ac513 from'./documentoutlineitemview';export default class d extends _0x285cb1{constructor(_0x480d16,_0x51d4cf=!0x1,_0xe2c1e2){super(_0x480d16);const t=_0x480d16['t'];this['showEmptyHeadingText']=_0x51d4cf,this['set']('activeItemIndex',-0x1),this['_documentOutlineContainer']=_0xe2c1e2,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x41a695,_0x21e673,_0xef615c,_0x30e647)=>{this['_setActiveItem'](_0x30e647,_0xef615c);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x480d16['contentLanguageDirection'],'data-document-outline-empty-placeholder':t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x509a44){_0x509a44['forEach'](_0x537fb0=>{'insert'==_0x537fb0['type']?this['_insertItem'](_0x537fb0['index'],..._0x537fb0['values']):'delete'==_0x537fb0['type']&&this['_deleteItem'](_0x537fb0['index'],_0x537fb0['howMany']);});}['_setActiveItem'](_0x2fb776,_0x105265){if(-0x1!==_0x2fb776){const _0x89f3f0=this['items']['get'](_0x2fb776);_0x89f3f0&&(_0x89f3f0['isActive']=!0x1);}-0x1!==_0x105265&&(this['items']['get'](_0x105265)['isActive']=!0x0,this['_scrollToItem'](_0x105265));}['_insertItem'](_0x4956f2,..._0x8e6ea0){const _0x1cb3b7=_0x8e6ea0['map']((_0x622794,_0x2f89f0)=>{const _0x2ad790=new _0x7ac513(this['locale'],this['showEmptyHeadingText']);return _0x2ad790['text']=_0x622794['text'],_0x2ad790['level']=_0x622794['level'],_0x4956f2+_0x2f89f0===this['activeItemIndex']&&(_0x2ad790['isActive']=!0x0),_0x2ad790;});this['items']['addMany'](_0x1cb3b7,_0x4956f2);}['_deleteItem'](_0x553dec,_0x2f0ec5){do{this['items']['remove'](_0x553dec);}while(--_0x2f0ec5);}['_handleItemClick'](_0x566e22){const _0x1d1150=this['items']['getIndex'](_0x566e22['source']);this['fire']('itemSelected',_0x1d1150);}['_scrollToItem'](_0x65371c){_0xf3d8bc(this['items']['get'](_0x65371c)['element'],0x14,this['_documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}

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

*/
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')]:[];}
const _0x2aca=['htmlH4','paragraph','model','plugins','data','htmlH1','htmlH6','getChildren','htmlH2','get','htmlH5','GeneralHtmlSupport','htmlH3','heading.options','reduce','push'];(function(_0x296a30,_0x2aca63){const _0xeb3ce=function(_0x10ec30){while(--_0x10ec30){_0x296a30['push'](_0x296a30['shift']());}};_0xeb3ce(++_0x2aca63);}(_0x2aca,0x112));const _0xeb3c=function(_0x296a30,_0x2aca63){_0x296a30=_0x296a30-0x0;let _0xeb3ce=_0x2aca[_0x296a30];return _0xeb3ce;};import{Text as _0x402859}from'ckeditor5/src/engine';export function getElementText(_0x214771){let _0x94e3b7='';for(const _0xc0da61 of _0x214771[_0xeb3c('0x5')]())_0xc0da61 instanceof _0x402859&&(_0x94e3b7+=_0xc0da61[_0xeb3c('0x2')]);return _0x94e3b7;}export function getDefaultFeatureHeadingNames(_0x5dd69c){const _0x56b64a=_0x5dd69c['config'][_0xeb3c('0x7')](_0xeb3c('0xb'));return _0x56b64a?_0x56b64a[_0xeb3c('0xc')]((_0x5f1cd8,_0x3cac48)=>(_0xeb3c('0xf')!==_0x3cac48[_0xeb3c('0x0')]&&_0x5f1cd8[_0xeb3c('0xd')](_0x3cac48[_0xeb3c('0x0')]),_0x5f1cd8),[]):_0x5dd69c[_0xeb3c('0x1')]['has'](_0xeb3c('0x9'))?[_0xeb3c('0x3'),_0xeb3c('0x6'),_0xeb3c('0xa'),_0xeb3c('0xe'),_0xeb3c('0x8'),_0xeb3c('0x4')]:[];}

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

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

*/
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');}}
var _0x3f7d=['requires','TableOfContents','pluginName'];(function(_0x465d40,_0x3f7d34){var _0x2f616f=function(_0x7ea1b){while(--_0x7ea1b){_0x465d40['push'](_0x465d40['shift']());}};_0x2f616f(++_0x3f7d34);}(_0x3f7d,0x18b));var _0x2f61=function(_0x465d40,_0x3f7d34){_0x465d40=_0x465d40-0x0;var _0x2f616f=_0x3f7d[_0x465d40];return _0x2f616f;};import{Plugin as _0x17e5d2}from'ckeditor5/src/core';import _0x129ed7 from'./tableofcontents/tableofcontentsediting';import _0x178c7c from'./tableofcontents/tableofcontentsui';export default class c extends _0x17e5d2{static get[_0x2f61('0x1')](){return[_0x129ed7,_0x178c7c];}static get[_0x2f61('0x0')](){return _0x2f61('0x2');}}

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

*/
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')]();});}}
const _0x29de=['consume','pluginName','position','upcastDispatcher','config','downcast','editor','element:','heading1','set','viewItem','_customUpcastHeadingsConversion','heading.options','HeadingId','_registerHeadingIdAttributePostfixer','length','string','attributes','low','schema','nodeAfter','getAttribute','add','clear','name','paragraph','document','differ','afterInit','model','getContainedElement','match','headingId','get','hasAttribute','has','mapper','data','registerPostFixer','type','forEach','getChanges','delete','for','item','_customDataDowncastHeadingsConversion','conversion','headingId.modelAttributeName','setAttribute'];(function(_0x5a5c43,_0x29de67){const _0x33c3d9=function(_0x3b5a2f){while(--_0x3b5a2f){_0x5a5c43['push'](_0x5a5c43['shift']());}};_0x33c3d9(++_0x29de67);}(_0x29de,0x1df));const _0x33c3=function(_0x5a5c43,_0x29de67){_0x5a5c43=_0x5a5c43-0x0;let _0x33c3d9=_0x29de[_0x5a5c43];return _0x33c3d9;};import{Plugin as _0x131a29}from'ckeditor5/src/core';import{uid as _0x584538,priorities as _0x3a066e}from'ckeditor5/src/utils';export default class A extends _0x131a29{static get[_0x33c3('0xc')](){return _0x33c3('0x18');}[_0x33c3('0x27')](){const _0x234fb7=this[_0x33c3('0x11')];if(_0x234fb7[_0x33c3('0xf')][_0x33c3('0x2c')](_0x33c3('0x9')))return;(function(_0x3aa8cb){const _0x38dd08=new Map();if(_0x3aa8cb)return _0x3aa8cb['forEach'](_0x1a94db=>{_0x33c3('0x24')!==_0x1a94db[_0x33c3('0x28')]&&_0x38dd08['set'](_0x1a94db['view'],_0x1a94db[_0x33c3('0x28')]);}),_0x38dd08[_0x33c3('0x2c')]('h1')||_0x38dd08[_0x33c3('0x14')]('h1',_0x33c3('0x13')),_0x38dd08;return _0x38dd08;}(this[_0x33c3('0x11')][_0x33c3('0xf')]['get'](_0x33c3('0x17')))[_0x33c3('0x2')]((_0x3755f1,_0x4d9b40)=>{this[_0x33c3('0x16')](_0x4d9b40),this[_0x33c3('0x7')](_0x3755f1),_0x234fb7[_0x33c3('0x28')][_0x33c3('0x1e')]['isRegistered'](_0x3755f1)&&_0x234fb7[_0x33c3('0x28')]['schema']['extend'](_0x3755f1,{'allowAttributes':_0x33c3('0x2b')});}),this['_registerHeadingIdAttributePostfixer']());}['_customUpcastHeadingsConversion'](_0x239539){this[_0x33c3('0x11')][_0x33c3('0x30')][_0x33c3('0xe')]['on'](_0x33c3('0x12')+_0x239539,(_0x26e342,_0x58effb,_0x2f469d)=>{const {consumable:_0x3a4ba3,writer:_0x1f8a6d}=_0x2f469d,_0x9c5c3d=_0x58effb[_0x33c3('0x15')][_0x33c3('0x20')]('id'),_0x12aa06=_0x58effb['modelRange'][_0x33c3('0x29')]();if(!(_0x9c5c3d&&_0x9c5c3d[_0x33c3('0x1a')]||_0x12aa06[_0x33c3('0x2d')](_0x33c3('0x2b'))))return _0x3a4ba3[_0x33c3('0xb')](_0x58effb[_0x33c3('0x15')],{'attributes':['id']}),void _0x1f8a6d[_0x33c3('0xa')](_0x33c3('0x2b'),_0x584538(),_0x12aa06);_0x3a4ba3[_0x33c3('0xb')](_0x58effb['viewItem'],{'attributes':['id']})&&_0x1f8a6d[_0x33c3('0xa')](_0x33c3('0x2b'),_0x9c5c3d,_0x12aa06);},{'priority':_0x3a066e[_0x33c3('0x2c')](_0x33c3('0x1d'))+0.5});}[_0x33c3('0x7')](_0x2bc2f5){this[_0x33c3('0x11')][_0x33c3('0x8')][_0x33c3('0x5')](_0x33c3('0x10'))[_0x33c3('0x21')](_0x10b26b=>_0x10b26b['on']('attribute:headingId:'+_0x2bc2f5,(_0x41ff02,_0x309163,_0x35c2b2)=>{if(!_0x35c2b2['consumable'][_0x33c3('0xb')](_0x309163[_0x33c3('0x6')],_0x41ff02['name']))return;const _0x548bc0=_0x309163[_0x33c3('0x6')][_0x33c3('0x20')](_0x33c3('0x2b')),_0x2e5d2c=_0x35c2b2[_0x33c3('0x2f')]['toViewElement'](_0x309163['item']);_0x35c2b2['writer'][_0x33c3('0xa')]('id',_0x548bc0,_0x2e5d2c);}));}[_0x33c3('0x19')](){const _0x461e66=this[_0x33c3('0x11')],_0x451ceb=new Set(),_0xc589fd=new Set();function _0x36db4a(_0x53fa26,_0x425e70){const _0x43a737=_0x584538();return _0xc589fd[_0x33c3('0x21')](_0x43a737),_0x53fa26[_0x33c3('0xa')](_0x33c3('0x2b'),_0x43a737,_0x425e70),_0x43a737;}function _0x523d16(_0x11c304,_0x29c09e){_0x11c304['removeAttribute']('headingId',_0x29c09e);}_0x461e66[_0x33c3('0x28')]['document'][_0x33c3('0x0')](_0x2d1e8d=>{const _0x2d3981=_0x461e66[_0x33c3('0x28')][_0x33c3('0x25')][_0x33c3('0x26')][_0x33c3('0x3')]();let _0x5c6df0=!0x1;for(const _0xb84b92 of _0x2d3981)if('insert'==_0xb84b92[_0x33c3('0x1')]&&_0xb84b92[_0x33c3('0x23')]){if(_0xb84b92['name'][_0x33c3('0x2a')](/heading\d/)){const _0x3cf58d=_0xb84b92[_0x33c3('0x1c')][_0x33c3('0x2c')](_0x33c3('0x2b'));_0x33c3('0x1b')==typeof _0x3cf58d?_0x451ceb[_0x33c3('0x2e')](_0x3cf58d)?(_0x36db4a(_0x2d1e8d,_0xb84b92[_0x33c3('0xd')]['nodeAfter']),_0x5c6df0=!0x0):_0xc589fd['add'](_0x3cf58d):(_0x36db4a(_0x2d1e8d,_0xb84b92[_0x33c3('0xd')]['nodeAfter']),_0x5c6df0=!0x0);}else _0x33c3('0x1b')==typeof _0xb84b92[_0x33c3('0x1c')][_0x33c3('0x2c')]('headingId')&&(_0x523d16(_0x2d1e8d,_0xb84b92[_0x33c3('0xd')][_0x33c3('0x1f')]),_0x5c6df0=!0x0);}else{if('remove'==_0xb84b92[_0x33c3('0x1')]){const _0x502e0e=_0xb84b92[_0x33c3('0x1c')][_0x33c3('0x2c')](_0x33c3('0x2b'));'string'==typeof _0x502e0e&&_0x451ceb[_0x33c3('0x4')](_0x502e0e);}}return _0x5c6df0;}),_0x461e66[_0x33c3('0x28')][_0x33c3('0x25')]['on']('change',()=>{_0xc589fd['forEach'](_0x3ebdb3=>_0x451ceb[_0x33c3('0x21')](_0x3ebdb3)),_0xc589fd[_0x33c3('0x22')]();});}}

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

*/
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')));}}
const _0x2378=['insertObject','execute','model','change','selection','tableOfContents','schema','editor','getFirstPosition'];(function(_0x4efaa7,_0x2378a4){const _0x31edc7=function(_0x362ceb){while(--_0x362ceb){_0x4efaa7['push'](_0x4efaa7['shift']());}};_0x31edc7(++_0x2378a4);}(_0x2378,0x1b0));const _0x31ed=function(_0x4efaa7,_0x2378a4){_0x4efaa7=_0x4efaa7-0x0;let _0x31edc7=_0x2378[_0x4efaa7];return _0x31edc7;};import{Command as _0x2efcc1}from'ckeditor5/src/core';export default class O extends _0x2efcc1{[_0x31ed('0x1')](){this[_0x31ed('0x7')][_0x31ed('0x2')][_0x31ed('0x3')](_0x4fe7b1=>{this[_0x31ed('0x7')][_0x31ed('0x2')][_0x31ed('0x0')](_0x4fe7b1['createElement'](_0x31ed('0x5')));});}['refresh'](){const _0x54c6c6=this['editor'][_0x31ed('0x2')],_0x156e82=_0x54c6c6['document'][_0x31ed('0x4')][_0x31ed('0x8')]();this['isEnabled']=null!==(_0x156e82&&_0x54c6c6[_0x31ed('0x6')]['findAllowedParent'](_0x156e82,_0x31ed('0x5')));}}

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

*/
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']);}}
import{ButtonView as _0x54264b}from'ckeditor5/src/ui';import{CKEditorError as _0x4b6bb2}from'ckeditor5/src/utils';import{Plugin as _0x4a86e7}from'ckeditor5/src/core';import _0x50a790 from'../../theme/icons/table-of-contents.svg';export default class s extends _0x4a86e7{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x5e2fb3){super(_0x5e2fb3),this['_licenseKeyCheckInterval']=null;}['init'](){const _0xdae219=this['editor'],t=_0xdae219['t'];_0xdae219['ui']['componentFactory']['add']('tableOfContents',_0xa3829e=>{const _0x1e6762=_0xdae219['commands']['get']('insertTableOfContents'),_0x212351=new _0x54264b(_0xa3829e);return _0x212351['set']({'label':t('Table\x20of\x20contents'),'icon':_0x50a790,'tooltip':!0x0}),_0x212351['bind']('isEnabled')['to'](_0x1e6762,'isEnabled'),this['listenTo'](_0x212351,'execute',()=>{_0xdae219['execute']('insertTableOfContents'),_0xdae219['editing']['view']['focus']();}),_0x212351;}),this['licenseKey']=_0xdae219['config']['get']('licenseKey');const _0x35d5c1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2514d5;for(const _0x38295c in _0x35d5c1){const _0x5dc208=_0x38295c,_0x12bd94=_0x35d5c1[_0x5dc208];if('tableOfContentsLicenseKeyTrial'===_0x12bd94||'tableOfContentsLicenseKeyInvalid'===_0x12bd94||'tableOfContentsLicenseKeyValid'===_0x12bd94||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x12bd94){delete _0x35d5c1[_0x5dc208],_0x2514d5=_0x12bd94;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x2514d5)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x4b6bb2('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x2514d5&&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'===_0x2514d5)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x4b6bb2('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x2514d5&&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