@ckeditor/ckeditor5-document-outline
Advanced tools
Comparing version 0.0.0-nightly-20231103.0 to 0.0.0-nightly-20231104.0
@@ -5,3 +5,3 @@ Software License Agreement | ||
**CKEditor 5 document outline feature** (https://ckeditor.com/ckeditor-5/)<br> | ||
Copyright (c) 2003-2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved. | ||
Copyright (c) 2003–2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved. | ||
@@ -18,3 +18,3 @@ CKEditor 5 document outline feature is licensed under a commercial license and is protected by copyright law. | ||
* Lo-Dash - Copyright (c) JS Foundation and other contributors https://js.foundation/. Based on Underscore.js, copyright Jeremy Ashkenas. | ||
* Lodash - Copyright (c) JS Foundation and other contributors https://js.foundation/. Based on Underscore.js, copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors http://underscorejs.org/. | ||
@@ -24,2 +24,2 @@ Trademarks | ||
**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders. | ||
**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks, or service marks of their respective holders. |
{ | ||
"name": "@ckeditor/ckeditor5-document-outline", | ||
"version": "0.0.0-nightly-20231103.0", | ||
"version": "0.0.0-nightly-20231104.0", | ||
"description": "Document outline feature for CKEditor 5.", | ||
@@ -15,4 +15,4 @@ "keywords": [ | ||
"dependencies": { | ||
"ckeditor5": "0.0.0-nightly-20231103.0", | ||
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20231103.0", | ||
"ckeditor5": "0.0.0-nightly-20231104.0", | ||
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20231104.0", | ||
"lodash-es": "4.17.21" | ||
@@ -19,0 +19,0 @@ }, |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x27b6=['documentOutlineLicenseKeyTrialLimit:operations','document-outline-invalid-license-key','documentOutlineLicenseKeyValid','config','pluginName','info','_licenseKeyCheckInterval','licenseKey','editor','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.','init','documentOutlineLicenseKeyInvalid','documentOutlineLicenseKeyTrial','document-outline-trial-license-key-reached-limit-changes'];(function(_0x226ffa,_0x27b6c6){const _0x5b15f9=function(_0x346023){while(--_0x346023){_0x226ffa['push'](_0x226ffa['shift']());}};_0x5b15f9(++_0x27b6c6);}(_0x27b6,0xf4));const _0x5b15=function(_0x226ffa,_0x27b6c6){_0x226ffa=_0x226ffa-0x0;let _0x5b15f9=_0x27b6[_0x226ffa];return _0x5b15f9;};import{Plugin as _0x38cd67}from'ckeditor5/src/core';import{CKEditorError as _0x4cfb57}from'ckeditor5/src/utils';import _0x4b3f33 from'./documentoutline/documentoutlineutils';import _0x12294f from'./documentoutline/documentoutlineui';export default class l extends _0x38cd67{static get['requires'](){return[_0x4b3f33,_0x12294f];}static get[_0x5b15('0xc')](){return'DocumentOutline';}constructor(_0x4f2e4d){super(_0x4f2e4d),this['_licenseKeyCheckInterval']=null;}[_0x5b15('0x4')](){const _0x1adc44=this[_0x5b15('0x2')];this['licenseKey']=_0x1adc44[_0x5b15('0xb')]['get'](_0x5b15('0x1'));const _0x27a0f1=this[_0x5b15('0x2')];this[_0x5b15('0x0')]=setInterval(()=>{let _0x3c0572;for(const _0x1c9653 in _0x27a0f1){const _0x27abf6=_0x1c9653,_0x24ce4f=_0x27a0f1[_0x27abf6];if('documentOutlineLicenseKeyTrial'===_0x24ce4f||'documentOutlineLicenseKeyInvalid'===_0x24ce4f||'documentOutlineLicenseKeyValid'===_0x24ce4f||_0x5b15('0x8')===_0x24ce4f){delete _0x27a0f1[_0x27abf6],_0x3c0572=_0x24ce4f;break;}}if(_0x5b15('0x5')===_0x3c0572)throw clearInterval(this[_0x5b15('0x0')]),new _0x4cfb57(_0x5b15('0x9'),null);if(_0x5b15('0x6')===_0x3c0572&&console[_0x5b15('0xd')](_0x5b15('0x3')),_0x5b15('0x8')===_0x3c0572)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x4cfb57(_0x5b15('0x7'),null);_0x5b15('0xa')===_0x3c0572&&clearInterval(this[_0x5b15('0x0')]);},0x3e8);}['destroy'](){this[_0x5b15('0x0')]&&clearInterval(this[_0x5b15('0x0')]);}} | ||
const _0x3b27=['_licenseKeyCheckInterval','info','documentOutlineLicenseKeyTrial','init','requires','config','document-outline-invalid-license-key','DocumentOutline','editor','licenseKey','documentOutlineLicenseKeyInvalid','pluginName','documentOutlineLicenseKeyTrialLimit:operations'];(function(_0x46f9bd,_0x3b273f){const _0x3d88e2=function(_0x4e20e4){while(--_0x4e20e4){_0x46f9bd['push'](_0x46f9bd['shift']());}};_0x3d88e2(++_0x3b273f);}(_0x3b27,0x18e));const _0x3d88=function(_0x46f9bd,_0x3b273f){_0x46f9bd=_0x46f9bd-0x0;let _0x3d88e2=_0x3b27[_0x46f9bd];return _0x3d88e2;};import{Plugin as _0x371f73}from'ckeditor5/src/core';import{CKEditorError as _0x2aa4c0}from'ckeditor5/src/utils';import _0x7e74bf from'./documentoutline/documentoutlineutils';import _0x5b71fc from'./documentoutline/documentoutlineui';export default class l extends _0x371f73{static get[_0x3d88('0x9')](){return[_0x7e74bf,_0x5b71fc];}static get[_0x3d88('0x3')](){return _0x3d88('0xc');}constructor(_0x114ab2){super(_0x114ab2),this['_licenseKeyCheckInterval']=null;}[_0x3d88('0x8')](){const _0x32ff9e=this[_0x3d88('0x0')];this[_0x3d88('0x1')]=_0x32ff9e[_0x3d88('0xa')]['get'](_0x3d88('0x1'));const _0x554fd8=this['editor'];this[_0x3d88('0x5')]=setInterval(()=>{let _0x268c18;for(const _0x3bd60a in _0x554fd8){const _0xed97b1=_0x3bd60a,_0x2bfa2b=_0x554fd8[_0xed97b1];if(_0x3d88('0x7')===_0x2bfa2b||_0x3d88('0x2')===_0x2bfa2b||'documentOutlineLicenseKeyValid'===_0x2bfa2b||_0x3d88('0x4')===_0x2bfa2b){delete _0x554fd8[_0xed97b1],_0x268c18=_0x2bfa2b;break;}}if(_0x3d88('0x2')===_0x268c18)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x2aa4c0(_0x3d88('0xb'),null);if('documentOutlineLicenseKeyTrial'===_0x268c18&&console[_0x3d88('0x6')]('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.'),_0x3d88('0x4')===_0x268c18)throw clearInterval(this[_0x3d88('0x5')]),new _0x2aa4c0('document-outline-trial-license-key-reached-limit-changes',null);'documentOutlineLicenseKeyValid'===_0x268c18&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}['destroy'](){this[_0x3d88('0x5')]&&clearInterval(this['_licenseKeyCheckInterval']);}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x4790=['length','modelElement','text','editing','fire','findIndex','get','createElement','document','element','model','selection','config','view','getRootNames','_headingNames','editor','afterInit','DocumentOutlineUtils','domToView','push','toModel','includes','getChildren','name','activeItemIndex','getFirstPosition','_getHeadingNames','item','init','indexOf','getChild','change','domConverter','level','_getOutlineDefinitions','_getActiveHeading','getRoot','data','_deriveHeadingElementsFromConversion','pluginName'];(function(_0x1358de,_0x47908b){const _0x3239d5=function(_0x4ff07a){while(--_0x4ff07a){_0x1358de['push'](_0x1358de['shift']());}};_0x3239d5(++_0x47908b);}(_0x4790,0x69));const _0x3239=function(_0x1358de,_0x47908b){_0x1358de=_0x1358de-0x0;let _0x3239d5=_0x4790[_0x1358de];return _0x3239d5;};import{Plugin as _0x3131c9}from'ckeditor5/src/core';import{debounce as _0x292708}from'lodash-es';import{TreeWalker as _0x41e88a}from'ckeditor5/src/engine';import{getElementText as _0x4916f9,getDefaultFeatureHeadingNames as _0x1c14bf}from'./utils';import{diff as _0x76ec3b,diffToChanges as _0x18e7ee}from'ckeditor5/src/utils';export default class n extends _0x3131c9{constructor(){super(...arguments),this['_headingNames']=[];}static get[_0x3239('0x11')](){return _0x3239('0x24');}[_0x3239('0x6')](){const _0x379f47=this[_0x3239('0x22')];this[_0x3239('0x21')]=this[_0x3239('0x4')]();let _0xe7c1d0=[];_0x379f47[_0x3239('0x1c')][_0x3239('0x1a')]['on'](_0x3239('0x9'),_0x292708(()=>{const _0x55504b=_0xe7c1d0;_0xe7c1d0=this[_0x3239('0xc')]();const _0x2bbb23=_0x76ec3b(_0x55504b,_0xe7c1d0,(_0x22771f,_0xafc3bc)=>_0x22771f[_0x3239('0xb')]===_0xafc3bc[_0x3239('0xb')]&&_0x22771f[_0x3239('0x14')]===_0xafc3bc[_0x3239('0x14')]&&_0x22771f[_0x3239('0x13')]===_0xafc3bc[_0x3239('0x13')]),_0x308c8d=_0x18e7ee(_0x2bbb23,_0xe7c1d0),_0x158c64=this['_getActiveHeading'](),_0x154f88=_0xe7c1d0[_0x3239('0x17')](_0x3f9f8d=>_0x3f9f8d['modelElement']===_0x158c64);_0x308c8d['length']&&this[_0x3239('0x16')](_0x3239('0x9'),{'outlineDefinitions':_0xe7c1d0,'activeItemIndex':_0x154f88,'outlineChanges':_0x308c8d}),this[_0x3239('0x16')](_0x3239('0x2'),{'index':_0x154f88});},0xfa,{'leading':!0x0,'trailing':!0x0}));}[_0x3239('0x23')](){this['_headingNames'][_0x3239('0x12')]||this[_0x3239('0x10')]();}[_0x3239('0xc')](){const _0x1b5fc0=this[_0x3239('0x22')],_0x14d174=[],_0x53c233=this['_headingNames'];for(const _0x5cb6d6 of _0x1b5fc0['model'][_0x3239('0x1a')][_0x3239('0x20')]())_0x448ff7(_0x1b5fc0[_0x3239('0x1c')]['document'][_0x3239('0xe')](_0x5cb6d6));function _0x448ff7(_0x3b4101){for(const _0x2f47c1 of _0x3b4101[_0x3239('0x0')]())_0x2f47c1['is']('element')&&(_0x53c233[_0x3239('0x28')](_0x2f47c1[_0x3239('0x1')])&&_0x14d174[_0x3239('0x26')]({'level':_0x53c233[_0x3239('0x7')](_0x2f47c1['name'])+0x1,'text':_0x4916f9(_0x2f47c1),'modelElement':_0x2f47c1}),_0x448ff7(_0x2f47c1));}return _0x14d174;}[_0x3239('0xd')](){const _0x5753cb=this[_0x3239('0x22')][_0x3239('0x1c')][_0x3239('0x1a')][_0x3239('0x1d')][_0x3239('0x3')](),_0x41d447=new _0x41e88a({'direction':'backward','startPosition':_0x5753cb});for(const _0xc906f of _0x41d447)if(_0xc906f['item']['is']('element')&&this['_headingNames'][_0x3239('0x28')](_0xc906f[_0x3239('0x5')][_0x3239('0x1')]))return _0xc906f[_0x3239('0x5')];}[_0x3239('0x4')](){const _0x419f7e=this[_0x3239('0x22')][_0x3239('0x1e')][_0x3239('0x18')]('documentOutline.headings');return _0x419f7e||_0x1c14bf(this['editor']);}[_0x3239('0x10')](){const _0x79666a=this[_0x3239('0x22')],_0x3cdda3=['h1','h2','h3','h4','h5','h6'],_0x39ce79=[];for(const _0x2497ae of _0x3cdda3){const _0x174ba9=_0x79666a[_0x3239('0x15')][_0x3239('0x1f')][_0x3239('0xa')][_0x3239('0x25')](document[_0x3239('0x19')](_0x2497ae)),_0x3b8fae=_0x79666a[_0x3239('0xf')][_0x3239('0x27')](_0x174ba9)[_0x3239('0x8')](0x0);(null==_0x3b8fae?void 0x0:_0x3b8fae['is'](_0x3239('0x1b')))&&_0x39ce79[_0x3239('0x26')](_0x3b8fae['name']);}this[_0x3239('0x21')]=_0x39ce79;}} | ||
const _0x5b43=['editor','createElement','domToView','level','document','domConverter','config','_deriveHeadingElementsFromConversion','_getActiveHeading','fire','findIndex','name','documentOutline.headings','push','init','view','selection','modelElement','indexOf','afterInit','model','text','getChild','backward','editing','DocumentOutlineUtils','get','toModel','item','element','_getHeadingNames','getRootNames','change','_headingNames','includes','_getOutlineDefinitions','activeItemIndex','length'];(function(_0x1b7fbf,_0x5b4381){const _0x3be9fd=function(_0xf3d7d7){while(--_0xf3d7d7){_0x1b7fbf['push'](_0x1b7fbf['shift']());}};_0x3be9fd(++_0x5b4381);}(_0x5b43,0xd7));const _0x3be9=function(_0x1b7fbf,_0x5b4381){_0x1b7fbf=_0x1b7fbf-0x0;let _0x3be9fd=_0x5b43[_0x1b7fbf];return _0x3be9fd;};import{Plugin as _0x3f9a64}from'ckeditor5/src/core';import{debounce as _0x3fc169}from'lodash-es';import{TreeWalker as _0x16b699}from'ckeditor5/src/engine';import{getElementText as _0x44c60c,getDefaultFeatureHeadingNames as _0x1c144a}from'./utils';import{diff as _0x29bdb4,diffToChanges as _0x2eca30}from'ckeditor5/src/utils';export default class n extends _0x3f9a64{constructor(){super(...arguments),this[_0x3be9('0x8')]=[];}static get['pluginName'](){return _0x3be9('0x0');}[_0x3be9('0x1b')](){const _0x2613fb=this['editor'];this[_0x3be9('0x8')]=this['_getHeadingNames']();let _0x245524=[];_0x2613fb[_0x3be9('0x21')][_0x3be9('0x11')]['on'](_0x3be9('0x7'),_0x3fc169(()=>{const _0x1f42d1=_0x245524;_0x245524=this[_0x3be9('0xa')]();const _0x4027d6=_0x29bdb4(_0x1f42d1,_0x245524,(_0x8e9e7a,_0x246f71)=>_0x8e9e7a[_0x3be9('0x10')]===_0x246f71[_0x3be9('0x10')]&&_0x8e9e7a[_0x3be9('0x22')]===_0x246f71['text']&&_0x8e9e7a['modelElement']===_0x246f71[_0x3be9('0x1e')]),_0x319150=_0x2eca30(_0x4027d6,_0x245524),_0x574cf4=this[_0x3be9('0x15')](),_0x2902c0=_0x245524[_0x3be9('0x17')](_0x142cd4=>_0x142cd4[_0x3be9('0x1e')]===_0x574cf4);_0x319150[_0x3be9('0xc')]&&this[_0x3be9('0x16')](_0x3be9('0x7'),{'outlineDefinitions':_0x245524,'activeItemIndex':_0x2902c0,'outlineChanges':_0x319150}),this[_0x3be9('0x16')](_0x3be9('0xb'),{'index':_0x2902c0});},0xfa,{'leading':!0x0,'trailing':!0x0}));}[_0x3be9('0x20')](){this['_headingNames'][_0x3be9('0xc')]||this[_0x3be9('0x14')]();}['_getOutlineDefinitions'](){const _0x4e400b=this[_0x3be9('0xd')],_0x271146=[],_0x467fc4=this[_0x3be9('0x8')];for(const _0x12708a of _0x4e400b[_0x3be9('0x21')]['document'][_0x3be9('0x6')]())_0x13972d(_0x4e400b[_0x3be9('0x21')][_0x3be9('0x11')]['getRoot'](_0x12708a));function _0x13972d(_0x557af4){for(const _0x4a2237 of _0x557af4['getChildren']())_0x4a2237['is'](_0x3be9('0x4'))&&(_0x467fc4[_0x3be9('0x9')](_0x4a2237[_0x3be9('0x18')])&&_0x271146[_0x3be9('0x1a')]({'level':_0x467fc4[_0x3be9('0x1f')](_0x4a2237['name'])+0x1,'text':_0x44c60c(_0x4a2237),'modelElement':_0x4a2237}),_0x13972d(_0x4a2237));}return _0x271146;}[_0x3be9('0x15')](){const _0x32a7f4=this[_0x3be9('0xd')][_0x3be9('0x21')][_0x3be9('0x11')][_0x3be9('0x1d')]['getFirstPosition'](),_0x16842d=new _0x16b699({'direction':_0x3be9('0x24'),'startPosition':_0x32a7f4});for(const _0x50a4d1 of _0x16842d)if(_0x50a4d1['item']['is'](_0x3be9('0x4'))&&this['_headingNames'][_0x3be9('0x9')](_0x50a4d1[_0x3be9('0x3')][_0x3be9('0x18')]))return _0x50a4d1[_0x3be9('0x3')];}[_0x3be9('0x5')](){const _0x48ac98=this[_0x3be9('0xd')][_0x3be9('0x13')][_0x3be9('0x1')](_0x3be9('0x19'));return _0x48ac98||_0x1c144a(this[_0x3be9('0xd')]);}['_deriveHeadingElementsFromConversion'](){const _0x25b015=this[_0x3be9('0xd')],_0x157b25=['h1','h2','h3','h4','h5','h6'],_0x164e4a=[];for(const _0x3f2773 of _0x157b25){const _0x247042=_0x25b015[_0x3be9('0x25')][_0x3be9('0x1c')][_0x3be9('0x12')][_0x3be9('0xf')](document[_0x3be9('0xe')](_0x3f2773)),_0x34f488=_0x25b015['data'][_0x3be9('0x2')](_0x247042)[_0x3be9('0x23')](0x0);(null==_0x34f488?void 0x0:_0x34f488['is'](_0x3be9('0x4')))&&_0x164e4a['push'](_0x34f488[_0x3be9('0x18')]);}this[_0x3be9('0x8')]=_0x164e4a;}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
import{View as _0x31a6bd}from'ckeditor5/src/ui';export default class $ extends _0x31a6bd{constructor(_0x19e973,_0x23affd=!0x1){super(_0x19e973);const t=_0x19e973['t'],_0x46f0d8=this['bindTemplate'],_0xca3e29=_0x23affd?'['+t('Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x515185=>!_0x515185),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x46f0d8['to']('level',_0x3c62f5=>'ck-document-outline__item_level-'+_0x3c62f5),_0x46f0d8['if']('isActive','ck-document-outline__item_active'),_0x46f0d8['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x46f0d8['to']('text')},'children':[{'text':_0x46f0d8['to']('text',_0x2d9b7b=>_0x2d9b7b||_0xca3e29)}],'on':{'click':_0x46f0d8['to']('click')}});}} | ||
import{View as _0x407c79}from'ckeditor5/src/ui';export default class $ extends _0x407c79{constructor(_0x2ff652,_0x4e16d6=!0x1){super(_0x2ff652);const t=_0x2ff652['t'],_0x51b841=this['bindTemplate'],_0x46de9e=_0x4e16d6?'['+t('Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x27723d=>!_0x27723d),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x51b841['to']('level',_0x1e4161=>'ck-document-outline__item_level-'+_0x1e4161),_0x51b841['if']('isActive','ck-document-outline__item_active'),_0x51b841['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x51b841['to']('text')},'children':[{'text':_0x51b841['to']('text',_0x14b695=>_0x14b695||_0x46de9e)}],'on':{'click':_0x51b841['to']('click')}});}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
import{View as _0x4ee138}from'ckeditor5/src/ui';import{scrollAncestorsToShowTarget as _0x2f2440}from'ckeditor5/src/utils';import _0x9ae8fd from'./documentoutlineitemview';export default class d extends _0x4ee138{constructor(_0x1251ee,_0x425be4=!0x1,_0x24dd01){super(_0x1251ee);const t=_0x1251ee['t'];this['showEmptyHeadingText']=_0x425be4,this['set']('activeItemIndex',-0x1),this['_documentOutlineContainer']=_0x24dd01,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x5ad11a,_0x4d79cc,_0x43d536,_0x43a22d)=>{this['_setActiveItem'](_0x43a22d,_0x43d536);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x1251ee['contentLanguageDirection'],'data-document-outline-empty-placeholder':t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x2d07ea){_0x2d07ea['forEach'](_0x29f5af=>{'insert'==_0x29f5af['type']?this['_insertItem'](_0x29f5af['index'],..._0x29f5af['values']):'delete'==_0x29f5af['type']&&this['_deleteItem'](_0x29f5af['index'],_0x29f5af['howMany']);});}['_setActiveItem'](_0x2b33f4,_0x52df90){if(-0x1!==_0x2b33f4){const _0x1f3c1b=this['items']['get'](_0x2b33f4);_0x1f3c1b&&(_0x1f3c1b['isActive']=!0x1);}-0x1!==_0x52df90&&(this['items']['get'](_0x52df90)['isActive']=!0x0,this['_scrollToItem'](_0x52df90));}['_insertItem'](_0x49700c,..._0x1faf0c){const _0x36b4de=_0x1faf0c['map']((_0x24bd0d,_0xd69070)=>{const _0x8a9721=new _0x9ae8fd(this['locale'],this['showEmptyHeadingText']);return _0x8a9721['text']=_0x24bd0d['text'],_0x8a9721['level']=_0x24bd0d['level'],_0x49700c+_0xd69070===this['activeItemIndex']&&(_0x8a9721['isActive']=!0x0),_0x8a9721;});this['items']['addMany'](_0x36b4de,_0x49700c);}['_deleteItem'](_0x47ac50,_0x319c5a){do{this['items']['remove'](_0x47ac50);}while(--_0x319c5a);}['_handleItemClick'](_0x48e22e){const _0x542185=this['items']['getIndex'](_0x48e22e['source']);this['fire']('itemSelected',_0x542185);}['_scrollToItem'](_0x63327){_0x2f2440(this['items']['get'](_0x63327)['element'],0x14,this['_documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}} | ||
import{View as _0x102761}from'ckeditor5/src/ui';import{scrollAncestorsToShowTarget as _0x4b6922}from'ckeditor5/src/utils';import _0x592fac from'./documentoutlineitemview';export default class d extends _0x102761{constructor(_0x1bc789,_0x411db2=!0x1,_0x4fe564){super(_0x1bc789);const t=_0x1bc789['t'];this['showEmptyHeadingText']=_0x411db2,this['set']('activeItemIndex',-0x1),this['_documentOutlineContainer']=_0x4fe564,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0xb4a6c2,_0x593519,_0x12ac2f,_0x13a680)=>{this['_setActiveItem'](_0x13a680,_0x12ac2f);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x1bc789['contentLanguageDirection'],'data-document-outline-empty-placeholder':t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x292c44){_0x292c44['forEach'](_0x332465=>{'insert'==_0x332465['type']?this['_insertItem'](_0x332465['index'],..._0x332465['values']):'delete'==_0x332465['type']&&this['_deleteItem'](_0x332465['index'],_0x332465['howMany']);});}['_setActiveItem'](_0x55d62e,_0x34369a){if(-0x1!==_0x55d62e){const _0x3452d9=this['items']['get'](_0x55d62e);_0x3452d9&&(_0x3452d9['isActive']=!0x1);}-0x1!==_0x34369a&&(this['items']['get'](_0x34369a)['isActive']=!0x0,this['_scrollToItem'](_0x34369a));}['_insertItem'](_0x4eff79,..._0x1bfeaa){const _0x1ba68c=_0x1bfeaa['map']((_0x42577e,_0x31529a)=>{const _0x3fb10b=new _0x592fac(this['locale'],this['showEmptyHeadingText']);return _0x3fb10b['text']=_0x42577e['text'],_0x3fb10b['level']=_0x42577e['level'],_0x4eff79+_0x31529a===this['activeItemIndex']&&(_0x3fb10b['isActive']=!0x0),_0x3fb10b;});this['items']['addMany'](_0x1ba68c,_0x4eff79);}['_deleteItem'](_0x25f778,_0x3911cf){do{this['items']['remove'](_0x25f778);}while(--_0x3911cf);}['_handleItemClick'](_0x493c56){const _0x1bef7c=this['items']['getIndex'](_0x493c56['source']);this['fire']('itemSelected',_0x1bef7c);}['_scrollToItem'](_0x431408){_0x4b6922(this['items']['get'](_0x431408)['element'],0x14,this['_documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x8d88=['getChildren','htmlH3','get','paragraph','has','push','config','htmlH5','htmlH1','htmlH6','plugins','heading.options','model','GeneralHtmlSupport'];(function(_0x583f40,_0x8d8834){const _0x5efb8e=function(_0x46f912){while(--_0x46f912){_0x583f40['push'](_0x583f40['shift']());}};_0x5efb8e(++_0x8d8834);}(_0x8d88,0x1d7));const _0x5efb=function(_0x583f40,_0x8d8834){_0x583f40=_0x583f40-0x0;let _0x5efb8e=_0x8d88[_0x583f40];return _0x5efb8e;};import{Text as _0x494cc9}from'ckeditor5/src/engine';export function getElementText(_0x581b31){let _0x5358bf='';for(const _0x49ab2e of _0x581b31[_0x5efb('0x5')]())_0x49ab2e instanceof _0x494cc9&&(_0x5358bf+=_0x49ab2e['data']);return _0x5358bf;}export function getDefaultFeatureHeadingNames(_0x8258d6){const _0x4203a0=_0x8258d6[_0x5efb('0xb')][_0x5efb('0x7')](_0x5efb('0x2'));return _0x4203a0?_0x4203a0['reduce']((_0x4bb71a,_0x1872d0)=>(_0x5efb('0x8')!==_0x1872d0[_0x5efb('0x3')]&&_0x4bb71a[_0x5efb('0xa')](_0x1872d0[_0x5efb('0x3')]),_0x4bb71a),[]):_0x8258d6[_0x5efb('0x1')][_0x5efb('0x9')](_0x5efb('0x4'))?[_0x5efb('0xd'),'htmlH2',_0x5efb('0x6'),'htmlH4',_0x5efb('0xc'),_0x5efb('0x0')]:[];} | ||
const _0x4853=['model','htmlH1','htmlH5','getChildren','htmlH3','has','push','heading.options','paragraph','data','htmlH6','GeneralHtmlSupport','plugins'];(function(_0x45d507,_0x4853bc){const _0x4ce227=function(_0x490ac2){while(--_0x490ac2){_0x45d507['push'](_0x45d507['shift']());}};_0x4ce227(++_0x4853bc);}(_0x4853,0x189));const _0x4ce2=function(_0x45d507,_0x4853bc){_0x45d507=_0x45d507-0x0;let _0x4ce227=_0x4853[_0x45d507];return _0x4ce227;};import{Text as _0x4106a1}from'ckeditor5/src/engine';export function getElementText(_0x40cd09){let _0x182122='';for(const _0x2b9c9a of _0x40cd09[_0x4ce2('0x0')]())_0x2b9c9a instanceof _0x4106a1&&(_0x182122+=_0x2b9c9a[_0x4ce2('0x6')]);return _0x182122;}export function getDefaultFeatureHeadingNames(_0x3c1f76){const _0x1445a7=_0x3c1f76['config']['get'](_0x4ce2('0x4'));return _0x1445a7?_0x1445a7['reduce']((_0x40af40,_0x3d91c6)=>(_0x4ce2('0x5')!==_0x3d91c6[_0x4ce2('0xa')]&&_0x40af40[_0x4ce2('0x3')](_0x3d91c6[_0x4ce2('0xa')]),_0x40af40),[]):_0x3c1f76[_0x4ce2('0x9')][_0x4ce2('0x2')](_0x4ce2('0x8'))?[_0x4ce2('0xb'),'htmlH2',_0x4ce2('0x1'),'htmlH4',_0x4ce2('0xc'),_0x4ce2('0x7')]:[];} |
@@ -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 _0x2d2df9 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':_0x2d2df9};import'./augmentation'; | ||
export{default as DocumentOutline}from'./documentoutline';export{default as DocumentOutlineUI}from'./documentoutline/documentoutlineui';export{default as DocumentOutlineUtils}from'./documentoutline/documentoutlineutils';import _0x749965 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':_0x749965};import'./augmentation'; |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
var _0x5840=['pluginName','requires','TableOfContents'];(function(_0xf29629,_0x584090){var _0x2718b0=function(_0x343ed3){while(--_0x343ed3){_0xf29629['push'](_0xf29629['shift']());}};_0x2718b0(++_0x584090);}(_0x5840,0xa3));var _0x2718=function(_0xf29629,_0x584090){_0xf29629=_0xf29629-0x0;var _0x2718b0=_0x5840[_0xf29629];return _0x2718b0;};import{Plugin as _0x3f7c92}from'ckeditor5/src/core';import _0x4f7b44 from'./tableofcontents/tableofcontentsediting';import _0x14958e from'./tableofcontents/tableofcontentsui';export default class c extends _0x3f7c92{static get[_0x2718('0x0')](){return[_0x4f7b44,_0x14958e];}static get[_0x2718('0x2')](){return _0x2718('0x1');}} | ||
var _0x3e38=['pluginName','TableOfContents'];(function(_0x4d3670,_0x3e386c){var _0x1934b8=function(_0x1f5276){while(--_0x1f5276){_0x4d3670['push'](_0x4d3670['shift']());}};_0x1934b8(++_0x3e386c);}(_0x3e38,0x1a8));var _0x1934=function(_0x4d3670,_0x3e386c){_0x4d3670=_0x4d3670-0x0;var _0x1934b8=_0x3e38[_0x4d3670];return _0x1934b8;};import{Plugin as _0x57c352}from'ckeditor5/src/core';import _0x7cb4cb from'./tableofcontents/tableofcontentsediting';import _0x3720ad from'./tableofcontents/tableofcontentsui';export default class c extends _0x57c352{static get['requires'](){return[_0x7cb4cb,_0x3720ad];}static get[_0x1934('0x0')](){return _0x1934('0x1');}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x5a0c=['position','heading.options','schema','match','toViewElement','headingId.modelAttributeName','forEach','document','downcast','paragraph','modelRange','item','element:','conversion','for','_customDataDowncastHeadingsConversion','low','consumable','string','registerPostFixer','viewItem','removeAttribute','clear','config','type','HeadingId','name','upcastDispatcher','model','_registerHeadingIdAttributePostfixer','change','editor','pluginName','data','differ','setAttribute','headingId','getContainedElement','mapper','add','writer','attribute:headingId:','get','heading1','set','consume','getChanges','extend','getAttribute','nodeAfter','attributes'];(function(_0x357198,_0x5a0c20){const _0x1f3f35=function(_0x383ab9){while(--_0x383ab9){_0x357198['push'](_0x357198['shift']());}};_0x1f3f35(++_0x5a0c20);}(_0x5a0c,0x72));const _0x1f3f=function(_0x357198,_0x5a0c20){_0x357198=_0x357198-0x0;let _0x1f3f35=_0x5a0c[_0x357198];return _0x1f3f35;};import{Plugin as _0x4bb9dd}from'ckeditor5/src/core';import{uid as _0x2e0cfd,priorities as _0x8d4f73}from'ckeditor5/src/utils';export default class A extends _0x4bb9dd{static get[_0x1f3f('0x14')](){return _0x1f3f('0xd');}['afterInit'](){const _0x39ba0a=this[_0x1f3f('0x13')];if(_0x39ba0a[_0x1f3f('0xb')][_0x1f3f('0x1e')](_0x1f3f('0x2c')))return;(function(_0x5d8464){const _0x32879f=new Map();if(_0x5d8464)return _0x5d8464['forEach'](_0x373a49=>{_0x1f3f('0x30')!==_0x373a49[_0x1f3f('0x10')]&&_0x32879f[_0x1f3f('0x20')](_0x373a49['view'],_0x373a49[_0x1f3f('0x10')]);}),_0x32879f[_0x1f3f('0x1e')]('h1')||_0x32879f[_0x1f3f('0x20')]('h1',_0x1f3f('0x1f')),_0x32879f;return _0x32879f;}(this['editor']['config']['get'](_0x1f3f('0x28')))[_0x1f3f('0x2d')]((_0x5b9ccf,_0x3d650f)=>{this['_customUpcastHeadingsConversion'](_0x3d650f),this[_0x1f3f('0x3')](_0x5b9ccf),_0x39ba0a[_0x1f3f('0x10')][_0x1f3f('0x29')]['isRegistered'](_0x5b9ccf)&&_0x39ba0a[_0x1f3f('0x10')]['schema'][_0x1f3f('0x23')](_0x5b9ccf,{'allowAttributes':_0x1f3f('0x18')});}),this[_0x1f3f('0x11')]());}['_customUpcastHeadingsConversion'](_0x4ebb00){this['editor'][_0x1f3f('0x15')][_0x1f3f('0xf')]['on'](_0x1f3f('0x0')+_0x4ebb00,(_0x27c2e8,_0x5d96ca,_0x124262)=>{const {consumable:_0x103d7f,writer:_0x245ffc}=_0x124262,_0x2b60fe=_0x5d96ca[_0x1f3f('0x8')][_0x1f3f('0x24')]('id'),_0x3765d3=_0x5d96ca[_0x1f3f('0x31')][_0x1f3f('0x19')]();if(!(_0x2b60fe&&_0x2b60fe['length']||_0x3765d3['hasAttribute'](_0x1f3f('0x18'))))return _0x103d7f[_0x1f3f('0x21')](_0x5d96ca[_0x1f3f('0x8')],{'attributes':['id']}),void _0x245ffc['setAttribute'](_0x1f3f('0x18'),_0x2e0cfd(),_0x3765d3);_0x103d7f[_0x1f3f('0x21')](_0x5d96ca[_0x1f3f('0x8')],{'attributes':['id']})&&_0x245ffc[_0x1f3f('0x17')](_0x1f3f('0x18'),_0x2b60fe,_0x3765d3);},{'priority':_0x8d4f73[_0x1f3f('0x1e')](_0x1f3f('0x4'))+0.5});}[_0x1f3f('0x3')](_0x50d4c6){this[_0x1f3f('0x13')][_0x1f3f('0x1')][_0x1f3f('0x2')](_0x1f3f('0x2f'))[_0x1f3f('0x1b')](_0x15e221=>_0x15e221['on'](_0x1f3f('0x1d')+_0x50d4c6,(_0x56cb3e,_0x2f64d4,_0x1d06a1)=>{if(!_0x1d06a1[_0x1f3f('0x5')]['consume'](_0x2f64d4['item'],_0x56cb3e[_0x1f3f('0xe')]))return;const _0x1e626c=_0x2f64d4[_0x1f3f('0x32')][_0x1f3f('0x24')](_0x1f3f('0x18')),_0x3169ff=_0x1d06a1[_0x1f3f('0x1a')][_0x1f3f('0x2b')](_0x2f64d4[_0x1f3f('0x32')]);_0x1d06a1[_0x1f3f('0x1c')][_0x1f3f('0x17')]('id',_0x1e626c,_0x3169ff);}));}[_0x1f3f('0x11')](){const _0x335555=this[_0x1f3f('0x13')],_0x256712=new Set(),_0x3dab26=new Set();function _0x1edf71(_0x2d92c4,_0xd6515c){const _0x185552=_0x2e0cfd();return _0x3dab26[_0x1f3f('0x1b')](_0x185552),_0x2d92c4[_0x1f3f('0x17')](_0x1f3f('0x18'),_0x185552,_0xd6515c),_0x185552;}function _0x318edd(_0x550717,_0x358a2d){_0x550717[_0x1f3f('0x9')](_0x1f3f('0x18'),_0x358a2d);}_0x335555[_0x1f3f('0x10')][_0x1f3f('0x2e')][_0x1f3f('0x7')](_0x2592fd=>{const _0x493bac=_0x335555[_0x1f3f('0x10')][_0x1f3f('0x2e')][_0x1f3f('0x16')][_0x1f3f('0x22')]();let _0x3ff9b2=!0x1;for(const _0x2417a6 of _0x493bac)if('insert'==_0x2417a6[_0x1f3f('0xc')]&&_0x2417a6[_0x1f3f('0xe')]){if(_0x2417a6['name'][_0x1f3f('0x2a')](/heading\d/)){const _0x3cc5a2=_0x2417a6[_0x1f3f('0x26')][_0x1f3f('0x1e')](_0x1f3f('0x18'));_0x1f3f('0x6')==typeof _0x3cc5a2?_0x256712['has'](_0x3cc5a2)?(_0x1edf71(_0x2592fd,_0x2417a6['position'][_0x1f3f('0x25')]),_0x3ff9b2=!0x0):_0x3dab26['add'](_0x3cc5a2):(_0x1edf71(_0x2592fd,_0x2417a6['position'][_0x1f3f('0x25')]),_0x3ff9b2=!0x0);}else _0x1f3f('0x6')==typeof _0x2417a6[_0x1f3f('0x26')][_0x1f3f('0x1e')]('headingId')&&(_0x318edd(_0x2592fd,_0x2417a6[_0x1f3f('0x27')][_0x1f3f('0x25')]),_0x3ff9b2=!0x0);}else{if('remove'==_0x2417a6[_0x1f3f('0xc')]){const _0x14a82d=_0x2417a6[_0x1f3f('0x26')][_0x1f3f('0x1e')](_0x1f3f('0x18'));_0x1f3f('0x6')==typeof _0x14a82d&&_0x256712['delete'](_0x14a82d);}}return _0x3ff9b2;}),_0x335555[_0x1f3f('0x10')][_0x1f3f('0x2e')]['on'](_0x1f3f('0x12'),()=>{_0x3dab26[_0x1f3f('0x2d')](_0x22452b=>_0x256712[_0x1f3f('0x1b')](_0x22452b)),_0x3dab26[_0x1f3f('0xa')]();});}} | ||
const _0x5658=['extend','_registerHeadingIdAttributePostfixer','add','upcastDispatcher','_customUpcastHeadingsConversion','schema','set','downcast','change','removeAttribute','item','heading1','viewItem','headingId','clear','string','getContainedElement','remove','get','match','headingId.modelAttributeName','differ','getAttribute','insert','view','_customDataDowncastHeadingsConversion','type','editor','heading.options','attributes','position','modelRange','toViewElement','length','hasAttribute','low','pluginName','paragraph','setAttribute','element:','isRegistered','name','consumable','nodeAfter','document','afterInit','config','data','forEach','consume','attribute:headingId:','getChanges','model'];(function(_0x35d14f,_0x5658aa){const _0x5263fa=function(_0x18bc44){while(--_0x18bc44){_0x35d14f['push'](_0x35d14f['shift']());}};_0x5263fa(++_0x5658aa);}(_0x5658,0x146));const _0x5263=function(_0x35d14f,_0x5658aa){_0x35d14f=_0x35d14f-0x0;let _0x5263fa=_0x5658[_0x35d14f];return _0x5263fa;};import{Plugin as _0x135b0f}from'ckeditor5/src/core';import{uid as _0x4c892e,priorities as _0x151c0e}from'ckeditor5/src/utils';export default class A extends _0x135b0f{static get[_0x5263('0x1c')](){return'HeadingId';}[_0x5263('0x25')](){const _0x5e4b25=this[_0x5263('0x13')];if(_0x5e4b25[_0x5263('0x26')][_0x5263('0xa')](_0x5263('0xc')))return;(function(_0x5677fe){const _0x1f1ff2=new Map();if(_0x5677fe)return _0x5677fe['forEach'](_0x407cdc=>{_0x5263('0x1d')!==_0x407cdc[_0x5263('0x2c')]&&_0x1f1ff2[_0x5263('0x33')](_0x407cdc[_0x5263('0x10')],_0x407cdc[_0x5263('0x2c')]);}),_0x1f1ff2[_0x5263('0xa')]('h1')||_0x1f1ff2[_0x5263('0x33')]('h1',_0x5263('0x3')),_0x1f1ff2;return _0x1f1ff2;}(this[_0x5263('0x13')][_0x5263('0x26')][_0x5263('0xa')](_0x5263('0x14')))[_0x5263('0x28')]((_0x249faf,_0x4ea8d1)=>{this[_0x5263('0x31')](_0x4ea8d1),this['_customDataDowncastHeadingsConversion'](_0x249faf),_0x5e4b25['model'][_0x5263('0x32')][_0x5263('0x20')](_0x249faf)&&_0x5e4b25[_0x5263('0x2c')][_0x5263('0x32')][_0x5263('0x2d')](_0x249faf,{'allowAttributes':_0x5263('0x5')});}),this[_0x5263('0x2e')]());}[_0x5263('0x31')](_0x4d8e9b){this[_0x5263('0x13')][_0x5263('0x27')][_0x5263('0x30')]['on'](_0x5263('0x1f')+_0x4d8e9b,(_0x384a26,_0x4cb950,_0x5e82e3)=>{const {consumable:_0x34304a,writer:_0x30a0b7}=_0x5e82e3,_0x44e9bd=_0x4cb950[_0x5263('0x4')]['getAttribute']('id'),_0x794d3f=_0x4cb950[_0x5263('0x17')][_0x5263('0x8')]();if(!(_0x44e9bd&&_0x44e9bd[_0x5263('0x19')]||_0x794d3f[_0x5263('0x1a')](_0x5263('0x5'))))return _0x34304a[_0x5263('0x29')](_0x4cb950[_0x5263('0x4')],{'attributes':['id']}),void _0x30a0b7['setAttribute']('headingId',_0x4c892e(),_0x794d3f);_0x34304a['consume'](_0x4cb950[_0x5263('0x4')],{'attributes':['id']})&&_0x30a0b7[_0x5263('0x1e')]('headingId',_0x44e9bd,_0x794d3f);},{'priority':_0x151c0e['get'](_0x5263('0x1b'))+0.5});}[_0x5263('0x11')](_0x5597a0){this['editor']['conversion']['for'](_0x5263('0x34'))[_0x5263('0x2f')](_0x2271f3=>_0x2271f3['on'](_0x5263('0x2a')+_0x5597a0,(_0x327e2d,_0x58a16b,_0x2a5a25)=>{if(!_0x2a5a25[_0x5263('0x22')]['consume'](_0x58a16b[_0x5263('0x2')],_0x327e2d['name']))return;const _0x186cc7=_0x58a16b[_0x5263('0x2')][_0x5263('0xe')](_0x5263('0x5')),_0x481340=_0x2a5a25['mapper'][_0x5263('0x18')](_0x58a16b[_0x5263('0x2')]);_0x2a5a25['writer'][_0x5263('0x1e')]('id',_0x186cc7,_0x481340);}));}[_0x5263('0x2e')](){const _0x17a481=this[_0x5263('0x13')],_0x574e76=new Set(),_0x5cfb6c=new Set();function _0xea5a06(_0x5b9e86,_0x376a46){const _0x14009d=_0x4c892e();return _0x5cfb6c[_0x5263('0x2f')](_0x14009d),_0x5b9e86[_0x5263('0x1e')]('headingId',_0x14009d,_0x376a46),_0x14009d;}function _0x44dfed(_0x31cc45,_0x2e3ffc){_0x31cc45[_0x5263('0x1')](_0x5263('0x5'),_0x2e3ffc);}_0x17a481[_0x5263('0x2c')][_0x5263('0x24')]['registerPostFixer'](_0x39fcd4=>{const _0x4b5628=_0x17a481[_0x5263('0x2c')][_0x5263('0x24')][_0x5263('0xd')][_0x5263('0x2b')]();let _0x58b3b2=!0x1;for(const _0x59e521 of _0x4b5628)if(_0x5263('0xf')==_0x59e521[_0x5263('0x12')]&&_0x59e521[_0x5263('0x21')]){if(_0x59e521[_0x5263('0x21')][_0x5263('0xb')](/heading\d/)){const _0x25c6f4=_0x59e521[_0x5263('0x15')][_0x5263('0xa')]('headingId');_0x5263('0x7')==typeof _0x25c6f4?_0x574e76['has'](_0x25c6f4)?(_0xea5a06(_0x39fcd4,_0x59e521['position'][_0x5263('0x23')]),_0x58b3b2=!0x0):_0x5cfb6c[_0x5263('0x2f')](_0x25c6f4):(_0xea5a06(_0x39fcd4,_0x59e521['position'][_0x5263('0x23')]),_0x58b3b2=!0x0);}else _0x5263('0x7')==typeof _0x59e521[_0x5263('0x15')]['get'](_0x5263('0x5'))&&(_0x44dfed(_0x39fcd4,_0x59e521[_0x5263('0x16')]['nodeAfter']),_0x58b3b2=!0x0);}else{if(_0x5263('0x9')==_0x59e521[_0x5263('0x12')]){const _0xfe1415=_0x59e521[_0x5263('0x15')]['get'](_0x5263('0x5'));_0x5263('0x7')==typeof _0xfe1415&&_0x574e76['delete'](_0xfe1415);}}return _0x58b3b2;}),_0x17a481[_0x5263('0x2c')][_0x5263('0x24')]['on'](_0x5263('0x0'),()=>{_0x5cfb6c[_0x5263('0x28')](_0x270ec1=>_0x574e76[_0x5263('0x2f')](_0x270ec1)),_0x5cfb6c[_0x5263('0x6')]();});}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x5f0e=['insertObject','execute','tableOfContents','getFirstPosition','selection','refresh','editor','model','isEnabled','document'];(function(_0x13fe8b,_0x5f0eb2){const _0x5542de=function(_0x42a852){while(--_0x42a852){_0x13fe8b['push'](_0x13fe8b['shift']());}};_0x5542de(++_0x5f0eb2);}(_0x5f0e,0x69));const _0x5542=function(_0x13fe8b,_0x5f0eb2){_0x13fe8b=_0x13fe8b-0x0;let _0x5542de=_0x5f0e[_0x13fe8b];return _0x5542de;};import{Command as _0x592abc}from'ckeditor5/src/core';export default class O extends _0x592abc{[_0x5542('0x6')](){this[_0x5542('0x1')][_0x5542('0x2')]['change'](_0x54426b=>{this['editor'][_0x5542('0x2')][_0x5542('0x5')](_0x54426b['createElement'](_0x5542('0x7')));});}[_0x5542('0x0')](){const _0x1ba355=this[_0x5542('0x1')][_0x5542('0x2')],_0x1ff3cc=_0x1ba355[_0x5542('0x4')][_0x5542('0x9')][_0x5542('0x8')]();this[_0x5542('0x3')]=null!==(_0x1ff3cc&&_0x1ba355['schema']['findAllowedParent'](_0x1ff3cc,_0x5542('0x7')));}} | ||
const _0x25ae=['change','insertObject','tableOfContents','schema','getFirstPosition','execute','isEnabled','model','selection','document','editor'];(function(_0x4ac3a9,_0x25aee4){const _0x91fb4d=function(_0x44846e){while(--_0x44846e){_0x4ac3a9['push'](_0x4ac3a9['shift']());}};_0x91fb4d(++_0x25aee4);}(_0x25ae,0x19e));const _0x91fb=function(_0x4ac3a9,_0x25aee4){_0x4ac3a9=_0x4ac3a9-0x0;let _0x91fb4d=_0x25ae[_0x4ac3a9];return _0x91fb4d;};import{Command as _0x543c86}from'ckeditor5/src/core';export default class O extends _0x543c86{[_0x91fb('0x9')](){this[_0x91fb('0x3')][_0x91fb('0x0')][_0x91fb('0x4')](_0x5f5cb6=>{this['editor'][_0x91fb('0x0')][_0x91fb('0x5')](_0x5f5cb6['createElement'](_0x91fb('0x6')));});}['refresh'](){const _0x102515=this[_0x91fb('0x3')][_0x91fb('0x0')],_0x483b69=_0x102515[_0x91fb('0x2')][_0x91fb('0x1')][_0x91fb('0x8')]();this[_0x91fb('0xa')]=null!==(_0x483b69&&_0x102515[_0x91fb('0x7')]['findAllowedParent'](_0x483b69,_0x91fb('0x6')));}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
import{ButtonView as _0x100610}from'ckeditor5/src/ui';import{CKEditorError as _0x5d8387}from'ckeditor5/src/utils';import{Plugin as _0x590acc}from'ckeditor5/src/core';import _0x47835b from'../../theme/icons/table-of-contents.svg';export default class s extends _0x590acc{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x3d4bd8){super(_0x3d4bd8),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x291a62=this['editor'],t=_0x291a62['t'];_0x291a62['ui']['componentFactory']['add']('tableOfContents',_0x39ba3e=>{const _0x39bdc9=_0x291a62['commands']['get']('insertTableOfContents'),_0x3f6995=new _0x100610(_0x39ba3e);return _0x3f6995['set']({'label':t('Table\x20of\x20contents'),'icon':_0x47835b,'tooltip':!0x0}),_0x3f6995['bind']('isEnabled')['to'](_0x39bdc9,'isEnabled'),this['listenTo'](_0x3f6995,'execute',()=>{_0x291a62['execute']('insertTableOfContents'),_0x291a62['editing']['view']['focus']();}),_0x3f6995;}),this['licenseKey']=_0x291a62['config']['get']('licenseKey');const _0x423b9f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xcbac51;for(const _0x1062be in _0x423b9f){const _0x270d25=_0x1062be,_0x4b64f2=_0x423b9f[_0x270d25];if('tableOfContentsLicenseKeyTrial'===_0x4b64f2||'tableOfContentsLicenseKeyInvalid'===_0x4b64f2||'tableOfContentsLicenseKeyValid'===_0x4b64f2||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x4b64f2){delete _0x423b9f[_0x270d25],_0xcbac51=_0x4b64f2;break;}}if('tableOfContentsLicenseKeyInvalid'===_0xcbac51)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x5d8387('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0xcbac51&&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'===_0xcbac51)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x5d8387('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0xcbac51&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}} | ||
import{ButtonView as _0x421f57}from'ckeditor5/src/ui';import{CKEditorError as _0x971dc7}from'ckeditor5/src/utils';import{Plugin as _0x5e901e}from'ckeditor5/src/core';import _0x8f3b34 from'../../theme/icons/table-of-contents.svg';export default class s extends _0x5e901e{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x397bf9){super(_0x397bf9),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x3eb873=this['editor'],t=_0x3eb873['t'];_0x3eb873['ui']['componentFactory']['add']('tableOfContents',_0x5934b9=>{const _0x5b1811=_0x3eb873['commands']['get']('insertTableOfContents'),_0x419a53=new _0x421f57(_0x5934b9);return _0x419a53['set']({'label':t('Table\x20of\x20contents'),'icon':_0x8f3b34,'tooltip':!0x0}),_0x419a53['bind']('isEnabled')['to'](_0x5b1811,'isEnabled'),this['listenTo'](_0x419a53,'execute',()=>{_0x3eb873['execute']('insertTableOfContents'),_0x3eb873['editing']['view']['focus']();}),_0x419a53;}),this['licenseKey']=_0x3eb873['config']['get']('licenseKey');const _0x4f13a5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2e3e5a;for(const _0x1032d9 in _0x4f13a5){const _0x5948ea=_0x1032d9,_0x325a7f=_0x4f13a5[_0x5948ea];if('tableOfContentsLicenseKeyTrial'===_0x325a7f||'tableOfContentsLicenseKeyInvalid'===_0x325a7f||'tableOfContentsLicenseKeyValid'===_0x325a7f||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x325a7f){delete _0x4f13a5[_0x5948ea],_0x2e3e5a=_0x325a7f;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x2e3e5a)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x971dc7('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x2e3e5a&&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'===_0x2e3e5a)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x971dc7('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x2e3e5a&&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
404011
+ Added@ckeditor/ckeditor5-clipboard@0.0.0-nightly-20231104.0(transitive)
+ Added@ckeditor/ckeditor5-core@0.0.0-nightly-20231104.0(transitive)
+ Added@ckeditor/ckeditor5-engine@0.0.0-nightly-20231104.0(transitive)
+ Added@ckeditor/ckeditor5-enter@0.0.0-nightly-20231104.0(transitive)
+ Added@ckeditor/ckeditor5-paragraph@0.0.0-nightly-20231104.0(transitive)
+ Added@ckeditor/ckeditor5-select-all@0.0.0-nightly-20231104.0(transitive)
+ Added@ckeditor/ckeditor5-typing@0.0.0-nightly-20231104.0(transitive)
+ Added@ckeditor/ckeditor5-ui@0.0.0-nightly-20231104.0(transitive)
+ Added@ckeditor/ckeditor5-undo@0.0.0-nightly-20231104.0(transitive)
+ Added@ckeditor/ckeditor5-upload@0.0.0-nightly-20231104.0(transitive)
+ Added@ckeditor/ckeditor5-utils@0.0.0-nightly-20231104.0(transitive)
+ Added@ckeditor/ckeditor5-watchdog@0.0.0-nightly-20231104.0(transitive)
+ Added@ckeditor/ckeditor5-widget@0.0.0-nightly-20231104.0(transitive)
+ Addedckeditor5@0.0.0-nightly-20231104.0(transitive)
- Removed@ckeditor/ckeditor5-clipboard@0.0.0-nightly-20231103.0(transitive)
- Removed@ckeditor/ckeditor5-core@0.0.0-nightly-20231103.0(transitive)
- Removed@ckeditor/ckeditor5-engine@0.0.0-nightly-20231103.0(transitive)
- Removed@ckeditor/ckeditor5-enter@0.0.0-nightly-20231103.0(transitive)
- Removed@ckeditor/ckeditor5-paragraph@0.0.0-nightly-20231103.0(transitive)
- Removed@ckeditor/ckeditor5-select-all@0.0.0-nightly-20231103.0(transitive)
- Removed@ckeditor/ckeditor5-typing@0.0.0-nightly-20231103.0(transitive)
- Removed@ckeditor/ckeditor5-ui@0.0.0-nightly-20231103.0(transitive)
- Removed@ckeditor/ckeditor5-undo@0.0.0-nightly-20231103.0(transitive)
- Removed@ckeditor/ckeditor5-upload@0.0.0-nightly-20231103.0(transitive)
- Removed@ckeditor/ckeditor5-utils@0.0.0-nightly-20231103.0(transitive)
- Removed@ckeditor/ckeditor5-watchdog@0.0.0-nightly-20231103.0(transitive)
- Removed@ckeditor/ckeditor5-widget@0.0.0-nightly-20231103.0(transitive)
- Removedckeditor5@0.0.0-nightly-20231103.0(transitive)