@urbiport/js 0.0.12 → 0.0.13

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 (170) hide show
  1. package/README.md +0 -0
  2. package/dist/components/Bot.d.ts +7 -3
  3. package/dist/components/Bot.d.ts.map +1 -1
  4. package/dist/components/{SubmitButton.d.ts → ButtonSubmit.d.ts} +2 -2
  5. package/dist/components/{SubmitButton.d.ts.map → ButtonSubmit.d.ts.map} +1 -1
  6. package/dist/components/{InputChatBlockFooter.d.ts → ChatInputFooter.d.ts} +4 -4
  7. package/dist/components/ChatInputFooter.d.ts.map +1 -0
  8. package/dist/components/ConversationContainer/ConversationContainer.d.ts +6 -2
  9. package/dist/components/ConversationContainer/ConversationContainer.d.ts.map +1 -1
  10. package/dist/components/ConversationContainer/ConversationContainerBody.d.ts +4 -0
  11. package/dist/components/ConversationContainer/ConversationContainerBody.d.ts.map +1 -1
  12. package/dist/components/ConversationContainer/ConversationContainerFooter.d.ts +1 -2
  13. package/dist/components/ConversationContainer/ConversationContainerFooter.d.ts.map +1 -1
  14. package/dist/components/ConversationContainer/{ChatChunk.d.ts → ConversationMessageChunk.d.ts} +4 -4
  15. package/dist/components/ConversationContainer/ConversationMessageChunk.d.ts.map +1 -0
  16. package/dist/components/ConversationContainer/ConversationPopupBlockedToast.d.ts +7 -0
  17. package/dist/components/ConversationContainer/ConversationPopupBlockedToast.d.ts.map +1 -0
  18. package/dist/components/ConversationContainer/ConversationProgressBar.d.ts +6 -0
  19. package/dist/components/ConversationContainer/ConversationProgressBar.d.ts.map +1 -0
  20. package/dist/components/ConversationContainer/HostAvatar.d.ts +8 -0
  21. package/dist/components/ConversationContainer/HostAvatar.d.ts.map +1 -0
  22. package/dist/components/ConversationContainer/InputAnswer.d.ts +18 -0
  23. package/dist/components/ConversationContainer/InputAnswer.d.ts.map +1 -0
  24. package/dist/components/ConversationContainer/helpers.d.ts +2 -2
  25. package/dist/components/ConversationContainer/helpers.d.ts.map +1 -1
  26. package/dist/components/InputAnswerContext.d.ts +9 -4
  27. package/dist/components/InputAnswerContext.d.ts.map +1 -1
  28. package/dist/components/InputFormLayout.d.ts +2 -0
  29. package/dist/components/InputFormLayout.d.ts.map +1 -1
  30. package/dist/components/Spinner.d.ts.map +1 -1
  31. package/dist/components/bubbles/HostBubble.d.ts.map +1 -1
  32. package/dist/components/bubbles/HostBubbleStreaming.d.ts +8 -0
  33. package/dist/components/bubbles/HostBubbleStreaming.d.ts.map +1 -0
  34. package/dist/{features/blocks/inputs/fileUpload/components/SelectedFile.d.ts → components/inputs/FileAttached.d.ts} +2 -2
  35. package/dist/components/inputs/FileAttached.d.ts.map +1 -0
  36. package/dist/components/inputs/{ShortTextInput.d.ts → Input.d.ts} +2 -2
  37. package/dist/components/inputs/Input.d.ts.map +1 -0
  38. package/dist/features/blocks/bubbles/audio/components/AudioBubble.d.ts.map +1 -1
  39. package/dist/features/blocks/bubbles/embed/components/EmbedBubble.d.ts.map +1 -1
  40. package/dist/features/blocks/bubbles/image/components/ImageBubble.d.ts.map +1 -1
  41. package/dist/features/blocks/bubbles/textBubble/components/TextBubble.d.ts.map +1 -1
  42. package/dist/features/blocks/bubbles/video/components/VideoBubble.d.ts.map +1 -1
  43. package/dist/features/blocks/inputs/buttons/components/Buttons.d.ts +3 -2
  44. package/dist/features/blocks/inputs/buttons/components/Buttons.d.ts.map +1 -1
  45. package/dist/{components/inputs/SearchInput.d.ts → features/blocks/inputs/buttons/components/ButtonsSearch.d.ts} +2 -2
  46. package/dist/features/blocks/inputs/buttons/components/ButtonsSearch.d.ts.map +1 -0
  47. package/dist/features/blocks/inputs/buttons/index.d.ts +2 -0
  48. package/dist/features/blocks/inputs/buttons/index.d.ts.map +1 -0
  49. package/dist/features/blocks/inputs/date/components/DateForm.d.ts.map +1 -1
  50. package/dist/features/blocks/inputs/email/components/EmailInput.d.ts +2 -0
  51. package/dist/features/blocks/inputs/email/components/EmailInput.d.ts.map +1 -1
  52. package/dist/features/blocks/inputs/fileUpload/components/FileUploadForm.d.ts.map +1 -1
  53. package/dist/features/blocks/inputs/fileUpload/{helpers → utils}/sanitizeSelectedFiles.d.ts +2 -4
  54. package/dist/features/blocks/inputs/fileUpload/utils/sanitizeSelectedFiles.d.ts.map +1 -0
  55. package/dist/features/blocks/inputs/fileUpload/utils/uploadFiles.d.ts.map +1 -0
  56. package/dist/features/blocks/inputs/number/components/NumberInput.d.ts.map +1 -1
  57. package/dist/features/blocks/inputs/number/utils/numberInputHelper.d.ts.map +1 -0
  58. package/dist/features/blocks/inputs/payment/utils/paymentInProgressStorage.d.ts.map +1 -0
  59. package/dist/features/blocks/inputs/phone/components/PhoneInput.d.ts +2 -0
  60. package/dist/features/blocks/inputs/phone/components/PhoneInput.d.ts.map +1 -1
  61. package/dist/features/blocks/inputs/rating/components/RatingForm.d.ts.map +1 -1
  62. package/dist/features/blocks/inputs/{textInput → text}/components/TextInput.d.ts +3 -1
  63. package/dist/features/blocks/inputs/text/components/TextInput.d.ts.map +1 -0
  64. package/dist/features/blocks/inputs/{textInput → text}/components/VoiceRecorder.d.ts +2 -2
  65. package/dist/features/blocks/inputs/text/components/VoiceRecorder.d.ts.map +1 -0
  66. package/dist/features/blocks/inputs/text/components/VolumeProcessor.d.ts.map +1 -0
  67. package/dist/features/blocks/inputs/text/index.d.ts +2 -0
  68. package/dist/features/blocks/inputs/text/index.d.ts.map +1 -0
  69. package/dist/features/blocks/inputs/url/components/UrlInput.d.ts +2 -0
  70. package/dist/features/blocks/inputs/url/components/UrlInput.d.ts.map +1 -1
  71. package/dist/features/bubble/components/BubbleButton.d.ts.map +1 -1
  72. package/dist/features/bubble/components/{PreviewMessage.d.ts → BubbleMessage.d.ts} +2 -2
  73. package/dist/features/bubble/components/BubbleMessage.d.ts.map +1 -0
  74. package/dist/index.d.ts +1 -0
  75. package/dist/index.d.ts.map +1 -1
  76. package/dist/index.js +26 -1
  77. package/dist/queries/continueChatQuery.d.ts +67 -104
  78. package/dist/queries/continueChatQuery.d.ts.map +1 -1
  79. package/dist/queries/startChatQuery.d.ts +153 -180
  80. package/dist/queries/startChatQuery.d.ts.map +1 -1
  81. package/dist/utils/executeClientSideActions.d.ts.map +1 -1
  82. package/dist/utils/injectFont.d.ts +2 -2
  83. package/dist/utils/injectFont.d.ts.map +1 -1
  84. package/dist/utils/injectStartProps.d.ts.map +1 -1
  85. package/dist/utils/setCssVariablesValue.d.ts +2 -2
  86. package/dist/utils/setCssVariablesValue.d.ts.map +1 -1
  87. package/dist/utils/storage.d.ts +153 -180
  88. package/dist/utils/storage.d.ts.map +1 -1
  89. package/dist/web.js +30 -8
  90. package/package.json +8 -3
  91. package/dist/components/ConversationContainer/AvatarSideContainer.d.ts +0 -8
  92. package/dist/components/ConversationContainer/AvatarSideContainer.d.ts.map +0 -1
  93. package/dist/components/ConversationContainer/ChatChunk.d.ts.map +0 -1
  94. package/dist/components/ConversationContainer/ChatChunkFooter.d.ts +0 -20
  95. package/dist/components/ConversationContainer/ChatChunkFooter.d.ts.map +0 -1
  96. package/dist/components/ConversationContainer/InputAnswerContext.d.ts +0 -13
  97. package/dist/components/ConversationContainer/InputAnswerContext.d.ts.map +0 -1
  98. package/dist/components/ConversationContainer/LoadingChunk.d.ts +0 -7
  99. package/dist/components/ConversationContainer/LoadingChunk.d.ts.map +0 -1
  100. package/dist/components/ConversationContainer/PopupBlockedToast.d.ts +0 -7
  101. package/dist/components/ConversationContainer/PopupBlockedToast.d.ts.map +0 -1
  102. package/dist/components/InputChatBlock.d.ts +0 -18
  103. package/dist/components/InputChatBlock.d.ts.map +0 -1
  104. package/dist/components/InputChatBlockFooter copy.d.ts +0 -17
  105. package/dist/components/InputChatBlockFooter copy.d.ts.map +0 -1
  106. package/dist/components/InputChatBlockFooter.d.ts.map +0 -1
  107. package/dist/components/InputChatBlockFooterShow.d.ts +0 -13
  108. package/dist/components/InputChatBlockFooterShow.d.ts.map +0 -1
  109. package/dist/components/LiteBadge.d.ts +0 -6
  110. package/dist/components/LiteBadge.d.ts.map +0 -1
  111. package/dist/components/ProgressBar.d.ts +0 -6
  112. package/dist/components/ProgressBar.d.ts.map +0 -1
  113. package/dist/components/SendButton.d.ts +0 -9
  114. package/dist/components/SendButton.d.ts.map +0 -1
  115. package/dist/components/Submit.d.ts +0 -9
  116. package/dist/components/Submit.d.ts.map +0 -1
  117. package/dist/components/avatars/DefaultAvatar.d.ts +0 -2
  118. package/dist/components/avatars/DefaultAvatar.d.ts.map +0 -1
  119. package/dist/components/bubbles/LoadingBubble.d.ts +0 -2
  120. package/dist/components/bubbles/LoadingBubble.d.ts.map +0 -1
  121. package/dist/components/bubbles/StreamingBubble.d.ts +0 -8
  122. package/dist/components/bubbles/StreamingBubble.d.ts.map +0 -1
  123. package/dist/components/icons/TypebotLogo.d.ts +0 -2
  124. package/dist/components/icons/TypebotLogo.d.ts.map +0 -1
  125. package/dist/components/index.d.ts +0 -4
  126. package/dist/components/index.d.ts.map +0 -1
  127. package/dist/components/inputs/SearchInput.d.ts.map +0 -1
  128. package/dist/components/inputs/ShortTextInput.d.ts.map +0 -1
  129. package/dist/components/inputs/index.d.ts +0 -3
  130. package/dist/components/inputs/index.d.ts.map +0 -1
  131. package/dist/constants/conversation.d.ts +0 -4
  132. package/dist/constants/conversation.d.ts.map +0 -1
  133. package/dist/features/blocks/bubbles/embed/components/CustomEmbedBubble.d.ts +0 -10
  134. package/dist/features/blocks/bubbles/embed/components/CustomEmbedBubble.d.ts.map +0 -1
  135. package/dist/features/blocks/bubbles/textBubble/helpers/convertRichTextToPlainText.d.ts +0 -3
  136. package/dist/features/blocks/bubbles/textBubble/helpers/convertRichTextToPlainText.d.ts.map +0 -1
  137. package/dist/features/blocks/inputs/buttons/components/Checkbox.d.ts +0 -7
  138. package/dist/features/blocks/inputs/buttons/components/Checkbox.d.ts.map +0 -1
  139. package/dist/features/blocks/inputs/buttons/components/MultipleChoicesForm.d.ts +0 -11
  140. package/dist/features/blocks/inputs/buttons/components/MultipleChoicesForm.d.ts.map +0 -1
  141. package/dist/features/blocks/inputs/fileUpload/components/SelectedFile.d.ts.map +0 -1
  142. package/dist/features/blocks/inputs/fileUpload/helpers/sanitizeSelectedFiles.d.ts.map +0 -1
  143. package/dist/features/blocks/inputs/fileUpload/helpers/uploadFiles.d.ts.map +0 -1
  144. package/dist/features/blocks/inputs/number/numberInputHelper.d.ts.map +0 -1
  145. package/dist/features/blocks/inputs/payment/helpers/paymentInProgressStorage.d.ts.map +0 -1
  146. package/dist/features/blocks/inputs/pictureChoice/MultiplePictureChoice.d.ts +0 -11
  147. package/dist/features/blocks/inputs/pictureChoice/MultiplePictureChoice.d.ts.map +0 -1
  148. package/dist/features/blocks/inputs/pictureChoice/SinglePictureChoice.d.ts +0 -11
  149. package/dist/features/blocks/inputs/pictureChoice/SinglePictureChoice.d.ts.map +0 -1
  150. package/dist/features/blocks/inputs/textInput/components/TextInput copy.d.ts +0 -11
  151. package/dist/features/blocks/inputs/textInput/components/TextInput copy.d.ts.map +0 -1
  152. package/dist/features/blocks/inputs/textInput/components/TextInput.d.ts.map +0 -1
  153. package/dist/features/blocks/inputs/textInput/components/VoiceRecorder.d.ts.map +0 -1
  154. package/dist/features/blocks/inputs/textInput/components/VolumeProcessor.d.ts.map +0 -1
  155. package/dist/features/blocks/inputs/textInput/index.d.ts +0 -2
  156. package/dist/features/blocks/inputs/textInput/index.d.ts.map +0 -1
  157. package/dist/features/blocks/integrations/googleAnalytics/utils/executeGoogleAnalytics.d.ts +0 -3
  158. package/dist/features/blocks/integrations/googleAnalytics/utils/executeGoogleAnalytics.d.ts.map +0 -1
  159. package/dist/features/blocks/integrations/openai/streamChat.d.ts +0 -17
  160. package/dist/features/blocks/integrations/openai/streamChat.d.ts.map +0 -1
  161. package/dist/features/blocks/logic/setVariable/executeSetVariable.d.ts +0 -6
  162. package/dist/features/blocks/logic/setVariable/executeSetVariable.d.ts.map +0 -1
  163. package/dist/features/bubble/components/PreviewMessage.d.ts.map +0 -1
  164. package/dist/lib/gtag.d.ts +0 -4
  165. package/dist/lib/gtag.d.ts.map +0 -1
  166. package/tsconfig.build.json +0 -23
  167. /package/dist/features/blocks/inputs/fileUpload/{helpers → utils}/uploadFiles.d.ts +0 -0
  168. /package/dist/features/blocks/inputs/number/{numberInputHelper.d.ts → utils/numberInputHelper.d.ts} +0 -0
  169. /package/dist/features/blocks/inputs/payment/{helpers → utils}/paymentInProgressStorage.d.ts +0 -0
  170. /package/dist/features/blocks/inputs/{textInput → text}/components/VolumeProcessor.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VolumeProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/inputs/text/components/VolumeProcessor.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,qkBAyB/B,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { TextInput } from './components/TextInput';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/blocks/inputs/text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA"}
