@ckeditor/ckeditor5-utils 35.2.1 → 35.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-utils",
3
- "version": "35.2.1",
3
+ "version": "35.3.1",
4
4
  "description": "Miscellaneous utilities used by CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -14,12 +14,12 @@
14
14
  "lodash-es": "^4.17.15"
15
15
  },
16
16
  "devDependencies": {
17
- "@ckeditor/ckeditor5-build-classic": "^35.2.1",
18
- "@ckeditor/ckeditor5-editor-classic": "^35.2.1",
19
- "@ckeditor/ckeditor5-core": "^35.2.1",
20
- "@ckeditor/ckeditor5-engine": "^35.2.1",
17
+ "@ckeditor/ckeditor5-build-classic": "^35.3.1",
18
+ "@ckeditor/ckeditor5-editor-classic": "^35.3.1",
19
+ "@ckeditor/ckeditor5-core": "^35.3.1",
20
+ "@ckeditor/ckeditor5-engine": "^35.3.1",
21
21
  "@types/lodash-es": "^4.17.6",
22
- "typescript": "^4.6.4"
22
+ "typescript": "^4.8.4"
23
23
  },
24
24
  "depcheckIgnore": [
25
25
  "typescript"
@@ -209,7 +209,7 @@ class ProxyEmitter extends BaseEmitter {
209
209
  * @param {String} event The name of the event.
210
210
  * @param {Function} callback The function to be called on event.
211
211
  * @param {Object} [options={}] Additional options.
212
- * @param {module:utils/priorities~PriorityString|Number} [options.priority='normal'] The priority of this event callback. The higher
212
+ * @param {module:utils/priorities~PriorityString} [options.priority='normal'] The priority of this event callback. The higher
213
213
  * the priority value the sooner the callback will be fired. Events having the same priority are called in the
214
214
  * order they were added.
215
215
  */
package/src/index.js CHANGED
@@ -32,5 +32,6 @@ export { default as KeystrokeHandler } from './keystrokehandler';
32
32
  export { default as toArray } from './toarray';
33
33
  export { default as toMap } from './tomap';
34
34
  export { default as priorities } from './priorities';
35
+ export { default as insertToPriorityArray } from './inserttopriorityarray';
35
36
  export { default as uid } from './uid';
36
37
  export { default as version } from './version';
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module utils/keystrokehandler
7
7
  */
8
- import DomEmitterMixin from './dom/emittermixin';
8
+ import { Emitter as DomEmitter } from './dom/emittermixin';
9
9
  import { getCode, parseKeystroke } from './keyboard';
10
10
  /**
11
11
  * Keystroke handler allows registering callbacks for given keystrokes.
@@ -43,7 +43,7 @@ export default class KeystrokeHandler {
43
43
  * Creates an instance of the keystroke handler.
44
44
  */
45
45
  constructor() {
46
- this._listener = Object.create(DomEmitterMixin);
46
+ this._listener = new DomEmitter();
47
47
  }
48
48
  /**
49
49
  * Starts listening for `keydown` events from a given emitter.
@@ -73,7 +73,7 @@ export default class KeystrokeHandler {
73
73
  * {@link module:engine/view/observer/keyobserver~KeyEventData key event data} object and
74
74
  * a helper function to call both `preventDefault()` and `stopPropagation()` on the underlying event.
75
75
  * @param {Object} [options={}] Additional options.
76
- * @param {module:utils/priorities~PriorityString|Number} [options.priority='normal'] The priority of the keystroke
76
+ * @param {module:utils/priorities~PriorityString} [options.priority='normal'] The priority of the keystroke
77
77
  * callback. The higher the priority value the sooner the callback will be executed. Keystrokes having the same priority
78
78
  * are called in the order they were added.
79
79
  */
package/src/priorities.js CHANGED
@@ -12,7 +12,7 @@ const priorities = {
12
12
  * Converts a string with priority name to it's numeric value. If `Number` is given, it just returns it.
13
13
  *
14
14
  * @static
15
- * @param {module:utils/priorities~PriorityString|Number} [priority] Priority to convert.
15
+ * @param {module:utils/priorities~PriorityString} [priority] Priority to convert.
16
16
  * @returns {Number} Converted priority.
17
17
  */
18
18
  get(priority = 'normal') {
package/src/version.js CHANGED
@@ -7,7 +7,7 @@
7
7
  */
8
8
  /* globals window, global */
9
9
  import CKEditorError from './ckeditorerror';
10
- const version = '35.2.1';
10
+ const version = '35.3.1';
11
11
  export default version;
12
12
  /* istanbul ignore next */
13
13
  const windowOrGlobal = typeof window === 'object' ? window : global;