Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ckeditor/ckeditor5-document-outline

Package Overview
Dependencies
Maintainers
1
Versions
626
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-20230816.0 to 0.0.0-nightly-20230817.0

6

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

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

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

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

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

*/
const _0x44d3=['documentOutlineLicenseKeyTrial','DocumentOutline','destroy','document-outline-trial-license-key-reached-limit-changes','documentOutlineLicenseKeyInvalid','documentOutlineLicenseKeyValid','info','editor','config','_licenseKeyCheckInterval','licenseKey','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'];(function(_0x56b00d,_0x44d3e9){const _0x291ac8=function(_0x1cc964){while(--_0x1cc964){_0x56b00d['push'](_0x56b00d['shift']());}};_0x291ac8(++_0x44d3e9);}(_0x44d3,0x1d0));const _0x291a=function(_0x56b00d,_0x44d3e9){_0x56b00d=_0x56b00d-0x0;let _0x291ac8=_0x44d3[_0x56b00d];return _0x291ac8;};import{Plugin as _0x545d6c}from'ckeditor5/src/core';import{CKEditorError as _0x1adc4e}from'ckeditor5/src/utils';import _0x5cdc5e from'./documentoutline/documentoutlineutils';import _0x31cf44 from'./documentoutline/documentoutlineui';export default class l extends _0x545d6c{static get['requires'](){return[_0x5cdc5e,_0x31cf44];}static get['pluginName'](){return _0x291a('0x5');}constructor(_0x436169){super(_0x436169),this[_0x291a('0x0')]=null;}['init'](){const _0x15ea70=this[_0x291a('0xb')];this[_0x291a('0x1')]=_0x15ea70[_0x291a('0xc')]['get'](_0x291a('0x1'));const _0x4733af=this['editor'];this[_0x291a('0x0')]=setInterval(()=>{let _0x5b92d0;for(const _0x664af7 in _0x4733af){const _0x49e5bd=_0x664af7,_0x10f518=_0x4733af[_0x49e5bd];if('documentOutlineLicenseKeyTrial'===_0x10f518||'documentOutlineLicenseKeyInvalid'===_0x10f518||_0x291a('0x9')===_0x10f518||_0x291a('0x3')===_0x10f518){delete _0x4733af[_0x49e5bd],_0x5b92d0=_0x10f518;break;}}if(_0x291a('0x8')===_0x5b92d0)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x1adc4e('document-outline-invalid-license-key',null);if(_0x291a('0x4')===_0x5b92d0&&console[_0x291a('0xa')](_0x291a('0x2')),_0x291a('0x3')===_0x5b92d0)throw clearInterval(this[_0x291a('0x0')]),new _0x1adc4e(_0x291a('0x7'),null);_0x291a('0x9')===_0x5b92d0&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}[_0x291a('0x6')](){this[_0x291a('0x0')]&&clearInterval(this[_0x291a('0x0')]);}}
const _0x1c2e=['documentOutlineLicenseKeyValid','documentOutlineLicenseKeyTrial','config','documentOutlineLicenseKeyTrialLimit:operations','_licenseKeyCheckInterval','DocumentOutline','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20document\x20outline\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','editor','documentOutlineLicenseKeyInvalid','licenseKey','pluginName','get','requires','info','document-outline-invalid-license-key'];(function(_0x1167cb,_0x1c2e93){const _0x4d9905=function(_0x447203){while(--_0x447203){_0x1167cb['push'](_0x1167cb['shift']());}};_0x4d9905(++_0x1c2e93);}(_0x1c2e,0xad));const _0x4d99=function(_0x1167cb,_0x1c2e93){_0x1167cb=_0x1167cb-0x0;let _0x4d9905=_0x1c2e[_0x1167cb];return _0x4d9905;};import{Plugin as _0x496450}from'ckeditor5/src/core';import{CKEditorError as _0x25fbdf}from'ckeditor5/src/utils';import _0x385711 from'./documentoutline/documentoutlineutils';import _0x14f1e2 from'./documentoutline/documentoutlineui';export default class l extends _0x496450{static get[_0x4d99('0x4')](){return[_0x385711,_0x14f1e2];}static get[_0x4d99('0x2')](){return _0x4d99('0xc');}constructor(_0x462286){super(_0x462286),this[_0x4d99('0xb')]=null;}['init'](){const _0x40f1f5=this['editor'];this[_0x4d99('0x1')]=_0x40f1f5[_0x4d99('0x9')][_0x4d99('0x3')](_0x4d99('0x1'));const _0x53606c=this[_0x4d99('0xe')];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xf5cbb0;for(const _0x5f33fc in _0x53606c){const _0xb9d6c0=_0x5f33fc,_0x3183ba=_0x53606c[_0xb9d6c0];if(_0x4d99('0x8')===_0x3183ba||_0x4d99('0x0')===_0x3183ba||_0x4d99('0x7')===_0x3183ba||_0x4d99('0xa')===_0x3183ba){delete _0x53606c[_0xb9d6c0],_0xf5cbb0=_0x3183ba;break;}}if(_0x4d99('0x0')===_0xf5cbb0)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x25fbdf(_0x4d99('0x6'),null);if(_0x4d99('0x8')===_0xf5cbb0&&console[_0x4d99('0x5')](_0x4d99('0xd')),_0x4d99('0xa')===_0xf5cbb0)throw clearInterval(this[_0x4d99('0xb')]),new _0x25fbdf('document-outline-trial-license-key-reached-limit-changes',null);_0x4d99('0x7')===_0xf5cbb0&&clearInterval(this[_0x4d99('0xb')]);},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this[_0x4d99('0xb')]);}}

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

