@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,196 @@
1
+ 'use client';
2
+
3
+ import { type ReactNode, useRef, useState } from 'react';
4
+ import { useIsomorphicLayoutEffect } from '../../hooks/ui/use-isomorphic-layout-effect';
5
+ import { cn } from '../../utils/cn';
6
+ import { useComposerDockHeight } from '../navigation/app-layout-context';
7
+ import { useCoverMobileActionBar } from '../ui/mobile-action-bar';
8
+ import { PanelResizeHandle } from '../ui/panel-resize-handle';
9
+
10
+ /** The sheet's floor: a header and a few lines of thread. */
11
+ const DEFAULT_MIN_HEIGHT = 320;
12
+ /** Share of the layer the sheet opens at until the user drags it. */
13
+ const DEFAULT_SHARE = 0.64;
14
+ /**
15
+ * The resize tab standing on the sheet's top edge, in px: what the sheet's ceiling gives
16
+ * up, so a sheet at its full height keeps the tab in the layer. Its classes below spell
17
+ * the same size (Tailwind reads literal class names).
18
+ */
19
+ const TAB_HEIGHT = 20;
20
+
21
+ export interface ComposerSheetProps {
22
+ /** Drawn only while open; closed, nothing renders. */
23
+ open: boolean;
24
+ /** A click on the scrim: the host closes the sheet (or minimises it). */
25
+ onDismiss: () => void;
26
+ /** The height the user dragged it to, in px; `null` opens it at `defaultShare`. */
27
+ height: number | null;
28
+ /** A finished drag or a keyboard step, clamped to `minHeight` … the layer's height. */
29
+ onHeightChange: (height: number) => void;
30
+ /** A double click on the resize tab: the host puts the height back to its default. */
31
+ onResetHeight?: () => void;
32
+ /** Share of the layer the sheet takes while `height` is null. Default 0.64. */
33
+ defaultShare?: number;
34
+ /** Default 320. */
35
+ minHeight?: number;
36
+ /**
37
+ * Whether the tab on its top edge resizes it. Default `true`. Off (a phone, where
38
+ * the chat takes the screen) it has no tab, and its ceiling is the layer's height.
39
+ */
40
+ resizable?: boolean;
41
+ /** The sheet's width — the composer's under it, e.g. `max-w-[880px]`. Centred. */
42
+ className?: string;
43
+ /** The dialog's accessible name. */
44
+ 'aria-label': string;
45
+ /** What the sheet holds: the host's node a chat portals its header and thread into. */
46
+ children: ReactNode;
47
+ }
48
+
49
+ /** The tab's flared foot, where its side meets the sheet's top border: a concave quarter circle. */
50
+ function TabFoot({ side }: { side: 'left' | 'right' }) {
51
+ return (
52
+ <svg
53
+ aria-hidden
54
+ width="8"
55
+ height="8"
56
+ viewBox="0 0 8 8"
57
+ className={cn('absolute bottom-0', side === 'left' ? 'right-full' : 'left-full -scale-x-100')}
58
+ >
59
+ <path d="M8 0 V8 H0 A8 8 0 0 0 8 0 Z" className="fill-ods-bg" />
60
+ <path d="M0 8 A8 8 0 0 0 8 0" className="fill-none stroke-ods-border" strokeWidth="1" />
61
+ </svg>
62
+ );
63
+ }
64
+
65
+ /** Two lines: the sheet can be pulled by this. */
66
+ function TabGrip() {
67
+ return (
68
+ <span aria-hidden className="flex flex-col items-center gap-[3px]">
69
+ <span className="h-0.5 w-6 rounded-full bg-ods-text-secondary transition-colors group-hover:bg-ods-text-primary group-focus-visible:bg-ods-text-primary" />
70
+ <span className="h-0.5 w-6 rounded-full bg-ods-text-secondary transition-colors group-hover:bg-ods-text-primary group-focus-visible:bg-ods-text-primary" />
71
+ </span>
72
+ );
73
+ }
74
+
75
+ /**
76
+ * The conversation sheet over a page: it rises from the docked composer, the page
77
+ * stays beneath under a scrim, and a tab standing on its top edge resizes it from
78
+ * `minHeight` to the full height of the layer (a drag, the arrow keys, Home / End; a
79
+ * double click asks the host for the default height). Without `resizable` it has no
80
+ * tab and can take the whole layer. Meant for `AppLayout`'s
81
+ * `composerSheet` layer, whose bottom is the dock's top edge: the sheet stands above
82
+ * the composer as a card of its own, its header at its top border.
83
+ *
84
+ * The host owns everything that decides WHEN it shows — Esc, navigation, the
85
+ * composer's draft — and only hears of a scrim click here. It paints the sheet's
86
+ * ground (the portalled thread paints none) and keeps no transform on it: the
87
+ * thread's menus portal inside, and a transformed ancestor would move them.
88
+ */
89
+ export function ComposerSheet({
90
+ open,
91
+ onDismiss,
92
+ height,
93
+ onHeightChange,
94
+ onResetHeight,
95
+ defaultShare = DEFAULT_SHARE,
96
+ minHeight = DEFAULT_MIN_HEIGHT,
97
+ resizable = true,
98
+ className,
99
+ 'aria-label': ariaLabel,
100
+ children,
101
+ }: ComposerSheetProps) {
102
+ const [layer, setLayer] = useState<HTMLDivElement | null>(null);
103
+ const [layerHeight, setLayerHeight] = useState(0);
104
+ const panelRef = useRef<HTMLDivElement | null>(null);
105
+ const dockHeight = useComposerDockHeight();
106
+ // Over the page, the page's action bar steps aside: the sheet and the composer are one chat.
107
+ useCoverMobileActionBar(open);
108
+
109
+ useIsomorphicLayoutEffect(() => {
110
+ if (!layer) return undefined;
111
+ const update = () => setLayerHeight(layer.clientHeight);
112
+ update();
113
+ const observer = new ResizeObserver(update);
114
+ observer.observe(layer);
115
+ return () => observer.disconnect();
116
+ }, [layer]);
117
+
118
+ if (!open) return null;
119
+
120
+ // The first render of an open sheet comes before the layer is measured: no ceiling
121
+ // yet (CSS `max-height` holds it to the layer), or a given height would draw at the
122
+ // floor for that frame and grow from it. The tab above the sheet stays in the layer.
123
+ const tabHeight = resizable ? TAB_HEIGHT : 0;
124
+ const measured = layerHeight > 0;
125
+ const maxHeight = measured ? Math.max(minHeight, layerHeight - tabHeight) : Number.POSITIVE_INFINITY;
126
+ const clamp = (next: number) => Math.round(Math.min(maxHeight, Math.max(minHeight, next)));
127
+ // Until the layer is measured the share is a percentage, so the first frame is right.
128
+ const resolved = height === null ? (measured ? clamp(layerHeight * defaultShare) : null) : clamp(height);
129
+
130
+ return (
131
+ <div ref={setLayer} className="absolute inset-0">
132
+ <div
133
+ aria-hidden
134
+ data-testid="composer-sheet-scrim"
135
+ // Down past the layer to the bottom of the column, behind the composer dock
136
+ // (its height from AppLayout, `ComposerDockHeightContext`): beside the composer
137
+ // the page reads dimmed too, not as a band of plain ground. The dock sits above it.
138
+ className="pointer-events-auto absolute inset-x-0 top-0 bg-ods-overlay duration-200 animate-in fade-in-0"
139
+ style={{ bottom: -dockHeight }}
140
+ onClick={onDismiss}
141
+ />
142
+ {/* The sheet with the tab on it: the size the drag writes, and the dialog. The
143
+ card inside clips its content to its corners, so the tab stands beside it. */}
144
+ <div
145
+ ref={panelRef}
146
+ role="dialog"
147
+ aria-modal="true"
148
+ aria-label={ariaLabel}
149
+ className={cn(
150
+ 'pointer-events-auto absolute inset-x-0 bottom-0 mx-auto flex w-full flex-col',
151
+ // No `duration-*` here: with no transition property set it would ease
152
+ // every change of the height — a drag lagging behind the pointer.
153
+ 'animate-in fade-in-0 slide-in-from-bottom-4',
154
+ className,
155
+ )}
156
+ style={{
157
+ height: resolved ?? `${Math.round(defaultShare * 100)}%`,
158
+ minHeight,
159
+ maxHeight: `calc(100% - ${tabHeight}px)`,
160
+ }}
161
+ >
162
+ {/* The tab: over the card's top border by a pixel, so the two read as one
163
+ outline, the feet curving it into the border. */}
164
+ {resizable && (
165
+ <div
166
+ data-testid="composer-sheet-tab"
167
+ className="absolute bottom-[calc(100%-1px)] left-1/2 z-10 h-5 w-16 -translate-x-1/2 rounded-t-md border border-b-0 border-ods-border bg-ods-bg"
168
+ onDoubleClick={onResetHeight}
169
+ >
170
+ <TabFoot side="left" />
171
+ <TabFoot side="right" />
172
+ <PanelResizeHandle
173
+ side="bottom"
174
+ size={resolved ?? minHeight}
175
+ minSize={minHeight}
176
+ maxSize={measured ? maxHeight : (resolved ?? minHeight)}
177
+ onSize={next => onHeightChange(clamp(next))}
178
+ clampSize={clamp}
179
+ panelRef={panelRef}
180
+ variant="overlay"
181
+ ariaLabel="Resize the chat"
182
+ className="inset-0 h-auto w-auto items-center justify-center p-0"
183
+ grip={<TabGrip />}
184
+ />
185
+ </div>
186
+ )}
187
+ <div
188
+ data-testid="composer-sheet-card"
189
+ className="flex min-h-0 flex-1 flex-col overflow-hidden rounded-md border border-ods-border bg-ods-bg shadow-xl"
190
+ >
191
+ {children}
192
+ </div>
193
+ </div>
194
+ </div>
195
+ );
196
+ }