@blocklet/discuss-kit-ux 2.1.234 → 2.1.236

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 { 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-DRmxd02z.mjs";
7
+ import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, s as stringify, g as getExcerptSync } from "./index-DtjGjX1D.mjs";
8
8
  const BlockletEditor = lazyRetry(() => import("@blocklet/editor"));
9
9
  const Root = styled(Box)`
10
10
  .be-editable,
@@ -7,7 +7,7 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
7
7
  import { useTheme, ThemeProvider, styled as styled$2 } from "@mui/material/styles";
8
8
  import { create as create$1, styled } from "@arcblock/ux/lib/Theme";
9
9
  import { useEffect, useRef, useState, createElement, useContext, useMemo, useLayoutEffect, useCallback, isValidElement, Suspense, createContext, Fragment as Fragment$1, forwardRef, useImperativeHandle } from "react";
10
- import { Box, useTheme as useTheme$1, useMediaQuery, styled as styled$1, Button as Button$1, Stack as Stack$1, Dialog, DialogTitle, DialogContent, DialogActions, DialogContentText, Tooltip as Tooltip$1, Chip as Chip$1, alpha, ClickAwayListener, Divider, Skeleton, IconButton as IconButton$2, InputBase, tooltipClasses as tooltipClasses$1, CircularProgress, Backdrop, Autocomplete, Typography as Typography$1, TextField, InputAdornment, SwipeableDrawer, Badge as Badge$1, Paper, ToggleButtonGroup, ToggleButton } from "@mui/material";
10
+ import { Box, useTheme as useTheme$1, useMediaQuery, styled as styled$1, Button as Button$1, Stack as Stack$1, Dialog, DialogTitle, DialogContent, DialogActions, DialogContentText, Tooltip as Tooltip$1, Chip as Chip$1, alpha, ClickAwayListener, Divider, Skeleton, IconButton as IconButton$2, InputBase, tooltipClasses as tooltipClasses$1, CircularProgress, Backdrop, Autocomplete, Typography as Typography$1, TextField, InputAdornment, SwipeableDrawer, Badge as Badge$1, ToggleButtonGroup, ToggleButton } from "@mui/material";
11
11
  import isNil from "lodash/isNil";
12
12
  import { useEditorConfig, EditorConfigProvider } from "@blocklet/editor/lib/config";
13
13
  import { lazyWithPreload } from "react-lazy-with-preload";
@@ -4925,7 +4925,7 @@ function Back({ url, fallbackUrl, iconOnly, sx, icon, ...rest }) {
4925
4925
  }
4926
4926
  const tablerSend = (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", 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" }) });
4927
4927
  const tablerLetterCase = (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", 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" }) });
4928
- const Editor = lazyRetry(() => import("./editor-CuVGY4A5.mjs"));
4928
+ const Editor = lazyRetry(() => import("./editor-ChmIyObO.mjs"));
4929
4929
  function LazyEditor(props) {
4930
4930
  const fallback2 = /* @__PURE__ */ jsxs(Box, { sx: { px: 3 }, children: [
4931
4931
  /* @__PURE__ */ jsx(Skeleton, {}),
@@ -12399,12 +12399,11 @@ function SegmentedControl({ value, options, onChange, sx, ...rest }) {
12399
12399
  const mergedSx = mergeSx(
12400
12400
  {
12401
12401
  display: "inline-flex",
12402
- borderRadius: "100vh",
12403
- bgcolor: "grey.100"
12402
+ borderRadius: "100vh"
12404
12403
  },
12405
12404
  sx
12406
12405
  );
12407
- return /* @__PURE__ */ jsx(Paper, { elevation: 0, sx: mergedSx, ...rest, children: /* @__PURE__ */ jsx(
12406
+ return /* @__PURE__ */ jsx(Box, { sx: mergedSx, ...rest, children: /* @__PURE__ */ jsx(
12408
12407
  ToggleButtonGroup,
12409
12408
  {
12410
12409
  size: "small",
@@ -12418,15 +12417,12 @@ function SegmentedControl({ value, options, onChange, sx, ...rest }) {
12418
12417
  border: 0,
12419
12418
  borderRadius: "100vh",
12420
12419
  lineHeight: 1.3,
12421
- textTransform: "none"
12420
+ textTransform: "none",
12421
+ color: "text.primary"
12422
12422
  },
12423
12423
  ".MuiToggleButtonGroup-grouped.Mui-selected": {
12424
- bgcolor: "#fff",
12425
12424
  border: 1,
12426
- borderColor: "divider",
12427
- ":hover": {
12428
- bgcolor: "grey.50"
12429
- }
12425
+ borderColor: "divider"
12430
12426
  },
12431
12427
  ".MuiToggleButtonGroup-middleButton, .MuiToggleButtonGroup-lastButton": {
12432
12428
  marginLeft: "-1px",
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from "@blocklet/labels";
2
- import { U, o, X, A, n, ae, B, G, L, K, N, aq, Z, Y, a0, _, $, a2, x, C, y, z, F, a6, a7, ai, a9, Q, T, ad, D, ah, ag, J, H, b, m, af, M, P, aB, ap, w, v, R, S, aa, ar, aC, q, a3, a5, aj, am, al, az, as, O, an, at, aw, ax, l, ay, h, p, r, k, av, t, j, ab, aA, W, c, a1, E, a8, ac, e, u, ao, d, au, a4, ak, f } from "./index-DRmxd02z.mjs";
2
+ import { U, o, X, A, n, ae, B, G, L, K, N, aq, Z, Y, a0, _, $, a2, x, C, y, z, F, a6, a7, ai, a9, Q, T, ad, D, ah, ag, J, H, b, m, af, M, P, aB, ap, w, v, R, S, aa, ar, aC, q, a3, a5, aj, am, al, az, as, O, an, at, aw, ax, l, ay, h, p, r, k, av, t, j, ab, aA, W, c, a1, E, a8, ac, e, u, ao, d, au, a4, ak, f } from "./index-DtjGjX1D.mjs";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
5
  import "@mui/material/Box";
package/dist/index.umd.js CHANGED
@@ -12323,12 +12323,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
12323
12323
  const mergedSx = mergeSx(
12324
12324
  {
12325
12325
  display: "inline-flex",
12326
- borderRadius: "100vh",
12327
- bgcolor: "grey.100"
12326
+ borderRadius: "100vh"
12328
12327
  },
12329
12328
  sx
12330
12329
  );
12331
- return /* @__PURE__ */ jsxRuntime.jsx(material.Paper, { elevation: 0, sx: mergedSx, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
12330
+ return /* @__PURE__ */ jsxRuntime.jsx(material.Box, { sx: mergedSx, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
12332
12331
  material.ToggleButtonGroup,
12333
12332
  {
12334
12333
  size: "small",
@@ -12342,15 +12341,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
12342
12341
  border: 0,
12343
12342
  borderRadius: "100vh",
12344
12343
  lineHeight: 1.3,
12345
- textTransform: "none"
12344
+ textTransform: "none",
12345
+ color: "text.primary"
12346
12346
  },
12347
12347
  ".MuiToggleButtonGroup-grouped.Mui-selected": {
12348
- bgcolor: "#fff",
12349
12348
  border: 1,
12350
- borderColor: "divider",
12351
- ":hover": {
12352
- bgcolor: "grey.50"
12353
- }
12349
+ borderColor: "divider"
12354
12350
  },
12355
12351
  ".MuiToggleButtonGroup-middleButton, .MuiToggleButtonGroup-lastButton": {
12356
12352
  marginLeft: "-1px",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/discuss-kit-ux",
3
- "version": "2.1.234",
3
+ "version": "2.1.236",
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.234",
49
- "@blocklet/labels": "^2.1.234"
48
+ "@blocklet/editor": "^2.1.236",
49
+ "@blocklet/labels": "^2.1.236"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "@arcblock/did-connect": "^2.10.36",