@chatsdk-dev/elements 0.1.3 → 0.2.0

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 (334) hide show
  1. package/dist/{api-CIYPz72L.d.ts → api-BP4g92-0.d.ts} +1 -1
  2. package/dist/{api-CIYPz72L.d.ts.map → api-BP4g92-0.d.ts.map} +1 -1
  3. package/dist/approval-BODP4NVA.d.ts +5 -0
  4. package/dist/approval-BODP4NVA.d.ts.map +1 -0
  5. package/dist/avatar-CK5WGu6N.d.ts +5 -0
  6. package/dist/avatar-CK5WGu6N.d.ts.map +1 -0
  7. package/dist/{callbacks-PIvHXeEI.d.ts → callbacks-CQelTSwD.d.ts} +1 -1
  8. package/dist/{callbacks-PIvHXeEI.d.ts.map → callbacks-CQelTSwD.d.ts.map} +1 -1
  9. package/dist/chat-element-BbBl5CDM.d.ts +131 -0
  10. package/dist/chat-element-BbBl5CDM.d.ts.map +1 -0
  11. package/dist/chat-error-CST-PRdq.d.ts +15 -0
  12. package/dist/chat-error-CST-PRdq.d.ts.map +1 -0
  13. package/dist/{chatsdk-provider-BhlChLFd.d.ts → chatsdk-provider-t1GEgRPY.d.ts} +2 -2
  14. package/dist/chatsdk-provider-t1GEgRPY.d.ts.map +1 -0
  15. package/dist/{config-CqihvSgz.d.ts → config-BGIY5Hkg.d.ts} +20 -19
  16. package/dist/config-BGIY5Hkg.d.ts.map +1 -0
  17. package/dist/config-Wk7C7AJs.js +95 -0
  18. package/dist/config-Wk7C7AJs.js.map +1 -0
  19. package/dist/config-f4Go--5s.d.ts +194 -0
  20. package/dist/config-f4Go--5s.d.ts.map +1 -0
  21. package/dist/content-BoiPVwgM.d.ts +10 -0
  22. package/dist/content-BoiPVwgM.d.ts.map +1 -0
  23. package/dist/{context-aSaHw-ac.d.ts → context-D4dOffYT.d.ts} +1 -1
  24. package/dist/context-D4dOffYT.d.ts.map +1 -0
  25. package/dist/conversation-CtpcctHL.d.ts +8 -0
  26. package/dist/conversation-CtpcctHL.d.ts.map +1 -0
  27. package/dist/copy-BPB94kUd.d.ts +5 -0
  28. package/dist/copy-BPB94kUd.d.ts.map +1 -0
  29. package/dist/{element-provider-C_nBsftD.d.ts → element-provider-C95jVJV9.d.ts} +4 -5
  30. package/dist/element-provider-C95jVJV9.d.ts.map +1 -0
  31. package/dist/features/chat/chat-element.d.ts +2 -2
  32. package/dist/features/chat/chat-element.js +2 -2
  33. package/dist/features/chat/conversation/conversation.d.ts +2 -0
  34. package/dist/features/chat/conversation/conversation.js +73 -0
  35. package/dist/features/chat/conversation/conversation.js.map +1 -0
  36. package/dist/features/chat/conversation/message/activity.d.ts +12 -0
  37. package/dist/features/chat/conversation/message/activity.d.ts.map +1 -0
  38. package/dist/features/chat/conversation/message/activity.js +48 -0
  39. package/dist/features/chat/conversation/message/activity.js.map +1 -0
  40. package/dist/features/chat/conversation/message/approval.d.ts +2 -0
  41. package/dist/features/chat/conversation/message/approval.js +62 -0
  42. package/dist/features/chat/conversation/message/approval.js.map +1 -0
  43. package/dist/features/chat/conversation/message/avatar.d.ts +2 -0
  44. package/dist/features/chat/conversation/message/avatar.js +18 -0
  45. package/dist/features/chat/conversation/message/avatar.js.map +1 -0
  46. package/dist/features/chat/conversation/message/content.d.ts +2 -0
  47. package/dist/features/chat/conversation/message/content.js +11 -0
  48. package/dist/features/chat/conversation/message/content.js.map +1 -0
  49. package/dist/features/chat/conversation/message/copy.d.ts +2 -0
  50. package/dist/features/chat/conversation/message/copy.js +30 -0
  51. package/dist/features/chat/conversation/message/copy.js.map +1 -0
  52. package/dist/features/chat/conversation/message/feedback.d.ts +2 -0
  53. package/dist/features/chat/conversation/message/feedback.js +36 -0
  54. package/dist/features/chat/conversation/message/feedback.js.map +1 -0
  55. package/dist/features/chat/conversation/message/footer.d.ts +2 -0
  56. package/dist/features/chat/conversation/message/footer.js +20 -0
  57. package/dist/features/chat/conversation/message/footer.js.map +1 -0
  58. package/dist/features/chat/conversation/message/frame.d.ts +2 -0
  59. package/dist/features/chat/conversation/message/frame.js +18 -0
  60. package/dist/features/chat/conversation/message/frame.js.map +1 -0
  61. package/dist/features/chat/conversation/message/index.d.ts +2 -0
  62. package/dist/features/chat/conversation/message/index.js +2 -0
  63. package/dist/features/chat/conversation/message/index.parts.d.ts +22 -0
  64. package/dist/features/chat/conversation/message/index.parts.d.ts.map +1 -0
  65. package/dist/features/chat/conversation/message/index.parts.js +36 -0
  66. package/dist/features/chat/conversation/message/index.parts.js.map +1 -0
  67. package/dist/features/chat/conversation/message/message.d.ts +1 -0
  68. package/dist/features/chat/conversation/message/message.js +1 -0
  69. package/dist/features/chat/conversation/message/part.d.ts +2 -0
  70. package/dist/features/chat/conversation/message/part.js +35 -0
  71. package/dist/features/chat/conversation/message/part.js.map +1 -0
  72. package/dist/features/chat/conversation/message/provider.d.ts +2 -0
  73. package/dist/features/chat/conversation/message/provider.js +26 -0
  74. package/dist/features/chat/conversation/message/provider.js.map +1 -0
  75. package/dist/features/chat/conversation/message/reasoning.d.ts +2 -0
  76. package/dist/features/chat/conversation/message/reasoning.js +33 -0
  77. package/dist/features/chat/conversation/message/reasoning.js.map +1 -0
  78. package/dist/features/chat/conversation/message/sources.d.ts +2 -0
  79. package/dist/features/chat/conversation/message/sources.js +20 -0
  80. package/dist/features/chat/conversation/message/sources.js.map +1 -0
  81. package/dist/features/chat/conversation/message/text.d.ts +2 -0
  82. package/dist/features/chat/conversation/message/text.js +29 -0
  83. package/dist/features/chat/conversation/message/text.js.map +1 -0
  84. package/dist/features/chat/conversation/message/timestamp.d.ts +2 -0
  85. package/dist/features/chat/conversation/message/timestamp.js +36 -0
  86. package/dist/features/chat/conversation/message/timestamp.js.map +1 -0
  87. package/dist/features/chat/conversation/message/tool.d.ts +2 -0
  88. package/dist/features/chat/conversation/message/tool.js +56 -0
  89. package/dist/features/chat/conversation/message/tool.js.map +1 -0
  90. package/dist/features/chat/error/chat-error.d.ts +2 -0
  91. package/dist/features/chat/error/chat-error.js +46 -0
  92. package/dist/features/chat/error/chat-error.js.map +1 -0
  93. package/dist/features/chat/frame/frame.d.ts +2 -0
  94. package/dist/features/chat/frame/frame.js +52 -0
  95. package/dist/features/chat/frame/frame.js.map +1 -0
  96. package/dist/features/chat/frame/header-menu.d.ts +8 -0
  97. package/dist/features/chat/frame/header-menu.d.ts.map +1 -0
  98. package/dist/features/chat/{chat-header/chat-menu.js → frame/header-menu.js} +12 -13
  99. package/dist/features/chat/frame/header-menu.js.map +1 -0
  100. package/dist/features/chat/frame/header.d.ts +2 -0
  101. package/dist/features/chat/frame/header.js +50 -0
  102. package/dist/features/chat/frame/header.js.map +1 -0
  103. package/dist/features/chat/history/history-empty.d.ts +8 -0
  104. package/dist/features/chat/history/history-empty.d.ts.map +1 -0
  105. package/dist/features/chat/{chat-history/chat-history-empty.js → history/history-empty.js} +9 -8
  106. package/dist/features/chat/history/history-empty.js.map +1 -0
  107. package/dist/features/chat/history/history.d.ts +2 -0
  108. package/dist/features/chat/history/history.js +65 -0
  109. package/dist/features/chat/history/history.js.map +1 -0
  110. package/dist/features/chat/history/use-history.d.ts +2 -0
  111. package/dist/features/chat/history/use-history.js +30 -0
  112. package/dist/features/chat/history/use-history.js.map +1 -0
  113. package/dist/features/chat/index.d.ts +2 -2
  114. package/dist/features/chat/index.js +29 -2
  115. package/dist/features/chat/index.js.map +1 -0
  116. package/dist/features/chat/index.parts.d.ts +9 -0
  117. package/dist/features/chat/index.parts.js +24 -0
  118. package/dist/features/chat/index.parts.js.map +1 -0
  119. package/dist/features/chat/main/main.d.ts +2 -0
  120. package/dist/features/chat/main/main.js +40 -0
  121. package/dist/features/chat/main/main.js.map +1 -0
  122. package/dist/features/chat/main/prompt-input.d.ts +2 -0
  123. package/dist/features/chat/main/prompt-input.js +70 -0
  124. package/dist/features/chat/main/prompt-input.js.map +1 -0
  125. package/dist/features/chat/main/use-create-new-chat.d.ts +2 -0
  126. package/dist/features/chat/main/use-create-new-chat.js +24 -0
  127. package/dist/features/chat/main/use-create-new-chat.js.map +1 -0
  128. package/dist/features/chat/main/use-prompt-input.d.ts +2 -0
  129. package/dist/features/chat/main/use-prompt-input.js +27 -0
  130. package/dist/features/chat/main/use-prompt-input.js.map +1 -0
  131. package/dist/features/chat/provider/provider.d.ts +2 -0
  132. package/dist/features/chat/provider/provider.js +3 -0
  133. package/dist/features/chat/provider/use-ai-sdk-chat.d.ts +26 -0
  134. package/dist/features/chat/provider/use-ai-sdk-chat.d.ts.map +1 -0
  135. package/dist/features/chat/provider/use-ai-sdk-chat.js +3 -0
  136. package/dist/features/chat/provider/use-create-chat-store.d.ts +2 -0
  137. package/dist/features/chat/provider/use-create-chat-store.js +42 -0
  138. package/dist/features/chat/provider/use-create-chat-store.js.map +1 -0
  139. package/dist/features/chat/provider/use-visible-messages.d.ts +13 -0
  140. package/dist/features/chat/provider/use-visible-messages.d.ts.map +1 -0
  141. package/dist/features/chat/provider/use-visible-messages.js +23 -0
  142. package/dist/features/chat/provider/use-visible-messages.js.map +1 -0
  143. package/dist/features/chat/queries/query-keys.d.ts +3 -3
  144. package/dist/features/chat/queries/query-keys.d.ts.map +1 -1
  145. package/dist/features/chat/queries/query-keys.js +5 -5
  146. package/dist/features/chat/queries/query-keys.js.map +1 -1
  147. package/dist/features/chat/queries/use-create-conversation-mutation.d.ts +13 -14
  148. package/dist/features/chat/queries/use-create-conversation-mutation.d.ts.map +1 -1
  149. package/dist/features/chat/queries/use-create-conversation-mutation.js +4 -4
  150. package/dist/features/chat/queries/use-create-conversation-mutation.js.map +1 -1
  151. package/dist/features/chat/queries/use-get-agent-query.d.ts +2 -0
  152. package/dist/features/chat/queries/use-get-agent-query.js +2 -0
  153. package/dist/features/chat/queries/use-get-conversation-query.d.ts +2 -72
  154. package/dist/features/chat/queries/use-get-conversation-query.js +1 -1
  155. package/dist/features/chat/queries/use-list-conversations-query.d.ts +2 -33
  156. package/dist/features/chat/queries/use-list-conversations-query.js +23 -1
  157. package/dist/features/chat/queries/use-list-conversations-query.js.map +1 -0
  158. package/dist/features/chat/queries/use-record-feedback-mutation.d.ts +26 -0
  159. package/dist/features/chat/queries/use-record-feedback-mutation.d.ts.map +1 -0
  160. package/dist/features/chat/queries/use-record-feedback-mutation.js +2 -0
  161. package/dist/features/chat/utils.d.ts +7 -2
  162. package/dist/features/chat/utils.d.ts.map +1 -1
  163. package/dist/features/chat/utils.js +12 -1
  164. package/dist/features/chat/utils.js.map +1 -1
  165. package/dist/features/data-fetching/use-api-client.d.ts +1 -3
  166. package/dist/features/data-fetching/use-api-client.d.ts.map +1 -1
  167. package/dist/features/data-fetching/use-api-client.js +1 -1
  168. package/dist/features/element/chatsdk-provider.d.ts +1 -1
  169. package/dist/features/element/chatsdk-provider.js +5 -5
  170. package/dist/features/element/chatsdk-provider.js.map +1 -1
  171. package/dist/features/element/element-provider.d.ts +1 -1
  172. package/dist/features/element/element-provider.js +12 -8
  173. package/dist/features/element/element-provider.js.map +1 -1
  174. package/dist/features/element/store.d.ts +1 -1
  175. package/dist/features/element/store.js.map +1 -1
  176. package/dist/features/element/types/api.d.ts +1 -1
  177. package/dist/features/element/types/callbacks.d.ts +1 -1
  178. package/dist/features/element/types/config.d.ts +1 -1
  179. package/dist/features/element/types/context.d.ts +1 -1
  180. package/dist/features/element/types/locale.d.ts +1 -1
  181. package/dist/features/element/types/theme.d.ts +1 -1
  182. package/dist/features/element/types/translations.d.ts +1 -1
  183. package/dist/features/element/use-element-config.d.ts +14 -33
  184. package/dist/features/element/use-element-config.d.ts.map +1 -1
  185. package/dist/features/element/use-element-config.js +7 -15
  186. package/dist/features/element/use-element-config.js.map +1 -1
  187. package/dist/features/element/use-merge-global-config.d.ts +6 -7
  188. package/dist/features/element/use-merge-global-config.d.ts.map +1 -1
  189. package/dist/features/element/use-merge-global-config.js +2 -2
  190. package/dist/features/element/use-merge-global-config.js.map +1 -1
  191. package/dist/features/element/utils.d.ts +1 -1
  192. package/dist/features/element/utils.js.map +1 -1
  193. package/dist/features/errors/use-app-error-message.d.ts +2 -0
  194. package/dist/features/errors/use-app-error-message.js +25 -0
  195. package/dist/features/errors/use-app-error-message.js.map +1 -0
  196. package/dist/features/logging/logger-provider.d.ts +2 -0
  197. package/dist/features/logging/logger-provider.js +20 -0
  198. package/dist/features/logging/logger-provider.js.map +1 -0
  199. package/dist/feedback-hofC2MHC.d.ts +5 -0
  200. package/dist/feedback-hofC2MHC.d.ts.map +1 -0
  201. package/dist/footer-BdcVsDmw.d.ts +11 -0
  202. package/dist/footer-BdcVsDmw.d.ts.map +1 -0
  203. package/dist/frame-BCN71hMj.d.ts +17 -0
  204. package/dist/frame-BCN71hMj.d.ts.map +1 -0
  205. package/dist/frame-D_ce2ErP.d.ts +10 -0
  206. package/dist/frame-D_ce2ErP.d.ts.map +1 -0
  207. package/dist/header-BDGB3zKD.d.ts +8 -0
  208. package/dist/header-BDGB3zKD.d.ts.map +1 -0
  209. package/dist/history-DDUj4LMJ.d.ts +8 -0
  210. package/dist/history-DDUj4LMJ.d.ts.map +1 -0
  211. package/dist/i18n/config.d.ts +1 -1
  212. package/dist/i18n/config.js +1 -1
  213. package/dist/i18n/i18next.d.ts +1 -1377
  214. package/dist/i18n/i18next.d.ts.map +1 -1
  215. package/dist/i18n/i18next.js +1 -2
  216. package/dist/i18n/i18next.js.map +1 -1
  217. package/dist/i18n/utils.d.ts +1 -1
  218. package/dist/i18n/utils.d.ts.map +1 -1
  219. package/dist/i18n/utils.js.map +1 -1
  220. package/dist/index.d.ts +13 -5
  221. package/dist/index.js +12 -59
  222. package/dist/index.js.map +1 -1
  223. package/dist/{locale-W5Kyyi4X.d.ts → locale-v_zPGRhE.d.ts} +2 -2
  224. package/dist/locale-v_zPGRhE.d.ts.map +1 -0
  225. package/dist/logger-provider-whBIV3Gt.d.ts +16 -0
  226. package/dist/logger-provider-whBIV3Gt.d.ts.map +1 -0
  227. package/dist/main-D8VgMjmL.d.ts +15 -0
  228. package/dist/main-D8VgMjmL.d.ts.map +1 -0
  229. package/dist/part-C8ZA6iZn.d.ts +25 -0
  230. package/dist/part-C8ZA6iZn.d.ts.map +1 -0
  231. package/dist/prompt-input-bclKhGu3.d.ts +15 -0
  232. package/dist/prompt-input-bclKhGu3.d.ts.map +1 -0
  233. package/dist/provider-CkkKc2aq.d.ts +21 -0
  234. package/dist/provider-CkkKc2aq.d.ts.map +1 -0
  235. package/dist/provider-Cps0PPXa.js +383 -0
  236. package/dist/provider-Cps0PPXa.js.map +1 -0
  237. package/dist/reasoning-BRNu_n6T.d.ts +5 -0
  238. package/dist/reasoning-BRNu_n6T.d.ts.map +1 -0
  239. package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
  240. package/dist/sources-BXoSxNYc.d.ts +5 -0
  241. package/dist/sources-BXoSxNYc.d.ts.map +1 -0
  242. package/dist/{store-CGX9oRlE.d.ts → store-CkswgmIQ.d.ts} +8 -10
  243. package/dist/store-CkswgmIQ.d.ts.map +1 -0
  244. package/dist/styles.css +1677 -948
  245. package/dist/text-Cio_Hj_h.d.ts +5 -0
  246. package/dist/text-Cio_Hj_h.d.ts.map +1 -0
  247. package/dist/{theme-Cb-RBWbR.d.ts → theme-K7rbPHc1.d.ts} +1 -1
  248. package/dist/{theme-Cb-RBWbR.d.ts.map → theme-K7rbPHc1.d.ts.map} +1 -1
  249. package/dist/timestamp-CbU3bLa3.d.ts +5 -0
  250. package/dist/timestamp-CbU3bLa3.d.ts.map +1 -0
  251. package/dist/tool-DskTWxZb.d.ts +5 -0
  252. package/dist/tool-DskTWxZb.d.ts.map +1 -0
  253. package/dist/use-app-error-message-DAHQ4oR_.d.ts +12 -0
  254. package/dist/use-app-error-message-DAHQ4oR_.d.ts.map +1 -0
  255. package/dist/use-create-chat-store-Ccd5tvho.d.ts +26 -0
  256. package/dist/use-create-chat-store-Ccd5tvho.d.ts.map +1 -0
  257. package/dist/use-create-new-chat-H4kM3hPt.d.ts +7 -0
  258. package/dist/use-create-new-chat-H4kM3hPt.d.ts.map +1 -0
  259. package/dist/use-get-agent-query-hQ4uOjfL.d.ts +10 -0
  260. package/dist/use-get-agent-query-hQ4uOjfL.d.ts.map +1 -0
  261. package/dist/use-get-conversation-query-D5bRlewH.d.ts +73 -0
  262. package/dist/use-get-conversation-query-D5bRlewH.d.ts.map +1 -0
  263. package/dist/use-history-DH2KkVDP.d.ts +30 -0
  264. package/dist/use-history-DH2KkVDP.d.ts.map +1 -0
  265. package/dist/use-list-conversations-query-Ny-nP5cZ.d.ts +29 -0
  266. package/dist/use-list-conversations-query-Ny-nP5cZ.d.ts.map +1 -0
  267. package/package.json +27 -24
  268. package/dist/chat-element-CCsDDFif.js +0 -441
  269. package/dist/chat-element-CCsDDFif.js.map +0 -1
  270. package/dist/chat-element-CSpa62Te.d.ts +0 -53
  271. package/dist/chat-element-CSpa62Te.d.ts.map +0 -1
  272. package/dist/chatsdk-provider-BhlChLFd.d.ts.map +0 -1
  273. package/dist/common/utils.d.ts +0 -14
  274. package/dist/common/utils.d.ts.map +0 -1
  275. package/dist/common/utils.js +0 -26
  276. package/dist/common/utils.js.map +0 -1
  277. package/dist/components/info-card.d.ts +0 -23
  278. package/dist/components/info-card.d.ts.map +0 -1
  279. package/dist/components/info-card.js +0 -38
  280. package/dist/components/info-card.js.map +0 -1
  281. package/dist/config-BigIL6TQ.js +0 -29
  282. package/dist/config-BigIL6TQ.js.map +0 -1
  283. package/dist/config-CqihvSgz.d.ts.map +0 -1
  284. package/dist/config-D_jVTH_D.d.ts +0 -58
  285. package/dist/config-D_jVTH_D.d.ts.map +0 -1
  286. package/dist/context-aSaHw-ac.d.ts.map +0 -1
  287. package/dist/element-provider-C_nBsftD.d.ts.map +0 -1
  288. package/dist/features/chat/chat-card.d.ts +0 -7
  289. package/dist/features/chat/chat-card.d.ts.map +0 -1
  290. package/dist/features/chat/chat-card.js +0 -2
  291. package/dist/features/chat/chat-header/chat-header.d.ts +0 -12
  292. package/dist/features/chat/chat-header/chat-header.d.ts.map +0 -1
  293. package/dist/features/chat/chat-header/chat-header.js +0 -2
  294. package/dist/features/chat/chat-header/chat-menu.d.ts +0 -7
  295. package/dist/features/chat/chat-header/chat-menu.d.ts.map +0 -1
  296. package/dist/features/chat/chat-header/chat-menu.js.map +0 -1
  297. package/dist/features/chat/chat-history/chat-history-empty.d.ts +0 -7
  298. package/dist/features/chat/chat-history/chat-history-empty.d.ts.map +0 -1
  299. package/dist/features/chat/chat-history/chat-history-empty.js.map +0 -1
  300. package/dist/features/chat/chat-history/chat-history.d.ts +0 -7
  301. package/dist/features/chat/chat-history/chat-history.d.ts.map +0 -1
  302. package/dist/features/chat/chat-history/chat-history.js +0 -2
  303. package/dist/features/chat/chat-main/chat-main.d.ts +0 -10
  304. package/dist/features/chat/chat-main/chat-main.d.ts.map +0 -1
  305. package/dist/features/chat/chat-main/chat-main.js +0 -3
  306. package/dist/features/chat/chat-main/use-chat.d.ts +0 -23
  307. package/dist/features/chat/chat-main/use-chat.d.ts.map +0 -1
  308. package/dist/features/chat/chat-main/use-chat.js +0 -3
  309. package/dist/features/chat/chat-main/use-initial-messages.d.ts +0 -22
  310. package/dist/features/chat/chat-main/use-initial-messages.d.ts.map +0 -1
  311. package/dist/features/chat/chat-main/use-initial-messages.js +0 -2
  312. package/dist/features/chat/chat-prompt-input.d.ts +0 -24
  313. package/dist/features/chat/chat-prompt-input.d.ts.map +0 -1
  314. package/dist/features/chat/chat-prompt-input.js +0 -3
  315. package/dist/features/chat/chat.context.d.ts +0 -28
  316. package/dist/features/chat/chat.context.d.ts.map +0 -1
  317. package/dist/features/chat/chat.context.js +0 -10
  318. package/dist/features/chat/chat.context.js.map +0 -1
  319. package/dist/features/chat/queries/use-get-chat-query.d.ts +0 -13
  320. package/dist/features/chat/queries/use-get-chat-query.d.ts.map +0 -1
  321. package/dist/features/chat/queries/use-get-chat-query.js +0 -2
  322. package/dist/features/chat/queries/use-get-conversation-query.d.ts.map +0 -1
  323. package/dist/features/chat/queries/use-list-conversations-query.d.ts.map +0 -1
  324. package/dist/features/chat/store.d.ts +0 -15
  325. package/dist/features/chat/store.d.ts.map +0 -1
  326. package/dist/features/chat/store.js +0 -15
  327. package/dist/features/chat/store.js.map +0 -1
  328. package/dist/features/logger/logger.d.ts +0 -2
  329. package/dist/features/logger/logger.js +0 -15
  330. package/dist/features/logger/logger.js.map +0 -1
  331. package/dist/locale-W5Kyyi4X.d.ts.map +0 -1
  332. package/dist/logger-BvmhODdq.d.ts +0 -11
  333. package/dist/logger-BvmhODdq.d.ts.map +0 -1
  334. package/dist/store-CGX9oRlE.d.ts.map +0 -1
