@ckeditor/ckeditor5-slash-command 41.2.1 → 41.3.0-alpha.2

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 (105) hide show
  1. package/build/slash-command.js +1 -1
  2. package/dist/content-index.css +332 -0
  3. package/dist/editor-index.css +363 -0
  4. package/dist/index.css +1032 -0
  5. package/dist/translations/ar.d.ts +8 -0
  6. package/dist/translations/ar.js +23 -0
  7. package/dist/translations/bg.d.ts +8 -0
  8. package/dist/translations/bg.js +23 -0
  9. package/dist/translations/bn.d.ts +8 -0
  10. package/dist/translations/bn.js +23 -0
  11. package/dist/translations/ca.d.ts +8 -0
  12. package/dist/translations/ca.js +23 -0
  13. package/dist/translations/cs.d.ts +8 -0
  14. package/dist/translations/cs.js +23 -0
  15. package/dist/translations/da.d.ts +8 -0
  16. package/dist/translations/da.js +23 -0
  17. package/dist/translations/de.d.ts +8 -0
  18. package/dist/translations/de.js +23 -0
  19. package/dist/translations/el.d.ts +8 -0
  20. package/dist/translations/el.js +23 -0
  21. package/dist/translations/en-au.d.ts +8 -0
  22. package/dist/translations/en-au.js +23 -0
  23. package/dist/translations/en.d.ts +8 -0
  24. package/dist/translations/en.js +23 -0
  25. package/dist/translations/es.d.ts +8 -0
  26. package/dist/translations/es.js +23 -0
  27. package/dist/translations/et.d.ts +8 -0
  28. package/dist/translations/et.js +23 -0
  29. package/dist/translations/fi.d.ts +8 -0
  30. package/dist/translations/fi.js +23 -0
  31. package/dist/translations/fr.d.ts +8 -0
  32. package/dist/translations/fr.js +23 -0
  33. package/dist/translations/gl.d.ts +8 -0
  34. package/dist/translations/gl.js +23 -0
  35. package/dist/translations/he.d.ts +8 -0
  36. package/dist/translations/he.js +23 -0
  37. package/dist/translations/hi.d.ts +8 -0
  38. package/dist/translations/hi.js +23 -0
  39. package/dist/translations/hr.d.ts +8 -0
  40. package/dist/translations/hr.js +23 -0
  41. package/dist/translations/hu.d.ts +8 -0
  42. package/dist/translations/hu.js +23 -0
  43. package/dist/translations/id.d.ts +8 -0
  44. package/dist/translations/id.js +23 -0
  45. package/dist/translations/it.d.ts +8 -0
  46. package/dist/translations/it.js +23 -0
  47. package/dist/translations/ja.d.ts +8 -0
  48. package/dist/translations/ja.js +23 -0
  49. package/dist/translations/ko.d.ts +8 -0
  50. package/dist/translations/ko.js +23 -0
  51. package/dist/translations/lt.d.ts +8 -0
  52. package/dist/translations/lt.js +23 -0
  53. package/dist/translations/lv.d.ts +8 -0
  54. package/dist/translations/lv.js +23 -0
  55. package/dist/translations/ms.d.ts +8 -0
  56. package/dist/translations/ms.js +23 -0
  57. package/dist/translations/nl.d.ts +8 -0
  58. package/dist/translations/nl.js +23 -0
  59. package/dist/translations/no.d.ts +8 -0
  60. package/dist/translations/no.js +23 -0
  61. package/dist/translations/pl.d.ts +8 -0
  62. package/dist/translations/pl.js +23 -0
  63. package/dist/translations/pt-br.d.ts +8 -0
  64. package/dist/translations/pt-br.js +23 -0
  65. package/dist/translations/pt.d.ts +8 -0
  66. package/dist/translations/pt.js +23 -0
  67. package/dist/translations/ro.d.ts +8 -0
  68. package/dist/translations/ro.js +23 -0
  69. package/dist/translations/ru.d.ts +8 -0
  70. package/dist/translations/ru.js +23 -0
  71. package/dist/translations/sk.d.ts +8 -0
  72. package/dist/translations/sk.js +23 -0
  73. package/dist/translations/sr.d.ts +8 -0
  74. package/dist/translations/sr.js +23 -0
  75. package/dist/translations/sv.d.ts +8 -0
  76. package/dist/translations/sv.js +23 -0
  77. package/dist/translations/th.d.ts +8 -0
  78. package/dist/translations/th.js +23 -0
  79. package/dist/translations/tr.d.ts +8 -0
  80. package/dist/translations/tr.js +23 -0
  81. package/dist/translations/uk.d.ts +8 -0
  82. package/dist/translations/uk.js +23 -0
  83. package/dist/translations/uz.d.ts +8 -0
  84. package/dist/translations/uz.js +23 -0
  85. package/dist/translations/vi.d.ts +8 -0
  86. package/dist/translations/vi.js +23 -0
  87. package/dist/translations/zh-cn.d.ts +8 -0
  88. package/dist/translations/zh-cn.js +23 -0
  89. package/dist/translations/zh.d.ts +8 -0
  90. package/dist/translations/zh.js +23 -0
  91. package/dist/types/augmentation.d.ts +25 -0
  92. package/dist/types/index.d.ts +17 -0
  93. package/dist/types/slashcommand.d.ts +33 -0
  94. package/dist/types/slashcommandconfig.d.ts +246 -0
  95. package/dist/types/slashcommandediting.d.ts +45 -0
  96. package/dist/types/slashcommandeditorconfig.d.ts +100 -0
  97. package/dist/types/slashcommandui.d.ts +37 -0
  98. package/dist/types/ui/slashcommandbuttonview.d.ts +35 -0
  99. package/package.json +5 -4
  100. package/src/index.js +1 -1
  101. package/src/slashcommand.js +1 -1
  102. package/src/slashcommandconfig.js +1 -1
  103. package/src/slashcommandediting.js +1 -1
  104. package/src/slashcommandui.js +1 -1
  105. package/src/ui/slashcommandbuttonview.js +1 -1
