gpthouse-embed 3.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. package/.env.example +34 -0
  2. package/.eslintrc.cjs +14 -0
  3. package/.husky/pre-commit +18 -0
  4. package/.prettierignore +3 -0
  5. package/.prettierrc +8 -0
  6. package/README.md +357 -0
  7. package/base.json +21 -0
  8. package/dist/components/Badge.d.ts +10 -0
  9. package/dist/components/Badge.d.ts.map +1 -0
  10. package/dist/components/Bot.d.ts +134 -0
  11. package/dist/components/Bot.d.ts.map +1 -0
  12. package/dist/components/FeedbackContentDialog.d.ts +10 -0
  13. package/dist/components/FeedbackContentDialog.d.ts.map +1 -0
  14. package/dist/components/ImageUploadButton.d.ts +11 -0
  15. package/dist/components/ImageUploadButton.d.ts.map +1 -0
  16. package/dist/components/RecordAudioButton.d.ts +11 -0
  17. package/dist/components/RecordAudioButton.d.ts.map +1 -0
  18. package/dist/components/RichTreeView.d.ts +24 -0
  19. package/dist/components/RichTreeView.d.ts.map +1 -0
  20. package/dist/components/SendButton.d.ts +12 -0
  21. package/dist/components/SendButton.d.ts.map +1 -0
  22. package/dist/components/TreeViewDemo.d.ts +6 -0
  23. package/dist/components/TreeViewDemo.d.ts.map +1 -0
  24. package/dist/components/TypingBubble.d.ts +2 -0
  25. package/dist/components/TypingBubble.d.ts.map +1 -0
  26. package/dist/components/avatars/Avatar.d.ts +4 -0
  27. package/dist/components/avatars/Avatar.d.ts.map +1 -0
  28. package/dist/components/avatars/DefaultAvatar.d.ts +2 -0
  29. package/dist/components/avatars/DefaultAvatar.d.ts.map +1 -0
  30. package/dist/components/bubbles/AgentReasoningBubble.d.ts +16 -0
  31. package/dist/components/bubbles/AgentReasoningBubble.d.ts.map +1 -0
  32. package/dist/components/bubbles/BotBubble.d.ts +32 -0
  33. package/dist/components/bubbles/BotBubble.d.ts.map +1 -0
  34. package/dist/components/bubbles/FollowUpPromptBubble.d.ts +8 -0
  35. package/dist/components/bubbles/FollowUpPromptBubble.d.ts.map +1 -0
  36. package/dist/components/bubbles/GuestBubble.d.ts +16 -0
  37. package/dist/components/bubbles/GuestBubble.d.ts.map +1 -0
  38. package/dist/components/bubbles/LeadCaptureBubble.d.ts +20 -0
  39. package/dist/components/bubbles/LeadCaptureBubble.d.ts.map +1 -0
  40. package/dist/components/bubbles/LoadingBubble.d.ts +2 -0
  41. package/dist/components/bubbles/LoadingBubble.d.ts.map +1 -0
  42. package/dist/components/bubbles/SourceBubble.d.ts +8 -0
  43. package/dist/components/bubbles/SourceBubble.d.ts.map +1 -0
  44. package/dist/components/bubbles/StarterPromptBubble.d.ts +8 -0
  45. package/dist/components/bubbles/StarterPromptBubble.d.ts.map +1 -0
  46. package/dist/components/buttons/AttachmentUploadButton.d.ts +11 -0
  47. package/dist/components/buttons/AttachmentUploadButton.d.ts.map +1 -0
  48. package/dist/components/buttons/CancelButton.d.ts +10 -0
  49. package/dist/components/buttons/CancelButton.d.ts.map +1 -0
  50. package/dist/components/buttons/FeedbackButtons.d.ts +13 -0
  51. package/dist/components/buttons/FeedbackButtons.d.ts.map +1 -0
  52. package/dist/components/buttons/ImageUploadButton.d.ts +11 -0
  53. package/dist/components/buttons/ImageUploadButton.d.ts.map +1 -0
  54. package/dist/components/buttons/LeadCaptureButtons.d.ts +11 -0
  55. package/dist/components/buttons/LeadCaptureButtons.d.ts.map +1 -0
  56. package/dist/components/buttons/RecordAudioButton.d.ts +11 -0
  57. package/dist/components/buttons/RecordAudioButton.d.ts.map +1 -0
  58. package/dist/components/buttons/SendButton.d.ts +12 -0
  59. package/dist/components/buttons/SendButton.d.ts.map +1 -0
  60. package/dist/components/buttons/TTSButton.d.ts +10 -0
  61. package/dist/components/buttons/TTSButton.d.ts.map +1 -0
  62. package/dist/components/examples/TreeViewExample.d.ts +2 -0
  63. package/dist/components/examples/TreeViewExample.d.ts.map +1 -0
  64. package/dist/components/examples/index.d.ts +6 -0
  65. package/dist/components/examples/index.d.ts.map +1 -0
  66. package/dist/components/icons/AddImageIcon.d.ts +3 -0
  67. package/dist/components/icons/AddImageIcon.d.ts.map +1 -0
  68. package/dist/components/icons/AttachmentIcon.d.ts +3 -0
  69. package/dist/components/icons/AttachmentIcon.d.ts.map +1 -0
  70. package/dist/components/icons/CircleDotIcon.d.ts +3 -0
  71. package/dist/components/icons/CircleDotIcon.d.ts.map +1 -0
  72. package/dist/components/icons/ClipboardIcon.d.ts +3 -0
  73. package/dist/components/icons/ClipboardIcon.d.ts.map +1 -0
  74. package/dist/components/icons/DeleteIcon.d.ts +3 -0
  75. package/dist/components/icons/DeleteIcon.d.ts.map +1 -0
  76. package/dist/components/icons/RecordIcon.d.ts +3 -0
  77. package/dist/components/icons/RecordIcon.d.ts.map +1 -0
  78. package/dist/components/icons/SendIcon.d.ts +3 -0
  79. package/dist/components/icons/SendIcon.d.ts.map +1 -0
  80. package/dist/components/icons/SparklesIcon.d.ts +3 -0
  81. package/dist/components/icons/SparklesIcon.d.ts.map +1 -0
  82. package/dist/components/icons/SquareStopIcon.d.ts +3 -0
  83. package/dist/components/icons/SquareStopIcon.d.ts.map +1 -0
  84. package/dist/components/icons/ThumbsDownIcon.d.ts +3 -0
  85. package/dist/components/icons/ThumbsDownIcon.d.ts.map +1 -0
  86. package/dist/components/icons/ThumbsUpIcon.d.ts +3 -0
  87. package/dist/components/icons/ThumbsUpIcon.d.ts.map +1 -0
  88. package/dist/components/icons/TickIcon.d.ts +2 -0
  89. package/dist/components/icons/TickIcon.d.ts.map +1 -0
  90. package/dist/components/icons/TrashIcon.d.ts +3 -0
  91. package/dist/components/icons/TrashIcon.d.ts.map +1 -0
  92. package/dist/components/icons/VolumeIcon.d.ts +3 -0
  93. package/dist/components/icons/VolumeIcon.d.ts.map +1 -0
  94. package/dist/components/icons/XIcon.d.ts +5 -0
  95. package/dist/components/icons/XIcon.d.ts.map +1 -0
  96. package/dist/components/icons/index.d.ts +16 -0
  97. package/dist/components/icons/index.d.ts.map +1 -0
  98. package/dist/components/index.d.ts +3 -0
  99. package/dist/components/index.d.ts.map +1 -0
  100. package/dist/components/inputs/textInput/components/FilePreview.d.ts +12 -0
  101. package/dist/components/inputs/textInput/components/FilePreview.d.ts.map +1 -0
  102. package/dist/components/inputs/textInput/components/ShortTextInput.d.ts +10 -0
  103. package/dist/components/inputs/textInput/components/ShortTextInput.d.ts.map +1 -0
  104. package/dist/components/inputs/textInput/components/TextInput.d.ts +29 -0
  105. package/dist/components/inputs/textInput/components/TextInput.d.ts.map +1 -0
  106. package/dist/components/inputs/textInput/index.d.ts +3 -0
  107. package/dist/components/inputs/textInput/index.d.ts.map +1 -0
  108. package/dist/components/treeview/DataTransformer.d.ts +7 -0
  109. package/dist/components/treeview/DataTransformer.d.ts.map +1 -0
  110. package/dist/components/treeview/RichTreeView.d.ts +24 -0
  111. package/dist/components/treeview/RichTreeView.d.ts.map +1 -0
  112. package/dist/components/treeview/TreeView.d.ts +22 -0
  113. package/dist/components/treeview/TreeView.d.ts.map +1 -0
  114. package/dist/components/treeview/WorkflowTreeView.d.ts +20 -0
  115. package/dist/components/treeview/WorkflowTreeView.d.ts.map +1 -0
  116. package/dist/constants.d.ts +3 -0
  117. package/dist/constants.d.ts.map +1 -0
  118. package/dist/features/bubble/components/Bubble.d.ts +5 -0
  119. package/dist/features/bubble/components/Bubble.d.ts.map +1 -0
  120. package/dist/features/bubble/components/BubbleButton.d.ts +16 -0
  121. package/dist/features/bubble/components/BubbleButton.d.ts.map +1 -0
  122. package/dist/features/bubble/components/Tooltip.d.ts +15 -0
  123. package/dist/features/bubble/components/Tooltip.d.ts.map +1 -0
  124. package/dist/features/bubble/components/index.d.ts +2 -0
  125. package/dist/features/bubble/components/index.d.ts.map +1 -0
  126. package/dist/features/bubble/index.d.ts +2 -0
  127. package/dist/features/bubble/index.d.ts.map +1 -0
  128. package/dist/features/bubble/types.d.ts +116 -0
  129. package/dist/features/bubble/types.d.ts.map +1 -0
  130. package/dist/features/full/components/Full.d.ts +7 -0
  131. package/dist/features/full/components/Full.d.ts.map +1 -0
  132. package/dist/features/full/components/index.d.ts +2 -0
  133. package/dist/features/full/components/index.d.ts.map +1 -0
  134. package/dist/features/full/index.d.ts +2 -0
  135. package/dist/features/full/index.d.ts.map +1 -0
  136. package/dist/features/popup/components/DisclaimerPopup.d.ts +18 -0
  137. package/dist/features/popup/components/DisclaimerPopup.d.ts.map +1 -0
  138. package/dist/features/popup/components/Popup.d.ts +8 -0
  139. package/dist/features/popup/components/Popup.d.ts.map +1 -0
  140. package/dist/features/popup/components/index.d.ts +3 -0
  141. package/dist/features/popup/components/index.d.ts.map +1 -0
  142. package/dist/features/popup/index.d.ts +2 -0
  143. package/dist/features/popup/index.d.ts.map +1 -0
  144. package/dist/features/popup/types.d.ts +8 -0
  145. package/dist/features/popup/types.d.ts.map +1 -0
  146. package/dist/index.d.ts +3 -0
  147. package/dist/index.d.ts.map +1 -0
  148. package/dist/queries/sendMessageQuery.d.ts +110 -0
  149. package/dist/queries/sendMessageQuery.d.ts.map +1 -0
  150. package/dist/register.d.ts +2 -0
  151. package/dist/register.d.ts.map +1 -0
  152. package/dist/types.d.ts +1 -0
  153. package/dist/types.d.ts.map +1 -0
  154. package/dist/utils/audioRecording.d.ts +21 -0
  155. package/dist/utils/audioRecording.d.ts.map +1 -0
  156. package/dist/utils/chatInputHistory.d.ts +22 -0
  157. package/dist/utils/chatInputHistory.d.ts.map +1 -0
  158. package/dist/utils/index.d.ts +24 -0
  159. package/dist/utils/index.d.ts.map +1 -0
  160. package/dist/utils/isMobileSignal.d.ts +2 -0
  161. package/dist/utils/isMobileSignal.d.ts.map +1 -0
  162. package/dist/web.d.ts +23 -0
  163. package/dist/web.d.ts.map +1 -0
  164. package/dist/web.js +1 -0
  165. package/dist/web.umd.js +1 -0
  166. package/dist/window.d.ts +30 -0
  167. package/dist/window.d.ts.map +1 -0
  168. package/images/ChatEmbed.gif +0 -0
  169. package/images/proxyserver.png +0 -0
  170. package/package.json +74 -0
  171. package/public/index.html +37 -0
  172. package/server.js +394 -0