@@ -1,40 +1,21 @@
1
- import { t as Callbacks } from "../../callbacks-PIvHXeEI.js";
2
- import { n as LoggerInput } from "../../logger-BvmhODdq.js";
3
- import { t as APIOptions } from "../../api-CIYPz72L.js";
4
- import { t as Context } from "../../context-aSaHw-ac.js";
5
- import { n as LocaleConfig } from "../../locale-W5Kyyi4X.js";
6
- import { i as ThemeConfig } from "../../theme-Cb-RBWbR.js";
7
- import { i as TranslationsConfig, n as OptionsConfig, r as RootConfig, t as ElementConfig } from "../../config-CqihvSgz.js";
1
+ import { t as Callbacks } from "../../callbacks-CQelTSwD.js";
2
+ import { t as ElementConfig } from "../../config-BGIY5Hkg.js";
3
+ import { useMergeGlobalConfig } from "./use-merge-global-config.js";
8
4
 
9
5
  //#region src/features/element/use-element-config.d.ts
10
- type RequiredTAndOptionalU<T extends object, U extends object> = Required<T> & Partial<U>;
11
- type ComponentProps<T extends object, U extends object> = Omit<RequiredTAndOptionalU<T, U>, keyof RootConfig | keyof Callbacks<unknown> | "component">;
6
+ type MergeResult<T extends object, W> = T & {
7
+ config: ReturnType<typeof useMergeGlobalConfig>;
8
+ callbacks: Callbacks<W>;
9
+ };
12
10
  /**
13
- *
14
- * @param config.defaultProps hard coded props (and defaults)
15
- * @param config.props passed props
16
- * @param config.name name of the component
17
- * @returns props with config and callbacks
11
+ * @param elementConfig.props passed props (may include flat props, component, defaultProps, config, callbacks)
12
+ * @param elementConfig.name name of the component
13
+ * @returns merged component props with config and callbacks
18
14
  */
