@next-bricks/ai-portal 0.64.0 → 0.64.2
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/bricks.json +20 -20
- package/dist/chunks/{4820.95bda425.js → 4820.3f60d55c.js} +2 -2
- package/dist/chunks/4820.3f60d55c.js.map +1 -0
- package/dist/chunks/778.850294cf.js +2 -0
- package/dist/chunks/778.850294cf.js.map +1 -0
- package/dist/chunks/{9273.a031c62f.js → 9273.e6feece8.js} +2 -2
- package/dist/chunks/9273.e6feece8.js.map +1 -0
- package/dist/chunks/chat-panel.0735e831.js +2 -0
- package/dist/chunks/chat-panel.0735e831.js.map +1 -0
- package/dist/chunks/{main.cc3dd9a1.js → main.70cff0e5.js} +2 -2
- package/dist/chunks/{main.cc3dd9a1.js.map → main.70cff0e5.js.map} +1 -1
- package/dist/examples.json +14 -14
- package/dist/index.aadd5601.js +2 -0
- package/dist/{index.5b0a4eb5.js.map → index.aadd5601.js.map} +1 -1
- package/dist/manifest.json +132 -126
- package/dist/types.json +861 -854
- package/dist-types/chat-panel/index.d.ts +8 -1
- package/dist-types/chat-stream/AssistantMessage/AssistantMessage.d.ts +5 -3
- package/package.json +2 -2
- package/dist/chunks/4820.95bda425.js.map +0 -1
- package/dist/chunks/778.85eedde5.js +0 -2
- package/dist/chunks/778.85eedde5.js.map +0 -1
- package/dist/chunks/9273.a031c62f.js.map +0 -1
- package/dist/chunks/chat-panel.d451898f.js +0 -2
- package/dist/chunks/chat-panel.d451898f.js.map +0 -1
- package/dist/index.5b0a4eb5.js +0 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ReactNextElement } from "@next-core/react-element";
|
|
3
3
|
import "@next-core/theme";
|
|
4
|
-
import type { ChatPayload, CommandPayload, FileInfo, UploadOptions } from "../shared/interfaces";
|
|
5
4
|
import type { UseBrickConf } from "@next-core/types";
|
|
5
|
+
import type { ChatPayload, CommandPayload, FileInfo, UploadOptions } from "../shared/interfaces";
|
|
6
6
|
export interface ChatPanelProps {
|
|
7
7
|
panelTitle?: string;
|
|
8
8
|
aiEmployeeId?: string;
|
|
@@ -14,6 +14,7 @@ export interface ChatPanelProps {
|
|
|
14
14
|
help?: {
|
|
15
15
|
useBrick: UseBrickConf;
|
|
16
16
|
};
|
|
17
|
+
maskClosable?: boolean;
|
|
17
18
|
}
|
|
18
19
|
/**
|
|
19
20
|
* 弹出式对话面板。
|
|
@@ -33,6 +34,12 @@ export declare class ChatPanel extends ReactNextElement implements ChatPanelProp
|
|
|
33
34
|
accessor help: {
|
|
34
35
|
useBrick: UseBrickConf;
|
|
35
36
|
} | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Whether to close the panel when clicking the mask.
|
|
39
|
+
*
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
42
|
+
accessor maskClosable: boolean | undefined;
|
|
36
43
|
open(): void;
|
|
37
44
|
close(): void;
|
|
38
45
|
setInputValue(content: string): void;
|
|
@@ -2,9 +2,11 @@ import React from "react";
|
|
|
2
2
|
import type { ConversationState, JobState, TaskState } from "../../shared/interfaces.js";
|
|
3
3
|
import type { MessageChunk } from "../interfaces";
|
|
4
4
|
export interface AssistantMessageProps {
|
|
5
|
-
chunks
|
|
6
|
-
scopeState
|
|
5
|
+
chunks?: MessageChunk[];
|
|
6
|
+
scopeState?: ConversationState | TaskState | JobState | undefined;
|
|
7
7
|
isLatest?: boolean;
|
|
8
8
|
isSubTask?: boolean;
|
|
9
|
+
finished?: boolean;
|
|
10
|
+
earlyFinished?: boolean;
|
|
9
11
|
}
|
|
10
|
-
export declare function AssistantMessage({ chunks, scopeState, isLatest, isSubTask, }: AssistantMessageProps): React.JSX.Element;
|
|
12
|
+
export declare function AssistantMessage({ chunks, scopeState, isLatest, isSubTask, finished, earlyFinished, }: AssistantMessageProps): React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/ai-portal",
|
|
3
|
-
"version": "0.64.
|
|
3
|
+
"version": "0.64.2",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/ai-portal",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"@next-bricks/presentational": "*",
|
|
50
50
|
"@next-bricks/vs": "*"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "faa75ba09f8219c78502ae7876ffcc26d3c30e63"
|
|
53
53
|
}
|