@blocklet/discuss-kit-ux 1.6.169 → 1.6.170
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-
|
|
7
|
+
import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, s as stringify, g as getExcerptSync } from "./index-ANEtAk47.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-
|
|
4581
|
+
const Editor = lazy(() => import("./editor-z1JytlS7.mjs"));
|
|
4582
4582
|
function LazyEditor(props) {
|
|
4583
4583
|
const fallback = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4584
4584
|
/* @__PURE__ */ jsx(Skeleton, {}),
|
|
@@ -10461,13 +10461,16 @@ function ButtonGroup({
|
|
|
10461
10461
|
const [selectTab, setSelectTab] = useState(urlParams ? selectedArray : [boardId]);
|
|
10462
10462
|
const [selectAll, setSelectAll] = useState(false);
|
|
10463
10463
|
const updateUrl = (url, newSelectTab) => {
|
|
10464
|
+
const formatNewSelectTab = newSelectTab.filter(Boolean);
|
|
10464
10465
|
if (urlParams) {
|
|
10465
10466
|
setSearchParams({
|
|
10466
10467
|
...searchParams,
|
|
10467
|
-
[url]:
|
|
10468
|
+
[url]: formatNewSelectTab.join(",")
|
|
10468
10469
|
});
|
|
10470
|
+
} else if (formatNewSelectTab.length === 0) {
|
|
10471
|
+
navigate(`/${type}`);
|
|
10469
10472
|
} else {
|
|
10470
|
-
navigate(`/${type}/boards/${
|
|
10473
|
+
navigate(`/${type}/boards/${formatNewSelectTab.join(",")}`);
|
|
10471
10474
|
}
|
|
10472
10475
|
};
|
|
10473
10476
|
const handleClick = (item) => {
|
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-
|
|
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";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import "@mui/material/Box";
|
package/dist/index.umd.js
CHANGED
|
@@ -10398,13 +10398,16 @@ var __publicField = (obj, key, value) => {
|
|
|
10398
10398
|
const [selectTab, setSelectTab] = react.useState(urlParams ? selectedArray : [boardId]);
|
|
10399
10399
|
const [selectAll, setSelectAll] = react.useState(false);
|
|
10400
10400
|
const updateUrl = (url, newSelectTab) => {
|
|
10401
|
+
const formatNewSelectTab = newSelectTab.filter(Boolean);
|
|
10401
10402
|
if (urlParams) {
|
|
10402
10403
|
setSearchParams({
|
|
10403
10404
|
...searchParams,
|
|
10404
|
-
[url]:
|
|
10405
|
+
[url]: formatNewSelectTab.join(",")
|
|
10405
10406
|
});
|
|
10407
|
+
} else if (formatNewSelectTab.length === 0) {
|
|
10408
|
+
navigate(`/${type}`);
|
|
10406
10409
|
} else {
|
|
10407
|
-
navigate(`/${type}/boards/${
|
|
10410
|
+
navigate(`/${type}/boards/${formatNewSelectTab.join(",")}`);
|
|
10408
10411
|
}
|
|
10409
10412
|
};
|
|
10410
10413
|
const handleClick = (item) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/discuss-kit-ux",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.170",
|
|
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.
|
|
33
|
-
"@blocklet/labels": "1.6.
|
|
32
|
+
"@blocklet/editor": "1.6.170",
|
|
33
|
+
"@blocklet/labels": "1.6.170",
|
|
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": "
|
|
97
|
+
"gitHead": "1c5e61a1ad75ef496f95f777627f9ab66e3248fc"
|
|
98
98
|
}
|