@ckeditor/ckeditor5-utils 48.2.0-alpha.7 → 48.3.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.
Files changed (82) hide show
  1. package/dist/abortabledebounce.d.ts +19 -13
  2. package/dist/areconnectedthroughproperties.d.ts +7 -7
  3. package/dist/ckeditorerror.d.ts +113 -113
  4. package/dist/collection.d.ts +419 -415
  5. package/dist/collectstylesheets.d.ts +9 -9
  6. package/dist/comparearrays.d.ts +25 -25
  7. package/dist/config.d.ts +159 -156
  8. package/dist/count.d.ts +14 -14
  9. package/dist/crc32.d.ts +19 -19
  10. package/dist/decodelicensekey.d.ts +7 -7
  11. package/dist/delay.d.ts +13 -13
  12. package/dist/diff.d.ts +32 -27
  13. package/dist/difftochanges.d.ts +47 -47
  14. package/dist/dom/createelement.d.ts +43 -43
  15. package/dist/dom/emittermixin.d.ts +144 -135
  16. package/dist/dom/findclosestscrollableancestor.d.ts +8 -8
  17. package/dist/dom/getancestors.d.ts +13 -13
  18. package/dist/dom/getborderwidths.d.ts +16 -16
  19. package/dist/dom/getcommonancestor.d.ts +9 -9
  20. package/dist/dom/getdatafromelement.d.ts +10 -10
  21. package/dist/dom/getpositionedancestor.d.ts +7 -7
  22. package/dist/dom/getrangefrommouseevent.d.ts +12 -12
  23. package/dist/dom/getvisualviewportoffset.d.ts +7 -7
  24. package/dist/dom/global.d.ts +24 -24
  25. package/dist/dom/indexof.d.ts +10 -10
  26. package/dist/dom/insertat.d.ts +11 -11
  27. package/dist/dom/iscomment.d.ts +7 -7
  28. package/dist/dom/isnode.d.ts +7 -7
  29. package/dist/dom/isrange.d.ts +7 -7
  30. package/dist/dom/istext.d.ts +7 -7
  31. package/dist/dom/isvalidattributename.d.ts +7 -7
  32. package/dist/dom/isvisible.d.ts +12 -12
  33. package/dist/dom/iswindow.d.ts +7 -7
  34. package/dist/dom/position.d.ts +200 -200
  35. package/dist/dom/rect.d.ts +194 -194
  36. package/dist/dom/remove.d.ts +9 -9
  37. package/dist/dom/resizeobserver.d.ts +70 -70
  38. package/dist/dom/scroll.d.ts +75 -72
  39. package/dist/dom/setdatainelement.d.ts +10 -10
  40. package/dist/dom/tounit.d.ts +16 -16
  41. package/dist/elementreplacer.d.ts +26 -26
  42. package/dist/emittermixin.d.ts +290 -280
  43. package/dist/env.d.ts +124 -124
  44. package/dist/eventinfo.d.ts +58 -55
  45. package/dist/fastdiff.d.ts +112 -109
  46. package/dist/first.d.ts +7 -7
  47. package/dist/focustracker.d.ts +133 -131
  48. package/dist/formathtml.d.ts +15 -15
  49. package/dist/index-content.css +1 -0
  50. package/dist/index-editor.css +1 -0
  51. package/dist/index.css +0 -2
  52. package/dist/index.d.ts +78 -77
  53. package/dist/index.js +5695 -6360
  54. package/dist/index.js.map +1 -1
  55. package/dist/inserttopriorityarray.d.ts +23 -23
  56. package/dist/isfeatureblockedbylicensekey.d.ts +10 -10
  57. package/dist/isiterable.d.ts +10 -10
  58. package/dist/keyboard.d.ts +107 -109
  59. package/dist/keystrokehandler.d.ts +90 -90
  60. package/dist/language.d.ts +12 -12
  61. package/dist/legacyerrors.d.ts +0 -4
  62. package/dist/locale.d.ts +122 -122
  63. package/dist/mapsequal.d.ts +11 -11
  64. package/dist/mix.d.ts +54 -53
  65. package/dist/nth.d.ts +12 -12
  66. package/dist/objecttomap.d.ts +18 -18
  67. package/dist/observablemixin.d.ts +621 -539
  68. package/dist/parsebase64encodedobject.d.ts +7 -7
  69. package/dist/parsedimensionwithunit.d.ts +40 -0
  70. package/dist/priorities.d.ts +24 -24
  71. package/dist/retry.d.ts +27 -27
  72. package/dist/splicearray.d.ts +22 -22
  73. package/dist/spy.d.ts +15 -15
  74. package/dist/toarray.d.ts +17 -17
  75. package/dist/tomap.d.ts +15 -15
  76. package/dist/translation-service.d.ts +157 -157
  77. package/dist/uid.d.ts +12 -12
  78. package/dist/unicode.d.ts +42 -42
  79. package/dist/version.d.ts +5 -5
  80. package/dist/wait.d.ts +11 -11
  81. package/package.json +2 -2
  82. package/dist/index.css.map +0 -1
