@ckeditor/ckeditor5-document-outline 40.0.0 → 40.1.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/LICENSE.md +3 -3
- 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/tableofcontents.css +3 -4
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x521148}from'ckeditor5/src/ui';import{CKEditorError as _0x2a6eb0}from'ckeditor5/src/utils';import{Plugin as _0x50d9a4}from'ckeditor5/src/core';import _0x3cca45 from'../../theme/icons/table-of-contents.svg';export default class s extends _0x50d9a4{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x2fd000){super(_0x2fd000),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x498129=this['editor'],t=_0x498129['t'];_0x498129['ui']['componentFactory']['add']('tableOfContents',_0x37c79b=>{const _0x2c8fae=_0x498129['commands']['get']('insertTableOfContents'),_0x38a9be=new _0x521148(_0x37c79b);return _0x38a9be['set']({'label':t('Table\x20of\x20contents'),'icon':_0x3cca45,'tooltip':!0x0}),_0x38a9be['bind']('isEnabled')['to'](_0x2c8fae,'isEnabled'),this['listenTo'](_0x38a9be,'execute',()=>{_0x498129['execute']('insertTableOfContents'),_0x498129['editing']['view']['focus']();}),_0x38a9be;}),this['licenseKey']=_0x498129['config']['get']('licenseKey');const _0x40a499=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x54026f;for(const _0x38c6a7 in _0x40a499){const _0x3b6b8c=_0x38c6a7,_0x142803=_0x40a499[_0x3b6b8c];if('tableOfContentsLicenseKeyTrial'===_0x142803||'tableOfContentsLicenseKeyInvalid'===_0x142803||'tableOfContentsLicenseKeyValid'===_0x142803||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x142803){delete _0x40a499[_0x3b6b8c],_0x54026f=_0x142803;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x54026f)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x2a6eb0('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x54026f&&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'===_0x54026f)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x2a6eb0('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x54026f&&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 _0x3f93=['TableOfContents','pluginName','requires'];(function(_0x3f1269,_0x3f9326){var _0x4814d9=function(_0x5cb826){while(--_0x5cb826){_0x3f1269['push'](_0x3f1269['shift']());}};_0x4814d9(++_0x3f9326);}(_0x3f93,0x16d));var _0x4814=function(_0x3f1269,_0x3f9326){_0x3f1269=_0x3f1269-0x0;var _0x4814d9=_0x3f93[_0x3f1269];return _0x4814d9;};import{Plugin as _0xa7acd}from'ckeditor5/src/core';import _0x412401 from'./tableofcontents/tableofcontentsediting';import _0x23bf46 from'./tableofcontents/tableofcontentsui';export default class c extends _0xa7acd{static get[_0x4814('0x0')](){return[_0x412401,_0x23bf46];}static get[_0x4814('0x2')](){return _0x4814('0x1');}}
|
|
@@ -59,10 +59,9 @@
|
|
|
59
59
|
position: relative;
|
|
60
60
|
background-color: var(--ck-table-of-contents-background-color);
|
|
61
61
|
border: 1px solid var(--ck-table-of-contents-border-color);
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
62
|
+
/* Necessary to render properly next to floated objects, e.g. side image case. */
|
|
63
|
+
display: flow-root;
|
|
64
|
+
min-width: 15em;
|
|
66
65
|
|
|
67
66
|
&[data-table-of-contents-label]::after {
|
|
68
67
|
content: attr(data-table-of-contents-label);
|