@ckeditor/ckeditor5-ckbox 39.0.1 → 40.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +3 -3
  3. package/build/ckbox.js.map +1 -0
  4. package/build/translations/fa.js +1 -1
  5. package/build/translations/gl.js +1 -1
  6. package/lang/translations/ar.po +1 -0
  7. package/lang/translations/az.po +1 -0
  8. package/lang/translations/bg.po +1 -0
  9. package/lang/translations/bn.po +1 -0
  10. package/lang/translations/ca.po +1 -0
  11. package/lang/translations/cs.po +1 -0
  12. package/lang/translations/da.po +1 -0
  13. package/lang/translations/de.po +1 -0
  14. package/lang/translations/el.po +1 -0
  15. package/lang/translations/en-au.po +1 -0
  16. package/lang/translations/en.po +1 -0
  17. package/lang/translations/es-co.po +1 -0
  18. package/lang/translations/es.po +1 -0
  19. package/lang/translations/et.po +1 -0
  20. package/lang/translations/fa.po +2 -1
  21. package/lang/translations/fi.po +1 -0
  22. package/lang/translations/fr.po +1 -0
  23. package/lang/translations/gl.po +3 -2
  24. package/lang/translations/he.po +1 -0
  25. package/lang/translations/hi.po +1 -0
  26. package/lang/translations/hr.po +1 -0
  27. package/lang/translations/hu.po +1 -0
  28. package/lang/translations/id.po +1 -0
  29. package/lang/translations/it.po +1 -0
  30. package/lang/translations/ja.po +1 -0
  31. package/lang/translations/ko.po +1 -0
  32. package/lang/translations/lt.po +1 -0
  33. package/lang/translations/lv.po +1 -0
  34. package/lang/translations/ms.po +1 -0
  35. package/lang/translations/nl.po +1 -0
  36. package/lang/translations/no.po +1 -0
  37. package/lang/translations/pl.po +1 -0
  38. package/lang/translations/pt-br.po +1 -0
  39. package/lang/translations/pt.po +1 -0
  40. package/lang/translations/ro.po +1 -0
  41. package/lang/translations/ru.po +1 -0
  42. package/lang/translations/sk.po +1 -0
  43. package/lang/translations/sq.po +1 -0
  44. package/lang/translations/sr-latn.po +1 -0
  45. package/lang/translations/sr.po +1 -0
  46. package/lang/translations/sv.po +1 -0
  47. package/lang/translations/th.po +1 -0
  48. package/lang/translations/tr.po +1 -0
  49. package/lang/translations/ug.po +1 -0
  50. package/lang/translations/uk.po +1 -0
  51. package/lang/translations/ur.po +1 -0
  52. package/lang/translations/uz.po +1 -0
  53. package/lang/translations/vi.po +1 -0
  54. package/lang/translations/zh-cn.po +1 -0
  55. package/lang/translations/zh.po +1 -0
  56. package/package.json +2 -6
  57. package/src/augmentation.d.ts +22 -22
  58. package/src/augmentation.js +5 -5
  59. package/src/ckbox.d.ts +33 -33
  60. package/src/ckbox.js +37 -37
  61. package/src/ckboxcommand.d.ts +110 -110
  62. package/src/ckboxcommand.js +302 -302
  63. package/src/ckboxconfig.d.ts +283 -283
  64. package/src/ckboxconfig.js +5 -5
  65. package/src/ckboxediting.d.ts +52 -52
  66. package/src/ckboxediting.js +362 -362
  67. package/src/ckboxui.d.ts +21 -21
  68. package/src/ckboxui.js +47 -47
  69. package/src/ckboxuploadadapter.d.ts +38 -38
  70. package/src/ckboxuploadadapter.js +275 -275
  71. package/src/index.d.ts +13 -13
  72. package/src/index.js +11 -11
  73. package/src/utils.d.ts +28 -28
  74. package/src/utils.js +49 -49