@@ -1,140 +1,142 @@
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
- */
5
- import type { View } from '@ckeditor/ckeditor5-ui';
6
- declare const FocusTracker_base: import("./mix.js").Mixed<{
7
- new (): import("./observablemixin.js").Observable;
8
- prototype: import("./observablemixin.js").Observable;
9
- }, import("./dom/emittermixin.js").DomEmitter>;
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
+ */
10
5
  /**
11
- * Allows observing a group of DOM `Element`s or {@link module:ui/view~View view instances} whether at least one of them (or their child)
12
- * is focused.
13
- *
14
- * Used by the {@link module:core/editor/editor~Editor} in order to track whether the focus is still within the application,
15
- * or were used outside of its UI.
16
- *
17
- * **Note** `focus` and `blur` listeners use event capturing, so it is only needed to register wrapper `Element`
18
- * which contain other `focusable` elements. But note that this wrapper element has to be focusable too
19
- * (have e.g. `tabindex="-1"`).
20
- *
21
- * Check out the {@glink framework/deep-dive/ui/focus-tracking "Deep dive into focus tracking"} guide to learn more.
22
- */
23
- export declare class FocusTracker extends /* #__PURE__ */ FocusTracker_base {
24
- /**
25
- * True when one of the registered {@link #elements} or {@link #externalViews} is focused.
26
- *
27
- * @readonly
28
- * @observable
29
- */
30
- isFocused: boolean;
31
- /**
32
- * The currently focused element.
33
- *
34
- * While {@link #isFocused `isFocused`} remains `true`, the focus can move between different UI elements. This property tracks those
35
- * elements and tells which one is currently focused.
36
- *
37
- * **Note**: The values of this property are restricted to {@link #elements} or {@link module:ui/view~View#element elements}
38
- * registered in {@link #externalViews}.
39
- *
40
- * @readonly
41
- * @observable
42
- */
43
- focusedElement: Element | null;
44
- /**
45
- * List of registered DOM elements.
46
- *
47
- * @internal
48
- */
49
- _elements: Set<Element>;
50
- /**
51
- * List of views with external focus trackers that contribute to the state of this focus tracker.
52
- *
53
- * @internal
54
- */
55
- _externalViews: Set<ViewWithFocusTracker>;
56
- /**
57
- * Asynchronous blur event timeout.
58
- */
59
- private _blurTimeout;
60
- constructor();
61
- /**
62
- * List of registered DOM elements.
63
- *
64
- * **Note**: The list does do not include elements from {@link #externalViews}.
65
- */
66
- get elements(): Array<Element>;
67
- /**
68
- * List of external focusable views that contribute to the state of this focus tracker. See {@link #add} to learn more.
69
- */
70
- get externalViews(): Array<ViewWithFocusTracker>;
71
- /**
72
- * Starts tracking a specified DOM element or a {@link module:ui/view~View} instance.
73
- *
74
- * * If a DOM element is passed, the focus tracker listens to the `focus` and `blur` events on this element.
75
- * Tracked elements are listed in {@link #elements}.
76
- * * If a {@link module:ui/view~View} instance is passed that has a `FocusTracker` instance ({@link ~ViewWithFocusTracker}),
77
- * the external focus tracker's state ({@link #isFocused}, {@link #focusedElement}) starts contributing to the current tracker instance.
78
- * This allows for increasing the "reach" of a focus tracker instance, by connecting two or more focus trackers together when DOM
79
- * elements they track are located in different subtrees in DOM. External focus trackers are listed in {@link #externalViews}.
80
- * * If a {@link module:ui/view~View} instance is passed that has no `FocusTracker` (**not** a {@link ~ViewWithFocusTracker}),
81
- * its {@link module:ui/view~View#element} is used to track focus like any other DOM element.
82
- */
83
- add(elementOrView: Element | View): void;
84
- /**
85
- * Stops tracking focus in the specified DOM element or a {@link module:ui/view~View view instance}. See {@link #add} to learn more.
86
- */
87
- remove(elementOrView: Element | View): void;
88
- /**
89
- * Adds a DOM element to the focus tracker and starts listening to the `focus` and `blur` events on it.
90
- */
91
- private _addElement;
92
- /**
93
- * Removes a DOM element from the focus tracker.
94
- */
95
- private _removeElement;
96
- /**
97
- * Adds an external {@link module:ui/view~View view instance} to this focus tracker and makes it contribute to this focus tracker's
98
- * state either by its `View#element` or by its `View#focusTracker` instance.
99
- */
100
- private _addView;
101
- /**
102
- * Removes an external {@link module:ui/view~View view instance} from this focus tracker.
103
- */
104
- private _removeView;
105
- /**
106
- * Destroys the focus tracker by:
107
- * - Disabling all event listeners attached to tracked elements or external views.
108
- * - Removing all tracked elements and views that were previously added.
109
- */
110
- destroy(): void;
111
- /**
112
- * Stores currently focused element as {@link #focusedElement} and sets {@link #isFocused} `true`.
113
- */
114
- private _focus;
115
- /**
116
- * Clears currently {@link #focusedElement} and sets {@link #isFocused} `false`.
117
- *
118
- * This method uses `setTimeout()` to change order of `blur` and `focus` events calls, ensuring that moving focus between
119
- * two elements within a single focus tracker's scope, will not cause `[ blurA, focusB ]` sequence but just `[ focusB ]`.
120
- * The former would cause a momentary change of `#isFocused` to `false` which is not desired because any logic listening to
121
- * a focus tracker state would experience UI flashes and glitches as the user focus travels across the UI.
122
- */
123
- private _blur;
124
- /**
125
- * Clears the asynchronous blur event timeout on demand. See {@link #_blur} to learn more.
126
- */
127
- private _clearBlurTimeout;
6
+ * @module utils/focustracker
7
+ */
8
+ import { type DomEmitterMixinConstructor } from "./dom/emittermixin.js";
9
+ import { type ObservableMixinConstructor } from "./observablemixin.js";
10
+ import type { View } from "@ckeditor/ckeditor5-ui";
11
+ declare const FocusTrackerBase: DomEmitterMixinConstructor<ObservableMixinConstructor>;
12
+ /**
13
+ * Allows observing a group of DOM `Element`s or {@link module:ui/view~View view instances} whether at least one of them (or their child)
14
+ * is focused.
15
+ *
16
+ * Used by the {@link module:core/editor/editor~Editor} in order to track whether the focus is still within the application,
17
+ * or were used outside of its UI.
18
+ *
19
+ * **Note** `focus` and `blur` listeners use event capturing, so it is only needed to register wrapper `Element`
20
+ * which contain other `focusable` elements. But note that this wrapper element has to be focusable too
21
+ * (have e.g. `tabindex="-1"`).
22
+ *
23
+ * Check out the {@glink framework/deep-dive/ui/focus-tracking "Deep dive into focus tracking"} guide to learn more.
24
+ */
25
+ export declare class FocusTracker extends FocusTrackerBase {
26
+ /**
27
+ * True when one of the registered {@link #elements} or {@link #externalViews} is focused.
28
+ *
29
+ * @readonly
30
+ * @observable
31
+ */
32
+ isFocused: boolean;
33
+ /**
34
+ * The currently focused element.
35
+ *
36
+ * While {@link #isFocused `isFocused`} remains `true`, the focus can move between different UI elements. This property tracks those
37
+ * elements and tells which one is currently focused.
38
+ *
39
+ * **Note**: The values of this property are restricted to {@link #elements} or {@link module:ui/view~View#element elements}
40
+ * registered in {@link #externalViews}.
41
+ *
42
+ * @readonly
43
+ * @observable
44
+ */
45
+ focusedElement: Element | null;
46
+ /**
47
+ * List of registered DOM elements.
48
+ *
49
+ * @internal
50
+ */
51
+ _elements: Set<Element>;
52
+ /**
53
+ * List of views with external focus trackers that contribute to the state of this focus tracker.
54
+ *
55
+ * @internal
56
+ */
57
+ _externalViews: Set<ViewWithFocusTracker>;
58
+ /**
59
+ * Asynchronous blur event timeout.
60
+ */
61
+ private _blurTimeout;
62
+ constructor();
63
+ /**
64
+ * List of registered DOM elements.
65
+ *
66
+ * **Note**: The list does do not include elements from {@link #externalViews}.
67
+ */
68
+ get elements(): Array<Element>;
69
+ /**
70
+ * List of external focusable views that contribute to the state of this focus tracker. See {@link #add} to learn more.
71
+ */
72
+ get externalViews(): Array<ViewWithFocusTracker>;
73
+ /**
74
+ * Starts tracking a specified DOM element or a {@link module:ui/view~View} instance.
75
+ *
76
+ * * If a DOM element is passed, the focus tracker listens to the `focus` and `blur` events on this element.
77
+ * Tracked elements are listed in {@link #elements}.
78
+ * * If a {@link module:ui/view~View} instance is passed that has a `FocusTracker` instance ({@link ~ViewWithFocusTracker}),
79
+ * the external focus tracker's state ({@link #isFocused}, {@link #focusedElement}) starts contributing to the current tracker instance.
80
+ * This allows for increasing the "reach" of a focus tracker instance, by connecting two or more focus trackers together when DOM
81
+ * elements they track are located in different subtrees in DOM. External focus trackers are listed in {@link #externalViews}.
82
+ * * If a {@link module:ui/view~View} instance is passed that has no `FocusTracker` (**not** a {@link ~ViewWithFocusTracker}),
83
+ * its {@link module:ui/view~View#element} is used to track focus like any other DOM element.
84
+ */
85
+ add(elementOrView: Element | View): void;
86
+ /**
87
+ * Stops tracking focus in the specified DOM element or a {@link module:ui/view~View view instance}. See {@link #add} to learn more.
88
+ */
89
+ remove(elementOrView: Element | View): void;
90
+ /**
91
+ * Adds a DOM element to the focus tracker and starts listening to the `focus` and `blur` events on it.
92
+ */
93
+ private _addElement;
94
+ /**
95
+ * Removes a DOM element from the focus tracker.
96
+ */
97
+ private _removeElement;
98
+ /**
99
+ * Adds an external {@link module:ui/view~View view instance} to this focus tracker and makes it contribute to this focus tracker's
100
+ * state either by its `View#element` or by its `View#focusTracker` instance.
101
+ */
102
+ private _addView;
103
+ /**
104
+ * Removes an external {@link module:ui/view~View view instance} from this focus tracker.
105
+ */
106
+ private _removeView;
107
+ /**
108
+ * Destroys the focus tracker by:
109
+ * - Disabling all event listeners attached to tracked elements or external views.
110
+ * - Removing all tracked elements and views that were previously added.
111
+ */
112
+ destroy(): void;
113
+ /**
114
+ * Stores currently focused element as {@link #focusedElement} and sets {@link #isFocused} `true`.
115
+ */
116
+ private _focus;
117
+ /**
118
+ * Clears currently {@link #focusedElement} and sets {@link #isFocused} `false`.
119
+ *
120
+ * This method uses `setTimeout()` to change order of `blur` and `focus` events calls, ensuring that moving focus between
121
+ * two elements within a single focus tracker's scope, will not cause `[ blurA, focusB ]` sequence but just `[ focusB ]`.
122
+ * The former would cause a momentary change of `#isFocused` to `false` which is not desired because any logic listening to
123
+ * a focus tracker state would experience UI flashes and glitches as the user focus travels across the UI.
124
+ */
125
+ private _blur;
126
+ /**
127
+ * Clears the asynchronous blur event timeout on demand. See {@link #_blur} to learn more.
128
+ */
129
+ private _clearBlurTimeout;
128
130
  }
129
131
  /**
130
- * A {@link module:ui/view~View} instance with a {@link module:utils/focustracker~FocusTracker} instance exposed
131
- * at the `#focusTracker` property.
132
- */
132
+ * A {@link module:ui/view~View} instance with a {@link module:utils/focustracker~FocusTracker} instance exposed
133
+ * at the `#focusTracker` property.
134
+ */
133
135
  export type ViewWithFocusTracker = View & {
134
- focusTracker: FocusTracker;
136
+ focusTracker: FocusTracker;
135
137
  };
136
138
  /**
137
- * Checks whether a view is an instance of {@link ~ViewWithFocusTracker}.
138
- */
139
+ * Checks whether a view is an instance of {@link ~ViewWithFocusTracker}.
140
+ */
139
141
  export declare function isViewWithFocusTracker(view: any): view is ViewWithFocusTracker;
140
142
  export {};
@@ -1,19 +1,19 @@
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 utils/formathtml
7
- */
6
+ * @module utils/formathtml
7
+ */
8
8
  /**
9
- * A simple (and naive) HTML code formatter that returns a formatted HTML markup that can be easily
10
- * parsed by human eyes. It beautifies the HTML code by adding new lines between elements that behave like block elements
11
- * (https://developer.mozilla.org/en-US/docs/Web/HTML/Block-level_elements
12
- * and a few more like `tr`, `td`, and similar ones) and inserting indents for nested content.
13
- *
14
- * WARNING: This function works only on a text that does not contain any indentations or new lines.
15
- * Calling this function on the already formatted text will damage the formatting.
16
- *
17
- * @param input An HTML string to format.
18
- */
9
+ * A simple (and naive) HTML code formatter that returns a formatted HTML markup that can be easily
10
+ * parsed by human eyes. It beautifies the HTML code by adding new lines between elements that behave like block elements
11
+ * (https://developer.mozilla.org/en-US/docs/Web/HTML/Block-level_elements
12
+ * and a few more like `tr`, `td`, and similar ones) and inserting indents for nested content.
13
+ *
14
+ * WARNING: This function works only on a text that does not contain any indentations or new lines.
15
+ * Calling this function on the already formatted text will damage the formatting.
16
+ *
17
+ * @param input An HTML string to format.
18
+ */
19
19
  export declare function formatHtml(input: string): string;
@@ -2,3 +2,4 @@
2
2
  * @license Copyright (c) 2003-2026, 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
+
@@ -2,3 +2,4 @@
2
2
  * @license Copyright (c) 2003-2026, 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
+
package/dist/index.css CHANGED
@@ -3,5 +3,3 @@
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
 
6
-
7
- /*# sourceMappingURL=index.css.map */
package/dist/index.d.ts CHANGED
@@ -1,79 +1,80 @@
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 utils/index
7
- */
8
- export { env, getUserAgent as _getUserAgent, isMac as _isMac, isWindows as _isWindows, isGecko as _isGecko, isSafari as _isSafari, isiOS as _isiOS, isAndroid as _isAndroid, isBlink as _isBlink, isRegExpUnicodePropertySupported as _isRegExpUnicodePropertySupported, isMediaForcedColors as _isMediaForcedColors, isMotionReduced as _isMotionReduced, type EnvType, type EnvFeaturesType } from './env.js';
9
- export { diff, type DiffResult } from './diff.js';
10
- export { fastDiff } from './fastdiff.js';
11
- export { diffToChanges, type InsertChange, type DeleteChange, type Change } from './difftochanges.js';
12
- export { areConnectedThroughProperties } from './areconnectedthroughproperties.js';
13
- export type { Constructor, Mixed } from './mix.js';
14
- export { _getEmitterListenedTo, _setEmitterId, _getEmitterId, EmitterMixin, type Emitter, type BaseEvent, type CallbackOptions, type EmitterMixinDelegateChain, type GetCallback, type GetCallbackOptions, type GetEventInfo, type GetNameOrEventInfo } from './emittermixin.js';
15
- export { EventInfo } from './eventinfo.js';
16
- export { ObservableMixin, type Observable, type DecoratedMethodEvent, type ObservableChangeEvent, type ObservableSetEvent, type ObservableSingleBindChain, type ObservableDualBindChain, type ObservableMultiBindChain, type ObservableWithProperty } from './observablemixin.js';
17
- export { CKEditorError, logError, logWarning, DOCUMENTATION_URL } from './ckeditorerror.js';
18
- export { ElementReplacer } from './elementreplacer.js';
19
- export { abortableDebounce, type AbortableFunc } from './abortabledebounce.js';
20
- export { count } from './count.js';
21
- export { compareArrays, type ArrayRelation } from './comparearrays.js';
22
- export { createElement, type HTMLElementAttributes, type SVGElementAttributes, type ChildrenElements } from './dom/createelement.js';
23
- export { Config, type GetSubConfig, type OnlyObject } from './config.js';
24
- export { isIterable } from './isiterable.js';
25
- export { DomEmitterMixin, type DomEmitter, type DomEventMap } from './dom/emittermixin.js';
26
- export { findClosestScrollableAncestor } from './dom/findclosestscrollableancestor.js';
27
- export { global, type GlobalType } from './dom/global.js';
28
- export { getAncestors } from './dom/getancestors.js';
29
- export { getDataFromElement } from './dom/getdatafromelement.js';
30
- export { getBorderWidths, type BorderWidths } from './dom/getborderwidths.js';
31
- export { getRangeFromMouseEvent } from './dom/getrangefrommouseevent.js';
32
- export { getCommonAncestor } from './dom/getcommonancestor.js';
33
- export { getPositionedAncestor } from './dom/getpositionedancestor.js';
34
- export { isText } from './dom/istext.js';
35
- export { isWindow } from './dom/iswindow.js';
36
- export { Rect, type RectSource, type DomRectLike } from './dom/rect.js';
37
- export { ResizeObserver } from './dom/resizeobserver.js';
38
- export { setDataInElement } from './dom/setdatainelement.js';
39
- export { toUnit, type ToUnitHelper } from './dom/tounit.js';
40
- export { indexOf } from './dom/indexof.js';
41
- export { insertAt } from './dom/insertat.js';
42
- export { isComment } from './dom/iscomment.js';
43
- export { isNode } from './dom/isnode.js';
44
- export { isRange } from './dom/isrange.js';
45
- export { isValidAttributeName } from './dom/isvalidattributename.js';
46
- export { isVisible } from './dom/isvisible.js';
47
- export { getOptimalPosition, getConstrainedViewportRect, type DomOptimalPositionOptions, type PositioningFunction, type DomPoint, type DomPositioningFunctionResult } from './dom/position.js';
48
- export { remove } from './dom/remove.js';
49
- export { getVisualViewportOffset } from './dom/getvisualviewportoffset.js';
50
- export { scrollAncestorsToShowTarget, scrollViewportToShowTarget, type IfTrue } from './dom/scroll.js';
51
- export { type ArrowKeyCodeDirection, type KeystrokeInfo, keyCodes, getCode, parseKeystroke, getEnvKeystrokeText, isArrowKeyCode, getLocalizedArrowKeyCodeDirection, isForwardArrowKeyCode } from './keyboard.js';
52
- export { type LanguageDirection, getLanguageDirection } from './language.js';
53
- export { Locale, type LocaleTranslate, type Translations } from './locale.js';
54
- export { Collection, type CollectionAddEvent, type CollectionChangeEvent, type CollectionRemoveEvent, type CollectionChangeEventData, type CollectionBindToChain } from './collection.js';
55
- export { first } from './first.js';
56
- export { nth } from './nth.js';
57
- export { FocusTracker, type ViewWithFocusTracker, isViewWithFocusTracker } from './focustracker.js';
58
- export { KeystrokeHandler, type KeystrokeHandlerOptions } from './keystrokehandler.js';
59
- export { toArray, type ArrayOrItem, type ReadonlyArrayOrItem } from './toarray.js';
60
- export { toMap } from './tomap.js';
61
- export { mapsEqual } from './mapsequal.js';
62
- export { objectToMap } from './objecttomap.js';
63
- export { add, _translate, _clear as _clearTranslations, _unifyTranslations, type Message } from './translation-service.js';
64
- export { priorities, type PriorityString, type PrioritiesType } from './priorities.js';
65
- export { retry, exponentialDelay } from './retry.js';
66
- export { insertToPriorityArray, type ObjectWithPriority } from './inserttopriorityarray.js';
67
- export { spliceArray } from './splicearray.js';
68
- export { uid } from './uid.js';
69
- export { delay, type DelayedFunc } from './delay.js';
70
- export { wait } from './wait.js';
71
- export { parseBase64EncodedObject } from './parsebase64encodedobject.js';
72
- export { crc32, type CRCData, type CRCValue } from './crc32.js';
73
- export { collectStylesheets } from './collectstylesheets.js';
74
- export { formatHtml } from './formathtml.js';
75
- export { spy } from './spy.js';
76
- export { isCombiningMark, isHighSurrogateHalf, isLowSurrogateHalf, isInsideSurrogatePair, isInsideCombinedSymbol, isInsideEmojiSequence } from './unicode.js';
77
- export { decodeLicenseKey } from './decodelicensekey.js';
78
- export { isFeatureBlockedByLicenseKey } from './isfeatureblockedbylicensekey.js';
79
- export { version, releaseDate } from './version.js';
6
+ * @module utils/index
7
+ */
8
+ export { env, getUserAgent as _getUserAgent, isMac as _isMac, isWindows as _isWindows, isGecko as _isGecko, isSafari as _isSafari, isiOS as _isiOS, isAndroid as _isAndroid, isBlink as _isBlink, isRegExpUnicodePropertySupported as _isRegExpUnicodePropertySupported, isMediaForcedColors as _isMediaForcedColors, isMotionReduced as _isMotionReduced, type EnvType, type EnvFeaturesType } from "./env.js";
9
+ export { diff, type Diff, type DiffResult } from "./diff.js";
10
+ export { fastDiff } from "./fastdiff.js";
11
+ export { diffToChanges, type InsertChange, type DeleteChange, type Change } from "./difftochanges.js";
12
+ export { areConnectedThroughProperties } from "./areconnectedthroughproperties.js";
13
+ export type { Constructor, Mixed } from "./mix.js";
14
+ export { _getEmitterListenedTo, _setEmitterId, _getEmitterId, EmitterMixin, type Emitter, type EmitterMixinConstructor, type BaseEvent, type CallbackOptions, type EmitterMixinDelegateChain, type GetCallback, type GetCallbackOptions, type GetEventInfo, type GetNameOrEventInfo } from "./emittermixin.js";
15
+ export { EventInfo } from "./eventinfo.js";
16
+ export { ObservableMixin, type Observable, type ObservableMixinConstructor, type DecoratedMethodEvent, type ObservableChangeEvent, type ObservableSetEvent, type ObservableSingleBindChain, type ObservableDualBindChain, type ObservableMultiBindChain, type ObservableWithProperty } from "./observablemixin.js";
17
+ export { CKEditorError, logError, logWarning, DOCUMENTATION_URL } from "./ckeditorerror.js";
18
+ export { ElementReplacer } from "./elementreplacer.js";
19
+ export { abortableDebounce, type AbortableFunc } from "./abortabledebounce.js";
20
+ export { count } from "./count.js";
21
+ export { compareArrays, type ArrayRelation } from "./comparearrays.js";
22
+ export { createElement, type HTMLElementAttributes, type SVGElementAttributes, type ChildrenElements } from "./dom/createelement.js";
23
+ export { Config, type GetSubConfig, type OnlyObject } from "./config.js";
24
+ export { isIterable } from "./isiterable.js";
25
+ export { DomEmitterMixin, type DomEmitter, type DomEmitterMixinConstructor, type DomEventMap } from "./dom/emittermixin.js";
26
+ export { findClosestScrollableAncestor } from "./dom/findclosestscrollableancestor.js";
27
+ export { global, type GlobalType } from "./dom/global.js";
28
+ export { getAncestors } from "./dom/getancestors.js";
29
+ export { getDataFromElement } from "./dom/getdatafromelement.js";
30
+ export { getBorderWidths, type BorderWidths } from "./dom/getborderwidths.js";
31
+ export { getRangeFromMouseEvent } from "./dom/getrangefrommouseevent.js";
32
+ export { getCommonAncestor } from "./dom/getcommonancestor.js";
33
+ export { getPositionedAncestor } from "./dom/getpositionedancestor.js";
34
+ export { isText } from "./dom/istext.js";
35
+ export { isWindow } from "./dom/iswindow.js";
36
+ export { Rect, type RectSource, type DomRectLike } from "./dom/rect.js";
37
+ export { ResizeObserver } from "./dom/resizeobserver.js";
38
+ export { setDataInElement } from "./dom/setdatainelement.js";
39
+ export { toUnit, type ToUnitHelper } from "./dom/tounit.js";
40
+ export { indexOf } from "./dom/indexof.js";
41
+ export { insertAt } from "./dom/insertat.js";
42
+ export { isComment } from "./dom/iscomment.js";
43
+ export { isNode } from "./dom/isnode.js";
44
+ export { isRange } from "./dom/isrange.js";
45
+ export { isValidAttributeName } from "./dom/isvalidattributename.js";
46
+ export { isVisible } from "./dom/isvisible.js";
47
+ export { getOptimalPosition, getConstrainedViewportRect, type DomOptimalPositionOptions, type PositioningFunction, type DomPoint, type DomPositioningFunctionResult } from "./dom/position.js";
48
+ export { remove } from "./dom/remove.js";
49
+ export { getVisualViewportOffset } from "./dom/getvisualviewportoffset.js";
50
+ export { scrollAncestorsToShowTarget, scrollViewportToShowTarget, type IfTrue } from "./dom/scroll.js";
51
+ export { type ArrowKeyCodeDirection, type KeystrokeInfo, keyCodes, getCode, parseKeystroke, getEnvKeystrokeText, isArrowKeyCode, getLocalizedArrowKeyCodeDirection, isForwardArrowKeyCode } from "./keyboard.js";
52
+ export { type LanguageDirection, getLanguageDirection } from "./language.js";
53
+ export { Locale, type LocaleTranslate, type Translations } from "./locale.js";
54
+ export { Collection, type CollectionAddEvent, type CollectionChangeEvent, type CollectionRemoveEvent, type CollectionChangeEventData, type CollectionBindToChain } from "./collection.js";
55
+ export { first } from "./first.js";
56
+ export { nth } from "./nth.js";
57
+ export { FocusTracker, type ViewWithFocusTracker, isViewWithFocusTracker } from "./focustracker.js";
58
+ export { KeystrokeHandler, type KeystrokeHandlerOptions } from "./keystrokehandler.js";
59
+ export { toArray, type ArrayOrItem, type ReadonlyArrayOrItem } from "./toarray.js";
60
+ export { toMap } from "./tomap.js";
61
+ export { mapsEqual } from "./mapsequal.js";
62
+ export { objectToMap } from "./objecttomap.js";
63
+ export { add, _translate, _clear as _clearTranslations, _unifyTranslations, type Message } from "./translation-service.js";
64
+ export { priorities, type PriorityString, type PrioritiesType } from "./priorities.js";
65
+ export { retry, exponentialDelay } from "./retry.js";
66
+ export { insertToPriorityArray, type ObjectWithPriority } from "./inserttopriorityarray.js";
67
+ export { spliceArray } from "./splicearray.js";
68
+ export { uid } from "./uid.js";
69
+ export { delay, type DelayedFunc } from "./delay.js";
70
+ export { wait } from "./wait.js";
71
+ export { parseBase64EncodedObject } from "./parsebase64encodedobject.js";
72
+ export { crc32, type CRCData, type CRCValue } from "./crc32.js";
73
+ export { collectStylesheets } from "./collectstylesheets.js";
74
+ export { formatHtml } from "./formathtml.js";
75
+ export { spy } from "./spy.js";
76
+ export { isCombiningMark, isHighSurrogateHalf, isLowSurrogateHalf, isInsideSurrogatePair, isInsideCombinedSymbol, isInsideEmojiSequence } from "./unicode.js";
77
+ export { decodeLicenseKey } from "./decodelicensekey.js";
78
+ export { isFeatureBlockedByLicenseKey } from "./isfeatureblockedbylicensekey.js";
79
+ export { tryParseDimensionWithUnit as _tryParseDimensionWithUnit, tryCastDimensionsToUnit as _tryCastDimensionsToUnit, type DimensionWithUnit as _DimensionWithUnit } from "./parsedimensionwithunit.js";
80
+ export { version, releaseDate } from "./version.js";