@blocklet/discuss-kit-ux 2.3.40 → 2.3.42

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, s as stringify, g as getExcerptSync } from "./index-zMbQXq5b.mjs";
7
+ import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, s as stringify, g as getExcerptSync } from "./index-BXgFvMF0.mjs";
8
8
  const BlockletEditor = lazyRetry(() => import("@blocklet/editor"));
9
9
  const Root = styled(Box)`
10
10
  .be-editable,
@@ -1833,6 +1833,7 @@ function PostComponent({
1833
1833
  AuthorInfo,
1834
1834
  {
1835
1835
  size: "sm",
1836
+ fontSize: 14,
1836
1837
  avatarSize: 32,
1837
1838
  user: post.author,
1838
1839
  createdAt: renderTime(),
@@ -4953,7 +4954,7 @@ function Back({ url, fallbackUrl, iconOnly, sx, icon, ...rest }) {
4953
4954
  }
4954
4955
  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" }) });
4955
4956
  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" }) });
4956
- const Editor = lazyRetry(() => import("./editor-d4wWR1cd.mjs"));
4957
+ const Editor = lazyRetry(() => import("./editor-C8xPjyU7.mjs"));
4957
4958
  function LazyEditor(props) {
4958
4959
  const fallback2 = /* @__PURE__ */ jsxs(Box, { sx: { px: 3 }, children: [
4959
4960
  /* @__PURE__ */ jsx(Skeleton, {}),
@@ -5774,7 +5775,10 @@ function ChatInWallet({ sx, ...rest }) {
5774
5775
  if (!initialized) {
5775
5776
  return /* @__PURE__ */ jsx(CircularProgress$1, {});
5776
5777
  }
5777
- const mergedSx = [{ display: "flex", height: "100%", bgcolor: "#fff" }, ...Array.isArray(sx) ? sx : [sx]];
5778
+ const mergedSx = [
5779
+ { display: "flex", height: "100%", bgcolor: "background.default" },
5780
+ ...Array.isArray(sx) ? sx : [sx]
5781
+ ];
5778
5782
  return /* @__PURE__ */ jsx(Box$1, { ...rest, sx: mergedSx, children: show.right && /* @__PURE__ */ jsxs(Box$1, { sx: { flex: 1, overflow: "hidden" }, children: [
5779
5783
  /* @__PURE__ */ jsx(ChatRoom, { chat: activeChat, inWallet: true }),
5780
5784
  !activeChatId && /* @__PURE__ */ jsx(Empty$1, { sx: { height: 1 } })
@@ -5836,7 +5840,7 @@ function ChatListInWallet({ sx, ...rest }) {
5836
5840
  {
5837
5841
  display: "flex",
5838
5842
  height: "100%",
5839
- bgcolor: "#fff",
5843
+ bgcolor: "background.default",
5840
5844
  ...((_a2 = window.chatInWallet) == null ? void 0 : _a2.safeAreaInsetTop) && {
5841
5845
  pt: `${window.chatInWallet.safeAreaInsetTop}px`
5842
5846
  }
@@ -5850,7 +5854,7 @@ function ChatListInWallet({ sx, ...rest }) {
5850
5854
  display: "flex",
5851
5855
  flexDirection: "column",
5852
5856
  width: { sm: 320, xs: "100%" },
5853
- borderRight: { sm: "1px solid #e5e5e5" }
5857
+ borderRight: { sm: (theme) => `1px solid ${theme.palette.divider}` }
5854
5858
  },
5855
5859
  children: [
5856
5860
  /* @__PURE__ */ jsxs(Box$1, { sx: { flex: "0 0 auto", py: 1, px: 2 }, children: [
@@ -6246,7 +6250,7 @@ function Pagination({
6246
6250
  onChange == null ? void 0 : onChange(page2);
6247
6251
  }
6248
6252
  };
6249
- if (pageCount <= 1) {
6253
+ if (pageCount <= 1 || !total) {
6250
6254
  return null;
6251
6255
  }
6252
6256
  return /* @__PURE__ */ jsx(
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from "@blocklet/labels";
2
- import { W, o, Y, 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, v, aE, aF, R, S, ab, as, aD, q, a4, a6, ak, an, am, aA, at, Q, ao, au, ax, ay, l, az, h, p, r, k, aw, t, j, ac, aB, X, c, a2, E, a9, ad, e, u, ap, d, av, a5, al, f } from "./index-zMbQXq5b.mjs";
2
+ import { W, o, Y, 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, v, aE, aF, R, S, ab, as, aD, q, a4, a6, ak, an, am, aA, at, Q, ao, au, ax, ay, l, az, h, p, r, k, aw, t, j, ac, aB, X, c, a2, E, a9, ad, e, u, ap, d, av, a5, al, f } from "./index-BXgFvMF0.mjs";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
5
  import "@mui/material/Box";
package/dist/index.umd.js CHANGED
@@ -1755,6 +1755,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1755
1755
  AuthorInfo,
1756
1756
  {
1757
1757
  size: "sm",
1758
+ fontSize: 14,
1758
1759
  avatarSize: 32,
1759
1760
  user: post.author,
1760
1761
  createdAt: renderTime(),
@@ -5696,7 +5697,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5696
5697
  if (!initialized) {
5697
5698
  return /* @__PURE__ */ jsxRuntime.jsx(CircularProgress, {});
5698
5699
  }
5699
- const mergedSx = [{ display: "flex", height: "100%", bgcolor: "#fff" }, ...Array.isArray(sx) ? sx : [sx]];
5700
+ const mergedSx = [
5701
+ { display: "flex", height: "100%", bgcolor: "background.default" },
5702
+ ...Array.isArray(sx) ? sx : [sx]
5703
+ ];
5700
5704
  return /* @__PURE__ */ jsxRuntime.jsx(Box, { ...rest, sx: mergedSx, children: show.right && /* @__PURE__ */ jsxRuntime.jsxs(Box, { sx: { flex: 1, overflow: "hidden" }, children: [
5701
5705
  /* @__PURE__ */ jsxRuntime.jsx(ChatRoom, { chat: activeChat, inWallet: true }),
5702
5706
  !activeChatId && /* @__PURE__ */ jsxRuntime.jsx(Empty$1, { sx: { height: 1 } })
@@ -5758,7 +5762,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5758
5762
  {
5759
5763
  display: "flex",
5760
5764
  height: "100%",
5761
- bgcolor: "#fff",
5765
+ bgcolor: "background.default",
5762
5766
  ...((_a2 = window.chatInWallet) == null ? void 0 : _a2.safeAreaInsetTop) && {
5763
5767
  pt: `${window.chatInWallet.safeAreaInsetTop}px`
5764
5768
  }
@@ -5772,7 +5776,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5772
5776
  display: "flex",
5773
5777
  flexDirection: "column",
5774
5778
  width: { sm: 320, xs: "100%" },
5775
- borderRight: { sm: "1px solid #e5e5e5" }
5779
+ borderRight: { sm: (theme) => `1px solid ${theme.palette.divider}` }
5776
5780
  },
5777
5781
  children: [
5778
5782
  /* @__PURE__ */ jsxRuntime.jsxs(Box, { sx: { flex: "0 0 auto", py: 1, px: 2 }, children: [
@@ -6168,7 +6172,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6168
6172
  onChange == null ? void 0 : onChange(page2);
6169
6173
  }
6170
6174
  };
6171
- if (pageCount <= 1) {
6175
+ if (pageCount <= 1 || !total) {
6172
6176
  return null;
6173
6177
  }
6174
6178
  return /* @__PURE__ */ jsxRuntime.jsx(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/discuss-kit-ux",
3
- "version": "2.3.40",
3
+ "version": "2.3.42",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -18,8 +18,8 @@
18
18
  "access": "public"
19
19
  },
20
20
  "dependencies": {
21
- "@arcblock/bridge": "^2.13.41",
22
- "@arcblock/react-hooks": "^2.13.41",
21
+ "@arcblock/bridge": "^2.13.45",
22
+ "@arcblock/react-hooks": "^2.13.45",
23
23
  "@arcblock/ws": "^1.20.11",
24
24
  "@blocklet/uploader": "^0.1.92",
25
25
  "@emotion/css": "^11.13.0",
@@ -45,8 +45,8 @@
45
45
  "ufo": "^1.5.4",
46
46
  "unstated-next": "^1.1.0",
47
47
  "url-join": "^4.0.1",
48
- "@blocklet/editor": "^2.3.40",
49
- "@blocklet/labels": "^2.3.40"
48
+ "@blocklet/editor": "^2.3.42",
49
+ "@blocklet/labels": "^2.3.42"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "@arcblock/did-connect": "^2.10.36",