@blocklet/discuss-kit-ux 1.5.191 → 1.5.193

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.
@@ -10,7 +10,7 @@ type ConfirmOptions = {
10
10
  okText?: ReactNode;
11
11
  cancelButtonProps?: ButtonProps;
12
12
  okButtonProps?: ButtonProps;
13
- dialogProps?: DialogProps;
13
+ dialogProps?: Omit<DialogProps, 'open'>;
14
14
  actions?: (actions: JSX.Element[], onClose: () => void) => JSX.Element[];
15
15
  };
16
16
  type ConfirmFunc = (options: ConfirmOptions) => Promise<boolean>;
@@ -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-20737352.mjs";
7
+ import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, s as stringify, g as getExcerptSync } from "./index-fe7740b3.mjs";
8
8
  import "@blocklet/labels";
9
9
  import "@mui/material/styles";
10
10
  import "@mui/material/Box";
@@ -1776,7 +1776,7 @@ function Confirm({
1776
1776
  }
1777
1777
  return actionsArr;
1778
1778
  };
1779
- return /* @__PURE__ */ jsxs(Dialog$1, { fullScreen, onClose: handleCancel, ...rest, open, children: [
1779
+ return /* @__PURE__ */ jsxs(Dialog$1, { fullScreen, onClose: handleCancel, maxWidth: "md", ...rest, open, children: [
1780
1780
  /* @__PURE__ */ jsx(DialogTitle, { children: title }),
1781
1781
  /* @__PURE__ */ jsx(DialogContent, { sx: { minWidth: { xs: "initial", md: 400 } }, children: renderDesc() }),
1782
1782
  /* @__PURE__ */ jsx(DialogActions, { children: renderActions() })
@@ -4340,7 +4340,7 @@ function Pagination({ page, size = 20, total, onChange, routerMode = true, ...re
4340
4340
  }
4341
4341
  );
4342
4342
  }
4343
- const Editor = lazy(() => import("./editor-90305710.mjs"));
4343
+ const Editor = lazy(() => import("./editor-42c7855a.mjs"));
4344
4344
  function LazyEditor(props) {
4345
4345
  const fallback = /* @__PURE__ */ jsxs(Fragment, { children: [
4346
4346
  /* @__PURE__ */ jsx(Skeleton, {}),
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from "@blocklet/labels";
2
- import { K, j, N, A, h, a6, B, z, y, E, Q, O, T, W, o, C, q, v, x, _, $, aa, a1, H, J, D, a9, a8, G, c, b, a7, M, P, ah, n, m, a5, R, S, a2, k, X, Z, ab, ae, ad, af, ai, F, aj, l, p, r, t, d, a3, L, e, U, w, a0, a4, u, ag, ak, Y, ac, f } from "./index-20737352.mjs";
2
+ import { K, j, N, A, h, a6, B, z, y, E, Q, O, T, W, o, C, q, v, x, _, $, aa, a1, H, J, D, a9, a8, G, c, b, a7, M, P, ah, n, m, a5, R, S, a2, k, X, Z, ab, ae, ad, af, ai, F, aj, l, p, r, t, d, a3, L, e, U, w, a0, a4, u, ag, ak, Y, ac, f } from "./index-fe7740b3.mjs";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
5
  import "@mui/material/Box";
package/dist/index.umd.js CHANGED
@@ -1720,7 +1720,7 @@ var __publicField = (obj, key, value) => {
1720
1720
  }
1721
1721
  return actionsArr;
1722
1722
  };
1723
- return /* @__PURE__ */ jsxRuntime.jsxs(material.Dialog, { fullScreen, onClose: handleCancel, ...rest, open, children: [
1723
+ return /* @__PURE__ */ jsxRuntime.jsxs(material.Dialog, { fullScreen, onClose: handleCancel, maxWidth: "md", ...rest, open, children: [
1724
1724
  /* @__PURE__ */ jsxRuntime.jsx(material.DialogTitle, { children: title }),
1725
1725
  /* @__PURE__ */ jsxRuntime.jsx(material.DialogContent, { sx: { minWidth: { xs: "initial", md: 400 } }, children: renderDesc() }),
1726
1726
  /* @__PURE__ */ jsxRuntime.jsx(material.DialogActions, { children: renderActions() })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/discuss-kit-ux",
3
- "version": "1.5.191",
3
+ "version": "1.5.193",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -29,8 +29,8 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@arcblock/ws": "^1.18.101",
32
- "@blocklet/editor": "1.5.191",
33
- "@blocklet/labels": "1.5.191",
32
+ "@blocklet/editor": "1.5.193",
33
+ "@blocklet/labels": "1.5.193",
34
34
  "@blocklet/uploader": "^0.0.45",
35
35
  "@emotion/css": "^11.10.5",
36
36
  "@emotion/react": "^11.10.5",
@@ -92,5 +92,5 @@
92
92
  "resolutions": {
93
93
  "react": "^18.2.0"
94
94
  },
95
- "gitHead": "339933d2e1095772331a58a147cbe1640876429a"
95
+ "gitHead": "386c08fcc6930265c0e72e6bc0f261f5ca395da0"
96
96
  }