@tscircuit/runframe 0.0.962 → 0.0.963

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.
@@ -665,7 +665,7 @@ ${currentError.type}: ${truncatedMessage}
665
665
 
666
666
  // lib/components/CircuitJsonPreview/CircuitJsonPreview.tsx
667
667
  import { SchematicViewer } from "@tscircuit/schematic-viewer";
668
- import { AssemblyViewer } from "@tscircuit/assembly-viewer";
668
+ import { AssemblyViewer, PinoutViewer } from "@tscircuit/assembly-viewer";
669
669
 
670
670
  // lib/utils/getRandomTipForUser.ts
671
671
  var tips = [
@@ -1426,7 +1426,7 @@ var useErrorTelemetry = ({
1426
1426
  };
1427
1427
 
1428
1428
  // package.json
1429
- var version = "0.0.961";
1429
+ var version = "0.0.962";
1430
1430
 
1431
1431
  // lib/hooks/use-eval-versions.ts
1432
1432
  import { useEffect as useEffect5, useMemo as useMemo2, useState as useState6 } from "react";
@@ -3634,6 +3634,7 @@ var FileMenuLeftHeader = (props) => {
3634
3634
  import { jsx as jsx31, jsxs as jsxs22 } from "react/jsx-runtime";
3635
3635
  var dropdownMenuItems = [
3636
3636
  "assembly",
3637
+ "pinout",
3637
3638
  "bom",
3638
3639
  "circuit_json",
3639
3640
  "errors",
@@ -4002,6 +4003,30 @@ var CircuitJsonPreview = ({
4002
4003
  ) : /* @__PURE__ */ jsx31(PreviewEmptyState_default, { onRunClicked }) })
4003
4004
  }
4004
4005
  ) }),
4006
+ (!availableTabs || availableTabs.includes("pinout")) && /* @__PURE__ */ jsx31(TabsContent, { value: "pinout", children: /* @__PURE__ */ jsx31(
4007
+ "div",
4008
+ {
4009
+ className: cn(
4010
+ "rf-overflow-auto",
4011
+ isFullScreen ? "rf-h-screen" : "rf-h-full rf-min-h-[620px]"
4012
+ ),
4013
+ children: /* @__PURE__ */ jsx31(
4014
+ ErrorBoundary,
4015
+ {
4016
+ fallback: /* @__PURE__ */ jsx31("div", { children: "Error loading Pinout Viewer" }),
4017
+ children: circuitJson ? /* @__PURE__ */ jsx31(
4018
+ PinoutViewer,
4019
+ {
4020
+ circuitJson,
4021
+ containerStyle: {
4022
+ height: "100%"
4023
+ }
4024
+ }
4025
+ ) : /* @__PURE__ */ jsx31(PreviewEmptyState_default, { onRunClicked })
4026
+ }
4027
+ )
4028
+ }
4029
+ ) }),
4005
4030
  (!availableTabs || availableTabs.includes("schematic")) && /* @__PURE__ */ jsx31(TabsContent, { value: "schematic", children: /* @__PURE__ */ jsx31(
4006
4031
  "div",
4007
4032
  {
package/dist/preview.d.ts CHANGED
@@ -32,7 +32,7 @@ interface RenderLog {
32
32
  }>;
33
33
  }
34
34
 
35
- type TabId = "code" | "pcb" | "schematic" | "assembly" | "cad" | "bom" | "circuit_json" | "errors" | "render_log";
35
+ type TabId = "code" | "pcb" | "schematic" | "assembly" | "pinout" | "cad" | "bom" | "circuit_json" | "errors" | "render_log";
36
36
  interface PreviewContentProps {
37
37
  defaultToFullScreen?: boolean;
38
38
  code?: string;
package/dist/preview.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  linkify,
9
9
  useOrderDialog,
10
10
  useOrderDialogCli
11
- } from "./chunk-HXUCALEY.js";
11
+ } from "./chunk-RKAJRIZO.js";
12
12
  export {
13
13
  BomTable,
14
14
  CadViewer,
package/dist/runner.js CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  useRunFrameStore,
24
24
  useRunnerStore,
25
25
  useStyles
26
- } from "./chunk-HXUCALEY.js";
26
+ } from "./chunk-RKAJRIZO.js";
27
27
 
28
28
  // lib/components/RunFrame/RunFrame.tsx
29
29
  import { createCircuitWebWorker } from "@tscircuit/eval/worker";