@ckeditor/ckeditor5-utils 40.0.0 → 40.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -26
- package/LICENSE.md +3 -3
- package/package.json +1 -1
- package/src/abortabledebounce.d.ts +17 -0
- package/src/abortabledebounce.js +22 -0
- package/src/areconnectedthroughproperties.d.ts +11 -11
- package/src/areconnectedthroughproperties.js +73 -73
- package/src/ckeditorerror.d.ts +123 -123
- package/src/ckeditorerror.js +176 -176
- package/src/collection.d.ts +433 -427
- package/src/collection.js +583 -575
- package/src/comparearrays.d.ts +30 -30
- package/src/comparearrays.js +47 -47
- package/src/config.d.ts +163 -163
- package/src/config.js +163 -162
- package/src/count.d.ts +18 -18
- package/src/count.js +24 -24
- package/src/delay.d.ts +19 -19
- package/src/delay.js +26 -26
- package/src/diff.d.ts +31 -31
- package/src/diff.js +115 -115
- package/src/difftochanges.d.ts +59 -59
- package/src/difftochanges.js +79 -79
- package/src/dom/createelement.d.ts +57 -57
- package/src/dom/createelement.js +40 -40
- package/src/dom/emittermixin.d.ts +142 -142
- package/src/dom/emittermixin.js +239 -239
- package/src/dom/findclosestscrollableancestor.d.ts +11 -11
- package/src/dom/findclosestscrollableancestor.js +31 -31
- package/src/dom/getancestors.d.ts +17 -17
- package/src/dom/getancestors.js +27 -27
- package/src/dom/getborderwidths.d.ts +24 -24
- package/src/dom/getborderwidths.js +24 -24
- package/src/dom/getcommonancestor.d.ts +12 -12
- package/src/dom/getcommonancestor.js +25 -25
- package/src/dom/getdatafromelement.d.ts +14 -14
- package/src/dom/getdatafromelement.js +20 -20
- package/src/dom/getpositionedancestor.d.ts +10 -10
- package/src/dom/getpositionedancestor.js +22 -22
- package/src/dom/global.d.ts +32 -32
- package/src/dom/global.js +35 -35
- package/src/dom/indexof.d.ts +14 -14
- package/src/dom/indexof.js +21 -21
- package/src/dom/insertat.d.ts +15 -15
- package/src/dom/insertat.js +17 -17
- package/src/dom/iscomment.d.ts +11 -11
- package/src/dom/iscomment.js +14 -14
- package/src/dom/isnode.d.ts +11 -11
- package/src/dom/isnode.js +21 -21
- package/src/dom/isrange.d.ts +11 -11
- package/src/dom/isrange.js +13 -13
- package/src/dom/istext.d.ts +11 -11
- package/src/dom/istext.js +13 -13
- package/src/dom/isvalidattributename.d.ts +10 -10
- package/src/dom/isvalidattributename.js +22 -22
- package/src/dom/isvisible.d.ts +18 -18
- package/src/dom/isvisible.js +20 -20
- package/src/dom/iswindow.d.ts +11 -11
- package/src/dom/iswindow.js +22 -22
- package/src/dom/position.d.ts +211 -211
- package/src/dom/position.js +313 -313
- package/src/dom/rect.d.ts +195 -195
- package/src/dom/rect.js +474 -474
- package/src/dom/remove.d.ts +13 -13
- package/src/dom/remove.js +18 -18
- package/src/dom/resizeobserver.d.ts +74 -74
- package/src/dom/resizeobserver.js +126 -126
- package/src/dom/scroll.d.ts +73 -73
- package/src/dom/scroll.js +383 -383
- package/src/dom/setdatainelement.d.ts +14 -14
- package/src/dom/setdatainelement.js +20 -20
- package/src/dom/tounit.d.ts +22 -22
- package/src/dom/tounit.js +16 -16
- package/src/elementreplacer.d.ts +31 -31
- package/src/elementreplacer.js +43 -43
- package/src/emittermixin.d.ts +312 -312
- package/src/emittermixin.js +453 -453
- package/src/env.d.ts +117 -117
- package/src/env.js +122 -122
- package/src/eventinfo.d.ts +58 -58
- package/src/eventinfo.js +26 -26
- package/src/fastdiff.d.ts +112 -112
- package/src/fastdiff.js +248 -248
- package/src/first.d.ts +11 -11
- package/src/first.js +17 -17
- package/src/focustracker.d.ts +75 -75
- package/src/focustracker.js +95 -95
- package/src/index.d.ts +64 -61
- package/src/index.js +63 -60
- package/src/inserttopriorityarray.d.ts +30 -30
- package/src/inserttopriorityarray.js +21 -21
- package/src/isiterable.d.ts +14 -14
- package/src/isiterable.js +16 -16
- package/src/keyboard.d.ts +126 -126
- package/src/keyboard.js +221 -221
- package/src/keystrokehandler.d.ts +87 -87
- package/src/keystrokehandler.js +122 -122
- package/src/language.d.ts +17 -17
- package/src/language.js +19 -19
- package/src/locale.d.ts +120 -120
- package/src/locale.js +76 -76
- package/src/mapsequal.d.ts +15 -15
- package/src/mapsequal.js +27 -27
- package/src/mix.d.ts +85 -85
- package/src/mix.js +50 -50
- package/src/nth.d.ts +16 -16
- package/src/nth.js +24 -24
- package/src/objecttomap.d.ts +23 -23
- package/src/objecttomap.js +27 -27
- package/src/observablemixin.d.ts +560 -560
- package/src/observablemixin.js +580 -580
- package/src/priorities.d.ts +33 -33
- package/src/priorities.js +23 -23
- package/src/retry.d.ts +33 -0
- package/src/retry.js +47 -0
- package/src/splicearray.d.ts +26 -26
- package/src/splicearray.js +40 -40
- package/src/spy.d.ts +21 -21
- package/src/spy.js +22 -22
- package/src/toarray.d.ts +25 -25
- package/src/toarray.js +7 -7
- package/src/tomap.d.ts +19 -19
- package/src/tomap.js +29 -29
- package/src/translation-service.d.ts +168 -168
- package/src/translation-service.js +198 -198
- package/src/uid.d.ts +15 -15
- package/src/uid.js +57 -57
- package/src/unicode.d.ts +54 -54
- package/src/unicode.js +85 -85
- package/src/verifylicense.d.ts +15 -15
- package/src/verifylicense.js +87 -87
- package/src/version.d.ts +10 -10
- package/src/version.js +153 -153
- package/src/wait.d.ts +16 -0
- package/src/wait.js +29 -0
package/src/focustracker.d.ts
CHANGED
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
declare const FocusTracker_base: import("./mix").Mixed<{
|
|
6
|
-
new (): import("./observablemixin").Observable;
|
|
7
|
-
prototype: import("./observablemixin").Observable;
|
|
8
|
-
}, import("./dom/emittermixin").DomEmitter>;
|
|
9
|
-
/**
|
|
10
|
-
* Allows observing a group of `Element`s whether at least one of them is focused.
|
|
11
|
-
*
|
|
12
|
-
* Used by the {@link module:core/editor/editor~Editor} in order to track whether the focus is still within the application,
|
|
13
|
-
* or were used outside of its UI.
|
|
14
|
-
*
|
|
15
|
-
* **Note** `focus` and `blur` listeners use event capturing, so it is only needed to register wrapper `Element`
|
|
16
|
-
* which contain other `focusable` elements. But note that this wrapper element has to be focusable too
|
|
17
|
-
* (have e.g. `tabindex="-1"`).
|
|
18
|
-
*
|
|
19
|
-
* Check out the {@glink framework/deep-dive/ui/focus-tracking "Deep dive into focus tracking"} guide to learn more.
|
|
20
|
-
*/
|
|
21
|
-
export default class FocusTracker extends FocusTracker_base {
|
|
22
|
-
/**
|
|
23
|
-
* True when one of the registered elements is focused.
|
|
24
|
-
*
|
|
25
|
-
* @readonly
|
|
26
|
-
* @observable
|
|
27
|
-
*/
|
|
28
|
-
isFocused: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* The currently focused element.
|
|
31
|
-
*
|
|
32
|
-
* While {@link #isFocused `isFocused`} remains `true`, the focus can
|
|
33
|
-
* move between different UI elements. This property tracks those
|
|
34
|
-
* elements and tells which one is currently focused.
|
|
35
|
-
*
|
|
36
|
-
* @readonly
|
|
37
|
-
* @observable
|
|
38
|
-
*/
|
|
39
|
-
focusedElement: Element | null;
|
|
40
|
-
/**
|
|
41
|
-
* List of registered elements.
|
|
42
|
-
*
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
45
|
-
_elements: Set<Element>;
|
|
46
|
-
/**
|
|
47
|
-
* Event loop timeout.
|
|
48
|
-
*/
|
|
49
|
-
private _nextEventLoopTimeout;
|
|
50
|
-
constructor();
|
|
51
|
-
/**
|
|
52
|
-
* Starts tracking the specified element.
|
|
53
|
-
*/
|
|
54
|
-
add(element: Element): void;
|
|
55
|
-
/**
|
|
56
|
-
* Stops tracking the specified element and stops listening on this element.
|
|
57
|
-
*/
|
|
58
|
-
remove(element: Element): void;
|
|
59
|
-
/**
|
|
60
|
-
* Destroys the focus tracker by:
|
|
61
|
-
* - Disabling all event listeners attached to tracked elements.
|
|
62
|
-
* - Removing all tracked elements that were previously added.
|
|
63
|
-
*/
|
|
64
|
-
destroy(): void;
|
|
65
|
-
/**
|
|
66
|
-
* Stores currently focused element and set {@link #isFocused} as `true`.
|
|
67
|
-
*/
|
|
68
|
-
private _focus;
|
|
69
|
-
/**
|
|
70
|
-
* Clears currently focused element and set {@link #isFocused} as `false`.
|
|
71
|
-
* This method uses `setTimeout` to change order of fires `blur` and `focus` events.
|
|
72
|
-
*/
|
|
73
|
-
private _blur;
|
|
74
|
-
}
|
|
75
|
-
export {};
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
declare const FocusTracker_base: import("./mix").Mixed<{
|
|
6
|
+
new (): import("./observablemixin").Observable;
|
|
7
|
+
prototype: import("./observablemixin").Observable;
|
|
8
|
+
}, import("./dom/emittermixin").DomEmitter>;
|
|
9
|
+
/**
|
|
10
|
+
* Allows observing a group of `Element`s whether at least one of them is focused.
|
|
11
|
+
*
|
|
12
|
+
* Used by the {@link module:core/editor/editor~Editor} in order to track whether the focus is still within the application,
|
|
13
|
+
* or were used outside of its UI.
|
|
14
|
+
*
|
|
15
|
+
* **Note** `focus` and `blur` listeners use event capturing, so it is only needed to register wrapper `Element`
|
|
16
|
+
* which contain other `focusable` elements. But note that this wrapper element has to be focusable too
|
|
17
|
+
* (have e.g. `tabindex="-1"`).
|
|
18
|
+
*
|
|
19
|
+
* Check out the {@glink framework/deep-dive/ui/focus-tracking "Deep dive into focus tracking"} guide to learn more.
|
|
20
|
+
*/
|
|
21
|
+
export default class FocusTracker extends FocusTracker_base {
|
|
22
|
+
/**
|
|
23
|
+
* True when one of the registered elements is focused.
|
|
24
|
+
*
|
|
25
|
+
* @readonly
|
|
26
|
+
* @observable
|
|
27
|
+
*/
|
|
28
|
+
isFocused: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The currently focused element.
|
|
31
|
+
*
|
|
32
|
+
* While {@link #isFocused `isFocused`} remains `true`, the focus can
|
|
33
|
+
* move between different UI elements. This property tracks those
|
|
34
|
+
* elements and tells which one is currently focused.
|
|
35
|
+
*
|
|
36
|
+
* @readonly
|
|
37
|
+
* @observable
|
|
38
|
+
*/
|
|
39
|
+
focusedElement: Element | null;
|
|
40
|
+
/**
|
|
41
|
+
* List of registered elements.
|
|
42
|
+
*
|
|
43
|
+
* @internal
|
|
44
|
+
*/
|
|
45
|
+
_elements: Set<Element>;
|
|
46
|
+
/**
|
|
47
|
+
* Event loop timeout.
|
|
48
|
+
*/
|
|
49
|
+
private _nextEventLoopTimeout;
|
|
50
|
+
constructor();
|
|
51
|
+
/**
|
|
52
|
+
* Starts tracking the specified element.
|
|
53
|
+
*/
|
|
54
|
+
add(element: Element): void;
|
|
55
|
+
/**
|
|
56
|
+
* Stops tracking the specified element and stops listening on this element.
|
|
57
|
+
*/
|
|
58
|
+
remove(element: Element): void;
|
|
59
|
+
/**
|
|
60
|
+
* Destroys the focus tracker by:
|
|
61
|
+
* - Disabling all event listeners attached to tracked elements.
|
|
62
|
+
* - Removing all tracked elements that were previously added.
|
|
63
|
+
*/
|
|
64
|
+
destroy(): void;
|
|
65
|
+
/**
|
|
66
|
+
* Stores currently focused element and set {@link #isFocused} as `true`.
|
|
67
|
+
*/
|
|
68
|
+
private _focus;
|
|
69
|
+
/**
|
|
70
|
+
* Clears currently focused element and set {@link #isFocused} as `false`.
|
|
71
|
+
* This method uses `setTimeout` to change order of fires `blur` and `focus` events.
|
|
72
|
+
*/
|
|
73
|
+
private _blur;
|
|
74
|
+
}
|
|
75
|
+
export {};
|
package/src/focustracker.js
CHANGED
|
@@ -1,95 +1,95 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/* global setTimeout, clearTimeout */
|
|
6
|
-
/**
|
|
7
|
-
* @module utils/focustracker
|
|
8
|
-
*/
|
|
9
|
-
import DomEmitterMixin from './dom/emittermixin';
|
|
10
|
-
import ObservableMixin from './observablemixin';
|
|
11
|
-
import CKEditorError from './ckeditorerror';
|
|
12
|
-
/**
|
|
13
|
-
* Allows observing a group of `Element`s whether at least one of them is focused.
|
|
14
|
-
*
|
|
15
|
-
* Used by the {@link module:core/editor/editor~Editor} in order to track whether the focus is still within the application,
|
|
16
|
-
* or were used outside of its UI.
|
|
17
|
-
*
|
|
18
|
-
* **Note** `focus` and `blur` listeners use event capturing, so it is only needed to register wrapper `Element`
|
|
19
|
-
* which contain other `focusable` elements. But note that this wrapper element has to be focusable too
|
|
20
|
-
* (have e.g. `tabindex="-1"`).
|
|
21
|
-
*
|
|
22
|
-
* Check out the {@glink framework/deep-dive/ui/focus-tracking "Deep dive into focus tracking"} guide to learn more.
|
|
23
|
-
*/
|
|
24
|
-
export default class FocusTracker extends DomEmitterMixin(ObservableMixin()) {
|
|
25
|
-
constructor() {
|
|
26
|
-
super();
|
|
27
|
-
/**
|
|
28
|
-
* List of registered elements.
|
|
29
|
-
*
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
32
|
-
this._elements = new Set();
|
|
33
|
-
/**
|
|
34
|
-
* Event loop timeout.
|
|
35
|
-
*/
|
|
36
|
-
this._nextEventLoopTimeout = null;
|
|
37
|
-
this.set('isFocused', false);
|
|
38
|
-
this.set('focusedElement', null);
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Starts tracking the specified element.
|
|
42
|
-
*/
|
|
43
|
-
add(element) {
|
|
44
|
-
if (this._elements.has(element)) {
|
|
45
|
-
/**
|
|
46
|
-
* This element is already tracked by {@link module:utils/focustracker~FocusTracker}.
|
|
47
|
-
*
|
|
48
|
-
* @error focustracker-add-element-already-exist
|
|
49
|
-
*/
|
|
50
|
-
throw new CKEditorError('focustracker-add-element-already-exist', this);
|
|
51
|
-
}
|
|
52
|
-
this.listenTo(element, 'focus', () => this._focus(element), { useCapture: true });
|
|
53
|
-
this.listenTo(element, 'blur', () => this._blur(), { useCapture: true });
|
|
54
|
-
this._elements.add(element);
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Stops tracking the specified element and stops listening on this element.
|
|
58
|
-
*/
|
|
59
|
-
remove(element) {
|
|
60
|
-
if (element === this.focusedElement) {
|
|
61
|
-
this._blur();
|
|
62
|
-
}
|
|
63
|
-
if (this._elements.has(element)) {
|
|
64
|
-
this.stopListening(element);
|
|
65
|
-
this._elements.delete(element);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Destroys the focus tracker by:
|
|
70
|
-
* - Disabling all event listeners attached to tracked elements.
|
|
71
|
-
* - Removing all tracked elements that were previously added.
|
|
72
|
-
*/
|
|
73
|
-
destroy() {
|
|
74
|
-
this.stopListening();
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Stores currently focused element and set {@link #isFocused} as `true`.
|
|
78
|
-
*/
|
|
79
|
-
_focus(element) {
|
|
80
|
-
clearTimeout(this._nextEventLoopTimeout);
|
|
81
|
-
this.focusedElement = element;
|
|
82
|
-
this.isFocused = true;
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Clears currently focused element and set {@link #isFocused} as `false`.
|
|
86
|
-
* This method uses `setTimeout` to change order of fires `blur` and `focus` events.
|
|
87
|
-
*/
|
|
88
|
-
_blur() {
|
|
89
|
-
clearTimeout(this._nextEventLoopTimeout);
|
|
90
|
-
this._nextEventLoopTimeout = setTimeout(() => {
|
|
91
|
-
this.focusedElement = null;
|
|
92
|
-
this.isFocused = false;
|
|
93
|
-
}, 0);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/* global setTimeout, clearTimeout */
|
|
6
|
+
/**
|
|
7
|
+
* @module utils/focustracker
|
|
8
|
+
*/
|
|
9
|
+
import DomEmitterMixin from './dom/emittermixin';
|
|
10
|
+
import ObservableMixin from './observablemixin';
|
|
11
|
+
import CKEditorError from './ckeditorerror';
|
|
12
|
+
/**
|
|
13
|
+
* Allows observing a group of `Element`s whether at least one of them is focused.
|
|
14
|
+
*
|
|
15
|
+
* Used by the {@link module:core/editor/editor~Editor} in order to track whether the focus is still within the application,
|
|
16
|
+
* or were used outside of its UI.
|
|
17
|
+
*
|
|
18
|
+
* **Note** `focus` and `blur` listeners use event capturing, so it is only needed to register wrapper `Element`
|
|
19
|
+
* which contain other `focusable` elements. But note that this wrapper element has to be focusable too
|
|
20
|
+
* (have e.g. `tabindex="-1"`).
|
|
21
|
+
*
|
|
22
|
+
* Check out the {@glink framework/deep-dive/ui/focus-tracking "Deep dive into focus tracking"} guide to learn more.
|
|
23
|
+
*/
|
|
24
|
+
export default class FocusTracker extends DomEmitterMixin(ObservableMixin()) {
|
|
25
|
+
constructor() {
|
|
26
|
+
super();
|
|
27
|
+
/**
|
|
28
|
+
* List of registered elements.
|
|
29
|
+
*
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
this._elements = new Set();
|
|
33
|
+
/**
|
|
34
|
+
* Event loop timeout.
|
|
35
|
+
*/
|
|
36
|
+
this._nextEventLoopTimeout = null;
|
|
37
|
+
this.set('isFocused', false);
|
|
38
|
+
this.set('focusedElement', null);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Starts tracking the specified element.
|
|
42
|
+
*/
|
|
43
|
+
add(element) {
|
|
44
|
+
if (this._elements.has(element)) {
|
|
45
|
+
/**
|
|
46
|
+
* This element is already tracked by {@link module:utils/focustracker~FocusTracker}.
|
|
47
|
+
*
|
|
48
|
+
* @error focustracker-add-element-already-exist
|
|
49
|
+
*/
|
|
50
|
+
throw new CKEditorError('focustracker-add-element-already-exist', this);
|
|
51
|
+
}
|
|
52
|
+
this.listenTo(element, 'focus', () => this._focus(element), { useCapture: true });
|
|
53
|
+
this.listenTo(element, 'blur', () => this._blur(), { useCapture: true });
|
|
54
|
+
this._elements.add(element);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Stops tracking the specified element and stops listening on this element.
|
|
58
|
+
*/
|
|
59
|
+
remove(element) {
|
|
60
|
+
if (element === this.focusedElement) {
|
|
61
|
+
this._blur();
|
|
62
|
+
}
|
|
63
|
+
if (this._elements.has(element)) {
|
|
64
|
+
this.stopListening(element);
|
|
65
|
+
this._elements.delete(element);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Destroys the focus tracker by:
|
|
70
|
+
* - Disabling all event listeners attached to tracked elements.
|
|
71
|
+
* - Removing all tracked elements that were previously added.
|
|
72
|
+
*/
|
|
73
|
+
destroy() {
|
|
74
|
+
this.stopListening();
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Stores currently focused element and set {@link #isFocused} as `true`.
|
|
78
|
+
*/
|
|
79
|
+
_focus(element) {
|
|
80
|
+
clearTimeout(this._nextEventLoopTimeout);
|
|
81
|
+
this.focusedElement = element;
|
|
82
|
+
this.isFocused = true;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Clears currently focused element and set {@link #isFocused} as `false`.
|
|
86
|
+
* This method uses `setTimeout` to change order of fires `blur` and `focus` events.
|
|
87
|
+
*/
|
|
88
|
+
_blur() {
|
|
89
|
+
clearTimeout(this._nextEventLoopTimeout);
|
|
90
|
+
this._nextEventLoopTimeout = setTimeout(() => {
|
|
91
|
+
this.focusedElement = null;
|
|
92
|
+
this.isFocused = false;
|
|
93
|
+
}, 0);
|
|
94
|
+
}
|
|
95
|
+
}
|
package/src/index.d.ts
CHANGED
|
@@ -1,61 +1,64 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module utils
|
|
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
|
|
20
|
-
export { default as
|
|
21
|
-
export { default as
|
|
22
|
-
export { default as
|
|
23
|
-
export { default as
|
|
24
|
-
export { default as
|
|
25
|
-
export { default as
|
|
26
|
-
export { default as
|
|
27
|
-
export { default as
|
|
28
|
-
export { default as
|
|
29
|
-
export { default as
|
|
30
|
-
export { default as
|
|
31
|
-
export { default as
|
|
32
|
-
export { default as
|
|
33
|
-
export { default as
|
|
34
|
-
export { default as
|
|
35
|
-
export { default as
|
|
36
|
-
export { default as
|
|
37
|
-
export { default as
|
|
38
|
-
export { default as
|
|
39
|
-
export { default as
|
|
40
|
-
export { default as
|
|
41
|
-
export { default as
|
|
42
|
-
export {
|
|
43
|
-
export {
|
|
44
|
-
export
|
|
45
|
-
export * from './
|
|
46
|
-
export * from './
|
|
47
|
-
export
|
|
48
|
-
export { default as
|
|
49
|
-
export { default as
|
|
50
|
-
export { default as
|
|
51
|
-
export { default as
|
|
52
|
-
export { default as
|
|
53
|
-
export { default as
|
|
54
|
-
export { default as
|
|
55
|
-
export { default as
|
|
56
|
-
export { default as
|
|
57
|
-
export { default as
|
|
58
|
-
export { default as
|
|
59
|
-
export { default as
|
|
60
|
-
export
|
|
61
|
-
export { default as
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module utils
|
|
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';
|
package/src/index.js
CHANGED
|
@@ -1,60 +1,63 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module utils
|
|
7
|
-
*/
|
|
8
|
-
export { default as env } from './env';
|
|
9
|
-
export { default as diff } 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 { default as EmitterMixin } from './emittermixin';
|
|
14
|
-
export { default as EventInfo } from './eventinfo';
|
|
15
|
-
export { default as ObservableMixin } from './observablemixin';
|
|
16
|
-
export { default as CKEditorError, logError, logWarning } from './ckeditorerror';
|
|
17
|
-
export { default as ElementReplacer } from './elementreplacer';
|
|
18
|
-
export { default as
|
|
19
|
-
export { default as
|
|
20
|
-
export { default as
|
|
21
|
-
export { default as
|
|
22
|
-
export { default as
|
|
23
|
-
export { default as
|
|
24
|
-
export { default as
|
|
25
|
-
export { default as
|
|
26
|
-
export { default as
|
|
27
|
-
export { default as
|
|
28
|
-
export { default as
|
|
29
|
-
export { default as
|
|
30
|
-
export { default as
|
|
31
|
-
export { default as
|
|
32
|
-
export { default as
|
|
33
|
-
export { default as
|
|
34
|
-
export { default as
|
|
35
|
-
export { default as
|
|
36
|
-
export { default as
|
|
37
|
-
export { default as
|
|
38
|
-
export { default as
|
|
39
|
-
export { default as
|
|
40
|
-
export { default as
|
|
41
|
-
export {
|
|
42
|
-
export {
|
|
43
|
-
export
|
|
44
|
-
export * from './
|
|
45
|
-
export * from './
|
|
46
|
-
export
|
|
47
|
-
export { default as
|
|
48
|
-
export { default as
|
|
49
|
-
export { default as
|
|
50
|
-
export { default as
|
|
51
|
-
export { default as
|
|
52
|
-
export { default as
|
|
53
|
-
export { default as
|
|
54
|
-
export { default as
|
|
55
|
-
export { default as
|
|
56
|
-
export { default as
|
|
57
|
-
export { default as
|
|
58
|
-
export { default as
|
|
59
|
-
export
|
|
60
|
-
export { default as
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module utils
|
|
7
|
+
*/
|
|
8
|
+
export { default as env } from './env';
|
|
9
|
+
export { default as diff } 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 { default as EmitterMixin } from './emittermixin';
|
|
14
|
+
export { default as EventInfo } from './eventinfo';
|
|
15
|
+
export { default as ObservableMixin } from './observablemixin';
|
|
16
|
+
export { default as CKEditorError, logError, logWarning } from './ckeditorerror';
|
|
17
|
+
export { default as ElementReplacer } from './elementreplacer';
|
|
18
|
+
export { default as abortableDebounce } from './abortabledebounce';
|
|
19
|
+
export { default as count } from './count';
|
|
20
|
+
export { default as compareArrays } from './comparearrays';
|
|
21
|
+
export { default as createElement } from './dom/createelement';
|
|
22
|
+
export { default as Config } from './config';
|
|
23
|
+
export { default as isIterable } from './isiterable';
|
|
24
|
+
export { default as DomEmitterMixin } from './dom/emittermixin';
|
|
25
|
+
export { default as findClosestScrollableAncestor } from './dom/findclosestscrollableancestor';
|
|
26
|
+
export { default as global } from './dom/global';
|
|
27
|
+
export { default as getAncestors } from './dom/getancestors';
|
|
28
|
+
export { default as getDataFromElement } from './dom/getdatafromelement';
|
|
29
|
+
export { default as getBorderWidths } from './dom/getborderwidths';
|
|
30
|
+
export { default as isText } from './dom/istext';
|
|
31
|
+
export { default as Rect } from './dom/rect';
|
|
32
|
+
export { default as ResizeObserver } from './dom/resizeobserver';
|
|
33
|
+
export { default as setDataInElement } from './dom/setdatainelement';
|
|
34
|
+
export { default as toUnit } from './dom/tounit';
|
|
35
|
+
export { default as indexOf } from './dom/indexof';
|
|
36
|
+
export { default as insertAt } from './dom/insertat';
|
|
37
|
+
export { default as isComment } from './dom/iscomment';
|
|
38
|
+
export { default as isNode } from './dom/isnode';
|
|
39
|
+
export { default as isRange } from './dom/isrange';
|
|
40
|
+
export { default as isValidAttributeName } from './dom/isvalidattributename';
|
|
41
|
+
export { default as isVisible } from './dom/isvisible';
|
|
42
|
+
export { getOptimalPosition } from './dom/position';
|
|
43
|
+
export { default as remove } from './dom/remove';
|
|
44
|
+
export * from './dom/scroll';
|
|
45
|
+
export * from './keyboard';
|
|
46
|
+
export * from './language';
|
|
47
|
+
export { default as Locale } from './locale';
|
|
48
|
+
export { default as Collection } from './collection';
|
|
49
|
+
export { default as first } from './first';
|
|
50
|
+
export { default as FocusTracker } from './focustracker';
|
|
51
|
+
export { default as KeystrokeHandler } from './keystrokehandler';
|
|
52
|
+
export { default as toArray } from './toarray';
|
|
53
|
+
export { default as toMap } from './tomap';
|
|
54
|
+
export { default as priorities } from './priorities';
|
|
55
|
+
export { default as retry, exponentialDelay } from './retry';
|
|
56
|
+
export { default as insertToPriorityArray } from './inserttopriorityarray';
|
|
57
|
+
export { default as spliceArray } from './splicearray';
|
|
58
|
+
export { default as uid } from './uid';
|
|
59
|
+
export { default as delay } from './delay';
|
|
60
|
+
export { default as verifyLicense } from './verifylicense';
|
|
61
|
+
export { default as wait } from './wait';
|
|
62
|
+
export * from './unicode';
|
|
63
|
+
export { default as version, releaseDate } from './version';
|