@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.
- package/build/document-outline.js +1 -1
- package/package.json +3 -3
- package/src/augmentation.d.ts +27 -27
- package/src/documentoutline/documentoutlineui.d.ts +40 -40
- package/src/documentoutline/documentoutlineui.js +1 -1
- package/src/documentoutline/documentoutlineutils.d.ts +66 -66
- package/src/documentoutline/documentoutlineutils.js +1 -1
- package/src/documentoutline/ui/documentoutlineitemview.d.ts +51 -51
- package/src/documentoutline/ui/documentoutlineitemview.js +1 -1
- package/src/documentoutline/ui/documentoutlineview.d.ts +52 -52
- package/src/documentoutline/ui/documentoutlineview.js +1 -1
- package/src/documentoutline/utils.d.ts +17 -17
- package/src/documentoutline/utils.js +1 -1
- package/src/documentoutline.d.ts +99 -99
- package/src/documentoutline.js +1 -1
- package/src/index.d.ts +19 -19
- package/src/index.js +1 -1
- package/src/tableofcontents/headingid.d.ts +18 -18
- package/src/tableofcontents/headingid.js +1 -1
- package/src/tableofcontents/tableofcontentscommand.d.ts +21 -21
- package/src/tableofcontents/tableofcontentscommand.js +1 -1
- package/src/tableofcontents/tableofcontentsediting.d.ts +37 -37
- package/src/tableofcontents/tableofcontentsediting.js +1 -1
- package/src/tableofcontents/tableofcontentsui.d.ts +27 -27
- package/src/tableofcontents/tableofcontentsui.js +1 -1
- package/src/tableofcontents.d.ts +26 -26
- package/src/tableofcontents.js +1 -1
- package/theme/documentoutline.css +4 -0
- package/theme/tableofcontents.css +4 -0
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
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']);}}
|
package/src/tableofcontents.d.ts
CHANGED
|
@@ -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
|
+
}
|
package/src/tableofcontents.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
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
|
*/
|