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
627
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-20230907.0 to 0.0.0-nightly-20230908.0

6

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

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

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

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

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

*/
const _0x3de0=['DocumentOutline','licenseKey','pluginName','documentOutlineLicenseKeyTrialLimit:operations','document-outline-invalid-license-key','documentOutlineLicenseKeyValid','init','info','get','requires','documentOutlineLicenseKeyTrial','documentOutlineLicenseKeyInvalid','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','_licenseKeyCheckInterval','destroy','config'];(function(_0x1dac03,_0x3de03e){const _0x164421=function(_0x197e20){while(--_0x197e20){_0x1dac03['push'](_0x1dac03['shift']());}};_0x164421(++_0x3de03e);}(_0x3de0,0xe0));const _0x1644=function(_0x1dac03,_0x3de03e){_0x1dac03=_0x1dac03-0x0;let _0x164421=_0x3de0[_0x1dac03];return _0x164421;};import{Plugin as _0x269fc0}from'ckeditor5/src/core';import{CKEditorError as _0x553c36}from'ckeditor5/src/utils';import _0x4ac155 from'./documentoutline/documentoutlineutils';import _0x2aab4f from'./documentoutline/documentoutlineui';export default class l extends _0x269fc0{static get[_0x1644('0x6')](){return[_0x4ac155,_0x2aab4f];}static get[_0x1644('0x10')](){return _0x1644('0xe');}constructor(_0x2032b4){super(_0x2032b4),this[_0x1644('0xb')]=null;}[_0x1644('0x3')](){const _0x2d9243=this[_0x1644('0xa')];this[_0x1644('0xf')]=_0x2d9243[_0x1644('0xd')][_0x1644('0x5')](_0x1644('0xf'));const _0x4df39a=this[_0x1644('0xa')];this[_0x1644('0xb')]=setInterval(()=>{let _0x1ef066;for(const _0x3f20a0 in _0x4df39a){const _0x1d9709=_0x3f20a0,_0x51c7b5=_0x4df39a[_0x1d9709];if(_0x1644('0x7')===_0x51c7b5||_0x1644('0x8')===_0x51c7b5||'documentOutlineLicenseKeyValid'===_0x51c7b5||_0x1644('0x0')===_0x51c7b5){delete _0x4df39a[_0x1d9709],_0x1ef066=_0x51c7b5;break;}}if('documentOutlineLicenseKeyInvalid'===_0x1ef066)throw clearInterval(this[_0x1644('0xb')]),new _0x553c36(_0x1644('0x1'),null);if(_0x1644('0x7')===_0x1ef066&&console[_0x1644('0x4')](_0x1644('0x9')),_0x1644('0x0')===_0x1ef066)throw clearInterval(this[_0x1644('0xb')]),new _0x553c36('document-outline-trial-license-key-reached-limit-changes',null);_0x1644('0x2')===_0x1ef066&&clearInterval(this[_0x1644('0xb')]);},0x3e8);}[_0x1644('0xc')](){this[_0x1644('0xb')]&&clearInterval(this[_0x1644('0xb')]);}}
const _0x3338=['documentOutlineLicenseKeyValid','documentOutlineLicenseKeyTrialLimit:operations','init','DocumentOutline','document-outline-trial-license-key-reached-limit-changes','get','destroy','documentOutlineLicenseKeyTrial','_licenseKeyCheckInterval','document-outline-invalid-license-key','info','documentOutlineLicenseKeyInvalid','licenseKey','editor','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20document\x20outline\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.'];(function(_0x33b268,_0x33385f){const _0x1db579=function(_0x5d01a4){while(--_0x5d01a4){_0x33b268['push'](_0x33b268['shift']());}};_0x1db579(++_0x33385f);}(_0x3338,0x13d));const _0x1db5=function(_0x33b268,_0x33385f){_0x33b268=_0x33b268-0x0;let _0x1db579=_0x3338[_0x33b268];return _0x1db579;};import{Plugin as _0x453273}from'ckeditor5/src/core';import{CKEditorError as _0x498351}from'ckeditor5/src/utils';import _0x53cf18 from'./documentoutline/documentoutlineutils';import _0x86fd0c from'./documentoutline/documentoutlineui';export default class l extends _0x453273{static get['requires'](){return[_0x53cf18,_0x86fd0c];}static get['pluginName'](){return _0x1db5('0x1');}constructor(_0x12de7d){super(_0x12de7d),this['_licenseKeyCheckInterval']=null;}[_0x1db5('0x0')](){const _0x9fb89b=this[_0x1db5('0xb')];this[_0x1db5('0xa')]=_0x9fb89b['config'][_0x1db5('0x3')]('licenseKey');const _0x231670=this[_0x1db5('0xb')];this[_0x1db5('0x6')]=setInterval(()=>{let _0x2257c2;for(const _0x4b7b9a in _0x231670){const _0x3f97a7=_0x4b7b9a,_0x1d566b=_0x231670[_0x3f97a7];if(_0x1db5('0x5')===_0x1d566b||_0x1db5('0x9')===_0x1d566b||_0x1db5('0xd')===_0x1d566b||_0x1db5('0xe')===_0x1d566b){delete _0x231670[_0x3f97a7],_0x2257c2=_0x1d566b;break;}}if(_0x1db5('0x9')===_0x2257c2)throw clearInterval(this[_0x1db5('0x6')]),new _0x498351(_0x1db5('0x7'),null);if('documentOutlineLicenseKeyTrial'===_0x2257c2&&console[_0x1db5('0x8')](_0x1db5('0xc')),_0x1db5('0xe')===_0x2257c2)throw clearInterval(this[_0x1db5('0x6')]),new _0x498351(_0x1db5('0x2'),null);_0x1db5('0xd')===_0x2257c2&&clearInterval(this[_0x1db5('0x6')]);},0x3e8);}[_0x1db5('0x4')](){this[_0x1db5('0x6')]&&clearInterval(this[_0x1db5('0x6')]);}}

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

