@tscircuit/runframe 0.0.1065 → 0.0.1066

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.
@@ -1425,7 +1425,7 @@ var useErrorTelemetry = ({
1425
1425
  };
1426
1426
 
1427
1427
  // package.json
1428
- var version = "0.0.1064";
1428
+ var version = "0.0.1065";
1429
1429
  var package_default = {
1430
1430
  name: "@tscircuit/runframe",
1431
1431
  main: "dist/preview.js",
@@ -1496,7 +1496,7 @@ var package_default = {
1496
1496
  "circuit-json-to-bom-csv": "^0.0.8",
1497
1497
  "circuit-json-to-gerber": "^0.0.34",
1498
1498
  "circuit-json-to-gltf": "^0.0.7",
1499
- "circuit-json-to-kicad": "^0.0.3",
1499
+ "circuit-json-to-kicad": "^0.0.22",
1500
1500
  "circuit-json-to-pnp-csv": "^0.0.7",
1501
1501
  "circuit-to-svg": "^0.0.205",
1502
1502
  "class-variance-authority": "^0.7.1",
@@ -1510,7 +1510,7 @@ var package_default = {
1510
1510
  "fuse.js": "^7.1.0",
1511
1511
  jszip: "^3.10.1",
1512
1512
  "kicad-component-converter": "^0.1.21",
1513
- kicadts: "^0.0.9",
1513
+ kicadts: "^0.0.10",
1514
1514
  ky: "^1.7.5",
1515
1515
  "lucide-react": "^0.488.0",
1516
1516
  marked: "^15.0.12",
@@ -3245,7 +3245,8 @@ var exportPinoutSvg = ({
3245
3245
  import JSZip2 from "jszip";
3246
3246
  import {
3247
3247
  CircuitJsonToKicadPcbConverter,
3248
- CircuitJsonToKicadSchConverter
3248
+ CircuitJsonToKicadSchConverter,
3249
+ CircuitJsonToKicadProConverter
3249
3250
  } from "circuit-json-to-kicad";
3250
3251
  var createKicadProjectZip = async ({
3251
3252
  circuitJson,
@@ -3257,9 +3258,17 @@ var createKicadProjectZip = async ({
3257
3258
  const pcbConverter = new CircuitJsonToKicadPcbConverter(circuitJson);
3258
3259
  pcbConverter.runUntilFinished();
3259
3260
  const pcbContent = pcbConverter.getOutputString();
3261
+ const proConverter = new CircuitJsonToKicadProConverter(circuitJson, {
3262
+ projectName,
3263
+ schematicFilename: `${projectName}.kicad_sch`,
3264
+ pcbFilename: `${projectName}.kicad_pcb`
3265
+ });
3266
+ proConverter.runUntilFinished();
3267
+ const proContent = proConverter.getOutputString();
3260
3268
  const zip = new JSZip2();
3261
3269
  zip.file(`${projectName}.kicad_sch`, schContent);
3262
3270
  zip.file(`${projectName}.kicad_pcb`, pcbContent);
3271
+ zip.file(`${projectName}.kicad_pro`, proContent);
3263
3272
  return zip;
3264
3273
  };
3265
3274
  var exportKicadProject = async ({
package/dist/preview.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  linkify,
9
9
  useOrderDialog,
10
10
  useOrderDialogCli
11
- } from "./chunk-ETMQBHT6.js";
11
+ } from "./chunk-4NV3MIFI.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-ETMQBHT6.js";
35
+ } from "./chunk-4NV3MIFI.js";
36
36
 
37
37
  // lib/components/RunFrame/RunFrame.tsx
38
38
  import { createCircuitWebWorker } from "@tscircuit/eval/worker";