@vaadin/rich-text-editor 24.0.0-alpha7 → 24.0.0-alpha9

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-alpha7",
3
+ "version": "24.0.0-alpha9",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -40,14 +40,14 @@
40
40
  ],
41
41
  "dependencies": {
42
42
  "@polymer/polymer": "^3.0.0",
43
- "@vaadin/button": "24.0.0-alpha7",
44
- "@vaadin/component-base": "24.0.0-alpha7",
45
- "@vaadin/confirm-dialog": "24.0.0-alpha7",
46
- "@vaadin/text-field": "24.0.0-alpha7",
47
- "@vaadin/tooltip": "24.0.0-alpha7",
48
- "@vaadin/vaadin-lumo-styles": "24.0.0-alpha7",
49
- "@vaadin/vaadin-material-styles": "24.0.0-alpha7",
50
- "@vaadin/vaadin-themable-mixin": "24.0.0-alpha7"
43
+ "@vaadin/button": "24.0.0-alpha9",
44
+ "@vaadin/component-base": "24.0.0-alpha9",
45
+ "@vaadin/confirm-dialog": "24.0.0-alpha9",
46
+ "@vaadin/text-field": "24.0.0-alpha9",
47
+ "@vaadin/tooltip": "24.0.0-alpha9",
48
+ "@vaadin/vaadin-lumo-styles": "24.0.0-alpha9",
49
+ "@vaadin/vaadin-material-styles": "24.0.0-alpha9",
50
+ "@vaadin/vaadin-themable-mixin": "24.0.0-alpha9"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@esm-bundle/chai": "^4.3.4",
@@ -62,5 +62,5 @@
62
62
  "web-types.json",
63
63
  "web-types.lit.json"
64
64
  ],
65
- "gitHead": "aeb4535336813636736759e0a5de148b26bfc3b6"
65
+ "gitHead": "cc3f747164041566b300bde4b105d2475649e93f"
66
66
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2000 - 2022 Vaadin Ltd.
3
+ * Copyright (c) 2000 - 2023 Vaadin Ltd.
4
4
  *
5
5
  * This program is available under Vaadin Commercial License and Service Terms.
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2000 - 2022 Vaadin Ltd.
3
+ * Copyright (c) 2000 - 2023 Vaadin Ltd.
4
4
  *
5
5
  * This program is available under Vaadin Commercial License and Service Terms.
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2000 - 2022 Vaadin Ltd.
3
+ * Copyright (c) 2000 - 2023 Vaadin Ltd.
4
4
  *
5
5
  * This program is available under Vaadin Commercial License and Service Terms.
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2000 - 2022 Vaadin Ltd.
3
+ * Copyright (c) 2000 - 2023 Vaadin Ltd.
4
4
  *
5
5
  * This program is available under Vaadin Commercial License and Service Terms.
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2000 - 2022 Vaadin Ltd.
3
+ * Copyright (c) 2000 - 2023 Vaadin Ltd.
4
4
  *
5
5
  * This program is available under Vaadin Commercial License and Service Terms.
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2000 - 2022 Vaadin Ltd.
3
+ * Copyright (c) 2000 - 2023 Vaadin Ltd.
4
4
  *
5
5
  * This program is available under Vaadin Commercial License and Service Terms.
6
6
  *
@@ -906,17 +906,17 @@ class RichTextEditor extends ElementMixin(ThemableMixin(PolymerElement)) {
906
906
  let content = editor.innerHTML;
907
907
 
908
908
  // Remove Quill classes, e.g. ql-syntax, except for align
909
- content = content.replace(/\s*ql-(?!align)[\w-]*\s*/g, '');
909
+ content = content.replace(/\s*ql-(?!align)[\w-]*\s*/gu, '');
910
910
 
911
911
  // Replace Quill align classes with inline styles
912
912
  [this.__dir === 'rtl' ? 'left' : 'right', 'center', 'justify'].forEach((align) => {
913
913
  content = content.replace(
914
- new RegExp(` class=[\\\\]?"\\s?ql-align-${align}[\\\\]?"`, 'g'),
914
+ new RegExp(` class=[\\\\]?"\\s?ql-align-${align}[\\\\]?"`, 'gu'),
915
915
  ` style="text-align: ${align}"`,
916
916
  );
917
917
  });
918
918
 
919
- content = content.replace(/ class=""/g, '');
919
+ content = content.replace(/ class=""/gu, '');
920
920
 
921
921
  this._setHtmlValue(content);
922
922
  }
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-alpha7",
4
+ "version": "24.0.0-alpha9",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -51,44 +51,6 @@
51
51
  ],
52
52
  "js": {
53
53
  "properties": [
54
- {
55
- "name": "rootPath",
56
- "description": "",
57
- "value": {
58
- "type": [
59
- "string"
60
- ]
61
- }
62
- },
63
- {
64
- "name": "importPath",
65
- "description": "",
66
- "value": {
67
- "type": [
68
- "string"
69
- ]
70
- }
71
- },
72
- {
73
- "name": "root",
74
- "description": "",
75
- "value": {
76
- "type": [
77
- "StampedTemplate",
78
- "HTMLElement",
79
- "ShadowRoot"
80
- ]
81
- }
82
- },
83
- {
84
- "name": "$",
85
- "description": "",
86
- "value": {
87
- "type": [
88
- "Object.<string, Element>"
89
- ]
90
- }
91
- },
92
54
  {
93
55
  "name": "value",
94
56
  "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.",
@@ -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-alpha7",
4
+ "version": "24.0.0-alpha9",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -33,34 +33,6 @@
33
33
  "kind": "expression"
34
34
  }
35
35
  },
36
- {
37
- "name": ".rootPath",
38
- "description": "",
39
- "value": {
40
- "kind": "expression"
41
- }
42
- },
43
- {
44
- "name": ".importPath",
45
- "description": "",
46
- "value": {
47
- "kind": "expression"
48
- }
49
- },
50
- {
51
- "name": ".root",
52
- "description": "",
53
- "value": {
54
- "kind": "expression"
55
- }
56
- },
57
- {
58
- "name": ".$",
59
- "description": "",
60
- "value": {
61
- "kind": "expression"
62
- }
63
- },
64
36
  {
65
37
  "name": ".value",
66
38
  "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.",