@swisper.ai/web-chat-ui 0.0.2 → 0.0.5

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 (369) hide show
  1. package/README.md +9 -12
  2. package/dist/components/canvas-shell/canvas-shell.d.ts +32 -10
  3. package/dist/components/canvas-shell/canvas-shell.d.ts.map +1 -1
  4. package/dist/components/canvas-shell/canvas-shell.stories.d.ts +49 -17
  5. package/dist/components/canvas-shell/canvas-shell.stories.d.ts.map +1 -1
  6. package/dist/components/chat-card/chat-card.d.ts +1 -0
  7. package/dist/components/chat-card/chat-card.d.ts.map +1 -1
  8. package/dist/components/chat-card/chat-card.stories.d.ts +47 -1
  9. package/dist/components/chat-card/chat-card.stories.d.ts.map +1 -1
  10. package/dist/components/chat-card/components/chat-card-body.d.ts +8 -0
  11. package/dist/components/chat-card/components/chat-card-body.d.ts.map +1 -1
  12. package/dist/components/chat-card/components/chat-card-footer.d.ts +8 -0
  13. package/dist/components/chat-card/components/chat-card-footer.d.ts.map +1 -1
  14. package/dist/components/chat-card/components/chat-card-form.d.ts +15 -2
  15. package/dist/components/chat-card/components/chat-card-form.d.ts.map +1 -1
  16. package/dist/components/chat-card/components/chat-card-header.d.ts +23 -2
  17. package/dist/components/chat-card/components/chat-card-header.d.ts.map +1 -1
  18. package/dist/components/chat-card/contexts.d.ts +2 -0
  19. package/dist/components/chat-card/contexts.d.ts.map +1 -1
  20. package/dist/components/chat-card/hooks.d.ts +1 -0
  21. package/dist/components/chat-card/hooks.d.ts.map +1 -1
  22. package/dist/components/chat-card/types.d.ts +3 -0
  23. package/dist/components/chat-card/types.d.ts.map +1 -1
  24. package/dist/components/chat-card-container/chat-card-container.d.ts +4 -0
  25. package/dist/components/chat-card-container/chat-card-container.d.ts.map +1 -1
  26. package/dist/components/chat-card-container/chat-card-container.stories.d.ts +12 -1
  27. package/dist/components/chat-card-container/chat-card-container.stories.d.ts.map +1 -1
  28. package/dist/components/chat-container/chat-container.d.ts.map +1 -1
  29. package/dist/components/chat-container/chat-container.stories.d.ts +36 -11
  30. package/dist/components/chat-container/chat-container.stories.d.ts.map +1 -1
  31. package/dist/components/chat-input/chat-input.d.ts +30 -2
  32. package/dist/components/chat-input/chat-input.d.ts.map +1 -1
  33. package/dist/components/chat-input/chat-input.stories.d.ts +63 -3
  34. package/dist/components/chat-input/chat-input.stories.d.ts.map +1 -1
  35. package/dist/components/chat-input/plugins/controlled-value-plugin.d.ts +4 -1
  36. package/dist/components/chat-input/plugins/controlled-value-plugin.d.ts.map +1 -1
  37. package/dist/components/chat-input/plugins/value-plugin.d.ts +4 -1
  38. package/dist/components/chat-input/plugins/value-plugin.d.ts.map +1 -1
  39. package/dist/components/chat-list/chat-list-item.d.ts +6 -0
  40. package/dist/components/chat-list/chat-list-item.d.ts.map +1 -1
  41. package/dist/components/chat-list/chat-list-items.d.ts +12 -1
  42. package/dist/components/chat-list/chat-list-items.d.ts.map +1 -1
  43. package/dist/components/chat-list/chat-list.d.ts +36 -2
  44. package/dist/components/chat-list/chat-list.d.ts.map +1 -1
  45. package/dist/components/chat-list/chat-list.stories.d.ts +67 -9
  46. package/dist/components/chat-list/chat-list.stories.d.ts.map +1 -1
  47. package/dist/components/chat-message/chat-message.d.ts +12 -1
  48. package/dist/components/chat-message/chat-message.d.ts.map +1 -1
  49. package/dist/components/chat-message/chat-message.stories.d.ts +31 -0
  50. package/dist/components/chat-message/chat-message.stories.d.ts.map +1 -1
  51. package/dist/components/chat-message/index.d.ts +1 -1
  52. package/dist/components/chat-message/index.d.ts.map +1 -1
  53. package/dist/components/chat-message-attachment-card/chat-message-attachment-card-icon.d.ts +3 -0
  54. package/dist/components/chat-message-attachment-card/chat-message-attachment-card-icon.d.ts.map +1 -1
  55. package/dist/components/chat-message-attachment-card/chat-message-attachment-card.d.ts +25 -5
  56. package/dist/components/chat-message-attachment-card/chat-message-attachment-card.d.ts.map +1 -1
  57. package/dist/components/chat-message-attachment-card/chat-message-attachment-card.stories.d.ts +32 -1
  58. package/dist/components/chat-message-attachment-card/chat-message-attachment-card.stories.d.ts.map +1 -1
  59. package/dist/components/chat-message-attachment-card/index.d.ts +2 -2
  60. package/dist/components/chat-message-attachment-card/index.d.ts.map +1 -1
  61. package/dist/components/chat-message-attachment-card/utils.d.ts +1 -0
  62. package/dist/components/chat-message-attachment-card/utils.d.ts.map +1 -1
  63. package/dist/components/chat-message-response/chat-message-response.stories.d.ts +13 -0
  64. package/dist/components/chat-message-response/chat-message-response.stories.d.ts.map +1 -1
  65. package/dist/components/chat-message-toolbar/chat-message-toolbar.d.ts +22 -5
  66. package/dist/components/chat-message-toolbar/chat-message-toolbar.d.ts.map +1 -1
  67. package/dist/components/chat-message-toolbar/chat-message-toolbar.stories.d.ts +42 -0
  68. package/dist/components/chat-message-toolbar/chat-message-toolbar.stories.d.ts.map +1 -1
  69. package/dist/components/chat-message-toolbar/index.d.ts +1 -1
  70. package/dist/components/chat-message-toolbar/index.d.ts.map +1 -1
  71. package/dist/components/chat-messages/chat-messages.d.ts +34 -2
  72. package/dist/components/chat-messages/chat-messages.d.ts.map +1 -1
  73. package/dist/components/chat-messages/chat-messages.stories.d.ts +33 -2
  74. package/dist/components/chat-messages/chat-messages.stories.d.ts.map +1 -1
  75. package/dist/components/chat-notification-card/chat-notification-card.d.ts +56 -4
  76. package/dist/components/chat-notification-card/chat-notification-card.d.ts.map +1 -1
  77. package/dist/components/chat-notification-card/chat-notification-card.stories.d.ts +50 -1
  78. package/dist/components/chat-notification-card/chat-notification-card.stories.d.ts.map +1 -1
  79. package/dist/components/chat-notification-popup/chat-notification-popup.d.ts +6 -0
  80. package/dist/components/chat-notification-popup/chat-notification-popup.d.ts.map +1 -1
  81. package/dist/components/chat-notification-popup/chat-notification-popup.stories.d.ts +43 -1
  82. package/dist/components/chat-notification-popup/chat-notification-popup.stories.d.ts.map +1 -1
  83. package/dist/components/chat-prompt-box/chat-prompt-box.d.ts +37 -17
  84. package/dist/components/chat-prompt-box/chat-prompt-box.d.ts.map +1 -1
  85. package/dist/components/chat-prompt-box/chat-prompt-box.stories.d.ts +53 -1
  86. package/dist/components/chat-prompt-box/chat-prompt-box.stories.d.ts.map +1 -1
  87. package/dist/components/chat-reply/chat-reply.d.ts +11 -0
  88. package/dist/components/chat-reply/chat-reply.d.ts.map +1 -1
  89. package/dist/components/chat-reply/chat-reply.stories.d.ts +23 -0
  90. package/dist/components/chat-reply/chat-reply.stories.d.ts.map +1 -1
  91. package/dist/components/chat-reply/index.d.ts +1 -1
  92. package/dist/components/chat-reply/index.d.ts.map +1 -1
  93. package/dist/components/chat-suggestion/chat-suggestion.d.ts +36 -10
  94. package/dist/components/chat-suggestion/chat-suggestion.d.ts.map +1 -1
  95. package/dist/components/chat-suggestion/chat-suggestion.stories.d.ts +66 -2
  96. package/dist/components/chat-suggestion/chat-suggestion.stories.d.ts.map +1 -1
  97. package/dist/components/chat-suggestion/index.d.ts +2 -1
  98. package/dist/components/chat-suggestion/index.d.ts.map +1 -1
  99. package/dist/components/chat-thinking-process/chat-thinking-process.d.ts +26 -1
  100. package/dist/components/chat-thinking-process/chat-thinking-process.d.ts.map +1 -1
  101. package/dist/components/chat-thinking-process/chat-thinking-process.stories.d.ts +25 -1
  102. package/dist/components/chat-thinking-process/chat-thinking-process.stories.d.ts.map +1 -1
  103. package/dist/components/chat-thread/chat-thread.d.ts +17 -2
  104. package/dist/components/chat-thread/chat-thread.d.ts.map +1 -1
  105. package/dist/components/chat-thread/chat-thread.stories.d.ts +75 -10
  106. package/dist/components/chat-thread/chat-thread.stories.d.ts.map +1 -1
  107. package/dist/components/index.d.ts +1 -3
  108. package/dist/components/index.d.ts.map +1 -1
  109. package/dist/components/markdown-viewer/markdown-viewer.d.ts +8 -1
  110. package/dist/components/markdown-viewer/markdown-viewer.d.ts.map +1 -1
  111. package/dist/components/markdown-viewer/markdown-viewer.stories.d.ts +18 -1
  112. package/dist/components/markdown-viewer/markdown-viewer.stories.d.ts.map +1 -1
  113. package/dist/components/rich-text-area/plugins/controlled-value-plugin.d.ts +4 -1
  114. package/dist/components/rich-text-area/plugins/controlled-value-plugin.d.ts.map +1 -1
  115. package/dist/components/rich-text-area/plugins/value-plugin.d.ts +4 -1
  116. package/dist/components/rich-text-area/plugins/value-plugin.d.ts.map +1 -1
  117. package/dist/components/rich-text-area/rich-text-area.d.ts +17 -0
  118. package/dist/components/rich-text-area/rich-text-area.d.ts.map +1 -1
  119. package/dist/components/rich-text-area/rich-text-area.stories.d.ts +52 -0
  120. package/dist/components/rich-text-area/rich-text-area.stories.d.ts.map +1 -1
  121. package/dist/components/rich-text-area/styled.d.ts +6 -2
  122. package/dist/components/rich-text-area/styled.d.ts.map +1 -1
  123. package/dist/components/rich-text-field/components/formatting-toolbar-plugin.d.ts +9 -2
  124. package/dist/components/rich-text-field/components/formatting-toolbar-plugin.d.ts.map +1 -1
  125. package/dist/components/rich-text-field/components/index.d.ts +5 -5
  126. package/dist/components/rich-text-field/components/index.d.ts.map +1 -1
  127. package/dist/components/rich-text-field/components/text-color-button.d.ts +12 -1
  128. package/dist/components/rich-text-field/components/text-color-button.d.ts.map +1 -1
  129. package/dist/components/rich-text-field/rich-text-field.d.ts +22 -0
  130. package/dist/components/rich-text-field/rich-text-field.d.ts.map +1 -1
  131. package/dist/components/rich-text-field/rich-text-field.stories.d.ts +28 -1
  132. package/dist/components/rich-text-field/rich-text-field.stories.d.ts.map +1 -1
  133. package/dist/components/topmenu/index.d.ts +2 -0
  134. package/dist/components/topmenu/index.d.ts.map +1 -0
  135. package/dist/components/topmenu/topmenu.d.ts +22 -0
  136. package/dist/components/topmenu/topmenu.d.ts.map +1 -0
  137. package/dist/components/topmenu/topmenu.stories.d.ts +31 -0
  138. package/dist/components/topmenu/topmenu.stories.d.ts.map +1 -0
  139. package/dist/docs/agent.stories.d.ts.map +1 -1
  140. package/dist/docs/chat-panel.d.ts +7 -5
  141. package/dist/docs/chat-panel.d.ts.map +1 -1
  142. package/dist/docs/chatbot-panel.d.ts.map +1 -1
  143. package/dist/docs/chatbot.stories.d.ts.map +1 -1
  144. package/dist/index.css +1 -1
  145. package/dist/index.es.js +1801 -1806
  146. package/dist/index.es.js.map +1 -1
  147. package/dist/layouts/chat-card-list-layout/chat-card-list-layout.d.ts +9 -7
  148. package/dist/layouts/chat-card-list-layout/chat-card-list-layout.d.ts.map +1 -1
  149. package/dist/layouts/chat-card-list-layout/chat-card-list-layout.stories.d.ts +37 -9
  150. package/dist/layouts/chat-card-list-layout/chat-card-list-layout.stories.d.ts.map +1 -1
  151. package/dist/layouts/chat-card-three-column-layout/chat-card-three-column-layout.stories.d.ts +41 -16
  152. package/dist/layouts/chat-card-three-column-layout/chat-card-three-column-layout.stories.d.ts.map +1 -1
  153. package/dist/layouts/chat-card-two-column-layout/chat-card-two-column-layout.d.ts +6 -0
  154. package/dist/layouts/chat-card-two-column-layout/chat-card-two-column-layout.d.ts.map +1 -1
  155. package/dist/layouts/chat-card-two-column-layout/chat-card-two-column-layout.stories.d.ts +22 -1
  156. package/dist/layouts/chat-card-two-column-layout/chat-card-two-column-layout.stories.d.ts.map +1 -1
  157. package/package.json +16 -10
  158. package/src/__storybook__/parent-block.tsx +21 -0
  159. package/src/components/canvas-shell/__stories__/canvas-panel.tsx +25 -0
  160. package/src/components/canvas-shell/__stories__/document-list.tsx +29 -0
  161. package/src/components/canvas-shell/__stories__/fixtures.ts +222 -0
  162. package/src/components/canvas-shell/__stories__/holdings-table.tsx +56 -0
  163. package/src/components/canvas-shell/__stories__/types.ts +47 -0
  164. package/src/components/canvas-shell/{canvas-shell.test.tsx → __tests__/canvas-shell.spec.tsx} +1 -1
  165. package/src/components/canvas-shell/canvas-shell.json +24 -0
  166. package/src/components/canvas-shell/canvas-shell.stories.tsx +581 -122
  167. package/src/components/canvas-shell/canvas-shell.tsx +44 -17
  168. package/src/components/chat-card/__stories__/fixtures.ts +119 -0
  169. package/src/components/chat-card/__stories__/types.ts +44 -0
  170. package/src/components/chat-card/chat-card.json +67 -3
  171. package/src/components/chat-card/chat-card.stories.tsx +872 -148
  172. package/src/components/chat-card/chat-card.tsx +2 -0
  173. package/src/components/chat-card/components/chat-card-body.tsx +12 -0
  174. package/src/components/chat-card/components/chat-card-footer.tsx +11 -0
  175. package/src/components/chat-card/components/chat-card-form.tsx +21 -2
  176. package/src/components/chat-card/components/chat-card-header.tsx +39 -2
  177. package/src/components/chat-card/contexts.tsx +2 -0
  178. package/src/components/chat-card/hooks.ts +1 -0
  179. package/src/components/chat-card/types.ts +3 -0
  180. package/src/components/chat-card-container/__stories__/fixtures.ts +54 -0
  181. package/src/components/chat-card-container/__stories__/resizable-chat-window.tsx +19 -0
  182. package/src/components/chat-card-container/__stories__/result-card.tsx +31 -0
  183. package/src/components/chat-card-container/__stories__/types.ts +16 -0
  184. package/src/components/chat-card-container/chat-card-container.json +7 -0
  185. package/src/components/chat-card-container/chat-card-container.stories.tsx +209 -56
  186. package/src/components/chat-card-container/chat-card-container.tsx +5 -0
  187. package/src/components/chat-container/__stories__/chat-composer.tsx +67 -0
  188. package/src/components/chat-container/__stories__/fixtures.ts +27 -0
  189. package/src/components/chat-container/__stories__/measure.ts +22 -0
  190. package/src/components/chat-container/__stories__/types.ts +7 -0
  191. package/src/components/chat-container/__stories__/variable-readout.tsx +64 -0
  192. package/src/components/chat-container/chat-container.json +9 -1
  193. package/src/components/chat-container/chat-container.stories.tsx +538 -106
  194. package/src/components/chat-container/chat-container.tsx +3 -0
  195. package/src/components/chat-input/__stories__/fixtures.ts +31 -0
  196. package/src/components/chat-input/__tests__/chat-input.spec.tsx +100 -0
  197. package/src/components/chat-input/chat-input.json +11 -2
  198. package/src/components/chat-input/chat-input.stories.tsx +660 -197
  199. package/src/components/chat-input/chat-input.tsx +39 -5
  200. package/src/components/chat-input/plugins/controlled-value-plugin.tsx +16 -3
  201. package/src/components/chat-input/plugins/value-plugin.tsx +19 -4
  202. package/src/components/chat-list/__stories__/chat-row.tsx +41 -0
  203. package/src/components/chat-list/__stories__/fixtures.ts +94 -0
  204. package/src/components/chat-list/__stories__/types.ts +13 -0
  205. package/src/components/chat-list/chat-list-item.tsx +6 -0
  206. package/src/components/chat-list/chat-list-items.tsx +16 -0
  207. package/src/components/chat-list/chat-list.json +24 -2
  208. package/src/components/chat-list/chat-list.stories.tsx +631 -215
  209. package/src/components/chat-list/chat-list.tsx +51 -4
  210. package/src/components/chat-message/__stories__/fixtures.ts +53 -0
  211. package/src/components/chat-message/__stories__/sent-attachment.tsx +22 -0
  212. package/src/components/chat-message/__stories__/tool-steps.tsx +37 -0
  213. package/src/components/chat-message/chat-message.json +10 -1
  214. package/src/components/chat-message/chat-message.stories.tsx +282 -20
  215. package/src/components/chat-message/chat-message.tsx +16 -1
  216. package/src/components/chat-message/index.ts +8 -1
  217. package/src/components/chat-message-attachment-card/__stories__/fixtures.ts +30 -0
  218. package/src/components/chat-message-attachment-card/__stories__/types.ts +14 -0
  219. package/src/components/chat-message-attachment-card/chat-message-attachment-card-icon.tsx +4 -0
  220. package/src/components/chat-message-attachment-card/chat-message-attachment-card.json +20 -0
  221. package/src/components/chat-message-attachment-card/chat-message-attachment-card.stories.tsx +266 -51
  222. package/src/components/chat-message-attachment-card/chat-message-attachment-card.tsx +37 -4
  223. package/src/components/chat-message-attachment-card/index.ts +6 -0
  224. package/src/components/chat-message-attachment-card/utils.ts +1 -0
  225. package/src/components/chat-message-response/__stories__/fixtures.ts +50 -0
  226. package/src/components/chat-message-response/chat-message-response.json +5 -0
  227. package/src/components/chat-message-response/chat-message-response.stories.tsx +135 -26
  228. package/src/components/chat-message-toolbar/chat-message-toolbar.json +21 -3
  229. package/src/components/chat-message-toolbar/chat-message-toolbar.stories.tsx +377 -6
  230. package/src/components/chat-message-toolbar/chat-message-toolbar.tsx +47 -12
  231. package/src/components/chat-message-toolbar/index.ts +4 -0
  232. package/src/components/chat-messages/__stories__/conversation-frame.tsx +25 -0
  233. package/src/components/chat-messages/__stories__/conversation-group.tsx +22 -0
  234. package/src/components/chat-messages/__stories__/fixtures.ts +70 -0
  235. package/src/components/chat-messages/__stories__/types.ts +5 -0
  236. package/src/components/chat-messages/chat-messages.json +30 -12
  237. package/src/components/chat-messages/chat-messages.stories.tsx +439 -212
  238. package/src/components/chat-messages/chat-messages.tsx +46 -3
  239. package/src/components/chat-notification-card/__stories__/fixtures.ts +38 -0
  240. package/src/components/chat-notification-card/__stories__/types.ts +13 -0
  241. package/src/components/chat-notification-card/chat-notification-card.json +52 -2
  242. package/src/components/chat-notification-card/chat-notification-card.stories.tsx +542 -62
  243. package/src/components/chat-notification-card/chat-notification-card.tsx +97 -6
  244. package/src/components/chat-notification-popup/__stories__/fixtures.ts +36 -0
  245. package/src/components/chat-notification-popup/__stories__/notification-item.tsx +93 -0
  246. package/src/components/chat-notification-popup/__stories__/types.ts +14 -0
  247. package/src/components/chat-notification-popup/chat-notification-popup.json +14 -1
  248. package/src/components/chat-notification-popup/chat-notification-popup.stories.tsx +467 -17
  249. package/src/components/chat-notification-popup/chat-notification-popup.tsx +18 -3
  250. package/src/components/chat-prompt-box/__stories__/fixtures.ts +16 -0
  251. package/src/components/chat-prompt-box/__stories__/types.ts +8 -0
  252. package/src/components/chat-prompt-box/chat-prompt-box.json +25 -2
  253. package/src/components/chat-prompt-box/chat-prompt-box.stories.tsx +535 -43
  254. package/src/components/chat-prompt-box/chat-prompt-box.tsx +73 -19
  255. package/src/components/chat-reply/chat-reply.json +10 -0
  256. package/src/components/chat-reply/chat-reply.stories.tsx +264 -21
  257. package/src/components/chat-reply/chat-reply.tsx +15 -0
  258. package/src/components/chat-reply/index.ts +10 -1
  259. package/src/components/chat-suggestion/__stories__/fixtures.ts +16 -0
  260. package/src/components/chat-suggestion/__tests__/chat-suggestion.spec.tsx +185 -0
  261. package/src/components/chat-suggestion/chat-suggestion.json +62 -20
  262. package/src/components/chat-suggestion/chat-suggestion.stories.tsx +542 -58
  263. package/src/components/chat-suggestion/chat-suggestion.tsx +154 -65
  264. package/src/components/chat-suggestion/index.ts +9 -0
  265. package/src/components/chat-thinking-process/__stories__/fixtures.ts +56 -0
  266. package/src/components/chat-thinking-process/chat-thinking-process.json +28 -3
  267. package/src/components/chat-thinking-process/chat-thinking-process.stories.tsx +354 -78
  268. package/src/components/chat-thinking-process/chat-thinking-process.tsx +55 -4
  269. package/src/components/chat-thread/__stories__/fixtures.ts +171 -0
  270. package/src/components/chat-thread/__stories__/scroll-position.ts +9 -0
  271. package/src/components/chat-thread/__stories__/snippets.ts +129 -0
  272. package/src/components/chat-thread/__stories__/thread-frame.tsx +22 -0
  273. package/src/components/chat-thread/__stories__/thread-turns.tsx +35 -0
  274. package/src/components/chat-thread/__stories__/types.ts +12 -0
  275. package/src/components/chat-thread/__stories__/use-turn-stream.ts +78 -0
  276. package/src/components/chat-thread/chat-thread.json +23 -3
  277. package/src/components/chat-thread/chat-thread.stories.tsx +804 -142
  278. package/src/components/chat-thread/chat-thread.tsx +64 -16
  279. package/src/components/index.ts +1 -3
  280. package/src/components/markdown-viewer/__stories__/fixtures.ts +67 -0
  281. package/src/components/markdown-viewer/markdown-viewer.json +7 -1
  282. package/src/components/markdown-viewer/markdown-viewer.stories.tsx +219 -50
  283. package/src/components/markdown-viewer/markdown-viewer.tsx +9 -0
  284. package/src/components/rich-text-area/__stories__/fixtures.ts +30 -0
  285. package/src/components/rich-text-area/__tests__/rich-text-area.spec.tsx +114 -0
  286. package/src/components/rich-text-area/plugins/controlled-value-plugin.tsx +20 -3
  287. package/src/components/rich-text-area/plugins/value-plugin.tsx +16 -3
  288. package/src/components/rich-text-area/rich-text-area.json +7 -4
  289. package/src/components/rich-text-area/rich-text-area.stories.tsx +597 -41
  290. package/src/components/rich-text-area/rich-text-area.tsx +27 -4
  291. package/src/components/rich-text-area/styled.tsx +11 -5
  292. package/src/components/rich-text-field/__stories__/fixtures.ts +29 -0
  293. package/src/components/rich-text-field/components/formatting-toolbar-plugin.tsx +10 -1
  294. package/src/components/rich-text-field/components/index.ts +8 -5
  295. package/src/components/rich-text-field/components/text-color-button.tsx +16 -2
  296. package/src/components/rich-text-field/rich-text-field.json +3 -1
  297. package/src/components/rich-text-field/rich-text-field.stories.tsx +452 -61
  298. package/src/components/rich-text-field/rich-text-field.tsx +23 -0
  299. package/src/components/topmenu/index.ts +1 -0
  300. package/src/components/topmenu/topmenu.json +107 -0
  301. package/src/components/topmenu/topmenu.stories.tsx +334 -0
  302. package/src/components/topmenu/topmenu.tsx +71 -0
  303. package/src/docs/agent.stories.tsx +16 -16
  304. package/src/docs/chat-panel.tsx +37 -32
  305. package/src/docs/chatbot-panel.tsx +11 -2
  306. package/src/docs/chatbot.mdx +17 -12
  307. package/src/docs/chatbot.stories.tsx +7 -8
  308. package/src/layouts/chat-card-list-layout/__stories__/fixtures.ts +112 -0
  309. package/src/layouts/chat-card-list-layout/__stories__/result-card.tsx +36 -0
  310. package/src/layouts/chat-card-list-layout/__stories__/types.ts +31 -0
  311. package/src/layouts/chat-card-list-layout/chat-card-list-layout.json +14 -1
  312. package/src/layouts/chat-card-list-layout/chat-card-list-layout.stories.tsx +316 -84
  313. package/src/layouts/chat-card-list-layout/chat-card-list-layout.tsx +11 -7
  314. package/src/layouts/chat-card-three-column-layout/__stories__/fixtures.ts +117 -0
  315. package/src/layouts/chat-card-three-column-layout/__stories__/resizable-chat-window.tsx +18 -0
  316. package/src/layouts/chat-card-three-column-layout/__stories__/stay-details.tsx +85 -0
  317. package/src/layouts/chat-card-three-column-layout/__stories__/stay-list.tsx +50 -0
  318. package/src/layouts/chat-card-three-column-layout/__stories__/stay-map.tsx +44 -0
  319. package/src/layouts/chat-card-three-column-layout/__stories__/stay-rooms.tsx +61 -0
  320. package/src/layouts/chat-card-three-column-layout/__stories__/types.ts +35 -0
  321. package/src/layouts/chat-card-three-column-layout/chat-card-three-column-layout.json +16 -0
  322. package/src/layouts/chat-card-three-column-layout/chat-card-three-column-layout.stories.tsx +603 -182
  323. package/src/layouts/chat-card-two-column-layout/__stories__/connection-itinerary.tsx +51 -0
  324. package/src/layouts/chat-card-two-column-layout/__stories__/fixtures.ts +83 -0
  325. package/src/layouts/chat-card-two-column-layout/__stories__/route-map.tsx +24 -0
  326. package/src/layouts/chat-card-two-column-layout/__stories__/types.ts +15 -0
  327. package/src/layouts/chat-card-two-column-layout/chat-card-two-column-layout.json +13 -1
  328. package/src/layouts/chat-card-two-column-layout/chat-card-two-column-layout.stories.tsx +368 -67
  329. package/src/layouts/chat-card-two-column-layout/chat-card-two-column-layout.tsx +11 -2
  330. package/dist/components/card-item-picker/card-item-picker-context.d.ts +0 -21
  331. package/dist/components/card-item-picker/card-item-picker-context.d.ts.map +0 -1
  332. package/dist/components/card-item-picker/card-item-picker-list.d.ts +0 -24
  333. package/dist/components/card-item-picker/card-item-picker-list.d.ts.map +0 -1
  334. package/dist/components/card-item-picker/card-item-picker-row-parts.d.ts +0 -28
  335. package/dist/components/card-item-picker/card-item-picker-row-parts.d.ts.map +0 -1
  336. package/dist/components/card-item-picker/card-item-picker-row.d.ts +0 -12
  337. package/dist/components/card-item-picker/card-item-picker-row.d.ts.map +0 -1
  338. package/dist/components/card-item-picker/card-item-picker.stories.d.ts +0 -19
  339. package/dist/components/card-item-picker/card-item-picker.stories.d.ts.map +0 -1
  340. package/dist/components/card-item-picker/index.d.ts +0 -9
  341. package/dist/components/card-item-picker/index.d.ts.map +0 -1
  342. package/dist/components/chat-message-history/chat-message-history.d.ts +0 -48
  343. package/dist/components/chat-message-history/chat-message-history.d.ts.map +0 -1
  344. package/dist/components/chat-message-history/chat-message-history.stories.d.ts +0 -7
  345. package/dist/components/chat-message-history/chat-message-history.stories.d.ts.map +0 -1
  346. package/dist/components/chat-message-history/index.d.ts +0 -2
  347. package/dist/components/chat-message-history/index.d.ts.map +0 -1
  348. package/dist/components/spinner/index.d.ts +0 -2
  349. package/dist/components/spinner/index.d.ts.map +0 -1
  350. package/dist/components/spinner/spinner.d.ts +0 -9
  351. package/dist/components/spinner/spinner.d.ts.map +0 -1
  352. package/dist/components/spinner/spinner.stories.d.ts +0 -8
  353. package/dist/components/spinner/spinner.stories.d.ts.map +0 -1
  354. package/src/components/card-item-picker/__tests__/card-item-picker.spec.tsx +0 -279
  355. package/src/components/card-item-picker/card-item-picker-context.tsx +0 -44
  356. package/src/components/card-item-picker/card-item-picker-list.tsx +0 -95
  357. package/src/components/card-item-picker/card-item-picker-row-parts.tsx +0 -96
  358. package/src/components/card-item-picker/card-item-picker-row.tsx +0 -109
  359. package/src/components/card-item-picker/card-item-picker.json +0 -147
  360. package/src/components/card-item-picker/card-item-picker.stories.tsx +0 -158
  361. package/src/components/card-item-picker/index.ts +0 -24
  362. package/src/components/chat-message-history/chat-message-history.json +0 -99
  363. package/src/components/chat-message-history/chat-message-history.stories.tsx +0 -136
  364. package/src/components/chat-message-history/chat-message-history.tsx +0 -277
  365. package/src/components/chat-message-history/index.ts +0 -13
  366. package/src/components/spinner/index.ts +0 -1
  367. package/src/components/spinner/spinner.json +0 -73
  368. package/src/components/spinner/spinner.stories.tsx +0 -41
  369. package/src/components/spinner/spinner.tsx +0 -32
