@chatsdk-dev/elements 0.0.1 → 0.1.2

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 (329) hide show
  1. package/README.md +3 -3
  2. package/dist/api-CIYPz72L.d.ts +10 -0
  3. package/dist/api-CIYPz72L.d.ts.map +1 -0
  4. package/dist/callbacks-PIvHXeEI.d.ts +24 -0
  5. package/dist/callbacks-PIvHXeEI.d.ts.map +1 -0
  6. package/dist/chat-element-CCsDDFif.js +441 -0
  7. package/dist/chat-element-CCsDDFif.js.map +1 -0
  8. package/dist/chat-element-CSpa62Te.d.ts +53 -0
  9. package/dist/chat-element-CSpa62Te.d.ts.map +1 -0
  10. package/dist/chatsdk-provider-BhlChLFd.d.ts +15 -0
  11. package/dist/chatsdk-provider-BhlChLFd.d.ts.map +1 -0
  12. package/dist/common/utils.d.ts +14 -0
  13. package/dist/common/utils.d.ts.map +1 -0
  14. package/dist/common/utils.js +26 -0
  15. package/dist/common/utils.js.map +1 -0
  16. package/dist/components/info-card.d.ts +20 -11
  17. package/dist/components/info-card.d.ts.map +1 -0
  18. package/dist/components/info-card.js +38 -1
  19. package/dist/components/info-card.js.map +1 -0
  20. package/dist/config-BigIL6TQ.js +29 -0
  21. package/dist/config-BigIL6TQ.js.map +1 -0
  22. package/dist/config-CqihvSgz.d.ts +150 -0
  23. package/dist/config-CqihvSgz.d.ts.map +1 -0
  24. package/dist/config-D_jVTH_D.d.ts +58 -0
  25. package/dist/config-D_jVTH_D.d.ts.map +1 -0
  26. package/dist/context-aSaHw-ac.d.ts +13 -0
  27. package/dist/context-aSaHw-ac.d.ts.map +1 -0
  28. package/dist/element-provider-C_nBsftD.d.ts +40 -0
  29. package/dist/element-provider-C_nBsftD.d.ts.map +1 -0
  30. package/dist/features/chat/chat-card.d.ts +5 -3
  31. package/dist/features/chat/chat-card.d.ts.map +1 -0
  32. package/dist/features/chat/chat-card.js +2 -14
  33. package/dist/features/chat/chat-element.d.ts +2 -0
  34. package/dist/features/chat/chat-element.js +2 -0
  35. package/dist/features/chat/chat-header/chat-header.d.ts +8 -4
  36. package/dist/features/chat/chat-header/chat-header.d.ts.map +1 -0
  37. package/dist/features/chat/chat-header/chat-header.js +2 -14
  38. package/dist/features/chat/chat-header/chat-menu.d.ts +5 -3
  39. package/dist/features/chat/chat-header/chat-menu.d.ts.map +1 -0
  40. package/dist/features/chat/chat-header/chat-menu.js +29 -2
  41. package/dist/features/chat/chat-header/chat-menu.js.map +1 -0
  42. package/dist/features/chat/chat-history/chat-history-empty.d.ts +5 -3
  43. package/dist/features/chat/chat-history/chat-history-empty.d.ts.map +1 -0
  44. package/dist/features/chat/chat-history/chat-history-empty.js +24 -1
  45. package/dist/features/chat/chat-history/chat-history-empty.js.map +1 -0
  46. package/dist/features/chat/chat-history/chat-history.d.ts +5 -3
  47. package/dist/features/chat/chat-history/chat-history.d.ts.map +1 -0
  48. package/dist/features/chat/chat-history/chat-history.js +2 -14
  49. package/dist/features/chat/chat-main/chat-main.d.ts +10 -0
  50. package/dist/features/chat/chat-main/chat-main.d.ts.map +1 -0
  51. package/dist/features/chat/chat-main/chat-main.js +3 -0
  52. package/dist/features/chat/chat-main/use-chat.d.ts +23 -0
  53. package/dist/features/chat/chat-main/use-chat.d.ts.map +1 -0
  54. package/dist/features/chat/chat-main/use-chat.js +3 -0
  55. package/dist/features/chat/chat-main/use-initial-messages.d.ts +22 -0
  56. package/dist/features/chat/chat-main/use-initial-messages.d.ts.map +1 -0
  57. package/dist/features/chat/chat-main/use-initial-messages.js +2 -0
  58. package/dist/features/chat/chat-prompt-input.d.ts +20 -12
  59. package/dist/features/chat/chat-prompt-input.d.ts.map +1 -0
  60. package/dist/features/chat/chat-prompt-input.js +3 -14
  61. package/dist/features/chat/chat.context.d.ts +17 -15
  62. package/dist/features/chat/chat.context.d.ts.map +1 -0
  63. package/dist/features/chat/chat.context.js +9 -12
  64. package/dist/features/chat/chat.context.js.map +1 -0
  65. package/dist/features/chat/index.d.ts +2 -14
  66. package/dist/features/chat/index.js +2 -14
  67. package/dist/features/chat/queries/query-keys.d.ts +7 -5
  68. package/dist/features/chat/queries/query-keys.d.ts.map +1 -0
  69. package/dist/features/chat/queries/query-keys.js +19 -1
  70. package/dist/features/chat/queries/query-keys.js.map +1 -0
  71. package/dist/features/chat/queries/use-create-conversation-mutation.d.ts +27 -23
  72. package/dist/features/chat/queries/use-create-conversation-mutation.d.ts.map +1 -0
  73. package/dist/features/chat/queries/use-create-conversation-mutation.js +17 -36
  74. package/dist/features/chat/queries/use-create-conversation-mutation.js.map +1 -0
  75. package/dist/features/chat/queries/use-get-chat-query.d.ts +9 -5
  76. package/dist/features/chat/queries/use-get-chat-query.d.ts.map +1 -0
  77. package/dist/features/chat/queries/use-get-chat-query.js +2 -14
  78. package/dist/features/chat/queries/use-get-conversation-query.d.ts +56 -46
  79. package/dist/features/chat/queries/use-get-conversation-query.d.ts.map +1 -0
  80. package/dist/features/chat/queries/use-get-conversation-query.js +2 -14
  81. package/dist/features/chat/queries/use-list-conversations-query.d.ts +27 -23
  82. package/dist/features/chat/queries/use-list-conversations-query.d.ts.map +1 -0
  83. package/dist/features/chat/queries/use-list-conversations-query.js +2 -14
  84. package/dist/features/chat/store.d.ts +10 -8
  85. package/dist/features/chat/store.d.ts.map +1 -0
  86. package/dist/features/chat/store.js +15 -1
  87. package/dist/features/chat/store.js.map +1 -0
  88. package/dist/features/chat/utils.d.ts +4 -2
  89. package/dist/features/chat/utils.d.ts.map +1 -0
  90. package/dist/features/chat/utils.js +15 -1
  91. package/dist/features/chat/utils.js.map +1 -0
  92. package/dist/features/data-fetching/use-api-client.d.ts +5 -3
  93. package/dist/features/data-fetching/use-api-client.d.ts.map +1 -0
  94. package/dist/features/data-fetching/use-api-client.js +2 -14
  95. package/dist/features/element/chatsdk-provider.d.ts +2 -0
  96. package/dist/features/element/chatsdk-provider.js +23 -0
  97. package/dist/features/element/chatsdk-provider.js.map +1 -0
  98. package/dist/features/element/constants.d.ts +5 -0
  99. package/dist/features/element/constants.d.ts.map +1 -0
  100. package/dist/features/element/constants.js +6 -0
  101. package/dist/features/element/constants.js.map +1 -0
  102. package/dist/features/element/element-provider.d.ts +2 -0
  103. package/dist/features/element/element-provider.js +82 -0
  104. package/dist/features/element/element-provider.js.map +1 -0
  105. package/dist/features/element/store.d.ts +2 -0
  106. package/dist/features/element/store.js +112 -0
  107. package/dist/features/element/store.js.map +1 -0
  108. package/dist/features/element/types/api.d.ts +2 -0
  109. package/dist/features/element/types/api.js +1 -0
  110. package/dist/features/element/types/callbacks.d.ts +2 -0
  111. package/dist/features/element/types/callbacks.js +1 -0
  112. package/dist/features/element/types/config.d.ts +2 -0
  113. package/dist/features/element/types/config.js +1 -0
  114. package/dist/features/element/types/context.d.ts +2 -0
  115. package/dist/features/element/types/context.js +1 -0
  116. package/dist/features/element/types/locale.d.ts +2 -0
  117. package/dist/features/element/types/locale.js +1 -0
  118. package/dist/features/element/types/theme.d.ts +2 -0
  119. package/dist/features/element/types/theme.js +1 -0
  120. package/dist/features/element/types/translations.d.ts +2 -0
  121. package/dist/features/element/types/translations.js +1 -0
  122. package/dist/features/element/use-element-config.d.ts +40 -0
  123. package/dist/features/element/use-element-config.d.ts.map +1 -0
  124. package/dist/features/element/use-element-config.js +39 -0
  125. package/dist/features/element/use-element-config.js.map +1 -0
  126. package/dist/features/element/use-merge-global-config.d.ts +20 -0
  127. package/dist/features/element/use-merge-global-config.d.ts.map +1 -0
  128. package/dist/features/element/use-merge-global-config.js +34 -0
  129. package/dist/features/element/use-merge-global-config.js.map +1 -0
  130. package/dist/features/element/utils.d.ts +2 -0
  131. package/dist/features/element/utils.js +86 -0
  132. package/dist/features/element/utils.js.map +1 -0
  133. package/dist/features/logger/logger.d.ts +2 -9
  134. package/dist/features/logger/logger.js +15 -1
  135. package/dist/features/logger/logger.js.map +1 -0
  136. package/dist/i18n/config.d.ts +2 -61
  137. package/dist/i18n/config.js +2 -1
  138. package/dist/i18n/i18next.d.ts +1382 -10
  139. package/dist/i18n/i18next.d.ts.map +1 -0
  140. package/dist/i18n/i18next.js +27 -2
  141. package/dist/i18n/i18next.js.map +1 -0
  142. package/dist/i18n/utils.d.ts +4 -3
  143. package/dist/i18n/utils.d.ts.map +1 -0
  144. package/dist/i18n/utils.js +10 -3
  145. package/dist/i18n/utils.js.map +1 -0
  146. package/dist/index.d.ts +5 -20
  147. package/dist/index.js +68 -20
  148. package/dist/index.js.map +1 -0
  149. package/dist/locale-W5Kyyi4X.d.ts +11 -0
  150. package/dist/locale-W5Kyyi4X.d.ts.map +1 -0
  151. package/dist/logger-BvmhODdq.d.ts +11 -0
  152. package/dist/logger-BvmhODdq.d.ts.map +1 -0
  153. package/dist/store-CGX9oRlE.d.ts +46 -0
  154. package/dist/store-CGX9oRlE.d.ts.map +1 -0
  155. package/dist/styles.css +1954 -1963
  156. package/dist/theme-Cb-RBWbR.d.ts +38 -0
  157. package/dist/theme-Cb-RBWbR.d.ts.map +1 -0
  158. package/package.json +18 -50
  159. package/dist/chunk-2LHKM7RD.js +0 -14
  160. package/dist/chunk-5UMYP6MD.js +0 -10
  161. package/dist/chunk-AP4MG32M.js +0 -36
  162. package/dist/chunk-CFM57HOS.js +0 -358
  163. package/dist/chunk-EGIUE7H2.js +0 -37
  164. package/dist/chunk-M5OONVIO.js +0 -90
  165. package/dist/chunk-MXTBCHYC.js +0 -31
  166. package/dist/chunk-NIC3MOMY.js +0 -55
  167. package/dist/chunk-QTRMNIG3.js +0 -83
  168. package/dist/chunk-R7G3RQLU.js +0 -36
  169. package/dist/chunk-RJG5D2TM.js +0 -113
  170. package/dist/chunk-SLJNKQ2G.js +0 -125
  171. package/dist/chunk-TDEFIW2L.js +0 -9
  172. package/dist/chunk-TDP6D7U7.js +0 -551
  173. package/dist/chunk-V2ITXC65.js +0 -24
  174. package/dist/chunk-VS55HRUS.js +0 -16
  175. package/dist/chunk-VYDYCGJL.js +0 -25
  176. package/dist/chunk-X5YUF2YM.js +0 -113
  177. package/dist/chunk-YX46JVQN.js +0 -78
  178. package/dist/chunk-YXAMLTTT.js +0 -16
  179. package/dist/chunk-YXFVHSY4.js +0 -51
  180. package/dist/chunk-ZCSZX3OI.js +0 -4
  181. package/dist/common/use-copy-to-clipboard.d.ts +0 -3
  182. package/dist/common/use-copy-to-clipboard.js +0 -33
  183. package/dist/common/utilts.d.ts +0 -8
  184. package/dist/common/utilts.js +0 -28
  185. package/dist/components/ai-elements/actions.d.ts +0 -13
  186. package/dist/components/ai-elements/actions.js +0 -42
  187. package/dist/components/ai-elements/agent.d.ts +0 -31
  188. package/dist/components/ai-elements/agent.js +0 -77
  189. package/dist/components/ai-elements/artifact.d.ts +0 -27
  190. package/dist/components/ai-elements/artifact.js +0 -108
  191. package/dist/components/ai-elements/attachments.d.ts +0 -57
  192. package/dist/components/ai-elements/attachments.js +0 -258
  193. package/dist/components/ai-elements/audio-player.d.ts +0 -33
  194. package/dist/components/ai-elements/audio-player.js +0 -199
  195. package/dist/components/ai-elements/canvas.d.ts +0 -10
  196. package/dist/components/ai-elements/canvas.js +0 -24
  197. package/dist/components/ai-elements/chain-of-thought.d.ts +0 -34
  198. package/dist/components/ai-elements/chain-of-thought.js +0 -159
  199. package/dist/components/ai-elements/checkpoint.d.ts +0 -16
  200. package/dist/components/ai-elements/checkpoint.js +0 -47
  201. package/dist/components/ai-elements/code-block.d.ts +0 -48
  202. package/dist/components/ai-elements/code-block.js +0 -1
  203. package/dist/components/ai-elements/commit.d.ts +0 -68
  204. package/dist/components/ai-elements/commit.js +0 -314
  205. package/dist/components/ai-elements/confirmation.d.ts +0 -52
  206. package/dist/components/ai-elements/confirmation.js +0 -76
  207. package/dist/components/ai-elements/connection.d.ts +0 -5
  208. package/dist/components/ai-elements/connection.js +0 -34
  209. package/dist/components/ai-elements/context.d.ts +0 -36
  210. package/dist/components/ai-elements/context.js +0 -320
  211. package/dist/components/ai-elements/controls.d.ts +0 -8
  212. package/dist/components/ai-elements/controls.js +0 -17
  213. package/dist/components/ai-elements/conversation.d.ts +0 -27
  214. package/dist/components/ai-elements/conversation.js +0 -119
  215. package/dist/components/ai-elements/edge.d.ts +0 -9
  216. package/dist/components/ai-elements/edge.js +0 -111
  217. package/dist/components/ai-elements/environment-variables.d.ts +0 -42
  218. package/dist/components/ai-elements/environment-variables.js +0 -208
  219. package/dist/components/ai-elements/file-tree.d.ts +0 -30
  220. package/dist/components/ai-elements/file-tree.js +0 -212
  221. package/dist/components/ai-elements/image.d.ts +0 -10
  222. package/dist/components/ai-elements/image.js +0 -23
  223. package/dist/components/ai-elements/inline-citation.d.ts +0 -42
  224. package/dist/components/ai-elements/inline-citation.js +0 -203
  225. package/dist/components/ai-elements/jsx-preview.d.ts +0 -33
  226. package/dist/components/ai-elements/jsx-preview.js +0 -206
  227. package/dist/components/ai-elements/loader.d.ts +0 -9
  228. package/dist/components/ai-elements/loader.js +0 -115
  229. package/dist/components/ai-elements/message.d.ts +0 -42
  230. package/dist/components/ai-elements/message.js +0 -259
  231. package/dist/components/ai-elements/mic-selector.d.ts +0 -49
  232. package/dist/components/ai-elements/mic-selector.js +0 -252
  233. package/dist/components/ai-elements/model-selector.d.ts +0 -39
  234. package/dist/components/ai-elements/model-selector.js +0 -73
  235. package/dist/components/ai-elements/node.d.ts +0 -25
  236. package/dist/components/ai-elements/node.js +0 -41
  237. package/dist/components/ai-elements/open-in-chat.d.ts +0 -32
  238. package/dist/components/ai-elements/open-in-chat.js +0 -366
  239. package/dist/components/ai-elements/package-info.d.ts +0 -32
  240. package/dist/components/ai-elements/package-info.js +0 -162
  241. package/dist/components/ai-elements/panel.d.ts +0 -8
  242. package/dist/components/ai-elements/panel.js +0 -17
  243. package/dist/components/ai-elements/persona.d.ts +0 -50
  244. package/dist/components/ai-elements/persona.js +0 -209
  245. package/dist/components/ai-elements/plan.d.ts +0 -29
  246. package/dist/components/ai-elements/plan.js +0 -95
  247. package/dist/components/ai-elements/prompt-input.d.ts +0 -153
  248. package/dist/components/ai-elements/prompt-input.js +0 -939
  249. package/dist/components/ai-elements/queue.d.ts +0 -65
  250. package/dist/components/ai-elements/queue.js +0 -179
  251. package/dist/components/ai-elements/reasoning.d.ts +0 -30
  252. package/dist/components/ai-elements/reasoning.js +0 -161
  253. package/dist/components/ai-elements/response.d.ts +0 -9
  254. package/dist/components/ai-elements/response.js +0 -33
  255. package/dist/components/ai-elements/sandbox.d.ts +0 -28
  256. package/dist/components/ai-elements/sandbox.js +0 -98
  257. package/dist/components/ai-elements/schema-display.d.ts +0 -58
  258. package/dist/components/ai-elements/schema-display.js +0 -313
  259. package/dist/components/ai-elements/shimmer.d.ts +0 -14
  260. package/dist/components/ai-elements/shimmer.js +0 -1
  261. package/dist/components/ai-elements/snippet.d.ts +0 -22
  262. package/dist/components/ai-elements/snippet.js +0 -90
  263. package/dist/components/ai-elements/sources.d.ts +0 -16
  264. package/dist/components/ai-elements/sources.js +0 -62
  265. package/dist/components/ai-elements/speech-input.d.ts +0 -57
  266. package/dist/components/ai-elements/speech-input.js +0 -206
  267. package/dist/components/ai-elements/stack-trace.d.ts +0 -42
  268. package/dist/components/ai-elements/stack-trace.js +0 -377
  269. package/dist/components/ai-elements/suggestion.d.ts +0 -14
  270. package/dist/components/ai-elements/suggestion.js +0 -41
  271. package/dist/components/ai-elements/task.d.ts +0 -18
  272. package/dist/components/ai-elements/task.js +0 -60
  273. package/dist/components/ai-elements/terminal.d.ts +0 -31
  274. package/dist/components/ai-elements/terminal.js +0 -203
  275. package/dist/components/ai-elements/test-results.d.ts +0 -61
  276. package/dist/components/ai-elements/test-results.js +0 -349
  277. package/dist/components/ai-elements/tool.d.ts +0 -35
  278. package/dist/components/ai-elements/tool.js +0 -2
  279. package/dist/components/ai-elements/toolbar.d.ts +0 -8
  280. package/dist/components/ai-elements/toolbar.js +0 -18
  281. package/dist/components/ai-elements/transcription.d.ts +0 -19
  282. package/dist/components/ai-elements/transcription.js +0 -90
  283. package/dist/components/ai-elements/voice-selector.d.ts +0 -66
  284. package/dist/components/ai-elements/voice-selector.js +0 -332
  285. package/dist/components/ai-elements/web-preview.d.ts +0 -38
  286. package/dist/components/ai-elements/web-preview.js +0 -214
  287. package/dist/components/responsive-alert-dialog.d.ts +0 -19
  288. package/dist/components/responsive-alert-dialog.js +0 -1
  289. package/dist/components/responsive-dialog.d.ts +0 -14
  290. package/dist/components/responsive-dialog.js +0 -1
  291. package/dist/config-IcWUmjwj.d.ts +0 -239
  292. package/dist/features/chat/chat-element/chat-element.d.ts +0 -8
  293. package/dist/features/chat/chat-element/chat-element.js +0 -14
  294. package/dist/features/chat/chat-element/use-chat.d.ts +0 -21
  295. package/dist/features/chat/chat-element/use-chat.js +0 -14
  296. package/dist/features/chat/chat-element/use-initial-messages.d.ts +0 -20
  297. package/dist/features/chat/chat-element/use-initial-messages.js +0 -14
  298. package/dist/features/chat/chat-message.d.ts +0 -10
  299. package/dist/features/chat/chat-message.js +0 -1
  300. package/dist/features/chat/chat-molecule.d.ts +0 -35
  301. package/dist/features/chat/chat-molecule.js +0 -14
  302. package/dist/features/molecule/chatsdk-provider.d.ts +0 -19
  303. package/dist/features/molecule/chatsdk-provider.js +0 -26
  304. package/dist/features/molecule/constants.d.ts +0 -3
  305. package/dist/features/molecule/constants.js +0 -1
  306. package/dist/features/molecule/molecule-provider.d.ts +0 -39
  307. package/dist/features/molecule/molecule-provider.js +0 -1
  308. package/dist/features/molecule/store.d.ts +0 -53
  309. package/dist/features/molecule/store.js +0 -3
  310. package/dist/features/molecule/types/api.d.ts +0 -8
  311. package/dist/features/molecule/types/api.js +0 -1
  312. package/dist/features/molecule/types/callbacks.d.ts +0 -22
  313. package/dist/features/molecule/types/callbacks.js +0 -1
  314. package/dist/features/molecule/types/config.d.ts +0 -10
  315. package/dist/features/molecule/types/config.js +0 -1
  316. package/dist/features/molecule/types/context.d.ts +0 -11
  317. package/dist/features/molecule/types/context.js +0 -1
  318. package/dist/features/molecule/types/locale.d.ts +0 -9
  319. package/dist/features/molecule/types/locale.js +0 -1
  320. package/dist/features/molecule/types/theme.d.ts +0 -38
  321. package/dist/features/molecule/types/theme.js +0 -1
  322. package/dist/features/molecule/types/translations.d.ts +0 -10
  323. package/dist/features/molecule/types/translations.js +0 -1
  324. package/dist/features/molecule/use-merge-global-config.d.ts +0 -22
  325. package/dist/features/molecule/use-merge-global-config.js +0 -5
  326. package/dist/features/molecule/use-molecule-config.d.ts +0 -41
  327. package/dist/features/molecule/use-molecule-config.js +0 -6
  328. package/dist/features/molecule/utils.d.ts +0 -10
  329. package/dist/features/molecule/utils.js +0 -1
