@tangle-network/sandbox-ui 0.13.0 → 0.15.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.
Files changed (106) hide show
  1. package/dist/auth.d.ts +1 -74
  2. package/dist/auth.js +1 -4
  3. package/dist/chat.d.ts +1 -136
  4. package/dist/chat.js +2 -15
  5. package/dist/chunk-2BUPSB7O.js +0 -0
  6. package/dist/chunk-3J6FG3FJ.js +18 -0
  7. package/dist/chunk-76IQLPW2.js +206 -0
  8. package/dist/chunk-7ZA5SEK3.js +239 -0
  9. package/dist/{chunk-ESVYBDGA.js → chunk-AG7QDC2Q.js} +182 -2
  10. package/dist/chunk-AHBZCBDO.js +2960 -0
  11. package/dist/chunk-AZ3AWMTM.js +8 -0
  12. package/dist/chunk-CMY7W45U.js +380 -0
  13. package/dist/{chunk-QMU2PWOU.js → chunk-DNZ4DTNA.js} +71 -17
  14. package/dist/chunk-EI44GEQ5.js +6 -0
  15. package/dist/{chunk-5OQ27N57.js → chunk-GPT7VKK6.js} +34 -38
  16. package/dist/chunk-JBGKGLD7.js +16 -0
  17. package/dist/chunk-NJNME4J4.js +14 -0
  18. package/dist/chunk-QPAJR74X.js +20 -0
  19. package/dist/chunk-TK46XFLM.js +28 -0
  20. package/dist/chunk-WID73FPH.js +89 -0
  21. package/dist/chunk-YVXK4XRO.js +30 -0
  22. package/dist/dashboard.d.ts +538 -4
  23. package/dist/dashboard.js +15 -886
  24. package/dist/editor.d.ts +1 -120
  25. package/dist/editor.js +1 -5
  26. package/dist/files.d.ts +1 -129
  27. package/dist/files.js +2 -7
  28. package/dist/globals.css +5 -1265
  29. package/dist/hooks.d.ts +114 -11
  30. package/dist/hooks.js +17 -88
  31. package/dist/index.d.ts +24 -99
  32. package/dist/index.js +247 -252
  33. package/dist/markdown.d.ts +1 -29
  34. package/dist/markdown.js +2 -2
  35. package/dist/openui.d.ts +8 -115
  36. package/dist/openui.js +1 -6
  37. package/dist/pages.d.ts +1 -2
  38. package/dist/pages.js +68 -66
  39. package/dist/primitives.d.ts +14 -49
  40. package/dist/primitives.js +69 -77
  41. package/dist/run.d.ts +1 -14
  42. package/dist/run.js +2 -22
  43. package/dist/sdk-hooks.d.ts +3 -283
  44. package/dist/sdk-hooks.js +10 -14
  45. package/dist/stores.d.ts +2 -14
  46. package/dist/stores.js +11 -39
  47. package/dist/styles.css +5 -1265
  48. package/dist/{usage-chart-CPTcNlGs.d.ts → template-card-UhV3pmRC.d.ts} +16 -1
  49. package/dist/terminal.js +39 -2
  50. package/dist/types.d.ts +11 -8
  51. package/dist/types.js +1 -0
  52. package/dist/utils.d.ts +1 -44
  53. package/dist/utils.js +6 -12
  54. package/dist/workspace.d.ts +5 -10
  55. package/dist/workspace.js +3 -19
  56. package/package.json +23 -54
  57. package/dist/active-sessions-store-CeOmXgv5.d.ts +0 -85
  58. package/dist/artifact-pane-Bh45Ssco.d.ts +0 -24
  59. package/dist/branding-DCi5VEik.d.ts +0 -13
  60. package/dist/button-CMQuQEW_.d.ts +0 -17
  61. package/dist/chat-container-f4yEs6KN.d.ts +0 -106
  62. package/dist/chunk-34A66VBG.js +0 -214
  63. package/dist/chunk-34I7UFSX.js +0 -92
  64. package/dist/chunk-36QY2W5G.js +0 -802
  65. package/dist/chunk-4CLN43XT.js +0 -45
  66. package/dist/chunk-54SQQMMM.js +0 -156
  67. package/dist/chunk-66EZOYZR.js +0 -102
  68. package/dist/chunk-BX6AQMUS.js +0 -183
  69. package/dist/chunk-DI3NZ5ZX.js +0 -192
  70. package/dist/chunk-DPGIXDAI.js +0 -220
  71. package/dist/chunk-DXMIEK4K.js +0 -1426
  72. package/dist/chunk-GSZA3TSY.js +0 -79
  73. package/dist/chunk-HB5Y37YU.js +0 -54
  74. package/dist/chunk-LQNEZDRM.js +0 -109
  75. package/dist/chunk-MA7YKRUP.js +0 -131
  76. package/dist/chunk-MKTSMWVD.js +0 -109
  77. package/dist/chunk-MQXABZTB.js +0 -1348
  78. package/dist/chunk-MT5FJ3ZT.js +0 -186
  79. package/dist/chunk-NKUPJC34.js +0 -2070
  80. package/dist/chunk-OEX7NZE3.js +0 -321
  81. package/dist/chunk-OKLQVY3Y.js +0 -139
  82. package/dist/chunk-Q56BYXQF.js +0 -61
  83. package/dist/chunk-QD4QE5P5.js +0 -40
  84. package/dist/chunk-QDH5GEGY.js +0 -630
  85. package/dist/chunk-QID2OOMG.js +0 -133
  86. package/dist/chunk-RQHJBTEU.js +0 -10
  87. package/dist/chunk-T7HMZEVO.js +0 -216
  88. package/dist/chunk-U6QTHMY6.js +0 -1290
  89. package/dist/chunk-US6JKJKH.js +0 -124
  90. package/dist/chunk-VX3XOUEB.js +0 -63
  91. package/dist/chunk-XLG757B6.js +0 -933
  92. package/dist/chunk-ZMNSRDMH.js +0 -127
  93. package/dist/chunk-ZNCEM5CD.js +0 -316
  94. package/dist/document-editor-pane-A70-EhdQ.d.ts +0 -124
  95. package/dist/document-editor-pane-TLPVRBBU.js +0 -11
  96. package/dist/expanded-tool-detail-Dh99mcbY.d.ts +0 -63
  97. package/dist/file-tabs-BLfxfmAH.d.ts +0 -51
  98. package/dist/parts-CyGkM6Fp.d.ts +0 -50
  99. package/dist/run-CtFZ6s-D.d.ts +0 -41
  100. package/dist/sidebar-drop-zone-tDBsuOH5.d.ts +0 -301
  101. package/dist/sidecar-CFU2W9j1.d.ts +0 -8
  102. package/dist/template-card-BAtvcAkU.d.ts +0 -18
  103. package/dist/tool-call-feed-Bs3MyQMT.d.ts +0 -68
  104. package/dist/tool-display-Ct9nFAzJ.d.ts +0 -32
  105. package/dist/use-sandbox-metrics-B64diPqN.d.ts +0 -141
  106. package/dist/variant-list-BrHYcBCk.d.ts +0 -540
