@ckeditor/ckeditor5-ckbox 40.2.0 → 41.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. package/LICENSE.md +1 -1
  2. package/build/ckbox.js +2 -2
  3. package/ckeditor5-metadata.json +1 -1
  4. package/lang/translations/ar.po +1 -1
  5. package/lang/translations/az.po +1 -1
  6. package/lang/translations/bg.po +1 -1
  7. package/lang/translations/bn.po +1 -1
  8. package/lang/translations/ca.po +1 -1
  9. package/lang/translations/cs.po +1 -1
  10. package/lang/translations/da.po +1 -1
  11. package/lang/translations/de.po +1 -1
  12. package/lang/translations/el.po +1 -1
  13. package/lang/translations/en-au.po +1 -1
  14. package/lang/translations/en.po +1 -1
  15. package/lang/translations/es-co.po +1 -1
  16. package/lang/translations/es.po +1 -1
  17. package/lang/translations/et.po +1 -1
  18. package/lang/translations/fa.po +1 -1
  19. package/lang/translations/fi.po +1 -1
  20. package/lang/translations/fr.po +1 -1
  21. package/lang/translations/gl.po +1 -1
  22. package/lang/translations/he.po +1 -1
  23. package/lang/translations/hi.po +1 -1
  24. package/lang/translations/hr.po +1 -1
  25. package/lang/translations/hu.po +1 -1
  26. package/lang/translations/id.po +1 -1
  27. package/lang/translations/it.po +1 -1
  28. package/lang/translations/ja.po +1 -1
  29. package/lang/translations/ko.po +1 -1
  30. package/lang/translations/lt.po +1 -1
  31. package/lang/translations/lv.po +1 -1
  32. package/lang/translations/ms.po +1 -1
  33. package/lang/translations/nl.po +1 -1
  34. package/lang/translations/no.po +1 -1
  35. package/lang/translations/pl.po +1 -1
  36. package/lang/translations/pt-br.po +1 -1
  37. package/lang/translations/pt.po +1 -1
  38. package/lang/translations/ro.po +1 -1
  39. package/lang/translations/ru.po +1 -1
  40. package/lang/translations/sk.po +1 -1
  41. package/lang/translations/sq.po +1 -1
  42. package/lang/translations/sr-latn.po +1 -1
  43. package/lang/translations/sr.po +1 -1
  44. package/lang/translations/sv.po +1 -1
  45. package/lang/translations/th.po +1 -1
  46. package/lang/translations/tr.po +1 -1
  47. package/lang/translations/ug.po +1 -1
  48. package/lang/translations/uk.po +1 -1
  49. package/lang/translations/ur.po +1 -1
  50. package/lang/translations/uz.po +1 -1
  51. package/lang/translations/vi.po +1 -1
  52. package/lang/translations/zh-cn.po +1 -1
  53. package/lang/translations/zh.po +1 -1
  54. package/package.json +3 -2
  55. package/src/augmentation.d.ts +2 -2
  56. package/src/augmentation.js +1 -1
  57. package/src/ckbox.d.ts +4 -4
  58. package/src/ckbox.js +4 -4
  59. package/src/ckboxcommand.d.ts +3 -3
  60. package/src/ckboxcommand.js +4 -4
  61. package/src/ckboxconfig.d.ts +2 -2
  62. package/src/ckboxconfig.js +1 -1
  63. package/src/ckboxediting.d.ts +4 -4
  64. package/src/ckboxediting.js +7 -7
  65. package/src/ckboximageedit/ckboximageeditcommand.d.ts +2 -2
  66. package/src/ckboximageedit/ckboximageeditcommand.js +10 -9
  67. package/src/ckboximageedit/ckboximageeditediting.d.ts +5 -5
  68. package/src/ckboximageedit/ckboximageeditediting.js +6 -6
  69. package/src/ckboximageedit/ckboximageeditui.d.ts +2 -2
  70. package/src/ckboximageedit/ckboximageeditui.js +3 -3
  71. package/src/ckboximageedit/utils.d.ts +3 -3
  72. package/src/ckboximageedit/utils.js +2 -2
  73. package/src/ckboximageedit.d.ts +4 -4
  74. package/src/ckboximageedit.js +4 -4
  75. package/src/ckboxui.d.ts +2 -2
  76. package/src/ckboxui.js +4 -5
  77. package/src/ckboxuploadadapter.d.ts +4 -4
  78. package/src/ckboxuploadadapter.js +6 -6
  79. package/src/ckboxutils.d.ts +2 -2
  80. package/src/ckboxutils.js +4 -4
  81. package/src/index.d.ts +11 -11
  82. package/src/index.js +8 -8
  83. package/src/utils.d.ts +2 -2
  84. package/src/utils.js +1 -1
  85. package/theme/ckboximageedit.css +1 -1
  86. package/theme/icons/ckbox-image-edit.svg +1 -1
  87. package/theme/icons/browse-files.svg +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-ckbox",
