@blocklet/discuss-kit-ux 2.0.131 → 2.0.132
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-KWNBj3KO.mjs";
|
|
8
8
|
const BlockletEditor = lazy(() => import("@blocklet/editor"));
|
|
9
9
|
const Root = styled(Box)`
|
|
10
10
|
.be-editable,
|
|
@@ -1328,25 +1328,29 @@ function AuthorInfo({
|
|
|
1328
1328
|
};
|
|
1329
1329
|
const canClick = linkToProfile && (user == null ? void 0 : user.did) && (user == null ? void 0 : user.did) !== window.blocklet.appId;
|
|
1330
1330
|
const click = (e) => {
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1331
|
+
const defaultAction = () => {
|
|
1332
|
+
var _a2, _b2;
|
|
1333
|
+
if (!canClick) return;
|
|
1334
|
+
(_a2 = e == null ? void 0 : e.stopPropagation) == null ? void 0 : _a2.call(e);
|
|
1335
|
+
(_b2 = e == null ? void 0 : e.preventDefault) == null ? void 0 : _b2.call(e);
|
|
1336
|
+
setOpen(false);
|
|
1337
|
+
if (chatInWallet) {
|
|
1338
|
+
openProfile(user == null ? void 0 : user.did, true);
|
|
1339
|
+
} else {
|
|
1340
|
+
setTimeout(() => {
|
|
1341
|
+
if (isInDiscussKitApp) {
|
|
1342
|
+
navigate(`/profile?did=${user == null ? void 0 : user.did}`);
|
|
1343
|
+
} else {
|
|
1344
|
+
openProfile(user == null ? void 0 : user.did);
|
|
1345
|
+
}
|
|
1346
|
+
}, 100);
|
|
1347
|
+
}
|
|
1348
|
+
};
|
|
1349
|
+
if (onAvatarClick) {
|
|
1350
|
+
onAvatarClick(defaultAction);
|
|
1334
1351
|
return;
|
|
1335
1352
|
}
|
|
1336
|
-
(
|
|
1337
|
-
(_b2 = e == null ? void 0 : e.preventDefault) == null ? void 0 : _b2.call(e);
|
|
1338
|
-
setOpen(false);
|
|
1339
|
-
if (chatInWallet) {
|
|
1340
|
-
openProfile(user == null ? void 0 : user.did, true);
|
|
1341
|
-
} else {
|
|
1342
|
-
setTimeout(() => {
|
|
1343
|
-
if (isInDiscussKitApp) {
|
|
1344
|
-
navigate(`/profile?did=${user == null ? void 0 : user.did}`);
|
|
1345
|
-
} else {
|
|
1346
|
-
openProfile(user == null ? void 0 : user.did);
|
|
1347
|
-
}
|
|
1348
|
-
}, 100);
|
|
1349
|
-
}
|
|
1353
|
+
defaultAction();
|
|
1350
1354
|
};
|
|
1351
1355
|
const renderAvatar = () => {
|
|
1352
1356
|
if (showProfileCard && !mobile.any) {
|
|
@@ -4800,7 +4804,7 @@ function Back({ url, fallbackUrl, iconOnly, sx, ...rest }) {
|
|
|
4800
4804
|
}
|
|
4801
4805
|
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" }) });
|
|
4802
4806
|
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" }) });
|
|
4803
|
-
const Editor = lazy(() => import("./editor-
|
|
4807
|
+
const Editor = lazy(() => import("./editor-ttkAu-rh.mjs"));
|
|
4804
4808
|
function LazyEditor(props) {
|
|
4805
4809
|
const fallback2 = /* @__PURE__ */ jsxs(Box, { sx: { px: 3 }, children: [
|
|
4806
4810
|
/* @__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-KWNBj3KO.mjs";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import "@mui/material/Box";
|
package/dist/index.umd.js
CHANGED
|
@@ -1253,25 +1253,29 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
1253
1253
|
};
|
|
1254
1254
|
const canClick = linkToProfile && (user == null ? void 0 : user.did) && (user == null ? void 0 : user.did) !== window.blocklet.appId;
|
|
1255
1255
|
const click = (e) => {
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1256
|
+
const defaultAction = () => {
|
|
1257
|
+
var _a2, _b2;
|
|
1258
|
+
if (!canClick) return;
|
|
1259
|
+
(_a2 = e == null ? void 0 : e.stopPropagation) == null ? void 0 : _a2.call(e);
|
|
1260
|
+
(_b2 = e == null ? void 0 : e.preventDefault) == null ? void 0 : _b2.call(e);
|
|
1261
|
+
setOpen(false);
|
|
1262
|
+
if (chatInWallet) {
|
|
1263
|
+
openProfile(user == null ? void 0 : user.did, true);
|
|
1264
|
+
} else {
|
|
1265
|
+
setTimeout(() => {
|
|
1266
|
+
if (isInDiscussKitApp) {
|
|
1267
|
+
navigate(`/profile?did=${user == null ? void 0 : user.did}`);
|
|
1268
|
+
} else {
|
|
1269
|
+
openProfile(user == null ? void 0 : user.did);
|
|
1270
|
+
}
|
|
1271
|
+
}, 100);
|
|
1272
|
+
}
|
|
1273
|
+
};
|
|
1274
|
+
if (onAvatarClick) {
|
|
1275
|
+
onAvatarClick(defaultAction);
|
|
1259
1276
|
return;
|
|
1260
1277
|
}
|
|
1261
|
-
(
|
|
1262
|
-
(_b2 = e == null ? void 0 : e.preventDefault) == null ? void 0 : _b2.call(e);
|
|
1263
|
-
setOpen(false);
|
|
1264
|
-
if (chatInWallet) {
|
|
1265
|
-
openProfile(user == null ? void 0 : user.did, true);
|
|
1266
|
-
} else {
|
|
1267
|
-
setTimeout(() => {
|
|
1268
|
-
if (isInDiscussKitApp) {
|
|
1269
|
-
navigate(`/profile?did=${user == null ? void 0 : user.did}`);
|
|
1270
|
-
} else {
|
|
1271
|
-
openProfile(user == null ? void 0 : user.did);
|
|
1272
|
-
}
|
|
1273
|
-
}, 100);
|
|
1274
|
-
}
|
|
1278
|
+
defaultAction();
|
|
1275
1279
|
};
|
|
1276
1280
|
const renderAvatar = () => {
|
|
1277
1281
|
if (showProfileCard && !mobile.any) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/discuss-kit-ux",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.132",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"@arcblock/bridge": "^2.10.20",
|
|
32
32
|
"@arcblock/react-hooks": "^2.10.20",
|
|
33
33
|
"@arcblock/ws": "^1.18.128",
|
|
34
|
-
"@blocklet/editor": "2.0.
|
|
35
|
-
"@blocklet/labels": "2.0.
|
|
34
|
+
"@blocklet/editor": "2.0.132",
|
|
35
|
+
"@blocklet/labels": "2.0.132",
|
|
36
36
|
"@blocklet/uploader": "^0.1.21",
|
|
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": "
|
|
103
|
+
"gitHead": "71a1b39f9aa329268770182b848c6b7d216facf7"
|
|
104
104
|
}
|