@ckeditor/ckeditor5-document-outline
Advanced tools
Comparing version 0.0.0-nightly-20230904.0 to 0.0.0-nightly-20230905.0
{ | ||
"name": "@ckeditor/ckeditor5-document-outline", | ||
"version": "0.0.0-nightly-20230904.0", | ||
"version": "0.0.0-nightly-20230905.0", | ||
"description": "Document outline feature for CKEditor 5.", | ||
@@ -15,4 +15,4 @@ "keywords": [ | ||
"dependencies": { | ||
"ckeditor5": "0.0.0-nightly-20230904.0", | ||
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20230904.0", | ||
"ckeditor5": "0.0.0-nightly-20230905.0", | ||
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20230905.0", | ||
"lodash-es": "4.17.21" | ||
@@ -19,0 +19,0 @@ }, |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x478d=['documentOutlineLicenseKeyTrial','pluginName','DocumentOutline','document-outline-trial-license-key-reached-limit-changes','documentOutlineLicenseKeyInvalid','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.','requires','destroy','document-outline-invalid-license-key','documentOutlineLicenseKeyTrialLimit:operations','documentOutlineLicenseKeyValid','init','_licenseKeyCheckInterval','editor'];(function(_0x4d020a,_0x478dee){const _0x27bf06=function(_0x1bf368){while(--_0x1bf368){_0x4d020a['push'](_0x4d020a['shift']());}};_0x27bf06(++_0x478dee);}(_0x478d,0x1a7));const _0x27bf=function(_0x4d020a,_0x478dee){_0x4d020a=_0x4d020a-0x0;let _0x27bf06=_0x478d[_0x4d020a];return _0x27bf06;};import{Plugin as _0x3635a3}from'ckeditor5/src/core';import{CKEditorError as _0x3f5fa7}from'ckeditor5/src/utils';import _0x96ca8d from'./documentoutline/documentoutlineutils';import _0x305687 from'./documentoutline/documentoutlineui';export default class l extends _0x3635a3{static get[_0x27bf('0x3')](){return[_0x96ca8d,_0x305687];}static get[_0x27bf('0xc')](){return _0x27bf('0xd');}constructor(_0x286151){super(_0x286151),this[_0x27bf('0x9')]=null;}[_0x27bf('0x8')](){const _0x316294=this[_0x27bf('0xa')];this['licenseKey']=_0x316294['config']['get']('licenseKey');const _0x333aa5=this[_0x27bf('0xa')];this[_0x27bf('0x9')]=setInterval(()=>{let _0x38cc07;for(const _0x76120 in _0x333aa5){const _0x57e666=_0x76120,_0x13651e=_0x333aa5[_0x57e666];if(_0x27bf('0xb')===_0x13651e||_0x27bf('0x1')===_0x13651e||_0x27bf('0x7')===_0x13651e||_0x27bf('0x6')===_0x13651e){delete _0x333aa5[_0x57e666],_0x38cc07=_0x13651e;break;}}if(_0x27bf('0x1')===_0x38cc07)throw clearInterval(this[_0x27bf('0x9')]),new _0x3f5fa7(_0x27bf('0x5'),null);if(_0x27bf('0xb')===_0x38cc07&&console['info'](_0x27bf('0x2')),_0x27bf('0x6')===_0x38cc07)throw clearInterval(this[_0x27bf('0x9')]),new _0x3f5fa7(_0x27bf('0x0'),null);'documentOutlineLicenseKeyValid'===_0x38cc07&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}[_0x27bf('0x4')](){this[_0x27bf('0x9')]&&clearInterval(this['_licenseKeyCheckInterval']);}} | ||
const _0x13b5=['get','editor','init','licenseKey','documentOutlineLicenseKeyTrial','documentOutlineLicenseKeyValid','_licenseKeyCheckInterval','DocumentOutline','requires','pluginName','documentOutlineLicenseKeyInvalid','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.','config','documentOutlineLicenseKeyTrialLimit:operations'];(function(_0x144547,_0x13b575){const _0x1f5299=function(_0x335c3b){while(--_0x335c3b){_0x144547['push'](_0x144547['shift']());}};_0x1f5299(++_0x13b575);}(_0x13b5,0xb9));const _0x1f52=function(_0x144547,_0x13b575){_0x144547=_0x144547-0x0;let _0x1f5299=_0x13b5[_0x144547];return _0x1f5299;};import{Plugin as _0x2d1f05}from'ckeditor5/src/core';import{CKEditorError as _0x5d1e74}from'ckeditor5/src/utils';import _0x537f42 from'./documentoutline/documentoutlineutils';import _0x464f78 from'./documentoutline/documentoutlineui';export default class l extends _0x2d1f05{static get[_0x1f52('0x3')](){return[_0x537f42,_0x464f78];}static get[_0x1f52('0x4')](){return _0x1f52('0x2');}constructor(_0x50077d){super(_0x50077d),this[_0x1f52('0x1')]=null;}[_0x1f52('0xc')](){const _0x141318=this[_0x1f52('0xb')];this[_0x1f52('0xd')]=_0x141318[_0x1f52('0x8')][_0x1f52('0xa')](_0x1f52('0xd'));const _0x28f4b8=this[_0x1f52('0xb')];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5ea454;for(const _0x566e54 in _0x28f4b8){const _0x25b25a=_0x566e54,_0x2c4146=_0x28f4b8[_0x25b25a];if('documentOutlineLicenseKeyTrial'===_0x2c4146||_0x1f52('0x5')===_0x2c4146||_0x1f52('0x0')===_0x2c4146||'documentOutlineLicenseKeyTrialLimit:operations'===_0x2c4146){delete _0x28f4b8[_0x25b25a],_0x5ea454=_0x2c4146;break;}}if('documentOutlineLicenseKeyInvalid'===_0x5ea454)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x5d1e74('document-outline-invalid-license-key',null);if(_0x1f52('0xe')===_0x5ea454&&console[_0x1f52('0x6')](_0x1f52('0x7')),_0x1f52('0x9')===_0x5ea454)throw clearInterval(this[_0x1f52('0x1')]),new _0x5d1e74('document-outline-trial-license-key-reached-limit-changes',null);'documentOutlineLicenseKeyValid'===_0x5ea454&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}['destroy'](){this[_0x1f52('0x1')]&&clearInterval(this['_licenseKeyCheckInterval']);}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x4bd5=['includes','selection','_deriveHeadingElementsFromConversion','_headingNames','editor','change','text','config','view','length','_getOutlineDefinitions','get','item','fire','getFirstPosition','push','findIndex','createElement','document','getRoot','element','modelElement','pluginName','documentOutline.headings','getRootNames','backward','afterInit','indexOf','model','getChild','_getActiveHeading','getChildren','level','name','data','DocumentOutlineUtils'];(function(_0x46bf7c,_0x4bd5ab){const _0x42f36e=function(_0x1de244){while(--_0x1de244){_0x46bf7c['push'](_0x46bf7c['shift']());}};_0x42f36e(++_0x4bd5ab);}(_0x4bd5,0x18d));const _0x42f3=function(_0x46bf7c,_0x4bd5ab){_0x46bf7c=_0x46bf7c-0x0;let _0x42f36e=_0x4bd5[_0x46bf7c];return _0x42f36e;};import{Plugin as _0x3d12cf}from'ckeditor5/src/core';import{debounce as _0x369630}from'lodash-es';import{TreeWalker as _0x487970}from'ckeditor5/src/engine';import{getElementText as _0x5453b2,getDefaultFeatureHeadingNames as _0xa0de9a}from'./utils';import{diff as _0x5e5e54,diffToChanges as _0x46e818}from'ckeditor5/src/utils';export default class n extends _0x3d12cf{constructor(){super(...arguments),this[_0x42f3('0x2')]=[];}static get[_0x42f3('0x15')](){return _0x42f3('0x22');}['init'](){const _0x2ae14e=this[_0x42f3('0x3')];this[_0x42f3('0x2')]=this['_getHeadingNames']();let _0x520e82=[];_0x2ae14e[_0x42f3('0x1b')][_0x42f3('0x11')]['on'](_0x42f3('0x4'),_0x369630(()=>{const _0x2dfa31=_0x520e82;_0x520e82=this[_0x42f3('0x9')]();const _0x50e715=_0x5e5e54(_0x2dfa31,_0x520e82,(_0x5ad858,_0x417dbf)=>_0x5ad858[_0x42f3('0x1f')]===_0x417dbf['level']&&_0x5ad858[_0x42f3('0x5')]===_0x417dbf[_0x42f3('0x5')]&&_0x5ad858[_0x42f3('0x14')]===_0x417dbf[_0x42f3('0x14')]),_0x473ecd=_0x46e818(_0x50e715,_0x520e82),_0x36fe15=this[_0x42f3('0x1d')](),_0x197933=_0x520e82[_0x42f3('0xf')](_0x353742=>_0x353742[_0x42f3('0x14')]===_0x36fe15);_0x473ecd['length']&&this[_0x42f3('0xc')](_0x42f3('0x4'),{'outlineDefinitions':_0x520e82,'activeItemIndex':_0x197933,'outlineChanges':_0x473ecd}),this[_0x42f3('0xc')]('activeItemIndex',{'index':_0x197933});},0xfa,{'leading':!0x0,'trailing':!0x0}));}[_0x42f3('0x19')](){this[_0x42f3('0x2')][_0x42f3('0x8')]||this[_0x42f3('0x1')]();}[_0x42f3('0x9')](){const _0x460111=this[_0x42f3('0x3')],_0x7480ea=[],_0x550e4f=this[_0x42f3('0x2')];for(const _0x3af5e6 of _0x460111[_0x42f3('0x1b')][_0x42f3('0x11')][_0x42f3('0x17')]())_0x2cd5c9(_0x460111[_0x42f3('0x1b')][_0x42f3('0x11')][_0x42f3('0x12')](_0x3af5e6));function _0x2cd5c9(_0x632bf4){for(const _0x5286e9 of _0x632bf4[_0x42f3('0x1e')]())_0x5286e9['is'](_0x42f3('0x13'))&&(_0x550e4f[_0x42f3('0x23')](_0x5286e9['name'])&&_0x7480ea[_0x42f3('0xe')]({'level':_0x550e4f[_0x42f3('0x1a')](_0x5286e9[_0x42f3('0x20')])+0x1,'text':_0x5453b2(_0x5286e9),'modelElement':_0x5286e9}),_0x2cd5c9(_0x5286e9));}return _0x7480ea;}[_0x42f3('0x1d')](){const _0x8d6e68=this[_0x42f3('0x3')][_0x42f3('0x1b')][_0x42f3('0x11')][_0x42f3('0x0')][_0x42f3('0xd')](),_0x9713ec=new _0x487970({'direction':_0x42f3('0x18'),'startPosition':_0x8d6e68});for(const _0x2f387f of _0x9713ec)if(_0x2f387f[_0x42f3('0xb')]['is']('element')&&this[_0x42f3('0x2')]['includes'](_0x2f387f[_0x42f3('0xb')][_0x42f3('0x20')]))return _0x2f387f[_0x42f3('0xb')];}['_getHeadingNames'](){const _0x2bde9d=this['editor'][_0x42f3('0x6')][_0x42f3('0xa')](_0x42f3('0x16'));return _0x2bde9d||_0xa0de9a(this[_0x42f3('0x3')]);}[_0x42f3('0x1')](){const _0x3146a8=this[_0x42f3('0x3')],_0x176606=['h1','h2','h3','h4','h5','h6'],_0x24daa5=[];for(const _0x7cc575 of _0x176606){const _0xc64292=_0x3146a8['editing'][_0x42f3('0x7')]['domConverter']['domToView'](document[_0x42f3('0x10')](_0x7cc575)),_0x493a36=_0x3146a8[_0x42f3('0x21')]['toModel'](_0xc64292)[_0x42f3('0x1c')](0x0);(null==_0x493a36?void 0x0:_0x493a36['is'](_0x42f3('0x13')))&&_0x24daa5[_0x42f3('0xe')](_0x493a36['name']);}this[_0x42f3('0x2')]=_0x24daa5;}} | ||
const _0x16c4=['text','getRoot','afterInit','includes','length','get','_getHeadingNames','level','_headingNames','editor','getFirstPosition','fire','init','change','editing','getChildren','model','_getOutlineDefinitions','item','_deriveHeadingElementsFromConversion','view','push','activeItemIndex','modelElement','config','data','toModel','document','createElement','documentOutline.headings','getChild','name','domToView','element','getRootNames'];(function(_0x2052f9,_0x16c40d){const _0x43d559=function(_0x21036d){while(--_0x21036d){_0x2052f9['push'](_0x2052f9['shift']());}};_0x43d559(++_0x16c40d);}(_0x16c4,0xeb));const _0x43d5=function(_0x2052f9,_0x16c40d){_0x2052f9=_0x2052f9-0x0;let _0x43d559=_0x16c4[_0x2052f9];return _0x43d559;};import{Plugin as _0x2dddfc}from'ckeditor5/src/core';import{debounce as _0xd40d42}from'lodash-es';import{TreeWalker as _0xaca080}from'ckeditor5/src/engine';import{getElementText as _0x52f3d6,getDefaultFeatureHeadingNames as _0x41dc5f}from'./utils';import{diff as _0x308786,diffToChanges as _0x17036b}from'ckeditor5/src/utils';export default class n extends _0x2dddfc{constructor(){super(...arguments),this[_0x43d5('0x12')]=[];}static get['pluginName'](){return'DocumentOutlineUtils';}[_0x43d5('0x16')](){const _0x575730=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x552bc1=[];_0x575730[_0x43d5('0x1a')]['document']['on'](_0x43d5('0x17'),_0xd40d42(()=>{const _0x5f5432=_0x552bc1;_0x552bc1=this[_0x43d5('0x1b')]();const _0x52c856=_0x308786(_0x5f5432,_0x552bc1,(_0x404279,_0xa4eeeb)=>_0x404279[_0x43d5('0x11')]===_0xa4eeeb[_0x43d5('0x11')]&&_0x404279[_0x43d5('0xa')]===_0xa4eeeb[_0x43d5('0xa')]&&_0x404279['modelElement']===_0xa4eeeb[_0x43d5('0x21')]),_0x29dd35=_0x17036b(_0x52c856,_0x552bc1),_0x2e797f=this['_getActiveHeading'](),_0x3d0f39=_0x552bc1['findIndex'](_0x4bd79d=>_0x4bd79d['modelElement']===_0x2e797f);_0x29dd35[_0x43d5('0xe')]&&this[_0x43d5('0x15')]('change',{'outlineDefinitions':_0x552bc1,'activeItemIndex':_0x3d0f39,'outlineChanges':_0x29dd35}),this[_0x43d5('0x15')](_0x43d5('0x20'),{'index':_0x3d0f39});},0xfa,{'leading':!0x0,'trailing':!0x0}));}[_0x43d5('0xc')](){this['_headingNames'][_0x43d5('0xe')]||this[_0x43d5('0x1d')]();}[_0x43d5('0x1b')](){const _0x53a0a8=this['editor'],_0x1c1d08=[],_0x3b415a=this[_0x43d5('0x12')];for(const _0x8460f8 of _0x53a0a8[_0x43d5('0x1a')]['document'][_0x43d5('0x9')]())_0x19b9c3(_0x53a0a8[_0x43d5('0x1a')][_0x43d5('0x2')][_0x43d5('0xb')](_0x8460f8));function _0x19b9c3(_0x1bf75a){for(const _0x147713 of _0x1bf75a[_0x43d5('0x19')]())_0x147713['is'](_0x43d5('0x8'))&&(_0x3b415a['includes'](_0x147713[_0x43d5('0x6')])&&_0x1c1d08[_0x43d5('0x1f')]({'level':_0x3b415a['indexOf'](_0x147713[_0x43d5('0x6')])+0x1,'text':_0x52f3d6(_0x147713),'modelElement':_0x147713}),_0x19b9c3(_0x147713));}return _0x1c1d08;}['_getActiveHeading'](){const _0x592908=this[_0x43d5('0x13')][_0x43d5('0x1a')][_0x43d5('0x2')]['selection'][_0x43d5('0x14')](),_0x27cfb9=new _0xaca080({'direction':'backward','startPosition':_0x592908});for(const _0x589988 of _0x27cfb9)if(_0x589988[_0x43d5('0x1c')]['is'](_0x43d5('0x8'))&&this['_headingNames'][_0x43d5('0xd')](_0x589988['item'][_0x43d5('0x6')]))return _0x589988[_0x43d5('0x1c')];}[_0x43d5('0x10')](){const _0x1f175a=this[_0x43d5('0x13')][_0x43d5('0x22')][_0x43d5('0xf')](_0x43d5('0x4'));return _0x1f175a||_0x41dc5f(this[_0x43d5('0x13')]);}[_0x43d5('0x1d')](){const _0x2146bc=this[_0x43d5('0x13')],_0x209671=['h1','h2','h3','h4','h5','h6'],_0x34404d=[];for(const _0x288428 of _0x209671){const _0x302e6e=_0x2146bc[_0x43d5('0x18')][_0x43d5('0x1e')]['domConverter'][_0x43d5('0x7')](document[_0x43d5('0x3')](_0x288428)),_0x1eefcf=_0x2146bc[_0x43d5('0x0')][_0x43d5('0x1')](_0x302e6e)[_0x43d5('0x5')](0x0);(null==_0x1eefcf?void 0x0:_0x1eefcf['is'](_0x43d5('0x8')))&&_0x34404d[_0x43d5('0x1f')](_0x1eefcf['name']);}this[_0x43d5('0x12')]=_0x34404d;}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
import{View as _0x2c5f55}from'ckeditor5/src/ui';export default class $ extends _0x2c5f55{constructor(_0x142248,_0x287db3=!0x1){super(_0x142248);const t=_0x142248['t'],_0x25fa75=this['bindTemplate'],_0x15c5f7=_0x287db3?'['+t('Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x4e14f8=>!_0x4e14f8),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x25fa75['to']('level',_0x1e7288=>'ck-document-outline__item_level-'+_0x1e7288),_0x25fa75['if']('isActive','ck-document-outline__item_active'),_0x25fa75['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x25fa75['to']('text')},'children':[{'text':_0x25fa75['to']('text',_0xb6a908=>_0xb6a908||_0x15c5f7)}],'on':{'click':_0x25fa75['to']('click')}});}} | ||
import{View as _0x1f2e4d}from'ckeditor5/src/ui';export default class $ extends _0x1f2e4d{constructor(_0x3d015c,_0x28c827=!0x1){super(_0x3d015c);const t=_0x3d015c['t'],_0xcc00f8=this['bindTemplate'],_0x5d3888=_0x28c827?'['+t('Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x4e126e=>!_0x4e126e),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0xcc00f8['to']('level',_0x3078a6=>'ck-document-outline__item_level-'+_0x3078a6),_0xcc00f8['if']('isActive','ck-document-outline__item_active'),_0xcc00f8['if']('isEmpty','ck-document-outline__item_empty')],'title':_0xcc00f8['to']('text')},'children':[{'text':_0xcc00f8['to']('text',_0x1915bc=>_0x1915bc||_0x5d3888)}],'on':{'click':_0xcc00f8['to']('click')}});}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
import{View as _0x42fb90}from'ckeditor5/src/ui';import{scrollAncestorsToShowTarget as _0x5cf9eb}from'ckeditor5/src/utils';import _0x159afb from'./documentoutlineitemview';export default class d extends _0x42fb90{constructor(_0x367b37,_0x582568=!0x1,_0x24848b){super(_0x367b37);const t=_0x367b37['t'];this['showEmptyHeadingText']=_0x582568,this['set']('activeItemIndex',-0x1),this['_documentOutlineContainer']=_0x24848b,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x366534,_0x57686b,_0x48e396,_0x37045a)=>{this['_setActiveItem'](_0x37045a,_0x48e396);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x367b37['contentLanguageDirection'],'data-document-outline-empty-placeholder':t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x62febc){_0x62febc['forEach'](_0x3b222a=>{'insert'==_0x3b222a['type']?this['_insertItem'](_0x3b222a['index'],..._0x3b222a['values']):'delete'==_0x3b222a['type']&&this['_deleteItem'](_0x3b222a['index'],_0x3b222a['howMany']);});}['_setActiveItem'](_0x5708f3,_0x589b93){if(-0x1!==_0x5708f3){const _0x24e0a1=this['items']['get'](_0x5708f3);_0x24e0a1&&(_0x24e0a1['isActive']=!0x1);}-0x1!==_0x589b93&&(this['items']['get'](_0x589b93)['isActive']=!0x0,this['_scrollToItem'](_0x589b93));}['_insertItem'](_0x14eee4,..._0x53aa7b){const _0x2c66b3=_0x53aa7b['map']((_0x59c32c,_0xbd411c)=>{const _0x4646b7=new _0x159afb(this['locale'],this['showEmptyHeadingText']);return _0x4646b7['text']=_0x59c32c['text'],_0x4646b7['level']=_0x59c32c['level'],_0x14eee4+_0xbd411c===this['activeItemIndex']&&(_0x4646b7['isActive']=!0x0),_0x4646b7;});this['items']['addMany'](_0x2c66b3,_0x14eee4);}['_deleteItem'](_0xa25e4,_0x38c460){do{this['items']['remove'](_0xa25e4);}while(--_0x38c460);}['_handleItemClick'](_0x2a2ac1){const _0x5a2d59=this['items']['getIndex'](_0x2a2ac1['source']);this['fire']('itemSelected',_0x5a2d59);}['_scrollToItem'](_0x48795f){_0x5cf9eb(this['items']['get'](_0x48795f)['element'],0x14,this['_documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}} | ||
import{View as _0x1b1292}from'ckeditor5/src/ui';import{scrollAncestorsToShowTarget as _0x500cd2}from'ckeditor5/src/utils';import _0x42e890 from'./documentoutlineitemview';export default class d extends _0x1b1292{constructor(_0x23118a,_0x118c83=!0x1,_0x5adc52){super(_0x23118a);const t=_0x23118a['t'];this['showEmptyHeadingText']=_0x118c83,this['set']('activeItemIndex',-0x1),this['_documentOutlineContainer']=_0x5adc52,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x519994,_0x4f382f,_0x2e54b0,_0x28c5c4)=>{this['_setActiveItem'](_0x28c5c4,_0x2e54b0);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x23118a['contentLanguageDirection'],'data-document-outline-empty-placeholder':t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x177815){_0x177815['forEach'](_0x2f566e=>{'insert'==_0x2f566e['type']?this['_insertItem'](_0x2f566e['index'],..._0x2f566e['values']):'delete'==_0x2f566e['type']&&this['_deleteItem'](_0x2f566e['index'],_0x2f566e['howMany']);});}['_setActiveItem'](_0x21ea16,_0x462109){if(-0x1!==_0x21ea16){const _0x44a84b=this['items']['get'](_0x21ea16);_0x44a84b&&(_0x44a84b['isActive']=!0x1);}-0x1!==_0x462109&&(this['items']['get'](_0x462109)['isActive']=!0x0,this['_scrollToItem'](_0x462109));}['_insertItem'](_0x2eacb9,..._0x555738){const _0xca07b3=_0x555738['map']((_0x439b86,_0x39e103)=>{const _0x300e49=new _0x42e890(this['locale'],this['showEmptyHeadingText']);return _0x300e49['text']=_0x439b86['text'],_0x300e49['level']=_0x439b86['level'],_0x2eacb9+_0x39e103===this['activeItemIndex']&&(_0x300e49['isActive']=!0x0),_0x300e49;});this['items']['addMany'](_0xca07b3,_0x2eacb9);}['_deleteItem'](_0x58e503,_0x4c5c0b){do{this['items']['remove'](_0x58e503);}while(--_0x4c5c0b);}['_handleItemClick'](_0x2e881c){const _0x4a8dfd=this['items']['getIndex'](_0x2e881c['source']);this['fire']('itemSelected',_0x4a8dfd);}['_scrollToItem'](_0x1d37cd){_0x500cd2(this['items']['get'](_0x1d37cd)['element'],0x14,this['_documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x1ca5=['htmlH1','model','htmlH6','heading.options','get','reduce','paragraph','has','push','plugins','getChildren','htmlH2','GeneralHtmlSupport','config','htmlH4','htmlH5'];(function(_0x4df2cb,_0x1ca520){const _0x108d86=function(_0x4c951b){while(--_0x4c951b){_0x4df2cb['push'](_0x4df2cb['shift']());}};_0x108d86(++_0x1ca520);}(_0x1ca5,0x1ab));const _0x108d=function(_0x4df2cb,_0x1ca520){_0x4df2cb=_0x4df2cb-0x0;let _0x108d86=_0x1ca5[_0x4df2cb];return _0x108d86;};import{Text as _0xcccb3b}from'ckeditor5/src/engine';export function getElementText(_0x3626ca){let _0x20410b='';for(const _0x334cdf of _0x3626ca[_0x108d('0xf')]())_0x334cdf instanceof _0xcccb3b&&(_0x20410b+=_0x334cdf['data']);return _0x20410b;}export function getDefaultFeatureHeadingNames(_0x543af9){const _0x38b9b6=_0x543af9[_0x108d('0x2')][_0x108d('0x9')](_0x108d('0x8'));return _0x38b9b6?_0x38b9b6[_0x108d('0xa')]((_0x5f1e7e,_0x3923b6)=>(_0x108d('0xb')!==_0x3923b6['model']&&_0x5f1e7e[_0x108d('0xd')](_0x3923b6[_0x108d('0x6')]),_0x5f1e7e),[]):_0x543af9[_0x108d('0xe')][_0x108d('0xc')](_0x108d('0x1'))?[_0x108d('0x5'),_0x108d('0x0'),'htmlH3',_0x108d('0x3'),_0x108d('0x4'),_0x108d('0x7')]:[];} | ||
const _0x1546=['has','GeneralHtmlSupport','get','paragraph','plugins','model','htmlH3','data','config','htmlH4','push','htmlH2','htmlH1','htmlH6'];(function(_0x19f8e1,_0x154691){const _0x1f2180=function(_0x28fd23){while(--_0x28fd23){_0x19f8e1['push'](_0x19f8e1['shift']());}};_0x1f2180(++_0x154691);}(_0x1546,0xd1));const _0x1f21=function(_0x19f8e1,_0x154691){_0x19f8e1=_0x19f8e1-0x0;let _0x1f2180=_0x1546[_0x19f8e1];return _0x1f2180;};import{Text as _0x5d0c45}from'ckeditor5/src/engine';export function getElementText(_0x4976e6){let _0x169207='';for(const _0x4cbf5d of _0x4976e6['getChildren']())_0x4cbf5d instanceof _0x5d0c45&&(_0x169207+=_0x4cbf5d[_0x1f21('0x8')]);return _0x169207;}export function getDefaultFeatureHeadingNames(_0x2be644){const _0x1a4f0e=_0x2be644[_0x1f21('0x9')][_0x1f21('0x3')]('heading.options');return _0x1a4f0e?_0x1a4f0e['reduce']((_0x9809f6,_0xfc231a)=>(_0x1f21('0x4')!==_0xfc231a[_0x1f21('0x6')]&&_0x9809f6[_0x1f21('0xb')](_0xfc231a[_0x1f21('0x6')]),_0x9809f6),[]):_0x2be644[_0x1f21('0x5')][_0x1f21('0x1')](_0x1f21('0x2'))?[_0x1f21('0xd'),_0x1f21('0xc'),_0x1f21('0x7'),_0x1f21('0xa'),'htmlH5',_0x1f21('0x0')]:[];} |
@@ -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 _0x530f9d 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':_0x530f9d};import'./augmentation'; | ||
export{default as DocumentOutline}from'./documentoutline';export{default as DocumentOutlineUI}from'./documentoutline/documentoutlineui';export{default as DocumentOutlineUtils}from'./documentoutline/documentoutlineutils';import _0x4f4b57 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':_0x4f4b57};import'./augmentation'; |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
var _0x5c41=['pluginName','requires'];(function(_0x4c0c86,_0x5c41ba){var _0x3b0da7=function(_0x1f7c55){while(--_0x1f7c55){_0x4c0c86['push'](_0x4c0c86['shift']());}};_0x3b0da7(++_0x5c41ba);}(_0x5c41,0x1a3));var _0x3b0d=function(_0x4c0c86,_0x5c41ba){_0x4c0c86=_0x4c0c86-0x0;var _0x3b0da7=_0x5c41[_0x4c0c86];return _0x3b0da7;};import{Plugin as _0x324c1d}from'ckeditor5/src/core';import _0xa398d9 from'./tableofcontents/tableofcontentsediting';import _0x4ea588 from'./tableofcontents/tableofcontentsui';export default class c extends _0x324c1d{static get[_0x3b0d('0x0')](){return[_0xa398d9,_0x4ea588];}static get[_0x3b0d('0x1')](){return'TableOfContents';}} | ||
var _0x34fe=['requires','pluginName','TableOfContents'];(function(_0x3f6d5f,_0x34fedb){var _0x4ce758=function(_0x4d0aae){while(--_0x4d0aae){_0x3f6d5f['push'](_0x3f6d5f['shift']());}};_0x4ce758(++_0x34fedb);}(_0x34fe,0x16e));var _0x4ce7=function(_0x3f6d5f,_0x34fedb){_0x3f6d5f=_0x3f6d5f-0x0;var _0x4ce758=_0x34fe[_0x3f6d5f];return _0x4ce758;};import{Plugin as _0x2f3453}from'ckeditor5/src/core';import _0x2f0200 from'./tableofcontents/tableofcontentsediting';import _0x53de1b from'./tableofcontents/tableofcontentsui';export default class c extends _0x2f3453{static get[_0x4ce7('0x0')](){return[_0x2f0200,_0x53de1b];}static get[_0x4ce7('0x1')](){return _0x4ce7('0x2');}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x22c3=['name','editor','model','extend','string','consume','_customUpcastHeadingsConversion','nodeAfter','hasAttribute','low','_customDataDowncastHeadingsConversion','element:','position','getContainedElement','toViewElement','downcast','data','afterInit','has','add','delete','isRegistered','view','writer','clear','headingId','document','headingId.modelAttributeName','forEach','attributes','for','HeadingId','pluginName','removeAttribute','differ','item','heading.options','modelRange','set','type','setAttribute','paragraph','conversion','viewItem','config','_registerHeadingIdAttributePostfixer','get','consumable','schema','change'];(function(_0x2473bf,_0x22c3c4){const _0x12256a=function(_0x8386a){while(--_0x8386a){_0x2473bf['push'](_0x2473bf['shift']());}};_0x12256a(++_0x22c3c4);}(_0x22c3,0xfd));const _0x1225=function(_0x2473bf,_0x22c3c4){_0x2473bf=_0x2473bf-0x0;let _0x12256a=_0x22c3[_0x2473bf];return _0x12256a;};import{Plugin as _0x518213}from'ckeditor5/src/core';import{uid as _0x5bab3d,priorities as _0x2b9f07}from'ckeditor5/src/utils';export default class A extends _0x518213{static get[_0x1225('0x1d')](){return _0x1225('0x1c');}[_0x1225('0xe')](){const _0x4cef9b=this[_0x1225('0x30')];if(_0x4cef9b[_0x1225('0x29')][_0x1225('0x2b')](_0x1225('0x18')))return;(function(_0x2518f6){const _0x3ca499=new Map();if(_0x2518f6)return _0x2518f6[_0x1225('0x19')](_0x47be78=>{_0x1225('0x26')!==_0x47be78[_0x1225('0x31')]&&_0x3ca499[_0x1225('0x23')](_0x47be78[_0x1225('0x13')],_0x47be78[_0x1225('0x31')]);}),_0x3ca499[_0x1225('0x2b')]('h1')||_0x3ca499[_0x1225('0x23')]('h1','heading1'),_0x3ca499;return _0x3ca499;}(this[_0x1225('0x30')][_0x1225('0x29')]['get'](_0x1225('0x21')))[_0x1225('0x19')]((_0x885f79,_0x5ed3bf)=>{this[_0x1225('0x3')](_0x5ed3bf),this[_0x1225('0x7')](_0x885f79),_0x4cef9b[_0x1225('0x31')][_0x1225('0x2d')][_0x1225('0x12')](_0x885f79)&&_0x4cef9b['model']['schema'][_0x1225('0x0')](_0x885f79,{'allowAttributes':_0x1225('0x16')});}),this[_0x1225('0x2a')]());}[_0x1225('0x3')](_0x3c3c61){this[_0x1225('0x30')][_0x1225('0xd')]['upcastDispatcher']['on'](_0x1225('0x8')+_0x3c3c61,(_0x364ca7,_0x128389,_0x1c82a2)=>{const {consumable:_0x5a814e,writer:_0x545164}=_0x1c82a2,_0x19ec8d=_0x128389[_0x1225('0x28')]['getAttribute']('id'),_0x237c4f=_0x128389[_0x1225('0x22')][_0x1225('0xa')]();if(!(_0x19ec8d&&_0x19ec8d['length']||_0x237c4f[_0x1225('0x5')](_0x1225('0x16'))))return _0x5a814e['consume'](_0x128389[_0x1225('0x28')],{'attributes':['id']}),void _0x545164[_0x1225('0x25')]('headingId',_0x5bab3d(),_0x237c4f);_0x5a814e['consume'](_0x128389[_0x1225('0x28')],{'attributes':['id']})&&_0x545164['setAttribute'](_0x1225('0x16'),_0x19ec8d,_0x237c4f);},{'priority':_0x2b9f07[_0x1225('0x2b')](_0x1225('0x6'))+0.5});}['_customDataDowncastHeadingsConversion'](_0x3921b4){this[_0x1225('0x30')][_0x1225('0x27')][_0x1225('0x1b')](_0x1225('0xc'))[_0x1225('0x10')](_0x21cfbc=>_0x21cfbc['on']('attribute:headingId:'+_0x3921b4,(_0x1ca121,_0x3701af,_0x39029d)=>{if(!_0x39029d[_0x1225('0x2c')][_0x1225('0x2')](_0x3701af[_0x1225('0x20')],_0x1ca121[_0x1225('0x2f')]))return;const _0x8a8e5a=_0x3701af[_0x1225('0x20')]['getAttribute']('headingId'),_0x3da2ac=_0x39029d['mapper'][_0x1225('0xb')](_0x3701af[_0x1225('0x20')]);_0x39029d[_0x1225('0x14')][_0x1225('0x25')]('id',_0x8a8e5a,_0x3da2ac);}));}[_0x1225('0x2a')](){const _0x428a75=this[_0x1225('0x30')],_0x3c7029=new Set(),_0x4a433f=new Set();function _0x1cbc79(_0x339daa,_0x1824af){const _0xa5bd0e=_0x5bab3d();return _0x4a433f[_0x1225('0x10')](_0xa5bd0e),_0x339daa[_0x1225('0x25')](_0x1225('0x16'),_0xa5bd0e,_0x1824af),_0xa5bd0e;}function _0x1df2c9(_0x5e889a,_0x47aa07){_0x5e889a[_0x1225('0x1e')](_0x1225('0x16'),_0x47aa07);}_0x428a75['model'][_0x1225('0x17')]['registerPostFixer'](_0x44badb=>{const _0x5eedf0=_0x428a75[_0x1225('0x31')][_0x1225('0x17')][_0x1225('0x1f')]['getChanges']();let _0x492ddf=!0x1;for(const _0x5f2bab of _0x5eedf0)if('insert'==_0x5f2bab[_0x1225('0x24')]&&_0x5f2bab[_0x1225('0x2f')]){if(_0x5f2bab[_0x1225('0x2f')]['match'](/heading\d/)){const _0x33b928=_0x5f2bab[_0x1225('0x1a')][_0x1225('0x2b')]('headingId');_0x1225('0x1')==typeof _0x33b928?_0x3c7029[_0x1225('0xf')](_0x33b928)?(_0x1cbc79(_0x44badb,_0x5f2bab[_0x1225('0x9')][_0x1225('0x4')]),_0x492ddf=!0x0):_0x4a433f[_0x1225('0x10')](_0x33b928):(_0x1cbc79(_0x44badb,_0x5f2bab[_0x1225('0x9')][_0x1225('0x4')]),_0x492ddf=!0x0);}else _0x1225('0x1')==typeof _0x5f2bab[_0x1225('0x1a')][_0x1225('0x2b')]('headingId')&&(_0x1df2c9(_0x44badb,_0x5f2bab[_0x1225('0x9')][_0x1225('0x4')]),_0x492ddf=!0x0);}else{if('remove'==_0x5f2bab[_0x1225('0x24')]){const _0x55bcc8=_0x5f2bab[_0x1225('0x1a')][_0x1225('0x2b')](_0x1225('0x16'));_0x1225('0x1')==typeof _0x55bcc8&&_0x3c7029[_0x1225('0x11')](_0x55bcc8);}}return _0x492ddf;}),_0x428a75['model'][_0x1225('0x17')]['on'](_0x1225('0x2e'),()=>{_0x4a433f[_0x1225('0x19')](_0x29d01b=>_0x3c7029[_0x1225('0x10')](_0x29d01b)),_0x4a433f[_0x1225('0x15')]();});}} | ||
const _0x175c=['remove','writer','_registerHeadingIdAttributePostfixer','model','upcastDispatcher','extend','nodeAfter','getChanges','downcast','length','getContainedElement','getAttribute','afterInit','editor','element:','hasAttribute','schema','setAttribute','string','document','heading1','modelRange','HeadingId','headingId','add','consumable','for','position','paragraph','attribute:headingId:','heading.options','differ','insert','pluginName','config','forEach','item','consume','data','clear','delete','mapper','type','_customDataDowncastHeadingsConversion','registerPostFixer','get','viewItem','toViewElement','attributes','name','_customUpcastHeadingsConversion','low','view','match'];(function(_0x17b8e7,_0x175ce6){const _0x965f0b=function(_0xe45b46){while(--_0xe45b46){_0x17b8e7['push'](_0x17b8e7['shift']());}};_0x965f0b(++_0x175ce6);}(_0x175c,0xc7));const _0x965f=function(_0x17b8e7,_0x175ce6){_0x17b8e7=_0x17b8e7-0x0;let _0x965f0b=_0x175c[_0x17b8e7];return _0x965f0b;};import{Plugin as _0x1e7a37}from'ckeditor5/src/core';import{uid as _0x5472fd,priorities as _0xe21f1e}from'ckeditor5/src/utils';export default class A extends _0x1e7a37{static get[_0x965f('0x32')](){return _0x965f('0x27');}[_0x965f('0x1d')](){const _0x568466=this[_0x965f('0x1e')];if(_0x568466[_0x965f('0x33')][_0x965f('0x8')]('headingId.modelAttributeName'))return;(function(_0x3df918){const _0x2828fd=new Map();if(_0x3df918)return _0x3df918[_0x965f('0x34')](_0x3e25da=>{_0x965f('0x2d')!==_0x3e25da[_0x965f('0x14')]&&_0x2828fd['set'](_0x3e25da[_0x965f('0xf')],_0x3e25da[_0x965f('0x14')]);}),_0x2828fd['get']('h1')||_0x2828fd['set']('h1',_0x965f('0x25')),_0x2828fd;return _0x2828fd;}(this[_0x965f('0x1e')]['config'][_0x965f('0x8')](_0x965f('0x2f')))['forEach']((_0x1b98a0,_0x3a7556)=>{this[_0x965f('0xd')](_0x3a7556),this[_0x965f('0x6')](_0x1b98a0),_0x568466[_0x965f('0x14')][_0x965f('0x21')]['isRegistered'](_0x1b98a0)&&_0x568466[_0x965f('0x14')][_0x965f('0x21')][_0x965f('0x16')](_0x1b98a0,{'allowAttributes':_0x965f('0x28')});}),this[_0x965f('0x13')]());}[_0x965f('0xd')](_0x9e6eab){this['editor'][_0x965f('0x1')][_0x965f('0x15')]['on'](_0x965f('0x1f')+_0x9e6eab,(_0x1ba93b,_0x2e6b0f,_0x4900fd)=>{const {consumable:_0x1d188c,writer:_0x36d847}=_0x4900fd,_0x5e002a=_0x2e6b0f[_0x965f('0x9')][_0x965f('0x1c')]('id'),_0x2afba1=_0x2e6b0f[_0x965f('0x26')][_0x965f('0x1b')]();if(!(_0x5e002a&&_0x5e002a[_0x965f('0x1a')]||_0x2afba1[_0x965f('0x20')]('headingId')))return _0x1d188c['consume'](_0x2e6b0f[_0x965f('0x9')],{'attributes':['id']}),void _0x36d847['setAttribute'](_0x965f('0x28'),_0x5472fd(),_0x2afba1);_0x1d188c[_0x965f('0x0')](_0x2e6b0f[_0x965f('0x9')],{'attributes':['id']})&&_0x36d847[_0x965f('0x22')]('headingId',_0x5e002a,_0x2afba1);},{'priority':_0xe21f1e[_0x965f('0x8')](_0x965f('0xe'))+0.5});}[_0x965f('0x6')](_0x162a99){this[_0x965f('0x1e')]['conversion'][_0x965f('0x2b')](_0x965f('0x19'))[_0x965f('0x29')](_0x209c50=>_0x209c50['on'](_0x965f('0x2e')+_0x162a99,(_0x27c3d8,_0x49a8a9,_0x2056e0)=>{if(!_0x2056e0[_0x965f('0x2a')][_0x965f('0x0')](_0x49a8a9[_0x965f('0x35')],_0x27c3d8[_0x965f('0xc')]))return;const _0x2875a6=_0x49a8a9[_0x965f('0x35')][_0x965f('0x1c')](_0x965f('0x28')),_0x478ec2=_0x2056e0[_0x965f('0x4')][_0x965f('0xa')](_0x49a8a9['item']);_0x2056e0[_0x965f('0x12')]['setAttribute']('id',_0x2875a6,_0x478ec2);}));}[_0x965f('0x13')](){const _0x249bfc=this[_0x965f('0x1e')],_0x2d4713=new Set(),_0x353e90=new Set();function _0x1b1c46(_0x21cf4e,_0x24ff13){const _0x1c5ce3=_0x5472fd();return _0x353e90[_0x965f('0x29')](_0x1c5ce3),_0x21cf4e[_0x965f('0x22')](_0x965f('0x28'),_0x1c5ce3,_0x24ff13),_0x1c5ce3;}function _0x2f3f26(_0x49b799,_0x1817a5){_0x49b799['removeAttribute'](_0x965f('0x28'),_0x1817a5);}_0x249bfc[_0x965f('0x14')][_0x965f('0x24')][_0x965f('0x7')](_0x58b7dc=>{const _0x3fcfa8=_0x249bfc[_0x965f('0x14')]['document'][_0x965f('0x30')][_0x965f('0x18')]();let _0x489eb5=!0x1;for(const _0x5ee547 of _0x3fcfa8)if(_0x965f('0x31')==_0x5ee547['type']&&_0x5ee547['name']){if(_0x5ee547[_0x965f('0xc')][_0x965f('0x10')](/heading\d/)){const _0xfee012=_0x5ee547[_0x965f('0xb')]['get'](_0x965f('0x28'));_0x965f('0x23')==typeof _0xfee012?_0x2d4713['has'](_0xfee012)?(_0x1b1c46(_0x58b7dc,_0x5ee547[_0x965f('0x2c')][_0x965f('0x17')]),_0x489eb5=!0x0):_0x353e90['add'](_0xfee012):(_0x1b1c46(_0x58b7dc,_0x5ee547[_0x965f('0x2c')][_0x965f('0x17')]),_0x489eb5=!0x0);}else _0x965f('0x23')==typeof _0x5ee547['attributes'][_0x965f('0x8')](_0x965f('0x28'))&&(_0x2f3f26(_0x58b7dc,_0x5ee547[_0x965f('0x2c')]['nodeAfter']),_0x489eb5=!0x0);}else{if(_0x965f('0x11')==_0x5ee547[_0x965f('0x5')]){const _0x50c130=_0x5ee547[_0x965f('0xb')][_0x965f('0x8')](_0x965f('0x28'));_0x965f('0x23')==typeof _0x50c130&&_0x2d4713[_0x965f('0x3')](_0x50c130);}}return _0x489eb5;}),_0x249bfc[_0x965f('0x14')][_0x965f('0x24')]['on']('change',()=>{_0x353e90[_0x965f('0x34')](_0x2e08eb=>_0x2d4713['add'](_0x2e08eb)),_0x353e90[_0x965f('0x2')]();});}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x2788=['findAllowedParent','execute','insertObject','document','createElement','editor','schema','getFirstPosition','model','tableOfContents'];(function(_0x31ec65,_0x278834){const _0x568aac=function(_0x258369){while(--_0x258369){_0x31ec65['push'](_0x31ec65['shift']());}};_0x568aac(++_0x278834);}(_0x2788,0x135));const _0x568a=function(_0x31ec65,_0x278834){_0x31ec65=_0x31ec65-0x0;let _0x568aac=_0x2788[_0x31ec65];return _0x568aac;};import{Command as _0x14c638}from'ckeditor5/src/core';export default class O extends _0x14c638{[_0x568a('0x2')](){this['editor']['model']['change'](_0x583d8a=>{this[_0x568a('0x6')][_0x568a('0x9')][_0x568a('0x3')](_0x583d8a[_0x568a('0x5')](_0x568a('0x0')));});}['refresh'](){const _0x10f900=this[_0x568a('0x6')][_0x568a('0x9')],_0x468d46=_0x10f900[_0x568a('0x4')]['selection'][_0x568a('0x8')]();this['isEnabled']=null!==(_0x468d46&&_0x10f900[_0x568a('0x7')][_0x568a('0x1')](_0x468d46,_0x568a('0x0')));}} | ||
const _0x36cf=['createElement','selection','tableOfContents','execute','editor','isEnabled','document','refresh','findAllowedParent','getFirstPosition','change','model'];(function(_0x4355be,_0x36cfe1){const _0x9a4c00=function(_0x48cc15){while(--_0x48cc15){_0x4355be['push'](_0x4355be['shift']());}};_0x9a4c00(++_0x36cfe1);}(_0x36cf,0x17f));const _0x9a4c=function(_0x4355be,_0x36cfe1){_0x4355be=_0x4355be-0x0;let _0x9a4c00=_0x36cf[_0x4355be];return _0x9a4c00;};import{Command as _0x7f9c32}from'ckeditor5/src/core';export default class O extends _0x7f9c32{[_0x9a4c('0x4')](){this[_0x9a4c('0x5')][_0x9a4c('0x0')][_0x9a4c('0xb')](_0x4e85df=>{this[_0x9a4c('0x5')][_0x9a4c('0x0')]['insertObject'](_0x4e85df[_0x9a4c('0x1')](_0x9a4c('0x3')));});}[_0x9a4c('0x8')](){const _0x6799d3=this[_0x9a4c('0x5')][_0x9a4c('0x0')],_0x1191ff=_0x6799d3[_0x9a4c('0x7')][_0x9a4c('0x2')][_0x9a4c('0xa')]();this[_0x9a4c('0x6')]=null!==(_0x1191ff&&_0x6799d3['schema'][_0x9a4c('0x9')](_0x1191ff,_0x9a4c('0x3')));}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
import{ButtonView as _0x5c4e65}from'ckeditor5/src/ui';import{CKEditorError as _0x480d3f}from'ckeditor5/src/utils';import{Plugin as _0x3bf685}from'ckeditor5/src/core';import _0x45884a from'../../theme/icons/table-of-contents.svg';export default class s extends _0x3bf685{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x408504){super(_0x408504),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x1ff4fe=this['editor'],t=_0x1ff4fe['t'];_0x1ff4fe['ui']['componentFactory']['add']('tableOfContents',_0x5c16ab=>{const _0x369bd4=_0x1ff4fe['commands']['get']('insertTableOfContents'),_0x217cf4=new _0x5c4e65(_0x5c16ab);return _0x217cf4['set']({'label':t('Table\x20of\x20contents'),'icon':_0x45884a,'tooltip':!0x0}),_0x217cf4['bind']('isEnabled')['to'](_0x369bd4,'isEnabled'),this['listenTo'](_0x217cf4,'execute',()=>{_0x1ff4fe['execute']('insertTableOfContents'),_0x1ff4fe['editing']['view']['focus']();}),_0x217cf4;}),this['licenseKey']=_0x1ff4fe['config']['get']('licenseKey');const _0x596673=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2abcc4;for(const _0x2e4ebf in _0x596673){const _0x1cbc5d=_0x2e4ebf,_0xaa8697=_0x596673[_0x1cbc5d];if('tableOfContentsLicenseKeyTrial'===_0xaa8697||'tableOfContentsLicenseKeyInvalid'===_0xaa8697||'tableOfContentsLicenseKeyValid'===_0xaa8697||'tableOfContentsLicenseKeyTrialLimit:operations'===_0xaa8697){delete _0x596673[_0x1cbc5d],_0x2abcc4=_0xaa8697;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x2abcc4)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x480d3f('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x2abcc4&&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'===_0x2abcc4)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x480d3f('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x2abcc4&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}} | ||
import{ButtonView as _0x5b9c56}from'ckeditor5/src/ui';import{CKEditorError as _0x51e8c5}from'ckeditor5/src/utils';import{Plugin as _0x27448c}from'ckeditor5/src/core';import _0x5a172c from'../../theme/icons/table-of-contents.svg';export default class s extends _0x27448c{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x41de97){super(_0x41de97),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x9a8993=this['editor'],t=_0x9a8993['t'];_0x9a8993['ui']['componentFactory']['add']('tableOfContents',_0x4f07fa=>{const _0xee3481=_0x9a8993['commands']['get']('insertTableOfContents'),_0x14f198=new _0x5b9c56(_0x4f07fa);return _0x14f198['set']({'label':t('Table\x20of\x20contents'),'icon':_0x5a172c,'tooltip':!0x0}),_0x14f198['bind']('isEnabled')['to'](_0xee3481,'isEnabled'),this['listenTo'](_0x14f198,'execute',()=>{_0x9a8993['execute']('insertTableOfContents'),_0x9a8993['editing']['view']['focus']();}),_0x14f198;}),this['licenseKey']=_0x9a8993['config']['get']('licenseKey');const _0x3746cb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x558e08;for(const _0x46b608 in _0x3746cb){const _0x151b6a=_0x46b608,_0x2dd6d1=_0x3746cb[_0x151b6a];if('tableOfContentsLicenseKeyTrial'===_0x2dd6d1||'tableOfContentsLicenseKeyInvalid'===_0x2dd6d1||'tableOfContentsLicenseKeyValid'===_0x2dd6d1||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x2dd6d1){delete _0x3746cb[_0x151b6a],_0x558e08=_0x2dd6d1;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x558e08)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x51e8c5('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x558e08&&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'===_0x558e08)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x51e8c5('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x558e08&&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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
396463
+ Added@ckeditor/ckeditor5-clipboard@0.0.0-nightly-20230905.0(transitive)
+ Added@ckeditor/ckeditor5-core@0.0.0-nightly-20230905.0(transitive)
+ Added@ckeditor/ckeditor5-engine@0.0.0-nightly-20230905.0(transitive)
+ Added@ckeditor/ckeditor5-enter@0.0.0-nightly-20230905.0(transitive)
+ Added@ckeditor/ckeditor5-paragraph@0.0.0-nightly-20230905.0(transitive)
+ Added@ckeditor/ckeditor5-select-all@0.0.0-nightly-20230905.0(transitive)
+ Added@ckeditor/ckeditor5-typing@0.0.0-nightly-20230905.0(transitive)
+ Added@ckeditor/ckeditor5-ui@0.0.0-nightly-20230905.0(transitive)
+ Added@ckeditor/ckeditor5-undo@0.0.0-nightly-20230905.0(transitive)
+ Added@ckeditor/ckeditor5-upload@0.0.0-nightly-20230905.0(transitive)
+ Added@ckeditor/ckeditor5-utils@0.0.0-nightly-20230905.0(transitive)
+ Added@ckeditor/ckeditor5-watchdog@0.0.0-nightly-20230905.0(transitive)
+ Added@ckeditor/ckeditor5-widget@0.0.0-nightly-20230905.0(transitive)
+ Addedckeditor5@0.0.0-nightly-20230905.0(transitive)
- Removed@ckeditor/ckeditor5-clipboard@0.0.0-nightly-20230904.0(transitive)
- Removed@ckeditor/ckeditor5-core@0.0.0-nightly-20230904.0(transitive)
- Removed@ckeditor/ckeditor5-engine@0.0.0-nightly-20230904.0(transitive)
- Removed@ckeditor/ckeditor5-enter@0.0.0-nightly-20230904.0(transitive)
- Removed@ckeditor/ckeditor5-paragraph@0.0.0-nightly-20230904.0(transitive)
- Removed@ckeditor/ckeditor5-select-all@0.0.0-nightly-20230904.0(transitive)
- Removed@ckeditor/ckeditor5-typing@0.0.0-nightly-20230904.0(transitive)
- Removed@ckeditor/ckeditor5-ui@0.0.0-nightly-20230904.0(transitive)
- Removed@ckeditor/ckeditor5-undo@0.0.0-nightly-20230904.0(transitive)
- Removed@ckeditor/ckeditor5-upload@0.0.0-nightly-20230904.0(transitive)
- Removed@ckeditor/ckeditor5-utils@0.0.0-nightly-20230904.0(transitive)
- Removed@ckeditor/ckeditor5-watchdog@0.0.0-nightly-20230904.0(transitive)
- Removed@ckeditor/ckeditor5-widget@0.0.0-nightly-20230904.0(transitive)
- Removedckeditor5@0.0.0-nightly-20230904.0(transitive)