@@ -7,39 +7,45 @@ import {
7
7
  MenuProvider,
8
8
  MenuTrigger,
9
9
  Typography,
10
- cn,
11
10
  type IconButtonProps,
12
11
  type TypographyProps,
13
12
  } from '@swisper.ai/ui';
13
+ import { cn } from '@swisper.ai/web-core';
14
14
 
15
- // TODO: move this module to @swisper.ai/web-chat-ui, then switch the consumers to it and delete it here.
16
-
17
- export type CanvasShellProps = ComponentProps<'section'>;
15
+ export interface CanvasShellProps extends ComponentProps<'section'> {}
18
16
 
19
17
  /**
20
18
  * Three-row grid: header and footer size to their content, the content row takes the rest.
21
19
  * `minmax(0,1fr)` keeps a long list from growing the middle row past the shell's height.
20
+ * The single column is `minmax(0,1fr)` too, so a long title truncates instead of widening the header.
22
21
  */
23
- export function CanvasShell({ className, ...props }: CanvasShellProps) {
22
+ export function CanvasShell({ className, children, ...props }: CanvasShellProps) {
24
23
  return (
25
24
  <section
26
25
  data-slot="canvas-shell"
27
26
  className={cn(
28
- 'grid grid-rows-[auto_minmax(0,1fr)_auto]',
27
+ 'grid grid-cols-1 grid-rows-[auto_minmax(0,1fr)_auto]',
29
28
  'h-full overflow-hidden',
30
29
  className,
31
30
  )}
32
31
  {...props}
33
- />
32
+ >
33
+ {children}
34
+ </section>
34
35
  );
35
36
  }
36
37
 
37
38
  export interface CanvasShellHeaderProps extends ComponentProps<'header'> {
39
+ /** Draw the separator under the header. Set false for a header that blends into the content. */
38
40
  hasBorder?: boolean;
39
41
  }
40
42
 
43
+ /**
44
+ * Static top row: the title, then the panel's icon buttons.
45
+ */
41
46
  export function CanvasShellHeader({
42
47
  className,
48
+ children,
43
49
  hasBorder = true,
44
50
  ...props
45
51
  }: CanvasShellHeaderProps) {
@@ -55,13 +61,18 @@ export function CanvasShellHeader({
55
61
  className,
56
62
  )}
57
63
  {...props}
58
- />
64
+ >
65
+ {children}
66
+ </header>
59
67
  );
60
68
  }