@@ -0,0 +1 @@
1
+ {"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"}
@@ -0,0 +1,29 @@
1
+ import { Setter } from 'solid-js';
2
+ import { FileEvent, UploadsConfig } from '@/components/Bot';
3
+ type TextInputProps = {
4
+ placeholder?: string;
5
+ backgroundColor?: string;
6
+ textColor?: string;
7
+ sendButtonColor?: string;
8
+ inputValue: string;
9
+ fontSize?: number;
10
+ disabled?: boolean;
11
+ onSubmit: (value: string) => void;
12
+ onInputChange: (value: string) => void;
13
+ uploadsConfig?: Partial<UploadsConfig>;
14
+ isFullFileUpload?: boolean;
15
+ setPreviews: Setter<unknown[]>;
16
+ onMicrophoneClicked: () => void;
17
+ handleFileChange: (event: FileEvent<HTMLInputElement>) => void;
18
+ maxChars?: number;
19
+ maxCharsWarningMessage?: string;
20
+ autoFocus?: boolean;
21
+ sendMessageSound?: boolean;
22
+ sendSoundLocation?: string;
23
+ fullFileUploadAllowedTypes?: string;
24
+ enableInputHistory?: boolean;
25
+ maxHistorySize?: number;
26
+ };
27
+ export declare const TextInput: (props: TextInputProps) => import("solid-js").JSX.Element;
28
+ export {};
29
+ //# sourceMappingURL=TextInput.d.ts.map
@@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W,cAAc,mCAkM9C,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { TextInput } from './components/TextInput';
2
+ export { FilePreview } from './components/FilePreview';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"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"}
@@ -0,0 +1,7 @@
1
+ type DataTransformerProps = {
2
+ jsonData: string;
3
+ class?: string;
4
+ };
5
+ export declare const DataTransformer: (props: DataTransformerProps) => import("solid-js").JSX.Element;
6
+ export {};
7
+ //# sourceMappingURL=DataTransformer.d.ts.map
@@ -0,0 +1 @@
1
+ {"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"}
@@ -0,0 +1,24 @@
1
+ import { JSXElement } from 'solid-js';
2
+ import './TreeView.css';
3
+ type RichTreeViewProps = {
4
+ children: JSXElement;
5
+ defaultExpanded?: string[];
6
+ onNodeSelect?: (itemId: string) => void;
7
+ highlightItems?: string[];
8
+ multiSelect?: boolean;
9
+ class?: string;
10
+ indentationLevel?: number;
11
+ };
12
+ export declare const RichTreeView: (props: RichTreeViewProps) => import("solid-js").JSX.Element;
13
+ type TreeItemProps = {
14
+ itemId: string;
15
+ label: string | JSXElement;
16
+ children?: JSXElement;
17
+ icon?: JSXElement;
18
+ expandedIcon?: JSXElement;
19
+ endIcon?: JSXElement;
20
+ isLeaf?: boolean;
21
+ };
22
+ export declare const TreeItem: (props: TreeItemProps) => import("solid-js").JSX.Element;
23
+ export {};
24
+ //# sourceMappingURL=RichTreeView.d.ts.map
@@ -0,0 +1 @@
1
+ {"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"}
@@ -0,0 +1,22 @@
1
+ import { JSXElement } from 'solid-js';
2
+ type TreeViewProps = {
3
+ children: JSXElement;
4
+ defaultExpanded?: string[];
5
+ class?: string;
6
+ };
7
+ export declare const TreeView: (props: TreeViewProps) => import("solid-js").JSX.Element;
8
+ type TreeItemProps = {
9
+ itemId: string;
10
+ label: string | JSXElement;
11
+ children?: JSXElement;
12
+ icon?: JSXElement;
13
+ endIcon?: JSXElement;
14
+ };
15
+ export declare const TreeItem: (props: TreeItemProps) => import("solid-js").JSX.Element;
16
+ type RichTreeViewProps = TreeViewProps & {
17
+ highlightItems?: string[];
18
+ onNodeSelect?: (itemId: string) => void;
19
+ };
20
+ export declare const RichTreeView: (props: RichTreeViewProps) => import("solid-js").JSX.Element;
21
+ export {};
22
+ //# sourceMappingURL=TreeView.d.ts.map
@@ -0,0 +1 @@
1
+ {"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"}
@@ -0,0 +1,20 @@
1
+ export type WorkflowNode = {
2
+ nodeId: string;
3
+ nodeLabel: string;
4
+ data: any;
5
+ previousNodeIds: string[];
6
+ status: 'FINISHED' | 'PENDING' | 'RUNNING' | 'ERROR' | 'INPROGRESS' | 'STOPPED';
7
+ };
8
+ type WorkflowTreeViewProps = {
9
+ workflowData: WorkflowNode[];
10
+ class?: string;
11
+ indentationLevel?: number;
12
+ initiallyExpanded?: boolean;
13
+ title?: string;
14
+ backgroundColor?: string;
15
+ textColor?: string;
16
+ fontSize?: number;
17
+ };
18
+ export declare const WorkflowTreeView: (props: WorkflowTreeViewProps) => import("solid-js").JSX.Element;
19
+ export {};
20
+ //# sourceMappingURL=WorkflowTreeView.d.ts.map
@@ -0,0 +1 @@
1
+ {"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"}
@@ -0,0 +1,3 @@
1
+ import type { BubbleProps } from './features/bubble';
2
+ export declare const defaultBotProps: BubbleProps;
3
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"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"}
@@ -0,0 +1,5 @@
1
+ import { BubbleParams } from '../types';
2
+ import { BotProps } from '../../../components/Bot';
3
+ export type BubbleProps = BotProps & BubbleParams;
4
+ export declare const Bubble: (props: BubbleProps) => import("solid-js").JSX.Element;
5
+ //# sourceMappingURL=Bubble.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Bubble.d.ts","sourceRoot":"","sources":["../../../../src/features/bubble/components/Bubble.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAO,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAOxD,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,YAAY,CAAC;AAElD,eAAO,MAAM,MAAM,UAAW,WAAW,mCAwJxC,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { ButtonTheme } from '../types';
2
+ type Props = ButtonTheme & {
3
+ isBotOpened: boolean;
4
+ toggleBot: () => void;
5
+ setButtonPosition: (position: {
6
+ bottom: number;
7
+ right: number;
8
+ }) => void;
9
+ dragAndDrop: boolean;
10
+ autoOpen?: boolean;
11
+ openDelay?: number;
12
+ autoOpenOnMobile?: boolean;
13
+ };
14
+ export declare const BubbleButton: (props: Props) => import("solid-js").JSX.Element;
15
+ export {};
16
+ //# sourceMappingURL=BubbleButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"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"}
@@ -0,0 +1,15 @@
1
+ type TooltipProps = {
2
+ showTooltip: boolean;
3
+ position: {
4
+ bottom: number;
5
+ right: number;
6
+ };
7
+ buttonSize: number;
8
+ tooltipMessage?: string;
9
+ tooltipBackgroundColor?: string;
10
+ tooltipTextColor?: string;
11
+ tooltipFontSize?: number;
12
+ };
13
+ declare const Tooltip: (props: TooltipProps) => import("solid-js").JSX.Element;
14
+ export default Tooltip;
15
+ //# sourceMappingURL=Tooltip.d.ts.map
@@ -0,0 +1 @@
1
+ {"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"}
@@ -0,0 +1,2 @@
1
+ export * from './Bubble';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/bubble/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/bubble/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -0,0 +1,116 @@
1
+ export type BubbleParams = {
2
+ theme?: BubbleTheme;
3
+ };
4
+ export type BubbleTheme = {
5
+ chatWindow?: ChatWindowTheme;
6
+ button?: ButtonTheme;
7
+ tooltip?: ToolTipTheme;
8
+ disclaimer?: DisclaimerPopUpTheme;
9
+ customCSS?: string;
10
+ form?: FormTheme;
11
+ };
12
+ export type FormTheme = {
13
+ backgroundColor?: string;
14
+ textColor?: string;
15
+ };
16
+ export type TextInputTheme = {
17
+ backgroundColor?: string;
18
+ textColor?: string;
19
+ placeholder?: string;
20
+ sendButtonColor?: string;
21
+ maxChars?: number;
22
+ maxCharsWarningMessage?: string;
23
+ autoFocus?: boolean;
24
+ sendMessageSound?: boolean;
25
+ sendSoundLocation?: string;
26
+ receiveMessageSound?: boolean;
27
+ receiveSoundLocation?: string;
28
+ };
29
+ export type UserMessageTheme = {
30
+ backgroundColor?: string;
31
+ textColor?: string;
32
+ showAvatar?: boolean;
33
+ avatarSrc?: string;
34
+ };
35
+ export type BotMessageTheme = {
36
+ backgroundColor?: string;
37
+ textColor?: string;
38
+ showAvatar?: boolean;
39
+ avatarSrc?: string;
40
+ };
41
+ export type FooterTheme = {
42
+ showFooter?: boolean;
43
+ textColor?: string;
44
+ text?: string;
45
+ company?: string;
46
+ companyLink?: string;
47
+ };
48
+ export type FeedbackTheme = {
49
+ color?: string;
50
+ };
51
+ export type ChatWindowTheme = {
52
+ showTitle?: boolean;
53
+ showAgentMessages?: boolean;
54
+ title?: string;
55
+ titleAvatarSrc?: string;
56
+ titleTextColor?: string;
57
+ titleBackgroundColor?: string;
58
+ welcomeMessage?: string;
59
+ errorMessage?: string;
60
+ backgroundColor?: string;
61
+ backgroundImage?: string;
62
+ height?: number;
63
+ width?: number;
64
+ fontSize?: number;
65
+ userMessage?: UserMessageTheme;
66
+ botMessage?: BotMessageTheme;
67
+ textInput?: TextInputTheme;
68
+ feedback?: FeedbackTheme;
69
+ footer?: FooterTheme;
70
+ sourceDocsTitle?: string;
71
+ poweredByTextColor?: string;
72
+ starterPrompts?: string[];
73
+ starterPromptFontSize?: number;
74
+ clearChatOnReload?: boolean;
75
+ dateTimeToggle?: DateTimeToggleTheme;
76
+ renderHTML?: boolean;
77
+ };
78
+ export type ButtonTheme = {
79
+ size?: 'small' | 'medium' | 'large' | number;
80
+ backgroundColor?: string;
81
+ iconColor?: string;
82
+ customIconSrc?: string;
83
+ bottom?: number;
84
+ right?: number;
85
+ dragAndDrop?: boolean;
86
+ autoWindowOpen?: autoWindowOpenTheme;
87
+ };
88
+ export type ToolTipTheme = {
89
+ showTooltip?: boolean;
90
+ tooltipMessage?: string;
91
+ tooltipBackgroundColor?: string;
92
+ tooltipTextColor?: string;
93
+ tooltipFontSize?: number;
94
+ };
95
+ export type autoWindowOpenTheme = {
96
+ autoOpen?: boolean;
97
+ openDelay?: number;
98
+ autoOpenOnMobile?: boolean;
99
+ };
100
+ export type DisclaimerPopUpTheme = {
101
+ title?: string;
102
+ message?: string;
103
+ textColor?: string;
104
+ buttonColor?: string;
105
+ buttonTextColor?: string;
106
+ buttonText?: string;
107
+ blurredBackgroundColor?: string;
108
+ backgroundColor?: string;
109
+ denyButtonBgColor?: string;
110
+ denyButtonText?: string;
111
+ };
112
+ export type DateTimeToggleTheme = {
113
+ date?: boolean;
114
+ time?: boolean;
115
+ };
116
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/features/bubble/types.ts"],"names":[],"mappings":"AAA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Ac,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"}
@@ -0,0 +1,7 @@
1
+ import { BotProps } from '@/components/Bot';
2
+ import { BubbleParams } from '@/features/bubble/types';
3
+ export type FullProps = BotProps & BubbleParams;
4
+ export declare const Full: (props: FullProps, { element }: {
5
+ element: HTMLElement;
6
+ }) => import("solid-js").JSX.Element;
7
+ //# sourceMappingURL=Full.d.ts.map
@@ -0,0 +1 @@
1
+ {"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"}
@@ -0,0 +1,2 @@
1
+ export * from './Full';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/full/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/full/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -0,0 +1,18 @@
1
+ export type DisclaimerPopupProps = {
2
+ isOpen?: boolean;
3
+ isFullPage?: boolean;
4
+ onAccept?: () => void;
5
+ onDeny?: () => void;
6
+ title?: string;
7
+ message?: string;
8
+ buttonText?: string;
9
+ denyButtonText?: string;
10
+ blurredBackgroundColor?: string;
11
+ backgroundColor?: string;
12
+ buttonColor?: string;
13
+ textColor?: string;
14
+ buttonTextColor?: string;
15
+ denyButtonBgColor?: string;
16
+ };
17
+ export declare const DisclaimerPopup: (props: DisclaimerPopupProps) => import("solid-js").JSX.Element;
18
+ //# sourceMappingURL=DisclaimerPopup.d.ts.map
@@ -0,0 +1 @@
1
+ {"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"}
@@ -0,0 +1,8 @@
1
+ export type PopupProps = {
2
+ value?: any;
3
+ isOpen?: boolean;
4
+ onOpen?: () => void;
5
+ onClose?: () => void;
6
+ };
7
+ export declare const Popup: (props: PopupProps) => import("solid-js").JSX.Element;
8
+ //# sourceMappingURL=Popup.d.ts.map
@@ -0,0 +1 @@
1
+ {"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"}
@@ -0,0 +1,3 @@
1
+ export * from './Popup';
2
+ export * from './DisclaimerPopup';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/popup/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/popup/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -0,0 +1,8 @@
1
+ export type PopupParams = {
2
+ autoShowDelay?: number;
3
+ theme?: {
4
+ width?: string;
5
+ backgroundColor?: string;
6
+ };
7
+ };
8
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"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"}
@@ -0,0 +1,3 @@
1
+ export type { BotProps } from './components/Bot';
2
+ export type { BubbleProps } from './features/bubble/components/Bubble';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"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"}
@@ -0,0 +1,110 @@
1
+ import { FileUpload, IAction } from '@/components/Bot';
2
+ export type IncomingInput = {
3
+ question?: string;
4
+ form?: Record<string, unknown>;
5
+ uploads?: FileUpload[];
6
+ overrideConfig?: Record<string, unknown>;
7
+ socketIOClientId?: string;
8
+ chatId?: string;
9
+ fileName?: string;
10
+ leadEmail?: string;
11
+ action?: IAction;
12
+ humanInput?: Record<string, unknown>;
13
+ };
14
+ type BaseRequest = {
15
+ apiHost?: string;
16
+ onRequest?: (request: RequestInit) => Promise<void>;
17
+ };
18
+ export type MessageRequest = BaseRequest & {
19
+ chatflowid?: string;
20
+ body?: IncomingInput;
21
+ };
22
+ export type FeedbackRatingType = 'THUMBS_UP' | 'THUMBS_DOWN';
23
+ export type FeedbackInput = {
24
+ chatId: string;
25
+ messageId: string;
26
+ rating: FeedbackRatingType;
27
+ content?: string;
28
+ };
29
+ export type CreateFeedbackRequest = BaseRequest & {
30
+ chatflowid?: string;
31
+ body?: FeedbackInput;
32
+ };
33
+ export type UpdateFeedbackRequest = BaseRequest & {
34
+ id: string;
35
+ body?: Partial<FeedbackInput>;
36
+ };
37
+ export type UpsertRequest = BaseRequest & {
38
+ chatflowid: string;
39
+ apiHost?: string;
40
+ formData: FormData;
41
+ };
42
+ export type LeadCaptureInput = {
43
+ chatflowid: string;
44
+ chatId: string;
45
+ name?: string;
46
+ email?: string;
47
+ phone?: string;
48
+ };
49
+ export type LeadCaptureRequest = BaseRequest & {
50
+ body: Partial<LeadCaptureInput>;
51
+ };
52
+ export type GenerateTTSRequest = BaseRequest & {
53
+ body: {
54
+ chatId: string;
55
+ chatflowId: string;
56
+ chatMessageId: string;
57
+ text: string;
58
+ };
59
+ signal?: AbortSignal;
60
+ };
61
+ export type AbortTTSRequest = BaseRequest & {
62
+ body: {
63
+ chatflowId: string;
64
+ chatId: string;
65
+ chatMessageId: string;
66
+ };
67
+ };
68
+ export declare const sendFeedbackQuery: ({ chatflowid, apiHost, body, onRequest }: CreateFeedbackRequest) => Promise<{
69
+ data?: unknown;
70
+ error?: Error | undefined;
71
+ }>;
72
+ export declare const updateFeedbackQuery: ({ id, apiHost, body, onRequest }: UpdateFeedbackRequest) => Promise<{
73
+ data?: unknown;
74
+ error?: Error | undefined;
75
+ }>;
76
+ export declare const sendMessageQuery: ({ chatflowid, apiHost, body, onRequest }: MessageRequest) => Promise<{
77
+ data?: any;
78
+ error?: Error | undefined;
79
+ }>;
80
+ export declare const createAttachmentWithFormData: ({ chatflowid, apiHost, formData, onRequest }: UpsertRequest) => Promise<{
81
+ data?: unknown;
82
+ error?: Error | undefined;
83
+ }>;
84
+ export declare const upsertVectorStoreWithFormData: ({ chatflowid, apiHost, formData, onRequest }: UpsertRequest) => Promise<{
85
+ data?: unknown;
86
+ error?: Error | undefined;
87
+ }>;
88
+ export declare const getChatbotConfig: ({ chatflowid, apiHost, onRequest }: MessageRequest) => Promise<{
89
+ data?: any;
90
+ error?: Error | undefined;
91
+ }>;
92
+ export declare const isStreamAvailableQuery: ({ chatflowid, apiHost, onRequest }: MessageRequest) => Promise<{
93
+ data?: any;
94
+ error?: Error | undefined;
95
+ }>;
96
+ export declare const sendFileDownloadQuery: ({ apiHost, body, onRequest }: MessageRequest) => Promise<{
97
+ data?: any;
98
+ error?: Error | undefined;
99
+ }>;
100
+ export declare const addLeadQuery: ({ apiHost, body, onRequest }: LeadCaptureRequest) => Promise<{
101
+ data?: any;
102
+ error?: Error | undefined;
103
+ }>;
104
+ export declare const generateTTSQuery: ({ apiHost, body, onRequest, signal }: GenerateTTSRequest) => Promise<Response>;
105
+ export declare const abortTTSQuery: ({ apiHost, body, onRequest }: AbortTTSRequest) => Promise<{
106
+ data?: any;
107
+ error?: Error | undefined;
108
+ }>;
109
+ export {};
110
+ //# source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BAAqB;;;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;AAEL,eAAO,MAAM,gBAAgB,yCAA0E,kBAAkB,KAAG,QAAQ,QAAQ,CAkB3I,CAAC;AAEF,eAAO,MAAM,aAAa,iCAA4D,eAAe;;;EAMjG,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const registerWebComponents: () => void;
2
+ //# sourceMappingURL=register.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../src/register.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,qBAAqB,YAKjC,CAAC"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,21 @@
1
+ export declare function getElaspedTime(): string;
2
+ /** Starts the audio recording*/
3
+ export declare function startAudioRecording(onRecordingStart: (value: boolean) => void, onUnsupportedBrowser: (value: boolean) => void, setElapsedTime: (value: string) => void): void;
4
+ /** Stop the currently started audio recording & sends it
5
+ */
6
+ export declare function stopAudioRecording(addRecordingToPreviews: null | ((blob: Blob) => void)): void;
7
+ /** Cancel the currently started audio recording */
8
+ export declare function cancelAudioRecording(): void;
9
+ type AudioRecorder = {
10
+ audioBlobs: Blob[];
11
+ mediaRecorder: MediaRecorder | null;
12
+ streamBeingCaptured: MediaStream | null;
13
+ start: () => Promise<void>;
14
+ stop: () => Promise<unknown>;
15
+ cancel: () => void;
16
+ stopStream: () => void;
17
+ resetRecordingProperties: () => void;
18
+ };
19
+ export declare const audioRecorder: AudioRecorder;
20
+ export {};
21
+ //# sourceMappingURL=audioRecording.d.ts.map
@@ -0,0 +1 @@
1
+ {"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"}
@@ -0,0 +1,22 @@
1
+ type ChatHistoryStorage = {
2
+ getItem(key: string): string | null;
3
+ setItem(key: string, value: string): void;
4
+ };
5
+ export declare class ChatInputHistory {
6
+ private getMaxHistory;
7
+ private storage;
8
+ private history;
9
+ private currentIndex;
10
+ private tempInput;
11
+ private maxHistory;
12
+ constructor(getMaxHistory?: () => number, storage?: ChatHistoryStorage);
13
+ getHistory(): string[];
14
+ getCurrentIndex(): number;
15
+ addToHistory(input: string): void;
16
+ getPreviousInput(currentInput: string): string;
17
+ getNextInput(): string;
18
+ private saveHistory;
19
+ private loadHistory;
20
+ }
21
+ export {};
22
+ //# sourceMappingURL=chatInputHistory.d.ts.map