cmcts-c-agent-embedding 1.0.0-office

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 (156) hide show
  1. package/.env +36 -0
  2. package/.env.example +34 -0
  3. package/.eslintrc.cjs +14 -0
  4. package/.husky/pre-commit +18 -0
  5. package/.idea/AugmentWebviewStateStore.xml +10 -0
  6. package/.idea/Flowise-share-chatbox.iml +13 -0
  7. package/.idea/codeStyles/Project.xml +60 -0
  8. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  9. package/.idea/inspectionProfiles/Project_Default.xml +16 -0
  10. package/.idea/modules.xml +9 -0
  11. package/.idea/prettier.xml +6 -0
  12. package/.idea/vcs.xml +7 -0
  13. package/.prettierignore +3 -0
  14. package/.prettierrc +8 -0
  15. package/README.md +349 -0
  16. package/base.json +21 -0
  17. package/dist/components/Badge.d.ts +10 -0
  18. package/dist/components/Badge.d.ts.map +1 -0
  19. package/dist/components/Bot.d.ts +125 -0
  20. package/dist/components/Bot.d.ts.map +1 -0
  21. package/dist/components/FeedbackContentDialog.d.ts +13 -0
  22. package/dist/components/FeedbackContentDialog.d.ts.map +1 -0
  23. package/dist/components/Toast.d.ts +10 -0
  24. package/dist/components/Toast.d.ts.map +1 -0
  25. package/dist/components/TypingBubble.d.ts +2 -0
  26. package/dist/components/TypingBubble.d.ts.map +1 -0
  27. package/dist/components/avatars/Avatar.d.ts +4 -0
  28. package/dist/components/avatars/Avatar.d.ts.map +1 -0
  29. package/dist/components/avatars/DefaultAvatar.d.ts +2 -0
  30. package/dist/components/avatars/DefaultAvatar.d.ts.map +1 -0
  31. package/dist/components/bubbles/AgentReasoningBubble.d.ts +16 -0
  32. package/dist/components/bubbles/AgentReasoningBubble.d.ts.map +1 -0
  33. package/dist/components/bubbles/BotBubble.d.ts +35 -0
  34. package/dist/components/bubbles/BotBubble.d.ts.map +1 -0
  35. package/dist/components/bubbles/FollowUpPromptBubble.d.ts +8 -0
  36. package/dist/components/bubbles/FollowUpPromptBubble.d.ts.map +1 -0
  37. package/dist/components/bubbles/GuestBubble.d.ts +16 -0
  38. package/dist/components/bubbles/GuestBubble.d.ts.map +1 -0
  39. package/dist/components/bubbles/LeadCaptureBubble.d.ts +20 -0
  40. package/dist/components/bubbles/LeadCaptureBubble.d.ts.map +1 -0
  41. package/dist/components/bubbles/LoadingBubble.d.ts +7 -0
  42. package/dist/components/bubbles/LoadingBubble.d.ts.map +1 -0
  43. package/dist/components/bubbles/SourceBubble.d.ts +9 -0
  44. package/dist/components/bubbles/SourceBubble.d.ts.map +1 -0
  45. package/dist/components/bubbles/StarterPromptBubble.d.ts +8 -0
  46. package/dist/components/bubbles/StarterPromptBubble.d.ts.map +1 -0
  47. package/dist/components/buttons/AttachmentUploadButton.d.ts +11 -0
  48. package/dist/components/buttons/AttachmentUploadButton.d.ts.map +1 -0
  49. package/dist/components/buttons/CancelButton.d.ts +10 -0
  50. package/dist/components/buttons/CancelButton.d.ts.map +1 -0
  51. package/dist/components/buttons/FeedbackButtons.d.ts +14 -0
  52. package/dist/components/buttons/FeedbackButtons.d.ts.map +1 -0
  53. package/dist/components/buttons/ImageUploadButton.d.ts +11 -0
  54. package/dist/components/buttons/ImageUploadButton.d.ts.map +1 -0
  55. package/dist/components/buttons/LeadCaptureButtons.d.ts +11 -0
  56. package/dist/components/buttons/LeadCaptureButtons.d.ts.map +1 -0
  57. package/dist/components/buttons/RecordAudioButton.d.ts +11 -0
  58. package/dist/components/buttons/RecordAudioButton.d.ts.map +1 -0
  59. package/dist/components/buttons/SendButton.d.ts +12 -0
  60. package/dist/components/buttons/SendButton.d.ts.map +1 -0
  61. package/dist/components/icons/AddImageIcon.d.ts +3 -0
  62. package/dist/components/icons/AddImageIcon.d.ts.map +1 -0
  63. package/dist/components/icons/AttachmentIcon.d.ts +3 -0
  64. package/dist/components/icons/AttachmentIcon.d.ts.map +1 -0
  65. package/dist/components/icons/CircleDotIcon.d.ts +3 -0
  66. package/dist/components/icons/CircleDotIcon.d.ts.map +1 -0
  67. package/dist/components/icons/ClipboardIcon.d.ts +3 -0
  68. package/dist/components/icons/ClipboardIcon.d.ts.map +1 -0
  69. package/dist/components/icons/DeleteIcon.d.ts +3 -0
  70. package/dist/components/icons/DeleteIcon.d.ts.map +1 -0
  71. package/dist/components/icons/RecordIcon.d.ts +3 -0
  72. package/dist/components/icons/RecordIcon.d.ts.map +1 -0
  73. package/dist/components/icons/SendIcon.d.ts +3 -0
  74. package/dist/components/icons/SendIcon.d.ts.map +1 -0
  75. package/dist/components/icons/SparklesIcon.d.ts +3 -0
  76. package/dist/components/icons/SparklesIcon.d.ts.map +1 -0
  77. package/dist/components/icons/ThumbsDownIcon.d.ts +5 -0
  78. package/dist/components/icons/ThumbsDownIcon.d.ts.map +1 -0
  79. package/dist/components/icons/ThumbsUpIcon.d.ts +5 -0
  80. package/dist/components/icons/ThumbsUpIcon.d.ts.map +1 -0
  81. package/dist/components/icons/TickIcon.d.ts +2 -0
  82. package/dist/components/icons/TickIcon.d.ts.map +1 -0
  83. package/dist/components/icons/TrashIcon.d.ts +3 -0
  84. package/dist/components/icons/TrashIcon.d.ts.map +1 -0
  85. package/dist/components/icons/XIcon.d.ts +5 -0
  86. package/dist/components/icons/XIcon.d.ts.map +1 -0
  87. package/dist/components/icons/index.d.ts +14 -0
  88. package/dist/components/icons/index.d.ts.map +1 -0
  89. package/dist/components/index.d.ts +3 -0
  90. package/dist/components/index.d.ts.map +1 -0
  91. package/dist/components/inputs/textInput/components/FilePreview.d.ts +12 -0
  92. package/dist/components/inputs/textInput/components/FilePreview.d.ts.map +1 -0
  93. package/dist/components/inputs/textInput/components/ShortTextInput.d.ts +10 -0
  94. package/dist/components/inputs/textInput/components/ShortTextInput.d.ts.map +1 -0
  95. package/dist/components/inputs/textInput/components/TextInput.d.ts +33 -0
  96. package/dist/components/inputs/textInput/components/TextInput.d.ts.map +1 -0
  97. package/dist/components/inputs/textInput/index.d.ts +3 -0
  98. package/dist/components/inputs/textInput/index.d.ts.map +1 -0
  99. package/dist/constants.d.ts +3 -0
  100. package/dist/constants.d.ts.map +1 -0
  101. package/dist/features/bubble/components/Bubble.d.ts +5 -0
  102. package/dist/features/bubble/components/Bubble.d.ts.map +1 -0
  103. package/dist/features/bubble/components/BubbleButton.d.ts +16 -0
  104. package/dist/features/bubble/components/BubbleButton.d.ts.map +1 -0
  105. package/dist/features/bubble/components/Tooltip.d.ts +15 -0
  106. package/dist/features/bubble/components/Tooltip.d.ts.map +1 -0
  107. package/dist/features/bubble/components/index.d.ts +2 -0
  108. package/dist/features/bubble/components/index.d.ts.map +1 -0
  109. package/dist/features/bubble/index.d.ts +2 -0
  110. package/dist/features/bubble/index.d.ts.map +1 -0
  111. package/dist/features/bubble/types.d.ts +108 -0
  112. package/dist/features/bubble/types.d.ts.map +1 -0
  113. package/dist/features/full/components/Full.d.ts +7 -0
  114. package/dist/features/full/components/Full.d.ts.map +1 -0
  115. package/dist/features/full/components/index.d.ts +2 -0
  116. package/dist/features/full/components/index.d.ts.map +1 -0
  117. package/dist/features/full/index.d.ts +2 -0
  118. package/dist/features/full/index.d.ts.map +1 -0
  119. package/dist/features/popup/components/DisclaimerPopup.d.ts +14 -0
  120. package/dist/features/popup/components/DisclaimerPopup.d.ts.map +1 -0
  121. package/dist/features/popup/components/Popup.d.ts +8 -0
  122. package/dist/features/popup/components/Popup.d.ts.map +1 -0
  123. package/dist/features/popup/components/index.d.ts +3 -0
  124. package/dist/features/popup/components/index.d.ts.map +1 -0
  125. package/dist/features/popup/index.d.ts +2 -0
  126. package/dist/features/popup/index.d.ts.map +1 -0
  127. package/dist/features/popup/types.d.ts +8 -0
  128. package/dist/features/popup/types.d.ts.map +1 -0
  129. package/dist/index.d.ts +3 -0
  130. package/dist/index.d.ts.map +1 -0
  131. package/dist/queries/sendMessageQuery.d.ts +125 -0
  132. package/dist/queries/sendMessageQuery.d.ts.map +1 -0
  133. package/dist/register.d.ts +2 -0
  134. package/dist/register.d.ts.map +1 -0
  135. package/dist/types.d.ts +1 -0
  136. package/dist/types.d.ts.map +1 -0
  137. package/dist/utils/audioRecording.d.ts +21 -0
  138. package/dist/utils/audioRecording.d.ts.map +1 -0
  139. package/dist/utils/chatInputHistory.d.ts +22 -0
  140. package/dist/utils/chatInputHistory.d.ts.map +1 -0
  141. package/dist/utils/index.d.ts +23 -0
  142. package/dist/utils/index.d.ts.map +1 -0
  143. package/dist/utils/isMobileSignal.d.ts +2 -0
  144. package/dist/utils/isMobileSignal.d.ts.map +1 -0
  145. package/dist/utils/ultimateJsonParser.d.ts +2 -0
  146. package/dist/utils/ultimateJsonParser.d.ts.map +1 -0
  147. package/dist/web.d.ts +29 -0
  148. package/dist/web.d.ts.map +1 -0
  149. package/dist/web.js +1 -0
  150. package/dist/window.d.ts +33 -0
  151. package/dist/window.d.ts.map +1 -0
  152. package/images/ChatEmbed.gif +0 -0
  153. package/images/proxyserver.png +0 -0
  154. package/package.json +80 -0
  155. package/public/index.html +153 -0
  156. package/server.js +401 -0