@@ -0,0 +1,246 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module slash-command/slashcommandconfig
11
+ * @publicApi
12
+ */
13
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
14
+ import './slashcommandeditorconfig.js';
15
+ /**
16
+ * This plugin takes care of the configuration for {@link module:slash-command/slashcommand~SlashCommand}:
17
+ *
18
+ * * It manages the configuration of slash commands in the editor.
19
+ * * It provides default slash commands for common editor features.
20
+ * * It allows defining extra commands and reducing the list of defaults using the editor configuration.
21
+ * See {@link module:slash-command/slashcommandconfig~SlashCommandConfig} to learn more.
22
+ *
23
+ * @extends module:core/plugin~Plugin
24
+ */
25
+ export default class SlashCommandConfig extends Plugin {
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ static get pluginName(): "SlashCommandConfig";
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ constructor(editor: Editor);
34
+ /**
35
+ * @inheritDoc
36
+ */
37
+ afterInit(): void;
38
+ /**
39
+ * Returns an array of slash command definitions enabled in the editor.
40
+ *
41
+ * This method takes into account the following:
42
+ * * The {@link module:slash-command/slashcommandconfig~SlashCommandConfig#getDefaultCommands list of default commands}.
43
+ * * The presence of {@link module:core/editor/editorconfig~EditorConfig#plugins editor features} (plugins).
44
+ * * The {@link module:slash-command/slashcommandeditorconfig~SlashCommandEditorConfig#removeCommands} configuration.
45
+ * * The {@link module:slash-command/slashcommandeditorconfig~SlashCommandEditorConfig#extraCommands} configuration.
46
+ */
47
+ getAllowedCommands(): Array<SlashCommandDefinition>;
48
+ /**
49
+ * Returns a list of default slash command {@link module:slash-command/slashcommandconfig~SlashCommandDefinition definitions}
50
+ * for common editor features. The available definitions are as follows:
51
+ *
52
+ * ```js
53
+ * [
54
+ * {
55
+ * id: 'blockQuote',
56
+ * commandName: 'blockQuote',
57
+ * title: t( 'Block quote' ),
58
+ * // ...
59
+ * },
60
+ * {
61
+ * id: 'bulletedList',
62
+ * commandName: 'bulletedList',
63
+ * title: t( 'Bulleted list' ),
64
+ * // ...
65
+ * },
66
+ * {
67
+ * id: 'codeBlock',
68
+ * commandName: 'codeBlock',
69
+ * title: t( 'Insert code block' ),
70
+ * // ...
71
+ * },
72
+ * {
73
+ * id: 'ckbox',
74
+ * commandName: 'ckbox',
75
+ * title: t( 'Open file manager' ),
76
+ * // ...
77
+ * },
78
+ * {
79
+ * id: 'ckfinder',
80
+ * commandName: 'ckfinder',
81
+ * title: t( 'Insert image' ),
82
+ * // ...
83
+ * },
84
+ * {
85
+ * id: 'heading1',
86
+ * commandName: 'heading',
87
+ * title: t( 'Heading 1' ),
88
+ * // ...
89
+ * },
90
+ * {
91
+ * id: 'heading2',
92
+ * commandName: 'heading',
93
+ * title: t( 'Heading 2' ),
94
+ * // ...
95
+ * },
96
+ * {
97
+ * id: 'heading3',
98
+ * commandName: 'heading',
99
+ * title: t( 'Heading 3' ),
100
+ * // ...
101
+ * },
102
+ * {
103
+ * id: 'heading4',
104
+ * commandName: 'heading',
105
+ * title: t( 'Heading 4' ),
106
+ * // ...
107
+ * },
108
+ * {
109
+ * id: 'heading5',
110
+ * commandName: 'heading',
111
+ * title: t( 'Heading 5' ),
112
+ * // ...
113
+ * },
114
+ * {
115
+ * id: 'heading6',
116
+ * commandName: 'heading',
117
+ * title: t( 'Heading 6' ),
118
+ * // ...
119
+ * },
120
+ * {
121
+ * id: 'horizontalLine',
122
+ * commandName: 'horizontalLine',
123
+ * title: t( 'Horizontal line' ),
124
+ * // ...
125
+ * },
126
+ * {
127
+ * id: 'htmlEmbed',
128
+ * commandName: 'htmlEmbed',
129
+ * title: t( 'Insert HTML' ),
130
+ * // ...
131
+ * },
132
+ * {
133
+ * id: 'indent',
134
+ * commandName: 'indent',
135
+ * title: t( 'Increase indent' ),
136
+ * // ...
137
+ * },
138
+ * {
139
+ * id: 'insertMermaidCommand',
140
+ * commandName: 'insertMermaidCommand',
141
+ * title: t( 'Insert Mermaid diagram' ),
142
+ * // ...
143
+ * },
144
+ * {
145
+ * id: 'insertTable',
146
+ * commandName: 'insertTable',
147
+ * title: t( 'Insert table' ),
148
+ * // ...
149
+ * },
150
+ * {
151
+ * id: 'insertTableOfContents',
152
+ * commandName: 'insertTableOfContents',
153
+ * title: t( 'Table of contents' ),
154
+ * // ...
155
+ * },
156
+ * {
157
+ * id: 'numberedList',
158
+ * commandName: 'numberedList',
159
+ * title: t( 'Numbered list' ),
160
+ * // ...
161
+ * },
162
+ * {
163
+ * id: 'outdent',
164
+ * commandName: 'outdent',
165
+ * title: t( 'Decrease indent' ),
166
+ * // ...
167
+ * },
168
+ * {
169
+ * id: 'paragraph',
170
+ * commandName: 'paragraph',
171
+ * title: t( 'Paragraph' ),
172
+ * // ...
173
+ * },
174
+ * {
175
+ * id: 'todoList',
176
+ * commandName: 'todoList',
177
+ * title: t( 'To-do list' ),
178
+ * // ...
179
+ * }
180
+ * ]
181
+ */
182
+ getDefaultCommands(): Array<SlashCommandDefinition>;
183
+ }
184
+ /**
185
+ * An object describing a single command definition in the configuration.
186
+ */
187
+ export interface SlashCommandDefinition {
188
+ /**
189
+ * A unique ID matched with the text that follows the slash ("/") character typed by the user,
190
+ * e.g. 'blockQuote', 'heading1'. See {@link module:slash-command/slashcommandconfig~SlashCommandDefinition#aliases}
191
+ * to learn about slash command aliases that provide a similar functionality.
192
+ */
193
+ id: string;
194
+ /**
195
+ * The name of the command to be executed if the `execute` property was not provided,
196
+ * for example, 'blockQuote', 'heading'. See {@link module:core/editor/editor~Editor#commands} to learn more about available commands.
197
+ */
198
+ commandName?: string;
199
+ /**
200
+ * A meaningful title for the command displayed in a dropdown list of possible commands. It can be a string
201
+ * or a callback function returning a string.
202
+ */
203
+ title: Function | string;
204
+ /**
205
+ * An optional description for the command. Useful when the title is not descriptive enough.
206
+ */
207
+ description?: string;
208
+ /**
209
+ * An SVG string representing the icon of the command. If not provided, a generic icon will be used instead.
210
+ * The default size of the icon is 20x20 pixels. Be sure to set the correct `viewBox` attribute in the icon source.
211
+ *
212
+ * See {@link module:slash-command/slashcommandconfig~SlashCommandDefinition#isIconColorInherited}.
213
+ */
214
+ icon?: string;
215
+ /**
216
+ * By default, slash command icons are monochromatic and inherit the color of the text in the editor UI.
217
+ * Setting this property to `false` disables this inheritance and allows the use of complex (colorful) icons.
218
+ *
219
+ * Learn more in {@link module:ui/icon/iconview~IconView#isColorInherited}.
220
+ */
221
+ isIconColorInherited?: boolean;
222
+ /**
223
+ * An optional list of aliases (extending the base
224
+ * {@link module:slash-command/slashcommandconfig~SlashCommandDefinition#id}) to be used when filtering the list of slash commands
225
+ * based on the text that follows the slash ("/") character.
226
+ */
227
+ aliases?: Array<string>;
228
+ /**
229
+ * A callback function defining custom logic to decide if the command should be displayed
230
+ * in the dropdown list. If not provided, the default command's {@link module:core/command~Command#isEnabled} property is used instead.
231
+ * If it's also unavailable, it falls back to `true`. This property is checked when a user types the slash ("/") character
232
+ * or changes the text that follows it.
233
+ *
234
+ * This callback gets an {@link module:core/editor/editor~Editor} instance as a parameter.
235
+ */
236
+ isEnabled?: Function;
237
+ /**
238
+ * A callback function defining custom logic for executing the command. If not provided, the default
239
+ * command's {@link module:core/command~Command#execute} is used instead. Custom logic is useful especially when the slash command
240
+ * requires some arguments (acts like a wrapper) or combines some complex logic. This property is obligatory if
241
+ * {@link module:slash-command/slashcommandconfig~SlashCommandDefinition#commandName} was not passed.
242
+ *
243
+ * This callback gets an {@link module:core/editor/editor~Editor} instance as a parameter.
244
+ */
245
+ execute?: Function;
246
+ }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module slash-command/slashcommandediting
11
+ */
12
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
13
+ import SlashCommandConfig, { type SlashCommandDefinition } from './slashcommandconfig.js';
14
+ /**
15
+ * Provides the editing functionality of the {@link module:slash-command/slashcommand~SlashCommand} feature.
16
+ *
17
+ * @extends module:core/plugin~Plugin
18
+ */
19
+ export default class SlashCommandEditing extends Plugin {
20
+ licenseKey: string;
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static get pluginName(): "SlashCommandEditing";
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ static get requires(): readonly [typeof SlashCommandConfig];
29
+ /**
30
+ * @inheritDoc
31
+ */
32
+ constructor(editor: Editor);
33
+ /**
34
+ * @inheritDoc
35
+ */
36
+ init(): void;
37
+ /**
38
+ * @inheritDoc
39
+ */
40
+ destroy(): void;
41
+ /**
42
+ * Returns the list of matching enabled command definitions for the specific query text case-insensitively.
43
+ */
44
+ getMatchingCommands(queryString: string): Array<SlashCommandDefinition>;
45
+ }
@@ -0,0 +1,100 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module slash-command/slashcommandeditorconfig
11
+ * @publicApi
12
+ */
13
+ import type { SlashCommandDefinition } from './slashcommandconfig.js';
14
+ /**
15
+ * The configuration of the slash command feature.
16
+ *
17
+ * Read more about {@glink features/slash-commands#configuration configuring the slash command feature}.
18
+ *
19
+ * ```ts
20
+ * ClassicEditor
21
+ * .create( editorElement, {
22
+ * slashCommand: ... // Slash command feature options.
23
+ * } )
24
+ * .then( ... )
25
+ * .catch( ... );
26
+ * ```
27
+ *
28
+ * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
29
+ */
30
+ export interface SlashCommandEditorConfig {
31
+ /**
32
+ * The list of commands to be removed from the default command list. Commands specified by this configuration will not
33
+ * appear in the user interface upon writing the slash ("/") character.
34
+ *
35
+ * * Each entry must be a unique name of a command registered in the
36
+ * {@link module:core/editor/editor~Editor#commands editor's command collection}.
37
+ * * Check out the list of the {@link module:slash-command/slashcommandconfig~SlashCommandConfig#getDefaultCommands default commands}
38
+ * supported by the slash command feature to learn which commands can be removed.
39
+ *
40
+ * ```ts
41
+ * ClassicEditor
42
+ * .create( editorElement, {
43
+ * plugins: [ SlashCommand, ... ],
44
+ * slashCommand: {
45
+ * removeCommands: [ 'heading', 'paragraph', ... ]
46
+ * // ...
47
+ * }
48
+ * } )
49
+ * .then( ... )
50
+ * .catch( ... );
51
+ * ```
52
+ */
53
+ removeCommands: Array<string>;
54
+ /**
55
+ * Additional commands to be added to the
56
+ * {@link module:slash-command/slashcommandconfig~SlashCommandConfig#getDefaultCommands list of defaults} supported
57
+ * by the slash command feature. It allows the feature to work with third-party commands and make them appear in the user interface
58
+ * upon writing the slash ("/") character.
59
+ *
60
+ * ```ts
61
+ * ClassicEditor
62
+ * .create( editorElement, {
63
+ * plugins: [ SlashCommand, ... ],
64
+ * slashCommand: {
65
+ * extraCommands: [
66
+ * {
67
+ * id: 'bold',
68
+ * commandName: 'bold',
69
+ * title: 'Bold',
70
+ * // ...
71
+ * },
72
+ * // ...
73
+ * ]
74
+ * // ...
75
+ * }
76
+ * } )
77
+ * .then( ... )
78
+ * .catch( ... );
79
+ * ```
80
+ */
81
+ extraCommands: Array<SlashCommandDefinition>;
82
+ /**
83
+ * The maximum number of commands displayed in the dropdown list of slash commands.
84
+ *
85
+ * ```ts
86
+ * ClassicEditor
87
+ * .create( editorElement, {
88
+ * plugins: [ SlashCommand, ... ],
89
+ * slashCommand: {
90
+ * dropdownLimit: 4
91
+ * // More of editor configuration.
92
+ * // ...
93
+ * }
94
+ * } )
95
+ * .then( ... )
96
+ * .catch( ... );
97
+ * ```
98
+ */
99
+ dropdownLimit: number;
100
+ }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module slash-command/slashcommandui
11
+ */
12
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
13
+ import './slashcommandeditorconfig.js';
14
+ import '../theme/slashcommand.css';
15
+ /**
16
+ * Provides the UI functionality of the {@link module:slash-command/slashcommand~SlashCommand} feature.
17
+ *
18
+ * @extends module:core/plugin~Plugin
19
+ */
20
+ export default class SlashCommandUI extends Plugin {
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static get pluginName(): "SlashCommandUI";
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ constructor(editor: Editor);
29
+ /**
30
+ * @inheritDoc
31
+ */
32
+ init(): void;
33
+ /**
34
+ * @inheritDoc
35
+ */
36
+ afterInit(): void;
37
+ }
@@ -0,0 +1,35 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module slash-command/ui/slashcommandbuttonview
11
+ */
12
+ import type { Locale } from 'ckeditor5/src/utils.js';
13
+ import { View, ButtonView } from 'ckeditor5/src/ui.js';
14
+ import type { SlashCommandDefinition } from '../slashcommandconfig.js';
15
+ /**
16
+ * A class representing an individual button (slash command) in the list.
17
+ *
18
+ * @extends module:ui/button/buttonview~ButtonView
19
+ */
20
+ export default class SlashCommandButtonView extends ButtonView {
21
+ /**
22
+ * The view rendering the text part of the slash command button consisting of a title and an optional description.
23
+ *
24
+ * @protected
25
+ */
26
+ textPartView: View;
27
+ /**
28
+ * Creates an instance of the {@link module:slash-command/ui/slashcommandbuttonview~SlashCommandButtonView} class.
29
+ */
30
+ constructor(locale: Locale, commandDefinition: SlashCommandDefinition);
31
+ /**
32
+ * @inheritDoc
33
+ */
34
+ render(): void;
35
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-slash-command",
3
- "version": "41.2.1",
3
+ "version": "41.3.0-alpha.2",
4
4
  "description": "Slash command feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,15 +12,16 @@
12
12
  "type": "module",
13
13
  "main": "src/index.js",
14
14
  "dependencies": {
15
- "@ckeditor/ckeditor5-ui": "41.2.1",
16
- "ckeditor5": "41.2.1",
17
- "ckeditor5-collaboration": "41.2.1"
15
+ "@ckeditor/ckeditor5-ui": "41.3.0-alpha.2",
16
+ "ckeditor5": "41.3.0-alpha.2",
17
+ "ckeditor5-collaboration": "41.3.0-alpha.2"
18
18
  },
19
19
  "license": "SEE LICENSE IN LICENSE.md",
20
20
  "author": "CKSource (http://cksource.com/)",
21
21
  "homepage": "https://ckeditor.com/ckeditor-5",
22
22
  "bugs": "https://support.ckeditor.com/hc/en-us/requests/new",
23
23
  "files": [
24
+ "dist",
24
25
  "lang",
25
26
  "src/**/*.js",
26
27
  "src/**/*.d.ts",
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x2035eb,_0x27ab3a){var _0x5ed6d1=_0x1e54,_0x2bf777=_0x2035eb();while(!![]){try{var _0x5b773f=parseInt(_0x5ed6d1(0x107))/0x1*(-parseInt(_0x5ed6d1(0x109))/0x2)+-parseInt(_0x5ed6d1(0x10b))/0x3+parseInt(_0x5ed6d1(0x108))/0x4*(parseInt(_0x5ed6d1(0x103))/0x5)+parseInt(_0x5ed6d1(0x102))/0x6*(-parseInt(_0x5ed6d1(0x106))/0x7)+parseInt(_0x5ed6d1(0x10c))/0x8*(-parseInt(_0x5ed6d1(0x105))/0x9)+parseInt(_0x5ed6d1(0x104))/0xa+parseInt(_0x5ed6d1(0x10a))/0xb*(parseInt(_0x5ed6d1(0x10d))/0xc);if(_0x5b773f===_0x27ab3a)break;else _0x2bf777['push'](_0x2bf777['shift']());}catch(_0x2c8751){_0x2bf777['push'](_0x2bf777['shift']());}}}(_0xbc65,0x3177f));function _0xbc65(){var _0x153c01=['176964eRdttp','1788YoELTs','133040xltejH','1854110TiqojG','81ftTIqo','5873ttViJV','226280BiZziF','40KLxGdz','2XvxIad','297YBKFeU','190014wRdPOd','95464rgAcaR'];_0xbc65=function(){return _0x153c01;};return _0xbc65();}export{default as SlashCommand}from'./slashcommand.js';function _0x1e54(_0x2be002,_0x5f00b8){var _0xbc6550=_0xbc65();return _0x1e54=function(_0x1e54c1,_0x1c3d24){_0x1e54c1=_0x1e54c1-0x102;var _0x5e5826=_0xbc6550[_0x1e54c1];return _0x5e5826;},_0x1e54(_0x2be002,_0x5f00b8);}export{default as SlashCommandConfig}from'./slashcommandconfig.js';export{default as SlashCommandEditing}from'./slashcommandediting.js';export{default as SlashCommandUI}from'./slashcommandui.js';import'./augmentation.js';
23
+ (function(_0xd1e29f,_0x4f1b91){var _0x465594=_0x2244,_0x3315bc=_0xd1e29f();while(!![]){try{var _0x553618=-parseInt(_0x465594(0xc6))/0x1*(-parseInt(_0x465594(0xbf))/0x2)+parseInt(_0x465594(0xc0))/0x3*(parseInt(_0x465594(0xc4))/0x4)+-parseInt(_0x465594(0xbd))/0x5+parseInt(_0x465594(0xc3))/0x6+-parseInt(_0x465594(0xc2))/0x7*(parseInt(_0x465594(0xbe))/0x8)+-parseInt(_0x465594(0xc5))/0x9+parseInt(_0x465594(0xc1))/0xa;if(_0x553618===_0x4f1b91)break;else _0x3315bc['push'](_0x3315bc['shift']());}catch(_0x43fb8b){_0x3315bc['push'](_0x3315bc['shift']());}}}(_0x1737,0xdeb55));function _0x2244(_0x125f57,_0x47f463){var _0x17371c=_0x1737();return _0x2244=function(_0x22443e,_0x45808e){_0x22443e=_0x22443e-0xbd;var _0xe898fd=_0x17371c[_0x22443e];return _0xe898fd;},_0x2244(_0x125f57,_0x47f463);}export{default as SlashCommand}from'./slashcommand.js';export{default as SlashCommandConfig}from'./slashcommandconfig.js';function _0x1737(){var _0x13e2f7=['3118RtcxWL','7080340MUJCQR','1984816TaIlcm','296noRweP','117kwiReW','30374950KGszBc','21vrTEST','437394iXEBBa','111276QpJecc','14257908NNwYmx'];_0x1737=function(){return _0x13e2f7;};return _0x1737();}export{default as SlashCommandEditing}from'./slashcommandediting.js';export{default as SlashCommandUI}from'./slashcommandui.js';import'./augmentation.js';
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1ba756=_0x121c;(function(_0x37ed93,_0x9f181e){var _0x37e790=_0x121c,_0x42d3af=_0x37ed93();while(!![]){try{var _0x471d45=-parseInt(_0x37e790(0x17d))/0x1*(parseInt(_0x37e790(0x175))/0x2)+parseInt(_0x37e790(0x176))/0x3*(-parseInt(_0x37e790(0x17c))/0x4)+-parseInt(_0x37e790(0x171))/0x5+parseInt(_0x37e790(0x173))/0x6*(-parseInt(_0x37e790(0x16f))/0x7)+-parseInt(_0x37e790(0x178))/0x8+parseInt(_0x37e790(0x172))/0x9*(-parseInt(_0x37e790(0x17b))/0xa)+parseInt(_0x37e790(0x179))/0xb*(parseInt(_0x37e790(0x174))/0xc);if(_0x471d45===_0x9f181e)break;else _0x42d3af['push'](_0x42d3af['shift']());}catch(_0x1534c9){_0x42d3af['push'](_0x42d3af['shift']());}}}(_0xaaa0,0x798b8));import{Plugin as _0x3f9b3f}from'ckeditor5/src/core.js';function _0x121c(_0xa676cc,_0x1d82b6){var _0xaaa012=_0xaaa0();return _0x121c=function(_0x121c28,_0x19cfb8){_0x121c28=_0x121c28-0x16e;var _0x589a7d=_0xaaa012[_0x121c28];return _0x589a7d;},_0x121c(_0xa676cc,_0x1d82b6);}function _0xaaa0(){var _0x3001d8=['604YoBjGn','137lmUqIj','requires','62720ehUKWN','Mention','4584400pnmbCD','13887HgGjvD','234muVAXF','79020RsHcJz','2770slnBZq','10419mBYogF','pluginName','364072kXObXn','5247FGORqe','SlashCommand','4000BmdMlm'];_0xaaa0=function(){return _0x3001d8;};return _0xaaa0();}import _0x28e36e from'./slashcommandediting.js';import _0x204fc6 from'./slashcommandui.js';export default class m extends _0x3f9b3f{static get[_0x1ba756(0x16e)](){var _0x202380=_0x1ba756;return[_0x202380(0x170),_0x28e36e,_0x204fc6];}static get[_0x1ba756(0x177)](){var _0x56085c=_0x1ba756;return _0x56085c(0x17a);}}
23
+ var _0x21505a=_0x4bbe;function _0x5525(){var _0x27a77a=['3466614fTPRcH','SlashCommand','requires','4068234BUidkP','1921585WGgxlO','420749uDFkrz','768612hRsJlp','3vpzEFt','Mention','pluginName','10JkNxwv','363020QYKwpe','96VwRLZD','647974YjCNqM'];_0x5525=function(){return _0x27a77a;};return _0x5525();}(function(_0x32674e,_0x712b1f){var _0x4ab0d2=_0x4bbe,_0x47f215=_0x32674e();while(!![]){try{var _0x180aed=-parseInt(_0x4ab0d2(0x18c))/0x1+parseInt(_0x4ab0d2(0x193))/0x2*(parseInt(_0x4ab0d2(0x18d))/0x3)+-parseInt(_0x4ab0d2(0x191))/0x4+parseInt(_0x4ab0d2(0x198))/0x5+-parseInt(_0x4ab0d2(0x194))/0x6+parseInt(_0x4ab0d2(0x18b))/0x7*(parseInt(_0x4ab0d2(0x192))/0x8)+parseInt(_0x4ab0d2(0x197))/0x9*(parseInt(_0x4ab0d2(0x190))/0xa);if(_0x180aed===_0x712b1f)break;else _0x47f215['push'](_0x47f215['shift']());}catch(_0x635641){_0x47f215['push'](_0x47f215['shift']());}}}(_0x5525,0x6c83e));function _0x4bbe(_0x20a461,_0x1a079d){var _0x5525fe=_0x5525();return _0x4bbe=function(_0x4bbe76,_0x5008e1){_0x4bbe76=_0x4bbe76-0x18b;var _0x2cf87d=_0x5525fe[_0x4bbe76];return _0x2cf87d;},_0x4bbe(_0x20a461,_0x1a079d);}import{Plugin as _0x8291b2}from'ckeditor5/src/core.js';import _0x3f68ab from'./slashcommandediting.js';import _0x3e6bd0 from'./slashcommandui.js';export default class m extends _0x8291b2{static get[_0x21505a(0x196)](){var _0x21f5f4=_0x21505a;return[_0x21f5f4(0x18e),_0x3f68ab,_0x3e6bd0];}static get[_0x21505a(0x18f)](){var _0x30389e=_0x21505a;return _0x30389e(0x195);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{icons as _0x1e58fc,Plugin as _0x55ea2f}from'ckeditor5/src/core.js';import{icons as _0x4d696d}from'ckeditor5-collaboration/src/collaboration-core.js';import{CKEditorError as _0x58c655}from'ckeditor5/src/utils.js';import'./slashcommandeditorconfig.js';export default class o extends _0x55ea2f{static get['pluginName'](){return'SlashCommandConfig';}constructor(_0x304cec){super(_0x304cec),this['_allowedCommands']=null;}['afterInit'](){const _0x5c3876=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x264b75=function(_0x468959){let _0x5eb1c6=['heading4','heading5','heading6'];if(_0x468959){const _0x43eebe=_0x468959['map'](_0x59c0de=>_0x59c0de['model']);_0x5eb1c6=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x414793=>!_0x43eebe['includes'](_0x414793));}return _0x5eb1c6;}(this['editor']['config']['get']('heading.options'));let _0x248ef6=this['getDefaultCommands']()['filter'](_0x57e55a=>!_0x264b75['includes'](_0x57e55a['id']))['filter'](_0xeb1200=>!_0x5c3876['includes'](_0xeb1200['commandName']));const _0x49967c=this['editor']['config']['get']('slashCommand.extraCommands');_0x49967c&&_0x49967c['length']&&(_0x248ef6=_0x248ef6['concat'](_0x49967c));const _0x126501=this['editor']['config']['get']('template.definitions');_0x126501&&_0x126501['length']&&(_0x248ef6=_0x248ef6['concat'](function(_0x156e85){return _0x156e85['map'](_0x1e66f4=>{const {title:_0x29de40,icon:_0x4c4320,description:_0x4624fd,data:_0x2299cf}=_0x1e66f4,_0x54331a={'id':c(_0x29de40,'template'),'commandName':'insertTemplate','execute':_0x3d3521=>{_0x3d3521['execute']('insertTemplate',_0x2299cf);},'description':_0x4624fd,'icon':_0x4c4320,'title':_0x29de40};return _0x4c4320&&(_0x54331a['isIconColorInherited']=!0x1),_0x54331a;});}(_0x126501)));const _0x3ee515=this['editor']['config']['get']('style.definitions');_0x3ee515&&_0x3ee515['length']&&(_0x248ef6=_0x248ef6['concat'](function(_0x3451dc){return _0x3451dc['map'](_0x144fff=>({'id':c(_0x144fff['name'],'style'),'commandName':'style','execute':_0x5e94a5=>{_0x5e94a5['execute']('style',{'styleName':_0x144fff['name']});},'isEnabled':_0x1262cf=>{const _0x41497d=_0x1262cf['commands']['get']('style');return _0x41497d['isEnabled']&&_0x41497d['enabledStyles']['includes'](_0x144fff['name']);},'title':_0x144fff['name']}));}(_0x3ee515)));const _0x4d5433=_0x248ef6['filter'](_0x435745=>!_0x435745['commandName']||void 0x0!==this['editor']['commands']['get'](_0x435745['commandName'])),_0x359f61=[];for(const _0x4264f7 of _0x4d5433)_0x359f61['push']({'id':_0x4264f7['id'],'commandName':_0x4264f7['commandName'],'title':'function'==typeof _0x4264f7['title']?_0x4264f7['title'](this['editor']):_0x4264f7['title'],'description':_0x4264f7['description'],'icon':_0x4264f7['icon'],'isIconColorInherited':_0x4264f7['isIconColorInherited'],'aliases':_0x4264f7['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x4264f7),'execute':()=>this['_proxyExecute'](_0x4264f7)});this['_allowedCommands']=_0x359f61['sort'](d);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const t=this['editor']['t'],_0x54b34f=this['editor']['locale']['t'];return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x4d696d['robotPencil'],'title':_0x54b34f('AI\x20Assistant'),'description':t('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x49e3fe=>{setTimeout(()=>_0x49e3fe['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x1e58fc['quote'],'title':_0x54b34f('Block\x20quote'),'description':t('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x1e58fc['bulletedList'],'title':_0x54b34f('Bulleted\x20list'),'description':t('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x1e58fc['codeBlock'],'title':_0x54b34f('Insert\x20code\x20block'),'description':t('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x1e58fc['browseFiles'],'title':_0x54b34f('Open\x20file\x20manager'),'description':t('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x1e58fc['browseFiles'],'title':_0x54b34f('Insert\x20image'),'description':t('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'heading1','commandName':'heading','icon':_0x1e58fc['heading1'],'title':_0x54b34f('Heading\x201'),'description':t('Create\x20a\x20heading\x20level\x201'),'execute':_0x50ba07=>{_0x50ba07['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x1e58fc['heading2'],'title':_0x54b34f('Heading\x202'),'description':t('Create\x20a\x20heading\x20level\x202'),'execute':_0x23aa5d=>{_0x23aa5d['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x1e58fc['heading3'],'title':_0x54b34f('Heading\x203'),'description':t('Create\x20a\x20heading\x20level\x203'),'execute':_0x4d5e95=>{_0x4d5e95['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x1e58fc['heading4'],'title':_0x54b34f('Heading\x204'),'description':t('Create\x20a\x20heading\x20level\x204'),'execute':_0x318070=>{_0x318070['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x1e58fc['heading5'],'title':_0x54b34f('Heading\x205'),'description':t('Create\x20a\x20heading\x20level\x205'),'execute':_0x139323=>{_0x139323['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x1e58fc['heading6'],'title':_0x54b34f('Heading\x206'),'description':t('Create\x20a\x20heading\x20level\x206'),'execute':_0xbd0ad5=>{_0xbd0ad5['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x1e58fc['horizontalLine'],'title':_0x54b34f('Horizontal\x20line'),'description':t('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x1e58fc['html'],'title':_0x54b34f('Insert\x20HTML'),'description':t('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x1e58fc['indent'],'title':_0x54b34f('Increase\x20indent'),'description':t('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':t('Insert\x20Mermaid\x20diagram'),'description':t('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x1e58fc['table'],'title':_0x54b34f('Insert\x20table'),'description':t('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x4d696d['tableOfContents'],'title':_0x54b34f('Table\x20of\x20contents'),'description':t('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x1e58fc['numberedList'],'title':_0x54b34f('Numbered\x20list'),'description':t('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x1e58fc['outdent'],'title':_0x54b34f('Decrease\x20indent'),'description':t('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x1e58fc['paragraph'],'title':_0x54b34f('Paragraph'),'description':t('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x1e58fc['todoList'],'title':_0x54b34f('To-do\x20list'),'description':t('Create\x20a\x20to-do\x20list')}];}['_proxyIsEnabled'](_0x2f39d3){return _0x2f39d3['isEnabled']?_0x2f39d3['isEnabled'](this['editor']):!_0x2f39d3['commandName']||this['editor']['commands']['get'](_0x2f39d3['commandName'])['isEnabled'];}['_proxyExecute'](_0x25b025){if(_0x25b025['execute'])_0x25b025['execute'](this['editor']);else{if(!_0x25b025['commandName'])throw new _0x58c655('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x25b025});this['editor']['execute'](_0x25b025['commandName']);}}}function d(_0x510c14,_0x175472){return _0x510c14['title']<_0x175472['title']?-0x1:_0x510c14['title']>_0x175472['title']?0x1:0x0;}function c(_0x2f932d,_0x22093d){return _0x22093d+'-'+_0x2f932d['toLowerCase']()['split']('\x20')['join']('-');}
23
+ import{icons as _0x20e7b3,Plugin as _0x5f0a3a}from'ckeditor5/src/core.js';import{icons as _0x358601}from'ckeditor5-collaboration/src/collaboration-core.js';import{CKEditorError as _0x393b08}from'ckeditor5/src/utils.js';import'./slashcommandeditorconfig.js';export default class o extends _0x5f0a3a{static get['pluginName'](){return'SlashCommandConfig';}constructor(_0xe456b2){super(_0xe456b2),this['_allowedCommands']=null;}['afterInit'](){const _0x592540=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x59a022=function(_0x32306d){let _0x1d85eb=['heading4','heading5','heading6'];if(_0x32306d){const _0x1bf47f=_0x32306d['map'](_0x394100=>_0x394100['model']);_0x1d85eb=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x1df972=>!_0x1bf47f['includes'](_0x1df972));}return _0x1d85eb;}(this['editor']['config']['get']('heading.options'));let _0x46d731=this['getDefaultCommands']()['filter'](_0x687bab=>!_0x59a022['includes'](_0x687bab['id']))['filter'](_0x29916d=>!_0x592540['includes'](_0x29916d['commandName']));const _0x1872bd=this['editor']['config']['get']('slashCommand.extraCommands');_0x1872bd&&_0x1872bd['length']&&(_0x46d731=_0x46d731['concat'](_0x1872bd));const _0x4a2b65=this['editor']['config']['get']('template.definitions');_0x4a2b65&&_0x4a2b65['length']&&(_0x46d731=_0x46d731['concat'](function(_0x49f0dd){return _0x49f0dd['map'](_0x52645b=>{const {title:_0x2558a1,icon:_0x13d87a,description:_0x2a9d84,data:_0x3ae72f}=_0x52645b,_0x17bfbc={'id':c(_0x2558a1,'template'),'commandName':'insertTemplate','execute':_0x209aa9=>{_0x209aa9['execute']('insertTemplate',_0x3ae72f);},'description':_0x2a9d84,'icon':_0x13d87a,'title':_0x2558a1};return _0x13d87a&&(_0x17bfbc['isIconColorInherited']=!0x1),_0x17bfbc;});}(_0x4a2b65)));const _0x2ba362=this['editor']['config']['get']('style.definitions');_0x2ba362&&_0x2ba362['length']&&(_0x46d731=_0x46d731['concat'](function(_0x184259){return _0x184259['map'](_0x1d3f32=>({'id':c(_0x1d3f32['name'],'style'),'commandName':'style','execute':_0x356985=>{_0x356985['execute']('style',{'styleName':_0x1d3f32['name']});},'isEnabled':_0x385b21=>{const _0x43ce96=_0x385b21['commands']['get']('style');return _0x43ce96['isEnabled']&&_0x43ce96['enabledStyles']['includes'](_0x1d3f32['name']);},'title':_0x1d3f32['name']}));}(_0x2ba362)));const _0x314a28=_0x46d731['filter'](_0xd1fe0b=>!_0xd1fe0b['commandName']||void 0x0!==this['editor']['commands']['get'](_0xd1fe0b['commandName'])),_0x23324e=[];for(const _0x18f181 of _0x314a28)_0x23324e['push']({'id':_0x18f181['id'],'commandName':_0x18f181['commandName'],'title':'function'==typeof _0x18f181['title']?_0x18f181['title'](this['editor']):_0x18f181['title'],'description':_0x18f181['description'],'icon':_0x18f181['icon'],'isIconColorInherited':_0x18f181['isIconColorInherited'],'aliases':_0x18f181['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x18f181),'execute':()=>this['_proxyExecute'](_0x18f181)});this['_allowedCommands']=_0x23324e['sort'](d);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const t=this['editor']['t'],_0x3a06fc=this['editor']['locale']['t'];return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x358601['robotPencil'],'title':_0x3a06fc('AI\x20Assistant'),'description':t('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x32ac77=>{setTimeout(()=>_0x32ac77['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x20e7b3['quote'],'title':_0x3a06fc('Block\x20quote'),'description':t('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x20e7b3['bulletedList'],'title':_0x3a06fc('Bulleted\x20list'),'description':t('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x20e7b3['codeBlock'],'title':_0x3a06fc('Insert\x20code\x20block'),'description':t('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x20e7b3['browseFiles'],'title':_0x3a06fc('Open\x20file\x20manager'),'description':t('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x20e7b3['browseFiles'],'title':_0x3a06fc('Insert\x20image'),'description':t('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'heading1','commandName':'heading','icon':_0x20e7b3['heading1'],'title':_0x3a06fc('Heading\x201'),'description':t('Create\x20a\x20heading\x20level\x201'),'execute':_0x5363ee=>{_0x5363ee['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x20e7b3['heading2'],'title':_0x3a06fc('Heading\x202'),'description':t('Create\x20a\x20heading\x20level\x202'),'execute':_0x5d490c=>{_0x5d490c['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x20e7b3['heading3'],'title':_0x3a06fc('Heading\x203'),'description':t('Create\x20a\x20heading\x20level\x203'),'execute':_0x164c72=>{_0x164c72['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x20e7b3['heading4'],'title':_0x3a06fc('Heading\x204'),'description':t('Create\x20a\x20heading\x20level\x204'),'execute':_0x25d978=>{_0x25d978['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x20e7b3['heading5'],'title':_0x3a06fc('Heading\x205'),'description':t('Create\x20a\x20heading\x20level\x205'),'execute':_0x9e08b7=>{_0x9e08b7['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x20e7b3['heading6'],'title':_0x3a06fc('Heading\x206'),'description':t('Create\x20a\x20heading\x20level\x206'),'execute':_0x5b0683=>{_0x5b0683['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x20e7b3['horizontalLine'],'title':_0x3a06fc('Horizontal\x20line'),'description':t('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x20e7b3['html'],'title':_0x3a06fc('Insert\x20HTML'),'description':t('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x20e7b3['indent'],'title':_0x3a06fc('Increase\x20indent'),'description':t('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':t('Insert\x20Mermaid\x20diagram'),'description':t('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x20e7b3['table'],'title':_0x3a06fc('Insert\x20table'),'description':t('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x358601['tableOfContents'],'title':_0x3a06fc('Table\x20of\x20contents'),'description':t('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x20e7b3['numberedList'],'title':_0x3a06fc('Numbered\x20list'),'description':t('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x20e7b3['outdent'],'title':_0x3a06fc('Decrease\x20indent'),'description':t('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x20e7b3['paragraph'],'title':_0x3a06fc('Paragraph'),'description':t('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x20e7b3['todoList'],'title':_0x3a06fc('To-do\x20list'),'description':t('Create\x20a\x20to-do\x20list')}];}['_proxyIsEnabled'](_0x3f6cbf){return _0x3f6cbf['isEnabled']?_0x3f6cbf['isEnabled'](this['editor']):!_0x3f6cbf['commandName']||this['editor']['commands']['get'](_0x3f6cbf['commandName'])['isEnabled'];}['_proxyExecute'](_0x5500da){if(_0x5500da['execute'])_0x5500da['execute'](this['editor']);else{if(!_0x5500da['commandName'])throw new _0x393b08('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x5500da});this['editor']['execute'](_0x5500da['commandName']);}}}function d(_0x1dfab1,_0x37a652){return _0x1dfab1['title']<_0x37a652['title']?-0x1:_0x1dfab1['title']>_0x37a652['title']?0x1:0x0;}function c(_0x2dd20e,_0x521cf1){return _0x521cf1+'-'+_0x2dd20e['toLowerCase']()['split']('\x20')['join']('-');}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x39fd7c=_0x12cb;(function(_0x3db982,_0x4e2130){const _0x43ce3c=_0x12cb,_0x55087b=_0x3db982();while(!![]){try{const _0xf2d7ad=-parseInt(_0x43ce3c(0xbb))/0x1+parseInt(_0x43ce3c(0x95))/0x2*(-parseInt(_0x43ce3c(0xa1))/0x3)+-parseInt(_0x43ce3c(0xb8))/0x4+parseInt(_0x43ce3c(0x93))/0x5*(parseInt(_0x43ce3c(0xb9))/0x6)+parseInt(_0x43ce3c(0xa0))/0x7*(-parseInt(_0x43ce3c(0x92))/0x8)+parseInt(_0x43ce3c(0xac))/0x9*(-parseInt(_0x43ce3c(0x9c))/0xa)+parseInt(_0x43ce3c(0xa6))/0xb*(parseInt(_0x43ce3c(0xae))/0xc);if(_0xf2d7ad===_0x4e2130)break;else _0x55087b['push'](_0x55087b['shift']());}catch(_0x23fa41){_0x55087b['push'](_0x55087b['shift']());}}}(_0x51e6,0xbabb0));import{Plugin as _0x21387c}from'ckeditor5/src/core.js';function _0x51e6(){const _0x5a91d3=['getMatchingCommands','includes','_licenseKeyCheckInterval','editor','slashCommandLicenseKeyTrialLimit:operations','SlashCommandConfig','title','pluginName','3486696LKeSsi','18KYYmsL','destroy','773679RedkJK','slashCommandLicenseKeyInvalid','getAllowedCommands','1462432VgvDTF','918055swmIqU','slash-command-invalid-license-key','26ssUnmN','info','plugins','isEnabled','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20slash\x20command\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','slashCommandLicenseKeyValid','licenseKey','10yNYlpS','config','aliases','slashCommandLicenseKeyTrial','49PIGtNr','115113NfKtgq','filter','SlashCommandEditing','some','get','22elbtMx','requires','toLowerCase','push','concat','description','1584423zPLmeT','slash-command-trial-license-key-reached-limit-changes','22883196lgepPb','init'];_0x51e6=function(){return _0x5a91d3;};return _0x51e6();}import{CKEditorError as _0x5a3495}from'ckeditor5/src/utils.js';function _0x12cb(_0x8a3560,_0x449cd2){const _0x51e673=_0x51e6();return _0x12cb=function(_0x12cbd5,_0x5b2fe4){_0x12cbd5=_0x12cbd5-0x92;let _0x39d7c8=_0x51e673[_0x12cbd5];return _0x39d7c8;},_0x12cb(_0x8a3560,_0x449cd2);}import _0x25f15a from'./slashcommandconfig.js';export default class e extends _0x21387c{static get[_0x39fd7c(0xb7)](){const _0xf7c5db=_0x39fd7c;return _0xf7c5db(0xa3);}static get[_0x39fd7c(0xa7)](){return[_0x25f15a];}constructor(_0x35a2f4){const _0x41a66d=_0x39fd7c;super(_0x35a2f4),this[_0x41a66d(0xb2)]=null;}[_0x39fd7c(0xaf)](){const _0x3522e9=_0x39fd7c,_0x19cfd9=this[_0x3522e9(0xb3)];this[_0x3522e9(0x9b)]=_0x19cfd9[_0x3522e9(0x9d)][_0x3522e9(0xa5)](_0x3522e9(0x9b));const _0x2101e1=this[_0x3522e9(0xb3)];this[_0x3522e9(0xb2)]=setInterval(()=>{const _0x290199=_0x3522e9;let _0x532b7d;for(const _0x54e6d8 in _0x2101e1){const _0x49d1c8=_0x54e6d8,_0x33a0f6=_0x2101e1[_0x49d1c8];if(_0x290199(0x9f)===_0x33a0f6||_0x290199(0xbc)===_0x33a0f6||_0x290199(0x9a)===_0x33a0f6||_0x290199(0xb4)===_0x33a0f6){delete _0x2101e1[_0x49d1c8],_0x532b7d=_0x33a0f6;break;}}if(_0x290199(0xbc)===_0x532b7d)throw clearInterval(this[_0x290199(0xb2)]),new _0x5a3495(_0x290199(0x94),null);if(_0x290199(0x9f)===_0x532b7d&&console[_0x290199(0x96)](_0x290199(0x99)),_0x290199(0xb4)===_0x532b7d)throw clearInterval(this[_0x290199(0xb2)]),new _0x5a3495(_0x290199(0xad),null);_0x290199(0x9a)===_0x532b7d&&clearInterval(this[_0x290199(0xb2)]);},0x3e8);}[_0x39fd7c(0xba)](){const _0x183c40=_0x39fd7c;this[_0x183c40(0xb2)]&&clearInterval(this[_0x183c40(0xb2)]);}[_0x39fd7c(0xb0)](_0x381fe2){const _0x23d4e0=_0x39fd7c,_0x50705d=_0x381fe2&&_0x381fe2[_0x23d4e0(0xa8)]();let _0x1c5844=this[_0x23d4e0(0xb3)][_0x23d4e0(0x97)][_0x23d4e0(0xa5)](_0x23d4e0(0xb5))[_0x23d4e0(0xbd)]();if(_0x1c5844=_0x1c5844[_0x23d4e0(0xa2)](_0x1ee8f3=>_0x1ee8f3[_0x23d4e0(0x98)]()),_0x50705d){const _0x131e77=[],_0x939985=[],_0x324870=[],_0x64937f=[];for(const _0x5ce365 of _0x1c5844)_0x5ce365['id'][_0x23d4e0(0xa8)]()[_0x23d4e0(0xb1)](_0x50705d)?_0x131e77[_0x23d4e0(0xa9)](_0x5ce365):_0x5ce365[_0x23d4e0(0xb6)][_0x23d4e0(0xa8)]()[_0x23d4e0(0xb1)](_0x50705d)?_0x939985[_0x23d4e0(0xa9)](_0x5ce365):_0x5ce365[_0x23d4e0(0x9e)]&&_0x5ce365[_0x23d4e0(0x9e)][_0x23d4e0(0xa4)](_0x381176=>_0x381176[_0x23d4e0(0xa8)]()[_0x23d4e0(0xb1)](_0x50705d))?_0x324870[_0x23d4e0(0xa9)](_0x5ce365):_0x5ce365[_0x23d4e0(0xab)]&&_0x5ce365[_0x23d4e0(0xab)][_0x23d4e0(0xa8)]()[_0x23d4e0(0xb1)](_0x50705d)&&_0x64937f[_0x23d4e0(0xa9)](_0x5ce365);_0x1c5844=_0x131e77[_0x23d4e0(0xaa)](_0x939985,_0x324870,_0x64937f);}return _0x1c5844;}}
23
+ const _0x4b0f49=_0x5961;function _0x5961(_0x4ae52d,_0x1d0b63){const _0x1123f2=_0x1123();return _0x5961=function(_0x59616d,_0x191b12){_0x59616d=_0x59616d-0x1a8;let _0x4c4c29=_0x1123f2[_0x59616d];return _0x4c4c29;},_0x5961(_0x4ae52d,_0x1d0b63);}(function(_0x1b2af3,_0xed6b02){const _0x4cd677=_0x5961,_0x53d228=_0x1b2af3();while(!![]){try{const _0x34a671=-parseInt(_0x4cd677(0x1cb))/0x1+parseInt(_0x4cd677(0x1b6))/0x2+-parseInt(_0x4cd677(0x1af))/0x3*(parseInt(_0x4cd677(0x1c7))/0x4)+parseInt(_0x4cd677(0x1c1))/0x5+-parseInt(_0x4cd677(0x1c6))/0x6*(-parseInt(_0x4cd677(0x1b8))/0x7)+-parseInt(_0x4cd677(0x1ca))/0x8*(parseInt(_0x4cd677(0x1ce))/0x9)+parseInt(_0x4cd677(0x1cf))/0xa;if(_0x34a671===_0xed6b02)break;else _0x53d228['push'](_0x53d228['shift']());}catch(_0x374180){_0x53d228['push'](_0x53d228['shift']());}}}(_0x1123,0x2bb0f));import{Plugin as _0x3217d5}from'ckeditor5/src/core.js';function _0x1123(){const _0x4af585=['SlashCommandConfig','831341epoHaV','pluginName','destroy','_licenseKeyCheckInterval','requires','SlashCommandEditing','info','title','plugins','1514940rAGhbO','isEnabled','filter','includes','slash-command-trial-license-key-reached-limit-changes','6GjWOrd','467204ACGHon','push','getMatchingCommands','464456TouhbP','280821pMjsqv','licenseKey','slashCommandLicenseKeyTrialLimit:operations','54eezBlQ','3355860TdtMCs','slashCommandLicenseKeyValid','slashCommandLicenseKeyTrial','config','toLowerCase','slash-command-invalid-license-key','editor','get','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20slash\x20command\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','some','3RtQjPn','getAllowedCommands','description','aliases','concat','slashCommandLicenseKeyInvalid','init','335172lWTntT'];_0x1123=function(){return _0x4af585;};return _0x1123();}import{CKEditorError as _0x5d43d4}from'ckeditor5/src/utils.js';import _0x9138f0 from'./slashcommandconfig.js';export default class e extends _0x3217d5{static get[_0x4b0f49(0x1b9)](){const _0x3aba4f=_0x4b0f49;return _0x3aba4f(0x1bd);}static get[_0x4b0f49(0x1bc)](){return[_0x9138f0];}constructor(_0x22cb0b){const _0x21084a=_0x4b0f49;super(_0x22cb0b),this[_0x21084a(0x1bb)]=null;}[_0x4b0f49(0x1b5)](){const _0x26e7f7=_0x4b0f49,_0x3e95de=this[_0x26e7f7(0x1ab)];this[_0x26e7f7(0x1cc)]=_0x3e95de[_0x26e7f7(0x1a8)][_0x26e7f7(0x1ac)](_0x26e7f7(0x1cc));const _0x515ab9=this[_0x26e7f7(0x1ab)];this[_0x26e7f7(0x1bb)]=setInterval(()=>{const _0x1fc983=_0x26e7f7;let _0x1c7d27;for(const _0x34429e in _0x515ab9){const _0x3d60cc=_0x34429e,_0x3ec74c=_0x515ab9[_0x3d60cc];if(_0x1fc983(0x1d1)===_0x3ec74c||_0x1fc983(0x1b4)===_0x3ec74c||_0x1fc983(0x1d0)===_0x3ec74c||_0x1fc983(0x1cd)===_0x3ec74c){delete _0x515ab9[_0x3d60cc],_0x1c7d27=_0x3ec74c;break;}}if(_0x1fc983(0x1b4)===_0x1c7d27)throw clearInterval(this[_0x1fc983(0x1bb)]),new _0x5d43d4(_0x1fc983(0x1aa),null);if(_0x1fc983(0x1d1)===_0x1c7d27&&console[_0x1fc983(0x1be)](_0x1fc983(0x1ad)),_0x1fc983(0x1cd)===_0x1c7d27)throw clearInterval(this[_0x1fc983(0x1bb)]),new _0x5d43d4(_0x1fc983(0x1c5),null);_0x1fc983(0x1d0)===_0x1c7d27&&clearInterval(this[_0x1fc983(0x1bb)]);},0x3e8);}[_0x4b0f49(0x1ba)](){const _0x3832c5=_0x4b0f49;this[_0x3832c5(0x1bb)]&&clearInterval(this[_0x3832c5(0x1bb)]);}[_0x4b0f49(0x1c9)](_0x347dfc){const _0x23aab2=_0x4b0f49,_0x2c1ce2=_0x347dfc&&_0x347dfc[_0x23aab2(0x1a9)]();let _0x4314ff=this[_0x23aab2(0x1ab)][_0x23aab2(0x1c0)][_0x23aab2(0x1ac)](_0x23aab2(0x1b7))[_0x23aab2(0x1b0)]();if(_0x4314ff=_0x4314ff[_0x23aab2(0x1c3)](_0x521f4b=>_0x521f4b[_0x23aab2(0x1c2)]()),_0x2c1ce2){const _0x3b820e=[],_0x522134=[],_0x5751b5=[],_0x3b7e81=[];for(const _0x25925a of _0x4314ff)_0x25925a['id'][_0x23aab2(0x1a9)]()[_0x23aab2(0x1c4)](_0x2c1ce2)?_0x3b820e[_0x23aab2(0x1c8)](_0x25925a):_0x25925a[_0x23aab2(0x1bf)][_0x23aab2(0x1a9)]()[_0x23aab2(0x1c4)](_0x2c1ce2)?_0x522134[_0x23aab2(0x1c8)](_0x25925a):_0x25925a[_0x23aab2(0x1b2)]&&_0x25925a[_0x23aab2(0x1b2)][_0x23aab2(0x1ae)](_0xb68511=>_0xb68511[_0x23aab2(0x1a9)]()[_0x23aab2(0x1c4)](_0x2c1ce2))?_0x5751b5[_0x23aab2(0x1c8)](_0x25925a):_0x25925a[_0x23aab2(0x1b1)]&&_0x25925a[_0x23aab2(0x1b1)][_0x23aab2(0x1a9)]()[_0x23aab2(0x1c4)](_0x2c1ce2)&&_0x3b7e81[_0x23aab2(0x1c8)](_0x25925a);_0x4314ff=_0x3b820e[_0x23aab2(0x1b3)](_0x522134,_0x5751b5,_0x3b7e81);}return _0x4314ff;}}