@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
|
@@ -7,7 +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 {
|
|
10
|
+
import { createPortal } from "react-dom";
|
|
11
11
|
import { useRequiredChatRuntime } from "../../contexts/chat-runtime-context.js";
|
|
12
12
|
import { useIsHydrated } from "../../hooks/ui/use-is-hydrated.js";
|
|
13
13
|
import { cn } from "../../utils/cn.js";
|
|
@@ -69,6 +69,7 @@ import { SourceActionButton } from "./source-action-button.js";
|
|
|
69
69
|
import { AUTHOR_TYPE, CHAT_APPEARANCE } from "./types/chat.types.js";
|
|
70
70
|
import { ASK_AI_OPEN_EVENT, ASK_AI_OPEN_WITH_REF_EVENT, chatListensForAskAiOpens } from "./utils/ask-ai-events.js";
|
|
71
71
|
import { formatChatAttachmentMarkdownForBubble } from "./utils/chat-attachment-markdown.js";
|
|
72
|
+
import { chatDayLabel } from "./utils/chat-day-label.js";
|
|
72
73
|
import { chatChipClass } from "./utils/chip-styles.js";
|
|
73
74
|
import { FALLBACK_TOP_RETRIEVED, groupedRowLabels, splitCitedSources } from "./utils/cited-sources.js";
|
|
74
75
|
import { flattenAssistantContent } from "./utils/flatten-assistant-content.js";
|
|
@@ -384,10 +385,28 @@ function EmbeddableChatInner({
|
|
|
384
385
|
onWhatToAsk,
|
|
385
386
|
whatToAsk: whatToAskContent,
|
|
386
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,
|
|
387
404
|
handleRef
|
|
388
405
|
}) {
|
|
389
406
|
const shellLess = shell !== "drawer";
|
|
390
407
|
const isV2 = appearance === CHAT_APPEARANCE.V2;
|
|
408
|
+
const splitMode = threadContainer !== void 0;
|
|
409
|
+
const hostOwnsList = rail === "none" || splitMode;
|
|
391
410
|
const runtime = useRequiredChatRuntime();
|
|
392
411
|
const source = runtime.source ?? "";
|
|
393
412
|
const commandsUrl = runtime.endpoints.commandsUrl;
|
|
@@ -410,7 +429,7 @@ function EmbeddableChatInner({
|
|
|
410
429
|
onChange: onOpenChange
|
|
411
430
|
});
|
|
412
431
|
const [autoFocusInput] = useState(() => {
|
|
413
|
-
if (typeof window === "undefined") return false;
|
|
432
|
+
if (typeof window === "undefined" || shell === "inline") return false;
|
|
414
433
|
return !window.matchMedia("(pointer: coarse)").matches;
|
|
415
434
|
});
|
|
416
435
|
usePreventScroll({ isDisabled: !isOpen || shellLess });
|
|
@@ -503,7 +522,6 @@ function EmbeddableChatInner({
|
|
|
503
522
|
const {
|
|
504
523
|
messages: rawMessages,
|
|
505
524
|
isLoading: chatLoading,
|
|
506
|
-
streamingProgress,
|
|
507
525
|
sendMessage: sendMessageRaw,
|
|
508
526
|
discussRef,
|
|
509
527
|
stopMessage,
|
|
@@ -596,10 +614,13 @@ function EmbeddableChatInner({
|
|
|
596
614
|
const scopeDialogId = activeDialogId ?? null;
|
|
597
615
|
const [composerScope, setComposerScope] = useState({ dialogId: scopeDialogId, mode: activeMode });
|
|
598
616
|
const [composerKey, setComposerKey] = useState(0);
|
|
617
|
+
const [createdDialogId, setCreatedDialogId] = useState(null);
|
|
599
618
|
if (composerScope.dialogId !== scopeDialogId || composerScope.mode !== activeMode) {
|
|
600
619
|
const named = namingNewChat && composerScope.dialogId == null && scopeDialogId != null && composerScope.mode === activeMode;
|
|
601
620
|
setComposerScope({ dialogId: scopeDialogId, mode: activeMode });
|
|
602
|
-
if (
|
|
621
|
+
if (named) {
|
|
622
|
+
setCreatedDialogId(scopeDialogId);
|
|
623
|
+
} else {
|
|
603
624
|
setComposerKey((k) => k + 1);
|
|
604
625
|
setContextItems(NO_CONTEXT_ITEMS);
|
|
605
626
|
setContextPickerOpen(false);
|
|
@@ -610,6 +631,13 @@ function EmbeddableChatInner({
|
|
|
610
631
|
mentionKeysRef.current.clear();
|
|
611
632
|
clearAttachments();
|
|
612
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]);
|
|
613
641
|
const mentionMarkerByType = useMemo(() => {
|
|
614
642
|
const m = /* @__PURE__ */ new Map();
|
|
615
643
|
for (const t of contextPicker?.entityTypes ?? []) if (t.marker) m.set(t.type, t.marker);
|
|
@@ -691,6 +719,8 @@ function EmbeddableChatInner({
|
|
|
691
719
|
}, [setIsOpen]);
|
|
692
720
|
const sendPromptRef = useRef(() => {
|
|
693
721
|
});
|
|
722
|
+
const whatToAskEntryRef = useRef(() => {
|
|
723
|
+
});
|
|
694
724
|
const chatPanelHandle = useMemo(
|
|
695
725
|
() => ({
|
|
696
726
|
closeChat: handleNavigationClose,
|
|
@@ -921,6 +951,8 @@ function EmbeddableChatInner({
|
|
|
921
951
|
);
|
|
922
952
|
const [portalHost, setPortalHost] = useState(null);
|
|
923
953
|
const [panelBoundary, setPanelBoundary] = useState(null);
|
|
954
|
+
const [threadPortalHost, setThreadPortalHost] = useState(null);
|
|
955
|
+
const [threadBoundary, setThreadBoundary] = useState(null);
|
|
924
956
|
const splitMinWidth = (isV2 ? MINGO_V2_RAIL_WIDTH : HISTORY_RAIL_WIDTH) + CHAT_BLOCK_MIN_WIDTH;
|
|
925
957
|
const [canSplit, setCanSplit] = useState(false);
|
|
926
958
|
useEffect(() => {
|
|
@@ -961,7 +993,7 @@ function EmbeddableChatInner({
|
|
|
961
993
|
}, []);
|
|
962
994
|
const [railSearchOpen, setRailSearchOpen] = useState(false);
|
|
963
995
|
const splitEligible = historyListMode;
|
|
964
|
-
const wideMingo = splitEligible && canSplit && !previewMode;
|
|
996
|
+
const wideMingo = splitEligible && canSplit && !previewMode && !hostOwnsList;
|
|
965
997
|
const splitActive = wideMingo && !railCollapsed;
|
|
966
998
|
const railPresence = useRailPresence(splitActive);
|
|
967
999
|
const showWideHeader = wideMingo || railPresence.mounted;
|
|
@@ -969,7 +1001,7 @@ function EmbeddableChatInner({
|
|
|
969
1001
|
if (hasConversation && composeOpen) setComposeOpen(false);
|
|
970
1002
|
const isMingoMode = historyListMode;
|
|
971
1003
|
const emptyListSkipped = mingoCaps.emptyListSkipsToCompose === true && dialogs.length === 0 && !dialogsInitialLoading && !mingoCaps.searchQuery;
|
|
972
|
-
const stackedListView = isMingoMode && !hasConversation && !archiveOpen && !wideMingo && !composeOpen && !emptyListSkipped;
|
|
1004
|
+
const stackedListView = isMingoMode && !hasConversation && !archiveOpen && !wideMingo && !composeOpen && !emptyListSkipped && !hostOwnsList;
|
|
973
1005
|
const headerShowBack = hasConversation || guideCanReturnToMingo;
|
|
974
1006
|
const freshConversationTitle = isGuideEmpty ? headerAssistantName ?? "Mingo Guide" : "New Chat";
|
|
975
1007
|
const headerTitle = hasConversation ? activeDialog?.title || freshConversationTitle : isGuideEmpty ? freshConversationTitle : "Current Chats";
|
|
@@ -1086,9 +1118,13 @@ function EmbeddableChatInner({
|
|
|
1086
1118
|
setComposeOpen(true);
|
|
1087
1119
|
mentionKeysRef.current.clear();
|
|
1088
1120
|
setPendingDraft({ text, mentions: mentions.slice(0, contextMaxItems) });
|
|
1121
|
+
},
|
|
1122
|
+
showWhatToAsk: () => whatToAskEntryRef.current(),
|
|
1123
|
+
openContextPicker: () => {
|
|
1124
|
+
if (contextPicker) openContextPicker();
|
|
1089
1125
|
}
|
|
1090
1126
|
}),
|
|
1091
|
-
[resetToNewChat, contextMaxItems]
|
|
1127
|
+
[resetToNewChat, contextMaxItems, contextPicker, openContextPicker]
|
|
1092
1128
|
);
|
|
1093
1129
|
const splitHeaderMenuItems = chatDialogMenuItems({
|
|
1094
1130
|
onCopyLink: headerOnCopyLink,
|
|
@@ -1096,14 +1132,33 @@ function EmbeddableChatInner({
|
|
|
1096
1132
|
onCompact: headerOnCompact,
|
|
1097
1133
|
onArchive: headerOnArchive
|
|
1098
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
|
+
});
|
|
1099
1154
|
const narrowMingoEmpty = isMingoMode && !hasConversation && !archiveOpen && !emptyListSkipped;
|
|
1100
|
-
const narrowHeaderProps = narrowMingoEmpty ? composeOpen ? {
|
|
1101
|
-
showBack:
|
|
1155
|
+
const narrowHeaderProps = narrowMingoEmpty ? composeOpen || hostOwnsList ? {
|
|
1156
|
+
showBack: !hostOwnsList,
|
|
1102
1157
|
title: freshConversationTitle,
|
|
1103
1158
|
subtitle: headerUserName,
|
|
1104
1159
|
avatar: headerAvatar,
|
|
1105
1160
|
backAriaLabel: "Back to chats",
|
|
1106
|
-
onBack: () => setComposeOpen(false),
|
|
1161
|
+
onBack: hostOwnsList ? void 0 : () => setComposeOpen(false),
|
|
1107
1162
|
onClose: closeControl
|
|
1108
1163
|
} : {
|
|
1109
1164
|
showBack: false,
|
|
@@ -1134,6 +1189,12 @@ function EmbeddableChatInner({
|
|
|
1134
1189
|
if (archiveOpen) closeArchive();
|
|
1135
1190
|
action();
|
|
1136
1191
|
};
|
|
1192
|
+
const openWhatToAsk = () => {
|
|
1193
|
+
leaveArchiveThen(onWhatToAsk ?? (whatToAskContent ? requestWhatToAsk : handleNewChat))();
|
|
1194
|
+
};
|
|
1195
|
+
useEffect(() => {
|
|
1196
|
+
whatToAskEntryRef.current = openWhatToAsk;
|
|
1197
|
+
});
|
|
1137
1198
|
const mingoRailProps = {
|
|
1138
1199
|
dialogs,
|
|
1139
1200
|
// The archive takes the chat column: the open chat stays selected (closing
|
|
@@ -1146,10 +1207,7 @@ function EmbeddableChatInner({
|
|
|
1146
1207
|
onNewChat: leaveArchiveThen(handleNewChat),
|
|
1147
1208
|
onOpenArchive: headerOnOpenArchive && (archiveOpen ? closeArchive : headerOnOpenArchive),
|
|
1148
1209
|
archiveActive: archiveOpen,
|
|
1149
|
-
|
|
1150
|
-
onWhatToAsk: () => {
|
|
1151
|
-
leaveArchiveThen(onWhatToAsk ?? (whatToAskContent ? requestWhatToAsk : handleNewChat))();
|
|
1152
|
-
},
|
|
1210
|
+
onWhatToAsk: openWhatToAsk,
|
|
1153
1211
|
statusOf: dialogStatusOf,
|
|
1154
1212
|
onRequestRename: mingoCaps.canRename ? setRenameTarget : void 0,
|
|
1155
1213
|
onRequestArchive: mingoCaps.canArchive ? setArchiveTarget : void 0,
|
|
@@ -1175,9 +1233,12 @@ function EmbeddableChatInner({
|
|
|
1175
1233
|
title: archiveOpen ? "Chat Archive" : headerShowBack || isGuideEmpty ? headerTitle : freshConversationTitle,
|
|
1176
1234
|
subtitle: archiveOpen ? void 0 : headerPersonName,
|
|
1177
1235
|
avatar: archiveOpen ? void 0 : headerAvatar,
|
|
1178
|
-
onToggleList: wideMingo ? toggleRailCollapsed : headerShowBack ? headerOnBack : () => setComposeOpen(false),
|
|
1236
|
+
onToggleList: hostOwnsList ? void 0 : wideMingo ? toggleRailCollapsed : headerShowBack ? headerOnBack : () => setComposeOpen(false),
|
|
1179
1237
|
listOpen: splitActive,
|
|
1180
|
-
menuItems: headerShowBack && !isViewingArchived && !archiveOpen ?
|
|
1238
|
+
menuItems: headerShowBack && !isViewingArchived && !archiveOpen ? mingoHeaderMenuItems : [],
|
|
1239
|
+
renaming: inlineRenaming && !archiveOpen,
|
|
1240
|
+
onRenameSubmit: submitInlineRename,
|
|
1241
|
+
onRenameCancel: cancelInlineRename,
|
|
1181
1242
|
extraMenuItems: isViewingArchived || archiveOpen ? void 0 : chatMenuExtraItems,
|
|
1182
1243
|
onRestore: isViewingArchived && !archiveOpen ? headerOnRestore : void 0,
|
|
1183
1244
|
onCollapse: wideMingo && onCollapse ? () => {
|
|
@@ -1187,7 +1248,200 @@ function EmbeddableChatInner({
|
|
|
1187
1248
|
onClose: closeControl
|
|
1188
1249
|
}
|
|
1189
1250
|
) }) : null;
|
|
1190
|
-
const
|
|
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 = (
|
|
1191
1445
|
// The whole panel reads the appearance (the composer's footer too), not
|
|
1192
1446
|
// only the thread `ChatMessageList` provides it to.
|
|
1193
1447
|
/* @__PURE__ */ jsx(ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ jsx(PortalContainerContext.Provider, { value: portalHost, children: /* @__PURE__ */ jsxs(CollisionBoundaryContext.Provider, { value: panelBoundary, children: [
|
|
@@ -1408,19 +1662,7 @@ function EmbeddableChatInner({
|
|
|
1408
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 ? (
|
|
1409
1663
|
// v2: the archive opens in the chat column under the chat's
|
|
1410
1664
|
// header; the list stays, and "Chat Archive" there toggles back.
|
|
1411
|
-
|
|
1412
|
-
MingoArchiveList,
|
|
1413
|
-
{
|
|
1414
|
-
dialogs: archivedDialogs,
|
|
1415
|
-
onSelectDialog: handleArchivedSelect,
|
|
1416
|
-
isLoading: archivedLoading,
|
|
1417
|
-
hasMore: archivedCursor != null,
|
|
1418
|
-
isLoadingMore: archivedPending,
|
|
1419
|
-
onLoadMore: () => {
|
|
1420
|
-
void loadArchivedPage(archivedCursor ?? void 0);
|
|
1421
|
-
}
|
|
1422
|
-
}
|
|
1423
|
-
)
|
|
1665
|
+
archiveListNode
|
|
1424
1666
|
) : stackedListView && isV2 ? /* @__PURE__ */ jsx(
|
|
1425
1667
|
MingoChatRail,
|
|
1426
1668
|
{
|
|
@@ -1467,180 +1709,10 @@ function EmbeddableChatInner({
|
|
|
1467
1709
|
}
|
|
1468
1710
|
)
|
|
1469
1711
|
) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
"data-testid": "chat-content-panel",
|
|
1475
|
-
className: cn(
|
|
1476
|
-
"flex min-h-0 flex-1 flex-col p-[var(--spacing-system-m)]",
|
|
1477
|
-
// With a host block above the composer the thread keeps room
|
|
1478
|
-
// for a line and the working status: the block gives way
|
|
1479
|
-
// instead (below), so the status never lands on it.
|
|
1480
|
-
hasAboveComposer && "min-h-32"
|
|
1481
|
-
),
|
|
1482
|
-
children: /* @__PURE__ */ jsx(
|
|
1483
|
-
"div",
|
|
1484
|
-
{
|
|
1485
|
-
className: "flex min-h-0 flex-1 flex-col duration-200 animate-in fade-in-0",
|
|
1486
|
-
children: hasConversation ? /* @__PURE__ */ jsx("div", { className: "flex min-h-0 flex-1 flex-col", children: /* @__PURE__ */ jsx(
|
|
1487
|
-
ChatMessageList,
|
|
1488
|
-
{
|
|
1489
|
-
messages,
|
|
1490
|
-
isLoading: messagesInitialLoading,
|
|
1491
|
-
fill: previewMode,
|
|
1492
|
-
appearance,
|
|
1493
|
-
isTyping: chatLoading,
|
|
1494
|
-
typingMessage: streamingProgress ? chatProgressLabel(streamingProgress) : void 0,
|
|
1495
|
-
pendingApprovals,
|
|
1496
|
-
autoScroll: !previewMode,
|
|
1497
|
-
pinBottom: previewMode,
|
|
1498
|
-
overscrollContain: !previewMode,
|
|
1499
|
-
assistantType: "mingo",
|
|
1500
|
-
assistantIcon: mingoAssistantIcon,
|
|
1501
|
-
renderEntityCard,
|
|
1502
|
-
resolveContextIcon,
|
|
1503
|
-
renderContextItem,
|
|
1504
|
-
renderMention,
|
|
1505
|
-
renderAfterMessage: renderMessageSources,
|
|
1506
|
-
onAskSelect: chatLoading || previewMode ? void 0 : handleAskSelect,
|
|
1507
|
-
NavLinkAnchor: NavLinkAnchorViaRuntime,
|
|
1508
|
-
className: previewMode ? "pointer-events-auto flex-1" : "flex-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
1509
|
-
contentClassName: "max-w-none pb-0",
|
|
1510
|
-
fullWidth: true,
|
|
1511
|
-
hasNextPage: hasMoreMessages,
|
|
1512
|
-
isFetchingNextPage: isMessagesLoading,
|
|
1513
|
-
onLoadMore: loadMoreMessages
|
|
1514
|
-
}
|
|
1515
|
-
) }) : activeMode === "mingo" ? (
|
|
1516
|
-
/* Figma node 7532:222444 — default (Mingo-mode) empty state:
|
|
1517
|
-
centred greeting + capability grid + Guide-chat promo +
|
|
1518
|
-
quick-action chips. Guide mode keeps the slash-command
|
|
1519
|
-
onboarding list below. */
|
|
1520
|
-
/* @__PURE__ */ jsx(
|
|
1521
|
-
MingoWelcome,
|
|
1522
|
-
{
|
|
1523
|
-
onStartGuideChat: effectiveModes.guide ? () => handleActiveModeChange("guide") : void 0,
|
|
1524
|
-
historyPageSize,
|
|
1525
|
-
...mingoWelcome,
|
|
1526
|
-
hasExistingChats: false,
|
|
1527
|
-
onQuickActionHover: (action) => setQuickActionPreview(action.prompt ?? action.label),
|
|
1528
|
-
onQuickActionHoverEnd: () => setQuickActionPreview(null),
|
|
1529
|
-
agentSlug: activeAgentSlug ?? "mingo"
|
|
1530
|
-
}
|
|
1531
|
-
)
|
|
1532
|
-
) : (
|
|
1533
|
-
/* Figma node 7532:328214 — Guide-mode empty state: greeting
|
|
1534
|
-
+ slash-command onboarding list share one scroll region,
|
|
1535
|
-
with a pinned quick-action chip row above the composer. */
|
|
1536
|
-
/* @__PURE__ */ jsx(
|
|
1537
|
-
GuideWelcome,
|
|
1538
|
-
{
|
|
1539
|
-
subtitle: effectiveGreeting ?? void 0,
|
|
1540
|
-
subtitleLoading: emptyStateLoading,
|
|
1541
|
-
...guideWelcome,
|
|
1542
|
-
title: effectiveAssistantName ?? guideWelcome?.title,
|
|
1543
|
-
icon: effectiveAssistantIcon ?? guideWelcome?.icon,
|
|
1544
|
-
quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : guideWelcome?.quickActions ?? guideSuggestedActions,
|
|
1545
|
-
onQuickAction: (action) => {
|
|
1546
|
-
setQuickActionPreview(null);
|
|
1547
|
-
handleSend(action.prompt ?? action.label);
|
|
1548
|
-
},
|
|
1549
|
-
onQuickActionHover: (action) => setQuickActionPreview(action.prompt ?? action.label),
|
|
1550
|
-
onQuickActionHoverEnd: () => setQuickActionPreview(null),
|
|
1551
|
-
agentSlug: activeAgentSlug,
|
|
1552
|
-
children: (chipCommands.length > 0 || !commandsLoaded) && /* @__PURE__ */ jsxs("div", { className: "shrink-0 overflow-hidden rounded-md border border-ods-border", children: [
|
|
1553
|
-
!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: "" }) }),
|
|
1554
|
-
chipCommands.map((cmd) => {
|
|
1555
|
-
const Icon = resolveIcon(cmd.iconName);
|
|
1556
|
-
const cmdId = cmd.id;
|
|
1557
|
-
const label = cmd.label ?? `/${cmdId}`;
|
|
1558
|
-
const cardActions = cmd.actions.map((action) => ({
|
|
1559
|
-
id: action.id,
|
|
1560
|
-
label: action.label,
|
|
1561
|
-
onClick: () => dispatchSlashCommandAction(action.id, cmdId, chatInputRef)
|
|
1562
|
-
}));
|
|
1563
|
-
return /* @__PURE__ */ jsx(
|
|
1564
|
-
MingoOnboardingCard,
|
|
1565
|
-
{
|
|
1566
|
-
icon: /* @__PURE__ */ jsx(Icon, { size: 16 }),
|
|
1567
|
-
title: label,
|
|
1568
|
-
slashCommand: `/${cmdId}`,
|
|
1569
|
-
description: cmd.description,
|
|
1570
|
-
actions: cardActions,
|
|
1571
|
-
"data-loading-item": true
|
|
1572
|
-
},
|
|
1573
|
-
cmdId
|
|
1574
|
-
);
|
|
1575
|
-
})
|
|
1576
|
-
] })
|
|
1577
|
-
}
|
|
1578
|
-
)
|
|
1579
|
-
)
|
|
1580
|
-
},
|
|
1581
|
-
contentViewKey
|
|
1582
|
-
)
|
|
1583
|
-
}
|
|
1584
|
-
),
|
|
1585
|
-
hasAboveComposer && /* @__PURE__ */ jsx(
|
|
1586
|
-
"div",
|
|
1587
|
-
{
|
|
1588
|
-
"data-testid": "chat-above-composer",
|
|
1589
|
-
className: "flex min-h-0 shrink flex-col px-[var(--spacing-system-m)] pb-[var(--spacing-system-m)]",
|
|
1590
|
-
children: aboveComposer
|
|
1591
|
-
}
|
|
1592
|
-
),
|
|
1593
|
-
/* @__PURE__ */ jsx(
|
|
1594
|
-
ChatAttachmentChipStrip,
|
|
1595
|
-
{
|
|
1596
|
-
attachments: stagedAttachments,
|
|
1597
|
-
onRemove: removeAttachment,
|
|
1598
|
-
disabled: chatLoading
|
|
1599
|
-
}
|
|
1600
|
-
),
|
|
1601
|
-
/* @__PURE__ */ jsx(
|
|
1602
|
-
ChatComposer,
|
|
1603
|
-
{
|
|
1604
|
-
archived: isViewingArchived,
|
|
1605
|
-
lock: composerLock,
|
|
1606
|
-
inputRef: chatInputRef,
|
|
1607
|
-
onSend: handleSend,
|
|
1608
|
-
onStop: stopMessage,
|
|
1609
|
-
sending: chatLoading || hasInflightUploads,
|
|
1610
|
-
placeholder: hasInflightUploads ? "Waiting for uploads to finish\u2026" : isV2 ? "Enter your Request..." : "Ask a question...",
|
|
1611
|
-
autoFocus: previewMode ? false : autoFocusInput,
|
|
1612
|
-
slashCommands: slashCommandsProp,
|
|
1613
|
-
previewText: quickActionPreview ?? void 0,
|
|
1614
|
-
showAttachmentButton: attachmentsEnabled && activeMode === "guide",
|
|
1615
|
-
attachmentsCount: stagedAttachments.length,
|
|
1616
|
-
onAddFiles: addAttachmentFiles,
|
|
1617
|
-
attachmentsDisabled: chatLoading,
|
|
1618
|
-
contextPicker: contextPickerForMode,
|
|
1619
|
-
selectedContextItems: contextItems,
|
|
1620
|
-
onToggleContextItem: toggleContextItem,
|
|
1621
|
-
onRemoveContextItem: removeContextItem,
|
|
1622
|
-
contextMemoryItems: contextMemory?.items,
|
|
1623
|
-
onRemoveContextMemoryItem: contextMemory?.onRemove,
|
|
1624
|
-
contextMemoryPending: contextMemory?.pending,
|
|
1625
|
-
contextPickerOpen,
|
|
1626
|
-
onOpenContextPicker: openContextPicker,
|
|
1627
|
-
onCloseContextPicker: closeContextPicker,
|
|
1628
|
-
mentionQuery,
|
|
1629
|
-
onMentionQueryChange: handleMentionQueryChange,
|
|
1630
|
-
onValueChange: handleContextValueChange,
|
|
1631
|
-
model: {
|
|
1632
|
-
provider: currentProvider ?? "anthropic",
|
|
1633
|
-
modelName: currentModelLabel ?? "Claude",
|
|
1634
|
-
usedTokens: currentInputTokens != null ? (currentInputTokens ?? 0) + (currentOutputTokens ?? 0) : void 0,
|
|
1635
|
-
contextWindow: currentContextWindowMaxTokens ?? void 0,
|
|
1636
|
-
inputTokens: currentInputTokens ?? void 0,
|
|
1637
|
-
outputTokens: currentOutputTokens ?? void 0,
|
|
1638
|
-
hitRatePct: currentCacheHitRatePct ?? void 0,
|
|
1639
|
-
breakdown: currentUsageBreakdown ?? void 0
|
|
1640
|
-
}
|
|
1641
|
-
},
|
|
1642
|
-
composerKey
|
|
1643
|
-
)
|
|
1712
|
+
threadArea,
|
|
1713
|
+
aboveComposerNode,
|
|
1714
|
+
attachmentStrip,
|
|
1715
|
+
composerNode
|
|
1644
1716
|
] }) })
|
|
1645
1717
|
] })
|
|
1646
1718
|
]
|
|
@@ -1650,23 +1722,61 @@ function EmbeddableChatInner({
|
|
|
1650
1722
|
}
|
|
1651
1723
|
),
|
|
1652
1724
|
galleryModal,
|
|
1653
|
-
|
|
1654
|
-
ChatDialogModals,
|
|
1655
|
-
{
|
|
1656
|
-
renameTarget,
|
|
1657
|
-
setRenameTarget,
|
|
1658
|
-
onConfirmRename: handleConfirmRename,
|
|
1659
|
-
archiveTarget,
|
|
1660
|
-
setArchiveTarget,
|
|
1661
|
-
onConfirmArchive: handleConfirmArchive,
|
|
1662
|
-
restoreTarget,
|
|
1663
|
-
setRestoreTarget,
|
|
1664
|
-
onConfirmRestore: handleConfirmRestore
|
|
1665
|
-
}
|
|
1666
|
-
),
|
|
1725
|
+
dialogModals,
|
|
1667
1726
|
/* @__PURE__ */ jsx("div", { ref: setPortalHost, style: { display: "contents" } })
|
|
1668
1727
|
] }) }) })
|
|
1669
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;
|
|
1670
1780
|
const panel = shellLess ? /* @__PURE__ */ jsxs(ChatPanelContext.Provider, { value: chatPanelHandle, children: [
|
|
1671
1781
|
shell === "none" && /* @__PURE__ */ jsx(VisuallyHidden, { children: /* @__PURE__ */ jsxs(DialogPrimitive.Title, { children: [
|
|
1672
1782
|
sourceLabel,
|