@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.
@@ -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 _0x510d=['description','labelView','children','div','isColorInherited','isIconColorInherited','render','ck-slash-command-button','_createTextPartView','iconView','set','textPartView','setTemplate','ck-slash-command-button__text-part'];(function(_0x295ea9,_0x510d37){const _0x5004d3=function(_0x4b730c){while(--_0x4b730c){_0x295ea9['push'](_0x295ea9['shift']());}};_0x5004d3(++_0x510d37);}(_0x510d,0x111));const _0x5004=function(_0x295ea9,_0x510d37){_0x295ea9=_0x295ea9-0x0;let _0x5004d3=_0x510d[_0x295ea9];return _0x5004d3;};import{View as _0x125a94,ButtonView as _0x3a87ca}from'ckeditor5/src/ui';import _0x403252 from'../../theme/icons/play.svg';export default class A extends _0x3a87ca{constructor(_0x2293e6,_0x1a7d7e){super(_0x2293e6),this['textPartView']=this[_0x5004('0x1')](_0x2293e6,_0x1a7d7e),void 0x0!==_0x1a7d7e[_0x5004('0xc')]&&(this[_0x5004('0x2')][_0x5004('0xb')]=_0x1a7d7e[_0x5004('0xc')]),this[_0x5004('0x3')]({'icon':_0x1a7d7e['icon']||_0x403252,'withText':!0x0,'label':_0x1a7d7e['title'],'class':_0x5004('0x0')});}[_0x5004('0xd')](){super[_0x5004('0xd')](),this[_0x5004('0x9')]['add'](this[_0x5004('0x4')]);}['_createTextPartView'](_0xcbd8ed,_0x50709f){const _0x4e74e7=new _0x125a94(_0xcbd8ed);return _0x4e74e7[_0x5004('0x5')]({'tag':_0x5004('0xa'),'attributes':{'class':['ck',_0x5004('0x6')]},'children':_0x50709f[_0x5004('0x7')]?[this[_0x5004('0x8')],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x50709f[_0x5004('0x7')]}]}]:[this[_0x5004('0x8')]]}),_0x4e74e7;}}
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;}}