@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.
@@ -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 _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;}}
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;}}