@blocklet/discuss-kit-ux 2.0.67 → 2.0.68
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-BIRWpTAH.mjs";
|
|
8
8
|
const BlockletEditor = lazy(() => import("@blocklet/editor"));
|
|
9
9
|
const Root = styled(Box)`
|
|
10
10
|
.be-editable,
|
|
@@ -3977,7 +3977,7 @@ function ChatProvider({ client: client2, activeChatId, children, isInWallet }) {
|
|
|
3977
3977
|
message: {
|
|
3978
3978
|
title: `${t("chat.newMsg")} ${isChannel ? chat.name : sender.fullName}`,
|
|
3979
3979
|
body: getExcerptFromLexicalContent(content),
|
|
3980
|
-
onclick: getOpener(joinURL("/chat", chatId))
|
|
3980
|
+
onclick: getOpener(joinURL(discussKitMountPoint ?? "", "/chat", chatId))
|
|
3981
3981
|
},
|
|
3982
3982
|
comment: { title: getTitle("commentedYourPost"), body: comment == null ? void 0 : comment.excerpt, onclick: onclick2 },
|
|
3983
3983
|
reply: { title: getTitle("replyYourComment"), body: reply == null ? void 0 : reply.excerpt, onclick: onclick2 },
|
|
@@ -4802,7 +4802,7 @@ function Back({ url, fallbackUrl, iconOnly, sx, ...rest }) {
|
|
|
4802
4802
|
}
|
|
4803
4803
|
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" }) });
|
|
4804
4804
|
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" }) });
|
|
4805
|
-
const Editor = lazy(() => import("./editor-
|
|
4805
|
+
const Editor = lazy(() => import("./editor-CRBQlnLe.mjs"));
|
|
4806
4806
|
function LazyEditor(props) {
|
|
4807
4807
|
const fallback2 = /* @__PURE__ */ jsxs(Box, { sx: { px: 3 }, children: [
|
|
4808
4808
|
/* @__PURE__ */ jsx(Skeleton, {}),
|
|
@@ -4955,10 +4955,10 @@ function ChatInput({ initialContent, send, onContentChange, onFocusChange }) {
|
|
|
4955
4955
|
setToolbarVisible((x) => !x);
|
|
4956
4956
|
};
|
|
4957
4957
|
const compactView = mobile.any && !focused;
|
|
4958
|
-
const handleSend =
|
|
4958
|
+
const handleSend = () => {
|
|
4959
4959
|
if (!content)
|
|
4960
4960
|
return;
|
|
4961
|
-
|
|
4961
|
+
send(content);
|
|
4962
4962
|
setContent("");
|
|
4963
4963
|
setLastSent(Date.now());
|
|
4964
4964
|
};
|
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, ap, w, v, R, S, aa, ar, q, a3, a5, aj, am, al, an, as, O, at, l, h, p, r, k, t, j, ab, 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, ap, w, v, R, S, aa, ar, q, a3, a5, aj, am, al, an, as, O, at, l, h, p, r, k, t, j, ab, W, c, a1, E, a8, ac, e, u, ao, d, au, a4, ak, f } from "./index-BIRWpTAH.mjs";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import "@mui/material/Box";
|
package/dist/index.umd.js
CHANGED
|
@@ -3903,7 +3903,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3903
3903
|
message: {
|
|
3904
3904
|
title: `${t("chat.newMsg")} ${isChannel ? chat.name : sender.fullName}`,
|
|
3905
3905
|
body: getExcerptFromLexicalContent(content),
|
|
3906
|
-
onclick: getOpener(ufo.joinURL("/chat", chatId))
|
|
3906
|
+
onclick: getOpener(ufo.joinURL(discussKitMountPoint ?? "", "/chat", chatId))
|
|
3907
3907
|
},
|
|
3908
3908
|
comment: { title: getTitle("commentedYourPost"), body: comment == null ? void 0 : comment.excerpt, onclick: onclick2 },
|
|
3909
3909
|
reply: { title: getTitle("replyYourComment"), body: reply == null ? void 0 : reply.excerpt, onclick: onclick2 },
|
|
@@ -4881,10 +4881,10 @@ var __publicField = (obj, key, value) => {
|
|
|
4881
4881
|
setToolbarVisible((x) => !x);
|
|
4882
4882
|
};
|
|
4883
4883
|
const compactView = mobile.any && !focused;
|
|
4884
|
-
const handleSend =
|
|
4884
|
+
const handleSend = () => {
|
|
4885
4885
|
if (!content)
|
|
4886
4886
|
return;
|
|
4887
|
-
|
|
4887
|
+
send(content);
|
|
4888
4888
|
setContent("");
|
|
4889
4889
|
setLastSent(Date.now());
|
|
4890
4890
|
};
|
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.68",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"@arcblock/bridge": "^2.10.5",
|
|
32
32
|
"@arcblock/react-hooks": "^2.10.5",
|
|
33
33
|
"@arcblock/ws": "^1.18.126",
|
|
34
|
-
"@blocklet/editor": "2.0.
|
|
35
|
-
"@blocklet/labels": "2.0.
|
|
34
|
+
"@blocklet/editor": "2.0.68",
|
|
35
|
+
"@blocklet/labels": "2.0.68",
|
|
36
36
|
"@blocklet/uploader": "^0.1.19",
|
|
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": "63b92e0792ca8647624979646b4b8e54fc25706e"
|
|
104
104
|
}
|