@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
- 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']);}}
23
+ import{ButtonView as _0x133789}from'ckeditor5/src/ui';import{CKEditorError as _0x19dd2e}from'ckeditor5/src/utils';import{Plugin as _0x355b34}from'ckeditor5/src/core';import _0x451fd8 from'../../theme/icons/table-of-contents.svg';export default class s extends _0x355b34{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x49791f){super(_0x49791f),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x6e994a=this['editor'],t=_0x6e994a['t'];_0x6e994a['ui']['componentFactory']['add']('tableOfContents',_0x36659c=>{const _0x17f498=_0x6e994a['commands']['get']('insertTableOfContents'),_0x31e70b=new _0x133789(_0x36659c);return _0x31e70b['set']({'label':t('Table\x20of\x20contents'),'icon':_0x451fd8,'tooltip':!0x0}),_0x31e70b['bind']('isEnabled')['to'](_0x17f498,'isEnabled'),this['listenTo'](_0x31e70b,'execute',()=>{_0x6e994a['execute']('insertTableOfContents'),_0x6e994a['editing']['view']['focus']();}),_0x31e70b;}),this['licenseKey']=_0x6e994a['config']['get']('licenseKey');const _0xc12178=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4bcbda;for(const _0x268126 in _0xc12178){const _0x117446=_0x268126,_0x2bd085=_0xc12178[_0x117446];if('tableOfContentsLicenseKeyTrial'===_0x2bd085||'tableOfContentsLicenseKeyInvalid'===_0x2bd085||'tableOfContentsLicenseKeyValid'===_0x2bd085||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x2bd085){delete _0xc12178[_0x117446],_0x4bcbda=_0x2bd085;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x4bcbda)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x19dd2e('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x4bcbda&&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'===_0x4bcbda)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x19dd2e('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x4bcbda&&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';
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
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- 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
+ var _0x5055=['requires','TableOfContents'];(function(_0x3aa36f,_0x505561){var _0x5813e5=function(_0x15f305){while(--_0x15f305){_0x3aa36f['push'](_0x3aa36f['shift']());}};_0x5813e5(++_0x505561);}(_0x5055,0x15a));var _0x5813=function(_0x3aa36f,_0x505561){_0x3aa36f=_0x3aa36f-0x0;var _0x5813e5=_0x5055[_0x3aa36f];return _0x5813e5;};import{Plugin as _0x4cc1ca}from'ckeditor5/src/core';import _0x47d829 from'./tableofcontents/tableofcontentsediting';import _0x55fbab from'./tableofcontents/tableofcontentsui';export default class c extends _0x4cc1ca{static get[_0x5813('0x0')](){return[_0x47d829,_0x55fbab];}static get['pluginName'](){return _0x5813('0x1');}}
@@ -1,4 +1,8 @@
1
1
  /*
2
+ * What you're currently looking at is the source code of a legally protected, proprietary software.
3
+ * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
+ * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
+ *
2
6
  * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
7
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
8
  */
@@ -1,4 +1,8 @@
1
1
  /*
2
+ * What you're currently looking at is the source code of a legally protected, proprietary software.
3
+ * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
+ * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
+ *
2
6
  * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
7
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
8
  */