@flamingo-stack/openframe-frontend-core 0.0.824 → 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.
- package/dist/build/export-map.json +1 -1
- package/dist/{case-study-card-IZBMHA6R.cjs → case-study-card-O4IQCJAX.cjs} +5 -5
- package/dist/chat-protocol/events.d.ts +0 -3
- package/dist/chat-protocol/events.d.ts.map +1 -1
- package/dist/chat-protocol/frames.d.ts +10 -7
- package/dist/chat-protocol/frames.d.ts.map +1 -1
- package/dist/chat-protocol/index.cjs +238 -234
- package/dist/chat-protocol/leading-frames.d.ts.map +1 -1
- package/dist/chat-protocol/leading-frames.js +6 -3
- package/dist/chat-protocol/progress.d.ts +13 -20
- package/dist/chat-protocol/progress.d.ts.map +1 -1
- package/dist/chat-protocol/progress.js +13 -11
- package/dist/{chunk-QOAA7ZHB.cjs → chunk-2HQNXX2K.cjs} +2 -2
- package/dist/{chunk-TQ7TUEK2.cjs → chunk-2TQJSB62.cjs} +4879 -3563
- package/dist/{chunk-NONMZ5WJ.cjs → chunk-2VLPXUQK.cjs} +14 -83
- package/dist/{chunk-HDOU3AXV.cjs → chunk-37OYBX7W.cjs} +36 -36
- package/dist/{chunk-OBQ5WUNG.cjs → chunk-3B6ZE4EZ.cjs} +29 -29
- package/dist/{chunk-C3RAE7RO.cjs → chunk-5AQKXEMI.cjs} +979 -1357
- package/dist/{chunk-25HBH4J6.cjs → chunk-5BM7X4GA.cjs} +2 -2
- package/dist/{chunk-A3SR6HHX.cjs → chunk-63T2KKDZ.cjs} +86 -86
- package/dist/{chunk-MROW2JWE.cjs → chunk-6G4WRMEM.cjs} +3 -3
- package/dist/{chunk-WMTV6M5B.cjs → chunk-74GWFGH2.cjs} +28 -28
- package/dist/{chunk-467T3LCG.cjs → chunk-7PZQ7SHB.cjs} +49 -32
- package/dist/{chunk-SOSVC6HB.cjs → chunk-AJM4YZTW.cjs} +8 -8
- package/dist/{chunk-2XLPRW7V.cjs → chunk-BIG3O33P.cjs} +6 -2
- package/dist/chunk-BMQLM2NU.cjs +40 -0
- package/dist/{chunk-DVHSYPDB.cjs → chunk-DAKGX2WF.cjs} +2 -2
- package/dist/{chunk-2IWAHBCC.cjs → chunk-DRSFR5AC.cjs} +159 -159
- package/dist/{chunk-IJCSQFLD.cjs → chunk-DU6AF77X.cjs} +83 -121
- package/dist/{chunk-B2VRNRTY.cjs → chunk-EJNDTSKY.cjs} +91 -91
- package/dist/{chunk-SBFBNOKU.cjs → chunk-ENMPSEEQ.cjs} +4 -4
- package/dist/{chunk-ZECG6GU5.cjs → chunk-F2J5WN6U.cjs} +2 -2
- package/dist/{chunk-BOS7OIC4.cjs → chunk-GRHF5SWL.cjs} +5 -2
- package/dist/{chunk-Z7BLMJEI.cjs → chunk-GZAPOCKS.cjs} +54 -54
- package/dist/{chunk-M7EBCYKN.cjs → chunk-HJAPXKWK.cjs} +17 -17
- package/dist/{chunk-XUMZMIHR.cjs → chunk-HQ4FKHOO.cjs} +249 -108
- package/dist/{chunk-ZRDVFADQ.cjs → chunk-IBD2FPSX.cjs} +75 -9
- package/dist/{chunk-T266OITJ.cjs → chunk-IKWQW3YJ.cjs} +45 -45
- package/dist/{chunk-B7NSH7IK.cjs → chunk-IWQ2LJGW.cjs} +5 -5
- package/dist/{chunk-2IHGR57J.cjs → chunk-JDR72QFU.cjs} +12 -14
- package/dist/{chunk-EHANO6UE.cjs → chunk-K34TTZAE.cjs} +9 -129
- package/dist/{chunk-QDDBOCG3.cjs → chunk-KPGKTEEB.cjs} +2 -2
- package/dist/{chunk-WSBAIZXL.cjs → chunk-MDEOCOIE.cjs} +23 -23
- package/dist/chunk-OEP5KAT6.cjs +56 -0
- package/dist/chunk-OT6P57ZS.cjs +94 -0
- package/dist/{chunk-QQT23JJ7.cjs → chunk-PBHP3FHO.cjs} +4 -4
- package/dist/{chunk-J5U3XHFJ.cjs → chunk-PJY3SYCS.cjs} +29 -27
- package/dist/{chunk-5N26M6CK.cjs → chunk-PWAKRRRO.cjs} +1283 -268
- package/dist/{chunk-UEULXVW2.cjs → chunk-QS6AKUUL.cjs} +22 -22
- package/dist/{chunk-GXBIYPDM.cjs → chunk-QYJZDEG7.cjs} +6 -6
- package/dist/{chunk-NPNZAAOB.cjs → chunk-S6UJEW4G.cjs} +2 -2
- package/dist/{chunk-TTMTNG3U.cjs → chunk-TJG2BJ5J.cjs} +4 -4
- package/dist/{chunk-QOOMUGF2.cjs → chunk-TYJ73DHW.cjs} +15 -15
- package/dist/{chunk-A34UNP5V.cjs → chunk-W4VEDSAX.cjs} +80 -11
- package/dist/{chunk-2M4E2V25.cjs → chunk-WGMU45NV.cjs} +20 -20
- package/dist/{chunk-EZTCN43H.cjs → chunk-XDHQC4XH.cjs} +46 -46
- package/dist/{cloud-tenants-VYXMNISG.cjs → cloud-tenants-F67KQ5GC.cjs} +108 -106
- package/dist/components/case-studies/index.cjs +124 -122
- package/dist/components/chat/approval-batch-message.d.ts.map +1 -1
- package/dist/components/chat/approval-batch-message.js +2 -2
- package/dist/components/chat/chat-archive-page.d.ts +7 -0
- package/dist/components/chat/chat-archive-page.d.ts.map +1 -1
- package/dist/components/chat/chat-archive-page.js +9 -0
- package/dist/components/chat/chat-composer.d.ts +24 -4
- package/dist/components/chat/chat-composer.d.ts.map +1 -1
- package/dist/components/chat/chat-composer.js +90 -48
- package/dist/components/chat/chat-context-memory-bar.d.ts +4 -1
- package/dist/components/chat/chat-context-memory-bar.d.ts.map +1 -1
- package/dist/components/chat/chat-context-memory-bar.js +8 -5
- package/dist/components/chat/chat-context-picker.d.ts +8 -1
- package/dist/components/chat/chat-context-picker.d.ts.map +1 -1
- package/dist/components/chat/chat-context-picker.js +32 -9
- package/dist/components/chat/chat-header-rename-field.d.ts +18 -0
- package/dist/components/chat/chat-header-rename-field.d.ts.map +1 -0
- package/dist/components/chat/chat-header-rename-field.js +49 -0
- package/dist/components/chat/chat-input.d.ts.map +1 -1
- package/dist/components/chat/chat-input.js +5 -0
- package/dist/components/chat/composer-sheet.d.ts +44 -0
- package/dist/components/chat/composer-sheet.d.ts.map +1 -0
- package/dist/components/chat/composer-sheet.js +140 -0
- package/dist/components/chat/embeddable-chat.d.ts +114 -1
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +328 -218
- package/dist/components/chat/hooks/use-sse-chat-adapter.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-sse-chat-adapter.js +0 -2
- package/dist/components/chat/hooks/use-unified-chat.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-unified-chat.js +0 -1
- package/dist/components/chat/index.cjs +118 -103
- package/dist/components/chat/index.d.ts +6 -0
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +9 -0
- package/dist/components/chat/mingo-chat-day-groups.d.ts +18 -0
- package/dist/components/chat/mingo-chat-day-groups.d.ts.map +1 -0
- package/dist/components/chat/mingo-chat-day-groups.js +45 -0
- package/dist/components/chat/mingo-chat-header.d.ts +34 -6
- package/dist/components/chat/mingo-chat-header.d.ts.map +1 -1
- package/dist/components/chat/mingo-chat-header.js +44 -7
- package/dist/components/chat/mingo-chat-history-section.d.ts +30 -0
- package/dist/components/chat/mingo-chat-history-section.d.ts.map +1 -0
- package/dist/components/chat/mingo-chat-history-section.js +500 -0
- package/dist/components/chat/mingo-chat-history.d.ts +5 -2
- package/dist/components/chat/mingo-chat-history.d.ts.map +1 -1
- package/dist/components/chat/mingo-chat-history.js +26 -30
- package/dist/components/chat/mingo-chat-list-shared.d.ts +136 -0
- package/dist/components/chat/mingo-chat-list-shared.d.ts.map +1 -0
- package/dist/components/chat/mingo-chat-list-shared.js +76 -0
- package/dist/components/chat/mingo-chat-rail.d.ts +19 -51
- package/dist/components/chat/mingo-chat-rail.d.ts.map +1 -1
- package/dist/components/chat/mingo-chat-rail.js +23 -45
- package/dist/components/chat/mingo-edge-light.d.ts +13 -0
- package/dist/components/chat/mingo-edge-light.d.ts.map +1 -0
- package/dist/components/chat/mingo-edge-light.js +17 -0
- package/dist/components/chat/mingo-history-rail.d.ts +5 -4
- package/dist/components/chat/mingo-history-rail.d.ts.map +1 -1
- package/dist/components/chat/mingo-history-rail.js +5 -10
- package/dist/components/chat/mingo-quick-action-wall.d.ts +27 -0
- package/dist/components/chat/mingo-quick-action-wall.d.ts.map +1 -0
- package/dist/components/chat/mingo-quick-action-wall.js +41 -0
- package/dist/components/chat/mingo-welcome.d.ts.map +1 -1
- package/dist/components/chat/mingo-welcome.js +6 -20
- package/dist/components/chat/model-display.d.ts.map +1 -1
- package/dist/components/chat/model-display.js +38 -9
- package/dist/components/chat/stream/chat-dialog-store.d.ts.map +1 -1
- package/dist/components/chat/stream/chat-dialog-store.js +0 -1
- package/dist/components/chat/stream/chat-stream-reducer.d.ts +0 -4
- package/dist/components/chat/stream/chat-stream-reducer.d.ts.map +1 -1
- package/dist/components/chat/stream/chat-stream-reducer.js +6 -13
- package/dist/components/chat/tool-execution-display.d.ts.map +1 -1
- package/dist/components/chat/tool-execution-display.js +15 -1
- package/dist/components/chat/types/component.types.d.ts +13 -1
- package/dist/components/chat/types/component.types.d.ts.map +1 -1
- package/dist/components/chat/types/unified-chat-state.types.d.ts +0 -5
- package/dist/components/chat/types/unified-chat-state.types.d.ts.map +1 -1
- package/dist/components/chat/utils/chat-day-label.d.ts +8 -0
- package/dist/components/chat/utils/chat-day-label.d.ts.map +1 -0
- package/dist/components/chat/utils/chat-day-label.js +21 -0
- package/dist/components/contact/index.cjs +109 -107
- package/dist/components/docs/index.cjs +112 -110
- package/dist/components/embeds/index.cjs +109 -107
- package/dist/components/faq/index.cjs +110 -108
- package/dist/components/features/board/board-column.d.ts +3 -1
- package/dist/components/features/board/board-column.d.ts.map +1 -1
- package/dist/components/features/board/board-column.js +6 -2
- package/dist/components/features/board/board.d.ts +6 -0
- package/dist/components/features/board/board.d.ts.map +1 -1
- package/dist/components/features/board/board.js +14 -3
- package/dist/components/features/board/touch-board.d.ts +1 -1
- package/dist/components/features/board/touch-board.d.ts.map +1 -1
- package/dist/components/features/board/touch-board.js +3 -1
- package/dist/components/features/index.cjs +108 -106
- package/dist/components/features/notifications/approval-request-notification-tile.d.ts +7 -1
- package/dist/components/features/notifications/approval-request-notification-tile.d.ts.map +1 -1
- package/dist/components/features/notifications/approval-request-notification-tile.js +1 -1
- package/dist/components/features/notifications/notification-drawer.d.ts +6 -1
- package/dist/components/features/notifications/notification-drawer.d.ts.map +1 -1
- package/dist/components/features/notifications/notification-drawer.js +3 -2
- package/dist/components/features/notifications/notification-tile.d.ts +4 -1
- package/dist/components/features/notifications/notification-tile.d.ts.map +1 -1
- package/dist/components/features/notifications/notification-tile.js +9 -7
- package/dist/components/features/time-tracker/time-tracker-header-button.d.ts +18 -1
- package/dist/components/features/time-tracker/time-tracker-header-button.d.ts.map +1 -1
- package/dist/components/features/time-tracker/time-tracker-header-button.js +31 -7
- package/dist/components/help-center-pages/index.cjs +217 -215
- package/dist/components/icons-v2-generated/icon-loaders.d.ts.map +1 -1
- package/dist/components/icons-v2-generated/icon-loaders.js +1 -0
- package/dist/components/icons-v2-generated/icon-names.js +1 -1
- package/dist/components/icons-v2-generated/index.cjs +90 -86
- package/dist/components/icons-v2-generated/loaders/dots-loader-icon.d.ts.map +1 -1
- package/dist/components/icons-v2-generated/loaders/dots-loader-icon.js +21 -24
- package/dist/components/icons-v2-generated/logos/index.d.ts +1 -0
- package/dist/components/icons-v2-generated/logos/index.d.ts.map +1 -1
- package/dist/components/icons-v2-generated/logos/index.js +2 -0
- package/dist/components/icons-v2-generated/logos/mingo-logo-icon.d.ts +9 -0
- package/dist/components/icons-v2-generated/logos/mingo-logo-icon.d.ts.map +1 -0
- package/dist/components/icons-v2-generated/logos/mingo-logo-icon.js +36 -0
- package/dist/components/index.cjs +215 -182
- package/dist/components/meeting-scheduler/index.cjs +182 -180
- package/dist/components/navigation/account-popover.d.ts +62 -0
- package/dist/components/navigation/account-popover.d.ts.map +1 -0
- package/dist/components/navigation/account-popover.js +138 -0
- package/dist/components/navigation/app-header.d.ts +36 -2
- package/dist/components/navigation/app-header.d.ts.map +1 -1
- package/dist/components/navigation/app-header.js +28 -24
- package/dist/components/navigation/app-layout-context.d.ts +17 -0
- package/dist/components/navigation/app-layout-context.d.ts.map +1 -1
- package/dist/components/navigation/app-layout-context.js +9 -1
- package/dist/components/navigation/app-layout.d.ts +93 -1
- package/dist/components/navigation/app-layout.d.ts.map +1 -1
- package/dist/components/navigation/app-layout.js +149 -30
- package/dist/components/navigation/header-button.d.ts +11 -1
- package/dist/components/navigation/header-button.d.ts.map +1 -1
- package/dist/components/navigation/header-button.js +16 -5
- package/dist/components/navigation/header-mingo-button.d.ts.map +1 -1
- package/dist/components/navigation/header-mingo-button.js +6 -5
- package/dist/components/navigation/index.cjs +120 -109
- package/dist/components/navigation/index.d.ts +10 -1
- package/dist/components/navigation/index.d.ts.map +1 -1
- package/dist/components/navigation/index.js +8 -0
- package/dist/components/navigation/mingo-ai-button.d.ts.map +1 -1
- package/dist/components/navigation/mingo-ai-button.js +2 -1
- package/dist/components/navigation/mobile-burger-menu.d.ts.map +1 -1
- package/dist/components/navigation/mobile-burger-menu.js +155 -39
- package/dist/components/navigation/navigation-sidebar-grouped.d.ts +57 -0
- package/dist/components/navigation/navigation-sidebar-grouped.d.ts.map +1 -0
- package/dist/components/navigation/navigation-sidebar-grouped.js +365 -0
- package/dist/components/navigation/navigation-sidebar-match.d.ts +37 -0
- package/dist/components/navigation/navigation-sidebar-match.d.ts.map +1 -0
- package/dist/components/navigation/navigation-sidebar-match.js +85 -0
- package/dist/components/navigation/navigation-sidebar-slot.d.ts +7 -0
- package/dist/components/navigation/navigation-sidebar-slot.d.ts.map +1 -0
- package/dist/components/navigation/navigation-sidebar-slot.js +11 -0
- package/dist/components/navigation/navigation-sidebar-toggle.d.ts +7 -1
- package/dist/components/navigation/navigation-sidebar-toggle.d.ts.map +1 -1
- package/dist/components/navigation/navigation-sidebar-toggle.js +52 -23
- package/dist/components/navigation/navigation-sidebar.d.ts +13 -1
- package/dist/components/navigation/navigation-sidebar.d.ts.map +1 -1
- package/dist/components/navigation/navigation-sidebar.js +188 -52
- package/dist/components/navigation/notifications-bell-button.d.ts +28 -0
- package/dist/components/navigation/notifications-bell-button.d.ts.map +1 -0
- package/dist/components/navigation/notifications-bell-button.js +44 -0
- package/dist/components/navigation/ticket-alerts-button.d.ts +7 -1
- package/dist/components/navigation/ticket-alerts-button.d.ts.map +1 -1
- package/dist/components/navigation/ticket-alerts-button.js +3 -2
- package/dist/components/onboarding-guides/index.cjs +111 -109
- package/dist/components/product-demo/index.cjs +119 -117
- package/dist/components/related-content/index.cjs +13 -13
- package/dist/components/tickets/index.cjs +115 -113
- package/dist/components/ui/actions-menu.d.ts +6 -1
- package/dist/components/ui/actions-menu.d.ts.map +1 -1
- package/dist/components/ui/actions-menu.js +6 -2
- package/dist/components/ui/fade-preview.d.ts +8 -0
- package/dist/components/ui/fade-preview.d.ts.map +1 -1
- package/dist/components/ui/fade-preview.js +7 -5
- package/dist/components/ui/index.cjs +136 -111
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +1 -0
- package/dist/components/ui/mobile-action-bar.d.ts +14 -0
- package/dist/components/ui/mobile-action-bar.d.ts.map +1 -0
- package/dist/components/ui/mobile-action-bar.js +68 -0
- package/dist/components/ui/no-data/no-data-styles.d.ts +1 -1
- package/dist/components/ui/no-data/no-data-styles.d.ts.map +1 -1
- package/dist/components/ui/no-data/no-data-styles.js +1 -1
- package/dist/components/ui/page-actions.d.ts.map +1 -1
- package/dist/components/ui/page-actions.js +24 -8
- package/dist/components/ui/panel-resize-handle.d.ts +6 -2
- package/dist/components/ui/panel-resize-handle.d.ts.map +1 -1
- package/dist/components/ui/panel-resize-handle.js +6 -3
- package/dist/components/ui/square-avatar.d.ts.map +1 -1
- package/dist/components/ui/square-avatar.js +5 -2
- package/dist/{devices-NTYNZEGJ.cjs → devices-SJORCARH.cjs} +109 -107
- package/dist/dots-loader-icon-5JXWD6FB.cjs +7 -0
- package/dist/{embeddable-chat-JAUO4O2T.cjs → embeddable-chat-7Z4CEZJL.cjs} +512 -400
- package/dist/hooks/index.cjs +15 -16
- package/dist/hooks/ui/use-content-breakpoint.d.ts +4 -2
- package/dist/hooks/ui/use-content-breakpoint.d.ts.map +1 -1
- package/dist/{icon-loaders-OLGJZGRP.cjs → icon-loaders-SUPEKMBJ.cjs} +2 -1
- package/dist/index.cjs +154 -121
- package/dist/{knowledge-I2LW27EP.cjs → knowledge-QXILUVEM.cjs} +109 -107
- package/dist/{logs-KLZHXSOU.cjs → logs-E3KQQQD6.cjs} +118 -115
- package/dist/mingo-logo-icon-WGPBSDTF.cjs +7 -0
- package/dist/{policies-SMDAHDKL.cjs → policies-IOYQY6TF.cjs} +112 -110
- package/dist/{remote-session-BQMTIQTU.cjs → remote-session-QGFG5WAL.cjs} +99 -97
- package/dist/{scripts-OMBBPNTU.cjs → scripts-E5TWWUNP.cjs} +115 -113
- package/dist/{software-update-ZIJYNJIC.cjs → software-update-QZGYG4TD.cjs} +112 -110
- package/dist/{tickets-board-TRXOX77R.cjs → tickets-board-KCH6ITUV.cjs} +95 -94
- package/dist/types/navigation.d.ts +131 -0
- package/dist/types/navigation.d.ts.map +1 -1
- package/dist/utils/index.cjs +65 -25
- package/package.json +1 -1
- package/src/chat-protocol/events.ts +0 -3
- package/src/chat-protocol/frames.ts +12 -8
- package/src/chat-protocol/leading-frames.ts +7 -4
- package/src/chat-protocol/progress.ts +31 -28
- package/src/components/chat/approval-batch-message.tsx +3 -2
- package/src/components/chat/chat-archive-page.tsx +16 -0
- package/src/components/chat/chat-composer.tsx +131 -61
- package/src/components/chat/chat-context-memory-bar.tsx +27 -17
- package/src/components/chat/chat-context-picker.tsx +45 -11
- package/src/components/chat/chat-header-rename-field.tsx +68 -0
- package/src/components/chat/chat-input.tsx +9 -1
- package/src/components/chat/composer-sheet.tsx +196 -0
- package/src/components/chat/embeddable-chat.tsx +636 -324
- package/src/components/chat/hooks/use-sse-chat-adapter.ts +0 -2
- package/src/components/chat/hooks/use-unified-chat.ts +0 -1
- package/src/components/chat/index.ts +6 -0
- package/src/components/chat/mingo-chat-day-groups.ts +62 -0
- package/src/components/chat/mingo-chat-header.tsx +99 -23
- package/src/components/chat/mingo-chat-history-section.tsx +670 -0
- package/src/components/chat/mingo-chat-history.tsx +31 -45
- package/src/components/chat/mingo-chat-list-shared.tsx +244 -0
- package/src/components/chat/mingo-chat-rail.tsx +45 -97
- package/src/components/chat/mingo-edge-light.tsx +25 -0
- package/src/components/chat/mingo-history-rail.tsx +7 -17
- package/src/components/chat/mingo-quick-action-wall.tsx +64 -0
- package/src/components/chat/mingo-welcome.tsx +5 -19
- package/src/components/chat/model-display.tsx +66 -14
- package/src/components/chat/stream/chat-dialog-store.ts +0 -1
- package/src/components/chat/stream/chat-stream-reducer.ts +6 -17
- package/src/components/chat/tool-execution-display.tsx +9 -1
- package/src/components/chat/types/component.types.ts +13 -1
- package/src/components/chat/types/unified-chat-state.types.ts +0 -6
- package/src/components/chat/utils/chat-day-label.ts +24 -0
- package/src/components/features/board/board-column.tsx +8 -0
- package/src/components/features/board/board.tsx +16 -2
- package/src/components/features/board/touch-board.tsx +2 -0
- package/src/components/features/notifications/approval-request-notification-tile.tsx +8 -2
- package/src/components/features/notifications/notification-drawer.tsx +7 -1
- package/src/components/features/notifications/notification-tile.tsx +17 -9
- package/src/components/features/time-tracker/time-tracker-header-button.tsx +53 -6
- package/src/components/icons-v2/icon-colors.json +4 -0
- package/src/components/icons-v2-generated/icon-loaders.ts +1 -0
- package/src/components/icons-v2-generated/icon-names.ts +1 -1
- package/src/components/icons-v2-generated/loaders/dots-loader-icon.tsx +18 -27
- package/src/components/icons-v2-generated/logos/index.ts +1 -0
- package/src/components/icons-v2-generated/logos/mingo-logo-icon.tsx +35 -0
- package/src/components/navigation/account-popover.tsx +198 -0
- package/src/components/navigation/app-header.tsx +74 -33
- package/src/components/navigation/app-layout-context.ts +22 -0
- package/src/components/navigation/app-layout.tsx +290 -24
- package/src/components/navigation/header-button.tsx +27 -5
- package/src/components/navigation/header-mingo-button.tsx +6 -5
- package/src/components/navigation/index.ts +19 -0
- package/src/components/navigation/mingo-ai-button.tsx +2 -3
- package/src/components/navigation/mobile-burger-menu.tsx +219 -53
- package/src/components/navigation/navigation-sidebar-grouped.tsx +554 -0
- package/src/components/navigation/navigation-sidebar-match.ts +152 -0
- package/src/components/navigation/navigation-sidebar-slot.ts +12 -0
- package/src/components/navigation/navigation-sidebar-toggle.tsx +39 -6
- package/src/components/navigation/navigation-sidebar.tsx +278 -61
- package/src/components/navigation/notifications-bell-button.tsx +70 -0
- package/src/components/navigation/ticket-alerts-button.tsx +9 -2
- package/src/components/ui/actions-menu.tsx +19 -3
- package/src/components/ui/fade-preview.tsx +13 -6
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/mobile-action-bar.ts +87 -0
- package/src/components/ui/no-data/no-data-styles.ts +5 -2
- package/src/components/ui/page-actions.tsx +38 -11
- package/src/components/ui/panel-resize-handle.tsx +14 -5
- package/src/components/ui/square-avatar.tsx +5 -2
- package/src/hooks/ui/use-content-breakpoint.ts +4 -2
- package/src/styles/ods-interaction-states.css +68 -0
- package/src/types/navigation.ts +140 -0
- package/dist/chunk-C7GIHB3V.cjs +0 -59
- package/dist/dots-loader-icon-RBLX46X7.cjs +0 -7
- package/dist/{chunk-ZOZR3QI2.cjs → chunk-46547WQW.cjs} +0 -0
- package/dist/{video-file-player-IAMWBKEQ.cjs → video-file-player-IHO66P2Q.cjs} +1 -1
|
@@ -846,8 +846,6 @@ export function useSseChatAdapter(
|
|
|
846
846
|
stopMessage,
|
|
847
847
|
clearMessages,
|
|
848
848
|
streamingPhase,
|
|
849
|
-
/** The stage the pending turn reports before its first token, or null. */
|
|
850
|
-
streamingProgress: state.streamingProgress,
|
|
851
849
|
/** True while the mount-time rebuild from the server transcript runs. */
|
|
852
850
|
isHydratingHistory,
|
|
853
851
|
/** Provider key for the lib's `<ModelDisplay>` icon. */
|
|
@@ -214,7 +214,6 @@ export function useUnifiedChat(options: UseUnifiedChatOptions): UnifiedChatState
|
|
|
214
214
|
messages: activeState.messages,
|
|
215
215
|
isLoading: activeState.isLoading,
|
|
216
216
|
streamingPhase: activeState.streamingPhase,
|
|
217
|
-
streamingProgress: activeState.streamingProgress ?? null,
|
|
218
217
|
sendMessage,
|
|
219
218
|
stopMessage,
|
|
220
219
|
clearMessages,
|
|
@@ -32,6 +32,8 @@ export * from './ask-prompts';
|
|
|
32
32
|
export * from './assistant-ask-prompts';
|
|
33
33
|
export * from './quick-action-marquee';
|
|
34
34
|
export * from './quick-action-wall';
|
|
35
|
+
export * from './mingo-quick-action-wall';
|
|
36
|
+
export * from './mingo-edge-light';
|
|
35
37
|
export * from './chat-ticket-list';
|
|
36
38
|
export * from './chat-typing-indicator';
|
|
37
39
|
export * from './tool-execution-display';
|
|
@@ -43,8 +45,10 @@ export * from './msp-organization-card';
|
|
|
43
45
|
export * from './guide-mode-banner';
|
|
44
46
|
export * from './mingo-chat-history';
|
|
45
47
|
export * from './mingo-archive-list';
|
|
48
|
+
export * from './composer-sheet';
|
|
46
49
|
export * from './mingo-chat-header';
|
|
47
50
|
export * from './mingo-chat-rail';
|
|
51
|
+
export { MingoChatSearchModal, type MingoChatSearchModalProps } from './mingo-chat-history-section';
|
|
48
52
|
export * from './mingo-history-rail';
|
|
49
53
|
export * from './mingo-chat-modals';
|
|
50
54
|
export * from './chat-header-search-field';
|
|
@@ -54,6 +58,7 @@ export * from './chat-context-picker';
|
|
|
54
58
|
export * from './chat-context-memory-bar';
|
|
55
59
|
export * from './context-items-list';
|
|
56
60
|
export * from './chat-archive-page';
|
|
61
|
+
export { ChatListLoadError, type MingoDialogStatus, type MingoHistoryScope } from './mingo-chat-list-shared';
|
|
57
62
|
export * from './model-display';
|
|
58
63
|
export * from './chat-sidebar';
|
|
59
64
|
export * from './chat-nav-sidebar';
|
|
@@ -146,5 +151,6 @@ export {
|
|
|
146
151
|
ASK_AI_OPEN_WITH_REF_EVENT,
|
|
147
152
|
ASK_AI_TRIGGER_ATTRIBUTE,
|
|
148
153
|
} from './utils/ask-ai-events';
|
|
154
|
+
export { chatDayLabel } from './utils/chat-day-label';
|
|
149
155
|
export * from './proxy-credentials-panel';
|
|
150
156
|
export { InlineChip } from './inline-chip';
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { DialogItem } from './types/component.types';
|
|
2
|
+
import { chatDayLabel } from './utils/chat-day-label';
|
|
3
|
+
|
|
4
|
+
/** A dialog's time in ms, or null when it has none (or an unparseable one). */
|
|
5
|
+
export function dialogTimestamp(dialog: Pick<DialogItem, 'timestamp'>): number | null {
|
|
6
|
+
if (!dialog.timestamp) return null;
|
|
7
|
+
const t = typeof dialog.timestamp === 'string' ? Date.parse(dialog.timestamp) : dialog.timestamp.getTime();
|
|
8
|
+
return Number.isNaN(t) ? null : t;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface DialogDayGroup {
|
|
12
|
+
/** Stable per day: `today`, `yesterday`, `day-<local midnight ms>`, `undated`. */
|
|
13
|
+
key: string;
|
|
14
|
+
/** "Today", "Yesterday", then the day ("9 Oct" / "Oct 9" by the viewer's locale; the year when it is not this one). */
|
|
15
|
+
label: string;
|
|
16
|
+
items: DialogItem[];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/** Local midnight of the day `days` away from `date`'s (calendar arithmetic, so DST days are not 24 h). */
|
|
20
|
+
function localMidnight(date: Date, days = 0): number {
|
|
21
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate() + days).getTime();
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Dialogs grouped by the viewer's local day: "Today", "Yesterday", then one
|
|
26
|
+
* group per earlier day. Groups keep the order in which the host's list first
|
|
27
|
+
* reaches them (newest first), rows keep theirs; dialogs without a time close
|
|
28
|
+
* the list under "Older". A time in the future counts as today.
|
|
29
|
+
*/
|
|
30
|
+
export function groupDialogsByDay(dialogs: ReadonlyArray<DialogItem>, now: Date = new Date()): DialogDayGroup[] {
|
|
31
|
+
const startOfToday = localMidnight(now);
|
|
32
|
+
const startOfYesterday = localMidnight(now, -1);
|
|
33
|
+
const groups = new Map<string, DialogDayGroup>();
|
|
34
|
+
const undated: DialogItem[] = [];
|
|
35
|
+
|
|
36
|
+
for (const dialog of dialogs) {
|
|
37
|
+
const time = dialogTimestamp(dialog);
|
|
38
|
+
if (time === null) {
|
|
39
|
+
undated.push(dialog);
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
let key: string;
|
|
43
|
+
let label: string;
|
|
44
|
+
if (time >= startOfToday) {
|
|
45
|
+
key = 'today';
|
|
46
|
+
label = 'Today';
|
|
47
|
+
} else if (time >= startOfYesterday) {
|
|
48
|
+
key = 'yesterday';
|
|
49
|
+
label = 'Yesterday';
|
|
50
|
+
} else {
|
|
51
|
+
key = `day-${localMidnight(new Date(time))}`;
|
|
52
|
+
label = chatDayLabel(new Date(time), now) ?? '';
|
|
53
|
+
}
|
|
54
|
+
const group = groups.get(key);
|
|
55
|
+
if (group) group.items.push(dialog);
|
|
56
|
+
else groups.set(key, { key, label, items: [dialog] });
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const result = [...groups.values()];
|
|
60
|
+
if (undated.length > 0) result.push({ key: 'undated', label: 'Older', items: undated });
|
|
61
|
+
return result;
|
|
62
|
+
}
|
|
@@ -1,17 +1,40 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import type { ReactNode } from 'react';
|
|
4
|
+
import { cn } from '../../utils/cn';
|
|
3
5
|
import { Arrow02RightIcon, Ellipsis01Icon, Refresh01LeftIcon, SidebarIcon, XmarkIcon } from '../icons-v2-generated';
|
|
4
6
|
import { ActionsMenuDropdown, type ActionsMenuGroup, type ActionsMenuItem } from '../ui/actions-menu';
|
|
5
7
|
import { Button } from '../ui/button';
|
|
6
8
|
import { SquareAvatar } from '../ui/square-avatar';
|
|
9
|
+
import { ChatHeaderRenameField } from './chat-header-rename-field';
|
|
10
|
+
|
|
11
|
+
/** An icon cell at the header's end, after the ⋯ (e.g. "Open as full chat", "Back to page"). */
|
|
12
|
+
export interface MingoChatHeaderAction {
|
|
13
|
+
id: string;
|
|
14
|
+
/** The cell's accessible name and tooltip. */
|
|
15
|
+
label: string;
|
|
16
|
+
icon: ReactNode;
|
|
17
|
+
onClick: () => void;
|
|
18
|
+
}
|
|
7
19
|
|
|
8
20
|
export interface MingoChatHeaderProps {
|
|
21
|
+
/**
|
|
22
|
+
* `'panel'` (default): the bar over the chat in a panel — title over its
|
|
23
|
+
* owner, the owner's avatar, and whichever list / collapse / close controls
|
|
24
|
+
* the panel passes. `'page'`: the bar over a chat that IS the page (a chat
|
|
25
|
+
* that cannot be closed) — the title with `meta` beside it and the chat's
|
|
26
|
+
* ⋯; the list toggle, collapse and close are never drawn, whatever is passed.
|
|
27
|
+
*/
|
|
28
|
+
variant?: 'panel' | 'page';
|
|
9
29
|
title: string;
|
|
10
|
-
/** Second line: the chat's owner. */
|
|
30
|
+
/** Second line: the chat's owner. Panel variant. */
|
|
11
31
|
subtitle?: string | null;
|
|
12
|
-
/**
|
|
32
|
+
/** Page variant: small parts after the title, each led by "·" (e.g. the
|
|
33
|
+
* owner and the day). Empty parts are skipped. */
|
|
34
|
+
meta?: ReadonlyArray<string | null | undefined>;
|
|
35
|
+
/** The owner's avatar at the title cell's end. Panel variant. */
|
|
13
36
|
avatar?: { name?: string | null; avatarUrl?: string | null } | null;
|
|
14
|
-
/** Shows the chat list toggle at the start. */
|
|
37
|
+
/** Shows the chat list toggle at the start. Panel variant. */
|
|
15
38
|
onToggleList?: () => void;
|
|
16
39
|
/** The list is on screen beside the chat; drives the toggle's state. */
|
|
17
40
|
listOpen?: boolean;
|
|
@@ -21,10 +44,18 @@ export interface MingoChatHeaderProps {
|
|
|
21
44
|
extraMenuItems?: ActionsMenuItem[];
|
|
22
45
|
/** An archived chat: offers "Unarchive". */
|
|
23
46
|
onRestore?: () => void;
|
|
24
|
-
/** Collapse the chat back to the list alone (the panel's minimum). */
|
|
47
|
+
/** Collapse the chat back to the list alone (the panel's minimum). Panel variant. */
|
|
25
48
|
onCollapse?: () => void;
|
|
26
|
-
/** Close the panel; only a panel that can close passes it. */
|
|
49
|
+
/** Close the panel; only a panel that can close passes it. Panel variant. */
|
|
27
50
|
onClose?: () => void;
|
|
51
|
+
/** The title is being renamed in place: it turns into a field, text selected. */
|
|
52
|
+
renaming?: boolean;
|
|
53
|
+
/** Enter or blur in the rename field, with its raw value. */
|
|
54
|
+
onRenameSubmit?: (title: string) => void;
|
|
55
|
+
/** Escape in the rename field. */
|
|
56
|
+
onRenameCancel?: () => void;
|
|
57
|
+
/** Icon cells after the ⋯, in order — what the host that shows the chat adds (either variant). */
|
|
58
|
+
actions?: ReadonlyArray<MingoChatHeaderAction>;
|
|
28
59
|
}
|
|
29
60
|
|
|
30
61
|
/**
|
|
@@ -34,8 +65,10 @@ export interface MingoChatHeaderProps {
|
|
|
34
65
|
* chat column only; the list beside it has no bar.
|
|
35
66
|
*/
|
|
36
67
|
export function MingoChatHeader({
|
|
68
|
+
variant = 'panel',
|
|
37
69
|
title,
|
|
38
70
|
subtitle,
|
|
71
|
+
meta,
|
|
39
72
|
avatar,
|
|
40
73
|
onToggleList,
|
|
41
74
|
listOpen = false,
|
|
@@ -44,14 +77,33 @@ export function MingoChatHeader({
|
|
|
44
77
|
onRestore,
|
|
45
78
|
onCollapse,
|
|
46
79
|
onClose,
|
|
80
|
+
renaming = false,
|
|
81
|
+
onRenameSubmit,
|
|
82
|
+
onRenameCancel,
|
|
83
|
+
actions = [],
|
|
47
84
|
}: MingoChatHeaderProps) {
|
|
85
|
+
const isPage = variant === 'page';
|
|
48
86
|
const menuGroups: ActionsMenuGroup[] = [
|
|
49
87
|
...(menuItems.length > 0 ? [{ items: menuItems, separator: true }] : []),
|
|
50
88
|
...(extraMenuItems.length > 0 ? [{ items: extraMenuItems }] : []),
|
|
51
89
|
];
|
|
90
|
+
const metaParts = (meta ?? []).filter((part): part is string => !!part && part.trim().length > 0);
|
|
91
|
+
// Keyed on the title, so a rename opened again after the title changed seeds
|
|
92
|
+
// from the new one.
|
|
93
|
+
const titleNode = renaming ? (
|
|
94
|
+
<ChatHeaderRenameField
|
|
95
|
+
key={title}
|
|
96
|
+
initialValue={title}
|
|
97
|
+
onSubmit={value => onRenameSubmit?.(value)}
|
|
98
|
+
onCancel={() => onRenameCancel?.()}
|
|
99
|
+
/>
|
|
100
|
+
) : (
|
|
101
|
+
<p className={cn('truncate text-ods-text-primary text-h3', isPage && 'min-w-0')}>{title}</p>
|
|
102
|
+
);
|
|
103
|
+
|
|
52
104
|
return (
|
|
53
105
|
<div className="flex h-14 w-full shrink-0 divide-x divide-ods-border overflow-hidden border-b border-ods-border">
|
|
54
|
-
{onToggleList && (
|
|
106
|
+
{!isPage && onToggleList && (
|
|
55
107
|
<Button
|
|
56
108
|
variant="cell"
|
|
57
109
|
className="w-14"
|
|
@@ -63,22 +115,34 @@ export function MingoChatHeader({
|
|
|
63
115
|
</Button>
|
|
64
116
|
)}
|
|
65
117
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
{
|
|
118
|
+
{isPage ? (
|
|
119
|
+
// The page variant: one line, the title then its meta.
|
|
120
|
+
<div className="flex min-w-0 flex-1 items-center gap-[var(--spacing-system-xs)] px-[var(--spacing-system-m)] py-[var(--spacing-system-sf)]">
|
|
121
|
+
{titleNode}
|
|
122
|
+
{!renaming && metaParts.length > 0 && (
|
|
123
|
+
<p className="min-w-0 max-w-[60%] shrink-0 truncate text-ods-text-secondary text-h6">
|
|
124
|
+
{metaParts.map(part => `· ${part}`).join(' ')}
|
|
125
|
+
</p>
|
|
126
|
+
)}
|
|
127
|
+
</div>
|
|
128
|
+
) : (
|
|
129
|
+
<div className="flex min-w-0 flex-1 items-center gap-[var(--spacing-system-m)] px-[var(--spacing-system-m)] py-[var(--spacing-system-sf)]">
|
|
130
|
+
<div className="flex min-w-0 flex-1 flex-col">
|
|
131
|
+
{titleNode}
|
|
132
|
+
{!renaming && subtitle && <p className="truncate text-ods-text-secondary text-h6">{subtitle}</p>}
|
|
133
|
+
</div>
|
|
134
|
+
{avatar && (avatar.name || avatar.avatarUrl) ? (
|
|
135
|
+
<SquareAvatar
|
|
136
|
+
variant="round"
|
|
137
|
+
sizePx={32}
|
|
138
|
+
src={avatar.avatarUrl || undefined}
|
|
139
|
+
alt={avatar.name || undefined}
|
|
140
|
+
fallback={avatar.name || undefined}
|
|
141
|
+
title={avatar.name || undefined}
|
|
142
|
+
/>
|
|
143
|
+
) : null}
|
|
70
144
|
</div>
|
|
71
|
-
|
|
72
|
-
<SquareAvatar
|
|
73
|
-
variant="round"
|
|
74
|
-
sizePx={32}
|
|
75
|
-
src={avatar.avatarUrl || undefined}
|
|
76
|
-
alt={avatar.name || undefined}
|
|
77
|
-
fallback={avatar.name || undefined}
|
|
78
|
-
title={avatar.name || undefined}
|
|
79
|
-
/>
|
|
80
|
-
) : null}
|
|
81
|
-
</div>
|
|
145
|
+
)}
|
|
82
146
|
|
|
83
147
|
{onRestore && (
|
|
84
148
|
<Button variant="cell" className="w-14" onClick={onRestore} aria-label="Unarchive chat">
|
|
@@ -97,12 +161,24 @@ export function MingoChatHeader({
|
|
|
97
161
|
}
|
|
98
162
|
/>
|
|
99
163
|
)}
|
|
100
|
-
{
|
|
164
|
+
{actions.map(action => (
|
|
165
|
+
<Button
|
|
166
|
+
key={action.id}
|
|
167
|
+
variant="cell"
|
|
168
|
+
className="w-14"
|
|
169
|
+
onClick={action.onClick}
|
|
170
|
+
aria-label={action.label}
|
|
171
|
+
title={action.label}
|
|
172
|
+
>
|
|
173
|
+
{action.icon}
|
|
174
|
+
</Button>
|
|
175
|
+
))}
|
|
176
|
+
{!isPage && onCollapse && (
|
|
101
177
|
<Button variant="cell" className="w-14" onClick={onCollapse} aria-label="Collapse chat">
|
|
102
178
|
<Arrow02RightIcon size={24} />
|
|
103
179
|
</Button>
|
|
104
180
|
)}
|
|
105
|
-
{onClose && (
|
|
181
|
+
{!isPage && onClose && (
|
|
106
182
|
<Button variant="cell" className="w-14" onClick={onClose} aria-label="Close">
|
|
107
183
|
<XmarkIcon size={24} />
|
|
108
184
|
</Button>
|