thub-embed 2.0.6 → 2.0.8
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 +4 -4
- package/dist/components/Bot.d.ts +115 -115
- package/dist/components/bubbles/AgentReasoningBubble.d.ts +15 -15
- package/dist/components/bubbles/BotBubble.d.ts +26 -26
- package/dist/components/bubbles/FollowUpPromptBubble.d.ts +7 -7
- package/dist/components/bubbles/GuestBubble.d.ts +15 -15
- package/dist/components/bubbles/LeadCaptureBubble.d.ts +1 -1
- package/dist/components/bubbles/StarterPromptBubble.d.ts +7 -7
- package/dist/components/buttons/AttachmentUploadButton.d.ts +10 -10
- package/dist/components/icons/AttachmentIcon.d.ts +2 -2
- package/dist/components/icons/SparklesIcon.d.ts +2 -2
- package/dist/components/icons/TickIcon.d.ts +1 -1
- package/dist/components/icons/XIcon.d.ts +4 -4
- package/dist/components/icons/index.d.ts +13 -13
- package/dist/components/inputs/textInput/components/FilePreview.d.ts +11 -11
- package/dist/components/inputs/textInput/components/TextInput.d.ts +27 -27
- package/dist/components/inputs/textInput/index.d.ts +2 -2
- package/dist/features/bubble/components/Bubble.d.ts.map +1 -1
- package/dist/features/bubble/components/BubbleButton.d.ts +15 -15
- package/dist/features/bubble/components/Tooltip.d.ts +14 -14
- package/dist/features/bubble/types.d.ts +100 -100
- package/dist/features/popup/components/DisclaimerPopup.d.ts +8 -8
- package/dist/features/popup/components/index.d.ts +2 -2
- package/dist/queries/sendMessageQuery.d.ts +86 -86
- package/dist/utils/chatInputHistory.d.ts +21 -21
- package/dist/utils/index.d.ts +22 -22
- package/dist/web.d.ts +22 -22
- package/dist/web.js +1 -1
- package/dist/window.d.ts +29 -29
- package/package.json +65 -64
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ yarn build
|
|
|
32
32
|
<script type="module">
|
|
33
33
|
import Chatbot from 'https://cdn.jsdelivr.net/npm/thub-embed/dist/web.js';
|
|
34
34
|
Chatbot.init({
|
|
35
|
-
|
|
35
|
+
workflowid: '<workflowid>',
|
|
36
36
|
apiHost: 'http://localhost:3000',
|
|
37
37
|
});
|
|
38
38
|
</script>
|
|
@@ -44,7 +44,7 @@ yarn build
|
|
|
44
44
|
<script type="module">
|
|
45
45
|
import Chatbot from './web.js';
|
|
46
46
|
Chatbot.initFull({
|
|
47
|
-
|
|
47
|
+
workflowid: '<workflowid>',
|
|
48
48
|
apiHost: 'http://localhost:3000',
|
|
49
49
|
});
|
|
50
50
|
</script>
|
|
@@ -58,7 +58,7 @@ To enable full screen, add `margin: 0` to <code>body</code> style, and confirm y
|
|
|
58
58
|
<script type="module">
|
|
59
59
|
import Chatbot from './web.js';
|
|
60
60
|
Chatbot.initFull({
|
|
61
|
-
|
|
61
|
+
workflowid: '<workflowid>',
|
|
62
62
|
apiHost: 'http://localhost:3000',
|
|
63
63
|
theme: {
|
|
64
64
|
chatWindow: {
|
|
@@ -79,7 +79,7 @@ You can also customize chatbot with different configuration
|
|
|
79
79
|
<script type="module">
|
|
80
80
|
import Chatbot from 'https://cdn.jsdelivr.net/npm/thub-embed/dist/web.js';
|
|
81
81
|
Chatbot.init({
|
|
82
|
-
|
|
82
|
+
workflowid: '91e9c803-5169-4db9-8207-3c0915d71c5f',
|
|
83
83
|
apiHost: 'http://localhost:3000',
|
|
84
84
|
chatflowConfig: {
|
|
85
85
|
// topK: 2
|
package/dist/components/Bot.d.ts
CHANGED
|
@@ -1,116 +1,116 @@
|
|
|
1
|
-
import { FeedbackRatingType } from '@/queries/sendMessageQuery';
|
|
2
|
-
import { BotMessageTheme, FooterTheme, TextInputTheme, UserMessageTheme, FeedbackTheme, DisclaimerPopUpTheme, DateTimeToggleTheme } from '@/features/bubble/types';
|
|
3
|
-
import { FilePreview } from '@/components/inputs/textInput/components/FilePreview';
|
|
4
|
-
export type FileEvent<T = EventTarget> = {
|
|
5
|
-
target: T;
|
|
6
|
-
};
|
|
7
|
-
export type FormEvent<T = EventTarget> = {
|
|
8
|
-
preventDefault: () => void;
|
|
9
|
-
currentTarget: T;
|
|
10
|
-
};
|
|
11
|
-
type IUploadConstraits = {
|
|
12
|
-
fileTypes: string[];
|
|
13
|
-
maxUploadSize: number;
|
|
14
|
-
};
|
|
15
|
-
export type UploadsConfig = {
|
|
16
|
-
imgUploadSizeAndTypes: IUploadConstraits[];
|
|
17
|
-
fileUploadSizeAndTypes: IUploadConstraits[];
|
|
18
|
-
isImageUploadAllowed: boolean;
|
|
19
|
-
isSpeechToTextEnabled: boolean;
|
|
20
|
-
isRAGFileUploadAllowed: boolean;
|
|
21
|
-
};
|
|
22
|
-
type FilePreviewData = string | ArrayBuffer;
|
|
23
|
-
type FilePreview = {
|
|
24
|
-
data: FilePreviewData;
|
|
25
|
-
mime: string;
|
|
26
|
-
name: string;
|
|
27
|
-
preview: string;
|
|
28
|
-
type: string;
|
|
29
|
-
};
|
|
30
|
-
type messageType = 'apiMessage' | 'userMessage' | 'usermessagewaiting' | 'leadCaptureMessage';
|
|
31
|
-
export type IAgentReasoning = {
|
|
32
|
-
agentName?: string;
|
|
33
|
-
messages?: string[];
|
|
34
|
-
usedTools?: any[];
|
|
35
|
-
artifacts?: FileUpload[];
|
|
36
|
-
sourceDocuments?: any[];
|
|
37
|
-
instructions?: string;
|
|
38
|
-
nextAgent?: string;
|
|
39
|
-
};
|
|
40
|
-
export type IAction = {
|
|
41
|
-
id?: string;
|
|
42
|
-
elements?: Array<{
|
|
43
|
-
type: string;
|
|
44
|
-
label: string;
|
|
45
|
-
}>;
|
|
46
|
-
mapping?: {
|
|
47
|
-
approve: string;
|
|
48
|
-
reject: string;
|
|
49
|
-
toolCalls: any[];
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
export type FileUpload = Omit<FilePreview, 'preview'>;
|
|
53
|
-
export type MessageType = {
|
|
54
|
-
messageId?: string;
|
|
55
|
-
message: string;
|
|
56
|
-
type: messageType;
|
|
57
|
-
sourceDocuments?: any;
|
|
58
|
-
fileAnnotations?: any;
|
|
59
|
-
fileUploads?: Partial<FileUpload>[];
|
|
60
|
-
artifacts?: Partial<FileUpload>[];
|
|
61
|
-
agentReasoning?: IAgentReasoning[];
|
|
62
|
-
usedTools?: any[];
|
|
63
|
-
action?: IAction | null;
|
|
64
|
-
rating?: FeedbackRatingType;
|
|
65
|
-
id?: string;
|
|
66
|
-
followUpPrompts?: string;
|
|
67
|
-
dateTime?: string;
|
|
68
|
-
};
|
|
69
|
-
type observerConfigType = (accessor: string | boolean | object | MessageType[]) => void;
|
|
70
|
-
export type observersConfigType = Record<'observeUserInput' | 'observeLoading' | 'observeMessages', observerConfigType>;
|
|
71
|
-
export type BotProps = {
|
|
72
|
-
|
|
73
|
-
apiHost?: string;
|
|
74
|
-
onRequest?: (request: RequestInit) => Promise<void>;
|
|
75
|
-
chatflowConfig?: Record<string, unknown>;
|
|
76
|
-
welcomeMessage?: string;
|
|
77
|
-
errorMessage?: string;
|
|
78
|
-
botMessage?: BotMessageTheme;
|
|
79
|
-
userMessage?: UserMessageTheme;
|
|
80
|
-
textInput?: TextInputTheme;
|
|
81
|
-
feedback?: FeedbackTheme;
|
|
82
|
-
poweredByTextColor?: string;
|
|
83
|
-
badgeBackgroundColor?: string;
|
|
84
|
-
bubbleBackgroundColor?: string;
|
|
85
|
-
bubbleTextColor?: string;
|
|
86
|
-
showTitle?: boolean;
|
|
87
|
-
showAgentMessages?: boolean;
|
|
88
|
-
title?: string;
|
|
89
|
-
titleAvatarSrc?: string;
|
|
90
|
-
fontSize?: number;
|
|
91
|
-
isFullPage?: boolean;
|
|
92
|
-
footer?: FooterTheme;
|
|
93
|
-
sourceDocsTitle?: string;
|
|
94
|
-
observersConfig?: observersConfigType;
|
|
95
|
-
starterPrompts?: string[] | Record<string, {
|
|
96
|
-
prompt: string;
|
|
97
|
-
}>;
|
|
98
|
-
starterPromptFontSize?: number;
|
|
99
|
-
clearChatOnReload?: boolean;
|
|
100
|
-
disclaimer?: DisclaimerPopUpTheme;
|
|
101
|
-
dateTimeToggle?: DateTimeToggleTheme;
|
|
102
|
-
renderHTML?: boolean;
|
|
103
|
-
};
|
|
104
|
-
export type LeadsConfig = {
|
|
105
|
-
status: boolean;
|
|
106
|
-
title?: string;
|
|
107
|
-
name?: boolean;
|
|
108
|
-
email?: boolean;
|
|
109
|
-
phone?: boolean;
|
|
110
|
-
successMessage?: string;
|
|
111
|
-
};
|
|
112
|
-
export declare const Bot: (botProps: BotProps & {
|
|
113
|
-
class?: string;
|
|
114
|
-
}) => import("solid-js").JSX.Element;
|
|
115
|
-
export {};
|
|
1
|
+
import { FeedbackRatingType } from '@/queries/sendMessageQuery';
|
|
2
|
+
import { BotMessageTheme, FooterTheme, TextInputTheme, UserMessageTheme, FeedbackTheme, DisclaimerPopUpTheme, DateTimeToggleTheme } from '@/features/bubble/types';
|
|
3
|
+
import { FilePreview } from '@/components/inputs/textInput/components/FilePreview';
|
|
4
|
+
export type FileEvent<T = EventTarget> = {
|
|
5
|
+
target: T;
|
|
6
|
+
};
|
|
7
|
+
export type FormEvent<T = EventTarget> = {
|
|
8
|
+
preventDefault: () => void;
|
|
9
|
+
currentTarget: T;
|
|
10
|
+
};
|
|
11
|
+
type IUploadConstraits = {
|
|
12
|
+
fileTypes: string[];
|
|
13
|
+
maxUploadSize: number;
|
|
14
|
+
};
|
|
15
|
+
export type UploadsConfig = {
|
|
16
|
+
imgUploadSizeAndTypes: IUploadConstraits[];
|
|
17
|
+
fileUploadSizeAndTypes: IUploadConstraits[];
|
|
18
|
+
isImageUploadAllowed: boolean;
|
|
19
|
+
isSpeechToTextEnabled: boolean;
|
|
20
|
+
isRAGFileUploadAllowed: boolean;
|
|
21
|
+
};
|
|
22
|
+
type FilePreviewData = string | ArrayBuffer;
|
|
23
|
+
type FilePreview = {
|
|
24
|
+
data: FilePreviewData;
|
|
25
|
+
mime: string;
|
|
26
|
+
name: string;
|
|
27
|
+
preview: string;
|
|
28
|
+
type: string;
|
|
29
|
+
};
|
|
30
|
+
type messageType = 'apiMessage' | 'userMessage' | 'usermessagewaiting' | 'leadCaptureMessage';
|
|
31
|
+
export type IAgentReasoning = {
|
|
32
|
+
agentName?: string;
|
|
33
|
+
messages?: string[];
|
|
34
|
+
usedTools?: any[];
|
|
35
|
+
artifacts?: FileUpload[];
|
|
36
|
+
sourceDocuments?: any[];
|
|
37
|
+
instructions?: string;
|
|
38
|
+
nextAgent?: string;
|
|
39
|
+
};
|
|
40
|
+
export type IAction = {
|
|
41
|
+
id?: string;
|
|
42
|
+
elements?: Array<{
|
|
43
|
+
type: string;
|
|
44
|
+
label: string;
|
|
45
|
+
}>;
|
|
46
|
+
mapping?: {
|
|
47
|
+
approve: string;
|
|
48
|
+
reject: string;
|
|
49
|
+
toolCalls: any[];
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export type FileUpload = Omit<FilePreview, 'preview'>;
|
|
53
|
+
export type MessageType = {
|
|
54
|
+
messageId?: string;
|
|
55
|
+
message: string;
|
|
56
|
+
type: messageType;
|
|
57
|
+
sourceDocuments?: any;
|
|
58
|
+
fileAnnotations?: any;
|
|
59
|
+
fileUploads?: Partial<FileUpload>[];
|
|
60
|
+
artifacts?: Partial<FileUpload>[];
|
|
61
|
+
agentReasoning?: IAgentReasoning[];
|
|
62
|
+
usedTools?: any[];
|
|
63
|
+
action?: IAction | null;
|
|
64
|
+
rating?: FeedbackRatingType;
|
|
65
|
+
id?: string;
|
|
66
|
+
followUpPrompts?: string;
|
|
67
|
+
dateTime?: string;
|
|
68
|
+
};
|
|
69
|
+
type observerConfigType = (accessor: string | boolean | object | MessageType[]) => void;
|
|
70
|
+
export type observersConfigType = Record<'observeUserInput' | 'observeLoading' | 'observeMessages', observerConfigType>;
|
|
71
|
+
export type BotProps = {
|
|
72
|
+
workflowid: string;
|
|
73
|
+
apiHost?: string;
|
|
74
|
+
onRequest?: (request: RequestInit) => Promise<void>;
|
|
75
|
+
chatflowConfig?: Record<string, unknown>;
|
|
76
|
+
welcomeMessage?: string;
|
|
77
|
+
errorMessage?: string;
|
|
78
|
+
botMessage?: BotMessageTheme;
|
|
79
|
+
userMessage?: UserMessageTheme;
|
|
80
|
+
textInput?: TextInputTheme;
|
|
81
|
+
feedback?: FeedbackTheme;
|
|
82
|
+
poweredByTextColor?: string;
|
|
83
|
+
badgeBackgroundColor?: string;
|
|
84
|
+
bubbleBackgroundColor?: string;
|
|
85
|
+
bubbleTextColor?: string;
|
|
86
|
+
showTitle?: boolean;
|
|
87
|
+
showAgentMessages?: boolean;
|
|
88
|
+
title?: string;
|
|
89
|
+
titleAvatarSrc?: string;
|
|
90
|
+
fontSize?: number;
|
|
91
|
+
isFullPage?: boolean;
|
|
92
|
+
footer?: FooterTheme;
|
|
93
|
+
sourceDocsTitle?: string;
|
|
94
|
+
observersConfig?: observersConfigType;
|
|
95
|
+
starterPrompts?: string[] | Record<string, {
|
|
96
|
+
prompt: string;
|
|
97
|
+
}>;
|
|
98
|
+
starterPromptFontSize?: number;
|
|
99
|
+
clearChatOnReload?: boolean;
|
|
100
|
+
disclaimer?: DisclaimerPopUpTheme;
|
|
101
|
+
dateTimeToggle?: DateTimeToggleTheme;
|
|
102
|
+
renderHTML?: boolean;
|
|
103
|
+
};
|
|
104
|
+
export type LeadsConfig = {
|
|
105
|
+
status: boolean;
|
|
106
|
+
title?: string;
|
|
107
|
+
name?: boolean;
|
|
108
|
+
email?: boolean;
|
|
109
|
+
phone?: boolean;
|
|
110
|
+
successMessage?: string;
|
|
111
|
+
};
|
|
112
|
+
export declare const Bot: (botProps: BotProps & {
|
|
113
|
+
class?: string;
|
|
114
|
+
}) => import("solid-js").JSX.Element;
|
|
115
|
+
export {};
|
|
116
116
|
//# sourceMappingURL=Bot.d.ts.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { FileUpload } from '../Bot';
|
|
2
|
-
type Props = {
|
|
3
|
-
apiHost?: string;
|
|
4
|
-
|
|
5
|
-
chatId: string;
|
|
6
|
-
agentName: string;
|
|
7
|
-
agentMessage: string;
|
|
8
|
-
agentArtifacts?: FileUpload[];
|
|
9
|
-
backgroundColor?: string;
|
|
10
|
-
textColor?: string;
|
|
11
|
-
fontSize?: number;
|
|
12
|
-
renderHTML?: boolean;
|
|
13
|
-
};
|
|
14
|
-
export declare const AgentReasoningBubble: (props: Props) => import("solid-js").JSX.Element;
|
|
15
|
-
export {};
|
|
1
|
+
import { FileUpload } from '../Bot';
|
|
2
|
+
type Props = {
|
|
3
|
+
apiHost?: string;
|
|
4
|
+
workflowid: string;
|
|
5
|
+
chatId: string;
|
|
6
|
+
agentName: string;
|
|
7
|
+
agentMessage: string;
|
|
8
|
+
agentArtifacts?: FileUpload[];
|
|
9
|
+
backgroundColor?: string;
|
|
10
|
+
textColor?: string;
|
|
11
|
+
fontSize?: number;
|
|
12
|
+
renderHTML?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare const AgentReasoningBubble: (props: Props) => import("solid-js").JSX.Element;
|
|
15
|
+
export {};
|
|
16
16
|
//# sourceMappingURL=AgentReasoningBubble.d.ts.map
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { IAction, MessageType } from '../Bot';
|
|
2
|
-
import { DateTimeToggleTheme } from '@/features/bubble/types';
|
|
3
|
-
type Props = {
|
|
4
|
-
message: MessageType;
|
|
5
|
-
|
|
6
|
-
chatId: string;
|
|
7
|
-
apiHost?: string;
|
|
8
|
-
onRequest?: (request: RequestInit) => Promise<void>;
|
|
9
|
-
fileAnnotations?: any;
|
|
10
|
-
showAvatar?: boolean;
|
|
11
|
-
avatarSrc?: string;
|
|
12
|
-
backgroundColor?: string;
|
|
13
|
-
textColor?: string;
|
|
14
|
-
chatFeedbackStatus?: boolean;
|
|
15
|
-
fontSize?: number;
|
|
16
|
-
feedbackColor?: string;
|
|
17
|
-
isLoading: boolean;
|
|
18
|
-
dateTimeToggle?: DateTimeToggleTheme;
|
|
19
|
-
showAgentMessages?: boolean;
|
|
20
|
-
sourceDocsTitle?: string;
|
|
21
|
-
renderHTML?: boolean;
|
|
22
|
-
handleActionClick: (label: string, action: IAction | undefined | null) => void;
|
|
23
|
-
handleSourceDocumentsClick: (src: any) => void;
|
|
24
|
-
};
|
|
25
|
-
export declare const BotBubble: (props: Props) => import("solid-js").JSX.Element;
|
|
26
|
-
export {};
|
|
1
|
+
import { IAction, MessageType } from '../Bot';
|
|
2
|
+
import { DateTimeToggleTheme } from '@/features/bubble/types';
|
|
3
|
+
type Props = {
|
|
4
|
+
message: MessageType;
|
|
5
|
+
workflowid: string;
|
|
6
|
+
chatId: string;
|
|
7
|
+
apiHost?: string;
|
|
8
|
+
onRequest?: (request: RequestInit) => Promise<void>;
|
|
9
|
+
fileAnnotations?: any;
|
|
10
|
+
showAvatar?: boolean;
|
|
11
|
+
avatarSrc?: string;
|
|
12
|
+
backgroundColor?: string;
|
|
13
|
+
textColor?: string;
|
|
14
|
+
chatFeedbackStatus?: boolean;
|
|
15
|
+
fontSize?: number;
|
|
16
|
+
feedbackColor?: string;
|
|
17
|
+
isLoading: boolean;
|
|
18
|
+
dateTimeToggle?: DateTimeToggleTheme;
|
|
19
|
+
showAgentMessages?: boolean;
|
|
20
|
+
sourceDocsTitle?: string;
|
|
21
|
+
renderHTML?: boolean;
|
|
22
|
+
handleActionClick: (label: string, action: IAction | undefined | null) => void;
|
|
23
|
+
handleSourceDocumentsClick: (src: any) => void;
|
|
24
|
+
};
|
|
25
|
+
export declare const BotBubble: (props: Props) => import("solid-js").JSX.Element;
|
|
26
|
+
export {};
|
|
27
27
|
//# sourceMappingURL=BotBubble.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
type Props = {
|
|
2
|
-
prompt: string;
|
|
3
|
-
onPromptClick?: () => void;
|
|
4
|
-
starterPromptFontSize?: number;
|
|
5
|
-
};
|
|
6
|
-
export declare const FollowUpPromptBubble: (props: Props) => import("solid-js").JSX.Element;
|
|
7
|
-
export {};
|
|
1
|
+
type Props = {
|
|
2
|
+
prompt: string;
|
|
3
|
+
onPromptClick?: () => void;
|
|
4
|
+
starterPromptFontSize?: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const FollowUpPromptBubble: (props: Props) => import("solid-js").JSX.Element;
|
|
7
|
+
export {};
|
|
8
8
|
//# sourceMappingURL=FollowUpPromptBubble.d.ts.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { MessageType } from '../Bot';
|
|
2
|
-
type Props = {
|
|
3
|
-
message: MessageType;
|
|
4
|
-
apiHost?: string;
|
|
5
|
-
|
|
6
|
-
chatId: string;
|
|
7
|
-
showAvatar?: boolean;
|
|
8
|
-
avatarSrc?: string;
|
|
9
|
-
backgroundColor?: string;
|
|
10
|
-
textColor?: string;
|
|
11
|
-
fontSize?: number;
|
|
12
|
-
renderHTML?: boolean;
|
|
13
|
-
};
|
|
14
|
-
export declare const GuestBubble: (props: Props) => import("solid-js").JSX.Element;
|
|
15
|
-
export {};
|
|
1
|
+
import { MessageType } from '../Bot';
|
|
2
|
+
type Props = {
|
|
3
|
+
message: MessageType;
|
|
4
|
+
apiHost?: string;
|
|
5
|
+
workflowid: string;
|
|
6
|
+
chatId: string;
|
|
7
|
+
showAvatar?: boolean;
|
|
8
|
+
avatarSrc?: string;
|
|
9
|
+
backgroundColor?: string;
|
|
10
|
+
textColor?: string;
|
|
11
|
+
fontSize?: number;
|
|
12
|
+
renderHTML?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare const GuestBubble: (props: Props) => import("solid-js").JSX.Element;
|
|
15
|
+
export {};
|
|
16
16
|
//# sourceMappingURL=GuestBubble.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
type Props = {
|
|
2
|
-
prompt: string;
|
|
3
|
-
onPromptClick?: () => void;
|
|
4
|
-
starterPromptFontSize?: number;
|
|
5
|
-
};
|
|
6
|
-
export declare const StarterPromptBubble: (props: Props) => import("solid-js").JSX.Element;
|
|
7
|
-
export {};
|
|
1
|
+
type Props = {
|
|
2
|
+
prompt: string;
|
|
3
|
+
onPromptClick?: () => void;
|
|
4
|
+
starterPromptFontSize?: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const StarterPromptBubble: (props: Props) => import("solid-js").JSX.Element;
|
|
7
|
+
export {};
|
|
8
8
|
//# sourceMappingURL=StarterPromptBubble.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
-
type FileUploadButtonProps = {
|
|
3
|
-
buttonColor?: string;
|
|
4
|
-
isDisabled?: boolean;
|
|
5
|
-
isLoading?: boolean;
|
|
6
|
-
disableIcon?: boolean;
|
|
7
|
-
} & JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
8
|
-
export declare const AttachmentUploadButton: (props: FileUploadButtonProps) => JSX.Element;
|
|
9
|
-
export declare const Spinner: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
10
|
-
export {};
|
|
1
|
+
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
+
type FileUploadButtonProps = {
|
|
3
|
+
buttonColor?: string;
|
|
4
|
+
isDisabled?: boolean;
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
disableIcon?: boolean;
|
|
7
|
+
} & JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
8
|
+
export declare const AttachmentUploadButton: (props: FileUploadButtonProps) => JSX.Element;
|
|
9
|
+
export declare const Spinner: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
10
|
+
export {};
|
|
11
11
|
//# sourceMappingURL=AttachmentUploadButton.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
-
export declare const AttachmentIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
1
|
+
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
+
export declare const AttachmentIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
3
3
|
//# sourceMappingURL=AttachmentIcon.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
-
export declare const SparklesIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
1
|
+
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
+
export declare const SparklesIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
3
3
|
//# sourceMappingURL=SparklesIcon.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const TickIcon: () => import("solid-js").JSX.Element;
|
|
1
|
+
export declare const TickIcon: () => import("solid-js").JSX.Element;
|
|
2
2
|
//# sourceMappingURL=TickIcon.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
-
export declare const XIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement> & {
|
|
3
|
-
isCurrentColor?: boolean;
|
|
4
|
-
}) => JSX.Element;
|
|
1
|
+
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
+
export declare const XIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement> & {
|
|
3
|
+
isCurrentColor?: boolean;
|
|
4
|
+
}) => JSX.Element;
|
|
5
5
|
//# sourceMappingURL=XIcon.d.ts.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export * from './ClipboardIcon';
|
|
2
|
-
export * from './ThumbsDownIcon';
|
|
3
|
-
export * from './ThumbsUpIcon';
|
|
4
|
-
export * from './AddImageIcon';
|
|
5
|
-
export * from './CircleDotIcon';
|
|
6
|
-
export * from './DeleteIcon';
|
|
7
|
-
export * from './RecordIcon';
|
|
8
|
-
export * from './SendIcon';
|
|
9
|
-
export * from './TrashIcon';
|
|
10
|
-
export * from './XIcon';
|
|
11
|
-
export * from './TickIcon';
|
|
12
|
-
export * from './AttachmentIcon';
|
|
13
|
-
export * from './SparklesIcon';
|
|
1
|
+
export * from './ClipboardIcon';
|
|
2
|
+
export * from './ThumbsDownIcon';
|
|
3
|
+
export * from './ThumbsUpIcon';
|
|
4
|
+
export * from './AddImageIcon';
|
|
5
|
+
export * from './CircleDotIcon';
|
|
6
|
+
export * from './DeleteIcon';
|
|
7
|
+
export * from './RecordIcon';
|
|
8
|
+
export * from './SendIcon';
|
|
9
|
+
export * from './TrashIcon';
|
|
10
|
+
export * from './XIcon';
|
|
11
|
+
export * from './TickIcon';
|
|
12
|
+
export * from './AttachmentIcon';
|
|
13
|
+
export * from './SparklesIcon';
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
type CardWithDeleteOverlayProps = {
|
|
2
|
-
item: {
|
|
3
|
-
name: string;
|
|
4
|
-
};
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
onDelete: (item: {
|
|
7
|
-
name: string;
|
|
8
|
-
}) => void;
|
|
9
|
-
};
|
|
10
|
-
export declare const FilePreview: (props: CardWithDeleteOverlayProps) => import("solid-js").JSX.Element;
|
|
11
|
-
export {};
|
|
1
|
+
type CardWithDeleteOverlayProps = {
|
|
2
|
+
item: {
|
|
3
|
+
name: string;
|
|
4
|
+
};
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
onDelete: (item: {
|
|
7
|
+
name: string;
|
|
8
|
+
}) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const FilePreview: (props: CardWithDeleteOverlayProps) => import("solid-js").JSX.Element;
|
|
11
|
+
export {};
|
|
12
12
|
//# sourceMappingURL=FilePreview.d.ts.map
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { Setter } from 'solid-js';
|
|
2
|
-
import { FileEvent, UploadsConfig } from '@/components/Bot';
|
|
3
|
-
type TextInputProps = {
|
|
4
|
-
placeholder?: string;
|
|
5
|
-
backgroundColor?: string;
|
|
6
|
-
textColor?: string;
|
|
7
|
-
sendButtonColor?: string;
|
|
8
|
-
inputValue: string;
|
|
9
|
-
fontSize?: number;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
onSubmit: (value: string) => void;
|
|
12
|
-
onInputChange: (value: string) => void;
|
|
13
|
-
uploadsConfig?: Partial<UploadsConfig>;
|
|
14
|
-
isFullFileUpload?: boolean;
|
|
15
|
-
setPreviews: Setter<unknown[]>;
|
|
16
|
-
onMicrophoneClicked: () => void;
|
|
17
|
-
handleFileChange: (event: FileEvent<HTMLInputElement>) => void;
|
|
18
|
-
maxChars?: number;
|
|
19
|
-
maxCharsWarningMessage?: string;
|
|
20
|
-
autoFocus?: boolean;
|
|
21
|
-
sendMessageSound?: boolean;
|
|
22
|
-
sendSoundLocation?: string;
|
|
23
|
-
enableInputHistory?: boolean;
|
|
24
|
-
maxHistorySize?: number;
|
|
25
|
-
};
|
|
26
|
-
export declare const TextInput: (props: TextInputProps) => import("solid-js").JSX.Element;
|
|
27
|
-
export {};
|
|
1
|
+
import { Setter } from 'solid-js';
|
|
2
|
+
import { FileEvent, UploadsConfig } from '@/components/Bot';
|
|
3
|
+
type TextInputProps = {
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
backgroundColor?: string;
|
|
6
|
+
textColor?: string;
|
|
7
|
+
sendButtonColor?: string;
|
|
8
|
+
inputValue: string;
|
|
9
|
+
fontSize?: number;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
onSubmit: (value: string) => void;
|
|
12
|
+
onInputChange: (value: string) => void;
|
|
13
|
+
uploadsConfig?: Partial<UploadsConfig>;
|
|
14
|
+
isFullFileUpload?: boolean;
|
|
15
|
+
setPreviews: Setter<unknown[]>;
|
|
16
|
+
onMicrophoneClicked: () => void;
|
|
17
|
+
handleFileChange: (event: FileEvent<HTMLInputElement>) => void;
|
|
18
|
+
maxChars?: number;
|
|
19
|
+
maxCharsWarningMessage?: string;
|
|
20
|
+
autoFocus?: boolean;
|
|
21
|
+
sendMessageSound?: boolean;
|
|
22
|
+
sendSoundLocation?: string;
|
|
23
|
+
enableInputHistory?: boolean;
|
|
24
|
+
maxHistorySize?: number;
|
|
25
|
+
};
|
|
26
|
+
export declare const TextInput: (props: TextInputProps) => import("solid-js").JSX.Element;
|
|
27
|
+
export {};
|
|
28
28
|
//# sourceMappingURL=TextInput.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { TextInput } from './components/TextInput';
|
|
2
|
-
export { FilePreview } from './components/FilePreview';
|
|
1
|
+
export { TextInput } from './components/TextInput';
|
|
2
|
+
export { FilePreview } from './components/FilePreview';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Bubble.d.ts","sourceRoot":"","sources":["../../../../src/features/bubble/components/Bubble.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAO,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAOxD,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,YAAY,CAAC;AAElD,eAAO,MAAM,MAAM,UAAW,WAAW,
|
|
1
|
+
{"version":3,"file":"Bubble.d.ts","sourceRoot":"","sources":["../../../../src/features/bubble/components/Bubble.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAO,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAOxD,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,YAAY,CAAC;AAElD,eAAO,MAAM,MAAM,UAAW,WAAW,mCA2PxC,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ButtonTheme } from '../types';
|
|
2
|
-
type Props = ButtonTheme & {
|
|
3
|
-
isBotOpened: boolean;
|
|
4
|
-
toggleBot: () => void;
|
|
5
|
-
setButtonPosition: (position: {
|
|
6
|
-
bottom: number;
|
|
7
|
-
right: number;
|
|
8
|
-
}) => void;
|
|
9
|
-
dragAndDrop: boolean;
|
|
10
|
-
autoOpen?: boolean;
|
|
11
|
-
openDelay?: number;
|
|
12
|
-
autoOpenOnMobile?: boolean;
|
|
13
|
-
};
|
|
14
|
-
export declare const BubbleButton: (props: Props) => import("solid-js").JSX.Element;
|
|
15
|
-
export {};
|
|
1
|
+
import { ButtonTheme } from '../types';
|
|
2
|
+
type Props = ButtonTheme & {
|
|
3
|
+
isBotOpened: boolean;
|
|
4
|
+
toggleBot: () => void;
|
|
5
|
+
setButtonPosition: (position: {
|
|
6
|
+
bottom: number;
|
|
7
|
+
right: number;
|
|
8
|
+
}) => void;
|
|
9
|
+
dragAndDrop: boolean;
|
|
10
|
+
autoOpen?: boolean;
|
|
11
|
+
openDelay?: number;
|
|
12
|
+
autoOpenOnMobile?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare const BubbleButton: (props: Props) => import("solid-js").JSX.Element;
|
|
15
|
+
export {};
|
|
16
16
|
//# sourceMappingURL=BubbleButton.d.ts.map
|