@ckeditor/ckeditor5-utils 46.0.0 → 46.0.1-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/dist/index.js +25 -25
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/dom/global.d.ts +2 -2
- package/src/dom/global.js +4 -4
- package/src/version.d.ts +1 -1
- package/src/version.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-utils",
|
|
3
|
-
"version": "46.0.0",
|
|
3
|
+
"version": "46.0.1-alpha.0",
|
|
4
4
|
"description": "Miscellaneous utilities used by CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"type": "module",
|
|
13
13
|
"main": "src/index.js",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@ckeditor/ckeditor5-ui": "46.0.0",
|
|
15
|
+
"@ckeditor/ckeditor5-ui": "46.0.1-alpha.0",
|
|
16
16
|
"es-toolkit": "1.39.5"
|
|
17
17
|
},
|
|
18
18
|
"author": "CKSource (http://cksource.com/)",
|
package/src/dom/global.d.ts
CHANGED
package/src/dom/global.js
CHANGED
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
* console.log( global.window.innerWidth );
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
let
|
|
21
|
+
let globalVar; // named globalVar instead of global: https://github.com/ckeditor/ckeditor5/issues/12971
|
|
22
22
|
// In some environments window and document API might not be available.
|
|
23
23
|
try {
|
|
24
|
-
|
|
24
|
+
globalVar = { window, document };
|
|
25
25
|
}
|
|
26
26
|
catch {
|
|
27
27
|
// It's not possible to mock a window object to simulate lack of a window object without writing extremely convoluted code.
|
|
@@ -30,6 +30,6 @@ catch {
|
|
|
30
30
|
// We only handle this so loading editor in environments without window and document doesn't fail.
|
|
31
31
|
// For better DX we shouldn't introduce mixed types and require developers to check the type manually.
|
|
32
32
|
// This module should not be used on purpose in any environment outside browser.
|
|
33
|
-
|
|
33
|
+
globalVar = { window: {}, document: {} };
|
|
34
34
|
}
|
|
35
|
-
export { global };
|
|
35
|
+
export { globalVar as global };
|
package/src/version.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, 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
|
-
export declare const version = "46.0.0";
|
|
5
|
+
export declare const version = "46.0.1-alpha.0";
|
|
6
6
|
export declare const releaseDate: Date;
|
|
7
7
|
declare global {
|
|
8
8
|
var CKEDITOR_VERSION: string;
|
package/src/version.js
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* @module utils/version
|
|
7
7
|
*/
|
|
8
8
|
import { CKEditorError } from './ckeditorerror.js';
|
|
9
|
-
export const version = '46.0.0';
|
|
9
|
+
export const version = '46.0.1-alpha.0';
|
|
10
10
|
// The second argument is not a month. It is `monthIndex` and starts from `0`.
|
|
11
|
-
export const releaseDate = new Date(2025, 6,
|
|
11
|
+
export const releaseDate = new Date(2025, 6, 30);
|
|
12
12
|
/* istanbul ignore next -- @preserve */
|
|
13
13
|
if (globalThis.CKEDITOR_VERSION) {
|
|
14
14
|
/**
|