@envive-ai/react-widgets-v3 0.3.10 → 0.3.12

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 (266) hide show
  1. package/dist/CXIntegration/hooks/useUnifiedCXButton.cjs +2 -1
  2. package/dist/CXIntegration/hooks/useUnifiedCXButton.js +2 -1
  3. package/dist/CXIntegration/implementations/useGladlyUnifiedCXButton.cjs +6 -0
  4. package/dist/CXIntegration/implementations/useGladlyUnifiedCXButton.js +6 -0
  5. package/dist/CXIntegration/implementations/useGorgiasUnifiedCXButton.cjs +7 -6
  6. package/dist/CXIntegration/implementations/useGorgiasUnifiedCXButton.js +7 -6
  7. package/dist/CXIntegration/implementations/useGrooveUnifiedCXButton.cjs +10 -11
  8. package/dist/CXIntegration/implementations/useGrooveUnifiedCXButton.js +10 -11
  9. package/dist/CXIntegration/implementations/useKustomerUnifiedCXButton.cjs +10 -7
  10. package/dist/CXIntegration/implementations/useKustomerUnifiedCXButton.js +10 -7
  11. package/dist/CXIntegration/implementations/useReDoUnifiedCXButton.cjs +2 -2
  12. package/dist/CXIntegration/implementations/useReDoUnifiedCXButton.js +2 -2
  13. package/dist/CXIntegration/implementations/useRichpanelUnifiedCXButton.cjs +9 -7
  14. package/dist/CXIntegration/implementations/useRichpanelUnifiedCXButton.js +9 -7
  15. package/dist/CXIntegration/implementations/useShopifyChatUnifiedCXButton.cjs +13 -16
  16. package/dist/CXIntegration/implementations/useShopifyChatUnifiedCXButton.js +13 -16
  17. package/dist/CXIntegration/implementations/useTidioUnifiedCXButton.cjs +6 -0
  18. package/dist/CXIntegration/implementations/useTidioUnifiedCXButton.js +6 -0
  19. package/dist/CXIntegration/implementations/useZendeskUnifiedCXButton.cjs +7 -5
  20. package/dist/CXIntegration/implementations/useZendeskUnifiedCXButton.js +7 -5
  21. package/dist/CXIntegration/implementations/useZowieUnifiedCXButton.cjs +6 -0
  22. package/dist/CXIntegration/implementations/useZowieUnifiedCXButton.js +6 -0
  23. package/dist/_virtual/rolldown_runtime.cjs +2 -0
  24. package/dist/debug/GenericSelect.cjs +167 -0
  25. package/dist/debug/GenericSelect.js +165 -0
  26. package/dist/debug/MessageContent.cjs +151 -0
  27. package/dist/debug/MessageContent.js +149 -0
  28. package/dist/debug/chatEmbed.cjs +95 -0
  29. package/dist/debug/chatEmbed.js +92 -0
  30. package/dist/debug/debugBar.cjs +17 -0
  31. package/dist/debug/debugBar.js +16 -0
  32. package/dist/debug/reportIssue.cjs +528 -0
  33. package/dist/debug/reportIssue.js +524 -0
  34. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/apis/CustomerServiceApi.cjs +265 -0
  35. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/apis/DefaultApi.cjs +591 -0
  36. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/apis/InferenceApi.cjs +265 -0
  37. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/apis/ProductsApi.cjs +105 -0
  38. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/apis/SearchApi.cjs +229 -0
  39. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/apis/index.cjs +43 -0
  40. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/index.cjs +39 -0
  41. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/AddNoteToLatestConversationRequest.cjs +68 -0
  42. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/AddNoteToLatestConversationResponse.cjs +60 -0
  43. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/AddToCartAttributes.cjs +53 -0
  44. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/AnalyticsIdentifyRequest.cjs +86 -0
  45. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/AnalyticsTrackEventRequest.cjs +62 -0
  46. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/AttachmentRequest.cjs +63 -0
  47. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/AutoForm.cjs +55 -0
  48. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/Context.cjs +89 -0
  49. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ConversationStatus.cjs +63 -0
  50. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/CreateConversationRequest.cjs +68 -0
  51. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/CreateConversationResponse.cjs +64 -0
  52. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/CustServiceAttachment.cjs +68 -0
  53. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/CustServiceConversation.cjs +69 -0
  54. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/CustServiceConversationMessages.cjs +67 -0
  55. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/CustServiceCustomer.cjs +60 -0
  56. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/CustServiceMessage.cjs +85 -0
  57. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/CustomerServiceProvider.cjs +63 -0
  58. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/FormResponseAttributes.cjs +61 -0
  59. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/FormResponseAttributesFormCategory.cjs +55 -0
  60. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/FormSubmittedAttributes.cjs +65 -0
  61. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/FormType.cjs +61 -0
  62. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/FulfillmentDisplayStatus.cjs +84 -0
  63. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/GenerationParams.cjs +74 -0
  64. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/GetConversationMessagesRequest.cjs +61 -0
  65. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/IsBusinessHoursRequest.cjs +54 -0
  66. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/IsBusinessHoursResponse.cjs +59 -0
  67. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/LabelValue.cjs +60 -0
  68. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ManualForm.cjs +55 -0
  69. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/MerchRule.cjs +70 -0
  70. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/MerchRuleAction.cjs +62 -0
  71. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/MerchRuleActionAttribute.cjs +58 -0
  72. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/MerchRuleActionType.cjs +64 -0
  73. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/MerchRuleCondition.cjs +60 -0
  74. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/MerchRuleOp.cjs +61 -0
  75. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/MerchRuleStatus.cjs +62 -0
  76. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/NextMessageRequest.cjs +78 -0
  77. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/OrderItemInfo.cjs +78 -0
  78. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/OrderResponseAttributes.cjs +71 -0
  79. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/Organization.cjs +83 -0
  80. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/OrganizationConfig.cjs +82 -0
  81. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/OrganizationConfigResults.cjs +70 -0
  82. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/OrganizationSettings.cjs +62 -0
  83. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/PDPAttributes.cjs +61 -0
  84. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/PLPAttributeCategory.cjs +61 -0
  85. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/PLPAttributes.cjs +64 -0
  86. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/PLPAttributesAttributes.cjs +55 -0
  87. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/PLPIdAttributes.cjs +53 -0
  88. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/PLPUrlAttributes.cjs +53 -0
  89. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/PageVisitAttributes.cjs +62 -0
  90. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/PageVisitCategory.cjs +65 -0
  91. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ProductRetrievalRequest.cjs +62 -0
  92. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ProductRetrievalResponse.cjs +55 -0
  93. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ProductSearchFilterResponseAttributes.cjs +53 -0
  94. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ProductSearchRequest.cjs +71 -0
  95. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ProductSearchResponse.cjs +64 -0
  96. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ProductSearchResponseAttributes.cjs +60 -0
  97. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ProductSearchResponseV2.cjs +64 -0
  98. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/QueryTypedAttributes.cjs +53 -0
  99. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ReportContent.cjs +59 -0
  100. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ReportSessionRequest.cjs +99 -0
  101. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/Response.cjs +68 -0
  102. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ResponseCategory.cjs +69 -0
  103. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ResponseProductAttributes.cjs +91 -0
  104. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/SearchAttributes.cjs +65 -0
  105. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/SearchResponseProduct.cjs +93 -0
  106. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/SearchSuggestionsResponse.cjs +58 -0
  107. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/SendMessageRequest.cjs +71 -0
  108. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/SendMessageResponse.cjs +55 -0
  109. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/StatsigExperiment.cjs +64 -0
  110. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/StatsigFeatureGate.cjs +62 -0
  111. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/Suggestion.cjs +70 -0
  112. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/SuggestionCategory.cjs +62 -0
  113. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/SuggestionClickedAttributes.cjs +53 -0
  114. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/SupportedEventProductCategory.cjs +62 -0
  115. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/SupportedEventRequest.cjs +67 -0
  116. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/SupportedEventResponse.cjs +78 -0
  117. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/TurnInfo.cjs +70 -0
  118. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/TurnInfoPrevUserEvent.cjs +60 -0
  119. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UrlResolvingGenericConfig.cjs +52 -0
  120. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UrlResolvingPDPConfig.cjs +65 -0
  121. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UrlResolvingPLPConfig.cjs +61 -0
  122. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UrlResolvingRequest.cjs +69 -0
  123. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UrlResolvingResponse.cjs +73 -0
  124. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UrlResolvingResponseSpecificDetails.cjs +59 -0
  125. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UrlResolvingType.cjs +67 -0
  126. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UserEvent.cjs +69 -0
  127. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UserEventAttributes.cjs +75 -0
  128. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UserEventCategory.cjs +70 -0
  129. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/V1GetSessionMessages200Response.cjs +67 -0
  130. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/V1SearchExplainGet200Response.cjs +63 -0
  131. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/WidgetString.cjs +60 -0
  132. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/WidgetTextRequest.cjs +75 -0
  133. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/WidgetTextResponse.cjs +66 -0
  134. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/WidgetType.cjs +69 -0
  135. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/index.cjs +221 -0
  136. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/runtime.cjs +324 -0
  137. package/dist/node_modules/react-icons/fa/index.cjs +65 -0
  138. package/dist/node_modules/react-icons/fa/index.js +61 -0
  139. package/dist/node_modules/react-icons/lib/iconBase.cjs +121 -0
  140. package/dist/node_modules/react-icons/lib/iconBase.js +119 -0
  141. package/dist/node_modules/react-icons/lib/iconContext.cjs +17 -0
  142. package/dist/node_modules/react-icons/lib/iconContext.js +14 -0
  143. package/dist/packages/icons/dist/IconCloseVariant.cjs +22 -0
  144. package/dist/packages/icons/dist/IconCloseVariant.js +22 -0
  145. package/dist/packages/icons/dist/_virtual/rolldown_runtime.cjs +27 -0
  146. package/dist/packages/icons/dist/_virtual/rolldown_runtime.js +25 -0
  147. package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs +696 -0
  148. package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.development.js +696 -0
  149. package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.production.min.cjs +43 -0
  150. package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +43 -0
  151. package/dist/packages/icons/dist/node_modules/react/cjs/react.development.cjs +1528 -0
  152. package/dist/packages/icons/dist/node_modules/react/cjs/react.development.js +1528 -0
  153. package/dist/packages/icons/dist/node_modules/react/cjs/react.production.min.cjs +329 -0
  154. package/dist/packages/icons/dist/node_modules/react/cjs/react.production.min.js +329 -0
  155. package/dist/packages/icons/dist/node_modules/react/index.cjs +13 -0
  156. package/dist/packages/icons/dist/node_modules/react/index.js +13 -0
  157. package/dist/packages/icons/dist/node_modules/react/jsx-runtime.cjs +13 -0
  158. package/dist/packages/icons/dist/node_modules/react/jsx-runtime.js +13 -0
  159. package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.cjs +3 -3
  160. package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.d.cts +3 -3
  161. package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.d.ts +3 -3
  162. package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.js +3 -3
  163. package/dist/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.d.cts +3 -3
  164. package/dist/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.d.ts +3 -3
  165. package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.cjs +3 -3
  166. package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.d.cts +3 -3
  167. package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.d.ts +3 -3
  168. package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.js +3 -3
  169. package/dist/widgets/FloatingChatWidget/FloatingChatOverlay.cjs +2 -2
  170. package/dist/widgets/FloatingChatWidget/FloatingChatOverlay.js +1 -1
  171. package/dist/widgets/FloatingChatWidget/FloatingChatWidget.cjs +66 -36
  172. package/dist/widgets/FloatingChatWidget/FloatingChatWidget.d.cts +2 -2
  173. package/dist/widgets/FloatingChatWidget/FloatingChatWidget.d.ts +2 -2
  174. package/dist/widgets/FloatingChatWidget/FloatingChatWidget.js +67 -37
  175. package/dist/widgets/FloatingChatWidget/hooks/useAutoPopup.cjs +50 -0
  176. package/dist/widgets/FloatingChatWidget/hooks/useAutoPopup.js +49 -0
  177. package/dist/widgets/FloatingChatWidget/hooks/useFloatingButtonVisibility.cjs +4 -1
  178. package/dist/widgets/FloatingChatWidget/hooks/useFloatingButtonVisibility.js +5 -2
  179. package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.cjs +31 -0
  180. package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.d.cts +15 -0
  181. package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.d.ts +15 -0
  182. package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.js +30 -0
  183. package/dist/widgets/FullPageSalesAgentWidget/index.cjs +3 -0
  184. package/dist/widgets/FullPageSalesAgentWidget/index.d.cts +2 -0
  185. package/dist/widgets/FullPageSalesAgentWidget/index.d.ts +2 -0
  186. package/dist/widgets/FullPageSalesAgentWidget/index.js +3 -0
  187. package/dist/widgets/ProductCardWidget/ProductCardWidget.cjs +3 -2
  188. package/dist/widgets/ProductCardWidget/ProductCardWidget.d.cts +2 -2
  189. package/dist/widgets/ProductCardWidget/ProductCardWidget.d.ts +2 -2
  190. package/dist/widgets/ProductCardWidget/ProductCardWidget.js +3 -2
  191. package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.cjs +4 -3
  192. package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.d.cts +3 -3
  193. package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.d.ts +3 -3
  194. package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.js +4 -3
  195. package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.cjs +29 -5
  196. package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.d.cts +2 -2
  197. package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.d.ts +2 -2
  198. package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.js +30 -6
  199. package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.d.cts +2 -2
  200. package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.d.ts +2 -2
  201. package/dist/widgets/SocialProofWidget/SocialProofWidget.cjs +8 -6
  202. package/dist/widgets/SocialProofWidget/SocialProofWidget.d.cts +3 -3
  203. package/dist/widgets/SocialProofWidget/SocialProofWidget.js +8 -6
  204. package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.cjs +4 -3
  205. package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.d.cts +2 -2
  206. package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.d.ts +2 -2
  207. package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.js +4 -3
  208. package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.d.cts +2 -2
  209. package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.d.ts +2 -2
  210. package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.cjs +3 -2
  211. package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.d.cts +3 -3
  212. package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.d.ts +3 -3
  213. package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.js +3 -2
  214. package/dist/widgets/utils/functions.cjs +1 -1
  215. package/dist/widgets/utils/functions.js +1 -1
  216. package/dist/widgets-v2/SearchResults/index.d.ts +3 -3
  217. package/dist/widgets-v2/SearchZeroState/index.d.ts +4 -4
  218. package/dist/widgets-v2/SuggestionBar/index.d.ts +3 -3
  219. package/dist/widgets-v2/SuggestionButtonContainer/index.d.ts +2 -2
  220. package/package.json +5 -1
  221. package/src/CXIntegration/hooks/useUnifiedCXButton.ts +4 -1
  222. package/src/CXIntegration/implementations/useGladlyUnifiedCXButton.ts +5 -0
  223. package/src/CXIntegration/implementations/useGorgiasUnifiedCXButton.ts +11 -8
  224. package/src/CXIntegration/implementations/useGrooveUnifiedCXButton.ts +12 -15
  225. package/src/CXIntegration/implementations/useKustomerUnifiedCXButton.ts +11 -11
  226. package/src/CXIntegration/implementations/useReDoUnifiedCXButton.ts +2 -4
  227. package/src/CXIntegration/implementations/useRichpanelUnifiedCXButton.ts +9 -10
  228. package/src/CXIntegration/implementations/useShopifyChatUnifiedCXButton.ts +18 -28
  229. package/src/CXIntegration/implementations/useTidioUnifiedCXButton.ts +5 -0
  230. package/src/CXIntegration/implementations/useZendeskUnifiedCXButton.ts +11 -6
  231. package/src/CXIntegration/implementations/useZowieUnifiedCXButton.ts +5 -0
  232. package/src/CXIntegration/types.ts +1 -0
  233. package/src/debug/GenericSelect.tsx +236 -0
  234. package/src/debug/MessageContent.tsx +248 -0
  235. package/src/debug/chatEmbed.tsx +119 -0
  236. package/src/debug/debugBar.tsx +12 -0
  237. package/src/debug/reportIssue.tsx +649 -0
  238. package/src/hocs/withBaseWidget/__tests__/withBaseWidget.test.tsx +6 -0
  239. package/src/stories/FullPageSalesAgentWidget.stories.tsx +68 -0
  240. package/src/stories/SalesAgentTest/SalesAgentTest.tsx +10 -2
  241. package/src/widgets/FloatingChatWidget/FloatingChatWidget.tsx +110 -65
  242. package/src/widgets/FloatingChatWidget/hooks/useAutoPopup.ts +65 -0
  243. package/src/widgets/FloatingChatWidget/hooks/useFloatingButtonVisibility.ts +11 -5
  244. package/src/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.tsx +46 -0
  245. package/src/widgets/FullPageSalesAgentWidget/index.ts +1 -0
  246. package/src/widgets/ProductCardWidget/ProductCardWidget.tsx +5 -1
  247. package/src/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.tsx +6 -1
  248. package/src/widgets/PromptCarouselWidget/PromptCarouselWidget.tsx +32 -3
  249. package/src/widgets/SocialProofWidget/SocialProofWidget.tsx +10 -2
  250. package/src/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.tsx +6 -2
  251. package/src/widgets/TypingAnimationWidget/TypingAnimationWidget.tsx +5 -1
  252. /package/dist/{widgets → packages/widgets}/dist/SearchResults/SearchResults.d.ts +0 -0
  253. /package/dist/{widgets → packages/widgets}/dist/SearchResults/SearchResultsWidget.d.ts +0 -0
  254. /package/dist/{widgets → packages/widgets}/dist/SearchResults/index.d.ts +0 -0
  255. /package/dist/{widgets → packages/widgets}/dist/SearchResults/types.d.ts +0 -0
  256. /package/dist/{widgets → packages/widgets}/dist/SearchZeroState/SearchZeroState.d.ts +0 -0
  257. /package/dist/{widgets → packages/widgets}/dist/SearchZeroState/SearchZeroStateWidget.d.ts +0 -0
  258. /package/dist/{widgets → packages/widgets}/dist/SearchZeroState/index.d.ts +0 -0
  259. /package/dist/{widgets → packages/widgets}/dist/SearchZeroState/types.d.ts +0 -0
  260. /package/dist/{widgets → packages/widgets}/dist/SuggestionBar/SuggestionBar.d.ts +0 -0
  261. /package/dist/{widgets → packages/widgets}/dist/SuggestionBar/index.d.ts +0 -0
  262. /package/dist/{widgets → packages/widgets}/dist/SuggestionBar/types.d.ts +0 -0
  263. /package/dist/{widgets → packages/widgets}/dist/SuggestionButtonContainer/SuggestionButtonContainer.d.ts +0 -0
  264. /package/dist/{widgets → packages/widgets}/dist/SuggestionButtonContainer/types.d.ts +0 -0
  265. /package/dist/{widgets → packages/widgets}/dist/config/BaseWidgetConfig.d.ts +0 -0
  266. /package/dist/{widgets → packages/widgets}/dist/config/WidgetType.d.ts +0 -0
