Socket
Socket
Sign inDemoInstall

@ckeditor/ckeditor5-document-outline

Package Overview
Dependencies
Maintainers
1
Versions
549
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-20230728.0 to 0.0.0-nightly-20230729.0

6

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

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

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

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

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

*/
const _0x5740=['pluginName','document-outline-trial-license-key-reached-limit-changes','document-outline-invalid-license-key','config','documentOutlineLicenseKeyTrial','_licenseKeyCheckInterval','licenseKey','requires','documentOutlineLicenseKeyTrialLimit:operations','destroy','editor','documentOutlineLicenseKeyInvalid','documentOutlineLicenseKeyValid','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20document\x20outline\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.'];(function(_0x19ee5a,_0x574012){const _0x4894df=function(_0x2750ff){while(--_0x2750ff){_0x19ee5a['push'](_0x19ee5a['shift']());}};_0x4894df(++_0x574012);}(_0x5740,0xd1));const _0x4894=function(_0x19ee5a,_0x574012){_0x19ee5a=_0x19ee5a-0x0;let _0x4894df=_0x5740[_0x19ee5a];return _0x4894df;};import{Plugin as _0x5c5c4a}from'ckeditor5/src/core';import{CKEditorError as _0x501624}from'ckeditor5/src/utils';import _0x9afff0 from'./documentoutline/documentoutlineutils';import _0x2aa8d0 from'./documentoutline/documentoutlineui';export default class l extends _0x5c5c4a{static get[_0x4894('0x8')](){return[_0x9afff0,_0x2aa8d0];}static get[_0x4894('0x1')](){return'DocumentOutline';}constructor(_0xbeb196){super(_0xbeb196),this[_0x4894('0x6')]=null;}['init'](){const _0x4951ad=this[_0x4894('0xb')];this[_0x4894('0x7')]=_0x4951ad[_0x4894('0x4')]['get'](_0x4894('0x7'));const _0x231d98=this['editor'];this[_0x4894('0x6')]=setInterval(()=>{let _0x5bbc76;for(const _0x1689a8 in _0x231d98){const _0x217f0f=_0x1689a8,_0x112609=_0x231d98[_0x217f0f];if(_0x4894('0x5')===_0x112609||'documentOutlineLicenseKeyInvalid'===_0x112609||_0x4894('0xd')===_0x112609||_0x4894('0x9')===_0x112609){delete _0x231d98[_0x217f0f],_0x5bbc76=_0x112609;break;}}if(_0x4894('0xc')===_0x5bbc76)throw clearInterval(this[_0x4894('0x6')]),new _0x501624(_0x4894('0x3'),null);if('documentOutlineLicenseKeyTrial'===_0x5bbc76&&console['info'](_0x4894('0x0')),_0x4894('0x9')===_0x5bbc76)throw clearInterval(this[_0x4894('0x6')]),new _0x501624(_0x4894('0x2'),null);_0x4894('0xd')===_0x5bbc76&&clearInterval(this[_0x4894('0x6')]);},0x3e8);}[_0x4894('0xa')](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}
const _0x4450=['document-outline-invalid-license-key','info','documentOutlineLicenseKeyTrial','init','documentOutlineLicenseKeyInvalid','config','destroy','document-outline-trial-license-key-reached-limit-changes','get','documentOutlineLicenseKeyTrialLimit:operations','documentOutlineLicenseKeyValid','editor','pluginName','licenseKey','_licenseKeyCheckInterval'];(function(_0x4f1471,_0x445051){const _0x2e338c=function(_0x929eab){while(--_0x929eab){_0x4f1471['push'](_0x4f1471['shift']());}};_0x2e338c(++_0x445051);}(_0x4450,0x1b0));const _0x2e33=function(_0x4f1471,_0x445051){_0x4f1471=_0x4f1471-0x0;let _0x2e338c=_0x4450[_0x4f1471];return _0x2e338c;};import{Plugin as _0x22d439}from'ckeditor5/src/core';import{CKEditorError as _0x5a4321}from'ckeditor5/src/utils';import _0x3b0875 from'./documentoutline/documentoutlineutils';import _0x541a51 from'./documentoutline/documentoutlineui';export default class l extends _0x22d439{static get['requires'](){return[_0x3b0875,_0x541a51];}static get[_0x2e33('0x0')](){return'DocumentOutline';}constructor(_0x5e9b7a){super(_0x5e9b7a),this['_licenseKeyCheckInterval']=null;}[_0x2e33('0x6')](){const _0x47aacb=this['editor'];this[_0x2e33('0x1')]=_0x47aacb[_0x2e33('0x8')][_0x2e33('0xb')](_0x2e33('0x1'));const _0x3e44c8=this[_0x2e33('0xe')];this[_0x2e33('0x2')]=setInterval(()=>{let _0x681f50;for(const _0x30b43e in _0x3e44c8){const _0x2ce839=_0x30b43e,_0x3036d1=_0x3e44c8[_0x2ce839];if(_0x2e33('0x5')===_0x3036d1||'documentOutlineLicenseKeyInvalid'===_0x3036d1||_0x2e33('0xd')===_0x3036d1||_0x2e33('0xc')===_0x3036d1){delete _0x3e44c8[_0x2ce839],_0x681f50=_0x3036d1;break;}}if(_0x2e33('0x7')===_0x681f50)throw clearInterval(this[_0x2e33('0x2')]),new _0x5a4321(_0x2e33('0x3'),null);if('documentOutlineLicenseKeyTrial'===_0x681f50&&console[_0x2e33('0x4')]('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.'),_0x2e33('0xc')===_0x681f50)throw clearInterval(this[_0x2e33('0x2')]),new _0x5a4321(_0x2e33('0xa'),null);_0x2e33('0xd')===_0x681f50&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}[_0x2e33('0x9')](){this[_0x2e33('0x2')]&&clearInterval(this[_0x2e33('0x2')]);}}

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

*/
const _0x5273=['selection','_getActiveHeading','length','model','text','_getHeadingNames','init','DocumentOutlineUtils','fire','editor','get','push','createElement','config','toModel','document','getFirstPosition','change','pluginName','afterInit','data','includes','_headingNames','editing','view','activeItemIndex','getRootNames','findIndex','modelElement','_deriveHeadingElementsFromConversion','item','name','level','documentOutline.headings','element','_getOutlineDefinitions','indexOf','getChild'];(function(_0x5953d9,_0x5273b6){const _0x36468d=function(_0x26991e){while(--_0x26991e){_0x5953d9['push'](_0x5953d9['shift']());}};_0x36468d(++_0x5273b6);}(_0x5273,0x1db));const _0x3646=function(_0x5953d9,_0x5273b6){_0x5953d9=_0x5953d9-0x0;let _0x36468d=_0x5273[_0x5953d9];return _0x36468d;};import{Plugin as _0x29eb87}from'ckeditor5/src/core';import{debounce as _0x7e864f}from'lodash-es';import{TreeWalker as _0x34ae57}from'ckeditor5/src/engine';import{getElementText as _0x5b0edc,getDefaultFeatureHeadingNames as _0x38d95d}from'./utils';import{diff as _0x1c2410,diffToChanges as _0x53e805}from'ckeditor5/src/utils';export default class n extends _0x29eb87{constructor(){super(...arguments),this[_0x3646('0x3')]=[];}static get[_0x3646('0x25')](){return _0x3646('0x1a');}[_0x3646('0x19')](){const _0x1936ec=this[_0x3646('0x1c')];this[_0x3646('0x3')]=this[_0x3646('0x18')]();let _0x1a8256=[];_0x1936ec[_0x3646('0x16')][_0x3646('0x22')]['on']('change',_0x7e864f(()=>{const _0x219d03=_0x1a8256;_0x1a8256=this[_0x3646('0x10')]();const _0x31a07c=_0x1c2410(_0x219d03,_0x1a8256,(_0x934bb8,_0x103f40)=>_0x934bb8[_0x3646('0xd')]===_0x103f40['level']&&_0x934bb8[_0x3646('0x17')]===_0x103f40[_0x3646('0x17')]&&_0x934bb8[_0x3646('0x9')]===_0x103f40[_0x3646('0x9')]),_0x207193=_0x53e805(_0x31a07c,_0x1a8256),_0x59ef37=this[_0x3646('0x14')](),_0x58e306=_0x1a8256[_0x3646('0x8')](_0x4f5c98=>_0x4f5c98['modelElement']===_0x59ef37);_0x207193['length']&&this[_0x3646('0x1b')](_0x3646('0x24'),{'outlineDefinitions':_0x1a8256,'activeItemIndex':_0x58e306,'outlineChanges':_0x207193}),this[_0x3646('0x1b')](_0x3646('0x6'),{'index':_0x58e306});},0xfa,{'leading':!0x0,'trailing':!0x0}));}[_0x3646('0x0')](){this[_0x3646('0x3')][_0x3646('0x15')]||this[_0x3646('0xa')]();}[_0x3646('0x10')](){const _0x1b1828=this[_0x3646('0x1c')],_0x2568d6=[],_0x12d972=this['_headingNames'];for(const _0x267588 of _0x1b1828[_0x3646('0x16')][_0x3646('0x22')][_0x3646('0x7')]())_0x47ae7c(_0x1b1828['model']['document']['getRoot'](_0x267588));function _0x47ae7c(_0x3c82fc){for(const _0x41f780 of _0x3c82fc['getChildren']())_0x41f780['is'](_0x3646('0xf'))&&(_0x12d972[_0x3646('0x2')](_0x41f780[_0x3646('0xc')])&&_0x2568d6[_0x3646('0x1e')]({'level':_0x12d972[_0x3646('0x11')](_0x41f780[_0x3646('0xc')])+0x1,'text':_0x5b0edc(_0x41f780),'modelElement':_0x41f780}),_0x47ae7c(_0x41f780));}return _0x2568d6;}[_0x3646('0x14')](){const _0x3b7882=this['editor'][_0x3646('0x16')][_0x3646('0x22')][_0x3646('0x13')][_0x3646('0x23')](),_0x33e0dd=new _0x34ae57({'direction':'backward','startPosition':_0x3b7882});for(const _0x14ccc8 of _0x33e0dd)if(_0x14ccc8[_0x3646('0xb')]['is'](_0x3646('0xf'))&&this[_0x3646('0x3')][_0x3646('0x2')](_0x14ccc8['item'][_0x3646('0xc')]))return _0x14ccc8[_0x3646('0xb')];}[_0x3646('0x18')](){const _0x4c5d12=this[_0x3646('0x1c')][_0x3646('0x20')][_0x3646('0x1d')](_0x3646('0xe'));return _0x4c5d12||_0x38d95d(this[_0x3646('0x1c')]);}['_deriveHeadingElementsFromConversion'](){const _0x42ddfc=this['editor'],_0x44e5fa=['h1','h2','h3','h4','h5','h6'],_0x5a3f62=[];for(const _0x54eb5a of _0x44e5fa){const _0x378749=_0x42ddfc[_0x3646('0x4')][_0x3646('0x5')]['domConverter']['domToView'](document[_0x3646('0x1f')](_0x54eb5a)),_0x5dbee3=_0x42ddfc[_0x3646('0x1')][_0x3646('0x21')](_0x378749)[_0x3646('0x12')](0x0);(null==_0x5dbee3?void 0x0:_0x5dbee3['is'](_0x3646('0xf')))&&_0x5a3f62[_0x3646('0x1e')](_0x5dbee3[_0x3646('0xc')]);}this[_0x3646('0x3')]=_0x5a3f62;}}
const _0x42ef=['model','item','view','config','name','includes','indexOf','data','backward','getRootNames','fire','getChildren','level','modelElement','element','domConverter','_getActiveHeading','push','findIndex','selection','documentOutline.headings','length','editor','DocumentOutlineUtils','getChild','text','_getHeadingNames','pluginName','_deriveHeadingElementsFromConversion','get','_headingNames','afterInit','document','_getOutlineDefinitions'];(function(_0x1b2b47,_0x42ef6a){const _0x3273d7=function(_0x3b4d1e){while(--_0x3b4d1e){_0x1b2b47['push'](_0x1b2b47['shift']());}};_0x3273d7(++_0x42ef6a);}(_0x42ef,0xd6));const _0x3273=function(_0x1b2b47,_0x42ef6a){_0x1b2b47=_0x1b2b47-0x0;let _0x3273d7=_0x42ef[_0x1b2b47];return _0x3273d7;};import{Plugin as _0x28164a}from'ckeditor5/src/core';import{debounce as _0x3dbc7b}from'lodash-es';import{TreeWalker as _0x1b88f0}from'ckeditor5/src/engine';import{getElementText as _0x3109aa,getDefaultFeatureHeadingNames as _0xdef225}from'./utils';import{diff as _0x2f9e69,diffToChanges as _0x12b47c}from'ckeditor5/src/utils';export default class n extends _0x28164a{constructor(){super(...arguments),this[_0x3273('0x14')]=[];}static get[_0x3273('0x11')](){return _0x3273('0xd');}['init'](){const _0x3a5e84=this[_0x3273('0xc')];this[_0x3273('0x14')]=this[_0x3273('0x10')]();let _0x30e92b=[];_0x3a5e84['model']['document']['on']('change',_0x3dbc7b(()=>{const _0x4c5e53=_0x30e92b;_0x30e92b=this[_0x3273('0x17')]();const _0x55cbd0=_0x2f9e69(_0x4c5e53,_0x30e92b,(_0x3f9d84,_0x2196ef)=>_0x3f9d84['level']===_0x2196ef[_0x3273('0x2')]&&_0x3f9d84[_0x3273('0xf')]===_0x2196ef[_0x3273('0xf')]&&_0x3f9d84[_0x3273('0x3')]===_0x2196ef[_0x3273('0x3')]),_0x22de07=_0x12b47c(_0x55cbd0,_0x30e92b),_0xd82345=this[_0x3273('0x6')](),_0x19707c=_0x30e92b[_0x3273('0x8')](_0x2d5b65=>_0x2d5b65[_0x3273('0x3')]===_0xd82345);_0x22de07['length']&&this['fire']('change',{'outlineDefinitions':_0x30e92b,'activeItemIndex':_0x19707c,'outlineChanges':_0x22de07}),this[_0x3273('0x0')]('activeItemIndex',{'index':_0x19707c});},0xfa,{'leading':!0x0,'trailing':!0x0}));}[_0x3273('0x15')](){this[_0x3273('0x14')][_0x3273('0xb')]||this[_0x3273('0x12')]();}['_getOutlineDefinitions'](){const _0x789634=this[_0x3273('0xc')],_0x68beb7=[],_0x2f4ff4=this[_0x3273('0x14')];for(const _0x1c4558 of _0x789634[_0x3273('0x18')][_0x3273('0x16')][_0x3273('0x21')]())_0x3f92d5(_0x789634[_0x3273('0x18')][_0x3273('0x16')]['getRoot'](_0x1c4558));function _0x3f92d5(_0x2f3cd2){for(const _0x20c291 of _0x2f3cd2[_0x3273('0x1')]())_0x20c291['is'](_0x3273('0x4'))&&(_0x2f4ff4[_0x3273('0x1d')](_0x20c291[_0x3273('0x1c')])&&_0x68beb7['push']({'level':_0x2f4ff4[_0x3273('0x1e')](_0x20c291[_0x3273('0x1c')])+0x1,'text':_0x3109aa(_0x20c291),'modelElement':_0x20c291}),_0x3f92d5(_0x20c291));}return _0x68beb7;}[_0x3273('0x6')](){const _0x25f08f=this[_0x3273('0xc')][_0x3273('0x18')][_0x3273('0x16')][_0x3273('0x9')]['getFirstPosition'](),_0x2fa2e7=new _0x1b88f0({'direction':_0x3273('0x20'),'startPosition':_0x25f08f});for(const _0x54c7e8 of _0x2fa2e7)if(_0x54c7e8[_0x3273('0x19')]['is']('element')&&this[_0x3273('0x14')][_0x3273('0x1d')](_0x54c7e8[_0x3273('0x19')][_0x3273('0x1c')]))return _0x54c7e8['item'];}[_0x3273('0x10')](){const _0x96cf22=this[_0x3273('0xc')][_0x3273('0x1b')][_0x3273('0x13')](_0x3273('0xa'));return _0x96cf22||_0xdef225(this[_0x3273('0xc')]);}[_0x3273('0x12')](){const _0x1390d3=this[_0x3273('0xc')],_0x4a3a5c=['h1','h2','h3','h4','h5','h6'],_0x2eab36=[];for(const _0x27d6bc of _0x4a3a5c){const _0x3662c9=_0x1390d3['editing'][_0x3273('0x1a')][_0x3273('0x5')]['domToView'](document['createElement'](_0x27d6bc)),_0x445424=_0x1390d3[_0x3273('0x1f')]['toModel'](_0x3662c9)[_0x3273('0xe')](0x0);(null==_0x445424?void 0x0:_0x445424['is'](_0x3273('0x4')))&&_0x2eab36[_0x3273('0x7')](_0x445424['name']);}this['_headingNames']=_0x2eab36;}}

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

*/
import{View as _0x16bd5b}from'ckeditor5/src/ui';export default class $ extends _0x16bd5b{constructor(_0x694e01,_0x5209f6=!0x1){super(_0x694e01);const t=_0x694e01['t'],_0x7cd980=this['bindTemplate'],_0x7d3830=_0x5209f6?'['+t('Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x2ee014=>!_0x2ee014),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x7cd980['to']('level',_0x430d24=>'ck-document-outline__item_level-'+_0x430d24),_0x7cd980['if']('isActive','ck-document-outline__item_active'),_0x7cd980['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x7cd980['to']('text')},'children':[{'text':_0x7cd980['to']('text',_0x54d2f5=>_0x54d2f5||_0x7d3830)}],'on':{'click':_0x7cd980['to']('click')}});}}
import{View as _0x41c027}from'ckeditor5/src/ui';export default class $ extends _0x41c027{constructor(_0x475b11,_0x157f0b=!0x1){super(_0x475b11);const t=_0x475b11['t'],_0x538a6b=this['bindTemplate'],_0x5e19eb=_0x157f0b?'['+t('Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x19fc66=>!_0x19fc66),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x538a6b['to']('level',_0x18b6d6=>'ck-document-outline__item_level-'+_0x18b6d6),_0x538a6b['if']('isActive','ck-document-outline__item_active'),_0x538a6b['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x538a6b['to']('text')},'children':[{'text':_0x538a6b['to']('text',_0x3f1504=>_0x3f1504||_0x5e19eb)}],'on':{'click':_0x538a6b['to']('click')}});}}

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

