@opengeni/react 6.37.3 → 6.37.4-canary.45240525217001
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/app/app-state.js +5 -5
- package/dist/app/components/Composer.css +1 -1
- package/dist/app/components/Composer.css.map +1 -1
- package/dist/app/components/Composer.js +11 -10
- package/dist/app/components/add-card-dialog.js +2 -1
- package/dist/app/components/add-card-dialog.js.map +1 -1
- package/dist/app/components/add-card.js +2 -2
- package/dist/app/components/agents/agent-can-use.js +15 -14
- package/dist/app/components/agents/agent-form-page.js +36 -35
- package/dist/app/components/agents/agent-form-page.js.map +1 -1
- package/dist/app/components/agents/agent-page.js +32 -31
- package/dist/app/components/agents/agent-setup-sections.js +23 -22
- package/dist/app/components/agents/agent-skills.js +4 -3
- package/dist/app/components/agents/agent-trigger-dialog.js +3 -2
- package/dist/app/components/agents/agents-page.js +18 -17
- package/dist/app/components/agents/agents-page.js.map +1 -1
- package/dist/app/components/agents/composer-agent-chip.js +13 -12
- package/dist/app/components/agents/session-agent-chip.js +13 -12
- package/dist/app/components/artifacts/app-package.js +4 -3
- package/dist/app/components/artifacts/artifact-library.js +8 -7
- package/dist/app/components/artifacts/artifact-viewer.js +14 -13
- package/dist/app/components/artifacts/artifact-viewer.js.map +1 -1
- package/dist/app/components/artifacts/chat-interactive-block.js +6 -5
- package/dist/app/components/artifacts/chat-interactive-block.js.map +1 -1
- package/dist/app/components/artifacts/copy-artifact-link.js +1 -1
- package/dist/app/components/artifacts/file-reach-dialog.js +3 -2
- package/dist/app/components/artifacts/inline-chat-image.js +12 -11
- package/dist/app/components/artifacts/ready-made-apps.js +5 -4
- package/dist/app/components/artifacts/retained-file-preview.js +14 -13
- package/dist/app/components/artifacts/site-actions.js +4 -4
- package/dist/app/components/artifacts/site-audience.js +4 -3
- package/dist/app/components/artifacts/site-conversations.js +2 -2
- package/dist/app/components/artifacts/site-data.js +8 -7
- package/dist/app/components/artifacts/site-publishing-page.js +25 -24
- package/dist/app/components/artifacts/site-publishing.js +16 -15
- package/dist/app/components/artifacts/site-settings.js +24 -23
- package/dist/app/components/artifacts/site-version-menu.js +2 -2
- package/dist/app/components/capabilities/capability-detail-sheet.js +7 -6
- package/dist/app/components/capabilities/capability-logo-source.js +11 -10
- package/dist/app/components/capabilities/connection-ownership-selector.js +4 -3
- package/dist/app/components/capabilities/detail-dialog.js +3 -2
- package/dist/app/components/capabilities/native-connect-setup.js +13 -12
- package/dist/app/components/capabilities/perform-capability-action.js +2 -2
- package/dist/app/components/capabilities/prepared-mcp-setup-card.js +11 -10
- package/dist/app/components/capabilities/session-capability-card.css +1 -1
- package/dist/app/components/capabilities/session-capability-card.css.map +1 -1
- package/dist/app/components/capabilities/session-capability-card.js +41 -40
- package/dist/app/components/capabilities/session-capability-card.js.map +1 -1
- package/dist/app/components/capabilities/session-chrome-card.css +1 -1
- package/dist/app/components/capabilities/session-chrome-card.css.map +1 -1
- package/dist/app/components/capabilities/session-chrome-card.js +12 -11
- package/dist/app/components/capabilities/session-connect-inputs-card.js +12 -11
- package/dist/app/components/capabilities/session-custom-mcp-card.js +13 -12
- package/dist/app/components/capabilities/session-github-card.js +12 -11
- package/dist/app/components/capabilities/session-machine-card.css +1 -1
- package/dist/app/components/capabilities/session-machine-card.css.map +1 -1
- package/dist/app/components/capabilities/session-machine-card.js +11 -10
- package/dist/app/components/capabilities/session-personal-github-card.js +12 -11
- package/dist/app/components/capabilities/session-plugin-card.js +8 -7
- package/dist/app/components/capabilities/use-connection-accounts.js +1 -1
- package/dist/app/components/command-menu/chat-status.js +1 -1
- package/dist/app/components/command-menu/chat-switcher.js +15 -14
- package/dist/app/components/command-menu/chat-switcher.js.map +1 -1
- package/dist/app/components/command-menu/command-menu.js +238 -236
- package/dist/app/components/command-menu/command-menu.js.map +1 -1
- package/dist/app/components/command-menu/shortcut-sheet.js +6 -5
- package/dist/app/components/command-menu/shortcut-sheet.js.map +1 -1
- package/dist/app/components/composer-mobile-plus-panel.js +4 -3
- package/dist/app/components/composer-mobile-plus-panel.js.map +1 -1
- package/dist/app/components/composer-mobile-plus.js +3 -2
- package/dist/app/components/credit-required-gate.js +3 -3
- package/dist/app/components/credit-required-prompt.js +16 -15
- package/dist/app/components/credit-required-prompt.js.map +1 -1
- package/dist/app/components/credits/checkout-credits-celebration.js +3 -2
- package/dist/app/components/credits/checkout-return.js +3 -2
- package/dist/app/components/credits/checkout-return.js.map +1 -1
- package/dist/app/components/credits/credit-refusal-notice.js +2 -2
- package/dist/app/components/desktop/app-shots.css +1 -1
- package/dist/app/components/desktop/app-shots.css.map +1 -1
- package/dist/app/components/desktop/app-shots.js +5 -4
- package/dist/app/components/desktop/this-computer.css +1 -1
- package/dist/app/components/desktop/this-computer.css.map +1 -1
- package/dist/app/components/desktop/this-computer.js +3 -2
- package/dist/app/components/feedback.js +3 -2
- package/dist/app/components/follow-up-repository-menu-body.js +2 -2
- package/dist/app/components/follow-up-repository-picker.js +1 -1
- package/dist/app/components/github-app-connect-launcher.js +2 -2
- package/dist/app/components/machines/connect-machine-dialog.css +1 -1
- package/dist/app/components/machines/connect-machine-dialog.css.map +1 -1
- package/dist/app/components/machines/connect-machine-dialog.js +8 -7
- package/dist/app/components/markdown.js +6 -5
- package/dist/app/components/models/models-ui.js +5 -4
- package/dist/app/components/my-things.js +5 -4
- package/dist/app/components/my-things.js.map +1 -1
- package/dist/app/components/own-where-it-works.js +4 -3
- package/dist/app/components/pickers.js +2 -2
- package/dist/app/components/rail/channel-create-dialog.js +3 -2
- package/dist/app/components/rail/project-glyph.js +13 -12
- package/dist/app/components/rail/project-profile.js +17 -16
- package/dist/app/components/rail/rail-context.js +1 -1
- package/dist/app/components/rail/rail-sections.js +38 -37
- package/dist/app/components/rail/session-header.js +26 -25
- package/dist/app/components/rail/session-list.js +35 -34
- package/dist/app/components/rail/session-row-hover-details.js +4 -4
- package/dist/app/components/rail/session-shell.js +47 -46
- package/dist/app/components/rail/site-session-group-heading.js +6 -6
- package/dist/app/components/repository-picker.js +2 -2
- package/dist/app/components/session/agent-configuration-panel.js +15 -14
- package/dist/app/components/session/agent-configuration-panel.js.map +1 -1
- package/dist/app/components/session/artifact-session-page.js +2 -2
- package/dist/app/components/session/banners.js +8 -7
- package/dist/app/components/session/chat-avatar.js +13 -12
- package/dist/app/components/session/console-new-conversation.css +1 -1
- package/dist/app/components/session/console-new-conversation.css.map +1 -1
- package/dist/app/components/session/console-new-conversation.js +24 -23
- package/dist/app/components/session/descendant-requests.js +18 -17
- package/dist/app/components/session/descendant-requests.js.map +1 -1
- package/dist/app/components/session/editable-artifacts-workspace.js +11 -10
- package/dist/app/components/session/editable-artifacts-workspace.js.map +1 -1
- package/dist/app/components/session/failed-session-banner.js +20 -19
- package/dist/app/components/session/failed-session-banner.js.map +1 -1
- package/dist/app/components/session/human-input.js +15 -14
- package/dist/app/components/session/inspector.js +24 -23
- package/dist/app/components/session/inspector.js.map +1 -1
- package/dist/app/components/session/message-actions.js +3 -2
- package/dist/app/components/session/message-actions.js.map +1 -1
- package/dist/app/components/session/new-session-settings-menu.css +1 -1
- package/dist/app/components/session/new-session-settings-menu.css.map +1 -1
- package/dist/app/components/session/new-session-settings-menu.js +5 -4
- package/dist/app/components/session/new-session-setup-strip.js +14 -13
- package/dist/app/components/session/pull-request-panel.js +7 -6
- package/dist/app/components/session/sandbox-recovery-actions.js +4 -3
- package/dist/app/components/session/sandbox-switcher.js +1 -1
- package/dist/app/components/session/sandbox-workspace.js +23 -22
- package/dist/app/components/session/search-markdown-highlight.js +7 -6
- package/dist/app/components/session/search-results-view.js +8 -7
- package/dist/app/components/session/session-admin-access.js +3 -2
- package/dist/app/components/session/session-avatar-picker.js +13 -12
- package/dist/app/components/session/session-avatar.js +12 -11
- package/dist/app/components/session/session-profile-dialog.js +15 -14
- package/dist/app/components/session/session-profile-editor.js +16 -15
- package/dist/app/components/session/session-search-dialog.js +9 -8
- package/dist/app/components/session/session-search-dialog.js.map +1 -1
- package/dist/app/components/session/session-tenancy-control.js +11 -10
- package/dist/app/components/session/session-tenancy-control.js.map +1 -1
- package/dist/app/components/session/share-chat-dialog.js +3 -2
- package/dist/app/components/toaster.js +1 -1
- package/dist/app/components/ui/destructive-confirm.js +5 -4
- package/dist/app/components/window-bar.js +5 -5
- package/dist/app/components/workspace-composer-plus.js +17 -16
- package/dist/app/embed/session-app.css +1 -1
- package/dist/app/embed/session-app.css.map +1 -1
- package/dist/app/embed/session-app.js +140 -139
- package/dist/app/lib/actions/actions-provider.js +4 -4
- package/dist/app/lib/app-connect-card.js +8 -7
- package/dist/app/lib/app-shared-key-dialog.js +3 -2
- package/dist/app/lib/app-surfaces.js +1 -1
- package/dist/app/lib/app-sync-opt-in.js +4 -3
- package/dist/app/lib/composer-connectors.js +12 -11
- package/dist/app/lib/console-site.js +6 -5
- package/dist/app/lib/events.js +7 -6
- package/dist/app/lib/session-create.js +1 -1
- package/dist/app/lib/site-tool-consent-dialog.js +5 -4
- package/dist/app/lib/site-tool-consent-dialog.js.map +1 -1
- package/dist/app/lib/site-tool-consent.js +1 -1
- package/dist/app/lib/turn-failure-analytics.js +3 -3
- package/dist/app/lib/use-duplicate-site.js +2 -2
- package/dist/app/lib/use-follow-up-repositories.js +4 -3
- package/dist/app/lib/use-workspace-model-catalog.js +1 -1
- package/dist/app/routes/app-page-view.js +7 -6
- package/dist/app/routes/app-page-view.js.map +1 -1
- package/dist/app/routes/app-page.js +1 -1
- package/dist/app/routes/artifacts.js +47 -46
- package/dist/app/routes/artifacts.js.map +1 -1
- package/dist/app/routes/retained-artifact.js +27 -26
- package/dist/app/routes/retained-artifact.js.map +1 -1
- package/dist/app/routes/session-unavailable.js +4 -4
- package/dist/app/routes/session.css +1 -1
- package/dist/app/routes/session.css.map +1 -1
- package/dist/app/routes/session.js +75 -74
- package/dist/app/routes/sessions-index-hydration.js +1 -1
- package/dist/app/routes/sessions-index.css +1 -1
- package/dist/app/routes/sessions-index.css.map +1 -1
- package/dist/app/routes/sessions-index.js +70 -69
- package/dist/app/routes/site-view.css +1 -1
- package/dist/app/routes/site-view.css.map +1 -1
- package/dist/app/routes/site-view.js +49 -48
- package/dist/app/routes/site-view.js.map +1 -1
- package/dist/artifacts-presentation.js +4 -3
- package/dist/artifacts.js +5 -4
- package/dist/automations.js +4 -3
- package/dist/automations.js.map +1 -1
- package/dist/{chunk-5BRK72J5.js → chunk-26ALDZ3Z.js} +32 -32
- package/dist/chunk-26ALDZ3Z.js.map +1 -0
- package/dist/{chunk-2ZC62PY4.js → chunk-27DX32KU.js} +3 -3
- package/dist/{chunk-UOBJFO25.js → chunk-2YHJDLQ6.js} +4 -4
- package/dist/{chunk-XF55A7CC.js → chunk-3PWUHPI3.js} +3 -3
- package/dist/{chunk-SHW2QUOE.js → chunk-46AGEZPT.js} +4 -4
- package/dist/{chunk-DECSYLBP.js → chunk-4J3O3SWZ.js} +34 -33
- package/dist/chunk-4J3O3SWZ.js.map +1 -0
- package/dist/{chunk-A36WG3BT.js → chunk-4O625K2Z.js} +2 -2
- package/dist/{chunk-O5JDQZGV.js → chunk-4PFXNHD3.js} +4 -4
- package/dist/{chunk-MHL727ZE.js → chunk-4Y7U555D.js} +3 -3
- package/dist/{chunk-QAS2OFG5.js → chunk-55OSFR6X.js} +5 -5
- package/dist/{chunk-XKPVWLMM.js → chunk-55WQUVYL.js} +2 -2
- package/dist/{chunk-FXFOKD7A.js → chunk-5AHIKB3O.js} +4 -4
- package/dist/{chunk-CBSBNUGV.js → chunk-5ARE3ZON.js} +48 -44
- package/dist/chunk-5ARE3ZON.js.map +1 -0
- package/dist/{chunk-3X4HTUUR.js → chunk-5EPGDDTD.js} +3 -3
- package/dist/{chunk-4GFLP4OY.js → chunk-5JOUWSLX.js} +3 -3
- package/dist/{chunk-ZWFLYN7T.js → chunk-62GT2LCX.js} +8 -8
- package/dist/{chunk-EJYHPNXD.js → chunk-6CA4YNYN.js} +3 -3
- package/dist/{chunk-6SPEMI7K.js → chunk-6DE2HW3M.js} +3 -3
- package/dist/{chunk-QJ4YC4PM.js → chunk-6DLMD7KG.js} +3 -3
- package/dist/{chunk-FX4HG4FR.js → chunk-6J47ZMXT.js} +2 -2
- package/dist/{chunk-QFMPAR74.js → chunk-6MZBNUS7.js} +4 -4
- package/dist/{chunk-4T2RJ2HY.js → chunk-6POCXFQ3.js} +3 -3
- package/dist/{chunk-SQJQVTHA.js → chunk-6TZCTX6E.js} +2 -2
- package/dist/{chunk-WKBJNGYV.js → chunk-7TLWNWKZ.js} +2 -2
- package/dist/{chunk-AP63EUPJ.js → chunk-7YMWRNRQ.js} +3 -3
- package/dist/{chunk-KWOYMJKM.js → chunk-AAAI5TIL.js} +4 -4
- package/dist/{chunk-AJIGRQIO.js → chunk-AXVOG3MT.js} +2 -2
- package/dist/{chunk-5JOTMM3F.js → chunk-AZGB2BZJ.js} +11 -11
- package/dist/{chunk-DJ4X4U4A.js → chunk-B2FPBEKA.js} +10 -10
- package/dist/{chunk-EGSRY63C.js → chunk-B36N6XFA.js} +4 -4
- package/dist/{chunk-M47MKLW2.js → chunk-BECGUNN3.js} +3 -3
- package/dist/{chunk-4YNWA5YG.js → chunk-BFVFEPP5.js} +5 -5
- package/dist/{chunk-4GUPD7CJ.js → chunk-BXWD463P.js} +2 -2
- package/dist/{chunk-CHKHQHOO.js → chunk-CCFP6FTE.js} +4 -4
- package/dist/{chunk-DHXRMZPQ.js → chunk-CDDXDIVD.js} +10 -10
- package/dist/{chunk-NY5DX43C.js → chunk-CF7IEYNK.js} +2 -2
- package/dist/{chunk-3GENISSH.js → chunk-CTH2JX5L.js} +2 -2
- package/dist/{chunk-67JCL67N.js → chunk-D5Q3F4SL.js} +2 -2
- package/dist/{chunk-LC5E7CVA.js → chunk-DA26C7SS.js} +2 -2
- package/dist/{chunk-GKOIWZ4C.js → chunk-DGA3TRYX.js} +2 -2
- package/dist/{chunk-2XZ3EUSP.js → chunk-DKL7Q3HN.js} +2 -2
- package/dist/{chunk-ADNH5GSP.js → chunk-DVHK3W3Z.js} +18 -18
- package/dist/{chunk-UJB54P4M.js → chunk-EFYA6GKK.js} +2 -2
- package/dist/{chunk-PMVZYQ5W.js → chunk-EI4CJ35K.js} +4 -4
- package/dist/{chunk-TYZ3WUKG.js → chunk-ELAHUFCS.js} +8 -8
- package/dist/{chunk-3775TQE5.js → chunk-EMKPIKUP.js} +17 -17
- package/dist/{chunk-24S44WBL.js → chunk-EZWH2XKH.js} +2 -2
- package/dist/{chunk-DLMMQMKZ.js → chunk-FWUNKYKA.js} +13 -13
- package/dist/{chunk-5I6CWDA6.js → chunk-FZZWHUEW.js} +79 -72
- package/dist/chunk-FZZWHUEW.js.map +1 -0
- package/dist/{chunk-NFZAMHSR.js → chunk-G57RPR2K.js} +2 -2
- package/dist/{chunk-BOZN54YB.js → chunk-GBLD6FOG.js} +53 -45
- package/dist/chunk-GBLD6FOG.js.map +1 -0
- package/dist/{chunk-PBKG2OPJ.js → chunk-GGIPEZLL.js} +4 -4
- package/dist/{chunk-6P3QOMPV.js → chunk-H24ONMRX.js} +2 -2
- package/dist/{chunk-7J3TLTPI.js → chunk-HC4LIYSX.js} +2 -2
- package/dist/{chunk-N3AAMSBH.js → chunk-HKIU3FUV.js} +4 -4
- package/dist/{chunk-POUIWV6K.js → chunk-HSAIQG5R.js} +64 -64
- package/dist/{chunk-CSGKUDNB.js → chunk-HT4SOZ7O.js} +7 -7
- package/dist/{chunk-3IEVQMGO.js → chunk-HWLXEZLE.js} +2 -2
- package/dist/{chunk-UHBIXNRW.js → chunk-HY3DB3M7.js} +2 -2
- package/dist/{chunk-RWWQLVGV.js → chunk-I63EUR7P.js} +2 -2
- package/dist/{chunk-6GYRHQVL.js → chunk-IXKW5KDM.js} +24 -24
- package/dist/{chunk-VCWRMKTQ.js → chunk-J47H3REM.js} +3 -3
- package/dist/{chunk-M3WCB73E.js → chunk-J7DZIHS2.js} +10 -10
- package/dist/{chunk-AGW5H6QV.js → chunk-JBVYNQCJ.js} +7 -7
- package/dist/{chunk-5JG277OH.js → chunk-JSHYM6DC.js} +5 -5
- package/dist/{chunk-YNIDJOGT.js → chunk-JV2GCAFK.js} +1 -1
- package/dist/{chunk-CZPN2HP3.js → chunk-JZQES6B3.js} +2 -2
- package/dist/{chunk-WZZV7DUU.js → chunk-K7YG6HOF.js} +3 -3
- package/dist/{chunk-DWPE3Y7M.js → chunk-KHYSGVKI.js} +5 -5
- package/dist/{chunk-RLS563ST.js → chunk-KR3OBB6D.js} +7 -7
- package/dist/{chunk-D2VP4C5B.js → chunk-KR5DIEIJ.js} +2 -2
- package/dist/{chunk-FZOK37SC.js → chunk-KZQDP2JM.js} +7 -7
- package/dist/{chunk-GCURVP5U.js → chunk-LASWCFNG.js} +9 -9
- package/dist/{chunk-3VSKLEUE.js → chunk-LKSYKT5N.js} +86 -86
- package/dist/{chunk-OMYT3X2Y.js → chunk-LODXHPRX.js} +1 -1
- package/dist/{chunk-YPM3T3UM.js → chunk-LT2SBHD4.js} +2 -2
- package/dist/{chunk-YIR4KVJO.js → chunk-LZD7C57L.js} +4 -4
- package/dist/{chunk-ZU5WVSHV.js → chunk-MYTGKJVJ.js} +4 -4
- package/dist/{chunk-QHGWFKTK.js → chunk-N5X5SALG.js} +2 -2
- package/dist/chunk-NGTCSS53.js +24 -0
- package/dist/chunk-NGTCSS53.js.map +1 -0
- package/dist/{chunk-CGS44LYC.js → chunk-NHQCEEBF.js} +36 -29
- package/dist/chunk-NHQCEEBF.js.map +1 -0
- package/dist/{chunk-S6GFECVG.js → chunk-NIOCEDKB.js} +4 -4
- package/dist/{chunk-VJAP57SP.js → chunk-NLIQ5Q5P.js} +2 -2
- package/dist/{chunk-36YTBVYF.js → chunk-NRSRVVES.js} +2 -2
- package/dist/{chunk-VWEGG7JQ.js → chunk-NZTK5K62.js} +2 -2
- package/dist/{chunk-XSR6J5LY.js → chunk-ODUGG2UX.js} +2 -2
- package/dist/{chunk-N4TJ7A7I.js → chunk-OFM6KBQW.js} +2 -2
- package/dist/{chunk-Y2LD4FTV.js → chunk-PFGTT67J.js} +2 -2
- package/dist/{chunk-H4NDK35I.js → chunk-PGMXITPB.js} +2 -2
- package/dist/{chunk-3N3EN7FA.js → chunk-PP32RE26.js} +2 -2
- package/dist/{chunk-NU4HYZ3C.js → chunk-PSPSBDX6.js} +2 -2
- package/dist/{chunk-PIPD74PT.js → chunk-PVWRMFOJ.js} +4 -4
- package/dist/{chunk-DEKCTHXM.js → chunk-QPTMXXKH.js} +11 -11
- package/dist/{chunk-AU2DT7O2.js → chunk-R2T4IUNB.js} +1 -1
- package/dist/{chunk-GFMRMSFN.js → chunk-RDFVLQB5.js} +3 -3
- package/dist/{chunk-QSG6FWOK.js → chunk-RQAIDGK5.js} +2 -2
- package/dist/{chunk-7CIMPDGL.js → chunk-S5CFVAP7.js} +2 -2
- package/dist/{chunk-GQF2HWQE.js → chunk-S7WZXVO5.js} +5 -5
- package/dist/{chunk-QCJ6SNCP.js → chunk-S7YAUVSI.js} +2 -2
- package/dist/{chunk-F47X7XPQ.js → chunk-SHF6AUPV.js} +1 -1
- package/dist/{chunk-GH4VY3H5.js → chunk-SHZU6YNE.js} +4 -4
- package/dist/{chunk-BY7AWWDB.js → chunk-SNACGK3Z.js} +4 -4
- package/dist/{chunk-J6YVN3W7.js → chunk-TCGRPODU.js} +2 -2
- package/dist/{chunk-ZAGLLXX5.js → chunk-TMFKWDG2.js} +2 -2
- package/dist/{chunk-DGS62JWP.js → chunk-TSEFP5YJ.js} +5 -5
- package/dist/{chunk-VMJN6YQL.js → chunk-U3PMZACT.js} +2 -2
- package/dist/{chunk-RG7PMYWW.js → chunk-U5ZNMGCK.js} +3 -3
- package/dist/{chunk-UNOJ5PNN.js → chunk-UBH3EU7U.js} +2 -2
- package/dist/{chunk-6WGJB6GO.js → chunk-UBZH5QUL.js} +3 -3
- package/dist/{chunk-SBWVYYRA.js → chunk-UJINPULJ.js} +2 -2
- package/dist/{chunk-QHF4B7R4.js → chunk-UN4IMPAY.js} +7 -7
- package/dist/{chunk-D4AF4SOJ.js → chunk-UVEBRB7E.js} +4 -4
- package/dist/{chunk-K7GGLL2U.js → chunk-UYVGM6PW.js} +2 -2
- package/dist/{chunk-GNTEF5TL.js → chunk-V2YQ6S74.js} +2 -2
- package/dist/{chunk-STTCF3OR.js → chunk-VBZEXBZU.js} +2 -2
- package/dist/{chunk-GJFTPSGN.js → chunk-VFCN7PBE.js} +2 -2
- package/dist/{chunk-NRAVQJE2.js → chunk-VLDKWGHD.js} +4 -4
- package/dist/{chunk-XDWW2DLJ.js → chunk-VYUKLLZC.js} +3 -3
- package/dist/{chunk-H6DJIEO6.js → chunk-WGZ4FCZX.js} +3 -3
- package/dist/{chunk-GBGJIR6F.js → chunk-WZFEUXSX.js} +10 -10
- package/dist/{chunk-HUS2QEPV.js → chunk-XRCZBTNS.js} +21 -21
- package/dist/{chunk-5CGZOJN7.js → chunk-Y22EVXGQ.js} +3 -3
- package/dist/{chunk-R6OBJ7LF.js → chunk-YHHSO5QR.js} +38 -41
- package/dist/chunk-YHHSO5QR.js.map +1 -0
- package/dist/{chunk-27HN57HE.js → chunk-YX565KDW.js} +2 -2
- package/dist/{chunk-72PGXQDN.js → chunk-ZJJNOSFC.js} +2 -2
- package/dist/{chunk-YRJZYQ5A.js → chunk-ZKFIUCZR.js} +131 -124
- package/dist/chunk-ZKFIUCZR.js.map +1 -0
- package/dist/{chunk-BRJLN3ZL.js → chunk-ZXX2MRAP.js} +2 -2
- package/dist/composer.js +3 -2
- package/dist/connect.js +10 -9
- package/dist/{connection-step-up-UQHDCXFE.js → connection-step-up-33GYGZYS.js} +14 -13
- package/dist/{connection-step-up-UQHDCXFE.js.map → connection-step-up-33GYGZYS.js.map} +1 -1
- package/dist/index.js +29 -28
- package/dist/lib/modal-layer.d.ts +11 -0
- package/dist/meetings.js +10 -9
- package/dist/meetings.js.map +1 -1
- package/dist/{payment-page-card-OOOFGIMH.js → payment-page-card-L62QJCCD.js} +5 -4
- package/dist/{payment-page-card-OOOFGIMH.js.map → payment-page-card-L62QJCCD.js.map} +1 -1
- package/dist/{queue-surface-implementation-HDZ42LN7.js → queue-surface-implementation-PJ6QNIIS.js} +4 -3
- package/dist/{queue-surface-implementation-HDZ42LN7.js.map → queue-surface-implementation-PJ6QNIIS.js.map} +1 -1
- package/dist/{sandbox-files-6JY7WVMO.js → sandbox-files-7KII6DMG.js} +4 -3
- package/dist/session-app.css +1 -1
- package/dist/session-app.css.map +1 -1
- package/dist/session-app.js +140 -139
- package/dist/{session-connect-cards-VTSJODCX.js → session-connect-cards-HQ26DLEC.js} +6 -5
- package/dist/session-ui.js +16 -15
- package/dist/this-computer.js +2 -1
- package/dist/ui/access-list.js +3 -2
- package/dist/ui/access-list.js.map +1 -1
- package/dist/ui/confirm-dialog.js +3 -2
- package/dist/ui/detail-page.js +3 -2
- package/dist/ui/detail-sheet.js +3 -2
- package/dist/ui/dialog.js +2 -1
- package/dist/ui/disclosure.js +4 -3
- package/dist/ui/flush-form-page.js +3 -2
- package/dist/ui/form-dialog.js +2 -1
- package/dist/ui/role-select.js +3 -2
- package/dist/ui/sheet.js +2 -1
- package/package.json +6 -5
- package/src/app/components/command-menu/command-menu.tsx +232 -228
- package/src/components/file-browser.tsx +69 -64
- package/src/components/session-capability-frame.tsx +36 -34
- package/src/components/this-computer/this-computer-setup.tsx +36 -29
- package/src/lib/modal-layer.tsx +33 -0
- package/src/timeline/screenshot-lightbox.tsx +137 -128
- package/src/ui/detail-sheet.tsx +44 -40
- package/src/ui/dialog.tsx +39 -35
- package/src/ui/form-dialog-layer.test.tsx +4 -3
- package/src/ui/form-dialog.tsx +28 -26
- package/src/ui/sheet.tsx +36 -46
- package/styles/compiled.css +57 -12
- package/styles/index.css +19 -0
- package/styles/this-computer.css +1 -1
- package/dist/chunk-5BRK72J5.js.map +0 -1
- package/dist/chunk-5I6CWDA6.js.map +0 -1
- package/dist/chunk-BOZN54YB.js.map +0 -1
- package/dist/chunk-CBSBNUGV.js.map +0 -1
- package/dist/chunk-CGS44LYC.js.map +0 -1
- package/dist/chunk-DECSYLBP.js.map +0 -1
- package/dist/chunk-R6OBJ7LF.js.map +0 -1
- package/dist/chunk-YRJZYQ5A.js.map +0 -1
- /package/dist/{chunk-2ZC62PY4.js.map → chunk-27DX32KU.js.map} +0 -0
- /package/dist/{chunk-UOBJFO25.js.map → chunk-2YHJDLQ6.js.map} +0 -0
- /package/dist/{chunk-XF55A7CC.js.map → chunk-3PWUHPI3.js.map} +0 -0
- /package/dist/{chunk-SHW2QUOE.js.map → chunk-46AGEZPT.js.map} +0 -0
- /package/dist/{chunk-A36WG3BT.js.map → chunk-4O625K2Z.js.map} +0 -0
- /package/dist/{chunk-O5JDQZGV.js.map → chunk-4PFXNHD3.js.map} +0 -0
- /package/dist/{chunk-MHL727ZE.js.map → chunk-4Y7U555D.js.map} +0 -0
- /package/dist/{chunk-QAS2OFG5.js.map → chunk-55OSFR6X.js.map} +0 -0
- /package/dist/{chunk-XKPVWLMM.js.map → chunk-55WQUVYL.js.map} +0 -0
- /package/dist/{chunk-FXFOKD7A.js.map → chunk-5AHIKB3O.js.map} +0 -0
- /package/dist/{chunk-3X4HTUUR.js.map → chunk-5EPGDDTD.js.map} +0 -0
- /package/dist/{chunk-4GFLP4OY.js.map → chunk-5JOUWSLX.js.map} +0 -0
- /package/dist/{chunk-ZWFLYN7T.js.map → chunk-62GT2LCX.js.map} +0 -0
- /package/dist/{chunk-EJYHPNXD.js.map → chunk-6CA4YNYN.js.map} +0 -0
- /package/dist/{chunk-6SPEMI7K.js.map → chunk-6DE2HW3M.js.map} +0 -0
- /package/dist/{chunk-QJ4YC4PM.js.map → chunk-6DLMD7KG.js.map} +0 -0
- /package/dist/{chunk-FX4HG4FR.js.map → chunk-6J47ZMXT.js.map} +0 -0
- /package/dist/{chunk-QFMPAR74.js.map → chunk-6MZBNUS7.js.map} +0 -0
- /package/dist/{chunk-4T2RJ2HY.js.map → chunk-6POCXFQ3.js.map} +0 -0
- /package/dist/{chunk-SQJQVTHA.js.map → chunk-6TZCTX6E.js.map} +0 -0
- /package/dist/{chunk-WKBJNGYV.js.map → chunk-7TLWNWKZ.js.map} +0 -0
- /package/dist/{chunk-AP63EUPJ.js.map → chunk-7YMWRNRQ.js.map} +0 -0
- /package/dist/{chunk-KWOYMJKM.js.map → chunk-AAAI5TIL.js.map} +0 -0
- /package/dist/{chunk-AJIGRQIO.js.map → chunk-AXVOG3MT.js.map} +0 -0
- /package/dist/{chunk-5JOTMM3F.js.map → chunk-AZGB2BZJ.js.map} +0 -0
- /package/dist/{chunk-DJ4X4U4A.js.map → chunk-B2FPBEKA.js.map} +0 -0
- /package/dist/{chunk-EGSRY63C.js.map → chunk-B36N6XFA.js.map} +0 -0
- /package/dist/{chunk-M47MKLW2.js.map → chunk-BECGUNN3.js.map} +0 -0
- /package/dist/{chunk-4YNWA5YG.js.map → chunk-BFVFEPP5.js.map} +0 -0
- /package/dist/{chunk-4GUPD7CJ.js.map → chunk-BXWD463P.js.map} +0 -0
- /package/dist/{chunk-CHKHQHOO.js.map → chunk-CCFP6FTE.js.map} +0 -0
- /package/dist/{chunk-DHXRMZPQ.js.map → chunk-CDDXDIVD.js.map} +0 -0
- /package/dist/{chunk-NY5DX43C.js.map → chunk-CF7IEYNK.js.map} +0 -0
- /package/dist/{chunk-3GENISSH.js.map → chunk-CTH2JX5L.js.map} +0 -0
- /package/dist/{chunk-67JCL67N.js.map → chunk-D5Q3F4SL.js.map} +0 -0
- /package/dist/{chunk-LC5E7CVA.js.map → chunk-DA26C7SS.js.map} +0 -0
- /package/dist/{chunk-GKOIWZ4C.js.map → chunk-DGA3TRYX.js.map} +0 -0
- /package/dist/{chunk-2XZ3EUSP.js.map → chunk-DKL7Q3HN.js.map} +0 -0
- /package/dist/{chunk-ADNH5GSP.js.map → chunk-DVHK3W3Z.js.map} +0 -0
- /package/dist/{chunk-UJB54P4M.js.map → chunk-EFYA6GKK.js.map} +0 -0
- /package/dist/{chunk-PMVZYQ5W.js.map → chunk-EI4CJ35K.js.map} +0 -0
- /package/dist/{chunk-TYZ3WUKG.js.map → chunk-ELAHUFCS.js.map} +0 -0
- /package/dist/{chunk-3775TQE5.js.map → chunk-EMKPIKUP.js.map} +0 -0
- /package/dist/{chunk-24S44WBL.js.map → chunk-EZWH2XKH.js.map} +0 -0
- /package/dist/{chunk-DLMMQMKZ.js.map → chunk-FWUNKYKA.js.map} +0 -0
- /package/dist/{chunk-NFZAMHSR.js.map → chunk-G57RPR2K.js.map} +0 -0
- /package/dist/{chunk-PBKG2OPJ.js.map → chunk-GGIPEZLL.js.map} +0 -0
- /package/dist/{chunk-6P3QOMPV.js.map → chunk-H24ONMRX.js.map} +0 -0
- /package/dist/{chunk-7J3TLTPI.js.map → chunk-HC4LIYSX.js.map} +0 -0
- /package/dist/{chunk-N3AAMSBH.js.map → chunk-HKIU3FUV.js.map} +0 -0
- /package/dist/{chunk-POUIWV6K.js.map → chunk-HSAIQG5R.js.map} +0 -0
- /package/dist/{chunk-CSGKUDNB.js.map → chunk-HT4SOZ7O.js.map} +0 -0
- /package/dist/{chunk-3IEVQMGO.js.map → chunk-HWLXEZLE.js.map} +0 -0
- /package/dist/{chunk-UHBIXNRW.js.map → chunk-HY3DB3M7.js.map} +0 -0
- /package/dist/{chunk-RWWQLVGV.js.map → chunk-I63EUR7P.js.map} +0 -0
- /package/dist/{chunk-6GYRHQVL.js.map → chunk-IXKW5KDM.js.map} +0 -0
- /package/dist/{chunk-VCWRMKTQ.js.map → chunk-J47H3REM.js.map} +0 -0
- /package/dist/{chunk-M3WCB73E.js.map → chunk-J7DZIHS2.js.map} +0 -0
- /package/dist/{chunk-AGW5H6QV.js.map → chunk-JBVYNQCJ.js.map} +0 -0
- /package/dist/{chunk-5JG277OH.js.map → chunk-JSHYM6DC.js.map} +0 -0
- /package/dist/{chunk-YNIDJOGT.js.map → chunk-JV2GCAFK.js.map} +0 -0
- /package/dist/{chunk-CZPN2HP3.js.map → chunk-JZQES6B3.js.map} +0 -0
- /package/dist/{chunk-WZZV7DUU.js.map → chunk-K7YG6HOF.js.map} +0 -0
- /package/dist/{chunk-DWPE3Y7M.js.map → chunk-KHYSGVKI.js.map} +0 -0
- /package/dist/{chunk-RLS563ST.js.map → chunk-KR3OBB6D.js.map} +0 -0
- /package/dist/{chunk-D2VP4C5B.js.map → chunk-KR5DIEIJ.js.map} +0 -0
- /package/dist/{chunk-FZOK37SC.js.map → chunk-KZQDP2JM.js.map} +0 -0
- /package/dist/{chunk-GCURVP5U.js.map → chunk-LASWCFNG.js.map} +0 -0
- /package/dist/{chunk-3VSKLEUE.js.map → chunk-LKSYKT5N.js.map} +0 -0
- /package/dist/{chunk-OMYT3X2Y.js.map → chunk-LODXHPRX.js.map} +0 -0
- /package/dist/{chunk-YPM3T3UM.js.map → chunk-LT2SBHD4.js.map} +0 -0
- /package/dist/{chunk-YIR4KVJO.js.map → chunk-LZD7C57L.js.map} +0 -0
- /package/dist/{chunk-ZU5WVSHV.js.map → chunk-MYTGKJVJ.js.map} +0 -0
- /package/dist/{chunk-QHGWFKTK.js.map → chunk-N5X5SALG.js.map} +0 -0
- /package/dist/{chunk-S6GFECVG.js.map → chunk-NIOCEDKB.js.map} +0 -0
- /package/dist/{chunk-VJAP57SP.js.map → chunk-NLIQ5Q5P.js.map} +0 -0
- /package/dist/{chunk-36YTBVYF.js.map → chunk-NRSRVVES.js.map} +0 -0
- /package/dist/{chunk-VWEGG7JQ.js.map → chunk-NZTK5K62.js.map} +0 -0
- /package/dist/{chunk-XSR6J5LY.js.map → chunk-ODUGG2UX.js.map} +0 -0
- /package/dist/{chunk-N4TJ7A7I.js.map → chunk-OFM6KBQW.js.map} +0 -0
- /package/dist/{chunk-Y2LD4FTV.js.map → chunk-PFGTT67J.js.map} +0 -0
- /package/dist/{chunk-H4NDK35I.js.map → chunk-PGMXITPB.js.map} +0 -0
- /package/dist/{chunk-3N3EN7FA.js.map → chunk-PP32RE26.js.map} +0 -0
- /package/dist/{chunk-NU4HYZ3C.js.map → chunk-PSPSBDX6.js.map} +0 -0
- /package/dist/{chunk-PIPD74PT.js.map → chunk-PVWRMFOJ.js.map} +0 -0
- /package/dist/{chunk-DEKCTHXM.js.map → chunk-QPTMXXKH.js.map} +0 -0
- /package/dist/{chunk-AU2DT7O2.js.map → chunk-R2T4IUNB.js.map} +0 -0
- /package/dist/{chunk-GFMRMSFN.js.map → chunk-RDFVLQB5.js.map} +0 -0
- /package/dist/{chunk-QSG6FWOK.js.map → chunk-RQAIDGK5.js.map} +0 -0
- /package/dist/{chunk-7CIMPDGL.js.map → chunk-S5CFVAP7.js.map} +0 -0
- /package/dist/{chunk-GQF2HWQE.js.map → chunk-S7WZXVO5.js.map} +0 -0
- /package/dist/{chunk-QCJ6SNCP.js.map → chunk-S7YAUVSI.js.map} +0 -0
- /package/dist/{chunk-F47X7XPQ.js.map → chunk-SHF6AUPV.js.map} +0 -0
- /package/dist/{chunk-GH4VY3H5.js.map → chunk-SHZU6YNE.js.map} +0 -0
- /package/dist/{chunk-BY7AWWDB.js.map → chunk-SNACGK3Z.js.map} +0 -0
- /package/dist/{chunk-J6YVN3W7.js.map → chunk-TCGRPODU.js.map} +0 -0
- /package/dist/{chunk-ZAGLLXX5.js.map → chunk-TMFKWDG2.js.map} +0 -0
- /package/dist/{chunk-DGS62JWP.js.map → chunk-TSEFP5YJ.js.map} +0 -0
- /package/dist/{chunk-VMJN6YQL.js.map → chunk-U3PMZACT.js.map} +0 -0
- /package/dist/{chunk-RG7PMYWW.js.map → chunk-U5ZNMGCK.js.map} +0 -0
- /package/dist/{chunk-UNOJ5PNN.js.map → chunk-UBH3EU7U.js.map} +0 -0
- /package/dist/{chunk-6WGJB6GO.js.map → chunk-UBZH5QUL.js.map} +0 -0
- /package/dist/{chunk-SBWVYYRA.js.map → chunk-UJINPULJ.js.map} +0 -0
- /package/dist/{chunk-QHF4B7R4.js.map → chunk-UN4IMPAY.js.map} +0 -0
- /package/dist/{chunk-D4AF4SOJ.js.map → chunk-UVEBRB7E.js.map} +0 -0
- /package/dist/{chunk-K7GGLL2U.js.map → chunk-UYVGM6PW.js.map} +0 -0
- /package/dist/{chunk-GNTEF5TL.js.map → chunk-V2YQ6S74.js.map} +0 -0
- /package/dist/{chunk-STTCF3OR.js.map → chunk-VBZEXBZU.js.map} +0 -0
- /package/dist/{chunk-GJFTPSGN.js.map → chunk-VFCN7PBE.js.map} +0 -0
- /package/dist/{chunk-NRAVQJE2.js.map → chunk-VLDKWGHD.js.map} +0 -0
- /package/dist/{chunk-XDWW2DLJ.js.map → chunk-VYUKLLZC.js.map} +0 -0
- /package/dist/{chunk-H6DJIEO6.js.map → chunk-WGZ4FCZX.js.map} +0 -0
- /package/dist/{chunk-GBGJIR6F.js.map → chunk-WZFEUXSX.js.map} +0 -0
- /package/dist/{chunk-HUS2QEPV.js.map → chunk-XRCZBTNS.js.map} +0 -0
- /package/dist/{chunk-5CGZOJN7.js.map → chunk-Y22EVXGQ.js.map} +0 -0
- /package/dist/{chunk-27HN57HE.js.map → chunk-YX565KDW.js.map} +0 -0
- /package/dist/{chunk-72PGXQDN.js.map → chunk-ZJJNOSFC.js.map} +0 -0
- /package/dist/{chunk-BRJLN3ZL.js.map → chunk-ZXX2MRAP.js.map} +0 -0
- /package/dist/{sandbox-files-6JY7WVMO.js.map → sandbox-files-7KII6DMG.js.map} +0 -0
- /package/dist/{session-connect-cards-VTSJODCX.js.map → session-connect-cards-HQ26DLEC.js.map} +0 -0
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
type LucideIcon,
|
|
12
12
|
} from "lucide-react";
|
|
13
13
|
import { Dialog } from "radix-ui";
|
|
14
|
+
import { ModalLayer } from "../lib/modal-layer";
|
|
14
15
|
import type { IntegrationExperienceIcon } from "../integration-presentation";
|
|
15
16
|
import { containedPortal } from "../ui/portal-container";
|
|
16
17
|
import { useRef, useState, type ReactNode, type RefObject } from "react";
|
|
@@ -243,41 +244,42 @@ export function SessionCapabilityFrame({
|
|
|
243
244
|
}}
|
|
244
245
|
>
|
|
245
246
|
<DialogContainedPortal>
|
|
246
|
-
<
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
247
|
+
<ModalLayer className="og-root og-session-capability-overlay" style={portalStyle}>
|
|
248
|
+
<Dialog.Content
|
|
249
|
+
className="og-root og-session-capability-dialog"
|
|
250
|
+
style={portalStyle}
|
|
251
|
+
onEscapeKeyDown={(event) => {
|
|
252
|
+
if (busy) event.preventDefault();
|
|
253
|
+
}}
|
|
254
|
+
onInteractOutside={(event) => {
|
|
255
|
+
if (busy) event.preventDefault();
|
|
256
|
+
}}
|
|
257
|
+
onCloseAutoFocus={(event) => {
|
|
258
|
+
event.preventDefault();
|
|
259
|
+
const target = buttonRef.current?.isConnected
|
|
260
|
+
? buttonRef.current
|
|
261
|
+
: sectionRef.current;
|
|
262
|
+
// Keep the view where the conversation is; focus alone must not scroll.
|
|
263
|
+
if (target?.isConnected) target.focus({ preventScroll: true });
|
|
264
|
+
}}
|
|
265
|
+
>
|
|
266
|
+
<div className="og-session-capability-dialog-header">
|
|
267
|
+
<Mark src={logo} name={name} icon={icon} />
|
|
268
|
+
<div>
|
|
269
|
+
<Dialog.Title>{name}</Dialog.Title>
|
|
270
|
+
<Dialog.Description>
|
|
271
|
+
{[typeLabel, shownSubtitle].filter(Boolean).join(" · ")}
|
|
272
|
+
</Dialog.Description>
|
|
273
|
+
</div>
|
|
274
|
+
{!busy ? (
|
|
275
|
+
<Dialog.Close aria-label={t("sessionCapabilityFrame.closeConnectionSetup")}>
|
|
276
|
+
<XIcon size={18} />
|
|
277
|
+
</Dialog.Close>
|
|
278
|
+
) : null}
|
|
272
279
|
</div>
|
|
273
|
-
{
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
</Dialog.Close>
|
|
277
|
-
) : null}
|
|
278
|
-
</div>
|
|
279
|
-
<div className="og-session-capability-dialog-body">{children}</div>
|
|
280
|
-
</Dialog.Content>
|
|
280
|
+
<div className="og-session-capability-dialog-body">{children}</div>
|
|
281
|
+
</Dialog.Content>
|
|
282
|
+
</ModalLayer>
|
|
281
283
|
</DialogContainedPortal>
|
|
282
284
|
</Dialog.Root>
|
|
283
285
|
</div>
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
} from "@opengeni/sdk/this-computer";
|
|
10
10
|
import { CheckIcon, XIcon } from "lucide-react";
|
|
11
11
|
import { Dialog } from "radix-ui";
|
|
12
|
+
import { ModalLayer } from "../../lib/modal-layer";
|
|
12
13
|
import { useEffect, useRef, useState, type ReactNode } from "react";
|
|
13
14
|
import { usePortalTokenStyle } from "../../lib/use-portal-token-style";
|
|
14
15
|
import {
|
|
@@ -459,36 +460,42 @@ export function ThisComputerSetup({
|
|
|
459
460
|
<span ref={anchor} hidden />
|
|
460
461
|
<Dialog.Root open={open} onOpenChange={onOpenChange}>
|
|
461
462
|
<Dialog.Portal container={container ?? undefined}>
|
|
462
|
-
<
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
463
|
+
<ModalLayer className="og-root og-tc-overlay" style={portalStyle}>
|
|
464
|
+
<Dialog.Content
|
|
465
|
+
className="og-root og-tc-dialog"
|
|
466
|
+
style={portalStyle}
|
|
467
|
+
data-phase={phase}
|
|
468
|
+
onOpenAutoFocus={(event) => {
|
|
469
|
+
// The dialog itself takes focus, so no button starts out ringed.
|
|
470
|
+
event.preventDefault();
|
|
471
|
+
(event.currentTarget as HTMLElement | null)?.focus();
|
|
472
|
+
}}
|
|
473
|
+
onInteractOutside={(event) => {
|
|
474
|
+
// A stray click beside the dialog mustn't end setup midway.
|
|
475
|
+
if (phase !== "intro" && phase !== "done") event.preventDefault();
|
|
476
|
+
}}
|
|
477
|
+
>
|
|
478
|
+
{!closable ? null : (
|
|
479
|
+
<Dialog.Close className="og-tc-close" aria-label={labels.close}>
|
|
480
|
+
<XIcon aria-hidden />
|
|
481
|
+
</Dialog.Close>
|
|
482
|
+
)}
|
|
483
|
+
<div className="og-tc-body" aria-busy={busyConnecting || undefined}>
|
|
484
|
+
<div
|
|
485
|
+
className="og-tc-content"
|
|
486
|
+
key={phase === "permissions" ? `p-${current}` : phase}
|
|
487
|
+
>
|
|
488
|
+
{lead}
|
|
489
|
+
<Dialog.Title className="og-tc-title">{title}</Dialog.Title>
|
|
490
|
+
<Dialog.Description className="og-tc-description">
|
|
491
|
+
{description}
|
|
492
|
+
</Dialog.Description>
|
|
493
|
+
{body}
|
|
494
|
+
</div>
|
|
488
495
|
</div>
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
</
|
|
496
|
+
{footer ? <div className="og-tc-footer">{footer}</div> : null}
|
|
497
|
+
</Dialog.Content>
|
|
498
|
+
</ModalLayer>
|
|
492
499
|
</Dialog.Portal>
|
|
493
500
|
</Dialog.Root>
|
|
494
501
|
</>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Dialog, Slot } from "radix-ui";
|
|
3
|
+
|
|
4
|
+
const DialogModalContext = React.createContext(true);
|
|
5
|
+
|
|
6
|
+
// Radix drops its Overlay in non-modal mode. Track the same flag for the
|
|
7
|
+
// composed content so it can still portal directly without a backdrop.
|
|
8
|
+
export function DialogModalRoot(props: React.ComponentPropsWithoutRef<typeof Dialog.Root>) {
|
|
9
|
+
return (
|
|
10
|
+
<DialogModalContext.Provider value={props.modal ?? true}>
|
|
11
|
+
<Dialog.Root {...props} />
|
|
12
|
+
</DialogModalContext.Provider>
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function useDialogModal() {
|
|
17
|
+
return React.useContext(DialogModalContext);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
type OverlayProps = React.ComponentPropsWithoutRef<typeof Dialog.Overlay>;
|
|
21
|
+
|
|
22
|
+
/** Keep the backdrop and content in one stacking context, even in a body portal. */
|
|
23
|
+
export const ModalLayer = /* @__PURE__ */ React.forwardRef<
|
|
24
|
+
React.ComponentRef<typeof Dialog.Overlay>,
|
|
25
|
+
OverlayProps & {
|
|
26
|
+
overlay?: React.ComponentType<OverlayProps & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
modal?: boolean;
|
|
28
|
+
}
|
|
29
|
+
>(function ModalLayer({ overlay: Overlay = Dialog.Overlay, modal = true, ...props }, ref) {
|
|
30
|
+
// Forward the portal's presence ref to Content even without a backdrop.
|
|
31
|
+
if (!modal) return <Slot.Root ref={ref}>{props.children}</Slot.Root>;
|
|
32
|
+
return <Overlay {...props} ref={ref} />;
|
|
33
|
+
});
|
|
@@ -21,6 +21,7 @@ import {
|
|
|
21
21
|
} from "../components/zoom-pan-image";
|
|
22
22
|
import { cn } from "../lib/cn";
|
|
23
23
|
import { isTextEntryTarget } from "../lib/keyboard-targets";
|
|
24
|
+
import { ModalLayer } from "../lib/modal-layer";
|
|
24
25
|
import { usePortalTokenStyle } from "../lib/use-portal-token-style";
|
|
25
26
|
import { useOpenGeniText } from "../messages/runtime";
|
|
26
27
|
|
|
@@ -370,145 +371,153 @@ function LightboxRoot({ children }: { children: ReactNode }) {
|
|
|
370
371
|
<AnimatePresence>
|
|
371
372
|
{state !== null ? (
|
|
372
373
|
<DialogContainedPortal forceMount>
|
|
373
|
-
<
|
|
374
|
+
<ModalLayer asChild forceMount>
|
|
374
375
|
<motion.div
|
|
375
|
-
initial={{
|
|
376
|
-
animate={{
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
className={cn(
|
|
380
|
-
"og-root fixed inset-0 z-50 bg-black/90 backdrop-blur-md",
|
|
381
|
-
NO_WINDOW_DRAG,
|
|
382
|
-
)}
|
|
383
|
-
style={portalStyle}
|
|
384
|
-
/>
|
|
385
|
-
</Dialog.Overlay>
|
|
386
|
-
<Dialog.Content
|
|
387
|
-
asChild
|
|
388
|
-
forceMount
|
|
389
|
-
data-window-layer
|
|
390
|
-
aria-label={state.label}
|
|
391
|
-
onOpenAutoFocus={(event) => event.preventDefault()}
|
|
392
|
-
>
|
|
393
|
-
<motion.div
|
|
394
|
-
initial={{ opacity: 0, scale: 0.98 }}
|
|
395
|
-
animate={{ opacity: 1, scale: 1 }}
|
|
396
|
-
exit={{ opacity: 0, scale: 0.98 }}
|
|
397
|
-
transition={{ duration: 0.18, ease: [0.16, 1, 0.3, 1] }}
|
|
398
|
-
// Content is a full-inset centering wrapper layered above the
|
|
399
|
-
// Overlay, so Radix's own click-outside (which fires on the
|
|
400
|
-
// Overlay) can never see a backdrop click — every click lands on
|
|
401
|
-
// Content. So Content dismisses itself: a press that begins and
|
|
402
|
-
// ends on its empty space or caption (the padding, the figure's
|
|
403
|
-
// gutters, the gaps around the zoom controls) closes it. The image
|
|
404
|
-
// area closes on its own when a click misses the image.
|
|
405
|
-
onPointerDown={(event) => {
|
|
406
|
-
pressedBackdrop.current = isLightboxBackdrop(event.target, event.currentTarget);
|
|
407
|
-
}}
|
|
408
|
-
onClick={(event) => {
|
|
409
|
-
const pressed = pressedBackdrop.current;
|
|
410
|
-
pressedBackdrop.current = false;
|
|
411
|
-
// Selecting caption text is a drag across the backdrop; keep it open.
|
|
412
|
-
const selection = event.currentTarget.ownerDocument.getSelection();
|
|
413
|
-
if (
|
|
414
|
-
pressed &&
|
|
415
|
-
(!selection || selection.isCollapsed) &&
|
|
416
|
-
isLightboxBackdrop(event.target, event.currentTarget)
|
|
417
|
-
) {
|
|
418
|
-
close();
|
|
419
|
-
}
|
|
376
|
+
initial={{ backgroundColor: "rgba(0, 0, 0, 0)", "--og-lightbox-blur": "0px" }}
|
|
377
|
+
animate={{
|
|
378
|
+
backgroundColor: "rgba(0, 0, 0, 0.9)",
|
|
379
|
+
"--og-lightbox-blur": "var(--blur-md, 12px)",
|
|
420
380
|
}}
|
|
381
|
+
exit={{ backgroundColor: "rgba(0, 0, 0, 0)", "--og-lightbox-blur": "0px" }}
|
|
382
|
+
transition={{ duration: 0.15 }}
|
|
421
383
|
className={cn(
|
|
422
|
-
"og-root fixed inset-0 z-50
|
|
384
|
+
"og-root fixed inset-0 z-50 before:pointer-events-none before:absolute before:inset-0 before:backdrop-blur-(--og-lightbox-blur)",
|
|
423
385
|
NO_WINDOW_DRAG,
|
|
424
386
|
)}
|
|
425
387
|
style={portalStyle}
|
|
426
388
|
>
|
|
427
|
-
<Dialog.
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
</Dialog.Description>
|
|
434
|
-
{gallery ? (
|
|
435
|
-
<LightboxStepButton
|
|
436
|
-
direction="previous"
|
|
437
|
-
label={
|
|
438
|
-
state.controlLabels?.previous ??
|
|
439
|
-
t("timeline.screenshotLightbox.previousImage")
|
|
440
|
-
}
|
|
441
|
-
onClick={() => step(-1)}
|
|
442
|
-
/>
|
|
443
|
-
) : null}
|
|
444
|
-
{/* The image fills the window and zooms and pans in place;
|
|
445
|
-
its caption, zoom controls and position sit below it. */}
|
|
446
|
-
<figure
|
|
447
|
-
className={cn(
|
|
448
|
-
"m-0 flex size-full min-h-0 flex-col items-center gap-3",
|
|
449
|
-
gallery && "px-12 sm:px-16",
|
|
450
|
-
)}
|
|
389
|
+
<Dialog.Content
|
|
390
|
+
asChild
|
|
391
|
+
forceMount
|
|
392
|
+
data-window-layer
|
|
393
|
+
aria-label={state.label}
|
|
394
|
+
onOpenAutoFocus={(event) => event.preventDefault()}
|
|
451
395
|
>
|
|
452
|
-
<div
|
|
453
|
-
{
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
396
|
+
<motion.div
|
|
397
|
+
initial={{ opacity: 0, scale: 0.98 }}
|
|
398
|
+
animate={{ opacity: 1, scale: 1 }}
|
|
399
|
+
exit={{ opacity: 0, scale: 0.98 }}
|
|
400
|
+
transition={{ duration: 0.18, ease: [0.16, 1, 0.3, 1] }}
|
|
401
|
+
// Content fills the overlay, so Radix's own click-outside
|
|
402
|
+
// can never see a backdrop click — every click lands on
|
|
403
|
+
// Content. So Content dismisses itself: a press that begins and
|
|
404
|
+
// ends on its empty space or caption (the padding, the figure's
|
|
405
|
+
// gutters, the gaps around the zoom controls) closes it. The image
|
|
406
|
+
// area closes on its own when a click misses the image.
|
|
407
|
+
onPointerDown={(event) => {
|
|
408
|
+
pressedBackdrop.current = isLightboxBackdrop(
|
|
409
|
+
event.target,
|
|
410
|
+
event.currentTarget,
|
|
411
|
+
);
|
|
412
|
+
}}
|
|
413
|
+
onClick={(event) => {
|
|
414
|
+
const pressed = pressedBackdrop.current;
|
|
415
|
+
pressedBackdrop.current = false;
|
|
416
|
+
// Selecting caption text is a drag across the backdrop; keep it open.
|
|
417
|
+
const selection = event.currentTarget.ownerDocument.getSelection();
|
|
418
|
+
if (
|
|
419
|
+
pressed &&
|
|
420
|
+
(!selection || selection.isCollapsed) &&
|
|
421
|
+
isLightboxBackdrop(event.target, event.currentTarget)
|
|
422
|
+
) {
|
|
423
|
+
close();
|
|
424
|
+
}
|
|
470
425
|
}}
|
|
471
|
-
className=
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
length: gallery.items.length,
|
|
426
|
+
className={cn(
|
|
427
|
+
"og-root fixed inset-0 z-50 flex items-center justify-center p-6 sm:p-12",
|
|
428
|
+
NO_WINDOW_DRAG,
|
|
429
|
+
)}
|
|
430
|
+
style={portalStyle}
|
|
431
|
+
>
|
|
432
|
+
<Dialog.Title className="sr-only">{state.label}</Dialog.Title>
|
|
433
|
+
<Dialog.Description className="sr-only">
|
|
434
|
+
{state.caption ??
|
|
435
|
+
t("timeline.screenshotLightbox.expandedLowercase", {
|
|
436
|
+
lowerCase: state.label.toLowerCase(),
|
|
483
437
|
})}
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
438
|
+
</Dialog.Description>
|
|
439
|
+
{gallery ? (
|
|
440
|
+
<LightboxStepButton
|
|
441
|
+
direction="previous"
|
|
442
|
+
label={
|
|
443
|
+
state.controlLabels?.previous ??
|
|
444
|
+
t("timeline.screenshotLightbox.previousImage")
|
|
445
|
+
}
|
|
446
|
+
onClick={() => step(-1)}
|
|
447
|
+
/>
|
|
448
|
+
) : null}
|
|
449
|
+
{/* The image fills the window and zooms and pans in place;
|
|
450
|
+
its caption, zoom controls and position sit below it. */}
|
|
451
|
+
<figure
|
|
452
|
+
className={cn(
|
|
453
|
+
"m-0 flex size-full min-h-0 flex-col items-center gap-3",
|
|
454
|
+
gallery && "px-12 sm:px-16",
|
|
455
|
+
)}
|
|
456
|
+
>
|
|
457
|
+
<div className="relative min-h-0 w-full flex-1">
|
|
458
|
+
{/* A plain <img>: this SDK is framework-agnostic, with no host Image component. */}
|
|
459
|
+
<ZoomPanSurface
|
|
460
|
+
controller={zoom}
|
|
461
|
+
src={state.src}
|
|
462
|
+
alt={state.caption ?? state.label}
|
|
463
|
+
onBackdropClick={close}
|
|
464
|
+
imageClassName="rounded-og-md border border-white/10 shadow-og-lg"
|
|
465
|
+
/>
|
|
466
|
+
</div>
|
|
467
|
+
<ZoomControls
|
|
468
|
+
controller={zoom}
|
|
469
|
+
labels={{
|
|
470
|
+
zoomIn:
|
|
471
|
+
state.controlLabels?.zoomIn ??
|
|
472
|
+
t("timeline.screenshotLightbox.zoomIn"),
|
|
473
|
+
zoomOut:
|
|
474
|
+
state.controlLabels?.zoomOut ??
|
|
475
|
+
t("timeline.screenshotLightbox.zoomOut"),
|
|
476
|
+
fit: state.controlLabels?.fit ?? t("timeline.screenshotLightbox.fit"),
|
|
477
|
+
}}
|
|
478
|
+
className="rounded-full border border-white/15 bg-black/60 px-1 text-white/70 backdrop-blur"
|
|
479
|
+
buttonClassName="rounded-full text-white/70 hover:bg-white/10 hover:text-white disabled:text-white/30"
|
|
480
|
+
/>
|
|
481
|
+
{gallery ? (
|
|
482
|
+
<figcaption className="flex max-w-2xl flex-col items-center gap-1 text-center font-og-mono text-og-xs">
|
|
483
|
+
{state.caption ? (
|
|
484
|
+
<span className="text-white/55">{state.caption}</span>
|
|
485
|
+
) : null}
|
|
486
|
+
<span className="tabular-nums text-white/35" aria-live="polite">
|
|
487
|
+
{gallery.index + 1}{" "}
|
|
488
|
+
{t("timeline.screenshotLightbox.ofLength", {
|
|
489
|
+
length: gallery.items.length,
|
|
490
|
+
})}
|
|
491
|
+
</span>
|
|
492
|
+
</figcaption>
|
|
493
|
+
) : state.caption ? (
|
|
494
|
+
<figcaption className="max-w-2xl text-center font-og-mono text-og-xs text-white/55">
|
|
495
|
+
{state.caption}
|
|
496
|
+
</figcaption>
|
|
497
|
+
) : (
|
|
498
|
+
<figcaption className="font-og-mono text-og-xs uppercase tracking-[0.1em] text-white/35">
|
|
499
|
+
{t("timeline.screenshotLightbox.escOrClickOutsideTo")}
|
|
500
|
+
</figcaption>
|
|
501
|
+
)}
|
|
502
|
+
</figure>
|
|
503
|
+
<ScreenshotLightboxControls
|
|
504
|
+
src={state.src}
|
|
505
|
+
downloadFilename={state.downloadFilename}
|
|
506
|
+
controlLabels={state.controlLabels}
|
|
507
|
+
/>
|
|
508
|
+
{gallery ? (
|
|
509
|
+
<LightboxStepButton
|
|
510
|
+
direction="next"
|
|
511
|
+
label={
|
|
512
|
+
state.controlLabels?.next ?? t("timeline.screenshotLightbox.nextImage")
|
|
513
|
+
}
|
|
514
|
+
onClick={() => step(1)}
|
|
515
|
+
/>
|
|
516
|
+
) : null}
|
|
517
|
+
</motion.div>
|
|
518
|
+
</Dialog.Content>
|
|
510
519
|
</motion.div>
|
|
511
|
-
</
|
|
520
|
+
</ModalLayer>
|
|
512
521
|
</DialogContainedPortal>
|
|
513
522
|
) : null}
|
|
514
523
|
</AnimatePresence>
|
package/src/ui/detail-sheet.tsx
CHANGED
|
@@ -20,6 +20,7 @@ import { SECTION_TITLE_CLASS } from "./section";
|
|
|
20
20
|
import { Sheet, SheetClose, SheetDescription, SheetTitle, SheetTrigger } from "./sheet";
|
|
21
21
|
import { Skeleton } from "./skeleton";
|
|
22
22
|
import { cn } from "../lib/cn";
|
|
23
|
+
import { ModalLayer, useDialogModal } from "../lib/modal-layer";
|
|
23
24
|
import { containedPortal } from "./portal-container";
|
|
24
25
|
import {
|
|
25
26
|
WindowBarOwnerReportContext,
|
|
@@ -102,50 +103,53 @@ export const DetailSheetContent = /* @__PURE__ */ forwardRef<
|
|
|
102
103
|
// has nothing to return focus to. Remember what had focus as the sheet
|
|
103
104
|
// opened (the row) and go back there on close.
|
|
104
105
|
const returnTo = useRef<HTMLElement | null>(null);
|
|
106
|
+
const modal = useDialogModal();
|
|
105
107
|
return (
|
|
106
108
|
<DialogContainedPortal>
|
|
107
|
-
<
|
|
109
|
+
<ModalLayer
|
|
110
|
+
modal={modal}
|
|
108
111
|
data-slot="detail-sheet-overlay"
|
|
109
|
-
className="fixed inset-0 z-50 bg-black/50 transition-
|
|
110
|
-
/>
|
|
111
|
-
<DialogPrimitive.Content
|
|
112
|
-
ref={ref}
|
|
113
|
-
data-slot="detail-sheet"
|
|
114
|
-
data-window-layer
|
|
115
|
-
{...props}
|
|
116
|
-
onOpenAutoFocus={(event) => {
|
|
117
|
-
// Focus hasn't moved yet: this is still the row that opened the sheet.
|
|
118
|
-
const active = document.activeElement;
|
|
119
|
-
returnTo.current =
|
|
120
|
-
active instanceof HTMLElement && active !== document.body ? active : null;
|
|
121
|
-
onOpenAutoFocus?.(event);
|
|
122
|
-
if (event.defaultPrevented) return;
|
|
123
|
-
// Land on the sheet itself: screen readers hear its title and
|
|
124
|
-
// description, and no control lights up before anyone asks.
|
|
125
|
-
event.preventDefault();
|
|
126
|
-
(event.currentTarget as HTMLElement | null)?.focus({ preventScroll: true });
|
|
127
|
-
}}
|
|
128
|
-
onCloseAutoFocus={(event) => {
|
|
129
|
-
onCloseAutoFocus?.(event);
|
|
130
|
-
if (event.defaultPrevented) return;
|
|
131
|
-
const target = returnTo.current;
|
|
132
|
-
returnTo.current = null;
|
|
133
|
-
if (target?.isConnected) {
|
|
134
|
-
event.preventDefault();
|
|
135
|
-
target.focus({ preventScroll: true });
|
|
136
|
-
}
|
|
137
|
-
}}
|
|
138
|
-
className={cn(
|
|
139
|
-
SHEET_PANEL,
|
|
140
|
-
"fixed inset-y-0 right-0 z-50 h-full w-full border-border outline-hidden sm:w-[520px] sm:max-w-[calc(100vw-2rem)] sm:border-l",
|
|
141
|
-
"transition-transform duration-200 ease-out starting:translate-x-full",
|
|
142
|
-
className,
|
|
143
|
-
)}
|
|
112
|
+
className="fixed inset-0 z-50 bg-black/50 transition-colors duration-200 starting:bg-transparent"
|
|
144
113
|
>
|
|
145
|
-
<
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
114
|
+
<DialogPrimitive.Content
|
|
115
|
+
ref={ref}
|
|
116
|
+
data-slot="detail-sheet"
|
|
117
|
+
data-window-layer
|
|
118
|
+
{...props}
|
|
119
|
+
onOpenAutoFocus={(event) => {
|
|
120
|
+
// Focus hasn't moved yet: this is still the row that opened the sheet.
|
|
121
|
+
const active = document.activeElement;
|
|
122
|
+
returnTo.current =
|
|
123
|
+
active instanceof HTMLElement && active !== document.body ? active : null;
|
|
124
|
+
onOpenAutoFocus?.(event);
|
|
125
|
+
if (event.defaultPrevented) return;
|
|
126
|
+
// Land on the sheet itself: screen readers hear its title and
|
|
127
|
+
// description, and no control lights up before anyone asks.
|
|
128
|
+
event.preventDefault();
|
|
129
|
+
(event.currentTarget as HTMLElement | null)?.focus({ preventScroll: true });
|
|
130
|
+
}}
|
|
131
|
+
onCloseAutoFocus={(event) => {
|
|
132
|
+
onCloseAutoFocus?.(event);
|
|
133
|
+
if (event.defaultPrevented) return;
|
|
134
|
+
const target = returnTo.current;
|
|
135
|
+
returnTo.current = null;
|
|
136
|
+
if (target?.isConnected) {
|
|
137
|
+
event.preventDefault();
|
|
138
|
+
target.focus({ preventScroll: true });
|
|
139
|
+
}
|
|
140
|
+
}}
|
|
141
|
+
className={cn(
|
|
142
|
+
SHEET_PANEL,
|
|
143
|
+
"fixed inset-y-0 right-0 z-50 h-full w-full border-border outline-hidden sm:w-[520px] sm:max-w-[calc(100vw-2rem)] sm:border-l",
|
|
144
|
+
"transition-transform duration-200 ease-out starting:translate-x-full",
|
|
145
|
+
className,
|
|
146
|
+
)}
|
|
147
|
+
>
|
|
148
|
+
<PresentationContext.Provider value="sheet">
|
|
149
|
+
<WindowBarTitleBoundary>{children}</WindowBarTitleBoundary>
|
|
150
|
+
</PresentationContext.Provider>
|
|
151
|
+
</DialogPrimitive.Content>
|
|
152
|
+
</ModalLayer>
|
|
149
153
|
</DialogContainedPortal>
|
|
150
154
|
);
|
|
151
155
|
});
|