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-20230808.0 to 0.0.0-nightly-20230809.0

6

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

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

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

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

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

*/
const _0x5a63=['pluginName','document-outline-trial-license-key-reached-limit-changes','documentOutlineLicenseKeyValid','requires','documentOutlineLicenseKeyTrial','config','documentOutlineLicenseKeyInvalid','get','document-outline-invalid-license-key','destroy','DocumentOutline','init','documentOutlineLicenseKeyTrialLimit:operations','_licenseKeyCheckInterval','licenseKey'];(function(_0x23dd6e,_0x5a6326){const _0x1cb2e7=function(_0x468020){while(--_0x468020){_0x23dd6e['push'](_0x23dd6e['shift']());}};_0x1cb2e7(++_0x5a6326);}(_0x5a63,0xfa));const _0x1cb2=function(_0x23dd6e,_0x5a6326){_0x23dd6e=_0x23dd6e-0x0;let _0x1cb2e7=_0x5a63[_0x23dd6e];return _0x1cb2e7;};import{Plugin as _0x511a99}from'ckeditor5/src/core';import{CKEditorError as _0x1d9b9b}from'ckeditor5/src/utils';import _0x5ee4e9 from'./documentoutline/documentoutlineutils';import _0xf41445 from'./documentoutline/documentoutlineui';export default class l extends _0x511a99{static get[_0x1cb2('0x8')](){return[_0x5ee4e9,_0xf41445];}static get[_0x1cb2('0x5')](){return _0x1cb2('0x0');}constructor(_0x1dd9f5){super(_0x1dd9f5),this['_licenseKeyCheckInterval']=null;}[_0x1cb2('0x1')](){const _0x513703=this['editor'];this[_0x1cb2('0x4')]=_0x513703[_0x1cb2('0xa')][_0x1cb2('0xc')](_0x1cb2('0x4'));const _0x1896d1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x282a1f;for(const _0x28204f in _0x1896d1){const _0x463f0e=_0x28204f,_0x570566=_0x1896d1[_0x463f0e];if(_0x1cb2('0x9')===_0x570566||_0x1cb2('0xb')===_0x570566||'documentOutlineLicenseKeyValid'===_0x570566||'documentOutlineLicenseKeyTrialLimit:operations'===_0x570566){delete _0x1896d1[_0x463f0e],_0x282a1f=_0x570566;break;}}if('documentOutlineLicenseKeyInvalid'===_0x282a1f)throw clearInterval(this[_0x1cb2('0x3')]),new _0x1d9b9b(_0x1cb2('0xd'),null);if('documentOutlineLicenseKeyTrial'===_0x282a1f&&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.'),_0x1cb2('0x2')===_0x282a1f)throw clearInterval(this[_0x1cb2('0x3')]),new _0x1d9b9b(_0x1cb2('0x6'),null);_0x1cb2('0x7')===_0x282a1f&&clearInterval(this[_0x1cb2('0x3')]);},0x3e8);}[_0x1cb2('0xe')](){this['_licenseKeyCheckInterval']&&clearInterval(this[_0x1cb2('0x3')]);}}
const _0x2f60=['editor','_licenseKeyCheckInterval','document-outline-trial-license-key-reached-limit-changes','licenseKey','get','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','DocumentOutline','document-outline-invalid-license-key','destroy','requires','documentOutlineLicenseKeyTrialLimit:operations','pluginName','init','documentOutlineLicenseKeyTrial','documentOutlineLicenseKeyInvalid'];(function(_0x27c11c,_0x2f6046){const _0x5eb242=function(_0x52ff7f){while(--_0x52ff7f){_0x27c11c['push'](_0x27c11c['shift']());}};_0x5eb242(++_0x2f6046);}(_0x2f60,0x10b));const _0x5eb2=function(_0x27c11c,_0x2f6046){_0x27c11c=_0x27c11c-0x0;let _0x5eb242=_0x2f60[_0x27c11c];return _0x5eb242;};import{Plugin as _0x56c951}from'ckeditor5/src/core';import{CKEditorError as _0x23da3d}from'ckeditor5/src/utils';import _0x3363ef from'./documentoutline/documentoutlineutils';import _0x5b6689 from'./documentoutline/documentoutlineui';export default class l extends _0x56c951{static get[_0x5eb2('0xf')](){return[_0x3363ef,_0x5b6689];}static get[_0x5eb2('0x1')](){return _0x5eb2('0xc');}constructor(_0x1a7c10){super(_0x1a7c10),this['_licenseKeyCheckInterval']=null;}[_0x5eb2('0x2')](){const _0x1cdb70=this[_0x5eb2('0x5')];this[_0x5eb2('0x8')]=_0x1cdb70['config'][_0x5eb2('0x9')](_0x5eb2('0x8'));const _0x50bb96=this[_0x5eb2('0x5')];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5a22d5;for(const _0x457cb4 in _0x50bb96){const _0x16b001=_0x457cb4,_0x1abe3c=_0x50bb96[_0x16b001];if(_0x5eb2('0x3')===_0x1abe3c||'documentOutlineLicenseKeyInvalid'===_0x1abe3c||_0x5eb2('0xb')===_0x1abe3c||_0x5eb2('0x0')===_0x1abe3c){delete _0x50bb96[_0x16b001],_0x5a22d5=_0x1abe3c;break;}}if(_0x5eb2('0x4')===_0x5a22d5)throw clearInterval(this[_0x5eb2('0x6')]),new _0x23da3d(_0x5eb2('0xd'),null);if(_0x5eb2('0x3')===_0x5a22d5&&console['info'](_0x5eb2('0xa')),_0x5eb2('0x0')===_0x5a22d5)throw clearInterval(this[_0x5eb2('0x6')]),new _0x23da3d(_0x5eb2('0x7'),null);_0x5eb2('0xb')===_0x5a22d5&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}[_0x5eb2('0xe')](){this[_0x5eb2('0x6')]&&clearInterval(this['_licenseKeyCheckInterval']);}}

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

*/
const _0x3f5e=['_getHeadingNames','_getOutlineDefinitions','_getActiveHeading','document','fire','name','level','get','activeItemIndex','toModel','model','findIndex','element','pluginName','indexOf','includes','editing','backward','text','selection','editor','item','documentOutline.headings','change','_headingNames','domConverter','getRootNames','getChild','createElement','length','push','domToView','_deriveHeadingElementsFromConversion','getRoot','modelElement'];(function(_0x1f4157,_0x3f5e74){const _0x56d6f6=function(_0x30dfb3){while(--_0x30dfb3){_0x1f4157['push'](_0x1f4157['shift']());}};_0x56d6f6(++_0x3f5e74);}(_0x3f5e,0xe7));const _0x56d6=function(_0x1f4157,_0x3f5e74){_0x1f4157=_0x1f4157-0x0;let _0x56d6f6=_0x3f5e[_0x1f4157];return _0x56d6f6;};import{Plugin as _0x4c5287}from'ckeditor5/src/core';import{debounce as _0x2d80fb}from'lodash-es';import{TreeWalker as _0x560aef}from'ckeditor5/src/engine';import{getElementText as _0x5e4fea,getDefaultFeatureHeadingNames as _0x488f83}from'./utils';import{diff as _0xe756c,diffToChanges as _0x3d6a8f}from'ckeditor5/src/utils';export default class n extends _0x4c5287{constructor(){super(...arguments),this[_0x56d6('0x3')]=[];}static get[_0x56d6('0x1b')](){return'DocumentOutlineUtils';}['init'](){const _0x23a016=this['editor'];this[_0x56d6('0x3')]=this[_0x56d6('0xe')]();let _0x571e06=[];_0x23a016[_0x56d6('0x18')][_0x56d6('0x11')]['on']('change',_0x2d80fb(()=>{const _0x188bd1=_0x571e06;_0x571e06=this[_0x56d6('0xf')]();const _0x422db9=_0xe756c(_0x188bd1,_0x571e06,(_0x12518b,_0x3ff5f4)=>_0x12518b[_0x56d6('0x14')]===_0x3ff5f4[_0x56d6('0x14')]&&_0x12518b[_0x56d6('0x20')]===_0x3ff5f4[_0x56d6('0x20')]&&_0x12518b[_0x56d6('0xd')]===_0x3ff5f4['modelElement']),_0xf031bd=_0x3d6a8f(_0x422db9,_0x571e06),_0x1bccbc=this[_0x56d6('0x10')](),_0x240ae5=_0x571e06[_0x56d6('0x19')](_0x19ee9a=>_0x19ee9a[_0x56d6('0xd')]===_0x1bccbc);_0xf031bd['length']&&this['fire'](_0x56d6('0x2'),{'outlineDefinitions':_0x571e06,'activeItemIndex':_0x240ae5,'outlineChanges':_0xf031bd}),this[_0x56d6('0x12')](_0x56d6('0x16'),{'index':_0x240ae5});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames'][_0x56d6('0x8')]||this[_0x56d6('0xb')]();}[_0x56d6('0xf')](){const _0x161028=this[_0x56d6('0x22')],_0x5c3ee7=[],_0x483a8f=this['_headingNames'];for(const _0x2d85f2 of _0x161028[_0x56d6('0x18')][_0x56d6('0x11')][_0x56d6('0x5')]())_0x380789(_0x161028[_0x56d6('0x18')][_0x56d6('0x11')][_0x56d6('0xc')](_0x2d85f2));function _0x380789(_0x5c0e20){for(const _0x3d65dc of _0x5c0e20['getChildren']())_0x3d65dc['is'](_0x56d6('0x1a'))&&(_0x483a8f[_0x56d6('0x1d')](_0x3d65dc['name'])&&_0x5c3ee7[_0x56d6('0x9')]({'level':_0x483a8f[_0x56d6('0x1c')](_0x3d65dc[_0x56d6('0x13')])+0x1,'text':_0x5e4fea(_0x3d65dc),'modelElement':_0x3d65dc}),_0x380789(_0x3d65dc));}return _0x5c3ee7;}[_0x56d6('0x10')](){const _0x440588=this[_0x56d6('0x22')]['model']['document'][_0x56d6('0x21')]['getFirstPosition'](),_0x5b25c6=new _0x560aef({'direction':_0x56d6('0x1f'),'startPosition':_0x440588});for(const _0x4de780 of _0x5b25c6)if(_0x4de780['item']['is'](_0x56d6('0x1a'))&&this[_0x56d6('0x3')]['includes'](_0x4de780[_0x56d6('0x0')][_0x56d6('0x13')]))return _0x4de780[_0x56d6('0x0')];}[_0x56d6('0xe')](){const _0x1a1e25=this[_0x56d6('0x22')]['config'][_0x56d6('0x15')](_0x56d6('0x1'));return _0x1a1e25||_0x488f83(this[_0x56d6('0x22')]);}['_deriveHeadingElementsFromConversion'](){const _0x391430=this[_0x56d6('0x22')],_0x15b5b7=['h1','h2','h3','h4','h5','h6'],_0x5c22d5=[];for(const _0x1d66d7 of _0x15b5b7){const _0x34eaa5=_0x391430[_0x56d6('0x1e')]['view'][_0x56d6('0x4')][_0x56d6('0xa')](document[_0x56d6('0x7')](_0x1d66d7)),_0x2090c9=_0x391430['data'][_0x56d6('0x17')](_0x34eaa5)[_0x56d6('0x6')](0x0);(null==_0x2090c9?void 0x0:_0x2090c9['is']('element'))&&_0x5c22d5[_0x56d6('0x9')](_0x2090c9[_0x56d6('0x13')]);}this[_0x56d6('0x3')]=_0x5c22d5;}}
const _0x2d69=['_deriveHeadingElementsFromConversion','activeItemIndex','domConverter','push','length','_getHeadingNames','toModel','getRootNames','name','includes','fire','_headingNames','element','view','editing','_getOutlineDefinitions','text','getChildren','model','editor','get','DocumentOutlineUtils','item','indexOf','change','getChild','createElement','modelElement','domToView','document'];(function(_0x57a6d9,_0x2d69a2){const _0x59a069=function(_0x55eba0){while(--_0x55eba0){_0x57a6d9['push'](_0x57a6d9['shift']());}};_0x59a069(++_0x2d69a2);}(_0x2d69,0x1d4));const _0x59a0=function(_0x57a6d9,_0x2d69a2){_0x57a6d9=_0x57a6d9-0x0;let _0x59a069=_0x2d69[_0x57a6d9];return _0x59a069;};import{Plugin as _0xdb05bf}from'ckeditor5/src/core';import{debounce as _0x1ed899}from'lodash-es';import{TreeWalker as _0xad1c35}from'ckeditor5/src/engine';import{getElementText as _0x426d45,getDefaultFeatureHeadingNames as _0x12426b}from'./utils';import{diff as _0x2bb571,diffToChanges as _0x3e5f20}from'ckeditor5/src/utils';export default class n extends _0xdb05bf{constructor(){super(...arguments),this['_headingNames']=[];}static get['pluginName'](){return _0x59a0('0x3');}['init'](){const _0x404c35=this['editor'];this['_headingNames']=this[_0x59a0('0x11')]();let _0x4afbb6=[];_0x404c35[_0x59a0('0x0')][_0x59a0('0xb')]['on']('change',_0x1ed899(()=>{const _0x19b5a9=_0x4afbb6;_0x4afbb6=this[_0x59a0('0x1b')]();const _0x1cd5a9=_0x2bb571(_0x19b5a9,_0x4afbb6,(_0x4ca9c6,_0x597ee6)=>_0x4ca9c6['level']===_0x597ee6['level']&&_0x4ca9c6[_0x59a0('0x1c')]===_0x597ee6['text']&&_0x4ca9c6[_0x59a0('0x9')]===_0x597ee6[_0x59a0('0x9')]),_0x44d447=_0x3e5f20(_0x1cd5a9,_0x4afbb6),_0x1d1aea=this['_getActiveHeading'](),_0x234662=_0x4afbb6['findIndex'](_0x90a4d4=>_0x90a4d4[_0x59a0('0x9')]===_0x1d1aea);_0x44d447[_0x59a0('0x10')]&&this[_0x59a0('0x16')](_0x59a0('0x6'),{'outlineDefinitions':_0x4afbb6,'activeItemIndex':_0x234662,'outlineChanges':_0x44d447}),this[_0x59a0('0x16')](_0x59a0('0xd'),{'index':_0x234662});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this[_0x59a0('0xc')]();}[_0x59a0('0x1b')](){const _0x3efdd7=this['editor'],_0x271e1e=[],_0x45a417=this['_headingNames'];for(const _0x2d8d0a of _0x3efdd7['model'][_0x59a0('0xb')][_0x59a0('0x13')]())_0x1ac056(_0x3efdd7[_0x59a0('0x0')]['document']['getRoot'](_0x2d8d0a));function _0x1ac056(_0x3178af){for(const _0x36dff3 of _0x3178af[_0x59a0('0x1d')]())_0x36dff3['is'](_0x59a0('0x18'))&&(_0x45a417[_0x59a0('0x15')](_0x36dff3[_0x59a0('0x14')])&&_0x271e1e[_0x59a0('0xf')]({'level':_0x45a417[_0x59a0('0x5')](_0x36dff3[_0x59a0('0x14')])+0x1,'text':_0x426d45(_0x36dff3),'modelElement':_0x36dff3}),_0x1ac056(_0x36dff3));}return _0x271e1e;}['_getActiveHeading'](){const _0x52efd2=this[_0x59a0('0x1')][_0x59a0('0x0')][_0x59a0('0xb')]['selection']['getFirstPosition'](),_0x4f2b86=new _0xad1c35({'direction':'backward','startPosition':_0x52efd2});for(const _0x25b2ba of _0x4f2b86)if(_0x25b2ba['item']['is']('element')&&this[_0x59a0('0x17')][_0x59a0('0x15')](_0x25b2ba[_0x59a0('0x4')][_0x59a0('0x14')]))return _0x25b2ba[_0x59a0('0x4')];}[_0x59a0('0x11')](){const _0x29ffa4=this[_0x59a0('0x1')]['config'][_0x59a0('0x2')]('documentOutline.headings');return _0x29ffa4||_0x12426b(this[_0x59a0('0x1')]);}['_deriveHeadingElementsFromConversion'](){const _0x34ab8a=this[_0x59a0('0x1')],_0x2b7bcb=['h1','h2','h3','h4','h5','h6'],_0x449778=[];for(const _0x34a578 of _0x2b7bcb){const _0xa94729=_0x34ab8a[_0x59a0('0x1a')][_0x59a0('0x19')][_0x59a0('0xe')][_0x59a0('0xa')](document[_0x59a0('0x8')](_0x34a578)),_0x44260a=_0x34ab8a['data'][_0x59a0('0x12')](_0xa94729)[_0x59a0('0x7')](0x0);(null==_0x44260a?void 0x0:_0x44260a['is'](_0x59a0('0x18')))&&_0x449778['push'](_0x44260a[_0x59a0('0x14')]);}this[_0x59a0('0x17')]=_0x449778;}}

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

*/
import{View as _0x8a183d}from'ckeditor5/src/ui';export default class $ extends _0x8a183d{constructor(_0x1fa4a9,_0x4a1c89=!0x1){super(_0x1fa4a9);const t=_0x1fa4a9['t'],_0x37440b=this['bindTemplate'],_0x305c80=_0x4a1c89?'['+t('Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x5f0f93=>!_0x5f0f93),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x37440b['to']('level',_0x459e83=>'ck-document-outline__item_level-'+_0x459e83),_0x37440b['if']('isActive','ck-document-outline__item_active'),_0x37440b['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x37440b['to']('text')},'children':[{'text':_0x37440b['to']('text',_0x22040b=>_0x22040b||_0x305c80)}],'on':{'click':_0x37440b['to']('click')}});}}
import{View as _0x2d75a9}from'ckeditor5/src/ui';export default class $ extends _0x2d75a9{constructor(_0x32a181,_0x37baa5=!0x1){super(_0x32a181);const t=_0x32a181['t'],_0x36e6ad=this['bindTemplate'],_0xdf58c7=_0x37baa5?'['+t('Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x1bd587=>!_0x1bd587),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x36e6ad['to']('level',_0x224ecb=>'ck-document-outline__item_level-'+_0x224ecb),_0x36e6ad['if']('isActive','ck-document-outline__item_active'),_0x36e6ad['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x36e6ad['to']('text')},'children':[{'text':_0x36e6ad['to']('text',_0x3e6d3e=>_0x3e6d3e||_0xdf58c7)}],'on':{'click':_0x36e6ad['to']('click')}});}}

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

*/
import{View as _0x18835e}from'ckeditor5/src/ui';import{scrollAncestorsToShowTarget as _0x511290}from'ckeditor5/src/utils';import _0x55509c from'./documentoutlineitemview';export default class d extends _0x18835e{constructor(_0x59b15d,_0x5473fd=!0x1,_0x845d5){super(_0x59b15d);const t=_0x59b15d['t'];this['showEmptyHeadingText']=_0x5473fd,this['set']('activeItemIndex',-0x1),this['_documentOutlineContainer']=_0x845d5,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x3e1dd7,_0xdd249b,_0x58382b,_0x2f7f08)=>{this['_setActiveItem'](_0x2f7f08,_0x58382b);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x59b15d['contentLanguageDirection'],'data-document-outline-empty-placeholder':t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x18711a){_0x18711a['forEach'](_0x28b051=>{'insert'==_0x28b051['type']?this['_insertItem'](_0x28b051['index'],..._0x28b051['values']):'delete'==_0x28b051['type']&&this['_deleteItem'](_0x28b051['index'],_0x28b051['howMany']);});}['_setActiveItem'](_0x49794b,_0x5f2806){if(-0x1!==_0x49794b){const _0x1933fa=this['items']['get'](_0x49794b);_0x1933fa&&(_0x1933fa['isActive']=!0x1);}-0x1!==_0x5f2806&&(this['items']['get'](_0x5f2806)['isActive']=!0x0,this['_scrollToItem'](_0x5f2806));}['_insertItem'](_0x25d41f,..._0x51be6f){const _0x13c5e0=_0x51be6f['map']((_0x121b5c,_0x3ecc58)=>{const _0x35734a=new _0x55509c(this['locale'],this['showEmptyHeadingText']);return _0x35734a['text']=_0x121b5c['text'],_0x35734a['level']=_0x121b5c['level'],_0x25d41f+_0x3ecc58===this['activeItemIndex']&&(_0x35734a['isActive']=!0x0),_0x35734a;});this['items']['addMany'](_0x13c5e0,_0x25d41f);}['_deleteItem'](_0x35e9ae,_0x4560c9){do{this['items']['remove'](_0x35e9ae);}while(--_0x4560c9);}['_handleItemClick'](_0x50e0c3){const _0x3ada56=this['items']['getIndex'](_0x50e0c3['source']);this['fire']('itemSelected',_0x3ada56);}['_scrollToItem'](_0x9fd3c6){_0x511290(this['items']['get'](_0x9fd3c6)['element'],0x14,this['_documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}
import{View as _0x1c613b}from'ckeditor5/src/ui';import{scrollAncestorsToShowTarget as _0x31967c}from'ckeditor5/src/utils';import _0x46fb14 from'./documentoutlineitemview';export default class d extends _0x1c613b{constructor(_0x52daa0,_0x5dc1c7=!0x1,_0x5ef95a){super(_0x52daa0);const t=_0x52daa0['t'];this['showEmptyHeadingText']=_0x5dc1c7,this['set']('activeItemIndex',-0x1),this['_documentOutlineContainer']=_0x5ef95a,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x28fbac,_0x2045f2,_0x4260f2,_0x5416df)=>{this['_setActiveItem'](_0x5416df,_0x4260f2);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x52daa0['contentLanguageDirection'],'data-document-outline-empty-placeholder':t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x309743){_0x309743['forEach'](_0xafff92=>{'insert'==_0xafff92['type']?this['_insertItem'](_0xafff92['index'],..._0xafff92['values']):'delete'==_0xafff92['type']&&this['_deleteItem'](_0xafff92['index'],_0xafff92['howMany']);});}['_setActiveItem'](_0x5ecebf,_0x2f59ac){if(-0x1!==_0x5ecebf){const _0x3f6303=this['items']['get'](_0x5ecebf);_0x3f6303&&(_0x3f6303['isActive']=!0x1);}-0x1!==_0x2f59ac&&(this['items']['get'](_0x2f59ac)['isActive']=!0x0,this['_scrollToItem'](_0x2f59ac));}['_insertItem'](_0x24a4b2,..._0x16914c){const _0x3851f1=_0x16914c['map']((_0x1833eb,_0x38e2e5)=>{const _0x39f3a7=new _0x46fb14(this['locale'],this['showEmptyHeadingText']);return _0x39f3a7['text']=_0x1833eb['text'],_0x39f3a7['level']=_0x1833eb['level'],_0x24a4b2+_0x38e2e5===this['activeItemIndex']&&(_0x39f3a7['isActive']=!0x0),_0x39f3a7;});this['items']['addMany'](_0x3851f1,_0x24a4b2);}['_deleteItem'](_0x18f5c5,_0x3a2f17){do{this['items']['remove'](_0x18f5c5);}while(--_0x3a2f17);}['_handleItemClick'](_0x252b65){const _0x4ffbee=this['items']['getIndex'](_0x252b65['source']);this['fire']('itemSelected',_0x4ffbee);}['_scrollToItem'](_0x5a0ed2){_0x31967c(this['items']['get'](_0x5a0ed2)['element'],0x14,this['_documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}

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

*/
const _0x215b=['plugins','get','data','reduce','htmlH6','htmlH1','model','GeneralHtmlSupport','htmlH5','paragraph','config','htmlH3'];(function(_0x168806,_0x215bba){const _0x1c0a41=function(_0x33336b){while(--_0x33336b){_0x168806['push'](_0x168806['shift']());}};_0x1c0a41(++_0x215bba);}(_0x215b,0xc2));const _0x1c0a=function(_0x168806,_0x215bba){_0x168806=_0x168806-0x0;let _0x1c0a41=_0x215b[_0x168806];return _0x1c0a41;};import{Text as _0x5ca676}from'ckeditor5/src/engine';export function getElementText(_0x2dee34){let _0x4ba237='';for(const _0x6b9aa8 of _0x2dee34['getChildren']())_0x6b9aa8 instanceof _0x5ca676&&(_0x4ba237+=_0x6b9aa8[_0x1c0a('0x0')]);return _0x4ba237;}export function getDefaultFeatureHeadingNames(_0x3ca02a){const _0x5a3079=_0x3ca02a[_0x1c0a('0x8')][_0x1c0a('0xb')]('heading.options');return _0x5a3079?_0x5a3079[_0x1c0a('0x1')]((_0x5d1641,_0xedeabe)=>(_0x1c0a('0x7')!==_0xedeabe[_0x1c0a('0x4')]&&_0x5d1641['push'](_0xedeabe[_0x1c0a('0x4')]),_0x5d1641),[]):_0x3ca02a[_0x1c0a('0xa')]['has'](_0x1c0a('0x5'))?[_0x1c0a('0x3'),'htmlH2',_0x1c0a('0x9'),'htmlH4',_0x1c0a('0x6'),_0x1c0a('0x2')]:[];}
const _0x59ed=['htmlH1','htmlH3','model','htmlH4','paragraph','htmlH2','data','GeneralHtmlSupport','htmlH6','get','push','config','heading.options','reduce','plugins'];(function(_0x195185,_0x59edcd){const _0x28fffd=function(_0x48e939){while(--_0x48e939){_0x195185['push'](_0x195185['shift']());}};_0x28fffd(++_0x59edcd);}(_0x59ed,0xce));const _0x28ff=function(_0x195185,_0x59edcd){_0x195185=_0x195185-0x0;let _0x28fffd=_0x59ed[_0x195185];return _0x28fffd;};import{Text as _0x431a41}from'ckeditor5/src/engine';export function getElementText(_0x8eeba2){let _0x3ecf27='';for(const _0x5bd603 of _0x8eeba2['getChildren']())_0x5bd603 instanceof _0x431a41&&(_0x3ecf27+=_0x5bd603[_0x28ff('0xa')]);return _0x3ecf27;}export function getDefaultFeatureHeadingNames(_0x5473f5){const _0x321ced=_0x5473f5[_0x28ff('0x0')][_0x28ff('0xd')](_0x28ff('0x1'));return _0x321ced?_0x321ced[_0x28ff('0x2')]((_0x15c3a2,_0x5cb7ec)=>(_0x28ff('0x8')!==_0x5cb7ec[_0x28ff('0x6')]&&_0x15c3a2[_0x28ff('0xe')](_0x5cb7ec[_0x28ff('0x6')]),_0x15c3a2),[]):_0x5473f5[_0x28ff('0x3')]['has'](_0x28ff('0xb'))?[_0x28ff('0x4'),_0x28ff('0x9'),_0x28ff('0x5'),_0x28ff('0x7'),'htmlH5',_0x28ff('0xc')]:[];}

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

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

*/
var _0x49ee=['TableOfContents','requires','pluginName'];(function(_0x580b07,_0x49eee9){var _0x6c86d5=function(_0x5c6bd4){while(--_0x5c6bd4){_0x580b07['push'](_0x580b07['shift']());}};_0x6c86d5(++_0x49eee9);}(_0x49ee,0x1d6));var _0x6c86=function(_0x580b07,_0x49eee9){_0x580b07=_0x580b07-0x0;var _0x6c86d5=_0x49ee[_0x580b07];return _0x6c86d5;};import{Plugin as _0x11bb1c}from'ckeditor5/src/core';import _0x1796b4 from'./tableofcontents/tableofcontentsediting';import _0x574aa9 from'./tableofcontents/tableofcontentsui';export default class c extends _0x11bb1c{static get[_0x6c86('0x2')](){return[_0x1796b4,_0x574aa9];}static get[_0x6c86('0x0')](){return _0x6c86('0x1');}}
var _0x4c5e=['requires','pluginName','TableOfContents'];(function(_0x2b43cb,_0x4c5e99){var _0x34444a=function(_0x2b3eb1){while(--_0x2b3eb1){_0x2b43cb['push'](_0x2b43cb['shift']());}};_0x34444a(++_0x4c5e99);}(_0x4c5e,0x119));var _0x3444=function(_0x2b43cb,_0x4c5e99){_0x2b43cb=_0x2b43cb-0x0;var _0x34444a=_0x4c5e[_0x2b43cb];return _0x34444a;};import{Plugin as _0xbad756}from'ckeditor5/src/core';import _0x1f57b9 from'./tableofcontents/tableofcontentsediting';import _0x179b23 from'./tableofcontents/tableofcontentsui';export default class c extends _0xbad756{static get[_0x3444('0x1')](){return[_0x1f57b9,_0x179b23];}static get[_0x3444('0x2')](){return _0x3444('0x0');}}

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

*/
const _0x14c5=['document','has','length','modelRange','isRegistered','downcast','differ','item','_customUpcastHeadingsConversion','data','removeAttribute','nodeAfter','view','headingId.modelAttributeName','setAttribute','consume','heading1','remove','HeadingId','headingId','_registerHeadingIdAttributePostfixer','add','heading.options','set','schema','attribute:headingId:','change','getContainedElement','string','model','delete','consumable','writer','attributes','extend','editor','type','toViewElement','getAttribute','pluginName','conversion','afterInit','for','mapper','config','viewItem','registerPostFixer','name','_customDataDowncastHeadingsConversion','upcastDispatcher','low','forEach','get','element:','position','getChanges','insert','paragraph'];(function(_0x2de462,_0x14c5b4){const _0x229d66=function(_0x3f60b8){while(--_0x3f60b8){_0x2de462['push'](_0x2de462['shift']());}};_0x229d66(++_0x14c5b4);}(_0x14c5,0x124));const _0x229d=function(_0x2de462,_0x14c5b4){_0x2de462=_0x2de462-0x0;let _0x229d66=_0x14c5[_0x2de462];return _0x229d66;};import{Plugin as _0x613d13}from'ckeditor5/src/core';import{uid as _0xb3e8d5,priorities as _0x51a51b}from'ckeditor5/src/utils';export default class A extends _0x613d13{static get[_0x229d('0x25')](){return _0x229d('0x10');}[_0x229d('0x27')](){const _0x24099d=this[_0x229d('0x21')];if(_0x24099d[_0x229d('0x2a')][_0x229d('0x32')](_0x229d('0xb')))return;(function(_0x3da966){const _0x54b189=new Map();if(_0x3da966)return _0x3da966[_0x229d('0x31')](_0x34cbfe=>{_0x229d('0x37')!==_0x34cbfe[_0x229d('0x1b')]&&_0x54b189[_0x229d('0x15')](_0x34cbfe[_0x229d('0xa')],_0x34cbfe['model']);}),_0x54b189[_0x229d('0x32')]('h1')||_0x54b189[_0x229d('0x15')]('h1',_0x229d('0xe')),_0x54b189;return _0x54b189;}(this[_0x229d('0x21')][_0x229d('0x2a')]['get'](_0x229d('0x14')))[_0x229d('0x31')]((_0x51fbd0,_0x49eefb)=>{this[_0x229d('0x6')](_0x49eefb),this[_0x229d('0x2e')](_0x51fbd0),_0x24099d[_0x229d('0x1b')][_0x229d('0x16')][_0x229d('0x2')](_0x51fbd0)&&_0x24099d[_0x229d('0x1b')][_0x229d('0x16')][_0x229d('0x20')](_0x51fbd0,{'allowAttributes':_0x229d('0x11')});}),this[_0x229d('0x12')]());}[_0x229d('0x6')](_0x33ed18){this[_0x229d('0x21')][_0x229d('0x7')][_0x229d('0x2f')]['on'](_0x229d('0x33')+_0x33ed18,(_0x23b393,_0xf5b7cf,_0x27f3c9)=>{const {consumable:_0x371bd6,writer:_0x3f9bb8}=_0x27f3c9,_0x43ebbf=_0xf5b7cf[_0x229d('0x2b')][_0x229d('0x24')]('id'),_0x27f5e4=_0xf5b7cf[_0x229d('0x1')][_0x229d('0x19')]();if(!(_0x43ebbf&&_0x43ebbf[_0x229d('0x0')]||_0x27f5e4['hasAttribute']('headingId')))return _0x371bd6['consume'](_0xf5b7cf['viewItem'],{'attributes':['id']}),void _0x3f9bb8[_0x229d('0xc')](_0x229d('0x11'),_0xb3e8d5(),_0x27f5e4);_0x371bd6[_0x229d('0xd')](_0xf5b7cf[_0x229d('0x2b')],{'attributes':['id']})&&_0x3f9bb8[_0x229d('0xc')](_0x229d('0x11'),_0x43ebbf,_0x27f5e4);},{'priority':_0x51a51b['get'](_0x229d('0x30'))+0.5});}['_customDataDowncastHeadingsConversion'](_0x306e61){this[_0x229d('0x21')][_0x229d('0x26')][_0x229d('0x28')](_0x229d('0x3'))[_0x229d('0x13')](_0xc18b22=>_0xc18b22['on'](_0x229d('0x17')+_0x306e61,(_0x59cf47,_0x46bf0b,_0x41eee9)=>{if(!_0x41eee9[_0x229d('0x1d')][_0x229d('0xd')](_0x46bf0b[_0x229d('0x5')],_0x59cf47[_0x229d('0x2d')]))return;const _0xfd3694=_0x46bf0b[_0x229d('0x5')][_0x229d('0x24')](_0x229d('0x11')),_0xa8b64e=_0x41eee9[_0x229d('0x29')][_0x229d('0x23')](_0x46bf0b[_0x229d('0x5')]);_0x41eee9[_0x229d('0x1e')][_0x229d('0xc')]('id',_0xfd3694,_0xa8b64e);}));}[_0x229d('0x12')](){const _0x4ac4e7=this['editor'],_0x252dda=new Set(),_0x49b8ff=new Set();function _0x5de704(_0x5b0cfd,_0x4b06b1){const _0x35d315=_0xb3e8d5();return _0x49b8ff['add'](_0x35d315),_0x5b0cfd[_0x229d('0xc')](_0x229d('0x11'),_0x35d315,_0x4b06b1),_0x35d315;}function _0x21d279(_0x235c72,_0x5b08a7){_0x235c72[_0x229d('0x8')]('headingId',_0x5b08a7);}_0x4ac4e7[_0x229d('0x1b')][_0x229d('0x38')][_0x229d('0x2c')](_0x424c78=>{const _0x43d5a9=_0x4ac4e7[_0x229d('0x1b')]['document'][_0x229d('0x4')][_0x229d('0x35')]();let _0xd800ca=!0x1;for(const _0x89990b of _0x43d5a9)if(_0x229d('0x36')==_0x89990b[_0x229d('0x22')]&&_0x89990b[_0x229d('0x2d')]){if(_0x89990b[_0x229d('0x2d')]['match'](/heading\d/)){const _0x5bfdc3=_0x89990b['attributes'][_0x229d('0x32')](_0x229d('0x11'));_0x229d('0x1a')==typeof _0x5bfdc3?_0x252dda[_0x229d('0x39')](_0x5bfdc3)?(_0x5de704(_0x424c78,_0x89990b['position'][_0x229d('0x9')]),_0xd800ca=!0x0):_0x49b8ff[_0x229d('0x13')](_0x5bfdc3):(_0x5de704(_0x424c78,_0x89990b['position'][_0x229d('0x9')]),_0xd800ca=!0x0);}else _0x229d('0x1a')==typeof _0x89990b[_0x229d('0x1f')][_0x229d('0x32')]('headingId')&&(_0x21d279(_0x424c78,_0x89990b[_0x229d('0x34')][_0x229d('0x9')]),_0xd800ca=!0x0);}else{if(_0x229d('0xf')==_0x89990b[_0x229d('0x22')]){const _0xf35774=_0x89990b['attributes']['get'](_0x229d('0x11'));'string'==typeof _0xf35774&&_0x252dda[_0x229d('0x1c')](_0xf35774);}}return _0xd800ca;}),_0x4ac4e7[_0x229d('0x1b')][_0x229d('0x38')]['on'](_0x229d('0x18'),()=>{_0x49b8ff[_0x229d('0x31')](_0x50ae08=>_0x252dda[_0x229d('0x13')](_0x50ae08)),_0x49b8ff['clear']();});}}
const _0x2537=['headingId.modelAttributeName','nodeAfter','_customUpcastHeadingsConversion','data','getAttribute','position','mapper','_customDataDowncastHeadingsConversion','removeAttribute','item','view','consume','type','remove','conversion','attributes','get','insert','model','add','_registerHeadingIdAttributePostfixer','setAttribute','getContainedElement','low','writer','attribute:headingId:','isRegistered','change','viewItem','set','length','downcast','element:','for','heading1','has','delete','document','registerPostFixer','modelRange','getChanges','editor','name','upcastDispatcher','differ','headingId','match','config','hasAttribute','string','schema','forEach'];(function(_0x74bba2,_0x2537f9){const _0x482b1e=function(_0xbba75){while(--_0xbba75){_0x74bba2['push'](_0x74bba2['shift']());}};_0x482b1e(++_0x2537f9);}(_0x2537,0x82));const _0x482b=function(_0x74bba2,_0x2537f9){_0x74bba2=_0x74bba2-0x0;let _0x482b1e=_0x2537[_0x74bba2];return _0x482b1e;};import{Plugin as _0x3c53b8}from'ckeditor5/src/core';import{uid as _0x5d2a1d,priorities as _0x30fc78}from'ckeditor5/src/utils';export default class A extends _0x3c53b8{static get['pluginName'](){return'HeadingId';}['afterInit'](){const _0x3d466b=this[_0x482b('0xf')];if(_0x3d466b[_0x482b('0x15')][_0x482b('0x2a')](_0x482b('0x1a')))return;(function(_0x4ba059){const _0x3f55e7=new Map();if(_0x4ba059)return _0x4ba059[_0x482b('0x19')](_0x4918db=>{'paragraph'!==_0x4918db[_0x482b('0x2c')]&&_0x3f55e7[_0x482b('0x3')](_0x4918db[_0x482b('0x24')],_0x4918db[_0x482b('0x2c')]);}),_0x3f55e7['get']('h1')||_0x3f55e7['set']('h1',_0x482b('0x8')),_0x3f55e7;return _0x3f55e7;}(this['editor']['config']['get']('heading.options'))[_0x482b('0x19')]((_0x2a4693,_0x105bbe)=>{this[_0x482b('0x1c')](_0x105bbe),this[_0x482b('0x21')](_0x2a4693),_0x3d466b[_0x482b('0x2c')]['schema'][_0x482b('0x0')](_0x2a4693)&&_0x3d466b[_0x482b('0x2c')][_0x482b('0x18')]['extend'](_0x2a4693,{'allowAttributes':_0x482b('0x13')});}),this[_0x482b('0x2e')]());}[_0x482b('0x1c')](_0x3ac008){this[_0x482b('0xf')][_0x482b('0x1d')][_0x482b('0x11')]['on'](_0x482b('0x6')+_0x3ac008,(_0x3eaf76,_0x56b30a,_0xa9efdd)=>{const {consumable:_0x94e9a0,writer:_0x13259f}=_0xa9efdd,_0x53b948=_0x56b30a[_0x482b('0x2')][_0x482b('0x1e')]('id'),_0x22c870=_0x56b30a[_0x482b('0xd')][_0x482b('0x30')]();if(!(_0x53b948&&_0x53b948[_0x482b('0x4')]||_0x22c870[_0x482b('0x16')](_0x482b('0x13'))))return _0x94e9a0['consume'](_0x56b30a[_0x482b('0x2')],{'attributes':['id']}),void _0x13259f[_0x482b('0x2f')]('headingId',_0x5d2a1d(),_0x22c870);_0x94e9a0[_0x482b('0x25')](_0x56b30a['viewItem'],{'attributes':['id']})&&_0x13259f[_0x482b('0x2f')](_0x482b('0x13'),_0x53b948,_0x22c870);},{'priority':_0x30fc78['get'](_0x482b('0x31'))+0.5});}[_0x482b('0x21')](_0xf386d7){this['editor'][_0x482b('0x28')][_0x482b('0x7')](_0x482b('0x5'))[_0x482b('0x2d')](_0x49ef83=>_0x49ef83['on'](_0x482b('0x33')+_0xf386d7,(_0x53d4e3,_0x553e7e,_0x1044f2)=>{if(!_0x1044f2['consumable'][_0x482b('0x25')](_0x553e7e['item'],_0x53d4e3[_0x482b('0x10')]))return;const _0x510f9b=_0x553e7e['item'][_0x482b('0x1e')](_0x482b('0x13')),_0xed472=_0x1044f2[_0x482b('0x20')]['toViewElement'](_0x553e7e[_0x482b('0x23')]);_0x1044f2[_0x482b('0x32')]['setAttribute']('id',_0x510f9b,_0xed472);}));}[_0x482b('0x2e')](){const _0x195d7a=this[_0x482b('0xf')],_0x189f9a=new Set(),_0xe99c67=new Set();function _0x796664(_0x1c912b,_0x5546e3){const _0x4549f5=_0x5d2a1d();return _0xe99c67['add'](_0x4549f5),_0x1c912b[_0x482b('0x2f')](_0x482b('0x13'),_0x4549f5,_0x5546e3),_0x4549f5;}function _0x5bf215(_0x2dcd46,_0x592157){_0x2dcd46[_0x482b('0x22')](_0x482b('0x13'),_0x592157);}_0x195d7a[_0x482b('0x2c')][_0x482b('0xb')][_0x482b('0xc')](_0x29edb7=>{const _0x3afb98=_0x195d7a['model'][_0x482b('0xb')][_0x482b('0x12')][_0x482b('0xe')]();let _0x5ce753=!0x1;for(const _0x455e2d of _0x3afb98)if(_0x482b('0x2b')==_0x455e2d['type']&&_0x455e2d[_0x482b('0x10')]){if(_0x455e2d[_0x482b('0x10')][_0x482b('0x14')](/heading\d/)){const _0x251f06=_0x455e2d[_0x482b('0x29')]['get']('headingId');_0x482b('0x17')==typeof _0x251f06?_0x189f9a[_0x482b('0x9')](_0x251f06)?(_0x796664(_0x29edb7,_0x455e2d[_0x482b('0x1f')]['nodeAfter']),_0x5ce753=!0x0):_0xe99c67[_0x482b('0x2d')](_0x251f06):(_0x796664(_0x29edb7,_0x455e2d[_0x482b('0x1f')][_0x482b('0x1b')]),_0x5ce753=!0x0);}else'string'==typeof _0x455e2d[_0x482b('0x29')]['get']('headingId')&&(_0x5bf215(_0x29edb7,_0x455e2d[_0x482b('0x1f')][_0x482b('0x1b')]),_0x5ce753=!0x0);}else{if(_0x482b('0x27')==_0x455e2d[_0x482b('0x26')]){const _0x211b3e=_0x455e2d[_0x482b('0x29')][_0x482b('0x2a')]('headingId');_0x482b('0x17')==typeof _0x211b3e&&_0x189f9a[_0x482b('0xa')](_0x211b3e);}}return _0x5ce753;}),_0x195d7a[_0x482b('0x2c')][_0x482b('0xb')]['on'](_0x482b('0x1'),()=>{_0xe99c67['forEach'](_0x98b7be=>_0x189f9a['add'](_0x98b7be)),_0xe99c67['clear']();});}}

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

*/
const _0x58bd=['tableOfContents','refresh','editor','document','findAllowedParent','schema','isEnabled','getFirstPosition','model','insertObject','execute'];(function(_0x3501a8,_0x58bd3c){const _0x15bbc0=function(_0x4a8dea){while(--_0x4a8dea){_0x3501a8['push'](_0x3501a8['shift']());}};_0x15bbc0(++_0x58bd3c);}(_0x58bd,0x142));const _0x15bb=function(_0x3501a8,_0x58bd3c){_0x3501a8=_0x3501a8-0x0;let _0x15bbc0=_0x58bd[_0x3501a8];return _0x15bbc0;};import{Command as _0x591156}from'ckeditor5/src/core';export default class O extends _0x591156{[_0x15bb('0x7')](){this['editor'][_0x15bb('0x5')]['change'](_0x5b2edc=>{this[_0x15bb('0xa')]['model'][_0x15bb('0x6')](_0x5b2edc['createElement'](_0x15bb('0x8')));});}[_0x15bb('0x9')](){const _0x2962e8=this[_0x15bb('0xa')][_0x15bb('0x5')],_0x2c5062=_0x2962e8[_0x15bb('0x0')]['selection'][_0x15bb('0x4')]();this[_0x15bb('0x3')]=null!==(_0x2c5062&&_0x2962e8[_0x15bb('0x2')][_0x15bb('0x1')](_0x2c5062,_0x15bb('0x8')));}}
const _0x2ec8=['createElement','model','getFirstPosition','tableOfContents','editor','schema','change','refresh','selection','isEnabled','findAllowedParent'];(function(_0x2089dc,_0x2ec881){const _0x350249=function(_0xfdc437){while(--_0xfdc437){_0x2089dc['push'](_0x2089dc['shift']());}};_0x350249(++_0x2ec881);}(_0x2ec8,0xec));const _0x3502=function(_0x2089dc,_0x2ec881){_0x2089dc=_0x2089dc-0x0;let _0x350249=_0x2ec8[_0x2089dc];return _0x350249;};import{Command as _0xbea86f}from'ckeditor5/src/core';export default class O extends _0xbea86f{['execute'](){this[_0x3502('0xa')][_0x3502('0x7')][_0x3502('0x1')](_0x4f7294=>{this[_0x3502('0xa')][_0x3502('0x7')]['insertObject'](_0x4f7294[_0x3502('0x6')](_0x3502('0x9')));});}[_0x3502('0x2')](){const _0x5a6b13=this['editor'][_0x3502('0x7')],_0x444328=_0x5a6b13['document'][_0x3502('0x3')][_0x3502('0x8')]();this[_0x3502('0x4')]=null!==(_0x444328&&_0x5a6b13[_0x3502('0x0')][_0x3502('0x5')](_0x444328,_0x3502('0x9')));}}

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

*/
import{ButtonView as _0x1932f9}from'ckeditor5/src/ui';import{CKEditorError as _0x548483}from'ckeditor5/src/utils';import{Plugin as _0x31f8e1}from'ckeditor5/src/core';import _0x225172 from'../../theme/icons/table-of-contents.svg';export default class s extends _0x31f8e1{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x8e4d4){super(_0x8e4d4),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x3baa4f=this['editor'],t=_0x3baa4f['t'];_0x3baa4f['ui']['componentFactory']['add']('tableOfContents',_0x2ee4f3=>{const _0x117b26=_0x3baa4f['commands']['get']('insertTableOfContents'),_0x52c796=new _0x1932f9(_0x2ee4f3);return _0x52c796['set']({'label':t('Table\x20of\x20contents'),'icon':_0x225172,'tooltip':!0x0}),_0x52c796['bind']('isEnabled')['to'](_0x117b26,'isEnabled'),this['listenTo'](_0x52c796,'execute',()=>{_0x3baa4f['execute']('insertTableOfContents'),_0x3baa4f['editing']['view']['focus']();}),_0x52c796;}),this['licenseKey']=_0x3baa4f['config']['get']('licenseKey');const _0x2f268a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3144ce;for(const _0x107be5 in _0x2f268a){const _0xbcd71=_0x107be5,_0x6c8dd2=_0x2f268a[_0xbcd71];if('tableOfContentsLicenseKeyTrial'===_0x6c8dd2||'tableOfContentsLicenseKeyInvalid'===_0x6c8dd2||'tableOfContentsLicenseKeyValid'===_0x6c8dd2||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x6c8dd2){delete _0x2f268a[_0xbcd71],_0x3144ce=_0x6c8dd2;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x3144ce)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x548483('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x3144ce&&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'===_0x3144ce)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x548483('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x3144ce&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}
import{ButtonView as _0xe30b74}from'ckeditor5/src/ui';import{CKEditorError as _0x1ffb00}from'ckeditor5/src/utils';import{Plugin as _0x30a082}from'ckeditor5/src/core';import _0x22c91c from'../../theme/icons/table-of-contents.svg';export default class s extends _0x30a082{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x3a184b){super(_0x3a184b),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x1b484a=this['editor'],t=_0x1b484a['t'];_0x1b484a['ui']['componentFactory']['add']('tableOfContents',_0xf4f85a=>{const _0x4b5dbe=_0x1b484a['commands']['get']('insertTableOfContents'),_0x433eb7=new _0xe30b74(_0xf4f85a);return _0x433eb7['set']({'label':t('Table\x20of\x20contents'),'icon':_0x22c91c,'tooltip':!0x0}),_0x433eb7['bind']('isEnabled')['to'](_0x4b5dbe,'isEnabled'),this['listenTo'](_0x433eb7,'execute',()=>{_0x1b484a['execute']('insertTableOfContents'),_0x1b484a['editing']['view']['focus']();}),_0x433eb7;}),this['licenseKey']=_0x1b484a['config']['get']('licenseKey');const _0x32901a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x46d915;for(const _0x22682a in _0x32901a){const _0x180155=_0x22682a,_0x2df293=_0x32901a[_0x180155];if('tableOfContentsLicenseKeyTrial'===_0x2df293||'tableOfContentsLicenseKeyInvalid'===_0x2df293||'tableOfContentsLicenseKeyValid'===_0x2df293||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x2df293){delete _0x32901a[_0x180155],_0x46d915=_0x2df293;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x46d915)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x1ffb00('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x46d915&&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'===_0x46d915)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x1ffb00('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x46d915&&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