@tangle-network/sandbox-ui 0.6.1 → 0.8.4

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.
Files changed (67) hide show
  1. package/dist/auth.d.ts +10 -6
  2. package/dist/auth.js +3 -3
  3. package/dist/{chat-container-Cg-GwyiK.d.ts → chat-container-f4yEs6KN.d.ts} +9 -1
  4. package/dist/chat.d.ts +12 -2
  5. package/dist/chat.js +10 -10
  6. package/dist/{chunk-TSE423UF.js → chunk-2QZ6G7NM.js} +6 -6
  7. package/dist/{chunk-WBQ7VULC.js → chunk-34A66VBG.js} +7 -7
  8. package/dist/{chunk-JP725R4W.js → chunk-34I7UFSX.js} +2 -2
  9. package/dist/{chunk-YS66Q3RC.js → chunk-3CJ2SOEI.js} +2 -2
  10. package/dist/{chunk-CNWVHQFY.js → chunk-54SQQMMM.js} +6 -24
  11. package/dist/{chunk-DLCFZDGX.js → chunk-5UM2XMEJ.js} +39 -14
  12. package/dist/{chunk-YYGECNZZ.js → chunk-66EZOYZR.js} +3 -3
  13. package/dist/chunk-7U2Z23NE.js +49 -0
  14. package/dist/{chunk-RKXIRRKQ.js → chunk-BUOQTBTO.js} +70 -66
  15. package/dist/{chunk-DCPYTL4W.js → chunk-D4CZWJCD.js} +72 -148
  16. package/dist/{chunk-MXRQ4MJE.js → chunk-DXMIEK4K.js} +34 -23
  17. package/dist/{chunk-ZMWWE5RF.js → chunk-EXSOPXIY.js} +141 -123
  18. package/dist/{chunk-GW4GRAWJ.js → chunk-GSZA3TSY.js} +18 -12
  19. package/dist/{chunk-W4LM3QYZ.js → chunk-HB5Y37YU.js} +8 -8
  20. package/dist/{chunk-E2XT3G52.js → chunk-HFMAXUHV.js} +136 -137
  21. package/dist/{chunk-BRBTD7RH.js → chunk-MA7YKRUP.js} +28 -18
  22. package/dist/{chunk-MJUDMVRU.js → chunk-MT5FJ3ZT.js} +17 -17
  23. package/dist/chunk-OKLQVY3Y.js +139 -0
  24. package/dist/{chunk-KH5UDAJ2.js → chunk-QDH5GEGY.js} +58 -54
  25. package/dist/{chunk-33W2TLUL.js → chunk-QID2OOMG.js} +12 -3
  26. package/dist/{chunk-FJSVPBKY.js → chunk-S7OXQTST.js} +17 -3
  27. package/dist/chunk-T7HMZEVO.js +216 -0
  28. package/dist/{chunk-FNYJFCGU.js → chunk-U6QTHMY6.js} +145 -256
  29. package/dist/{chunk-565V6JTN.js → chunk-UXQMIR3D.js} +60 -99
  30. package/dist/{chunk-XTPAWK7L.js → chunk-VOUV7GGB.js} +25 -47
  31. package/dist/{chunk-OVNLOE3Y.js → chunk-WXK43R62.js} +41 -41
  32. package/dist/{chunk-6V4XVKFY.js → chunk-XXDFEF72.js} +340 -335
  33. package/dist/{chunk-TDYQBLL5.js → chunk-ZMNSRDMH.js} +6 -6
  34. package/dist/dashboard.d.ts +135 -3
  35. package/dist/dashboard.js +848 -8
  36. package/dist/{document-editor-pane-DWWUTTTZ.js → document-editor-pane-TLPVRBBU.js} +3 -3
  37. package/dist/editor.d.ts +9 -8
  38. package/dist/editor.js +3 -3
  39. package/dist/files.js +3 -3
  40. package/dist/globals.css +5304 -68
  41. package/dist/hooks.d.ts +1 -1
  42. package/dist/hooks.js +7 -7
  43. package/dist/index.d.ts +4 -4
  44. package/dist/index.js +28 -28
  45. package/dist/markdown.js +1 -1
  46. package/dist/openui.js +5 -5
  47. package/dist/pages.d.ts +47 -3
  48. package/dist/pages.js +911 -357
  49. package/dist/primitives.d.ts +5 -2
  50. package/dist/primitives.js +10 -10
  51. package/dist/run.js +4 -4
  52. package/dist/sdk-hooks.d.ts +2 -3
  53. package/dist/sdk-hooks.js +5 -5
  54. package/dist/styles.css +5304 -68
  55. package/dist/template-card-BAtvcAkU.d.ts +18 -0
  56. package/dist/terminal.d.ts +3 -1
  57. package/dist/terminal.js +66 -32
  58. package/dist/tokens.css +701 -40
  59. package/dist/{usage-chart-XCoB_7Xu.d.ts → usage-chart-SSiOgeQI.d.ts} +3 -1
  60. package/dist/{use-pty-session-COzVkhtc.d.ts → use-pty-session-0AOuwXgq.d.ts} +2 -0
  61. package/dist/{index-BT_-ecpc.d.ts → variant-list-C8wx2TqF.d.ts} +17 -8
  62. package/dist/workspace.d.ts +1 -1
  63. package/dist/workspace.js +13 -13
  64. package/package.json +3 -1
  65. package/tailwind.config.cjs +3 -2
  66. package/dist/chunk-3HW53XTH.js +0 -228
  67. package/dist/chunk-OKCIKTXQ.js +0 -63
