@ckeditor/ckeditor5-template 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.
Files changed (115) hide show
  1. package/build/template.js +2 -2
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/bg.js +1 -1
  4. package/build/translations/bn.js +1 -1
  5. package/build/translations/ca.js +1 -1
  6. package/build/translations/cs.js +1 -1
  7. package/build/translations/da.js +1 -1
  8. package/build/translations/de.js +1 -1
  9. package/build/translations/el.js +1 -1
  10. package/build/translations/en-au.js +1 -1
  11. package/build/translations/es.js +1 -1
  12. package/build/translations/et.js +1 -1
  13. package/build/translations/fi.js +1 -1
  14. package/build/translations/fr.js +1 -1
  15. package/build/translations/gl.js +1 -1
  16. package/build/translations/he.js +1 -1
  17. package/build/translations/hi.js +1 -1
  18. package/build/translations/hr.js +1 -1
  19. package/build/translations/hu.js +1 -1
  20. package/build/translations/id.js +1 -1
  21. package/build/translations/it.js +1 -1
  22. package/build/translations/ja.js +1 -1
  23. package/build/translations/ko.js +1 -1
  24. package/build/translations/lt.js +1 -1
  25. package/build/translations/lv.js +1 -1
  26. package/build/translations/ms.js +1 -1
  27. package/build/translations/nl.js +1 -1
  28. package/build/translations/no.js +1 -1
  29. package/build/translations/pl.js +1 -1
  30. package/build/translations/pt-br.js +1 -1
  31. package/build/translations/pt.js +1 -1
  32. package/build/translations/ro.js +1 -1
  33. package/build/translations/ru.js +1 -1
  34. package/build/translations/sk.js +1 -1
  35. package/build/translations/sr.js +1 -1
  36. package/build/translations/sv.js +1 -1
  37. package/build/translations/th.js +1 -1
  38. package/build/translations/tr.js +1 -1
  39. package/build/translations/uk.js +1 -1
  40. package/build/translations/uz.js +1 -1
  41. package/build/translations/vi.js +1 -1
  42. package/build/translations/zh-cn.js +1 -1
  43. package/build/translations/zh.js +1 -1
  44. package/lang/contexts.json +1 -2
  45. package/lang/translations/ar.po +0 -4
  46. package/lang/translations/bg.po +0 -4
  47. package/lang/translations/bn.po +0 -4
  48. package/lang/translations/ca.po +0 -4
  49. package/lang/translations/cs.po +0 -4
  50. package/lang/translations/da.po +0 -4
  51. package/lang/translations/de.po +0 -4
  52. package/lang/translations/el.po +0 -4
  53. package/lang/translations/en-au.po +0 -4
  54. package/lang/translations/en.po +0 -4
  55. package/lang/translations/es.po +0 -4
  56. package/lang/translations/et.po +0 -4
  57. package/lang/translations/fi.po +0 -4
  58. package/lang/translations/fr.po +0 -4
  59. package/lang/translations/gl.po +0 -4
  60. package/lang/translations/he.po +0 -4
  61. package/lang/translations/hi.po +0 -4
  62. package/lang/translations/hr.po +0 -4
  63. package/lang/translations/hu.po +0 -4
  64. package/lang/translations/id.po +0 -4
  65. package/lang/translations/it.po +0 -4
  66. package/lang/translations/ja.po +0 -4
  67. package/lang/translations/ko.po +0 -4
  68. package/lang/translations/lt.po +0 -4
  69. package/lang/translations/lv.po +0 -4
  70. package/lang/translations/ms.po +0 -4
  71. package/lang/translations/nl.po +0 -4
  72. package/lang/translations/no.po +0 -4
  73. package/lang/translations/pl.po +0 -4
  74. package/lang/translations/pt-br.po +0 -4
  75. package/lang/translations/pt.po +0 -4
  76. package/lang/translations/ro.po +0 -4
  77. package/lang/translations/ru.po +0 -4
  78. package/lang/translations/sk.po +0 -4
  79. package/lang/translations/sr.po +0 -4
  80. package/lang/translations/sv.po +0 -4
  81. package/lang/translations/th.po +0 -4
  82. package/lang/translations/tr.po +0 -4
  83. package/lang/translations/uk.po +0 -4
  84. package/lang/translations/uz.po +0 -4
  85. package/lang/translations/vi.po +0 -4
  86. package/lang/translations/zh-cn.po +0 -4
  87. package/lang/translations/zh.po +0 -4
  88. package/package.json +3 -4
  89. package/src/augmentation.d.ts +23 -23
  90. package/src/index.d.ts +13 -13
  91. package/src/index.js +1 -1
  92. package/src/template.d.ts +115 -115
  93. package/src/template.js +1 -1
  94. package/src/templatecommand.d.ts +23 -23
  95. package/src/templatecommand.js +1 -1
  96. package/src/templateediting.d.ts +30 -30
  97. package/src/templateediting.js +1 -1
  98. package/src/templateui.d.ts +29 -29
  99. package/src/templateui.js +1 -1
  100. package/src/ui/templatelistbuttonview.d.ts +104 -104
  101. package/src/ui/templatelistbuttonview.js +1 -1
  102. package/src/ui/templatelistitemview.d.ts +34 -34
  103. package/src/ui/templatelistitemview.js +1 -1
  104. package/src/ui/templatelistview.d.ts +38 -0
  105. package/src/ui/templatelistview.js +23 -0
  106. package/theme/template.css +95 -187
  107. package/build/translations/sq.js +0 -1
  108. package/lang/translations/sq.po +0 -42
  109. package/src/ui/templateforminfoview.d.ts +0 -51
  110. package/src/ui/templateforminfoview.js +0 -23
  111. package/src/ui/templateformsearchfieldview.d.ts +0 -43
  112. package/src/ui/templateformsearchfieldview.js +0 -23
  113. package/src/ui/templateformview.d.ts +0 -110
  114. package/src/ui/templateformview.js +0 -23
  115. package/theme/icons/loupe.svg +0 -1
