zidane-ui 9.1.13 → 9.1.16
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 -2
- package/dist/adapters/index.js +2 -2
- package/dist/adapters/live.d.ts +29 -3
- package/dist/adapters/live.js +9 -1
- package/dist/adapters/server-composer-host.js +17 -2
- package/dist/adapters/server-extensions-host.d.ts +0 -1
- package/dist/adapters/server-extensions-host.js +4 -15
- package/dist/adapters/server-git-host.js +7 -16
- package/dist/adapters/server-host.js +181 -43
- package/dist/adapters/server-machines-host.d.ts +2 -0
- package/dist/adapters/server-machines-host.js +22 -23
- package/dist/adapters/server-onboarding-host.d.ts +1 -1
- package/dist/adapters/server-onboarding-host.js +3 -4
- package/dist/adapters/server-session-host.js +22 -3
- package/dist/adapters/server-settings-accounts.js +2 -2
- package/dist/adapters/server-settings-host.js +2 -2
- package/dist/adapters/server-settings-performance.js +7 -9
- package/dist/adapters/server-settings-sections.js +13 -14
- package/dist/adapters/server-sidebar-host.js +2 -2
- package/dist/adapters/sse-host.js +68 -3
- package/dist/adapters/sse-protocol.d.ts +12 -2
- package/dist/adapters/sse-protocol.js +4 -2
- package/dist/app/AppHostProvider.js +4 -3
- package/dist/app/ModalProvider.d.ts +13 -3
- package/dist/app/ModalProvider.js +103 -24
- package/dist/app/NoticeStack.d.ts +33 -0
- package/dist/app/NoticeStack.js +90 -0
- package/dist/app/index.d.ts +3 -2
- package/dist/app/index.js +3 -2
- package/dist/chat/SessionFilterMenu.d.ts +1 -1
- package/dist/chat/SessionFilterMenu.js +2 -1
- package/dist/chat/composer/Composer.js +10 -8
- package/dist/chat/composer/ModelChainList.js +17 -8
- package/dist/chat/composer/ModelChainTooltip.js +5 -2
- package/dist/chat/composer/use-draft-target.d.ts +20 -1
- package/dist/chat/composer/use-draft-target.js +121 -5
- package/dist/chat/composer/use-new-session-defaults.d.ts +5 -1
- package/dist/chat/composer/use-new-session-defaults.js +17 -4
- package/dist/chat/headless/chip-labels.d.ts +1 -0
- package/dist/chat/headless/chip-labels.js +1 -0
- package/dist/chat/headless/composer/labels-editor.d.ts +0 -2
- package/dist/chat/headless/composer/labels-editor.js +0 -2
- package/dist/chat/headless/draft-target.d.ts +21 -1
- package/dist/chat/headless/fixture-host.js +17 -2
- package/dist/chat/headless/host.d.ts +3 -3
- package/dist/chat/headless/index.d.ts +9 -9
- package/dist/chat/headless/index.js +2 -2
- package/dist/chat/headless/labels.d.ts +13 -6
- package/dist/chat/headless/labels.js +10 -9
- package/dist/chat/headless/session-list.d.ts +20 -8
- package/dist/chat/headless/session-list.js +1 -0
- package/dist/chat/headless/sidebar/directory.d.ts +56 -14
- package/dist/chat/headless/sidebar/directory.js +149 -70
- package/dist/chat/headless/sidebar/index.d.ts +3 -3
- package/dist/chat/headless/sidebar/index.js +2 -2
- package/dist/chat/headless/sidebar/labels.d.ts +15 -8
- package/dist/chat/headless/sidebar/types.d.ts +3 -1
- package/dist/chat/headless/sidebar/view.d.ts +13 -5
- package/dist/chat/headless/sidebar/view.js +31 -11
- package/dist/chat/headless/streams/actions.d.ts +5 -3
- package/dist/chat/headless/streams/actions.js +3 -2
- package/dist/chat/headless/streams/index.d.ts +3 -3
- package/dist/chat/headless/streams/merge.d.ts +6 -10
- package/dist/chat/headless/streams/merge.js +7 -21
- package/dist/chat/headless/streams/session-streams.d.ts +29 -4
- package/dist/chat/headless/streams/session-streams.js +86 -0
- package/dist/chat/headless/streams/store.d.ts +162 -16
- package/dist/chat/headless/streams/store.js +334 -38
- package/dist/chat/headless/streams/types.d.ts +10 -7
- package/dist/chat/headless/transcript-labels.d.ts +1 -0
- package/dist/chat/interactions/PlanCard.js +10 -3
- package/dist/chat/interactions/QuestionForm.js +7 -3
- package/dist/chat/interactions/card-ui.d.ts +5 -3
- package/dist/chat/interactions/card-ui.js +9 -7
- package/dist/chat/rich-composer/RichComposer.js +1 -7
- package/dist/chat/rich-composer/composer-extensions.d.ts +0 -2
- package/dist/chat/rich-composer/composer-extensions.js +2 -2
- package/dist/chat/rich-composer/use-composer-editor.d.ts +0 -2
- package/dist/chat/rich-composer/use-composer-editor.js +1 -2
- package/dist/chat/sidebar/SessionSidebar.js +5 -5
- package/dist/chat/sidebar/SidebarFilterMenu.js +3 -1
- package/dist/chat/sidebar/SidebarFrame.d.ts +4 -0
- package/dist/chat/sidebar/SidebarFrame.js +27 -9
- package/dist/chat/sidebar/SidebarGroupHeader.js +1 -1
- package/dist/chat/sidebar/SidebarHostProvider.d.ts +8 -5
- package/dist/chat/sidebar/SidebarHostProvider.js +13 -9
- package/dist/chat/sidebar/SidebarToggleButton.js +7 -3
- package/dist/chat/sidebar/index.d.ts +2 -2
- package/dist/chat/sidebar/session-menu.js +4 -4
- package/dist/chat/sidebar/useSaveViewAsSpace.js +2 -2
- package/dist/chat/testing/contract.js +2 -2
- package/dist/chat/transcript/AuthFailureCard.js +11 -8
- package/dist/chat/transcript/BadgeMenu.js +13 -2
- package/dist/chat/transcript/MermaidDiagram.js +7 -3
- package/dist/chat/transcript/fold.d.ts +4 -0
- package/dist/chat/transcript/fold.js +53 -22
- package/dist/chat/transcript/script-input.d.ts +1 -1
- package/dist/chat/transcript/shell-block.js +7 -3
- package/dist/chat/transcript/useStickToBottom.js +12 -0
- package/dist/components/BrowserSignIn.js +23 -21
- package/dist/components/Form.d.ts +6 -4
- package/dist/components/Form.js +16 -8
- package/dist/components/LoadError.d.ts +4 -2
- package/dist/components/LoadError.js +13 -9
- package/dist/components/Notice.d.ts +29 -0
- package/dist/components/Notice.js +63 -0
- package/dist/components/PanelEmpty.d.ts +1 -1
- package/dist/components/PanelEmpty.js +4 -2
- package/dist/components/Restricted.d.ts +1 -1
- package/dist/components/palette/PaletteList.js +8 -1
- package/dist/components/palette/PalettePanel.js +14 -6
- package/dist/core.css +24 -5
- package/dist/dist/{index-Bq87OcGy.d.ts → index-BZM8tu4L.d.ts} +28 -3
- package/dist/dist/index.d.ts +2 -2
- package/dist/dist/{timeout-B5pO5I5a.d.ts → timeout-Cyx3VGPz.d.ts} +1 -1
- package/dist/extensions/ExtensionSettingsPage.js +1 -4
- package/dist/extensions/ExtensionSettingsSection.js +4 -3
- package/dist/extensions/ExtensionSettingsSidebar.js +2 -6
- package/dist/extensions/SettingsWireForm.d.ts +1 -7
- package/dist/extensions/SettingsWireForm.js +7 -5
- package/dist/extensions/headless/fixture-host.d.ts +1 -5
- package/dist/extensions/headless/fixture-host.js +1 -4
- package/dist/extensions/headless/host.d.ts +1 -11
- package/dist/extensions/headless/index.d.ts +3 -3
- package/dist/extensions/headless/index.js +2 -2
- package/dist/extensions/headless/select.d.ts +1 -11
- package/dist/extensions/headless/select.js +1 -18
- package/dist/files/EditorColumn.js +12 -1
- package/dist/files/TreeColumn.js +13 -20
- package/dist/files/useOpenFiles.js +2 -0
- package/dist/git/BranchMenu.js +5 -3
- package/dist/git/ImportRepoDialog.js +18 -9
- package/dist/git/MoveSessionDialog.js +15 -7
- package/dist/git/RemoteFolderPicker.js +34 -16
- package/dist/git/SyncChip.js +17 -17
- package/dist/git/WherePicker.d.ts +16 -1
- package/dist/git/WherePicker.js +80 -36
- package/dist/git/headless/environment.d.ts +33 -3
- package/dist/git/headless/environment.js +33 -5
- package/dist/git/headless/index.d.ts +2 -2
- package/dist/git/headless/index.js +2 -2
- package/dist/git/headless/labels.d.ts +15 -2
- package/dist/git/headless/labels.js +17 -4
- package/dist/git/useEnvironmentChoices.d.ts +3 -1
- package/dist/git/useEnvironmentChoices.js +6 -3
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/labels.d.ts +5 -0
- package/dist/labels.js +5 -0
- package/dist/machines/AddMachineDialog.d.ts +34 -0
- package/dist/machines/AddMachineDialog.js +464 -0
- package/dist/machines/Banners.d.ts +33 -4
- package/dist/machines/Banners.js +64 -3
- package/dist/machines/DaemonMenu.js +27 -4
- package/dist/machines/HostCapabilities.d.ts +1 -3
- package/dist/machines/HostCapabilities.js +24 -45
- package/dist/machines/HostSyncPanel.js +123 -129
- package/dist/machines/HostsSection.d.ts +4 -1
- package/dist/machines/HostsSection.js +30 -7
- package/dist/machines/MachinesExplainer.d.ts +17 -0
- package/dist/machines/MachinesExplainer.js +71 -0
- package/dist/machines/MachinesProvider.d.ts +14 -2
- package/dist/machines/MachinesProvider.js +35 -1
- package/dist/machines/ServerAddedCard.d.ts +31 -0
- package/dist/machines/ServerAddedCard.js +72 -0
- package/dist/machines/ServerCard.js +91 -215
- package/dist/machines/ServerMachinesPanel.d.ts +2 -2
- package/dist/machines/ServerMachinesPanel.js +184 -323
- package/dist/machines/ServerUpdatePanel.js +51 -40
- package/dist/machines/ShareThisComputerForm.d.ts +19 -0
- package/dist/machines/ShareThisComputerForm.js +133 -0
- package/dist/machines/TokensPanel.d.ts +5 -3
- package/dist/machines/TokensPanel.js +98 -78
- package/dist/machines/headless/fixture-host.d.ts +19 -3
- package/dist/machines/headless/fixture-host.js +42 -5
- package/dist/machines/headless/fixtures.js +4 -6
- package/dist/machines/headless/host.d.ts +40 -19
- package/dist/machines/headless/index.d.ts +3 -3
- package/dist/machines/headless/index.js +2 -2
- package/dist/machines/headless/labels.d.ts +63 -20
- package/dist/machines/headless/labels.js +88 -25
- package/dist/machines/headless/messages.js +8 -0
- package/dist/machines/headless/stores.d.ts +9 -2
- package/dist/machines/headless/stores.js +28 -1
- package/dist/machines/index.d.ts +7 -3
- package/dist/machines/index.js +8 -4
- package/dist/machines/testing/contract.d.ts +15 -3
- package/dist/machines/testing/contract.js +68 -14
- package/dist/motion/grow.d.ts +8 -1
- package/dist/motion/grow.js +10 -4
- package/dist/onboarding/demos/index.js +1 -1
- package/dist/onboarding/headless/labels.d.ts +13 -0
- package/dist/onboarding/headless/labels.js +8 -0
- package/dist/onboarding/index.js +3 -3
- package/dist/onboarding/sources/SourceBrowser.js +11 -7
- package/dist/onboarding/steps/ConnectorsStep.js +1 -1
- package/dist/onboarding/steps/ImportStep.js +4 -1
- package/dist/onboarding/steps/ReadyStep.js +9 -2
- package/dist/onboarding/steps/SkillsStep.js +1 -1
- package/dist/onboarding/steps/connect/KeyForm.js +6 -2
- package/dist/onboarding/steps/connect/ProviderPanel.js +6 -2
- package/dist/onboarding/steps/connect/ProviderReady.js +25 -20
- package/dist/onboarding/steps/tasks.js +17 -14
- package/dist/server/sse-handler.js +141 -19
- package/dist/session/ArtifactsPanel.js +39 -17
- package/dist/session/PlanTracker.js +12 -7
- package/dist/session/ProjectHome.js +13 -11
- package/dist/session/RemindersPanel.js +34 -16
- package/dist/session/RunningWorkDialog.js +6 -2
- package/dist/session/SecretsPanel.js +29 -10
- package/dist/session/SessionDetailsDialog.d.ts +1 -1
- package/dist/session/SessionDetailsDialog.js +18 -10
- package/dist/session/SideChat.js +10 -7
- package/dist/session/TurnDetailsDialog.js +19 -5
- package/dist/session/UsagePanel.js +10 -4
- package/dist/session/headless/host.d.ts +2 -0
- package/dist/session/headless/labels.d.ts +19 -1
- package/dist/session/headless/labels.js +15 -1
- package/dist/session/headless/queue.js +2 -1
- package/dist/session/headless/reminder-labels.d.ts +4 -0
- package/dist/session/headless/reminder-labels.js +4 -0
- package/dist/settings/SettingsRestricted.d.ts +1 -1
- package/dist/settings/SettingsRestricted.js +4 -4
- package/dist/settings/SettingsShell.d.ts +7 -0
- package/dist/settings/SettingsShell.js +6 -1
- package/dist/settings/headless/fixture-performance.d.ts +1 -1
- package/dist/settings/headless/host.d.ts +2 -2
- package/dist/settings/headless/labels.d.ts +3 -3
- package/dist/settings/headless/labels.js +3 -3
- package/dist/settings/headless/performance.d.ts +3 -4
- package/dist/settings/headless/search.d.ts +1 -1
- package/dist/settings/index.d.ts +2 -1
- package/dist/settings/index.js +2 -1
- package/dist/settings/sections/editor/EditorSection.js +7 -4
- package/dist/settings/sections/editor/labels.d.ts +1 -0
- package/dist/settings/sections/editor/labels.js +1 -0
- package/dist/settings/sections/environments/EnvironmentsSection.js +19 -12
- package/dist/settings/sections/environments/labels.d.ts +1 -0
- package/dist/settings/sections/environments/labels.js +2 -1
- package/dist/settings/sections/extensions/ExtensionConfigRows.d.ts +1 -3
- package/dist/settings/sections/extensions/ExtensionConfigRows.js +20 -19
- package/dist/settings/sections/extensions/ExtensionOptionsSection.js +2 -1
- package/dist/settings/sections/extensions/options-labels.d.ts +2 -1
- package/dist/settings/sections/extensions/options-labels.js +2 -1
- package/dist/settings/sections/index.d.ts +2 -1
- package/dist/settings/sections/index.js +2 -1
- package/dist/settings/sections/logs/LogsSection.d.ts +2 -2
- package/dist/settings/sections/logs/LogsSection.js +2 -2
- package/dist/settings/sections/mcp/McpSection.d.ts +1 -1
- package/dist/settings/sections/mcp/McpSection.js +12 -6
- package/dist/settings/sections/mcp/McpServerRow.js +20 -13
- package/dist/settings/sections/mcp/labels.d.ts +8 -2
- package/dist/settings/sections/mcp/labels.js +8 -2
- package/dist/settings/sections/models/ModelRows.js +1 -1
- package/dist/settings/sections/models/NewChatPlaceRow.d.ts +26 -0
- package/dist/settings/sections/models/NewChatPlaceRow.js +78 -0
- package/dist/settings/sections/models/SpacesDefaultsSection.js +15 -3
- package/dist/settings/sections/models/labels.d.ts +7 -0
- package/dist/settings/sections/models/labels.js +7 -0
- package/dist/settings/sections/models/model-test.js +7 -4
- package/dist/settings/sections/performance/PerformanceSection.js +16 -6
- package/dist/settings/sections/performance/labels.d.ts +1 -1
- package/dist/settings/sections/performance/labels.js +1 -1
- package/dist/settings/sections/providers/ProvidersSection.d.ts +1 -1
- package/dist/settings/sections/providers/ProvidersSection.js +14 -7
- package/dist/settings/sections/providers/ServerProvidersSection.d.ts +1 -1
- package/dist/settings/sections/providers/ServerProvidersSection.js +11 -5
- package/dist/settings/sections/providers/labels.d.ts +2 -2
- package/dist/settings/sections/providers/labels.js +2 -2
- package/dist/settings/sections/skills/SkillList.js +1 -1
- package/dist/settings/sections/skills/SkillsSection.js +1 -1
- package/dist/settings/testing/performance.contract.js +8 -12
- package/dist/styles.css +32 -3
- package/dist/terminal/HostTerminalSurface.js +15 -5
- package/dist/terminal/TerminalPanel.js +30 -17
- package/dist/terminal/TerminalSurface.js +11 -4
- package/dist/terminal/headless/labels.d.ts +5 -0
- package/dist/terminal/headless/labels.js +5 -0
- package/dist/terminal/headless/store.d.ts +1 -1
- package/dist/terminal/headless/store.js +6 -3
- package/dist/workspace/LayoutBudget.d.ts +5 -1
- package/dist/workspace/LayoutBudget.js +14 -1
- package/dist/workspace/PanelContentView.d.ts +1 -1
- package/dist/workspace/PanelContentView.js +17 -6
- package/dist/workspace/WorkspaceProvider.js +3 -2
- package/dist/workspace/headless/labels.d.ts +1 -0
- package/dist/workspace/headless/labels.js +1 -0
- package/package.json +3 -3
- package/src/styles/motion.css +8 -0
- package/src/styles/primitives.css +7 -0
|
@@ -43,6 +43,7 @@ declare const DEFAULT_GIT_LABELS: {
|
|
|
43
43
|
gitSyncCancel: string;
|
|
44
44
|
gitPublish: string;
|
|
45
45
|
gitSync: string;
|
|
46
|
+
gitSyncFailed: string;
|
|
46
47
|
gitImportTitle: string;
|
|
47
48
|
gitImportHintBefore: string;
|
|
48
49
|
gitImportHintCode: string;
|
|
@@ -50,6 +51,7 @@ declare const DEFAULT_GIT_LABELS: {
|
|
|
50
51
|
gitImportField: string;
|
|
51
52
|
gitImportPlaceholder: string;
|
|
52
53
|
gitImportInvalid: string;
|
|
54
|
+
gitImportFailed: string;
|
|
53
55
|
gitImportPreview: (label: string, branch: string | undefined, destination: string) => string;
|
|
54
56
|
gitImportInto: string;
|
|
55
57
|
gitImportChange: string;
|
|
@@ -132,6 +134,8 @@ declare const DEFAULT_GIT_LABELS: {
|
|
|
132
134
|
gitMoveMainCheckout: string;
|
|
133
135
|
gitMoveWorktreeKept: (reason: string | undefined) => string;
|
|
134
136
|
gitMoveDone: string;
|
|
137
|
+
gitMoveListFailed: string;
|
|
138
|
+
gitMoveFailed: string;
|
|
135
139
|
gitWhereLabel: string;
|
|
136
140
|
gitWhereTitle: (place: string, isolation: string | undefined, branch: string | undefined) => string;
|
|
137
141
|
gitRunsOn: string;
|
|
@@ -145,8 +149,14 @@ declare const DEFAULT_GIT_LABELS: {
|
|
|
145
149
|
gitHostLocalDescription: string;
|
|
146
150
|
gitHostServerDescription: string;
|
|
147
151
|
gitMachineStatus: (status: string) => string;
|
|
148
|
-
gitMachineDescription: (name: string) => string;
|
|
149
|
-
|
|
152
|
+
gitMachineDescription: (name: string, host?: string) => string;
|
|
153
|
+
gitMachineOfflineWaits: (name: string) => string;
|
|
154
|
+
gitMachineOfflineNote: (name: string) => string;
|
|
155
|
+
gitAddMachine: string;
|
|
156
|
+
gitNewChatsDefault: string;
|
|
157
|
+
gitUseForNewChats: string;
|
|
158
|
+
gitUseForNewChatsIn: (space: string) => string;
|
|
159
|
+
gitNewChatsStartHere: string;
|
|
150
160
|
gitIsolation: string;
|
|
151
161
|
gitIsolationDefault: string;
|
|
152
162
|
gitWorktreeShort: string;
|
|
@@ -179,6 +189,9 @@ declare const DEFAULT_GIT_LABELS: {
|
|
|
179
189
|
gitFolderCreating: string;
|
|
180
190
|
gitFolderCreate: string;
|
|
181
191
|
gitFolderCancel: string;
|
|
192
|
+
gitFolderListFailed: string;
|
|
193
|
+
gitFolderSearchFailed: string;
|
|
194
|
+
gitFolderCreateFailed: string;
|
|
182
195
|
};
|
|
183
196
|
/** The shape of the git label dictionary. */
|
|
184
197
|
type GitLabels = typeof DEFAULT_GIT_LABELS;
|
|
@@ -43,6 +43,7 @@ const DEFAULT_GIT_LABELS = {
|
|
|
43
43
|
gitSyncCancel: "Cancel",
|
|
44
44
|
gitPublish: "Publish",
|
|
45
45
|
gitSync: "Sync",
|
|
46
|
+
gitSyncFailed: "Couldn't sync the branch.",
|
|
46
47
|
gitImportTitle: "Import repository",
|
|
47
48
|
gitImportHintBefore: "Paste a GitHub or git URL, or ",
|
|
48
49
|
gitImportHintCode: "owner/repo",
|
|
@@ -50,6 +51,7 @@ const DEFAULT_GIT_LABELS = {
|
|
|
50
51
|
gitImportField: "Repository",
|
|
51
52
|
gitImportPlaceholder: "https://github.com/owner/repo",
|
|
52
53
|
gitImportInvalid: "Not a repository URL.",
|
|
54
|
+
gitImportFailed: "Couldn't clone the repository.",
|
|
53
55
|
gitImportPreview: (label, branch, destination) => `${label}${branch ? ` @ ${branch}` : ""} → ${destination}`,
|
|
54
56
|
gitImportInto: "Clone into",
|
|
55
57
|
gitImportChange: "Change…",
|
|
@@ -132,6 +134,8 @@ const DEFAULT_GIT_LABELS = {
|
|
|
132
134
|
gitMoveMainCheckout: "Main checkout",
|
|
133
135
|
gitMoveWorktreeKept: (reason) => `The session moved. ${reason ?? "The old worktree was kept."}`,
|
|
134
136
|
gitMoveDone: "Done",
|
|
137
|
+
gitMoveListFailed: "Couldn't list where it can run.",
|
|
138
|
+
gitMoveFailed: "Couldn't move the session.",
|
|
135
139
|
gitWhereLabel: "Choose where the session runs",
|
|
136
140
|
gitWhereTitle: (place, isolation, branch) => `Runs on ${place}${isolation ? `, ${isolation.toLowerCase()}` : ""}${branch ? ` (${branch})` : ""}`,
|
|
137
141
|
gitRunsOn: "Runs on",
|
|
@@ -141,12 +145,18 @@ const DEFAULT_GIT_LABELS = {
|
|
|
141
145
|
gitRunsOnServer: "Server",
|
|
142
146
|
gitRunsOnServerFact: "Keeps running when you close the app.",
|
|
143
147
|
gitRunsOnMachine: "Shared machine",
|
|
144
|
-
gitRunsOnMachineFact: "
|
|
148
|
+
gitRunsOnMachineFact: "The agent runs on its host. Files and commands are on the machine.",
|
|
145
149
|
gitHostLocalDescription: "Agent runs on your computer",
|
|
146
150
|
gitHostServerDescription: "Agent runs on the server, even when closed",
|
|
147
151
|
gitMachineStatus: (status) => status,
|
|
148
|
-
gitMachineDescription: (name) => `Agent here, files and commands on ${name}`,
|
|
149
|
-
|
|
152
|
+
gitMachineDescription: (name, host) => host ? `Agent on ${host}, files and commands on ${name}` : `Agent here, files and commands on ${name}`,
|
|
153
|
+
gitMachineOfflineWaits: (name) => `Offline. The chat starts when ${name} is back.`,
|
|
154
|
+
gitMachineOfflineNote: (name) => `${name} is offline. Your chat waits for it and starts when it is back.`,
|
|
155
|
+
gitAddMachine: "Add a machine…",
|
|
156
|
+
gitNewChatsDefault: "Where new chats start",
|
|
157
|
+
gitUseForNewChats: "Use for new chats",
|
|
158
|
+
gitUseForNewChatsIn: (space) => `Use for new chats in ${space}`,
|
|
159
|
+
gitNewChatsStartHere: "New chats start here.",
|
|
150
160
|
gitIsolation: "Isolation",
|
|
151
161
|
gitIsolationDefault: "default",
|
|
152
162
|
gitWorktreeShort: "Worktree",
|
|
@@ -178,7 +188,10 @@ const DEFAULT_GIT_LABELS = {
|
|
|
178
188
|
gitFolderNewNameLabel: (parent) => `Name of the new folder in ${parent}`,
|
|
179
189
|
gitFolderCreating: "Creating…",
|
|
180
190
|
gitFolderCreate: "Create",
|
|
181
|
-
gitFolderCancel: "Cancel"
|
|
191
|
+
gitFolderCancel: "Cancel",
|
|
192
|
+
gitFolderListFailed: "Couldn't read this folder.",
|
|
193
|
+
gitFolderSearchFailed: "Couldn't search the folders.",
|
|
194
|
+
gitFolderCreateFailed: "Couldn't create the folder."
|
|
182
195
|
};
|
|
183
196
|
/**
|
|
184
197
|
* A host error in words: the host's own message, or {@link DEFAULT_GIT_LABELS.gitUnavailable}.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { WithMachinesOptions } from "./headless/environment.js";
|
|
1
2
|
import { EnvironmentDescriptor } from "zidane/chat";
|
|
2
3
|
//#region src/git/useEnvironmentChoices.d.ts
|
|
3
4
|
/**
|
|
@@ -6,7 +7,8 @@ import { EnvironmentDescriptor } from "zidane/chat";
|
|
|
6
7
|
*
|
|
7
8
|
* @param cwd - The draft's folder (`''`: none); `null` reads nothing (no draft on screen).
|
|
8
9
|
* @param hostId - The saved server the draft runs on (absent: this host).
|
|
10
|
+
* @param options - Whether an offline machine's kinds stay usable (a new chat waits for it).
|
|
9
11
|
*/
|
|
10
|
-
declare function useEnvironmentChoices(cwd: string | null, hostId?: string): readonly EnvironmentDescriptor[];
|
|
12
|
+
declare function useEnvironmentChoices(cwd: string | null, hostId?: string, options?: WithMachinesOptions): readonly EnvironmentDescriptor[];
|
|
11
13
|
//#endregion
|
|
12
14
|
export { useEnvironmentChoices };
|
|
@@ -9,8 +9,10 @@ const NO_DESCRIPTORS = [];
|
|
|
9
9
|
*
|
|
10
10
|
* @param cwd - The draft's folder (`''`: none); `null` reads nothing (no draft on screen).
|
|
11
11
|
* @param hostId - The saved server the draft runs on (absent: this host).
|
|
12
|
+
* @param options - Whether an offline machine's kinds stay usable (a new chat waits for it).
|
|
12
13
|
*/
|
|
13
|
-
function useEnvironmentChoices(cwd, hostId) {
|
|
14
|
+
function useEnvironmentChoices(cwd, hostId, options = {}) {
|
|
15
|
+
const offlineWaits = options.offlineWaits === true;
|
|
14
16
|
const host = useGitHost();
|
|
15
17
|
const [listed, setListed] = useState(null);
|
|
16
18
|
const key = cwd === null ? null : JSON.stringify([cwd, hostId ?? null]);
|
|
@@ -28,7 +30,7 @@ function useEnvironmentChoices(cwd, hostId) {
|
|
|
28
30
|
list(query).then((descriptors) => {
|
|
29
31
|
if (live && mine === read) setListed({
|
|
30
32
|
key,
|
|
31
|
-
descriptors: withMachines(descriptors)
|
|
33
|
+
descriptors: withMachines(descriptors, { offlineWaits })
|
|
32
34
|
});
|
|
33
35
|
}, () => {});
|
|
34
36
|
};
|
|
@@ -42,7 +44,8 @@ function useEnvironmentChoices(cwd, hostId) {
|
|
|
42
44
|
host,
|
|
43
45
|
key,
|
|
44
46
|
cwd,
|
|
45
|
-
hostId
|
|
47
|
+
hostId,
|
|
48
|
+
offlineWaits
|
|
46
49
|
]);
|
|
47
50
|
return listed && listed.key === key ? listed.descriptors : NO_DESCRIPTORS;
|
|
48
51
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BUILTIN_THEMES, DEFAULT_THEME, SyntaxStyles, SyntaxTokenStyle, Theme, ThemeColors, ThemeDiff, ThemeSelect, ThemeSurfaces, resolveTheme } from "./theme/themes.js";
|
|
2
|
+
import { Notice, NoticeProps, NoticeTone } from "./components/Notice.js";
|
|
2
3
|
import { CONFIRM_TITLE_ID, ConfirmDialog, ConfirmDialogProps, ConfirmOptions } from "./components/ConfirmDialog.js";
|
|
3
4
|
import { Appearance, CONTRAST, ChipColors, ChipKind, DiffColors, DotColors, ResolvedPalette, SphereShading, SurfaceLadder, ThemeSeed, derivePalette, inferAppearance } from "./theme/derive.js";
|
|
4
5
|
import { defaultShikiTheme, shikiThemeFor } from "./code/shiki-theme.js";
|
|
@@ -86,4 +87,4 @@ import { IconCollection, RuntimeIconsOptions, watchRuntimeIcons } from "./theme/
|
|
|
86
87
|
import { themeCssVars, themeStylesheet } from "./theme/stylesheet.js";
|
|
87
88
|
import { withoutTransitions } from "./theme/without-transitions.js";
|
|
88
89
|
import { basename, compactPath, formatPathForCwd, splitPath, tildePath, tildeText } from "./path.js";
|
|
89
|
-
export { ACCENT_PRESETS, AccentPreset, AddressBar, AddressBarProps, Align, Anchor, Appearance, ApplyMotionOptions, BRAND_MARKS, BTN_DANGER, BTN_DANGER_CONFIRM, BTN_LG_DANGER, BTN_LG_PRIMARY, BTN_LG_SECONDARY, BTN_LG_SOLID, BTN_PRIMARY, BTN_SECONDARY, BUILTIN_THEMES, BadgeTone, BrandMark, BrandMarkData, BrandMarkPath, BrandMarkProps, BrandMarkSize, Breadcrumb, BreadcrumbProps, BrowserSignIn, BrowserSignInProps, BrowserSignInState, ButtonVariant, CONFIRM_TITLE_ID, CONTRAST, Checkbox, CheckboxProps, ChipColors, ChipKind, ChoiceCardOption, ChoiceCards, ChoiceCardsProps, CodeFrame, CodeFrameProps, CodeHighlightProvider, CodeHighlightProviderProps, CodeHighlighter, CodeHighlighterOptions, CodePanel, CodePanelProps, CodeWrapProvider, CodeWrapProviderProps, ConfirmDialog, ConfirmDialogProps, ConfirmOptions, CopyButton, CopyButtonProps, CountBadge, CountBadgeProps, CountTone, Crossfade, CrossfadeProps, CssVarMap, DARK_LUMINANCE_THRESHOLD, DEFAULT_EDITOR_SETTINGS, DEFAULT_LABELS, DEFAULT_PANEL_MS, DEFAULT_THEME, DiffColors, DiffCounts, DiffCountsProps, DismissHandlers, DotColors, EditableTitle, EditableTitleProps, EditorEnvironment, EditorEnvironmentProvider, EditorEnvironmentProviderProps, EditorSettings, EmptyState, EmptyStateProps, ErrorBoundary, ErrorBoundaryProps, ErrorDetails, ErrorDetailsProps, ErrorFallback, ErrorFallbackFrameProps, ErrorFallbackProps, ErrorNote, ErrorNoteProps, ErrorReport, ErrorReportOptions, ErrorReportSink, FADE_KEYS, FIELD_LABEL_CLASS, FORM_CARD_CLASS, FloatingSurface, FloatingSurfaceProps, FormCard, FormCardProps, FormSection, FormSectionProps, Grow, GrowPresence, GrowProps, HOVER_MOTION, HeldWidth, HeldWidthProps, HighlightRequest, HighlightResponse, Highlighted, HighlightedCode, HighlightedCodeProps, HighlightedProps, HostRow, HostRowProps, HoverCard, HoverCardProps, HoverCardTriggerProps, HowItWorks, HowItWorksProps, HowItWorksStep, INPUT_CLASS, INSTANT, IconButton, IconButtonLook, IconButtonProps, IconButtonRenderProps, IconButtonSize, IconCollection, IconToggle, IconToggleProps, KeyCombo, KeyComboProps, Keycap, KeycapProps, KeyedStore, LabelOverrides, Labels, LabelsProvider, LabelsProviderProps, LayerOptions, LightboxItem, LoadError, LoadErrorProps, MAX_REAL_SCALE, MENU_FADE_RATIO, MOTIONS, MOTION_NAMES, MatchedTitle, MatchedTitleProps, MediaNav, type MediaNavProps, Menu, MenuNote, MenuNoteProps, MenuProps, MenuRow, MenuRowProps, MenuRowRenderProps, MenuSection, MenuSectionProps, MenuSeparator, MenuSeparatorProps, MenuSwitch, MenuSwitchProps, Meta, MetaChip, MetaChipProps, MetaProps, MotionLevel, MotionName, MotionPrefs, MotionProvider, MotionProviderProps, NavButton, NavButtonProps, NavRow, NavRowProps, Oklch, OpLine, OpLineProps, Overlay, OverlayProps, PANEL_ROW, PANEL_ROW_HOVER, PUNCTUATION_CODES, PaletteEntry, PaletteIcon, PaletteIconProps, PaletteKeys, PaletteList, PaletteListProps, PaletteNotice, PaletteOption, PaletteOptionProps, PalettePanel, PalettePanelProps, PaletteRow, PaletteRowData, PaletteRowProps, PaletteSection, PanelEmpty, PanelEmptyProps, PanelLoading, PanelLoadingProps, PathDisplay, PathDisplayProvider, PathDisplayProviderProps, PathDisplayScope, PathDisplayScopeProps, Placement, Popover, PopoverProps, PopoverState, PopoverTriggerProps, Presence, type Presence$1 as PresenceHandle, type PresenceOptions, PresenceProps, type PresenceState, PreviewWindow, PreviewWindowProps, REDUCED_FADE, ROW_BUTTON_CLASS, ROW_CLASS, ROW_HOST_CLASS, ROW_TRIGGER_CLASS, Raised, RaisedProps, Rect, ReorderTabState, ReorderTabs, ReorderTabsProps, ResizeDrag, ResizeDragHandleProps, ResizeDragOptions, ResolvedPalette, Restricted, RestrictedProps, Rgb, RollDirection, RollingText, RollingTextProps, RowActionItem, RowActionsMenu, RowActionsMenuProps, RowBadge, RowBadgeProps, RowText, RowTextProps, RuntimeIconsOptions, SHIMMER_MS, SectionLabel, SectionLabelProps, SegmentSpinner, SegmentSpinnerProps, Segmented, SegmentedOption, SegmentedProps, SegmentedRow, SegmentedRowProps, Side, SliderRow, SliderRowProps, SmoothHeight, SmoothHeightProps, SmoothWidth, SmoothWidthProps, SphereShading, StepActions, StepActionsProps, StepFrame, StepFrameProps, Stepper, StepperProps, StepperStep, SurfaceLadder, SwapIcon, SwapIconProps, Swatch, SwatchPicker, SwatchPickerProps, Switch, SwitchGlyph, SwitchGlyphProps, SwitchProps, SwitchRow, SwitchRowProps, SyntaxStyles, SyntaxTokenStyle, TEXTAREA_CLASS, TabDragBounds, TabPill, TabPillProps, Theme, ThemeColors, ThemeDiff, ThemeSeed, ThemeSelect, ThemeSurfaces, ThemeThumb, ThemeThumbProps, TitleText, TitleTextProps, ToggleCard, ToggleCardProps, ToggleSwitch, ToggleSwitchProps, Tooltip, TooltipProps, Tray, TrayProps, ZidaneMark, ZidaneMarkProps, ZoomableImage, type ZoomableImageHandle, type ZoomableImageProps, _resetKeyboardLayout, anchorNudge, applyMotionVars, basename, beginLayoutAnimation, buttonClass, capChroma, clampWidth, compactPath, configureErrorReports, contrastRatio, contrastToCssVars, createCodeHighlighter, createKeyedStore, cssMotionVars, currentMotionPrefs, currentMotionTransition, currentWithFade, defaultPaletteKeys, defaultShikiTheme, depthToCssVars, derivePalette, ensureContrast, errorMessage, errorStacksShown, extendLabels, fadeTransition, focusMenuRow, formatColor, formatPathForCwd, handleMenuKeyDown, hasBrandMark, iconButtonClass, inferAppearance, installRendererErrorHandlers, isDark, isLayoutAnimating, layoutKeyLabel, luminance, menuTransition, mix, motionTransition, motionVars, moveId, oklch, oklchToRgb, oneOf, paletteToCssVars, paletteVerb, panelMotionVars, parseBoolean, parseColor, placeSurface, presetFor, pulseLayout, readDurationVar, readExitMs, readMenuExitMs, readMotionMs, readPanelMs, readPersisted, readRollMs, readableOn, reportRendererError, resetReportedErrors, resolveTheme, returnFocus, rgbToOklch, rollCells, scrollRootOf, seedFromTheme, shikiThemeFor, splitPath, subscribeLayoutAnimating, syncShimmer, themeCssVars, themeStylesheet, tildePath, tildeText, tintedNeutral, toOklch, transitionState, typesStandIn, useAnchoredPosition, useCadencedValue, useCodeHighlight, useDismiss, useDisplayPath, useDocumentAppearance, useEditorEnvironment, useKeyboardLayout, useKeyedValue, useLabels, useLayer, useLightbox, useMenuTransition, useMinuteTick, useMotionLevel, useMotionPrefs, useMotionTransition, useNearViewport, usePersistedState, usePopover, usePresence, useReducedMotion, useResizeDrag, useRowHint, useScrollLock, useSprings, useStaysMounted, useTabDrag, useTabExit, useWithFade, watchRuntimeIcons, withAlpha, withFade, withLightness, withoutTransitions, writePersisted };
|
|
90
|
+
export { ACCENT_PRESETS, AccentPreset, AddressBar, AddressBarProps, Align, Anchor, Appearance, ApplyMotionOptions, BRAND_MARKS, BTN_DANGER, BTN_DANGER_CONFIRM, BTN_LG_DANGER, BTN_LG_PRIMARY, BTN_LG_SECONDARY, BTN_LG_SOLID, BTN_PRIMARY, BTN_SECONDARY, BUILTIN_THEMES, BadgeTone, BrandMark, BrandMarkData, BrandMarkPath, BrandMarkProps, BrandMarkSize, Breadcrumb, BreadcrumbProps, BrowserSignIn, BrowserSignInProps, BrowserSignInState, ButtonVariant, CONFIRM_TITLE_ID, CONTRAST, Checkbox, CheckboxProps, ChipColors, ChipKind, ChoiceCardOption, ChoiceCards, ChoiceCardsProps, CodeFrame, CodeFrameProps, CodeHighlightProvider, CodeHighlightProviderProps, CodeHighlighter, CodeHighlighterOptions, CodePanel, CodePanelProps, CodeWrapProvider, CodeWrapProviderProps, ConfirmDialog, ConfirmDialogProps, ConfirmOptions, CopyButton, CopyButtonProps, CountBadge, CountBadgeProps, CountTone, Crossfade, CrossfadeProps, CssVarMap, DARK_LUMINANCE_THRESHOLD, DEFAULT_EDITOR_SETTINGS, DEFAULT_LABELS, DEFAULT_PANEL_MS, DEFAULT_THEME, DiffColors, DiffCounts, DiffCountsProps, DismissHandlers, DotColors, EditableTitle, EditableTitleProps, EditorEnvironment, EditorEnvironmentProvider, EditorEnvironmentProviderProps, EditorSettings, EmptyState, EmptyStateProps, ErrorBoundary, ErrorBoundaryProps, ErrorDetails, ErrorDetailsProps, ErrorFallback, ErrorFallbackFrameProps, ErrorFallbackProps, ErrorNote, ErrorNoteProps, ErrorReport, ErrorReportOptions, ErrorReportSink, FADE_KEYS, FIELD_LABEL_CLASS, FORM_CARD_CLASS, FloatingSurface, FloatingSurfaceProps, FormCard, FormCardProps, FormSection, FormSectionProps, Grow, GrowPresence, GrowProps, HOVER_MOTION, HeldWidth, HeldWidthProps, HighlightRequest, HighlightResponse, Highlighted, HighlightedCode, HighlightedCodeProps, HighlightedProps, HostRow, HostRowProps, HoverCard, HoverCardProps, HoverCardTriggerProps, HowItWorks, HowItWorksProps, HowItWorksStep, INPUT_CLASS, INSTANT, IconButton, IconButtonLook, IconButtonProps, IconButtonRenderProps, IconButtonSize, IconCollection, IconToggle, IconToggleProps, KeyCombo, KeyComboProps, Keycap, KeycapProps, KeyedStore, LabelOverrides, Labels, LabelsProvider, LabelsProviderProps, LayerOptions, LightboxItem, LoadError, LoadErrorProps, MAX_REAL_SCALE, MENU_FADE_RATIO, MOTIONS, MOTION_NAMES, MatchedTitle, MatchedTitleProps, MediaNav, type MediaNavProps, Menu, MenuNote, MenuNoteProps, MenuProps, MenuRow, MenuRowProps, MenuRowRenderProps, MenuSection, MenuSectionProps, MenuSeparator, MenuSeparatorProps, MenuSwitch, MenuSwitchProps, Meta, MetaChip, MetaChipProps, MetaProps, MotionLevel, MotionName, MotionPrefs, MotionProvider, MotionProviderProps, NavButton, NavButtonProps, NavRow, NavRowProps, Notice, NoticeProps, NoticeTone, Oklch, OpLine, OpLineProps, Overlay, OverlayProps, PANEL_ROW, PANEL_ROW_HOVER, PUNCTUATION_CODES, PaletteEntry, PaletteIcon, PaletteIconProps, PaletteKeys, PaletteList, PaletteListProps, PaletteNotice, PaletteOption, PaletteOptionProps, PalettePanel, PalettePanelProps, PaletteRow, PaletteRowData, PaletteRowProps, PaletteSection, PanelEmpty, PanelEmptyProps, PanelLoading, PanelLoadingProps, PathDisplay, PathDisplayProvider, PathDisplayProviderProps, PathDisplayScope, PathDisplayScopeProps, Placement, Popover, PopoverProps, PopoverState, PopoverTriggerProps, Presence, type Presence$1 as PresenceHandle, type PresenceOptions, PresenceProps, type PresenceState, PreviewWindow, PreviewWindowProps, REDUCED_FADE, ROW_BUTTON_CLASS, ROW_CLASS, ROW_HOST_CLASS, ROW_TRIGGER_CLASS, Raised, RaisedProps, Rect, ReorderTabState, ReorderTabs, ReorderTabsProps, ResizeDrag, ResizeDragHandleProps, ResizeDragOptions, ResolvedPalette, Restricted, RestrictedProps, Rgb, RollDirection, RollingText, RollingTextProps, RowActionItem, RowActionsMenu, RowActionsMenuProps, RowBadge, RowBadgeProps, RowText, RowTextProps, RuntimeIconsOptions, SHIMMER_MS, SectionLabel, SectionLabelProps, SegmentSpinner, SegmentSpinnerProps, Segmented, SegmentedOption, SegmentedProps, SegmentedRow, SegmentedRowProps, Side, SliderRow, SliderRowProps, SmoothHeight, SmoothHeightProps, SmoothWidth, SmoothWidthProps, SphereShading, StepActions, StepActionsProps, StepFrame, StepFrameProps, Stepper, StepperProps, StepperStep, SurfaceLadder, SwapIcon, SwapIconProps, Swatch, SwatchPicker, SwatchPickerProps, Switch, SwitchGlyph, SwitchGlyphProps, SwitchProps, SwitchRow, SwitchRowProps, SyntaxStyles, SyntaxTokenStyle, TEXTAREA_CLASS, TabDragBounds, TabPill, TabPillProps, Theme, ThemeColors, ThemeDiff, ThemeSeed, ThemeSelect, ThemeSurfaces, ThemeThumb, ThemeThumbProps, TitleText, TitleTextProps, ToggleCard, ToggleCardProps, ToggleSwitch, ToggleSwitchProps, Tooltip, TooltipProps, Tray, TrayProps, ZidaneMark, ZidaneMarkProps, ZoomableImage, type ZoomableImageHandle, type ZoomableImageProps, _resetKeyboardLayout, anchorNudge, applyMotionVars, basename, beginLayoutAnimation, buttonClass, capChroma, clampWidth, compactPath, configureErrorReports, contrastRatio, contrastToCssVars, createCodeHighlighter, createKeyedStore, cssMotionVars, currentMotionPrefs, currentMotionTransition, currentWithFade, defaultPaletteKeys, defaultShikiTheme, depthToCssVars, derivePalette, ensureContrast, errorMessage, errorStacksShown, extendLabels, fadeTransition, focusMenuRow, formatColor, formatPathForCwd, handleMenuKeyDown, hasBrandMark, iconButtonClass, inferAppearance, installRendererErrorHandlers, isDark, isLayoutAnimating, layoutKeyLabel, luminance, menuTransition, mix, motionTransition, motionVars, moveId, oklch, oklchToRgb, oneOf, paletteToCssVars, paletteVerb, panelMotionVars, parseBoolean, parseColor, placeSurface, presetFor, pulseLayout, readDurationVar, readExitMs, readMenuExitMs, readMotionMs, readPanelMs, readPersisted, readRollMs, readableOn, reportRendererError, resetReportedErrors, resolveTheme, returnFocus, rgbToOklch, rollCells, scrollRootOf, seedFromTheme, shikiThemeFor, splitPath, subscribeLayoutAnimating, syncShimmer, themeCssVars, themeStylesheet, tildePath, tildeText, tintedNeutral, toOklch, transitionState, typesStandIn, useAnchoredPosition, useCadencedValue, useCodeHighlight, useDismiss, useDisplayPath, useDocumentAppearance, useEditorEnvironment, useKeyboardLayout, useKeyedValue, useLabels, useLayer, useLightbox, useMenuTransition, useMinuteTick, useMotionLevel, useMotionPrefs, useMotionTransition, useNearViewport, usePersistedState, usePopover, usePresence, useReducedMotion, useResizeDrag, useRowHint, useScrollLock, useSprings, useStaysMounted, useTabDrag, useTabExit, useWithFade, watchRuntimeIcons, withAlpha, withFade, withLightness, withoutTransitions, writePersisted };
|
package/dist/index.js
CHANGED
|
@@ -9,6 +9,7 @@ import { BTN_DANGER, BTN_DANGER_CONFIRM, BTN_LG_DANGER, BTN_LG_PRIMARY, BTN_LG_S
|
|
|
9
9
|
import { Breadcrumb } from "./components/Breadcrumb.js";
|
|
10
10
|
import { SwapIcon } from "./motion/SwapIcon.js";
|
|
11
11
|
import { CopyButton } from "./components/CopyButton.js";
|
|
12
|
+
import { Notice } from "./components/Notice.js";
|
|
12
13
|
import { readDurationVar, readExitMs, readMenuExitMs, readMotionMs, readPanelMs, transitionState, usePresence, useScrollLock } from "./motion/presence.js";
|
|
13
14
|
import { Tooltip } from "./components/Tooltip.js";
|
|
14
15
|
import { Segmented } from "./components/Segmented.js";
|
|
@@ -86,4 +87,4 @@ import { watchRuntimeIcons } from "./theme/runtime-icons.js";
|
|
|
86
87
|
import { BUILTIN_THEMES, DEFAULT_THEME, resolveTheme } from "./theme/themes.js";
|
|
87
88
|
import { themeCssVars, themeStylesheet } from "./theme/stylesheet.js";
|
|
88
89
|
import { withoutTransitions } from "./theme/without-transitions.js";
|
|
89
|
-
export { ACCENT_PRESETS, AddressBar, BRAND_MARKS, BTN_DANGER, BTN_DANGER_CONFIRM, BTN_LG_DANGER, BTN_LG_PRIMARY, BTN_LG_SECONDARY, BTN_LG_SOLID, BTN_PRIMARY, BTN_SECONDARY, BUILTIN_THEMES, BrandMark, Breadcrumb, BrowserSignIn, CONFIRM_TITLE_ID, CONTRAST, Checkbox, ChoiceCards, CodeFrame, CodeHighlightProvider, CodePanel, CodeWrapProvider, ConfirmDialog, CopyButton, CountBadge, Crossfade, DARK_LUMINANCE_THRESHOLD, DEFAULT_EDITOR_SETTINGS, DEFAULT_LABELS, DEFAULT_PANEL_MS, DEFAULT_THEME, DiffCounts, EditableTitle, EditorEnvironmentProvider, EmptyState, ErrorBoundary, ErrorDetails, ErrorFallback, ErrorNote, FADE_KEYS, FIELD_LABEL_CLASS, FORM_CARD_CLASS, FloatingSurface, FormCard, FormSection, Grow, GrowPresence, HOVER_MOTION, HeldWidth, Highlighted, HighlightedCode, HostRow, HoverCard, HowItWorks, INPUT_CLASS, INSTANT, IconButton, IconToggle, KeyCombo, Keycap, LabelsProvider, LoadError, MAX_REAL_SCALE, MENU_FADE_RATIO, MOTIONS, MOTION_NAMES, MatchedTitle, MediaNav, Menu, MenuNote, MenuRow, MenuSection, MenuSeparator, MenuSwitch, Meta, MetaChip, MotionProvider, NavButton, NavRow, OpLine, Overlay, PANEL_ROW, PANEL_ROW_HOVER, PUNCTUATION_CODES, PaletteIcon, PaletteList, PaletteOption, PalettePanel, PaletteRow, PanelEmpty, PanelLoading, PathDisplayProvider, PathDisplayScope, Popover, Presence, PreviewWindow, REDUCED_FADE, ROW_BUTTON_CLASS, ROW_CLASS, ROW_HOST_CLASS, ROW_TRIGGER_CLASS, Raised, ReorderTabs, Restricted, RollingText, RowActionsMenu, RowBadge, RowText, SHIMMER_MS, SectionLabel, SegmentSpinner, Segmented, SegmentedRow, SliderRow, SmoothHeight, SmoothWidth, StepActions, StepFrame, Stepper, SwapIcon, SwatchPicker, Switch, SwitchGlyph, SwitchRow, TEXTAREA_CLASS, TabPill, ThemeThumb, TitleText, ToggleCard, ToggleSwitch, Tooltip, Tray, ZidaneMark, ZoomableImage, _resetKeyboardLayout, anchorNudge, applyMotionVars, basename, beginLayoutAnimation, buttonClass, capChroma, clampWidth, compactPath, configureErrorReports, contrastRatio, contrastToCssVars, createCodeHighlighter, createKeyedStore, cssMotionVars, currentMotionPrefs, currentMotionTransition, currentWithFade, defaultPaletteKeys, defaultShikiTheme, depthToCssVars, derivePalette, ensureContrast, errorMessage, errorStacksShown, extendLabels, fadeTransition, focusMenuRow, formatColor, formatPathForCwd, handleMenuKeyDown, hasBrandMark, iconButtonClass, inferAppearance, installRendererErrorHandlers, isDark, isLayoutAnimating, layoutKeyLabel, luminance, menuTransition, mix, motionTransition, motionVars, moveId, oklch, oklchToRgb, oneOf, paletteToCssVars, paletteVerb, panelMotionVars, parseBoolean, parseColor, placeSurface, presetFor, pulseLayout, readDurationVar, readExitMs, readMenuExitMs, readMotionMs, readPanelMs, readPersisted, readRollMs, readableOn, reportRendererError, resetReportedErrors, resolveTheme, returnFocus, rgbToOklch, rollCells, scrollRootOf, seedFromTheme, shikiThemeFor, splitPath, subscribeLayoutAnimating, syncShimmer, themeCssVars, themeStylesheet, tildePath, tildeText, tintedNeutral, toOklch, transitionState, typesStandIn, useAnchoredPosition, useCadencedValue, useCodeHighlight, useDismiss, useDisplayPath, useDocumentAppearance, useEditorEnvironment, useKeyboardLayout, useKeyedValue, useLabels, useLayer, useLightbox, useMenuTransition, useMinuteTick, useMotionLevel, useMotionPrefs, useMotionTransition, useNearViewport, usePersistedState, usePopover, usePresence, useReducedMotion, useResizeDrag, useRowHint, useScrollLock, useSprings, useStaysMounted, useTabDrag, useTabExit, useWithFade, watchRuntimeIcons, withAlpha, withFade, withLightness, withoutTransitions, writePersisted };
|
|
90
|
+
export { ACCENT_PRESETS, AddressBar, BRAND_MARKS, BTN_DANGER, BTN_DANGER_CONFIRM, BTN_LG_DANGER, BTN_LG_PRIMARY, BTN_LG_SECONDARY, BTN_LG_SOLID, BTN_PRIMARY, BTN_SECONDARY, BUILTIN_THEMES, BrandMark, Breadcrumb, BrowserSignIn, CONFIRM_TITLE_ID, CONTRAST, Checkbox, ChoiceCards, CodeFrame, CodeHighlightProvider, CodePanel, CodeWrapProvider, ConfirmDialog, CopyButton, CountBadge, Crossfade, DARK_LUMINANCE_THRESHOLD, DEFAULT_EDITOR_SETTINGS, DEFAULT_LABELS, DEFAULT_PANEL_MS, DEFAULT_THEME, DiffCounts, EditableTitle, EditorEnvironmentProvider, EmptyState, ErrorBoundary, ErrorDetails, ErrorFallback, ErrorNote, FADE_KEYS, FIELD_LABEL_CLASS, FORM_CARD_CLASS, FloatingSurface, FormCard, FormSection, Grow, GrowPresence, HOVER_MOTION, HeldWidth, Highlighted, HighlightedCode, HostRow, HoverCard, HowItWorks, INPUT_CLASS, INSTANT, IconButton, IconToggle, KeyCombo, Keycap, LabelsProvider, LoadError, MAX_REAL_SCALE, MENU_FADE_RATIO, MOTIONS, MOTION_NAMES, MatchedTitle, MediaNav, Menu, MenuNote, MenuRow, MenuSection, MenuSeparator, MenuSwitch, Meta, MetaChip, MotionProvider, NavButton, NavRow, Notice, OpLine, Overlay, PANEL_ROW, PANEL_ROW_HOVER, PUNCTUATION_CODES, PaletteIcon, PaletteList, PaletteOption, PalettePanel, PaletteRow, PanelEmpty, PanelLoading, PathDisplayProvider, PathDisplayScope, Popover, Presence, PreviewWindow, REDUCED_FADE, ROW_BUTTON_CLASS, ROW_CLASS, ROW_HOST_CLASS, ROW_TRIGGER_CLASS, Raised, ReorderTabs, Restricted, RollingText, RowActionsMenu, RowBadge, RowText, SHIMMER_MS, SectionLabel, SegmentSpinner, Segmented, SegmentedRow, SliderRow, SmoothHeight, SmoothWidth, StepActions, StepFrame, Stepper, SwapIcon, SwatchPicker, Switch, SwitchGlyph, SwitchRow, TEXTAREA_CLASS, TabPill, ThemeThumb, TitleText, ToggleCard, ToggleSwitch, Tooltip, Tray, ZidaneMark, ZoomableImage, _resetKeyboardLayout, anchorNudge, applyMotionVars, basename, beginLayoutAnimation, buttonClass, capChroma, clampWidth, compactPath, configureErrorReports, contrastRatio, contrastToCssVars, createCodeHighlighter, createKeyedStore, cssMotionVars, currentMotionPrefs, currentMotionTransition, currentWithFade, defaultPaletteKeys, defaultShikiTheme, depthToCssVars, derivePalette, ensureContrast, errorMessage, errorStacksShown, extendLabels, fadeTransition, focusMenuRow, formatColor, formatPathForCwd, handleMenuKeyDown, hasBrandMark, iconButtonClass, inferAppearance, installRendererErrorHandlers, isDark, isLayoutAnimating, layoutKeyLabel, luminance, menuTransition, mix, motionTransition, motionVars, moveId, oklch, oklchToRgb, oneOf, paletteToCssVars, paletteVerb, panelMotionVars, parseBoolean, parseColor, placeSurface, presetFor, pulseLayout, readDurationVar, readExitMs, readMenuExitMs, readMotionMs, readPanelMs, readPersisted, readRollMs, readableOn, reportRendererError, resetReportedErrors, resolveTheme, returnFocus, rgbToOklch, rollCells, scrollRootOf, seedFromTheme, shikiThemeFor, splitPath, subscribeLayoutAnimating, syncShimmer, themeCssVars, themeStylesheet, tildePath, tildeText, tintedNeutral, toOklch, transitionState, typesStandIn, useAnchoredPosition, useCadencedValue, useCodeHighlight, useDismiss, useDisplayPath, useDocumentAppearance, useEditorEnvironment, useKeyboardLayout, useKeyedValue, useLabels, useLayer, useLightbox, useMenuTransition, useMinuteTick, useMotionLevel, useMotionPrefs, useMotionTransition, useNearViewport, usePersistedState, usePopover, usePresence, useReducedMotion, useResizeDrag, useRowHint, useScrollLock, useSprings, useStaysMounted, useTabDrag, useTabExit, useWithFade, watchRuntimeIcons, withAlpha, withFade, withLightness, withoutTransitions, writePersisted };
|
package/dist/labels.d.ts
CHANGED
|
@@ -19,6 +19,9 @@ declare const DEFAULT_LABELS: {
|
|
|
19
19
|
working: string;
|
|
20
20
|
loading: string;
|
|
21
21
|
retry: string;
|
|
22
|
+
noticeDetails: string;
|
|
23
|
+
noticeStack: string;
|
|
24
|
+
noticeDismiss: string;
|
|
22
25
|
filePath: (path: string) => string;
|
|
23
26
|
rename: string;
|
|
24
27
|
current: string;
|
|
@@ -36,6 +39,7 @@ declare const DEFAULT_LABELS: {
|
|
|
36
39
|
modalBack: string;
|
|
37
40
|
screenBack: (screen: string) => string;
|
|
38
41
|
screenBackKey: string;
|
|
42
|
+
screenNavBack: (screen: string) => string;
|
|
39
43
|
paletteLabel: string;
|
|
40
44
|
paletteFilter: string;
|
|
41
45
|
paletteBack: string;
|
|
@@ -100,6 +104,7 @@ declare const DEFAULT_LABELS: {
|
|
|
100
104
|
openInNewTab: string;
|
|
101
105
|
terminal: string;
|
|
102
106
|
terminalLoadFailed: (message: string) => string;
|
|
107
|
+
terminalStartFailed: string;
|
|
103
108
|
terminalExited: (code: number) => string;
|
|
104
109
|
};
|
|
105
110
|
/** The shape of the label dictionary: the keys of {@link DEFAULT_LABELS}. */
|
package/dist/labels.js
CHANGED
|
@@ -29,6 +29,9 @@ const DEFAULT_LABELS = {
|
|
|
29
29
|
working: "Working",
|
|
30
30
|
loading: "Loading",
|
|
31
31
|
retry: "Retry",
|
|
32
|
+
noticeDetails: "Details",
|
|
33
|
+
noticeStack: "Notifications",
|
|
34
|
+
noticeDismiss: "Dismiss",
|
|
32
35
|
filePath: (path) => `File path: ${path}`,
|
|
33
36
|
rename: "Rename",
|
|
34
37
|
current: "current",
|
|
@@ -46,6 +49,7 @@ const DEFAULT_LABELS = {
|
|
|
46
49
|
modalBack: "Back to settings",
|
|
47
50
|
screenBack: (screen) => `Back from ${screen}`,
|
|
48
51
|
screenBackKey: "esc",
|
|
52
|
+
screenNavBack: (screen) => `Back to ${screen}`,
|
|
49
53
|
paletteLabel: "Command palette",
|
|
50
54
|
paletteFilter: "Filter",
|
|
51
55
|
paletteBack: "Back",
|
|
@@ -110,6 +114,7 @@ const DEFAULT_LABELS = {
|
|
|
110
114
|
openInNewTab: "Open in a new tab",
|
|
111
115
|
terminal: "Terminal",
|
|
112
116
|
terminalLoadFailed: (message) => `The terminal could not start: ${message}`,
|
|
117
|
+
terminalStartFailed: "The terminal could not start.",
|
|
113
118
|
terminalExited: (code) => `Process exited with code ${code}.`
|
|
114
119
|
};
|
|
115
120
|
const LabelsContext = createContext(DEFAULT_LABELS);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { CSSProperties } from "react";
|
|
2
|
+
//#region src/machines/AddMachineDialog.d.ts
|
|
3
|
+
/** Which computer the dialog adds: another one (a join command), or this one (share it). */
|
|
4
|
+
type AddMachineTab = 'another' | 'this';
|
|
5
|
+
/** Props for {@link AddMachineDialog}. */
|
|
6
|
+
interface AddMachineDialogProps {
|
|
7
|
+
/** The server the machine joins. */
|
|
8
|
+
hostId: string;
|
|
9
|
+
/** The tab it opens on. Default: another computer (this computer when the host makes no join codes). */
|
|
10
|
+
tab?: AddMachineTab;
|
|
11
|
+
/** Called on Done, Cancel, close, and after Start a chat on it. */
|
|
12
|
+
onClose: () => void;
|
|
13
|
+
/** Extra classes on the panel. */
|
|
14
|
+
className?: string;
|
|
15
|
+
/** Inline styles on the panel. */
|
|
16
|
+
style?: CSSProperties;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Renders the Add a machine dialog's panel (for a modal layer: {@link useAddMachine} opens it).
|
|
20
|
+
*
|
|
21
|
+
* @param props - The server, the first tab and what closes it.
|
|
22
|
+
*/
|
|
23
|
+
declare function AddMachineDialog({ hostId, tab: initialTab, onClose, className, style }: AddMachineDialogProps): import("react").JSX.Element;
|
|
24
|
+
/** Opens Add a machine for a server; see {@link useAddMachine}. */
|
|
25
|
+
type OpenAddMachine = (hostId: string, options?: {
|
|
26
|
+
tab?: AddMachineTab;
|
|
27
|
+
}) => void;
|
|
28
|
+
/**
|
|
29
|
+
* Opens Add a machine above whatever is open (the app's modal layer). `undefined` when there is nothing to add
|
|
30
|
+
* with (the host makes no join codes and does not share this computer) or no modal layer: hide the control.
|
|
31
|
+
*/
|
|
32
|
+
declare function useAddMachine(): OpenAddMachine | undefined;
|
|
33
|
+
//#endregion
|
|
34
|
+
export { AddMachineDialog, AddMachineDialogProps, AddMachineTab, OpenAddMachine, useAddMachine };
|