@tscircuit/runframe 0.0.1483 → 0.0.1484

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.
@@ -1729,7 +1729,7 @@ var useErrorTelemetry = ({
1729
1729
  };
1730
1730
 
1731
1731
  // package.json
1732
- var version = "0.0.1482";
1732
+ var version = "0.0.1483";
1733
1733
  var package_default = {
1734
1734
  name: "@tscircuit/runframe",
1735
1735
  main: "dist/preview.js",
@@ -5385,6 +5385,9 @@ var CircuitJsonPreview = ({
5385
5385
  if (!circuitJson) return true;
5386
5386
  return circuitJson.some((e) => e.type === "schematic_group");
5387
5387
  }, [circuitJson]);
5388
+ const hasPanels = useMemo10(() => {
5389
+ return circuitJson?.some((e) => e.type === "pcb_panel");
5390
+ }, [circuitJson]);
5388
5391
  useErrorTelemetry({
5389
5392
  errorMessage,
5390
5393
  errorStack,
@@ -5510,7 +5513,7 @@ var CircuitJsonPreview = ({
5510
5513
  "rf-whitespace-nowrap",
5511
5514
  circuitJson && !hasSchematicGroup && "rf-opacity-50"
5512
5515
  ),
5513
- disabled: circuitJson ? !hasSchematicGroup : false,
5516
+ disabled: circuitJson ? !hasSchematicGroup || hasPanels : false,
5514
5517
  children: [
5515
5518
  circuitJson && /* @__PURE__ */ jsx38(
5516
5519
  "span",
package/dist/preview.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  linkify,
9
9
  useOrderDialog,
10
10
  useOrderDialogCli
11
- } from "./chunk-2JZEA7MW.js";
11
+ } from "./chunk-BOMM7MGM.js";
12
12
  export {
13
13
  BomTable,
14
14
  CadViewer,
package/dist/runner.js CHANGED
@@ -34,7 +34,7 @@ import {
34
34
  useRunFrameStore,
35
35
  useRunnerStore,
36
36
  useStyles
37
- } from "./chunk-2JZEA7MW.js";
37
+ } from "./chunk-BOMM7MGM.js";
38
38
 
39
39
  // lib/components/RunFrame/RunFrame.tsx
40
40
  import { createCircuitWebWorker } from "@tscircuit/eval/worker";