package/src/ckboxui.d.ts CHANGED
@@ -1,21 +1,21 @@
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 ckbox/ckboxui
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * The CKBoxUI plugin. It introduces the `'ckbox'` toolbar button.
11
- */
12
- export default class CKBoxUI extends Plugin {
13
- /**
14
- * @inheritDoc
15
- */
16
- static get pluginName(): "CKBoxUI";
17
- /**
18
- * @inheritDoc
19
- */
20
- afterInit(): void;
21
- }
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 ckbox/ckboxui
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * The CKBoxUI plugin. It introduces the `'ckbox'` toolbar button.
11
+ */
12
+ export default class CKBoxUI extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ static get pluginName(): "CKBoxUI";
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ afterInit(): void;
21
+ }
package/src/ckboxui.js CHANGED
@@ -1,47 +1,47 @@
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 ckbox/ckboxui
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { ButtonView } from 'ckeditor5/src/ui';
10
- import browseFilesIcon from '../theme/icons/browse-files.svg';
11
- /**
12
- * The CKBoxUI plugin. It introduces the `'ckbox'` toolbar button.
13
- */
14
- export default class CKBoxUI extends Plugin {
15
- /**
16
- * @inheritDoc
17
- */
18
- static get pluginName() {
19
- return 'CKBoxUI';
20
- }
21
- /**
22
- * @inheritDoc
23
- */
24
- afterInit() {
25
- const editor = this.editor;
26
- const command = editor.commands.get('ckbox');
27
- // Do not register the `ckbox` button if the command does not exist.
28
- if (!command) {
29
- return;
30
- }
31
- const t = editor.t;
32
- const componentFactory = editor.ui.componentFactory;
33
- componentFactory.add('ckbox', locale => {
34
- const button = new ButtonView(locale);
35
- button.set({
36
- label: t('Open file manager'),
37
- icon: browseFilesIcon,
38
- tooltip: true
39
- });
40
- button.bind('isOn', 'isEnabled').to(command, 'value', 'isEnabled');
41
- button.on('execute', () => {
42
- editor.execute('ckbox');
43
- });
44
- return button;
45
- });
46
- }
47
- }
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 ckbox/ckboxui
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import { ButtonView } from 'ckeditor5/src/ui';
10
+ import browseFilesIcon from '../theme/icons/browse-files.svg';
11
+ /**
12
+ * The CKBoxUI plugin. It introduces the `'ckbox'` toolbar button.
13
+ */
14
+ export default class CKBoxUI extends Plugin {
15
+ /**
16
+ * @inheritDoc
17
+ */
18
+ static get pluginName() {
19
+ return 'CKBoxUI';
20
+ }
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ afterInit() {
25
+ const editor = this.editor;
26
+ const command = editor.commands.get('ckbox');
27
+ // Do not register the `ckbox` button if the command does not exist.
28
+ if (!command) {
29
+ return;
30
+ }
31
+ const t = editor.t;
32
+ const componentFactory = editor.ui.componentFactory;
33
+ componentFactory.add('ckbox', locale => {
34
+ const button = new ButtonView(locale);
35
+ button.set({
36
+ label: t('Open file manager'),
37
+ icon: browseFilesIcon,
38
+ tooltip: true
39
+ });
40
+ button.bind('isOn', 'isEnabled').to(command, 'value', 'isEnabled');
41
+ button.on('execute', () => {
42
+ editor.execute('ckbox');
43
+ });
44
+ return button;
45
+ });
46
+ }
47
+ }
@@ -1,38 +1,38 @@
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 ckbox/ckboxuploadadapter
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { FileRepository } from 'ckeditor5/src/upload';
10
- import CKBoxEditing from './ckboxediting';
11
- /**
12
- * A plugin that enables file uploads in CKEditor 5 using the CKBox server–side connector.
13
- * See the {@glink features/file-management/ckbox CKBox file manager integration} guide to learn how to configure
14
- * and use this feature as well as find out more about the full integration with the file manager
15
- * provided by the {@link module:ckbox/ckbox~CKBox} plugin.
16
- *
17
- * Check out the {@glink features/images/image-upload/image-upload Image upload overview} guide to learn about
18
- * other ways to upload images into CKEditor 5.
19
- */
20
- export default class CKBoxUploadAdapter extends Plugin {
21
- /**
22
- * @inheritDoc
23
- */
24
- static get requires(): readonly ["ImageUploadEditing", "ImageUploadProgress", typeof FileRepository, typeof CKBoxEditing];
25
- /**
26
- * @inheritDoc
27
- */
28
- static get pluginName(): "CKBoxUploadAdapter";
29
- /**
30
- * @inheritDoc
31
- */
32
- afterInit(): Promise<void>;
33
- }
34
- export interface AvailableCategory {
35
- id: string;
36
- name: string;
37
- extensions: Array<string>;
38
- }
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 ckbox/ckboxuploadadapter
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import { FileRepository } from 'ckeditor5/src/upload';
10
+ import CKBoxEditing from './ckboxediting';
11
+ /**
12
+ * A plugin that enables file uploads in CKEditor 5 using the CKBox server–side connector.
13
+ * See the {@glink features/file-management/ckbox CKBox file manager integration} guide to learn how to configure
14
+ * and use this feature as well as find out more about the full integration with the file manager
15
+ * provided by the {@link module:ckbox/ckbox~CKBox} plugin.
16
+ *
17
+ * Check out the {@glink features/images/image-upload/image-upload Image upload overview} guide to learn about
18
+ * other ways to upload images into CKEditor 5.
19
+ */
20
+ export default class CKBoxUploadAdapter extends Plugin {
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static get requires(): readonly ["ImageUploadEditing", "ImageUploadProgress", typeof FileRepository, typeof CKBoxEditing];
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ static get pluginName(): "CKBoxUploadAdapter";
29
+ /**
30
+ * @inheritDoc
31
+ */
32
+ afterInit(): Promise<void>;
33
+ }
34
+ export interface AvailableCategory {
35
+ id: string;
36
+ name: string;
37
+ extensions: Array<string>;
38
+ }