@ckeditor/ckeditor5-utils 40.2.0 → 41.0.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.
Files changed (135) hide show
  1. package/CHANGELOG.md +5 -5
  2. package/LICENSE.md +1 -1
  3. package/package.json +2 -1
  4. package/src/abortabledebounce.d.ts +1 -1
  5. package/src/abortabledebounce.js +1 -1
  6. package/src/areconnectedthroughproperties.d.ts +1 -1
  7. package/src/areconnectedthroughproperties.js +1 -1
  8. package/src/ckeditorerror.d.ts +1 -1
  9. package/src/ckeditorerror.js +1 -1
  10. package/src/collection.d.ts +3 -3
  11. package/src/collection.js +5 -5
  12. package/src/comparearrays.d.ts +1 -1
  13. package/src/comparearrays.js +1 -1
  14. package/src/config.d.ts +1 -1
  15. package/src/config.js +1 -1
  16. package/src/count.d.ts +1 -1
  17. package/src/count.js +1 -1
  18. package/src/delay.d.ts +1 -1
  19. package/src/delay.js +1 -1
  20. package/src/diff.d.ts +2 -2
  21. package/src/diff.js +2 -2
  22. package/src/difftochanges.d.ts +2 -2
  23. package/src/difftochanges.js +1 -1
  24. package/src/dom/createelement.d.ts +1 -1
  25. package/src/dom/createelement.js +2 -2
  26. package/src/dom/emittermixin.d.ts +4 -4
  27. package/src/dom/emittermixin.js +5 -5
  28. package/src/dom/findclosestscrollableancestor.d.ts +1 -1
  29. package/src/dom/findclosestscrollableancestor.js +2 -2
  30. package/src/dom/getancestors.d.ts +1 -1
  31. package/src/dom/getancestors.js +1 -1
  32. package/src/dom/getborderwidths.d.ts +1 -1
  33. package/src/dom/getborderwidths.js +1 -1
  34. package/src/dom/getcommonancestor.d.ts +1 -1
  35. package/src/dom/getcommonancestor.js +2 -2
  36. package/src/dom/getdatafromelement.d.ts +1 -1
  37. package/src/dom/getdatafromelement.js +1 -1
  38. package/src/dom/getpositionedancestor.d.ts +1 -1
  39. package/src/dom/getpositionedancestor.js +2 -2
  40. package/src/dom/global.d.ts +1 -1
  41. package/src/dom/global.js +1 -1
  42. package/src/dom/indexof.d.ts +1 -1
  43. package/src/dom/indexof.js +1 -1
  44. package/src/dom/insertat.d.ts +1 -1
  45. package/src/dom/insertat.js +1 -1
  46. package/src/dom/iscomment.d.ts +1 -1
  47. package/src/dom/iscomment.js +1 -1
  48. package/src/dom/isnode.d.ts +1 -1
  49. package/src/dom/isnode.js +1 -1
  50. package/src/dom/isrange.d.ts +1 -1
  51. package/src/dom/isrange.js +1 -1
  52. package/src/dom/istext.d.ts +1 -1
  53. package/src/dom/istext.js +1 -1
  54. package/src/dom/isvalidattributename.d.ts +1 -1
  55. package/src/dom/isvalidattributename.js +2 -2
  56. package/src/dom/isvisible.d.ts +1 -1
  57. package/src/dom/isvisible.js +1 -1
  58. package/src/dom/iswindow.d.ts +1 -1
  59. package/src/dom/iswindow.js +1 -1
  60. package/src/dom/position.d.ts +7 -7
  61. package/src/dom/position.js +4 -4
  62. package/src/dom/rect.d.ts +1 -1
  63. package/src/dom/rect.js +7 -7
  64. package/src/dom/remove.d.ts +1 -1
  65. package/src/dom/remove.js +1 -1
  66. package/src/dom/resizeobserver.d.ts +1 -1
  67. package/src/dom/resizeobserver.js +4 -3
  68. package/src/dom/scroll.d.ts +1 -1
  69. package/src/dom/scroll.js +4 -4
  70. package/src/dom/setdatainelement.d.ts +1 -1
  71. package/src/dom/setdatainelement.js +1 -1
  72. package/src/dom/tounit.d.ts +1 -1
  73. package/src/dom/tounit.js +1 -1
  74. package/src/elementreplacer.d.ts +1 -1
  75. package/src/elementreplacer.js +1 -1
  76. package/src/emittermixin.d.ts +5 -5
  77. package/src/emittermixin.js +7 -7
  78. package/src/env.d.ts +1 -1
  79. package/src/env.js +1 -1
  80. package/src/eventinfo.d.ts +1 -1
  81. package/src/eventinfo.js +2 -2
  82. package/src/fastdiff.d.ts +3 -3
  83. package/src/fastdiff.js +1 -1
  84. package/src/first.d.ts +1 -1
  85. package/src/first.js +1 -1
  86. package/src/focustracker.d.ts +5 -5
  87. package/src/focustracker.js +4 -4
  88. package/src/index.d.ts +58 -58
  89. package/src/index.js +57 -57
  90. package/src/inserttopriorityarray.d.ts +2 -2
  91. package/src/inserttopriorityarray.js +2 -2
  92. package/src/isiterable.d.ts +1 -1
  93. package/src/isiterable.js +1 -1
  94. package/src/keyboard.d.ts +2 -2
  95. package/src/keyboard.js +3 -3
  96. package/src/keystrokehandler.d.ts +4 -4
  97. package/src/keystrokehandler.js +3 -3
  98. package/src/language.d.ts +1 -1
  99. package/src/language.js +1 -1
  100. package/src/locale.d.ts +3 -3
  101. package/src/locale.js +4 -4
  102. package/src/mapsequal.d.ts +1 -1
  103. package/src/mapsequal.js +1 -1
  104. package/src/mix.d.ts +1 -1
  105. package/src/mix.js +1 -1
  106. package/src/nth.d.ts +1 -1
  107. package/src/nth.js +1 -1
  108. package/src/objecttomap.d.ts +1 -1
  109. package/src/objecttomap.js +1 -1
  110. package/src/observablemixin.d.ts +3 -3
  111. package/src/observablemixin.js +3 -3
  112. package/src/priorities.d.ts +1 -1
  113. package/src/priorities.js +1 -1
  114. package/src/retry.d.ts +1 -1
  115. package/src/retry.js +2 -2
  116. package/src/splicearray.d.ts +1 -1
  117. package/src/splicearray.js +1 -1
  118. package/src/spy.d.ts +1 -1
  119. package/src/spy.js +1 -1
  120. package/src/toarray.d.ts +1 -1
  121. package/src/toarray.js +1 -1
  122. package/src/tomap.d.ts +1 -1
  123. package/src/tomap.js +3 -3
  124. package/src/translation-service.d.ts +1 -1
  125. package/src/translation-service.js +3 -3
  126. package/src/uid.d.ts +1 -1
  127. package/src/uid.js +1 -1
  128. package/src/unicode.d.ts +1 -1
  129. package/src/unicode.js +1 -1
  130. package/src/verifylicense.d.ts +1 -1
  131. package/src/verifylicense.js +2 -2
  132. package/src/version.d.ts +2 -2
  133. package/src/version.js +4 -4
  134. package/src/wait.d.ts +1 -1
  135. package/src/wait.js +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import Rect, { type RectSource } from './rect';
