@tangle-network/sandbox-ui 0.3.12 → 0.4.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 +7 -1
- package/dist/auth.js +2 -3
- package/dist/{chat-container-Dn1jWtWo.d.ts → chat-container-Cg-GwyiK.d.ts} +17 -3
- package/dist/chat.d.ts +1 -1
- package/dist/chat.js +1 -1
- package/dist/{chunk-QMKWQF6F.js → chunk-DQYODCBN.js} +102 -30
- package/dist/{chunk-6H3EFUUC.js → chunk-GVUW4VDD.js} +235 -110
- package/dist/chunk-HXEA7L2T.js +1401 -0
- package/dist/{chunk-IAIJUFM6.js → chunk-HYLTXGOI.js} +1 -1
- package/dist/{chunk-MCGKDCOR.js → chunk-IW2JZCOC.js} +55 -14
- package/dist/{chunk-DMYYQXPN.js → chunk-MVYFNPAH.js} +600 -460
- package/dist/{chunk-PCTEG6HR.js → chunk-OHMO7NUX.js} +2 -4
- package/dist/{chunk-CSIXZEKN.js → chunk-SSKVYXCR.js} +94 -1
- package/dist/dashboard.d.ts +1 -1
- package/dist/dashboard.js +40 -6
- package/dist/{document-editor-pane-AVKKXSLG.js → document-editor-pane-5TN2VWGZ.js} +1 -1
- package/dist/{document-editor-pane-Xnl8SmA7.d.ts → document-editor-pane-A70-EhdQ.d.ts} +1 -1
- package/dist/editor.d.ts +2 -2
- package/dist/editor.js +1 -1
- package/dist/files.d.ts +1 -1
- package/dist/files.js +1 -1
- package/dist/{index-BJIPTCKk.d.ts → index-tTfThG0n.d.ts} +131 -26
- package/dist/index.d.ts +6 -4
- package/dist/index.js +76 -16
- package/dist/primitives.d.ts +20 -1
- package/dist/primitives.js +7 -7
- package/dist/workspace.d.ts +8 -2
- package/dist/workspace.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-4HT5J6CE.js +0 -11001
- package/dist/chunk-B26TQ7SA.js +0 -47
package/dist/index.js
CHANGED
|
@@ -2,12 +2,26 @@ import {
|
|
|
2
2
|
copyText,
|
|
3
3
|
timeAgo
|
|
4
4
|
} from "./chunk-QD4QE5P5.js";
|
|
5
|
+
import {
|
|
6
|
+
CollaboratorsList,
|
|
7
|
+
DocumentEditorPane,
|
|
8
|
+
EditorProvider,
|
|
9
|
+
EditorToolbar,
|
|
10
|
+
TiptapEditor,
|
|
11
|
+
useAwareness,
|
|
12
|
+
useCollaboratorPresence,
|
|
13
|
+
useCollaborators,
|
|
14
|
+
useDocumentChanges,
|
|
15
|
+
useEditorConnection,
|
|
16
|
+
useEditorContext,
|
|
17
|
+
useYjsState
|
|
18
|
+
} from "./chunk-HXEA7L2T.js";
|
|
5
19
|
import {
|
|
6
20
|
AuthHeader,
|
|
7
21
|
GitHubLoginButton,
|
|
8
22
|
LoginLayout,
|
|
9
23
|
UserMenu
|
|
10
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-OHMO7NUX.js";
|
|
11
25
|
import {
|
|
12
26
|
createAuthFetcher,
|
|
13
27
|
useApiKey,
|
|
@@ -39,6 +53,7 @@ import {
|
|
|
39
53
|
SelectSeparator,
|
|
40
54
|
SelectTrigger,
|
|
41
55
|
SelectValue,
|
|
56
|
+
SidebarDropZone,
|
|
42
57
|
StatCard,
|
|
43
58
|
Switch,
|
|
44
59
|
TerminalCursor,
|
|
@@ -49,12 +64,7 @@ import {
|
|
|
49
64
|
ToastProvider,
|
|
50
65
|
UploadProgress,
|
|
51
66
|
useToast
|
|
52
|
-
} from "./chunk-
|
|
53
|
-
import {
|
|
54
|
-
Avatar,
|
|
55
|
-
AvatarFallback,
|
|
56
|
-
AvatarImage
|
|
57
|
-
} from "./chunk-B26TQ7SA.js";
|
|
67
|
+
} from "./chunk-SSKVYXCR.js";
|
|
58
68
|
import {
|
|
59
69
|
Dialog,
|
|
60
70
|
DialogClose,
|
|
@@ -89,7 +99,7 @@ import {
|
|
|
89
99
|
StatusBar,
|
|
90
100
|
TerminalPanel,
|
|
91
101
|
WorkspaceLayout
|
|
92
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-DQYODCBN.js";
|
|
93
103
|
import "./chunk-OEX7NZE3.js";
|
|
94
104
|
import {
|
|
95
105
|
EmptyState,
|
|
@@ -104,7 +114,7 @@ import {
|
|
|
104
114
|
MessageList,
|
|
105
115
|
ThinkingIndicator,
|
|
106
116
|
UserMessage
|
|
107
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-GVUW4VDD.js";
|
|
108
118
|
import {
|
|
109
119
|
useAutoScroll,
|
|
110
120
|
useRunCollapseState,
|
|
@@ -158,7 +168,7 @@ import {
|
|
|
158
168
|
FileTabs,
|
|
159
169
|
FileTree,
|
|
160
170
|
filterFileTree
|
|
161
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-HYLTXGOI.js";
|
|
162
172
|
import {
|
|
163
173
|
ArtifactPane
|
|
164
174
|
} from "./chunk-W4LM3QYZ.js";
|
|
@@ -168,7 +178,6 @@ import {
|
|
|
168
178
|
Markdown
|
|
169
179
|
} from "./chunk-LTFK464G.js";
|
|
170
180
|
import {
|
|
171
|
-
AppSidebar,
|
|
172
181
|
BackendSelector,
|
|
173
182
|
ClusterStatusBar,
|
|
174
183
|
CreditBalance,
|
|
@@ -176,13 +185,31 @@ import {
|
|
|
176
185
|
InvoiceTable,
|
|
177
186
|
NewSandboxCard,
|
|
178
187
|
PlanCards,
|
|
188
|
+
ProfileAvatar,
|
|
179
189
|
ProfileComparison,
|
|
180
190
|
ProfileSelector,
|
|
191
|
+
RailButton,
|
|
192
|
+
RailModeButton,
|
|
193
|
+
RailSeparator,
|
|
181
194
|
ResourceMeter,
|
|
195
|
+
SIDEBAR_PANEL_WIDTH,
|
|
196
|
+
SIDEBAR_RAIL_WIDTH,
|
|
197
|
+
SIDEBAR_TOTAL_WIDTH,
|
|
182
198
|
SandboxCard,
|
|
183
199
|
SandboxTable,
|
|
184
|
-
|
|
185
|
-
|
|
200
|
+
Sidebar,
|
|
201
|
+
SidebarContent,
|
|
202
|
+
SidebarPanel,
|
|
203
|
+
SidebarPanelContent,
|
|
204
|
+
SidebarPanelHeader,
|
|
205
|
+
SidebarProvider,
|
|
206
|
+
SidebarRail,
|
|
207
|
+
SidebarRailFooter,
|
|
208
|
+
SidebarRailHeader,
|
|
209
|
+
SidebarRailNav,
|
|
210
|
+
VariantList,
|
|
211
|
+
useSidebar
|
|
212
|
+
} from "./chunk-MVYFNPAH.js";
|
|
186
213
|
import {
|
|
187
214
|
BillingDashboard,
|
|
188
215
|
PricingPage,
|
|
@@ -193,6 +220,9 @@ import {
|
|
|
193
220
|
TangleKnot
|
|
194
221
|
} from "./chunk-OKCIKTXQ.js";
|
|
195
222
|
import {
|
|
223
|
+
Avatar,
|
|
224
|
+
AvatarFallback,
|
|
225
|
+
AvatarImage,
|
|
196
226
|
DropdownMenu,
|
|
197
227
|
DropdownMenuCheckboxItem,
|
|
198
228
|
DropdownMenuContent,
|
|
@@ -208,7 +238,7 @@ import {
|
|
|
208
238
|
DropdownMenuSubContent,
|
|
209
239
|
DropdownMenuSubTrigger,
|
|
210
240
|
DropdownMenuTrigger
|
|
211
|
-
} from "./chunk-
|
|
241
|
+
} from "./chunk-IW2JZCOC.js";
|
|
212
242
|
import {
|
|
213
243
|
Progress,
|
|
214
244
|
Skeleton,
|
|
@@ -320,7 +350,6 @@ function ThemeToggle() {
|
|
|
320
350
|
export {
|
|
321
351
|
AgentTimeline,
|
|
322
352
|
AgentWorkbench,
|
|
323
|
-
AppSidebar,
|
|
324
353
|
ArtifactPane,
|
|
325
354
|
AuditResults,
|
|
326
355
|
AuthHeader,
|
|
@@ -343,6 +372,7 @@ export {
|
|
|
343
372
|
ClusterStatusBar,
|
|
344
373
|
CodeBlock2 as CodeBlock,
|
|
345
374
|
CodeBlock as CodeBlockDisplay,
|
|
375
|
+
CollaboratorsList,
|
|
346
376
|
CommandPreview,
|
|
347
377
|
CopyButton,
|
|
348
378
|
CreditBalance,
|
|
@@ -359,6 +389,7 @@ export {
|
|
|
359
389
|
DialogTrigger,
|
|
360
390
|
DiffPreview,
|
|
361
391
|
DirectoryPane,
|
|
392
|
+
DocumentEditorPane,
|
|
362
393
|
DropZone,
|
|
363
394
|
DropdownMenu,
|
|
364
395
|
DropdownMenuCheckboxItem,
|
|
@@ -375,6 +406,8 @@ export {
|
|
|
375
406
|
DropdownMenuSubContent,
|
|
376
407
|
DropdownMenuSubTrigger,
|
|
377
408
|
DropdownMenuTrigger,
|
|
409
|
+
EditorProvider,
|
|
410
|
+
EditorToolbar,
|
|
378
411
|
EmptyState,
|
|
379
412
|
ExpandedToolDetail,
|
|
380
413
|
FileArtifactPane,
|
|
@@ -398,14 +431,21 @@ export {
|
|
|
398
431
|
OpenUIArtifactRenderer,
|
|
399
432
|
PlanCards,
|
|
400
433
|
PricingPage as PricingCards,
|
|
434
|
+
ProfileAvatar,
|
|
401
435
|
ProfileComparison,
|
|
402
436
|
ProfileSelector,
|
|
403
437
|
Progress,
|
|
404
438
|
QuestionPreview,
|
|
439
|
+
RailButton,
|
|
440
|
+
RailModeButton,
|
|
441
|
+
RailSeparator,
|
|
405
442
|
RealtimeSessionRegistry,
|
|
406
443
|
ResourceMeter,
|
|
407
444
|
RunGroup,
|
|
408
445
|
RuntimePane,
|
|
446
|
+
SIDEBAR_PANEL_WIDTH,
|
|
447
|
+
SIDEBAR_RAIL_WIDTH,
|
|
448
|
+
SIDEBAR_TOTAL_WIDTH,
|
|
409
449
|
SandboxCard,
|
|
410
450
|
SandboxTable,
|
|
411
451
|
SandboxWorkbench,
|
|
@@ -421,6 +461,17 @@ export {
|
|
|
421
461
|
SelectValue,
|
|
422
462
|
SessionActivityMonitor,
|
|
423
463
|
SessionSidebar,
|
|
464
|
+
Sidebar,
|
|
465
|
+
SidebarContent,
|
|
466
|
+
SidebarDropZone,
|
|
467
|
+
SidebarPanel,
|
|
468
|
+
SidebarPanelContent,
|
|
469
|
+
SidebarPanelHeader,
|
|
470
|
+
SidebarProvider,
|
|
471
|
+
SidebarRail,
|
|
472
|
+
SidebarRailFooter,
|
|
473
|
+
SidebarRailHeader,
|
|
474
|
+
SidebarRailNav,
|
|
424
475
|
Skeleton,
|
|
425
476
|
SkeletonCard,
|
|
426
477
|
SkeletonTable,
|
|
@@ -450,6 +501,7 @@ export {
|
|
|
450
501
|
Textarea,
|
|
451
502
|
ThemeToggle,
|
|
452
503
|
ThinkingIndicator,
|
|
504
|
+
TiptapEditor,
|
|
453
505
|
ToastContainer,
|
|
454
506
|
ToastProvider,
|
|
455
507
|
ToolCallFeed,
|
|
@@ -479,7 +531,13 @@ export {
|
|
|
479
531
|
useApiKey,
|
|
480
532
|
useAuth,
|
|
481
533
|
useAutoScroll,
|
|
534
|
+
useAwareness,
|
|
535
|
+
useCollaboratorPresence,
|
|
536
|
+
useCollaborators,
|
|
537
|
+
useDocumentChanges,
|
|
482
538
|
useDropdownMenu,
|
|
539
|
+
useEditorConnection,
|
|
540
|
+
useEditorContext,
|
|
483
541
|
usePtySession,
|
|
484
542
|
useRealtimeSession,
|
|
485
543
|
useRunCollapseState,
|
|
@@ -487,8 +545,10 @@ export {
|
|
|
487
545
|
useSSEStream,
|
|
488
546
|
useSdkSession,
|
|
489
547
|
useSessionStream,
|
|
548
|
+
useSidebar,
|
|
490
549
|
useSidecarAuth,
|
|
491
550
|
useTheme,
|
|
492
551
|
useToast,
|
|
493
|
-
useToolCallStream
|
|
552
|
+
useToolCallStream,
|
|
553
|
+
useYjsState
|
|
494
554
|
};
|
package/dist/primitives.d.ts
CHANGED
|
@@ -274,4 +274,23 @@ interface UploadProgressProps {
|
|
|
274
274
|
}
|
|
275
275
|
declare function UploadProgress({ files, onRemove, onRetry, className }: UploadProgressProps): react_jsx_runtime.JSX.Element | null;
|
|
276
276
|
|
|
277
|
-
|
|
277
|
+
interface SidebarDropZoneProps {
|
|
278
|
+
/** Called with dropped files */
|
|
279
|
+
onDrop: (files: File[]) => void;
|
|
280
|
+
/** Accepted file types (e.g. ".pdf,.csv") */
|
|
281
|
+
accept?: string;
|
|
282
|
+
/** Whether drop zone is active */
|
|
283
|
+
disabled?: boolean;
|
|
284
|
+
/** Title shown in the drop zone */
|
|
285
|
+
title?: string;
|
|
286
|
+
/** Description shown below the title */
|
|
287
|
+
description?: string;
|
|
288
|
+
/** Custom icon (replaces default upload icon) */
|
|
289
|
+
icon?: ReactNode;
|
|
290
|
+
/** Always visible (not just on drag). Useful as a persistent upload area. */
|
|
291
|
+
persistent?: boolean;
|
|
292
|
+
className?: string;
|
|
293
|
+
}
|
|
294
|
+
declare function SidebarDropZone({ onDrop, accept, disabled, title, description, icon, persistent, className, }: SidebarDropZoneProps): react_jsx_runtime.JSX.Element;
|
|
295
|
+
|
|
296
|
+
export { Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropZone, type DropZoneProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, Input, type InputProps, Label, Logo, type LogoProps, Progress, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SidebarDropZone, type SidebarDropZoneProps, Skeleton, SkeletonCard, SkeletonTable, StatCard, type StatCardProps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TangleKnot, TerminalCursor, TerminalDisplay, TerminalInput, TerminalLine, Textarea, type TextareaProps, type Toast, ToastContainer, ToastProvider, type UploadFile, UploadProgress, type UploadProgressProps, badgeVariants, useToast };
|
package/dist/primitives.js
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
SelectSeparator,
|
|
12
12
|
SelectTrigger,
|
|
13
13
|
SelectValue,
|
|
14
|
+
SidebarDropZone,
|
|
14
15
|
StatCard,
|
|
15
16
|
Switch,
|
|
16
17
|
TerminalCursor,
|
|
@@ -21,12 +22,7 @@ import {
|
|
|
21
22
|
ToastProvider,
|
|
22
23
|
UploadProgress,
|
|
23
24
|
useToast
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import {
|
|
26
|
-
Avatar,
|
|
27
|
-
AvatarFallback,
|
|
28
|
-
AvatarImage
|
|
29
|
-
} from "./chunk-B26TQ7SA.js";
|
|
25
|
+
} from "./chunk-SSKVYXCR.js";
|
|
30
26
|
import {
|
|
31
27
|
Dialog,
|
|
32
28
|
DialogClose,
|
|
@@ -65,6 +61,9 @@ import {
|
|
|
65
61
|
TangleKnot
|
|
66
62
|
} from "./chunk-OKCIKTXQ.js";
|
|
67
63
|
import {
|
|
64
|
+
Avatar,
|
|
65
|
+
AvatarFallback,
|
|
66
|
+
AvatarImage,
|
|
68
67
|
DropdownMenu,
|
|
69
68
|
DropdownMenuCheckboxItem,
|
|
70
69
|
DropdownMenuContent,
|
|
@@ -80,7 +79,7 @@ import {
|
|
|
80
79
|
DropdownMenuSubContent,
|
|
81
80
|
DropdownMenuSubTrigger,
|
|
82
81
|
DropdownMenuTrigger
|
|
83
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-IW2JZCOC.js";
|
|
84
83
|
import {
|
|
85
84
|
Progress,
|
|
86
85
|
Skeleton,
|
|
@@ -155,6 +154,7 @@ export {
|
|
|
155
154
|
SelectSeparator,
|
|
156
155
|
SelectTrigger,
|
|
157
156
|
SelectValue,
|
|
157
|
+
SidebarDropZone,
|
|
158
158
|
Skeleton,
|
|
159
159
|
SkeletonCard,
|
|
160
160
|
SkeletonTable,
|
package/dist/workspace.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
export { a as ArtifactPane, A as ArtifactPaneProps } from './artifact-pane-Bh45Ssco.js';
|
|
4
4
|
import { F as FileNode, f as FileTreeVisibilityOptions, a as FileTabData } from './file-tabs-BLfxfmAH.js';
|
|
5
5
|
import { S as SessionProjectKey, f as ActiveSessionStatus, e as ActiveSessionRecord } from './active-sessions-store-CeOmXgv5.js';
|
|
6
|
-
import { a as ChatContainerProps } from './chat-container-
|
|
6
|
+
import { a as ChatContainerProps } from './chat-container-Cg-GwyiK.js';
|
|
7
7
|
import { OpenUIComponentNode, OpenUIAction } from './openui.js';
|
|
8
8
|
import 'nanostores';
|
|
9
9
|
import './parts-CyGkM6Fp.js';
|
|
@@ -40,6 +40,8 @@ interface WorkspaceLayoutProps {
|
|
|
40
40
|
defaultLeftWidth?: number;
|
|
41
41
|
/** Default right panel width in px */
|
|
42
42
|
defaultRightWidth?: number;
|
|
43
|
+
/** Default bottom panel height in px */
|
|
44
|
+
defaultBottomHeight?: number;
|
|
43
45
|
/** Minimum left panel width in px */
|
|
44
46
|
minLeftWidth?: number;
|
|
45
47
|
/** Maximum left panel width in px */
|
|
@@ -48,6 +50,10 @@ interface WorkspaceLayoutProps {
|
|
|
48
50
|
minRightWidth?: number;
|
|
49
51
|
/** Maximum right panel width in px */
|
|
50
52
|
maxRightWidth?: number;
|
|
53
|
+
/** Minimum bottom panel height in px */
|
|
54
|
+
minBottomHeight?: number;
|
|
55
|
+
/** Maximum bottom panel height in px */
|
|
56
|
+
maxBottomHeight?: number;
|
|
51
57
|
/** Persist panel state and sizes in localStorage */
|
|
52
58
|
persistenceKey?: string;
|
|
53
59
|
/** Disable resize handles */
|
|
@@ -64,7 +70,7 @@ interface WorkspaceLayoutProps {
|
|
|
64
70
|
bottomLabel?: string;
|
|
65
71
|
className?: string;
|
|
66
72
|
}
|
|
67
|
-
declare function WorkspaceLayout({ left, leftHeader, center, centerHeader, centerFooter, right, rightHeader, bottom, bottomHeader, defaultLeftOpen, defaultRightOpen, defaultBottomOpen, defaultLeftWidth, defaultRightWidth, minLeftWidth, maxLeftWidth, minRightWidth, maxRightWidth, persistenceKey, resizable, theme, density, leftLabel, rightLabel, bottomLabel, className, }: WorkspaceLayoutProps): react_jsx_runtime.JSX.Element;
|
|
73
|
+
declare function WorkspaceLayout({ left, leftHeader, center, centerHeader, centerFooter, right, rightHeader, bottom, bottomHeader, defaultLeftOpen, defaultRightOpen, defaultBottomOpen, defaultLeftWidth, defaultRightWidth, defaultBottomHeight, minLeftWidth, maxLeftWidth, minRightWidth, maxRightWidth, minBottomHeight, maxBottomHeight, persistenceKey, resizable, theme, density, leftLabel, rightLabel, bottomLabel, className, }: WorkspaceLayoutProps): react_jsx_runtime.JSX.Element;
|
|
68
74
|
|
|
69
75
|
interface DirectoryPaneProps {
|
|
70
76
|
root: FileNode;
|
package/dist/workspace.js
CHANGED
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
StatusBar,
|
|
11
11
|
TerminalPanel,
|
|
12
12
|
WorkspaceLayout
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-DQYODCBN.js";
|
|
14
14
|
import "./chunk-OEX7NZE3.js";
|
|
15
15
|
import "./chunk-MUOL44AE.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-GVUW4VDD.js";
|
|
17
17
|
import "./chunk-CNWVHQFY.js";
|
|
18
18
|
import "./chunk-72UEKFZ2.js";
|
|
19
19
|
import "./chunk-HRMUF35V.js";
|
|
@@ -21,7 +21,7 @@ import "./chunk-CJ2RYVZH.js";
|
|
|
21
21
|
import "./chunk-BX6AQMUS.js";
|
|
22
22
|
import "./chunk-YDBXQQLC.js";
|
|
23
23
|
import "./chunk-TQN3VR4F.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-HYLTXGOI.js";
|
|
25
25
|
import {
|
|
26
26
|
ArtifactPane
|
|
27
27
|
} from "./chunk-W4LM3QYZ.js";
|
package/package.json
CHANGED