@vaadin/rich-text-editor 25.2.7 → 25.3.0-alpha10

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": "@vaadin/rich-text-editor",
3
- "version": "25.2.7",
3
+ "version": "25.3.0-alpha10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,22 +35,22 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "@open-wc/dedupe-mixin": "^1.3.0",
38
- "@vaadin/a11y-base": "~25.2.7",
39
- "@vaadin/button": "~25.2.7",
40
- "@vaadin/component-base": "~25.2.7",
41
- "@vaadin/confirm-dialog": "~25.2.7",
42
- "@vaadin/overlay": "~25.2.7",
43
- "@vaadin/text-field": "~25.2.7",
44
- "@vaadin/tooltip": "~25.2.7",
45
- "@vaadin/vaadin-themable-mixin": "~25.2.7",
38
+ "@vaadin/a11y-base": "25.3.0-alpha10",
39
+ "@vaadin/button": "25.3.0-alpha10",
40
+ "@vaadin/component-base": "25.3.0-alpha10",
41
+ "@vaadin/confirm-dialog": "25.3.0-alpha10",
42
+ "@vaadin/overlay": "25.3.0-alpha10",
43
+ "@vaadin/text-field": "25.3.0-alpha10",
44
+ "@vaadin/tooltip": "25.3.0-alpha10",
45
+ "@vaadin/vaadin-themable-mixin": "25.3.0-alpha10",
46
46
  "lit": "^3.0.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@vaadin/aura": "~25.2.7",
50
- "@vaadin/chai-plugins": "~25.2.7",
51
- "@vaadin/test-runner-commands": "~25.2.7",
49
+ "@vaadin/aura": "25.3.0-alpha10",
50
+ "@vaadin/chai-plugins": "25.3.0-alpha10",
51
+ "@vaadin/test-runner-commands": "25.3.0-alpha10",
52
52
  "@vaadin/testing-helpers": "^2.0.0",
53
- "@vaadin/vaadin-lumo-styles": "~25.2.7",
53
+ "@vaadin/vaadin-lumo-styles": "25.3.0-alpha10",
54
54
  "sinon": "^22.0.0"
55
55
  },
56
56
  "cvdlName": "vaadin-rich-text-editor",
@@ -59,5 +59,5 @@
59
59
  "web-types.json",
60
60
  "web-types.lit.json"
61
61
  ],
62
- "gitHead": "14be1af674f3968cce68c6eb4742340694c4a949"
62
+ "gitHead": "f2833abdf9b613fa0d0ed216830e3f4de87b7dac"
63
63
  }
@@ -11,6 +11,7 @@ import '../vendor/vaadin-quill.js';
11
11
  import { isKeyboardActive } from '@vaadin/a11y-base/src/focus-utils.js';
12
12
  import { timeOut } from '@vaadin/component-base/src/async.js';
13
13
  import { Debouncer } from '@vaadin/component-base/src/debounce.js';
14
+ import { setOrRemoveAttribute } from '@vaadin/component-base/src/dom-utils.js';
14
15
  import { I18nMixin } from '@vaadin/component-base/src/i18n-mixin.js';
15
16
 
16
17
  const Quill = window.Quill;
@@ -893,11 +894,7 @@ export const RichTextEditorMixin = (superClass) =>
893
894
  /** @private */
894
895
  _toggleToolbarDisabled(disable) {
895
896
  const buttons = this._toolbarButtons;
896
- if (disable) {
897
- buttons.forEach((btn) => btn.setAttribute('disabled', 'true'));
898
- } else {
899
- buttons.forEach((btn) => btn.removeAttribute('disabled'));
900
- }
897
+ buttons.forEach((btn) => setOrRemoveAttribute(btn, 'disabled', disable));
901
898
  }
902
899
 
903
900
  /** @private */
@@ -134,6 +134,7 @@ export { RichTextEditorPopup };
134
134
  /**
135
135
  * An element used internally by `<vaadin-rich-text-editor>`. Not intended to be used separately.
136
136
  *
137
+ * @attr {string} theme - The theme variants to apply to the component.
137
138
  * @customElement vaadin-rich-text-editor-popup-overlay
138
139
  * @extends HTMLElement
139
140
  * @private
@@ -170,11 +171,11 @@ class RichTextEditorPopupOverlay extends PositionMixin(
170
171
  }
171
172
 
172
173
  /**
173
- * Override method from OverlayFocusMixin to use owner as focus trap root
174
+ * Override method from OverlayFocusMixin to use owner as focus root
174
175
  * @protected
175
176
  * @override
176
177
  */
177
- get _focusTrapRoot() {
178
+ get _focusRoot() {
178
179
  return this.owner;
179
180
  }
180
181
  }
@@ -115,6 +115,7 @@ import { RichTextEditorMixin } from './vaadin-rich-text-editor-mixin.js';
115
115
  * @fires {CustomEvent} html-value-changed - Fired when the `htmlValue` property changes.
116
116
  * @fires {CustomEvent} value-changed - Fired when the `value` property changes.
117
117
  *
118
+ * @attr {string} theme - The theme variants to apply to the component.
118
119
  * @customElement vaadin-rich-text-editor
119
120
  * @extends HTMLElement
120
121
  */
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/rich-text-editor",
4
- "version": "25.2.7",
4
+ "version": "25.3.0-alpha10",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -33,9 +33,7 @@
33
33
  "description": "The theme variants to apply to the component.",
34
34
  "value": {
35
35
  "type": [
36
- "string",
37
- "null",
38
- "undefined"
36
+ "string"
39
37
  ]
40
38
  }
41
39
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/rich-text-editor",
4
- "version": "25.2.7",
4
+ "version": "25.3.0-alpha10",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {