@ckeditor/ckeditor5-document-outline 39.0.2 → 40.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5d89=['domConverter','length','get','findIndex','documentOutline.headings','getChildren','_headingNames','indexOf','document','level','init','_getOutlineDefinitions','model','_getHeadingNames','text','domToView','editor','name','config','change','backward','DocumentOutlineUtils','selection','createElement','item','_deriveHeadingElementsFromConversion','view','getChild','editing','element','getRoot','modelElement','includes','push','activeItemIndex','pluginName'];(function(_0x3c7147,_0x5d8943){const _0x4019fb=function(_0x294146){while(--_0x294146){_0x3c7147['push'](_0x3c7147['shift']());}};_0x4019fb(++_0x5d8943);}(_0x5d89,0x162));const _0x4019=function(_0x3c7147,_0x5d8943){_0x3c7147=_0x3c7147-0x0;let _0x4019fb=_0x5d89[_0x3c7147];return _0x4019fb;};import{Plugin as _0x7d404b}from'ckeditor5/src/core';import{debounce as _0x2d1f00}from'lodash-es';import{TreeWalker as _0x170f07}from'ckeditor5/src/engine';import{getElementText as _0xe6eedb,getDefaultFeatureHeadingNames as _0x4eef94}from'./utils';import{diff as _0x43480f,diffToChanges as _0x38ca1a}from'ckeditor5/src/utils';export default class n extends _0x7d404b{constructor(){super(...arguments),this[_0x4019('0xc')]=[];}static get[_0x4019('0x5')](){return _0x4019('0x1b');}[_0x4019('0x10')](){const _0x27662e=this['editor'];this[_0x4019('0xc')]=this[_0x4019('0x13')]();let _0x220404=[];_0x27662e['model']['document']['on'](_0x4019('0x19'),_0x2d1f00(()=>{const _0x800b09=_0x220404;_0x220404=this['_getOutlineDefinitions']();const _0x1211ab=_0x43480f(_0x800b09,_0x220404,(_0x4afb44,_0x201dfa)=>_0x4afb44[_0x4019('0xf')]===_0x201dfa[_0x4019('0xf')]&&_0x4afb44[_0x4019('0x14')]===_0x201dfa[_0x4019('0x14')]&&_0x4afb44[_0x4019('0x1')]===_0x201dfa['modelElement']),_0x1d9adc=_0x38ca1a(_0x1211ab,_0x220404),_0x164f5a=this['_getActiveHeading'](),_0x4efc75=_0x220404[_0x4019('0x9')](_0x17443f=>_0x17443f[_0x4019('0x1')]===_0x164f5a);_0x1d9adc[_0x4019('0x7')]&&this['fire']('change',{'outlineDefinitions':_0x220404,'activeItemIndex':_0x4efc75,'outlineChanges':_0x1d9adc}),this['fire'](_0x4019('0x4'),{'index':_0x4efc75});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames'][_0x4019('0x7')]||this[_0x4019('0x1f')]();}[_0x4019('0x11')](){const _0x383394=this['editor'],_0x5c69b4=[],_0x5ec85a=this[_0x4019('0xc')];for(const _0x358382 of _0x383394['model'][_0x4019('0xe')]['getRootNames']())_0x52b269(_0x383394[_0x4019('0x12')][_0x4019('0xe')][_0x4019('0x0')](_0x358382));function _0x52b269(_0x76968c){for(const _0x3ab9c9 of _0x76968c[_0x4019('0xb')]())_0x3ab9c9['is']('element')&&(_0x5ec85a[_0x4019('0x2')](_0x3ab9c9[_0x4019('0x17')])&&_0x5c69b4[_0x4019('0x3')]({'level':_0x5ec85a[_0x4019('0xd')](_0x3ab9c9[_0x4019('0x17')])+0x1,'text':_0xe6eedb(_0x3ab9c9),'modelElement':_0x3ab9c9}),_0x52b269(_0x3ab9c9));}return _0x5c69b4;}['_getActiveHeading'](){const _0x45ec14=this[_0x4019('0x16')][_0x4019('0x12')][_0x4019('0xe')][_0x4019('0x1c')]['getFirstPosition'](),_0x1a2217=new _0x170f07({'direction':_0x4019('0x1a'),'startPosition':_0x45ec14});for(const _0x26beed of _0x1a2217)if(_0x26beed[_0x4019('0x1e')]['is'](_0x4019('0x23'))&&this[_0x4019('0xc')][_0x4019('0x2')](_0x26beed[_0x4019('0x1e')][_0x4019('0x17')]))return _0x26beed['item'];}['_getHeadingNames'](){const _0x298b67=this[_0x4019('0x16')][_0x4019('0x18')][_0x4019('0x8')](_0x4019('0xa'));return _0x298b67||_0x4eef94(this[_0x4019('0x16')]);}['_deriveHeadingElementsFromConversion'](){const _0xfd963e=this[_0x4019('0x16')],_0x427345=['h1','h2','h3','h4','h5','h6'],_0x1982dd=[];for(const _0x364df8 of _0x427345){const _0x32a88e=_0xfd963e[_0x4019('0x22')][_0x4019('0x20')][_0x4019('0x6')][_0x4019('0x15')](document[_0x4019('0x1d')](_0x364df8)),_0x5d589f=_0xfd963e['data']['toModel'](_0x32a88e)[_0x4019('0x21')](0x0);(null==_0x5d589f?void 0x0:_0x5d589f['is'](_0x4019('0x23')))&&_0x1982dd['push'](_0x5d589f[_0x4019('0x17')]);}this[_0x4019('0xc')]=_0x1982dd;}}
23
+ const _0x6f10=['_headingNames','editor','fire','init','domToView','editing','element','get','createElement','push','item','_deriveHeadingElementsFromConversion','getFirstPosition','model','indexOf','DocumentOutlineUtils','getChildren','data','level','config','getChild','getRoot','view','change','text','modelElement','includes','name','activeItemIndex','length','documentOutline.headings','document','toModel','afterInit','findIndex','domConverter','getRootNames','_getActiveHeading','backward'];(function(_0x432c89,_0x6f10c3){const _0x41823d=function(_0x19c941){while(--_0x19c941){_0x432c89['push'](_0x432c89['shift']());}};_0x41823d(++_0x6f10c3);}(_0x6f10,0x17e));const _0x4182=function(_0x432c89,_0x6f10c3){_0x432c89=_0x432c89-0x0;let _0x41823d=_0x6f10[_0x432c89];return _0x41823d;};import{Plugin as _0x5bd9ee}from'ckeditor5/src/core';import{debounce as _0x163f57}from'lodash-es';import{TreeWalker as _0x4a1168}from'ckeditor5/src/engine';import{getElementText as _0x38d8ec,getDefaultFeatureHeadingNames as _0x1a62da}from'./utils';import{diff as _0x5a31a3,diffToChanges as _0x5f1425}from'ckeditor5/src/utils';export default class n extends _0x5bd9ee{constructor(){super(...arguments),this[_0x4182('0x8')]=[];}static get['pluginName'](){return _0x4182('0x17');}[_0x4182('0xb')](){const _0x3611a1=this[_0x4182('0x9')];this['_headingNames']=this['_getHeadingNames']();let _0x592ff4=[];_0x3611a1[_0x4182('0x15')][_0x4182('0x0')]['on'](_0x4182('0x1f'),_0x163f57(()=>{const _0x2c0007=_0x592ff4;_0x592ff4=this['_getOutlineDefinitions']();const _0x5ea4ee=_0x5a31a3(_0x2c0007,_0x592ff4,(_0xdfa754,_0x113e7e)=>_0xdfa754[_0x4182('0x1a')]===_0x113e7e['level']&&_0xdfa754['text']===_0x113e7e[_0x4182('0x20')]&&_0xdfa754[_0x4182('0x21')]===_0x113e7e['modelElement']),_0x105e4e=_0x5f1425(_0x5ea4ee,_0x592ff4),_0x6e5416=this[_0x4182('0x6')](),_0x251877=_0x592ff4[_0x4182('0x3')](_0x1ee76a=>_0x1ee76a[_0x4182('0x21')]===_0x6e5416);_0x105e4e['length']&&this[_0x4182('0xa')]('change',{'outlineDefinitions':_0x592ff4,'activeItemIndex':_0x251877,'outlineChanges':_0x105e4e}),this[_0x4182('0xa')](_0x4182('0x24'),{'index':_0x251877});},0xfa,{'leading':!0x0,'trailing':!0x0}));}[_0x4182('0x2')](){this[_0x4182('0x8')][_0x4182('0x25')]||this[_0x4182('0x13')]();}['_getOutlineDefinitions'](){const _0x43eef6=this[_0x4182('0x9')],_0x56ec03=[],_0x425fc3=this[_0x4182('0x8')];for(const _0x345ed5 of _0x43eef6['model'][_0x4182('0x0')][_0x4182('0x5')]())_0x185def(_0x43eef6[_0x4182('0x15')][_0x4182('0x0')][_0x4182('0x1d')](_0x345ed5));function _0x185def(_0x4ed923){for(const _0x419d75 of _0x4ed923[_0x4182('0x18')]())_0x419d75['is'](_0x4182('0xe'))&&(_0x425fc3[_0x4182('0x22')](_0x419d75[_0x4182('0x23')])&&_0x56ec03[_0x4182('0x11')]({'level':_0x425fc3[_0x4182('0x16')](_0x419d75[_0x4182('0x23')])+0x1,'text':_0x38d8ec(_0x419d75),'modelElement':_0x419d75}),_0x185def(_0x419d75));}return _0x56ec03;}[_0x4182('0x6')](){const _0x182bc2=this[_0x4182('0x9')][_0x4182('0x15')][_0x4182('0x0')]['selection'][_0x4182('0x14')](),_0x8cf504=new _0x4a1168({'direction':_0x4182('0x7'),'startPosition':_0x182bc2});for(const _0x57c45d of _0x8cf504)if(_0x57c45d[_0x4182('0x12')]['is'](_0x4182('0xe'))&&this[_0x4182('0x8')]['includes'](_0x57c45d[_0x4182('0x12')]['name']))return _0x57c45d[_0x4182('0x12')];}['_getHeadingNames'](){const _0x3dd1bb=this['editor'][_0x4182('0x1b')][_0x4182('0xf')](_0x4182('0x26'));return _0x3dd1bb||_0x1a62da(this[_0x4182('0x9')]);}[_0x4182('0x13')](){const _0x4d0e02=this[_0x4182('0x9')],_0x510fc6=['h1','h2','h3','h4','h5','h6'],_0xb3c501=[];for(const _0x4afcef of _0x510fc6){const _0x5ad244=_0x4d0e02[_0x4182('0xd')][_0x4182('0x1e')][_0x4182('0x4')][_0x4182('0xc')](document[_0x4182('0x10')](_0x4afcef)),_0x110493=_0x4d0e02[_0x4182('0x19')][_0x4182('0x1')](_0x5ad244)[_0x4182('0x1c')](0x0);(null==_0x110493?void 0x0:_0x110493['is'](_0x4182('0xe')))&&_0xb3c501[_0x4182('0x11')](_0x110493[_0x4182('0x23')]);}this[_0x4182('0x8')]=_0xb3c501;}}
@@ -1,51 +1,51 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module document-outline/documentoutline/ui/documentoutlineitemview
7
- */
8
- import { View } from 'ckeditor5/src/ui';
9
- import { type Locale } from 'ckeditor5/src/utils';
10
- /**
11
- * An item of the document outline.
12
- */
13
- export default class DocumentOutlineItemView extends View {
14
- /**
15
- * The textual content of the item.
16
- *
17
- * @observable
18
- */
19
- text: string;
20
- /**
21
- * The level of heading nesting in the document.
22
- *
23
- * @observable
24
- */
25
- level: number;
26
- /**
27
- * Indicates whether the given item is currently active.
28
- *
29
- * @observable
30
- */
31
- isActive: boolean;
32
- /**
33
- * Indicates whether the heading doesn't have any text.
34
- *
35
- * @observable
36
- */
37
- isEmpty: boolean;
38
- /**
39
- * @inheritDoc
40
- */
41
- constructor(locale: Locale, showEmptyHeadingText?: boolean);
42
- }
43
- /**
44
- * Fired whenever an item in the document outline is clicked.
45
- *
46
- * @eventName ~DocumentOutlineItemView#click
47
- */
48
- export type DocumentOutlineItemViewClickEvent = {
49
- name: 'click';
50
- args: [];
51
- };
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module document-outline/documentoutline/ui/documentoutlineitemview
7
+ */
8
+ import { View } from 'ckeditor5/src/ui';
9
+ import { type Locale } from 'ckeditor5/src/utils';
10
+ /**
11
+ * An item of the document outline.
12
+ */
13
+ export default class DocumentOutlineItemView extends View {
14
+ /**
15
+ * The textual content of the item.
16
+ *
17
+ * @observable
18
+ */
19
+ text: string;
20
+ /**
21
+ * The level of heading nesting in the document.
22
+ *
23
+ * @observable
24
+ */
25
+ level: number;
26
+ /**
27
+ * Indicates whether the given item is currently active.
28
+ *
29
+ * @observable
30
+ */
31
+ isActive: boolean;
32
+ /**
33
+ * Indicates whether the heading doesn't have any text.
34
+ *
35
+ * @observable
36
+ */
37
+ isEmpty: boolean;
38
+ /**
39
+ * @inheritDoc
40
+ */
41
+ constructor(locale: Locale, showEmptyHeadingText?: boolean);
42
+ }
43
+ /**
44
+ * Fired whenever an item in the document outline is clicked.
45
+ *
46
+ * @eventName ~DocumentOutlineItemView#click
47
+ */
48
+ export type DocumentOutlineItemViewClickEvent = {
49
+ name: 'click';
50
+ args: [];
51
+ };
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{View as _0x49d816}from'ckeditor5/src/ui';export default class $ extends _0x49d816{constructor(_0x15075c,_0xec4411=!0x1){super(_0x15075c);const t=_0x15075c['t'],_0x2a3492=this['bindTemplate'],_0x58412e=_0xec4411?'['+t('Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x101ebf=>!_0x101ebf),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x2a3492['to']('level',_0x424f7e=>'ck-document-outline__item_level-'+_0x424f7e),_0x2a3492['if']('isActive','ck-document-outline__item_active'),_0x2a3492['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x2a3492['to']('text')},'children':[{'text':_0x2a3492['to']('text',_0x56fca8=>_0x56fca8||_0x58412e)}],'on':{'click':_0x2a3492['to']('click')}});}}
23
+ import{View as _0x5c187c}from'ckeditor5/src/ui';export default class $ extends _0x5c187c{constructor(_0xe6d56,_0x4db29a=!0x1){super(_0xe6d56);const t=_0xe6d56['t'],_0x122bbf=this['bindTemplate'],_0x3505d6=_0x4db29a?'['+t('Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x222e6c=>!_0x222e6c),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x122bbf['to']('level',_0x57d845=>'ck-document-outline__item_level-'+_0x57d845),_0x122bbf['if']('isActive','ck-document-outline__item_active'),_0x122bbf['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x122bbf['to']('text')},'children':[{'text':_0x122bbf['to']('text',_0x3e6d3a=>_0x3e6d3a||_0x3505d6)}],'on':{'click':_0x122bbf['to']('click')}});}}
@@ -1,52 +1,52 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module document-outline/documentoutline/ui/documentoutlineview
7
- */
8
- import { View, type ViewCollection } from 'ckeditor5/src/ui';
9
- import { type Locale, type diffToChanges } from 'ckeditor5/src/utils';
10
- import type { OutlineItemDefinition } from '../documentoutlineutils';
11
- import DocumentOutlineItemView from './documentoutlineitemview';
12
- /**
13
- * The document outline panel.
14
- */
15
- export default class DocumentOutlineView extends View {
16
- /**
17
- * A collection of document outline items.
18
- */
19
- readonly items: ViewCollection<DocumentOutlineItemView>;
20
- /**
21
- * Indicates which item is active at the moment.
22
- *
23
- * @observable
24
- */
25
- activeItemIndex: number;
26
- /**
27
- * Creates an instance of the {@link module:documentoutline/ui/documentoutlineview~DocumentOutlineView} class.
28
- *
29
- * @param locale The localization services instance.
30
- * @param showEmptyHeadingText Indicates whether the display of a placeholder for empty heading is enabled in the editor.
31
- * @param containerElement The element that contains the document outline.
32
- */
33
- constructor(locale: Locale, showEmptyHeadingText?: boolean, containerElement?: HTMLElement);
34
- /**
35
- * If a heading was added or deleted in the editor, insert or delete it in the document outline.
36
- */
37
- sync(changesInItems: ReturnType<typeof diffToChanges<OutlineItemDefinition>>): void;
38
- /**
39
- * @inheritDoc
40
- */
41
- destroy(): void;
42
- }
43
- /**
44
- * Fired whenever an item in the document outline is clicked.
45
- *
46
- * @eventName ~DocumentOutlineView#itemSelected
47
- * @param itemIndex Index of selected item.
48
- */
49
- export type DocumentOutlineViewItemSelectedEvent = {
50
- name: 'itemSelected';
51
- args: [itemIndex: number];
52
- };
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module document-outline/documentoutline/ui/documentoutlineview
7
+ */
8
+ import { View, type ViewCollection } from 'ckeditor5/src/ui';
9
+ import { type Locale, type diffToChanges } from 'ckeditor5/src/utils';
10
+ import type { OutlineItemDefinition } from '../documentoutlineutils';
11
+ import DocumentOutlineItemView from './documentoutlineitemview';
12
+ /**
13
+ * The document outline panel.
14
+ */
15
+ export default class DocumentOutlineView extends View {
16
+ /**
17
+ * A collection of document outline items.
18
+ */
19
+ readonly items: ViewCollection<DocumentOutlineItemView>;
20
+ /**
21
+ * Indicates which item is active at the moment.
22
+ *
23
+ * @observable
24
+ */
25
+ activeItemIndex: number;
26
+ /**
27
+ * Creates an instance of the {@link module:documentoutline/ui/documentoutlineview~DocumentOutlineView} class.
28
+ *
29
+ * @param locale The localization services instance.
30
+ * @param showEmptyHeadingText Indicates whether the display of a placeholder for empty heading is enabled in the editor.
31
+ * @param containerElement The element that contains the document outline.
32
+ */
33
+ constructor(locale: Locale, showEmptyHeadingText?: boolean, containerElement?: HTMLElement);
34
+ /**
35
+ * If a heading was added or deleted in the editor, insert or delete it in the document outline.
36
+ */
37
+ sync(changesInItems: ReturnType<typeof diffToChanges<OutlineItemDefinition>>): void;
38
+ /**
39
+ * @inheritDoc
40
+ */
41
+ destroy(): void;
42
+ }
43
+ /**
44
+ * Fired whenever an item in the document outline is clicked.
45
+ *
46
+ * @eventName ~DocumentOutlineView#itemSelected
47
+ * @param itemIndex Index of selected item.
48
+ */
49
+ export type DocumentOutlineViewItemSelectedEvent = {
50
+ name: 'itemSelected';
51
+ args: [itemIndex: number];
52
+ };
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{View as _0x2e5e31}from'ckeditor5/src/ui';import{scrollAncestorsToShowTarget as _0x41c976}from'ckeditor5/src/utils';import _0x585676 from'./documentoutlineitemview';export default class d extends _0x2e5e31{constructor(_0x3cc690,_0x2bc0a=!0x1,_0x47dfb3){super(_0x3cc690);const t=_0x3cc690['t'];this['showEmptyHeadingText']=_0x2bc0a,this['set']('activeItemIndex',-0x1),this['_documentOutlineContainer']=_0x47dfb3,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x258527,_0x1a10fd,_0x43caa5,_0x5b5607)=>{this['_setActiveItem'](_0x5b5607,_0x43caa5);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x3cc690['contentLanguageDirection'],'data-document-outline-empty-placeholder':t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x499d8c){_0x499d8c['forEach'](_0x38b490=>{'insert'==_0x38b490['type']?this['_insertItem'](_0x38b490['index'],..._0x38b490['values']):'delete'==_0x38b490['type']&&this['_deleteItem'](_0x38b490['index'],_0x38b490['howMany']);});}['_setActiveItem'](_0x2789ea,_0xb84bbd){if(-0x1!==_0x2789ea){const _0x318bdf=this['items']['get'](_0x2789ea);_0x318bdf&&(_0x318bdf['isActive']=!0x1);}-0x1!==_0xb84bbd&&(this['items']['get'](_0xb84bbd)['isActive']=!0x0,this['_scrollToItem'](_0xb84bbd));}['_insertItem'](_0x372e5c,..._0x2f0a81){const _0x47dcd3=_0x2f0a81['map']((_0x581f68,_0x842345)=>{const _0x18404b=new _0x585676(this['locale'],this['showEmptyHeadingText']);return _0x18404b['text']=_0x581f68['text'],_0x18404b['level']=_0x581f68['level'],_0x372e5c+_0x842345===this['activeItemIndex']&&(_0x18404b['isActive']=!0x0),_0x18404b;});this['items']['addMany'](_0x47dcd3,_0x372e5c);}['_deleteItem'](_0x3da582,_0x168b54){do{this['items']['remove'](_0x3da582);}while(--_0x168b54);}['_handleItemClick'](_0xad43ac){const _0x41b86c=this['items']['getIndex'](_0xad43ac['source']);this['fire']('itemSelected',_0x41b86c);}['_scrollToItem'](_0x1c330b){_0x41c976(this['items']['get'](_0x1c330b)['element'],0x14,this['_documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}
23
+ import{View as _0x427d85}from'ckeditor5/src/ui';import{scrollAncestorsToShowTarget as _0x7c39c2}from'ckeditor5/src/utils';import _0x302be6 from'./documentoutlineitemview';export default class d extends _0x427d85{constructor(_0x3fdf20,_0x5ae982=!0x1,_0x203b14){super(_0x3fdf20);const t=_0x3fdf20['t'];this['showEmptyHeadingText']=_0x5ae982,this['set']('activeItemIndex',-0x1),this['_documentOutlineContainer']=_0x203b14,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x465ac2,_0xf2d3eb,_0x2e8fee,_0x5c1413)=>{this['_setActiveItem'](_0x5c1413,_0x2e8fee);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x3fdf20['contentLanguageDirection'],'data-document-outline-empty-placeholder':t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x576afb){_0x576afb['forEach'](_0x5caa08=>{'insert'==_0x5caa08['type']?this['_insertItem'](_0x5caa08['index'],..._0x5caa08['values']):'delete'==_0x5caa08['type']&&this['_deleteItem'](_0x5caa08['index'],_0x5caa08['howMany']);});}['_setActiveItem'](_0x4c73f2,_0x217b43){if(-0x1!==_0x4c73f2){const _0x16519a=this['items']['get'](_0x4c73f2);_0x16519a&&(_0x16519a['isActive']=!0x1);}-0x1!==_0x217b43&&(this['items']['get'](_0x217b43)['isActive']=!0x0,this['_scrollToItem'](_0x217b43));}['_insertItem'](_0x4aaa6b,..._0x3bc51a){const _0xf35d50=_0x3bc51a['map']((_0x1b97c4,_0x1142bf)=>{const _0x23425c=new _0x302be6(this['locale'],this['showEmptyHeadingText']);return _0x23425c['text']=_0x1b97c4['text'],_0x23425c['level']=_0x1b97c4['level'],_0x4aaa6b+_0x1142bf===this['activeItemIndex']&&(_0x23425c['isActive']=!0x0),_0x23425c;});this['items']['addMany'](_0xf35d50,_0x4aaa6b);}['_deleteItem'](_0x2212cb,_0xc1d88f){do{this['items']['remove'](_0x2212cb);}while(--_0xc1d88f);}['_handleItemClick'](_0x2ac01b){const _0x1ff9b7=this['items']['getIndex'](_0x2ac01b['source']);this['fire']('itemSelected',_0x1ff9b7);}['_scrollToItem'](_0x19d9c3){_0x7c39c2(this['items']['get'](_0x19d9c3)['element'],0x14,this['_documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}
@@ -1,17 +1,17 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module document-outline/documentoutline/utils
7
- */
8
- import { type Element } from 'ckeditor5/src/engine';
9
- import { type Editor } from 'ckeditor5/src/core';
10
- /**
11
- * Returns all text contents that are inside the given element and all its children.
12
- */
13
- export declare function getElementText(element: Element): string;
14
- /**
15
- * Returns a list of standard headings or GHS headings configured in the editor.
16
- */
17
- export declare function getDefaultFeatureHeadingNames(editor: Editor): Array<string>;
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module document-outline/documentoutline/utils
7
+ */
8
+ import { type Element } from 'ckeditor5/src/engine';
9
+ import { type Editor } from 'ckeditor5/src/core';
10
+ /**
11
+ * Returns all text contents that are inside the given element and all its children.
12
+ */
13
+ export declare function getElementText(element: Element): string;
14
+ /**
15
+ * Returns a list of standard headings or GHS headings configured in the editor.
16
+ */
17
+ export declare function getDefaultFeatureHeadingNames(editor: Editor): Array<string>;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3726=['htmlH2','paragraph','push','reduce','has','htmlH1','htmlH5','GeneralHtmlSupport','plugins','data','get','htmlH4','htmlH3','heading.options'];(function(_0x366ecd,_0x3726f1){const _0x2a26f7=function(_0x4be9dd){while(--_0x4be9dd){_0x366ecd['push'](_0x366ecd['shift']());}};_0x2a26f7(++_0x3726f1);}(_0x3726,0x148));const _0x2a26=function(_0x366ecd,_0x3726f1){_0x366ecd=_0x366ecd-0x0;let _0x2a26f7=_0x3726[_0x366ecd];return _0x2a26f7;};import{Text as _0x53f68c}from'ckeditor5/src/engine';export function getElementText(_0x1975fe){let _0x4d03d0='';for(const _0x3162d9 of _0x1975fe['getChildren']())_0x3162d9 instanceof _0x53f68c&&(_0x4d03d0+=_0x3162d9[_0x2a26('0x3')]);return _0x4d03d0;}export function getDefaultFeatureHeadingNames(_0x38dcad){const _0x67a3d2=_0x38dcad['config'][_0x2a26('0x4')](_0x2a26('0x7'));return _0x67a3d2?_0x67a3d2[_0x2a26('0xb')]((_0x1256d2,_0x2aa0ce)=>(_0x2a26('0x9')!==_0x2aa0ce['model']&&_0x1256d2[_0x2a26('0xa')](_0x2aa0ce['model']),_0x1256d2),[]):_0x38dcad[_0x2a26('0x2')][_0x2a26('0xc')](_0x2a26('0x1'))?[_0x2a26('0xd'),_0x2a26('0x8'),_0x2a26('0x6'),_0x2a26('0x5'),_0x2a26('0x0'),'htmlH6']:[];}
23
+ const _0x105c=['paragraph','htmlH2','htmlH5','reduce','data','has','get','push','heading.options','getChildren','model','config','plugins'];(function(_0x394506,_0x105c0c){const _0x1c8d26=function(_0x13ebb6){while(--_0x13ebb6){_0x394506['push'](_0x394506['shift']());}};_0x1c8d26(++_0x105c0c);}(_0x105c,0x154));const _0x1c8d=function(_0x394506,_0x105c0c){_0x394506=_0x394506-0x0;let _0x1c8d26=_0x105c[_0x394506];return _0x1c8d26;};import{Text as _0x3ca39f}from'ckeditor5/src/engine';export function getElementText(_0x3f6721){let _0x2fd63c='';for(const _0x160f6a of _0x3f6721[_0x1c8d('0x7')]())_0x160f6a instanceof _0x3ca39f&&(_0x2fd63c+=_0x160f6a[_0x1c8d('0x2')]);return _0x2fd63c;}export function getDefaultFeatureHeadingNames(_0x17a0a5){const _0x36ab70=_0x17a0a5[_0x1c8d('0x9')][_0x1c8d('0x4')](_0x1c8d('0x6'));return _0x36ab70?_0x36ab70[_0x1c8d('0x1')]((_0x4c39dc,_0x529e73)=>(_0x1c8d('0xb')!==_0x529e73[_0x1c8d('0x8')]&&_0x4c39dc[_0x1c8d('0x5')](_0x529e73[_0x1c8d('0x8')]),_0x4c39dc),[]):_0x17a0a5[_0x1c8d('0xa')][_0x1c8d('0x3')]('GeneralHtmlSupport')?['htmlH1',_0x1c8d('0xc'),'htmlH3','htmlH4',_0x1c8d('0x0'),'htmlH6']:[];}
@@ -1,99 +1,99 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module document-outline/documentoutline
7
- * @publicApi
8
- */
9
- import { Plugin, type Editor } from 'ckeditor5/src/core';
10
- import DocumentOutlineUtils from './documentoutline/documentoutlineutils';
11
- import DocumentOutlineUI from './documentoutline/documentoutlineui';
12
- /**
13
- * The document outline feature.
14
- * It allows for an easy access to a predefined list of headings in the document.
15
- */
16
- export default class DocumentOutline extends Plugin {
17
- licenseKey: string;
18
- /**
19
- * @inheritDoc
20
- */
21
- static get requires(): readonly [typeof DocumentOutlineUtils, typeof DocumentOutlineUI];
22
- /**
23
- * @inheritDoc
24
- */
25
- static get pluginName(): "DocumentOutline";
26
- /**
27
- * @inheritDoc
28
- */
29
- constructor(editor: Editor);
30
- /**
31
- * @inheritDoc
32
- */
33
- init(): void;
34
- /**
35
- * @inheritDoc
36
- */
37
- destroy(): void;
38
- }
39
- /**
40
- * The configuration of the {@link module:document-outline/documentoutline~DocumentOutline document outline feature}.
41
- *
42
- * ```ts
43
- * ClassicEditor
44
- * .create( editorElement, {
45
- * documentOutline: ... // Document outline feature configuration.
46
- * } )
47
- * .then( /* ... *\/ )
48
- * .catch( /* ... *\/ );
49
- * ```
50
- *
51
- * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
52
- */
53
- export interface DocumentOutlineConfig {
54
- /**
55
- * The container element for the document outline to render. This should be a reference to an existing
56
- * container element in the DOM.
57
- */
58
- container?: HTMLElement;
59
- /**
60
- * An array of {@glink framework/architecture/editing-engine#model model} element names considered
61
- * as headings in the document outline.
62
- *
63
- * The index of the heading in the array reflects the heading nesting level. It can be used e.g. for reducing
64
- * the number of visible headings.
65
- *
66
- * ```ts
67
- * ClassicEditor
68
- * .create( editorElement, {
69
- * plugins: [ DocumentOutline, /* ... *\/ ],
70
- * documentOutline: {
71
- * headings: [ 'heading1', 'heading2', /* ... *\/ ],
72
- * // ...
73
- * }
74
- * } )
75
- * .then( /* ... *\/ )
76
- * .catch( /* ... *\/ );
77
- * ```
78
- *
79
- * If this configuration is not defined, the feature will use the following defaults instead:
80
- *
81
- * 1. If the {@glink features/headings Headings feature} is loaded, it equals
82
- * * {@link module:heading/headingconfig~HeadingConfig#options `config.heading.options`}.
83
- * * `[ 'heading1', 'heading2', 'heading3' ]` if `config.heading.options` is not defined.
84
- * 2. If the {@glink features/html/general-html-support General HTML Support} feature is loaded, it equals
85
- * `[ 'htmlH1', 'htmlH2', 'htmlH3', 'htmlH4', 'htmlH5', 'htmlH6' ]`.
86
- *
87
- * **Note**: The Headings feature takes precedence over the General HTML Support feature when
88
- * both are loaded.
89
- */
90
- headings?: Array<string>;
91
- /**
92
- * Allows you to display a placeholder text: [Empty heading] for empty headings.
93
- *
94
- * By default, the display of a placeholder is disabled. To enable it, set this parameter to true.
95
- *
96
- * **Note**: This setting also affects Table of contents feature.
97
- */
98
- showEmptyHeadings?: boolean;
99
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module document-outline/documentoutline
7
+ * @publicApi
8
+ */
9
+ import { Plugin, type Editor } from 'ckeditor5/src/core';
10
+ import DocumentOutlineUtils from './documentoutline/documentoutlineutils';
11
+ import DocumentOutlineUI from './documentoutline/documentoutlineui';
12
+ /**
13
+ * The document outline feature.
14
+ * It allows for an easy access to a predefined list of headings in the document.
15
+ */
16
+ export default class DocumentOutline extends Plugin {
17
+ licenseKey: string;
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get requires(): readonly [typeof DocumentOutlineUtils, typeof DocumentOutlineUI];
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get pluginName(): "DocumentOutline";
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ constructor(editor: Editor);
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ init(): void;
34
+ /**
35
+ * @inheritDoc
36
+ */
37
+ destroy(): void;
38
+ }
39
+ /**
40
+ * The configuration of the {@link module:document-outline/documentoutline~DocumentOutline document outline feature}.
41
+ *
42
+ * ```ts
43
+ * ClassicEditor
44
+ * .create( editorElement, {
45
+ * documentOutline: ... // Document outline feature configuration.
46
+ * } )
47
+ * .then( /* ... *\/ )
48
+ * .catch( /* ... *\/ );
49
+ * ```
50
+ *
51
+ * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
52
+ */
53
+ export interface DocumentOutlineConfig {
54
+ /**
55
+ * The container element for the document outline to render. This should be a reference to an existing
56
+ * container element in the DOM.
57
+ */
58
+ container?: HTMLElement;
59
+ /**
60
+ * An array of {@glink framework/architecture/editing-engine#model model} element names considered
61
+ * as headings in the document outline.
62
+ *
63
+ * The index of the heading in the array reflects the heading nesting level. It can be used e.g. for reducing
64
+ * the number of visible headings.
65
+ *
66
+ * ```ts
67
+ * ClassicEditor
68
+ * .create( editorElement, {
69
+ * plugins: [ DocumentOutline, /* ... *\/ ],
70
+ * documentOutline: {
71
+ * headings: [ 'heading1', 'heading2', /* ... *\/ ],
72
+ * // ...
73
+ * }
74
+ * } )
75
+ * .then( /* ... *\/ )
76
+ * .catch( /* ... *\/ );
77
+ * ```
78
+ *
79
+ * If this configuration is not defined, the feature will use the following defaults instead:
80
+ *
81
+ * 1. If the {@glink features/headings Headings feature} is loaded, it equals
82
+ * * {@link module:heading/headingconfig~HeadingConfig#options `config.heading.options`}.
83
+ * * `[ 'heading1', 'heading2', 'heading3' ]` if `config.heading.options` is not defined.
84
+ * 2. If the {@glink features/html/general-html-support General HTML Support} feature is loaded, it equals
85
+ * `[ 'htmlH1', 'htmlH2', 'htmlH3', 'htmlH4', 'htmlH5', 'htmlH6' ]`.
86
+ *
87
+ * **Note**: The Headings feature takes precedence over the General HTML Support feature when
88
+ * both are loaded.
89
+ */
90
+ headings?: Array<string>;
91
+ /**
92
+ * Allows you to display a placeholder text: [Empty heading] for empty headings.
93
+ *
94
+ * By default, the display of a placeholder is disabled. To enable it, set this parameter to true.
95
+ *
96
+ * **Note**: This setting also affects Table of contents feature.
97
+ */
98
+ showEmptyHeadings?: boolean;
99
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x292d=['documentOutlineLicenseKeyTrialLimit:operations','documentOutlineLicenseKeyInvalid','documentOutlineLicenseKeyValid','destroy','get','licenseKey','_licenseKeyCheckInterval','DocumentOutline','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.','documentOutlineLicenseKeyTrial','info','editor','requires'];(function(_0x162ae2,_0x292d41){const _0x4959ad=function(_0x29c484){while(--_0x29c484){_0x162ae2['push'](_0x162ae2['shift']());}};_0x4959ad(++_0x292d41);}(_0x292d,0xc1));const _0x4959=function(_0x162ae2,_0x292d41){_0x162ae2=_0x162ae2-0x0;let _0x4959ad=_0x292d[_0x162ae2];return _0x4959ad;};import{Plugin as _0xf6022c}from'ckeditor5/src/core';import{CKEditorError as _0x517e77}from'ckeditor5/src/utils';import _0x4049c4 from'./documentoutline/documentoutlineutils';import _0x2fb79c from'./documentoutline/documentoutlineui';export default class l extends _0xf6022c{static get[_0x4959('0x1')](){return[_0x4049c4,_0x2fb79c];}static get['pluginName'](){return _0x4959('0x9');}constructor(_0x1269c7){super(_0x1269c7),this[_0x4959('0x8')]=null;}['init'](){const _0x2b47a0=this[_0x4959('0x0')];this[_0x4959('0x7')]=_0x2b47a0['config'][_0x4959('0x6')]('licenseKey');const _0x9fb00=this[_0x4959('0x0')];this[_0x4959('0x8')]=setInterval(()=>{let _0xa0963d;for(const _0x44250e in _0x9fb00){const _0x163c64=_0x44250e,_0x3bc866=_0x9fb00[_0x163c64];if(_0x4959('0xb')===_0x3bc866||_0x4959('0x3')===_0x3bc866||_0x4959('0x4')===_0x3bc866||_0x4959('0x2')===_0x3bc866){delete _0x9fb00[_0x163c64],_0xa0963d=_0x3bc866;break;}}if(_0x4959('0x3')===_0xa0963d)throw clearInterval(this[_0x4959('0x8')]),new _0x517e77('document-outline-invalid-license-key',null);if(_0x4959('0xb')===_0xa0963d&&console[_0x4959('0xc')](_0x4959('0xa')),_0x4959('0x2')===_0xa0963d)throw clearInterval(this[_0x4959('0x8')]),new _0x517e77('document-outline-trial-license-key-reached-limit-changes',null);_0x4959('0x4')===_0xa0963d&&clearInterval(this[_0x4959('0x8')]);},0x3e8);}[_0x4959('0x5')](){this[_0x4959('0x8')]&&clearInterval(this['_licenseKeyCheckInterval']);}}
23
+ const _0x47f4=['get','pluginName','document-outline-trial-license-key-reached-limit-changes','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.','documentOutlineLicenseKeyTrial','requires','licenseKey','document-outline-invalid-license-key','documentOutlineLicenseKeyInvalid','init','_licenseKeyCheckInterval','editor','DocumentOutline','config','documentOutlineLicenseKeyValid'];(function(_0x5ed45d,_0x47f457){const _0x3acb9a=function(_0x445c15){while(--_0x445c15){_0x5ed45d['push'](_0x5ed45d['shift']());}};_0x3acb9a(++_0x47f457);}(_0x47f4,0x1f2));const _0x3acb=function(_0x5ed45d,_0x47f457){_0x5ed45d=_0x5ed45d-0x0;let _0x3acb9a=_0x47f4[_0x5ed45d];return _0x3acb9a;};import{Plugin as _0x41791e}from'ckeditor5/src/core';import{CKEditorError as _0x1b19f9}from'ckeditor5/src/utils';import _0x598dc5 from'./documentoutline/documentoutlineutils';import _0x4ee4f5 from'./documentoutline/documentoutlineui';export default class l extends _0x41791e{static get[_0x3acb('0x2')](){return[_0x598dc5,_0x4ee4f5];}static get[_0x3acb('0xd')](){return _0x3acb('0x9');}constructor(_0x515352){super(_0x515352),this[_0x3acb('0x7')]=null;}[_0x3acb('0x6')](){const _0x1e72a3=this[_0x3acb('0x8')];this[_0x3acb('0x3')]=_0x1e72a3[_0x3acb('0xa')][_0x3acb('0xc')](_0x3acb('0x3'));const _0x503ff8=this[_0x3acb('0x8')];this[_0x3acb('0x7')]=setInterval(()=>{let _0x373daa;for(const _0x40004d in _0x503ff8){const _0x343305=_0x40004d,_0x1628ec=_0x503ff8[_0x343305];if(_0x3acb('0x1')===_0x1628ec||_0x3acb('0x5')===_0x1628ec||_0x3acb('0xb')===_0x1628ec||'documentOutlineLicenseKeyTrialLimit:operations'===_0x1628ec){delete _0x503ff8[_0x343305],_0x373daa=_0x1628ec;break;}}if('documentOutlineLicenseKeyInvalid'===_0x373daa)throw clearInterval(this[_0x3acb('0x7')]),new _0x1b19f9(_0x3acb('0x4'),null);if('documentOutlineLicenseKeyTrial'===_0x373daa&&console['info'](_0x3acb('0x0')),'documentOutlineLicenseKeyTrialLimit:operations'===_0x373daa)throw clearInterval(this[_0x3acb('0x7')]),new _0x1b19f9(_0x3acb('0xe'),null);_0x3acb('0xb')===_0x373daa&&clearInterval(this[_0x3acb('0x7')]);},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this[_0x3acb('0x7')]);}}
package/src/index.d.ts CHANGED
@@ -1,19 +1,19 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module document-outline
7
- */
8
- export { default as DocumentOutline, type DocumentOutlineConfig } from './documentoutline';
9
- export { default as DocumentOutlineUI } from './documentoutline/documentoutlineui';
10
- export { default as DocumentOutlineUtils } from './documentoutline/documentoutlineutils';
11
- export { default as TableOfContents } from './tableofcontents';
12
- export { default as TableOfContentsCommand } from './tableofcontents/tableofcontentscommand';
13
- export { default as TableOfContentsEditing } from './tableofcontents/tableofcontentsediting';
14
- export { default as TableOfContentsUI } from './tableofcontents/tableofcontentsui';
15
- export { default as HeadingId } from './tableofcontents/headingid';
16
- export declare const icons: {
17
- tableOfContentsIcon: string;
18
- };
19
- import './augmentation';
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module document-outline
7
+ */
8
+ export { default as DocumentOutline, type DocumentOutlineConfig } from './documentoutline';
9
+ export { default as DocumentOutlineUI } from './documentoutline/documentoutlineui';
10
+ export { default as DocumentOutlineUtils } from './documentoutline/documentoutlineutils';
11
+ export { default as TableOfContents } from './tableofcontents';
12
+ export { default as TableOfContentsCommand } from './tableofcontents/tableofcontentscommand';
13
+ export { default as TableOfContentsEditing } from './tableofcontents/tableofcontentsediting';
14
+ export { default as TableOfContentsUI } from './tableofcontents/tableofcontentsui';
15
+ export { default as HeadingId } from './tableofcontents/headingid';
16
+ export declare const icons: {
17
+ tableOfContentsIcon: string;
18
+ };
19
+ import './augmentation';
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export{default as DocumentOutline}from'./documentoutline';export{default as DocumentOutlineUI}from'./documentoutline/documentoutlineui';export{default as DocumentOutlineUtils}from'./documentoutline/documentoutlineutils';import _0x1a5d58 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':_0x1a5d58};import'./augmentation';
23
+ export{default as DocumentOutline}from'./documentoutline';export{default as DocumentOutlineUI}from'./documentoutline/documentoutlineui';export{default as DocumentOutlineUtils}from'./documentoutline/documentoutlineutils';import _0xbde7ed 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':_0xbde7ed};import'./augmentation';