@tscircuit/runframe 0.0.1350 → 0.0.1351

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.
@@ -1545,7 +1545,7 @@ var useErrorTelemetry = ({
1545
1545
  };
1546
1546
 
1547
1547
  // package.json
1548
- var version = "0.0.1349";
1548
+ var version = "0.0.1350";
1549
1549
  var package_default = {
1550
1550
  name: "@tscircuit/runframe",
1551
1551
  main: "dist/preview.js",
@@ -5078,6 +5078,10 @@ var CircuitJsonPreview = ({
5078
5078
  (e) => e && "warning_type" in e || e.type.includes("warning")
5079
5079
  );
5080
5080
  }, [circuitJson]);
5081
+ const hasSchematicGroup = useMemo9(() => {
5082
+ if (!circuitJson) return true;
5083
+ return circuitJson.some((e) => e.type === "schematic_group");
5084
+ }, [circuitJson]);
5081
5085
  useErrorTelemetry({
5082
5086
  errorMessage,
5083
5087
  errorStack,
@@ -5199,7 +5203,11 @@ var CircuitJsonPreview = ({
5199
5203
  TabsTrigger,
5200
5204
  {
5201
5205
  value: "schematic",
5202
- className: "rf-whitespace-nowrap",
5206
+ className: cn(
5207
+ "rf-whitespace-nowrap",
5208
+ circuitJson && !hasSchematicGroup && "rf-opacity-50"
5209
+ ),
5210
+ disabled: circuitJson ? !hasSchematicGroup : false,
5203
5211
  children: [
5204
5212
  circuitJson && /* @__PURE__ */ jsx37(
5205
5213
  "span",
package/dist/preview.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  linkify,
9
9
  useOrderDialog,
10
10
  useOrderDialogCli
11
- } from "./chunk-DFW6BPEB.js";
11
+ } from "./chunk-QFFTWWHI.js";
12
12
  export {
13
13
  BomTable,
14
14
  CadViewer,
package/dist/runner.js CHANGED
@@ -33,7 +33,7 @@ import {
33
33
  useRunFrameStore,
34
34
  useRunnerStore,
35
35
  useStyles
36
- } from "./chunk-DFW6BPEB.js";
36
+ } from "./chunk-QFFTWWHI.js";
37
37
 
38
38
  // lib/components/RunFrame/RunFrame.tsx
39
39
  import { createCircuitWebWorker } from "@tscircuit/eval/worker";