@ckeditor/ckeditor5-utils 44.3.0 → 45.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.
- package/LICENSE.md +1 -1
- package/dist/index.js +16 -17
- package/dist/index.js.map +1 -1
- package/package.json +3 -4
- package/src/ckeditorerror.js +8 -0
- package/src/collection.js +37 -0
- package/src/config.js +5 -1
- package/src/dom/createelement.js +1 -1
- package/src/dom/emittermixin.js +6 -0
- package/src/dom/position.js +7 -1
- package/src/dom/rect.js +42 -0
- package/src/dom/resizeobserver.js +17 -9
- package/src/elementreplacer.js +4 -0
- package/src/eventinfo.js +37 -0
- package/src/focustracker.d.ts +1 -1
- package/src/focustracker.js +17 -17
- package/src/index.d.ts +1 -1
- package/src/keystrokehandler.js +4 -0
- package/src/locale.js +79 -0
- package/src/observablemixin.js +5 -1
- package/src/translation-service.js +1 -1
- package/src/version.d.ts +1 -1
- package/src/version.js +15 -16
package/LICENSE.md
CHANGED
|
@@ -18,7 +18,7 @@ Where not otherwise indicated, all CKEditor content is authored by CKSource engi
|
|
|
18
18
|
|
|
19
19
|
The following libraries are included in CKEditor under the [MIT license](https://opensource.org/licenses/MIT):
|
|
20
20
|
|
|
21
|
-
*
|
|
21
|
+
* es-toolkit - Copyright (c) 2024 Viva Republica, Inc.
|
|
22
22
|
|
|
23
23
|
Trademarks
|
|
24
24
|
----------
|
package/dist/index.js
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
|
-
import { isObject, isString, isPlainObject, cloneDeepWith, isElement as isElement$1, isFunction, merge } from '
|
|
5
|
+
import { isObject, isString, isPlainObject, cloneDeepWith, isElement as isElement$1, isFunction, merge } from 'es-toolkit/compat';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
@@ -959,9 +959,9 @@ diff.fastDiff = fastDiff;
|
|
|
959
959
|
];
|
|
960
960
|
}
|
|
961
961
|
|
|
962
|
-
const version = '
|
|
962
|
+
const version = '45.0.0-alpha.1';
|
|
963
963
|
// The second argument is not a month. It is `monthIndex` and starts from `0`.
|
|
964
|
-
const releaseDate = new Date(2025, 2,
|
|
964
|
+
const releaseDate = new Date(2025, 2, 27);
|
|
965
965
|
/* istanbul ignore next -- @preserve */ if (globalThis.CKEDITOR_VERSION) {
|
|
966
966
|
/**
|
|
967
967
|
* This error is thrown when, due to a mistake in the way CKEditor 5 was installed,
|
|
@@ -994,14 +994,14 @@ const releaseDate = new Date(2025, 2, 5);
|
|
|
994
994
|
*
|
|
995
995
|
* - **New installation methods (NIM)** – Imports from the `ckeditor5` and `ckeditor5-premium-features` packages.
|
|
996
996
|
* - **Optimized build** for the new installation methods – Imports from the `@ckeditor/ckeditor5-<NAME>/dist/index.js`.
|
|
997
|
-
* - **Predefined builds** (
|
|
997
|
+
* - **Predefined builds** (no longer supported) – Imports from the `@ckeditor/ckeditor5-build-<NAME>` packages.
|
|
998
998
|
* - **Default imports** (legacy) – Imports from the `@ckeditor/ckeditor5-<NAME>` packages (default export).
|
|
999
999
|
* - **`src`** (legacy) – Imports from the `@ckeditor/ckeditor5-<NAME>/src/*`.
|
|
1000
1000
|
* - **DLL builds** (legacy) – Imports from the `ckeditor5/build/<NAME>` and `@ckeditor/ckeditor5-<NAME>/build/*`.
|
|
1001
1001
|
*
|
|
1002
1002
|
* The best way to avoid duplicate modules is to avoid mixing these installation methods. For example, if you use imports
|
|
1003
1003
|
* specific to the optimized build, you should use them for all CKEditor 5 packages. In addition, since
|
|
1004
|
-
* the
|
|
1004
|
+
* the DLL builds already include the core of the editor, they cannot be used with other types of imports.
|
|
1005
1005
|
*
|
|
1006
1006
|
* Here is a matrix showing which installation methods are compatible with each other:
|
|
1007
1007
|
*
|
|
@@ -1040,11 +1040,15 @@ const releaseDate = new Date(2025, 2, 5);
|
|
|
1040
1040
|
* </details>
|
|
1041
1041
|
*
|
|
1042
1042
|
* <details>
|
|
1043
|
-
* <summary>(
|
|
1043
|
+
* <summary>(Deprecated) Predefined builds</summary>
|
|
1044
1044
|
*
|
|
1045
|
-
*
|
|
1046
|
-
*
|
|
1047
|
-
*
|
|
1045
|
+
* **As of April, 2025 predefined build are no longer supported. Please refer to the
|
|
1046
|
+
* {@glink getting-started/index Quick Start} guide
|
|
1047
|
+
* to choose one of the modern installation and integration methods available**.
|
|
1048
|
+
*
|
|
1049
|
+
* If you use the predefined builds, you cannot import any additional plugins.
|
|
1050
|
+
* These builds already include the editor's core and selected plugins and importing additional
|
|
1051
|
+
* ones will cause some modules to be bundled and loaded twice.
|
|
1048
1052
|
*
|
|
1049
1053
|
* Examples of valid and invalid import paths:
|
|
1050
1054
|
*
|
|
@@ -1057,13 +1061,9 @@ const releaseDate = new Date(2025, 2, 5);
|
|
|
1057
1061
|
* import '@ckeditor/ckeditor5-highlight/build/highlight'; // ❌
|
|
1058
1062
|
* ```
|
|
1059
1063
|
*
|
|
1060
|
-
* If you are missing some features from the
|
|
1061
|
-
* {@glink
|
|
1062
|
-
* you should switch to the {@glink updating/nim-migration/migration-to-new-installation-methods new installation methods}
|
|
1064
|
+
* If you are missing some features from the list of plugins, you should switch to the
|
|
1065
|
+
* {@glink updating/nim-migration/migration-to-new-installation-methods new installation methods}
|
|
1063
1066
|
* which do not have this limitation.
|
|
1064
|
-
* If you cannot migrate to the new installation methods, try the
|
|
1065
|
-
* {@glink getting-started/legacy/installation-methods/predefined-builds#superbuild superbuild} instead.
|
|
1066
|
-
* This build contains all the editor features.
|
|
1067
1067
|
* </details>
|
|
1068
1068
|
*
|
|
1069
1069
|
* <details>
|
|
@@ -1074,8 +1074,7 @@ const releaseDate = new Date(2025, 2, 5);
|
|
|
1074
1074
|
* the `@ckeditor/ckeditor5-<NAME>/src/*` files, it is not recommended as it can make migration to the new installation
|
|
1075
1075
|
* methods more difficult.
|
|
1076
1076
|
*
|
|
1077
|
-
* If you use this installation method, you should not import code from the `ckeditor5
|
|
1078
|
-
* or `@ckeditor/ckeditor5-build-<NAME>` packages.
|
|
1077
|
+
* If you use this installation method, you should not import code from the `ckeditor5` or `ckeditor5-premium-features` packages.
|
|
1079
1078
|
*
|
|
1080
1079
|
* Examples of valid and invalid import paths:
|
|
1081
1080
|
*
|