*/
const _0x1f5c=['init','selection','model','toModel','_headingNames','editing','getChildren','DocumentOutlineUtils','data','length','findIndex','indexOf','text','get','getFirstPosition','getRoot','_deriveHeadingElementsFromConversion','fire','afterInit','_getOutlineDefinitions','level','push','domConverter','backward','document','includes','getRootNames','item','element','_getActiveHeading','domToView','view','pluginName','_getHeadingNames','modelElement','name','editor','change','documentOutline.headings'];(function(_0x524d4d,_0x1f5c80){const _0x1de957=function(_0x3dde6d){while(--_0x3dde6d){_0x524d4d['push'](_0x524d4d['shift']());}};_0x1de957(++_0x1f5c80);}(_0x1f5c,0x1be));const _0x1de9=function(_0x524d4d,_0x1f5c80){_0x524d4d=_0x524d4d-0x0;let _0x1de957=_0x1f5c[_0x524d4d];return _0x1de957;};import{Plugin as _0x42b853}from'ckeditor5/src/core';import{debounce as _0x2697eb}from'lodash-es';import{TreeWalker as _0x31d8ce}from'ckeditor5/src/engine';import{getElementText as _0x3ee9f0,getDefaultFeatureHeadingNames as _0x24a74d}from'./utils';import{diff as _0xff4b16,diffToChanges as _0x2d3327}from'ckeditor5/src/utils';export default class n extends _0x42b853{constructor(){super(...arguments),this[_0x1de9('0x1a')]=[];}static get[_0x1de9('0xf')](){return _0x1de9('0x1d');}[_0x1de9('0x16')](){const _0x46541d=this[_0x1de9('0x13')];this[_0x1de9('0x1a')]=this[_0x1de9('0x10')]();let _0x4c497=[];_0x46541d['model'][_0x1de9('0x7')]['on'](_0x1de9('0x14'),_0x2697eb(()=>{const _0x191f08=_0x4c497;_0x4c497=this[_0x1de9('0x2')]();const _0x5f22aa=_0xff4b16(_0x191f08,_0x4c497,(_0x58cde7,_0x30a95c)=>_0x58cde7[_0x1de9('0x3')]===_0x30a95c[_0x1de9('0x3')]&&_0x58cde7[_0x1de9('0x22')]===_0x30a95c[_0x1de9('0x22')]&&_0x58cde7['modelElement']===_0x30a95c[_0x1de9('0x11')]),_0x22e94d=_0x2d3327(_0x5f22aa,_0x4c497),_0x504984=this['_getActiveHeading'](),_0x363055=_0x4c497[_0x1de9('0x20')](_0x4914f8=>_0x4914f8['modelElement']===_0x504984);_0x22e94d[_0x1de9('0x1f')]&&this['fire'](_0x1de9('0x14'),{'outlineDefinitions':_0x4c497,'activeItemIndex':_0x363055,'outlineChanges':_0x22e94d}),this[_0x1de9('0x0')]('activeItemIndex',{'index':_0x363055});},0xfa,{'leading':!0x0,'trailing':!0x0}));}[_0x1de9('0x1')](){this[_0x1de9('0x1a')][_0x1de9('0x1f')]||this[_0x1de9('0x26')]();}[_0x1de9('0x2')](){const _0x3e165c=this['editor'],_0x3597e6=[],_0x443483=this['_headingNames'];for(const _0x4c2988 of _0x3e165c[_0x1de9('0x18')][_0x1de9('0x7')][_0x1de9('0x9')]())_0x2764ce(_0x3e165c[_0x1de9('0x18')][_0x1de9('0x7')][_0x1de9('0x25')](_0x4c2988));function _0x2764ce(_0x20c53b){for(const _0x18f3d9 of _0x20c53b[_0x1de9('0x1c')]())_0x18f3d9['is']('element')&&(_0x443483[_0x1de9('0x8')](_0x18f3d9[_0x1de9('0x12')])&&_0x3597e6[_0x1de9('0x4')]({'level':_0x443483[_0x1de9('0x21')](_0x18f3d9['name'])+0x1,'text':_0x3ee9f0(_0x18f3d9),'modelElement':_0x18f3d9}),_0x2764ce(_0x18f3d9));}return _0x3597e6;}[_0x1de9('0xc')](){const _0x26f72e=this['editor']['model'][_0x1de9('0x7')][_0x1de9('0x17')][_0x1de9('0x24')](),_0x2ed7b0=new _0x31d8ce({'direction':_0x1de9('0x6'),'startPosition':_0x26f72e});for(const _0x47e65c of _0x2ed7b0)if(_0x47e65c[_0x1de9('0xa')]['is'](_0x1de9('0xb'))&&this[_0x1de9('0x1a')][_0x1de9('0x8')](_0x47e65c[_0x1de9('0xa')][_0x1de9('0x12')]))return _0x47e65c[_0x1de9('0xa')];}[_0x1de9('0x10')](){const _0x574b75=this[_0x1de9('0x13')]['config'][_0x1de9('0x23')](_0x1de9('0x15'));return _0x574b75||_0x24a74d(this[_0x1de9('0x13')]);}[_0x1de9('0x26')](){const _0x5784d3=this[_0x1de9('0x13')],_0x409ea9=['h1','h2','h3','h4','h5','h6'],_0xdb6a07=[];for(const _0x37aa73 of _0x409ea9){const _0x3c1de0=_0x5784d3[_0x1de9('0x1b')][_0x1de9('0xe')][_0x1de9('0x5')][_0x1de9('0xd')](document['createElement'](_0x37aa73)),_0x1a3d3a=_0x5784d3[_0x1de9('0x1e')][_0x1de9('0x19')](_0x3c1de0)['getChild'](0x0);(null==_0x1a3d3a?void 0x0:_0x1a3d3a['is'](_0x1de9('0xb')))&&_0xdb6a07[_0x1de9('0x4')](_0x1a3d3a[_0x1de9('0x12')]);}this[_0x1de9('0x1a')]=_0xdb6a07;}}
const _0x251c=['toModel','documentOutline.headings','view','model','getRootNames','includes','getFirstPosition','push','editing','getChild','modelElement','domConverter','DocumentOutlineUtils','level','name','config','pluginName','activeItemIndex','fire','item','domToView','afterInit','data','indexOf','_headingNames','findIndex','element','get','length','change','editor','_getActiveHeading','text','_deriveHeadingElementsFromConversion','_getOutlineDefinitions','_getHeadingNames','document'];(function(_0x3147d6,_0x251cad){const _0x4edfa8=function(_0x442b28){while(--_0x442b28){_0x3147d6['push'](_0x3147d6['shift']());}};_0x4edfa8(++_0x251cad);}(_0x251c,0x133));const _0x4edf=function(_0x3147d6,_0x251cad){_0x3147d6=_0x3147d6-0x0;let _0x4edfa8=_0x251c[_0x3147d6];return _0x4edfa8;};import{Plugin as _0x283ccd}from'ckeditor5/src/core';import{debounce as _0x26d394}from'lodash-es';import{TreeWalker as _0x3c3b5c}from'ckeditor5/src/engine';import{getElementText as _0x26144a,getDefaultFeatureHeadingNames as _0x2d93d4}from'./utils';import{diff as _0x595091,diffToChanges as _0xac9a37}from'ckeditor5/src/utils';export default class n extends _0x283ccd{constructor(){super(...arguments),this[_0x4edf('0xd')]=[];}static get[_0x4edf('0x5')](){return _0x4edf('0x1');}['init'](){const _0x59899a=this[_0x4edf('0x13')];this[_0x4edf('0xd')]=this[_0x4edf('0x18')]();let _0x2e3c95=[];_0x59899a[_0x4edf('0x1d')]['document']['on'](_0x4edf('0x12'),_0x26d394(()=>{const _0x8d0d6d=_0x2e3c95;_0x2e3c95=this[_0x4edf('0x17')]();const _0x5301cb=_0x595091(_0x8d0d6d,_0x2e3c95,(_0x2426fe,_0x229c5c)=>_0x2426fe[_0x4edf('0x2')]===_0x229c5c[_0x4edf('0x2')]&&_0x2426fe[_0x4edf('0x15')]===_0x229c5c[_0x4edf('0x15')]&&_0x2426fe[_0x4edf('0x24')]===_0x229c5c[_0x4edf('0x24')]),_0x518085=_0xac9a37(_0x5301cb,_0x2e3c95),_0x2c9d1b=this[_0x4edf('0x14')](),_0x3252ce=_0x2e3c95[_0x4edf('0xe')](_0x4aa723=>_0x4aa723[_0x4edf('0x24')]===_0x2c9d1b);_0x518085[_0x4edf('0x11')]&&this['fire'](_0x4edf('0x12'),{'outlineDefinitions':_0x2e3c95,'activeItemIndex':_0x3252ce,'outlineChanges':_0x518085}),this[_0x4edf('0x7')](_0x4edf('0x6'),{'index':_0x3252ce});},0xfa,{'leading':!0x0,'trailing':!0x0}));}[_0x4edf('0xa')](){this[_0x4edf('0xd')]['length']||this['_deriveHeadingElementsFromConversion']();}[_0x4edf('0x17')](){const _0x439830=this[_0x4edf('0x13')],_0x5c7580=[],_0x30a28c=this[_0x4edf('0xd')];for(const _0x8df3b7 of _0x439830['model'][_0x4edf('0x19')][_0x4edf('0x1e')]())_0x58da3c(_0x439830[_0x4edf('0x1d')]['document']['getRoot'](_0x8df3b7));function _0x58da3c(_0x1b0ada){for(const _0x4689dd of _0x1b0ada['getChildren']())_0x4689dd['is'](_0x4edf('0xf'))&&(_0x30a28c[_0x4edf('0x1f')](_0x4689dd[_0x4edf('0x3')])&&_0x5c7580[_0x4edf('0x21')]({'level':_0x30a28c[_0x4edf('0xc')](_0x4689dd['name'])+0x1,'text':_0x26144a(_0x4689dd),'modelElement':_0x4689dd}),_0x58da3c(_0x4689dd));}return _0x5c7580;}['_getActiveHeading'](){const _0x210b5e=this[_0x4edf('0x13')]['model'][_0x4edf('0x19')]['selection'][_0x4edf('0x20')](),_0x375a3f=new _0x3c3b5c({'direction':'backward','startPosition':_0x210b5e});for(const _0x13b3b4 of _0x375a3f)if(_0x13b3b4[_0x4edf('0x8')]['is']('element')&&this[_0x4edf('0xd')][_0x4edf('0x1f')](_0x13b3b4[_0x4edf('0x8')][_0x4edf('0x3')]))return _0x13b3b4[_0x4edf('0x8')];}[_0x4edf('0x18')](){const _0x216099=this[_0x4edf('0x13')][_0x4edf('0x4')][_0x4edf('0x10')](_0x4edf('0x1b'));return _0x216099||_0x2d93d4(this[_0x4edf('0x13')]);}[_0x4edf('0x16')](){const _0x934344=this['editor'],_0x508f9d=['h1','h2','h3','h4','h5','h6'],_0x470467=[];for(const _0x29b8f7 of _0x508f9d){const _0x171945=_0x934344[_0x4edf('0x22')][_0x4edf('0x1c')][_0x4edf('0x0')][_0x4edf('0x9')](document['createElement'](_0x29b8f7)),_0x2da54e=_0x934344[_0x4edf('0xb')][_0x4edf('0x1a')](_0x171945)[_0x4edf('0x23')](0x0);(null==_0x2da54e?void 0x0:_0x2da54e['is'](_0x4edf('0xf')))&&_0x470467[_0x4edf('0x21')](_0x2da54e[_0x4edf('0x3')]);}this[_0x4edf('0xd')]=_0x470467;}}

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

