@ckeditor/ckeditor5-document-outline 38.2.0-alpha.1 → 39.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/README.md +0 -1
- package/build/document-outline.js +1 -1
- package/build/translations/gl.js +1 -0
- package/build/translations/ug.js +1 -0
- package/lang/translations/gl.po +33 -0
- package/lang/translations/ug.po +33 -0
- package/package.json +4 -5
- package/src/augmentation.d.ts +1 -1
- package/src/augmentation.js +1 -1
- package/src/documentoutline/documentoutlineui.d.ts +2 -2
- package/src/documentoutline/documentoutlineui.js +2 -2
- package/src/documentoutline/documentoutlineutils.d.ts +3 -3
- package/src/documentoutline/documentoutlineutils.js +2 -2
- package/src/documentoutline/ui/documentoutlineitemview.d.ts +2 -6
- package/src/documentoutline/ui/documentoutlineitemview.js +2 -2
- package/src/documentoutline/ui/documentoutlineview.d.ts +14 -6
- package/src/documentoutline/ui/documentoutlineview.js +2 -2
- package/src/documentoutline/utils.d.ts +2 -2
- package/src/documentoutline/utils.js +2 -2
- package/src/documentoutline.d.ts +3 -3
- package/src/documentoutline.js +2 -2
- package/src/index.d.ts +9 -9
- package/src/index.js +2 -2
- package/src/tableofcontents/headingid.d.ts +1 -1
- package/src/tableofcontents/headingid.js +2 -2
- package/src/tableofcontents/tableofcontentscommand.d.ts +1 -1
- package/src/tableofcontents/tableofcontentscommand.js +2 -2
- package/src/tableofcontents/tableofcontentsediting.d.ts +4 -4
- package/src/tableofcontents/tableofcontentsediting.js +2 -2
- package/src/tableofcontents/tableofcontentsui.d.ts +1 -1
- package/src/tableofcontents/tableofcontentsui.js +2 -2
- package/src/tableofcontents.d.ts +3 -3
- package/src/tableofcontents.js +2 -2
- package/build/document-outline.js.map +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core
|
|
5
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
6
6
|
/**
|
|
7
7
|
* The UI plugin of the table of contents feature.
|
|
8
8
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x1f21d6}from'ckeditor5/src/ui';import{CKEditorError as _0x5cab1d}from'ckeditor5/src/utils';import{Plugin as _0xabf133}from'ckeditor5/src/core';import _0x2e117e from'../../theme/icons/table-of-contents.svg';export default class s extends _0xabf133{static get['pluginName'](){return'TableOfContentsUI';}constructor(_0x2f30a4){super(_0x2f30a4),this['_licenseKeyCheckInterval']=null;}['init'](){const _0x1e5a6c=this['editor'],t=_0x1e5a6c['t'];_0x1e5a6c['ui']['componentFactory']['add']('tableOfContents',_0x53d4f9=>{const _0xd06631=_0x1e5a6c['commands']['get']('insertTableOfContents'),_0x56ba46=new _0x1f21d6(_0x53d4f9);return _0x56ba46['set']({'label':t('Table\x20of\x20contents'),'icon':_0x2e117e,'tooltip':!0x0}),_0x56ba46['bind']('isEnabled')['to'](_0xd06631,'isEnabled'),this['listenTo'](_0x56ba46,'execute',()=>{_0x1e5a6c['execute']('insertTableOfContents'),_0x1e5a6c['editing']['view']['focus']();}),_0x56ba46;}),this['licenseKey']=_0x1e5a6c['config']['get']('licenseKey');const _0x460783=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x427531;for(const _0x5a04fc in _0x460783){const _0x38a316=_0x5a04fc,_0x1845ea=_0x460783[_0x38a316];if('tableOfContentsLicenseKeyTrial'===_0x1845ea||'tableOfContentsLicenseKeyInvalid'===_0x1845ea||'tableOfContentsLicenseKeyValid'===_0x1845ea||'tableOfContentsLicenseKeyTrialLimit:operations'===_0x1845ea){delete _0x460783[_0x38a316],_0x427531=_0x1845ea;break;}}if('tableOfContentsLicenseKeyInvalid'===_0x427531)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x5cab1d('table-of-contents-invalid-license-key',null);if('tableOfContentsLicenseKeyTrial'===_0x427531&&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'===_0x427531)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x5cab1d('table-of-contents-trial-license-key-reached-limit-changes',null);'tableOfContentsLicenseKeyValid'===_0x427531&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}
|
package/src/tableofcontents.d.ts
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* @module document-outline/tableofcontents
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
10
|
-
import TableOfContentsEditing from './tableofcontents/tableofcontentsediting
|
|
11
|
-
import TableOfContentsUI from './tableofcontents/tableofcontentsui
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
10
|
+
import TableOfContentsEditing from './tableofcontents/tableofcontentsediting';
|
|
11
|
+
import TableOfContentsUI from './tableofcontents/tableofcontentsui';
|
|
12
12
|
/**
|
|
13
13
|
* The table of contents feature.
|
|
14
14
|
*
|
package/src/tableofcontents.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1c1e=['TableOfContents','requires','pluginName'];(function(_0x1ab51e,_0x1c1e03){var _0xa0887d=function(_0x1d4bd0){while(--_0x1d4bd0){_0x1ab51e['push'](_0x1ab51e['shift']());}};_0xa0887d(++_0x1c1e03);}(_0x1c1e,0xd4));var _0xa088=function(_0x1ab51e,_0x1c1e03){_0x1ab51e=_0x1ab51e-0x0;var _0xa0887d=_0x1c1e[_0x1ab51e];return _0xa0887d;};import{Plugin as _0x50a256}from'ckeditor5/src/core';import _0xa1f258 from'./tableofcontents/tableofcontentsediting';import _0xa59714 from'./tableofcontents/tableofcontentsui';export default class c extends _0x50a256{static get[_0xa088('0x2')](){return[_0xa1f258,_0xa59714];}static get[_0xa088('0x0')](){return _0xa088('0x1');}}
|