@yext/chat-ui-react 0.5.2 → 0.5.4

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 (297) hide show
  1. package/THIRD-PARTY-NOTICES +3 -3
  2. package/lib/bundle.css +1 -1
  3. package/lib/commonjs/package.json +100 -0
  4. package/lib/commonjs/src/components/ChatHeader.d.ts.map +1 -0
  5. package/lib/commonjs/src/components/ChatHeader.js.map +1 -0
  6. package/lib/commonjs/src/components/ChatInput.d.ts.map +1 -0
  7. package/lib/commonjs/{components → src/components}/ChatInput.js +4 -4
  8. package/lib/commonjs/src/components/ChatInput.js.map +1 -0
  9. package/lib/{esm → commonjs/src}/components/ChatPanel.d.ts +1 -0
  10. package/lib/commonjs/src/components/ChatPanel.d.ts.map +1 -0
  11. package/lib/commonjs/{components → src/components}/ChatPanel.js +7 -4
  12. package/lib/commonjs/src/components/ChatPanel.js.map +1 -0
  13. package/lib/commonjs/src/components/ChatPopUp.d.ts.map +1 -0
  14. package/lib/commonjs/{components → src/components}/ChatPopUp.js +5 -4
  15. package/lib/commonjs/src/components/ChatPopUp.js.map +1 -0
  16. package/lib/commonjs/src/components/ChatStyleProvider.d.ts.map +1 -0
  17. package/lib/commonjs/src/components/ChatStyleProvider.js.map +1 -0
  18. package/lib/commonjs/src/components/FeedbackButtons.d.ts.map +1 -0
  19. package/lib/commonjs/{components → src/components}/FeedbackButtons.js +6 -6
  20. package/lib/commonjs/src/components/FeedbackButtons.js.map +1 -0
  21. package/lib/commonjs/src/components/LoadingDots.d.ts.map +1 -0
  22. package/lib/commonjs/src/components/LoadingDots.js.map +1 -0
  23. package/lib/commonjs/src/components/Markdown.d.ts.map +1 -0
  24. package/lib/commonjs/{components → src/components}/Markdown.js +4 -4
  25. package/lib/commonjs/src/components/Markdown.js.map +1 -0
  26. package/lib/commonjs/src/components/MessageBubble.d.ts.map +1 -0
  27. package/lib/commonjs/src/components/MessageBubble.js.map +1 -0
  28. package/lib/commonjs/src/components/index.d.ts.map +1 -0
  29. package/lib/commonjs/src/components/index.js.map +1 -0
  30. package/lib/commonjs/src/hooks/index.d.ts.map +1 -0
  31. package/lib/commonjs/src/hooks/index.js.map +1 -0
  32. package/lib/commonjs/src/hooks/useComposedCssClasses.d.ts.map +1 -0
  33. package/lib/commonjs/src/hooks/useComposedCssClasses.js.map +1 -0
  34. package/lib/commonjs/src/hooks/useDefaultHandleApiError.d.ts.map +1 -0
  35. package/lib/commonjs/src/hooks/useDefaultHandleApiError.js.map +1 -0
  36. package/lib/commonjs/src/hooks/useReportAnalyticsEvent.d.ts +10 -0
  37. package/lib/commonjs/src/hooks/useReportAnalyticsEvent.d.ts.map +1 -0
  38. package/lib/commonjs/src/hooks/useReportAnalyticsEvent.js +26 -0
  39. package/lib/commonjs/src/hooks/useReportAnalyticsEvent.js.map +1 -0
  40. package/lib/commonjs/src/icons/Arrow.d.ts.map +1 -0
  41. package/lib/commonjs/src/icons/Arrow.js.map +1 -0
  42. package/lib/commonjs/src/icons/Chat.d.ts.map +1 -0
  43. package/lib/commonjs/src/icons/Chat.js.map +1 -0
  44. package/lib/commonjs/src/icons/Cross.d.ts.map +1 -0
  45. package/lib/commonjs/src/icons/Cross.js.map +1 -0
  46. package/lib/commonjs/src/icons/DualSync.d.ts.map +1 -0
  47. package/lib/commonjs/src/icons/DualSync.js.map +1 -0
  48. package/lib/commonjs/src/icons/ThumbsDown.d.ts.map +1 -0
  49. package/lib/commonjs/src/icons/ThumbsDown.js.map +1 -0
  50. package/lib/commonjs/src/icons/ThumbsDownFill.d.ts.map +1 -0
  51. package/lib/commonjs/src/icons/ThumbsDownFill.js.map +1 -0
  52. package/lib/commonjs/src/icons/ThumbsUp.d.ts.map +1 -0
  53. package/lib/commonjs/src/icons/ThumbsUp.js.map +1 -0
  54. package/lib/commonjs/src/icons/ThumbsUpFill.d.ts.map +1 -0
  55. package/lib/commonjs/src/icons/ThumbsUpFill.js.map +1 -0
  56. package/lib/commonjs/src/index.d.ts.map +1 -0
  57. package/lib/commonjs/src/index.js.map +1 -0
  58. package/lib/commonjs/src/utils/withStylelessCssClasses.d.ts.map +1 -0
  59. package/lib/commonjs/src/utils/withStylelessCssClasses.js.map +1 -0
  60. package/lib/esm/index.d.ts +1 -0
  61. package/lib/esm/package.json +100 -0
  62. package/lib/esm/src/components/ChatHeader.d.ts.map +1 -0
  63. package/lib/esm/src/components/ChatHeader.js.map +1 -0
  64. package/lib/esm/src/components/ChatInput.d.ts.map +1 -0
  65. package/lib/esm/{components → src/components}/ChatInput.js +4 -4
  66. package/lib/esm/src/components/ChatInput.js.map +1 -0
  67. package/lib/{commonjs → esm/src}/components/ChatPanel.d.ts +1 -0
  68. package/lib/esm/src/components/ChatPanel.d.ts.map +1 -0
  69. package/lib/esm/{components → src/components}/ChatPanel.js +7 -4
  70. package/lib/esm/src/components/ChatPanel.js.map +1 -0
  71. package/lib/esm/src/components/ChatPopUp.d.ts.map +1 -0
  72. package/lib/esm/{components → src/components}/ChatPopUp.js +5 -4
  73. package/lib/esm/src/components/ChatPopUp.js.map +1 -0
  74. package/lib/esm/src/components/ChatStyleProvider.d.ts.map +1 -0
  75. package/lib/esm/src/components/ChatStyleProvider.js.map +1 -0
  76. package/lib/esm/src/components/FeedbackButtons.d.ts.map +1 -0
  77. package/lib/esm/{components → src/components}/FeedbackButtons.js +6 -6
  78. package/lib/esm/src/components/FeedbackButtons.js.map +1 -0
  79. package/lib/esm/src/components/LoadingDots.d.ts.map +1 -0
  80. package/lib/esm/src/components/LoadingDots.js.map +1 -0
  81. package/lib/esm/src/components/Markdown.d.ts.map +1 -0
  82. package/lib/esm/{components → src/components}/Markdown.js +4 -4
  83. package/lib/esm/src/components/Markdown.js.map +1 -0
  84. package/lib/esm/src/components/MessageBubble.d.ts.map +1 -0
  85. package/lib/esm/src/components/MessageBubble.js.map +1 -0
  86. package/lib/esm/src/components/index.d.ts.map +1 -0
  87. package/lib/esm/src/components/index.js.map +1 -0
  88. package/lib/esm/src/hooks/index.d.ts.map +1 -0
  89. package/lib/esm/src/hooks/index.js.map +1 -0
  90. package/lib/esm/src/hooks/useComposedCssClasses.d.ts.map +1 -0
  91. package/lib/esm/src/hooks/useComposedCssClasses.js.map +1 -0
  92. package/lib/esm/src/hooks/useDefaultHandleApiError.d.ts.map +1 -0
  93. package/lib/esm/src/hooks/useDefaultHandleApiError.js.map +1 -0
  94. package/lib/esm/src/hooks/useReportAnalyticsEvent.d.ts +10 -0
  95. package/lib/esm/src/hooks/useReportAnalyticsEvent.d.ts.map +1 -0
  96. package/lib/esm/src/hooks/useReportAnalyticsEvent.js +19 -0
  97. package/lib/esm/src/hooks/useReportAnalyticsEvent.js.map +1 -0
  98. package/lib/esm/src/icons/Arrow.d.ts.map +1 -0
  99. package/lib/esm/src/icons/Arrow.js.map +1 -0
  100. package/lib/esm/src/icons/Chat.d.ts.map +1 -0
  101. package/lib/esm/src/icons/Chat.js.map +1 -0
  102. package/lib/esm/src/icons/Cross.d.ts.map +1 -0
  103. package/lib/esm/src/icons/Cross.js.map +1 -0
  104. package/lib/esm/src/icons/DualSync.d.ts.map +1 -0
  105. package/lib/esm/src/icons/DualSync.js.map +1 -0
  106. package/lib/esm/src/icons/ThumbsDown.d.ts.map +1 -0
  107. package/lib/esm/src/icons/ThumbsDown.js.map +1 -0
  108. package/lib/esm/src/icons/ThumbsDownFill.d.ts.map +1 -0
  109. package/lib/esm/src/icons/ThumbsDownFill.js.map +1 -0
  110. package/lib/esm/src/icons/ThumbsUp.d.ts.map +1 -0
  111. package/lib/esm/src/icons/ThumbsUp.js.map +1 -0
  112. package/lib/esm/src/icons/ThumbsUpFill.d.ts.map +1 -0
  113. package/lib/esm/src/icons/ThumbsUpFill.js.map +1 -0
  114. package/lib/esm/src/index.d.ts +3 -0
  115. package/lib/esm/src/index.d.ts.map +1 -0
  116. package/lib/esm/src/index.js.map +1 -0
  117. package/lib/esm/src/utils/withStylelessCssClasses.d.ts.map +1 -0
  118. package/lib/esm/src/utils/withStylelessCssClasses.js.map +1 -0
  119. package/package.json +8 -8
  120. package/src/components/ChatInput.tsx +4 -4
  121. package/src/components/ChatPanel.tsx +19 -14
  122. package/src/components/ChatPopUp.tsx +5 -4
  123. package/src/components/FeedbackButtons.tsx +6 -6
  124. package/src/components/Markdown.tsx +5 -4
  125. package/src/hooks/useReportAnalyticsEvent.ts +19 -0
  126. package/lib/commonjs/components/ChatHeader.d.ts.map +0 -1
  127. package/lib/commonjs/components/ChatHeader.js.map +0 -1
  128. package/lib/commonjs/components/ChatInput.d.ts.map +0 -1
  129. package/lib/commonjs/components/ChatInput.js.map +0 -1
  130. package/lib/commonjs/components/ChatPanel.d.ts.map +0 -1
  131. package/lib/commonjs/components/ChatPanel.js.map +0 -1
  132. package/lib/commonjs/components/ChatPopUp.d.ts.map +0 -1
  133. package/lib/commonjs/components/ChatPopUp.js.map +0 -1
  134. package/lib/commonjs/components/ChatStyleProvider.d.ts.map +0 -1
  135. package/lib/commonjs/components/ChatStyleProvider.js.map +0 -1
  136. package/lib/commonjs/components/FeedbackButtons.d.ts.map +0 -1
  137. package/lib/commonjs/components/FeedbackButtons.js.map +0 -1
  138. package/lib/commonjs/components/LoadingDots.d.ts.map +0 -1
  139. package/lib/commonjs/components/LoadingDots.js.map +0 -1
  140. package/lib/commonjs/components/Markdown.d.ts.map +0 -1
  141. package/lib/commonjs/components/Markdown.js.map +0 -1
  142. package/lib/commonjs/components/MessageBubble.d.ts.map +0 -1
  143. package/lib/commonjs/components/MessageBubble.js.map +0 -1
  144. package/lib/commonjs/components/index.d.ts.map +0 -1
  145. package/lib/commonjs/components/index.js.map +0 -1
  146. package/lib/commonjs/hooks/index.d.ts.map +0 -1
  147. package/lib/commonjs/hooks/index.js.map +0 -1
  148. package/lib/commonjs/hooks/useComposedCssClasses.d.ts.map +0 -1
  149. package/lib/commonjs/hooks/useComposedCssClasses.js.map +0 -1
  150. package/lib/commonjs/hooks/useDefaultHandleApiError.d.ts.map +0 -1
  151. package/lib/commonjs/hooks/useDefaultHandleApiError.js.map +0 -1
  152. package/lib/commonjs/icons/Arrow.d.ts.map +0 -1
  153. package/lib/commonjs/icons/Arrow.js.map +0 -1
  154. package/lib/commonjs/icons/Chat.d.ts.map +0 -1
  155. package/lib/commonjs/icons/Chat.js.map +0 -1
  156. package/lib/commonjs/icons/Cross.d.ts.map +0 -1
  157. package/lib/commonjs/icons/Cross.js.map +0 -1
  158. package/lib/commonjs/icons/DualSync.d.ts.map +0 -1
  159. package/lib/commonjs/icons/DualSync.js.map +0 -1
  160. package/lib/commonjs/icons/ThumbsDown.d.ts.map +0 -1
  161. package/lib/commonjs/icons/ThumbsDown.js.map +0 -1
  162. package/lib/commonjs/icons/ThumbsDownFill.d.ts.map +0 -1
  163. package/lib/commonjs/icons/ThumbsDownFill.js.map +0 -1
  164. package/lib/commonjs/icons/ThumbsUp.d.ts.map +0 -1
  165. package/lib/commonjs/icons/ThumbsUp.js.map +0 -1
  166. package/lib/commonjs/icons/ThumbsUpFill.d.ts.map +0 -1
  167. package/lib/commonjs/icons/ThumbsUpFill.js.map +0 -1
  168. package/lib/commonjs/index.d.ts.map +0 -1
  169. package/lib/commonjs/index.js.map +0 -1
  170. package/lib/commonjs/utils/withStylelessCssClasses.d.ts.map +0 -1
  171. package/lib/commonjs/utils/withStylelessCssClasses.js.map +0 -1
  172. package/lib/esm/components/ChatHeader.d.ts.map +0 -1
  173. package/lib/esm/components/ChatHeader.js.map +0 -1
  174. package/lib/esm/components/ChatInput.d.ts.map +0 -1
  175. package/lib/esm/components/ChatInput.js.map +0 -1
  176. package/lib/esm/components/ChatPanel.d.ts.map +0 -1
  177. package/lib/esm/components/ChatPanel.js.map +0 -1
  178. package/lib/esm/components/ChatPopUp.d.ts.map +0 -1
  179. package/lib/esm/components/ChatPopUp.js.map +0 -1
  180. package/lib/esm/components/ChatStyleProvider.d.ts.map +0 -1
  181. package/lib/esm/components/ChatStyleProvider.js.map +0 -1
  182. package/lib/esm/components/FeedbackButtons.d.ts.map +0 -1
  183. package/lib/esm/components/FeedbackButtons.js.map +0 -1
  184. package/lib/esm/components/LoadingDots.d.ts.map +0 -1
  185. package/lib/esm/components/LoadingDots.js.map +0 -1
  186. package/lib/esm/components/Markdown.d.ts.map +0 -1
  187. package/lib/esm/components/Markdown.js.map +0 -1
  188. package/lib/esm/components/MessageBubble.d.ts.map +0 -1
  189. package/lib/esm/components/MessageBubble.js.map +0 -1
  190. package/lib/esm/components/index.d.ts.map +0 -1
  191. package/lib/esm/components/index.js.map +0 -1
  192. package/lib/esm/hooks/index.d.ts.map +0 -1
  193. package/lib/esm/hooks/index.js.map +0 -1
  194. package/lib/esm/hooks/useComposedCssClasses.d.ts.map +0 -1
  195. package/lib/esm/hooks/useComposedCssClasses.js.map +0 -1
  196. package/lib/esm/hooks/useDefaultHandleApiError.d.ts.map +0 -1
  197. package/lib/esm/hooks/useDefaultHandleApiError.js.map +0 -1
  198. package/lib/esm/icons/Arrow.d.ts.map +0 -1
  199. package/lib/esm/icons/Arrow.js.map +0 -1
  200. package/lib/esm/icons/Chat.d.ts.map +0 -1
  201. package/lib/esm/icons/Chat.js.map +0 -1
  202. package/lib/esm/icons/Cross.d.ts.map +0 -1
  203. package/lib/esm/icons/Cross.js.map +0 -1
  204. package/lib/esm/icons/DualSync.d.ts.map +0 -1
  205. package/lib/esm/icons/DualSync.js.map +0 -1
  206. package/lib/esm/icons/ThumbsDown.d.ts.map +0 -1
  207. package/lib/esm/icons/ThumbsDown.js.map +0 -1
  208. package/lib/esm/icons/ThumbsDownFill.d.ts.map +0 -1
  209. package/lib/esm/icons/ThumbsDownFill.js.map +0 -1
  210. package/lib/esm/icons/ThumbsUp.d.ts.map +0 -1
  211. package/lib/esm/icons/ThumbsUp.js.map +0 -1
  212. package/lib/esm/icons/ThumbsUpFill.d.ts.map +0 -1
  213. package/lib/esm/icons/ThumbsUpFill.js.map +0 -1
  214. package/lib/esm/index.d.ts.map +0 -1
  215. package/lib/esm/index.js.map +0 -1
  216. package/lib/esm/utils/withStylelessCssClasses.d.ts.map +0 -1
  217. package/lib/esm/utils/withStylelessCssClasses.js.map +0 -1
  218. /package/lib/commonjs/{components → src/components}/ChatHeader.d.ts +0 -0
  219. /package/lib/commonjs/{components → src/components}/ChatHeader.js +0 -0
  220. /package/lib/commonjs/{components → src/components}/ChatInput.d.ts +0 -0
  221. /package/lib/commonjs/{components → src/components}/ChatPopUp.d.ts +0 -0
  222. /package/lib/commonjs/{components → src/components}/ChatStyleProvider.d.ts +0 -0
  223. /package/lib/commonjs/{components → src/components}/ChatStyleProvider.js +0 -0
  224. /package/lib/commonjs/{components → src/components}/FeedbackButtons.d.ts +0 -0
  225. /package/lib/commonjs/{components → src/components}/LoadingDots.d.ts +0 -0
  226. /package/lib/commonjs/{components → src/components}/LoadingDots.js +0 -0
  227. /package/lib/commonjs/{components → src/components}/Markdown.d.ts +0 -0
  228. /package/lib/commonjs/{components → src/components}/MessageBubble.d.ts +0 -0
  229. /package/lib/commonjs/{components → src/components}/MessageBubble.js +0 -0
  230. /package/lib/commonjs/{components → src/components}/index.d.ts +0 -0
  231. /package/lib/commonjs/{components → src/components}/index.js +0 -0
  232. /package/lib/commonjs/{hooks → src/hooks}/index.d.ts +0 -0
  233. /package/lib/commonjs/{hooks → src/hooks}/index.js +0 -0
  234. /package/lib/commonjs/{hooks → src/hooks}/useComposedCssClasses.d.ts +0 -0
  235. /package/lib/commonjs/{hooks → src/hooks}/useComposedCssClasses.js +0 -0
  236. /package/lib/commonjs/{hooks → src/hooks}/useDefaultHandleApiError.d.ts +0 -0
  237. /package/lib/commonjs/{hooks → src/hooks}/useDefaultHandleApiError.js +0 -0
  238. /package/lib/commonjs/{icons → src/icons}/Arrow.d.ts +0 -0
  239. /package/lib/commonjs/{icons → src/icons}/Arrow.js +0 -0
  240. /package/lib/commonjs/{icons → src/icons}/Chat.d.ts +0 -0
  241. /package/lib/commonjs/{icons → src/icons}/Chat.js +0 -0
  242. /package/lib/commonjs/{icons → src/icons}/Cross.d.ts +0 -0
  243. /package/lib/commonjs/{icons → src/icons}/Cross.js +0 -0
  244. /package/lib/commonjs/{icons → src/icons}/DualSync.d.ts +0 -0
  245. /package/lib/commonjs/{icons → src/icons}/DualSync.js +0 -0
  246. /package/lib/commonjs/{icons → src/icons}/ThumbsDown.d.ts +0 -0
  247. /package/lib/commonjs/{icons → src/icons}/ThumbsDown.js +0 -0
  248. /package/lib/commonjs/{icons → src/icons}/ThumbsDownFill.d.ts +0 -0
  249. /package/lib/commonjs/{icons → src/icons}/ThumbsDownFill.js +0 -0
  250. /package/lib/commonjs/{icons → src/icons}/ThumbsUp.d.ts +0 -0
  251. /package/lib/commonjs/{icons → src/icons}/ThumbsUp.js +0 -0
  252. /package/lib/commonjs/{icons → src/icons}/ThumbsUpFill.d.ts +0 -0
  253. /package/lib/commonjs/{icons → src/icons}/ThumbsUpFill.js +0 -0
  254. /package/lib/commonjs/{index.d.ts → src/index.d.ts} +0 -0
  255. /package/lib/commonjs/{index.js → src/index.js} +0 -0
  256. /package/lib/commonjs/{utils → src/utils}/withStylelessCssClasses.d.ts +0 -0
  257. /package/lib/commonjs/{utils → src/utils}/withStylelessCssClasses.js +0 -0
  258. /package/lib/esm/{components → src/components}/ChatHeader.d.ts +0 -0
  259. /package/lib/esm/{components → src/components}/ChatHeader.js +0 -0
  260. /package/lib/esm/{components → src/components}/ChatInput.d.ts +0 -0
  261. /package/lib/esm/{components → src/components}/ChatPopUp.d.ts +0 -0
  262. /package/lib/esm/{components → src/components}/ChatStyleProvider.d.ts +0 -0
  263. /package/lib/esm/{components → src/components}/ChatStyleProvider.js +0 -0
  264. /package/lib/esm/{components → src/components}/FeedbackButtons.d.ts +0 -0
  265. /package/lib/esm/{components → src/components}/LoadingDots.d.ts +0 -0
  266. /package/lib/esm/{components → src/components}/LoadingDots.js +0 -0
  267. /package/lib/esm/{components → src/components}/Markdown.d.ts +0 -0
  268. /package/lib/esm/{components → src/components}/MessageBubble.d.ts +0 -0
  269. /package/lib/esm/{components → src/components}/MessageBubble.js +0 -0
  270. /package/lib/esm/{components → src/components}/index.d.ts +0 -0
  271. /package/lib/esm/{components → src/components}/index.js +0 -0
  272. /package/lib/esm/{hooks → src/hooks}/index.d.ts +0 -0
  273. /package/lib/esm/{hooks → src/hooks}/index.js +0 -0
  274. /package/lib/esm/{hooks → src/hooks}/useComposedCssClasses.d.ts +0 -0
  275. /package/lib/esm/{hooks → src/hooks}/useComposedCssClasses.js +0 -0
  276. /package/lib/esm/{hooks → src/hooks}/useDefaultHandleApiError.d.ts +0 -0
  277. /package/lib/esm/{hooks → src/hooks}/useDefaultHandleApiError.js +0 -0
  278. /package/lib/esm/{icons → src/icons}/Arrow.d.ts +0 -0
  279. /package/lib/esm/{icons → src/icons}/Arrow.js +0 -0
  280. /package/lib/esm/{icons → src/icons}/Chat.d.ts +0 -0
  281. /package/lib/esm/{icons → src/icons}/Chat.js +0 -0
  282. /package/lib/esm/{icons → src/icons}/Cross.d.ts +0 -0
  283. /package/lib/esm/{icons → src/icons}/Cross.js +0 -0
  284. /package/lib/esm/{icons → src/icons}/DualSync.d.ts +0 -0
  285. /package/lib/esm/{icons → src/icons}/DualSync.js +0 -0
  286. /package/lib/esm/{icons → src/icons}/ThumbsDown.d.ts +0 -0
  287. /package/lib/esm/{icons → src/icons}/ThumbsDown.js +0 -0
  288. /package/lib/esm/{icons → src/icons}/ThumbsDownFill.d.ts +0 -0
  289. /package/lib/esm/{icons → src/icons}/ThumbsDownFill.js +0 -0
  290. /package/lib/esm/{icons → src/icons}/ThumbsUp.d.ts +0 -0
  291. /package/lib/esm/{icons → src/icons}/ThumbsUp.js +0 -0
  292. /package/lib/esm/{icons → src/icons}/ThumbsUpFill.d.ts +0 -0
  293. /package/lib/esm/{icons → src/icons}/ThumbsUpFill.js +0 -0
  294. /package/lib/esm/{index.js → src/index.js} +0 -0
  295. /package/lib/esm/{tsdoc-metadata.json → src/tsdoc-metadata.json} +0 -0
  296. /package/lib/esm/{utils → src/utils}/withStylelessCssClasses.d.ts +0 -0
  297. /package/lib/esm/{utils → src/utils}/withStylelessCssClasses.js +0 -0
