@vaadin/rich-text-editor 25.1.2 → 25.2.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.1.2",
3
+ "version": "25.2.0-alpha10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,23 +35,23 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "@open-wc/dedupe-mixin": "^1.3.0",
38
- "@vaadin/a11y-base": "~25.1.2",
39
- "@vaadin/button": "~25.1.2",
40
- "@vaadin/component-base": "~25.1.2",
41
- "@vaadin/confirm-dialog": "~25.1.2",
42
- "@vaadin/overlay": "~25.1.2",
43
- "@vaadin/text-field": "~25.1.2",
44
- "@vaadin/tooltip": "~25.1.2",
45
- "@vaadin/vaadin-themable-mixin": "~25.1.2",
38
+ "@vaadin/a11y-base": "25.2.0-alpha10",
39
+ "@vaadin/button": "25.2.0-alpha10",
40
+ "@vaadin/component-base": "25.2.0-alpha10",
41
+ "@vaadin/confirm-dialog": "25.2.0-alpha10",
42
+ "@vaadin/overlay": "25.2.0-alpha10",
43
+ "@vaadin/text-field": "25.2.0-alpha10",
44
+ "@vaadin/tooltip": "25.2.0-alpha10",
45
+ "@vaadin/vaadin-themable-mixin": "25.2.0-alpha10",
46
46
  "lit": "^3.0.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@vaadin/a11y-base": "25.1.0-beta2",
50
- "@vaadin/aura": "~25.1.2",
51
- "@vaadin/chai-plugins": "~25.1.2",
52
- "@vaadin/test-runner-commands": "~25.1.2",
50
+ "@vaadin/aura": "25.2.0-alpha10",
51
+ "@vaadin/chai-plugins": "25.2.0-alpha10",
52
+ "@vaadin/test-runner-commands": "25.2.0-alpha10",
53
53
  "@vaadin/testing-helpers": "^2.0.0",
54
- "@vaadin/vaadin-lumo-styles": "~25.1.2",
54
+ "@vaadin/vaadin-lumo-styles": "25.2.0-alpha10",
55
55
  "sinon": "^21.0.2"
56
56
  },
57
57
  "cvdlName": "vaadin-rich-text-editor",
@@ -60,5 +60,5 @@
60
60
  "web-types.json",
61
61
  "web-types.lit.json"
62
62
  ],
63
- "gitHead": "48e5dc507ac5eb8d34839be06cac652f1635fe1c"
63
+ "gitHead": "1303b6a3eeecb44a9d26f2b53cb56d9e906febdf"
64
64
  }
@@ -766,7 +766,7 @@ export const RichTextEditorMixin = (superClass) =>
766
766
  const tabs = '\t'.repeat(level);
767
767
  // Add tabs to content
768
768
  const firstChild = element.firstChild;
769
- if (firstChild && firstChild.nodeType === Node.TEXT_NODE) {
769
+ if (firstChild?.nodeType === Node.TEXT_NODE) {
770
770
  firstChild.textContent = tabs + firstChild.textContent;
771
771
  } else if (element.childNodes.length > 0) {
772
772
  const tabNode = document.createTextNode(tabs);
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.1.2",
4
+ "version": "25.2.0-alpha10",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -15,9 +15,7 @@
15
15
  "description": "When true, the user can not modify, nor copy the editor content.",
16
16
  "value": {
17
17
  "type": [
18
- "boolean",
19
- "null",
20
- "undefined"
18
+ "boolean"
21
19
  ]
22
20
  }
23
21
  },
@@ -26,9 +24,7 @@
26
24
  "description": "When true, the user can not modify the editor content, but can copy it.",
27
25
  "value": {
28
26
  "type": [
29
- "boolean",
30
- "null",
31
- "undefined"
27
+ "boolean"
32
28
  ]
33
29
  }
34
30
  },
@@ -48,9 +44,7 @@
48
44
  "description": "Value is a list of the operations which describe change to the document.\nEach of those operations describe the change at the current index.\nThey can be an `insert`, `delete` or `retain`. The format is as follows:\n\n```js\n [\n { insert: 'Hello World' },\n { insert: '!', attributes: { bold: true }}\n ]\n```\n\nSee also https://github.com/quilljs/delta for detailed documentation.",
49
45
  "value": {
50
46
  "type": [
51
- "string",
52
- "null",
53
- "undefined"
47
+ "string"
54
48
  ]
55
49
  }
56
50
  }