@@ -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,108 @@
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
+ welcomeMessage?: string;
52
+ secondMessage?: string;
53
+ errorMessage?: string;
54
+ backgroundColor?: string;
55
+ backgroundImage?: string;
56
+ height?: number;
57
+ width?: number;
58
+ fontSize?: number;
59
+ userMessage?: UserMessageTheme;
60
+ botMessage?: BotMessageTheme;
61
+ textInput?: TextInputTheme;
62
+ feedback?: FeedbackTheme;
63
+ footer?: FooterTheme;
64
+ sourceDocsTitle?: string;
65
+ poweredByTextColor?: string;
66
+ starterPrompts?: string[];
67
+ starterPromptFontSize?: number;
68
+ clearChatOnReload?: boolean;
69
+ dateTimeToggle?: DateTimeToggleTheme;
70
+ renderHTML?: boolean;
71
+ };
72
+ export type ButtonTheme = {
73
+ size?: 'small' | 'medium' | 'large' | number;
74
+ backgroundColor?: string;
75
+ iconColor?: string;
76
+ customIconSrc?: string;
77
+ bottom?: number;
78
+ right?: number;
79
+ dragAndDrop?: boolean;
80
+ autoWindowOpen?: autoWindowOpenTheme;
81
+ };
82
+ export type ToolTipTheme = {
83
+ showTooltip?: boolean;
84
+ tooltipMessage?: string;
85
+ tooltipBackgroundColor?: string;
86
+ tooltipTextColor?: string;
87
+ tooltipFontSize?: number;
88
+ };
89
+ export type autoWindowOpenTheme = {
90
+ autoOpen?: boolean;
91
+ openDelay?: number;
92
+ autoOpenOnMobile?: boolean;
93
+ };
94
+ export type DisclaimerPopUpTheme = {
95
+ title?: string;
96
+ message?: string;
97
+ textColor?: string;
98
+ buttonColor?: string;
99
+ buttonTextColor?: string;
100
+ buttonText?: string;
101
+ blurredBackgroundColor?: string;
102
+ backgroundColor?: string;
103
+ };
104
+ export type DateTimeToggleTheme = {
105
+ date?: boolean;
106
+ time?: boolean;
107
+ };
108
+ //# 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,EAAE,eAAe,CAAC;IAC7B,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E,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;CAC1B,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;oCA8FzE,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,14 @@
1
+ export type DisclaimerPopupProps = {
2
+ isOpen?: boolean;
3
+ onAccept?: () => void;
4
+ title?: string;
5
+ message?: string;
6
+ buttonText?: string;
7
+ blurredBackgroundColor?: string;
8
+ backgroundColor?: string;
9
+ buttonColor?: string;
10
+ textColor?: string;
11
+ buttonTextColor?: string;
12
+ };
13
+ export declare const DisclaimerPopup: (props: DisclaimerPopupProps) => import("solid-js").JSX.Element;
14
+ //# 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,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,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;CAC1B,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,oBAAoB,mCAoD1D,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":"AAUA,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,mCAkRtC,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,125 @@
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
+ stored?: Record<string, any>;
12
+ fetch?: boolean;
13
+ faqId?: string;
14
+ useId?: string;
15
+ };
16
+ type BaseRequest = {
17
+ apiHost?: string;
18
+ onRequest?: (request: RequestInit) => Promise<void>;
19
+ };
20
+ export type MessageRequest = BaseRequest & {
21
+ chatflowid?: string;
22
+ body?: IncomingInput;
23
+ };
24
+ export type FeedbackRatingType = 'THUMBS_UP' | 'THUMBS_DOWN';
25
+ export type FeedbackInput = {
26
+ chatId: string;
27
+ messageId: string;
28
+ rating: any;
29
+ content?: string;
30
+ };
31
+ export type CreateFeedbackRequest = BaseRequest & {
32
+ chatflowid?: string;
33
+ body?: FeedbackInput;
34
+ };
35
+ export type UpdateFeedbackRequest = BaseRequest & {
36
+ id: string;
37
+ body?: Partial<FeedbackInput>;
38
+ };
39
+ export type UpsertRequest = BaseRequest & {
40
+ chatflowid: string;
41
+ apiHost?: string;
42
+ formData: FormData;
43
+ };
44
+ export type LeadCaptureInput = {
45
+ chatflowid: string;
46
+ chatId: string;
47
+ name?: string;
48
+ email?: string;
49
+ phone?: string;
50
+ };
51
+ export type GetFeedbackByMessageIdRequest = BaseRequest & {
52
+ messageId: string;
53
+ };
54
+ export type LeadCaptureRequest = BaseRequest & {
55
+ body: Partial<LeadCaptureInput>;
56
+ };
57
+ export declare const getUserFromLocalStorage: () => any | null;
58
+ export declare const sendFeedbackQuery: ({ chatflowid, apiHost, body, onRequest }: CreateFeedbackRequest) => Promise<{
59
+ data?: unknown;
60
+ error?: Error | undefined;
61
+ }>;
62
+ export declare const getFeedbackByMessageId: ({ messageId, apiHost, onRequest }: GetFeedbackByMessageIdRequest) => Promise<{
63
+ data?: unknown;
64
+ error?: Error | undefined;
65
+ }>;
66
+ export declare const updateFeedbackQuery: ({ id, apiHost, body, onRequest }: UpdateFeedbackRequest) => Promise<{
67
+ data?: unknown;
68
+ error?: Error | undefined;
69
+ }>;
70
+ export declare const sendMessageQuery: ({ chatflowid, apiHost, body, onRequest }: MessageRequest) => 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 declare const searchFaqsQuery: ({ chatflowid, apiHost, query, onRequest, }: {
99
+ chatflowid?: string | undefined;
100
+ apiHost?: string | undefined;
101
+ query: string;
102
+ onRequest?: ((request: RequestInit) => Promise<void>) | undefined;
103
+ }) => Promise<{
104
+ data?: any;
105
+ error?: Error | undefined;
106
+ }>;
107
+ export declare const vectorSearchFaqsQuery: ({ chatflowid, apiHost, query, onRequest, }: {
108
+ chatflowid: string;
109
+ apiHost?: string | undefined;
110
+ query: string;
111
+ onRequest?: ((request: RequestInit) => Promise<void>) | undefined;
112
+ }) => Promise<{
113
+ data?: any;
114
+ error?: Error | undefined;
115
+ }>;
116
+ export declare const getFileContent: ({ apiHost, path, onRequest, }: {
117
+ apiHost?: string | undefined;
118
+ path: string;
119
+ onRequest?: ((request: RequestInit) => Promise<void>) | undefined;
120
+ }) => Promise<{
121
+ data?: any;
122
+ error?: Error | undefined;
123
+ }>;
124
+ export {};
125
+ //# 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;IAC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Ae;;;WAQnB,MAAM;2BACS,WAAW,KAAK,QAAQ,IAAI,CAAC;;;;EAUpD,CAAC;AAEF,eAAO,MAAM,qBAAqB;gBAMpB,MAAM;;WAEX,MAAM;2BACS,WAAW,KAAK,QAAQ,IAAI,CAAC;;;;EAUpD,CAAC;AAEF,eAAO,MAAM,cAAc;;UAMnB,MAAM;2BACU,WAAW,KAAK,QAAQ,IAAI,CAAC;;;;EAUpD,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,SAyB/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"}
@@ -0,0 +1,2 @@
1
+ export declare function parseJsonMarkdown(jsonString: string): any;
2
+ //# sourceMappingURL=ultimateJsonParser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ultimateJsonParser.d.ts","sourceRoot":"","sources":["../../src/utils/ultimateJsonParser.ts"],"names":[],"mappings":"AAsBA,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,GAAG,CAgDzD"}
package/dist/web.d.ts ADDED
@@ -0,0 +1,29 @@
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
+ chatwootUrl?: string | undefined;
10
+ roomIds?: Record<string, string> | undefined;
11
+ isUseFAQ?: undefined;
12
+ } & {
13
+ id?: string | undefined;
14
+ }) => void;
15
+ init: (props: {
16
+ chatflowid: string;
17
+ apiHost?: string | undefined;
18
+ onRequest?: ((request: RequestInit) => Promise<void>) | undefined;
19
+ chatflowConfig?: Record<string, unknown> | undefined;
20
+ observersConfig?: import("./components/Bot").observersConfigType | undefined;
21
+ theme?: import("./features/bubble/types").BubbleTheme | undefined;
22
+ chatwootUrl?: string | undefined;
23
+ roomIds?: Record<string, string> | undefined;
24
+ isUseFAQ?: undefined;
25
+ }) => void;
26
+ destroy: () => void;
27
+ };
28
+ export default chatbot;
29
+ //# 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"}