19
- declare function useMergeElementConfig<T extends object, U extends ElementConfig<T, W>, W = (U extends Callbacks<infer CallbackType> ? CallbackType : unknown)>(elementConfig: {
20
- props: U;
15
+ declare function useMergeElementConfig<T extends object, W = unknown>(elementConfig: {
16
+ props: ElementConfig<T, W>;
21
17
  name: string;
22
- }): Omit<Omit<U, "component" | "defaultProps">, "config" | "onloading" | "onsuccess" | "onerror"> & {
23
- config: {
24
- logger: Required<LoggerInput>;
25
- locale: LocaleConfig | undefined;
26
- context?: Context | undefined;
27
- theme?: Partial<ThemeConfig> | undefined;
28
- api?: APIOptions | undefined;
29
- translations?: TranslationsConfig | undefined;
30
- options?: OptionsConfig | undefined;
31
- };
32
- callbacks: {
33
- onloading: U["onloading"] | undefined;
34
- onsuccess: U["onsuccess"] | undefined;
35
- onerror: U["onerror"] | undefined;
36
- };
37
- };
18
+ }): MergeResult<T, W>;
38
19
  //#endregion
39
- export { ComponentProps, useMergeElementConfig };
20
+ export { useMergeElementConfig };
40
21
  //# sourceMappingURL=use-element-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-element-config.d.ts","names":[],"sources":["../../../src/features/element/use-element-config.ts"],"mappings":";;;;;;;;;KAKK,qBAAA,uCAA4D,QAAA,CAAS,CAAA,IACxE,OAAA,CAAQ,CAAA;AAAA,KAGE,cAAA,uCAAqD,IAAA,CAC/D,qBAAA,CAAsB,CAAA,EAAG,CAAA,SACnB,UAAA,SAAmB,SAAA;;;;;;AAVqC;;iBAoBhD,qBAAA,6BAEJ,aAAA,CAAc,CAAA,EAAG,CAAA,QACvB,CAAA,SAAU,SAAA,uBAAgC,YAAA,YAAA,CAC9C,aAAA;EAAiB,KAAA,EAAO,CAAA;EAAG,IAAA;AAAA,IAAc,IAAA,CAAA,IAAA,CAAA,CAAA;;qBAAA,WAAA"}