5
+ import Rect, { type RectSource } from './rect.js';
6
6
  /**
7
7
  * Calculates the `position: absolute` coordinates of a given element so it can be positioned with respect to the
8
8
  * target in the visually most efficient way, taking various restrictions like viewport or limiter geometry
@@ -71,15 +71,15 @@ import Rect, { type RectSource } from './rect';
71
71
  *
72
72
  * @param options The input data and configuration of the helper.
73
73
  */
74
- export declare function getOptimalPosition({ element, target, positions, limiter, fitInViewport, viewportOffsetConfig }: Options): Position | null;
74
+ export declare function getOptimalPosition({ element, target, positions, limiter, fitInViewport, viewportOffsetConfig }: Options): DomPoint | null;
75
75
  /**
76
76
  * A position object which instances are created and used by the {@link module:utils/dom/position~getOptimalPosition} helper.
77
77
  *
78
- * {@link module:utils/dom/position~Position#top} and {@link module:utils/dom/position~Position#left} properties of the position instance
78
+ * {@link module:utils/dom/position~DomPoint#top} and {@link module:utils/dom/position~DomPoint#left} properties of the position instance
79
79
  * translate directly to the `top` and `left` properties in CSS "`position: absolute` coordinate system". If set on the positioned element
80
80
  * in DOM, they will make it display it in the right place in the viewport.
81
81
  */
