@tangle-network/sandbox-ui 0.21.2 → 0.22.1
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/auth.js +1 -3
- package/dist/{chunk-ZNYEJERQ.js → chunk-7X2DHDQ6.js} +673 -588
- package/dist/{chunk-UHFJXO24.js → chunk-7ZA5SEK3.js} +177 -1
- package/dist/{chunk-R3ZMMCT3.js → chunk-IOB2PW5Z.js} +13 -5
- package/dist/dashboard.d.ts +65 -2
- package/dist/dashboard.js +6 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -7
- package/dist/pages.js +1 -2
- package/dist/primitives.js +3 -5
- package/package.json +17 -12
- package/dist/chunk-SM7IJY4I.js +0 -178
|
@@ -2,6 +2,96 @@ import {
|
|
|
2
2
|
cn
|
|
3
3
|
} from "./chunk-EI44GEQ5.js";
|
|
4
4
|
|
|
5
|
+
// src/primitives/index.ts
|
|
6
|
+
import {
|
|
7
|
+
Avatar,
|
|
8
|
+
AvatarFallback,
|
|
9
|
+
AvatarImage,
|
|
10
|
+
Badge,
|
|
11
|
+
badgeVariants,
|
|
12
|
+
Button,
|
|
13
|
+
buttonVariants,
|
|
14
|
+
Card,
|
|
15
|
+
CardContent,
|
|
16
|
+
CardDescription,
|
|
17
|
+
CardFooter,
|
|
18
|
+
CardHeader,
|
|
19
|
+
CardTitle,
|
|
20
|
+
CodeBlock,
|
|
21
|
+
CopyButton,
|
|
22
|
+
Dialog,
|
|
23
|
+
DialogClose,
|
|
24
|
+
DialogContent,
|
|
25
|
+
DialogDescription,
|
|
26
|
+
DialogFooter,
|
|
27
|
+
DialogHeader,
|
|
28
|
+
DialogOverlay,
|
|
29
|
+
DialogPortal,
|
|
30
|
+
DialogTitle,
|
|
31
|
+
DialogTrigger,
|
|
32
|
+
DropZone,
|
|
33
|
+
DropdownMenu,
|
|
34
|
+
DropdownMenuCheckboxItem,
|
|
35
|
+
DropdownMenuContent,
|
|
36
|
+
DropdownMenuGroup,
|
|
37
|
+
DropdownMenuItem,
|
|
38
|
+
DropdownMenuLabel,
|
|
39
|
+
DropdownMenuPortal,
|
|
40
|
+
DropdownMenuRadioGroup,
|
|
41
|
+
DropdownMenuRadioItem,
|
|
42
|
+
DropdownMenuSeparator,
|
|
43
|
+
DropdownMenuShortcut,
|
|
44
|
+
DropdownMenuSub,
|
|
45
|
+
DropdownMenuSubContent,
|
|
46
|
+
DropdownMenuSubTrigger,
|
|
47
|
+
DropdownMenuTrigger,
|
|
48
|
+
EmptyState,
|
|
49
|
+
InlineCode,
|
|
50
|
+
Input,
|
|
51
|
+
Label,
|
|
52
|
+
Progress,
|
|
53
|
+
SegmentedControl,
|
|
54
|
+
Select,
|
|
55
|
+
SelectContent,
|
|
56
|
+
SelectGroup,
|
|
57
|
+
SelectItem,
|
|
58
|
+
SelectLabel,
|
|
59
|
+
SelectScrollDownButton,
|
|
60
|
+
SelectScrollUpButton,
|
|
61
|
+
SelectSeparator,
|
|
62
|
+
SelectTrigger,
|
|
63
|
+
SelectValue,
|
|
64
|
+
SidebarDropZone,
|
|
65
|
+
Skeleton,
|
|
66
|
+
SkeletonCard,
|
|
67
|
+
SkeletonTable,
|
|
68
|
+
StatCard,
|
|
69
|
+
Switch,
|
|
70
|
+
Table,
|
|
71
|
+
TableBody,
|
|
72
|
+
TableCaption,
|
|
73
|
+
TableCell,
|
|
74
|
+
TableFooter,
|
|
75
|
+
TableHead,
|
|
76
|
+
TableHeader,
|
|
77
|
+
TableRow,
|
|
78
|
+
Tabs,
|
|
79
|
+
TabsContent,
|
|
80
|
+
TabsList,
|
|
81
|
+
TabsTrigger,
|
|
82
|
+
TerminalCursor,
|
|
83
|
+
TerminalDisplay,
|
|
84
|
+
TerminalInput,
|
|
85
|
+
TerminalLine,
|
|
86
|
+
Textarea,
|
|
87
|
+
ThemeToggle,
|
|
88
|
+
ToastContainer,
|
|
89
|
+
ToastProvider,
|
|
90
|
+
UploadProgress,
|
|
91
|
+
useTheme,
|
|
92
|
+
useToast
|
|
93
|
+
} from "@tangle-network/ui/primitives";
|
|
94
|
+
|
|
5
95
|
// src/primitives/logo.tsx
|
|
6
96
|
import * as React from "react";
|
|
7
97
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -59,5 +149,91 @@ Logo.displayName = "Logo";
|
|
|
59
149
|
|
|
60
150
|
export {
|
|
61
151
|
TangleKnot,
|
|
62
|
-
Logo
|
|
152
|
+
Logo,
|
|
153
|
+
Avatar,
|
|
154
|
+
AvatarFallback,
|
|
155
|
+
AvatarImage,
|
|
156
|
+
Badge,
|
|
157
|
+
badgeVariants,
|
|
158
|
+
Button,
|
|
159
|
+
buttonVariants,
|
|
160
|
+
Card,
|
|
161
|
+
CardContent,
|
|
162
|
+
CardDescription,
|
|
163
|
+
CardFooter,
|
|
164
|
+
CardHeader,
|
|
165
|
+
CardTitle,
|
|
166
|
+
CodeBlock,
|
|
167
|
+
CopyButton,
|
|
168
|
+
Dialog,
|
|
169
|
+
DialogClose,
|
|
170
|
+
DialogContent,
|
|
171
|
+
DialogDescription,
|
|
172
|
+
DialogFooter,
|
|
173
|
+
DialogHeader,
|
|
174
|
+
DialogOverlay,
|
|
175
|
+
DialogPortal,
|
|
176
|
+
DialogTitle,
|
|
177
|
+
DialogTrigger,
|
|
178
|
+
DropZone,
|
|
179
|
+
DropdownMenu,
|
|
180
|
+
DropdownMenuCheckboxItem,
|
|
181
|
+
DropdownMenuContent,
|
|
182
|
+
DropdownMenuGroup,
|
|
183
|
+
DropdownMenuItem,
|
|
184
|
+
DropdownMenuLabel,
|
|
185
|
+
DropdownMenuPortal,
|
|
186
|
+
DropdownMenuRadioGroup,
|
|
187
|
+
DropdownMenuRadioItem,
|
|
188
|
+
DropdownMenuSeparator,
|
|
189
|
+
DropdownMenuShortcut,
|
|
190
|
+
DropdownMenuSub,
|
|
191
|
+
DropdownMenuSubContent,
|
|
192
|
+
DropdownMenuSubTrigger,
|
|
193
|
+
DropdownMenuTrigger,
|
|
194
|
+
EmptyState,
|
|
195
|
+
InlineCode,
|
|
196
|
+
Input,
|
|
197
|
+
Label,
|
|
198
|
+
Progress,
|
|
199
|
+
SegmentedControl,
|
|
200
|
+
Select,
|
|
201
|
+
SelectContent,
|
|
202
|
+
SelectGroup,
|
|
203
|
+
SelectItem,
|
|
204
|
+
SelectLabel,
|
|
205
|
+
SelectScrollDownButton,
|
|
206
|
+
SelectScrollUpButton,
|
|
207
|
+
SelectSeparator,
|
|
208
|
+
SelectTrigger,
|
|
209
|
+
SelectValue,
|
|
210
|
+
SidebarDropZone,
|
|
211
|
+
Skeleton,
|
|
212
|
+
SkeletonCard,
|
|
213
|
+
SkeletonTable,
|
|
214
|
+
StatCard,
|
|
215
|
+
Switch,
|
|
216
|
+
Table,
|
|
217
|
+
TableBody,
|
|
218
|
+
TableCaption,
|
|
219
|
+
TableCell,
|
|
220
|
+
TableFooter,
|
|
221
|
+
TableHead,
|
|
222
|
+
TableHeader,
|
|
223
|
+
TableRow,
|
|
224
|
+
Tabs,
|
|
225
|
+
TabsContent,
|
|
226
|
+
TabsList,
|
|
227
|
+
TabsTrigger,
|
|
228
|
+
TerminalCursor,
|
|
229
|
+
TerminalDisplay,
|
|
230
|
+
TerminalInput,
|
|
231
|
+
TerminalLine,
|
|
232
|
+
Textarea,
|
|
233
|
+
ThemeToggle,
|
|
234
|
+
ToastContainer,
|
|
235
|
+
ToastProvider,
|
|
236
|
+
UploadProgress,
|
|
237
|
+
useTheme,
|
|
238
|
+
useToast
|
|
63
239
|
};
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
TangleKnot
|
|
3
|
-
} from "./chunk-UHFJXO24.js";
|
|
4
|
-
|
|
5
1
|
// src/auth/index.ts
|
|
6
2
|
import {
|
|
7
3
|
AuthHeader,
|
|
@@ -14,6 +10,18 @@ import {
|
|
|
14
10
|
import { Button } from "@tangle-network/ui/primitives";
|
|
15
11
|
import { cn } from "@tangle-network/ui/utils";
|
|
16
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
function TangleMark({ className }) {
|
|
14
|
+
return /* @__PURE__ */ jsx(
|
|
15
|
+
"svg",
|
|
16
|
+
{
|
|
17
|
+
className,
|
|
18
|
+
viewBox: "0 0 24 24",
|
|
19
|
+
fill: "currentColor",
|
|
20
|
+
"aria-hidden": "true",
|
|
21
|
+
children: /* @__PURE__ */ jsx("path", { d: "M4 5h16v3.2h-6.4V19h-3.2V8.2H4V5z" })
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
}
|
|
17
25
|
function TangleLoginButton({
|
|
18
26
|
authUrl = "/auth/tangle",
|
|
19
27
|
variant = "default",
|
|
@@ -31,7 +39,7 @@ function TangleLoginButton({
|
|
|
31
39
|
},
|
|
32
40
|
...props,
|
|
33
41
|
children: [
|
|
34
|
-
/* @__PURE__ */ jsx(
|
|
42
|
+
/* @__PURE__ */ jsx(TangleMark, { className: "h-5 w-5" }),
|
|
35
43
|
children ?? "Sign in with Tangle"
|
|
36
44
|
]
|
|
37
45
|
}
|
package/dist/dashboard.d.ts
CHANGED
|
@@ -218,9 +218,72 @@ interface ResourceMeterProps {
|
|
|
218
218
|
max?: number;
|
|
219
219
|
unit?: string;
|
|
220
220
|
icon?: React.ReactNode;
|
|
221
|
+
/**
|
|
222
|
+
* Overrides the right-hand readout. Use for values the raw
|
|
223
|
+
* `value{unit}/max{unit}` template can't express, e.g. byte sizes
|
|
224
|
+
* ("1.2 GB / 4 GB"). The bar fill still derives from value/max.
|
|
225
|
+
*/
|
|
226
|
+
valueLabel?: string;
|
|
227
|
+
className?: string;
|
|
228
|
+
}
|
|
229
|
+
declare function ResourceMeter({ label, value, max, unit, valueLabel, icon, className }: ResourceMeterProps): react_jsx_runtime.JSX.Element;
|
|
230
|
+
|
|
231
|
+
interface ResourceSnapshotItem {
|
|
232
|
+
/** Stable React key; falls back to `label` plus row index when omitted. */
|
|
233
|
+
id?: string;
|
|
234
|
+
label: string;
|
|
235
|
+
/** Current value, in the same unit as `max`. */
|
|
236
|
+
value: number;
|
|
237
|
+
/** Full-scale value. Omit to treat `value` as a 0-100 percent. */
|
|
238
|
+
max?: number;
|
|
239
|
+
/** Unit suffix for the default `value{unit}/max{unit}` readout. */
|
|
240
|
+
unit?: string;
|
|
241
|
+
/** Right-hand readout override (e.g. "1.2 GB / 4 GB"). */
|
|
242
|
+
valueLabel?: string;
|
|
243
|
+
icon?: React.ReactNode;
|
|
244
|
+
}
|
|
245
|
+
interface ResourceSnapshotProps {
|
|
246
|
+
title?: string;
|
|
247
|
+
/** Right-aligned header slot, e.g. a "View metrics" link. */
|
|
248
|
+
action?: React.ReactNode;
|
|
249
|
+
items: ResourceSnapshotItem[];
|
|
250
|
+
loading?: boolean;
|
|
251
|
+
/** When set, replaces the meters with an error line. */
|
|
252
|
+
error?: string | null;
|
|
221
253
|
className?: string;
|
|
222
254
|
}
|
|
223
|
-
|
|
255
|
+
/**
|
|
256
|
+
* Compact at-a-glance resource panel: a stack of {@link ResourceMeter}
|
|
257
|
+
* rows for an instantaneous CPU / memory / disk read. Time-series detail
|
|
258
|
+
* belongs in a dedicated metrics view; this is the snapshot.
|
|
259
|
+
*/
|
|
260
|
+
declare function ResourceSnapshot({ title, action, items, loading, error, className, }: ResourceSnapshotProps): react_jsx_runtime.JSX.Element;
|
|
261
|
+
|
|
262
|
+
interface ActivityItem {
|
|
263
|
+
/** Stable key. */
|
|
264
|
+
id: string;
|
|
265
|
+
icon?: React.ReactNode;
|
|
266
|
+
title: string;
|
|
267
|
+
detail?: string;
|
|
268
|
+
/** Wall-clock ms. Drives ordering and the relative timestamp. */
|
|
269
|
+
timestamp?: number;
|
|
270
|
+
}
|
|
271
|
+
interface ActivityFeedProps {
|
|
272
|
+
title?: string;
|
|
273
|
+
action?: React.ReactNode;
|
|
274
|
+
items: ActivityItem[];
|
|
275
|
+
loading?: boolean;
|
|
276
|
+
/** Caps the rendered rows after sorting newest-first. Default 6. */
|
|
277
|
+
maxItems?: number;
|
|
278
|
+
emptyLabel?: string;
|
|
279
|
+
className?: string;
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Newest-first list of recent sandbox activity (commits, snapshots,
|
|
283
|
+
* lifecycle events). Items are sorted by `timestamp` descending here so
|
|
284
|
+
* callers can merge heterogeneous sources without pre-sorting.
|
|
285
|
+
*/
|
|
286
|
+
declare function ActivityFeed({ title, action, items, loading, maxItems, emptyLabel, className, }: ActivityFeedProps): react_jsx_runtime.JSX.Element;
|
|
224
287
|
|
|
225
288
|
type SandboxStatus = "running" | "hibernating" | "provisioning" | "stopped" | "failed" | "archived" | "creating";
|
|
226
289
|
type TeamRole = "owner" | "admin" | "member" | "viewer";
|
|
@@ -659,4 +722,4 @@ interface InfoPanelProps {
|
|
|
659
722
|
}
|
|
660
723
|
declare function InfoPanel({ label, title, description, className }: InfoPanelProps): react_jsx_runtime.JSX.Element;
|
|
661
724
|
|
|
662
|
-
export { BackendConfig, type BackendConfigProps, type BackendStatusData, ClusterStatusBar, type ClusterStatusBarProps, type ClusterStatusItem, CreditBalance, type CreditBalanceProps, DashboardLayout, type DashboardLayoutProps, type Profile as DashboardProfile, type SnapshotInfo as DashboardSnapshotInfo, type DashboardUser, type ExposedPort, type GitCommitData, GitPanel, type GitPanelProps, type GitStatusData, INSUFFICIENT_BALANCE_CODE, InfoPanel, type InfoPanelProps, type InsufficientBalance, type Invoice, InvoiceTable, type InvoiceTableProps, type McpServer, MetricAreaChart, type MetricAreaChartProps, type MetricChartPoint, type MetricChartTone, type NavItem, NetworkConfig, type NetworkConfigData, type NetworkConfigProps, NewSandboxCard, type NewSandboxCardProps, OutOfCreditsModal, type OutOfCreditsModalProps, type PlanCardData, PlanCards, type PlanCardsProps, type PlanFeature, PortsList, type PortsListProps, type ProcessInfo, ProcessList, type ProcessListProps, type ProductVariant, ProfileAvatar, type ProfileAvatarProps, ProfileComparison, type ProfileComparisonProps, ProfileSelector, type ProfileSelectorProps, PromoBanner, type PromoBannerProps, RailButton, type RailButtonProps, RailModeButton, type RailModeButtonProps, RailSeparator, type RailSeparatorProps, ResourceMeter, type ResourceMeterProps, SIDEBAR_MOBILE_WIDTH, SIDEBAR_PANEL_WIDTH, SIDEBAR_RAIL_WIDTH, SIDEBAR_TOTAL_WIDTH, SandboxCard, type SandboxCardData, type SandboxCardProps, type SandboxStatus, SandboxTable, type SandboxTableProps, Sidebar, SidebarContent, type SidebarContentProps, SidebarPanel, SidebarPanelContent, type SidebarPanelContentProps, SidebarPanelHeader, type SidebarPanelHeaderProps, type SidebarPanelProps, type SidebarProps, SidebarProvider, type SidebarProviderProps, SidebarRail, SidebarRailFooter, type SidebarRailFooterProps, SidebarRailHeader, type SidebarRailHeaderProps, SidebarRailNav, type SidebarRailNavProps, type SidebarRailProps, type SidebarUser, SnapshotList, type SnapshotListProps, SystemLogsViewer, type SystemLogsViewerProps, type TeamRole, UsageSummary, type UsageSummaryData, type UsageSummaryProps, type Variant, VariantList, type VariantListProps, type VariantOutcome, type VariantStatus, canAdminSandbox, parseInsufficientBalance, useSidebar };
|
|
725
|
+
export { ActivityFeed, type ActivityFeedProps, type ActivityItem, BackendConfig, type BackendConfigProps, type BackendStatusData, ClusterStatusBar, type ClusterStatusBarProps, type ClusterStatusItem, CreditBalance, type CreditBalanceProps, DashboardLayout, type DashboardLayoutProps, type Profile as DashboardProfile, type SnapshotInfo as DashboardSnapshotInfo, type DashboardUser, type ExposedPort, type GitCommitData, GitPanel, type GitPanelProps, type GitStatusData, INSUFFICIENT_BALANCE_CODE, InfoPanel, type InfoPanelProps, type InsufficientBalance, type Invoice, InvoiceTable, type InvoiceTableProps, type McpServer, MetricAreaChart, type MetricAreaChartProps, type MetricChartPoint, type MetricChartTone, type NavItem, NetworkConfig, type NetworkConfigData, type NetworkConfigProps, NewSandboxCard, type NewSandboxCardProps, OutOfCreditsModal, type OutOfCreditsModalProps, type PlanCardData, PlanCards, type PlanCardsProps, type PlanFeature, PortsList, type PortsListProps, type ProcessInfo, ProcessList, type ProcessListProps, type ProductVariant, ProfileAvatar, type ProfileAvatarProps, ProfileComparison, type ProfileComparisonProps, ProfileSelector, type ProfileSelectorProps, PromoBanner, type PromoBannerProps, RailButton, type RailButtonProps, RailModeButton, type RailModeButtonProps, RailSeparator, type RailSeparatorProps, ResourceMeter, type ResourceMeterProps, ResourceSnapshot, type ResourceSnapshotItem, type ResourceSnapshotProps, SIDEBAR_MOBILE_WIDTH, SIDEBAR_PANEL_WIDTH, SIDEBAR_RAIL_WIDTH, SIDEBAR_TOTAL_WIDTH, SandboxCard, type SandboxCardData, type SandboxCardProps, type SandboxStatus, SandboxTable, type SandboxTableProps, Sidebar, SidebarContent, type SidebarContentProps, SidebarPanel, SidebarPanelContent, type SidebarPanelContentProps, SidebarPanelHeader, type SidebarPanelHeaderProps, type SidebarPanelProps, type SidebarProps, SidebarProvider, type SidebarProviderProps, SidebarRail, SidebarRailFooter, type SidebarRailFooterProps, SidebarRailHeader, type SidebarRailHeaderProps, SidebarRailNav, type SidebarRailNavProps, type SidebarRailProps, type SidebarUser, SnapshotList, type SnapshotListProps, SystemLogsViewer, type SystemLogsViewerProps, type TeamRole, UsageSummary, type UsageSummaryData, type UsageSummaryProps, type Variant, VariantList, type VariantListProps, type VariantOutcome, type VariantStatus, canAdminSandbox, parseInsufficientBalance, useSidebar };
|
package/dist/dashboard.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
ActivityFeed,
|
|
2
3
|
BackendConfig,
|
|
3
4
|
ClusterStatusBar,
|
|
4
5
|
CreditBalance,
|
|
@@ -21,6 +22,7 @@ import {
|
|
|
21
22
|
RailModeButton,
|
|
22
23
|
RailSeparator,
|
|
23
24
|
ResourceMeter,
|
|
25
|
+
ResourceSnapshot,
|
|
24
26
|
SIDEBAR_MOBILE_WIDTH,
|
|
25
27
|
SIDEBAR_PANEL_WIDTH,
|
|
26
28
|
SIDEBAR_RAIL_WIDTH,
|
|
@@ -44,7 +46,7 @@ import {
|
|
|
44
46
|
canAdminSandbox,
|
|
45
47
|
parseInsufficientBalance,
|
|
46
48
|
useSidebar
|
|
47
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-7X2DHDQ6.js";
|
|
48
50
|
import {
|
|
49
51
|
BillingDashboard,
|
|
50
52
|
InfoPanel,
|
|
@@ -53,8 +55,7 @@ import {
|
|
|
53
55
|
UsageChart,
|
|
54
56
|
formatPrice
|
|
55
57
|
} from "./chunk-DNZ4DTNA.js";
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-UHFJXO24.js";
|
|
58
|
+
import "./chunk-7ZA5SEK3.js";
|
|
58
59
|
import {
|
|
59
60
|
BackendSelector,
|
|
60
61
|
HARNESS_OPTIONS,
|
|
@@ -68,6 +69,7 @@ import {
|
|
|
68
69
|
} from "./chunk-4KAPMTPU.js";
|
|
69
70
|
import "./chunk-EI44GEQ5.js";
|
|
70
71
|
export {
|
|
72
|
+
ActivityFeed,
|
|
71
73
|
BackendConfig,
|
|
72
74
|
BackendSelector,
|
|
73
75
|
BillingDashboard,
|
|
@@ -97,6 +99,7 @@ export {
|
|
|
97
99
|
RailModeButton,
|
|
98
100
|
RailSeparator,
|
|
99
101
|
ResourceMeter,
|
|
102
|
+
ResourceSnapshot,
|
|
100
103
|
SIDEBAR_MOBILE_WIDTH,
|
|
101
104
|
SIDEBAR_PANEL_WIDTH,
|
|
102
105
|
SIDEBAR_RAIL_WIDTH,
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export { AgentSessionControls, AgentSessionControlsProps, AgentSessionHarnessCon
|
|
|
8
8
|
export { ExpandedToolDetail, ExpandedToolDetailProps, InlineThinkingItem, InlineThinkingItemProps, InlineToolItem, InlineToolItemProps, LiveDuration, RunGroup, RunGroupProps } from '@tangle-network/ui/run';
|
|
9
9
|
export { CommandPreview, DiffPreview, GlobResultsPreview, GrepResultsPreview, QuestionPreview, WebSearchPreview, WriteFilePreview } from '@tangle-network/ui/tool-previews';
|
|
10
10
|
export { FileArtifactPane, FileArtifactPaneProps, FileNode, FilePreview, FilePreviewProps, FileTabData, FileTabs, FileTabsProps, FileTree, FileTreeProps, FileTreeVisibilityOptions, RichFileTree, RichFileTreeGitEntry, RichFileTreeGitStatus, RichFileTreeProps, RichFileTreeThemeVars, filterFileTree } from '@tangle-network/ui/files';
|
|
11
|
-
export { BackendConfig, BackendConfigProps, BackendStatusData, ClusterStatusBar, ClusterStatusBarProps, ClusterStatusItem, CreditBalance, CreditBalanceProps, DashboardLayout, DashboardLayoutProps, DashboardProfile, DashboardSnapshotInfo, DashboardUser, ExposedPort, GitCommitData, GitPanel, GitPanelProps, GitStatusData, INSUFFICIENT_BALANCE_CODE, InfoPanel, InfoPanelProps, InsufficientBalance, Invoice, InvoiceTable, InvoiceTableProps, McpServer, MetricAreaChart, MetricAreaChartProps, MetricChartPoint, MetricChartTone, NavItem, NetworkConfig, NetworkConfigData, NetworkConfigProps, NewSandboxCard, NewSandboxCardProps, OutOfCreditsModal, OutOfCreditsModalProps, PlanCardData, PlanCards, PlanCardsProps, PlanFeature, PortsList, PortsListProps, ProcessInfo, ProcessList, ProcessListProps, ProductVariant, ProfileAvatar, ProfileAvatarProps, ProfileComparison, ProfileComparisonProps, ProfileSelector, ProfileSelectorProps, PromoBanner, PromoBannerProps, RailButton, RailButtonProps, RailModeButton, RailModeButtonProps, RailSeparator, RailSeparatorProps, ResourceMeter, ResourceMeterProps, SIDEBAR_MOBILE_WIDTH, SIDEBAR_PANEL_WIDTH, SIDEBAR_RAIL_WIDTH, SIDEBAR_TOTAL_WIDTH, SandboxCard, SandboxCardData, SandboxCardProps, SandboxStatus, SandboxTable, SandboxTableProps, Sidebar, SidebarContent, SidebarContentProps, SidebarPanel, SidebarPanelContent, SidebarPanelContentProps, SidebarPanelHeader, SidebarPanelHeaderProps, SidebarPanelProps, SidebarProps, SidebarProvider, SidebarProviderProps, SidebarRail, SidebarRailFooter, SidebarRailFooterProps, SidebarRailHeader, SidebarRailHeaderProps, SidebarRailNav, SidebarRailNavProps, SidebarRailProps, SidebarUser, SnapshotList, SnapshotListProps, SystemLogsViewer, SystemLogsViewerProps, TeamRole, UsageSummary, UsageSummaryData, UsageSummaryProps, Variant, VariantList, VariantListProps, VariantOutcome, VariantStatus, canAdminSandbox, parseInsufficientBalance, useSidebar } from './dashboard.js';
|
|
11
|
+
export { ActivityFeed, ActivityFeedProps, ActivityItem, BackendConfig, BackendConfigProps, BackendStatusData, ClusterStatusBar, ClusterStatusBarProps, ClusterStatusItem, CreditBalance, CreditBalanceProps, DashboardLayout, DashboardLayoutProps, DashboardProfile, DashboardSnapshotInfo, DashboardUser, ExposedPort, GitCommitData, GitPanel, GitPanelProps, GitStatusData, INSUFFICIENT_BALANCE_CODE, InfoPanel, InfoPanelProps, InsufficientBalance, Invoice, InvoiceTable, InvoiceTableProps, McpServer, MetricAreaChart, MetricAreaChartProps, MetricChartPoint, MetricChartTone, NavItem, NetworkConfig, NetworkConfigData, NetworkConfigProps, NewSandboxCard, NewSandboxCardProps, OutOfCreditsModal, OutOfCreditsModalProps, PlanCardData, PlanCards, PlanCardsProps, PlanFeature, PortsList, PortsListProps, ProcessInfo, ProcessList, ProcessListProps, ProductVariant, ProfileAvatar, ProfileAvatarProps, ProfileComparison, ProfileComparisonProps, ProfileSelector, ProfileSelectorProps, PromoBanner, PromoBannerProps, RailButton, RailButtonProps, RailModeButton, RailModeButtonProps, RailSeparator, RailSeparatorProps, ResourceMeter, ResourceMeterProps, ResourceSnapshot, ResourceSnapshotItem, ResourceSnapshotProps, SIDEBAR_MOBILE_WIDTH, SIDEBAR_PANEL_WIDTH, SIDEBAR_RAIL_WIDTH, SIDEBAR_TOTAL_WIDTH, SandboxCard, SandboxCardData, SandboxCardProps, SandboxStatus, SandboxTable, SandboxTableProps, Sidebar, SidebarContent, SidebarContentProps, SidebarPanel, SidebarPanelContent, SidebarPanelContentProps, SidebarPanelHeader, SidebarPanelHeaderProps, SidebarPanelProps, SidebarProps, SidebarProvider, SidebarProviderProps, SidebarRail, SidebarRailFooter, SidebarRailFooterProps, SidebarRailHeader, SidebarRailHeaderProps, SidebarRailNav, SidebarRailNavProps, SidebarRailProps, SidebarUser, SnapshotList, SnapshotListProps, SystemLogsViewer, SystemLogsViewerProps, TeamRole, UsageSummary, UsageSummaryData, UsageSummaryProps, Variant, VariantList, VariantListProps, VariantOutcome, VariantStatus, canAdminSandbox, parseInsufficientBalance, useSidebar } from './dashboard.js';
|
|
12
12
|
export { B as Backend, a as BackendSelector, b as BackendSelectorProps, H as HARNESS_OPTIONS, c as HarnessPicker, d as HarnessPickerProps, e as HarnessType } from './harness-picker-C1W3rTeb.js';
|
|
13
13
|
export { M as ModelInfo, a as ModelPicker, b as ModelPickerProps, c as ModelPickerVariant, d as canonicalModelId, f as formatContext, e as formatPricing } from './model-picker-DUfMTQo5.js';
|
|
14
14
|
export { B as BillingBalance, a as BillingDashboard, b as BillingDashboardProps, c as BillingSubscription, d as BillingUsage, P as PricingPage, e as PricingPageProps, f as PricingTier, T as TemplateCard, g as TemplateCardData, h as TemplateCardProps, U as UsageChart, i as UsageChartProps, j as UsageDataPoint, k as formatPrice } from './template-card-UhV3pmRC.js';
|
package/dist/index.js
CHANGED
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
LoginLayout,
|
|
59
59
|
TangleLoginButton,
|
|
60
60
|
UserMenu
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-IOB2PW5Z.js";
|
|
62
62
|
import {
|
|
63
63
|
RealtimeSessionRegistry,
|
|
64
64
|
createAuthFetcher,
|
|
@@ -141,6 +141,7 @@ import {
|
|
|
141
141
|
filterFileTree
|
|
142
142
|
} from "./chunk-3J6FG3FJ.js";
|
|
143
143
|
import {
|
|
144
|
+
ActivityFeed,
|
|
144
145
|
BackendConfig,
|
|
145
146
|
ClusterStatusBar,
|
|
146
147
|
CreditBalance,
|
|
@@ -163,6 +164,7 @@ import {
|
|
|
163
164
|
RailModeButton,
|
|
164
165
|
RailSeparator,
|
|
165
166
|
ResourceMeter,
|
|
167
|
+
ResourceSnapshot,
|
|
166
168
|
SIDEBAR_MOBILE_WIDTH,
|
|
167
169
|
SIDEBAR_PANEL_WIDTH,
|
|
168
170
|
SIDEBAR_RAIL_WIDTH,
|
|
@@ -186,7 +188,7 @@ import {
|
|
|
186
188
|
canAdminSandbox,
|
|
187
189
|
parseInsufficientBalance,
|
|
188
190
|
useSidebar
|
|
189
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-7X2DHDQ6.js";
|
|
190
192
|
import {
|
|
191
193
|
BillingDashboard,
|
|
192
194
|
InfoPanel,
|
|
@@ -239,6 +241,7 @@ import {
|
|
|
239
241
|
InlineCode,
|
|
240
242
|
Input,
|
|
241
243
|
Label,
|
|
244
|
+
Logo,
|
|
242
245
|
Progress,
|
|
243
246
|
SegmentedControl,
|
|
244
247
|
Select,
|
|
@@ -269,6 +272,7 @@ import {
|
|
|
269
272
|
TabsContent,
|
|
270
273
|
TabsList,
|
|
271
274
|
TabsTrigger,
|
|
275
|
+
TangleKnot,
|
|
272
276
|
TerminalDisplay,
|
|
273
277
|
Textarea,
|
|
274
278
|
ThemeToggle,
|
|
@@ -279,11 +283,7 @@ import {
|
|
|
279
283
|
buttonVariants,
|
|
280
284
|
useTheme,
|
|
281
285
|
useToast
|
|
282
|
-
} from "./chunk-
|
|
283
|
-
import {
|
|
284
|
-
Logo,
|
|
285
|
-
TangleKnot
|
|
286
|
-
} from "./chunk-UHFJXO24.js";
|
|
286
|
+
} from "./chunk-7ZA5SEK3.js";
|
|
287
287
|
import {
|
|
288
288
|
BackendSelector,
|
|
289
289
|
HARNESS_OPTIONS,
|
|
@@ -315,6 +315,7 @@ import {
|
|
|
315
315
|
} from "@tangle-network/ui/tool-previews";
|
|
316
316
|
import { Markdown } from "@tangle-network/ui/markdown";
|
|
317
317
|
export {
|
|
318
|
+
ActivityFeed,
|
|
318
319
|
AgentSessionControls,
|
|
319
320
|
AgentTimeline,
|
|
320
321
|
AgentWorkbench,
|
|
@@ -425,6 +426,7 @@ export {
|
|
|
425
426
|
RealtimeSessionRegistry,
|
|
426
427
|
ReasoningLevelPicker,
|
|
427
428
|
ResourceMeter,
|
|
429
|
+
ResourceSnapshot,
|
|
428
430
|
RichFileTree,
|
|
429
431
|
RunGroup,
|
|
430
432
|
RuntimePane,
|
package/dist/pages.js
CHANGED
package/dist/primitives.js
CHANGED
|
@@ -42,6 +42,7 @@ import {
|
|
|
42
42
|
InlineCode,
|
|
43
43
|
Input,
|
|
44
44
|
Label,
|
|
45
|
+
Logo,
|
|
45
46
|
Progress,
|
|
46
47
|
SegmentedControl,
|
|
47
48
|
Select,
|
|
@@ -72,6 +73,7 @@ import {
|
|
|
72
73
|
TabsContent,
|
|
73
74
|
TabsList,
|
|
74
75
|
TabsTrigger,
|
|
76
|
+
TangleKnot,
|
|
75
77
|
TerminalCursor,
|
|
76
78
|
TerminalDisplay,
|
|
77
79
|
TerminalInput,
|
|
@@ -85,11 +87,7 @@ import {
|
|
|
85
87
|
buttonVariants,
|
|
86
88
|
useTheme,
|
|
87
89
|
useToast
|
|
88
|
-
} from "./chunk-
|
|
89
|
-
import {
|
|
90
|
-
Logo,
|
|
91
|
-
TangleKnot
|
|
92
|
-
} from "./chunk-UHFJXO24.js";
|
|
90
|
+
} from "./chunk-7ZA5SEK3.js";
|
|
93
91
|
import "./chunk-EI44GEQ5.js";
|
|
94
92
|
export {
|
|
95
93
|
Avatar,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.1",
|
|
4
4
|
"description": "Unified UI component library for Tangle Sandbox — primitives, chat, dashboard, terminal, editor, and workspace components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -99,6 +99,16 @@
|
|
|
99
99
|
"dist",
|
|
100
100
|
"tailwind.config.cjs"
|
|
101
101
|
],
|
|
102
|
+
"scripts": {
|
|
103
|
+
"build": "tsup",
|
|
104
|
+
"dev": "tsup --watch",
|
|
105
|
+
"typecheck": "tsc --noEmit",
|
|
106
|
+
"storybook": "storybook dev -p 6006",
|
|
107
|
+
"build-storybook": "storybook build",
|
|
108
|
+
"test": "vitest run",
|
|
109
|
+
"test:watch": "vitest",
|
|
110
|
+
"test:bridge": "pnpm build && vitest run src/__tests__/re-export-identity.test.ts"
|
|
111
|
+
},
|
|
102
112
|
"peerDependencies": {
|
|
103
113
|
"@tangle-network/brand": "^0.3.0",
|
|
104
114
|
"@tangle-network/ui": "^1.0.1",
|
|
@@ -132,6 +142,11 @@
|
|
|
132
142
|
"lucide-react": "^0.469.0",
|
|
133
143
|
"nanostores": "^1.2.0"
|
|
134
144
|
},
|
|
145
|
+
"pnpm": {
|
|
146
|
+
"overrides": {
|
|
147
|
+
"picomatch": ">=4.0.4"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
135
150
|
"devDependencies": {
|
|
136
151
|
"@hocuspocus/provider": "^3.4.4",
|
|
137
152
|
"@nanostores/react": "^1.1.0",
|
|
@@ -179,15 +194,5 @@
|
|
|
179
194
|
"vite": "^8.0.5",
|
|
180
195
|
"vitest": "^4.1.3",
|
|
181
196
|
"yjs": "^13.6.30"
|
|
182
|
-
},
|
|
183
|
-
"scripts": {
|
|
184
|
-
"build": "tsup",
|
|
185
|
-
"dev": "tsup --watch",
|
|
186
|
-
"typecheck": "tsc --noEmit",
|
|
187
|
-
"storybook": "storybook dev -p 6006",
|
|
188
|
-
"build-storybook": "storybook build",
|
|
189
|
-
"test": "vitest run",
|
|
190
|
-
"test:watch": "vitest",
|
|
191
|
-
"test:bridge": "pnpm build && vitest run src/__tests__/re-export-identity.test.ts"
|
|
192
197
|
}
|
|
193
|
-
}
|
|
198
|
+
}
|