From 05fabdb3145721136d8e89f5fa5a6acdecd43999 Mon Sep 17 00:00:00 2001 From: tbwksm Date: Mon, 18 Aug 2025 11:23:41 +0900 Subject: [PATCH 01/44] Remove dist folder from Git tracking - now properly ignored --- dist/components/Badge.d.ts | 10 -- dist/components/Badge.d.ts.map | 1 - dist/components/Bot.d.ts | 134 ------------------ dist/components/Bot.d.ts.map | 1 - dist/components/FeedbackContentDialog.d.ts | 10 -- .../components/FeedbackContentDialog.d.ts.map | 1 - dist/components/ImageUploadButton.d.ts | 11 -- dist/components/ImageUploadButton.d.ts.map | 1 - dist/components/RecordAudioButton.d.ts | 11 -- dist/components/RecordAudioButton.d.ts.map | 1 - dist/components/RichTreeView.d.ts | 24 ---- dist/components/RichTreeView.d.ts.map | 1 - dist/components/SendButton.d.ts | 12 -- dist/components/SendButton.d.ts.map | 1 - dist/components/TreeViewDemo.d.ts | 6 - dist/components/TreeViewDemo.d.ts.map | 1 - dist/components/TypingBubble.d.ts | 2 - dist/components/TypingBubble.d.ts.map | 1 - dist/components/avatars/Avatar.d.ts | 4 - dist/components/avatars/Avatar.d.ts.map | 1 - dist/components/avatars/DefaultAvatar.d.ts | 2 - .../components/avatars/DefaultAvatar.d.ts.map | 1 - .../bubbles/AgentReasoningBubble.d.ts | 16 --- .../bubbles/AgentReasoningBubble.d.ts.map | 1 - dist/components/bubbles/BotBubble.d.ts | 27 ---- dist/components/bubbles/BotBubble.d.ts.map | 1 - .../bubbles/FollowUpPromptBubble.d.ts | 8 -- .../bubbles/FollowUpPromptBubble.d.ts.map | 1 - dist/components/bubbles/GuestBubble.d.ts | 16 --- dist/components/bubbles/GuestBubble.d.ts.map | 1 - .../components/bubbles/LeadCaptureBubble.d.ts | 20 --- .../bubbles/LeadCaptureBubble.d.ts.map | 1 - dist/components/bubbles/LoadingBubble.d.ts | 2 - .../components/bubbles/LoadingBubble.d.ts.map | 1 - dist/components/bubbles/SourceBubble.d.ts | 8 -- dist/components/bubbles/SourceBubble.d.ts.map | 1 - .../bubbles/StarterPromptBubble.d.ts | 8 -- .../bubbles/StarterPromptBubble.d.ts.map | 1 - .../buttons/AttachmentUploadButton.d.ts | 11 -- .../buttons/AttachmentUploadButton.d.ts.map | 1 - dist/components/buttons/CancelButton.d.ts | 10 -- dist/components/buttons/CancelButton.d.ts.map | 1 - dist/components/buttons/FeedbackButtons.d.ts | 13 -- .../buttons/FeedbackButtons.d.ts.map | 1 - .../components/buttons/ImageUploadButton.d.ts | 11 -- .../buttons/ImageUploadButton.d.ts.map | 1 - .../buttons/LeadCaptureButtons.d.ts | 11 -- .../buttons/LeadCaptureButtons.d.ts.map | 1 - .../components/buttons/RecordAudioButton.d.ts | 11 -- .../buttons/RecordAudioButton.d.ts.map | 1 - dist/components/buttons/SendButton.d.ts | 12 -- dist/components/buttons/SendButton.d.ts.map | 1 - dist/components/examples/TreeViewExample.d.ts | 2 - .../examples/TreeViewExample.d.ts.map | 1 - dist/components/examples/index.d.ts | 6 - dist/components/examples/index.d.ts.map | 1 - dist/components/icons/AddImageIcon.d.ts | 3 - dist/components/icons/AddImageIcon.d.ts.map | 1 - dist/components/icons/AttachmentIcon.d.ts | 3 - dist/components/icons/AttachmentIcon.d.ts.map | 1 - dist/components/icons/CircleDotIcon.d.ts | 3 - dist/components/icons/CircleDotIcon.d.ts.map | 1 - dist/components/icons/ClipboardIcon.d.ts | 3 - dist/components/icons/ClipboardIcon.d.ts.map | 1 - dist/components/icons/DeleteIcon.d.ts | 3 - dist/components/icons/DeleteIcon.d.ts.map | 1 - dist/components/icons/RecordIcon.d.ts | 3 - dist/components/icons/RecordIcon.d.ts.map | 1 - dist/components/icons/SendIcon.d.ts | 3 - dist/components/icons/SendIcon.d.ts.map | 1 - dist/components/icons/SparklesIcon.d.ts | 3 - dist/components/icons/SparklesIcon.d.ts.map | 1 - dist/components/icons/ThumbsDownIcon.d.ts | 3 - dist/components/icons/ThumbsDownIcon.d.ts.map | 1 - dist/components/icons/ThumbsUpIcon.d.ts | 3 - dist/components/icons/ThumbsUpIcon.d.ts.map | 1 - dist/components/icons/TickIcon.d.ts | 2 - dist/components/icons/TickIcon.d.ts.map | 1 - dist/components/icons/TrashIcon.d.ts | 3 - dist/components/icons/TrashIcon.d.ts.map | 1 - dist/components/icons/XIcon.d.ts | 5 - dist/components/icons/XIcon.d.ts.map | 1 - dist/components/icons/index.d.ts | 14 -- dist/components/icons/index.d.ts.map | 1 - dist/components/index.d.ts | 3 - dist/components/index.d.ts.map | 1 - .../textInput/components/FilePreview.d.ts | 12 -- .../textInput/components/FilePreview.d.ts.map | 1 - .../textInput/components/ShortTextInput.d.ts | 10 -- .../components/ShortTextInput.d.ts.map | 1 - .../textInput/components/TextInput.d.ts | 29 ---- .../textInput/components/TextInput.d.ts.map | 1 - dist/components/inputs/textInput/index.d.ts | 3 - .../inputs/textInput/index.d.ts.map | 1 - dist/components/treeview/DataTransformer.d.ts | 7 - .../treeview/DataTransformer.d.ts.map | 1 - dist/components/treeview/RichTreeView.d.ts | 24 ---- .../components/treeview/RichTreeView.d.ts.map | 1 - dist/components/treeview/TreeView.d.ts | 22 --- dist/components/treeview/TreeView.d.ts.map | 1 - .../components/treeview/WorkflowTreeView.d.ts | 20 --- .../treeview/WorkflowTreeView.d.ts.map | 1 - dist/constants.d.ts | 3 - dist/constants.d.ts.map | 1 - dist/features/bubble/components/Bubble.d.ts | 5 - .../bubble/components/Bubble.d.ts.map | 1 - .../bubble/components/BubbleButton.d.ts | 16 --- .../bubble/components/BubbleButton.d.ts.map | 1 - dist/features/bubble/components/Tooltip.d.ts | 15 -- .../bubble/components/Tooltip.d.ts.map | 1 - dist/features/bubble/components/index.d.ts | 2 - .../features/bubble/components/index.d.ts.map | 1 - dist/features/bubble/index.d.ts | 2 - dist/features/bubble/index.d.ts.map | 1 - dist/features/bubble/types.d.ts | 116 --------------- dist/features/bubble/types.d.ts.map | 1 - dist/features/full/components/Full.d.ts | 7 - dist/features/full/components/Full.d.ts.map | 1 - dist/features/full/components/index.d.ts | 2 - dist/features/full/components/index.d.ts.map | 1 - dist/features/full/index.d.ts | 2 - dist/features/full/index.d.ts.map | 1 - .../popup/components/DisclaimerPopup.d.ts | 18 --- .../popup/components/DisclaimerPopup.d.ts.map | 1 - dist/features/popup/components/Popup.d.ts | 8 -- dist/features/popup/components/Popup.d.ts.map | 1 - dist/features/popup/components/index.d.ts | 3 - dist/features/popup/components/index.d.ts.map | 1 - dist/features/popup/index.d.ts | 2 - dist/features/popup/index.d.ts.map | 1 - dist/features/popup/types.d.ts | 8 -- dist/features/popup/types.d.ts.map | 1 - dist/index.d.ts | 3 - dist/index.d.ts.map | 1 - dist/queries/sendMessageQuery.d.ts | 89 ------------ dist/queries/sendMessageQuery.d.ts.map | 1 - dist/register.d.ts | 2 - dist/register.d.ts.map | 1 - dist/types.d.ts | 1 - dist/types.d.ts.map | 1 - dist/utils/audioRecording.d.ts | 21 --- dist/utils/audioRecording.d.ts.map | 1 - dist/utils/chatInputHistory.d.ts | 22 --- dist/utils/chatInputHistory.d.ts.map | 1 - dist/utils/index.d.ts | 23 --- dist/utils/index.d.ts.map | 1 - dist/utils/isMobileSignal.d.ts | 2 - dist/utils/isMobileSignal.d.ts.map | 1 - dist/web.d.ts | 23 --- dist/web.d.ts.map | 1 - dist/web.js | 1 - dist/web.umd.js | 1 - dist/window.d.ts | 30 ---- dist/window.d.ts.map | 1 - 154 files changed, 1105 deletions(-) delete mode 100644 dist/components/Badge.d.ts delete mode 100644 dist/components/Badge.d.ts.map delete mode 100644 dist/components/Bot.d.ts delete mode 100644 dist/components/Bot.d.ts.map delete mode 100644 dist/components/FeedbackContentDialog.d.ts delete mode 100644 dist/components/FeedbackContentDialog.d.ts.map delete mode 100644 dist/components/ImageUploadButton.d.ts delete mode 100644 dist/components/ImageUploadButton.d.ts.map delete mode 100644 dist/components/RecordAudioButton.d.ts delete mode 100644 dist/components/RecordAudioButton.d.ts.map delete mode 100644 dist/components/RichTreeView.d.ts delete mode 100644 dist/components/RichTreeView.d.ts.map delete mode 100644 dist/components/SendButton.d.ts delete mode 100644 dist/components/SendButton.d.ts.map delete mode 100644 dist/components/TreeViewDemo.d.ts delete mode 100644 dist/components/TreeViewDemo.d.ts.map delete mode 100644 dist/components/TypingBubble.d.ts delete mode 100644 dist/components/TypingBubble.d.ts.map delete mode 100644 dist/components/avatars/Avatar.d.ts delete mode 100644 dist/components/avatars/Avatar.d.ts.map delete mode 100644 dist/components/avatars/DefaultAvatar.d.ts delete mode 100644 dist/components/avatars/DefaultAvatar.d.ts.map delete mode 100644 dist/components/bubbles/AgentReasoningBubble.d.ts delete mode 100644 dist/components/bubbles/AgentReasoningBubble.d.ts.map delete mode 100644 dist/components/bubbles/BotBubble.d.ts delete mode 100644 dist/components/bubbles/BotBubble.d.ts.map delete mode 100644 dist/components/bubbles/FollowUpPromptBubble.d.ts delete mode 100644 dist/components/bubbles/FollowUpPromptBubble.d.ts.map delete mode 100644 dist/components/bubbles/GuestBubble.d.ts delete mode 100644 dist/components/bubbles/GuestBubble.d.ts.map delete mode 100644 dist/components/bubbles/LeadCaptureBubble.d.ts delete mode 100644 dist/components/bubbles/LeadCaptureBubble.d.ts.map delete mode 100644 dist/components/bubbles/LoadingBubble.d.ts delete mode 100644 dist/components/bubbles/LoadingBubble.d.ts.map delete mode 100644 dist/components/bubbles/SourceBubble.d.ts delete mode 100644 dist/components/bubbles/SourceBubble.d.ts.map delete mode 100644 dist/components/bubbles/StarterPromptBubble.d.ts delete mode 100644 dist/components/bubbles/StarterPromptBubble.d.ts.map delete mode 100644 dist/components/buttons/AttachmentUploadButton.d.ts delete mode 100644 dist/components/buttons/AttachmentUploadButton.d.ts.map delete mode 100644 dist/components/buttons/CancelButton.d.ts delete mode 100644 dist/components/buttons/CancelButton.d.ts.map delete mode 100644 dist/components/buttons/FeedbackButtons.d.ts delete mode 100644 dist/components/buttons/FeedbackButtons.d.ts.map delete mode 100644 dist/components/buttons/ImageUploadButton.d.ts delete mode 100644 dist/components/buttons/ImageUploadButton.d.ts.map delete mode 100644 dist/components/buttons/LeadCaptureButtons.d.ts delete mode 100644 dist/components/buttons/LeadCaptureButtons.d.ts.map delete mode 100644 dist/components/buttons/RecordAudioButton.d.ts delete mode 100644 dist/components/buttons/RecordAudioButton.d.ts.map delete mode 100644 dist/components/buttons/SendButton.d.ts delete mode 100644 dist/components/buttons/SendButton.d.ts.map delete mode 100644 dist/components/examples/TreeViewExample.d.ts delete mode 100644 dist/components/examples/TreeViewExample.d.ts.map delete mode 100644 dist/components/examples/index.d.ts delete mode 100644 dist/components/examples/index.d.ts.map delete mode 100644 dist/components/icons/AddImageIcon.d.ts delete mode 100644 dist/components/icons/AddImageIcon.d.ts.map delete mode 100644 dist/components/icons/AttachmentIcon.d.ts delete mode 100644 dist/components/icons/AttachmentIcon.d.ts.map delete mode 100644 dist/components/icons/CircleDotIcon.d.ts delete mode 100644 dist/components/icons/CircleDotIcon.d.ts.map delete mode 100644 dist/components/icons/ClipboardIcon.d.ts delete mode 100644 dist/components/icons/ClipboardIcon.d.ts.map delete mode 100644 dist/components/icons/DeleteIcon.d.ts delete mode 100644 dist/components/icons/DeleteIcon.d.ts.map delete mode 100644 dist/components/icons/RecordIcon.d.ts delete mode 100644 dist/components/icons/RecordIcon.d.ts.map delete mode 100644 dist/components/icons/SendIcon.d.ts delete mode 100644 dist/components/icons/SendIcon.d.ts.map delete mode 100644 dist/components/icons/SparklesIcon.d.ts delete mode 100644 dist/components/icons/SparklesIcon.d.ts.map delete mode 100644 dist/components/icons/ThumbsDownIcon.d.ts delete mode 100644 dist/components/icons/ThumbsDownIcon.d.ts.map delete mode 100644 dist/components/icons/ThumbsUpIcon.d.ts delete mode 100644 dist/components/icons/ThumbsUpIcon.d.ts.map delete mode 100644 dist/components/icons/TickIcon.d.ts delete mode 100644 dist/components/icons/TickIcon.d.ts.map delete mode 100644 dist/components/icons/TrashIcon.d.ts delete mode 100644 dist/components/icons/TrashIcon.d.ts.map delete mode 100644 dist/components/icons/XIcon.d.ts delete mode 100644 dist/components/icons/XIcon.d.ts.map delete mode 100644 dist/components/icons/index.d.ts delete mode 100644 dist/components/icons/index.d.ts.map delete mode 100644 dist/components/index.d.ts delete mode 100644 dist/components/index.d.ts.map delete mode 100644 dist/components/inputs/textInput/components/FilePreview.d.ts delete mode 100644 dist/components/inputs/textInput/components/FilePreview.d.ts.map delete mode 100644 dist/components/inputs/textInput/components/ShortTextInput.d.ts delete mode 100644 dist/components/inputs/textInput/components/ShortTextInput.d.ts.map delete mode 100644 dist/components/inputs/textInput/components/TextInput.d.ts delete mode 100644 dist/components/inputs/textInput/components/TextInput.d.ts.map delete mode 100644 dist/components/inputs/textInput/index.d.ts delete mode 100644 dist/components/inputs/textInput/index.d.ts.map delete mode 100644 dist/components/treeview/DataTransformer.d.ts delete mode 100644 dist/components/treeview/DataTransformer.d.ts.map delete mode 100644 dist/components/treeview/RichTreeView.d.ts delete mode 100644 dist/components/treeview/RichTreeView.d.ts.map delete mode 100644 dist/components/treeview/TreeView.d.ts delete mode 100644 dist/components/treeview/TreeView.d.ts.map delete mode 100644 dist/components/treeview/WorkflowTreeView.d.ts delete mode 100644 dist/components/treeview/WorkflowTreeView.d.ts.map delete mode 100644 dist/constants.d.ts delete mode 100644 dist/constants.d.ts.map delete mode 100644 dist/features/bubble/components/Bubble.d.ts delete mode 100644 dist/features/bubble/components/Bubble.d.ts.map delete mode 100644 dist/features/bubble/components/BubbleButton.d.ts delete mode 100644 dist/features/bubble/components/BubbleButton.d.ts.map delete mode 100644 dist/features/bubble/components/Tooltip.d.ts delete mode 100644 dist/features/bubble/components/Tooltip.d.ts.map delete mode 100644 dist/features/bubble/components/index.d.ts delete mode 100644 dist/features/bubble/components/index.d.ts.map delete mode 100644 dist/features/bubble/index.d.ts delete mode 100644 dist/features/bubble/index.d.ts.map delete mode 100644 dist/features/bubble/types.d.ts delete mode 100644 dist/features/bubble/types.d.ts.map delete mode 100644 dist/features/full/components/Full.d.ts delete mode 100644 dist/features/full/components/Full.d.ts.map delete mode 100644 dist/features/full/components/index.d.ts delete mode 100644 dist/features/full/components/index.d.ts.map delete mode 100644 dist/features/full/index.d.ts delete mode 100644 dist/features/full/index.d.ts.map delete mode 100644 dist/features/popup/components/DisclaimerPopup.d.ts delete mode 100644 dist/features/popup/components/DisclaimerPopup.d.ts.map delete mode 100644 dist/features/popup/components/Popup.d.ts delete mode 100644 dist/features/popup/components/Popup.d.ts.map delete mode 100644 dist/features/popup/components/index.d.ts delete mode 100644 dist/features/popup/components/index.d.ts.map delete mode 100644 dist/features/popup/index.d.ts delete mode 100644 dist/features/popup/index.d.ts.map delete mode 100644 dist/features/popup/types.d.ts delete mode 100644 dist/features/popup/types.d.ts.map delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.d.ts.map delete mode 100644 dist/queries/sendMessageQuery.d.ts delete mode 100644 dist/queries/sendMessageQuery.d.ts.map delete mode 100644 dist/register.d.ts delete mode 100644 dist/register.d.ts.map delete mode 100644 dist/types.d.ts delete mode 100644 dist/types.d.ts.map delete mode 100644 dist/utils/audioRecording.d.ts delete mode 100644 dist/utils/audioRecording.d.ts.map delete mode 100644 dist/utils/chatInputHistory.d.ts delete mode 100644 dist/utils/chatInputHistory.d.ts.map delete mode 100644 dist/utils/index.d.ts delete mode 100644 dist/utils/index.d.ts.map delete mode 100644 dist/utils/isMobileSignal.d.ts delete mode 100644 dist/utils/isMobileSignal.d.ts.map delete mode 100644 dist/web.d.ts delete mode 100644 dist/web.d.ts.map delete mode 100644 dist/web.js delete mode 100644 dist/web.umd.js delete mode 100644 dist/window.d.ts delete mode 100644 dist/window.d.ts.map diff --git a/dist/components/Badge.d.ts b/dist/components/Badge.d.ts deleted file mode 100644 index 80768d1c9..000000000 --- a/dist/components/Badge.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { FooterTheme } from '@/features/bubble/types'; -type Props = { - footer?: FooterTheme; - botContainer: HTMLDivElement | undefined; - poweredByTextColor?: string; - badgeBackgroundColor?: string; -}; -export declare const Badge: (props: Props) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=Badge.d.ts.map \ No newline at end of file diff --git a/dist/components/Badge.d.ts.map b/dist/components/Badge.d.ts.map deleted file mode 100644 index 58e516692..000000000 --- a/dist/components/Badge.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"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,mCA+DjC,CAAC"} \ No newline at end of file diff --git a/dist/components/Bot.d.ts b/dist/components/Bot.d.ts deleted file mode 100644 index 9041c256c..000000000 --- a/dist/components/Bot.d.ts +++ /dev/null @@ -1,134 +0,0 @@ -import { FeedbackRatingType } from '@/queries/sendMessageQuery'; -import { BotMessageTheme, FooterTheme, TextInputTheme, UserMessageTheme, FeedbackTheme, DisclaimerPopUpTheme, DateTimeToggleTheme } from '@/features/bubble/types'; -import { FilePreview } from '@/components/inputs/textInput/components/FilePreview'; -export type FileEvent = { - target: T; -}; -export type FormEvent = { - preventDefault: () => void; - currentTarget: T; -}; -type IUploadConstraits = { - fileTypes: string[]; - maxUploadSize: number; -}; -export type UploadsConfig = { - imgUploadSizeAndTypes: IUploadConstraits[]; - fileUploadSizeAndTypes: IUploadConstraits[]; - isImageUploadAllowed: boolean; - isSpeechToTextEnabled: boolean; - isRAGFileUploadAllowed: boolean; -}; -type FilePreviewData = string | ArrayBuffer; -type FilePreview = { - data: FilePreviewData; - mime: string; - name: string; - preview: string; - type: string; -}; -type messageType = 'apiMessage' | 'userMessage' | 'usermessagewaiting' | 'leadCaptureMessage'; -type ExecutionState = 'INPROGRESS' | 'FINISHED' | 'ERROR' | 'TERMINATED' | 'TIMEOUT' | 'STOPPED'; -export type IAgentReasoning = { - agentName?: string; - messages?: string[]; - usedTools?: any[]; - artifacts?: FileUpload[]; - sourceDocuments?: any[]; - instructions?: string; - nextAgent?: string; -}; -export type IAction = { - id?: string; - data?: any; - elements?: Array<{ - type: string; - label: string; - }>; - mapping?: { - approve: string; - reject: string; - toolCalls: any[]; - }; -}; -export type FileUpload = Omit; -export type AgentFlowExecutedData = { - nodeLabel: string; - nodeId: string; - data: any; - previousNodeIds: string[]; - status?: ExecutionState; -}; -export type MessageType = { - messageId?: string; - message: string; - type: messageType; - sourceDocuments?: any; - fileAnnotations?: any; - fileUploads?: Partial[]; - artifacts?: Partial[]; - agentReasoning?: IAgentReasoning[]; - execution?: any; - agentFlowEventStatus?: string; - agentFlowExecutedData?: any; - usedTools?: any[]; - action?: IAction | null; - rating?: FeedbackRatingType; - id?: string; - followUpPrompts?: string; - dateTime?: string; -}; -type observerConfigType = (accessor: string | boolean | object | MessageType[]) => void; -export type observersConfigType = Record<'observeUserInput' | 'observeLoading' | 'observeMessages', observerConfigType>; -export type BotProps = { - chatflowid: string; - apiHost?: string; - onRequest?: (request: RequestInit) => Promise; - chatflowConfig?: Record; - backgroundColor?: string; - welcomeMessage?: string; - errorMessage?: string; - botMessage?: BotMessageTheme; - userMessage?: UserMessageTheme; - textInput?: TextInputTheme; - feedback?: FeedbackTheme; - poweredByTextColor?: string; - badgeBackgroundColor?: string; - bubbleBackgroundColor?: string; - bubbleTextColor?: string; - showTitle?: boolean; - showAgentMessages?: boolean; - title?: string; - titleAvatarSrc?: string; - titleTextColor?: string; - titleBackgroundColor?: string; - formBackgroundColor?: string; - formTextColor?: string; - fontSize?: number; - isFullPage?: boolean; - footer?: FooterTheme; - sourceDocsTitle?: string; - observersConfig?: observersConfigType; - starterPrompts?: string[] | Record; - starterPromptFontSize?: number; - clearChatOnReload?: boolean; - disclaimer?: DisclaimerPopUpTheme; - dateTimeToggle?: DateTimeToggleTheme; - renderHTML?: boolean; - closeBot?: () => void; -}; -export type LeadsConfig = { - status: boolean; - title?: string; - name?: boolean; - email?: boolean; - phone?: boolean; - successMessage?: string; -}; -export declare const Bot: (botProps: BotProps & { - class?: string; -}) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=Bot.d.ts.map \ No newline at end of file diff --git a/dist/components/Bot.d.ts.map b/dist/components/Bot.d.ts.map deleted file mode 100644 index 37b93d377..000000000 --- a/dist/components/Bot.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Bot.d.ts","sourceRoot":"","sources":["../../src/components/Bot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAML,kBAAkB,EAEnB,MAAM,4BAA4B,CAAC;AAMpC,OAAO,EACL,eAAe,EACf,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,yBAAyB,CAAC;AAKjC,OAAO,EAAE,WAAW,EAAE,MAAM,sDAAsD,CAAC;AAUnF,MAAM,MAAM,SAAS,CAAC,CAAC,GAAG,WAAW,IAAI;IACvC,MAAM,EAAE,CAAC,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,SAAS,CAAC,CAAC,GAAG,WAAW,IAAI;IACvC,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,aAAa,EAAE,CAAC,CAAC;CAClB,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,qBAAqB,EAAE,iBAAiB,EAAE,CAAC;IAC3C,sBAAsB,EAAE,iBAAiB,EAAE,CAAC;IAC5C,oBAAoB,EAAE,OAAO,CAAC;IAC9B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,sBAAsB,EAAE,OAAO,CAAC;CACjC,CAAC;AAEF,KAAK,eAAe,GAAG,MAAM,GAAG,WAAW,CAAC;AAE5C,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,eAAe,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,KAAK,WAAW,GAAG,YAAY,GAAG,aAAa,GAAG,oBAAoB,GAAG,oBAAoB,CAAC;AAC9F,KAAK,cAAc,GAAG,YAAY,GAAG,UAAU,GAAG,OAAO,GAAG,YAAY,GAAG,SAAS,GAAG,SAAS,CAAC;AAEjG,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC;IAClB,SAAS,CAAC,EAAE,UAAU,EAAE,CAAC;IACzB,eAAe,CAAC,EAAE,GAAG,EAAE,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,QAAQ,CAAC,EAAE,KAAK,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACf,CAAC,CAAC;IACH,OAAO,CAAC,EAAE;QACR,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,GAAG,EAAE,CAAC;KAClB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;AAEtD,MAAM,MAAM,qBAAqB,GAAG;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,GAAG,CAAC;IACV,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,WAAW,CAAC;IAClB,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;IACpC,SAAS,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;IAClC,cAAc,CAAC,EAAE,eAAe,EAAE,CAAC;IACnC,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,qBAAqB,CAAC,EAAE,GAAG,CAAC;IAC5B,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AASF,KAAK,kBAAkB,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,WAAW,EAAE,KAAK,IAAI,CAAC;AACxF,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,kBAAkB,GAAG,gBAAgB,GAAG,iBAAiB,EAAE,kBAAkB,CAAC,CAAC;AAExH,MAAM,MAAM,QAAQ,GAAG;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACtC,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC/D,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,cAAc,CAAC,EAAE,mBAAmB,CAAC;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AA+QF,eAAO,MAAM,GAAG,aAAc,QAAQ,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,mCAyjD1D,CAAC"} \ No newline at end of file diff --git a/dist/components/FeedbackContentDialog.d.ts b/dist/components/FeedbackContentDialog.d.ts deleted file mode 100644 index 338f9c42f..000000000 --- a/dist/components/FeedbackContentDialog.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -type FeedbackContentDialogProps = { - isOpen: boolean; - onClose: () => void; - onSubmit: (text: string) => void; - backgroundColor?: string; - textColor?: string; -}; -declare const FeedbackContentDialog: (props: FeedbackContentDialogProps) => import("solid-js").JSX.Element; -export default FeedbackContentDialog; -//# sourceMappingURL=FeedbackContentDialog.d.ts.map \ No newline at end of file diff --git a/dist/components/FeedbackContentDialog.d.ts.map b/dist/components/FeedbackContentDialog.d.ts.map deleted file mode 100644 index a6d9cb4ee..000000000 --- a/dist/components/FeedbackContentDialog.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FeedbackContentDialog.d.ts","sourceRoot":"","sources":["../../src/components/FeedbackContentDialog.tsx"],"names":[],"mappings":"AAEA,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;CACpB,CAAC;AAKF,QAAA,MAAM,qBAAqB,UAAW,0BAA0B,mCAwF/D,CAAC;AAEF,eAAe,qBAAqB,CAAC"} \ No newline at end of file diff --git a/dist/components/ImageUploadButton.d.ts b/dist/components/ImageUploadButton.d.ts deleted file mode 100644 index aab4ed06b..000000000 --- a/dist/components/ImageUploadButton.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -type ImageUploadButtonProps = { - buttonColor?: string; - isDisabled?: boolean; - isLoading?: boolean; - disableIcon?: boolean; -} & JSX.ButtonHTMLAttributes; -export declare const ImageUploadButton: (props: ImageUploadButtonProps) => JSX.Element; -export declare const Spinner: (props: JSX.SvgSVGAttributes) => JSX.Element; -export {}; -//# sourceMappingURL=ImageUploadButton.d.ts.map \ No newline at end of file diff --git a/dist/components/ImageUploadButton.d.ts.map b/dist/components/ImageUploadButton.d.ts.map deleted file mode 100644 index c74e6ba8c..000000000 --- a/dist/components/ImageUploadButton.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ImageUploadButton.d.ts","sourceRoot":"","sources":["../../src/components/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,gBAiB9D,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBjE,CAAC"} \ No newline at end of file diff --git a/dist/components/RecordAudioButton.d.ts b/dist/components/RecordAudioButton.d.ts deleted file mode 100644 index 8139e337f..000000000 --- a/dist/components/RecordAudioButton.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -type RecordAudioButtonProps = { - buttonColor?: string; - isDisabled?: boolean; - isLoading?: boolean; - disableIcon?: boolean; -} & JSX.ButtonHTMLAttributes; -export declare const RecordAudioButton: (props: RecordAudioButtonProps) => JSX.Element; -export declare const Spinner: (props: JSX.SvgSVGAttributes) => JSX.Element; -export {}; -//# sourceMappingURL=RecordAudioButton.d.ts.map \ No newline at end of file diff --git a/dist/components/RecordAudioButton.d.ts.map b/dist/components/RecordAudioButton.d.ts.map deleted file mode 100644 index 3eab23b81..000000000 --- a/dist/components/RecordAudioButton.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RecordAudioButton.d.ts","sourceRoot":"","sources":["../../src/components/RecordAudioButton.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,gBAiB9D,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBjE,CAAC"} \ No newline at end of file diff --git a/dist/components/RichTreeView.d.ts b/dist/components/RichTreeView.d.ts deleted file mode 100644 index 98684f5c9..000000000 --- a/dist/components/RichTreeView.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { JSXElement } from 'solid-js'; -import './TreeView.css'; -type RichTreeViewProps = { - children: JSXElement; - defaultExpanded?: string[]; - onNodeSelect?: (itemId: string) => void; - highlightItems?: string[]; - multiSelect?: boolean; - class?: string; - indentationLevel?: number; -}; -export declare const RichTreeView: (props: RichTreeViewProps) => import("solid-js").JSX.Element; -type TreeItemProps = { - itemId: string; - label: string | JSXElement; - children?: JSXElement; - icon?: JSXElement; - expandedIcon?: JSXElement; - endIcon?: JSXElement; - isLeaf?: boolean; -}; -export declare const TreeItem: (props: TreeItemProps) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=RichTreeView.d.ts.map \ No newline at end of file diff --git a/dist/components/RichTreeView.d.ts.map b/dist/components/RichTreeView.d.ts.map deleted file mode 100644 index 41335b5cd..000000000 --- a/dist/components/RichTreeView.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RichTreeView.d.ts","sourceRoot":"","sources":["../../src/components/RichTreeView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2C,UAAU,EAAuC,MAAM,UAAU,CAAC;AAGpH,OAAO,gBAAgB,CAAC;AAgHxB,KAAK,iBAAiB,GAAG;IACvB,QAAQ,EAAE,UAAU,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAUF,eAAO,MAAM,YAAY,UAAW,iBAAiB,mCAuEpD,CAAC;AAGF,KAAK,aAAa,GAAG;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC;IAC3B,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAGF,eAAO,MAAM,QAAQ,UAAW,aAAa,mCA+D5C,CAAC"} \ No newline at end of file diff --git a/dist/components/SendButton.d.ts b/dist/components/SendButton.d.ts deleted file mode 100644 index 1ae608e5a..000000000 --- a/dist/components/SendButton.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -type SendButtonProps = { - sendButtonColor?: string; - isDisabled?: boolean; - isLoading?: boolean; - disableIcon?: boolean; -} & JSX.ButtonHTMLAttributes; -export declare const SendButton: (props: SendButtonProps) => JSX.Element; -export declare const DeleteButton: (props: SendButtonProps) => JSX.Element; -export declare const Spinner: (props: JSX.SvgSVGAttributes) => JSX.Element; -export {}; -//# sourceMappingURL=SendButton.d.ts.map \ No newline at end of file diff --git a/dist/components/SendButton.d.ts.map b/dist/components/SendButton.d.ts.map deleted file mode 100644 index c300a1119..000000000 --- a/dist/components/SendButton.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SendButton.d.ts","sourceRoot":"","sources":["../../src/components/SendButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAI3C,KAAK,eAAe,GAAG;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,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,UAAU,UAAW,eAAe,gBAiBhD,CAAC;AACF,eAAO,MAAM,YAAY,UAAW,eAAe,gBAkBlD,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBjE,CAAC"} \ No newline at end of file diff --git a/dist/components/TreeViewDemo.d.ts b/dist/components/TreeViewDemo.d.ts deleted file mode 100644 index 89d220baf..000000000 --- a/dist/components/TreeViewDemo.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -type TreeViewDemoProps = { - class?: string; -}; -export declare const TreeViewDemo: (props: TreeViewDemoProps) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=TreeViewDemo.d.ts.map \ No newline at end of file diff --git a/dist/components/TreeViewDemo.d.ts.map b/dist/components/TreeViewDemo.d.ts.map deleted file mode 100644 index 0ec602b1f..000000000 --- a/dist/components/TreeViewDemo.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TreeViewDemo.d.ts","sourceRoot":"","sources":["../../src/components/TreeViewDemo.tsx"],"names":[],"mappings":"AA6DA,KAAK,iBAAiB,GAAG;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAGF,eAAO,MAAM,YAAY,UAAW,iBAAiB,mCAoEpD,CAAC"} \ No newline at end of file diff --git a/dist/components/TypingBubble.d.ts b/dist/components/TypingBubble.d.ts deleted file mode 100644 index f11a19e4e..000000000 --- a/dist/components/TypingBubble.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const TypingBubble: () => import("solid-js").JSX.Element; -//# sourceMappingURL=TypingBubble.d.ts.map \ No newline at end of file diff --git a/dist/components/TypingBubble.d.ts.map b/dist/components/TypingBubble.d.ts.map deleted file mode 100644 index 2f452b7b9..000000000 --- a/dist/components/TypingBubble.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TypingBubble.d.ts","sourceRoot":"","sources":["../../src/components/TypingBubble.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,sCAMxB,CAAC"} \ No newline at end of file diff --git a/dist/components/avatars/Avatar.d.ts b/dist/components/avatars/Avatar.d.ts deleted file mode 100644 index 17e9d9a44..000000000 --- a/dist/components/avatars/Avatar.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare const Avatar: (props: { - initialAvatarSrc?: string; -}) => import("solid-js").JSX.Element; -//# sourceMappingURL=Avatar.d.ts.map \ No newline at end of file diff --git a/dist/components/avatars/Avatar.d.ts.map b/dist/components/avatars/Avatar.d.ts.map deleted file mode 100644 index 0f77b3dec..000000000 --- a/dist/components/avatars/Avatar.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"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,mCAkB1D,CAAC"} \ No newline at end of file diff --git a/dist/components/avatars/DefaultAvatar.d.ts b/dist/components/avatars/DefaultAvatar.d.ts deleted file mode 100644 index e3b7f66c5..000000000 --- a/dist/components/avatars/DefaultAvatar.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const DefaultAvatar: () => import("solid-js").JSX.Element; -//# sourceMappingURL=DefaultAvatar.d.ts.map \ No newline at end of file diff --git a/dist/components/avatars/DefaultAvatar.d.ts.map b/dist/components/avatars/DefaultAvatar.d.ts.map deleted file mode 100644 index 47782146e..000000000 --- a/dist/components/avatars/DefaultAvatar.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DefaultAvatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatars/DefaultAvatar.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,sCAqCzB,CAAC"} \ No newline at end of file diff --git a/dist/components/bubbles/AgentReasoningBubble.d.ts b/dist/components/bubbles/AgentReasoningBubble.d.ts deleted file mode 100644 index eb97a5fff..000000000 --- a/dist/components/bubbles/AgentReasoningBubble.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { FileUpload } from '../Bot'; -type Props = { - apiHost?: string; - chatflowid: string; - chatId: string; - agentName: string; - agentMessage: string; - agentArtifacts?: FileUpload[]; - backgroundColor?: string; - textColor?: string; - fontSize?: number; - renderHTML?: boolean; -}; -export declare const AgentReasoningBubble: (props: Props) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=AgentReasoningBubble.d.ts.map \ No newline at end of file diff --git a/dist/components/bubbles/AgentReasoningBubble.d.ts.map b/dist/components/bubbles/AgentReasoningBubble.d.ts.map deleted file mode 100644 index 46961544b..000000000 --- a/dist/components/bubbles/AgentReasoningBubble.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"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,mCAoFhD,CAAC"} \ No newline at end of file diff --git a/dist/components/bubbles/BotBubble.d.ts b/dist/components/bubbles/BotBubble.d.ts deleted file mode 100644 index 2dbac1f0c..000000000 --- a/dist/components/bubbles/BotBubble.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { IAction, MessageType } from '../Bot'; -import { DateTimeToggleTheme } from '@/features/bubble/types'; -type Props = { - message: MessageType; - chatflowid: string; - chatId: string; - apiHost?: string; - onRequest?: (request: RequestInit) => Promise; - fileAnnotations?: any; - showAvatar?: boolean; - avatarSrc?: string; - backgroundColor?: string; - textColor?: string; - chatFeedbackStatus?: boolean; - fontSize?: number; - feedbackColor?: string; - isLoading: boolean; - dateTimeToggle?: DateTimeToggleTheme; - showAgentMessages?: boolean; - sourceDocsTitle?: string; - renderHTML?: boolean; - handleActionClick: (elem: any, action: IAction | undefined | null) => void; - handleSourceDocumentsClick: (src: any) => void; -}; -export declare const BotBubble: (props: Props) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=BotBubble.d.ts.map \ No newline at end of file diff --git a/dist/components/bubbles/BotBubble.d.ts.map b/dist/components/bubbles/BotBubble.d.ts.map deleted file mode 100644 index 01a96f1e0..000000000 --- a/dist/components/bubbles/BotBubble.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BotBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/BotBubble.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAc,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAM1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAG9D,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,WAAW,CAAC;IACrB,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,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,mBAAmB,CAAC;IACrC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI,KAAK,IAAI,CAAC;IAC3E,0BAA0B,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;CAChD,CAAC;AAOF,eAAO,MAAM,SAAS,UAAW,KAAK,mCA0gBrC,CAAC"} \ No newline at end of file diff --git a/dist/components/bubbles/FollowUpPromptBubble.d.ts b/dist/components/bubbles/FollowUpPromptBubble.d.ts deleted file mode 100644 index 2b96a6917..000000000 --- a/dist/components/bubbles/FollowUpPromptBubble.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -type Props = { - prompt: string; - onPromptClick?: () => void; - starterPromptFontSize?: number; -}; -export declare const FollowUpPromptBubble: (props: Props) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=FollowUpPromptBubble.d.ts.map \ No newline at end of file diff --git a/dist/components/bubbles/FollowUpPromptBubble.d.ts.map b/dist/components/bubbles/FollowUpPromptBubble.d.ts.map deleted file mode 100644 index 93835fca4..000000000 --- a/dist/components/bubbles/FollowUpPromptBubble.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"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,mCAsBhD,CAAC"} \ No newline at end of file diff --git a/dist/components/bubbles/GuestBubble.d.ts b/dist/components/bubbles/GuestBubble.d.ts deleted file mode 100644 index 3cad860f0..000000000 --- a/dist/components/bubbles/GuestBubble.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { MessageType } from '../Bot'; -type Props = { - message: MessageType; - apiHost?: string; - chatflowid: string; - chatId: string; - showAvatar?: boolean; - avatarSrc?: string; - backgroundColor?: string; - textColor?: string; - fontSize?: number; - renderHTML?: boolean; -}; -export declare const GuestBubble: (props: Props) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=GuestBubble.d.ts.map \ No newline at end of file diff --git a/dist/components/bubbles/GuestBubble.d.ts.map b/dist/components/bubbles/GuestBubble.d.ts.map deleted file mode 100644 index 052abe815..000000000 --- a/dist/components/bubbles/GuestBubble.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"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,mCAgGvC,CAAC"} \ No newline at end of file diff --git a/dist/components/bubbles/LeadCaptureBubble.d.ts b/dist/components/bubbles/LeadCaptureBubble.d.ts deleted file mode 100644 index 05e8b8d6d..000000000 --- a/dist/components/bubbles/LeadCaptureBubble.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { LeadsConfig, MessageType } from '@/components/Bot'; -type Props = { - message: MessageType; - chatflowid: string; - chatId: string; - leadsConfig?: LeadsConfig; - apiHost?: string; - showAvatar?: boolean; - avatarSrc?: string; - backgroundColor?: string; - textColor?: string; - sendButtonColor?: string; - fontSize?: number; - isLeadSaved: boolean; - setIsLeadSaved: (value: boolean) => void; - setLeadEmail: (value: string) => void; -}; -export declare const LeadCaptureBubble: (props: Props) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=LeadCaptureBubble.d.ts.map \ No newline at end of file diff --git a/dist/components/bubbles/LeadCaptureBubble.d.ts.map b/dist/components/bubbles/LeadCaptureBubble.d.ts.map deleted file mode 100644 index e50d482df..000000000 --- a/dist/components/bubbles/LeadCaptureBubble.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"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,mCAgI7C,CAAC"} \ No newline at end of file diff --git a/dist/components/bubbles/LoadingBubble.d.ts b/dist/components/bubbles/LoadingBubble.d.ts deleted file mode 100644 index 228314a6d..000000000 --- a/dist/components/bubbles/LoadingBubble.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const LoadingBubble: () => import("solid-js").JSX.Element; -//# sourceMappingURL=LoadingBubble.d.ts.map \ No newline at end of file diff --git a/dist/components/bubbles/LoadingBubble.d.ts.map b/dist/components/bubbles/LoadingBubble.d.ts.map deleted file mode 100644 index 105246a54..000000000 --- a/dist/components/bubbles/LoadingBubble.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LoadingBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/LoadingBubble.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,sCAMzB,CAAC"} \ No newline at end of file diff --git a/dist/components/bubbles/SourceBubble.d.ts b/dist/components/bubbles/SourceBubble.d.ts deleted file mode 100644 index 4773c7f36..000000000 --- a/dist/components/bubbles/SourceBubble.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -type Props = { - pageContent: string; - metadata: object; - onSourceClick?: () => void; -}; -export declare const SourceBubble: (props: Props) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=SourceBubble.d.ts.map \ No newline at end of file diff --git a/dist/components/bubbles/SourceBubble.d.ts.map b/dist/components/bubbles/SourceBubble.d.ts.map deleted file mode 100644 index ccd82ce1e..000000000 --- a/dist/components/bubbles/SourceBubble.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"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;CAC5B,CAAC;AACF,eAAO,MAAM,YAAY,UAAW,KAAK,mCA0BxC,CAAC"} \ No newline at end of file diff --git a/dist/components/bubbles/StarterPromptBubble.d.ts b/dist/components/bubbles/StarterPromptBubble.d.ts deleted file mode 100644 index 85716e239..000000000 --- a/dist/components/bubbles/StarterPromptBubble.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -type Props = { - prompt: string; - onPromptClick?: () => void; - starterPromptFontSize?: number; -}; -export declare const StarterPromptBubble: (props: Props) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=StarterPromptBubble.d.ts.map \ No newline at end of file diff --git a/dist/components/bubbles/StarterPromptBubble.d.ts.map b/dist/components/bubbles/StarterPromptBubble.d.ts.map deleted file mode 100644 index 78d2f2bdf..000000000 --- a/dist/components/bubbles/StarterPromptBubble.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"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,mCAsB/C,CAAC"} \ No newline at end of file diff --git a/dist/components/buttons/AttachmentUploadButton.d.ts b/dist/components/buttons/AttachmentUploadButton.d.ts deleted file mode 100644 index d209f7f12..000000000 --- a/dist/components/buttons/AttachmentUploadButton.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -type FileUploadButtonProps = { - buttonColor?: string; - isDisabled?: boolean; - isLoading?: boolean; - disableIcon?: boolean; -} & JSX.ButtonHTMLAttributes; -export declare const AttachmentUploadButton: (props: FileUploadButtonProps) => JSX.Element; -export declare const Spinner: (props: JSX.SvgSVGAttributes) => JSX.Element; -export {}; -//# sourceMappingURL=AttachmentUploadButton.d.ts.map \ No newline at end of file diff --git a/dist/components/buttons/AttachmentUploadButton.d.ts.map b/dist/components/buttons/AttachmentUploadButton.d.ts.map deleted file mode 100644 index da9650130..000000000 --- a/dist/components/buttons/AttachmentUploadButton.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"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,gBAiBlE,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBjE,CAAC"} \ No newline at end of file diff --git a/dist/components/buttons/CancelButton.d.ts b/dist/components/buttons/CancelButton.d.ts deleted file mode 100644 index 48822c804..000000000 --- a/dist/components/buttons/CancelButton.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -type CancelButtonProps = { - buttonColor?: string; - isDisabled?: boolean; - isLoading?: boolean; - disableIcon?: boolean; -} & JSX.ButtonHTMLAttributes; -export declare const CancelButton: (props: CancelButtonProps) => JSX.Element; -export {}; -//# sourceMappingURL=CancelButton.d.ts.map \ No newline at end of file diff --git a/dist/components/buttons/CancelButton.d.ts.map b/dist/components/buttons/CancelButton.d.ts.map deleted file mode 100644 index 66927a224..000000000 --- a/dist/components/buttons/CancelButton.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"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,gBAepD,CAAC"} \ No newline at end of file diff --git a/dist/components/buttons/FeedbackButtons.d.ts b/dist/components/buttons/FeedbackButtons.d.ts deleted file mode 100644 index ca610aa9d..000000000 --- a/dist/components/buttons/FeedbackButtons.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { JSX } from 'solid-js'; -type RatingButtonProps = { - feedbackColor?: string; - isDisabled?: boolean; - isLoading?: boolean; - disableIcon?: boolean; - rating?: string; -} & JSX.ButtonHTMLAttributes; -export declare const CopyToClipboardButton: (props: RatingButtonProps) => JSX.Element; -export declare const ThumbsUpButton: (props: RatingButtonProps) => JSX.Element; -export declare const ThumbsDownButton: (props: RatingButtonProps) => JSX.Element; -export {}; -//# sourceMappingURL=FeedbackButtons.d.ts.map \ No newline at end of file diff --git a/dist/components/buttons/FeedbackButtons.d.ts.map b/dist/components/buttons/FeedbackButtons.d.ts.map deleted file mode 100644 index fe314d26d..000000000 --- a/dist/components/buttons/FeedbackButtons.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"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,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,gBAiB7D,CAAC;AAEF,eAAO,MAAM,cAAc,UAAW,iBAAiB,gBAkBtD,CAAC;AAEF,eAAO,MAAM,gBAAgB,UAAW,iBAAiB,gBAkBxD,CAAC"} \ No newline at end of file diff --git a/dist/components/buttons/ImageUploadButton.d.ts b/dist/components/buttons/ImageUploadButton.d.ts deleted file mode 100644 index aab4ed06b..000000000 --- a/dist/components/buttons/ImageUploadButton.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -type ImageUploadButtonProps = { - buttonColor?: string; - isDisabled?: boolean; - isLoading?: boolean; - disableIcon?: boolean; -} & JSX.ButtonHTMLAttributes; -export declare const ImageUploadButton: (props: ImageUploadButtonProps) => JSX.Element; -export declare const Spinner: (props: JSX.SvgSVGAttributes) => JSX.Element; -export {}; -//# sourceMappingURL=ImageUploadButton.d.ts.map \ No newline at end of file diff --git a/dist/components/buttons/ImageUploadButton.d.ts.map b/dist/components/buttons/ImageUploadButton.d.ts.map deleted file mode 100644 index b84ecbea0..000000000 --- a/dist/components/buttons/ImageUploadButton.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"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,gBAiB9D,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBjE,CAAC"} \ No newline at end of file diff --git a/dist/components/buttons/LeadCaptureButtons.d.ts b/dist/components/buttons/LeadCaptureButtons.d.ts deleted file mode 100644 index 7607ad106..000000000 --- a/dist/components/buttons/LeadCaptureButtons.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { JSX } from 'solid-js'; -type LeadCaptureButtonProps = { - buttonColor?: string; - isDisabled?: boolean; - isLoading?: boolean; - disableIcon?: boolean; -} & JSX.ButtonHTMLAttributes; -export declare const CancelLeadCaptureButton: (props: LeadCaptureButtonProps) => JSX.Element; -export declare const SaveLeadButton: (props: LeadCaptureButtonProps) => JSX.Element; -export {}; -//# sourceMappingURL=LeadCaptureButtons.d.ts.map \ No newline at end of file diff --git a/dist/components/buttons/LeadCaptureButtons.d.ts.map b/dist/components/buttons/LeadCaptureButtons.d.ts.map deleted file mode 100644 index d80b5bbc0..000000000 --- a/dist/components/buttons/LeadCaptureButtons.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LeadCaptureButtons.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/LeadCaptureButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAQ,MAAM,UAAU,CAAC;AAIrC,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;AAGhD,eAAO,MAAM,uBAAuB,UAAW,sBAAsB,gBAepE,CAAC;AAWF,eAAO,MAAM,cAAc,UAAW,sBAAsB,gBAc3D,CAAC"} \ No newline at end of file diff --git a/dist/components/buttons/RecordAudioButton.d.ts b/dist/components/buttons/RecordAudioButton.d.ts deleted file mode 100644 index 8139e337f..000000000 --- a/dist/components/buttons/RecordAudioButton.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -type RecordAudioButtonProps = { - buttonColor?: string; - isDisabled?: boolean; - isLoading?: boolean; - disableIcon?: boolean; -} & JSX.ButtonHTMLAttributes; -export declare const RecordAudioButton: (props: RecordAudioButtonProps) => JSX.Element; -export declare const Spinner: (props: JSX.SvgSVGAttributes) => JSX.Element; -export {}; -//# sourceMappingURL=RecordAudioButton.d.ts.map \ No newline at end of file diff --git a/dist/components/buttons/RecordAudioButton.d.ts.map b/dist/components/buttons/RecordAudioButton.d.ts.map deleted file mode 100644 index 9f263ae53..000000000 --- a/dist/components/buttons/RecordAudioButton.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RecordAudioButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/RecordAudioButton.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,gBAiB9D,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBjE,CAAC"} \ No newline at end of file diff --git a/dist/components/buttons/SendButton.d.ts b/dist/components/buttons/SendButton.d.ts deleted file mode 100644 index 1ae608e5a..000000000 --- a/dist/components/buttons/SendButton.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -type SendButtonProps = { - sendButtonColor?: string; - isDisabled?: boolean; - isLoading?: boolean; - disableIcon?: boolean; -} & JSX.ButtonHTMLAttributes; -export declare const SendButton: (props: SendButtonProps) => JSX.Element; -export declare const DeleteButton: (props: SendButtonProps) => JSX.Element; -export declare const Spinner: (props: JSX.SvgSVGAttributes) => JSX.Element; -export {}; -//# sourceMappingURL=SendButton.d.ts.map \ No newline at end of file diff --git a/dist/components/buttons/SendButton.d.ts.map b/dist/components/buttons/SendButton.d.ts.map deleted file mode 100644 index 935ceaa06..000000000 --- a/dist/components/buttons/SendButton.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SendButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/SendButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAG3C,KAAK,eAAe,GAAG;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,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,UAAU,UAAW,eAAe,gBAiBhD,CAAC;AACF,eAAO,MAAM,YAAY,UAAW,eAAe,gBAsBlD,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBjE,CAAC"} \ No newline at end of file diff --git a/dist/components/examples/TreeViewExample.d.ts b/dist/components/examples/TreeViewExample.d.ts deleted file mode 100644 index c29627b47..000000000 --- a/dist/components/examples/TreeViewExample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const TreeViewExample: () => import("solid-js").JSX.Element; -//# sourceMappingURL=TreeViewExample.d.ts.map \ No newline at end of file diff --git a/dist/components/examples/TreeViewExample.d.ts.map b/dist/components/examples/TreeViewExample.d.ts.map deleted file mode 100644 index 95a6c5e43..000000000 --- a/dist/components/examples/TreeViewExample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TreeViewExample.d.ts","sourceRoot":"","sources":["../../../src/components/examples/TreeViewExample.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe,sCAqG3B,CAAC"} \ No newline at end of file diff --git a/dist/components/examples/index.d.ts b/dist/components/examples/index.d.ts deleted file mode 100644 index df92bad26..000000000 --- a/dist/components/examples/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export * from './TreeViewExample'; -export * from './WorkflowTreeView'; -export * from './WorkflowExample'; -export * from './DataTransformer'; -export * from './WorkflowJsonDemo'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/examples/index.d.ts.map b/dist/components/examples/index.d.ts.map deleted file mode 100644 index f8b3f6c30..000000000 --- a/dist/components/examples/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/examples/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/AddImageIcon.d.ts b/dist/components/icons/AddImageIcon.d.ts deleted file mode 100644 index 4536720f6..000000000 --- a/dist/components/icons/AddImageIcon.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -export declare const AddImageIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; -//# sourceMappingURL=AddImageIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/AddImageIcon.d.ts.map b/dist/components/icons/AddImageIcon.d.ts.map deleted file mode 100644 index 003cd2dc5..000000000 --- a/dist/components/icons/AddImageIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AddImageIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/AddImageIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,YAAY,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAkBtE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/AttachmentIcon.d.ts b/dist/components/icons/AttachmentIcon.d.ts deleted file mode 100644 index 67c09539b..000000000 --- a/dist/components/icons/AttachmentIcon.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -export declare const AttachmentIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; -//# sourceMappingURL=AttachmentIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/AttachmentIcon.d.ts.map b/dist/components/icons/AttachmentIcon.d.ts.map deleted file mode 100644 index d654be14e..000000000 --- a/dist/components/icons/AttachmentIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AttachmentIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/AttachmentIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,cAAc,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBxE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/CircleDotIcon.d.ts b/dist/components/icons/CircleDotIcon.d.ts deleted file mode 100644 index 15080c2d1..000000000 --- a/dist/components/icons/CircleDotIcon.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -export declare const CircleDotIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; -//# sourceMappingURL=CircleDotIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/CircleDotIcon.d.ts.map b/dist/components/icons/CircleDotIcon.d.ts.map deleted file mode 100644 index 3dbd7f74a..000000000 --- a/dist/components/icons/CircleDotIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CircleDotIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/CircleDotIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,aAAa,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAevE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/ClipboardIcon.d.ts b/dist/components/icons/ClipboardIcon.d.ts deleted file mode 100644 index 1de75985a..000000000 --- a/dist/components/icons/ClipboardIcon.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -export declare const ClipboardIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; -//# sourceMappingURL=ClipboardIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/ClipboardIcon.d.ts.map b/dist/components/icons/ClipboardIcon.d.ts.map deleted file mode 100644 index a49e1091b..000000000 --- a/dist/components/icons/ClipboardIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ClipboardIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/ClipboardIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,aAAa,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBvE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/DeleteIcon.d.ts b/dist/components/icons/DeleteIcon.d.ts deleted file mode 100644 index e85753790..000000000 --- a/dist/components/icons/DeleteIcon.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -export declare const DeleteIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; -//# sourceMappingURL=DeleteIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/DeleteIcon.d.ts.map b/dist/components/icons/DeleteIcon.d.ts.map deleted file mode 100644 index 2080bf5fd..000000000 --- a/dist/components/icons/DeleteIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DeleteIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/DeleteIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,UAAU,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAiBpE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/RecordIcon.d.ts b/dist/components/icons/RecordIcon.d.ts deleted file mode 100644 index 633262cb1..000000000 --- a/dist/components/icons/RecordIcon.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -export declare const RecordIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; -//# sourceMappingURL=RecordIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/RecordIcon.d.ts.map b/dist/components/icons/RecordIcon.d.ts.map deleted file mode 100644 index b5e6f727c..000000000 --- a/dist/components/icons/RecordIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RecordIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/RecordIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,UAAU,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBpE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/SendIcon.d.ts b/dist/components/icons/SendIcon.d.ts deleted file mode 100644 index 117487ca8..000000000 --- a/dist/components/icons/SendIcon.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -export declare const SendIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; -//# sourceMappingURL=SendIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/SendIcon.d.ts.map b/dist/components/icons/SendIcon.d.ts.map deleted file mode 100644 index 01d48c990..000000000 --- a/dist/components/icons/SendIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SendIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/SendIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,QAAQ,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAIlE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/SparklesIcon.d.ts b/dist/components/icons/SparklesIcon.d.ts deleted file mode 100644 index f65f5e770..000000000 --- a/dist/components/icons/SparklesIcon.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -export declare const SparklesIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; -//# sourceMappingURL=SparklesIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/SparklesIcon.d.ts.map b/dist/components/icons/SparklesIcon.d.ts.map deleted file mode 100644 index ff72ce26a..000000000 --- a/dist/components/icons/SparklesIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SparklesIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/SparklesIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAG3C,eAAO,MAAM,YAAY,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBtE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/ThumbsDownIcon.d.ts b/dist/components/icons/ThumbsDownIcon.d.ts deleted file mode 100644 index 23b7977ca..000000000 --- a/dist/components/icons/ThumbsDownIcon.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -export declare const ThumbsDownIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; -//# sourceMappingURL=ThumbsDownIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/ThumbsDownIcon.d.ts.map b/dist/components/icons/ThumbsDownIcon.d.ts.map deleted file mode 100644 index 8e796f1c6..000000000 --- a/dist/components/icons/ThumbsDownIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ThumbsDownIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/ThumbsDownIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,cAAc,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBxE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/ThumbsUpIcon.d.ts b/dist/components/icons/ThumbsUpIcon.d.ts deleted file mode 100644 index 61c6b9250..000000000 --- a/dist/components/icons/ThumbsUpIcon.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -export declare const ThumbsUpIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; -//# sourceMappingURL=ThumbsUpIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/ThumbsUpIcon.d.ts.map b/dist/components/icons/ThumbsUpIcon.d.ts.map deleted file mode 100644 index 5a67e094a..000000000 --- a/dist/components/icons/ThumbsUpIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ThumbsUpIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/ThumbsUpIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,YAAY,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBtE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/TickIcon.d.ts b/dist/components/icons/TickIcon.d.ts deleted file mode 100644 index 58467b450..000000000 --- a/dist/components/icons/TickIcon.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const TickIcon: () => import("solid-js").JSX.Element; -//# sourceMappingURL=TickIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/TickIcon.d.ts.map b/dist/components/icons/TickIcon.d.ts.map deleted file mode 100644 index 909a95155..000000000 --- a/dist/components/icons/TickIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TickIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/TickIcon.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,sCAepB,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/TrashIcon.d.ts b/dist/components/icons/TrashIcon.d.ts deleted file mode 100644 index 37221181f..000000000 --- a/dist/components/icons/TrashIcon.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -export declare const TrashIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; -//# sourceMappingURL=TrashIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/TrashIcon.d.ts.map b/dist/components/icons/TrashIcon.d.ts.map deleted file mode 100644 index e23edbf46..000000000 --- a/dist/components/icons/TrashIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TrashIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/TrashIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,SAAS,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAkBnE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/XIcon.d.ts b/dist/components/icons/XIcon.d.ts deleted file mode 100644 index 2ba85a697..000000000 --- a/dist/components/icons/XIcon.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -export declare const XIcon: (props: JSX.SvgSVGAttributes & { - isCurrentColor?: boolean; -}) => JSX.Element; -//# sourceMappingURL=XIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/XIcon.d.ts.map b/dist/components/icons/XIcon.d.ts.map deleted file mode 100644 index 676394326..000000000 --- a/dist/components/icons/XIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"XIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/XIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,KAAK,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,GAAG;IAAE,cAAc,CAAC,EAAE,OAAO,CAAA;CAAE,gBAe9F,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/index.d.ts b/dist/components/icons/index.d.ts deleted file mode 100644 index 6361c57e7..000000000 --- a/dist/components/icons/index.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -export * from './ClipboardIcon'; -export * from './ThumbsDownIcon'; -export * from './ThumbsUpIcon'; -export * from './AddImageIcon'; -export * from './CircleDotIcon'; -export * from './DeleteIcon'; -export * from './RecordIcon'; -export * from './SendIcon'; -export * from './TrashIcon'; -export * from './XIcon'; -export * from './TickIcon'; -export * from './AttachmentIcon'; -export * from './SparklesIcon'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/index.d.ts.map b/dist/components/icons/index.d.ts.map deleted file mode 100644 index 89a85a7fe..000000000 --- a/dist/components/icons/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/icons/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC"} \ No newline at end of file diff --git a/dist/components/index.d.ts b/dist/components/index.d.ts deleted file mode 100644 index 8e2814056..000000000 --- a/dist/components/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from './buttons/SendButton'; -export * from './TypingBubble'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/index.d.ts.map b/dist/components/index.d.ts.map deleted file mode 100644 index 87bc3a508..000000000 --- a/dist/components/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC"} \ No newline at end of file diff --git a/dist/components/inputs/textInput/components/FilePreview.d.ts b/dist/components/inputs/textInput/components/FilePreview.d.ts deleted file mode 100644 index 855a67bfd..000000000 --- a/dist/components/inputs/textInput/components/FilePreview.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -type CardWithDeleteOverlayProps = { - item: { - name: string; - }; - disabled?: boolean; - onDelete: (item: { - name: string; - }) => void; -}; -export declare const FilePreview: (props: CardWithDeleteOverlayProps) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=FilePreview.d.ts.map \ No newline at end of file diff --git a/dist/components/inputs/textInput/components/FilePreview.d.ts.map b/dist/components/inputs/textInput/components/FilePreview.d.ts.map deleted file mode 100644 index 58bf76bab..000000000 --- a/dist/components/inputs/textInput/components/FilePreview.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FilePreview.d.ts","sourceRoot":"","sources":["../../../../../src/components/inputs/textInput/components/FilePreview.tsx"],"names":[],"mappings":"AAGA,KAAK,0BAA0B,GAAG;IAChC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,WAAW,UAAW,0BAA0B,mCAyC5D,CAAC"} \ No newline at end of file diff --git a/dist/components/inputs/textInput/components/ShortTextInput.d.ts b/dist/components/inputs/textInput/components/ShortTextInput.d.ts deleted file mode 100644 index 28543c6ef..000000000 --- a/dist/components/inputs/textInput/components/ShortTextInput.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -type ShortTextInputProps = { - ref: HTMLInputElement | HTMLTextAreaElement | undefined; - onInput: (value: string) => void; - fontSize?: number; - disabled?: boolean; -} & Omit, 'onInput'>; -export declare const ShortTextInput: (props: ShortTextInputProps) => JSX.Element; -export {}; -//# sourceMappingURL=ShortTextInput.d.ts.map \ No newline at end of file diff --git a/dist/components/inputs/textInput/components/ShortTextInput.d.ts.map b/dist/components/inputs/textInput/components/ShortTextInput.d.ts.map deleted file mode 100644 index ee2430171..000000000 --- a/dist/components/inputs/textInput/components/ShortTextInput.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ShortTextInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/inputs/textInput/components/ShortTextInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,KAAK,mBAAmB,GAAG;IACzB,GAAG,EAAE,gBAAgB,GAAG,mBAAmB,GAAG,SAAS,CAAC;IACxD,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,IAAI,CAAC,GAAG,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAAE,SAAS,CAAC,CAAC;AAIrE,eAAO,MAAM,cAAc,UAAW,mBAAmB,gBA4CxD,CAAC"} \ No newline at end of file diff --git a/dist/components/inputs/textInput/components/TextInput.d.ts b/dist/components/inputs/textInput/components/TextInput.d.ts deleted file mode 100644 index 671552056..000000000 --- a/dist/components/inputs/textInput/components/TextInput.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { Setter } from 'solid-js'; -import { FileEvent, UploadsConfig } from '@/components/Bot'; -type TextInputProps = { - placeholder?: string; - backgroundColor?: string; - textColor?: string; - sendButtonColor?: string; - inputValue: string; - fontSize?: number; - disabled?: boolean; - onSubmit: (value: string) => void; - onInputChange: (value: string) => void; - uploadsConfig?: Partial; - isFullFileUpload?: boolean; - setPreviews: Setter; - onMicrophoneClicked: () => void; - handleFileChange: (event: FileEvent) => void; - maxChars?: number; - maxCharsWarningMessage?: string; - autoFocus?: boolean; - sendMessageSound?: boolean; - sendSoundLocation?: string; - fullFileUploadAllowedTypes?: string; - enableInputHistory?: boolean; - maxHistorySize?: number; -}; -export declare const TextInput: (props: TextInputProps) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=TextInput.d.ts.map \ No newline at end of file diff --git a/dist/components/inputs/textInput/components/TextInput.d.ts.map b/dist/components/inputs/textInput/components/TextInput.d.ts.map deleted file mode 100644 index 166823767..000000000 --- a/dist/components/inputs/textInput/components/TextInput.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/inputs/textInput/components/TextInput.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA6C,MAAM,EAAE,MAAM,UAAU,CAAC;AAE7E,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAM5D,KAAK,cAAc,GAAG;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,aAAa,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IACvC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;IAC/B,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,gBAAgB,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC/D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAOF,eAAO,MAAM,SAAS,UAAW,cAAc,mCAkM9C,CAAC"} \ No newline at end of file diff --git a/dist/components/inputs/textInput/index.d.ts b/dist/components/inputs/textInput/index.d.ts deleted file mode 100644 index a3b6a60e0..000000000 --- a/dist/components/inputs/textInput/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { TextInput } from './components/TextInput'; -export { FilePreview } from './components/FilePreview'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/inputs/textInput/index.d.ts.map b/dist/components/inputs/textInput/index.d.ts.map deleted file mode 100644 index 7fc780aae..000000000 --- a/dist/components/inputs/textInput/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/textInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC"} \ No newline at end of file diff --git a/dist/components/treeview/DataTransformer.d.ts b/dist/components/treeview/DataTransformer.d.ts deleted file mode 100644 index 012f75d00..000000000 --- a/dist/components/treeview/DataTransformer.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -type DataTransformerProps = { - jsonData: string; - class?: string; -}; -export declare const DataTransformer: (props: DataTransformerProps) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=DataTransformer.d.ts.map \ No newline at end of file diff --git a/dist/components/treeview/DataTransformer.d.ts.map b/dist/components/treeview/DataTransformer.d.ts.map deleted file mode 100644 index 762c54d45..000000000 --- a/dist/components/treeview/DataTransformer.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DataTransformer.d.ts","sourceRoot":"","sources":["../../../src/components/treeview/DataTransformer.tsx"],"names":[],"mappings":"AAGA,KAAK,oBAAoB,GAAG;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,oBAAoB,mCAoE1D,CAAC"} \ No newline at end of file diff --git a/dist/components/treeview/RichTreeView.d.ts b/dist/components/treeview/RichTreeView.d.ts deleted file mode 100644 index 98684f5c9..000000000 --- a/dist/components/treeview/RichTreeView.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { JSXElement } from 'solid-js'; -import './TreeView.css'; -type RichTreeViewProps = { - children: JSXElement; - defaultExpanded?: string[]; - onNodeSelect?: (itemId: string) => void; - highlightItems?: string[]; - multiSelect?: boolean; - class?: string; - indentationLevel?: number; -}; -export declare const RichTreeView: (props: RichTreeViewProps) => import("solid-js").JSX.Element; -type TreeItemProps = { - itemId: string; - label: string | JSXElement; - children?: JSXElement; - icon?: JSXElement; - expandedIcon?: JSXElement; - endIcon?: JSXElement; - isLeaf?: boolean; -}; -export declare const TreeItem: (props: TreeItemProps) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=RichTreeView.d.ts.map \ No newline at end of file diff --git a/dist/components/treeview/RichTreeView.d.ts.map b/dist/components/treeview/RichTreeView.d.ts.map deleted file mode 100644 index 6c78e59fc..000000000 --- a/dist/components/treeview/RichTreeView.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RichTreeView.d.ts","sourceRoot":"","sources":["../../../src/components/treeview/RichTreeView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,UAAU,EAAuC,MAAM,UAAU,CAAC;AAGtG,OAAO,gBAAgB,CAAC;AAkHxB,KAAK,iBAAiB,GAAG;IACvB,QAAQ,EAAE,UAAU,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAUF,eAAO,MAAM,YAAY,UAAW,iBAAiB,mCAwEpD,CAAC;AAGF,KAAK,aAAa,GAAG;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC;IAC3B,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAGF,eAAO,MAAM,QAAQ,UAAW,aAAa,mCAiD5C,CAAC"} \ No newline at end of file diff --git a/dist/components/treeview/TreeView.d.ts b/dist/components/treeview/TreeView.d.ts deleted file mode 100644 index 51703c1ab..000000000 --- a/dist/components/treeview/TreeView.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { JSXElement } from 'solid-js'; -type TreeViewProps = { - children: JSXElement; - defaultExpanded?: string[]; - class?: string; -}; -export declare const TreeView: (props: TreeViewProps) => import("solid-js").JSX.Element; -type TreeItemProps = { - itemId: string; - label: string | JSXElement; - children?: JSXElement; - icon?: JSXElement; - endIcon?: JSXElement; -}; -export declare const TreeItem: (props: TreeItemProps) => import("solid-js").JSX.Element; -type RichTreeViewProps = TreeViewProps & { - highlightItems?: string[]; - onNodeSelect?: (itemId: string) => void; -}; -export declare const RichTreeView: (props: RichTreeViewProps) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=TreeView.d.ts.map \ No newline at end of file diff --git a/dist/components/treeview/TreeView.d.ts.map b/dist/components/treeview/TreeView.d.ts.map deleted file mode 100644 index f16a53626..000000000 --- a/dist/components/treeview/TreeView.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TreeView.d.ts","sourceRoot":"","sources":["../../../src/components/treeview/TreeView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2C,UAAU,EAA2B,MAAM,UAAU,CAAC;AAuDxG,KAAK,aAAa,GAAG;IACnB,QAAQ,EAAE,UAAU,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAGF,eAAO,MAAM,QAAQ,UAAW,aAAa,mCA4B5C,CAAC;AAGF,KAAK,aAAa,GAAG;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC;IAC3B,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,OAAO,CAAC,EAAE,UAAU,CAAC;CACtB,CAAC;AAGF,eAAO,MAAM,QAAQ,UAAW,aAAa,mCA8B5C,CAAC;AAGF,KAAK,iBAAiB,GAAG,aAAa,GAAG;IACvC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,iBAAiB,mCA6BpD,CAAC"} \ No newline at end of file diff --git a/dist/components/treeview/WorkflowTreeView.d.ts b/dist/components/treeview/WorkflowTreeView.d.ts deleted file mode 100644 index f868a9ce9..000000000 --- a/dist/components/treeview/WorkflowTreeView.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -export type WorkflowNode = { - nodeId: string; - nodeLabel: string; - data: any; - previousNodeIds: string[]; - status: 'FINISHED' | 'PENDING' | 'RUNNING' | 'ERROR' | 'INPROGRESS' | 'STOPPED'; -}; -type WorkflowTreeViewProps = { - workflowData: WorkflowNode[]; - class?: string; - indentationLevel?: number; - initiallyExpanded?: boolean; - title?: string; - backgroundColor?: string; - textColor?: string; - fontSize?: number; -}; -export declare const WorkflowTreeView: (props: WorkflowTreeViewProps) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=WorkflowTreeView.d.ts.map \ No newline at end of file diff --git a/dist/components/treeview/WorkflowTreeView.d.ts.map b/dist/components/treeview/WorkflowTreeView.d.ts.map deleted file mode 100644 index e87a6005a..000000000 --- a/dist/components/treeview/WorkflowTreeView.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WorkflowTreeView.d.ts","sourceRoot":"","sources":["../../../src/components/treeview/WorkflowTreeView.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,GAAG,CAAC;IACV,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,MAAM,EAAE,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,YAAY,GAAG,SAAS,CAAC;CACjF,CAAC;AAGF,KAAK,qBAAqB,GAAG;IAC3B,YAAY,EAAE,YAAY,EAAE,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAoPF,eAAO,MAAM,gBAAgB,UAAW,qBAAqB,mCA8gB5D,CAAC"} \ No newline at end of file diff --git a/dist/constants.d.ts b/dist/constants.d.ts deleted file mode 100644 index 8f7976802..000000000 --- a/dist/constants.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { BubbleProps } from './features/bubble'; -export declare const defaultBotProps: BubbleProps; -//# sourceMappingURL=constants.d.ts.map \ No newline at end of file diff --git a/dist/constants.d.ts.map b/dist/constants.d.ts.map deleted file mode 100644 index 0fef00c10..000000000 --- a/dist/constants.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,eAAO,MAAM,eAAe,EAAE,WAO7B,CAAC"} \ No newline at end of file diff --git a/dist/features/bubble/components/Bubble.d.ts b/dist/features/bubble/components/Bubble.d.ts deleted file mode 100644 index 2828d64ee..000000000 --- a/dist/features/bubble/components/Bubble.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { BubbleParams } from '../types'; -import { BotProps } from '../../../components/Bot'; -export type BubbleProps = BotProps & BubbleParams; -export declare const Bubble: (props: BubbleProps) => import("solid-js").JSX.Element; -//# sourceMappingURL=Bubble.d.ts.map \ No newline at end of file diff --git a/dist/features/bubble/components/Bubble.d.ts.map b/dist/features/bubble/components/Bubble.d.ts.map deleted file mode 100644 index 49907274c..000000000 --- a/dist/features/bubble/components/Bubble.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"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,mCAwJxC,CAAC"} \ No newline at end of file diff --git a/dist/features/bubble/components/BubbleButton.d.ts b/dist/features/bubble/components/BubbleButton.d.ts deleted file mode 100644 index 97a9343a4..000000000 --- a/dist/features/bubble/components/BubbleButton.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { ButtonTheme } from '../types'; -type Props = ButtonTheme & { - isBotOpened: boolean; - toggleBot: () => void; - setButtonPosition: (position: { - bottom: number; - right: number; - }) => void; - dragAndDrop: boolean; - autoOpen?: boolean; - openDelay?: number; - autoOpenOnMobile?: boolean; -}; -export declare const BubbleButton: (props: Props) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=BubbleButton.d.ts.map \ No newline at end of file diff --git a/dist/features/bubble/components/BubbleButton.d.ts.map b/dist/features/bubble/components/BubbleButton.d.ts.map deleted file mode 100644 index 02c3fd4af..000000000 --- a/dist/features/bubble/components/BubbleButton.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BubbleButton.d.ts","sourceRoot":"","sources":["../../../../src/features/bubble/components/BubbleButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,KAAK,KAAK,GAAG,WAAW,GAAG;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,iBAAiB,EAAE,CAAC,QAAQ,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACzE,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAOF,eAAO,MAAM,YAAY,UAAW,KAAK,mCA8HxC,CAAC"} \ No newline at end of file diff --git a/dist/features/bubble/components/Tooltip.d.ts b/dist/features/bubble/components/Tooltip.d.ts deleted file mode 100644 index 05e7c7c76..000000000 --- a/dist/features/bubble/components/Tooltip.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -type TooltipProps = { - showTooltip: boolean; - position: { - bottom: number; - right: number; - }; - buttonSize: number; - tooltipMessage?: string; - tooltipBackgroundColor?: string; - tooltipTextColor?: string; - tooltipFontSize?: number; -}; -declare const Tooltip: (props: TooltipProps) => import("solid-js").JSX.Element; -export default Tooltip; -//# sourceMappingURL=Tooltip.d.ts.map \ No newline at end of file diff --git a/dist/features/bubble/components/Tooltip.d.ts.map b/dist/features/bubble/components/Tooltip.d.ts.map deleted file mode 100644 index d44401367..000000000 --- a/dist/features/bubble/components/Tooltip.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../../src/features/bubble/components/Tooltip.tsx"],"names":[],"mappings":"AAOA,KAAK,YAAY,GAAG;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,QAAA,MAAM,OAAO,UAAW,YAAY,mCA2CnC,CAAC;AAEF,eAAe,OAAO,CAAC"} \ No newline at end of file diff --git a/dist/features/bubble/components/index.d.ts b/dist/features/bubble/components/index.d.ts deleted file mode 100644 index e50fa475f..000000000 --- a/dist/features/bubble/components/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './Bubble'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/features/bubble/components/index.d.ts.map b/dist/features/bubble/components/index.d.ts.map deleted file mode 100644 index 19fb7436a..000000000 --- a/dist/features/bubble/components/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/bubble/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"} \ No newline at end of file diff --git a/dist/features/bubble/index.d.ts b/dist/features/bubble/index.d.ts deleted file mode 100644 index 08ff52039..000000000 --- a/dist/features/bubble/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './components'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/features/bubble/index.d.ts.map b/dist/features/bubble/index.d.ts.map deleted file mode 100644 index ace7bafae..000000000 --- a/dist/features/bubble/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/bubble/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"} \ No newline at end of file diff --git a/dist/features/bubble/types.d.ts b/dist/features/bubble/types.d.ts deleted file mode 100644 index 524a01e16..000000000 --- a/dist/features/bubble/types.d.ts +++ /dev/null @@ -1,116 +0,0 @@ -export type BubbleParams = { - theme?: BubbleTheme; -}; -export type BubbleTheme = { - chatWindow?: ChatWindowTheme; - button?: ButtonTheme; - tooltip?: ToolTipTheme; - disclaimer?: DisclaimerPopUpTheme; - customCSS?: string; - form?: FormTheme; -}; -export type FormTheme = { - backgroundColor?: string; - textColor?: string; -}; -export type TextInputTheme = { - backgroundColor?: string; - textColor?: string; - placeholder?: string; - sendButtonColor?: string; - maxChars?: number; - maxCharsWarningMessage?: string; - autoFocus?: boolean; - sendMessageSound?: boolean; - sendSoundLocation?: string; - receiveMessageSound?: boolean; - receiveSoundLocation?: string; -}; -export type UserMessageTheme = { - backgroundColor?: string; - textColor?: string; - showAvatar?: boolean; - avatarSrc?: string; -}; -export type BotMessageTheme = { - backgroundColor?: string; - textColor?: string; - showAvatar?: boolean; - avatarSrc?: string; -}; -export type FooterTheme = { - showFooter?: boolean; - textColor?: string; - text?: string; - company?: string; - companyLink?: string; -}; -export type FeedbackTheme = { - color?: string; -}; -export type ChatWindowTheme = { - showTitle?: boolean; - showAgentMessages?: boolean; - title?: string; - titleAvatarSrc?: string; - titleTextColor?: string; - titleBackgroundColor?: string; - welcomeMessage?: string; - errorMessage?: string; - backgroundColor?: string; - backgroundImage?: string; - height?: number; - width?: number; - fontSize?: number; - userMessage?: UserMessageTheme; - botMessage?: BotMessageTheme; - textInput?: TextInputTheme; - feedback?: FeedbackTheme; - footer?: FooterTheme; - sourceDocsTitle?: string; - poweredByTextColor?: string; - starterPrompts?: string[]; - starterPromptFontSize?: number; - clearChatOnReload?: boolean; - dateTimeToggle?: DateTimeToggleTheme; - renderHTML?: boolean; -}; -export type ButtonTheme = { - size?: 'small' | 'medium' | 'large' | number; - backgroundColor?: string; - iconColor?: string; - customIconSrc?: string; - bottom?: number; - right?: number; - dragAndDrop?: boolean; - autoWindowOpen?: autoWindowOpenTheme; -}; -export type ToolTipTheme = { - showTooltip?: boolean; - tooltipMessage?: string; - tooltipBackgroundColor?: string; - tooltipTextColor?: string; - tooltipFontSize?: number; -}; -export type autoWindowOpenTheme = { - autoOpen?: boolean; - openDelay?: number; - autoOpenOnMobile?: boolean; -}; -export type DisclaimerPopUpTheme = { - title?: string; - message?: string; - textColor?: string; - buttonColor?: string; - buttonTextColor?: string; - buttonText?: string; - blurredBackgroundColor?: string; - backgroundColor?: string; - denyButtonBgColor?: string; - denyButtonText?: string; -}; -export type DateTimeToggleTheme = { - date?: boolean; - time?: boolean; -}; -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/dist/features/bubble/types.d.ts.map b/dist/features/bubble/types.d.ts.map deleted file mode 100644 index ce99134f6..000000000 --- a/dist/features/bubble/types.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/features/bubble/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,cAAc,CAAC,EAAE,mBAAmB,CAAC;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;IAC7C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,mBAAmB,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC"} \ No newline at end of file diff --git a/dist/features/full/components/Full.d.ts b/dist/features/full/components/Full.d.ts deleted file mode 100644 index 15e8bc3a8..000000000 --- a/dist/features/full/components/Full.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { BotProps } from '@/components/Bot'; -import { BubbleParams } from '@/features/bubble/types'; -export type FullProps = BotProps & BubbleParams; -export declare const Full: (props: FullProps, { element }: { - element: HTMLElement; -}) => import("solid-js").JSX.Element; -//# sourceMappingURL=Full.d.ts.map \ No newline at end of file diff --git a/dist/features/full/components/Full.d.ts.map b/dist/features/full/components/Full.d.ts.map deleted file mode 100644 index 1d337ef82..000000000 --- a/dist/features/full/components/Full.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Full.d.ts","sourceRoot":"","sources":["../../../../src/features/full/components/Full.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAMvD,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,YAAY,CAAC;AAEhD,eAAO,MAAM,IAAI,UAAW,SAAS;aAA0B,WAAW;oCA0FzE,CAAC"} \ No newline at end of file diff --git a/dist/features/full/components/index.d.ts b/dist/features/full/components/index.d.ts deleted file mode 100644 index f0f3bb3d4..000000000 --- a/dist/features/full/components/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './Full'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/features/full/components/index.d.ts.map b/dist/features/full/components/index.d.ts.map deleted file mode 100644 index 9f4f806a9..000000000 --- a/dist/features/full/components/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/full/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"} \ No newline at end of file diff --git a/dist/features/full/index.d.ts b/dist/features/full/index.d.ts deleted file mode 100644 index 08ff52039..000000000 --- a/dist/features/full/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './components'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/features/full/index.d.ts.map b/dist/features/full/index.d.ts.map deleted file mode 100644 index d179cfbd6..000000000 --- a/dist/features/full/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/full/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"} \ No newline at end of file diff --git a/dist/features/popup/components/DisclaimerPopup.d.ts b/dist/features/popup/components/DisclaimerPopup.d.ts deleted file mode 100644 index f45ee8386..000000000 --- a/dist/features/popup/components/DisclaimerPopup.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -export type DisclaimerPopupProps = { - isOpen?: boolean; - isFullPage?: boolean; - onAccept?: () => void; - onDeny?: () => void; - title?: string; - message?: string; - buttonText?: string; - denyButtonText?: string; - blurredBackgroundColor?: string; - backgroundColor?: string; - buttonColor?: string; - textColor?: string; - buttonTextColor?: string; - denyButtonBgColor?: string; -}; -export declare const DisclaimerPopup: (props: DisclaimerPopupProps) => import("solid-js").JSX.Element; -//# sourceMappingURL=DisclaimerPopup.d.ts.map \ No newline at end of file diff --git a/dist/features/popup/components/DisclaimerPopup.d.ts.map b/dist/features/popup/components/DisclaimerPopup.d.ts.map deleted file mode 100644 index a892e9580..000000000 --- a/dist/features/popup/components/DisclaimerPopup.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DisclaimerPopup.d.ts","sourceRoot":"","sources":["../../../../src/features/popup/components/DisclaimerPopup.tsx"],"names":[],"mappings":"AAEA,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,oBAAoB,mCAuE1D,CAAC"} \ No newline at end of file diff --git a/dist/features/popup/components/Popup.d.ts b/dist/features/popup/components/Popup.d.ts deleted file mode 100644 index d4bd089d5..000000000 --- a/dist/features/popup/components/Popup.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export type PopupProps = { - value?: any; - isOpen?: boolean; - onOpen?: () => void; - onClose?: () => void; -}; -export declare const Popup: (props: PopupProps) => import("solid-js").JSX.Element; -//# sourceMappingURL=Popup.d.ts.map \ No newline at end of file diff --git a/dist/features/popup/components/Popup.d.ts.map b/dist/features/popup/components/Popup.d.ts.map deleted file mode 100644 index 6829eeab6..000000000 --- a/dist/features/popup/components/Popup.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["../../../../src/features/popup/components/Popup.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AA4BF,eAAO,MAAM,KAAK,UAAW,UAAU,mCAsEtC,CAAC"} \ No newline at end of file diff --git a/dist/features/popup/components/index.d.ts b/dist/features/popup/components/index.d.ts deleted file mode 100644 index 2c0bbd8ea..000000000 --- a/dist/features/popup/components/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from './Popup'; -export * from './DisclaimerPopup'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/features/popup/components/index.d.ts.map b/dist/features/popup/components/index.d.ts.map deleted file mode 100644 index 194701920..000000000 --- a/dist/features/popup/components/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/popup/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC"} \ No newline at end of file diff --git a/dist/features/popup/index.d.ts b/dist/features/popup/index.d.ts deleted file mode 100644 index 08ff52039..000000000 --- a/dist/features/popup/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './components'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/features/popup/index.d.ts.map b/dist/features/popup/index.d.ts.map deleted file mode 100644 index c82975151..000000000 --- a/dist/features/popup/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/popup/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"} \ No newline at end of file diff --git a/dist/features/popup/types.d.ts b/dist/features/popup/types.d.ts deleted file mode 100644 index e5c11b4e6..000000000 --- a/dist/features/popup/types.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export type PopupParams = { - autoShowDelay?: number; - theme?: { - width?: string; - backgroundColor?: string; - }; -}; -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/dist/features/popup/types.d.ts.map b/dist/features/popup/types.d.ts.map deleted file mode 100644 index 01efe0774..000000000 --- a/dist/features/popup/types.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/features/popup/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE;QACN,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B,CAAC;CACH,CAAC"} \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 3fb36f4e3..000000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export type { BotProps } from './components/Bot'; -export type { BubbleProps } from './features/bubble/components/Bubble'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/index.d.ts.map b/dist/index.d.ts.map deleted file mode 100644 index d7a3616d0..000000000 --- a/dist/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,YAAY,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC"} \ No newline at end of file diff --git a/dist/queries/sendMessageQuery.d.ts b/dist/queries/sendMessageQuery.d.ts deleted file mode 100644 index 4cc5ab3de..000000000 --- a/dist/queries/sendMessageQuery.d.ts +++ /dev/null @@ -1,89 +0,0 @@ -import { FileUpload, IAction } from '@/components/Bot'; -export type IncomingInput = { - question?: string; - form?: Record; - uploads?: FileUpload[]; - overrideConfig?: Record; - socketIOClientId?: string; - chatId?: string; - fileName?: string; - leadEmail?: string; - action?: IAction; - humanInput?: Record; -}; -type BaseRequest = { - apiHost?: string; - onRequest?: (request: RequestInit) => Promise; -}; -export type MessageRequest = BaseRequest & { - chatflowid?: string; - body?: IncomingInput; -}; -export type FeedbackRatingType = 'THUMBS_UP' | 'THUMBS_DOWN'; -export type FeedbackInput = { - chatId: string; - messageId: string; - rating: FeedbackRatingType; - content?: string; -}; -export type CreateFeedbackRequest = BaseRequest & { - chatflowid?: string; - body?: FeedbackInput; -}; -export type UpdateFeedbackRequest = BaseRequest & { - id: string; - body?: Partial; -}; -export type UpsertRequest = BaseRequest & { - chatflowid: string; - apiHost?: string; - formData: FormData; -}; -export type LeadCaptureInput = { - chatflowid: string; - chatId: string; - name?: string; - email?: string; - phone?: string; -}; -export type LeadCaptureRequest = BaseRequest & { - body: Partial; -}; -export declare const sendFeedbackQuery: ({ chatflowid, apiHost, body, onRequest }: CreateFeedbackRequest) => Promise<{ - data?: unknown; - error?: Error | undefined; -}>; -export declare const updateFeedbackQuery: ({ id, apiHost, body, onRequest }: UpdateFeedbackRequest) => Promise<{ - data?: unknown; - error?: Error | undefined; -}>; -export declare const sendMessageQuery: ({ chatflowid, apiHost, body, onRequest }: MessageRequest) => Promise<{ - data?: any; - error?: Error | undefined; -}>; -export declare const createAttachmentWithFormData: ({ chatflowid, apiHost, formData, onRequest }: UpsertRequest) => Promise<{ - data?: unknown; - error?: Error | undefined; -}>; -export declare const upsertVectorStoreWithFormData: ({ chatflowid, apiHost, formData, onRequest }: UpsertRequest) => Promise<{ - data?: unknown; - error?: Error | undefined; -}>; -export declare const getChatbotConfig: ({ chatflowid, apiHost, onRequest }: MessageRequest) => Promise<{ - data?: any; - error?: Error | undefined; -}>; -export declare const isStreamAvailableQuery: ({ chatflowid, apiHost, onRequest }: MessageRequest) => Promise<{ - data?: any; - error?: Error | undefined; -}>; -export declare const sendFileDownloadQuery: ({ apiHost, body, onRequest }: MessageRequest) => Promise<{ - data?: any; - error?: Error | undefined; -}>; -export declare const addLeadQuery: ({ apiHost, body, onRequest }: LeadCaptureRequest) => Promise<{ - data?: any; - error?: Error | undefined; -}>; -export {}; -//# sourceMappingURL=sendMessageQuery.d.ts.map \ No newline at end of file diff --git a/dist/queries/sendMessageQuery.d.ts.map b/dist/queries/sendMessageQuery.d.ts.map deleted file mode 100644 index cee85e7eb..000000000 --- a/dist/queries/sendMessageQuery.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sendMessageQuery.d.ts","sourceRoot":"","sources":["../../src/queries/sendMessageQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGvD,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACrD,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG,aAAa,CAAC;AAE7D,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,WAAW,GAAG;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,WAAW,GAAG;IAChD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG;IAC7C,IAAI,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,iBAAiB,6CAAwE,qBAAqB;;;EAMvH,CAAC;AAEL,eAAO,MAAM,mBAAmB,qCAAgE,qBAAqB;;;EAMjH,CAAC;AAEL,eAAO,MAAM,gBAAgB,6CAAwE,cAAc;;;EAM/G,CAAC;AAEL,eAAO,MAAM,4BAA4B,iDAA4E,aAAa;;;EAS9H,CAAC;AAEL,eAAO,MAAM,6BAA6B,iDAA4E,aAAa;;;EAS/H,CAAC;AAEL,eAAO,MAAM,gBAAgB,uCAAkE,cAAc;;;EAKzG,CAAC;AAEL,eAAO,MAAM,sBAAsB,uCAAkE,cAAc;;;EAK/G,CAAC;AAEL,eAAO,MAAM,qBAAqB,iCAA4D,cAAc;;;EAOxG,CAAC;AAEL,eAAO,MAAM,YAAY,iCAA4D,kBAAkB;;;EAMnG,CAAC"} \ No newline at end of file diff --git a/dist/register.d.ts b/dist/register.d.ts deleted file mode 100644 index 32afa59c4..000000000 --- a/dist/register.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const registerWebComponents: () => void; -//# sourceMappingURL=register.d.ts.map \ No newline at end of file diff --git a/dist/register.d.ts.map b/dist/register.d.ts.map deleted file mode 100644 index 8ab09e7d1..000000000 --- a/dist/register.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../src/register.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,qBAAqB,YAKjC,CAAC"} \ No newline at end of file diff --git a/dist/types.d.ts b/dist/types.d.ts deleted file mode 100644 index 2324761ce..000000000 --- a/dist/types.d.ts +++ /dev/null @@ -1 +0,0 @@ -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/dist/types.d.ts.map b/dist/types.d.ts.map deleted file mode 100644 index 4d581892d..000000000 --- a/dist/types.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/utils/audioRecording.d.ts b/dist/utils/audioRecording.d.ts deleted file mode 100644 index 724bc7458..000000000 --- a/dist/utils/audioRecording.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -export declare function getElaspedTime(): string; -/** Starts the audio recording*/ -export declare function startAudioRecording(onRecordingStart: (value: boolean) => void, onUnsupportedBrowser: (value: boolean) => void, setElapsedTime: (value: string) => void): void; -/** Stop the currently started audio recording & sends it - */ -export declare function stopAudioRecording(addRecordingToPreviews: null | ((blob: Blob) => void)): void; -/** Cancel the currently started audio recording */ -export declare function cancelAudioRecording(): void; -type AudioRecorder = { - audioBlobs: Blob[]; - mediaRecorder: MediaRecorder | null; - streamBeingCaptured: MediaStream | null; - start: () => Promise; - stop: () => Promise; - cancel: () => void; - stopStream: () => void; - resetRecordingProperties: () => void; -}; -export declare const audioRecorder: AudioRecorder; -export {}; -//# sourceMappingURL=audioRecording.d.ts.map \ No newline at end of file diff --git a/dist/utils/audioRecording.d.ts.map b/dist/utils/audioRecording.d.ts.map deleted file mode 100644 index 25e8f1b82..000000000 --- a/dist/utils/audioRecording.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"audioRecording.d.ts","sourceRoot":"","sources":["../../src/utils/audioRecording.ts"],"names":[],"mappings":"AAmBA,wBAAgB,cAAc,WAE7B;AAED,gCAAgC;AAChC,wBAAgB,mBAAmB,CACjC,gBAAgB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,EAC1C,oBAAoB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,EAC9C,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,QAkExC;AACD;GACG;AACH,wBAAgB,kBAAkB,CAAC,sBAAsB,EAAE,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC,QAuBvF;AAED,mDAAmD;AACnD,wBAAgB,oBAAoB,SAMnC;AA8FD,KAAK,aAAa,GAAG;IACnB,UAAU,EAAE,IAAI,EAAE,CAAC;IACnB,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;IACpC,mBAAmB,EAAE,WAAW,GAAG,IAAI,CAAC;IACxC,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,IAAI,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IAC7B,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,wBAAwB,EAAE,MAAM,IAAI,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,aA6G3B,CAAC"} \ No newline at end of file diff --git a/dist/utils/chatInputHistory.d.ts b/dist/utils/chatInputHistory.d.ts deleted file mode 100644 index 329783bff..000000000 --- a/dist/utils/chatInputHistory.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -type ChatHistoryStorage = { - getItem(key: string): string | null; - setItem(key: string, value: string): void; -}; -export declare class ChatInputHistory { - private getMaxHistory; - private storage; - private history; - private currentIndex; - private tempInput; - private maxHistory; - constructor(getMaxHistory?: () => number, storage?: ChatHistoryStorage); - getHistory(): string[]; - getCurrentIndex(): number; - addToHistory(input: string): void; - getPreviousInput(currentInput: string): string; - getNextInput(): string; - private saveHistory; - private loadHistory; -} -export {}; -//# sourceMappingURL=chatInputHistory.d.ts.map \ No newline at end of file diff --git a/dist/utils/chatInputHistory.d.ts.map b/dist/utils/chatInputHistory.d.ts.map deleted file mode 100644 index fcfce36ff..000000000 --- a/dist/utils/chatInputHistory.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"chatInputHistory.d.ts","sourceRoot":"","sources":["../../src/utils/chatInputHistory.ts"],"names":[],"mappings":"AACA,KAAK,kBAAkB,GAAG;IACxB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACpC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3C,CAAC;AAEF,qBAAa,gBAAgB;IAOzB,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,OAAO;IAPjB,OAAO,CAAC,OAAO,CAAgB;IAC/B,OAAO,CAAC,YAAY,CAAM;IAC1B,OAAO,CAAC,SAAS,CAAM;IACvB,OAAO,CAAC,UAAU,CAAS;gBAGjB,aAAa,GAAE,MAAM,MAAiB,EACtC,OAAO,GAAE,kBAAiC;IAMpD,UAAU,IAAI,MAAM,EAAE;IAItB,eAAe,IAAI,MAAM;IAIzB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAejC,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;IAY9C,YAAY,IAAI,MAAM;IAWtB,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,WAAW;CAWpB"} \ No newline at end of file diff --git a/dist/utils/index.d.ts b/dist/utils/index.d.ts deleted file mode 100644 index 2e3b93d2c..000000000 --- a/dist/utils/index.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -export declare const isNotDefined: (value: T | null | undefined) => value is null | undefined; -export declare const isDefined: (value: T | null | undefined) => value is NonNullable; -export declare const isEmpty: (value: string | undefined | null) => value is undefined; -export declare const isNotEmpty: (value: string | undefined | null) => value is string; -export declare const sendRequest: (params: string | { - url: string; - method: string; - body?: Record | FormData | undefined; - type?: string | undefined; - headers?: Record | undefined; - formData?: FormData | undefined; - onRequest?: ((request: RequestInit) => Promise) | undefined; -}) => Promise<{ - data?: ResponseData | undefined; - error?: Error | undefined; -}>; -export declare const setLocalStorageChatflow: (chatflowid: string, chatId: string, saveObj?: Record) => void; -export declare const getLocalStorageChatflow: (chatflowid: string) => any; -export declare const removeLocalStorageChatHistory: (chatflowid: string) => void; -export declare const getBubbleButtonSize: (size: 'small' | 'medium' | 'large' | number | undefined) => number; -export declare const setCookie: (cname: string, cvalue: string, exdays: number) => void; -export declare const getCookie: (cname: string) => string; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/utils/index.d.ts.map b/dist/utils/index.d.ts.map deleted file mode 100644 index 4c8d47a6c..000000000 --- a/dist/utils/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,+DAAuG,CAAC;AAEjI,eAAO,MAAM,SAAS,6DAAqG,CAAC;AAE5H,eAAO,MAAM,OAAO,UAAW,MAAM,GAAG,SAAS,GAAG,IAAI,uBAA8E,CAAC;AAEvI,eAAO,MAAM,UAAU,UAAW,MAAM,GAAG,SAAS,GAAG,IAAI,oBAA2E,CAAC;AAEvI,eAAO,MAAM,WAAW;SAGX,MAAM;YACH,MAAM;;;;;2BAKQ,WAAW,KAAK,QAAQ,IAAI,CAAC;;;;EAuD1D,CAAC;AAEF,eAAO,MAAM,uBAAuB,eAAgB,MAAM,UAAU,MAAM,YAAW,OAAO,MAAM,EAAE,GAAG,CAAC,SAiBvG,CAAC;AAEF,eAAO,MAAM,uBAAuB,eAAgB,MAAM,QAQzD,CAAC;AAEF,eAAO,MAAM,6BAA6B,eAAgB,MAAM,SAgB/D,CAAC;AAEF,eAAO,MAAM,mBAAmB,SAAU,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,WAO1F,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,MAAM,UAAU,MAAM,UAAU,MAAM,SAKtE,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,MAAM,KAAG,MAczC,CAAC"} \ No newline at end of file diff --git a/dist/utils/isMobileSignal.d.ts b/dist/utils/isMobileSignal.d.ts deleted file mode 100644 index 3a2423f8a..000000000 --- a/dist/utils/isMobileSignal.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const isMobile: import("solid-js").Accessor, setIsMobile: import("solid-js").Setter; -//# sourceMappingURL=isMobileSignal.d.ts.map \ No newline at end of file diff --git a/dist/utils/isMobileSignal.d.ts.map b/dist/utils/isMobileSignal.d.ts.map deleted file mode 100644 index 3b4cecb17..000000000 --- a/dist/utils/isMobileSignal.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isMobileSignal.d.ts","sourceRoot":"","sources":["../../src/utils/isMobileSignal.ts"],"names":[],"mappings":"AAEA,eAAO,MAAO,QAAQ,oDAAE,WAAW,gDAA2B,CAAC"} \ No newline at end of file diff --git a/dist/web.d.ts b/dist/web.d.ts deleted file mode 100644 index a395dac23..000000000 --- a/dist/web.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -declare const chatbot: { - initFull: (props: { - chatflowid: string; - apiHost?: string | undefined; - onRequest?: ((request: RequestInit) => Promise) | undefined; - chatflowConfig?: Record | undefined; - observersConfig?: import("./components/Bot").observersConfigType | undefined; - theme?: import("./features/bubble/types").BubbleTheme | undefined; - } & { - id?: string | undefined; - }) => void; - init: (props: { - chatflowid: string; - apiHost?: string | undefined; - onRequest?: ((request: RequestInit) => Promise) | undefined; - chatflowConfig?: Record | undefined; - observersConfig?: import("./components/Bot").observersConfigType | undefined; - theme?: import("./features/bubble/types").BubbleTheme | undefined; - }) => void; - destroy: () => void; -}; -export default chatbot; -//# sourceMappingURL=web.d.ts.map \ No newline at end of file diff --git a/dist/web.d.ts.map b/dist/web.d.ts.map deleted file mode 100644 index df6ba909a..000000000 --- a/dist/web.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../src/web.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;CAAiB,CAAC;AAI/B,eAAe,OAAO,CAAC"} \ No newline at end of file diff --git a/dist/web.js b/dist/web.js deleted file mode 100644 index 6a059f050..000000000 --- a/dist/web.js +++ /dev/null @@ -1 +0,0 @@ -function e(e){return Object.keys(e).reduce(((r,o)=>{var a=e[o];return r[o]=Object.assign({},a),!t(a.value)||function(e){return"[object Function]"===Object.prototype.toString.call(e)}(a.value)||Array.isArray(a.value)||(r[o].value=Object.assign({},a.value)),Array.isArray(a.value)&&(r[o].value=a.value.slice(0)),r}),{})}function r(e){if(e)try{return JSON.parse(e)}catch(r){return e}}function o(e,r,o){if(null==o||!1===o)return e.removeAttribute(r);let t=JSON.stringify(o);e.__updating[r]=!0,"true"===t&&(t=""),e.setAttribute(r,t),Promise.resolve().then((()=>delete e.__updating[r]))}function t(e){return null!=e&&("object"==typeof e||"function"==typeof e)}let a;function l(t,l){const i=Object.keys(l);return class extends t{static get observedAttributes(){return i.map((e=>l[e].attribute))}constructor(){super(),this.__initialized=!1,this.__released=!1,this.__releaseCallbacks=[],this.__propertyChangedCallbacks=[],this.__updating={},this.props={}}connectedCallback(){if(!this.__initialized){this.__releaseCallbacks=[],this.__propertyChangedCallbacks=[],this.__updating={},this.props=function(t,a){const l=e(a);return Object.keys(a).forEach((e=>{const a=l[e],i=t.getAttribute(a.attribute),n=t[e];i&&(a.value=a.parse?r(i):i),null!=n&&(a.value=Array.isArray(n)?n.slice(0):n),a.reflect&&o(t,a.attribute,a.value),Object.defineProperty(t,e,{get:()=>a.value,set(r){var t=a.value;a.value=r,a.reflect&&o(this,a.attribute,a.value);for(let o=0,a=this.__propertyChangedCallbacks.length;o(r[o]=e[o].value,r)),{})}(this.props),i=this.Component,n=a;try{(a=this).__initialized=!0,function(e){return"function"==typeof e&&0===e.toString().indexOf("class")}(i)?new i(t,{element:this}):i(t,{element:this})}finally{a=n}}}async disconnectedCallback(){if(await Promise.resolve(),!this.isConnected){this.__propertyChangedCallbacks.length=0;for(var e=null;e=this.__releaseCallbacks.pop();)e(this);delete this.__initialized,this.__released=!0}}attributeChangedCallback(e,o,t){!this.__initialized||this.__updating[e]||(e=this.lookupProp(e))in l&&(null==t&&!this[e]||(this[e]=l[e].parse?r(t):t))}lookupProp(e){if(l)return i.find((r=>e===r||e===l[r].attribute))}get renderRoot(){return this.shadowRoot||this.attachShadow({mode:"open"})}addReleaseCallback(e){this.__releaseCallbacks.push(e)}addPropertyChangedCallback(e){this.__propertyChangedCallbacks.push(e)}}}function i(e,r={},o={}){const{BaseElement:a=HTMLElement,extension:i}=o;return o=>{if(!e)throw new Error("tag is required to register a Component");let n=customElements.get(e);return n?n.prototype.Component=o:((n=l(a,function(e){return e?Object.keys(e).reduce(((r,o)=>{var a=e[o];return r[o]=t(a)&&"value"in a?a:{value:a},r[o].attribute||(r[o].attribute=function(e){return e.replace(/\.?([A-Z]+)/g,((e,r)=>"-"+r.toLowerCase())).replace("_","-").replace(/^-/,"")}(o)),r[o].parse="parse"in r[o]?r[o].parse:"string"!=typeof r[o].value,r}),{}):{}}(r))).prototype.Component=o,n.prototype.registeredTag=e,customElements.define(e,n,i)),n}}const n=Symbol("solid-proxy"),d=Symbol("solid-track"),s=Symbol("solid-dev-component"),m={equals:(e,r)=>e===r};let g=X;const x=1,c=2,u={owned:null,cleanups:null,context:null,owner:null};var p=null;let h=null,S=null,v=null,$=null,A=0;function b(e,r){const o=S,t=p,a=0===e.length,l=a?u:{owned:null,cleanups:null,context:null,owner:void 0===r?t:r},i=a?e:()=>e((()=>_((()=>V(l)))));p=l,S=null;try{return k(i,!0)}finally{S=o,p=t}}function M(e,r){const o={value:e,observers:null,observerSlots:null,comparator:(r=r?Object.assign({},m,r):m).equals||void 0};return[B.bind(o),e=>("function"==typeof e&&(e=e(o.value)),E(o,e))]}function P(e,r,o){N(O(e,r,!1,x))}function f(e,r,o){g=D,(e=O(e,r,!1,x)).user=!0,$?$.push(e):N(e)}function T(e,r,o){return o=o?Object.assign({},m,o):m,(e=O(e,r,!0,0)).observers=null,e.observerSlots=null,e.comparator=o.equals||void 0,N(e),B.bind(e)}function _(e){if(null===S)return e();var r=S;S=null;try{return e()}finally{S=r}}function y(e){f((()=>_(e)))}function w(e){return null!==p&&(null===p.cleanups?p.cleanups=[e]:p.cleanups.push(e)),e}function G(){return S}function L(e){var r;return void 0!==(r=U(p,e.id))?r:e.defaultValue}function C(e){const r=T(e),o=T((()=>K(r())));return o.toArray=()=>{var e=o();return Array.isArray(e)?e:null!=e?[e]:[]},o}function B(){var e;return this.sources&&this.state&&(this.state===x?N(this):(e=v,v=null,k((()=>R(this)),!1),v=e)),S&&(e=this.observers?this.observers.length:0,S.sources?(S.sources.push(this),S.sourceSlots.push(e)):(S.sources=[this],S.sourceSlots=[e]),this.observers?(this.observers.push(S),this.observerSlots.push(S.sources.length-1)):(this.observers=[S],this.observerSlots=[S.sources.length-1])),this.value}function E(e,r,o){var t=e.value;return e.comparator&&e.comparator(t,r)||(e.value=r,e.observers&&e.observers.length&&k((()=>{for(let t=0;tR(e,o[0])),!1),v=r)}}}function k(e,r){if(v)return e();let o=!1;r||(v=[]),$?o=!0:$=[],A++;try{var t=e();return function(e){if(v&&(X(v),v=null),!e){const e=$;$=null,e.length&&k((()=>g(e)),!1)}}(o),t}catch(e){o||($=null),v=null,H(e)}}function X(e){for(let r=0;ro=_((()=>(p.context={[e]:r.value},C((()=>r.children)))))),void 0),o}}const Z=Symbol("fallback");function Q(e){for(let r=0;re(r||{})))}function Y(){return!0}const J={get:(e,r,o)=>r===n?o:e.get(r),has:(e,r)=>r===n||e.has(r),set:Y,deleteProperty:Y,getOwnPropertyDescriptor:(e,r)=>({configurable:!0,enumerable:!0,get:()=>e.get(r),set:Y,deleteProperty:Y}),ownKeys:e=>e.keys()};function j(e){return(e="function"==typeof e?e():e)||{}}function q(...e){let r=!1;for(let t=0;tnew Proxy({get:o=>r.includes(o)?e[o]:void 0,has:o=>r.includes(o)&&o in e,keys:()=>r.filter((r=>r in e))},J)))).push(new Proxy({get:r=>o.has(r)?void 0:e[r],has:r=>!o.has(r)&&r in e,keys:()=>Object.keys(e).filter((e=>!o.has(e)))},J)),t;const a=Object.getOwnPropertyDescriptors(e);return r.push(Object.keys(a).filter((e=>!o.has(e)))),r.map((r=>{var o={};for(let t=0;te[l],set:()=>!0,enumerable:!0})}return o}))}function re(e){var r="fallback"in e&&{fallback:()=>e.fallback};return T(function(e,r,o={}){let t=[],a=[],l=[],i=0,n=1Q(l))),()=>{let s,m,g=e()||[];return g[d],_((()=>{let e,r,d,c,u,p,h,S,v,$=g.length;if(0===$)0!==i&&(Q(l),l=[],t=[],a=[],i=0,n=n&&[]),o.fallback&&(t=[Z],a[0]=b((e=>(l[0]=e,o.fallback()))),i=1);else if(0===i){for(a=new Array($),m=0;m<$;m++)t[m]=g[m],a[m]=b(x);i=$}else{for(d=new Array($),c=new Array($),n&&(u=new Array($)),p=0,h=Math.min(i,$);p=p&&S>=p&&t[h]===g[S];h--,S--)d[S]=a[h],c[S]=l[h],n&&(u[S]=n[h]);for(e=new Map,r=new Array(S+1),m=S;m>=p;m--)v=g[m],s=e.get(v),r[m]=void 0===s?-1:s,e.set(v,m);for(s=p;s<=h;s++)v=t[s],void 0!==(m=e.get(v))&&-1!==m?(d[m]=a[s],c[m]=l[s],n&&(u[m]=n[s]),m=r[m],e.set(v,m)):l[s]();for(m=p;m<$;m++)m in d?(a[m]=d[m],l[m]=c[m],n&&(n[m]=u[m],n[m](m))):a[m]=b(x);a=a.slice(0,i=$),t=g.slice(0)}return a}));function x(e){var o;return l[m]=e,n?([e,o]=M(m),n[m]=o,r(g[m],e)):r(g[m])}}}((()=>e.each),e.children,r||void 0))}function oe(e){const r=e.keyed,o=T((()=>e.when),void 0,{equals:(e,o)=>r?e===o:!e==!o});return T((()=>{const t=o();if(t){const a=e.children;return"function"==typeof a&&0a(r?t:()=>{if(_(o))return e.when;throw(e=>`Stale read from <${e}>.`)("Show")}))):a}return e.fallback}),void 0,void 0)}const te=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline","allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"]),ae=new Set(["innerHTML","textContent","innerText","children"]),le=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),ie=Object.assign(Object.create(null),{class:"className",formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});const ne=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),de=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),se={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};const me="_$DX_DELEGATE";function ge(e,r,o){let t;const a=()=>{var r=document.createElement("template");return r.innerHTML=e,(o?r.content.firstChild:r.content).firstChild};return(r=r?()=>(t=t||a()).cloneNode(!0):()=>_((()=>document.importNode(t=t||a(),!0)))).cloneNode=r}function xe(e,r=window.document){var o=r[me]||(r[me]=new Set);for(let a=0,l=e.length;at.call(e,o[1],r))}else e.addEventListener(r,o)}function he(e,r={},o,t){const a={};return t||P((()=>a.children=Me(e,r.children,a.children))),P((()=>r.ref&&r.ref(e))),P((()=>function(e,r,o,t,a={},l=!1){r=r||{};for(const t in a)t in r||"children"!==t&&(a[t]=Ae(e,t,null,a[t],o,l));for(const n in r){var i;"children"===n?t||Me(e,r.children):(i=r[n],a[n]=Ae(e,n,i,a[n],o,l))}}(e,r,o,!0,a,!0))),a}function Se(e,r,o){return _((()=>e(r,o)))}function ve(e,r,o,t){if(void 0!==o&&(t=t||[]),"function"!=typeof r)return Me(e,r,t,o);P((t=>Me(e,r(),t,o)),t)}function $e(e,r,o){var t=r.trim().split(/\s+/);for(let r=0,a=t.length;rr.toUpperCase()))}(r)]=o):(t=a&&-1o||document});o;){var t=o[r];if(t&&!o.disabled){var a=o[r+"Data"];if(void 0!==a?t.call(o,a,e):t.call(o,e),e.cancelBubble)return}o=o._$host||o.parentNode||o.host}}function Me(e,r,o,t,a){for(;"function"==typeof o;)o=o();if(r!==o){var l=typeof r,i=void 0!==t;if(e=i&&o[0]&&o[0].parentNode||e,"string"==l||"number"==l)if("number"==l&&(r=r.toString()),i){let a=o[0];a&&3===a.nodeType?a.data=r:a=document.createTextNode(r),o=Te(e,o,t,a)}else o=""!==o&&"string"==typeof o?e.firstChild.data=r:e.textContent=r;else if(null==r||"boolean"==l)o=Te(e,o,t);else{if("function"==l)return P((()=>{let a=r();for(;"function"==typeof a;)a=a();o=Me(e,a,o,t)})),()=>o;if(Array.isArray(r)){const n=[];if(l=o&&Array.isArray(o),Pe(n,r,o,a))return P((()=>o=Me(e,n,o,t,!0))),()=>o;if(0===n.length){if(o=Te(e,o,t),i)return o}else l?0===o.length?fe(e,n,t):function(e,r,o){let t=o.length,a=r.length,l=t,i=0,n=0,d=r[a-1].nextSibling,s=null;for(;ix-n)for(var c=r[i];nr.component));return T((()=>{const e=t();switch(typeof e){case"function":return Object.assign(e,{[s]:!0}),_((()=>e(o)));case"string":var r=de.has(e),a=function(e,r=!1){return r?document.createElementNS(_e,e):document.createElement(e)}(e,r);return he(a,o,r),a}}))}function we(e){return(r,o)=>{const t=o.element;return b((a=>{const l=function(e){var r=Object.keys(e),o={};for(let t=0;te))}})}return o}(r);t.addPropertyChangedCallback(((e,r)=>l[e]=r)),t.addReleaseCallback((()=>{t.renderRoot.textContent="",a()}));var i=e(l,o);return ve(t.renderRoot,i)}),function(e){if(e.assignedSlot&&e.assignedSlot._$owner)return e.assignedSlot._$owner;let r=e.parentNode;for(;r&&!r._$owner&&(!r.assignedSlot||!r.assignedSlot._$owner);)r=r.parentNode;return(r&&r.assignedSlot?r.assignedSlot:e)._$owner}(t))}}function Ge(e,r,o){return 2===arguments.length&&(o=r,r={}),i(e,r)(we(o))}const Le={chatflowid:"",apiHost:void 0,onRequest:void 0,chatflowConfig:void 0,theme:void 0,observersConfig:void 0};var Ce='/*! tailwindcss v3.3.1 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em;margin-top:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-bottom:1.2em;margin-top:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-bottom:1.25em;margin-top:1.25em;padding-left:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-bottom:1.25em;margin-top:1.25em;padding-left:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-bottom:3em;margin-top:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){border-left-color:var(--tw-prose-quote-borders);border-left-width:.25rem;color:var(--tw-prose-quotes);font-style:italic;font-weight:500;margin-bottom:1.6em;margin-top:1.6em;padding-left:1em;quotes:"\\201C""\\201D""\\2018""\\2019"}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-size:2.25em;font-weight:800;line-height:1.1111111;margin-bottom:.8888889em;margin-top:0}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-size:1.5em;font-weight:700;line-height:1.3333333;margin-bottom:1em;margin-top:2em}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-size:1.25em;font-weight:600;line-height:1.6;margin-bottom:.6em;margin-top:1.6em}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;line-height:1.5;margin-bottom:.5em;margin-top:1.5em}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:2em;margin-top:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-bottom:2em;margin-top:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){border-radius:.3125rem;box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows)/10%),0 3px 0 rgb(var(--tw-prose-kbd-shadows)/10%);color:var(--tw-prose-kbd);font-family:inherit;font-size:.875em;font-weight:500;padding:.1875em .375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:var(--tw-prose-pre-bg);border-radius:.375rem;color:var(--tw-prose-pre-code);font-size:.875em;font-weight:400;line-height:1.7142857;margin-bottom:1.7142857em;margin-top:1.7142857em;overflow-x:auto;padding:.8571429em 1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-radius:0;border-width:0;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.875em;line-height:1.7142857;margin-bottom:2em;margin-top:2em;table-layout:auto;text-align:left;width:100%}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-color:var(--tw-prose-th-borders);border-bottom-width:1px}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;padding-bottom:.5714286em;padding-left:.5714286em;padding-right:.5714286em;vertical-align:bottom}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-color:var(--tw-prose-td-borders);border-bottom-width:1px}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-color:var(--tw-prose-th-borders);border-top-width:1px}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0;margin-top:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body:#374151;--tw-prose-headings:#111827;--tw-prose-lead:#4b5563;--tw-prose-links:#111827;--tw-prose-bold:#111827;--tw-prose-counters:#6b7280;--tw-prose-bullets:#d1d5db;--tw-prose-hr:#e5e7eb;--tw-prose-quotes:#111827;--tw-prose-quote-borders:#e5e7eb;--tw-prose-captions:#6b7280;--tw-prose-kbd:#111827;--tw-prose-kbd-shadows:17 24 39;--tw-prose-code:#111827;--tw-prose-pre-code:#e5e7eb;--tw-prose-pre-bg:#1f2937;--tw-prose-th-borders:#d1d5db;--tw-prose-td-borders:#e5e7eb;--tw-prose-invert-body:#d1d5db;--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:#9ca3af;--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:#9ca3af;--tw-prose-invert-bullets:#4b5563;--tw-prose-invert-hr:#374151;--tw-prose-invert-quotes:#f3f4f6;--tw-prose-invert-quote-borders:#374151;--tw-prose-invert-captions:#9ca3af;--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:255 255 255;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:#d1d5db;--tw-prose-invert-pre-bg:rgba(0,0,0,.5);--tw-prose-invert-th-borders:#4b5563;--tw-prose-invert-td-borders:#374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0;margin-top:0}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:2em;margin-top:2em}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:.5em;margin-top:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:.75em;margin-top:.75em}.prose :where(.prose>ul>li>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:.75em;margin-top:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em;margin-top:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-left:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:2em;margin-top:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.right-\\[-8px\\]{right:-8px}.top-0{top:0}.z-0{z-index:0}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.z-\\[1001\\]{z-index:1001}.z-\\[1002\\]{z-index:1002}.float-right{float:right}.m-0{margin:0}.m-\\[6px\\]{margin:6px}.m-auto{margin:auto}.mx-4{margin-left:16px;margin-right:16px}.my-2{margin-bottom:8px;margin-top:8px}.my-6{margin-bottom:24px;margin-top:24px}.-ml-1{margin-left:-4px}.mb-1{margin-bottom:4px}.mb-2{margin-bottom:8px}.mb-3{margin-bottom:12px}.mb-4{margin-bottom:16px}.mb-6{margin-bottom:24px}.ml-1{margin-left:4px}.ml-1\\.5{margin-left:6px}.ml-10{margin-left:40px}.ml-2{margin-left:8px}.ml-auto{margin-left:auto}.mr-1{margin-right:4px}.mr-2{margin-right:8px}.mr-3{margin-right:12px}.mr-\\[10px\\]{margin-right:10px}.mt-2{margin-top:8px}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-10{height:40px}.h-12{height:48px}.h-14{height:56px}.h-2{height:8px}.h-4{height:16px}.h-5{height:20px}.h-6{height:24px}.h-7{height:28px}.h-\\[50px\\]{height:50px}.h-\\[58px\\]{height:58px}.h-auto{height:auto}.h-full{height:100%}.max-h-60{max-height:240px}.max-h-\\[128px\\]{max-height:128px}.max-h-\\[192px\\]{max-height:192px}.max-h-\\[704px\\]{max-height:704px}.min-h-\\[56px\\]{min-height:56px}.min-h-full{min-height:100%}.w-10{width:40px}.w-12{width:48px}.w-2{width:8px}.w-4{width:16px}.w-5{width:20px}.w-6{width:24px}.w-64{width:256px}.w-7{width:28px}.w-\\[200px\\]{width:200px}.w-full{width:100%}.min-w-full{min-width:100%}.max-w-3xl{max-width:768px}.max-w-\\[128px\\]{max-width:128px}.max-w-full{max-width:100%}.max-w-max{max-width:-moz-max-content;max-width:max-content}.max-w-md{max-width:448px}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.flex-none{flex:none}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.basis-auto{flex-basis:auto}.-rotate-180{--tw-rotate:-180deg}.-rotate-180,.rotate-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-0{--tw-rotate:0deg}.scale-0{--tw-scale-x:0;--tw-scale-y:0}.scale-0,.scale-100{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.animate-fade-in{animation:fade-in .3s ease-out}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:4px}.gap-2{gap:8px}.gap-3{gap:12px}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(8px*(1 - var(--tw-space-x-reverse)));margin-right:calc(8px*var(--tw-space-x-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(16px*(1 - var(--tw-space-x-reverse)));margin-right:calc(16px*var(--tw-space-x-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(8px*var(--tw-space-y-reverse));margin-top:calc(8px*(1 - var(--tw-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(16px*var(--tw-space-y-reverse));margin-top:calc(16px*(1 - var(--tw-space-y-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-scroll{overflow-y:scroll}.scroll-smooth{scroll-behavior:smooth}.whitespace-pre-wrap{white-space:pre-wrap}.rounded{border-radius:4px}.rounded-\\[10px\\]{border-radius:10px}.rounded-\\[6px\\]{border-radius:6px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-md{border-radius:6px}.rounded-none{border-radius:0}.rounded-xl{border-radius:12px}.rounded-b{border-bottom-left-radius:4px;border-bottom-right-radius:4px}.rounded-t{border-top-left-radius:4px;border-top-right-radius:4px}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-4{border-width:4px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-t-4{border-top-width:4px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-\\[\\#eeeeee\\]{--tw-border-opacity:1;border-color:rgb(238 238 238/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-green-600{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity))}.border-red-600{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.border-yellow-300{--tw-border-opacity:1;border-color:rgb(253 224 71/var(--tw-border-opacity))}.border-t-white{--tw-border-opacity:1;border-top-color:rgb(255 255 255/var(--tw-border-opacity))}.bg-\\[rgba\\(0\\2c 0\\2c 0\\2c 0\\.3\\)\\]{background-color:rgba(0,0,0,.3)}.bg-\\[rgba\\(0\\2c 0\\2c 0\\2c 0\\.4\\)\\]{background-color:rgba(0,0,0,.4)}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-black\\/10{background-color:rgba(0,0,0,.1)}.bg-black\\/60{background-color:rgba(0,0,0,.6)}.bg-emerald-500{--tw-bg-opacity:1;background-color:rgb(16 185 129/var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity:0.5}.bg-cover{background-size:cover}.bg-center{background-position:50%}.fill-transparent{fill:transparent}.stroke-2{stroke-width:2}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-1{padding:4px}.p-10{padding:40px}.p-2{padding:8px}.p-2\\.5{padding:10px}.p-3{padding:12px}.p-4{padding:16px}.p-5{padding:20px}.p-6{padding:24px}.px-1{padding-left:4px;padding-right:4px}.px-12{padding-left:48px;padding-right:48px}.px-2{padding-left:8px;padding-right:8px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.px-5{padding-left:20px;padding-right:20px}.px-6{padding-left:24px;padding-right:24px}.px-\\[10px\\]{padding-left:10px;padding-right:10px}.py-1{padding-bottom:4px;padding-top:4px}.py-2{padding-bottom:8px;padding-top:8px}.py-4{padding-bottom:16px;padding-top:16px}.py-8{padding-bottom:32px;padding-top:32px}.py-\\[10px\\]{padding-bottom:10px;padding-top:10px}.pb-1{padding-bottom:4px}.pb-2{padding-bottom:8px}.pb-\\[10px\\]{padding-bottom:10px}.pl-4{padding-left:16px}.pr-0{padding-right:0}.pr-3{padding-right:12px}.pt-2{padding-top:8px}.pt-4{padding-top:16px}.pt-\\[6px\\]{padding-top:6px}.pt-\\[70px\\]{padding-top:70px}.text-left{text-align:left}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-2xl{font-size:24px;line-height:32px}.text-\\[13px\\]{font-size:13px}.text-base{font-size:16px;line-height:24px}.text-sm{font-size:14px;line-height:20px}.text-xl{font-size:20px;line-height:28px}.text-xs{font-size:12px;line-height:16px}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-none{line-height:1}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.text-inherit{color:inherit}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity:1;color:rgb(161 98 7/var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur-\\[2px\\]{--tw-blur:blur(2px)}.blur-\\[2px\\],.blur-none{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-none{--tw-blur:blur(0)}.drop-shadow{--tw-drop-shadow:drop-shadow(0 1px 2px rgba(0,0,0,.1)) drop-shadow(0 1px 1px rgba(0,0,0,.06))}.drop-shadow,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur:blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150,.transition-transform{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}:host{--chatbot-container-bg-image:none;--chatbot-container-bg-color:transparent;--chatbot-container-font-family:"Open Sans";--chatbot-button-bg-color:#0042da;--chatbot-button-color:#fff;--chatbot-host-bubble-bg-color:#f7f8ff;--chatbot-host-bubble-color:#303235;--chatbot-guest-bubble-bg-color:#3b81f6;--chatbot-guest-bubble-color:#fff;--chatbot-input-bg-color:#fff;--chatbot-input-color:#303235;--chatbot-input-placeholder-color:#9095a0;--chatbot-header-bg-color:#fff;--chatbot-header-color:#303235;--chatbot-border-radius:6px;--PhoneInputCountryFlag-borderColor:transparent;--PhoneInput-color--focus:transparent}a{color:#16bed7;font-weight:500}a:hover{text-decoration:underline}pre{word-wrap:break-word;font-size:13px;margin:5px;overflow:auto;padding:5px;white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;width:auto}.string{color:green}.number{color:#ff8c00}.boolean{color:blue}.null{color:#f0f}.key{color:#002b36}.scrollable-container::-webkit-scrollbar{display:none}.scrollable-container{-ms-overflow-style:none;scrollbar-width:none}.text-fade-in{transition:opacity .4s ease-in .2s}.bubble-typing{transition:width .4s ease-out,height .4s ease-out}.bubble1,.bubble2,.bubble3{background-color:var(--chatbot-host-bubble-color);opacity:.5}.bubble1,.bubble2{animation:chatBubbles 1s ease-in-out infinite}.bubble2{animation-delay:.3s}.bubble3{animation:chatBubbles 1s ease-in-out infinite;animation-delay:.5s}@keyframes chatBubbles{0%{transform:translateY(0)}50%{transform:translateY(-5px)}to{transform:translateY(0)}}button,input,textarea{font-weight:300}.slate-a{text-decoration:underline}.slate-html-container>div{min-height:24px}.slate-bold{font-weight:700}.slate-italic{font-style:oblique}.slate-underline{text-decoration:underline}.text-input::-moz-placeholder{color:#9095a0!important;opacity:1!important}.text-input::placeholder{color:#9095a0!important;opacity:1!important}.chatbot-container{background-color:var(--chatbot-container-bg-color);background-image:var(--chatbot-container-bg-image);font-family:Open Sans,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol}.file-annotation-button{background-color:#02a0a0c2;border:1px solid #02a0a0c2;border-radius:var(--chatbot-border-radius);color:var(--chatbot-button-color)}.chatbot-button{background-color:#0042da;border:1px solid #0042da;border-radius:var(--chatbot-border-radius);color:var(--chatbot-button-color)}.chatbot-button.selectable{border:1px solid #0042da}.chatbot-button.selectable,.chatbot-host-bubble{background-color:#f7f8ff;color:var(--chatbot-host-bubble-color)}.chatbot-host-bubble{word-wrap:break-word;overflow-wrap:break-word;white-space:normal;word-break:break-word}.chatbot-host-bubble>.bubble-typing{background-color:#f7f8ff;border:var(--chatbot-host-bubble-border);border-radius:6px}.chatbot-host-bubble iframe,.chatbot-host-bubble img,.chatbot-host-bubble video{border-radius:var(--chatbot-border-radius)}.chatbot-guest-bubble{word-wrap:break-word;background-color:#3b81f6;border-radius:6px;color:var(--chatbot-guest-bubble-color);overflow-wrap:break-word;white-space:normal;word-break:break-word}.chatbot-input,.feedback-input{background-color:#fff;border-radius:var(--chatbot-border-radius);box-shadow:0 2px 6px -1px rgba(0,0,0,.1);color:#303235}.chatbot-input-error-message{color:#303235}.chatbot-button>.send-icon{fill:var(--chatbot-button-color);stroke:var(--chatbot-button-color)}.chatbot-chat-view{max-width:800px}.ping span{background-color:#0042da}.rating-icon-container svg{stroke:#0042da;fill:#f7f8ff;height:42px;transition:fill .1s ease-out;width:42px}.rating-icon-container.selected svg{fill:#0042da}.rating-icon-container:hover svg{filter:brightness(.9)}.rating-icon-container:active svg{filter:brightness(.75)}.upload-progress-bar{background-color:#0042da;border-radius:var(--chatbot-border-radius)}.total-files-indicator{background-color:#0042da;color:var(--chatbot-button-color);font-size:10px}.chatbot-upload-input{transition:border-color .1s ease-out}.chatbot-upload-input.dragging-over{border-color:#0042da}.secondary-button{background-color:#f7f8ff;border-radius:var(--chatbot-border-radius);color:var(--chatbot-host-bubble-color)}.chatbot-country-select{color:#303235}.chatbot-country-select,.chatbot-date-input{background-color:#fff;border-radius:var(--chatbot-border-radius)}.chatbot-date-input{color:#303235;color-scheme:light}.chatbot-popup-blocked-toast{border-radius:var(--chatbot-border-radius)}.messagelist{border-radius:.5rem;height:100%;overflow-y:scroll;width:100%}.messagelistloading{display:flex;justify-content:center;margin-top:1rem;width:100%}.usermessage{padding:1rem 1.5rem}.usermessagewaiting-light{background:linear-gradient(270deg,#ede7f6,#e3f2fd,#ede7f6);background-position:-100% 0;background-size:200% 200%}.usermessagewaiting-dark,.usermessagewaiting-light{animation:loading-gradient 2s ease-in-out infinite;animation-direction:alternate;animation-name:loading-gradient;padding:1rem 1.5rem}.usermessagewaiting-dark{background:linear-gradient(270deg,#2e2352,#1d3d60,#2e2352);background-position:-100% 0;background-size:200% 200%;color:#ececf1}@keyframes loading-gradient{0%{background-position:-100% 0}to{background-position:100% 0}}.apimessage{animation:fadein .5s;padding:1rem 1.5rem}@keyframes fadein{0%{opacity:0}to{opacity:1}}.apimessage,.usermessage,.usermessagewaiting{display:flex}.markdownanswer{line-height:1.75}.markdownanswer a:hover{opacity:.8}.markdownanswer a{color:#16bed7;font-weight:500}.markdownanswer code{color:#15cb19;font-weight:500;white-space:pre-wrap!important}.markdownanswer ol,.markdownanswer ul{margin:1rem}.boticon,.usericon{border-radius:1rem;margin-right:1rem}.markdownanswer h1,.markdownanswer h2,.markdownanswer h3{font-size:inherit}.center{flex-direction:column;padding:10px;position:relative}.center,.cloud{align-items:center;display:flex;justify-content:center}.cloud{border-radius:.5rem;height:calc(100% - 50px);width:400px}input,textarea{background-color:transparent;border:none;font-family:Poppins,sans-serif;padding:10px}@media (max-width:640px){div[part=bot]{height:100%!important;left:0!important;max-height:unset!important;max-width:unset!important;overflow:auto;overflow-x:hidden;position:fixed!important;top:0!important;width:100%!important}.chatbot-container,.rounded-lg,div[class="flex flex-row items-center w-full h-[50px] absolute top-0 left-0 z-10"],div[part=button]{border-radius:0!important}button{cursor:default!important}}.tooltip{background:var(--tooltip-background-color,#000);border-radius:5px;color:var(--tooltip-text-color,#fff);font-size:var(--tooltip-font-size,12px);max-width:calc(100vw - 20px);padding:5px 10px;position:fixed;transition:opacity .3s ease-in-out;white-space:pre-wrap;word-break:break-word;z-index:42424242}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.spinner{animation:spin 1s linear infinite;border:4px solid hsla(0,0%,100%,.3);border-radius:50%;border-top-color:#fff;height:24px;width:24px}.hover\\:scale-110:hover{--tw-scale-x:1.1;--tw-scale-y:1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.hover\\:bg-green-600:hover{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.hover\\:bg-red-600:hover{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.hover\\:bg-transparent:hover{background-color:transparent}.hover\\:text-gray-700:hover{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.hover\\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.hover\\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\\:brightness-90:hover{--tw-brightness:brightness(.9);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus\\:border-blue-500:focus{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-blue-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity))}.active\\:scale-95:active{--tw-scale-x:.95;--tw-scale-y:.95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:bg-emerald-600:active{--tw-bg-opacity:1;background-color:rgb(5 150 105/var(--tw-bg-opacity))}.active\\:brightness-75:active{--tw-brightness:brightness(.75);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:brightness-100:disabled{--tw-brightness:brightness(1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.group:hover .group-hover\\:flex{display:flex}@media (min-width:640px){.sm\\:right-5{right:20px}.sm\\:my-8{margin-bottom:32px;margin-top:32px}.sm\\:w-\\[400px\\]{width:400px}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:512px}.sm\\:p-0{padding:0}}@media (min-width:768px){.md\\:mb-0{margin-bottom:0}.md\\:flex-row{flex-direction:row}}';const Be=e=>null==e,Ee=e=>null!=e,Ne=async e=>{try{var r="string"==typeof e?e:e.url,o="string"!=typeof e&&Ee(e.body)?{"Content-Type":"application/json",...e.headers}:void 0;let i="string"!=typeof e&&Ee(e.body)?JSON.stringify(e.body):void 0;"string"!=typeof e&&e.formData&&(i=e.formData);var t={method:"string"==typeof e?"GET":e.method,mode:"cors",headers:o,body:i},a=("string"!=typeof e&&e.onRequest&&await e.onRequest(t),await fetch(r,t));let n;var l=a.headers.get("Content-Type");if(n=l&&l.includes("application/json")?await a.json():"string"!=typeof e&&"blob"===e.type?await a.blob():await a.text(),a.ok)return{data:n};{let e;throw e="object"==typeof n&&"error"in n?n.error:n||a.statusText}}catch(e){return console.error(e),{error:e}}},Oe=(e,r,o={})=>{var t=localStorage.getItem(e+"_EXTERNAL");o={...o};if(r&&(o.chatId=r),t)try{var a=JSON.parse(t);localStorage.setItem(e+"_EXTERNAL",JSON.stringify({...a,...o}))}catch(a){const r=t;o.chatId=r,localStorage.setItem(e+"_EXTERNAL",JSON.stringify(o))}else localStorage.setItem(e+"_EXTERNAL",JSON.stringify(o))},Ie=e=>{if(!(e=localStorage.getItem(e+"_EXTERNAL")))return{};try{return JSON.parse(e)}catch(e){return{}}},ke=e=>e?"number"==typeof e?e:"small"===e?32:"medium"!==e&&"large"===e?64:48:48,Xe=ge(''),De=ge('Bubble button icon'),Re=ge('
)} - + + 0 + && props.message.mastSearches[props.message.mastSearches.length - 1].mastids + && props.message.mastSearches[props.message.mastSearches.length - 1].mastids.length > 0 + }> + + {(mastid, index) => ( + + )} + +
Date: Mon, 22 Sep 2025 17:55:26 +0900 Subject: [PATCH 22/44] Add `calledTools` state management and display in Bot and LoadingBubble components - Introduced `calledTools` state with corresponding signal and update logic. - Enhanced LoadingBubble to display active tool calls dynamically. - Added logic to reset `calledTools` state during relevant Bot events. --- src/components/Bot.tsx | 22 +++++++++++++++-- src/components/bubbles/BotBubble.tsx | 2 +- src/components/bubbles/LoadingBubble.tsx | 30 ++++++++++++++++++++++-- 3 files changed, 49 insertions(+), 5 deletions(-) diff --git a/src/components/Bot.tsx b/src/components/Bot.tsx index 4a1b671d9..567fb7625 100644 --- a/src/components/Bot.tsx +++ b/src/components/Bot.tsx @@ -576,6 +576,8 @@ export const Bot = (botProps: BotProps & { class?: string }) => { let hasSoundPlayed = false; + const [calledTools, setCalledTools] = createSignal([]); + const updateLastMessage = (text: string) => { setMessages((prevMessages) => { @@ -626,6 +628,12 @@ export const Bot = (botProps: BotProps & { class?: string }) => { }); }; + const updateLoadingCalledTools = (calledTools: any[]) => { + setCalledTools(Array.isArray(calledTools) ? calledTools : []); + }; + + + const updateLastMessageMenus = (menus: any[]) => { setMessages((prevMessages) => { const allMessages = [...cloneDeep(prevMessages)]; @@ -671,6 +679,7 @@ export const Bot = (botProps: BotProps & { class?: string }) => { const updateAgentFlowEvent = (event: string) => { if (event === 'INPROGRESS') { + setCalledTools([]); setMessages((prevMessages) => [...prevMessages, { message: '', type: 'apiMessage', agentFlowEventStatus: event, sourceDocuments: [] }]); } else { setMessages((prevMessages) => { @@ -827,6 +836,7 @@ export const Bot = (botProps: BotProps & { class?: string }) => { const payload = JSON.parse(ev.data); switch (payload.event) { case 'start': + setCalledTools([]); setMessages((prevMessages) => [...prevMessages, { message: '', type: 'apiMessage', sourceDocuments: [] }]); break; case 'token': @@ -838,6 +848,9 @@ export const Bot = (botProps: BotProps & { class?: string }) => { case 'usedTools': updateLastMessageUsedTools(payload.data); break; + case 'calledTools': + updateLoadingCalledTools(payload.data); + break; case 'menus': updateLastMessageMenus(payload.data); break; @@ -868,6 +881,7 @@ export const Bot = (botProps: BotProps & { class?: string }) => { case 'error': updateErrorMessage(payload.data); await logMessageCompletion('error', input); + setCalledTools([]); break; case 'abort': abortMessage(); @@ -888,6 +902,7 @@ export const Bot = (botProps: BotProps & { class?: string }) => { return allMessages; }); await logMessageCompletion('success', input); + setCalledTools([]); closeResponse(); break; } @@ -909,6 +924,7 @@ export const Bot = (botProps: BotProps & { class?: string }) => { setUserInput(''); setUploadedFiles([]); hasSoundPlayed = false; + setCalledTools([]); // Force BotBubble refresh by updating the last message setMessages((prevMessages) => { @@ -1037,6 +1053,8 @@ export const Bot = (botProps: BotProps & { class?: string }) => { } setLoading(true); + // reset called tools indicators for new streaming response + setCalledTools([]); scrollToBottom(); let uploads: IUploads = previews().map((item) => { @@ -1972,8 +1990,8 @@ export const Bot = (botProps: BotProps & { class?: string }) => { setLeadEmail={setLeadEmail} /> )} - {message.type === 'userMessage' && loading() && index() === messages().length - 1 && } - {message.type === 'apiMessage' && message.message === '' && loading() && index() === messages().length - 1 && } + {message.type === 'userMessage' && loading() && index() === messages().length - 1 && } + {message.type === 'apiMessage' && message.message === '' && loading() && index() === messages().length - 1 && } ); }} diff --git a/src/components/bubbles/BotBubble.tsx b/src/components/bubbles/BotBubble.tsx index d3f238a73..144328023 100644 --- a/src/components/bubbles/BotBubble.tsx +++ b/src/components/bubbles/BotBubble.tsx @@ -603,7 +603,7 @@ export const BotBubble = (props: Props) => { src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAD1SURBVHgBzZE/DgFREMZnZjdqN8AJHIEjcAMShQjFokAUCkRhUSCiwQlwA0fgBusGG4mCMOtteGLFnxUFXzPzZvL9Mm8G4NdCmTT0QZCRvbdNZjbK+fS62uz6iMgv62SRWcglV3auyqKFPEO8oyvKQoQ4IXVEjFzByIYIAQfgrGO8qGUWcKdSLhW1Y03vjRAxdtsjcKmLOSzS2McAaWaPJyyGNj4C1PV+W5rL6cR6j1t7eRXXAHGnpTTbz4qmmfvNbi7b6jt/KZuaOCZqDUMAhzFcruB6ic/0NcDxBcuiab3VN19bDo8BjGqU4OgFF1KATfgbnQDU3UrgFaO0lAAAAABJRU5ErkJggg==" style={{ 'margin-right': '2px' }} /> - {(typeof menu.menu_alias === 'string' && menu.menu_alias.trim() !== '') ? `${menu.menu_alias} (${menu.menuid})` : menu.menuid} + {(typeof menu.menu_alias === 'string' && menu.menu_alias.trim() !== '' && menu.menu_alias !== menu.menuid) ? `${menu.menu_alias} (${menu.menuid})` : menu.menuid} )} diff --git a/src/components/bubbles/LoadingBubble.tsx b/src/components/bubbles/LoadingBubble.tsx index c1fdeac8c..05f53ce40 100644 --- a/src/components/bubbles/LoadingBubble.tsx +++ b/src/components/bubbles/LoadingBubble.tsx @@ -1,9 +1,35 @@ import { TypingBubble } from '@/components'; +import { For, Show, createSignal, onCleanup, onMount } from 'solid-js'; -export const LoadingBubble = () => ( +export type CalledTool = { name?: string } | string; + +const LoadingDots = () => { + const [dots, setDots] = createSignal(0); + let intervalId: any; + onMount(() => { + intervalId = setInterval(() => { + setDots((d) => ((d + 1) % 4)); + }, 500); + }); + onCleanup(() => clearInterval(intervalId)); + return {'.'.repeat(dots())}; +}; + +export const LoadingBubble = (props: { calledTools?: CalledTool[] }) => (
- + 0} fallback={}> +
+ {(tool) => { + const name = typeof tool === 'string' ? tool : tool?.name ?? 'tool'; + return ( +
+ Calling '{name}' +
+ ); + }}
+
+
); From a7a542e3c6e132f53e6a0d35ec95cdea0e456f37 Mon Sep 17 00:00:00 2001 From: lesliejjytbw Date: Tue, 23 Sep 2025 17:54:56 +0900 Subject: [PATCH 23/44] Add support for `clipboardSrc` in Bot and BotBubble components - Introduced `clipboardSrc` property in BotBubble and related types. - Updated copy-to-clipboard logic to use custom `clipboardSrc` image if provided. --- src/components/Bot.tsx | 1 + src/components/bubbles/BotBubble.tsx | 14 +++++++++++++- src/features/bubble/types.ts | 1 + 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/components/Bot.tsx b/src/components/Bot.tsx index 567fb7625..9ef5f6a5d 100644 --- a/src/components/Bot.tsx +++ b/src/components/Bot.tsx @@ -1954,6 +1954,7 @@ export const Bot = (botProps: BotProps & { class?: string }) => { avatarLoadingSrc={props.botMessage?.avatarLoadingSrc} avatarInfoSrc={props.botMessage?.avatarInfoSrc} avatarEmptySrc={props.botMessage?.avatarEmptySrc} + clipboardSrc={props.botMessage?.clipboardSrc} chatFeedbackStatus={chatFeedbackStatus()} fontSize={props.fontSize} isLoading={loading() && index() === messages().length - 1} diff --git a/src/components/bubbles/BotBubble.tsx b/src/components/bubbles/BotBubble.tsx index 144328023..7c85ede5e 100644 --- a/src/components/bubbles/BotBubble.tsx +++ b/src/components/bubbles/BotBubble.tsx @@ -23,6 +23,7 @@ type Props = { avatarLoadingSrc?: string; avatarInfoSrc?: string; avatarEmptySrc?: string; + clipboardSrc?: string; backgroundColor?: string; backgroundColorEmphasize?: string; textColor?: string; @@ -555,7 +556,18 @@ export const BotBubble = (props: Props) => { {props.chatFeedbackStatus && props.message.messageId && ( <>
- copyMessageToClipboard()} /> + {props.clipboardSrc ? ( + copyMessageToClipboard()} + /> + ) : ( + copyMessageToClipboard()} /> + )}
복사완료! diff --git a/src/features/bubble/types.ts b/src/features/bubble/types.ts index ee0f25437..04c0a9ea3 100644 --- a/src/features/bubble/types.ts +++ b/src/features/bubble/types.ts @@ -46,6 +46,7 @@ export type BotMessageTheme = { avatarLoadingSrc?: string; avatarInfoSrc?: string; avatarEmptySrc?: string; + clipboardSrc?: string; }; export type FooterTheme = { From f3367b81b78b47728fce139371695bfdd4730963 Mon Sep 17 00:00:00 2001 From: lesliejjytbw Date: Wed, 24 Sep 2025 09:26:58 +0900 Subject: [PATCH 24/44] Revert "Add support for `clipboardSrc` in Bot and BotBubble components" This reverts commit a7a542e3c6e132f53e6a0d35ec95cdea0e456f37. --- src/components/Bot.tsx | 1 - src/components/bubbles/BotBubble.tsx | 14 +------------- src/features/bubble/types.ts | 1 - 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/src/components/Bot.tsx b/src/components/Bot.tsx index 9ef5f6a5d..567fb7625 100644 --- a/src/components/Bot.tsx +++ b/src/components/Bot.tsx @@ -1954,7 +1954,6 @@ export const Bot = (botProps: BotProps & { class?: string }) => { avatarLoadingSrc={props.botMessage?.avatarLoadingSrc} avatarInfoSrc={props.botMessage?.avatarInfoSrc} avatarEmptySrc={props.botMessage?.avatarEmptySrc} - clipboardSrc={props.botMessage?.clipboardSrc} chatFeedbackStatus={chatFeedbackStatus()} fontSize={props.fontSize} isLoading={loading() && index() === messages().length - 1} diff --git a/src/components/bubbles/BotBubble.tsx b/src/components/bubbles/BotBubble.tsx index 7c85ede5e..144328023 100644 --- a/src/components/bubbles/BotBubble.tsx +++ b/src/components/bubbles/BotBubble.tsx @@ -23,7 +23,6 @@ type Props = { avatarLoadingSrc?: string; avatarInfoSrc?: string; avatarEmptySrc?: string; - clipboardSrc?: string; backgroundColor?: string; backgroundColorEmphasize?: string; textColor?: string; @@ -556,18 +555,7 @@ export const BotBubble = (props: Props) => { {props.chatFeedbackStatus && props.message.messageId && ( <>
- {props.clipboardSrc ? ( - copyMessageToClipboard()} - /> - ) : ( - copyMessageToClipboard()} /> - )} + copyMessageToClipboard()} />
복사완료! diff --git a/src/features/bubble/types.ts b/src/features/bubble/types.ts index 04c0a9ea3..ee0f25437 100644 --- a/src/features/bubble/types.ts +++ b/src/features/bubble/types.ts @@ -46,7 +46,6 @@ export type BotMessageTheme = { avatarLoadingSrc?: string; avatarInfoSrc?: string; avatarEmptySrc?: string; - clipboardSrc?: string; }; export type FooterTheme = { From c9cc02541dd58277cb152874afc0fd9c6cd4416c Mon Sep 17 00:00:00 2001 From: lesliejjytbw Date: Wed, 24 Sep 2025 09:51:45 +0900 Subject: [PATCH 25/44] Update ClipboardIcon SVG with new design and optimized structure --- src/components/icons/ClipboardIcon.tsx | 42 +++++++++++++++++--------- 1 file changed, 28 insertions(+), 14 deletions(-) diff --git a/src/components/icons/ClipboardIcon.tsx b/src/components/icons/ClipboardIcon.tsx index e59b8c0d4..a347454d8 100644 --- a/src/components/icons/ClipboardIcon.tsx +++ b/src/components/icons/ClipboardIcon.tsx @@ -1,19 +1,33 @@ import { JSX } from 'solid-js/jsx-runtime'; const defaultButtonColor = '#3B81F6'; export const ClipboardIcon = (props: JSX.SvgSVGAttributes) => ( - - - + // + // + // + // + + + + + + + + + + ); From c82055b1144c884dcd9a9d5804a6f24d855cc546 Mon Sep 17 00:00:00 2001 From: lesliejjytbw Date: Wed, 24 Sep 2025 14:17:47 +0900 Subject: [PATCH 26/44] =?UTF-8?q?=ED=94=BC=EB=93=9C=EB=B0=B1=20=EB=A9=94?= =?UTF-8?q?=EC=8B=9C=EC=A7=80=EA=B0=80=20=EC=97=86=EC=9D=84=20=EB=95=8C?= =?UTF-8?q?=EB=8F=84=20=ED=94=BC=EB=93=9C=EB=B0=B1=20=EB=B3=B4=EB=82=B4?= =?UTF-8?q?=EA=B8=B0=20=EB=B2=84=ED=8A=BC=20=EC=83=81=ED=98=B8=EC=9E=91?= =?UTF-8?q?=EC=9A=A9=20=EA=B0=80=EB=8A=A5=ED=95=98=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=ED=95=98=EC=97=AC=20=EC=B0=BD=EC=9D=84=20=EB=81=8C=20=EC=88=98?= =?UTF-8?q?=20=EC=9E=88=EA=B2=8C=20=EA=B0=9C=EC=84=A0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FeedbackContentDialog.tsx | 2 +- src/components/bubbles/BotBubble.tsx | 25 ++++++++++++------------ 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/components/FeedbackContentDialog.tsx b/src/components/FeedbackContentDialog.tsx index 73e5a7fcd..130bfa361 100644 --- a/src/components/FeedbackContentDialog.tsx +++ b/src/components/FeedbackContentDialog.tsx @@ -17,7 +17,7 @@ const FeedbackContentDialog = (props: FeedbackContentDialogProps) => { const handleInput = (value: string) => setInputValue(value); - const checkIfInputIsValid = () => inputValue() !== '' && inputRef?.reportValidity(); + const checkIfInputIsValid = () => inputRef?.reportValidity(); const submit = () => { if (checkIfInputIsValid()) props.onSubmit(inputValue()); diff --git a/src/components/bubbles/BotBubble.tsx b/src/components/bubbles/BotBubble.tsx index 144328023..943395f3e 100644 --- a/src/components/bubbles/BotBubble.tsx +++ b/src/components/bubbles/BotBubble.tsx @@ -254,20 +254,21 @@ export const BotBubble = (props: Props) => { }; const submitFeedbackContent = async (text: string) => { - const body = { - content: text, - }; - const result = await updateFeedbackQuery({ - id: feedbackId(), - apiHost: props.apiHost, - body, - onRequest: props.onRequest, - }); + if (text != '') { + const body = { + content: text, + }; - if (result.data) { - setFeedbackId(''); - setShowFeedbackContentModal(false); + await updateFeedbackQuery({ + id: feedbackId(), + apiHost: props.apiHost, + body, + onRequest: props.onRequest, + }); } + setFeedbackId(''); + setShowFeedbackContentModal(false); + }; onMount(() => { From 547fb1f42715ad804bc1126f0906b24f7a38276c Mon Sep 17 00:00:00 2001 From: lesliejjytbw Date: Tue, 30 Sep 2025 15:09:52 +0900 Subject: [PATCH 27/44] Remove borders from BotBubble menu buttons for cleaner styling --- src/components/bubbles/BotBubble.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/bubbles/BotBubble.tsx b/src/components/bubbles/BotBubble.tsx index 943395f3e..27e601d20 100644 --- a/src/components/bubbles/BotBubble.tsx +++ b/src/components/bubbles/BotBubble.tsx @@ -590,7 +590,7 @@ export const BotBubble = (props: Props) => { 'font-size': '11px', 'height': '24px', 'border-radius': '4px', - 'border': '1px solid #CED4DA', + 'border': 'none', // '1px solid #CED4DA', 'padding': '6px' }} title={(props.langCode && menu.menu_names_by_lang?.[props.langCode]?.name)} @@ -627,7 +627,7 @@ export const BotBubble = (props: Props) => { 'font-size': '11px', 'height': '24px', 'border-radius': '4px', - 'border': '1px solid #CED4DA', + 'border': 'none', // '1px solid #CED4DA', 'padding': '6px' }} onClick={() => { From bad86e836fcd47900f947c1ba24da92dcb7cd124 Mon Sep 17 00:00:00 2001 From: lesliejjytbw Date: Wed, 1 Oct 2025 10:35:42 +0900 Subject: [PATCH 28/44] Add `thoughts` handling and improved menu sorting logic in Bot components - Introduced `thoughts` property in Bot state and incorporated parsing logic for `` tags. - Enhanced menu sorting logic to prioritize mentions in messages for better context relevance. - Updated LoadingBubble with avatar display options and improved interaction handling. --- src/components/Bot.tsx | 118 +++++++++++++++++++++-- src/components/bubbles/BotBubble.tsx | 5 +- src/components/bubbles/LoadingBubble.tsx | 13 ++- 3 files changed, 127 insertions(+), 9 deletions(-) diff --git a/src/components/Bot.tsx b/src/components/Bot.tsx index 567fb7625..997f0463e 100644 --- a/src/components/Bot.tsx +++ b/src/components/Bot.tsx @@ -117,6 +117,7 @@ export type MessageType = { sourceDocuments?: any; menus?: any; mastSearches?: any; + thoughts?: any; fileAnnotations?: any; fileUploads?: Partial[]; artifacts?: Partial[]; @@ -528,6 +529,8 @@ export const Bot = (botProps: BotProps & { class?: string }) => { userId: vars?.userId, chatType: vars?.chatType, mdmModule: vars?.mdmModule, + thoughts: msg?.thoughts, + menuId: vars?.menuId, status, }; await sendMessageLog({ @@ -584,9 +587,36 @@ export const Bot = (botProps: BotProps & { class?: string }) => { const allMessages = [...cloneDeep(prevMessages)]; if (allMessages[allMessages.length - 1].type === 'userMessage') return allMessages; if (!text) return allMessages; - allMessages[allMessages.length - 1].message += text; - allMessages[allMessages.length - 1].rating = undefined; - allMessages[allMessages.length - 1].dateTime = new Date().toISOString(); + + const last = allMessages[allMessages.length - 1] as any; + last.message = (last.message || '') + text; + + if (last.type === 'apiMessage') { + const re = /<(think|thinking)>([\s\S]*?)<\/\1>/g; + let changed = false; + let match: RegExpExecArray | null; + const matches: { full: string; inner: string }[] = []; + while ((match = re.exec(last.message)) !== null) { + matches.push({ full: match[0], inner: match[2] }); + } + if (matches.length) { + if (!Array.isArray(last.thoughts)) last.thoughts = []; + matches.forEach((m) => { + const content = m.inner; + if (content && content.length) last.thoughts.push(content); + last.message = last.message.replace(m.full, '').trim(); + changed = true; + }); + } + if (changed && (!last.message || last.message.trim().length === 0)) { + setLoading(true); + } + + } + + + last.rating = undefined; + last.dateTime = new Date().toISOString(); if (!hasSoundPlayed) { playReceiveSound(); hasSoundPlayed = true; @@ -638,7 +668,66 @@ export const Bot = (botProps: BotProps & { class?: string }) => { setMessages((prevMessages) => { const allMessages = [...cloneDeep(prevMessages)]; if (allMessages[allMessages.length - 1].type === 'userMessage') return allMessages; - allMessages[allMessages.length - 1].menus = menus; + + try { + const lastMsg = allMessages[allMessages.length - 1]; + const text: string = (lastMsg?.message ?? '').toString(); + const textLower = text.toLowerCase(); + + // Helper to find the earliest mention index of menuid or menu_alias + const getMentionIndex = (menu: any): number => { + if (!menu) return -1; + const candidates: string[] = []; + if (typeof menu.menuid === 'string' && menu.menuid.trim() !== '') candidates.push(menu.menuid); + if (typeof menu.menu_alias === 'string' && menu.menu_alias.trim() !== '') candidates.push(menu.menu_alias); + + let best = -1; + for (const raw of candidates) { + const token = String(raw).trim(); + if (!token) continue; + // Case-insensitive search; prefer word-boundary match when possible + const tokenLower = token.toLowerCase(); + + // Try exact word boundary match first + // Build a simple regex escaping special characters + const escaped = tokenLower.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&'); + const wordBoundaryRegex = new RegExp(`(^|[^a-z0-9_])(${escaped})(?=$|[^a-z0-9_])`, 'i'); + const boundaryMatch = text.match(wordBoundaryRegex); + if (boundaryMatch && typeof boundaryMatch.index === 'number') { + const idx = boundaryMatch.index + (boundaryMatch[1] ? boundaryMatch[1].length : 0); + best = best === -1 ? idx : Math.min(best, idx); + continue; + } + + // Fallback: substring search + const idx2 = textLower.indexOf(tokenLower); + if (idx2 !== -1) { + best = best === -1 ? idx2 : Math.min(best, idx2); + } + } + return best; + }; + + // Stable sort: compute mention index and then order + const withKeys = (Array.isArray(menus) ? menus : []).map((m, i) => ({ m, i, mi: getMentionIndex(m) })); + withKeys.sort((a, b) => { + const aMentioned = a.mi !== -1; + const bMentioned = b.mi !== -1; + if (aMentioned && bMentioned) { + // Earlier appearance in text first; tie-break by original index to keep stable + if (a.mi !== b.mi) return a.mi - b.mi; + return a.i - b.i; + } + if (aMentioned) return -1; + if (bMentioned) return 1; + return a.i - b.i; // preserve original order for non-mentioned + }); + allMessages[allMessages.length - 1].menus = withKeys.map((x) => x.m); + } catch (e) { + // Fallback to original order on any error + allMessages[allMessages.length - 1].menus = menus; + } + addChatMessage(allMessages); return allMessages; }); @@ -1340,6 +1429,7 @@ export const Bot = (botProps: BotProps & { class?: string }) => { dateTime: message.dateTime, }; if (message.menus) chatHistory.menus = message.menus; + if (message.thoughts) chatHistory.thoughts = message.thoughts; if (message.mastSearches) chatHistory.mastSearches = message.mastSearches; if (message.sourceDocuments) chatHistory.sourceDocuments = message.sourceDocuments; if (message.fileAnnotations) chatHistory.fileAnnotations = message.fileAnnotations; @@ -1938,7 +2028,7 @@ export const Bot = (botProps: BotProps & { class?: string }) => { renderHTML={props.renderHTML} /> )} - {message.type === 'apiMessage' && ( + {message.type === 'apiMessage' && message.message.trim() !== '' && ( { setLeadEmail={setLeadEmail} /> )} - {message.type === 'userMessage' && loading() && index() === messages().length - 1 && } - {message.type === 'apiMessage' && message.message === '' && loading() && index() === messages().length - 1 && } + {message.type === 'userMessage' && loading() && index() === messages().length - 1 && ( + + )} + {message.type === 'apiMessage' && message.message.trim() === '' && loading() && index() === messages().length - 1 && ( + + )} ); }} diff --git a/src/components/bubbles/BotBubble.tsx b/src/components/bubbles/BotBubble.tsx index 27e601d20..dd6650df9 100644 --- a/src/components/bubbles/BotBubble.tsx +++ b/src/components/bubbles/BotBubble.tsx @@ -472,7 +472,10 @@ export const BotBubble = (props: Props) => { data-testid="host-bubble" style={{ 'background-color': - props.message.sourceDocuments && props.message.sourceDocuments.length > 0 + ( + (props.message.sourceDocuments && props.message.sourceDocuments.length > 0) + || (props.message.mastSearches && props.message.mastSearches.length > 0) + ) ? props.backgroundColorEmphasize ?? defaultBackgroundColor : props.backgroundColor ?? defaultBackgroundColor, color: props.textColor ?? defaultTextColor, diff --git a/src/components/bubbles/LoadingBubble.tsx b/src/components/bubbles/LoadingBubble.tsx index 05f53ce40..7728639e0 100644 --- a/src/components/bubbles/LoadingBubble.tsx +++ b/src/components/bubbles/LoadingBubble.tsx @@ -1,8 +1,16 @@ import { TypingBubble } from '@/components'; import { For, Show, createSignal, onCleanup, onMount } from 'solid-js'; +import { Avatar } from '../avatars/Avatar'; export type CalledTool = { name?: string } | string; +type LoadingBubbleProps = { + calledTools?: CalledTool[]; + showAvatar?: boolean; + avatarLoadingSrc?: string; + avatarSrc?: string; +}; + const LoadingDots = () => { const [dots, setDots] = createSignal(0); let intervalId: any; @@ -15,8 +23,11 @@ const LoadingDots = () => { return {'.'.repeat(dots())}; }; -export const LoadingBubble = (props: { calledTools?: CalledTool[] }) => ( +export const LoadingBubble = (props: LoadingBubbleProps) => (
+ + + 0} fallback={}>
From 017dc5bf06f0906a1f0eca0fc90b818b3f4b6e1c Mon Sep 17 00:00:00 2001 From: lesliejjytbw Date: Mon, 13 Oct 2025 10:36:50 +0900 Subject: [PATCH 29/44] Improve ordered rendering and interactivity for menus, sources, and mast searches in BotBubble - Introduced ordered state management for menus, sources, and mast searches. - Enhanced link handling logic to prioritize relevance and improve user interaction. - Updated styles and added dynamic rendering for ordered items. --- src/components/bubbles/BotBubble.tsx | 214 ++++++++++++++++++++++-- src/components/bubbles/SourceBubble.tsx | 19 +++ 2 files changed, 218 insertions(+), 15 deletions(-) diff --git a/src/components/bubbles/BotBubble.tsx b/src/components/bubbles/BotBubble.tsx index dd6650df9..1b96c5325 100644 --- a/src/components/bubbles/BotBubble.tsx +++ b/src/components/bubbles/BotBubble.tsx @@ -48,6 +48,9 @@ const defaultFontSize = 16; const defaultFeedbackColor = '#3B81F6'; export const BotBubble = (props: Props) => { + const [orderedSources, setOrderedSources] = createSignal([]); + const [orderedMenus, setOrderedMenus] = createSignal([]); + const [orderedMastIds, setOrderedMastIds] = createSignal([]); let botDetailsEl: HTMLDetailsElement | undefined; Marked.setOptions({ isNoP: true, sanitize: props.renderHTML !== undefined ? !props.renderHTML : true }); @@ -86,11 +89,199 @@ export const BotBubble = (props: Props) => { (element as HTMLElement).style.color = '#4CAF50'; // Green color }); - // Set target="_blank" for links + let prevMenus: any[] = []; + let prevDocs: any[] = []; + let prevMastSearches: any[] = []; + try { + const chatDetails = localStorage.getItem(`${props.chatflowid}_EXTERNAL`); + if (chatDetails) { + const parsedDetails = JSON.parse(chatDetails); + const history: MessageType[] = parsedDetails.chatHistory || []; + const currentIdx = history.findIndex((m: MessageType) => m.messageId === props.message.messageId); + const prev = currentIdx >= 0 ? history.slice(0, currentIdx) : history; + for (const msg of prev) { + if (Array.isArray(msg.menus)) prevMenus = prevMenus.concat(msg.menus); + if (Array.isArray(msg.sourceDocuments)) prevDocs = prevDocs.concat(msg.sourceDocuments); + if (Array.isArray(msg.mastSearches)) prevMastSearches = prevMastSearches.concat(msg.mastSearches); + } + } + } catch (e) { + // ignore parsing errors + } + + const currentDocs = Array.isArray(props.message.sourceDocuments) ? props.message.sourceDocuments : []; + + const orderedCurrentSources: any[] = []; + const orderedCurrentMenus: any[] = []; + const orderedCurrentMastIds: string[] = []; + let currentDocCounter = 0; + el.querySelectorAll('a').forEach((link) => { - link.target = '_blank'; + let href = link.getAttribute('href') || ''; + + let invalid_link = true; + if (href.startsWith('menu:')) { + const key = href.substring('menu:'.length).trim(); + const menus = Array.isArray(props.message.menus) ? props.message.menus : []; + let matched = menus.find((m: any) => m?.menuid === key || m?.menu_alias === key); + const matchedFromCurrent = matched; + if (!matched && Array.isArray(prevMenus) && prevMenus.length > 0) { + matched = prevMenus.find((m: any) => m?.menuid === key || m?.menu_alias === key); + } + + if (matched) { + link.addEventListener('click', (e) => { + e.preventDefault(); + if (!props.isLoading && props.observeMenuClick) { + props.observeMenuClick(matched); + } + }); + + link.setAttribute('role', 'button'); + link.style.cursor = props.isLoading ? 'not-allowed' : 'pointer'; + link.style.color = props.textColor ?? defaultTextColor; + link.style.textDecoration = 'underline'; + link.title = matched.menu_alias !== '' ? matched.menu_alias : matched.menuid; + + const img = document.createElement('img'); + img.dataset.menuIcon = '1'; + img.src = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAD1SURBVHgBzZE/DgFREMZnZjdqN8AJHIEjcAMShQjFokAUCkRhUSCiwQlwA0fgBusGG4mCMOtteGLFnxUFXzPzZvL9Mm8G4NdCmTT0QZCRvbdNZjbK+fS62uz6iMgv62SRWcglV3auyqKFPEO8oyvKQoQ4IXVEjFzByIYIAQfgrGO8qGUWcKdSLhW1Y03vjRAxdtsjcKmLOSzS2McAaWaPJyyGNj4C1PV+W5rL6cR6j1t7eRXXAHGnpTTbz4qmmfvNbi7b6jt/KZuaOCZqDUMAhzFcruB6ic/0NcDxBcuiab3VN19bDo8BjGqU4OgFF1KATfgbnQDU3UrgFaO0lAAAAABJRU5ErkJggg=='; + img.alt = ''; + img.setAttribute('aria-hidden', 'true'); + + img.style.display = 'inline-block'; + img.style.width = '1em'; + img.style.height = '1em'; + img.style.padding = '0'; + img.style.margin = '0'; + img.style.marginRight = '0.25em'; + (img.style as any).verticalAlign = 'text-bottom'; + img.style.lineHeight = '1'; + link.insertBefore(img, link.firstChild); + invalid_link = false; + if (matchedFromCurrent) { + orderedCurrentMenus.push(matchedFromCurrent); + } + } + } else if (href.startsWith('document:')) { + const key = href.substring('document:'.length).trim(); + const idxCurrent = currentDocs.findIndex((m: any) => m?.documentId === key); + + if (idxCurrent !== -1) { + const doc = currentDocs[idxCurrent]; + link.addEventListener('click', (e) => { + e.preventDefault(); + if (!props.isLoading && props.observeSourceClick) { + props.observeSourceClick(doc); + } + }); + + link.setAttribute('role', 'button'); + currentDocCounter += 1; + link.textContent = currentDocCounter.toString(); + link.style.cursor = props.isLoading ? 'not-allowed' : 'pointer'; + // Style as a small grey circular badge + link.style.display = 'inline-flex'; + ;(link.style as any).alignItems = 'center'; + ;(link.style as any).justifyContent = 'center'; + link.style.width = '16px'; + link.style.height = '16px'; + link.style.borderRadius = '9999px'; + link.style.backgroundColor = '#E0E0E0'; + link.style.color = '#333333'; + link.style.fontSize = '11px'; + link.style.fontWeight = '600'; + link.style.textDecoration = 'none'; + ;(link.style as any).lineHeight = '16px'; + invalid_link = false; + orderedCurrentSources.push(doc); + } else { + const prevDoc = Array.isArray(prevDocs) ? prevDocs.find((m: any) => m?.documentId === key) : undefined; + if (prevDoc) { + link.addEventListener('click', (e) => { + e.preventDefault(); + if (!props.isLoading && props.observeSourceClick) { + props.observeSourceClick(prevDoc); + } + }); + link.setAttribute('role', 'button'); + link.textContent = '*'; + link.style.cursor = props.isLoading ? 'not-allowed' : 'pointer'; + invalid_link = false; + } else { + link.textContent = ''; + href = ''; + } + } + } else if (href.startsWith('master:')) { + const key = href.substring('master:'.length).trim(); + const searches = Array.isArray(props.message.mastSearches) ? props.message.mastSearches : []; + + let matched: string | null = null; + const scanMast = (list: any[]) => { + for (const search of list) { + for (const m of search.mastids || []) { + if (m === key) { + return m; + } + } + } + return null; + }; + const matchedFromCurrent = scanMast(searches); + matched = matchedFromCurrent; + if (matched === null && Array.isArray(prevMastSearches) && prevMastSearches.length > 0) { + matched = scanMast(prevMastSearches); + } + + if (matched !== null) { + link.addEventListener('click', (e) => { + e.preventDefault(); + if (!props.isLoading && props.observeMastClick) { + props.observeMastClick(matched); + } + }); + + link.setAttribute('role', 'button'); + link.style.cursor = props.isLoading ? 'not-allowed' : 'pointer'; + link.style.color = props.textColor ?? defaultTextColor; + link.style.textDecoration = 'underline'; + + const img = document.createElement('img'); + img.dataset.menuIcon = '1'; + img.src = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAD1SURBVHgBzZE/DgFREMZnZjdqN8AJHIEjcAMShQjFokAUCkRhUSCiwQlwA0fgBusGG4mCMOtteGLFnxUFXzPzZvL9Mm8G4NdCmTT0QZCRvbdNZjbK+fS62uz6iMgv62SRWcglV3auyqKFPEO8oyvKQoQ4IXVEjFzByIYIAQfgrGO8qGUWcKdSLhW1Y03vjRAxdtsjcKmLOSzS2McAaWaPJyyGNj4C1PV+W5rL6cR6j1t7eRXXAHGnpTTbz4qmmfvNbi7b6jt/KZuaOCZqDUMAhzFcruB6ic/0NcDxBcuiab3VN19bDo8BjGqU4OgFF1KATfgbnQDU3UrgFaO0lAAAAABJRU5ErkJggg=='; + img.alt = ''; + img.setAttribute('aria-hidden', 'true'); + + img.style.display = 'inline-block'; + img.style.width = '1em'; + img.style.height = '1em'; + img.style.padding = '0'; + img.style.margin = '0'; + img.style.marginRight = '0.25em'; + (img.style as any).verticalAlign = 'text-bottom'; + img.style.lineHeight = '1'; + link.insertBefore(img, link.firstChild); + invalid_link = false; + if (matchedFromCurrent) { + orderedCurrentMastIds.push(matchedFromCurrent); + } + } + } + + if (invalid_link && !href.startsWith('http://') && !href.startsWith("https://")) { + const span = document.createElement('span'); + span.textContent = link.textContent || href; + (span as HTMLElement).style.color = props.textColor ?? defaultTextColor; + if (link.parentNode) link.parentNode.replaceChild(span, link); + } }); + // Update ordered sources for rendering + setOrderedSources(orderedCurrentSources.length > 0 ? orderedCurrentSources : currentDocs); + setOrderedMenus(orderedCurrentMenus); + setOrderedMastIds(orderedCurrentMastIds); + // Store the element ref for the copy function setBotMessageElement(el); @@ -522,13 +713,13 @@ export const BotBubble = (props: Props) => {
- {props.message.sourceDocuments && props.message.sourceDocuments.length && ( + {((orderedSources() && orderedSources().length > 0) || (props.message.sourceDocuments && props.message.sourceDocuments.length)) && ( <> {props.sourceDocsTitle}
- + 0 ? orderedSources() : removeDuplicateURL(props.message)).slice(0, 4)}> {(src, index) => { const URL = isValidURL(src.metadata.source); return ( @@ -541,7 +732,6 @@ export const BotBubble = (props: Props) => { if (URL) { window.open(src.metadata.source, '_blank'); } else { - // props.handleSourceDocumentsClick(src); if (props.observeSourceClick) { props.observeSourceClick(src); } @@ -581,8 +771,8 @@ export const BotBubble = (props: Props) => { {formatDateTime(props.message.dateTime, props?.dateTimeToggle?.date, props?.dateTimeToggle?.time)}
- 0}> - + 0}> + {(menu, index) => (
- 0}> - - {(menu, index) => ( - - )} - - - 0}> - - {(mastid, index) => ( - - )} - -
Date: Tue, 14 Oct 2025 11:42:34 +0900 Subject: [PATCH 32/44] Remove unused icon span from SourceBubble - Eliminated redundant span element and inline styles for unused icon rendering in `SourceBubble`. - Simplified component structure by cleaning up unnecessary code. --- src/components/bubbles/SourceBubble.tsx | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/components/bubbles/SourceBubble.tsx b/src/components/bubbles/SourceBubble.tsx index fd0e43cc5..f99def6c3 100644 --- a/src/components/bubbles/SourceBubble.tsx +++ b/src/components/bubbles/SourceBubble.tsx @@ -43,17 +43,6 @@ export const SourceBubble = (props: Props) => ( gap: '4px', }} > - Date: Tue, 14 Oct 2025 16:35:31 +0900 Subject: [PATCH 33/44] Remove `sourceDocuments` property from `apiMessage` objects and refine BotBubble styles - Eliminated unnecessary `sourceDocuments` references in `apiMessage` objects for cleaner state updates. - Simplified and consolidated inline styling logic in BotBubble component. - Ensured proper handling of null/undefined `sourceDocuments` for consistent message formatting. --- src/components/Bot.tsx | 24 ++++++++++++++------- src/components/bubbles/BotBubble.tsx | 31 +++++++++++++++++++--------- 2 files changed, 37 insertions(+), 18 deletions(-) diff --git a/src/components/Bot.tsx b/src/components/Bot.tsx index 997f0463e..3a1cf046d 100644 --- a/src/components/Bot.tsx +++ b/src/components/Bot.tsx @@ -629,7 +629,7 @@ export const Bot = (botProps: BotProps & { class?: string }) => { const updateErrorMessage = (errorMessage: string) => { setMessages((prevMessages) => { const allMessages = [...cloneDeep(prevMessages)]; - allMessages.push({ message: props.errorMessage || errorMessage, type: 'apiMessage', sourceDocuments: [] }); + allMessages.push({ message: props.errorMessage || errorMessage, type: 'apiMessage' }); addChatMessage(allMessages); return allMessages; }); @@ -639,7 +639,14 @@ export const Bot = (botProps: BotProps & { class?: string }) => { setMessages((data) => { const updated = data.map((item, i) => { if (i === data.length - 1) { - return { ...item, sourceDocuments }; + const newItem: any = { ...item }; + if (sourceDocuments === null || typeof sourceDocuments === 'undefined') { + // Ensure the property is not present when null/undefined + if ('sourceDocuments' in newItem) delete newItem.sourceDocuments; + } else { + newItem.sourceDocuments = sourceDocuments; + } + return newItem; } return item; }); @@ -769,7 +776,7 @@ export const Bot = (botProps: BotProps & { class?: string }) => { const updateAgentFlowEvent = (event: string) => { if (event === 'INPROGRESS') { setCalledTools([]); - setMessages((prevMessages) => [...prevMessages, { message: '', type: 'apiMessage', agentFlowEventStatus: event, sourceDocuments: [] }]); + setMessages((prevMessages) => [...prevMessages, { message: '', type: 'apiMessage', agentFlowEventStatus: event }]); } else { setMessages((prevMessages) => { const allMessages = [...cloneDeep(prevMessages)]; @@ -826,7 +833,7 @@ export const Bot = (botProps: BotProps & { class?: string }) => { errMessage = props.errorMessage; } setMessages((prevMessages) => { - const messages: MessageType[] = [...prevMessages, { message: errMessage, type: 'apiMessage', sourceDocuments: [] }]; + const messages: MessageType[] = [...prevMessages, { message: errMessage, type: 'apiMessage' }]; addChatMessage(messages); return messages; }); @@ -926,7 +933,7 @@ export const Bot = (botProps: BotProps & { class?: string }) => { switch (payload.event) { case 'start': setCalledTools([]); - setMessages((prevMessages) => [...prevMessages, { message: '', type: 'apiMessage', sourceDocuments: [] }]); + setMessages((prevMessages) => [...prevMessages, { message: '', type: 'apiMessage' }]); break; case 'token': updateLastMessage(payload.data); @@ -1215,7 +1222,6 @@ export const Bot = (botProps: BotProps & { class?: string }) => { const newMessage = { message: text, id: data?.chatMessageId, - sourceDocuments: data?.sourceDocuments, usedTools: data?.usedTools, menus: data?.menus, mastSearches: data?.mastSearches, @@ -1228,6 +1234,9 @@ export const Bot = (botProps: BotProps & { class?: string }) => { feedback: null, dateTime: new Date().toISOString(), } as MessageType; + if (data?.sourceDocuments !== null && typeof data?.sourceDocuments !== 'undefined') { + (newMessage as any).sourceDocuments = data.sourceDocuments; + } setMessages((prevMessages) => { const allMessages = [...cloneDeep(prevMessages)]; allMessages.push(newMessage); @@ -1446,7 +1455,7 @@ export const Bot = (botProps: BotProps & { class?: string }) => { typeof message.agentFlowExecutedData === 'string' ? JSON.parse(message.agentFlowExecutedData) : message.agentFlowExecutedData; return chatHistory; }) - : [{ message: props.welcomeMessage ?? defaultWelcomeMessage, type: 'apiMessage', sourceDocuments: [] }]; + : [{ message: props.welcomeMessage ?? defaultWelcomeMessage, type: 'apiMessage' }]; const filteredMessages = loadedMessages.filter((message) => message.type !== 'leadCaptureMessage'); setMessages([...filteredMessages]); @@ -1572,7 +1581,6 @@ export const Bot = (botProps: BotProps & { class?: string }) => { { message: props.welcomeMessage ?? defaultWelcomeMessage, type: 'apiMessage', - sourceDocuments: [], }, ]); }; diff --git a/src/components/bubbles/BotBubble.tsx b/src/components/bubbles/BotBubble.tsx index 80266e670..9ab882abe 100644 --- a/src/components/bubbles/BotBubble.tsx +++ b/src/components/bubbles/BotBubble.tsx @@ -188,10 +188,9 @@ export const BotBubble = (props: Props) => { } link.textContent = String(assigned); link.style.cursor = props.isLoading ? 'not-allowed' : 'pointer'; - // Style as a small grey circular badge link.style.display = 'inline-flex'; - ;(link.style as any).alignItems = 'center'; - ;(link.style as any).justifyContent = 'center'; + (link.style as any).alignItems = 'center'; + (link.style as any).justifyContent = 'center'; link.style.width = '16px'; link.style.height = '16px'; link.style.borderRadius = '9999px'; @@ -200,7 +199,7 @@ export const BotBubble = (props: Props) => { link.style.fontSize = '11px'; link.style.fontWeight = '600'; link.style.textDecoration = 'none'; - ;(link.style as any).lineHeight = '16px'; + (link.style as any).lineHeight = '16px'; invalid_link = false; } else { const prevDoc = Array.isArray(prevDocs) ? prevDocs.find((m: any) => m?.documentId === key) : undefined; @@ -214,6 +213,18 @@ export const BotBubble = (props: Props) => { link.setAttribute('role', 'button'); link.textContent = '*'; link.style.cursor = props.isLoading ? 'not-allowed' : 'pointer'; + link.style.display = 'inline-flex'; + (link.style as any).alignItems = 'center'; + (link.style as any).justifyContent = 'center'; + link.style.width = '16px'; + link.style.height = '16px'; + link.style.borderRadius = '9999px'; + link.style.backgroundColor = '#E0E0E0'; + link.style.color = '#333333'; + link.style.fontSize = '11px'; + link.style.fontWeight = '600'; + link.style.textDecoration = 'none'; + (link.style as any).lineHeight = '16px'; invalid_link = false; } else { link.textContent = ''; @@ -285,7 +296,7 @@ export const BotBubble = (props: Props) => { }); // Update ordered sources for rendering - setOrderedSources(orderedCurrentSources.length > 0 ? orderedCurrentSources : currentDocs); + setOrderedSources(orderedCurrentSources); setOrderedMenus(orderedCurrentMenus); setOrderedMastIds(orderedCurrentMastIds); @@ -597,11 +608,11 @@ export const BotBubble = (props: Props) => { return ''; } }; - const getAvatarSrcSrc = (sourceDocuments: any[], isLoading: boolean, messageType: string, message: string) => { - if(isLoading && messageType === 'apiMessage') { + const getAvatarSrcSrc = () => { + if (props?.isLoading && props.message.type === 'apiMessage') { return props.avatarLoadingSrc; - } else if(props.message.sourceDocuments) { - if(props.message.sourceDocuments.length === 0) { + } else if (props.message.sourceDocuments) { + if (props.message.sourceDocuments.length === 0) { return props.avatarEmptySrc; } else { return props.avatarInfoSrc; @@ -614,7 +625,7 @@ export const BotBubble = (props: Props) => {
- +
{props.showAgentMessages && From d7b572c37e6326f0befc041dcfa7b730799b8fa7 Mon Sep 17 00:00:00 2001 From: lesliejjytbw Date: Tue, 21 Oct 2025 12:21:25 +0900 Subject: [PATCH 34/44] Add `choose_one_property` caching and action handling to Bot, improve message merge logic - Implemented caching for `choose_one_property` selections within the session to streamline responses. - Enhanced action handling for `choose_one_property` and search-related operations, ensuring appropriate AI message formatting and updates. - Improved consistency in merging and updating consecutive AI messages. - Updated BotBubble component styles for better rendering of vertical buttons in `choose_one_property` actions. --- src/components/Bot.tsx | 456 ++++++++++++++++++++++++--- src/components/bubbles/BotBubble.tsx | 10 +- 2 files changed, 413 insertions(+), 53 deletions(-) diff --git a/src/components/Bot.tsx b/src/components/Bot.tsx index 3a1cf046d..7c43579f2 100644 --- a/src/components/Bot.tsx +++ b/src/components/Bot.tsx @@ -87,11 +87,14 @@ export type IAgentReasoning = { }; export type IAction = { + action?: string; id?: string; data?: any; elements?: Array<{ type: string; label: string; + prop_field?: string; + prop_id?: string; }>; mapping?: { approve: string; @@ -141,8 +144,17 @@ type IUploads = { mime: string; }[]; -type observerConfigType = (accessor: string | boolean | object | MessageType[]) => void; -export type observersConfigType = Record<'observeUserInput' | 'observeLoading' | 'observeMessages' | 'observeSourceClick' | 'observeMenuClick' | 'observeMastClick', observerConfigType>; +type observerConfigType = (accessor: any) => void; +export type observersConfigType = { + observeUserInput?: observerConfigType; + observeLoading?: observerConfigType; + observeMessages?: observerConfigType; + observeSourceClick?: observerConfigType; + observeMenuClick?: observerConfigType; + observeMastClick?: observerConfigType; + fetchPropName?: (propId: string) => Promise | string; + applySearch?: (data: any) => Promise<{ ok: boolean; error?: string } | { ok: false; error: string } | any>; +}; export type BotProps = { chatflowid: string; @@ -444,6 +456,9 @@ export const Bot = (botProps: BotProps & { class?: string }) => { const [followUpPromptsStatus, setFollowUpPromptsStatus] = createSignal(false); const [followUpPrompts, setFollowUpPrompts] = createSignal([]); + // Cache for choose_one_property answers within the current session + const [chooseOnePropertyCache, setChooseOnePropertyCache] = createSignal>({}); + // drag & drop const [isDragActive, setIsDragActive] = createSignal(false); const [uploadedFiles, setUploadedFiles] = createSignal<{ file: File; type: string }[]>([]); @@ -544,6 +559,50 @@ export const Bot = (botProps: BotProps & { class?: string }) => { } }; + /** + * Normalize consecutive AI messages into a single message and persist chat history. + */ + const normalizeConsecutiveAIMessages = (list: MessageType[]) => { + if (!Array.isArray(list) || list.length === 0) return list; + const result: MessageType[] = []; + + let i = 0; + while (i < list.length) { + const current = list[i]; + if (current.type !== 'apiMessage') { + result.push(current); + i += 1; + continue; + } + // Start a run of consecutive apiMessages + const run: MessageType[] = [current]; + let j = i + 1; + while (j < list.length && list[j].type === 'apiMessage') { + run.push(list[j]); + j += 1; + } + if (run.length === 1) { + result.push(current); + } else { + // Merge: use the last message object for metadata, concatenate messages + const last = run[run.length - 1] as any; + const mergedText = run + .map((m) => (m?.message ?? '').trim()) + .filter((t) => t.length > 0) + .join('\n\n'); + const merged: any = { ...last }; + merged.message = mergedText; + // Ensure the message id fields are from the last one + if (last?.id) merged.id = last.id; + if (last?.messageId) merged.messageId = last.messageId; + result.push(merged as MessageType); + } + i = j; + } + + return result; + }; + /** * Add each chat message into localStorage */ @@ -562,6 +621,7 @@ export const Bot = (botProps: BotProps & { class?: string }) => { setLocalStorageChatflow(props.chatflowid, chatId(), { chatHistory: messages }); }; + // Define the audioRef let audioRef: HTMLAudioElement | undefined; // CDN link for default receive sound @@ -629,7 +689,14 @@ export const Bot = (botProps: BotProps & { class?: string }) => { const updateErrorMessage = (errorMessage: string) => { setMessages((prevMessages) => { const allMessages = [...cloneDeep(prevMessages)]; - allMessages.push({ message: props.errorMessage || errorMessage, type: 'apiMessage' }); + const content = props.errorMessage || errorMessage; + if (allMessages.length > 0 && allMessages[allMessages.length - 1].type === 'apiMessage') { + const last = allMessages[allMessages.length - 1]; + const prefix = (last.message && last.message.length > 0) ? '\n\n' : ''; + last.message = `${last.message ?? ''}${prefix}${content}`; + } else { + allMessages.push({ message: content, type: 'apiMessage' }); + } addChatMessage(allMessages); return allMessages; }); @@ -659,7 +726,12 @@ export const Bot = (botProps: BotProps & { class?: string }) => { setMessages((prevMessages) => { const allMessages = [...cloneDeep(prevMessages)]; if (allMessages[allMessages.length - 1].type === 'userMessage') return allMessages; - allMessages[allMessages.length - 1].usedTools = usedTools; + const lastMessage = allMessages[allMessages.length - 1]; + if (lastMessage.usedTools && Array.isArray(lastMessage.usedTools)) { + lastMessage.usedTools = lastMessage.usedTools.concat(usedTools); + } else { + lastMessage.usedTools = usedTools; + } addChatMessage(allMessages); return allMessages; }); @@ -776,7 +848,15 @@ export const Bot = (botProps: BotProps & { class?: string }) => { const updateAgentFlowEvent = (event: string) => { if (event === 'INPROGRESS') { setCalledTools([]); - setMessages((prevMessages) => [...prevMessages, { message: '', type: 'apiMessage', agentFlowEventStatus: event }]); + setMessages((prevMessages) => { + const allMessages = [...cloneDeep(prevMessages)]; + if (allMessages.length > 0 && allMessages[allMessages.length - 1].type === 'apiMessage') { + allMessages[allMessages.length - 1].agentFlowEventStatus = event; + } else { + allMessages.push({ message: '', type: 'apiMessage', agentFlowEventStatus: event }); + } + return allMessages; + }); } else { setMessages((prevMessages) => { const allMessages = [...cloneDeep(prevMessages)]; @@ -807,11 +887,170 @@ export const Bot = (botProps: BotProps & { class?: string }) => { }); }; + const updateLastMessageAction = (action: IAction) => { + const parsedAction: IAction = typeof action === 'string' ? JSON.parse(action as any) : action; + + // Handle custom actions + if (parsedAction?.action === 'choose_one_property') { + const data: any = parsedAction.data || {}; + const propertyValue: string = data?.property_value ?? ''; + const propertyIds: Array<{ prop_id: string; prop_field: string }> = data?.property_ids ?? []; + + // Create or use the current AI message asking to choose a property + setMessages((prev) => { + const all = [...cloneDeep(prev)]; + const content = `'${propertyValue}'에 해당하는 속성을 선택해주세요.`; + if (all.length > 0 && all[all.length - 1].type === 'apiMessage') { + const lastIdx = all.length - 1; + const prefix = all[lastIdx].message && all[lastIdx].message.length > 0 ? '\n\n' : ''; + all[lastIdx].message = `${all[lastIdx].message ?? ''}${prefix}${content}`; + } else { + all.push({ message: content, type: 'apiMessage' }); + } + addChatMessage(all); + return all; + }); + + // If we have a cached choice for this property value, append the selection and auto-submit without rendering buttons + (async () => { + try { + if (propertyValue) { + const cached = chooseOnePropertyCache()[propertyValue]; + if (cached) { + const getName = botProps.observersConfig?.fetchPropName; + let display = '건너뛰기'; + if (cached !== 'skip') { + const found = propertyIds.find((p) => p.prop_field === cached); + if (found) { + let name = ''; + try { + if (typeof getName === 'function') { + const res = await getName(found.prop_id); + name = typeof res === 'string' ? res : String(res ?? ''); + } + } catch (e) { + // ignore + } + display = `[${found.prop_id}] ${name}`.trim(); + } else { + display = cached; + } + } + // Append selected property to the last AI message + setMessages((prev) => { + const all = [...cloneDeep(prev)]; + if (all.length > 0) { + const lastIdx = all.length - 1; + if (all[lastIdx].type === 'apiMessage') { + const prefix = all[lastIdx].message && all[lastIdx].message.length > 0 ? '\n\n' : ''; + all[lastIdx].message = `${all[lastIdx].message ?? ''}${prefix}${display}`; + } + } + addChatMessage(all); + return all; + }); + + const humanInput = { ok: true, data: { choice: cached } }; + await handleSubmit('', parsedAction, humanInput, true); + return; + } + } + } catch (e) { + // ignore cache errors + } + + // No cache: Fetch property names and then update the last message with vertical buttons + const getName = botProps.observersConfig?.fetchPropName; + const elements: any[] = []; + for (const item of propertyIds) { + let name = ''; + try { + if (typeof getName === 'function') { + const res = await getName(item.prop_id); + name = typeof res === 'string' ? res : String(res ?? ''); + } + } catch (e) { + // ignore and keep empty name + } + const label = `[${item.prop_id}] ${name}`.trim(); + elements.push({ type: 'choose-one-item', label, prop_field: item.prop_field, prop_id: item.prop_id }); + } + // Add skip button + elements.push({ type: 'choose-one-skip', label: '건너뛰기', prop_field: 'skip' }); + + setMessages((prev) => { + const all = [...cloneDeep(prev)]; + if (all.length > 0) { + const lastIdx = all.length - 1; + if (all[lastIdx].type === 'apiMessage') { + (all[lastIdx] as any).action = { ...parsedAction, elements } as IAction; + } + } + addChatMessage(all); + return all; + }); + })(); + return; + } + + if (parsedAction?.action === 'search') { + const data: any = parsedAction.data || {}; + const comment: string = data?.comment ?? ''; + + // Clear choose_one_property cache when a 'search' action is triggered + setChooseOnePropertyCache({}); + + // Append the search comment to the current AI message (no new message) + setMessages((prev) => { + const all = [...cloneDeep(prev)]; + if (all.length > 0) { + const lastIdx = all.length - 1; + if (all[lastIdx].type === 'apiMessage') { + const prefix = all[lastIdx].message && all[lastIdx].message.length > 0 ? '\n\n' : ''; + all[lastIdx].message = `${all[lastIdx].message ?? ''}${prefix}${comment}\n\n`; + } else { + // Fallback: create a new AI message if the last one isn't apiMessage + all.push({ message: comment + "\n\n", type: 'apiMessage' }); + } + } else { + all.push({ message: comment + '\n\n', type: 'apiMessage' }); + } + addChatMessage(all); + return all; + }); + + // Indicate loading while applySearch is running + setLoading(true); + + // Call applySearch observer and send result back without creating a user message + (async () => { + let humanInput: any = { ok: false, error: 'applySearch not implemented' }; + try { + const applySearchFn = botProps.observersConfig?.applySearch; + if (typeof applySearchFn === 'function') { + const res = await applySearchFn(parsedAction.data); + if (res && typeof res === 'object' && 'ok' in res) humanInput = res; + else humanInput = { ok: true }; + } + } catch (e: any) { + humanInput = { ok: false, error: e?.message ?? 'Unknown error' }; + } finally { + // no-op here; we will set loading false after submitting the server response + } + + await handleSubmit('', parsedAction, humanInput, true); + // Stop loading after the server response has been appended + setLoading(false); + })(); + return; + } + + // Default behavior: attach action to the last AI message setMessages((data) => { const updated = data.map((item, i) => { if (i === data.length - 1) { - return { ...item, action: typeof action === 'string' ? JSON.parse(action) : action }; + return { ...item, action: parsedAction }; } return item; }); @@ -833,9 +1072,16 @@ export const Bot = (botProps: BotProps & { class?: string }) => { errMessage = props.errorMessage; } setMessages((prevMessages) => { - const messages: MessageType[] = [...prevMessages, { message: errMessage, type: 'apiMessage' }]; - addChatMessage(messages); - return messages; + const allMessages: MessageType[] = [...cloneDeep(prevMessages)]; + if (allMessages.length > 0 && allMessages[allMessages.length - 1].type === 'apiMessage') { + const last = allMessages[allMessages.length - 1]; + const prefix = (last.message && last.message.length > 0) ? '\n\n' : ''; + last.message = `${last.message ?? ''}${prefix}${errMessage}`; + } else { + allMessages.push({ message: errMessage, type: 'apiMessage' }); + } + addChatMessage(allMessages); + return allMessages; }); setLoading(false); setUserInput(''); @@ -902,6 +1148,7 @@ export const Bot = (botProps: BotProps & { class?: string }) => { const chatId = params.chatId; const input = params.question; params.streaming = true; + fetchEventSource(`${props.apiHost}/api/v1/prediction/${chatflowid}`, { openWhenHidden: true, method: 'POST', @@ -933,7 +1180,17 @@ export const Bot = (botProps: BotProps & { class?: string }) => { switch (payload.event) { case 'start': setCalledTools([]); - setMessages((prevMessages) => [...prevMessages, { message: '', type: 'apiMessage' }]); + if (!(params?.action && params.action.action === 'search')) { + setMessages((prevMessages) => { + const allMessages = [...cloneDeep(prevMessages)]; + if (allMessages.length > 0 && allMessages[allMessages.length - 1].type === 'apiMessage') { + // Ensure we start appending tokens to the existing last AI message + } else { + allMessages.push({ message: '', type: 'apiMessage' }); + } + return allMessages; + }); + } break; case 'token': updateLastMessage(payload.data); @@ -1132,8 +1389,8 @@ export const Bot = (botProps: BotProps & { class?: string }) => { }; // Handle form submission - const handleSubmit = async (value: string | object, action?: IAction | undefined | null, humanInput?: any) => { - if (typeof value === 'string' && value.trim() === '') { + const handleSubmit = async (value: string | object, action?: IAction | undefined | null, humanInput?: any, noUserMessage?: boolean) => { + if (!action && typeof value === 'string' && value.trim() === '') { const containsFile = previews().filter((item) => !item.mime.startsWith('image') && item.type !== 'audio').length > 0; if (!previews().length || (previews().length && containsFile)) { return; @@ -1171,11 +1428,13 @@ export const Bot = (botProps: BotProps & { class?: string }) => { clearPreviews(); - setMessages((prevMessages) => { - const messages: MessageType[] = [...prevMessages, { message: value as string, type: 'userMessage', fileUploads: uploads }]; - addChatMessage(messages); - return messages; - }); + if (!noUserMessage) { + setMessages((prevMessages) => { + const messages: MessageType[] = [...prevMessages, { message: value as string, type: 'userMessage', fileUploads: uploads }]; + addChatMessage(messages); + return messages; + }); + } const body: IncomingInput = { question: value, @@ -1219,39 +1478,96 @@ export const Bot = (botProps: BotProps & { class?: string }) => { playReceiveSound(); - const newMessage = { - message: text, - id: data?.chatMessageId, - usedTools: data?.usedTools, - menus: data?.menus, - mastSearches: data?.mastSearches, - fileAnnotations: data?.fileAnnotations, - agentReasoning: data?.agentReasoning, - agentFlowExecutedData: data?.agentFlowExecutedData, - action: data?.action, - artifacts: data?.artifacts, - type: 'apiMessage' as messageType, - feedback: null, - dateTime: new Date().toISOString(), - } as MessageType; - if (data?.sourceDocuments !== null && typeof data?.sourceDocuments !== 'undefined') { - (newMessage as any).sourceDocuments = data.sourceDocuments; - } - setMessages((prevMessages) => { - const allMessages = [...cloneDeep(prevMessages)]; - allMessages.push(newMessage); - addChatMessage(allMessages); - return allMessages; - }); - // Log success for sync response - await logMessageCompletion('success', typeof value === 'string' ? (value as string) : undefined, newMessage); + if (noUserMessage || (action && (action as any).action === 'search')) { + // Append to the last AI message instead of creating a new one + setMessages((prev) => { + const all = [...cloneDeep(prev)]; + if (all.length > 0) { + const lastIdx = all.length - 1; + if (all[lastIdx].type === 'apiMessage') { + const prefix = all[lastIdx].message && all[lastIdx].message.length > 0 ? '\n\n' : ''; + all[lastIdx].message = `${all[lastIdx].message ?? ''}${prefix}${text}`; + if (Array.isArray((data as any).usedTools)) { + (all[lastIdx] as any).usedTools = (data as any).usedTools; + } + if ((data as any).menus) (all[lastIdx] as any).menus = (data as any).menus; + if ((data as any).mastSearches) (all[lastIdx] as any).mastSearches = (data as any).mastSearches; + if ((data as any).fileAnnotations) (all[lastIdx] as any).fileAnnotations = (data as any).fileAnnotations; + if ((data as any).agentReasoning) (all[lastIdx] as any).agentReasoning = (data as any).agentReasoning; + if ((data as any).agentFlowExecutedData) (all[lastIdx] as any).agentFlowExecutedData = (data as any).agentFlowExecutedData; + if ((data as any).action) (all[lastIdx] as any).action = (data as any).action; + if ((data as any).artifacts) (all[lastIdx] as any).artifacts = (data as any).artifacts; + if ((data as any).sourceDocuments !== null && typeof (data as any).sourceDocuments !== 'undefined') { + (all[lastIdx] as any).sourceDocuments = (data as any).sourceDocuments; + } + } + } + addChatMessage(all); + return all; + }); - updateMetadata(data, value); + updateMetadata(data, ''); - setLoading(false); - setUserInput(''); - setUploadedFiles([]); - scrollToBottom(); + setLoading(false); + setUserInput(''); + setUploadedFiles([]); + scrollToBottom(); + } else { + const newMessage = { + message: text, + id: data?.chatMessageId, + usedTools: data?.usedTools, + menus: data?.menus, + mastSearches: data?.mastSearches, + fileAnnotations: data?.fileAnnotations, + agentReasoning: data?.agentReasoning, + agentFlowExecutedData: data?.agentFlowExecutedData, + action: data?.action, + artifacts: data?.artifacts, + type: 'apiMessage' as messageType, + feedback: null, + dateTime: new Date().toISOString(), + } as MessageType; + if (data?.sourceDocuments !== null && typeof data?.sourceDocuments !== 'undefined') { + (newMessage as any).sourceDocuments = data.sourceDocuments; + } + setMessages((prevMessages) => { + const allMessages = [...cloneDeep(prevMessages)]; + if (allMessages.length > 0 && allMessages[allMessages.length - 1].type === 'apiMessage') { + const lastIdx = allMessages.length - 1; + const prefix = allMessages[lastIdx].message && allMessages[lastIdx].message.length > 0 ? '\n\n' : ''; + allMessages[lastIdx].message = `${allMessages[lastIdx].message ?? ''}${prefix}${newMessage.message}`; + // Merge metadata into the last AI message + const target: any = allMessages[lastIdx]; + if (newMessage.id) target.id = newMessage.id; + if ((newMessage as any).messageId) (target as any).messageId = (newMessage as any).messageId; + if (Array.isArray(newMessage.usedTools)) target.usedTools = newMessage.usedTools; + if ((newMessage as any).menus) target.menus = (newMessage as any).menus; + if ((newMessage as any).mastSearches) target.mastSearches = (newMessage as any).mastSearches; + if ((newMessage as any).fileAnnotations) target.fileAnnotations = (newMessage as any).fileAnnotations; + if ((newMessage as any).agentReasoning) target.agentReasoning = (newMessage as any).agentReasoning; + if ((newMessage as any).agentFlowExecutedData) target.agentFlowExecutedData = (newMessage as any).agentFlowExecutedData; + if ((newMessage as any).action) target.action = (newMessage as any).action; + if ((newMessage as any).artifacts) target.artifacts = (newMessage as any).artifacts; + if ((newMessage as any).sourceDocuments !== null && typeof (newMessage as any).sourceDocuments !== 'undefined') { + target.sourceDocuments = (newMessage as any).sourceDocuments; + } + } else { + allMessages.push(newMessage); + } + addChatMessage(allMessages); + return allMessages; + }); + // Log success for sync response + await logMessageCompletion('success', typeof value === 'string' ? (value as string) : undefined, newMessage); + + updateMetadata(data, value); + + setLoading(false); + setUserInput(''); + setUploadedFiles([]); + scrollToBottom(); + } } if (result.error) { const error = result.error; @@ -1327,7 +1643,8 @@ export const Bot = (botProps: BotProps & { class?: string }) => { addChatMessage(updated); return [...updated]; }); - if (elem.type.includes('agentflowv2')) { + + if (elem?.type && elem.type.includes('agentflowv2')) { const type = elem.type.includes('approve') ? 'proceed' : 'reject'; setFeedbackType(type); @@ -1337,13 +1654,50 @@ export const Bot = (botProps: BotProps & { class?: string }) => { } else if (action) { onSubmitResponse(action.data, '', type); } - } else { - handleSubmit(elem.label, action); + return; } + + // Custom action: choose_one_property + if (action && (action as any).action === 'choose_one_property') { + // Cache the user's selection within the session + try { + const key = (action as any)?.data?.property_value ?? ''; + if (key) { + const choice = elem?.prop_field ?? 'skip'; + setChooseOnePropertyCache((prev) => ({ ...prev, [key]: choice })); + } + } catch (e) { + // ignore cache errors + } + + // Append the selected property label (or skip) to the current AI message + setMessages((prev) => { + const all = [...cloneDeep(prev)]; + if (all.length > 0) { + const lastIdx = all.length - 1; + if (all[lastIdx].type === 'apiMessage') { + const prefix = all[lastIdx].message && all[lastIdx].message.length > 0 ? '\n\n' : ''; + all[lastIdx].message = `${all[lastIdx].message ?? ''}${prefix}${elem?.label ?? '건너뛰기'} ✔️`; + } + } + addChatMessage(all); + return all; + }); + + const humanInput = { ok: true, data: { choice: elem?.prop_field ?? null } }; + // Do not create a user message; auto-submit with the selected choice + handleSubmit('', action, humanInput, true); + return; + } + + // Default behavior + handleSubmit(elem.label, action); }; const clearChat = () => { try { + // Clear session caches + setChooseOnePropertyCache({}); removeLocalStorageChatHistory(props.chatflowid); setChatId( (props.chatflowConfig?.vars as any)?.customerId ? `${(props.chatflowConfig?.vars as any).customerId.toString()}+${uuidv4()}` : uuidv4(), diff --git a/src/components/bubbles/BotBubble.tsx b/src/components/bubbles/BotBubble.tsx index 9ab882abe..b7dd5f26c 100644 --- a/src/components/bubbles/BotBubble.tsx +++ b/src/components/bubbles/BotBubble.tsx @@ -694,7 +694,7 @@ export const BotBubble = (props: Props) => { /> )} {props.message.action && ( -
+
{(action) => { return ( @@ -720,7 +720,13 @@ export const BotBubble = (props: Props) => { {action.label} ) : ( - + )} ); From cf95a877d46de9a7bde24d5c187e2b644eb22ac0 Mon Sep 17 00:00:00 2001 From: lesliejjytbw Date: Wed, 22 Oct 2025 15:33:42 +0900 Subject: [PATCH 35/44] Add `isAppending` prop to LoadingBubble and optimize `choose_one_property` logic - Introduced `isAppending` prop to refine LoadingBubble rendering, improving message transitions. - Simplified and optimized `choose_one_property` action handling, including caching and fallback logic. - Enhanced Bot component interactivity and removed redundant code for better maintainability. --- src/components/Bot.tsx | 128 ++++++---------------- src/components/bubbles/LoadingBubble.tsx | 6 +- src/features/bubble/components/Bubble.tsx | 2 + 3 files changed, 38 insertions(+), 98 deletions(-) diff --git a/src/components/Bot.tsx b/src/components/Bot.tsx index 7c43579f2..a7e689139 100644 --- a/src/components/Bot.tsx +++ b/src/components/Bot.tsx @@ -897,70 +897,34 @@ export const Bot = (botProps: BotProps & { class?: string }) => { const propertyValue: string = data?.property_value ?? ''; const propertyIds: Array<{ prop_id: string; prop_field: string }> = data?.property_ids ?? []; - // Create or use the current AI message asking to choose a property - setMessages((prev) => { - const all = [...cloneDeep(prev)]; - const content = `'${propertyValue}'에 해당하는 속성을 선택해주세요.`; - if (all.length > 0 && all[all.length - 1].type === 'apiMessage') { - const lastIdx = all.length - 1; - const prefix = all[lastIdx].message && all[lastIdx].message.length > 0 ? '\n\n' : ''; - all[lastIdx].message = `${all[lastIdx].message ?? ''}${prefix}${content}`; - } else { - all.push({ message: content, type: 'apiMessage' }); - } - addChatMessage(all); - return all; - }); + console.log("choose_one_property: ", propertyValue, propertyIds); - // If we have a cached choice for this property value, append the selection and auto-submit without rendering buttons (async () => { try { if (propertyValue) { const cached = chooseOnePropertyCache()[propertyValue]; if (cached) { - const getName = botProps.observersConfig?.fetchPropName; - let display = '건너뛰기'; - if (cached !== 'skip') { - const found = propertyIds.find((p) => p.prop_field === cached); - if (found) { - let name = ''; - try { - if (typeof getName === 'function') { - const res = await getName(found.prop_id); - name = typeof res === 'string' ? res : String(res ?? ''); - } - } catch (e) { - // ignore - } - display = `[${found.prop_id}] ${name}`.trim(); - } else { - display = cached; - } - } - // Append selected property to the last AI message - setMessages((prev) => { - const all = [...cloneDeep(prev)]; - if (all.length > 0) { - const lastIdx = all.length - 1; - if (all[lastIdx].type === 'apiMessage') { - const prefix = all[lastIdx].message && all[lastIdx].message.length > 0 ? '\n\n' : ''; - all[lastIdx].message = `${all[lastIdx].message ?? ''}${prefix}${display}`; - } - } - addChatMessage(all); - return all; - }); - const humanInput = { ok: true, data: { choice: cached } }; await handleSubmit('', parsedAction, humanInput, true); return; } } - } catch (e) { - // ignore cache errors - } + } catch (e) { /* ignored */ } + + setMessages((prev) => { + const all = [...cloneDeep(prev)]; + const content = `'${propertyValue}'에 해당하는 속성을 선택해주세요.`; + if (all.length > 0 && all[all.length - 1].type === 'apiMessage') { + const lastIdx = all.length - 1; + const prefix = all[lastIdx].message && all[lastIdx].message.length > 0 ? '\n\n' : ''; + all[lastIdx].message = `${all[lastIdx].message ?? ''}${prefix}${content}`; + } else { + all.push({ message: content, type: 'apiMessage' }); + } + addChatMessage(all); + return all; + }); - // No cache: Fetch property names and then update the last message with vertical buttons const getName = botProps.observersConfig?.fetchPropName; const elements: any[] = []; for (const item of propertyIds) { @@ -970,13 +934,12 @@ export const Bot = (botProps: BotProps & { class?: string }) => { const res = await getName(item.prop_id); name = typeof res === 'string' ? res : String(res ?? ''); } - } catch (e) { - // ignore and keep empty name - } + } catch (e) { /* ignored */ } const label = `[${item.prop_id}] ${name}`.trim(); elements.push({ type: 'choose-one-item', label, prop_field: item.prop_field, prop_id: item.prop_id }); } - // Add skip button + + // 건너뛰기 버튼 추가 elements.push({ type: 'choose-one-skip', label: '건너뛰기', prop_field: 'skip' }); setMessages((prev) => { @@ -996,57 +959,34 @@ export const Bot = (botProps: BotProps & { class?: string }) => { if (parsedAction?.action === 'search') { const data: any = parsedAction.data || {}; - const comment: string = data?.comment ?? ''; + console.log("search: ", data); - // Clear choose_one_property cache when a 'search' action is triggered + // 속성 선택 캐쉬 초기화 setChooseOnePropertyCache({}); - // Append the search comment to the current AI message (no new message) - setMessages((prev) => { - const all = [...cloneDeep(prev)]; - if (all.length > 0) { - const lastIdx = all.length - 1; - if (all[lastIdx].type === 'apiMessage') { - const prefix = all[lastIdx].message && all[lastIdx].message.length > 0 ? '\n\n' : ''; - all[lastIdx].message = `${all[lastIdx].message ?? ''}${prefix}${comment}\n\n`; - } else { - // Fallback: create a new AI message if the last one isn't apiMessage - all.push({ message: comment + "\n\n", type: 'apiMessage' }); - } - } else { - all.push({ message: comment + '\n\n', type: 'apiMessage' }); - } - addChatMessage(all); - return all; - }); - - // Indicate loading while applySearch is running setLoading(true); - // Call applySearch observer and send result back without creating a user message + // applySearch 호출 후 결과 전송 (async () => { let humanInput: any = { ok: false, error: 'applySearch not implemented' }; try { const applySearchFn = botProps.observersConfig?.applySearch; if (typeof applySearchFn === 'function') { - const res = await applySearchFn(parsedAction.data); + const res = await applySearchFn(data); if (res && typeof res === 'object' && 'ok' in res) humanInput = res; else humanInput = { ok: true }; } } catch (e: any) { humanInput = { ok: false, error: e?.message ?? 'Unknown error' }; - } finally { - // no-op here; we will set loading false after submitting the server response } await handleSubmit('', parsedAction, humanInput, true); - // Stop loading after the server response has been appended + setLoading(false); })(); return; } - // Default behavior: attach action to the last AI message setMessages((data) => { const updated = data.map((item, i) => { if (i === data.length - 1) { @@ -1657,27 +1597,22 @@ export const Bot = (botProps: BotProps & { class?: string }) => { return; } - // Custom action: choose_one_property if (action && (action as any).action === 'choose_one_property') { - // Cache the user's selection within the session try { const key = (action as any)?.data?.property_value ?? ''; if (key) { const choice = elem?.prop_field ?? 'skip'; setChooseOnePropertyCache((prev) => ({ ...prev, [key]: choice })); } - } catch (e) { - // ignore cache errors - } + } catch (e) { /* ignore */ } - // Append the selected property label (or skip) to the current AI message setMessages((prev) => { const all = [...cloneDeep(prev)]; if (all.length > 0) { const lastIdx = all.length - 1; if (all[lastIdx].type === 'apiMessage') { const prefix = all[lastIdx].message && all[lastIdx].message.length > 0 ? '\n\n' : ''; - all[lastIdx].message = `${all[lastIdx].message ?? ''}${prefix}${elem?.label ?? '건너뛰기'} ✔️`; + all[lastIdx].message = `${all[lastIdx].message ?? ''}${prefix}${elem?.label ?? '건너뛰기'} ✔️\n\n`; } } addChatMessage(all); @@ -1685,18 +1620,15 @@ export const Bot = (botProps: BotProps & { class?: string }) => { }); const humanInput = { ok: true, data: { choice: elem?.prop_field ?? null } }; - // Do not create a user message; auto-submit with the selected choice - handleSubmit('', action, humanInput, true); + await handleSubmit('', action, humanInput, true); return; } - // Default behavior - handleSubmit(elem.label, action); + await handleSubmit(elem.label, action); }; const clearChat = () => { try { - // Clear session caches setChooseOnePropertyCache({}); removeLocalStorageChatHistory(props.chatflowid); setChatId( @@ -2448,14 +2380,16 @@ export const Bot = (botProps: BotProps & { class?: string }) => { showAvatar={props.botMessage?.showAvatar} avatarLoadingSrc={props.botMessage?.avatarLoadingSrc} avatarSrc={props.botMessage?.avatarSrc} + isAppending={message.message.trim() !== ''} /> )} - {message.type === 'apiMessage' && message.message.trim() === '' && loading() && index() === messages().length - 1 && ( + {message.type === 'apiMessage' && loading() && index() === messages().length - 1 && ( )} diff --git a/src/components/bubbles/LoadingBubble.tsx b/src/components/bubbles/LoadingBubble.tsx index 7728639e0..c0b89c0e5 100644 --- a/src/components/bubbles/LoadingBubble.tsx +++ b/src/components/bubbles/LoadingBubble.tsx @@ -1,6 +1,7 @@ import { TypingBubble } from '@/components'; import { For, Show, createSignal, onCleanup, onMount } from 'solid-js'; import { Avatar } from '../avatars/Avatar'; +import { isMobile } from '@/utils/isMobileSignal'; export type CalledTool = { name?: string } | string; @@ -9,6 +10,7 @@ type LoadingBubbleProps = { showAvatar?: boolean; avatarLoadingSrc?: string; avatarSrc?: string; + isAppending?: boolean; }; const LoadingDots = () => { @@ -26,7 +28,9 @@ const LoadingDots = () => { export const LoadingBubble = (props: LoadingBubbleProps) => (
- + 0} fallback={}> diff --git a/src/features/bubble/components/Bubble.tsx b/src/features/bubble/components/Bubble.tsx index d82b05c70..47101a59f 100644 --- a/src/features/bubble/components/Bubble.tsx +++ b/src/features/bubble/components/Bubble.tsx @@ -157,6 +157,8 @@ export const Bubble = (props: BubbleProps) => { dateTimeToggle={bubbleProps.theme?.chatWindow?.dateTimeToggle} renderHTML={props.theme?.chatWindow?.renderHTML} closeBot={closeBot} + gptModels={props.theme?.chatWindow?.gptModels} + mdmModules={props.theme?.chatWindow?.mdmModules} />
From f6ccdf2e2aa5b824b93a179e78b0a68f274e66ba Mon Sep 17 00:00:00 2001 From: lesliejjytbw Date: Wed, 22 Oct 2025 15:44:25 +0900 Subject: [PATCH 36/44] Remove redundant console.log statements from Bot component - Cleaned up debug logs from `choose_one_property` and `search` actions for better code maintainability. --- src/components/Bot.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/components/Bot.tsx b/src/components/Bot.tsx index a7e689139..94c5df3fd 100644 --- a/src/components/Bot.tsx +++ b/src/components/Bot.tsx @@ -897,8 +897,6 @@ export const Bot = (botProps: BotProps & { class?: string }) => { const propertyValue: string = data?.property_value ?? ''; const propertyIds: Array<{ prop_id: string; prop_field: string }> = data?.property_ids ?? []; - console.log("choose_one_property: ", propertyValue, propertyIds); - (async () => { try { if (propertyValue) { @@ -959,7 +957,6 @@ export const Bot = (botProps: BotProps & { class?: string }) => { if (parsedAction?.action === 'search') { const data: any = parsedAction.data || {}; - console.log("search: ", data); // 속성 선택 캐쉬 초기화 setChooseOnePropertyCache({}); From c58ba8d1ab53c6957f77806450ac1ef279952cca Mon Sep 17 00:00:00 2001 From: lesliejjytbw Date: Wed, 22 Oct 2025 16:58:23 +0900 Subject: [PATCH 37/44] Improve Backspace handling in ShortTextInput component - Ensured focus is maintained for Backspace key events. - Added event listeners to stop propagation for Backspace and deleteContentBackward actions during capture phase. - Refactored ref assignment to handle user-provided refs and cleanup listeners effectively. --- .../textInput/components/ShortTextInput.tsx | 46 +++++++++++++++++-- 1 file changed, 43 insertions(+), 3 deletions(-) diff --git a/src/components/inputs/textInput/components/ShortTextInput.tsx b/src/components/inputs/textInput/components/ShortTextInput.tsx index bf30e6705..bfdc4f5a7 100644 --- a/src/components/inputs/textInput/components/ShortTextInput.tsx +++ b/src/components/inputs/textInput/components/ShortTextInput.tsx @@ -38,15 +38,55 @@ export const ShortTextInput = (props: ShortTextInputProps) => { handleInput(e); } - // 백스페이스 키 이벤트가 차단되지 않도록 보장 + // 백스페이스 처리(버블 단계) if (e.key === 'Backspace') { - e.stopImmediatePropagation(); + if (!e.currentTarget.matches(':focus')) { + // 포커스 보장 + e.currentTarget.focus(); + } + if (typeof e.stopPropagation === 'function') e.stopPropagation(); + if (typeof e.stopImmediatePropagation === 'function') e.stopImmediatePropagation(); } }; return (