@blocklet/discuss-kit-ux 1.6.220 → 1.6.221

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.
@@ -3,6 +3,7 @@ import { BoxProps } from '@mui/material/Box';
3
3
  interface CoverImageUploadProps extends Omit<BoxProps, 'onChange'> {
4
4
  url?: string;
5
5
  onChange: (url: string | null) => void;
6
+ width?: number;
6
7
  }
7
8
  export declare function CoverImage({ url, aspectRatio, width, sx, fetchpriority, loading, shadow, fallback, ...rest }: {
8
9
  url?: string;
@@ -13,5 +14,5 @@ export declare function CoverImage({ url, aspectRatio, width, sx, fetchpriority,
13
14
  shadow?: boolean;
14
15
  fallback?: React.ReactNode;
15
16
  } & BoxProps): import("react/jsx-runtime").JSX.Element;
16
- export declare function CoverImageUpload({ url, onChange, ...rest }: CoverImageUploadProps): import("react/jsx-runtime").JSX.Element;
17
+ export declare function CoverImageUpload({ url, onChange, width, ...rest }: CoverImageUploadProps): import("react/jsx-runtime").JSX.Element;
17
18
  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-BvgOMp6U.mjs";
7
+ import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, s as stringify, g as getExcerptSync } from "./index-BHZcv0rr.mjs";
8
8
  const BlockletEditor = lazy(() => import("@blocklet/editor"));
9
9
  const Root = styled(Box)`
10
10
  .be-editable,
@@ -199,6 +199,14 @@ const themeOverrides = {
199
199
  enterTouchDelay: 3e3,
200
200
  leaveTouchDelay: 100
201
201
  }
202
+ },
203
+ MuiPopover: {
204
+ styleOverrides: {
205
+ paper: ({ theme }) => ({
206
+ border: `1px solid ${theme.palette.divider}`,
207
+ boxShadow: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"
208
+ })
209
+ }
202
210
  }
203
211
  }
204
212
  };
@@ -2907,7 +2915,7 @@ function CoverImage({
2907
2915
  }
2908
2916
  );
2909
2917
  }
2910
- function CoverImageUpload({ url, onChange, ...rest }) {
2918
+ function CoverImageUpload({ url, onChange, width, ...rest }) {
2911
2919
  return /* @__PURE__ */ jsx(Box$1, { ...rest, children: /* @__PURE__ */ jsxs(
2912
2920
  UploaderTrigger,
2913
2921
  {
@@ -2955,7 +2963,7 @@ function CoverImageUpload({ url, onChange, ...rest }) {
2955
2963
  "&:hover .cover-image-delete": { display: "block" }
2956
2964
  },
2957
2965
  children: [
2958
- /* @__PURE__ */ jsx(CoverImage, { url }),
2966
+ /* @__PURE__ */ jsx(CoverImage, { url, width }),
2959
2967
  /* @__PURE__ */ jsx(Box$1, { sx: { position: "absolute", top: 8, right: 8, display: "none" }, className: "cover-image-delete", children: /* @__PURE__ */ jsx(
2960
2968
  IconButton$2,
2961
2969
  {
@@ -5271,9 +5279,9 @@ function Pagination({
5271
5279
  }
5272
5280
  );
5273
5281
  }
5274
- const Editor = lazy(() => import("./editor-g8aVzRyQ.mjs"));
5282
+ const Editor = lazy(() => import("./editor-Bv0IhrR_.mjs"));
5275
5283
  function LazyEditor(props) {
5276
- const fallback = /* @__PURE__ */ jsxs(Fragment, { children: [
5284
+ const fallback = /* @__PURE__ */ jsxs(Box$1, { sx: { px: 3 }, children: [
5277
5285
  /* @__PURE__ */ jsx(Skeleton, {}),
5278
5286
  /* @__PURE__ */ jsx(Skeleton, { width: "80%" }),
5279
5287
  /* @__PURE__ */ jsx(Skeleton, { width: "60%" }),
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from "@blocklet/labels";
2
- import { Q, m, U, A, k, ab, B, E, J, H, K, an, X, W, Y, _, v, C, w, x, z, a2, a3, af, a5, N, O, a9, D, ae, ad, F, G, b, j, ac, M, P, am, q, o, aa, R, S, a6, ao, n, $, a1, ag, aj, ai, ak, ap, L, aq, l, p, r, h, t, f, a7, T, c, Z, y, a4, a8, u, al, d, ar, a0, ah, e } from "./index-BvgOMp6U.mjs";
2
+ import { Q, m, U, A, k, ab, B, E, J, H, K, an, X, W, Y, _, v, C, w, x, z, a2, a3, af, a5, N, O, a9, D, ae, ad, F, G, b, j, ac, M, P, am, q, o, aa, R, S, a6, ao, n, $, a1, ag, aj, ai, ak, ap, L, aq, l, p, r, h, t, f, a7, T, c, Z, y, a4, a8, u, al, d, ar, a0, ah, e } from "./index-BHZcv0rr.mjs";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
5
  import "@mui/material/Box";
package/dist/index.umd.js CHANGED
@@ -132,6 +132,14 @@ var __publicField = (obj, key, value) => {
132
132
  enterTouchDelay: 3e3,
133
133
  leaveTouchDelay: 100
134
134
  }
135
+ },
136
+ MuiPopover: {
137
+ styleOverrides: {
138
+ paper: ({ theme }) => ({
139
+ border: `1px solid ${theme.palette.divider}`,
140
+ boxShadow: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"
141
+ })
142
+ }
135
143
  }
136
144
  }
137
145
  };
@@ -2840,7 +2848,7 @@ var __publicField = (obj, key, value) => {
2840
2848
  }
2841
2849
  );
2842
2850
  }
2843
- function CoverImageUpload({ url, onChange, ...rest }) {
2851
+ function CoverImageUpload({ url, onChange, width, ...rest }) {
2844
2852
  return /* @__PURE__ */ jsxRuntime.jsx(material.Box, { ...rest, children: /* @__PURE__ */ jsxRuntime.jsxs(
2845
2853
  UploaderTrigger,
2846
2854
  {
@@ -2888,7 +2896,7 @@ var __publicField = (obj, key, value) => {
2888
2896
  "&:hover .cover-image-delete": { display: "block" }
2889
2897
  },
2890
2898
  children: [
2891
- /* @__PURE__ */ jsxRuntime.jsx(CoverImage, { url }),
2899
+ /* @__PURE__ */ jsxRuntime.jsx(CoverImage, { url, width }),
2892
2900
  /* @__PURE__ */ jsxRuntime.jsx(material.Box, { sx: { position: "absolute", top: 8, right: 8, display: "none" }, className: "cover-image-delete", children: /* @__PURE__ */ jsxRuntime.jsx(
2893
2901
  material.IconButton,
2894
2902
  {
@@ -5206,7 +5214,7 @@ var __publicField = (obj, key, value) => {
5206
5214
  }
5207
5215
  const Editor$1 = react.lazy(() => Promise.resolve().then(() => editor));
5208
5216
  function LazyEditor(props) {
5209
- const fallback = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
5217
+ const fallback = /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { sx: { px: 3 }, children: [
5210
5218
  /* @__PURE__ */ jsxRuntime.jsx(material.Skeleton, {}),
5211
5219
  /* @__PURE__ */ jsxRuntime.jsx(material.Skeleton, { width: "80%" }),
5212
5220
  /* @__PURE__ */ jsxRuntime.jsx(material.Skeleton, { width: "60%" }),
package/dist/ws.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export declare function create(prefix: string): any;
2
2
  export declare function getWsClient(prefix?: string): any;
3
- export declare const useSubscription: (event: string, cb?: () => void, deps?: never[], prefix?: string) => void;
3
+ export declare const useSubscription: (event: string, cb?: (...args: any[]) => void, deps?: any[], prefix?: string) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/discuss-kit-ux",
3
- "version": "1.6.220",
3
+ "version": "1.6.221",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -29,8 +29,8 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@arcblock/ws": "^1.18.115",
32
- "@blocklet/editor": "1.6.220",
33
- "@blocklet/labels": "1.6.220",
32
+ "@blocklet/editor": "1.6.221",
33
+ "@blocklet/labels": "1.6.221",
34
34
  "@blocklet/uploader": "^0.0.78",
35
35
  "@emotion/css": "^11.10.5",
36
36
  "@emotion/react": "^11.10.5",
@@ -94,5 +94,5 @@
94
94
  "resolutions": {
95
95
  "react": "^18.2.0"
96
96
  },
97
- "gitHead": "3465af311407e4d977b94b9805d73aa5a3492254"
97
+ "gitHead": "f0112b033a68810a1c41806d7c4587b264021a68"
98
98
  }