@tscircuit/runframe 0.0.215 → 0.0.217
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-HF6ZHIWQ.js → chunk-K22H4WSZ.js} +52 -23
- package/dist/preview.js +1 -1
- package/dist/runner.js +1 -1
- package/dist/standalone-preview.min.js +205 -205
- package/dist/standalone.min.js +174 -174
- package/package.json +1 -1
|
@@ -1061,18 +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
|
-
|
|
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
|
+
)
|
|
1076
1087
|
}
|
|
1077
1088
|
) }),
|
|
1078
1089
|
/* @__PURE__ */ jsx15(TabsContent, { value: "assembly", children: /* @__PURE__ */ jsx15(
|
|
@@ -1102,19 +1113,28 @@ var CircuitJsonPreview = ({
|
|
|
1102
1113
|
"rf-overflow-auto",
|
|
1103
1114
|
isFullScreen ? "rf-h-[calc(100vh-96px)]" : "rf-h-[620px]"
|
|
1104
1115
|
),
|
|
1105
|
-
children: /* @__PURE__ */ jsx15(
|
|
1106
|
-
|
|
1116
|
+
children: /* @__PURE__ */ jsx15(
|
|
1117
|
+
ErrorBoundary,
|
|
1107
1118
|
{
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
},
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
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 })
|
|
1116
1136
|
}
|
|
1117
|
-
)
|
|
1137
|
+
)
|
|
1118
1138
|
}
|
|
1119
1139
|
) }),
|
|
1120
1140
|
/* @__PURE__ */ jsx15(TabsContent, { value: "cad", children: /* @__PURE__ */ jsx15(
|
|
@@ -1140,7 +1160,16 @@ var CircuitJsonPreview = ({
|
|
|
1140
1160
|
"rf-overflow-auto",
|
|
1141
1161
|
isFullScreen ? "rf-h-[calc(100vh-96px)]" : "rf-h-[620px]"
|
|
1142
1162
|
),
|
|
1143
|
-
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
|
+
)
|
|
1144
1173
|
}
|
|
1145
1174
|
) }),
|
|
1146
1175
|
/* @__PURE__ */ jsx15(TabsContent, { value: "circuit_json", children: /* @__PURE__ */ jsx15(
|
package/dist/preview.js
CHANGED
package/dist/runner.js
CHANGED