@mujian/js-sdk 0.0.6-beta.9 → 0.0.6-beta.mjv.67
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/events/index.d.ts +30 -2
- package/dist/index.d.ts +13 -39
- package/dist/index.js +323 -15
- package/dist/modules/ai/chat/chat.d.ts +46 -4
- package/dist/modules/ai/chat/index.d.ts +1 -1
- package/dist/modules/ai/chat/message/index.d.ts +4 -0
- package/dist/modules/ai/index.d.ts +3 -2
- package/dist/modules/ai/openai/chat.d.ts +25 -0
- package/dist/modules/ai/openai/completions.d.ts +19 -0
- package/dist/modules/ai/openai/images.d.ts +19 -0
- package/dist/modules/ai/openai/index.d.ts +4 -0
- package/dist/modules/ai/openai/responses.d.ts +20 -0
- package/dist/modules/ai/text/index.d.ts +9 -2
- package/dist/modules/utils/clipboard.d.ts +5 -0
- package/dist/modules/utils/index.d.ts +4 -0
- package/dist/react/chat/useChat/index.d.ts +7 -3
- package/dist/react/chat/useChat/inner/chatStreaming.d.ts +1 -1
- package/dist/react/chat/useChat/message.d.ts +25 -13
- package/dist/react/components/MdRenderer/index.d.ts +4 -3
- package/dist/react/components/MdRenderer/utils/height.d.ts +0 -0
- package/dist/react/components/MdRenderer/utils/iframe.d.ts +9 -0
- package/dist/react/components/MdRenderer/utils/scripts.d.ts +4 -0
- package/dist/react/components/MujianSpinner/index.d.ts +7 -0
- package/dist/react/components/index.d.ts +1 -0
- package/dist/react.css +65 -4
- package/dist/react.js +687 -112
- package/dist/types/index.d.ts +38 -0
- package/dist/umd/index.js +792 -0
- package/dist/umd/index.js.LICENSE.txt +7 -0
- package/dist/umd/react.css +343 -0
- package/dist/umd/react.js +8881 -0
- package/dist/umd/react.js.LICENSE.txt +31 -0
- package/dist/utils/log.d.ts +4 -0
- package/package.json +4 -1
- /package/dist/react/components/MdRenderer/{utils.d.ts → utils/md.d.ts} +0 -0
package/dist/types/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export type ProjectInfo = {
|
|
|
12
12
|
starCount?: number;
|
|
13
13
|
messageCount?: number;
|
|
14
14
|
};
|
|
15
|
+
config?: ProjectConfig;
|
|
15
16
|
};
|
|
16
17
|
export type PersonaInfo = {
|
|
17
18
|
name: string;
|
|
@@ -25,3 +26,40 @@ export type ModelInfo = {
|
|
|
25
26
|
description?: string;
|
|
26
27
|
price: number;
|
|
27
28
|
};
|
|
29
|
+
export type ProjectConfig = {
|
|
30
|
+
qrConfig?: QuickReplyConfig;
|
|
31
|
+
customCss?: string;
|
|
32
|
+
customJs?: string;
|
|
33
|
+
};
|
|
34
|
+
export type QuickReply = {
|
|
35
|
+
id: number;
|
|
36
|
+
showLabel: boolean;
|
|
37
|
+
label: string;
|
|
38
|
+
title: string;
|
|
39
|
+
message: string;
|
|
40
|
+
contextList: string[];
|
|
41
|
+
preventAutoExecute: boolean;
|
|
42
|
+
isHidden: boolean;
|
|
43
|
+
executeOnStartup: boolean;
|
|
44
|
+
executeOnUser: boolean;
|
|
45
|
+
executeOnAi: boolean;
|
|
46
|
+
executeOnChatChange: boolean;
|
|
47
|
+
executeOnGroupMemberDraft: boolean;
|
|
48
|
+
executeOnNewChat: boolean;
|
|
49
|
+
automationId: string;
|
|
50
|
+
};
|
|
51
|
+
export type QuickReplyConfig = {
|
|
52
|
+
version: number;
|
|
53
|
+
name: string;
|
|
54
|
+
disableSend: boolean;
|
|
55
|
+
placeBeforeInput: boolean;
|
|
56
|
+
injectInput: boolean;
|
|
57
|
+
color: string;
|
|
58
|
+
onlyBorderColor: boolean;
|
|
59
|
+
qrList: Array<QuickReply>;
|
|
60
|
+
idIndex: number;
|
|
61
|
+
};
|
|
62
|
+
export type Cursor = {
|
|
63
|
+
index: number;
|
|
64
|
+
messageId: string;
|
|
65
|
+
};
|