@ckeditor/ckeditor5-document-outline
Advanced tools
Comparing version 0.0.0-nightly-20230802.0 to 0.0.0-nightly-20230803.0
{ | ||
"name": "@ckeditor/ckeditor5-document-outline", | ||
"version": "0.0.0-nightly-20230802.0", | ||
"version": "0.0.0-nightly-20230803.0", | ||
"description": "Document outline feature for CKEditor 5.", | ||
@@ -15,4 +15,4 @@ "keywords": [ | ||
"dependencies": { | ||
"ckeditor5": "0.0.0-nightly-20230802.0", | ||
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20230802.0", | ||
"ckeditor5": "0.0.0-nightly-20230803.0", | ||
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20230803.0", | ||
"lodash-es": "4.17.21" | ||
@@ -19,0 +19,0 @@ }, |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x4450=['document-outline-invalid-license-key','info','documentOutlineLicenseKeyTrial','init','documentOutlineLicenseKeyInvalid','config','destroy','document-outline-trial-license-key-reached-limit-changes','get','documentOutlineLicenseKeyTrialLimit:operations','documentOutlineLicenseKeyValid','editor','pluginName','licenseKey','_licenseKeyCheckInterval'];(function(_0x4f1471,_0x445051){const _0x2e338c=function(_0x929eab){while(--_0x929eab){_0x4f1471['push'](_0x4f1471['shift']());}};_0x2e338c(++_0x445051);}(_0x4450,0x1b0));const _0x2e33=function(_0x4f1471,_0x445051){_0x4f1471=_0x4f1471-0x0;let _0x2e338c=_0x4450[_0x4f1471];return _0x2e338c;};import{Plugin as _0x22d439}from'ckeditor5/src/core';import{CKEditorError as _0x5a4321}from'ckeditor5/src/utils';import _0x3b0875 from'./documentoutline/documentoutlineutils';import _0x541a51 from'./documentoutline/documentoutlineui';export default class l extends _0x22d439{static get['requires'](){return[_0x3b0875,_0x541a51];}static get[_0x2e33('0x0')](){return'DocumentOutline';}constructor(_0x5e9b7a){super(_0x5e9b7a),this['_licenseKeyCheckInterval']=null;}[_0x2e33('0x6')](){const _0x47aacb=this['editor'];this[_0x2e33('0x1')]=_0x47aacb[_0x2e33('0x8')][_0x2e33('0xb')](_0x2e33('0x1'));const _0x3e44c8=this[_0x2e33('0xe')];this[_0x2e33('0x2')]=setInterval(()=>{let _0x681f50;for(const _0x30b43e in _0x3e44c8){const _0x2ce839=_0x30b43e,_0x3036d1=_0x3e44c8[_0x2ce839];if(_0x2e33('0x5')===_0x3036d1||'documentOutlineLicenseKeyInvalid'===_0x3036d1||_0x2e33('0xd')===_0x3036d1||_0x2e33('0xc')===_0x3036d1){delete _0x3e44c8[_0x2ce839],_0x681f50=_0x3036d1;break;}}if(_0x2e33('0x7')===_0x681f50)throw clearInterval(this[_0x2e33('0x2')]),new _0x5a4321(_0x2e33('0x3'),null);if('documentOutlineLicenseKeyTrial'===_0x681f50&&console[_0x2e33('0x4')]('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.'),_0x2e33('0xc')===_0x681f50)throw clearInterval(this[_0x2e33('0x2')]),new _0x5a4321(_0x2e33('0xa'),null);_0x2e33('0xd')===_0x681f50&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}[_0x2e33('0x9')](){this[_0x2e33('0x2')]&&clearInterval(this[_0x2e33('0x2')]);}} | ||
const _0x404c=['destroy','documentOutlineLicenseKeyInvalid','config','document-outline-invalid-license-key','_licenseKeyCheckInterval','pluginName','DocumentOutline','document-outline-trial-license-key-reached-limit-changes','documentOutlineLicenseKeyTrial','editor','documentOutlineLicenseKeyValid','get','licenseKey'];(function(_0x22665c,_0x404cd6){const _0x30233e=function(_0x403c60){while(--_0x403c60){_0x22665c['push'](_0x22665c['shift']());}};_0x30233e(++_0x404cd6);}(_0x404c,0xf4));const _0x3023=function(_0x22665c,_0x404cd6){_0x22665c=_0x22665c-0x0;let _0x30233e=_0x404c[_0x22665c];return _0x30233e;};import{Plugin as _0x255052}from'ckeditor5/src/core';import{CKEditorError as _0x3ce416}from'ckeditor5/src/utils';import _0x2c0f8e from'./documentoutline/documentoutlineutils';import _0x1904a7 from'./documentoutline/documentoutlineui';export default class l extends _0x255052{static get['requires'](){return[_0x2c0f8e,_0x1904a7];}static get[_0x3023('0x8')](){return _0x3023('0x9');}constructor(_0x5d45ef){super(_0x5d45ef),this[_0x3023('0x7')]=null;}['init'](){const _0x5e92ec=this[_0x3023('0xc')];this[_0x3023('0x2')]=_0x5e92ec[_0x3023('0x5')][_0x3023('0x1')](_0x3023('0x2'));const _0x1b14ec=this[_0x3023('0xc')];this[_0x3023('0x7')]=setInterval(()=>{let _0x5d0ce8;for(const _0x400a4d in _0x1b14ec){const _0x3579b1=_0x400a4d,_0x63fb47=_0x1b14ec[_0x3579b1];if(_0x3023('0xb')===_0x63fb47||_0x3023('0x4')===_0x63fb47||_0x3023('0x0')===_0x63fb47||'documentOutlineLicenseKeyTrialLimit:operations'===_0x63fb47){delete _0x1b14ec[_0x3579b1],_0x5d0ce8=_0x63fb47;break;}}if('documentOutlineLicenseKeyInvalid'===_0x5d0ce8)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x3ce416(_0x3023('0x6'),null);if(_0x3023('0xb')===_0x5d0ce8&&console['info']('You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20document\x20outline\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.'),'documentOutlineLicenseKeyTrialLimit:operations'===_0x5d0ce8)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x3ce416(_0x3023('0xa'),null);_0x3023('0x0')===_0x5d0ce8&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}[_0x3023('0x3')](){this['_licenseKeyCheckInterval']&&clearInterval(this[_0x3023('0x7')]);}} |
@@ -7,2 +7,3 @@ /** | ||
* @module document-outline/documentoutline/documentoutlineui | ||
* @publicApi | ||
*/ | ||
@@ -9,0 +10,0 @@ import { Plugin, type Editor } from 'ckeditor5/src/core'; |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x42ef=['model','item','view','config','name','includes','indexOf','data','backward','getRootNames','fire','getChildren','level','modelElement','element','domConverter','_getActiveHeading','push','findIndex','selection','documentOutline.headings','length','editor','DocumentOutlineUtils','getChild','text','_getHeadingNames','pluginName','_deriveHeadingElementsFromConversion','get','_headingNames','afterInit','document','_getOutlineDefinitions'];(function(_0x1b2b47,_0x42ef6a){const _0x3273d7=function(_0x3b4d1e){while(--_0x3b4d1e){_0x1b2b47['push'](_0x1b2b47['shift']());}};_0x3273d7(++_0x42ef6a);}(_0x42ef,0xd6));const _0x3273=function(_0x1b2b47,_0x42ef6a){_0x1b2b47=_0x1b2b47-0x0;let _0x3273d7=_0x42ef[_0x1b2b47];return _0x3273d7;};import{Plugin as _0x28164a}from'ckeditor5/src/core';import{debounce as _0x3dbc7b}from'lodash-es';import{TreeWalker as _0x1b88f0}from'ckeditor5/src/engine';import{getElementText as _0x3109aa,getDefaultFeatureHeadingNames as _0xdef225}from'./utils';import{diff as _0x2f9e69,diffToChanges as _0x12b47c}from'ckeditor5/src/utils';export default class n extends _0x28164a{constructor(){super(...arguments),this[_0x3273('0x14')]=[];}static get[_0x3273('0x11')](){return _0x3273('0xd');}['init'](){const _0x3a5e84=this[_0x3273('0xc')];this[_0x3273('0x14')]=this[_0x3273('0x10')]();let _0x30e92b=[];_0x3a5e84['model']['document']['on']('change',_0x3dbc7b(()=>{const _0x4c5e53=_0x30e92b;_0x30e92b=this[_0x3273('0x17')]();const _0x55cbd0=_0x2f9e69(_0x4c5e53,_0x30e92b,(_0x3f9d84,_0x2196ef)=>_0x3f9d84['level']===_0x2196ef[_0x3273('0x2')]&&_0x3f9d84[_0x3273('0xf')]===_0x2196ef[_0x3273('0xf')]&&_0x3f9d84[_0x3273('0x3')]===_0x2196ef[_0x3273('0x3')]),_0x22de07=_0x12b47c(_0x55cbd0,_0x30e92b),_0xd82345=this[_0x3273('0x6')](),_0x19707c=_0x30e92b[_0x3273('0x8')](_0x2d5b65=>_0x2d5b65[_0x3273('0x3')]===_0xd82345);_0x22de07['length']&&this['fire']('change',{'outlineDefinitions':_0x30e92b,'activeItemIndex':_0x19707c,'outlineChanges':_0x22de07}),this[_0x3273('0x0')]('activeItemIndex',{'index':_0x19707c});},0xfa,{'leading':!0x0,'trailing':!0x0}));}[_0x3273('0x15')](){this[_0x3273('0x14')][_0x3273('0xb')]||this[_0x3273('0x12')]();}['_getOutlineDefinitions'](){const _0x789634=this[_0x3273('0xc')],_0x68beb7=[],_0x2f4ff4=this[_0x3273('0x14')];for(const _0x1c4558 of _0x789634[_0x3273('0x18')][_0x3273('0x16')][_0x3273('0x21')]())_0x3f92d5(_0x789634[_0x3273('0x18')][_0x3273('0x16')]['getRoot'](_0x1c4558));function _0x3f92d5(_0x2f3cd2){for(const _0x20c291 of _0x2f3cd2[_0x3273('0x1')]())_0x20c291['is'](_0x3273('0x4'))&&(_0x2f4ff4[_0x3273('0x1d')](_0x20c291[_0x3273('0x1c')])&&_0x68beb7['push']({'level':_0x2f4ff4[_0x3273('0x1e')](_0x20c291[_0x3273('0x1c')])+0x1,'text':_0x3109aa(_0x20c291),'modelElement':_0x20c291}),_0x3f92d5(_0x20c291));}return _0x68beb7;}[_0x3273('0x6')](){const _0x25f08f=this[_0x3273('0xc')][_0x3273('0x18')][_0x3273('0x16')][_0x3273('0x9')]['getFirstPosition'](),_0x2fa2e7=new _0x1b88f0({'direction':_0x3273('0x20'),'startPosition':_0x25f08f});for(const _0x54c7e8 of _0x2fa2e7)if(_0x54c7e8[_0x3273('0x19')]['is']('element')&&this[_0x3273('0x14')][_0x3273('0x1d')](_0x54c7e8[_0x3273('0x19')][_0x3273('0x1c')]))return _0x54c7e8['item'];}[_0x3273('0x10')](){const _0x96cf22=this[_0x3273('0xc')][_0x3273('0x1b')][_0x3273('0x13')](_0x3273('0xa'));return _0x96cf22||_0xdef225(this[_0x3273('0xc')]);}[_0x3273('0x12')](){const _0x1390d3=this[_0x3273('0xc')],_0x4a3a5c=['h1','h2','h3','h4','h5','h6'],_0x2eab36=[];for(const _0x27d6bc of _0x4a3a5c){const _0x3662c9=_0x1390d3['editing'][_0x3273('0x1a')][_0x3273('0x5')]['domToView'](document['createElement'](_0x27d6bc)),_0x445424=_0x1390d3[_0x3273('0x1f')]['toModel'](_0x3662c9)[_0x3273('0xe')](0x0);(null==_0x445424?void 0x0:_0x445424['is'](_0x3273('0x4')))&&_0x2eab36[_0x3273('0x7')](_0x445424['name']);}this['_headingNames']=_0x2eab36;}} | ||
const _0x1680=['fire','modelElement','model','get','documentOutline.headings','view','push','text','getFirstPosition','activeItemIndex','_getHeadingNames','_getActiveHeading','init','_headingNames','domToView','item','toModel','config','domConverter','findIndex','name','createElement','editing','document','_deriveHeadingElementsFromConversion','backward','change','pluginName','includes','level','getChild','indexOf','selection','afterInit','element','editor','DocumentOutlineUtils','length','_getOutlineDefinitions'];(function(_0x458650,_0x168099){const _0x3712c7=function(_0x2f1cc6){while(--_0x2f1cc6){_0x458650['push'](_0x458650['shift']());}};_0x3712c7(++_0x168099);}(_0x1680,0x188));const _0x3712=function(_0x458650,_0x168099){_0x458650=_0x458650-0x0;let _0x3712c7=_0x1680[_0x458650];return _0x3712c7;};import{Plugin as _0x46eea3}from'ckeditor5/src/core';import{debounce as _0x31881b}from'lodash-es';import{TreeWalker as _0xe0768d}from'ckeditor5/src/engine';import{getElementText as _0x51934c,getDefaultFeatureHeadingNames as _0x6cbd1c}from'./utils';import{diff as _0x188b97,diffToChanges as _0x56dcd1}from'ckeditor5/src/utils';export default class n extends _0x46eea3{constructor(){super(...arguments),this[_0x3712('0xb')]=[];}static get[_0x3712('0x19')](){return _0x3712('0x22');}[_0x3712('0xa')](){const _0x2fd0fe=this[_0x3712('0x21')];this['_headingNames']=this[_0x3712('0x8')]();let _0x382974=[];_0x2fd0fe[_0x3712('0x0')]['document']['on'](_0x3712('0x18'),_0x31881b(()=>{const _0x1fbd48=_0x382974;_0x382974=this[_0x3712('0x24')]();const _0x3f2e5a=_0x188b97(_0x1fbd48,_0x382974,(_0x52b04b,_0x5ba1be)=>_0x52b04b[_0x3712('0x1b')]===_0x5ba1be[_0x3712('0x1b')]&&_0x52b04b[_0x3712('0x5')]===_0x5ba1be[_0x3712('0x5')]&&_0x52b04b['modelElement']===_0x5ba1be[_0x3712('0x26')]),_0x29a2d7=_0x56dcd1(_0x3f2e5a,_0x382974),_0x29fda6=this[_0x3712('0x9')](),_0x22faf3=_0x382974[_0x3712('0x11')](_0x40f851=>_0x40f851[_0x3712('0x26')]===_0x29fda6);_0x29a2d7[_0x3712('0x23')]&&this[_0x3712('0x25')](_0x3712('0x18'),{'outlineDefinitions':_0x382974,'activeItemIndex':_0x22faf3,'outlineChanges':_0x29a2d7}),this[_0x3712('0x25')](_0x3712('0x7'),{'index':_0x22faf3});},0xfa,{'leading':!0x0,'trailing':!0x0}));}[_0x3712('0x1f')](){this[_0x3712('0xb')][_0x3712('0x23')]||this[_0x3712('0x16')]();}[_0x3712('0x24')](){const _0x385fbc=this[_0x3712('0x21')],_0x30c3a0=[],_0x3803aa=this['_headingNames'];for(const _0x33bdc8 of _0x385fbc['model']['document']['getRootNames']())_0x38facb(_0x385fbc[_0x3712('0x0')][_0x3712('0x15')]['getRoot'](_0x33bdc8));function _0x38facb(_0x3aea9e){for(const _0x22d4ae of _0x3aea9e['getChildren']())_0x22d4ae['is'](_0x3712('0x20'))&&(_0x3803aa[_0x3712('0x1a')](_0x22d4ae['name'])&&_0x30c3a0[_0x3712('0x4')]({'level':_0x3803aa[_0x3712('0x1d')](_0x22d4ae[_0x3712('0x12')])+0x1,'text':_0x51934c(_0x22d4ae),'modelElement':_0x22d4ae}),_0x38facb(_0x22d4ae));}return _0x30c3a0;}[_0x3712('0x9')](){const _0x31565b=this['editor']['model']['document'][_0x3712('0x1e')][_0x3712('0x6')](),_0x45d5e9=new _0xe0768d({'direction':_0x3712('0x17'),'startPosition':_0x31565b});for(const _0x56d49d of _0x45d5e9)if(_0x56d49d['item']['is'](_0x3712('0x20'))&&this[_0x3712('0xb')][_0x3712('0x1a')](_0x56d49d['item']['name']))return _0x56d49d[_0x3712('0xd')];}[_0x3712('0x8')](){const _0x55b892=this[_0x3712('0x21')][_0x3712('0xf')][_0x3712('0x1')](_0x3712('0x2'));return _0x55b892||_0x6cbd1c(this[_0x3712('0x21')]);}['_deriveHeadingElementsFromConversion'](){const _0xac1929=this[_0x3712('0x21')],_0x33056c=['h1','h2','h3','h4','h5','h6'],_0x2d6871=[];for(const _0x2b13f9 of _0x33056c){const _0x34deb6=_0xac1929[_0x3712('0x14')][_0x3712('0x3')][_0x3712('0x10')][_0x3712('0xc')](document[_0x3712('0x13')](_0x2b13f9)),_0x49a55e=_0xac1929['data'][_0x3712('0xe')](_0x34deb6)[_0x3712('0x1c')](0x0);(null==_0x49a55e?void 0x0:_0x49a55e['is'](_0x3712('0x20')))&&_0x2d6871[_0x3712('0x4')](_0x49a55e['name']);}this[_0x3712('0xb')]=_0x2d6871;}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
import{View as _0x41c027}from'ckeditor5/src/ui';export default class $ extends _0x41c027{constructor(_0x475b11,_0x157f0b=!0x1){super(_0x475b11);const t=_0x475b11['t'],_0x538a6b=this['bindTemplate'],_0x5e19eb=_0x157f0b?'['+t('Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x19fc66=>!_0x19fc66),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x538a6b['to']('level',_0x18b6d6=>'ck-document-outline__item_level-'+_0x18b6d6),_0x538a6b['if']('isActive','ck-document-outline__item_active'),_0x538a6b['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x538a6b['to']('text')},'children':[{'text':_0x538a6b['to']('text',_0x3f1504=>_0x3f1504||_0x5e19eb)}],'on':{'click':_0x538a6b['to']('click')}});}} | ||
import{View as _0x347166}from'ckeditor5/src/ui';export default class $ extends _0x347166{constructor(_0x2d9b59,_0x45ebe4=!0x1){super(_0x2d9b59);const t=_0x2d9b59['t'],_0x197860=this['bindTemplate'],_0x1ca83b=_0x45ebe4?'['+t('Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x5a5a18=>!_0x5a5a18),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x197860['to']('level',_0x4dfaac=>'ck-document-outline__item_level-'+_0x4dfaac),_0x197860['if']('isActive','ck-document-outline__item_active'),_0x197860['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x197860['to']('text')},'children':[{'text':_0x197860['to']('text',_0x69f12a=>_0x69f12a||_0x1ca83b)}],'on':{'click':_0x197860['to']('click')}});}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
import{View as _0x1561c1}from'ckeditor5/src/ui';import{scrollAncestorsToShowTarget as _0x53e313}from'ckeditor5/src/utils';import _0x30dc8e from'./documentoutlineitemview';export default class d extends _0x1561c1{constructor(_0xc8e3c5,_0x515149=!0x1,_0x10aac3){super(_0xc8e3c5);const t=_0xc8e3c5['t'];this['showEmptyHeadingText']=_0x515149,this['set']('activeItemIndex',-0x1),this['_documentOutlineContainer']=_0x10aac3,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x227b6c,_0x8cec0a,_0x5ee64a,_0x330ae6)=>{this['_setActiveItem'](_0x330ae6,_0x5ee64a);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0xc8e3c5['contentLanguageDirection'],'data-document-outline-empty-placeholder':t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x3b9f60){_0x3b9f60['forEach'](_0x3917d9=>{'insert'==_0x3917d9['type']?this['_insertItem'](_0x3917d9['index'],..._0x3917d9['values']):'delete'==_0x3917d9['type']&&this['_deleteItem'](_0x3917d9['index'],_0x3917d9['howMany']);});}['_setActiveItem'](_0x3766c9,_0x224bad){if(-0x1!==_0x3766c9){const _0x427117=this['items']['get'](_0x3766c9);_0x427117&&(_0x427117['isActive']=!0x1);}-0x1!==_0x224bad&&(this['items']['get'](_0x224bad)['isActive']=!0x0,this['_scrollToItem'](_0x224bad));}['_insertItem'](_0x4a6dd3,..._0x5284bc){const _0x5c21d4=_0x5284bc['map']((_0x48398a,_0x54bc3a)=>{const _0x14600a=new _0x30dc8e(this['locale'],this['showEmptyHeadingText']);return _0x14600a['text']=_0x48398a['text'],_0x14600a['level']=_0x48398a['level'],_0x4a6dd3+_0x54bc3a===this['activeItemIndex']&&(_0x14600a['isActive']=!0x0),_0x14600a;});this['items']['addMany'](_0x5c21d4,_0x4a6dd3);}['_deleteItem'](_0x2b7767,_0x564289){do{this['items']['remove'](_0x2b7767);}while(--_0x564289);}['_handleItemClick'](_0x299cca){const _0x4768ff=this['items']['getIndex'](_0x299cca['source']);this['fire']('itemSelected',_0x4768ff);}['_scrollToItem'](_0x40c555){_0x53e313(this['items']['get'](_0x40c555)['element'],0x14,this['_documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}} | ||
import{View as _0x10943c}from'ckeditor5/src/ui';import{scrollAncestorsToShowTarget as _0x3ab9c2}from'ckeditor5/src/utils';import _0xcd879 from'./documentoutlineitemview';export default class d extends _0x10943c{constructor(_0x4490b9,_0x457f17=!0x1,_0x4f26b2){super(_0x4490b9);const t=_0x4490b9['t'];this['showEmptyHeadingText']=_0x457f17,this['set']('activeItemIndex',-0x1),this['_documentOutlineContainer']=_0x4f26b2,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x46e371,_0x4f578a,_0xe01d4c,_0x3234b2)=>{this['_setActiveItem'](_0x3234b2,_0xe01d4c);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x4490b9['contentLanguageDirection'],'data-document-outline-empty-placeholder':t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0xfd4830){_0xfd4830['forEach'](_0x17e577=>{'insert'==_0x17e577['type']?this['_insertItem'](_0x17e577['index'],..._0x17e577['values']):'delete'==_0x17e577['type']&&this['_deleteItem'](_0x17e577['index'],_0x17e577['howMany']);});}['_setActiveItem'](_0x25ab79,_0x2b4230){if(-0x1!==_0x25ab79){const _0x424de1=this['items']['get'](_0x25ab79);_0x424de1&&(_0x424de1['isActive']=!0x1);}-0x1!==_0x2b4230&&(this['items']['get'](_0x2b4230)['isActive']=!0x0,this['_scrollToItem'](_0x2b4230));}['_insertItem'](_0x48db5d,..._0x4195a3){const _0x275a4e=_0x4195a3['map']((_0x3102b3,_0x42ad63)=>{const _0x3e93c8=new _0xcd879(this['locale'],this['showEmptyHeadingText']);return _0x3e93c8['text']=_0x3102b3['text'],_0x3e93c8['level']=_0x3102b3['level'],_0x48db5d+_0x42ad63===this['activeItemIndex']&&(_0x3e93c8['isActive']=!0x0),_0x3e93c8;});this['items']['addMany'](_0x275a4e,_0x48db5d);}['_deleteItem'](_0x389538,_0x203c96){do{this['items']['remove'](_0x389538);}while(--_0x203c96);}['_handleItemClick'](_0x5da82f){const _0x558135=this['items']['getIndex'](_0x5da82f['source']);this['fire']('itemSelected',_0x558135);}['_scrollToItem'](_0x308770){_0x3ab9c2(this['items']['get'](_0x308770)['element'],0x14,this['_documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x4ca3=['htmlH5','getChildren','htmlH2','reduce','GeneralHtmlSupport','config','plugins','heading.options','htmlH3','htmlH1','data','has','get','model'];(function(_0x3af234,_0x4ca383){const _0xf664e8=function(_0x1a5cf9){while(--_0x1a5cf9){_0x3af234['push'](_0x3af234['shift']());}};_0xf664e8(++_0x4ca383);}(_0x4ca3,0x15b));const _0xf664=function(_0x3af234,_0x4ca383){_0x3af234=_0x3af234-0x0;let _0xf664e8=_0x4ca3[_0x3af234];return _0xf664e8;};import{Text as _0x5f3c68}from'ckeditor5/src/engine';export function getElementText(_0x4d3f9b){let _0x405f2f='';for(const _0x31190a of _0x4d3f9b[_0xf664('0x4')]())_0x31190a instanceof _0x5f3c68&&(_0x405f2f+=_0x31190a[_0xf664('0xd')]);return _0x405f2f;}export function getDefaultFeatureHeadingNames(_0x1894e8){const _0x5c2939=_0x1894e8[_0xf664('0x8')][_0xf664('0x1')](_0xf664('0xa'));return _0x5c2939?_0x5c2939[_0xf664('0x6')]((_0xda2ad9,_0x13aeff)=>('paragraph'!==_0x13aeff[_0xf664('0x2')]&&_0xda2ad9['push'](_0x13aeff[_0xf664('0x2')]),_0xda2ad9),[]):_0x1894e8[_0xf664('0x9')][_0xf664('0x0')](_0xf664('0x7'))?[_0xf664('0xc'),_0xf664('0x5'),_0xf664('0xb'),'htmlH4',_0xf664('0x3'),'htmlH6']:[];} | ||
const _0x1eab=['htmlH5','push','has','plugins','GeneralHtmlSupport','get','data','htmlH1','paragraph','htmlH2','reduce','heading.options','htmlH6'];(function(_0x5387fe,_0x1eab38){const _0x141121=function(_0x4858a1){while(--_0x4858a1){_0x5387fe['push'](_0x5387fe['shift']());}};_0x141121(++_0x1eab38);}(_0x1eab,0x79));const _0x1411=function(_0x5387fe,_0x1eab38){_0x5387fe=_0x5387fe-0x0;let _0x141121=_0x1eab[_0x5387fe];return _0x141121;};import{Text as _0x5f57ff}from'ckeditor5/src/engine';export function getElementText(_0x6102fe){let _0x185618='';for(const _0x49875b of _0x6102fe['getChildren']())_0x49875b instanceof _0x5f57ff&&(_0x185618+=_0x49875b[_0x1411('0x2')]);return _0x185618;}export function getDefaultFeatureHeadingNames(_0x223950){const _0x333c72=_0x223950['config'][_0x1411('0x1')](_0x1411('0x7'));return _0x333c72?_0x333c72[_0x1411('0x6')]((_0x39f68d,_0xbc893d)=>(_0x1411('0x4')!==_0xbc893d['model']&&_0x39f68d[_0x1411('0xa')](_0xbc893d['model']),_0x39f68d),[]):_0x223950[_0x1411('0xc')][_0x1411('0xb')](_0x1411('0x0'))?[_0x1411('0x3'),_0x1411('0x5'),'htmlH3','htmlH4',_0x1411('0x9'),_0x1411('0x8')]:[];} |
@@ -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 _0x5ec0e4 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':_0x5ec0e4};import'./augmentation'; | ||
export{default as DocumentOutline}from'./documentoutline';export{default as DocumentOutlineUI}from'./documentoutline/documentoutlineui';export{default as DocumentOutlineUtils}from'./documentoutline/documentoutlineutils';import _0x36f34b from'../theme/icons/table-of-contents.svg';export{default as TableOfContents}from'./tableofcontents';export{default as TableOfContentsCommand}from'./tableofcontents/tableofcontentscommand';export{default as TableOfContentsEditing}from'./tableofcontents/tableofcontentsediting';export{default as TableOfContentsUI}from'./tableofcontents/tableofcontentsui';export{default as HeadingId}from'./tableofcontents/headingid';export const icons={'tableOfContentsIcon':_0x36f34b};import'./augmentation'; |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
var _0x520a=['pluginName','requires'];(function(_0x37fb19,_0x520a7d){var _0x140be1=function(_0x408b2c){while(--_0x408b2c){_0x37fb19['push'](_0x37fb19['shift']());}};_0x140be1(++_0x520a7d);}(_0x520a,0x14f));var _0x140b=function(_0x37fb19,_0x520a7d){_0x37fb19=_0x37fb19-0x0;var _0x140be1=_0x520a[_0x37fb19];return _0x140be1;};import{Plugin as _0x58d82f}from'ckeditor5/src/core';import _0x270322 from'./tableofcontents/tableofcontentsediting';import _0x805fdc from'./tableofcontents/tableofcontentsui';export default class c extends _0x58d82f{static get[_0x140b('0x0')](){return[_0x270322,_0x805fdc];}static get[_0x140b('0x1')](){return'TableOfContents';}} | ||
var _0x3e3a=['TableOfContents','pluginName','requires'];(function(_0x7c07b6,_0x3e3aeb){var _0x18151c=function(_0x5e6b92){while(--_0x5e6b92){_0x7c07b6['push'](_0x7c07b6['shift']());}};_0x18151c(++_0x3e3aeb);}(_0x3e3a,0x84));var _0x1815=function(_0x7c07b6,_0x3e3aeb){_0x7c07b6=_0x7c07b6-0x0;var _0x18151c=_0x3e3a[_0x7c07b6];return _0x18151c;};import{Plugin as _0x597e4f}from'ckeditor5/src/core';import _0x30dbc5 from'./tableofcontents/tableofcontentsediting';import _0x304078 from'./tableofcontents/tableofcontentsui';export default class c extends _0x597e4f{static get[_0x1815('0x2')](){return[_0x30dbc5,_0x304078];}static get[_0x1815('0x1')](){return _0x1815('0x0');}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x1019=['headingId','attribute:headingId:','view','has','consume','consumable','HeadingId','mapper','attributes','heading1','match','pluginName','for','config','name','getContainedElement','editor','_customUpcastHeadingsConversion','nodeAfter','_registerHeadingIdAttributePostfixer','clear','data','get','writer','heading.options','removeAttribute','toViewElement','isRegistered','viewItem','afterInit','item','hasAttribute','differ','type','modelRange','model','set','document','setAttribute','getAttribute','add','_customDataDowncastHeadingsConversion','insert','element:','string','paragraph','registerPostFixer','forEach','conversion','remove','delete','position','schema'];(function(_0x40009c,_0x101941){const _0x49ddbd=function(_0x427058){while(--_0x427058){_0x40009c['push'](_0x40009c['shift']());}};_0x49ddbd(++_0x101941);}(_0x1019,0x171));const _0x49dd=function(_0x40009c,_0x101941){_0x40009c=_0x40009c-0x0;let _0x49ddbd=_0x1019[_0x40009c];return _0x49ddbd;};import{Plugin as _0x300440}from'ckeditor5/src/core';import{uid as _0x3a484e,priorities as _0x440ce7}from'ckeditor5/src/utils';export default class A extends _0x300440{static get[_0x49dd('0xd')](){return _0x49dd('0x8');}[_0x49dd('0x1f')](){const _0x32a5dd=this[_0x49dd('0x12')];if(_0x32a5dd['config']['get']('headingId.modelAttributeName'))return;(function(_0x1ac56b){const _0xe6f25d=new Map();if(_0x1ac56b)return _0x1ac56b[_0x49dd('0x31')](_0x11694a=>{_0x49dd('0x2f')!==_0x11694a[_0x49dd('0x25')]&&_0xe6f25d[_0x49dd('0x26')](_0x11694a[_0x49dd('0x4')],_0x11694a[_0x49dd('0x25')]);}),_0xe6f25d[_0x49dd('0x18')]('h1')||_0xe6f25d['set']('h1',_0x49dd('0xb')),_0xe6f25d;return _0xe6f25d;}(this['editor'][_0x49dd('0xf')][_0x49dd('0x18')](_0x49dd('0x1a')))[_0x49dd('0x31')]((_0x308c61,_0x158d86)=>{this[_0x49dd('0x13')](_0x158d86),this[_0x49dd('0x2b')](_0x308c61),_0x32a5dd[_0x49dd('0x25')][_0x49dd('0x1')][_0x49dd('0x1d')](_0x308c61)&&_0x32a5dd['model'][_0x49dd('0x1')]['extend'](_0x308c61,{'allowAttributes':_0x49dd('0x2')});}),this[_0x49dd('0x15')]());}[_0x49dd('0x13')](_0x4c9874){this[_0x49dd('0x12')][_0x49dd('0x17')]['upcastDispatcher']['on'](_0x49dd('0x2d')+_0x4c9874,(_0x3c3df8,_0x1a59b9,_0x36300d)=>{const {consumable:_0x37b735,writer:_0x2dc456}=_0x36300d,_0x1701e6=_0x1a59b9[_0x49dd('0x1e')][_0x49dd('0x29')]('id'),_0x50ceb3=_0x1a59b9[_0x49dd('0x24')][_0x49dd('0x11')]();if(!(_0x1701e6&&_0x1701e6['length']||_0x50ceb3[_0x49dd('0x21')]('headingId')))return _0x37b735['consume'](_0x1a59b9[_0x49dd('0x1e')],{'attributes':['id']}),void _0x2dc456[_0x49dd('0x28')](_0x49dd('0x2'),_0x3a484e(),_0x50ceb3);_0x37b735[_0x49dd('0x6')](_0x1a59b9['viewItem'],{'attributes':['id']})&&_0x2dc456[_0x49dd('0x28')](_0x49dd('0x2'),_0x1701e6,_0x50ceb3);},{'priority':_0x440ce7[_0x49dd('0x18')]('low')+0.5});}['_customDataDowncastHeadingsConversion'](_0x37c6e7){this[_0x49dd('0x12')][_0x49dd('0x32')][_0x49dd('0xe')]('downcast')[_0x49dd('0x2a')](_0x29dad0=>_0x29dad0['on'](_0x49dd('0x3')+_0x37c6e7,(_0x230c1d,_0x1f438b,_0x124f85)=>{if(!_0x124f85[_0x49dd('0x7')][_0x49dd('0x6')](_0x1f438b[_0x49dd('0x20')],_0x230c1d[_0x49dd('0x10')]))return;const _0x270f39=_0x1f438b['item']['getAttribute']('headingId'),_0xeb6104=_0x124f85[_0x49dd('0x9')][_0x49dd('0x1c')](_0x1f438b[_0x49dd('0x20')]);_0x124f85[_0x49dd('0x19')][_0x49dd('0x28')]('id',_0x270f39,_0xeb6104);}));}[_0x49dd('0x15')](){const _0x35a678=this[_0x49dd('0x12')],_0x5ee16=new Set(),_0x2401c5=new Set();function _0x5c279e(_0x1e214d,_0x5060cf){const _0x475f5f=_0x3a484e();return _0x2401c5[_0x49dd('0x2a')](_0x475f5f),_0x1e214d[_0x49dd('0x28')](_0x49dd('0x2'),_0x475f5f,_0x5060cf),_0x475f5f;}function _0x4bb457(_0x2863d0,_0x8f4f77){_0x2863d0[_0x49dd('0x1b')]('headingId',_0x8f4f77);}_0x35a678[_0x49dd('0x25')][_0x49dd('0x27')][_0x49dd('0x30')](_0x5e618f=>{const _0x50a318=_0x35a678[_0x49dd('0x25')][_0x49dd('0x27')][_0x49dd('0x22')]['getChanges']();let _0x3be84c=!0x1;for(const _0x1ae737 of _0x50a318)if(_0x49dd('0x2c')==_0x1ae737[_0x49dd('0x23')]&&_0x1ae737[_0x49dd('0x10')]){if(_0x1ae737[_0x49dd('0x10')][_0x49dd('0xc')](/heading\d/)){const _0x38b273=_0x1ae737[_0x49dd('0xa')][_0x49dd('0x18')](_0x49dd('0x2'));_0x49dd('0x2e')==typeof _0x38b273?_0x5ee16[_0x49dd('0x5')](_0x38b273)?(_0x5c279e(_0x5e618f,_0x1ae737[_0x49dd('0x0')][_0x49dd('0x14')]),_0x3be84c=!0x0):_0x2401c5[_0x49dd('0x2a')](_0x38b273):(_0x5c279e(_0x5e618f,_0x1ae737['position']['nodeAfter']),_0x3be84c=!0x0);}else'string'==typeof _0x1ae737[_0x49dd('0xa')][_0x49dd('0x18')](_0x49dd('0x2'))&&(_0x4bb457(_0x5e618f,_0x1ae737[_0x49dd('0x0')]['nodeAfter']),_0x3be84c=!0x0);}else{if(_0x49dd('0x33')==_0x1ae737[_0x49dd('0x23')]){const _0x29888f=_0x1ae737['attributes'][_0x49dd('0x18')](_0x49dd('0x2'));_0x49dd('0x2e')==typeof _0x29888f&&_0x5ee16[_0x49dd('0x34')](_0x29888f);}}return _0x3be84c;}),_0x35a678[_0x49dd('0x25')][_0x49dd('0x27')]['on']('change',()=>{_0x2401c5[_0x49dd('0x31')](_0x316790=>_0x5ee16[_0x49dd('0x2a')](_0x316790)),_0x2401c5[_0x49dd('0x16')]();});}} | ||
const _0x59fc=['attribute:headingId:','mapper','paragraph','schema','editor','has','string','document','delete','_customUpcastHeadingsConversion','config','model','type','viewItem','consume','getAttribute','change','get','upcastDispatcher','insert','conversion','modelRange','removeAttribute','forEach','setAttribute','_customDataDowncastHeadingsConversion','isRegistered','afterInit','length','view','headingId','getContainedElement','registerPostFixer','item','extend','add','attributes','match','pluginName','consumable','_registerHeadingIdAttributePostfixer','low','downcast','remove','set','name','toViewElement','nodeAfter','hasAttribute'];(function(_0x106940,_0x59fc95){const _0x39488a=function(_0x17a644){while(--_0x17a644){_0x106940['push'](_0x106940['shift']());}};_0x39488a(++_0x59fc95);}(_0x59fc,0xa8));const _0x3948=function(_0x106940,_0x59fc95){_0x106940=_0x106940-0x0;let _0x39488a=_0x59fc[_0x106940];return _0x39488a;};import{Plugin as _0x36d011}from'ckeditor5/src/core';import{uid as _0x3187a3,priorities as _0x500007}from'ckeditor5/src/utils';export default class A extends _0x36d011{static get[_0x3948('0x11')](){return'HeadingId';}[_0x3948('0x6')](){const _0x55cc1d=this['editor'];if(_0x55cc1d[_0x3948('0x26')][_0x3948('0x2d')]('headingId.modelAttributeName'))return;(function(_0x43919a){const _0x57a6c1=new Map();if(_0x43919a)return _0x43919a[_0x3948('0x2')](_0x4c607c=>{_0x3948('0x1e')!==_0x4c607c[_0x3948('0x27')]&&_0x57a6c1['set'](_0x4c607c[_0x3948('0x8')],_0x4c607c[_0x3948('0x27')]);}),_0x57a6c1['get']('h1')||_0x57a6c1[_0x3948('0x17')]('h1','heading1'),_0x57a6c1;return _0x57a6c1;}(this['editor'][_0x3948('0x26')][_0x3948('0x2d')]('heading.options'))[_0x3948('0x2')]((_0x40aab7,_0x25152b)=>{this[_0x3948('0x25')](_0x25152b),this[_0x3948('0x4')](_0x40aab7),_0x55cc1d[_0x3948('0x27')][_0x3948('0x1f')][_0x3948('0x5')](_0x40aab7)&&_0x55cc1d['model']['schema'][_0x3948('0xd')](_0x40aab7,{'allowAttributes':'headingId'});}),this[_0x3948('0x13')]());}['_customUpcastHeadingsConversion'](_0x54e82d){this[_0x3948('0x20')]['data'][_0x3948('0x2e')]['on']('element:'+_0x54e82d,(_0x2ae2c2,_0x5dff81,_0x257f2e)=>{const {consumable:_0x5ee9c9,writer:_0x407b5e}=_0x257f2e,_0x552aef=_0x5dff81['viewItem'][_0x3948('0x2b')]('id'),_0x3b9e50=_0x5dff81[_0x3948('0x0')][_0x3948('0xa')]();if(!(_0x552aef&&_0x552aef[_0x3948('0x7')]||_0x3b9e50[_0x3948('0x1b')](_0x3948('0x9'))))return _0x5ee9c9[_0x3948('0x2a')](_0x5dff81[_0x3948('0x29')],{'attributes':['id']}),void _0x407b5e[_0x3948('0x3')]('headingId',_0x3187a3(),_0x3b9e50);_0x5ee9c9[_0x3948('0x2a')](_0x5dff81[_0x3948('0x29')],{'attributes':['id']})&&_0x407b5e['setAttribute'](_0x3948('0x9'),_0x552aef,_0x3b9e50);},{'priority':_0x500007[_0x3948('0x2d')](_0x3948('0x14'))+0.5});}[_0x3948('0x4')](_0xffcfa0){this['editor'][_0x3948('0x30')]['for'](_0x3948('0x15'))[_0x3948('0xe')](_0x2fd681=>_0x2fd681['on'](_0x3948('0x1c')+_0xffcfa0,(_0x5edb27,_0x5d9993,_0x88d326)=>{if(!_0x88d326[_0x3948('0x12')][_0x3948('0x2a')](_0x5d9993[_0x3948('0xc')],_0x5edb27[_0x3948('0x18')]))return;const _0x49d168=_0x5d9993[_0x3948('0xc')]['getAttribute']('headingId'),_0x184199=_0x88d326[_0x3948('0x1d')][_0x3948('0x19')](_0x5d9993['item']);_0x88d326['writer'][_0x3948('0x3')]('id',_0x49d168,_0x184199);}));}[_0x3948('0x13')](){const _0x4be0e3=this['editor'],_0x491b9b=new Set(),_0x5741cc=new Set();function _0x1d61cb(_0x4bda4a,_0x283792){const _0x1555f0=_0x3187a3();return _0x5741cc[_0x3948('0xe')](_0x1555f0),_0x4bda4a[_0x3948('0x3')]('headingId',_0x1555f0,_0x283792),_0x1555f0;}function _0x2d5253(_0x2b87f4,_0xea04fa){_0x2b87f4[_0x3948('0x1')](_0x3948('0x9'),_0xea04fa);}_0x4be0e3[_0x3948('0x27')]['document'][_0x3948('0xb')](_0x41806a=>{const _0x59b5d9=_0x4be0e3['model']['document']['differ']['getChanges']();let _0x4ccb3d=!0x1;for(const _0x4bea15 of _0x59b5d9)if(_0x3948('0x2f')==_0x4bea15['type']&&_0x4bea15[_0x3948('0x18')]){if(_0x4bea15[_0x3948('0x18')][_0x3948('0x10')](/heading\d/)){const _0x3cc956=_0x4bea15[_0x3948('0xf')]['get'](_0x3948('0x9'));_0x3948('0x22')==typeof _0x3cc956?_0x491b9b[_0x3948('0x21')](_0x3cc956)?(_0x1d61cb(_0x41806a,_0x4bea15['position'][_0x3948('0x1a')]),_0x4ccb3d=!0x0):_0x5741cc[_0x3948('0xe')](_0x3cc956):(_0x1d61cb(_0x41806a,_0x4bea15['position'][_0x3948('0x1a')]),_0x4ccb3d=!0x0);}else _0x3948('0x22')==typeof _0x4bea15[_0x3948('0xf')]['get'](_0x3948('0x9'))&&(_0x2d5253(_0x41806a,_0x4bea15['position'][_0x3948('0x1a')]),_0x4ccb3d=!0x0);}else{if(_0x3948('0x16')==_0x4bea15[_0x3948('0x28')]){const _0x4137d5=_0x4bea15[_0x3948('0xf')][_0x3948('0x2d')]('headingId');_0x3948('0x22')==typeof _0x4137d5&&_0x491b9b[_0x3948('0x24')](_0x4137d5);}}return _0x4ccb3d;}),_0x4be0e3[_0x3948('0x27')][_0x3948('0x23')]['on'](_0x3948('0x2c'),()=>{_0x5741cc[_0x3948('0x2')](_0x32fd3e=>_0x491b9b[_0x3948('0xe')](_0x32fd3e)),_0x5741cc['clear']();});}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x33e7=['getFirstPosition','createElement','execute','tableOfContents','editor','selection','schema','refresh','isEnabled','insertObject','document','change'];(function(_0x280297,_0x33e7e6){const _0x4183f5=function(_0x2745df){while(--_0x2745df){_0x280297['push'](_0x280297['shift']());}};_0x4183f5(++_0x33e7e6);}(_0x33e7,0x10c));const _0x4183=function(_0x280297,_0x33e7e6){_0x280297=_0x280297-0x0;let _0x4183f5=_0x33e7[_0x280297];return _0x4183f5;};import{Command as _0x1661ed}from'ckeditor5/src/core';export default class O extends _0x1661ed{[_0x4183('0xa')](){this[_0x4183('0x0')]['model'][_0x4183('0x7')](_0x23b9e2=>{this[_0x4183('0x0')]['model'][_0x4183('0x5')](_0x23b9e2[_0x4183('0x9')](_0x4183('0xb')));});}[_0x4183('0x3')](){const _0x1c7953=this[_0x4183('0x0')]['model'],_0x3b0e20=_0x1c7953[_0x4183('0x6')][_0x4183('0x1')][_0x4183('0x8')]();this[_0x4183('0x4')]=null!==(_0x3b0e20&&_0x1c7953[_0x4183('0x2')]['findAllowedParent'](_0x3b0e20,_0x4183('0xb')));}} | ||
const _0x3ac3=['refresh','createElement','document','tableOfContents','selection','getFirstPosition','execute','model','schema','editor','findAllowedParent','change','insertObject'];(function(_0x546e27,_0x3ac3c2){const _0x4d11d9=function(_0x3ea2d0){while(--_0x3ea2d0){_0x546e27['push'](_0x546e27['shift']());}};_0x4d11d9(++_0x3ac3c2);}(_0x3ac3,0x1c7));const _0x4d11=function(_0x546e27,_0x3ac3c2){_0x546e27=_0x546e27-0x0;let _0x4d11d9=_0x3ac3[_0x546e27];return _0x4d11d9;};import{Command as _0x34f367}from'ckeditor5/src/core';export default class O extends _0x34f367{[_0x4d11('0x6')](){this[_0x4d11('0x9')][_0x4d11('0x7')][_0x4d11('0xb')](_0x2c6ada=>{this[_0x4d11('0x9')]['model'][_0x4d11('0xc')](_0x2c6ada[_0x4d11('0x1')](_0x4d11('0x3')));});}[_0x4d11('0x0')](){const _0x2f5bed=this['editor']['model'],_0x1fc9e5=_0x2f5bed[_0x4d11('0x2')][_0x4d11('0x4')][_0x4d11('0x5')]();this['isEnabled']=null!==(_0x1fc9e5&&_0x2f5bed[_0x4d11('0x8')][_0x4d11('0xa')](_0x1fc9e5,_0x4d11('0x3')));}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
import{ButtonView as _0x143b7c}from'ckeditor5/src/ui';import{CKEditorError as _0x5d9814}from'ckeditor5/src/utils';import{Plugin as _0x6fad9d}from'ckeditor5/src/core';import _0x58742e from'../../theme/icons/table-of-contents.svg';export default class s extends _0x6fad9d{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x2a61c0){super(_0x2a61c0),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x5a606d=this['editor'],t=_0x5a606d['t'];_0x5a606d['ui']['componentFactory']['add']('tableOfContents',_0x276517=>{const _0x4c159e=_0x5a606d['commands']['get']('insertTableOfContents'),_0x5e00f0=new _0x143b7c(_0x276517);return _0x5e00f0['set']({'label':t('Table\x20of\x20contents'),'icon':_0x58742e,'tooltip':!0x0}),_0x5e00f0['bind']('isEnabled')['to'](_0x4c159e,'isEnabled'),this['listenTo'](_0x5e00f0,'execute',()=>{_0x5a606d['execute']('insertTableOfContents'),_0x5a606d['editing']['view']['focus']();}),_0x5e00f0;}),this['licenseKey']=_0x5a606d['config']['get']('licenseKey');const _0x5a9f0c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3584a5;for(const _0x3aa2c1 in _0x5a9f0c){const _0x52dc9a=_0x3aa2c1,_0x35de09=_0x5a9f0c[_0x52dc9a];if('tableOfContentsLicenseKeyTrial'===_0x35de09||'tableOfContentsLicenseKeyInvalid'===_0x35de09||'tableOfContentsLicenseKeyValid'===_0x35de09||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x35de09){delete _0x5a9f0c[_0x52dc9a],_0x3584a5=_0x35de09;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x3584a5)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x5d9814('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x3584a5&&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'===_0x3584a5)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x5d9814('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x3584a5&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}} | ||
import{ButtonView as _0x48cfaa}from'ckeditor5/src/ui';import{CKEditorError as _0x51e5a}from'ckeditor5/src/utils';import{Plugin as _0x2b950d}from'ckeditor5/src/core';import _0x1caa8d from'../../theme/icons/table-of-contents.svg';export default class s extends _0x2b950d{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x5ae718){super(_0x5ae718),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x962642=this['editor'],t=_0x962642['t'];_0x962642['ui']['componentFactory']['add']('tableOfContents',_0x27b271=>{const _0x5a6748=_0x962642['commands']['get']('insertTableOfContents'),_0x2b525e=new _0x48cfaa(_0x27b271);return _0x2b525e['set']({'label':t('Table\x20of\x20contents'),'icon':_0x1caa8d,'tooltip':!0x0}),_0x2b525e['bind']('isEnabled')['to'](_0x5a6748,'isEnabled'),this['listenTo'](_0x2b525e,'execute',()=>{_0x962642['execute']('insertTableOfContents'),_0x962642['editing']['view']['focus']();}),_0x2b525e;}),this['licenseKey']=_0x962642['config']['get']('licenseKey');const _0x24e0fc=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x362f17;for(const _0x5edf21 in _0x24e0fc){const _0x25ce9e=_0x5edf21,_0x92219f=_0x24e0fc[_0x25ce9e];if('tableOfContentsLicenseKeyTrial'===_0x92219f||'tableOfContentsLicenseKeyInvalid'===_0x92219f||'tableOfContentsLicenseKeyValid'===_0x92219f||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x92219f){delete _0x24e0fc[_0x25ce9e],_0x362f17=_0x92219f;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x362f17)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x51e5a('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x362f17&&console['info']('You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20table\x20of\x20contents\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.'),'tableOfContentsLicenseKeyTrialLimit:operations'===_0x362f17)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x51e5a('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x362f17&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}} |
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
394395
992
+ Added@ckeditor/ckeditor5-clipboard@0.0.0-nightly-20230803.0(transitive)
+ Added@ckeditor/ckeditor5-core@0.0.0-nightly-20230803.0(transitive)
+ Added@ckeditor/ckeditor5-engine@0.0.0-nightly-20230803.0(transitive)
+ Added@ckeditor/ckeditor5-enter@0.0.0-nightly-20230803.0(transitive)
+ Added@ckeditor/ckeditor5-paragraph@0.0.0-nightly-20230803.0(transitive)
+ Added@ckeditor/ckeditor5-select-all@0.0.0-nightly-20230803.0(transitive)
+ Added@ckeditor/ckeditor5-typing@0.0.0-nightly-20230803.0(transitive)
+ Added@ckeditor/ckeditor5-ui@0.0.0-nightly-20230803.0(transitive)
+ Added@ckeditor/ckeditor5-undo@0.0.0-nightly-20230803.0(transitive)
+ Added@ckeditor/ckeditor5-upload@0.0.0-nightly-20230803.0(transitive)
+ Added@ckeditor/ckeditor5-utils@0.0.0-nightly-20230803.0(transitive)
+ Added@ckeditor/ckeditor5-watchdog@0.0.0-nightly-20230803.0(transitive)
+ Added@ckeditor/ckeditor5-widget@0.0.0-nightly-20230803.0(transitive)
+ Addedckeditor5@0.0.0-nightly-20230803.0(transitive)
- Removed@ckeditor/ckeditor5-clipboard@0.0.0-nightly-20230802.0(transitive)
- Removed@ckeditor/ckeditor5-core@0.0.0-nightly-20230802.0(transitive)
- Removed@ckeditor/ckeditor5-engine@0.0.0-nightly-20230802.0(transitive)
- Removed@ckeditor/ckeditor5-enter@0.0.0-nightly-20230802.0(transitive)
- Removed@ckeditor/ckeditor5-paragraph@0.0.0-nightly-20230802.0(transitive)
- Removed@ckeditor/ckeditor5-select-all@0.0.0-nightly-20230802.0(transitive)
- Removed@ckeditor/ckeditor5-typing@0.0.0-nightly-20230802.0(transitive)
- Removed@ckeditor/ckeditor5-ui@0.0.0-nightly-20230802.0(transitive)
- Removed@ckeditor/ckeditor5-undo@0.0.0-nightly-20230802.0(transitive)
- Removed@ckeditor/ckeditor5-upload@0.0.0-nightly-20230802.0(transitive)
- Removed@ckeditor/ckeditor5-utils@0.0.0-nightly-20230802.0(transitive)
- Removed@ckeditor/ckeditor5-watchdog@0.0.0-nightly-20230802.0(transitive)
- Removed@ckeditor/ckeditor5-widget@0.0.0-nightly-20230802.0(transitive)
- Removedckeditor5@0.0.0-nightly-20230802.0(transitive)