@ckeditor/ckeditor5-utils 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/abortabledebounce.d.ts +19 -13
- package/dist/areconnectedthroughproperties.d.ts +7 -7
- package/dist/ckeditorerror.d.ts +113 -113
- package/dist/collection.d.ts +419 -415
- package/dist/collectstylesheets.d.ts +9 -9
- package/dist/comparearrays.d.ts +25 -25
- package/dist/config.d.ts +159 -156
- package/dist/count.d.ts +14 -14
- package/dist/crc32.d.ts +19 -19
- package/dist/decodelicensekey.d.ts +7 -7
- package/dist/delay.d.ts +13 -13
- package/dist/diff.d.ts +32 -27
- package/dist/difftochanges.d.ts +47 -47
- package/dist/dom/createelement.d.ts +43 -43
- package/dist/dom/emittermixin.d.ts +144 -135
- package/dist/dom/findclosestscrollableancestor.d.ts +8 -8
- package/dist/dom/getancestors.d.ts +13 -13
- package/dist/dom/getborderwidths.d.ts +16 -16
- package/dist/dom/getcommonancestor.d.ts +9 -9
- package/dist/dom/getdatafromelement.d.ts +10 -10
- package/dist/dom/getpositionedancestor.d.ts +7 -7
- package/dist/dom/getrangefrommouseevent.d.ts +12 -12
- package/dist/dom/getvisualviewportoffset.d.ts +7 -7
- package/dist/dom/global.d.ts +24 -24
- package/dist/dom/indexof.d.ts +10 -10
- package/dist/dom/insertat.d.ts +11 -11
- package/dist/dom/iscomment.d.ts +7 -7
- package/dist/dom/isnode.d.ts +7 -7
- package/dist/dom/isrange.d.ts +7 -7
- package/dist/dom/istext.d.ts +7 -7
- package/dist/dom/isvalidattributename.d.ts +7 -7
- package/dist/dom/isvisible.d.ts +12 -12
- package/dist/dom/iswindow.d.ts +7 -7
- package/dist/dom/position.d.ts +200 -200
- package/dist/dom/rect.d.ts +194 -194
- package/dist/dom/remove.d.ts +9 -9
- package/dist/dom/resizeobserver.d.ts +70 -70
- package/dist/dom/scroll.d.ts +75 -72
- package/dist/dom/setdatainelement.d.ts +10 -10
- package/dist/dom/tounit.d.ts +16 -16
- package/dist/elementreplacer.d.ts +26 -26
- package/dist/emittermixin.d.ts +290 -280
- package/dist/env.d.ts +124 -124
- package/dist/eventinfo.d.ts +58 -55
- package/dist/fastdiff.d.ts +112 -109
- package/dist/first.d.ts +7 -7
- package/dist/focustracker.d.ts +133 -131
- package/dist/formathtml.d.ts +15 -15
- package/dist/index-content.css +1 -0
- package/dist/index-editor.css +1 -0
- package/dist/index.css +0 -2
- package/dist/index.d.ts +78 -77
- package/dist/index.js +5695 -6360
- package/dist/index.js.map +1 -1
- package/dist/inserttopriorityarray.d.ts +23 -23
- package/dist/isfeatureblockedbylicensekey.d.ts +10 -10
- package/dist/isiterable.d.ts +10 -10
- package/dist/keyboard.d.ts +107 -109
- package/dist/keystrokehandler.d.ts +90 -90
- package/dist/language.d.ts +12 -12
- package/dist/legacyerrors.d.ts +0 -4
- package/dist/locale.d.ts +122 -122
- package/dist/mapsequal.d.ts +11 -11
- package/dist/mix.d.ts +54 -53
- package/dist/nth.d.ts +12 -12
- package/dist/objecttomap.d.ts +18 -18
- package/dist/observablemixin.d.ts +621 -539
- package/dist/parsebase64encodedobject.d.ts +7 -7
- package/dist/parsedimensionwithunit.d.ts +40 -0
- package/dist/priorities.d.ts +24 -24
- package/dist/retry.d.ts +27 -27
- package/dist/splicearray.d.ts +22 -22
- package/dist/spy.d.ts +15 -15
- package/dist/toarray.d.ts +17 -17
- package/dist/tomap.d.ts +15 -15
- package/dist/translation-service.d.ts +157 -157
- package/dist/uid.d.ts +12 -12
- package/dist/unicode.d.ts +42 -42
- package/dist/version.d.ts +5 -5
- package/dist/wait.d.ts +11 -11
- package/package.json +2 -2
- package/dist/index.css.map +0 -1
package/dist/focustracker.d.ts
CHANGED
|
@@ -1,140 +1,142 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
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
|
-
|
|
131
|
-
|
|
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
|
-
|
|
136
|
+
focusTracker: FocusTracker;
|
|
135
137
|
};
|
|
136
138
|
/**
|
|
137
|
-
|
|
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 {};
|
package/dist/formathtml.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
7
|
-
|
|
6
|
+
* @module utils/formathtml
|
|
7
|
+
*/
|
|
8
8
|
/**
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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;
|
package/dist/index-content.css
CHANGED
package/dist/index-editor.css
CHANGED
package/dist/index.css
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,79 +1,80 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
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
|
|
9
|
-
export { diff, type DiffResult } from
|
|
10
|
-
export { fastDiff } from
|
|
11
|
-
export { diffToChanges, type InsertChange, type DeleteChange, type Change } from
|
|
12
|
-
export { areConnectedThroughProperties } from
|
|
13
|
-
export type { Constructor, Mixed } from
|
|
14
|
-
export { _getEmitterListenedTo, _setEmitterId, _getEmitterId, EmitterMixin, type Emitter, type BaseEvent, type CallbackOptions, type EmitterMixinDelegateChain, type GetCallback, type GetCallbackOptions, type GetEventInfo, type GetNameOrEventInfo } from
|
|
15
|
-
export { EventInfo } from
|
|
16
|
-
export { ObservableMixin, type Observable, type DecoratedMethodEvent, type ObservableChangeEvent, type ObservableSetEvent, type ObservableSingleBindChain, type ObservableDualBindChain, type ObservableMultiBindChain, type ObservableWithProperty } from
|
|
17
|
-
export { CKEditorError, logError, logWarning, DOCUMENTATION_URL } from
|
|
18
|
-
export { ElementReplacer } from
|
|
19
|
-
export { abortableDebounce, type AbortableFunc } from
|
|
20
|
-
export { count } from
|
|
21
|
-
export { compareArrays, type ArrayRelation } from
|
|
22
|
-
export { createElement, type HTMLElementAttributes, type SVGElementAttributes, type ChildrenElements } from
|
|
23
|
-
export { Config, type GetSubConfig, type OnlyObject } from
|
|
24
|
-
export { isIterable } from
|
|
25
|
-
export { DomEmitterMixin, type DomEmitter, type DomEventMap } from
|
|
26
|
-
export { findClosestScrollableAncestor } from
|
|
27
|
-
export { global, type GlobalType } from
|
|
28
|
-
export { getAncestors } from
|
|
29
|
-
export { getDataFromElement } from
|
|
30
|
-
export { getBorderWidths, type BorderWidths } from
|
|
31
|
-
export { getRangeFromMouseEvent } from
|
|
32
|
-
export { getCommonAncestor } from
|
|
33
|
-
export { getPositionedAncestor } from
|
|
34
|
-
export { isText } from
|
|
35
|
-
export { isWindow } from
|
|
36
|
-
export { Rect, type RectSource, type DomRectLike } from
|
|
37
|
-
export { ResizeObserver } from
|
|
38
|
-
export { setDataInElement } from
|
|
39
|
-
export { toUnit, type ToUnitHelper } from
|
|
40
|
-
export { indexOf } from
|
|
41
|
-
export { insertAt } from
|
|
42
|
-
export { isComment } from
|
|
43
|
-
export { isNode } from
|
|
44
|
-
export { isRange } from
|
|
45
|
-
export { isValidAttributeName } from
|
|
46
|
-
export { isVisible } from
|
|
47
|
-
export { getOptimalPosition, getConstrainedViewportRect, type DomOptimalPositionOptions, type PositioningFunction, type DomPoint, type DomPositioningFunctionResult } from
|
|
48
|
-
export { remove } from
|
|
49
|
-
export { getVisualViewportOffset } from
|
|
50
|
-
export { scrollAncestorsToShowTarget, scrollViewportToShowTarget, type IfTrue } from
|
|
51
|
-
export { type ArrowKeyCodeDirection, type KeystrokeInfo, keyCodes, getCode, parseKeystroke, getEnvKeystrokeText, isArrowKeyCode, getLocalizedArrowKeyCodeDirection, isForwardArrowKeyCode } from
|
|
52
|
-
export { type LanguageDirection, getLanguageDirection } from
|
|
53
|
-
export { Locale, type LocaleTranslate, type Translations } from
|
|
54
|
-
export { Collection, type CollectionAddEvent, type CollectionChangeEvent, type CollectionRemoveEvent, type CollectionChangeEventData, type CollectionBindToChain } from
|
|
55
|
-
export { first } from
|
|
56
|
-
export { nth } from
|
|
57
|
-
export { FocusTracker, type ViewWithFocusTracker, isViewWithFocusTracker } from
|
|
58
|
-
export { KeystrokeHandler, type KeystrokeHandlerOptions } from
|
|
59
|
-
export { toArray, type ArrayOrItem, type ReadonlyArrayOrItem } from
|
|
60
|
-
export { toMap } from
|
|
61
|
-
export { mapsEqual } from
|
|
62
|
-
export { objectToMap } from
|
|
63
|
-
export { add, _translate, _clear as _clearTranslations, _unifyTranslations, type Message } from
|
|
64
|
-
export { priorities, type PriorityString, type PrioritiesType } from
|
|
65
|
-
export { retry, exponentialDelay } from
|
|
66
|
-
export { insertToPriorityArray, type ObjectWithPriority } from
|
|
67
|
-
export { spliceArray } from
|
|
68
|
-
export { uid } from
|
|
69
|
-
export { delay, type DelayedFunc } from
|
|
70
|
-
export { wait } from
|
|
71
|
-
export { parseBase64EncodedObject } from
|
|
72
|
-
export { crc32, type CRCData, type CRCValue } from
|
|
73
|
-
export { collectStylesheets } from
|
|
74
|
-
export { formatHtml } from
|
|
75
|
-
export { spy } from
|
|
76
|
-
export { isCombiningMark, isHighSurrogateHalf, isLowSurrogateHalf, isInsideSurrogatePair, isInsideCombinedSymbol, isInsideEmojiSequence } from
|
|
77
|
-
export { decodeLicenseKey } from
|
|
78
|
-
export { isFeatureBlockedByLicenseKey } from
|
|
79
|
-
export {
|
|
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";
|