package/src/template.d.ts CHANGED
@@ -1,115 +1,115 @@
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 template/template
7
- * @publicApi
8
- */
9
- import { Plugin } from 'ckeditor5/src/core';
10
- import TemplateEditing from './templateediting';
11
- import TemplateUI from './templateui';
12
- /**
13
- * The template feature.
14
- *
15
- * For a detailed overview, check the {@glink features/template Content templates} feature guide.
16
- */
17
- export default class Template extends Plugin {
18
- /**
19
- * @inheritDoc
20
- */
21
- static get requires(): readonly [typeof TemplateEditing, typeof TemplateUI];
22
- /**
23
- * @inheritDoc
24
- */
25
- static get pluginName(): "Template";
26
- }
27
- /**
28
- * The configuration of the template feature.
29
- *
30
- * ```ts
31
- * ClassicEditor
32
- * .create( {
33
- * template: ... // Template feature configuration.
34
- * } )
35
- * .then( ... )
36
- * .catch( ... );
37
- *```
38
- * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
39
- */
40
- export interface TemplateConfig {
41
- /**
42
- * A list of all template definitions to be displayed in the `'insertTemplate'` UI dropdown.
43
- *
44
- * An example configuration:
45
- *
46
- * ```json
47
- * {
48
- * template: {
49
- * definitions: [
50
- * {
51
- * title: 'Issue acknowledgement (plain text)',
52
- * data: 'Dear customer, thank you for your report! The issue is currently being worked on by our development team.'
53
- * },
54
- * {
55
- * title: 'Signature (multi-line)',
56
- * data: '<p><b>Jane Doe</b></p><p>Marketing Specialist at <a href="https://example.com>Example.com</a></p>',
57
- * description: 'Author signature with the link to the website.'
58
- * },
59
- * {
60
- * title: 'Example table',
61
- * data: '<table><tr><td>Cell #1</td><td></td></tr><tr><td></td><td>Cell #2</td></tr></table>',
62
- * icon: '<svg viewBox="0 0 45 45" xmlns="http://www.w3.org/2000/svg">...</svg>',
63
- * description: 'This template inserts a table.'
64
- * },
65
- * {
66
- * title: 'Insert userAgent data',
67
- * data: navigator.userAgent
68
- * },
69
- * {
70
- * title: 'Insert translate to English link (function)',
71
- * data: () => '<a href="' + location.href + '/en" title="Translate to English">Translate to English</a>'
72
- * },
73
- * // ...
74
- * ]
75
- * }
76
- * }
77
- * ```
78
- */
79
- definitions?: Array<TemplateDefinition>;
80
- }
81
- /**
82
- * An object describing a single template definition.
83
- *
84
- * ```json
85
- * {
86
- * // Mandatory fields:
87
- * title: 'Example template',
88
- * data: '<table><tr><td>Cell #1</td><td></td></tr><tr><td></td><td>Cell #2</td></tr></table>',
89
- *
90
- * // Optional configuration:
91
- * icon: '<svg viewBox="0 0 45 45" xmlns="http://www.w3.org/2000/svg">...</svg>',
92
- * description: 'This template inserts a table.'
93
- * }
94
- * ```
95
- */
96
- export type TemplateDefinition = {
97
- /**
98
- * The title of the template.
99
- */
100
- title: string;
101
- /**
102
- * An HTML string to be inserted into the document or a callback function that returns an HTML string
103
- * to be inserted into the document when the template is selected.
104
- */
105
- data: () => string | string;
106
- /**
107
- * An optional SVG string representing the icon of the template. The default size of the icon is 45x45 pixels.
108
- * Be sure to set the correct `viewBox` attribute in the icon source. If not provided, a generic icon will be used instead.
109
- */
110
- icon?: string;
111
- /**
112
- * An optional long description of the template presented to the users.
113
- */
114
- description?: string;
115
- };
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 template/template
7
+ * @publicApi
8
+ */
9
+ import { Plugin } from 'ckeditor5/src/core';
10
+ import TemplateEditing from './templateediting';
11
+ import TemplateUI from './templateui';
12
+ /**
13
+ * The template feature.
14
+ *
15
+ * For a detailed overview, check the {@glink features/template Content templates} feature guide.
16
+ */
17
+ export default class Template extends Plugin {
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get requires(): readonly [typeof TemplateEditing, typeof TemplateUI];
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get pluginName(): "Template";
26
+ }
27
+ /**
28
+ * The configuration of the template feature.
29
+ *
30
+ * ```ts
31
+ * ClassicEditor
32
+ * .create( {
33
+ * template: ... // Template feature configuration.
34
+ * } )
35
+ * .then( ... )
36
+ * .catch( ... );
37
+ *```
38
+ * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
39
+ */
40
+ export interface TemplateConfig {
41
+ /**
42
+ * A list of all template definitions to be displayed in the `'insertTemplate'` UI dropdown.
43
+ *
44
+ * An example configuration:
45
+ *
46
+ * ```json
47
+ * {
48
+ * template: {
49
+ * definitions: [
50
+ * {
51
+ * title: 'Issue acknowledgement (plain text)',
52
+ * data: 'Dear customer, thank you for your report! The issue is currently being worked on by our development team.'
53
+ * },
54
+ * {
55
+ * title: 'Signature (multi-line)',
56
+ * data: '<p><b>Jane Doe</b></p><p>Marketing Specialist at <a href="https://example.com>Example.com</a></p>',
57
+ * description: 'Author signature with the link to the website.'
58
+ * },
59
+ * {
60
+ * title: 'Example table',
61
+ * data: '<table><tr><td>Cell #1</td><td></td></tr><tr><td></td><td>Cell #2</td></tr></table>',
62
+ * icon: '<svg viewBox="0 0 45 45" xmlns="http://www.w3.org/2000/svg">...</svg>',
63
+ * description: 'This template inserts a table.'
64
+ * },
65
+ * {
66
+ * title: 'Insert userAgent data',
67
+ * data: navigator.userAgent
68
+ * },
69
+ * {
70
+ * title: 'Insert translate to English link (function)',
71
+ * data: () => '<a href="' + location.href + '/en" title="Translate to English">Translate to English</a>'
72
+ * },
73
+ * // ...
74
+ * ]
75
+ * }
76
+ * }
77
+ * ```
78
+ */
79
+ definitions?: Array<TemplateDefinition>;
80
+ }
81
+ /**
82
+ * An object describing a single template definition.
83
+ *
84
+ * ```json
85
+ * {
86
+ * // Mandatory fields:
87
+ * title: 'Example template',
88
+ * data: '<table><tr><td>Cell #1</td><td></td></tr><tr><td></td><td>Cell #2</td></tr></table>',
89
+ *
90
+ * // Optional configuration:
91
+ * icon: '<svg viewBox="0 0 45 45" xmlns="http://www.w3.org/2000/svg">...</svg>',
92
+ * description: 'This template inserts a table.'
93
+ * }
94
+ * ```
95
+ */
96
+ export type TemplateDefinition = {
97
+ /**
98
+ * The title of the template.
99
+ */
100
+ title: string;
101
+ /**
102
+ * An HTML string to be inserted into the document or a callback function that returns an HTML string
103
+ * to be inserted into the document when the template is selected.
104
+ */
105
+ data: () => string | string;
106
+ /**
107
+ * An optional SVG string representing the icon of the template. The default size of the icon is 45x45 pixels.
108
+ * Be sure to set the correct `viewBox` attribute in the icon source. If not provided, a generic icon will be used instead.
109
+ */
110
+ icon?: string;
111
+ /**
112
+ * An optional long description of the template presented to the users.
113
+ */
114
+ description?: string;
115
+ };
package/src/template.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x694e=['requires','Template','pluginName'];(function(_0x560268,_0x694eae){var _0x3b2ffa=function(_0x13cb26){while(--_0x13cb26){_0x560268['push'](_0x560268['shift']());}};_0x3b2ffa(++_0x694eae);}(_0x694e,0x1cd));var _0x3b2f=function(_0x560268,_0x694eae){_0x560268=_0x560268-0x0;var _0x3b2ffa=_0x694e[_0x560268];return _0x3b2ffa;};import{Plugin as _0x313c4b}from'ckeditor5/src/core';import _0x3fb05e from'./templateediting';import _0x4e7859 from'./templateui';export default class o extends _0x313c4b{static get[_0x3b2f('0x1')](){return[_0x3fb05e,_0x4e7859];}static get[_0x3b2f('0x0')](){return _0x3b2f('0x2');}}
23
+ var _0x4a65=['requires'];(function(_0xe4c03b,_0x4a6589){var _0x34132f=function(_0x29b786){while(--_0x29b786){_0xe4c03b['push'](_0xe4c03b['shift']());}};_0x34132f(++_0x4a6589);}(_0x4a65,0xa0));var _0x3413=function(_0xe4c03b,_0x4a6589){_0xe4c03b=_0xe4c03b-0x0;var _0x34132f=_0x4a65[_0xe4c03b];return _0x34132f;};import{Plugin as _0x293c35}from'ckeditor5/src/core';import _0x5d5ad1 from'./templateediting';import _0x12c507 from'./templateui';export default class o extends _0x293c35{static get[_0x3413('0x0')](){return[_0x5d5ad1,_0x12c507];}static get['pluginName'](){return'Template';}}
@@ -1,23 +1,23 @@
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 template/templatecommand
7
- * @publicApi
8
- */
9
- import { Command } from 'ckeditor5/src/core';
10
- /**
11
- * The template command.
12
- *
13
- * Inserts a template into the editor content.
14
- */
15
- export default class TemplateCommand extends Command {
16
- /**
17
- * Inserts the template data at the position of the selection.
18
- *
19
- * @fires execute
20
- * @param templateData Template data should be a raw HTML string or a function that returns one.
21
- */
22
- execute(templateData: string | Function): void;
23
- }
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 template/templatecommand
7
+ * @publicApi
8
+ */
9
+ import { Command } from 'ckeditor5/src/core';
10
+ /**
11
+ * The template command.
12
+ *
13
+ * Inserts a template into the editor content.
14
+ */
15
+ export default class TemplateCommand extends Command {
16
+ /**
17
+ * Inserts the template data at the position of the selection.
18
+ *
19
+ * @fires execute
20
+ * @param templateData Template data should be a raw HTML string or a function that returns one.
21
+ */
22
+ execute(templateData: string | Function): void;
23
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x236d=['toView','htmlProcessor','change','editor','function','execute','toModel','data'];(function(_0x47c223,_0x236dcc){const _0x58728e=function(_0x5aa50e){while(--_0x5aa50e){_0x47c223['push'](_0x47c223['shift']());}};_0x58728e(++_0x236dcc);}(_0x236d,0x191));const _0x5872=function(_0x47c223,_0x236dcc){_0x47c223=_0x47c223-0x0;let _0x58728e=_0x236d[_0x47c223];return _0x58728e;};import{Command as _0x218968}from'ckeditor5/src/core';export default class c extends _0x218968{[_0x5872('0x4')](_0x1cd9aa){const {model:_0x846b23}=this['editor'];let _0x39d662;switch(typeof _0x1cd9aa){case'string':_0x39d662=_0x1cd9aa;break;case _0x5872('0x3'):_0x39d662=_0x1cd9aa();}'string'==typeof _0x39d662&&_0x846b23[_0x5872('0x1')](()=>{const _0x1ef3e9=this[_0x5872('0x2')][_0x5872('0x6')][_0x5872('0x0')][_0x5872('0x7')](_0x39d662),_0x5a5cf2=this[_0x5872('0x2')][_0x5872('0x6')][_0x5872('0x5')](_0x1ef3e9);_0x846b23['insertContent'](_0x5a5cf2);});}}
23
+ const _0x5abc=['htmlProcessor','toModel','function','insertContent','editor','string','change','data','toView'];(function(_0x38e5ef,_0x5abcea){const _0x19d4d3=function(_0x45fabb){while(--_0x45fabb){_0x38e5ef['push'](_0x38e5ef['shift']());}};_0x19d4d3(++_0x5abcea);}(_0x5abc,0x153));const _0x19d4=function(_0x38e5ef,_0x5abcea){_0x38e5ef=_0x38e5ef-0x0;let _0x19d4d3=_0x5abc[_0x38e5ef];return _0x19d4d3;};import{Command as _0x11ce19}from'ckeditor5/src/core';export default class c extends _0x11ce19{['execute'](_0x44e6e7){const {model:_0x2c19e0}=this['editor'];let _0x468ad;switch(typeof _0x44e6e7){case _0x19d4('0x8'):_0x468ad=_0x44e6e7;break;case _0x19d4('0x5'):_0x468ad=_0x44e6e7();}_0x19d4('0x8')==typeof _0x468ad&&_0x2c19e0[_0x19d4('0x0')](()=>{const _0x3dc5ab=this[_0x19d4('0x7')][_0x19d4('0x1')][_0x19d4('0x3')][_0x19d4('0x2')](_0x468ad),_0x305cd1=this[_0x19d4('0x7')][_0x19d4('0x1')][_0x19d4('0x4')](_0x3dc5ab);_0x2c19e0[_0x19d4('0x6')](_0x305cd1);});}}
@@ -1,30 +1,30 @@
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 template/templateediting
7
- */
8
- import { Plugin, type Editor } from 'ckeditor5/src/core';
9
- /**
10
- * The template editing plugin.
11
- */
12
- export default class TemplateEditing extends Plugin {
13
- licenseKey: string;
14
- /**
15
- * @inheritDoc
16
- */
17
- static get pluginName(): "TemplateEditing";
18
- /**
19
- * @inheritDoc
20
- */
21
- constructor(editor: Editor);
22
- /**
23
- * @inheritDoc
24
- */
25
- init(): void;
26
- /**
27
- * @inheritDoc
28
- */
29
- destroy(): void;
30
- }
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 template/templateediting
7
+ */
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core';
9
+ /**
10
+ * The template editing plugin.
11
+ */
12
+ export default class TemplateEditing extends Plugin {
13
+ licenseKey: string;
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ static get pluginName(): "TemplateEditing";
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ constructor(editor: Editor);
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ init(): void;
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ destroy(): void;
30
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd02b=['_licenseKeyCheckInterval','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','get','editor','add','templateLicenseKeyInvalid','licenseKey','info','template-trial-license-key-reached-limit-changes','init','config','templateLicenseKeyTrial','template-invalid-license-key','destroy','pluginName'];(function(_0x1221fd,_0xd02bdf){const _0x346407=function(_0x4f6f0a){while(--_0x4f6f0a){_0x1221fd['push'](_0x1221fd['shift']());}};_0x346407(++_0xd02bdf);}(_0xd02b,0xb0));const _0x3464=function(_0x1221fd,_0xd02bdf){_0x1221fd=_0x1221fd-0x0;let _0x346407=_0xd02b[_0x1221fd];return _0x346407;};import{Plugin as _0x3a32c9}from'ckeditor5/src/core';import{CKEditorError as _0x38fcfa}from'ckeditor5/src/utils';import _0x179c96 from'./templatecommand';export default class i extends _0x3a32c9{static get[_0x3464('0xf')](){return'TemplateEditing';}constructor(_0x1e3e17){super(_0x1e3e17),this['_licenseKeyCheckInterval']=null;}[_0x3464('0xa')](){const {editor:_0x42d94c}=this;_0x42d94c['commands'][_0x3464('0x5')]('insertTemplate',new _0x179c96(_0x42d94c)),this[_0x3464('0x7')]=_0x42d94c[_0x3464('0xb')][_0x3464('0x3')]('licenseKey');const _0x2adcc4=this[_0x3464('0x4')];this[_0x3464('0x0')]=setInterval(()=>{let _0x53e7a3;for(const _0x30795a in _0x2adcc4){const _0x79944b=_0x30795a,_0x30846f=_0x2adcc4[_0x79944b];if(_0x3464('0xc')===_0x30846f||_0x3464('0x6')===_0x30846f||'templateLicenseKeyValid'===_0x30846f||'templateLicenseKeyTrialLimit:operations'===_0x30846f){delete _0x2adcc4[_0x79944b],_0x53e7a3=_0x30846f;break;}}if(_0x3464('0x6')===_0x53e7a3)throw clearInterval(this[_0x3464('0x0')]),new _0x38fcfa(_0x3464('0xd'),null);if(_0x3464('0xc')===_0x53e7a3&&console[_0x3464('0x8')](_0x3464('0x1')),_0x3464('0x2')===_0x53e7a3)throw clearInterval(this[_0x3464('0x0')]),new _0x38fcfa(_0x3464('0x9'),null);'templateLicenseKeyValid'===_0x53e7a3&&clearInterval(this[_0x3464('0x0')]);},0x3e8);}[_0x3464('0xe')](){this[_0x3464('0x0')]&&clearInterval(this[_0x3464('0x0')]);}}
23
+ const _0x220a=['licenseKey','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.','get','template-invalid-license-key','add','init','templateLicenseKeyTrial','commands','templateLicenseKeyValid','TemplateEditing','destroy','info','insertTemplate','_licenseKeyCheckInterval','templateLicenseKeyTrialLimit:operations','editor'];(function(_0x56efe1,_0x220a07){const _0x53c3f9=function(_0xf21d09){while(--_0xf21d09){_0x56efe1['push'](_0x56efe1['shift']());}};_0x53c3f9(++_0x220a07);}(_0x220a,0x1d1));const _0x53c3=function(_0x56efe1,_0x220a07){_0x56efe1=_0x56efe1-0x0;let _0x53c3f9=_0x220a[_0x56efe1];return _0x53c3f9;};import{Plugin as _0xce8308}from'ckeditor5/src/core';import{CKEditorError as _0x985e1b}from'ckeditor5/src/utils';import _0x44b47a from'./templatecommand';export default class i extends _0xce8308{static get['pluginName'](){return _0x53c3('0x8');}constructor(_0x34ce13){super(_0x34ce13),this[_0x53c3('0xc')]=null;}[_0x53c3('0x4')](){const {editor:_0x5b8c76}=this;_0x5b8c76[_0x53c3('0x6')][_0x53c3('0x3')](_0x53c3('0xb'),new _0x44b47a(_0x5b8c76)),this[_0x53c3('0xf')]=_0x5b8c76['config'][_0x53c3('0x1')](_0x53c3('0xf'));const _0x3e50c7=this[_0x53c3('0xe')];this[_0x53c3('0xc')]=setInterval(()=>{let _0x5d2a74;for(const _0x20b8ff in _0x3e50c7){const _0x32d5f7=_0x20b8ff,_0x542ca3=_0x3e50c7[_0x32d5f7];if(_0x53c3('0x5')===_0x542ca3||'templateLicenseKeyInvalid'===_0x542ca3||_0x53c3('0x7')===_0x542ca3||'templateLicenseKeyTrialLimit:operations'===_0x542ca3){delete _0x3e50c7[_0x32d5f7],_0x5d2a74=_0x542ca3;break;}}if('templateLicenseKeyInvalid'===_0x5d2a74)throw clearInterval(this[_0x53c3('0xc')]),new _0x985e1b(_0x53c3('0x2'),null);if(_0x53c3('0x5')===_0x5d2a74&&console[_0x53c3('0xa')](_0x53c3('0x0')),_0x53c3('0xd')===_0x5d2a74)throw clearInterval(this[_0x53c3('0xc')]),new _0x985e1b('template-trial-license-key-reached-limit-changes',null);_0x53c3('0x7')===_0x5d2a74&&clearInterval(this[_0x53c3('0xc')]);},0x3e8);}[_0x53c3('0x9')](){this[_0x53c3('0xc')]&&clearInterval(this['_licenseKeyCheckInterval']);}}
@@ -1,29 +1,29 @@
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 template/templateui
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import '../theme/template.css';
10
- /**
11
- * The UI plugin of the template feature.
12
- *
13
- * It registers the `'insertTemplate'` UI dropdown in the editor's {@link module:ui/componentfactory~ComponentFactory component factory}
14
- * that displays a list of templates and allows to insert them into the editor content.
15
- */
16
- export default class TemplateUI extends Plugin {
17
- /**
18
- * @inheritDoc
19
- */
20
- static get pluginName(): "TemplateUI";
21
- /**
22
- * @inheritDoc
23
- */
24
- init(): void;
25
- /**
26
- * @inheritDoc
27
- */
28
- afterInit(): void;
29
- }
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 template/templateui
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import '../theme/template.css';
10
+ /**
11
+ * The UI plugin of the template feature.
12
+ *
13
+ * It registers the `'insertTemplate'` UI dropdown in the editor's {@link module:ui/componentfactory~ComponentFactory component factory}
14
+ * that displays a list of templates and allows to insert them into the editor content.
15
+ */
16
+ export default class TemplateUI extends Plugin {
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ static get pluginName(): "TemplateUI";
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ init(): void;
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ afterInit(): void;
29
+ }