@@ -1,124 +0,0 @@
1
- import {
2
- cn
3
- } from "./chunk-RQHJBTEU.js";
4
-
5
- // src/primitives/dialog.tsx
6
- import * as DialogPrimitive from "@radix-ui/react-dialog";
7
- import { X } from "lucide-react";
8
- import * as React from "react";
9
- import { jsx, jsxs } from "react/jsx-runtime";
10
- var Dialog = DialogPrimitive.Root;
11
- var DialogTrigger = DialogPrimitive.Trigger;
12
- var DialogPortal = DialogPrimitive.Portal;
13
- var DialogClose = DialogPrimitive.Close;
14
- var DialogOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
15
- DialogPrimitive.Overlay,
16
- {
17
- ref,
18
- className: cn(
19
- "fixed inset-0 z-50 bg-black/40",
20
- "data-[state=closed]:animate-out data-[state=open]:animate-in",
21
- "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
22
- className
23
- ),
24
- ...props
25
- }
26
- ));
27
- DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
28
- var DialogContent = React.forwardRef(({ className, children, variant = "default", ...props }, ref) => {
29
- const variants = {
30
- default: "border-border",
31
- sandbox: "border-[var(--border-accent)] shadow-[var(--shadow-accent)]"
32
- };
33
- return /* @__PURE__ */ jsxs(DialogPortal, { children: [
34
- /* @__PURE__ */ jsx(DialogOverlay, {}),
35
- /* @__PURE__ */ jsxs(
36
- DialogPrimitive.Content,
37
- {
38
- ref,
39
- className: cn(
40
- "fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%]",
41
- "gap-4 rounded-lg border bg-card p-6 shadow-lg duration-200",
42
- "data-[state=closed]:animate-out data-[state=open]:animate-in",
43
- "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
44
- "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
45
- "data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]",
46
- "data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",
47
- variants[variant],
48
- className
49
- ),
50
- ...props,
51
- children: [
52
- children,
53
- /* @__PURE__ */ jsxs(DialogPrimitive.Close, { className: "absolute top-4 right-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
54
- /* @__PURE__ */ jsx(X, { className: "h-4 w-4" }),
55
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
56
- ] })
57
- ]
58
- }
59
- )
60
- ] });
61
- });
62
- DialogContent.displayName = DialogPrimitive.Content.displayName;
63
- var DialogHeader = ({
64
- className,
65
- ...props
66
- }) => /* @__PURE__ */ jsx(
67
- "div",
68
- {
69
- className: cn(
70
- "flex flex-col space-y-1.5 text-center sm:text-left",
71
- className
72
- ),
73
- ...props
74
- }
75
- );
76
- DialogHeader.displayName = "DialogHeader";
77
- var DialogFooter = ({
78
- className,
79
- ...props
80
- }) => /* @__PURE__ */ jsx(
81
- "div",
82
- {
83
- className: cn(
84
- "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
85
- className
86
- ),
87
- ...props
88
- }
89
- );
90
- DialogFooter.displayName = "DialogFooter";
91
- var DialogTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
92
- DialogPrimitive.Title,
93
- {
94
- ref,
95
- className: cn(
96
- "font-semibold text-lg leading-none tracking-tight",
97
- className
98
- ),
99
- ...props
100
- }
101
- ));
102
- DialogTitle.displayName = DialogPrimitive.Title.displayName;
103
- var DialogDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
104
- DialogPrimitive.Description,
105
- {
106
- ref,
107
- className: cn("text-muted-foreground text-sm", className),
108
- ...props
109
- }
110
- ));
111
- DialogDescription.displayName = DialogPrimitive.Description.displayName;
112
-
113
- export {
114
- Dialog,
115
- DialogTrigger,
116
- DialogPortal,
117
- DialogClose,
118
- DialogOverlay,
119
- DialogContent,
120
- DialogHeader,
121
- DialogFooter,
122
- DialogTitle,
123
- DialogDescription
124
- };
@@ -1,63 +0,0 @@
1
- import {
2
- cn
3
- } from "./chunk-RQHJBTEU.js";
4
-
5
- // src/dashboard/template-card.tsx
6
- import { ArrowRight } from "lucide-react";
7
- import { jsx, jsxs } from "react/jsx-runtime";
8
- function TemplateCard({ template, onUseTemplate, className }) {
9
- return /* @__PURE__ */ jsxs(
10
- "div",
11
- {
12
- className: cn(
13
- "group relative flex flex-col justify-between rounded-2xl border border-border bg-card p-6 transition-all hover:border-primary/30 hover:shadow-md",
14
- className
15
- ),
16
- children: [
17
- /* @__PURE__ */ jsxs("div", { children: [
18
- /* @__PURE__ */ jsx("div", { className: "mb-4 flex h-12 w-12 items-center justify-center rounded-xl bg-muted border border-border", children: template.icon ?? /* @__PURE__ */ jsx("span", { className: "text-lg font-bold text-primary", children: template.name.charAt(0).toUpperCase() }) }),
19
- /* @__PURE__ */ jsx("h3", { className: "mb-1 text-base font-bold text-foreground", children: template.name }),
20
- /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground leading-relaxed line-clamp-2", children: template.description }),
21
- template.tags && template.tags.length > 0 && /* @__PURE__ */ jsx("div", { className: "mt-3 flex flex-wrap gap-1.5", children: template.tags.map((tag, i) => /* @__PURE__ */ jsx(
22
- "span",
23
- {
24
- className: "rounded-full bg-muted px-2 py-0.5 text-[10px] font-medium text-muted-foreground",
25
- children: tag
26
- },
27
- `${tag}-${i}`
28
- )) })
29
- ] }),
30
- /* @__PURE__ */ jsxs(
31
- "button",
32
- {
33
- type: "button",
34
- onClick: () => onUseTemplate(template.id),
35
- className: "mt-5 inline-flex w-full items-center justify-center gap-2 rounded-xl bg-primary/10 border border-primary/20 px-4 py-2.5 text-sm font-bold text-primary transition-colors hover:bg-primary hover:text-primary-foreground active:scale-[0.98]",
36
- children: [
37
- "Use Template",
38
- /* @__PURE__ */ jsx(ArrowRight, { className: "h-4 w-4 transition-transform group-hover:translate-x-0.5" })
39
- ]
40
- }
41
- )
42
- ]
43
- }
44
- );
45
- }
46
-
47
- // src/dashboard/info-panel.tsx
48
- import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
49
- function InfoPanel({ label, title, description, className }) {
50
- return /* @__PURE__ */ jsxs2("div", { className: cn("rounded-lg bg-[var(--brand-strong)] p-5 text-[var(--brand-strong-text)] relative overflow-hidden", className), children: [
51
- /* @__PURE__ */ jsxs2("div", { className: "relative z-10", children: [
52
- /* @__PURE__ */ jsx2("p", { className: "text-[10px] font-bold uppercase tracking-widest text-[var(--brand-strong-text-dim)]", children: label }),
53
- /* @__PURE__ */ jsx2("h3", { className: "mt-1 text-lg font-bold", children: title }),
54
- /* @__PURE__ */ jsx2("p", { className: "mt-1 text-sm text-[var(--brand-strong-text-muted)]", children: description })
55
- ] }),
56
- /* @__PURE__ */ jsx2("div", { className: "absolute right-0 top-0 h-full w-1/3 bg-white/5 -skew-x-12 translate-x-12 pointer-events-none" })
57
- ] });
58
- }
59
-
60
- export {
61
- TemplateCard,
62
- InfoPanel
63
- };