@ckeditor/ckeditor5-cloud-services 47.6.1 → 48.0.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.
- package/ckeditor5-metadata.json +1 -1
- package/{src → dist}/cloudservices.d.ts +1 -1
- package/{src → dist}/cloudservicesconfig.d.ts +8 -4
- package/{src → dist}/cloudservicescore.d.ts +1 -1
- package/dist/index.css +3 -0
- package/dist/index.css.map +1 -0
- package/dist/index.js.map +1 -1
- package/{src → dist}/token/token.d.ts +2 -2
- package/{src → dist}/uploadgateway/fileuploader.d.ts +3 -3
- package/package.json +21 -42
- package/build/cloud-services.js +0 -4
- package/src/augmentation.js +0 -5
- package/src/cloudservices.js +0 -147
- package/src/cloudservicesconfig.js +0 -5
- package/src/cloudservicescore.js +0 -47
- package/src/index.js +0 -11
- package/src/token/token.js +0 -232
- package/src/uploadgateway/fileuploader.js +0 -195
- package/src/uploadgateway/uploadgateway.js +0 -68
- /package/{src → dist}/augmentation.d.ts +0 -0
- /package/{src → dist}/index.d.ts +0 -0
- /package/{src → dist}/uploadgateway/uploadgateway.d.ts +0 -0
package/ckeditor5-metadata.json
CHANGED
|
@@ -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.
|
|
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
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
|
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
|
@@ -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 */"]}
|