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-20230804.0 to 0.0.0-nightly-20230805.0

10

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

@@ -15,10 +15,6 @@ "keywords": [

"dependencies": {
"ckeditor5": "0.0.0-nightly-20230804.0",
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20230804.0",
"ckeditor5": "0.0.0-nightly-20230805.0",
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20230805.0",
"lodash-es": "4.17.21"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=5.7.1"
},
"license": "SEE LICENSE IN LICENSE.md",

@@ -25,0 +21,0 @@ "author": "CKSource (http://cksource.com/)",

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

*/
const _0x13e5=['info','editor','licenseKey','requires','config','_licenseKeyCheckInterval','pluginName','documentOutlineLicenseKeyInvalid','get','documentOutlineLicenseKeyValid','document-outline-trial-license-key-reached-limit-changes','documentOutlineLicenseKeyTrial','document-outline-invalid-license-key','init','destroy'];(function(_0x2b8da9,_0x13e51d){const _0x739af=function(_0x456277){while(--_0x456277){_0x2b8da9['push'](_0x2b8da9['shift']());}};_0x739af(++_0x13e51d);}(_0x13e5,0x11b));const _0x739a=function(_0x2b8da9,_0x13e51d){_0x2b8da9=_0x2b8da9-0x0;let _0x739af=_0x13e5[_0x2b8da9];return _0x739af;};import{Plugin as _0x3726b2}from'ckeditor5/src/core';import{CKEditorError as _0x1b3f75}from'ckeditor5/src/utils';import _0x239494 from'./documentoutline/documentoutlineutils';import _0xc66ec9 from'./documentoutline/documentoutlineui';export default class l extends _0x3726b2{static get[_0x739a('0x5')](){return[_0x239494,_0xc66ec9];}static get[_0x739a('0x8')](){return'DocumentOutline';}constructor(_0x4fe62a){super(_0x4fe62a),this[_0x739a('0x7')]=null;}[_0x739a('0x0')](){const _0x3b2539=this['editor'];this['licenseKey']=_0x3b2539[_0x739a('0x6')][_0x739a('0xa')](_0x739a('0x4'));const _0x53dd64=this[_0x739a('0x3')];this[_0x739a('0x7')]=setInterval(()=>{let _0x5a02a2;for(const _0x32bf3c in _0x53dd64){const _0x4e2c21=_0x32bf3c,_0x34ef76=_0x53dd64[_0x4e2c21];if(_0x739a('0xd')===_0x34ef76||_0x739a('0x9')===_0x34ef76||_0x739a('0xb')===_0x34ef76||'documentOutlineLicenseKeyTrialLimit:operations'===_0x34ef76){delete _0x53dd64[_0x4e2c21],_0x5a02a2=_0x34ef76;break;}}if(_0x739a('0x9')===_0x5a02a2)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x1b3f75(_0x739a('0xe'),null);if(_0x739a('0xd')===_0x5a02a2&&console[_0x739a('0x2')]('You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20document\x20outline\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.'),'documentOutlineLicenseKeyTrialLimit:operations'===_0x5a02a2)throw clearInterval(this[_0x739a('0x7')]),new _0x1b3f75(_0x739a('0xc'),null);_0x739a('0xb')===_0x5a02a2&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}[_0x739a('0x1')](){this[_0x739a('0x7')]&&clearInterval(this[_0x739a('0x7')]);}}
const _0x2cae=['config','_licenseKeyCheckInterval','DocumentOutline','documentOutlineLicenseKeyInvalid','licenseKey','documentOutlineLicenseKeyTrialLimit:operations','editor','document-outline-invalid-license-key','get','document-outline-trial-license-key-reached-limit-changes','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20document\x20outline\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','documentOutlineLicenseKeyValid','destroy'];(function(_0x4222d4,_0x2cae94){const _0x4459dd=function(_0x4fa958){while(--_0x4fa958){_0x4222d4['push'](_0x4222d4['shift']());}};_0x4459dd(++_0x2cae94);}(_0x2cae,0x17a));const _0x4459=function(_0x4222d4,_0x2cae94){_0x4222d4=_0x4222d4-0x0;let _0x4459dd=_0x2cae[_0x4222d4];return _0x4459dd;};import{Plugin as _0x101ce1}from'ckeditor5/src/core';import{CKEditorError as _0x21abf0}from'ckeditor5/src/utils';import _0x52fd29 from'./documentoutline/documentoutlineutils';import _0x3a56ef from'./documentoutline/documentoutlineui';export default class l extends _0x101ce1{static get['requires'](){return[_0x52fd29,_0x3a56ef];}static get['pluginName'](){return _0x4459('0x1');}constructor(_0x867c78){super(_0x867c78),this[_0x4459('0x0')]=null;}['init'](){const _0xe2b4c4=this[_0x4459('0x5')];this[_0x4459('0x3')]=_0xe2b4c4[_0x4459('0xc')][_0x4459('0x7')](_0x4459('0x3'));const _0x37a382=this[_0x4459('0x5')];this[_0x4459('0x0')]=setInterval(()=>{let _0x5ed20e;for(const _0x4a6011 in _0x37a382){const _0xc61d7b=_0x4a6011,_0x139fd4=_0x37a382[_0xc61d7b];if('documentOutlineLicenseKeyTrial'===_0x139fd4||_0x4459('0x2')===_0x139fd4||_0x4459('0xa')===_0x139fd4||_0x4459('0x4')===_0x139fd4){delete _0x37a382[_0xc61d7b],_0x5ed20e=_0x139fd4;break;}}if(_0x4459('0x2')===_0x5ed20e)throw clearInterval(this[_0x4459('0x0')]),new _0x21abf0(_0x4459('0x6'),null);if('documentOutlineLicenseKeyTrial'===_0x5ed20e&&console['info'](_0x4459('0x9')),_0x4459('0x4')===_0x5ed20e)throw clearInterval(this[_0x4459('0x0')]),new _0x21abf0(_0x4459('0x8'),null);_0x4459('0xa')===_0x5ed20e&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}[_0x4459('0xb')](){this[_0x4459('0x0')]&&clearInterval(this[_0x4459('0x0')]);}}

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

*/
const _0x227f=['text','toModel','document','config','level','view','getChild','getRootNames','includes','data','push','_headingNames','change','get','_getActiveHeading','domConverter','name','domToView','_getHeadingNames','editor','findIndex','pluginName','element','_getOutlineDefinitions','init','model','getRoot','activeItemIndex','getChildren','_deriveHeadingElementsFromConversion','fire','length','modelElement','item'];(function(_0x18e2ef,_0x227f7a){const _0x21ce71=function(_0x3366dd){while(--_0x3366dd){_0x18e2ef['push'](_0x18e2ef['shift']());}};_0x21ce71(++_0x227f7a);}(_0x227f,0xcc));const _0x21ce=function(_0x18e2ef,_0x227f7a){_0x18e2ef=_0x18e2ef-0x0;let _0x21ce71=_0x227f[_0x18e2ef];return _0x21ce71;};import{Plugin as _0x3440be}from'ckeditor5/src/core';import{debounce as _0x413fba}from'lodash-es';import{TreeWalker as _0x344cff}from'ckeditor5/src/engine';import{getElementText as _0x387bf0,getDefaultFeatureHeadingNames as _0x4735c0}from'./utils';import{diff as _0x3659cd,diffToChanges as _0x4a8b27}from'ckeditor5/src/utils';export default class n extends _0x3440be{constructor(){super(...arguments),this[_0x21ce('0xb')]=[];}static get[_0x21ce('0x15')](){return'DocumentOutlineUtils';}[_0x21ce('0x18')](){const _0x45a0ba=this[_0x21ce('0x13')];this[_0x21ce('0xb')]=this[_0x21ce('0x12')]();let _0x2c307f=[];_0x45a0ba[_0x21ce('0x19')]['document']['on'](_0x21ce('0xc'),_0x413fba(()=>{const _0x2c1b59=_0x2c307f;_0x2c307f=this[_0x21ce('0x17')]();const _0x46beb6=_0x3659cd(_0x2c1b59,_0x2c307f,(_0xc4c422,_0x57ebb9)=>_0xc4c422[_0x21ce('0x4')]===_0x57ebb9[_0x21ce('0x4')]&&_0xc4c422[_0x21ce('0x0')]===_0x57ebb9[_0x21ce('0x0')]&&_0xc4c422[_0x21ce('0x20')]===_0x57ebb9[_0x21ce('0x20')]),_0x4217d3=_0x4a8b27(_0x46beb6,_0x2c307f),_0xb0081d=this[_0x21ce('0xe')](),_0x194f83=_0x2c307f[_0x21ce('0x14')](_0x58c5c9=>_0x58c5c9[_0x21ce('0x20')]===_0xb0081d);_0x4217d3[_0x21ce('0x1f')]&&this[_0x21ce('0x1e')](_0x21ce('0xc'),{'outlineDefinitions':_0x2c307f,'activeItemIndex':_0x194f83,'outlineChanges':_0x4217d3}),this['fire'](_0x21ce('0x1b'),{'index':_0x194f83});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this[_0x21ce('0xb')][_0x21ce('0x1f')]||this[_0x21ce('0x1d')]();}[_0x21ce('0x17')](){const _0x141013=this['editor'],_0x1a259c=[],_0x3790fe=this['_headingNames'];for(const _0x219dcd of _0x141013[_0x21ce('0x19')]['document'][_0x21ce('0x7')]())_0x537bbb(_0x141013[_0x21ce('0x19')][_0x21ce('0x2')][_0x21ce('0x1a')](_0x219dcd));function _0x537bbb(_0x39d860){for(const _0xa55866 of _0x39d860[_0x21ce('0x1c')]())_0xa55866['is'](_0x21ce('0x16'))&&(_0x3790fe['includes'](_0xa55866[_0x21ce('0x10')])&&_0x1a259c[_0x21ce('0xa')]({'level':_0x3790fe['indexOf'](_0xa55866[_0x21ce('0x10')])+0x1,'text':_0x387bf0(_0xa55866),'modelElement':_0xa55866}),_0x537bbb(_0xa55866));}return _0x1a259c;}[_0x21ce('0xe')](){const _0x5d55c3=this[_0x21ce('0x13')][_0x21ce('0x19')][_0x21ce('0x2')]['selection']['getFirstPosition'](),_0x315baf=new _0x344cff({'direction':'backward','startPosition':_0x5d55c3});for(const _0x388fe8 of _0x315baf)if(_0x388fe8[_0x21ce('0x21')]['is'](_0x21ce('0x16'))&&this['_headingNames'][_0x21ce('0x8')](_0x388fe8[_0x21ce('0x21')][_0x21ce('0x10')]))return _0x388fe8[_0x21ce('0x21')];}[_0x21ce('0x12')](){const _0x4fd4a8=this['editor'][_0x21ce('0x3')][_0x21ce('0xd')]('documentOutline.headings');return _0x4fd4a8||_0x4735c0(this[_0x21ce('0x13')]);}[_0x21ce('0x1d')](){const _0x3ea721=this['editor'],_0x456d81=['h1','h2','h3','h4','h5','h6'],_0x484492=[];for(const _0x28fd02 of _0x456d81){const _0xa51525=_0x3ea721['editing'][_0x21ce('0x5')][_0x21ce('0xf')][_0x21ce('0x11')](document['createElement'](_0x28fd02)),_0x126255=_0x3ea721[_0x21ce('0x9')][_0x21ce('0x1')](_0xa51525)[_0x21ce('0x6')](0x0);(null==_0x126255?void 0x0:_0x126255['is'](_0x21ce('0x16')))&&_0x484492[_0x21ce('0xa')](_0x126255[_0x21ce('0x10')]);}this[_0x21ce('0xb')]=_0x484492;}}
const _0x5e76=['get','document','length','view','_getHeadingNames','data','model','element','domToView','getRootNames','backward','level','getFirstPosition','_getActiveHeading','name','domConverter','activeItemIndex','_headingNames','selection','_getOutlineDefinitions','includes','modelElement','init','item','findIndex','fire','editor','_deriveHeadingElementsFromConversion','change','indexOf','afterInit','pluginName','getChild','push','text','documentOutline.headings'];(function(_0x34b203,_0x5e76b0){const _0x17c6e7=function(_0x2a6dd2){while(--_0x2a6dd2){_0x34b203['push'](_0x34b203['shift']());}};_0x17c6e7(++_0x5e76b0);}(_0x5e76,0x141));const _0x17c6=function(_0x34b203,_0x5e76b0){_0x34b203=_0x34b203-0x0;let _0x17c6e7=_0x5e76[_0x34b203];return _0x17c6e7;};import{Plugin as _0x41f4cf}from'ckeditor5/src/core';import{debounce as _0x28cf46}from'lodash-es';import{TreeWalker as _0x58cb50}from'ckeditor5/src/engine';import{getElementText as _0x1df8ad,getDefaultFeatureHeadingNames as _0x43d38c}from'./utils';import{diff as _0x53d614,diffToChanges as _0x2b3701}from'ckeditor5/src/utils';export default class n extends _0x41f4cf{constructor(){super(...arguments),this[_0x17c6('0x14')]=[];}static get[_0x17c6('0x22')](){return'DocumentOutlineUtils';}[_0x17c6('0x19')](){const _0x3c4dda=this[_0x17c6('0x1d')];this['_headingNames']=this[_0x17c6('0x7')]();let _0x203bef=[];_0x3c4dda[_0x17c6('0x9')][_0x17c6('0x4')]['on'](_0x17c6('0x1f'),_0x28cf46(()=>{const _0x53cbb1=_0x203bef;_0x203bef=this[_0x17c6('0x16')]();const _0x3ce73e=_0x53d614(_0x53cbb1,_0x203bef,(_0x2150e4,_0x45861c)=>_0x2150e4[_0x17c6('0xe')]===_0x45861c['level']&&_0x2150e4['text']===_0x45861c[_0x17c6('0x1')]&&_0x2150e4[_0x17c6('0x18')]===_0x45861c[_0x17c6('0x18')]),_0x22d48c=_0x2b3701(_0x3ce73e,_0x203bef),_0x47d8fa=this[_0x17c6('0x10')](),_0x50d07c=_0x203bef[_0x17c6('0x1b')](_0x49f25a=>_0x49f25a[_0x17c6('0x18')]===_0x47d8fa);_0x22d48c[_0x17c6('0x5')]&&this[_0x17c6('0x1c')](_0x17c6('0x1f'),{'outlineDefinitions':_0x203bef,'activeItemIndex':_0x50d07c,'outlineChanges':_0x22d48c}),this[_0x17c6('0x1c')](_0x17c6('0x13'),{'index':_0x50d07c});},0xfa,{'leading':!0x0,'trailing':!0x0}));}[_0x17c6('0x21')](){this['_headingNames'][_0x17c6('0x5')]||this[_0x17c6('0x1e')]();}['_getOutlineDefinitions'](){const _0x41079a=this['editor'],_0x1616f2=[],_0x3cfbaf=this['_headingNames'];for(const _0x5ebf03 of _0x41079a[_0x17c6('0x9')][_0x17c6('0x4')][_0x17c6('0xc')]())_0x3c7aad(_0x41079a[_0x17c6('0x9')][_0x17c6('0x4')]['getRoot'](_0x5ebf03));function _0x3c7aad(_0x3ab1de){for(const _0x338369 of _0x3ab1de['getChildren']())_0x338369['is']('element')&&(_0x3cfbaf[_0x17c6('0x17')](_0x338369[_0x17c6('0x11')])&&_0x1616f2[_0x17c6('0x0')]({'level':_0x3cfbaf[_0x17c6('0x20')](_0x338369[_0x17c6('0x11')])+0x1,'text':_0x1df8ad(_0x338369),'modelElement':_0x338369}),_0x3c7aad(_0x338369));}return _0x1616f2;}[_0x17c6('0x10')](){const _0x673d27=this[_0x17c6('0x1d')][_0x17c6('0x9')][_0x17c6('0x4')][_0x17c6('0x15')][_0x17c6('0xf')](),_0x252a4b=new _0x58cb50({'direction':_0x17c6('0xd'),'startPosition':_0x673d27});for(const _0x35f679 of _0x252a4b)if(_0x35f679[_0x17c6('0x1a')]['is'](_0x17c6('0xa'))&&this[_0x17c6('0x14')][_0x17c6('0x17')](_0x35f679['item'][_0x17c6('0x11')]))return _0x35f679[_0x17c6('0x1a')];}[_0x17c6('0x7')](){const _0x510d70=this[_0x17c6('0x1d')]['config'][_0x17c6('0x3')](_0x17c6('0x2'));return _0x510d70||_0x43d38c(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x1e2863=this['editor'],_0x10ff80=['h1','h2','h3','h4','h5','h6'],_0x29507c=[];for(const _0x547e99 of _0x10ff80){const _0x4e7315=_0x1e2863['editing'][_0x17c6('0x6')][_0x17c6('0x12')][_0x17c6('0xb')](document['createElement'](_0x547e99)),_0x2e0858=_0x1e2863[_0x17c6('0x8')]['toModel'](_0x4e7315)[_0x17c6('0x23')](0x0);(null==_0x2e0858?void 0x0:_0x2e0858['is'](_0x17c6('0xa')))&&_0x29507c[_0x17c6('0x0')](_0x2e0858[_0x17c6('0x11')]);}this['_headingNames']=_0x29507c;}}

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

*/
import{View as _0x29775c}from'ckeditor5/src/ui';export default class $ extends _0x29775c{constructor(_0x3969b8,_0x585e03=!0x1){super(_0x3969b8);const t=_0x3969b8['t'],_0x2b727b=this['bindTemplate'],_0x11c51e=_0x585e03?'['+t('Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x3f9a37=>!_0x3f9a37),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x2b727b['to']('level',_0x264eb8=>'ck-document-outline__item_level-'+_0x264eb8),_0x2b727b['if']('isActive','ck-document-outline__item_active'),_0x2b727b['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x2b727b['to']('text')},'children':[{'text':_0x2b727b['to']('text',_0x4ee2d4=>_0x4ee2d4||_0x11c51e)}],'on':{'click':_0x2b727b['to']('click')}});}}
import{View as _0x8c476f}from'ckeditor5/src/ui';export default class $ extends _0x8c476f{constructor(_0x4ab9e3,_0x2e494a=!0x1){super(_0x4ab9e3);const t=_0x4ab9e3['t'],_0x47138c=this['bindTemplate'],_0x4d4b85=_0x2e494a?'['+t('Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x376dda=>!_0x376dda),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x47138c['to']('level',_0x5ced99=>'ck-document-outline__item_level-'+_0x5ced99),_0x47138c['if']('isActive','ck-document-outline__item_active'),_0x47138c['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x47138c['to']('text')},'children':[{'text':_0x47138c['to']('text',_0x5f5019=>_0x5f5019||_0x4d4b85)}],'on':{'click':_0x47138c['to']('click')}});}}

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

*/
import{View as _0x17917c}from'ckeditor5/src/ui';import{scrollAncestorsToShowTarget as _0x237a14}from'ckeditor5/src/utils';import _0x5eeb4d from'./documentoutlineitemview';export default class d extends _0x17917c{constructor(_0x51c31f,_0x4e1fd0=!0x1,_0x583285){super(_0x51c31f);const t=_0x51c31f['t'];this['showEmptyHeadingText']=_0x4e1fd0,this['set']('activeItemIndex',-0x1),this['_documentOutlineContainer']=_0x583285,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x2eb5a3,_0x4d7833,_0x4aa1e1,_0x661fb8)=>{this['_setActiveItem'](_0x661fb8,_0x4aa1e1);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x51c31f['contentLanguageDirection'],'data-document-outline-empty-placeholder':t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x514256){_0x514256['forEach'](_0x4f145a=>{'insert'==_0x4f145a['type']?this['_insertItem'](_0x4f145a['index'],..._0x4f145a['values']):'delete'==_0x4f145a['type']&&this['_deleteItem'](_0x4f145a['index'],_0x4f145a['howMany']);});}['_setActiveItem'](_0x1ed7c7,_0x4e4ca0){if(-0x1!==_0x1ed7c7){const _0x45b918=this['items']['get'](_0x1ed7c7);_0x45b918&&(_0x45b918['isActive']=!0x1);}-0x1!==_0x4e4ca0&&(this['items']['get'](_0x4e4ca0)['isActive']=!0x0,this['_scrollToItem'](_0x4e4ca0));}['_insertItem'](_0x5de359,..._0x3b0372){const _0x53d595=_0x3b0372['map']((_0x1d33fa,_0x29a0f5)=>{const _0x14aaf5=new _0x5eeb4d(this['locale'],this['showEmptyHeadingText']);return _0x14aaf5['text']=_0x1d33fa['text'],_0x14aaf5['level']=_0x1d33fa['level'],_0x5de359+_0x29a0f5===this['activeItemIndex']&&(_0x14aaf5['isActive']=!0x0),_0x14aaf5;});this['items']['addMany'](_0x53d595,_0x5de359);}['_deleteItem'](_0x110948,_0x4058eb){do{this['items']['remove'](_0x110948);}while(--_0x4058eb);}['_handleItemClick'](_0x448cc8){const _0x2fb7ac=this['items']['getIndex'](_0x448cc8['source']);this['fire']('itemSelected',_0x2fb7ac);}['_scrollToItem'](_0x2c97ba){_0x237a14(this['items']['get'](_0x2c97ba)['element'],0x14,this['_documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}
import{View as _0x557069}from'ckeditor5/src/ui';import{scrollAncestorsToShowTarget as _0x174b1a}from'ckeditor5/src/utils';import _0x19040f from'./documentoutlineitemview';export default class d extends _0x557069{constructor(_0x2c23de,_0x2aef8e=!0x1,_0x14a95a){super(_0x2c23de);const t=_0x2c23de['t'];this['showEmptyHeadingText']=_0x2aef8e,this['set']('activeItemIndex',-0x1),this['_documentOutlineContainer']=_0x14a95a,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x4db765,_0x2703fa,_0x316089,_0x9f86ab)=>{this['_setActiveItem'](_0x9f86ab,_0x316089);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x2c23de['contentLanguageDirection'],'data-document-outline-empty-placeholder':t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x20b0b9){_0x20b0b9['forEach'](_0x322d47=>{'insert'==_0x322d47['type']?this['_insertItem'](_0x322d47['index'],..._0x322d47['values']):'delete'==_0x322d47['type']&&this['_deleteItem'](_0x322d47['index'],_0x322d47['howMany']);});}['_setActiveItem'](_0x592cd8,_0x261133){if(-0x1!==_0x592cd8){const _0xf75fb7=this['items']['get'](_0x592cd8);_0xf75fb7&&(_0xf75fb7['isActive']=!0x1);}-0x1!==_0x261133&&(this['items']['get'](_0x261133)['isActive']=!0x0,this['_scrollToItem'](_0x261133));}['_insertItem'](_0x199d33,..._0x28a9a8){const _0x2cf936=_0x28a9a8['map']((_0x56c2f8,_0x645983)=>{const _0x3cbd2a=new _0x19040f(this['locale'],this['showEmptyHeadingText']);return _0x3cbd2a['text']=_0x56c2f8['text'],_0x3cbd2a['level']=_0x56c2f8['level'],_0x199d33+_0x645983===this['activeItemIndex']&&(_0x3cbd2a['isActive']=!0x0),_0x3cbd2a;});this['items']['addMany'](_0x2cf936,_0x199d33);}['_deleteItem'](_0xf907d8,_0x1b3d2e){do{this['items']['remove'](_0xf907d8);}while(--_0x1b3d2e);}['_handleItemClick'](_0x5bd786){const _0x46105e=this['items']['getIndex'](_0x5bd786['source']);this['fire']('itemSelected',_0x46105e);}['_scrollToItem'](_0xcb2146){_0x174b1a(this['items']['get'](_0xcb2146)['element'],0x14,this['_documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}

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

*/
const _0x2745=['plugins','model','htmlH6','data','htmlH3','has','push','getChildren','htmlH5','heading.options','reduce','GeneralHtmlSupport'];(function(_0x40f1f8,_0x27453f){const _0x520110=function(_0x57ab85){while(--_0x57ab85){_0x40f1f8['push'](_0x40f1f8['shift']());}};_0x520110(++_0x27453f);}(_0x2745,0x175));const _0x5201=function(_0x40f1f8,_0x27453f){_0x40f1f8=_0x40f1f8-0x0;let _0x520110=_0x2745[_0x40f1f8];return _0x520110;};import{Text as _0x117901}from'ckeditor5/src/engine';export function getElementText(_0xdc6910){let _0x272b81='';for(const _0x101cfc of _0xdc6910[_0x5201('0x6')]())_0x101cfc instanceof _0x117901&&(_0x272b81+=_0x101cfc[_0x5201('0x2')]);return _0x272b81;}export function getDefaultFeatureHeadingNames(_0x3f26c9){const _0x10be3e=_0x3f26c9['config']['get'](_0x5201('0x8'));return _0x10be3e?_0x10be3e[_0x5201('0x9')]((_0x258ada,_0x24a403)=>('paragraph'!==_0x24a403[_0x5201('0x0')]&&_0x258ada[_0x5201('0x5')](_0x24a403[_0x5201('0x0')]),_0x258ada),[]):_0x3f26c9[_0x5201('0xb')][_0x5201('0x4')](_0x5201('0xa'))?['htmlH1','htmlH2',_0x5201('0x3'),'htmlH4',_0x5201('0x7'),_0x5201('0x1')]:[];}
const _0x18fb=['getChildren','reduce','paragraph','htmlH1','htmlH3','htmlH4','model','get','data'];(function(_0x4d1862,_0x18fbc1){const _0x1bc785=function(_0x2278ce){while(--_0x2278ce){_0x4d1862['push'](_0x4d1862['shift']());}};_0x1bc785(++_0x18fbc1);}(_0x18fb,0x1a8));const _0x1bc7=function(_0x4d1862,_0x18fbc1){_0x4d1862=_0x4d1862-0x0;let _0x1bc785=_0x18fb[_0x4d1862];return _0x1bc785;};import{Text as _0x28cc8b}from'ckeditor5/src/engine';export function getElementText(_0x936375){let _0x1de98e='';for(const _0x477798 of _0x936375[_0x1bc7('0x8')]())_0x477798 instanceof _0x28cc8b&&(_0x1de98e+=_0x477798[_0x1bc7('0x7')]);return _0x1de98e;}export function getDefaultFeatureHeadingNames(_0xdc1dbf){const _0x4735d3=_0xdc1dbf['config'][_0x1bc7('0x6')]('heading.options');return _0x4735d3?_0x4735d3[_0x1bc7('0x0')]((_0x5d6617,_0x467923)=>(_0x1bc7('0x1')!==_0x467923[_0x1bc7('0x5')]&&_0x5d6617['push'](_0x467923['model']),_0x5d6617),[]):_0xdc1dbf['plugins']['has']('GeneralHtmlSupport')?[_0x1bc7('0x2'),'htmlH2',_0x1bc7('0x3'),_0x1bc7('0x4'),'htmlH5','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 _0x45ca02 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':_0x45ca02};import'./augmentation';
export{default as DocumentOutline}from'./documentoutline';export{default as DocumentOutlineUI}from'./documentoutline/documentoutlineui';export{default as DocumentOutlineUtils}from'./documentoutline/documentoutlineutils';import _0x3da749 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':_0x3da749};import'./augmentation';

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

*/
var _0x2e19=['TableOfContents','requires'];(function(_0x1217d1,_0x2e19e3){var _0x1c6153=function(_0x45b79c){while(--_0x45b79c){_0x1217d1['push'](_0x1217d1['shift']());}};_0x1c6153(++_0x2e19e3);}(_0x2e19,0xb0));var _0x1c61=function(_0x1217d1,_0x2e19e3){_0x1217d1=_0x1217d1-0x0;var _0x1c6153=_0x2e19[_0x1217d1];return _0x1c6153;};import{Plugin as _0x133b7a}from'ckeditor5/src/core';import _0x292fbe from'./tableofcontents/tableofcontentsediting';import _0x3af3e9 from'./tableofcontents/tableofcontentsui';export default class c extends _0x133b7a{static get[_0x1c61('0x1')](){return[_0x292fbe,_0x3af3e9];}static get['pluginName'](){return _0x1c61('0x0');}}
var _0x4542=['TableOfContents','pluginName','requires'];(function(_0xc62dc4,_0x4542bf){var _0x5b32b9=function(_0x987c5a){while(--_0x987c5a){_0xc62dc4['push'](_0xc62dc4['shift']());}};_0x5b32b9(++_0x4542bf);}(_0x4542,0x98));var _0x5b32=function(_0xc62dc4,_0x4542bf){_0xc62dc4=_0xc62dc4-0x0;var _0x5b32b9=_0x4542[_0xc62dc4];return _0x5b32b9;};import{Plugin as _0x505663}from'ckeditor5/src/core';import _0x3ed6ce from'./tableofcontents/tableofcontentsediting';import _0x14eea3 from'./tableofcontents/tableofcontentsui';export default class c extends _0x505663{static get[_0x5b32('0x0')](){return[_0x3ed6ce,_0x14eea3];}static get[_0x5b32('0x2')](){return _0x5b32('0x1');}}

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

*/
const _0x55c2=['editor','insert','isRegistered','model','clear','document','HeadingId','downcast','upcastDispatcher','registerPostFixer','writer','consume','getContainedElement','consumable','toViewElement','get','pluginName','extend','heading.options','getAttribute','paragraph','match','item','delete','config','headingId','_customUpcastHeadingsConversion','getChanges','mapper','_registerHeadingIdAttributePostfixer','attributes','add','forEach','_customDataDowncastHeadingsConversion','differ','heading1','element:','remove','position','name','set','nodeAfter','headingId.modelAttributeName','viewItem','low','string','schema','has','setAttribute','modelRange','type','afterInit','data','view'];(function(_0x2d0557,_0x55c23f){const _0x42e06f=function(_0x28be00){while(--_0x28be00){_0x2d0557['push'](_0x2d0557['shift']());}};_0x42e06f(++_0x55c23f);}(_0x55c2,0x121));const _0x42e0=function(_0x2d0557,_0x55c23f){_0x2d0557=_0x2d0557-0x0;let _0x42e06f=_0x55c2[_0x2d0557];return _0x42e06f;};import{Plugin as _0x2c9b79}from'ckeditor5/src/core';import{uid as _0x1d60de,priorities as _0x16c2a8}from'ckeditor5/src/utils';export default class A extends _0x2c9b79{static get[_0x42e0('0x33')](){return _0x42e0('0x29');}[_0x42e0('0x20')](){const _0x2d2188=this[_0x42e0('0x23')];if(_0x2d2188[_0x42e0('0x5')][_0x42e0('0x32')](_0x42e0('0x17')))return;(function(_0x385552){const _0x30aa9a=new Map();if(_0x385552)return _0x385552[_0x42e0('0xd')](_0xf377ea=>{_0x42e0('0x1')!==_0xf377ea[_0x42e0('0x26')]&&_0x30aa9a['set'](_0xf377ea[_0x42e0('0x22')],_0xf377ea[_0x42e0('0x26')]);}),_0x30aa9a[_0x42e0('0x32')]('h1')||_0x30aa9a[_0x42e0('0x15')]('h1',_0x42e0('0x10')),_0x30aa9a;return _0x30aa9a;}(this[_0x42e0('0x23')]['config'][_0x42e0('0x32')](_0x42e0('0x35')))[_0x42e0('0xd')]((_0x1eadf1,_0x1c3bbe)=>{this['_customUpcastHeadingsConversion'](_0x1c3bbe),this[_0x42e0('0xe')](_0x1eadf1),_0x2d2188[_0x42e0('0x26')][_0x42e0('0x1b')][_0x42e0('0x25')](_0x1eadf1)&&_0x2d2188[_0x42e0('0x26')][_0x42e0('0x1b')][_0x42e0('0x34')](_0x1eadf1,{'allowAttributes':_0x42e0('0x6')});}),this[_0x42e0('0xa')]());}[_0x42e0('0x7')](_0x4f42e5){this[_0x42e0('0x23')][_0x42e0('0x21')][_0x42e0('0x2b')]['on'](_0x42e0('0x11')+_0x4f42e5,(_0x2dac23,_0x25b070,_0x26af91)=>{const {consumable:_0x409f68,writer:_0x3fc21b}=_0x26af91,_0x280ca9=_0x25b070[_0x42e0('0x18')]['getAttribute']('id'),_0x56457e=_0x25b070[_0x42e0('0x1e')][_0x42e0('0x2f')]();if(!(_0x280ca9&&_0x280ca9['length']||_0x56457e['hasAttribute'](_0x42e0('0x6'))))return _0x409f68[_0x42e0('0x2e')](_0x25b070['viewItem'],{'attributes':['id']}),void _0x3fc21b[_0x42e0('0x1d')](_0x42e0('0x6'),_0x1d60de(),_0x56457e);_0x409f68['consume'](_0x25b070['viewItem'],{'attributes':['id']})&&_0x3fc21b['setAttribute'](_0x42e0('0x6'),_0x280ca9,_0x56457e);},{'priority':_0x16c2a8[_0x42e0('0x32')](_0x42e0('0x19'))+0.5});}[_0x42e0('0xe')](_0x28d44d){this[_0x42e0('0x23')]['conversion']['for'](_0x42e0('0x2a'))[_0x42e0('0xc')](_0x2fb4c9=>_0x2fb4c9['on']('attribute:headingId:'+_0x28d44d,(_0x4e658d,_0x24cc88,_0x20041c)=>{if(!_0x20041c[_0x42e0('0x30')][_0x42e0('0x2e')](_0x24cc88[_0x42e0('0x3')],_0x4e658d[_0x42e0('0x14')]))return;const _0x3aec50=_0x24cc88[_0x42e0('0x3')][_0x42e0('0x0')]('headingId'),_0x4fbb8e=_0x20041c[_0x42e0('0x9')][_0x42e0('0x31')](_0x24cc88['item']);_0x20041c[_0x42e0('0x2d')][_0x42e0('0x1d')]('id',_0x3aec50,_0x4fbb8e);}));}['_registerHeadingIdAttributePostfixer'](){const _0x53df58=this[_0x42e0('0x23')],_0x496c2b=new Set(),_0x323a82=new Set();function _0x32cde1(_0x52efea,_0x262eff){const _0x42b99b=_0x1d60de();return _0x323a82[_0x42e0('0xc')](_0x42b99b),_0x52efea['setAttribute'](_0x42e0('0x6'),_0x42b99b,_0x262eff),_0x42b99b;}function _0x42b67f(_0x2b066b,_0x1a8e9b){_0x2b066b['removeAttribute']('headingId',_0x1a8e9b);}_0x53df58[_0x42e0('0x26')][_0x42e0('0x28')][_0x42e0('0x2c')](_0x44a8e3=>{const _0x550dc9=_0x53df58[_0x42e0('0x26')][_0x42e0('0x28')][_0x42e0('0xf')][_0x42e0('0x8')]();let _0x2dec20=!0x1;for(const _0x504468 of _0x550dc9)if(_0x42e0('0x24')==_0x504468['type']&&_0x504468[_0x42e0('0x14')]){if(_0x504468[_0x42e0('0x14')][_0x42e0('0x2')](/heading\d/)){const _0x4cb3a2=_0x504468[_0x42e0('0xb')][_0x42e0('0x32')]('headingId');_0x42e0('0x1a')==typeof _0x4cb3a2?_0x496c2b[_0x42e0('0x1c')](_0x4cb3a2)?(_0x32cde1(_0x44a8e3,_0x504468[_0x42e0('0x13')][_0x42e0('0x16')]),_0x2dec20=!0x0):_0x323a82['add'](_0x4cb3a2):(_0x32cde1(_0x44a8e3,_0x504468[_0x42e0('0x13')][_0x42e0('0x16')]),_0x2dec20=!0x0);}else _0x42e0('0x1a')==typeof _0x504468[_0x42e0('0xb')][_0x42e0('0x32')](_0x42e0('0x6'))&&(_0x42b67f(_0x44a8e3,_0x504468['position'][_0x42e0('0x16')]),_0x2dec20=!0x0);}else{if(_0x42e0('0x12')==_0x504468[_0x42e0('0x1f')]){const _0x1858d7=_0x504468[_0x42e0('0xb')][_0x42e0('0x32')](_0x42e0('0x6'));'string'==typeof _0x1858d7&&_0x496c2b[_0x42e0('0x4')](_0x1858d7);}}return _0x2dec20;}),_0x53df58['model'][_0x42e0('0x28')]['on']('change',()=>{_0x323a82[_0x42e0('0xd')](_0x385db8=>_0x496c2b[_0x42e0('0xc')](_0x385db8)),_0x323a82[_0x42e0('0x27')]();});}}
const _0x3fb9=['headingId.modelAttributeName','HeadingId','data','remove','editor','config','removeAttribute','forEach','view','nodeAfter','delete','schema','for','_customDataDowncastHeadingsConversion','length','viewItem','writer','insert','paragraph','_customUpcastHeadingsConversion','attributes','getAttribute','extend','low','toViewElement','type','add','headingId','model','registerPostFixer','change','element:','modelRange','name','attribute:headingId:','set','get','position','differ','pluginName','match','getChanges','string','item','consume','setAttribute','getContainedElement','document','consumable','isRegistered','conversion','hasAttribute'];(function(_0x2e22cc,_0x3fb90c){const _0x19474c=function(_0x140a3a){while(--_0x140a3a){_0x2e22cc['push'](_0x2e22cc['shift']());}};_0x19474c(++_0x3fb90c);}(_0x3fb9,0x125));const _0x1947=function(_0x2e22cc,_0x3fb90c){_0x2e22cc=_0x2e22cc-0x0;let _0x19474c=_0x3fb9[_0x2e22cc];return _0x19474c;};import{Plugin as _0x178788}from'ckeditor5/src/core';import{uid as _0x581438,priorities as _0x200c9b}from'ckeditor5/src/utils';export default class A extends _0x178788{static get[_0x1947('0x6')](){return _0x1947('0x14');}['afterInit'](){const _0x59eb51=this['editor'];if(_0x59eb51[_0x1947('0x18')]['get'](_0x1947('0x13')))return;(function(_0x1f31a1){const _0x2ccc3e=new Map();if(_0x1f31a1)return _0x1f31a1[_0x1947('0x1a')](_0x4ef4fc=>{_0x1947('0x25')!==_0x4ef4fc[_0x1947('0x2f')]&&_0x2ccc3e[_0x1947('0x2')](_0x4ef4fc[_0x1947('0x1b')],_0x4ef4fc[_0x1947('0x2f')]);}),_0x2ccc3e[_0x1947('0x3')]('h1')||_0x2ccc3e[_0x1947('0x2')]('h1','heading1'),_0x2ccc3e;return _0x2ccc3e;}(this[_0x1947('0x17')][_0x1947('0x18')][_0x1947('0x3')]('heading.options'))['forEach']((_0x44ccc2,_0x2076fd)=>{this[_0x1947('0x26')](_0x2076fd),this[_0x1947('0x20')](_0x44ccc2),_0x59eb51[_0x1947('0x2f')][_0x1947('0x1e')][_0x1947('0x10')](_0x44ccc2)&&_0x59eb51[_0x1947('0x2f')]['schema'][_0x1947('0x29')](_0x44ccc2,{'allowAttributes':_0x1947('0x2e')});}),this['_registerHeadingIdAttributePostfixer']());}[_0x1947('0x26')](_0x3e1bfa){this['editor'][_0x1947('0x15')]['upcastDispatcher']['on'](_0x1947('0x32')+_0x3e1bfa,(_0x1178a7,_0x26343c,_0x1d7797)=>{const {consumable:_0x43cff1,writer:_0x2e9db7}=_0x1d7797,_0xd5eb58=_0x26343c[_0x1947('0x22')]['getAttribute']('id'),_0x592b3d=_0x26343c[_0x1947('0x33')][_0x1947('0xd')]();if(!(_0xd5eb58&&_0xd5eb58[_0x1947('0x21')]||_0x592b3d[_0x1947('0x12')]('headingId')))return _0x43cff1[_0x1947('0xb')](_0x26343c['viewItem'],{'attributes':['id']}),void _0x2e9db7[_0x1947('0xc')](_0x1947('0x2e'),_0x581438(),_0x592b3d);_0x43cff1[_0x1947('0xb')](_0x26343c[_0x1947('0x22')],{'attributes':['id']})&&_0x2e9db7[_0x1947('0xc')](_0x1947('0x2e'),_0xd5eb58,_0x592b3d);},{'priority':_0x200c9b[_0x1947('0x3')](_0x1947('0x2a'))+0.5});}[_0x1947('0x20')](_0x4b5b3d){this[_0x1947('0x17')][_0x1947('0x11')][_0x1947('0x1f')]('downcast')[_0x1947('0x2d')](_0x285baa=>_0x285baa['on'](_0x1947('0x1')+_0x4b5b3d,(_0x1ca38b,_0x768a88,_0x32451f)=>{if(!_0x32451f[_0x1947('0xf')][_0x1947('0xb')](_0x768a88[_0x1947('0xa')],_0x1ca38b[_0x1947('0x0')]))return;const _0x257ea4=_0x768a88[_0x1947('0xa')][_0x1947('0x28')](_0x1947('0x2e')),_0x3f5c6c=_0x32451f['mapper'][_0x1947('0x2b')](_0x768a88['item']);_0x32451f[_0x1947('0x23')][_0x1947('0xc')]('id',_0x257ea4,_0x3f5c6c);}));}['_registerHeadingIdAttributePostfixer'](){const _0x319286=this[_0x1947('0x17')],_0xea2141=new Set(),_0x371b75=new Set();function _0x2d63da(_0x1f0999,_0x234d14){const _0x23349c=_0x581438();return _0x371b75[_0x1947('0x2d')](_0x23349c),_0x1f0999[_0x1947('0xc')](_0x1947('0x2e'),_0x23349c,_0x234d14),_0x23349c;}function _0x51f457(_0x2f8c86,_0x121af8){_0x2f8c86[_0x1947('0x19')]('headingId',_0x121af8);}_0x319286[_0x1947('0x2f')][_0x1947('0xe')][_0x1947('0x30')](_0x259202=>{const _0x1ea463=_0x319286[_0x1947('0x2f')]['document'][_0x1947('0x5')][_0x1947('0x8')]();let _0x5e7537=!0x1;for(const _0x4662cc of _0x1ea463)if(_0x1947('0x24')==_0x4662cc[_0x1947('0x2c')]&&_0x4662cc['name']){if(_0x4662cc[_0x1947('0x0')][_0x1947('0x7')](/heading\d/)){const _0x317af7=_0x4662cc['attributes'][_0x1947('0x3')](_0x1947('0x2e'));'string'==typeof _0x317af7?_0xea2141['has'](_0x317af7)?(_0x2d63da(_0x259202,_0x4662cc[_0x1947('0x4')][_0x1947('0x1c')]),_0x5e7537=!0x0):_0x371b75[_0x1947('0x2d')](_0x317af7):(_0x2d63da(_0x259202,_0x4662cc[_0x1947('0x4')][_0x1947('0x1c')]),_0x5e7537=!0x0);}else _0x1947('0x9')==typeof _0x4662cc[_0x1947('0x27')][_0x1947('0x3')](_0x1947('0x2e'))&&(_0x51f457(_0x259202,_0x4662cc[_0x1947('0x4')]['nodeAfter']),_0x5e7537=!0x0);}else{if(_0x1947('0x16')==_0x4662cc[_0x1947('0x2c')]){const _0x24362=_0x4662cc[_0x1947('0x27')]['get'](_0x1947('0x2e'));_0x1947('0x9')==typeof _0x24362&&_0xea2141[_0x1947('0x1d')](_0x24362);}}return _0x5e7537;}),_0x319286['model'][_0x1947('0xe')]['on'](_0x1947('0x31'),()=>{_0x371b75['forEach'](_0x5a0b34=>_0xea2141[_0x1947('0x2d')](_0x5a0b34)),_0x371b75['clear']();});}}

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

*/
const _0x4cbd=['createElement','isEnabled','selection','document','refresh','insertObject','getFirstPosition','tableOfContents','editor','schema','execute','model','change'];(function(_0x110a6a,_0x4cbd29){const _0x848209=function(_0x35b76f){while(--_0x35b76f){_0x110a6a['push'](_0x110a6a['shift']());}};_0x848209(++_0x4cbd29);}(_0x4cbd,0xab));const _0x8482=function(_0x110a6a,_0x4cbd29){_0x110a6a=_0x110a6a-0x0;let _0x848209=_0x4cbd[_0x110a6a];return _0x848209;};import{Command as _0x38d4b2}from'ckeditor5/src/core';export default class O extends _0x38d4b2{[_0x8482('0x8')](){this[_0x8482('0x6')][_0x8482('0x9')][_0x8482('0xa')](_0x24b82f=>{this['editor'][_0x8482('0x9')][_0x8482('0x3')](_0x24b82f[_0x8482('0xb')]('tableOfContents'));});}[_0x8482('0x2')](){const _0x12646d=this[_0x8482('0x6')][_0x8482('0x9')],_0x37d855=_0x12646d[_0x8482('0x1')][_0x8482('0x0')][_0x8482('0x4')]();this[_0x8482('0xc')]=null!==(_0x37d855&&_0x12646d[_0x8482('0x7')]['findAllowedParent'](_0x37d855,_0x8482('0x5')));}}
const _0x206e=['model','isEnabled','findAllowedParent','selection','change','refresh','execute','tableOfContents','createElement','document','editor'];(function(_0x24e0c4,_0x206ec6){const _0x56660e=function(_0x2a9013){while(--_0x2a9013){_0x24e0c4['push'](_0x24e0c4['shift']());}};_0x56660e(++_0x206ec6);}(_0x206e,0xff));const _0x5666=function(_0x24e0c4,_0x206ec6){_0x24e0c4=_0x24e0c4-0x0;let _0x56660e=_0x206e[_0x24e0c4];return _0x56660e;};import{Command as _0x2d6856}from'ckeditor5/src/core';export default class O extends _0x2d6856{[_0x5666('0x4')](){this[_0x5666('0x8')][_0x5666('0x9')][_0x5666('0x2')](_0x391241=>{this[_0x5666('0x8')][_0x5666('0x9')]['insertObject'](_0x391241[_0x5666('0x6')](_0x5666('0x5')));});}[_0x5666('0x3')](){const _0x4ca9d8=this[_0x5666('0x8')][_0x5666('0x9')],_0x463b09=_0x4ca9d8[_0x5666('0x7')][_0x5666('0x1')]['getFirstPosition']();this[_0x5666('0xa')]=null!==(_0x463b09&&_0x4ca9d8['schema'][_0x5666('0x0')](_0x463b09,'tableOfContents'));}}

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

*/
import{ButtonView as _0x49fe00}from'ckeditor5/src/ui';import{CKEditorError as _0x10655e}from'ckeditor5/src/utils';import{Plugin as _0x999c10}from'ckeditor5/src/core';import _0x14a442 from'../../theme/icons/table-of-contents.svg';export default class s extends _0x999c10{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x57c1c3){super(_0x57c1c3),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x386170=this['editor'],t=_0x386170['t'];_0x386170['ui']['componentFactory']['add']('tableOfContents',_0x41f866=>{const _0x12edf4=_0x386170['commands']['get']('insertTableOfContents'),_0x30c22f=new _0x49fe00(_0x41f866);return _0x30c22f['set']({'label':t('Table\x20of\x20contents'),'icon':_0x14a442,'tooltip':!0x0}),_0x30c22f['bind']('isEnabled')['to'](_0x12edf4,'isEnabled'),this['listenTo'](_0x30c22f,'execute',()=>{_0x386170['execute']('insertTableOfContents'),_0x386170['editing']['view']['focus']();}),_0x30c22f;}),this['licenseKey']=_0x386170['config']['get']('licenseKey');const _0x1b6d38=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x40f7b6;for(const _0xfbcbb7 in _0x1b6d38){const _0x4c4678=_0xfbcbb7,_0x42b1fc=_0x1b6d38[_0x4c4678];if('tableOfContentsLicenseKeyTrial'===_0x42b1fc||'tableOfContentsLicenseKeyInvalid'===_0x42b1fc||'tableOfContentsLicenseKeyValid'===_0x42b1fc||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x42b1fc){delete _0x1b6d38[_0x4c4678],_0x40f7b6=_0x42b1fc;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x40f7b6)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x10655e('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x40f7b6&&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'===_0x40f7b6)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x10655e('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x40f7b6&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}
import{ButtonView as _0x379e2c}from'ckeditor5/src/ui';import{CKEditorError as _0x58fba4}from'ckeditor5/src/utils';import{Plugin as _0x11c83a}from'ckeditor5/src/core';import _0x5b43a0 from'../../theme/icons/table-of-contents.svg';export default class s extends _0x11c83a{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x5b2e22){super(_0x5b2e22),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x114895=this['editor'],t=_0x114895['t'];_0x114895['ui']['componentFactory']['add']('tableOfContents',_0x394260=>{const _0x2141f2=_0x114895['commands']['get']('insertTableOfContents'),_0x2569fb=new _0x379e2c(_0x394260);return _0x2569fb['set']({'label':t('Table\x20of\x20contents'),'icon':_0x5b43a0,'tooltip':!0x0}),_0x2569fb['bind']('isEnabled')['to'](_0x2141f2,'isEnabled'),this['listenTo'](_0x2569fb,'execute',()=>{_0x114895['execute']('insertTableOfContents'),_0x114895['editing']['view']['focus']();}),_0x2569fb;}),this['licenseKey']=_0x114895['config']['get']('licenseKey');const _0x2914e4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5ef59b;for(const _0x2e2439 in _0x2914e4){const _0x54787f=_0x2e2439,_0x4b652d=_0x2914e4[_0x54787f];if('tableOfContentsLicenseKeyTrial'===_0x4b652d||'tableOfContentsLicenseKeyInvalid'===_0x4b652d||'tableOfContentsLicenseKeyValid'===_0x4b652d||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x4b652d){delete _0x2914e4[_0x54787f],_0x5ef59b=_0x4b652d;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x5ef59b)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x58fba4('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x5ef59b&&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'===_0x5ef59b)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x58fba4('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x5ef59b&&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