@elliemae/ds-chat 2.3.0-alpha.8 → 2.3.0-next.10

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 (456) hide show
  1. package/cjs/ChatDataTestids.js +28 -0
  2. package/cjs/exported-related/bubble/ChatBubble.js +72 -0
  3. package/cjs/exported-related/bubble/ChatBubbleArrow.js +80 -0
  4. package/cjs/exported-related/bubble/index.js +12 -0
  5. package/cjs/exported-related/bubble/props.js +43 -0
  6. package/cjs/exported-related/bubble/styled.js +53 -0
  7. package/cjs/exported-related/chat-card/ChatCard.js +45 -0
  8. package/cjs/exported-related/chat-card/index.js +10 -0
  9. package/cjs/exported-related/chat-card/props.js +22 -0
  10. package/cjs/exported-related/chat-card/styled.js +36 -0
  11. package/cjs/exported-related/chat-container-header/ChatContainerHeader.js +45 -0
  12. package/cjs/exported-related/chat-container-header/helpers.js +31 -0
  13. package/cjs/exported-related/chat-container-header/props.js +18 -0
  14. package/cjs/exported-related/chat-container-header/styled.js +24 -0
  15. package/cjs/exported-related/chat-empty-state/ChatEmptyState.js +52 -0
  16. package/cjs/exported-related/chat-empty-state/props.js +18 -0
  17. package/cjs/exported-related/chat-empty-state/styled.js +22 -0
  18. package/cjs/exported-related/chat-sidebar/SideBarChat.js +98 -0
  19. package/cjs/exported-related/chat-sidebar/index.js +10 -0
  20. package/cjs/exported-related/chat-sidebar/props.js +39 -0
  21. package/cjs/exported-related/chat-sidebar/sidebar-button/SidebarButton.js +56 -0
  22. package/cjs/exported-related/chat-sidebar/sidebar-button/index.js +2 -0
  23. package/cjs/exported-related/chat-sidebar/sidebar-button/props.js +25 -0
  24. package/cjs/exported-related/chat-sidebar/sidebar-button/styled.js +25 -0
  25. package/cjs/exported-related/chat-sidebar/styled.js +21 -0
  26. package/cjs/exported-related/floating-button/FloatingButton.js +42 -0
  27. package/cjs/exported-related/floating-button/index.js +10 -0
  28. package/cjs/exported-related/floating-button/props.js +20 -0
  29. package/cjs/exported-related/floating-button/styled.js +18 -0
  30. package/cjs/exported-related/floating-container/styled.js +17 -0
  31. package/cjs/exported-related/grid-influencer/InfluencerContainer.js +23 -0
  32. package/cjs/exported-related/grid-influencer/styled.js +21 -0
  33. package/cjs/exported-related/index.js +37 -0
  34. package/cjs/exported-related/message-delimiter/MessageDelimiter.js +53 -0
  35. package/cjs/exported-related/message-delimiter/index.js +10 -0
  36. package/cjs/exported-related/message-delimiter/props.js +33 -0
  37. package/cjs/exported-related/message-delimiter/styled.js +24 -0
  38. package/cjs/exported-related/system-message/SystemMessage.js +42 -0
  39. package/cjs/exported-related/system-message/index.js +10 -0
  40. package/cjs/exported-related/system-message/props.js +19 -0
  41. package/cjs/exported-related/system-message/style.js +32 -0
  42. package/cjs/exported-related/tile-button/TileButton.js +105 -0
  43. package/cjs/exported-related/tile-button/index.js +10 -0
  44. package/cjs/exported-related/tile-button/props.js +55 -0
  45. package/cjs/exported-related/tile-button/styled.js +95 -0
  46. package/cjs/index.js +55 -0
  47. package/cjs/parts/chat-composer/ChatContainerComposer.js +162 -0
  48. package/cjs/parts/chat-composer/index.js +10 -0
  49. package/cjs/parts/chat-composer/styled.js +34 -0
  50. package/cjs/parts/chat-container/ChatContainer.js +173 -0
  51. package/cjs/parts/chat-container/styled.js +29 -0
  52. package/cjs/parts/chat-container-messages-list/ChatContainerMessagesList.js +379 -0
  53. package/cjs/parts/chat-container-messages-list/index.js +10 -0
  54. package/cjs/parts/chat-container-messages-list/styled.js +38 -0
  55. package/cjs/parts/index.js +16 -0
  56. package/cjs/react-desc-prop-types.js +116 -0
  57. package/cjs/styled.js +17 -0
  58. package/esm/ChatDataTestids.js +24 -0
  59. package/esm/exported-related/bubble/ChatBubble.js +62 -0
  60. package/esm/exported-related/bubble/ChatBubbleArrow.js +72 -0
  61. package/esm/exported-related/bubble/index.js +2 -0
  62. package/esm/exported-related/bubble/props.js +36 -0
  63. package/esm/exported-related/bubble/styled.js +37 -0
  64. package/esm/exported-related/chat-card/ChatCard.js +36 -0
  65. package/esm/exported-related/chat-card/index.js +1 -0
  66. package/esm/exported-related/chat-card/props.js +17 -0
  67. package/esm/exported-related/chat-card/styled.js +23 -0
  68. package/esm/exported-related/chat-container-header/ChatContainerHeader.js +36 -0
  69. package/esm/exported-related/chat-container-header/helpers.js +23 -0
  70. package/esm/exported-related/chat-container-header/props.js +13 -0
  71. package/esm/exported-related/chat-container-header/styled.js +14 -0
  72. package/esm/exported-related/chat-empty-state/ChatEmptyState.js +43 -0
  73. package/esm/exported-related/chat-empty-state/props.js +13 -0
  74. package/esm/exported-related/chat-empty-state/styled.js +12 -0
  75. package/esm/exported-related/chat-sidebar/SideBarChat.js +87 -0
  76. package/esm/exported-related/chat-sidebar/index.js +1 -0
  77. package/esm/exported-related/chat-sidebar/props.js +34 -0
  78. package/esm/exported-related/chat-sidebar/sidebar-button/SidebarButton.js +45 -0
  79. package/esm/exported-related/chat-sidebar/sidebar-button/index.js +1 -0
  80. package/esm/exported-related/chat-sidebar/sidebar-button/props.js +20 -0
  81. package/esm/exported-related/chat-sidebar/sidebar-button/styled.js +15 -0
  82. package/esm/exported-related/chat-sidebar/styled.js +12 -0
  83. package/esm/exported-related/floating-button/FloatingButton.js +33 -0
  84. package/esm/exported-related/floating-button/index.js +1 -0
  85. package/esm/exported-related/floating-button/props.js +15 -0
  86. package/esm/exported-related/floating-button/styled.js +10 -0
  87. package/esm/exported-related/floating-container/styled.js +9 -0
  88. package/esm/exported-related/grid-influencer/InfluencerContainer.js +14 -0
  89. package/esm/exported-related/grid-influencer/styled.js +12 -0
  90. package/esm/exported-related/index.js +11 -0
  91. package/esm/exported-related/message-delimiter/MessageDelimiter.js +43 -0
  92. package/esm/exported-related/message-delimiter/index.js +1 -0
  93. package/esm/exported-related/message-delimiter/props.js +24 -0
  94. package/esm/exported-related/message-delimiter/styled.js +14 -0
  95. package/esm/exported-related/system-message/SystemMessage.js +33 -0
  96. package/esm/exported-related/system-message/index.js +1 -0
  97. package/esm/exported-related/system-message/props.js +14 -0
  98. package/esm/exported-related/system-message/style.js +20 -0
  99. package/esm/exported-related/tile-button/TileButton.js +95 -0
  100. package/esm/exported-related/tile-button/index.js +1 -0
  101. package/esm/exported-related/tile-button/props.js +50 -0
  102. package/esm/exported-related/tile-button/styled.js +78 -0
  103. package/esm/index.js +16 -0
  104. package/esm/parts/chat-composer/ChatContainerComposer.js +151 -0
  105. package/esm/parts/chat-composer/index.js +1 -0
  106. package/esm/parts/chat-composer/styled.js +22 -0
  107. package/esm/parts/chat-container/ChatContainer.js +160 -0
  108. package/esm/parts/chat-container/styled.js +18 -0
  109. package/esm/parts/chat-container-messages-list/ChatContainerMessagesList.js +367 -0
  110. package/esm/parts/chat-container-messages-list/index.js +1 -0
  111. package/esm/parts/chat-container-messages-list/styled.js +25 -0
  112. package/esm/parts/index.js +3 -0
  113. package/esm/react-desc-prop-types.js +103 -0
  114. package/esm/styled.js +8 -0
  115. package/package.json +195 -241
  116. package/types/ChatDataTestids.d.ts +22 -0
  117. package/types/exported-related/bubble/ChatBubble.d.ts +5 -0
  118. package/types/exported-related/bubble/ChatBubbleArrow.d.ts +8 -0
  119. package/types/exported-related/bubble/index.d.ts +2 -0
  120. package/types/exported-related/bubble/props.d.ts +33 -0
  121. package/types/exported-related/bubble/styled.d.ts +14 -0
  122. package/types/exported-related/bubble/tests/ChatBubble.test.d.ts +1 -0
  123. package/types/exported-related/chat-card/ChatCard.d.ts +5 -0
  124. package/types/exported-related/chat-card/index.d.ts +1 -0
  125. package/types/exported-related/chat-card/props.d.ts +14 -0
  126. package/types/exported-related/chat-card/styled.d.ts +7 -0
  127. package/types/exported-related/chat-container-header/ChatContainerHeader.d.ts +5 -0
  128. package/types/exported-related/chat-container-header/helpers.d.ts +6 -0
  129. package/types/exported-related/chat-container-header/props.d.ts +10 -0
  130. package/types/exported-related/chat-container-header/styled.d.ts +4 -0
  131. package/types/exported-related/chat-empty-state/ChatEmptyState.d.ts +5 -0
  132. package/types/exported-related/chat-empty-state/props.d.ts +10 -0
  133. package/types/exported-related/chat-empty-state/styled.d.ts +4 -0
  134. package/types/exported-related/chat-sidebar/SideBarChat.d.ts +5 -0
  135. package/types/exported-related/chat-sidebar/index.d.ts +1 -0
  136. package/types/exported-related/chat-sidebar/props.d.ts +52 -0
  137. package/types/exported-related/chat-sidebar/sidebar-button/SidebarButton.d.ts +13 -0
  138. package/types/exported-related/chat-sidebar/sidebar-button/index.d.ts +0 -0
  139. package/types/exported-related/chat-sidebar/sidebar-button/props.d.ts +18 -0
  140. package/types/exported-related/chat-sidebar/sidebar-button/styled.d.ts +4 -0
  141. package/types/exported-related/chat-sidebar/styled.d.ts +3 -0
  142. package/types/exported-related/floating-button/FloatingButton.d.ts +5 -0
  143. package/types/exported-related/floating-button/index.d.ts +1 -0
  144. package/types/exported-related/floating-button/props.d.ts +19 -0
  145. package/types/exported-related/floating-button/styled.d.ts +1 -0
  146. package/types/exported-related/floating-container/styled.d.ts +1 -0
  147. package/types/exported-related/grid-influencer/InfluencerContainer.d.ts +2 -0
  148. package/types/exported-related/grid-influencer/styled.d.ts +3 -0
  149. package/types/exported-related/index.d.ts +10 -0
  150. package/types/exported-related/message-delimiter/MessageDelimiter.d.ts +5 -0
  151. package/types/exported-related/message-delimiter/index.d.ts +1 -0
  152. package/types/exported-related/message-delimiter/props.d.ts +7 -0
  153. package/types/exported-related/message-delimiter/styled.d.ts +6 -0
  154. package/types/exported-related/system-message/SystemMessage.d.ts +5 -0
  155. package/types/exported-related/system-message/index.d.ts +1 -0
  156. package/types/exported-related/system-message/props.d.ts +17 -0
  157. package/types/exported-related/system-message/style.d.ts +7 -0
  158. package/types/exported-related/tile-button/TileButton.d.ts +5 -0
  159. package/types/exported-related/tile-button/index.d.ts +1 -0
  160. package/types/exported-related/tile-button/props.d.ts +46 -0
  161. package/types/exported-related/tile-button/styled.d.ts +11 -0
  162. package/types/index.d.ts +4 -0
  163. package/types/parts/chat-composer/ChatContainerComposer.d.ts +5 -0
  164. package/types/parts/chat-composer/index.d.ts +1 -0
  165. package/types/parts/chat-composer/styled.d.ts +6 -0
  166. package/types/parts/chat-composer/tests/ChatContainerComposer.test.d.ts +1 -0
  167. package/types/parts/chat-container/ChatContainer.d.ts +5 -0
  168. package/types/parts/chat-container/styled.d.ts +8 -0
  169. package/types/parts/chat-container/tests/ChatContainer.test.d.ts +1 -0
  170. package/types/parts/chat-container-messages-list/ChatContainerMessagesList.d.ts +5 -0
  171. package/types/parts/chat-container-messages-list/index.d.ts +1 -0
  172. package/types/parts/chat-container-messages-list/styled.d.ts +10 -0
  173. package/types/parts/index.d.ts +3 -0
  174. package/types/react-desc-prop-types.d.ts +94 -0
  175. package/types/styled.d.ts +6 -0
  176. package/types/tests/utils.d.ts +1 -0
  177. package/dist/cjs/ChatDataTestids.js +0 -56
  178. package/dist/cjs/ChatDataTestids.js.map +0 -7
  179. package/dist/cjs/index.d.js +0 -27
  180. package/dist/cjs/index.d.js.map +0 -7
  181. package/dist/cjs/index.js +0 -69
  182. package/dist/cjs/index.js.map +0 -7
  183. package/dist/cjs/parts/bubble/ChatBubble.js +0 -84
  184. package/dist/cjs/parts/bubble/ChatBubble.js.map +0 -7
  185. package/dist/cjs/parts/bubble/ChatBubbleArrow.js +0 -97
  186. package/dist/cjs/parts/bubble/ChatBubbleArrow.js.map +0 -7
  187. package/dist/cjs/parts/bubble/config/useValidateProps.js +0 -54
  188. package/dist/cjs/parts/bubble/config/useValidateProps.js.map +0 -7
  189. package/dist/cjs/parts/bubble/index.js +0 -38
  190. package/dist/cjs/parts/bubble/index.js.map +0 -7
  191. package/dist/cjs/parts/bubble/props.js +0 -69
  192. package/dist/cjs/parts/bubble/props.js.map +0 -7
  193. package/dist/cjs/parts/bubble/styled.js +0 -146
  194. package/dist/cjs/parts/bubble/styled.js.map +0 -7
  195. package/dist/cjs/parts/chat-card/ChatCard.js +0 -62
  196. package/dist/cjs/parts/chat-card/ChatCard.js.map +0 -7
  197. package/dist/cjs/parts/chat-card/config/useValidateProps.js +0 -38
  198. package/dist/cjs/parts/chat-card/config/useValidateProps.js.map +0 -7
  199. package/dist/cjs/parts/chat-card/index.js +0 -36
  200. package/dist/cjs/parts/chat-card/index.js.map +0 -7
  201. package/dist/cjs/parts/chat-card/props.js +0 -41
  202. package/dist/cjs/parts/chat-card/props.js.map +0 -7
  203. package/dist/cjs/parts/chat-card/styled.js +0 -71
  204. package/dist/cjs/parts/chat-card/styled.js.map +0 -7
  205. package/dist/cjs/parts/chat-composer/ChatContainerComposer.js +0 -157
  206. package/dist/cjs/parts/chat-composer/ChatContainerComposer.js.map +0 -7
  207. package/dist/cjs/parts/chat-composer/config/useValidateProps.js +0 -38
  208. package/dist/cjs/parts/chat-composer/config/useValidateProps.js.map +0 -7
  209. package/dist/cjs/parts/chat-composer/index.js +0 -36
  210. package/dist/cjs/parts/chat-composer/index.js.map +0 -7
  211. package/dist/cjs/parts/chat-composer/props.js +0 -79
  212. package/dist/cjs/parts/chat-composer/props.js.map +0 -7
  213. package/dist/cjs/parts/chat-composer/styled.js +0 -102
  214. package/dist/cjs/parts/chat-composer/styled.js.map +0 -7
  215. package/dist/cjs/parts/chat-container/ChatContainer.js +0 -157
  216. package/dist/cjs/parts/chat-container/ChatContainer.js.map +0 -7
  217. package/dist/cjs/parts/chat-container/config/useValidateProps.js +0 -38
  218. package/dist/cjs/parts/chat-container/config/useValidateProps.js.map +0 -7
  219. package/dist/cjs/parts/chat-container/index.js +0 -36
  220. package/dist/cjs/parts/chat-container/index.js.map +0 -7
  221. package/dist/cjs/parts/chat-container/props.js +0 -92
  222. package/dist/cjs/parts/chat-container/props.js.map +0 -7
  223. package/dist/cjs/parts/chat-container/styled.js +0 -110
  224. package/dist/cjs/parts/chat-container/styled.js.map +0 -7
  225. package/dist/cjs/parts/chat-container-header/ChatContainerHeader.js +0 -57
  226. package/dist/cjs/parts/chat-container-header/ChatContainerHeader.js.map +0 -7
  227. package/dist/cjs/parts/chat-container-header/helpers.js +0 -44
  228. package/dist/cjs/parts/chat-container-header/helpers.js.map +0 -7
  229. package/dist/cjs/parts/chat-container-header/styled.js +0 -59
  230. package/dist/cjs/parts/chat-container-header/styled.js.map +0 -7
  231. package/dist/cjs/parts/chat-container-messages-list/ChatContainerMessagesList.js +0 -307
  232. package/dist/cjs/parts/chat-container-messages-list/ChatContainerMessagesList.js.map +0 -7
  233. package/dist/cjs/parts/chat-container-messages-list/config/useValidateProps.js +0 -38
  234. package/dist/cjs/parts/chat-container-messages-list/config/useValidateProps.js.map +0 -7
  235. package/dist/cjs/parts/chat-container-messages-list/index.js +0 -36
  236. package/dist/cjs/parts/chat-container-messages-list/index.js.map +0 -7
  237. package/dist/cjs/parts/chat-container-messages-list/props.js +0 -68
  238. package/dist/cjs/parts/chat-container-messages-list/props.js.map +0 -7
  239. package/dist/cjs/parts/chat-container-messages-list/styled.js +0 -100
  240. package/dist/cjs/parts/chat-container-messages-list/styled.js.map +0 -7
  241. package/dist/cjs/parts/chat-empty-state/ChatEmptyState.js +0 -70
  242. package/dist/cjs/parts/chat-empty-state/ChatEmptyState.js.map +0 -7
  243. package/dist/cjs/parts/chat-empty-state/config/useValidateProps.js +0 -38
  244. package/dist/cjs/parts/chat-empty-state/config/useValidateProps.js.map +0 -7
  245. package/dist/cjs/parts/chat-empty-state/props.js +0 -44
  246. package/dist/cjs/parts/chat-empty-state/props.js.map +0 -7
  247. package/dist/cjs/parts/chat-empty-state/styled.js +0 -48
  248. package/dist/cjs/parts/chat-empty-state/styled.js.map +0 -7
  249. package/dist/cjs/parts/chat-sidebar/SideBarChat.js +0 -100
  250. package/dist/cjs/parts/chat-sidebar/SideBarChat.js.map +0 -7
  251. package/dist/cjs/parts/chat-sidebar/config/useValidateProps.js +0 -38
  252. package/dist/cjs/parts/chat-sidebar/config/useValidateProps.js.map +0 -7
  253. package/dist/cjs/parts/chat-sidebar/index.js +0 -36
  254. package/dist/cjs/parts/chat-sidebar/index.js.map +0 -7
  255. package/dist/cjs/parts/chat-sidebar/props.js +0 -84
  256. package/dist/cjs/parts/chat-sidebar/props.js.map +0 -7
  257. package/dist/cjs/parts/chat-sidebar/styled.js +0 -57
  258. package/dist/cjs/parts/chat-sidebar/styled.js.map +0 -7
  259. package/dist/cjs/parts/floating-button/FloatingButton.js +0 -48
  260. package/dist/cjs/parts/floating-button/FloatingButton.js.map +0 -7
  261. package/dist/cjs/parts/floating-button/index.js +0 -28
  262. package/dist/cjs/parts/floating-button/index.js.map +0 -7
  263. package/dist/cjs/parts/floating-button/props.js +0 -47
  264. package/dist/cjs/parts/floating-button/props.js.map +0 -7
  265. package/dist/cjs/parts/floating-button/styled.js +0 -64
  266. package/dist/cjs/parts/floating-button/styled.js.map +0 -7
  267. package/dist/cjs/parts/floating-container/styled.js +0 -47
  268. package/dist/cjs/parts/floating-container/styled.js.map +0 -7
  269. package/dist/cjs/parts/grid-influencer/InfluencerContainer.js +0 -43
  270. package/dist/cjs/parts/grid-influencer/InfluencerContainer.js.map +0 -7
  271. package/dist/cjs/parts/grid-influencer/styled.js +0 -56
  272. package/dist/cjs/parts/grid-influencer/styled.js.map +0 -7
  273. package/dist/cjs/parts/message-delimiter/MessageDelimiter.js +0 -55
  274. package/dist/cjs/parts/message-delimiter/MessageDelimiter.js.map +0 -7
  275. package/dist/cjs/parts/message-delimiter/config/useValidateProps.js +0 -38
  276. package/dist/cjs/parts/message-delimiter/config/useValidateProps.js.map +0 -7
  277. package/dist/cjs/parts/message-delimiter/index.js +0 -36
  278. package/dist/cjs/parts/message-delimiter/index.js.map +0 -7
  279. package/dist/cjs/parts/message-delimiter/props.js +0 -48
  280. package/dist/cjs/parts/message-delimiter/props.js.map +0 -7
  281. package/dist/cjs/parts/message-delimiter/styled.js +0 -53
  282. package/dist/cjs/parts/message-delimiter/styled.js.map +0 -7
  283. package/dist/cjs/parts/sidebar-button/SidebarButton.js +0 -55
  284. package/dist/cjs/parts/sidebar-button/SidebarButton.js.map +0 -7
  285. package/dist/cjs/parts/sidebar-button/index.js +0 -20
  286. package/dist/cjs/parts/sidebar-button/index.js.map +0 -7
  287. package/dist/cjs/parts/sidebar-button/props.js +0 -53
  288. package/dist/cjs/parts/sidebar-button/props.js.map +0 -7
  289. package/dist/cjs/parts/sidebar-button/styled.js +0 -69
  290. package/dist/cjs/parts/sidebar-button/styled.js.map +0 -7
  291. package/dist/cjs/parts/system-message/SystemMessage.js +0 -59
  292. package/dist/cjs/parts/system-message/SystemMessage.js.map +0 -7
  293. package/dist/cjs/parts/system-message/config/useValidateProps.js +0 -38
  294. package/dist/cjs/parts/system-message/config/useValidateProps.js.map +0 -7
  295. package/dist/cjs/parts/system-message/index.js +0 -36
  296. package/dist/cjs/parts/system-message/index.js.map +0 -7
  297. package/dist/cjs/parts/system-message/props.js +0 -46
  298. package/dist/cjs/parts/system-message/props.js.map +0 -7
  299. package/dist/cjs/parts/system-message/style.js +0 -75
  300. package/dist/cjs/parts/system-message/style.js.map +0 -7
  301. package/dist/cjs/parts/tile-button/TileButton.js +0 -137
  302. package/dist/cjs/parts/tile-button/TileButton.js.map +0 -7
  303. package/dist/cjs/parts/tile-button/config/useValidateProps.js +0 -38
  304. package/dist/cjs/parts/tile-button/config/useValidateProps.js.map +0 -7
  305. package/dist/cjs/parts/tile-button/index.js +0 -36
  306. package/dist/cjs/parts/tile-button/index.js.map +0 -7
  307. package/dist/cjs/parts/tile-button/props.js +0 -93
  308. package/dist/cjs/parts/tile-button/props.js.map +0 -7
  309. package/dist/cjs/parts/tile-button/styled.js +0 -247
  310. package/dist/cjs/parts/tile-button/styled.js.map +0 -7
  311. package/dist/cjs/prop-types.js +0 -60
  312. package/dist/cjs/prop-types.js.map +0 -7
  313. package/dist/cjs/styled.js +0 -45
  314. package/dist/cjs/styled.js.map +0 -7
  315. package/dist/cjs/tests/utils.js +0 -66
  316. package/dist/cjs/tests/utils.js.map +0 -7
  317. package/dist/esm/ChatDataTestids.js +0 -27
  318. package/dist/esm/ChatDataTestids.js.map +0 -7
  319. package/dist/esm/index.d.js +0 -2
  320. package/dist/esm/index.d.js.map +0 -7
  321. package/dist/esm/index.js +0 -40
  322. package/dist/esm/index.js.map +0 -7
  323. package/dist/esm/parts/bubble/ChatBubble.js +0 -64
  324. package/dist/esm/parts/bubble/ChatBubble.js.map +0 -7
  325. package/dist/esm/parts/bubble/ChatBubbleArrow.js +0 -68
  326. package/dist/esm/parts/bubble/ChatBubbleArrow.js.map +0 -7
  327. package/dist/esm/parts/bubble/config/useValidateProps.js +0 -25
  328. package/dist/esm/parts/bubble/config/useValidateProps.js.map +0 -7
  329. package/dist/esm/parts/bubble/index.js +0 -9
  330. package/dist/esm/parts/bubble/index.js.map +0 -7
  331. package/dist/esm/parts/bubble/props.js +0 -40
  332. package/dist/esm/parts/bubble/props.js.map +0 -7
  333. package/dist/esm/parts/bubble/styled.js +0 -117
  334. package/dist/esm/parts/bubble/styled.js.map +0 -7
  335. package/dist/esm/parts/chat-card/ChatCard.js +0 -33
  336. package/dist/esm/parts/chat-card/ChatCard.js.map +0 -7
  337. package/dist/esm/parts/chat-card/config/useValidateProps.js +0 -9
  338. package/dist/esm/parts/chat-card/config/useValidateProps.js.map +0 -7
  339. package/dist/esm/parts/chat-card/index.js +0 -7
  340. package/dist/esm/parts/chat-card/index.js.map +0 -7
  341. package/dist/esm/parts/chat-card/props.js +0 -12
  342. package/dist/esm/parts/chat-card/props.js.map +0 -7
  343. package/dist/esm/parts/chat-card/styled.js +0 -42
  344. package/dist/esm/parts/chat-card/styled.js.map +0 -7
  345. package/dist/esm/parts/chat-composer/ChatContainerComposer.js +0 -134
  346. package/dist/esm/parts/chat-composer/ChatContainerComposer.js.map +0 -7
  347. package/dist/esm/parts/chat-composer/config/useValidateProps.js +0 -9
  348. package/dist/esm/parts/chat-composer/config/useValidateProps.js.map +0 -7
  349. package/dist/esm/parts/chat-composer/index.js +0 -7
  350. package/dist/esm/parts/chat-composer/index.js.map +0 -7
  351. package/dist/esm/parts/chat-composer/props.js +0 -50
  352. package/dist/esm/parts/chat-composer/props.js.map +0 -7
  353. package/dist/esm/parts/chat-composer/styled.js +0 -73
  354. package/dist/esm/parts/chat-composer/styled.js.map +0 -7
  355. package/dist/esm/parts/chat-container/ChatContainer.js +0 -128
  356. package/dist/esm/parts/chat-container/ChatContainer.js.map +0 -7
  357. package/dist/esm/parts/chat-container/config/useValidateProps.js +0 -9
  358. package/dist/esm/parts/chat-container/config/useValidateProps.js.map +0 -7
  359. package/dist/esm/parts/chat-container/index.js +0 -7
  360. package/dist/esm/parts/chat-container/index.js.map +0 -7
  361. package/dist/esm/parts/chat-container/props.js +0 -65
  362. package/dist/esm/parts/chat-container/props.js.map +0 -7
  363. package/dist/esm/parts/chat-container/styled.js +0 -81
  364. package/dist/esm/parts/chat-container/styled.js.map +0 -7
  365. package/dist/esm/parts/chat-container-header/ChatContainerHeader.js +0 -32
  366. package/dist/esm/parts/chat-container-header/ChatContainerHeader.js.map +0 -7
  367. package/dist/esm/parts/chat-container-header/helpers.js +0 -15
  368. package/dist/esm/parts/chat-container-header/helpers.js.map +0 -7
  369. package/dist/esm/parts/chat-container-header/styled.js +0 -30
  370. package/dist/esm/parts/chat-container-header/styled.js.map +0 -7
  371. package/dist/esm/parts/chat-container-messages-list/ChatContainerMessagesList.js +0 -285
  372. package/dist/esm/parts/chat-container-messages-list/ChatContainerMessagesList.js.map +0 -7
  373. package/dist/esm/parts/chat-container-messages-list/config/useValidateProps.js +0 -9
  374. package/dist/esm/parts/chat-container-messages-list/config/useValidateProps.js.map +0 -7
  375. package/dist/esm/parts/chat-container-messages-list/index.js +0 -10
  376. package/dist/esm/parts/chat-container-messages-list/index.js.map +0 -7
  377. package/dist/esm/parts/chat-container-messages-list/props.js +0 -39
  378. package/dist/esm/parts/chat-container-messages-list/props.js.map +0 -7
  379. package/dist/esm/parts/chat-container-messages-list/styled.js +0 -71
  380. package/dist/esm/parts/chat-container-messages-list/styled.js.map +0 -7
  381. package/dist/esm/parts/chat-empty-state/ChatEmptyState.js +0 -41
  382. package/dist/esm/parts/chat-empty-state/ChatEmptyState.js.map +0 -7
  383. package/dist/esm/parts/chat-empty-state/config/useValidateProps.js +0 -9
  384. package/dist/esm/parts/chat-empty-state/config/useValidateProps.js.map +0 -7
  385. package/dist/esm/parts/chat-empty-state/props.js +0 -15
  386. package/dist/esm/parts/chat-empty-state/props.js.map +0 -7
  387. package/dist/esm/parts/chat-empty-state/styled.js +0 -19
  388. package/dist/esm/parts/chat-empty-state/styled.js.map +0 -7
  389. package/dist/esm/parts/chat-sidebar/SideBarChat.js +0 -71
  390. package/dist/esm/parts/chat-sidebar/SideBarChat.js.map +0 -7
  391. package/dist/esm/parts/chat-sidebar/config/useValidateProps.js +0 -9
  392. package/dist/esm/parts/chat-sidebar/config/useValidateProps.js.map +0 -7
  393. package/dist/esm/parts/chat-sidebar/index.js +0 -7
  394. package/dist/esm/parts/chat-sidebar/index.js.map +0 -7
  395. package/dist/esm/parts/chat-sidebar/props.js +0 -55
  396. package/dist/esm/parts/chat-sidebar/props.js.map +0 -7
  397. package/dist/esm/parts/chat-sidebar/styled.js +0 -28
  398. package/dist/esm/parts/chat-sidebar/styled.js.map +0 -7
  399. package/dist/esm/parts/floating-button/FloatingButton.js +0 -19
  400. package/dist/esm/parts/floating-button/FloatingButton.js.map +0 -7
  401. package/dist/esm/parts/floating-button/index.js +0 -3
  402. package/dist/esm/parts/floating-button/index.js.map +0 -7
  403. package/dist/esm/parts/floating-button/props.js +0 -18
  404. package/dist/esm/parts/floating-button/props.js.map +0 -7
  405. package/dist/esm/parts/floating-button/styled.js +0 -35
  406. package/dist/esm/parts/floating-button/styled.js.map +0 -7
  407. package/dist/esm/parts/floating-container/styled.js +0 -18
  408. package/dist/esm/parts/floating-container/styled.js.map +0 -7
  409. package/dist/esm/parts/grid-influencer/InfluencerContainer.js +0 -14
  410. package/dist/esm/parts/grid-influencer/InfluencerContainer.js.map +0 -7
  411. package/dist/esm/parts/grid-influencer/styled.js +0 -27
  412. package/dist/esm/parts/grid-influencer/styled.js.map +0 -7
  413. package/dist/esm/parts/message-delimiter/MessageDelimiter.js +0 -26
  414. package/dist/esm/parts/message-delimiter/MessageDelimiter.js.map +0 -7
  415. package/dist/esm/parts/message-delimiter/config/useValidateProps.js +0 -9
  416. package/dist/esm/parts/message-delimiter/config/useValidateProps.js.map +0 -7
  417. package/dist/esm/parts/message-delimiter/index.js +0 -10
  418. package/dist/esm/parts/message-delimiter/index.js.map +0 -7
  419. package/dist/esm/parts/message-delimiter/props.js +0 -19
  420. package/dist/esm/parts/message-delimiter/props.js.map +0 -7
  421. package/dist/esm/parts/message-delimiter/styled.js +0 -24
  422. package/dist/esm/parts/message-delimiter/styled.js.map +0 -7
  423. package/dist/esm/parts/sidebar-button/SidebarButton.js +0 -26
  424. package/dist/esm/parts/sidebar-button/SidebarButton.js.map +0 -7
  425. package/dist/esm/parts/sidebar-button/index.js +0 -2
  426. package/dist/esm/parts/sidebar-button/index.js.map +0 -7
  427. package/dist/esm/parts/sidebar-button/props.js +0 -24
  428. package/dist/esm/parts/sidebar-button/props.js.map +0 -7
  429. package/dist/esm/parts/sidebar-button/styled.js +0 -40
  430. package/dist/esm/parts/sidebar-button/styled.js.map +0 -7
  431. package/dist/esm/parts/system-message/SystemMessage.js +0 -30
  432. package/dist/esm/parts/system-message/SystemMessage.js.map +0 -7
  433. package/dist/esm/parts/system-message/config/useValidateProps.js +0 -9
  434. package/dist/esm/parts/system-message/config/useValidateProps.js.map +0 -7
  435. package/dist/esm/parts/system-message/index.js +0 -7
  436. package/dist/esm/parts/system-message/index.js.map +0 -7
  437. package/dist/esm/parts/system-message/props.js +0 -17
  438. package/dist/esm/parts/system-message/props.js.map +0 -7
  439. package/dist/esm/parts/system-message/style.js +0 -46
  440. package/dist/esm/parts/system-message/style.js.map +0 -7
  441. package/dist/esm/parts/tile-button/TileButton.js +0 -118
  442. package/dist/esm/parts/tile-button/TileButton.js.map +0 -7
  443. package/dist/esm/parts/tile-button/config/useValidateProps.js +0 -9
  444. package/dist/esm/parts/tile-button/config/useValidateProps.js.map +0 -7
  445. package/dist/esm/parts/tile-button/index.js +0 -7
  446. package/dist/esm/parts/tile-button/index.js.map +0 -7
  447. package/dist/esm/parts/tile-button/props.js +0 -64
  448. package/dist/esm/parts/tile-button/props.js.map +0 -7
  449. package/dist/esm/parts/tile-button/styled.js +0 -218
  450. package/dist/esm/parts/tile-button/styled.js.map +0 -7
  451. package/dist/esm/prop-types.js +0 -31
  452. package/dist/esm/prop-types.js.map +0 -7
  453. package/dist/esm/styled.js +0 -16
  454. package/dist/esm/styled.js.map +0 -7
  455. package/dist/esm/tests/utils.js +0 -37
  456. package/dist/esm/tests/utils.js.map +0 -7
