@ckeditor/ckeditor5-widget 45.0.0 → 45.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-widget",
3
- "version": "45.0.0",
3
+ "version": "45.1.0-alpha.1",
4
4
  "description": "Widget API for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,13 +12,13 @@
12
12
  "type": "module",
13
13
  "main": "src/index.js",
14
14
  "dependencies": {
15
- "@ckeditor/ckeditor5-core": "45.0.0",
16
- "@ckeditor/ckeditor5-engine": "45.0.0",
17
- "@ckeditor/ckeditor5-enter": "45.0.0",
18
- "@ckeditor/ckeditor5-icons": "45.0.0",
19
- "@ckeditor/ckeditor5-ui": "45.0.0",
20
- "@ckeditor/ckeditor5-utils": "45.0.0",
21
- "@ckeditor/ckeditor5-typing": "45.0.0",
15
+ "@ckeditor/ckeditor5-core": "45.1.0-alpha.1",
16
+ "@ckeditor/ckeditor5-engine": "45.1.0-alpha.1",
17
+ "@ckeditor/ckeditor5-enter": "45.1.0-alpha.1",
18
+ "@ckeditor/ckeditor5-icons": "45.1.0-alpha.1",
19
+ "@ckeditor/ckeditor5-ui": "45.1.0-alpha.1",
20
+ "@ckeditor/ckeditor5-utils": "45.1.0-alpha.1",
21
+ "@ckeditor/ckeditor5-typing": "45.1.0-alpha.1",
22
22
  "es-toolkit": "1.32.0"
23
23
  },
24
24
  "author": "CKSource (http://cksource.com/)",
package/src/utils.js CHANGED
@@ -80,7 +80,7 @@ export function toWidget(element, writer, options = {}) {
80
80
  * instance.
81
81
  *
82
82
  * @error widget-to-widget-wrong-element-type
83
- * @param element The view element passed to `toWidget()`.
83
+ * @param {any} element The view element passed to `toWidget()`.
84
84
  */
85
85
  throw new CKEditorError('widget-to-widget-wrong-element-type', null, { element });
86
86
  }
@@ -67,6 +67,7 @@ export default class WidgetToolbarRepository extends Plugin {
67
67
  * callback (or later) to make sure that the given toolbar items were already registered by other plugins.
68
68
  *
69
69
  * @param toolbarId An id for the toolbar. Used to
70
+ * @param options Detailed options
70
71
  * @param options.ariaLabel Label used by assistive technologies to describe this toolbar element.
71
72
  * @param options.items Array of toolbar items.
72
73
  * @param options.getRelatedElement Callback which returns an element the toolbar should be attached to.
@@ -100,6 +100,7 @@ export default class WidgetToolbarRepository extends Plugin {
100
100
  * callback (or later) to make sure that the given toolbar items were already registered by other plugins.
101
101
  *
102
102
  * @param toolbarId An id for the toolbar. Used to
103
+ * @param options Detailed options
103
104
  * @param options.ariaLabel Label used by assistive technologies to describe this toolbar element.
104
105
  * @param options.items Array of toolbar items.
105
106
  * @param options.getRelatedElement Callback which returns an element the toolbar should be attached to.
@@ -120,7 +121,7 @@ export default class WidgetToolbarRepository extends Plugin {
120
121
  * * {@link module:image/imageconfig~ImageConfig#toolbar `config.image.toolbar`}
121
122
  *
122
123
  * @error widget-toolbar-no-items
123
- * @param toolbarId The id of the toolbar that has not been configured correctly.
124
+ * @param {string} toolbarId The id of the toolbar that has not been configured correctly.
124
125
  */
125
126
  logWarning('widget-toolbar-no-items', { toolbarId });
126
127
  return;
@@ -134,7 +135,7 @@ export default class WidgetToolbarRepository extends Plugin {
134
135
  * Toolbar with the given id was already added.
135
136
  *
136
137
  * @error widget-toolbar-duplicated
137
- * @param toolbarId Toolbar id.
138
+ * @param {string} toolbarId Toolbar id.
138
139
  */
139
140
  throw new CKEditorError('widget-toolbar-duplicated', this, { toolbarId });
140
141
  }
@@ -64,8 +64,6 @@ export default class WidgetTypeAround extends Plugin {
64
64
  * @param event The name of the event.
65
65
  * @param callback The function to be called on event.
66
66
  * @param options Additional options.
67
- * @param options.priority The priority of this event callback. The higher the priority value the sooner
68
- * the callback will be fired. Events having the same priority are called in the order they were added.
69
67
  */
70
68
  private _listenToIfEnabled;
71
69
  /**
@@ -125,8 +125,6 @@ export default class WidgetTypeAround extends Plugin {
125
125
  * @param event The name of the event.
126
126
  * @param callback The function to be called on event.
127
127
  * @param options Additional options.
128
- * @param options.priority The priority of this event callback. The higher the priority value the sooner
129
- * the callback will be fired. Events having the same priority are called in the order they were added.
130
128
  */
131
129
  _listenToIfEnabled(emitter, event, callback, options) {
132
130
  this.listenTo(emitter, event, (...args) => {
@@ -549,7 +547,7 @@ export default class WidgetTypeAround extends Plugin {
549
547
  // Note: The priority must precede the default Input plugin compositionstart handler (to call it before delete content).
550
548
  this._listenToIfEnabled(viewDocument, 'compositionstart', () => {
551
549
  this._insertParagraphAccordingToFakeCaretPosition();
552
- }, { priority: 'high' });
550
+ }, { priority: 'highest' });
553
551
  }
554
552
  }
555
553
  /**