@ckeditor/ckeditor5-ckbox 48.2.0 → 48.3.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.
package/dist/utils.d.ts CHANGED
@@ -1,77 +1,77 @@
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 ckbox/utils
7
- */
8
- import type { InitializedToken } from '@ckeditor/ckeditor5-cloud-services';
9
- import type { CKBoxImageUrls } from './ckboxconfig.js';
6
+ * @module ckbox/utils
7
+ */
8
+ import type { InitializedToken } from "@ckeditor/ckeditor5-cloud-services";
9
+ import type { CKBoxImageUrls } from "./ckboxconfig.js";
10
10
  /**
11
- * Converts image source set provided by the CKBox into an object containing:
12
- * - responsive URLs for the "webp" image format,
13
- * - one fallback URL for browsers that do not support the "webp" format.
14
- *
15
- * @internal
16
- */
11
+ * Converts image source set provided by the CKBox into an object containing:
12
+ * - responsive URLs for the "webp" image format,
13
+ * - one fallback URL for browsers that do not support the "webp" format.
14
+ *
15
+ * @internal
16
+ */
17
17
  export declare function getImageUrls(imageUrls: CKBoxImageUrls): {
18
- imageFallbackUrl: string;
19
- imageSources: Array<{
20
- srcset: string;
21
- sizes: string;
22
- type: string;
23
- }>;
18
+ imageFallbackUrl: string;
19
+ imageSources: Array<{
20
+ srcset: string;
21
+ sizes: string;
22
+ type: string;
23
+ }>;
24
24
  };
25
25
  /**
26
- * Returns a workspace id to use for communication with the CKBox service.
27
- *
28
- * @param defaultWorkspaceId The default workspace to use taken from editor config.
29
- * @internal
30
- */
26
+ * Returns a workspace id to use for communication with the CKBox service.
27
+ *
28
+ * @param defaultWorkspaceId The default workspace to use taken from editor config.
29
+ * @internal
30
+ */
31
31
  export declare function getWorkspaceId(token: InitializedToken, defaultWorkspaceId?: string): string | null;
32
32
  /**
33
- * Generates an image data URL from its `blurhash` representation.
34
- *
35
- * @internal
36
- */
33
+ * Generates an image data URL from its `blurhash` representation.
34
+ *
35
+ * @internal
36
+ */
37
37
  export declare function blurHashToDataUrl(hash?: string): string | undefined;
38
38
  /**
39
- * Sends the HTTP request.
40
- *
41
- * @internal
42
- * @param options Configuration options
43
- * @param options.url The URL where the request will be sent.
44
- * @param options.signal The AbortSignal to abort the request when needed.
45
- * @param options.authorization The authorization token for the request.
46
- * @param options.method The HTTP method (default: 'GET').
47
- * @param options.data Additional data to send.
48
- * @param options.onUploadProgress A callback informing about the upload progress.
49
- */
39
+ * Sends the HTTP request.
40
+ *
41
+ * @internal
42
+ * @param options Configuration options
43
+ * @param options.url The URL where the request will be sent.
44
+ * @param options.signal The AbortSignal to abort the request when needed.
45
+ * @param options.authorization The authorization token for the request.
46
+ * @param options.method The HTTP method (default: 'GET').
47
+ * @param options.data Additional data to send.
48
+ * @param options.onUploadProgress A callback informing about the upload progress.
49
+ */
50
50
  export declare function sendHttpRequest({ url, method, data, onUploadProgress, signal, authorization }: {
51
- url: URL;
52
- signal: AbortSignal;
53
- authorization: string;
54
- method?: 'GET' | 'POST';
55
- data?: FormData | null;
56
- onUploadProgress?: (evt: ProgressEvent) => void;
51
+ url: URL;
52
+ signal: AbortSignal;
53
+ authorization: string;
54
+ method?: "GET" | "POST";
55
+ data?: FormData | null;
56
+ onUploadProgress?: (evt: ProgressEvent) => void;
57
57
  }): Promise<any>;
58
58
  /**
59
- * Returns an extension a typical file in the specified `mimeType` format would have.
60
- *
61
- * @internal
62
- */
59
+ * Returns an extension a typical file in the specified `mimeType` format would have.
60
+ *
61
+ * @internal
62
+ */
63
63
  export declare function convertMimeTypeToExtension(mimeType: string): string;
64
64
  /**
65
- * Tries to fetch the given `url` and returns 'content-type' of the response.
66
- *
67
- * @internal
68
- */
65
+ * Tries to fetch the given `url` and returns 'content-type' of the response.
66
+ *
67
+ * @internal
68
+ */
69
69
  export declare function getContentTypeOfUrl(url: string, options: {
70
- signal: AbortSignal;
70
+ signal: AbortSignal;
71
71
  }): Promise<string>;
72
72
  /**
73
- * Returns an extension from the given value.
74
- *
75
- * @internal
76
- */
73
+ * Returns an extension from the given value.
74
+ *
75
+ * @internal
76
+ */
77
77
  export declare function getFileExtension(file: File): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-ckbox",
3
- "version": "48.2.0",
3
+ "version": "48.3.0-alpha.1",
4
4
  "description": "CKBox integration for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -26,15 +26,15 @@
26
26
  "./package.json": "./package.json"
27
27
  },
28
28
  "dependencies": {
29
- "@ckeditor/ckeditor5-cloud-services": "48.2.0",
30
- "@ckeditor/ckeditor5-core": "48.2.0",
31
- "@ckeditor/ckeditor5-engine": "48.2.0",
32
- "@ckeditor/ckeditor5-icons": "48.2.0",
33
- "@ckeditor/ckeditor5-image": "48.2.0",
34
- "@ckeditor/ckeditor5-link": "48.2.0",
35
- "@ckeditor/ckeditor5-ui": "48.2.0",
36
- "@ckeditor/ckeditor5-upload": "48.2.0",
37
- "@ckeditor/ckeditor5-utils": "48.2.0",
29
+ "@ckeditor/ckeditor5-cloud-services": "48.3.0-alpha.1",
30
+ "@ckeditor/ckeditor5-core": "48.3.0-alpha.1",
31
+ "@ckeditor/ckeditor5-engine": "48.3.0-alpha.1",
32
+ "@ckeditor/ckeditor5-icons": "48.3.0-alpha.1",
33
+ "@ckeditor/ckeditor5-image": "48.3.0-alpha.1",
34
+ "@ckeditor/ckeditor5-link": "48.3.0-alpha.1",
35
+ "@ckeditor/ckeditor5-ui": "48.3.0-alpha.1",
36
+ "@ckeditor/ckeditor5-upload": "48.3.0-alpha.1",
37
+ "@ckeditor/ckeditor5-utils": "48.3.0-alpha.1",
38
38
  "blurhash": "2.0.5",
39
39
  "es-toolkit": "1.45.1"
40
40
  },