@blocklet/discuss-kit-ux 1.6.258 → 1.6.260
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-
|
|
7
|
+
import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, s as stringify, g as getExcerptSync } from "./index-KLdzJyDb.mjs";
|
|
8
8
|
const BlockletEditor = lazy(() => import("@blocklet/editor"));
|
|
9
9
|
const Root = styled(Box)`
|
|
10
10
|
.be-editable,
|
|
@@ -666,6 +666,10 @@ const StyledInput = styled(Input)`
|
|
|
666
666
|
.be-shell {
|
|
667
667
|
padding-bottom: 44px;
|
|
668
668
|
}
|
|
669
|
+
// 评论输入框空间较小, 底部多预留一些空间, 当选中图片时, 避免图片下方的工具栏被遮挡
|
|
670
|
+
.be-editable {
|
|
671
|
+
padding-bottom: 64px !important;
|
|
672
|
+
}
|
|
669
673
|
> .MuiAlert-root {
|
|
670
674
|
position: absolute;
|
|
671
675
|
left: 0;
|
|
@@ -3940,7 +3944,7 @@ const useChatInWallet = () => {
|
|
|
3940
3944
|
navigate("/chat-in-wallet");
|
|
3941
3945
|
};
|
|
3942
3946
|
const updateUnreadState = useCallback((unread) => {
|
|
3943
|
-
bridge.call("updateUnreadState", { unread, appId: window.blocklet.
|
|
3947
|
+
bridge.call("updateUnreadState", { unread, appId: window.blocklet.appPid, timestamp: /* @__PURE__ */ new Date() });
|
|
3944
3948
|
}, []);
|
|
3945
3949
|
return { navigateToChat, navigateToChatList, isChatInWalletV2, updateUnreadState };
|
|
3946
3950
|
};
|
|
@@ -5603,7 +5607,7 @@ function Pagination({
|
|
|
5603
5607
|
}
|
|
5604
5608
|
);
|
|
5605
5609
|
}
|
|
5606
|
-
const Editor = lazy(() => import("./editor-
|
|
5610
|
+
const Editor = lazy(() => import("./editor-D3RAcw2N.mjs"));
|
|
5607
5611
|
function LazyEditor(props) {
|
|
5608
5612
|
const fallback2 = /* @__PURE__ */ jsxs(Box, { sx: { px: 3 }, children: [
|
|
5609
5613
|
/* @__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, 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-
|
|
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-KLdzJyDb.mjs";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import "@mui/material/Box";
|
package/dist/index.umd.js
CHANGED
|
@@ -595,6 +595,10 @@ var __publicField = (obj, key, value) => {
|
|
|
595
595
|
.be-shell {
|
|
596
596
|
padding-bottom: 44px;
|
|
597
597
|
}
|
|
598
|
+
// 评论输入框空间较小, 底部多预留一些空间, 当选中图片时, 避免图片下方的工具栏被遮挡
|
|
599
|
+
.be-editable {
|
|
600
|
+
padding-bottom: 64px !important;
|
|
601
|
+
}
|
|
598
602
|
> .MuiAlert-root {
|
|
599
603
|
position: absolute;
|
|
600
604
|
left: 0;
|
|
@@ -3869,7 +3873,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3869
3873
|
navigate("/chat-in-wallet");
|
|
3870
3874
|
};
|
|
3871
3875
|
const updateUnreadState = react.useCallback((unread) => {
|
|
3872
|
-
bridge.call("updateUnreadState", { unread, appId: window.blocklet.
|
|
3876
|
+
bridge.call("updateUnreadState", { unread, appId: window.blocklet.appPid, timestamp: /* @__PURE__ */ new Date() });
|
|
3873
3877
|
}, []);
|
|
3874
3878
|
return { navigateToChat, navigateToChatList, isChatInWalletV2, updateUnreadState };
|
|
3875
3879
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/discuss-kit-ux",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.260",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"@arcblock/bridge": "^2.9.77",
|
|
32
32
|
"@arcblock/react-hooks": "^2.9.80",
|
|
33
33
|
"@arcblock/ws": "^1.18.116",
|
|
34
|
-
"@blocklet/editor": "1.6.
|
|
35
|
-
"@blocklet/labels": "1.6.
|
|
34
|
+
"@blocklet/editor": "1.6.260",
|
|
35
|
+
"@blocklet/labels": "1.6.260",
|
|
36
36
|
"@blocklet/uploader": "^0.1.2",
|
|
37
37
|
"@emotion/css": "^11.10.5",
|
|
38
38
|
"@emotion/react": "^11.10.5",
|
|
@@ -99,5 +99,5 @@
|
|
|
99
99
|
"resolutions": {
|
|
100
100
|
"react": "^18.2.0"
|
|
101
101
|
},
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "71a881e14c0e3b8268a7c269ae96a62150ca8350"
|
|
103
103
|
}
|