@ckeditor/ckeditor5-document-outline
Advanced tools
Comparing version 0.0.0-nightly-20230718.0 to 0.0.0-nightly-20230719.0
{ | ||
"name": "@ckeditor/ckeditor5-document-outline", | ||
"version": "0.0.0-nightly-20230718.0", | ||
"version": "0.0.0-nightly-20230719.0", | ||
"description": "Document outline feature for CKEditor 5.", | ||
@@ -15,4 +15,4 @@ "keywords": [ | ||
"dependencies": { | ||
"ckeditor5": "0.0.0-nightly-20230718.0", | ||
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20230718.0", | ||
"ckeditor5": "0.0.0-nightly-20230719.0", | ||
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20230719.0", | ||
"lodash-es": "^4.17.15" | ||
@@ -19,0 +19,0 @@ }, |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x5c39=['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.','requires','_licenseKeyCheckInterval','init','document-outline-trial-license-key-reached-limit-changes','get','documentOutlineLicenseKeyInvalid','editor','config','documentOutlineLicenseKeyValid','licenseKey','documentOutlineLicenseKeyTrialLimit:operations'];(function(_0x1bf859,_0x5c394a){const _0x20f144=function(_0x8c064){while(--_0x8c064){_0x1bf859['push'](_0x1bf859['shift']());}};_0x20f144(++_0x5c394a);}(_0x5c39,0xd9));const _0x20f1=function(_0x1bf859,_0x5c394a){_0x1bf859=_0x1bf859-0x0;let _0x20f144=_0x5c39[_0x1bf859];return _0x20f144;};import{Plugin as _0x380826}from'ckeditor5/src/core';import{CKEditorError as _0x56dabc}from'ckeditor5/src/utils';import _0x184b3a from'./documentoutline/documentoutlineutils';import _0x2d6917 from'./documentoutline/documentoutlineui';export default class l extends _0x380826{static get[_0x20f1('0x6')](){return[_0x184b3a,_0x2d6917];}static get['pluginName'](){return'DocumentOutline';}constructor(_0x339110){super(_0x339110),this[_0x20f1('0x7')]=null;}[_0x20f1('0x8')](){const _0x693316=this[_0x20f1('0xc')];this['licenseKey']=_0x693316[_0x20f1('0x0')][_0x20f1('0xa')](_0x20f1('0x2'));const _0xefe8ef=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x347dd1;for(const _0x3be06b in _0xefe8ef){const _0x38de20=_0x3be06b,_0x501f4b=_0xefe8ef[_0x38de20];if('documentOutlineLicenseKeyTrial'===_0x501f4b||_0x20f1('0xb')===_0x501f4b||'documentOutlineLicenseKeyValid'===_0x501f4b||_0x20f1('0x3')===_0x501f4b){delete _0xefe8ef[_0x38de20],_0x347dd1=_0x501f4b;break;}}if(_0x20f1('0xb')===_0x347dd1)throw clearInterval(this[_0x20f1('0x7')]),new _0x56dabc('document-outline-invalid-license-key',null);if('documentOutlineLicenseKeyTrial'===_0x347dd1&&console[_0x20f1('0x4')](_0x20f1('0x5')),_0x20f1('0x3')===_0x347dd1)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x56dabc(_0x20f1('0x9'),null);_0x20f1('0x1')===_0x347dd1&&clearInterval(this[_0x20f1('0x7')]);},0x3e8);}['destroy'](){this[_0x20f1('0x7')]&&clearInterval(this[_0x20f1('0x7')]);}} | ||
const _0x4972=['documentOutlineLicenseKeyTrial','documentOutlineLicenseKeyValid','_licenseKeyCheckInterval','DocumentOutline','info','licenseKey','config','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','init','editor','documentOutlineLicenseKeyInvalid','get','document-outline-trial-license-key-reached-limit-changes','requires'];(function(_0x193165,_0x4972db){const _0x26721f=function(_0x3c4ae4){while(--_0x3c4ae4){_0x193165['push'](_0x193165['shift']());}};_0x26721f(++_0x4972db);}(_0x4972,0xcd));const _0x2672=function(_0x193165,_0x4972db){_0x193165=_0x193165-0x0;let _0x26721f=_0x4972[_0x193165];return _0x26721f;};import{Plugin as _0x4931d3}from'ckeditor5/src/core';import{CKEditorError as _0x41cb1b}from'ckeditor5/src/utils';import _0x154546 from'./documentoutline/documentoutlineutils';import _0xe72a1a from'./documentoutline/documentoutlineui';export default class l extends _0x4931d3{static get[_0x2672('0x4')](){return[_0x154546,_0xe72a1a];}static get['pluginName'](){return _0x2672('0x8');}constructor(_0x4f6e21){super(_0x4f6e21),this[_0x2672('0x7')]=null;}[_0x2672('0xe')](){const _0x4f9bdc=this[_0x2672('0x0')];this[_0x2672('0xa')]=_0x4f9bdc[_0x2672('0xb')][_0x2672('0x2')](_0x2672('0xa'));const _0x143d0d=this[_0x2672('0x0')];this[_0x2672('0x7')]=setInterval(()=>{let _0x2b113f;for(const _0x161f94 in _0x143d0d){const _0x24df87=_0x161f94,_0x1b6890=_0x143d0d[_0x24df87];if(_0x2672('0x5')===_0x1b6890||'documentOutlineLicenseKeyInvalid'===_0x1b6890||_0x2672('0x6')===_0x1b6890||'documentOutlineLicenseKeyTrialLimit:operations'===_0x1b6890){delete _0x143d0d[_0x24df87],_0x2b113f=_0x1b6890;break;}}if(_0x2672('0x1')===_0x2b113f)throw clearInterval(this[_0x2672('0x7')]),new _0x41cb1b('document-outline-invalid-license-key',null);if('documentOutlineLicenseKeyTrial'===_0x2b113f&&console[_0x2672('0x9')](_0x2672('0xc')),_0x2672('0xd')===_0x2b113f)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x41cb1b(_0x2672('0x3'),null);'documentOutlineLicenseKeyValid'===_0x2b113f&&clearInterval(this[_0x2672('0x7')]);},0x3e8);}['destroy'](){this[_0x2672('0x7')]&&clearInterval(this['_licenseKeyCheckInterval']);}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x97a7=['change','getFirstPosition','view','toModel','modelElement','document','element','DocumentOutlineUtils','level','get','documentOutline.headings','activeItemIndex','domToView','getChild','findIndex','getRoot','selection','_getActiveHeading','name','includes','item','domConverter','indexOf','_getHeadingNames','_deriveHeadingElementsFromConversion','_getOutlineDefinitions','getChildren','editor','backward','model','config','fire','pluginName','afterInit','push','_headingNames','data','init'];(function(_0x10bd3e,_0x97a792){const _0x25b2df=function(_0x41447e){while(--_0x41447e){_0x10bd3e['push'](_0x10bd3e['shift']());}};_0x25b2df(++_0x97a792);}(_0x97a7,0xaa));const _0x25b2=function(_0x10bd3e,_0x97a792){_0x10bd3e=_0x10bd3e-0x0;let _0x25b2df=_0x97a7[_0x10bd3e];return _0x25b2df;};import{Plugin as _0x4dbcaf}from'ckeditor5/src/core';import{debounce as _0x46e4be}from'lodash-es';import{TreeWalker as _0x23661a}from'ckeditor5/src/engine';import{getElementText as _0x5304c2,getDefaultFeatureHeadingNames as _0x3293f5}from'./utils';import{diff as _0x162c04,diffToChanges as _0x536c4e}from'ckeditor5/src/utils';export default class n extends _0x4dbcaf{constructor(){super(...arguments),this['_headingNames']=[];}static get[_0x25b2('0xe')](){return _0x25b2('0x1b');}[_0x25b2('0x13')](){const _0x17a6b0=this[_0x25b2('0x9')];this[_0x25b2('0x11')]=this['_getHeadingNames']();let _0x2a2391=[];_0x17a6b0[_0x25b2('0xb')][_0x25b2('0x19')]['on'](_0x25b2('0x14'),_0x46e4be(()=>{const _0x121017=_0x2a2391;_0x2a2391=this[_0x25b2('0x7')]();const _0x59cb25=_0x162c04(_0x121017,_0x2a2391,(_0x455b6f,_0xff46c6)=>_0x455b6f[_0x25b2('0x1c')]===_0xff46c6[_0x25b2('0x1c')]&&_0x455b6f['text']===_0xff46c6['text']&&_0x455b6f[_0x25b2('0x18')]===_0xff46c6['modelElement']),_0x4c4950=_0x536c4e(_0x59cb25,_0x2a2391),_0x34d259=this[_0x25b2('0x25')](),_0x129614=_0x2a2391[_0x25b2('0x22')](_0x1915b1=>_0x1915b1[_0x25b2('0x18')]===_0x34d259);_0x4c4950['length']&&this[_0x25b2('0xd')]('change',{'outlineDefinitions':_0x2a2391,'activeItemIndex':_0x129614,'outlineChanges':_0x4c4950}),this[_0x25b2('0xd')](_0x25b2('0x1f'),{'index':_0x129614});},0xfa,{'leading':!0x0,'trailing':!0x0}));}[_0x25b2('0xf')](){this[_0x25b2('0x11')]['length']||this[_0x25b2('0x6')]();}[_0x25b2('0x7')](){const _0x437766=this[_0x25b2('0x9')],_0x53567f=[],_0x207b19=this['_headingNames'];for(const _0x5e7e47 of _0x437766[_0x25b2('0xb')][_0x25b2('0x19')]['getRootNames']())_0x25ef96(_0x437766[_0x25b2('0xb')]['document'][_0x25b2('0x23')](_0x5e7e47));function _0x25ef96(_0x488918){for(const _0xe1dbb2 of _0x488918[_0x25b2('0x8')]())_0xe1dbb2['is'](_0x25b2('0x1a'))&&(_0x207b19[_0x25b2('0x1')](_0xe1dbb2['name'])&&_0x53567f[_0x25b2('0x10')]({'level':_0x207b19[_0x25b2('0x4')](_0xe1dbb2[_0x25b2('0x0')])+0x1,'text':_0x5304c2(_0xe1dbb2),'modelElement':_0xe1dbb2}),_0x25ef96(_0xe1dbb2));}return _0x53567f;}[_0x25b2('0x25')](){const _0x3e1201=this[_0x25b2('0x9')]['model'][_0x25b2('0x19')][_0x25b2('0x24')][_0x25b2('0x15')](),_0x266da1=new _0x23661a({'direction':_0x25b2('0xa'),'startPosition':_0x3e1201});for(const _0x89e44c of _0x266da1)if(_0x89e44c[_0x25b2('0x2')]['is']('element')&&this[_0x25b2('0x11')][_0x25b2('0x1')](_0x89e44c[_0x25b2('0x2')][_0x25b2('0x0')]))return _0x89e44c['item'];}[_0x25b2('0x5')](){const _0x594601=this[_0x25b2('0x9')][_0x25b2('0xc')][_0x25b2('0x1d')](_0x25b2('0x1e'));return _0x594601||_0x3293f5(this[_0x25b2('0x9')]);}['_deriveHeadingElementsFromConversion'](){const _0x93b22b=this[_0x25b2('0x9')],_0x375db6=['h1','h2','h3','h4','h5','h6'],_0x3d8d60=[];for(const _0x2407dc of _0x375db6){const _0x13e40a=_0x93b22b['editing'][_0x25b2('0x16')][_0x25b2('0x3')][_0x25b2('0x20')](document['createElement'](_0x2407dc)),_0x16e17d=_0x93b22b[_0x25b2('0x12')][_0x25b2('0x17')](_0x13e40a)[_0x25b2('0x21')](0x0);(null==_0x16e17d?void 0x0:_0x16e17d['is'](_0x25b2('0x1a')))&&_0x3d8d60[_0x25b2('0x10')](_0x16e17d[_0x25b2('0x0')]);}this[_0x25b2('0x11')]=_0x3d8d60;}} | ||
const _0x58b8=['_getOutlineDefinitions','includes','document','getRootNames','push','getChild','length','editor','get','level','_getHeadingNames','createElement','indexOf','fire','text','modelElement','DocumentOutlineUtils','data','_headingNames','config','toModel','element','model','_getActiveHeading','item','view','getChildren','findIndex','_deriveHeadingElementsFromConversion','name','getFirstPosition','pluginName','change','domConverter'];(function(_0xeb823,_0x58b8c4){const _0x41ed57=function(_0x5b2504){while(--_0x5b2504){_0xeb823['push'](_0xeb823['shift']());}};_0x41ed57(++_0x58b8c4);}(_0x58b8,0x67));const _0x41ed=function(_0xeb823,_0x58b8c4){_0xeb823=_0xeb823-0x0;let _0x41ed57=_0x58b8[_0xeb823];return _0x41ed57;};import{Plugin as _0x4b188a}from'ckeditor5/src/core';import{debounce as _0x39ab77}from'lodash-es';import{TreeWalker as _0x468196}from'ckeditor5/src/engine';import{getElementText as _0x3a64b2,getDefaultFeatureHeadingNames as _0x4c791b}from'./utils';import{diff as _0x3511c8,diffToChanges as _0x7610a9}from'ckeditor5/src/utils';export default class n extends _0x4b188a{constructor(){super(...arguments),this[_0x41ed('0x11')]=[];}static get[_0x41ed('0x1e')](){return _0x41ed('0xf');}['init'](){const _0x1b03b6=this[_0x41ed('0x6')];this['_headingNames']=this[_0x41ed('0x9')]();let _0x44c3ca=[];_0x1b03b6['model']['document']['on'](_0x41ed('0x1f'),_0x39ab77(()=>{const _0x448e7c=_0x44c3ca;_0x44c3ca=this[_0x41ed('0x21')]();const _0x1bea11=_0x3511c8(_0x448e7c,_0x44c3ca,(_0x54a629,_0x31356d)=>_0x54a629[_0x41ed('0x8')]===_0x31356d[_0x41ed('0x8')]&&_0x54a629[_0x41ed('0xd')]===_0x31356d['text']&&_0x54a629[_0x41ed('0xe')]===_0x31356d[_0x41ed('0xe')]),_0x2555e9=_0x7610a9(_0x1bea11,_0x44c3ca),_0x5f7232=this[_0x41ed('0x16')](),_0x844b45=_0x44c3ca[_0x41ed('0x1a')](_0x84a558=>_0x84a558[_0x41ed('0xe')]===_0x5f7232);_0x2555e9['length']&&this[_0x41ed('0xc')](_0x41ed('0x1f'),{'outlineDefinitions':_0x44c3ca,'activeItemIndex':_0x844b45,'outlineChanges':_0x2555e9}),this[_0x41ed('0xc')]('activeItemIndex',{'index':_0x844b45});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this[_0x41ed('0x11')][_0x41ed('0x5')]||this[_0x41ed('0x1b')]();}[_0x41ed('0x21')](){const _0x54c222=this['editor'],_0x49fc55=[],_0x8fc9f6=this['_headingNames'];for(const _0x4f3478 of _0x54c222[_0x41ed('0x15')][_0x41ed('0x1')][_0x41ed('0x2')]())_0x529fe6(_0x54c222[_0x41ed('0x15')][_0x41ed('0x1')]['getRoot'](_0x4f3478));function _0x529fe6(_0x440b74){for(const _0x1fa996 of _0x440b74[_0x41ed('0x19')]())_0x1fa996['is'](_0x41ed('0x14'))&&(_0x8fc9f6[_0x41ed('0x0')](_0x1fa996['name'])&&_0x49fc55[_0x41ed('0x3')]({'level':_0x8fc9f6[_0x41ed('0xb')](_0x1fa996[_0x41ed('0x1c')])+0x1,'text':_0x3a64b2(_0x1fa996),'modelElement':_0x1fa996}),_0x529fe6(_0x1fa996));}return _0x49fc55;}['_getActiveHeading'](){const _0x42a409=this[_0x41ed('0x6')][_0x41ed('0x15')][_0x41ed('0x1')]['selection'][_0x41ed('0x1d')](),_0x8e6cce=new _0x468196({'direction':'backward','startPosition':_0x42a409});for(const _0x42f59a of _0x8e6cce)if(_0x42f59a[_0x41ed('0x17')]['is'](_0x41ed('0x14'))&&this['_headingNames']['includes'](_0x42f59a['item'][_0x41ed('0x1c')]))return _0x42f59a['item'];}[_0x41ed('0x9')](){const _0x16366d=this['editor'][_0x41ed('0x12')][_0x41ed('0x7')]('documentOutline.headings');return _0x16366d||_0x4c791b(this[_0x41ed('0x6')]);}[_0x41ed('0x1b')](){const _0x478db4=this[_0x41ed('0x6')],_0x33b453=['h1','h2','h3','h4','h5','h6'],_0x3ba417=[];for(const _0xd6114d of _0x33b453){const _0x2415a6=_0x478db4['editing'][_0x41ed('0x18')][_0x41ed('0x20')]['domToView'](document[_0x41ed('0xa')](_0xd6114d)),_0x2eefe2=_0x478db4[_0x41ed('0x10')][_0x41ed('0x13')](_0x2415a6)[_0x41ed('0x4')](0x0);(null==_0x2eefe2?void 0x0:_0x2eefe2['is'](_0x41ed('0x14')))&&_0x3ba417[_0x41ed('0x3')](_0x2eefe2[_0x41ed('0x1c')]);}this[_0x41ed('0x11')]=_0x3ba417;}} |
@@ -42,6 +42,2 @@ /** | ||
constructor(locale: Locale, showEmptyHeadingText?: boolean); | ||
/** | ||
* Scrolls to this item in the document. | ||
*/ | ||
scrollTo(): void; | ||
} | ||
@@ -48,0 +44,0 @@ /** |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
import{View as _0x1cb2bf}from'ckeditor5/src/ui';import{scrollAncestorsToShowTarget as _0x20fc21}from'ckeditor5/src/utils';export default class j extends _0x1cb2bf{constructor(_0x5305b4,_0x23a1a6=!0x1){super(_0x5305b4);const t=_0x5305b4['t'],_0x5e45b5=this['bindTemplate'],_0x49e84c=_0x23a1a6?'['+t('Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x365047=>!_0x365047),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x5e45b5['to']('level',_0x1f7742=>'ck-document-outline__item_level-'+_0x1f7742),_0x5e45b5['if']('isActive','ck-document-outline__item_active'),_0x5e45b5['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x5e45b5['to']('text')},'children':[{'text':_0x5e45b5['to']('text',_0x4b25d5=>_0x4b25d5||_0x49e84c)}],'on':{'click':_0x5e45b5['to']('click')}});}['scrollTo'](){_0x20fc21(this['element'],0x14);}} | ||
import{View as _0x52fb7e}from'ckeditor5/src/ui';export default class $ extends _0x52fb7e{constructor(_0x77f13c,_0x53b7f4=!0x1){super(_0x77f13c);const t=_0x77f13c['t'],_0x5cdaa9=this['bindTemplate'],_0x374605=_0x53b7f4?'['+t('Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x4022f1=>!_0x4022f1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x5cdaa9['to']('level',_0x5b6981=>'ck-document-outline__item_level-'+_0x5b6981),_0x5cdaa9['if']('isActive','ck-document-outline__item_active'),_0x5cdaa9['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x5cdaa9['to']('text')},'children':[{'text':_0x5cdaa9['to']('text',_0x28541d=>_0x28541d||_0x374605)}],'on':{'click':_0x5cdaa9['to']('click')}});}} |
@@ -27,5 +27,9 @@ /** | ||
/** | ||
* @inheritDoc | ||
* Creates an instance of the {@link module:documentoutline/ui/documentoutlineview~DocumentOutlineView} class. | ||
* | ||
* @param locale The localization services instance. | ||
* @param showEmptyHeadingText Indicates whether the display of a placeholder for empty heading is enabled in the editor. | ||
* @param containerElement The element that contains the document outline. | ||
*/ | ||
constructor(locale: Locale, showEmptyHeadingText?: boolean); | ||
constructor(locale: Locale, showEmptyHeadingText?: boolean, containerElement?: HTMLElement); | ||
/** | ||
@@ -32,0 +36,0 @@ * If a heading was added or deleted in the editor, insert or delete it in the document outline. |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
import{View as _0x36c655}from'ckeditor5/src/ui';import _0x1dc402 from'./documentoutlineitemview';export default class w extends _0x36c655{constructor(_0x212750,_0x1a3bab=!0x1){super(_0x212750);const t=_0x212750['t'];this['showEmptyHeadingText']=_0x1a3bab,this['set']('activeItemIndex',-0x1),this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0xc5459d,_0x27384f,_0x545152,_0x3e0a2a)=>{this['_setActiveItem'](_0x3e0a2a,_0x545152);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x212750['contentLanguageDirection'],'data-document-outline-empty-placeholder':t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x39012a){_0x39012a['forEach'](_0x299391=>{'insert'==_0x299391['type']?this['_insertItem'](_0x299391['index'],..._0x299391['values']):'delete'==_0x299391['type']&&this['_deleteItem'](_0x299391['index'],_0x299391['howMany']);});}['_setActiveItem'](_0x1e1916,_0x4b9b0d){if(-0x1!==_0x1e1916){const _0xef7eb2=this['items']['get'](_0x1e1916);_0xef7eb2&&(_0xef7eb2['isActive']=!0x1);}-0x1!==_0x4b9b0d&&(this['items']['get'](_0x4b9b0d)['isActive']=!0x0,this['items']['get'](_0x4b9b0d)['scrollTo']());}['_insertItem'](_0x422f69,..._0x52759b){const _0x87bc92=_0x52759b['map']((_0x2ffafe,_0x1a2f2f)=>{const _0x33fd31=new _0x1dc402(this['locale'],this['showEmptyHeadingText']);return _0x33fd31['text']=_0x2ffafe['text'],_0x33fd31['level']=_0x2ffafe['level'],_0x422f69+_0x1a2f2f===this['activeItemIndex']&&(_0x33fd31['isActive']=!0x0),_0x33fd31;});this['items']['addMany'](_0x87bc92,_0x422f69);}['_deleteItem'](_0x3c0c39,_0x83fd78){do{this['items']['remove'](_0x3c0c39);}while(--_0x83fd78);}['_handleItemClick'](_0x210481){const _0x232694=this['items']['getIndex'](_0x210481['source']);this['fire']('itemSelected',_0x232694);}} | ||
import{View as _0x2e79a7}from'ckeditor5/src/ui';import{scrollAncestorsToShowTarget as _0x4b0160}from'ckeditor5/src/utils';import _0x4ad556 from'./documentoutlineitemview';export default class d extends _0x2e79a7{constructor(_0x526ba1,_0x543159=!0x1,_0x3e043b){super(_0x526ba1);const t=_0x526ba1['t'];this['showEmptyHeadingText']=_0x543159,this['set']('activeItemIndex',-0x1),this['_documentOutlineContainer']=_0x3e043b,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x28e880,_0x34ec30,_0x43c4d9,_0x3d7da4)=>{this['_setActiveItem'](_0x3d7da4,_0x43c4d9);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x526ba1['contentLanguageDirection'],'data-document-outline-empty-placeholder':t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x32b0b8){_0x32b0b8['forEach'](_0x1842fa=>{'insert'==_0x1842fa['type']?this['_insertItem'](_0x1842fa['index'],..._0x1842fa['values']):'delete'==_0x1842fa['type']&&this['_deleteItem'](_0x1842fa['index'],_0x1842fa['howMany']);});}['_setActiveItem'](_0x487457,_0xe51663){if(-0x1!==_0x487457){const _0x9f1866=this['items']['get'](_0x487457);_0x9f1866&&(_0x9f1866['isActive']=!0x1);}-0x1!==_0xe51663&&(this['items']['get'](_0xe51663)['isActive']=!0x0,this['_scrollToItem'](_0xe51663));}['_insertItem'](_0x29ae1f,..._0x548135){const _0x2f57cc=_0x548135['map']((_0x453891,_0x266000)=>{const _0x475361=new _0x4ad556(this['locale'],this['showEmptyHeadingText']);return _0x475361['text']=_0x453891['text'],_0x475361['level']=_0x453891['level'],_0x29ae1f+_0x266000===this['activeItemIndex']&&(_0x475361['isActive']=!0x0),_0x475361;});this['items']['addMany'](_0x2f57cc,_0x29ae1f);}['_deleteItem'](_0x2a24b1,_0x4f615a){do{this['items']['remove'](_0x2a24b1);}while(--_0x4f615a);}['_handleItemClick'](_0x7029fd){const _0x375440=this['items']['getIndex'](_0x7029fd['source']);this['fire']('itemSelected',_0x375440);}['_scrollToItem'](_0x517b27){_0x4b0160(this['items']['get'](_0x517b27)['element'],0x14,this['_documentOutlineContainer']);}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x2887=['htmlH6','push','htmlH4','htmlH5','data','heading.options','model','has','htmlH3','getChildren','get','GeneralHtmlSupport','htmlH2','reduce','paragraph','htmlH1'];(function(_0x15dfb9,_0x288758){const _0xc01f03=function(_0xdce279){while(--_0xdce279){_0x15dfb9['push'](_0x15dfb9['shift']());}};_0xc01f03(++_0x288758);}(_0x2887,0xbf));const _0xc01f=function(_0x15dfb9,_0x288758){_0x15dfb9=_0x15dfb9-0x0;let _0xc01f03=_0x2887[_0x15dfb9];return _0xc01f03;};import{Text as _0xfd77b}from'ckeditor5/src/engine';export function getElementText(_0xbe116e){let _0x38f9fb='';for(const _0x978642 of _0xbe116e[_0xc01f('0xa')]())_0x978642 instanceof _0xfd77b&&(_0x38f9fb+=_0x978642[_0xc01f('0x5')]);return _0x38f9fb;}export function getDefaultFeatureHeadingNames(_0x5450c6){const _0xa50ddd=_0x5450c6['config'][_0xc01f('0xb')](_0xc01f('0x6'));return _0xa50ddd?_0xa50ddd[_0xc01f('0xe')]((_0x346215,_0x1e7c6d)=>(_0xc01f('0xf')!==_0x1e7c6d[_0xc01f('0x7')]&&_0x346215[_0xc01f('0x2')](_0x1e7c6d['model']),_0x346215),[]):_0x5450c6['plugins'][_0xc01f('0x8')](_0xc01f('0xc'))?[_0xc01f('0x0'),_0xc01f('0xd'),_0xc01f('0x9'),_0xc01f('0x3'),_0xc01f('0x4'),_0xc01f('0x1')]:[];} | ||
const _0x2a1f=['htmlH3','model','data','heading.options','htmlH5','plugins','GeneralHtmlSupport','push','htmlH6','config','reduce'];(function(_0x1727db,_0x2a1f62){const _0x2476fb=function(_0x29c035){while(--_0x29c035){_0x1727db['push'](_0x1727db['shift']());}};_0x2476fb(++_0x2a1f62);}(_0x2a1f,0xc5));const _0x2476=function(_0x1727db,_0x2a1f62){_0x1727db=_0x1727db-0x0;let _0x2476fb=_0x2a1f[_0x1727db];return _0x2476fb;};import{Text as _0x46a9f0}from'ckeditor5/src/engine';export function getElementText(_0x4c4f86){let _0x378be3='';for(const _0x69aaa2 of _0x4c4f86['getChildren']())_0x69aaa2 instanceof _0x46a9f0&&(_0x378be3+=_0x69aaa2[_0x2476('0x3')]);return _0x378be3;}export function getDefaultFeatureHeadingNames(_0x3b53aa){const _0x2f0943=_0x3b53aa[_0x2476('0xa')]['get'](_0x2476('0x4'));return _0x2f0943?_0x2f0943[_0x2476('0x0')]((_0x6c4f1e,_0x45f6f3)=>('paragraph'!==_0x45f6f3[_0x2476('0x2')]&&_0x6c4f1e[_0x2476('0x8')](_0x45f6f3[_0x2476('0x2')]),_0x6c4f1e),[]):_0x3b53aa[_0x2476('0x6')]['has'](_0x2476('0x7'))?['htmlH1','htmlH2',_0x2476('0x1'),'htmlH4',_0x2476('0x5'),_0x2476('0x9')]:[];} |
@@ -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 _0xe89382 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':_0xe89382};import'./augmentation'; | ||
export{default as DocumentOutline}from'./documentoutline';export{default as DocumentOutlineUI}from'./documentoutline/documentoutlineui';export{default as DocumentOutlineUtils}from'./documentoutline/documentoutlineutils';import _0x572627 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':_0x572627};import'./augmentation'; |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
var _0x2f80=['requires','TableOfContents','pluginName'];(function(_0x4ec9a6,_0x2f805c){var _0x252dc6=function(_0x5248f1){while(--_0x5248f1){_0x4ec9a6['push'](_0x4ec9a6['shift']());}};_0x252dc6(++_0x2f805c);}(_0x2f80,0x78));var _0x252d=function(_0x4ec9a6,_0x2f805c){_0x4ec9a6=_0x4ec9a6-0x0;var _0x252dc6=_0x2f80[_0x4ec9a6];return _0x252dc6;};import{Plugin as _0x2c31f5}from'ckeditor5/src/core';import _0x2f59a6 from'./tableofcontents/tableofcontentsediting';import _0x35ac5e from'./tableofcontents/tableofcontentsui';export default class c extends _0x2c31f5{static get[_0x252d('0x0')](){return[_0x2f59a6,_0x35ac5e];}static get[_0x252d('0x2')](){return _0x252d('0x1');}} | ||
var _0x7bd1=['TableOfContents','requires'];(function(_0x5cc45d,_0x7bd1a6){var _0x4de4c6=function(_0x1e2f06){while(--_0x1e2f06){_0x5cc45d['push'](_0x5cc45d['shift']());}};_0x4de4c6(++_0x7bd1a6);}(_0x7bd1,0x1ea));var _0x4de4=function(_0x5cc45d,_0x7bd1a6){_0x5cc45d=_0x5cc45d-0x0;var _0x4de4c6=_0x7bd1[_0x5cc45d];return _0x4de4c6;};import{Plugin as _0x3b7075}from'ckeditor5/src/core';import _0x13b3fd from'./tableofcontents/tableofcontentsediting';import _0x5f4481 from'./tableofcontents/tableofcontentsui';export default class c extends _0x3b7075{static get[_0x4de4('0x1')](){return[_0x13b3fd,_0x5f4481];}static get['pluginName'](){return _0x4de4('0x0');}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x3d88=['downcast','model','delete','_customDataDowncastHeadingsConversion','pluginName','clear','hasAttribute','low','insert','consume','getAttribute','position','differ','change','length','data','editor','attribute:headingId:','setAttribute','paragraph','name','get','item','string','HeadingId','heading.options','conversion','set','attributes','type','element:','schema','view','heading1','config','has','headingId','consumable','viewItem','_customUpcastHeadingsConversion','_registerHeadingIdAttributePostfixer','toViewElement','add','headingId.modelAttributeName','nodeAfter','for','getContainedElement'];(function(_0x2b402b,_0x3d885d){const _0x2135ba=function(_0x6d262d){while(--_0x6d262d){_0x2b402b['push'](_0x2b402b['shift']());}};_0x2135ba(++_0x3d885d);}(_0x3d88,0x6f));const _0x2135=function(_0x2b402b,_0x3d885d){_0x2b402b=_0x2b402b-0x0;let _0x2135ba=_0x3d88[_0x2b402b];return _0x2135ba;};import{Plugin as _0xe539e0}from'ckeditor5/src/core';import{uid as _0x2e19b8,priorities as _0x3a16cd}from'ckeditor5/src/utils';export default class A extends _0xe539e0{static get[_0x2135('0x22')](){return _0x2135('0x7');}['afterInit'](){const _0x505c3d=this[_0x2135('0x2e')];if(_0x505c3d[_0x2135('0x11')][_0x2135('0x4')](_0x2135('0x1a')))return;(function(_0x477d37){const _0xc6a15a=new Map();if(_0x477d37)return _0x477d37['forEach'](_0x33bf42=>{_0x2135('0x2')!==_0x33bf42['model']&&_0xc6a15a[_0x2135('0xa')](_0x33bf42[_0x2135('0xf')],_0x33bf42[_0x2135('0x1f')]);}),_0xc6a15a['get']('h1')||_0xc6a15a[_0x2135('0xa')]('h1',_0x2135('0x10')),_0xc6a15a;return _0xc6a15a;}(this['editor'][_0x2135('0x11')][_0x2135('0x4')](_0x2135('0x8')))['forEach']((_0xc29465,_0x31e3fe)=>{this['_customUpcastHeadingsConversion'](_0x31e3fe),this[_0x2135('0x21')](_0xc29465),_0x505c3d[_0x2135('0x1f')][_0x2135('0xe')]['isRegistered'](_0xc29465)&&_0x505c3d[_0x2135('0x1f')]['schema']['extend'](_0xc29465,{'allowAttributes':_0x2135('0x13')});}),this[_0x2135('0x17')]());}[_0x2135('0x16')](_0x5d5b88){this[_0x2135('0x2e')][_0x2135('0x2d')]['upcastDispatcher']['on'](_0x2135('0xd')+_0x5d5b88,(_0x158815,_0x49c0a4,_0x1295f5)=>{const {consumable:_0xce1d2e,writer:_0x5320a1}=_0x1295f5,_0x58788a=_0x49c0a4['viewItem'][_0x2135('0x28')]('id'),_0x46ab45=_0x49c0a4['modelRange'][_0x2135('0x1d')]();if(!(_0x58788a&&_0x58788a[_0x2135('0x2c')]||_0x46ab45[_0x2135('0x24')](_0x2135('0x13'))))return _0xce1d2e[_0x2135('0x27')](_0x49c0a4['viewItem'],{'attributes':['id']}),void _0x5320a1['setAttribute'](_0x2135('0x13'),_0x2e19b8(),_0x46ab45);_0xce1d2e[_0x2135('0x27')](_0x49c0a4[_0x2135('0x15')],{'attributes':['id']})&&_0x5320a1[_0x2135('0x1')](_0x2135('0x13'),_0x58788a,_0x46ab45);},{'priority':_0x3a16cd[_0x2135('0x4')](_0x2135('0x25'))+0.5});}[_0x2135('0x21')](_0x6b0c9d){this[_0x2135('0x2e')][_0x2135('0x9')][_0x2135('0x1c')](_0x2135('0x1e'))[_0x2135('0x19')](_0xbba20c=>_0xbba20c['on'](_0x2135('0x0')+_0x6b0c9d,(_0x34a825,_0x4d145c,_0x4a3f14)=>{if(!_0x4a3f14[_0x2135('0x14')]['consume'](_0x4d145c[_0x2135('0x5')],_0x34a825['name']))return;const _0x1e738c=_0x4d145c[_0x2135('0x5')]['getAttribute'](_0x2135('0x13')),_0x10c757=_0x4a3f14['mapper'][_0x2135('0x18')](_0x4d145c[_0x2135('0x5')]);_0x4a3f14['writer']['setAttribute']('id',_0x1e738c,_0x10c757);}));}[_0x2135('0x17')](){const _0x3a0ec4=this['editor'],_0x2dbdca=new Set(),_0x5a7590=new Set();function _0x11ba2b(_0x2cbfdc,_0x588088){const _0x5d157f=_0x2e19b8();return _0x5a7590[_0x2135('0x19')](_0x5d157f),_0x2cbfdc[_0x2135('0x1')](_0x2135('0x13'),_0x5d157f,_0x588088),_0x5d157f;}function _0x4c76ce(_0x18cf76,_0x4155c9){_0x18cf76['removeAttribute'](_0x2135('0x13'),_0x4155c9);}_0x3a0ec4['model']['document']['registerPostFixer'](_0x13bbb0=>{const _0x5cab74=_0x3a0ec4[_0x2135('0x1f')]['document'][_0x2135('0x2a')]['getChanges']();let _0x1b53a5=!0x1;for(const _0x1e2c78 of _0x5cab74)if(_0x2135('0x26')==_0x1e2c78[_0x2135('0xc')]&&_0x1e2c78[_0x2135('0x3')]){if(_0x1e2c78[_0x2135('0x3')]['match'](/heading\d/)){const _0x396afc=_0x1e2c78[_0x2135('0xb')][_0x2135('0x4')](_0x2135('0x13'));_0x2135('0x6')==typeof _0x396afc?_0x2dbdca[_0x2135('0x12')](_0x396afc)?(_0x11ba2b(_0x13bbb0,_0x1e2c78[_0x2135('0x29')][_0x2135('0x1b')]),_0x1b53a5=!0x0):_0x5a7590[_0x2135('0x19')](_0x396afc):(_0x11ba2b(_0x13bbb0,_0x1e2c78['position'][_0x2135('0x1b')]),_0x1b53a5=!0x0);}else _0x2135('0x6')==typeof _0x1e2c78[_0x2135('0xb')][_0x2135('0x4')](_0x2135('0x13'))&&(_0x4c76ce(_0x13bbb0,_0x1e2c78[_0x2135('0x29')][_0x2135('0x1b')]),_0x1b53a5=!0x0);}else{if('remove'==_0x1e2c78['type']){const _0x52ab6a=_0x1e2c78[_0x2135('0xb')][_0x2135('0x4')](_0x2135('0x13'));_0x2135('0x6')==typeof _0x52ab6a&&_0x2dbdca[_0x2135('0x20')](_0x52ab6a);}}return _0x1b53a5;}),_0x3a0ec4[_0x2135('0x1f')]['document']['on'](_0x2135('0x2b'),()=>{_0x5a7590['forEach'](_0x25f2e2=>_0x2dbdca[_0x2135('0x19')](_0x25f2e2)),_0x5a7590[_0x2135('0x23')]();});}} | ||
const _0x2677=['registerPostFixer','change','set','consumable','conversion','heading1','get','attribute:headingId:','differ','attributes','consume','removeAttribute','_customDataDowncastHeadingsConversion','writer','low','isRegistered','position','toViewElement','element:','item','pluginName','setAttribute','viewItem','data','getChanges','schema','getAttribute','string','modelRange','nodeAfter','has','document','extend','type','clear','add','name','delete','remove','HeadingId','headingId','model','editor','insert','_registerHeadingIdAttributePostfixer','match'];(function(_0x58fa39,_0x267746){const _0x2e968e=function(_0xb2955){while(--_0xb2955){_0x58fa39['push'](_0x58fa39['shift']());}};_0x2e968e(++_0x267746);}(_0x2677,0x1da));const _0x2e96=function(_0x58fa39,_0x267746){_0x58fa39=_0x58fa39-0x0;let _0x2e968e=_0x2677[_0x58fa39];return _0x2e968e;};import{Plugin as _0x2a7988}from'ckeditor5/src/core';import{uid as _0x3d2472,priorities as _0x1ee992}from'ckeditor5/src/utils';export default class A extends _0x2a7988{static get[_0x2e96('0x6')](){return _0x2e96('0x19');}['afterInit'](){const _0x3f0d7e=this[_0x2e96('0x1c')];if(_0x3f0d7e['config'][_0x2e96('0x26')]('headingId.modelAttributeName'))return;(function(_0x2e09d1){const _0x3f2c74=new Map();if(_0x2e09d1)return _0x2e09d1['forEach'](_0x346745=>{'paragraph'!==_0x346745['model']&&_0x3f2c74[_0x2e96('0x22')](_0x346745['view'],_0x346745[_0x2e96('0x1b')]);}),_0x3f2c74['get']('h1')||_0x3f2c74[_0x2e96('0x22')]('h1',_0x2e96('0x25')),_0x3f2c74;return _0x3f2c74;}(this[_0x2e96('0x1c')]['config'][_0x2e96('0x26')]('heading.options'))['forEach']((_0x2e04bc,_0x50ef39)=>{this['_customUpcastHeadingsConversion'](_0x50ef39),this['_customDataDowncastHeadingsConversion'](_0x2e04bc),_0x3f0d7e[_0x2e96('0x1b')][_0x2e96('0xb')][_0x2e96('0x1')](_0x2e04bc)&&_0x3f0d7e['model'][_0x2e96('0xb')][_0x2e96('0x12')](_0x2e04bc,{'allowAttributes':_0x2e96('0x1a')});}),this[_0x2e96('0x1e')]());}['_customUpcastHeadingsConversion'](_0x2039cc){this[_0x2e96('0x1c')][_0x2e96('0x9')]['upcastDispatcher']['on'](_0x2e96('0x4')+_0x2039cc,(_0xb5e894,_0x3b1795,_0x2b527e)=>{const {consumable:_0x502fad,writer:_0x272cd1}=_0x2b527e,_0x10312e=_0x3b1795['viewItem'][_0x2e96('0xc')]('id'),_0xea4bfe=_0x3b1795[_0x2e96('0xe')]['getContainedElement']();if(!(_0x10312e&&_0x10312e['length']||_0xea4bfe['hasAttribute']('headingId')))return _0x502fad[_0x2e96('0x2a')](_0x3b1795[_0x2e96('0x8')],{'attributes':['id']}),void _0x272cd1[_0x2e96('0x7')](_0x2e96('0x1a'),_0x3d2472(),_0xea4bfe);_0x502fad[_0x2e96('0x2a')](_0x3b1795[_0x2e96('0x8')],{'attributes':['id']})&&_0x272cd1[_0x2e96('0x7')](_0x2e96('0x1a'),_0x10312e,_0xea4bfe);},{'priority':_0x1ee992[_0x2e96('0x26')](_0x2e96('0x0'))+0.5});}[_0x2e96('0x2c')](_0x42af88){this[_0x2e96('0x1c')][_0x2e96('0x24')]['for']('downcast')[_0x2e96('0x15')](_0x1ec012=>_0x1ec012['on'](_0x2e96('0x27')+_0x42af88,(_0x23da02,_0x349163,_0x23e65e)=>{if(!_0x23e65e[_0x2e96('0x23')][_0x2e96('0x2a')](_0x349163[_0x2e96('0x5')],_0x23da02[_0x2e96('0x16')]))return;const _0x2f864f=_0x349163[_0x2e96('0x5')][_0x2e96('0xc')](_0x2e96('0x1a')),_0x4c1aa5=_0x23e65e['mapper'][_0x2e96('0x3')](_0x349163['item']);_0x23e65e[_0x2e96('0x2d')][_0x2e96('0x7')]('id',_0x2f864f,_0x4c1aa5);}));}['_registerHeadingIdAttributePostfixer'](){const _0x5d38fd=this['editor'],_0xe3429c=new Set(),_0x1cf8e0=new Set();function _0x1fb5f1(_0x3d6725,_0x361b8b){const _0x51443f=_0x3d2472();return _0x1cf8e0[_0x2e96('0x15')](_0x51443f),_0x3d6725['setAttribute'](_0x2e96('0x1a'),_0x51443f,_0x361b8b),_0x51443f;}function _0x42c744(_0x1f1bde,_0x24afce){_0x1f1bde[_0x2e96('0x2b')](_0x2e96('0x1a'),_0x24afce);}_0x5d38fd[_0x2e96('0x1b')][_0x2e96('0x11')][_0x2e96('0x20')](_0x1b93d8=>{const _0x3e6752=_0x5d38fd[_0x2e96('0x1b')][_0x2e96('0x11')][_0x2e96('0x28')][_0x2e96('0xa')]();let _0x583cd6=!0x1;for(const _0x7fced1 of _0x3e6752)if(_0x2e96('0x1d')==_0x7fced1[_0x2e96('0x13')]&&_0x7fced1[_0x2e96('0x16')]){if(_0x7fced1[_0x2e96('0x16')][_0x2e96('0x1f')](/heading\d/)){const _0x4fb307=_0x7fced1[_0x2e96('0x29')]['get'](_0x2e96('0x1a'));_0x2e96('0xd')==typeof _0x4fb307?_0xe3429c[_0x2e96('0x10')](_0x4fb307)?(_0x1fb5f1(_0x1b93d8,_0x7fced1[_0x2e96('0x2')][_0x2e96('0xf')]),_0x583cd6=!0x0):_0x1cf8e0[_0x2e96('0x15')](_0x4fb307):(_0x1fb5f1(_0x1b93d8,_0x7fced1['position'][_0x2e96('0xf')]),_0x583cd6=!0x0);}else _0x2e96('0xd')==typeof _0x7fced1[_0x2e96('0x29')][_0x2e96('0x26')](_0x2e96('0x1a'))&&(_0x42c744(_0x1b93d8,_0x7fced1[_0x2e96('0x2')][_0x2e96('0xf')]),_0x583cd6=!0x0);}else{if(_0x2e96('0x18')==_0x7fced1[_0x2e96('0x13')]){const _0xe73271=_0x7fced1[_0x2e96('0x29')]['get'](_0x2e96('0x1a'));_0x2e96('0xd')==typeof _0xe73271&&_0xe3429c[_0x2e96('0x17')](_0xe73271);}}return _0x583cd6;}),_0x5d38fd['model'][_0x2e96('0x11')]['on'](_0x2e96('0x21'),()=>{_0x1cf8e0['forEach'](_0x4e2788=>_0xe3429c[_0x2e96('0x15')](_0x4e2788)),_0x1cf8e0[_0x2e96('0x14')]();});}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x2d0a=['findAllowedParent','execute','insertObject','editor','getFirstPosition','model','tableOfContents','schema','selection','isEnabled'];(function(_0x40f5f3,_0x2d0a00){const _0x39834a=function(_0x228216){while(--_0x228216){_0x40f5f3['push'](_0x40f5f3['shift']());}};_0x39834a(++_0x2d0a00);}(_0x2d0a,0x175));const _0x3983=function(_0x40f5f3,_0x2d0a00){_0x40f5f3=_0x40f5f3-0x0;let _0x39834a=_0x2d0a[_0x40f5f3];return _0x39834a;};import{Command as _0x3b396f}from'ckeditor5/src/core';export default class O extends _0x3b396f{[_0x3983('0x8')](){this[_0x3983('0x0')]['model']['change'](_0x4979d0=>{this[_0x3983('0x0')]['model'][_0x3983('0x9')](_0x4979d0['createElement'](_0x3983('0x3')));});}['refresh'](){const _0x2309e2=this[_0x3983('0x0')][_0x3983('0x2')],_0x4e1e63=_0x2309e2['document'][_0x3983('0x5')][_0x3983('0x1')]();this[_0x3983('0x6')]=null!==(_0x4e1e63&&_0x2309e2[_0x3983('0x4')][_0x3983('0x7')](_0x4e1e63,_0x3983('0x3')));}} | ||
const _0x2189=['isEnabled','createElement','refresh','editor','getFirstPosition','findAllowedParent','insertObject','schema','model','document','tableOfContents'];(function(_0x265aea,_0x21893b){const _0xb40243=function(_0x45c2b3){while(--_0x45c2b3){_0x265aea['push'](_0x265aea['shift']());}};_0xb40243(++_0x21893b);}(_0x2189,0x105));const _0xb402=function(_0x265aea,_0x21893b){_0x265aea=_0x265aea-0x0;let _0xb40243=_0x2189[_0x265aea];return _0xb40243;};import{Command as _0x35284b}from'ckeditor5/src/core';export default class O extends _0x35284b{['execute'](){this[_0xb402('0x6')][_0xb402('0x0')]['change'](_0x13f567=>{this[_0xb402('0x6')]['model'][_0xb402('0x9')](_0x13f567[_0xb402('0x4')](_0xb402('0x2')));});}[_0xb402('0x5')](){const _0x3cb3e5=this['editor'][_0xb402('0x0')],_0x53fc54=_0x3cb3e5[_0xb402('0x1')]['selection'][_0xb402('0x7')]();this[_0xb402('0x3')]=null!==(_0x53fc54&&_0x3cb3e5[_0xb402('0xa')][_0xb402('0x8')](_0x53fc54,_0xb402('0x2')));}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
import{ButtonView as _0x5f4bf5}from'ckeditor5/src/ui';import{CKEditorError as _0x11031b}from'ckeditor5/src/utils';import{Plugin as _0x1faeb5}from'ckeditor5/src/core';import _0x1f3017 from'../../theme/icons/table-of-contents.svg';export default class s extends _0x1faeb5{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x4788e5){super(_0x4788e5),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x20079b=this['editor'],t=_0x20079b['t'];_0x20079b['ui']['componentFactory']['add']('tableOfContents',_0x270d7d=>{const _0x53ed12=_0x20079b['commands']['get']('insertTableOfContents'),_0x3bcb2a=new _0x5f4bf5(_0x270d7d);return _0x3bcb2a['set']({'label':t('Table\x20of\x20contents'),'icon':_0x1f3017,'tooltip':!0x0}),_0x3bcb2a['bind']('isEnabled')['to'](_0x53ed12,'isEnabled'),this['listenTo'](_0x3bcb2a,'execute',()=>{_0x20079b['execute']('insertTableOfContents'),_0x20079b['editing']['view']['focus']();}),_0x3bcb2a;}),this['licenseKey']=_0x20079b['config']['get']('licenseKey');const _0x13c9cb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x211989;for(const _0x907d36 in _0x13c9cb){const _0x471179=_0x907d36,_0x444a91=_0x13c9cb[_0x471179];if('tableOfContentsLicenseKeyTrial'===_0x444a91||'tableOfContentsLicenseKeyInvalid'===_0x444a91||'tableOfContentsLicenseKeyValid'===_0x444a91||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x444a91){delete _0x13c9cb[_0x471179],_0x211989=_0x444a91;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x211989)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x11031b('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x211989&&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'===_0x211989)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x11031b('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x211989&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}} | ||
import{ButtonView as _0x13c735}from'ckeditor5/src/ui';import{CKEditorError as _0x4f0ea1}from'ckeditor5/src/utils';import{Plugin as _0x16edd2}from'ckeditor5/src/core';import _0x23e818 from'../../theme/icons/table-of-contents.svg';export default class s extends _0x16edd2{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x3070f0){super(_0x3070f0),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x3e4e1b=this['editor'],t=_0x3e4e1b['t'];_0x3e4e1b['ui']['componentFactory']['add']('tableOfContents',_0x1c573a=>{const _0x314d74=_0x3e4e1b['commands']['get']('insertTableOfContents'),_0x3f6760=new _0x13c735(_0x1c573a);return _0x3f6760['set']({'label':t('Table\x20of\x20contents'),'icon':_0x23e818,'tooltip':!0x0}),_0x3f6760['bind']('isEnabled')['to'](_0x314d74,'isEnabled'),this['listenTo'](_0x3f6760,'execute',()=>{_0x3e4e1b['execute']('insertTableOfContents'),_0x3e4e1b['editing']['view']['focus']();}),_0x3f6760;}),this['licenseKey']=_0x3e4e1b['config']['get']('licenseKey');const _0x2c1d01=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1460be;for(const _0x50e176 in _0x2c1d01){const _0x34e963=_0x50e176,_0x2de173=_0x2c1d01[_0x34e963];if('tableOfContentsLicenseKeyTrial'===_0x2de173||'tableOfContentsLicenseKeyInvalid'===_0x2de173||'tableOfContentsLicenseKeyValid'===_0x2de173||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x2de173){delete _0x2c1d01[_0x34e963],_0x1460be=_0x2de173;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x1460be)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x4f0ea1('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x1460be&&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'===_0x1460be)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x4f0ea1('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x1460be&&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
390531
+ Added@ckeditor/ckeditor5-clipboard@0.0.0-nightly-20230719.0(transitive)
+ Added@ckeditor/ckeditor5-core@0.0.0-nightly-20230719.0(transitive)
+ Added@ckeditor/ckeditor5-engine@0.0.0-nightly-20230719.0(transitive)
+ Added@ckeditor/ckeditor5-enter@0.0.0-nightly-20230719.0(transitive)
+ Added@ckeditor/ckeditor5-paragraph@0.0.0-nightly-20230719.0(transitive)
+ Added@ckeditor/ckeditor5-select-all@0.0.0-nightly-20230719.0(transitive)
+ Added@ckeditor/ckeditor5-typing@0.0.0-nightly-20230719.0(transitive)
+ Added@ckeditor/ckeditor5-ui@0.0.0-nightly-20230719.0(transitive)
+ Added@ckeditor/ckeditor5-undo@0.0.0-nightly-20230719.0(transitive)
+ Added@ckeditor/ckeditor5-upload@0.0.0-nightly-20230719.0(transitive)
+ Added@ckeditor/ckeditor5-utils@0.0.0-nightly-20230719.0(transitive)
+ Added@ckeditor/ckeditor5-watchdog@0.0.0-nightly-20230719.0(transitive)
+ Added@ckeditor/ckeditor5-widget@0.0.0-nightly-20230719.0(transitive)
+ Addedckeditor5@0.0.0-nightly-20230719.0(transitive)
- Removed@ckeditor/ckeditor5-clipboard@0.0.0-nightly-20230718.0(transitive)
- Removed@ckeditor/ckeditor5-core@0.0.0-nightly-20230718.0(transitive)
- Removed@ckeditor/ckeditor5-engine@0.0.0-nightly-20230718.0(transitive)
- Removed@ckeditor/ckeditor5-enter@0.0.0-nightly-20230718.0(transitive)
- Removed@ckeditor/ckeditor5-paragraph@0.0.0-nightly-20230718.0(transitive)
- Removed@ckeditor/ckeditor5-select-all@0.0.0-nightly-20230718.0(transitive)
- Removed@ckeditor/ckeditor5-typing@0.0.0-nightly-20230718.0(transitive)
- Removed@ckeditor/ckeditor5-ui@0.0.0-nightly-20230718.0(transitive)
- Removed@ckeditor/ckeditor5-undo@0.0.0-nightly-20230718.0(transitive)
- Removed@ckeditor/ckeditor5-upload@0.0.0-nightly-20230718.0(transitive)
- Removed@ckeditor/ckeditor5-utils@0.0.0-nightly-20230718.0(transitive)
- Removed@ckeditor/ckeditor5-watchdog@0.0.0-nightly-20230718.0(transitive)
- Removed@ckeditor/ckeditor5-widget@0.0.0-nightly-20230718.0(transitive)
- Removedckeditor5@0.0.0-nightly-20230718.0(transitive)