@ckeditor/ckeditor5-slash-command 40.0.0 → 40.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.
- package/LICENSE.md +4 -4
- package/build/slash-command.js +2 -2
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/uz.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/translations/ar.po +4 -0
- package/lang/translations/bg.po +4 -0
- package/lang/translations/bn.po +4 -0
- package/lang/translations/ca.po +4 -0
- package/lang/translations/cs.po +4 -0
- package/lang/translations/da.po +4 -0
- package/lang/translations/de.po +4 -0
- package/lang/translations/el.po +4 -0
- package/lang/translations/en-au.po +4 -0
- package/lang/translations/en.po +4 -0
- package/lang/translations/es.po +4 -0
- package/lang/translations/et.po +4 -0
- package/lang/translations/fi.po +4 -0
- package/lang/translations/fr.po +4 -0
- package/lang/translations/gl.po +4 -0
- package/lang/translations/he.po +4 -0
- package/lang/translations/hi.po +4 -0
- package/lang/translations/hr.po +4 -0
- package/lang/translations/hu.po +4 -0
- package/lang/translations/id.po +4 -0
- package/lang/translations/it.po +4 -0
- package/lang/translations/ja.po +4 -0
- package/lang/translations/ko.po +4 -0
- package/lang/translations/lt.po +4 -0
- package/lang/translations/lv.po +4 -0
- package/lang/translations/ms.po +4 -0
- package/lang/translations/nl.po +4 -0
- package/lang/translations/no.po +4 -0
- package/lang/translations/pl.po +4 -0
- package/lang/translations/pt-br.po +4 -0
- package/lang/translations/pt.po +4 -0
- package/lang/translations/ro.po +4 -0
- package/lang/translations/ru.po +4 -0
- package/lang/translations/sk.po +4 -0
- package/lang/translations/sr.po +4 -0
- package/lang/translations/sv.po +4 -0
- package/lang/translations/th.po +4 -0
- package/lang/translations/tr.po +4 -0
- package/lang/translations/uk.po +4 -0
- package/lang/translations/uz.po +4 -0
- package/lang/translations/vi.po +4 -0
- package/lang/translations/zh-cn.po +4 -0
- package/lang/translations/zh.po +4 -0
- package/package.json +14 -14
- package/src/augmentation.d.ts +21 -21
- package/src/index.d.ts +13 -13
- package/src/slashcommand.d.ts +29 -29
- package/src/slashcommand.js +1 -1
- package/src/slashcommandconfig.d.ts +242 -242
- package/src/slashcommandconfig.js +1 -1
- package/src/slashcommandediting.d.ts +41 -41
- package/src/slashcommandediting.js +1 -1
- package/src/slashcommandeditorconfig.d.ts +96 -96
- package/src/slashcommandui.d.ts +33 -33
- package/src/slashcommandui.js +1 -1
- package/src/ui/slashcommandbuttonview.d.ts +31 -31
- package/src/ui/slashcommandbuttonview.js +1 -1
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module slash-command/ui/slashcommandbuttonview
|
|
7
|
-
*/
|
|
8
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
|
9
|
-
import { View, ButtonView } from 'ckeditor5/src/ui';
|
|
10
|
-
import type { SlashCommandDefinition } from '../slashcommandconfig';
|
|
11
|
-
/**
|
|
12
|
-
* A class representing an individual button (slash command) in the list.
|
|
13
|
-
*
|
|
14
|
-
* @extends module:ui/button/buttonview~ButtonView
|
|
15
|
-
*/
|
|
16
|
-
export default class SlashCommandButtonView extends ButtonView {
|
|
17
|
-
/**
|
|
18
|
-
* The view rendering the text part of the slash command button consisting of a title and an optional description.
|
|
19
|
-
*
|
|
20
|
-
* @protected
|
|
21
|
-
*/
|
|
22
|
-
textPartView: View;
|
|
23
|
-
/**
|
|
24
|
-
* Creates an instance of the {@link module:slash-command/ui/slashcommandbuttonview~SlashCommandButtonView} class.
|
|
25
|
-
*/
|
|
26
|
-
constructor(locale: Locale, commandDefinition: SlashCommandDefinition);
|
|
27
|
-
/**
|
|
28
|
-
* @inheritDoc
|
|
29
|
-
*/
|
|
30
|
-
render(): void;
|
|
31
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module slash-command/ui/slashcommandbuttonview
|
|
7
|
+
*/
|
|
8
|
+
import type { Locale } from 'ckeditor5/src/utils';
|
|
9
|
+
import { View, ButtonView } from 'ckeditor5/src/ui';
|
|
10
|
+
import type { SlashCommandDefinition } from '../slashcommandconfig';
|
|
11
|
+
/**
|
|
12
|
+
* A class representing an individual button (slash command) in the list.
|
|
13
|
+
*
|
|
14
|
+
* @extends module:ui/button/buttonview~ButtonView
|
|
15
|
+
*/
|
|
16
|
+
export default class SlashCommandButtonView extends ButtonView {
|
|
17
|
+
/**
|
|
18
|
+
* The view rendering the text part of the slash command button consisting of a title and an optional description.
|
|
19
|
+
*
|
|
20
|
+
* @protected
|
|
21
|
+
*/
|
|
22
|
+
textPartView: View;
|
|
23
|
+
/**
|
|
24
|
+
* Creates an instance of the {@link module:slash-command/ui/slashcommandbuttonview~SlashCommandButtonView} class.
|
|
25
|
+
*/
|
|
26
|
+
constructor(locale: Locale, commandDefinition: SlashCommandDefinition);
|
|
27
|
+
/**
|
|
28
|
+
* @inheritDoc
|
|
29
|
+
*/
|
|
30
|
+
render(): void;
|
|
31
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c5d=['ck-slash-command-button__description','render','icon','_createTextPartView','textPartView','isIconColorInherited','set','labelView','setTemplate','description','ck-slash-command-button','div'];(function(_0x135b21,_0x5c5d1f){const _0x441e13=function(_0x3598d7){while(--_0x3598d7){_0x135b21['push'](_0x135b21['shift']());}};_0x441e13(++_0x5c5d1f);}(_0x5c5d,0xb5));const _0x441e=function(_0x135b21,_0x5c5d1f){_0x135b21=_0x135b21-0x0;let _0x441e13=_0x5c5d[_0x135b21];return _0x441e13;};import{View as _0x339f91,ButtonView as _0x2a8dc9}from'ckeditor5/src/ui';import _0xcd2f8d from'../../theme/icons/play.svg';export default class S extends _0x2a8dc9{constructor(_0x89c27a,_0x40423e){super(_0x89c27a),this[_0x441e('0x3')]=this[_0x441e('0x2')](_0x89c27a,_0x40423e),void 0x0!==_0x40423e[_0x441e('0x4')]&&(this['iconView']['isColorInherited']=_0x40423e['isIconColorInherited']),this[_0x441e('0x5')]({'icon':_0x40423e[_0x441e('0x1')]||_0xcd2f8d,'withText':!0x0,'label':_0x40423e['title'],'class':_0x441e('0x9')});}[_0x441e('0x0')](){super[_0x441e('0x0')](),this['children']['add'](this[_0x441e('0x3')]);}['_createTextPartView'](_0x371a80,_0x3b278f){const _0xc91a33=new _0x339f91(_0x371a80);return _0xc91a33[_0x441e('0x7')]({'tag':_0x441e('0xa'),'attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x3b278f[_0x441e('0x8')]?[this[_0x441e('0x6')],{'tag':'span','attributes':{'class':['ck',_0x441e('0xb')]},'children':[{'text':_0x3b278f['description']}]}]:[this[_0x441e('0x6')]]}),_0xc91a33;}}
|