@ckeditor/ckeditor5-slash-command 40.0.0 → 40.2.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/README.md +1 -1
- 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 _0x1150=['_createTextPartView','isColorInherited','labelView','ck-slash-command-button','ck-slash-command-button__text-part','textPartView','span','render','children','isIconColorInherited','add','ck-slash-command-button__description','title'];(function(_0x180bf4,_0x1150a9){const _0xecc0e3=function(_0x2caab5){while(--_0x2caab5){_0x180bf4['push'](_0x180bf4['shift']());}};_0xecc0e3(++_0x1150a9);}(_0x1150,0xc9));const _0xecc0=function(_0x180bf4,_0x1150a9){_0x180bf4=_0x180bf4-0x0;let _0xecc0e3=_0x1150[_0x180bf4];return _0xecc0e3;};import{View as _0xf5e616,ButtonView as _0x1f5e95}from'ckeditor5/src/ui';import _0xb5fd6a from'../../theme/icons/play.svg';export default class S extends _0x1f5e95{constructor(_0x596761,_0x54dc80){super(_0x596761),this['textPartView']=this['_createTextPartView'](_0x596761,_0x54dc80),void 0x0!==_0x54dc80[_0xecc0('0x3')]&&(this['iconView'][_0xecc0('0x8')]=_0x54dc80['isIconColorInherited']),this['set']({'icon':_0x54dc80['icon']||_0xb5fd6a,'withText':!0x0,'label':_0x54dc80[_0xecc0('0x6')],'class':_0xecc0('0xa')});}['render'](){super[_0xecc0('0x1')](),this[_0xecc0('0x2')][_0xecc0('0x4')](this[_0xecc0('0xc')]);}[_0xecc0('0x7')](_0xcb9da2,_0x199796){const _0x1bf754=new _0xf5e616(_0xcb9da2);return _0x1bf754['setTemplate']({'tag':'div','attributes':{'class':['ck',_0xecc0('0xb')]},'children':_0x199796['description']?[this['labelView'],{'tag':_0xecc0('0x0'),'attributes':{'class':['ck',_0xecc0('0x5')]},'children':[{'text':_0x199796['description']}]}]:[this[_0xecc0('0x9')]]}),_0x1bf754;}}
|