@blocklet/discuss-kit 1.5.140 → 1.5.141
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 -2
- package/lib/es/comments.js +3 -3
- package/package.json +4 -4
package/lib/cjs/comments.js
CHANGED
|
@@ -256,7 +256,7 @@ function Wrapper({
|
|
|
256
256
|
};
|
|
257
257
|
}, []);
|
|
258
258
|
api.defaults.baseURL = joinUrl(_prefix, "/api/");
|
|
259
|
-
return /* @__PURE__ */ jsxRuntime.jsx(discussKitUx.UploaderProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(reactErrorBoundary.ErrorBoundary, { FallbackComponent: ErrorFallback, children: /* @__PURE__ */ jsxRuntime.jsx(context.LocaleProvider, { translations: locales.translations, locale, children: /* @__PURE__ */ jsxRuntime.jsx(discussKitUx.InternalThemeProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(discussKitUx.DefaultEditorConfigProvider, { request: api, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
259
|
+
return /* @__PURE__ */ jsxRuntime.jsx(discussKitUx.UploaderProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(reactErrorBoundary.ErrorBoundary, { FallbackComponent: ErrorFallback, children: /* @__PURE__ */ jsxRuntime.jsx(context.LocaleProvider, { translations: locales.translations, locale, children: /* @__PURE__ */ jsxRuntime.jsx(discussKitUx.InternalThemeProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(discussKitUx.ConfirmProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(discussKitUx.DefaultEditorConfigProvider, { request: api, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
260
260
|
discussKitUx.CommentsProvider,
|
|
261
261
|
{
|
|
262
262
|
target: object,
|
|
@@ -268,7 +268,7 @@ function Wrapper({
|
|
|
268
268
|
showProfileCard,
|
|
269
269
|
children: /* @__PURE__ */ jsxRuntime.jsx(DiscussKitComments, { ...rest, object })
|
|
270
270
|
}
|
|
271
|
-
) }) }) }) }) });
|
|
271
|
+
) }) }) }) }) }) });
|
|
272
272
|
}
|
|
273
273
|
Wrapper.propTypes = {
|
|
274
274
|
target: PropTypes.shape({
|
package/lib/es/comments.js
CHANGED
|
@@ -11,7 +11,7 @@ import CircularProgress from "@mui/material/CircularProgress";
|
|
|
11
11
|
import ButtonGroup from "@mui/material/ButtonGroup";
|
|
12
12
|
import { useLocaleContext, LocaleProvider } from "@arcblock/ux/lib/Locale/context";
|
|
13
13
|
import { ErrorBoundary } from "react-error-boundary";
|
|
14
|
-
import { UploaderProvider, InternalThemeProvider, DefaultEditorConfigProvider, CommentsProvider, useDefaultApiErrorHandler, useCommentsContext, GithubReaction, CommentInput, CommentList } from "@blocklet/discuss-kit-ux";
|
|
14
|
+
import { UploaderProvider, InternalThemeProvider, ConfirmProvider, DefaultEditorConfigProvider, CommentsProvider, useDefaultApiErrorHandler, useCommentsContext, GithubReaction, CommentInput, CommentList } from "@blocklet/discuss-kit-ux";
|
|
15
15
|
import { useRequest } from "ahooks";
|
|
16
16
|
import ErrorFallback from "./components/error-fallback";
|
|
17
17
|
import { translations } from "./locales";
|
|
@@ -255,7 +255,7 @@ function Wrapper({
|
|
|
255
255
|
};
|
|
256
256
|
}, []);
|
|
257
257
|
api.defaults.baseURL = joinUrl(_prefix, "/api/");
|
|
258
|
-
return /* @__PURE__ */ jsx(UploaderProvider, { children: /* @__PURE__ */ jsx(ErrorBoundary, { FallbackComponent: ErrorFallback, children: /* @__PURE__ */ jsx(LocaleProvider, { translations, locale, children: /* @__PURE__ */ jsx(InternalThemeProvider, { children: /* @__PURE__ */ jsx(DefaultEditorConfigProvider, { request: api, children: /* @__PURE__ */ jsx(
|
|
258
|
+
return /* @__PURE__ */ jsx(UploaderProvider, { children: /* @__PURE__ */ jsx(ErrorBoundary, { FallbackComponent: ErrorFallback, children: /* @__PURE__ */ jsx(LocaleProvider, { translations, locale, children: /* @__PURE__ */ jsx(InternalThemeProvider, { children: /* @__PURE__ */ jsx(ConfirmProvider, { children: /* @__PURE__ */ jsx(DefaultEditorConfigProvider, { request: api, children: /* @__PURE__ */ jsx(
|
|
259
259
|
CommentsProvider,
|
|
260
260
|
{
|
|
261
261
|
target: object,
|
|
@@ -267,7 +267,7 @@ function Wrapper({
|
|
|
267
267
|
showProfileCard,
|
|
268
268
|
children: /* @__PURE__ */ jsx(DiscussKitComments, { ...rest, object })
|
|
269
269
|
}
|
|
270
|
-
) }) }) }) }) });
|
|
270
|
+
) }) }) }) }) }) });
|
|
271
271
|
}
|
|
272
272
|
Wrapper.propTypes = {
|
|
273
273
|
target: PropTypes.shape({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/discuss-kit",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.141",
|
|
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.21",
|
|
38
38
|
"@arcblock/ux": "^2.7.21",
|
|
39
39
|
"@arcblock/ws": "^1.18.90",
|
|
40
|
-
"@blocklet/discuss-kit-ux": "1.5.
|
|
41
|
-
"@blocklet/editor": "1.5.
|
|
40
|
+
"@blocklet/discuss-kit-ux": "1.5.141",
|
|
41
|
+
"@blocklet/editor": "1.5.141",
|
|
42
42
|
"@emotion/react": "^11.10.5",
|
|
43
43
|
"@emotion/styled": "^11.10.5",
|
|
44
44
|
"@mui/icons-material": "^5.14.9",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"vite-plugin-build": "^0.10.0",
|
|
78
78
|
"vite-plugin-svgr": "^4.1.0"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "937c8f4ca67cddd54c67259e2bcf180d22671191"
|
|
81
81
|
}
|