@ckeditor/ckeditor5-document-outline
Advanced tools
Comparing version 0.0.0-nightly-20230828.0 to 0.0.0-nightly-20230829.0
{ | ||
"name": "@ckeditor/ckeditor5-document-outline", | ||
"version": "0.0.0-nightly-20230828.0", | ||
"version": "0.0.0-nightly-20230829.0", | ||
"description": "Document outline feature for CKEditor 5.", | ||
@@ -15,4 +15,4 @@ "keywords": [ | ||
"dependencies": { | ||
"ckeditor5": "0.0.0-nightly-20230828.0", | ||
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20230828.0", | ||
"ckeditor5": "0.0.0-nightly-20230829.0", | ||
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20230829.0", | ||
"lodash-es": "4.17.21" | ||
@@ -19,0 +19,0 @@ }, |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x46c3=['get','documentOutlineLicenseKeyValid','destroy','editor','licenseKey','documentOutlineLicenseKeyInvalid','init','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.','document-outline-invalid-license-key','document-outline-trial-license-key-reached-limit-changes','info','requires','_licenseKeyCheckInterval','config','documentOutlineLicenseKeyTrial','documentOutlineLicenseKeyTrialLimit:operations'];(function(_0x562042,_0x46c3ce){const _0x5cb7ad=function(_0x28a94b){while(--_0x28a94b){_0x562042['push'](_0x562042['shift']());}};_0x5cb7ad(++_0x46c3ce);}(_0x46c3,0x1ce));const _0x5cb7=function(_0x562042,_0x46c3ce){_0x562042=_0x562042-0x0;let _0x5cb7ad=_0x46c3[_0x562042];return _0x5cb7ad;};import{Plugin as _0x117e97}from'ckeditor5/src/core';import{CKEditorError as _0x475db1}from'ckeditor5/src/utils';import _0x395109 from'./documentoutline/documentoutlineutils';import _0x8fcc22 from'./documentoutline/documentoutlineui';export default class l extends _0x117e97{static get[_0x5cb7('0xd')](){return[_0x395109,_0x8fcc22];}static get['pluginName'](){return'DocumentOutline';}constructor(_0x42a051){super(_0x42a051),this['_licenseKeyCheckInterval']=null;}[_0x5cb7('0x8')](){const _0x23b415=this[_0x5cb7('0x5')];this[_0x5cb7('0x6')]=_0x23b415[_0x5cb7('0xf')][_0x5cb7('0x2')]('licenseKey');const _0x5c58b7=this[_0x5cb7('0x5')];this[_0x5cb7('0xe')]=setInterval(()=>{let _0x31380d;for(const _0x3738a6 in _0x5c58b7){const _0x1d3659=_0x3738a6,_0x116176=_0x5c58b7[_0x1d3659];if(_0x5cb7('0x0')===_0x116176||_0x5cb7('0x7')===_0x116176||_0x5cb7('0x3')===_0x116176||_0x5cb7('0x1')===_0x116176){delete _0x5c58b7[_0x1d3659],_0x31380d=_0x116176;break;}}if(_0x5cb7('0x7')===_0x31380d)throw clearInterval(this[_0x5cb7('0xe')]),new _0x475db1(_0x5cb7('0xa'),null);if(_0x5cb7('0x0')===_0x31380d&&console[_0x5cb7('0xc')](_0x5cb7('0x9')),'documentOutlineLicenseKeyTrialLimit:operations'===_0x31380d)throw clearInterval(this[_0x5cb7('0xe')]),new _0x475db1(_0x5cb7('0xb'),null);_0x5cb7('0x3')===_0x31380d&&clearInterval(this[_0x5cb7('0xe')]);},0x3e8);}[_0x5cb7('0x4')](){this[_0x5cb7('0xe')]&&clearInterval(this[_0x5cb7('0xe')]);}} | ||
const _0x5e6d=['DocumentOutline','config','_licenseKeyCheckInterval','init','pluginName','requires','documentOutlineLicenseKeyValid','get','documentOutlineLicenseKeyTrial','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.','destroy','documentOutlineLicenseKeyInvalid','document-outline-invalid-license-key','document-outline-trial-license-key-reached-limit-changes','documentOutlineLicenseKeyTrialLimit:operations'];(function(_0x44bae7,_0x5e6d3e){const _0x48abda=function(_0x267c7d){while(--_0x267c7d){_0x44bae7['push'](_0x44bae7['shift']());}};_0x48abda(++_0x5e6d3e);}(_0x5e6d,0x184));const _0x48ab=function(_0x44bae7,_0x5e6d3e){_0x44bae7=_0x44bae7-0x0;let _0x48abda=_0x5e6d[_0x44bae7];return _0x48abda;};import{Plugin as _0x3b8527}from'ckeditor5/src/core';import{CKEditorError as _0x178373}from'ckeditor5/src/utils';import _0xa8cef5 from'./documentoutline/documentoutlineutils';import _0x5d953c from'./documentoutline/documentoutlineui';export default class l extends _0x3b8527{static get[_0x48ab('0x1')](){return[_0xa8cef5,_0x5d953c];}static get[_0x48ab('0x0')](){return _0x48ab('0xc');}constructor(_0x30c011){super(_0x30c011),this['_licenseKeyCheckInterval']=null;}[_0x48ab('0xf')](){const _0x162954=this['editor'];this['licenseKey']=_0x162954[_0x48ab('0xd')][_0x48ab('0x3')]('licenseKey');const _0x12577b=this['editor'];this[_0x48ab('0xe')]=setInterval(()=>{let _0x327336;for(const _0x3d16e7 in _0x12577b){const _0x15d62d=_0x3d16e7,_0x1d63ab=_0x12577b[_0x15d62d];if(_0x48ab('0x4')===_0x1d63ab||_0x48ab('0x8')===_0x1d63ab||_0x48ab('0x2')===_0x1d63ab||_0x48ab('0xb')===_0x1d63ab){delete _0x12577b[_0x15d62d],_0x327336=_0x1d63ab;break;}}if(_0x48ab('0x8')===_0x327336)throw clearInterval(this[_0x48ab('0xe')]),new _0x178373(_0x48ab('0x9'),null);if(_0x48ab('0x4')===_0x327336&&console[_0x48ab('0x5')](_0x48ab('0x6')),_0x48ab('0xb')===_0x327336)throw clearInterval(this[_0x48ab('0xe')]),new _0x178373(_0x48ab('0xa'),null);_0x48ab('0x2')===_0x327336&&clearInterval(this[_0x48ab('0xe')]);},0x3e8);}[_0x48ab('0x7')](){this[_0x48ab('0xe')]&&clearInterval(this['_licenseKeyCheckInterval']);}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x35b3=['editor','_getActiveHeading','name','_getHeadingNames','findIndex','domToView','getFirstPosition','editing','push','getChild','domConverter','createElement','view','change','_headingNames','DocumentOutlineUtils','item','fire','toModel','_deriveHeadingElementsFromConversion','afterInit','element','includes','selection','_getOutlineDefinitions','documentOutline.headings','indexOf','document','model','text','modelElement','length','activeItemIndex'];(function(_0x561b29,_0x35b329){const _0x2b07e1=function(_0xc1851b){while(--_0xc1851b){_0x561b29['push'](_0x561b29['shift']());}};_0x2b07e1(++_0x35b329);}(_0x35b3,0x1ce));const _0x2b07=function(_0x561b29,_0x35b329){_0x561b29=_0x561b29-0x0;let _0x2b07e1=_0x35b3[_0x561b29];return _0x2b07e1;};import{Plugin as _0xcde37a}from'ckeditor5/src/core';import{debounce as _0x2ee874}from'lodash-es';import{TreeWalker as _0x4b1857}from'ckeditor5/src/engine';import{getElementText as _0x2dd774,getDefaultFeatureHeadingNames as _0x5d1355}from'./utils';import{diff as _0x1f8439,diffToChanges as _0x3e9645}from'ckeditor5/src/utils';export default class n extends _0xcde37a{constructor(){super(...arguments),this[_0x2b07('0xe')]=[];}static get['pluginName'](){return _0x2b07('0xf');}['init'](){const _0x11ae66=this['editor'];this[_0x2b07('0xe')]=this[_0x2b07('0x3')]();let _0x11c131=[];_0x11ae66[_0x2b07('0x1c')][_0x2b07('0x1b')]['on']('change',_0x2ee874(()=>{const _0x3ba01d=_0x11c131;_0x11c131=this[_0x2b07('0x18')]();const _0x25eb0d=_0x1f8439(_0x3ba01d,_0x11c131,(_0x479094,_0x51226c)=>_0x479094['level']===_0x51226c['level']&&_0x479094[_0x2b07('0x1d')]===_0x51226c[_0x2b07('0x1d')]&&_0x479094[_0x2b07('0x1e')]===_0x51226c[_0x2b07('0x1e')]),_0x137a48=_0x3e9645(_0x25eb0d,_0x11c131),_0x48c94=this[_0x2b07('0x1')](),_0x164855=_0x11c131[_0x2b07('0x4')](_0x20cf97=>_0x20cf97[_0x2b07('0x1e')]===_0x48c94);_0x137a48[_0x2b07('0x1f')]&&this[_0x2b07('0x11')](_0x2b07('0xd'),{'outlineDefinitions':_0x11c131,'activeItemIndex':_0x164855,'outlineChanges':_0x137a48}),this['fire'](_0x2b07('0x20'),{'index':_0x164855});},0xfa,{'leading':!0x0,'trailing':!0x0}));}[_0x2b07('0x14')](){this[_0x2b07('0xe')][_0x2b07('0x1f')]||this[_0x2b07('0x13')]();}[_0x2b07('0x18')](){const _0x2ac198=this[_0x2b07('0x0')],_0x291e83=[],_0x5bc266=this[_0x2b07('0xe')];for(const _0x4f7ecd of _0x2ac198[_0x2b07('0x1c')]['document']['getRootNames']())_0x285a98(_0x2ac198['model'][_0x2b07('0x1b')]['getRoot'](_0x4f7ecd));function _0x285a98(_0x40c5a7){for(const _0xca7c2e of _0x40c5a7['getChildren']())_0xca7c2e['is'](_0x2b07('0x15'))&&(_0x5bc266[_0x2b07('0x16')](_0xca7c2e[_0x2b07('0x2')])&&_0x291e83[_0x2b07('0x8')]({'level':_0x5bc266[_0x2b07('0x1a')](_0xca7c2e['name'])+0x1,'text':_0x2dd774(_0xca7c2e),'modelElement':_0xca7c2e}),_0x285a98(_0xca7c2e));}return _0x291e83;}[_0x2b07('0x1')](){const _0x17c19f=this['editor'][_0x2b07('0x1c')][_0x2b07('0x1b')][_0x2b07('0x17')][_0x2b07('0x6')](),_0x50fa60=new _0x4b1857({'direction':'backward','startPosition':_0x17c19f});for(const _0x1c6577 of _0x50fa60)if(_0x1c6577[_0x2b07('0x10')]['is'](_0x2b07('0x15'))&&this[_0x2b07('0xe')]['includes'](_0x1c6577[_0x2b07('0x10')]['name']))return _0x1c6577['item'];}['_getHeadingNames'](){const _0x3bea99=this['editor']['config']['get'](_0x2b07('0x19'));return _0x3bea99||_0x5d1355(this[_0x2b07('0x0')]);}[_0x2b07('0x13')](){const _0x2b06e8=this[_0x2b07('0x0')],_0x285d6e=['h1','h2','h3','h4','h5','h6'],_0x3c44d3=[];for(const _0x25ab79 of _0x285d6e){const _0x4ff7ff=_0x2b06e8[_0x2b07('0x7')][_0x2b07('0xc')][_0x2b07('0xa')][_0x2b07('0x5')](document[_0x2b07('0xb')](_0x25ab79)),_0x199cee=_0x2b06e8['data'][_0x2b07('0x12')](_0x4ff7ff)[_0x2b07('0x9')](0x0);(null==_0x199cee?void 0x0:_0x199cee['is']('element'))&&_0x3c44d3[_0x2b07('0x8')](_0x199cee[_0x2b07('0x2')]);}this[_0x2b07('0xe')]=_0x3c44d3;}} | ||
const _0x1cf6=['activeItemIndex','includes','view','_getActiveHeading','getRootNames','domToView','get','level','data','fire','findIndex','item','document','init','toModel','_getOutlineDefinitions','text','domConverter','change','element','modelElement','getChildren','_headingNames','editing','_deriveHeadingElementsFromConversion','model','createElement','name','editor','backward','config','length','getFirstPosition','pluginName','push','afterInit'];(function(_0xb2ae2c,_0x1cf6fd){const _0x4ad3ea=function(_0x993943){while(--_0x993943){_0xb2ae2c['push'](_0xb2ae2c['shift']());}};_0x4ad3ea(++_0x1cf6fd);}(_0x1cf6,0x92));const _0x4ad3=function(_0xb2ae2c,_0x1cf6fd){_0xb2ae2c=_0xb2ae2c-0x0;let _0x4ad3ea=_0x1cf6[_0xb2ae2c];return _0x4ad3ea;};import{Plugin as _0x3493fc}from'ckeditor5/src/core';import{debounce as _0x2f5971}from'lodash-es';import{TreeWalker as _0x5f3288}from'ckeditor5/src/engine';import{getElementText as _0x2f4e82,getDefaultFeatureHeadingNames as _0x5572b3}from'./utils';import{diff as _0x2d976a,diffToChanges as _0xd4cb8}from'ckeditor5/src/utils';export default class n extends _0x3493fc{constructor(){super(...arguments),this['_headingNames']=[];}static get[_0x4ad3('0x1f')](){return'DocumentOutlineUtils';}[_0x4ad3('0xb')](){const _0x5c1830=this[_0x4ad3('0x1a')];this[_0x4ad3('0x14')]=this['_getHeadingNames']();let _0x1c0883=[];_0x5c1830[_0x4ad3('0x17')][_0x4ad3('0xa')]['on'](_0x4ad3('0x10'),_0x2f5971(()=>{const _0x485d83=_0x1c0883;_0x1c0883=this[_0x4ad3('0xd')]();const _0x31ed79=_0x2d976a(_0x485d83,_0x1c0883,(_0x4382af,_0x1d0913)=>_0x4382af['level']===_0x1d0913[_0x4ad3('0x5')]&&_0x4382af[_0x4ad3('0xe')]===_0x1d0913[_0x4ad3('0xe')]&&_0x4382af['modelElement']===_0x1d0913['modelElement']),_0x38d112=_0xd4cb8(_0x31ed79,_0x1c0883),_0x486fb3=this['_getActiveHeading'](),_0x49c598=_0x1c0883[_0x4ad3('0x8')](_0x501b87=>_0x501b87[_0x4ad3('0x12')]===_0x486fb3);_0x38d112[_0x4ad3('0x1d')]&&this[_0x4ad3('0x7')](_0x4ad3('0x10'),{'outlineDefinitions':_0x1c0883,'activeItemIndex':_0x49c598,'outlineChanges':_0x38d112}),this[_0x4ad3('0x7')](_0x4ad3('0x22'),{'index':_0x49c598});},0xfa,{'leading':!0x0,'trailing':!0x0}));}[_0x4ad3('0x21')](){this[_0x4ad3('0x14')][_0x4ad3('0x1d')]||this['_deriveHeadingElementsFromConversion']();}[_0x4ad3('0xd')](){const _0x59b4d6=this[_0x4ad3('0x1a')],_0x3d99bd=[],_0x2b57eb=this[_0x4ad3('0x14')];for(const _0x4e8c3c of _0x59b4d6[_0x4ad3('0x17')]['document'][_0x4ad3('0x2')]())_0x5cb5e(_0x59b4d6['model'][_0x4ad3('0xa')]['getRoot'](_0x4e8c3c));function _0x5cb5e(_0x169660){for(const _0x485cc3 of _0x169660[_0x4ad3('0x13')]())_0x485cc3['is'](_0x4ad3('0x11'))&&(_0x2b57eb[_0x4ad3('0x23')](_0x485cc3['name'])&&_0x3d99bd['push']({'level':_0x2b57eb['indexOf'](_0x485cc3['name'])+0x1,'text':_0x2f4e82(_0x485cc3),'modelElement':_0x485cc3}),_0x5cb5e(_0x485cc3));}return _0x3d99bd;}[_0x4ad3('0x1')](){const _0x32d4c3=this[_0x4ad3('0x1a')][_0x4ad3('0x17')][_0x4ad3('0xa')]['selection'][_0x4ad3('0x1e')](),_0x3d36d7=new _0x5f3288({'direction':_0x4ad3('0x1b'),'startPosition':_0x32d4c3});for(const _0x1a3606 of _0x3d36d7)if(_0x1a3606[_0x4ad3('0x9')]['is'](_0x4ad3('0x11'))&&this[_0x4ad3('0x14')]['includes'](_0x1a3606[_0x4ad3('0x9')][_0x4ad3('0x19')]))return _0x1a3606['item'];}['_getHeadingNames'](){const _0x702213=this['editor'][_0x4ad3('0x1c')][_0x4ad3('0x4')]('documentOutline.headings');return _0x702213||_0x5572b3(this[_0x4ad3('0x1a')]);}[_0x4ad3('0x16')](){const _0x402885=this[_0x4ad3('0x1a')],_0x24a01a=['h1','h2','h3','h4','h5','h6'],_0x21297d=[];for(const _0x5e2776 of _0x24a01a){const _0x5a726e=_0x402885[_0x4ad3('0x15')][_0x4ad3('0x0')][_0x4ad3('0xf')][_0x4ad3('0x3')](document[_0x4ad3('0x18')](_0x5e2776)),_0x5e899b=_0x402885[_0x4ad3('0x6')][_0x4ad3('0xc')](_0x5a726e)['getChild'](0x0);(null==_0x5e899b?void 0x0:_0x5e899b['is'](_0x4ad3('0x11')))&&_0x21297d[_0x4ad3('0x20')](_0x5e899b['name']);}this[_0x4ad3('0x14')]=_0x21297d;}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
import{View as _0x51952d}from'ckeditor5/src/ui';export default class $ extends _0x51952d{constructor(_0x26fef4,_0x5346e0=!0x1){super(_0x26fef4);const t=_0x26fef4['t'],_0x638f76=this['bindTemplate'],_0x403d11=_0x5346e0?'['+t('Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0xf10473=>!_0xf10473),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x638f76['to']('level',_0x4b748a=>'ck-document-outline__item_level-'+_0x4b748a),_0x638f76['if']('isActive','ck-document-outline__item_active'),_0x638f76['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x638f76['to']('text')},'children':[{'text':_0x638f76['to']('text',_0x32ba14=>_0x32ba14||_0x403d11)}],'on':{'click':_0x638f76['to']('click')}});}} | ||
import{View as _0x15eb1d}from'ckeditor5/src/ui';export default class $ extends _0x15eb1d{constructor(_0x43455a,_0xb61d9a=!0x1){super(_0x43455a);const t=_0x43455a['t'],_0x4cdd8c=this['bindTemplate'],_0x438d5d=_0xb61d9a?'['+t('Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x219ff7=>!_0x219ff7),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x4cdd8c['to']('level',_0xd4ebdc=>'ck-document-outline__item_level-'+_0xd4ebdc),_0x4cdd8c['if']('isActive','ck-document-outline__item_active'),_0x4cdd8c['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x4cdd8c['to']('text')},'children':[{'text':_0x4cdd8c['to']('text',_0x21afba=>_0x21afba||_0x438d5d)}],'on':{'click':_0x4cdd8c['to']('click')}});}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
import{View as _0x1f6cab}from'ckeditor5/src/ui';import{scrollAncestorsToShowTarget as _0x26b5fc}from'ckeditor5/src/utils';import _0x35dd68 from'./documentoutlineitemview';export default class d extends _0x1f6cab{constructor(_0x30706e,_0x17d0c0=!0x1,_0xa198ef){super(_0x30706e);const t=_0x30706e['t'];this['showEmptyHeadingText']=_0x17d0c0,this['set']('activeItemIndex',-0x1),this['_documentOutlineContainer']=_0xa198ef,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x43202c,_0x6f5340,_0x33d4be,_0x4715a5)=>{this['_setActiveItem'](_0x4715a5,_0x33d4be);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x30706e['contentLanguageDirection'],'data-document-outline-empty-placeholder':t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x271471){_0x271471['forEach'](_0x27d100=>{'insert'==_0x27d100['type']?this['_insertItem'](_0x27d100['index'],..._0x27d100['values']):'delete'==_0x27d100['type']&&this['_deleteItem'](_0x27d100['index'],_0x27d100['howMany']);});}['_setActiveItem'](_0x167709,_0xac3bd1){if(-0x1!==_0x167709){const _0x1b40a9=this['items']['get'](_0x167709);_0x1b40a9&&(_0x1b40a9['isActive']=!0x1);}-0x1!==_0xac3bd1&&(this['items']['get'](_0xac3bd1)['isActive']=!0x0,this['_scrollToItem'](_0xac3bd1));}['_insertItem'](_0x575c9a,..._0x21803d){const _0xcc72bd=_0x21803d['map']((_0xcbad14,_0x32ce3a)=>{const _0x48ccb8=new _0x35dd68(this['locale'],this['showEmptyHeadingText']);return _0x48ccb8['text']=_0xcbad14['text'],_0x48ccb8['level']=_0xcbad14['level'],_0x575c9a+_0x32ce3a===this['activeItemIndex']&&(_0x48ccb8['isActive']=!0x0),_0x48ccb8;});this['items']['addMany'](_0xcc72bd,_0x575c9a);}['_deleteItem'](_0x1d55e9,_0x9027ae){do{this['items']['remove'](_0x1d55e9);}while(--_0x9027ae);}['_handleItemClick'](_0x54775d){const _0x2741e9=this['items']['getIndex'](_0x54775d['source']);this['fire']('itemSelected',_0x2741e9);}['_scrollToItem'](_0x511025){_0x26b5fc(this['items']['get'](_0x511025)['element'],0x14,this['_documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}} | ||
import{View as _0x3cbb56}from'ckeditor5/src/ui';import{scrollAncestorsToShowTarget as _0xe5d5fd}from'ckeditor5/src/utils';import _0x4cf918 from'./documentoutlineitemview';export default class d extends _0x3cbb56{constructor(_0x5b6dc8,_0x47479f=!0x1,_0x527679){super(_0x5b6dc8);const t=_0x5b6dc8['t'];this['showEmptyHeadingText']=_0x47479f,this['set']('activeItemIndex',-0x1),this['_documentOutlineContainer']=_0x527679,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x2a809b,_0x497c02,_0x48c469,_0x2c5f31)=>{this['_setActiveItem'](_0x2c5f31,_0x48c469);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x5b6dc8['contentLanguageDirection'],'data-document-outline-empty-placeholder':t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x1bfa4f){_0x1bfa4f['forEach'](_0x164013=>{'insert'==_0x164013['type']?this['_insertItem'](_0x164013['index'],..._0x164013['values']):'delete'==_0x164013['type']&&this['_deleteItem'](_0x164013['index'],_0x164013['howMany']);});}['_setActiveItem'](_0x138ac0,_0xcabaa){if(-0x1!==_0x138ac0){const _0x371c1b=this['items']['get'](_0x138ac0);_0x371c1b&&(_0x371c1b['isActive']=!0x1);}-0x1!==_0xcabaa&&(this['items']['get'](_0xcabaa)['isActive']=!0x0,this['_scrollToItem'](_0xcabaa));}['_insertItem'](_0x541502,..._0x556968){const _0x147726=_0x556968['map']((_0xd8f838,_0x1c4f1b)=>{const _0xd09528=new _0x4cf918(this['locale'],this['showEmptyHeadingText']);return _0xd09528['text']=_0xd8f838['text'],_0xd09528['level']=_0xd8f838['level'],_0x541502+_0x1c4f1b===this['activeItemIndex']&&(_0xd09528['isActive']=!0x0),_0xd09528;});this['items']['addMany'](_0x147726,_0x541502);}['_deleteItem'](_0xb7054c,_0x1f6bd8){do{this['items']['remove'](_0xb7054c);}while(--_0x1f6bd8);}['_handleItemClick'](_0x733433){const _0x39c528=this['items']['getIndex'](_0x733433['source']);this['fire']('itemSelected',_0x39c528);}['_scrollToItem'](_0x2f5fe9){_0xe5d5fd(this['items']['get'](_0x2f5fe9)['element'],0x14,this['_documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x18c8=['paragraph','has','data','htmlH6','reduce','config','htmlH5','push','htmlH1','heading.options','getChildren','GeneralHtmlSupport','model'];(function(_0x18111f,_0x18c868){const _0x4f8486=function(_0x39c157){while(--_0x39c157){_0x18111f['push'](_0x18111f['shift']());}};_0x4f8486(++_0x18c868);}(_0x18c8,0xc9));const _0x4f84=function(_0x18111f,_0x18c868){_0x18111f=_0x18111f-0x0;let _0x4f8486=_0x18c8[_0x18111f];return _0x4f8486;};import{Text as _0x5df26b}from'ckeditor5/src/engine';export function getElementText(_0x2d427){let _0x311084='';for(const _0x37cad1 of _0x2d427[_0x4f84('0x4')]())_0x37cad1 instanceof _0x5df26b&&(_0x311084+=_0x37cad1[_0x4f84('0x9')]);return _0x311084;}export function getDefaultFeatureHeadingNames(_0x31d0b0){const _0x4a0e8b=_0x31d0b0[_0x4f84('0xc')]['get'](_0x4f84('0x3'));return _0x4a0e8b?_0x4a0e8b[_0x4f84('0xb')]((_0xe49ee8,_0x6c0995)=>(_0x4f84('0x7')!==_0x6c0995[_0x4f84('0x6')]&&_0xe49ee8[_0x4f84('0x1')](_0x6c0995[_0x4f84('0x6')]),_0xe49ee8),[]):_0x31d0b0['plugins'][_0x4f84('0x8')](_0x4f84('0x5'))?[_0x4f84('0x2'),'htmlH2','htmlH3','htmlH4',_0x4f84('0x0'),_0x4f84('0xa')]:[];} | ||
const _0x4cd1=['push','htmlH3','getChildren','reduce','plugins','htmlH6','data','has','model','htmlH5','get','heading.options','htmlH1','paragraph','GeneralHtmlSupport','config'];(function(_0x4316a0,_0x4cd16a){const _0x503536=function(_0x44c405){while(--_0x44c405){_0x4316a0['push'](_0x4316a0['shift']());}};_0x503536(++_0x4cd16a);}(_0x4cd1,0x17e));const _0x5035=function(_0x4316a0,_0x4cd16a){_0x4316a0=_0x4316a0-0x0;let _0x503536=_0x4cd1[_0x4316a0];return _0x503536;};import{Text as _0x5e4919}from'ckeditor5/src/engine';export function getElementText(_0x4cf2b4){let _0x463bb2='';for(const _0x3cefaf of _0x4cf2b4[_0x5035('0x4')]())_0x3cefaf instanceof _0x5e4919&&(_0x463bb2+=_0x3cefaf[_0x5035('0x8')]);return _0x463bb2;}export function getDefaultFeatureHeadingNames(_0x4cd166){const _0x3292a5=_0x4cd166[_0x5035('0x1')][_0x5035('0xc')](_0x5035('0xd'));return _0x3292a5?_0x3292a5[_0x5035('0x5')]((_0x6cf485,_0x34f786)=>(_0x5035('0xf')!==_0x34f786[_0x5035('0xa')]&&_0x6cf485[_0x5035('0x2')](_0x34f786['model']),_0x6cf485),[]):_0x4cd166[_0x5035('0x6')][_0x5035('0x9')](_0x5035('0x0'))?[_0x5035('0xe'),'htmlH2',_0x5035('0x3'),'htmlH4',_0x5035('0xb'),_0x5035('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 _0x3bc730 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':_0x3bc730};import'./augmentation'; | ||
export{default as DocumentOutline}from'./documentoutline';export{default as DocumentOutlineUI}from'./documentoutline/documentoutlineui';export{default as DocumentOutlineUtils}from'./documentoutline/documentoutlineutils';import _0x26a4a6 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':_0x26a4a6};import'./augmentation'; |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
var _0x9866=['TableOfContents','pluginName','requires'];(function(_0x678885,_0x986654){var _0x400299=function(_0x3bf12f){while(--_0x3bf12f){_0x678885['push'](_0x678885['shift']());}};_0x400299(++_0x986654);}(_0x9866,0x7f));var _0x4002=function(_0x678885,_0x986654){_0x678885=_0x678885-0x0;var _0x400299=_0x9866[_0x678885];return _0x400299;};import{Plugin as _0x435b22}from'ckeditor5/src/core';import _0x477100 from'./tableofcontents/tableofcontentsediting';import _0x1f0660 from'./tableofcontents/tableofcontentsui';export default class c extends _0x435b22{static get[_0x4002('0x1')](){return[_0x477100,_0x1f0660];}static get[_0x4002('0x0')](){return _0x4002('0x2');}} | ||
var _0x3a22=['pluginName','TableOfContents','requires'];(function(_0x4b4548,_0x3a2220){var _0x48e8b8=function(_0x5a9c48){while(--_0x5a9c48){_0x4b4548['push'](_0x4b4548['shift']());}};_0x48e8b8(++_0x3a2220);}(_0x3a22,0x1a0));var _0x48e8=function(_0x4b4548,_0x3a2220){_0x4b4548=_0x4b4548-0x0;var _0x48e8b8=_0x3a22[_0x4b4548];return _0x48e8b8;};import{Plugin as _0x2cce69}from'ckeditor5/src/core';import _0xd9e5ee from'./tableofcontents/tableofcontentsediting';import _0x1e6ec7 from'./tableofcontents/tableofcontentsui';export default class c extends _0x2cce69{static get[_0x48e8('0x0')](){return[_0xd9e5ee,_0x1e6ec7];}static get[_0x48e8('0x1')](){return _0x48e8('0x2');}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x3e9c=['change','low','editor','afterInit','get','config','schema','forEach','hasAttribute','headingId','getChanges','viewItem','registerPostFixer','nodeAfter','attributes','_registerHeadingIdAttributePostfixer','model','element:','_customUpcastHeadingsConversion','setAttribute','_customDataDowncastHeadingsConversion','getAttribute','name','getContainedElement','consume','string','downcast','match','add','HeadingId','view','clear','length','set','for','delete','item','consumable','upcastDispatcher','removeAttribute','position','paragraph','type','document','extend','heading1'];(function(_0x246c4b,_0x3e9c4c){const _0xedf344=function(_0x343c26){while(--_0x343c26){_0x246c4b['push'](_0x246c4b['shift']());}};_0xedf344(++_0x3e9c4c);}(_0x3e9c,0xfd));const _0xedf3=function(_0x246c4b,_0x3e9c4c){_0x246c4b=_0x246c4b-0x0;let _0xedf344=_0x3e9c[_0x246c4b];return _0xedf344;};import{Plugin as _0x396588}from'ckeditor5/src/core';import{uid as _0x2ce53c,priorities as _0x43e2c4}from'ckeditor5/src/utils';export default class A extends _0x396588{static get['pluginName'](){return _0xedf3('0x6');}[_0xedf3('0x1a')](){const _0x19f27f=this[_0xedf3('0x19')];if(_0x19f27f[_0xedf3('0x1c')][_0xedf3('0x1b')]('headingId.modelAttributeName'))return;(function(_0x202d29){const _0x2f08a5=new Map();if(_0x202d29)return _0x202d29[_0xedf3('0x1e')](_0x55dcc3=>{_0xedf3('0x12')!==_0x55dcc3[_0xedf3('0x27')]&&_0x2f08a5[_0xedf3('0xa')](_0x55dcc3[_0xedf3('0x7')],_0x55dcc3[_0xedf3('0x27')]);}),_0x2f08a5[_0xedf3('0x1b')]('h1')||_0x2f08a5[_0xedf3('0xa')]('h1',_0xedf3('0x16')),_0x2f08a5;return _0x2f08a5;}(this[_0xedf3('0x19')][_0xedf3('0x1c')][_0xedf3('0x1b')]('heading.options'))['forEach']((_0x2ef8fa,_0x43d87a)=>{this[_0xedf3('0x29')](_0x43d87a),this['_customDataDowncastHeadingsConversion'](_0x2ef8fa),_0x19f27f['model'][_0xedf3('0x1d')]['isRegistered'](_0x2ef8fa)&&_0x19f27f['model'][_0xedf3('0x1d')][_0xedf3('0x15')](_0x2ef8fa,{'allowAttributes':_0xedf3('0x20')});}),this[_0xedf3('0x26')]());}[_0xedf3('0x29')](_0x45cf5d){this['editor']['data'][_0xedf3('0xf')]['on'](_0xedf3('0x28')+_0x45cf5d,(_0x43e298,_0x363974,_0x4cbc75)=>{const {consumable:_0x34e255,writer:_0x568872}=_0x4cbc75,_0x1b4107=_0x363974[_0xedf3('0x22')]['getAttribute']('id'),_0x197698=_0x363974['modelRange'][_0xedf3('0x0')]();if(!(_0x1b4107&&_0x1b4107[_0xedf3('0x9')]||_0x197698[_0xedf3('0x1f')](_0xedf3('0x20'))))return _0x34e255[_0xedf3('0x1')](_0x363974['viewItem'],{'attributes':['id']}),void _0x568872[_0xedf3('0x2a')](_0xedf3('0x20'),_0x2ce53c(),_0x197698);_0x34e255[_0xedf3('0x1')](_0x363974['viewItem'],{'attributes':['id']})&&_0x568872[_0xedf3('0x2a')]('headingId',_0x1b4107,_0x197698);},{'priority':_0x43e2c4[_0xedf3('0x1b')](_0xedf3('0x18'))+0.5});}[_0xedf3('0x2b')](_0x4bcf8b){this[_0xedf3('0x19')]['conversion'][_0xedf3('0xb')](_0xedf3('0x3'))['add'](_0x5c046e=>_0x5c046e['on']('attribute:headingId:'+_0x4bcf8b,(_0x60c513,_0x4bf4d1,_0x4936f0)=>{if(!_0x4936f0[_0xedf3('0xe')]['consume'](_0x4bf4d1[_0xedf3('0xd')],_0x60c513[_0xedf3('0x2d')]))return;const _0x5089e2=_0x4bf4d1[_0xedf3('0xd')][_0xedf3('0x2c')](_0xedf3('0x20')),_0x25aa25=_0x4936f0['mapper']['toViewElement'](_0x4bf4d1[_0xedf3('0xd')]);_0x4936f0['writer']['setAttribute']('id',_0x5089e2,_0x25aa25);}));}[_0xedf3('0x26')](){const _0xd4de85=this[_0xedf3('0x19')],_0x5a1bc=new Set(),_0x494d6e=new Set();function _0x17e66e(_0x2f2410,_0x376988){const _0x53505c=_0x2ce53c();return _0x494d6e[_0xedf3('0x5')](_0x53505c),_0x2f2410[_0xedf3('0x2a')]('headingId',_0x53505c,_0x376988),_0x53505c;}function _0x5c8e65(_0x57da12,_0x1e7569){_0x57da12[_0xedf3('0x10')]('headingId',_0x1e7569);}_0xd4de85[_0xedf3('0x27')][_0xedf3('0x14')][_0xedf3('0x23')](_0x1fb248=>{const _0x5aade3=_0xd4de85['model'][_0xedf3('0x14')]['differ'][_0xedf3('0x21')]();let _0x55073a=!0x1;for(const _0x4ea27f of _0x5aade3)if('insert'==_0x4ea27f[_0xedf3('0x13')]&&_0x4ea27f[_0xedf3('0x2d')]){if(_0x4ea27f[_0xedf3('0x2d')][_0xedf3('0x4')](/heading\d/)){const _0x41f413=_0x4ea27f[_0xedf3('0x25')][_0xedf3('0x1b')](_0xedf3('0x20'));'string'==typeof _0x41f413?_0x5a1bc['has'](_0x41f413)?(_0x17e66e(_0x1fb248,_0x4ea27f[_0xedf3('0x11')]['nodeAfter']),_0x55073a=!0x0):_0x494d6e['add'](_0x41f413):(_0x17e66e(_0x1fb248,_0x4ea27f['position'][_0xedf3('0x24')]),_0x55073a=!0x0);}else'string'==typeof _0x4ea27f[_0xedf3('0x25')][_0xedf3('0x1b')](_0xedf3('0x20'))&&(_0x5c8e65(_0x1fb248,_0x4ea27f[_0xedf3('0x11')][_0xedf3('0x24')]),_0x55073a=!0x0);}else{if('remove'==_0x4ea27f[_0xedf3('0x13')]){const _0xa946aa=_0x4ea27f[_0xedf3('0x25')]['get'](_0xedf3('0x20'));_0xedf3('0x2')==typeof _0xa946aa&&_0x5a1bc[_0xedf3('0xc')](_0xa946aa);}}return _0x55073a;}),_0xd4de85[_0xedf3('0x27')][_0xedf3('0x14')]['on'](_0xedf3('0x17'),()=>{_0x494d6e[_0xedf3('0x1e')](_0x4e50e2=>_0x5a1bc[_0xedf3('0x5')](_0x4e50e2)),_0x494d6e[_0xedf3('0x8')]();});}} | ||
const _0x3f50=['remove','add','document','change','delete','viewItem','paragraph','attribute:headingId:','hasAttribute','editor','heading.options','conversion','schema','attributes','view','upcastDispatcher','downcast','insert','forEach','low','nodeAfter','item','for','get','isRegistered','setAttribute','headingId','string','extend','headingId.modelAttributeName','consume','writer','clear','_customDataDowncastHeadingsConversion','heading1','getAttribute','has','_customUpcastHeadingsConversion','position','type','_registerHeadingIdAttributePostfixer','afterInit','mapper','name','modelRange','consumable','toViewElement','element:','differ','config','model'];(function(_0x900345,_0x3f502c){const _0x3166dc=function(_0x313aa9){while(--_0x313aa9){_0x900345['push'](_0x900345['shift']());}};_0x3166dc(++_0x3f502c);}(_0x3f50,0x89));const _0x3166=function(_0x900345,_0x3f502c){_0x900345=_0x900345-0x0;let _0x3166dc=_0x3f50[_0x900345];return _0x3166dc;};import{Plugin as _0xc97f14}from'ckeditor5/src/core';import{uid as _0x53d3be,priorities as _0x306ad2}from'ckeditor5/src/utils';export default class A extends _0xc97f14{static get['pluginName'](){return'HeadingId';}[_0x3166('0x6')](){const _0x149a0e=this[_0x3166('0x19')];if(_0x149a0e['config']['get'](_0x3166('0x2d')))return;(function(_0x320ed0){const _0x3e2f47=new Map();if(_0x320ed0)return _0x320ed0[_0x3166('0x22')](_0x4bec9c=>{_0x3166('0x16')!==_0x4bec9c[_0x3166('0xf')]&&_0x3e2f47['set'](_0x4bec9c[_0x3166('0x1e')],_0x4bec9c['model']);}),_0x3e2f47[_0x3166('0x27')]('h1')||_0x3e2f47['set']('h1',_0x3166('0x32')),_0x3e2f47;return _0x3e2f47;}(this[_0x3166('0x19')][_0x3166('0xe')][_0x3166('0x27')](_0x3166('0x1a')))[_0x3166('0x22')]((_0x562c4a,_0x5e8db0)=>{this[_0x3166('0x2')](_0x5e8db0),this[_0x3166('0x31')](_0x562c4a),_0x149a0e[_0x3166('0xf')][_0x3166('0x1c')][_0x3166('0x28')](_0x562c4a)&&_0x149a0e[_0x3166('0xf')]['schema'][_0x3166('0x2c')](_0x562c4a,{'allowAttributes':_0x3166('0x2a')});}),this['_registerHeadingIdAttributePostfixer']());}[_0x3166('0x2')](_0x45ace7){this['editor']['data'][_0x3166('0x1f')]['on'](_0x3166('0xc')+_0x45ace7,(_0x524a5e,_0x53982d,_0x1ec28c)=>{const {consumable:_0x556c69,writer:_0x3b4a1f}=_0x1ec28c,_0x2be23c=_0x53982d[_0x3166('0x15')][_0x3166('0x0')]('id'),_0x5a0928=_0x53982d[_0x3166('0x9')]['getContainedElement']();if(!(_0x2be23c&&_0x2be23c['length']||_0x5a0928[_0x3166('0x18')](_0x3166('0x2a'))))return _0x556c69[_0x3166('0x2e')](_0x53982d['viewItem'],{'attributes':['id']}),void _0x3b4a1f[_0x3166('0x29')](_0x3166('0x2a'),_0x53d3be(),_0x5a0928);_0x556c69['consume'](_0x53982d[_0x3166('0x15')],{'attributes':['id']})&&_0x3b4a1f[_0x3166('0x29')](_0x3166('0x2a'),_0x2be23c,_0x5a0928);},{'priority':_0x306ad2['get'](_0x3166('0x23'))+0.5});}[_0x3166('0x31')](_0x420a5f){this[_0x3166('0x19')][_0x3166('0x1b')][_0x3166('0x26')](_0x3166('0x20'))[_0x3166('0x11')](_0x4cb77b=>_0x4cb77b['on'](_0x3166('0x17')+_0x420a5f,(_0x3189e5,_0x5f4387,_0x11c25b)=>{if(!_0x11c25b[_0x3166('0xa')][_0x3166('0x2e')](_0x5f4387[_0x3166('0x25')],_0x3189e5[_0x3166('0x8')]))return;const _0x416926=_0x5f4387[_0x3166('0x25')]['getAttribute']('headingId'),_0x1cf6b8=_0x11c25b[_0x3166('0x7')][_0x3166('0xb')](_0x5f4387['item']);_0x11c25b[_0x3166('0x2f')][_0x3166('0x29')]('id',_0x416926,_0x1cf6b8);}));}[_0x3166('0x5')](){const _0x376f07=this[_0x3166('0x19')],_0x37e9c5=new Set(),_0xc2cfaa=new Set();function _0xd5e781(_0x2e7bb7,_0x255521){const _0x554286=_0x53d3be();return _0xc2cfaa[_0x3166('0x11')](_0x554286),_0x2e7bb7[_0x3166('0x29')]('headingId',_0x554286,_0x255521),_0x554286;}function _0x1febde(_0x221aea,_0x219717){_0x221aea['removeAttribute'](_0x3166('0x2a'),_0x219717);}_0x376f07[_0x3166('0xf')][_0x3166('0x12')]['registerPostFixer'](_0x5a3cf9=>{const _0x649082=_0x376f07['model']['document'][_0x3166('0xd')]['getChanges']();let _0x3ca70b=!0x1;for(const _0x3c2eb8 of _0x649082)if(_0x3166('0x21')==_0x3c2eb8[_0x3166('0x4')]&&_0x3c2eb8[_0x3166('0x8')]){if(_0x3c2eb8[_0x3166('0x8')]['match'](/heading\d/)){const _0x466d61=_0x3c2eb8[_0x3166('0x1d')][_0x3166('0x27')]('headingId');_0x3166('0x2b')==typeof _0x466d61?_0x37e9c5[_0x3166('0x1')](_0x466d61)?(_0xd5e781(_0x5a3cf9,_0x3c2eb8[_0x3166('0x3')][_0x3166('0x24')]),_0x3ca70b=!0x0):_0xc2cfaa['add'](_0x466d61):(_0xd5e781(_0x5a3cf9,_0x3c2eb8[_0x3166('0x3')][_0x3166('0x24')]),_0x3ca70b=!0x0);}else _0x3166('0x2b')==typeof _0x3c2eb8[_0x3166('0x1d')][_0x3166('0x27')]('headingId')&&(_0x1febde(_0x5a3cf9,_0x3c2eb8['position'][_0x3166('0x24')]),_0x3ca70b=!0x0);}else{if(_0x3166('0x10')==_0x3c2eb8[_0x3166('0x4')]){const _0xb296fa=_0x3c2eb8[_0x3166('0x1d')][_0x3166('0x27')]('headingId');_0x3166('0x2b')==typeof _0xb296fa&&_0x37e9c5[_0x3166('0x14')](_0xb296fa);}}return _0x3ca70b;}),_0x376f07[_0x3166('0xf')][_0x3166('0x12')]['on'](_0x3166('0x13'),()=>{_0xc2cfaa[_0x3166('0x22')](_0x58b333=>_0x37e9c5[_0x3166('0x11')](_0x58b333)),_0xc2cfaa[_0x3166('0x30')]();});}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x34fe=['findAllowedParent','isEnabled','schema','getFirstPosition','refresh','document','model','selection','editor','tableOfContents','createElement','execute'];(function(_0x456dfe,_0x34fe44){const _0x502f3e=function(_0x1ae746){while(--_0x1ae746){_0x456dfe['push'](_0x456dfe['shift']());}};_0x502f3e(++_0x34fe44);}(_0x34fe,0x187));const _0x502f=function(_0x456dfe,_0x34fe44){_0x456dfe=_0x456dfe-0x0;let _0x502f3e=_0x34fe[_0x456dfe];return _0x502f3e;};import{Command as _0x340b61}from'ckeditor5/src/core';export default class O extends _0x340b61{[_0x502f('0x4')](){this['editor'][_0x502f('0xb')]['change'](_0x3aa7c5=>{this[_0x502f('0x1')][_0x502f('0xb')]['insertObject'](_0x3aa7c5[_0x502f('0x3')](_0x502f('0x2')));});}[_0x502f('0x9')](){const _0x54b174=this[_0x502f('0x1')][_0x502f('0xb')],_0x58eeea=_0x54b174[_0x502f('0xa')][_0x502f('0x0')][_0x502f('0x8')]();this[_0x502f('0x6')]=null!==(_0x58eeea&&_0x54b174[_0x502f('0x7')][_0x502f('0x5')](_0x58eeea,_0x502f('0x2')));}} | ||
const _0x456c=['refresh','model','execute','getFirstPosition','isEnabled','schema','insertObject','editor','change'];(function(_0x3e4e50,_0x456c15){const _0x5da3d7=function(_0x50c4a2){while(--_0x50c4a2){_0x3e4e50['push'](_0x3e4e50['shift']());}};_0x5da3d7(++_0x456c15);}(_0x456c,0x169));const _0x5da3=function(_0x3e4e50,_0x456c15){_0x3e4e50=_0x3e4e50-0x0;let _0x5da3d7=_0x456c[_0x3e4e50];return _0x5da3d7;};import{Command as _0x33a05b}from'ckeditor5/src/core';export default class O extends _0x33a05b{[_0x5da3('0x1')](){this[_0x5da3('0x6')][_0x5da3('0x0')][_0x5da3('0x7')](_0x42aac7=>{this[_0x5da3('0x6')][_0x5da3('0x0')][_0x5da3('0x5')](_0x42aac7['createElement']('tableOfContents'));});}[_0x5da3('0x8')](){const _0x54f6ba=this[_0x5da3('0x6')][_0x5da3('0x0')],_0x1226d9=_0x54f6ba['document']['selection'][_0x5da3('0x2')]();this[_0x5da3('0x3')]=null!==(_0x1226d9&&_0x54f6ba[_0x5da3('0x4')]['findAllowedParent'](_0x1226d9,'tableOfContents'));}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
import{ButtonView as _0x29c37c}from'ckeditor5/src/ui';import{CKEditorError as _0x38a121}from'ckeditor5/src/utils';import{Plugin as _0x57af6b}from'ckeditor5/src/core';import _0x399c38 from'../../theme/icons/table-of-contents.svg';export default class s extends _0x57af6b{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x3de4bf){super(_0x3de4bf),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x4ea5c7=this['editor'],t=_0x4ea5c7['t'];_0x4ea5c7['ui']['componentFactory']['add']('tableOfContents',_0x4fe800=>{const _0x381a68=_0x4ea5c7['commands']['get']('insertTableOfContents'),_0x1c9d6d=new _0x29c37c(_0x4fe800);return _0x1c9d6d['set']({'label':t('Table\x20of\x20contents'),'icon':_0x399c38,'tooltip':!0x0}),_0x1c9d6d['bind']('isEnabled')['to'](_0x381a68,'isEnabled'),this['listenTo'](_0x1c9d6d,'execute',()=>{_0x4ea5c7['execute']('insertTableOfContents'),_0x4ea5c7['editing']['view']['focus']();}),_0x1c9d6d;}),this['licenseKey']=_0x4ea5c7['config']['get']('licenseKey');const _0x51e784=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2a2695;for(const _0x26841b in _0x51e784){const _0x190f12=_0x26841b,_0x213370=_0x51e784[_0x190f12];if('tableOfContentsLicenseKeyTrial'===_0x213370||'tableOfContentsLicenseKeyInvalid'===_0x213370||'tableOfContentsLicenseKeyValid'===_0x213370||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x213370){delete _0x51e784[_0x190f12],_0x2a2695=_0x213370;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x2a2695)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x38a121('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x2a2695&&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'===_0x2a2695)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x38a121('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x2a2695&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}} | ||
import{ButtonView as _0x3c0242}from'ckeditor5/src/ui';import{CKEditorError as _0x508452}from'ckeditor5/src/utils';import{Plugin as _0x5462db}from'ckeditor5/src/core';import _0x296059 from'../../theme/icons/table-of-contents.svg';export default class s extends _0x5462db{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x59c256){super(_0x59c256),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x4b18d8=this['editor'],t=_0x4b18d8['t'];_0x4b18d8['ui']['componentFactory']['add']('tableOfContents',_0x55350f=>{const _0xd4e232=_0x4b18d8['commands']['get']('insertTableOfContents'),_0x85b91e=new _0x3c0242(_0x55350f);return _0x85b91e['set']({'label':t('Table\x20of\x20contents'),'icon':_0x296059,'tooltip':!0x0}),_0x85b91e['bind']('isEnabled')['to'](_0xd4e232,'isEnabled'),this['listenTo'](_0x85b91e,'execute',()=>{_0x4b18d8['execute']('insertTableOfContents'),_0x4b18d8['editing']['view']['focus']();}),_0x85b91e;}),this['licenseKey']=_0x4b18d8['config']['get']('licenseKey');const _0x162dc7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x641898;for(const _0x241e1d in _0x162dc7){const _0x51e318=_0x241e1d,_0x4977f6=_0x162dc7[_0x51e318];if('tableOfContentsLicenseKeyTrial'===_0x4977f6||'tableOfContentsLicenseKeyInvalid'===_0x4977f6||'tableOfContentsLicenseKeyValid'===_0x4977f6||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x4977f6){delete _0x162dc7[_0x51e318],_0x641898=_0x4977f6;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x641898)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x508452('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x641898&&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'===_0x641898)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x508452('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x641898&&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
394244
+ Added@ckeditor/ckeditor5-clipboard@0.0.0-nightly-20230829.0(transitive)
+ Added@ckeditor/ckeditor5-core@0.0.0-nightly-20230829.0(transitive)
+ Added@ckeditor/ckeditor5-engine@0.0.0-nightly-20230829.0(transitive)
+ Added@ckeditor/ckeditor5-enter@0.0.0-nightly-20230829.0(transitive)
+ Added@ckeditor/ckeditor5-paragraph@0.0.0-nightly-20230829.0(transitive)
+ Added@ckeditor/ckeditor5-select-all@0.0.0-nightly-20230829.0(transitive)
+ Added@ckeditor/ckeditor5-typing@0.0.0-nightly-20230829.0(transitive)
+ Added@ckeditor/ckeditor5-ui@0.0.0-nightly-20230829.0(transitive)
+ Added@ckeditor/ckeditor5-undo@0.0.0-nightly-20230829.0(transitive)
+ Added@ckeditor/ckeditor5-upload@0.0.0-nightly-20230829.0(transitive)
+ Added@ckeditor/ckeditor5-utils@0.0.0-nightly-20230829.0(transitive)
+ Added@ckeditor/ckeditor5-watchdog@0.0.0-nightly-20230829.0(transitive)
+ Added@ckeditor/ckeditor5-widget@0.0.0-nightly-20230829.0(transitive)
+ Addedckeditor5@0.0.0-nightly-20230829.0(transitive)
- Removed@ckeditor/ckeditor5-clipboard@0.0.0-nightly-20230828.0(transitive)
- Removed@ckeditor/ckeditor5-core@0.0.0-nightly-20230828.0(transitive)
- Removed@ckeditor/ckeditor5-engine@0.0.0-nightly-20230828.0(transitive)
- Removed@ckeditor/ckeditor5-enter@0.0.0-nightly-20230828.0(transitive)
- Removed@ckeditor/ckeditor5-paragraph@0.0.0-nightly-20230828.0(transitive)
- Removed@ckeditor/ckeditor5-select-all@0.0.0-nightly-20230828.0(transitive)
- Removed@ckeditor/ckeditor5-typing@0.0.0-nightly-20230828.0(transitive)
- Removed@ckeditor/ckeditor5-ui@0.0.0-nightly-20230828.0(transitive)
- Removed@ckeditor/ckeditor5-undo@0.0.0-nightly-20230828.0(transitive)
- Removed@ckeditor/ckeditor5-upload@0.0.0-nightly-20230828.0(transitive)
- Removed@ckeditor/ckeditor5-utils@0.0.0-nightly-20230828.0(transitive)
- Removed@ckeditor/ckeditor5-watchdog@0.0.0-nightly-20230828.0(transitive)
- Removed@ckeditor/ckeditor5-widget@0.0.0-nightly-20230828.0(transitive)
- Removedckeditor5@0.0.0-nightly-20230828.0(transitive)