@flamingo-stack/openframe-frontend-core 0.0.825 → 0.0.826

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 (317) hide show
  1. package/dist/build/export-map.json +1 -1
  2. package/dist/{case-study-card-IZBMHA6R.cjs → case-study-card-O4IQCJAX.cjs} +5 -5
  3. package/dist/{chunk-QOAA7ZHB.cjs → chunk-2HQNXX2K.cjs} +2 -2
  4. package/dist/{chunk-2U7GXE3T.cjs → chunk-2TQJSB62.cjs} +2157 -811
  5. package/dist/{chunk-NONMZ5WJ.cjs → chunk-2VLPXUQK.cjs} +14 -83
  6. package/dist/{chunk-7DJWIVQC.cjs → chunk-37OYBX7W.cjs} +36 -36
  7. package/dist/{chunk-OBQ5WUNG.cjs → chunk-3B6ZE4EZ.cjs} +29 -29
  8. package/dist/{chunk-AO6YVNAH.cjs → chunk-5AQKXEMI.cjs} +979 -1357
  9. package/dist/{chunk-25HBH4J6.cjs → chunk-5BM7X4GA.cjs} +2 -2
  10. package/dist/{chunk-47SHKOCY.cjs → chunk-63T2KKDZ.cjs} +86 -86
  11. package/dist/{chunk-MHR4C465.cjs → chunk-6G4WRMEM.cjs} +3 -3
  12. package/dist/{chunk-AUBR3FGY.cjs → chunk-74GWFGH2.cjs} +28 -28
  13. package/dist/{chunk-467T3LCG.cjs → chunk-7PZQ7SHB.cjs} +49 -32
  14. package/dist/{chunk-6LVJKPR3.cjs → chunk-AJM4YZTW.cjs} +8 -8
  15. package/dist/{chunk-2XLPRW7V.cjs → chunk-BIG3O33P.cjs} +6 -2
  16. package/dist/chunk-BMQLM2NU.cjs +40 -0
  17. package/dist/{chunk-DVHSYPDB.cjs → chunk-DAKGX2WF.cjs} +2 -2
  18. package/dist/{chunk-2IWAHBCC.cjs → chunk-DRSFR5AC.cjs} +159 -159
  19. package/dist/{chunk-IJCSQFLD.cjs → chunk-DU6AF77X.cjs} +83 -121
  20. package/dist/{chunk-NL34HKLS.cjs → chunk-EJNDTSKY.cjs} +91 -91
  21. package/dist/{chunk-SBFBNOKU.cjs → chunk-ENMPSEEQ.cjs} +4 -4
  22. package/dist/{chunk-ZECG6GU5.cjs → chunk-F2J5WN6U.cjs} +2 -2
  23. package/dist/{chunk-BOS7OIC4.cjs → chunk-GRHF5SWL.cjs} +5 -2
  24. package/dist/{chunk-Z7BLMJEI.cjs → chunk-GZAPOCKS.cjs} +54 -54
  25. package/dist/{chunk-5S2GW6YG.cjs → chunk-HJAPXKWK.cjs} +17 -17
  26. package/dist/{chunk-P25RVNGX.cjs → chunk-HQ4FKHOO.cjs} +249 -108
  27. package/dist/{chunk-ZRDVFADQ.cjs → chunk-IBD2FPSX.cjs} +75 -9
  28. package/dist/{chunk-T266OITJ.cjs → chunk-IKWQW3YJ.cjs} +45 -45
  29. package/dist/{chunk-B7NSH7IK.cjs → chunk-IWQ2LJGW.cjs} +5 -5
  30. package/dist/{chunk-MALCUN2G.cjs → chunk-JDR72QFU.cjs} +12 -14
  31. package/dist/{chunk-EHANO6UE.cjs → chunk-K34TTZAE.cjs} +9 -129
  32. package/dist/{chunk-QDDBOCG3.cjs → chunk-KPGKTEEB.cjs} +2 -2
  33. package/dist/{chunk-4IY5FKYL.cjs → chunk-MDEOCOIE.cjs} +23 -23
  34. package/dist/chunk-OEP5KAT6.cjs +56 -0
  35. package/dist/chunk-OT6P57ZS.cjs +94 -0
  36. package/dist/{chunk-QQT23JJ7.cjs → chunk-PBHP3FHO.cjs} +4 -4
  37. package/dist/{chunk-IMMTH3F3.cjs → chunk-PJY3SYCS.cjs} +29 -27
  38. package/dist/{chunk-N7IDLF2G.cjs → chunk-PWAKRRRO.cjs} +1283 -268
  39. package/dist/{chunk-UEULXVW2.cjs → chunk-QS6AKUUL.cjs} +22 -22
  40. package/dist/{chunk-BN7QENV7.cjs → chunk-QYJZDEG7.cjs} +6 -6
  41. package/dist/{chunk-NPNZAAOB.cjs → chunk-S6UJEW4G.cjs} +2 -2
  42. package/dist/{chunk-XJMLZ63Y.cjs → chunk-TJG2BJ5J.cjs} +4 -4
  43. package/dist/{chunk-QOOMUGF2.cjs → chunk-TYJ73DHW.cjs} +15 -15
  44. package/dist/{chunk-A34UNP5V.cjs → chunk-W4VEDSAX.cjs} +80 -11
  45. package/dist/{chunk-DNZCSPMU.cjs → chunk-WGMU45NV.cjs} +20 -20
  46. package/dist/{chunk-APTFXX2C.cjs → chunk-XDHQC4XH.cjs} +46 -46
  47. package/dist/{cloud-tenants-M4VFFN33.cjs → cloud-tenants-F67KQ5GC.cjs} +108 -106
  48. package/dist/components/case-studies/index.cjs +124 -122
  49. package/dist/components/chat/approval-batch-message.d.ts.map +1 -1
  50. package/dist/components/chat/approval-batch-message.js +2 -2
  51. package/dist/components/chat/chat-archive-page.d.ts +7 -0
  52. package/dist/components/chat/chat-archive-page.d.ts.map +1 -1
  53. package/dist/components/chat/chat-archive-page.js +9 -0
  54. package/dist/components/chat/chat-composer.d.ts +24 -4
  55. package/dist/components/chat/chat-composer.d.ts.map +1 -1
  56. package/dist/components/chat/chat-composer.js +90 -48
  57. package/dist/components/chat/chat-context-memory-bar.d.ts +4 -1
  58. package/dist/components/chat/chat-context-memory-bar.d.ts.map +1 -1
  59. package/dist/components/chat/chat-context-memory-bar.js +8 -5
  60. package/dist/components/chat/chat-context-picker.d.ts +8 -1
  61. package/dist/components/chat/chat-context-picker.d.ts.map +1 -1
  62. package/dist/components/chat/chat-context-picker.js +32 -9
  63. package/dist/components/chat/chat-header-rename-field.d.ts +18 -0
  64. package/dist/components/chat/chat-header-rename-field.d.ts.map +1 -0
  65. package/dist/components/chat/chat-header-rename-field.js +49 -0
  66. package/dist/components/chat/chat-input.d.ts.map +1 -1
  67. package/dist/components/chat/chat-input.js +5 -0
  68. package/dist/components/chat/composer-sheet.d.ts +44 -0
  69. package/dist/components/chat/composer-sheet.d.ts.map +1 -0
  70. package/dist/components/chat/composer-sheet.js +140 -0
  71. package/dist/components/chat/embeddable-chat.d.ts +114 -1
  72. package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
  73. package/dist/components/chat/embeddable-chat.js +328 -215
  74. package/dist/components/chat/index.cjs +118 -103
  75. package/dist/components/chat/index.d.ts +6 -0
  76. package/dist/components/chat/index.d.ts.map +1 -1
  77. package/dist/components/chat/index.js +9 -0
  78. package/dist/components/chat/mingo-chat-day-groups.d.ts +18 -0
  79. package/dist/components/chat/mingo-chat-day-groups.d.ts.map +1 -0
  80. package/dist/components/chat/mingo-chat-day-groups.js +45 -0
  81. package/dist/components/chat/mingo-chat-header.d.ts +34 -6
  82. package/dist/components/chat/mingo-chat-header.d.ts.map +1 -1
  83. package/dist/components/chat/mingo-chat-header.js +44 -7
  84. package/dist/components/chat/mingo-chat-history-section.d.ts +30 -0
  85. package/dist/components/chat/mingo-chat-history-section.d.ts.map +1 -0
  86. package/dist/components/chat/mingo-chat-history-section.js +500 -0
  87. package/dist/components/chat/mingo-chat-history.d.ts +5 -2
  88. package/dist/components/chat/mingo-chat-history.d.ts.map +1 -1
  89. package/dist/components/chat/mingo-chat-history.js +26 -30
  90. package/dist/components/chat/mingo-chat-list-shared.d.ts +136 -0
  91. package/dist/components/chat/mingo-chat-list-shared.d.ts.map +1 -0
  92. package/dist/components/chat/mingo-chat-list-shared.js +76 -0
  93. package/dist/components/chat/mingo-chat-rail.d.ts +19 -51
  94. package/dist/components/chat/mingo-chat-rail.d.ts.map +1 -1
  95. package/dist/components/chat/mingo-chat-rail.js +23 -45
  96. package/dist/components/chat/mingo-edge-light.d.ts +13 -0
  97. package/dist/components/chat/mingo-edge-light.d.ts.map +1 -0
  98. package/dist/components/chat/mingo-edge-light.js +17 -0
  99. package/dist/components/chat/mingo-history-rail.d.ts +5 -4
  100. package/dist/components/chat/mingo-history-rail.d.ts.map +1 -1
  101. package/dist/components/chat/mingo-history-rail.js +5 -10
  102. package/dist/components/chat/mingo-quick-action-wall.d.ts +27 -0
  103. package/dist/components/chat/mingo-quick-action-wall.d.ts.map +1 -0
  104. package/dist/components/chat/mingo-quick-action-wall.js +41 -0
  105. package/dist/components/chat/mingo-welcome.d.ts.map +1 -1
  106. package/dist/components/chat/mingo-welcome.js +6 -20
  107. package/dist/components/chat/model-display.d.ts.map +1 -1
  108. package/dist/components/chat/model-display.js +38 -9
  109. package/dist/components/chat/tool-execution-display.d.ts.map +1 -1
  110. package/dist/components/chat/tool-execution-display.js +15 -1
  111. package/dist/components/chat/types/component.types.d.ts +13 -1
  112. package/dist/components/chat/types/component.types.d.ts.map +1 -1
  113. package/dist/components/chat/utils/chat-day-label.d.ts +8 -0
  114. package/dist/components/chat/utils/chat-day-label.d.ts.map +1 -0
  115. package/dist/components/chat/utils/chat-day-label.js +21 -0
  116. package/dist/components/contact/index.cjs +109 -107
  117. package/dist/components/docs/index.cjs +112 -110
  118. package/dist/components/embeds/index.cjs +109 -107
  119. package/dist/components/faq/index.cjs +110 -108
  120. package/dist/components/features/board/board-column.d.ts +3 -1
  121. package/dist/components/features/board/board-column.d.ts.map +1 -1
  122. package/dist/components/features/board/board-column.js +6 -2
  123. package/dist/components/features/board/board.d.ts +6 -0
  124. package/dist/components/features/board/board.d.ts.map +1 -1
  125. package/dist/components/features/board/board.js +14 -3
  126. package/dist/components/features/board/touch-board.d.ts +1 -1
  127. package/dist/components/features/board/touch-board.d.ts.map +1 -1
  128. package/dist/components/features/board/touch-board.js +3 -1
  129. package/dist/components/features/index.cjs +108 -106
  130. package/dist/components/features/notifications/approval-request-notification-tile.d.ts +7 -1
  131. package/dist/components/features/notifications/approval-request-notification-tile.d.ts.map +1 -1
  132. package/dist/components/features/notifications/approval-request-notification-tile.js +1 -1
  133. package/dist/components/features/notifications/notification-drawer.d.ts +6 -1
  134. package/dist/components/features/notifications/notification-drawer.d.ts.map +1 -1
  135. package/dist/components/features/notifications/notification-drawer.js +3 -2
  136. package/dist/components/features/notifications/notification-tile.d.ts +4 -1
  137. package/dist/components/features/notifications/notification-tile.d.ts.map +1 -1
  138. package/dist/components/features/notifications/notification-tile.js +9 -7
  139. package/dist/components/features/time-tracker/time-tracker-header-button.d.ts +18 -1
  140. package/dist/components/features/time-tracker/time-tracker-header-button.d.ts.map +1 -1
  141. package/dist/components/features/time-tracker/time-tracker-header-button.js +31 -7
  142. package/dist/components/help-center-pages/index.cjs +217 -215
  143. package/dist/components/icons-v2-generated/icon-loaders.d.ts.map +1 -1
  144. package/dist/components/icons-v2-generated/icon-loaders.js +1 -0
  145. package/dist/components/icons-v2-generated/icon-names.js +1 -1
  146. package/dist/components/icons-v2-generated/index.cjs +90 -86
  147. package/dist/components/icons-v2-generated/loaders/dots-loader-icon.d.ts.map +1 -1
  148. package/dist/components/icons-v2-generated/loaders/dots-loader-icon.js +21 -24
  149. package/dist/components/icons-v2-generated/logos/index.d.ts +1 -0
  150. package/dist/components/icons-v2-generated/logos/index.d.ts.map +1 -1
  151. package/dist/components/icons-v2-generated/logos/index.js +2 -0
  152. package/dist/components/icons-v2-generated/logos/mingo-logo-icon.d.ts +9 -0
  153. package/dist/components/icons-v2-generated/logos/mingo-logo-icon.d.ts.map +1 -0
  154. package/dist/components/icons-v2-generated/logos/mingo-logo-icon.js +36 -0
  155. package/dist/components/index.cjs +215 -182
  156. package/dist/components/meeting-scheduler/index.cjs +182 -180
  157. package/dist/components/navigation/account-popover.d.ts +62 -0
  158. package/dist/components/navigation/account-popover.d.ts.map +1 -0
  159. package/dist/components/navigation/account-popover.js +138 -0
  160. package/dist/components/navigation/app-header.d.ts +36 -2
  161. package/dist/components/navigation/app-header.d.ts.map +1 -1
  162. package/dist/components/navigation/app-header.js +28 -24
  163. package/dist/components/navigation/app-layout-context.d.ts +17 -0
  164. package/dist/components/navigation/app-layout-context.d.ts.map +1 -1
  165. package/dist/components/navigation/app-layout-context.js +9 -1
  166. package/dist/components/navigation/app-layout.d.ts +93 -1
  167. package/dist/components/navigation/app-layout.d.ts.map +1 -1
  168. package/dist/components/navigation/app-layout.js +149 -30
  169. package/dist/components/navigation/header-button.d.ts +11 -1
  170. package/dist/components/navigation/header-button.d.ts.map +1 -1
  171. package/dist/components/navigation/header-button.js +16 -5
  172. package/dist/components/navigation/header-mingo-button.d.ts.map +1 -1
  173. package/dist/components/navigation/header-mingo-button.js +6 -5
  174. package/dist/components/navigation/index.cjs +120 -109
  175. package/dist/components/navigation/index.d.ts +10 -1
  176. package/dist/components/navigation/index.d.ts.map +1 -1
  177. package/dist/components/navigation/index.js +8 -0
  178. package/dist/components/navigation/mingo-ai-button.d.ts.map +1 -1
  179. package/dist/components/navigation/mingo-ai-button.js +2 -1
  180. package/dist/components/navigation/mobile-burger-menu.d.ts.map +1 -1
  181. package/dist/components/navigation/mobile-burger-menu.js +155 -39
  182. package/dist/components/navigation/navigation-sidebar-grouped.d.ts +57 -0
  183. package/dist/components/navigation/navigation-sidebar-grouped.d.ts.map +1 -0
  184. package/dist/components/navigation/navigation-sidebar-grouped.js +365 -0
  185. package/dist/components/navigation/navigation-sidebar-match.d.ts +37 -0
  186. package/dist/components/navigation/navigation-sidebar-match.d.ts.map +1 -0
  187. package/dist/components/navigation/navigation-sidebar-match.js +85 -0
  188. package/dist/components/navigation/navigation-sidebar-slot.d.ts +7 -0
  189. package/dist/components/navigation/navigation-sidebar-slot.d.ts.map +1 -0
  190. package/dist/components/navigation/navigation-sidebar-slot.js +11 -0
  191. package/dist/components/navigation/navigation-sidebar-toggle.d.ts +7 -1
  192. package/dist/components/navigation/navigation-sidebar-toggle.d.ts.map +1 -1
  193. package/dist/components/navigation/navigation-sidebar-toggle.js +52 -23
  194. package/dist/components/navigation/navigation-sidebar.d.ts +13 -1
  195. package/dist/components/navigation/navigation-sidebar.d.ts.map +1 -1
  196. package/dist/components/navigation/navigation-sidebar.js +188 -52
  197. package/dist/components/navigation/notifications-bell-button.d.ts +28 -0
  198. package/dist/components/navigation/notifications-bell-button.d.ts.map +1 -0
  199. package/dist/components/navigation/notifications-bell-button.js +44 -0
  200. package/dist/components/navigation/ticket-alerts-button.d.ts +7 -1
  201. package/dist/components/navigation/ticket-alerts-button.d.ts.map +1 -1
  202. package/dist/components/navigation/ticket-alerts-button.js +3 -2
  203. package/dist/components/onboarding-guides/index.cjs +111 -109
  204. package/dist/components/product-demo/index.cjs +119 -117
  205. package/dist/components/related-content/index.cjs +13 -13
  206. package/dist/components/tickets/index.cjs +115 -113
  207. package/dist/components/ui/actions-menu.d.ts +6 -1
  208. package/dist/components/ui/actions-menu.d.ts.map +1 -1
  209. package/dist/components/ui/actions-menu.js +6 -2
  210. package/dist/components/ui/fade-preview.d.ts +8 -0
  211. package/dist/components/ui/fade-preview.d.ts.map +1 -1
  212. package/dist/components/ui/fade-preview.js +7 -5
  213. package/dist/components/ui/index.cjs +136 -111
  214. package/dist/components/ui/index.d.ts +1 -0
  215. package/dist/components/ui/index.d.ts.map +1 -1
  216. package/dist/components/ui/index.js +1 -0
  217. package/dist/components/ui/mobile-action-bar.d.ts +14 -0
  218. package/dist/components/ui/mobile-action-bar.d.ts.map +1 -0
  219. package/dist/components/ui/mobile-action-bar.js +68 -0
  220. package/dist/components/ui/no-data/no-data-styles.d.ts +1 -1
  221. package/dist/components/ui/no-data/no-data-styles.d.ts.map +1 -1
  222. package/dist/components/ui/no-data/no-data-styles.js +1 -1
  223. package/dist/components/ui/page-actions.d.ts.map +1 -1
  224. package/dist/components/ui/page-actions.js +24 -8
  225. package/dist/components/ui/panel-resize-handle.d.ts +6 -2
  226. package/dist/components/ui/panel-resize-handle.d.ts.map +1 -1
  227. package/dist/components/ui/panel-resize-handle.js +6 -3
  228. package/dist/components/ui/square-avatar.d.ts.map +1 -1
  229. package/dist/components/ui/square-avatar.js +5 -2
  230. package/dist/{devices-DW5NDXMD.cjs → devices-SJORCARH.cjs} +109 -107
  231. package/dist/dots-loader-icon-5JXWD6FB.cjs +7 -0
  232. package/dist/{embeddable-chat-NBJMXEXB.cjs → embeddable-chat-7Z4CEZJL.cjs} +513 -398
  233. package/dist/hooks/index.cjs +15 -16
  234. package/dist/hooks/ui/use-content-breakpoint.d.ts +4 -2
  235. package/dist/hooks/ui/use-content-breakpoint.d.ts.map +1 -1
  236. package/dist/{icon-loaders-OLGJZGRP.cjs → icon-loaders-SUPEKMBJ.cjs} +2 -1
  237. package/dist/index.cjs +154 -121
  238. package/dist/{knowledge-EYJG2TNW.cjs → knowledge-QXILUVEM.cjs} +109 -107
  239. package/dist/{logs-2LV7DTSL.cjs → logs-E3KQQQD6.cjs} +118 -115
  240. package/dist/mingo-logo-icon-WGPBSDTF.cjs +7 -0
  241. package/dist/{policies-HSDYIQBX.cjs → policies-IOYQY6TF.cjs} +112 -110
  242. package/dist/{remote-session-BQMTIQTU.cjs → remote-session-QGFG5WAL.cjs} +99 -97
  243. package/dist/{scripts-UI6V7ANQ.cjs → scripts-E5TWWUNP.cjs} +115 -113
  244. package/dist/{software-update-WMLY7VHH.cjs → software-update-QZGYG4TD.cjs} +112 -110
  245. package/dist/{tickets-board-TRXOX77R.cjs → tickets-board-KCH6ITUV.cjs} +95 -94
  246. package/dist/types/navigation.d.ts +131 -0
  247. package/dist/types/navigation.d.ts.map +1 -1
  248. package/dist/utils/index.cjs +65 -25
  249. package/package.json +1 -1
  250. package/src/components/chat/approval-batch-message.tsx +3 -2
  251. package/src/components/chat/chat-archive-page.tsx +16 -0
  252. package/src/components/chat/chat-composer.tsx +131 -61
  253. package/src/components/chat/chat-context-memory-bar.tsx +27 -17
  254. package/src/components/chat/chat-context-picker.tsx +45 -11
  255. package/src/components/chat/chat-header-rename-field.tsx +68 -0
  256. package/src/components/chat/chat-input.tsx +9 -1
  257. package/src/components/chat/composer-sheet.tsx +196 -0
  258. package/src/components/chat/embeddable-chat.tsx +636 -319
  259. package/src/components/chat/index.ts +6 -0
  260. package/src/components/chat/mingo-chat-day-groups.ts +62 -0
  261. package/src/components/chat/mingo-chat-header.tsx +99 -23
  262. package/src/components/chat/mingo-chat-history-section.tsx +670 -0
  263. package/src/components/chat/mingo-chat-history.tsx +31 -45
  264. package/src/components/chat/mingo-chat-list-shared.tsx +244 -0
  265. package/src/components/chat/mingo-chat-rail.tsx +45 -97
  266. package/src/components/chat/mingo-edge-light.tsx +25 -0
  267. package/src/components/chat/mingo-history-rail.tsx +7 -17
  268. package/src/components/chat/mingo-quick-action-wall.tsx +64 -0
  269. package/src/components/chat/mingo-welcome.tsx +5 -19
  270. package/src/components/chat/model-display.tsx +66 -14
  271. package/src/components/chat/tool-execution-display.tsx +9 -1
  272. package/src/components/chat/types/component.types.ts +13 -1
  273. package/src/components/chat/utils/chat-day-label.ts +24 -0
  274. package/src/components/features/board/board-column.tsx +8 -0
  275. package/src/components/features/board/board.tsx +16 -2
  276. package/src/components/features/board/touch-board.tsx +2 -0
  277. package/src/components/features/notifications/approval-request-notification-tile.tsx +8 -2
  278. package/src/components/features/notifications/notification-drawer.tsx +7 -1
  279. package/src/components/features/notifications/notification-tile.tsx +17 -9
  280. package/src/components/features/time-tracker/time-tracker-header-button.tsx +53 -6
  281. package/src/components/icons-v2/icon-colors.json +4 -0
  282. package/src/components/icons-v2-generated/icon-loaders.ts +1 -0
  283. package/src/components/icons-v2-generated/icon-names.ts +1 -1
  284. package/src/components/icons-v2-generated/loaders/dots-loader-icon.tsx +18 -27
  285. package/src/components/icons-v2-generated/logos/index.ts +1 -0
  286. package/src/components/icons-v2-generated/logos/mingo-logo-icon.tsx +35 -0
  287. package/src/components/navigation/account-popover.tsx +198 -0
  288. package/src/components/navigation/app-header.tsx +74 -33
  289. package/src/components/navigation/app-layout-context.ts +22 -0
  290. package/src/components/navigation/app-layout.tsx +290 -24
  291. package/src/components/navigation/header-button.tsx +27 -5
  292. package/src/components/navigation/header-mingo-button.tsx +6 -5
  293. package/src/components/navigation/index.ts +19 -0
  294. package/src/components/navigation/mingo-ai-button.tsx +2 -3
  295. package/src/components/navigation/mobile-burger-menu.tsx +219 -53
  296. package/src/components/navigation/navigation-sidebar-grouped.tsx +554 -0
  297. package/src/components/navigation/navigation-sidebar-match.ts +152 -0
  298. package/src/components/navigation/navigation-sidebar-slot.ts +12 -0
  299. package/src/components/navigation/navigation-sidebar-toggle.tsx +39 -6
  300. package/src/components/navigation/navigation-sidebar.tsx +278 -61
  301. package/src/components/navigation/notifications-bell-button.tsx +70 -0
  302. package/src/components/navigation/ticket-alerts-button.tsx +9 -2
  303. package/src/components/ui/actions-menu.tsx +19 -3
  304. package/src/components/ui/fade-preview.tsx +13 -6
  305. package/src/components/ui/index.ts +1 -0
  306. package/src/components/ui/mobile-action-bar.ts +87 -0
  307. package/src/components/ui/no-data/no-data-styles.ts +5 -2
  308. package/src/components/ui/page-actions.tsx +38 -11
  309. package/src/components/ui/panel-resize-handle.tsx +14 -5
  310. package/src/components/ui/square-avatar.tsx +5 -2
  311. package/src/hooks/ui/use-content-breakpoint.ts +4 -2
  312. package/src/styles/ods-interaction-states.css +68 -0
  313. package/src/types/navigation.ts +140 -0
  314. package/dist/chunk-C7GIHB3V.cjs +0 -59
  315. package/dist/dots-loader-icon-RBLX46X7.cjs +0 -7
  316. package/dist/{chunk-ZOZR3QI2.cjs → chunk-46547WQW.cjs} +0 -0
  317. package/dist/{video-file-player-IAMWBKEQ.cjs → video-file-player-IHO66P2Q.cjs} +1 -1
