@vaadin/rich-text-editor 24.0.0-alpha11 → 24.0.0-alpha13

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": "24.0.0-alpha11",
3
+ "version": "24.0.0-alpha13",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -40,18 +40,18 @@
40
40
  ],
41
41
  "dependencies": {
42
42
  "@polymer/polymer": "^3.0.0",
43
- "@vaadin/button": "24.0.0-alpha11",
44
- "@vaadin/component-base": "24.0.0-alpha11",
45
- "@vaadin/confirm-dialog": "24.0.0-alpha11",
46
- "@vaadin/text-field": "24.0.0-alpha11",
47
- "@vaadin/tooltip": "24.0.0-alpha11",
48
- "@vaadin/vaadin-lumo-styles": "24.0.0-alpha11",
49
- "@vaadin/vaadin-material-styles": "24.0.0-alpha11",
50
- "@vaadin/vaadin-themable-mixin": "24.0.0-alpha11"
43
+ "@vaadin/button": "24.0.0-alpha13",
44
+ "@vaadin/component-base": "24.0.0-alpha13",
45
+ "@vaadin/confirm-dialog": "24.0.0-alpha13",
46
+ "@vaadin/text-field": "24.0.0-alpha13",
47
+ "@vaadin/tooltip": "24.0.0-alpha13",
48
+ "@vaadin/vaadin-lumo-styles": "24.0.0-alpha13",
49
+ "@vaadin/vaadin-material-styles": "24.0.0-alpha13",
50
+ "@vaadin/vaadin-themable-mixin": "24.0.0-alpha13"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@esm-bundle/chai": "^4.3.4",
54
- "@vaadin/testing-helpers": "^0.3.2",
54
+ "@vaadin/testing-helpers": "^0.4.0",
55
55
  "gulp": "^4.0.2",
56
56
  "gulp-cli": "^2.3.0",
57
57
  "gulp-iconfont": "^11.0.0",
@@ -62,5 +62,5 @@
62
62
  "web-types.json",
63
63
  "web-types.lit.json"
64
64
  ],
65
- "gitHead": "641b3d96ceeb3e503a093682ebe686afdd8c3a68"
65
+ "gitHead": "a423ad309c12b4e4f847737ee9f491f83ea60ff0"
66
66
  }
@@ -216,6 +216,32 @@ const richTextEditor = css`
216
216
  }
217
217
  `;
218
218
 
219
- registerStyles('vaadin-rich-text-editor', [color, typography, richTextEditor], {
219
+ const contentStyles = css`
220
+ :where(h1, h2, h3, h4, h5, h6) {
221
+ margin-top: 1.25em;
222
+ }
223
+
224
+ :where(h1) {
225
+ margin-bottom: 0.75em;
226
+ }
227
+
228
+ :where(h2) {
229
+ margin-bottom: 0.5em;
230
+ }
231
+
232
+ :where(h3) {
233
+ margin-bottom: 0.5em;
234
+ }
235
+
236
+ :where(h4) {
237
+ margin-bottom: 0.5em;
238
+ }
239
+
240
+ :where(h5) {
241
+ margin-bottom: 0.25em;
242
+ }
243
+ `;
244
+
245
+ registerStyles('vaadin-rich-text-editor', [color, typography, richTextEditor, contentStyles], {
220
246
  moduleId: 'lumo-rich-text-editor',
221
247
  });
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": "24.0.0-alpha11",
4
+ "version": "24.0.0-alpha13",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/rich-text-editor",
4
- "version": "24.0.0-alpha11",
4
+ "version": "24.0.0-alpha13",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {