@blocklet/discuss-kit-ux 1.6.125 → 1.6.127

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-7oAOy7l-.mjs";
7
+ import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, s as stringify, g as getExcerptSync } from "./index-YiHl-Bzx.mjs";
8
8
  import "@blocklet/labels";
9
9
  import "@mui/material/styles";
10
10
  import "@mui/material/Box";
@@ -1962,8 +1962,6 @@ function Comment({
1962
1962
  return items;
1963
1963
  };
1964
1964
  const render = ({ post, interactive }) => {
1965
- var _a2, _b2;
1966
- ((_a2 = post == null ? void 0 : post.author) == null ? void 0 : _a2.did) === ((_b2 = session == null ? void 0 : session.user) == null ? void 0 : _b2.did);
1967
1965
  return /* @__PURE__ */ jsxs(Fragment, { children: [
1968
1966
  /* @__PURE__ */ jsx(Box, { display: "flex", alignItems: "center", mt: 1, children: /* @__PURE__ */ jsx(
1969
1967
  GithubReaction,
@@ -3898,13 +3896,12 @@ function Back({ url, fallbackUrl, iconOnly, sx, ...rest }) {
3898
3896
  const navigate = useNavigate();
3899
3897
  const mergedSx = [{ ml: "-5px", color: "grey.600" }, ...Array.isArray(sx) ? sx : [sx]];
3900
3898
  const handleClick = () => {
3901
- var _a2;
3902
3899
  if (url) {
3903
3900
  navigate(url, { replace: true });
3904
3901
  } else if (getPreviousLocation()) {
3905
3902
  navigate(-1);
3906
3903
  } else {
3907
- navigate(fallbackUrl || ((_a2 = window.blocklet) == null ? void 0 : _a2.prefix) || "/");
3904
+ navigate(fallbackUrl || "/");
3908
3905
  }
3909
3906
  };
3910
3907
  if (iconOnly) {
@@ -4515,7 +4512,7 @@ function Pagination({ page, size = 20, total, onChange, routerMode = true, ...re
4515
4512
  }
4516
4513
  );
4517
4514
  }
4518
- const Editor = lazy(() => import("./editor-7154JJOk.mjs"));
4515
+ const Editor = lazy(() => import("./editor-2KKKHQzw.mjs"));
4519
4516
  function LazyEditor(props) {
4520
4517
  const fallback = /* @__PURE__ */ jsxs(Fragment, { children: [
4521
4518
  /* @__PURE__ */ jsx(Skeleton, {}),
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from "@blocklet/labels";
2
- import { L, j, O, A, h, a7, B, y, E, z, F, T, Q, U, X, o, C, q, v, x, $, a0, ab, a2, J, K, D, aa, a9, G, c, b, a8, M, P, ai, n, m, a6, R, S, a3, k, Y, _, ac, af, ae, ag, aj, H, ak, l, p, r, t, d, a4, N, e, W, w, a1, a5, u, ah, al, Z, ad, f } from "./index-7oAOy7l-.mjs";
2
+ import { L, j, O, A, h, a7, B, y, E, z, F, T, Q, U, X, o, C, q, v, x, $, a0, ab, a2, J, K, D, aa, a9, G, c, b, a8, M, P, ai, n, m, a6, R, S, a3, k, Y, _, ac, af, ae, ag, aj, H, ak, l, p, r, t, d, a4, N, e, W, w, a1, a5, u, ah, al, Z, ad, f } from "./index-YiHl-Bzx.mjs";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
5
  import "@mui/material/Box";
package/dist/index.umd.js CHANGED
@@ -1902,8 +1902,6 @@ var __publicField = (obj, key, value) => {
1902
1902
  return items;
1903
1903
  };
1904
1904
  const render = ({ post, interactive }) => {
1905
- var _a2, _b2;
1906
- ((_a2 = post == null ? void 0 : post.author) == null ? void 0 : _a2.did) === ((_b2 = session == null ? void 0 : session.user) == null ? void 0 : _b2.did);
1907
1905
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1908
1906
  /* @__PURE__ */ jsxRuntime.jsx(Box, { display: "flex", alignItems: "center", mt: 1, children: /* @__PURE__ */ jsxRuntime.jsx(
1909
1907
  GithubReaction,
@@ -3838,13 +3836,12 @@ var __publicField = (obj, key, value) => {
3838
3836
  const navigate = reactRouterDom.useNavigate();
3839
3837
  const mergedSx = [{ ml: "-5px", color: "grey.600" }, ...Array.isArray(sx) ? sx : [sx]];
3840
3838
  const handleClick = () => {
3841
- var _a2;
3842
3839
  if (url) {
3843
3840
  navigate(url, { replace: true });
3844
3841
  } else if (getPreviousLocation()) {
3845
3842
  navigate(-1);
3846
3843
  } else {
3847
- navigate(fallbackUrl || ((_a2 = window.blocklet) == null ? void 0 : _a2.prefix) || "/");
3844
+ navigate(fallbackUrl || "/");
3848
3845
  }
3849
3846
  };
3850
3847
  if (iconOnly) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/discuss-kit-ux",
3
- "version": "1.6.125",
3
+ "version": "1.6.127",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -29,9 +29,9 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@arcblock/ws": "^1.18.110",
32
- "@blocklet/editor": "1.6.125",
33
- "@blocklet/labels": "1.6.125",
34
- "@blocklet/uploader": "^0.0.72",
32
+ "@blocklet/editor": "1.6.127",
33
+ "@blocklet/labels": "1.6.127",
34
+ "@blocklet/uploader": "^0.0.73",
35
35
  "@emotion/css": "^11.10.5",
36
36
  "@emotion/react": "^11.10.5",
37
37
  "@emotion/styled": "^11.10.5",
@@ -93,5 +93,5 @@
93
93
  "resolutions": {
94
94
  "react": "^18.2.0"
95
95
  },
96
- "gitHead": "8099c57fbb8ae21c50508c6d4325cd309419af4b"
96
+ "gitHead": "22c7bfcc59722a03443db2ded855bdb1c8bbf88f"
97
97
  }