@glodon-aiot/agent-cli-ui 3.3.0 → 3.3.1-beta.1
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/es/packages/react-components/dist/es/index.mjs +1 -1
- package/dist/es/src/style10.css +1 -1
- package/dist/es/src/style11.css +1 -1
- package/dist/es/src/style12.css +1 -1
- package/dist/es/src/style13.css +1 -1
- package/dist/es/src/style14.css +1 -1
- package/dist/es/src/style15.css +1 -1
- package/dist/es/src/style20.css +1 -1
- package/dist/es/src/style21.css +1 -1
- package/dist/es/src/style22.css +1 -1
- package/dist/es/src/style24.css +1 -1
- package/dist/es/src/style26.css +1 -1
- package/dist/es/src/style27.css +1 -1
- package/dist/es/src/style28.css +1 -1
- package/dist/es/src/style3.css +1 -1
- package/dist/es/src/style4.css +1 -1
- package/dist/es/src/style5.css +1 -1
- package/dist/es/src/style6.css +1 -1
- package/dist/es/src/style7.css +1 -1
- package/dist/es/src/style8.css +1 -1
- package/dist/es/src/style9.css +1 -1
- package/dist/lib/index.js +1 -1
- package/package.json +3 -3
- package/dist/src/ConnectToNetwork/index.d.ts +0 -13
- package/dist/src/ConnectToNetwork_bac/index.d.ts +0 -13
- package/dist/src/Dialog/ChatEmptyView/index.d.ts +0 -6
- package/dist/src/Dialog/ConnectToNetwork/index.d.ts +0 -14
- package/dist/src/Dialog/FileCard/index.d.ts +0 -22
- package/dist/src/Dialog/FileItem/index.d.ts +0 -11
- package/dist/src/Dialog/FilePreview/index.d.ts +0 -20
- package/dist/src/Dialog/Greeting/index.d.ts +0 -7
- package/dist/src/Dialog/HistoryContent/index.d.ts +0 -5
- package/dist/src/Dialog/HistoryItem/FileItem/index.d.ts +0 -11
- package/dist/src/Dialog/HistoryItem/InputProgress/index.d.ts +0 -7
- package/dist/src/Dialog/HistoryItem/ReferCollapse/index.d.ts +0 -8
- package/dist/src/Dialog/HistoryItem/ReferCollapsea/index.d.ts +0 -8
- package/dist/src/Dialog/HistoryItem/SearchReference/index.d.ts +0 -10
- package/dist/src/Dialog/HistoryItem/SessionAction/index.d.ts +0 -13
- package/dist/src/Dialog/HistoryItem/SessionRefer/ReferItem/index.d.ts +0 -9
- package/dist/src/Dialog/HistoryItem/SessionRefer/index.d.ts +0 -8
- package/dist/src/Dialog/HistoryItem/SessionRelated/index.d.ts +0 -9
- package/dist/src/Dialog/HistoryItem/index.d.ts +0 -18
- package/dist/src/Dialog/InputProgress/index.d.ts +0 -7
- package/dist/src/Dialog/KnowledgeDoc/index.d.ts +0 -9
- package/dist/src/Dialog/KnowledgeList/KnowledgeSelect/index.d.ts +0 -12
- package/dist/src/Dialog/KnowledgeList/index.d.ts +0 -12
- package/dist/src/Dialog/PromptManager/PromptList/EditPromptModal/index.d.ts +0 -11
- package/dist/src/Dialog/PromptManager/PromptList/PrivatePromptList.d.ts +0 -12
- package/dist/src/Dialog/PromptManager/PromptList/PromptListItem.d.ts +0 -13
- package/dist/src/Dialog/PromptManager/PromptList/PublicPromptList.d.ts +0 -12
- package/dist/src/Dialog/PromptManager/index.d.ts +0 -13
- package/dist/src/Dialog/PromptSetting/index.d.ts +0 -15
- package/dist/src/Dialog/Recommend/RecommendItem.d.ts +0 -12
- package/dist/src/Dialog/Recommend/index.d.ts +0 -14
- package/dist/src/Dialog/ReferCollapse/index.d.ts +0 -8
- package/dist/src/Dialog/SearchReference/index.d.ts +0 -10
- package/dist/src/Dialog/SessionAction/index.d.ts +0 -13
- package/dist/src/Dialog/SessionListDrawer/HistorySessionList/NameEditPanel.d.ts +0 -9
- package/dist/src/Dialog/SessionListDrawer/HistorySessionList/SessionItem.d.ts +0 -16
- package/dist/src/Dialog/SessionListDrawer/HistorySessionList/index.d.ts +0 -9
- package/dist/src/Dialog/SessionListDrawer/index.d.ts +0 -9
- package/dist/src/Dialog/SessionRefer/ReferItem/index.d.ts +0 -9
- package/dist/src/Dialog/SessionRefer/index.d.ts +0 -8
- package/dist/src/Dialog/SessionRelated/index.d.ts +0 -9
- package/dist/src/Dialog/Tools/ConnectToNetwork/index.d.ts +0 -14
- package/dist/src/Dialog/Tools/PromptManager/PromptList/EditPromptModal/index.d.ts +0 -11
- package/dist/src/Dialog/Tools/PromptManager/PromptList/PrivatePromptList.d.ts +0 -12
- package/dist/src/Dialog/Tools/PromptManager/PromptList/PromptListItem.d.ts +0 -13
- package/dist/src/Dialog/Tools/PromptManager/PromptList/PublicPromptList.d.ts +0 -12
- package/dist/src/Dialog/Tools/PromptManager/index.d.ts +0 -13
- package/dist/src/Dialog/Tools/SessionListDrawer/HistorySessionList/NameEditPanel.d.ts +0 -9
- package/dist/src/Dialog/Tools/SessionListDrawer/HistorySessionList/SessionItem.d.ts +0 -16
- package/dist/src/Dialog/Tools/SessionListDrawer/HistorySessionList/index.d.ts +0 -9
- package/dist/src/Dialog/Tools/SessionListDrawer/index.d.ts +0 -9
- package/dist/src/Dialog/Tools/UploadKnowledgeFiles/ClearModal/index.d.ts +0 -7
- package/dist/src/Dialog/Tools/UploadKnowledgeFiles/FileCard/index.d.ts +0 -22
- package/dist/src/Dialog/Tools/UploadKnowledgeFiles/index.d.ts +0 -22
- package/dist/src/Dialog/UploadFiles/ClearModal/index.d.ts +0 -7
- package/dist/src/Dialog/UploadFiles/index.d.ts +0 -21
- package/dist/src/Dialog/UploadFilesa/ClearModal/index.d.ts +0 -7
- package/dist/src/Dialog/UploadFilesa/index.d.ts +0 -21
- package/dist/src/Dialog/UploadKnowledgeFiles/ClearModal/index.d.ts +0 -7
- package/dist/src/Dialog/UploadKnowledgeFiles/index.d.ts +0 -22
- package/dist/src/FileCard/index.d.ts +0 -21
- package/dist/src/FileCard-bac/index.d.ts +0 -21
- package/dist/src/FileItem/index.d.ts +0 -11
- package/dist/src/Greeting/index.d.ts +0 -7
- package/dist/src/Greeting-bac/index.d.ts +0 -7
- package/dist/src/Iconfont/font_4108228_8te6zfkclqu.d.ts +0 -0
- package/dist/src/Iconfont/font_4108228_z72fskklg2.d.ts +0 -0
- package/dist/src/Iconfont/font_4439177_7rytwlvbmjj.d.ts +0 -0
- package/dist/src/Iconfont/index.d.ts +0 -2
- package/dist/src/InputProgress/index.d.ts +0 -7
- package/dist/src/components/Copy/index.d.ts +0 -5
- package/dist/src/components/Markdown/ATag/index.d.ts +0 -2
- package/dist/src/components/Markdown/Code/index.d.ts +0 -2
- package/dist/src/components/Markdown/Image/index.d.ts +0 -2
- package/dist/src/components/Markdown/Video/index.d.ts +0 -2
- package/dist/src/components/Markdown/index.d.ts +0 -7
- package/dist/src/utils/clipboard.d.ts +0 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glodon-aiot/agent-cli-ui",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.1-beta.1",
|
|
4
4
|
"module": "./dist/es/index.mjs",
|
|
5
5
|
"main": "./dist/lib/index.js",
|
|
6
6
|
"typings": "./dist/src/index.d.ts",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@ant-design/icons": "^5.3.4",
|
|
37
|
-
"@glodon-aiot/apis": "^3.3.
|
|
38
|
-
"@glodon-aiot/bot-client-sdk": "^3.3.
|
|
37
|
+
"@glodon-aiot/apis": "^3.3.1-beta.1",
|
|
38
|
+
"@glodon-aiot/bot-client-sdk": "^3.3.1-beta.1",
|
|
39
39
|
"@matejmazur/react-mathjax": "^0.1.10",
|
|
40
40
|
"@react-pdf-viewer/core": "^3.12.0",
|
|
41
41
|
"@react-pdf-viewer/default-layout": "^3.12.0",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export declare enum ActionColors {
|
|
3
|
-
default = "#070C14",
|
|
4
|
-
highlight = "#B452FF"
|
|
5
|
-
}
|
|
6
|
-
interface ConnectToNetworkProps {
|
|
7
|
-
sessionId?: string;
|
|
8
|
-
netStatus: boolean;
|
|
9
|
-
enable: boolean;
|
|
10
|
-
onNetStatusChange: (status: boolean) => any;
|
|
11
|
-
}
|
|
12
|
-
declare const ConnectToNetwork: React.FC<ConnectToNetworkProps>;
|
|
13
|
-
export default ConnectToNetwork;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export declare enum ActionColors {
|
|
3
|
-
default = "#070C14",
|
|
4
|
-
highlight = "#B452FF"
|
|
5
|
-
}
|
|
6
|
-
interface ConnectToNetworkProps {
|
|
7
|
-
sessionId?: string;
|
|
8
|
-
netStatus: boolean;
|
|
9
|
-
enable: boolean;
|
|
10
|
-
onNetStatusChange: (status: boolean) => any;
|
|
11
|
-
}
|
|
12
|
-
declare const ConnectToNetwork: React.FC<ConnectToNetworkProps>;
|
|
13
|
-
export default ConnectToNetwork;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export declare enum ActionColors {
|
|
3
|
-
default = "#070C14",
|
|
4
|
-
highlight = "#B452FF"
|
|
5
|
-
}
|
|
6
|
-
interface ConnectToNetworkProps {
|
|
7
|
-
sessionId?: string;
|
|
8
|
-
netStatus: boolean;
|
|
9
|
-
enable: boolean;
|
|
10
|
-
disabledTip?: string;
|
|
11
|
-
onNetStatusChange: (status: boolean) => any;
|
|
12
|
-
}
|
|
13
|
-
declare const ConnectToNetwork: React.FC<ConnectToNetworkProps>;
|
|
14
|
-
export default ConnectToNetwork;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, FC } from 'react';
|
|
2
|
-
import { KnowledgeFileMetadata, KnowledgeFileStatus } from '@glodon-aiot/apis';
|
|
3
|
-
interface FileCardProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
style?: CSSProperties;
|
|
6
|
-
id?: string;
|
|
7
|
-
url?: string;
|
|
8
|
-
uploading?: boolean;
|
|
9
|
-
file?: any;
|
|
10
|
-
actions?: {
|
|
11
|
-
upload?: (file: File) => Promise<string>;
|
|
12
|
-
remove?: (file?: File | KnowledgeFileMetadata, id?: string) => void;
|
|
13
|
-
download?: (file?: File | KnowledgeFileMetadata, id?: string) => void;
|
|
14
|
-
checkStatus?: (id: string) => Promise<KnowledgeFileStatus>;
|
|
15
|
-
preview?: (file: File) => void;
|
|
16
|
-
};
|
|
17
|
-
onUrlChange?: (url: string) => void;
|
|
18
|
-
onStatusChange?: (status: KnowledgeFileStatus) => void;
|
|
19
|
-
}
|
|
20
|
-
export type FileCardStatus = 'processing' | 'done' | 'error';
|
|
21
|
-
declare const FileCard: FC<FileCardProps>;
|
|
22
|
-
export default FileCard;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { KnowledgeFileMetadata } from '@glodon-aiot/apis';
|
|
3
|
-
import { Session } from '@glodon-aiot/agent-cli-sdk';
|
|
4
|
-
interface FileItemProp {
|
|
5
|
-
currentSession?: Session;
|
|
6
|
-
fileId?: string;
|
|
7
|
-
file?: KnowledgeFileMetadata;
|
|
8
|
-
docViewerUrl?: string;
|
|
9
|
-
}
|
|
10
|
-
declare const FileItem: FC<FileItemProp>;
|
|
11
|
-
export default FileItem;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, FC } from 'react';
|
|
2
|
-
import { KnowledgeFileMetadata, AecKnowledgeFileStatus } from '@glodon-aiot/apis';
|
|
3
|
-
interface FileCardProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
style?: CSSProperties;
|
|
6
|
-
id?: string;
|
|
7
|
-
url?: string;
|
|
8
|
-
uploading?: boolean;
|
|
9
|
-
file?: File | KnowledgeFileMetadata;
|
|
10
|
-
actions?: {
|
|
11
|
-
upload?: (file: File) => Promise<string>;
|
|
12
|
-
remove?: (file?: File | KnowledgeFileMetadata, id?: string) => void;
|
|
13
|
-
checkStatus?: (id: string) => Promise<AecKnowledgeFileStatus>;
|
|
14
|
-
};
|
|
15
|
-
onUrlChange?: (url: string) => void;
|
|
16
|
-
onStatusChange?: (status: AecKnowledgeFileStatus) => void;
|
|
17
|
-
}
|
|
18
|
-
export type FileCardStatus = 'processing' | 'done' | 'error';
|
|
19
|
-
declare const FileCard: FC<FileCardProps>;
|
|
20
|
-
export default FileCard;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { KnowledgeFileMetadata } from '@glodon-aiot/apis';
|
|
3
|
-
import { Session } from '@glodon-aiot/agent-cli-sdk';
|
|
4
|
-
interface FileItemProp {
|
|
5
|
-
currentSession?: Session;
|
|
6
|
-
fileId?: string;
|
|
7
|
-
file?: KnowledgeFileMetadata;
|
|
8
|
-
docViewerUrl?: string;
|
|
9
|
-
}
|
|
10
|
-
declare const FileItem: FC<FileItemProp>;
|
|
11
|
-
export default FileItem;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IHistory, ISearchReference } from '@glodon-aiot/apis';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
interface SearchReferenceProps {
|
|
4
|
-
history: IHistory;
|
|
5
|
-
openTarget?: string;
|
|
6
|
-
container?: HTMLElement;
|
|
7
|
-
onShowList?: (list: ISearchReference[], messageId: string) => void;
|
|
8
|
-
}
|
|
9
|
-
declare const SearchReference: React.FC<SearchReferenceProps>;
|
|
10
|
-
export default SearchReference;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { IHistory } from '@glodon-aiot/apis';
|
|
3
|
-
import { Session } from '@glodon-aiot/agent-cli-sdk';
|
|
4
|
-
interface SessionActionProps {
|
|
5
|
-
appId: string;
|
|
6
|
-
sessionId?: string;
|
|
7
|
-
isLastHistory?: boolean;
|
|
8
|
-
history: IHistory;
|
|
9
|
-
currentSession?: Session;
|
|
10
|
-
onAgainClick?: VoidFunction;
|
|
11
|
-
}
|
|
12
|
-
declare const SessionAction: React.FC<SessionActionProps>;
|
|
13
|
-
export default SessionAction;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FC, Key } from 'react';
|
|
2
|
-
import { IAecReference as IReference } from '@glodon-aiot/apis';
|
|
3
|
-
interface ReferItemProps {
|
|
4
|
-
data: IReference;
|
|
5
|
-
loadPage?: (knowledgeId: string, fileId: string, textId: string) => Promise<Key>;
|
|
6
|
-
onClick: (data: IReference, page?: Key) => void;
|
|
7
|
-
}
|
|
8
|
-
declare const ReferItem: FC<ReferItemProps>;
|
|
9
|
-
export default ReferItem;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { IHistory } from '@glodon-aiot/apis';
|
|
3
|
-
interface SessionRelatedProps {
|
|
4
|
-
history?: IHistory;
|
|
5
|
-
onRelatedClick?: (val: any) => void;
|
|
6
|
-
relatedQuesion: string[];
|
|
7
|
-
}
|
|
8
|
-
declare const SessionRelated: React.FC<SessionRelatedProps>;
|
|
9
|
-
export default SessionRelated;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { IHistory, IApplication } from '@glodon-aiot/apis';
|
|
3
|
-
import { Session } from '@glodon-aiot/agent-cli-sdk';
|
|
4
|
-
interface HistoryItemProps {
|
|
5
|
-
application: IApplication;
|
|
6
|
-
currentSession?: Session;
|
|
7
|
-
isLastHistory?: boolean;
|
|
8
|
-
history: IHistory;
|
|
9
|
-
onRelatedClick?: (val: any) => void;
|
|
10
|
-
onAgainClick?: VoidFunction;
|
|
11
|
-
onEditClick?: (val: string) => void;
|
|
12
|
-
isLoading?: boolean;
|
|
13
|
-
docViewerUrl?: string;
|
|
14
|
-
actions?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export declare const isResultExec: (result?: string) => boolean;
|
|
17
|
-
declare const HistoryItem: React.FC<HistoryItemProps>;
|
|
18
|
-
export default HistoryItem;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { IAecReference as IReference } from '@glodon-aiot/apis/src/aecpilot';
|
|
3
|
-
interface KnowledgeDocProps {
|
|
4
|
-
reference: IReference;
|
|
5
|
-
index: number;
|
|
6
|
-
type?: string;
|
|
7
|
-
}
|
|
8
|
-
declare const KnowledgeDoc: React.FC<KnowledgeDocProps>;
|
|
9
|
-
export default KnowledgeDoc;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { CheckboxValueType } from 'antd/es/checkbox/Group';
|
|
3
|
-
import { IKnowledge } from '@glodon-aiot/apis';
|
|
4
|
-
interface KnowledgeSelectProps {
|
|
5
|
-
disabled: boolean;
|
|
6
|
-
checkedValues: CheckboxValueType[];
|
|
7
|
-
currKnowledgeList: IKnowledge[];
|
|
8
|
-
selectCount: number;
|
|
9
|
-
onSelectChange: (checkedValues: CheckboxValueType[]) => void;
|
|
10
|
-
}
|
|
11
|
-
declare const KnowledgeSelect: React.FC<KnowledgeSelectProps>;
|
|
12
|
-
export default KnowledgeSelect;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { default as React, Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import { IApplication, IKnowledge } from '@glodon-aiot/apis';
|
|
3
|
-
import { Session } from '@glodon-aiot/agent-cli-sdk';
|
|
4
|
-
interface AgentHeaderProps {
|
|
5
|
-
application?: IApplication;
|
|
6
|
-
currentSession?: Session;
|
|
7
|
-
setCurrentSession?: Dispatch<SetStateAction<Session | undefined>>;
|
|
8
|
-
reload?: VoidFunction;
|
|
9
|
-
setCheckKnowledges?: Dispatch<SetStateAction<IKnowledge[] | undefined>>;
|
|
10
|
-
}
|
|
11
|
-
declare const AgentHeader: React.FC<AgentHeaderProps>;
|
|
12
|
-
export default AgentHeader;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { IAecPrompt as IPrompt } from '@glodon-aiot/apis';
|
|
3
|
-
interface EditPromptModalProps {
|
|
4
|
-
appId: string;
|
|
5
|
-
isvisible: boolean;
|
|
6
|
-
record?: IPrompt;
|
|
7
|
-
onClose: () => void;
|
|
8
|
-
afterPromptChange?: (data: IPrompt) => void;
|
|
9
|
-
}
|
|
10
|
-
declare const EditPromptModal: React.FC<EditPromptModalProps>;
|
|
11
|
-
export default EditPromptModal;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IAecPrompt as IPrompt } from '@glodon-aiot/apis';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
interface PrivatePromptListProps {
|
|
4
|
-
appId: string;
|
|
5
|
-
data?: IPrompt[];
|
|
6
|
-
search?: string;
|
|
7
|
-
onItemClick?: (data: IPrompt) => void;
|
|
8
|
-
onChange?: (list: IPrompt[]) => void;
|
|
9
|
-
onRefresh?: VoidFunction;
|
|
10
|
-
}
|
|
11
|
-
declare const PrivatePromptList: FC<PrivatePromptListProps>;
|
|
12
|
-
export default PrivatePromptList;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IAecPrompt as IPrompt, IPromptStatus } from '@glodon-aiot/apis';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
interface PromptListItemProps {
|
|
4
|
-
appId: string;
|
|
5
|
-
data: IPrompt;
|
|
6
|
-
highlight?: string;
|
|
7
|
-
onEdit?: (data: IPrompt) => void;
|
|
8
|
-
onDelete?: (id: string) => void;
|
|
9
|
-
onClick?: (data: IPrompt) => void;
|
|
10
|
-
onStatusChange?: (status: IPromptStatus, prompt: IPrompt) => void;
|
|
11
|
-
}
|
|
12
|
-
declare const PromptListItem: FC<PromptListItemProps>;
|
|
13
|
-
export default PromptListItem;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IAecPrompt as IPrompt } from '@glodon-aiot/apis';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
interface PublicPromptListProps {
|
|
4
|
-
appId: string;
|
|
5
|
-
data?: IPrompt[];
|
|
6
|
-
search?: string;
|
|
7
|
-
onItemClick?: (data: IPrompt) => void;
|
|
8
|
-
onChange?: (list: IPrompt[]) => void;
|
|
9
|
-
onRefresh?: VoidFunction;
|
|
10
|
-
}
|
|
11
|
-
declare const PublicPromptList: FC<PublicPromptListProps>;
|
|
12
|
-
export default PublicPromptList;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { IAecPrompt as IPrompt } from '@glodon-aiot/apis';
|
|
3
|
-
interface PromptManagerProps {
|
|
4
|
-
appId: string;
|
|
5
|
-
list?: IPrompt[];
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
search?: string;
|
|
8
|
-
open?: boolean;
|
|
9
|
-
onClose?: VoidFunction;
|
|
10
|
-
onPromptSelect?: (data: IPrompt) => void;
|
|
11
|
-
}
|
|
12
|
-
declare const PromptManager: FC<PromptManagerProps>;
|
|
13
|
-
export default PromptManager;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { default as React, Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import { IAecSessionPrompt as ISessionPrompt } from '@glodon-aiot/apis';
|
|
3
|
-
import { Session } from '@glodon-aiot/agent-cli-sdk';
|
|
4
|
-
interface PromptSettingProps {
|
|
5
|
-
appId: string;
|
|
6
|
-
currentSession?: Session;
|
|
7
|
-
setPromptVariables: Dispatch<SetStateAction<ISessionPrompt[]>>;
|
|
8
|
-
promptVariables: ISessionPrompt[];
|
|
9
|
-
setCurrentSession?: Dispatch<SetStateAction<Session | undefined>>;
|
|
10
|
-
}
|
|
11
|
-
export interface PromptSettingtRef {
|
|
12
|
-
clear: () => void;
|
|
13
|
-
}
|
|
14
|
-
declare const PromptSetting: React.ForwardRefExoticComponent<PromptSettingProps & React.RefAttributes<PromptSettingtRef>>;
|
|
15
|
-
export default PromptSetting;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { default as React, Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import { IQuestion } from '@glodon-aiot/apis';
|
|
3
|
-
interface RecommendItemProps {
|
|
4
|
-
item: IQuestion;
|
|
5
|
-
isOnlyQuestion: boolean;
|
|
6
|
-
isRecommendClearing?: boolean;
|
|
7
|
-
question?: IQuestion;
|
|
8
|
-
setQuestion: Dispatch<SetStateAction<IQuestion | undefined>>;
|
|
9
|
-
onItemClick?: (question?: IQuestion) => void;
|
|
10
|
-
}
|
|
11
|
-
declare const RecommendItem: React.FC<RecommendItemProps>;
|
|
12
|
-
export default RecommendItem;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { IQuestion } from '@glodon-aiot/apis';
|
|
3
|
-
interface RecommendProps {
|
|
4
|
-
sid?: string;
|
|
5
|
-
data?: IQuestion[];
|
|
6
|
-
isRecommendClearing?: boolean;
|
|
7
|
-
onChange?: (question: IQuestion) => void;
|
|
8
|
-
onItemClick?: (question?: IQuestion) => void;
|
|
9
|
-
}
|
|
10
|
-
export interface RecommendRef {
|
|
11
|
-
clear: () => void;
|
|
12
|
-
}
|
|
13
|
-
declare const Recommend: React.ForwardRefExoticComponent<RecommendProps & React.RefAttributes<RecommendRef>>;
|
|
14
|
-
export default Recommend;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IHistory, ISearchReference } from '@glodon-aiot/apis';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
interface SearchReferenceProps {
|
|
4
|
-
history: IHistory;
|
|
5
|
-
openTarget?: string;
|
|
6
|
-
container?: HTMLElement;
|
|
7
|
-
onShowList?: (list: ISearchReference[], messageId: string) => void;
|
|
8
|
-
}
|
|
9
|
-
declare const SearchReference: React.FC<SearchReferenceProps>;
|
|
10
|
-
export default SearchReference;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { IHistory } from '@glodon-aiot/apis';
|
|
3
|
-
import { Session } from '@glodon-aiot/agent-cli-sdk';
|
|
4
|
-
interface SessionActionProps {
|
|
5
|
-
appId: string;
|
|
6
|
-
sessionId?: string;
|
|
7
|
-
isLastHistory?: boolean;
|
|
8
|
-
history: IHistory;
|
|
9
|
-
currentSession?: Session;
|
|
10
|
-
onAgainClick?: VoidFunction;
|
|
11
|
-
}
|
|
12
|
-
declare const SessionAction: React.FC<SessionActionProps>;
|
|
13
|
-
export default SessionAction;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { Session } from '@glodon-aiot/agent-cli-sdk';
|
|
3
|
-
interface NameEditPanelProps {
|
|
4
|
-
session: Session;
|
|
5
|
-
onChangeEditStatus: (sessionId: any, status: any) => void;
|
|
6
|
-
onEditNameConfirm: (session: any, value: any) => void;
|
|
7
|
-
}
|
|
8
|
-
declare const NameEditPanel: FC<NameEditPanelProps>;
|
|
9
|
-
export default NameEditPanel;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { Session } from '@glodon-aiot/agent-cli-sdk';
|
|
3
|
-
interface SessionItemProps {
|
|
4
|
-
session: Session;
|
|
5
|
-
index: number;
|
|
6
|
-
currentSessionId: string;
|
|
7
|
-
onChangeSession: (session: any) => void;
|
|
8
|
-
onDelSession: (session: any, e: any) => void;
|
|
9
|
-
onTopSession: (session: any, status: any) => void;
|
|
10
|
-
onEditNameConfirm: (session: any, value: string) => void;
|
|
11
|
-
editSessionId: string;
|
|
12
|
-
isEdit: boolean;
|
|
13
|
-
onChangeEditStatus: (sessionId: any, status: any) => void;
|
|
14
|
-
}
|
|
15
|
-
declare const SessionItem: FC<SessionItemProps>;
|
|
16
|
-
export default SessionItem;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { Session } from '@glodon-aiot/agent-cli-sdk';
|
|
3
|
-
interface HistorySessionListProps {
|
|
4
|
-
currentSessionId: string;
|
|
5
|
-
onSessionChange?: (sessionId: string, session?: Session) => void;
|
|
6
|
-
onClose: VoidFunction;
|
|
7
|
-
}
|
|
8
|
-
declare const HistorySessionList: FC<HistorySessionListProps>;
|
|
9
|
-
export default HistorySessionList;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { Session } from '@glodon-aiot/agent-cli-sdk';
|
|
3
|
-
interface SessionListProps {
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
currentSessionId?: string;
|
|
6
|
-
onSessionChange?: (sessionId: string, session?: Session) => void;
|
|
7
|
-
}
|
|
8
|
-
declare const SessionList: FC<SessionListProps>;
|
|
9
|
-
export default SessionList;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FC, Key } from 'react';
|
|
2
|
-
import { IAecReference as IReference } from '@glodon-aiot/apis';
|
|
3
|
-
interface ReferItemProps {
|
|
4
|
-
data: IReference;
|
|
5
|
-
loadPage?: (knowledgeId: string, fileId: string, textId: string) => Promise<Key>;
|
|
6
|
-
onClick: (data: IReference, page?: Key) => void;
|
|
7
|
-
}
|
|
8
|
-
declare const ReferItem: FC<ReferItemProps>;
|
|
9
|
-
export default ReferItem;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { IHistory } from '@glodon-aiot/apis';
|
|
3
|
-
interface SessionRelatedProps {
|
|
4
|
-
history?: IHistory;
|
|
5
|
-
onRelatedClick?: (val: any) => void;
|
|
6
|
-
relatedQuesion: string[];
|
|
7
|
-
}
|
|
8
|
-
declare const SessionRelated: React.FC<SessionRelatedProps>;
|
|
9
|
-
export default SessionRelated;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export declare enum ActionColors {
|
|
3
|
-
default = "#070C14",
|
|
4
|
-
highlight = "#B452FF"
|
|
5
|
-
}
|
|
6
|
-
interface ConnectToNetworkProps {
|
|
7
|
-
sessionId?: string;
|
|
8
|
-
netStatus: boolean;
|
|
9
|
-
enable: boolean;
|
|
10
|
-
disabledTip?: string;
|
|
11
|
-
onNetStatusChange: (status: boolean) => any;
|
|
12
|
-
}
|
|
13
|
-
declare const ConnectToNetwork: React.FC<ConnectToNetworkProps>;
|
|
14
|
-
export default ConnectToNetwork;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { IAecPrompt as IPrompt } from '@glodon-aiot/apis';
|
|
3
|
-
interface EditPromptModalProps {
|
|
4
|
-
appId: string;
|
|
5
|
-
isvisible: boolean;
|
|
6
|
-
record?: IPrompt;
|
|
7
|
-
onClose: () => void;
|
|
8
|
-
afterPromptChange?: (data: IPrompt) => void;
|
|
9
|
-
}
|
|
10
|
-
declare const EditPromptModal: React.FC<EditPromptModalProps>;
|
|
11
|
-
export default EditPromptModal;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IAecPrompt as IPrompt } from '@glodon-aiot/apis';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
interface PrivatePromptListProps {
|
|
4
|
-
appId: string;
|
|
5
|
-
data?: IPrompt[];
|
|
6
|
-
search?: string;
|
|
7
|
-
onItemClick?: (data: IPrompt) => void;
|
|
8
|
-
onChange?: (list: IPrompt[]) => void;
|
|
9
|
-
onRefresh?: VoidFunction;
|
|
10
|
-
}
|
|
11
|
-
declare const PrivatePromptList: FC<PrivatePromptListProps>;
|
|
12
|
-
export default PrivatePromptList;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IAecPrompt as IPrompt, IPromptStatus } from '@glodon-aiot/apis';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
interface PromptListItemProps {
|
|
4
|
-
appId: string;
|
|
5
|
-
data: IPrompt;
|
|
6
|
-
highlight?: string;
|
|
7
|
-
onEdit?: (data: IPrompt) => void;
|
|
8
|
-
onDelete?: (id: string) => void;
|
|
9
|
-
onClick?: (data: IPrompt) => void;
|
|
10
|
-
onStatusChange?: (status: IPromptStatus, prompt: IPrompt) => void;
|
|
11
|
-
}
|
|
12
|
-
declare const PromptListItem: FC<PromptListItemProps>;
|
|
13
|
-
export default PromptListItem;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IAecPrompt as IPrompt } from '@glodon-aiot/apis';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
interface PublicPromptListProps {
|
|
4
|
-
appId: string;
|
|
5
|
-
data?: IPrompt[];
|
|
6
|
-
search?: string;
|
|
7
|
-
onItemClick?: (data: IPrompt) => void;
|
|
8
|
-
onChange?: (list: IPrompt[]) => void;
|
|
9
|
-
onRefresh?: VoidFunction;
|
|
10
|
-
}
|
|
11
|
-
declare const PublicPromptList: FC<PublicPromptListProps>;
|
|
12
|
-
export default PublicPromptList;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { IAecPrompt as IPrompt } from '@glodon-aiot/apis';
|
|
3
|
-
interface PromptManagerProps {
|
|
4
|
-
appId: string;
|
|
5
|
-
list?: IPrompt[];
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
search?: string;
|
|
8
|
-
open?: boolean;
|
|
9
|
-
onClose?: VoidFunction;
|
|
10
|
-
onPromptSelect?: (data: IPrompt) => void;
|
|
11
|
-
}
|
|
12
|
-
declare const PromptManager: FC<PromptManagerProps>;
|
|
13
|
-
export default PromptManager;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { Session } from '@glodon-aiot/agent-cli-sdk';
|
|
3
|
-
interface NameEditPanelProps {
|
|
4
|
-
session: Session;
|
|
5
|
-
onChangeEditStatus: (sessionId: any, status: any) => void;
|
|
6
|
-
onEditNameConfirm: (session: any, value: any) => void;
|
|
7
|
-
}
|
|
8
|
-
declare const NameEditPanel: FC<NameEditPanelProps>;
|
|
9
|
-
export default NameEditPanel;
|