@opengeni/react 6.36.1-canary.45090389523001 → 6.37.0
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 +31 -31
- package/dist/app/components/Composer.js +44 -44
- package/dist/app/components/add-card-dialog.js +1 -1
- package/dist/app/components/add-card.js +2 -2
- package/dist/app/components/agent/agent-capability-picker.js +9 -9
- package/dist/app/components/agents/agent-can-use.js +47 -46
- package/dist/app/components/agents/agent-form-page.js +143 -139
- package/dist/app/components/agents/agent-form-page.js.map +1 -1
- package/dist/app/components/agents/agent-page.js +125 -121
- package/dist/app/components/agents/agent-setup-sections.js +77 -73
- package/dist/app/components/agents/agent-skills.js +13 -13
- package/dist/app/components/agents/agent-trigger-chat-field.js +6 -6
- package/dist/app/components/agents/agent-trigger-dialog.js +34 -31
- package/dist/app/components/agents/agent-trigger-model.d.ts +14 -0
- package/dist/app/components/agents/agent-trigger-picker.js +9 -8
- package/dist/app/components/agents/agent-trigger-repositories.d.ts +9 -0
- package/dist/app/components/agents/agent-trigger-repositories.js +31 -0
- package/dist/app/components/agents/agents-page.css +1905 -0
- package/dist/app/components/agents/agents-page.css.map +1 -0
- package/dist/app/components/agents/agents-page.js +160 -115
- package/dist/app/components/agents/agents-page.js.map +1 -1
- package/dist/app/components/agents/composer-agent-chip.js +60 -60
- package/dist/app/components/agents/session-agent-chip.js +55 -55
- package/dist/app/components/artifacts/app-package.js +11 -11
- package/dist/app/components/artifacts/artifact-browse-controls.js +3 -3
- package/dist/app/components/artifacts/artifact-library.css +1905 -0
- package/dist/app/components/artifacts/artifact-library.css.map +1 -0
- package/dist/app/components/artifacts/artifact-library.js +28 -28
- package/dist/app/components/artifacts/artifact-page-chrome.js +1 -1
- package/dist/app/components/artifacts/artifact-viewer.css +1905 -0
- package/dist/app/components/artifacts/artifact-viewer.css.map +1 -0
- package/dist/app/components/artifacts/artifact-viewer.js +65 -65
- package/dist/app/components/artifacts/chat-interactive-block.js +27 -27
- package/dist/app/components/artifacts/copy-artifact-link.js +1 -1
- package/dist/app/components/artifacts/file-reach-dialog.js +12 -12
- package/dist/app/components/artifacts/inline-chat-image.js +52 -52
- package/dist/app/components/artifacts/ready-made-apps.css +1905 -0
- package/dist/app/components/artifacts/ready-made-apps.css.map +1 -0
- package/dist/app/components/artifacts/ready-made-apps.d.ts +3 -0
- package/dist/app/components/artifacts/ready-made-apps.js +40 -0
- package/dist/app/components/artifacts/retained-file-preview.js +58 -58
- package/dist/app/components/artifacts/retained-text-preview.js +8 -8
- package/dist/app/components/artifacts/site-actions.js +12 -12
- package/dist/app/components/artifacts/site-audience.js +7 -7
- package/dist/app/components/artifacts/site-conversations.js +34 -34
- package/dist/app/components/artifacts/site-data.js +26 -26
- package/dist/app/components/artifacts/site-public-link.js +3 -3
- package/dist/app/components/artifacts/site-publishing-page.js +69 -69
- package/dist/app/components/artifacts/site-publishing.js +54 -54
- package/dist/app/components/artifacts/site-settings.js +68 -68
- package/dist/app/components/artifacts/site-version-menu.js +9 -9
- package/dist/app/components/billing-class-mark.js +7 -7
- package/dist/app/components/capabilities/capability-detail-sheet.js +17 -17
- package/dist/app/components/capabilities/capability-logo-source.js +29 -28
- package/dist/app/components/capabilities/capability-logo.js +1 -1
- package/dist/app/components/capabilities/connection-account-picker.js +2 -2
- package/dist/app/components/capabilities/connector-tool-permissions.js +8 -8
- package/dist/app/components/capabilities/native-connect-setup.js +32 -31
- package/dist/app/components/capabilities/own-logins-shared-heads-up.js +6 -6
- package/dist/app/components/capabilities/perform-capability-action.js +4 -4
- package/dist/app/components/capabilities/prepared-mcp-setup-card.js +32 -31
- package/dist/app/components/capabilities/session-capability-card.js +141 -140
- package/dist/app/components/capabilities/session-capability-card.js.map +1 -1
- package/dist/app/components/capabilities/session-chrome-card.js +48 -48
- package/dist/app/components/capabilities/session-connect-inputs-card.js +34 -33
- package/dist/app/components/capabilities/session-custom-mcp-card.js +39 -38
- package/dist/app/components/capabilities/session-github-card.js +44 -43
- package/dist/app/components/capabilities/session-machine-card.js +49 -49
- package/dist/app/components/capabilities/session-personal-github-card.js +33 -32
- package/dist/app/components/capabilities/session-plugin-card.js +21 -21
- package/dist/app/components/capabilities/use-capabilities-catalog.js +1 -1
- package/dist/app/components/capabilities/use-connection-accounts.js +3 -3
- package/dist/app/components/chat-payment-pages.js +2 -2
- package/dist/app/components/command-menu/chat-status.js +26 -26
- package/dist/app/components/command-menu/chat-switcher.js +86 -86
- package/dist/app/components/command-menu/command-menu.js +110 -110
- package/dist/app/components/command-menu/shortcut-sheet.js +24 -24
- package/dist/app/components/composer-capabilities-menu-body.js +7 -7
- package/dist/app/components/composer-mobile-plus-panel.js +29 -29
- package/dist/app/components/composer-mobile-plus.js +3 -3
- package/dist/app/components/credit-required-gate.js +6 -6
- package/dist/app/components/credit-required-prompt.js +20 -20
- package/dist/app/components/credits/checkout-credits-celebration.js +1 -1
- package/dist/app/components/credits/checkout-return.js +1 -1
- package/dist/app/components/credits/coupon-redeem.js +1 -1
- package/dist/app/components/credits/credit-refusal-notice.js +8 -8
- package/dist/app/components/credits/own-subscription-plan-notice.js +3 -3
- package/dist/app/components/desktop/app-shots.js +9 -9
- package/dist/app/components/desktop/app-update.js +3 -3
- package/dist/app/components/desktop/computer-use.js +3 -3
- package/dist/app/components/desktop/this-computer.js +6 -6
- package/dist/app/components/feedback.js +10 -10
- package/dist/app/components/follow-up-repository-menu-body.js +14 -14
- 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/in-app-help-link.js +3 -3
- package/dist/app/components/knowledge/agent-learning-settings.js +3 -3
- package/dist/app/components/machines/connect-machine-dialog.js +24 -24
- package/dist/app/components/manual-repository-editor.js +3 -3
- package/dist/app/components/markdown.js +16 -16
- package/dist/app/components/model-identity.js +3 -3
- package/dist/app/components/models/models-ui.js +17 -17
- package/dist/app/components/models/provider-mark.js +3 -3
- package/dist/app/components/models/subscription-usage.js +5 -5
- package/dist/app/components/my-things.js +15 -15
- package/dist/app/components/own-where-it-works.js +10 -10
- package/dist/app/components/personal-resource-attachment-surface.js +4 -4
- package/dist/app/components/pickers.js +12 -12
- package/dist/app/components/rail/channel-create-dialog.js +6 -6
- package/dist/app/components/rail/project-glyph.js +53 -53
- package/dist/app/components/rail/project-profile.js +74 -74
- package/dist/app/components/rail/rail-context.js +2 -2
- package/dist/app/components/rail/rail-sections.js +157 -157
- package/dist/app/components/rail/session-header.js +124 -124
- package/dist/app/components/rail/session-list.js +156 -156
- package/dist/app/components/rail/session-row-content.js +6 -6
- package/dist/app/components/rail/session-row-hover-details.js +37 -37
- package/dist/app/components/rail/session-shell.js +194 -194
- package/dist/app/components/rail/site-session-group-heading.js +36 -36
- package/dist/app/components/repository-picker.js +14 -14
- package/dist/app/components/secrets/session-secrets-panel.js +4 -4
- package/dist/app/components/session/agent-configuration-panel.js +48 -48
- package/dist/app/components/session/artifact-session-page.js +7 -7
- package/dist/app/components/session/banners.js +20 -20
- package/dist/app/components/session/chat-avatar.js +53 -53
- package/dist/app/components/session/console-new-conversation.js +111 -111
- package/dist/app/components/session/descendant-requests.js +109 -109
- package/dist/app/components/session/editable-artifacts-workspace.css +1905 -0
- package/dist/app/components/session/editable-artifacts-workspace.css.map +1 -0
- package/dist/app/components/session/editable-artifacts-workspace.js +59 -59
- package/dist/app/components/session/failed-session-banner.js +27 -27
- package/dist/app/components/session/failure-recovery-boundary.js +3 -3
- package/dist/app/components/session/human-input-delegation-record.js +3 -3
- package/dist/app/components/session/human-input.js +88 -88
- package/dist/app/components/session/inspector.js +146 -146
- package/dist/app/components/session/linked-panel.js +3 -3
- package/dist/app/components/session/message-actions.js +10 -10
- package/dist/app/components/session/model-recovery-notice.js +4 -4
- package/dist/app/components/session/new-session-settings-menu.js +29 -29
- package/dist/app/components/session/new-session-setup-strip.js +56 -56
- package/dist/app/components/session/pull-request-panel.js +25 -25
- package/dist/app/components/session/sandbox-recovery-actions.js +3 -3
- package/dist/app/components/session/sandbox-switcher.js +22 -22
- package/dist/app/components/session/sandbox-workspace.js +119 -119
- package/dist/app/components/session/search-markdown-highlight.js +17 -17
- package/dist/app/components/session/search-results-view.js +18 -18
- package/dist/app/components/session/session-admin-access.js +13 -13
- package/dist/app/components/session/session-admission-notice.js +11 -11
- package/dist/app/components/session/session-avatar-picker.js +60 -60
- package/dist/app/components/session/session-avatar.js +55 -55
- package/dist/app/components/session/session-machine-access-notice.js +11 -11
- package/dist/app/components/session/session-profile-dialog.js +71 -71
- package/dist/app/components/session/session-profile-editor.js +72 -72
- package/dist/app/components/session/session-retention.js +6 -6
- package/dist/app/components/session/session-search-dialog.js +20 -20
- package/dist/app/components/session/session-skill-reviews.js +5 -5
- package/dist/app/components/session/session-tenancy-control.js +26 -26
- package/dist/app/components/session/session-unattended-setting.js +1 -1
- package/dist/app/components/session/session-usage-limit-section.js +11 -11
- package/dist/app/components/session/share-chat-dialog.js +10 -10
- package/dist/app/components/session/subagents.js +23 -23
- package/dist/app/components/session/subscription-account-indicator.js +25 -25
- package/dist/app/components/session/subscription-account-menu.js +7 -7
- package/dist/app/components/session-connectors-menu-body.js +10 -10
- package/dist/app/components/settings/row-select.js +6 -6
- package/dist/app/components/toaster.js +2 -2
- package/dist/app/components/transcription-settings.js +10 -10
- package/dist/app/components/ui/destructive-confirm.js +10 -10
- package/dist/app/components/usage/usage-entry.js +8 -8
- package/dist/app/components/window-bar.js +25 -25
- package/dist/app/components/workspace-composer-plus.js +43 -42
- package/dist/app/components/workspace-reach.js +6 -6
- package/dist/app/embed/session-app.js +398 -397
- package/dist/app/lib/actions/actions-provider.js +18 -18
- package/dist/app/lib/agent-capabilities.js +4 -4
- package/dist/app/lib/app-connect-card.js +14 -14
- package/dist/app/lib/app-shared-key-dialog.js +8 -8
- package/dist/app/lib/app-surfaces.js +1 -1
- package/dist/app/lib/app-sync-opt-in.js +4 -4
- package/dist/app/lib/codex-usage-query.js +3 -3
- package/dist/app/lib/composer-agent.js +2 -2
- package/dist/app/lib/composer-connectors.js +33 -32
- package/dist/app/lib/composer-send-blocking.js +2 -2
- package/dist/app/lib/console-site.js +6 -6
- package/dist/app/lib/console-text.js +2 -2
- package/dist/app/lib/events.js +30 -30
- package/dist/app/lib/failed-session-copy.js +5 -5
- package/dist/app/lib/feedback-capture.js +2 -2
- package/dist/app/lib/model-access-onboarding.js +4 -4
- package/dist/app/lib/move-chat-to-machine.js +5 -5
- package/dist/app/lib/personal-resource-attachments.js +1 -1
- package/dist/app/lib/ready-made-apps.d.ts +14 -0
- package/dist/app/lib/ready-made-apps.js +8 -0
- package/dist/app/lib/session-branch-cache.js +19 -19
- package/dist/app/lib/session-create.js +5 -5
- package/dist/app/lib/session-group-pagination.js +19 -19
- package/dist/app/lib/session-hover-facts.js +26 -26
- package/dist/app/lib/session-list-dirty-scopes.js +20 -20
- package/dist/app/lib/session-model.js +2 -2
- package/dist/app/lib/session-rail.js +16 -16
- package/dist/app/lib/session-rename.js +3 -3
- package/dist/app/lib/sessions-group.js +23 -23
- package/dist/app/lib/site-tool-consent-dialog.js +23 -23
- package/dist/app/lib/site-tool-consent.js +1 -1
- package/dist/app/lib/turn-failure-analytics.js +7 -7
- package/dist/app/lib/use-artifact-catalog.js +2 -2
- package/dist/app/lib/use-duplicate-site.js +4 -4
- package/dist/app/lib/use-follow-up-repositories.js +5 -5
- package/dist/app/lib/use-personal-resource-attachment.js +2 -2
- package/dist/app/lib/use-workspace-machines.js +9 -9
- package/dist/app/lib/use-workspace-model-catalog.js +6 -6
- package/dist/app/lib/use-workspace-rigs.js +6 -6
- package/dist/app/lib/workspace-navigation-preference.js +5 -5
- package/dist/app/lib/workspace-scope-context.js +4 -4
- package/dist/app/routes/app-page-view.js +17 -17
- package/dist/app/routes/app-page.js +2 -2
- package/dist/app/routes/artifacts.css +1905 -0
- package/dist/app/routes/artifacts.css.map +1 -0
- package/dist/app/routes/artifacts.js +188 -177
- package/dist/app/routes/artifacts.js.map +1 -1
- package/dist/app/routes/retained-artifact.js +109 -109
- package/dist/app/routes/session-unavailable.js +5 -5
- package/dist/app/routes/session.js +250 -249
- package/dist/app/routes/sessions-index-hydration.js +6 -6
- package/dist/app/routes/sessions-index.js +208 -207
- package/dist/app/routes/site-view.js +197 -197
- package/dist/artifacts-document.js +4 -4
- package/dist/artifacts-presentation.js +7 -7
- package/dist/artifacts-spreadsheet.js +4 -4
- package/dist/artifacts.js +50 -50
- package/dist/automation-model.js +6 -6
- package/dist/automations.d.ts +1 -0
- package/dist/automations.js +81 -74
- package/dist/automations.js.map +1 -1
- package/dist/browser-viewer-5JGSKIXX.js +23 -0
- package/dist/chat-interactive-block-NEDFTOGE.js +22 -0
- package/dist/chunk-22SXRKET.js +72 -0
- package/dist/chunk-2JR7LEST.js +357 -0
- package/dist/chunk-2L6B6766.js +5915 -0
- package/dist/chunk-2L6B6766.js.map +1 -0
- package/dist/chunk-2LBYEHBH.js +570 -0
- package/dist/chunk-2MHIIF4N.js +141 -0
- package/dist/chunk-2NABGWXC.js +391 -0
- package/dist/chunk-2PTBF6GM.js +92 -0
- package/dist/chunk-2PTBF6GM.js.map +1 -0
- package/dist/chunk-2VX42S4W.js +773 -0
- package/dist/chunk-2X7I6LXY.js +111 -0
- package/dist/chunk-34LWIEIZ.js +399 -0
- package/dist/chunk-3F45ELUO.js +1187 -0
- package/dist/chunk-3J6ENWZF.js +93 -0
- package/dist/chunk-3PTEMOSW.js +129 -0
- package/dist/chunk-3UA2SOK2.js +83 -0
- package/dist/chunk-3YKED2ZV.js +307 -0
- package/dist/chunk-44MYJQ72.js +129 -0
- package/dist/chunk-46UZ5ZYU.js +532 -0
- package/dist/chunk-4NXQWXQY.js +230 -0
- package/dist/chunk-4OGDD2EM.js +2434 -0
- package/dist/chunk-4PSB2CK7.js +412 -0
- package/dist/chunk-4R74CAIF.js +283 -0
- package/dist/chunk-4RGFBD4M.js +4565 -0
- package/dist/chunk-4SNYMZBC.js +389 -0
- package/dist/chunk-4ST37B5I.js +4957 -0
- package/dist/chunk-4ST37B5I.js.map +1 -0
- package/dist/chunk-4UAHTM3Q.js +107 -0
- package/dist/chunk-4YWHOAB4.js +201 -0
- package/dist/chunk-5AHIKB3O.js +449 -0
- package/dist/chunk-5AXIZJX4.js +84 -0
- package/dist/chunk-5CEQ356Z.js +353 -0
- package/dist/chunk-5ERDSF2C.js +79 -0
- package/dist/chunk-5G6UHUJZ.js +43 -0
- package/dist/chunk-5H3SJHDT.js +137 -0
- package/dist/chunk-5ZTVBNMS.js +162 -0
- package/dist/chunk-5ZUARMG2.js +211 -0
- package/dist/chunk-6AGNZI2W.js +437 -0
- package/dist/chunk-6F34IWSA.js +47 -0
- package/dist/chunk-6F34IWSA.js.map +1 -0
- package/dist/chunk-6IIJ4H4O.js +407 -0
- package/dist/chunk-6YCYPXDA.js +114 -0
- package/dist/chunk-6YTNMDFP.js +318 -0
- package/dist/chunk-6ZJU2B3Z.js +50 -0
- package/dist/chunk-73O7NO3F.js +50 -0
- package/dist/chunk-7456QZAA.js +340 -0
- package/dist/chunk-754NH7T2.js +383 -0
- package/dist/chunk-7GS2MGFU.js +27 -0
- package/dist/chunk-7IR7EOTR.js +3070 -0
- package/dist/chunk-7MH4TTVE.js +132 -0
- package/dist/chunk-7N35XBSC.js +386 -0
- package/dist/chunk-7ND2VMKV.js +270 -0
- package/dist/chunk-7RVJLO3N.js +154 -0
- package/dist/chunk-7X443ZTQ.js +246 -0
- package/dist/chunk-7XZO4W76.js +1152 -0
- package/dist/chunk-ABGHRGID.js +376 -0
- package/dist/chunk-ABGHRGID.js.map +1 -0
- package/dist/chunk-AEH34OOU.js +298 -0
- package/dist/chunk-AML5X74C.js +538 -0
- package/dist/chunk-AVIOWKKJ.js +246 -0
- package/dist/chunk-AY4XH73V.js +1333 -0
- package/dist/chunk-BGT43KDL.js +42 -0
- package/dist/chunk-BHS4KW4W.js +3851 -0
- package/dist/chunk-BKJXUACP.js +366 -0
- package/dist/chunk-BNWO72C2.js +851 -0
- package/dist/chunk-BT5EOSQF.js +65 -0
- package/dist/chunk-BVFOLLMQ.js +229 -0
- package/dist/chunk-CC2IVNVR.js +572 -0
- package/dist/chunk-CGVMECYX.js +131 -0
- package/dist/chunk-CLERWAEA.js +2317 -0
- package/dist/chunk-COCLT77F.js +818 -0
- package/dist/chunk-COIXX62I.js +723 -0
- package/dist/chunk-D32VVOBJ.js +738 -0
- package/dist/chunk-D32VVOBJ.js.map +1 -0
- package/dist/chunk-DHVA3T3K.js +271 -0
- package/dist/chunk-DKM3JBGJ.js +335 -0
- package/dist/chunk-DNRVXHUW.js +187 -0
- package/dist/chunk-DP4MGOBG.js +158 -0
- package/dist/chunk-DRVT6TRP.js +270 -0
- package/dist/chunk-DV3OECO6.js +333 -0
- package/dist/chunk-DYQRNIID.js +73 -0
- package/dist/chunk-DZZSFPMW.js +66 -0
- package/dist/chunk-DZZSFPMW.js.map +1 -0
- package/dist/chunk-E45JRR3J.js +138 -0
- package/dist/chunk-E5EICKKB.js +469 -0
- package/dist/chunk-E7FNLQXM.js +400 -0
- package/dist/chunk-EFBPHDPP.js +170 -0
- package/dist/chunk-EJ6IIEZX.js +554 -0
- package/dist/chunk-ENYULVQW.js +114 -0
- package/dist/chunk-EXBIL5BF.js +247 -0
- package/dist/chunk-F23TR625.js +283 -0
- package/dist/chunk-F45CPW3Y.js +3321 -0
- package/dist/chunk-F5C5T2PF.js +401 -0
- package/dist/chunk-F5C7DTVR.js +103 -0
- package/dist/chunk-F5RP42TL.js +598 -0
- package/dist/chunk-F5RP42TL.js.map +1 -0
- package/dist/chunk-F6D6X5ZU.js +378 -0
- package/dist/chunk-F6LVPEBK.js +188 -0
- package/dist/chunk-FARCOS2S.js +274 -0
- package/dist/chunk-FEQVCQMK.js +138 -0
- package/dist/chunk-FGHWU4LX.js +113 -0
- package/dist/chunk-FHNBUDXL.js +351 -0
- package/dist/chunk-FLDF2Z44.js +396 -0
- package/dist/chunk-FT3AUAXE.js +1309 -0
- package/dist/chunk-FWIV2FTX.js +26 -0
- package/dist/chunk-GGIPEZLL.js +849 -0
- package/dist/chunk-GGPZPBHS.js +215 -0
- package/dist/chunk-GHXIVKQH.js +67 -0
- package/dist/chunk-GIEGIEMT.js +311 -0
- package/dist/chunk-GLBILBET.js +166 -0
- package/dist/chunk-GMMB4NCN.js +250 -0
- package/dist/chunk-GP7MYBSX.js +56 -0
- package/dist/chunk-GYHL6IRO.js +404 -0
- package/dist/chunk-HGS5JWZR.js +126 -0
- package/dist/chunk-HRFAQYOA.js +124 -0
- package/dist/chunk-HUKGLWAY.js +174 -0
- package/dist/chunk-HUTQJY3F.js +23 -0
- package/dist/chunk-HWOYJOKK.js +266 -0
- package/dist/chunk-HYFNKXHR.js +251 -0
- package/dist/chunk-HYNTTDG6.js +1019 -0
- package/dist/chunk-HZ5DTSAG.js +57 -0
- package/dist/chunk-I2WTJMQF.js +3110 -0
- package/dist/chunk-I7HYF6MQ.js +1803 -0
- package/dist/chunk-I7HYF6MQ.js.map +1 -0
- package/dist/chunk-IBHUF5BN.js +278 -0
- package/dist/chunk-IH3J7VWW.js +85 -0
- package/dist/chunk-IHX5BADQ.js +200 -0
- package/dist/chunk-IL5ME4MQ.js +380 -0
- package/dist/chunk-IL5ME4MQ.js.map +1 -0
- package/dist/chunk-IL6PCX7K.js +91 -0
- package/dist/chunk-IOMZDY5D.js +199 -0
- package/dist/chunk-IPFSFSIK.js +428 -0
- package/dist/chunk-ISR6KXWT.js +898 -0
- package/dist/chunk-IYUZPNMU.js +79 -0
- package/dist/chunk-IYUZPNMU.js.map +1 -0
- package/dist/chunk-J2GIGAVJ.js +107 -0
- package/dist/chunk-J4OOKDRV.js +40 -0
- package/dist/chunk-J5D5OCQF.js +371 -0
- package/dist/chunk-JTSLGUVP.js +196 -0
- package/dist/chunk-JXIBVYRA.js +276 -0
- package/dist/chunk-JY2UEPJP.js +33 -0
- package/dist/chunk-KI2TGJVH.js +41 -0
- package/dist/chunk-KPTKQULD.js +287 -0
- package/dist/chunk-KYDLVMKA.js +99 -0
- package/dist/chunk-KZQDP2JM.js +155 -0
- package/dist/chunk-L2Q4HMVJ.js +202 -0
- package/dist/chunk-LCRYAD3X.js +259 -0
- package/dist/chunk-LFQI2C46.js +175 -0
- package/dist/chunk-M4ZYHLFU.js +292 -0
- package/dist/chunk-M5FX5KH5.js +629 -0
- package/dist/chunk-MAR5UYX4.js +191 -0
- package/dist/chunk-MATYGLUT.js +121 -0
- package/dist/chunk-MCXTYDFG.js +449 -0
- package/dist/chunk-MDI6SH7B.js +27 -0
- package/dist/chunk-MIMSPOV4.js +1356 -0
- package/dist/chunk-MM4NP5QA.js +98 -0
- package/dist/chunk-MQTYIBY6.js +263 -0
- package/dist/chunk-MSHWYGCH.js +175 -0
- package/dist/chunk-MSIQ42IY.js +794 -0
- package/dist/chunk-MXRCKJOQ.js +2553 -0
- package/dist/chunk-MXSZQ6DP.js +296 -0
- package/dist/chunk-N37BLJOI.js +2412 -0
- package/dist/chunk-N556VQMT.js +406 -0
- package/dist/chunk-NL7VJGFZ.js +1021 -0
- package/dist/chunk-NLJEDAKV.js +2984 -0
- package/dist/chunk-NUZNJSL5.js +285 -0
- package/dist/chunk-O3LOQDTI.js +176 -0
- package/dist/chunk-O4ZXJ52Z.js +772 -0
- package/dist/chunk-O5PZRVQR.js +214 -0
- package/dist/chunk-OEOLXODE.js +373 -0
- package/dist/chunk-OZGECHF5.js +52 -0
- package/dist/chunk-P4N7ZS6W.js +56 -0
- package/dist/chunk-P6LSLNSL.js +209 -0
- package/dist/chunk-PC2JAIAH.js +117 -0
- package/dist/chunk-PCSRHFRF.js +75 -0
- package/dist/chunk-PEAJRZU3.js +134 -0
- package/dist/chunk-PGMXITPB.js +85 -0
- package/dist/chunk-PJ42LTJE.js +249 -0
- package/dist/chunk-PJ66EIWE.js +82 -0
- package/dist/chunk-PKH6MYAK.js +311 -0
- package/dist/chunk-PMBZMVKE.js +33 -0
- package/dist/chunk-PTSRBKQC.js +118 -0
- package/dist/chunk-QD4J7AHU.js +1024 -0
- package/dist/chunk-QD6A4G7Y.js +158 -0
- package/dist/chunk-QEXHABRN.js +265 -0
- package/dist/chunk-QHYLEJP7.js +505 -0
- package/dist/chunk-QL4Q332Z.js +12 -0
- package/dist/chunk-QL5227KT.js +1184 -0
- package/dist/chunk-QMRHY45R.js +107 -0
- package/dist/chunk-QPA7ATJH.js +103 -0
- package/dist/chunk-QREYGVWO.js +297 -0
- package/dist/chunk-QREYGVWO.js.map +1 -0
- package/dist/chunk-QXPKUKOV.js +227 -0
- package/dist/chunk-R2T4IUNB.js +29 -0
- package/dist/chunk-R6CFPY3F.js +278 -0
- package/dist/chunk-R6OBJ7LF.js +131 -0
- package/dist/chunk-R6WQLIFX.js +73 -0
- package/dist/chunk-RA3NTKSW.js +1236 -0
- package/dist/chunk-RJWTAS4V.js +523 -0
- package/dist/chunk-RJZALNT5.js +391 -0
- package/dist/chunk-RMDLTRLI.js +372 -0
- package/dist/chunk-RVPH6BB7.js +218 -0
- package/dist/chunk-RVXLSVJH.js +931 -0
- package/dist/chunk-RWHDMGFG.js +214 -0
- package/dist/chunk-RYB3WBMZ.js +113 -0
- package/dist/chunk-S2525GSA.js +403 -0
- package/dist/chunk-S3BLYPOG.js +175 -0
- package/dist/chunk-S7J4HBPP.js +584 -0
- package/dist/chunk-SA3XI7FB.js +108 -0
- package/dist/chunk-SN2QZSJU.js +168 -0
- package/dist/chunk-SNACGK3Z.js +177 -0
- package/dist/chunk-SUXGKBCW.js +3690 -0
- package/dist/chunk-SWTPVMR4.js +251 -0
- package/dist/chunk-SXXWPTL7.js +269 -0
- package/dist/chunk-T2IFOASN.js +4480 -0
- package/dist/chunk-T2IFOASN.js.map +1 -0
- package/dist/chunk-T2N6JC5H.js +37 -0
- package/dist/chunk-TBUOHK6R.js +608 -0
- package/dist/chunk-TCUAGCAX.js +1628 -0
- package/dist/chunk-TGAKM3WX.js +187 -0
- package/dist/chunk-TGG3ODCS.js +99 -0
- package/dist/chunk-THWN4STY.js +850 -0
- package/dist/chunk-THWN4STY.js.map +1 -0
- package/dist/chunk-TMZ6RP3K.js +234 -0
- package/dist/chunk-TNE7ZYGN.js +2551 -0
- package/dist/chunk-TWSO5S3E.js +234 -0
- package/dist/chunk-U2TOOZIY.js +46 -0
- package/dist/chunk-UBM3IM6K.js +48 -0
- package/dist/chunk-UBR3CGJC.js +5089 -0
- package/dist/chunk-UFRXYZCJ.js +125 -0
- package/dist/chunk-UJNDUO7D.js +379 -0
- package/dist/chunk-UPRN4FBY.js +38 -0
- package/dist/chunk-UXGTI4HR.js +184 -0
- package/dist/chunk-UZKAHEQO.js +172 -0
- package/dist/chunk-V6ZJKHVS.js +1095 -0
- package/dist/chunk-VHYDZMGS.js +3176 -0
- package/dist/chunk-VIKXHP44.js +2580 -0
- package/dist/chunk-VJJKN675.js +10044 -0
- package/dist/chunk-VJJKN675.js.map +1 -0
- package/dist/chunk-VLDKWGHD.js +61 -0
- package/dist/chunk-VRS6VNHP.js +441 -0
- package/dist/chunk-VT5XHR5J.js +256 -0
- package/dist/chunk-VVLUVHF5.js +1177 -0
- package/dist/chunk-VVLUVHF5.js.map +1 -0
- package/dist/chunk-VVW2CBWK.js +21 -0
- package/dist/chunk-VVW2CBWK.js.map +1 -0
- package/dist/chunk-W7RKXZDV.js +112 -0
- package/dist/chunk-WBNSC6RJ.js +114 -0
- package/dist/chunk-WEPL76AR.js +110 -0
- package/dist/chunk-WJ2STMQD.js +236 -0
- package/dist/chunk-WSQ3TCOX.js +1263 -0
- package/dist/chunk-WT37FEG3.js +144 -0
- package/dist/chunk-WUKLEDKK.js +639 -0
- package/dist/chunk-X3T3N6W5.js +1022 -0
- package/dist/chunk-X7YUQ4WO.js +3996 -0
- package/dist/chunk-X7YUQ4WO.js.map +1 -0
- package/dist/chunk-XCEHQ3SO.js +316 -0
- package/dist/chunk-XCEHQ3SO.js.map +1 -0
- package/dist/chunk-XKJCFK2G.js +162 -0
- package/dist/chunk-XKLXYIIT.js +1185 -0
- package/dist/chunk-XMTBNLD2.js +650 -0
- package/dist/chunk-XZLNVFB4.js +515 -0
- package/dist/chunk-XZRMTHHW.js +15 -0
- package/dist/chunk-Y3ME7IF6.js +406 -0
- package/dist/chunk-Y6CNWBV3.js +264 -0
- package/dist/chunk-YJYKB6ZT.js +192 -0
- package/dist/chunk-YL2NFFXW.js +197 -0
- package/dist/chunk-YL2NFFXW.js.map +1 -0
- package/dist/chunk-YP4SNX4P.js +220 -0
- package/dist/chunk-YR7U2KDA.js +828 -0
- package/dist/chunk-YS6BQNHF.js +231 -0
- package/dist/chunk-Z7UBLC6V.js +133 -0
- package/dist/chunk-ZD67RM6G.js +60 -0
- package/dist/chunk-ZGBMDDFR.js +207 -0
- package/dist/chunk-ZGR7LNXC.js +432 -0
- package/dist/chunk-ZJICGGPI.js +48 -0
- package/dist/chunk-ZLKHNJCQ.js +178 -0
- package/dist/chunk-ZNA65Q6Y.js +20 -0
- package/dist/components/automations/pasted-webhook-steps.d.ts +29 -0
- package/dist/components/browser-viewer.d.ts +4 -1
- package/dist/components/human-input-form.d.ts +3 -4
- package/dist/components/use-fit-browser-viewport.d.ts +10 -0
- package/dist/composer.js +36 -36
- package/dist/computer-viewer-FHCBTSZH.js +21 -0
- package/dist/connect.js +33 -31
- package/dist/connection-step-up-JLORUM6D.js +146 -0
- package/dist/connection-step-up-JLORUM6D.js.map +1 -0
- package/dist/desktop-dictation.js +24 -24
- package/dist/desktop.js +2 -2
- package/dist/editor.js +2 -2
- package/dist/embedded-new-voice-BFTQZPJK.js +25 -0
- package/dist/embedded-voice-CQE2GO6Y.js +25 -0
- package/dist/fleet-decision-row-FJPAWNOQ.js +361 -0
- package/dist/in-chat-connect-model.js +5 -5
- package/dist/index.js +292 -292
- package/dist/interaction.js +9 -9
- package/dist/latest-question-F3VPDR7U.js +1 -1
- package/dist/machine-request-model.js +1 -1
- package/dist/machines.js +8 -8
- package/dist/meetings-recorder.js +1 -1
- package/dist/meetings.js +116 -116
- package/dist/messages/en.d.ts +1 -1
- package/dist/messages.js +1 -1
- package/dist/model-policy-picker-menu-PVBT2OZO.js +23 -0
- package/dist/payment-page-card-YPCRVFHE.js +226 -0
- package/dist/platform-activity-row-ZWACJPNQ.js +156 -0
- package/dist/queue-surface-implementation-C7ESPZW7.js +932 -0
- package/dist/realtime.js +17 -17
- package/dist/recorder-host-YPWPLMS6.js +80 -0
- package/dist/recordings.js +3 -3
- package/dist/sandbox-files-6L2GRNOG.js +28 -0
- package/dist/sandbox-files-6L2GRNOG.js.map +1 -0
- package/dist/session-app.js +398 -397
- package/dist/session-connect-cards-2TRJ5IWB.js +27 -0
- package/dist/session-connect-cards-2TRJ5IWB.js.map +1 -0
- package/dist/session-list-model.js +2 -2
- package/dist/session-realtime-AKDUKFY4.js +30 -0
- package/dist/session-realtime-AKDUKFY4.js.map +1 -0
- package/dist/session-realtime.js +2 -2
- package/dist/session-ui.js +95 -95
- package/dist/session.js +42 -42
- package/dist/sites.js +3 -3
- package/dist/terminal.js +2 -2
- package/dist/this-computer.js +3 -3
- package/dist/timeline-annotation-markers-7QSYK22C.js +157 -0
- package/dist/timeline-annotation-selection-XYNMESWL.js +208 -0
- package/dist/timeline-annotations-dialog-WSI6L2CP.js +283 -0
- package/dist/timeline-model.js +58 -58
- package/dist/ui/access-list.js +23 -23
- package/dist/ui/cadence-picker.js +7 -7
- package/dist/ui/choice-cards.js +3 -3
- package/dist/ui/confirm-dialog.js +2 -2
- package/dist/ui/copy-field.js +3 -3
- package/dist/ui/detail-page.js +5 -5
- package/dist/ui/detail-sheet.js +5 -5
- package/dist/ui/diff-view.js +3 -3
- package/dist/ui/disclosure.js +6 -6
- package/dist/ui/email-chips-input.js +3 -3
- package/dist/ui/field.js +2 -2
- package/dist/ui/flush-form-page.js +7 -7
- package/dist/ui/form-dialog.js +6 -6
- package/dist/ui/list-row.js +6 -6
- package/dist/ui/load-failure.js +3 -3
- package/dist/ui/relative-time.js +3 -3
- package/dist/ui/revision-history.js +13 -13
- package/dist/ui/role-select.js +11 -11
- package/dist/ui/select-menu.js +5 -5
- package/dist/ui/settings-nav.js +6 -6
- package/dist/ui/sheet.js +2 -2
- package/dist/ui/usage-meter.js +4 -4
- package/dist/usage.js +3 -3
- package/dist/workbench.js +11 -11
- package/package.json +5 -6
- package/src/app/components/agents/agent-skills.tsx +21 -18
- package/src/app/components/agents/agent-trigger-dialog.tsx +80 -119
- package/src/app/components/agents/agent-trigger-model.ts +47 -0
- package/src/app/components/agents/agent-trigger-repositories.tsx +88 -0
- package/src/app/components/agents/agents-page.tsx +118 -38
- package/src/app/components/artifacts/ready-made-apps.tsx +84 -0
- package/src/app/lib/ready-made-apps.tsx +42 -0
- package/src/app/routes/artifacts.tsx +11 -0
- package/src/automations.ts +8 -2
- package/src/components/automations/pasted-webhook-steps.tsx +89 -0
- package/src/components/browser-viewer.tsx +49 -7
- package/src/components/human-input-form.tsx +16 -5
- package/src/components/secret-question-field.tsx +42 -32
- package/src/components/use-fit-browser-viewport.ts +84 -0
- package/src/messages/en.ts +1 -1
- package/dist/browser-viewer-EIEMRVFF.js +0 -23
- package/dist/chat-interactive-block-FV37LWYZ.js +0 -22
- package/dist/chunk-2COBAJC7.js +0 -818
- package/dist/chunk-2HS3IUXE.js +0 -170
- package/dist/chunk-2IPAGZEO.js +0 -124
- package/dist/chunk-2JRHAEIT.js +0 -1095
- package/dist/chunk-2XGRHMRI.js +0 -250
- package/dist/chunk-34MODHMH.js +0 -56
- package/dist/chunk-34UXLCRX.js +0 -340
- package/dist/chunk-3HAEQMR4.js +0 -772
- package/dist/chunk-3SBKYPNM.js +0 -270
- package/dist/chunk-3Z7VA6ET.js +0 -114
- package/dist/chunk-46LZO4ZO.js +0 -188
- package/dist/chunk-46ZC5VNC.js +0 -38
- package/dist/chunk-4AH4EEHE.js +0 -298
- package/dist/chunk-4CJD7TMQ.js +0 -48
- package/dist/chunk-4D3YJNVN.js +0 -270
- package/dist/chunk-4EGWXBBZ.js +0 -403
- package/dist/chunk-4KASGJTF.js +0 -287
- package/dist/chunk-4MF2HU3S.js +0 -723
- package/dist/chunk-4QM2NMEB.js +0 -10036
- package/dist/chunk-4QM2NMEB.js.map +0 -1
- package/dist/chunk-4RUKLIOF.js +0 -1263
- package/dist/chunk-4RZBVDL5.js +0 -3996
- package/dist/chunk-4RZBVDL5.js.map +0 -1
- package/dist/chunk-54ZV4SUS.js +0 -134
- package/dist/chunk-5EJBPQI2.js +0 -41
- package/dist/chunk-5FZBRRFV.js +0 -335
- package/dist/chunk-5G4IGG7F.js +0 -209
- package/dist/chunk-5HV53SMN.js +0 -3070
- package/dist/chunk-5L66ERTV.js +0 -57
- package/dist/chunk-5OVRMKP5.js +0 -42
- package/dist/chunk-5QXEEW4T.js +0 -538
- package/dist/chunk-5SGTRULO.js +0 -1184
- package/dist/chunk-5SOL4INY.js +0 -572
- package/dist/chunk-5Y34P32B.js +0 -27
- package/dist/chunk-62HIKJ5F.js +0 -72
- package/dist/chunk-62T2ZPD5.js +0 -266
- package/dist/chunk-63VNZRLY.js +0 -386
- package/dist/chunk-67LBFBI3.js +0 -639
- package/dist/chunk-6CDBX3XG.js +0 -33
- package/dist/chunk-6D3D2JWY.js +0 -278
- package/dist/chunk-6DOIINY4.js +0 -201
- package/dist/chunk-6DQBUKGJ.js +0 -112
- package/dist/chunk-6SETNFNH.js +0 -1399
- package/dist/chunk-6SETNFNH.js.map +0 -1
- package/dist/chunk-6XYFMHNT.js +0 -56
- package/dist/chunk-6YPTBBVB.js +0 -129
- package/dist/chunk-6YU3WV2P.js +0 -33
- package/dist/chunk-72EOXOR7.js +0 -1185
- package/dist/chunk-72ND4ALI.js +0 -532
- package/dist/chunk-7AAUHFMA.js +0 -351
- package/dist/chunk-7E6P6MF4.js +0 -129
- package/dist/chunk-7G627O3U.js +0 -2553
- package/dist/chunk-7HHC5AAI.js +0 -110
- package/dist/chunk-7KP434J7.js +0 -137
- package/dist/chunk-7S2S4MXR.js +0 -138
- package/dist/chunk-7SYCHMXS.js +0 -200
- package/dist/chunk-7UDLRDHK.js +0 -214
- package/dist/chunk-7WJZWMZ4.js +0 -236
- package/dist/chunk-7YLQCMZP.js +0 -357
- package/dist/chunk-A5GX3CAE.js +0 -849
- package/dist/chunk-A67EXXQG.js +0 -192
- package/dist/chunk-A7EBV2EB.js +0 -318
- package/dist/chunk-AB5SPXUR.js +0 -114
- package/dist/chunk-AM7IK7DJ.js +0 -850
- package/dist/chunk-AM7IK7DJ.js.map +0 -1
- package/dist/chunk-AW5ZO2TH.js +0 -2412
- package/dist/chunk-AWK23Q32.js +0 -107
- package/dist/chunk-AYVWA6KD.js +0 -432
- package/dist/chunk-AYVWA6KD.js.map +0 -1
- package/dist/chunk-B45TB4HY.js +0 -931
- package/dist/chunk-B6AH43UQ.js +0 -2434
- package/dist/chunk-BA4WZGDW.js +0 -48
- package/dist/chunk-BIUJHNVR.js +0 -46
- package/dist/chunk-BJUOKUE5.js +0 -234
- package/dist/chunk-BNKEFQ4P.js +0 -4480
- package/dist/chunk-BNKEFQ4P.js.map +0 -1
- package/dist/chunk-BSHNNTJO.js +0 -114
- package/dist/chunk-BX7D2K7A.js +0 -1870
- package/dist/chunk-BX7D2K7A.js.map +0 -1
- package/dist/chunk-C6OM2SRG.js +0 -117
- package/dist/chunk-C7TVMFHV.js +0 -276
- package/dist/chunk-CBYDQWJ3.js +0 -246
- package/dist/chunk-CHSBOFAS.js +0 -131
- package/dist/chunk-CIRCUDKF.js +0 -1309
- package/dist/chunk-CPX6BHER.js +0 -554
- package/dist/chunk-CVC4RO7D.js +0 -155
- package/dist/chunk-D3YJAQGK.js +0 -103
- package/dist/chunk-DJWJMAUW.js +0 -383
- package/dist/chunk-DNAXAS5R.js +0 -406
- package/dist/chunk-DONBARLL.js +0 -154
- package/dist/chunk-DTLXQ3ZU.js +0 -373
- package/dist/chunk-DWBSK6LI.js +0 -505
- package/dist/chunk-E26LQV6X.js +0 -103
- package/dist/chunk-E7RH5F6S.js +0 -650
- package/dist/chunk-EDPH7AJH.js +0 -412
- package/dist/chunk-EILSPMVD.js +0 -133
- package/dist/chunk-EMWT6GOK.js +0 -437
- package/dist/chunk-EO22NST7.js +0 -259
- package/dist/chunk-ER5MYLIE.js +0 -256
- package/dist/chunk-ES5HKVQF.js +0 -234
- package/dist/chunk-F3LIUDXN.js +0 -738
- package/dist/chunk-F3LIUDXN.js.map +0 -1
- package/dist/chunk-F6QP4GSK.js +0 -515
- package/dist/chunk-F7JU2TYH.js +0 -1356
- package/dist/chunk-F7QEO7M2.js +0 -851
- package/dist/chunk-FJFGDLXB.js +0 -12
- package/dist/chunk-FKM2FLIG.js +0 -1024
- package/dist/chunk-FLLJ2WXW.js +0 -113
- package/dist/chunk-FPN4I4CG.js +0 -3690
- package/dist/chunk-FTZDP3CA.js +0 -1019
- package/dist/chunk-FU56FCAW.js +0 -789
- package/dist/chunk-FU56FCAW.js.map +0 -1
- package/dist/chunk-FXFOKD7A.js +0 -449
- package/dist/chunk-GBGCMHBB.js +0 -608
- package/dist/chunk-GIHE7U3Y.js +0 -174
- package/dist/chunk-GJ4GTYOD.js +0 -372
- package/dist/chunk-GLSDWNFV.js +0 -432
- package/dist/chunk-GM4UHGW6.js +0 -26
- package/dist/chunk-GMGAW3T6.js +0 -278
- package/dist/chunk-GNGI6XFN.js +0 -43
- package/dist/chunk-GO5VIAA7.js +0 -264
- package/dist/chunk-GP7BMUWR.js +0 -82
- package/dist/chunk-GSW4YHZE.js +0 -229
- package/dist/chunk-GUC6IWEY.js +0 -407
- package/dist/chunk-GWAY3SO5.js +0 -15
- package/dist/chunk-GXI3OMSR.js +0 -4565
- package/dist/chunk-GZZCVF76.js +0 -3851
- package/dist/chunk-H4VMHFOX.js +0 -214
- package/dist/chunk-HFROJDFQ.js +0 -118
- package/dist/chunk-HHFFPE67.js +0 -220
- package/dist/chunk-HKNMNL7B.js +0 -2984
- package/dist/chunk-I5FSUZVW.js +0 -584
- package/dist/chunk-IE6SSKKF.js +0 -2551
- package/dist/chunk-IGJR65GN.js +0 -1152
- package/dist/chunk-IGVQ2AI4.js +0 -307
- package/dist/chunk-IIXNEOK4.js +0 -1022
- package/dist/chunk-IM3WA5AL.js +0 -311
- package/dist/chunk-IX4P4OGR.js +0 -399
- package/dist/chunk-IXGZLCUP.js +0 -168
- package/dist/chunk-JB3TSUZO.js +0 -263
- package/dist/chunk-JCYP225Y.js +0 -111
- package/dist/chunk-JHSZSLVU.js +0 -67
- package/dist/chunk-JIC6RLUB.js +0 -27
- package/dist/chunk-JNJIZCTN.js +0 -172
- package/dist/chunk-JNV5ZPUV.js +0 -828
- package/dist/chunk-JPQFVR24.js +0 -50
- package/dist/chunk-JPZVMXDP.js +0 -1333
- package/dist/chunk-JVPF34MX.js +0 -215
- package/dist/chunk-K4JPMGB4.js +0 -166
- package/dist/chunk-K7IWU2T2.js +0 -202
- package/dist/chunk-KDO6ZW4U.js +0 -132
- package/dist/chunk-KED67KAF.js +0 -85
- package/dist/chunk-KJ72GMZ2.js +0 -378
- package/dist/chunk-KLUUDFTY.js +0 -158
- package/dist/chunk-KTGKGHEA.js +0 -75
- package/dist/chunk-KU77XHWB.js +0 -285
- package/dist/chunk-KVPQUADA.js +0 -5915
- package/dist/chunk-KVPQUADA.js.map +0 -1
- package/dist/chunk-KWGRRIUE.js +0 -371
- package/dist/chunk-KXBLLFOO.js +0 -249
- package/dist/chunk-L6WVCO6D.js +0 -61
- package/dist/chunk-LCSVFHIN.js +0 -230
- package/dist/chunk-LIOZ2MXJ.js +0 -380
- package/dist/chunk-LIOZ2MXJ.js.map +0 -1
- package/dist/chunk-LPEFULJY.js +0 -73
- package/dist/chunk-LR3LJ35V.js +0 -52
- package/dist/chunk-LRMGPO7E.js +0 -98
- package/dist/chunk-LVKTKORH.js +0 -121
- package/dist/chunk-M3DOLBNU.js +0 -283
- package/dist/chunk-MCPKUVMQ.js +0 -99
- package/dist/chunk-MFLU3466.js +0 -99
- package/dist/chunk-MHFCYU4K.js +0 -292
- package/dist/chunk-MIUJ3EH5.js +0 -60
- package/dist/chunk-MIUMNTIJ.js +0 -175
- package/dist/chunk-MO3XJQN2.js +0 -629
- package/dist/chunk-MQRHTOQ2.js +0 -218
- package/dist/chunk-MVYQDBE6.js +0 -79
- package/dist/chunk-NBUAHLMO.js +0 -1236
- package/dist/chunk-NEIBSGZP.js +0 -379
- package/dist/chunk-NFLBLJUA.js +0 -162
- package/dist/chunk-NUEFORM6.js +0 -2317
- package/dist/chunk-NZOFNQNC.js +0 -176
- package/dist/chunk-O664PL2U.js +0 -47
- package/dist/chunk-O664PL2U.js.map +0 -1
- package/dist/chunk-OKD2LBMK.js +0 -333
- package/dist/chunk-OMKCSTF6.js +0 -269
- package/dist/chunk-OXYAKUFU.js +0 -401
- package/dist/chunk-OYMSMU5O.js +0 -396
- package/dist/chunk-OZXEVHCS.js +0 -113
- package/dist/chunk-PCC3QUM6.js +0 -50
- package/dist/chunk-PGRKTQIW.js +0 -523
- package/dist/chunk-PJLHXFDD.js +0 -162
- package/dist/chunk-PPQJIVGM.js +0 -175
- package/dist/chunk-PYMQM65Y.js +0 -125
- package/dist/chunk-Q2QDZBNN.js +0 -175
- package/dist/chunk-QA5UNVHD.js +0 -85
- package/dist/chunk-QJMX27TG.js +0 -400
- package/dist/chunk-QMQF5U2D.js +0 -20
- package/dist/chunk-QNOWKKZ4.js +0 -40
- package/dist/chunk-QVOTPOXK.js +0 -29
- package/dist/chunk-QYZ5RVGM.js +0 -184
- package/dist/chunk-R7CVDKRN.js +0 -2580
- package/dist/chunk-R7CXWJAV.js +0 -107
- package/dist/chunk-RDZQFZOQ.js +0 -187
- package/dist/chunk-RIHKEGWS.js +0 -194
- package/dist/chunk-RIHKEGWS.js.map +0 -1
- package/dist/chunk-RPHXJHNX.js +0 -271
- package/dist/chunk-RVC3M66H.js +0 -191
- package/dist/chunk-RWCEUUEL.js +0 -187
- package/dist/chunk-S3OTJAAC.js +0 -283
- package/dist/chunk-S44LU4CK.js +0 -428
- package/dist/chunk-SERECSAR.js +0 -138
- package/dist/chunk-SRDHDIRQ.js +0 -177
- package/dist/chunk-SYA3WYG4.js +0 -1187
- package/dist/chunk-SYYFA7W7.js +0 -23
- package/dist/chunk-T4MHBXAU.js +0 -274
- package/dist/chunk-TFSCGFYV.js +0 -251
- package/dist/chunk-TGCKZOSX.js +0 -246
- package/dist/chunk-TMDL3CUH.js +0 -178
- package/dist/chunk-TSW2LQY3.js +0 -65
- package/dist/chunk-TSY6YZL2.js +0 -366
- package/dist/chunk-TW2RHTLH.js +0 -3321
- package/dist/chunk-TWA5G277.js +0 -141
- package/dist/chunk-TZZ2S4XI.js +0 -247
- package/dist/chunk-UFJDETKG.js +0 -108
- package/dist/chunk-UHCFYX4I.js +0 -570
- package/dist/chunk-UHTURYJO.js +0 -898
- package/dist/chunk-UPCZ7XB4.js +0 -441
- package/dist/chunk-UUE3OGXI.js +0 -84
- package/dist/chunk-UUNJ2E57.js +0 -391
- package/dist/chunk-UYQVWRAH.js +0 -199
- package/dist/chunk-UYWWUEL4.js +0 -126
- package/dist/chunk-V5HTJJVS.js +0 -93
- package/dist/chunk-V5Y74WII.js +0 -91
- package/dist/chunk-VAIOMRCN.js +0 -144
- package/dist/chunk-VB7YKA6B.js +0 -37
- package/dist/chunk-VGX636MB.js +0 -311
- package/dist/chunk-VGZLFQO2.js +0 -773
- package/dist/chunk-VM7XF2FB.js +0 -389
- package/dist/chunk-VPWKTIU5.js +0 -227
- package/dist/chunk-VXOLG6YB.js +0 -469
- package/dist/chunk-W2NAU5VB.js +0 -1628
- package/dist/chunk-W43S5UJT.js +0 -211
- package/dist/chunk-W5OHFSQJ.js +0 -5089
- package/dist/chunk-WGORKMR3.js +0 -353
- package/dist/chunk-WMIDELSJ.js +0 -391
- package/dist/chunk-WS5Y4FIR.js +0 -158
- package/dist/chunk-WZ74QHLE.js +0 -4863
- package/dist/chunk-WZ74QHLE.js.map +0 -1
- package/dist/chunk-XBE4YIIE.js +0 -296
- package/dist/chunk-XE4PHI74.js +0 -231
- package/dist/chunk-XHF2XNU5.js +0 -73
- package/dist/chunk-XHVWVXGQ.js +0 -207
- package/dist/chunk-XODQ2GPF.js +0 -3110
- package/dist/chunk-XQ5HTKX5.js +0 -1021
- package/dist/chunk-YAVW5OJ5.js +0 -131
- package/dist/chunk-YDQHFJM2.js +0 -83
- package/dist/chunk-YF2Y3AZ3.js +0 -196
- package/dist/chunk-YIDROGHS.js +0 -251
- package/dist/chunk-YIKPC2QP.js +0 -794
- package/dist/chunk-YQEOMDWF.js +0 -107
- package/dist/chunk-Z3VSTDON.js +0 -3176
- package/dist/chunk-ZB5YWWVH.js +0 -404
- package/dist/chunk-ZEQYHEWP.js +0 -406
- package/dist/chunk-ZRVUCTSI.js +0 -265
- package/dist/chunk-ZSI3ITRK.js +0 -449
- package/dist/computer-viewer-ZBY3BPYW.js +0 -21
- package/dist/connection-step-up-O7MGVS32.js +0 -145
- package/dist/connection-step-up-O7MGVS32.js.map +0 -1
- package/dist/embedded-new-voice-ZB5XLKLU.js +0 -25
- package/dist/embedded-voice-MZJISDCS.js +0 -25
- package/dist/fleet-decision-row-LG3SYVR3.js +0 -361
- package/dist/model-policy-picker-menu-5Y72PLNF.js +0 -23
- package/dist/payment-page-card-YPSXRHBA.js +0 -226
- package/dist/platform-activity-row-ZU4MEBNK.js +0 -156
- package/dist/queue-surface-implementation-6Q25RPH6.js +0 -932
- package/dist/recorder-host-JD4GWJ2Z.js +0 -80
- package/dist/sandbox-files-IJCQJFLH.js +0 -28
- package/dist/session-connect-cards-PQMGHXLJ.js +0 -27
- package/dist/session-realtime-IZOTTRH6.js +0 -30
- package/dist/timeline-annotation-markers-WWXNJOXI.js +0 -157
- package/dist/timeline-annotation-selection-ZKRIQFIQ.js +0 -208
- package/dist/timeline-annotations-dialog-4IMKTOXJ.js +0 -283
- /package/dist/{browser-viewer-EIEMRVFF.js.map → app/components/agents/agent-trigger-repositories.js.map} +0 -0
- /package/dist/{chat-interactive-block-FV37LWYZ.js.map → app/components/artifacts/ready-made-apps.js.map} +0 -0
- /package/dist/{computer-viewer-ZBY3BPYW.js.map → app/lib/ready-made-apps.js.map} +0 -0
- /package/dist/{embedded-new-voice-ZB5XLKLU.js.map → browser-viewer-5JGSKIXX.js.map} +0 -0
- /package/dist/{embedded-voice-MZJISDCS.js.map → chat-interactive-block-NEDFTOGE.js.map} +0 -0
- /package/dist/{chunk-62HIKJ5F.js.map → chunk-22SXRKET.js.map} +0 -0
- /package/dist/{chunk-7YLQCMZP.js.map → chunk-2JR7LEST.js.map} +0 -0
- /package/dist/{chunk-UHCFYX4I.js.map → chunk-2LBYEHBH.js.map} +0 -0
- /package/dist/{chunk-TWA5G277.js.map → chunk-2MHIIF4N.js.map} +0 -0
- /package/dist/{chunk-WMIDELSJ.js.map → chunk-2NABGWXC.js.map} +0 -0
- /package/dist/{chunk-VGZLFQO2.js.map → chunk-2VX42S4W.js.map} +0 -0
- /package/dist/{chunk-JCYP225Y.js.map → chunk-2X7I6LXY.js.map} +0 -0
- /package/dist/{chunk-IX4P4OGR.js.map → chunk-34LWIEIZ.js.map} +0 -0
- /package/dist/{chunk-SYA3WYG4.js.map → chunk-3F45ELUO.js.map} +0 -0
- /package/dist/{chunk-V5HTJJVS.js.map → chunk-3J6ENWZF.js.map} +0 -0
- /package/dist/{chunk-6YPTBBVB.js.map → chunk-3PTEMOSW.js.map} +0 -0
- /package/dist/{chunk-YDQHFJM2.js.map → chunk-3UA2SOK2.js.map} +0 -0
- /package/dist/{chunk-IGVQ2AI4.js.map → chunk-3YKED2ZV.js.map} +0 -0
- /package/dist/{chunk-7E6P6MF4.js.map → chunk-44MYJQ72.js.map} +0 -0
- /package/dist/{chunk-72ND4ALI.js.map → chunk-46UZ5ZYU.js.map} +0 -0
- /package/dist/{chunk-LCSVFHIN.js.map → chunk-4NXQWXQY.js.map} +0 -0
- /package/dist/{chunk-B6AH43UQ.js.map → chunk-4OGDD2EM.js.map} +0 -0
- /package/dist/{chunk-EDPH7AJH.js.map → chunk-4PSB2CK7.js.map} +0 -0
- /package/dist/{chunk-M3DOLBNU.js.map → chunk-4R74CAIF.js.map} +0 -0
- /package/dist/{chunk-GXI3OMSR.js.map → chunk-4RGFBD4M.js.map} +0 -0
- /package/dist/{chunk-VM7XF2FB.js.map → chunk-4SNYMZBC.js.map} +0 -0
- /package/dist/{chunk-YQEOMDWF.js.map → chunk-4UAHTM3Q.js.map} +0 -0
- /package/dist/{chunk-6DOIINY4.js.map → chunk-4YWHOAB4.js.map} +0 -0
- /package/dist/{chunk-FXFOKD7A.js.map → chunk-5AHIKB3O.js.map} +0 -0
- /package/dist/{chunk-UUE3OGXI.js.map → chunk-5AXIZJX4.js.map} +0 -0
- /package/dist/{chunk-WGORKMR3.js.map → chunk-5CEQ356Z.js.map} +0 -0
- /package/dist/{chunk-MVYQDBE6.js.map → chunk-5ERDSF2C.js.map} +0 -0
- /package/dist/{chunk-GNGI6XFN.js.map → chunk-5G6UHUJZ.js.map} +0 -0
- /package/dist/{chunk-7KP434J7.js.map → chunk-5H3SJHDT.js.map} +0 -0
- /package/dist/{chunk-NFLBLJUA.js.map → chunk-5ZTVBNMS.js.map} +0 -0
- /package/dist/{chunk-W43S5UJT.js.map → chunk-5ZUARMG2.js.map} +0 -0
- /package/dist/{chunk-EMWT6GOK.js.map → chunk-6AGNZI2W.js.map} +0 -0
- /package/dist/{chunk-GUC6IWEY.js.map → chunk-6IIJ4H4O.js.map} +0 -0
- /package/dist/{chunk-AB5SPXUR.js.map → chunk-6YCYPXDA.js.map} +0 -0
- /package/dist/{chunk-A7EBV2EB.js.map → chunk-6YTNMDFP.js.map} +0 -0
- /package/dist/{chunk-PCC3QUM6.js.map → chunk-6ZJU2B3Z.js.map} +0 -0
- /package/dist/{chunk-JPQFVR24.js.map → chunk-73O7NO3F.js.map} +0 -0
- /package/dist/{chunk-34UXLCRX.js.map → chunk-7456QZAA.js.map} +0 -0
- /package/dist/{chunk-DJWJMAUW.js.map → chunk-754NH7T2.js.map} +0 -0
- /package/dist/{chunk-JIC6RLUB.js.map → chunk-7GS2MGFU.js.map} +0 -0
- /package/dist/{chunk-5HV53SMN.js.map → chunk-7IR7EOTR.js.map} +0 -0
- /package/dist/{chunk-KDO6ZW4U.js.map → chunk-7MH4TTVE.js.map} +0 -0
- /package/dist/{chunk-63VNZRLY.js.map → chunk-7N35XBSC.js.map} +0 -0
- /package/dist/{chunk-3SBKYPNM.js.map → chunk-7ND2VMKV.js.map} +0 -0
- /package/dist/{chunk-DONBARLL.js.map → chunk-7RVJLO3N.js.map} +0 -0
- /package/dist/{chunk-CBYDQWJ3.js.map → chunk-7X443ZTQ.js.map} +0 -0
- /package/dist/{chunk-IGJR65GN.js.map → chunk-7XZO4W76.js.map} +0 -0
- /package/dist/{chunk-4AH4EEHE.js.map → chunk-AEH34OOU.js.map} +0 -0
- /package/dist/{chunk-5QXEEW4T.js.map → chunk-AML5X74C.js.map} +0 -0
- /package/dist/{chunk-TGCKZOSX.js.map → chunk-AVIOWKKJ.js.map} +0 -0
- /package/dist/{chunk-JPZVMXDP.js.map → chunk-AY4XH73V.js.map} +0 -0
- /package/dist/{chunk-5OVRMKP5.js.map → chunk-BGT43KDL.js.map} +0 -0
- /package/dist/{chunk-GZZCVF76.js.map → chunk-BHS4KW4W.js.map} +0 -0
- /package/dist/{chunk-TSY6YZL2.js.map → chunk-BKJXUACP.js.map} +0 -0
- /package/dist/{chunk-F7QEO7M2.js.map → chunk-BNWO72C2.js.map} +0 -0
- /package/dist/{chunk-TSW2LQY3.js.map → chunk-BT5EOSQF.js.map} +0 -0
- /package/dist/{chunk-GSW4YHZE.js.map → chunk-BVFOLLMQ.js.map} +0 -0
- /package/dist/{chunk-5SOL4INY.js.map → chunk-CC2IVNVR.js.map} +0 -0
- /package/dist/{chunk-CHSBOFAS.js.map → chunk-CGVMECYX.js.map} +0 -0
- /package/dist/{chunk-NUEFORM6.js.map → chunk-CLERWAEA.js.map} +0 -0
- /package/dist/{chunk-2COBAJC7.js.map → chunk-COCLT77F.js.map} +0 -0
- /package/dist/{chunk-4MF2HU3S.js.map → chunk-COIXX62I.js.map} +0 -0
- /package/dist/{chunk-RPHXJHNX.js.map → chunk-DHVA3T3K.js.map} +0 -0
- /package/dist/{chunk-5FZBRRFV.js.map → chunk-DKM3JBGJ.js.map} +0 -0
- /package/dist/{chunk-RDZQFZOQ.js.map → chunk-DNRVXHUW.js.map} +0 -0
- /package/dist/{chunk-WS5Y4FIR.js.map → chunk-DP4MGOBG.js.map} +0 -0
- /package/dist/{chunk-4D3YJNVN.js.map → chunk-DRVT6TRP.js.map} +0 -0
- /package/dist/{chunk-OKD2LBMK.js.map → chunk-DV3OECO6.js.map} +0 -0
- /package/dist/{chunk-LPEFULJY.js.map → chunk-DYQRNIID.js.map} +0 -0
- /package/dist/{chunk-SERECSAR.js.map → chunk-E45JRR3J.js.map} +0 -0
- /package/dist/{chunk-VXOLG6YB.js.map → chunk-E5EICKKB.js.map} +0 -0
- /package/dist/{chunk-QJMX27TG.js.map → chunk-E7FNLQXM.js.map} +0 -0
- /package/dist/{chunk-2HS3IUXE.js.map → chunk-EFBPHDPP.js.map} +0 -0
- /package/dist/{chunk-CPX6BHER.js.map → chunk-EJ6IIEZX.js.map} +0 -0
- /package/dist/{chunk-BSHNNTJO.js.map → chunk-ENYULVQW.js.map} +0 -0
- /package/dist/{chunk-TZZ2S4XI.js.map → chunk-EXBIL5BF.js.map} +0 -0
- /package/dist/{chunk-S3OTJAAC.js.map → chunk-F23TR625.js.map} +0 -0
- /package/dist/{chunk-TW2RHTLH.js.map → chunk-F45CPW3Y.js.map} +0 -0
- /package/dist/{chunk-OXYAKUFU.js.map → chunk-F5C5T2PF.js.map} +0 -0
- /package/dist/{chunk-D3YJAQGK.js.map → chunk-F5C7DTVR.js.map} +0 -0
- /package/dist/{chunk-KJ72GMZ2.js.map → chunk-F6D6X5ZU.js.map} +0 -0
- /package/dist/{chunk-46LZO4ZO.js.map → chunk-F6LVPEBK.js.map} +0 -0
- /package/dist/{chunk-T4MHBXAU.js.map → chunk-FARCOS2S.js.map} +0 -0
- /package/dist/{chunk-7S2S4MXR.js.map → chunk-FEQVCQMK.js.map} +0 -0
- /package/dist/{chunk-OZXEVHCS.js.map → chunk-FGHWU4LX.js.map} +0 -0
- /package/dist/{chunk-7AAUHFMA.js.map → chunk-FHNBUDXL.js.map} +0 -0
- /package/dist/{chunk-OYMSMU5O.js.map → chunk-FLDF2Z44.js.map} +0 -0
- /package/dist/{chunk-CIRCUDKF.js.map → chunk-FT3AUAXE.js.map} +0 -0
- /package/dist/{chunk-GM4UHGW6.js.map → chunk-FWIV2FTX.js.map} +0 -0
- /package/dist/{chunk-A5GX3CAE.js.map → chunk-GGIPEZLL.js.map} +0 -0
- /package/dist/{chunk-JVPF34MX.js.map → chunk-GGPZPBHS.js.map} +0 -0
- /package/dist/{chunk-JHSZSLVU.js.map → chunk-GHXIVKQH.js.map} +0 -0
- /package/dist/{chunk-IM3WA5AL.js.map → chunk-GIEGIEMT.js.map} +0 -0
- /package/dist/{chunk-K4JPMGB4.js.map → chunk-GLBILBET.js.map} +0 -0
- /package/dist/{chunk-2XGRHMRI.js.map → chunk-GMMB4NCN.js.map} +0 -0
- /package/dist/{chunk-34MODHMH.js.map → chunk-GP7MYBSX.js.map} +0 -0
- /package/dist/{chunk-ZB5YWWVH.js.map → chunk-GYHL6IRO.js.map} +0 -0
- /package/dist/{chunk-UYWWUEL4.js.map → chunk-HGS5JWZR.js.map} +0 -0
- /package/dist/{chunk-2IPAGZEO.js.map → chunk-HRFAQYOA.js.map} +0 -0
- /package/dist/{chunk-GIHE7U3Y.js.map → chunk-HUKGLWAY.js.map} +0 -0
- /package/dist/{chunk-SYYFA7W7.js.map → chunk-HUTQJY3F.js.map} +0 -0
- /package/dist/{chunk-62T2ZPD5.js.map → chunk-HWOYJOKK.js.map} +0 -0
- /package/dist/{chunk-YIDROGHS.js.map → chunk-HYFNKXHR.js.map} +0 -0
- /package/dist/{chunk-FTZDP3CA.js.map → chunk-HYNTTDG6.js.map} +0 -0
- /package/dist/{chunk-5L66ERTV.js.map → chunk-HZ5DTSAG.js.map} +0 -0
- /package/dist/{chunk-XODQ2GPF.js.map → chunk-I2WTJMQF.js.map} +0 -0
- /package/dist/{chunk-GMGAW3T6.js.map → chunk-IBHUF5BN.js.map} +0 -0
- /package/dist/{chunk-KED67KAF.js.map → chunk-IH3J7VWW.js.map} +0 -0
- /package/dist/{chunk-7SYCHMXS.js.map → chunk-IHX5BADQ.js.map} +0 -0
- /package/dist/{chunk-V5Y74WII.js.map → chunk-IL6PCX7K.js.map} +0 -0
- /package/dist/{chunk-UYQVWRAH.js.map → chunk-IOMZDY5D.js.map} +0 -0
- /package/dist/{chunk-S44LU4CK.js.map → chunk-IPFSFSIK.js.map} +0 -0
- /package/dist/{chunk-UHTURYJO.js.map → chunk-ISR6KXWT.js.map} +0 -0
- /package/dist/{chunk-AWK23Q32.js.map → chunk-J2GIGAVJ.js.map} +0 -0
- /package/dist/{chunk-QNOWKKZ4.js.map → chunk-J4OOKDRV.js.map} +0 -0
- /package/dist/{chunk-KWGRRIUE.js.map → chunk-J5D5OCQF.js.map} +0 -0
- /package/dist/{chunk-YF2Y3AZ3.js.map → chunk-JTSLGUVP.js.map} +0 -0
- /package/dist/{chunk-C7TVMFHV.js.map → chunk-JXIBVYRA.js.map} +0 -0
- /package/dist/{chunk-6YU3WV2P.js.map → chunk-JY2UEPJP.js.map} +0 -0
- /package/dist/{chunk-5EJBPQI2.js.map → chunk-KI2TGJVH.js.map} +0 -0
- /package/dist/{chunk-4KASGJTF.js.map → chunk-KPTKQULD.js.map} +0 -0
- /package/dist/{chunk-MFLU3466.js.map → chunk-KYDLVMKA.js.map} +0 -0
- /package/dist/{chunk-CVC4RO7D.js.map → chunk-KZQDP2JM.js.map} +0 -0
- /package/dist/{chunk-K7IWU2T2.js.map → chunk-L2Q4HMVJ.js.map} +0 -0
- /package/dist/{chunk-EO22NST7.js.map → chunk-LCRYAD3X.js.map} +0 -0
- /package/dist/{chunk-PPQJIVGM.js.map → chunk-LFQI2C46.js.map} +0 -0
- /package/dist/{chunk-MHFCYU4K.js.map → chunk-M4ZYHLFU.js.map} +0 -0
- /package/dist/{chunk-MO3XJQN2.js.map → chunk-M5FX5KH5.js.map} +0 -0
- /package/dist/{chunk-RVC3M66H.js.map → chunk-MAR5UYX4.js.map} +0 -0
- /package/dist/{chunk-LVKTKORH.js.map → chunk-MATYGLUT.js.map} +0 -0
- /package/dist/{chunk-ZSI3ITRK.js.map → chunk-MCXTYDFG.js.map} +0 -0
- /package/dist/{chunk-5Y34P32B.js.map → chunk-MDI6SH7B.js.map} +0 -0
- /package/dist/{chunk-F7JU2TYH.js.map → chunk-MIMSPOV4.js.map} +0 -0
- /package/dist/{chunk-LRMGPO7E.js.map → chunk-MM4NP5QA.js.map} +0 -0
- /package/dist/{chunk-JB3TSUZO.js.map → chunk-MQTYIBY6.js.map} +0 -0
- /package/dist/{chunk-MIUMNTIJ.js.map → chunk-MSHWYGCH.js.map} +0 -0
- /package/dist/{chunk-YIKPC2QP.js.map → chunk-MSIQ42IY.js.map} +0 -0
- /package/dist/{chunk-7G627O3U.js.map → chunk-MXRCKJOQ.js.map} +0 -0
- /package/dist/{chunk-XBE4YIIE.js.map → chunk-MXSZQ6DP.js.map} +0 -0
- /package/dist/{chunk-AW5ZO2TH.js.map → chunk-N37BLJOI.js.map} +0 -0
- /package/dist/{chunk-ZEQYHEWP.js.map → chunk-N556VQMT.js.map} +0 -0
- /package/dist/{chunk-XQ5HTKX5.js.map → chunk-NL7VJGFZ.js.map} +0 -0
- /package/dist/{chunk-HKNMNL7B.js.map → chunk-NLJEDAKV.js.map} +0 -0
- /package/dist/{chunk-KU77XHWB.js.map → chunk-NUZNJSL5.js.map} +0 -0
- /package/dist/{chunk-NZOFNQNC.js.map → chunk-O3LOQDTI.js.map} +0 -0
- /package/dist/{chunk-3HAEQMR4.js.map → chunk-O4ZXJ52Z.js.map} +0 -0
- /package/dist/{chunk-H4VMHFOX.js.map → chunk-O5PZRVQR.js.map} +0 -0
- /package/dist/{chunk-DTLXQ3ZU.js.map → chunk-OEOLXODE.js.map} +0 -0
- /package/dist/{chunk-LR3LJ35V.js.map → chunk-OZGECHF5.js.map} +0 -0
- /package/dist/{chunk-6XYFMHNT.js.map → chunk-P4N7ZS6W.js.map} +0 -0
- /package/dist/{chunk-5G4IGG7F.js.map → chunk-P6LSLNSL.js.map} +0 -0
- /package/dist/{chunk-C6OM2SRG.js.map → chunk-PC2JAIAH.js.map} +0 -0
- /package/dist/{chunk-KTGKGHEA.js.map → chunk-PCSRHFRF.js.map} +0 -0
- /package/dist/{chunk-54ZV4SUS.js.map → chunk-PEAJRZU3.js.map} +0 -0
- /package/dist/{chunk-QA5UNVHD.js.map → chunk-PGMXITPB.js.map} +0 -0
- /package/dist/{chunk-KXBLLFOO.js.map → chunk-PJ42LTJE.js.map} +0 -0
- /package/dist/{chunk-GP7BMUWR.js.map → chunk-PJ66EIWE.js.map} +0 -0
- /package/dist/{chunk-VGX636MB.js.map → chunk-PKH6MYAK.js.map} +0 -0
- /package/dist/{chunk-6CDBX3XG.js.map → chunk-PMBZMVKE.js.map} +0 -0
- /package/dist/{chunk-HFROJDFQ.js.map → chunk-PTSRBKQC.js.map} +0 -0
- /package/dist/{chunk-FKM2FLIG.js.map → chunk-QD4J7AHU.js.map} +0 -0
- /package/dist/{chunk-KLUUDFTY.js.map → chunk-QD6A4G7Y.js.map} +0 -0
- /package/dist/{chunk-ZRVUCTSI.js.map → chunk-QEXHABRN.js.map} +0 -0
- /package/dist/{chunk-DWBSK6LI.js.map → chunk-QHYLEJP7.js.map} +0 -0
- /package/dist/{chunk-FJFGDLXB.js.map → chunk-QL4Q332Z.js.map} +0 -0
- /package/dist/{chunk-5SGTRULO.js.map → chunk-QL5227KT.js.map} +0 -0
- /package/dist/{chunk-R7CXWJAV.js.map → chunk-QMRHY45R.js.map} +0 -0
- /package/dist/{chunk-E26LQV6X.js.map → chunk-QPA7ATJH.js.map} +0 -0
- /package/dist/{chunk-VPWKTIU5.js.map → chunk-QXPKUKOV.js.map} +0 -0
- /package/dist/{chunk-QVOTPOXK.js.map → chunk-R2T4IUNB.js.map} +0 -0
- /package/dist/{chunk-6D3D2JWY.js.map → chunk-R6CFPY3F.js.map} +0 -0
- /package/dist/{chunk-YAVW5OJ5.js.map → chunk-R6OBJ7LF.js.map} +0 -0
- /package/dist/{chunk-XHF2XNU5.js.map → chunk-R6WQLIFX.js.map} +0 -0
- /package/dist/{chunk-NBUAHLMO.js.map → chunk-RA3NTKSW.js.map} +0 -0
- /package/dist/{chunk-PGRKTQIW.js.map → chunk-RJWTAS4V.js.map} +0 -0
- /package/dist/{chunk-UUNJ2E57.js.map → chunk-RJZALNT5.js.map} +0 -0
- /package/dist/{chunk-GJ4GTYOD.js.map → chunk-RMDLTRLI.js.map} +0 -0
- /package/dist/{chunk-MQRHTOQ2.js.map → chunk-RVPH6BB7.js.map} +0 -0
- /package/dist/{chunk-B45TB4HY.js.map → chunk-RVXLSVJH.js.map} +0 -0
- /package/dist/{chunk-7UDLRDHK.js.map → chunk-RWHDMGFG.js.map} +0 -0
- /package/dist/{chunk-FLLJ2WXW.js.map → chunk-RYB3WBMZ.js.map} +0 -0
- /package/dist/{chunk-4EGWXBBZ.js.map → chunk-S2525GSA.js.map} +0 -0
- /package/dist/{chunk-Q2QDZBNN.js.map → chunk-S3BLYPOG.js.map} +0 -0
- /package/dist/{chunk-I5FSUZVW.js.map → chunk-S7J4HBPP.js.map} +0 -0
- /package/dist/{chunk-UFJDETKG.js.map → chunk-SA3XI7FB.js.map} +0 -0
- /package/dist/{chunk-IXGZLCUP.js.map → chunk-SN2QZSJU.js.map} +0 -0
- /package/dist/{chunk-SRDHDIRQ.js.map → chunk-SNACGK3Z.js.map} +0 -0
- /package/dist/{chunk-FPN4I4CG.js.map → chunk-SUXGKBCW.js.map} +0 -0
- /package/dist/{chunk-TFSCGFYV.js.map → chunk-SWTPVMR4.js.map} +0 -0
- /package/dist/{chunk-OMKCSTF6.js.map → chunk-SXXWPTL7.js.map} +0 -0
- /package/dist/{chunk-VB7YKA6B.js.map → chunk-T2N6JC5H.js.map} +0 -0
- /package/dist/{chunk-GBGCMHBB.js.map → chunk-TBUOHK6R.js.map} +0 -0
- /package/dist/{chunk-W2NAU5VB.js.map → chunk-TCUAGCAX.js.map} +0 -0
- /package/dist/{chunk-RWCEUUEL.js.map → chunk-TGAKM3WX.js.map} +0 -0
- /package/dist/{chunk-MCPKUVMQ.js.map → chunk-TGG3ODCS.js.map} +0 -0
- /package/dist/{chunk-BJUOKUE5.js.map → chunk-TMZ6RP3K.js.map} +0 -0
- /package/dist/{chunk-IE6SSKKF.js.map → chunk-TNE7ZYGN.js.map} +0 -0
- /package/dist/{chunk-ES5HKVQF.js.map → chunk-TWSO5S3E.js.map} +0 -0
- /package/dist/{chunk-BIUJHNVR.js.map → chunk-U2TOOZIY.js.map} +0 -0
- /package/dist/{chunk-4CJD7TMQ.js.map → chunk-UBM3IM6K.js.map} +0 -0
- /package/dist/{chunk-W5OHFSQJ.js.map → chunk-UBR3CGJC.js.map} +0 -0
- /package/dist/{chunk-PYMQM65Y.js.map → chunk-UFRXYZCJ.js.map} +0 -0
- /package/dist/{chunk-NEIBSGZP.js.map → chunk-UJNDUO7D.js.map} +0 -0
- /package/dist/{chunk-46ZC5VNC.js.map → chunk-UPRN4FBY.js.map} +0 -0
- /package/dist/{chunk-QYZ5RVGM.js.map → chunk-UXGTI4HR.js.map} +0 -0
- /package/dist/{chunk-JNJIZCTN.js.map → chunk-UZKAHEQO.js.map} +0 -0
- /package/dist/{chunk-2JRHAEIT.js.map → chunk-V6ZJKHVS.js.map} +0 -0
- /package/dist/{chunk-Z3VSTDON.js.map → chunk-VHYDZMGS.js.map} +0 -0
- /package/dist/{chunk-R7CVDKRN.js.map → chunk-VIKXHP44.js.map} +0 -0
- /package/dist/{chunk-L6WVCO6D.js.map → chunk-VLDKWGHD.js.map} +0 -0
- /package/dist/{chunk-UPCZ7XB4.js.map → chunk-VRS6VNHP.js.map} +0 -0
- /package/dist/{chunk-ER5MYLIE.js.map → chunk-VT5XHR5J.js.map} +0 -0
- /package/dist/{chunk-6DQBUKGJ.js.map → chunk-W7RKXZDV.js.map} +0 -0
- /package/dist/{chunk-3Z7VA6ET.js.map → chunk-WBNSC6RJ.js.map} +0 -0
- /package/dist/{chunk-7HHC5AAI.js.map → chunk-WEPL76AR.js.map} +0 -0
- /package/dist/{chunk-7WJZWMZ4.js.map → chunk-WJ2STMQD.js.map} +0 -0
- /package/dist/{chunk-4RUKLIOF.js.map → chunk-WSQ3TCOX.js.map} +0 -0
- /package/dist/{chunk-VAIOMRCN.js.map → chunk-WT37FEG3.js.map} +0 -0
- /package/dist/{chunk-67LBFBI3.js.map → chunk-WUKLEDKK.js.map} +0 -0
- /package/dist/{chunk-IIXNEOK4.js.map → chunk-X3T3N6W5.js.map} +0 -0
- /package/dist/{chunk-PJLHXFDD.js.map → chunk-XKJCFK2G.js.map} +0 -0
- /package/dist/{chunk-72EOXOR7.js.map → chunk-XKLXYIIT.js.map} +0 -0
- /package/dist/{chunk-E7RH5F6S.js.map → chunk-XMTBNLD2.js.map} +0 -0
- /package/dist/{chunk-F6QP4GSK.js.map → chunk-XZLNVFB4.js.map} +0 -0
- /package/dist/{chunk-GWAY3SO5.js.map → chunk-XZRMTHHW.js.map} +0 -0
- /package/dist/{chunk-DNAXAS5R.js.map → chunk-Y3ME7IF6.js.map} +0 -0
- /package/dist/{chunk-GO5VIAA7.js.map → chunk-Y6CNWBV3.js.map} +0 -0
- /package/dist/{chunk-A67EXXQG.js.map → chunk-YJYKB6ZT.js.map} +0 -0
- /package/dist/{chunk-HHFFPE67.js.map → chunk-YP4SNX4P.js.map} +0 -0
- /package/dist/{chunk-JNV5ZPUV.js.map → chunk-YR7U2KDA.js.map} +0 -0
- /package/dist/{chunk-XE4PHI74.js.map → chunk-YS6BQNHF.js.map} +0 -0
- /package/dist/{chunk-EILSPMVD.js.map → chunk-Z7UBLC6V.js.map} +0 -0
- /package/dist/{chunk-MIUJ3EH5.js.map → chunk-ZD67RM6G.js.map} +0 -0
- /package/dist/{chunk-XHVWVXGQ.js.map → chunk-ZGBMDDFR.js.map} +0 -0
- /package/dist/{chunk-GLSDWNFV.js.map → chunk-ZGR7LNXC.js.map} +0 -0
- /package/dist/{chunk-BA4WZGDW.js.map → chunk-ZJICGGPI.js.map} +0 -0
- /package/dist/{chunk-TMDL3CUH.js.map → chunk-ZLKHNJCQ.js.map} +0 -0
- /package/dist/{chunk-QMQF5U2D.js.map → chunk-ZNA65Q6Y.js.map} +0 -0
- /package/dist/{model-policy-picker-menu-5Y72PLNF.js.map → computer-viewer-FHCBTSZH.js.map} +0 -0
- /package/dist/{sandbox-files-IJCQJFLH.js.map → embedded-new-voice-BFTQZPJK.js.map} +0 -0
- /package/dist/{session-connect-cards-PQMGHXLJ.js.map → embedded-voice-CQE2GO6Y.js.map} +0 -0
- /package/dist/{fleet-decision-row-LG3SYVR3.js.map → fleet-decision-row-FJPAWNOQ.js.map} +0 -0
- /package/dist/{session-realtime-IZOTTRH6.js.map → model-policy-picker-menu-PVBT2OZO.js.map} +0 -0
- /package/dist/{payment-page-card-YPSXRHBA.js.map → payment-page-card-YPCRVFHE.js.map} +0 -0
- /package/dist/{platform-activity-row-ZU4MEBNK.js.map → platform-activity-row-ZWACJPNQ.js.map} +0 -0
- /package/dist/{queue-surface-implementation-6Q25RPH6.js.map → queue-surface-implementation-C7ESPZW7.js.map} +0 -0
- /package/dist/{recorder-host-JD4GWJ2Z.js.map → recorder-host-YPWPLMS6.js.map} +0 -0
- /package/dist/{timeline-annotation-markers-WWXNJOXI.js.map → timeline-annotation-markers-7QSYK22C.js.map} +0 -0
- /package/dist/{timeline-annotation-selection-ZKRIQFIQ.js.map → timeline-annotation-selection-XYNMESWL.js.map} +0 -0
- /package/dist/{timeline-annotations-dialog-4IMKTOXJ.js.map → timeline-annotations-dialog-WSI6L2CP.js.map} +0 -0
|
@@ -0,0 +1,1184 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
useWindowLayerOpen
|
|
4
|
+
} from "./chunk-SERRKZO4.js";
|
|
5
|
+
import {
|
|
6
|
+
DropdownMenu,
|
|
7
|
+
DropdownMenuContent,
|
|
8
|
+
DropdownMenuItem,
|
|
9
|
+
DropdownMenuSeparator,
|
|
10
|
+
DropdownMenuTrigger
|
|
11
|
+
} from "./chunk-GM3LG6BG.js";
|
|
12
|
+
import {
|
|
13
|
+
inertProps
|
|
14
|
+
} from "./chunk-USG4XNMA.js";
|
|
15
|
+
import {
|
|
16
|
+
cn
|
|
17
|
+
} from "./chunk-TXS65BB2.js";
|
|
18
|
+
import {
|
|
19
|
+
useOpenGeniText
|
|
20
|
+
} from "./chunk-2L6B6766.js";
|
|
21
|
+
|
|
22
|
+
// src/components/workspace-dock.tsx
|
|
23
|
+
import {
|
|
24
|
+
createContext,
|
|
25
|
+
useCallback,
|
|
26
|
+
useContext,
|
|
27
|
+
useEffect,
|
|
28
|
+
useId,
|
|
29
|
+
useLayoutEffect,
|
|
30
|
+
useMemo,
|
|
31
|
+
useRef,
|
|
32
|
+
useState
|
|
33
|
+
} from "react";
|
|
34
|
+
import {
|
|
35
|
+
ChevronsLeftRightIcon,
|
|
36
|
+
FileTextIcon,
|
|
37
|
+
GitCompareArrowsIcon,
|
|
38
|
+
GitPullRequestIcon,
|
|
39
|
+
Maximize2Icon,
|
|
40
|
+
Minimize2Icon,
|
|
41
|
+
PanelRightCloseIcon,
|
|
42
|
+
PlusIcon,
|
|
43
|
+
XIcon
|
|
44
|
+
} from "lucide-react";
|
|
45
|
+
import {
|
|
46
|
+
Group,
|
|
47
|
+
Panel,
|
|
48
|
+
Separator,
|
|
49
|
+
useDefaultLayout,
|
|
50
|
+
usePanelRef
|
|
51
|
+
} from "react-resizable-panels";
|
|
52
|
+
|
|
53
|
+
// src/components/workspace-dock-fit.ts
|
|
54
|
+
var NONE = { filled: /* @__PURE__ */ new Set(), natural: /* @__PURE__ */ new Set() };
|
|
55
|
+
function fill(input, reserved, closable) {
|
|
56
|
+
const width = (id) => (input.widths[id] ?? 0) + (closable(id) ? input.closeWidth : 0);
|
|
57
|
+
let used = 0;
|
|
58
|
+
let count = 0;
|
|
59
|
+
for (const id of input.order) {
|
|
60
|
+
if (!reserved.has(id)) continue;
|
|
61
|
+
used += width(id) + (count > 0 ? input.gap : 0);
|
|
62
|
+
count += 1;
|
|
63
|
+
}
|
|
64
|
+
const fitted = /* @__PURE__ */ new Set();
|
|
65
|
+
for (const id of input.order) {
|
|
66
|
+
if (reserved.has(id) || !input.fillable.has(id)) continue;
|
|
67
|
+
const next = used + width(id) + (count > 0 ? input.gap : 0);
|
|
68
|
+
if (next > input.available + 1) break;
|
|
69
|
+
used = next;
|
|
70
|
+
count += 1;
|
|
71
|
+
fitted.add(id);
|
|
72
|
+
}
|
|
73
|
+
return fitted;
|
|
74
|
+
}
|
|
75
|
+
function fitDockTabs(input) {
|
|
76
|
+
const measured = (id) => !(input.required.has(id) || input.fillable.has(id)) || (input.widths[id] ?? 0) > 0;
|
|
77
|
+
if (!(input.available > 0) || !input.order.every(measured)) return NONE;
|
|
78
|
+
const always = new Set(
|
|
79
|
+
input.order.filter((id) => input.required.has(id) && !input.fillable.has(id))
|
|
80
|
+
);
|
|
81
|
+
const natural = fill(input, always, () => false);
|
|
82
|
+
const filled = fill(
|
|
83
|
+
input,
|
|
84
|
+
input.required,
|
|
85
|
+
(id) => input.optional.has(id) && input.required.has(id) && !natural.has(id)
|
|
86
|
+
);
|
|
87
|
+
return { filled, natural };
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// src/components/workspace-dock.tsx
|
|
91
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
92
|
+
var SERVER_LAYOUT_STORAGE = {
|
|
93
|
+
getItem: () => null,
|
|
94
|
+
setItem: () => {
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
function getLayoutStorage() {
|
|
98
|
+
if (typeof window === "undefined") return SERVER_LAYOUT_STORAGE;
|
|
99
|
+
try {
|
|
100
|
+
return window.localStorage;
|
|
101
|
+
} catch {
|
|
102
|
+
return SERVER_LAYOUT_STORAGE;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
var useDockLayoutEffect = typeof window === "undefined" ? useEffect : useLayoutEffect;
|
|
106
|
+
var PanelExpandContext = createContext(null);
|
|
107
|
+
function useWorkspacePanelOwnsExpand(owns) {
|
|
108
|
+
const claim = useContext(PanelExpandContext);
|
|
109
|
+
useDockLayoutEffect(() => {
|
|
110
|
+
if (!claim || !owns) return;
|
|
111
|
+
claim(true);
|
|
112
|
+
return () => claim(false);
|
|
113
|
+
}, [claim, owns]);
|
|
114
|
+
}
|
|
115
|
+
function PanelExpandScope({
|
|
116
|
+
tabId,
|
|
117
|
+
onClaim,
|
|
118
|
+
children
|
|
119
|
+
}) {
|
|
120
|
+
const claim = useMemo(() => (claimed) => onClaim(tabId, claimed), [onClaim, tabId]);
|
|
121
|
+
return /* @__PURE__ */ jsx(PanelExpandContext.Provider, { value: claim, children });
|
|
122
|
+
}
|
|
123
|
+
var DOCK_OVERLAY_BREAKPOINT = 1024;
|
|
124
|
+
var CLOSED_LAYOUT = { primary: 100, dock: 0 };
|
|
125
|
+
function useIsNarrow(maxWidth) {
|
|
126
|
+
const [narrow, setNarrow] = useState(false);
|
|
127
|
+
useDockLayoutEffect(() => {
|
|
128
|
+
if (typeof window === "undefined" || typeof window.matchMedia !== "function") {
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
const mql = window.matchMedia(`(max-width: ${maxWidth - 1}px)`);
|
|
132
|
+
const update = () => setNarrow(mql.matches);
|
|
133
|
+
update();
|
|
134
|
+
if (typeof mql.addEventListener === "function") {
|
|
135
|
+
mql.addEventListener("change", update);
|
|
136
|
+
return () => mql.removeEventListener("change", update);
|
|
137
|
+
}
|
|
138
|
+
mql.addListener(update);
|
|
139
|
+
return () => mql.removeListener(update);
|
|
140
|
+
}, [maxWidth]);
|
|
141
|
+
return narrow;
|
|
142
|
+
}
|
|
143
|
+
function WorkspaceDock({
|
|
144
|
+
primary,
|
|
145
|
+
tabs,
|
|
146
|
+
activeTab,
|
|
147
|
+
onActiveTabChange,
|
|
148
|
+
collapsed: collapsedProp,
|
|
149
|
+
onCollapsedChange,
|
|
150
|
+
showCollapseControl = true,
|
|
151
|
+
headerAccessory,
|
|
152
|
+
mobileLeadingControl,
|
|
153
|
+
essentials = false,
|
|
154
|
+
headerAccessoryPinned = false,
|
|
155
|
+
tabScope,
|
|
156
|
+
landing = false,
|
|
157
|
+
onStripEmptied,
|
|
158
|
+
autoSaveId = "og.session.dock",
|
|
159
|
+
defaultSize = 34,
|
|
160
|
+
minSize = 22,
|
|
161
|
+
maxSize = 70,
|
|
162
|
+
className
|
|
163
|
+
}) {
|
|
164
|
+
const msg = useOpenGeniText();
|
|
165
|
+
const narrow = useIsNarrow(DOCK_OVERLAY_BREAKPOINT);
|
|
166
|
+
const rootRef = useRef(null);
|
|
167
|
+
const reopenRef = useRef(null);
|
|
168
|
+
const returnFocusRef = useRef(null);
|
|
169
|
+
const initialNarrowFocusRef = useRef(false);
|
|
170
|
+
const dockPanelRef = usePanelRef();
|
|
171
|
+
const [internalCollapsed, setInternalCollapsed] = useState(false);
|
|
172
|
+
const [maximized, setMaximized] = useState(false);
|
|
173
|
+
const [internalTab, setInternalTab] = useState(tabs[0]?.id ?? "");
|
|
174
|
+
const [expandClaims, setExpandClaims] = useState({});
|
|
175
|
+
const claimExpand = useCallback((tabId, claimed) => {
|
|
176
|
+
setExpandClaims((previous) => {
|
|
177
|
+
const count = Math.max(0, (previous[tabId] ?? 0) + (claimed ? 1 : -1));
|
|
178
|
+
const next = { ...previous };
|
|
179
|
+
if (count === 0) delete next[tabId];
|
|
180
|
+
else next[tabId] = count;
|
|
181
|
+
return next;
|
|
182
|
+
});
|
|
183
|
+
}, []);
|
|
184
|
+
const collapsed = collapsedProp ?? internalCollapsed;
|
|
185
|
+
useWindowLayerOpen(maximized || narrow && !collapsed);
|
|
186
|
+
const hostControlled = collapsedProp !== void 0;
|
|
187
|
+
const previousCollapsedRef = useRef(collapsed);
|
|
188
|
+
const collapsedNowRef = useRef(collapsed);
|
|
189
|
+
collapsedNowRef.current = collapsed;
|
|
190
|
+
const { defaultLayout, onLayoutChanged } = useDefaultLayout({
|
|
191
|
+
panelIds: ["primary", "dock"],
|
|
192
|
+
storage: getLayoutStorage(),
|
|
193
|
+
id: autoSaveId
|
|
194
|
+
});
|
|
195
|
+
const expandedDefaultLayout = defaultLayout && (defaultLayout.dock ?? 0) > 1 ? defaultLayout : void 0;
|
|
196
|
+
const mountLayout = collapsed ? CLOSED_LAYOUT : expandedDefaultLayout;
|
|
197
|
+
const lastExpandedSizeRef = useRef(expandedDefaultLayout?.dock ?? defaultSize);
|
|
198
|
+
const layoutIdentityRef = useRef(autoSaveId);
|
|
199
|
+
if (layoutIdentityRef.current !== autoSaveId) {
|
|
200
|
+
layoutIdentityRef.current = autoSaveId;
|
|
201
|
+
lastExpandedSizeRef.current = expandedDefaultLayout?.dock ?? defaultSize;
|
|
202
|
+
}
|
|
203
|
+
const persistExpandedLayout = useCallback(
|
|
204
|
+
(layout, meta) => {
|
|
205
|
+
const dockSize = layout.dock ?? 0;
|
|
206
|
+
if (dockSize <= 1) return;
|
|
207
|
+
lastExpandedSizeRef.current = dockSize;
|
|
208
|
+
onLayoutChanged(layout, meta);
|
|
209
|
+
},
|
|
210
|
+
[onLayoutChanged]
|
|
211
|
+
);
|
|
212
|
+
const requestedTab = activeTab ?? internalTab;
|
|
213
|
+
const tabIds = tabs.map((tab) => tab.id);
|
|
214
|
+
const firstTabId = tabs[0]?.id ?? "";
|
|
215
|
+
const requestedTabIsValid = tabIds.includes(requestedTab);
|
|
216
|
+
const current = requestedTabIsValid ? requestedTab : firstTabId;
|
|
217
|
+
const [opened, setOpened] = useOpenedTabs(tabScope);
|
|
218
|
+
const setTab = useCallback(
|
|
219
|
+
(id) => {
|
|
220
|
+
setInternalTab(id);
|
|
221
|
+
if (tabs.some((tab) => tab.id === id && tab.optional))
|
|
222
|
+
setOpened((ids) => ids.includes(id) ? ids : [...ids, id]);
|
|
223
|
+
onActiveTabChange?.(id);
|
|
224
|
+
},
|
|
225
|
+
[onActiveTabChange, setOpened, tabs]
|
|
226
|
+
);
|
|
227
|
+
const showLanding = landing && opened.length === 0 && tabs.length > 0 && tabs.every((tab) => tab.optional);
|
|
228
|
+
const requiredIds = useMemo(
|
|
229
|
+
() => new Set(
|
|
230
|
+
showLanding ? [] : tabs.filter((tab) => !tab.optional || opened.includes(tab.id) || tab.id === current).map((tab) => tab.id)
|
|
231
|
+
),
|
|
232
|
+
[tabs, opened, current, showLanding]
|
|
233
|
+
);
|
|
234
|
+
const fillableIds = useMemo(
|
|
235
|
+
() => new Set(
|
|
236
|
+
showLanding ? [] : tabs.filter((tab) => tab.optional && !tab.inMenu).map((tab) => tab.id)
|
|
237
|
+
),
|
|
238
|
+
[tabs, showLanding]
|
|
239
|
+
);
|
|
240
|
+
const optionalKey = tabs.filter((tab) => tab.optional).map((tab) => tab.id).join("\0");
|
|
241
|
+
const optionalIds = useMemo(
|
|
242
|
+
() => new Set(optionalKey ? optionalKey.split("\0") : []),
|
|
243
|
+
[optionalKey]
|
|
244
|
+
);
|
|
245
|
+
const [stripRoom, setStripRoom] = useState(null);
|
|
246
|
+
const measureStrip = useCallback(
|
|
247
|
+
(next) => setStripRoom((previous) => previous && sameStripRoom(previous, next) ? previous : next),
|
|
248
|
+
[]
|
|
249
|
+
);
|
|
250
|
+
const tabOrderKey = tabs.map((tab) => tab.id).join("\0");
|
|
251
|
+
const fit = useMemo(
|
|
252
|
+
() => fitDockTabs({
|
|
253
|
+
order: tabOrderKey ? tabOrderKey.split("\0") : [],
|
|
254
|
+
required: requiredIds,
|
|
255
|
+
fillable: fillableIds,
|
|
256
|
+
optional: optionalIds,
|
|
257
|
+
widths: stripRoom?.widths ?? {},
|
|
258
|
+
available: stripRoom?.available ?? 0,
|
|
259
|
+
gap: TAB_GAP,
|
|
260
|
+
closeWidth: stripRoom?.closeWidth ?? 0
|
|
261
|
+
}),
|
|
262
|
+
[fillableIds, optionalIds, requiredIds, stripRoom, tabOrderKey]
|
|
263
|
+
);
|
|
264
|
+
const shownTabs = useMemo(
|
|
265
|
+
() => tabs.filter((tab) => requiredIds.has(tab.id) || fit.filled.has(tab.id)),
|
|
266
|
+
[fit, requiredIds, tabs]
|
|
267
|
+
);
|
|
268
|
+
const measuredTabs = useMemo(
|
|
269
|
+
() => tabs.filter((tab) => requiredIds.has(tab.id) || fillableIds.has(tab.id)),
|
|
270
|
+
[fillableIds, requiredIds, tabs]
|
|
271
|
+
);
|
|
272
|
+
const closableIds = useMemo(
|
|
273
|
+
() => new Set(
|
|
274
|
+
shownTabs.filter((tab) => tab.optional && !fit.natural.has(tab.id)).map((tab) => tab.id)
|
|
275
|
+
),
|
|
276
|
+
[fit, shownTabs]
|
|
277
|
+
);
|
|
278
|
+
const closeTab = useCallback(
|
|
279
|
+
(id) => {
|
|
280
|
+
setOpened((ids) => ids.filter((value) => value !== id));
|
|
281
|
+
const strip = shownTabs.filter((tab) => tab.id !== id);
|
|
282
|
+
if (strip.length === 0 && onStripEmptied) {
|
|
283
|
+
onStripEmptied();
|
|
284
|
+
return;
|
|
285
|
+
}
|
|
286
|
+
if (id !== current) return;
|
|
287
|
+
const index = shownTabs.findIndex((tab) => tab.id === id);
|
|
288
|
+
const next = strip[Math.max(0, index - 1)] ?? tabs.find((tab) => tab.id !== id);
|
|
289
|
+
if (next) setTab(next.id);
|
|
290
|
+
},
|
|
291
|
+
[current, onStripEmptied, setOpened, setTab, shownTabs, tabs]
|
|
292
|
+
);
|
|
293
|
+
const setCollapsed = useCallback(
|
|
294
|
+
(next) => {
|
|
295
|
+
setInternalCollapsed((previous) => previous === next ? previous : next);
|
|
296
|
+
onCollapsedChange?.(next);
|
|
297
|
+
},
|
|
298
|
+
[onCollapsedChange]
|
|
299
|
+
);
|
|
300
|
+
useDockLayoutEffect(() => {
|
|
301
|
+
if (collapsedProp === void 0) {
|
|
302
|
+
return;
|
|
303
|
+
}
|
|
304
|
+
if (collapsedProp) {
|
|
305
|
+
dockPanelRef.current?.collapse();
|
|
306
|
+
setMaximized(false);
|
|
307
|
+
} else {
|
|
308
|
+
dockPanelRef.current?.resize(`${lastExpandedSizeRef.current}%`);
|
|
309
|
+
}
|
|
310
|
+
}, [collapsedProp, dockPanelRef]);
|
|
311
|
+
useDockLayoutEffect(() => {
|
|
312
|
+
if (!narrow && collapsedNowRef.current) dockPanelRef.current?.collapse();
|
|
313
|
+
}, [narrow, dockPanelRef]);
|
|
314
|
+
useEffect(() => {
|
|
315
|
+
const previous = previousCollapsedRef.current;
|
|
316
|
+
previousCollapsedRef.current = collapsed;
|
|
317
|
+
if (previous === collapsed) return;
|
|
318
|
+
if (!collapsed) {
|
|
319
|
+
const active = document.activeElement;
|
|
320
|
+
const workspaceSurface = rootRef.current?.querySelector(
|
|
321
|
+
narrow ? '[role="dialog"]' : "[data-workspace-surface]"
|
|
322
|
+
);
|
|
323
|
+
if (active instanceof HTMLElement && !workspaceSurface?.contains(active)) {
|
|
324
|
+
returnFocusRef.current = active;
|
|
325
|
+
}
|
|
326
|
+
if (narrow) {
|
|
327
|
+
const frame2 = requestAnimationFrame(() => {
|
|
328
|
+
rootRef.current?.querySelector('[role="dialog"] [role="tab"][aria-selected="true"]')?.focus();
|
|
329
|
+
});
|
|
330
|
+
return () => cancelAnimationFrame(frame2);
|
|
331
|
+
}
|
|
332
|
+
return;
|
|
333
|
+
}
|
|
334
|
+
const frame = requestAnimationFrame(() => {
|
|
335
|
+
if (!hostControlled) {
|
|
336
|
+
reopenRef.current?.focus();
|
|
337
|
+
return;
|
|
338
|
+
}
|
|
339
|
+
const target = returnFocusRef.current;
|
|
340
|
+
if (target?.isConnected) {
|
|
341
|
+
target.focus();
|
|
342
|
+
return;
|
|
343
|
+
}
|
|
344
|
+
rootRef.current?.querySelector(
|
|
345
|
+
'[data-workspace-primary] button:not([disabled]), [data-workspace-primary] a[href], [data-workspace-primary] input:not([disabled]), [data-workspace-primary] textarea:not([disabled]), [data-workspace-primary] select:not([disabled]), [data-workspace-primary] [tabindex]:not([tabindex="-1"])'
|
|
346
|
+
)?.focus();
|
|
347
|
+
});
|
|
348
|
+
return () => cancelAnimationFrame(frame);
|
|
349
|
+
}, [collapsed, hostControlled, narrow]);
|
|
350
|
+
useEffect(() => {
|
|
351
|
+
if (!narrow || collapsed || initialNarrowFocusRef.current) return;
|
|
352
|
+
initialNarrowFocusRef.current = true;
|
|
353
|
+
const active = document.activeElement;
|
|
354
|
+
const workspaceSurface = rootRef.current?.querySelector('[role="dialog"]');
|
|
355
|
+
if (active instanceof HTMLElement && !workspaceSurface?.contains(active)) {
|
|
356
|
+
returnFocusRef.current = active;
|
|
357
|
+
}
|
|
358
|
+
const frame = requestAnimationFrame(() => {
|
|
359
|
+
workspaceSurface?.querySelector('[role="tab"][aria-selected="true"]')?.focus();
|
|
360
|
+
});
|
|
361
|
+
return () => cancelAnimationFrame(frame);
|
|
362
|
+
}, [collapsed, narrow]);
|
|
363
|
+
useEffect(() => {
|
|
364
|
+
if (firstTabId && !requestedTabIsValid) {
|
|
365
|
+
setTab(firstTabId);
|
|
366
|
+
}
|
|
367
|
+
}, [firstTabId, requestedTabIsValid, setTab]);
|
|
368
|
+
const collapse = useCallback(() => {
|
|
369
|
+
dockPanelRef.current?.collapse();
|
|
370
|
+
setCollapsed(true);
|
|
371
|
+
}, [dockPanelRef, setCollapsed]);
|
|
372
|
+
const expand = useCallback(() => {
|
|
373
|
+
dockPanelRef.current?.expand();
|
|
374
|
+
setCollapsed(false);
|
|
375
|
+
}, [dockPanelRef, setCollapsed]);
|
|
376
|
+
useEffect(() => {
|
|
377
|
+
const overlayOpen = maximized || narrow && !collapsed;
|
|
378
|
+
if (!overlayOpen) return;
|
|
379
|
+
const onKey = (event) => {
|
|
380
|
+
if (event.key === "Escape") {
|
|
381
|
+
if (maximized) setMaximized(false);
|
|
382
|
+
else collapse();
|
|
383
|
+
return;
|
|
384
|
+
}
|
|
385
|
+
if (event.key !== "Tab") return;
|
|
386
|
+
const surface = rootRef.current?.querySelector(
|
|
387
|
+
narrow ? '[role="dialog"]' : "[data-workspace-surface]"
|
|
388
|
+
);
|
|
389
|
+
if (!surface) return;
|
|
390
|
+
const focusable = Array.from(surface.querySelectorAll("*")).filter(
|
|
391
|
+
(element) => element.tabIndex >= 0 && !element.hasAttribute("disabled") && element.getClientRects().length > 0 && getComputedStyle(element).visibility !== "hidden"
|
|
392
|
+
);
|
|
393
|
+
const first = focusable[0];
|
|
394
|
+
const last = focusable.at(-1);
|
|
395
|
+
const active = document.activeElement;
|
|
396
|
+
if (!first || !last) {
|
|
397
|
+
event.preventDefault();
|
|
398
|
+
surface.focus();
|
|
399
|
+
return;
|
|
400
|
+
}
|
|
401
|
+
if (!surface.contains(active)) {
|
|
402
|
+
event.preventDefault();
|
|
403
|
+
(event.shiftKey ? last : first).focus();
|
|
404
|
+
return;
|
|
405
|
+
}
|
|
406
|
+
if (event.shiftKey && active === first || !event.shiftKey && active === last) {
|
|
407
|
+
event.preventDefault();
|
|
408
|
+
(event.shiftKey ? last : first).focus();
|
|
409
|
+
return;
|
|
410
|
+
}
|
|
411
|
+
requestAnimationFrame(() => {
|
|
412
|
+
const next = document.activeElement;
|
|
413
|
+
if (!surface.contains(next)) (event.shiftKey ? last : first).focus();
|
|
414
|
+
});
|
|
415
|
+
};
|
|
416
|
+
window.addEventListener("keydown", onKey);
|
|
417
|
+
return () => window.removeEventListener("keydown", onKey);
|
|
418
|
+
}, [maximized, narrow, collapsed, collapse]);
|
|
419
|
+
if (narrow) {
|
|
420
|
+
return /* @__PURE__ */ jsxs("div", { ref: rootRef, className: cn("relative flex h-full min-h-0 w-full min-w-0", className), children: [
|
|
421
|
+
/* @__PURE__ */ jsx(
|
|
422
|
+
"div",
|
|
423
|
+
{
|
|
424
|
+
"data-workspace-primary": true,
|
|
425
|
+
"aria-hidden": !collapsed ? true : void 0,
|
|
426
|
+
className: "min-h-0 min-w-0 flex-1",
|
|
427
|
+
...inertProps(!collapsed),
|
|
428
|
+
children: primary
|
|
429
|
+
}
|
|
430
|
+
),
|
|
431
|
+
/* @__PURE__ */ jsx(
|
|
432
|
+
"div",
|
|
433
|
+
{
|
|
434
|
+
"data-workspace-surface": true,
|
|
435
|
+
"data-window-layer": true,
|
|
436
|
+
role: "dialog",
|
|
437
|
+
"aria-modal": "true",
|
|
438
|
+
"aria-label": msg("workspaceDock.workspace"),
|
|
439
|
+
className: "fixed inset-0 z-40 flex flex-col bg-og-bg",
|
|
440
|
+
hidden: collapsed,
|
|
441
|
+
style: {
|
|
442
|
+
// Author utility classes can override the user-agent `[hidden]`
|
|
443
|
+
// rule (for example this surface's `flex` class). Keep an inline
|
|
444
|
+
// display guard so a collapsed mobile workspace is actually gone
|
|
445
|
+
// visually as well as from the accessibility tree.
|
|
446
|
+
display: collapsed ? "none" : void 0,
|
|
447
|
+
paddingTop: "env(safe-area-inset-top)",
|
|
448
|
+
paddingBottom: "env(safe-area-inset-bottom)"
|
|
449
|
+
},
|
|
450
|
+
children: /* @__PURE__ */ jsx(
|
|
451
|
+
DockChrome,
|
|
452
|
+
{
|
|
453
|
+
tabs,
|
|
454
|
+
shownTabs,
|
|
455
|
+
measuredTabs,
|
|
456
|
+
closableIds,
|
|
457
|
+
onMeasure: measureStrip,
|
|
458
|
+
landing: showLanding,
|
|
459
|
+
current,
|
|
460
|
+
onTab: setTab,
|
|
461
|
+
onClose: closeTab,
|
|
462
|
+
onExpandClaim: claimExpand,
|
|
463
|
+
leading: mobileLeadingControl,
|
|
464
|
+
accessory: headerAccessory,
|
|
465
|
+
accessoryInMenu: essentials && !headerAccessoryPinned,
|
|
466
|
+
controls: /* @__PURE__ */ jsx(
|
|
467
|
+
ChromeButton,
|
|
468
|
+
{
|
|
469
|
+
onClick: collapse,
|
|
470
|
+
title: msg("workspaceDock.hideWorkspace"),
|
|
471
|
+
label: msg("workspaceDock.hideWorkspace"),
|
|
472
|
+
children: /* @__PURE__ */ jsx(XIcon, { className: "size-4" })
|
|
473
|
+
}
|
|
474
|
+
)
|
|
475
|
+
}
|
|
476
|
+
)
|
|
477
|
+
}
|
|
478
|
+
),
|
|
479
|
+
collapsed && !hostControlled ? /* @__PURE__ */ jsx(
|
|
480
|
+
"button",
|
|
481
|
+
{
|
|
482
|
+
ref: reopenRef,
|
|
483
|
+
type: "button",
|
|
484
|
+
onClick: expand,
|
|
485
|
+
title: msg("workspaceDock.openWorkspace"),
|
|
486
|
+
"aria-label": msg("workspaceDock.openWorkspace"),
|
|
487
|
+
className: "absolute right-3 top-3 z-30 inline-flex size-11 items-center justify-center rounded-og-md border border-og-border bg-og-surface-1 text-og-fg-muted shadow-lg transition-colors hover:border-og-border-strong hover:text-og-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent",
|
|
488
|
+
style: { marginTop: "env(safe-area-inset-top)" },
|
|
489
|
+
children: /* @__PURE__ */ jsx(ChevronsLeftRightIcon, { className: "size-4", "aria-hidden": true })
|
|
490
|
+
}
|
|
491
|
+
) : null
|
|
492
|
+
] });
|
|
493
|
+
}
|
|
494
|
+
const showMaximize = maximized || !expandClaims[current];
|
|
495
|
+
const showCollapse = !(hostControlled && !showCollapseControl);
|
|
496
|
+
const menuActions = [
|
|
497
|
+
...showCollapse ? [
|
|
498
|
+
{
|
|
499
|
+
id: "hide",
|
|
500
|
+
label: msg("workspaceDock.hideWorkspace"),
|
|
501
|
+
icon: /* @__PURE__ */ jsx(PanelRightCloseIcon, {}),
|
|
502
|
+
onSelect: collapse
|
|
503
|
+
}
|
|
504
|
+
] : []
|
|
505
|
+
];
|
|
506
|
+
const maximizeButton = showMaximize ? /* @__PURE__ */ jsx(
|
|
507
|
+
ChromeButton,
|
|
508
|
+
{
|
|
509
|
+
onClick: (event) => {
|
|
510
|
+
if (maximized && expandClaims[current]) {
|
|
511
|
+
const next = event.currentTarget.nextElementSibling ?? rootRef.current?.querySelector('[role="tab"][aria-selected="true"]');
|
|
512
|
+
requestAnimationFrame(() => next?.focus());
|
|
513
|
+
}
|
|
514
|
+
setMaximized((m) => !m);
|
|
515
|
+
},
|
|
516
|
+
title: maximized ? msg("workspaceDock.restoreEsc") : msg("workspaceDock.maximize"),
|
|
517
|
+
label: maximized ? msg("workspaceDock.restoreDock") : msg("workspaceDock.maximizeDock"),
|
|
518
|
+
children: maximized ? /* @__PURE__ */ jsx(Minimize2Icon, { className: "size-3.5" }) : /* @__PURE__ */ jsx(Maximize2Icon, { className: "size-3.5" })
|
|
519
|
+
}
|
|
520
|
+
) : null;
|
|
521
|
+
const dockChrome = /* @__PURE__ */ jsx(
|
|
522
|
+
DockChrome,
|
|
523
|
+
{
|
|
524
|
+
tabs,
|
|
525
|
+
shownTabs,
|
|
526
|
+
measuredTabs,
|
|
527
|
+
closableIds,
|
|
528
|
+
onMeasure: measureStrip,
|
|
529
|
+
landing: showLanding,
|
|
530
|
+
current,
|
|
531
|
+
onTab: setTab,
|
|
532
|
+
onClose: closeTab,
|
|
533
|
+
onExpandClaim: claimExpand,
|
|
534
|
+
accessory: headerAccessory,
|
|
535
|
+
accessoryInMenu: essentials && !headerAccessoryPinned,
|
|
536
|
+
menuActions: essentials ? menuActions : void 0,
|
|
537
|
+
controls: essentials ? maximizeButton : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
538
|
+
maximizeButton,
|
|
539
|
+
hostControlled && !showCollapseControl ? null : /* @__PURE__ */ jsx(
|
|
540
|
+
ChromeButton,
|
|
541
|
+
{
|
|
542
|
+
onClick: collapse,
|
|
543
|
+
title: msg("workspaceDock.hideWorkspace"),
|
|
544
|
+
label: msg("workspaceDock.hideWorkspace"),
|
|
545
|
+
children: /* @__PURE__ */ jsx(PanelRightCloseIcon, { className: "size-3.5" })
|
|
546
|
+
}
|
|
547
|
+
)
|
|
548
|
+
] })
|
|
549
|
+
}
|
|
550
|
+
);
|
|
551
|
+
return /* @__PURE__ */ jsxs("div", { ref: rootRef, className: cn("relative flex h-full min-h-0 w-full min-w-0", className), children: [
|
|
552
|
+
/* @__PURE__ */ jsxs(
|
|
553
|
+
Group,
|
|
554
|
+
{
|
|
555
|
+
orientation: "horizontal",
|
|
556
|
+
className: "min-h-0 flex-1",
|
|
557
|
+
...mountLayout ? { defaultLayout: mountLayout } : {},
|
|
558
|
+
onLayoutChanged: persistExpandedLayout,
|
|
559
|
+
children: [
|
|
560
|
+
/* @__PURE__ */ jsx(Panel, { id: "primary", minSize: "30%", className: "min-h-0 min-w-0", children: /* @__PURE__ */ jsx(
|
|
561
|
+
"div",
|
|
562
|
+
{
|
|
563
|
+
"data-workspace-primary": true,
|
|
564
|
+
"aria-hidden": maximized ? true : void 0,
|
|
565
|
+
className: "h-full min-h-0 min-w-0",
|
|
566
|
+
...inertProps(maximized),
|
|
567
|
+
children: primary
|
|
568
|
+
}
|
|
569
|
+
) }),
|
|
570
|
+
!collapsed && /* @__PURE__ */ jsx(Separator, { className: "group relative z-10 w-1.5 shrink-0 outline-hidden focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-og-accent max-[1023px]:-mx-[19px] max-[1023px]:w-11 pointer-coarse:-mx-[19px] pointer-coarse:w-11", children: /* @__PURE__ */ jsx("span", { className: "absolute inset-y-0 left-1/2 w-px -translate-x-1/2 bg-og-border transition-colors group-hover:bg-og-accent group-focus-visible:bg-og-accent group-data-[separator-state=dragging]:bg-og-accent" }) }),
|
|
571
|
+
/* @__PURE__ */ jsx(
|
|
572
|
+
Panel,
|
|
573
|
+
{
|
|
574
|
+
id: "dock",
|
|
575
|
+
panelRef: dockPanelRef,
|
|
576
|
+
collapsible: true,
|
|
577
|
+
collapsedSize: "0%",
|
|
578
|
+
defaultSize: `${defaultSize}%`,
|
|
579
|
+
minSize: `${minSize}%`,
|
|
580
|
+
maxSize: `${maxSize}%`,
|
|
581
|
+
onResize: (size, _id, previousSize) => {
|
|
582
|
+
const isCollapsed = size.asPercentage <= 1;
|
|
583
|
+
const canInferCollapse = collapsedProp === void 0 || previousSize !== void 0;
|
|
584
|
+
if (canInferCollapse && isCollapsed !== collapsed) {
|
|
585
|
+
setCollapsed(isCollapsed);
|
|
586
|
+
}
|
|
587
|
+
},
|
|
588
|
+
className: "min-h-0 min-w-0",
|
|
589
|
+
children: /* @__PURE__ */ jsx(
|
|
590
|
+
"div",
|
|
591
|
+
{
|
|
592
|
+
"data-workspace-surface": true,
|
|
593
|
+
"data-window-layer": maximized || void 0,
|
|
594
|
+
role: maximized ? "dialog" : void 0,
|
|
595
|
+
"aria-modal": maximized ? true : void 0,
|
|
596
|
+
"aria-label": maximized ? msg("workspaceDock.workspace") : void 0,
|
|
597
|
+
"aria-hidden": collapsed ? true : void 0,
|
|
598
|
+
className: cn(
|
|
599
|
+
"flex h-full min-h-0 min-w-0 flex-col bg-og-bg",
|
|
600
|
+
maximized ? "fixed inset-0 z-40" : "border-l border-og-border",
|
|
601
|
+
collapsed && "invisible pointer-events-none"
|
|
602
|
+
),
|
|
603
|
+
children: dockChrome
|
|
604
|
+
}
|
|
605
|
+
)
|
|
606
|
+
}
|
|
607
|
+
)
|
|
608
|
+
]
|
|
609
|
+
}
|
|
610
|
+
),
|
|
611
|
+
collapsed && !maximized && !hostControlled && /* @__PURE__ */ jsx(
|
|
612
|
+
"button",
|
|
613
|
+
{
|
|
614
|
+
ref: reopenRef,
|
|
615
|
+
type: "button",
|
|
616
|
+
onClick: expand,
|
|
617
|
+
title: msg("workspaceDock.openWorkspace"),
|
|
618
|
+
className: "absolute inset-y-0 right-0 flex w-6 shrink-0 items-center justify-center border-l border-og-border bg-og-surface-1 text-og-fg-subtle hover:text-og-fg",
|
|
619
|
+
children: /* @__PURE__ */ jsx(ChevronsLeftRightIcon, { className: "size-3.5" })
|
|
620
|
+
}
|
|
621
|
+
)
|
|
622
|
+
] });
|
|
623
|
+
}
|
|
624
|
+
function ChromeButton({
|
|
625
|
+
onClick,
|
|
626
|
+
title,
|
|
627
|
+
label,
|
|
628
|
+
children
|
|
629
|
+
}) {
|
|
630
|
+
return /* @__PURE__ */ jsx(
|
|
631
|
+
"button",
|
|
632
|
+
{
|
|
633
|
+
type: "button",
|
|
634
|
+
onClick,
|
|
635
|
+
title,
|
|
636
|
+
"aria-label": label,
|
|
637
|
+
className: "inline-flex size-7 items-center justify-center rounded-og-sm p-1 transition-colors hover:bg-og-surface-2 hover:text-og-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent max-[1023px]:size-11 pointer-coarse:size-11",
|
|
638
|
+
children
|
|
639
|
+
}
|
|
640
|
+
);
|
|
641
|
+
}
|
|
642
|
+
var OPENED_TABS = /* @__PURE__ */ new Map();
|
|
643
|
+
function sameStripRoom(a, b) {
|
|
644
|
+
if (Math.abs(a.available - b.available) >= 1) return false;
|
|
645
|
+
if (Math.abs(a.closeWidth - b.closeWidth) >= 1) return false;
|
|
646
|
+
const keys = Object.keys(a.widths);
|
|
647
|
+
return keys.length === Object.keys(b.widths).length && keys.every((key) => Math.abs((a.widths[key] ?? 0) - (b.widths[key] ?? -1)) < 1);
|
|
648
|
+
}
|
|
649
|
+
var TAB_GAP = 2;
|
|
650
|
+
function useOpenedTabs(scope) {
|
|
651
|
+
const [state, setState] = useState(() => ({
|
|
652
|
+
scope,
|
|
653
|
+
ids: scope !== void 0 && OPENED_TABS.get(scope) || []
|
|
654
|
+
}));
|
|
655
|
+
const ids = state.scope === scope ? state.ids : scope !== void 0 && OPENED_TABS.get(scope) || [];
|
|
656
|
+
const update = useCallback(
|
|
657
|
+
(fn) => {
|
|
658
|
+
setState((previous) => {
|
|
659
|
+
const base = previous.scope === scope ? previous.ids : scope !== void 0 && OPENED_TABS.get(scope) || [];
|
|
660
|
+
const next = fn(base);
|
|
661
|
+
if (next === base && previous.scope === scope) return previous;
|
|
662
|
+
if (scope !== void 0) OPENED_TABS.set(scope, next);
|
|
663
|
+
return { scope, ids: next };
|
|
664
|
+
});
|
|
665
|
+
},
|
|
666
|
+
[scope]
|
|
667
|
+
);
|
|
668
|
+
return [ids, update];
|
|
669
|
+
}
|
|
670
|
+
function tabName(tab) {
|
|
671
|
+
return tab.ariaLabel ?? (typeof tab.label === "string" ? tab.label : tab.id);
|
|
672
|
+
}
|
|
673
|
+
function DockChrome({
|
|
674
|
+
tabs,
|
|
675
|
+
shownTabs,
|
|
676
|
+
measuredTabs,
|
|
677
|
+
closableIds,
|
|
678
|
+
onMeasure,
|
|
679
|
+
landing = false,
|
|
680
|
+
current,
|
|
681
|
+
onTab,
|
|
682
|
+
onClose,
|
|
683
|
+
onExpandClaim,
|
|
684
|
+
leading,
|
|
685
|
+
accessory,
|
|
686
|
+
accessoryInMenu = false,
|
|
687
|
+
menuActions,
|
|
688
|
+
controls
|
|
689
|
+
}) {
|
|
690
|
+
const msg = useOpenGeniText();
|
|
691
|
+
const active = tabs.find((t) => t.id === current) ?? tabs[0];
|
|
692
|
+
const tabsetId = useId();
|
|
693
|
+
const tabRefs = useRef(/* @__PURE__ */ new Map());
|
|
694
|
+
const [visitedTabs, setVisitedTabs] = useState(() => /* @__PURE__ */ new Set());
|
|
695
|
+
const pickedRef = useRef(null);
|
|
696
|
+
const activeId = active?.id ?? "";
|
|
697
|
+
const menuTabs = tabs.filter((tab) => !shownTabs.includes(tab));
|
|
698
|
+
const menuAccessory = accessoryInMenu && accessory ? accessory : null;
|
|
699
|
+
const actions = menuActions ?? [];
|
|
700
|
+
const hasMenu = menuTabs.length > 0 || actions.length > 0 || menuAccessory !== null;
|
|
701
|
+
const stripRef = useRef(null);
|
|
702
|
+
const chromeRef = useRef(null);
|
|
703
|
+
const headerRef = useRef(null);
|
|
704
|
+
const measureRef = useRef(null);
|
|
705
|
+
const menuTriggerRef = useRef(null);
|
|
706
|
+
const pillRef = useRef(null);
|
|
707
|
+
const shownKey = shownTabs.map((tab) => tab.id).join("\0");
|
|
708
|
+
const measuredKey = measuredTabs.map((tab) => tab.id).join("\0");
|
|
709
|
+
useLayoutEffect(() => {
|
|
710
|
+
const header = headerRef.current;
|
|
711
|
+
const box = measureRef.current;
|
|
712
|
+
if (!header || !box) return;
|
|
713
|
+
const measure = () => {
|
|
714
|
+
const widths = {};
|
|
715
|
+
for (const node of box.querySelectorAll("[data-dock-tab-measure]")) {
|
|
716
|
+
const id = node.getAttribute("data-dock-tab-measure");
|
|
717
|
+
if (id !== null) widths[id] = node.offsetWidth;
|
|
718
|
+
}
|
|
719
|
+
const closeWidth = box.querySelector("[data-dock-close-measure]")?.offsetWidth ?? 0;
|
|
720
|
+
const menuWidth = box.querySelector("[data-dock-menu-measure]")?.offsetWidth ?? 0;
|
|
721
|
+
const style = getComputedStyle(header);
|
|
722
|
+
const gap = Number.parseFloat(style.columnGap) || 0;
|
|
723
|
+
let others = 0;
|
|
724
|
+
let items = 0;
|
|
725
|
+
let hasStrip = false;
|
|
726
|
+
let menuDrawn = false;
|
|
727
|
+
for (const child of Array.from(header.children)) {
|
|
728
|
+
if (!(child instanceof HTMLElement) || child === box) continue;
|
|
729
|
+
items += 1;
|
|
730
|
+
if (child === stripRef.current) {
|
|
731
|
+
hasStrip = true;
|
|
732
|
+
continue;
|
|
733
|
+
}
|
|
734
|
+
if (child === menuTriggerRef.current) menuDrawn = true;
|
|
735
|
+
if (child.hasAttribute("data-dock-spacer")) continue;
|
|
736
|
+
const shrink = child.style.flexShrink;
|
|
737
|
+
child.style.flexShrink = "0";
|
|
738
|
+
others += Math.max(child.offsetWidth, child.scrollWidth);
|
|
739
|
+
child.style.flexShrink = shrink;
|
|
740
|
+
}
|
|
741
|
+
if (!hasStrip) items += 1;
|
|
742
|
+
if (!menuDrawn) {
|
|
743
|
+
items += 1;
|
|
744
|
+
others += menuWidth;
|
|
745
|
+
}
|
|
746
|
+
const padding = (Number.parseFloat(style.paddingLeft) || 0) + (Number.parseFloat(style.paddingRight) || 0);
|
|
747
|
+
onMeasure({
|
|
748
|
+
available: Math.floor(header.clientWidth - padding - others - gap * Math.max(0, items - 1)),
|
|
749
|
+
widths,
|
|
750
|
+
closeWidth
|
|
751
|
+
});
|
|
752
|
+
};
|
|
753
|
+
measure();
|
|
754
|
+
if (typeof ResizeObserver === "undefined") return;
|
|
755
|
+
const observer = new ResizeObserver(measure);
|
|
756
|
+
const observeAll = () => {
|
|
757
|
+
observer.disconnect();
|
|
758
|
+
observer.observe(header);
|
|
759
|
+
if (box.firstElementChild) observer.observe(box.firstElementChild);
|
|
760
|
+
for (const child of Array.from(header.children)) {
|
|
761
|
+
if (child !== box && child !== stripRef.current) observer.observe(child);
|
|
762
|
+
}
|
|
763
|
+
};
|
|
764
|
+
observeAll();
|
|
765
|
+
const mutations = typeof MutationObserver === "undefined" ? null : new MutationObserver(() => {
|
|
766
|
+
observeAll();
|
|
767
|
+
measure();
|
|
768
|
+
});
|
|
769
|
+
mutations?.observe(header, { childList: true });
|
|
770
|
+
return () => {
|
|
771
|
+
observer.disconnect();
|
|
772
|
+
mutations?.disconnect();
|
|
773
|
+
};
|
|
774
|
+
}, [measuredKey, onMeasure]);
|
|
775
|
+
useLayoutEffect(() => {
|
|
776
|
+
const strip = stripRef.current;
|
|
777
|
+
const pill = pillRef.current;
|
|
778
|
+
if (!strip || !pill) return;
|
|
779
|
+
const measure = () => {
|
|
780
|
+
const node = strip.querySelector(
|
|
781
|
+
`[data-dock-tab-item="${CSS.escape(current)}"]`
|
|
782
|
+
);
|
|
783
|
+
pill.style.opacity = node ? "1" : "0";
|
|
784
|
+
const overflow = strip.scrollWidth > strip.clientWidth + 1;
|
|
785
|
+
if (overflow) strip.setAttribute("data-overflow", "");
|
|
786
|
+
else strip.removeAttribute("data-overflow");
|
|
787
|
+
if (!node) return;
|
|
788
|
+
pill.style.width = `${node.offsetWidth}px`;
|
|
789
|
+
pill.style.transform = `translateX(${node.offsetLeft}px)`;
|
|
790
|
+
if (overflow) {
|
|
791
|
+
const left = node.offsetLeft;
|
|
792
|
+
const right = left + node.offsetWidth;
|
|
793
|
+
if (left < strip.scrollLeft) strip.scrollLeft = left - 8;
|
|
794
|
+
else if (right > strip.scrollLeft + strip.clientWidth)
|
|
795
|
+
strip.scrollLeft = right - strip.clientWidth + 24;
|
|
796
|
+
}
|
|
797
|
+
};
|
|
798
|
+
measure();
|
|
799
|
+
if (typeof ResizeObserver === "undefined") return;
|
|
800
|
+
const observer = new ResizeObserver(measure);
|
|
801
|
+
observer.observe(strip);
|
|
802
|
+
return () => observer.disconnect();
|
|
803
|
+
}, [current, shownKey]);
|
|
804
|
+
useEffect(() => {
|
|
805
|
+
if (!activeId || landing) return;
|
|
806
|
+
setVisitedTabs((previous) => {
|
|
807
|
+
if (previous.has(activeId)) return previous;
|
|
808
|
+
const next = new Set(previous);
|
|
809
|
+
next.add(activeId);
|
|
810
|
+
return next;
|
|
811
|
+
});
|
|
812
|
+
}, [activeId, landing]);
|
|
813
|
+
const activateTab = (index) => {
|
|
814
|
+
const tab = shownTabs[index];
|
|
815
|
+
if (!tab) {
|
|
816
|
+
return;
|
|
817
|
+
}
|
|
818
|
+
onTab(tab.id);
|
|
819
|
+
tabRefs.current.get(tab.id)?.focus();
|
|
820
|
+
};
|
|
821
|
+
const onTabKeyDown = (event, index) => {
|
|
822
|
+
if (shownTabs.length === 0) return;
|
|
823
|
+
let nextIndex = null;
|
|
824
|
+
if (event.key === "ArrowRight") nextIndex = (index + 1) % shownTabs.length;
|
|
825
|
+
else if (event.key === "ArrowLeft")
|
|
826
|
+
nextIndex = (index - 1 + shownTabs.length) % shownTabs.length;
|
|
827
|
+
else if (event.key === "Home") nextIndex = 0;
|
|
828
|
+
else if (event.key === "End") nextIndex = shownTabs.length - 1;
|
|
829
|
+
if (nextIndex === null) return;
|
|
830
|
+
event.preventDefault();
|
|
831
|
+
activateTab(nextIndex);
|
|
832
|
+
};
|
|
833
|
+
return /* @__PURE__ */ jsxs(
|
|
834
|
+
"div",
|
|
835
|
+
{
|
|
836
|
+
ref: chromeRef,
|
|
837
|
+
"data-dock-chrome": true,
|
|
838
|
+
className: "flex h-full min-h-0 min-w-0 flex-col bg-og-bg [--og-color-bg:var(--og-color-canvas)] [--color-bg:var(--og-color-canvas)] [--og-diff-separator:color-mix(in_oklch,var(--og-color-fg)_4%,transparent)]",
|
|
839
|
+
children: [
|
|
840
|
+
/* @__PURE__ */ jsxs(
|
|
841
|
+
"div",
|
|
842
|
+
{
|
|
843
|
+
ref: headerRef,
|
|
844
|
+
className: cn(
|
|
845
|
+
"relative min-h-11 shrink-0 items-center gap-1 bg-[radial-gradient(120%_180%_at_100%_0%,color-mix(in_oklch,var(--og-color-accent)_8%,transparent),transparent_70%)] px-2 shadow-[inset_0_-1px_0_color-mix(in_oklch,var(--og-color-border)_70%,transparent)] max-[1023px]:min-h-12",
|
|
846
|
+
// The empty view needs no header unless it carries controls.
|
|
847
|
+
landing && !leading && !controls && !hasMenu ? "hidden" : "flex"
|
|
848
|
+
),
|
|
849
|
+
children: [
|
|
850
|
+
/* @__PURE__ */ jsx(
|
|
851
|
+
"div",
|
|
852
|
+
{
|
|
853
|
+
ref: measureRef,
|
|
854
|
+
"aria-hidden": true,
|
|
855
|
+
...inertProps(true),
|
|
856
|
+
"data-dock-tab-measures": "",
|
|
857
|
+
className: "pointer-events-none invisible absolute top-0 left-0 h-0 w-0 overflow-hidden",
|
|
858
|
+
children: /* @__PURE__ */ jsxs("div", { className: "flex w-max", children: [
|
|
859
|
+
measuredTabs.map((tab) => /* @__PURE__ */ jsxs(
|
|
860
|
+
"span",
|
|
861
|
+
{
|
|
862
|
+
"data-dock-tab-measure": tab.id,
|
|
863
|
+
className: "flex shrink-0 items-center gap-1.5 px-3 text-[12.5px] font-medium tracking-[-0.005em]",
|
|
864
|
+
children: [
|
|
865
|
+
tab.icon ? /* @__PURE__ */ jsx("span", { className: "flex size-3.5 shrink-0" }) : null,
|
|
866
|
+
/* @__PURE__ */ jsx("span", { className: "max-w-[12rem] truncate whitespace-nowrap", children: tab.label }),
|
|
867
|
+
tab.badge ? /* @__PURE__ */ jsx("span", { className: "shrink-0", children: tab.badge }) : null
|
|
868
|
+
]
|
|
869
|
+
},
|
|
870
|
+
tab.id
|
|
871
|
+
)),
|
|
872
|
+
/* @__PURE__ */ jsx(
|
|
873
|
+
"span",
|
|
874
|
+
{
|
|
875
|
+
"data-dock-close-measure": "",
|
|
876
|
+
className: "inline-flex size-4 shrink-0 max-[1023px]:size-8 pointer-coarse:size-8"
|
|
877
|
+
}
|
|
878
|
+
),
|
|
879
|
+
/* @__PURE__ */ jsx(
|
|
880
|
+
"span",
|
|
881
|
+
{
|
|
882
|
+
"data-dock-menu-measure": "",
|
|
883
|
+
className: "inline-flex size-7 shrink-0 max-[1023px]:size-11 pointer-coarse:size-11"
|
|
884
|
+
}
|
|
885
|
+
)
|
|
886
|
+
] })
|
|
887
|
+
}
|
|
888
|
+
),
|
|
889
|
+
leading ? /* @__PURE__ */ jsx("div", { className: "flex shrink-0 items-center", children: leading }) : null,
|
|
890
|
+
shownTabs.length > 0 ? /* @__PURE__ */ jsxs(
|
|
891
|
+
"div",
|
|
892
|
+
{
|
|
893
|
+
ref: stripRef,
|
|
894
|
+
className: "relative flex min-w-0 items-center gap-0.5 overflow-x-auto py-1.5 [scrollbar-width:none] max-[1023px]:py-0.5 pointer-coarse:py-0.5 data-[overflow]:[mask-image:linear-gradient(to_right,black_calc(100%-24px),transparent)]",
|
|
895
|
+
role: "tablist",
|
|
896
|
+
"aria-label": msg("workspaceDock.workspacePanels"),
|
|
897
|
+
"aria-orientation": "horizontal",
|
|
898
|
+
children: [
|
|
899
|
+
/* @__PURE__ */ jsx(
|
|
900
|
+
"span",
|
|
901
|
+
{
|
|
902
|
+
ref: pillRef,
|
|
903
|
+
"aria-hidden": true,
|
|
904
|
+
"data-dock-tab-pill": "",
|
|
905
|
+
className: "pointer-events-none absolute inset-y-1.5 left-0 max-[1023px]:inset-y-0.5 pointer-coarse:inset-y-0.5 w-0 rounded-full bg-og-surface-2 opacity-0 shadow-[inset_0_1px_0_color-mix(in_oklch,var(--og-color-fg)_8%,transparent),0_0_0_1px_color-mix(in_oklch,var(--og-color-fg)_7%,transparent),0_6px_18px_-8px_color-mix(in_oklch,var(--og-color-accent)_45%,transparent)] transition-[transform,width] duration-200 ease-[cubic-bezier(0.2,0.8,0.2,1)] motion-reduce:transition-none"
|
|
906
|
+
}
|
|
907
|
+
),
|
|
908
|
+
shownTabs.map((tab, index) => {
|
|
909
|
+
const selected = tab.id === current;
|
|
910
|
+
const tabIndex = tabs.indexOf(tab);
|
|
911
|
+
const closable = closableIds.has(tab.id);
|
|
912
|
+
return /* @__PURE__ */ jsxs(
|
|
913
|
+
"div",
|
|
914
|
+
{
|
|
915
|
+
"data-dock-tab-item": tab.id,
|
|
916
|
+
className: cn(
|
|
917
|
+
"group/tab relative z-[1] flex shrink-0 items-center rounded-full transition-colors duration-200",
|
|
918
|
+
selected ? "text-og-fg" : "text-og-fg-muted hover:text-og-fg"
|
|
919
|
+
),
|
|
920
|
+
children: [
|
|
921
|
+
/* @__PURE__ */ jsxs(
|
|
922
|
+
"button",
|
|
923
|
+
{
|
|
924
|
+
ref: (node) => {
|
|
925
|
+
tabRefs.current.set(tab.id, node);
|
|
926
|
+
},
|
|
927
|
+
id: `${tabsetId}-tab-${tabIndex}`,
|
|
928
|
+
type: "button",
|
|
929
|
+
role: "tab",
|
|
930
|
+
"aria-label": tabName(tab),
|
|
931
|
+
"aria-selected": selected,
|
|
932
|
+
"aria-controls": `${tabsetId}-panel-${tabIndex}`,
|
|
933
|
+
tabIndex: selected ? 0 : -1,
|
|
934
|
+
onClick: () => onTab(tab.id),
|
|
935
|
+
onKeyDown: (event) => onTabKeyDown(event, index),
|
|
936
|
+
"data-dock-tab": tab.id,
|
|
937
|
+
className: cn(
|
|
938
|
+
"flex min-h-7 items-center gap-1.5 rounded-full px-3 text-[12.5px] font-medium tracking-[-0.005em] focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-og-accent max-[1023px]:min-h-11 pointer-coarse:min-h-11",
|
|
939
|
+
closable && "pr-1.5"
|
|
940
|
+
),
|
|
941
|
+
children: [
|
|
942
|
+
tab.icon ? /* @__PURE__ */ jsx(
|
|
943
|
+
"span",
|
|
944
|
+
{
|
|
945
|
+
className: cn(
|
|
946
|
+
"flex size-3.5 shrink-0 items-center justify-center transition-colors duration-200 [&>svg]:size-3.5",
|
|
947
|
+
selected ? "text-og-fg" : "text-og-fg-subtle"
|
|
948
|
+
),
|
|
949
|
+
"aria-hidden": true,
|
|
950
|
+
children: tab.icon
|
|
951
|
+
}
|
|
952
|
+
) : null,
|
|
953
|
+
/* @__PURE__ */ jsx(
|
|
954
|
+
"span",
|
|
955
|
+
{
|
|
956
|
+
"data-contrast-audited": true,
|
|
957
|
+
className: "max-w-[12rem] truncate whitespace-nowrap",
|
|
958
|
+
children: tab.label
|
|
959
|
+
}
|
|
960
|
+
),
|
|
961
|
+
tab.badge ? /* @__PURE__ */ jsx("span", { className: "shrink-0", children: tab.badge }) : null
|
|
962
|
+
]
|
|
963
|
+
}
|
|
964
|
+
),
|
|
965
|
+
closable ? /* @__PURE__ */ jsx(
|
|
966
|
+
"button",
|
|
967
|
+
{
|
|
968
|
+
type: "button",
|
|
969
|
+
"aria-label": msg("workspaceDock.closeTab", {
|
|
970
|
+
name: tabName(tab)
|
|
971
|
+
}),
|
|
972
|
+
title: msg("workspaceDock.closeTab", {
|
|
973
|
+
name: tabName(tab)
|
|
974
|
+
}),
|
|
975
|
+
onClick: () => {
|
|
976
|
+
onClose(tab.id);
|
|
977
|
+
requestAnimationFrame(() => {
|
|
978
|
+
const strip = stripRef.current;
|
|
979
|
+
const target = strip?.querySelector(
|
|
980
|
+
'[role="tab"][aria-selected="true"]'
|
|
981
|
+
) ?? chromeRef.current?.querySelector(
|
|
982
|
+
"[data-dock-landing-tab]"
|
|
983
|
+
) ?? menuTriggerRef.current;
|
|
984
|
+
target?.focus();
|
|
985
|
+
});
|
|
986
|
+
},
|
|
987
|
+
"data-dock-tab-close": tab.id,
|
|
988
|
+
className: cn(
|
|
989
|
+
"mr-1.5 inline-flex size-4 shrink-0 items-center justify-center rounded-full text-og-fg-subtle transition-opacity hover:bg-og-surface-3 hover:text-og-fg focus-visible:opacity-100 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent group-hover/tab:opacity-100 max-[1023px]:size-8 pointer-coarse:size-8 pointer-coarse:opacity-100",
|
|
990
|
+
selected ? "opacity-100" : "opacity-0"
|
|
991
|
+
),
|
|
992
|
+
children: /* @__PURE__ */ jsx(XIcon, { className: "size-3", "aria-hidden": true })
|
|
993
|
+
}
|
|
994
|
+
) : null
|
|
995
|
+
]
|
|
996
|
+
},
|
|
997
|
+
tab.id
|
|
998
|
+
);
|
|
999
|
+
})
|
|
1000
|
+
]
|
|
1001
|
+
}
|
|
1002
|
+
) : null,
|
|
1003
|
+
hasMenu ? /* @__PURE__ */ jsxs(DropdownMenu, { children: [
|
|
1004
|
+
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
1005
|
+
"button",
|
|
1006
|
+
{
|
|
1007
|
+
ref: menuTriggerRef,
|
|
1008
|
+
type: "button",
|
|
1009
|
+
title: msg("workspaceDock.more"),
|
|
1010
|
+
"aria-label": msg("workspaceDock.more"),
|
|
1011
|
+
"data-dock-menu": true,
|
|
1012
|
+
className: "my-auto inline-flex size-7 shrink-0 items-center justify-center rounded-full text-og-fg-subtle transition-[color,background-color,transform] duration-200 hover:bg-og-surface-2 hover:text-og-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent data-[state=open]:rotate-45 data-[state=open]:bg-og-surface-2 data-[state=open]:text-og-fg motion-reduce:transition-none max-[1023px]:size-11 pointer-coarse:size-11",
|
|
1013
|
+
children: /* @__PURE__ */ jsx(PlusIcon, { className: "size-4", "aria-hidden": true })
|
|
1014
|
+
}
|
|
1015
|
+
) }),
|
|
1016
|
+
/* @__PURE__ */ jsxs(
|
|
1017
|
+
DropdownMenuContent,
|
|
1018
|
+
{
|
|
1019
|
+
align: "start",
|
|
1020
|
+
className: "min-w-[12rem]",
|
|
1021
|
+
onCloseAutoFocus: (event) => {
|
|
1022
|
+
const picked = pickedRef.current;
|
|
1023
|
+
pickedRef.current = null;
|
|
1024
|
+
if (!picked) return;
|
|
1025
|
+
event.preventDefault();
|
|
1026
|
+
requestAnimationFrame(() => tabRefs.current.get(picked)?.focus());
|
|
1027
|
+
},
|
|
1028
|
+
children: [
|
|
1029
|
+
menuAccessory ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1030
|
+
/* @__PURE__ */ jsx("div", { className: "px-2 py-1.5 text-og-fg-muted", "data-dock-menu-accessory": true, children: menuAccessory }),
|
|
1031
|
+
menuTabs.length > 0 || actions.length > 0 ? /* @__PURE__ */ jsx(DropdownMenuSeparator, {}) : null
|
|
1032
|
+
] }) : null,
|
|
1033
|
+
menuTabs.map((tab) => /* @__PURE__ */ jsxs(
|
|
1034
|
+
DropdownMenuItem,
|
|
1035
|
+
{
|
|
1036
|
+
"data-dock-menu-tab": tab.id,
|
|
1037
|
+
onSelect: () => {
|
|
1038
|
+
pickedRef.current = tab.id;
|
|
1039
|
+
onTab(tab.id);
|
|
1040
|
+
},
|
|
1041
|
+
children: [
|
|
1042
|
+
/* @__PURE__ */ jsx(
|
|
1043
|
+
"span",
|
|
1044
|
+
{
|
|
1045
|
+
className: "flex size-4 shrink-0 items-center justify-center text-og-fg-subtle [&>svg]:size-4",
|
|
1046
|
+
"aria-hidden": true,
|
|
1047
|
+
children: tab.icon
|
|
1048
|
+
}
|
|
1049
|
+
),
|
|
1050
|
+
/* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 truncate", children: tab.label })
|
|
1051
|
+
]
|
|
1052
|
+
},
|
|
1053
|
+
tab.id
|
|
1054
|
+
)),
|
|
1055
|
+
actions.length > 0 && menuTabs.length > 0 ? /* @__PURE__ */ jsx(DropdownMenuSeparator, {}) : null,
|
|
1056
|
+
actions.map((action) => /* @__PURE__ */ jsxs(
|
|
1057
|
+
DropdownMenuItem,
|
|
1058
|
+
{
|
|
1059
|
+
"data-dock-menu-action": action.id,
|
|
1060
|
+
onSelect: action.onSelect,
|
|
1061
|
+
children: [
|
|
1062
|
+
/* @__PURE__ */ jsx(
|
|
1063
|
+
"span",
|
|
1064
|
+
{
|
|
1065
|
+
className: "flex size-4 shrink-0 items-center justify-center text-og-fg-subtle [&>svg]:size-3.5",
|
|
1066
|
+
"aria-hidden": true,
|
|
1067
|
+
children: action.icon
|
|
1068
|
+
}
|
|
1069
|
+
),
|
|
1070
|
+
/* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 truncate", children: action.label })
|
|
1071
|
+
]
|
|
1072
|
+
},
|
|
1073
|
+
action.id
|
|
1074
|
+
))
|
|
1075
|
+
]
|
|
1076
|
+
}
|
|
1077
|
+
)
|
|
1078
|
+
] }) : null,
|
|
1079
|
+
/* @__PURE__ */ jsx("div", { "data-dock-spacer": "", className: "min-w-0 flex-1" }),
|
|
1080
|
+
accessory && !menuAccessory ? /* @__PURE__ */ jsx("div", { className: "my-auto min-w-0 shrink text-og-fg-muted", children: accessory }) : null,
|
|
1081
|
+
controls ? /* @__PURE__ */ jsx("div", { className: "my-auto flex shrink-0 items-center gap-0.5 text-og-fg-subtle", children: controls }) : null
|
|
1082
|
+
]
|
|
1083
|
+
}
|
|
1084
|
+
),
|
|
1085
|
+
/* @__PURE__ */ jsxs("div", { className: "min-h-0 min-w-0 flex-1 overflow-hidden", children: [
|
|
1086
|
+
landing ? /* @__PURE__ */ jsx(
|
|
1087
|
+
DockLanding,
|
|
1088
|
+
{
|
|
1089
|
+
choices: menuTabs,
|
|
1090
|
+
onPick: (id) => {
|
|
1091
|
+
pickedRef.current = id;
|
|
1092
|
+
onTab(id);
|
|
1093
|
+
requestAnimationFrame(() => tabRefs.current.get(id)?.focus());
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
) : null,
|
|
1097
|
+
tabs.length > 0 ? tabs.map((tab, index) => {
|
|
1098
|
+
const selected = tab.id === activeId && !landing;
|
|
1099
|
+
const shouldMount = selected || visitedTabs.has(tab.id);
|
|
1100
|
+
return /* @__PURE__ */ jsx(
|
|
1101
|
+
"div",
|
|
1102
|
+
{
|
|
1103
|
+
id: `${tabsetId}-panel-${index}`,
|
|
1104
|
+
...shownTabs.includes(tab) ? { "aria-labelledby": `${tabsetId}-tab-${index}` } : { "aria-label": tabName(tab) },
|
|
1105
|
+
className: "h-full min-h-0 min-w-0 overflow-hidden animate-in fade-in-0 duration-150 motion-reduce:animate-none",
|
|
1106
|
+
hidden: !selected,
|
|
1107
|
+
role: "tabpanel",
|
|
1108
|
+
children: shouldMount ? /* @__PURE__ */ jsx(PanelExpandScope, { tabId: tab.id, onClaim: onExpandClaim, children: tab.content }) : null
|
|
1109
|
+
},
|
|
1110
|
+
tab.id
|
|
1111
|
+
);
|
|
1112
|
+
}) : /* @__PURE__ */ jsx(
|
|
1113
|
+
"div",
|
|
1114
|
+
{
|
|
1115
|
+
className: "h-full min-h-0 min-w-0",
|
|
1116
|
+
"aria-label": msg("workspaceDock.workspace"),
|
|
1117
|
+
role: "tabpanel"
|
|
1118
|
+
}
|
|
1119
|
+
)
|
|
1120
|
+
] })
|
|
1121
|
+
]
|
|
1122
|
+
}
|
|
1123
|
+
);
|
|
1124
|
+
}
|
|
1125
|
+
var LANDING_FIRST = ["files", "terminal", "browser"];
|
|
1126
|
+
function DockLanding({
|
|
1127
|
+
choices,
|
|
1128
|
+
onPick
|
|
1129
|
+
}) {
|
|
1130
|
+
const msg = useOpenGeniText();
|
|
1131
|
+
const ranked = [...choices].sort((a, b) => {
|
|
1132
|
+
const rank = (tab) => {
|
|
1133
|
+
const index = LANDING_FIRST.indexOf(tab.id);
|
|
1134
|
+
return index === -1 ? LANDING_FIRST.length : index;
|
|
1135
|
+
};
|
|
1136
|
+
return rank(a) - rank(b);
|
|
1137
|
+
});
|
|
1138
|
+
const shown = ranked.slice(0, 3);
|
|
1139
|
+
return /* @__PURE__ */ jsxs(
|
|
1140
|
+
"div",
|
|
1141
|
+
{
|
|
1142
|
+
"data-dock-landing": "",
|
|
1143
|
+
className: "flex h-full min-h-0 flex-col items-center justify-center gap-5 px-6 pb-10 text-center animate-in fade-in-0 duration-300 motion-reduce:animate-none",
|
|
1144
|
+
children: [
|
|
1145
|
+
/* @__PURE__ */ jsxs("div", { "aria-hidden": true, className: "relative h-[72px] w-36", children: [
|
|
1146
|
+
/* @__PURE__ */ jsx("span", { className: "absolute left-2 top-4 flex size-12 -rotate-[14deg] items-center justify-center rounded-[14px] bg-og-surface-1 text-og-status-idle shadow-[inset_0_1px_0_color-mix(in_oklch,var(--og-color-fg)_7%,transparent),0_0_0_1px_color-mix(in_oklch,var(--og-color-fg)_5%,transparent)]", children: /* @__PURE__ */ jsx(GitCompareArrowsIcon, { className: "size-[18px]" }) }),
|
|
1147
|
+
/* @__PURE__ */ jsx("span", { className: "absolute right-2 top-4 flex size-12 rotate-[14deg] items-center justify-center rounded-[14px] bg-og-surface-1 text-og-charge shadow-[inset_0_1px_0_color-mix(in_oklch,var(--og-color-fg)_7%,transparent),0_0_0_1px_color-mix(in_oklch,var(--og-color-fg)_5%,transparent)]", children: /* @__PURE__ */ jsx(FileTextIcon, { className: "size-[18px]" }) }),
|
|
1148
|
+
/* @__PURE__ */ jsx("span", { className: "absolute left-1/2 top-0 flex size-14 -translate-x-1/2 items-center justify-center rounded-2xl bg-og-surface-2 text-og-fg shadow-[inset_0_1px_0_color-mix(in_oklch,var(--og-color-fg)_10%,transparent),0_0_0_1px_color-mix(in_oklch,var(--og-color-fg)_6%,transparent),0_14px_30px_-12px_color-mix(in_oklch,var(--og-color-accent)_60%,transparent)]", children: /* @__PURE__ */ jsx(GitPullRequestIcon, { className: "size-5" }) })
|
|
1149
|
+
] }),
|
|
1150
|
+
/* @__PURE__ */ jsxs("div", { className: "flex max-w-[30ch] flex-col gap-1.5", children: [
|
|
1151
|
+
/* @__PURE__ */ jsx("p", { className: "text-og-md font-semibold tracking-[-0.01em] text-og-fg", children: msg("workspaceDock.emptyTitle") }),
|
|
1152
|
+
/* @__PURE__ */ jsx("p", { className: "text-og-sm leading-relaxed text-og-fg-muted", children: msg("workspaceDock.emptyBody") })
|
|
1153
|
+
] }),
|
|
1154
|
+
shown.length > 0 ? /* @__PURE__ */ jsx("div", { className: "flex flex-wrap items-center justify-center gap-1.5", children: shown.map((tab) => /* @__PURE__ */ jsxs(
|
|
1155
|
+
"button",
|
|
1156
|
+
{
|
|
1157
|
+
type: "button",
|
|
1158
|
+
"data-dock-landing-tab": tab.id,
|
|
1159
|
+
onClick: () => onPick(tab.id),
|
|
1160
|
+
className: "inline-flex min-h-8 items-center gap-1.5 rounded-full bg-og-surface-1 px-3 text-og-xs font-medium text-og-fg-muted shadow-[inset_0_0_0_1px_color-mix(in_oklch,var(--og-color-fg)_8%,transparent)] transition-colors duration-200 hover:bg-og-surface-2 hover:text-og-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent motion-reduce:transition-none pointer-coarse:min-h-11",
|
|
1161
|
+
children: [
|
|
1162
|
+
tab.icon ? /* @__PURE__ */ jsx(
|
|
1163
|
+
"span",
|
|
1164
|
+
{
|
|
1165
|
+
"aria-hidden": true,
|
|
1166
|
+
className: "flex size-3.5 items-center justify-center text-og-fg-subtle [&>svg]:size-3.5",
|
|
1167
|
+
children: tab.icon
|
|
1168
|
+
}
|
|
1169
|
+
) : null,
|
|
1170
|
+
tab.label
|
|
1171
|
+
]
|
|
1172
|
+
},
|
|
1173
|
+
tab.id
|
|
1174
|
+
)) }) : null
|
|
1175
|
+
]
|
|
1176
|
+
}
|
|
1177
|
+
);
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
export {
|
|
1181
|
+
useWorkspacePanelOwnsExpand,
|
|
1182
|
+
WorkspaceDock
|
|
1183
|
+
};
|
|
1184
|
+
//# sourceMappingURL=chunk-QL5227KT.js.map
|