*/
import{View as _0x1b75fd}from'ckeditor5/src/ui';export default class $ extends _0x1b75fd{constructor(_0x3e8ebd,_0x136292=!0x1){super(_0x3e8ebd);const t=_0x3e8ebd['t'],_0x5e7d9f=this['bindTemplate'],_0x49ea09=_0x136292?'['+t('Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x2da881=>!_0x2da881),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x5e7d9f['to']('level',_0x450a86=>'ck-document-outline__item_level-'+_0x450a86),_0x5e7d9f['if']('isActive','ck-document-outline__item_active'),_0x5e7d9f['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x5e7d9f['to']('text')},'children':[{'text':_0x5e7d9f['to']('text',_0x54f5aa=>_0x54f5aa||_0x49ea09)}],'on':{'click':_0x5e7d9f['to']('click')}});}}
import{View as _0x36bd9a}from'ckeditor5/src/ui';export default class $ extends _0x36bd9a{constructor(_0x11bd99,_0x304631=!0x1){super(_0x11bd99);const t=_0x11bd99['t'],_0x28daf7=this['bindTemplate'],_0xaf16ff=_0x304631?'['+t('Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x43ee95=>!_0x43ee95),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x28daf7['to']('level',_0x5be395=>'ck-document-outline__item_level-'+_0x5be395),_0x28daf7['if']('isActive','ck-document-outline__item_active'),_0x28daf7['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x28daf7['to']('text')},'children':[{'text':_0x28daf7['to']('text',_0x46635b=>_0x46635b||_0xaf16ff)}],'on':{'click':_0x28daf7['to']('click')}});}}

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