@@ -0,0 +1,136 @@
1
+ import { type ReactNode, type RefObject } from 'react';
2
+ import type { ActionsMenuItem } from '../ui/actions-menu';
3
+ import type { DialogItem } from './types/component.types';
4
+ /** Ownership scope of a Mingo chat list: the current user's chats only, or
5
+ * every admin's chats in the tenant. */
6
+ export type MingoHistoryScope = 'my' | 'all';
7
+ /**
8
+ * What a chat is doing, shown at the end of its row:
9
+ * - `working`: Mingo is answering in it
10
+ * - `unread`: a reply the user has not seen
11
+ * - `approval`: Mingo waits for an approval there
12
+ */
13
+ export type MingoDialogStatus = 'working' | 'unread' | 'approval';
14
+ /** One glyph per status, for every Mingo chat list (the v2 rail, the sidebar section). */
15
+ export declare const MINGO_DIALOG_STATUS_GLYPHS: Record<MingoDialogStatus, {
16
+ icon: ReactNode;
17
+ label: string;
18
+ }>;
19
+ /**
20
+ * The list both Mingo chat lists render — the v2 panel's rail and the main
21
+ * sidebar's chat-history section (`MingoChatRail` `variant`). The host owns the
22
+ * data, the scope, the search term and the paging; the list only shows them.
23
+ */
24
+ export interface MingoChatListProps {
25
+ /** Dialogs to list, newest first. */
26
+ dialogs: ReadonlyArray<DialogItem>;
27
+ activeDialogId?: string;
28
+ onSelectDialog?: (id: string) => void;
29
+ /** A chat being started and not saved yet: a selected row at the top
30
+ * (e.g. "New Chat"), so the list says what the chat beside it is. */
31
+ draftTitle?: string;
32
+ /** Open the archive. The rail lists it as an action; the section puts
33
+ * "Chat archive" in its ⋯ menu. */
34
+ onOpenArchive?: () => void;
35
+ /**
36
+ * "What to ask Mingo?": the suggestions a chat starts from. The rail draws it as an
37
+ * action under the logo, the section as an item of its ⋯ menu.
38
+ */
39
+ onWhatToAsk?: () => void;
40
+ /**
41
+ * The host's own actions at the end of the section's ⋯ menu, after "Chat archive" and
42
+ * "What to ask Mingo?" (e.g. "Reset Onboarding"). The section only: the rail has no ⋯ of its own.
43
+ */
44
+ moreMenuItems?: ActionsMenuItem[];
45
+ /** A row's status glyph. Unread replies are shown without it. */
46
+ statusOf?: (dialog: DialogItem) => MingoDialogStatus | undefined;
47
+ /** Row ⋯ menu actions — each item appears only when its handler is set. */
48
+ onRequestRename?: (dialog: DialogItem) => void;
49
+ onRequestArchive?: (dialog: DialogItem) => void;
50
+ onRequestCopyLink?: (dialog: DialogItem) => void;
51
+ onRequestCompact?: (dialog: DialogItem) => void;
52
+ /** My Chats / All Chats; both or neither. The rail offers it in its ⋯
53
+ * menu, the section as a `TabSelector`. */
54
+ scope?: MingoHistoryScope;
55
+ onScopeChange?: (scope: MingoHistoryScope) => void;
56
+ /** Server-side search: `searchQuery` is the host's term, `onSearchChange`
57
+ * receives the debounced input. Without a handler there is no search. */
58
+ searchQuery?: string;
59
+ onSearchChange?: (query: string) => void;
60
+ /** Whether the search is open. Controlled with `onSearchOpenChange` (e.g. a
61
+ * host that opens it on ⌘K); without it the list keeps its own state, open
62
+ * from the start while `searchQuery` holds a term (the rail). The rail's is a
63
+ * field in its header; the section's is a modal — `MingoChatSearchModal`,
64
+ * which a host controlling this renders once itself. The section's Search
65
+ * tooltip names ⌘K / Ctrl K: binding that key is the host's (it may have to
66
+ * open a collapsed sidebar first), the list listens for none. */
67
+ searchOpen?: boolean;
68
+ onSearchOpenChange?: (open: boolean) => void;
69
+ hasMore?: boolean;
70
+ isLoadingMore?: boolean;
71
+ onLoadMore?: () => void;
72
+ /**
73
+ * How the section's list loads its next page: as its end scrolls into view
74
+ * (`'scroll'`, the default), or on a "Show more" under it (`'button'`). The
75
+ * search results and the rail always scroll.
76
+ */
77
+ loadMore?: 'scroll' | 'button';
78
+ /** The first page is still loading: the list draws one page of loading rows. */
79
+ isLoadingHistory?: boolean;
80
+ /** The host's page size: how many rows the loading state draws. Default `CHAT_HISTORY_PAGE_SIZE`. */
81
+ pageSize?: number;
82
+ /** The list failed to load with nothing cached. */
83
+ loadError?: boolean;
84
+ onRetry?: () => void;
85
+ /** Section only: the chat belongs to someone other than the viewer, so its
86
+ * row shows the owner's (`dialog.owner`) initials. The row cannot tell on
87
+ * its own: hosts set `owner` on the viewer's chats too. Wins over
88
+ * `currentUserId`. */
89
+ ownedByOther?: (dialog: DialogItem) => boolean;
90
+ /** Section only: the viewer's user id. Without `ownedByOther`, a chat whose
91
+ * `owner.id` is set and differs from it is someone else's; a chat with no
92
+ * `owner.id` is taken as the viewer's. */
93
+ currentUserId?: string | null;
94
+ className?: string;
95
+ }
96
+ /**
97
+ * Whether a row is someone else's chat: the host's answer when it gives one
98
+ * (`ownedByOther`), else `owner.id` against the viewer's id. Unknown = the
99
+ * viewer's own, so no row shows a stranger's initials on a guess.
100
+ */
101
+ export declare function dialogOwnedByOther(dialog: DialogItem, ownedByOther: ((dialog: DialogItem) => boolean) | undefined, currentUserId: string | null | undefined): boolean;
102
+ /** The host's status for the row, else an unread reply when the row counts one. */
103
+ export declare function mingoDialogStatusOf(dialog: DialogItem, statusOf: ((dialog: DialogItem) => MingoDialogStatus | undefined) | undefined): MingoDialogStatus | undefined;
104
+ /**
105
+ * "Couldn't load your chats" + Try again: what a Mingo chat list shows when its
106
+ * first page failed with nothing cached. One block for every list, so the
107
+ * wording cannot drift between them.
108
+ */
109
+ export declare function ChatListLoadError({ onRetry, className }: {
110
+ onRetry?: () => void;
111
+ className?: string;
112
+ }): import("react").JSX.Element;
113
+ export interface LoadMoreSentinelOptions {
114
+ /** Whether more rows remain (cursor pagination). */
115
+ hasMore: boolean;
116
+ /** True while the next page is loading: no second request meanwhile. */
117
+ isLoadingMore: boolean;
118
+ /** Fetch the next page. */
119
+ onLoadMore?: () => void;
120
+ /** Rows rendered so far: a landed page re-arms the observer. */
121
+ itemCount: number;
122
+ /**
123
+ * The scrolling element the sentinel is clipped by. Omitted: the viewport —
124
+ * which still clips by every scroll box between it and the sentinel, so a
125
+ * list works whichever ancestor scrolls it (the sidebar's history section:
126
+ * the sidebar body).
127
+ */
128
+ rootRef?: RefObject<HTMLElement | null>;
129
+ }
130
+ /**
131
+ * Infinite scroll for a chat list: put the returned ref on a 1px sentinel after
132
+ * the last row (rendered only while `hasMore`), and `onLoadMore` fires when it
133
+ * comes into view.
134
+ */
135
+ export declare function useLoadMoreSentinel({ hasMore, isLoadingMore, onLoadMore, itemCount, rootRef, }: LoadMoreSentinelOptions): RefObject<HTMLDivElement | null>;
136
+ //# sourceMappingURL=mingo-chat-list-shared.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mingo-chat-list-shared.d.ts","sourceRoot":"","sources":["../../../src/components/chat/mingo-chat-list-shared.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAqB,MAAM,OAAO,CAAC;AAG1E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE1D;yCACyC;AACzC,MAAM,MAAM,iBAAiB,G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AAO,EAAE,SAAS,EAAE,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,+BAerG;AAED,MAAM,WAAW,uBAAuB;IACtC,oDAAoD;IACpD,OAAO,EAAE,OAAO,CAAC;IACjB,wEAAwE;IACxE,aAAa,EAAE,OAAO,CAAC;IACvB,2BAA2B;IAC3B,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,gEAAgE;IAChE,SAAS,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CACzC;AAUD;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,OAAO,EACP,aAAa,EACb,UAAU,EACV,SAAS,EACT,OAAO,GACR,EAAE,uBAAuB,oCAuCzB"}
@@ -0,0 +1,76 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { useEffect, useRef } from "react";
4
+ import { cn } from "../../utils/cn.js";
5
+ import { AlertCircleIcon, MessageIndicatorIcon, Refresh01RightIcon, ShieldCheckIcon } from "../icons-v2-generated/index.js";
6
+ import { Button } from "../ui/button/index.js";
7
+ function WorkingDots({ className }) {
8
+ return /* @__PURE__ */ jsxs("span", { className: cn("ods-dots-loader", className), children: [
9
+ /* @__PURE__ */ jsx("span", {}),
10
+ /* @__PURE__ */ jsx("span", {}),
11
+ /* @__PURE__ */ jsx("span", {})
12
+ ] });
13
+ }
14
+ const MINGO_DIALOG_STATUS_GLYPHS = {
15
+ working: { icon: /* @__PURE__ */ jsx(WorkingDots, { className: "text-ods-text-secondary" }), label: "Mingo is working" },
16
+ unread: { icon: /* @__PURE__ */ jsx(MessageIndicatorIcon, { className: "text-ods-accent" }), label: "New reply" },
17
+ approval: { icon: /* @__PURE__ */ jsx(ShieldCheckIcon, { className: "text-ods-accent" }), label: "Waiting for approval" }
18
+ };
19
+ function dialogOwnedByOther(dialog, ownedByOther, currentUserId) {
20
+ if (ownedByOther) return ownedByOther(dialog);
21
+ const ownerId = dialog.owner?.id;
22
+ return !!currentUserId && !!ownerId && ownerId !== currentUserId;
23
+ }
24
+ function mingoDialogStatusOf(dialog, statusOf) {
25
+ return statusOf?.(dialog) ?? ((dialog.unreadMessagesCount ?? 0) > 0 ? "unread" : void 0);
26
+ }
27
+ function ChatListLoadError({ onRetry, className }) {
28
+ return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col items-center gap-[var(--spacing-system-m)] text-center", className), children: [
29
+ /* @__PURE__ */ jsx(AlertCircleIcon, { className: "size-8 shrink-0 text-ods-text-secondary" }),
30
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-[var(--spacing-system-xxs)]", children: [
31
+ /* @__PURE__ */ jsx("p", { className: "text-ods-text-primary text-h4", children: "Couldn\u2019t load your chats" }),
32
+ /* @__PURE__ */ jsx("p", { className: "text-ods-text-secondary text-h6", children: "Something went wrong reaching the server. Try again." })
33
+ ] }),
34
+ onRetry && /* @__PURE__ */ jsx(Button, { variant: "outline", size: "small", leftIcon: /* @__PURE__ */ jsx(Refresh01RightIcon, {}), onClick: onRetry, children: "Try again" })
35
+ ] });
36
+ }
37
+ const LOAD_AHEAD = "0px 0px 600px 0px";
38
+ function useLoadMoreSentinel({
39
+ hasMore,
40
+ isLoadingMore,
41
+ onLoadMore,
42
+ itemCount,
43
+ rootRef
44
+ }) {
45
+ const sentinelRef = useRef(null);
46
+ const onLoadMoreRef = useRef(onLoadMore);
47
+ const isLoadingMoreRef = useRef(isLoadingMore);
48
+ useEffect(() => {
49
+ onLoadMoreRef.current = onLoadMore;
50
+ isLoadingMoreRef.current = isLoadingMore;
51
+ });
52
+ useEffect(() => {
53
+ const sentinel = sentinelRef.current;
54
+ const root = rootRef ? rootRef.current : null;
55
+ if (!sentinel || rootRef && !root || !hasMore || typeof IntersectionObserver === "undefined") return void 0;
56
+ const options = {
57
+ root,
58
+ rootMargin: LOAD_AHEAD,
59
+ scrollMargin: LOAD_AHEAD,
60
+ threshold: 0.1
61
+ };
62
+ const observer = new IntersectionObserver(([entry]) => {
63
+ if (entry?.isIntersecting && !isLoadingMoreRef.current) onLoadMoreRef.current?.();
64
+ }, options);
65
+ observer.observe(sentinel);
66
+ return () => observer.disconnect();
67
+ }, [hasMore, isLoadingMore, itemCount, rootRef]);
68
+ return sentinelRef;
69
+ }
70
+ export {
71
+ ChatListLoadError,
72
+ MINGO_DIALOG_STATUS_GLYPHS,
73
+ dialogOwnedByOther,
74
+ mingoDialogStatusOf,
75
+ useLoadMoreSentinel
76
+ };
@@ -1,58 +1,26 @@
1
- import type { MingoHistoryScope } from './mingo-history-rail';
2
- import type { DialogItem } from './types/component.types';
3
- /**
4
- * What a chat is doing, shown at the end of its row:
5
- * - `working`: Mingo is answering in it
6
- * - `unread`: a reply the user has not seen
7
- * - `approval`: Mingo waits for an approval there
8
- */
9
- export type MingoDialogStatus = 'working' | 'unread' | 'approval';
10
- export interface MingoChatRailProps {
11
- /** Dialogs to list, newest first. */
12
- dialogs: ReadonlyArray<DialogItem>;
13
- activeDialogId?: string;
14
- onSelectDialog?: (id: string) => void;
15
- /** A chat being started and not saved yet: a selected row at the top
16
- * (e.g. "New Chat"), so the list says what the chat beside it is. */
17
- draftTitle?: string;
1
+ import { type MingoChatListProps } from './mingo-chat-list-shared';
2
+ export interface MingoChatRailProps extends MingoChatListProps {
3
+ /**
4
+ * `'rail'` (default): the v2 chat panel's own column — the Mingo mark, the
5
+ * actions below (start a chat, the archive, "What to ask Mingo?") and the
6
+ * list, at a fixed 296 px.
7
+ * `'section'`: the chat history block of a host's main navigation sidebar
8
+ * (`MingoChatHistorySection`) — caption, Search, ⋯ (Chat archive, What to ask Mingo?), the scope,
9
+ * the chats grouped by day. No outer chrome or width of its own; it fills the
10
+ * height it is given and scrolls inside. The rail-only props below are
11
+ * ignored there.
12
+ */
13
+ variant?: 'rail' | 'section';
14
+ /** Rail only. */
18
15
  onNewChat?: () => void;
19
- /** Open the archive. `archiveActive` marks it as the view on screen. */
20
- onOpenArchive?: () => void;
16
+ /** Rail only: the archive is the view on screen. */
21
17
  archiveActive?: boolean;
22
- /** "What to ask Mingo?": the suggestions a new chat starts from. */
23
- onWhatToAsk?: () => void;
24
- /** A row's status glyph. Unread replies are shown without it. */
25
- statusOf?: (dialog: DialogItem) => MingoDialogStatus | undefined;
26
- onRequestRename?: (dialog: DialogItem) => void;
27
- onRequestArchive?: (dialog: DialogItem) => void;
28
- onRequestCopyLink?: (dialog: DialogItem) => void;
29
- onRequestCompact?: (dialog: DialogItem) => void;
30
- /** "Show My Chats" / "Show All Chats" in the list's ⋯ menu; both or neither. */
31
- scope?: MingoHistoryScope;
32
- onScopeChange?: (scope: MingoHistoryScope) => void;
33
- /** Server-side search. With a handler the ⋯ menu offers "Search for Chat". */
34
- searchQuery?: string;
35
- onSearchChange?: (query: string) => void;
36
- hasMore?: boolean;
37
- isLoadingMore?: boolean;
38
- onLoadMore?: () => void;
39
- /** The first page is still loading: the list draws one page of loading rows. */
40
- isLoadingHistory?: boolean;
41
- /** The host's page size: how many rows the loading state draws. Default `CHAT_HISTORY_PAGE_SIZE`. */
42
- pageSize?: number;
43
- /** The list failed to load with nothing cached. */
44
- loadError?: boolean;
45
- onRetry?: () => void;
46
- /** The |← control beside the logo: widen the panel to the list and the chat. */
18
+ /** Rail only — the |← control beside the logo: widen the panel to the list and the chat. */
47
19
  onExpand?: () => void;
48
- className?: string;
49
20
  }
50
21
  /**
51
- * The Mingo chat list of the v2 layout (Figma `chat-sidebar`, type
52
- * mingo-my-chats): the Mingo mark, the three actions, a "Your Current Chats"
53
- * list with a ⋯ menu that scopes or searches it, and one row per chat with its
54
- * status at the end. Row actions (rename, archive, ...) sit behind a ⋯ that
55
- * replaces the status on hover.
22
+ * The Mingo chat list. The default rail is the v2 panel's column; the section
23
+ * is the same list placed in the main sidebar (see `variant`).
56
24
  */
57
- export declare function MingoChatRail({ dialogs, activeDialogId, onSelectDialog, draftTitle, onNewChat, onOpenArchive, archiveActive, onWhatToAsk, statusOf, onRequestRename, onRequestArchive, onRequestCopyLink, onRequestCompact, scope, onScopeChange, searchQuery, onSearchChange, hasMore, isLoadingMore, onLoadMore, isLoadingHistory, pageSize, loadError, onRetry, onExpand, className, }: MingoChatRailProps): import("react").JSX.Element;
25
+ export declare function MingoChatRail({ variant, ...props }: MingoChatRailProps): import("react").JSX.Element;
58
26
  //# sourceMappingURL=mingo-chat-rail.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mingo-chat-rail.d.ts","sourceRoot":"","sources":["../../../src/components/chat/mingo-chat-rail.tsx"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE1D;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAC;AAElE,MAAM,WAAW,kBAAkB;IACjC,qCAAqC;IACrC,OAAO,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACnC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC;0EACsE;IACtE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,wEAAwE;IACxE,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,oEAAoE;IACpE,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,iBAAiB,GAAG,SAAS,CAAC;IACjE,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IAC/C,gBA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}
1
+ {"version":3,"file":"mingo-chat-rail.d.ts","sourceRoot":"","sources":["../../../src/components/chat/mingo-chat-rail.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAGL,KAAK,kBAAkB,EAIxB,MAAM,0BAA0B,CAAC;AAGlC,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;IAC5D;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,iBAAiB;IACjB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,oDAAoD;IACpD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,4FAA4F;IAC5F,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAAE,OAAgB,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,+BAE/E"}
@@ -1,21 +1,17 @@
1
1
  "use client";
2
2
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
- import { useEffect, useRef, useState } from "react";
3
+ import { useControllableState } from "@radix-ui/react-use-controllable-state";
4
+ import { useState } from "react";
4
5
  import { cn } from "../../utils/cn.js";
5
6
  import { AgentMark } from "../agent-mark.js";
6
7
  import {
7
- AlertCircleIcon,
8
8
  Arrow02LeftIcon,
9
9
  ChatPlusIcon,
10
10
  ChatQuestionIcon,
11
11
  ChatsIcon,
12
12
  ClockHistoryIcon,
13
- DotsLoaderIcon,
14
13
  Ellipsis01Icon,
15
- MessageIndicatorIcon,
16
- Refresh01RightIcon,
17
14
  SearchIcon,
18
- ShieldCheckIcon,
19
15
  UserIcon,
20
16
  UsersIcon
21
17
  } from "../icons-v2-generated/index.js";
@@ -27,15 +23,17 @@ import { ChatHeaderSearchField } from "./chat-header-search-field.js";
27
23
  import { ChatListEmptyState } from "./chat-list-empty-state.js";
28
24
  import { ChatListItem, ChatListItemLoadingPage, ChatNavSidebar } from "./chat-nav-sidebar.js";
29
25
  import { CHAT_HISTORY_PAGE_SIZE } from "./mingo-chat-history.js";
30
- const STATUS_GLYPHS = {
31
- working: { icon: /* @__PURE__ */ jsx(DotsLoaderIcon, { className: "text-ods-text-secondary" }), label: "Mingo is working" },
32
- unread: { icon: /* @__PURE__ */ jsx(MessageIndicatorIcon, { className: "text-ods-accent" }), label: "New reply" },
33
- approval: { icon: /* @__PURE__ */ jsx(ShieldCheckIcon, { className: "text-ods-accent" }), label: "Waiting for approval" }
34
- };
35
- function statusFor(dialog, statusOf) {
36
- return statusOf?.(dialog) ?? ((dialog.unreadMessagesCount ?? 0) > 0 ? "unread" : void 0);
26
+ import { MingoChatHistorySection } from "./mingo-chat-history-section.js";
27
+ import {
28
+ ChatListLoadError,
29
+ MINGO_DIALOG_STATUS_GLYPHS,
30
+ mingoDialogStatusOf,
31
+ useLoadMoreSentinel
32
+ } from "./mingo-chat-list-shared.js";
33
+ function MingoChatRail({ variant = "rail", ...props }) {
34
+ return variant === "section" ? /* @__PURE__ */ jsx(MingoChatHistorySection, { ...props }) : /* @__PURE__ */ jsx(MingoChatRailPanel, { ...props });
37
35
  }
38
- function MingoChatRail({
36
+ function MingoChatRailPanel({
39
37
  dialogs,
40
38
  activeDialogId,
41
39
  onSelectDialog,
@@ -53,6 +51,8 @@ function MingoChatRail({
53
51
  onScopeChange,
54
52
  searchQuery,
55
53
  onSearchChange,
54
+ searchOpen: searchOpenProp,
55
+ onSearchOpenChange,
56
56
  hasMore = false,
57
57
  isLoadingMore = false,
58
58
  onLoadMore,
@@ -64,7 +64,11 @@ function MingoChatRail({
64
64
  className
65
65
  }) {
66
66
  const loading = useLoadingScope() || isLoadingHistory;
67
- const [searchOpen, setSearchOpen] = useState(!!searchQuery?.trim());
67
+ const [searchOpen, setSearchOpen] = useControllableState({
68
+ prop: searchOpenProp,
69
+ defaultProp: !!searchQuery?.trim(),
70
+ onChange: onSearchOpenChange
71
+ });
68
72
  const hasSearch = !!searchQuery?.trim();
69
73
  const items = [];
70
74
  if (onNewChat) items.push({ id: "new", label: "Start New Chat", icon: /* @__PURE__ */ jsx(ChatPlusIcon, {}), onClick: onNewChat });
@@ -109,36 +113,10 @@ function MingoChatRail({
109
113
  onClick: () => setSearchOpen(true)
110
114
  });
111
115
  }
112
- const sentinelRef = useRef(null);
113
- const onLoadMoreRef = useRef(onLoadMore);
114
- const isLoadingMoreRef = useRef(isLoadingMore);
115
- useEffect(() => {
116
- onLoadMoreRef.current = onLoadMore;
117
- isLoadingMoreRef.current = isLoadingMore;
118
- });
119
- const dialogCount = dialogs.length;
120
- useEffect(() => {
121
- const sentinel = sentinelRef.current;
122
- if (!sentinel || !hasMore || typeof IntersectionObserver === "undefined") return void 0;
123
- const observer = new IntersectionObserver(
124
- ([entry]) => {
125
- if (entry?.isIntersecting && !isLoadingMoreRef.current) onLoadMoreRef.current?.();
126
- },
127
- { rootMargin: "120px", threshold: 0.1 }
128
- );
129
- observer.observe(sentinel);
130
- return () => observer.disconnect();
131
- }, [hasMore, dialogCount, isLoadingMore]);
116
+ const sentinelRef = useLoadMoreSentinel({ hasMore, isLoadingMore, onLoadMore, itemCount: dialogs.length });
132
117
  let list;
133
118
  if (loadError) {
134
- list = /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-[var(--spacing-system-m)] px-[var(--spacing-system-xs)] py-[var(--spacing-system-l)] text-center", children: [
135
- /* @__PURE__ */ jsx(AlertCircleIcon, { className: "size-8 shrink-0 text-ods-text-secondary" }),
136
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-[var(--spacing-system-xxs)]", children: [
137
- /* @__PURE__ */ jsx("p", { className: "text-ods-text-primary text-h4", children: "Couldn\u2019t load your chats" }),
138
- /* @__PURE__ */ jsx("p", { className: "text-ods-text-secondary text-h6", children: "Something went wrong reaching the server. Try again." })
139
- ] }),
140
- onRetry && /* @__PURE__ */ jsx(Button, { variant: "outline", size: "small", leftIcon: /* @__PURE__ */ jsx(Refresh01RightIcon, {}), onClick: onRetry, children: "Try again" })
141
- ] });
119
+ list = /* @__PURE__ */ jsx(ChatListLoadError, { onRetry, className: "px-[var(--spacing-system-xs)] py-[var(--spacing-system-l)]" });
142
120
  } else if (loading) {
143
121
  list = /* @__PURE__ */ jsx(ChatListItemLoadingPage, { count: pageSize });
144
122
  } else if (dialogs.length === 0 && !draftTitle) {
@@ -159,7 +137,7 @@ function MingoChatRail({
159
137
  "data-loading-item": true,
160
138
  dialog,
161
139
  active: dialog.id === activeDialogId,
162
- status: statusFor(dialog, statusOf),
140
+ status: mingoDialogStatusOf(dialog, statusOf),
163
141
  onSelect: onSelectDialog,
164
142
  menuItems: chatDialogMenuItems({
165
143
  onCopyLink: onRequestCopyLink && (() => onRequestCopyLink(dialog)),
@@ -229,7 +207,7 @@ function MingoChatRail({
229
207
  function MingoChatRailRow({ dialog, active, status, onSelect, menuItems, ...props }) {
230
208
  const [menuOpen, setMenuOpen] = useState(false);
231
209
  const hasMenu = menuItems.length > 0;
232
- const glyph = status ? STATUS_GLYPHS[status] : void 0;
210
+ const glyph = status ? MINGO_DIALOG_STATUS_GLYPHS[status] : void 0;
233
211
  const title = dialog.title || "Untitled Chat";
234
212
  return /* @__PURE__ */ jsxs("div", { ...loadingItemProps(props), className: "group/row relative shrink-0", children: [
235
213
  /* @__PURE__ */ jsx(
@@ -0,0 +1,13 @@
1
+ export interface MingoEdgeLightProps {
2
+ /** The host's corner radius (e.g. `rounded-md`), so the ring follows its outline. */
3
+ className?: string;
4
+ }
5
+ /**
6
+ * Mingo's AI edge light (`.mingo-edge-frame` / `.mingo-edge` in
7
+ * `styles/chat-animations.css`): an accent arc travelling around the host's
8
+ * outline, clipped to a 1px ring by a CSS mask, so the host's own background
9
+ * shows through. Static under reduced motion. Absolutely positioned over a
10
+ * `relative` host, on its border box; it takes no pointer events.
11
+ */
12
+ export declare function MingoEdgeLight({ className }: MingoEdgeLightProps): import("react").JSX.Element;
13
+ //# sourceMappingURL=mingo-edge-light.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mingo-edge-light.d.ts","sourceRoot":"","sources":["../../../src/components/chat/mingo-edge-light.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,mBAAmB;IAClC,qFAAqF;IACrF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAAE,SAAS,EAAE,EAAE,mBAAmB,+BAUhE"}
@@ -0,0 +1,17 @@
1
+ "use client";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { cn } from "../../utils/cn.js";
4
+ function MingoEdgeLight({ className }) {
5
+ return /* @__PURE__ */ jsx(
6
+ "span",
7
+ {
8
+ "aria-hidden": "true",
9
+ "data-testid": "mingo-edge-light",
10
+ className: cn("mingo-edge-frame pointer-events-none absolute inset-0", className),
11
+ children: /* @__PURE__ */ jsx("span", { className: "mingo-edge" })
12
+ }
13
+ );
14
+ }
15
+ export {
16
+ MingoEdgeLight
17
+ };
@@ -1,7 +1,5 @@
1
+ import { type MingoHistoryScope } from './mingo-chat-list-shared';
1
2
  import type { DialogItem } from './types/component.types';
2
- /** Ownership scope of the rail's dialog list — the current user's chats only,
3
- * or every admin's chats in the tenant. */
4
- export type MingoHistoryScope = 'my' | 'all';
5
3
  export interface MingoHistoryRailProps {
6
4
  /** Dialogs to list, assumed already sorted newest-first by the host. */
7
5
  dialogs: ReadonlyArray<DialogItem>;
@@ -38,6 +36,9 @@ export interface MingoHistoryRailProps {
38
36
  isLoadingMore?: boolean;
39
37
  /** Fetch the next page. */
40
38
  onLoadMore?: () => void;
39
+ /** How the next page loads: as the list's end scrolls into view (`'scroll'`, the default),
40
+ * or on a "Show more" under it (`'button'`, a page at a time). */
41
+ loadMore?: 'scroll' | 'button';
41
42
  /** True while the FIRST page of dialogs is still loading. The list draws its
42
43
  * own loading state so the rail doesn't flash the empty state before the list arrives. */
43
44
  isLoadingHistory?: boolean;
@@ -64,5 +65,5 @@ export interface MingoHistoryRailProps {
64
65
  * empty state; loading / error states mirror the stacked empty state so the
65
66
  * two layouts stay consistent.
66
67
  */
67
- export declare function MingoHistoryRail({ dialogs, activeDialogId, onSelectDialog, onNewChat, onRequestRename, onRequestArchive, onRequestCopyLink, onRequestCompact, scope, onScopeChange, searchQuery, hasMore, isLoadingMore, onLoadMore, isLoadingHistory, pageSize, loadError, onRetry, className, }: MingoHistoryRailProps): import("react").JSX.Element;
68
+ export declare function MingoHistoryRail({ dialogs, activeDialogId, onSelectDialog, onNewChat, onRequestRename, onRequestArchive, onRequestCopyLink, onRequestCompact, scope, onScopeChange, searchQuery, hasMore, loadMore, isLoadingMore, onLoadMore, isLoadingHistory, pageSize, loadError, onRetry, className, }: MingoHistoryRailProps): import("react").JSX.Element;
68
69
  //# sourceMappingURL=mingo-history-rail.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mingo-history-rail.d.ts","sourceRoot":"","sources":["../../../src/components/chat/mingo-history-rail.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAM1D;4CAC4C;AAC5C,MAAM,MAAM,iBAAiB,GAAG,IAAI,GAAG,KAAK,CAAC;AAE7C,MAAM,WAAW,qBAAqB;IACpC,wEAAwE;IACxE,OAAO,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACnC,8CAA8C;IAC9C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qBAAqB;IACrB,cAAc,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC;;+DAE2D;IAC3D,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,6DAA6D;IAC7D,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IAC/C,+DAA+D;IAC/D,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IAChD,0EAA0E;IAC1E,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IACjD,iFAAiF;IACjF,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IAChD;;;sCAGkC;IAClC,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,mDAAmD;IACnD,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACnD;;4BAEwB;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uDAAuD;IACvD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2CAA2C;IAC3C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,2BAA2B;IAC3B,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB;+FAC2F;IAC3F,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;oCACgC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;4CACwC;IACxC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAMD;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,cAAc,EACd,cAAc,EACd,SAAS,EACT,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,KAAK,EACL,aAAa,EACb,WAAW,EACX,OAAe,EACf,aAAqB,EACrB,UAAU,EACV,gBAAwB,EACxB,QAAQ,EACR,SAAiB,EACjB,OAAO,EACP,SAAS,GACV,EAAE,qBAAqB,+BAwFvB"}
1
+ {"version":3,"file":"mingo-history-rail.d.ts","sourceRoot":"","sources":["../../../src/components/chat/mingo-history-rail.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAqB,KAAK,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AACrF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAM1D,MAAM,WAA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rB,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAMD;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,cAAc,EACd,cAAc,EACd,SAAS,EACT,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,KAAK,EACL,aAAa,EACb,WAAW,EACX,OAAe,EACf,QAAmB,EACnB,aAAqB,EACrB,UAAU,EACV,gBAAwB,EACxB,QAAQ,EACR,SAAiB,EACjB,OAAO,EACP,SAAS,GACV,EAAE,qBAAqB,+BA8EvB"}
@@ -1,7 +1,6 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { cn } from "../../utils/cn.js";
4
- import { AlertCircleIcon, Refresh01RightIcon } from "../icons-v2-generated/index.js";
5
4
  import { ChatsIcon } from "../icons-v2-generated/communication/chats-icon.js";
6
5
  import { PlusCircleIcon } from "../icons-v2-generated/signs-and-symbols/plus-circle-icon.js";
7
6
  import { Button } from "../ui/button/index.js";
@@ -9,6 +8,7 @@ import { useLoadingScope } from "../ui/loading-scope.js";
9
8
  import { TabSelector } from "../ui/tab-selector.js";
10
9
  import { ChatListEmptyState } from "./chat-list-empty-state.js";
11
10
  import { MingoChatHistory } from "./mingo-chat-history.js";
11
+ import { ChatListLoadError } from "./mingo-chat-list-shared.js";
12
12
  function MingoHistoryRail({
13
13
  dialogs,
14
14
  activeDialogId,
@@ -22,6 +22,7 @@ function MingoHistoryRail({
22
22
  onScopeChange,
23
23
  searchQuery,
24
24
  hasMore = false,
25
+ loadMore = "scroll",
25
26
  isLoadingMore = false,
26
27
  onLoadMore,
27
28
  isLoadingHistory = false,
@@ -64,14 +65,7 @@ function MingoHistoryRail({
64
65
  ]
65
66
  }
66
67
  ) : null,
67
- loadError ? /* @__PURE__ */ jsxs("div", { className: "flex min-h-0 flex-1 flex-col items-center justify-center gap-[var(--spacing-system-m)] text-center", children: [
68
- /* @__PURE__ */ jsx(AlertCircleIcon, { className: "h-8 w-8 shrink-0 text-ods-text-secondary" }),
69
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-[var(--spacing-system-xxs)]", children: [
70
- /* @__PURE__ */ jsx("p", { className: "text-ods-text-primary text-h4", children: "Couldn\u2019t load your chats" }),
71
- /* @__PURE__ */ jsx("p", { className: "text-ods-text-secondary text-h6", children: "Something went wrong reaching the server. Try again." })
72
- ] }),
73
- onRetry && /* @__PURE__ */ jsx(Button, { variant: "outline", size: "small", leftIcon: /* @__PURE__ */ jsx(Refresh01RightIcon, {}), onClick: onRetry, children: "Try again" })
74
- ] }) : loading || hasList ? /* @__PURE__ */ jsx(
68
+ loadError ? /* @__PURE__ */ jsx(ChatListLoadError, { onRetry, className: "min-h-0 flex-1 justify-center" }) : loading || hasList ? /* @__PURE__ */ jsx(
75
69
  MingoChatHistory,
76
70
  {
77
71
  loading,
@@ -86,7 +80,8 @@ function MingoHistoryRail({
86
80
  searchQuery,
87
81
  hasMore,
88
82
  isLoadingMore,
89
- onLoadMore
83
+ onLoadMore,
84
+ loadMore
90
85
  }
91
86
  ) : (
92
87
  // Figma 113:60939 — no-chats empty state.
@@ -0,0 +1,27 @@
1
+ import type { MingoQuickAction } from './mingo-welcome';
2
+ export interface MingoQuickActionWallProps {
3
+ quickActions: ReadonlyArray<MingoQuickAction>;
4
+ /** Pointer/keyboard focus enters a chip — e.g. preview its prompt in the composer. */
5
+ onQuickActionHover?: (action: MingoQuickAction) => void;
6
+ /** Pointer/keyboard focus leaves the chip. */
7
+ onQuickActionHoverEnd?: () => void;
8
+ /** A built-in agent (`'fae'`/`'mingo'`) caps the wall at 2 rows. Default `'mingo'`. */
9
+ agentSlug?: string;
10
+ /**
11
+ * The actions are still being read: the wall draws its chips' loading form at its full
12
+ * row count, so a host that holds its layout around the wall (a composer under it, a
13
+ * greeting centred above) does not move when the actions land.
14
+ */
15
+ loading?: boolean;
16
+ className?: string;
17
+ }
18
+ /**
19
+ * Mingo's quick actions as the chat's empty state draws them (`MingoWelcome`): the
20
+ * shared {@link QuickActionWall} in BRICK mode — stacked row marquees (2 for a built-in
21
+ * agent) under left/right edge fades, so a long action set gets "reach" without
22
+ * squeezing the composer. `pauseOnHover` freezes the hovered row so a moving chip
23
+ * never dodges a click. One component, so a host that shows the actions outside the
24
+ * chat (a docked composer's home) draws the very same wall.
25
+ */
26
+ export declare function MingoQuickActionWall({ quickActions, onQuickActionHover, onQuickActionHoverEnd, agentSlug, loading, className, }: MingoQuickActionWallProps): import("react").JSX.Element | null;
27
+ //# sourceMappingURL=mingo-quick-action-wall.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mingo-quick-action-wall.d.ts","sourceRoot":"","sources":["../../../src/components/chat/mingo-quick-action-wall.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGxD,MAAM,WAAW,yBAAyB;IACxC,YAAY,EAAE,aAAa,CAAC,gBAAgB,CAAC,CAAC;IAC9C,sFAAsF;IACtF,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACxD,8CAA8C;IAC9C,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;IACnC,uFAAuF;IACvF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,YAAY,EACZ,kBAAkB,EAClB,qBAAqB,EACrB,SAAmB,EACnB,OAAe,EACf,SAAS,GACV,EAAE,yBAAyB,sCAyB3B"}
@@ -0,0 +1,41 @@
1
+ "use client";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { cn } from "../../utils/cn.js";
4
+ import { QuickActionWall } from "./quick-action-wall.js";
5
+ function MingoQuickActionWall({
6
+ quickActions,
7
+ onQuickActionHover,
8
+ onQuickActionHoverEnd,
9
+ agentSlug = "mingo",
10
+ loading = false,
11
+ className
12
+ }) {
13
+ if (quickActions.length === 0 && !loading) return null;
14
+ return /* @__PURE__ */ jsx(
15
+ QuickActionWall,
16
+ {
17
+ chips: quickActions.map((action) => ({
18
+ id: action.id,
19
+ label: action.label,
20
+ icon: action.icon,
21
+ variant: action.variant,
22
+ onSelect: action.onClick,
23
+ onHoverStart: () => onQuickActionHover?.(action),
24
+ onHoverEnd: () => onQuickActionHoverEnd?.()
25
+ })),
26
+ agentSlug,
27
+ loading,
28
+ rows: 4,
29
+ pauseOnHover: true,
30
+ dragScroll: true,
31
+ fade: ["left", "right"],
32
+ fadeSize: { left: 32 },
33
+ fadeColor: "var(--color-bg)",
34
+ copyGap: "var(--spacing-system-xxs)",
35
+ className: cn("max-h-44 shrink-0", className)
36
+ }
37
+ );
38
+ }
39
+ export {
40
+ MingoQuickActionWall
41
+ };