@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.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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']);}}
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']);}}
@@ -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 _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');}}
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
- &.table-of-contents_empty {
64
- display: block;
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);