@blocklet/discuss-kit-ux 1.6.185 → 1.6.187
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/avatars/author-info.d.ts +2 -1
- package/dist/components/avatars/index.d.ts +0 -1
- package/dist/components/chat/channel-group.d.ts +9 -0
- package/dist/components/chat/context.d.ts +1 -0
- package/dist/components/chat/message.d.ts +3 -2
- package/dist/components/chat/time.d.ts +6 -0
- package/dist/components/chat/types.d.ts +4 -0
- package/dist/components/locale/en.d.ts +5 -0
- package/dist/components/locale/index.d.ts +10 -0
- package/dist/components/locale/zh.d.ts +5 -0
- package/dist/{editor-LUBMEeS4.mjs → editor-1S0suIcX.mjs} +3 -3
- package/dist/{index-LsAi57M8.mjs → index-q1fCyaqz.mjs} +616 -311
- package/dist/index.es.js +53 -54
- package/dist/index.umd.js +565 -260
- package/package.json +4 -4
- package/dist/components/avatars/channel-group.d.ts +0 -7
|
@@ -11,6 +11,7 @@ interface Props {
|
|
|
11
11
|
showBadge?: boolean;
|
|
12
12
|
showDID?: boolean;
|
|
13
13
|
profileUse?: boolean;
|
|
14
|
+
children?: React.ReactNode;
|
|
14
15
|
}
|
|
15
|
-
export default function AuthorInfo({ user, createdAt, append, size, responsive, showProfileCard, showBadge, showDID, newTitle, profileUse, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default function AuthorInfo({ user, createdAt, append, size, responsive, showProfileCard, showBadge, showDID, newTitle, profileUse, children, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
|
|
16
17
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { Chat } from './types';
|
|
3
|
+
interface Props {
|
|
4
|
+
chat: Chat;
|
|
5
|
+
size?: 'sm' | 'normal';
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export default function ChannelGroup({ size, chat, children, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -29,6 +29,7 @@ interface ChatContextValue extends ChatState {
|
|
|
29
29
|
deleteMessage: (chatId: string, messageId: string) => Promise<void>;
|
|
30
30
|
refresh: () => Promise<void>;
|
|
31
31
|
orderedChats: ChatType[];
|
|
32
|
+
getLastMessageText: (chat: ChatType) => string;
|
|
32
33
|
}
|
|
33
34
|
export declare const useChatContext: () => ChatContextValue;
|
|
34
35
|
export declare function ChatProvider({ client, activeChatId, children }: ChatProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import type { Chat, Message as MessageType, NotificationMessage as NotificationMessageType } from './types';
|
|
2
2
|
interface MessageProps {
|
|
3
3
|
message: MessageType;
|
|
4
|
+
prevMessage?: MessageType;
|
|
4
5
|
showTime?: boolean;
|
|
5
6
|
}
|
|
6
|
-
export declare function Message({ message, showTime, ...rest }: MessageProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function Message({ message, prevMessage, showTime, ...rest }: MessageProps): import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
interface NotificationMessageProps {
|
|
8
9
|
chat: Chat;
|
|
9
10
|
message: NotificationMessageType;
|
|
10
11
|
prevMessage?: NotificationMessageType;
|
|
11
12
|
}
|
|
12
|
-
export declare function NotificationMessage({ chat, message, prevMessage
|
|
13
|
+
export declare function NotificationMessage({ chat, message, prevMessage }: NotificationMessageProps): import("react/jsx-runtime").JSX.Element;
|
|
13
14
|
export {};
|
|
@@ -13,6 +13,7 @@ declare const _default: {
|
|
|
13
13
|
sendComment: string;
|
|
14
14
|
showMoreReplies: string;
|
|
15
15
|
all: string;
|
|
16
|
+
messages: string;
|
|
16
17
|
deleteMessage: {
|
|
17
18
|
title: string;
|
|
18
19
|
desc: string;
|
|
@@ -41,6 +42,7 @@ declare const _default: {
|
|
|
41
42
|
};
|
|
42
43
|
chat: {
|
|
43
44
|
notification: string;
|
|
45
|
+
reply: string;
|
|
44
46
|
unknown: string;
|
|
45
47
|
chats: string;
|
|
46
48
|
create: string;
|
|
@@ -70,6 +72,9 @@ declare const _default: {
|
|
|
70
72
|
points: string;
|
|
71
73
|
point: string;
|
|
72
74
|
pointUp: string;
|
|
75
|
+
loadMore: string;
|
|
76
|
+
notYetJoinedTheChannel: string;
|
|
77
|
+
typeSomething: string;
|
|
73
78
|
};
|
|
74
79
|
};
|
|
75
80
|
export default _default;
|
|
@@ -15,6 +15,7 @@ export declare const translations: {
|
|
|
15
15
|
sendComment: string;
|
|
16
16
|
showMoreReplies: string;
|
|
17
17
|
all: string;
|
|
18
|
+
messages: string;
|
|
18
19
|
deleteMessage: {
|
|
19
20
|
title: string;
|
|
20
21
|
desc: string;
|
|
@@ -43,6 +44,7 @@ export declare const translations: {
|
|
|
43
44
|
};
|
|
44
45
|
chat: {
|
|
45
46
|
notification: string;
|
|
47
|
+
reply: string;
|
|
46
48
|
unknown: string;
|
|
47
49
|
chats: string;
|
|
48
50
|
create: string;
|
|
@@ -72,6 +74,9 @@ export declare const translations: {
|
|
|
72
74
|
points: string;
|
|
73
75
|
point: string;
|
|
74
76
|
pointUp: string;
|
|
77
|
+
loadMore: string;
|
|
78
|
+
notYetJoinedTheChannel: string;
|
|
79
|
+
typeSomething: string;
|
|
75
80
|
};
|
|
76
81
|
};
|
|
77
82
|
en: {
|
|
@@ -89,6 +94,7 @@ export declare const translations: {
|
|
|
89
94
|
sendComment: string;
|
|
90
95
|
showMoreReplies: string;
|
|
91
96
|
all: string;
|
|
97
|
+
messages: string;
|
|
92
98
|
deleteMessage: {
|
|
93
99
|
title: string;
|
|
94
100
|
desc: string;
|
|
@@ -117,6 +123,7 @@ export declare const translations: {
|
|
|
117
123
|
};
|
|
118
124
|
chat: {
|
|
119
125
|
notification: string;
|
|
126
|
+
reply: string;
|
|
120
127
|
unknown: string;
|
|
121
128
|
chats: string;
|
|
122
129
|
create: string;
|
|
@@ -146,6 +153,9 @@ export declare const translations: {
|
|
|
146
153
|
points: string;
|
|
147
154
|
point: string;
|
|
148
155
|
pointUp: string;
|
|
156
|
+
loadMore: string;
|
|
157
|
+
notYetJoinedTheChannel: string;
|
|
158
|
+
typeSomething: string;
|
|
149
159
|
};
|
|
150
160
|
};
|
|
151
161
|
};
|
|
@@ -14,6 +14,7 @@ declare const _default: {
|
|
|
14
14
|
sendComment: string;
|
|
15
15
|
showMoreReplies: string;
|
|
16
16
|
all: string;
|
|
17
|
+
messages: string;
|
|
17
18
|
deleteMessage: {
|
|
18
19
|
title: string;
|
|
19
20
|
desc: string;
|
|
@@ -42,6 +43,7 @@ declare const _default: {
|
|
|
42
43
|
};
|
|
43
44
|
chat: {
|
|
44
45
|
notification: string;
|
|
46
|
+
reply: string;
|
|
45
47
|
unknown: string;
|
|
46
48
|
chats: string;
|
|
47
49
|
create: string;
|
|
@@ -71,6 +73,9 @@ declare const _default: {
|
|
|
71
73
|
points: string;
|
|
72
74
|
point: string;
|
|
73
75
|
pointUp: string;
|
|
76
|
+
loadMore: string;
|
|
77
|
+
notYetJoinedTheChannel: string;
|
|
78
|
+
typeSomething: string;
|
|
74
79
|
};
|
|
75
80
|
};
|
|
76
81
|
export default _default;
|
|
@@ -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-q1fCyaqz.mjs";
|
|
8
8
|
import "@blocklet/labels";
|
|
9
9
|
import "@mui/material/styles";
|
|
10
10
|
import "@mui/material/Box";
|
|
@@ -43,10 +43,9 @@ import "@mui/icons-material/BrokenImage";
|
|
|
43
43
|
import "@iconify/react";
|
|
44
44
|
import "@arcblock/ux/lib/Empty";
|
|
45
45
|
import "@arcblock/did-connect/lib/Session";
|
|
46
|
-
import "@arcblock/did-connect/lib/Address";
|
|
47
46
|
import "@mui/icons-material/NotificationsActiveOutlined";
|
|
48
|
-
import "@mui/icons-material/Groups2Rounded";
|
|
49
47
|
import "@blocklet/editor/lib/ext/CheckboxPlugin";
|
|
48
|
+
import "@arcblock/did-connect/lib/Address";
|
|
50
49
|
import "@mui/material/MenuItem";
|
|
51
50
|
import "clsx";
|
|
52
51
|
import "@mui/material/IconButton";
|
|
@@ -62,6 +61,7 @@ import "mitt";
|
|
|
62
61
|
import "@mui/material/CircularProgress";
|
|
63
62
|
import "react-helmet";
|
|
64
63
|
import "react-flip-toolkit";
|
|
64
|
+
import "@mui/material/colors/grey";
|
|
65
65
|
import "@mui/material/Fab";
|
|
66
66
|
import "lodash/debounce";
|
|
67
67
|
import "@mui/material/TextField";
|