@blocklet/discuss-kit-ux 2.0.47 → 2.0.49

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-D9B1V2OO.mjs";
7
+ import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, s as stringify, g as getExcerptSync } from "./index-CTvEVXs8.mjs";
8
8
  const BlockletEditor = lazy(() => import("@blocklet/editor"));
9
9
  const Root = styled(Box)`
10
10
  .be-editable,
@@ -31,7 +31,7 @@ function Editor({
31
31
  getExcerpt: () => getExcerptSync(editorState)
32
32
  });
33
33
  };
34
- return /* @__PURE__ */ jsx(Root, { children: /* @__PURE__ */ jsxs(BlockletEditor, { editorState: inferInitialEditorState(initialContent), ...rest, children: [
34
+ return /* @__PURE__ */ jsx(Root, { children: /* @__PURE__ */ jsxs(BlockletEditor, { editorState: rest.markdown ? initialContent : inferInitialEditorState(initialContent), ...rest, children: [
35
35
  /* @__PURE__ */ jsx(ImagePathFixerPlugin, {}),
36
36
  /* @__PURE__ */ jsx(VideoPathFixerPlugin, {}),
37
37
  /* @__PURE__ */ jsx(OnContentChangePlugin, { onChange: handleChange, ignoreInitialChange }),
@@ -2404,7 +2404,10 @@ function Comment({
2404
2404
  onLoadMoreReplies,
2405
2405
  allowCopyLink: rest.allowCopyLink,
2406
2406
  showProfileCard: rest.showProfileCard,
2407
- interactive: rest.interactive
2407
+ interactive: rest.interactive,
2408
+ authorInfoAppend: rest.authorInfoAppend,
2409
+ renderDonation,
2410
+ actions
2408
2411
  },
2409
2412
  item.id
2410
2413
  );
@@ -4730,7 +4733,7 @@ function Back({ url, fallbackUrl, iconOnly, sx, ...rest }) {
4730
4733
  }
4731
4734
  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" }) });
4732
4735
  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" }) });
4733
- const Editor = lazy(() => import("./editor-DrfLRDGf.mjs"));
4736
+ const Editor = lazy(() => import("./editor-Bfs1bQVr.mjs"));
4734
4737
  function LazyEditor(props) {
4735
4738
  const fallback2 = /* @__PURE__ */ jsxs(Box, { sx: { px: 3 }, children: [
4736
4739
  /* @__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-D9B1V2OO.mjs";
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-CTvEVXs8.mjs";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
5
  import "@mui/material/Box";
package/dist/index.umd.js CHANGED
@@ -2330,7 +2330,10 @@ var __publicField = (obj, key, value) => {
2330
2330
  onLoadMoreReplies,
2331
2331
  allowCopyLink: rest.allowCopyLink,
2332
2332
  showProfileCard: rest.showProfileCard,
2333
- interactive: rest.interactive
2333
+ interactive: rest.interactive,
2334
+ authorInfoAppend: rest.authorInfoAppend,
2335
+ renderDonation,
2336
+ actions
2334
2337
  },
2335
2338
  item.id
2336
2339
  );
@@ -12129,7 +12132,7 @@ var __publicField = (obj, key, value) => {
12129
12132
  getExcerpt: () => getExcerptSync(editorState)
12130
12133
  });
12131
12134
  };
12132
- return /* @__PURE__ */ jsxRuntime.jsx(Root, { children: /* @__PURE__ */ jsxRuntime.jsxs(BlockletEditor, { editorState: inferInitialEditorState(initialContent), ...rest, children: [
12135
+ return /* @__PURE__ */ jsxRuntime.jsx(Root, { children: /* @__PURE__ */ jsxRuntime.jsxs(BlockletEditor, { editorState: rest.markdown ? initialContent : inferInitialEditorState(initialContent), ...rest, children: [
12133
12136
  /* @__PURE__ */ jsxRuntime.jsx(ImagePathFixerPlugin, {}),
12134
12137
  /* @__PURE__ */ jsxRuntime.jsx(VideoPathFixerPlugin, {}),
12135
12138
  /* @__PURE__ */ jsxRuntime.jsx(OnContentChangePlugin.OnContentChangePlugin, { onChange: handleChange, ignoreInitialChange }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/discuss-kit-ux",
3
- "version": "2.0.47",
3
+ "version": "2.0.49",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -31,8 +31,8 @@
31
31
  "@arcblock/bridge": "^2.10.1",
32
32
  "@arcblock/react-hooks": "^2.10.1",
33
33
  "@arcblock/ws": "^1.18.123",
34
- "@blocklet/editor": "2.0.47",
35
- "@blocklet/labels": "2.0.47",
34
+ "@blocklet/editor": "2.0.49",
35
+ "@blocklet/labels": "2.0.49",
36
36
  "@blocklet/uploader": "^0.1.15",
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": "c0566b9d35215d75e2976fda68d3723a52274dae"
103
+ "gitHead": "6feeb06e61c1cefe92ad59bbd7e46d05c062dba2"
104
104
  }