@blocklet/discuss-kit 1.5.100 → 1.5.102

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.
@@ -372,25 +372,27 @@ function Wrapper({
372
372
  };
373
373
  }, []);
374
374
  api__default.default.defaults.baseURL = joinUrl__default.default(_prefix, "/api/");
375
- return /* @__PURE__ */ jsxRuntime.jsx(reactErrorBoundary.ErrorBoundary, {
376
- FallbackComponent: ErrorFallback__default.default,
377
- children: /* @__PURE__ */ jsxRuntime.jsx(context.LocaleProvider, {
378
- translations: locales.translations,
379
- locale,
380
- children: /* @__PURE__ */ jsxRuntime.jsx(discussKitUx.InternalThemeProvider, {
381
- children: /* @__PURE__ */ jsxRuntime.jsx(discussKitUx.DefaultEditorConfigProvider, {
382
- request: api__default.default,
383
- children: /* @__PURE__ */ jsxRuntime.jsx(discussKitUx.CommentsProvider, {
384
- target: object,
385
- api: commentAPI,
386
- flatView,
387
- order,
388
- autoCollapse,
389
- allowCopyLink,
390
- showProfileCard,
391
- children: /* @__PURE__ */ jsxRuntime.jsx(DiscussKitComments, {
392
- ...rest,
393
- object
375
+ return /* @__PURE__ */ jsxRuntime.jsx(discussKitUx.UploaderProvider, {
376
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactErrorBoundary.ErrorBoundary, {
377
+ FallbackComponent: ErrorFallback__default.default,
378
+ children: /* @__PURE__ */ jsxRuntime.jsx(context.LocaleProvider, {
379
+ translations: locales.translations,
380
+ locale,
381
+ children: /* @__PURE__ */ jsxRuntime.jsx(discussKitUx.InternalThemeProvider, {
382
+ children: /* @__PURE__ */ jsxRuntime.jsx(discussKitUx.DefaultEditorConfigProvider, {
383
+ request: api__default.default,
384
+ children: /* @__PURE__ */ jsxRuntime.jsx(discussKitUx.CommentsProvider, {
385
+ target: object,
386
+ api: commentAPI,
387
+ flatView,
388
+ order,
389
+ autoCollapse,
390
+ allowCopyLink,
391
+ showProfileCard,
392
+ children: /* @__PURE__ */ jsxRuntime.jsx(DiscussKitComments, {
393
+ ...rest,
394
+ object
395
+ })
394
396
  })
395
397
  })
396
398
  })
@@ -10,7 +10,7 @@ import CircularProgress from "@mui/material/CircularProgress";
10
10
  import ButtonGroup from "@mui/material/ButtonGroup";
11
11
  import { useLocaleContext, LocaleProvider } from "@arcblock/ux/lib/Locale/context";
12
12
  import { ErrorBoundary } from "react-error-boundary";
13
- import { InternalThemeProvider, DefaultEditorConfigProvider, CommentsProvider, useDefaultApiErrorHandler, useCommentsContext, GithubReaction, CommentInput, CommentList } from "@blocklet/discuss-kit-ux";
13
+ import { UploaderProvider, InternalThemeProvider, DefaultEditorConfigProvider, CommentsProvider, useDefaultApiErrorHandler, useCommentsContext, GithubReaction, CommentInput, CommentList } from "@blocklet/discuss-kit-ux";
14
14
  import { useRequest } from "ahooks";
15
15
  import ErrorFallback from "./components/error-fallback";
16
16
  import { translations } from "./locales";
@@ -360,25 +360,27 @@ function Wrapper({
360
360
  };
361
361
  }, []);
362
362
  api.defaults.baseURL = joinUrl(_prefix, "/api/");
363
- return /* @__PURE__ */ jsx(ErrorBoundary, {
364
- FallbackComponent: ErrorFallback,
365
- children: /* @__PURE__ */ jsx(LocaleProvider, {
366
- translations,
367
- locale,
368
- children: /* @__PURE__ */ jsx(InternalThemeProvider, {
369
- children: /* @__PURE__ */ jsx(DefaultEditorConfigProvider, {
370
- request: api,
371
- children: /* @__PURE__ */ jsx(CommentsProvider, {
372
- target: object,
373
- api: commentAPI,
374
- flatView,
375
- order,
376
- autoCollapse,
377
- allowCopyLink,
378
- showProfileCard,
379
- children: /* @__PURE__ */ jsx(DiscussKitComments, {
380
- ...rest,
381
- object
363
+ return /* @__PURE__ */ jsx(UploaderProvider, {
364
+ children: /* @__PURE__ */ jsx(ErrorBoundary, {
365
+ FallbackComponent: ErrorFallback,
366
+ children: /* @__PURE__ */ jsx(LocaleProvider, {
367
+ translations,
368
+ locale,
369
+ children: /* @__PURE__ */ jsx(InternalThemeProvider, {
370
+ children: /* @__PURE__ */ jsx(DefaultEditorConfigProvider, {
371
+ request: api,
372
+ children: /* @__PURE__ */ jsx(CommentsProvider, {
373
+ target: object,
374
+ api: commentAPI,
375
+ flatView,
376
+ order,
377
+ autoCollapse,
378
+ allowCopyLink,
379
+ showProfileCard,
380
+ children: /* @__PURE__ */ jsx(DiscussKitComments, {
381
+ ...rest,
382
+ object
383
+ })
382
384
  })
383
385
  })
384
386
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/discuss-kit",
3
- "version": "1.5.100",
3
+ "version": "1.5.102",
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.20",
38
38
  "@arcblock/ux": "^2.7.20",
39
39
  "@arcblock/ws": "^1.18.90",
40
- "@blocklet/discuss-kit-ux": "1.5.100",
41
- "@blocklet/editor": "1.5.100",
40
+ "@blocklet/discuss-kit-ux": "1.5.102",
41
+ "@blocklet/editor": "1.5.102",
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.7.1",
78
78
  "vite-plugin-svgr": "^2.2.2"
79
79
  },
80
- "gitHead": "d065b10ea680de3e2ee1323eb87a62d0dae70bd4"
80
+ "gitHead": "37fadc80e18b8d075cfbf03c92cec473b777736a"
81
81
  }