@ckeditor/ckeditor5-cloud-services 40.2.0 → 41.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.
- package/LICENSE.md +1 -1
- package/build/cloud-services.js +1 -1
- package/package.json +3 -2
- package/src/augmentation.d.ts +2 -2
- package/src/augmentation.js +1 -1
- package/src/cloudservices.d.ts +5 -5
- package/src/cloudservices.js +4 -4
- package/src/cloudservicesconfig.d.ts +1 -1
- package/src/cloudservicesconfig.js +1 -1
- package/src/cloudservicescore.d.ts +5 -5
- package/src/cloudservicescore.js +4 -4
- package/src/index.d.ts +8 -8
- package/src/index.js +4 -4
- package/src/token/token.d.ts +4 -4
- package/src/token/token.js +2 -2
- package/src/uploadgateway/fileuploader.d.ts +5 -5
- package/src/uploadgateway/fileuploader.js +2 -2
- package/src/uploadgateway/uploadgateway.d.ts +3 -3
- package/src/uploadgateway/uploadgateway.js +3 -3
package/LICENSE.md
CHANGED
|
@@ -2,7 +2,7 @@ Software License Agreement
|
|
|
2
2
|
==========================
|
|
3
3
|
|
|
4
4
|
**CKEditor 5 Cloud Services integration** – https://github.com/ckeditor/ckeditor5-cloud-services <br>
|
|
5
|
-
Copyright (c) 2003–
|
|
5
|
+
Copyright (c) 2003–2024, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
|
|
6
6
|
|
|
7
7
|
Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html).
|
|
8
8
|
|
package/build/cloud-services.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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.
|
|
4
4
|
*/(()=>{var e={704:(e,t,r)=>{e.exports=r(79)("./src/core.js")},209:(e,t,r)=>{e.exports=r(79)("./src/utils.js")},79:e=>{"use strict";e.exports=CKEditor5.dll}},t={};function r(s){var o=t[s];if(void 0!==o)return o.exports;var n=t[s]={exports:{}};return e[s](n,n.exports,r),n.exports}r.d=(e,t)=>{for(var s in t)r.o(t,s)&&!r.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};(()=>{"use strict";r.r(s),r.d(s,{CloudServices:()=>d,CloudServicesCore:()=>h});var e=r(704),t=r(209);const o={autoRefresh:!0},n=36e5;class i extends((0,t.ObservableMixin)()){constructor(e,r={}){if(super(),!e)throw new t.CKEditorError("token-missing-token-url",this);r.initValue&&this._validateTokenValue(r.initValue),this.set("value",r.initValue),this._refresh="function"==typeof e?e:()=>{return r=e,new Promise(((e,s)=>{const o=new XMLHttpRequest;o.open("GET",r),o.addEventListener("load",(()=>{const r=o.status,n=o.response;return r<200||r>299?s(new t.CKEditorError("token-cannot-download-new-token",null)):e(n)})),o.addEventListener("error",(()=>s(new Error("Network Error")))),o.addEventListener("abort",(()=>s(new Error("Abort")))),o.send()}));var r},this._options={...o,...r}}init(){return new Promise(((e,t)=>{this.value?(this._options.autoRefresh&&this._registerRefreshTokenTimeout(),e(this)):this.refreshToken().then(e).catch(t)}))}refreshToken(){return this._refresh().then((e=>(this._validateTokenValue(e),this.set("value",e),this._options.autoRefresh&&this._registerRefreshTokenTimeout(),this)))}destroy(){clearTimeout(this._tokenRefreshTimeout)}_validateTokenValue(e){const r="string"==typeof e,s=!/^".*"$/.test(e),o=r&&3===e.split(".").length;if(!s||!o)throw new t.CKEditorError("token-not-in-jwt-format",this)}_registerRefreshTokenTimeout(){const e=this._getTokenRefreshTimeoutTime();clearTimeout(this._tokenRefreshTimeout),this._tokenRefreshTimeout=setTimeout((()=>{this.refreshToken()}),e)}_getTokenRefreshTimeoutTime(){try{const[,e]=this.value.split("."),{exp:t}=JSON.parse(atob(e));if(!t)return n;return Math.floor((1e3*t-Date.now())/2)}catch(e){return n}}static create(e,t={}){return new i(e,t).init()}}const a=/^data:(\S*?);base64,/;class u extends((0,t.EmitterMixin)()){constructor(e,r,s){if(super(),!e)throw new t.CKEditorError("fileuploader-missing-file",null);if(!r)throw new t.CKEditorError("fileuploader-missing-token",null);if(!s)throw new t.CKEditorError("fileuploader-missing-api-address",null);this.file=function(e){if("string"!=typeof e)return!1;const t=e.match(a);return!(!t||!t.length)}(e)?function(e,r=512){try{const t=e.match(a)[1],s=atob(e.replace(a,"")),o=[];for(let e=0;e<s.length;e+=r){const t=s.slice(e,e+r),n=new Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);o.push(new Uint8Array(n))}return new Blob(o,{type:t})}catch(e){throw new t.CKEditorError("fileuploader-decoding-image-data-error",null)}}(e):e,this._token=r,this._apiAddress=s}onProgress(e){return this.on("progress",((t,r)=>e(r))),this}onError(e){return this.once("error",((t,r)=>e(r))),this}abort(){this.xhr.abort()}send(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest()}_prepareRequest(){const e=new XMLHttpRequest;e.open("POST",this._apiAddress),e.setRequestHeader("Authorization",this._token.value),e.responseType="json",this.xhr=e}_attachXHRListeners(){const e=this.xhr,t=e=>()=>this.fire("error",e);e.addEventListener("error",t("Network Error")),e.addEventListener("abort",t("Abort")),e.upload&&e.upload.addEventListener("progress",(e=>{e.lengthComputable&&this.fire("progress",{total:e.total,uploaded:e.loaded})})),e.addEventListener("load",(()=>{const t=e.status,r=e.response;if(t<200||t>299)return this.fire("error",r.message||r.error)}))}_sendRequest(){const e=new FormData,r=this.xhr;return e.append("file",this.file),new Promise(((s,o)=>{r.addEventListener("load",(()=>{const e=r.status,n=r.response;return e<200||e>299?n.message?o(new t.CKEditorError("fileuploader-uploading-data-failed",this,{message:n.message})):o(n.error):s(n)})),r.addEventListener("error",(()=>o(new Error("Network Error")))),r.addEventListener("abort",(()=>o(new Error("Abort")))),r.send(e)}))}}class l{constructor(e,r){if(!e)throw new t.CKEditorError("uploadgateway-missing-token",null);if(!r)throw new t.CKEditorError("uploadgateway-missing-api-address",null);this._token=e,this._apiAddress=r}upload(e){return new u(e,this._token,this._apiAddress)}}class h extends e.ContextPlugin{static get pluginName(){return"CloudServicesCore"}createToken(e,t){return new i(e,t)}createUploadGateway(e,t){return new l(e,t)}}class d extends e.ContextPlugin{constructor(){super(...arguments),this.token=null,this._tokens=new Map}static get pluginName(){return"CloudServices"}static get requires(){return[h]}async init(){const e=this.context.config.get("cloudServices")||{};for(const[t,r]of Object.entries(e))this[t]=r;if(!this.tokenUrl)return void(this.token=null);const t=this.context.plugins.get("CloudServicesCore");this.token=await t.createToken(this.tokenUrl).init(),this._tokens.set(this.tokenUrl,this.token)}async registerTokenUrl(e){if(this._tokens.has(e))return this.getTokenFor(e);const t=this.context.plugins.get("CloudServicesCore"),r=await t.createToken(e).init();return this._tokens.set(e,r),r}getTokenFor(e){const r=this._tokens.get(e);if(!r)throw new t.CKEditorError("cloudservices-token-not-registered",this);return r}destroy(){super.destroy();for(const e of this._tokens.values())e.destroy()}}})(),(window.CKEditor5=window.CKEditor5||{}).cloudServices=s})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-cloud-services",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "41.0.0",
|
|
4
4
|
"description": "CKEditor 5's Cloud Services integration layer.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -9,9 +9,10 @@
|
|
|
9
9
|
"ckeditor5-lib",
|
|
10
10
|
"ckeditor5-dll"
|
|
11
11
|
],
|
|
12
|
+
"type": "module",
|
|
12
13
|
"main": "src/index.js",
|
|
13
14
|
"dependencies": {
|
|
14
|
-
"ckeditor5": "
|
|
15
|
+
"ckeditor5": "41.0.0"
|
|
15
16
|
},
|
|
16
17
|
"author": "CKSource (http://cksource.com/)",
|
|
17
18
|
"license": "GPL-2.0-or-later",
|
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 { CloudServices, CloudServicesConfig, CloudServicesCore } from './index';
|
|
5
|
+
import type { CloudServices, CloudServicesConfig, CloudServicesCore } 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/cloudservices.d.ts
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 cloud-services/cloudservices
|
|
7
7
|
*/
|
|
8
|
-
import { ContextPlugin } from 'ckeditor5/src/core';
|
|
9
|
-
import CloudServicesCore from './cloudservicescore';
|
|
10
|
-
import type { CloudServicesConfig, TokenUrl } from './cloudservicesconfig';
|
|
11
|
-
import type { InitializedToken } from './token/token';
|
|
8
|
+
import { ContextPlugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import CloudServicesCore from './cloudservicescore.js';
|
|
10
|
+
import type { CloudServicesConfig, TokenUrl } from './cloudservicesconfig.js';
|
|
11
|
+
import type { InitializedToken } from './token/token.js';
|
|
12
12
|
/**
|
|
13
13
|
* Plugin introducing the integration between CKEditor 5 and CKEditor Cloud Services .
|
|
14
14
|
*
|
package/src/cloudservices.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 cloud-services/cloudservices
|
|
7
7
|
*/
|
|
8
|
-
import { ContextPlugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { CKEditorError } from 'ckeditor5/src/utils';
|
|
10
|
-
import CloudServicesCore from './cloudservicescore';
|
|
8
|
+
import { ContextPlugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { CKEditorError } from 'ckeditor5/src/utils.js';
|
|
10
|
+
import CloudServicesCore from './cloudservicescore.js';
|
|
11
11
|
/**
|
|
12
12
|
* Plugin introducing the integration between CKEditor 5 and CKEditor Cloud Services .
|
|
13
13
|
*
|
|
@@ -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
|
/**
|
|
@@ -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 {};
|
|
@@ -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 cloud-services/cloudservicescore
|
|
7
7
|
*/
|
|
8
|
-
import { ContextPlugin } from 'ckeditor5/src/core';
|
|
9
|
-
import type { TokenUrl } from './cloudservicesconfig';
|
|
10
|
-
import Token, { type InitializedToken, type TokenOptions } from './token/token';
|
|
11
|
-
import UploadGateway from './uploadgateway/uploadgateway';
|
|
8
|
+
import { ContextPlugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import type { TokenUrl } from './cloudservicesconfig.js';
|
|
10
|
+
import Token, { type InitializedToken, type TokenOptions } from './token/token.js';
|
|
11
|
+
import UploadGateway from './uploadgateway/uploadgateway.js';
|
|
12
12
|
/**
|
|
13
13
|
* The `CloudServicesCore` plugin exposes the base API for communication with CKEditor Cloud Services.
|
|
14
14
|
*/
|
package/src/cloudservicescore.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 cloud-services/cloudservicescore
|
|
7
7
|
*/
|
|
8
|
-
import { ContextPlugin } from 'ckeditor5/src/core';
|
|
9
|
-
import Token from './token/token';
|
|
10
|
-
import UploadGateway from './uploadgateway/uploadgateway';
|
|
8
|
+
import { ContextPlugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import Token from './token/token.js';
|
|
10
|
+
import UploadGateway from './uploadgateway/uploadgateway.js';
|
|
11
11
|
/**
|
|
12
12
|
* The `CloudServicesCore` plugin exposes the base API for communication with CKEditor Cloud Services.
|
|
13
13
|
*/
|
package/src/index.d.ts
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 cloud-services
|
|
7
7
|
*/
|
|
8
|
-
export { default as CloudServices } from './cloudservices';
|
|
9
|
-
export { default as CloudServicesCore } from './cloudservicescore';
|
|
10
|
-
export { TokenUrl, type CloudServicesConfig } from './cloudservicesconfig';
|
|
11
|
-
export type { default as Token, InitializedToken } from './token/token';
|
|
12
|
-
export type { default as UploadGateway } from './uploadgateway/uploadgateway';
|
|
13
|
-
export type { default as FileUploader } from './uploadgateway/fileuploader';
|
|
14
|
-
import './augmentation';
|
|
8
|
+
export { default as CloudServices } from './cloudservices.js';
|
|
9
|
+
export { default as CloudServicesCore } from './cloudservicescore.js';
|
|
10
|
+
export { TokenUrl, type CloudServicesConfig } from './cloudservicesconfig.js';
|
|
11
|
+
export type { default as Token, InitializedToken } from './token/token.js';
|
|
12
|
+
export type { default as UploadGateway } from './uploadgateway/uploadgateway.js';
|
|
13
|
+
export type { default as FileUploader } from './uploadgateway/fileuploader.js';
|
|
14
|
+
import './augmentation.js';
|
package/src/index.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
5
|
/**
|
|
6
6
|
* @module cloud-services
|
|
7
7
|
*/
|
|
8
|
-
export { default as CloudServices } from './cloudservices';
|
|
9
|
-
export { default as CloudServicesCore } from './cloudservicescore';
|
|
10
|
-
import './augmentation';
|
|
8
|
+
export { default as CloudServices } from './cloudservices.js';
|
|
9
|
+
export { default as CloudServicesCore } from './cloudservicescore.js';
|
|
10
|
+
import './augmentation.js';
|
package/src/token/token.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
|
-
import type { TokenUrl } from '../cloudservicesconfig';
|
|
5
|
+
import type { TokenUrl } from '../cloudservicesconfig.js';
|
|
6
6
|
declare const Token_base: {
|
|
7
|
-
new (): import("ckeditor5/src/utils").Observable;
|
|
8
|
-
prototype: import("ckeditor5/src/utils").Observable;
|
|
7
|
+
new (): import("ckeditor5/src/utils.js").Observable;
|
|
8
|
+
prototype: import("ckeditor5/src/utils.js").Observable;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* Class representing the token used for communication with CKEditor Cloud Services.
|
package/src/token/token.js
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 cloud-services/token/token
|
|
7
7
|
*/
|
|
8
8
|
/* globals XMLHttpRequest, setTimeout, clearTimeout, atob */
|
|
9
|
-
import { ObservableMixin, CKEditorError } from 'ckeditor5/src/utils';
|
|
9
|
+
import { ObservableMixin, CKEditorError } from 'ckeditor5/src/utils.js';
|
|
10
10
|
const DEFAULT_OPTIONS = { autoRefresh: true };
|
|
11
11
|
const DEFAULT_TOKEN_REFRESH_TIMEOUT_TIME = 3600000;
|
|
12
12
|
/**
|
|
@@ -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 cloud-services/uploadgateway/fileuploader
|
|
7
7
|
*/
|
|
8
|
-
import type { UploadResponse } from 'ckeditor5/src/upload';
|
|
9
|
-
import type { InitializedToken } from '../token/token';
|
|
8
|
+
import type { UploadResponse } from 'ckeditor5/src/upload.js';
|
|
9
|
+
import type { InitializedToken } from '../token/token.js';
|
|
10
10
|
declare const FileUploader_base: {
|
|
11
|
-
new (): import("ckeditor5/src/utils").Emitter;
|
|
12
|
-
prototype: import("ckeditor5/src/utils").Emitter;
|
|
11
|
+
new (): import("ckeditor5/src/utils.js").Emitter;
|
|
12
|
+
prototype: import("ckeditor5/src/utils.js").Emitter;
|
|
13
13
|
};
|
|
14
14
|
/**
|
|
15
15
|
* FileUploader class used to upload single file.
|
|
@@ -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 { EmitterMixin, CKEditorError } from 'ckeditor5/src/utils';
|
|
5
|
+
import { EmitterMixin, CKEditorError } from 'ckeditor5/src/utils.js';
|
|
6
6
|
const BASE64_HEADER_REG_EXP = /^data:(\S*?);base64,/;
|
|
7
7
|
/**
|
|
8
8
|
* FileUploader class used to upload single file.
|
|
@@ -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 cloud-services/uploadgateway/uploadgateway
|
|
7
7
|
*/
|
|
8
|
-
import FileUploader from './fileuploader';
|
|
9
|
-
import type { InitializedToken } from '../token/token';
|
|
8
|
+
import FileUploader from './fileuploader.js';
|
|
9
|
+
import type { InitializedToken } from '../token/token.js';
|
|
10
10
|
/**
|
|
11
11
|
* UploadGateway abstracts file uploads to CKEditor Cloud Services.
|
|
12
12
|
*/
|
|
@@ -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 cloud-services/uploadgateway/uploadgateway
|
|
7
7
|
*/
|
|
8
|
-
import FileUploader from './fileuploader';
|
|
9
|
-
import { CKEditorError } from 'ckeditor5/src/utils';
|
|
8
|
+
import FileUploader from './fileuploader.js';
|
|
9
|
+
import { CKEditorError } from 'ckeditor5/src/utils.js';
|
|
10
10
|
/**
|
|
11
11
|
* UploadGateway abstracts file uploads to CKEditor Cloud Services.
|
|
12
12
|
*/
|