61
69
 
62
- export type CanvasShellTitleProps = Omit<TypographyProps, 'variant'>;
70
+ export interface CanvasShellTitleProps extends Omit<TypographyProps, 'variant'> {}
63
71
 
64
- export function CanvasShellTitle({ className, ...props }: CanvasShellTitleProps) {
72
+ /**
73
+ * Name of what the canvas shows. Takes the header's free width and truncates to one line.
74
+ */
75
+ export function CanvasShellTitle({ className, children, ...props }: CanvasShellTitleProps) {
65
76
  return (
66
77
  <Typography
67
78
  data-slot="canvas-shell-title"
@@ -69,11 +80,13 @@ export function CanvasShellTitle({ className, ...props }: CanvasShellTitleProps)
69
80
  fontWeight="normal"
70
81
  className={cn('flex-1 min-w-0 truncate', className)}
71
82
  {...props}
72
- />
83
+ >
84
+ {children}
85
+ </Typography>
73
86
  );
74
87
  }
75
88
 
76
- export type CanvasShellCloseTriggerProps = IconButtonProps;
89
+ export interface CanvasShellCloseTriggerProps extends IconButtonProps {}
77
90
 
78
91
  /**
79
92
  * Icon-only close button; the host decides what closing means through `onClick`.
@@ -142,6 +155,7 @@ export interface CanvasShellOptionsButtonProps extends Omit<IconButtonProps, 'ch
142
155
  children: ReactNode;
143
156
  /** Classes for the dropdown panel. */
144
157
  menuClassName?: string;
158
+ /** Called with the menu's next open state. */
145
159
  onOpenChange?: (isOpen: boolean) => void;
146
160
  }
