@blocklet/discuss-kit 1.5.52 → 1.5.54
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/lib/cjs/comments.js +2 -3
- package/lib/es/comments.js +1 -1
- package/package.json +4 -4
package/lib/cjs/comments.js
CHANGED
|
@@ -3,7 +3,7 @@ const react = require("react");
|
|
|
3
3
|
const Theme = require("@arcblock/ux/lib/Theme");
|
|
4
4
|
const joinUrl = require("url-join");
|
|
5
5
|
const PropTypes = require("prop-types");
|
|
6
|
-
const
|
|
6
|
+
const reactUse = require("react-use");
|
|
7
7
|
const SessionManager = require("@arcblock/did-connect/lib/SessionManager");
|
|
8
8
|
const Session = require("@arcblock/did-connect/lib/Session");
|
|
9
9
|
const Button = require("@arcblock/ux/lib/Button");
|
|
@@ -21,7 +21,6 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
21
21
|
const _interopDefaultLegacy = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
|
|
22
22
|
const joinUrl__default = /* @__PURE__ */ _interopDefaultLegacy(joinUrl);
|
|
23
23
|
const PropTypes__default = /* @__PURE__ */ _interopDefaultLegacy(PropTypes);
|
|
24
|
-
const useAsyncRetry__default = /* @__PURE__ */ _interopDefaultLegacy(useAsyncRetry);
|
|
25
24
|
const SessionManager__default = /* @__PURE__ */ _interopDefaultLegacy(SessionManager);
|
|
26
25
|
const Button__default = /* @__PURE__ */ _interopDefaultLegacy(Button);
|
|
27
26
|
const Box__default = /* @__PURE__ */ _interopDefaultLegacy(Box);
|
|
@@ -157,7 +156,7 @@ function DiscussKitComments({
|
|
|
157
156
|
const {
|
|
158
157
|
t
|
|
159
158
|
} = context.useLocaleContext();
|
|
160
|
-
const objectRatingState =
|
|
159
|
+
const objectRatingState = reactUse.useAsyncRetry(() => api.fetchRatingStats(object.id));
|
|
161
160
|
const handlers = {
|
|
162
161
|
ADD_COMMENT: (data) => {
|
|
163
162
|
add(formatComment(data));
|
package/lib/es/comments.js
CHANGED
|
@@ -2,7 +2,7 @@ import { useMemo, useEffect, useContext } from "react";
|
|
|
2
2
|
import { styled } from "@arcblock/ux/lib/Theme";
|
|
3
3
|
import joinUrl from "url-join";
|
|
4
4
|
import PropTypes from "prop-types";
|
|
5
|
-
import useAsyncRetry from "react-use
|
|
5
|
+
import { useAsyncRetry } from "react-use";
|
|
6
6
|
import SessionManager from "@arcblock/did-connect/lib/SessionManager";
|
|
7
7
|
import { SessionContext } from "@arcblock/did-connect/lib/Session";
|
|
8
8
|
import Button from "@arcblock/ux/lib/Button";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/discuss-kit",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.54",
|
|
4
4
|
"description": "A react component for Discuss Kit blocklet.",
|
|
5
5
|
"main": "./lib/cjs/index.js",
|
|
6
6
|
"module": "./lib/es/index.js",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"@arcblock/did-connect": "^2.7.8",
|
|
38
38
|
"@arcblock/ux": "^2.7.8",
|
|
39
39
|
"@arcblock/ws": "^1.18.89",
|
|
40
|
-
"@blocklet/discuss-kit-ux": "1.5.
|
|
41
|
-
"@blocklet/editor": "1.5.
|
|
40
|
+
"@blocklet/discuss-kit-ux": "1.5.54",
|
|
41
|
+
"@blocklet/editor": "1.5.54",
|
|
42
42
|
"@emotion/react": "^11.10.5",
|
|
43
43
|
"@emotion/styled": "^11.10.5",
|
|
44
44
|
"@mui/icons-material": "^5.14.3",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"vite-plugin-build": "^0.7.1",
|
|
78
78
|
"vite-plugin-svgr": "^2.2.2"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "733f07069d4267177864b9c09373e17a80275392"
|
|
81
81
|
}
|