@tscircuit/runframe 0.0.222 → 0.0.224

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.
@@ -877,6 +877,9 @@ var RenderLogViewer = ({
877
877
  ] });
878
878
  };
879
879
 
880
+ // package.json
881
+ var version = "0.0.223";
882
+
880
883
  // lib/components/CircuitJsonPreview/CircuitJsonPreview.tsx
881
884
  import { jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
882
885
  var dropdownMenuItems = [
@@ -1020,26 +1023,41 @@ var CircuitJsonPreview = ({
1020
1023
  /* @__PURE__ */ jsx15(EllipsisIcon, { className: "rf-w-4 rf-h-4" }),
1021
1024
  errorMessage && /* @__PURE__ */ jsx15("span", { className: "rf-inline-flex rf-absolute rf-top-[6px] rf-right-[4px] rf-items-center rf-justify-center rf-w-1 rf-h-1 rf-ml-2 rf-text-[8px] rf-font-bold rf-text-white rf-bg-red-500 rf-rounded-full" })
1022
1025
  ] }) }),
1023
- /* @__PURE__ */ jsx15(DropdownMenuContent, { className: "rf-*:text-xs", children: dropdownMenuItems.map((item) => /* @__PURE__ */ jsxs11(
1024
- DropdownMenuItem,
1025
- {
1026
- onSelect: () => setActiveTab(item),
1027
- children: [
1028
- /* @__PURE__ */ jsx15(
1029
- CheckIcon,
1030
- {
1031
- className: cn(
1032
- "rf-w-3 rf-h-3 rf-mr-2",
1033
- activeTab !== item && "rf-invisible"
1034
- )
1035
- }
1036
- ),
1037
- /* @__PURE__ */ jsx15("div", { className: "rf-pr-2", children: capitalizeFirstLetters(item) }),
1038
- item === "errors" && errorMessage && /* @__PURE__ */ jsx15("span", { className: "rf-inline-flex rf-items-center rf-justify-center rf-w-3 rf-h-3 rf-ml-2 rf-text-[8px] rf-font-bold rf-text-white rf-bg-red-500 rf-rounded-full", children: "1" })
1039
- ]
1040
- },
1041
- item
1042
- )) })
1026
+ /* @__PURE__ */ jsxs11(DropdownMenuContent, { className: "rf-*:text-xs", children: [
1027
+ dropdownMenuItems.map((item) => /* @__PURE__ */ jsxs11(
1028
+ DropdownMenuItem,
1029
+ {
1030
+ onSelect: () => setActiveTab(item),
1031
+ children: [
1032
+ /* @__PURE__ */ jsx15(
1033
+ CheckIcon,
1034
+ {
1035
+ className: cn(
1036
+ "rf-w-3 rf-h-3 rf-mr-2",
1037
+ activeTab !== item && "rf-invisible"
1038
+ )
1039
+ }
1040
+ ),
1041
+ /* @__PURE__ */ jsx15("div", { className: "rf-pr-2", children: capitalizeFirstLetters(item) }),
1042
+ item === "errors" && errorMessage && /* @__PURE__ */ jsx15("span", { className: "rf-inline-flex rf-items-center rf-justify-center rf-w-3 rf-h-3 rf-ml-2 rf-text-[8px] rf-font-bold rf-text-white rf-bg-red-500 rf-rounded-full", children: "1" })
1043
+ ]
1044
+ },
1045
+ item
1046
+ )),
1047
+ /* @__PURE__ */ jsx15(
1048
+ DropdownMenuItem,
1049
+ {
1050
+ disabled: true,
1051
+ className: "rf-opacity-60 rf-cursor-default rf-select-none",
1052
+ children: /* @__PURE__ */ jsxs11("div", { className: "rf-pr-2 rf-text-xs rf-text-gray-500", children: [
1053
+ "@tscircuit/runframe@",
1054
+ version.split(".").map(
1055
+ (part, i) => i === 2 ? parseInt(part) + 1 : part
1056
+ ).join(".")
1057
+ ] })
1058
+ }
1059
+ )
1060
+ ] })
1043
1061
  ] })
1044
1062
  ] }),
1045
1063
  showToggleFullScreen && /* @__PURE__ */ jsx15(Button, { onClick: toggleFullScreen, variant: "ghost", children: isFullScreen ? /* @__PURE__ */ jsx15(MinimizeIcon, { size: 16 }) : /* @__PURE__ */ jsx15(FullscreenIcon, { size: 16 }) })
package/dist/preview.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CircuitJsonPreview
3
- } from "./chunk-K22H4WSZ.js";
3
+ } from "./chunk-NOXORUAL.js";
4
4
  export {
5
5
  CircuitJsonPreview
6
6
  };
package/dist/runner.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  DropdownMenuTrigger,
12
12
  buttonVariants,
13
13
  cn
14
- } from "./chunk-K22H4WSZ.js";
14
+ } from "./chunk-NOXORUAL.js";
15
15
 
16
16
  // lib/components/RunFrame/RunFrame.tsx
17
17
  import { createCircuitWebWorker } from "@tscircuit/eval";