@ckeditor/ckeditor5-template 40.2.0 → 41.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.
Files changed (69) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/build/template.js +3 -3
  4. package/ckeditor5-metadata.json +1 -1
  5. package/lang/translations/ar.po +1 -1
  6. package/lang/translations/bg.po +1 -1
  7. package/lang/translations/bn.po +1 -1
  8. package/lang/translations/ca.po +1 -1
  9. package/lang/translations/cs.po +1 -1
  10. package/lang/translations/da.po +1 -1
  11. package/lang/translations/de.po +1 -1
  12. package/lang/translations/el.po +1 -1
  13. package/lang/translations/en-au.po +1 -1
  14. package/lang/translations/en.po +1 -1
  15. package/lang/translations/es.po +1 -1
  16. package/lang/translations/et.po +1 -1
  17. package/lang/translations/fi.po +1 -1
  18. package/lang/translations/fr.po +1 -1
  19. package/lang/translations/gl.po +1 -1
  20. package/lang/translations/he.po +1 -1
  21. package/lang/translations/hi.po +1 -1
  22. package/lang/translations/hr.po +1 -1
  23. package/lang/translations/hu.po +1 -1
  24. package/lang/translations/id.po +1 -1
  25. package/lang/translations/it.po +1 -1
  26. package/lang/translations/ja.po +1 -1
  27. package/lang/translations/ko.po +1 -1
  28. package/lang/translations/lt.po +1 -1
  29. package/lang/translations/lv.po +1 -1
  30. package/lang/translations/ms.po +1 -1
  31. package/lang/translations/nl.po +1 -1
  32. package/lang/translations/no.po +1 -1
  33. package/lang/translations/pl.po +1 -1
  34. package/lang/translations/pt-br.po +1 -1
  35. package/lang/translations/pt.po +1 -1
  36. package/lang/translations/ro.po +1 -1
  37. package/lang/translations/ru.po +1 -1
  38. package/lang/translations/sk.po +1 -1
  39. package/lang/translations/sr-latn.po +1 -1
  40. package/lang/translations/sr.po +1 -1
  41. package/lang/translations/sv.po +1 -1
  42. package/lang/translations/th.po +1 -1
  43. package/lang/translations/tr.po +1 -1
  44. package/lang/translations/uk.po +1 -1
  45. package/lang/translations/uz.po +1 -1
  46. package/lang/translations/vi.po +1 -1
  47. package/lang/translations/zh-cn.po +1 -1
  48. package/lang/translations/zh.po +1 -1
  49. package/package.json +5 -3
  50. package/src/augmentation.d.ts +2 -2
  51. package/src/augmentation.js +1 -1
  52. package/src/index.d.ts +10 -10
  53. package/src/index.js +2 -2
  54. package/src/template.d.ts +4 -4
  55. package/src/template.js +2 -2
  56. package/src/templatecommand.d.ts +2 -2
  57. package/src/templatecommand.js +2 -2
  58. package/src/templateediting.d.ts +2 -2
  59. package/src/templateediting.js +2 -2
  60. package/src/templateui.d.ts +2 -2
  61. package/src/templateui.js +2 -2
  62. package/src/ui/templatelistbuttonview.d.ts +4 -4
  63. package/src/ui/templatelistbuttonview.js +2 -2
  64. package/src/ui/templatelistitemview.d.ts +4 -4
  65. package/src/ui/templatelistitemview.js +2 -2
  66. package/src/ui/templatelistview.d.ts +2 -2
  67. package/src/ui/templatelistview.js +2 -2
  68. package/theme/template.css +1 -1
  69. package/theme/icons/template.svg +0 -1
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-template",
3
- "version": "40.2.0",
3
+ "version": "41.1.0",
4
4
  "description": "Template feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -19,10 +19,12 @@
19
19
  "contentEditable",
20
20
  "template"
21
21
  ],
22
+ "type": "module",
22
23
  "main": "src/index.js",
23
24
  "dependencies": {
24
- "ckeditor5": "40.2.0",
25
- "@ckeditor/ckeditor5-ui": "40.2.0"
25
+ "ckeditor5": "41.1.0",
26
+ "@ckeditor/ckeditor5-ui": "41.1.0",
27
+ "ckeditor5-collaboration": "41.1.0"
26
28
  },
27
29
  "license": "SEE LICENSE IN LICENSE.md",
