@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.
- package/LICENSE.md +1 -1
- package/build/ckbox.js +2 -2
- package/ckeditor5-metadata.json +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/es-co.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sq.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/uz.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +3 -2
- package/src/augmentation.d.ts +2 -2
- package/src/augmentation.js +1 -1
- package/src/ckbox.d.ts +4 -4
- package/src/ckbox.js +4 -4
- package/src/ckboxcommand.d.ts +3 -3
- package/src/ckboxcommand.js +4 -4
- package/src/ckboxconfig.d.ts +2 -2
- package/src/ckboxconfig.js +1 -1
- package/src/ckboxediting.d.ts +4 -4
- package/src/ckboxediting.js +7 -7
- package/src/ckboximageedit/ckboximageeditcommand.d.ts +2 -2
- package/src/ckboximageedit/ckboximageeditcommand.js +10 -9
- package/src/ckboximageedit/ckboximageeditediting.d.ts +5 -5
- package/src/ckboximageedit/ckboximageeditediting.js +6 -6
- package/src/ckboximageedit/ckboximageeditui.d.ts +2 -2
- package/src/ckboximageedit/ckboximageeditui.js +3 -3
- package/src/ckboximageedit/utils.d.ts +3 -3
- package/src/ckboximageedit/utils.js +2 -2
- package/src/ckboximageedit.d.ts +4 -4
- package/src/ckboximageedit.js +4 -4
- package/src/ckboxui.d.ts +2 -2
- package/src/ckboxui.js +4 -5
- package/src/ckboxuploadadapter.d.ts +4 -4
- package/src/ckboxuploadadapter.js +6 -6
- package/src/ckboxutils.d.ts +2 -2
- package/src/ckboxutils.js +4 -4
- package/src/index.d.ts +11 -11
- package/src/index.js +8 -8
- package/src/utils.d.ts +2 -2
- package/src/utils.js +1 -1
- package/theme/ckboximageedit.css +1 -1
- package/theme/icons/ckbox-image-edit.svg +1 -1
- 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": "
|
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": "
|
16
|
+
"ckeditor5": "41.1.0",
|
16
17
|
"blurhash": "2.0.5",
|
17
18
|
"lodash-es": "4.17.21"
|
18
19
|
},
|
package/src/augmentation.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
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
|
/**
|
package/src/augmentation.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
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-
|
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-
|
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/ckboxcommand.d.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
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.
|
package/src/ckboxcommand.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
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.
|
package/src/ckboxconfig.d.ts
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
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
|
*
|
package/src/ckboxconfig.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
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/ckboxediting.d.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
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}.
|
package/src/ckboxediting.js
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
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-
|
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-
|
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-
|
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-
|
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-
|
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-
|
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-
|
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-
|
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
|
*/
|
package/src/ckboximageedit.d.ts
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
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/ckboximageedit.js
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
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-
|
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-
|
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:
|
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-
|
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-
|
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
|
package/src/ckboxutils.d.ts
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
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-
|
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-
|
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-
|
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-
|
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-
|
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';
|
package/theme/ckboximageedit.css
CHANGED
@@ -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.
|
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>
|