@ckeditor/ckeditor5-slash-command 39.0.2 → 40.0.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.
@@ -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 _0x4f6b=['render','div','isIconColorInherited','setTemplate','ck-slash-command-button','icon','title','isColorInherited','span','_createTextPartView','description','iconView','ck-slash-command-button__description','labelView'];(function(_0x1a7625,_0x4f6bf7){const _0xc906d0=function(_0x2ae465){while(--_0x2ae465){_0x1a7625['push'](_0x1a7625['shift']());}};_0xc906d0(++_0x4f6bf7);}(_0x4f6b,0xd3));const _0xc906=function(_0x1a7625,_0x4f6bf7){_0x1a7625=_0x1a7625-0x0;let _0xc906d0=_0x4f6b[_0x1a7625];return _0xc906d0;};import{View as _0x555e2a,ButtonView as _0x35ffea}from'ckeditor5/src/ui';import _0x4ba391 from'../../theme/icons/play.svg';export default class A extends _0x35ffea{constructor(_0x512ba8,_0x1d9538){super(_0x512ba8),this['textPartView']=this['_createTextPartView'](_0x512ba8,_0x1d9538),void 0x0!==_0x1d9538[_0xc906('0x1')]&&(this[_0xc906('0xa')][_0xc906('0x6')]=_0x1d9538[_0xc906('0x1')]),this['set']({'icon':_0x1d9538[_0xc906('0x4')]||_0x4ba391,'withText':!0x0,'label':_0x1d9538[_0xc906('0x5')],'class':_0xc906('0x3')});}[_0xc906('0xd')](){super[_0xc906('0xd')](),this['children']['add'](this['textPartView']);}[_0xc906('0x8')](_0x90f846,_0x25d991){const _0x2df7c9=new _0x555e2a(_0x90f846);return _0x2df7c9[_0xc906('0x2')]({'tag':_0xc906('0x0'),'attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x25d991['description']?[this[_0xc906('0xc')],{'tag':_0xc906('0x7'),'attributes':{'class':['ck',_0xc906('0xb')]},'children':[{'text':_0x25d991[_0xc906('0x9')]}]}]:[this['labelView']]}),_0x2df7c9;}}
23
+ const _0x19d2=['div','isColorInherited','set','icon','children','ck-slash-command-button__text-part','render','isIconColorInherited','labelView','textPartView','title','iconView','description','span','_createTextPartView','ck-slash-command-button__description','add','ck-slash-command-button'];(function(_0x37afbc,_0x19d2fb){const _0x38531e=function(_0x1b33ac){while(--_0x1b33ac){_0x37afbc['push'](_0x37afbc['shift']());}};_0x38531e(++_0x19d2fb);}(_0x19d2,0x14e));const _0x3853=function(_0x37afbc,_0x19d2fb){_0x37afbc=_0x37afbc-0x0;let _0x38531e=_0x19d2[_0x37afbc];return _0x38531e;};import{View as _0x539a34,ButtonView as _0x440c67}from'ckeditor5/src/ui';import _0x25c60e from'../../theme/icons/play.svg';export default class S extends _0x440c67{constructor(_0x4a6299,_0x10fcdd){super(_0x4a6299),this['textPartView']=this[_0x3853('0x4')](_0x4a6299,_0x10fcdd),void 0x0!==_0x10fcdd[_0x3853('0xf')]&&(this[_0x3853('0x1')][_0x3853('0x9')]=_0x10fcdd[_0x3853('0xf')]),this[_0x3853('0xa')]({'icon':_0x10fcdd[_0x3853('0xb')]||_0x25c60e,'withText':!0x0,'label':_0x10fcdd[_0x3853('0x0')],'class':_0x3853('0x7')});}[_0x3853('0xe')](){super[_0x3853('0xe')](),this[_0x3853('0xc')][_0x3853('0x6')](this[_0x3853('0x11')]);}[_0x3853('0x4')](_0x5ef3cc,_0x37d524){const _0x24096f=new _0x539a34(_0x5ef3cc);return _0x24096f['setTemplate']({'tag':_0x3853('0x8'),'attributes':{'class':['ck',_0x3853('0xd')]},'children':_0x37d524['description']?[this[_0x3853('0x10')],{'tag':_0x3853('0x3'),'attributes':{'class':['ck',_0x3853('0x5')]},'children':[{'text':_0x37d524[_0x3853('0x2')]}]}]:[this[_0x3853('0x10')]]}),_0x24096f;}}
@@ -1,4 +1,8 @@
1
1
  /*
2
+ * What you're currently looking at is the source code of a legally protected, proprietary software.
3
+ * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
+ * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
+ *
2
6
  * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
7
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
8
  */