@blocklet/discuss-kit-ux 2.1.158 → 2.1.160

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,6 +4,7 @@ interface BackProps {
4
4
  fallbackUrl?: string;
5
5
  iconOnly?: boolean;
6
6
  sx?: SxProps;
7
+ icon?: React.ReactNode;
7
8
  }
8
- export declare function Back({ url, fallbackUrl, iconOnly, sx, ...rest }: BackProps & ButtonProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare function Back({ url, fallbackUrl, iconOnly, sx, icon, ...rest }: BackProps & ButtonProps): import("react/jsx-runtime").JSX.Element;
9
10
  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 { lazyRetry } from "@arcblock/ux/lib/Util";
7
- import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, s as stringify, g as getExcerptSync } from "./index-Crm8cXwn.mjs";
7
+ import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, s as stringify, g as getExcerptSync } from "./index-MPAyKNVs.mjs";
8
8
  const BlockletEditor = lazyRetry(() => import("@blocklet/editor"));
9
9
  const Root = styled(Box)`
10
10
  .be-editable,
@@ -4780,7 +4780,7 @@ function Participants({ users, sx, ...rest }) {
4780
4780
  }
4781
4781
  ) }) });
4782
4782
  }
4783
- function Back({ url, fallbackUrl, iconOnly, sx, ...rest }) {
4783
+ function Back({ url, fallbackUrl, iconOnly, sx, icon, ...rest }) {
4784
4784
  const navigate = useNavigate();
4785
4785
  const location = useLocation();
4786
4786
  const mergedSx = [{}, ...Array.isArray(sx) ? sx : [sx]];
@@ -4794,26 +4794,16 @@ function Back({ url, fallbackUrl, iconOnly, sx, ...rest }) {
4794
4794
  navigate(fallbackUrl || "/");
4795
4795
  }
4796
4796
  };
4797
+ icon = icon || /* @__PURE__ */ jsx(ArrowBackIos, { style: { fontSize: 13 } });
4797
4798
  if (iconOnly) {
4798
4799
  mergedSx.push({ minWidth: "initial", py: 1 });
4799
- return /* @__PURE__ */ jsx(Button$1, { onClick: handleClick, variant: "text", color: "inherit", sx: mergedSx, ...rest, children: /* @__PURE__ */ jsx(ArrowBackIos, { style: { fontSize: 13 } }) });
4800
+ return /* @__PURE__ */ jsx(Button$1, { onClick: handleClick, variant: "text", color: "inherit", sx: mergedSx, ...rest, children: icon });
4800
4801
  }
4801
- return /* @__PURE__ */ jsx(
4802
- Button$1,
4803
- {
4804
- onClick: handleClick,
4805
- variant: "outlined",
4806
- color: "primary",
4807
- startIcon: /* @__PURE__ */ jsx(ArrowBackIos, { style: { fontSize: 13 } }),
4808
- sx: mergedSx,
4809
- ...rest,
4810
- children: "Back"
4811
- }
4812
- );
4802
+ return /* @__PURE__ */ jsx(Button$1, { onClick: handleClick, variant: "outlined", color: "primary", startIcon: icon, sx: mergedSx, ...rest, children: "Back" });
4813
4803
  }
4814
4804
  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" }) });
4815
4805
  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" }) });
4816
- const Editor = lazyRetry(() => import("./editor-Dk8IGx7s.mjs"));
4806
+ const Editor = lazyRetry(() => import("./editor-BIFIUTiW.mjs"));
4817
4807
  function LazyEditor(props) {
4818
4808
  const fallback2 = /* @__PURE__ */ jsxs(Box, { sx: { px: 3 }, children: [
4819
4809
  /* @__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, ar, N, am, as, l, f, p, r, j, au, t, h, aa, U, c, a0, z, a7, ab, u, an, d, at, a3, aj, e } from "./index-Crm8cXwn.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, ar, N, am, as, l, f, p, r, j, au, t, h, aa, U, c, a0, z, a7, ab, u, an, d, at, a3, aj, e } from "./index-MPAyKNVs.mjs";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
5
  import "@mui/material/Box";
package/dist/index.umd.js CHANGED
@@ -4703,7 +4703,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4703
4703
  }
4704
4704
  ) }) });
4705
4705
  }
4706
- function Back({ url, fallbackUrl, iconOnly, sx, ...rest }) {
4706
+ function Back({ url, fallbackUrl, iconOnly, sx, icon, ...rest }) {
4707
4707
  const navigate = reactRouterDom.useNavigate();
4708
4708
  const location = reactRouterDom.useLocation();
4709
4709
  const mergedSx = [{}, ...Array.isArray(sx) ? sx : [sx]];
@@ -4717,22 +4717,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4717
4717
  navigate(fallbackUrl || "/");
4718
4718
  }
4719
4719
  };
4720
+ icon = icon || /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.ArrowBackIos, { style: { fontSize: 13 } });
4720
4721
  if (iconOnly) {
4721
4722
  mergedSx.push({ minWidth: "initial", py: 1 });
4722
- return /* @__PURE__ */ jsxRuntime.jsx(material.Button, { onClick: handleClick, variant: "text", color: "inherit", sx: mergedSx, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.ArrowBackIos, { style: { fontSize: 13 } }) });
4723
+ return /* @__PURE__ */ jsxRuntime.jsx(material.Button, { onClick: handleClick, variant: "text", color: "inherit", sx: mergedSx, ...rest, children: icon });
4723
4724
  }
4724
- return /* @__PURE__ */ jsxRuntime.jsx(
4725
- material.Button,
4726
- {
4727
- onClick: handleClick,
4728
- variant: "outlined",
4729
- color: "primary",
4730
- startIcon: /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.ArrowBackIos, { style: { fontSize: 13 } }),
4731
- sx: mergedSx,
4732
- ...rest,
4733
- children: "Back"
4734
- }
4735
- );
4725
+ return /* @__PURE__ */ jsxRuntime.jsx(material.Button, { onClick: handleClick, variant: "outlined", color: "primary", startIcon: icon, sx: mergedSx, ...rest, children: "Back" });
4736
4726
  }
4737
4727
  const tablerSend = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", "data-iconify": "tabler", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsxRuntime.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" }) });
4738
4728
  const tablerLetterCase = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", "data-iconify": "tabler", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsxRuntime.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" }) });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/discuss-kit-ux",
3
- "version": "2.1.158",
3
+ "version": "2.1.160",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -45,8 +45,8 @@
45
45
  "ufo": "^1.5.4",
46
46
  "unstated-next": "^1.1.0",
47
47
  "url-join": "^4.0.1",
48
- "@blocklet/editor": "^2.1.158",
49
- "@blocklet/labels": "^2.1.158"
48
+ "@blocklet/editor": "^2.1.160",
49
+ "@blocklet/labels": "^2.1.160"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "@arcblock/did-connect": "^2.10.36",