@ckeditor/ckeditor5-slash-command 39.0.1 → 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.
Files changed (63) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +7 -7
  3. package/build/slash-command.js +1 -1
  4. package/build/translations/pt-br.js +1 -1
  5. package/lang/contexts.json +2 -1
  6. package/lang/translations/ar.po +1 -0
  7. package/lang/translations/bg.po +1 -0
  8. package/lang/translations/bn.po +1 -0
  9. package/lang/translations/ca.po +1 -0
  10. package/lang/translations/cs.po +1 -0
  11. package/lang/translations/da.po +1 -0
  12. package/lang/translations/de.po +1 -0
  13. package/lang/translations/el.po +1 -0
  14. package/lang/translations/en-au.po +1 -0
  15. package/lang/translations/en.po +1 -0
  16. package/lang/translations/es.po +1 -0
  17. package/lang/translations/et.po +1 -0
  18. package/lang/translations/fi.po +1 -0
  19. package/lang/translations/fr.po +1 -0
  20. package/lang/translations/gl.po +1 -0
  21. package/lang/translations/he.po +1 -0
  22. package/lang/translations/hi.po +1 -0
  23. package/lang/translations/hr.po +1 -0
  24. package/lang/translations/hu.po +1 -0
  25. package/lang/translations/id.po +1 -0
  26. package/lang/translations/it.po +1 -0
  27. package/lang/translations/ja.po +1 -0
  28. package/lang/translations/ko.po +1 -0
  29. package/lang/translations/lt.po +1 -0
  30. package/lang/translations/lv.po +1 -0
  31. package/lang/translations/ms.po +1 -0
  32. package/lang/translations/nl.po +1 -0
  33. package/lang/translations/no.po +1 -0
  34. package/lang/translations/pl.po +1 -0
  35. package/lang/translations/pt-br.po +3 -2
  36. package/lang/translations/pt.po +1 -0
  37. package/lang/translations/ro.po +1 -0
  38. package/lang/translations/ru.po +1 -0
  39. package/lang/translations/sk.po +1 -0
  40. package/lang/translations/sr.po +1 -0
  41. package/lang/translations/sv.po +1 -0
  42. package/lang/translations/th.po +1 -0
  43. package/lang/translations/tr.po +1 -0
  44. package/lang/translations/uk.po +1 -0
  45. package/lang/translations/uz.po +1 -0
  46. package/lang/translations/vi.po +1 -0
  47. package/lang/translations/zh-cn.po +1 -0
  48. package/lang/translations/zh.po +1 -0
  49. package/package.json +14 -17
  50. package/src/augmentation.d.ts +21 -21
  51. package/src/index.d.ts +13 -13
  52. package/src/slashcommand.d.ts +29 -29
  53. package/src/slashcommand.js +1 -1
  54. package/src/slashcommandconfig.d.ts +242 -242
  55. package/src/slashcommandconfig.js +1 -1
  56. package/src/slashcommandediting.d.ts +41 -41
  57. package/src/slashcommandediting.js +1 -1
  58. package/src/slashcommandeditorconfig.d.ts +96 -96
  59. package/src/slashcommandui.d.ts +33 -33
  60. package/src/slashcommandui.js +1 -1
  61. package/src/ui/slashcommandbuttonview.d.ts +31 -31
  62. package/src/ui/slashcommandbuttonview.js +1 -1
  63. package/theme/slashcommand.css +4 -0
@@ -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 _0x487d=['span','setTemplate','ck-slash-command-button__description','render','isIconColorInherited','set','icon','ck-slash-command-button','_createTextPartView','isColorInherited','labelView','description','children','ck-slash-command-button__text-part','iconView','textPartView'];(function(_0x3d6a1b,_0x487d4e){const _0xff8309=function(_0x1714db){while(--_0x1714db){_0x3d6a1b['push'](_0x3d6a1b['shift']());}};_0xff8309(++_0x487d4e);}(_0x487d,0x166));const _0xff83=function(_0x3d6a1b,_0x487d4e){_0x3d6a1b=_0x3d6a1b-0x0;let _0xff8309=_0x487d[_0x3d6a1b];return _0xff8309;};import{View as _0x2c46ac,ButtonView as _0x30bac3}from'ckeditor5/src/ui';import _0x5bfdd5 from'../../theme/icons/play.svg';export default class A extends _0x30bac3{constructor(_0x596f01,_0x144652){super(_0x596f01),this[_0xff83('0x9')]=this['_createTextPartView'](_0x596f01,_0x144652),void 0x0!==_0x144652[_0xff83('0xe')]&&(this[_0xff83('0x8')][_0xff83('0x3')]=_0x144652['isIconColorInherited']),this[_0xff83('0xf')]({'icon':_0x144652[_0xff83('0x0')]||_0x5bfdd5,'withText':!0x0,'label':_0x144652['title'],'class':_0xff83('0x1')});}[_0xff83('0xd')](){super['render'](),this[_0xff83('0x6')]['add'](this[_0xff83('0x9')]);}[_0xff83('0x2')](_0x407bf6,_0x4fe432){const _0x29975e=new _0x2c46ac(_0x407bf6);return _0x29975e[_0xff83('0xb')]({'tag':'div','attributes':{'class':['ck',_0xff83('0x7')]},'children':_0x4fe432[_0xff83('0x5')]?[this['labelView'],{'tag':_0xff83('0xa'),'attributes':{'class':['ck',_0xff83('0xc')]},'children':[{'text':_0x4fe432['description']}]}]:[this[_0xff83('0x4')]]}),_0x29975e;}}
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
  */