@tscircuit/runframe 0.0.1039 → 0.0.1041

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.
@@ -1426,7 +1426,7 @@ var useErrorTelemetry = ({
1426
1426
  };
1427
1427
 
1428
1428
  // package.json
1429
- var version = "0.0.1037";
1429
+ var version = "0.0.1039";
1430
1430
 
1431
1431
  // lib/hooks/use-eval-versions.ts
1432
1432
  import { useEffect as useEffect5, useMemo as useMemo2, useState as useState6 } from "react";
@@ -3110,6 +3110,19 @@ var exportGlb = async ({
3110
3110
  });
3111
3111
  };
3112
3112
 
3113
+ // lib/optional-features/exporting/formats/export-pinout-svg.ts
3114
+ import { convertCircuitJsonToPinoutSvg } from "circuit-to-svg";
3115
+ var exportPinoutSvg = ({
3116
+ circuitJson,
3117
+ projectName
3118
+ }) => {
3119
+ const svgString = convertCircuitJsonToPinoutSvg(circuitJson);
3120
+ openForDownload(svgString, {
3121
+ fileName: `${projectName}-pinout.svg`,
3122
+ mimeType: "image/svg+xml"
3123
+ });
3124
+ };
3125
+
3113
3126
  // lib/optional-features/exporting/formats/export-kicad-project.ts
3114
3127
  import JSZip2 from "jszip";
3115
3128
  import {
@@ -3147,7 +3160,8 @@ var availableExports = [
3147
3160
  { extension: "json", name: "Circuit JSON" },
3148
3161
  { extension: "zip", name: "Fabrication Files" },
3149
3162
  { extension: "zip", name: "KiCad Project" },
3150
- { extension: "glb", name: "GLB (Binary GLTF)" }
3163
+ { extension: "glb", name: "GLB (Binary GLTF)" },
3164
+ { extension: "svg", name: "Pinout SVG" }
3151
3165
  // { extension: "svg", name: "SVG" },
3152
3166
  // { extension: "dsn", name: "Specctra DSN" },
3153
3167
  // { extension: "kicad_mod", name: "KiCad Module" },
@@ -3177,6 +3191,10 @@ var exportAndDownload = async ({
3177
3191
  await exportGlb({ circuitJson, projectName });
3178
3192
  return;
3179
3193
  }
3194
+ if (exportName === "Pinout SVG") {
3195
+ exportPinoutSvg({ circuitJson, projectName });
3196
+ return;
3197
+ }
3180
3198
  throw new Error(`Unsupported export type: "${exportName}"`);
3181
3199
  };
3182
3200
 
package/dist/preview.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  linkify,
9
9
  useOrderDialog,
10
10
  useOrderDialogCli
11
- } from "./chunk-CCZLL35F.js";
11
+ } from "./chunk-BP52KKFP.js";
12
12
  export {
13
13
  BomTable,
14
14
  CadViewer,
package/dist/runner.js CHANGED
@@ -32,7 +32,7 @@ import {
32
32
  useRunFrameStore,
33
33
  useRunnerStore,
34
34
  useStyles
35
- } from "./chunk-CCZLL35F.js";
35
+ } from "./chunk-BP52KKFP.js";
36
36
 
37
37
  // lib/components/RunFrame/RunFrame.tsx
38
38
  import { createCircuitWebWorker } from "@tscircuit/eval/worker";