*/
import{View as _0x42fcdc}from'ckeditor5/src/ui';import{scrollAncestorsToShowTarget as _0x2426d1}from'ckeditor5/src/utils';import _0x1ac061 from'./documentoutlineitemview';export default class d extends _0x42fcdc{constructor(_0xbf85d6,_0x316acc=!0x1,_0x29384d){super(_0xbf85d6);const t=_0xbf85d6['t'];this['showEmptyHeadingText']=_0x316acc,this['set']('activeItemIndex',-0x1),this['_documentOutlineContainer']=_0x29384d,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x43a1ce,_0x3cc75f,_0x231b66,_0x467918)=>{this['_setActiveItem'](_0x467918,_0x231b66);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0xbf85d6['contentLanguageDirection'],'data-document-outline-empty-placeholder':t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x3ad307){_0x3ad307['forEach'](_0x3433a0=>{'insert'==_0x3433a0['type']?this['_insertItem'](_0x3433a0['index'],..._0x3433a0['values']):'delete'==_0x3433a0['type']&&this['_deleteItem'](_0x3433a0['index'],_0x3433a0['howMany']);});}['_setActiveItem'](_0x3cb818,_0x3355bb){if(-0x1!==_0x3cb818){const _0x2f36fe=this['items']['get'](_0x3cb818);_0x2f36fe&&(_0x2f36fe['isActive']=!0x1);}-0x1!==_0x3355bb&&(this['items']['get'](_0x3355bb)['isActive']=!0x0,this['_scrollToItem'](_0x3355bb));}['_insertItem'](_0x38473d,..._0x22aff5){const _0x52d2c5=_0x22aff5['map']((_0x2675b5,_0xa87472)=>{const _0x20e788=new _0x1ac061(this['locale'],this['showEmptyHeadingText']);return _0x20e788['text']=_0x2675b5['text'],_0x20e788['level']=_0x2675b5['level'],_0x38473d+_0xa87472===this['activeItemIndex']&&(_0x20e788['isActive']=!0x0),_0x20e788;});this['items']['addMany'](_0x52d2c5,_0x38473d);}['_deleteItem'](_0x1e5d7a,_0x323688){do{this['items']['remove'](_0x1e5d7a);}while(--_0x323688);}['_handleItemClick'](_0x11f131){const _0x24ada9=this['items']['getIndex'](_0x11f131['source']);this['fire']('itemSelected',_0x24ada9);}['_scrollToItem'](_0x4d1894){_0x2426d1(this['items']['get'](_0x4d1894)['element'],0x14,this['_documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}
import{View as _0x4036fc}from'ckeditor5/src/ui';import{scrollAncestorsToShowTarget as _0x56c1f5}from'ckeditor5/src/utils';import _0x2d6568 from'./documentoutlineitemview';export default class d extends _0x4036fc{constructor(_0x15ccb2,_0x4b9ed8=!0x1,_0x4fa912){super(_0x15ccb2);const t=_0x15ccb2['t'];this['showEmptyHeadingText']=_0x4b9ed8,this['set']('activeItemIndex',-0x1),this['_documentOutlineContainer']=_0x4fa912,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x12b430,_0x33f10b,_0x3d702d,_0x10e216)=>{this['_setActiveItem'](_0x10e216,_0x3d702d);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x15ccb2['contentLanguageDirection'],'data-document-outline-empty-placeholder':t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x430ff4){_0x430ff4['forEach'](_0x99ad80=>{'insert'==_0x99ad80['type']?this['_insertItem'](_0x99ad80['index'],..._0x99ad80['values']):'delete'==_0x99ad80['type']&&this['_deleteItem'](_0x99ad80['index'],_0x99ad80['howMany']);});}['_setActiveItem'](_0x23c021,_0x463682){if(-0x1!==_0x23c021){const _0x345ef0=this['items']['get'](_0x23c021);_0x345ef0&&(_0x345ef0['isActive']=!0x1);}-0x1!==_0x463682&&(this['items']['get'](_0x463682)['isActive']=!0x0,this['_scrollToItem'](_0x463682));}['_insertItem'](_0x7f26c9,..._0x4900fd){const _0x196fe1=_0x4900fd['map']((_0x4476db,_0x2e030)=>{const _0xd8773f=new _0x2d6568(this['locale'],this['showEmptyHeadingText']);return _0xd8773f['text']=_0x4476db['text'],_0xd8773f['level']=_0x4476db['level'],_0x7f26c9+_0x2e030===this['activeItemIndex']&&(_0xd8773f['isActive']=!0x0),_0xd8773f;});this['items']['addMany'](_0x196fe1,_0x7f26c9);}['_deleteItem'](_0x2c5fe5,_0x4f9ab1){do{this['items']['remove'](_0x2c5fe5);}while(--_0x4f9ab1);}['_handleItemClick'](_0x287563){const _0x154595=this['items']['getIndex'](_0x287563['source']);this['fire']('itemSelected',_0x154595);}['_scrollToItem'](_0x2987eb){_0x56c1f5(this['items']['get'](_0x2987eb)['element'],0x14,this['_documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}

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

*/
const _0x53a1=['paragraph','htmlH3','data','heading.options','config','htmlH1','htmlH5','getChildren','model','get','has','htmlH2','htmlH6','push','reduce','plugins'];(function(_0x384897,_0x53a182){const _0x4fe7ff=function(_0x3e72e3){while(--_0x3e72e3){_0x384897['push'](_0x384897['shift']());}};_0x4fe7ff(++_0x53a182);}(_0x53a1,0x150));const _0x4fe7=function(_0x384897,_0x53a182){_0x384897=_0x384897-0x0;let _0x4fe7ff=_0x53a1[_0x384897];return _0x4fe7ff;};import{Text as _0x46e1f2}from'ckeditor5/src/engine';export function getElementText(_0x8137a8){let _0xddd9a5='';for(const _0x3b1b13 of _0x8137a8[_0x4fe7('0x7')]())_0x3b1b13 instanceof _0x46e1f2&&(_0xddd9a5+=_0x3b1b13[_0x4fe7('0x2')]);return _0xddd9a5;}export function getDefaultFeatureHeadingNames(_0x1aa05e){const _0x3f5074=_0x1aa05e[_0x4fe7('0x4')][_0x4fe7('0x9')](_0x4fe7('0x3'));return _0x3f5074?_0x3f5074[_0x4fe7('0xe')]((_0x172253,_0x3676e5)=>(_0x4fe7('0x0')!==_0x3676e5[_0x4fe7('0x8')]&&_0x172253[_0x4fe7('0xd')](_0x3676e5['model']),_0x172253),[]):_0x1aa05e[_0x4fe7('0xf')][_0x4fe7('0xa')]('GeneralHtmlSupport')?[_0x4fe7('0x5'),_0x4fe7('0xb'),_0x4fe7('0x1'),'htmlH4',_0x4fe7('0x6'),_0x4fe7('0xc')]:[];}
const _0xcdad=['reduce','heading.options','config','model','data','htmlH4','htmlH6','htmlH2','htmlH3','htmlH1','plugins','GeneralHtmlSupport','get','paragraph'];(function(_0x559a63,_0xcdad35){const _0x260f20=function(_0x1a3327){while(--_0x1a3327){_0x559a63['push'](_0x559a63['shift']());}};_0x260f20(++_0xcdad35);}(_0xcdad,0x1cb));const _0x260f=function(_0x559a63,_0xcdad35){_0x559a63=_0x559a63-0x0;let _0x260f20=_0xcdad[_0x559a63];return _0x260f20;};import{Text as _0x14d940}from'ckeditor5/src/engine';export function getElementText(_0x4e42c3){let _0x59a4ab='';for(const _0x40f214 of _0x4e42c3['getChildren']())_0x40f214 instanceof _0x14d940&&(_0x59a4ab+=_0x40f214[_0x260f('0x7')]);return _0x59a4ab;}export function getDefaultFeatureHeadingNames(_0x25ea43){const _0x28095f=_0x25ea43[_0x260f('0x5')][_0x260f('0x1')](_0x260f('0x4'));return _0x28095f?_0x28095f[_0x260f('0x3')]((_0x1e9ef1,_0x454fe7)=>(_0x260f('0x2')!==_0x454fe7['model']&&_0x1e9ef1['push'](_0x454fe7[_0x260f('0x6')]),_0x1e9ef1),[]):_0x25ea43[_0x260f('0xd')]['has'](_0x260f('0x0'))?[_0x260f('0xc'),_0x260f('0xa'),_0x260f('0xb'),_0x260f('0x8'),'htmlH5',_0x260f('0x9')]:[];}

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

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

*/
var _0x5a13=['pluginName','requires','TableOfContents'];(function(_0x5a059e,_0x5a13fd){var _0x4b5017=function(_0x41bb9d){while(--_0x41bb9d){_0x5a059e['push'](_0x5a059e['shift']());}};_0x4b5017(++_0x5a13fd);}(_0x5a13,0x1de));var _0x4b50=function(_0x5a059e,_0x5a13fd){_0x5a059e=_0x5a059e-0x0;var _0x4b5017=_0x5a13[_0x5a059e];return _0x4b5017;};import{Plugin as _0x5887a4}from'ckeditor5/src/core';import _0x1d218b from'./tableofcontents/tableofcontentsediting';import _0xed9516 from'./tableofcontents/tableofcontentsui';export default class c extends _0x5887a4{static get[_0x4b50('0x0')](){return[_0x1d218b,_0xed9516];}static get[_0x4b50('0x2')](){return _0x4b50('0x1');}}
var _0x3a6a=['requires','pluginName','TableOfContents'];(function(_0x2d8540,_0x3a6a49){var _0x4b2c84=function(_0x24b625){while(--_0x24b625){_0x2d8540['push'](_0x2d8540['shift']());}};_0x4b2c84(++_0x3a6a49);}(_0x3a6a,0x123));var _0x4b2c=function(_0x2d8540,_0x3a6a49){_0x2d8540=_0x2d8540-0x0;var _0x4b2c84=_0x3a6a[_0x2d8540];return _0x4b2c84;};import{Plugin as _0x33d003}from'ckeditor5/src/core';import _0x1e551b from'./tableofcontents/tableofcontentsediting';import _0x251fb6 from'./tableofcontents/tableofcontentsui';export default class c extends _0x33d003{static get[_0x4b2c('0x0')](){return[_0x1e551b,_0x251fb6];}static get[_0x4b2c('0x1')](){return _0x4b2c('0x2');}}

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

*/
const _0x3a0f=['for','_customUpcastHeadingsConversion','headingId','add','upcastDispatcher','modelRange','attribute:headingId:','type','extend','headingId.modelAttributeName','heading1','differ','set','element:','match','string','document','schema','data','removeAttribute','HeadingId','heading.options','remove','conversion','name','nodeAfter','delete','getContainedElement','consume','setAttribute','length','afterInit','forEach','clear','registerPostFixer','pluginName','low','item','getChanges','hasAttribute','paragraph','toViewElement','downcast','_registerHeadingIdAttributePostfixer','config','mapper','getAttribute','position','editor','model','_customDataDowncastHeadingsConversion','consumable','viewItem','get','insert','change','attributes'];(function(_0x4aa636,_0x3a0f64){const _0xe611d9=function(_0x309d13){while(--_0x309d13){_0x4aa636['push'](_0x4aa636['shift']());}};_0xe611d9(++_0x3a0f64);}(_0x3a0f,0x19d));const _0xe611=function(_0x4aa636,_0x3a0f64){_0x4aa636=_0x4aa636-0x0;let _0xe611d9=_0x3a0f[_0x4aa636];return _0xe611d9;};import{Plugin as _0x24deb4}from'ckeditor5/src/core';import{uid as _0x4f01a8,priorities as _0x9e72b8}from'ckeditor5/src/utils';export default class A extends _0x24deb4{static get[_0xe611('0x15')](){return _0xe611('0x6');}[_0xe611('0x11')](){const _0x2f7c81=this['editor'];if(_0x2f7c81[_0xe611('0x1e')]['get'](_0xe611('0x34')))return;(function(_0x2e6f45){const _0x3ccd10=new Map();if(_0x2e6f45)return _0x2e6f45[_0xe611('0x12')](_0x34276a=>{_0xe611('0x1a')!==_0x34276a['model']&&_0x3ccd10[_0xe611('0x37')](_0x34276a['view'],_0x34276a[_0xe611('0x23')]);}),_0x3ccd10[_0xe611('0x27')]('h1')||_0x3ccd10[_0xe611('0x37')]('h1',_0xe611('0x35')),_0x3ccd10;return _0x3ccd10;}(this[_0xe611('0x22')][_0xe611('0x1e')][_0xe611('0x27')](_0xe611('0x7')))['forEach']((_0x3d2961,_0x48d80c)=>{this[_0xe611('0x2c')](_0x48d80c),this[_0xe611('0x24')](_0x3d2961),_0x2f7c81[_0xe611('0x23')][_0xe611('0x3')]['isRegistered'](_0x3d2961)&&_0x2f7c81[_0xe611('0x23')][_0xe611('0x3')][_0xe611('0x33')](_0x3d2961,{'allowAttributes':_0xe611('0x2d')});}),this[_0xe611('0x1d')]());}[_0xe611('0x2c')](_0xeee255){this[_0xe611('0x22')][_0xe611('0x4')][_0xe611('0x2f')]['on'](_0xe611('0x38')+_0xeee255,(_0x202f50,_0x5e718b,_0x5bb13c)=>{const {consumable:_0x4761c0,writer:_0x13e550}=_0x5bb13c,_0x541b54=_0x5e718b['viewItem']['getAttribute']('id'),_0x2d79c1=_0x5e718b[_0xe611('0x30')][_0xe611('0xd')]();if(!(_0x541b54&&_0x541b54[_0xe611('0x10')]||_0x2d79c1[_0xe611('0x19')]('headingId')))return _0x4761c0[_0xe611('0xe')](_0x5e718b[_0xe611('0x26')],{'attributes':['id']}),void _0x13e550['setAttribute'](_0xe611('0x2d'),_0x4f01a8(),_0x2d79c1);_0x4761c0[_0xe611('0xe')](_0x5e718b[_0xe611('0x26')],{'attributes':['id']})&&_0x13e550[_0xe611('0xf')](_0xe611('0x2d'),_0x541b54,_0x2d79c1);},{'priority':_0x9e72b8[_0xe611('0x27')](_0xe611('0x16'))+0.5});}[_0xe611('0x24')](_0x7b455f){this[_0xe611('0x22')][_0xe611('0x9')][_0xe611('0x2b')](_0xe611('0x1c'))[_0xe611('0x2e')](_0x3fb7ca=>_0x3fb7ca['on'](_0xe611('0x31')+_0x7b455f,(_0x156068,_0x100bcd,_0x2b0e3d)=>{if(!_0x2b0e3d[_0xe611('0x25')][_0xe611('0xe')](_0x100bcd[_0xe611('0x17')],_0x156068[_0xe611('0xa')]))return;const _0x35334e=_0x100bcd[_0xe611('0x17')][_0xe611('0x20')](_0xe611('0x2d')),_0x129ccd=_0x2b0e3d[_0xe611('0x1f')][_0xe611('0x1b')](_0x100bcd[_0xe611('0x17')]);_0x2b0e3d['writer']['setAttribute']('id',_0x35334e,_0x129ccd);}));}['_registerHeadingIdAttributePostfixer'](){const _0x3c2d54=this[_0xe611('0x22')],_0x599c62=new Set(),_0x4f44cd=new Set();function _0x47c058(_0x256b13,_0x2c1369){const _0x528e52=_0x4f01a8();return _0x4f44cd[_0xe611('0x2e')](_0x528e52),_0x256b13['setAttribute']('headingId',_0x528e52,_0x2c1369),_0x528e52;}function _0x1ad42a(_0x493631,_0xeb1eca){_0x493631[_0xe611('0x5')]('headingId',_0xeb1eca);}_0x3c2d54[_0xe611('0x23')][_0xe611('0x2')][_0xe611('0x14')](_0x2a58a7=>{const _0x379602=_0x3c2d54['model']['document'][_0xe611('0x36')][_0xe611('0x18')]();let _0x2dd4d4=!0x1;for(const _0x2c7dec of _0x379602)if(_0xe611('0x28')==_0x2c7dec[_0xe611('0x32')]&&_0x2c7dec[_0xe611('0xa')]){if(_0x2c7dec[_0xe611('0xa')][_0xe611('0x0')](/heading\d/)){const _0x5828a5=_0x2c7dec[_0xe611('0x2a')][_0xe611('0x27')](_0xe611('0x2d'));_0xe611('0x1')==typeof _0x5828a5?_0x599c62['has'](_0x5828a5)?(_0x47c058(_0x2a58a7,_0x2c7dec[_0xe611('0x21')][_0xe611('0xb')]),_0x2dd4d4=!0x0):_0x4f44cd[_0xe611('0x2e')](_0x5828a5):(_0x47c058(_0x2a58a7,_0x2c7dec[_0xe611('0x21')]['nodeAfter']),_0x2dd4d4=!0x0);}else'string'==typeof _0x2c7dec[_0xe611('0x2a')][_0xe611('0x27')](_0xe611('0x2d'))&&(_0x1ad42a(_0x2a58a7,_0x2c7dec[_0xe611('0x21')]['nodeAfter']),_0x2dd4d4=!0x0);}else{if(_0xe611('0x8')==_0x2c7dec[_0xe611('0x32')]){const _0xea8cdb=_0x2c7dec['attributes'][_0xe611('0x27')](_0xe611('0x2d'));_0xe611('0x1')==typeof _0xea8cdb&&_0x599c62[_0xe611('0xc')](_0xea8cdb);}}return _0x2dd4d4;}),_0x3c2d54[_0xe611('0x23')][_0xe611('0x2')]['on'](_0xe611('0x29'),()=>{_0x4f44cd[_0xe611('0x12')](_0x3d5959=>_0x599c62['add'](_0x3d5959)),_0x4f44cd[_0xe611('0x13')]();});}}
const _0x1b0e=['data','HeadingId','_registerHeadingIdAttributePostfixer','getAttribute','string','forEach','position','removeAttribute','model','_customDataDowncastHeadingsConversion','editor','upcastDispatcher','view','setAttribute','extend','afterInit','name','config','attribute:headingId:','delete','writer','conversion','schema','getChanges','paragraph','nodeAfter','get','consume','for','attributes','pluginName','length','low','heading.options','item','registerPostFixer','set','differ','type','headingId','headingId.modelAttributeName','document','modelRange','add','has','element:','change','_customUpcastHeadingsConversion','viewItem'];(function(_0x143092,_0x1b0ebd){const _0x5763d8=function(_0x213d84){while(--_0x213d84){_0x143092['push'](_0x143092['shift']());}};_0x5763d8(++_0x1b0ebd);}(_0x1b0e,0xb8));const _0x5763=function(_0x143092,_0x1b0ebd){_0x143092=_0x143092-0x0;let _0x5763d8=_0x1b0e[_0x143092];return _0x5763d8;};import{Plugin as _0x150112}from'ckeditor5/src/core';import{uid as _0x1da9db,priorities as _0x25fb5f}from'ckeditor5/src/utils';export default class A extends _0x150112{static get[_0x5763('0x2a')](){return _0x5763('0xd');}[_0x5763('0x1b')](){const _0x26a58b=this['editor'];if(_0x26a58b[_0x5763('0x1d')][_0x5763('0x26')](_0x5763('0x3')))return;(function(_0x19ea6c){const _0x42eafd=new Map();if(_0x19ea6c)return _0x19ea6c[_0x5763('0x11')](_0x299e32=>{_0x5763('0x24')!==_0x299e32[_0x5763('0x14')]&&_0x42eafd[_0x5763('0x30')](_0x299e32[_0x5763('0x18')],_0x299e32[_0x5763('0x14')]);}),_0x42eafd[_0x5763('0x26')]('h1')||_0x42eafd[_0x5763('0x30')]('h1','heading1'),_0x42eafd;return _0x42eafd;}(this[_0x5763('0x16')][_0x5763('0x1d')]['get'](_0x5763('0x2d')))[_0x5763('0x11')]((_0x417a1a,_0x1cb0bf)=>{this[_0x5763('0xa')](_0x1cb0bf),this[_0x5763('0x15')](_0x417a1a),_0x26a58b['model'][_0x5763('0x22')]['isRegistered'](_0x417a1a)&&_0x26a58b[_0x5763('0x14')][_0x5763('0x22')][_0x5763('0x1a')](_0x417a1a,{'allowAttributes':'headingId'});}),this['_registerHeadingIdAttributePostfixer']());}['_customUpcastHeadingsConversion'](_0x11f516){this[_0x5763('0x16')][_0x5763('0xc')][_0x5763('0x17')]['on'](_0x5763('0x8')+_0x11f516,(_0x1eb570,_0x4b5319,_0x543f41)=>{const {consumable:_0x55793d,writer:_0x3146ce}=_0x543f41,_0x1b3fec=_0x4b5319['viewItem'][_0x5763('0xf')]('id'),_0xde7d29=_0x4b5319[_0x5763('0x5')]['getContainedElement']();if(!(_0x1b3fec&&_0x1b3fec[_0x5763('0x2b')]||_0xde7d29['hasAttribute']('headingId')))return _0x55793d['consume'](_0x4b5319[_0x5763('0xb')],{'attributes':['id']}),void _0x3146ce[_0x5763('0x19')](_0x5763('0x2'),_0x1da9db(),_0xde7d29);_0x55793d[_0x5763('0x27')](_0x4b5319['viewItem'],{'attributes':['id']})&&_0x3146ce['setAttribute'](_0x5763('0x2'),_0x1b3fec,_0xde7d29);},{'priority':_0x25fb5f['get'](_0x5763('0x2c'))+0.5});}[_0x5763('0x15')](_0x5d0e41){this[_0x5763('0x16')][_0x5763('0x21')][_0x5763('0x28')]('downcast')[_0x5763('0x6')](_0x10bb7c=>_0x10bb7c['on'](_0x5763('0x1e')+_0x5d0e41,(_0x4cb27c,_0xc7f230,_0xfb252a)=>{if(!_0xfb252a['consumable']['consume'](_0xc7f230[_0x5763('0x2e')],_0x4cb27c['name']))return;const _0x517d13=_0xc7f230[_0x5763('0x2e')][_0x5763('0xf')]('headingId'),_0x3387db=_0xfb252a['mapper']['toViewElement'](_0xc7f230[_0x5763('0x2e')]);_0xfb252a[_0x5763('0x20')][_0x5763('0x19')]('id',_0x517d13,_0x3387db);}));}[_0x5763('0xe')](){const _0x5dafbb=this[_0x5763('0x16')],_0x4d2e40=new Set(),_0x4fa790=new Set();function _0x3cbd1a(_0xee7823,_0x348d2a){const _0xf7d3da=_0x1da9db();return _0x4fa790['add'](_0xf7d3da),_0xee7823[_0x5763('0x19')](_0x5763('0x2'),_0xf7d3da,_0x348d2a),_0xf7d3da;}function _0x1e55ca(_0x1704b5,_0x31e602){_0x1704b5[_0x5763('0x13')]('headingId',_0x31e602);}_0x5dafbb[_0x5763('0x14')][_0x5763('0x4')][_0x5763('0x2f')](_0x27aceb=>{const _0xa63a78=_0x5dafbb[_0x5763('0x14')][_0x5763('0x4')][_0x5763('0x0')][_0x5763('0x23')]();let _0x271edd=!0x1;for(const _0x103044 of _0xa63a78)if('insert'==_0x103044[_0x5763('0x1')]&&_0x103044[_0x5763('0x1c')]){if(_0x103044[_0x5763('0x1c')]['match'](/heading\d/)){const _0x2cfbe3=_0x103044[_0x5763('0x29')][_0x5763('0x26')](_0x5763('0x2'));_0x5763('0x10')==typeof _0x2cfbe3?_0x4d2e40[_0x5763('0x7')](_0x2cfbe3)?(_0x3cbd1a(_0x27aceb,_0x103044[_0x5763('0x12')][_0x5763('0x25')]),_0x271edd=!0x0):_0x4fa790[_0x5763('0x6')](_0x2cfbe3):(_0x3cbd1a(_0x27aceb,_0x103044[_0x5763('0x12')][_0x5763('0x25')]),_0x271edd=!0x0);}else _0x5763('0x10')==typeof _0x103044['attributes'][_0x5763('0x26')](_0x5763('0x2'))&&(_0x1e55ca(_0x27aceb,_0x103044['position'][_0x5763('0x25')]),_0x271edd=!0x0);}else{if('remove'==_0x103044[_0x5763('0x1')]){const _0x2de4d3=_0x103044[_0x5763('0x29')][_0x5763('0x26')](_0x5763('0x2'));_0x5763('0x10')==typeof _0x2de4d3&&_0x4d2e40[_0x5763('0x1f')](_0x2de4d3);}}return _0x271edd;}),_0x5dafbb['model'][_0x5763('0x4')]['on'](_0x5763('0x9'),()=>{_0x4fa790[_0x5763('0x11')](_0x4d9100=>_0x4d2e40['add'](_0x4d9100)),_0x4fa790['clear']();});}}

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

*/
const _0x4b8c=['findAllowedParent','model','change','insertObject','getFirstPosition','editor','selection','document','schema','tableOfContents','refresh','createElement'];(function(_0x4acd78,_0x4b8ce0){const _0x5e8c2f=function(_0x2e622c){while(--_0x2e622c){_0x4acd78['push'](_0x4acd78['shift']());}};_0x5e8c2f(++_0x4b8ce0);}(_0x4b8c,0x19e));const _0x5e8c=function(_0x4acd78,_0x4b8ce0){_0x4acd78=_0x4acd78-0x0;let _0x5e8c2f=_0x4b8c[_0x4acd78];return _0x5e8c2f;};import{Command as _0x5602b2}from'ckeditor5/src/core';export default class O extends _0x5602b2{['execute'](){this[_0x5e8c('0xb')][_0x5e8c('0x7')][_0x5e8c('0x8')](_0x22c125=>{this[_0x5e8c('0xb')][_0x5e8c('0x7')][_0x5e8c('0x9')](_0x22c125[_0x5e8c('0x5')](_0x5e8c('0x3')));});}[_0x5e8c('0x4')](){const _0x2ff6d5=this[_0x5e8c('0xb')][_0x5e8c('0x7')],_0x5b4ec3=_0x2ff6d5[_0x5e8c('0x1')][_0x5e8c('0x0')][_0x5e8c('0xa')]();this['isEnabled']=null!==(_0x5b4ec3&&_0x2ff6d5[_0x5e8c('0x2')][_0x5e8c('0x6')](_0x5b4ec3,_0x5e8c('0x3')));}}
const _0x1721=['insertObject','getFirstPosition','findAllowedParent','editor','schema','document','tableOfContents','refresh','selection','model','isEnabled'];(function(_0x3f1806,_0x17212e){const _0x2b6a6d=function(_0x2f3481){while(--_0x2f3481){_0x3f1806['push'](_0x3f1806['shift']());}};_0x2b6a6d(++_0x17212e);}(_0x1721,0x16d));const _0x2b6a=function(_0x3f1806,_0x17212e){_0x3f1806=_0x3f1806-0x0;let _0x2b6a6d=_0x1721[_0x3f1806];return _0x2b6a6d;};import{Command as _0x268d6f}from'ckeditor5/src/core';export default class O extends _0x268d6f{['execute'](){this[_0x2b6a('0x1')][_0x2b6a('0x7')]['change'](_0x2a4a8a=>{this['editor']['model'][_0x2b6a('0x9')](_0x2a4a8a['createElement'](_0x2b6a('0x4')));});}[_0x2b6a('0x5')](){const _0x5733cf=this[_0x2b6a('0x1')]['model'],_0x2672df=_0x5733cf[_0x2b6a('0x3')][_0x2b6a('0x6')][_0x2b6a('0xa')]();this[_0x2b6a('0x8')]=null!==(_0x2672df&&_0x5733cf[_0x2b6a('0x2')][_0x2b6a('0x0')](_0x2672df,_0x2b6a('0x4')));}}

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

*/
import{ButtonView as _0x425a1d}from'ckeditor5/src/ui';import{CKEditorError as _0x38a9fe}from'ckeditor5/src/utils';import{Plugin as _0x9f665a}from'ckeditor5/src/core';import _0x9c2fe4 from'../../theme/icons/table-of-contents.svg';export default class s extends _0x9f665a{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x158ded){super(_0x158ded),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x408011=this['editor'],t=_0x408011['t'];_0x408011['ui']['componentFactory']['add']('tableOfContents',_0x116067=>{const _0x3c56a4=_0x408011['commands']['get']('insertTableOfContents'),_0xfa9ab7=new _0x425a1d(_0x116067);return _0xfa9ab7['set']({'label':t('Table\x20of\x20contents'),'icon':_0x9c2fe4,'tooltip':!0x0}),_0xfa9ab7['bind']('isEnabled')['to'](_0x3c56a4,'isEnabled'),this['listenTo'](_0xfa9ab7,'execute',()=>{_0x408011['execute']('insertTableOfContents'),_0x408011['editing']['view']['focus']();}),_0xfa9ab7;}),this['licenseKey']=_0x408011['config']['get']('licenseKey');const _0x2d500b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x39f849;for(const _0x47ca01 in _0x2d500b){const _0x6733f=_0x47ca01,_0xbe41d1=_0x2d500b[_0x6733f];if('tableOfContentsLicenseKeyTrial'===_0xbe41d1||'tableOfContentsLicenseKeyInvalid'===_0xbe41d1||'tableOfContentsLicenseKeyValid'===_0xbe41d1||'tableOfContentsLicenseKeyTrialLimit:operations'===_0xbe41d1){delete _0x2d500b[_0x6733f],_0x39f849=_0xbe41d1;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x39f849)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x38a9fe('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x39f849&&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'===_0x39f849)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x38a9fe('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x39f849&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}
import{ButtonView as _0x492ae2}from'ckeditor5/src/ui';import{CKEditorError as _0x2e8415}from'ckeditor5/src/utils';import{Plugin as _0xc15a61}from'ckeditor5/src/core';import _0x165cc8 from'../../theme/icons/table-of-contents.svg';export default class s extends _0xc15a61{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x287865){super(_0x287865),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x27cb0b=this['editor'],t=_0x27cb0b['t'];_0x27cb0b['ui']['componentFactory']['add']('tableOfContents',_0x26c270=>{const _0x559c2d=_0x27cb0b['commands']['get']('insertTableOfContents'),_0x2d20b8=new _0x492ae2(_0x26c270);return _0x2d20b8['set']({'label':t('Table\x20of\x20contents'),'icon':_0x165cc8,'tooltip':!0x0}),_0x2d20b8['bind']('isEnabled')['to'](_0x559c2d,'isEnabled'),this['listenTo'](_0x2d20b8,'execute',()=>{_0x27cb0b['execute']('insertTableOfContents'),_0x27cb0b['editing']['view']['focus']();}),_0x2d20b8;}),this['licenseKey']=_0x27cb0b['config']['get']('licenseKey');const _0x43d9c9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2da4a9;for(const _0x40ff6a in _0x43d9c9){const _0x5e9fcd=_0x40ff6a,_0x39fe06=_0x43d9c9[_0x5e9fcd];if('tableOfContentsLicenseKeyTrial'===_0x39fe06||'tableOfContentsLicenseKeyInvalid'===_0x39fe06||'tableOfContentsLicenseKeyValid'===_0x39fe06||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x39fe06){delete _0x43d9c9[_0x5e9fcd],_0x2da4a9=_0x39fe06;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x2da4a9)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x2e8415('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x2da4a9&&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'===_0x2da4a9)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x2e8415('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x2da4a9&&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