147
161
 
@@ -184,13 +198,15 @@ export function CanvasShellOptionsButton({
184
198
  }
185
199
 
186
200
  export interface CanvasShellContentProps extends ComponentProps<'div'> {
201
+ /** Classes for the inner body, the element that pads and scrolls the children. */
202
+ bodyClassName?: string;
187
203
  /**
188
204
  * Apply the shell's horizontal padding (`canvasShellContentPadding`).
189
205
  * Set false for edge-to-edge children that pad themselves.
190
206
  */
191
207
  hasPadding?: boolean;
192
208
  /**
193
- * Scroll children that overflow the region, on either axis, with always-visible scrollbars.
209
+ * Scroll children that overflow the region, on either axis.
194
210
  * When false, the region clips overflow: for children that scroll themselves.
195
211
  */
196
212
  hasScroll?: boolean;
@@ -201,11 +217,16 @@ export interface CanvasShellContentProps extends ComponentProps<'div'> {
201
217
  */
202
218
  export const canvasShellContentPadding = 'px-[12px] md:px-[16px]';
203
219
 
220
+ /**
221
+ * Middle row, the only part that moves: it scrolls or clips its children inside the shell's height.
222
+ * `className` goes to the region, `bodyClassName` to the inner element that pads and scrolls.
223
+ */
204
224
  export function CanvasShellContent({
205
225
  className,
226
+ children,
227
+ bodyClassName,
206
228
  hasPadding = true,
207
229
  hasScroll = true,
208
- children,
209
230
  ...props
210
231
  }: CanvasShellContentProps) {
211
232
  return (
@@ -223,6 +244,7 @@ export function CanvasShellContent({
223
244
  'py-[16px]',
224
245
  hasPadding && canvasShellContentPadding,
225
246
  hasScroll ? 'overflow-auto' : 'overflow-hidden',
247
+ bodyClassName,
226
248
  )}
227
249
  >
228
250
  {children}
@@ -231,9 +253,12 @@ export function CanvasShellContent({
231
253
  );
232
254
  }
233
255
 
234
- export type CanvasShellFooterProps = ComponentProps<'footer'>;
256
+ export interface CanvasShellFooterProps extends ComponentProps<'footer'> {}
235
257
 
236
- export function CanvasShellFooter({ className, ...props }: CanvasShellFooterProps) {
258
+ /**
259
+ * Static bottom row; lines its children up at the end. Stack them with `flex-col items-stretch`.
260
+ */
261
+ export function CanvasShellFooter({ className, children, ...props }: CanvasShellFooterProps) {
237
262
  return (
238
263
  <footer
239
264
  data-slot="canvas-shell-footer"
@@ -245,6 +270,8 @@ export function CanvasShellFooter({ className, ...props }: CanvasShellFooterProp
245
270
  className,
246
271
  )}
247
272
  {...props}
248
- />
273
+ >
274
+ {children}
275
+ </footer>
249
276
  );
250
277
  }
@@ -0,0 +1,119 @@
1
+ import type { EmailMessage, ForecastDay, NewsArticle, TripConnection, TripStop } from './types';
2
+
3
+ // The reply the assistant drafted; the user reviews it before it is sent.
4
+ export const EMAIL_DRAFT: EmailMessage = {
5
+ id: 'email_draft_01',
6
+ subject: 'Re: Offsite agenda and travel details',
7
+ from: 'mara.lindt@company.com',
8
+ to: ['nora.keller@company.com'],
9
+ cc: ['jonas.frei@company.com', 'elif.aydin@company.com', 'tobias.maurer@company.com'],
10
+ date: 'Oct 27, 14:00',
11
+ body: 'Hi Nora,\n\nThe agenda works for me. I will take the 08:02 from Zürich HB on Tuesday and arrive in Interlaken at 10:01, in time for the kick-off.\n\nBest,\nMara',
12
+ };
13
+
14
+ // An inbox search result: several e-mails, one with a subject long enough to wrap.
15
+ export const INBOX_EMAILS: EmailMessage[] = [
16
+ {
17
+ id: 'email_01',
18
+ subject: 'Offsite agenda and travel details',
19
+ from: 'nora.keller@company.com',
20
+ to: ['mara.lindt@company.com'],
21
+ cc: [],
22
+ date: 'Oct 27, 09:12',
23
+ body: 'Hi Mara,\n\nThe kick-off starts at 10:30 on Tuesday in Interlaken. Could you confirm which train you are taking?\n\nNora',
24
+ },
25
+ {
26
+ id: 'email_02',
27
+ subject:
28
+ 'Re: Fwd: Updated quote for the Interlaken team retreat, including the revised room allocation and airport transfers',
29
+ from: 'events@lakeside-hotel.example',
30
+ to: ['nora.keller@company.com'],
31
+ cc: ['mara.lindt@company.com'],
32
+ date: 'Oct 26, 17:45',
33
+ body: 'Dear Ms Keller,\n\nPlease find the updated quote for 14 guests attached. The offer is valid until Friday.',
34
+ },
35
+ {
36
+ id: 'email_03',
37
+ subject: 'Your half-fare travelcard renews next month',
38
+ from: 'no-reply@rail.example',
39
+ to: ['mara.lindt@company.com'],
40
+ cc: [],
41
+ date: 'Oct 24, 08:00',
42
+ body: 'Your half-fare travelcard renews on Nov 30. No action is needed.',
43
+ },
44
+ {
45
+ id: 'email_04',
46
+ subject: 'Invoice 2026-0418 is ready',
47
+ from: 'billing@lakeside-hotel.example',
48
+ to: ['mara.lindt@company.com'],
49
+ cc: [],
50
+ date: 'Oct 22, 11:30',
51
+ body: '',
52
+ },
53
+ ];
54
+
55
+ // The connections of one trip, outbound and return.
56
+ export const TRIP_CONNECTIONS: TripConnection[] = [
57
+ {
58
+ id: 'conn_01',
59
+ route: 'Zürich HB → Interlaken Ost',
60
+ date: 'Tue, Oct 15',
61
+ times: '08:02 – 10:01',
62
+ duration: '1 h 59 min',
63
+ changes: '1 change',
64
+ fare: '2nd class • Half-fare',
65
+ price: 'CHF 33.00',
66
+ },
67
+ {
68
+ id: 'conn_02',
69
+ route: 'Interlaken Ost → Zürich HB',
70
+ date: 'Sat, Oct 19',
71
+ times: '16:00 – 17:58',
72
+ duration: '1 h 58 min',
73
+ changes: '1 change',
74
+ fare: '2nd class • Half-fare',
75
+ price: 'CHF 33.00',
76
+ },
77
+ ];
78
+
79
+ export const TRIP_STOPS: TripStop[] = [
80
+ { time: '08:02', station: 'Zürich HB', platform: 'Platform 32' },
81
+ { time: '08:58', station: 'Bern', platform: 'Platform 6' },
82
+ { time: '09:04', station: 'Bern', platform: 'Platform 4' },
83
+ { time: '10:01', station: 'Interlaken Ost', platform: null },
84
+ ];
85
+
86
+ export const WEEKEND_FORECAST: ForecastDay[] = [
87
+ { day: 'Fri', summary: 'Sunny', temperature: '14° / 6°' },
88
+ { day: 'Sat', summary: 'Light rain', temperature: '11° / 5°' },
89
+ { day: 'Sun', summary: 'Partly cloudy', temperature: '12° / 4°' },
90
+ ];
91
+
92
+ export const NEWS_ARTICLES: NewsArticle[] = [
93
+ {
94
+ id: 'news_01',
95
+ sourceName: 'Alpine Daily',
96
+ headline: 'New direct trains link Zürich and Interlaken from December',
97
+ publishedAt: '2 hours ago',
98
+ },
99
+ {
100
+ id: 'news_02',
101
+ sourceName: 'The Rail Gazette',
102
+ headline:
103
+ 'Timetable change: what the longer stop in Bern means for travellers heading to the Bernese Oberland this winter',
104
+ publishedAt: 'Yesterday',
105
+ },
106
+ {
107
+ id: 'news_03',
108
+ sourceName: 'Lakeside Post',
109
+ headline: 'Interlaken opens its winter season early',
110
+ publishedAt: '3 days ago',
111
+ },
112
+ ];
113
+
114
+ export const CODE_SNIPPET = `export function formatFare(amount: number) {
115
+ return new Intl.NumberFormat('de-CH', {
116
+ style: 'currency',
117
+ currency: 'CHF',
118
+ }).format(amount);
119
+ }`;
@@ -0,0 +1,44 @@
1
+ /** An e-mail as the e-mail cards receive it, with the date already formatted for the header. */
2
+ export interface EmailMessage {
3
+ id: string;
4
+ subject: string;
5
+ from: string;
6
+ to: string[];
7
+ cc: string[];
8
+ date: string;
9
+ body: string;
10
+ }
11
+
12
+ /** One train connection of a trip, as the booking and connection cards show it. */
13
+ export interface TripConnection {
14
+ id: string;
15
+ route: string;
16
+ date: string;
17
+ times: string;
18
+ duration: string;
19
+ changes: string;
20
+ fare: string;
21
+ price: string;
22
+ }
23
+
24
+ /** One stop of a connection's timeline. */
25
+ export interface TripStop {
26
+ time: string;
27
+ station: string;
28
+ platform: string | null;
29
+ }
30
+
31
+ /** One day of a weather forecast. */
32
+ export interface ForecastDay {
33
+ day: string;
34
+ summary: string;
35
+ temperature: string;
36
+ }
37
+
38
+ /** A news article as the news cards list it. */
39
+ export interface NewsArticle {
40
+ id: string;
41
+ sourceName: string;
42
+ headline: string;
43
+ publishedAt: string;
44
+ }
@@ -2,12 +2,71 @@
2
2
  "$schema": "../../../../int-eslint-config/schemas/component.schema.json",
3
3
  "component": "chat-card",
4
4
  "purpose": "Collapsible card that presents a structured result inside a chat answer (a booking, a draft, a list of options), with header, body, footer and collapsed-preview slots.",
5
+ "anatomy": [
6
+ "import {",
7
+ " ChatCard,",
8
+ " ChatCardHeader,",
9
+ " ChatCardIcon,",
10
+ " ChatCardHeaderContent,",
11
+ " ChatCardTitle,",
12
+ " ChatCardSubTitle,",
13
+ " ChatCardActions,",
14
+ " ChatCardActionButton,",
15
+ " ChatCardCollapsibleButton,",
16
+ " ChatCardBody,",
17
+ " ChatCardMedia,",
18
+ " ChatCardContent,",
19
+ " ChatCardForm,",
20
+ " ChatCardAttributes,",
21
+ " ChatCardAttribute,",
22
+ " ChatCardAttributeLabel,",
23
+ " ChatCardAttributeValue,",
24
+ " ChatCardFooter,",
25
+ " ChatCardFooterNotes,",
26
+ " ChatCardFooterPrice,",
27
+ " ChatCardFooterActions,",
28
+ " ChatCardPreview,",
29
+ "} from '@swisper.ai/web-chat-ui';",
30
+ "",
31
+ "<ChatCard>",
32
+ " <ChatCardHeader>",
33
+ " <ChatCardIcon />",
34
+ " <ChatCardHeaderContent>",
35
+ " <ChatCardTitle />",
36
+ " <ChatCardSubTitle />",
37
+ " </ChatCardHeaderContent>",
38
+ " <ChatCardActions>",
39
+ " <ChatCardActionButton />",
40
+ " <ChatCardCollapsibleButton />",
41
+ " </ChatCardActions>",
42
+ " </ChatCardHeader>",
43
+ " <ChatCardBody>",
44
+ " <ChatCardMedia />",
45
+ " <ChatCardContent />",
46
+ " <ChatCardForm>",
47
+ " <ChatCardAttributes>",
48
+ " <ChatCardAttribute>",
49
+ " <ChatCardAttributeLabel />",
50
+ " <ChatCardAttributeValue />",
51
+ " </ChatCardAttribute>",
52
+ " </ChatCardAttributes>",
53
+ " </ChatCardForm>",
54
+ " <ChatCardFooter>",
55
+ " <ChatCardFooterNotes />",
56
+ " <ChatCardFooterPrice />",
57
+ " <ChatCardFooterActions />",
58
+ " </ChatCardFooter>",
59
+ " </ChatCardBody>",
60
+ " <ChatCardPreview />",
61
+ "</ChatCard>"
62
+ ],
5
63
  "useWhen": [
6
64
  "The assistant returns a structured object the user reviews or acts on: a booking summary, a drafted e-mail, a trip plan, a set of options",
7
65
  "The result is long enough that the user should be able to collapse it and keep reading the conversation",
8
66
  "A card inside a chat card needs its own header and footer — nest a level 2 ChatCard inside ChatCardContent"
9
67
  ],
10
68
  "avoidWhen": [
69
+ "Deprecated — use cards-ui/card for new code; ChatCard stays only so existing imports keep compiling",
11
70
  "Plain prose or Markdown in an answer — render it with web-chat-ui/markdown-viewer inside the message",
12
71
  "Content outside a chat surface (dashboards, settings pages) — use ui/card instead",
13
72
  "A file the user attached to a message — use web-chat-ui/chat-message-attachment-card instead",
@@ -66,7 +125,9 @@
66
125
  "ChatCardForm, ChatCardAttributes, ChatCardAttribute, ChatCardAttributeLabel (an outlined info Chip) and ChatCardAttributeValue lay out a label/value summary such as e-mail headers inside the body",
67
126
  "ChatCardMedia is a fixed 222px-high figure for an image or map",
68
127
  "useEditChatCard (or EditableChatCardContextProvider plus useEditableChatCardContext) holds isEditing with startEdit, discard and toggleEdit; with isEditable=false each call logs a warning and does nothing. Pair isEditing with isSelected",
69
- "Every part throws when rendered outside a ChatCard"
128
+ "The parts that read the card's level or collapse state (ChatCardHeader, ChatCardIcon, ChatCardHeaderContent, ChatCardActions, ChatCardCollapsibleButton, ChatCardContent, ChatCardPreview, ChatCardFooter) throw when rendered outside a ChatCard, and ChatCardBody throws outside the Collapsible the root provides; the remaining parts are plain layout and render anywhere",
129
+ "Every part takes className, merged after its own classes so a consumer's class wins. The root and each part carry data-slot=chat-card-<part> (ChatCardTitle, ChatCardSubTitle and ChatCardAttributeValue render a ui Typography and keep its data-slot=typography). ChatCardHeader's inner row, data-slot=chat-card-header-hover-area, is styled through hoverAreaClassName",
130
+ "The parts that read the context publish it as attributes for styling: data-level on ChatCardHeader, ChatCardIcon, ChatCardHeaderContent, ChatCardActions, ChatCardContent, ChatCardPreview and ChatCardFooter, and data-collapsible on ChatCardHeader"
70
131
  ]
71
132
  },
72
133
  "composition": {
@@ -90,13 +151,15 @@
90
151
  "web-chat-ui/ChatCardMedia",
91
152
  "web-chat-ui/ChatCardForm",
92
153
  "web-chat-ui/ChatCardAttributes",
154
+ "web-chat-ui/ChatCardAttribute",
155
+ "web-chat-ui/ChatCardAttributeLabel",
156
+ "web-chat-ui/ChatCardAttributeValue",
93
157
  "web-chat-ui/ChatCardFooter",
94
158
  "web-chat-ui/ChatCardFooterNotes",
95
159
  "web-chat-ui/ChatCardFooterPrice",
96
160
  "web-chat-ui/ChatCardFooterActions",
97
161
  "web-chat-ui/chat-card-two-column-layout",
98
- "web-chat-ui/chat-card-three-column-layout",
99
- "web-chat-ui/card-item-picker"
162
+ "web-chat-ui/chat-card-three-column-layout"
100
163
  ],
101
164
  "avoidCombinations": [
102
165
  "Nesting deeper than level 2 — there is no level 3; restructure the content instead",
@@ -141,6 +204,7 @@
141
204
  }
142
205
  ],
143
206
  "relatedComponents": [
207
+ "cards-ui/card",
144
208
  "web-chat-ui/chat-card-container",
145
209
  "web-chat-ui/chat-card-list-layout",
146
210
  "web-chat-ui/chat-card-two-column-layout",