82
- export interface Position {
82
+ export interface DomPoint {
83
83
  /**
84
84
  * Position name.
85
85
  */
@@ -197,13 +197,13 @@ export interface PositioningFunctionResult {
197
197
  left: number;
198
198
  /**
199
199
  * The name of the position. It helps the user of the {@link module:utils/dom/position~getOptimalPosition}
200
- * helper to recognize different positioning function results. It will pass through to the {@link module:utils/dom/position~Position}
200
+ * helper to recognize different positioning function results. It will pass through to the {@link module:utils/dom/position~DomPoint}
201
201
  * returned by the helper.
202
202
  */
203
203
  name?: string;
204
204
  /**
205
205
  * An optional configuration that will pass-through the {@link module:utils/dom/position~getOptimalPosition} helper
206
- * to the {@link module:utils/dom/position~Position} returned by this helper.
206
+ * to the {@link module:utils/dom/position~DomPoint} returned by this helper.
207
207
  * This configuration may, for instance, let the user of {@link module:utils/dom/position~getOptimalPosition} know that this particular
208
208
  * position comes with a certain presentation.
209
209
  */
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module utils/dom/position
7
7
  */
8
- import global from './global';
9
- import Rect from './rect';
10
- import getPositionedAncestor from './getpositionedancestor';
8
+ import global from './global.js';
9
+ import Rect from './rect.js';
10
+ import getPositionedAncestor from './getpositionedancestor.js';
11
11
  import { isFunction } from 'lodash-es';
12
12
  // @if CK_DEBUG_POSITION // const {
13
13
  // @if CK_DEBUG_POSITION // default: RectDrawer,
package/src/dom/rect.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
package/src/dom/rect.js CHANGED
@@ -1,16 +1,16 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module utils/dom/rect
7
7
  */
8
- import isRange from './isrange';
9
- import isWindow from './iswindow';
10
- import getBorderWidths from './getborderwidths';
11
- import isText from './istext';
12
- import getPositionedAncestor from './getpositionedancestor';
13
- import global from './global';
8
+ import isRange from './isrange.js';
9
+ import isWindow from './iswindow.js';
10
+ import getBorderWidths from './getborderwidths.js';
11
+ import isText from './istext.js';
12
+ import getPositionedAncestor from './getpositionedancestor.js';
13
+ import global from './global.js';
14
14
  const rectProperties = ['top', 'right', 'bottom', 'left', 'width', 'height'];
15
15
  /**
16
16
  * A helper class representing a `ClientRect` object, e.g. value returned by
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
package/src/dom/remove.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module utils/dom/resizeobserver
7
7
  */
8
- import global from './global';
8
+ import global from './global.js';
9
9
  /**
10
10
  * A helper class which instances allow performing custom actions when native DOM elements are resized.
11
11
  *
@@ -22,7 +22,7 @@ import global from './global';
22
22
  * It uses the [native DOM resize observer](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
23
23
  * under the hood.
24
24
  */
25
- export default class ResizeObserver {
25
+ class ResizeObserver {
26
26
  /**
27
27
  * Creates an instance of the `ResizeObserver` class.
28
28
  *
@@ -124,3 +124,4 @@ ResizeObserver._observerInstance = null;
124
124
  * {@link module:utils/dom/resizeobserver~ResizeObserver} instances.
125
125
  */
126
126
  ResizeObserver._elementCallbacks = null;
127
+ export default ResizeObserver;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  type IfTrue<T> = T extends true ? true : never;
package/src/dom/scroll.js CHANGED
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module utils/dom/scroll
7
7
  */
8
- import isRange from './isrange';
9
- import Rect from './rect';
10
- import isText from './istext';
8
+ import isRange from './isrange.js';
9
+ import Rect from './rect.js';
10
+ import isText from './istext.js';
11
11
  /**
12
12
  * Makes any page `HTMLElement` or `Range` (`target`) visible inside the browser viewport.
13
13
  * This helper will scroll all `target` ancestors and the web browser viewport to reveal the target to
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
package/src/dom/tounit.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module utils/emittermixin
7
7
  */
8
- import EventInfo from './eventinfo';
9
- import { type PriorityString } from './priorities';
10
- import type { Constructor, Mixed } from './mix';
11
- import './version';
8
+ import EventInfo from './eventinfo.js';
9
+ import { type PriorityString } from './priorities.js';
10
+ import type { Constructor, Mixed } from './mix.js';
11
+ import './version.js';
12
12
  /**
13
13
  * Mixin that injects the {@link ~Emitter events API} into its host.
14
14
  *
@@ -1,17 +1,17 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module utils/emittermixin
7
7
  */
8
- import EventInfo from './eventinfo';
9
- import uid from './uid';
10
- import priorities from './priorities';
11
- import insertToPriorityArray from './inserttopriorityarray';
8
+ import EventInfo from './eventinfo.js';
9
+ import uid from './uid.js';
10
+ import priorities from './priorities.js';
11
+ import insertToPriorityArray from './inserttopriorityarray.js';
12
12
  // To check if component is loaded more than once.
13
- import './version';
14
- import CKEditorError from './ckeditorerror';
13
+ import './version.js';
14
+ import CKEditorError from './ckeditorerror.js';
15
15
  const _listeningTo = Symbol('listeningTo');
16
16
  const _emitterId = Symbol('emitterId');
17
17
  const _delegations = Symbol('delegations');
package/src/env.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
package/src/env.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /* globals navigator:false */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
package/src/eventinfo.js CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module utils/eventinfo
7
7
  */
8
- import spy from './spy';
8
+ import spy from './spy.js';
9
9
  /**
10
10
  * The event object passed to event callbacks. It is used to provide information about the event as well as a tool to
11
11
  * manipulate it.
package/src/fastdiff.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import type { DiffResult } from './diff';
6
- import type { Change } from './difftochanges';
5
+ import type { DiffResult } from './diff.js';
6
+ import type { Change } from './difftochanges.js';
7
7
  /**
8
8
  * @module utils/fastdiff
9
9
  */
package/src/fastdiff.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
package/src/first.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
package/src/first.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- declare const FocusTracker_base: import("./mix").Mixed<{
6
- new (): import("./observablemixin").Observable;
7
- prototype: import("./observablemixin").Observable;
8
- }, import("./dom/emittermixin").DomEmitter>;
5
+ declare const FocusTracker_base: import("./mix.js").Mixed<{
6
+ new (): import("./observablemixin.js").Observable;
7
+ prototype: import("./observablemixin.js").Observable;
8
+ }, import("./dom/emittermixin.js").DomEmitter>;
9
9
  /**
10
10
  * Allows observing a group of `Element`s whether at least one of them is focused.
11
11
  *
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /* global setTimeout, clearTimeout */
6
6
  /**
7
7
  * @module utils/focustracker
8
8
  */
9
- import DomEmitterMixin from './dom/emittermixin';
10
- import ObservableMixin from './observablemixin';
11
- import CKEditorError from './ckeditorerror';
9
+ import DomEmitterMixin from './dom/emittermixin.js';
10
+ import ObservableMixin from './observablemixin.js';
11
+ import CKEditorError from './ckeditorerror.js';
12
12
  /**
13
13
  * Allows observing a group of `Element`s whether at least one of them is focused.
14
14
  *
package/src/index.d.ts CHANGED
@@ -1,64 +1,64 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module utils
7
7
  */
8
- export { default as env } from './env';
9
- export { default as diff, type DiffResult } from './diff';
10
- export { default as fastDiff } from './fastdiff';
11
- export { default as diffToChanges } from './difftochanges';
12
- export { default as mix } from './mix';
13
- export type { Constructor, Mixed } from './mix';
14
- export { default as EmitterMixin, type Emitter, type BaseEvent, type CallbackOptions, type EmitterMixinDelegateChain, type GetCallback, type GetCallbackOptions, type GetEventInfo, type GetNameOrEventInfo } from './emittermixin';
15
- export { default as EventInfo } from './eventinfo';
16
- export { default as ObservableMixin, type Observable, type DecoratedMethodEvent, type ObservableChangeEvent, type ObservableSetEvent } from './observablemixin';
17
- export { default as CKEditorError, logError, logWarning } from './ckeditorerror';
18
- export { default as ElementReplacer } from './elementreplacer';
19
- export { default as abortableDebounce, type AbortableFunc } from './abortabledebounce';
20
- export { default as count } from './count';
21
- export { default as compareArrays } from './comparearrays';
22
- export { default as createElement } from './dom/createelement';
23
- export { default as Config } from './config';
24
- export { default as isIterable } from './isiterable';
25
- export { default as DomEmitterMixin, type DomEmitter } from './dom/emittermixin';
26
- export { default as findClosestScrollableAncestor } from './dom/findclosestscrollableancestor';
27
- export { default as global } from './dom/global';
28
- export { default as getAncestors } from './dom/getancestors';
29
- export { default as getDataFromElement } from './dom/getdatafromelement';
30
- export { default as getBorderWidths } from './dom/getborderwidths';
31
- export { default as isText } from './dom/istext';
32
- export { default as Rect, type RectSource } from './dom/rect';
33
- export { default as ResizeObserver } from './dom/resizeobserver';
34
- export { default as setDataInElement } from './dom/setdatainelement';
35
- export { default as toUnit } from './dom/tounit';
36
- export { default as indexOf } from './dom/indexof';
37
- export { default as insertAt } from './dom/insertat';
38
- export { default as isComment } from './dom/iscomment';
39
- export { default as isNode } from './dom/isnode';
40
- export { default as isRange } from './dom/isrange';
41
- export { default as isValidAttributeName } from './dom/isvalidattributename';
42
- export { default as isVisible } from './dom/isvisible';
43
- export { getOptimalPosition, type Options as PositionOptions, type PositioningFunction, type Position } from './dom/position';
44
- export { default as remove } from './dom/remove';
45
- export * from './dom/scroll';
46
- export * from './keyboard';
47
- export * from './language';
48
- export { default as Locale, type LocaleTranslate } from './locale';
49
- export { default as Collection, type CollectionAddEvent, type CollectionChangeEvent, type CollectionRemoveEvent } from './collection';
50
- export { default as first } from './first';
51
- export { default as FocusTracker } from './focustracker';
52
- export { default as KeystrokeHandler } from './keystrokehandler';
53
- export { default as toArray, type ArrayOrItem, type ReadonlyArrayOrItem } from './toarray';
54
- export { default as toMap } from './tomap';
55
- export { default as priorities, type PriorityString } from './priorities';
56
- export { default as retry, exponentialDelay } from './retry';
57
- export { default as insertToPriorityArray } from './inserttopriorityarray';
58
- export { default as spliceArray } from './splicearray';
59
- export { default as uid } from './uid';
60
- export { default as delay, type DelayedFunc } from './delay';
61
- export { default as verifyLicense } from './verifylicense';
62
- export { default as wait } from './wait';
63
- export * from './unicode';
64
- export { default as version, releaseDate } from './version';
8
+ export { default as env } from './env.js';
9
+ export { default as diff, type DiffResult } from './diff.js';
10
+ export { default as fastDiff } from './fastdiff.js';
11
+ export { default as diffToChanges } from './difftochanges.js';
12
+ export { default as mix } from './mix.js';
13
+ export type { Constructor, Mixed } from './mix.js';
14
+ export { default as EmitterMixin, type Emitter, type BaseEvent, type CallbackOptions, type EmitterMixinDelegateChain, type GetCallback, type GetCallbackOptions, type GetEventInfo, type GetNameOrEventInfo } from './emittermixin.js';
15
+ export { default as EventInfo } from './eventinfo.js';
16
+ export { default as ObservableMixin, type Observable, type DecoratedMethodEvent, type ObservableChangeEvent, type ObservableSetEvent } from './observablemixin.js';
17
+ export { default as CKEditorError, logError, logWarning } from './ckeditorerror.js';
18
+ export { default as ElementReplacer } from './elementreplacer.js';
19
+ export { default as abortableDebounce, type AbortableFunc } from './abortabledebounce.js';
20
+ export { default as count } from './count.js';
21
+ export { default as compareArrays } from './comparearrays.js';
22
+ export { default as createElement } from './dom/createelement.js';
23
+ export { default as Config } from './config.js';
24
+ export { default as isIterable } from './isiterable.js';
25
+ export { default as DomEmitterMixin, type DomEmitter } from './dom/emittermixin.js';
26
+ export { default as findClosestScrollableAncestor } from './dom/findclosestscrollableancestor.js';
27
+ export { default as global } from './dom/global.js';
28
+ export { default as getAncestors } from './dom/getancestors.js';
29
+ export { default as getDataFromElement } from './dom/getdatafromelement.js';
30
+ export { default as getBorderWidths } from './dom/getborderwidths.js';
31
+ export { default as isText } from './dom/istext.js';
32
+ export { default as Rect, type RectSource } from './dom/rect.js';
33
+ export { default as ResizeObserver } from './dom/resizeobserver.js';
34
+ export { default as setDataInElement } from './dom/setdatainelement.js';
35
+ export { default as toUnit } from './dom/tounit.js';
36
+ export { default as indexOf } from './dom/indexof.js';
37
+ export { default as insertAt } from './dom/insertat.js';
38
+ export { default as isComment } from './dom/iscomment.js';
39
+ export { default as isNode } from './dom/isnode.js';
40
+ export { default as isRange } from './dom/isrange.js';
41
+ export { default as isValidAttributeName } from './dom/isvalidattributename.js';
42
+ export { default as isVisible } from './dom/isvisible.js';
43
+ export { getOptimalPosition, type Options as PositionOptions, type PositioningFunction, type DomPoint } from './dom/position.js';
44
+ export { default as remove } from './dom/remove.js';
45
+ export * from './dom/scroll.js';
46
+ export * from './keyboard.js';
47
+ export * from './language.js';
48
+ export { default as Locale, type LocaleTranslate } from './locale.js';
49
+ export { default as Collection, type CollectionAddEvent, type CollectionChangeEvent, type CollectionRemoveEvent } from './collection.js';
50
+ export { default as first } from './first.js';
51
+ export { default as FocusTracker } from './focustracker.js';
52
+ export { default as KeystrokeHandler } from './keystrokehandler.js';
53
+ export { default as toArray, type ArrayOrItem, type ReadonlyArrayOrItem } from './toarray.js';
54
+ export { default as toMap } from './tomap.js';
55
+ export { default as priorities, type PriorityString } from './priorities.js';
56
+ export { default as retry, exponentialDelay } from './retry.js';
57
+ export { default as insertToPriorityArray } from './inserttopriorityarray.js';
58
+ export { default as spliceArray } from './splicearray.js';
59
+ export { default as uid } from './uid.js';
60
+ export { default as delay, type DelayedFunc } from './delay.js';
61
+ export { default as verifyLicense } from './verifylicense.js';
62
+ export { default as wait } from './wait.js';
63
+ export * from './unicode.js';
64
+ export { default as version, releaseDate } from './version.js';