@ckeditor/ckeditor5-cloud-services 47.6.1 → 48.0.0-alpha.1

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.
@@ -4,7 +4,7 @@
4
4
  "name": "Cloud Services",
5
5
  "className": "CloudServices",
6
6
  "description": "A backend integration layer for selected CKEditor 5 premium features, both SaaS and on-premises.",
7
- "path": "src/cloudservices.js",
7
+ "path": "src/cloudservices.ts",
8
8
  "docs": "https://ckeditor.com/ckeditor-cloud-services"
9
9
  }
10
10
  ]
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module cloud-services/cloudservices
7
7
  */
8
- import { ContextPlugin } from 'ckeditor5/src/core.js';
8
+ import { ContextPlugin } from '@ckeditor/ckeditor5-core';
9
9
  import { CloudServicesCore } from './cloudservicescore.js';
10
10
  import type { CloudServicesConfig, TokenUrl } from './cloudservicesconfig.js';
11
11
  import type { InitializedToken } from './token/token.js';
@@ -14,7 +14,8 @@ export type TokenUrl = string | (() => Promise<string>);
14
14
  *
15
15
  * ```ts
16
16
  * ClassicEditor
17
- * .create( document.querySelector( '#editor' ), {
17
+ * .create( {
18
+ * attachTo: document.querySelector( '#editor' ),
18
19
  * cloudServices: {
19
20
  * tokenUrl: 'https://example.com/cs-token-endpoint',
20
21
  * uploadUrl: 'https://your-organization-id.cke-cs.com/easyimage/upload/'
@@ -38,7 +39,8 @@ export interface CloudServicesConfig {
38
39
  *
39
40
  * ```ts
40
41
  * ClassicEditor
41
- * .create( document.querySelector( '#editor' ), {
42
+ * .create( {
43
+ * attachTo: document.querySelector( '#editor' ),
42
44
  * cloudServices: {
43
45
  * tokenUrl: 'https://example.com/cs-token-endpoint',
44
46
  * ...
@@ -54,7 +56,8 @@ export interface CloudServicesConfig {
54
56
  *
55
57
  * ```ts
56
58
  * ClassicEditor
57
- * .create( document.querySelector( '#editor' ), {
59
+ * .create( {
60
+ * attachTo: document.querySelector( '#editor' ),
58
61
  * cloudServices: {
59
62
  * tokenUrl: () => new Promise( ( resolve, reject ) => {
60
63
  * const xhr = new XMLHttpRequest();
@@ -131,7 +134,8 @@ export interface CloudServicesConfig {
131
134
  *
132
135
  * ```ts
133
136
  * ClassicEditor
134
- * .create( document.querySelector( '#editor' ), {
137
+ * .create( {
138
+ * attachTo: document.querySelector( '#editor' ),
135
139
  * cloudServices: {
136
140
  * tokenUrl: 'https://example.com/cs-token-endpoint',
137
141
  * // Disable automatic token refresh.
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module cloud-services/cloudservicescore
7
7
  */
8
- import { ContextPlugin } from 'ckeditor5/src/core.js';
8
+ import { ContextPlugin } from '@ckeditor/ckeditor5-core';
9
9
  import type { TokenUrl } from './cloudservicesconfig.js';
10
10
  import { Token, type InitializedToken, type CloudServicesTokenOptions } from './token/token.js';
11
11
  import { UploadGateway } from './uploadgateway/uploadgateway.js';
package/dist/index.css CHANGED
@@ -2,3 +2,6 @@
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
+
6
+
7
+ /*# sourceMappingURL=index.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.css"],"names":[],"mappings":";;;;;;AAEA,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC","file":"index.css.map","sourcesContent":["\n\n/*# sourceMappingURL=index.css.map */"]}