@ckeditor/ckeditor5-slash-command 40.2.0 → 41.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/README.md +1 -1
- package/build/slash-command.js +3 -3
- package/lang/translations/ar.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/uz.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +5 -14
- package/src/augmentation.d.ts +2 -2
- package/src/augmentation.js +1 -1
- package/src/index.d.ts +7 -7
- package/src/index.js +2 -2
- package/src/slashcommand.d.ts +4 -4
- package/src/slashcommand.js +2 -2
- package/src/slashcommandconfig.d.ts +3 -3
- package/src/slashcommandconfig.js +2 -2
- package/src/slashcommandediting.d.ts +3 -3
- package/src/slashcommandediting.js +2 -2
- package/src/slashcommandeditorconfig.d.ts +2 -2
- package/src/slashcommandeditorconfig.js +1 -1
- package/src/slashcommandui.d.ts +3 -3
- package/src/slashcommandui.js +2 -2
- package/src/ui/slashcommandbuttonview.d.ts +4 -4
- package/src/ui/slashcommandbuttonview.js +2 -2
- package/theme/slashcommand.css +1 -1
package/lang/translations/ko.po
CHANGED
package/lang/translations/lt.po
CHANGED
package/lang/translations/lv.po
CHANGED
package/lang/translations/ms.po
CHANGED
package/lang/translations/nl.po
CHANGED
package/lang/translations/no.po
CHANGED
package/lang/translations/pl.po
CHANGED
package/lang/translations/pt.po
CHANGED
package/lang/translations/ro.po
CHANGED
package/lang/translations/ru.po
CHANGED
package/lang/translations/sk.po
CHANGED
package/lang/translations/sr.po
CHANGED
package/lang/translations/sv.po
CHANGED
package/lang/translations/th.po
CHANGED
package/lang/translations/tr.po
CHANGED
package/lang/translations/uk.po
CHANGED
package/lang/translations/uz.po
CHANGED
package/lang/translations/vi.po
CHANGED
package/lang/translations/zh.po
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-slash-command",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "41.0.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-
|
|
15
|
-
"
|
|
16
|
-
"
|
|
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.0.0",
|
|
16
|
+
"ckeditor5": "41.0.0",
|
|
17
|
+
"ckeditor5-collaboration": "41.0.0"
|
|
27
18
|
},
|
|
28
19
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
29
20
|
"author": "CKSource (http://cksource.com/)",
|
package/src/augmentation.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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
|
/**
|
package/src/augmentation.js
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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-
|
|
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';
|
package/src/slashcommand.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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.
|
package/src/slashcommand.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
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
|
|
23
|
+
var _0x3e43=['pluginName','SlashCommand'];(function(_0x33d97e,_0x3e43f7){var _0x4db728=function(_0x3cf424){while(--_0x3cf424){_0x33d97e['push'](_0x33d97e['shift']());}};_0x4db728(++_0x3e43f7);}(_0x3e43,0x13d));var _0x4db7=function(_0x33d97e,_0x3e43f7){_0x33d97e=_0x33d97e-0x0;var _0x4db728=_0x3e43[_0x33d97e];return _0x4db728;};import{Plugin as _0x2e9170}from'ckeditor5/src/core.js';import _0x1b5b35 from'./slashcommandediting.js';import _0x4aca0 from'./slashcommandui.js';export default class m extends _0x2e9170{static get['requires'](){return['Mention',_0x1b5b35,_0x4aca0];}static get[_0x4db7('0x1')](){return _0x4db7('0x0');}}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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-
|
|
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{
|
|
23
|
+
import{icons as _0x3a9257,Plugin as _0x1156be}from'ckeditor5/src/core.js';import{icons as _0x7b54d8}from'ckeditor5-collaboration/src/collaboration-core.js';import{CKEditorError as _0x490bb0}from'ckeditor5/src/utils.js';import'./slashcommandeditorconfig.js';export default class o extends _0x1156be{static get['pluginName'](){return'SlashCommandConfig';}constructor(_0x151717){super(_0x151717),this['_allowedCommands']=null;}['afterInit'](){const _0xb33785=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0xf264a8=function(_0x2c6250){let _0x44214b=['heading4','heading5','heading6'];if(_0x2c6250){const _0x4a489e=_0x2c6250['map'](_0xb5e356=>_0xb5e356['model']);_0x44214b=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0xccac68=>!_0x4a489e['includes'](_0xccac68));}return _0x44214b;}(this['editor']['config']['get']('heading.options'));let _0x11deea=this['getDefaultCommands']()['filter'](_0x383ff6=>!_0xf264a8['includes'](_0x383ff6['id']))['filter'](_0x212c51=>!_0xb33785['includes'](_0x212c51['commandName']));const _0x398440=this['editor']['config']['get']('slashCommand.extraCommands');_0x398440&&_0x398440['length']&&(_0x11deea=_0x11deea['concat'](_0x398440));const _0x2d2840=this['editor']['config']['get']('template.definitions');_0x2d2840&&_0x2d2840['length']&&(_0x11deea=_0x11deea['concat'](function(_0x59d4bf){return _0x59d4bf['map'](_0x1dcfc3=>{const {title:_0x31cee6,icon:_0x5be3a0,description:_0x4f24b5,data:_0x17a0f2}=_0x1dcfc3,_0x893781={'id':c(_0x31cee6,'template'),'commandName':'insertTemplate','execute':_0x3f3d91=>{_0x3f3d91['execute']('insertTemplate',_0x17a0f2);},'description':_0x4f24b5,'icon':_0x5be3a0,'title':_0x31cee6};return _0x5be3a0&&(_0x893781['isIconColorInherited']=!0x1),_0x893781;});}(_0x2d2840)));const _0x5b9dfc=this['editor']['config']['get']('style.definitions');_0x5b9dfc&&_0x5b9dfc['length']&&(_0x11deea=_0x11deea['concat'](function(_0x585590){return _0x585590['map'](_0x166b64=>({'id':c(_0x166b64['name'],'style'),'commandName':'style','execute':_0x40c9c5=>{_0x40c9c5['execute']('style',{'styleName':_0x166b64['name']});},'isEnabled':_0xaa7ac2=>{const _0x34f89a=_0xaa7ac2['commands']['get']('style');return _0x34f89a['isEnabled']&&_0x34f89a['enabledStyles']['includes'](_0x166b64['name']);},'title':_0x166b64['name']}));}(_0x5b9dfc)));const _0x388eaf=_0x11deea['filter'](_0x8aa597=>!_0x8aa597['commandName']||void 0x0!==this['editor']['commands']['get'](_0x8aa597['commandName'])),_0x141452=[];for(const _0x4b01a8 of _0x388eaf)_0x141452['push']({'id':_0x4b01a8['id'],'commandName':_0x4b01a8['commandName'],'title':'function'==typeof _0x4b01a8['title']?_0x4b01a8['title'](this['editor']):_0x4b01a8['title'],'description':_0x4b01a8['description'],'icon':_0x4b01a8['icon'],'isIconColorInherited':_0x4b01a8['isIconColorInherited'],'aliases':_0x4b01a8['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x4b01a8),'execute':()=>this['_proxyExecute'](_0x4b01a8)});this['_allowedCommands']=_0x141452['sort'](d);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const t=this['editor']['t'],_0x3d848e=this['editor']['locale']['t'];return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x7b54d8['robotPencil'],'title':_0x3d848e('AI\x20Assistant'),'description':t('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x577e57=>{setTimeout(()=>_0x577e57['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x3a9257['quote'],'title':_0x3d848e('Block\x20quote'),'description':t('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x3a9257['bulletedList'],'title':_0x3d848e('Bulleted\x20list'),'description':t('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x3a9257['codeBlock'],'title':_0x3d848e('Insert\x20code\x20block'),'description':t('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x3a9257['browseFiles'],'title':_0x3d848e('Open\x20file\x20manager'),'description':t('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x3a9257['browseFiles'],'title':_0x3d848e('Insert\x20image'),'description':t('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'heading1','commandName':'heading','icon':_0x3a9257['heading1'],'title':_0x3d848e('Heading\x201'),'description':t('Create\x20a\x20heading\x20level\x201'),'execute':_0x5a389f=>{_0x5a389f['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x3a9257['heading2'],'title':_0x3d848e('Heading\x202'),'description':t('Create\x20a\x20heading\x20level\x202'),'execute':_0x11922d=>{_0x11922d['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x3a9257['heading3'],'title':_0x3d848e('Heading\x203'),'description':t('Create\x20a\x20heading\x20level\x203'),'execute':_0x20e74b=>{_0x20e74b['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x3a9257['heading4'],'title':_0x3d848e('Heading\x204'),'description':t('Create\x20a\x20heading\x20level\x204'),'execute':_0x201251=>{_0x201251['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x3a9257['heading5'],'title':_0x3d848e('Heading\x205'),'description':t('Create\x20a\x20heading\x20level\x205'),'execute':_0x5208e4=>{_0x5208e4['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x3a9257['heading6'],'title':_0x3d848e('Heading\x206'),'description':t('Create\x20a\x20heading\x20level\x206'),'execute':_0x144ae7=>{_0x144ae7['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x3a9257['horizontalLine'],'title':_0x3d848e('Horizontal\x20line'),'description':t('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x3a9257['html'],'title':_0x3d848e('Insert\x20HTML'),'description':t('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x3a9257['indent'],'title':_0x3d848e('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':_0x3a9257['table'],'title':_0x3d848e('Insert\x20table'),'description':t('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x7b54d8['tableOfContents'],'title':_0x3d848e('Table\x20of\x20contents'),'description':t('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x3a9257['numberedList'],'title':_0x3d848e('Numbered\x20list'),'description':t('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x3a9257['outdent'],'title':_0x3d848e('Decrease\x20indent'),'description':t('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x3a9257['paragraph'],'title':_0x3d848e('Paragraph'),'description':t('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x3a9257['todoList'],'title':_0x3d848e('To-do\x20list'),'description':t('Create\x20a\x20to-do\x20list')}];}['_proxyIsEnabled'](_0x2ffa0d){return _0x2ffa0d['isEnabled']?_0x2ffa0d['isEnabled'](this['editor']):!_0x2ffa0d['commandName']||this['editor']['commands']['get'](_0x2ffa0d['commandName'])['isEnabled'];}['_proxyExecute'](_0x453864){if(_0x453864['execute'])_0x453864['execute'](this['editor']);else{if(!_0x453864['commandName'])throw new _0x490bb0('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x453864});this['editor']['execute'](_0x453864['commandName']);}}}function d(_0x3a49f3,_0x11d62e){return _0x3a49f3['title']<_0x11d62e['title']?-0x1:_0x3a49f3['title']>_0x11d62e['title']?0x1:0x0;}function c(_0x4de276,_0x1e994c){return _0x1e994c+'-'+_0x4de276['toLowerCase']()['split']('\x20')['join']('-');}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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-
|
|
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
|
|
23
|
+
const _0x64e7=['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.','plugins','_licenseKeyCheckInterval','config','concat','requires','get','init','pluginName','isEnabled','getMatchingCommands','includes','SlashCommandConfig','slashCommandLicenseKeyInvalid','title','push','destroy','slash-command-invalid-license-key','slashCommandLicenseKeyTrial','editor','licenseKey','description','toLowerCase','filter','slashCommandLicenseKeyValid','slashCommandLicenseKeyTrialLimit:operations','aliases','getAllowedCommands'];(function(_0x287245,_0x64e784){const _0x5b9ed9=function(_0x5f4dbf){while(--_0x5f4dbf){_0x287245['push'](_0x287245['shift']());}};_0x5b9ed9(++_0x64e784);}(_0x64e7,0x10e));const _0x5b9e=function(_0x287245,_0x64e784){_0x287245=_0x287245-0x0;let _0x5b9ed9=_0x64e7[_0x287245];return _0x5b9ed9;};import{Plugin as _0x5ed1b1}from'ckeditor5/src/core.js';import{CKEditorError as _0x301f81}from'ckeditor5/src/utils.js';import _0x30c191 from'./slashcommandconfig.js';export default class e extends _0x5ed1b1{static get[_0x5b9e('0x12')](){return'SlashCommandEditing';}static get[_0x5b9e('0xf')](){return[_0x30c191];}constructor(_0x223587){super(_0x223587),this[_0x5b9e('0xc')]=null;}[_0x5b9e('0x11')](){const _0x2b55d3=this[_0x5b9e('0x1')];this['licenseKey']=_0x2b55d3[_0x5b9e('0xd')]['get'](_0x5b9e('0x2'));const _0x5bacb4=this[_0x5b9e('0x1')];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2c1cd2;for(const _0x4c9d3b in _0x5bacb4){const _0x257dcf=_0x4c9d3b,_0x43c4f8=_0x5bacb4[_0x257dcf];if(_0x5b9e('0x0')===_0x43c4f8||_0x5b9e('0x17')===_0x43c4f8||_0x5b9e('0x6')===_0x43c4f8||'slashCommandLicenseKeyTrialLimit:operations'===_0x43c4f8){delete _0x5bacb4[_0x257dcf],_0x2c1cd2=_0x43c4f8;break;}}if(_0x5b9e('0x17')===_0x2c1cd2)throw clearInterval(this[_0x5b9e('0xc')]),new _0x301f81(_0x5b9e('0x1b'),null);if(_0x5b9e('0x0')===_0x2c1cd2&&console['info'](_0x5b9e('0xa')),_0x5b9e('0x7')===_0x2c1cd2)throw clearInterval(this[_0x5b9e('0xc')]),new _0x301f81('slash-command-trial-license-key-reached-limit-changes',null);_0x5b9e('0x6')===_0x2c1cd2&&clearInterval(this[_0x5b9e('0xc')]);},0x3e8);}[_0x5b9e('0x1a')](){this[_0x5b9e('0xc')]&&clearInterval(this[_0x5b9e('0xc')]);}[_0x5b9e('0x14')](_0x358885){const _0x9aba2b=_0x358885&&_0x358885[_0x5b9e('0x4')]();let _0x58a7ce=this['editor'][_0x5b9e('0xb')][_0x5b9e('0x10')](_0x5b9e('0x16'))[_0x5b9e('0x9')]();if(_0x58a7ce=_0x58a7ce[_0x5b9e('0x5')](_0x201da9=>_0x201da9[_0x5b9e('0x13')]()),_0x9aba2b){const _0x279e05=[],_0x7a12c6=[],_0x5e6f19=[],_0x4021bc=[];for(const _0x322730 of _0x58a7ce)_0x322730['id'][_0x5b9e('0x4')]()[_0x5b9e('0x15')](_0x9aba2b)?_0x279e05['push'](_0x322730):_0x322730[_0x5b9e('0x18')][_0x5b9e('0x4')]()[_0x5b9e('0x15')](_0x9aba2b)?_0x7a12c6[_0x5b9e('0x19')](_0x322730):_0x322730[_0x5b9e('0x8')]&&_0x322730[_0x5b9e('0x8')]['some'](_0x495d72=>_0x495d72[_0x5b9e('0x4')]()['includes'](_0x9aba2b))?_0x5e6f19[_0x5b9e('0x19')](_0x322730):_0x322730[_0x5b9e('0x3')]&&_0x322730[_0x5b9e('0x3')][_0x5b9e('0x4')]()['includes'](_0x9aba2b)&&_0x4021bc[_0x5b9e('0x19')](_0x322730);_0x58a7ce=_0x279e05[_0x5b9e('0xe')](_0x7a12c6,_0x5e6f19,_0x4021bc);}return _0x58a7ce;}}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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
|
*
|
package/src/slashcommandui.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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.
|