@blocklet/discuss-kit-ux 2.0.162 → 2.0.164
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.
|
@@ -13,7 +13,7 @@ export interface PostProps {
|
|
|
13
13
|
autoCollapse?: boolean;
|
|
14
14
|
showProfileCard?: boolean;
|
|
15
15
|
className?: string;
|
|
16
|
-
|
|
16
|
+
resolveAuthorInfoAppend?: (post: Post) => React.ReactNode;
|
|
17
17
|
}
|
|
18
18
|
interface PostContext {
|
|
19
19
|
isAdmin: boolean;
|
|
@@ -21,5 +21,5 @@ interface PostContext {
|
|
|
21
21
|
interactive: boolean;
|
|
22
22
|
post: Post;
|
|
23
23
|
}
|
|
24
|
-
export default function PostComponent({ post, render, renderExtraContent, customMenu, interactive, onContentUpdate, allowCopyLink, autoCollapse, showProfileCard,
|
|
24
|
+
export default function PostComponent({ post, render, renderExtraContent, customMenu, interactive, onContentUpdate, allowCopyLink, autoCollapse, showProfileCard, resolveAuthorInfoAppend, ...rest }: PostProps): import("react/jsx-runtime").JSX.Element;
|
|
25
25
|
export {};
|
|
@@ -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-BjrIjCcP.mjs";
|
|
8
8
|
const BlockletEditor = lazy(() => import("@blocklet/editor"));
|
|
9
9
|
const Root = styled(Box)`
|
|
10
10
|
.be-editable,
|
|
@@ -1705,7 +1705,7 @@ function PostComponent({
|
|
|
1705
1705
|
allowCopyLink = false,
|
|
1706
1706
|
autoCollapse,
|
|
1707
1707
|
showProfileCard,
|
|
1708
|
-
|
|
1708
|
+
resolveAuthorInfoAppend = () => void 0,
|
|
1709
1709
|
...rest
|
|
1710
1710
|
}) {
|
|
1711
1711
|
var _a2;
|
|
@@ -1767,7 +1767,7 @@ function PostComponent({
|
|
|
1767
1767
|
user: post.author,
|
|
1768
1768
|
createdAt: renderTime(),
|
|
1769
1769
|
showProfileCard,
|
|
1770
|
-
append:
|
|
1770
|
+
append: resolveAuthorInfoAppend(post)
|
|
1771
1771
|
}
|
|
1772
1772
|
),
|
|
1773
1773
|
/* @__PURE__ */ jsx(Menu, { items: menuItems, style: { position: "absolute", right: 0, top: 0 } })
|
|
@@ -2467,7 +2467,7 @@ function Comment({
|
|
|
2467
2467
|
allowCopyLink: rest.allowCopyLink,
|
|
2468
2468
|
showProfileCard: rest.showProfileCard,
|
|
2469
2469
|
interactive: rest.interactive,
|
|
2470
|
-
|
|
2470
|
+
resolveAuthorInfoAppend: rest.resolveAuthorInfoAppend,
|
|
2471
2471
|
renderDonation,
|
|
2472
2472
|
renderActions
|
|
2473
2473
|
},
|
|
@@ -4715,7 +4715,7 @@ function Back({ url, fallbackUrl, iconOnly, sx, ...rest }) {
|
|
|
4715
4715
|
}
|
|
4716
4716
|
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" }) });
|
|
4717
4717
|
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" }) });
|
|
4718
|
-
const Editor = lazy(() => import("./editor-
|
|
4718
|
+
const Editor = lazy(() => import("./editor-WBSInDaE.mjs"));
|
|
4719
4719
|
function LazyEditor(props) {
|
|
4720
4720
|
const fallback2 = /* @__PURE__ */ jsxs(Box, { sx: { px: 3 }, children: [
|
|
4721
4721
|
/* @__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-BjrIjCcP.mjs";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import "@mui/material/Box";
|
package/dist/index.umd.js
CHANGED
|
@@ -1630,7 +1630,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
1630
1630
|
allowCopyLink = false,
|
|
1631
1631
|
autoCollapse,
|
|
1632
1632
|
showProfileCard,
|
|
1633
|
-
|
|
1633
|
+
resolveAuthorInfoAppend = () => void 0,
|
|
1634
1634
|
...rest
|
|
1635
1635
|
}) {
|
|
1636
1636
|
var _a2;
|
|
@@ -1692,7 +1692,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
1692
1692
|
user: post.author,
|
|
1693
1693
|
createdAt: renderTime(),
|
|
1694
1694
|
showProfileCard,
|
|
1695
|
-
append:
|
|
1695
|
+
append: resolveAuthorInfoAppend(post)
|
|
1696
1696
|
}
|
|
1697
1697
|
),
|
|
1698
1698
|
/* @__PURE__ */ jsxRuntime.jsx(Menu, { items: menuItems, style: { position: "absolute", right: 0, top: 0 } })
|
|
@@ -2392,7 +2392,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
2392
2392
|
allowCopyLink: rest.allowCopyLink,
|
|
2393
2393
|
showProfileCard: rest.showProfileCard,
|
|
2394
2394
|
interactive: rest.interactive,
|
|
2395
|
-
|
|
2395
|
+
resolveAuthorInfoAppend: rest.resolveAuthorInfoAppend,
|
|
2396
2396
|
renderDonation,
|
|
2397
2397
|
renderActions
|
|
2398
2398
|
},
|
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.164",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"@arcblock/bridge": "^2.10.28",
|
|
32
32
|
"@arcblock/react-hooks": "^2.10.28",
|
|
33
33
|
"@arcblock/ws": "^1.18.135",
|
|
34
|
-
"@blocklet/editor": "2.0.
|
|
35
|
-
"@blocklet/labels": "2.0.
|
|
34
|
+
"@blocklet/editor": "2.0.164",
|
|
35
|
+
"@blocklet/labels": "2.0.164",
|
|
36
36
|
"@blocklet/uploader": "^0.1.28",
|
|
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": "9e5b0ea1302d94182662b955416acba2d9d86a1f"
|
|
104
104
|
}
|