@blocklet/discuss-kit-ux 2.2.24 → 2.2.26
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-
|
|
7
|
+
import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, s as stringify, g as getExcerptSync } from "./index-BQdMWyip.mjs";
|
|
8
8
|
const BlockletEditor = lazyRetry(() => import("@blocklet/editor"));
|
|
9
9
|
const Root = styled(Box)`
|
|
10
10
|
.be-editable,
|
|
@@ -1160,12 +1160,12 @@ const useChatInWallet = () => {
|
|
|
1160
1160
|
const isWebNavbar = useMemo(() => {
|
|
1161
1161
|
try {
|
|
1162
1162
|
const targetVersion = mobile.apple.device ? "5.4.6" : "5.4.4";
|
|
1163
|
-
return
|
|
1163
|
+
return !!walletVersion && cmp(walletVersion, targetVersion) === 1;
|
|
1164
1164
|
} catch (e) {
|
|
1165
1165
|
console.error(e);
|
|
1166
1166
|
return false;
|
|
1167
1167
|
}
|
|
1168
|
-
}, [walletVersion, mobile
|
|
1168
|
+
}, [walletVersion, mobile]);
|
|
1169
1169
|
const navigateToChat = ({ id: id2, title }) => {
|
|
1170
1170
|
if (isChatInWalletV2) {
|
|
1171
1171
|
navigate(`/chat-in-wallet/${id2}`);
|
|
@@ -4929,7 +4929,7 @@ function Back({ url, fallbackUrl, iconOnly, sx, icon, ...rest }) {
|
|
|
4929
4929
|
}
|
|
4930
4930
|
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" }) });
|
|
4931
4931
|
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" }) });
|
|
4932
|
-
const Editor = lazyRetry(() => import("./editor-
|
|
4932
|
+
const Editor = lazyRetry(() => import("./editor-0SygPq67.mjs"));
|
|
4933
4933
|
function LazyEditor(props) {
|
|
4934
4934
|
const fallback2 = /* @__PURE__ */ jsxs(Box, { sx: { px: 3 }, children: [
|
|
4935
4935
|
/* @__PURE__ */ jsx(Skeleton, {}),
|
|
@@ -5793,7 +5793,7 @@ function ChatListInWallet({ sx, ...rest }) {
|
|
|
5793
5793
|
const { session } = useSessionContext();
|
|
5794
5794
|
const { initialized, chats, activeChatId } = useChatContext();
|
|
5795
5795
|
const { unread } = useUnreadNotification();
|
|
5796
|
-
const { navigateToChatList, updateUnreadState, isWebNavbar
|
|
5796
|
+
const { navigateToChatList, updateUnreadState, isWebNavbar } = useChatInWallet();
|
|
5797
5797
|
useEffect(() => {
|
|
5798
5798
|
if (unread !== void 0) {
|
|
5799
5799
|
updateUnreadState(unread);
|
|
@@ -5829,10 +5829,9 @@ function ChatListInWallet({ sx, ...rest }) {
|
|
|
5829
5829
|
{
|
|
5830
5830
|
sx: {
|
|
5831
5831
|
display: "flex",
|
|
5832
|
-
justifyContent:
|
|
5832
|
+
justifyContent: "space-between",
|
|
5833
5833
|
alignItems: "center",
|
|
5834
|
-
mb: 1
|
|
5835
|
-
...isInArcSphere2 && { minHeight: 30 }
|
|
5834
|
+
mb: 1
|
|
5836
5835
|
},
|
|
5837
5836
|
children: [
|
|
5838
5837
|
/* @__PURE__ */ jsxs(
|
|
@@ -5848,7 +5847,7 @@ function ChatListInWallet({ sx, ...rest }) {
|
|
|
5848
5847
|
]
|
|
5849
5848
|
}
|
|
5850
5849
|
),
|
|
5851
|
-
|
|
5850
|
+
/* @__PURE__ */ jsx(
|
|
5852
5851
|
Avatar,
|
|
5853
5852
|
{
|
|
5854
5853
|
did: (_b2 = session == null ? void 0 : session.user) == null ? void 0 : _b2.did,
|
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "@blocklet/labels";
|
|
2
|
-
import { U, o, X, A, n, ae, B, G, L, K, N, aq, Z, Y, a0, _, $, a2, x, C, y, z, F, a6, a7, ai, a9, Q, T, ad, D, ah, ag, J, H, b, m, af, M, P, aB, ap, w, v, R, S, aa, ar, aC, q, a3, a5, aj, am, al, az, as, O, an, at, aw, ax, l, ay, h, p, r, k, av, t, j, ab, aA, W, c, a1, E, a8, ac, e, u, ao, d, au, a4, ak, f } from "./index-
|
|
2
|
+
import { U, o, X, A, n, ae, B, G, L, K, N, aq, Z, Y, a0, _, $, a2, x, C, y, z, F, a6, a7, ai, a9, Q, T, ad, D, ah, ag, J, H, b, m, af, M, P, aB, ap, w, v, R, S, aa, ar, aC, q, a3, a5, aj, am, al, az, as, O, an, at, aw, ax, l, ay, h, p, r, k, av, t, j, ab, aA, W, c, a1, E, a8, ac, e, u, ao, d, au, a4, ak, f } from "./index-BQdMWyip.mjs";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import "@mui/material/Box";
|
package/dist/index.umd.js
CHANGED
|
@@ -1084,12 +1084,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
1084
1084
|
const isWebNavbar = react.useMemo(() => {
|
|
1085
1085
|
try {
|
|
1086
1086
|
const targetVersion = mobile.apple.device ? "5.4.6" : "5.4.4";
|
|
1087
|
-
return
|
|
1087
|
+
return !!walletVersion && cmp(walletVersion, targetVersion) === 1;
|
|
1088
1088
|
} catch (e) {
|
|
1089
1089
|
console.error(e);
|
|
1090
1090
|
return false;
|
|
1091
1091
|
}
|
|
1092
|
-
}, [walletVersion, mobile
|
|
1092
|
+
}, [walletVersion, mobile]);
|
|
1093
1093
|
const navigateToChat = ({ id: id2, title }) => {
|
|
1094
1094
|
if (isChatInWalletV2) {
|
|
1095
1095
|
navigate(`/chat-in-wallet/${id2}`);
|
|
@@ -5717,7 +5717,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
5717
5717
|
const { session } = useSessionContext();
|
|
5718
5718
|
const { initialized, chats, activeChatId } = useChatContext();
|
|
5719
5719
|
const { unread } = useUnreadNotification();
|
|
5720
|
-
const { navigateToChatList, updateUnreadState, isWebNavbar
|
|
5720
|
+
const { navigateToChatList, updateUnreadState, isWebNavbar } = useChatInWallet();
|
|
5721
5721
|
react.useEffect(() => {
|
|
5722
5722
|
if (unread !== void 0) {
|
|
5723
5723
|
updateUnreadState(unread);
|
|
@@ -5753,10 +5753,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
5753
5753
|
{
|
|
5754
5754
|
sx: {
|
|
5755
5755
|
display: "flex",
|
|
5756
|
-
justifyContent:
|
|
5756
|
+
justifyContent: "space-between",
|
|
5757
5757
|
alignItems: "center",
|
|
5758
|
-
mb: 1
|
|
5759
|
-
...isInArcSphere2 && { minHeight: 30 }
|
|
5758
|
+
mb: 1
|
|
5760
5759
|
},
|
|
5761
5760
|
children: [
|
|
5762
5761
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -5772,7 +5771,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
5772
5771
|
]
|
|
5773
5772
|
}
|
|
5774
5773
|
),
|
|
5775
|
-
|
|
5774
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5776
5775
|
Avatar,
|
|
5777
5776
|
{
|
|
5778
5777
|
did: (_b2 = session == null ? void 0 : session.user) == null ? void 0 : _b2.did,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/discuss-kit-ux",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.26",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@arcblock/bridge": "^2.12.58",
|
|
22
22
|
"@arcblock/react-hooks": "^2.12.58",
|
|
23
|
-
"@arcblock/ws": "^1.19.
|
|
23
|
+
"@arcblock/ws": "^1.19.18",
|
|
24
24
|
"@blocklet/uploader": "^0.1.82",
|
|
25
25
|
"@emotion/css": "^11.13.0",
|
|
26
26
|
"@emotion/react": "^11.13.3",
|
|
@@ -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.2.
|
|
49
|
-
"@blocklet/labels": "^2.2.
|
|
48
|
+
"@blocklet/editor": "^2.2.26",
|
|
49
|
+
"@blocklet/labels": "^2.2.26"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@arcblock/did-connect": "^2.10.36",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@arcblock/eslint-config-ts": "^0.3.3",
|
|
65
65
|
"@babel/core": "^7.25.2",
|
|
66
|
-
"@blocklet/sdk": "1.16.42-beta-
|
|
66
|
+
"@blocklet/sdk": "^1.16.42-beta-20250407-225010-b71aee89",
|
|
67
67
|
"@iconify-json/iconoir": "^1.2.1",
|
|
68
68
|
"@iconify-json/material-symbols": "^1.2.1",
|
|
69
69
|
"@iconify-json/mdi": "^1.2.0",
|