@ckeditor/ckeditor5-slash-command 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 (64) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/build/slash-command.js +3 -3
  4. package/lang/translations/ar.po +1 -1
  5. package/lang/translations/bg.po +1 -1
  6. package/lang/translations/bn.po +1 -1
  7. package/lang/translations/ca.po +1 -1
  8. package/lang/translations/cs.po +1 -1
  9. package/lang/translations/da.po +1 -1
  10. package/lang/translations/de.po +1 -1
  11. package/lang/translations/el.po +1 -1
  12. package/lang/translations/en-au.po +1 -1
  13. package/lang/translations/en.po +1 -1
  14. package/lang/translations/es.po +1 -1
  15. package/lang/translations/et.po +1 -1
  16. package/lang/translations/fi.po +1 -1
  17. package/lang/translations/fr.po +1 -1
  18. package/lang/translations/gl.po +1 -1
  19. package/lang/translations/he.po +1 -1
  20. package/lang/translations/hi.po +1 -1
  21. package/lang/translations/hr.po +1 -1
  22. package/lang/translations/hu.po +1 -1
  23. package/lang/translations/id.po +1 -1
  24. package/lang/translations/it.po +1 -1
  25. package/lang/translations/ja.po +1 -1
  26. package/lang/translations/ko.po +1 -1
  27. package/lang/translations/lt.po +1 -1
  28. package/lang/translations/lv.po +1 -1
  29. package/lang/translations/ms.po +1 -1
  30. package/lang/translations/nl.po +1 -1
  31. package/lang/translations/no.po +1 -1
  32. package/lang/translations/pl.po +1 -1
  33. package/lang/translations/pt-br.po +1 -1
  34. package/lang/translations/pt.po +1 -1
  35. package/lang/translations/ro.po +1 -1
  36. package/lang/translations/ru.po +1 -1
  37. package/lang/translations/sk.po +1 -1
  38. package/lang/translations/sr.po +1 -1
  39. package/lang/translations/sv.po +1 -1
  40. package/lang/translations/th.po +1 -1
  41. package/lang/translations/tr.po +1 -1
  42. package/lang/translations/uk.po +1 -1
  43. package/lang/translations/uz.po +1 -1
  44. package/lang/translations/vi.po +1 -1
  45. package/lang/translations/zh-cn.po +1 -1
  46. package/lang/translations/zh.po +1 -1
  47. package/package.json +5 -14
  48. package/src/augmentation.d.ts +2 -2
  49. package/src/augmentation.js +1 -1
  50. package/src/index.d.ts +7 -7
  51. package/src/index.js +2 -2
  52. package/src/slashcommand.d.ts +4 -4
  53. package/src/slashcommand.js +2 -2
  54. package/src/slashcommandconfig.d.ts +3 -3
  55. package/src/slashcommandconfig.js +2 -2
  56. package/src/slashcommandediting.d.ts +3 -3
  57. package/src/slashcommandediting.js +2 -2
  58. package/src/slashcommandeditorconfig.d.ts +2 -2
  59. package/src/slashcommandeditorconfig.js +1 -1
  60. package/src/slashcommandui.d.ts +3 -3
  61. package/src/slashcommandui.js +2 -2
  62. package/src/ui/slashcommandbuttonview.d.ts +4 -4
  63. package/src/ui/slashcommandbuttonview.js +2 -2
  64. package/theme/slashcommand.css +1 -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
  #
@@ -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-slash-command",
3
- "version": "40.2.0",
3
+ "version": "41.1.0",
4
4
  "description": "Slash command feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -9,21 +9,12 @@
9
9
  "ckeditor5-feature",
10
10
  "ckeditor5-plugin"
11
11
  ],
12
+ "type": "module",
12
13
  "main": "src/index.js",
13
14
  "dependencies": {
14
- "@ckeditor/ckeditor5-ai": "40.2.0",
15
- "@ckeditor/ckeditor5-ckbox": "40.2.0",
16
- "@ckeditor/ckeditor5-ckfinder": "40.2.0",
17
- "@ckeditor/ckeditor5-code-block": "40.2.0",
18
- "@ckeditor/ckeditor5-heading": "40.2.0",
19
- "@ckeditor/ckeditor5-horizontal-line": "40.2.0",
20
- "@ckeditor/ckeditor5-html-embed": "40.2.0",
21
- "@ckeditor/ckeditor5-indent": "40.2.0",
22
- "@ckeditor/ckeditor5-list": "40.2.0",
23
- "@ckeditor/ckeditor5-table": "40.2.0",
24
- "@ckeditor/ckeditor5-document-outline": "40.2.0",
25
- "@ckeditor/ckeditor5-ui": "40.2.0",
26
- "ckeditor5": "40.2.0"
15
+ "@ckeditor/ckeditor5-ui": "41.1.0",
16
+ "ckeditor5": "41.1.0",
17
+ "ckeditor5-collaboration": "41.1.0"
27
18
  },
