@tscircuit/core 0.0.242 → 0.0.244

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.
package/dist/index.d.ts CHANGED
@@ -90,6 +90,13 @@ declare class RootCircuit {
90
90
  isRoot: boolean;
91
91
  schematicDisabled: boolean;
92
92
  pcbDisabled: boolean;
93
+ pcbRoutingDisabled: boolean;
94
+ /**
95
+ * The RootCircuit name is usually set by the platform, it's not required but
96
+ * if supplied can identify the circuit in certain effects, e.g. it is passed
97
+ * as the display_name parameter for autorouting effects.
98
+ */
99
+ name?: string;
93
100
  _hasRenderedAtleastOnce: boolean;
94
101
  constructor();
95
102
  add(componentOrElm: PrimitiveComponent | ReactElement): void;
@@ -130,6 +137,12 @@ declare class RootCircuit {
130
137
  * @deprecated
131
138
  */
132
139
  declare const Project: typeof RootCircuit;
140
+ /**
141
+ * We currently don't make a distinction between RootCircuit and Circuit, but
142
+ * we may in the future allow subcircuits to be created as new Circuit then
143
+ * incorporated into a larger RootCircuit
144
+ */
145
+ declare const Circuit: typeof RootCircuit;
133
146
 
134
147
  interface ISubcircuit extends PrimitiveComponent {
135
148
  _shouldUseTraceByTraceRouting(): boolean;
@@ -8664,4 +8677,4 @@ declare module "react/jsx-runtime" {
8664
8677
  }
8665
8678
  }
8666
8679
 
8667
- export { Battery, Board, Capacitor, Chip, type ComponentWithPins, Constraint, Crystal, Diode, FabricationNotePath, FabricationNoteText, Footprint, Group, Hole, type IRenderable, Inductor, Jumper, Keepout, Led, Net, NetAlias, NormalComponent, PinHeader, type PinLabelSpec, PlatedHole, Port, Potentiometer, PowerSource, PrimitiveComponent, Project, PushButton, Renderable, Resistor, RootCircuit, SilkscreenCircle, SilkscreenLine, SilkscreenPath, SilkscreenRect, SilkscreenText, SmtPad, Subcircuit, Trace, TraceHint, Via, applyEditEventsToManualEditsFile, createUseComponent, useCapacitor, useChip, useDiode, useLed, useRenderedCircuit, useResistor };
8680
+ export { Battery, Board, Capacitor, Chip, Circuit, type ComponentWithPins, Constraint, Crystal, Diode, FabricationNotePath, FabricationNoteText, Footprint, Group, Hole, type IRenderable, Inductor, Jumper, Keepout, Led, Net, NetAlias, NormalComponent, PinHeader, type PinLabelSpec, PlatedHole, Port, Potentiometer, PowerSource, PrimitiveComponent, Project, PushButton, Renderable, Resistor, RootCircuit, SilkscreenCircle, SilkscreenLine, SilkscreenPath, SilkscreenRect, SilkscreenText, SmtPad, Subcircuit, Trace, TraceHint, Via, applyEditEventsToManualEditsFile, createUseComponent, useCapacitor, useChip, useDiode, useLed, useRenderedCircuit, useResistor };
package/dist/index.js CHANGED
@@ -3552,7 +3552,8 @@ var Group = class extends NormalComponent {
3552
3552
  body: JSON.stringify({
3553
3553
  input_circuit_json: this.root.db.toArray(),
3554
3554
  provider: "freerouting",
3555
- autostart: true
3555
+ autostart: true,
3556
+ display_name: this.root?.name
3556
3557
  }),
3557
3558
  headers: { "Content-Type": "application/json" }
3558
3559
  }
@@ -5895,6 +5896,13 @@ var RootCircuit = class {
5895
5896
  isRoot = true;
5896
5897
  schematicDisabled = false;
5897
5898
  pcbDisabled = false;
5899
+ pcbRoutingDisabled = false;
5900
+ /**
5901
+ * The RootCircuit name is usually set by the platform, it's not required but
5902
+ * if supplied can identify the circuit in certain effects, e.g. it is passed
5903
+ * as the display_name parameter for autorouting effects.
5904
+ */
5905
+ name;
5898
5906
  _hasRenderedAtleastOnce = false;
5899
5907
  constructor() {
5900
5908
  this.children = [];
@@ -6027,6 +6035,7 @@ var RootCircuit = class {
6027
6035
  }
6028
6036
  };
6029
6037
  var Project = RootCircuit;
6038
+ var Circuit = RootCircuit;
6030
6039
 
6031
6040
  // lib/hooks/use-rendered-circuit.ts
6032
6041
  import React from "react";
@@ -6192,6 +6201,7 @@ export {
6192
6201
  Board,
6193
6202
  Capacitor,
6194
6203
  Chip,
6204
+ Circuit,
6195
6205
  Constraint2 as Constraint,
6196
6206
  Crystal,
6197
6207
  Diode,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.242",
4
+ "version": "0.0.244",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",