@ckeditor/ckeditor5-slash-command 38.1.1 → 38.2.0-alpha.1
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/build/slash-command.js +1 -1
- package/package.json +14 -13
- package/src/augmentation.d.ts +21 -21
- package/src/index.d.ts +13 -13
- package/src/index.js +1 -1
- 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.js';
|
|
9
|
+
import { View, ButtonView } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import type { SlashCommandDefinition } from '../slashcommandconfig.js';
|
|
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 _0x10b5=['description','_createTextPartView','setTemplate','ck-slash-command-button__description','textPartView','iconView','isIconColorInherited','set','title','labelView','render','div','isColorInherited','ck-slash-command-button','add','children'];(function(_0x3a2567,_0x10b50d){const _0xa2ceaa=function(_0x4bef3a){while(--_0x4bef3a){_0x3a2567['push'](_0x3a2567['shift']());}};_0xa2ceaa(++_0x10b50d);}(_0x10b5,0x158));const _0xa2ce=function(_0x3a2567,_0x10b50d){_0x3a2567=_0x3a2567-0x0;let _0xa2ceaa=_0x10b5[_0x3a2567];return _0xa2ceaa;};import{View as _0x3f267e,ButtonView as _0x5247b8}from'ckeditor5/src/ui.js';import _0x4218c6 from'../../theme/icons/play.svg';export default class A extends _0x5247b8{constructor(_0x422e24,_0xa0efd8){super(_0x422e24),this['textPartView']=this[_0xa2ce('0x9')](_0x422e24,_0xa0efd8),void 0x0!==_0xa0efd8[_0xa2ce('0xe')]&&(this[_0xa2ce('0xd')][_0xa2ce('0x4')]=_0xa0efd8[_0xa2ce('0xe')]),this[_0xa2ce('0xf')]({'icon':_0xa0efd8['icon']||_0x4218c6,'withText':!0x0,'label':_0xa0efd8[_0xa2ce('0x0')],'class':_0xa2ce('0x5')});}['render'](){super[_0xa2ce('0x2')](),this[_0xa2ce('0x7')][_0xa2ce('0x6')](this[_0xa2ce('0xc')]);}[_0xa2ce('0x9')](_0x528615,_0x4d6a5a){const _0xfc2b6d=new _0x3f267e(_0x528615);return _0xfc2b6d[_0xa2ce('0xa')]({'tag':_0xa2ce('0x3'),'attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x4d6a5a[_0xa2ce('0x8')]?[this[_0xa2ce('0x1')],{'tag':'span','attributes':{'class':['ck',_0xa2ce('0xb')]},'children':[{'text':_0x4d6a5a[_0xa2ce('0x8')]}]}]:[this[_0xa2ce('0x1')]]}),_0xfc2b6d;}}
|