@ckeditor/ckeditor5-slash-command 38.1.0 → 38.1.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 +13 -13
- 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 _0x3d9e=['set','render','span','labelView','isColorInherited','setTemplate','children','_createTextPartView','div','textPartView','description','ck-slash-command-button__text-part','add','ck-slash-command-button','icon','isIconColorInherited'];(function(_0x23cfe5,_0x3d9ee9){const _0xa5aa80=function(_0xf91a99){while(--_0xf91a99){_0x23cfe5['push'](_0x23cfe5['shift']());}};_0xa5aa80(++_0x3d9ee9);}(_0x3d9e,0xfa));const _0xa5aa=function(_0x23cfe5,_0x3d9ee9){_0x23cfe5=_0x23cfe5-0x0;let _0xa5aa80=_0x3d9e[_0x23cfe5];return _0xa5aa80;};import{View as _0x34a25b,ButtonView as _0x3ede6e}from'ckeditor5/src/ui';import _0x1386d4 from'../../theme/icons/play.svg';export default class A extends _0x3ede6e{constructor(_0x502145,_0x4f0f33){super(_0x502145),this[_0xa5aa('0xf')]=this[_0xa5aa('0xd')](_0x502145,_0x4f0f33),void 0x0!==_0x4f0f33['isIconColorInherited']&&(this['iconView'][_0xa5aa('0xa')]=_0x4f0f33[_0xa5aa('0x5')]),this[_0xa5aa('0x6')]({'icon':_0x4f0f33[_0xa5aa('0x4')]||_0x1386d4,'withText':!0x0,'label':_0x4f0f33['title'],'class':_0xa5aa('0x3')});}['render'](){super[_0xa5aa('0x7')](),this[_0xa5aa('0xc')][_0xa5aa('0x2')](this[_0xa5aa('0xf')]);}[_0xa5aa('0xd')](_0x2d3b09,_0x1ba021){const _0x399a6f=new _0x34a25b(_0x2d3b09);return _0x399a6f[_0xa5aa('0xb')]({'tag':_0xa5aa('0xe'),'attributes':{'class':['ck',_0xa5aa('0x1')]},'children':_0x1ba021['description']?[this[_0xa5aa('0x9')],{'tag':_0xa5aa('0x8'),'attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x1ba021[_0xa5aa('0x0')]}]}]:[this[_0xa5aa('0x9')]]}),_0x399a6f;}}
|