*/
const _0x32fe=['domToView','createElement','element','domConverter','model','_getOutlineDefinitions','fire','findIndex','init','documentOutline.headings','config','editor','_getActiveHeading','document','includes','view','getRoot','activeItemIndex','modelElement','_getHeadingNames','_headingNames','text','name','data','backward','getFirstPosition','editing','afterInit','push','pluginName','item','level','change','length','_deriveHeadingElementsFromConversion'];(function(_0x5200dc,_0x32fe1b){const _0x2428eb=function(_0x56d829){while(--_0x56d829){_0x5200dc['push'](_0x5200dc['shift']());}};_0x2428eb(++_0x32fe1b);}(_0x32fe,0x1bc));const _0x2428=function(_0x5200dc,_0x32fe1b){_0x5200dc=_0x5200dc-0x0;let _0x2428eb=_0x32fe[_0x5200dc];return _0x2428eb;};import{Plugin as _0x4c3cf1}from'ckeditor5/src/core';import{debounce as _0x480643}from'lodash-es';import{TreeWalker as _0x5ba359}from'ckeditor5/src/engine';import{getElementText as _0x1cacce,getDefaultFeatureHeadingNames as _0x30c9f1}from'./utils';import{diff as _0x24dc82,diffToChanges as _0x41a834}from'ckeditor5/src/utils';export default class n extends _0x4c3cf1{constructor(){super(...arguments),this[_0x2428('0x1f')]=[];}static get[_0x2428('0x5')](){return'DocumentOutlineUtils';}[_0x2428('0x13')](){const _0x4748bc=this[_0x2428('0x16')];this['_headingNames']=this[_0x2428('0x1e')]();let _0x154b79=[];_0x4748bc[_0x2428('0xf')][_0x2428('0x18')]['on']('change',_0x480643(()=>{const _0x1a7b71=_0x154b79;_0x154b79=this['_getOutlineDefinitions']();const _0x3069bb=_0x24dc82(_0x1a7b71,_0x154b79,(_0x52f2b7,_0x27b90e)=>_0x52f2b7[_0x2428('0x7')]===_0x27b90e['level']&&_0x52f2b7[_0x2428('0x20')]===_0x27b90e[_0x2428('0x20')]&&_0x52f2b7[_0x2428('0x1d')]===_0x27b90e[_0x2428('0x1d')]),_0x341139=_0x41a834(_0x3069bb,_0x154b79),_0x555888=this[_0x2428('0x17')](),_0x2569a4=_0x154b79[_0x2428('0x12')](_0x44804c=>_0x44804c[_0x2428('0x1d')]===_0x555888);_0x341139[_0x2428('0x9')]&&this[_0x2428('0x11')](_0x2428('0x8'),{'outlineDefinitions':_0x154b79,'activeItemIndex':_0x2569a4,'outlineChanges':_0x341139}),this[_0x2428('0x11')](_0x2428('0x1c'),{'index':_0x2569a4});},0xfa,{'leading':!0x0,'trailing':!0x0}));}[_0x2428('0x3')](){this['_headingNames'][_0x2428('0x9')]||this[_0x2428('0xa')]();}[_0x2428('0x10')](){const _0x328ca0=this[_0x2428('0x16')],_0xf47525=[],_0x2cf010=this[_0x2428('0x1f')];for(const _0x6f67d9 of _0x328ca0[_0x2428('0xf')][_0x2428('0x18')]['getRootNames']())_0x41786a(_0x328ca0[_0x2428('0xf')]['document'][_0x2428('0x1b')](_0x6f67d9));function _0x41786a(_0x30ff68){for(const _0x261164 of _0x30ff68['getChildren']())_0x261164['is'](_0x2428('0xd'))&&(_0x2cf010[_0x2428('0x19')](_0x261164['name'])&&_0xf47525[_0x2428('0x4')]({'level':_0x2cf010['indexOf'](_0x261164[_0x2428('0x21')])+0x1,'text':_0x1cacce(_0x261164),'modelElement':_0x261164}),_0x41786a(_0x261164));}return _0xf47525;}[_0x2428('0x17')](){const _0x4463d2=this[_0x2428('0x16')][_0x2428('0xf')][_0x2428('0x18')]['selection'][_0x2428('0x1')](),_0x4510f7=new _0x5ba359({'direction':_0x2428('0x0'),'startPosition':_0x4463d2});for(const _0x3a41f9 of _0x4510f7)if(_0x3a41f9[_0x2428('0x6')]['is']('element')&&this[_0x2428('0x1f')][_0x2428('0x19')](_0x3a41f9[_0x2428('0x6')][_0x2428('0x21')]))return _0x3a41f9[_0x2428('0x6')];}[_0x2428('0x1e')](){const _0x3e79a2=this[_0x2428('0x16')][_0x2428('0x15')]['get'](_0x2428('0x14'));return _0x3e79a2||_0x30c9f1(this[_0x2428('0x16')]);}[_0x2428('0xa')](){const _0x3e8ecf=this[_0x2428('0x16')],_0x2af2e3=['h1','h2','h3','h4','h5','h6'],_0x2329c4=[];for(const _0x5867cd of _0x2af2e3){const _0x5a12d5=_0x3e8ecf[_0x2428('0x2')][_0x2428('0x1a')][_0x2428('0xe')][_0x2428('0xb')](document[_0x2428('0xc')](_0x5867cd)),_0x51c5d4=_0x3e8ecf[_0x2428('0x22')]['toModel'](_0x5a12d5)['getChild'](0x0);(null==_0x51c5d4?void 0x0:_0x51c5d4['is']('element'))&&_0x2329c4[_0x2428('0x4')](_0x51c5d4[_0x2428('0x21')]);}this[_0x2428('0x1f')]=_0x2329c4;}}
const _0x1ff5=['level','fire','document','domConverter','text','length','_getOutlineDefinitions','name','model','getRoot','_getHeadingNames','afterInit','item','createElement','push','domToView','getChildren','_deriveHeadingElementsFromConversion','_headingNames','activeItemIndex','backward','getFirstPosition','DocumentOutlineUtils','data','pluginName','modelElement','change','indexOf','getChild','selection','element','getRootNames','editor'];(function(_0x394689,_0x1ff55b){const _0x5b63d1=function(_0x2cf7e8){while(--_0x2cf7e8){_0x394689['push'](_0x394689['shift']());}};_0x5b63d1(++_0x1ff55b);}(_0x1ff5,0x154));const _0x5b63=function(_0x394689,_0x1ff55b){_0x394689=_0x394689-0x0;let _0x5b63d1=_0x1ff5[_0x394689];return _0x5b63d1;};import{Plugin as _0x4ccba5}from'ckeditor5/src/core';import{debounce as _0x5ae730}from'lodash-es';import{TreeWalker as _0x512729}from'ckeditor5/src/engine';import{getElementText as _0xc73921,getDefaultFeatureHeadingNames as _0x53c616}from'./utils';import{diff as _0xd7bca0,diffToChanges as _0x2ca9ce}from'ckeditor5/src/utils';export default class n extends _0x4ccba5{constructor(){super(...arguments),this[_0x5b63('0x8')]=[];}static get[_0x5b63('0xe')](){return _0x5b63('0xc');}['init'](){const _0x1f0a25=this[_0x5b63('0x16')];this[_0x5b63('0x8')]=this[_0x5b63('0x0')]();let _0x184f75=[];_0x1f0a25[_0x5b63('0x1f')]['document']['on'](_0x5b63('0x10'),_0x5ae730(()=>{const _0x5da0a4=_0x184f75;_0x184f75=this[_0x5b63('0x1d')]();const _0x2e5123=_0xd7bca0(_0x5da0a4,_0x184f75,(_0xb810c1,_0x520713)=>_0xb810c1[_0x5b63('0x17')]===_0x520713['level']&&_0xb810c1[_0x5b63('0x1b')]===_0x520713['text']&&_0xb810c1[_0x5b63('0xf')]===_0x520713[_0x5b63('0xf')]),_0x276a7f=_0x2ca9ce(_0x2e5123,_0x184f75),_0x11f0f8=this['_getActiveHeading'](),_0x8a9250=_0x184f75['findIndex'](_0x223f78=>_0x223f78[_0x5b63('0xf')]===_0x11f0f8);_0x276a7f['length']&&this[_0x5b63('0x18')](_0x5b63('0x10'),{'outlineDefinitions':_0x184f75,'activeItemIndex':_0x8a9250,'outlineChanges':_0x276a7f}),this[_0x5b63('0x18')](_0x5b63('0x9'),{'index':_0x8a9250});},0xfa,{'leading':!0x0,'trailing':!0x0}));}[_0x5b63('0x1')](){this[_0x5b63('0x8')][_0x5b63('0x1c')]||this[_0x5b63('0x7')]();}['_getOutlineDefinitions'](){const _0x1d1c77=this[_0x5b63('0x16')],_0x45852b=[],_0x4b917c=this[_0x5b63('0x8')];for(const _0x3e875d of _0x1d1c77[_0x5b63('0x1f')][_0x5b63('0x19')][_0x5b63('0x15')]())_0x3790b7(_0x1d1c77['model'][_0x5b63('0x19')][_0x5b63('0x20')](_0x3e875d));function _0x3790b7(_0x3f4a92){for(const _0x353a9c of _0x3f4a92[_0x5b63('0x6')]())_0x353a9c['is'](_0x5b63('0x14'))&&(_0x4b917c['includes'](_0x353a9c[_0x5b63('0x1e')])&&_0x45852b[_0x5b63('0x4')]({'level':_0x4b917c[_0x5b63('0x11')](_0x353a9c['name'])+0x1,'text':_0xc73921(_0x353a9c),'modelElement':_0x353a9c}),_0x3790b7(_0x353a9c));}return _0x45852b;}['_getActiveHeading'](){const _0x456b41=this['editor'][_0x5b63('0x1f')][_0x5b63('0x19')][_0x5b63('0x13')][_0x5b63('0xb')](),_0x5b2e19=new _0x512729({'direction':_0x5b63('0xa'),'startPosition':_0x456b41});for(const _0x6f671c of _0x5b2e19)if(_0x6f671c[_0x5b63('0x2')]['is'](_0x5b63('0x14'))&&this['_headingNames']['includes'](_0x6f671c['item'][_0x5b63('0x1e')]))return _0x6f671c['item'];}['_getHeadingNames'](){const _0x5624f3=this[_0x5b63('0x16')]['config']['get']('documentOutline.headings');return _0x5624f3||_0x53c616(this[_0x5b63('0x16')]);}[_0x5b63('0x7')](){const _0x12618a=this[_0x5b63('0x16')],_0x2339ae=['h1','h2','h3','h4','h5','h6'],_0x50f72b=[];for(const _0x2daa85 of _0x2339ae){const _0x2a06ea=_0x12618a['editing']['view'][_0x5b63('0x1a')][_0x5b63('0x5')](document[_0x5b63('0x3')](_0x2daa85)),_0x220d07=_0x12618a[_0x5b63('0xd')]['toModel'](_0x2a06ea)[_0x5b63('0x12')](0x0);(null==_0x220d07?void 0x0:_0x220d07['is'](_0x5b63('0x14')))&&_0x50f72b[_0x5b63('0x4')](_0x220d07[_0x5b63('0x1e')]);}this[_0x5b63('0x8')]=_0x50f72b;}}

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

