@ckeditor/ckeditor5-cloud-services 48.2.0-alpha.7 → 48.3.0-alpha.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.
@@ -1,19 +1,19 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
- import type { CloudServices, CloudServicesConfig, CloudServicesCore } from './index.js';
6
- declare module '@ckeditor/ckeditor5-core' {
7
- interface EditorConfig {
8
- /**
9
- * The configuration of CKEditor Cloud Services. Introduced by the {@link module:cloud-services/cloudservices~CloudServices} plugin.
10
- *
11
- * Read more in {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig}.
12
- */
13
- cloudServices?: CloudServicesConfig;
14
- }
15
- interface PluginsMap {
16
- [CloudServices.pluginName]: CloudServices;
17
- [CloudServicesCore.pluginName]: CloudServicesCore;
18
- }
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ import type { CloudServices, CloudServicesConfig, CloudServicesCore } from "./index.js";
6
+ declare module "@ckeditor/ckeditor5-core" {
7
+ interface EditorConfig {
8
+ /**
9
+ * The configuration of CKEditor Cloud Services. Introduced by the {@link module:cloud-services/cloudservices~CloudServices} plugin.
10
+ *
11
+ * Read more in {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig}.
12
+ */
13
+ cloudServices?: CloudServicesConfig;
14
+ }
15
+ interface PluginsMap {
16
+ [CloudServices.pluginName]: CloudServices;
17
+ [CloudServicesCore.pluginName]: CloudServicesCore;
18
+ }
19
19
  }
@@ -1,92 +1,92 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module cloud-services/cloudservices
7
- */
8
- import { ContextPlugin } from '@ckeditor/ckeditor5-core';
9
- import { CloudServicesCore } from './cloudservicescore.js';
10
- import type { CloudServicesConfig, TokenUrl } from './cloudservicesconfig.js';
11
- import type { InitializedToken } from './token/token.js';
6
+ * @module cloud-services/cloudservices
7
+ */
8
+ import { ContextPlugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
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
- * Plugin introducing the integration between CKEditor 5 and CKEditor Cloud Services .
14
- *
15
- * It initializes the token provider based on
16
- * the {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig `config.cloudService`}.
17
- */
13
+ * Plugin introducing the integration between CKEditor 5 and CKEditor Cloud Services .
14
+ *
15
+ * It initializes the token provider based on
16
+ * the {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig `config.cloudService`}.
17
+ */
18
18
  export declare class CloudServices extends ContextPlugin implements CloudServicesConfig {
19
- /**
20
- * The authentication token URL for CKEditor Cloud Services or a callback to the token value promise. See the
21
- * {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig#tokenUrl} for more details.
22
- */
23
- readonly tokenUrl?: TokenUrl;
24
- /**
25
- * The URL to which the files should be uploaded.
26
- */
27
- readonly uploadUrl?: string;
28
- /**
29
- * The URL for web socket communication, used by the `RealTimeCollaborativeEditing` plugin. Every customer (organization in the CKEditor
30
- * Ecosystem dashboard) has their own, unique URLs to communicate with CKEditor Cloud Services. The URL can be found in the
31
- * CKEditor Ecosystem customer dashboard.
32
- *
33
- * Note: Unlike most plugins, `RealTimeCollaborativeEditing` is not included in any CKEditor 5 build and needs to be installed manually.
34
- * Check [Collaboration overview](https://ckeditor.com/docs/ckeditor5/latest/features/collaboration/overview.html) for more details.
35
- */
36
- readonly webSocketUrl?: string;
37
- /**
38
- * An optional parameter used for integration with CKEditor Cloud Services when uploading the editor build to cloud services.
39
- *
40
- * Whenever the editor build or the configuration changes, this parameter should be set to a new, unique value to differentiate
41
- * the new bundle (build + configuration) from the old ones.
42
- */
43
- readonly bundleVersion?: string;
44
- /**
45
- * Specifies whether the token should be automatically refreshed when it expires.
46
- */
47
- readonly autoRefresh: boolean;
48
- /**
49
- * Other plugins use this token for the authorization process. It handles token requesting and refreshing.
50
- * Its value is `null` when {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig#tokenUrl} is not provided.
51
- *
52
- * @readonly
53
- */
54
- token: InitializedToken | null;
55
- /**
56
- * A map of token object instances keyed by the token URLs.
57
- */
58
- private readonly _tokens;
59
- /**
60
- * @inheritDoc
61
- */
62
- static get pluginName(): "CloudServices";
63
- /**
64
- * @inheritDoc
65
- */
66
- static get isOfficialPlugin(): true;
67
- /**
68
- * @inheritDoc
69
- */
70
- static get requires(): readonly [typeof CloudServicesCore];
71
- /**
72
- * @inheritDoc
73
- */
74
- init(): Promise<void>;
75
- /**
76
- * Registers an additional authentication token URL for CKEditor Cloud Services or a callback to the token value promise. See the
77
- * {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig#tokenUrl} for more details.
78
- *
79
- * @param tokenUrl The authentication token URL for CKEditor Cloud Services or a callback to the token value promise.
80
- */
81
- registerTokenUrl(tokenUrl: TokenUrl): Promise<InitializedToken>;
82
- /**
83
- * Returns an authentication token provider previously registered by {@link #registerTokenUrl}.
84
- *
85
- * @param tokenUrl The authentication token URL for CKEditor Cloud Services or a callback to the token value promise.
86
- */
87
- getTokenFor(tokenUrl: TokenUrl): InitializedToken;
88
- /**
89
- * @inheritDoc
90
- */
91
- destroy(): void;
19
+ /**
20
+ * The authentication token URL for CKEditor Cloud Services or a callback to the token value promise. See the
21
+ * {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig#tokenUrl} for more details.
22
+ */
23
+ readonly tokenUrl?: TokenUrl;
24
+ /**
25
+ * The URL to which the files should be uploaded.
26
+ */
27
+ readonly uploadUrl?: string;
28
+ /**
29
+ * The URL for web socket communication, used by the `RealTimeCollaborativeEditing` plugin. Every customer (organization in the CKEditor
30
+ * Ecosystem dashboard) has their own, unique URLs to communicate with CKEditor Cloud Services. The URL can be found in the
31
+ * CKEditor Ecosystem customer dashboard.
32
+ *
33
+ * Note: Unlike most plugins, `RealTimeCollaborativeEditing` is not included in any CKEditor 5 build and needs to be installed manually.
34
+ * Check [Collaboration overview](https://ckeditor.com/docs/ckeditor5/latest/features/collaboration/overview.html) for more details.
35
+ */
36
+ readonly webSocketUrl?: string;
37
+ /**
38
+ * An optional parameter used for integration with CKEditor Cloud Services when uploading the editor build to cloud services.
39
+ *
40
+ * Whenever the editor build or the configuration changes, this parameter should be set to a new, unique value to differentiate
41
+ * the new bundle (build + configuration) from the old ones.
42
+ */
43
+ readonly bundleVersion?: string;
44
+ /**
45
+ * Specifies whether the token should be automatically refreshed when it expires.
46
+ */
47
+ readonly autoRefresh: boolean;
48
+ /**
49
+ * Other plugins use this token for the authorization process. It handles token requesting and refreshing.
50
+ * Its value is `null` when {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig#tokenUrl} is not provided.
51
+ *
52
+ * @readonly
53
+ */
54
+ token: InitializedToken | null;
55
+ /**
56
+ * A map of token object instances keyed by the token URLs.
57
+ */
58
+ private readonly _tokens;
59
+ /**
60
+ * @inheritDoc
61
+ */
62
+ static get pluginName(): "CloudServices";
63
+ /**
64
+ * @inheritDoc
65
+ */
66
+ static override get isOfficialPlugin(): true;
67
+ /**
68
+ * @inheritDoc
69
+ */
70
+ static get requires(): PluginDependenciesOf<[CloudServicesCore]>;
71
+ /**
72
+ * @inheritDoc
73
+ */
74
+ init(): Promise<void>;
75
+ /**
76
+ * Registers an additional authentication token URL for CKEditor Cloud Services or a callback to the token value promise. See the
77
+ * {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig#tokenUrl} for more details.
78
+ *
79
+ * @param tokenUrl The authentication token URL for CKEditor Cloud Services or a callback to the token value promise.
80
+ */
81
+ registerTokenUrl(tokenUrl: TokenUrl): Promise<InitializedToken>;
82
+ /**
83
+ * Returns an authentication token provider previously registered by {@link #registerTokenUrl}.
84
+ *
85
+ * @param tokenUrl The authentication token URL for CKEditor Cloud Services or a callback to the token value promise.
86
+ */
87
+ getTokenFor(tokenUrl: TokenUrl): InitializedToken;
88
+ /**
89
+ * @inheritDoc
90
+ */
91
+ override destroy(): void;
92
92
  }
@@ -1,146 +1,146 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module cloud-services/cloudservicesconfig
7
- */
6
+ * @module cloud-services/cloudservicesconfig
7
+ */
8
8
  /**
9
- * Endpoint address to download the token or a callback that provides the token.
10
- */
9
+ * Endpoint address to download the token or a callback that provides the token.
10
+ */
11
11
  export type TokenUrl = string | (() => Promise<string>);
12
12
  /**
13
- * The configuration for all plugins using CKEditor Cloud Services.
14
- *
15
- * ```ts
16
- * ClassicEditor
17
- * .create( {
18
- * attachTo: document.querySelector( '#editor' ),
19
- * cloudServices: {
20
- * tokenUrl: 'https://example.com/cs-token-endpoint'
21
- * }
22
- * } )
23
- * .then( ... )
24
- * .catch( ... );
25
- * ```
26
- *
27
- * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
28
- */
13
+ * The configuration for all plugins using CKEditor Cloud Services.
14
+ *
15
+ * ```ts
16
+ * ClassicEditor
17
+ * .create( {
18
+ * attachTo: document.querySelector( '#editor' ),
19
+ * cloudServices: {
20
+ * tokenUrl: 'https://example.com/cs-token-endpoint'
21
+ * }
22
+ * } )
23
+ * .then( ... )
24
+ * .catch( ... );
25
+ * ```
26
+ *
27
+ * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
28
+ */
29
29
  export interface CloudServicesConfig {
30
- /**
31
- * A token URL or a token request function.
32
- *
33
- * As a string, it should be a URL to the security token endpoint in your application.
34
- * The role of this endpoint is to securely authorize
35
- * the end users of your application to use [CKEditor Cloud Services](https://ckeditor.com/ckeditor-cloud-services) only
36
- * if they should have access e.g. to upload files with {@glink features/file-management/ckbox CKBox} or to use the
37
- * [Collaboration](https://ckeditor.com/docs/cs/latest/guides/collaboration/quick-start.html) service.
38
- *
39
- * ```ts
40
- * ClassicEditor
41
- * .create( {
42
- * attachTo: document.querySelector( '#editor' ),
43
- * cloudServices: {
44
- * tokenUrl: 'https://example.com/cs-token-endpoint',
45
- * ...
46
- * }
47
- * } )
48
- * .then( ... )
49
- * .catch( ... );
50
- * ```
51
- *
52
- * As a function, it should provide a promise to the token value,
53
- * so you can highly customize the token and provide your token URL endpoint.
54
- * By using this approach you can set your own headers for the request.
55
- *
56
- * ```ts
57
- * ClassicEditor
58
- * .create( {
59
- * attachTo: document.querySelector( '#editor' ),
60
- * cloudServices: {
61
- * tokenUrl: () => new Promise( ( resolve, reject ) => {
62
- * const xhr = new XMLHttpRequest();
63
- *
64
- * xhr.open( 'GET', 'https://example.com/cs-token-endpoint' );
65
- *
66
- * xhr.addEventListener( 'load', () => {
67
- * const statusCode = xhr.status;
68
- * const xhrResponse = xhr.response;
69
- *
70
- * if ( statusCode < 200 || statusCode > 299 ) {
71
- * return reject( new Error( 'Cannot download new token!' ) );
72
- * }
73
- *
74
- * return resolve( xhrResponse );
75
- * } );
76
- *
77
- * xhr.addEventListener( 'error', () => reject( new Error( 'Network Error' ) ) );
78
- * xhr.addEventListener( 'abort', () => reject( new Error( 'Abort' ) ) );
79
- *
80
- * xhr.setRequestHeader( customHeader, customValue );
81
- *
82
- * xhr.send();
83
- * } ),
84
- * ...
85
- * }
86
- * } )
87
- * ```
88
- *
89
- * If the request to the token endpoint fails, the editor will call the token request function every 5 seconds in attempt
90
- * to refresh the token.
91
- *
92
- * You can find more information about token endpoints in the
93
- * [Cloud Services - Token endpoint](https://ckeditor.com/docs/cs/latest/developer-resources/security/token-endpoint.html)
94
- * documentation.
95
- *
96
- * Without a properly working token endpoint (token URL) CKEditor plugins will not be able to connect to CKEditor Cloud Services.
97
- */
98
- tokenUrl?: TokenUrl;
99
- /**
100
- * The endpoint URL for [CKEditor Cloud Services](https://ckeditor.com/ckeditor-cloud-services) uploads.
101
- * This option is used by the legacy Easy Image product.
102
- *
103
- * Note: Easy Image is a legacy product and only maintained for existing clients. Make sure to also set the
104
- * {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig#tokenUrl} configuration option.
105
- */
106
- uploadUrl?: string;
107
- /**
108
- * The URL for web socket communication, used by the `RealTimeCollaborativeEditing` plugin. Every customer (organization in the CKEditor
109
- * Ecosystem dashboard) has their own, unique URLs to communicate with CKEditor Cloud Services. The URL can be found in the
110
- * CKEditor Ecosystem customer dashboard.
111
- *
112
- * Note: Unlike most plugins, `RealTimeCollaborativeEditing` is not included in any CKEditor 5 build and needs to be installed manually.
113
- * Check [Collaboration overview](https://ckeditor.com/docs/ckeditor5/latest/features/collaboration/overview.html) for more details.
114
- */
115
- webSocketUrl?: string;
116
- /**
117
- * An optional parameter used for integration with CKEditor Cloud Services when uploading the editor build to cloud services.
118
- *
119
- * Whenever the editor build or the configuration changes, this parameter should be set to a new, unique value to differentiate
120
- * the new bundle (build + configuration) from the old ones.
121
- */
122
- bundleVersion?: string;
123
- /**
124
- * Specifies whether the token should be automatically refreshed when it expires.
125
- *
126
- * When set to `false`, the token will not be automatically refreshed, and you will need to handle token refresh manually.
127
- *
128
- * ```ts
129
- * ClassicEditor
130
- * .create( {
131
- * attachTo: document.querySelector( '#editor' ),
132
- * cloudServices: {
133
- * tokenUrl: 'https://example.com/cs-token-endpoint',
134
- * // Disable automatic token refresh.
135
- * autoRefresh: false,
136
- * ...
137
- * }
138
- * } )
139
- * .then( ... )
140
- * .catch( ... );
141
- * ```
142
- *
143
- * @default true
144
- */
145
- autoRefresh?: boolean;
30
+ /**
31
+ * A token URL or a token request function.
32
+ *
33
+ * As a string, it should be a URL to the security token endpoint in your application.
34
+ * The role of this endpoint is to securely authorize
35
+ * the end users of your application to use [CKEditor Cloud Services](https://ckeditor.com/ckeditor-cloud-services) only
36
+ * if they should have access e.g. to upload files with {@glink features/file-management/ckbox CKBox} or to use the
37
+ * [Collaboration](https://ckeditor.com/docs/cs/latest/guides/collaboration/quick-start.html) service.
38
+ *
39
+ * ```ts
40
+ * ClassicEditor
41
+ * .create( {
42
+ * attachTo: document.querySelector( '#editor' ),
43
+ * cloudServices: {
44
+ * tokenUrl: 'https://example.com/cs-token-endpoint',
45
+ * ...
46
+ * }
47
+ * } )
48
+ * .then( ... )
49
+ * .catch( ... );
50
+ * ```
51
+ *
52
+ * As a function, it should provide a promise to the token value,
53
+ * so you can highly customize the token and provide your token URL endpoint.
54
+ * By using this approach you can set your own headers for the request.
55
+ *
56
+ * ```ts
57
+ * ClassicEditor
58
+ * .create( {
59
+ * attachTo: document.querySelector( '#editor' ),
60
+ * cloudServices: {
61
+ * tokenUrl: () => new Promise( ( resolve, reject ) => {
62
+ * const xhr = new XMLHttpRequest();
63
+ *
64
+ * xhr.open( 'GET', 'https://example.com/cs-token-endpoint' );
65
+ *
66
+ * xhr.addEventListener( 'load', () => {
67
+ * const statusCode = xhr.status;
68
+ * const xhrResponse = xhr.response;
69
+ *
70
+ * if ( statusCode < 200 || statusCode > 299 ) {
71
+ * return reject( new Error( 'Cannot download new token!' ) );
72
+ * }
73
+ *
74
+ * return resolve( xhrResponse );
75
+ * } );
76
+ *
77
+ * xhr.addEventListener( 'error', () => reject( new Error( 'Network Error' ) ) );
78
+ * xhr.addEventListener( 'abort', () => reject( new Error( 'Abort' ) ) );
79
+ *
80
+ * xhr.setRequestHeader( customHeader, customValue );
81
+ *
82
+ * xhr.send();
83
+ * } ),
84
+ * ...
85
+ * }
86
+ * } )
87
+ * ```
88
+ *
89
+ * If the request to the token endpoint fails, the editor will call the token request function every 5 seconds in attempt
90
+ * to refresh the token.
91
+ *
92
+ * You can find more information about token endpoints in the
93
+ * [Cloud Services - Token endpoint](https://ckeditor.com/docs/cs/latest/developer-resources/security/token-endpoint.html)
94
+ * documentation.
95
+ *
96
+ * Without a properly working token endpoint (token URL) CKEditor plugins will not be able to connect to CKEditor Cloud Services.
97
+ */
98
+ tokenUrl?: TokenUrl;
99
+ /**
100
+ * The endpoint URL for [CKEditor Cloud Services](https://ckeditor.com/ckeditor-cloud-services) uploads.
101
+ * This option is used by the legacy Easy Image product.
102
+ *
103
+ * Note: Easy Image is a legacy product and only maintained for existing clients. Make sure to also set the
104
+ * {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig#tokenUrl} configuration option.
105
+ */
106
+ uploadUrl?: string;
107
+ /**
108
+ * The URL for web socket communication, used by the `RealTimeCollaborativeEditing` plugin. Every customer (organization in the CKEditor
109
+ * Ecosystem dashboard) has their own, unique URLs to communicate with CKEditor Cloud Services. The URL can be found in the
110
+ * CKEditor Ecosystem customer dashboard.
111
+ *
112
+ * Note: Unlike most plugins, `RealTimeCollaborativeEditing` is not included in any CKEditor 5 build and needs to be installed manually.
113
+ * Check [Collaboration overview](https://ckeditor.com/docs/ckeditor5/latest/features/collaboration/overview.html) for more details.
114
+ */
115
+ webSocketUrl?: string;
116
+ /**
117
+ * An optional parameter used for integration with CKEditor Cloud Services when uploading the editor build to cloud services.
118
+ *
119
+ * Whenever the editor build or the configuration changes, this parameter should be set to a new, unique value to differentiate
120
+ * the new bundle (build + configuration) from the old ones.
121
+ */
122
+ bundleVersion?: string;
123
+ /**
124
+ * Specifies whether the token should be automatically refreshed when it expires.
125
+ *
126
+ * When set to `false`, the token will not be automatically refreshed, and you will need to handle token refresh manually.
127
+ *
128
+ * ```ts
129
+ * ClassicEditor
130
+ * .create( {
131
+ * attachTo: document.querySelector( '#editor' ),
132
+ * cloudServices: {
133
+ * tokenUrl: 'https://example.com/cs-token-endpoint',
134
+ * // Disable automatic token refresh.
135
+ * autoRefresh: false,
136
+ * ...
137
+ * }
138
+ * } )
139
+ * .then( ... )
140
+ * .catch( ... );
141
+ * ```
142
+ *
143
+ * @default true
144
+ */
145
+ autoRefresh?: boolean;
146
146
  }
@@ -1,40 +1,40 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module cloud-services/cloudservicescore
7
- */
8
- import { ContextPlugin } from '@ckeditor/ckeditor5-core';
9
- import type { TokenUrl } from './cloudservicesconfig.js';
10
- import { Token, type InitializedToken, type CloudServicesTokenOptions } from './token/token.js';
11
- import { UploadGateway } from './uploadgateway/uploadgateway.js';
6
+ * @module cloud-services/cloudservicescore
7
+ */
8
+ import { ContextPlugin } from "@ckeditor/ckeditor5-core";
9
+ import type { TokenUrl } from "./cloudservicesconfig.js";
10
+ import { Token, type InitializedToken, type CloudServicesTokenOptions } from "./token/token.js";
11
+ import { UploadGateway } from "./uploadgateway/uploadgateway.js";
12
12
  /**
13
- * The `CloudServicesCore` plugin exposes the base API for communication with CKEditor Cloud Services.
14
- */
13
+ * The `CloudServicesCore` plugin exposes the base API for communication with CKEditor Cloud Services.
14
+ */
15
15
  export declare class CloudServicesCore extends ContextPlugin {
16
- /**
17
- * @inheritDoc
18
- */
19
- static get pluginName(): "CloudServicesCore";
20
- /**
21
- * @inheritDoc
22
- */
23
- static get isOfficialPlugin(): true;
24
- /**
25
- * Creates the {@link module:cloud-services/token/token~Token} instance.
26
- *
27
- * @param tokenUrlOrRefreshToken Endpoint address to download the token or a callback that provides the token. If the
28
- * value is a function it has to match the {@link module:cloud-services/token/token~Token#refreshToken} interface.
29
- * @param options.initValue Initial value of the token.
30
- * @param options.autoRefresh Specifies whether to start the refresh automatically.
31
- */
32
- createToken(tokenUrlOrRefreshToken: TokenUrl, options?: CloudServicesTokenOptions): Token;
33
- /**
34
- * Creates the {@link module:cloud-services/uploadgateway/uploadgateway~UploadGateway} instance.
35
- *
36
- * @param token Token used for authentication.
37
- * @param apiAddress API address.
38
- */
39
- createUploadGateway(token: InitializedToken, apiAddress: string): UploadGateway;
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ static get pluginName(): "CloudServicesCore";
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ static override get isOfficialPlugin(): true;
24
+ /**
25
+ * Creates the {@link module:cloud-services/token/token~Token} instance.
26
+ *
27
+ * @param tokenUrlOrRefreshToken Endpoint address to download the token or a callback that provides the token. If the
28
+ * value is a function it has to match the {@link module:cloud-services/token/token~Token#refreshToken} interface.
29
+ * @param options.initValue Initial value of the token.
30
+ * @param options.autoRefresh Specifies whether to start the refresh automatically.
31
+ */
32
+ createToken(tokenUrlOrRefreshToken: TokenUrl, options?: CloudServicesTokenOptions): Token;
33
+ /**
34
+ * Creates the {@link module:cloud-services/uploadgateway/uploadgateway~UploadGateway} instance.
35
+ *
36
+ * @param token Token used for authentication.
37
+ * @param apiAddress API address.
38
+ */
39
+ createUploadGateway(token: InitializedToken, apiAddress: string): UploadGateway;
40
40
  }
@@ -2,3 +2,4 @@
2
2
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
+
@@ -2,3 +2,4 @@
2
2
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
+
package/dist/index.css CHANGED
@@ -3,5 +3,3 @@
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
 
6
-
7
- /*# sourceMappingURL=index.css.map */
package/dist/index.d.ts CHANGED
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module cloud-services
7
- */
8
- export { CloudServices } from './cloudservices.js';
9
- export { CloudServicesCore } from './cloudservicescore.js';
10
- export type { TokenUrl, CloudServicesConfig } from './cloudservicesconfig.js';
11
- export { Token, type InitializedToken, type CloudServicesTokenOptions } from './token/token.js';
12
- export { UploadGateway } from './uploadgateway/uploadgateway.js';
13
- export { FileUploader, type CloudServicesFileUploaderErrorEvent, type CloudServicesFileUploaderProgressErrorEvent } from './uploadgateway/fileuploader.js';
14
- import './augmentation.js';
6
+ * @module cloud-services
7
+ */
8
+ export { CloudServices } from "./cloudservices.js";
9
+ export { CloudServicesCore } from "./cloudservicescore.js";
10
+ export type { TokenUrl, CloudServicesConfig } from "./cloudservicesconfig.js";
11
+ export { Token, type InitializedToken, type CloudServicesTokenOptions } from "./token/token.js";
12
+ export { UploadGateway } from "./uploadgateway/uploadgateway.js";
13
+ export { FileUploader, type CloudServicesFileUploaderErrorEvent, type CloudServicesFileUploaderProgressErrorEvent } from "./uploadgateway/fileuploader.js";
14
+ import "./augmentation.js";