28
19
  "license": "SEE LICENSE IN LICENSE.md",
29
20
  "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 { SlashCommand, SlashCommandConfig, SlashCommandEditing, SlashCommandUI, SlashCommandEditorConfig } from './index';
5
+ import type { SlashCommand, SlashCommandConfig, SlashCommandEditing, SlashCommandUI, SlashCommandEditorConfig } from './index.js';
6
6
  declare module '@ckeditor/ckeditor5-core' {
7
7
  interface EditorConfig {
8
8
  /**
@@ -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
5
  /**
6
6
  * @module slash-command
7
7
  */
8
- export { default as SlashCommand } from './slashcommand';
9
- export { default as SlashCommandConfig } from './slashcommandconfig';
10
- export { default as SlashCommandEditing } from './slashcommandediting';
11
- export { default as SlashCommandUI } from './slashcommandui';
12
- export { type SlashCommandEditorConfig } from './slashcommandeditorconfig';
13
- import './augmentation';
8
+ export { default as SlashCommand } from './slashcommand.js';
9
+ export { default as SlashCommandConfig } from './slashcommandconfig.js';
10
+ export { default as SlashCommandEditing } from './slashcommandediting.js';
11
+ export { default as SlashCommandUI } from './slashcommandui.js';
12
+ export { type SlashCommandEditorConfig } from './slashcommandeditorconfig.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
- export{default as SlashCommand}from'./slashcommand';export{default as SlashCommandConfig}from'./slashcommandconfig';export{default as SlashCommandEditing}from'./slashcommandediting';export{default as SlashCommandUI}from'./slashcommandui';import'./augmentation';
23
+ export{default as SlashCommand}from'./slashcommand.js';export{default as SlashCommandConfig}from'./slashcommandconfig.js';export{default as SlashCommandEditing}from'./slashcommandediting.js';export{default as SlashCommandUI}from'./slashcommandui.js';import'./augmentation.js';
@@ -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 slash-command/slashcommand
7
7
  * @publicApi
8
8
  */
9
- import { Plugin } from 'ckeditor5/src/core';
10
- import SlashCommandEditing from './slashcommandediting';
11
- import SlashCommandUI from './slashcommandui';
9
+ import { Plugin } from 'ckeditor5/src/core.js';
10
+ import SlashCommandEditing from './slashcommandediting.js';
11
+ import SlashCommandUI from './slashcommandui.js';
12
12
  /**
13
13
  * The slash command feature.
14
14
  * It allows for an easy access to a predefined list of editor commands by typing `/` inside the editor.
@@ -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 _0x50a8=['SlashCommand','pluginName','requires','Mention'];(function(_0x453d8f,_0x50a83d){var _0x3b26d1=function(_0x19b9b8){while(--_0x19b9b8){_0x453d8f['push'](_0x453d8f['shift']());}};_0x3b26d1(++_0x50a83d);}(_0x50a8,0x187));var _0x3b26=function(_0x453d8f,_0x50a83d){_0x453d8f=_0x453d8f-0x0;var _0x3b26d1=_0x50a8[_0x453d8f];return _0x3b26d1;};import{Plugin as _0x3a4435}from'ckeditor5/src/core';import _0x46f9b6 from'./slashcommandediting';import _0x30f2dc from'./slashcommandui';export default class o extends _0x3a4435{static get[_0x3b26('0x3')](){return[_0x3b26('0x0'),_0x46f9b6,_0x30f2dc];}static get[_0x3b26('0x2')](){return _0x3b26('0x1');}}
23
+ var _0x1796=['Mention','pluginName','SlashCommand','requires'];(function(_0x2f9604,_0x17966f){var _0x9eb018=function(_0x4fbbd5){while(--_0x4fbbd5){_0x2f9604['push'](_0x2f9604['shift']());}};_0x9eb018(++_0x17966f);}(_0x1796,0x12c));var _0x9eb0=function(_0x2f9604,_0x17966f){_0x2f9604=_0x2f9604-0x0;var _0x9eb018=_0x1796[_0x2f9604];return _0x9eb018;};import{Plugin as _0x4ff9b9}from'ckeditor5/src/core.js';import _0x1aa8e7 from'./slashcommandediting.js';import _0x257ccf from'./slashcommandui.js';export default class m extends _0x4ff9b9{static get[_0x9eb0('0x3')](){return[_0x9eb0('0x0'),_0x1aa8e7,_0x257ccf];}static get[_0x9eb0('0x1')](){return _0x9eb0('0x2');}}
@@ -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
5
  /**
6
6
  * @module slash-command/slashcommandconfig
7
7
  * @publicApi
8
8
  */
9
- import { Plugin, type Editor } from 'ckeditor5/src/core';
10
- import './slashcommandeditorconfig';
9
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
10
+ import './slashcommandeditorconfig.js';
11
11
  /**
12
12
  * This plugin takes care of the configuration for {@link module:slash-command/slashcommand~SlashCommand}:
13
13
  *
@@ -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{Plugin as _0x10129a,icons as _0x1da49f}from'ckeditor5/src/core';import{CKEditorError as _0x43c48d}from'ckeditor5/src/utils';import _0x4e0aa7 from'@ckeditor/ckeditor5-list/theme/icons/bulletedlist.svg';import _0x3381f9 from'@ckeditor/ckeditor5-code-block/theme/icons/codeblock.svg';import _0x3b67cd from'@ckeditor/ckeditor5-ckbox/theme/icons/browse-files.svg';import _0x3b5070 from'@ckeditor/ckeditor5-ckfinder/theme/icons/browse-files.svg';import _0x158bf9 from'@ckeditor/ckeditor5-heading/theme/icons/heading1.svg';import _0x4db306 from'@ckeditor/ckeditor5-heading/theme/icons/heading2.svg';import _0x1425ec from'@ckeditor/ckeditor5-heading/theme/icons/heading3.svg';import _0x5d0668 from'@ckeditor/ckeditor5-heading/theme/icons/heading4.svg';import _0x4265b3 from'@ckeditor/ckeditor5-heading/theme/icons/heading5.svg';import _0x1b6fbb from'@ckeditor/ckeditor5-heading/theme/icons/heading6.svg';import _0x94af19 from'@ckeditor/ckeditor5-horizontal-line/theme/icons/horizontalline.svg';import _0x555602 from'@ckeditor/ckeditor5-html-embed/theme/icons/html.svg';import _0x3bdf00 from'@ckeditor/ckeditor5-indent/theme/icons/indent.svg';import _0x35f332 from'@ckeditor/ckeditor5-table/theme/icons/table.svg';import _0x33fb93 from'@ckeditor/ckeditor5-list/theme/icons/numberedlist.svg';import _0x460bd8 from'@ckeditor/ckeditor5-indent/theme/icons/outdent.svg';import _0xb2a3a1 from'@ckeditor/ckeditor5-document-outline/theme/icons/table-of-contents.svg';import _0x3ffc12 from'@ckeditor/ckeditor5-list/theme/icons/todolist.svg';import _0x45819b from'@ckeditor/ckeditor5-ai/theme/icons/robot-pencil.svg';import'./slashcommandeditorconfig';export default class L extends _0x10129a{static get['pluginName'](){return'SlashCommandConfig';}constructor(_0x1d556e){super(_0x1d556e),this['_allowedCommands']=null;}['afterInit'](){const _0x38b26a=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x51e654=function(_0x3a56d5){let _0x13bd07=['heading4','heading5','heading6'];if(_0x3a56d5){const _0x524055=_0x3a56d5['map'](_0x407652=>_0x407652['model']);_0x13bd07=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x4fd2bc=>!_0x524055['includes'](_0x4fd2bc));}return _0x13bd07;}(this['editor']['config']['get']('heading.options'));let _0xbd7170=this['getDefaultCommands']()['filter'](_0x3750db=>!_0x51e654['includes'](_0x3750db['id']))['filter'](_0x1c0955=>!_0x38b26a['includes'](_0x1c0955['commandName']));const _0x1a44b8=this['editor']['config']['get']('slashCommand.extraCommands');_0x1a44b8&&_0x1a44b8['length']&&(_0xbd7170=_0xbd7170['concat'](_0x1a44b8));const _0xaa4e10=this['editor']['config']['get']('template.definitions');_0xaa4e10&&_0xaa4e10['length']&&(_0xbd7170=_0xbd7170['concat'](function(_0x5b338b){return _0x5b338b['map'](_0x1149ec=>{const {title:_0x55cde3,icon:_0x483102,description:_0x20bc98,data:_0x403461}=_0x1149ec,_0x36b9cb={'id':H(_0x55cde3,'template'),'commandName':'insertTemplate','execute':_0x25302e=>{_0x25302e['execute']('insertTemplate',_0x403461);},'description':_0x20bc98,'icon':_0x483102,'title':_0x55cde3};return _0x483102&&(_0x36b9cb['isIconColorInherited']=!0x1),_0x36b9cb;});}(_0xaa4e10)));const _0x34a084=this['editor']['config']['get']('style.definitions');_0x34a084&&_0x34a084['length']&&(_0xbd7170=_0xbd7170['concat'](function(_0x5e6706){return _0x5e6706['map'](_0xa08a2b=>({'id':H(_0xa08a2b['name'],'style'),'commandName':'style','execute':_0x1238e3=>{_0x1238e3['execute']('style',{'styleName':_0xa08a2b['name']});},'isEnabled':_0x23e43d=>{const _0x2d6266=_0x23e43d['commands']['get']('style');return _0x2d6266['isEnabled']&&_0x2d6266['enabledStyles']['includes'](_0xa08a2b['name']);},'title':_0xa08a2b['name']}));}(_0x34a084)));const _0x3717c7=_0xbd7170['filter'](_0x406939=>!_0x406939['commandName']||void 0x0!==this['editor']['commands']['get'](_0x406939['commandName'])),_0x2cf8fa=[];for(const _0x143822 of _0x3717c7)_0x2cf8fa['push']({'id':_0x143822['id'],'commandName':_0x143822['commandName'],'title':'function'==typeof _0x143822['title']?_0x143822['title'](this['editor']):_0x143822['title'],'description':_0x143822['description'],'icon':_0x143822['icon'],'isIconColorInherited':_0x143822['isIconColorInherited'],'aliases':_0x143822['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x143822),'execute':()=>this['_proxyExecute'](_0x143822)});this['_allowedCommands']=_0x2cf8fa['sort'](y);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const t=this['editor']['t'],_0x356cab=this['editor']['locale']['t'];return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x45819b,'title':_0x356cab('AI\x20Assistant'),'description':t('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x1b9352=>{setTimeout(()=>_0x1b9352['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x1da49f['quote'],'title':_0x356cab('Block\x20quote'),'description':t('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x4e0aa7,'title':_0x356cab('Bulleted\x20list'),'description':t('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x3381f9,'title':_0x356cab('Insert\x20code\x20block'),'description':t('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x3b67cd,'title':_0x356cab('Open\x20file\x20manager'),'description':t('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x3b5070,'title':_0x356cab('Insert\x20image'),'description':t('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'heading1','commandName':'heading','icon':_0x158bf9,'title':_0x356cab('Heading\x201'),'description':t('Create\x20a\x20heading\x20level\x201'),'execute':_0x3449f9=>{_0x3449f9['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x4db306,'title':_0x356cab('Heading\x202'),'description':t('Create\x20a\x20heading\x20level\x202'),'execute':_0x4938ef=>{_0x4938ef['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x1425ec,'title':_0x356cab('Heading\x203'),'description':t('Create\x20a\x20heading\x20level\x203'),'execute':_0x5dfca9=>{_0x5dfca9['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x5d0668,'title':_0x356cab('Heading\x204'),'description':t('Create\x20a\x20heading\x20level\x204'),'execute':_0x1310fa=>{_0x1310fa['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x4265b3,'title':_0x356cab('Heading\x205'),'description':t('Create\x20a\x20heading\x20level\x205'),'execute':_0x1ed5e0=>{_0x1ed5e0['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x1b6fbb,'title':_0x356cab('Heading\x206'),'description':t('Create\x20a\x20heading\x20level\x206'),'execute':_0x5cea9f=>{_0x5cea9f['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x94af19,'title':_0x356cab('Horizontal\x20line'),'description':t('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x555602,'title':_0x356cab('Insert\x20HTML'),'description':t('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x3bdf00,'title':_0x356cab('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':_0x35f332,'title':_0x356cab('Insert\x20table'),'description':t('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0xb2a3a1,'title':_0x356cab('Table\x20of\x20contents'),'description':t('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x33fb93,'title':_0x356cab('Numbered\x20list'),'description':t('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x460bd8,'title':_0x356cab('Decrease\x20indent'),'description':t('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x1da49f['paragraph'],'title':_0x356cab('Paragraph'),'description':t('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x3ffc12,'title':_0x356cab('To-do\x20list'),'description':t('Create\x20a\x20to-do\x20list')}];}['_proxyIsEnabled'](_0x193dee){return _0x193dee['isEnabled']?_0x193dee['isEnabled'](this['editor']):!_0x193dee['commandName']||this['editor']['commands']['get'](_0x193dee['commandName'])['isEnabled'];}['_proxyExecute'](_0x317071){if(_0x317071['execute'])_0x317071['execute'](this['editor']);else{if(!_0x317071['commandName'])throw new _0x43c48d('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x317071});this['editor']['execute'](_0x317071['commandName']);}}}function y(_0x23dd82,_0x12b4c9){return _0x23dd82['title']<_0x12b4c9['title']?-0x1:_0x23dd82['title']>_0x12b4c9['title']?0x1:0x0;}function H(_0x5aa849,_0x3674d1){return _0x3674d1+'-'+_0x5aa849['toLowerCase']()['split']('\x20')['join']('-');}
23
+ import{icons as _0x2f2fe5,Plugin as _0x2d8295}from'ckeditor5/src/core.js';import{icons as _0x50db2e}from'ckeditor5-collaboration/src/collaboration-core.js';import{CKEditorError as _0x2ab0c7}from'ckeditor5/src/utils.js';import'./slashcommandeditorconfig.js';export default class o extends _0x2d8295{static get['pluginName'](){return'SlashCommandConfig';}constructor(_0x415ffc){super(_0x415ffc),this['_allowedCommands']=null;}['afterInit'](){const _0x54ece8=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x558a7e=function(_0x3f720c){let _0x13111c=['heading4','heading5','heading6'];if(_0x3f720c){const _0x4ad587=_0x3f720c['map'](_0x145464=>_0x145464['model']);_0x13111c=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x5d7288=>!_0x4ad587['includes'](_0x5d7288));}return _0x13111c;}(this['editor']['config']['get']('heading.options'));let _0x563338=this['getDefaultCommands']()['filter'](_0x53fe99=>!_0x558a7e['includes'](_0x53fe99['id']))['filter'](_0x131bb8=>!_0x54ece8['includes'](_0x131bb8['commandName']));const _0xc802d8=this['editor']['config']['get']('slashCommand.extraCommands');_0xc802d8&&_0xc802d8['length']&&(_0x563338=_0x563338['concat'](_0xc802d8));const _0x2a7e7e=this['editor']['config']['get']('template.definitions');_0x2a7e7e&&_0x2a7e7e['length']&&(_0x563338=_0x563338['concat'](function(_0x1e8fad){return _0x1e8fad['map'](_0x3caab3=>{const {title:_0x16ce25,icon:_0x4e657d,description:_0x1e7c7b,data:_0x32bcf3}=_0x3caab3,_0x33ff04={'id':c(_0x16ce25,'template'),'commandName':'insertTemplate','execute':_0x4aefa1=>{_0x4aefa1['execute']('insertTemplate',_0x32bcf3);},'description':_0x1e7c7b,'icon':_0x4e657d,'title':_0x16ce25};return _0x4e657d&&(_0x33ff04['isIconColorInherited']=!0x1),_0x33ff04;});}(_0x2a7e7e)));const _0x48def4=this['editor']['config']['get']('style.definitions');_0x48def4&&_0x48def4['length']&&(_0x563338=_0x563338['concat'](function(_0x2a6211){return _0x2a6211['map'](_0x509f8c=>({'id':c(_0x509f8c['name'],'style'),'commandName':'style','execute':_0x375003=>{_0x375003['execute']('style',{'styleName':_0x509f8c['name']});},'isEnabled':_0x1fa230=>{const _0x2de3be=_0x1fa230['commands']['get']('style');return _0x2de3be['isEnabled']&&_0x2de3be['enabledStyles']['includes'](_0x509f8c['name']);},'title':_0x509f8c['name']}));}(_0x48def4)));const _0x4340dc=_0x563338['filter'](_0x38f50c=>!_0x38f50c['commandName']||void 0x0!==this['editor']['commands']['get'](_0x38f50c['commandName'])),_0x2995ad=[];for(const _0x4e36e6 of _0x4340dc)_0x2995ad['push']({'id':_0x4e36e6['id'],'commandName':_0x4e36e6['commandName'],'title':'function'==typeof _0x4e36e6['title']?_0x4e36e6['title'](this['editor']):_0x4e36e6['title'],'description':_0x4e36e6['description'],'icon':_0x4e36e6['icon'],'isIconColorInherited':_0x4e36e6['isIconColorInherited'],'aliases':_0x4e36e6['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x4e36e6),'execute':()=>this['_proxyExecute'](_0x4e36e6)});this['_allowedCommands']=_0x2995ad['sort'](d);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const t=this['editor']['t'],_0x2cdf06=this['editor']['locale']['t'];return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x50db2e['robotPencil'],'title':_0x2cdf06('AI\x20Assistant'),'description':t('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x71b8c3=>{setTimeout(()=>_0x71b8c3['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x2f2fe5['quote'],'title':_0x2cdf06('Block\x20quote'),'description':t('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x2f2fe5['bulletedList'],'title':_0x2cdf06('Bulleted\x20list'),'description':t('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x2f2fe5['codeBlock'],'title':_0x2cdf06('Insert\x20code\x20block'),'description':t('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x2f2fe5['browseFiles'],'title':_0x2cdf06('Open\x20file\x20manager'),'description':t('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x2f2fe5['browseFiles'],'title':_0x2cdf06('Insert\x20image'),'description':t('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'heading1','commandName':'heading','icon':_0x2f2fe5['heading1'],'title':_0x2cdf06('Heading\x201'),'description':t('Create\x20a\x20heading\x20level\x201'),'execute':_0x484d90=>{_0x484d90['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x2f2fe5['heading2'],'title':_0x2cdf06('Heading\x202'),'description':t('Create\x20a\x20heading\x20level\x202'),'execute':_0x39617f=>{_0x39617f['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x2f2fe5['heading3'],'title':_0x2cdf06('Heading\x203'),'description':t('Create\x20a\x20heading\x20level\x203'),'execute':_0x457b3e=>{_0x457b3e['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x2f2fe5['heading4'],'title':_0x2cdf06('Heading\x204'),'description':t('Create\x20a\x20heading\x20level\x204'),'execute':_0x4caeae=>{_0x4caeae['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x2f2fe5['heading5'],'title':_0x2cdf06('Heading\x205'),'description':t('Create\x20a\x20heading\x20level\x205'),'execute':_0x3988a4=>{_0x3988a4['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x2f2fe5['heading6'],'title':_0x2cdf06('Heading\x206'),'description':t('Create\x20a\x20heading\x20level\x206'),'execute':_0x4a3807=>{_0x4a3807['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x2f2fe5['horizontalLine'],'title':_0x2cdf06('Horizontal\x20line'),'description':t('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x2f2fe5['html'],'title':_0x2cdf06('Insert\x20HTML'),'description':t('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x2f2fe5['indent'],'title':_0x2cdf06('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':_0x2f2fe5['table'],'title':_0x2cdf06('Insert\x20table'),'description':t('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x50db2e['tableOfContents'],'title':_0x2cdf06('Table\x20of\x20contents'),'description':t('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x2f2fe5['numberedList'],'title':_0x2cdf06('Numbered\x20list'),'description':t('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x2f2fe5['outdent'],'title':_0x2cdf06('Decrease\x20indent'),'description':t('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x2f2fe5['paragraph'],'title':_0x2cdf06('Paragraph'),'description':t('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x2f2fe5['todoList'],'title':_0x2cdf06('To-do\x20list'),'description':t('Create\x20a\x20to-do\x20list')}];}['_proxyIsEnabled'](_0x18af9f){return _0x18af9f['isEnabled']?_0x18af9f['isEnabled'](this['editor']):!_0x18af9f['commandName']||this['editor']['commands']['get'](_0x18af9f['commandName'])['isEnabled'];}['_proxyExecute'](_0x3d5125){if(_0x3d5125['execute'])_0x3d5125['execute'](this['editor']);else{if(!_0x3d5125['commandName'])throw new _0x2ab0c7('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x3d5125});this['editor']['execute'](_0x3d5125['commandName']);}}}function d(_0x7274b,_0x39033d){return _0x7274b['title']<_0x39033d['title']?-0x1:_0x7274b['title']>_0x39033d['title']?0x1:0x0;}function c(_0x4d618d,_0x3917ef){return _0x3917ef+'-'+_0x4d618d['toLowerCase']()['split']('\x20')['join']('-');}
@@ -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 slash-command/slashcommandediting
7
7
  */
8
- import { Plugin, type Editor } from 'ckeditor5/src/core';
9
- import SlashCommandConfig, { type SlashCommandDefinition } from './slashcommandconfig';
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
9
+ import SlashCommandConfig, { type SlashCommandDefinition } from './slashcommandconfig.js';
10
10
  /**
11
11
  * Provides the editing functionality of the {@link module:slash-command/slashcommand~SlashCommand} feature.
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 _0x45f3=['aliases','destroy','editor','concat','pluginName','includes','slashCommandLicenseKeyTrialLimit:operations','push','toLowerCase','filter','slash-command-invalid-license-key','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.','_licenseKeyCheckInterval','slashCommandLicenseKeyInvalid','SlashCommandEditing','licenseKey','slashCommandLicenseKeyTrial','requires','slashCommandLicenseKeyValid','SlashCommandConfig','description','info','get','title','isEnabled'];(function(_0x5d1375,_0x45f3f0){const _0x21e898=function(_0x3ed98a){while(--_0x3ed98a){_0x5d1375['push'](_0x5d1375['shift']());}};_0x21e898(++_0x45f3f0);}(_0x45f3,0x1eb));const _0x21e8=function(_0x5d1375,_0x45f3f0){_0x5d1375=_0x5d1375-0x0;let _0x21e898=_0x45f3[_0x5d1375];return _0x21e898;};import{Plugin as _0x507c8f}from'ckeditor5/src/core';import{CKEditorError as _0x334384}from'ckeditor5/src/utils';import _0x2c418e from'./slashcommandconfig';export default class e extends _0x507c8f{static get[_0x21e8('0xd')](){return _0x21e8('0x17');}static get[_0x21e8('0x1')](){return[_0x2c418e];}constructor(_0x3ecfd4){super(_0x3ecfd4),this[_0x21e8('0x15')]=null;}['init'](){const _0x9db0cf=this['editor'];this[_0x21e8('0x18')]=_0x9db0cf['config'][_0x21e8('0x6')](_0x21e8('0x18'));const _0x1f00dc=this['editor'];this[_0x21e8('0x15')]=setInterval(()=>{let _0x314af1;for(const _0x2b3e97 in _0x1f00dc){const _0xee55e3=_0x2b3e97,_0x3efaac=_0x1f00dc[_0xee55e3];if(_0x21e8('0x0')===_0x3efaac||_0x21e8('0x16')===_0x3efaac||_0x21e8('0x2')===_0x3efaac||_0x21e8('0xf')===_0x3efaac){delete _0x1f00dc[_0xee55e3],_0x314af1=_0x3efaac;break;}}if(_0x21e8('0x16')===_0x314af1)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x334384(_0x21e8('0x13'),null);if(_0x21e8('0x0')===_0x314af1&&console[_0x21e8('0x5')](_0x21e8('0x14')),_0x21e8('0xf')===_0x314af1)throw clearInterval(this[_0x21e8('0x15')]),new _0x334384('slash-command-trial-license-key-reached-limit-changes',null);'slashCommandLicenseKeyValid'===_0x314af1&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}[_0x21e8('0xa')](){this['_licenseKeyCheckInterval']&&clearInterval(this[_0x21e8('0x15')]);}['getMatchingCommands'](_0x50966a){const _0x57ddcc=_0x50966a&&_0x50966a[_0x21e8('0x11')]();let _0x4b644d=this[_0x21e8('0xb')]['plugins'][_0x21e8('0x6')](_0x21e8('0x3'))['getAllowedCommands']();if(_0x4b644d=_0x4b644d[_0x21e8('0x12')](_0x4c0950=>_0x4c0950[_0x21e8('0x8')]()),_0x57ddcc){const _0x3bc22d=[],_0x1f5011=[],_0x4c30ae=[],_0x42b7e7=[];for(const _0x56d8c1 of _0x4b644d)_0x56d8c1['id'][_0x21e8('0x11')]()['includes'](_0x57ddcc)?_0x3bc22d[_0x21e8('0x10')](_0x56d8c1):_0x56d8c1[_0x21e8('0x7')][_0x21e8('0x11')]()[_0x21e8('0xe')](_0x57ddcc)?_0x1f5011[_0x21e8('0x10')](_0x56d8c1):_0x56d8c1[_0x21e8('0x9')]&&_0x56d8c1[_0x21e8('0x9')]['some'](_0x436330=>_0x436330[_0x21e8('0x11')]()['includes'](_0x57ddcc))?_0x4c30ae['push'](_0x56d8c1):_0x56d8c1[_0x21e8('0x4')]&&_0x56d8c1[_0x21e8('0x4')]['toLowerCase']()[_0x21e8('0xe')](_0x57ddcc)&&_0x42b7e7[_0x21e8('0x10')](_0x56d8c1);_0x4b644d=_0x3bc22d[_0x21e8('0xc')](_0x1f5011,_0x4c30ae,_0x42b7e7);}return _0x4b644d;}}
23
+ const _0x3630=['requires','info','description','getMatchingCommands','destroy','init','aliases','licenseKey','includes','SlashCommandEditing','slashCommandLicenseKeyTrialLimit:operations','slashCommandLicenseKeyValid','push','get','slash-command-trial-license-key-reached-limit-changes','toLowerCase','slashCommandLicenseKeyInvalid','slash-command-invalid-license-key','getAllowedCommands','filter','plugins','config','pluginName','isEnabled','_licenseKeyCheckInterval','editor'];(function(_0x2f6d10,_0x36300e){const _0x3c45ae=function(_0x6d33e5){while(--_0x6d33e5){_0x2f6d10['push'](_0x2f6d10['shift']());}};_0x3c45ae(++_0x36300e);}(_0x3630,0x12b));const _0x3c45=function(_0x2f6d10,_0x36300e){_0x2f6d10=_0x2f6d10-0x0;let _0x3c45ae=_0x3630[_0x2f6d10];return _0x3c45ae;};import{Plugin as _0x1b24d8}from'ckeditor5/src/core.js';import{CKEditorError as _0x4e8aee}from'ckeditor5/src/utils.js';import _0x4957df from'./slashcommandconfig.js';export default class e extends _0x1b24d8{static get[_0x3c45('0x9')](){return _0x3c45('0x16');}static get[_0x3c45('0xd')](){return[_0x4957df];}constructor(_0xc57701){super(_0xc57701),this[_0x3c45('0xb')]=null;}[_0x3c45('0x12')](){const _0x2526a5=this[_0x3c45('0xc')];this[_0x3c45('0x14')]=_0x2526a5[_0x3c45('0x8')]['get'](_0x3c45('0x14'));const _0x14babf=this[_0x3c45('0xc')];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1e29a7;for(const _0x8afef9 in _0x14babf){const _0x211c64=_0x8afef9,_0x433045=_0x14babf[_0x211c64];if('slashCommandLicenseKeyTrial'===_0x433045||_0x3c45('0x3')===_0x433045||_0x3c45('0x18')===_0x433045||_0x3c45('0x17')===_0x433045){delete _0x14babf[_0x211c64],_0x1e29a7=_0x433045;break;}}if(_0x3c45('0x3')===_0x1e29a7)throw clearInterval(this[_0x3c45('0xb')]),new _0x4e8aee(_0x3c45('0x4'),null);if('slashCommandLicenseKeyTrial'===_0x1e29a7&&console[_0x3c45('0xe')]('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.'),'slashCommandLicenseKeyTrialLimit:operations'===_0x1e29a7)throw clearInterval(this[_0x3c45('0xb')]),new _0x4e8aee(_0x3c45('0x1'),null);_0x3c45('0x18')===_0x1e29a7&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}[_0x3c45('0x11')](){this[_0x3c45('0xb')]&&clearInterval(this[_0x3c45('0xb')]);}[_0x3c45('0x10')](_0x5834d2){const _0x4e0055=_0x5834d2&&_0x5834d2[_0x3c45('0x2')]();let _0x159e1e=this[_0x3c45('0xc')][_0x3c45('0x7')][_0x3c45('0x0')]('SlashCommandConfig')[_0x3c45('0x5')]();if(_0x159e1e=_0x159e1e[_0x3c45('0x6')](_0x28772d=>_0x28772d[_0x3c45('0xa')]()),_0x4e0055){const _0x3ca0a8=[],_0x5b3acc=[],_0x48d103=[],_0x549f2a=[];for(const _0x5b043e of _0x159e1e)_0x5b043e['id'][_0x3c45('0x2')]()[_0x3c45('0x15')](_0x4e0055)?_0x3ca0a8['push'](_0x5b043e):_0x5b043e['title'][_0x3c45('0x2')]()[_0x3c45('0x15')](_0x4e0055)?_0x5b3acc['push'](_0x5b043e):_0x5b043e[_0x3c45('0x13')]&&_0x5b043e[_0x3c45('0x13')]['some'](_0x3bebcb=>_0x3bebcb['toLowerCase']()[_0x3c45('0x15')](_0x4e0055))?_0x48d103[_0x3c45('0x19')](_0x5b043e):_0x5b043e[_0x3c45('0xf')]&&_0x5b043e[_0x3c45('0xf')]['toLowerCase']()[_0x3c45('0x15')](_0x4e0055)&&_0x549f2a['push'](_0x5b043e);_0x159e1e=_0x3ca0a8['concat'](_0x5b3acc,_0x48d103,_0x549f2a);}return _0x159e1e;}}
@@ -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 slash-command/slashcommandeditorconfig
7
7
  * @publicApi
8
8
  */
9
- import type { SlashCommandDefinition } from './slashcommandconfig';
9
+ import type { SlashCommandDefinition } from './slashcommandconfig.js';
10
10
  /**
11
11
  * The configuration of the slash command feature.
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
  *
@@ -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 slash-command/slashcommandui
7
7
  */
8
- import { Plugin, type Editor } from 'ckeditor5/src/core';
9
- import './slashcommandeditorconfig';
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
9
+ import './slashcommandeditorconfig.js';
10
10
  import '../theme/slashcommand.css';
11
11
  /**
12
12
  * Provides the UI functionality of the {@link module:slash-command/slashcommand~SlashCommand} feature.