@stokr/components-library 3.0.16-alpha.7 → 3.0.16-alpha.8
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/dist/index.js +3 -3
- package/package.json +6 -10
package/dist/index.js
CHANGED
|
@@ -25,7 +25,7 @@ import { BigNumber as Ve } from "bignumber.js";
|
|
|
25
25
|
import ft from "react-slick";
|
|
26
26
|
import "slick-carousel/slick/slick.css";
|
|
27
27
|
import "slick-carousel/slick/slick-theme.css";
|
|
28
|
-
import BV from "
|
|
28
|
+
import BV from "dompurify";
|
|
29
29
|
import { Popup as wg } from "semantic-ui-react";
|
|
30
30
|
import { QRCodeSVG as Je } from "qrcode.react";
|
|
31
31
|
import { formatInTimeZone as dV, format as hg } from "date-fns-tz";
|
|
@@ -5934,11 +5934,11 @@ const KA = {
|
|
|
5934
5934
|
/* @__PURE__ */ e(FA, { large: !0, inProgress: t.inProgress, complete: t.complete, children: /* @__PURE__ */ e(fA, {}) })
|
|
5935
5935
|
] })
|
|
5936
5936
|
] }) }),
|
|
5937
|
-
/* @__PURE__ */ e(y, { children: /* @__PURE__ */ e(PV, { dangerouslySetInnerHTML: { __html: BV(A.content ?? "") } }) })
|
|
5937
|
+
/* @__PURE__ */ e(y, { children: /* @__PURE__ */ e(PV, { dangerouslySetInnerHTML: { __html: BV.sanitize(A.content ?? "") } }) })
|
|
5938
5938
|
] }),
|
|
5939
5939
|
A.postType === "text" && /* @__PURE__ */ o(NA, { children: [
|
|
5940
5940
|
/* @__PURE__ */ e(y, { noPaddingRight: !0, noPaddingBottom: !0, children: /* @__PURE__ */ e(xV, { postType: A.postType, children: /* @__PURE__ */ e("h3", { children: A.title }) }) }),
|
|
5941
|
-
/* @__PURE__ */ e(y, { children: /* @__PURE__ */ e(PV, { dangerouslySetInnerHTML: { __html: BV(A.content ?? "") } }) }),
|
|
5941
|
+
/* @__PURE__ */ e(y, { children: /* @__PURE__ */ e(PV, { dangerouslySetInnerHTML: { __html: BV.sanitize(A.content ?? "") } }) }),
|
|
5942
5942
|
/* @__PURE__ */ e(y, { children: /* @__PURE__ */ o(DV, { center: !0, children: [
|
|
5943
5943
|
/* @__PURE__ */ e(
|
|
5944
5944
|
K,
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stokr/components-library",
|
|
3
|
-
"version": "3.0.16-alpha.
|
|
3
|
+
"version": "3.0.16-alpha.8",
|
|
4
4
|
"description": "STOKR - Components Library",
|
|
5
5
|
"author": "Bilal Hodzic <bilal@stokr.io>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
8
|
-
"main": "./dist/index.
|
|
8
|
+
"main": "./dist/index.js",
|
|
9
9
|
"module": "./dist/index.js",
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
"default": "./dist/auth/index.js"
|
|
22
22
|
},
|
|
23
23
|
"./auth/index.js": "./dist/auth/index.js",
|
|
24
|
-
"./styles.css": "./dist/index.css",
|
|
25
24
|
"./ionicons.css": "./dist/static/fonts/Ionicons/ionicons.min.css",
|
|
26
25
|
"./dist/*": "./dist/static/*"
|
|
27
26
|
},
|
|
@@ -52,16 +51,14 @@
|
|
|
52
51
|
"ajv": "^8.18.0",
|
|
53
52
|
"axios": "^1.13.5",
|
|
54
53
|
"bignumber.js": "^9.1.1",
|
|
55
|
-
"cross-env": "^10.1.0",
|
|
56
54
|
"d3": "^7.8.3",
|
|
57
55
|
"date-fns": "^4.1.0",
|
|
58
56
|
"date-fns-tz": "^3.2.0",
|
|
59
|
-
"
|
|
57
|
+
"dompurify": "^3.2.4",
|
|
60
58
|
"firebase": "^12.4.0",
|
|
61
59
|
"formik": "^2.2.9",
|
|
62
60
|
"formik-persist": "^1.1.0",
|
|
63
61
|
"html-react-parser": "^5.0.6",
|
|
64
|
-
"http-server": "^14.1.1",
|
|
65
62
|
"js-cookie": "^3.0.5",
|
|
66
63
|
"mixpanel-browser": "^2.74.0",
|
|
67
64
|
"mobile-detect": "^1.4.5",
|
|
@@ -86,7 +83,6 @@
|
|
|
86
83
|
"react-slick": "^0.31.0",
|
|
87
84
|
"react-table": "^7.8.0",
|
|
88
85
|
"react-tippy": "^1.4.0",
|
|
89
|
-
"sanitize-html": "^2.17.1",
|
|
90
86
|
"scroll-to-element": "^2.0.3",
|
|
91
87
|
"semantic-ui-react": "^2.1.4",
|
|
92
88
|
"slick-carousel": "^1.8.1",
|
|
@@ -100,6 +96,8 @@
|
|
|
100
96
|
},
|
|
101
97
|
"devDependencies": {
|
|
102
98
|
"@chromatic-com/storybook": "^5.0.0",
|
|
99
|
+
"cross-env": "^10.1.0",
|
|
100
|
+
"depcheck": "^1.4.7",
|
|
103
101
|
"@eslint-react/eslint-plugin": "^1.53.1",
|
|
104
102
|
"@eslint/js": "^9.39.2",
|
|
105
103
|
"@storybook/addon-docs": "^10.2.0",
|
|
@@ -119,6 +117,7 @@
|
|
|
119
117
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
120
118
|
"eslint-plugin-react-refresh": "^0.4.26",
|
|
121
119
|
"eslint-plugin-storybook": "10.2.0",
|
|
120
|
+
"http-server": "^14.1.1",
|
|
122
121
|
"prettier": "^3.8.1",
|
|
123
122
|
"react": "^19.2.3",
|
|
124
123
|
"react-dom": "^19.2.3",
|
|
@@ -135,9 +134,6 @@
|
|
|
135
134
|
"overrides": {
|
|
136
135
|
"minimatch": "^10.2.1"
|
|
137
136
|
},
|
|
138
|
-
"browser": {
|
|
139
|
-
"[module-name]": false
|
|
140
|
-
},
|
|
141
137
|
"bugs": {
|
|
142
138
|
"url": "https://github.com/stokr-io/components-library/issues"
|
|
143
139
|
},
|