*/
import{View as _0x2547cd}from'ckeditor5/src/ui';export default class $ extends _0x2547cd{constructor(_0x3ac473,_0x343c47=!0x1){super(_0x3ac473);const t=_0x3ac473['t'],_0x2538a3=this['bindTemplate'],_0xb446b2=_0x343c47?'['+t('Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x481360=>!_0x481360),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x2538a3['to']('level',_0x34b608=>'ck-document-outline__item_level-'+_0x34b608),_0x2538a3['if']('isActive','ck-document-outline__item_active'),_0x2538a3['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x2538a3['to']('text')},'children':[{'text':_0x2538a3['to']('text',_0xc21fe2=>_0xc21fe2||_0xb446b2)}],'on':{'click':_0x2538a3['to']('click')}});}}
import{View as _0x448588}from'ckeditor5/src/ui';export default class $ extends _0x448588{constructor(_0x56a05,_0x519fea=!0x1){super(_0x56a05);const t=_0x56a05['t'],_0x44bbb6=this['bindTemplate'],_0x10b0b8=_0x519fea?'['+t('Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x5cc471=>!_0x5cc471),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x44bbb6['to']('level',_0x233a14=>'ck-document-outline__item_level-'+_0x233a14),_0x44bbb6['if']('isActive','ck-document-outline__item_active'),_0x44bbb6['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x44bbb6['to']('text')},'children':[{'text':_0x44bbb6['to']('text',_0x91dc8=>_0x91dc8||_0x10b0b8)}],'on':{'click':_0x44bbb6['to']('click')}});}}

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