@@ -62,9 +56,7 @@
62
56
  "description": "The list of colors used by the background and text color\nselection controls. Should contain an array of HEX strings.\n\nWhen user selects `#000000` (black) as a text color,\nor `#ffffff` (white) as a background color, it resets\nthe corresponding format for the selected text.",
63
57
  "value": {
64
58
  "type": [
65
- "Array",
66
- "null",
67
- "undefined"
59
+ "array"
68
60
  ]
69
61
  }
70
62
  },
@@ -73,9 +65,7 @@
73
65
  "description": "When true, the user can not modify, nor copy the editor content.",
74
66
  "value": {
75
67
  "type": [
76
- "boolean",
77
- "null",
78
- "undefined"
68
+ "boolean"
79
69
  ]
80
70
  }
81
71
  },
@@ -84,7 +74,7 @@
84
74
  "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nThe properties are used e.g. as the tooltips for the editor toolbar\nbuttons.",
85
75
  "value": {
86
76
  "type": [
87
- "?"
77
+ "Object"
88
78
  ]
89
79
  }
90
80
  },
@@ -93,9 +83,7 @@
93
83
  "description": "When true, the user can not modify the editor content, but can copy it.",
94
84
  "value": {
95
85
  "type": [
96
- "boolean",
97
- "null",
98
- "undefined"
86
+ "boolean"
99
87
  ]
100
88
  }
101
89
  },
@@ -104,14 +92,16 @@
104
92
  "description": "Value is a list of the operations which describe change to the document.\nEach of those operations describe the change at the current index.\nThey can be an `insert`, `delete` or `retain`. The format is as follows:\n\n```js\n [\n { insert: 'Hello World' },\n { insert: '!', attributes: { bold: true }}\n ]\n```\n\nSee also https://github.com/quilljs/delta for detailed documentation.",
105
93
  "value": {
106
94
  "type": [
107
- "string",
108
- "null",
109
- "undefined"
95
+ "string"
110
96
  ]
111
97
  }
112
98
  }
113
99
  ],
114
100
  "events": [
101
+ {
102
+ "name": "change",
103
+ "description": "Fired when the user commits a value change."
104
+ },
115
105
  {
116
106
  "name": "html-value-changed",
117
107
  "description": "Fired when the `htmlValue` property changes."
@@ -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.1.2",
4
+ "version": "25.2.0-alpha10",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -20,29 +20,29 @@
20
20
  "extension": true,
21
21
  "attributes": [
22
22
  {
23
- "name": "?disabled",
24
- "description": "When true, the user can not modify, nor copy the editor content.",
23
+ "name": ".colorOptions",
24
+ "description": "The list of colors used by the background and text color\nselection controls. Should contain an array of HEX strings.\n\nWhen user selects `#000000` (black) as a text color,\nor `#ffffff` (white) as a background color, it resets\nthe corresponding format for the selected text.",
25
25
  "value": {
26
26
  "kind": "expression"
27
27
  }
28
28
  },
29
29
  {
30
- "name": "?readonly",
31
- "description": "When true, the user can not modify the editor content, but can copy it.",
30
+ "name": "?disabled",
31
+ "description": "When true, the user can not modify, nor copy the editor content.",
32
32
  "value": {
33
33
  "kind": "expression"
34
34
  }
35
35
  },
36
36
  {
37
- "name": ".colorOptions",
38
- "description": "The list of colors used by the background and text color\nselection controls. Should contain an array of HEX strings.\n\nWhen user selects `#000000` (black) as a text color,\nor `#ffffff` (white) as a background color, it resets\nthe corresponding format for the selected text.",
37
+ "name": ".i18n",
38
+ "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nThe properties are used e.g. as the tooltips for the editor toolbar\nbuttons.",
39
39
  "value": {
40
40
  "kind": "expression"
41
41
  }
42
42
  },
43
43
  {
44
- "name": ".i18n",
45
- "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nThe properties are used e.g. as the tooltips for the editor toolbar\nbuttons.",
44
+ "name": "?readonly",
45
+ "description": "When true, the user can not modify the editor content, but can copy it.",
46
46
  "value": {
47
47
  "kind": "expression"
48
48
  }
@@ -54,6 +54,13 @@
54
54
  "kind": "expression"
55
55
  }
56
56
  },
57
+ {
58
+ "name": "@change",
59
+ "description": "Fired when the user commits a value change.",
60
+ "value": {
61
+ "kind": "expression"
62
+ }
63
+ },
57
64
  {
58
65
  "name": "@html-value-changed",
59
66
  "description": "Fired when the `htmlValue` property changes.",