@blocklet/discuss-kit-ux 1.6.162 → 1.6.164
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.
- package/dist/components/button-group/button-group.d.ts +4 -3
- package/dist/components/locale/en.d.ts +1 -0
- package/dist/components/locale/index.d.ts +2 -0
- package/dist/components/locale/zh.d.ts +1 -0
- package/dist/{editor-zkz1ucq8.mjs → editor-FzAO_L68.mjs} +1 -1
- package/dist/{index-G56xwIdk.mjs → index-AqROiqZF.mjs} +7 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +6 -2
- package/package.json +6 -6
- /package/dist/components/{emptyStatus → empty-status}/empty-status.d.ts +0 -0
- /package/dist/components/{emptyStatus → empty-status}/index.d.ts +0 -0
|
@@ -7,10 +7,11 @@ interface Props {
|
|
|
7
7
|
data: ButtonItem[];
|
|
8
8
|
theme: string;
|
|
9
9
|
urlName: string;
|
|
10
|
-
defaultButton
|
|
10
|
+
defaultButton?: ButtonItem;
|
|
11
11
|
onSelectTab: (selectTab: string[]) => void;
|
|
12
12
|
type: string;
|
|
13
|
-
|
|
13
|
+
allButton?: boolean;
|
|
14
|
+
urlParams?: boolean;
|
|
14
15
|
}
|
|
15
|
-
export default function ButtonGroup({ data, theme, urlName, defaultButton, urlParams, onSelectTab, type, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default function ButtonGroup({ data, theme, urlName, defaultButton, urlParams, allButton, onSelectTab, type, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
|
|
16
17
|
export {};
|
|
@@ -14,6 +14,7 @@ export declare const translations: {
|
|
|
14
14
|
saveChanges: string;
|
|
15
15
|
sendComment: string;
|
|
16
16
|
showMoreReplies: string;
|
|
17
|
+
all: string;
|
|
17
18
|
deleteMessage: {
|
|
18
19
|
title: string;
|
|
19
20
|
desc: string;
|
|
@@ -55,6 +56,7 @@ export declare const translations: {
|
|
|
55
56
|
saveChanges: string;
|
|
56
57
|
sendComment: string;
|
|
57
58
|
showMoreReplies: string;
|
|
59
|
+
all: string;
|
|
58
60
|
deleteMessage: {
|
|
59
61
|
title: string;
|
|
60
62
|
desc: string;
|
|
@@ -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-AqROiqZF.mjs";
|
|
8
8
|
import "@blocklet/labels";
|
|
9
9
|
import "@mui/material/styles";
|
|
10
10
|
import "@mui/material/Box";
|
|
@@ -4563,7 +4563,7 @@ function Pagination({ page, size = 20, total, onChange, routerMode = true, ...re
|
|
|
4563
4563
|
}
|
|
4564
4564
|
);
|
|
4565
4565
|
}
|
|
4566
|
-
const Editor = lazy(() => import("./editor-
|
|
4566
|
+
const Editor = lazy(() => import("./editor-FzAO_L68.mjs"));
|
|
4567
4567
|
function LazyEditor(props) {
|
|
4568
4568
|
const fallback = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4569
4569
|
/* @__PURE__ */ jsx(Skeleton, {}),
|
|
@@ -4685,6 +4685,7 @@ const en = {
|
|
|
4685
4685
|
saveChanges: "Save Changes",
|
|
4686
4686
|
sendComment: "Comment",
|
|
4687
4687
|
showMoreReplies: "Show more replies",
|
|
4688
|
+
all: "All",
|
|
4688
4689
|
deleteMessage: {
|
|
4689
4690
|
title: "Delete message",
|
|
4690
4691
|
desc: "Do you want to delete this message permanently?"
|
|
@@ -4727,6 +4728,7 @@ const zh = {
|
|
|
4727
4728
|
saveChanges: "保存修改",
|
|
4728
4729
|
sendComment: "评论",
|
|
4729
4730
|
showMoreReplies: "显示更多回复",
|
|
4731
|
+
all: "所有",
|
|
4730
4732
|
deleteMessage: {
|
|
4731
4733
|
title: "删除消息",
|
|
4732
4734
|
desc: "是否要永久删除此消息?"
|
|
@@ -10428,10 +10430,12 @@ function ButtonGroup({
|
|
|
10428
10430
|
urlName,
|
|
10429
10431
|
defaultButton,
|
|
10430
10432
|
urlParams = true,
|
|
10433
|
+
allButton = true,
|
|
10431
10434
|
onSelectTab,
|
|
10432
10435
|
type,
|
|
10433
10436
|
...rest
|
|
10434
10437
|
}) {
|
|
10438
|
+
const { t } = useLocaleContext();
|
|
10435
10439
|
const downSm = useMediaQuery$1((mainTheme) => mainTheme.breakpoints.down("sm"));
|
|
10436
10440
|
const navigate = useNavigate();
|
|
10437
10441
|
const [searchParams, setSearchParams] = useSearchParams();
|
|
@@ -10512,7 +10516,7 @@ function ButtonGroup({
|
|
|
10512
10516
|
mr: 2
|
|
10513
10517
|
},
|
|
10514
10518
|
children: [
|
|
10515
|
-
/* @__PURE__ */ jsx(
|
|
10519
|
+
allButton && /* @__PURE__ */ jsx(
|
|
10516
10520
|
Button$1,
|
|
10517
10521
|
{
|
|
10518
10522
|
onClick: handleSelectAll,
|
|
@@ -10522,7 +10526,7 @@ function ButtonGroup({
|
|
|
10522
10526
|
border: selectAll ? "1px solid #e5e7eb!important" : "1px solid transparent"
|
|
10523
10527
|
},
|
|
10524
10528
|
...rest,
|
|
10525
|
-
children: "
|
|
10529
|
+
children: t("all")
|
|
10526
10530
|
}
|
|
10527
10531
|
),
|
|
10528
10532
|
dataWithDefault == null ? void 0 : dataWithDefault.map((item, index) => {
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { Input, CommentInput, ScrollableEditorWrapper } from './components/input
|
|
|
4
4
|
export * from './components/avatars';
|
|
5
5
|
export * from './components/posts';
|
|
6
6
|
export * from './components/rating';
|
|
7
|
-
export * from './components/
|
|
7
|
+
export * from './components/empty-status';
|
|
8
8
|
export * from './components/blog';
|
|
9
9
|
export * from './components/authz';
|
|
10
10
|
export * from './components/chat';
|
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, c, b, a9, M, P, aj, n, m, a7, R, S, a4, k, Z, $, ad, ag, af, ah, al, J, am, l, p, r, t, d, a5, O, e, X, w, a2, a6, u, ai, an, _, ae, f } 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, c, b, a9, M, P, aj, n, m, a7, R, S, a4, k, Z, $, ad, ag, af, ah, al, J, am, l, p, r, t, d, a5, O, e, X, w, a2, a6, u, ai, an, _, ae, f } from "./index-AqROiqZF.mjs";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import "@mui/material/Box";
|
package/dist/index.umd.js
CHANGED
|
@@ -4622,6 +4622,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4622
4622
|
saveChanges: "Save Changes",
|
|
4623
4623
|
sendComment: "Comment",
|
|
4624
4624
|
showMoreReplies: "Show more replies",
|
|
4625
|
+
all: "All",
|
|
4625
4626
|
deleteMessage: {
|
|
4626
4627
|
title: "Delete message",
|
|
4627
4628
|
desc: "Do you want to delete this message permanently?"
|
|
@@ -4664,6 +4665,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4664
4665
|
saveChanges: "保存修改",
|
|
4665
4666
|
sendComment: "评论",
|
|
4666
4667
|
showMoreReplies: "显示更多回复",
|
|
4668
|
+
all: "所有",
|
|
4667
4669
|
deleteMessage: {
|
|
4668
4670
|
title: "删除消息",
|
|
4669
4671
|
desc: "是否要永久删除此消息?"
|
|
@@ -10365,10 +10367,12 @@ var __publicField = (obj, key, value) => {
|
|
|
10365
10367
|
urlName,
|
|
10366
10368
|
defaultButton,
|
|
10367
10369
|
urlParams = true,
|
|
10370
|
+
allButton = true,
|
|
10368
10371
|
onSelectTab,
|
|
10369
10372
|
type,
|
|
10370
10373
|
...rest
|
|
10371
10374
|
}) {
|
|
10375
|
+
const { t } = context.useLocaleContext();
|
|
10372
10376
|
const downSm = useMediaQuery((mainTheme) => mainTheme.breakpoints.down("sm"));
|
|
10373
10377
|
const navigate = reactRouterDom.useNavigate();
|
|
10374
10378
|
const [searchParams, setSearchParams] = reactRouterDom.useSearchParams();
|
|
@@ -10449,7 +10453,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10449
10453
|
mr: 2
|
|
10450
10454
|
},
|
|
10451
10455
|
children: [
|
|
10452
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
10456
|
+
allButton && /* @__PURE__ */ jsxRuntime.jsx(
|
|
10453
10457
|
material.Button,
|
|
10454
10458
|
{
|
|
10455
10459
|
onClick: handleSelectAll,
|
|
@@ -10459,7 +10463,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10459
10463
|
border: selectAll ? "1px solid #e5e7eb!important" : "1px solid transparent"
|
|
10460
10464
|
},
|
|
10461
10465
|
...rest,
|
|
10462
|
-
children: "
|
|
10466
|
+
children: t("all")
|
|
10463
10467
|
}
|
|
10464
10468
|
),
|
|
10465
10469
|
dataWithDefault == null ? void 0 : dataWithDefault.map((item, index) => {
|
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.164",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@arcblock/ws": "^1.18.
|
|
32
|
-
"@blocklet/editor": "1.6.
|
|
33
|
-
"@blocklet/labels": "1.6.
|
|
34
|
-
"@blocklet/uploader": "^0.0.
|
|
31
|
+
"@arcblock/ws": "^1.18.112",
|
|
32
|
+
"@blocklet/editor": "1.6.164",
|
|
33
|
+
"@blocklet/labels": "1.6.164",
|
|
34
|
+
"@blocklet/uploader": "^0.0.74",
|
|
35
35
|
"@emotion/css": "^11.10.5",
|
|
36
36
|
"@emotion/react": "^11.10.5",
|
|
37
37
|
"@emotion/styled": "^11.10.5",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"resolutions": {
|
|
95
95
|
"react": "^18.2.0"
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "8b2bff5984834171fbceaaf1c24fc53ee18c031f"
|
|
98
98
|
}
|
|
File without changes
|
|
File without changes
|