@mxmweb/aichat 1.9.7 → 2.0.0
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/README.md +207 -199
- package/assets/style.css +1 -1
- package/components/AiChat.d.ts +5 -1
- package/index.js +7951 -7846
- package/package.json +1 -1
- package/stats.html +1 -1
- package/utils/fileIcon.d.ts +9 -0
- package/LoginPage/components/Login/LoginBox/index.d.ts +0 -18
- package/LoginPage/components/Login/RegisterBox/index.d.ts +0 -15
- package/LoginPage/components/Login/index.d.ts +0 -17
- package/LoginPage/index.d.ts +0 -4
- package/LoginPage/useServices.d.ts +0 -9
- package/LoginPage/utils.d.ts +0 -2
- package/adopters/GientechChat/Conversations/Item.d.ts +0 -10
- package/adopters/GientechChat/Conversations/List.d.ts +0 -18
- package/adopters/GientechChat/Conversations/groupByTime.d.ts +0 -17
- package/adopters/GientechChat/Conversations/index.d.ts +0 -18
- package/adopters/GientechChat/constants.d.ts +0 -17
- package/adopters/GientechChat/index.d.ts +0 -42
- package/adopters/GientechChat/types.d.ts +0 -14
- package/adopters/HeadLessChat/constants.d.ts +0 -16
- package/adopters/HeadLessChat/index.d.ts +0 -14
- package/adopters/HeadLessChat/types.d.ts +0 -21
- package/adopters/gientechCommon/components/AppError.d.ts +0 -4
- package/adopters/gientechCommon/components/AppLoading.d.ts +0 -1
- package/adopters/gientechCommon/components/DeleteModal.d.ts +0 -1
- package/adopters/gientechCommon/components/DisplayError.d.ts +0 -1
- package/adopters/gientechCommon/components/DisplayLoading.d.ts +0 -1
- package/adopters/gientechCommon/components/FeedBackModal.d.ts +0 -2
- package/adopters/gientechCommon/components/FileManager/FileCardCommon.d.ts +0 -19
- package/adopters/gientechCommon/components/FileManager/index.d.ts +0 -21
- package/adopters/gientechCommon/components/Messages/GientechNewChatWelcome.d.ts +0 -11
- package/adopters/gientechCommon/components/Messages/ReferenceCard.d.ts +0 -17
- package/adopters/gientechCommon/components/Messages/RetriveItem.d.ts +0 -28
- package/adopters/gientechCommon/components/Messages/WebRetriveItem.d.ts +0 -3
- package/adopters/gientechCommon/components/RenameModal.d.ts +0 -1
- package/adopters/gientechCommon/configs/commonConfig.d.ts +0 -2
- package/adopters/gientechCommon/configs/senderConfig.d.ts +0 -1
- package/adopters/gientechCommon/configs/stylesConfig.d.ts +0 -88
- package/adopters/gientechCommon/hooks/AichatUseController.d.ts +0 -45
- package/adopters/gientechCommon/utils/request.d.ts +0 -2
- package/adopters/gientechCommon/utils/serverFn.d.ts +0 -52
- package/core/AiChat.d.ts +0 -73
- package/core/AiChat.types.d.ts +0 -106
- package/core/DefaultAppError.d.ts +0 -1
- package/core/DefaultAppLoading.d.ts +0 -1
- package/core/DefaultDisplayError.d.ts +0 -1
- package/core/DefaultDisplayLoading.d.ts +0 -1
- package/core/DefaultNewChatWelcome.d.ts +0 -1
- package/core/Displayer/DefaultAiChatBox.d.ts +0 -1
- package/core/Displayer/DefaultUserChatBox.d.ts +0 -1
- package/core/Displayer/index.d.ts +0 -14
- package/core/DynamicForm.d.ts +0 -8
- package/core/Loading.d.ts +0 -1
- package/core/Sender/FileUpload.d.ts +0 -12
- package/core/Sender/FilesDisplay.d.ts +0 -16
- package/core/Sender/VoiceInput.d.ts +0 -6
- package/core/Sender/contexts/BadgeContext.d.ts +0 -10
- package/core/Sender/index.d.ts +0 -33
- package/core/Sidebar/Loading.d.ts +0 -1
- package/core/Sidebar/RetriveConfigPanel.d.ts +0 -10
- package/core/Sidebar/useDynamicFormItems.d.ts +0 -2
- package/core/SidebarProp.d.ts +0 -16
- package/core/common/FileCardCommon.d.ts +0 -19
- package/core/defaultStyleSet.d.ts +0 -94
- package/core/styles.config.d.ts +0 -4
- package/servers/chatApi.d.ts +0 -7
- package/servers/fileApi.d.ts +0 -5
- package/servers/modelApi.d.ts +0 -8
package/core/AiChat.d.ts
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { ConversationData } from './AiChat.types';
|
|
2
|
-
import { Styles } from '@mxmweb/zui';
|
|
3
|
-
export interface ListItemType {
|
|
4
|
-
label: string;
|
|
5
|
-
sessionId: string;
|
|
6
|
-
gmtModified: number;
|
|
7
|
-
assistant?: any;
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
}
|
|
10
|
-
export interface ListType {
|
|
11
|
-
activedItem?: string;
|
|
12
|
-
data: ListItemType[];
|
|
13
|
-
sortRules?: {
|
|
14
|
-
label: string;
|
|
15
|
-
dayPeriod: number;
|
|
16
|
-
}[];
|
|
17
|
-
}
|
|
18
|
-
export interface SidebarTabConfig {
|
|
19
|
-
key: string;
|
|
20
|
-
type: 'custom' | 'form';
|
|
21
|
-
label: string;
|
|
22
|
-
icon: React.ReactNode;
|
|
23
|
-
enabled?: boolean;
|
|
24
|
-
component?: React.ReactNode;
|
|
25
|
-
formConfig?: any[];
|
|
26
|
-
initialValues?: Record<string, any>;
|
|
27
|
-
onChange?: (values: any) => void;
|
|
28
|
-
[key: string]: any;
|
|
29
|
-
}
|
|
30
|
-
export interface AppStatusManager {
|
|
31
|
-
display: 'ready' | 'loading' | 'error' | 'processing' | 'uploading' | 'thinking' | 'analyzing';
|
|
32
|
-
sender: 'ready' | 'loading' | 'error' | 'processing' | 'uploading';
|
|
33
|
-
app: 'ready' | 'initializing' | 'error';
|
|
34
|
-
}
|
|
35
|
-
export interface SenderConfig {
|
|
36
|
-
actions?: {
|
|
37
|
-
icon: React.ReactNode;
|
|
38
|
-
badgeCount?: number;
|
|
39
|
-
name: string;
|
|
40
|
-
tip?: string;
|
|
41
|
-
}[];
|
|
42
|
-
switchs?: Array<{
|
|
43
|
-
label: string;
|
|
44
|
-
name: string;
|
|
45
|
-
type: 'switch' | 'select';
|
|
46
|
-
defaultValue?: boolean | string | number;
|
|
47
|
-
enabled?: boolean;
|
|
48
|
-
icon?: React.ReactNode;
|
|
49
|
-
options?: {
|
|
50
|
-
label: string;
|
|
51
|
-
value: string | number;
|
|
52
|
-
}[];
|
|
53
|
-
}>;
|
|
54
|
-
}
|
|
55
|
-
interface AiChatProps {
|
|
56
|
-
activeSessionId: string | undefined;
|
|
57
|
-
chatData: ConversationData;
|
|
58
|
-
sidebar?: SidebarTabConfig[];
|
|
59
|
-
status: AppStatusManager;
|
|
60
|
-
recommandQuestions?: string[];
|
|
61
|
-
eventsEmit?: (eventName: string, data?: any, callback?: () => void) => void;
|
|
62
|
-
CustomComponents?: any;
|
|
63
|
-
fileUploadStatus?: any;
|
|
64
|
-
styles?: Styles;
|
|
65
|
-
senderConfig?: SenderConfig;
|
|
66
|
-
onSenderConfigChange?: (data: {
|
|
67
|
-
name: string;
|
|
68
|
-
checked: boolean;
|
|
69
|
-
all: Record<string, boolean>;
|
|
70
|
-
}) => void;
|
|
71
|
-
}
|
|
72
|
-
export default function AiChat({ chatData, sidebar, eventsEmit, status, CustomComponents, recommandQuestions, styles, senderConfig, fileUploadStatus, onSenderConfigChange, activeSessionId, }: AiChatProps): import("react/jsx-runtime").JSX.Element;
|
|
73
|
-
export {};
|
package/core/AiChat.types.d.ts
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
export interface FilePreview {
|
|
2
|
-
file: File;
|
|
3
|
-
preview?: string;
|
|
4
|
-
type: "image" | "document";
|
|
5
|
-
}
|
|
6
|
-
export interface FormItemProps {
|
|
7
|
-
type: 'input' | 'select' | 'number' | 'slider' | 'switch' | 'date' | 'radio' | 'textarea' | 'divider';
|
|
8
|
-
label: string;
|
|
9
|
-
description?: string;
|
|
10
|
-
control?: string[];
|
|
11
|
-
controlledItems?: string[];
|
|
12
|
-
name: string;
|
|
13
|
-
defaultValue?: any;
|
|
14
|
-
options?: {
|
|
15
|
-
label: string;
|
|
16
|
-
value: string;
|
|
17
|
-
}[];
|
|
18
|
-
range?: {
|
|
19
|
-
min: number;
|
|
20
|
-
max: number;
|
|
21
|
-
};
|
|
22
|
-
step?: number;
|
|
23
|
-
unit?: string;
|
|
24
|
-
placeholder?: string;
|
|
25
|
-
className?: string;
|
|
26
|
-
disabled?: boolean;
|
|
27
|
-
required?: boolean;
|
|
28
|
-
error?: string;
|
|
29
|
-
}
|
|
30
|
-
export interface BaseChatMessage {
|
|
31
|
-
id?: string;
|
|
32
|
-
type: "user" | "ai";
|
|
33
|
-
time: string;
|
|
34
|
-
content: any;
|
|
35
|
-
[key: string]: any;
|
|
36
|
-
}
|
|
37
|
-
export interface ChatMessageProps {
|
|
38
|
-
type: "user" | "ai";
|
|
39
|
-
time: string;
|
|
40
|
-
content: any;
|
|
41
|
-
id?: string;
|
|
42
|
-
hasLLMConfig?: boolean;
|
|
43
|
-
retrievedChunks?: Array<{
|
|
44
|
-
[key: string]: any;
|
|
45
|
-
}>;
|
|
46
|
-
prompt?: string;
|
|
47
|
-
configInfo?: {
|
|
48
|
-
textChunks: number;
|
|
49
|
-
topP: number;
|
|
50
|
-
topN: number;
|
|
51
|
-
denseWeight: number;
|
|
52
|
-
enableKG: boolean;
|
|
53
|
-
enableRerank: boolean;
|
|
54
|
-
model: string;
|
|
55
|
-
temperature?: number;
|
|
56
|
-
diversity?: number;
|
|
57
|
-
maxTokens?: number;
|
|
58
|
-
recallModel: string;
|
|
59
|
-
llmModel: string;
|
|
60
|
-
respTime?: number;
|
|
61
|
-
tokens?: number;
|
|
62
|
-
search_type?: string | string[];
|
|
63
|
-
search_policy?: string;
|
|
64
|
-
};
|
|
65
|
-
streaming?: boolean;
|
|
66
|
-
isLatest?: boolean;
|
|
67
|
-
finished?: boolean;
|
|
68
|
-
}
|
|
69
|
-
export interface Message {
|
|
70
|
-
type: "user" | "ai";
|
|
71
|
-
time: string;
|
|
72
|
-
content: string;
|
|
73
|
-
hasLLMConfig?: boolean;
|
|
74
|
-
retrievedChunks?: Array<{
|
|
75
|
-
content: string;
|
|
76
|
-
similarity: number;
|
|
77
|
-
rerank: number;
|
|
78
|
-
chunk_id: number;
|
|
79
|
-
source: string;
|
|
80
|
-
}>;
|
|
81
|
-
prompt?: string;
|
|
82
|
-
configInfo?: any;
|
|
83
|
-
queryId?: string;
|
|
84
|
-
fullContent?: string;
|
|
85
|
-
finished?: boolean;
|
|
86
|
-
typedLength?: number;
|
|
87
|
-
}
|
|
88
|
-
export interface ConversationData {
|
|
89
|
-
id: string;
|
|
90
|
-
messages: Message[];
|
|
91
|
-
[key: string]: any;
|
|
92
|
-
}
|
|
93
|
-
export interface ListItemType {
|
|
94
|
-
label: string;
|
|
95
|
-
sessionId: string;
|
|
96
|
-
gmtModified: number;
|
|
97
|
-
[key: string]: any;
|
|
98
|
-
}
|
|
99
|
-
export interface ListType {
|
|
100
|
-
activedItem?: string;
|
|
101
|
-
data: ListItemType[];
|
|
102
|
-
sortRules?: {
|
|
103
|
-
label: string;
|
|
104
|
-
dayPeriod: number;
|
|
105
|
-
}[];
|
|
106
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function DefaultAppError(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function DefaultAppLoading(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function DefaultDisplayError(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function DefaultDisplayLoading(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function DefaultNewChatWelcome(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function DefaultAiChatBox({ content, time, sessionContext, eventsEmit, feedbackResult, }: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function DefaultUserChatBox({ content, time, sessionContext, eventsEmit }: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { BaseChatMessage } from '../AiChat.types';
|
|
3
|
-
interface ChatDisplayerProps {
|
|
4
|
-
messages?: BaseChatMessage[];
|
|
5
|
-
AiChatBox?: React.ComponentType<any>;
|
|
6
|
-
UserChatBox?: React.ComponentType<any>;
|
|
7
|
-
renderAiChatBox?: (msg: any, idx: number) => React.ReactNode;
|
|
8
|
-
renderUserChatBox?: (msg: any, idx: number) => React.ReactNode;
|
|
9
|
-
sessionContext?: any;
|
|
10
|
-
status?: 'ready' | 'loading' | 'error' | 'processing' | 'uploading' | 'thinking' | 'analyzing';
|
|
11
|
-
eventsEmit?: (eventName: string, data?: any) => void;
|
|
12
|
-
}
|
|
13
|
-
export default function ChatDisplayer({ messages, renderAiChatBox, renderUserChatBox, sessionContext, status, eventsEmit, }: ChatDisplayerProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export {};
|
package/core/DynamicForm.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
interface DynamicFormProps {
|
|
2
|
-
config?: any[];
|
|
3
|
-
initialValues?: Record<string, any>;
|
|
4
|
-
onChange?: (values: any) => void;
|
|
5
|
-
styles?: any;
|
|
6
|
-
}
|
|
7
|
-
export default function DynamicForm({ config, initialValues, onChange, styles }: DynamicFormProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
package/core/Loading.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
interface FilePreview {
|
|
2
|
-
file: File;
|
|
3
|
-
preview?: string;
|
|
4
|
-
type: 'image' | 'document';
|
|
5
|
-
}
|
|
6
|
-
interface FileUploadProps {
|
|
7
|
-
uploadedFiles: FilePreview[];
|
|
8
|
-
onUpload?: (files: FileList) => void;
|
|
9
|
-
onRemoveFile?: (index: number) => void;
|
|
10
|
-
}
|
|
11
|
-
export default function FileUpload({ uploadedFiles, onUpload, onRemoveFile }: FileUploadProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
interface FilePreview {
|
|
2
|
-
file: File;
|
|
3
|
-
preview?: string;
|
|
4
|
-
type: 'image' | 'document';
|
|
5
|
-
status?: 'pending' | 'uploading' | 'parsing' | 'done' | 'error' | 'finished';
|
|
6
|
-
name?: string;
|
|
7
|
-
uid?: string;
|
|
8
|
-
styles?: any;
|
|
9
|
-
}
|
|
10
|
-
export default function FilesDisplay({ uploadedFiles, onRemoveFile, eventsEmit, styles }: {
|
|
11
|
-
uploadedFiles: FilePreview[];
|
|
12
|
-
onRemoveFile: (idx: number) => void;
|
|
13
|
-
eventsEmit?: (eventName: string) => void;
|
|
14
|
-
styles?: any;
|
|
15
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface BadgeContextType {
|
|
3
|
-
badgeCounts: Record<string, number>;
|
|
4
|
-
updateBadgeCount: (name: string, count: number) => void;
|
|
5
|
-
}
|
|
6
|
-
export declare const BadgeProvider: React.FC<{
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
}>;
|
|
9
|
-
export declare const useBadge: () => BadgeContextType;
|
|
10
|
-
export {};
|
package/core/Sender/index.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Styles } from '@mxmweb/zui';
|
|
2
|
-
import { SenderConfig } from '../AiChat';
|
|
3
|
-
interface FilePreview {
|
|
4
|
-
file: File;
|
|
5
|
-
preview?: string;
|
|
6
|
-
type: 'image' | 'document';
|
|
7
|
-
status?: 'pending' | 'uploading' | 'parsing' | 'done' | 'error';
|
|
8
|
-
name?: string;
|
|
9
|
-
uid?: string;
|
|
10
|
-
}
|
|
11
|
-
interface SenderProps {
|
|
12
|
-
value: string;
|
|
13
|
-
onSend: () => void;
|
|
14
|
-
onUpload: (files: FileList) => void;
|
|
15
|
-
onVoice: () => void;
|
|
16
|
-
styles: Styles;
|
|
17
|
-
uploadedFiles: FilePreview[];
|
|
18
|
-
fileUploadStatus?: any[];
|
|
19
|
-
status: 'ready' | 'loading' | 'error' | 'processing' | 'uploading';
|
|
20
|
-
onRemoveFile: (index: number) => void;
|
|
21
|
-
eventsEmit: (eventName: string, data?: any) => void;
|
|
22
|
-
recommandQuestions?: any;
|
|
23
|
-
senderConfig?: SenderConfig;
|
|
24
|
-
onSenderConfigChange?: (data: {
|
|
25
|
-
name: string;
|
|
26
|
-
checked: boolean;
|
|
27
|
-
all: Record<string, boolean>;
|
|
28
|
-
}) => void;
|
|
29
|
-
}
|
|
30
|
-
export default function Sender({ value: propValue, eventsEmit, styles, status, onUpload, onVoice, uploadedFiles, onRemoveFile, senderConfig, recommandQuestions, fileUploadStatus, }?: Partial<SenderProps> & {
|
|
31
|
-
senderConfig?: SenderConfig;
|
|
32
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FormItemProps } from '../AiChat.types';
|
|
2
|
-
interface RetriveConfigPanelProps {
|
|
3
|
-
config?: FormItemProps[];
|
|
4
|
-
styles?: any;
|
|
5
|
-
formName: string;
|
|
6
|
-
onChange?: (formName: string, values: any) => void;
|
|
7
|
-
initialValues?: any;
|
|
8
|
-
}
|
|
9
|
-
export default function RetriveConfigPanel(props: RetriveConfigPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export {};
|
package/core/SidebarProp.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export interface SidebarTabConfig {
|
|
2
|
-
key: string;
|
|
3
|
-
type: 'custom' | 'form';
|
|
4
|
-
label: string;
|
|
5
|
-
icon: any;
|
|
6
|
-
enabled?: boolean;
|
|
7
|
-
component?: any;
|
|
8
|
-
formConfig?: any[];
|
|
9
|
-
initialValues?: Record<string, any>;
|
|
10
|
-
onChange?: (values: any) => void;
|
|
11
|
-
}
|
|
12
|
-
export interface SidebarProps {
|
|
13
|
-
tabs: SidebarTabConfig[];
|
|
14
|
-
styles?: any;
|
|
15
|
-
}
|
|
16
|
-
export declare const sidebarMock: SidebarProps;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface FileCardCommonProps {
|
|
3
|
-
fileName: string;
|
|
4
|
-
fileSize?: number;
|
|
5
|
-
icon: React.ReactNode;
|
|
6
|
-
statusText?: string;
|
|
7
|
-
statusColor?: string;
|
|
8
|
-
statusIcon?: React.ReactNode;
|
|
9
|
-
onRemove?: () => void;
|
|
10
|
-
themeColors?: any;
|
|
11
|
-
cardId?: string;
|
|
12
|
-
showRemove?: boolean;
|
|
13
|
-
disabledRemove?: boolean;
|
|
14
|
-
onRemoveWithAnim?: (id: string) => void;
|
|
15
|
-
extra?: React.ReactNode;
|
|
16
|
-
style?: React.CSSProperties;
|
|
17
|
-
}
|
|
18
|
-
declare const FileCardCommon: React.FC<FileCardCommonProps>;
|
|
19
|
-
export default FileCardCommon;
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
export type SizeType = 'sm' | 'md' | 'lg';
|
|
2
|
-
export type FontWeightType = 'normal' | 'bold' | 'thin';
|
|
3
|
-
export type FontFamilyType = 'default' | 'serif' | 'mono';
|
|
4
|
-
export interface AiChatStyles {
|
|
5
|
-
theme?: AppTheme;
|
|
6
|
-
mode?: 'light' | 'dark';
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
}
|
|
9
|
-
export interface ThemeColors {
|
|
10
|
-
primary: string;
|
|
11
|
-
secondary: string;
|
|
12
|
-
success: string;
|
|
13
|
-
warning: string;
|
|
14
|
-
error: string;
|
|
15
|
-
info?: string;
|
|
16
|
-
background?: string;
|
|
17
|
-
text?: string;
|
|
18
|
-
border?: string;
|
|
19
|
-
disabled?: string;
|
|
20
|
-
disabledBackground?: string;
|
|
21
|
-
disabledText: string;
|
|
22
|
-
shadow?: string;
|
|
23
|
-
appBackground?: string;
|
|
24
|
-
[key: string]: string | undefined;
|
|
25
|
-
}
|
|
26
|
-
export interface ThemeOthers {
|
|
27
|
-
}
|
|
28
|
-
export interface ThemeSpace {
|
|
29
|
-
sidebar?: string;
|
|
30
|
-
size?: string;
|
|
31
|
-
radius?: string;
|
|
32
|
-
padding?: string;
|
|
33
|
-
margin?: string;
|
|
34
|
-
shadow?: string;
|
|
35
|
-
lineHeight?: string;
|
|
36
|
-
[key: string]: string | undefined;
|
|
37
|
-
}
|
|
38
|
-
export interface ThemeIcons {
|
|
39
|
-
aiAvatar?: string;
|
|
40
|
-
userAvatar?: string;
|
|
41
|
-
pdf?: string;
|
|
42
|
-
word?: string;
|
|
43
|
-
image?: string;
|
|
44
|
-
video?: string;
|
|
45
|
-
audio?: string;
|
|
46
|
-
excel?: string;
|
|
47
|
-
ppt?: string;
|
|
48
|
-
docx?: string;
|
|
49
|
-
sheets?: string;
|
|
50
|
-
pptx?: string;
|
|
51
|
-
[key: string]: string | undefined;
|
|
52
|
-
}
|
|
53
|
-
export interface AppTheme {
|
|
54
|
-
colors: ThemeColors;
|
|
55
|
-
space: ThemeSpace;
|
|
56
|
-
icons: ThemeIcons;
|
|
57
|
-
others: ThemeOthers;
|
|
58
|
-
}
|
|
59
|
-
export declare const defaultTheme: AppTheme;
|
|
60
|
-
export declare const sidebarMap: {
|
|
61
|
-
sm: string;
|
|
62
|
-
md: string;
|
|
63
|
-
lg: string;
|
|
64
|
-
};
|
|
65
|
-
export declare const sizeMap: {
|
|
66
|
-
sm: string;
|
|
67
|
-
md: string;
|
|
68
|
-
lg: string;
|
|
69
|
-
};
|
|
70
|
-
export declare const radiusMap: {
|
|
71
|
-
sm: string;
|
|
72
|
-
md: string;
|
|
73
|
-
lg: string;
|
|
74
|
-
};
|
|
75
|
-
export declare const paddingMap: {
|
|
76
|
-
sm: string;
|
|
77
|
-
md: string;
|
|
78
|
-
lg: string;
|
|
79
|
-
};
|
|
80
|
-
export declare const marginMap: {
|
|
81
|
-
sm: string;
|
|
82
|
-
md: string;
|
|
83
|
-
lg: string;
|
|
84
|
-
};
|
|
85
|
-
export declare const shadowMap: {
|
|
86
|
-
sm: string;
|
|
87
|
-
md: string;
|
|
88
|
-
lg: string;
|
|
89
|
-
};
|
|
90
|
-
export declare const lineHeightMap: {
|
|
91
|
-
sm: string;
|
|
92
|
-
md: string;
|
|
93
|
-
lg: string;
|
|
94
|
-
};
|
package/core/styles.config.d.ts
DELETED
package/servers/chatApi.d.ts
DELETED
package/servers/fileApi.d.ts
DELETED