@@ -4,6 +4,8 @@ type Props = {
4
4
  block: UrlInputBlock;
5
5
  defaultValue?: string;
6
6
  onSubmit: (value: InputSubmitContent) => void;
7
+ isInputDisabled?: () => boolean;
8
+ hasError?: boolean;
7
9
  };
8
10
  export declare const UrlInput: (props: Props) => import("solid-js").JSX.Element;
9
11
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"UrlInput.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/inputs/url/components/UrlInput.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAKzD,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,aAAa,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAA;CAC9C,CAAA;AAED,eAAO,MAAM,QAAQ,UAAW,KAAK,mCA+CpC,CAAA"}
1
+ {"version":3,"file":"UrlInput.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/inputs/url/components/UrlInput.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAKzD,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,aAAa,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAA;IAC7C,eAAe,CAAC,EAAE,MAAM,OAAO,CAAA;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,QAAQ,UAAW,KAAK,mCAyDpC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"BubbleButton.d.ts","sourceRoot":"","sources":["../../../../src/features/bubble/components/BubbleButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAGnD,KAAK,KAAK,GAAG,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,GACzC,WAAW,GAAG;IACZ,WAAW,EAAE,OAAO,CAAA;IACpB,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,UAAU,EAAE,GAAG,MAAM,IAAI,CAAA;CAC1B,CAAA;AAOH,eAAO,MAAM,YAAY,UAAW,KAAK,mCA8GxC,CAAA"}
1
+ {"version":3,"file":"BubbleButton.d.ts","sourceRoot":"","sources":["../../../../src/features/bubble/components/BubbleButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAGnD,KAAK,KAAK,GAAG,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,GACzC,WAAW,GAAG;IACZ,WAAW,EAAE,OAAO,CAAA;IACpB,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,UAAU,EAAE,GAAG,MAAM,IAAI,CAAA;CAC1B,CAAA;AAOH,eAAO,MAAM,YAAY,UAAW,KAAK,mCAkIxC,CAAA"}
@@ -5,5 +5,5 @@ export type PreviewMessageProps = Pick<BubbleTheme, 'placement'> & Pick<PreviewM
5
5
  onClick: () => void;
6
6
  onCloseClick: () => void;
7
7
  };
8
- export declare const PreviewMessage: (props: PreviewMessageProps) => import("solid-js").JSX.Element;
9
- //# sourceMappingURL=PreviewMessage.d.ts.map
8
+ export declare const BubbleMessage: (props: PreviewMessageProps) => import("solid-js").JSX.Element;
9
+ //# sourceMappingURL=BubbleMessage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BubbleMessage.d.ts","sourceRoot":"","sources":["../../../../src/features/bubble/components/BubbleMessage.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAG9F,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,GAC9D,IAAI,CAAC,oBAAoB,EAAE,WAAW,GAAG,SAAS,CAAC,GAAG;IACpD,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAC/B,mBAAmB,CAAC,EAAE,mBAAmB,CAAA;IACzC,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,YAAY,EAAE,MAAM,IAAI,CAAA;CACzB,CAAA;AAKH,eAAO,MAAM,aAAa,UAAW,mBAAmB,mCA2DvD,CAAA"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './features/commands';
2
+ export { markdownToRichText } from '@quickbot.io/lib/markdown';
2
3
  export type { BotProps } from './components/Bot';
3
4
  export type { PopupProps } from './features/popup/components/Popup';
4
5
  export type { BubbleProps } from './features/bubble/components/Bubble';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AAEnC,YAAY,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAChD,YAAY,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,YAAY,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAA;AACtE,mBAAmB,yBAAyB,CAAA;AAC5C,mBAAmB,wBAAwB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAE9D,YAAY,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAChD,YAAY,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,YAAY,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAA;AACtE,mBAAmB,yBAAyB,CAAA;AAC5C,mBAAmB,wBAAwB,CAAA"}