@blocklet/discuss-kit-ux 2.3.39 → 2.3.41
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-DfBa8obt.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(),
|
|
@@ -4392,6 +4393,8 @@ function Message({ message, prevMessage, showTime = true, ...rest }) {
|
|
|
4392
4393
|
const { session, isAdmin } = useSessionContext();
|
|
4393
4394
|
const { confirm } = useConfirm();
|
|
4394
4395
|
const { activeChatId, deleteMessage, isInWallet, renderMessage } = useChatContext();
|
|
4396
|
+
const { isInArcSphere: isInArcSphere2 } = useChatInWallet();
|
|
4397
|
+
const theme = useTheme$1();
|
|
4395
4398
|
const handleDeleteMessage = async () => {
|
|
4396
4399
|
var _a3;
|
|
4397
4400
|
if (activeChatId) {
|
|
@@ -4470,6 +4473,7 @@ function Message({ message, prevMessage, showTime = true, ...rest }) {
|
|
|
4470
4473
|
right: 12,
|
|
4471
4474
|
top: 0,
|
|
4472
4475
|
bottom: 0,
|
|
4476
|
+
zIndex: theme.zIndex.modal,
|
|
4473
4477
|
alignItems: "center",
|
|
4474
4478
|
display: "none"
|
|
4475
4479
|
}
|
|
@@ -4483,7 +4487,7 @@ function Message({ message, prevMessage, showTime = true, ...rest }) {
|
|
|
4483
4487
|
showDID: false,
|
|
4484
4488
|
user: message.sender,
|
|
4485
4489
|
createdAt: showTime ? message.createdAt : void 0,
|
|
4486
|
-
linkToProfile: !isInWallet,
|
|
4490
|
+
linkToProfile: !isInWallet || isInArcSphere2,
|
|
4487
4491
|
size: "sm",
|
|
4488
4492
|
style: {
|
|
4489
4493
|
alignItems: "flex-start"
|
|
@@ -4950,7 +4954,7 @@ function Back({ url, fallbackUrl, iconOnly, sx, icon, ...rest }) {
|
|
|
4950
4954
|
}
|
|
4951
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" }) });
|
|
4952
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" }) });
|
|
4953
|
-
const Editor = lazyRetry(() => import("./editor-
|
|
4957
|
+
const Editor = lazyRetry(() => import("./editor-DhJy2H1e.mjs"));
|
|
4954
4958
|
function LazyEditor(props) {
|
|
4955
4959
|
const fallback2 = /* @__PURE__ */ jsxs(Box, { sx: { px: 3 }, children: [
|
|
4956
4960
|
/* @__PURE__ */ jsx(Skeleton, {}),
|
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-
|
|
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-DfBa8obt.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(),
|
|
@@ -4314,6 +4315,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
4314
4315
|
const { session, isAdmin } = useSessionContext();
|
|
4315
4316
|
const { confirm } = useConfirm();
|
|
4316
4317
|
const { activeChatId, deleteMessage, isInWallet, renderMessage } = useChatContext();
|
|
4318
|
+
const { isInArcSphere: isInArcSphere2 } = useChatInWallet();
|
|
4319
|
+
const theme = material.useTheme();
|
|
4317
4320
|
const handleDeleteMessage = async () => {
|
|
4318
4321
|
var _a3;
|
|
4319
4322
|
if (activeChatId) {
|
|
@@ -4392,6 +4395,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
4392
4395
|
right: 12,
|
|
4393
4396
|
top: 0,
|
|
4394
4397
|
bottom: 0,
|
|
4398
|
+
zIndex: theme.zIndex.modal,
|
|
4395
4399
|
alignItems: "center",
|
|
4396
4400
|
display: "none"
|
|
4397
4401
|
}
|
|
@@ -4405,7 +4409,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
4405
4409
|
showDID: false,
|
|
4406
4410
|
user: message.sender,
|
|
4407
4411
|
createdAt: showTime ? message.createdAt : void 0,
|
|
4408
|
-
linkToProfile: !isInWallet,
|
|
4412
|
+
linkToProfile: !isInWallet || isInArcSphere2,
|
|
4409
4413
|
size: "sm",
|
|
4410
4414
|
style: {
|
|
4411
4415
|
alignItems: "flex-start"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/discuss-kit-ux",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.41",
|
|
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.
|
|
22
|
-
"@arcblock/react-hooks": "^2.13.
|
|
21
|
+
"@arcblock/bridge": "^2.13.43",
|
|
22
|
+
"@arcblock/react-hooks": "^2.13.43",
|
|
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.
|
|
49
|
-
"@blocklet/labels": "^2.3.
|
|
48
|
+
"@blocklet/editor": "^2.3.41",
|
|
49
|
+
"@blocklet/labels": "^2.3.41"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@arcblock/did-connect": "^2.10.36",
|