thub-embed 1.1.1

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 (153) hide show
  1. package/.env +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 +353 -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 +120 -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/TypingBubble.d.ts +2 -0
  15. package/dist/components/TypingBubble.d.ts.map +1 -0
  16. package/dist/components/avatars/Avatar.d.ts +4 -0
  17. package/dist/components/avatars/Avatar.d.ts.map +1 -0
  18. package/dist/components/avatars/DefaultAvatar.d.ts +2 -0
  19. package/dist/components/avatars/DefaultAvatar.d.ts.map +1 -0
  20. package/dist/components/bubbles/AgentReasoningBubble.d.ts +16 -0
  21. package/dist/components/bubbles/AgentReasoningBubble.d.ts.map +1 -0
  22. package/dist/components/bubbles/BotBubble.d.ts +27 -0
  23. package/dist/components/bubbles/BotBubble.d.ts.map +1 -0
  24. package/dist/components/bubbles/FollowUpPromptBubble.d.ts +8 -0
  25. package/dist/components/bubbles/FollowUpPromptBubble.d.ts.map +1 -0
  26. package/dist/components/bubbles/GuestBubble.d.ts +16 -0
  27. package/dist/components/bubbles/GuestBubble.d.ts.map +1 -0
  28. package/dist/components/bubbles/LeadCaptureBubble.d.ts +20 -0
  29. package/dist/components/bubbles/LeadCaptureBubble.d.ts.map +1 -0
  30. package/dist/components/bubbles/LoadingBubble.d.ts +2 -0
  31. package/dist/components/bubbles/LoadingBubble.d.ts.map +1 -0
  32. package/dist/components/bubbles/SourceBubble.d.ts +8 -0
  33. package/dist/components/bubbles/SourceBubble.d.ts.map +1 -0
  34. package/dist/components/bubbles/StarterPromptBubble.d.ts +8 -0
  35. package/dist/components/bubbles/StarterPromptBubble.d.ts.map +1 -0
  36. package/dist/components/buttons/AttachmentUploadButton.d.ts +11 -0
  37. package/dist/components/buttons/AttachmentUploadButton.d.ts.map +1 -0
  38. package/dist/components/buttons/CallButton.d.ts +14 -0
  39. package/dist/components/buttons/CallButton.d.ts.map +1 -0
  40. package/dist/components/buttons/CancelButton.d.ts +10 -0
  41. package/dist/components/buttons/CancelButton.d.ts.map +1 -0
  42. package/dist/components/buttons/FeedbackButtons.d.ts +13 -0
  43. package/dist/components/buttons/FeedbackButtons.d.ts.map +1 -0
  44. package/dist/components/buttons/ImageUploadButton.d.ts +11 -0
  45. package/dist/components/buttons/ImageUploadButton.d.ts.map +1 -0
  46. package/dist/components/buttons/LeadCaptureButtons.d.ts +11 -0
  47. package/dist/components/buttons/LeadCaptureButtons.d.ts.map +1 -0
  48. package/dist/components/buttons/RecordAudioButton.d.ts +11 -0
  49. package/dist/components/buttons/RecordAudioButton.d.ts.map +1 -0
  50. package/dist/components/buttons/SendButton.d.ts +12 -0
  51. package/dist/components/buttons/SendButton.d.ts.map +1 -0
  52. package/dist/components/icons/AddImageIcon.d.ts +3 -0
  53. package/dist/components/icons/AddImageIcon.d.ts.map +1 -0
  54. package/dist/components/icons/AttachmentIcon.d.ts +3 -0
  55. package/dist/components/icons/AttachmentIcon.d.ts.map +1 -0
  56. package/dist/components/icons/BotIcon.d.ts +3 -0
  57. package/dist/components/icons/BotIcon.d.ts.map +1 -0
  58. package/dist/components/icons/CircleDotIcon.d.ts +3 -0
  59. package/dist/components/icons/CircleDotIcon.d.ts.map +1 -0
  60. package/dist/components/icons/ClipboardIcon.d.ts +3 -0
  61. package/dist/components/icons/ClipboardIcon.d.ts.map +1 -0
  62. package/dist/components/icons/DeleteIcon.d.ts +3 -0
  63. package/dist/components/icons/DeleteIcon.d.ts.map +1 -0
  64. package/dist/components/icons/IconPhoneCall.d.ts +3 -0
  65. package/dist/components/icons/IconPhoneCall.d.ts.map +1 -0
  66. package/dist/components/icons/IconPhoneOff.d.ts +3 -0
  67. package/dist/components/icons/IconPhoneOff.d.ts.map +1 -0
  68. package/dist/components/icons/RecordIcon.d.ts +3 -0
  69. package/dist/components/icons/RecordIcon.d.ts.map +1 -0
  70. package/dist/components/icons/SendIcon.d.ts +3 -0
  71. package/dist/components/icons/SendIcon.d.ts.map +1 -0
  72. package/dist/components/icons/SparklesIcon.d.ts +3 -0
  73. package/dist/components/icons/SparklesIcon.d.ts.map +1 -0
  74. package/dist/components/icons/ThumbsDownIcon.d.ts +3 -0
  75. package/dist/components/icons/ThumbsDownIcon.d.ts.map +1 -0
  76. package/dist/components/icons/ThumbsUpIcon.d.ts +3 -0
  77. package/dist/components/icons/ThumbsUpIcon.d.ts.map +1 -0
  78. package/dist/components/icons/TickIcon.d.ts +2 -0
  79. package/dist/components/icons/TickIcon.d.ts.map +1 -0
  80. package/dist/components/icons/TrashIcon.d.ts +3 -0
  81. package/dist/components/icons/TrashIcon.d.ts.map +1 -0
  82. package/dist/components/icons/UserIcon.d.ts +3 -0
  83. package/dist/components/icons/UserIcon.d.ts.map +1 -0
  84. package/dist/components/icons/XIcon.d.ts +5 -0
  85. package/dist/components/icons/XIcon.d.ts.map +1 -0
  86. package/dist/components/icons/index.d.ts +16 -0
  87. package/dist/components/icons/index.d.ts.map +1 -0
  88. package/dist/components/index.d.ts +3 -0
  89. package/dist/components/index.d.ts.map +1 -0
  90. package/dist/components/inputs/textInput/components/FilePreview.d.ts +12 -0
  91. package/dist/components/inputs/textInput/components/FilePreview.d.ts.map +1 -0
  92. package/dist/components/inputs/textInput/components/ShortTextInput.d.ts +10 -0
  93. package/dist/components/inputs/textInput/components/ShortTextInput.d.ts.map +1 -0
  94. package/dist/components/inputs/textInput/components/TextInput.d.ts +31 -0
  95. package/dist/components/inputs/textInput/components/TextInput.d.ts.map +1 -0
  96. package/dist/components/inputs/textInput/index.d.ts +3 -0
  97. package/dist/components/inputs/textInput/index.d.ts.map +1 -0
  98. package/dist/constants.d.ts +3 -0
  99. package/dist/constants.d.ts.map +1 -0
  100. package/dist/features/bubble/components/Bubble.d.ts +5 -0
  101. package/dist/features/bubble/components/Bubble.d.ts.map +1 -0
  102. package/dist/features/bubble/components/BubbleButton.d.ts +16 -0
  103. package/dist/features/bubble/components/BubbleButton.d.ts.map +1 -0
  104. package/dist/features/bubble/components/Tooltip.d.ts +15 -0
  105. package/dist/features/bubble/components/Tooltip.d.ts.map +1 -0
  106. package/dist/features/bubble/components/index.d.ts +2 -0
  107. package/dist/features/bubble/components/index.d.ts.map +1 -0
  108. package/dist/features/bubble/index.d.ts +2 -0
  109. package/dist/features/bubble/index.d.ts.map +1 -0
  110. package/dist/features/bubble/types.d.ts +111 -0
  111. package/dist/features/bubble/types.d.ts.map +1 -0
  112. package/dist/features/full/components/Full.d.ts +7 -0
  113. package/dist/features/full/components/Full.d.ts.map +1 -0
  114. package/dist/features/full/components/index.d.ts +2 -0
  115. package/dist/features/full/components/index.d.ts.map +1 -0
  116. package/dist/features/full/index.d.ts +2 -0
  117. package/dist/features/full/index.d.ts.map +1 -0
  118. package/dist/features/popup/components/DisclaimerPopup.d.ts +18 -0
  119. package/dist/features/popup/components/DisclaimerPopup.d.ts.map +1 -0
  120. package/dist/features/popup/components/Popup.d.ts +8 -0
  121. package/dist/features/popup/components/Popup.d.ts.map +1 -0
  122. package/dist/features/popup/components/index.d.ts +3 -0
  123. package/dist/features/popup/components/index.d.ts.map +1 -0
  124. package/dist/features/popup/index.d.ts +2 -0
  125. package/dist/features/popup/index.d.ts.map +1 -0
  126. package/dist/features/popup/types.d.ts +8 -0
  127. package/dist/features/popup/types.d.ts.map +1 -0
  128. package/dist/index.d.ts +3 -0
  129. package/dist/index.d.ts.map +1 -0
  130. package/dist/queries/sendMessageQuery.d.ts +99 -0
  131. package/dist/queries/sendMessageQuery.d.ts.map +1 -0
  132. package/dist/register.d.ts +2 -0
  133. package/dist/register.d.ts.map +1 -0
  134. package/dist/types.d.ts +1 -0
  135. package/dist/types.d.ts.map +1 -0
  136. package/dist/utils/audioRecording.d.ts +21 -0
  137. package/dist/utils/audioRecording.d.ts.map +1 -0
  138. package/dist/utils/chatInputHistory.d.ts +22 -0
  139. package/dist/utils/chatInputHistory.d.ts.map +1 -0
  140. package/dist/utils/index.d.ts +23 -0
  141. package/dist/utils/index.d.ts.map +1 -0
  142. package/dist/utils/isMobileSignal.d.ts +2 -0
  143. package/dist/utils/isMobileSignal.d.ts.map +1 -0
  144. package/dist/web.d.ts +23 -0
  145. package/dist/web.d.ts.map +1 -0
  146. package/dist/web.js +1 -0
  147. package/dist/web.umd.js +1 -0
  148. package/dist/window.d.ts +30 -0
  149. package/dist/window.d.ts.map +1 -0
  150. package/images/ChatEmbed.gif +0 -0
  151. package/package.json +75 -0
  152. package/public/index.html +37 -0
  153. package/server.js +394 -0
