@ckeditor/ckeditor5-document-outline 38.1.1 → 38.2.0-alpha.1

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
- import{ButtonView as _0x41eb27}from'ckeditor5/src/ui';import{CKEditorError as _0x39927c}from'ckeditor5/src/utils';import{Plugin as _0x5c0dfb}from'ckeditor5/src/core';import _0x35b8b0 from'../../theme/icons/table-of-contents.svg';export default class s extends _0x5c0dfb{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x493106){super(_0x493106),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x85c255=this['editor'],t=_0x85c255['t'];_0x85c255['ui']['componentFactory']['add']('tableOfContents',_0x2a2bf2=>{const _0xb04ac4=_0x85c255['commands']['get']('insertTableOfContents'),_0x507e99=new _0x41eb27(_0x2a2bf2);return _0x507e99['set']({'label':t('Table\x20of\x20contents'),'icon':_0x35b8b0,'tooltip':!0x0}),_0x507e99['bind']('isEnabled')['to'](_0xb04ac4,'isEnabled'),this['listenTo'](_0x507e99,'execute',()=>_0x85c255['execute']('insertTableOfContents')),_0x507e99;}),this['licenseKey']=_0x85c255['config']['get']('licenseKey');const _0x22ca37=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x364b1b;for(const _0x5d2307 in _0x22ca37){const _0x1e0b51=_0x5d2307,_0x1ada26=_0x22ca37[_0x1e0b51];if('tableOfContentsLicenseKeyTrial'===_0x1ada26||'tableOfContentsLicenseKeyInvalid'===_0x1ada26||'tableOfContentsLicenseKeyValid'===_0x1ada26||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x1ada26){delete _0x22ca37[_0x1e0b51],_0x364b1b=_0x1ada26;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x364b1b)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x39927c('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x364b1b&&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'===_0x364b1b)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x39927c('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x364b1b&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}
23
+ import{ButtonView as _0x498139}from'ckeditor5/src/ui.js';import{CKEditorError as _0x452542}from'ckeditor5/src/utils.js';import{Plugin as _0x122b77}from'ckeditor5/src/core.js';import _0x2a96a3 from'../../theme/icons/table-of-contents.svg';export default class a extends _0x122b77{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x33270a){super(_0x33270a),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x52ebbd=this['editor'],t=_0x52ebbd['t'];_0x52ebbd['ui']['componentFactory']['add']('tableOfContents',_0x48660a=>{const _0x57b7b5=_0x52ebbd['commands']['get']('insertTableOfContents'),_0x3ce9a5=new _0x498139(_0x48660a);return _0x3ce9a5['set']({'label':t('Table\x20of\x20contents'),'icon':_0x2a96a3,'tooltip':!0x0}),_0x3ce9a5['bind']('isEnabled')['to'](_0x57b7b5,'isEnabled'),this['listenTo'](_0x3ce9a5,'execute',()=>{_0x52ebbd['execute']('insertTableOfContents'),_0x52ebbd['editing']['view']['focus']();}),_0x3ce9a5;}),this['licenseKey']=_0x52ebbd['config']['get']('licenseKey');const _0x478959=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1457bf;for(const _0x54202f in _0x478959){const _0x24417f=_0x54202f,_0x2ae499=_0x478959[_0x24417f];if('tableOfContentsLicenseKeyTrial'===_0x2ae499||'tableOfContentsLicenseKeyInvalid'===_0x2ae499||'tableOfContentsLicenseKeyValid'===_0x2ae499||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x2ae499){delete _0x478959[_0x24417f],_0x1457bf=_0x2ae499;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x1457bf)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x452542('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x1457bf&&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'===_0x1457bf)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x452542('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x1457bf&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}
@@ -1,26 +1,26 @@
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/tableofcontents
7
- * @publicApi
8
- */
9
- import { Plugin } from 'ckeditor5/src/core';
10
- import TableOfContentsEditing from './tableofcontents/tableofcontentsediting';
11
- import TableOfContentsUI from './tableofcontents/tableofcontentsui';
12
- /**
13
- * The table of contents feature.
14
- *
15
- * For a detailed overview, check the {@glink features/table-of-contents Table of contents} feature documentation.
16
- */
17
- export default class TableOfContents extends Plugin {
18
- /**
19
- * @inheritDoc
20
- */
21
- static get requires(): readonly [typeof TableOfContentsEditing, typeof TableOfContentsUI];
22
- /**
23
- * @inheritDoc
24
- */
25
- static get pluginName(): "TableOfContents";
26
- }
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/tableofcontents
7
+ * @publicApi
8
+ */
9
+ import { Plugin } from 'ckeditor5/src/core.js';
10
+ import TableOfContentsEditing from './tableofcontents/tableofcontentsediting.js';
11
+ import TableOfContentsUI from './tableofcontents/tableofcontentsui.js';
12
+ /**
13
+ * The table of contents feature.
14
+ *
15
+ * For a detailed overview, check the {@glink features/table-of-contents Table of contents} feature documentation.
16
+ */
17
+ export default class TableOfContents extends Plugin {
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get requires(): readonly [typeof TableOfContentsEditing, typeof TableOfContentsUI];
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get pluginName(): "TableOfContents";
26
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x15ab=['pluginName','requires'];(function(_0x38da24,_0x15ab23){var _0x5d4ee0=function(_0x17552e){while(--_0x17552e){_0x38da24['push'](_0x38da24['shift']());}};_0x5d4ee0(++_0x15ab23);}(_0x15ab,0x153));var _0x5d4e=function(_0x38da24,_0x15ab23){_0x38da24=_0x38da24-0x0;var _0x5d4ee0=_0x15ab[_0x38da24];return _0x5d4ee0;};import{Plugin as _0x58b9f3}from'ckeditor5/src/core';import _0x5dd23b from'./tableofcontents/tableofcontentsediting';import _0x4d32dc from'./tableofcontents/tableofcontentsui';export default class c extends _0x58b9f3{static get[_0x5d4e('0x0')](){return[_0x5dd23b,_0x4d32dc];}static get[_0x5d4e('0x1')](){return'TableOfContents';}}
23
+ var _0xa545=['requires'];(function(_0x5917a8,_0xa54566){var _0x54f0ed=function(_0x1b8331){while(--_0x1b8331){_0x5917a8['push'](_0x5917a8['shift']());}};_0x54f0ed(++_0xa54566);}(_0xa545,0x1da));var _0x54f0=function(_0x5917a8,_0xa54566){_0x5917a8=_0x5917a8-0x0;var _0x54f0ed=_0xa545[_0x5917a8];return _0x54f0ed;};import{Plugin as _0x1060ab}from'ckeditor5/src/core.js';import _0x17c569 from'./tableofcontents/tableofcontentsediting.js';import _0x4c89ea from'./tableofcontents/tableofcontentsui.js';export default class c extends _0x1060ab{static get[_0x54f0('0x0')](){return[_0x17c569,_0x4c89ea];}static get['pluginName'](){return'TableOfContents';}}