1
+ {"version":3,"file":"use-element-config.d.ts","names":[],"sources":["../../../src/features/element/use-element-config.ts"],"mappings":";;;;;KAIK,WAAA,wBAAmC,CAAA;EACtC,MAAA,EAAQ,UAAA,QAAkB,oBAAA;EAC1B,SAAA,EAAW,SAAA,CAAU,CAAA;AAAA;;;;;;iBAQP,qBAAA,gCAGd,aAAA;EACA,KAAA,EAAO,aAAA,CAAc,CAAA,EAAG,CAAA;EACxB,IAAA;AAAA,IACE,WAAA,CAAY,CAAA,EAAG,CAAA"}
@@ -1,26 +1,18 @@
1
1
  import { useMergeGlobalConfig } from "./use-merge-global-config.js";
2
2
  //#region src/features/element/use-element-config.ts
3
3
  /**
4
- *
5
- * @param config.defaultProps hard coded props (and defaults)
6
- * @param config.props passed props
7
- * @param config.name name of the component
8
- * @returns props with config and callbacks
4
+ * @param elementConfig.props passed props (may include flat props, component, defaultProps, config, callbacks)
5
+ * @param elementConfig.name name of the component
6
+ * @returns merged component props with config and callbacks
9
7
  */
10
8
  function useMergeElementConfig(elementConfig) {
11
9
  const { defaultProps: flatDefaultProps, component, ...flatProps } = elementConfig.props;
12
10
  const { defaultProps: componentDefaultProps, ...componentProps } = component || {};
13
- const _defaultProps = {
14
- ...flatDefaultProps,
15
- ...componentDefaultProps
16
- };
17
- const _props = {
18
- ...componentProps,
19
- ...flatProps
20
- };
21
11
  const { config, onloading, onsuccess, onerror, ...rest } = {
22
- ..._defaultProps,
23
- ..._props
12
+ ...flatDefaultProps,
13
+ ...componentDefaultProps,
14
+ ...flatProps,
15
+ ...componentProps
24
16
  };
25
17
  const mergedConfig = useMergeGlobalConfig(config);
26
18
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"use-element-config.js","names":[],"sources":["../../../src/features/element/use-element-config.ts"],"sourcesContent":["import type { Callbacks } from \"./types/callbacks\";\nimport type { ElementConfig, RootConfig } from \"./types/config\";\nimport { useMergeGlobalConfig } from \"./use-merge-global-config\";\n\n// All default props are required, but other props are optional\ntype RequiredTAndOptionalU<T extends object, U extends object> = Required<T> &\n Partial<U>;\n\n// Remove config, callbacks, and component from props for flat component props\nexport type ComponentProps<T extends object, U extends object> = Omit<\n RequiredTAndOptionalU<T, U>,\n keyof RootConfig | keyof Callbacks<unknown> | \"component\"\n>;\n\n/**\n *\n * @param config.defaultProps hard coded props (and defaults)\n * @param config.props passed props\n * @param config.name name of the component\n * @returns props with config and callbacks\n */\nexport function useMergeElementConfig<\n T extends object,\n U extends ElementConfig<T, W>,\n W = U extends Callbacks<infer CallbackType> ? CallbackType : unknown,\n>(elementConfig: { props: U; name: string }) {\n // separate defaultProps, component, and props\n const {\n defaultProps: flatDefaultProps,\n component,\n ...flatProps\n } = elementConfig.props;\n const { defaultProps: componentDefaultProps, ...componentProps } =\n component || {};\n // merge flat defaultProps and component defaultProps and flat props and component props\n // defaultProps has the lowest precedence, then component, then flat props (rest)\n const _defaultProps = { ...flatDefaultProps, ...componentDefaultProps };\n const _props = { ...componentProps, ...flatProps };\n\n // merge\n const { config, onloading, onsuccess, onerror, ...rest } = {\n ..._defaultProps,\n ..._props,\n };\n const mergedConfig = useMergeGlobalConfig(config);\n\n return {\n ...rest,\n config: mergedConfig,\n callbacks: { onloading, onsuccess, onerror },\n };\n}\n"],"mappings":";;;;;;;;;AAqBA,SAAgB,sBAId,eAA2C;CAE3C,MAAM,EACJ,cAAc,kBACd,WACA,GAAG,cACD,cAAc;CAClB,MAAM,EAAE,cAAc,uBAAuB,GAAG,mBAC9C,aAAa,EAAE;CAGjB,MAAM,gBAAgB;EAAE,GAAG;EAAkB,GAAG;EAAuB;CACvE,MAAM,SAAS;EAAE,GAAG;EAAgB,GAAG;EAAW;CAGlD,MAAM,EAAE,QAAQ,WAAW,WAAW,SAAS,GAAG,SAAS;EACzD,GAAG;EACH,GAAG;EACJ;CACD,MAAM,eAAe,qBAAqB,OAAO;AAEjD,QAAO;EACL,GAAG;EACH,QAAQ;EACR,WAAW;GAAE;GAAW;GAAW;GAAS;EAC7C"}
1
+ {"version":3,"file":"use-element-config.js","names":[],"sources":["../../../src/features/element/use-element-config.ts"],"sourcesContent":["import type { Callbacks } from \"./types/callbacks\";\nimport type { ElementConfig } from \"./types/config\";\nimport { useMergeGlobalConfig } from \"./use-merge-global-config\";\n\ntype MergeResult<T extends object, W> = T & {\n config: ReturnType<typeof useMergeGlobalConfig>;\n callbacks: Callbacks<W>;\n};\n\n/**\n * @param elementConfig.props passed props (may include flat props, component, defaultProps, config, callbacks)\n * @param elementConfig.name name of the component\n * @returns merged component props with config and callbacks\n */\nexport function useMergeElementConfig<\n T extends object,\n W = unknown,\n>(elementConfig: {\n props: ElementConfig<T, W>;\n name: string;\n}): MergeResult<T, W> {\n // separate defaultProps, component, and flat props\n const {\n defaultProps: flatDefaultProps,\n component,\n ...flatProps\n } = elementConfig.props;\n const { defaultProps: componentDefaultProps, ...componentProps } =\n component || {};\n\n // merge in precedence order: flatDefaultProps < componentDefaultProps < componentProps < flatProps\n const merged = {\n ...flatDefaultProps,\n ...componentDefaultProps,\n ...flatProps,\n ...componentProps,\n };\n\n const { config, onloading, onsuccess, onerror, ...rest } = merged;\n const mergedConfig = useMergeGlobalConfig(config);\n return {\n ...rest,\n config: mergedConfig,\n callbacks: { onloading, onsuccess, onerror },\n } as MergeResult<T, W>;\n}\n"],"mappings":";;;;;;;AAcA,SAAgB,sBAGd,eAGoB;CAEpB,MAAM,EACJ,cAAc,kBACd,WACA,GAAG,cACD,cAAc;CAClB,MAAM,EAAE,cAAc,uBAAuB,GAAG,mBAC9C,aAAa,CAAC;CAUhB,MAAM,EAAE,QAAQ,WAAW,WAAW,SAAS,GAAG,SAAS;EANzD,GAAG;EACH,GAAG;EACH,GAAG;EACH,GAAG;CAG2D;CAChE,MAAM,eAAe,qBAAqB,MAAM;CAChD,OAAO;EACL,GAAG;EACH,QAAQ;EACR,WAAW;GAAE;GAAW;GAAW;EAAQ;CAC7C;AACF"}
@@ -1,13 +1,12 @@
1
- import { n as LoggerInput } from "../../logger-BvmhODdq.js";
2
- import { t as APIOptions } from "../../api-CIYPz72L.js";
3
- import { t as Context } from "../../context-aSaHw-ac.js";
4
- import { n as LocaleConfig } from "../../locale-W5Kyyi4X.js";
5
- import { i as ThemeConfig } from "../../theme-Cb-RBWbR.js";
6
- import { i as TranslationsConfig, n as OptionsConfig, r as RootConfig } from "../../config-CqihvSgz.js";
1
+ import { t as APIOptions } from "../../api-BP4g92-0.js";
2
+ import { t as Context } from "../../context-D4dOffYT.js";
3
+ import { n as LocaleConfig } from "../../locale-v_zPGRhE.js";
4
+ import { i as ThemeConfig } from "../../theme-K7rbPHc1.js";
5
+ import { i as TranslationsConfig, n as OptionsConfig, r as RootConfig } from "../../config-BGIY5Hkg.js";
7
6
 