*/
import{View as _0x1dc074}from'ckeditor5/src/ui';import{scrollAncestorsToShowTarget as _0xc95d07}from'ckeditor5/src/utils';import _0x4c1d53 from'./documentoutlineitemview';export default class d extends _0x1dc074{constructor(_0x46abe3,_0x319d3c=!0x1,_0x4c6bd8){super(_0x46abe3);const t=_0x46abe3['t'];this['showEmptyHeadingText']=_0x319d3c,this['set']('activeItemIndex',-0x1),this['_documentOutlineContainer']=_0x4c6bd8,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x5ee6e1,_0x26bf6a,_0x3a0edd,_0x122f50)=>{this['_setActiveItem'](_0x122f50,_0x3a0edd);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x46abe3['contentLanguageDirection'],'data-document-outline-empty-placeholder':t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x1d7726){_0x1d7726['forEach'](_0x135ae8=>{'insert'==_0x135ae8['type']?this['_insertItem'](_0x135ae8['index'],..._0x135ae8['values']):'delete'==_0x135ae8['type']&&this['_deleteItem'](_0x135ae8['index'],_0x135ae8['howMany']);});}['_setActiveItem'](_0x58be26,_0x1c8244){if(-0x1!==_0x58be26){const _0x5a0719=this['items']['get'](_0x58be26);_0x5a0719&&(_0x5a0719['isActive']=!0x1);}-0x1!==_0x1c8244&&(this['items']['get'](_0x1c8244)['isActive']=!0x0,this['_scrollToItem'](_0x1c8244));}['_insertItem'](_0x96a5d5,..._0x2c2b2e){const _0x321738=_0x2c2b2e['map']((_0x3034e6,_0x515172)=>{const _0x2ef41a=new _0x4c1d53(this['locale'],this['showEmptyHeadingText']);return _0x2ef41a['text']=_0x3034e6['text'],_0x2ef41a['level']=_0x3034e6['level'],_0x96a5d5+_0x515172===this['activeItemIndex']&&(_0x2ef41a['isActive']=!0x0),_0x2ef41a;});this['items']['addMany'](_0x321738,_0x96a5d5);}['_deleteItem'](_0x550f6b,_0x25cc93){do{this['items']['remove'](_0x550f6b);}while(--_0x25cc93);}['_handleItemClick'](_0x56b535){const _0x722d1=this['items']['getIndex'](_0x56b535['source']);this['fire']('itemSelected',_0x722d1);}['_scrollToItem'](_0x497dec){_0xc95d07(this['items']['get'](_0x497dec)['element'],0x14,this['_documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}
import{View as _0x1561c1}from'ckeditor5/src/ui';import{scrollAncestorsToShowTarget as _0x53e313}from'ckeditor5/src/utils';import _0x30dc8e from'./documentoutlineitemview';export default class d extends _0x1561c1{constructor(_0xc8e3c5,_0x515149=!0x1,_0x10aac3){super(_0xc8e3c5);const t=_0xc8e3c5['t'];this['showEmptyHeadingText']=_0x515149,this['set']('activeItemIndex',-0x1),this['_documentOutlineContainer']=_0x10aac3,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x227b6c,_0x8cec0a,_0x5ee64a,_0x330ae6)=>{this['_setActiveItem'](_0x330ae6,_0x5ee64a);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0xc8e3c5['contentLanguageDirection'],'data-document-outline-empty-placeholder':t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x3b9f60){_0x3b9f60['forEach'](_0x3917d9=>{'insert'==_0x3917d9['type']?this['_insertItem'](_0x3917d9['index'],..._0x3917d9['values']):'delete'==_0x3917d9['type']&&this['_deleteItem'](_0x3917d9['index'],_0x3917d9['howMany']);});}['_setActiveItem'](_0x3766c9,_0x224bad){if(-0x1!==_0x3766c9){const _0x427117=this['items']['get'](_0x3766c9);_0x427117&&(_0x427117['isActive']=!0x1);}-0x1!==_0x224bad&&(this['items']['get'](_0x224bad)['isActive']=!0x0,this['_scrollToItem'](_0x224bad));}['_insertItem'](_0x4a6dd3,..._0x5284bc){const _0x5c21d4=_0x5284bc['map']((_0x48398a,_0x54bc3a)=>{const _0x14600a=new _0x30dc8e(this['locale'],this['showEmptyHeadingText']);return _0x14600a['text']=_0x48398a['text'],_0x14600a['level']=_0x48398a['level'],_0x4a6dd3+_0x54bc3a===this['activeItemIndex']&&(_0x14600a['isActive']=!0x0),_0x14600a;});this['items']['addMany'](_0x5c21d4,_0x4a6dd3);}['_deleteItem'](_0x2b7767,_0x564289){do{this['items']['remove'](_0x2b7767);}while(--_0x564289);}['_handleItemClick'](_0x299cca){const _0x4768ff=this['items']['getIndex'](_0x299cca['source']);this['fire']('itemSelected',_0x4768ff);}['_scrollToItem'](_0x40c555){_0x53e313(this['items']['get'](_0x40c555)['element'],0x14,this['_documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}

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

*/
const _0x212c=['reduce','model','data','htmlH3','htmlH2','push','htmlH5','config','htmlH6','has','plugins','GeneralHtmlSupport'];(function(_0x8a335c,_0x212cbd){const _0x2a5a0c=function(_0x16df51){while(--_0x16df51){_0x8a335c['push'](_0x8a335c['shift']());}};_0x2a5a0c(++_0x212cbd);}(_0x212c,0x88));const _0x2a5a=function(_0x8a335c,_0x212cbd){_0x8a335c=_0x8a335c-0x0;let _0x2a5a0c=_0x212c[_0x8a335c];return _0x2a5a0c;};import{Text as _0x51e948}from'ckeditor5/src/engine';export function getElementText(_0x11b6c7){let _0x3b32f8='';for(const _0x5b862e of _0x11b6c7['getChildren']())_0x5b862e instanceof _0x51e948&&(_0x3b32f8+=_0x5b862e[_0x2a5a('0xa')]);return _0x3b32f8;}export function getDefaultFeatureHeadingNames(_0x43b7b2){const _0x211b79=_0x43b7b2[_0x2a5a('0x3')]['get']('heading.options');return _0x211b79?_0x211b79[_0x2a5a('0x8')]((_0x1a5191,_0x33329b)=>('paragraph'!==_0x33329b[_0x2a5a('0x9')]&&_0x1a5191[_0x2a5a('0x1')](_0x33329b[_0x2a5a('0x9')]),_0x1a5191),[]):_0x43b7b2[_0x2a5a('0x6')][_0x2a5a('0x5')](_0x2a5a('0x7'))?['htmlH1',_0x2a5a('0x0'),_0x2a5a('0xb'),'htmlH4',_0x2a5a('0x2'),_0x2a5a('0x4')]:[];}
const _0x4ca3=['htmlH5','getChildren','htmlH2','reduce','GeneralHtmlSupport','config','plugins','heading.options','htmlH3','htmlH1','data','has','get','model'];(function(_0x3af234,_0x4ca383){const _0xf664e8=function(_0x1a5cf9){while(--_0x1a5cf9){_0x3af234['push'](_0x3af234['shift']());}};_0xf664e8(++_0x4ca383);}(_0x4ca3,0x15b));const _0xf664=function(_0x3af234,_0x4ca383){_0x3af234=_0x3af234-0x0;let _0xf664e8=_0x4ca3[_0x3af234];return _0xf664e8;};import{Text as _0x5f3c68}from'ckeditor5/src/engine';export function getElementText(_0x4d3f9b){let _0x405f2f='';for(const _0x31190a of _0x4d3f9b[_0xf664('0x4')]())_0x31190a instanceof _0x5f3c68&&(_0x405f2f+=_0x31190a[_0xf664('0xd')]);return _0x405f2f;}export function getDefaultFeatureHeadingNames(_0x1894e8){const _0x5c2939=_0x1894e8[_0xf664('0x8')][_0xf664('0x1')](_0xf664('0xa'));return _0x5c2939?_0x5c2939[_0xf664('0x6')]((_0xda2ad9,_0x13aeff)=>('paragraph'!==_0x13aeff[_0xf664('0x2')]&&_0xda2ad9['push'](_0x13aeff[_0xf664('0x2')]),_0xda2ad9),[]):_0x1894e8[_0xf664('0x9')][_0xf664('0x0')](_0xf664('0x7'))?[_0xf664('0xc'),_0xf664('0x5'),_0xf664('0xb'),'htmlH4',_0xf664('0x3'),'htmlH6']:[];}

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

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

*/
var _0x521c=['pluginName','TableOfContents'];(function(_0x51a85e,_0x521c8e){var _0x3c9c7f=function(_0x208fdd){while(--_0x208fdd){_0x51a85e['push'](_0x51a85e['shift']());}};_0x3c9c7f(++_0x521c8e);}(_0x521c,0x1bb));var _0x3c9c=function(_0x51a85e,_0x521c8e){_0x51a85e=_0x51a85e-0x0;var _0x3c9c7f=_0x521c[_0x51a85e];return _0x3c9c7f;};import{Plugin as _0x2a4ab3}from'ckeditor5/src/core';import _0x17eeff from'./tableofcontents/tableofcontentsediting';import _0x1b4e9d from'./tableofcontents/tableofcontentsui';export default class c extends _0x2a4ab3{static get['requires'](){return[_0x17eeff,_0x1b4e9d];}static get[_0x3c9c('0x1')](){return _0x3c9c('0x0');}}
var _0x520a=['pluginName','requires'];(function(_0x37fb19,_0x520a7d){var _0x140be1=function(_0x408b2c){while(--_0x408b2c){_0x37fb19['push'](_0x37fb19['shift']());}};_0x140be1(++_0x520a7d);}(_0x520a,0x14f));var _0x140b=function(_0x37fb19,_0x520a7d){_0x37fb19=_0x37fb19-0x0;var _0x140be1=_0x520a[_0x37fb19];return _0x140be1;};import{Plugin as _0x58d82f}from'ckeditor5/src/core';import _0x270322 from'./tableofcontents/tableofcontentsediting';import _0x805fdc from'./tableofcontents/tableofcontentsui';export default class c extends _0x58d82f{static get[_0x140b('0x0')](){return[_0x270322,_0x805fdc];}static get[_0x140b('0x1')](){return'TableOfContents';}}

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

*/
const _0x1090=['forEach','string','view','HeadingId','model','nodeAfter','removeAttribute','_registerHeadingIdAttributePostfixer','upcastDispatcher','low','attributes','editor','config','viewItem','setAttribute','set','heading.options','get','getChanges','delete','position','paragraph','pluginName','differ','length','element:','_customUpcastHeadingsConversion','item','has','afterInit','getContainedElement','headingId','consume','type','remove','data','attribute:headingId:','getAttribute','hasAttribute','registerPostFixer','schema','add','_customDataDowncastHeadingsConversion','downcast','match','clear','modelRange','document','headingId.modelAttributeName','heading1','insert','extend','name'];(function(_0x33c5b5,_0x109078){const _0xac706c=function(_0x16e88c){while(--_0x16e88c){_0x33c5b5['push'](_0x33c5b5['shift']());}};_0xac706c(++_0x109078);}(_0x1090,0x13d));const _0xac70=function(_0x33c5b5,_0x109078){_0x33c5b5=_0x33c5b5-0x0;let _0xac706c=_0x1090[_0x33c5b5];return _0xac706c;};import{Plugin as _0x1325a3}from'ckeditor5/src/core';import{uid as _0x5e5587,priorities as _0x1a10d4}from'ckeditor5/src/utils';export default class A extends _0x1325a3{static get[_0xac70('0x17')](){return _0xac70('0x4');}[_0xac70('0x1e')](){const _0x580a36=this[_0xac70('0xc')];if(_0x580a36[_0xac70('0xd')][_0xac70('0x12')](_0xac70('0x31')))return;(function(_0x3189fd){const _0x281749=new Map();if(_0x3189fd)return _0x3189fd[_0xac70('0x1')](_0x156afa=>{_0xac70('0x16')!==_0x156afa[_0xac70('0x5')]&&_0x281749['set'](_0x156afa[_0xac70('0x3')],_0x156afa[_0xac70('0x5')]);}),_0x281749[_0xac70('0x12')]('h1')||_0x281749[_0xac70('0x10')]('h1',_0xac70('0x32')),_0x281749;return _0x281749;}(this['editor']['config'][_0xac70('0x12')](_0xac70('0x11')))[_0xac70('0x1')]((_0x51ed89,_0x159cba)=>{this[_0xac70('0x1b')](_0x159cba),this[_0xac70('0x2b')](_0x51ed89),_0x580a36['model'][_0xac70('0x29')]['isRegistered'](_0x51ed89)&&_0x580a36[_0xac70('0x5')][_0xac70('0x29')][_0xac70('0x34')](_0x51ed89,{'allowAttributes':'headingId'});}),this[_0xac70('0x8')]());}[_0xac70('0x1b')](_0x374aa8){this[_0xac70('0xc')][_0xac70('0x24')][_0xac70('0x9')]['on'](_0xac70('0x1a')+_0x374aa8,(_0x38994e,_0x3be3c2,_0x2a7c24)=>{const {consumable:_0x524b55,writer:_0x412407}=_0x2a7c24,_0xc0c517=_0x3be3c2[_0xac70('0xe')][_0xac70('0x26')]('id'),_0x11ef41=_0x3be3c2[_0xac70('0x2f')][_0xac70('0x1f')]();if(!(_0xc0c517&&_0xc0c517[_0xac70('0x19')]||_0x11ef41[_0xac70('0x27')](_0xac70('0x20'))))return _0x524b55[_0xac70('0x21')](_0x3be3c2[_0xac70('0xe')],{'attributes':['id']}),void _0x412407[_0xac70('0xf')](_0xac70('0x20'),_0x5e5587(),_0x11ef41);_0x524b55[_0xac70('0x21')](_0x3be3c2[_0xac70('0xe')],{'attributes':['id']})&&_0x412407['setAttribute'](_0xac70('0x20'),_0xc0c517,_0x11ef41);},{'priority':_0x1a10d4[_0xac70('0x12')](_0xac70('0xa'))+0.5});}[_0xac70('0x2b')](_0xda166b){this['editor']['conversion']['for'](_0xac70('0x2c'))[_0xac70('0x2a')](_0x2b9a66=>_0x2b9a66['on'](_0xac70('0x25')+_0xda166b,(_0x546148,_0x5ce948,_0x278a75)=>{if(!_0x278a75['consumable'][_0xac70('0x21')](_0x5ce948['item'],_0x546148['name']))return;const _0x49edf9=_0x5ce948[_0xac70('0x1c')][_0xac70('0x26')](_0xac70('0x20')),_0x4b92f8=_0x278a75['mapper']['toViewElement'](_0x5ce948['item']);_0x278a75['writer']['setAttribute']('id',_0x49edf9,_0x4b92f8);}));}[_0xac70('0x8')](){const _0x1becb4=this[_0xac70('0xc')],_0x13ab64=new Set(),_0x3fce22=new Set();function _0xbb2d78(_0x5935a9,_0x548ccf){const _0x3e2277=_0x5e5587();return _0x3fce22[_0xac70('0x2a')](_0x3e2277),_0x5935a9[_0xac70('0xf')](_0xac70('0x20'),_0x3e2277,_0x548ccf),_0x3e2277;}function _0x2b905a(_0x6299ff,_0x9e10a2){_0x6299ff[_0xac70('0x7')]('headingId',_0x9e10a2);}_0x1becb4[_0xac70('0x5')][_0xac70('0x30')][_0xac70('0x28')](_0x15665f=>{const _0x448edc=_0x1becb4[_0xac70('0x5')][_0xac70('0x30')][_0xac70('0x18')][_0xac70('0x13')]();let _0x307844=!0x1;for(const _0x3e280f of _0x448edc)if(_0xac70('0x33')==_0x3e280f['type']&&_0x3e280f[_0xac70('0x0')]){if(_0x3e280f[_0xac70('0x0')][_0xac70('0x2d')](/heading\d/)){const _0x284fb5=_0x3e280f['attributes']['get']('headingId');_0xac70('0x2')==typeof _0x284fb5?_0x13ab64[_0xac70('0x1d')](_0x284fb5)?(_0xbb2d78(_0x15665f,_0x3e280f['position'][_0xac70('0x6')]),_0x307844=!0x0):_0x3fce22[_0xac70('0x2a')](_0x284fb5):(_0xbb2d78(_0x15665f,_0x3e280f[_0xac70('0x15')][_0xac70('0x6')]),_0x307844=!0x0);}else _0xac70('0x2')==typeof _0x3e280f[_0xac70('0xb')][_0xac70('0x12')](_0xac70('0x20'))&&(_0x2b905a(_0x15665f,_0x3e280f['position'][_0xac70('0x6')]),_0x307844=!0x0);}else{if(_0xac70('0x23')==_0x3e280f[_0xac70('0x22')]){const _0xb43744=_0x3e280f[_0xac70('0xb')]['get'](_0xac70('0x20'));_0xac70('0x2')==typeof _0xb43744&&_0x13ab64[_0xac70('0x14')](_0xb43744);}}return _0x307844;}),_0x1becb4[_0xac70('0x5')][_0xac70('0x30')]['on']('change',()=>{_0x3fce22['forEach'](_0x1e2af5=>_0x13ab64['add'](_0x1e2af5)),_0x3fce22[_0xac70('0x2e')]();});}}
const _0x1019=['headingId','attribute:headingId:','view','has','consume','consumable','HeadingId','mapper','attributes','heading1','match','pluginName','for','config','name','getContainedElement','editor','_customUpcastHeadingsConversion','nodeAfter','_registerHeadingIdAttributePostfixer','clear','data','get','writer','heading.options','removeAttribute','toViewElement','isRegistered','viewItem','afterInit','item','hasAttribute','differ','type','modelRange','model','set','document','setAttribute','getAttribute','add','_customDataDowncastHeadingsConversion','insert','element:','string','paragraph','registerPostFixer','forEach','conversion','remove','delete','position','schema'];(function(_0x40009c,_0x101941){const _0x49ddbd=function(_0x427058){while(--_0x427058){_0x40009c['push'](_0x40009c['shift']());}};_0x49ddbd(++_0x101941);}(_0x1019,0x171));const _0x49dd=function(_0x40009c,_0x101941){_0x40009c=_0x40009c-0x0;let _0x49ddbd=_0x1019[_0x40009c];return _0x49ddbd;};import{Plugin as _0x300440}from'ckeditor5/src/core';import{uid as _0x3a484e,priorities as _0x440ce7}from'ckeditor5/src/utils';export default class A extends _0x300440{static get[_0x49dd('0xd')](){return _0x49dd('0x8');}[_0x49dd('0x1f')](){const _0x32a5dd=this[_0x49dd('0x12')];if(_0x32a5dd['config']['get']('headingId.modelAttributeName'))return;(function(_0x1ac56b){const _0xe6f25d=new Map();if(_0x1ac56b)return _0x1ac56b[_0x49dd('0x31')](_0x11694a=>{_0x49dd('0x2f')!==_0x11694a[_0x49dd('0x25')]&&_0xe6f25d[_0x49dd('0x26')](_0x11694a[_0x49dd('0x4')],_0x11694a[_0x49dd('0x25')]);}),_0xe6f25d[_0x49dd('0x18')]('h1')||_0xe6f25d['set']('h1',_0x49dd('0xb')),_0xe6f25d;return _0xe6f25d;}(this['editor'][_0x49dd('0xf')][_0x49dd('0x18')](_0x49dd('0x1a')))[_0x49dd('0x31')]((_0x308c61,_0x158d86)=>{this[_0x49dd('0x13')](_0x158d86),this[_0x49dd('0x2b')](_0x308c61),_0x32a5dd[_0x49dd('0x25')][_0x49dd('0x1')][_0x49dd('0x1d')](_0x308c61)&&_0x32a5dd['model'][_0x49dd('0x1')]['extend'](_0x308c61,{'allowAttributes':_0x49dd('0x2')});}),this[_0x49dd('0x15')]());}[_0x49dd('0x13')](_0x4c9874){this[_0x49dd('0x12')][_0x49dd('0x17')]['upcastDispatcher']['on'](_0x49dd('0x2d')+_0x4c9874,(_0x3c3df8,_0x1a59b9,_0x36300d)=>{const {consumable:_0x37b735,writer:_0x2dc456}=_0x36300d,_0x1701e6=_0x1a59b9[_0x49dd('0x1e')][_0x49dd('0x29')]('id'),_0x50ceb3=_0x1a59b9[_0x49dd('0x24')][_0x49dd('0x11')]();if(!(_0x1701e6&&_0x1701e6['length']||_0x50ceb3[_0x49dd('0x21')]('headingId')))return _0x37b735['consume'](_0x1a59b9[_0x49dd('0x1e')],{'attributes':['id']}),void _0x2dc456[_0x49dd('0x28')](_0x49dd('0x2'),_0x3a484e(),_0x50ceb3);_0x37b735[_0x49dd('0x6')](_0x1a59b9['viewItem'],{'attributes':['id']})&&_0x2dc456[_0x49dd('0x28')](_0x49dd('0x2'),_0x1701e6,_0x50ceb3);},{'priority':_0x440ce7[_0x49dd('0x18')]('low')+0.5});}['_customDataDowncastHeadingsConversion'](_0x37c6e7){this[_0x49dd('0x12')][_0x49dd('0x32')][_0x49dd('0xe')]('downcast')[_0x49dd('0x2a')](_0x29dad0=>_0x29dad0['on'](_0x49dd('0x3')+_0x37c6e7,(_0x230c1d,_0x1f438b,_0x124f85)=>{if(!_0x124f85[_0x49dd('0x7')][_0x49dd('0x6')](_0x1f438b[_0x49dd('0x20')],_0x230c1d[_0x49dd('0x10')]))return;const _0x270f39=_0x1f438b['item']['getAttribute']('headingId'),_0xeb6104=_0x124f85[_0x49dd('0x9')][_0x49dd('0x1c')](_0x1f438b[_0x49dd('0x20')]);_0x124f85[_0x49dd('0x19')][_0x49dd('0x28')]('id',_0x270f39,_0xeb6104);}));}[_0x49dd('0x15')](){const _0x35a678=this[_0x49dd('0x12')],_0x5ee16=new Set(),_0x2401c5=new Set();function _0x5c279e(_0x1e214d,_0x5060cf){const _0x475f5f=_0x3a484e();return _0x2401c5[_0x49dd('0x2a')](_0x475f5f),_0x1e214d[_0x49dd('0x28')](_0x49dd('0x2'),_0x475f5f,_0x5060cf),_0x475f5f;}function _0x4bb457(_0x2863d0,_0x8f4f77){_0x2863d0[_0x49dd('0x1b')]('headingId',_0x8f4f77);}_0x35a678[_0x49dd('0x25')][_0x49dd('0x27')][_0x49dd('0x30')](_0x5e618f=>{const _0x50a318=_0x35a678[_0x49dd('0x25')][_0x49dd('0x27')][_0x49dd('0x22')]['getChanges']();let _0x3be84c=!0x1;for(const _0x1ae737 of _0x50a318)if(_0x49dd('0x2c')==_0x1ae737[_0x49dd('0x23')]&&_0x1ae737[_0x49dd('0x10')]){if(_0x1ae737[_0x49dd('0x10')][_0x49dd('0xc')](/heading\d/)){const _0x38b273=_0x1ae737[_0x49dd('0xa')][_0x49dd('0x18')](_0x49dd('0x2'));_0x49dd('0x2e')==typeof _0x38b273?_0x5ee16[_0x49dd('0x5')](_0x38b273)?(_0x5c279e(_0x5e618f,_0x1ae737[_0x49dd('0x0')][_0x49dd('0x14')]),_0x3be84c=!0x0):_0x2401c5[_0x49dd('0x2a')](_0x38b273):(_0x5c279e(_0x5e618f,_0x1ae737['position']['nodeAfter']),_0x3be84c=!0x0);}else'string'==typeof _0x1ae737[_0x49dd('0xa')][_0x49dd('0x18')](_0x49dd('0x2'))&&(_0x4bb457(_0x5e618f,_0x1ae737[_0x49dd('0x0')]['nodeAfter']),_0x3be84c=!0x0);}else{if(_0x49dd('0x33')==_0x1ae737[_0x49dd('0x23')]){const _0x29888f=_0x1ae737['attributes'][_0x49dd('0x18')](_0x49dd('0x2'));_0x49dd('0x2e')==typeof _0x29888f&&_0x5ee16[_0x49dd('0x34')](_0x29888f);}}return _0x3be84c;}),_0x35a678[_0x49dd('0x25')][_0x49dd('0x27')]['on']('change',()=>{_0x2401c5[_0x49dd('0x31')](_0x316790=>_0x5ee16[_0x49dd('0x2a')](_0x316790)),_0x2401c5[_0x49dd('0x16')]();});}}

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

*/
const _0x3adb=['selection','findAllowedParent','isEnabled','editor','insertObject','createElement','getFirstPosition','model','change','tableOfContents','document','schema'];(function(_0x120196,_0x3adb8a){const _0x1f773a=function(_0x5a1216){while(--_0x5a1216){_0x120196['push'](_0x120196['shift']());}};_0x1f773a(++_0x3adb8a);}(_0x3adb,0xaf));const _0x1f77=function(_0x120196,_0x3adb8a){_0x120196=_0x120196-0x0;let _0x1f773a=_0x3adb[_0x120196];return _0x1f773a;};import{Command as _0x2b8cf4}from'ckeditor5/src/core';export default class O extends _0x2b8cf4{['execute'](){this[_0x1f77('0x8')][_0x1f77('0x0')][_0x1f77('0x1')](_0x2112fc=>{this['editor'][_0x1f77('0x0')][_0x1f77('0x9')](_0x2112fc[_0x1f77('0xa')]('tableOfContents'));});}['refresh'](){const _0x2ea8df=this[_0x1f77('0x8')][_0x1f77('0x0')],_0x309a03=_0x2ea8df[_0x1f77('0x3')][_0x1f77('0x5')][_0x1f77('0xb')]();this[_0x1f77('0x7')]=null!==(_0x309a03&&_0x2ea8df[_0x1f77('0x4')][_0x1f77('0x6')](_0x309a03,_0x1f77('0x2')));}}
const _0x33e7=['getFirstPosition','createElement','execute','tableOfContents','editor','selection','schema','refresh','isEnabled','insertObject','document','change'];(function(_0x280297,_0x33e7e6){const _0x4183f5=function(_0x2745df){while(--_0x2745df){_0x280297['push'](_0x280297['shift']());}};_0x4183f5(++_0x33e7e6);}(_0x33e7,0x10c));const _0x4183=function(_0x280297,_0x33e7e6){_0x280297=_0x280297-0x0;let _0x4183f5=_0x33e7[_0x280297];return _0x4183f5;};import{Command as _0x1661ed}from'ckeditor5/src/core';export default class O extends _0x1661ed{[_0x4183('0xa')](){this[_0x4183('0x0')]['model'][_0x4183('0x7')](_0x23b9e2=>{this[_0x4183('0x0')]['model'][_0x4183('0x5')](_0x23b9e2[_0x4183('0x9')](_0x4183('0xb')));});}[_0x4183('0x3')](){const _0x1c7953=this[_0x4183('0x0')]['model'],_0x3b0e20=_0x1c7953[_0x4183('0x6')][_0x4183('0x1')][_0x4183('0x8')]();this[_0x4183('0x4')]=null!==(_0x3b0e20&&_0x1c7953[_0x4183('0x2')]['findAllowedParent'](_0x3b0e20,_0x4183('0xb')));}}

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

*/
import{ButtonView as _0x4e6bb1}from'ckeditor5/src/ui';import{CKEditorError as _0x106864}from'ckeditor5/src/utils';import{Plugin as _0x4c0969}from'ckeditor5/src/core';import _0x32353f from'../../theme/icons/table-of-contents.svg';export default class s extends _0x4c0969{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x1867f0){super(_0x1867f0),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x2b133d=this['editor'],t=_0x2b133d['t'];_0x2b133d['ui']['componentFactory']['add']('tableOfContents',_0xdea195=>{const _0x4d4a3b=_0x2b133d['commands']['get']('insertTableOfContents'),_0x4c6b6d=new _0x4e6bb1(_0xdea195);return _0x4c6b6d['set']({'label':t('Table\x20of\x20contents'),'icon':_0x32353f,'tooltip':!0x0}),_0x4c6b6d['bind']('isEnabled')['to'](_0x4d4a3b,'isEnabled'),this['listenTo'](_0x4c6b6d,'execute',()=>{_0x2b133d['execute']('insertTableOfContents'),_0x2b133d['editing']['view']['focus']();}),_0x4c6b6d;}),this['licenseKey']=_0x2b133d['config']['get']('licenseKey');const _0x1ab339=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1e77c9;for(const _0x2ab9f3 in _0x1ab339){const _0x46c33b=_0x2ab9f3,_0x68e3c0=_0x1ab339[_0x46c33b];if('tableOfContentsLicenseKeyTrial'===_0x68e3c0||'tableOfContentsLicenseKeyInvalid'===_0x68e3c0||'tableOfContentsLicenseKeyValid'===_0x68e3c0||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x68e3c0){delete _0x1ab339[_0x46c33b],_0x1e77c9=_0x68e3c0;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x1e77c9)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x106864('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x1e77c9&&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'===_0x1e77c9)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x106864('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x1e77c9&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}
import{ButtonView as _0x143b7c}from'ckeditor5/src/ui';import{CKEditorError as _0x5d9814}from'ckeditor5/src/utils';import{Plugin as _0x6fad9d}from'ckeditor5/src/core';import _0x58742e from'../../theme/icons/table-of-contents.svg';export default class s extends _0x6fad9d{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x2a61c0){super(_0x2a61c0),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x5a606d=this['editor'],t=_0x5a606d['t'];_0x5a606d['ui']['componentFactory']['add']('tableOfContents',_0x276517=>{const _0x4c159e=_0x5a606d['commands']['get']('insertTableOfContents'),_0x5e00f0=new _0x143b7c(_0x276517);return _0x5e00f0['set']({'label':t('Table\x20of\x20contents'),'icon':_0x58742e,'tooltip':!0x0}),_0x5e00f0['bind']('isEnabled')['to'](_0x4c159e,'isEnabled'),this['listenTo'](_0x5e00f0,'execute',()=>{_0x5a606d['execute']('insertTableOfContents'),_0x5a606d['editing']['view']['focus']();}),_0x5e00f0;}),this['licenseKey']=_0x5a606d['config']['get']('licenseKey');const _0x5a9f0c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3584a5;for(const _0x3aa2c1 in _0x5a9f0c){const _0x52dc9a=_0x3aa2c1,_0x35de09=_0x5a9f0c[_0x52dc9a];if('tableOfContentsLicenseKeyTrial'===_0x35de09||'tableOfContentsLicenseKeyInvalid'===_0x35de09||'tableOfContentsLicenseKeyValid'===_0x35de09||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x35de09){delete _0x5a9f0c[_0x52dc9a],_0x3584a5=_0x35de09;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x3584a5)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x5d9814('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x3584a5&&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'===_0x3584a5)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x5d9814('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x3584a5&&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