@ckeditor/ckeditor5-utils 40.1.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.
- package/CHANGELOG.md +31 -31
- package/LICENSE.md +1 -1
- package/package.json +2 -1
- package/src/abortabledebounce.d.ts +17 -0
- package/src/abortabledebounce.js +22 -0
- package/src/areconnectedthroughproperties.d.ts +1 -1
- package/src/areconnectedthroughproperties.js +1 -1
- package/src/ckeditorerror.d.ts +1 -1
- package/src/ckeditorerror.js +1 -1
- package/src/collection.d.ts +3 -3
- package/src/collection.js +5 -5
- package/src/comparearrays.d.ts +1 -1
- package/src/comparearrays.js +1 -1
- package/src/config.d.ts +1 -1
- package/src/config.js +1 -1
- package/src/count.d.ts +1 -1
- package/src/count.js +1 -1
- package/src/delay.d.ts +1 -1
- package/src/delay.js +1 -1
- package/src/diff.d.ts +2 -2
- package/src/diff.js +2 -2
- package/src/difftochanges.d.ts +2 -2
- package/src/difftochanges.js +1 -1
- package/src/dom/createelement.d.ts +1 -1
- package/src/dom/createelement.js +2 -2
- package/src/dom/emittermixin.d.ts +4 -4
- package/src/dom/emittermixin.js +5 -5
- package/src/dom/findclosestscrollableancestor.d.ts +1 -1
- package/src/dom/findclosestscrollableancestor.js +2 -2
- package/src/dom/getancestors.d.ts +1 -1
- package/src/dom/getancestors.js +1 -1
- package/src/dom/getborderwidths.d.ts +1 -1
- package/src/dom/getborderwidths.js +1 -1
- package/src/dom/getcommonancestor.d.ts +1 -1
- package/src/dom/getcommonancestor.js +2 -2
- package/src/dom/getdatafromelement.d.ts +1 -1
- package/src/dom/getdatafromelement.js +1 -1
- package/src/dom/getpositionedancestor.d.ts +1 -1
- package/src/dom/getpositionedancestor.js +2 -2
- package/src/dom/global.d.ts +1 -1
- package/src/dom/global.js +1 -1
- package/src/dom/indexof.d.ts +1 -1
- package/src/dom/indexof.js +1 -1
- package/src/dom/insertat.d.ts +1 -1
- package/src/dom/insertat.js +1 -1
- package/src/dom/iscomment.d.ts +1 -1
- package/src/dom/iscomment.js +1 -1
- package/src/dom/isnode.d.ts +1 -1
- package/src/dom/isnode.js +1 -1
- package/src/dom/isrange.d.ts +1 -1
- package/src/dom/isrange.js +1 -1
- package/src/dom/istext.d.ts +1 -1
- package/src/dom/istext.js +1 -1
- package/src/dom/isvalidattributename.d.ts +1 -1
- package/src/dom/isvalidattributename.js +2 -2
- package/src/dom/isvisible.d.ts +1 -1
- package/src/dom/isvisible.js +1 -1
- package/src/dom/iswindow.d.ts +1 -1
- package/src/dom/iswindow.js +1 -1
- package/src/dom/position.d.ts +7 -7
- package/src/dom/position.js +4 -4
- package/src/dom/rect.d.ts +1 -1
- package/src/dom/rect.js +7 -7
- package/src/dom/remove.d.ts +1 -1
- package/src/dom/remove.js +1 -1
- package/src/dom/resizeobserver.d.ts +1 -1
- package/src/dom/resizeobserver.js +4 -3
- package/src/dom/scroll.d.ts +1 -1
- package/src/dom/scroll.js +4 -4
- package/src/dom/setdatainelement.d.ts +1 -1
- package/src/dom/setdatainelement.js +1 -1
- package/src/dom/tounit.d.ts +1 -1
- package/src/dom/tounit.js +1 -1
- package/src/elementreplacer.d.ts +1 -1
- package/src/elementreplacer.js +1 -1
- package/src/emittermixin.d.ts +5 -5
- package/src/emittermixin.js +7 -7
- package/src/env.d.ts +1 -1
- package/src/env.js +1 -1
- package/src/eventinfo.d.ts +1 -1
- package/src/eventinfo.js +2 -2
- package/src/fastdiff.d.ts +3 -3
- package/src/fastdiff.js +1 -1
- package/src/first.d.ts +1 -1
- package/src/first.js +1 -1
- package/src/focustracker.d.ts +5 -5
- package/src/focustracker.js +4 -4
- package/src/index.d.ts +58 -55
- package/src/index.js +57 -54
- package/src/inserttopriorityarray.d.ts +2 -2
- package/src/inserttopriorityarray.js +2 -2
- package/src/isiterable.d.ts +1 -1
- package/src/isiterable.js +1 -1
- package/src/keyboard.d.ts +2 -2
- package/src/keyboard.js +3 -3
- package/src/keystrokehandler.d.ts +4 -4
- package/src/keystrokehandler.js +3 -3
- package/src/language.d.ts +1 -1
- package/src/language.js +1 -1
- package/src/locale.d.ts +3 -3
- package/src/locale.js +4 -4
- package/src/mapsequal.d.ts +1 -1
- package/src/mapsequal.js +1 -1
- package/src/mix.d.ts +1 -1
- package/src/mix.js +1 -1
- package/src/nth.d.ts +1 -1
- package/src/nth.js +1 -1
- package/src/objecttomap.d.ts +1 -1
- package/src/objecttomap.js +1 -1
- package/src/observablemixin.d.ts +3 -3
- package/src/observablemixin.js +3 -3
- package/src/priorities.d.ts +1 -1
- package/src/priorities.js +1 -1
- package/src/retry.d.ts +33 -0
- package/src/retry.js +47 -0
- package/src/splicearray.d.ts +1 -1
- package/src/splicearray.js +1 -1
- package/src/spy.d.ts +1 -1
- package/src/spy.js +1 -1
- package/src/toarray.d.ts +1 -1
- package/src/toarray.js +1 -1
- package/src/tomap.d.ts +1 -1
- package/src/tomap.js +3 -3
- package/src/translation-service.d.ts +1 -1
- package/src/translation-service.js +3 -3
- package/src/uid.d.ts +1 -1
- package/src/uid.js +1 -1
- package/src/unicode.d.ts +1 -1
- package/src/unicode.js +1 -1
- package/src/verifylicense.d.ts +1 -1
- package/src/verifylicense.js +2 -2
- package/src/version.d.ts +2 -2
- package/src/version.js +6 -6
- package/src/wait.d.ts +16 -0
- package/src/wait.js +29 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,7 @@ All changes in the package are documented in the main repository. See: https://g
|
|
|
5
5
|
|
|
6
6
|
Changes for the past releases are available below.
|
|
7
7
|
|
|
8
|
-
## [19.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v18.0.0...v19.0.0) (2020
|
|
8
|
+
## [19.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v18.0.0...v19.0.0) (April 29, 2020)
|
|
9
9
|
|
|
10
10
|
### MINOR BREAKING CHANGES
|
|
11
11
|
|
|
@@ -26,7 +26,7 @@ Changes for the past releases are available below.
|
|
|
26
26
|
|
|
27
27
|
* Do not execute `ResizeObserver` callbacks when the resized element is invisible (but still in DOM) (see [ckeditor/ckeditor5#6570](https://github.com/ckeditor/ckeditor5/issues/6570)). ([fb13d9d](https://github.com/ckeditor/ckeditor5-utils/commit/fb13d9d))
|
|
28
28
|
* Editor will now load correctly in environment with `Symbol` polyfill. Closes [ckeditor/ckeditor5#6489](https://github.com/ckeditor/ckeditor5/issues/6489). ([7cd1f48](https://github.com/ckeditor/ckeditor5-utils/commit/7cd1f48))
|
|
29
|
-
* Fixed various cases with typing multi-byte
|
|
29
|
+
* Fixed various cases with typing multi-byte Unicode sequences (like emojis). Closes [ckeditor/ckeditor5#3147](https://github.com/ckeditor/ckeditor5/issues/3147). Closes [ckeditor/ckeditor5#6495](https://github.com/ckeditor/ckeditor5/issues/6495). ([6dc1ba6](https://github.com/ckeditor/ckeditor5-utils/commit/6dc1ba6))
|
|
30
30
|
* The `getOptimalPosition()` helper should prefer positions that fit inside the viewport even though there are some others that fit better into the limiter. Closes [ckeditor/ckeditor5#6181](https://github.com/ckeditor/ckeditor5/issues/6181). ([7cd1238](https://github.com/ckeditor/ckeditor5-utils/commit/7cd1238))
|
|
31
31
|
|
|
32
32
|
### Other changes
|
|
@@ -35,12 +35,12 @@ Changes for the past releases are available below.
|
|
|
35
35
|
* The `getPositionedAncestor()` helper should use `offsetParent` instead of `getComputedStyle()` for performance reasons. Closes [ckeditor/ckeditor5#6573](https://github.com/ckeditor/ckeditor5/issues/6573). ([7939756](https://github.com/ckeditor/ckeditor5-utils/commit/7939756))
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
## [18.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v17.0.0...v18.0.0) (2020
|
|
38
|
+
## [18.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v17.0.0...v18.0.0) (March 19, 2020)
|
|
39
39
|
|
|
40
40
|
Internal changes only (updated dependencies, documentation, etc.).
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
## [17.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v16.0.0...v17.0.0) (2020
|
|
43
|
+
## [17.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v16.0.0...v17.0.0) (February 19, 2020)
|
|
44
44
|
|
|
45
45
|
### MINOR BREAKING CHANGES
|
|
46
46
|
|
|
@@ -57,19 +57,19 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
57
57
|
* The `uid()` helper should be a lot faster. Closes [ckeditor/ckeditor5#6188](https://github.com/ckeditor/ckeditor5/issues/6188). ([b57fc3f](https://github.com/ckeditor/ckeditor5-utils/commit/b57fc3f))
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
## [16.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v15.0.0...v16.0.0) (2019
|
|
60
|
+
## [16.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v15.0.0...v16.0.0) (December 4, 2019)
|
|
61
61
|
|
|
62
62
|
### Bug fixes
|
|
63
63
|
|
|
64
|
-
* Improved error
|
|
64
|
+
* Improved error re-throwing by replacing the error stack. Closes [ckeditor/ckeditor5#5595](https://github.com/ckeditor/ckeditor5/issues/5595). ([7685c0d](https://github.com/ckeditor/ckeditor5-utils/commit/7685c0d))
|
|
65
65
|
|
|
66
66
|
|
|
67
|
-
## [15.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v14.0.0...v15.0.0) (2019
|
|
67
|
+
## [15.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v14.0.0...v15.0.0) (October 23, 2019)
|
|
68
68
|
|
|
69
69
|
### Features
|
|
70
70
|
|
|
71
71
|
* Implemented the `getResizeObserver()` helper that offers an entry to the native `ResizeObserver` API (see [ckeditor/ckeditor5#416](https://github.com/ckeditor/ckeditor5/issues/416)). ([875d5a4](https://github.com/ckeditor/ckeditor5-utils/commit/875d5a4))
|
|
72
|
-
* Introduced `assertEqualMarkup()` test
|
|
72
|
+
* Introduced `assertEqualMarkup()` test utility method. Closes [ckeditor/ckeditor5-paste-from-office#14](https://github.com/ckeditor/ckeditor5-paste-from-office/issues/14). ([ee1655f](https://github.com/ckeditor/ckeditor5-utils/commit/ee1655f))
|
|
73
73
|
* Introduced support for creating elements in other XML namespaces. See [ckeditor/ckeditor5#1842](https://github.com/ckeditor/ckeditor5/issues/1842). ([37fbcb9](https://github.com/ckeditor/ckeditor5-utils/commit/37fbcb9))
|
|
74
74
|
|
|
75
75
|
Thanks [@Sebobo](https://github.com/Sebobo)!
|
|
@@ -83,7 +83,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
83
83
|
* Introduced the `CKEditorError.rethrowUnexpectedError()` helper. Added custom error handling for the `Emitter#fire()` function. Part of [ckeditor/ckeditor5#1304](https://github.com/ckeditor/ckeditor5/issues/1304). ([1d84705](https://github.com/ckeditor/ckeditor5-utils/commit/1d84705))
|
|
84
84
|
|
|
85
85
|
|
|
86
|
-
## [14.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v13.0.1...v14.0.0) (2019
|
|
86
|
+
## [14.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v13.0.1...v14.0.0) (August 26, 2019)
|
|
87
87
|
|
|
88
88
|
### Features
|
|
89
89
|
|
|
@@ -102,12 +102,12 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
102
102
|
* Removed the CKEditor 5 logger utility.
|
|
103
103
|
|
|
104
104
|
|
|
105
|
-
## [13.0.1](https://github.com/ckeditor/ckeditor5-utils/compare/v13.0.0...v13.0.1) (2019
|
|
105
|
+
## [13.0.1](https://github.com/ckeditor/ckeditor5-utils/compare/v13.0.0...v13.0.1) (July 10, 2019)
|
|
106
106
|
|
|
107
107
|
Internal changes only (updated dependencies, documentation, etc.).
|
|
108
108
|
|
|
109
109
|
|
|
110
|
-
## [13.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v12.1.1...v13.0.0) (2019
|
|
110
|
+
## [13.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v12.1.1...v13.0.0) (July 4, 2019)
|
|
111
111
|
|
|
112
112
|
### Features
|
|
113
113
|
|
|
@@ -122,12 +122,12 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
122
122
|
* The list of `CKEditorError()`'s parameters was changed – now it requires the message, context and then data. The `isCKEditorError()` method was renamed to `is()`.
|
|
123
123
|
|
|
124
124
|
|
|
125
|
-
## [12.1.1](https://github.com/ckeditor/ckeditor5-utils/compare/v12.1.0...v12.1.1) (2019
|
|
125
|
+
## [12.1.1](https://github.com/ckeditor/ckeditor5-utils/compare/v12.1.0...v12.1.1) (June 6, 2019)
|
|
126
126
|
|
|
127
127
|
Internal changes only (updated dependencies, documentation, etc.).
|
|
128
128
|
|
|
129
129
|
|
|
130
|
-
## [12.1.0](https://github.com/ckeditor/ckeditor5-utils/compare/v12.0.0...v12.1.0) (2019
|
|
130
|
+
## [12.1.0](https://github.com/ckeditor/ckeditor5-utils/compare/v12.0.0...v12.1.0) (April 4, 2019)
|
|
131
131
|
|
|
132
132
|
### Features
|
|
133
133
|
|
|
@@ -135,7 +135,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
135
135
|
* Made `FocusTracker#focusedElement` observable to bring support for multi-root editors (see [ckeditor/ckeditor5#1599](https://github.com/ckeditor/ckeditor5/issues/1599)). ([952d440](https://github.com/ckeditor/ckeditor5-utils/commit/952d440))
|
|
136
136
|
|
|
137
137
|
|
|
138
|
-
## [12.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v11.1.0...v12.0.0) (2019
|
|
138
|
+
## [12.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v11.1.0...v12.0.0) (February 28, 2019)
|
|
139
139
|
|
|
140
140
|
### Features
|
|
141
141
|
|
|
@@ -149,7 +149,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
149
149
|
### Other changes
|
|
150
150
|
|
|
151
151
|
* Configuration options should be cloned to prevent features from altering the original values. Closes [#257](https://github.com/ckeditor/ckeditor5-utils/issues/257). ([7981d4e](https://github.com/ckeditor/ckeditor5-utils/commit/7981d4e))
|
|
152
|
-
* DOM Elements will not be cloned when returned from config.get
|
|
152
|
+
* DOM Elements will not be cloned when returned from `editor.config.get()`. Closes [#264](https://github.com/ckeditor/ckeditor5-utils/issues/264). ([4ad23b1](https://github.com/ckeditor/ckeditor5-utils/commit/4ad23b1))
|
|
153
153
|
* Optimized `diff()` function to use `fastDiff()` function internally for large data sets. Closes [#269](https://github.com/ckeditor/ckeditor5-utils/issues/269). ([ee9bed0](https://github.com/ckeditor/ckeditor5-utils/commit/ee9bed0))
|
|
154
154
|
* Replaced `for..of` statement in `EventEmitter` with `Array.prototype.forEach`. This changes allows building a React application using `create-react-app@2`. Closes [ckeditor/ckeditor5-react#40](https://github.com/ckeditor/ckeditor5-react/issues/40). ([900b54b](https://github.com/ckeditor/ckeditor5-utils/commit/900b54b))
|
|
155
155
|
|
|
@@ -158,7 +158,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
158
158
|
* Upgraded minimal versions of Node to `8.0.0` and npm to `5.7.1`. See: [ckeditor/ckeditor5#1507](https://github.com/ckeditor/ckeditor5/issues/1507). ([612ea3c](https://github.com/ckeditor/ckeditor5-cloud-services/commit/612ea3c))
|
|
159
159
|
|
|
160
160
|
|
|
161
|
-
## [11.1.0](https://github.com/ckeditor/ckeditor5-utils/compare/v11.0.0...v11.1.0) (2018
|
|
161
|
+
## [11.1.0](https://github.com/ckeditor/ckeditor5-utils/compare/v11.0.0...v11.1.0) (December 5, 2018)
|
|
162
162
|
|
|
163
163
|
### Features
|
|
164
164
|
|
|
@@ -166,10 +166,10 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
166
166
|
|
|
167
167
|
### Other changes
|
|
168
168
|
|
|
169
|
-
* Various fixes in the API
|
|
169
|
+
* Various fixes in the API documentation. Thanks to [@denisname](https://github.com/denisname)!
|
|
170
170
|
|
|
171
171
|
|
|
172
|
-
## [11.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v10.2.1...v11.0.0) (2018
|
|
172
|
+
## [11.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v10.2.1...v11.0.0) (October 8, 2018)
|
|
173
173
|
|
|
174
174
|
### Other changes
|
|
175
175
|
|
|
@@ -180,12 +180,12 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
180
180
|
* Removed the `lodash` library from this package (a modular `lodash` build has been kept under `src/lib/lodash/`). We now recommend using `lodash-es` directly.
|
|
181
181
|
|
|
182
182
|
|
|
183
|
-
## [10.2.1](https://github.com/ckeditor/ckeditor5-utils/compare/v10.2.0...v10.2.1) (2018
|
|
183
|
+
## [10.2.1](https://github.com/ckeditor/ckeditor5-utils/compare/v10.2.0...v10.2.1) (July 18, 2018)
|
|
184
184
|
|
|
185
185
|
Internal changes only (updated dependencies, documentation, etc.).
|
|
186
186
|
|
|
187
187
|
|
|
188
|
-
## [10.2.0](https://github.com/ckeditor/ckeditor5-utils/compare/v10.1.0...v10.2.0) (2018
|
|
188
|
+
## [10.2.0](https://github.com/ckeditor/ckeditor5-utils/compare/v10.1.0...v10.2.0) (July 18, 2018)
|
|
189
189
|
|
|
190
190
|
### Features
|
|
191
191
|
|
|
@@ -197,7 +197,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
197
197
|
* The `isWindow()` helper should work in the Electron environment. Closes [ckeditor/ckeditor5#879](https://github.com/ckeditor/ckeditor5/issues/879). ([d561151](https://github.com/ckeditor/ckeditor5-utils/commit/d561151))
|
|
198
198
|
|
|
199
199
|
|
|
200
|
-
## [10.1.0](https://github.com/ckeditor/ckeditor5-utils/compare/v10.0.0...v10.1.0) (2018
|
|
200
|
+
## [10.1.0](https://github.com/ckeditor/ckeditor5-utils/compare/v10.0.0...v10.1.0) (June 21, 2018)
|
|
201
201
|
|
|
202
202
|
### Features
|
|
203
203
|
|
|
@@ -209,7 +209,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
209
209
|
* Error should not be thrown when scrolling the viewport from within an iframe in a different domain. Closes [ckeditor/ckeditor5#930](https://github.com/ckeditor/ckeditor5/issues/930). ([ad4656e](https://github.com/ckeditor/ckeditor5-utils/commit/ad4656e))
|
|
210
210
|
|
|
211
211
|
|
|
212
|
-
## [10.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v1.0.0-beta.4...v10.0.0) (2018
|
|
212
|
+
## [10.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v1.0.0-beta.4...v10.0.0) (April 25, 2018)
|
|
213
213
|
|
|
214
214
|
### Other changes
|
|
215
215
|
|
|
@@ -220,17 +220,17 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
220
220
|
* The license under which CKEditor 5 is released has been changed from a triple GPL, LGPL and MPL license to a GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991) for more information.
|
|
221
221
|
|
|
222
222
|
|
|
223
|
-
## [1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-utils/compare/v1.0.0-beta.2...v1.0.0-beta.4) (2018
|
|
223
|
+
## [1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-utils/compare/v1.0.0-beta.2...v1.0.0-beta.4) (April 19, 2018)
|
|
224
224
|
|
|
225
225
|
Internal changes only (updated dependencies, documentation, etc.).
|
|
226
226
|
|
|
227
227
|
|
|
228
|
-
## [1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-utils/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2018
|
|
228
|
+
## [1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-utils/compare/v1.0.0-beta.1...v1.0.0-beta.2) (April 10, 2018)
|
|
229
229
|
|
|
230
230
|
Internal changes only (updated dependencies, documentation, etc.).
|
|
231
231
|
|
|
232
232
|
|
|
233
|
-
## [1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-utils/compare/v1.0.0-alpha.2...v1.0.0-beta.1) (2018
|
|
233
|
+
## [1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-utils/compare/v1.0.0-alpha.2...v1.0.0-beta.1) (March 15, 2018)
|
|
234
234
|
|
|
235
235
|
### Features
|
|
236
236
|
|
|
@@ -260,14 +260,14 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
260
260
|
* `isDomNode()` was renamed to `isNode()`.
|
|
261
261
|
|
|
262
262
|
|
|
263
|
-
## [1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-utils/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2017
|
|
263
|
+
## [1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-utils/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (November 14, 2017)
|
|
264
264
|
|
|
265
265
|
### Bug fixes
|
|
266
266
|
|
|
267
267
|
* Removed a period at the end of an error message because some browsers included the period in links to errors. Closes [#193](https://github.com/ckeditor/ckeditor5-utils/issues/193). ([fdebc2f](https://github.com/ckeditor/ckeditor5-utils/commit/fdebc2f))
|
|
268
268
|
|
|
269
269
|
|
|
270
|
-
## [1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-utils/compare/v0.10.0...v1.0.0-alpha.1) (2017
|
|
270
|
+
## [1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-utils/compare/v0.10.0...v1.0.0-alpha.1) (October 3, 2017)
|
|
271
271
|
|
|
272
272
|
### Features
|
|
273
273
|
|
|
@@ -278,7 +278,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
278
278
|
* `CKEditorError#message`, `log.error()` and `log.warn()` will contain a link to the error documentation. Closes [#185](https://github.com/ckeditor/ckeditor5-utils/issues/185). ([b7a00c9](https://github.com/ckeditor/ckeditor5-utils/commit/b7a00c9))
|
|
279
279
|
|
|
280
280
|
|
|
281
|
-
## [0.10.0](https://github.com/ckeditor/ckeditor5-utils/compare/v0.9.1...v0.10.0) (2017
|
|
281
|
+
## [0.10.0](https://github.com/ckeditor/ckeditor5-utils/compare/v0.9.1...v0.10.0) (September 3, 2017)
|
|
282
282
|
|
|
283
283
|
### Bug fixes
|
|
284
284
|
|
|
@@ -296,7 +296,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
296
296
|
* The `getOptimalPosition()` utility should accept the target option defined as a function. Closes [#157](https://github.com/ckeditor/ckeditor5-utils/issues/157). ([d63abae](https://github.com/ckeditor/ckeditor5-utils/commit/d63abae))
|
|
297
297
|
|
|
298
298
|
|
|
299
|
-
## [0.9.1](https://github.com/ckeditor/ckeditor5-utils/compare/v0.9.0...v0.9.1) (2017
|
|
299
|
+
## [0.9.1](https://github.com/ckeditor/ckeditor5-utils/compare/v0.9.0...v0.9.1) (May 7, 2017)
|
|
300
300
|
|
|
301
301
|
### Bug fixes
|
|
302
302
|
|
|
@@ -304,7 +304,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
304
304
|
* The `getOptimalPosition()` utility should consider limiter ancestors with CSS overflow. Closes [#148](https://github.com/ckeditor/ckeditor5-utils/issues/148). ([6bf1741](https://github.com/ckeditor/ckeditor5-utils/commit/6bf1741))
|
|
305
305
|
|
|
306
306
|
|
|
307
|
-
## [0.9.0](https://github.com/ckeditor/ckeditor5-utils/compare/v0.8.0...v0.9.0) (2017
|
|
307
|
+
## [0.9.0](https://github.com/ckeditor/ckeditor5-utils/compare/v0.8.0...v0.9.0) (April 5, 2017)
|
|
308
308
|
|
|
309
309
|
### Bug fixes
|
|
310
310
|
|
|
@@ -317,7 +317,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
317
317
|
* Two–way data binding between `Collection` instances. Closes [#132](https://github.com/ckeditor/ckeditor5-utils/issues/132). ([6b79624](https://github.com/ckeditor/ckeditor5-utils/commit/6b79624))
|
|
318
318
|
|
|
319
319
|
|
|
320
|
-
## [0.8.0](https://github.com/ckeditor/ckeditor5-utils/compare/v0.7.0...v0.8.0) (2017
|
|
320
|
+
## [0.8.0](https://github.com/ckeditor/ckeditor5-utils/compare/v0.7.0...v0.8.0) (March 6, 2017)
|
|
321
321
|
|
|
322
322
|
### Features
|
|
323
323
|
|
package/LICENSE.md
CHANGED
|
@@ -2,7 +2,7 @@ Software License Agreement
|
|
|
2
2
|
==========================
|
|
3
3
|
|
|
4
4
|
**CKEditor 5 utilities** – https://github.com/ckeditor/ckeditor5-utils <br>
|
|
5
|
-
Copyright (c) 2003–
|
|
5
|
+
Copyright (c) 2003–2024, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
|
|
6
6
|
|
|
7
7
|
Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html).
|
|
8
8
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-utils",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "41.0.0",
|
|
4
4
|
"description": "Miscellaneous utilities used by CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"ckeditor5-lib",
|
|
10
10
|
"ckeditor5-dll"
|
|
11
11
|
],
|
|
12
|
+
"type": "module",
|
|
12
13
|
"main": "src/index.js",
|
|
13
14
|
"dependencies": {
|
|
14
15
|
"lodash-es": "4.17.21"
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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/abortabledebounce
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Returns a function wrapper that will execute the provided function and abort any previous call that is still in progress.
|
|
10
|
+
*
|
|
11
|
+
* @param func The function to be called. It will be provided with `AbortSignal` as the first parameter.
|
|
12
|
+
*/
|
|
13
|
+
export default function abortableDebounce<Args extends Array<any>, Ret>(func: (signal: AbortSignal, ...args: Args) => Ret): AbortableFunc<Args, Ret>;
|
|
14
|
+
export interface AbortableFunc<Args extends Array<any>, Ret> {
|
|
15
|
+
(...args: Args): Ret;
|
|
16
|
+
abort(): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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/abortabledebounce
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Returns a function wrapper that will execute the provided function and abort any previous call that is still in progress.
|
|
10
|
+
*
|
|
11
|
+
* @param func The function to be called. It will be provided with `AbortSignal` as the first parameter.
|
|
12
|
+
*/
|
|
13
|
+
export default function abortableDebounce(func) {
|
|
14
|
+
let controller = new AbortController();
|
|
15
|
+
function abortable(...args) {
|
|
16
|
+
controller.abort();
|
|
17
|
+
controller = new AbortController();
|
|
18
|
+
return func(controller.signal, ...args);
|
|
19
|
+
}
|
|
20
|
+
abortable.abort = () => controller.abort();
|
|
21
|
+
return abortable;
|
|
22
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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-
|
|
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/ckeditorerror.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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/ckeditorerror.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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/collection.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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
|
declare const Collection_base: {
|
|
6
|
-
new (): import("./emittermixin").Emitter;
|
|
7
|
-
prototype: import("./emittermixin").Emitter;
|
|
6
|
+
new (): import("./emittermixin.js").Emitter;
|
|
7
|
+
prototype: import("./emittermixin.js").Emitter;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
10
|
* Collections are ordered sets of objects. Items in the collection can be retrieved by their indexes
|
package/src/collection.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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/collection
|
|
7
7
|
*/
|
|
8
|
-
import EmitterMixin from './emittermixin';
|
|
9
|
-
import CKEditorError from './ckeditorerror';
|
|
10
|
-
import uid from './uid';
|
|
11
|
-
import isIterable from './isiterable';
|
|
8
|
+
import EmitterMixin from './emittermixin.js';
|
|
9
|
+
import CKEditorError from './ckeditorerror.js';
|
|
10
|
+
import uid from './uid.js';
|
|
11
|
+
import isIterable from './isiterable.js';
|
|
12
12
|
/**
|
|
13
13
|
* Collections are ordered sets of objects. Items in the collection can be retrieved by their indexes
|
|
14
14
|
* in the collection (like in an array) or by their ids.
|
package/src/comparearrays.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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/comparearrays.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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/config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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/config.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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/count.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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/count.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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/delay.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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/delay.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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/diff.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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
|
/**
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*/
|
|
23
23
|
declare function diff<T>(a: ArrayLike<T>, b: ArrayLike<T>, cmp?: (a: T, b: T) => boolean): Array<DiffResult>;
|
|
24
24
|
declare namespace diff {
|
|
25
|
-
var fastDiff: typeof import("./fastdiff").default;
|
|
25
|
+
var fastDiff: typeof import("./fastdiff.js").default;
|
|
26
26
|
}
|
|
27
27
|
export default diff;
|
|
28
28
|
/**
|
package/src/diff.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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/diff
|
|
7
7
|
*/
|
|
8
|
-
import fastDiff from './fastdiff';
|
|
8
|
+
import fastDiff from './fastdiff.js';
|
|
9
9
|
// The following code is based on the "O(NP) Sequence Comparison Algorithm"
|
|
10
10
|
// by Sun Wu, Udi Manber, Gene Myers, Webb Miller.
|
|
11
11
|
/**
|
package/src/difftochanges.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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';
|
|
5
|
+
import type { DiffResult } from './diff.js';
|
|
6
6
|
/**
|
|
7
7
|
* @module utils/difftochanges
|
|
8
8
|
*/
|
package/src/difftochanges.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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-
|
|
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/createelement.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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/createelement
|
|
7
7
|
*/
|
|
8
|
-
import isIterable from '../isiterable';
|
|
8
|
+
import isIterable from '../isiterable.js';
|
|
9
9
|
import { isString } from 'lodash-es';
|
|
10
10
|
/**
|
|
11
11
|
* Creates an HTML or SVG element with attributes and children elements.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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/emittermixin
|
|
7
7
|
*/
|
|
8
|
-
import { type Emitter, type CallbackOptions, type BaseEvent, type GetCallback } from '../emittermixin';
|
|
9
|
-
import type EventInfo from '../eventinfo';
|
|
10
|
-
import type { Constructor, Mixed } from '../mix';
|
|
8
|
+
import { type Emitter, type CallbackOptions, type BaseEvent, type GetCallback } from '../emittermixin.js';
|
|
9
|
+
import type EventInfo from '../eventinfo.js';
|
|
10
|
+
import type { Constructor, Mixed } from '../mix.js';
|
|
11
11
|
/**
|
|
12
12
|
* Mixin that injects the DOM events API into its host. It provides the API
|
|
13
13
|
* compatible with {@link module:utils/emittermixin~Emitter}.
|
package/src/dom/emittermixin.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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/emittermixin
|
|
7
7
|
*/
|
|
8
|
-
import EmitterMixin, { _getEmitterListenedTo, _setEmitterId } from '../emittermixin';
|
|
9
|
-
import uid from '../uid';
|
|
10
|
-
import isNode from './isnode';
|
|
11
|
-
import isWindow from './iswindow';
|
|
8
|
+
import EmitterMixin, { _getEmitterListenedTo, _setEmitterId } from '../emittermixin.js';
|
|
9
|
+
import uid from '../uid.js';
|
|
10
|
+
import isNode from './isnode.js';
|
|
11
|
+
import isWindow from './iswindow.js';
|
|
12
12
|
const defaultEmitterClass = DomEmitterMixin(EmitterMixin());
|
|
13
13
|
export default function DomEmitterMixin(base) {
|
|
14
14
|
if (!base) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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-
|
|
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/findclosestscrollableancestor
|
|
7
7
|
*/
|
|
8
|
-
import global from './global';
|
|
8
|
+
import global from './global.js';
|
|
9
9
|
/**
|
|
10
10
|
* Returns the closest scrollable ancestor of a DOM element.
|
|
11
11
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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/getancestors.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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 Node */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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-
|
|
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-
|
|
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
|
/**
|