@@ -1,60 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __reExport = (target, module2, copyDefault, desc) => {
13
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
- for (let key of __getOwnPropNames(module2))
15
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
17
- }
18
- return target;
19
- };
20
- var __toESM = (module2, isNodeMode) => {
21
- return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
- };
23
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
- return (module2, temp) => {
25
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
- };
27
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
28
- var prop_types_exports = {};
29
- __export(prop_types_exports, {
30
- chatProps: () => chatProps,
31
- defaultProps: () => defaultProps
32
- });
33
- var React = __toESM(require("react"));
34
- var import_react_desc = require("react-desc");
35
- var import_lodash = require("lodash");
36
- const defaultProps = {
37
- expanded: false,
38
- expandedWidth: 348,
39
- openedItem: void 0,
40
- onFooterExpand: import_lodash.noop,
41
- onFooterClose: import_lodash.noop,
42
- floating: false,
43
- onHeaderExpand: import_lodash.noop,
44
- onHeaderClose: import_lodash.noop,
45
- title: "Header Title"
46
- };
47
- const chatProps = {
48
- containerProps: import_react_desc.PropTypes.shape({}).defaultValue({}),
49
- expanded: import_react_desc.PropTypes.bool.description("Whether to show the chat expanded or collapsed").defaultValue(defaultProps.expanded),
50
- expandedWidth: import_react_desc.PropTypes.number.description("Total width attached to the expanded Chat").defaultValue(defaultProps.expandedWidth),
51
- openedItem: import_react_desc.PropTypes.string.description("The id of the chat item you want to be opened").defaultValue(defaultProps.openedItem),
52
- messages: import_react_desc.PropTypes.arrayOf(import_react_desc.PropTypes.object).description("The array of out-of-the-box items you want to render inside the container list of the chat").defaultValue(defaultProps.openedItem),
53
- onFooterExpand: import_react_desc.PropTypes.func.description("The function to call when the chat is opened via the footer").defaultValue(defaultProps.onFooterExpand),
54
- onFooterClose: import_react_desc.PropTypes.func.description("The function to call when the chat is closed via the footer").defaultValue(defaultProps.onFooterClose),
55
- onHeaderExpand: import_react_desc.PropTypes.func.description("The function to call when the chat is opened via the header").defaultValue(defaultProps.onHeaderExpand),
56
- onHeaderClose: import_react_desc.PropTypes.func.description("The function to call when the chat is closed via the header").defaultValue(defaultProps.onHeaderClose),
57
- floating: import_react_desc.PropTypes.bool.description("Whether to show the chat as floating chat or not").defaultValue(defaultProps.floating)
58
- };
59
- module.exports = __toCommonJS(prop_types_exports);
60
- //# sourceMappingURL=prop-types.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/prop-types.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import { PropTypes } from 'react-desc';\nimport { noop } from 'lodash';\nimport { ChatProps } from './index.d';\n\nexport const defaultProps: ChatProps = {\n expanded: false,\n expandedWidth: 348,\n openedItem: undefined,\n onFooterExpand: noop,\n onFooterClose: noop,\n floating: false,\n onHeaderExpand: noop,\n onHeaderClose: noop,\n title: 'Header Title',\n};\n\nexport const chatProps = {\n containerProps: PropTypes.shape({}).defaultValue({}),\n expanded: PropTypes.bool\n .description('Whether to show the chat expanded or collapsed')\n .defaultValue(defaultProps.expanded),\n expandedWidth: PropTypes.number\n .description('Total width attached to the expanded Chat')\n .defaultValue(defaultProps.expandedWidth),\n openedItem: PropTypes.string\n .description('The id of the chat item you want to be opened')\n .defaultValue(defaultProps.openedItem),\n messages: PropTypes.arrayOf(PropTypes.object)\n .description(\n 'The array of out-of-the-box items you want to render inside the container list of the chat',\n )\n .defaultValue(defaultProps.openedItem),\n onFooterExpand: PropTypes.func\n .description('The function to call when the chat is opened via the footer')\n .defaultValue(defaultProps.onFooterExpand),\n onFooterClose: PropTypes.func\n .description('The function to call when the chat is closed via the footer')\n .defaultValue(defaultProps.onFooterClose),\n onHeaderExpand: PropTypes.func\n .description('The function to call when the chat is opened via the header')\n .defaultValue(defaultProps.onHeaderExpand),\n onHeaderClose: PropTypes.func\n .description('The function to call when the chat is closed via the header')\n .defaultValue(defaultProps.onHeaderClose),\n floating: PropTypes.bool\n .description('Whether to show the chat as floating chat or not')\n .defaultValue(defaultProps.floating),\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAA0B;AAC1B,oBAAqB;AAGd,MAAM,eAA0B;AAAA,EACrC,UAAU;AAAA,EACV,eAAe;AAAA,EACf,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,UAAU;AAAA,EACV,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,OAAO;AAAA;AAGF,MAAM,YAAY;AAAA,EACvB,gBAAgB,4BAAU,MAAM,IAAI,aAAa;AAAA,EACjD,UAAU,4BAAU,KACjB,YAAY,kDACZ,aAAa,aAAa;AAAA,EAC7B,eAAe,4BAAU,OACtB,YAAY,6CACZ,aAAa,aAAa;AAAA,EAC7B,YAAY,4BAAU,OACnB,YAAY,iDACZ,aAAa,aAAa;AAAA,EAC7B,UAAU,4BAAU,QAAQ,4BAAU,QACnC,YACC,8FAED,aAAa,aAAa;AAAA,EAC7B,gBAAgB,4BAAU,KACvB,YAAY,+DACZ,aAAa,aAAa;AAAA,EAC7B,eAAe,4BAAU,KACtB,YAAY,+DACZ,aAAa,aAAa;AAAA,EAC7B,gBAAgB,4BAAU,KACvB,YAAY,+DACZ,aAAa,aAAa;AAAA,EAC7B,eAAe,4BAAU,KACtB,YAAY,+DACZ,aAAa,aAAa;AAAA,EAC7B,UAAU,4BAAU,KACjB,YAAY,oDACZ,aAAa,aAAa;AAAA;",
6
- "names": []
7
- }
@@ -1,45 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __reExport = (target, module2, copyDefault, desc) => {
13
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
- for (let key of __getOwnPropNames(module2))
15
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
17
- }
18
- return target;
19
- };
20
- var __toESM = (module2, isNodeMode) => {
21
- return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
- };
23
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
- return (module2, temp) => {
25
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
- };
27
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
28
- var styled_exports = {};
29
- __export(styled_exports, {
30
- BOX_SHADOW: () => BOX_SHADOW,
31
- BOX_SHADOW_FLOATING: () => BOX_SHADOW_FLOATING,
32
- BOX_SHADOW_INSET: () => BOX_SHADOW_INSET,
33
- BUTTON_FLOATING: () => BUTTON_FLOATING,
34
- BUTTON_SIDEBAR_HEIGHT: () => BUTTON_SIDEBAR_HEIGHT,
35
- MIN_WIDTH_SIDEBAR: () => MIN_WIDTH_SIDEBAR
36
- });
37
- var React = __toESM(require("react"));
38
- const MIN_WIDTH_SIDEBAR = 48;
39
- const BUTTON_SIDEBAR_HEIGHT = 48;
40
- const BUTTON_FLOATING = 56;
41
- const BOX_SHADOW = "0 5px 8px 0 rgba(53,60,70,0.55)";
42
- const BOX_SHADOW_FLOATING = "0 5px 8px 0 rgba(53,60,70,0.35)";
43
- const BOX_SHADOW_INSET = `inset 100px 3px 4px 0 rgba(53,60,70,0.50)`;
44
- module.exports = __toCommonJS(styled_exports);
45
- //# sourceMappingURL=styled.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/styled.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["export const MIN_WIDTH_SIDEBAR = 48;\nexport const BUTTON_SIDEBAR_HEIGHT = 48;\nexport const BUTTON_FLOATING = 56;\nexport const BOX_SHADOW = '0 5px 8px 0 rgba(53,60,70,0.55)';\nexport const BOX_SHADOW_FLOATING = '0 5px 8px 0 rgba(53,60,70,0.35)';\nexport const BOX_SHADOW_INSET = `inset 100px 3px 4px 0 rgba(53,60,70,0.50)`;\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAhB,MAAM,oBAAoB;AAC1B,MAAM,wBAAwB;AAC9B,MAAM,kBAAkB;AACxB,MAAM,aAAa;AACnB,MAAM,sBAAsB;AAC5B,MAAM,mBAAmB;",
6
- "names": []
7
- }
@@ -1,66 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __reExport = (target, module2, copyDefault, desc) => {
13
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
- for (let key of __getOwnPropNames(module2))
15
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
17
- }
18
- return target;
19
- };
20
- var __toESM = (module2, isNodeMode) => {
21
- return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
- };
23
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
- return (module2, temp) => {
25
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
- };
27
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
28
- var utils_exports = {};
29
- __export(utils_exports, {
30
- loadMsgs: () => loadMsgs
31
- });
32
- var React = __toESM(require("react"));
33
- var import_ds_chat = require("@elliemae/ds-chat");
34
- const getRandomMessages = (q, key) => Array(q).fill().map((v, i) => {
35
- if (i > 5 && i % 22 === 0) {
36
- return {
37
- dsId: `${i}`,
38
- body: `This is a system message that notifies the user of some important things`,
39
- type: import_ds_chat.BUBBLE_TYPES.SYSTEM,
40
- title: "System Message",
41
- time: "4:50 pm"
42
- };
43
- }
44
- if (i > 5 && i % 16 === 0) {
45
- return {
46
- dsId: `${i}`,
47
- type: import_ds_chat.BUBBLE_TYPES.DELIMITER,
48
- title: "Mon, Apr 25, 12:43 PM",
49
- extraProps: { "data-testid": "custom-data-testid" }
50
- };
51
- }
52
- const isSender = i % 2 === 0;
53
- const chatBubbleType = isSender ? import_ds_chat.BUBBLE_TYPES.SENDER : import_ds_chat.BUBBLE_TYPES.RECIPIENT;
54
- const chatTitle = isSender ? "Robert Deniro" : "Al Pacino";
55
- return {
56
- dsId: `${i}`,
57
- body: `Message text ${key} Message text ${i}`,
58
- type: chatBubbleType,
59
- title: chatTitle,
60
- time: "4:50 pm",
61
- helpMessage: isSender ? "Delivered" : null
62
- };
63
- });
64
- const loadMsgs = (q) => getRandomMessages(q, "item_key");
65
- module.exports = __toCommonJS(utils_exports);
66
- //# sourceMappingURL=utils.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/tests/utils.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import { BUBBLE_TYPES } from '@elliemae/ds-chat';\n\nconst getRandomMessages = (q, key) =>\n Array(q)\n .fill()\n .map((v, i) => {\n if (i > 5 && i % 22 === 0) {\n return {\n dsId: `${i}`,\n body: `This is a system message that notifies the user of some important things`,\n type: BUBBLE_TYPES.SYSTEM,\n title: 'System Message',\n time: '4:50 pm',\n };\n }\n if (i > 5 && i % 16 === 0) {\n return {\n dsId: `${i}`,\n type: BUBBLE_TYPES.DELIMITER,\n title: 'Mon, Apr 25, 12:43 PM',\n extraProps: { 'data-testid': 'custom-data-testid' },\n };\n }\n const isSender = i % 2 === 0;\n const chatBubbleType = isSender ? BUBBLE_TYPES.SENDER : BUBBLE_TYPES.RECIPIENT;\n const chatTitle = isSender ? 'Robert Deniro' : 'Al Pacino';\n return {\n dsId: `${i}`,\n body: `Message text ${key} Message text ${i}`,\n type: chatBubbleType,\n title: chatTitle,\n time: '4:50 pm',\n helpMessage: isSender ? 'Delivered' : null,\n };\n });\n\nexport const loadMsgs = (q: number): unknown => getRandomMessages(q, 'item_key');\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,qBAA6B;AAE7B,MAAM,oBAAoB,CAAC,GAAG,QAC5B,MAAM,GACH,OACA,IAAI,CAAC,GAAG,MAAM;AACb,MAAI,IAAI,KAAK,IAAI,OAAO,GAAG;AACzB,WAAO;AAAA,MACL,MAAM,GAAG;AAAA,MACT,MAAM;AAAA,MACN,MAAM,4BAAa;AAAA,MACnB,OAAO;AAAA,MACP,MAAM;AAAA;AAAA;AAGV,MAAI,IAAI,KAAK,IAAI,OAAO,GAAG;AACzB,WAAO;AAAA,MACL,MAAM,GAAG;AAAA,MACT,MAAM,4BAAa;AAAA,MACnB,OAAO;AAAA,MACP,YAAY,EAAE,eAAe;AAAA;AAAA;AAGjC,QAAM,WAAW,IAAI,MAAM;AAC3B,QAAM,iBAAiB,WAAW,4BAAa,SAAS,4BAAa;AACrE,QAAM,YAAY,WAAW,kBAAkB;AAC/C,SAAO;AAAA,IACL,MAAM,GAAG;AAAA,IACT,MAAM,gBAAgB,oBAAoB;AAAA,IAC1C,MAAM;AAAA,IACN,OAAO;AAAA,IACP,MAAM;AAAA,IACN,aAAa,WAAW,cAAc;AAAA;AAAA;AAIvC,MAAM,WAAW,CAAC,MAAuB,kBAAkB,GAAG;",
6
- "names": []
7
- }
@@ -1,27 +0,0 @@
1
- import * as React from "react";
2
- const ChatDataTestIds = {
3
- COMPOSER_TEXTAREA: "chat-composer-textarea",
4
- COMPOSER_SEND_BUTTON: "chat-composer-send-button",
5
- CARD_TITLE: "chat-card-title",
6
- CARD_WRAPPER: "chat-card-wrapper",
7
- CARD_TIME: "chat-card-time",
8
- CARD_RIGHT_ADDON: "chat-right-addon",
9
- CARD_CONTENT: "chat-card-content",
10
- LOADING_INDICATOR: "ds-chat-loading-indicator",
11
- HEADER_TITLE: "chat-header-title",
12
- HEADER_CHILDREN: "chat-header-children",
13
- THREAD_CONTAINER: "chat-thread-container",
14
- LOAD_MORE_BUTTON: "ds-chat-load-more-btn",
15
- FLOATING_BUTTON: "chat-floating-button",
16
- SYSTEM_MSG_TITLE: "chat-system-message-title",
17
- SYSTEM_MSG_BODY: "chat-system-message-body",
18
- SYSTEM_MSG_TIME: "chat-system-message-time",
19
- BUBBLE: "ds-chat-bubble",
20
- BUBBLE_TITLE: "chat-bubble-title",
21
- BUBBLE_BODY: "chat-bubble-body",
22
- BANNER: "ds-banner-container"
23
- };
24
- export {
25
- ChatDataTestIds
26
- };
27
- //# sourceMappingURL=ChatDataTestids.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/ChatDataTestids.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const ChatDataTestIds = {\n COMPOSER_TEXTAREA: 'chat-composer-textarea',\n COMPOSER_SEND_BUTTON: 'chat-composer-send-button',\n CARD_TITLE: 'chat-card-title',\n CARD_WRAPPER: 'chat-card-wrapper',\n CARD_TIME: 'chat-card-time',\n CARD_RIGHT_ADDON: 'chat-right-addon',\n CARD_CONTENT: 'chat-card-content',\n LOADING_INDICATOR: 'ds-chat-loading-indicator',\n HEADER_TITLE: 'chat-header-title',\n HEADER_CHILDREN: 'chat-header-children',\n THREAD_CONTAINER: 'chat-thread-container',\n LOAD_MORE_BUTTON: 'ds-chat-load-more-btn',\n FLOATING_BUTTON: 'chat-floating-button',\n SYSTEM_MSG_TITLE: 'chat-system-message-title',\n SYSTEM_MSG_BODY: 'chat-system-message-body',\n SYSTEM_MSG_TIME: 'chat-system-message-time',\n BUBBLE: 'ds-chat-bubble',\n BUBBLE_TITLE: 'chat-bubble-title',\n BUBBLE_BODY: 'chat-bubble-body',\n BANNER: 'ds-banner-container',\n};\n"],
5
- "mappings": "AAAA;ACAO,MAAM,kBAAkB;AAAA,EAC7B,mBAAmB;AAAA,EACnB,sBAAsB;AAAA,EACtB,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,WAAW;AAAA,EACX,kBAAkB;AAAA,EAClB,cAAc;AAAA,EACd,mBAAmB;AAAA,EACnB,cAAc;AAAA,EACd,iBAAiB;AAAA,EACjB,kBAAkB;AAAA,EAClB,kBAAkB;AAAA,EAClB,iBAAiB;AAAA,EACjB,kBAAkB;AAAA,EAClB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,QAAQ;AAAA,EACR,cAAc;AAAA,EACd,aAAa;AAAA,EACb,QAAQ;AAAA;",
6
- "names": []
7
- }
@@ -1,2 +0,0 @@
1
- import * as React from "react";
2
- //# sourceMappingURL=index.d.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n"],
5
- "mappings": "AAAA;",
6
- "names": []
7
- }
package/dist/esm/index.js DELETED
@@ -1,40 +0,0 @@
1
- import * as React from "react";
2
- import { ChatBubble, ChatBubbleWithSchema, BUBBLE_TYPES } from "./parts/bubble";
3
- import { FloatingButton } from "./parts/floating-button";
4
- import { StyledFloatingContainer } from "./parts/floating-container/styled";
5
- import { ChatContainerHeader } from "./parts/chat-container-header/ChatContainerHeader";
6
- import { ChatEmptyState } from "./parts/chat-empty-state/ChatEmptyState";
7
- import { ChatContainerMessagesList, ChatContainerMessagesListWithSchema } from "./parts/chat-container-messages-list";
8
- import { ChatComposer, ChatComposerWithSchema } from "./parts/chat-composer/ChatContainerComposer";
9
- import { SideBarChat, SideBarChatWithSchema } from "./parts/chat-sidebar";
10
- import { ChatContainer, ChatContainerWithSchema } from "./parts/chat-container";
11
- import { TileButton, TileButtonWithSchema } from "./parts/tile-button";
12
- import { MessageDelimiter, MessageDelimiterWithSchema } from "./parts/message-delimiter";
13
- import { SystemMessage, SystemMessageWithSchema } from "./parts/system-message";
14
- import { ChatCard, ChatCardWithSchema } from "./parts/chat-card";
15
- export {
16
- BUBBLE_TYPES,
17
- ChatBubble,
18
- ChatBubbleWithSchema,
19
- ChatCard,
20
- ChatCardWithSchema,
21
- ChatComposer,
22
- ChatComposerWithSchema,
23
- ChatContainer,
24
- ChatContainerHeader,
25
- ChatContainerMessagesList,
26
- ChatContainerMessagesListWithSchema,
27
- ChatContainerWithSchema,
28
- ChatEmptyState,
29
- FloatingButton,
30
- MessageDelimiter,
31
- MessageDelimiterWithSchema,
32
- SideBarChat,
33
- SideBarChatWithSchema,
34
- StyledFloatingContainer,
35
- SystemMessage,
36
- SystemMessageWithSchema,
37
- TileButton,
38
- TileButtonWithSchema
39
- };
40
- //# sourceMappingURL=index.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "// Bubble\nexport { ChatBubble, ChatBubbleWithSchema, BUBBLE_TYPES } from './parts/bubble';\n// Floating Button\nexport { FloatingButton } from './parts/floating-button';\nexport { StyledFloatingContainer } from './parts/floating-container/styled';\n// Chat Header\nexport { ChatContainerHeader } from './parts/chat-container-header/ChatContainerHeader';\n// Chat Empty State\nexport { ChatEmptyState } from './parts/chat-empty-state/ChatEmptyState';\n\n// Chat List\nexport { ChatContainerMessagesList, ChatContainerMessagesListWithSchema } from './parts/chat-container-messages-list';\n// Chat Composer\nexport { ChatComposer, ChatComposerWithSchema } from './parts/chat-composer/ChatContainerComposer';\n// Chat Sidebar\nexport { SideBarChat, SideBarChatWithSchema } from './parts/chat-sidebar';\n// Chat Container\nexport { ChatContainer, ChatContainerWithSchema } from './parts/chat-container';\n// Tile\nexport { TileButton, TileButtonWithSchema } from './parts/tile-button';\n// MessageDelimiter\nexport { MessageDelimiter, MessageDelimiterWithSchema } from './parts/message-delimiter';\n// SystemMessage\nexport { SystemMessage, SystemMessageWithSchema } from './parts/system-message';\n// ChatCard\nexport { ChatCard, ChatCardWithSchema } from './parts/chat-card';\n"],
5
- "mappings": "AAAA;ACCA;AAEA;AACA;AAEA;AAEA;AAGA;AAEA;AAEA;AAEA;AAEA;AAEA;AAEA;AAEA;",
6
- "names": []
7
- }
@@ -1,64 +0,0 @@
1
- import * as React from "react";
2
- import React2 from "react";
3
- import { describe } from "react-desc";
4
- import { WarningCircleFill } from "@elliemae/ds-icons";
5
- import {
6
- StyledWrapper,
7
- StyledColoredBubble,
8
- StyledTitleBubble,
9
- StyledTitleLeftBubble,
10
- StyledTitleRightBubble,
11
- StyleBodyWrapper,
12
- StyleErrorMessage,
13
- StyleHelpMessage
14
- } from "./styled";
15
- import { propsBubbles } from "./props";
16
- import { useValidateProps } from "./config/useValidateProps";
17
- import { ChatBubbleArrow } from "./ChatBubbleArrow";
18
- const ChatBubble = (props) => {
19
- useValidateProps(props, ChatBubbleWithSchema.toJSON());
20
- const { dsId, type, title, time, body, errorMessage, helpMessage } = props;
21
- const bodyParts = React2.useMemo(() => typeof body === "string" ? body.split("\n") : [body], [body]);
22
- return /* @__PURE__ */ React2.createElement(StyledWrapper, {
23
- "data-testid": `ds-chat-bubble-${dsId}`,
24
- type
25
- }, /* @__PURE__ */ React2.createElement(StyledColoredBubble, {
26
- type
27
- }, /* @__PURE__ */ React2.createElement(StyledTitleBubble, {
28
- cols: [1, "auto"],
29
- gutter: "xs",
30
- alignItems: "flex-end",
31
- className: "sr-only"
32
- }, /* @__PURE__ */ React2.createElement(StyledTitleLeftBubble, {
33
- alignItems: "center",
34
- "data-testid": `chat-bubble-title-${dsId}`
35
- }, title), /* @__PURE__ */ React2.createElement(StyledTitleRightBubble, {
36
- alignItems: "center",
37
- type,
38
- "data-testid": `chat-bubble-time-${dsId}`
39
- }, time)), /* @__PURE__ */ React2.createElement(StyleBodyWrapper, {
40
- "data-testid": `chat-bubble-body-${dsId}`
41
- }, bodyParts.map((item, index) => /* @__PURE__ */ React2.createElement(React2.Fragment, {
42
- key: `${item}-${index}`
43
- }, item, index < bodyParts.length - 1 ? /* @__PURE__ */ React2.createElement("br", null) : null))), /* @__PURE__ */ React2.createElement(ChatBubbleArrow, {
44
- type
45
- })), errorMessage ? /* @__PURE__ */ React2.createElement(StyleErrorMessage, {
46
- "data-testid": `chat-bubble-error-message-${dsId}`,
47
- p: "xxs",
48
- gutter: "xxs",
49
- cols: [1, "auto"]
50
- }, /* @__PURE__ */ React2.createElement("span", null, errorMessage), /* @__PURE__ */ React2.createElement(WarningCircleFill, null)) : null, helpMessage ? /* @__PURE__ */ React2.createElement(StyleHelpMessage, {
51
- "data-testid": `chat-bubble-help-message-${dsId}`,
52
- p: "xxs",
53
- gutter: "xxs",
54
- cols: [1, "auto"]
55
- }, /* @__PURE__ */ React2.createElement("span", null, helpMessage)) : null);
56
- };
57
- ChatBubble.propTypes = propsBubbles;
58
- const ChatBubbleWithSchema = describe(ChatBubble);
59
- ChatBubbleWithSchema.propTypes = propsBubbles;
60
- export {
61
- ChatBubble,
62
- ChatBubbleWithSchema
63
- };
64
- //# sourceMappingURL=ChatBubble.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/bubble/ChatBubble.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from 'react-desc';\nimport { WarningCircleFill } from '@elliemae/ds-icons';\nimport {\n StyledWrapper,\n StyledColoredBubble,\n StyledTitleBubble,\n StyledTitleLeftBubble,\n StyledTitleRightBubble,\n StyleBodyWrapper,\n StyleErrorMessage,\n StyleHelpMessage,\n} from './styled';\nimport { propsBubbles, BubbleProps } from './props';\nimport { useValidateProps } from './config/useValidateProps';\nimport { ChatBubbleArrow } from './ChatBubbleArrow';\n\nconst ChatBubble = (props: BubbleProps): JSX.Element => {\n useValidateProps(props, ChatBubbleWithSchema.toJSON());\n\n const { dsId, type, title, time, body, errorMessage, helpMessage } = props;\n const bodyParts = React.useMemo(() => (typeof body === 'string' ? body.split('\\n') : [body]), [body]);\n\n return (\n <StyledWrapper data-testid={`ds-chat-bubble-${dsId}`} type={type}>\n <StyledColoredBubble type={type}>\n <StyledTitleBubble cols={[1, 'auto']} gutter=\"xs\" alignItems=\"flex-end\" className=\"sr-only\">\n <StyledTitleLeftBubble alignItems=\"center\" data-testid={`chat-bubble-title-${dsId}`}>\n {title}\n </StyledTitleLeftBubble>\n <StyledTitleRightBubble alignItems=\"center\" type={type} data-testid={`chat-bubble-time-${dsId}`}>\n {time}\n </StyledTitleRightBubble>\n </StyledTitleBubble>\n <StyleBodyWrapper data-testid={`chat-bubble-body-${dsId}`}>\n {bodyParts.map((item, index) => (\n <React.Fragment key={`${item}-${index}`}>\n {item}\n {index < bodyParts.length - 1 ? <br /> : null}\n </React.Fragment>\n ))}\n </StyleBodyWrapper>\n <ChatBubbleArrow type={type} />\n </StyledColoredBubble>\n {errorMessage ? (\n <StyleErrorMessage data-testid={`chat-bubble-error-message-${dsId}`} p=\"xxs\" gutter=\"xxs\" cols={[1, 'auto']}>\n <span>{errorMessage}</span>\n <WarningCircleFill />\n </StyleErrorMessage>\n ) : null}\n {helpMessage ? (\n <StyleHelpMessage data-testid={`chat-bubble-help-message-${dsId}`} p=\"xxs\" gutter=\"xxs\" cols={[1, 'auto']}>\n <span>{helpMessage}</span>\n </StyleHelpMessage>\n ) : null}\n </StyledWrapper>\n );\n};\nChatBubble.propTypes = propsBubbles;\n\nconst ChatBubbleWithSchema = describe(ChatBubble);\nChatBubbleWithSchema.propTypes = propsBubbles;\n\nexport { ChatBubble, ChatBubbleWithSchema };\n"],
5
- "mappings": "AAAA;ACAA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUA;AACA;AACA;AAEA,MAAM,aAAa,CAAC,UAAoC;AACtD,mBAAiB,OAAO,qBAAqB;AAE7C,QAAM,EAAE,MAAM,MAAM,OAAO,MAAM,MAAM,cAAc,gBAAgB;AACrE,QAAM,YAAY,OAAM,QAAQ,MAAO,OAAO,SAAS,WAAW,KAAK,MAAM,QAAQ,CAAC,OAAQ,CAAC;AAE/F,SACE,qCAAC,eAAD;AAAA,IAAe,eAAa,kBAAkB;AAAA,IAAQ;AAAA,KACpD,qCAAC,qBAAD;AAAA,IAAqB;AAAA,KACnB,qCAAC,mBAAD;AAAA,IAAmB,MAAM,CAAC,GAAG;AAAA,IAAS,QAAO;AAAA,IAAK,YAAW;AAAA,IAAW,WAAU;AAAA,KAChF,qCAAC,uBAAD;AAAA,IAAuB,YAAW;AAAA,IAAS,eAAa,qBAAqB;AAAA,KAC1E,QAEH,qCAAC,wBAAD;AAAA,IAAwB,YAAW;AAAA,IAAS;AAAA,IAAY,eAAa,oBAAoB;AAAA,KACtF,QAGL,qCAAC,kBAAD;AAAA,IAAkB,eAAa,oBAAoB;AAAA,KAChD,UAAU,IAAI,CAAC,MAAM,UACpB,qCAAC,OAAM,UAAP;AAAA,IAAgB,KAAK,GAAG,QAAQ;AAAA,KAC7B,MACA,QAAQ,UAAU,SAAS,IAAI,qCAAC,MAAD,QAAS,SAI/C,qCAAC,iBAAD;AAAA,IAAiB;AAAA,OAElB,eACC,qCAAC,mBAAD;AAAA,IAAmB,eAAa,6BAA6B;AAAA,IAAQ,GAAE;AAAA,IAAM,QAAO;AAAA,IAAM,MAAM,CAAC,GAAG;AAAA,KAClG,qCAAC,QAAD,MAAO,eACP,qCAAC,mBAAD,SAEA,MACH,cACC,qCAAC,kBAAD;AAAA,IAAkB,eAAa,4BAA4B;AAAA,IAAQ,GAAE;AAAA,IAAM,QAAO;AAAA,IAAM,MAAM,CAAC,GAAG;AAAA,KAChG,qCAAC,QAAD,MAAO,gBAEP;AAAA;AAIV,WAAW,YAAY;AAEvB,MAAM,uBAAuB,SAAS;AACtC,qBAAqB,YAAY;",
6
- "names": []
7
- }
@@ -1,68 +0,0 @@
1
- import * as React from "react";
2
- import React2 from "react";
3
- import { StyledBubbleArrow } from "./styled";
4
- import { BUBBLE_TYPES, propsArrowBubble } from "./props";
5
- const ChatBubbleArrow = ({ type }) => /* @__PURE__ */ React2.createElement(StyledBubbleArrow, null, type === BUBBLE_TYPES.RECIPIENT ? /* @__PURE__ */ React2.createElement("svg", {
6
- width: "15px",
7
- height: "14px",
8
- viewBox: "0 0 15 14"
9
- }, /* @__PURE__ */ React2.createElement("defs", null, /* @__PURE__ */ React2.createElement("path", {
10
- d: "M12,8.5 C12,7.9373169 11.6782751,7.4856453 11.2282104,7.196228 C11.2286673,7.1967363 3,2 3,2 L3,10 L10.5627441,10 L10.5658569,9.9933472 C11.3630371,9.9580688 12,9.3058472 12,8.5 Z",
11
- id: "path-chat-bubble"
12
- }), /* @__PURE__ */ React2.createElement("filter", {
13
- x: "-55.6%",
14
- y: "-50.0%",
15
- width: "211.1%",
16
- height: "225.0%",
17
- filterUnits: "objectBoundingBox",
18
- id: "filter-2"
19
- }, /* @__PURE__ */ React2.createElement("feOffset", {
20
- dx: "2.3",
21
- dy: "1.2",
22
- in: "SourceAlpha",
23
- result: "shadowOffsetOuter1"
24
- }), /* @__PURE__ */ React2.createElement("feGaussianBlur", {
25
- stdDeviation: "1.5",
26
- in: "shadowOffsetOuter1",
27
- result: "shadowBlurOuter1"
28
- }), /* @__PURE__ */ React2.createElement("feColorMatrix", {
29
- values: "0 0 0 0 0.207843137 \n 0 0 0 0 0.235294118 \n 0 0 0 0 0.274509804 \n 0 0 0 0.8 0",
30
- type: "matrix",
31
- in: "shadowBlurOuter1"
32
- }))), /* @__PURE__ */ React2.createElement("g", {
33
- id: "[DSK]-Visual-Design",
34
- stroke: "none",
35
- strokeWidth: "1",
36
- fill: "none",
37
- fillRule: "evenodd"
38
- }, /* @__PURE__ */ React2.createElement("g", {
39
- id: "Path-Copy",
40
- transform: "translate(7.500000, 6.000000) scale(-1, 1) translate(-7.500000, -6.000000) "
41
- }, /* @__PURE__ */ React2.createElement("use", {
42
- fill: "black",
43
- fillOpacity: "1",
44
- filter: "url(#filter-2)",
45
- xlinkHref: "#path-chat-bubble"
46
- }), /* @__PURE__ */ React2.createElement("use", {
47
- fill: "#FFFFFF",
48
- fillRule: "evenodd",
49
- xlinkHref: "#path-chat-bubble"
50
- })))) : /* @__PURE__ */ React2.createElement("svg", {
51
- width: "9px",
52
- height: "8px",
53
- viewBox: "0 0 9 8"
54
- }, /* @__PURE__ */ React2.createElement("g", {
55
- stroke: "none",
56
- strokeWidth: "1",
57
- fill: "none",
58
- fillRule: "evenodd"
59
- }, /* @__PURE__ */ React2.createElement("path", {
60
- d: "M9,6.5 C9,5.9373169 8.6782751,5.4856453 8.2282104,5.196228 C8.2286673,5.1967363 0,0 0,0 L0,8 L7.5627441,8 L7.5658569,7.9933472 C8.3630371,7.9580688 9,7.3058472 9,6.5 Z",
61
- id: "Path",
62
- fill: "#1E79C2"
63
- }))));
64
- ChatBubbleArrow.propTypes = propsArrowBubble;
65
- export {
66
- ChatBubbleArrow
67
- };
68
- //# sourceMappingURL=ChatBubbleArrow.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/bubble/ChatBubbleArrow.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { StyledBubbleArrow } from './styled';\nimport { BUBBLE_TYPES, BubbleProps, propsArrowBubble } from './props';\n\nexport const ChatBubbleArrow = ({ type }: Pick<BubbleProps, 'type'>): JSX.Element => (\n <StyledBubbleArrow>\n {type === BUBBLE_TYPES.RECIPIENT ? (\n <svg width=\"15px\" height=\"14px\" viewBox=\"0 0 15 14\">\n <defs>\n <path\n d=\"M12,8.5 C12,7.9373169 11.6782751,7.4856453 11.2282104,7.196228 C11.2286673,7.1967363 3,2 3,2 L3,10 L10.5627441,10 L10.5658569,9.9933472 C11.3630371,9.9580688 12,9.3058472 12,8.5 Z\"\n id=\"path-chat-bubble\"\n ></path>\n <filter x=\"-55.6%\" y=\"-50.0%\" width=\"211.1%\" height=\"225.0%\" filterUnits=\"objectBoundingBox\" id=\"filter-2\">\n <feOffset dx=\"2.3\" dy=\"1.2\" in=\"SourceAlpha\" result=\"shadowOffsetOuter1\"></feOffset>\n <feGaussianBlur stdDeviation=\"1.5\" in=\"shadowOffsetOuter1\" result=\"shadowBlurOuter1\"></feGaussianBlur>\n <feColorMatrix\n values=\"0 0 0 0 0.207843137 \n 0 0 0 0 0.235294118 \n 0 0 0 0 0.274509804 \n 0 0 0 0.8 0\"\n type=\"matrix\"\n in=\"shadowBlurOuter1\"\n ></feColorMatrix>\n </filter>\n </defs>\n <g id=\"[DSK]-Visual-Design\" stroke=\"none\" strokeWidth=\"1\" fill=\"none\" fillRule=\"evenodd\">\n <g id=\"Path-Copy\" transform=\"translate(7.500000, 6.000000) scale(-1, 1) translate(-7.500000, -6.000000) \">\n <use fill=\"black\" fillOpacity=\"1\" filter=\"url(#filter-2)\" xlinkHref=\"#path-chat-bubble\"></use>\n <use fill=\"#FFFFFF\" fillRule=\"evenodd\" xlinkHref=\"#path-chat-bubble\"></use>\n </g>\n </g>\n </svg>\n ) : (\n <svg width=\"9px\" height=\"8px\" viewBox=\"0 0 9 8\">\n <g stroke=\"none\" strokeWidth=\"1\" fill=\"none\" fillRule=\"evenodd\">\n <path\n d=\"M9,6.5 C9,5.9373169 8.6782751,5.4856453 8.2282104,5.196228 C8.2286673,5.1967363 0,0 0,0 L0,8 L7.5627441,8 L7.5658569,7.9933472 C8.3630371,7.9580688 9,7.3058472 9,6.5 Z\"\n id=\"Path\"\n fill=\"#1E79C2\"\n ></path>\n </g>\n </svg>\n )}\n </StyledBubbleArrow>\n);\n\nChatBubbleArrow.propTypes = propsArrowBubble;\n"],
5
- "mappings": "AAAA;ACAA;AACA;AACA;AAEO,MAAM,kBAAkB,CAAC,EAAE,WAChC,qCAAC,mBAAD,MACG,SAAS,aAAa,YACrB,qCAAC,OAAD;AAAA,EAAK,OAAM;AAAA,EAAO,QAAO;AAAA,EAAO,SAAQ;AAAA,GACtC,qCAAC,QAAD,MACE,qCAAC,QAAD;AAAA,EACE,GAAE;AAAA,EACF,IAAG;AAAA,IAEL,qCAAC,UAAD;AAAA,EAAQ,GAAE;AAAA,EAAS,GAAE;AAAA,EAAS,OAAM;AAAA,EAAS,QAAO;AAAA,EAAS,aAAY;AAAA,EAAoB,IAAG;AAAA,GAC9F,qCAAC,YAAD;AAAA,EAAU,IAAG;AAAA,EAAM,IAAG;AAAA,EAAM,IAAG;AAAA,EAAc,QAAO;AAAA,IACpD,qCAAC,kBAAD;AAAA,EAAgB,cAAa;AAAA,EAAM,IAAG;AAAA,EAAqB,QAAO;AAAA,IAClE,qCAAC,iBAAD;AAAA,EACE,QAAO;AAAA,EAIP,MAAK;AAAA,EACL,IAAG;AAAA,MAIT,qCAAC,KAAD;AAAA,EAAG,IAAG;AAAA,EAAsB,QAAO;AAAA,EAAO,aAAY;AAAA,EAAI,MAAK;AAAA,EAAO,UAAS;AAAA,GAC7E,qCAAC,KAAD;AAAA,EAAG,IAAG;AAAA,EAAY,WAAU;AAAA,GAC1B,qCAAC,OAAD;AAAA,EAAK,MAAK;AAAA,EAAQ,aAAY;AAAA,EAAI,QAAO;AAAA,EAAiB,WAAU;AAAA,IACpE,qCAAC,OAAD;AAAA,EAAK,MAAK;AAAA,EAAU,UAAS;AAAA,EAAU,WAAU;AAAA,QAKvD,qCAAC,OAAD;AAAA,EAAK,OAAM;AAAA,EAAM,QAAO;AAAA,EAAM,SAAQ;AAAA,GACpC,qCAAC,KAAD;AAAA,EAAG,QAAO;AAAA,EAAO,aAAY;AAAA,EAAI,MAAK;AAAA,EAAO,UAAS;AAAA,GACpD,qCAAC,QAAD;AAAA,EACE,GAAE;AAAA,EACF,IAAG;AAAA,EACH,MAAK;AAAA;AAQjB,gBAAgB,YAAY;",
6
- "names": []
7
- }
@@ -1,25 +0,0 @@
1
- import * as React from "react";
2
- import { useValidatePropTypes } from "@elliemae/ds-props-helpers";
3
- const throwError = (message) => {
4
- throw new Error(`Bubble:: ${message}
5
- `);
6
- };
7
- const useValidateProps = (props, schema) => {
8
- useValidatePropTypes(props, schema);
9
- if (typeof props.title === "undefined") {
10
- throwError(`Please provide a title property to use this component.`);
11
- }
12
- if (typeof props.time === "undefined") {
13
- throwError(`Please provide a time property to use this component.`);
14
- }
15
- if (typeof props.body === "undefined") {
16
- throwError(`Please provide a body property to use this component.`);
17
- }
18
- if (typeof props.type === "undefined") {
19
- throwError(`Please provide a type property to use this component.`);
20
- }
21
- };
22
- export {
23
- useValidateProps
24
- };
25
- //# sourceMappingURL=useValidateProps.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../../src/parts/bubble/config/useValidateProps.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { useValidatePropTypes } from '@elliemae/ds-props-helpers';\nimport { BubbleProps } from '../props';\n\nconst throwError = (message: string): void => {\n throw new Error(\n `Bubble:: ${message}\n `,\n );\n};\n\nexport const useValidateProps = (props: BubbleProps, schema: unknown): void => {\n useValidatePropTypes(props, schema);\n if (typeof props.title === 'undefined') {\n throwError(`Please provide a title property to use this component.`);\n }\n if (typeof props.time === 'undefined') {\n throwError(`Please provide a time property to use this component.`);\n }\n if (typeof props.body === 'undefined') {\n throwError(`Please provide a body property to use this component.`);\n }\n if (typeof props.type === 'undefined') {\n throwError(`Please provide a type property to use this component.`);\n }\n};\n"],
5
- "mappings": "AAAA;ACAA;AAGA,MAAM,aAAa,CAAC,YAA0B;AAC5C,QAAM,IAAI,MACR,YAAY;AAAA;AAAA;AAKT,MAAM,mBAAmB,CAAC,OAAoB,WAA0B;AAC7E,uBAAqB,OAAO;AAC5B,MAAI,OAAO,MAAM,UAAU,aAAa;AACtC,eAAW;AAAA;AAEb,MAAI,OAAO,MAAM,SAAS,aAAa;AACrC,eAAW;AAAA;AAEb,MAAI,OAAO,MAAM,SAAS,aAAa;AACrC,eAAW;AAAA;AAEb,MAAI,OAAO,MAAM,SAAS,aAAa;AACrC,eAAW;AAAA;AAAA;",
6
- "names": []
7
- }
@@ -1,9 +0,0 @@
1
- import * as React from "react";
2
- import { ChatBubble, ChatBubbleWithSchema } from "./ChatBubble";
3
- import { BUBBLE_TYPES } from "./props";
4
- export {
5
- BUBBLE_TYPES,
6
- ChatBubble,
7
- ChatBubbleWithSchema
8
- };
9
- //# sourceMappingURL=index.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/bubble/index.ts"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { ChatBubble, ChatBubbleWithSchema } from './ChatBubble';\nexport { BUBBLE_TYPES } from './props';\n"],
5
- "mappings": "AAAA;ACAA;AACA;",
6
- "names": []
7
- }
@@ -1,40 +0,0 @@
1
- import * as React from "react";
2
- import propTypes from "prop-types";
3
- import { PropTypes } from "react-desc";
4
- import { noop } from "lodash";
5
- const BUBBLE_TYPES = {
6
- SENDER: "SENDER",
7
- RECIPIENT: "RECIPIENT",
8
- DELIMITER: "DELIMITER",
9
- SYSTEM: "SYSTEM"
10
- };
11
- const defaultBubbleProps = {
12
- dsId: void 0,
13
- type: BUBBLE_TYPES.SENDER,
14
- title: void 0,
15
- time: void 0,
16
- body: void 0,
17
- onClick: noop,
18
- errorMessage: void 0,
19
- helpMessage: void 0
20
- };
21
- const propsBubbles = {
22
- dsId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).description("Unique id for bubble").defaultValue(defaultBubbleProps.dsId),
23
- type: PropTypes.oneOf([BUBBLE_TYPES.RECIPIENT, BUBBLE_TYPES.SENDER]).isRequired.description("Define bubble type ").defaultValue(defaultBubbleProps.type),
24
- title: PropTypes.string.isRequired.description("Title of the bubble").defaultValue(defaultBubbleProps.title),
25
- time: PropTypes.string.isRequired.description("Time of the bubble").defaultValue(defaultBubbleProps.title),
26
- body: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).isRequired.description("Bubble content").defaultValue(defaultBubbleProps.body),
27
- onClick: PropTypes.string.description("Callback when the bubble is tapped").defaultValue(defaultBubbleProps.onClick),
28
- errorMessage: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).description("Error message to display at bottom of the bubble").defaultValue(defaultBubbleProps.onClick),
29
- helpMessage: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).description("Help message to display at bottom of the bubble").defaultValue(defaultBubbleProps.onClick)
30
- };
31
- const propsArrowBubble = {
32
- type: propTypes.oneOf([BUBBLE_TYPES.RECIPIENT, BUBBLE_TYPES.SENDER])
33
- };
34
- export {
35
- BUBBLE_TYPES,
36
- defaultBubbleProps,
37
- propsArrowBubble,
38
- propsBubbles
39
- };
40
- //# sourceMappingURL=props.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/bubble/props.ts"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import propTypes from 'prop-types';\nimport { PropTypes } from 'react-desc';\nimport { noop } from 'lodash';\nimport React from 'react';\n\n/**\n *\n * BUBBLE\n *\n */\nexport const BUBBLE_TYPES = {\n SENDER: 'SENDER',\n RECIPIENT: 'RECIPIENT',\n DELIMITER: 'DELIMITER',\n SYSTEM: 'SYSTEM',\n};\n\nexport type BubbleTypesKeys = keyof typeof BUBBLE_TYPES;\nexport type BubbleTypesValues = typeof BUBBLE_TYPES[BubbleTypesKeys];\n\nexport interface BubbleProps {\n dsId: string | number;\n type: BubbleTypesValues;\n title: string;\n body: string;\n time: string;\n errorMessage: string | React.ReactChild;\n helpMessage: string | React.ReactChild;\n onClick: (id: string | number) => void;\n}\n\nexport const defaultBubbleProps: BubbleProps = {\n dsId: undefined,\n type: BUBBLE_TYPES.SENDER,\n title: undefined,\n time: undefined,\n body: undefined,\n onClick: noop,\n errorMessage: undefined,\n helpMessage: undefined,\n};\n\nexport const propsBubbles = {\n dsId: PropTypes.oneOfType([PropTypes.string, PropTypes.number])\n .description('Unique id for bubble')\n .defaultValue(defaultBubbleProps.dsId),\n type: PropTypes.oneOf([BUBBLE_TYPES.RECIPIENT, BUBBLE_TYPES.SENDER])\n .isRequired.description('Define bubble type ')\n .defaultValue(defaultBubbleProps.type),\n title: PropTypes.string.isRequired.description('Title of the bubble').defaultValue(defaultBubbleProps.title),\n time: PropTypes.string.isRequired.description('Time of the bubble').defaultValue(defaultBubbleProps.title),\n body: PropTypes.oneOfType([PropTypes.string, PropTypes.element])\n .isRequired.description('Bubble content')\n .defaultValue(defaultBubbleProps.body),\n onClick: PropTypes.string.description('Callback when the bubble is tapped').defaultValue(defaultBubbleProps.onClick),\n errorMessage: PropTypes.oneOfType([PropTypes.string, PropTypes.element])\n .description('Error message to display at bottom of the bubble')\n .defaultValue(defaultBubbleProps.onClick),\n helpMessage: PropTypes.oneOfType([PropTypes.string, PropTypes.element])\n .description('Help message to display at bottom of the bubble')\n .defaultValue(defaultBubbleProps.onClick),\n};\n\n/**\n *\n * BUBBLE ARROW\n *\n */\nexport const propsArrowBubble = {\n type: propTypes.oneOf([BUBBLE_TYPES.RECIPIENT, BUBBLE_TYPES.SENDER]),\n};\n"],
5
- "mappings": "AAAA;ACAA;AACA;AACA;AAQO,MAAM,eAAe;AAAA,EAC1B,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,WAAW;AAAA,EACX,QAAQ;AAAA;AAiBH,MAAM,qBAAkC;AAAA,EAC7C,MAAM;AAAA,EACN,MAAM,aAAa;AAAA,EACnB,OAAO;AAAA,EACP,MAAM;AAAA,EACN,MAAM;AAAA,EACN,SAAS;AAAA,EACT,cAAc;AAAA,EACd,aAAa;AAAA;AAGR,MAAM,eAAe;AAAA,EAC1B,MAAM,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,SACpD,YAAY,wBACZ,aAAa,mBAAmB;AAAA,EACnC,MAAM,UAAU,MAAM,CAAC,aAAa,WAAW,aAAa,SACzD,WAAW,YAAY,uBACvB,aAAa,mBAAmB;AAAA,EACnC,OAAO,UAAU,OAAO,WAAW,YAAY,uBAAuB,aAAa,mBAAmB;AAAA,EACtG,MAAM,UAAU,OAAO,WAAW,YAAY,sBAAsB,aAAa,mBAAmB;AAAA,EACpG,MAAM,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,UACpD,WAAW,YAAY,kBACvB,aAAa,mBAAmB;AAAA,EACnC,SAAS,UAAU,OAAO,YAAY,sCAAsC,aAAa,mBAAmB;AAAA,EAC5G,cAAc,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,UAC5D,YAAY,oDACZ,aAAa,mBAAmB;AAAA,EACnC,aAAa,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,UAC3D,YAAY,mDACZ,aAAa,mBAAmB;AAAA;AAQ9B,MAAM,mBAAmB;AAAA,EAC9B,MAAM,UAAU,MAAM,CAAC,aAAa,WAAW,aAAa;AAAA;",
6
- "names": []
7
- }