@blocklet/discuss-kit-ux 2.1.15 → 2.1.17

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-CLrbAT1P.mjs";
7
+ import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, s as stringify, g as getExcerptSync } from "./index-DZIAA_e8.mjs";
8
8
  const BlockletEditor = lazy(() => import("@blocklet/editor"));
9
9
  const Root = styled(Box)`
10
10
  .be-editable,
@@ -1477,6 +1477,7 @@ function SystemUser({
1477
1477
  Box$1,
1478
1478
  {
1479
1479
  sx: {
1480
+ flex: "0 0 auto",
1480
1481
  display: "flex",
1481
1482
  justifyContent: "center",
1482
1483
  alignItems: "center",
@@ -1490,7 +1491,7 @@ function SystemUser({
1490
1491
  children: icon || /* @__PURE__ */ jsx(NotificationsActiveOutlinedIcon, { sx: { fontSize: size === "sm" ? 16 : 18 } })
1491
1492
  }
1492
1493
  ),
1493
- /* @__PURE__ */ jsxs(Box$1, { sx: { display: "flex", flexDirection: "column" }, children: [
1494
+ /* @__PURE__ */ jsxs(Box$1, { sx: { display: "flex", flexDirection: "column", overflow: "hidden" }, children: [
1494
1495
  /* @__PURE__ */ jsx(Box$1, { sx: { display: "flex", alignItems: "center" }, lineHeight: 1.5, children: /* @__PURE__ */ jsx(Box$1, { component: "span", sx: { fontWeight: "bold" }, children: name }) }),
1495
1496
  showDidAddress && /* @__PURE__ */ jsx(
1496
1497
  DID,
@@ -1498,7 +1499,8 @@ function SystemUser({
1498
1499
  style: { lineHeight: 1.5, minHeight: 20, maxWidth: 200 },
1499
1500
  size: 14,
1500
1501
  did: window.blocklet.appId,
1501
- copyable: false
1502
+ copyable: false,
1503
+ compact: true
1502
1504
  }
1503
1505
  )
1504
1506
  ] })
@@ -4715,7 +4717,7 @@ function Back({ url, fallbackUrl, iconOnly, sx, ...rest }) {
4715
4717
  }
4716
4718
  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" }) });
4717
4719
  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" }) });
4718
- const Editor = lazy(() => import("./editor-Degz44Rt.mjs"));
4720
+ const Editor = lazy(() => import("./editor-BQn2Sp-G.mjs"));
4719
4721
  function LazyEditor(props) {
4720
4722
  const fallback2 = /* @__PURE__ */ jsxs(Box, { sx: { px: 3 }, children: [
4721
4723
  /* @__PURE__ */ jsx(Skeleton, {}),
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, ar, N, am, as, l, f, p, r, j, t, h, aa, U, c, a0, z, a7, ab, u, an, d, at, a3, aj, e } from "./index-CLrbAT1P.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, ar, N, am, as, l, f, p, r, j, t, h, aa, U, c, a0, z, a7, ab, u, an, d, at, a3, aj, e } from "./index-DZIAA_e8.mjs";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
5
  import "@mui/material/Box";
package/dist/index.umd.js CHANGED
@@ -1400,6 +1400,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1400
1400
  Box,
1401
1401
  {
1402
1402
  sx: {
1403
+ flex: "0 0 auto",
1403
1404
  display: "flex",
1404
1405
  justifyContent: "center",
1405
1406
  alignItems: "center",
@@ -1413,7 +1414,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1413
1414
  children: icon || /* @__PURE__ */ jsxRuntime.jsx(NotificationsActiveOutlinedIcon, { sx: { fontSize: size === "sm" ? 16 : 18 } })
1414
1415
  }
1415
1416
  ),
1416
- /* @__PURE__ */ jsxRuntime.jsxs(Box, { sx: { display: "flex", flexDirection: "column" }, children: [
1417
+ /* @__PURE__ */ jsxRuntime.jsxs(Box, { sx: { display: "flex", flexDirection: "column", overflow: "hidden" }, children: [
1417
1418
  /* @__PURE__ */ jsxRuntime.jsx(Box, { sx: { display: "flex", alignItems: "center" }, lineHeight: 1.5, children: /* @__PURE__ */ jsxRuntime.jsx(Box, { component: "span", sx: { fontWeight: "bold" }, children: name }) }),
1418
1419
  showDidAddress && /* @__PURE__ */ jsxRuntime.jsx(
1419
1420
  DID,
@@ -1421,7 +1422,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1421
1422
  style: { lineHeight: 1.5, minHeight: 20, maxWidth: 200 },
1422
1423
  size: 14,
1423
1424
  did: window.blocklet.appId,
1424
- copyable: false
1425
+ copyable: false,
1426
+ compact: true
1425
1427
  }
1426
1428
  )
1427
1429
  ] })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/discuss-kit-ux",
3
- "version": "2.1.15",
3
+ "version": "2.1.17",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -43,8 +43,8 @@
43
43
  "ufo": "^1.5.4",
44
44
  "unstated-next": "^1.1.0",
45
45
  "url-join": "^4.0.1",
46
- "@blocklet/editor": "^2.1.15",
47
- "@blocklet/labels": "^2.1.15"
46
+ "@blocklet/editor": "^2.1.17",
47
+ "@blocklet/labels": "^2.1.17"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "@arcblock/did-connect": "^2.10.36",
@@ -59,7 +59,7 @@
59
59
  "react-router-dom": "^6.4.0"
60
60
  },
61
61
  "devDependencies": {
62
- "@arcblock/eslint-config-ts": "^0.3.2",
62
+ "@arcblock/eslint-config-ts": "^0.3.3",
63
63
  "@babel/core": "^7.25.2",
64
64
  "@iconify-json/iconoir": "^1.2.1",
65
65
  "@iconify-json/material-symbols": "^1.2.1",