@@ -0,0 +1,149 @@
1
+ import { FaFile, FaLink, FaPaperclip, FaSearch, FaTag } from "../node_modules/react-icons/fa/index.js";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { MessageType } from "@envive-ai/react-hooks/application/models";
4
+ import classNames from "classnames";
5
+ import { ReviewCard } from "@envive-ai/react-toolkit-v3/ReviewCard";
6
+ import { Message } from "@envive-ai/react-toolkit-v3/Message";
7
+
8
+ //#region src/debug/MessageContent.tsx
9
+ const textContentMessageTypes = new Set([
10
+ MessageType.Text,
11
+ MessageType.QueryTyped,
12
+ MessageType.SuggestionClicked,
13
+ MessageType.CXAgentResponse
14
+ ]);
15
+ const containerClassNames = classNames({
16
+ "envive-tw-flex": true,
17
+ "envive-tw-flex-col": true,
18
+ "envive-tw-gap-1": true
19
+ });
20
+ const fontSemiboldClassNames = classNames({ "envive-tw-font-semibold": true });
21
+ const flexItemsClassNames = classNames({
22
+ "envive-tw-flex": true,
23
+ "envive-tw-items-center": true
24
+ });
25
+ const gap1ClassNames = classNames({ "envive-tw-gap-1": true });
26
+ const textLinkClassNames = classNames({
27
+ "envive-tw-text-[--spiffy-colors-text-link]": true,
28
+ "envive-tw-underline": true
29
+ });
30
+ const textLgClassNames = classNames({ "envive-tw-text-lg": true });
31
+ const iconClassNames = classNames({
32
+ "envive-tw-w-3": true,
33
+ "envive-tw-h-3": true
34
+ });
35
+ const MessageContent = ({ message: m }) => {
36
+ if (textContentMessageTypes.has(m.type)) {
37
+ if (m.type === MessageType.Text) return /* @__PURE__ */ jsx(Message, { content: m.metadata.content }, m.id);
38
+ if (m.type === MessageType.QueryTyped) return /* @__PURE__ */ jsx(Message, { content: m.metadata.content }, m.id);
39
+ if (m.type === MessageType.SuggestionClicked) return /* @__PURE__ */ jsx(Message, { content: m.metadata.suggestionContent }, m.id);
40
+ if (m.type === MessageType.CXAgentResponse) return /* @__PURE__ */ jsx(Message, { content: m.metadata.message }, m.id);
41
+ return /* @__PURE__ */ jsx(Message, { content: "unknown" }, m.id);
42
+ }
43
+ if (m.type === MessageType.Product) return /* @__PURE__ */ jsxs("div", {
44
+ className: classNames(flexItemsClassNames, gap1ClassNames, "envive-tw-text-sm"),
45
+ children: [/* @__PURE__ */ jsx(FaTag, { className: iconClassNames }), /* @__PURE__ */ jsx("a", {
46
+ href: m.metadata.url,
47
+ target: "_blank",
48
+ rel: "noopener noreferrer",
49
+ className: textLinkClassNames,
50
+ children: m.metadata.title
51
+ })]
52
+ });
53
+ if (m.type === MessageType.Review) return /* @__PURE__ */ jsx(ReviewCard, {
54
+ name: m.metadata?.reviewer ?? "",
55
+ rating: m.metadata?.stars ?? 0,
56
+ reviewText: m.metadata?.review ?? ""
57
+ });
58
+ if (m.type === MessageType.Separator) return /* @__PURE__ */ jsxs("div", {
59
+ className: "envive-tw-relative envive-tw-flex envive-tw-w-full envive-tw-items-center envive-tw-p-2",
60
+ children: [
61
+ /* @__PURE__ */ jsx("div", { className: "envive-tw-flex-grow envive-tw-border-t envive-tw-border-gray-500" }),
62
+ /* @__PURE__ */ jsx("span", {
63
+ className: "envive-tw-flex-shrink envive-tw-px-4 envive-tw-text-sm envive-tw-text-gray-500",
64
+ children: "New Discussion"
65
+ }),
66
+ /* @__PURE__ */ jsx("div", { className: "envive-tw-flex-grow envive-tw-border-t envive-tw-border-gray-500" })
67
+ ]
68
+ });
69
+ if (m.type === MessageType.Page) return /* @__PURE__ */ jsxs("div", {
70
+ className: containerClassNames,
71
+ children: [/* @__PURE__ */ jsxs("div", {
72
+ className: classNames(fontSemiboldClassNames, flexItemsClassNames, gap1ClassNames),
73
+ children: [/* @__PURE__ */ jsx(FaFile, { className: iconClassNames }), /* @__PURE__ */ jsx("span", {
74
+ className: classNames(textLgClassNames, fontSemiboldClassNames),
75
+ children: m.metadata?.title
76
+ })]
77
+ }), m.metadata?.url && /* @__PURE__ */ jsxs("div", {
78
+ className: classNames(flexItemsClassNames, gap1ClassNames),
79
+ children: [/* @__PURE__ */ jsx(FaLink, { className: iconClassNames }), /* @__PURE__ */ jsx("a", {
80
+ href: m.metadata.url,
81
+ target: "_blank",
82
+ rel: "noopener noreferrer",
83
+ className: textLinkClassNames,
84
+ children: m.metadata.url
85
+ })]
86
+ })]
87
+ });
88
+ if (m.type === MessageType.Search) return /* @__PURE__ */ jsxs("div", {
89
+ className: containerClassNames,
90
+ children: [/* @__PURE__ */ jsxs("div", {
91
+ className: classNames(fontSemiboldClassNames, flexItemsClassNames, gap1ClassNames),
92
+ children: [/* @__PURE__ */ jsx(FaSearch, { className: iconClassNames }), " Search"]
93
+ }), /* @__PURE__ */ jsx("div", { children: m.metadata?.searchTerm })]
94
+ });
95
+ if (m.type === MessageType.Attachment) return /* @__PURE__ */ jsxs("div", {
96
+ className: containerClassNames,
97
+ children: [
98
+ /* @__PURE__ */ jsxs("div", {
99
+ className: classNames(fontSemiboldClassNames, flexItemsClassNames, gap1ClassNames),
100
+ children: [/* @__PURE__ */ jsx(FaPaperclip, { className: iconClassNames }), " Attachment"]
101
+ }),
102
+ /* @__PURE__ */ jsx("div", { children: m.metadata?.message }),
103
+ m.metadata?.attachment.map((attachment) => /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("a", {
104
+ href: attachment.url ?? "",
105
+ target: "_blank",
106
+ rel: "noopener noreferrer",
107
+ className: textLinkClassNames,
108
+ children: attachment.name
109
+ }) }, attachment.id))
110
+ ]
111
+ });
112
+ if (m.type === MessageType.Form) return /* @__PURE__ */ jsxs("div", {
113
+ className: containerClassNames,
114
+ children: [/* @__PURE__ */ jsxs("div", {
115
+ className: classNames(fontSemiboldClassNames, flexItemsClassNames, gap1ClassNames),
116
+ children: [/* @__PURE__ */ jsx(FaPaperclip, { className: iconClassNames }), " Form Request"]
117
+ }), /* @__PURE__ */ jsx("div", { children: m.metadata?.formType })]
118
+ });
119
+ if (m.type === MessageType.ProductSearch) return /* @__PURE__ */ jsxs("div", {
120
+ className: containerClassNames,
121
+ children: [/* @__PURE__ */ jsxs("div", {
122
+ className: classNames(fontSemiboldClassNames, flexItemsClassNames, gap1ClassNames),
123
+ children: [/* @__PURE__ */ jsx(FaPaperclip, { className: iconClassNames }), " Product Search Results"]
124
+ }), /* @__PURE__ */ jsxs("div", { children: [
125
+ m.metadata?.generatedQuery,
126
+ " - ",
127
+ m.metadata?.productCount,
128
+ " results"
129
+ ] })]
130
+ });
131
+ if (m.type === MessageType.ProductSearchFilter) return /* @__PURE__ */ jsxs("div", {
132
+ className: containerClassNames,
133
+ children: [/* @__PURE__ */ jsxs("div", {
134
+ className: classNames(fontSemiboldClassNames, flexItemsClassNames, gap1ClassNames),
135
+ children: [/* @__PURE__ */ jsx(FaPaperclip, { className: iconClassNames }), " Product Search Filter"]
136
+ }), /* @__PURE__ */ jsxs("div", { children: ["Filter: ", m.metadata?.filterName] })]
137
+ });
138
+ if (m.type === MessageType.Order) return /* @__PURE__ */ jsxs("div", {
139
+ className: containerClassNames,
140
+ children: [/* @__PURE__ */ jsxs("div", {
141
+ className: classNames(fontSemiboldClassNames, flexItemsClassNames, gap1ClassNames),
142
+ children: [/* @__PURE__ */ jsx(FaPaperclip, { className: iconClassNames }), " Order Information"]
143
+ }), /* @__PURE__ */ jsxs("div", { children: ["OrderNumber: ", m.metadata?.orderNumber] })]
144
+ });
145
+ throw new Error(`Unsupported message type: ${JSON.stringify(m)}`);
146
+ };
147
+
148
+ //#endregion
149
+ export { MessageContent };
@@ -0,0 +1,95 @@
1
+ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
+ const require_MessageContent = require('./MessageContent.cjs');
3
+ let react = require("react");
4
+ react = require_rolldown_runtime.__toESM(react);
5
+ let react_jsx_runtime = require("react/jsx-runtime");
6
+ let jotai = require("jotai");
7
+ let __envive_ai_react_hooks_atoms_chat = require("@envive-ai/react-hooks/atoms/chat");
8
+ let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
9
+ let __envive_ai_react_toolkit_v3_PromptCarousel = require("@envive-ai/react-toolkit-v3/PromptCarousel");
10
+ let classnames = require("classnames");
11
+ classnames = require_rolldown_runtime.__toESM(classnames);
12
+
13
+ //#region src/debug/chatEmbed.tsx
14
+ const containerClassNames = (0, classnames.default)({
15
+ "envive-tw-font-sans": true,
16
+ "envive-tw-text-base": true,
17
+ "envive-tw-leading-6": true,
18
+ "envive-tw-font-normal": true
19
+ });
20
+ const messagesContainerClassNames = (0, classnames.default)({
21
+ "envive-tw-flex": true,
22
+ "envive-tw-flex-col": true,
23
+ "envive-tw-gap-4": true
24
+ });
25
+ const turnContainerClassNames = (0, classnames.default)({
26
+ "envive-tw-flex": true,
27
+ "envive-tw-flex-col": true,
28
+ "envive-tw-gap-2": true
29
+ });
30
+ const messageBodyClassNames = (0, classnames.default)({ "envive-tw-whitespace-pre-wrap": true });
31
+ const lastTurnClassNames = (0, classnames.default)({
32
+ "envive-tw-bg-[#FFFFF0]": true,
33
+ "envive-tw-p-2": true,
34
+ "envive-tw-rounded-lg": true
35
+ });
36
+ const lastTurnContentClassNames = (0, classnames.default)({
37
+ "envive-tw-flex": true,
38
+ "envive-tw-flex-col": true,
39
+ "envive-tw-gap-2": true
40
+ });
41
+ const ChatEmbed = () => {
42
+ const { messages, suggestions } = (0, jotai.useAtomValue)(__envive_ai_react_hooks_atoms_chat.chatAtom);
43
+ const lastTurnRef = react.default.useRef(null);
44
+ react.default.useEffect(() => {
45
+ if (lastTurnRef.current && messages.length > 0) lastTurnRef.current.scrollIntoView({
46
+ behavior: "smooth",
47
+ block: "nearest"
48
+ });
49
+ }, [messages]);
50
+ const answerSuggestions = suggestions.filter((s) => s.isAnswer);
51
+ const generalSuggestions = suggestions.filter((s) => !s.isAnswer);
52
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
53
+ className: containerClassNames,
54
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
55
+ className: messagesContainerClassNames,
56
+ children: messages.map((turn, turnIdx) => {
57
+ const isLastTurn = turnIdx === messages.length - 1;
58
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
59
+ className: turnContainerClassNames,
60
+ children: turn.filter((m) => m.type === __envive_ai_react_hooks_application_models.MessageType.Separator).map((message) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
61
+ className: messageBodyClassNames,
62
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MessageContent.MessageContent, { message })
63
+ }) }, message.id))
64
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
65
+ ref: isLastTurn ? lastTurnRef : null,
66
+ className: `${turnContainerClassNames} ${isLastTurn ? lastTurnClassNames : ""}`,
67
+ children: turn.filter((m) => m.type !== __envive_ai_react_hooks_application_models.MessageType.Separator).map((message) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
68
+ className: messageBodyClassNames,
69
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MessageContent.MessageContent, { message })
70
+ }) }, message.id))
71
+ })] }, turnIdx);
72
+ })
73
+ }), suggestions.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
74
+ className: lastTurnClassNames,
75
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
76
+ className: lastTurnContentClassNames,
77
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_toolkit_v3_PromptCarousel.PromptCarousel, {
78
+ promptButtonTexts: answerSuggestions.map((s) => s.content),
79
+ handleButtonClick: () => {},
80
+ promptCarouselRows: __envive_ai_react_toolkit_v3_PromptCarousel.PromptCarouselRows.ALWAYS_ONE,
81
+ isLoading: false
82
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_toolkit_v3_PromptCarousel.PromptCarousel, {
83
+ promptButtonTexts: generalSuggestions.map((s) => s.content),
84
+ handleButtonClick: () => {},
85
+ promptCarouselRows: __envive_ai_react_toolkit_v3_PromptCarousel.PromptCarouselRows.ALWAYS_ONE,
86
+ isLoading: false
87
+ })]
88
+ })
89
+ })]
90
+ });
91
+ };
92
+ var chatEmbed_default = ChatEmbed;
93
+
94
+ //#endregion
95
+ exports.default = chatEmbed_default;
@@ -0,0 +1,92 @@
1
+ import { MessageContent } from "./MessageContent.js";
2
+ import React from "react";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { useAtomValue } from "jotai";
5
+ import { chatAtom } from "@envive-ai/react-hooks/atoms/chat";
6
+ import { MessageType } from "@envive-ai/react-hooks/application/models";
7
+ import { PromptCarousel, PromptCarouselRows } from "@envive-ai/react-toolkit-v3/PromptCarousel";
8
+ import classNames from "classnames";
9
+
10
+ //#region src/debug/chatEmbed.tsx
11
+ const containerClassNames = classNames({
12
+ "envive-tw-font-sans": true,
13
+ "envive-tw-text-base": true,
14
+ "envive-tw-leading-6": true,
15
+ "envive-tw-font-normal": true
16
+ });
17
+ const messagesContainerClassNames = classNames({
18
+ "envive-tw-flex": true,
19
+ "envive-tw-flex-col": true,
20
+ "envive-tw-gap-4": true
21
+ });
22
+ const turnContainerClassNames = classNames({
23
+ "envive-tw-flex": true,
24
+ "envive-tw-flex-col": true,
25
+ "envive-tw-gap-2": true
26
+ });
27
+ const messageBodyClassNames = classNames({ "envive-tw-whitespace-pre-wrap": true });
28
+ const lastTurnClassNames = classNames({
29
+ "envive-tw-bg-[#FFFFF0]": true,
30
+ "envive-tw-p-2": true,
31
+ "envive-tw-rounded-lg": true
32
+ });
33
+ const lastTurnContentClassNames = classNames({
34
+ "envive-tw-flex": true,
35
+ "envive-tw-flex-col": true,
36
+ "envive-tw-gap-2": true
37
+ });
38
+ const ChatEmbed = () => {
39
+ const { messages, suggestions } = useAtomValue(chatAtom);
40
+ const lastTurnRef = React.useRef(null);
41
+ React.useEffect(() => {
42
+ if (lastTurnRef.current && messages.length > 0) lastTurnRef.current.scrollIntoView({
43
+ behavior: "smooth",
44
+ block: "nearest"
45
+ });
46
+ }, [messages]);
47
+ const answerSuggestions = suggestions.filter((s) => s.isAnswer);
48
+ const generalSuggestions = suggestions.filter((s) => !s.isAnswer);
49
+ return /* @__PURE__ */ jsxs("div", {
50
+ className: containerClassNames,
51
+ children: [/* @__PURE__ */ jsx("div", {
52
+ className: messagesContainerClassNames,
53
+ children: messages.map((turn, turnIdx) => {
54
+ const isLastTurn = turnIdx === messages.length - 1;
55
+ return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("div", {
56
+ className: turnContainerClassNames,
57
+ children: turn.filter((m) => m.type === MessageType.Separator).map((message) => /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("div", {
58
+ className: messageBodyClassNames,
59
+ children: /* @__PURE__ */ jsx(MessageContent, { message })
60
+ }) }, message.id))
61
+ }), /* @__PURE__ */ jsx("div", {
62
+ ref: isLastTurn ? lastTurnRef : null,
63
+ className: `${turnContainerClassNames} ${isLastTurn ? lastTurnClassNames : ""}`,
64
+ children: turn.filter((m) => m.type !== MessageType.Separator).map((message) => /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("div", {
65
+ className: messageBodyClassNames,
66
+ children: /* @__PURE__ */ jsx(MessageContent, { message })
67
+ }) }, message.id))
68
+ })] }, turnIdx);
69
+ })
70
+ }), suggestions.length > 0 && /* @__PURE__ */ jsx("div", {
71
+ className: lastTurnClassNames,
72
+ children: /* @__PURE__ */ jsxs("div", {
73
+ className: lastTurnContentClassNames,
74
+ children: [/* @__PURE__ */ jsx(PromptCarousel, {
75
+ promptButtonTexts: answerSuggestions.map((s) => s.content),
76
+ handleButtonClick: () => {},
77
+ promptCarouselRows: PromptCarouselRows.ALWAYS_ONE,
78
+ isLoading: false
79
+ }), /* @__PURE__ */ jsx(PromptCarousel, {
80
+ promptButtonTexts: generalSuggestions.map((s) => s.content),
81
+ handleButtonClick: () => {},
82
+ promptCarouselRows: PromptCarouselRows.ALWAYS_ONE,
83
+ isLoading: false
84
+ })]
85
+ })
86
+ })]
87
+ });
88
+ };
89
+ var chatEmbed_default = ChatEmbed;
90
+
91
+ //#endregion
92
+ export { chatEmbed_default as default };
@@ -0,0 +1,17 @@
1
+ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
+ const require_reportIssue = require('./reportIssue.cjs');
3
+ let react_jsx_runtime = require("react/jsx-runtime");
4
+ let __envive_ai_react_hooks_hooks_SystemSettingsContext = require("@envive-ai/react-hooks/hooks/SystemSettingsContext");
5
+
6
+ //#region src/debug/debugBar.tsx
7
+ const DebugBar = () => {
8
+ const { showDebugBar } = (0, __envive_ai_react_hooks_hooks_SystemSettingsContext.useSystemSettingsContext)();
9
+ if (!showDebugBar) return null;
10
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
11
+ className: "envive-tw-flex envive-tw-items-center envive-tw-p-[4px]",
12
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_reportIssue.ReportIssue, {})
13
+ });
14
+ };
15
+
16
+ //#endregion
17
+ exports.DebugBar = DebugBar;
@@ -0,0 +1,16 @@
1
+ import { ReportIssue } from "./reportIssue.js";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { useSystemSettingsContext } from "@envive-ai/react-hooks/hooks/SystemSettingsContext";
4
+
5
+ //#region src/debug/debugBar.tsx
6
+ const DebugBar = () => {
7
+ const { showDebugBar } = useSystemSettingsContext();
8
+ if (!showDebugBar) return null;
9
+ return /* @__PURE__ */ jsx("div", {
10
+ className: "envive-tw-flex envive-tw-items-center envive-tw-p-[4px]",
11
+ children: /* @__PURE__ */ jsx(ReportIssue, {})
12
+ });
13
+ };
14
+
15
+ //#endregion
16
+ export { DebugBar };