@blocklet/discuss-kit-ux 2.0.95 → 2.0.96

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 { lazy } from "react";
7
- import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, s as stringify, g as getExcerptSync } from "./index-CbxeLaB1.mjs";
7
+ import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, s as stringify, g as getExcerptSync } from "./index-Caco31R0.mjs";
8
8
  const BlockletEditor = lazy(() => import("@blocklet/editor"));
9
9
  const Root = styled(Box)`
10
10
  .be-editable,
@@ -4027,7 +4027,7 @@ function ChannelGroup({ size = "normal", chat, children, ...rest }) {
4027
4027
  }
4028
4028
  ),
4029
4029
  /* @__PURE__ */ jsxs(Box$1, { sx: { display: "flex", flexDirection: "column", height: "100%", justifyContent: "space-between" }, children: [
4030
- /* @__PURE__ */ jsx(Box$1, { sx: { display: "flex", alignItems: "center" }, lineHeight: 1.5, children: /* @__PURE__ */ jsx(Box$1, { component: "span", sx: { fontWeight: "bold" }, children: chat == null ? void 0 : chat.name }) }),
4030
+ /* @__PURE__ */ jsx(Box$1, { sx: { display: "flex", alignItems: "center" }, lineHeight: 1.5, children: /* @__PURE__ */ jsx(Box$1, { component: "span", sx: { fontWeight: "bold", wordBreak: "break-word" }, children: chat == null ? void 0 : chat.name }) }),
4031
4031
  children && /* @__PURE__ */ jsx(Box$1, { children })
4032
4032
  ] })
4033
4033
  ] });
@@ -4760,7 +4760,7 @@ function Back({ url, fallbackUrl, iconOnly, sx, ...rest }) {
4760
4760
  }
4761
4761
  const tablerSend = (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", "data-iconify": "tabler", 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" }) });
4762
4762
  const tablerLetterCase = (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", "data-iconify": "tabler", 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" }) });
4763
- const Editor = lazy(() => import("./editor-Dlj6ZsEf.mjs"));
4763
+ const Editor = lazy(() => import("./editor-ksxz55jz.mjs"));
4764
4764
  function LazyEditor(props) {
4765
4765
  const fallback2 = /* @__PURE__ */ jsxs(Box, { sx: { px: 3 }, children: [
4766
4766
  /* @__PURE__ */ jsx(Skeleton, {}),
@@ -5064,7 +5064,8 @@ function getLineClamp(count) {
5064
5064
  WebkitLineClamp: count,
5065
5065
  WebkitBoxOrient: "vertical",
5066
5066
  overflow: "hidden",
5067
- lineHeight: 1.5
5067
+ lineHeight: 1.5,
5068
+ wordBreak: "break-word"
5068
5069
  };
5069
5070
  }
5070
5071
  function RoomTitle({ title }) {
@@ -5127,11 +5128,11 @@ function ChatRoom({ chat, inWallet, ...rest }) {
5127
5128
  );
5128
5129
  }
5129
5130
  return /* @__PURE__ */ jsxs(Box$1, { sx: { display: "flex", justifyContent: "space-between", alignItems: "center", width: 1, flex: 1 }, children: [
5130
- /* @__PURE__ */ jsxs(Box$1, { children: [
5131
+ /* @__PURE__ */ jsxs(Box$1, { sx: { minWidth: 0 }, children: [
5131
5132
  /* @__PURE__ */ jsx(Box$1, { component: "span", sx: { fontSize: 14, fontWeight: "bold", color: "grey.700", ...getLineClamp(1) }, children: chat.name }),
5132
5133
  /* @__PURE__ */ jsx(Box$1, { sx: { fontSize: 12, color: "grey.500", ...getLineClamp(1) }, children: chat.description })
5133
5134
  ] }),
5134
- /* @__PURE__ */ jsxs(Box$1, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
5135
+ /* @__PURE__ */ jsxs(Box$1, { sx: { display: "flex", flexShrink: 0, alignItems: "center", gap: 1 }, children: [
5135
5136
  !chat.hasJoined && /* @__PURE__ */ jsx(
5136
5137
  Button,
5137
5138
  {
@@ -5226,7 +5227,6 @@ function ChatRoom({ chat, inWallet, ...rest }) {
5226
5227
  color: "#fff"
5227
5228
  },
5228
5229
  children: [
5229
- /* @__PURE__ */ jsx(Box$1, { sx: { mb: 0.5, fontSize: 18 }, children: "🚪" }),
5230
5230
  /* @__PURE__ */ jsx(Box$1, { sx: { color: "primary.main", mb: 0.5, fontSize: 13, fontWeight: 500 }, children: t("chat.notYetJoinedTheChannel") }),
5231
5231
  /* @__PURE__ */ jsx(Box$1, { sx: { color: "secondary.main", cursor: "pointer", fontSize: 13 }, onClick: () => joinChannel(chat.id), children: t("chat.joinChannel") })
5232
5232
  ]
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from "@blocklet/labels";
2
- import { T, n, W, A, m, ad, B, F, K, J, L, ap, Y, X, $, Z, _, a1, w, C, x, y, E, a5, a6, ah, a8, O, Q, ac, D, ag, af, H, G, b, k, ae, M, P, ao, v, q, R, S, a9, aq, o, a2, a4, ai, al, ak, am, ar, N, as, l, f, p, r, j, t, h, aa, U, c, a0, z, a7, ab, u, an, d, at, a3, aj, e } from "./index-CbxeLaB1.mjs";
2
+ import { T, n, W, A, m, ad, B, F, K, J, L, ap, Y, X, $, Z, _, a1, w, C, x, y, E, a5, a6, ah, a8, O, Q, ac, D, ag, af, H, G, b, k, ae, M, P, ao, v, q, R, S, a9, aq, o, a2, a4, ai, al, ak, am, ar, N, as, l, f, p, r, j, t, h, aa, U, c, a0, z, a7, ab, u, an, d, at, a3, aj, e } from "./index-Caco31R0.mjs";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
5
  import "@mui/material/Box";
package/dist/index.umd.js CHANGED
@@ -3953,7 +3953,7 @@ var __publicField = (obj, key, value) => {
3953
3953
  }
3954
3954
  ),
3955
3955
  /* @__PURE__ */ jsxRuntime.jsxs(Box, { sx: { display: "flex", flexDirection: "column", height: "100%", justifyContent: "space-between" }, children: [
3956
- /* @__PURE__ */ jsxRuntime.jsx(Box, { sx: { display: "flex", alignItems: "center" }, lineHeight: 1.5, children: /* @__PURE__ */ jsxRuntime.jsx(Box, { component: "span", sx: { fontWeight: "bold" }, children: chat == null ? void 0 : chat.name }) }),
3956
+ /* @__PURE__ */ jsxRuntime.jsx(Box, { sx: { display: "flex", alignItems: "center" }, lineHeight: 1.5, children: /* @__PURE__ */ jsxRuntime.jsx(Box, { component: "span", sx: { fontWeight: "bold", wordBreak: "break-word" }, children: chat == null ? void 0 : chat.name }) }),
3957
3957
  children && /* @__PURE__ */ jsxRuntime.jsx(Box, { children })
3958
3958
  ] })
3959
3959
  ] });
@@ -4990,7 +4990,8 @@ var __publicField = (obj, key, value) => {
4990
4990
  WebkitLineClamp: count,
4991
4991
  WebkitBoxOrient: "vertical",
4992
4992
  overflow: "hidden",
4993
- lineHeight: 1.5
4993
+ lineHeight: 1.5,
4994
+ wordBreak: "break-word"
4994
4995
  };
4995
4996
  }
4996
4997
  function RoomTitle({ title }) {
@@ -5053,11 +5054,11 @@ var __publicField = (obj, key, value) => {
5053
5054
  );
5054
5055
  }
5055
5056
  return /* @__PURE__ */ jsxRuntime.jsxs(Box, { sx: { display: "flex", justifyContent: "space-between", alignItems: "center", width: 1, flex: 1 }, children: [
5056
- /* @__PURE__ */ jsxRuntime.jsxs(Box, { children: [
5057
+ /* @__PURE__ */ jsxRuntime.jsxs(Box, { sx: { minWidth: 0 }, children: [
5057
5058
  /* @__PURE__ */ jsxRuntime.jsx(Box, { component: "span", sx: { fontSize: 14, fontWeight: "bold", color: "grey.700", ...getLineClamp(1) }, children: chat.name }),
5058
5059
  /* @__PURE__ */ jsxRuntime.jsx(Box, { sx: { fontSize: 12, color: "grey.500", ...getLineClamp(1) }, children: chat.description })
5059
5060
  ] }),
5060
- /* @__PURE__ */ jsxRuntime.jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
5061
+ /* @__PURE__ */ jsxRuntime.jsxs(Box, { sx: { display: "flex", flexShrink: 0, alignItems: "center", gap: 1 }, children: [
5061
5062
  !chat.hasJoined && /* @__PURE__ */ jsxRuntime.jsx(
5062
5063
  Button,
5063
5064
  {
@@ -5152,7 +5153,6 @@ var __publicField = (obj, key, value) => {
5152
5153
  color: "#fff"
5153
5154
  },
5154
5155
  children: [
5155
- /* @__PURE__ */ jsxRuntime.jsx(Box, { sx: { mb: 0.5, fontSize: 18 }, children: "🚪" }),
5156
5156
  /* @__PURE__ */ jsxRuntime.jsx(Box, { sx: { color: "primary.main", mb: 0.5, fontSize: 13, fontWeight: 500 }, children: t("chat.notYetJoinedTheChannel") }),
5157
5157
  /* @__PURE__ */ jsxRuntime.jsx(Box, { sx: { color: "secondary.main", cursor: "pointer", fontSize: 13 }, onClick: () => joinChannel(chat.id), children: t("chat.joinChannel") })
5158
5158
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/discuss-kit-ux",
3
- "version": "2.0.95",
3
+ "version": "2.0.96",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -31,8 +31,8 @@
31
31
  "@arcblock/bridge": "^2.10.12",
32
32
  "@arcblock/react-hooks": "^2.10.12",
33
33
  "@arcblock/ws": "^1.18.128",
34
- "@blocklet/editor": "2.0.95",
35
- "@blocklet/labels": "2.0.95",
34
+ "@blocklet/editor": "2.0.96",
35
+ "@blocklet/labels": "2.0.96",
36
36
  "@blocklet/uploader": "^0.1.20",
37
37
  "@emotion/css": "^11.10.5",
38
38
  "@emotion/react": "^11.10.5",
@@ -100,5 +100,5 @@
100
100
  "resolutions": {
101
101
  "react": "^18.2.0"
102
102
  },
103
- "gitHead": "1a046d557cce0678f2ac833bd314dcdd25872733"
103
+ "gitHead": "ee7ea575137f9253ee9292ad6dc3763192118791"
104
104
  }