@@ -132,7 +132,7 @@ MIT License
132
132
 
133
133
  The following npm package may be included in this product:
134
134
 
135
- - @yext/analytics@0.6.0
135
+ - @yext/analytics@0.6.1
136
136
 
137
137
  This package contains the following license and notice below:
138
138
 
@@ -174,8 +174,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
174
174
  The following npm packages may be included in this product:
175
175
 
176
176
  - @yext/chat-core@0.5.3
177
- - @yext/chat-headless-react@0.5.1
178
- - @yext/chat-headless@0.5.1
177
+ - @yext/chat-headless-react@0.5.4
178
+ - @yext/chat-headless@0.5.4
179
179
 
180
180
  These packages each contain the following license and notice below:
181
181
 
package/lib/bundle.css CHANGED
@@ -1 +1 @@
1
- .yext-chat { width: 100%; height: 100%; } /*! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com*/.yext-chat *,.yext-chat :after,.yext-chat :before{box-sizing:border-box;border:0 solid #e5e7eb}.yext-chat :after,.yext-chat :before{--tw-content:""}.yext-chat {line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal}.yext-chat {margin:0;line-height:inherit}.yext-chat hr{height:0;color:inherit;border-top-width:1px}.yext-chat abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.yext-chat h1,.yext-chat h2,.yext-chat h3,.yext-chat h4,.yext-chat h5,.yext-chat h6{font-size:inherit;font-weight:inherit}.yext-chat a{color:inherit;text-decoration:inherit}.yext-chat b,.yext-chat strong{font-weight:bolder}.yext-chat code,.yext-chat kbd,.yext-chat pre,.yext-chat samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}.yext-chat small{font-size:80%}.yext-chat sub,.yext-chat sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}.yext-chat sub{bottom:-.25em}.yext-chat sup{top:-.5em}.yext-chat table{text-indent:0;border-color:inherit;border-collapse:collapse}.yext-chat button,.yext-chat input,.yext-chat optgroup,.yext-chat select,.yext-chat textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}.yext-chat button,.yext-chat select{text-transform:none}.yext-chat [type=button],.yext-chat [type=reset],.yext-chat [type=submit],.yext-chat button{-webkit-appearance:button;background-color:initial;background-image:none}.yext-chat :-moz-focusring{outline:auto}.yext-chat :-moz-ui-invalid{box-shadow:none}.yext-chat progress{vertical-align:initial}.yext-chat ::-webkit-inner-spin-button,.yext-chat ::-webkit-outer-spin-button{height:auto}.yext-chat [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.yext-chat ::-webkit-search-decoration{-webkit-appearance:none}.yext-chat ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.yext-chat summary{display:list-item}.yext-chat blockquote,.yext-chat dd,.yext-chat dl,.yext-chat figure,.yext-chat h1,.yext-chat h2,.yext-chat h3,.yext-chat h4,.yext-chat h5,.yext-chat h6,.yext-chat hr,.yext-chat p,.yext-chat pre{margin:0}.yext-chat fieldset{margin:0}.yext-chat fieldset,.yext-chat legend{padding:0}.yext-chat menu,.yext-chat ol,.yext-chat ul{list-style:none;margin:0;padding:0}.yext-chat textarea{resize:vertical}.yext-chat input::-moz-placeholder,.yext-chat textarea::-moz-placeholder{opacity:1;color:#9ca3af}.yext-chat input::placeholder,.yext-chat textarea::placeholder{opacity:1;color:#9ca3af}.yext-chat [role=button],.yext-chat button{cursor:pointer}.yext-chat :disabled{cursor:default}.yext-chat audio,.yext-chat canvas,.yext-chat embed,.yext-chat iframe,.yext-chat img,.yext-chat object,.yext-chat svg,.yext-chat video{display:block;vertical-align:middle}.yext-chat img,.yext-chat video{max-width:100%;height:auto}.yext-chat [hidden]{display:none}.yext-chat *,.yext-chat ::backdrop,.yext-chat :after,.yext-chat :before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.yext-chat .container{width:100%}@media (min-width:640px){.yext-chat .container{max-width:640px}}@media (min-width:768px){.yext-chat .container{max-width:768px}}@media (min-width:1024px){.yext-chat .container{max-width:1024px}}@media (min-width:1280px){.yext-chat .container{max-width:1280px}}@media (min-width:1536px){.yext-chat .container{max-width:1536px}}.yext-chat .prose{color:var(--tw-prose-body);max-width:65ch}.yext-chat .prose :where(p):not(:where([class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.yext-chat .prose :where([class~=lead]):not(:where([class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.yext-chat .prose :where(a):not(:where([class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.yext-chat .prose :where(strong):not(:where([class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.yext-chat .prose :where(a strong):not(:where([class~=not-prose] *)){color:inherit}.yext-chat .prose :where(blockquote strong):not(:where([class~=not-prose] *)){color:inherit}.yext-chat .prose :where(thead th strong):not(:where([class~=not-prose] *)){color:inherit}.yext-chat .prose :where(ol):not(:where([class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.yext-chat .prose :where(ol[type=A]):not(:where([class~=not-prose] *)){list-style-type:upper-alpha}.yext-chat .prose :where(ol[type=a]):not(:where([class~=not-prose] *)){list-style-type:lower-alpha}.yext-chat .prose :where(ol[type=A s]):not(:where([class~=not-prose] *)){list-style-type:upper-alpha}.yext-chat .prose :where(ol[type=a s]):not(:where([class~=not-prose] *)){list-style-type:lower-alpha}.yext-chat .prose :where(ol[type=I]):not(:where([class~=not-prose] *)){list-style-type:upper-roman}.yext-chat .prose :where(ol[type=i]):not(:where([class~=not-prose] *)){list-style-type:lower-roman}.yext-chat .prose :where(ol[type=I s]):not(:where([class~=not-prose] *)){list-style-type:upper-roman}.yext-chat .prose :where(ol[type=i s]):not(:where([class~=not-prose] *)){list-style-type:lower-roman}.yext-chat .prose :where(ol[type="1"]):not(:where([class~=not-prose] *)){list-style-type:decimal}.yext-chat .prose :where(ul):not(:where([class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.yext-chat .prose :where(ol>li):not(:where([class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.yext-chat .prose :where(ul>li):not(:where([class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.yext-chat .prose :where(hr):not(:where([class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.yext-chat .prose :where(blockquote):not(:where([class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-left-width:.25rem;border-left-color:var(--tw-prose-quote-borders);quotes:"\201C""\201D""\2018""\2019";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.yext-chat .prose :where(blockquote p:first-of-type):not(:where([class~=not-prose] *)):before{content:open-quote}.yext-chat .prose :where(blockquote p:last-of-type):not(:where([class~=not-prose] *)):after{content:close-quote}.yext-chat .prose :where(h1):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.yext-chat .prose :where(h1 strong):not(:where([class~=not-prose] *)){font-weight:900;color:inherit}.yext-chat .prose :where(h2):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.yext-chat .prose :where(h2 strong):not(:where([class~=not-prose] *)){font-weight:800;color:inherit}.yext-chat .prose :where(h3):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.yext-chat .prose :where(h3 strong):not(:where([class~=not-prose] *)){font-weight:700;color:inherit}.yext-chat .prose :where(h4):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.yext-chat .prose :where(h4 strong):not(:where([class~=not-prose] *)){font-weight:700;color:inherit}.yext-chat .prose :where(img):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.yext-chat .prose :where(figure>*):not(:where([class~=not-prose] *)){margin-top:0;margin-bottom:0}.yext-chat .prose :where(figcaption):not(:where([class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.yext-chat .prose :where(code):not(:where([class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.yext-chat .prose :where(code):not(:where([class~=not-prose] *)):before{content:"`"}.yext-chat .prose :where(code):not(:where([class~=not-prose] *)):after{content:"`"}.yext-chat .prose :where(a code):not(:where([class~=not-prose] *)){color:inherit}.yext-chat .prose :where(h1 code):not(:where([class~=not-prose] *)){color:inherit}.yext-chat .prose :where(h2 code):not(:where([class~=not-prose] *)){color:inherit;font-size:.875em}.yext-chat .prose :where(h3 code):not(:where([class~=not-prose] *)){color:inherit;font-size:.9em}.yext-chat .prose :where(h4 code):not(:where([class~=not-prose] *)){color:inherit}.yext-chat .prose :where(blockquote code):not(:where([class~=not-prose] *)){color:inherit}.yext-chat .prose :where(thead th code):not(:where([class~=not-prose] *)){color:inherit}.yext-chat .prose :where(pre):not(:where([class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.yext-chat .prose :where(pre code):not(:where([class~=not-prose] *)){background-color:initial;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.yext-chat .prose :where(pre code):not(:where([class~=not-prose] *)):before{content:none}.yext-chat .prose :where(pre code):not(:where([class~=not-prose] *)):after{content:none}.yext-chat .prose :where(table):not(:where([class~=not-prose] *)){width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.yext-chat .prose :where(thead):not(:where([class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.yext-chat .prose :where(thead th):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.yext-chat .prose :where(tbody tr):not(:where([class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.yext-chat .prose :where(tbody tr:last-child):not(:where([class~=not-prose] *)){border-bottom-width:0}.yext-chat .prose :where(tbody td):not(:where([class~=not-prose] *)){vertical-align:initial}.yext-chat .prose :where(tfoot):not(:where([class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.yext-chat .prose :where(tfoot td):not(:where([class~=not-prose] *)){vertical-align:top}.yext-chat .prose{--tw-prose-body:#374151;--tw-prose-headings:#111827;--tw-prose-lead:#4b5563;--tw-prose-links:#111827;--tw-prose-bold:#111827;--tw-prose-counters:#6b7280;--tw-prose-bullets:#d1d5db;--tw-prose-hr:#e5e7eb;--tw-prose-quotes:#111827;--tw-prose-quote-borders:#e5e7eb;--tw-prose-captions:#6b7280;--tw-prose-code:#111827;--tw-prose-pre-code:#e5e7eb;--tw-prose-pre-bg:#1f2937;--tw-prose-th-borders:#d1d5db;--tw-prose-td-borders:#e5e7eb;--tw-prose-invert-body:#d1d5db;--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:#9ca3af;--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:#9ca3af;--tw-prose-invert-bullets:#4b5563;--tw-prose-invert-hr:#374151;--tw-prose-invert-quotes:#f3f4f6;--tw-prose-invert-quote-borders:#374151;--tw-prose-invert-captions:#9ca3af;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:#d1d5db;--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:#4b5563;--tw-prose-invert-td-borders:#374151;font-size:1rem;line-height:1.75}.yext-chat .prose :where(video):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.yext-chat .prose :where(figure):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.yext-chat .prose :where(li):not(:where([class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.yext-chat .prose :where(ol>li):not(:where([class~=not-prose] *)){padding-left:.375em}.yext-chat .prose :where(ul>li):not(:where([class~=not-prose] *)){padding-left:.375em}.yext-chat .prose :where(.prose>ul>li p):not(:where([class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.yext-chat .prose :where(.prose>ul>li>:first-child):not(:where([class~=not-prose] *)){margin-top:1.25em}.yext-chat .prose :where(.prose>ul>li>:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.25em}.yext-chat .prose :where(.prose>ol>li>:first-child):not(:where([class~=not-prose] *)){margin-top:1.25em}.yext-chat .prose :where(.prose>ol>li>:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.25em}.yext-chat .prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.yext-chat .prose :where(hr+*):not(:where([class~=not-prose] *)){margin-top:0}.yext-chat .prose :where(h2+*):not(:where([class~=not-prose] *)){margin-top:0}.yext-chat .prose :where(h3+*):not(:where([class~=not-prose] *)){margin-top:0}.yext-chat .prose :where(h4+*):not(:where([class~=not-prose] *)){margin-top:0}.yext-chat .prose :where(thead th:first-child):not(:where([class~=not-prose] *)){padding-left:0}.yext-chat .prose :where(thead th:last-child):not(:where([class~=not-prose] *)){padding-right:0}.yext-chat .prose :where(tbody td,tfoot td):not(:where([class~=not-prose] *)){padding:.5714286em}.yext-chat .prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose] *)){padding-left:0}.yext-chat .prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose] *)){padding-right:0}.yext-chat .prose :where(.prose>:first-child):not(:where([class~=not-prose] *)){margin-top:0}.yext-chat .prose :where(.prose>:last-child):not(:where([class~=not-prose] *)){margin-bottom:0}.yext-chat .invisible{visibility:hidden}.yext-chat .fixed{position:fixed}.yext-chat .absolute{position:absolute}.yext-chat .relative{position:relative}.yext-chat .-right-1{right:-.25rem}.yext-chat .-top-3{top:-.75rem}.yext-chat .bottom-0{bottom:0}.yext-chat .bottom-2{bottom:.5rem}.yext-chat .bottom-2\.5{bottom:.625rem}.yext-chat .bottom-6{bottom:1.5rem}.yext-chat .right-4{right:1rem}.yext-chat .z-50{z-index:50}.yext-chat .my-0{margin-top:0;margin-bottom:0}.yext-chat .my-0\.5{margin-top:.125rem;margin-bottom:.125rem}.yext-chat .mb-3{margin-bottom:.75rem}.yext-chat .ml-4{margin-left:1rem}.yext-chat .ml-auto{margin-left:auto}.yext-chat .mt-auto{margin-top:auto}.yext-chat .flex{display:flex}.yext-chat .h-12{height:3rem}.yext-chat .h-2{height:.5rem}.yext-chat .h-6{height:1.5rem}.yext-chat .h-8{height:2rem}.yext-chat .h-\[22px\]{height:22px}.yext-chat .h-\[26px\]{height:26px}.yext-chat .h-\[28px\]{height:28px}.yext-chat .h-\[75vh\]{height:75vh}.yext-chat .h-fit{height:-moz-fit-content;height:fit-content}.yext-chat .h-full{height:100%}.yext-chat .w-12{width:3rem}.yext-chat .w-2{width:.5rem}.yext-chat .w-6{width:1.5rem}.yext-chat .w-8{width:2rem}.yext-chat .w-80{width:20rem}.yext-chat .w-\[22px\]{width:22px}.yext-chat .w-\[26px\]{width:26px}.yext-chat .w-\[28px\]{width:28px}.yext-chat .w-fit{width:-moz-fit-content;width:fit-content}.yext-chat .w-full{width:100%}.yext-chat .max-w-\[80\%\]{max-width:80%}.yext-chat .shrink-0{flex-shrink:0}.yext-chat .translate-y-0{--tw-translate-y:0px}.yext-chat .translate-y-0,.yext-chat .translate-y-\[20\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.yext-chat .translate-y-\[20\%\]{--tw-translate-y:20%}.yext-chat .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.yext-chat .animate-\[bounce_1s_infinite\]{animation:bounce 1s infinite}.yext-chat .animate-\[bounce_1s_infinite_0\.3s\]{animation:bounce 1s .3s infinite}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.yext-chat .animate-\[bounce_1s_infinite_0\.6s\]{animation:bounce 1s .6s infinite}@keyframes spin{to{transform:rotate(1turn)}}.yext-chat .animate-\[spin_0\.3s_linear\]{animation:spin .3s linear}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.yext-chat .animate-fade-in{animation:fade-in .4s}.yext-chat .cursor-pointer{cursor:pointer}.yext-chat .resize-none{resize:none}.yext-chat .flex-row{flex-direction:row}.yext-chat .flex-col{flex-direction:column}.yext-chat .items-center{align-items:center}.yext-chat .justify-center{justify-content:center}.yext-chat .justify-between{justify-content:space-between}.yext-chat .gap-1{gap:.25rem}.yext-chat .gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.yext-chat .gap-y-1{row-gap:.25rem}.yext-chat .overflow-auto{overflow:auto}.yext-chat .overflow-x-auto{overflow-x:auto}.yext-chat .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.yext-chat .whitespace-pre-wrap{white-space:pre-wrap}.yext-chat .rounded-2xl{border-radius:1rem}.yext-chat .rounded-3xl{border-radius:1.5rem}.yext-chat .rounded-full{border-radius:9999px}.yext-chat .rounded-md{border-radius:.375rem}.yext-chat .rounded-b-3xl{border-bottom-right-radius:1.5rem;border-bottom-left-radius:1.5rem}.yext-chat .rounded-t-3xl{border-top-left-radius:1.5rem;border-top-right-radius:1.5rem}.yext-chat .border{border-width:1px}.yext-chat .border-slate-300{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity))}.yext-chat .bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.yext-chat .bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.yext-chat .bg-slate-500{--tw-bg-opacity:1;background-color:rgb(100 116 139/var(--tw-bg-opacity))}.yext-chat .bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.yext-chat .bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.yext-chat .bg-gradient-to-tr{background-image:linear-gradient(to top right,var(--tw-gradient-stops))}.yext-chat .from-blue-600{--tw-gradient-from:#2563eb var(--tw-gradient-from-position);--tw-gradient-to:#2563eb00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.yext-chat .from-slate-50{--tw-gradient-from:#f8fafc var(--tw-gradient-from-position);--tw-gradient-to:#f8fafc00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.yext-chat .to-blue-700{--tw-gradient-to:#1d4ed8 var(--tw-gradient-to-position)}.yext-chat .to-blue-800{--tw-gradient-to:#1e40af var(--tw-gradient-to-position)}.yext-chat .to-slate-100{--tw-gradient-to:#f1f5f9 var(--tw-gradient-to-position)}.yext-chat .stroke-2{stroke-width:2}.yext-chat .stroke-\[0\.2\]{stroke-width:.2}.yext-chat .p-1{padding:.25rem}.yext-chat .p-1\.5{padding:.375rem}.yext-chat .p-2{padding:.5rem}.yext-chat .p-4{padding:1rem}.yext-chat .px-4{padding-left:1rem;padding-right:1rem}.yext-chat .py-3{padding-top:.75rem;padding-bottom:.75rem}.yext-chat .pb-\[85px\]{padding-bottom:85px}.yext-chat .pl-4{padding-left:1rem}.yext-chat .pr-1{padding-right:.25rem}.yext-chat .pr-12{padding-right:3rem}.yext-chat .pr-3{padding-right:.75rem}.yext-chat .text-\[10px\]{font-size:10px}.yext-chat .text-\[13px\]{font-size:13px}.yext-chat .text-xl{font-size:1.25rem;line-height:1.75rem}.yext-chat .font-medium{font-weight:500}.yext-chat .text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.yext-chat .text-red-200{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}.yext-chat .text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity))}.yext-chat .text-slate-700{--tw-text-opacity:1;color:rgb(51 65 85/var(--tw-text-opacity))}.yext-chat .text-slate-900{--tw-text-opacity:1;color:rgb(15 23 42/var(--tw-text-opacity))}.yext-chat .text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.yext-chat .opacity-0{opacity:0}.yext-chat .shadow-2xl{--tw-shadow:0 25px 50px -12px #00000040;--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color)}.yext-chat .shadow-2xl,.yext-chat .shadow-xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.yext-chat .shadow-xl{--tw-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color)}.yext-chat .backdrop-blur-lg{--tw-backdrop-blur:blur(16px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.yext-chat .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.yext-chat .duration-150,.yext-chat .transition-all{transition-duration:.15s}.yext-chat .duration-200{transition-duration:.2s}.yext-chat .duration-300{transition-duration:.3s}.yext-chat .\@container{container-type:inline-size}.yext-chat .first\:mt-4:first-child{margin-top:1rem}.yext-chat .hover\:-translate-y-2:hover{--tw-translate-y:-0.5rem}.yext-chat .hover\:-translate-y-2:hover,.yext-chat .hover\:scale-110:hover{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.yext-chat .hover\:scale-110:hover{--tw-scale-x:1.1;--tw-scale-y:1.1}.yext-chat .hover\:bg-blue-800:hover{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.yext-chat .active\:scale-90:active{--tw-scale-x:.9;--tw-scale-y:.9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.yext-chat .disabled\:bg-slate-200:disabled{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity))}.yext-chat .group:hover .group-hover\:opacity-100,.yext-chat .peer:hover~.peer-hover\:opacity-100{opacity:1}@container (min-width: 32rem){.yext-chat .\@lg\:m-1{margin:.25rem}.yext-chat .\@lg\:ml-0{margin-left:0}.yext-chat .\@lg\:flex-row{flex-direction:row}.yext-chat .\@lg\:flex-row-reverse{flex-direction:row-reverse}.yext-chat .\@lg\:items-center{align-items:center}.yext-chat .\@lg\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}}@container (min-width: 480px){.yext-chat .\@\[480px\]\:bottom-3\.5{bottom:.875rem}.yext-chat .\@\[480px\]\:text-\[13px\]{font-size:13px}.yext-chat .\@\[480px\]\:text-base{font-size:1rem;line-height:1.5rem}}@media (max-width:480px){.yext-chat .max-\[480px\]\:bottom-0{bottom:0}.yext-chat .max-\[480px\]\:right-0{right:0}.yext-chat .max-\[480px\]\:h-full{height:100%}.yext-chat .max-\[480px\]\:w-full{width:100%}.yext-chat .max-\[480px\]\:rounded-none{border-radius:0}}@media (min-width:1024px){.yext-chat .lg\:bottom-14{bottom:3.5rem}.yext-chat .lg\:right-10{right:2.5rem}.yext-chat .lg\:h-16{height:4rem}.yext-chat .lg\:h-\[40px\]{height:40px}.yext-chat .lg\:w-16{width:4rem}.yext-chat .lg\:w-96{width:24rem}.yext-chat .lg\:w-\[40px\]{width:40px}}
1
+ .yext-chat { width: 100%; height: 100%; } /*! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com*/.yext-chat *,.yext-chat :after,.yext-chat :before{box-sizing:border-box;border:0 solid #e5e7eb}.yext-chat :after,.yext-chat :before{--tw-content:""}.yext-chat {line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal}.yext-chat {margin:0;line-height:inherit}.yext-chat hr{height:0;color:inherit;border-top-width:1px}.yext-chat abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.yext-chat h1,.yext-chat h2,.yext-chat h3,.yext-chat h4,.yext-chat h5,.yext-chat h6{font-size:inherit;font-weight:inherit}.yext-chat a{color:inherit;text-decoration:inherit}.yext-chat b,.yext-chat strong{font-weight:bolder}.yext-chat code,.yext-chat kbd,.yext-chat pre,.yext-chat samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}.yext-chat small{font-size:80%}.yext-chat sub,.yext-chat sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}.yext-chat sub{bottom:-.25em}.yext-chat sup{top:-.5em}.yext-chat table{text-indent:0;border-color:inherit;border-collapse:collapse}.yext-chat button,.yext-chat input,.yext-chat optgroup,.yext-chat select,.yext-chat textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}.yext-chat button,.yext-chat select{text-transform:none}.yext-chat [type=button],.yext-chat [type=reset],.yext-chat [type=submit],.yext-chat button{-webkit-appearance:button;background-color:initial;background-image:none}.yext-chat :-moz-focusring{outline:auto}.yext-chat :-moz-ui-invalid{box-shadow:none}.yext-chat progress{vertical-align:initial}.yext-chat ::-webkit-inner-spin-button,.yext-chat ::-webkit-outer-spin-button{height:auto}.yext-chat [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.yext-chat ::-webkit-search-decoration{-webkit-appearance:none}.yext-chat ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.yext-chat summary{display:list-item}.yext-chat blockquote,.yext-chat dd,.yext-chat dl,.yext-chat figure,.yext-chat h1,.yext-chat h2,.yext-chat h3,.yext-chat h4,.yext-chat h5,.yext-chat h6,.yext-chat hr,.yext-chat p,.yext-chat pre{margin:0}.yext-chat fieldset{margin:0}.yext-chat fieldset,.yext-chat legend{padding:0}.yext-chat menu,.yext-chat ol,.yext-chat ul{list-style:none;margin:0;padding:0}.yext-chat textarea{resize:vertical}.yext-chat input::-moz-placeholder,.yext-chat textarea::-moz-placeholder{opacity:1;color:#9ca3af}.yext-chat input::placeholder,.yext-chat textarea::placeholder{opacity:1;color:#9ca3af}.yext-chat [role=button],.yext-chat button{cursor:pointer}.yext-chat :disabled{cursor:default}.yext-chat audio,.yext-chat canvas,.yext-chat embed,.yext-chat iframe,.yext-chat img,.yext-chat object,.yext-chat svg,.yext-chat video{display:block;vertical-align:middle}.yext-chat img,.yext-chat video{max-width:100%;height:auto}.yext-chat [hidden]{display:none}.yext-chat *,.yext-chat ::backdrop,.yext-chat :after,.yext-chat :before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.yext-chat .container{width:100%}@media (min-width:640px){.yext-chat .container{max-width:640px}}@media (min-width:768px){.yext-chat .container{max-width:768px}}@media (min-width:1024px){.yext-chat .container{max-width:1024px}}@media (min-width:1280px){.yext-chat .container{max-width:1280px}}@media (min-width:1536px){.yext-chat .container{max-width:1536px}}.yext-chat .prose{color:var(--tw-prose-body);max-width:65ch}.yext-chat .prose :where(p):not(:where([class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.yext-chat .prose :where([class~=lead]):not(:where([class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.yext-chat .prose :where(a):not(:where([class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.yext-chat .prose :where(strong):not(:where([class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.yext-chat .prose :where(a strong):not(:where([class~=not-prose] *)){color:inherit}.yext-chat .prose :where(blockquote strong):not(:where([class~=not-prose] *)){color:inherit}.yext-chat .prose :where(thead th strong):not(:where([class~=not-prose] *)){color:inherit}.yext-chat .prose :where(ol):not(:where([class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.yext-chat .prose :where(ol[type=A]):not(:where([class~=not-prose] *)){list-style-type:upper-alpha}.yext-chat .prose :where(ol[type=a]):not(:where([class~=not-prose] *)){list-style-type:lower-alpha}.yext-chat .prose :where(ol[type=A s]):not(:where([class~=not-prose] *)){list-style-type:upper-alpha}.yext-chat .prose :where(ol[type=a s]):not(:where([class~=not-prose] *)){list-style-type:lower-alpha}.yext-chat .prose :where(ol[type=I]):not(:where([class~=not-prose] *)){list-style-type:upper-roman}.yext-chat .prose :where(ol[type=i]):not(:where([class~=not-prose] *)){list-style-type:lower-roman}.yext-chat .prose :where(ol[type=I s]):not(:where([class~=not-prose] *)){list-style-type:upper-roman}.yext-chat .prose :where(ol[type=i s]):not(:where([class~=not-prose] *)){list-style-type:lower-roman}.yext-chat .prose :where(ol[type="1"]):not(:where([class~=not-prose] *)){list-style-type:decimal}.yext-chat .prose :where(ul):not(:where([class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.yext-chat .prose :where(ol>li):not(:where([class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.yext-chat .prose :where(ul>li):not(:where([class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.yext-chat .prose :where(hr):not(:where([class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.yext-chat .prose :where(blockquote):not(:where([class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-left-width:.25rem;border-left-color:var(--tw-prose-quote-borders);quotes:"\201C""\201D""\2018""\2019";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.yext-chat .prose :where(blockquote p:first-of-type):not(:where([class~=not-prose] *)):before{content:open-quote}.yext-chat .prose :where(blockquote p:last-of-type):not(:where([class~=not-prose] *)):after{content:close-quote}.yext-chat .prose :where(h1):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.yext-chat .prose :where(h1 strong):not(:where([class~=not-prose] *)){font-weight:900;color:inherit}.yext-chat .prose :where(h2):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.yext-chat .prose :where(h2 strong):not(:where([class~=not-prose] *)){font-weight:800;color:inherit}.yext-chat .prose :where(h3):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.yext-chat .prose :where(h3 strong):not(:where([class~=not-prose] *)){font-weight:700;color:inherit}.yext-chat .prose :where(h4):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.yext-chat .prose :where(h4 strong):not(:where([class~=not-prose] *)){font-weight:700;color:inherit}.yext-chat .prose :where(img):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.yext-chat .prose :where(figure>*):not(:where([class~=not-prose] *)){margin-top:0;margin-bottom:0}.yext-chat .prose :where(figcaption):not(:where([class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.yext-chat .prose :where(code):not(:where([class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.yext-chat .prose :where(code):not(:where([class~=not-prose] *)):before{content:"`"}.yext-chat .prose :where(code):not(:where([class~=not-prose] *)):after{content:"`"}.yext-chat .prose :where(a code):not(:where([class~=not-prose] *)){color:inherit}.yext-chat .prose :where(h1 code):not(:where([class~=not-prose] *)){color:inherit}.yext-chat .prose :where(h2 code):not(:where([class~=not-prose] *)){color:inherit;font-size:.875em}.yext-chat .prose :where(h3 code):not(:where([class~=not-prose] *)){color:inherit;font-size:.9em}.yext-chat .prose :where(h4 code):not(:where([class~=not-prose] *)){color:inherit}.yext-chat .prose :where(blockquote code):not(:where([class~=not-prose] *)){color:inherit}.yext-chat .prose :where(thead th code):not(:where([class~=not-prose] *)){color:inherit}.yext-chat .prose :where(pre):not(:where([class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.yext-chat .prose :where(pre code):not(:where([class~=not-prose] *)){background-color:initial;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.yext-chat .prose :where(pre code):not(:where([class~=not-prose] *)):before{content:none}.yext-chat .prose :where(pre code):not(:where([class~=not-prose] *)):after{content:none}.yext-chat .prose :where(table):not(:where([class~=not-prose] *)){width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.yext-chat .prose :where(thead):not(:where([class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.yext-chat .prose :where(thead th):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.yext-chat .prose :where(tbody tr):not(:where([class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.yext-chat .prose :where(tbody tr:last-child):not(:where([class~=not-prose] *)){border-bottom-width:0}.yext-chat .prose :where(tbody td):not(:where([class~=not-prose] *)){vertical-align:initial}.yext-chat .prose :where(tfoot):not(:where([class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.yext-chat .prose :where(tfoot td):not(:where([class~=not-prose] *)){vertical-align:top}.yext-chat .prose{--tw-prose-body:#374151;--tw-prose-headings:#111827;--tw-prose-lead:#4b5563;--tw-prose-links:#111827;--tw-prose-bold:#111827;--tw-prose-counters:#6b7280;--tw-prose-bullets:#d1d5db;--tw-prose-hr:#e5e7eb;--tw-prose-quotes:#111827;--tw-prose-quote-borders:#e5e7eb;--tw-prose-captions:#6b7280;--tw-prose-code:#111827;--tw-prose-pre-code:#e5e7eb;--tw-prose-pre-bg:#1f2937;--tw-prose-th-borders:#d1d5db;--tw-prose-td-borders:#e5e7eb;--tw-prose-invert-body:#d1d5db;--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:#9ca3af;--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:#9ca3af;--tw-prose-invert-bullets:#4b5563;--tw-prose-invert-hr:#374151;--tw-prose-invert-quotes:#f3f4f6;--tw-prose-invert-quote-borders:#374151;--tw-prose-invert-captions:#9ca3af;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:#d1d5db;--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:#4b5563;--tw-prose-invert-td-borders:#374151;font-size:1rem;line-height:1.75}.yext-chat .prose :where(video):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.yext-chat .prose :where(figure):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.yext-chat .prose :where(li):not(:where([class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.yext-chat .prose :where(ol>li):not(:where([class~=not-prose] *)){padding-left:.375em}.yext-chat .prose :where(ul>li):not(:where([class~=not-prose] *)){padding-left:.375em}.yext-chat .prose :where(.prose>ul>li p):not(:where([class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.yext-chat .prose :where(.prose>ul>li>:first-child):not(:where([class~=not-prose] *)){margin-top:1.25em}.yext-chat .prose :where(.prose>ul>li>:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.25em}.yext-chat .prose :where(.prose>ol>li>:first-child):not(:where([class~=not-prose] *)){margin-top:1.25em}.yext-chat .prose :where(.prose>ol>li>:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.25em}.yext-chat .prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.yext-chat .prose :where(hr+*):not(:where([class~=not-prose] *)){margin-top:0}.yext-chat .prose :where(h2+*):not(:where([class~=not-prose] *)){margin-top:0}.yext-chat .prose :where(h3+*):not(:where([class~=not-prose] *)){margin-top:0}.yext-chat .prose :where(h4+*):not(:where([class~=not-prose] *)){margin-top:0}.yext-chat .prose :where(thead th:first-child):not(:where([class~=not-prose] *)){padding-left:0}.yext-chat .prose :where(thead th:last-child):not(:where([class~=not-prose] *)){padding-right:0}.yext-chat .prose :where(tbody td,tfoot td):not(:where([class~=not-prose] *)){padding:.5714286em}.yext-chat .prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose] *)){padding-left:0}.yext-chat .prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose] *)){padding-right:0}.yext-chat .prose :where(.prose>:first-child):not(:where([class~=not-prose] *)){margin-top:0}.yext-chat .prose :where(.prose>:last-child):not(:where([class~=not-prose] *)){margin-bottom:0}.yext-chat .invisible{visibility:hidden}.yext-chat .fixed{position:fixed}.yext-chat .absolute{position:absolute}.yext-chat .relative{position:relative}.yext-chat .-right-1{right:-.25rem}.yext-chat .-top-3{top:-.75rem}.yext-chat .bottom-0{bottom:0}.yext-chat .bottom-2{bottom:.5rem}.yext-chat .bottom-2\.5{bottom:.625rem}.yext-chat .bottom-6{bottom:1.5rem}.yext-chat .right-4{right:1rem}.yext-chat .z-50{z-index:50}.yext-chat .my-0{margin-top:0;margin-bottom:0}.yext-chat .my-0\.5{margin-top:.125rem;margin-bottom:.125rem}.yext-chat .mb-3{margin-bottom:.75rem}.yext-chat .ml-4{margin-left:1rem}.yext-chat .ml-auto{margin-left:auto}.yext-chat .mt-auto{margin-top:auto}.yext-chat .flex{display:flex}.yext-chat .h-12{height:3rem}.yext-chat .h-2{height:.5rem}.yext-chat .h-6{height:1.5rem}.yext-chat .h-8{height:2rem}.yext-chat .h-\[22px\]{height:22px}.yext-chat .h-\[26px\]{height:26px}.yext-chat .h-\[28px\]{height:28px}.yext-chat .h-\[75vh\]{height:75vh}.yext-chat .h-fit{height:-moz-fit-content;height:fit-content}.yext-chat .h-full{height:100%}.yext-chat .w-12{width:3rem}.yext-chat .w-2{width:.5rem}.yext-chat .w-6{width:1.5rem}.yext-chat .w-8{width:2rem}.yext-chat .w-80{width:20rem}.yext-chat .w-\[22px\]{width:22px}.yext-chat .w-\[26px\]{width:26px}.yext-chat .w-\[28px\]{width:28px}.yext-chat .w-fit{width:-moz-fit-content;width:fit-content}.yext-chat .w-full{width:100%}.yext-chat .max-w-\[80\%\]{max-width:80%}.yext-chat .shrink-0{flex-shrink:0}.yext-chat .translate-y-0{--tw-translate-y:0px}.yext-chat .translate-y-0,.yext-chat .translate-y-\[20\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.yext-chat .translate-y-\[20\%\]{--tw-translate-y:20%}.yext-chat .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.yext-chat .animate-\[bounce_1s_infinite\]{animation:bounce 1s infinite}.yext-chat .animate-\[bounce_1s_infinite_0\.3s\]{animation:bounce 1s .3s infinite}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.yext-chat .animate-\[bounce_1s_infinite_0\.6s\]{animation:bounce 1s .6s infinite}@keyframes spin{to{transform:rotate(1turn)}}.yext-chat .animate-\[spin_0\.3s_linear\]{animation:spin .3s linear}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.yext-chat .animate-fade-in{animation:fade-in .4s}.yext-chat .cursor-pointer{cursor:pointer}.yext-chat .resize-none{resize:none}.yext-chat .flex-row{flex-direction:row}.yext-chat .flex-col{flex-direction:column}.yext-chat .items-center{align-items:center}.yext-chat .justify-center{justify-content:center}.yext-chat .justify-between{justify-content:space-between}.yext-chat .gap-1{gap:.25rem}.yext-chat .gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.yext-chat .gap-y-1{row-gap:.25rem}.yext-chat .overflow-auto{overflow:auto}.yext-chat .overflow-hidden{overflow:hidden}.yext-chat .overflow-x-auto{overflow-x:auto}.yext-chat .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.yext-chat .whitespace-pre-wrap{white-space:pre-wrap}.yext-chat .rounded-2xl{border-radius:1rem}.yext-chat .rounded-3xl{border-radius:1.5rem}.yext-chat .rounded-full{border-radius:9999px}.yext-chat .rounded-md{border-radius:.375rem}.yext-chat .rounded-b-3xl{border-bottom-right-radius:1.5rem;border-bottom-left-radius:1.5rem}.yext-chat .rounded-t-3xl{border-top-left-radius:1.5rem;border-top-right-radius:1.5rem}.yext-chat .border{border-width:1px}.yext-chat .border-slate-300{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity))}.yext-chat .bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.yext-chat .bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.yext-chat .bg-slate-500{--tw-bg-opacity:1;background-color:rgb(100 116 139/var(--tw-bg-opacity))}.yext-chat .bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.yext-chat .bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.yext-chat .bg-gradient-to-tr{background-image:linear-gradient(to top right,var(--tw-gradient-stops))}.yext-chat .from-blue-600{--tw-gradient-from:#2563eb var(--tw-gradient-from-position);--tw-gradient-to:#2563eb00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.yext-chat .from-slate-50{--tw-gradient-from:#f8fafc var(--tw-gradient-from-position);--tw-gradient-to:#f8fafc00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.yext-chat .to-blue-700{--tw-gradient-to:#1d4ed8 var(--tw-gradient-to-position)}.yext-chat .to-blue-800{--tw-gradient-to:#1e40af var(--tw-gradient-to-position)}.yext-chat .to-slate-100{--tw-gradient-to:#f1f5f9 var(--tw-gradient-to-position)}.yext-chat .stroke-2{stroke-width:2}.yext-chat .stroke-\[0\.2\]{stroke-width:.2}.yext-chat .p-1{padding:.25rem}.yext-chat .p-1\.5{padding:.375rem}.yext-chat .p-2{padding:.5rem}.yext-chat .p-4{padding:1rem}.yext-chat .px-4{padding-left:1rem;padding-right:1rem}.yext-chat .py-3{padding-top:.75rem;padding-bottom:.75rem}.yext-chat .pb-\[85px\]{padding-bottom:85px}.yext-chat .pl-4{padding-left:1rem}.yext-chat .pr-1{padding-right:.25rem}.yext-chat .pr-12{padding-right:3rem}.yext-chat .pr-3{padding-right:.75rem}.yext-chat .text-\[10px\]{font-size:10px}.yext-chat .text-\[13px\]{font-size:13px}.yext-chat .text-xl{font-size:1.25rem;line-height:1.75rem}.yext-chat .font-medium{font-weight:500}.yext-chat .text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.yext-chat .text-red-200{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}.yext-chat .text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity))}.yext-chat .text-slate-700{--tw-text-opacity:1;color:rgb(51 65 85/var(--tw-text-opacity))}.yext-chat .text-slate-900{--tw-text-opacity:1;color:rgb(15 23 42/var(--tw-text-opacity))}.yext-chat .text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.yext-chat .opacity-0{opacity:0}.yext-chat .shadow-2xl{--tw-shadow:0 25px 50px -12px #00000040;--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color)}.yext-chat .shadow-2xl,.yext-chat .shadow-xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.yext-chat .shadow-xl{--tw-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color)}.yext-chat .backdrop-blur-lg{--tw-backdrop-blur:blur(16px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.yext-chat .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.yext-chat .duration-150,.yext-chat .transition-all{transition-duration:.15s}.yext-chat .duration-200{transition-duration:.2s}.yext-chat .duration-300{transition-duration:.3s}.yext-chat .\@container{container-type:inline-size}.yext-chat .first\:mt-4:first-child{margin-top:1rem}.yext-chat .hover\:-translate-y-2:hover{--tw-translate-y:-0.5rem}.yext-chat .hover\:-translate-y-2:hover,.yext-chat .hover\:scale-110:hover{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.yext-chat .hover\:scale-110:hover{--tw-scale-x:1.1;--tw-scale-y:1.1}.yext-chat .hover\:bg-blue-800:hover{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.yext-chat .active\:scale-90:active{--tw-scale-x:.9;--tw-scale-y:.9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.yext-chat .disabled\:bg-slate-200:disabled{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity))}.yext-chat .group:hover .group-hover\:opacity-100,.yext-chat .peer:hover~.peer-hover\:opacity-100{opacity:1}@container (min-width: 32rem){.yext-chat .\@lg\:m-1{margin:.25rem}.yext-chat .\@lg\:ml-0{margin-left:0}.yext-chat .\@lg\:flex-row{flex-direction:row}.yext-chat .\@lg\:flex-row-reverse{flex-direction:row-reverse}.yext-chat .\@lg\:items-center{align-items:center}.yext-chat .\@lg\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}}@container (min-width: 480px){.yext-chat .\@\[480px\]\:bottom-3\.5{bottom:.875rem}.yext-chat .\@\[480px\]\:text-\[13px\]{font-size:13px}.yext-chat .\@\[480px\]\:text-base{font-size:1rem;line-height:1.5rem}}@media (max-width:480px){.yext-chat .max-\[480px\]\:bottom-0{bottom:0}.yext-chat .max-\[480px\]\:right-0{right:0}.yext-chat .max-\[480px\]\:h-full{height:100%}.yext-chat .max-\[480px\]\:w-full{width:100%}.yext-chat .max-\[480px\]\:rounded-none{border-radius:0}}@media (min-width:1024px){.yext-chat .lg\:bottom-14{bottom:3.5rem}.yext-chat .lg\:right-10{right:2.5rem}.yext-chat .lg\:h-16{height:4rem}.yext-chat .lg\:h-\[40px\]{height:40px}.yext-chat .lg\:w-16{width:4rem}.yext-chat .lg\:w-96{width:24rem}.yext-chat .lg\:w-\[40px\]{width:40px}}
@@ -0,0 +1,100 @@
1
+ {
2
+ "name": "@yext/chat-ui-react",
3
+ "version": "0.5.4",
4
+ "description": "A library of React Components for powering Yext Chat integrations.",
5
+ "author": "clippy@yext.com",
6
+ "main": "./lib/commonjs/src/index.js",
7
+ "module": "./lib/esm/src/index.js",
8
+ "types": "./lib/esm/src/index.d.ts",
9
+ "sideEffects": false,
10
+ "exports": {
11
+ ".": {
12
+ "import": "./lib/esm/src/index.js",
13
+ "require": "./lib/commonjs/src/index.js"
14
+ },
15
+ "./bundle.css": "./lib/bundle.css"
16
+ },
17
+ "license": "BSD-3-Clause",
18
+ "files": [
19
+ "lib",
20
+ "src",
21
+ "THIRD-PARTY-NOTICES",
22
+ "LICENSE"
23
+ ],
24
+ "keywords": [
25
+ "chat",
26
+ "ai",
27
+ "yext",
28
+ "react",
29
+ "components",
30
+ "tailwindcss"
31
+ ],
32
+ "scripts": {
33
+ "lint": "prettier --write . && eslint --fix --max-warnings=0 .",
34
+ "test": "jest --config=jest.config.json",
35
+ "storybook": "storybook dev -p 6006",
36
+ "dev": "tsc --watch -p tsconfig.esm.json",
37
+ "generate-docs": "api-extractor run --local --verbose && api-documenter markdown --input-folder temp --output-folder docs && rm -rf temp",
38
+ "generate-notices": "generate-license-file --input package.json --output ./THIRD-PARTY-NOTICES --overwrite",
39
+ "postcss": "postcss",
40
+ "tailwindcss": "tailwindcss",
41
+ "build:css": "./scoped-bundle.sh",
42
+ "build:js": "tsc -p tsconfig.esm.json && tsc -p tsconfig.cjs.json",
43
+ "build": "rm -rf lib/** && npm run build:js && npm run build:css && npm run generate-docs && npm run generate-notices",
44
+ "build-storybook": "storybook build"
45
+ },
46
+ "devDependencies": {
47
+ "@babel/core": "^7.21.8",
48
+ "@babel/preset-env": "^7.21.5",
49
+ "@babel/preset-react": "^7.18.6",
50
+ "@babel/preset-typescript": "^7.21.5",
51
+ "@microsoft/api-documenter": "^7.22.8",
52
+ "@microsoft/api-extractor": "^7.35.1",
53
+ "@storybook/addon-essentials": "^7.0.18",
54
+ "@storybook/addon-interactions": "^7.0.18",
55
+ "@storybook/addon-links": "^7.0.18",
56
+ "@storybook/blocks": "^7.0.18",
57
+ "@storybook/react": "^7.0.17",
58
+ "@storybook/react-vite": "^7.0.17",
59
+ "@storybook/testing-library": "^0.1.0",
60
+ "@tailwindcss/container-queries": "^0.1.1",
61
+ "@tailwindcss/typography": "^0.5.9",
62
+ "@testing-library/jest-dom": "^5.16.5",
63
+ "@testing-library/react": "^14.0.0",
64
+ "@testing-library/user-event": "^14.4.3",
65
+ "@types/jest": "^29.5.1",
66
+ "@types/react": "^18.2.7",
67
+ "@yext/chat-headless-react": "^0.5.4",
68
+ "@yext/eslint-config": "^1.0.0",
69
+ "babel-jest": "^29.5.0",
70
+ "eslint": "^8.39.0",
71
+ "eslint-plugin-storybook": "^0.6.12",
72
+ "generate-license-file": "^2.0.0",
73
+ "jest": "^29.5.0",
74
+ "jest-environment-jsdom": "^29.5.0",
75
+ "msw": "^1.2.1",
76
+ "msw-storybook-addon": "^1.8.0",
77
+ "postcss-cli": "^10.1.0",
78
+ "postcss-nested": "^6.0.1",
79
+ "prettier": "^2.8.8",
80
+ "react": "^18.2.0",
81
+ "react-dom": "^18.2.0",
82
+ "storybook": "^7.0.17",
83
+ "tailwindcss": "^3.3.2",
84
+ "typescript": "^5.0.4"
85
+ },
86
+ "peerDependencies": {
87
+ "@yext/chat-headless-react": "^0.5.4",
88
+ "react": "^16.14 || ^17 || ^18",
89
+ "react-dom": "^16.14 || ^17 || || ^18"
90
+ },
91
+ "dependencies": {
92
+ "react-expanding-textarea": "^2.3.6",
93
+ "react-markdown": "^6.0.3",
94
+ "react-textarea-autosize": "^8.4.1",
95
+ "rehype-raw": "^5.0.0",
96
+ "rehype-sanitize": "^4.0.0",
97
+ "remark-gfm": "^1.0.0",
98
+ "tailwind-merge": "^1.12.0"
99
+ }
100
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/ChatHeader.tsx"],"names":[],"mappings":";AAQA;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAcD;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,oEAAoE;IACpE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,2CAA2C;IAC3C,iBAAiB,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAChC,yCAAyC;IACzC,eAAe,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAC9B,0DAA0D;IAC1D,gBAAgB,CAAC,EAAE,oBAAoB,CAAC;CACzC;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,OAAO,EACP,gBAAgB,GACjB,EAAE,eAAe,2CAgDjB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatHeader.js","sourceRoot":"","sources":["../../../../src/components/ChatHeader.tsx"],"names":[],"mappings":";;;;AAAA,mEAA2D;AAC3D,gDAAiD;AACjD,0EAAuE;AACvE,iCAAsD;AACtD,mDAAyC;AACzC,0CAA2C;AAC3C,8EAA2E;AAgB3E,MAAM,iBAAiB,GACrB,IAAA,iDAAuB,EAAC,QAAQ,EAAE;IAChC,SAAS,EACP,wFAAwF;IAC1F,KAAK,EAAE,8CAA8C;IACrD,aAAa,EAAE,2DAA2D;IAC1E,iBAAiB,EAAE,2CAA2C;IAC9D,WAAW,EACT,mEAAmE;IACrE,eAAe,EAAE,8BAA8B;CAChD,CAAC,CAAC;AAgCL;;;;;;;GAOG;AACH,SAAgB,UAAU,CAAC,EACzB,KAAK,EACL,iBAAiB,EACjB,iBAAiB,EACjB,eAAe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AI,CAClB,uBAAC,iBAAS,IAAC,SAAS,EAAE,UAAU,CAAC,eAAe,GAAI,CACrD,GACM,CACV,IACG,CACP,CAAC;AACJ,CAAC;AAxDD,gCAwDC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatInput.d.ts","sourceRoot":"","sources":["../../../../src/components/ChatInput.tsx"],"names":[],"mappings":";AAQA;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAaD;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,8DAA8D;IAC9D,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,uCAAuC;IACvC,cAAc,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAC7B,yDAAyD;IACzD,gBAAgB,CAAC,EAAE,mBAAmB,CAAC;CACxC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,SAAS,CAAC,EACxB,WAAiC,EACjC,MAAc,EACd,cAAsB,EACtB,WAAW,EACX,cAA8B,EAC9B,gBAAgB,GACjB,EAAE,cAAc,2CAyDhB"}
@@ -14,7 +14,7 @@ const useDefaultHandleApiError_1 = require("../hooks/useDefaultHandleApiError");
14
14
  const withStylelessCssClasses_1 = require("../utils/withStylelessCssClasses");
15
15
  const builtInCssClasses = (0, withStylelessCssClasses_1.withStylelessCssClasses)("Input", {
16
16
  container: "w-full h-fit flex flex-row relative @container",
17
- textArea: "w-full p-4 pr-12 border border-slate-300 rounded-3xl resize-none text-[13px] @[480px]:text-base",
17
+ textArea: "w-full p-4 pr-12 border border-slate-300 rounded-3xl resize-none text-[13px] @[480px]:text-base text-slate-900",
18
18
  sendButton: "rounded-full p-1.5 w-8 h-8 stroke-2 text-white bg-blue-600 disabled:bg-slate-200 hover:bg-blue-800 active:scale-90 transition-all absolute right-4 bottom-2.5 @[480px]:bottom-3.5",
19
19
  });
20
20
  /**
@@ -44,15 +44,15 @@ function ChatInput({ placeholder = "Type a message...", stream = false, inputAut
44
44
  const handleKeyDown = (0, react_1.useCallback)((e) => {
45
45
  if (!e.shiftKey && e.key === "Enter") {
46
46
  e.preventDefault();
47
- if (canSendMessage) {
47
+ if (canSendMessage && input.trim().length !== 0) {
48
48
  sendMessage();
49
49
  }
50
50
  }
51
- }, [sendMessage, canSendMessage]);
51
+ }, [sendMessage, canSendMessage, input]);
52
52
  const onInputChange = (0, react_1.useCallback)((e) => {
53
53
  setInput(e.target.value);
54
54
  }, []);
55
- return ((0, jsx_runtime_1.jsxs)("div", { className: cssClasses.container, children: [(0, jsx_runtime_1.jsx)(react_expanding_textarea_1.default, { autoFocus: inputAutoFocus, onKeyDown: handleKeyDown, value: input, onChange: onInputChange, className: cssClasses.textArea, placeholder: placeholder }), (0, jsx_runtime_1.jsx)("button", { "aria-label": "Send Message", disabled: !canSendMessage || input.length === 0, onClick: sendMessage, className: cssClasses.sendButton, children: sendButtonIcon })] }));
55
+ return ((0, jsx_runtime_1.jsxs)("div", { className: cssClasses.container, children: [(0, jsx_runtime_1.jsx)(react_expanding_textarea_1.default, { autoFocus: inputAutoFocus, onKeyDown: handleKeyDown, value: input, onChange: onInputChange, className: cssClasses.textArea, placeholder: placeholder }), (0, jsx_runtime_1.jsx)("button", { "aria-label": "Send Message", disabled: !canSendMessage || input.trim().length === 0, onClick: sendMessage, className: cssClasses.sendButton, children: sendButtonIcon })] }));
56
56
  }
57
57
  exports.ChatInput = ChatInput;
58
58
  //# sourceMappingURL=ChatInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatInput.js","sourceRoot":"","sources":["../../../../src/components/Ch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ChatPanelCssClasses {
10
10
  container?: string;
11
11
  messagesContainer?: string;
12
+ messagesScrollContainer?: string;
12
13
  inputContainer?: string;
13
14
  inputCssClasses?: ChatInputCssClasses;
14
15
  messageBubbleCssClasses?: MessageBubbleCssClasses;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/ChatPanel.tsx"],"names":[],"mappings":";AAEA,OAAO,EAEL,uBAAuB,EACvB,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAa,mBAAmB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAO7E;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACtC,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;CACnD;AAeD;;;;GAIG;AACH,MAAM,WAAW,cACf,SAAQ,IAAI,CAAC,kBAAkB,EAAE,kBAAkB,GAAG,SAAS,CAAC,EAC9D,IAAI,CAAC,cAAc,EAAE,kBAAkB,CAAC;IAC1C,kDAAkD;IAClD,MAAM,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACrB;;OAEG;IACH,gBAAgB,CAAC,EAAE,mBAAmB,CAAC;CACxC;AAED;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,2CA2D9C"}
@@ -11,9 +11,11 @@ const LoadingDots_1 = require("./LoadingDots");
11
11
  const hooks_1 = require("../hooks");
12
12
  const useDefaultHandleApiError_1 = require("../hooks/useDefaultHandleApiError");
13
13
  const withStylelessCssClasses_1 = require("../utils/withStylelessCssClasses");
14
+ const useReportAnalyticsEvent_1 = require("../hooks/useReportAnalyticsEvent");
14
15
  const builtInCssClasses = (0, withStylelessCssClasses_1.withStylelessCssClasses)("Panel", {
15
16
  container: "h-full w-full flex flex-col relative shadow-2xl bg-white",
16
- messagesContainer: "flex flex-col gap-y-1 mt-auto px-4 pb-[85px] overflow-auto",
17
+ messagesScrollContainer: "flex flex-col mt-auto overflow-hidden",
18
+ messagesContainer: "flex flex-col gap-y-1 px-4 pb-[85px] overflow-auto",
17
19
  inputContainer: "w-full absolute bottom-0 p-4 backdrop-blur-lg",
18
20
  messageBubbleCssClasses: {
19
21
  topContainer: "first:mt-4",
@@ -36,11 +38,12 @@ function ChatPanel(props) {
36
38
  const canSendMessage = (0, chat_headless_react_1.useChatState)((state) => state.conversation.canSendMessage);
37
39
  const cssClasses = (0, hooks_1.useComposedCssClasses)(builtInCssClasses, customCssClasses);
38
40
  const defaultHandleApiError = (0, useDefaultHandleApiError_1.useDefaultHandleApiError)();
41
+ const reportAnalyticsEvent = (0, useReportAnalyticsEvent_1.useReportAnalyticsEvent)();
39
42
  (0, react_2.useEffect)(() => {
40
- chat.report({
43
+ reportAnalyticsEvent({
41
44
  action: "CHAT_IMPRESSION",
42
45
  });
43
- }, [chat]);
46
+ }, [reportAnalyticsEvent]);
44
47
  // Fetch the first message on load, if there are no existing messages or a request being processed
45
48
  (0, react_2.useEffect)(() => {
46
49
  if (messages.length !== 0 || !canSendMessage) {
@@ -58,7 +61,7 @@ function ChatPanel(props) {
58
61
  behavior: "smooth",
59
62
  });
60
63
  }, [messages]);
61
- return ((0, jsx_runtime_1.jsxs)("div", { className: cssClasses.container, children: [header, (0, jsx_runtime_1.jsxs)("div", { ref: messagesRef, className: cssClasses.messagesContainer, children: [messages.map((message, index) => ((0, react_1.createElement)(MessageBubble_1.MessageBubble, { ...props, customCssClasses: cssClasses.messageBubbleCssClasses, key: index, message: message }))), loading && (0, jsx_runtime_1.jsx)(LoadingDots_1.LoadingDots, {})] }), (0, jsx_runtime_1.jsx)("div", { className: cssClasses.inputContainer, children: (0, jsx_runtime_1.jsx)(ChatInput_1.ChatInput, { ...props, customCssClasses: cssClasses.inputCssClasses }) })] }));
64
+ return ((0, jsx_runtime_1.jsxs)("div", { className: cssClasses.container, children: [header, (0, jsx_runtime_1.jsx)("div", { className: cssClasses.messagesScrollContainer, children: (0, jsx_runtime_1.jsxs)("div", { ref: messagesRef, className: cssClasses.messagesContainer, children: [messages.map((message, index) => ((0, react_1.createElement)(MessageBubble_1.MessageBubble, { ...props, customCssClasses: cssClasses.messageBubbleCssClasses, key: index, message: message }))), loading && (0, jsx_runtime_1.jsx)(LoadingDots_1.LoadingDots, {})] }) }), (0, jsx_runtime_1.jsx)("div", { className: cssClasses.inputContainer, children: (0, jsx_runtime_1.jsx)(ChatInput_1.ChatInput, { ...props, customCssClasses: cssClasses.inputCssClasses }) })] }));
62
65
  }
63
66
  exports.ChatPanel = ChatPanel;
64
67
  //# sourceMappingURL=ChatPanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatPanel.js","sourceRoot":"","sources":["../../../../src/components/ChatPanel.tsx"],"names":[],"mappings":";;;;;AAAA,iCAA0C;AAC1C,mEAAyE;AACzE,mDAIyB;AACzB,2CAA6E;AAC7E,+CAA4C;AAC5C,oCAAiD;AACjD,gFAA6E;AAC7E,8EAA2E;AAC3E,8EAA2E;AAgB3E,MAAM,iBAAiB,GAAwB,IAAA,iDAAuB,EACpE,OAAO,EACP;IACE,SAAS,EAAE,0DAA0D;IACrE,uBAAuB,EAAE,uCAAuC;IAChE,iBAAiB,EAAE,oDAAoD;IACvE,cAAc,EAAE,+CAA+C;IAC/D,uBAAuB,EAAE;QACvB,YAAY,EAAE,YAAY;KAC3B;CACF,CACF,CAAC;AAkBF;;;;;;;;GAQG;AACH,SAAgB,SAAS,CAAC,KAAqB;IAC7C,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,GAAG,KAAK,CAAC;IAC3C,MAAM,IAAI,GAAG,IAAA,oCAAc,GAAE,CAAC;IAC9B,MAAM,QAAQ,GAAG,IAAA,k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EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,oBAAoB,CAAC;IACxC,eAAe,CAAC,EAAE,mBAAmB,CAAC;CACvC;AA8BD;;;;GAIG;AACH,MAAM,WAAW,cACf,SAAQ,IAAI,CAAC,eAAe,EAAE,iBAAiB,GAAG,kBAAkB,CAAC,EACnE,IAAI,CAAC,cAAc,EAAE,QAAQ,GAAG,kBAAkB,CAAC;IACrD,0DAA0D;IAC1D,mBAAmB,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAClC;;OAEG;IACH,gBAAgB,CAAC,EAAE,mBAAmB,CAAC;CACxC;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,2CA8D9C"}
@@ -9,7 +9,7 @@ const ChatHeader_1 = require("./ChatHeader");
9
9
  const tailwind_merge_1 = require("tailwind-merge");
10
10
  const hooks_1 = require("../hooks");
11
11
  const withStylelessCssClasses_1 = require("../utils/withStylelessCssClasses");
12
- const chat_headless_react_1 = require("@yext/chat-headless-react");
12
+ const useReportAnalyticsEvent_1 = require("../hooks/useReportAnalyticsEvent");
13
13
  const fixedPosition = "fixed bottom-6 right-4 lg:bottom-14 lg:right-10 z-50 ";
14
14
  const builtInCssClasses = (0, withStylelessCssClasses_1.withStylelessCssClasses)("PopUp", {
15
15
  container: "transition-all",
@@ -28,6 +28,7 @@ const builtInCssClasses = (0, withStylelessCssClasses_1.withStylelessCssClasses)
28
28
  panelCssClasses: {
29
29
  container: "max-[480px]:rounded-none rounded-3xl",
30
30
  inputContainer: "max-[480px]:rounded-none rounded-b-3xl",
31
+ messagesScrollContainer: "rounded-b-3xl"
31
32
  },
32
33
  });
33
34
  /**
@@ -40,12 +41,12 @@ const builtInCssClasses = (0, withStylelessCssClasses_1.withStylelessCssClasses)
40
41
  */
41
42
  function ChatPopUp(props) {
42
43
  const { openPanelButtonIcon, customCssClasses, showRestartButton = true, onClose: customOnClose, title, } = props;
43
- const actions = (0, chat_headless_react_1.useChatActions)();
44
+ const reportAnalyticsEvent = (0, useReportAnalyticsEvent_1.useReportAnalyticsEvent)();
44
45
  (0, react_1.useEffect)(() => {
45
- actions.report({
46
+ reportAnalyticsEvent({
46
47
  action: "CHAT_IMPRESSION",
47
48
  });
48
- }, [actions]);
49
+ }, [reportAnalyticsEvent]);
49
50
  const [showChat, setShowChat] = (0, react_1.useState)(false);
50
51
  const onClick = (0, react_1.useCallback)(() => {
51
52
  setShowChat(!showChat);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatPopUp.js","sourceRoot":"","sources":["../../../../src/components/ChatPopUp.tsx"],"names":[],"mappings":";;;;AAAA,iCAAyD;AACzD,wCAAyC;AACzC,2CAA6E;AAC7E,6CAIsB;AACtB,mDAAyC;AACzC,oCAAiD;AACjD,8EAA2E;AAC3E,8EAA2E;AAoB3E,MAAM,aAAa,GAAG,uDAAuD,CAAC;AAC9E,MAAM,iBAAiB,GAAwB,IAAA,iDAAuB,EACpE,OAAO,EACP;IACE,SAAS,EAAE,gBAAgB;IAC3B,KAAK,EACH,aAAa;QACb,sGAAsG;IACxG,cAAc,EAAE,4BAA4B;IAC5C,aAAa,EAAE,oDAAoD;IACnE,MAAM,EACJ,aAAa;QACb,gLAAgL;IAClL,eAAe,EAAE,sCAAsC;IACvD,cAAc,EACZ,8DAA8D;IAChE,UAAU,EAAE,yDAAyD;IACrE,gBAAgB,EAAE;QAChB,SAAS,EAAE,wCAAwC;KACpD;IACD,eAAe,EAAE;QACf,SAAS,EAAE,sCAAsC;QACjD,cAAc,EAAE,wCAAwC;QACxD,uBAAu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IAEF,OAAO,CACL,iCAAK,SAAS,EAAE,UAAU,CAAC,SAAS,aAClC,gCAAK,SAAS,EAAE,eAAe,gBAAa,kBAAkB,YAC5D,uBAAC,qBAAS,OACJ,KAAK,EACT,gBAAgB,EAAE,UAAU,CAAC,eAAe,EAC5C,MAAM,EACJ,uBAAC,uBAAU,IACT,KAAK,EAAE,KAAK,EACZ,iBAAiB,EAAE,iBAAiB,EACpC,eAAe,EAAE,IAAI,EACrB,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAE,UAAU,CAAC,gBAAgB,GAC7C,GAEJ,GACE,EACN,iDACa,mBAAmB,EAC9B,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,gBAAgB,YAE1B,mBAAmB,IAAI,uBAAC,eAAQ,IAAC,SAAS,EAAE,UAAU,CAAC,UAAU,GAAI,GAC/D,IACL,CACP,CAAC;AACJ,CAAC;AA9DD,8BA8DC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatStyleProvider.d.ts","sourceRoot":"","sources":["../../../../src/components/ChatStyleProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,gCAAgC,CAAC;AAExC;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE,iBAAiB,2CAEhE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatStyleProvider.js","sourceRoot":"","sources":["../../../../src/components/ChatStyleProvider.tsx"],"names":[],"mappings":";;;;AACA,0CAAwC;AAExC;;;;;;;;GAQG;AACH,SAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAqB;IAC/D,OAAO,gCAAK,SAAS,EAAC,WAAW,YAAE,QAAQ,GAAO,CAAC;AACrD,CAAC;AAFD,8CAEC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeedbackButtons.d.ts","sourceRoot":"","sources":["../../../../src/components/FeedbackButtons.tsx"],"names":[],"mappings":"AASA;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAgBD;;;;GAIG;AACH,UAAU,oBAAoB;IAC5B,6EAA6E;IAC7E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yDAAyD;IACzD,gBAAgB,CAAC,EAAE,yBAAyB,CAAC;CAC9C;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,EAC9B,gBAAgB,EAChB,UAAU,GACX,EAAE,oBAAoB,2CA+CtB"}
@@ -9,7 +9,7 @@ const ThumbsUpFill_1 = require("../icons/ThumbsUpFill");
9
9
  const ThumbsDownFill_1 = require("../icons/ThumbsDownFill");
10
10
  const withStylelessCssClasses_1 = require("../utils/withStylelessCssClasses");
11
11
  const hooks_1 = require("../hooks");
12
- const chat_headless_react_1 = require("@yext/chat-headless-react");
12
+ const useReportAnalyticsEvent_1 = require("../hooks/useReportAnalyticsEvent");
13
13
  const builtInCssClasses = (0, withStylelessCssClasses_1.withStylelessCssClasses)("FeedbackButtons", {
14
14
  container: "flex gap-x-1 absolute -right-1 -top-3 opacity-0 group-hover:opacity-100 duration-200",
15
15
  thumbsUpButton: "w-6 h-6 bg-gray-700 rounded-md flex justify-center items-center",
@@ -26,27 +26,27 @@ const builtInCssClasses = (0, withStylelessCssClasses_1.withStylelessCssClasses)
26
26
  * @internal
27
27
  */
28
28
  function FeedbackButtons({ customCssClasses, responseId, }) {
29
- const actions = (0, chat_headless_react_1.useChatActions)();
29
+ const reportAnalyticsEvent = (0, useReportAnalyticsEvent_1.useReportAnalyticsEvent)();
30
30
  const cssClasses = (0, hooks_1.useComposedCssClasses)(builtInCssClasses, customCssClasses);
31
31
  const [selectedThumb, setSelectedThumb] = (0, react_1.useState)();
32
32
  const onClickThumbsUp = (0, react_1.useCallback)(() => {
33
33
  setSelectedThumb("UP");
34
- actions.report({
34
+ reportAnalyticsEvent({
35
35
  action: "THUMBS_UP",
36
36
  chat: {
37
37
  responseId,
38
38
  },
39
39
  });
40
- }, [actions, responseId]);
40
+ }, [reportAnalyticsEvent, responseId]);
41
41
  const onClickThumbsDown = (0, react_1.useCallback)(() => {
42
42
  setSelectedThumb("DOWN");
43
- actions.report({
43
+ reportAnalyticsEvent({
44
44
  action: "THUMBS_DOWN",
45
45
  chat: {
46
46
  responseId,
47
47
  },
48
48
  });
49
- }, [actions, responseId]);
49
+ }, [reportAnalyticsEvent, responseId]);
50
50
  return ((0, jsx_runtime_1.jsxs)("div", { className: cssClasses.container, children: [(0, jsx_runtime_1.jsx)("button", { className: cssClasses.thumbsUpButton, onClick: onClickThumbsUp, children: selectedThumb === "UP" ? ((0, jsx_runtime_1.jsx)(ThumbsUpFill_1.ThumbsUpFillIcon, { className: cssClasses.thumbsUpFillIcon })) : ((0, jsx_runtime_1.jsx)(ThumbsUp_1.ThumbsUpIcon, { className: cssClasses.thumbsUpIcon })) }), (0, jsx_runtime_1.jsx)("button", { className: cssClasses.thumbsDownButton, onClick: onClickThumbsDown, children: selectedThumb === "DOWN" ? ((0, jsx_runtime_1.jsx)(ThumbsDownFill_1.ThumbsDownFillIcon, { className: cssClasses.thumbsDownFillIcon })) : ((0, jsx_runtime_1.jsx)(ThumbsDown_1.ThumbsDownIcon, { className: cssClasses.thumbsDownIcon })) })] }));
51
51
  }
52
52
  exports.FeedbackButtons = FeedbackButtons;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeedbackButtons.js","sourceRoot":"","sources":["../../../../src/components/FeedbackButtons.tsx"],"names":[],"mappings":";;;;AAAA,oDAAqD;AACrD,gDAAiD;AACjD,iCAA8C;AAC9C,wDA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c,EAAE,OAAO,EAAE,eAAe,YACnE,aAAa,KAAK,IAAI,CAAC,CAAC,CAAC,CACxB,uBAAC,+BAAgB,IAAC,SAAS,EAAE,UAAU,CAAC,gBAAgB,GAAI,CAC7D,CAAC,CAAC,CAAC,CACF,uBAAC,uBAAY,IAAC,SAAS,EAAE,UAAU,CAAC,YAAY,GAAI,CACrD,GACM,EACT,mCACE,SAAS,EAAE,UAAU,CAAC,gBAAgB,EACtC,OAAO,EAAE,iBAAiB,YAEzB,aAAa,KAAK,MAAM,CAAC,CAAC,CAAC,CAC1B,uBAAC,mCAAkB,IAAC,SAAS,EAAE,UAAU,CAAC,kBAAkB,GAAI,CACjE,CAAC,CAAC,CAAC,CACF,uBAAC,2BAAc,IAAC,SAAS,EAAE,UAAU,CAAC,cAAc,GAAI,CACzD,GACM,IACL,CACP,CAAC;AACJ,CAAC;AAlDD,0CAkDC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoadingDots.d.ts","sourceRoot":"","sources":["../../../../src/components/LoadingDots.tsx"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,2CAWhE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoadingDots.js","sourceRoot":"","sources":["../../../../src/components/LoadingDots.tsx"],"names":[],"mappings":";;;;AAAA,mDAAyC;AAEzC;;;;GAIG;AACH,SAAgB,WAAW,CAAC,EAAE,SAAS,EAA0B;IAC/D,OAAO,CACL,+CACa,mBAAmB,EAC9B,SAAS,EAAE,IAAA,wBAAO,EAAC,gCAAgC,EAAE,SAAS,CAAC,aAE/D,gCAAK,SAAS,EAAC,gEAAgE,GAAG,EAClF,gCAAK,SAAS,EAAC,qEAAqE,GAAG,EACvF,gCAAK,SAAS,EAAC,qEAAqE,GAAG,IACnF,CACP,CAAC;AACJ,CAAC;AAXD,kCAWC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Markdown.d.ts","sourceRoot":"","sources":["../../../../src/components/Markdown.tsx"],"names":[],"mappings":"AAqBA,UAAU,aAAa;IACrB,4BAA4B;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,yDAAyD;IACzD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,EAAE,aAAa,2CAuCzE"}
@@ -10,7 +10,7 @@ const remark_gfm_1 = __importDefault(require("remark-gfm"));
10
10
  const rehype_raw_1 = __importDefault(require("rehype-raw"));
11
11
  const rehype_sanitize_1 = __importDefault(require("rehype-sanitize"));
12
12
  const react_1 = require("react");
13
- const chat_headless_react_1 = require("@yext/chat-headless-react");
13
+ const useReportAnalyticsEvent_1 = require("../hooks/useReportAnalyticsEvent");
14
14
  // The Remark and Rehype plugins to use in conjunction with ReactMarkdown.
15
15
  const unifiedPlugins = {
16
16
  remark: [
@@ -31,10 +31,10 @@ const unifiedPlugins = {
31
31
  * @internal
32
32
  */
33
33
  function Markdown({ content, responseId, className }) {
34
- const action = (0, chat_headless_react_1.useChatActions)();
34
+ const reportAnalyticsEvent = (0, useReportAnalyticsEvent_1.useReportAnalyticsEvent)();
35
35
  const components = (0, react_1.useMemo)(() => {
36
36
  const createClickHandlerFn = (href) => () => {
37
- action.report({
37
+ reportAnalyticsEvent({
38
38
  action: "CHAT_LINK_CLICK",
39
39
  destinationUrl: href,
40
40
  chat: {
@@ -47,7 +47,7 @@ function Markdown({ content, responseId, className }) {
47
47
  return ((0, jsx_runtime_1.jsx)("a", { ...props, onClick: createClickHandlerFn(props.href), target: "_blank", rel: "noopener noreferrer", className: "cursor-pointer", children: children }));
48
48
  },
49
49
  };
50
- }, [action, responseId]);
50
+ }, [reportAnalyticsEvent, responseId]);
51
51
  return ((0, jsx_runtime_1.jsx)(react_markdown_1.default, { className: className, children: content, remarkPlugins: unifiedPlugins.remark, rehypePlugins: unifiedPlugins.rehype, components: components }));
52
52
  }
53
53
  exports.Markdown = Markdown;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Markdown.js","sourceRoot":"","sources":["../../../../src/components/Markdown.tsx"],"names":[],"mappings":";;;;;;;AAAA,oEAGwB;AACxB,4DAAmC;AACnC,4DAAmC;AACnC,sEAA6C;AAC7C,iCAAgC;AAChC,8EAA2E;AAE3E,0EAA0E;AAC1E,MAAM,cAAc,GAAsD;IACxE,MAAM,EAAE;QACN,oBAAS,EAAE,kCAAkC;KAC9C;IACD,MAAM,EAAE;QACN,oBAAS;QACT,yBAAc,EAAE,0BAA0B;KAC3C;CACF,CAAC;AAWF;;;;;;;;GAQG;AACH,SAAgB,QAAQ,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAiB;IACxE,MAAM,oBAAoB,GAAG,IAAA,iDAAuB,GAAE,CAAC;IAEvD,MAAM,UAAU,GAAuC,IAAA,eAAO,EAAC,GAAG,EAAE;QAClE,MAAM,oBAAoB,GAAG,CAAC,IAAa,EAAE,EAAE,CAAC,GAAG,EAAE;YACnD,oBAAoB,CAAC;gBACnB,MAAM,EAAE,iBAAiB;gBACzB,cAAc,EAAE,IAAI;gBACpB,IAAI,EAAE;oBACJ,UAAU;iBACX;aACF,CAAC,CAAC;QACL,CAAC,CAAC;QACF,OAAO;YACL,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;gBACrC,OAAO,CACL,iCACM,KAAK,EACT,OAAO,EAAE,oBAAoB,CAAC,KAAK,CAAC,IAAI,CAAC,EACzC,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,EACzB,SAAS,EAAC,gBAAgB,YAEzB,QAAQ,GACP,CACL,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC,EAAE,CAAC,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;;;OAIG;IACH,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;IAChD,yDAAyD;IACzD,gBAAgB,CAAC,EAAE,uBAAuB,CAAC;CAC5C;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,mBAA0B,EAC1B,aAAoB,EACpB,gBAAgB,EAChB,eAAwC,GACzC,EAAE,kBAAkB,2CAoDpB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageBubble.js","sourceRoot":"","sources":["../../../../src/components/MessageBubble.tsx"],"names":[],"mappings":";;;;AAAA,mEAAmE;AACnE,oCAAiD;AACjD,mDAAyC;AACzC,yCAAsC;AACtC,8EAA2E;AAC3E,uDAA+E;AAwB/E,MAAM,iBAAiB,GACrB,IAAA,iDAAuB,EAA0B,eAAe,EAAE;IAChE,YAAY,EAAE,mCAAmC;IACjD,YAAY,EACV,iEAAiE;IACnE,iBAAiB,EAAE,EAAE;IACrB,kBAAkB,EAAE,sBAAsB;IAC1C,MAAM,EAAE,uDAAuD;IAC/D,WAAW,EAAE,8CAA8C;IAC3D,YAAY,EACV,yEAAyE;IAC3E,IAAI,EAAE,sDAAsD;IAC5D,SAAS,EAAE,gBAAgB;IAC3B,UAAU,EAAE,YAAY;IACxB,SAAS,EACP,8IAA8I;IAChJ,cAAc,EAAE,EAAE;IAClB,eAAe,EAAE,SAAS;IAC1B,yBAAyB,EAAE,EAAE;CAC9B,CAAC,CAAC;AA8BL;;;;;;GAMG;AACH,SAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,mBAAmB,GAAG,IAAI,EAC1B,aAAa,GAAG,IAAI,EACpB,gBAAgB,EAChB,eAAe,GAAG,sBAAsB,GACrB;IACnB,MAAM,UAAU,GAAG,IAAA,6BAAqB,EAAC,iBAAiB,EAAE,gBAAgB,CAAC,CAAC;IAC9E,MAAM,gBAAgB,GAAG,IAAA,wBAAO,EAC9B,UAAU,CAAC,MAAM,EACjB,OAA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AAC,CAAC,eAAe,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,GACzD,CACP,IACG,GACF,CACP,CAAC;AACJ,CAAC;AA1DD,sCA0DC;AAED;;;;;GAKG;AACH,SAAS,sBAAsB,CAAC,SAAiB;IAC/C,OAAO,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,cAAc,CAAC,SAAS,EAAE;QACnD,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,SAAS;QACjB,MAAM,EAAE,IAAI;KACb,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAEvE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE1E,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EACV,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AAEzB,YAAY,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAEvE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAEvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":";;;AAAA,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAGlB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AAGnB,iDAAgD;AAAvC,8GAAA,aAAa,OAAA;AAQtB,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAGlB,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAGlB,yDAAwD;AAA/C,sHAAA,iBAAiB,OAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":";;;AAAA,iEAAgE;AAAvD,8HAAA,qBAAqB,OAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useComposedCssClasses.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useComposedCssClasses.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,qBAAqB,CACnC,cAAc,SAAS,OAAO,CAAC,MAAM,CAAC,MAAM,cAAc,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,EAE7E,cAAc,EAAE,QAAQ,CAAC,cAAc,CAAC,EACxC,aAAa,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,GACtC,cAAc,CAyBhB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useComposedCssClasses.js","sourceRoot":"","sources":["../../../../src/hooks/useComposedCssClasses.ts"],"names":[],"mappings":";;;AAAA,iCAAgC;AAChC,mDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,SAAgB,qBAAqB,CAGnC,cAAwC,EACxC,aAAuC;IAEvC,OAAO,IAAA,eAAO,EAAC,GAAG,EAAE;QAClB,MAAM,eAAe,GAAG,CACtB,cAAwC,EACxC,aAAuC,EACvC,EAAE;YACF,MAAM,gBAAgB,GAAG,EAAE,GAAG,cAAc,EAAE,CAAC;YAC/C,IAAI,CAAC,aAAa,EAAE;gBAClB,OAAO,gBAAgB,CAAC;aACzB;YACD,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;gBACzC,MAAM,OAAO,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;gBACpC,MAAM,MAAM,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC;gBAClC,IAAI,CAAC,OAAO,IAAI,CAAC,MAAM,EAAE;oBACvB,gBAAgB,CAAC,GAAG,CAAC,GAAG,MAAM,IAAI,OAAO,CAAC;iBAC3C;qBAAM,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;oBACpE,gBAAgB,CAAC,GAAG,CAAC,GAAG,eAAe,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;iBAC1D;qBAAM,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;oBACpE,gBAAgB,CAAC,GAAG,CAAC,GAAG,IAAA,wBAAO,EAAC,OAAO,EAAE,MAAM,CAAC,CAAC;iBAClD;YACH,CAAC,CAAC,CAAC;YACH,OAAO,gBAAgB,CAAC;QAC1B,CAAC,CAAC;QACF,OAAO,eAAe,CAAC,cAAc,EAAE,aAAa,CAAC,CAAC;IACxD,CAAC,EAAE,CAAC,cAAc,EAAE,aAAa,CAAC,CAAC,CAAC;AACtC,CAAC;AA9BD,sDA8BC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDefaultHandleApiError.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDefaultHandleApiError.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,wBAAgB,wBAAwB,QAIhC,OAAO,UAUd"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDefaultHandleApiError.js","sourceRoot":"","sources":["../../../../src/hooks/useDefaultHandleApiError.ts"],"names":[],"mappings":";;;AAAA,mEAA0E;AAC1E,iCAAoC;AAEpC;;;;;GAKG;AACH,SAAgB,wBAAwB;IACtC,MAAM,IAAI,GAAG,IAAA,oCAAc,GAAE,CAAC;IAE9B,OAAO,IAAA,mBAAW,EAChB,CAAC,CAAU,EAAE,EAAE;QACb,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACjB,IAAI,CAAC,UAAU,CAAC;YACd,IAAI,EAAE,qEAAqE;YAC3E,MAAM,EAAE,mCAAa,CAAC,GAAG;YACzB,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACpC,CAAC,CAAC;IACL,CAAC,EACD,CAAC,IAAI,CAAC,CACP,CAAC;AACJ,CAAC;AAdD,4DAcC"}
@@ -0,0 +1,10 @@
1
+ import { ChatHeadless } from "@yext/chat-headless-react";
2
+ /**
3
+ * Returns a function to send requests to Yext Analytics API.
4
+ * The payload will automatically includes chat-ui-react's
5
+ * package version for "clientSdk" field.
6
+ *
7
+ * @internal
8
+ */
9
+ export declare function useReportAnalyticsEvent(): ChatHeadless["report"];
10
+ //# sourceMappingURL=useReportAnalyticsEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useReportAnalyticsEvent.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useReportAnalyticsEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAkB,MAAM,2BAA2B,CAAC;AAKzE;;;;;;GAMG;AACH,wBAAgB,uBAAuB,IAAI,YAAY,CAAC,QAAQ,CAAC,CAMhE"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.useReportAnalyticsEvent = void 0;
7
+ const chat_headless_react_1 = require("@yext/chat-headless-react");
8
+ const package_json_1 = __importDefault(require("../../package.json"));
9
+ const react_1 = require("react");
10
+ const { version } = package_json_1.default;
11
+ /**
12
+ * Returns a function to send requests to Yext Analytics API.
13
+ * The payload will automatically includes chat-ui-react's
14
+ * package version for "clientSdk" field.
15
+ *
16
+ * @internal
17
+ */
18
+ function useReportAnalyticsEvent() {
19
+ const chat = (0, chat_headless_react_1.useChatActions)();
20
+ chat.addClientSdk({
21
+ CHAT_UI_REACT: version,
22
+ });
23
+ return (0, react_1.useCallback)((payload) => chat.report(payload), [chat]);
24
+ }
25
+ exports.useReportAnalyticsEvent = useReportAnalyticsEvent;
26
+ //# sourceMappingURL=useReportAnalyticsEvent.js.map