Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ckeditor/ckeditor5-document-outline

Package Overview
Dependencies
Maintainers
1
Versions
627
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-document-outline - npm Package Compare versions

Comparing version 39.0.1 to 39.0.2

2

CHANGELOG.md
Changelog
=========
All changes in the package are documented in the CKEditor 5 repository. See: https://github.com/ckeditor/ckeditor5/blob/master/CHANGELOG.md.
All changes in the package are documented in the CKEditor 5 repository. See: https://github.com/ckeditor/ckeditor5/blob/master/CHANGELOG.md.
Software License Agreement
==========================
**CKEditor 5 document outline feature** (https://ckeditor.com/ckeditor-5/)<br>
**CKEditor&nbsp;5 document outline feature** (https://ckeditor.com/ckeditor-5/)<br>
Copyright (c) 2003-2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
CKEditor 5 document outline feature is licensed under a commercial license and is protected by copyright law.
CKEditor&nbsp;5 document outline feature is licensed under a commercial license and is protected by copyright law.
For more details about available licensing options please contact us at sales@cksource.com.
Sources of Intellectual Property Included in CKEditor 5 document outline feature
Sources of Intellectual Property Included in CKEditor&nbsp;5 document outline feature
---------------------------------------------------------------------
Where not otherwise indicated, all CKEditor 5 document outline feature content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
Where not otherwise indicated, all CKEditor&nbsp;5 document outline feature content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
The following libraries are included in CKEditor 5 document outline feature under the [MIT license](https://opensource.org/licenses/MIT):
The following libraries are included in CKEditor&nbsp;5 document outline feature under the [MIT license](https://opensource.org/licenses/MIT):

@@ -17,0 +17,0 @@ * Lo-Dash - Copyright (c) JS Foundation and other contributors https://js.foundation/. Based on Underscore.js, copyright Jeremy Ashkenas.

{
"name": "@ckeditor/ckeditor5-document-outline",
"version": "39.0.1",
"version": "39.0.2",
"description": "Document outline feature for CKEditor 5.",

@@ -15,10 +15,6 @@ "keywords": [

"dependencies": {
"ckeditor5": "39.0.1",
"@ckeditor/ckeditor5-ui": "39.0.1",
"ckeditor5": "39.0.2",
"@ckeditor/ckeditor5-ui": "39.0.2",
"lodash-es": "4.17.21"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=5.7.1"
},
"license": "SEE LICENSE IN LICENSE.md",

@@ -25,0 +21,0 @@ "author": "CKSource (http://cksource.com/)",

@@ -1,2 +0,2 @@

CKEditor 5 document outline feature
CKEditor&nbsp;5 document outline feature
=================================

@@ -6,3 +6,3 @@

This package contains the document outline feature for CKEditor 5. It provides two features for reflecting the structure of the document:
This package contains the document outline feature for CKEditor&nbsp;5. It provides two features for reflecting the structure of the document:

@@ -21,16 +21,16 @@ * The document outline feature displays a navigable list of sections (headings) of the document next to the editor.

See the [`@ckeditor/ckeditor5-document-outline` package](https://ckeditor.com/docs/ckeditor5/latest/api/document-outline.html) page in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/) as well as the [Document outline](https://ckeditor.com/docs/ckeditor5/latest/features/document-outline.html) and [Table of contents](https://ckeditor.com/docs/ckeditor5/latest/features/table-of-contents.html) feature guides.
See the [`@ckeditor/ckeditor5-document-outline` package](https://ckeditor.com/docs/ckeditor5/latest/api/document-outline.html) page in [CKEditor&nbsp;5 documentation](https://ckeditor.com/docs/ckeditor5/latest/) as well as the [Document outline](https://ckeditor.com/docs/ckeditor5/latest/features/document-outline.html) and [Table of contents](https://ckeditor.com/docs/ckeditor5/latest/features/table-of-contents.html) feature guides.
## Getting support
The CKEditor 5 document outline feature comes with outstanding support from a dedicated team of customer care specialists, QA engineers, and CKEditor 5 developers. The team will gladly assist you in all aspects from setting up your account to integrating CKEditor 5 document outline feature with your application.
The CKEditor&nbsp;5 document outline feature comes with outstanding support from a dedicated team of customer care specialists, QA engineers, and CKEditor&nbsp;5 developers. The team will gladly assist you in all aspects from setting up your account to integrating CKEditor&nbsp;5 document outline feature with your application.
As a licensed CKEditor 5 document outline feature user you can report bugs and request features directly through the CKEditor Ecosystem customer dashboard.
As a licensed CKEditor&nbsp;5 document outline feature user you can report bugs and request features directly through the CKEditor Ecosystem customer dashboard.
## License
**CKEditor 5 document outline** (https://ckeditor.com/ckeditor-5/)<br>
**CKEditor&nbsp;5 document outline** (https://ckeditor.com/ckeditor-5/)<br>
Copyright (c) 2003-2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
CKEditor 5 document outline feature is licensed under a commercial license and is protected by copyright law.
CKEditor&nbsp;5 document outline feature is licensed under a commercial license and is protected by copyright law.
For more details about available licensing options please contact us at sales@cksource.com.

@@ -37,0 +37,0 @@

@@ -23,2 +23,2 @@ /*

*/
const _0x8513=['document-outline-trial-license-key-reached-limit-changes','config','documentOutlineLicenseKeyTrialLimit:operations','documentOutlineLicenseKeyTrial','destroy','get','documentOutlineLicenseKeyValid','pluginName','licenseKey','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.','_licenseKeyCheckInterval','requires','init','documentOutlineLicenseKeyInvalid','info','editor'];(function(_0x3c4ffe,_0x85135c){const _0x2de271=function(_0x2a90e3){while(--_0x2a90e3){_0x3c4ffe['push'](_0x3c4ffe['shift']());}};_0x2de271(++_0x85135c);}(_0x8513,0x161));const _0x2de2=function(_0x3c4ffe,_0x85135c){_0x3c4ffe=_0x3c4ffe-0x0;let _0x2de271=_0x8513[_0x3c4ffe];return _0x2de271;};import{Plugin as _0x1b2521}from'ckeditor5/src/core';import{CKEditorError as _0x49f7c1}from'ckeditor5/src/utils';import _0x37993c from'./documentoutline/documentoutlineutils';import _0x310a0f from'./documentoutline/documentoutlineui';export default class l extends _0x1b2521{static get[_0x2de2('0xa')](){return[_0x37993c,_0x310a0f];}static get[_0x2de2('0x6')](){return'DocumentOutline';}constructor(_0x2107e7){super(_0x2107e7),this[_0x2de2('0x9')]=null;}[_0x2de2('0xb')](){const _0x522ca7=this[_0x2de2('0xe')];this[_0x2de2('0x7')]=_0x522ca7[_0x2de2('0x0')][_0x2de2('0x4')](_0x2de2('0x7'));const _0x536588=this[_0x2de2('0xe')];this[_0x2de2('0x9')]=setInterval(()=>{let _0x46ba88;for(const _0x4a12ef in _0x536588){const _0x499861=_0x4a12ef,_0x2970a0=_0x536588[_0x499861];if('documentOutlineLicenseKeyTrial'===_0x2970a0||_0x2de2('0xc')===_0x2970a0||_0x2de2('0x5')===_0x2970a0||_0x2de2('0x1')===_0x2970a0){delete _0x536588[_0x499861],_0x46ba88=_0x2970a0;break;}}if(_0x2de2('0xc')===_0x46ba88)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x49f7c1('document-outline-invalid-license-key',null);if(_0x2de2('0x2')===_0x46ba88&&console[_0x2de2('0xd')](_0x2de2('0x8')),'documentOutlineLicenseKeyTrialLimit:operations'===_0x46ba88)throw clearInterval(this[_0x2de2('0x9')]),new _0x49f7c1(_0x2de2('0xf'),null);_0x2de2('0x5')===_0x46ba88&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}[_0x2de2('0x3')](){this[_0x2de2('0x9')]&&clearInterval(this[_0x2de2('0x9')]);}}
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']);}}

@@ -7,2 +7,3 @@ /**

* @module document-outline/documentoutline/documentoutlineui
* @publicApi
*/

@@ -9,0 +10,0 @@ import { Plugin, type Editor } from 'ckeditor5/src/core';

@@ -23,2 +23,2 @@ /*

*/
const _0x3961=['push','data','findIndex','text','item','editor','length','getRoot','_deriveHeadingElementsFromConversion','_getActiveHeading','model','domConverter','pluginName','_getHeadingNames','getRootNames','_getOutlineDefinitions','includes','indexOf','selection','documentOutline.headings','config','change','modelElement','backward','getFirstPosition','afterInit','document','getChildren','_headingNames','init','level','name','toModel','element','fire','domToView'];(function(_0x42f4e8,_0x3961f3){const _0x348c76=function(_0x5e428c){while(--_0x5e428c){_0x42f4e8['push'](_0x42f4e8['shift']());}};_0x348c76(++_0x3961f3);}(_0x3961,0x17d));const _0x348c=function(_0x42f4e8,_0x3961f3){_0x42f4e8=_0x42f4e8-0x0;let _0x348c76=_0x3961[_0x42f4e8];return _0x348c76;};import{Plugin as _0x5b7270}from'ckeditor5/src/core';import{debounce as _0x2a5e9f}from'lodash-es';import{TreeWalker as _0x367126}from'ckeditor5/src/engine';import{getElementText as _0x3a2cda,getDefaultFeatureHeadingNames as _0x42094b}from'./utils';import{diff as _0x5ae2e2,diffToChanges as _0xc0dc95}from'ckeditor5/src/utils';export default class n extends _0x5b7270{constructor(){super(...arguments),this[_0x348c('0x7')]=[];}static get[_0x348c('0x1b')](){return'DocumentOutlineUtils';}[_0x348c('0x8')](){const _0x1ec8cd=this[_0x348c('0x14')];this[_0x348c('0x7')]=this[_0x348c('0x1c')]();let _0x283178=[];_0x1ec8cd['model']['document']['on'](_0x348c('0x0'),_0x2a5e9f(()=>{const _0x31040f=_0x283178;_0x283178=this['_getOutlineDefinitions']();const _0x2d4a81=_0x5ae2e2(_0x31040f,_0x283178,(_0x49e596,_0x5b8c95)=>_0x49e596[_0x348c('0x9')]===_0x5b8c95['level']&&_0x49e596[_0x348c('0x12')]===_0x5b8c95[_0x348c('0x12')]&&_0x49e596[_0x348c('0x1')]===_0x5b8c95[_0x348c('0x1')]),_0x18e4fc=_0xc0dc95(_0x2d4a81,_0x283178),_0x4aecb0=this['_getActiveHeading'](),_0x5cdbde=_0x283178[_0x348c('0x11')](_0x2a9e06=>_0x2a9e06['modelElement']===_0x4aecb0);_0x18e4fc[_0x348c('0x15')]&&this[_0x348c('0xd')](_0x348c('0x0'),{'outlineDefinitions':_0x283178,'activeItemIndex':_0x5cdbde,'outlineChanges':_0x18e4fc}),this[_0x348c('0xd')]('activeItemIndex',{'index':_0x5cdbde});},0xfa,{'leading':!0x0,'trailing':!0x0}));}[_0x348c('0x4')](){this[_0x348c('0x7')][_0x348c('0x15')]||this[_0x348c('0x17')]();}[_0x348c('0x1e')](){const _0x4e253b=this[_0x348c('0x14')],_0x30d769=[],_0x11c538=this[_0x348c('0x7')];for(const _0x34a4c2 of _0x4e253b[_0x348c('0x19')][_0x348c('0x5')][_0x348c('0x1d')]())_0x3b25f8(_0x4e253b['model'][_0x348c('0x5')][_0x348c('0x16')](_0x34a4c2));function _0x3b25f8(_0x29a0b9){for(const _0x2c5645 of _0x29a0b9[_0x348c('0x6')]())_0x2c5645['is']('element')&&(_0x11c538[_0x348c('0x1f')](_0x2c5645['name'])&&_0x30d769[_0x348c('0xf')]({'level':_0x11c538[_0x348c('0x20')](_0x2c5645[_0x348c('0xa')])+0x1,'text':_0x3a2cda(_0x2c5645),'modelElement':_0x2c5645}),_0x3b25f8(_0x2c5645));}return _0x30d769;}[_0x348c('0x18')](){const _0x4511f8=this[_0x348c('0x14')]['model'][_0x348c('0x5')][_0x348c('0x21')][_0x348c('0x3')](),_0x1e147a=new _0x367126({'direction':_0x348c('0x2'),'startPosition':_0x4511f8});for(const _0x45524b of _0x1e147a)if(_0x45524b['item']['is'](_0x348c('0xc'))&&this[_0x348c('0x7')]['includes'](_0x45524b['item'][_0x348c('0xa')]))return _0x45524b[_0x348c('0x13')];}[_0x348c('0x1c')](){const _0x37068d=this[_0x348c('0x14')][_0x348c('0x23')]['get'](_0x348c('0x22'));return _0x37068d||_0x42094b(this['editor']);}[_0x348c('0x17')](){const _0x22d9d0=this['editor'],_0xc7af75=['h1','h2','h3','h4','h5','h6'],_0x451617=[];for(const _0x5c9a16 of _0xc7af75){const _0x5cc89b=_0x22d9d0['editing']['view'][_0x348c('0x1a')][_0x348c('0xe')](document['createElement'](_0x5c9a16)),_0xec90bb=_0x22d9d0[_0x348c('0x10')][_0x348c('0xb')](_0x5cc89b)['getChild'](0x0);(null==_0xec90bb?void 0x0:_0xec90bb['is']('element'))&&_0x451617[_0x348c('0xf')](_0xec90bb[_0x348c('0xa')]);}this[_0x348c('0x7')]=_0x451617;}}
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,2 +23,2 @@ /*

*/
import{View as _0x286a94}from'ckeditor5/src/ui';export default class $ extends _0x286a94{constructor(_0x448c28,_0x452980=!0x1){super(_0x448c28);const t=_0x448c28['t'],_0x48a985=this['bindTemplate'],_0x1f3be7=_0x452980?'['+t('Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x729e05=>!_0x729e05),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x48a985['to']('level',_0x27d924=>'ck-document-outline__item_level-'+_0x27d924),_0x48a985['if']('isActive','ck-document-outline__item_active'),_0x48a985['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x48a985['to']('text')},'children':[{'text':_0x48a985['to']('text',_0x2d8714=>_0x2d8714||_0x1f3be7)}],'on':{'click':_0x48a985['to']('click')}});}}
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,2 +23,2 @@ /*

*/
import{View as _0x5c8531}from'ckeditor5/src/ui';import{scrollAncestorsToShowTarget as _0x27f198}from'ckeditor5/src/utils';import _0x5b0003 from'./documentoutlineitemview';export default class d extends _0x5c8531{constructor(_0x238755,_0x3c609b=!0x1,_0x1fe1f9){super(_0x238755);const t=_0x238755['t'];this['showEmptyHeadingText']=_0x3c609b,this['set']('activeItemIndex',-0x1),this['_documentOutlineContainer']=_0x1fe1f9,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x2214aa,_0x7c82cd,_0x12ff87,_0x2b6acd)=>{this['_setActiveItem'](_0x2b6acd,_0x12ff87);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x238755['contentLanguageDirection'],'data-document-outline-empty-placeholder':t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x17acdf){_0x17acdf['forEach'](_0xe13a22=>{'insert'==_0xe13a22['type']?this['_insertItem'](_0xe13a22['index'],..._0xe13a22['values']):'delete'==_0xe13a22['type']&&this['_deleteItem'](_0xe13a22['index'],_0xe13a22['howMany']);});}['_setActiveItem'](_0x1d1ab0,_0x396bfd){if(-0x1!==_0x1d1ab0){const _0x1f1188=this['items']['get'](_0x1d1ab0);_0x1f1188&&(_0x1f1188['isActive']=!0x1);}-0x1!==_0x396bfd&&(this['items']['get'](_0x396bfd)['isActive']=!0x0,this['_scrollToItem'](_0x396bfd));}['_insertItem'](_0x175503,..._0xc0231){const _0x2b1a5f=_0xc0231['map']((_0x1eac3e,_0x5d52a4)=>{const _0x15c261=new _0x5b0003(this['locale'],this['showEmptyHeadingText']);return _0x15c261['text']=_0x1eac3e['text'],_0x15c261['level']=_0x1eac3e['level'],_0x175503+_0x5d52a4===this['activeItemIndex']&&(_0x15c261['isActive']=!0x0),_0x15c261;});this['items']['addMany'](_0x2b1a5f,_0x175503);}['_deleteItem'](_0x193e83,_0x35e8e0){do{this['items']['remove'](_0x193e83);}while(--_0x35e8e0);}['_handleItemClick'](_0x51cfa5){const _0x2a47cf=this['items']['getIndex'](_0x51cfa5['source']);this['fire']('itemSelected',_0x2a47cf);}['_scrollToItem'](_0x584b17){_0x27f198(this['items']['get'](_0x584b17)['element'],0x14,this['_documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}
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,2 +23,2 @@ /*

*/
const _0x15fc=['GeneralHtmlSupport','has','htmlH3','getChildren','heading.options','plugins','htmlH6','htmlH2','reduce','get','config','model','htmlH4','push','htmlH5'];(function(_0x1072ef,_0x15fc6b){const _0x239f01=function(_0x393338){while(--_0x393338){_0x1072ef['push'](_0x1072ef['shift']());}};_0x239f01(++_0x15fc6b);}(_0x15fc,0xa9));const _0x239f=function(_0x1072ef,_0x15fc6b){_0x1072ef=_0x1072ef-0x0;let _0x239f01=_0x15fc[_0x1072ef];return _0x239f01;};import{Text as _0x21fe8a}from'ckeditor5/src/engine';export function getElementText(_0xe95477){let _0x4e3751='';for(const _0x1594d5 of _0xe95477[_0x239f('0xe')]())_0x1594d5 instanceof _0x21fe8a&&(_0x4e3751+=_0x1594d5['data']);return _0x4e3751;}export function getDefaultFeatureHeadingNames(_0x4ed676){const _0x13b4a5=_0x4ed676[_0x239f('0x6')][_0x239f('0x5')](_0x239f('0x0'));return _0x13b4a5?_0x13b4a5[_0x239f('0x4')]((_0x39d74d,_0x256033)=>('paragraph'!==_0x256033[_0x239f('0x7')]&&_0x39d74d[_0x239f('0x9')](_0x256033['model']),_0x39d74d),[]):_0x4ed676[_0x239f('0x1')][_0x239f('0xc')](_0x239f('0xb'))?['htmlH1',_0x239f('0x3'),_0x239f('0xd'),_0x239f('0x8'),_0x239f('0xa'),_0x239f('0x2')]:[];}
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,2 +23,2 @@ /*

*/
export{default as DocumentOutline}from'./documentoutline';export{default as DocumentOutlineUI}from'./documentoutline/documentoutlineui';export{default as DocumentOutlineUtils}from'./documentoutline/documentoutlineutils';import _0xc64c35 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':_0xc64c35};import'./augmentation';
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,2 +23,2 @@ /*

*/
var _0x2161=['TableOfContents','pluginName'];(function(_0x16a20f,_0x216130){var _0x3d0944=function(_0x307116){while(--_0x307116){_0x16a20f['push'](_0x16a20f['shift']());}};_0x3d0944(++_0x216130);}(_0x2161,0xc3));var _0x3d09=function(_0x16a20f,_0x216130){_0x16a20f=_0x16a20f-0x0;var _0x3d0944=_0x2161[_0x16a20f];return _0x3d0944;};import{Plugin as _0x30610d}from'ckeditor5/src/core';import _0x3a3eb3 from'./tableofcontents/tableofcontentsediting';import _0x5d405f from'./tableofcontents/tableofcontentsui';export default class c extends _0x30610d{static get['requires'](){return[_0x3a3eb3,_0x5d405f];}static get[_0x3d09('0x0')](){return _0x3d09('0x1');}}
var _0x3538=['TableOfContents','pluginName','requires'];(function(_0x5d6457,_0x353876){var _0x2c80ac=function(_0x33d57c){while(--_0x33d57c){_0x5d6457['push'](_0x5d6457['shift']());}};_0x2c80ac(++_0x353876);}(_0x3538,0x1ec));var _0x2c80=function(_0x5d6457,_0x353876){_0x5d6457=_0x5d6457-0x0;var _0x2c80ac=_0x3538[_0x5d6457];return _0x2c80ac;};import{Plugin as _0x3fb896}from'ckeditor5/src/core';import _0x2fd1c3 from'./tableofcontents/tableofcontentsediting';import _0x40601a from'./tableofcontents/tableofcontentsui';export default class c extends _0x3fb896{static get[_0x2c80('0x2')](){return[_0x2fd1c3,_0x40601a];}static get[_0x2c80('0x1')](){return _0x2c80('0x0');}}

@@ -23,2 +23,2 @@ /*

*/
const _0x5996=['data','headingId.modelAttributeName','item','nodeAfter','writer','delete','headingId','isRegistered','afterInit','add','mapper','string','change','modelRange','has','HeadingId','getContainedElement','toViewElement','name','config','_registerHeadingIdAttributePostfixer','pluginName','setAttribute','clear','length','low','insert','attributes','upcastDispatcher','position','_customDataDowncastHeadingsConversion','getAttribute','viewItem','document','downcast','remove','set','get','getChanges','heading1','consume','for','forEach','model','editor','registerPostFixer','_customUpcastHeadingsConversion','type','paragraph','schema','differ'];(function(_0x5f5340,_0x5996b2){const _0x266b73=function(_0x730075){while(--_0x730075){_0x5f5340['push'](_0x5f5340['shift']());}};_0x266b73(++_0x5996b2);}(_0x5996,0x1f4));const _0x266b=function(_0x5f5340,_0x5996b2){_0x5f5340=_0x5f5340-0x0;let _0x266b73=_0x5996[_0x5f5340];return _0x266b73;};import{Plugin as _0x77a7ff}from'ckeditor5/src/core';import{uid as _0x3ce4d,priorities as _0x54401e}from'ckeditor5/src/utils';export default class A extends _0x77a7ff{static get[_0x266b('0x1f')](){return _0x266b('0x19');}[_0x266b('0x12')](){const _0x5bb823=this[_0x266b('0x3')];if(_0x5bb823[_0x266b('0x1d')][_0x266b('0x2f')](_0x266b('0xb')))return;(function(_0x4bf782){const _0x57dd46=new Map();if(_0x4bf782)return _0x4bf782[_0x266b('0x1')](_0x445a29=>{_0x266b('0x7')!==_0x445a29[_0x266b('0x2')]&&_0x57dd46['set'](_0x445a29['view'],_0x445a29[_0x266b('0x2')]);}),_0x57dd46[_0x266b('0x2f')]('h1')||_0x57dd46[_0x266b('0x2e')]('h1',_0x266b('0x31')),_0x57dd46;return _0x57dd46;}(this[_0x266b('0x3')][_0x266b('0x1d')][_0x266b('0x2f')]('heading.options'))[_0x266b('0x1')]((_0x4db317,_0x40a85d)=>{this[_0x266b('0x5')](_0x40a85d),this['_customDataDowncastHeadingsConversion'](_0x4db317),_0x5bb823[_0x266b('0x2')][_0x266b('0x8')][_0x266b('0x11')](_0x4db317)&&_0x5bb823[_0x266b('0x2')][_0x266b('0x8')]['extend'](_0x4db317,{'allowAttributes':_0x266b('0x10')});}),this[_0x266b('0x1e')]());}['_customUpcastHeadingsConversion'](_0x53ad22){this[_0x266b('0x3')][_0x266b('0xa')][_0x266b('0x26')]['on']('element:'+_0x53ad22,(_0x43cbd0,_0x5c40b1,_0x42428e)=>{const {consumable:_0x40ed28,writer:_0xe69d08}=_0x42428e,_0x40f8fe=_0x5c40b1[_0x266b('0x2a')]['getAttribute']('id'),_0x27658e=_0x5c40b1[_0x266b('0x17')][_0x266b('0x1a')]();if(!(_0x40f8fe&&_0x40f8fe[_0x266b('0x22')]||_0x27658e['hasAttribute'](_0x266b('0x10'))))return _0x40ed28[_0x266b('0x32')](_0x5c40b1[_0x266b('0x2a')],{'attributes':['id']}),void _0xe69d08[_0x266b('0x20')]('headingId',_0x3ce4d(),_0x27658e);_0x40ed28[_0x266b('0x32')](_0x5c40b1['viewItem'],{'attributes':['id']})&&_0xe69d08[_0x266b('0x20')](_0x266b('0x10'),_0x40f8fe,_0x27658e);},{'priority':_0x54401e[_0x266b('0x2f')](_0x266b('0x23'))+0.5});}[_0x266b('0x28')](_0x4ae3bb){this[_0x266b('0x3')]['conversion'][_0x266b('0x0')](_0x266b('0x2c'))[_0x266b('0x13')](_0x77c2da=>_0x77c2da['on']('attribute:headingId:'+_0x4ae3bb,(_0x1c1838,_0x46ea9b,_0x49c6d5)=>{if(!_0x49c6d5['consumable']['consume'](_0x46ea9b[_0x266b('0xc')],_0x1c1838[_0x266b('0x1c')]))return;const _0x39a966=_0x46ea9b[_0x266b('0xc')][_0x266b('0x29')](_0x266b('0x10')),_0x5a4d45=_0x49c6d5[_0x266b('0x14')][_0x266b('0x1b')](_0x46ea9b['item']);_0x49c6d5[_0x266b('0xe')][_0x266b('0x20')]('id',_0x39a966,_0x5a4d45);}));}[_0x266b('0x1e')](){const _0xce7fb7=this[_0x266b('0x3')],_0x4c27cf=new Set(),_0x227d23=new Set();function _0x5797bd(_0x3d8b5c,_0x23edf3){const _0x5ab199=_0x3ce4d();return _0x227d23[_0x266b('0x13')](_0x5ab199),_0x3d8b5c[_0x266b('0x20')]('headingId',_0x5ab199,_0x23edf3),_0x5ab199;}function _0x2876be(_0x369238,_0x19e00d){_0x369238['removeAttribute'](_0x266b('0x10'),_0x19e00d);}_0xce7fb7['model']['document'][_0x266b('0x4')](_0x28c193=>{const _0x309c3f=_0xce7fb7[_0x266b('0x2')][_0x266b('0x2b')][_0x266b('0x9')][_0x266b('0x30')]();let _0x1685e1=!0x1;for(const _0xe599bb of _0x309c3f)if(_0x266b('0x24')==_0xe599bb[_0x266b('0x6')]&&_0xe599bb[_0x266b('0x1c')]){if(_0xe599bb[_0x266b('0x1c')]['match'](/heading\d/)){const _0x8e0eb=_0xe599bb['attributes']['get'](_0x266b('0x10'));_0x266b('0x15')==typeof _0x8e0eb?_0x4c27cf[_0x266b('0x18')](_0x8e0eb)?(_0x5797bd(_0x28c193,_0xe599bb[_0x266b('0x27')][_0x266b('0xd')]),_0x1685e1=!0x0):_0x227d23[_0x266b('0x13')](_0x8e0eb):(_0x5797bd(_0x28c193,_0xe599bb[_0x266b('0x27')]['nodeAfter']),_0x1685e1=!0x0);}else _0x266b('0x15')==typeof _0xe599bb[_0x266b('0x25')][_0x266b('0x2f')]('headingId')&&(_0x2876be(_0x28c193,_0xe599bb['position'][_0x266b('0xd')]),_0x1685e1=!0x0);}else{if(_0x266b('0x2d')==_0xe599bb['type']){const _0x503a6c=_0xe599bb['attributes'][_0x266b('0x2f')](_0x266b('0x10'));_0x266b('0x15')==typeof _0x503a6c&&_0x4c27cf[_0x266b('0xf')](_0x503a6c);}}return _0x1685e1;}),_0xce7fb7[_0x266b('0x2')][_0x266b('0x2b')]['on'](_0x266b('0x16'),()=>{_0x227d23[_0x266b('0x1')](_0x3f8d8c=>_0x4c27cf['add'](_0x3f8d8c)),_0x227d23[_0x266b('0x21')]();});}}
const _0x5bc8=['position','clear','headingId','insert','change','document','_customDataDowncastHeadingsConversion','name','upcastDispatcher','writer','heading1','paragraph','consumable','heading.options','element:','get','toViewElement','headingId.modelAttributeName','config','getAttribute','data','has','attribute:headingId:','removeAttribute','isRegistered','getChanges','type','model','_customUpcastHeadingsConversion','viewItem','pluginName','_registerHeadingIdAttributePostfixer','string','delete','differ','remove','getContainedElement','item','editor','attributes','hasAttribute','add','extend','set','setAttribute','forEach','consume','view','afterInit','nodeAfter','schema','registerPostFixer'];(function(_0x109bf1,_0x5bc8e6){const _0x404634=function(_0x36e49f){while(--_0x36e49f){_0x109bf1['push'](_0x109bf1['shift']());}};_0x404634(++_0x5bc8e6);}(_0x5bc8,0xa9));const _0x4046=function(_0x109bf1,_0x5bc8e6){_0x109bf1=_0x109bf1-0x0;let _0x404634=_0x5bc8[_0x109bf1];return _0x404634;};import{Plugin as _0x577da6}from'ckeditor5/src/core';import{uid as _0x43e6e7,priorities as _0x5e1e8a}from'ckeditor5/src/utils';export default class A extends _0x577da6{static get[_0x4046('0x11')](){return'HeadingId';}[_0x4046('0x23')](){const _0x13fbba=this[_0x4046('0x19')];if(_0x13fbba[_0x4046('0x5')]['get'](_0x4046('0x4')))return;(function(_0x2e99a4){const _0x54cf8a=new Map();if(_0x2e99a4)return _0x2e99a4[_0x4046('0x20')](_0x3b9549=>{_0x4046('0x32')!==_0x3b9549[_0x4046('0xe')]&&_0x54cf8a[_0x4046('0x1e')](_0x3b9549[_0x4046('0x22')],_0x3b9549[_0x4046('0xe')]);}),_0x54cf8a[_0x4046('0x2')]('h1')||_0x54cf8a['set']('h1',_0x4046('0x31')),_0x54cf8a;return _0x54cf8a;}(this['editor'][_0x4046('0x5')][_0x4046('0x2')](_0x4046('0x0')))[_0x4046('0x20')]((_0x16dde6,_0x17135c)=>{this[_0x4046('0xf')](_0x17135c),this[_0x4046('0x2d')](_0x16dde6),_0x13fbba[_0x4046('0xe')][_0x4046('0x25')][_0x4046('0xb')](_0x16dde6)&&_0x13fbba[_0x4046('0xe')][_0x4046('0x25')][_0x4046('0x1d')](_0x16dde6,{'allowAttributes':'headingId'});}),this[_0x4046('0x12')]());}['_customUpcastHeadingsConversion'](_0x4aab2d){this[_0x4046('0x19')][_0x4046('0x7')][_0x4046('0x2f')]['on'](_0x4046('0x1')+_0x4aab2d,(_0x536777,_0x39cd5e,_0x86fb0e)=>{const {consumable:_0x19dbea,writer:_0x21a6d8}=_0x86fb0e,_0x309847=_0x39cd5e[_0x4046('0x10')][_0x4046('0x6')]('id'),_0x247dd9=_0x39cd5e['modelRange'][_0x4046('0x17')]();if(!(_0x309847&&_0x309847['length']||_0x247dd9[_0x4046('0x1b')](_0x4046('0x29'))))return _0x19dbea['consume'](_0x39cd5e[_0x4046('0x10')],{'attributes':['id']}),void _0x21a6d8[_0x4046('0x1f')](_0x4046('0x29'),_0x43e6e7(),_0x247dd9);_0x19dbea['consume'](_0x39cd5e['viewItem'],{'attributes':['id']})&&_0x21a6d8[_0x4046('0x1f')](_0x4046('0x29'),_0x309847,_0x247dd9);},{'priority':_0x5e1e8a['get']('low')+0.5});}[_0x4046('0x2d')](_0x136cb9){this['editor']['conversion']['for']('downcast')[_0x4046('0x1c')](_0x1c2525=>_0x1c2525['on'](_0x4046('0x9')+_0x136cb9,(_0x27d638,_0x1f9ee8,_0x4cc10d)=>{if(!_0x4cc10d[_0x4046('0x33')][_0x4046('0x21')](_0x1f9ee8[_0x4046('0x18')],_0x27d638[_0x4046('0x2e')]))return;const _0x487087=_0x1f9ee8['item'][_0x4046('0x6')](_0x4046('0x29')),_0x3bfe75=_0x4cc10d['mapper'][_0x4046('0x3')](_0x1f9ee8[_0x4046('0x18')]);_0x4cc10d[_0x4046('0x30')][_0x4046('0x1f')]('id',_0x487087,_0x3bfe75);}));}[_0x4046('0x12')](){const _0x18e69f=this[_0x4046('0x19')],_0x28d5b1=new Set(),_0x5cb554=new Set();function _0x50531c(_0x2cb99e,_0x156e9a){const _0x1bdc0d=_0x43e6e7();return _0x5cb554[_0x4046('0x1c')](_0x1bdc0d),_0x2cb99e[_0x4046('0x1f')](_0x4046('0x29'),_0x1bdc0d,_0x156e9a),_0x1bdc0d;}function _0x3c01f0(_0x5bfcd6,_0x488ce2){_0x5bfcd6[_0x4046('0xa')](_0x4046('0x29'),_0x488ce2);}_0x18e69f[_0x4046('0xe')][_0x4046('0x2c')][_0x4046('0x26')](_0x206f09=>{const _0x44ac0d=_0x18e69f['model'][_0x4046('0x2c')][_0x4046('0x15')][_0x4046('0xc')]();let _0x38b717=!0x1;for(const _0x77fa13 of _0x44ac0d)if(_0x4046('0x2a')==_0x77fa13[_0x4046('0xd')]&&_0x77fa13[_0x4046('0x2e')]){if(_0x77fa13['name']['match'](/heading\d/)){const _0x23a56f=_0x77fa13[_0x4046('0x1a')][_0x4046('0x2')]('headingId');_0x4046('0x13')==typeof _0x23a56f?_0x28d5b1[_0x4046('0x8')](_0x23a56f)?(_0x50531c(_0x206f09,_0x77fa13[_0x4046('0x27')][_0x4046('0x24')]),_0x38b717=!0x0):_0x5cb554[_0x4046('0x1c')](_0x23a56f):(_0x50531c(_0x206f09,_0x77fa13[_0x4046('0x27')][_0x4046('0x24')]),_0x38b717=!0x0);}else _0x4046('0x13')==typeof _0x77fa13['attributes'][_0x4046('0x2')](_0x4046('0x29'))&&(_0x3c01f0(_0x206f09,_0x77fa13[_0x4046('0x27')]['nodeAfter']),_0x38b717=!0x0);}else{if(_0x4046('0x16')==_0x77fa13[_0x4046('0xd')]){const _0x5adca1=_0x77fa13['attributes'][_0x4046('0x2')]('headingId');_0x4046('0x13')==typeof _0x5adca1&&_0x28d5b1[_0x4046('0x14')](_0x5adca1);}}return _0x38b717;}),_0x18e69f['model'][_0x4046('0x2c')]['on'](_0x4046('0x2b'),()=>{_0x5cb554[_0x4046('0x20')](_0x4369df=>_0x28d5b1['add'](_0x4369df)),_0x5cb554[_0x4046('0x28')]();});}}

@@ -23,2 +23,2 @@ /*

*/
const _0xd1e7=['insertObject','isEnabled','change','model','getFirstPosition','document','selection','editor','tableOfContents'];(function(_0x4daffe,_0xd1e7ca){const _0x16ab1c=function(_0x4af37d){while(--_0x4af37d){_0x4daffe['push'](_0x4daffe['shift']());}};_0x16ab1c(++_0xd1e7ca);}(_0xd1e7,0x1aa));const _0x16ab=function(_0x4daffe,_0xd1e7ca){_0x4daffe=_0x4daffe-0x0;let _0x16ab1c=_0xd1e7[_0x4daffe];return _0x16ab1c;};import{Command as _0x534dc1}from'ckeditor5/src/core';export default class O extends _0x534dc1{['execute'](){this[_0x16ab('0x4')]['model'][_0x16ab('0x8')](_0x796dd6=>{this[_0x16ab('0x4')][_0x16ab('0x0')][_0x16ab('0x6')](_0x796dd6['createElement'](_0x16ab('0x5')));});}['refresh'](){const _0x35eaa4=this['editor'][_0x16ab('0x0')],_0x4cdabc=_0x35eaa4[_0x16ab('0x2')][_0x16ab('0x3')][_0x16ab('0x1')]();this[_0x16ab('0x7')]=null!==(_0x4cdabc&&_0x35eaa4['schema']['findAllowedParent'](_0x4cdabc,_0x16ab('0x5')));}}
const _0x1105=['model','execute','insertObject','findAllowedParent','selection','refresh','getFirstPosition','document','editor','isEnabled','change','tableOfContents','schema','createElement'];(function(_0xfddf52,_0x110571){const _0x28d7f2=function(_0x270519){while(--_0x270519){_0xfddf52['push'](_0xfddf52['shift']());}};_0x28d7f2(++_0x110571);}(_0x1105,0xa6));const _0x28d7=function(_0xfddf52,_0x110571){_0xfddf52=_0xfddf52-0x0;let _0x28d7f2=_0x1105[_0xfddf52];return _0x28d7f2;};import{Command as _0x2d300c}from'ckeditor5/src/core';export default class O extends _0x2d300c{[_0x28d7('0x3')](){this[_0x28d7('0xa')]['model'][_0x28d7('0xc')](_0x499dfb=>{this[_0x28d7('0xa')][_0x28d7('0x2')][_0x28d7('0x4')](_0x499dfb[_0x28d7('0x1')](_0x28d7('0xd')));});}[_0x28d7('0x7')](){const _0x46e6b6=this[_0x28d7('0xa')][_0x28d7('0x2')],_0x56feb1=_0x46e6b6[_0x28d7('0x9')][_0x28d7('0x6')][_0x28d7('0x8')]();this[_0x28d7('0xb')]=null!==(_0x56feb1&&_0x46e6b6[_0x28d7('0x0')][_0x28d7('0x5')](_0x56feb1,_0x28d7('0xd')));}}

@@ -23,2 +23,2 @@ /*

*/
import{ButtonView as _0x1f20b5}from'ckeditor5/src/ui';import{CKEditorError as _0x2a53b2}from'ckeditor5/src/utils';import{Plugin as _0x3aa463}from'ckeditor5/src/core';import _0x333fbf from'../../theme/icons/table-of-contents.svg';export default class s extends _0x3aa463{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0xaf55d0){super(_0xaf55d0),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x1176bf=this['editor'],t=_0x1176bf['t'];_0x1176bf['ui']['componentFactory']['add']('tableOfContents',_0x5e9aaf=>{const _0x568500=_0x1176bf['commands']['get']('insertTableOfContents'),_0x52d5b9=new _0x1f20b5(_0x5e9aaf);return _0x52d5b9['set']({'label':t('Table\x20of\x20contents'),'icon':_0x333fbf,'tooltip':!0x0}),_0x52d5b9['bind']('isEnabled')['to'](_0x568500,'isEnabled'),this['listenTo'](_0x52d5b9,'execute',()=>{_0x1176bf['execute']('insertTableOfContents'),_0x1176bf['editing']['view']['focus']();}),_0x52d5b9;}),this['licenseKey']=_0x1176bf['config']['get']('licenseKey');const _0x5ab482=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2326ce;for(const _0x5d5f10 in _0x5ab482){const _0x5b88bd=_0x5d5f10,_0x1a347b=_0x5ab482[_0x5b88bd];if('tableOfContentsLicenseKeyTrial'===_0x1a347b||'tableOfContentsLicenseKeyInvalid'===_0x1a347b||'tableOfContentsLicenseKeyValid'===_0x1a347b||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x1a347b){delete _0x5ab482[_0x5b88bd],_0x2326ce=_0x1a347b;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x2326ce)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x2a53b2('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x2326ce&&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'===_0x2326ce)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x2a53b2('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x2326ce&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}
import{ButtonView as _0x709eba}from'ckeditor5/src/ui';import{CKEditorError as _0x48ddb7}from'ckeditor5/src/utils';import{Plugin as _0x1ce1d1}from'ckeditor5/src/core';import _0xf07847 from'../../theme/icons/table-of-contents.svg';export default class s extends _0x1ce1d1{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x2d8198){super(_0x2d8198),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x3d2a0d=this['editor'],t=_0x3d2a0d['t'];_0x3d2a0d['ui']['componentFactory']['add']('tableOfContents',_0x193a29=>{const _0x24d480=_0x3d2a0d['commands']['get']('insertTableOfContents'),_0x435fae=new _0x709eba(_0x193a29);return _0x435fae['set']({'label':t('Table\x20of\x20contents'),'icon':_0xf07847,'tooltip':!0x0}),_0x435fae['bind']('isEnabled')['to'](_0x24d480,'isEnabled'),this['listenTo'](_0x435fae,'execute',()=>{_0x3d2a0d['execute']('insertTableOfContents'),_0x3d2a0d['editing']['view']['focus']();}),_0x435fae;}),this['licenseKey']=_0x3d2a0d['config']['get']('licenseKey');const _0x54a9d3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1bd10b;for(const _0xd53c6d in _0x54a9d3){const _0x17e363=_0xd53c6d,_0x443d79=_0x54a9d3[_0x17e363];if('tableOfContentsLicenseKeyTrial'===_0x443d79||'tableOfContentsLicenseKeyInvalid'===_0x443d79||'tableOfContentsLicenseKeyValid'===_0x443d79||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x443d79){delete _0x54a9d3[_0x17e363],_0x1bd10b=_0x443d79;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x1bd10b)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x48ddb7('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x1bd10b&&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'===_0x1bd10b)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x48ddb7('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x1bd10b&&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 not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc