@tidbcloud/uikit 2.8.5 → 2.8.6
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @tidbcloud/uikit
|
|
2
2
|
|
|
3
|
+
## 2.8.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix(Form): restrict error message HTML ([#659](https://github.com/tidbcloud/tidbcloud-uikit/pull/659))
|
|
8
|
+
- fix(ci): authorize and isolate snapshot publishing ([#660](https://github.com/tidbcloud/tidbcloud-uikit/pull/660))
|
|
9
|
+
|
|
3
10
|
## 2.8.5
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -42,7 +42,20 @@ const FormErrorMessage = ({
|
|
|
42
42
|
},
|
|
43
43
|
...rest,
|
|
44
44
|
children: [
|
|
45
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
45
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
46
|
+
"div",
|
|
47
|
+
{
|
|
48
|
+
dangerouslySetInnerHTML: {
|
|
49
|
+
__html: DOMPurify.sanitize(message, {
|
|
50
|
+
ALLOWED_TAGS: ["a", "b", "br", "code", "em", "i", "li", "ol", "p", "span", "strong", "ul"],
|
|
51
|
+
ALLOWED_ATTR: ["href", "title"],
|
|
52
|
+
ALLOW_ARIA_ATTR: false,
|
|
53
|
+
ALLOW_DATA_ATTR: false,
|
|
54
|
+
ALLOWED_URI_REGEXP: /^(?:(?:https?|mailto):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
55
|
+
})
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
),
|
|
46
59
|
/* @__PURE__ */ jsxRuntime.jsx("div", { ref: bottomRef })
|
|
47
60
|
]
|
|
48
61
|
}
|
|
@@ -40,7 +40,20 @@ const FormErrorMessage = ({
|
|
|
40
40
|
},
|
|
41
41
|
...rest,
|
|
42
42
|
children: [
|
|
43
|
-
/* @__PURE__ */ jsx(
|
|
43
|
+
/* @__PURE__ */ jsx(
|
|
44
|
+
"div",
|
|
45
|
+
{
|
|
46
|
+
dangerouslySetInnerHTML: {
|
|
47
|
+
__html: DOMPurify.sanitize(message, {
|
|
48
|
+
ALLOWED_TAGS: ["a", "b", "br", "code", "em", "i", "li", "ol", "p", "span", "strong", "ul"],
|
|
49
|
+
ALLOWED_ATTR: ["href", "title"],
|
|
50
|
+
ALLOW_ARIA_ATTR: false,
|
|
51
|
+
ALLOW_DATA_ATTR: false,
|
|
52
|
+
ALLOWED_URI_REGEXP: /^(?:(?:https?|mailto):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
53
|
+
})
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
),
|
|
44
57
|
/* @__PURE__ */ jsx("div", { ref: bottomRef })
|
|
45
58
|
]
|
|
46
59
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tidbcloud/uikit",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.6",
|
|
4
4
|
"description": "tidbcloud uikit",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/primitive/index.cjs",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"ahooks": "^3.7.8",
|
|
71
71
|
"clsx": "^2.1.1",
|
|
72
72
|
"dayjs": "^1.11.5",
|
|
73
|
-
"dompurify": "^3.
|
|
73
|
+
"dompurify": "^3.4.17",
|
|
74
74
|
"embla-carousel-react": "^7.0.5",
|
|
75
75
|
"google-libphonenumber": "^3.2.30",
|
|
76
76
|
"html-react-parser": "5.1.18",
|