@tscircuit/runframe 0.0.448 → 0.0.449

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.
@@ -392,6 +392,7 @@ var ErrorTabContent = ({
392
392
  /* @__PURE__ */ jsx6(
393
393
  "button",
394
394
  {
395
+ type: "button",
395
396
  className: "rf-p-1 rf-rounded-sm rf-transition-colors",
396
397
  onClick: handlePrev,
397
398
  disabled: currentErrorIndex === 0,
@@ -401,6 +402,7 @@ var ErrorTabContent = ({
401
402
  /* @__PURE__ */ jsx6(
402
403
  "button",
403
404
  {
405
+ type: "button",
404
406
  className: "rf-p-1 rf-rounded-sm rf-transition-colors",
405
407
  onClick: handleNext,
406
408
  disabled: currentErrorIndex === circuitJsonErrors.length - 1,
@@ -1092,7 +1094,7 @@ var RenderLogViewer = ({
1092
1094
  };
1093
1095
 
1094
1096
  // package.json
1095
- var version = "0.0.447";
1097
+ var version = "0.0.448";
1096
1098
 
1097
1099
  // lib/components/CircuitJsonPreview/CircuitJsonPreview.tsx
1098
1100
  import { jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
@@ -1137,7 +1139,9 @@ var CircuitJsonPreview = ({
1137
1139
  useStyles();
1138
1140
  const circuitJsonErrors = useMemo(() => {
1139
1141
  if (!circuitJson) return null;
1140
- return circuitJson.filter((e) => e && "error_type" in e);
1142
+ return circuitJson.filter(
1143
+ (e) => e && "error_type" in e || e.type.includes("error")
1144
+ );
1141
1145
  }, [circuitJson]);
1142
1146
  const [activeTab, setActiveTabState] = useState5(
1143
1147
  defaultActiveTab ?? "pcb"
@@ -1431,7 +1435,7 @@ var CircuitJsonPreview = ({
1431
1435
  "rf-overflow-auto",
1432
1436
  isFullScreen ? "rf-h-[calc(100vh-96px)]" : "rf-h-[620px]"
1433
1437
  ),
1434
- children: Array.isArray(circuitJsonErrors) && circuitJsonErrors.length > 0 || errorMessage ? /* @__PURE__ */ jsx16(
1438
+ children: circuitJson ? /* @__PURE__ */ jsx16(
1435
1439
  ErrorTabContent,
1436
1440
  {
1437
1441
  code,
package/dist/preview.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  linkify,
9
9
  useOrderDialog,
10
10
  useOrderDialogCli
11
- } from "./chunk-KJJCHX5J.js";
11
+ } from "./chunk-QMYTIAZ7.js";
12
12
  export {
13
13
  BomTable,
14
14
  CadViewer,
package/dist/runner.js CHANGED
@@ -26,7 +26,7 @@ import {
26
26
  useOrderDialog,
27
27
  useOrderDialogCli,
28
28
  useRunFrameStore
29
- } from "./chunk-KJJCHX5J.js";
29
+ } from "./chunk-QMYTIAZ7.js";
30
30
 
31
31
  // lib/components/RunFrame/RunFrame.tsx
32
32
  import { createCircuitWebWorker } from "@tscircuit/eval/worker";