*/
import{View as _0xc9f28d}from'ckeditor5/src/ui';import{scrollAncestorsToShowTarget as _0x52c036}from'ckeditor5/src/utils';import _0x5436d5 from'./documentoutlineitemview';export default class d extends _0xc9f28d{constructor(_0x10007b,_0x5d6591=!0x1,_0x27867a){super(_0x10007b);const t=_0x10007b['t'];this['showEmptyHeadingText']=_0x5d6591,this['set']('activeItemIndex',-0x1),this['_documentOutlineContainer']=_0x27867a,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x3b8481,_0x53ac86,_0xe233ae,_0x5aaa3c)=>{this['_setActiveItem'](_0x5aaa3c,_0xe233ae);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x10007b['contentLanguageDirection'],'data-document-outline-empty-placeholder':t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x66f7e5){_0x66f7e5['forEach'](_0xdb0169=>{'insert'==_0xdb0169['type']?this['_insertItem'](_0xdb0169['index'],..._0xdb0169['values']):'delete'==_0xdb0169['type']&&this['_deleteItem'](_0xdb0169['index'],_0xdb0169['howMany']);});}['_setActiveItem'](_0x1b9776,_0x3b92b5){if(-0x1!==_0x1b9776){const _0x3ea7d6=this['items']['get'](_0x1b9776);_0x3ea7d6&&(_0x3ea7d6['isActive']=!0x1);}-0x1!==_0x3b92b5&&(this['items']['get'](_0x3b92b5)['isActive']=!0x0,this['_scrollToItem'](_0x3b92b5));}['_insertItem'](_0x195e9e,..._0x13bc52){const _0x41cd09=_0x13bc52['map']((_0x1a4488,_0x38e5f4)=>{const _0x23f2bf=new _0x5436d5(this['locale'],this['showEmptyHeadingText']);return _0x23f2bf['text']=_0x1a4488['text'],_0x23f2bf['level']=_0x1a4488['level'],_0x195e9e+_0x38e5f4===this['activeItemIndex']&&(_0x23f2bf['isActive']=!0x0),_0x23f2bf;});this['items']['addMany'](_0x41cd09,_0x195e9e);}['_deleteItem'](_0x5b5fed,_0x2eaff8){do{this['items']['remove'](_0x5b5fed);}while(--_0x2eaff8);}['_handleItemClick'](_0x115dd3){const _0x4f7f84=this['items']['getIndex'](_0x115dd3['source']);this['fire']('itemSelected',_0x4f7f84);}['_scrollToItem'](_0xb27478){_0x52c036(this['items']['get'](_0xb27478)['element'],0x14,this['_documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}
import{View as _0x220117}from'ckeditor5/src/ui';import{scrollAncestorsToShowTarget as _0x246eda}from'ckeditor5/src/utils';import _0x2195b2 from'./documentoutlineitemview';export default class d extends _0x220117{constructor(_0x297228,_0x3e267f=!0x1,_0x2c8cd4){super(_0x297228);const t=_0x297228['t'];this['showEmptyHeadingText']=_0x3e267f,this['set']('activeItemIndex',-0x1),this['_documentOutlineContainer']=_0x2c8cd4,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x2350a3,_0xebe899,_0x120fd2,_0xa0e3a9)=>{this['_setActiveItem'](_0xa0e3a9,_0x120fd2);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x297228['contentLanguageDirection'],'data-document-outline-empty-placeholder':t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x4aef1a){_0x4aef1a['forEach'](_0x1f8977=>{'insert'==_0x1f8977['type']?this['_insertItem'](_0x1f8977['index'],..._0x1f8977['values']):'delete'==_0x1f8977['type']&&this['_deleteItem'](_0x1f8977['index'],_0x1f8977['howMany']);});}['_setActiveItem'](_0x408d2a,_0x2e35e5){if(-0x1!==_0x408d2a){const _0xe29630=this['items']['get'](_0x408d2a);_0xe29630&&(_0xe29630['isActive']=!0x1);}-0x1!==_0x2e35e5&&(this['items']['get'](_0x2e35e5)['isActive']=!0x0,this['_scrollToItem'](_0x2e35e5));}['_insertItem'](_0xb01ddc,..._0x3bf01e){const _0x4f36a6=_0x3bf01e['map']((_0x4c143a,_0x56094b)=>{const _0x3a143b=new _0x2195b2(this['locale'],this['showEmptyHeadingText']);return _0x3a143b['text']=_0x4c143a['text'],_0x3a143b['level']=_0x4c143a['level'],_0xb01ddc+_0x56094b===this['activeItemIndex']&&(_0x3a143b['isActive']=!0x0),_0x3a143b;});this['items']['addMany'](_0x4f36a6,_0xb01ddc);}['_deleteItem'](_0x5a1508,_0x4b5898){do{this['items']['remove'](_0x5a1508);}while(--_0x4b5898);}['_handleItemClick'](_0x5eba84){const _0x5adb43=this['items']['getIndex'](_0x5eba84['source']);this['fire']('itemSelected',_0x5adb43);}['_scrollToItem'](_0x3fd18f){_0x246eda(this['items']['get'](_0x3fd18f)['element'],0x14,this['_documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}

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

*/
const _0x1555=['paragraph','push','getChildren','heading.options','htmlH5','get','reduce','has','model','htmlH6','plugins','data','htmlH4','htmlH3'];(function(_0x92678f,_0x155523){const _0x439836=function(_0x3b8eba){while(--_0x3b8eba){_0x92678f['push'](_0x92678f['shift']());}};_0x439836(++_0x155523);}(_0x1555,0x8a));const _0x4398=function(_0x92678f,_0x155523){_0x92678f=_0x92678f-0x0;let _0x439836=_0x1555[_0x92678f];return _0x439836;};import{Text as _0x4fc710}from'ckeditor5/src/engine';export function getElementText(_0x59df8d){let _0x200b0e='';for(const _0x56ef98 of _0x59df8d[_0x4398('0x4')]())_0x56ef98 instanceof _0x4fc710&&(_0x200b0e+=_0x56ef98[_0x4398('0xd')]);return _0x200b0e;}export function getDefaultFeatureHeadingNames(_0x4ee33b){const _0x28c655=_0x4ee33b['config'][_0x4398('0x7')](_0x4398('0x5'));return _0x28c655?_0x28c655[_0x4398('0x8')]((_0x195436,_0x2dde21)=>(_0x4398('0x2')!==_0x2dde21['model']&&_0x195436[_0x4398('0x3')](_0x2dde21[_0x4398('0xa')]),_0x195436),[]):_0x4ee33b[_0x4398('0xc')][_0x4398('0x9')]('GeneralHtmlSupport')?['htmlH1','htmlH2',_0x4398('0x1'),_0x4398('0x0'),_0x4398('0x6'),_0x4398('0xb')]:[];}
const _0x30ef=['get','GeneralHtmlSupport','plugins','has','htmlH2','getChildren','htmlH5','paragraph','model','htmlH4','htmlH1','push'];(function(_0x171b0b,_0x30ef8a){const _0x22cc31=function(_0x200f7e){while(--_0x200f7e){_0x171b0b['push'](_0x171b0b['shift']());}};_0x22cc31(++_0x30ef8a);}(_0x30ef,0xc5));const _0x22cc=function(_0x171b0b,_0x30ef8a){_0x171b0b=_0x171b0b-0x0;let _0x22cc31=_0x30ef[_0x171b0b];return _0x22cc31;};import{Text as _0x577d05}from'ckeditor5/src/engine';export function getElementText(_0x33227a){let _0x3ef822='';for(const _0x32acab of _0x33227a[_0x22cc('0x0')]())_0x32acab instanceof _0x577d05&&(_0x3ef822+=_0x32acab['data']);return _0x3ef822;}export function getDefaultFeatureHeadingNames(_0x4f7e99){const _0x309b36=_0x4f7e99['config'][_0x22cc('0x7')]('heading.options');return _0x309b36?_0x309b36['reduce']((_0x535b7c,_0x12d884)=>(_0x22cc('0x2')!==_0x12d884[_0x22cc('0x3')]&&_0x535b7c[_0x22cc('0x6')](_0x12d884[_0x22cc('0x3')]),_0x535b7c),[]):_0x4f7e99[_0x22cc('0x9')][_0x22cc('0xa')](_0x22cc('0x8'))?[_0x22cc('0x5'),_0x22cc('0xb'),'htmlH3',_0x22cc('0x4'),_0x22cc('0x1'),'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 _0x5b4d3c 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':_0x5b4d3c};import'./augmentation';
export{default as DocumentOutline}from'./documentoutline';export{default as DocumentOutlineUI}from'./documentoutline/documentoutlineui';export{default as DocumentOutlineUtils}from'./documentoutline/documentoutlineutils';import _0x3d29c1 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':_0x3d29c1};import'./augmentation';

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

*/
var _0x5a06=['TableOfContents','requires'];(function(_0x124afd,_0x5a0667){var _0x143d9e=function(_0x9a18ae){while(--_0x9a18ae){_0x124afd['push'](_0x124afd['shift']());}};_0x143d9e(++_0x5a0667);}(_0x5a06,0xb0));var _0x143d=function(_0x124afd,_0x5a0667){_0x124afd=_0x124afd-0x0;var _0x143d9e=_0x5a06[_0x124afd];return _0x143d9e;};import{Plugin as _0x26f6ab}from'ckeditor5/src/core';import _0x5be2b7 from'./tableofcontents/tableofcontentsediting';import _0x2d295b from'./tableofcontents/tableofcontentsui';export default class c extends _0x26f6ab{static get[_0x143d('0x1')](){return[_0x5be2b7,_0x2d295b];}static get['pluginName'](){return _0x143d('0x0');}}
var _0x4c4d=['pluginName','requires','TableOfContents'];(function(_0x45d977,_0x4c4de4){var _0x1951a1=function(_0x5c1544){while(--_0x5c1544){_0x45d977['push'](_0x45d977['shift']());}};_0x1951a1(++_0x4c4de4);}(_0x4c4d,0x189));var _0x1951=function(_0x45d977,_0x4c4de4){_0x45d977=_0x45d977-0x0;var _0x1951a1=_0x4c4d[_0x45d977];return _0x1951a1;};import{Plugin as _0x1d8b00}from'ckeditor5/src/core';import _0x34db28 from'./tableofcontents/tableofcontentsediting';import _0x1a6031 from'./tableofcontents/tableofcontentsui';export default class c extends _0x1d8b00{static get[_0x1951('0x1')](){return[_0x34db28,_0x1a6031];}static get[_0x1951('0x0')](){return _0x1951('0x2');}}

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

*/
const _0x541d=['getAttribute','removeAttribute','heading1','afterInit','setAttribute','clear','registerPostFixer','remove','view','set','conversion','_customUpcastHeadingsConversion','get','config','schema','headingId.modelAttributeName','nodeAfter','data','item','change','getContainedElement','hasAttribute','attributes','match','type','mapper','pluginName','string','headingId','name','length','downcast','consumable','model','add','attribute:headingId:','getChanges','toViewElement','viewItem','insert','writer','modelRange','document','editor','isRegistered','_registerHeadingIdAttributePostfixer','consume','paragraph','forEach','for','heading.options','position','extend','low'];(function(_0x43e8fd,_0x541d27){const _0x2c4a38=function(_0xce0766){while(--_0xce0766){_0x43e8fd['push'](_0x43e8fd['shift']());}};_0x2c4a38(++_0x541d27);}(_0x541d,0x181));const _0x2c4a=function(_0x43e8fd,_0x541d27){_0x43e8fd=_0x43e8fd-0x0;let _0x2c4a38=_0x541d[_0x43e8fd];return _0x2c4a38;};import{Plugin as _0x3a64ee}from'ckeditor5/src/core';import{uid as _0x20120a,priorities as _0x4a6065}from'ckeditor5/src/utils';export default class A extends _0x3a64ee{static get[_0x2c4a('0x13')](){return'HeadingId';}[_0x2c4a('0x32')](){const _0xaefc2b=this[_0x2c4a('0x24')];if(_0xaefc2b[_0x2c4a('0x6')][_0x2c4a('0x5')](_0x2c4a('0x8')))return;(function(_0x39fd38){const _0x3b7fdb=new Map();if(_0x39fd38)return _0x39fd38[_0x2c4a('0x29')](_0x95a480=>{_0x2c4a('0x28')!==_0x95a480[_0x2c4a('0x1a')]&&_0x3b7fdb[_0x2c4a('0x2')](_0x95a480[_0x2c4a('0x1')],_0x95a480[_0x2c4a('0x1a')]);}),_0x3b7fdb[_0x2c4a('0x5')]('h1')||_0x3b7fdb[_0x2c4a('0x2')]('h1',_0x2c4a('0x31')),_0x3b7fdb;return _0x3b7fdb;}(this[_0x2c4a('0x24')][_0x2c4a('0x6')][_0x2c4a('0x5')](_0x2c4a('0x2b')))[_0x2c4a('0x29')]((_0x2546cd,_0x51947d)=>{this['_customUpcastHeadingsConversion'](_0x51947d),this['_customDataDowncastHeadingsConversion'](_0x2546cd),_0xaefc2b[_0x2c4a('0x1a')][_0x2c4a('0x7')][_0x2c4a('0x25')](_0x2546cd)&&_0xaefc2b[_0x2c4a('0x1a')][_0x2c4a('0x7')][_0x2c4a('0x2d')](_0x2546cd,{'allowAttributes':_0x2c4a('0x15')});}),this[_0x2c4a('0x26')]());}[_0x2c4a('0x4')](_0x2fe122){this[_0x2c4a('0x24')][_0x2c4a('0xa')]['upcastDispatcher']['on']('element:'+_0x2fe122,(_0x8fd56,_0x5132e9,_0x3d182b)=>{const {consumable:_0x30314d,writer:_0x4e4bdb}=_0x3d182b,_0x33dc05=_0x5132e9[_0x2c4a('0x1f')][_0x2c4a('0x2f')]('id'),_0x4e7d42=_0x5132e9[_0x2c4a('0x22')][_0x2c4a('0xd')]();if(!(_0x33dc05&&_0x33dc05[_0x2c4a('0x17')]||_0x4e7d42[_0x2c4a('0xe')](_0x2c4a('0x15'))))return _0x30314d[_0x2c4a('0x27')](_0x5132e9[_0x2c4a('0x1f')],{'attributes':['id']}),void _0x4e4bdb[_0x2c4a('0x33')](_0x2c4a('0x15'),_0x20120a(),_0x4e7d42);_0x30314d[_0x2c4a('0x27')](_0x5132e9[_0x2c4a('0x1f')],{'attributes':['id']})&&_0x4e4bdb['setAttribute']('headingId',_0x33dc05,_0x4e7d42);},{'priority':_0x4a6065[_0x2c4a('0x5')](_0x2c4a('0x2e'))+0.5});}['_customDataDowncastHeadingsConversion'](_0x28f72f){this[_0x2c4a('0x24')][_0x2c4a('0x3')][_0x2c4a('0x2a')](_0x2c4a('0x18'))[_0x2c4a('0x1b')](_0x3288ee=>_0x3288ee['on'](_0x2c4a('0x1c')+_0x28f72f,(_0x985995,_0x3b3905,_0x2b9793)=>{if(!_0x2b9793[_0x2c4a('0x19')][_0x2c4a('0x27')](_0x3b3905[_0x2c4a('0xb')],_0x985995[_0x2c4a('0x16')]))return;const _0xf1a139=_0x3b3905[_0x2c4a('0xb')][_0x2c4a('0x2f')]('headingId'),_0x525133=_0x2b9793[_0x2c4a('0x12')][_0x2c4a('0x1e')](_0x3b3905[_0x2c4a('0xb')]);_0x2b9793[_0x2c4a('0x21')][_0x2c4a('0x33')]('id',_0xf1a139,_0x525133);}));}[_0x2c4a('0x26')](){const _0x31d699=this[_0x2c4a('0x24')],_0x2fa073=new Set(),_0x22d0cc=new Set();function _0x56fc2c(_0x153011,_0x4e2762){const _0x223789=_0x20120a();return _0x22d0cc[_0x2c4a('0x1b')](_0x223789),_0x153011[_0x2c4a('0x33')](_0x2c4a('0x15'),_0x223789,_0x4e2762),_0x223789;}function _0x4e6218(_0x3ce151,_0x3483dd){_0x3ce151[_0x2c4a('0x30')](_0x2c4a('0x15'),_0x3483dd);}_0x31d699[_0x2c4a('0x1a')][_0x2c4a('0x23')][_0x2c4a('0x35')](_0x1e7240=>{const _0x4169c6=_0x31d699[_0x2c4a('0x1a')][_0x2c4a('0x23')]['differ'][_0x2c4a('0x1d')]();let _0x40c65a=!0x1;for(const _0x45cbe1 of _0x4169c6)if(_0x2c4a('0x20')==_0x45cbe1[_0x2c4a('0x11')]&&_0x45cbe1[_0x2c4a('0x16')]){if(_0x45cbe1[_0x2c4a('0x16')][_0x2c4a('0x10')](/heading\d/)){const _0x1e502a=_0x45cbe1[_0x2c4a('0xf')]['get'](_0x2c4a('0x15'));_0x2c4a('0x14')==typeof _0x1e502a?_0x2fa073['has'](_0x1e502a)?(_0x56fc2c(_0x1e7240,_0x45cbe1[_0x2c4a('0x2c')][_0x2c4a('0x9')]),_0x40c65a=!0x0):_0x22d0cc[_0x2c4a('0x1b')](_0x1e502a):(_0x56fc2c(_0x1e7240,_0x45cbe1[_0x2c4a('0x2c')][_0x2c4a('0x9')]),_0x40c65a=!0x0);}else _0x2c4a('0x14')==typeof _0x45cbe1[_0x2c4a('0xf')][_0x2c4a('0x5')]('headingId')&&(_0x4e6218(_0x1e7240,_0x45cbe1[_0x2c4a('0x2c')][_0x2c4a('0x9')]),_0x40c65a=!0x0);}else{if(_0x2c4a('0x0')==_0x45cbe1['type']){const _0x2d1cf8=_0x45cbe1[_0x2c4a('0xf')][_0x2c4a('0x5')](_0x2c4a('0x15'));_0x2c4a('0x14')==typeof _0x2d1cf8&&_0x2fa073['delete'](_0x2d1cf8);}}return _0x40c65a;}),_0x31d699[_0x2c4a('0x1a')][_0x2c4a('0x23')]['on'](_0x2c4a('0xc'),()=>{_0x22d0cc[_0x2c4a('0x29')](_0x161b37=>_0x2fa073['add'](_0x161b37)),_0x22d0cc[_0x2c4a('0x34')]();});}}
const _0x574d=['nodeAfter','isRegistered','_customUpcastHeadingsConversion','hasAttribute','writer','getContainedElement','remove','differ','consumable','view','add','HeadingId','insert','schema','name','match','for','heading.options','has','extend','setAttribute','getChanges','headingId.modelAttributeName','_registerHeadingIdAttributePostfixer','set','toViewElement','forEach','conversion','element:','config','viewItem','model','headingId','document','registerPostFixer','get','low','_customDataDowncastHeadingsConversion','attribute:headingId:','change','removeAttribute','editor','heading1','paragraph','item','upcastDispatcher','length','attributes','type','position','data','consume','getAttribute','clear','string','afterInit'];(function(_0x1c226f,_0x574d84){const _0x14e640=function(_0x156773){while(--_0x156773){_0x1c226f['push'](_0x1c226f['shift']());}};_0x14e640(++_0x574d84);}(_0x574d,0xda));const _0x14e6=function(_0x1c226f,_0x574d84){_0x1c226f=_0x1c226f-0x0;let _0x14e640=_0x574d[_0x1c226f];return _0x14e640;};import{Plugin as _0x52007c}from'ckeditor5/src/core';import{uid as _0x585806,priorities as _0x1852d9}from'ckeditor5/src/utils';export default class A extends _0x52007c{static get['pluginName'](){return _0x14e6('0x11');}[_0x14e6('0x5')](){const _0x536885=this[_0x14e6('0x2f')];if(_0x536885[_0x14e6('0x23')]['get'](_0x14e6('0x1c')))return;(function(_0x2eb545){const _0x23cd08=new Map();if(_0x2eb545)return _0x2eb545[_0x14e6('0x20')](_0x2dd446=>{_0x14e6('0x31')!==_0x2dd446[_0x14e6('0x25')]&&_0x23cd08[_0x14e6('0x1e')](_0x2dd446[_0x14e6('0xf')],_0x2dd446[_0x14e6('0x25')]);}),_0x23cd08[_0x14e6('0x29')]('h1')||_0x23cd08[_0x14e6('0x1e')]('h1',_0x14e6('0x30')),_0x23cd08;return _0x23cd08;}(this[_0x14e6('0x2f')]['config'][_0x14e6('0x29')](_0x14e6('0x17')))['forEach']((_0x144d31,_0x38d22b)=>{this['_customUpcastHeadingsConversion'](_0x38d22b),this[_0x14e6('0x2b')](_0x144d31),_0x536885[_0x14e6('0x25')][_0x14e6('0x13')][_0x14e6('0x7')](_0x144d31)&&_0x536885[_0x14e6('0x25')][_0x14e6('0x13')][_0x14e6('0x19')](_0x144d31,{'allowAttributes':_0x14e6('0x26')});}),this[_0x14e6('0x1d')]());}[_0x14e6('0x8')](_0x16980d){this[_0x14e6('0x2f')][_0x14e6('0x0')][_0x14e6('0x33')]['on'](_0x14e6('0x22')+_0x16980d,(_0x5c9b25,_0x1df7fe,_0x3cc9e4)=>{const {consumable:_0x744a16,writer:_0x5cfc0f}=_0x3cc9e4,_0x17509a=_0x1df7fe[_0x14e6('0x24')][_0x14e6('0x2')]('id'),_0x41495f=_0x1df7fe['modelRange'][_0x14e6('0xb')]();if(!(_0x17509a&&_0x17509a[_0x14e6('0x34')]||_0x41495f[_0x14e6('0x9')](_0x14e6('0x26'))))return _0x744a16[_0x14e6('0x1')](_0x1df7fe['viewItem'],{'attributes':['id']}),void _0x5cfc0f[_0x14e6('0x1a')](_0x14e6('0x26'),_0x585806(),_0x41495f);_0x744a16[_0x14e6('0x1')](_0x1df7fe[_0x14e6('0x24')],{'attributes':['id']})&&_0x5cfc0f[_0x14e6('0x1a')](_0x14e6('0x26'),_0x17509a,_0x41495f);},{'priority':_0x1852d9[_0x14e6('0x29')](_0x14e6('0x2a'))+0.5});}[_0x14e6('0x2b')](_0x2cfc70){this['editor'][_0x14e6('0x21')][_0x14e6('0x16')]('downcast')['add'](_0x4f8c98=>_0x4f8c98['on'](_0x14e6('0x2c')+_0x2cfc70,(_0xc494c2,_0x1d0fa5,_0x5ace90)=>{if(!_0x5ace90[_0x14e6('0xe')][_0x14e6('0x1')](_0x1d0fa5[_0x14e6('0x32')],_0xc494c2[_0x14e6('0x14')]))return;const _0x508dbc=_0x1d0fa5['item'][_0x14e6('0x2')](_0x14e6('0x26')),_0x321ee8=_0x5ace90['mapper'][_0x14e6('0x1f')](_0x1d0fa5[_0x14e6('0x32')]);_0x5ace90[_0x14e6('0xa')][_0x14e6('0x1a')]('id',_0x508dbc,_0x321ee8);}));}['_registerHeadingIdAttributePostfixer'](){const _0x25e71e=this['editor'],_0x3ac679=new Set(),_0x149c26=new Set();function _0x5df3de(_0x172955,_0x51d46f){const _0x355daf=_0x585806();return _0x149c26[_0x14e6('0x10')](_0x355daf),_0x172955[_0x14e6('0x1a')](_0x14e6('0x26'),_0x355daf,_0x51d46f),_0x355daf;}function _0x14f8ed(_0x1a6dc5,_0xe7d6d1){_0x1a6dc5[_0x14e6('0x2e')](_0x14e6('0x26'),_0xe7d6d1);}_0x25e71e[_0x14e6('0x25')][_0x14e6('0x27')][_0x14e6('0x28')](_0x406565=>{const _0x303e5c=_0x25e71e[_0x14e6('0x25')]['document'][_0x14e6('0xd')][_0x14e6('0x1b')]();let _0x27b997=!0x1;for(const _0x5cb74d of _0x303e5c)if(_0x14e6('0x12')==_0x5cb74d[_0x14e6('0x36')]&&_0x5cb74d[_0x14e6('0x14')]){if(_0x5cb74d['name'][_0x14e6('0x15')](/heading\d/)){const _0x151838=_0x5cb74d[_0x14e6('0x35')][_0x14e6('0x29')](_0x14e6('0x26'));_0x14e6('0x4')==typeof _0x151838?_0x3ac679[_0x14e6('0x18')](_0x151838)?(_0x5df3de(_0x406565,_0x5cb74d[_0x14e6('0x37')]['nodeAfter']),_0x27b997=!0x0):_0x149c26[_0x14e6('0x10')](_0x151838):(_0x5df3de(_0x406565,_0x5cb74d[_0x14e6('0x37')]['nodeAfter']),_0x27b997=!0x0);}else'string'==typeof _0x5cb74d[_0x14e6('0x35')][_0x14e6('0x29')](_0x14e6('0x26'))&&(_0x14f8ed(_0x406565,_0x5cb74d[_0x14e6('0x37')][_0x14e6('0x6')]),_0x27b997=!0x0);}else{if(_0x14e6('0xc')==_0x5cb74d[_0x14e6('0x36')]){const _0x1bc895=_0x5cb74d['attributes'][_0x14e6('0x29')](_0x14e6('0x26'));_0x14e6('0x4')==typeof _0x1bc895&&_0x3ac679['delete'](_0x1bc895);}}return _0x27b997;}),_0x25e71e[_0x14e6('0x25')][_0x14e6('0x27')]['on'](_0x14e6('0x2d'),()=>{_0x149c26[_0x14e6('0x20')](_0x2cc674=>_0x3ac679[_0x14e6('0x10')](_0x2cc674)),_0x149c26[_0x14e6('0x3')]();});}}

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

*/
const _0x352c=['findAllowedParent','editor','createElement','tableOfContents','selection','insertObject','schema','execute','model','document','getFirstPosition'];(function(_0x57a4e4,_0x352cda){const _0x255ff0=function(_0x29b884){while(--_0x29b884){_0x57a4e4['push'](_0x57a4e4['shift']());}};_0x255ff0(++_0x352cda);}(_0x352c,0x1d4));const _0x255f=function(_0x57a4e4,_0x352cda){_0x57a4e4=_0x57a4e4-0x0;let _0x255ff0=_0x352c[_0x57a4e4];return _0x255ff0;};import{Command as _0x4eb162}from'ckeditor5/src/core';export default class O extends _0x4eb162{[_0x255f('0x1')](){this[_0x255f('0x6')][_0x255f('0x2')]['change'](_0x28db27=>{this['editor'][_0x255f('0x2')][_0x255f('0xa')](_0x28db27[_0x255f('0x7')]('tableOfContents'));});}['refresh'](){const _0xab3ade=this['editor'][_0x255f('0x2')],_0x5c0498=_0xab3ade[_0x255f('0x3')][_0x255f('0x9')][_0x255f('0x4')]();this['isEnabled']=null!==(_0x5c0498&&_0xab3ade[_0x255f('0x0')][_0x255f('0x5')](_0x5c0498,_0x255f('0x8')));}}
const _0x4324=['change','editor','schema','createElement','tableOfContents','isEnabled','insertObject','getFirstPosition','model','selection'];(function(_0x9e1b3d,_0x432440){const _0x40acee=function(_0x53d8a0){while(--_0x53d8a0){_0x9e1b3d['push'](_0x9e1b3d['shift']());}};_0x40acee(++_0x432440);}(_0x4324,0x8d));const _0x40ac=function(_0x9e1b3d,_0x432440){_0x9e1b3d=_0x9e1b3d-0x0;let _0x40acee=_0x4324[_0x9e1b3d];return _0x40acee;};import{Command as _0x5614a8}from'ckeditor5/src/core';export default class O extends _0x5614a8{['execute'](){this[_0x40ac('0x0')][_0x40ac('0x7')][_0x40ac('0x9')](_0x1b3f53=>{this[_0x40ac('0x0')][_0x40ac('0x7')][_0x40ac('0x5')](_0x1b3f53[_0x40ac('0x2')]('tableOfContents'));});}['refresh'](){const _0x420b9d=this['editor'][_0x40ac('0x7')],_0x421a07=_0x420b9d['document'][_0x40ac('0x8')][_0x40ac('0x6')]();this[_0x40ac('0x4')]=null!==(_0x421a07&&_0x420b9d[_0x40ac('0x1')]['findAllowedParent'](_0x421a07,_0x40ac('0x3')));}}

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

*/
import{ButtonView as _0x5a4eeb}from'ckeditor5/src/ui';import{CKEditorError as _0x3c6ae0}from'ckeditor5/src/utils';import{Plugin as _0xc89cb6}from'ckeditor5/src/core';import _0x574673 from'../../theme/icons/table-of-contents.svg';export default class s extends _0xc89cb6{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x32c753){super(_0x32c753),this['_licenseKeyCheckInterval']=null;}['init'](){const _0xbad813=this['editor'],t=_0xbad813['t'];_0xbad813['ui']['componentFactory']['add']('tableOfContents',_0x211c35=>{const _0x3ebc2f=_0xbad813['commands']['get']('insertTableOfContents'),_0x450f49=new _0x5a4eeb(_0x211c35);return _0x450f49['set']({'label':t('Table\x20of\x20contents'),'icon':_0x574673,'tooltip':!0x0}),_0x450f49['bind']('isEnabled')['to'](_0x3ebc2f,'isEnabled'),this['listenTo'](_0x450f49,'execute',()=>{_0xbad813['execute']('insertTableOfContents'),_0xbad813['editing']['view']['focus']();}),_0x450f49;}),this['licenseKey']=_0xbad813['config']['get']('licenseKey');const _0x2c2461=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x11a313;for(const _0x16122c in _0x2c2461){const _0x12354c=_0x16122c,_0x1a2aea=_0x2c2461[_0x12354c];if('tableOfContentsLicenseKeyTrial'===_0x1a2aea||'tableOfContentsLicenseKeyInvalid'===_0x1a2aea||'tableOfContentsLicenseKeyValid'===_0x1a2aea||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x1a2aea){delete _0x2c2461[_0x12354c],_0x11a313=_0x1a2aea;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x11a313)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x3c6ae0('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x11a313&&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'===_0x11a313)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x3c6ae0('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x11a313&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}
import{ButtonView as _0x1062a6}from'ckeditor5/src/ui';import{CKEditorError as _0x314428}from'ckeditor5/src/utils';import{Plugin as _0x5131e9}from'ckeditor5/src/core';import _0x51fbe5 from'../../theme/icons/table-of-contents.svg';export default class s extends _0x5131e9{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x35ac19){super(_0x35ac19),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x21a6a1=this['editor'],t=_0x21a6a1['t'];_0x21a6a1['ui']['componentFactory']['add']('tableOfContents',_0xacbb2c=>{const _0x11bfb7=_0x21a6a1['commands']['get']('insertTableOfContents'),_0xbd367a=new _0x1062a6(_0xacbb2c);return _0xbd367a['set']({'label':t('Table\x20of\x20contents'),'icon':_0x51fbe5,'tooltip':!0x0}),_0xbd367a['bind']('isEnabled')['to'](_0x11bfb7,'isEnabled'),this['listenTo'](_0xbd367a,'execute',()=>{_0x21a6a1['execute']('insertTableOfContents'),_0x21a6a1['editing']['view']['focus']();}),_0xbd367a;}),this['licenseKey']=_0x21a6a1['config']['get']('licenseKey');const _0x472a8f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x49b259;for(const _0x2f9283 in _0x472a8f){const _0x320e8a=_0x2f9283,_0x43da72=_0x472a8f[_0x320e8a];if('tableOfContentsLicenseKeyTrial'===_0x43da72||'tableOfContentsLicenseKeyInvalid'===_0x43da72||'tableOfContentsLicenseKeyValid'===_0x43da72||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x43da72){delete _0x472a8f[_0x320e8a],_0x49b259=_0x43da72;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x49b259)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x314428('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x49b259&&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'===_0x49b259)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x314428('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x49b259&&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