@@ -7,10 +7,10 @@ import * as React from "react";
7
7
  import { jsx } from "react/jsx-runtime";
8
8
  var Card = React.forwardRef(({ className, variant = "default", hover = false, ...props }, ref) => {
9
9
  const variants = {
10
- default: "bg-card border-[var(--border-default)]",
11
- elevated: "bg-[var(--bg-elevated)] border-[var(--border-subtle)] shadow-[var(--shadow-card)]",
12
- glass: "bg-[var(--depth-2)] border-[var(--border-subtle)] shadow-[var(--shadow-card)]",
13
- sandbox: "bg-[var(--depth-3)] border-[var(--border-accent)] shadow-[var(--shadow-accent)]"
10
+ default: "bg-card border-border",
11
+ elevated: "bg-muted/50 border-border shadow-[var(--shadow-card)]",
12
+ glass: "bg-card/80 backdrop-blur-xl border-border shadow-[var(--shadow-card)]",
13
+ sandbox: "bg-muted/50 border-primary/20 shadow-[var(--shadow-accent)]"
14
14
  };
15
15
  return /* @__PURE__ */ jsx(
16
16
  "div",
@@ -20,7 +20,7 @@ var Card = React.forwardRef(({ className, variant = "default", hover = false, ..
20
20
  "rounded-[var(--radius-lg)] border text-card-foreground transition-[border-color,box-shadow]",
21
21
  "duration-[var(--transition-default)]",
22
22
  variants[variant],
23
- hover && "cursor-pointer hover:border-[var(--border-hover)]",
23
+ hover && "cursor-pointer hover:border-primary/30",
24
24
  className
25
25
  ),
26
26
  ...props
@@ -83,7 +83,7 @@ var badgeVariants = cva(
83
83
  warning: "border-[var(--surface-warning-border)] bg-[var(--surface-warning-bg)] text-[var(--surface-warning-text)]",
84
84
  error: "border-[var(--surface-danger-border)] bg-[var(--surface-danger-bg)] text-[var(--surface-danger-text)]",
85
85
  info: "border-[var(--surface-info-border)] bg-[var(--surface-info-bg)] text-[var(--surface-info-text)]",
86
- sandbox: "border-[var(--border-accent)] bg-[var(--accent-surface-soft)] text-[var(--accent-text)]",
86
+ sandbox: "border-border bg-[var(--accent-surface-soft)] text-[var(--accent-text)]",
87
87
  /* Operational status variants */
88
88
  running: "border-[var(--surface-teal-border)] bg-[var(--surface-teal-bg)] text-[var(--surface-teal-text)]",
89
89
  creating: "border-[var(--surface-violet-border)] bg-[var(--surface-violet-bg)] text-[var(--surface-violet-text)]",
@@ -1,4 +1,136 @@
1
- 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, ag as DashboardProfile, h as DashboardUser, I as Invoice, i as InvoiceTable, j as InvoiceTableProps, N as NavItem, k as NewSandboxCard, l as NewSandboxCardProps, m as PlanCardData, n as PlanCards, o as PlanCardsProps, ah as PlanFeature, 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, ai as Variant, ad as VariantList, ae as VariantListProps, aj as VariantOutcome, ak as VariantStatus, af as useSidebar } from './index-BT_-ecpc.js';
2
- export { a as BillingBalance, c as BillingDashboard, d as BillingDashboardProps, B as BillingSubscription, b as BillingUsage, e as PricingPage, f as PricingPageProps, P as PricingTier, g as UsageChart, h as UsageChartProps, U as UsageDataPoint } from './usage-chart-XCoB_7Xu.js';
3
- import 'react/jsx-runtime';
1
+ 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, P as DashboardProfile, h as DashboardUser, I as Invoice, i as InvoiceTable, j as InvoiceTableProps, N as NavItem, k as NewSandboxCard, l as NewSandboxCardProps, m as PlanCardData, n as PlanCards, o as PlanCardsProps, p as PlanFeature, q as ProductVariant, r as ProfileAvatar, s as ProfileAvatarProps, t as ProfileComparison, u as ProfileComparisonProps, v as ProfileSelector, w as ProfileSelectorProps, R as RailButton, x as RailButtonProps, y as RailModeButton, z as RailModeButtonProps, A as RailSeparator, E as RailSeparatorProps, F as ResourceMeter, G as ResourceMeterProps, S as SIDEBAR_PANEL_WIDTH, H as SIDEBAR_RAIL_WIDTH, J as SIDEBAR_TOTAL_WIDTH, K as SandboxCard, L as SandboxCardData, M as SandboxCardProps, O as SandboxStatus, Q as SandboxTable, T as SandboxTableProps, U as Sidebar, V as SidebarContent, W as SidebarContentProps, X as SidebarPanel, Y as SidebarPanelContent, Z as SidebarPanelContentProps, _ as SidebarPanelHeader, $ as SidebarPanelHeaderProps, a0 as SidebarPanelProps, a1 as SidebarProps, a2 as SidebarProvider, a3 as SidebarProviderProps, a4 as SidebarRail, a5 as SidebarRailFooter, a6 as SidebarRailFooterProps, a7 as SidebarRailHeader, a8 as SidebarRailHeaderProps, a9 as SidebarRailNav, aa as SidebarRailNavProps, ab as SidebarRailProps, ac as SidebarUser, ad as Variant, ae as VariantList, af as VariantListProps, ag as VariantOutcome, ah as VariantStatus, ai as useSidebar } from './variant-list-C8wx2TqF.js';
2
+ export { a as BillingBalance, c as BillingDashboard, d as BillingDashboardProps, B as BillingSubscription, b as BillingUsage, e as PricingPage, f as PricingPageProps, P as PricingTier, g as UsageChart, h as UsageChartProps, U as UsageDataPoint } from './usage-chart-SSiOgeQI.js';
3
+ import * as react_jsx_runtime from 'react/jsx-runtime';
4
+ export { a as TemplateCard, T as TemplateCardData, b as TemplateCardProps } from './template-card-BAtvcAkU.js';
4
5
  import 'react';
6
+
7
+ interface SystemLogsViewerProps {
8
+ apiUrl: string;
9
+ token: string;
10
+ className?: string;
11
+ }
12
+ declare function SystemLogsViewer({ apiUrl, token, className }: SystemLogsViewerProps): react_jsx_runtime.JSX.Element;
13
+
14
+ interface UsageSummaryData {
15
+ computeHours: number;
16
+ activeSessions: number;
17
+ messagesSent: number;
18
+ estimatedCost: number;
19
+ }
20
+ interface UsageSummaryProps {
21
+ data: UsageSummaryData | null;
22
+ loading?: boolean;
23
+ className?: string;
24
+ }
25
+ declare function UsageSummary({ data, loading, className }: UsageSummaryProps): react_jsx_runtime.JSX.Element;
26
+
27
+ interface GitStatusData {
28
+ branch: string;
29
+ isDirty: boolean;
30
+ ahead: number;
31
+ behind: number;
32
+ staged: string[];
33
+ modified: string[];
34
+ untracked: string[];
35
+ }
36
+ interface GitCommitData {
37
+ shortSha: string;
38
+ message: string;
39
+ author: string;
40
+ date: string;
41
+ }
42
+ interface GitPanelProps {
43
+ status: GitStatusData | null;
44
+ log: GitCommitData[];
45
+ loading?: boolean;
46
+ onRefresh?: () => void;
47
+ className?: string;
48
+ }
49
+ declare function GitPanel({ status, log, loading, onRefresh, className }: GitPanelProps): react_jsx_runtime.JSX.Element;
50
+
51
+ interface ExposedPort {
52
+ port: number;
53
+ url: string;
54
+ status: "active" | "pending";
55
+ }
56
+ interface PortsListProps {
57
+ ports: ExposedPort[];
58
+ onExposePort: (port: number) => void;
59
+ onRemovePort?: (port: number) => void;
60
+ isExposing?: boolean;
61
+ className?: string;
62
+ }
63
+ declare function PortsList({ ports, onExposePort, onRemovePort, isExposing, className }: PortsListProps): react_jsx_runtime.JSX.Element;
64
+
65
+ interface ProcessInfo {
66
+ pid: number;
67
+ command: string;
68
+ running: boolean;
69
+ exitCode?: number;
70
+ startedAt?: string;
71
+ cwd?: string;
72
+ }
73
+ interface ProcessListProps {
74
+ processes: ProcessInfo[];
75
+ onSpawn: (command: string) => void;
76
+ onKill: (pid: number) => void;
77
+ loading?: boolean;
78
+ className?: string;
79
+ }
80
+ declare function ProcessList({ processes, onSpawn, onKill, loading, className }: ProcessListProps): react_jsx_runtime.JSX.Element;
81
+
82
+ interface NetworkConfigData {
83
+ blockOutbound: boolean;
84
+ allowList: string[];
85
+ }
86
+ interface NetworkConfigProps {
87
+ config: NetworkConfigData | null;
88
+ onUpdate: (config: Partial<NetworkConfigData>) => void;
89
+ loading?: boolean;
90
+ className?: string;
91
+ }
92
+ declare function NetworkConfig({ config, onUpdate, loading, className }: NetworkConfigProps): react_jsx_runtime.JSX.Element;
93
+
94
+ interface BackendStatusData {
95
+ running: boolean;
96
+ model?: string;
97
+ provider?: string;
98
+ uptime?: number;
99
+ }
100
+ interface McpServer {
101
+ name: string;
102
+ command: string;
103
+ args?: string[];
104
+ status?: "running" | "stopped" | "error";
105
+ }
106
+ interface BackendConfigProps {
107
+ status: BackendStatusData | null;
108
+ mcpServers: McpServer[];
109
+ onAddMcp: (server: {
110
+ name: string;
111
+ command: string;
112
+ args?: string[];
113
+ }) => void;
114
+ onRemoveMcp: (name: string) => void;
115
+ onRestart: () => void;
116
+ loading?: boolean;
117
+ className?: string;
118
+ }
119
+ declare function BackendConfig({ status, mcpServers, onAddMcp, onRemoveMcp, onRestart, loading, className, }: BackendConfigProps): react_jsx_runtime.JSX.Element;
120
+
121
+ interface SnapshotInfo {
122
+ id: string;
123
+ createdAt: string;
124
+ sizeBytes?: number;
125
+ tags?: string[];
126
+ }
127
+ interface SnapshotListProps {
128
+ snapshots: SnapshotInfo[];
129
+ onCreate: (tags?: string[]) => void;
130
+ onRestore: (snapshotId: string) => void;
131
+ loading?: boolean;
132
+ className?: string;
133
+ }
134
+ declare function SnapshotList({ snapshots, onCreate, onRestore, loading, className }: SnapshotListProps): react_jsx_runtime.JSX.Element;
135
+
136
+ export { BackendConfig, type BackendConfigProps, type BackendStatusData, type SnapshotInfo as DashboardSnapshotInfo, type ExposedPort, type GitCommitData, GitPanel, type GitPanelProps, type GitStatusData, type McpServer, NetworkConfig, type NetworkConfigData, type NetworkConfigProps, PortsList, type PortsListProps, type ProcessInfo, ProcessList, type ProcessListProps, SnapshotList, type SnapshotListProps, SystemLogsViewer, type SystemLogsViewerProps, UsageSummary, type UsageSummaryData, type UsageSummaryProps };