@blocklet/discuss-kit-ux 1.6.170 → 1.6.171

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-ANEtAk47.mjs";
7
+ import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, s as stringify, g as getExcerptSync } from "./index-L7b9RORw.mjs";
8
8
  import "@blocklet/labels";
9
9
  import "@mui/material/styles";
10
10
  import "@mui/material/Box";
@@ -4578,7 +4578,7 @@ function Pagination({
4578
4578
  }
4579
4579
  );
4580
4580
  }
4581
- const Editor = lazy(() => import("./editor-z1JytlS7.mjs"));
4581
+ const Editor = lazy(() => import("./editor-GXcwjd5u.mjs"));
4582
4582
  function LazyEditor(props) {
4583
4583
  const fallback = /* @__PURE__ */ jsxs(Fragment, { children: [
4584
4584
  /* @__PURE__ */ jsx(Skeleton, {}),
@@ -10518,73 +10518,76 @@ function ButtonGroup({
10518
10518
  if (onSelectTab)
10519
10519
  onSelectTab(selectTab);
10520
10520
  }, [selectTab, selectedArray, boardId]);
10521
- return /* @__PURE__ */ jsxs(Box$1, { className: Group, children: [
10522
- /* @__PURE__ */ jsxs(
10523
- Box$1,
10524
- {
10525
- sx: {
10526
- bgcolor: theme === "dark" ? "#F9FAFB" : "",
10527
- width: "fit-content",
10528
- maxWidth: "calc(100% - 16px)",
10529
- borderRadius: "99999px",
10530
- borderTopRightRadius: downSm ? 0 : "99999px",
10531
- borderBottomRightRadius: downSm ? 0 : "99999px",
10532
- overflow: "scroll",
10533
- whiteSpace: "nowrap",
10534
- mr: 2
10535
- },
10536
- children: [
10537
- allButton && /* @__PURE__ */ jsx(
10538
- Button$1,
10539
- {
10540
- onClick: handleSelectAll,
10541
- sx: {
10542
- backgroundColor: selectAll ? "#ffffff" : "",
10543
- color: selectAll ? "#030712" : "#4b5563",
10544
- border: selectAll ? "1px solid #e5e7eb!important" : "1px solid transparent"
10545
- },
10546
- ...rest,
10547
- children: t("all")
10548
- }
10549
- ),
10550
- dataWithDefault == null ? void 0 : dataWithDefault.map((item, index) => {
10551
- const isActive = urlParams ? !selectAll && (selectTab == null ? void 0 : selectTab.includes(item.id)) : boardId === item.id;
10552
- return /* @__PURE__ */ jsx(
10521
+ return (
10522
+ // eslint-disable-next-line @typescript-eslint/no-use-before-define
10523
+ /* @__PURE__ */ jsxs(Box$1, { className: Group, children: [
10524
+ /* @__PURE__ */ jsxs(
10525
+ Box$1,
10526
+ {
10527
+ sx: {
10528
+ bgcolor: theme === "dark" ? "#F9FAFB" : "",
10529
+ width: "fit-content",
10530
+ maxWidth: "calc(100% - 16px)",
10531
+ borderRadius: "99999px",
10532
+ borderTopRightRadius: downSm ? 0 : "99999px",
10533
+ borderBottomRightRadius: downSm ? 0 : "99999px",
10534
+ overflow: "scroll",
10535
+ whiteSpace: "nowrap",
10536
+ mr: 2
10537
+ },
10538
+ children: [
10539
+ allButton && /* @__PURE__ */ jsx(
10553
10540
  Button$1,
10554
10541
  {
10555
- onClick: () => handleClick(item),
10542
+ onClick: handleSelectAll,
10556
10543
  sx: {
10557
- ...isActive && {
10558
- backgroundColor: "#ffffff",
10559
- color: "#030712",
10560
- border: "1px solid #e5e7eb!important"
10561
- }
10544
+ backgroundColor: selectAll ? "#ffffff" : "",
10545
+ color: selectAll ? "#030712" : "#4b5563",
10546
+ border: selectAll ? "1px solid #e5e7eb!important" : "1px solid transparent"
10562
10547
  },
10563
10548
  ...rest,
10564
- children: /* @__PURE__ */ jsxs(Box$1, { sx: { display: "flex", alignItems: "center" }, children: [
10565
- item == null ? void 0 : item.icon,
10566
- " ",
10567
- item == null ? void 0 : item.title
10568
- ] })
10569
- },
10570
- index
10571
- );
10572
- })
10573
- ]
10574
- }
10575
- ),
10576
- urlName !== "type" && /* @__PURE__ */ jsx(AccessControl, { roles: ["admin", "owner"], children: /* @__PURE__ */ jsx(
10577
- IconButton$1,
10578
- {
10579
- component: Link,
10580
- color: "inherit",
10581
- size: "small",
10582
- to: `/boards?type=${type}`,
10583
- sx: { color: "grey.500" },
10584
- children: /* @__PURE__ */ jsx(BorderColorOutlined, { sx: { fontSize: 16 } })
10585
- }
10586
- ) })
10587
- ] });
10549
+ children: t("all")
10550
+ }
10551
+ ),
10552
+ dataWithDefault == null ? void 0 : dataWithDefault.map((item, index) => {
10553
+ const isActive = urlParams ? !selectAll && (selectTab == null ? void 0 : selectTab.includes(item.id)) : boardId === item.id;
10554
+ return /* @__PURE__ */ jsx(
10555
+ Button$1,
10556
+ {
10557
+ onClick: () => handleClick(item),
10558
+ sx: {
10559
+ ...isActive && {
10560
+ backgroundColor: "#ffffff",
10561
+ color: "#030712",
10562
+ border: "1px solid #e5e7eb!important"
10563
+ }
10564
+ },
10565
+ ...rest,
10566
+ children: /* @__PURE__ */ jsxs(Box$1, { sx: { display: "flex", alignItems: "center" }, children: [
10567
+ item == null ? void 0 : item.icon,
10568
+ " ",
10569
+ item == null ? void 0 : item.title
10570
+ ] })
10571
+ },
10572
+ index
10573
+ );
10574
+ })
10575
+ ]
10576
+ }
10577
+ ),
10578
+ urlName !== "type" && /* @__PURE__ */ jsx(AccessControl, { roles: ["admin", "owner"], children: /* @__PURE__ */ jsx(
10579
+ IconButton$1,
10580
+ {
10581
+ component: Link,
10582
+ color: "inherit",
10583
+ size: "small",
10584
+ to: `/boards?type=${type}`,
10585
+ sx: { color: "grey.500" },
10586
+ children: /* @__PURE__ */ jsx(BorderColorOutlined, { sx: { fontSize: 16 } })
10587
+ }
10588
+ ) })
10589
+ ] })
10590
+ );
10588
10591
  }
10589
10592
  const Group = css`
10590
10593
  display: flex;
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from "@blocklet/labels";
2
- import { N, j, Q, A, h, a8, B, y, F, z, H, ak, U, T, W, Y, o, C, q, v, x, a0, a1, ac, a3, K, L, D, ab, aa, E, G, b, f, a9, M, P, aj, n, m, a7, R, S, a4, k, Z, $, ad, ag, af, ah, al, J, am, l, p, r, e, t, a5, O, c, X, w, a2, a6, u, ai, an, _, ae, d } from "./index-ANEtAk47.mjs";
2
+ import { N, j, Q, A, h, a8, B, y, F, z, H, ak, U, T, W, Y, o, C, q, v, x, a0, a1, ac, a3, K, L, D, ab, aa, E, G, b, f, a9, M, P, aj, n, m, a7, R, S, a4, k, Z, $, ad, ag, af, ah, al, J, am, l, p, r, e, t, a5, O, c, X, w, a2, a6, u, ai, an, _, ae, d } from "./index-L7b9RORw.mjs";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
5
  import "@mui/material/Box";
package/dist/index.umd.js CHANGED
@@ -10455,73 +10455,76 @@ var __publicField = (obj, key, value) => {
10455
10455
  if (onSelectTab)
10456
10456
  onSelectTab(selectTab);
10457
10457
  }, [selectTab, selectedArray, boardId]);
10458
- return /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: Group, children: [
10459
- /* @__PURE__ */ jsxRuntime.jsxs(
10460
- material.Box,
10461
- {
10462
- sx: {
10463
- bgcolor: theme === "dark" ? "#F9FAFB" : "",
10464
- width: "fit-content",
10465
- maxWidth: "calc(100% - 16px)",
10466
- borderRadius: "99999px",
10467
- borderTopRightRadius: downSm ? 0 : "99999px",
10468
- borderBottomRightRadius: downSm ? 0 : "99999px",
10469
- overflow: "scroll",
10470
- whiteSpace: "nowrap",
10471
- mr: 2
10472
- },
10473
- children: [
10474
- allButton && /* @__PURE__ */ jsxRuntime.jsx(
10475
- material.Button,
10476
- {
10477
- onClick: handleSelectAll,
10478
- sx: {
10479
- backgroundColor: selectAll ? "#ffffff" : "",
10480
- color: selectAll ? "#030712" : "#4b5563",
10481
- border: selectAll ? "1px solid #e5e7eb!important" : "1px solid transparent"
10482
- },
10483
- ...rest,
10484
- children: t("all")
10485
- }
10486
- ),
10487
- dataWithDefault == null ? void 0 : dataWithDefault.map((item, index) => {
10488
- const isActive = urlParams ? !selectAll && (selectTab == null ? void 0 : selectTab.includes(item.id)) : boardId === item.id;
10489
- return /* @__PURE__ */ jsxRuntime.jsx(
10458
+ return (
10459
+ // eslint-disable-next-line @typescript-eslint/no-use-before-define
10460
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: Group, children: [
10461
+ /* @__PURE__ */ jsxRuntime.jsxs(
10462
+ material.Box,
10463
+ {
10464
+ sx: {
10465
+ bgcolor: theme === "dark" ? "#F9FAFB" : "",
10466
+ width: "fit-content",
10467
+ maxWidth: "calc(100% - 16px)",
10468
+ borderRadius: "99999px",
10469
+ borderTopRightRadius: downSm ? 0 : "99999px",
10470
+ borderBottomRightRadius: downSm ? 0 : "99999px",
10471
+ overflow: "scroll",
10472
+ whiteSpace: "nowrap",
10473
+ mr: 2
10474
+ },
10475
+ children: [
10476
+ allButton && /* @__PURE__ */ jsxRuntime.jsx(
10490
10477
  material.Button,
10491
10478
  {
10492
- onClick: () => handleClick(item),
10479
+ onClick: handleSelectAll,
10493
10480
  sx: {
10494
- ...isActive && {
10495
- backgroundColor: "#ffffff",
10496
- color: "#030712",
10497
- border: "1px solid #e5e7eb!important"
10498
- }
10481
+ backgroundColor: selectAll ? "#ffffff" : "",
10482
+ color: selectAll ? "#030712" : "#4b5563",
10483
+ border: selectAll ? "1px solid #e5e7eb!important" : "1px solid transparent"
10499
10484
  },
10500
10485
  ...rest,
10501
- children: /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { sx: { display: "flex", alignItems: "center" }, children: [
10502
- item == null ? void 0 : item.icon,
10503
- " ",
10504
- item == null ? void 0 : item.title
10505
- ] })
10506
- },
10507
- index
10508
- );
10509
- })
10510
- ]
10511
- }
10512
- ),
10513
- urlName !== "type" && /* @__PURE__ */ jsxRuntime.jsx(AccessControl, { roles: ["admin", "owner"], children: /* @__PURE__ */ jsxRuntime.jsx(
10514
- IconButton$1,
10515
- {
10516
- component: reactRouterDom.Link,
10517
- color: "inherit",
10518
- size: "small",
10519
- to: `/boards?type=${type}`,
10520
- sx: { color: "grey.500" },
10521
- children: /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.BorderColorOutlined, { sx: { fontSize: 16 } })
10522
- }
10523
- ) })
10524
- ] });
10486
+ children: t("all")
10487
+ }
10488
+ ),
10489
+ dataWithDefault == null ? void 0 : dataWithDefault.map((item, index) => {
10490
+ const isActive = urlParams ? !selectAll && (selectTab == null ? void 0 : selectTab.includes(item.id)) : boardId === item.id;
10491
+ return /* @__PURE__ */ jsxRuntime.jsx(
10492
+ material.Button,
10493
+ {
10494
+ onClick: () => handleClick(item),
10495
+ sx: {
10496
+ ...isActive && {
10497
+ backgroundColor: "#ffffff",
10498
+ color: "#030712",
10499
+ border: "1px solid #e5e7eb!important"
10500
+ }
10501
+ },
10502
+ ...rest,
10503
+ children: /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { sx: { display: "flex", alignItems: "center" }, children: [
10504
+ item == null ? void 0 : item.icon,
10505
+ " ",
10506
+ item == null ? void 0 : item.title
10507
+ ] })
10508
+ },
10509
+ index
10510
+ );
10511
+ })
10512
+ ]
10513
+ }
10514
+ ),
10515
+ urlName !== "type" && /* @__PURE__ */ jsxRuntime.jsx(AccessControl, { roles: ["admin", "owner"], children: /* @__PURE__ */ jsxRuntime.jsx(
10516
+ IconButton$1,
10517
+ {
10518
+ component: reactRouterDom.Link,
10519
+ color: "inherit",
10520
+ size: "small",
10521
+ to: `/boards?type=${type}`,
10522
+ sx: { color: "grey.500" },
10523
+ children: /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.BorderColorOutlined, { sx: { fontSize: 16 } })
10524
+ }
10525
+ ) })
10526
+ ] })
10527
+ );
10525
10528
  }
10526
10529
  const Group = css.css`
10527
10530
  display: flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/discuss-kit-ux",
3
- "version": "1.6.170",
3
+ "version": "1.6.171",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -29,8 +29,8 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@arcblock/ws": "^1.18.112",
32
- "@blocklet/editor": "1.6.170",
33
- "@blocklet/labels": "1.6.170",
32
+ "@blocklet/editor": "1.6.171",
33
+ "@blocklet/labels": "1.6.171",
34
34
  "@blocklet/uploader": "^0.0.74",
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": "1c5e61a1ad75ef496f95f777627f9ab66e3248fc"
97
+ "gitHead": "0bdf75fbab659352675e5295115ee697782908aa"
98
98
  }