3
- "version": "40.2.0",
3
+ "version": "41.1.0",
4
4
  "description": "CKBox integration for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -10,9 +10,10 @@
10
10
  "ckeditor5-plugin",
11
11
  "ckeditor5-dll"
12
12
  ],
13
+ "type": "module",
13
14
  "main": "src/index.js",
14
15
  "dependencies": {
15
- "ckeditor5": "40.2.0",
16
+ "ckeditor5": "41.1.0",
16
17
  "blurhash": "2.0.5",
17
18
  "lodash-es": "4.17.21"
18
19
  },
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import type { CKBox, CKBoxCommand, CKBoxConfig, CKBoxEditing, CKBoxImageEdit, CKBoxImageEditEditing, CKBoxImageEditCommand, CKBoxImageEditUI } from './index';
5
+ import type { CKBox, CKBoxCommand, CKBoxConfig, CKBoxEditing, CKBoxImageEdit, CKBoxImageEditEditing, CKBoxImageEditCommand, CKBoxImageEditUI } from './index.js';
6
6
  declare module '@ckeditor/ckeditor5-core' {
7
7
  interface EditorConfig {
8
8
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  export {};
package/src/ckbox.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module ckbox/ckbox
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import CKBoxUI from './ckboxui';
10
- import CKBoxEditing from './ckboxediting';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import CKBoxUI from './ckboxui.js';
10
+ import CKBoxEditing from './ckboxediting.js';
11
11
  /**
12
12
  * The CKBox feature, a bridge between the CKEditor 5 WYSIWYG editor and the CKBox file manager and uploader.
13
13
  *
package/src/ckbox.js CHANGED
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module ckbox/ckbox
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import CKBoxUI from './ckboxui';
10
- import CKBoxEditing from './ckboxediting';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import CKBoxUI from './ckboxui.js';
10
+ import CKBoxEditing from './ckboxediting.js';
11
11
  /**
12
12
  * The CKBox feature, a bridge between the CKEditor 5 WYSIWYG editor and the CKBox file manager and uploader.
13
13
  *
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { Command, type Editor } from 'ckeditor5/src/core';
6
- import type { CKBoxAssetDefinition, CKBoxAssetImageAttributesDefinition, CKBoxRawAssetDefinition } from './ckboxconfig';
5
+ import { Command, type Editor } from 'ckeditor5/src/core.js';
6
+ import type { CKBoxAssetDefinition, CKBoxAssetImageAttributesDefinition, CKBoxRawAssetDefinition } from './ckboxconfig.js';
7
7
  /**
8
8
  * The CKBox command. It is used by the {@link module:ckbox/ckboxediting~CKBoxEditing CKBox editing feature} to open the CKBox file manager.
9
9
  * The file manager allows inserting an image or a link to a file into the editor content.
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { Command } from 'ckeditor5/src/core';
6
- import { createElement, toMap } from 'ckeditor5/src/utils';
7
- import { blurHashToDataUrl, getImageUrls } from './utils';
5
+ import { Command } from 'ckeditor5/src/core.js';
6
+ import { createElement, toMap } from 'ckeditor5/src/utils.js';
7
+ import { blurHashToDataUrl, getImageUrls } from './utils.js';
8
8
  // Defines the waiting time (in milliseconds) for inserting the chosen asset into the model. The chosen asset is temporarily stored in the
9
9
  // `CKBoxCommand#_chosenAssets` and it is removed from there automatically after this time. See `CKBoxCommand#_chosenAssets` for more
10
10
  // details.
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module ckbox/ckboxconfig
7
7
  */
8
8
  import type { TokenUrl } from '@ckeditor/ckeditor5-cloud-services';
9
- import type { ArrayOrItem } from 'ckeditor5/src/utils';
9
+ import type { ArrayOrItem } from 'ckeditor5/src/utils.js';
10
10
  /**
11
11
  * The configuration of the {@link module:ckbox/ckbox~CKBox CKBox feature}.
12
12
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  export {};
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { Plugin } from 'ckeditor5/src/core';
6
- import CKBoxUploadAdapter from './ckboxuploadadapter';
7
- import CKBoxUtils from './ckboxutils';
5
+ import { Plugin } from 'ckeditor5/src/core.js';
6
+ import CKBoxUploadAdapter from './ckboxuploadadapter.js';
7
+ import CKBoxUtils from './ckboxutils.js';
8
8
  /**
9
9
  * The CKBox editing feature. It introduces the {@link module:ckbox/ckboxcommand~CKBoxCommand CKBox command} and
10
10
  * {@link module:ckbox/ckboxuploadadapter~CKBoxUploadAdapter CKBox upload adapter}.
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { Plugin } from 'ckeditor5/src/core';
6
- import { Range } from 'ckeditor5/src/engine';
7
- import { logError } from 'ckeditor5/src/utils';
8
- import CKBoxCommand from './ckboxcommand';
9
- import CKBoxUploadAdapter from './ckboxuploadadapter';
10
- import CKBoxUtils from './ckboxutils';
5
+ import { Plugin } from 'ckeditor5/src/core.js';
6
+ import { Range } from 'ckeditor5/src/engine.js';
7
+ import { logError } from 'ckeditor5/src/utils.js';
8
+ import CKBoxCommand from './ckboxcommand.js';
9
+ import CKBoxUploadAdapter from './ckboxuploadadapter.js';
10
+ import CKBoxUtils from './ckboxutils.js';
11
11
  /**
12
12
  * The CKBox editing feature. It introduces the {@link module:ckbox/ckboxcommand~CKBoxCommand CKBox command} and
13
13
  * {@link module:ckbox/ckboxuploadadapter~CKBoxUploadAdapter CKBox upload adapter}.
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module ckbox/ckboximageedit/ckboximageeditcommand
7
7
  */
8
- import { Command, type Editor } from 'ckeditor5/src/core';
8
+ import { Command, type Editor } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * The CKBox edit image command.
11
11
  *
@@ -1,19 +1,19 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /* globals document, console, AbortController, URL, window */
6
6
  /**
7
7
  * @module ckbox/ckboximageedit/ckboximageeditcommand
8
8
  */
9
- import { Command, PendingActions } from 'ckeditor5/src/core';
10
- import { CKEditorError, abortableDebounce, createElement, retry } from 'ckeditor5/src/utils';
11
- import { Notification } from 'ckeditor5/src/ui';
9
+ import { Command, PendingActions } from 'ckeditor5/src/core.js';
10
+ import { CKEditorError, abortableDebounce, createElement, retry } from 'ckeditor5/src/utils.js';
11
+ import { Notification } from 'ckeditor5/src/ui.js';
12
12
  import { isEqual } from 'lodash-es';
13
- import { sendHttpRequest } from '../utils';
14
- import { prepareImageAssetAttributes } from '../ckboxcommand';
15
- import { createEditabilityChecker } from './utils';
16
- import CKBoxUtils from '../ckboxutils';
13
+ import { sendHttpRequest } from '../utils.js';
14
+ import { prepareImageAssetAttributes } from '../ckboxcommand.js';
15
+ import { createEditabilityChecker } from './utils.js';
16
+ import CKBoxUtils from '../ckboxutils.js';
17
17
  /**
18
18
  * The CKBox edit image command.
19
19
  *
@@ -110,7 +110,7 @@ export default class CKBoxImageEditCommand extends Command {
110
110
  };
111
111
  }
112
112
  else {
113
- const imageUrl = element.getAttribute('src');
113
+ const imageUrl = new URL(element.getAttribute('src'), document.baseURI).href;
114
114
  const uploadCategoryId = await ckboxUtils.getCategoryIdForFile(imageUrl, { signal });
115
115
  imageMountOptions = {
116
116
  imageUrl,
@@ -123,6 +123,7 @@ export default class CKBoxImageEditCommand extends Command {
123
123
  allowOverwrite: false
124
124
  },
125
125
  tokenUrl: ckboxConfig.tokenUrl,
126
+ ...(ckboxConfig.serviceOrigin && { serviceOrigin: ckboxConfig.serviceOrigin }),
126
127
  onClose: () => this._handleImageEditorClose(),
127
128
  onSave: (asset) => this._handleImageEditorSave(state, asset)
128
129
  };
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module ckbox/ckboximageedit/ckboximageeditediting
7
7
  */
8
- import { PendingActions, Plugin } from 'ckeditor5/src/core';
9
- import { Notification } from 'ckeditor5/src/ui';
10
- import CKBoxEditing from '../ckboxediting';
11
- import CKBoxUtils from '../ckboxutils';
8
+ import { PendingActions, Plugin } from 'ckeditor5/src/core.js';
9
+ import { Notification } from 'ckeditor5/src/ui.js';
10
+ import CKBoxEditing from '../ckboxediting.js';
11
+ import CKBoxUtils from '../ckboxutils.js';
12
12
  /**
13
13
  * The CKBox image edit editing plugin.
14
14
  */
@@ -1,15 +1,15 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module ckbox/ckboximageedit/ckboximageeditediting
7
7
  */
8
- import { PendingActions, Plugin } from 'ckeditor5/src/core';
9
- import { Notification } from 'ckeditor5/src/ui';
10
- import CKBoxImageEditCommand from './ckboximageeditcommand';
11
- import CKBoxEditing from '../ckboxediting';
12
- import CKBoxUtils from '../ckboxutils';
8
+ import { PendingActions, Plugin } from 'ckeditor5/src/core.js';
9
+ import { Notification } from 'ckeditor5/src/ui.js';
10
+ import CKBoxImageEditCommand from './ckboximageeditcommand.js';
11
+ import CKBoxEditing from '../ckboxediting.js';
12
+ import CKBoxUtils from '../ckboxutils.js';
13
13
  /**
14
14
  * The CKBox image edit editing plugin.
15
15
  */
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module ckbox/ckboximageedit/ckboximageeditui
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * The UI plugin of the CKBox image edit feature.
11
11
  *
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module ckbox/ckboximageedit/ckboximageeditui
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { ButtonView } from 'ckeditor5/src/ui';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { ButtonView } from 'ckeditor5/src/ui.js';
10
10
  import ckboxImageEditIcon from '../../theme/icons/ckbox-image-edit.svg';
11
11
  /**
12
12
  * The UI plugin of the CKBox image edit feature.
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import type { Element } from 'ckeditor5/src/engine';
6
- import type { CKBoxConfig } from '../ckboxconfig';
5
+ import type { Element } from 'ckeditor5/src/engine.js';
6
+ import type { CKBoxConfig } from '../ckboxconfig.js';
7
7
  /**
8
8
  * @internal
9
9
  */
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module ckbox/ckboximageedit/utils
7
7
  */
8
- import { global } from 'ckeditor5/src/utils';
8
+ import { global } from 'ckeditor5/src/utils.js';
9
9
  /**
10
10
  * @internal
11
11
  */
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module ckbox/ckboximageedit
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import CKBoxImageEditEditing from './ckboximageedit/ckboximageeditediting';
10
- import CKBoxImageEditUI from './ckboximageedit/ckboximageeditui';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import CKBoxImageEditEditing from './ckboximageedit/ckboximageeditediting.js';
10
+ import CKBoxImageEditUI from './ckboximageedit/ckboximageeditui.js';
11
11
  import '../theme/ckboximageedit.css';
12
12
  /**
13
13
  * The CKBox image edit feature.
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module ckbox/ckboximageedit
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import CKBoxImageEditEditing from './ckboximageedit/ckboximageeditediting';
10
- import CKBoxImageEditUI from './ckboximageedit/ckboximageeditui';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import CKBoxImageEditEditing from './ckboximageedit/ckboximageeditediting.js';
10
+ import CKBoxImageEditUI from './ckboximageedit/ckboximageeditui.js';
11
11
  import '../theme/ckboximageedit.css';
12
12
  /**
13
13
  * The CKBox image edit feature.
package/src/ckboxui.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module ckbox/ckboxui
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * The CKBoxUI plugin. It introduces the `'ckbox'` toolbar button.
11
11
  */
package/src/ckboxui.js CHANGED
@@ -1,13 +1,12 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module ckbox/ckboxui
7
7
  */
8
- import { icons, Plugin } from 'ckeditor5/src/core';
9
- import { ButtonView } from 'ckeditor5/src/ui';
10
- import browseFilesIcon from '../theme/icons/browse-files.svg';
8
+ import { icons, Plugin } from 'ckeditor5/src/core.js';
9
+ import { ButtonView } from 'ckeditor5/src/ui.js';
11
10
  /**
12
11
  * The CKBoxUI plugin. It introduces the `'ckbox'` toolbar button.
13
12
  */
@@ -34,7 +33,7 @@ export default class CKBoxUI extends Plugin {
34
33
  const button = new ButtonView(locale);
35
34
  button.set({
36
35
  label: t('Open file manager'),
37
- icon: browseFilesIcon,
36
+ icon: icons.browseFiles,
38
37
  tooltip: true
39
38
  });
40
39
  button.bind('isOn', 'isEnabled').to(command, 'value', 'isEnabled');
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module ckbox/ckboxuploadadapter
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { FileRepository } from 'ckeditor5/src/upload';
10
- import CKBoxEditing from './ckboxediting';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { FileRepository } from 'ckeditor5/src/upload.js';
10
+ import CKBoxEditing from './ckboxediting.js';
11
11
  /**
12
12
  * A plugin that enables file uploads in CKEditor 5 using the CKBox server–side connector.
13
13
  * See the {@glink features/file-management/ckbox CKBox file manager integration} guide to learn how to configure
@@ -1,16 +1,16 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /* globals AbortController, FormData, URL, window */
6
6
  /**
7
7
  * @module ckbox/ckboxuploadadapter
8
8
  */
9
- import { Plugin } from 'ckeditor5/src/core';
10
- import { FileRepository } from 'ckeditor5/src/upload';
11
- import CKBoxEditing from './ckboxediting';
12
- import { getImageUrls, sendHttpRequest } from './utils';
13
- import CKBoxUtils from './ckboxutils';
9
+ import { Plugin } from 'ckeditor5/src/core.js';
10
+ import { FileRepository } from 'ckeditor5/src/upload.js';
11
+ import CKBoxEditing from './ckboxediting.js';
12
+ import { getImageUrls, sendHttpRequest } from './utils.js';
13
+ import CKBoxUtils from './ckboxutils.js';
14
14
  /**
15
15
  * A plugin that enables file uploads in CKEditor 5 using the CKBox server–side connector.
16
16
  * See the {@glink features/file-management/ckbox CKBox file manager integration} guide to learn how to configure
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module ckbox/ckboxutils
7
7
  */
8
8
  import type { InitializedToken } from '@ckeditor/ckeditor5-cloud-services';
9
- import { Plugin } from 'ckeditor5/src/core';
9
+ import { Plugin } from 'ckeditor5/src/core.js';
10
10
  /**
11
11
  * The CKBox utilities plugin.
12
12
  */
package/src/ckboxutils.js CHANGED
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { CKEditorError, logError } from 'ckeditor5/src/utils';
6
- import { Plugin } from 'ckeditor5/src/core';
7
- import { convertMimeTypeToExtension, getContentTypeOfUrl, getFileExtension, getWorkspaceId, sendHttpRequest } from './utils';
5
+ import { CKEditorError, logError } from 'ckeditor5/src/utils.js';
6
+ import { Plugin } from 'ckeditor5/src/core.js';
7
+ import { convertMimeTypeToExtension, getContentTypeOfUrl, getFileExtension, getWorkspaceId, sendHttpRequest } from './utils.js';
8
8
  const DEFAULT_CKBOX_THEME_NAME = 'lark';
9
9
  /**
10
10
  * The CKBox utilities plugin.
package/src/index.d.ts CHANGED
@@ -1,17 +1,17 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module ckbox
7
7
  */
8
- export { default as CKBox } from './ckbox';
9
- export { default as CKBoxEditing } from './ckboxediting';
10
- export { default as CKBoxUI } from './ckboxui';
11
- export { default as CKBoxImageEditEditing } from './ckboximageedit/ckboximageeditediting';
12
- export { default as CKBoxImageEditUI } from './ckboximageedit/ckboximageeditui';
13
- export { default as CKBoxImageEdit } from './ckboximageedit';
14
- export type { default as CKBoxCommand } from './ckboxcommand';
15
- export type { default as CKBoxImageEditCommand } from './ckboximageedit/ckboximageeditcommand';
16
- export type { CKBoxConfig } from './ckboxconfig';
17
- import './augmentation';
8
+ export { default as CKBox } from './ckbox.js';
9
+ export { default as CKBoxEditing } from './ckboxediting.js';
10
+ export { default as CKBoxUI } from './ckboxui.js';
11
+ export { default as CKBoxImageEditEditing } from './ckboximageedit/ckboximageeditediting.js';
12
+ export { default as CKBoxImageEditUI } from './ckboximageedit/ckboximageeditui.js';
13
+ export { default as CKBoxImageEdit } from './ckboximageedit.js';
14
+ export type { default as CKBoxCommand } from './ckboxcommand.js';
15
+ export type { default as CKBoxImageEditCommand } from './ckboximageedit/ckboximageeditcommand.js';
16
+ export type { CKBoxConfig } from './ckboxconfig.js';
17
+ import './augmentation.js';
package/src/index.js CHANGED
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module ckbox
7
7
  */
8
- export { default as CKBox } from './ckbox';
9
- export { default as CKBoxEditing } from './ckboxediting';
10
- export { default as CKBoxUI } from './ckboxui';
11
- export { default as CKBoxImageEditEditing } from './ckboximageedit/ckboximageeditediting';
12
- export { default as CKBoxImageEditUI } from './ckboximageedit/ckboximageeditui';
13
- export { default as CKBoxImageEdit } from './ckboximageedit';
14
- import './augmentation';
8
+ export { default as CKBox } from './ckbox.js';
9
+ export { default as CKBoxEditing } from './ckboxediting.js';
10
+ export { default as CKBoxUI } from './ckboxui.js';
11
+ export { default as CKBoxImageEditEditing } from './ckboximageedit/ckboximageeditediting.js';
12
+ export { default as CKBoxImageEditUI } from './ckboximageedit/ckboximageeditui.js';
13
+ export { default as CKBoxImageEdit } from './ckboximageedit.js';
14
+ import './augmentation.js';
package/src/utils.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module ckbox/utils
7
7
  */
8
8
  import type { InitializedToken } from '@ckeditor/ckeditor5-cloud-services';
9
- import type { CKBoxImageUrls } from './ckboxconfig';
9
+ import type { CKBoxImageUrls } from './ckboxconfig.js';
10
10
  /**
11
11
  * Converts image source set provided by the CKBox into an object containing:
12
12
  * - responsive URLs for the "webp" image format,
package/src/utils.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  import { decode } from 'blurhash';
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
 
@@ -1 +1 @@
1
- <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.201 1C.538 1 0 1.47 0 2.1v12.86C0 15.603.534 16 1.186 16H6.45l3.647-3.596-3.48-3.254a.694.694 0 0 0-.958-.033L1.5 13.6V2.5h15v4.59a3.477 3.477 0 0 1 1.5.15V2.1c0-.63-.547-1.1-1.2-1.1H1.202Zm11.723 2.805a2.137 2.137 0 0 0-2.045 2.406 2.13 2.13 0 0 0 4.172.277 2.134 2.134 0 0 0-.76-2.244 2.13 2.13 0 0 0-1.367-.44Z"/><path d="M8.1 17.612V20h2.39l7.046-7.046-2.39-2.39L8.1 17.612Zm11.283-6.506a.638.638 0 0 0 .139-.692.603.603 0 0 0-.139-.206L17.892 8.72a.63.63 0 0 0-.898 0l-1.167 1.163 2.391 2.39 1.165-1.167Z"/></svg>
1
+ <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.201 1C.538 1 0 1.47 0 2.1v14.363c0 .64.534 1.037 1.186 1.037H5.06l5.058-5.078L6.617 9.15a.696.696 0 0 0-.957-.033L1.5 13.6V2.5h15v4.354a3.478 3.478 0 0 1 1.5.049V2.1c0-.63-.547-1.1-1.2-1.1H1.202Zm11.713 2.803a2.147 2.147 0 0 0-2.049 1.992 2.14 2.14 0 0 0 1.28 2.096 2.13 2.13 0 0 0 2.642-3.11 2.129 2.129 0 0 0-1.873-.978ZM8.089 17.635v2.388h2.389l7.046-7.046-2.39-2.39-7.045 7.048Zm11.282-6.507a.637.637 0 0 0 .139-.692.603.603 0 0 0-.139-.205l-1.49-1.488a.63.63 0 0 0-.899 0l-1.166 1.163 2.39 2.39 1.165-1.168Z"/></svg>
@@ -1 +0,0 @@
1
- <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.627 16.5zm5.873-.196zm0-7.001V8h-13v8.5h4.341c.191.54.457 1.044.785 1.5H2a1.5 1.5 0 0 1-1.5-1.5v-13A1.5 1.5 0 0 1 2 2h4.5a1.5 1.5 0 0 1 1.06.44L9.122 4H16a1.5 1.5 0 0 1 1.5 1.5v1A1.5 1.5 0 0 1 19 8v2.531a6.027 6.027 0 0 0-1.5-1.228zM16 6.5v-1H8.5l-2-2H2v13h1V8a1.5 1.5 0 0 1 1.5-1.5H16z"/><path d="M14.5 19.5a5 5 0 1 1 0-10 5 5 0 0 1 0 10zM15 14v-2h-1v2h-2v1h2v2h1v-2h2v-1h-2z"/></svg>