cmcts-c-agent-embedding-react 1.0.25 → 1.0.26-cagent
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/.idea/modules.xml +1 -1
- package/.idea/vcs.xml +5 -3
- package/dist/BubbleChat.d.ts +1 -4
- package/dist/BubbleChat.d.ts.map +1 -1
- package/dist/components/Badge.d.ts +10 -0
- package/dist/components/Badge.d.ts.map +1 -0
- package/dist/components/Bot.d.ts +130 -0
- package/dist/components/Bot.d.ts.map +1 -0
- package/dist/components/FeedbackContentDialog.d.ts +13 -0
- package/dist/components/FeedbackContentDialog.d.ts.map +1 -0
- package/dist/components/Toast.d.ts +10 -0
- package/dist/components/Toast.d.ts.map +1 -0
- package/dist/components/TypingBubble.d.ts +2 -0
- package/dist/components/TypingBubble.d.ts.map +1 -0
- package/dist/components/avatars/Avatar.d.ts +4 -0
- package/dist/components/avatars/Avatar.d.ts.map +1 -0
- package/dist/components/avatars/DefaultAvatar.d.ts +2 -0
- package/dist/components/avatars/DefaultAvatar.d.ts.map +1 -0
- package/dist/components/bubbles/AgentReasoningBubble.d.ts +16 -0
- package/dist/components/bubbles/AgentReasoningBubble.d.ts.map +1 -0
- package/dist/components/bubbles/BotBubble.d.ts +38 -0
- package/dist/components/bubbles/BotBubble.d.ts.map +1 -0
- package/dist/components/bubbles/ChartBubble.d.ts +9 -0
- package/dist/components/bubbles/ChartBubble.d.ts.map +1 -0
- package/dist/components/bubbles/ChartLoadingPlaceholder.d.ts +8 -0
- package/dist/components/bubbles/ChartLoadingPlaceholder.d.ts.map +1 -0
- package/dist/components/bubbles/ChartPlaceholder.d.ts +16 -0
- package/dist/components/bubbles/ChartPlaceholder.d.ts.map +1 -0
- package/dist/components/bubbles/ChartPortalContainer.d.ts +12 -0
- package/dist/components/bubbles/ChartPortalContainer.d.ts.map +1 -0
- package/dist/components/bubbles/FollowUpPromptBubble.d.ts +8 -0
- package/dist/components/bubbles/FollowUpPromptBubble.d.ts.map +1 -0
- package/dist/components/bubbles/GuestBubble.d.ts +16 -0
- package/dist/components/bubbles/GuestBubble.d.ts.map +1 -0
- package/dist/components/bubbles/LeadCaptureBubble.d.ts +20 -0
- package/dist/components/bubbles/LeadCaptureBubble.d.ts.map +1 -0
- package/dist/components/bubbles/LoadingBubble.d.ts +8 -0
- package/dist/components/bubbles/LoadingBubble.d.ts.map +1 -0
- package/dist/components/bubbles/SourceBubble.d.ts +9 -0
- package/dist/components/bubbles/SourceBubble.d.ts.map +1 -0
- package/dist/components/bubbles/StableChartWrapper.d.ts +16 -0
- package/dist/components/bubbles/StableChartWrapper.d.ts.map +1 -0
- package/dist/components/bubbles/StarterPromptBubble.d.ts +8 -0
- package/dist/components/bubbles/StarterPromptBubble.d.ts.map +1 -0
- package/dist/components/buttons/AttachmentUploadButton.d.ts +11 -0
- package/dist/components/buttons/AttachmentUploadButton.d.ts.map +1 -0
- package/dist/components/buttons/CancelButton.d.ts +10 -0
- package/dist/components/buttons/CancelButton.d.ts.map +1 -0
- package/dist/components/buttons/CopyMessageButton.d.ts +10 -0
- package/dist/components/buttons/CopyMessageButton.d.ts.map +1 -0
- package/dist/components/buttons/EditMessageButton.d.ts +8 -0
- package/dist/components/buttons/EditMessageButton.d.ts.map +1 -0
- package/dist/components/buttons/FeedbackButtons.d.ts +14 -0
- package/dist/components/buttons/FeedbackButtons.d.ts.map +1 -0
- package/dist/components/buttons/ImageUploadButton.d.ts +11 -0
- package/dist/components/buttons/ImageUploadButton.d.ts.map +1 -0
- package/dist/components/buttons/LeadCaptureButtons.d.ts +11 -0
- package/dist/components/buttons/LeadCaptureButtons.d.ts.map +1 -0
- package/dist/components/buttons/PopupToast.d.ts +7 -0
- package/dist/components/buttons/PopupToast.d.ts.map +1 -0
- package/dist/components/buttons/RecordAudioButton.d.ts +11 -0
- package/dist/components/buttons/RecordAudioButton.d.ts.map +1 -0
- package/dist/components/buttons/SendButton.d.ts +13 -0
- package/dist/components/buttons/SendButton.d.ts.map +1 -0
- package/dist/components/dialogs/EditMessageDialog.d.ts +9 -0
- package/dist/components/dialogs/EditMessageDialog.d.ts.map +1 -0
- package/dist/components/icons/AddImageIcon.d.ts +3 -0
- package/dist/components/icons/AddImageIcon.d.ts.map +1 -0
- package/dist/components/icons/AttachmentIcon.d.ts +3 -0
- package/dist/components/icons/AttachmentIcon.d.ts.map +1 -0
- package/dist/components/icons/CheckIcon.d.ts +3 -0
- package/dist/components/icons/CheckIcon.d.ts.map +1 -0
- package/dist/components/icons/CircleDotIcon.d.ts +3 -0
- package/dist/components/icons/CircleDotIcon.d.ts.map +1 -0
- package/dist/components/icons/ClipboardIcon.d.ts +3 -0
- package/dist/components/icons/ClipboardIcon.d.ts.map +1 -0
- package/dist/components/icons/CopyIcon.d.ts +5 -0
- package/dist/components/icons/CopyIcon.d.ts.map +1 -0
- package/dist/components/icons/DeleteIcon.d.ts +3 -0
- package/dist/components/icons/DeleteIcon.d.ts.map +1 -0
- package/dist/components/icons/EditIcon.d.ts +5 -0
- package/dist/components/icons/EditIcon.d.ts.map +1 -0
- package/dist/components/icons/FullScreenIcon.d.ts +3 -0
- package/dist/components/icons/FullScreenIcon.d.ts.map +1 -0
- package/dist/components/icons/RecordIcon.d.ts +3 -0
- package/dist/components/icons/RecordIcon.d.ts.map +1 -0
- package/dist/components/icons/SendIcon.d.ts +3 -0
- package/dist/components/icons/SendIcon.d.ts.map +1 -0
- package/dist/components/icons/SparklesIcon.d.ts +3 -0
- package/dist/components/icons/SparklesIcon.d.ts.map +1 -0
- package/dist/components/icons/ThumbsDownIcon.d.ts +5 -0
- package/dist/components/icons/ThumbsDownIcon.d.ts.map +1 -0
- package/dist/components/icons/ThumbsUpIcon.d.ts +5 -0
- package/dist/components/icons/ThumbsUpIcon.d.ts.map +1 -0
- package/dist/components/icons/TickIcon.d.ts +2 -0
- package/dist/components/icons/TickIcon.d.ts.map +1 -0
- package/dist/components/icons/TrashIcon.d.ts +3 -0
- package/dist/components/icons/TrashIcon.d.ts.map +1 -0
- package/dist/components/icons/XIcon.d.ts +5 -0
- package/dist/components/icons/XIcon.d.ts.map +1 -0
- package/dist/components/icons/index.d.ts +18 -0
- package/dist/components/icons/index.d.ts.map +1 -0
- package/dist/components/image/PreviewImage.d.ts +5 -0
- package/dist/components/image/PreviewImage.d.ts.map +1 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/inputs/textInput/components/FilePreview.d.ts +12 -0
- package/dist/components/inputs/textInput/components/FilePreview.d.ts.map +1 -0
- package/dist/components/inputs/textInput/components/ShortTextInput.d.ts +14 -0
- package/dist/components/inputs/textInput/components/ShortTextInput.d.ts.map +1 -0
- package/dist/components/inputs/textInput/components/TextInput.d.ts +48 -0
- package/dist/components/inputs/textInput/components/TextInput.d.ts.map +1 -0
- package/dist/components/inputs/textInput/index.d.ts +3 -0
- package/dist/components/inputs/textInput/index.d.ts.map +1 -0
- package/dist/constants.d.ts +3 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/features/bubble/components/Bubble.d.ts +5 -0
- package/dist/features/bubble/components/Bubble.d.ts.map +1 -0
- package/dist/features/bubble/components/BubbleButton.d.ts +16 -0
- package/dist/features/bubble/components/BubbleButton.d.ts.map +1 -0
- package/dist/features/bubble/components/Tooltip.d.ts +15 -0
- package/dist/features/bubble/components/Tooltip.d.ts.map +1 -0
- package/dist/features/bubble/components/index.d.ts +2 -0
- package/dist/features/bubble/components/index.d.ts.map +1 -0
- package/dist/features/bubble/index.d.ts +2 -0
- package/dist/features/bubble/index.d.ts.map +1 -0
- package/dist/features/bubble/types.d.ts +108 -0
- package/dist/features/bubble/types.d.ts.map +1 -0
- package/dist/features/full/components/Full.d.ts +7 -0
- package/dist/features/full/components/Full.d.ts.map +1 -0
- package/dist/features/full/components/index.d.ts +2 -0
- package/dist/features/full/components/index.d.ts.map +1 -0
- package/dist/features/full/index.d.ts +2 -0
- package/dist/features/full/index.d.ts.map +1 -0
- package/dist/features/popup/components/DisclaimerPopup.d.ts +14 -0
- package/dist/features/popup/components/DisclaimerPopup.d.ts.map +1 -0
- package/dist/features/popup/components/Popup.d.ts +8 -0
- package/dist/features/popup/components/Popup.d.ts.map +1 -0
- package/dist/features/popup/components/index.d.ts +3 -0
- package/dist/features/popup/components/index.d.ts.map +1 -0
- package/dist/features/popup/index.d.ts +2 -0
- package/dist/features/popup/index.d.ts.map +1 -0
- package/dist/features/popup/types.d.ts +8 -0
- package/dist/features/popup/types.d.ts.map +1 -0
- package/dist/index.js +1 -1
- package/dist/queries/sendMessageQuery.d.ts +143 -0
- package/dist/queries/sendMessageQuery.d.ts.map +1 -0
- package/dist/register.d.ts +2 -0
- package/dist/register.d.ts.map +1 -0
- package/dist/types/chart.d.ts +70 -0
- package/dist/types/chart.d.ts.map +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils/audioRecording.d.ts +21 -0
- package/dist/utils/audioRecording.d.ts.map +1 -0
- package/dist/utils/chartInstanceManager.d.ts +43 -0
- package/dist/utils/chartInstanceManager.d.ts.map +1 -0
- package/dist/utils/chartPortalManager.d.ts +76 -0
- package/dist/utils/chartPortalManager.d.ts.map +1 -0
- package/dist/utils/chartTagParser.d.ts +39 -0
- package/dist/utils/chartTagParser.d.ts.map +1 -0
- package/dist/utils/chatInputHistory.d.ts +22 -0
- package/dist/utils/chatInputHistory.d.ts.map +1 -0
- package/dist/utils/index.d.ts +27 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/isMobileSignal.d.ts +2 -0
- package/dist/utils/isMobileSignal.d.ts.map +1 -0
- package/dist/utils/textStreamSmoother.d.ts +40 -0
- package/dist/utils/textStreamSmoother.d.ts.map +1 -0
- package/dist/utils/transcriptApi.d.ts +8 -0
- package/dist/utils/transcriptApi.d.ts.map +1 -0
- package/dist/utils/ultimateJsonParser.d.ts +2 -0
- package/dist/utils/ultimateJsonParser.d.ts.map +1 -0
- package/dist/web.d.ts +31 -0
- package/dist/web.d.ts.map +1 -0
- package/dist/web.js +1 -0
- package/dist/window.d.ts +34 -0
- package/dist/window.d.ts.map +1 -0
- package/package.json +48 -43
- package/.idea/workspace.xml +0 -4
- /package/.idea/{Flowise-share-chatbox-main.iml → flowise-chatbox.iml} +0 -0
package/.idea/modules.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<project version="4">
|
|
3
3
|
<component name="ProjectModuleManager">
|
|
4
4
|
<modules>
|
|
5
|
-
<module fileurl="file://$PROJECT_DIR$/.idea/
|
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/flowise-chatbox.iml" filepath="$PROJECT_DIR$/.idea/flowise-chatbox.iml" />
|
|
6
6
|
</modules>
|
|
7
7
|
</component>
|
|
8
8
|
</project>
|
package/.idea/vcs.xml
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="VcsDirectoryMappings"
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="VcsDirectoryMappings">
|
|
4
|
+
<mapping directory="" vcs="Git" />
|
|
5
|
+
</component>
|
|
4
6
|
</project>
|
package/dist/BubbleChat.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { BubbleProps } from 'cmcts-c-agent-embedding';
|
|
3
|
-
type Props = BubbleProps;
|
|
4
2
|
declare global {
|
|
5
3
|
namespace JSX {
|
|
6
4
|
interface IntrinsicElements {
|
|
@@ -8,6 +6,5 @@ declare global {
|
|
|
8
6
|
}
|
|
9
7
|
}
|
|
10
8
|
}
|
|
11
|
-
export declare const BubbleChat: (props:
|
|
12
|
-
export {};
|
|
9
|
+
export declare const BubbleChat: (props: BubbleProps) => null;
|
|
13
10
|
//# sourceMappingURL=BubbleChat.d.ts.map
|
package/dist/BubbleChat.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BubbleChat.d.ts","sourceRoot":"","sources":["../src/BubbleChat.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"BubbleChat.d.ts","sourceRoot":"","sources":["../src/BubbleChat.tsx"],"names":[],"mappings":";AAKA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,GAAG,CAAC;QACZ,UAAU,iBAAiB;YACzB,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CACxC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EACjC,WAAW,CACZ,CAAA;SACF;KACF;CACF;AAID,eAAO,MAAM,UAAU,8BAkCtB,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FooterTheme } from '@/features/bubble/types';
|
|
2
|
+
type Props = {
|
|
3
|
+
footer?: FooterTheme;
|
|
4
|
+
botContainer: HTMLDivElement | undefined;
|
|
5
|
+
poweredByTextColor?: string;
|
|
6
|
+
badgeBackgroundColor?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const Badge: (props: Props) => any;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=Badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../src/components/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGtD,KAAK,KAAK,GAAG;IACX,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,YAAY,EAAE,cAAc,GAAG,SAAS,CAAC;IACzC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAIF,eAAO,MAAM,KAAK,UAAW,KAAK,QA+DjC,CAAC"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { FilePreview } from '@/components/inputs/textInput/components/FilePreview';
|
|
2
|
+
import { BotMessageTheme, DateTimeToggleTheme, DisclaimerPopUpTheme, FeedbackTheme, FooterTheme, TextInputTheme, UserMessageTheme } from '@/features/bubble/types';
|
|
3
|
+
import { FeedbackRatingType } from '@/queries/sendMessageQuery';
|
|
4
|
+
import type { ChartConfig } from '@/types/chart';
|
|
5
|
+
export type FileEvent<T = EventTarget> = {
|
|
6
|
+
target: T;
|
|
7
|
+
};
|
|
8
|
+
export type FormEvent<T = EventTarget> = {
|
|
9
|
+
preventDefault: () => void;
|
|
10
|
+
currentTarget: T;
|
|
11
|
+
};
|
|
12
|
+
type IUploadConstraits = {
|
|
13
|
+
fileTypes: string[];
|
|
14
|
+
maxUploadSize: number;
|
|
15
|
+
};
|
|
16
|
+
export type UploadsConfig = {
|
|
17
|
+
imgUploadSizeAndTypes: IUploadConstraits[];
|
|
18
|
+
fileUploadSizeAndTypes: IUploadConstraits[];
|
|
19
|
+
isImageUploadAllowed: boolean;
|
|
20
|
+
isSpeechToTextEnabled: boolean;
|
|
21
|
+
isRAGFileUploadAllowed: boolean;
|
|
22
|
+
};
|
|
23
|
+
type FilePreviewData = string | ArrayBuffer;
|
|
24
|
+
type FilePreview = {
|
|
25
|
+
data: FilePreviewData;
|
|
26
|
+
mime: string;
|
|
27
|
+
name: string;
|
|
28
|
+
preview: string;
|
|
29
|
+
type: string;
|
|
30
|
+
};
|
|
31
|
+
type messageType = 'apiMessage' | 'userMessage' | 'usermessagewaiting' | 'leadCaptureMessage';
|
|
32
|
+
export type IAgentReasoning = {
|
|
33
|
+
agentName?: string;
|
|
34
|
+
messages?: string[];
|
|
35
|
+
usedTools?: any[];
|
|
36
|
+
artifacts?: FileUpload[];
|
|
37
|
+
sourceDocuments?: any[];
|
|
38
|
+
instructions?: string;
|
|
39
|
+
nextAgent?: string;
|
|
40
|
+
};
|
|
41
|
+
export type IAction = {
|
|
42
|
+
id?: string;
|
|
43
|
+
elements?: Array<{
|
|
44
|
+
type: string;
|
|
45
|
+
label: string;
|
|
46
|
+
}>;
|
|
47
|
+
mapping?: {
|
|
48
|
+
approve: string;
|
|
49
|
+
reject: string;
|
|
50
|
+
toolCalls: any[];
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
export type FileUpload = Omit<FilePreview, 'preview'>;
|
|
54
|
+
export type MessageType = {
|
|
55
|
+
messageId?: string;
|
|
56
|
+
message: string;
|
|
57
|
+
type: messageType;
|
|
58
|
+
sourceDocuments?: any;
|
|
59
|
+
fileAnnotations?: any;
|
|
60
|
+
fileUploads?: Partial<FileUpload>[];
|
|
61
|
+
artifacts?: Partial<FileUpload>[];
|
|
62
|
+
agentReasoning?: IAgentReasoning[];
|
|
63
|
+
usedTools?: any[];
|
|
64
|
+
action?: IAction | null;
|
|
65
|
+
rating?: FeedbackRatingType;
|
|
66
|
+
id?: string;
|
|
67
|
+
followUpPrompts?: string;
|
|
68
|
+
dateTime?: string;
|
|
69
|
+
chartConfigs?: ChartConfig[];
|
|
70
|
+
};
|
|
71
|
+
type observerConfigType = (accessor: string | boolean | object | MessageType[]) => void;
|
|
72
|
+
export type observersConfigType = Record<'observeUserInput' | 'observeLoading' | 'observeMessages', observerConfigType>;
|
|
73
|
+
export type BotProps = {
|
|
74
|
+
chatflowid: string;
|
|
75
|
+
apiHost?: string;
|
|
76
|
+
onRequest?: (request: RequestInit) => Promise<void>;
|
|
77
|
+
chatflowConfig?: Record<string, unknown>;
|
|
78
|
+
welcomeMessage?: string;
|
|
79
|
+
secondMessage?: string;
|
|
80
|
+
errorMessage?: string;
|
|
81
|
+
botMessage?: BotMessageTheme;
|
|
82
|
+
userMessage?: UserMessageTheme;
|
|
83
|
+
textInput?: TextInputTheme;
|
|
84
|
+
feedback?: FeedbackTheme;
|
|
85
|
+
poweredByTextColor?: string;
|
|
86
|
+
badgeBackgroundColor?: string;
|
|
87
|
+
bubbleBackgroundColor?: string;
|
|
88
|
+
bubbleTextColor?: string;
|
|
89
|
+
showTitle?: boolean;
|
|
90
|
+
showAgentMessages?: boolean;
|
|
91
|
+
title?: string;
|
|
92
|
+
titleAvatarSrc?: string;
|
|
93
|
+
fontSize?: number;
|
|
94
|
+
isFullPage?: boolean;
|
|
95
|
+
footer?: FooterTheme;
|
|
96
|
+
sourceDocsTitle?: string;
|
|
97
|
+
observersConfig?: observersConfigType;
|
|
98
|
+
starterPrompts?: string[] | Record<string, {
|
|
99
|
+
prompt: string;
|
|
100
|
+
}>;
|
|
101
|
+
starterPromptFontSize?: number;
|
|
102
|
+
clearChatOnReload?: boolean;
|
|
103
|
+
disclaimer?: DisclaimerPopUpTheme;
|
|
104
|
+
dateTimeToggle?: DateTimeToggleTheme;
|
|
105
|
+
renderHTML?: boolean;
|
|
106
|
+
chatwootUrl?: string;
|
|
107
|
+
roomIds?: Record<string, string>;
|
|
108
|
+
isUseFAQ?: boolean;
|
|
109
|
+
filePath?: string;
|
|
110
|
+
suggestQuestions?: string;
|
|
111
|
+
externalData?: string;
|
|
112
|
+
callBackFunction?: (e: any) => void;
|
|
113
|
+
callBackIcon?: string;
|
|
114
|
+
onToggleFullScreen?: () => void;
|
|
115
|
+
isFullScreen?: boolean;
|
|
116
|
+
onResetChat?: () => void;
|
|
117
|
+
};
|
|
118
|
+
export type LeadsConfig = {
|
|
119
|
+
status: boolean;
|
|
120
|
+
title?: string;
|
|
121
|
+
name?: boolean;
|
|
122
|
+
email?: boolean;
|
|
123
|
+
phone?: boolean;
|
|
124
|
+
successMessage?: string;
|
|
125
|
+
};
|
|
126
|
+
export declare const Bot: (botProps: BotProps & {
|
|
127
|
+
class?: string;
|
|
128
|
+
}) => any;
|
|
129
|
+
export {};
|
|
130
|
+
//# sourceMappingURL=Bot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Bot.d.ts","sourceRoot":"","sources":["../../src/components/Bot.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,sDAAsD,CAAC;AACnF,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,aAAa,E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
|
+
onSubmit: (text: string) => void;
|
|
6
|
+
backgroundColor?: string;
|
|
7
|
+
textColor?: string;
|
|
8
|
+
inputValue: Accessor<string>;
|
|
9
|
+
setInputValue: Setter<string>;
|
|
10
|
+
};
|
|
11
|
+
declare const FeedbackContentDialog: (props: FeedbackContentDialogProps) => any;
|
|
12
|
+
export default FeedbackContentDialog;
|
|
13
|
+
//# sourceMappingURL=FeedbackContentDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeedbackContentDialog.d.ts","sourceRoot":"","sources":["../../src/components/FeedbackContentDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAE5C,KAAK,0BAA0B,GAAG;IAChC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;CAC/B,CAAC;AAKF,QAAA,MAAM,qBAAqB,UAAW,0BAA0B,QAuF/D,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
message: string;
|
|
3
|
+
type?: 'error' | 'success' | 'info';
|
|
4
|
+
duration?: number;
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
style?: Record<string, string>;
|
|
7
|
+
};
|
|
8
|
+
export declare const Toast: (props: Props) => any;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=Toast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../src/components/Toast.tsx"],"names":[],"mappings":"AAEA,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,KAAK,UAAW,KAAK,QA2DjC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TypingBubble.d.ts","sourceRoot":"","sources":["../../src/components/TypingBubble.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,WAMxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatars/Avatar.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM,UAAW;IAAE,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAAE,QAkB1D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultAvatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatars/DefaultAvatar.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,WAqCzB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FileUpload } from '../Bot';
|
|
2
|
+
type Props = {
|
|
3
|
+
apiHost?: string;
|
|
4
|
+
chatflowid: 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) => any;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=AgentReasoningBubble.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentReasoningBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/AgentReasoningBubble.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAGpC,KAAK,KAAK,GAAG;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,UAAU,EAAE,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAMF,eAAO,MAAM,oBAAoB,UAAW,KAAK,QAoFhD,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { IAction, MessageType } from '../Bot';
|
|
2
|
+
import { DateTimeToggleTheme } from '@/features/bubble/types';
|
|
3
|
+
import type { ChartConfig } from '@/types/chart';
|
|
4
|
+
type Props = {
|
|
5
|
+
message: MessageType;
|
|
6
|
+
setMessages?: any;
|
|
7
|
+
chatflowid: string;
|
|
8
|
+
chatId: string;
|
|
9
|
+
apiHost?: string;
|
|
10
|
+
onRequest?: (request: RequestInit) => Promise<void>;
|
|
11
|
+
fileAnnotations?: any;
|
|
12
|
+
showAvatar?: boolean;
|
|
13
|
+
avatarSrc?: string;
|
|
14
|
+
backgroundColor?: string;
|
|
15
|
+
textColor?: string;
|
|
16
|
+
chatFeedbackStatus?: boolean;
|
|
17
|
+
fontSize?: number;
|
|
18
|
+
feedbackColor?: string;
|
|
19
|
+
isLoading: boolean;
|
|
20
|
+
dateTimeToggle?: DateTimeToggleTheme;
|
|
21
|
+
showAgentMessages?: boolean;
|
|
22
|
+
sourceDocsTitle?: string;
|
|
23
|
+
renderHTML?: boolean;
|
|
24
|
+
handleActionClick: (label: string, action: IAction | undefined | null) => void;
|
|
25
|
+
handleSourceDocumentsClick: (src: any) => void;
|
|
26
|
+
chatwootUrl?: string;
|
|
27
|
+
onConnectToHumanAdvisor?: (id: string, params?: any) => void;
|
|
28
|
+
roomIds?: Record<string, string>;
|
|
29
|
+
question?: string;
|
|
30
|
+
callBackIcon?: string;
|
|
31
|
+
callBackFunction?: (e: any) => void;
|
|
32
|
+
checkShowCallbackBtn?: boolean;
|
|
33
|
+
pendingCharts?: Map<string, Partial<ChartConfig>>;
|
|
34
|
+
completedCharts?: Map<string, ChartConfig>;
|
|
35
|
+
};
|
|
36
|
+
export declare const BotBubble: (props: Props) => any;
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=BotBubble.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BotBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/BotBubble.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAc,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAM1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAM9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAGjD,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,WAAW,CAAC;IACrB,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,UAAU,CAAC,EAAE,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ChartBubbleProps } from '@/types/chart';
|
|
2
|
+
/**
|
|
3
|
+
* SolidJS component that renders a Chart.js chart with Vietnamese government styling.
|
|
4
|
+
* Features professional color palette, typography, and visual design appropriate
|
|
5
|
+
* for official government reports, dashboards, and publications.
|
|
6
|
+
*/
|
|
7
|
+
export declare const ChartBubble: (props: ChartBubbleProps) => any;
|
|
8
|
+
export default ChartBubble;
|
|
9
|
+
//# sourceMappingURL=ChartBubble.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/ChartBubble.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAsB,MAAM,eAAe,CAAC;AA8R1E;;;;GAIG;AACH,eAAO,MAAM,WAAW,UAAW,gBAAgB,QAsElD,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ChartLoadingPlaceholderProps } from '@/types/chart';
|
|
2
|
+
/**
|
|
3
|
+
* Loading skeleton component displayed while chart data is streaming.
|
|
4
|
+
* Shows an animated placeholder with a chart icon.
|
|
5
|
+
*/
|
|
6
|
+
export declare const ChartLoadingPlaceholder: (props: ChartLoadingPlaceholderProps) => any;
|
|
7
|
+
export default ChartLoadingPlaceholder;
|
|
8
|
+
//# sourceMappingURL=ChartLoadingPlaceholder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartLoadingPlaceholder.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/ChartLoadingPlaceholder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAIlE;;;GAGG;AACH,eAAO,MAAM,uBAAuB,UAAW,4BAA4B,QAkI1E,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ChartConfig } from '@/types/chart';
|
|
2
|
+
export interface ChartPlaceholderProps {
|
|
3
|
+
chartId: string;
|
|
4
|
+
config?: ChartConfig | null;
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
backgroundColor?: string;
|
|
7
|
+
textColor?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Simplified placeholder component that renders charts directly inline.
|
|
11
|
+
* Uses StableChartWrapper to ensure charts are only rendered once when config is available.
|
|
12
|
+
* No portal or position tracking needed - charts render in their natural flow position.
|
|
13
|
+
*/
|
|
14
|
+
export declare const ChartPlaceholder: (props: ChartPlaceholderProps) => any;
|
|
15
|
+
export default ChartPlaceholder;
|
|
16
|
+
//# sourceMappingURL=ChartPlaceholder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartPlaceholder.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/ChartPlaceholder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAGjD,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,UAAW,qBAAqB,QAuB5D,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ChartPortalContainerProps {
|
|
2
|
+
backgroundColor?: string;
|
|
3
|
+
textColor?: string;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Portal container that renders all charts outside the reactive streaming flow.
|
|
7
|
+
* Charts are positioned absolutely to overlay their corresponding placeholders.
|
|
8
|
+
* This prevents chart re-renders during message streaming.
|
|
9
|
+
*/
|
|
10
|
+
export declare const ChartPortalContainer: (props: ChartPortalContainerProps) => import("solid-js").JSX.Element;
|
|
11
|
+
export default ChartPortalContainer;
|
|
12
|
+
//# sourceMappingURL=ChartPortalContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartPortalContainer.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/ChartPortalContainer.tsx"],"names":[],"mappings":"AAMA,MAAM,WAAW,yBAAyB;IACxC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,UAAW,yBAAyB,mCA+DpE,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FollowUpPromptBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/FollowUpPromptBubble.tsx"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AACF,eAAO,MAAM,oBAAoB,UAAW,KAAK,QAsBhD,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MessageType } from '../Bot';
|
|
2
|
+
type Props = {
|
|
3
|
+
message: MessageType;
|
|
4
|
+
apiHost?: string;
|
|
5
|
+
chatflowid: 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) => any;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=GuestBubble.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuestBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/GuestBubble.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAc,WAAW,EAAE,MAAM,QAAQ,CAAC;AAGjD,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,WAAW,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAMF,eAAO,MAAM,WAAW,UAAW,KAAK,QA+EvC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LeadsConfig, MessageType } from '@/components/Bot';
|
|
2
|
+
type Props = {
|
|
3
|
+
message: MessageType;
|
|
4
|
+
chatflowid: string;
|
|
5
|
+
chatId: string;
|
|
6
|
+
leadsConfig?: LeadsConfig;
|
|
7
|
+
apiHost?: string;
|
|
8
|
+
showAvatar?: boolean;
|
|
9
|
+
avatarSrc?: string;
|
|
10
|
+
backgroundColor?: string;
|
|
11
|
+
textColor?: string;
|
|
12
|
+
sendButtonColor?: string;
|
|
13
|
+
fontSize?: number;
|
|
14
|
+
isLeadSaved: boolean;
|
|
15
|
+
setIsLeadSaved: (value: boolean) => void;
|
|
16
|
+
setLeadEmail: (value: string) => void;
|
|
17
|
+
};
|
|
18
|
+
export declare const LeadCaptureBubble: (props: Props) => any;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=LeadCaptureBubble.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LeadCaptureBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/LeadCaptureBubble.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAa,WAAW,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAMvE,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,WAAW,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC,CAAC;AAaF,eAAO,MAAM,iBAAiB,UAAW,KAAK,QAgI7C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadingBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/LoadingBubble.tsx"],"names":[],"mappings":"AAGA,KAAK,KAAK,GAAG;IACX,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,aAAa,UAAW,KAAK,QAWzC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SourceBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/SourceBubble.tsx"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,GAAG,CAAC,EAAE,GAAG,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,KAAK,QAmDxC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ChartConfig } from '@/types/chart';
|
|
2
|
+
export interface StableChartWrapperProps {
|
|
3
|
+
chartId: string;
|
|
4
|
+
config?: ChartConfig | null;
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
backgroundColor?: string;
|
|
7
|
+
textColor?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A stable wrapper component that renders ChartBubble only ONCE when config becomes available.
|
|
11
|
+
* Uses manual DOM rendering via solid-js/web render() to bypass reactive updates.
|
|
12
|
+
* This prevents re-renders during streaming updates.
|
|
13
|
+
*/
|
|
14
|
+
export declare const StableChartWrapper: (props: StableChartWrapperProps) => any;
|
|
15
|
+
export default StableChartWrapper;
|
|
16
|
+
//# sourceMappingURL=StableChartWrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StableChartWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/StableChartWrapper.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,UAAW,uBAAuB,QAmHhE,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StarterPromptBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/StarterPromptBubble.tsx"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AACF,eAAO,MAAM,mBAAmB,UAAW,KAAK,QA0B/C,CAAC"}
|
|
@@ -0,0 +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) => any;
|
|
9
|
+
export declare const Spinner: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => any;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=AttachmentUploadButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttachmentUploadButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/AttachmentUploadButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAG3C,KAAK,qBAAqB,GAAG;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEhD,eAAO,MAAM,sBAAsB,UAAW,qBAAqB,QAiBlE,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,QAgBjE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
+
type CancelButtonProps = {
|
|
3
|
+
buttonColor?: string;
|
|
4
|
+
isDisabled?: boolean;
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
disableIcon?: boolean;
|
|
7
|
+
} & JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
8
|
+
export declare const CancelButton: (props: CancelButtonProps) => any;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=CancelButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CancelButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/CancelButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAG3C,KAAK,iBAAiB,GAAG;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEhD,eAAO,MAAM,YAAY,UAAW,iBAAiB,QAepD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface ICopyMessageButtonProps {
|
|
2
|
+
class?: string;
|
|
3
|
+
isLoading?: boolean;
|
|
4
|
+
onCopy?: (text: string) => void;
|
|
5
|
+
copiedDuration?: number;
|
|
6
|
+
textToCopy: string;
|
|
7
|
+
}
|
|
8
|
+
declare const CopyMessageButton: (props: ICopyMessageButtonProps) => any;
|
|
9
|
+
export default CopyMessageButton;
|
|
10
|
+
//# sourceMappingURL=CopyMessageButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CopyMessageButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/CopyMessageButton.tsx"],"names":[],"mappings":"AAIA,UAAU,uBAAuB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,iBAAiB,UAAW,uBAAuB,QA6CxD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface IEditMessageButtonProps {
|
|
2
|
+
class?: string;
|
|
3
|
+
isLoading?: boolean;
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
}
|
|
6
|
+
declare const EditMessageButton: (props: IEditMessageButtonProps) => any;
|
|
7
|
+
export default EditMessageButton;
|
|
8
|
+
//# sourceMappingURL=EditMessageButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditMessageButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/EditMessageButton.tsx"],"names":[],"mappings":"AAEA,UAAU,uBAAuB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,QAAA,MAAM,iBAAiB,UAAW,uBAAuB,QAmBxD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
type RatingButtonProps = {
|
|
3
|
+
feedbackColor?: string;
|
|
4
|
+
activeBackgroundColor?: string;
|
|
5
|
+
isDisabled?: boolean;
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
disableIcon?: boolean;
|
|
8
|
+
rating?: string;
|
|
9
|
+
} & JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
10
|
+
export declare const CopyToClipboardButton: (props: RatingButtonProps) => any;
|
|
11
|
+
export declare const ThumbsUpButton: (props: RatingButtonProps) => any;
|
|
12
|
+
export declare const ThumbsDownButton: (props: RatingButtonProps) => any;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=FeedbackButtons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeedbackButtons.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/FeedbackButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAQ,MAAM,UAAU,CAAC;AAIrC,KAAK,iBAAiB,GAAG;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAIhD,eAAO,MAAM,qBAAqB,UAAW,iBAAiB,QAiB7D,CAAC;AAEF,eAAO,MAAM,cAAc,UAAW,iBAAiB,QA0BtD,CAAC;AAEF,eAAO,MAAM,gBAAgB,UAAW,iBAAiB,QA0BxD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
+
type ImageUploadButtonProps = {
|
|
3
|
+
buttonColor?: string;
|
|
4
|
+
isDisabled?: boolean;
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
disableIcon?: boolean;
|
|
7
|
+
} & JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
8
|
+
export declare const ImageUploadButton: (props: ImageUploadButtonProps) => any;
|
|
9
|
+
export declare const Spinner: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => any;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=ImageUploadButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageUploadButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/ImageUploadButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAG3C,KAAK,sBAAsB,GAAG;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEhD,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,QAiB9D,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,QAgBjE,CAAC"}
|