28
30
  "author": "CKSource (http://cksource.com/)",
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, 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 type { Template, TemplateCommand, TemplateEditing, TemplateUI, TemplateConfig } from './index';
5
+ import type { Template, TemplateCommand, TemplateEditing, TemplateUI, TemplateConfig } from './index.js';
6
6
  declare module '@ckeditor/ckeditor5-core' {
7
7
  interface PluginsMap {
8
8
  [Template.pluginName]: Template;
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
package/src/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, 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
- export { default as Template } from './template';
6
- export { default as TemplateCommand } from './templatecommand';
7
- export { default as TemplateEditing } from './templateediting';
8
- export { default as TemplateUI } from './templateui';
9
- export type { TemplateConfig, TemplateDefinition } from './template';
10
- export declare const icons: {
11
- templateIcon: string;
12
- };
13
- import './augmentation';
5
+ /**
6
+ * @module template
7
+ */
8
+ export { default as Template } from './template.js';
9
+ export { default as TemplateCommand } from './templatecommand.js';
10
+ export { default as TemplateEditing } from './templateediting.js';
11
+ export { default as TemplateUI } from './templateui.js';
12
+ export type { TemplateConfig, TemplateDefinition } from './template.js';
13
+ import './augmentation.js';
package/src/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, 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 _0x39da67 from'./../theme/icons/template.svg';export{default as Template}from'./template';export{default as TemplateCommand}from'./templatecommand';export{default as TemplateEditing}from'./templateediting';export{default as TemplateUI}from'./templateui';export const icons={'templateIcon':_0x39da67};import'./augmentation';
23
+ export{default as Template}from'./template.js';export{default as TemplateCommand}from'./templatecommand.js';export{default as TemplateEditing}from'./templateediting.js';export{default as TemplateUI}from'./templateui.js';import'./augmentation.js';
package/src/template.d.ts CHANGED
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, 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
5
  /**
6
6
  * @module template/template
7
7
  * @publicApi
8
8
  */
9
- import { Plugin } from 'ckeditor5/src/core';
10
- import TemplateEditing from './templateediting';
11
- import TemplateUI from './templateui';
9
+ import { Plugin } from 'ckeditor5/src/core.js';
10
+ import TemplateEditing from './templateediting.js';
11
+ import TemplateUI from './templateui.js';
12
12
  /**
13
13
  * The template feature.
14
14
  *
package/src/template.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, 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 _0x194b=['pluginName','requires','Template'];(function(_0xb6a160,_0x194bbe){var _0x42dcf2=function(_0x16b9b3){while(--_0x16b9b3){_0xb6a160['push'](_0xb6a160['shift']());}};_0x42dcf2(++_0x194bbe);}(_0x194b,0x93));var _0x42dc=function(_0xb6a160,_0x194bbe){_0xb6a160=_0xb6a160-0x0;var _0x42dcf2=_0x194b[_0xb6a160];return _0x42dcf2;};import{Plugin as _0x52be1b}from'ckeditor5/src/core';import _0x166b7e from'./templateediting';import _0x3c72e3 from'./templateui';export default class o extends _0x52be1b{static get[_0x42dc('0x1')](){return[_0x166b7e,_0x3c72e3];}static get[_0x42dc('0x0')](){return _0x42dc('0x2');}}
23
+ var _0x50ad=['requires','Template'];(function(_0xb6512e,_0x50addd){var _0x3011ad=function(_0x4eca84){while(--_0x4eca84){_0xb6512e['push'](_0xb6512e['shift']());}};_0x3011ad(++_0x50addd);}(_0x50ad,0x93));var _0x3011=function(_0xb6512e,_0x50addd){_0xb6512e=_0xb6512e-0x0;var _0x3011ad=_0x50ad[_0xb6512e];return _0x3011ad;};import{Plugin as _0x5c93ec}from'ckeditor5/src/core.js';import _0x47c41e from'./templateediting.js';import _0x2af505 from'./templateui.js';export default class m extends _0x5c93ec{static get[_0x3011('0x1')](){return[_0x47c41e,_0x2af505];}static get['pluginName'](){return _0x3011('0x0');}}
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, 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
5
  /**
6
6
  * @module template/templatecommand
7
7
  * @publicApi
8
8
  */
9
- import { Command } from 'ckeditor5/src/core';
9
+ import { Command } from 'ckeditor5/src/core.js';
10
10
  /**
11
11
  * The template command.
12
12
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, 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
- const _0x2bee=['string','htmlProcessor','insertContent','execute','function','data','toView','editor','change','toModel'];(function(_0x5cfbf1,_0x2beeed){const _0x114ba8=function(_0x23572f){while(--_0x23572f){_0x5cfbf1['push'](_0x5cfbf1['shift']());}};_0x114ba8(++_0x2beeed);}(_0x2bee,0x1ea));const _0x114b=function(_0x5cfbf1,_0x2beeed){_0x5cfbf1=_0x5cfbf1-0x0;let _0x114ba8=_0x2bee[_0x5cfbf1];return _0x114ba8;};import{Command as _0x496401}from'ckeditor5/src/core';export default class c extends _0x496401{[_0x114b('0x3')](_0x48a868){const {model:_0x17f3a2}=this[_0x114b('0x7')];let _0x53f26d;switch(typeof _0x48a868){case _0x114b('0x0'):_0x53f26d=_0x48a868;break;case _0x114b('0x4'):_0x53f26d=_0x48a868();}_0x114b('0x0')==typeof _0x53f26d&&_0x17f3a2[_0x114b('0x8')](()=>{const _0x4827ec=this['editor'][_0x114b('0x5')][_0x114b('0x1')][_0x114b('0x6')](_0x53f26d),_0x13db66=this[_0x114b('0x7')][_0x114b('0x5')][_0x114b('0x9')](_0x4827ec);_0x17f3a2[_0x114b('0x2')](_0x13db66);});}}
23
+ const _0x21bb=['insertContent','function','toView','string','editor','toModel','data','execute','change','htmlProcessor'];(function(_0x108773,_0x21bb0f){const _0x2562cd=function(_0x1119d3){while(--_0x1119d3){_0x108773['push'](_0x108773['shift']());}};_0x2562cd(++_0x21bb0f);}(_0x21bb,0xa9));const _0x2562=function(_0x108773,_0x21bb0f){_0x108773=_0x108773-0x0;let _0x2562cd=_0x21bb[_0x108773];return _0x2562cd;};import{Command as _0x429a00}from'ckeditor5/src/core.js';export default class c extends _0x429a00{[_0x2562('0x8')](_0x2418c9){const {model:_0x40908e}=this[_0x2562('0x5')];let _0x4ace90;switch(typeof _0x2418c9){case _0x2562('0x4'):_0x4ace90=_0x2418c9;break;case _0x2562('0x2'):_0x4ace90=_0x2418c9();}_0x2562('0x4')==typeof _0x4ace90&&_0x40908e[_0x2562('0x9')](()=>{const _0x475d2a=this[_0x2562('0x5')][_0x2562('0x7')][_0x2562('0x0')][_0x2562('0x3')](_0x4ace90),_0x30c41a=this[_0x2562('0x5')]['data'][_0x2562('0x6')](_0x475d2a);_0x40908e[_0x2562('0x1')](_0x30c41a);});}}
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, 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
5
  /**
6
6
  * @module template/templateediting
7
7
  */
8
- import { Plugin, type Editor } from 'ckeditor5/src/core';
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * The template editing plugin.
11
11
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, 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
- const _0x463c=['config','templateLicenseKeyTrial','commands','insertTemplate','destroy','templateLicenseKeyValid','template-invalid-license-key','_licenseKeyCheckInterval','pluginName','editor','TemplateEditing','templateLicenseKeyTrialLimit:operations','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20template\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','templateLicenseKeyInvalid','get'];(function(_0x27e3d6,_0x463cce){const _0x180894=function(_0x299401){while(--_0x299401){_0x27e3d6['push'](_0x27e3d6['shift']());}};_0x180894(++_0x463cce);}(_0x463c,0x10b));const _0x1808=function(_0x27e3d6,_0x463cce){_0x27e3d6=_0x27e3d6-0x0;let _0x180894=_0x463c[_0x27e3d6];return _0x180894;};import{Plugin as _0xea7302}from'ckeditor5/src/core';import{CKEditorError as _0x51dd4d}from'ckeditor5/src/utils';import _0x1c22f from'./templatecommand';export default class i extends _0xea7302{static get[_0x1808('0xb')](){return _0x1808('0xd');}constructor(_0xf7376c){super(_0xf7376c),this['_licenseKeyCheckInterval']=null;}['init'](){const {editor:_0x1036aa}=this;_0x1036aa[_0x1808('0x5')]['add'](_0x1808('0x6'),new _0x1c22f(_0x1036aa)),this['licenseKey']=_0x1036aa[_0x1808('0x3')][_0x1808('0x2')]('licenseKey');const _0x9fa7a=this[_0x1808('0xc')];this[_0x1808('0xa')]=setInterval(()=>{let _0x547585;for(const _0x486ab6 in _0x9fa7a){const _0x364a43=_0x486ab6,_0x56b338=_0x9fa7a[_0x364a43];if('templateLicenseKeyTrial'===_0x56b338||_0x1808('0x1')===_0x56b338||_0x1808('0x8')===_0x56b338||_0x1808('0xe')===_0x56b338){delete _0x9fa7a[_0x364a43],_0x547585=_0x56b338;break;}}if(_0x1808('0x1')===_0x547585)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x51dd4d(_0x1808('0x9'),null);if(_0x1808('0x4')===_0x547585&&console['info'](_0x1808('0x0')),_0x1808('0xe')===_0x547585)throw clearInterval(this[_0x1808('0xa')]),new _0x51dd4d('template-trial-license-key-reached-limit-changes',null);_0x1808('0x8')===_0x547585&&clearInterval(this[_0x1808('0xa')]);},0x3e8);}[_0x1808('0x7')](){this[_0x1808('0xa')]&&clearInterval(this[_0x1808('0xa')]);}}
23
+ const _0x5756=['templateLicenseKeyValid','templateLicenseKeyInvalid','template-trial-license-key-reached-limit-changes','editor','config','_licenseKeyCheckInterval','pluginName','commands','init','templateLicenseKeyTrial','get','licenseKey','templateLicenseKeyTrialLimit:operations','add','template-invalid-license-key','info'];(function(_0x492ad4,_0x575661){const _0x497e41=function(_0x5e3df4){while(--_0x5e3df4){_0x492ad4['push'](_0x492ad4['shift']());}};_0x497e41(++_0x575661);}(_0x5756,0x197));const _0x497e=function(_0x492ad4,_0x575661){_0x492ad4=_0x492ad4-0x0;let _0x497e41=_0x5756[_0x492ad4];return _0x497e41;};import{Plugin as _0x5e43ae}from'ckeditor5/src/core.js';import{CKEditorError as _0x134a5d}from'ckeditor5/src/utils.js';import _0x278fce from'./templatecommand.js';export default class r extends _0x5e43ae{static get[_0x497e('0xf')](){return'TemplateEditing';}constructor(_0x302f53){super(_0x302f53),this[_0x497e('0xe')]=null;}[_0x497e('0x1')](){const {editor:_0x1b0373}=this;_0x1b0373[_0x497e('0x0')][_0x497e('0x6')]('insertTemplate',new _0x278fce(_0x1b0373)),this[_0x497e('0x4')]=_0x1b0373[_0x497e('0xd')][_0x497e('0x3')]('licenseKey');const _0x25da0e=this[_0x497e('0xc')];this[_0x497e('0xe')]=setInterval(()=>{let _0x533265;for(const _0x2d1a02 in _0x25da0e){const _0x4f8e69=_0x2d1a02,_0x120f96=_0x25da0e[_0x4f8e69];if(_0x497e('0x2')===_0x120f96||_0x497e('0xa')===_0x120f96||_0x497e('0x9')===_0x120f96||_0x497e('0x5')===_0x120f96){delete _0x25da0e[_0x4f8e69],_0x533265=_0x120f96;break;}}if(_0x497e('0xa')===_0x533265)throw clearInterval(this[_0x497e('0xe')]),new _0x134a5d(_0x497e('0x7'),null);if(_0x497e('0x2')===_0x533265&&console[_0x497e('0x8')]('You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20template\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.'),'templateLicenseKeyTrialLimit:operations'===_0x533265)throw clearInterval(this[_0x497e('0xe')]),new _0x134a5d(_0x497e('0xb'),null);_0x497e('0x9')===_0x533265&&clearInterval(this[_0x497e('0xe')]);},0x3e8);}['destroy'](){this[_0x497e('0xe')]&&clearInterval(this[_0x497e('0xe')]);}}
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, 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
5
  /**
6
6
  * @module template/templateui
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  import '../theme/template.css';
10
10
  /**
11
11
  * The UI plugin of the template feature.