8
7
  //#region src/features/element/use-merge-global-config.d.ts
9
8
  declare function useMergeGlobalConfig(config?: RootConfig): {
10
- logger: Required<LoggerInput>;
9
+ logger: import("@chatsdk-dev/logging").Logger;
11
10
  locale: LocaleConfig | undefined;
12
11
  context?: Context | undefined;
13
12
  theme?: Partial<ThemeConfig> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"use-merge-global-config.d.ts","names":[],"sources":["../../../src/features/element/use-merge-global-config.ts"],"mappings":";;;;;;;;iBASgB,oBAAA,CAAqB,MAAA,GAAS,UAAA;mBAAU,WAAA"}
1
+ {"version":3,"file":"use-merge-global-config.d.ts","names":[],"sources":["../../../src/features/element/use-merge-global-config.ts"],"mappings":";;;;;;;iBAUgB,oBAAA,CAAqB,MAAA,GAAS,UAAA;;UAAU,YAAA"}
@@ -1,8 +1,8 @@
1
1
  import { mergeConfigs } from "./utils.js";
2
2
  import { useChatSDKStore } from "./store.js";
3
- import { getLogger } from "../logger/logger.js";
4
3
  import React from "react";
5
4
  import { useShallow } from "zustand/react/shallow";
5
+ import { resolveLogger } from "@chatsdk-dev/logging";
6
6
  //#region src/features/element/use-merge-global-config.ts