@@ -1,239 +0,0 @@
1
- import { LoggerInput } from './features/logger/logger.js';
2
- import { APIOptions } from './features/molecule/types/api.js';
3
- import { Callbacks } from './features/molecule/types/callbacks.js';
4
- import { Context } from './features/molecule/types/context.js';
5
- import { LocaleConfig } from './features/molecule/types/locale.js';
6
- import { ThemeConfig } from './features/molecule/types/theme.js';
7
- import { Locale, Resource } from '@chatsdk-dev/elements/i18n/config';
8
-
9
- interface SerializerOptions<T> {
10
- /**
11
- * @default true
12
- */
13
- explode: boolean;
14
- style: T;
15
- }
16
- type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
17
- type ObjectStyle = 'form' | 'deepObject';
18
-
19
- type QuerySerializer = (query: Record<string, unknown>) => string;
20
- type BodySerializer = (body: unknown) => unknown;
21
- type QuerySerializerOptionsObject = {
22
- allowReserved?: boolean;
23
- array?: Partial<SerializerOptions<ArrayStyle>>;
24
- object?: Partial<SerializerOptions<ObjectStyle>>;
25
- };
26
- type QuerySerializerOptions = QuerySerializerOptionsObject & {
27
- /**
28
- * Per-parameter serialization overrides. When provided, these settings
29
- * override the global array/object settings for specific parameter names.
30
- */
31
- parameters?: Record<string, QuerySerializerOptionsObject>;
32
- };
33
-
34
- type AuthToken = string | undefined;
35
- interface Auth {
36
- /**
37
- * Which part of the request do we use to send the auth?
38
- *
39
- * @default 'header'
40
- */
41
- in?: 'header' | 'query' | 'cookie';
42
- /**
43
- * Header or query parameter name.
44
- *
45
- * @default 'Authorization'
46
- */
47
- name?: string;
48
- scheme?: 'basic' | 'bearer';
49
- type: 'apiKey' | 'http';
50
- }
51
-
52
- type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
53
-
54
- type ResponseStyle = 'data' | 'fields';
55
-
56
- type DeepPartial<T> = {
57
- [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
58
- };
59
- declare function deepMerge<T extends Record<string, any>>(target: T, ...sources: DeepPartial<T>[]): T;
60
- declare function mergeObjectsOneLevel<T extends object>(a: Partial<T> | undefined, b: Partial<T> | undefined): Partial<T> | undefined;
61
- declare function mergeFont(...fontConfigurations: Partial<ThemeConfig["font"]>[]): ThemeConfig["font"] | undefined;
62
- declare function mergeTheme(...args: (RootConfig["theme"] | null)[]): RootConfig["theme"];
63
- declare function mergeContext(globalContext: Context | undefined, context: Context | undefined): {
64
- tenant?: {
65
- id?: string;
66
- traits?: Record<string, boolean>;
67
- };
68
- actor?: {
69
- id?: string;
70
- };
71
- };
72
- declare function mergeLocale(globalLocale: RootConfig["locale"] | undefined, locale: RootConfig["locale"] | undefined): LocaleConfig | undefined;
73
- declare function mergeTranslations(...args: (TranslationsConfig | undefined)[]): TranslationsConfig | undefined;
74
- declare function mergeApi(globalApi: RootConfig["api"] | undefined, api: RootConfig["api"] | undefined): {
75
- cache?: RequestCache;
76
- method?: Uppercase<HttpMethod>;
77
- credentials?: RequestCredentials;
78
- integrity?: string;
79
- keepalive?: boolean;
80
- mode?: RequestMode;
81
- priority?: RequestPriority;
82
- redirect?: RequestRedirect;
83
- referrer?: string;
84
- referrerPolicy?: ReferrerPolicy;
85
- signal?: AbortSignal | null;
86
- window?: null;
87
- responseTransformer?: (data: unknown) => Promise<unknown>;
88
- responseValidator?: (data: unknown) => Promise<unknown>;
89
- auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
90
- bodySerializer?: BodySerializer | null;
91
- querySerializer?: QuerySerializer | QuerySerializerOptions;
92
- requestValidator?: (data: unknown) => Promise<unknown>;
93
- fetch?: typeof fetch;
94
- baseUrl?: string | undefined;
95
- parseAs?: "arrayBuffer" | "auto" | "blob" | "formData" | "json" | "stream" | "text";
96
- next?: never;
97
- responseStyle?: ResponseStyle;
98
- throwOnError?: boolean | undefined;
99
- version?: "internal" | "v1";
100
- headers?: Record<string, string>;
101
- body?: BodyInit | null;
102
- };
103
- declare function mergeLogger(globalLogger: RootConfig["logger"] | undefined, logger: RootConfig["logger"] | undefined): LoggerInput | ((message: string) => void) | undefined;
104
- declare function mergeConfigs(...args: Partial<RootConfig>[]): Partial<RootConfig>;
105
-
106
- type TranslationsConfig = DeepPartial<Record<Locale, Resource>>;
107
-
108
- type OptionsConfig = Record<string, object>;
109
- interface RootConfig {
110
- /**
111
- * Context configuration containing reference and other context-specific settings
112
- * @type Context
113
- * @category Configuration
114
- * @details interface Context {
115
- * tenant?: {
116
- * id: string;
117
- * traits?: Record<string, boolean>
118
- * }
119
- * user?: {
120
- * id: string;
121
- * }
122
- * }
123
- */
124
- context?: Context;
125
- /**
126
- * Theme configuration for styling and layout
127
- * @type ThemeConfig
128
- * @category Configuration
129
- * @details interface ThemeConfig {
130
- * colorScheme: ColorScheme;
131
- * font: {
132
- * body: FontConfig;
133
- * heading: FontConfig;
134
- * variants: Record<string, FontConfig>;
135
- * };
136
- * defaultRadius: Radius;
137
- * defaultShadow: Size;
138
- * components?: ConfigComponents;
139
- *
140
- *
141
- * primary: string;
142
- * ... see shared-styles.css for all variables
143
- *
144
- */
145
- theme?: Partial<ThemeConfig>;
146
- /**
147
- * API configuration including version, base URL, credentials, and headers
148
- * @type APIOptions
149
- * @category Configuration
150
- * @details interface APIOptions {
151
- * base?: string;
152
- * version?: 'internal' | 'v1';
153
- * body?: any;
154
- * credentials?: 'include' | 'same-origin' | 'omit';
155
- * headers?: Record<string, string>;
156
- * integrity?: string;
157
- * keepalive?: boolean;
158
- * method?: string;
159
- * mode?: 'cors' | 'no-cors' | 'same-origin' | 'navigate';
160
- * referrer?: string;
161
- * window?: any;
162
- * signal?: any;
163
- * }
164
- */
165
- api?: APIOptions;
166
- /**
167
- * Locale configuration for language and currency settings
168
- * @type LocaleConfig
169
- * @category Configuration
170
- * @details type LocaleConfig =
171
- * | Language
172
- * | { language: Langugae; formality?: Formality };
173
- */
174
- locale?: LocaleConfig;
175
- /**
176
- * Custom translations object for overriding default text strings
177
- * @type Translations
178
- * @category Configuration
179
- * @details interface Translations {
180
- * en: {
181
- * chat:{
182
- * initialPrompt: string;
183
- * }
184
- * ...
185
- * };
186
- * }
187
- */
188
- translations?: TranslationsConfig;
189
- /**
190
- * Logger callback for logging messages, if provided partially, will reuse from most specific (error) to least specific (info)
191
- * @type Logger
192
- * @category Configuration
193
- * @details interface Logger {
194
- * info?: (message: string) => void;
195
- * warn?: (message: string) => void;
196
- * error?: (message: string) => void;
197
- * } | (message: string) => void
198
- */
199
- logger?: LoggerInput["info"] | LoggerInput;
200
- /**
201
- * Options configuration for the component
202
- * @type OptionsConfig
203
- * @category Configuration
204
- * @details type OptionsConfig = Record<string, any>;
205
- */
206
- options?: OptionsConfig;
207
- }
208
- type MoleculeConfig<T extends object, CallbackDataType = unknown> = T & {
209
- component?: T & {
210
- defaultProps?: T;
211
- };
212
- /**
213
- * Default props for the component, will be merged with the component props and the global component props
214
- * Merge order for props resolution from highest to lowest precedence:
215
- * 1. passed `props`
216
- * 2. config level `defaultProps`
217
- * 3. passed `defaultProps`
218
- * 4. hard coded defaultProps
219
- * Keep in mind, merges are shallow!
220
- *
221
- * @type T
222
- */
223
- defaultProps?: T;
224
- /** Configuration object to merge and override with global configuration, can be partially overriden by flattened configs (theme, api, locale, etc)
225
- * @category Configuration
226
- * @type Config
227
- * @details interface RootConfig {
228
- * context?: Context;
229
- * theme?: ThemeConfig;
230
- * api?: APIOptions;
231
- * locale?: LocaleConfig;
232
- * translations?: TranslationsConfig;
233
- * logger?: LoggerInput['info'] | LoggerInput;
234
- * }
235
- */
236
- config?: Partial<RootConfig>;
237
- } & Callbacks<CallbackDataType>;
238
-
239
- export { type DeepPartial as D, type MoleculeConfig as M, type OptionsConfig as O, type RootConfig as R, type TranslationsConfig as T, mergeConfigs as a, mergeContext as b, mergeFont as c, deepMerge as d, mergeLocale as e, mergeLogger as f, mergeObjectsOneLevel as g, mergeTheme as h, mergeTranslations as i, mergeApi as m };
@@ -1,8 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
-
3
- declare function ChatElement(): react_jsx_runtime.JSX.Element;
4
- declare namespace ChatElement {
5
- var displayName: string;
6
- }
7
-
8
- export { ChatElement };
@@ -1,14 +0,0 @@
1
- export { ChatElement } from '../../../chunk-TDP6D7U7.js';
2
- import '../../../chunk-AP4MG32M.js';
3
- import '../../../chunk-YXAMLTTT.js';
4
- import '../../../chunk-TDEFIW2L.js';
5
- import '../../../chunk-M5OONVIO.js';
6
- import '../../../chunk-VYDYCGJL.js';
7
- import '../../../chunk-MXTBCHYC.js';
8
- import '../../../chunk-2LHKM7RD.js';
9
- import '../../../chunk-5UMYP6MD.js';
10
- import '../../../chunk-VS55HRUS.js';
11
- import '../../../chunk-YX46JVQN.js';
12
- import '../../../chunk-RJG5D2TM.js';
13
- import '../../../chunk-ZCSZX3OI.js';
14
- import '../../../chunk-SLJNKQ2G.js';
@@ -1,21 +0,0 @@
1
- import * as _ai_sdk_react from '@ai-sdk/react';
2
- import * as ai from 'ai';
3
-
4
- declare function useChat(): _ai_sdk_react.UseChatHelpers<ai.UIMessage<unknown, ai.UIDataTypes, ai.UITools> | {
5
- id: string;
6
- role: "user" | "assistant" | "system";
7
- parts: {
8
- type: "text";
9
- text: string;
10
- }[];
11
- metadata: {
12
- id: string;
13
- role: "user" | "assistant" | "system";
14
- parts: Array<{
15
- type: "text";
16
- text: string;
17
- }>;
18
- };
19
- }>;
20
-
21
- export { useChat };
@@ -1,14 +0,0 @@
1
- export { useChat } from '../../../chunk-TDP6D7U7.js';
2
- import '../../../chunk-AP4MG32M.js';
3
- import '../../../chunk-YXAMLTTT.js';
4
- import '../../../chunk-TDEFIW2L.js';
5
- import '../../../chunk-M5OONVIO.js';
6
- import '../../../chunk-VYDYCGJL.js';
7
- import '../../../chunk-MXTBCHYC.js';
8
- import '../../../chunk-2LHKM7RD.js';
9
- import '../../../chunk-5UMYP6MD.js';
10
- import '../../../chunk-VS55HRUS.js';
11
- import '../../../chunk-YX46JVQN.js';
12
- import '../../../chunk-RJG5D2TM.js';
13
- import '../../../chunk-ZCSZX3OI.js';
14
- import '../../../chunk-SLJNKQ2G.js';
@@ -1,20 +0,0 @@
1
- import * as ai from 'ai';
2
-
3
- declare function useInitialMessages(): (ai.UIMessage<unknown, ai.UIDataTypes, ai.UITools> | {
4
- id: string;
5
- role: "user" | "assistant" | "system";
6
- parts: {
7
- type: "text";
8
- text: string;
9
- }[];
10
- metadata: {
11
- id: string;
12
- role: "user" | "assistant" | "system";
13
- parts: Array<{
14
- type: "text";
15
- text: string;
16
- }>;
17
- };
18
- })[];
19
-
20
- export { useInitialMessages };
@@ -1,14 +0,0 @@
1
- export { useInitialMessages } from '../../../chunk-TDP6D7U7.js';
2
- import '../../../chunk-AP4MG32M.js';
3
- import '../../../chunk-YXAMLTTT.js';
4
- import '../../../chunk-TDEFIW2L.js';
5
- import '../../../chunk-M5OONVIO.js';
6
- import '../../../chunk-VYDYCGJL.js';
7
- import '../../../chunk-MXTBCHYC.js';
8
- import '../../../chunk-2LHKM7RD.js';
9
- import '../../../chunk-5UMYP6MD.js';
10
- import '../../../chunk-VS55HRUS.js';
11
- import '../../../chunk-YX46JVQN.js';
12
- import '../../../chunk-RJG5D2TM.js';
13
- import '../../../chunk-ZCSZX3OI.js';
14
- import '../../../chunk-SLJNKQ2G.js';
@@ -1,10 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { UIMessage } from 'ai';
3
-
4
- interface ChatMessageProps {
5
- messages: UIMessage[];
6
- withAvatar?: boolean;
7
- }
8
- declare function ChatMessage({ messages, withAvatar, }: ChatMessageProps): (react_jsx_runtime.JSX.Element | null)[];
9
-
10
- export { ChatMessage };
@@ -1 +0,0 @@
1
- export { ChatMessage } from '../../chunk-SLJNKQ2G.js';
@@ -1,35 +0,0 @@
1
- import { Callbacks } from '../molecule/types/callbacks.js';
2
- import { M as MoleculeConfig, R as RootConfig } from '../../config-IcWUmjwj.js';
3
- import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import { MoleculeProviderProps, MoleculeContextType } from '../molecule/molecule-provider.js';
5
- import '../logger/logger.js';
6
- import '../molecule/types/api.js';
7
- import '@chatsdk-dev/api-client';
8
- import '../molecule/types/context.js';
9
- import '../molecule/types/locale.js';
10
- import '@chatsdk-dev/elements/i18n/config';
11
- import '../molecule/types/theme.js';
12
- import '@chatsdk-dev/ui/components/typography/text';
13
- import 'react';
14
-
15
- type ChatProps = {
16
- chatId: string;
17
- };
18
- type ChatData = {
19
- chatId: string;
20
- };
21
- type ChatMoleculeProps = MoleculeConfig<ChatProps, ChatData>;
22
- declare const MoleculeProvider: {
23
- ({ config, component, callbacks, children, }: MoleculeProviderProps<ChatProps, ChatData>): react_jsx_runtime.JSX.Element;
24
- displayName: string;
25
- };
26
- declare const useMolecule: () => MoleculeContextType<ChatProps, ChatData>;
27
- declare const useMoleculeConfig: () => RootConfig;
28
- declare const useMoleculeComponent: () => ChatProps;
29
- declare const useMoleculeCallbacks: () => Callbacks<ChatData>;
30
- declare function ChatMolecule(props: ChatMoleculeProps): react_jsx_runtime.JSX.Element | null;
31
- declare namespace ChatMolecule {
32
- var displayName: string;
33
- }
34
-
35
- export { ChatMolecule, MoleculeProvider, useMolecule, useMoleculeCallbacks, useMoleculeComponent, useMoleculeConfig };
@@ -1,14 +0,0 @@
1
- export { ChatMolecule, MoleculeProvider, useMolecule, useMoleculeCallbacks, useMoleculeComponent, useMoleculeConfig } from '../../chunk-TDP6D7U7.js';
2
- import '../../chunk-AP4MG32M.js';
3
- import '../../chunk-YXAMLTTT.js';
4
- import '../../chunk-TDEFIW2L.js';
5
- import '../../chunk-M5OONVIO.js';
6
- import '../../chunk-VYDYCGJL.js';
7
- import '../../chunk-MXTBCHYC.js';
8
- import '../../chunk-2LHKM7RD.js';
9
- import '../../chunk-5UMYP6MD.js';
10
- import '../../chunk-VS55HRUS.js';
11
- import '../../chunk-YX46JVQN.js';
12
- import '../../chunk-RJG5D2TM.js';
13
- import '../../chunk-ZCSZX3OI.js';
14
- import '../../chunk-SLJNKQ2G.js';
@@ -1,19 +0,0 @@
1
- import react__default from 'react';
2
- import { R as RootConfig } from '../../config-IcWUmjwj.js';
3
- import '../logger/logger.js';
4
- import './types/api.js';
5
- import '@chatsdk-dev/api-client';
6
- import './types/callbacks.js';
7
- import './types/context.js';
8
- import './types/locale.js';
9
- import '@chatsdk-dev/elements/i18n/config';
10
- import './types/theme.js';
11
- import '@chatsdk-dev/ui/components/typography/text';
12
-
13
- interface ChatSDKProviderProps {
14
- config?: RootConfig;
15
- children: react__default.ReactNode;
16
- }
17
- declare function ChatSDKProvider({ config, children, }: ChatSDKProviderProps): react__default.ReactNode;
18
-
19
- export { ChatSDKProvider };
@@ -1,26 +0,0 @@
1
- import { useChatSDKStore } from '../../chunk-YX46JVQN.js';
2
- import '../../chunk-RJG5D2TM.js';
3
- import '../../chunk-ZCSZX3OI.js';
4
- import { useRef, useLayoutEffect } from 'react';
5
-
6
- function ChatSDKProvider({
7
- config = {},
8
- children
9
- }) {
10
- const initialized = useRef(false);
11
- const isFirstRender = useRef(true);
12
- if (!initialized.current) {
13
- useChatSDKStore.getState().setConfig(config);
14
- initialized.current = true;
15
- }
16
- useLayoutEffect(() => {
17
- if (isFirstRender.current) {
18
- isFirstRender.current = false;
19
- return;
20
- }
21
- useChatSDKStore.getState().setConfig(config);
22
- }, [config]);
23
- return children;
24
- }
25
-
26
- export { ChatSDKProvider };
@@ -1,3 +0,0 @@
1
- declare const LOCAL_STORAGE_PREFIX = "chatsdk-";
2
-
3
- export { LOCAL_STORAGE_PREFIX };
@@ -1 +0,0 @@
1
- export { LOCAL_STORAGE_PREFIX } from '../../chunk-ZCSZX3OI.js';
@@ -1,39 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import react__default from 'react';
3
- import { Callbacks } from './types/callbacks.js';
4
- import { R as RootConfig } from '../../config-IcWUmjwj.js';
5
- import '../logger/logger.js';
6
- import './types/api.js';
7
- import '@chatsdk-dev/api-client';
8
- import './types/context.js';
9
- import './types/locale.js';
10
- import '@chatsdk-dev/elements/i18n/config';
11
- import './types/theme.js';
12
- import '@chatsdk-dev/ui/components/typography/text';
13
-
14
- interface MoleculeContextType<T, W> {
15
- config: RootConfig;
16
- component: T;
17
- callbacks: Callbacks<W>;
18
- }
19
- interface MoleculeProviderProps<T, W> {
20
- config: RootConfig;
21
- component: T;
22
- children: react__default.ReactNode;
23
- callbacks: Callbacks<W>;
24
- }
25
- interface CreateMoleculeContextParams {
26
- name: string;
27
- }
28
- declare function createMoleculeContext<T, W>({ name, }: CreateMoleculeContextParams): {
29
- readonly useMolecule: () => MoleculeContextType<T, W>;
30
- readonly useMoleculeConfig: () => RootConfig;
31
- readonly useMoleculeComponent: () => T;
32
- readonly useMoleculeCallbacks: () => Callbacks<W>;
33
- readonly MoleculeProvider: {
34
- ({ config, component, callbacks, children, }: MoleculeProviderProps<T, W>): react_jsx_runtime.JSX.Element;
35
- displayName: string;
36
- };
37
- };
38
-
39
- export { type MoleculeContextType, type MoleculeProviderProps, createMoleculeContext };
@@ -1 +0,0 @@
1
- export { createMoleculeContext } from '../../chunk-M5OONVIO.js';
@@ -1,53 +0,0 @@
1
- import * as zustand_middleware from 'zustand/middleware';
2
- import * as zustand from 'zustand';
3
- import { R as RootConfig } from '../../config-IcWUmjwj.js';
4
- import '../logger/logger.js';
5
- import './types/api.js';
6
- import '@chatsdk-dev/api-client';
7
- import './types/callbacks.js';
8
- import './types/context.js';
9
- import './types/locale.js';
10
- import '@chatsdk-dev/elements/i18n/config';
11
- import './types/theme.js';
12
- import '@chatsdk-dev/ui/components/typography/text';
13
-
14
- interface ChatSDKStore extends RootConfig {
15
- setContext: (context: RootConfig["context"]) => void;
16
- setTheme: (theme: RootConfig["theme"]) => void;
17
- setApi: (api: RootConfig["api"]) => void;
18
- setLocale: (locale: RootConfig["locale"]) => void;
19
- setTranslations?: (translations: RootConfig["translations"]) => void;
20
- setOptions: (options: RootConfig["options"]) => void;
21
- setLogger: (logger: RootConfig["logger"]) => void;
22
- setConfig: (config: Partial<RootConfig>, merge?: boolean) => void;
23
- reset: (config?: Partial<RootConfig>) => void;
24
- }
25
- declare const defaultInitialState: Omit<ChatSDKStore, "setContext" | "setTheme" | "setApi" | "setLocale" | "setOptions" | "setLogger" | "setConfig" | "reset">;
26
- declare const createChatSDKStore: (customInitialState?: Partial<typeof defaultInitialState>) => zustand.UseBoundStore<Omit<zustand.StoreApi<ChatSDKStore>, "setState" | "persist"> & {
27
- setState(partial: ChatSDKStore | Partial<ChatSDKStore> | ((state: ChatSDKStore) => ChatSDKStore | Partial<ChatSDKStore>), replace?: false | undefined): unknown;
28
- setState(state: ChatSDKStore | ((state: ChatSDKStore) => ChatSDKStore), replace: true): unknown;
29
- persist: {
30
- setOptions: (options: Partial<zustand_middleware.PersistOptions<ChatSDKStore, unknown, unknown>>) => void;
31
- clearStorage: () => void;
32
- rehydrate: () => Promise<void> | void;
33
- hasHydrated: () => boolean;
34
- onHydrate: (fn: (state: ChatSDKStore) => void) => () => void;
35
- onFinishHydration: (fn: (state: ChatSDKStore) => void) => () => void;
36
- getOptions: () => Partial<zustand_middleware.PersistOptions<ChatSDKStore, unknown, unknown>>;
37
- };
38
- }>;
39
- declare const useChatSDKStore: zustand.UseBoundStore<Omit<zustand.StoreApi<ChatSDKStore>, "setState" | "persist"> & {
40
- setState(partial: ChatSDKStore | Partial<ChatSDKStore> | ((state: ChatSDKStore) => ChatSDKStore | Partial<ChatSDKStore>), replace?: false | undefined): unknown;
41
- setState(state: ChatSDKStore | ((state: ChatSDKStore) => ChatSDKStore), replace: true): unknown;
42
- persist: {
43
- setOptions: (options: Partial<zustand_middleware.PersistOptions<ChatSDKStore, unknown, unknown>>) => void;
44
- clearStorage: () => void;
45
- rehydrate: () => Promise<void> | void;
46
- hasHydrated: () => boolean;
47
- onHydrate: (fn: (state: ChatSDKStore) => void) => () => void;
48
- onFinishHydration: (fn: (state: ChatSDKStore) => void) => () => void;
49
- getOptions: () => Partial<zustand_middleware.PersistOptions<ChatSDKStore, unknown, unknown>>;
50
- };
51
- }>;
52
-
53
- export { type ChatSDKStore, createChatSDKStore, useChatSDKStore };
@@ -1,3 +0,0 @@
1
- export { createChatSDKStore, useChatSDKStore } from '../../chunk-YX46JVQN.js';
2
- import '../../chunk-RJG5D2TM.js';
3
- import '../../chunk-ZCSZX3OI.js';
@@ -1,8 +0,0 @@
1
- import { Config } from '@chatsdk-dev/api-client';
2
-
3
- type APIOptions = Omit<Config, "headers"> & {
4
- version?: "internal" | "v1";
5
- headers?: Record<string, string>;
6
- } & Omit<RequestInit, "headers">;
7
-
8
- export type { APIOptions };
@@ -1 +0,0 @@
1
-
@@ -1,22 +0,0 @@
1
- interface Callbacks<T> {
2
- /** Callback function called when the component's query is loading (in flight)
3
- * @type function
4
- * @category Callbacks
5
- * @details () => void
6
- */
7
- onloading?: () => void;
8
- /** Callback function called when the component's query is successful, will receive the data as an argument that is forwarded to the rendering client as an argument
9
- * @type function
10
- * @category Callbacks
11
- * @details (data: T) => void
12
- */
13
- onsuccess?: (data: T) => void;
14
- /** Callback function called when the component's query is unsuccessful, will receive the error as an argument
15
- * @type function
16
- * @category Callbacks
17
- * @details (error: string) => void
18
- */
19
- onerror?: (error: string) => void;
20
- }
21
-
22
- export type { Callbacks };
@@ -1,10 +0,0 @@
1
- import '../../logger/logger.js';
2
- import './api.js';
3
- import './callbacks.js';
4
- import './context.js';
5
- import './locale.js';
6
- import './theme.js';
7
- export { M as MoleculeConfig, O as OptionsConfig, R as RootConfig } from '../../../config-IcWUmjwj.js';
8
- import '@chatsdk-dev/api-client';
9
- import '@chatsdk-dev/elements/i18n/config';
10
- import '@chatsdk-dev/ui/components/typography/text';
@@ -1,11 +0,0 @@
1
- type Context = {
2
- tenant?: {
3
- id?: string;
4
- traits?: Record<string, boolean>;
5
- };
6
- actor?: {
7
- id?: string;
8
- };
9
- };
10
-
11
- export type { Context };
@@ -1,9 +0,0 @@
1
- import { Locale } from '@chatsdk-dev/elements/i18n/config';
2
-
3
- type Formality = "formal" | "informal";
4
- type LocaleConfig = {
5
- language: Locale;
6
- formality?: Formality;
7
- };
8
-
9
- export type { Formality, LocaleConfig };