@ckeditor/ckeditor5-slash-command 40.0.0 → 40.2.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.
Files changed (102) hide show
  1. package/LICENSE.md +4 -4
  2. package/README.md +1 -1
  3. package/build/slash-command.js +2 -2
  4. package/build/translations/ar.js +1 -1
  5. package/build/translations/bg.js +1 -1
  6. package/build/translations/bn.js +1 -1
  7. package/build/translations/ca.js +1 -1
  8. package/build/translations/cs.js +1 -1
  9. package/build/translations/da.js +1 -1
  10. package/build/translations/de.js +1 -1
  11. package/build/translations/el.js +1 -1
  12. package/build/translations/en-au.js +1 -1
  13. package/build/translations/es.js +1 -1
  14. package/build/translations/et.js +1 -1
  15. package/build/translations/fi.js +1 -1
  16. package/build/translations/fr.js +1 -1
  17. package/build/translations/gl.js +1 -1
  18. package/build/translations/he.js +1 -1
  19. package/build/translations/hi.js +1 -1
  20. package/build/translations/hr.js +1 -1
  21. package/build/translations/hu.js +1 -1
  22. package/build/translations/id.js +1 -1
  23. package/build/translations/it.js +1 -1
  24. package/build/translations/ja.js +1 -1
  25. package/build/translations/ko.js +1 -1
  26. package/build/translations/lt.js +1 -1
  27. package/build/translations/lv.js +1 -1
  28. package/build/translations/ms.js +1 -1
  29. package/build/translations/nl.js +1 -1
  30. package/build/translations/no.js +1 -1
  31. package/build/translations/pl.js +1 -1
  32. package/build/translations/pt-br.js +1 -1
  33. package/build/translations/pt.js +1 -1
  34. package/build/translations/ro.js +1 -1
  35. package/build/translations/ru.js +1 -1
  36. package/build/translations/sk.js +1 -1
  37. package/build/translations/sr.js +1 -1
  38. package/build/translations/sv.js +1 -1
  39. package/build/translations/th.js +1 -1
  40. package/build/translations/tr.js +1 -1
  41. package/build/translations/uk.js +1 -1
  42. package/build/translations/uz.js +1 -1
  43. package/build/translations/vi.js +1 -1
  44. package/build/translations/zh-cn.js +1 -1
  45. package/build/translations/zh.js +1 -1
  46. package/lang/translations/ar.po +4 -0
  47. package/lang/translations/bg.po +4 -0
  48. package/lang/translations/bn.po +4 -0
  49. package/lang/translations/ca.po +4 -0
  50. package/lang/translations/cs.po +4 -0
  51. package/lang/translations/da.po +4 -0
  52. package/lang/translations/de.po +4 -0
  53. package/lang/translations/el.po +4 -0
  54. package/lang/translations/en-au.po +4 -0
  55. package/lang/translations/en.po +4 -0
  56. package/lang/translations/es.po +4 -0
  57. package/lang/translations/et.po +4 -0
  58. package/lang/translations/fi.po +4 -0
  59. package/lang/translations/fr.po +4 -0
  60. package/lang/translations/gl.po +4 -0
  61. package/lang/translations/he.po +4 -0
  62. package/lang/translations/hi.po +4 -0
  63. package/lang/translations/hr.po +4 -0
  64. package/lang/translations/hu.po +4 -0
  65. package/lang/translations/id.po +4 -0
  66. package/lang/translations/it.po +4 -0
  67. package/lang/translations/ja.po +4 -0
  68. package/lang/translations/ko.po +4 -0
  69. package/lang/translations/lt.po +4 -0
  70. package/lang/translations/lv.po +4 -0
  71. package/lang/translations/ms.po +4 -0
  72. package/lang/translations/nl.po +4 -0
  73. package/lang/translations/no.po +4 -0
  74. package/lang/translations/pl.po +4 -0
  75. package/lang/translations/pt-br.po +4 -0
  76. package/lang/translations/pt.po +4 -0
  77. package/lang/translations/ro.po +4 -0
  78. package/lang/translations/ru.po +4 -0
  79. package/lang/translations/sk.po +4 -0
  80. package/lang/translations/sr.po +4 -0
  81. package/lang/translations/sv.po +4 -0
  82. package/lang/translations/th.po +4 -0
  83. package/lang/translations/tr.po +4 -0
  84. package/lang/translations/uk.po +4 -0
  85. package/lang/translations/uz.po +4 -0
  86. package/lang/translations/vi.po +4 -0
  87. package/lang/translations/zh-cn.po +4 -0
  88. package/lang/translations/zh.po +4 -0
  89. package/package.json +14 -14
  90. package/src/augmentation.d.ts +21 -21
  91. package/src/index.d.ts +13 -13
  92. package/src/slashcommand.d.ts +29 -29
  93. package/src/slashcommand.js +1 -1
  94. package/src/slashcommandconfig.d.ts +242 -242
  95. package/src/slashcommandconfig.js +1 -1
  96. package/src/slashcommandediting.d.ts +41 -41
  97. package/src/slashcommandediting.js +1 -1
  98. package/src/slashcommandeditorconfig.d.ts +96 -96
  99. package/src/slashcommandui.d.ts +33 -33
  100. package/src/slashcommandui.js +1 -1
  101. package/src/ui/slashcommandbuttonview.d.ts +31 -31
  102. 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 _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;}}
23
+ const _0x1150=['_createTextPartView','isColorInherited','labelView','ck-slash-command-button','ck-slash-command-button__text-part','textPartView','span','render','children','isIconColorInherited','add','ck-slash-command-button__description','title'];(function(_0x180bf4,_0x1150a9){const _0xecc0e3=function(_0x2caab5){while(--_0x2caab5){_0x180bf4['push'](_0x180bf4['shift']());}};_0xecc0e3(++_0x1150a9);}(_0x1150,0xc9));const _0xecc0=function(_0x180bf4,_0x1150a9){_0x180bf4=_0x180bf4-0x0;let _0xecc0e3=_0x1150[_0x180bf4];return _0xecc0e3;};import{View as _0xf5e616,ButtonView as _0x1f5e95}from'ckeditor5/src/ui';import _0xb5fd6a from'../../theme/icons/play.svg';export default class S extends _0x1f5e95{constructor(_0x596761,_0x54dc80){super(_0x596761),this['textPartView']=this['_createTextPartView'](_0x596761,_0x54dc80),void 0x0!==_0x54dc80[_0xecc0('0x3')]&&(this['iconView'][_0xecc0('0x8')]=_0x54dc80['isIconColorInherited']),this['set']({'icon':_0x54dc80['icon']||_0xb5fd6a,'withText':!0x0,'label':_0x54dc80[_0xecc0('0x6')],'class':_0xecc0('0xa')});}['render'](){super[_0xecc0('0x1')](),this[_0xecc0('0x2')][_0xecc0('0x4')](this[_0xecc0('0xc')]);}[_0xecc0('0x7')](_0xcb9da2,_0x199796){const _0x1bf754=new _0xf5e616(_0xcb9da2);return _0x1bf754['setTemplate']({'tag':'div','attributes':{'class':['ck',_0xecc0('0xb')]},'children':_0x199796['description']?[this['labelView'],{'tag':_0xecc0('0x0'),'attributes':{'class':['ck',_0xecc0('0x5')]},'children':[{'text':_0x199796['description']}]}]:[this[_0xecc0('0x9')]]}),_0x1bf754;}}