zidane-ui 9.4.0 → 9.5.2
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/adapters/index.d.ts +2 -1
- package/dist/adapters/index.js +2 -1
- package/dist/adapters/live.d.ts +7 -2
- package/dist/adapters/live.js +5 -2
- package/dist/adapters/server-approvals-host.js +3 -1
- package/dist/adapters/server-channels-host.d.ts +32 -0
- package/dist/adapters/server-channels-host.js +49 -0
- package/dist/adapters/server-composer-host.js +13 -0
- package/dist/adapters/server-files-host.js +12 -31
- package/dist/adapters/server-host.js +27 -3
- package/dist/adapters/server-machines-host.d.ts +5 -0
- package/dist/adapters/server-machines-host.js +13 -6
- package/dist/adapters/server-oauth-flow.d.ts +2 -1
- package/dist/adapters/server-projects.d.ts +15 -0
- package/dist/adapters/server-projects.js +225 -0
- package/dist/adapters/server-session-host.d.ts +2 -0
- package/dist/adapters/server-session-host.js +20 -1
- package/dist/app/AppHostProvider.d.ts +1 -1
- package/dist/app/AppHostProvider.js +7 -2
- package/dist/app/ModalProvider.d.ts +6 -2
- package/dist/app/ModalProvider.js +38 -10
- package/dist/app/headless/app-host.d.ts +3 -0
- package/dist/approvals/ApprovalsProvider.d.ts +2 -1
- package/dist/approvals/ApprovalsProvider.js +12 -4
- package/dist/approvals/headless/host.d.ts +13 -2
- package/dist/approvals/headless/index.d.ts +3 -3
- package/dist/approvals/headless/index.js +2 -2
- package/dist/approvals/headless/labels.d.ts +12 -2
- package/dist/approvals/headless/labels.js +19 -1
- package/dist/channels/BindingEditorDialog.d.ts +18 -0
- package/dist/channels/BindingEditorDialog.js +637 -0
- package/dist/channels/ChannelAlertsList.d.ts +25 -0
- package/dist/channels/ChannelAlertsList.js +107 -0
- package/dist/channels/ChannelDefaultsSection.d.ts +20 -0
- package/dist/channels/ChannelDefaultsSection.js +133 -0
- package/dist/channels/ChannelsProvider.d.ts +31 -0
- package/dist/channels/ChannelsProvider.js +29 -0
- package/dist/channels/ChannelsSettingsSection.d.ts +40 -0
- package/dist/channels/ChannelsSettingsSection.js +456 -0
- package/dist/channels/ConnectionSetupDialog.d.ts +16 -0
- package/dist/channels/ConnectionSetupDialog.js +470 -0
- package/dist/channels/HeldRepliesList.d.ts +27 -0
- package/dist/channels/HeldRepliesList.js +173 -0
- package/dist/channels/ProjectChannelsSection.d.ts +55 -0
- package/dist/channels/ProjectChannelsSection.js +433 -0
- package/dist/channels/ReadinessChecklist.d.ts +102 -0
- package/dist/channels/ReadinessChecklist.js +273 -0
- package/dist/channels/TestSessionBanner.d.ts +24 -0
- package/dist/channels/TestSessionBanner.js +44 -0
- package/dist/channels/channels-parts.d.ts +104 -0
- package/dist/channels/channels-parts.js +203 -0
- package/dist/channels/context.d.ts +9 -0
- package/dist/channels/context.js +14 -0
- package/dist/channels/headless/access.d.ts +127 -0
- package/dist/channels/headless/access.js +187 -0
- package/dist/channels/headless/fixture-host.d.ts +83 -0
- package/dist/channels/headless/fixture-host.js +557 -0
- package/dist/channels/headless/host.d.ts +245 -0
- package/dist/channels/headless/host.js +39 -0
- package/dist/channels/headless/index.d.ts +10 -0
- package/dist/channels/headless/index.js +5 -0
- package/dist/channels/headless/labels.d.ts +217 -0
- package/dist/channels/headless/labels.js +260 -0
- package/dist/channels/headless/state.d.ts +22 -0
- package/dist/channels/headless/state.js +303 -0
- package/dist/channels/index.d.ts +21 -0
- package/dist/channels/index.js +13 -0
- package/dist/channels/testing/contract.d.ts +31 -0
- package/dist/channels/testing/contract.js +378 -0
- package/dist/channels/testing/index.d.ts +7 -0
- package/dist/channels/testing/index.js +1 -0
- package/dist/chat/HostBadge.js +1 -0
- package/dist/chat/OrchestratorBadge.d.ts +23 -0
- package/dist/chat/OrchestratorBadge.js +22 -0
- package/dist/chat/SessionGroupHeader.d.ts +11 -1
- package/dist/chat/SessionGroupHeader.js +25 -14
- package/dist/chat/SessionList.d.ts +1 -1
- package/dist/chat/SessionList.js +1 -1
- package/dist/chat/SessionRow.d.ts +141 -0
- package/dist/chat/SessionRow.js +215 -0
- package/dist/chat/StatusDot.d.ts +7 -2
- package/dist/chat/StatusDot.js +3 -2
- package/dist/chat/Transcript.js +6 -2
- package/dist/chat/composer/ComposerEditor.js +1 -1
- package/dist/chat/composer/ContextBreakdown.d.ts +27 -2
- package/dist/chat/composer/ContextBreakdown.js +123 -2
- package/dist/chat/composer/DraftPickers.d.ts +8 -2
- package/dist/chat/composer/DraftPickers.js +7 -3
- package/dist/chat/composer/HostContextOrb.d.ts +2 -0
- package/dist/chat/composer/HostContextOrb.js +17 -2
- package/dist/chat/composer/ProjectMenu.d.ts +16 -3
- package/dist/chat/composer/ProjectMenu.js +102 -20
- package/dist/chat/composer/ScopeToggle.d.ts +7 -2
- package/dist/chat/composer/ScopeToggle.js +4 -2
- package/dist/chat/composer/ServerScopeToggle.d.ts +7 -2
- package/dist/chat/composer/ServerScopeToggle.js +3 -1
- package/dist/chat/composer/index.d.ts +2 -2
- package/dist/chat/composer/index.js +2 -2
- package/dist/chat/composer/use-draft-target.d.ts +12 -1
- package/dist/chat/composer/use-draft-target.js +22 -10
- package/dist/chat/composer/use-send-prompt.d.ts +2 -0
- package/dist/chat/composer/use-send-prompt.js +4 -1
- package/dist/chat/headless/answered-first.d.ts +28 -0
- package/dist/chat/headless/answered-first.js +14 -0
- package/dist/chat/headless/chip-labels.d.ts +2 -0
- package/dist/chat/headless/chip-labels.js +2 -0
- package/dist/chat/headless/composer/composer-sources.d.ts +5 -2
- package/dist/chat/headless/composer/composer-sources.js +6 -0
- package/dist/chat/headless/composer/host.d.ts +13 -0
- package/dist/chat/headless/composer/index.d.ts +2 -2
- package/dist/chat/headless/composer/labels-chrome.d.ts +3 -0
- package/dist/chat/headless/composer/labels-chrome.js +4 -1
- package/dist/chat/headless/composer/labels-editor.d.ts +2 -0
- package/dist/chat/headless/composer/labels-editor.js +2 -0
- package/dist/chat/headless/draft-target.d.ts +2 -0
- package/dist/chat/headless/fixtures/demo-transcript-all-kinds.d.ts +6 -0
- package/dist/chat/headless/fixtures/demo-transcript-all-kinds.js +90 -2
- package/dist/chat/headless/folder-groups.d.ts +41 -0
- package/dist/chat/headless/folder-groups.js +76 -0
- package/dist/chat/headless/host.d.ts +16 -1
- package/dist/chat/headless/hosts.d.ts +1 -1
- package/dist/chat/headless/index.d.ts +15 -10
- package/dist/chat/headless/index.js +35 -30
- package/dist/chat/headless/labels.d.ts +43 -4
- package/dist/chat/headless/labels.js +40 -9
- package/dist/chat/headless/prompt-origin.d.ts +2 -2
- package/dist/chat/headless/prompt-origin.js +3 -3
- package/dist/chat/headless/send-flow.d.ts +2 -0
- package/dist/chat/headless/session-list.d.ts +36 -2
- package/dist/chat/headless/session-list.js +7 -0
- package/dist/chat/headless/sidebar/directory.d.ts +5 -0
- package/dist/chat/headless/sidebar/directory.js +2 -0
- package/dist/chat/headless/sidebar/inbox.d.ts +33 -7
- package/dist/chat/headless/sidebar/inbox.js +65 -26
- package/dist/chat/headless/sidebar/index.d.ts +6 -4
- package/dist/chat/headless/sidebar/index.js +5 -3
- package/dist/chat/headless/sidebar/labels.d.ts +36 -7
- package/dist/chat/headless/sidebar/labels.js +1 -4
- package/dist/chat/headless/sidebar/project-main.d.ts +43 -0
- package/dist/chat/headless/sidebar/project-main.js +46 -0
- package/dist/chat/headless/sidebar/row-changes.d.ts +43 -0
- package/dist/chat/headless/sidebar/row-changes.js +43 -0
- package/dist/chat/headless/sidebar/rows.d.ts +64 -6
- package/dist/chat/headless/sidebar/rows.js +98 -18
- package/dist/chat/headless/sidebar/types.d.ts +12 -0
- package/dist/chat/headless/streams/live-events.d.ts +12 -0
- package/dist/chat/headless/streams/live-events.js +21 -2
- package/dist/chat/headless/streams/store.d.ts +17 -0
- package/dist/chat/headless/streams/store.js +38 -15
- package/dist/chat/headless/streams/types.d.ts +2 -1
- package/dist/chat/headless/transcript/collapse.js +3 -1
- package/dist/chat/headless/transcript/derive.d.ts +1 -0
- package/dist/chat/headless/transcript/derive.js +3 -1
- package/dist/chat/headless/transcript/fold.js +1 -0
- package/dist/chat/headless/transcript/index.d.ts +3 -2
- package/dist/chat/headless/transcript/index.js +2 -1
- package/dist/chat/headless/transcript/rail.d.ts +8 -1
- package/dist/chat/headless/transcript/rail.js +10 -2
- package/dist/chat/headless/transcript/rows.d.ts +31 -3
- package/dist/chat/headless/transcript/select-stops.js +1 -0
- package/dist/chat/headless/transcript/session-groups.d.ts +36 -0
- package/dist/chat/headless/transcript/session-groups.js +94 -0
- package/dist/chat/headless/transcript-labels.d.ts +1 -0
- package/dist/chat/index.d.ts +8 -5
- package/dist/chat/index.js +9 -6
- package/dist/chat/interactions/HostInteractions.js +4 -2
- package/dist/chat/interactions/InboxPanel.js +6 -4
- package/dist/chat/interactions/use-answer-interaction.d.ts +11 -0
- package/dist/chat/interactions/use-answer-interaction.js +19 -0
- package/dist/chat/rich-composer/artifact-mentions.d.ts +29 -0
- package/dist/chat/rich-composer/artifact-mentions.js +40 -0
- package/dist/chat/rich-composer/composer-extensions.d.ts +3 -2
- package/dist/chat/rich-composer/composer-extensions.js +12 -9
- package/dist/chat/rich-composer/use-composer-sources.js +1 -0
- package/dist/chat/sidebar/InboxList.d.ts +26 -2
- package/dist/chat/sidebar/InboxList.js +65 -49
- package/dist/chat/sidebar/MainSessionRow.d.ts +2 -1
- package/dist/chat/sidebar/MainSessionRow.js +1 -1
- package/dist/chat/sidebar/ProjectIcon.d.ts +8 -4
- package/dist/chat/sidebar/ProjectIcon.js +15 -3
- package/dist/chat/sidebar/SessionSidebar.d.ts +51 -2
- package/dist/chat/sidebar/SessionSidebar.js +87 -17
- package/dist/chat/sidebar/SidebarFooter.d.ts +2 -23
- package/dist/chat/sidebar/SidebarFooter.js +2 -43
- package/dist/chat/sidebar/SidebarGroupHeader.d.ts +12 -3
- package/dist/chat/sidebar/SidebarGroupHeader.js +36 -15
- package/dist/chat/sidebar/SidebarLiveProvider.d.ts +22 -0
- package/dist/chat/sidebar/SidebarLiveProvider.js +20 -0
- package/dist/chat/sidebar/SidebarSessionRow.d.ts +6 -1
- package/dist/chat/sidebar/SidebarSessionRow.js +16 -7
- package/dist/chat/sidebar/inbox-triage.d.ts +18 -2
- package/dist/chat/sidebar/inbox-triage.js +39 -12
- package/dist/chat/sidebar/index.d.ts +5 -4
- package/dist/chat/sidebar/index.js +3 -2
- package/dist/chat/sidebar/sidebar-live.d.ts +29 -2
- package/dist/chat/sidebar/sidebar-live.js +36 -2
- package/dist/chat/sidebar/useInboxRows.d.ts +4 -1
- package/dist/chat/sidebar/useInboxRows.js +8 -6
- package/dist/chat/sidebar/useInboxTriage.d.ts +8 -2
- package/dist/chat/sidebar/useInboxTriage.js +29 -20
- package/dist/chat/testing/fixture-composer-host.d.ts +3 -1
- package/dist/chat/testing/fixture-composer-host.js +1 -0
- package/dist/chat/testing/index.d.ts +2 -2
- package/dist/chat/testing/index.js +2 -2
- package/dist/chat/transcript/BadgeMenu.d.ts +9 -2
- package/dist/chat/transcript/BadgeMenu.js +20 -2
- package/dist/chat/transcript/PromptEcho.js +15 -2
- package/dist/chat/transcript/PromptOriginLabel.d.ts +1 -1
- package/dist/chat/transcript/SubagentBlock.js +24 -7
- package/dist/chat/transcript/TranscriptRail.d.ts +3 -1
- package/dist/chat/transcript/TranscriptRail.js +15 -5
- package/dist/chat/transcript/TranscriptRow.js +9 -0
- package/dist/chat/transcript/badges.d.ts +1 -0
- package/dist/chat/transcript/badges.js +1 -0
- package/dist/chat/transcript/fold.js +2 -1
- package/dist/chat/transcript/frame.d.ts +7 -0
- package/dist/chat/transcript/frame.js +51 -5
- package/dist/chat/transcript/index.d.ts +5 -4
- package/dist/chat/transcript/index.js +4 -3
- package/dist/chat/transcript/inline-facts.d.ts +9 -0
- package/dist/chat/transcript/inline-facts.js +20 -0
- package/dist/chat/transcript/notices.d.ts +34 -12
- package/dist/chat/transcript/notices.js +213 -97
- package/dist/chat/transcript/prompt.js +8 -1
- package/dist/chat/transcript/receipt-parts.d.ts +29 -2
- package/dist/chat/transcript/receipt-parts.js +40 -7
- package/dist/chat/transcript/row-estimate.js +4 -1
- package/dist/chat/transcript/run-rows.js +2 -5
- package/dist/chat/transcript/script-input.d.ts +1 -1
- package/dist/chat/transcript/session-groups.d.ts +21 -0
- package/dist/chat/transcript/session-groups.js +154 -0
- package/dist/chat/transcript/session-line.d.ts +63 -0
- package/dist/chat/transcript/session-line.js +114 -0
- package/dist/chat/transcript/tasks.d.ts +1 -1
- package/dist/chat/transcript/tasks.js +1 -1
- package/dist/chat/transcript/tool-row.js +3 -2
- package/dist/code/editor/FileView.js +1 -3
- package/dist/components/Form.d.ts +28 -1
- package/dist/components/Form.js +43 -7
- package/dist/components/HelpTip.d.ts +22 -0
- package/dist/components/HelpTip.js +26 -0
- package/dist/components/Menu.js +1 -1
- package/dist/components/Notice.d.ts +6 -4
- package/dist/components/Notice.js +73 -27
- package/dist/components/Progress.js +10 -4
- package/dist/components/SearchField.d.ts +46 -0
- package/dist/components/SearchField.js +50 -0
- package/dist/components/ShowMore.d.ts +48 -0
- package/dist/components/ShowMore.js +57 -0
- package/dist/components/Tooltip.js +8 -5
- package/dist/components/charts/ScatterChart.js +13 -6
- package/dist/components/floating/FloatingSurface.js +2 -2
- package/dist/components/floating/useAnchoredPosition.d.ts +15 -1
- package/dist/components/floating/useAnchoredPosition.js +41 -7
- package/dist/components/palette/PaletteList.d.ts +5 -5
- package/dist/components/palette/PaletteList.js +2 -3
- package/dist/components/palette/PalettePanel.js +18 -12
- package/dist/components/palette/palette-layout.d.ts +5 -1
- package/dist/components/palette/palette-layout.js +13 -10
- package/dist/core.css +45 -20
- package/dist/dist/index-BmO8bRgK.d.ts +1 -0
- package/dist/dist/{index-BheVJOLc.d.ts → index-DPbpsCtl.d.ts} +248 -118
- package/dist/dist/index.d.ts +5 -5
- package/dist/dist/sandbox-Bzg_jJK2.d.ts +2 -0
- package/dist/dist/{timeout-CmTx6V9y.d.ts → timeout-NoG7ppkm.d.ts} +1 -1
- package/dist/files/FilesProvider.d.ts +2 -0
- package/dist/files/FilesProvider.js +5 -1
- package/dist/files/headless/host.d.ts +6 -2
- package/dist/files/index.d.ts +2 -2
- package/dist/files/index.js +2 -2
- package/dist/git/GitBar.js +8 -2
- package/dist/git/MoveSessionDialog.js +8 -5
- package/dist/git/MoveToDialog.d.ts +3 -1
- package/dist/git/MoveToDialog.js +43 -16
- package/dist/git/TeleportSessionDialog.d.ts +11 -4
- package/dist/git/TeleportSessionDialog.js +263 -107
- package/dist/git/WherePicker.js +4 -1
- package/dist/git/headless/labels.d.ts +8 -0
- package/dist/git/headless/labels.js +24 -16
- package/dist/git/index.d.ts +2 -2
- package/dist/git/index.js +2 -2
- package/dist/git/useEnvironmentChoices.d.ts +19 -0
- package/dist/git/useEnvironmentChoices.js +34 -10
- package/dist/hooks/useLastCount.d.ts +9 -0
- package/dist/hooks/useLastCount.js +29 -0
- package/dist/index.d.ts +6 -2
- package/dist/index.js +7 -3
- package/dist/keybindings/headless/overrides.d.ts +1 -1
- package/dist/keybindings/headless/overrides.js +14 -3
- package/dist/labels.d.ts +7 -0
- package/dist/labels.js +10 -3
- package/dist/machines/AddMachineDialog.js +1 -1
- package/dist/machines/AddServerForm.d.ts +14 -2
- package/dist/machines/AddServerForm.js +167 -51
- package/dist/machines/HostCapabilities.js +8 -4
- package/dist/machines/HostSignIn.d.ts +2 -1
- package/dist/machines/HostSignIn.js +1 -0
- package/dist/machines/HostSyncPanel.d.ts +4 -1
- package/dist/machines/HostSyncPanel.js +248 -132
- package/dist/machines/HostsSection.d.ts +2 -2
- package/dist/machines/HostsSection.js +91 -52
- package/dist/machines/LinkedAccountsPanel.d.ts +29 -0
- package/dist/machines/LinkedAccountsPanel.js +268 -0
- package/dist/machines/MachinesExplainer.d.ts +4 -4
- package/dist/machines/MachinesExplainer.js +27 -17
- package/dist/machines/OrganizationPanel.d.ts +12 -5
- package/dist/machines/OrganizationPanel.js +420 -133
- package/dist/machines/ProjectsSpendPanel.d.ts +22 -0
- package/dist/machines/ProjectsSpendPanel.js +160 -0
- package/dist/machines/ServerMachinesPanel.js +19 -4
- package/dist/machines/ServerUpdatePanel.js +3 -3
- package/dist/machines/SyncAccounts.d.ts +14 -7
- package/dist/machines/SyncAccounts.js +67 -81
- package/dist/machines/TokensPanel.js +54 -30
- package/dist/machines/headless/fixture-host.d.ts +15 -10
- package/dist/machines/headless/fixture-host.js +75 -44
- package/dist/machines/headless/fixtures.d.ts +12 -0
- package/dist/machines/headless/fixtures.js +71 -1
- package/dist/machines/headless/host.d.ts +13 -9
- package/dist/machines/headless/index.d.ts +3 -3
- package/dist/machines/headless/index.js +2 -2
- package/dist/machines/headless/labels.d.ts +81 -40
- package/dist/machines/headless/labels.js +103 -60
- package/dist/machines/headless/linked-accounts.d.ts +42 -0
- package/dist/machines/headless/linked-accounts.js +31 -0
- package/dist/machines/headless/organization.d.ts +9 -3
- package/dist/machines/headless/organization.js +12 -2
- package/dist/machines/headless/sync.d.ts +2 -0
- package/dist/machines/index.d.ts +3 -2
- package/dist/machines/index.js +3 -2
- package/dist/machines/sync-rows.d.ts +8 -0
- package/dist/machines/sync-rows.js +10 -0
- package/dist/machines/testing/contract.d.ts +1 -25
- package/dist/machines/testing/contract.js +1 -97
- package/dist/machines/testing/index.d.ts +3 -3
- package/dist/machines/testing/index.js +2 -2
- package/dist/onboarding/demos/extensions.d.ts +4 -0
- package/dist/onboarding/demos/extensions.js +27 -1
- package/dist/onboarding/demos/sidebar-layout.d.ts +4 -2
- package/dist/onboarding/demos/sidebar-layout.js +5 -2
- package/dist/onboarding/headless/labels.d.ts +9 -0
- package/dist/onboarding/headless/labels.js +2 -0
- package/dist/onboarding/steps/SidebarStep.js +4 -2
- package/dist/onboarding/steps/setting-cards.d.ts +4 -2
- package/dist/onboarding/steps/setting-cards.js +3 -2
- package/dist/palette/PaletteDialog.js +4 -4
- package/dist/palette/PaletteRows.js +34 -16
- package/dist/palette/headless/app-sources.js +3 -1
- package/dist/palette/headless/labels.js +2 -2
- package/dist/palette/usePaletteController.js +4 -8
- package/dist/session/ArtifactsPanel.js +11 -23
- package/dist/session/NewProjectDialog.d.ts +33 -0
- package/dist/session/NewProjectDialog.js +216 -0
- package/dist/session/OpenProjectsDialog.d.ts +56 -0
- package/dist/session/OpenProjectsDialog.js +324 -0
- package/dist/session/OpenSessionsDialog.js +186 -61
- package/dist/session/ProjectArtifactsHome.d.ts +42 -0
- package/dist/session/ProjectArtifactsHome.js +98 -0
- package/dist/session/ProjectArtifactsSection.d.ts +13 -0
- package/dist/session/ProjectArtifactsSection.js +367 -0
- package/dist/session/ProjectBudgetsSection.d.ts +7 -0
- package/dist/session/ProjectBudgetsSection.js +377 -0
- package/dist/session/ProjectContextSection.d.ts +20 -0
- package/dist/session/ProjectContextSection.js +139 -0
- package/dist/session/ProjectHome.d.ts +32 -5
- package/dist/session/ProjectHome.js +496 -249
- package/dist/session/ProjectInstructionsSection.d.ts +7 -0
- package/dist/session/ProjectInstructionsSection.js +179 -0
- package/dist/session/ProjectMainButton.d.ts +35 -0
- package/dist/session/ProjectMainButton.js +73 -0
- package/dist/session/ProjectName.d.ts +76 -0
- package/dist/session/ProjectName.js +140 -0
- package/dist/session/ProjectOrchestratorSection.d.ts +14 -0
- package/dist/session/ProjectOrchestratorSection.js +117 -0
- package/dist/session/ProjectPublishDialog.d.ts +30 -0
- package/dist/session/ProjectPublishDialog.js +420 -0
- package/dist/session/ProjectSessionAccessSection.d.ts +13 -0
- package/dist/session/ProjectSessionAccessSection.js +109 -0
- package/dist/session/ProjectSessionsList.d.ts +53 -0
- package/dist/session/ProjectSessionsList.js +316 -0
- package/dist/session/ProjectSettingsDialog.d.ts +30 -0
- package/dist/session/ProjectSettingsDialog.js +693 -0
- package/dist/session/ProjectShareDialog.d.ts +36 -0
- package/dist/session/ProjectShareDialog.js +190 -0
- package/dist/session/ProjectSkillsSection.d.ts +7 -0
- package/dist/session/ProjectSkillsSection.js +197 -0
- package/dist/session/ProjectToolsSection.d.ts +16 -0
- package/dist/session/ProjectToolsSection.js +347 -0
- package/dist/session/ProjectUsage.d.ts +61 -0
- package/dist/session/ProjectUsage.js +344 -0
- package/dist/session/ProviderUsageProvider.d.ts +2 -3
- package/dist/session/QueueTab.js +11 -1
- package/dist/session/SessionAccessNotice.d.ts +31 -0
- package/dist/session/SessionAccessNotice.js +69 -0
- package/dist/session/SessionDetailsDialog.d.ts +3 -1
- package/dist/session/SessionDetailsDialog.js +16 -1
- package/dist/session/SessionHeader.d.ts +10 -3
- package/dist/session/SessionHeader.js +20 -8
- package/dist/session/SessionPeopleStack.d.ts +3 -2
- package/dist/session/SessionPeopleStack.js +51 -17
- package/dist/session/SessionPlaceMenu.js +2 -2
- package/dist/session/SessionProvider.d.ts +13 -1
- package/dist/session/SessionProvider.js +21 -1
- package/dist/session/ShareSessionDialog.d.ts +4 -4
- package/dist/session/ShareSessionDialog.js +182 -283
- package/dist/session/TypingLine.d.ts +9 -4
- package/dist/session/TypingLine.js +16 -5
- package/dist/session/{UsagePanel.d.ts → UsageSection.d.ts} +9 -13
- package/dist/session/{UsagePanel.js → UsageSection.js} +40 -41
- package/dist/session/artifact-row-parts.d.ts +32 -0
- package/dist/session/artifact-row-parts.js +51 -0
- package/dist/session/headless/access.d.ts +33 -0
- package/dist/session/headless/access.js +48 -0
- package/dist/session/headless/fixture-host.d.ts +48 -9
- package/dist/session/headless/fixture-host.js +139 -1
- package/dist/session/headless/fixture-project-artifacts.d.ts +77 -0
- package/dist/session/headless/fixture-project-artifacts.js +168 -0
- package/dist/session/headless/fixture-project-content.d.ts +67 -0
- package/dist/session/headless/fixture-project-content.js +176 -0
- package/dist/session/headless/fixture-projects.d.ts +175 -0
- package/dist/session/headless/fixture-projects.js +498 -0
- package/dist/session/headless/home-layout.d.ts +18 -2
- package/dist/session/headless/home-layout.js +20 -7
- package/dist/session/headless/host.d.ts +263 -7
- package/dist/session/headless/index.d.ts +10 -5
- package/dist/session/headless/index.js +8 -3
- package/dist/session/headless/labels.d.ts +381 -6
- package/dist/session/headless/labels.js +72 -24
- package/dist/session/headless/orchestration-labels.d.ts +52 -0
- package/dist/session/headless/orchestration-labels.js +59 -0
- package/dist/session/headless/project-artifact-labels.d.ts +67 -0
- package/dist/session/headless/project-artifact-labels.js +96 -0
- package/dist/session/headless/project-artifacts.d.ts +124 -0
- package/dist/session/headless/project-artifacts.js +271 -0
- package/dist/session/headless/project-content-labels.d.ts +88 -0
- package/dist/session/headless/project-content-labels.js +152 -0
- package/dist/session/headless/project-labels.d.ts +123 -0
- package/dist/session/headless/project-labels.js +128 -0
- package/dist/session/headless/project-sessions.d.ts +37 -0
- package/dist/session/headless/project-sessions.js +57 -0
- package/dist/session/headless/project-usage-labels.d.ts +74 -0
- package/dist/session/headless/project-usage-labels.js +81 -0
- package/dist/session/headless/project-usage.d.ts +65 -0
- package/dist/session/headless/project-usage.js +92 -0
- package/dist/session/headless/projects.d.ts +158 -0
- package/dist/session/headless/projects.js +301 -0
- package/dist/session/headless/pushed-once.d.ts +22 -0
- package/dist/session/headless/pushed-once.js +28 -0
- package/dist/session/headless/queue.js +2 -1
- package/dist/session/headless/typing.d.ts +20 -1
- package/dist/session/headless/typing.js +58 -3
- package/dist/session/home-block-parts.d.ts +40 -0
- package/dist/session/home-block-parts.js +46 -0
- package/dist/session/index.d.ts +17 -4
- package/dist/session/index.js +16 -3
- package/dist/session/modal-shell.d.ts +1 -1
- package/dist/session/modal-shell.js +1 -1
- package/dist/session/project-artifact-parts.d.ts +59 -0
- package/dist/session/project-artifact-parts.js +222 -0
- package/dist/session/project-content-parts.d.ts +176 -0
- package/dist/session/project-content-parts.js +546 -0
- package/dist/session/project-files.d.ts +48 -0
- package/dist/session/project-files.js +54 -0
- package/dist/session/project-folder-actions.d.ts +11 -0
- package/dist/session/project-folder-actions.js +39 -0
- package/dist/session/project-mcp-add.d.ts +23 -0
- package/dist/session/project-mcp-add.js +107 -0
- package/dist/session/project-record-document.d.ts +48 -0
- package/dist/session/project-record-document.js +225 -0
- package/dist/session/project-settings-parts.d.ts +69 -0
- package/dist/session/project-settings-parts.js +90 -0
- package/dist/session/share-people.d.ts +222 -0
- package/dist/session/share-people.js +457 -0
- package/dist/session/testing/contract.d.ts +67 -8
- package/dist/session/testing/contract.js +343 -6
- package/dist/session/testing/index.d.ts +5 -2
- package/dist/session/testing/index.js +4 -1
- package/dist/session/testing/project-artifacts.contract.js +159 -0
- package/dist/session/testing/project-content.contract.d.ts +19 -0
- package/dist/session/testing/project-content.contract.js +221 -0
- package/dist/session/testing/project-sessions.contract.js +134 -0
- package/dist/session/use-folder-missing.d.ts +6 -0
- package/dist/session/use-folder-missing.js +31 -0
- package/dist/session/use-folder-project.d.ts +14 -0
- package/dist/session/use-folder-project.js +37 -0
- package/dist/session/use-home-projects.d.ts +55 -0
- package/dist/session/use-home-projects.js +154 -0
- package/dist/session/use-project-home-layout.d.ts +33 -0
- package/dist/session/use-project-home-layout.js +134 -0
- package/dist/session/use-project-home-on.d.ts +2 -0
- package/dist/session/use-project-home-on.js +14 -0
- package/dist/settings/SettingCard.d.ts +3 -1
- package/dist/settings/SettingCard.js +2 -1
- package/dist/settings/SettingDemo.d.ts +3 -1
- package/dist/settings/SettingDemo.js +4 -3
- package/dist/settings/SettingsShell.d.ts +2 -1
- package/dist/settings/SettingsShell.js +55 -43
- package/dist/settings/headless/index.d.ts +2 -1
- package/dist/settings/headless/index.js +2 -1
- package/dist/settings/headless/mcp-requirement.d.ts +93 -0
- package/dist/settings/headless/mcp-requirement.js +117 -0
- package/dist/settings/headless/mcp.d.ts +2 -0
- package/dist/settings/headless/mcp.js +3 -2
- package/dist/settings/headless/search.d.ts +1 -1
- package/dist/settings/index.d.ts +3 -2
- package/dist/settings/index.js +13 -12
- package/dist/settings/section.d.ts +9 -0
- package/dist/settings/section.js +12 -1
- package/dist/settings/sections/editor/labels.js +1 -1
- package/dist/settings/sections/extensions/ExtensionConfigRows.d.ts +6 -2
- package/dist/settings/sections/extensions/ExtensionConfigRows.js +10 -1
- package/dist/settings/sections/extensions/ExtensionOptionsSection.js +1 -0
- package/dist/settings/sections/extensions/ExtensionsSection.d.ts +6 -3
- package/dist/settings/sections/extensions/ExtensionsSection.js +24 -3
- package/dist/settings/sections/extensions/McpRequirementRow.d.ts +45 -0
- package/dist/settings/sections/extensions/McpRequirementRow.js +298 -0
- package/dist/settings/sections/extensions/labels.d.ts +4 -0
- package/dist/settings/sections/extensions/labels.js +4 -0
- package/dist/settings/sections/extensions/options-labels.d.ts +39 -0
- package/dist/settings/sections/extensions/options-labels.js +48 -1
- package/dist/settings/sections/extensions/use-mcp-setup.d.ts +6 -0
- package/dist/settings/sections/extensions/use-mcp-setup.js +41 -0
- package/dist/settings/sections/host-catalog/HostCatalogSection.js +3 -0
- package/dist/settings/sections/index.d.ts +4 -3
- package/dist/settings/sections/index.js +4 -3
- package/dist/settings/sections/instructions/InstructionsSection.d.ts +69 -1
- package/dist/settings/sections/instructions/InstructionsSection.js +181 -109
- package/dist/settings/sections/mcp/McpAddForm.d.ts +9 -2
- package/dist/settings/sections/mcp/McpAddForm.js +15 -7
- package/dist/settings/sections/mcp/McpSection.js +3 -5
- package/dist/settings/sections/mcp/McpServerRow.js +7 -47
- package/dist/settings/sections/mcp/McpSignIn.d.ts +38 -0
- package/dist/settings/sections/mcp/McpSignIn.js +72 -0
- package/dist/settings/sections/mcp/labels.js +1 -1
- package/dist/settings/sections/models/AgentDefaults.d.ts +12 -4
- package/dist/settings/sections/models/AgentDefaults.js +102 -70
- package/dist/settings/sections/models/ModelPickField.d.ts +10 -1
- package/dist/settings/sections/models/ModelPickField.js +87 -39
- package/dist/settings/sections/models/labels.d.ts +8 -0
- package/dist/settings/sections/models/labels.js +8 -0
- package/dist/settings/sections/performance/labels.js +2 -2
- package/dist/settings/sections/providers/ServerSignIn.d.ts +6 -1
- package/dist/settings/sections/providers/ServerSignIn.js +66 -61
- package/dist/settings/sections/skills/SkillList.d.ts +45 -0
- package/dist/settings/sections/skills/SkillList.js +58 -40
- package/dist/settings/server-app.d.ts +2 -0
- package/dist/settings/server-app.js +16 -4
- package/dist/styles.css +170 -34
- package/dist/theme/runtime-icons.js +7 -3
- package/dist/workspace/PanelContentView.js +1 -1
- package/package.json +26 -2
- package/src/styles/app.css +6 -3
- package/src/styles/palette.css +15 -19
- package/src/styles/primitives.css +3 -1
- package/src/styles/transcript.css +61 -0
- package/dist/dist/index-ttmMvjgM.d.ts +0 -1
- package/dist/dist/sandbox-CSUihARm.d.ts +0 -2
- package/dist/machines/PersonalLayerPanel.d.ts +0 -32
- package/dist/machines/PersonalLayerPanel.js +0 -360
- package/dist/machines/headless/layer.d.ts +0 -64
- package/dist/machines/headless/layer.js +0 -56
- /package/dist/dist/{execution-failure-SREfl-EZ.d.ts → execution-failure-_L2r_Qd-.d.ts} +0 -0
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
import { useLayoutEffect, useState } from "react";
|
|
1
|
+
import { useLayoutEffect, useRef, useState } from "react";
|
|
2
2
|
// src/components/floating/useAnchoredPosition.ts
|
|
3
3
|
/**
|
|
4
4
|
* Fixed-position placement for a floating surface: next to an element or at
|
|
5
5
|
* a point (a right-click), on the preferred side, flipped when it would not
|
|
6
6
|
* fit, clamped inside the viewport. Re-measures on resize, scroll and when
|
|
7
7
|
* the surface's own size changes.
|
|
8
|
+
*
|
|
9
|
+
* Content that lands late (a list read once open) must not move it: the
|
|
10
|
+
* surface is held by the edge on its anchor's side (`bottom` above it,
|
|
11
|
+
* `right` to its left, `right` when aligned by its end), so it grows away
|
|
12
|
+
* from its anchor in the frame the content lands, with no measure between.
|
|
13
|
+
* Once placed it keeps its side while that side still fits.
|
|
8
14
|
*/
|
|
9
15
|
const MARGIN = 8;
|
|
10
16
|
/**
|
|
@@ -51,6 +57,8 @@ function anchorRect(anchor) {
|
|
|
51
57
|
/**
|
|
52
58
|
* Computes where a surface goes next to an anchor. It tries `side`, flips to the opposite side
|
|
53
59
|
* when `side` does not fit but the opposite does, then clamps the result 8px inside the viewport.
|
|
60
|
+
* Unless clamped, the edge on the anchor's side (and the end edge, for `end`) is also given as
|
|
61
|
+
* `bottom` / `right`, the edges to hold the surface by.
|
|
54
62
|
*
|
|
55
63
|
* @param a - The anchor's rectangle.
|
|
56
64
|
* @param size - The surface's measured width and height.
|
|
@@ -58,13 +66,15 @@ function anchorRect(anchor) {
|
|
|
58
66
|
* @param align - How the surface lines up along the anchor's edge.
|
|
59
67
|
* @param offset - Gap between anchor and surface, in px.
|
|
60
68
|
* @param viewport - The viewport size to fit in. Defaults to the window's inner size.
|
|
69
|
+
* @param keep - The side the surface is on already: it stays there while it fits, so content that grows does
|
|
70
|
+
* not flip it back and forth.
|
|
61
71
|
* @returns The position, the side used and the `transform-origin` that grows the surface out of the
|
|
62
72
|
* anchor.
|
|
63
73
|
*/
|
|
64
74
|
function placeSurface(a, size, side, align, offset, viewport = {
|
|
65
75
|
width: window.innerWidth,
|
|
66
76
|
height: window.innerHeight
|
|
67
|
-
}) {
|
|
77
|
+
}, keep) {
|
|
68
78
|
const fits = (s) => s === "top" ? a.top - offset - size.height >= MARGIN : s === "bottom" ? a.bottom + offset + size.height <= viewport.height - MARGIN : s === "left" ? a.left - offset - size.width >= MARGIN : a.right + offset + size.width <= viewport.width - MARGIN;
|
|
69
79
|
const opposite = {
|
|
70
80
|
top: "bottom",
|
|
@@ -72,7 +82,7 @@ function placeSurface(a, size, side, align, offset, viewport = {
|
|
|
72
82
|
left: "right",
|
|
73
83
|
right: "left"
|
|
74
84
|
};
|
|
75
|
-
const chosen = fits(side) || !fits(opposite[side]) ? side : opposite[side];
|
|
85
|
+
const chosen = keep && fits(keep) ? keep : fits(side) || !fits(opposite[side]) ? side : opposite[side];
|
|
76
86
|
let top;
|
|
77
87
|
let left;
|
|
78
88
|
if (chosen === "top" || chosen === "bottom") {
|
|
@@ -82,13 +92,27 @@ function placeSurface(a, size, side, align, offset, viewport = {
|
|
|
82
92
|
left = chosen === "left" ? a.left - offset - size.width : a.right + offset;
|
|
83
93
|
top = align === "start" ? a.top : align === "end" ? a.bottom - size.height : a.top + a.height / 2 - size.height / 2;
|
|
84
94
|
}
|
|
95
|
+
const free = {
|
|
96
|
+
top,
|
|
97
|
+
left
|
|
98
|
+
};
|
|
85
99
|
left = Math.min(Math.max(MARGIN, left), Math.max(MARGIN, viewport.width - size.width - MARGIN));
|
|
86
100
|
top = Math.min(Math.max(MARGIN, top), Math.max(MARGIN, viewport.height - size.height - MARGIN));
|
|
101
|
+
const aboveOrBelow = chosen === "top" || chosen === "bottom";
|
|
102
|
+
const byBottom = top === free.top && (chosen === "top" || !aboveOrBelow && align === "end");
|
|
103
|
+
const byRight = left === free.left && (chosen === "left" || aboveOrBelow && align === "end");
|
|
104
|
+
const held = {
|
|
105
|
+
...byBottom ? { bottom: viewport.height - top - size.height } : {},
|
|
106
|
+
...byRight ? { right: viewport.width - left - size.width } : {}
|
|
107
|
+
};
|
|
108
|
+
const vertical = chosen === "top" ? "bottom" : chosen === "bottom" ? "top" : "center";
|
|
109
|
+
const horizontal = chosen === "left" ? "right" : chosen === "right" ? "left" : align === "end" ? "right" : align === "start" ? "left" : "center";
|
|
87
110
|
return {
|
|
88
111
|
top,
|
|
89
112
|
left,
|
|
113
|
+
...held,
|
|
90
114
|
side: chosen,
|
|
91
|
-
origin: `${
|
|
115
|
+
origin: `${vertical} ${horizontal}`
|
|
92
116
|
};
|
|
93
117
|
}
|
|
94
118
|
/**
|
|
@@ -104,13 +128,17 @@ function placeSurface(a, size, side, align, offset, viewport = {
|
|
|
104
128
|
*/
|
|
105
129
|
function useAnchoredPosition(open, anchor, surfaceRef, { side = "bottom", align = "start", offset = 6 } = {}) {
|
|
106
130
|
const [placement, setPlacement] = useState(null);
|
|
131
|
+
const placedSide = useRef(void 0);
|
|
107
132
|
if (!open && placement !== null) setPlacement(null);
|
|
108
133
|
const element = "element" in anchor ? anchor.element : null;
|
|
109
134
|
const ref = "ref" in anchor ? anchor.ref : null;
|
|
110
135
|
const px = "point" in anchor ? anchor.point.x : null;
|
|
111
136
|
const py = "point" in anchor ? anchor.point.y : null;
|
|
112
137
|
useLayoutEffect(() => {
|
|
113
|
-
if (!open)
|
|
138
|
+
if (!open) {
|
|
139
|
+
placedSide.current = void 0;
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
114
142
|
const measure = () => {
|
|
115
143
|
const a = anchorRect(px !== null && py !== null ? { point: {
|
|
116
144
|
x: px,
|
|
@@ -118,11 +146,17 @@ function useAnchoredPosition(open, anchor, surfaceRef, { side = "bottom", align
|
|
|
118
146
|
} } : ref ? { ref } : { element });
|
|
119
147
|
const surface = surfaceRef.current;
|
|
120
148
|
if (!a || !surface) return;
|
|
149
|
+
const root = document.documentElement;
|
|
150
|
+
const viewport = {
|
|
151
|
+
width: root.clientWidth || window.innerWidth,
|
|
152
|
+
height: root.clientHeight || window.innerHeight
|
|
153
|
+
};
|
|
121
154
|
const next = placeSurface(a, {
|
|
122
155
|
width: surface.offsetWidth,
|
|
123
156
|
height: surface.offsetHeight
|
|
124
|
-
}, side, align, offset);
|
|
125
|
-
|
|
157
|
+
}, side, align, offset, viewport, placedSide.current);
|
|
158
|
+
placedSide.current = next.side;
|
|
159
|
+
setPlacement((prev) => prev && prev.top === next.top && prev.left === next.left && prev.bottom === next.bottom && prev.right === next.right && prev.side === next.side ? prev : next);
|
|
126
160
|
};
|
|
127
161
|
const onScroll = (event) => {
|
|
128
162
|
if (event.target instanceof Node && surfaceRef.current?.contains(event.target)) return;
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
* rows. Rows are memoized: moving the cursor renders the two rows it
|
|
7
7
|
* leaves and enters.
|
|
8
8
|
*
|
|
9
|
-
* The cursor is one block under the rows
|
|
10
|
-
* (a transform, so a move costs the compositor a frame and
|
|
11
|
-
* more than those two rows). A row says more only while it is
|
|
12
|
-
* description and its shortcut.
|
|
9
|
+
* The cursor is one block under the rows, moved to the row it marks in the
|
|
10
|
+
* frame of the key (a transform, so a move costs the compositor a frame and
|
|
11
|
+
* React nothing more than those two rows). A row says more only while it is
|
|
12
|
+
* marked: its description and its shortcut.
|
|
13
13
|
*
|
|
14
14
|
* Data is the caller's: any item with an id and a title (`PaletteEntry`),
|
|
15
15
|
* ranked into sections (`PaletteSection`). An app draws its own kinds of
|
|
@@ -111,7 +111,7 @@ export declare const PaletteRow: import("react").MemoExoticComponent<(props: Pal
|
|
|
111
111
|
}) => import("react").JSX.Element>;
|
|
112
112
|
/**
|
|
113
113
|
* Renders the palette's results: titled sections of rows in a `listbox`, windowed so only the
|
|
114
|
-
* rows in view are mounted. A block under the rows
|
|
114
|
+
* rows in view are mounted. A block under the rows marks the cursor's row.
|
|
115
115
|
*
|
|
116
116
|
* @param props - Component props.
|
|
117
117
|
*/
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { KeyCombo } from "../Keycap.js";
|
|
2
2
|
import { MenuRow } from "../Menu.js";
|
|
3
|
-
import { objectKey } from "../object-key.js";
|
|
4
3
|
import { layoutPalette, placeOfRow, useMaxHeight } from "./palette-layout.js";
|
|
5
4
|
import { Fragment, memo, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
6
5
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -38,7 +37,7 @@ const PaletteRow = memo((props) => {
|
|
|
38
37
|
});
|
|
39
38
|
/**
|
|
40
39
|
* Renders the palette's results: titled sections of rows in a `listbox`, windowed so only the
|
|
41
|
-
* rows in view are mounted. A block under the rows
|
|
40
|
+
* rows in view are mounted. A block under the rows marks the cursor's row.
|
|
42
41
|
*
|
|
43
42
|
* @param props - Component props.
|
|
44
43
|
*/
|
|
@@ -108,7 +107,7 @@ function PaletteList({ groups, cursor, query, nested, onHover, onRun, renderRow,
|
|
|
108
107
|
right: 6,
|
|
109
108
|
transform: `translateY(${marked.top}px)`
|
|
110
109
|
}
|
|
111
|
-
}
|
|
110
|
+
}), sections.map((s) => {
|
|
112
111
|
const rowsTop = s.top + 30;
|
|
113
112
|
const lo = Math.max(0, Math.floor((from - rowsTop) / 34));
|
|
114
113
|
const hi = Math.min(s.rows.length - 1, Math.floor((to - rowsTop) / 34));
|
|
@@ -130,14 +130,18 @@ function PalettePanel({ groups, query, onQueryChange, cursor, onCursorChange, on
|
|
|
130
130
|
...rest,
|
|
131
131
|
children: [
|
|
132
132
|
/* @__PURE__ */ jsxs("div", {
|
|
133
|
-
className: `flex items-center gap-2 h-[52px] shrink-0 shadow-[inset_0_-1px_0_var(--zg-hairline)] ${nested ? "pl-2.5 pr-4" : "px-4"}`,
|
|
133
|
+
className: `flex items-center gap-2.5 h-[52px] shrink-0 shadow-[inset_0_-1px_0_var(--zg-hairline)] ${nested ? "pl-2.5 pr-4" : "px-4"}`,
|
|
134
134
|
children: [
|
|
135
|
-
nested && onBack
|
|
135
|
+
nested && onBack ? /* @__PURE__ */ jsx(IconButton, {
|
|
136
136
|
icon: "i-ph-caret-left",
|
|
137
137
|
label: labels.paletteBack,
|
|
138
138
|
title: labels.paletteBackHint,
|
|
139
139
|
size: "sm",
|
|
140
140
|
onClick: onBack
|
|
141
|
+
}) : /* @__PURE__ */ jsx("span", {
|
|
142
|
+
"aria-hidden": true,
|
|
143
|
+
className: "shrink-0 w-4 inline-flex justify-center",
|
|
144
|
+
children: /* @__PURE__ */ jsx("span", { className: "i-ph-magnifying-glass text-zg-body text-[var(--zg-text-subtle)]" })
|
|
141
145
|
}),
|
|
142
146
|
title && /* @__PURE__ */ jsx("span", {
|
|
143
147
|
className: "zg-track-chip shrink-0 px-2.5 h-6 inline-flex items-center text-zg-label text-[var(--zg-text-muted)]",
|
|
@@ -171,9 +175,10 @@ function PalettePanel({ groups, query, onQueryChange, cursor, onCursorChange, on
|
|
|
171
175
|
spellCheck: false,
|
|
172
176
|
className: "flex-1 min-w-0 h-9 bg-transparent border-0 outline-none text-[length:var(--zg-font-size-prompt)] tracking-[-0.005em] text-[var(--zg-text)] placeholder:text-[var(--zg-text-subtle)]"
|
|
173
177
|
}),
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
"
|
|
178
|
+
/* @__PURE__ */ jsx("span", {
|
|
179
|
+
"aria-hidden": true,
|
|
180
|
+
className: "shrink-0 w-4 inline-flex justify-center",
|
|
181
|
+
children: running && /* @__PURE__ */ jsx("span", { className: "i-ph-circle-notch animate-spin text-zg-ui text-[var(--zg-text-muted)]" })
|
|
177
182
|
})
|
|
178
183
|
]
|
|
179
184
|
}),
|
|
@@ -197,11 +202,6 @@ function PalettePanel({ groups, query, onQueryChange, cursor, onCursorChange, on
|
|
|
197
202
|
/* @__PURE__ */ jsxs("div", {
|
|
198
203
|
className: "flex items-center gap-4 px-4 h-9 shrink-0 shadow-[inset_0_1px_0_var(--zg-hairline)]",
|
|
199
204
|
children: [
|
|
200
|
-
marked && /* @__PURE__ */ jsx(PaletteHint, {
|
|
201
|
-
keys: ["enter"],
|
|
202
|
-
label: verb?.(marked, nested) ?? paletteVerb(marked, nested, labels),
|
|
203
|
-
renderKeys
|
|
204
|
-
}),
|
|
205
205
|
nested && /* @__PURE__ */ jsx(PaletteHint, {
|
|
206
206
|
keys: ["⌫"],
|
|
207
207
|
label: labels.paletteBack,
|
|
@@ -211,6 +211,12 @@ function PalettePanel({ groups, query, onQueryChange, cursor, onCursorChange, on
|
|
|
211
211
|
keys: ["shift+tab"],
|
|
212
212
|
label: labels.paletteScopeHint,
|
|
213
213
|
renderKeys
|
|
214
|
+
}),
|
|
215
|
+
marked && /* @__PURE__ */ jsx(PaletteHint, {
|
|
216
|
+
className: "ml-auto",
|
|
217
|
+
keys: ["enter"],
|
|
218
|
+
label: verb?.(marked, nested) ?? paletteVerb(marked, nested, labels),
|
|
219
|
+
renderKeys
|
|
214
220
|
})
|
|
215
221
|
]
|
|
216
222
|
}),
|
|
@@ -230,9 +236,9 @@ function PalettePanel({ groups, query, onQueryChange, cursor, onCursorChange, on
|
|
|
230
236
|
});
|
|
231
237
|
}
|
|
232
238
|
/** A footer legend entry: the keys, then what they do. */
|
|
233
|
-
function PaletteHint({ keys, label, renderKeys }) {
|
|
239
|
+
function PaletteHint({ keys, label, renderKeys, className = "" }) {
|
|
234
240
|
return /* @__PURE__ */ jsxs("span", {
|
|
235
|
-
className:
|
|
241
|
+
className: `text-zg-meta text-[var(--zg-text-muted)] inline-flex items-center gap-1 ${className}`,
|
|
236
242
|
children: [keys.map((k) => /* @__PURE__ */ jsx(Fragment, { children: renderKeys(k) }, k)), /* @__PURE__ */ jsx("span", {
|
|
237
243
|
className: "ml-0.5",
|
|
238
244
|
children: label
|
|
@@ -46,5 +46,9 @@ export declare function placeOfRow(sections: readonly PlacedSection<PaletteEntry
|
|
|
46
46
|
top: number;
|
|
47
47
|
first: boolean;
|
|
48
48
|
} | null;
|
|
49
|
-
/**
|
|
49
|
+
/**
|
|
50
|
+
* The list's cap: a share of the window, remeasured as it resizes. Read in the render of a list that mounts on
|
|
51
|
+
* the client (a palette opening), so the list is its height in its first render, not in a second one after a
|
|
52
|
+
* measure; a hydrating page reads the server's value first, as the server did.
|
|
53
|
+
*/
|
|
50
54
|
export declare function useMaxHeight(): number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useSyncExternalStore } from "react";
|
|
2
2
|
// src/components/palette/palette-layout.ts
|
|
3
3
|
/** Height of a palette row, in px. */
|
|
4
4
|
const PALETTE_ROW_H = 34;
|
|
@@ -55,15 +55,18 @@ function placeOfRow(sections, index) {
|
|
|
55
55
|
first: k === 0
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
|
-
|
|
58
|
+
function onResize(change) {
|
|
59
|
+
window.addEventListener("resize", change);
|
|
60
|
+
return () => window.removeEventListener("resize", change);
|
|
61
|
+
}
|
|
62
|
+
const windowMax = () => Math.round(window.innerHeight * MAX_HEIGHT_SHARE);
|
|
63
|
+
const serverMax = () => Math.round(SSR_WINDOW_H * MAX_HEIGHT_SHARE);
|
|
64
|
+
/**
|
|
65
|
+
* The list's cap: a share of the window, remeasured as it resizes. Read in the render of a list that mounts on
|
|
66
|
+
* the client (a palette opening), so the list is its height in its first render, not in a second one after a
|
|
67
|
+
* measure; a hydrating page reads the server's value first, as the server did.
|
|
68
|
+
*/
|
|
59
69
|
function useMaxHeight() {
|
|
60
|
-
|
|
61
|
-
useLayoutEffect(() => {
|
|
62
|
-
const measure = () => setMax(Math.round(window.innerHeight * MAX_HEIGHT_SHARE));
|
|
63
|
-
measure();
|
|
64
|
-
window.addEventListener("resize", measure);
|
|
65
|
-
return () => window.removeEventListener("resize", measure);
|
|
66
|
-
}, []);
|
|
67
|
-
return max;
|
|
70
|
+
return useSyncExternalStore(onResize, windowMax, serverMax);
|
|
68
71
|
}
|
|
69
72
|
export { PALETTE_HEADER_H, PALETTE_OVERSCAN_PX, PALETTE_PAD, PALETTE_ROW_H, layoutPalette, placeOfRow, useMaxHeight };
|
package/dist/core.css
CHANGED
|
@@ -31,10 +31,12 @@
|
|
|
31
31
|
.i-ph-globe-simple{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M128 24a104 104 0 1 0 104 104A104.12 104.12 0 0 0 128 24m87.62 96h-39.83c-1.79-36.51-15.85-62.33-27.38-77.6a88.19 88.19 0 0 1 67.22 77.6ZM96.23 136h63.54c-2.31 41.61-22.23 67.11-31.77 77c-9.55-9.9-29.46-35.4-31.77-77m0-16c2.31-41.61 22.23-67.11 31.77-77c9.55 9.93 29.46 35.43 31.77 77Zm11.36-77.6C96.06 57.67 82 83.49 80.21 120H40.37a88.19 88.19 0 0 1 67.22-77.6M40.37 136h39.84c1.82 36.51 15.85 62.33 27.38 77.6A88.19 88.19 0 0 1 40.37 136m108 77.6c11.53-15.27 25.56-41.09 27.38-77.6h39.84a88.19 88.19 0 0 1-67.18 77.6Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
|
|
32
32
|
.i-ph-info{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m0 192a88 88 0 1 1 88-88a88.1 88.1 0 0 1-88 88m16-40a8 8 0 0 1-8 8a16 16 0 0 1-16-16v-40a8 8 0 0 1 0-16a16 16 0 0 1 16 16v40a8 8 0 0 1 8 8m-32-92a12 12 0 1 1 12 12a12 12 0 0 1-12-12'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
|
|
33
33
|
.i-ph-lock-simple{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M208 80h-32V56a48 48 0 0 0-96 0v24H48a16 16 0 0 0-16 16v112a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V96a16 16 0 0 0-16-16M96 56a32 32 0 0 1 64 0v24H96Zm112 152H48V96h160z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
|
|
34
|
+
.i-ph-magnifying-glass{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m229.66 218.34l-50.07-50.06a88.11 88.11 0 1 0-11.31 11.31l50.06 50.07a8 8 0 0 0 11.32-11.32M40 112a72 72 0 1 1 72 72a72.08 72.08 0 0 1-72-72'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
|
|
34
35
|
.i-ph-minus{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M224 128a8 8 0 0 1-8 8H40a8 8 0 0 1 0-16h176a8 8 0 0 1 8 8'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
|
|
35
36
|
.i-ph-minus-circle{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M176 128a8 8 0 0 1-8 8H88a8 8 0 0 1 0-16h80a8 8 0 0 1 8 8m56 0A104 104 0 1 1 128 24a104.11 104.11 0 0 1 104 104m-16 0a88 88 0 1 0-88 88a88.1 88.1 0 0 0 88-88'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
|
|
36
37
|
.i-ph-note{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M88 96a8 8 0 0 1 8-8h64a8 8 0 0 1 0 16H96a8 8 0 0 1-8-8m8 40h64a8 8 0 0 0 0-16H96a8 8 0 0 0 0 16m32 16H96a8 8 0 0 0 0 16h32a8 8 0 0 0 0-16m96-104v108.69a15.86 15.86 0 0 1-4.69 11.31L168 219.31a15.86 15.86 0 0 1-11.31 4.69H48a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h160a16 16 0 0 1 16 16M48 208h104v-48a8 8 0 0 1 8-8h48V48H48Zm120-40v28.7l28.69-28.7Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
|
|
37
38
|
.i-ph-planet{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M245.11 60.68c-7.65-13.19-27.84-16.16-58.5-8.66A95.93 95.93 0 0 0 32 128a98 98 0 0 0 .78 12.31C5.09 169 5.49 186 10.9 195.32C16 204.16 26.64 208 40.64 208a124 124 0 0 0 28.79-4A95.93 95.93 0 0 0 224 128a97 97 0 0 0-.77-12.25c12.5-13 20.82-25.35 23.65-35.92c1.95-7.32 1.36-13.76-1.77-19.15M128 48a80.11 80.11 0 0 1 78 62.2c-17.06 16.06-40.15 32.53-62.07 45.13c-27.55 15.81-51.45 25.67-70.51 31.07A79.94 79.94 0 0 1 128 48M24.74 187.29c-1.46-2.51-.65-7.24 2.22-13a79 79 0 0 1 10.29-15.05a96 96 0 0 0 18 31.32c-17.25 2.9-28.01 1.05-30.51-3.27M128 208a79.45 79.45 0 0 1-38.56-9.94a370 370 0 0 0 62.43-28.86c21.58-12.39 40.68-25.82 56.07-39.08A80.07 80.07 0 0 1 128 208M231.42 75.69c-1.7 6.31-6.19 13.53-12.63 21.13a95.7 95.7 0 0 0-18-31.35c14.21-2.35 27.37-2.17 30.5 3.24c.9 1.57.95 3.92.13 6.98'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
|
|
39
|
+
.i-ph-question{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M140 180a12 12 0 1 1-12-12a12 12 0 0 1 12 12M128 72c-22.06 0-40 16.15-40 36v4a8 8 0 0 0 16 0v-4c0-11 10.77-20 24-20s24 9 24 20s-10.77 20-24 20a8 8 0 0 0-8 8v8a8 8 0 0 0 16 0v-.72c18.24-3.35 32-17.9 32-35.28c0-19.85-17.94-36-40-36m104 56A104 104 0 1 1 128 24a104.11 104.11 0 0 1 104 104m-16 0a88 88 0 1 0-88 88a88.1 88.1 0 0 0 88-88'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
|
|
38
40
|
.i-ph-sidebar-simple{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M216 40H40a16 16 0 0 0-16 16v144a16 16 0 0 0 16 16h176a16 16 0 0 0 16-16V56a16 16 0 0 0-16-16M40 56h40v144H40Zm176 144H96V56h120z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
|
|
39
41
|
.i-ph-squares-four{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M104 40H56a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h48a16 16 0 0 0 16-16V56a16 16 0 0 0-16-16m0 64H56V56h48zm96-64h-48a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h48a16 16 0 0 0 16-16V56a16 16 0 0 0-16-16m0 64h-48V56h48zm-96 32H56a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h48a16 16 0 0 0 16-16v-48a16 16 0 0 0-16-16m0 64H56v-48h48zm96-64h-48a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h48a16 16 0 0 0 16-16v-48a16 16 0 0 0-16-16m0 64h-48v-48h48z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
|
|
40
42
|
.i-ph-terminal-window{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M128 128a8 8 0 0 1-3 6.25l-40 32a8 8 0 1 1-10-12.5L107.19 128L75 102.25a8 8 0 1 1 10-12.5l40 32a8 8 0 0 1 3 6.25m48 24h-40a8 8 0 0 0 0 16h40a8 8 0 0 0 0-16m56-96v144a16 16 0 0 1-16 16H40a16 16 0 0 1-16-16V56a16 16 0 0 1 16-16h176a16 16 0 0 1 16 16m-16 144V56H40v144z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
|
|
@@ -69,6 +71,7 @@
|
|
|
69
71
|
.\[field-sizing\:content\]{field-sizing:content;}
|
|
70
72
|
.\[font\:inherit\]{font:inherit;}
|
|
71
73
|
.\[grid-area\:1\/1\]{grid-area:1/1;}
|
|
74
|
+
.\[mask-image\:linear-gradient\(to_bottom\,black_55\%\,transparent\)\]{mask-image:linear-gradient(to bottom,black 55%,transparent);}
|
|
72
75
|
.\[overflow-wrap\:anywhere\]{overflow-wrap:anywhere;}
|
|
73
76
|
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;}
|
|
74
77
|
.pointer-events-none{pointer-events:none;}
|
|
@@ -86,6 +89,7 @@
|
|
|
86
89
|
.bottom-full{bottom:100%;}
|
|
87
90
|
.left-1\/2{left:50%;}
|
|
88
91
|
.left-2{left:0.5rem;}
|
|
92
|
+
.left-2\.5{left:0.625rem;}
|
|
89
93
|
.left-4{left:1rem;}
|
|
90
94
|
.right-0{right:0;}
|
|
91
95
|
.right-1{right:0.25rem;}
|
|
@@ -99,7 +103,11 @@
|
|
|
99
103
|
.z-10{z-index:10;}
|
|
100
104
|
.z-30{z-index:30;}
|
|
101
105
|
.grid{display:grid;}
|
|
106
|
+
.col-span-2{grid-column:span 2/span 2;}
|
|
107
|
+
.col-start-2{grid-column-start:2;}
|
|
102
108
|
.grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr;}
|
|
109
|
+
.grid-cols-\[auto_minmax\(0\,1fr\)_auto\]{grid-template-columns:auto minmax(0,1fr) auto;}
|
|
110
|
+
.grid-cols-\[auto_minmax\(0\,1fr\)\]{grid-template-columns:auto minmax(0,1fr);}
|
|
103
111
|
.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr));}
|
|
104
112
|
.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr));}
|
|
105
113
|
.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr));}
|
|
@@ -135,6 +143,7 @@
|
|
|
135
143
|
.mb-2{margin-bottom:0.5rem;}
|
|
136
144
|
.mb-3{margin-bottom:0.75rem;}
|
|
137
145
|
.ml-0\.5{margin-left:0.125rem;}
|
|
146
|
+
.ml-1\.5{margin-left:0.375rem;}
|
|
138
147
|
.ml-2{margin-left:0.5rem;}
|
|
139
148
|
.ml-auto{margin-left:auto;}
|
|
140
149
|
.mr-1{margin-right:0.25rem;}
|
|
@@ -148,12 +157,15 @@
|
|
|
148
157
|
.mt-3{margin-top:0.75rem;}
|
|
149
158
|
.mt-auto{margin-top:auto;}
|
|
150
159
|
.mt-px{margin-top:1px;}
|
|
160
|
+
.first\:-mt-1:first-child{margin-top:-0.25rem;}
|
|
151
161
|
.inline{display:inline;}
|
|
152
162
|
.block{display:block;}
|
|
153
163
|
.inline-block{display:inline-block;}
|
|
154
164
|
.contents{display:contents;}
|
|
155
165
|
.hidden{display:none;}
|
|
156
166
|
.aspect-square{aspect-ratio:1/1;}
|
|
167
|
+
.size-3{width:0.75rem;height:0.75rem;}
|
|
168
|
+
.size-3\.5{width:0.875rem;height:0.875rem;}
|
|
157
169
|
.h-\[18px\]{height:18px;}
|
|
158
170
|
.h-\[52px\]{height:52px;}
|
|
159
171
|
.h-0\.5{height:0.125rem;}
|
|
@@ -178,6 +190,7 @@
|
|
|
178
190
|
.h23{height:5.75rem;}
|
|
179
191
|
.max-w-\[28rem\]{max-width:28rem;}
|
|
180
192
|
.max-w-\[50vw\]{max-width:50vw;}
|
|
193
|
+
.max-w-\[60\%\]{max-width:60%;}
|
|
181
194
|
.max-w-\[640px\]{max-width:640px;}
|
|
182
195
|
.max-w-\[65\%\]{max-width:65%;}
|
|
183
196
|
.max-w-\[92vw\]{max-width:92vw;}
|
|
@@ -194,6 +207,7 @@
|
|
|
194
207
|
.min-h-7{min-height:1.75rem;}
|
|
195
208
|
.min-w-\[10rem\],
|
|
196
209
|
.min-w-40{min-width:10rem;}
|
|
210
|
+
.min-w-\[12rem\]{min-width:12rem;}
|
|
197
211
|
.min-w-0{min-width:0;}
|
|
198
212
|
.min-w-4{min-width:1rem;}
|
|
199
213
|
.w-\[400px\]{width:400px;}
|
|
@@ -228,6 +242,7 @@
|
|
|
228
242
|
.shrink{flex-shrink:1;}
|
|
229
243
|
.shrink-0{flex-shrink:0;}
|
|
230
244
|
.grow{flex-grow:1;}
|
|
245
|
+
.basis-\[12rem\]{flex-basis:12rem;}
|
|
231
246
|
.basis-40{flex-basis:10rem;}
|
|
232
247
|
.flex-row-reverse{flex-direction:row-reverse;}
|
|
233
248
|
.flex-col{flex-direction:column;}
|
|
@@ -241,6 +256,7 @@
|
|
|
241
256
|
.animate-spin{animation:spin 1s linear infinite;}
|
|
242
257
|
.cursor-default{cursor:default;}
|
|
243
258
|
.disabled\:cursor-default:disabled{cursor:default;}
|
|
259
|
+
.cursor-help{cursor:help;}
|
|
244
260
|
.cursor-pointer{cursor:pointer;}
|
|
245
261
|
.cursor-text{cursor:text;}
|
|
246
262
|
.cursor-grabbing{cursor:grabbing;}
|
|
@@ -259,6 +275,7 @@
|
|
|
259
275
|
.justify-end{justify-content:flex-end;}
|
|
260
276
|
.justify-center{justify-content:center;}
|
|
261
277
|
.justify-between{justify-content:space-between;}
|
|
278
|
+
.justify-self-end{justify-self:end;}
|
|
262
279
|
.gap-\[3px\]{gap:3px;}
|
|
263
280
|
.gap-0\.5{gap:0.125rem;}
|
|
264
281
|
.gap-1{gap:0.25rem;}
|
|
@@ -271,11 +288,14 @@
|
|
|
271
288
|
.gap-4{gap:1rem;}
|
|
272
289
|
.gap-6{gap:1.5rem;}
|
|
273
290
|
.gap-px{gap:1px;}
|
|
291
|
+
.gap-x-1\.5{column-gap:0.375rem;}
|
|
274
292
|
.gap-x-2{column-gap:0.5rem;}
|
|
275
293
|
.gap-x-3{column-gap:0.75rem;}
|
|
276
294
|
.gap-x-4{column-gap:1rem;}
|
|
277
295
|
.gap-x-6{column-gap:1.5rem;}
|
|
296
|
+
.gap-y-0\.5{row-gap:0.125rem;}
|
|
278
297
|
.gap-y-1{row-gap:0.25rem;}
|
|
298
|
+
.gap-y-1\.5{row-gap:0.375rem;}
|
|
279
299
|
.gap-y-2{row-gap:0.5rem;}
|
|
280
300
|
.gap-y-4{row-gap:1rem;}
|
|
281
301
|
.space-y-3>:not([hidden])~:not([hidden]){--un-space-y-reverse:0;margin-top:calc(0.75rem * calc(1 - var(--un-space-y-reverse)));margin-bottom:calc(0.75rem * var(--un-space-y-reverse));}
|
|
@@ -304,6 +324,7 @@
|
|
|
304
324
|
.border-\[var\(--zg-border-strong\)\]{border-color:var(--zg-border-strong);}
|
|
305
325
|
.border-\[var\(--zg-hairline\)\]{border-color:var(--zg-hairline);}
|
|
306
326
|
.border-transparent{border-color:transparent;}
|
|
327
|
+
.focus-within\:border-\[var\(--zg-ring\)\]:focus-within{border-color:var(--zg-ring);}
|
|
307
328
|
.\!rounded-full{border-radius:9999px !important;}
|
|
308
329
|
.rounded{border-radius:0.25rem;}
|
|
309
330
|
.rounded-\[1px\]{border-radius:1px;}
|
|
@@ -383,8 +404,12 @@
|
|
|
383
404
|
.pl-2\.5{padding-left:0.625rem;}
|
|
384
405
|
.pl-3{padding-left:0.75rem;}
|
|
385
406
|
.pl-5{padding-left:1.25rem;}
|
|
407
|
+
.pl-6\.5{padding-left:1.625rem;}
|
|
386
408
|
.pl-7{padding-left:1.75rem;}
|
|
409
|
+
.pl-7\.5{padding-left:1.875rem;}
|
|
410
|
+
.pl-9\.5{padding-left:2.375rem;}
|
|
387
411
|
.pr-1{padding-right:0.25rem;}
|
|
412
|
+
.pr-2{padding-right:0.5rem;}
|
|
388
413
|
.pr-2\.5{padding-right:0.625rem;}
|
|
389
414
|
.pr-3{padding-right:0.75rem;}
|
|
390
415
|
.pr-4{padding-right:1rem;}
|
|
@@ -446,6 +471,7 @@
|
|
|
446
471
|
.leading-8{line-height:2rem;}
|
|
447
472
|
.leading-relaxed{line-height:1.625;}
|
|
448
473
|
.leading-snug{line-height:1.375;}
|
|
474
|
+
.leading-zg-label{line-height:var(--zg-leading-label);}
|
|
449
475
|
.leading-zg-meta{line-height:var(--zg-leading-meta);}
|
|
450
476
|
.leading-zg-ui{line-height:var(--zg-leading-ui);}
|
|
451
477
|
.tracking-\[-0\.005em\]{letter-spacing:-0.005em;}
|
|
@@ -521,6 +547,7 @@
|
|
|
521
547
|
.hover\:bg-\[var\(--zg-row-hover\)\]:hover{background-color:var(--zg-row-hover);}
|
|
522
548
|
.disabled\:hover\:before\:bg-transparent:hover:disabled::before{background-color:transparent;}
|
|
523
549
|
.hover\:\!text-zg-danger:hover{color:var(--zg-danger) !important;}
|
|
550
|
+
.hover\:text-\[var\(--zg-text-muted\)\]:hover{color:var(--zg-text-muted);}
|
|
524
551
|
.hover\:text-\[var\(--zg-text\)\]:hover{color:var(--zg-text);}
|
|
525
552
|
.group:hover .group-hover\:opacity-100{opacity:1;}
|
|
526
553
|
.group\/copy:hover .group-hover\/copy\:opacity-60{opacity:0.6;}
|
|
@@ -1336,7 +1363,9 @@ html[data-motion='off'] {
|
|
|
1336
1363
|
|
|
1337
1364
|
/* The section label: sentence case, as written. */
|
|
1338
1365
|
.zg-section-label {
|
|
1339
|
-
|
|
1366
|
+
/* The label step: it heads a card or a group, so it reads at the size of the rows' second line, not a badge's. */
|
|
1367
|
+
font-size: var(--zg-font-size-label);
|
|
1368
|
+
line-height: var(--zg-leading-label);
|
|
1340
1369
|
font-weight: var(--zg-weight-strong);
|
|
1341
1370
|
/* A real label, read like any text: the muted tone (subtle is for decoration). */
|
|
1342
1371
|
color: var(--zg-text-muted);
|
|
@@ -3713,16 +3742,15 @@ html[data-motion='reduced'] .zg-seg > span:nth-child(-n + 3) {
|
|
|
3713
3742
|
animation: zg-fade-in var(--zg-motion-fade) both;
|
|
3714
3743
|
}
|
|
3715
3744
|
|
|
3716
|
-
/* Command palette. The cursor is one block under the rows that
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3745
|
+
/* Command palette. The cursor is one block under the rows that moves to the
|
|
3746
|
+
marked row (a transform: no layout, no repaint of the rows), in the tone a
|
|
3747
|
+
menu marks its row with. The rows draw no background of their own, so hover
|
|
3748
|
+
and keyboard mark the same way. */
|
|
3720
3749
|
.zg-palette-cursor {
|
|
3721
3750
|
position: absolute;
|
|
3722
3751
|
top: 0;
|
|
3723
3752
|
border-radius: var(--zg-radius-md);
|
|
3724
|
-
background:
|
|
3725
|
-
box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--zg-accent) 16%, transparent);
|
|
3753
|
+
background: var(--zg-row-active);
|
|
3726
3754
|
pointer-events: none;
|
|
3727
3755
|
}
|
|
3728
3756
|
.zg-palette-row,
|
|
@@ -3738,10 +3766,9 @@ html[data-motion='reduced'] .zg-seg > span:nth-child(-n + 3) {
|
|
|
3738
3766
|
}
|
|
3739
3767
|
.zg-palette-icon {
|
|
3740
3768
|
color: var(--zg-text-subtle);
|
|
3741
|
-
transition: color var(--zg-motion-hover);
|
|
3742
3769
|
}
|
|
3743
3770
|
.zg-palette-row[data-active] .zg-palette-icon {
|
|
3744
|
-
color: var(--zg-
|
|
3771
|
+
color: var(--zg-text);
|
|
3745
3772
|
}
|
|
3746
3773
|
.zg-palette-file .zg-badge-icon {
|
|
3747
3774
|
margin: 0;
|
|
@@ -3751,17 +3778,14 @@ html[data-motion='reduced'] .zg-seg > span:nth-child(-n + 3) {
|
|
|
3751
3778
|
color: var(--zg-text);
|
|
3752
3779
|
font-weight: var(--zg-weight-strong);
|
|
3753
3780
|
}
|
|
3754
|
-
/* The palette opens from the keyboard many times a day, so
|
|
3755
|
-
the list takes its rows' height at once and is there on the
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
/* `snap`'s curve, quicker: the cursor follows a held arrow key, so it must
|
|
3761
|
-
land before the next repeat. Scaling the duration keeps every motion mode
|
|
3762
|
-
(springs off: the tween; reduced, off: 0ms). */
|
|
3781
|
+
/* The palette opens from the keyboard many times a day, so nothing in it
|
|
3782
|
+
animates: the list takes its rows' height at once and is there on the
|
|
3783
|
+
first frame, and the cursor lands on the marked row in the frame of the key
|
|
3784
|
+
(a glide trailed the row it marked, and slid the wrong way when the list
|
|
3785
|
+
scrolled under it). */
|
|
3786
|
+
.zg-palette-list,
|
|
3763
3787
|
.zg-palette-cursor {
|
|
3764
|
-
transition:
|
|
3788
|
+
transition: none;
|
|
3765
3789
|
}
|
|
3766
3790
|
|
|
3767
3791
|
/* A quick surface (the palette) only darkens the window: a full-window blur
|
|
@@ -3771,7 +3795,8 @@ html[data-motion='reduced'] .zg-seg > span:nth-child(-n + 3) {
|
|
|
3771
3795
|
backdrop-filter: none;
|
|
3772
3796
|
}
|
|
3773
3797
|
/* …and it opens and closes in one frame, like a native command bar: no scrim
|
|
3774
|
-
fade, no panel pop on the way in or out (ModalProvider
|
|
3798
|
+
fade, no panel pop on the way in or out (ModalProvider renders a dim scrim
|
|
3799
|
+
outside its exit presence, so it leaves in the commit that closed it). */
|
|
3775
3800
|
.zg-modal-scrim[data-scrim='dim'],
|
|
3776
3801
|
.zg-modal-scrim[data-scrim='dim'] .zg-modal-panel,
|
|
3777
3802
|
.zg-modal-scrim[data-scrim='dim'][data-state='closing'] .zg-modal-panel {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./execution-failure-_L2r_Qd-.js";
|