7
7
  function useMergeGlobalConfig(config) {
8
8
  const globalConfig = useChatSDKStore(useShallow((state) => ({
@@ -17,7 +17,7 @@ function useMergeGlobalConfig(config) {
17
17
  const withGlobalConfig = React.useMemo(() => {
18
18
  return mergeConfigs(globalConfig, config || {});
19
19
  }, [globalConfig, config]);
20
- const resolvedLogger = getLogger(withGlobalConfig.logger);
20
+ const resolvedLogger = resolveLogger(withGlobalConfig.logger);
21
21
  const resolvedLocale = withGlobalConfig.locale ? typeof withGlobalConfig.locale === "object" ? withGlobalConfig.locale : {
22
22
  language: withGlobalConfig.locale,
23
23
  formality: "formal"
@@ -1 +1 @@
1
- {"version":3,"file":"use-merge-global-config.js","names":[],"sources":["../../../src/features/element/use-merge-global-config.ts"],"sourcesContent":["import React from \"react\";\nimport { useShallow } from \"zustand/react/shallow\";\n\nimport { getLogger } from \"../logger/logger\";\nimport { useChatSDKStore } from \"./store\";\nimport { RootConfig } from \"./types/config\";\nimport { mergeConfigs } from \"./utils\";\n\n// Hook to merge and resolve global and local config\nexport function useMergeGlobalConfig(config?: RootConfig) {\n const globalConfig = useChatSDKStore(\n useShallow((state) => ({\n theme: state.theme,\n locale: state.locale,\n context: state.context,\n api: state.api,\n translations: state.translations,\n logger: state.logger,\n options: state.options,\n }))\n );\n\n // Merge global config with validated local config, while latter takes precedence\n const withGlobalConfig = React.useMemo(() => {\n return mergeConfigs(globalConfig, config || {});\n }, [globalConfig, config]);\n\n // resolve logger and locale\n const resolvedLogger = getLogger(withGlobalConfig.logger);\n const resolvedLocale = withGlobalConfig.locale\n ? typeof withGlobalConfig.locale === \"object\"\n ? withGlobalConfig.locale\n : { language: withGlobalConfig.locale, formality: \"formal\" as const }\n : undefined;\n\n return {\n ...withGlobalConfig,\n logger: resolvedLogger,\n locale: resolvedLocale,\n };\n}\n"],"mappings":";;;;;;AASA,SAAgB,qBAAqB,QAAqB;CACxD,MAAM,eAAe,gBACnB,YAAY,WAAW;EACrB,OAAO,MAAM;EACb,QAAQ,MAAM;EACd,SAAS,MAAM;EACf,KAAK,MAAM;EACX,cAAc,MAAM;EACpB,QAAQ,MAAM;EACd,SAAS,MAAM;EAChB,EAAE,CACJ;CAGD,MAAM,mBAAmB,MAAM,cAAc;AAC3C,SAAO,aAAa,cAAc,UAAU,EAAE,CAAC;IAC9C,CAAC,cAAc,OAAO,CAAC;CAG1B,MAAM,iBAAiB,UAAU,iBAAiB,OAAO;CACzD,MAAM,iBAAiB,iBAAiB,SACpC,OAAO,iBAAiB,WAAW,WACjC,iBAAiB,SACjB;EAAE,UAAU,iBAAiB;EAAQ,WAAW;EAAmB,GACrE,KAAA;AAEJ,QAAO;EACL,GAAG;EACH,QAAQ;EACR,QAAQ;EACT"}
1
+ {"version":3,"file":"use-merge-global-config.js","names":[],"sources":["../../../src/features/element/use-merge-global-config.ts"],"sourcesContent":["import React from \"react\";\nimport { useShallow } from \"zustand/react/shallow\";\n\nimport { resolveLogger } from \"@chatsdk-dev/logging\";\n\nimport { useChatSDKStore } from \"./store\";\nimport { RootConfig } from \"./types/config\";\nimport { mergeConfigs } from \"./utils\";\n\n// Hook to merge and resolve global and local config\nexport function useMergeGlobalConfig(config?: RootConfig) {\n const globalConfig = useChatSDKStore(\n useShallow((state) => ({\n theme: state.theme,\n locale: state.locale,\n context: state.context,\n api: state.api,\n translations: state.translations,\n logger: state.logger,\n options: state.options,\n })),\n );\n\n // Merge global config with validated local config, while latter takes precedence\n const withGlobalConfig = React.useMemo(() => {\n return mergeConfigs(globalConfig, config || {});\n }, [globalConfig, config]);\n\n // resolve logger (partial → complete, always safe to call) and locale\n const resolvedLogger = resolveLogger(withGlobalConfig.logger);\n const resolvedLocale = withGlobalConfig.locale\n ? typeof withGlobalConfig.locale === \"object\"\n ? withGlobalConfig.locale\n : { language: withGlobalConfig.locale, formality: \"formal\" as const }\n : undefined;\n\n return {\n ...withGlobalConfig,\n logger: resolvedLogger,\n locale: resolvedLocale,\n };\n}\n"],"mappings":";;;;;;AAUA,SAAgB,qBAAqB,QAAqB;CACxD,MAAM,eAAe,gBACnB,YAAY,WAAW;EACrB,OAAO,MAAM;EACb,QAAQ,MAAM;EACd,SAAS,MAAM;EACf,KAAK,MAAM;EACX,cAAc,MAAM;EACpB,QAAQ,MAAM;EACd,SAAS,MAAM;CACjB,EAAE,CACJ;CAGA,MAAM,mBAAmB,MAAM,cAAc;EAC3C,OAAO,aAAa,cAAc,UAAU,CAAC,CAAC;CAChD,GAAG,CAAC,cAAc,MAAM,CAAC;CAGzB,MAAM,iBAAiB,cAAc,iBAAiB,MAAM;CAC5D,MAAM,iBAAiB,iBAAiB,SACpC,OAAO,iBAAiB,WAAW,WACjC,iBAAiB,SACjB;EAAE,UAAU,iBAAiB;EAAQ,WAAW;CAAkB,IACpE,KAAA;CAEJ,OAAO;EACL,GAAG;EACH,QAAQ;EACR,QAAQ;CACV;AACF"}
@@ -1,2 +1,2 @@
1
- import { a as DeepPartial, o as deepMerge, s as mergeConfigs } from "../../config-CqihvSgz.js";
1
+ import { a as DeepPartial, o as deepMerge, s as mergeConfigs } from "../../config-BGIY5Hkg.js";
2
2
  export { DeepPartial, deepMerge, mergeConfigs };
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","names":[],"sources":["../../../src/features/element/utils.ts"],"sourcesContent":["import { RootConfig } from \"./types/config\";\nimport { Context } from \"./types/context\";\nimport { ThemeConfig } from \"./types/theme\";\nimport { TranslationsConfig } from \"./types/translations\";\n\n// helpers\nexport type DeepPartial<T> = {\n [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];\n};\n\nfunction isObject(item: unknown): item is Record<string, unknown> {\n return item !== null && typeof item === \"object\" && !Array.isArray(item);\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function deepMerge<T extends Record<string, any>>(\n target: T,\n ...sources: DeepPartial<T>[]\n): T {\n const result = { ...target };\n\n for (const source of sources) {\n if (!isObject(source)) {\n continue;\n }\n\n for (const key in source) {\n const targetValue = result[key];\n const sourceValue = source[key];\n\n if (Array.isArray(targetValue) && Array.isArray(sourceValue)) {\n result[key] = sourceValue as T[Extract<keyof T, string>];\n } else if (isObject(targetValue) && isObject(sourceValue)) {\n result[key] = deepMerge(\n targetValue,\n sourceValue as DeepPartial<typeof targetValue>,\n );\n // Notice: We set if sourceValue is not undefined OR null (nullish)\n } else if (sourceValue !== undefined && sourceValue !== null) {\n result[key] = sourceValue as T[Extract<keyof T, string>];\n }\n }\n }\n\n return result;\n}\n\n//utils\nfunction mergeFont(\n ...fontConfigurations: Partial<ThemeConfig[\"font\"]>[]\n): ThemeConfig[\"font\"] | undefined {\n if (!fontConfigurations) {\n return undefined;\n }\n\n // TODO: allow changing font-heading and font-body and both variants\n return Object.entries(fontConfigurations).reduce(\n (acc, [key, value]) => {\n return { ...acc, [key]: value };\n },\n {} as ThemeConfig[\"font\"],\n );\n}\n\nfunction mergeTheme(\n ...args: (RootConfig[\"theme\"] | null)[]\n): RootConfig[\"theme\"] {\n const mergedTheme = args.reduce(\n (acc: NonNullable<RootConfig[\"theme\"]>, curr) => {\n if (!curr) return acc;\n\n const { font: accFont, components: accComponents } = acc || {};\n // remove undefined or null values from curr\n const currFiltered =\n (Object.fromEntries(\n Object.entries(curr).filter(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n ([_, value]) => value !== undefined && value !== null,\n ),\n ) as RootConfig[\"theme\"]) || {};\n const {\n font: currFont,\n components: currComponents,\n ...currRest\n } = currFiltered || {};\n\n // Merge font\n const font = mergeFont(accFont || {}, currFont || {});\n\n // Merge components two levels deep\n acc.components =\n accComponents || currComponents\n ? Object.keys({ ...accComponents, ...currComponents }).reduce(\n (merged, key) => ({\n ...merged,\n [key]:\n typeof accComponents?.[key] === \"object\" &&\n typeof currComponents?.[key] === \"object\"\n ? {\n ...(accComponents?.[key] || {}),\n ...(currComponents?.[key] || {}),\n }\n : (currComponents?.[key] ?? accComponents?.[key]),\n }),\n {},\n )\n : undefined;\n\n return { ...acc, ...currRest, font } as NonNullable<RootConfig[\"theme\"]>;\n },\n {},\n );\n\n return mergedTheme;\n}\n\nfunction mergeContext(\n globalContext: Context | undefined,\n context: Context | undefined,\n) {\n return { ...deepMerge(globalContext || {}, context || {}) };\n}\n\nfunction mergeLocale(\n globalLocale: RootConfig[\"locale\"] | undefined,\n locale: RootConfig[\"locale\"] | undefined,\n) {\n return locale || globalLocale;\n}\n\n// Shallow merge, latter overrides former\nfunction mergeTranslations(\n ...args: (TranslationsConfig | undefined)[]\n): TranslationsConfig | undefined {\n const filteredArgs = args.filter((arg) => arg !== undefined);\n return deepMerge({} as TranslationsConfig, ...filteredArgs);\n}\n\nfunction mergeApi(\n globalApi: RootConfig[\"api\"] | undefined,\n api: RootConfig[\"api\"] | undefined,\n) {\n return { ...globalApi, ...api };\n}\n\nfunction mergeLogger(\n globalLogger: RootConfig[\"logger\"] | undefined,\n logger: RootConfig[\"logger\"] | undefined,\n) {\n return logger || globalLogger;\n}\n\n// Last argument has priority\nexport function mergeConfigs(\n ...args: Partial<RootConfig>[]\n): Partial<RootConfig> {\n return args.reduce((acc, curr) => {\n return {\n ...acc,\n ...curr,\n theme: mergeTheme(acc.theme, curr.theme),\n context: mergeContext(acc.context, curr.context),\n locale: mergeLocale(acc.locale, curr.locale),\n translations: mergeTranslations(acc.translations, curr.translations),\n api: mergeApi(acc.api, curr.api),\n logger: mergeLogger(acc.logger, curr.logger),\n } as Partial<RootConfig>;\n }, {} as Partial<RootConfig>);\n}\n"],"mappings":";AAUA,SAAS,SAAS,MAAgD;AAChE,QAAO,SAAS,QAAQ,OAAO,SAAS,YAAY,CAAC,MAAM,QAAQ,KAAK;;AAI1E,SAAgB,UACd,QACA,GAAG,SACA;CACH,MAAM,SAAS,EAAE,GAAG,QAAQ;AAE5B,MAAK,MAAM,UAAU,SAAS;AAC5B,MAAI,CAAC,SAAS,OAAO,CACnB;AAGF,OAAK,MAAM,OAAO,QAAQ;GACxB,MAAM,cAAc,OAAO;GAC3B,MAAM,cAAc,OAAO;AAE3B,OAAI,MAAM,QAAQ,YAAY,IAAI,MAAM,QAAQ,YAAY,CAC1D,QAAO,OAAO;YACL,SAAS,YAAY,IAAI,SAAS,YAAY,CACvD,QAAO,OAAO,UACZ,aACA,YACD;YAEQ,gBAAgB,KAAA,KAAa,gBAAgB,KACtD,QAAO,OAAO;;;AAKpB,QAAO;;AAIT,SAAS,UACP,GAAG,oBAC8B;AACjC,KAAI,CAAC,mBACH;AAIF,QAAO,OAAO,QAAQ,mBAAmB,CAAC,QACvC,KAAK,CAAC,KAAK,WAAW;AACrB,SAAO;GAAE,GAAG;IAAM,MAAM;GAAO;IAEjC,EAAE,CACH;;AAGH,SAAS,WACP,GAAG,MACkB;AA+CrB,QA9CoB,KAAK,QACtB,KAAuC,SAAS;AAC/C,MAAI,CAAC,KAAM,QAAO;EAElB,MAAM,EAAE,MAAM,SAAS,YAAY,kBAAkB,OAAO,EAAE;EAS9D,MAAM,EACJ,MAAM,UACN,YAAY,gBACZ,GAAG,aATF,OAAO,YACN,OAAO,QAAQ,KAAK,CAAC,QAElB,CAAC,GAAG,WAAW,UAAU,KAAA,KAAa,UAAU,KAClD,CACF,IAA4B,EAAE;EAQjC,MAAM,OAAO,UAAU,WAAW,EAAE,EAAE,YAAY,EAAE,CAAC;AAGrD,MAAI,aACF,iBAAiB,iBACb,OAAO,KAAK;GAAE,GAAG;GAAe,GAAG;GAAgB,CAAC,CAAC,QAClD,QAAQ,SAAS;GAChB,GAAG;IACF,MACC,OAAO,gBAAgB,SAAS,YAChC,OAAO,iBAAiB,SAAS,WAC7B;IACE,GAAI,gBAAgB,QAAQ,EAAE;IAC9B,GAAI,iBAAiB,QAAQ,EAAE;IAChC,GACA,iBAAiB,QAAQ,gBAAgB;GACjD,GACD,EAAE,CACH,GACD,KAAA;AAEN,SAAO;GAAE,GAAG;GAAK,GAAG;GAAU;GAAM;IAEtC,EAAE,CACH;;AAKH,SAAS,aACP,eACA,SACA;AACA,QAAO,EAAE,GAAG,UAAU,iBAAiB,EAAE,EAAE,WAAW,EAAE,CAAC,EAAE;;AAG7D,SAAS,YACP,cACA,QACA;AACA,QAAO,UAAU;;AAInB,SAAS,kBACP,GAAG,MAC6B;AAEhC,QAAO,UAAU,EAAE,EAAwB,GADtB,KAAK,QAAQ,QAAQ,QAAQ,KAAA,EAAU,CACD;;AAG7D,SAAS,SACP,WACA,KACA;AACA,QAAO;EAAE,GAAG;EAAW,GAAG;EAAK;;AAGjC,SAAS,YACP,cACA,QACA;AACA,QAAO,UAAU;;AAInB,SAAgB,aACd,GAAG,MACkB;AACrB,QAAO,KAAK,QAAQ,KAAK,SAAS;AAChC,SAAO;GACL,GAAG;GACH,GAAG;GACH,OAAO,WAAW,IAAI,OAAO,KAAK,MAAM;GACxC,SAAS,aAAa,IAAI,SAAS,KAAK,QAAQ;GAChD,QAAQ,YAAY,IAAI,QAAQ,KAAK,OAAO;GAC5C,cAAc,kBAAkB,IAAI,cAAc,KAAK,aAAa;GACpE,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI;GAChC,QAAQ,YAAY,IAAI,QAAQ,KAAK,OAAO;GAC7C;IACA,EAAE,CAAwB"}
1
+ {"version":3,"file":"utils.js","names":[],"sources":["../../../src/features/element/utils.ts"],"sourcesContent":["import { RootConfig } from \"./types/config\";\nimport { Context } from \"./types/context\";\nimport { ThemeConfig } from \"./types/theme\";\nimport { TranslationsConfig } from \"./types/translations\";\n\n// helpers\nexport type DeepPartial<T> = {\n [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];\n};\n\nfunction isObject(item: unknown): item is Record<string, unknown> {\n return item !== null && typeof item === \"object\" && !Array.isArray(item);\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function deepMerge<T extends Record<string, any>>(\n target: T,\n ...sources: DeepPartial<T>[]\n): T {\n const result = { ...target };\n\n for (const source of sources) {\n if (!isObject(source)) {\n continue;\n }\n\n for (const key in source) {\n const targetValue = result[key];\n const sourceValue = source[key];\n\n if (Array.isArray(targetValue) && Array.isArray(sourceValue)) {\n result[key] = sourceValue as T[Extract<keyof T, string>];\n } else if (isObject(targetValue) && isObject(sourceValue)) {\n result[key] = deepMerge(\n targetValue,\n sourceValue as DeepPartial<typeof targetValue>,\n );\n // Notice: We set if sourceValue is not undefined OR null (nullish)\n } else if (sourceValue !== undefined && sourceValue !== null) {\n result[key] = sourceValue as T[Extract<keyof T, string>];\n }\n }\n }\n\n return result;\n}\n\n//utils\nfunction mergeFont(\n ...fontConfigurations: Partial<ThemeConfig[\"font\"]>[]\n): ThemeConfig[\"font\"] | undefined {\n if (!fontConfigurations) {\n return undefined;\n }\n\n // TODO: allow changing font-heading and font-body and both variants\n return Object.entries(fontConfigurations).reduce(\n (acc, [key, value]) => {\n return { ...acc, [key]: value };\n },\n {} as ThemeConfig[\"font\"],\n );\n}\n\nfunction mergeTheme(\n ...args: (RootConfig[\"theme\"] | null)[]\n): RootConfig[\"theme\"] {\n const mergedTheme = args.reduce(\n (acc: NonNullable<RootConfig[\"theme\"]>, curr) => {\n if (!curr) return acc;\n\n const { font: accFont, components: accComponents } = acc || {};\n // remove undefined or null values from curr\n const currFiltered =\n (Object.fromEntries(\n Object.entries(curr).filter(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n ([_, value]) => value !== undefined && value !== null,\n ),\n ) as RootConfig[\"theme\"]) || {};\n const {\n font: currFont,\n components: currComponents,\n ...currRest\n } = currFiltered || {};\n\n // Merge font\n const font = mergeFont(accFont || {}, currFont || {});\n\n // Merge components two levels deep\n acc.components =\n accComponents || currComponents\n ? Object.keys({ ...accComponents, ...currComponents }).reduce(\n (merged, key) => ({\n ...merged,\n [key]:\n typeof accComponents?.[key] === \"object\" &&\n typeof currComponents?.[key] === \"object\"\n ? {\n ...(accComponents?.[key] || {}),\n ...(currComponents?.[key] || {}),\n }\n : (currComponents?.[key] ?? accComponents?.[key]),\n }),\n {},\n )\n : undefined;\n\n return { ...acc, ...currRest, font } as NonNullable<RootConfig[\"theme\"]>;\n },\n {},\n );\n\n return mergedTheme;\n}\n\nfunction mergeContext(\n globalContext: Context | undefined,\n context: Context | undefined,\n) {\n return { ...deepMerge(globalContext || {}, context || {}) };\n}\n\nfunction mergeLocale(\n globalLocale: RootConfig[\"locale\"] | undefined,\n locale: RootConfig[\"locale\"] | undefined,\n) {\n return locale || globalLocale;\n}\n\n// Shallow merge, latter overrides former\nfunction mergeTranslations(\n ...args: (TranslationsConfig | undefined)[]\n): TranslationsConfig | undefined {\n const filteredArgs = args.filter((arg) => arg !== undefined);\n return deepMerge({} as TranslationsConfig, ...filteredArgs);\n}\n\nfunction mergeApi(\n globalApi: RootConfig[\"api\"] | undefined,\n api: RootConfig[\"api\"] | undefined,\n) {\n return { ...globalApi, ...api };\n}\n\nfunction mergeLogger(\n globalLogger: RootConfig[\"logger\"] | undefined,\n logger: RootConfig[\"logger\"] | undefined,\n) {\n return logger || globalLogger;\n}\n\n// Last argument has priority\nexport function mergeConfigs(\n ...args: Partial<RootConfig>[]\n): Partial<RootConfig> {\n return args.reduce((acc, curr) => {\n return {\n ...acc,\n ...curr,\n theme: mergeTheme(acc.theme, curr.theme),\n context: mergeContext(acc.context, curr.context),\n locale: mergeLocale(acc.locale, curr.locale),\n translations: mergeTranslations(acc.translations, curr.translations),\n api: mergeApi(acc.api, curr.api),\n logger: mergeLogger(acc.logger, curr.logger),\n } as Partial<RootConfig>;\n }, {} as Partial<RootConfig>);\n}\n"],"mappings":";AAUA,SAAS,SAAS,MAAgD;CAChE,OAAO,SAAS,QAAQ,OAAO,SAAS,YAAY,CAAC,MAAM,QAAQ,IAAI;AACzE;AAGA,SAAgB,UACd,QACA,GAAG,SACA;CACH,MAAM,SAAS,EAAE,GAAG,OAAO;CAE3B,KAAK,MAAM,UAAU,SAAS;EAC5B,IAAI,CAAC,SAAS,MAAM,GAClB;EAGF,KAAK,MAAM,OAAO,QAAQ;GACxB,MAAM,cAAc,OAAO;GAC3B,MAAM,cAAc,OAAO;GAE3B,IAAI,MAAM,QAAQ,WAAW,KAAK,MAAM,QAAQ,WAAW,GACzD,OAAO,OAAO;QACT,IAAI,SAAS,WAAW,KAAK,SAAS,WAAW,GACtD,OAAO,OAAO,UACZ,aACA,WACF;QAEK,IAAI,gBAAgB,KAAA,KAAa,gBAAgB,MACtD,OAAO,OAAO;EAElB;CACF;CAEA,OAAO;AACT;AAGA,SAAS,UACP,GAAG,oBAC8B;CACjC,IAAI,CAAC,oBACH;CAIF,OAAO,OAAO,QAAQ,kBAAkB,CAAC,CAAC,QACvC,KAAK,CAAC,KAAK,WAAW;EACrB,OAAO;GAAE,GAAG;IAAM,MAAM;EAAM;CAChC,GACA,CAAC,CACH;AACF;AAEA,SAAS,WACP,GAAG,MACkB;CA+CrB,OA9CoB,KAAK,QACtB,KAAuC,SAAS;EAC/C,IAAI,CAAC,MAAM,OAAO;EAElB,MAAM,EAAE,MAAM,SAAS,YAAY,kBAAkB,OAAO,CAAC;EAS7D,MAAM,EACJ,MAAM,UACN,YAAY,gBACZ,GAAG,aATF,OAAO,YACN,OAAO,QAAQ,IAAI,CAAC,CAAC,QAElB,CAAC,GAAG,WAAW,UAAU,KAAA,KAAa,UAAU,IACnD,CACF,KAA6B,CAAC;EAQhC,MAAM,OAAO,UAAU,WAAW,CAAC,GAAG,YAAY,CAAC,CAAC;EAGpD,IAAI,aACF,iBAAiB,iBACb,OAAO,KAAK;GAAE,GAAG;GAAe,GAAG;EAAe,CAAC,CAAC,CAAC,QAClD,QAAQ,SAAS;GAChB,GAAG;IACF,MACC,OAAO,gBAAgB,SAAS,YAChC,OAAO,iBAAiB,SAAS,WAC7B;IACE,GAAI,gBAAgB,QAAQ,CAAC;IAC7B,GAAI,iBAAiB,QAAQ,CAAC;GAChC,IACC,iBAAiB,QAAQ,gBAAgB;EAClD,IACA,CAAC,CACH,IACA,KAAA;EAEN,OAAO;GAAE,GAAG;GAAK,GAAG;GAAU;EAAK;CACrC,GACA,CAAC,CAGc;AACnB;AAEA,SAAS,aACP,eACA,SACA;CACA,OAAO,EAAE,GAAG,UAAU,iBAAiB,CAAC,GAAG,WAAW,CAAC,CAAC,EAAE;AAC5D;AAEA,SAAS,YACP,cACA,QACA;CACA,OAAO,UAAU;AACnB;AAGA,SAAS,kBACP,GAAG,MAC6B;CAEhC,OAAO,UAAU,CAAC,GAAyB,GADtB,KAAK,QAAQ,QAAQ,QAAQ,KAAA,CACO,CAAC;AAC5D;AAEA,SAAS,SACP,WACA,KACA;CACA,OAAO;EAAE,GAAG;EAAW,GAAG;CAAI;AAChC;AAEA,SAAS,YACP,cACA,QACA;CACA,OAAO,UAAU;AACnB;AAGA,SAAgB,aACd,GAAG,MACkB;CACrB,OAAO,KAAK,QAAQ,KAAK,SAAS;EAChC,OAAO;GACL,GAAG;GACH,GAAG;GACH,OAAO,WAAW,IAAI,OAAO,KAAK,KAAK;GACvC,SAAS,aAAa,IAAI,SAAS,KAAK,OAAO;GAC/C,QAAQ,YAAY,IAAI,QAAQ,KAAK,MAAM;GAC3C,cAAc,kBAAkB,IAAI,cAAc,KAAK,YAAY;GACnE,KAAK,SAAS,IAAI,KAAK,KAAK,GAAG;GAC/B,QAAQ,YAAY,IAAI,QAAQ,KAAK,MAAM;EAC7C;CACF,GAAG,CAAC,CAAwB;AAC9B"}
@@ -0,0 +1,2 @@
1
+ import { t as useAppErrorMessage } from "../../use-app-error-message-DAHQ4oR_.js";
2
+ export { useAppErrorMessage };
@@ -0,0 +1,25 @@
1
+ "use client";
2
+ import { useTranslation } from "react-i18next";
3
+ import { parseAppError } from "@chatsdk-dev/agent";
4
+ //#region src/features/errors/use-app-error-message.ts
5
+ /**
6
+ * Maps any caught/stream error to localized end-user copy, keyed on the
7
+ * reconstructed `_tag` with public payload fields available for interpolation
8
+ * (e.g. `{{retryAfterMs}}`). Falls back to `errors.unknown`. Developer-facing
9
+ * fields (why/fix/link) are never rendered here — consumers read the structured
10
+ * `AppError` for those.
11
+ */
12
+ function useAppErrorMessage() {
13
+ const { t } = useTranslation();
14
+ return (error) => {
15
+ const appError = parseAppError(error);
16
+ return t(`errors.${appError._tag}`, {
17
+ ...appError,
18
+ defaultValue: t("errors.unknown")
19
+ });
20
+ };
21
+ }
22
+ //#endregion
23
+ export { useAppErrorMessage };
24
+
25
+ //# sourceMappingURL=use-app-error-message.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-app-error-message.js","names":[],"sources":["../../../src/features/errors/use-app-error-message.ts"],"sourcesContent":["\"use client\";\n\nimport { useTranslation } from \"react-i18next\";\n\nimport { parseAppError, type AppError } from \"@chatsdk-dev/agent\";\n\n/**\n * Maps any caught/stream error to localized end-user copy, keyed on the\n * reconstructed `_tag` with public payload fields available for interpolation\n * (e.g. `{{retryAfterMs}}`). Falls back to `errors.unknown`. Developer-facing\n * fields (why/fix/link) are never rendered here — consumers read the structured\n * `AppError` for those.\n */\nexport function useAppErrorMessage() {\n const { t } = useTranslation();\n return (error: unknown): string => {\n const appError: AppError = parseAppError(error);\n return t(`errors.${appError._tag}`, {\n ...(appError as unknown as Record<string, unknown>),\n defaultValue: t(\"errors.unknown\"),\n });\n };\n}\n"],"mappings":";;;;;;;;;;;AAaA,SAAgB,qBAAqB;CACnC,MAAM,EAAE,MAAM,eAAe;CAC7B,QAAQ,UAA2B;EACjC,MAAM,WAAqB,cAAc,KAAK;EAC9C,OAAO,EAAE,UAAU,SAAS,QAAQ;GAClC,GAAI;GACJ,cAAc,EAAE,gBAAgB;EAClC,CAAC;CACH;AACF"}
@@ -0,0 +1,2 @@
1
+ import { n as useLogger, t as LoggingProvider } from "../../logger-provider-whBIV3Gt.js";
2
+ export { LoggingProvider, useLogger };
@@ -0,0 +1,20 @@
1
+ "use client";
2
+ import { createContext, use } from "react";
3
+ import { jsx } from "react/jsx-runtime";
4
+ import { noopLogger } from "@chatsdk-dev/logging";
5
+ //#region src/features/logging/logger-provider.tsx
6
+ const LoggerContext = createContext(noopLogger);
7
+ function LoggingProvider({ logger, children }) {
8
+ return /* @__PURE__ */ jsx(LoggerContext.Provider, {
9
+ value: logger ?? noopLogger,
10
+ children
11
+ });
12
+ }
13
+ /** The host-injected logger, or a no-op when there's no provider above. */
14
+ function useLogger() {
15
+ return use(LoggerContext);
16
+ }
17
+ //#endregion
18
+ export { LoggingProvider, useLogger };
19
+
20
+ //# sourceMappingURL=logger-provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger-provider.js","names":[],"sources":["../../../src/features/logging/logger-provider.tsx"],"sourcesContent":["// React injection seam for the structured Logger: the host provides one via\n// `config.logger`, the provider puts it in context, components + the agent read\n// it with useLogger() (noopLogger when absent).\n\n\"use client\";\n\nimport { createContext, use, type ReactNode } from \"react\";\n\nimport { noopLogger, type Logger } from \"@chatsdk-dev/logging\";\n\nconst LoggerContext = createContext<Logger>(noopLogger);\n\nexport function LoggingProvider({\n logger,\n children,\n}: {\n logger?: Logger;\n children: ReactNode;\n}) {\n return (\n <LoggerContext.Provider value={logger ?? noopLogger}>\n {children}\n </LoggerContext.Provider>\n );\n}\n\n/** The host-injected logger, or a no-op when there's no provider above. */\nexport function useLogger(): Logger {\n return use(LoggerContext);\n}\n"],"mappings":";;;;;AAUA,MAAM,gBAAgB,cAAsB,UAAU;AAEtD,SAAgB,gBAAgB,EAC9B,QACA,YAIC;CACD,OACE,oBAAC,cAAc,UAAf;EAAwB,OAAO,UAAU;EACtC;CACqB,CAAA;AAE5B;;AAGA,SAAgB,YAAoB;CAClC,OAAO,IAAI,aAAa;AAC1B"}
@@ -0,0 +1,5 @@
1
+ //#region src/features/chat/conversation/message/feedback.d.ts
2
+ declare function MessageFeedback(): import("react").JSX.Element;
3
+ //#endregion
4
+ export { MessageFeedback as t };
5
+ //# sourceMappingURL=feedback-hofC2MHC.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feedback-hofC2MHC.d.ts","names":[],"sources":["../src/features/chat/conversation/message/feedback.tsx"],"mappings":";iBAWgB,eAAA,oBAAe,GAAA,CAAA,OAAA"}
@@ -0,0 +1,11 @@
1
+ //#region src/features/chat/conversation/message/footer.d.ts
2
+ declare function MessageFooter({
3
+ children,
4
+ className
5
+ }: {
6
+ children: React.ReactNode;
7
+ className?: string;
8
+ }): import("react").JSX.Element | null;
9
+ //#endregion
10
+ export { MessageFooter as t };
11
+ //# sourceMappingURL=footer-BdcVsDmw.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"footer-BdcVsDmw.d.ts","names":[],"sources":["../src/features/chat/conversation/message/footer.tsx"],"mappings":";iBASgB,aAAA;EACd,QAAA;EACA;AAAA;EAEA,QAAA,EAAU,KAAA,CAAM,SAAA;EAChB,SAAA;AAAA,oBACD,GAAA,CAAA,OAAA"}
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+
3
+ //#region src/features/chat/frame/frame.d.ts
4
+ interface FrameProps {
5
+ className?: string;
6
+ children: React.ReactNode;
7
+ }
8
+ declare function Frame({
9
+ className,
10
+ children
11
+ }: FrameProps): React.JSX.Element | null;
12
+ declare namespace Frame {
13
+ var displayName: string;
14
+ }
15
+ //#endregion
16
+ export { Frame as t };
17
+ //# sourceMappingURL=frame-BCN71hMj.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frame-BCN71hMj.d.ts","names":[],"sources":["../src/features/chat/frame/frame.tsx"],"mappings":";;;UAcU,UAAA;EACR,SAAA;EACA,QAAA,EAAU,KAAA,CAAM,SAAS;AAAA;AAAA,iBAGX,KAAA;EAAQ,SAAA;EAAW;AAAA,GAAY,UAAA,GAAU,KAAA,CAAA,GAAA,CAAA,OAAA;AAAA,kBAAzC,KAAA;EAAA,IAAK,WAAA;AAAA"}
@@ -0,0 +1,10 @@
1
+ //#region src/features/chat/conversation/message/frame.d.ts
2
+ interface MessageProps {
3
+ children?: React.ReactNode;
4
+ }
5
+ declare function MessageFrame({
6
+ children
7
+ }: MessageProps): import("react").JSX.Element;
8
+ //#endregion
9
+ export { MessageFrame as t };
10
+ //# sourceMappingURL=frame-D_ce2ErP.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frame-D_ce2ErP.d.ts","names":[],"sources":["../src/features/chat/conversation/message/frame.tsx"],"mappings":";UAMU,YAAA;EACR,QAAA,GAAW,KAAA,CAAM,SAAS;AAAA;AAAA,iBAGZ,YAAA;EAAe;AAAA,GAAY,YAAY,mBAAA,GAAA,CAAA,OAAA"}
@@ -0,0 +1,8 @@
1
+ //#region src/features/chat/frame/header.d.ts
2
+ declare function Header(): import("react").JSX.Element;
3
+ declare namespace Header {
4
+ var displayName: string;
5
+ }
6
+ //#endregion
7
+ export { Header as t };
8
+ //# sourceMappingURL=header-BDGB3zKD.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"header-BDGB3zKD.d.ts","names":[],"sources":["../src/features/chat/frame/header.tsx"],"mappings":";iBAWgB,MAAA,oBAAM,GAAA,CAAA,OAAA;AAAA,kBAAN,MAAA;EAAA,IAAM,WAAA;AAAA"}
@@ -0,0 +1,8 @@
1
+ //#region src/features/chat/history/history.d.ts
2
+ declare function History(): import("react").JSX.Element | null;
3
+ declare namespace History {
4
+ var displayName: string;
5
+ }
6
+ //#endregion
7
+ export { History as t };
8
+ //# sourceMappingURL=history-DDUj4LMJ.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"history-DDUj4LMJ.d.ts","names":[],"sources":["../src/features/chat/history/history.tsx"],"mappings":";iBAagB,OAAA,oBAAO,GAAA,CAAA,OAAA;AAAA,kBAAP,OAAA;EAAA,IAAO,WAAA;AAAA"}
@@ -1,2 +1,2 @@
1
- import { a as languages, i as fallbackLng, n as Resource, o as resources, r as defaultNamespace, t as Locale } from "../config-D_jVTH_D.js";
1
+ import { a as languages, i as fallbackLng, n as Resource, o as resources, r as defaultNamespace, t as Locale } from "../config-f4Go--5s.js";
2
2
  export { Locale, Resource, defaultNamespace, fallbackLng, languages, resources };
@@ -1,2 +1,2 @@
1
- import { i as resources, n as fallbackLng, r as languages, t as defaultNamespace } from "../config-BigIL6TQ.js";
1
+ import { i as resources, n as fallbackLng, r as languages, t as defaultNamespace } from "../config-Wk7C7AJs.js";
2
2
  export { defaultNamespace, fallbackLng, languages, resources };