@tangle-network/sandbox-ui 0.8.4 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -6
- package/dist/auth.js +2 -2
- package/dist/chat.js +3 -3
- package/dist/{chunk-XXDFEF72.js → chunk-7YWFOGKQ.js} +51 -50
- package/dist/{chunk-VOUV7GGB.js → chunk-DI3NZ5ZX.js} +8 -22
- package/dist/{chunk-BUOQTBTO.js → chunk-JLKYXLFN.js} +1 -1
- package/dist/{chunk-2QZ6G7NM.js → chunk-MKTSMWVD.js} +5 -5
- package/dist/{chunk-UXQMIR3D.js → chunk-OHPW55EV.js} +1 -1
- package/dist/{chunk-WXK43R62.js → chunk-PLTZB5BC.js} +1 -1
- package/dist/{chunk-HFMAXUHV.js → chunk-QC4BJEG6.js} +2 -2
- package/dist/{chunk-3CJ2SOEI.js → chunk-US6JKJKH.js} +2 -2
- package/dist/{chunk-7U2Z23NE.js → chunk-VX3XOUEB.js} +15 -1
- package/dist/dashboard.d.ts +23 -3
- package/dist/dashboard.js +41 -4
- package/dist/globals.css +520 -1038
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -8
- package/dist/openui.js +2 -2
- package/dist/pages.d.ts +70 -5
- package/dist/pages.js +1194 -135
- package/dist/primitives.js +2 -2
- package/dist/styles.css +520 -1038
- package/dist/tokens.css +248 -857
- package/dist/{variant-list-C8wx2TqF.d.ts → variant-list-CsS6ydgm.d.ts} +1 -1
- package/dist/workspace.d.ts +1 -1
- package/dist/workspace.js +4 -4
- package/package.json +16 -3
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { b as ToolPart } from './parts-CyGkM6Fp.js';
|
|
|
15
15
|
export { R as ReasoningPart, S as SessionMessage, a as SessionPart, T as TextPart, c as ToolState, d as ToolStatus, e as ToolTime } from './parts-CyGkM6Fp.js';
|
|
16
16
|
export { F as FileNode, a as FileTabData, b as FileTabs, c as FileTabsProps, d as FileTree, e as FileTreeProps, f as FileTreeVisibilityOptions, g as filterFileTree } from './file-tabs-BLfxfmAH.js';
|
|
17
17
|
export { FileArtifactPane, FileArtifactPaneProps, FilePreview, FilePreviewProps } from './files.js';
|
|
18
|
-
export { B as Backend, a as BackendSelector, b as BackendSelectorProps, C as ClusterStatusBar, c as ClusterStatusBarProps, d as ClusterStatusItem, e as CreditBalance, f as CreditBalanceProps, D as DashboardLayout, g as DashboardLayoutProps, h as DashboardUser, I as Invoice, i as InvoiceTable, j as InvoiceTableProps, N as NavItem, k as NewSandboxCard, l as NewSandboxCardProps,
|
|
18
|
+
export { B as Backend, a as BackendSelector, b as BackendSelectorProps, C as ClusterStatusBar, c as ClusterStatusBarProps, d as ClusterStatusItem, e as CreditBalance, f as CreditBalanceProps, D as DashboardLayout, g as DashboardLayoutProps, h as DashboardUser, I as Invoice, i as InvoiceTable, j as InvoiceTableProps, N as NavItem, k as NewSandboxCard, l as NewSandboxCardProps, P as PanelConfig, m as PlanCardData, n as PlanCards, o as PlanCardsProps, p as ProductVariant, q as ProfileAvatar, r as ProfileAvatarProps, s as ProfileComparison, t as ProfileComparisonProps, u as ProfileSelector, v as ProfileSelectorProps, R as RailButton, w as RailButtonProps, x as RailModeButton, y as RailModeButtonProps, z as RailSeparator, A as RailSeparatorProps, E as ResourceMeter, F as ResourceMeterProps, S as SIDEBAR_PANEL_WIDTH, G as SIDEBAR_RAIL_WIDTH, H as SIDEBAR_TOTAL_WIDTH, J as SandboxCard, K as SandboxCardData, L as SandboxCardProps, M as SandboxStatus, O as SandboxTable, Q as SandboxTableProps, T as Sidebar, U as SidebarContent, V as SidebarContentProps, W as SidebarPanel, X as SidebarPanelContent, Y as SidebarPanelContentProps, Z as SidebarPanelHeader, _ as SidebarPanelHeaderProps, $ as SidebarPanelProps, a0 as SidebarProps, a1 as SidebarProvider, a2 as SidebarProviderProps, a3 as SidebarRail, a4 as SidebarRailFooter, a5 as SidebarRailFooterProps, a6 as SidebarRailHeader, a7 as SidebarRailHeaderProps, a8 as SidebarRailNav, a9 as SidebarRailNavProps, aa as SidebarRailProps, ab as SidebarUser, ac as TopNavLink, ad as VariantList, ae as VariantListProps, af as useSidebar } from './variant-list-CsS6ydgm.js';
|
|
19
19
|
export { c as BillingDashboard, d as BillingDashboardProps, e as PricingCards, f as PricingPageProps, g as UsageChart, h as UsageChartProps, U as UsageDataPoint } from './usage-chart-SSiOgeQI.js';
|
|
20
20
|
export { AuthHeader, GitHubLoginButton, LoginLayout, LoginLayoutProps, UserMenu } from './auth.js';
|
|
21
21
|
export { CodeBlock, CodeBlock as CodeBlockDisplay, CopyButton, Markdown, MarkdownProps } from './markdown.js';
|
package/dist/index.js
CHANGED
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
GitHubLoginButton,
|
|
22
22
|
LoginLayout,
|
|
23
23
|
UserMenu
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-DI3NZ5ZX.js";
|
|
25
25
|
import {
|
|
26
26
|
createAuthFetcher,
|
|
27
27
|
useApiKey,
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
DialogPortal,
|
|
76
76
|
DialogTitle,
|
|
77
77
|
DialogTrigger
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-US6JKJKH.js";
|
|
79
79
|
import {
|
|
80
80
|
Tabs,
|
|
81
81
|
TabsContent,
|
|
@@ -101,7 +101,7 @@ import {
|
|
|
101
101
|
StatusBar,
|
|
102
102
|
TerminalPanel,
|
|
103
103
|
WorkspaceLayout
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-QC4BJEG6.js";
|
|
105
105
|
import "./chunk-OEX7NZE3.js";
|
|
106
106
|
import {
|
|
107
107
|
EmptyState,
|
|
@@ -115,7 +115,7 @@ import {
|
|
|
115
115
|
MessageList,
|
|
116
116
|
ThinkingIndicator,
|
|
117
117
|
UserMessage
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-JLKYXLFN.js";
|
|
119
119
|
import {
|
|
120
120
|
useAutoScroll,
|
|
121
121
|
useRunCollapseState,
|
|
@@ -151,7 +151,7 @@ import {
|
|
|
151
151
|
import {
|
|
152
152
|
InlineCode,
|
|
153
153
|
OpenUIArtifactRenderer
|
|
154
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-PLTZB5BC.js";
|
|
155
155
|
import {
|
|
156
156
|
Table,
|
|
157
157
|
TableBody,
|
|
@@ -209,12 +209,12 @@ import {
|
|
|
209
209
|
SidebarRailNav,
|
|
210
210
|
VariantList,
|
|
211
211
|
useSidebar
|
|
212
|
-
} from "./chunk-
|
|
212
|
+
} from "./chunk-7YWFOGKQ.js";
|
|
213
213
|
import {
|
|
214
214
|
BillingDashboard,
|
|
215
215
|
PricingPage,
|
|
216
216
|
UsageChart
|
|
217
|
-
} from "./chunk-
|
|
217
|
+
} from "./chunk-OHPW55EV.js";
|
|
218
218
|
import {
|
|
219
219
|
Logo,
|
|
220
220
|
StatCard,
|
|
@@ -259,7 +259,7 @@ import {
|
|
|
259
259
|
import {
|
|
260
260
|
Button,
|
|
261
261
|
buttonVariants
|
|
262
|
-
} from "./chunk-
|
|
262
|
+
} from "./chunk-MKTSMWVD.js";
|
|
263
263
|
import {
|
|
264
264
|
cn
|
|
265
265
|
} from "./chunk-RQHJBTEU.js";
|
package/dist/openui.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenUIArtifactRenderer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PLTZB5BC.js";
|
|
4
4
|
import "./chunk-34I7UFSX.js";
|
|
5
5
|
import "./chunk-T7HMZEVO.js";
|
|
6
6
|
import "./chunk-ZMNSRDMH.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-MKTSMWVD.js";
|
|
8
8
|
import "./chunk-RQHJBTEU.js";
|
|
9
9
|
export {
|
|
10
10
|
OpenUIArtifactRenderer
|
package/dist/pages.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ interface EnvironmentEntry {
|
|
|
37
37
|
interface ProvisioningWizardProps {
|
|
38
38
|
environments?: EnvironmentOption[];
|
|
39
39
|
onLoadEnvironments?: () => Promise<EnvironmentEntry[]>;
|
|
40
|
-
onSubmit?: (config: ProvisioningConfig) => void
|
|
40
|
+
onSubmit?: (config: ProvisioningConfig) => void | Promise<void>;
|
|
41
41
|
onBack?: () => void;
|
|
42
42
|
className?: string;
|
|
43
43
|
variant?: "flat" | "multistep";
|
|
@@ -47,6 +47,15 @@ interface ProvisioningWizardProps {
|
|
|
47
47
|
defaultConfig?: Partial<ProvisioningConfig>;
|
|
48
48
|
/** When true and defaultConfig is provided, start on the final step */
|
|
49
49
|
skipToReview?: boolean;
|
|
50
|
+
/** Load user's startup scripts for the advanced options selector */
|
|
51
|
+
onLoadStartupScripts?: () => Promise<StartupScriptEntry[]>;
|
|
52
|
+
}
|
|
53
|
+
interface StartupScriptEntry {
|
|
54
|
+
id: string;
|
|
55
|
+
name: string;
|
|
56
|
+
description: string;
|
|
57
|
+
enabled: boolean;
|
|
58
|
+
injectSecrets: string[];
|
|
50
59
|
}
|
|
51
60
|
interface ProvisioningConfig {
|
|
52
61
|
environment: string;
|
|
@@ -63,9 +72,10 @@ interface ProvisioningConfig {
|
|
|
63
72
|
}[];
|
|
64
73
|
driver: "docker" | "firecracker" | "tangle";
|
|
65
74
|
bare: boolean;
|
|
75
|
+
startupScriptIds?: string[];
|
|
66
76
|
}
|
|
67
77
|
declare function resolveEnvironment(env: EnvironmentEntry): EnvironmentOption;
|
|
68
|
-
declare function ProvisioningWizard({ environments: environmentsProp, onLoadEnvironments, onSubmit, onBack, className, variant, defaultEnvironment, defaultConfig, skipToReview, }: ProvisioningWizardProps): react_jsx_runtime.JSX.Element;
|
|
78
|
+
declare function ProvisioningWizard({ environments: environmentsProp, onLoadEnvironments, onSubmit, onBack, className, variant, defaultEnvironment, defaultConfig, skipToReview, onLoadStartupScripts, }: ProvisioningWizardProps): react_jsx_runtime.JSX.Element;
|
|
69
79
|
|
|
70
80
|
type ProductVariant = "sandbox";
|
|
71
81
|
interface StandalonePricingPageProps {
|
|
@@ -76,9 +86,10 @@ interface StandalonePricingPageProps {
|
|
|
76
86
|
fetchTiers?: () => Promise<PricingTier[]>;
|
|
77
87
|
title?: string;
|
|
78
88
|
subtitle?: string;
|
|
89
|
+
eyebrow?: string;
|
|
79
90
|
className?: string;
|
|
80
91
|
}
|
|
81
|
-
declare function StandalonePricingPage({ variant, initialTiers, apiBasePath, onSelectTier, fetchTiers, title, subtitle, className, }: StandalonePricingPageProps): react_jsx_runtime.JSX.Element;
|
|
92
|
+
declare function StandalonePricingPage({ variant, initialTiers, apiBasePath, onSelectTier, fetchTiers, title, subtitle, eyebrow, className, }: StandalonePricingPageProps): react_jsx_runtime.JSX.Element;
|
|
82
93
|
|
|
83
94
|
interface ProfileMetrics {
|
|
84
95
|
total_runs: number;
|
|
@@ -158,8 +169,62 @@ interface TemplatesPageProps {
|
|
|
158
169
|
}
|
|
159
170
|
declare function TemplatesPage({ templates, loading, onUseTemplate, className }: TemplatesPageProps): react_jsx_runtime.JSX.Element;
|
|
160
171
|
|
|
172
|
+
type ScriptType = "bash" | "python" | "node" | "ruby" | "custom";
|
|
173
|
+
interface StartupScript {
|
|
174
|
+
id: string;
|
|
175
|
+
name: string;
|
|
176
|
+
description: string;
|
|
177
|
+
scriptType: ScriptType;
|
|
178
|
+
content: string;
|
|
179
|
+
environments: string[];
|
|
180
|
+
minCpuCores: number | null;
|
|
181
|
+
minRamGB: number | null;
|
|
182
|
+
runOrder: number;
|
|
183
|
+
timeoutSeconds: number;
|
|
184
|
+
continueOnFailure: boolean;
|
|
185
|
+
runAsRoot: boolean;
|
|
186
|
+
injectSecrets: string[];
|
|
187
|
+
enabled: boolean;
|
|
188
|
+
createdAt: string;
|
|
189
|
+
updatedAt: string;
|
|
190
|
+
}
|
|
191
|
+
interface StartupScriptFormData {
|
|
192
|
+
name: string;
|
|
193
|
+
description: string;
|
|
194
|
+
scriptType: ScriptType;
|
|
195
|
+
content: string;
|
|
196
|
+
environments: string[];
|
|
197
|
+
minCpuCores: number | null;
|
|
198
|
+
minRamGB: number | null;
|
|
199
|
+
runOrder: number;
|
|
200
|
+
timeoutSeconds: number;
|
|
201
|
+
continueOnFailure: boolean;
|
|
202
|
+
runAsRoot: boolean;
|
|
203
|
+
injectSecrets: string[];
|
|
204
|
+
enabled: boolean;
|
|
205
|
+
}
|
|
206
|
+
interface StartupScriptsApiClient {
|
|
207
|
+
listScripts: () => Promise<StartupScript[]>;
|
|
208
|
+
createScript: (data: StartupScriptFormData) => Promise<StartupScript>;
|
|
209
|
+
updateScript: (id: string, data: Partial<StartupScriptFormData>) => Promise<StartupScript>;
|
|
210
|
+
deleteScript: (id: string) => Promise<void>;
|
|
211
|
+
toggleScript: (id: string) => Promise<StartupScript>;
|
|
212
|
+
listSecrets?: () => Promise<{
|
|
213
|
+
name: string;
|
|
214
|
+
}[]>;
|
|
215
|
+
listEnvironments?: () => Promise<{
|
|
216
|
+
id: string;
|
|
217
|
+
name?: string;
|
|
218
|
+
}[]>;
|
|
219
|
+
}
|
|
220
|
+
interface StartupScriptsPageProps {
|
|
221
|
+
apiClient: StartupScriptsApiClient;
|
|
222
|
+
className?: string;
|
|
223
|
+
}
|
|
224
|
+
declare function StartupScriptsPage({ apiClient, className }: StartupScriptsPageProps): react_jsx_runtime.JSX.Element;
|
|
225
|
+
|
|
161
226
|
type TemplateCategory = "blockchain" | "ai-ml" | "frontend" | "infrastructure" | "general";
|
|
162
|
-
type TemplatePreset = Omit<ProvisioningConfig, "name" | "gitUrl" | "envVars" | "driver">;
|
|
227
|
+
type TemplatePreset = Omit<ProvisioningConfig, "name" | "gitUrl" | "envVars" | "driver" | "startupScriptIds">;
|
|
163
228
|
declare function getPresetForTemplate(id: string): TemplatePreset;
|
|
164
229
|
|
|
165
|
-
export { BillingPage, type BillingPageData, type BillingPageProps, type EnvironmentEntry, type EnvironmentOption, PricingTier, type ProductVariant$1 as ProductVariant, type Profile, type ProfileFormData, type ProfileMetrics, ProfilesPage, type ProfilesPageProps, type ProvisioningConfig, ProvisioningWizard, type ProvisioningWizardProps, type Secret, type SecretsApiClient, SecretsPage, type SecretsPageProps, StandalonePricingPage, type StandalonePricingPageProps, type TemplateCategory, type TemplatePreset, TemplatesPage, type TemplatesPageProps, getPresetForTemplate, resolveEnvironment };
|
|
230
|
+
export { BillingPage, type BillingPageData, type BillingPageProps, type EnvironmentEntry, type EnvironmentOption, PricingTier, type ProductVariant$1 as ProductVariant, type Profile, type ProfileFormData, type ProfileMetrics, ProfilesPage, type ProfilesPageProps, type ProvisioningConfig, ProvisioningWizard, type ProvisioningWizardProps, type ScriptType, type Secret, type SecretsApiClient, SecretsPage, type SecretsPageProps, StandalonePricingPage, type StandalonePricingPageProps, type StartupScript, type StartupScriptEntry, type StartupScriptFormData, type StartupScriptsApiClient, StartupScriptsPage, type StartupScriptsPageProps, type TemplateCategory, type TemplatePreset, TemplatesPage, type TemplatesPageProps, getPresetForTemplate, resolveEnvironment };
|