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

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 (323) hide show
  1. package/dist/build/export-map.json +1 -1
  2. package/dist/{case-study-card-IZBMHA6R.cjs → case-study-card-QMFGPABF.cjs} +5 -5
  3. package/dist/{chunk-QOAA7ZHB.cjs → chunk-2HQNXX2K.cjs} +2 -2
  4. package/dist/{chunk-NONMZ5WJ.cjs → chunk-2VLPXUQK.cjs} +14 -83
  5. package/dist/{chunk-OBQ5WUNG.cjs → chunk-3B6ZE4EZ.cjs} +29 -29
  6. package/dist/{chunk-BN7QENV7.cjs → chunk-3WKQ2GCR.cjs} +6 -6
  7. package/dist/{chunk-AO6YVNAH.cjs → chunk-4ZH7RPEA.cjs} +979 -1357
  8. package/dist/{chunk-25HBH4J6.cjs → chunk-5BM7X4GA.cjs} +2 -2
  9. package/dist/{chunk-UEULXVW2.cjs → chunk-6GPMVHJN.cjs} +23 -23
  10. package/dist/{chunk-IMMTH3F3.cjs → chunk-6SFCI6D4.cjs} +29 -27
  11. package/dist/{chunk-7DJWIVQC.cjs → chunk-6ZLCEIIC.cjs} +36 -36
  12. package/dist/{chunk-467T3LCG.cjs → chunk-7PZQ7SHB.cjs} +49 -32
  13. package/dist/{chunk-47SHKOCY.cjs → chunk-7VC5FVWT.cjs} +86 -86
  14. package/dist/{chunk-AUBR3FGY.cjs → chunk-ALRX2VIY.cjs} +28 -28
  15. package/dist/{chunk-XJMLZ63Y.cjs → chunk-B5H7RKFF.cjs} +4 -4
  16. package/dist/{chunk-2U7GXE3T.cjs → chunk-BGT6JFMP.cjs} +12636 -11302
  17. package/dist/{chunk-2XLPRW7V.cjs → chunk-BIG3O33P.cjs} +6 -2
  18. package/dist/chunk-BMQLM2NU.cjs +40 -0
  19. package/dist/{chunk-DVHSYPDB.cjs → chunk-DAKGX2WF.cjs} +2 -2
  20. package/dist/{chunk-MHR4C465.cjs → chunk-DR4P7AEU.cjs} +3 -3
  21. package/dist/{chunk-IJCSQFLD.cjs → chunk-DU6AF77X.cjs} +83 -121
  22. package/dist/{chunk-SBFBNOKU.cjs → chunk-ENMPSEEQ.cjs} +4 -4
  23. package/dist/{chunk-ZECG6GU5.cjs → chunk-F2J5WN6U.cjs} +2 -2
  24. package/dist/{chunk-2IWAHBCC.cjs → chunk-FMSAN6SR.cjs} +159 -159
  25. package/dist/{chunk-BOS7OIC4.cjs → chunk-GRHF5SWL.cjs} +5 -2
  26. package/dist/{chunk-ZRDVFADQ.cjs → chunk-IBD2FPSX.cjs} +75 -9
  27. package/dist/{chunk-T266OITJ.cjs → chunk-IKWQW3YJ.cjs} +45 -45
  28. package/dist/{chunk-APTFXX2C.cjs → chunk-K6X7VP2Y.cjs} +46 -46
  29. package/dist/{chunk-QDDBOCG3.cjs → chunk-KPGKTEEB.cjs} +2 -2
  30. package/dist/{chunk-B7NSH7IK.cjs → chunk-LKP5R3EQ.cjs} +5 -5
  31. package/dist/chunk-OEP5KAT6.cjs +56 -0
  32. package/dist/{chunk-Z7BLMJEI.cjs → chunk-OKTNRGM5.cjs} +54 -54
  33. package/dist/chunk-OT6P57ZS.cjs +94 -0
  34. package/dist/{chunk-QQT23JJ7.cjs → chunk-PBHP3FHO.cjs} +4 -4
  35. package/dist/{chunk-P25RVNGX.cjs → chunk-QMQWXGCH.cjs} +249 -108
  36. package/dist/{chunk-6LVJKPR3.cjs → chunk-RPKWEBHC.cjs} +8 -8
  37. package/dist/{chunk-NPNZAAOB.cjs → chunk-S6UJEW4G.cjs} +2 -2
  38. package/dist/{chunk-EHANO6UE.cjs → chunk-SVCTAOJR.cjs} +9 -129
  39. package/dist/{chunk-MALCUN2G.cjs → chunk-UULSSD56.cjs} +12 -14
  40. package/dist/{chunk-N7IDLF2G.cjs → chunk-UWGPYAB3.cjs} +1283 -268
  41. package/dist/{chunk-4IY5FKYL.cjs → chunk-VAIML6YU.cjs} +23 -23
  42. package/dist/{chunk-A34UNP5V.cjs → chunk-W4VEDSAX.cjs} +80 -11
  43. package/dist/{chunk-5S2GW6YG.cjs → chunk-XPF74L76.cjs} +17 -17
  44. package/dist/{chunk-DNZCSPMU.cjs → chunk-YKUL6JBI.cjs} +20 -20
  45. package/dist/{chunk-QOOMUGF2.cjs → chunk-YMLRDVPO.cjs} +15 -15
  46. package/dist/{chunk-NL34HKLS.cjs → chunk-ZT7JHN7G.cjs} +91 -91
  47. package/dist/{cloud-tenants-M4VFFN33.cjs → cloud-tenants-LKTWIZNS.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/stream/chat-stream-reducer.d.ts.map +1 -1
  110. package/dist/components/chat/stream/chat-stream-reducer.js +2 -15
  111. package/dist/components/chat/thinking-display.d.ts.map +1 -1
  112. package/dist/components/chat/thinking-display.js +2 -1
  113. package/dist/components/chat/tool-execution-display.d.ts.map +1 -1
  114. package/dist/components/chat/tool-execution-display.js +15 -1
  115. package/dist/components/chat/types/component.types.d.ts +13 -1
  116. package/dist/components/chat/types/component.types.d.ts.map +1 -1
  117. package/dist/components/chat/utils/chat-day-label.d.ts +8 -0
  118. package/dist/components/chat/utils/chat-day-label.d.ts.map +1 -0
  119. package/dist/components/chat/utils/chat-day-label.js +21 -0
  120. package/dist/components/contact/index.cjs +109 -107
  121. package/dist/components/docs/index.cjs +112 -110
  122. package/dist/components/embeds/index.cjs +109 -107
  123. package/dist/components/faq/index.cjs +110 -108
  124. package/dist/components/features/board/board-column.d.ts +3 -1
  125. package/dist/components/features/board/board-column.d.ts.map +1 -1
  126. package/dist/components/features/board/board-column.js +6 -2
  127. package/dist/components/features/board/board.d.ts +6 -0
  128. package/dist/components/features/board/board.d.ts.map +1 -1
  129. package/dist/components/features/board/board.js +14 -3
  130. package/dist/components/features/board/touch-board.d.ts +1 -1
  131. package/dist/components/features/board/touch-board.d.ts.map +1 -1
  132. package/dist/components/features/board/touch-board.js +3 -1
  133. package/dist/components/features/index.cjs +108 -106
  134. package/dist/components/features/notifications/approval-request-notification-tile.d.ts +7 -1
  135. package/dist/components/features/notifications/approval-request-notification-tile.d.ts.map +1 -1
  136. package/dist/components/features/notifications/approval-request-notification-tile.js +1 -1
  137. package/dist/components/features/notifications/notification-drawer.d.ts +6 -1
  138. package/dist/components/features/notifications/notification-drawer.d.ts.map +1 -1
  139. package/dist/components/features/notifications/notification-drawer.js +3 -2
  140. package/dist/components/features/notifications/notification-tile.d.ts +4 -1
  141. package/dist/components/features/notifications/notification-tile.d.ts.map +1 -1
  142. package/dist/components/features/notifications/notification-tile.js +9 -7
  143. package/dist/components/features/time-tracker/time-tracker-header-button.d.ts +18 -1
  144. package/dist/components/features/time-tracker/time-tracker-header-button.d.ts.map +1 -1
  145. package/dist/components/features/time-tracker/time-tracker-header-button.js +31 -7
  146. package/dist/components/help-center-pages/index.cjs +217 -215
  147. package/dist/components/icons-v2-generated/icon-loaders.d.ts.map +1 -1
  148. package/dist/components/icons-v2-generated/icon-loaders.js +1 -0
  149. package/dist/components/icons-v2-generated/icon-names.js +1 -1
  150. package/dist/components/icons-v2-generated/index.cjs +90 -86
  151. package/dist/components/icons-v2-generated/loaders/dots-loader-icon.d.ts.map +1 -1
  152. package/dist/components/icons-v2-generated/loaders/dots-loader-icon.js +21 -24
  153. package/dist/components/icons-v2-generated/logos/index.d.ts +1 -0
  154. package/dist/components/icons-v2-generated/logos/index.d.ts.map +1 -1
  155. package/dist/components/icons-v2-generated/logos/index.js +2 -0
  156. package/dist/components/icons-v2-generated/logos/mingo-logo-icon.d.ts +9 -0
  157. package/dist/components/icons-v2-generated/logos/mingo-logo-icon.d.ts.map +1 -0
  158. package/dist/components/icons-v2-generated/logos/mingo-logo-icon.js +36 -0
  159. package/dist/components/index.cjs +215 -182
  160. package/dist/components/meeting-scheduler/index.cjs +182 -180
  161. package/dist/components/navigation/account-popover.d.ts +62 -0
  162. package/dist/components/navigation/account-popover.d.ts.map +1 -0
  163. package/dist/components/navigation/account-popover.js +138 -0
  164. package/dist/components/navigation/app-header.d.ts +36 -2
  165. package/dist/components/navigation/app-header.d.ts.map +1 -1
  166. package/dist/components/navigation/app-header.js +28 -24
  167. package/dist/components/navigation/app-layout-context.d.ts +17 -0
  168. package/dist/components/navigation/app-layout-context.d.ts.map +1 -1
  169. package/dist/components/navigation/app-layout-context.js +9 -1
  170. package/dist/components/navigation/app-layout.d.ts +93 -1
  171. package/dist/components/navigation/app-layout.d.ts.map +1 -1
  172. package/dist/components/navigation/app-layout.js +149 -30
  173. package/dist/components/navigation/header-button.d.ts +11 -1
  174. package/dist/components/navigation/header-button.d.ts.map +1 -1
  175. package/dist/components/navigation/header-button.js +16 -5
  176. package/dist/components/navigation/header-mingo-button.d.ts.map +1 -1
  177. package/dist/components/navigation/header-mingo-button.js +6 -5
  178. package/dist/components/navigation/index.cjs +120 -109
  179. package/dist/components/navigation/index.d.ts +10 -1
  180. package/dist/components/navigation/index.d.ts.map +1 -1
  181. package/dist/components/navigation/index.js +8 -0
  182. package/dist/components/navigation/mingo-ai-button.d.ts.map +1 -1
  183. package/dist/components/navigation/mingo-ai-button.js +2 -1
  184. package/dist/components/navigation/mobile-burger-menu.d.ts.map +1 -1
  185. package/dist/components/navigation/mobile-burger-menu.js +155 -39
  186. package/dist/components/navigation/navigation-sidebar-grouped.d.ts +57 -0
  187. package/dist/components/navigation/navigation-sidebar-grouped.d.ts.map +1 -0
  188. package/dist/components/navigation/navigation-sidebar-grouped.js +365 -0
  189. package/dist/components/navigation/navigation-sidebar-match.d.ts +37 -0
  190. package/dist/components/navigation/navigation-sidebar-match.d.ts.map +1 -0
  191. package/dist/components/navigation/navigation-sidebar-match.js +85 -0
  192. package/dist/components/navigation/navigation-sidebar-slot.d.ts +7 -0
  193. package/dist/components/navigation/navigation-sidebar-slot.d.ts.map +1 -0
  194. package/dist/components/navigation/navigation-sidebar-slot.js +11 -0
  195. package/dist/components/navigation/navigation-sidebar-toggle.d.ts +7 -1
  196. package/dist/components/navigation/navigation-sidebar-toggle.d.ts.map +1 -1
  197. package/dist/components/navigation/navigation-sidebar-toggle.js +52 -23
  198. package/dist/components/navigation/navigation-sidebar.d.ts +13 -1
  199. package/dist/components/navigation/navigation-sidebar.d.ts.map +1 -1
  200. package/dist/components/navigation/navigation-sidebar.js +188 -52
  201. package/dist/components/navigation/notifications-bell-button.d.ts +28 -0
  202. package/dist/components/navigation/notifications-bell-button.d.ts.map +1 -0
  203. package/dist/components/navigation/notifications-bell-button.js +44 -0
  204. package/dist/components/navigation/ticket-alerts-button.d.ts +7 -1
  205. package/dist/components/navigation/ticket-alerts-button.d.ts.map +1 -1
  206. package/dist/components/navigation/ticket-alerts-button.js +3 -2
  207. package/dist/components/onboarding-guides/index.cjs +111 -109
  208. package/dist/components/product-demo/index.cjs +119 -117
  209. package/dist/components/related-content/index.cjs +13 -13
  210. package/dist/components/tickets/index.cjs +115 -113
  211. package/dist/components/ui/actions-menu.d.ts +6 -1
  212. package/dist/components/ui/actions-menu.d.ts.map +1 -1
  213. package/dist/components/ui/actions-menu.js +6 -2
  214. package/dist/components/ui/fade-preview.d.ts +8 -0
  215. package/dist/components/ui/fade-preview.d.ts.map +1 -1
  216. package/dist/components/ui/fade-preview.js +7 -5
  217. package/dist/components/ui/index.cjs +136 -111
  218. package/dist/components/ui/index.d.ts +1 -0
  219. package/dist/components/ui/index.d.ts.map +1 -1
  220. package/dist/components/ui/index.js +1 -0
  221. package/dist/components/ui/mobile-action-bar.d.ts +14 -0
  222. package/dist/components/ui/mobile-action-bar.d.ts.map +1 -0
  223. package/dist/components/ui/mobile-action-bar.js +68 -0
  224. package/dist/components/ui/no-data/no-data-styles.d.ts +1 -1
  225. package/dist/components/ui/no-data/no-data-styles.d.ts.map +1 -1
  226. package/dist/components/ui/no-data/no-data-styles.js +1 -1
  227. package/dist/components/ui/page-actions.d.ts.map +1 -1
  228. package/dist/components/ui/page-actions.js +24 -8
  229. package/dist/components/ui/panel-resize-handle.d.ts +6 -2
  230. package/dist/components/ui/panel-resize-handle.d.ts.map +1 -1
  231. package/dist/components/ui/panel-resize-handle.js +6 -3
  232. package/dist/components/ui/square-avatar.d.ts.map +1 -1
  233. package/dist/components/ui/square-avatar.js +5 -2
  234. package/dist/{devices-DW5NDXMD.cjs → devices-JWG72ANF.cjs} +109 -107
  235. package/dist/dots-loader-icon-5JXWD6FB.cjs +7 -0
  236. package/dist/{embeddable-chat-NBJMXEXB.cjs → embeddable-chat-5UT6UHEO.cjs} +513 -398
  237. package/dist/hooks/index.cjs +15 -16
  238. package/dist/hooks/ui/use-content-breakpoint.d.ts +4 -2
  239. package/dist/hooks/ui/use-content-breakpoint.d.ts.map +1 -1
  240. package/dist/{icon-loaders-OLGJZGRP.cjs → icon-loaders-SUPEKMBJ.cjs} +2 -1
  241. package/dist/index.cjs +154 -121
  242. package/dist/{knowledge-EYJG2TNW.cjs → knowledge-DQXVSHME.cjs} +109 -107
  243. package/dist/{logs-2LV7DTSL.cjs → logs-Z33VBTVX.cjs} +118 -115
  244. package/dist/mingo-logo-icon-WGPBSDTF.cjs +7 -0
  245. package/dist/{policies-HSDYIQBX.cjs → policies-XE4UMH6Z.cjs} +112 -110
  246. package/dist/{remote-session-BQMTIQTU.cjs → remote-session-QGFG5WAL.cjs} +99 -97
  247. package/dist/{scripts-UI6V7ANQ.cjs → scripts-MECQG5GG.cjs} +115 -113
  248. package/dist/{software-update-WMLY7VHH.cjs → software-update-PCSIA6BP.cjs} +112 -110
  249. package/dist/{tickets-board-TRXOX77R.cjs → tickets-board-KCH6ITUV.cjs} +95 -94
  250. package/dist/types/navigation.d.ts +131 -0
  251. package/dist/types/navigation.d.ts.map +1 -1
  252. package/dist/utils/index.cjs +65 -25
  253. package/package.json +1 -1
  254. package/src/components/chat/approval-batch-message.tsx +3 -2
  255. package/src/components/chat/chat-archive-page.tsx +16 -0
  256. package/src/components/chat/chat-composer.tsx +131 -61
  257. package/src/components/chat/chat-context-memory-bar.tsx +27 -17
  258. package/src/components/chat/chat-context-picker.tsx +45 -11
  259. package/src/components/chat/chat-header-rename-field.tsx +68 -0
  260. package/src/components/chat/chat-input.tsx +9 -1
  261. package/src/components/chat/composer-sheet.tsx +196 -0
  262. package/src/components/chat/embeddable-chat.tsx +636 -319
  263. package/src/components/chat/index.ts +6 -0
  264. package/src/components/chat/mingo-chat-day-groups.ts +62 -0
  265. package/src/components/chat/mingo-chat-header.tsx +99 -23
  266. package/src/components/chat/mingo-chat-history-section.tsx +670 -0
  267. package/src/components/chat/mingo-chat-history.tsx +31 -45
  268. package/src/components/chat/mingo-chat-list-shared.tsx +244 -0
  269. package/src/components/chat/mingo-chat-rail.tsx +45 -97
  270. package/src/components/chat/mingo-edge-light.tsx +25 -0
  271. package/src/components/chat/mingo-history-rail.tsx +7 -17
  272. package/src/components/chat/mingo-quick-action-wall.tsx +64 -0
  273. package/src/components/chat/mingo-welcome.tsx +5 -19
  274. package/src/components/chat/model-display.tsx +66 -14
  275. package/src/components/chat/stream/chat-stream-reducer.ts +4 -18
  276. package/src/components/chat/thinking-display.tsx +2 -1
  277. package/src/components/chat/tool-execution-display.tsx +9 -1
  278. package/src/components/chat/types/component.types.ts +13 -1
  279. package/src/components/chat/utils/chat-day-label.ts +24 -0
  280. package/src/components/features/board/board-column.tsx +8 -0
  281. package/src/components/features/board/board.tsx +16 -2
  282. package/src/components/features/board/touch-board.tsx +2 -0
  283. package/src/components/features/notifications/approval-request-notification-tile.tsx +8 -2
  284. package/src/components/features/notifications/notification-drawer.tsx +7 -1
  285. package/src/components/features/notifications/notification-tile.tsx +17 -9
  286. package/src/components/features/time-tracker/time-tracker-header-button.tsx +53 -6
  287. package/src/components/icons-v2/icon-colors.json +4 -0
  288. package/src/components/icons-v2-generated/icon-loaders.ts +1 -0
  289. package/src/components/icons-v2-generated/icon-names.ts +1 -1
  290. package/src/components/icons-v2-generated/loaders/dots-loader-icon.tsx +18 -27
  291. package/src/components/icons-v2-generated/logos/index.ts +1 -0
  292. package/src/components/icons-v2-generated/logos/mingo-logo-icon.tsx +35 -0
  293. package/src/components/navigation/account-popover.tsx +198 -0
  294. package/src/components/navigation/app-header.tsx +74 -33
  295. package/src/components/navigation/app-layout-context.ts +22 -0
  296. package/src/components/navigation/app-layout.tsx +290 -24
  297. package/src/components/navigation/header-button.tsx +27 -5
  298. package/src/components/navigation/header-mingo-button.tsx +6 -5
  299. package/src/components/navigation/index.ts +19 -0
  300. package/src/components/navigation/mingo-ai-button.tsx +2 -3
  301. package/src/components/navigation/mobile-burger-menu.tsx +219 -53
  302. package/src/components/navigation/navigation-sidebar-grouped.tsx +554 -0
  303. package/src/components/navigation/navigation-sidebar-match.ts +152 -0
  304. package/src/components/navigation/navigation-sidebar-slot.ts +12 -0
  305. package/src/components/navigation/navigation-sidebar-toggle.tsx +39 -6
  306. package/src/components/navigation/navigation-sidebar.tsx +278 -61
  307. package/src/components/navigation/notifications-bell-button.tsx +70 -0
  308. package/src/components/navigation/ticket-alerts-button.tsx +9 -2
  309. package/src/components/ui/actions-menu.tsx +19 -3
  310. package/src/components/ui/fade-preview.tsx +13 -6
  311. package/src/components/ui/index.ts +1 -0
  312. package/src/components/ui/mobile-action-bar.ts +87 -0
  313. package/src/components/ui/no-data/no-data-styles.ts +5 -2
  314. package/src/components/ui/page-actions.tsx +38 -11
  315. package/src/components/ui/panel-resize-handle.tsx +14 -5
  316. package/src/components/ui/square-avatar.tsx +5 -2
  317. package/src/hooks/ui/use-content-breakpoint.ts +4 -2
  318. package/src/styles/ods-interaction-states.css +68 -0
  319. package/src/types/navigation.ts +140 -0
  320. package/dist/chunk-C7GIHB3V.cjs +0 -59
  321. package/dist/dots-loader-icon-RBLX46X7.cjs +0 -7
  322. package/dist/{chunk-ZOZR3QI2.cjs → chunk-46547WQW.cjs} +0 -0
  323. package/dist/{video-file-player-IAMWBKEQ.cjs → video-file-player-IHO66P2Q.cjs} +1 -1
@@ -7,6 +7,7 @@ import { usePreventScroll } from "@react-aria/overlays";
7
7
  import { isIOS } from "@react-aria/utils";
8
8
  import { MessageSquare } from "lucide-react";
9
9
  import React, { useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
10
+ import { createPortal } from "react-dom";
10
11
  import { useRequiredChatRuntime } from "../../contexts/chat-runtime-context.js";
11
12
  import { useIsHydrated } from "../../hooks/ui/use-is-hydrated.js";
12
13
  import { cn } from "../../utils/cn.js";
@@ -68,6 +69,7 @@ import { SourceActionButton } from "./source-action-button.js";
68
69
  import { AUTHOR_TYPE, CHAT_APPEARANCE } from "./types/chat.types.js";
69
70
  import { ASK_AI_OPEN_EVENT, ASK_AI_OPEN_WITH_REF_EVENT, chatListensForAskAiOpens } from "./utils/ask-ai-events.js";
70
71
  import { formatChatAttachmentMarkdownForBubble } from "./utils/chat-attachment-markdown.js";
72
+ import { chatDayLabel } from "./utils/chat-day-label.js";
71
73
  import { chatChipClass } from "./utils/chip-styles.js";
72
74
  import { FALLBACK_TOP_RETRIEVED, groupedRowLabels, splitCitedSources } from "./utils/cited-sources.js";
73
75
  import { flattenAssistantContent } from "./utils/flatten-assistant-content.js";
@@ -383,10 +385,28 @@ function EmbeddableChatInner({
383
385
  onWhatToAsk,
384
386
  whatToAsk: whatToAskContent,
385
387
  chatMenuExtraItems,
388
+ rail = "auto",
389
+ threadContainer,
390
+ threadHeaderActions,
391
+ threadContentClassName,
392
+ showModel = true,
393
+ onModelClick,
394
+ modelTooltip,
395
+ composerMenuItems,
396
+ composerFooterActions,
397
+ composerContextLeading,
398
+ composerPlaceholder,
399
+ composerEdgeLight = false,
400
+ renameMode = "modal",
401
+ safeAreaBottom = true,
402
+ onDialogCreated,
403
+ composerPreviewText = null,
386
404
  handleRef
387
405
  }) {
388
406
  const shellLess = shell !== "drawer";
389
407
  const isV2 = appearance === CHAT_APPEARANCE.V2;
408
+ const splitMode = threadContainer !== void 0;
409
+ const hostOwnsList = rail === "none" || splitMode;
390
410
  const runtime = useRequiredChatRuntime();
391
411
  const source = runtime.source ?? "";
392
412
  const commandsUrl = runtime.endpoints.commandsUrl;
@@ -409,7 +429,7 @@ function EmbeddableChatInner({
409
429
  onChange: onOpenChange
410
430
  });
411
431
  const [autoFocusInput] = useState(() => {
412
- if (typeof window === "undefined") return false;
432
+ if (typeof window === "undefined" || shell === "inline") return false;
413
433
  return !window.matchMedia("(pointer: coarse)").matches;
414
434
  });
415
435
  usePreventScroll({ isDisabled: !isOpen || shellLess });
@@ -594,10 +614,13 @@ function EmbeddableChatInner({
594
614
  const scopeDialogId = activeDialogId ?? null;
595
615
  const [composerScope, setComposerScope] = useState({ dialogId: scopeDialogId, mode: activeMode });
596
616
  const [composerKey, setComposerKey] = useState(0);
617
+ const [createdDialogId, setCreatedDialogId] = useState(null);
597
618
  if (composerScope.dialogId !== scopeDialogId || composerScope.mode !== activeMode) {
598
619
  const named = namingNewChat && composerScope.dialogId == null && scopeDialogId != null && composerScope.mode === activeMode;
599
620
  setComposerScope({ dialogId: scopeDialogId, mode: activeMode });
600
- if (!named) {
621
+ if (named) {
622
+ setCreatedDialogId(scopeDialogId);
623
+ } else {
601
624
  setComposerKey((k) => k + 1);
602
625
  setContextItems(NO_CONTEXT_ITEMS);
603
626
  setContextPickerOpen(false);
@@ -608,6 +631,13 @@ function EmbeddableChatInner({
608
631
  mentionKeysRef.current.clear();
609
632
  clearAttachments();
610
633
  }, [composerKey, clearAttachments]);
634
+ const onDialogCreatedRef = useRef(onDialogCreated);
635
+ useEffect(() => {
636
+ onDialogCreatedRef.current = onDialogCreated;
637
+ });
638
+ useEffect(() => {
639
+ if (createdDialogId != null) onDialogCreatedRef.current?.(createdDialogId);
640
+ }, [createdDialogId]);
611
641
  const mentionMarkerByType = useMemo(() => {
612
642
  const m = /* @__PURE__ */ new Map();
613
643
  for (const t of contextPicker?.entityTypes ?? []) if (t.marker) m.set(t.type, t.marker);
@@ -689,6 +719,8 @@ function EmbeddableChatInner({
689
719
  }, [setIsOpen]);
690
720
  const sendPromptRef = useRef(() => {
691
721
  });
722
+ const whatToAskEntryRef = useRef(() => {
723
+ });
692
724
  const chatPanelHandle = useMemo(
693
725
  () => ({
694
726
  closeChat: handleNavigationClose,
@@ -919,6 +951,8 @@ function EmbeddableChatInner({
919
951
  );
920
952
  const [portalHost, setPortalHost] = useState(null);
921
953
  const [panelBoundary, setPanelBoundary] = useState(null);
954
+ const [threadPortalHost, setThreadPortalHost] = useState(null);
955
+ const [threadBoundary, setThreadBoundary] = useState(null);
922
956
  const splitMinWidth = (isV2 ? MINGO_V2_RAIL_WIDTH : HISTORY_RAIL_WIDTH) + CHAT_BLOCK_MIN_WIDTH;
923
957
  const [canSplit, setCanSplit] = useState(false);
924
958
  useEffect(() => {
@@ -959,7 +993,7 @@ function EmbeddableChatInner({
959
993
  }, []);
960
994
  const [railSearchOpen, setRailSearchOpen] = useState(false);
961
995
  const splitEligible = historyListMode;
962
- const wideMingo = splitEligible && canSplit && !previewMode;
996
+ const wideMingo = splitEligible && canSplit && !previewMode && !hostOwnsList;
963
997
  const splitActive = wideMingo && !railCollapsed;
964
998
  const railPresence = useRailPresence(splitActive);
965
999
  const showWideHeader = wideMingo || railPresence.mounted;
@@ -967,7 +1001,7 @@ function EmbeddableChatInner({
967
1001
  if (hasConversation && composeOpen) setComposeOpen(false);
968
1002
  const isMingoMode = historyListMode;
969
1003
  const emptyListSkipped = mingoCaps.emptyListSkipsToCompose === true && dialogs.length === 0 && !dialogsInitialLoading && !mingoCaps.searchQuery;
970
- const stackedListView = isMingoMode && !hasConversation && !archiveOpen && !wideMingo && !composeOpen && !emptyListSkipped;
1004
+ const stackedListView = isMingoMode && !hasConversation && !archiveOpen && !wideMingo && !composeOpen && !emptyListSkipped && !hostOwnsList;
971
1005
  const headerShowBack = hasConversation || guideCanReturnToMingo;
972
1006
  const freshConversationTitle = isGuideEmpty ? headerAssistantName ?? "Mingo Guide" : "New Chat";
973
1007
  const headerTitle = hasConversation ? activeDialog?.title || freshConversationTitle : isGuideEmpty ? freshConversationTitle : "Current Chats";
@@ -1084,9 +1118,13 @@ function EmbeddableChatInner({
1084
1118
  setComposeOpen(true);
1085
1119
  mentionKeysRef.current.clear();
1086
1120
  setPendingDraft({ text, mentions: mentions.slice(0, contextMaxItems) });
1121
+ },
1122
+ showWhatToAsk: () => whatToAskEntryRef.current(),
1123
+ openContextPicker: () => {
1124
+ if (contextPicker) openContextPicker();
1087
1125
  }
1088
1126
  }),
1089
- [resetToNewChat, contextMaxItems]
1127
+ [resetToNewChat, contextMaxItems, contextPicker, openContextPicker]
1090
1128
  );
1091
1129
  const splitHeaderMenuItems = chatDialogMenuItems({
1092
1130
  onCopyLink: headerOnCopyLink,
@@ -1094,14 +1132,33 @@ function EmbeddableChatInner({
1094
1132
  onCompact: headerOnCompact,
1095
1133
  onArchive: headerOnArchive
1096
1134
  });
1135
+ const [inlineRenameId, setInlineRenameId] = useState(null);
1136
+ const inlineRenaming = inlineRenameId != null && inlineRenameId === activeDialogId;
1137
+ const mingoHeaderOnRename = renameMode === "inline" && headerOnRename && activeDialogId ? () => setInlineRenameId(activeDialogId) : headerOnRename;
1138
+ const submitInlineRename = (value) => {
1139
+ setInlineRenameId(null);
1140
+ const target = activeDialog;
1141
+ const next = value.trim();
1142
+ if (!target || !next || next === target.title) return;
1143
+ renameDialog(target.id, next).catch((err) => {
1144
+ console.error("[EmbeddableChat] inline rename failed:", err);
1145
+ });
1146
+ };
1147
+ const cancelInlineRename = () => setInlineRenameId(null);
1148
+ const mingoHeaderMenuItems = chatDialogMenuItems({
1149
+ onCopyLink: headerOnCopyLink,
1150
+ onRename: mingoHeaderOnRename,
1151
+ onCompact: headerOnCompact,
1152
+ onArchive: headerOnArchive
1153
+ });
1097
1154
  const narrowMingoEmpty = isMingoMode && !hasConversation && !archiveOpen && !emptyListSkipped;
1098
- const narrowHeaderProps = narrowMingoEmpty ? composeOpen ? {
1099
- showBack: true,
1155
+ const narrowHeaderProps = narrowMingoEmpty ? composeOpen || hostOwnsList ? {
1156
+ showBack: !hostOwnsList,
1100
1157
  title: freshConversationTitle,
1101
1158
  subtitle: headerUserName,
1102
1159
  avatar: headerAvatar,
1103
1160
  backAriaLabel: "Back to chats",
1104
- onBack: () => setComposeOpen(false),
1161
+ onBack: hostOwnsList ? void 0 : () => setComposeOpen(false),
1105
1162
  onClose: closeControl
1106
1163
  } : {
1107
1164
  showBack: false,
@@ -1132,6 +1189,12 @@ function EmbeddableChatInner({
1132
1189
  if (archiveOpen) closeArchive();
1133
1190
  action();
1134
1191
  };
1192
+ const openWhatToAsk = () => {
1193
+ leaveArchiveThen(onWhatToAsk ?? (whatToAskContent ? requestWhatToAsk : handleNewChat))();
1194
+ };
1195
+ useEffect(() => {
1196
+ whatToAskEntryRef.current = openWhatToAsk;
1197
+ });
1135
1198
  const mingoRailProps = {
1136
1199
  dialogs,
1137
1200
  // The archive takes the chat column: the open chat stays selected (closing
@@ -1144,10 +1207,7 @@ function EmbeddableChatInner({
1144
1207
  onNewChat: leaveArchiveThen(handleNewChat),
1145
1208
  onOpenArchive: headerOnOpenArchive && (archiveOpen ? closeArchive : headerOnOpenArchive),
1146
1209
  archiveActive: archiveOpen,
1147
- // The suggestions a new chat opens on, unless the host has a surface of its own.
1148
- onWhatToAsk: () => {
1149
- leaveArchiveThen(onWhatToAsk ?? (whatToAskContent ? requestWhatToAsk : handleNewChat))();
1150
- },
1210
+ onWhatToAsk: openWhatToAsk,
1151
1211
  statusOf: dialogStatusOf,
1152
1212
  onRequestRename: mingoCaps.canRename ? setRenameTarget : void 0,
1153
1213
  onRequestArchive: mingoCaps.canArchive ? setArchiveTarget : void 0,
@@ -1173,9 +1233,12 @@ function EmbeddableChatInner({
1173
1233
  title: archiveOpen ? "Chat Archive" : headerShowBack || isGuideEmpty ? headerTitle : freshConversationTitle,
1174
1234
  subtitle: archiveOpen ? void 0 : headerPersonName,
1175
1235
  avatar: archiveOpen ? void 0 : headerAvatar,
1176
- onToggleList: wideMingo ? toggleRailCollapsed : headerShowBack ? headerOnBack : () => setComposeOpen(false),
1236
+ onToggleList: hostOwnsList ? void 0 : wideMingo ? toggleRailCollapsed : headerShowBack ? headerOnBack : () => setComposeOpen(false),
1177
1237
  listOpen: splitActive,
1178
- menuItems: headerShowBack && !isViewingArchived && !archiveOpen ? splitHeaderMenuItems : [],
1238
+ menuItems: headerShowBack && !isViewingArchived && !archiveOpen ? mingoHeaderMenuItems : [],
1239
+ renaming: inlineRenaming && !archiveOpen,
1240
+ onRenameSubmit: submitInlineRename,
1241
+ onRenameCancel: cancelInlineRename,
1179
1242
  extraMenuItems: isViewingArchived || archiveOpen ? void 0 : chatMenuExtraItems,
1180
1243
  onRestore: isViewingArchived && !archiveOpen ? headerOnRestore : void 0,
1181
1244
  onCollapse: wideMingo && onCollapse ? () => {
@@ -1185,7 +1248,200 @@ function EmbeddableChatInner({
1185
1248
  onClose: closeControl
1186
1249
  }
1187
1250
  ) }) : null;
1188
- const body = (
1251
+ const archiveListNode = /* @__PURE__ */ jsx(
1252
+ MingoArchiveList,
1253
+ {
1254
+ dialogs: archivedDialogs,
1255
+ onSelectDialog: handleArchivedSelect,
1256
+ isLoading: archivedLoading,
1257
+ hasMore: archivedCursor != null,
1258
+ isLoadingMore: archivedPending,
1259
+ onLoadMore: () => {
1260
+ void loadArchivedPage(archivedCursor ?? void 0);
1261
+ }
1262
+ }
1263
+ );
1264
+ const threadArea = /* @__PURE__ */ jsx(
1265
+ "div",
1266
+ {
1267
+ ref: galleryPanelRef,
1268
+ "data-testid": "chat-content-panel",
1269
+ className: cn(
1270
+ "flex min-h-0 flex-1 flex-col p-[var(--spacing-system-m)]",
1271
+ // With a host block above the composer the thread keeps room
1272
+ // for a line and the working status: the block gives way
1273
+ // instead (below), so the status never lands on it.
1274
+ hasAboveComposer && "min-h-32"
1275
+ ),
1276
+ children: /* @__PURE__ */ jsx("div", { className: "flex min-h-0 flex-1 flex-col duration-200 animate-in fade-in-0", children: hasConversation ? /* @__PURE__ */ jsx("div", { className: "flex min-h-0 flex-1 flex-col", children: /* @__PURE__ */ jsx(
1277
+ ChatMessageList,
1278
+ {
1279
+ messages,
1280
+ isLoading: messagesInitialLoading,
1281
+ fill: previewMode,
1282
+ appearance,
1283
+ isTyping: chatLoading,
1284
+ pendingApprovals,
1285
+ autoScroll: !previewMode,
1286
+ pinBottom: previewMode,
1287
+ overscrollContain: !previewMode,
1288
+ assistantType: "mingo",
1289
+ assistantIcon: mingoAssistantIcon,
1290
+ renderEntityCard,
1291
+ resolveContextIcon,
1292
+ renderContextItem,
1293
+ renderMention,
1294
+ renderAfterMessage: renderMessageSources,
1295
+ onAskSelect: chatLoading || previewMode ? void 0 : handleAskSelect,
1296
+ NavLinkAnchor: NavLinkAnchorViaRuntime,
1297
+ className: previewMode ? "pointer-events-auto flex-1" : "flex-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
1298
+ contentClassName: cn("max-w-none pb-0", splitMode && threadContentClassName),
1299
+ fullWidth: true,
1300
+ hasNextPage: hasMoreMessages,
1301
+ isFetchingNextPage: isMessagesLoading,
1302
+ onLoadMore: loadMoreMessages
1303
+ }
1304
+ ) }) : activeMode === "mingo" ? (
1305
+ /* Figma node 7532:222444 — default (Mingo-mode) empty state:
1306
+ centred greeting + capability grid + Guide-chat promo +
1307
+ quick-action chips. Guide mode keeps the slash-command
1308
+ onboarding list below. */
1309
+ /* @__PURE__ */ jsx(
1310
+ MingoWelcome,
1311
+ {
1312
+ onStartGuideChat: effectiveModes.guide ? () => handleActiveModeChange("guide") : void 0,
1313
+ historyPageSize,
1314
+ ...mingoWelcome,
1315
+ hasExistingChats: false,
1316
+ onQuickActionHover: (action) => setQuickActionPreview(action.prompt ?? action.label),
1317
+ onQuickActionHoverEnd: () => setQuickActionPreview(null),
1318
+ agentSlug: activeAgentSlug ?? "mingo"
1319
+ }
1320
+ )
1321
+ ) : (
1322
+ /* Figma node 7532:328214 — Guide-mode empty state: greeting
1323
+ + slash-command onboarding list share one scroll region,
1324
+ with a pinned quick-action chip row above the composer. */
1325
+ /* @__PURE__ */ jsx(
1326
+ GuideWelcome,
1327
+ {
1328
+ subtitle: effectiveGreeting ?? void 0,
1329
+ subtitleLoading: emptyStateLoading,
1330
+ ...guideWelcome,
1331
+ title: effectiveAssistantName ?? guideWelcome?.title,
1332
+ icon: effectiveAssistantIcon ?? guideWelcome?.icon,
1333
+ quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : guideWelcome?.quickActions ?? guideSuggestedActions,
1334
+ onQuickAction: (action) => {
1335
+ setQuickActionPreview(null);
1336
+ handleSend(action.prompt ?? action.label);
1337
+ },
1338
+ onQuickActionHover: (action) => setQuickActionPreview(action.prompt ?? action.label),
1339
+ onQuickActionHoverEnd: () => setQuickActionPreview(null),
1340
+ agentSlug: activeAgentSlug,
1341
+ children: (chipCommands.length > 0 || !commandsLoaded) && /* @__PURE__ */ jsxs("div", { className: "shrink-0 overflow-hidden rounded-md border border-ods-border", children: [
1342
+ !commandsLoaded && chipCommands.length === 0 && /* @__PURE__ */ jsx(LoadingItems, { count: MINGO_ONBOARDING_SKELETON_ROWS, children: (i) => /* @__PURE__ */ jsx(MingoOnboardingCard, { loading: true, "data-loading-item": true, skeletonIndex: i, title: "" }) }),
1343
+ chipCommands.map((cmd) => {
1344
+ const Icon = resolveIcon(cmd.iconName);
1345
+ const cmdId = cmd.id;
1346
+ const label = cmd.label ?? `/${cmdId}`;
1347
+ const cardActions = cmd.actions.map((action) => ({
1348
+ id: action.id,
1349
+ label: action.label,
1350
+ onClick: () => dispatchSlashCommandAction(action.id, cmdId, chatInputRef)
1351
+ }));
1352
+ return /* @__PURE__ */ jsx(
1353
+ MingoOnboardingCard,
1354
+ {
1355
+ icon: /* @__PURE__ */ jsx(Icon, { size: 16 }),
1356
+ title: label,
1357
+ slashCommand: `/${cmdId}`,
1358
+ description: cmd.description,
1359
+ actions: cardActions,
1360
+ "data-loading-item": true
1361
+ },
1362
+ cmdId
1363
+ );
1364
+ })
1365
+ ] })
1366
+ }
1367
+ )
1368
+ ) }, contentViewKey)
1369
+ }
1370
+ );
1371
+ const aboveComposerNode = hasAboveComposer ? /* @__PURE__ */ jsx(
1372
+ "div",
1373
+ {
1374
+ "data-testid": "chat-above-composer",
1375
+ className: "flex min-h-0 shrink flex-col px-[var(--spacing-system-m)] pb-[var(--spacing-system-m)]",
1376
+ children: aboveComposer
1377
+ }
1378
+ ) : null;
1379
+ const attachmentStrip = /* @__PURE__ */ jsx(ChatAttachmentChipStrip, { attachments: stagedAttachments, onRemove: removeAttachment, disabled: chatLoading });
1380
+ const composerNode = /* @__PURE__ */ jsx(
1381
+ ChatComposer,
1382
+ {
1383
+ archived: isViewingArchived,
1384
+ lock: composerLock,
1385
+ inputRef: chatInputRef,
1386
+ onSend: handleSend,
1387
+ onStop: stopMessage,
1388
+ sending: chatLoading || hasInflightUploads,
1389
+ placeholder: hasInflightUploads ? "Waiting for uploads to finish\u2026" : composerPlaceholder ?? (isV2 ? "Enter your Request..." : "Ask a question..."),
1390
+ autoFocus: previewMode ? false : autoFocusInput,
1391
+ slashCommands: slashCommandsProp,
1392
+ previewText: quickActionPreview ?? composerPreviewText ?? void 0,
1393
+ safeAreaBottom,
1394
+ edgeLight: composerEdgeLight,
1395
+ showAttachmentButton: attachmentsEnabled && activeMode === "guide",
1396
+ attachmentsCount: stagedAttachments.length,
1397
+ onAddFiles: addAttachmentFiles,
1398
+ attachmentsDisabled: chatLoading,
1399
+ contextPicker: contextPickerForMode,
1400
+ selectedContextItems: contextItems,
1401
+ onToggleContextItem: toggleContextItem,
1402
+ onRemoveContextItem: removeContextItem,
1403
+ contextMemoryItems: contextMemory?.items,
1404
+ contextLeading: composerContextLeading,
1405
+ onRemoveContextMemoryItem: contextMemory?.onRemove,
1406
+ contextMemoryPending: contextMemory?.pending,
1407
+ contextPickerOpen,
1408
+ onOpenContextPicker: openContextPicker,
1409
+ onCloseContextPicker: closeContextPicker,
1410
+ mentionQuery,
1411
+ onMentionQueryChange: handleMentionQueryChange,
1412
+ onValueChange: handleContextValueChange,
1413
+ menuItems: composerMenuItems,
1414
+ footerActions: composerFooterActions,
1415
+ model: showModel ? {
1416
+ provider: currentProvider ?? "anthropic",
1417
+ modelName: currentModelLabel ?? "Claude",
1418
+ usedTokens: currentInputTokens != null ? (currentInputTokens ?? 0) + (currentOutputTokens ?? 0) : void 0,
1419
+ contextWindow: currentContextWindowMaxTokens ?? void 0,
1420
+ inputTokens: currentInputTokens ?? void 0,
1421
+ outputTokens: currentOutputTokens ?? void 0,
1422
+ hitRatePct: currentCacheHitRatePct ?? void 0,
1423
+ breakdown: currentUsageBreakdown ?? void 0,
1424
+ onModelClick,
1425
+ modelTooltip
1426
+ } : void 0
1427
+ },
1428
+ composerKey
1429
+ );
1430
+ const dialogModals = /* @__PURE__ */ jsx(
1431
+ ChatDialogModals,
1432
+ {
1433
+ renameTarget,
1434
+ setRenameTarget,
1435
+ onConfirmRename: handleConfirmRename,
1436
+ archiveTarget,
1437
+ setArchiveTarget,
1438
+ onConfirmArchive: handleConfirmArchive,
1439
+ restoreTarget,
1440
+ setRestoreTarget,
1441
+ onConfirmRestore: handleConfirmRestore
1442
+ }
1443
+ );
1444
+ const classicBody = (
1189
1445
  // The whole panel reads the appearance (the composer's footer too), not
1190
1446
  // only the thread `ChatMessageList` provides it to.
1191
1447
  /* @__PURE__ */ jsx(ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ jsx(PortalContainerContext.Provider, { value: portalHost, children: /* @__PURE__ */ jsxs(CollisionBoundaryContext.Provider, { value: panelBoundary, children: [
@@ -1406,19 +1662,7 @@ function EmbeddableChatInner({
1406
1662
  /* @__PURE__ */ jsx("div", { className: cn("flex min-h-0 min-w-0 flex-1 flex-col", isV2 && "ods-glow-accent-corner"), children: isV2 && archiveOpen ? (
1407
1663
  // v2: the archive opens in the chat column under the chat's
1408
1664
  // header; the list stays, and "Chat Archive" there toggles back.
1409
- /* @__PURE__ */ jsx(
1410
- MingoArchiveList,
1411
- {
1412
- dialogs: archivedDialogs,
1413
- onSelectDialog: handleArchivedSelect,
1414
- isLoading: archivedLoading,
1415
- hasMore: archivedCursor != null,
1416
- isLoadingMore: archivedPending,
1417
- onLoadMore: () => {
1418
- void loadArchivedPage(archivedCursor ?? void 0);
1419
- }
1420
- }
1421
- )
1665
+ archiveListNode
1422
1666
  ) : stackedListView && isV2 ? /* @__PURE__ */ jsx(
1423
1667
  MingoChatRail,
1424
1668
  {
@@ -1465,179 +1709,10 @@ function EmbeddableChatInner({
1465
1709
  }
1466
1710
  )
1467
1711
  ) : /* @__PURE__ */ jsxs(Fragment, { children: [
1468
- /* @__PURE__ */ jsx(
1469
- "div",
1470
- {
1471
- ref: galleryPanelRef,
1472
- "data-testid": "chat-content-panel",
1473
- className: cn(
1474
- "flex min-h-0 flex-1 flex-col p-[var(--spacing-system-m)]",
1475
- // With a host block above the composer the thread keeps room
1476
- // for a line and the working status: the block gives way
1477
- // instead (below), so the status never lands on it.
1478
- hasAboveComposer && "min-h-32"
1479
- ),
1480
- children: /* @__PURE__ */ jsx(
1481
- "div",
1482
- {
1483
- className: "flex min-h-0 flex-1 flex-col duration-200 animate-in fade-in-0",
1484
- children: hasConversation ? /* @__PURE__ */ jsx("div", { className: "flex min-h-0 flex-1 flex-col", children: /* @__PURE__ */ jsx(
1485
- ChatMessageList,
1486
- {
1487
- messages,
1488
- isLoading: messagesInitialLoading,
1489
- fill: previewMode,
1490
- appearance,
1491
- isTyping: chatLoading,
1492
- pendingApprovals,
1493
- autoScroll: !previewMode,
1494
- pinBottom: previewMode,
1495
- overscrollContain: !previewMode,
1496
- assistantType: "mingo",
1497
- assistantIcon: mingoAssistantIcon,
1498
- renderEntityCard,
1499
- resolveContextIcon,
1500
- renderContextItem,
1501
- renderMention,
1502
- renderAfterMessage: renderMessageSources,
1503
- onAskSelect: chatLoading || previewMode ? void 0 : handleAskSelect,
1504
- NavLinkAnchor: NavLinkAnchorViaRuntime,
1505
- className: previewMode ? "pointer-events-auto flex-1" : "flex-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
1506
- contentClassName: "max-w-none pb-0",
1507
- fullWidth: true,
1508
- hasNextPage: hasMoreMessages,
1509
- isFetchingNextPage: isMessagesLoading,
1510
- onLoadMore: loadMoreMessages
1511
- }
1512
- ) }) : activeMode === "mingo" ? (
1513
- /* Figma node 7532:222444 — default (Mingo-mode) empty state:
1514
- centred greeting + capability grid + Guide-chat promo +
1515
- quick-action chips. Guide mode keeps the slash-command
1516
- onboarding list below. */
1517
- /* @__PURE__ */ jsx(
1518
- MingoWelcome,
1519
- {
1520
- onStartGuideChat: effectiveModes.guide ? () => handleActiveModeChange("guide") : void 0,
1521
- historyPageSize,
1522
- ...mingoWelcome,
1523
- hasExistingChats: false,
1524
- onQuickActionHover: (action) => setQuickActionPreview(action.prompt ?? action.label),
1525
- onQuickActionHoverEnd: () => setQuickActionPreview(null),
1526
- agentSlug: activeAgentSlug ?? "mingo"
1527
- }
1528
- )
1529
- ) : (
1530
- /* Figma node 7532:328214 — Guide-mode empty state: greeting
1531
- + slash-command onboarding list share one scroll region,
1532
- with a pinned quick-action chip row above the composer. */
1533
- /* @__PURE__ */ jsx(
1534
- GuideWelcome,
1535
- {
1536
- subtitle: effectiveGreeting ?? void 0,
1537
- subtitleLoading: emptyStateLoading,
1538
- ...guideWelcome,
1539
- title: effectiveAssistantName ?? guideWelcome?.title,
1540
- icon: effectiveAssistantIcon ?? guideWelcome?.icon,
1541
- quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : guideWelcome?.quickActions ?? guideSuggestedActions,
1542
- onQuickAction: (action) => {
1543
- setQuickActionPreview(null);
1544
- handleSend(action.prompt ?? action.label);
1545
- },
1546
- onQuickActionHover: (action) => setQuickActionPreview(action.prompt ?? action.label),
1547
- onQuickActionHoverEnd: () => setQuickActionPreview(null),
1548
- agentSlug: activeAgentSlug,
1549
- children: (chipCommands.length > 0 || !commandsLoaded) && /* @__PURE__ */ jsxs("div", { className: "shrink-0 overflow-hidden rounded-md border border-ods-border", children: [
1550
- !commandsLoaded && chipCommands.length === 0 && /* @__PURE__ */ jsx(LoadingItems, { count: MINGO_ONBOARDING_SKELETON_ROWS, children: (i) => /* @__PURE__ */ jsx(MingoOnboardingCard, { loading: true, "data-loading-item": true, skeletonIndex: i, title: "" }) }),
1551
- chipCommands.map((cmd) => {
1552
- const Icon = resolveIcon(cmd.iconName);
1553
- const cmdId = cmd.id;
1554
- const label = cmd.label ?? `/${cmdId}`;
1555
- const cardActions = cmd.actions.map((action) => ({
1556
- id: action.id,
1557
- label: action.label,
1558
- onClick: () => dispatchSlashCommandAction(action.id, cmdId, chatInputRef)
1559
- }));
1560
- return /* @__PURE__ */ jsx(
1561
- MingoOnboardingCard,
1562
- {
1563
- icon: /* @__PURE__ */ jsx(Icon, { size: 16 }),
1564
- title: label,
1565
- slashCommand: `/${cmdId}`,
1566
- description: cmd.description,
1567
- actions: cardActions,
1568
- "data-loading-item": true
1569
- },
1570
- cmdId
1571
- );
1572
- })
1573
- ] })
1574
- }
1575
- )
1576
- )
1577
- },
1578
- contentViewKey
1579
- )
1580
- }
1581
- ),
1582
- hasAboveComposer && /* @__PURE__ */ jsx(
1583
- "div",
1584
- {
1585
- "data-testid": "chat-above-composer",
1586
- className: "flex min-h-0 shrink flex-col px-[var(--spacing-system-m)] pb-[var(--spacing-system-m)]",
1587
- children: aboveComposer
1588
- }
1589
- ),
1590
- /* @__PURE__ */ jsx(
1591
- ChatAttachmentChipStrip,
1592
- {
1593
- attachments: stagedAttachments,
1594
- onRemove: removeAttachment,
1595
- disabled: chatLoading
1596
- }
1597
- ),
1598
- /* @__PURE__ */ jsx(
1599
- ChatComposer,
1600
- {
1601
- archived: isViewingArchived,
1602
- lock: composerLock,
1603
- inputRef: chatInputRef,
1604
- onSend: handleSend,
1605
- onStop: stopMessage,
1606
- sending: chatLoading || hasInflightUploads,
1607
- placeholder: hasInflightUploads ? "Waiting for uploads to finish\u2026" : isV2 ? "Enter your Request..." : "Ask a question...",
1608
- autoFocus: previewMode ? false : autoFocusInput,
1609
- slashCommands: slashCommandsProp,
1610
- previewText: quickActionPreview ?? void 0,
1611
- showAttachmentButton: attachmentsEnabled && activeMode === "guide",
1612
- attachmentsCount: stagedAttachments.length,
1613
- onAddFiles: addAttachmentFiles,
1614
- attachmentsDisabled: chatLoading,
1615
- contextPicker: contextPickerForMode,
1616
- selectedContextItems: contextItems,
1617
- onToggleContextItem: toggleContextItem,
1618
- onRemoveContextItem: removeContextItem,
1619
- contextMemoryItems: contextMemory?.items,
1620
- onRemoveContextMemoryItem: contextMemory?.onRemove,
1621
- contextMemoryPending: contextMemory?.pending,
1622
- contextPickerOpen,
1623
- onOpenContextPicker: openContextPicker,
1624
- onCloseContextPicker: closeContextPicker,
1625
- mentionQuery,
1626
- onMentionQueryChange: handleMentionQueryChange,
1627
- onValueChange: handleContextValueChange,
1628
- model: {
1629
- provider: currentProvider ?? "anthropic",
1630
- modelName: currentModelLabel ?? "Claude",
1631
- usedTokens: currentInputTokens != null ? (currentInputTokens ?? 0) + (currentOutputTokens ?? 0) : void 0,
1632
- contextWindow: currentContextWindowMaxTokens ?? void 0,
1633
- inputTokens: currentInputTokens ?? void 0,
1634
- outputTokens: currentOutputTokens ?? void 0,
1635
- hitRatePct: currentCacheHitRatePct ?? void 0,
1636
- breakdown: currentUsageBreakdown ?? void 0
1637
- }
1638
- },
1639
- composerKey
1640
- )
1712
+ threadArea,
1713
+ aboveComposerNode,
1714
+ attachmentStrip,
1715
+ composerNode
1641
1716
  ] }) })
1642
1717
  ] })
1643
1718
  ]
@@ -1647,23 +1722,61 @@ function EmbeddableChatInner({
1647
1722
  }
1648
1723
  ),
1649
1724
  galleryModal,
1650
- /* @__PURE__ */ jsx(
1651
- ChatDialogModals,
1652
- {
1653
- renameTarget,
1654
- setRenameTarget,
1655
- onConfirmRename: handleConfirmRename,
1656
- archiveTarget,
1657
- setArchiveTarget,
1658
- onConfirmArchive: handleConfirmArchive,
1659
- restoreTarget,
1660
- setRestoreTarget,
1661
- onConfirmRestore: handleConfirmRestore
1662
- }
1663
- ),
1725
+ dialogModals,
1664
1726
  /* @__PURE__ */ jsx("div", { ref: setPortalHost, style: { display: "contents" } })
1665
1727
  ] }) }) })
1666
1728
  );
1729
+ const pageHeader = /* @__PURE__ */ jsx(
1730
+ MingoChatHeader,
1731
+ {
1732
+ variant: "page",
1733
+ title: archiveOpen ? "Chat Archive" : headerShowBack || isGuideEmpty ? headerTitle : freshConversationTitle,
1734
+ meta: archiveOpen || !hasConversation ? void 0 : [headerPersonName, chatDayLabel(activeDialog?.timestamp)],
1735
+ menuItems: headerShowBack && !isViewingArchived && !archiveOpen ? mingoHeaderMenuItems : [],
1736
+ extraMenuItems: isViewingArchived || archiveOpen ? void 0 : chatMenuExtraItems,
1737
+ onRestore: isViewingArchived && !archiveOpen ? headerOnRestore : void 0,
1738
+ renaming: inlineRenaming && !archiveOpen,
1739
+ onRenameSubmit: submitInlineRename,
1740
+ onRenameCancel: cancelInlineRename,
1741
+ actions: threadHeaderActions
1742
+ }
1743
+ );
1744
+ const threadRegion = /* @__PURE__ */ jsx(
1745
+ "div",
1746
+ {
1747
+ ref: setThreadBoundary,
1748
+ className: cn(
1749
+ "flex h-full min-h-0 w-full min-w-0 flex-col overflow-hidden",
1750
+ previewMode && "pointer-events-none select-none"
1751
+ ),
1752
+ children: /* @__PURE__ */ jsx(PortalContainerContext.Provider, { value: threadPortalHost, children: /* @__PURE__ */ jsxs(CollisionBoundaryContext.Provider, { value: threadBoundary, children: [
1753
+ pageHeader,
1754
+ activeMode === "guide" && hasMingoMode && /* @__PURE__ */ jsx(GuideModeBanner, { className: "duration-200 animate-in fade-in-0" }),
1755
+ /* @__PURE__ */ jsx("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: archiveOpen ? archiveListNode : threadArea }),
1756
+ galleryModal,
1757
+ dialogModals,
1758
+ /* @__PURE__ */ jsx("div", { ref: setThreadPortalHost, style: { display: "contents" } })
1759
+ ] }) })
1760
+ }
1761
+ );
1762
+ const body = splitMode ? /* @__PURE__ */ jsx(ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ jsxs(PortalContainerContext.Provider, { value: portalHost, children: [
1763
+ /* @__PURE__ */ jsxs(
1764
+ "div",
1765
+ {
1766
+ ref: setPanelNode,
1767
+ "data-surface": isV2 ? "mingo" : void 0,
1768
+ className: cn("flex min-w-0 flex-col", previewMode && "pointer-events-none select-none"),
1769
+ children: [
1770
+ threadContainer ? createPortal(threadRegion, threadContainer) : null,
1771
+ aboveComposerNode,
1772
+ attachmentStrip,
1773
+ composerNode
1774
+ ]
1775
+ }
1776
+ ),
1777
+ threadContainer ? null : dialogModals,
1778
+ /* @__PURE__ */ jsx("div", { ref: setPortalHost, style: { display: "contents" } })
1779
+ ] }) }) : classicBody;
1667
1780
  const panel = shellLess ? /* @__PURE__ */ jsxs(ChatPanelContext.Provider, { value: chatPanelHandle, children: [
1668
1781
  shell === "none" && /* @__PURE__ */ jsx(VisuallyHidden, { children: /* @__PURE__ */ jsxs(DialogPrimitive.Title, { children: [
1669
1782
  sourceLabel,