@tscircuit/runframe 0.0.370 → 0.0.372
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/{chunk-MAIBX4W6.js → chunk-ZHZYFWBK.js} +39 -57
- package/dist/preview.js +1 -1
- package/dist/runner.js +209 -110
- package/dist/standalone-preview.min.js +652 -647
- package/dist/standalone.min.js +708 -703
- package/package.json +3 -2
|
@@ -1039,7 +1039,7 @@ var RenderLogViewer = ({
|
|
|
1039
1039
|
};
|
|
1040
1040
|
|
|
1041
1041
|
// package.json
|
|
1042
|
-
var version = "0.0.
|
|
1042
|
+
var version = "0.0.371";
|
|
1043
1043
|
|
|
1044
1044
|
// lib/components/CircuitJsonPreview/CircuitJsonPreview.tsx
|
|
1045
1045
|
import { jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
@@ -1563,14 +1563,14 @@ var useRunFrameStore = create()(
|
|
|
1563
1563
|
)
|
|
1564
1564
|
);
|
|
1565
1565
|
|
|
1566
|
-
// lib/components/ui/
|
|
1566
|
+
// lib/components/ui/dialog.tsx
|
|
1567
1567
|
import * as React6 from "react";
|
|
1568
|
-
import * as
|
|
1568
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
1569
1569
|
import { jsx as jsx17, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1570
|
-
var
|
|
1571
|
-
var
|
|
1572
|
-
var
|
|
1573
|
-
|
|
1570
|
+
var Dialog = DialogPrimitive.Root;
|
|
1571
|
+
var DialogPortal = DialogPrimitive.Portal;
|
|
1572
|
+
var DialogOverlay = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx17(
|
|
1573
|
+
DialogPrimitive.Overlay,
|
|
1574
1574
|
{
|
|
1575
1575
|
className: cn(
|
|
1576
1576
|
"rf-fixed rf-inset-0 rf-z-50 rf-bg-black/80 data-[state=open]:rf-animate-in data-[state=closed]:rf-animate-out data-[state=closed]:rf-fade-out-0 data-[state=open]:rf-fade-in-0",
|
|
@@ -1580,23 +1580,24 @@ var AlertDialogOverlay = React6.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1580
1580
|
ref
|
|
1581
1581
|
}
|
|
1582
1582
|
));
|
|
1583
|
-
|
|
1584
|
-
var
|
|
1585
|
-
/* @__PURE__ */ jsx17(
|
|
1583
|
+
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
1584
|
+
var DialogContent = React6.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs13(DialogPortal, { children: [
|
|
1585
|
+
/* @__PURE__ */ jsx17(DialogOverlay, {}),
|
|
1586
1586
|
/* @__PURE__ */ jsx17(
|
|
1587
|
-
|
|
1587
|
+
DialogPrimitive.Content,
|
|
1588
1588
|
{
|
|
1589
1589
|
ref,
|
|
1590
1590
|
className: cn(
|
|
1591
1591
|
"rf-fixed rf-left-[50%] rf-top-[50%] rf-z-50 rf-grid rf-w-full rf-max-w-lg rf-translate-x-[-50%] rf-translate-y-[-50%] rf-gap-4 rf-border rf-border-zinc-200 rf-bg-white rf-p-6 rf-shadow-lg rf-duration-200 data-[state=open]:rf-animate-in data-[state=closed]:rf-animate-out data-[state=closed]:rf-fade-out-0 data-[state=open]:rf-fade-in-0 data-[state=closed]:rf-zoom-out-95 data-[state=open]:rf-zoom-in-95 data-[state=closed]:rf-slide-out-to-left-1/2 data-[state=closed]:rf-slide-out-to-top-[48%] data-[state=open]:rf-slide-in-from-left-1/2 data-[state=open]:rf-slide-in-from-top-[48%] sm:rf-rounded-lg dark:rf-border-zinc-800 dark:rf-bg-zinc-950",
|
|
1592
1592
|
className
|
|
1593
1593
|
),
|
|
1594
|
-
...props
|
|
1594
|
+
...props,
|
|
1595
|
+
children
|
|
1595
1596
|
}
|
|
1596
1597
|
)
|
|
1597
1598
|
] }));
|
|
1598
|
-
|
|
1599
|
-
var
|
|
1599
|
+
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
1600
|
+
var DialogHeader = ({
|
|
1600
1601
|
className,
|
|
1601
1602
|
...props
|
|
1602
1603
|
}) => /* @__PURE__ */ jsx17(
|
|
@@ -1609,8 +1610,8 @@ var AlertDialogHeader = ({
|
|
|
1609
1610
|
...props
|
|
1610
1611
|
}
|
|
1611
1612
|
);
|
|
1612
|
-
|
|
1613
|
-
var
|
|
1613
|
+
DialogHeader.displayName = "DialogHeader";
|
|
1614
|
+
var DialogFooter = ({
|
|
1614
1615
|
className,
|
|
1615
1616
|
...props
|
|
1616
1617
|
}) => /* @__PURE__ */ jsx17(
|
|
@@ -1623,18 +1624,18 @@ var AlertDialogFooter = ({
|
|
|
1623
1624
|
...props
|
|
1624
1625
|
}
|
|
1625
1626
|
);
|
|
1626
|
-
|
|
1627
|
-
var
|
|
1628
|
-
|
|
1627
|
+
DialogFooter.displayName = "DialogFooter";
|
|
1628
|
+
var DialogTitle = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx17(
|
|
1629
|
+
DialogPrimitive.Title,
|
|
1629
1630
|
{
|
|
1630
1631
|
ref,
|
|
1631
1632
|
className: cn("rf-text-lg rf-font-semibold", className),
|
|
1632
1633
|
...props
|
|
1633
1634
|
}
|
|
1634
1635
|
));
|
|
1635
|
-
|
|
1636
|
-
var
|
|
1637
|
-
|
|
1636
|
+
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
1637
|
+
var DialogDescription = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx17(
|
|
1638
|
+
DialogPrimitive.Description,
|
|
1638
1639
|
{
|
|
1639
1640
|
ref,
|
|
1640
1641
|
className: cn(
|
|
@@ -1644,29 +1645,7 @@ var AlertDialogDescription = React6.forwardRef(({ className, ...props }, ref) =>
|
|
|
1644
1645
|
...props
|
|
1645
1646
|
}
|
|
1646
1647
|
));
|
|
1647
|
-
|
|
1648
|
-
var AlertDialogAction = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx17(
|
|
1649
|
-
AlertDialogPrimitive.Action,
|
|
1650
|
-
{
|
|
1651
|
-
ref,
|
|
1652
|
-
className: cn(buttonVariants(), className),
|
|
1653
|
-
...props
|
|
1654
|
-
}
|
|
1655
|
-
));
|
|
1656
|
-
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
1657
|
-
var AlertDialogCancel = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx17(
|
|
1658
|
-
AlertDialogPrimitive.Cancel,
|
|
1659
|
-
{
|
|
1660
|
-
ref,
|
|
1661
|
-
className: cn(
|
|
1662
|
-
buttonVariants({ variant: "outline" }),
|
|
1663
|
-
"rf-mt-2 sm:rf-mt-0",
|
|
1664
|
-
className
|
|
1665
|
-
),
|
|
1666
|
-
...props
|
|
1667
|
-
}
|
|
1668
|
-
));
|
|
1669
|
-
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
1648
|
+
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
1670
1649
|
|
|
1671
1650
|
// lib/components/OrderDialog/OrderDialog.tsx
|
|
1672
1651
|
import { QueryClient, QueryClientProvider } from "react-query";
|
|
@@ -1929,13 +1908,22 @@ var OrderDialog = ({
|
|
|
1929
1908
|
circuitJson,
|
|
1930
1909
|
packageReleaseId
|
|
1931
1910
|
}) => {
|
|
1932
|
-
return /* @__PURE__ */ jsx20(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx20(
|
|
1933
|
-
|
|
1911
|
+
return /* @__PURE__ */ jsx20(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx20(
|
|
1912
|
+
Dialog,
|
|
1934
1913
|
{
|
|
1935
|
-
|
|
1936
|
-
|
|
1914
|
+
open: isOpen,
|
|
1915
|
+
onOpenChange: (open) => {
|
|
1916
|
+
if (!open) onClose();
|
|
1917
|
+
},
|
|
1918
|
+
children: /* @__PURE__ */ jsx20(DialogContent, { className: "!rf-max-w-[660px] !rf-p-0", children: /* @__PURE__ */ jsx20("div", { className: "rf-relative rf-w-full", children: stage === "initial" && /* @__PURE__ */ jsx20(
|
|
1919
|
+
InitialOrderScreen,
|
|
1920
|
+
{
|
|
1921
|
+
onCancel: onClose,
|
|
1922
|
+
packageReleaseId: packageReleaseId ?? ""
|
|
1923
|
+
}
|
|
1924
|
+
) }) })
|
|
1937
1925
|
}
|
|
1938
|
-
) })
|
|
1926
|
+
) });
|
|
1939
1927
|
};
|
|
1940
1928
|
|
|
1941
1929
|
// lib/components/OrderDialog/CliOrderDialog.tsx
|
|
@@ -2000,6 +1988,7 @@ export {
|
|
|
2000
1988
|
Tabs,
|
|
2001
1989
|
TabsList,
|
|
2002
1990
|
TabsTrigger,
|
|
1991
|
+
buttonVariants,
|
|
2003
1992
|
Button,
|
|
2004
1993
|
DropdownMenu,
|
|
2005
1994
|
DropdownMenuTrigger,
|
|
@@ -2016,13 +2005,6 @@ export {
|
|
|
2016
2005
|
debug_default,
|
|
2017
2006
|
API_BASE,
|
|
2018
2007
|
useRunFrameStore,
|
|
2019
|
-
AlertDialog,
|
|
2020
|
-
AlertDialogContent,
|
|
2021
|
-
AlertDialogHeader,
|
|
2022
|
-
AlertDialogFooter,
|
|
2023
|
-
AlertDialogTitle,
|
|
2024
|
-
AlertDialogDescription,
|
|
2025
|
-
AlertDialogCancel,
|
|
2026
2008
|
toast,
|
|
2027
2009
|
useOrderDialogCli,
|
|
2028
2010
|
useOrderDialog,
|