@@ -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,111 @@
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
+ };
11
+ export type TextInputTheme = {
12
+ backgroundColor?: string;
13
+ textColor?: string;
14
+ placeholder?: string;
15
+ sendButtonColor?: string;
16
+ maxChars?: number;
17
+ maxCharsWarningMessage?: string;
18
+ autoFocus?: boolean;
19
+ sendMessageSound?: boolean;
20
+ sendSoundLocation?: string;
21
+ receiveMessageSound?: boolean;
22
+ receiveSoundLocation?: string;
23
+ };
24
+ export type UserMessageTheme = {
25
+ backgroundColor?: string;
26
+ textColor?: string;
27
+ showAvatar?: boolean;
28
+ avatarSrc?: string;
29
+ };
30
+ export type BotMessageTheme = {
31
+ backgroundColor?: string;
32
+ textColor?: string;
33
+ showAvatar?: boolean;
34
+ avatarSrc?: string;
35
+ };
36
+ export type FooterTheme = {
37
+ showFooter?: boolean;
38
+ textColor?: string;
39
+ text?: string;
40
+ company?: string;
41
+ companyLink?: string;
42
+ };
43
+ export type FeedbackTheme = {
44
+ color?: string;
45
+ };
46
+ export type ChatWindowTheme = {
47
+ showTitle?: boolean;
48
+ showAgentMessages?: boolean;
49
+ title?: string;
50
+ titleAvatarSrc?: string;
51
+ titleTextColor?: string;
52
+ titleBackgroundColor?: string;
53
+ welcomeMessage?: string;
54
+ errorMessage?: string;
55
+ backgroundColor?: string;
56
+ backgroundImage?: string;
57
+ height?: number;
58
+ width?: number;
59
+ fontSize?: number;
60
+ userMessage?: UserMessageTheme;
61
+ botMessage?: BotMessageTheme;
62
+ textInput?: TextInputTheme;
63
+ feedback?: FeedbackTheme;
64
+ footer?: FooterTheme;
65
+ sourceDocsTitle?: string;
66
+ poweredByTextColor?: string;
67
+ starterPrompts?: string[];
68
+ starterPromptFontSize?: number;
69
+ clearChatOnReload?: boolean;
70
+ dateTimeToggle?: DateTimeToggleTheme;
71
+ renderHTML?: boolean;
72
+ };
73
+ export type ButtonTheme = {
74
+ size?: 'small' | 'medium' | 'large' | number;
75
+ backgroundColor?: string;
76
+ iconColor?: string;
77
+ customIconSrc?: string;
78
+ bottom?: number;
79
+ right?: number;
80
+ dragAndDrop?: boolean;
81
+ autoWindowOpen?: autoWindowOpenTheme;
82
+ };
83
+ export type ToolTipTheme = {
84
+ showTooltip?: boolean;
85
+ tooltipMessage?: string;
86
+ tooltipBackgroundColor?: string;
87
+ tooltipTextColor?: string;
88
+ tooltipFontSize?: number;
89
+ };
90
+ export type autoWindowOpenTheme = {
91
+ autoOpen?: boolean;
92
+ openDelay?: number;
93
+ autoOpenOnMobile?: boolean;
94
+ };
95
+ export type DisclaimerPopUpTheme = {
96
+ title?: string;
97
+ message?: string;
98
+ textColor?: string;
99
+ buttonColor?: string;
100
+ buttonTextColor?: string;
101
+ buttonText?: string;
102
+ blurredBackgroundColor?: string;
103
+ backgroundColor?: string;
104
+ denyButtonBgColor?: string;
105
+ denyButtonText?: string;
106
+ };
107
+ export type DateTimeToggleTheme = {
108
+ date?: boolean;
109
+ time?: boolean;
110
+ };
111
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"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,EAA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AC;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"}
@@ -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;oCAuFzE,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,99 @@
1
+ import { FileUpload, IAction } from '@/components/Bot';
2
+ export type IncomingInput = {
3
+ question: string;
4
+ uploads?: FileUpload[];
5
+ overrideConfig?: Record<string, unknown>;
6
+ socketIOClientId?: string;
7
+ chatId?: string;
8
+ fileName?: string;
9
+ leadEmail?: string;
10
+ action?: IAction;
11
+ };
12
+ type BaseRequest = {
13
+ apiHost?: string;
14
+ onRequest?: (request: RequestInit) => Promise<void>;
15
+ };
16
+ export type MessageRequest = BaseRequest & {
17
+ chatflowid?: string;
18
+ body?: IncomingInput;
19
+ };
20
+ export type MessageInternalRequest = BaseRequest & {
21
+ chatflowid?: string;
22
+ body?: IncomingInput;
23
+ auth?: {
24
+ username: string;
25
+ password: string;
26
+ };
27
+ };
28
+ export type FeedbackRatingType = 'THUMBS_UP' | 'THUMBS_DOWN';
29
+ export type FeedbackInput = {
30
+ chatId: string;
31
+ messageId: string;
32
+ rating: FeedbackRatingType;
33
+ content?: string;
34
+ };
35
+ export type CreateFeedbackRequest = BaseRequest & {
36
+ chatflowid?: string;
37
+ body?: FeedbackInput;
38
+ };
39
+ export type UpdateFeedbackRequest = BaseRequest & {
40
+ id: string;
41
+ body?: Partial<FeedbackInput>;
42
+ };
43
+ export type UpsertRequest = BaseRequest & {
44
+ chatflowid: string;
45
+ apiHost?: string;
46
+ formData: FormData;
47
+ };
48
+ export type LeadCaptureInput = {
49
+ chatflowid: string;
50
+ chatId: string;
51
+ name?: string;
52
+ email?: string;
53
+ phone?: string;
54
+ };
55
+ export type LeadCaptureRequest = BaseRequest & {
56
+ body: Partial<LeadCaptureInput>;
57
+ };
58
+ export declare const sendFeedbackQuery: ({ chatflowid, apiHost, body, onRequest }: CreateFeedbackRequest) => Promise<{
59
+ data?: unknown;
60
+ error?: Error | undefined;
61
+ }>;
62
+ export declare const updateFeedbackQuery: ({ id, apiHost, body, onRequest }: UpdateFeedbackRequest) => Promise<{
63
+ data?: unknown;
64
+ error?: Error | undefined;
65
+ }>;
66
+ export declare const sendMessageQuery: ({ chatflowid, apiHost, body, onRequest }: MessageRequest) => Promise<{
67
+ data?: any;
68
+ error?: Error | undefined;
69
+ }>;
70
+ export declare const sendInternalMessageQuery: ({ chatflowid, apiHost, body, onRequest, auth, }: MessageInternalRequest) => Promise<{
71
+ data?: any;
72
+ error?: Error | undefined;
73
+ }>;
74
+ export declare const createAttachmentWithFormData: ({ chatflowid, apiHost, formData, onRequest }: UpsertRequest) => Promise<{
75
+ data?: unknown;
76
+ error?: Error | undefined;
77
+ }>;
78
+ export declare const upsertVectorStoreWithFormData: ({ chatflowid, apiHost, formData, onRequest }: UpsertRequest) => Promise<{
79
+ data?: unknown;
80
+ error?: Error | undefined;
81
+ }>;
82
+ export declare const getChatbotConfig: ({ chatflowid, apiHost, onRequest }: MessageRequest) => Promise<{
83
+ data?: any;
84
+ error?: Error | undefined;
85
+ }>;
86
+ export declare const isStreamAvailableQuery: ({ chatflowid, apiHost, onRequest }: MessageRequest) => Promise<{
87
+ data?: any;
88
+ error?: Error | undefined;
89
+ }>;
90
+ export declare const sendFileDownloadQuery: ({ apiHost, body, onRequest }: MessageRequest) => Promise<{
91
+ data?: any;
92
+ error?: Error | undefined;
93
+ }>;
94
+ export declare const addLeadQuery: ({ apiHost, body, onRequest }: LeadCaptureRequest) => Promise<{
95
+ data?: any;
96
+ error?: Error | undefined;
97
+ }>;
98
+ export {};
99
+ //# sourceMappingURL=sendMessageQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"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,EAAE,MAAM,CAAC;IACjB,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,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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,wBAAwB,oDAMlC,sBAAsB;;;EAcxB,CAAC;AAGF,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"}
@@ -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
@@ -0,0 +1 @@
1
+ {"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"}
@@ -0,0 +1,23 @@
1
+ export declare const isNotDefined: <T>(value: T | null | undefined) => value is null | undefined;
2
+ export declare const isDefined: <T>(value: T | null | undefined) => value is NonNullable<T>;
3
+ export declare const isEmpty: (value: string | undefined | null) => value is undefined;
4
+ export declare const isNotEmpty: (value: string | undefined | null) => value is string;
5
+ export declare const sendRequest: <ResponseData>(params: string | {
6
+ url: string;
7
+ method: string;
8
+ body?: Record<string, unknown> | FormData | undefined;
9
+ type?: string | undefined;
10
+ headers?: Record<string, any> | undefined;
11
+ formData?: FormData | undefined;
12
+ onRequest?: ((request: RequestInit) => Promise<void>) | undefined;
13
+ }) => Promise<{
14
+ data?: ResponseData | undefined;
15
+ error?: Error | undefined;
16
+ }>;
17
+ export declare const setLocalStorageChatflow: (chatflowid: string, chatId: string, saveObj?: Record<string, any>) => void;
18
+ export declare const getLocalStorageChatflow: (chatflowid: string) => any;
19
+ export declare const removeLocalStorageChatHistory: (chatflowid: string) => void;
20
+ export declare const getBubbleButtonSize: (size: 'small' | 'medium' | 'large' | number | undefined) => number;
21
+ export declare const setCookie: (cname: string, cvalue: string, exdays: number) => void;
22
+ export declare const getCookie: (cname: string) => string;
23
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"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"}
@@ -0,0 +1,2 @@
1
+ export declare const isMobile: import("solid-js").Accessor<boolean | undefined>, setIsMobile: import("solid-js").Setter<boolean | undefined>;
2
+ //# sourceMappingURL=isMobileSignal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isMobileSignal.d.ts","sourceRoot":"","sources":["../../src/utils/isMobileSignal.ts"],"names":[],"mappings":"AAEA,eAAO,MAAO,QAAQ,oDAAE,WAAW,gDAA2B,CAAC"}
package/dist/web.d.ts ADDED
@@ -0,0 +1,23 @@
1
+ declare const chatbot: {
2
+ initFull: (props: {
3
+ chatflowid: string;
4
+ apiHost?: string | undefined;
5
+ onRequest?: ((request: RequestInit) => Promise<void>) | undefined;
6
+ chatflowConfig?: Record<string, unknown> | undefined;
7
+ observersConfig?: import("./components/Bot").observersConfigType | undefined;
8
+ theme?: import("./features/bubble/types").BubbleTheme | undefined;
9
+ } & {
10
+ id?: string | undefined;
11
+ }) => void;
12
+ init: (props: {
13
+ chatflowid: string;
14
+ apiHost?: string | undefined;
15
+ onRequest?: ((request: RequestInit) => Promise<void>) | undefined;
16
+ chatflowConfig?: Record<string, unknown> | undefined;
17
+ observersConfig?: import("./components/Bot").observersConfigType | undefined;
18
+ theme?: import("./features/bubble/types").BubbleTheme | undefined;
19
+ }) => void;
20
+ destroy: () => void;
21
+ };
22
+ export default chatbot;
23
+ //# sourceMappingURL=web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../src/web.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;CAAiB,CAAC;AAI/B,eAAe,OAAO,CAAC"}