@tscircuit/runframe 0.0.216 → 0.0.218
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-TJRXVV7G.js → chunk-K22H4WSZ.js} +52 -25
- package/dist/preview.js +1 -1
- package/dist/runner.js +1 -1
- package/dist/standalone-preview.min.js +479 -479
- package/dist/standalone.min.js +490 -490
- package/package.json +2 -2
|
@@ -1061,20 +1061,29 @@ var CircuitJsonPreview = ({
|
|
|
1061
1061
|
"rf-overflow-hidden",
|
|
1062
1062
|
isFullScreen ? "rf-h-[calc(100vh-96px)]" : "rf-h-[620px]"
|
|
1063
1063
|
),
|
|
1064
|
-
children: /* @__PURE__ */ jsx15(
|
|
1065
|
-
|
|
1064
|
+
children: /* @__PURE__ */ jsx15(
|
|
1065
|
+
ErrorBoundary,
|
|
1066
1066
|
{
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1067
|
+
fallbackRender: ({ error }) => /* @__PURE__ */ jsx15("div", { className: "rf-mt-4 rf-bg-red-50 rf-rounded-md rf-border rf-border-red-200", children: /* @__PURE__ */ jsxs11("div", { className: "rf-p-4", children: [
|
|
1068
|
+
/* @__PURE__ */ jsx15("h3", { className: "rf-text-lg rf-font-semibold rf-text-red-800 rf-mb-3", children: "Error loading PCB viewer" }),
|
|
1069
|
+
/* @__PURE__ */ jsx15("p", { className: "rf-text-xs rf-font-mono rf-whitespace-pre-wrap rf-text-red-600 rf-mt-2", children: error?.message || "An unknown error occurred" })
|
|
1070
|
+
] }) }),
|
|
1071
|
+
children: circuitJson ? /* @__PURE__ */ jsx15(
|
|
1072
|
+
PcbViewerWithContainerHeight,
|
|
1073
|
+
{
|
|
1074
|
+
disableAutoFocus: true,
|
|
1075
|
+
focusOnHover: false,
|
|
1076
|
+
circuitJson,
|
|
1077
|
+
debugGraphics: autoroutingGraphics,
|
|
1078
|
+
containerClassName: cn(
|
|
1079
|
+
"rf-h-full rf-w-full",
|
|
1080
|
+
isFullScreen ? "rf-min-h-[calc(100vh-240px)]" : "rf-min-h-[620px]"
|
|
1081
|
+
)
|
|
1082
|
+
},
|
|
1083
|
+
circuitJsonKey
|
|
1084
|
+
) : /* @__PURE__ */ jsx15(PreviewEmptyState_default, { onRunClicked })
|
|
1085
|
+
}
|
|
1086
|
+
)
|
|
1078
1087
|
}
|
|
1079
1088
|
) }),
|
|
1080
1089
|
/* @__PURE__ */ jsx15(TabsContent, { value: "assembly", children: /* @__PURE__ */ jsx15(
|
|
@@ -1104,19 +1113,28 @@ var CircuitJsonPreview = ({
|
|
|
1104
1113
|
"rf-overflow-auto",
|
|
1105
1114
|
isFullScreen ? "rf-h-[calc(100vh-96px)]" : "rf-h-[620px]"
|
|
1106
1115
|
),
|
|
1107
|
-
children: /* @__PURE__ */ jsx15(
|
|
1108
|
-
|
|
1116
|
+
children: /* @__PURE__ */ jsx15(
|
|
1117
|
+
ErrorBoundary,
|
|
1109
1118
|
{
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
},
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1119
|
+
fallbackRender: ({ error }) => /* @__PURE__ */ jsx15("div", { className: "rf-mt-4 rf-bg-red-50 rf-rounded-md rf-border rf-border-red-200", children: /* @__PURE__ */ jsxs11("div", { className: "rf-p-4", children: [
|
|
1120
|
+
/* @__PURE__ */ jsx15("h3", { className: "rf-text-lg rf-font-semibold rf-text-red-800 rf-mb-3", children: "Error loading Schematic" }),
|
|
1121
|
+
/* @__PURE__ */ jsx15("p", { className: "rf-text-xs rf-font-mono rf-whitespace-pre-wrap rf-text-red-600 rf-mt-2", children: error?.message || "An unknown error occurred" })
|
|
1122
|
+
] }) }),
|
|
1123
|
+
children: circuitJson ? /* @__PURE__ */ jsx15(
|
|
1124
|
+
SchematicViewer,
|
|
1125
|
+
{
|
|
1126
|
+
circuitJson,
|
|
1127
|
+
containerStyle: {
|
|
1128
|
+
height: "100%"
|
|
1129
|
+
},
|
|
1130
|
+
editingEnabled: true,
|
|
1131
|
+
onEditEvent: (ee) => onEditEvent?.(ee),
|
|
1132
|
+
editEvents,
|
|
1133
|
+
debugGrid: showSchematicDebugGrid
|
|
1134
|
+
}
|
|
1135
|
+
) : /* @__PURE__ */ jsx15(PreviewEmptyState_default, { onRunClicked })
|
|
1118
1136
|
}
|
|
1119
|
-
)
|
|
1137
|
+
)
|
|
1120
1138
|
}
|
|
1121
1139
|
) }),
|
|
1122
1140
|
/* @__PURE__ */ jsx15(TabsContent, { value: "cad", children: /* @__PURE__ */ jsx15(
|
|
@@ -1142,7 +1160,16 @@ var CircuitJsonPreview = ({
|
|
|
1142
1160
|
"rf-overflow-auto",
|
|
1143
1161
|
isFullScreen ? "rf-h-[calc(100vh-96px)]" : "rf-h-[620px]"
|
|
1144
1162
|
),
|
|
1145
|
-
children: /* @__PURE__ */ jsx15(
|
|
1163
|
+
children: /* @__PURE__ */ jsx15(
|
|
1164
|
+
ErrorBoundary,
|
|
1165
|
+
{
|
|
1166
|
+
fallbackRender: ({ error }) => /* @__PURE__ */ jsx15("div", { className: "rf-mt-4 rf-bg-red-50 rf-rounded-md rf-border rf-border-red-200", children: /* @__PURE__ */ jsxs11("div", { className: "rf-p-4", children: [
|
|
1167
|
+
/* @__PURE__ */ jsx15("h3", { className: "rf-text-lg rf-font-semibold rf-text-red-800 rf-mb-3", children: "Error loading Bill of Materials" }),
|
|
1168
|
+
/* @__PURE__ */ jsx15("p", { className: "rf-text-xs rf-font-mono rf-whitespace-pre-wrap rf-text-red-600 rf-mt-2", children: error?.message || "An unknown error occurred" })
|
|
1169
|
+
] }) }),
|
|
1170
|
+
children: circuitJson ? /* @__PURE__ */ jsx15(BomTable, { circuitJson }) : /* @__PURE__ */ jsx15(PreviewEmptyState_default, { onRunClicked })
|
|
1171
|
+
}
|
|
1172
|
+
)
|
|
1146
1173
|
}
|
|
1147
1174
|
) }),
|
|
1148
1175
|
/* @__PURE__ */ jsx15(TabsContent, { value: "circuit_json", children: /* @__PURE__ */ jsx15(
|
package/dist/preview.js
CHANGED
package/dist/runner.js
CHANGED