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

6

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

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

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

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

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

*/
const _0x404c=['destroy','documentOutlineLicenseKeyInvalid','config','document-outline-invalid-license-key','_licenseKeyCheckInterval','pluginName','DocumentOutline','document-outline-trial-license-key-reached-limit-changes','documentOutlineLicenseKeyTrial','editor','documentOutlineLicenseKeyValid','get','licenseKey'];(function(_0x22665c,_0x404cd6){const _0x30233e=function(_0x403c60){while(--_0x403c60){_0x22665c['push'](_0x22665c['shift']());}};_0x30233e(++_0x404cd6);}(_0x404c,0xf4));const _0x3023=function(_0x22665c,_0x404cd6){_0x22665c=_0x22665c-0x0;let _0x30233e=_0x404c[_0x22665c];return _0x30233e;};import{Plugin as _0x255052}from'ckeditor5/src/core';import{CKEditorError as _0x3ce416}from'ckeditor5/src/utils';import _0x2c0f8e from'./documentoutline/documentoutlineutils';import _0x1904a7 from'./documentoutline/documentoutlineui';export default class l extends _0x255052{static get['requires'](){return[_0x2c0f8e,_0x1904a7];}static get[_0x3023('0x8')](){return _0x3023('0x9');}constructor(_0x5d45ef){super(_0x5d45ef),this[_0x3023('0x7')]=null;}['init'](){const _0x5e92ec=this[_0x3023('0xc')];this[_0x3023('0x2')]=_0x5e92ec[_0x3023('0x5')][_0x3023('0x1')](_0x3023('0x2'));const _0x1b14ec=this[_0x3023('0xc')];this[_0x3023('0x7')]=setInterval(()=>{let _0x5d0ce8;for(const _0x400a4d in _0x1b14ec){const _0x3579b1=_0x400a4d,_0x63fb47=_0x1b14ec[_0x3579b1];if(_0x3023('0xb')===_0x63fb47||_0x3023('0x4')===_0x63fb47||_0x3023('0x0')===_0x63fb47||'documentOutlineLicenseKeyTrialLimit:operations'===_0x63fb47){delete _0x1b14ec[_0x3579b1],_0x5d0ce8=_0x63fb47;break;}}if('documentOutlineLicenseKeyInvalid'===_0x5d0ce8)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x3ce416(_0x3023('0x6'),null);if(_0x3023('0xb')===_0x5d0ce8&&console['info']('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'===_0x5d0ce8)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x3ce416(_0x3023('0xa'),null);_0x3023('0x0')===_0x5d0ce8&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}[_0x3023('0x3')](){this['_licenseKeyCheckInterval']&&clearInterval(this[_0x3023('0x7')]);}}
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')]);}}

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

*/
const _0x1680=['fire','modelElement','model','get','documentOutline.headings','view','push','text','getFirstPosition','activeItemIndex','_getHeadingNames','_getActiveHeading','init','_headingNames','domToView','item','toModel','config','domConverter','findIndex','name','createElement','editing','document','_deriveHeadingElementsFromConversion','backward','change','pluginName','includes','level','getChild','indexOf','selection','afterInit','element','editor','DocumentOutlineUtils','length','_getOutlineDefinitions'];(function(_0x458650,_0x168099){const _0x3712c7=function(_0x2f1cc6){while(--_0x2f1cc6){_0x458650['push'](_0x458650['shift']());}};_0x3712c7(++_0x168099);}(_0x1680,0x188));const _0x3712=function(_0x458650,_0x168099){_0x458650=_0x458650-0x0;let _0x3712c7=_0x1680[_0x458650];return _0x3712c7;};import{Plugin as _0x46eea3}from'ckeditor5/src/core';import{debounce as _0x31881b}from'lodash-es';import{TreeWalker as _0xe0768d}from'ckeditor5/src/engine';import{getElementText as _0x51934c,getDefaultFeatureHeadingNames as _0x6cbd1c}from'./utils';import{diff as _0x188b97,diffToChanges as _0x56dcd1}from'ckeditor5/src/utils';export default class n extends _0x46eea3{constructor(){super(...arguments),this[_0x3712('0xb')]=[];}static get[_0x3712('0x19')](){return _0x3712('0x22');}[_0x3712('0xa')](){const _0x2fd0fe=this[_0x3712('0x21')];this['_headingNames']=this[_0x3712('0x8')]();let _0x382974=[];_0x2fd0fe[_0x3712('0x0')]['document']['on'](_0x3712('0x18'),_0x31881b(()=>{const _0x1fbd48=_0x382974;_0x382974=this[_0x3712('0x24')]();const _0x3f2e5a=_0x188b97(_0x1fbd48,_0x382974,(_0x52b04b,_0x5ba1be)=>_0x52b04b[_0x3712('0x1b')]===_0x5ba1be[_0x3712('0x1b')]&&_0x52b04b[_0x3712('0x5')]===_0x5ba1be[_0x3712('0x5')]&&_0x52b04b['modelElement']===_0x5ba1be[_0x3712('0x26')]),_0x29a2d7=_0x56dcd1(_0x3f2e5a,_0x382974),_0x29fda6=this[_0x3712('0x9')](),_0x22faf3=_0x382974[_0x3712('0x11')](_0x40f851=>_0x40f851[_0x3712('0x26')]===_0x29fda6);_0x29a2d7[_0x3712('0x23')]&&this[_0x3712('0x25')](_0x3712('0x18'),{'outlineDefinitions':_0x382974,'activeItemIndex':_0x22faf3,'outlineChanges':_0x29a2d7}),this[_0x3712('0x25')](_0x3712('0x7'),{'index':_0x22faf3});},0xfa,{'leading':!0x0,'trailing':!0x0}));}[_0x3712('0x1f')](){this[_0x3712('0xb')][_0x3712('0x23')]||this[_0x3712('0x16')]();}[_0x3712('0x24')](){const _0x385fbc=this[_0x3712('0x21')],_0x30c3a0=[],_0x3803aa=this['_headingNames'];for(const _0x33bdc8 of _0x385fbc['model']['document']['getRootNames']())_0x38facb(_0x385fbc[_0x3712('0x0')][_0x3712('0x15')]['getRoot'](_0x33bdc8));function _0x38facb(_0x3aea9e){for(const _0x22d4ae of _0x3aea9e['getChildren']())_0x22d4ae['is'](_0x3712('0x20'))&&(_0x3803aa[_0x3712('0x1a')](_0x22d4ae['name'])&&_0x30c3a0[_0x3712('0x4')]({'level':_0x3803aa[_0x3712('0x1d')](_0x22d4ae[_0x3712('0x12')])+0x1,'text':_0x51934c(_0x22d4ae),'modelElement':_0x22d4ae}),_0x38facb(_0x22d4ae));}return _0x30c3a0;}[_0x3712('0x9')](){const _0x31565b=this['editor']['model']['document'][_0x3712('0x1e')][_0x3712('0x6')](),_0x45d5e9=new _0xe0768d({'direction':_0x3712('0x17'),'startPosition':_0x31565b});for(const _0x56d49d of _0x45d5e9)if(_0x56d49d['item']['is'](_0x3712('0x20'))&&this[_0x3712('0xb')][_0x3712('0x1a')](_0x56d49d['item']['name']))return _0x56d49d[_0x3712('0xd')];}[_0x3712('0x8')](){const _0x55b892=this[_0x3712('0x21')][_0x3712('0xf')][_0x3712('0x1')](_0x3712('0x2'));return _0x55b892||_0x6cbd1c(this[_0x3712('0x21')]);}['_deriveHeadingElementsFromConversion'](){const _0xac1929=this[_0x3712('0x21')],_0x33056c=['h1','h2','h3','h4','h5','h6'],_0x2d6871=[];for(const _0x2b13f9 of _0x33056c){const _0x34deb6=_0xac1929[_0x3712('0x14')][_0x3712('0x3')][_0x3712('0x10')][_0x3712('0xc')](document[_0x3712('0x13')](_0x2b13f9)),_0x49a55e=_0xac1929['data'][_0x3712('0xe')](_0x34deb6)[_0x3712('0x1c')](0x0);(null==_0x49a55e?void 0x0:_0x49a55e['is'](_0x3712('0x20')))&&_0x2d6871[_0x3712('0x4')](_0x49a55e['name']);}this[_0x3712('0xb')]=_0x2d6871;}}
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;}}

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

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

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

*/
import{View as _0x10943c}from'ckeditor5/src/ui';import{scrollAncestorsToShowTarget as _0x3ab9c2}from'ckeditor5/src/utils';import _0xcd879 from'./documentoutlineitemview';export default class d extends _0x10943c{constructor(_0x4490b9,_0x457f17=!0x1,_0x4f26b2){super(_0x4490b9);const t=_0x4490b9['t'];this['showEmptyHeadingText']=_0x457f17,this['set']('activeItemIndex',-0x1),this['_documentOutlineContainer']=_0x4f26b2,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x46e371,_0x4f578a,_0xe01d4c,_0x3234b2)=>{this['_setActiveItem'](_0x3234b2,_0xe01d4c);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x4490b9['contentLanguageDirection'],'data-document-outline-empty-placeholder':t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0xfd4830){_0xfd4830['forEach'](_0x17e577=>{'insert'==_0x17e577['type']?this['_insertItem'](_0x17e577['index'],..._0x17e577['values']):'delete'==_0x17e577['type']&&this['_deleteItem'](_0x17e577['index'],_0x17e577['howMany']);});}['_setActiveItem'](_0x25ab79,_0x2b4230){if(-0x1!==_0x25ab79){const _0x424de1=this['items']['get'](_0x25ab79);_0x424de1&&(_0x424de1['isActive']=!0x1);}-0x1!==_0x2b4230&&(this['items']['get'](_0x2b4230)['isActive']=!0x0,this['_scrollToItem'](_0x2b4230));}['_insertItem'](_0x48db5d,..._0x4195a3){const _0x275a4e=_0x4195a3['map']((_0x3102b3,_0x42ad63)=>{const _0x3e93c8=new _0xcd879(this['locale'],this['showEmptyHeadingText']);return _0x3e93c8['text']=_0x3102b3['text'],_0x3e93c8['level']=_0x3102b3['level'],_0x48db5d+_0x42ad63===this['activeItemIndex']&&(_0x3e93c8['isActive']=!0x0),_0x3e93c8;});this['items']['addMany'](_0x275a4e,_0x48db5d);}['_deleteItem'](_0x389538,_0x203c96){do{this['items']['remove'](_0x389538);}while(--_0x203c96);}['_handleItemClick'](_0x5da82f){const _0x558135=this['items']['getIndex'](_0x5da82f['source']);this['fire']('itemSelected',_0x558135);}['_scrollToItem'](_0x308770){_0x3ab9c2(this['items']['get'](_0x308770)['element'],0x14,this['_documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}
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']();}}

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

*/
const _0x1eab=['htmlH5','push','has','plugins','GeneralHtmlSupport','get','data','htmlH1','paragraph','htmlH2','reduce','heading.options','htmlH6'];(function(_0x5387fe,_0x1eab38){const _0x141121=function(_0x4858a1){while(--_0x4858a1){_0x5387fe['push'](_0x5387fe['shift']());}};_0x141121(++_0x1eab38);}(_0x1eab,0x79));const _0x1411=function(_0x5387fe,_0x1eab38){_0x5387fe=_0x5387fe-0x0;let _0x141121=_0x1eab[_0x5387fe];return _0x141121;};import{Text as _0x5f57ff}from'ckeditor5/src/engine';export function getElementText(_0x6102fe){let _0x185618='';for(const _0x49875b of _0x6102fe['getChildren']())_0x49875b instanceof _0x5f57ff&&(_0x185618+=_0x49875b[_0x1411('0x2')]);return _0x185618;}export function getDefaultFeatureHeadingNames(_0x223950){const _0x333c72=_0x223950['config'][_0x1411('0x1')](_0x1411('0x7'));return _0x333c72?_0x333c72[_0x1411('0x6')]((_0x39f68d,_0xbc893d)=>(_0x1411('0x4')!==_0xbc893d['model']&&_0x39f68d[_0x1411('0xa')](_0xbc893d['model']),_0x39f68d),[]):_0x223950[_0x1411('0xc')][_0x1411('0xb')](_0x1411('0x0'))?[_0x1411('0x3'),_0x1411('0x5'),'htmlH3','htmlH4',_0x1411('0x9'),_0x1411('0x8')]:[];}
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')]:[];}

@@ -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 _0x36f34b 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':_0x36f34b};import'./augmentation';
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';

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

*/
var _0x3e3a=['TableOfContents','pluginName','requires'];(function(_0x7c07b6,_0x3e3aeb){var _0x18151c=function(_0x5e6b92){while(--_0x5e6b92){_0x7c07b6['push'](_0x7c07b6['shift']());}};_0x18151c(++_0x3e3aeb);}(_0x3e3a,0x84));var _0x1815=function(_0x7c07b6,_0x3e3aeb){_0x7c07b6=_0x7c07b6-0x0;var _0x18151c=_0x3e3a[_0x7c07b6];return _0x18151c;};import{Plugin as _0x597e4f}from'ckeditor5/src/core';import _0x30dbc5 from'./tableofcontents/tableofcontentsediting';import _0x304078 from'./tableofcontents/tableofcontentsui';export default class c extends _0x597e4f{static get[_0x1815('0x2')](){return[_0x30dbc5,_0x304078];}static get[_0x1815('0x1')](){return _0x1815('0x0');}}
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');}}

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

*/
const _0x59fc=['attribute:headingId:','mapper','paragraph','schema','editor','has','string','document','delete','_customUpcastHeadingsConversion','config','model','type','viewItem','consume','getAttribute','change','get','upcastDispatcher','insert','conversion','modelRange','removeAttribute','forEach','setAttribute','_customDataDowncastHeadingsConversion','isRegistered','afterInit','length','view','headingId','getContainedElement','registerPostFixer','item','extend','add','attributes','match','pluginName','consumable','_registerHeadingIdAttributePostfixer','low','downcast','remove','set','name','toViewElement','nodeAfter','hasAttribute'];(function(_0x106940,_0x59fc95){const _0x39488a=function(_0x17a644){while(--_0x17a644){_0x106940['push'](_0x106940['shift']());}};_0x39488a(++_0x59fc95);}(_0x59fc,0xa8));const _0x3948=function(_0x106940,_0x59fc95){_0x106940=_0x106940-0x0;let _0x39488a=_0x59fc[_0x106940];return _0x39488a;};import{Plugin as _0x36d011}from'ckeditor5/src/core';import{uid as _0x3187a3,priorities as _0x500007}from'ckeditor5/src/utils';export default class A extends _0x36d011{static get[_0x3948('0x11')](){return'HeadingId';}[_0x3948('0x6')](){const _0x55cc1d=this['editor'];if(_0x55cc1d[_0x3948('0x26')][_0x3948('0x2d')]('headingId.modelAttributeName'))return;(function(_0x43919a){const _0x57a6c1=new Map();if(_0x43919a)return _0x43919a[_0x3948('0x2')](_0x4c607c=>{_0x3948('0x1e')!==_0x4c607c[_0x3948('0x27')]&&_0x57a6c1['set'](_0x4c607c[_0x3948('0x8')],_0x4c607c[_0x3948('0x27')]);}),_0x57a6c1['get']('h1')||_0x57a6c1[_0x3948('0x17')]('h1','heading1'),_0x57a6c1;return _0x57a6c1;}(this['editor'][_0x3948('0x26')][_0x3948('0x2d')]('heading.options'))[_0x3948('0x2')]((_0x40aab7,_0x25152b)=>{this[_0x3948('0x25')](_0x25152b),this[_0x3948('0x4')](_0x40aab7),_0x55cc1d[_0x3948('0x27')][_0x3948('0x1f')][_0x3948('0x5')](_0x40aab7)&&_0x55cc1d['model']['schema'][_0x3948('0xd')](_0x40aab7,{'allowAttributes':'headingId'});}),this[_0x3948('0x13')]());}['_customUpcastHeadingsConversion'](_0x54e82d){this[_0x3948('0x20')]['data'][_0x3948('0x2e')]['on']('element:'+_0x54e82d,(_0x2ae2c2,_0x5dff81,_0x257f2e)=>{const {consumable:_0x5ee9c9,writer:_0x407b5e}=_0x257f2e,_0x552aef=_0x5dff81['viewItem'][_0x3948('0x2b')]('id'),_0x3b9e50=_0x5dff81[_0x3948('0x0')][_0x3948('0xa')]();if(!(_0x552aef&&_0x552aef[_0x3948('0x7')]||_0x3b9e50[_0x3948('0x1b')](_0x3948('0x9'))))return _0x5ee9c9[_0x3948('0x2a')](_0x5dff81[_0x3948('0x29')],{'attributes':['id']}),void _0x407b5e[_0x3948('0x3')]('headingId',_0x3187a3(),_0x3b9e50);_0x5ee9c9[_0x3948('0x2a')](_0x5dff81[_0x3948('0x29')],{'attributes':['id']})&&_0x407b5e['setAttribute'](_0x3948('0x9'),_0x552aef,_0x3b9e50);},{'priority':_0x500007[_0x3948('0x2d')](_0x3948('0x14'))+0.5});}[_0x3948('0x4')](_0xffcfa0){this['editor'][_0x3948('0x30')]['for'](_0x3948('0x15'))[_0x3948('0xe')](_0x2fd681=>_0x2fd681['on'](_0x3948('0x1c')+_0xffcfa0,(_0x5edb27,_0x5d9993,_0x88d326)=>{if(!_0x88d326[_0x3948('0x12')][_0x3948('0x2a')](_0x5d9993[_0x3948('0xc')],_0x5edb27[_0x3948('0x18')]))return;const _0x49d168=_0x5d9993[_0x3948('0xc')]['getAttribute']('headingId'),_0x184199=_0x88d326[_0x3948('0x1d')][_0x3948('0x19')](_0x5d9993['item']);_0x88d326['writer'][_0x3948('0x3')]('id',_0x49d168,_0x184199);}));}[_0x3948('0x13')](){const _0x4be0e3=this['editor'],_0x491b9b=new Set(),_0x5741cc=new Set();function _0x1d61cb(_0x4bda4a,_0x283792){const _0x1555f0=_0x3187a3();return _0x5741cc[_0x3948('0xe')](_0x1555f0),_0x4bda4a[_0x3948('0x3')]('headingId',_0x1555f0,_0x283792),_0x1555f0;}function _0x2d5253(_0x2b87f4,_0xea04fa){_0x2b87f4[_0x3948('0x1')](_0x3948('0x9'),_0xea04fa);}_0x4be0e3[_0x3948('0x27')]['document'][_0x3948('0xb')](_0x41806a=>{const _0x59b5d9=_0x4be0e3['model']['document']['differ']['getChanges']();let _0x4ccb3d=!0x1;for(const _0x4bea15 of _0x59b5d9)if(_0x3948('0x2f')==_0x4bea15['type']&&_0x4bea15[_0x3948('0x18')]){if(_0x4bea15[_0x3948('0x18')][_0x3948('0x10')](/heading\d/)){const _0x3cc956=_0x4bea15[_0x3948('0xf')]['get'](_0x3948('0x9'));_0x3948('0x22')==typeof _0x3cc956?_0x491b9b[_0x3948('0x21')](_0x3cc956)?(_0x1d61cb(_0x41806a,_0x4bea15['position'][_0x3948('0x1a')]),_0x4ccb3d=!0x0):_0x5741cc[_0x3948('0xe')](_0x3cc956):(_0x1d61cb(_0x41806a,_0x4bea15['position'][_0x3948('0x1a')]),_0x4ccb3d=!0x0);}else _0x3948('0x22')==typeof _0x4bea15[_0x3948('0xf')]['get'](_0x3948('0x9'))&&(_0x2d5253(_0x41806a,_0x4bea15['position'][_0x3948('0x1a')]),_0x4ccb3d=!0x0);}else{if(_0x3948('0x16')==_0x4bea15[_0x3948('0x28')]){const _0x4137d5=_0x4bea15[_0x3948('0xf')][_0x3948('0x2d')]('headingId');_0x3948('0x22')==typeof _0x4137d5&&_0x491b9b[_0x3948('0x24')](_0x4137d5);}}return _0x4ccb3d;}),_0x4be0e3[_0x3948('0x27')][_0x3948('0x23')]['on'](_0x3948('0x2c'),()=>{_0x5741cc[_0x3948('0x2')](_0x32fd3e=>_0x491b9b[_0x3948('0xe')](_0x32fd3e)),_0x5741cc['clear']();});}}
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')]();});}}

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

*/
const _0x3ac3=['refresh','createElement','document','tableOfContents','selection','getFirstPosition','execute','model','schema','editor','findAllowedParent','change','insertObject'];(function(_0x546e27,_0x3ac3c2){const _0x4d11d9=function(_0x3ea2d0){while(--_0x3ea2d0){_0x546e27['push'](_0x546e27['shift']());}};_0x4d11d9(++_0x3ac3c2);}(_0x3ac3,0x1c7));const _0x4d11=function(_0x546e27,_0x3ac3c2){_0x546e27=_0x546e27-0x0;let _0x4d11d9=_0x3ac3[_0x546e27];return _0x4d11d9;};import{Command as _0x34f367}from'ckeditor5/src/core';export default class O extends _0x34f367{[_0x4d11('0x6')](){this[_0x4d11('0x9')][_0x4d11('0x7')][_0x4d11('0xb')](_0x2c6ada=>{this[_0x4d11('0x9')]['model'][_0x4d11('0xc')](_0x2c6ada[_0x4d11('0x1')](_0x4d11('0x3')));});}[_0x4d11('0x0')](){const _0x2f5bed=this['editor']['model'],_0x1fc9e5=_0x2f5bed[_0x4d11('0x2')][_0x4d11('0x4')][_0x4d11('0x5')]();this['isEnabled']=null!==(_0x1fc9e5&&_0x2f5bed[_0x4d11('0x8')][_0x4d11('0xa')](_0x1fc9e5,_0x4d11('0x3')));}}
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')));}}

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

*/
import{ButtonView as _0x48cfaa}from'ckeditor5/src/ui';import{CKEditorError as _0x51e5a}from'ckeditor5/src/utils';import{Plugin as _0x2b950d}from'ckeditor5/src/core';import _0x1caa8d from'../../theme/icons/table-of-contents.svg';export default class s extends _0x2b950d{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x5ae718){super(_0x5ae718),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x962642=this['editor'],t=_0x962642['t'];_0x962642['ui']['componentFactory']['add']('tableOfContents',_0x27b271=>{const _0x5a6748=_0x962642['commands']['get']('insertTableOfContents'),_0x2b525e=new _0x48cfaa(_0x27b271);return _0x2b525e['set']({'label':t('Table\x20of\x20contents'),'icon':_0x1caa8d,'tooltip':!0x0}),_0x2b525e['bind']('isEnabled')['to'](_0x5a6748,'isEnabled'),this['listenTo'](_0x2b525e,'execute',()=>{_0x962642['execute']('insertTableOfContents'),_0x962642['editing']['view']['focus']();}),_0x2b525e;}),this['licenseKey']=_0x962642['config']['get']('licenseKey');const _0x24e0fc=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x362f17;for(const _0x5edf21 in _0x24e0fc){const _0x25ce9e=_0x5edf21,_0x92219f=_0x24e0fc[_0x25ce9e];if('tableOfContentsLicenseKeyTrial'===_0x92219f||'tableOfContentsLicenseKeyInvalid'===_0x92219f||'tableOfContentsLicenseKeyValid'===_0x92219f||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x92219f){delete _0x24e0fc[_0x25ce9e],_0x362f17=_0x92219f;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x362f17)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x51e5a('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x362f17&&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'===_0x362f17)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x51e5a('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x362f17&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}
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']);}}

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