@flamingo-stack/openframe-frontend-core 0.0.825 → 0.0.826
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/export-map.json +1 -1
- package/dist/{case-study-card-IZBMHA6R.cjs → case-study-card-O4IQCJAX.cjs} +5 -5
- package/dist/{chunk-QOAA7ZHB.cjs → chunk-2HQNXX2K.cjs} +2 -2
- package/dist/{chunk-2U7GXE3T.cjs → chunk-2TQJSB62.cjs} +2157 -811
- package/dist/{chunk-NONMZ5WJ.cjs → chunk-2VLPXUQK.cjs} +14 -83
- package/dist/{chunk-7DJWIVQC.cjs → chunk-37OYBX7W.cjs} +36 -36
- package/dist/{chunk-OBQ5WUNG.cjs → chunk-3B6ZE4EZ.cjs} +29 -29
- package/dist/{chunk-AO6YVNAH.cjs → chunk-5AQKXEMI.cjs} +979 -1357
- package/dist/{chunk-25HBH4J6.cjs → chunk-5BM7X4GA.cjs} +2 -2
- package/dist/{chunk-47SHKOCY.cjs → chunk-63T2KKDZ.cjs} +86 -86
- package/dist/{chunk-MHR4C465.cjs → chunk-6G4WRMEM.cjs} +3 -3
- package/dist/{chunk-AUBR3FGY.cjs → chunk-74GWFGH2.cjs} +28 -28
- package/dist/{chunk-467T3LCG.cjs → chunk-7PZQ7SHB.cjs} +49 -32
- package/dist/{chunk-6LVJKPR3.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-NL34HKLS.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-5S2GW6YG.cjs → chunk-HJAPXKWK.cjs} +17 -17
- package/dist/{chunk-P25RVNGX.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-MALCUN2G.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-4IY5FKYL.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-IMMTH3F3.cjs → chunk-PJY3SYCS.cjs} +29 -27
- package/dist/{chunk-N7IDLF2G.cjs → chunk-PWAKRRRO.cjs} +1283 -268
- package/dist/{chunk-UEULXVW2.cjs → chunk-QS6AKUUL.cjs} +22 -22
- package/dist/{chunk-BN7QENV7.cjs → chunk-QYJZDEG7.cjs} +6 -6
- package/dist/{chunk-NPNZAAOB.cjs → chunk-S6UJEW4G.cjs} +2 -2
- package/dist/{chunk-XJMLZ63Y.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-DNZCSPMU.cjs → chunk-WGMU45NV.cjs} +20 -20
- package/dist/{chunk-APTFXX2C.cjs → chunk-XDHQC4XH.cjs} +46 -46
- package/dist/{cloud-tenants-M4VFFN33.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 -215
- 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/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/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-DW5NDXMD.cjs → devices-SJORCARH.cjs} +109 -107
- package/dist/dots-loader-icon-5JXWD6FB.cjs +7 -0
- package/dist/{embeddable-chat-NBJMXEXB.cjs → embeddable-chat-7Z4CEZJL.cjs} +513 -398
- 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-EYJG2TNW.cjs → knowledge-QXILUVEM.cjs} +109 -107
- package/dist/{logs-2LV7DTSL.cjs → logs-E3KQQQD6.cjs} +118 -115
- package/dist/mingo-logo-icon-WGPBSDTF.cjs +7 -0
- package/dist/{policies-HSDYIQBX.cjs → policies-IOYQY6TF.cjs} +112 -110
- package/dist/{remote-session-BQMTIQTU.cjs → remote-session-QGFG5WAL.cjs} +99 -97
- package/dist/{scripts-UI6V7ANQ.cjs → scripts-E5TWWUNP.cjs} +115 -113
- package/dist/{software-update-WMLY7VHH.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/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 -319
- 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/tool-execution-display.tsx +9 -1
- package/src/components/chat/types/component.types.ts +13 -1
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approval-batch-message.d.ts","sourceRoot":"","sources":["../../../src/components/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AE,sBAAsB,sCAM3G;AAED,oFAAoF;AACpF,wBAAgB,mBAAmB,gCAElC;
|
|
1
|
+
{"version":3,"file":"approval-batch-message.d.ts","sourceRoot":"","sources":["../../../src/components/chat/approval-batch-message.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAa5C,OAAO,KAAK,EACV,oBAAoB,EACpB,aAAa,EAEb,oBAAoB,EAErB,MAAM,SAAS,CAAC;AAGjB,MAAM,WAAW,yBAA0B,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC/E;sCACkC;IAClC,IAAI,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAC1C,MAAM,CAAC,EAAE,oBAAoB,CAAC,QAAQ,CAAC,CAAC;IACxC,SAAS,CAAC,EAAE,CAAC,SAAS,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,GAAG,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,CAAC;IAC7E,QAAQ,CAAC,EAAE,CAAC,SAAS,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,GAAG,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,CAAC;IAC5E;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC,qGAAqG;IACrG,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;;OAKG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAID,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,oBAAoB,CAAC,QAAQ,CAAC,CAAC;IACvC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,MAAM,EAAE,cAAc,EAAE,cAAsB,EAAE,EAAE,sBAAsB,sCAM3G;AAED,oFAAoF;AACpF,wBAAgB,mBAAmB,gCAElC;AAgMD,QAAA,MAAM,oBAAoB,sHA+KzB,CAAC;AAIF,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -49,7 +49,7 @@ function ToolCallRow({ call, expanded, onToggle, batchStatus, execution, showExe
|
|
|
49
49
|
const result = execution?.status === "done" ? execution.result : void 0;
|
|
50
50
|
const hasExpandableBody = args.length > 0 || typeof result === "string" && result.length > 0;
|
|
51
51
|
return /* @__PURE__ */ jsxs("div", { className: "flex w-full flex-col items-start border-b border-ods-border bg-ods-card last:border-b-0", children: [
|
|
52
|
-
/* @__PURE__ */ jsxs(Button, { variant: "row", type: "button", onClick: onToggle, "aria-expanded": expanded, children: [
|
|
52
|
+
/* @__PURE__ */ jsxs(Button, { variant: "row", type: "button", onClick: onToggle, "aria-expanded": expanded, className: "rounded-none", children: [
|
|
53
53
|
/* @__PURE__ */ jsx("div", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-ods-text-secondary", children: /* @__PURE__ */ jsx(ToolIcon, { toolType, size: 16 }) }),
|
|
54
54
|
/* @__PURE__ */ jsx(
|
|
55
55
|
"div",
|
|
@@ -110,7 +110,7 @@ const ApprovalBatchLoading = forwardRef(
|
|
|
110
110
|
className: cn("mb-[var(--spacing-system-xsf)] flex flex-col overflow-hidden", CHAT_BLOCK_FRAME_CLASS, className),
|
|
111
111
|
...props,
|
|
112
112
|
children: [
|
|
113
|
-
/* @__PURE__ */ jsx("div", { className: "flex w-full flex-col items-start bg-ods-card", children: /* @__PURE__ */ jsxs(Button, { variant: "row", type: "button", tabIndex: -1, children: [
|
|
113
|
+
/* @__PURE__ */ jsx("div", { className: "flex w-full flex-col items-start bg-ods-card", children: /* @__PURE__ */ jsxs(Button, { variant: "row", type: "button", tabIndex: -1, className: "rounded-none", children: [
|
|
114
114
|
/* @__PURE__ */ jsx("div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: /* @__PURE__ */ jsx(MediaSkeleton.Icon, { size: "sm" }) }),
|
|
115
115
|
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 flex-col text-h6", children: [
|
|
116
116
|
/* @__PURE__ */ jsx(TextLineSkeleton, { type: "inherit", className: "w-full" }),
|
|
@@ -12,6 +12,13 @@ interface ChatArchivePageBaseProps {
|
|
|
12
12
|
hasMore?: boolean;
|
|
13
13
|
/** Fetch the next page. */
|
|
14
14
|
onLoadMore?: () => void;
|
|
15
|
+
/** The first page failed with nothing to show: "Couldn’t load your chats"
|
|
16
|
+
* (`ChatListLoadError`) instead of the empty state. Ignored while archived
|
|
17
|
+
* chats are listed (they stay on screen) and while `isLoading` (a retry's
|
|
18
|
+
* skeleton shows). */
|
|
19
|
+
loadError?: boolean;
|
|
20
|
+
/** "Try again" under the load error. Without it the error has no button. */
|
|
21
|
+
onRetry?: () => void;
|
|
15
22
|
/** The archive's page size: how many rows the first-load loading state draws. Default
|
|
16
23
|
* `CHAT_HISTORY_PAGE_SIZE`. */
|
|
17
24
|
pageSize?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-archive-page.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chat-archive-page.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chat-archive-page.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chat-archive-page.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE1D,UAAU,wBAAwB;IAChC,yEAAyE;IACzE,OAAO,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACnC,+BAA+B;IAC/B,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,wGAAwG;IACxG,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0GAA0G;IAC1G,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,wDAAwD;IACxD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2BAA2B;IAC3B,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB;;;2BAGuB;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,4EAA4E;IAC5E,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;oCACgC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;gEACgE;AAChE,MAAM,WAAW,8BAA+B,SAAQ,wBAAwB;IAC9E,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,0DAA0D;IAC1D,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,kCAAkC;IAClC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED;;4DAE4D;AAC5D,MAAM,WAAW,4BAA6B,SAAQ,wBAAwB;IAC5E,QAAQ,EAAE,IAAI,CAAC;IACf,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB;AAED,MAAM,MAAM,oBAAoB,GAAG,8BAA8B,GAAG,4BAA4B,CAAC;AAEjG;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,+BAmF1D"}
|
|
@@ -7,6 +7,7 @@ import { useLoadingScope } from "../ui/loading-scope.js";
|
|
|
7
7
|
import { ChatListEmptyState } from "./chat-list-empty-state.js";
|
|
8
8
|
import { ChatPanelHeaderMobile } from "./chat-panel-header-mobile.js";
|
|
9
9
|
import { MingoChatHistory } from "./mingo-chat-history.js";
|
|
10
|
+
import { ChatListLoadError } from "./mingo-chat-list-shared.js";
|
|
10
11
|
function ChatArchivePage(props) {
|
|
11
12
|
const {
|
|
12
13
|
dialogs,
|
|
@@ -15,6 +16,8 @@ function ChatArchivePage(props) {
|
|
|
15
16
|
isFetching = false,
|
|
16
17
|
hasMore = false,
|
|
17
18
|
onLoadMore,
|
|
19
|
+
loadError = false,
|
|
20
|
+
onRetry,
|
|
18
21
|
pageSize
|
|
19
22
|
} = props;
|
|
20
23
|
const firstLoad = useLoadingScope() || (isLoading || isFetching) && dialogs.length === 0;
|
|
@@ -51,6 +54,12 @@ function ChatArchivePage(props) {
|
|
|
51
54
|
onLoadMore
|
|
52
55
|
}
|
|
53
56
|
)
|
|
57
|
+
) : loadError ? (
|
|
58
|
+
// A failed first page: the wording every Mingo chat list uses, with
|
|
59
|
+
// the host's retry — never the "No Archived Chats" empty state, which
|
|
60
|
+
// would claim there is nothing archived. A retry in flight is the
|
|
61
|
+
// first load again (above), so the click on "Try again" shows.
|
|
62
|
+
/* @__PURE__ */ jsx(ChatListLoadError, { onRetry, className: "min-h-0 flex-1 justify-center p-[var(--spacing-system-l)]" })
|
|
54
63
|
) : (
|
|
55
64
|
// Empty state — mirrors the "Current Chats" rail empty state
|
|
56
65
|
// (Figma 113:60939): centred 24px muted glyph + h4 title + h6 caption.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { type ComponentProps, type Ref } from 'react';
|
|
1
|
+
import { type ComponentProps, type ReactNode, type Ref } from 'react';
|
|
2
|
+
import { type ActionsMenuItem } from '../ui/actions-menu';
|
|
2
3
|
import { ChatInput } from './chat-input';
|
|
3
4
|
import type { ChatInputRef, ModelDisplayProps } from './types/component.types';
|
|
4
5
|
import type { ChatContextItem, ChatContextPickerConfig } from './types/context-item.types';
|
|
@@ -27,8 +28,17 @@ export interface ChatComposerProps {
|
|
|
27
28
|
attachmentsCount?: number;
|
|
28
29
|
onAddFiles?: (files: FileList | File[]) => void;
|
|
29
30
|
attachmentsDisabled?: boolean;
|
|
30
|
-
/** Model + usage row props, forwarded to `<ModelDisplay>`.
|
|
31
|
-
|
|
31
|
+
/** Model + usage row props, forwarded to `<ModelDisplay>`. Omitted → no
|
|
32
|
+
* model row (e.g. a composer docked on a home page, before any chat). */
|
|
33
|
+
model?: ModelDisplayProps;
|
|
34
|
+
/** The composer's own ⋯ menu, at the end of the input row before Send
|
|
35
|
+
* (e.g. "Compact Chat Memory"). Empty or omitted → no menu. Not shown on an
|
|
36
|
+
* archived chat (there is no input), inert while `lock` is set. */
|
|
37
|
+
menuItems?: ActionsMenuItem[];
|
|
38
|
+
/** Controls at the end of the row under the input, after the model and its
|
|
39
|
+
* usage (e.g. "Compact chat memory"). Draws that row on its own if there is
|
|
40
|
+
* no model. */
|
|
41
|
+
footerActions?: ReactNode;
|
|
32
42
|
/** Host config (entity types + search resolver). Picker is inert when unset. */
|
|
33
43
|
contextPicker?: ChatContextPickerConfig;
|
|
34
44
|
/** Currently-selected context items (chips + ✓ state). */
|
|
@@ -42,6 +52,9 @@ export interface ChatComposerProps {
|
|
|
42
52
|
* as a summary strip at the top of the composer card, above the assigned-item
|
|
43
53
|
* chips. Empty/omitted → no strip. */
|
|
44
54
|
contextMemoryItems?: ChatContextItem[];
|
|
55
|
+
/** A host control at the start of the context memory strip (e.g. "Continue
|
|
56
|
+
* <chat>"); the strip shows for it alone when nothing is remembered. */
|
|
57
|
+
contextLeading?: ReactNode;
|
|
45
58
|
/** Drop one entity from the context memory (dropdown row ×). */
|
|
46
59
|
onRemoveContextMemoryItem?: (item: ChatContextItem) => void;
|
|
47
60
|
/** The host is reading a record it will add to the context memory: the empty strip draws its loading form. */
|
|
@@ -62,6 +75,13 @@ export interface ChatComposerProps {
|
|
|
62
75
|
/** Non-destructive ghost preview shown in the empty composer (e.g. a hovered
|
|
63
76
|
* quick-action's full prompt). Forwarded to `ChatInput.previewText`. */
|
|
64
77
|
previewText?: string;
|
|
78
|
+
/** Clear the bottom safe-area inset (the iOS home bar) under the composer.
|
|
79
|
+
* Default `true`. `false` for a composer docked inside a layout that already
|
|
80
|
+
* owns that inset (a native shell's root), where it would be doubled. */
|
|
81
|
+
safeAreaBottom?: boolean;
|
|
82
|
+
/** Mingo's AI edge light (`MingoEdgeLight`, the header launcher's) travelling
|
|
83
|
+
* around the input card. Not on an archived chat. Default `false`. */
|
|
84
|
+
edgeLight?: boolean;
|
|
65
85
|
}
|
|
66
86
|
/**
|
|
67
87
|
* Chat panel footer (Figma node 7363:205952): the message composer (live
|
|
@@ -72,5 +92,5 @@ export interface ChatComposerProps {
|
|
|
72
92
|
* input, the two-level picker popover anchors above the input, and the bottom
|
|
73
93
|
* controls row swaps the bare attachment `+` for the `+` plus-menu.
|
|
74
94
|
*/
|
|
75
|
-
export declare function ChatComposer({ archived, lock, inputRef, onSend, onStop, sending, placeholder, autoFocus, slashCommands, showAttachmentButton, attachmentsCount, onAddFiles, attachmentsDisabled, model, contextPicker, selectedContextItems, onToggleContextItem, onRemoveContextItem, contextMemoryItems, onRemoveContextMemoryItem, contextMemoryPending, contextPickerOpen, onOpenContextPicker, onCloseContextPicker, mentionQuery, onMentionQueryChange, onValueChange, previewText, }: ChatComposerProps): import("react").JSX.Element;
|
|
95
|
+
export declare function ChatComposer({ archived, lock, inputRef, onSend, onStop, sending, placeholder, autoFocus, slashCommands, showAttachmentButton, attachmentsCount, onAddFiles, attachmentsDisabled, model, contextPicker, selectedContextItems, onToggleContextItem, onRemoveContextItem, contextMemoryItems, contextLeading, onRemoveContextMemoryItem, contextMemoryPending, contextPickerOpen, onOpenContextPicker, onCloseContextPicker, mentionQuery, onMentionQueryChange, onValueChange, previewText, menuItems, footerActions, safeAreaBottom, edgeLight, }: ChatComposerProps): import("react").JSX.Element;
|
|
76
96
|
//# sourceMappingURL=chat-composer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-composer.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chat-composer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,
|
|
1
|
+
{"version":3,"file":"chat-composer.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chat-composer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAA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P,WAAW,EACX,SAAS,EACT,aAAa,EACb,oBAA4B,EAC5B,gBAAoB,EACpB,UAAU,EACV,mBAA2B,EAC3B,KAAK,EACL,aAAa,EACb,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACd,yBAAyB,EACzB,oBAAoB,EACpB,iBAAyB,EACzB,mBAAmB,EACnB,oBAAoB,EACpB,YAAmB,EACnB,oBAAoB,EACpB,aAAa,EACb,WAAW,EACX,SAAS,EACT,aAAa,EACb,cAAqB,EACrB,SAAiB,GAClB,EAAE,iBAAiB,+BA8LnB"}
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useCallback, useMemo } from "react";
|
|
4
4
|
import { cn } from "../../utils/cn.js";
|
|
5
|
-
import { BoxArchiveIcon } from "../icons-v2-generated/index.js";
|
|
5
|
+
import { BoxArchiveIcon, Ellipsis01Icon } from "../icons-v2-generated/index.js";
|
|
6
|
+
import { ActionsMenuDropdown } from "../ui/actions-menu.js";
|
|
6
7
|
import { ChatAttachmentAddButton } from "./chat-attachment-bar.js";
|
|
7
8
|
import { ChatFooter } from "./chat-container.js";
|
|
8
9
|
import { ChatContextMemoryBar } from "./chat-context-memory-bar.js";
|
|
9
10
|
import { ChatComposerPlusMenu, ChatContextChipStrip, ChatContextPicker } from "./chat-context-picker.js";
|
|
10
11
|
import { ChatInput } from "./chat-input.js";
|
|
12
|
+
import { MingoEdgeLight } from "./mingo-edge-light.js";
|
|
11
13
|
import { ModelDisplay } from "./model-display.js";
|
|
12
14
|
function ChatComposer({
|
|
13
15
|
archived = false,
|
|
@@ -29,6 +31,7 @@ function ChatComposer({
|
|
|
29
31
|
onToggleContextItem,
|
|
30
32
|
onRemoveContextItem,
|
|
31
33
|
contextMemoryItems,
|
|
34
|
+
contextLeading,
|
|
32
35
|
onRemoveContextMemoryItem,
|
|
33
36
|
contextMemoryPending,
|
|
34
37
|
contextPickerOpen = false,
|
|
@@ -37,7 +40,11 @@ function ChatComposer({
|
|
|
37
40
|
mentionQuery = null,
|
|
38
41
|
onMentionQueryChange,
|
|
39
42
|
onValueChange,
|
|
40
|
-
previewText
|
|
43
|
+
previewText,
|
|
44
|
+
menuItems,
|
|
45
|
+
footerActions,
|
|
46
|
+
safeAreaBottom = true,
|
|
47
|
+
edgeLight = false
|
|
41
48
|
}) {
|
|
42
49
|
const contextEnabled = !!contextPicker && !archived;
|
|
43
50
|
const locked = lock != null;
|
|
@@ -50,6 +57,32 @@ function ChatComposer({
|
|
|
50
57
|
return map;
|
|
51
58
|
}, [entityTypes]);
|
|
52
59
|
const resolveContextIcon = useCallback((item) => iconByType.get(item.type), [iconByType]);
|
|
60
|
+
const menu = menuItems && menuItems.length > 0 ? /* @__PURE__ */ jsx(
|
|
61
|
+
ActionsMenuDropdown,
|
|
62
|
+
{
|
|
63
|
+
triggerAriaLabel: "Composer actions",
|
|
64
|
+
side: "top",
|
|
65
|
+
align: "end",
|
|
66
|
+
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
67
|
+
groups: [{ items: menuItems }],
|
|
68
|
+
customTrigger: /* @__PURE__ */ jsx(
|
|
69
|
+
"button",
|
|
70
|
+
{
|
|
71
|
+
type: "button",
|
|
72
|
+
"aria-label": "Composer actions",
|
|
73
|
+
disabled: locked,
|
|
74
|
+
className: cn(
|
|
75
|
+
"flex h-6 shrink-0 items-center text-ods-text-secondary transition-colors duration-200",
|
|
76
|
+
"cursor-pointer hover:text-ods-text-primary focus-visible:text-ods-accent focus-visible:outline-none",
|
|
77
|
+
"disabled:cursor-not-allowed disabled:opacity-40 disabled:hover:text-ods-text-secondary"
|
|
78
|
+
),
|
|
79
|
+
children: /* @__PURE__ */ jsx(Ellipsis01Icon, { size: 20 })
|
|
80
|
+
}
|
|
81
|
+
)
|
|
82
|
+
}
|
|
83
|
+
) : void 0;
|
|
84
|
+
const showLegacyAttach = !contextEnabled && showAttachmentButton && !!onAddFiles;
|
|
85
|
+
const showFooterRow = showLegacyAttach || !!model || !!footerActions;
|
|
53
86
|
const inputNode = /* @__PURE__ */ jsx(
|
|
54
87
|
ChatInput,
|
|
55
88
|
{
|
|
@@ -69,6 +102,7 @@ function ChatComposer({
|
|
|
69
102
|
onMentionQueryChange: contextEnabled ? onMentionQueryChange : void 0,
|
|
70
103
|
onValueChange: contextEnabled ? onValueChange : void 0,
|
|
71
104
|
hideBorder: contextEnabled,
|
|
105
|
+
endIcon: menu,
|
|
72
106
|
startIcon: contextEnabled ? /* @__PURE__ */ jsx(
|
|
73
107
|
ChatComposerPlusMenu,
|
|
74
108
|
{
|
|
@@ -90,60 +124,67 @@ function ChatComposer({
|
|
|
90
124
|
) : void 0
|
|
91
125
|
}
|
|
92
126
|
);
|
|
127
|
+
const liveCard = contextEnabled ? (
|
|
128
|
+
// Unified card (Figma 1:6073 / 271:38656): the context-memory
|
|
129
|
+
// summary strip and the assigned-chip strip (both `bg-ods-bg`,
|
|
130
|
+
// `border-b`) stack flush above the input; the card owns the border
|
|
131
|
+
// / radius / focus ring. No `overflow-hidden` so the picker and the
|
|
132
|
+
// memory popover can float above the input (whichever strip comes
|
|
133
|
+
// first gets `rounded-t`).
|
|
134
|
+
// `has-[[data-editor]:focus]` (not `focus-within`) so the accent
|
|
135
|
+
// border reacts ONLY to the composer editor — not the picker's search
|
|
136
|
+
// input or item buttons, which also live inside this card. The editor
|
|
137
|
+
// is a `contentEditable` div (`data-editor`), not a `<textarea>`, so we
|
|
138
|
+
// target its data attribute rather than the element name.
|
|
139
|
+
/* @__PURE__ */ jsxs("div", { className: "rounded-md border border-ods-border bg-ods-card transition-colors has-[[data-editor]:focus]:border-ods-accent", children: [
|
|
140
|
+
/* @__PURE__ */ jsx(
|
|
141
|
+
ChatContextMemoryBar,
|
|
142
|
+
{
|
|
143
|
+
items: memory,
|
|
144
|
+
onRemove: onRemoveContextMemoryItem,
|
|
145
|
+
pending: contextMemoryPending,
|
|
146
|
+
resolveIcon: resolveContextIcon,
|
|
147
|
+
disabled: sending || locked,
|
|
148
|
+
leading: contextLeading,
|
|
149
|
+
className: "rounded-t-md"
|
|
150
|
+
}
|
|
151
|
+
),
|
|
152
|
+
selected.length > 0 && /* @__PURE__ */ jsx(
|
|
153
|
+
ChatContextChipStrip,
|
|
154
|
+
{
|
|
155
|
+
items: selected,
|
|
156
|
+
onRemove: onRemoveContextItem,
|
|
157
|
+
resolveIcon: resolveContextIcon,
|
|
158
|
+
disabled: sending || locked,
|
|
159
|
+
className: cn(
|
|
160
|
+
"border-b border-ods-border bg-ods-bg p-2",
|
|
161
|
+
// Only the TOP strip rounds into the card corner.
|
|
162
|
+
memory.length === 0 && !contextLeading && "rounded-t-md"
|
|
163
|
+
)
|
|
164
|
+
}
|
|
165
|
+
),
|
|
166
|
+
inputNode
|
|
167
|
+
] })
|
|
168
|
+
) : inputNode;
|
|
93
169
|
return /* @__PURE__ */ jsxs(
|
|
94
170
|
"div",
|
|
95
171
|
{
|
|
96
172
|
className: "flex flex-shrink-0 flex-col gap-[var(--spacing-system-xxs)] px-[var(--spacing-system-m)] pb-[var(--spacing-system-xxs)]",
|
|
97
|
-
style: {
|
|
98
|
-
paddingBottom: "max(var(--spacing-system-xxs), env(safe-area-inset-bottom))"
|
|
99
|
-
},
|
|
173
|
+
style: safeAreaBottom ? { paddingBottom: "max(var(--spacing-system-xxs), env(safe-area-inset-bottom))" } : void 0,
|
|
100
174
|
children: [
|
|
101
175
|
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(ChatFooter, { className: "!p-0", fullWidth: true, children: archived ? /* @__PURE__ */ jsxs("div", { className: "flex w-full items-center justify-center gap-[var(--spacing-system-xs)] rounded-md border border-ods-border bg-ods-card p-[var(--spacing-system-sf)]", children: [
|
|
102
176
|
/* @__PURE__ */ jsx(BoxArchiveIcon, { size: 24, className: "shrink-0 text-ods-text-secondary" }),
|
|
103
177
|
/* @__PURE__ */ jsx("p", { className: "truncate text-ods-text-secondary text-h4", children: "Unarchive the chat to continue" })
|
|
104
|
-
] }) :
|
|
105
|
-
//
|
|
106
|
-
//
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
// first gets `rounded-t`).
|
|
111
|
-
// `has-[[data-editor]:focus]` (not `focus-within`) so the accent
|
|
112
|
-
// border reacts ONLY to the composer editor — not the picker's search
|
|
113
|
-
// input or item buttons, which also live inside this card. The editor
|
|
114
|
-
// is a `contentEditable` div (`data-editor`), not a `<textarea>`, so we
|
|
115
|
-
// target its data attribute rather than the element name.
|
|
116
|
-
/* @__PURE__ */ jsxs("div", { className: "rounded-md border border-ods-border bg-ods-card transition-colors has-[[data-editor]:focus]:border-ods-accent", children: [
|
|
117
|
-
/* @__PURE__ */ jsx(
|
|
118
|
-
ChatContextMemoryBar,
|
|
119
|
-
{
|
|
120
|
-
items: memory,
|
|
121
|
-
onRemove: onRemoveContextMemoryItem,
|
|
122
|
-
pending: contextMemoryPending,
|
|
123
|
-
resolveIcon: resolveContextIcon,
|
|
124
|
-
disabled: sending || locked,
|
|
125
|
-
className: "rounded-t-md"
|
|
126
|
-
}
|
|
127
|
-
),
|
|
128
|
-
selected.length > 0 && /* @__PURE__ */ jsx(
|
|
129
|
-
ChatContextChipStrip,
|
|
130
|
-
{
|
|
131
|
-
items: selected,
|
|
132
|
-
onRemove: onRemoveContextItem,
|
|
133
|
-
resolveIcon: resolveContextIcon,
|
|
134
|
-
disabled: sending || locked,
|
|
135
|
-
className: cn(
|
|
136
|
-
"border-b border-ods-border bg-ods-bg p-2",
|
|
137
|
-
// Only the TOP strip rounds into the card corner.
|
|
138
|
-
memory.length === 0 && "rounded-t-md"
|
|
139
|
-
)
|
|
140
|
-
}
|
|
141
|
-
),
|
|
142
|
-
inputNode
|
|
178
|
+
] }) : edgeLight ? (
|
|
179
|
+
// On the card's border box: a wrapper the card fills, so the ring
|
|
180
|
+
// lies over the card's border.
|
|
181
|
+
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
182
|
+
liveCard,
|
|
183
|
+
/* @__PURE__ */ jsx(MingoEdgeLight, { className: "rounded-md" })
|
|
143
184
|
] })
|
|
144
|
-
) :
|
|
145
|
-
/* @__PURE__ */ jsxs("div", { className: "flex w-full items-center gap-2", children: [
|
|
146
|
-
|
|
185
|
+
) : liveCard }) }),
|
|
186
|
+
showFooterRow && /* @__PURE__ */ jsxs("div", { className: "flex w-full items-center gap-2", children: [
|
|
187
|
+
showLegacyAttach && onAddFiles && /* @__PURE__ */ jsx(
|
|
147
188
|
ChatAttachmentAddButton,
|
|
148
189
|
{
|
|
149
190
|
attachmentsEnabled: true,
|
|
@@ -152,7 +193,8 @@ function ChatComposer({
|
|
|
152
193
|
disabled: attachmentsDisabled || locked
|
|
153
194
|
}
|
|
154
195
|
),
|
|
155
|
-
/* @__PURE__ */ jsx("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ jsx(ModelDisplay, { ...model }) })
|
|
196
|
+
/* @__PURE__ */ jsx("div", { className: "min-w-0 flex-1", children: model && /* @__PURE__ */ jsx(ModelDisplay, { ...model }) }),
|
|
197
|
+
footerActions && /* @__PURE__ */ jsx("div", { className: "flex shrink-0 items-center", children: footerActions })
|
|
156
198
|
] })
|
|
157
199
|
]
|
|
158
200
|
}
|
|
@@ -31,6 +31,9 @@ export interface ChatContextMemoryBarProps {
|
|
|
31
31
|
resolveIcon?: (item: ChatContextItem) => ReactNode;
|
|
32
32
|
/** External disable (e.g. while a message is streaming). */
|
|
33
33
|
disabled?: boolean;
|
|
34
|
+
/** A host control at the strip's start (e.g. "Continue <chat>" over a page).
|
|
35
|
+
* With it the strip shows even with nothing remembered — the control alone. */
|
|
36
|
+
leading?: ReactNode;
|
|
34
37
|
/**
|
|
35
38
|
* The host is reading a record it will remember (a record page whose record has not answered yet). With nothing
|
|
36
39
|
* remembered so far the strip draws its loading form at its own height, so the composer does not grow when the
|
|
@@ -39,5 +42,5 @@ export interface ChatContextMemoryBarProps {
|
|
|
39
42
|
pending?: boolean;
|
|
40
43
|
className?: string;
|
|
41
44
|
}
|
|
42
|
-
export declare function ChatContextMemoryBar({ items, onRemove, resolveIcon, disabled, pending, className, }: ChatContextMemoryBarProps): import("react").JSX.Element | null;
|
|
45
|
+
export declare function ChatContextMemoryBar({ items, onRemove, resolveIcon, disabled, leading, pending, className, }: ChatContextMemoryBarProps): import("react").JSX.Element | null;
|
|
43
46
|
//# sourceMappingURL=chat-context-memory-bar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-context-memory-bar.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chat-context-memory-bar.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAQlE,MAAM,WAAW,yBAAyB;IACxC,+EAA+E;IAC/E,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB;6BACyB;IACzB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IAC3C;wDACoD;IACpD,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,SAAS,CAAC;IACnD,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,EACL,QAAQ,EACR,WAAW,EACX,QAAgB,EAChB,OAAe,EACf,SAAS,GACV,EAAE,yBAAyB,
|
|
1
|
+
{"version":3,"file":"chat-context-memory-bar.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chat-context-memory-bar.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAQlE,MAAM,WAAW,yBAAyB;IACxC,+EAA+E;IAC/E,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB;6BACyB;IACzB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IAC3C;wDACoD;IACpD,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,SAAS,CAAC;IACnD,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;oFACgF;IAChF,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,EACL,QAAQ,EACR,WAAW,EACX,QAAgB,EAChB,OAAO,EACP,OAAe,EACf,SAAS,GACV,EAAE,yBAAyB,sCA2H3B"}
|
|
@@ -14,6 +14,7 @@ function ChatContextMemoryBar({
|
|
|
14
14
|
onRemove,
|
|
15
15
|
resolveIcon,
|
|
16
16
|
disabled = false,
|
|
17
|
+
leading,
|
|
17
18
|
pending = false,
|
|
18
19
|
className
|
|
19
20
|
}) {
|
|
@@ -33,8 +34,9 @@ function ChatContextMemoryBar({
|
|
|
33
34
|
document.removeEventListener("touchstart", onOutside, true);
|
|
34
35
|
};
|
|
35
36
|
}, [open]);
|
|
36
|
-
|
|
37
|
-
if (
|
|
37
|
+
const hasItems = items.length > 0;
|
|
38
|
+
if (!hasItems && !leading && !pending) return null;
|
|
39
|
+
if (!hasItems && !leading) {
|
|
38
40
|
return /* @__PURE__ */ jsxs("div", { "aria-hidden": true, className: cn(MEMORY_STRIP_CLASS, className), children: [
|
|
39
41
|
/* @__PURE__ */ jsx("p", { className: "min-w-0 flex-1 truncate text-ods-text-secondary text-h6", children: /* @__PURE__ */ jsx(TextLineSkeleton, { type: "inherit", as: "span", className: "w-48 max-w-full" }) }),
|
|
40
42
|
/* @__PURE__ */ jsx(Button, { variant: "bare", size: "icon-sm", type: "button", tabIndex: -1, className: "invisible shrink-0", children: /* @__PURE__ */ jsx(Ellipsis01Icon, { size: 16 }) })
|
|
@@ -55,13 +57,14 @@ function ChatContextMemoryBar({
|
|
|
55
57
|
}
|
|
56
58
|
},
|
|
57
59
|
children: [
|
|
58
|
-
|
|
60
|
+
leading,
|
|
61
|
+
hasItems ? /* @__PURE__ */ jsxs("p", { className: "min-w-0 flex-1 truncate text-ods-text-secondary text-h6", children: [
|
|
59
62
|
items.length,
|
|
60
63
|
" recently viewed ",
|
|
61
64
|
items.length === 1 ? "item" : "items",
|
|
62
65
|
" in context"
|
|
63
|
-
] }),
|
|
64
|
-
/* @__PURE__ */ jsx(
|
|
66
|
+
] }) : null,
|
|
67
|
+
hasItems && /* @__PURE__ */ jsx(
|
|
65
68
|
Button,
|
|
66
69
|
{
|
|
67
70
|
variant: "bare",
|
|
@@ -62,11 +62,18 @@ export interface ChatContextChipStripProps {
|
|
|
62
62
|
renderItem?: (item: ChatContextItem) => ReactNode;
|
|
63
63
|
disabled?: boolean;
|
|
64
64
|
className?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Makes a chip's icon and label a button — e.g. the page the composer sits on,
|
|
67
|
+
* whose click asks Mingo about it. The × (`onRemove`) stays its own button.
|
|
68
|
+
*/
|
|
69
|
+
onSelect?: (item: ChatContextItem) => void;
|
|
70
|
+
/** What a click on a chip does: its tooltip and accessible name, before the label (with `onSelect`). */
|
|
71
|
+
selectHint?: string;
|
|
65
72
|
}
|
|
66
73
|
/**
|
|
67
74
|
* Horizontal strip of selected-context chips. Returns `null` when empty — no
|
|
68
75
|
* permanent footprint. Used both in the composer (removable) and on the sent
|
|
69
76
|
* user bubble (read-only, no `onRemove`).
|
|
70
77
|
*/
|
|
71
|
-
export declare function ChatContextChipStrip({ items, onRemove, resolveIcon, renderItem, disabled, className, }: ChatContextChipStripProps): import("react").JSX.Element | null;
|
|
78
|
+
export declare function ChatContextChipStrip({ items, onRemove, resolveIcon, renderItem, disabled, className, onSelect, selectHint, }: ChatContextChipStripProps): import("react").JSX.Element | null;
|
|
72
79
|
//# sourceMappingURL=chat-context-picker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-context-picker.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chat-context-picker.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAkBvC,OAAO,KAAK,EAAyB,eAAe,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAElH,8DAA8D;AAC9D,eAAO,MAAM,8BAA8B,KAAK,CAAC;AAcjD,MAAM,WAAW,yBAAyB;IACxC,oDAAoD;IACpD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,0EAA0E;IAC1E,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,kDAAkD;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;+EAC2E;IAC3E,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,IAAY,EACZ,QAAgB,EAChB,QAAQ,GACT,EAAE,yBAAyB,+BAuB3B;AAMD,MAAM,WAAW,sBAAsB;IACrC,8CAA8C;IAC9C,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,uBAAuB,CAAC;IAChC,iEAAiE;IACjE,aAAa,EAAE,eAAe,EAAE,CAAC;IACjC,8CAA8C;IAC9C,YAAY,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IAC9C,2DAA2D;IAC3D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAQD,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,MAAM,EACN,aAAa,EACb,YAAY,EACZ,OAAO,EACP,YAAY,EACZ,SAAS,GACV,EAAE,sBAAsB,sCAmQxB;AA8BD,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IAC3C,+DAA+D;IAC/D,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,SAAS,CAAC;IACnD;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,SAAS,CAAC;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"chat-context-picker.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chat-context-picker.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAkBvC,OAAO,KAAK,EAAyB,eAAe,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAElH,8DAA8D;AAC9D,eAAO,MAAM,8BAA8B,KAAK,CAAC;AAcjD,MAAM,WAAW,yBAAyB;IACxC,oDAAoD;IACpD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,0EAA0E;IAC1E,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,kDAAkD;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;+EAC2E;IAC3E,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,IAAY,EACZ,QAAgB,EAChB,QAAQ,GACT,EAAE,yBAAyB,+BAuB3B;AAMD,MAAM,WAAW,sBAAsB;IACrC,8CAA8C;IA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veIcon,
|
|
273
273
|
renderItem,
|
|
274
274
|
disabled = false,
|
|
275
|
-
className
|
|
275
|
+
className,
|
|
276
|
+
onSelect,
|
|
277
|
+
selectHint
|
|
276
278
|
}) {
|
|
277
279
|
if (items.length === 0) return null;
|
|
280
|
+
const chipFace = (item) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
281
|
+
resolveIcon && /* @__PURE__ */ jsx("span", { className: "flex size-4 shrink-0 items-center justify-center text-ods-text-secondary [&_svg]:size-4", children: resolveIcon(item) }),
|
|
282
|
+
/* @__PURE__ */ jsx(
|
|
283
|
+
"span",
|
|
284
|
+
{
|
|
285
|
+
className: "max-w-[220px] truncate font-mono font-medium uppercase tracking-[-0.28px] text-h5",
|
|
286
|
+
title: onSelect ? void 0 : item.label,
|
|
287
|
+
children: item.label
|
|
288
|
+
}
|
|
289
|
+
)
|
|
290
|
+
] });
|
|
278
291
|
return (
|
|
279
292
|
// `tag` pills (Figma 1:6073): 32px tall, card surface, bordered, mono-
|
|
280
293
|
// uppercase label, 16px lead icon + xmark-circle remove. Wraps to new rows.
|
|
281
294
|
/* @__PURE__ */ jsx("div", { className: cn("flex flex-wrap content-center items-center gap-2", className), children: items.map((item) => {
|
|
282
295
|
const hostNode = renderItem?.(item);
|
|
283
296
|
if (hostNode != null) return /* @__PURE__ */ jsx(Fragment2, { children: hostNode }, itemKey(item));
|
|
297
|
+
const selectName = selectHint ? `${selectHint}: ${item.label}` : item.label;
|
|
284
298
|
return /* @__PURE__ */ jsxs(
|
|
285
299
|
"div",
|
|
286
300
|
{
|
|
287
|
-
className:
|
|
301
|
+
className: cn(
|
|
302
|
+
"flex h-8 shrink-0 items-center gap-2 rounded-md border border-ods-border bg-ods-card px-2 text-ods-text-primary",
|
|
303
|
+
onSelect && "transition-colors has-[[data-chip-select]:hover]:border-ods-border-hover"
|
|
304
|
+
),
|
|
288
305
|
role: "group",
|
|
289
306
|
"aria-label": `Context ${item.label}`,
|
|
290
307
|
children: [
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
"span",
|
|
308
|
+
onSelect ? /* @__PURE__ */ jsx(
|
|
309
|
+
Button,
|
|
294
310
|
{
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
311
|
+
variant: "bare",
|
|
312
|
+
size: "wrap",
|
|
313
|
+
type: "button",
|
|
314
|
+
"data-chip-select": "",
|
|
315
|
+
onClick: () => onSelect(item),
|
|
316
|
+
disabled,
|
|
317
|
+
title: selectName,
|
|
318
|
+
"aria-label": selectName,
|
|
319
|
+
className: "min-w-0 gap-2 text-ods-text-primary hover:text-ods-accent focus-visible:text-ods-accent [&_svg]:size-4",
|
|
320
|
+
children: chipFace(item)
|
|
298
321
|
}
|
|
299
|
-
),
|
|
322
|
+
) : chipFace(item),
|
|
300
323
|
onRemove && /* @__PURE__ */ jsx(
|
|
301
324
|
Button,
|
|
302
325
|
{
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface ChatHeaderRenameFieldProps {
|
|
2
|
+
/** The chat's current title; selected on mount, so typing replaces it. */
|
|
3
|
+
initialValue: string;
|
|
4
|
+
/** Enter, or the field losing focus. Fired with the raw value: the host
|
|
5
|
+
* decides what an empty or unchanged title means. */
|
|
6
|
+
onSubmit: (value: string) => void;
|
|
7
|
+
/** Escape. Nothing is saved. */
|
|
8
|
+
onCancel: () => void;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Inline rename for the chat header's title: the title cell becomes this field,
|
|
13
|
+
* its text selected. Enter saves, Escape cancels, blur saves. Settles once —
|
|
14
|
+
* the header unmounts it on either outcome, and a blur from that unmount must
|
|
15
|
+
* not save a second time (or save after a cancel).
|
|
16
|
+
*/
|
|
17
|
+
export declare function ChatHeaderRenameField({ initialValue, onSubmit, onCancel, className }: ChatHeaderRenameFieldProps): import("react").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=chat-header-rename-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-header-rename-field.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chat-header-rename-field.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,0BAA0B;IACzC,0EAA0E;IAC1E,YAAY,EAAE,MAAM,CAAC;IACrB;0DACsD;IACtD,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,gCAAgC;IAChC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,0BAA0B,+BA6ChH"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useEffect, useRef, useState } from "react";
|
|
4
|
+
import { cn } from "../../utils/cn.js";
|
|
5
|
+
function ChatHeaderRenameField({ initialValue, onSubmit, onCancel, className }) {
|
|
6
|
+
const [value, setValue] = useState(initialValue);
|
|
7
|
+
const inputRef = useRef(null);
|
|
8
|
+
const settledRef = useRef(false);
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
const el = inputRef.current;
|
|
11
|
+
if (!el) return;
|
|
12
|
+
el.focus({ preventScroll: true });
|
|
13
|
+
el.select();
|
|
14
|
+
}, []);
|
|
15
|
+
const settle = (save) => {
|
|
16
|
+
if (settledRef.current) return;
|
|
17
|
+
settledRef.current = true;
|
|
18
|
+
if (save) onSubmit(value);
|
|
19
|
+
else onCancel();
|
|
20
|
+
};
|
|
21
|
+
return /* @__PURE__ */ jsx(
|
|
22
|
+
"input",
|
|
23
|
+
{
|
|
24
|
+
ref: inputRef,
|
|
25
|
+
value,
|
|
26
|
+
"aria-label": "Chat name",
|
|
27
|
+
onChange: (e) => setValue(e.target.value),
|
|
28
|
+
onKeyDown: (e) => {
|
|
29
|
+
if (e.nativeEvent.isComposing) return;
|
|
30
|
+
if (e.key === "Enter") {
|
|
31
|
+
e.preventDefault();
|
|
32
|
+
settle(true);
|
|
33
|
+
} else if (e.key === "Escape") {
|
|
34
|
+
e.preventDefault();
|
|
35
|
+
e.stopPropagation();
|
|
36
|
+
settle(false);
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
onBlur: () => settle(true),
|
|
40
|
+
className: cn(
|
|
41
|
+
"h-8 w-full min-w-0 rounded-md border border-ods-accent bg-ods-bg px-[var(--spacing-system-xs)] text-ods-text-primary outline-none text-h3",
|
|
42
|
+
className
|
|
43
|
+
)
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
ChatHeaderRenameField
|
|
49
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-input.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chat-input.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAoC,MAAM,SAAS,CAAC;AA0I9F,QAAA,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"chat-input.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chat-input.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAoC,MAAM,SAAS,CAAC;AA0I9F,QAAA,MAAM,SAAS,yGAomBb,CAAC;AAIH,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -132,6 +132,7 @@ const ChatInput = forwardRef((allProps, ref) => {
|
|
|
132
132
|
onMentionQueryChange,
|
|
133
133
|
onValueChange,
|
|
134
134
|
startIcon,
|
|
135
|
+
endIcon,
|
|
135
136
|
hideBorder,
|
|
136
137
|
previewText
|
|
137
138
|
// Remaining textarea-only attrs are intentionally dropped — the editor is a
|
|
@@ -167,7 +168,10 @@ const ChatInput = forwardRef((allProps, ref) => {
|
|
|
167
168
|
useEffect(() => {
|
|
168
169
|
setPreviewDismissed(false);
|
|
169
170
|
}, [previewText]);
|
|
171
|
+
const previewValueRef = useRef(value);
|
|
170
172
|
useEffect(() => {
|
|
173
|
+
if (previewValueRef.current === value) return;
|
|
174
|
+
previewValueRef.current = value;
|
|
171
175
|
if (previewTextRef.current) setPreviewDismissed(true);
|
|
172
176
|
}, [value]);
|
|
173
177
|
const applyValue = useCallback((next, caret = "end") => {
|
|
@@ -576,6 +580,7 @@ const ChatInput = forwardRef((allProps, ref) => {
|
|
|
576
580
|
}
|
|
577
581
|
)
|
|
578
582
|
] }),
|
|
583
|
+
endIcon && /* @__PURE__ */ jsx("span", { className: "flex h-6 shrink-0 items-center", children: endIcon }),
|
|
579
584
|
/* @__PURE__ */ jsx(
|
|
580
585
|
Button,
|
|
581
586
|
{
|