@blocklet/discuss-kit-ux 2.4.2 → 2.4.4

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.
@@ -4,7 +4,7 @@ import { OnContentChangePlugin } from "@blocklet/editor/lib/ext/OnContentChangeP
4
4
  import { CtrlsShortcutPlugin } from "@blocklet/editor/lib/ext/ShortcutPlugin";
5
5
  import { SafeAreaPlugin } from "@blocklet/editor/lib/ext/SafeAreaPlugin";
6
6
  import { lazyRetry } from "@arcblock/ux/lib/Util";
7
- import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, g as getExcerptSync, s as stringify } from "./index-C1TuS5sj.mjs";
7
+ import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, g as getExcerptSync, s as stringify } from "./index-CMUop2jt.mjs";
8
8
  const BlockletEditor = lazyRetry(() => import("@blocklet/editor"));
9
9
  const Root = styled(Box)`
10
10
  .be-editable,
@@ -2768,14 +2768,14 @@ function Comment({
2768
2768
  sx: {
2769
2769
  my: 2
2770
2770
  },
2771
- children: /* @__PURE__ */ jsx(
2771
+ children: /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(
2772
2772
  CommentInput,
2773
2773
  {
2774
2774
  send: (content) => onReply(post, content),
2775
2775
  onSuccess: () => setInputVisible(false),
2776
2776
  draftKey: `post-${post.id}`
2777
2777
  }
2778
- )
2778
+ ) })
2779
2779
  }
2780
2780
  ),
2781
2781
  /* @__PURE__ */ jsx(Divider, { sx: { mt: 3 } })
@@ -5210,7 +5210,7 @@ function Back({ url, fallbackUrl, iconOnly, sx, icon, ...rest }) {
5210
5210
  }
5211
5211
  const tablerSend = (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsx("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M10 14L21 3m0 0l-6.5 18a.55.55 0 0 1-1 0L10 14l-7-3.5a.55.55 0 0 1 0-1z" }) });
5212
5212
  const tablerLetterCase = (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsx("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M14 15.5a3.5 3.5 0 1 0 7 0a3.5 3.5 0 1 0-7 0M3 19V8.5a3.5 3.5 0 0 1 7 0V19m-7-6h7m11-1v7" }) });
5213
- const Editor = lazyRetry(() => import("./editor-BCcDTroE.mjs"));
5213
+ const Editor = lazyRetry(() => import("./editor-CDCMSBkq.mjs"));
5214
5214
  function LazyEditor(props) {
5215
5215
  const fallback2 = /* @__PURE__ */ jsxs(Box, { sx: { px: 3 }, children: [
5216
5216
  /* @__PURE__ */ jsx(Skeleton, {}),
@@ -6794,7 +6794,7 @@ const zh = {
6794
6794
  const translations = { zh, en };
6795
6795
  const Lottie = lazyRetry(() => import("lottie-react"));
6796
6796
  function LottieComponent({ src, ...restProps }) {
6797
- return /* @__PURE__ */ jsx(Lottie, { animationData: src, loop: true, ...restProps });
6797
+ return /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(Lottie, { animationData: src, loop: true, ...restProps }) });
6798
6798
  }
6799
6799
  const v = "5.0.0";
6800
6800
  const fr = 30;
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from "@blocklet/labels";
2
- import { W, o, Y, aQ, A, n, af, B, G, N, L, O, ar, _, Z, a1, $, a0, a3, x, C, y, z, F, a7, a8, aj, aa, T, U, ae, D, ai, ah, K, H, J, aG, aH, b, m, ag, M, P, aC, aq, w, aR, aS, v, aE, aF, R, S, ab, as, aD, q, aP, a4, a6, ak, an, am, aM, aI, aA, at, Q, ao, aK, au, aJ, ax, ay, aN, aL, l, az, h, p, r, k, aw, t, j, ac, aB, X, aT, c, a2, E, a9, ad, aV, e, u, ap, d, av, aU, aO, a5, al, f } from "./index-C1TuS5sj.mjs";
2
+ import { W, o, Y, aQ, A, n, af, B, G, N, L, O, ar, _, Z, a1, $, a0, a3, x, C, y, z, F, a7, a8, aj, aa, T, U, ae, D, ai, ah, K, H, J, aG, aH, b, m, ag, M, P, aC, aq, w, aR, aS, v, aE, aF, R, S, ab, as, aD, q, aP, a4, a6, ak, an, am, aM, aI, aA, at, Q, ao, aK, au, aJ, ax, ay, aN, aL, l, az, h, p, r, k, aw, t, j, ac, aB, X, aT, c, a2, E, a9, ad, aV, e, u, ap, d, av, aU, aO, a5, al, f } from "./index-CMUop2jt.mjs";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
5
  import "@mui/material/Box";
package/dist/index.umd.js CHANGED
@@ -2687,14 +2687,14 @@
2687
2687
  sx: {
2688
2688
  my: 2
2689
2689
  },
2690
- children: /* @__PURE__ */ jsxRuntime.jsx(
2690
+ children: /* @__PURE__ */ jsxRuntime.jsx(react.Suspense, { children: /* @__PURE__ */ jsxRuntime.jsx(
2691
2691
  CommentInput,
2692
2692
  {
2693
2693
  send: (content) => onReply(post, content),
2694
2694
  onSuccess: () => setInputVisible(false),
2695
2695
  draftKey: `post-${post.id}`
2696
2696
  }
2697
- )
2697
+ ) })
2698
2698
  }
2699
2699
  ),
2700
2700
  /* @__PURE__ */ jsxRuntime.jsx(material.Divider, { sx: { mt: 3 } })
@@ -6713,7 +6713,7 @@
6713
6713
  const translations = { zh, en };
6714
6714
  const Lottie = Util.lazyRetry(() => import("lottie-react"));
6715
6715
  function LottieComponent({ src, ...restProps }) {
6716
- return /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: src, loop: true, ...restProps });
6716
+ return /* @__PURE__ */ jsxRuntime.jsx(react.Suspense, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: src, loop: true, ...restProps }) });
6717
6717
  }
6718
6718
  const v = "5.0.0";
6719
6719
  const fr = 30;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/discuss-kit-ux",
3
- "version": "2.4.2",
3
+ "version": "2.4.4",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -48,8 +48,8 @@
48
48
  "unstated-next": "^1.1.0",
49
49
  "url-join": "^4.0.1",
50
50
  "zustand": "^4.5.5",
51
- "@blocklet/editor": "^2.4.2",
52
- "@blocklet/labels": "^2.4.2"
51
+ "@blocklet/editor": "^2.4.4",
52
+ "@blocklet/labels": "^2.4.4"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "@arcblock/did-connect": "^3.0.1",