@tscircuit/core 0.0.485 → 0.0.487

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
@@ -1,5 +1,5 @@
1
1
  import * as _tscircuit_props from '@tscircuit/props';
2
- import { PlatformConfig, subcircuitGroupProps, AutorouterConfig, traceProps, SupplierPartNumbers, SchematicPortArrangement, groupProps, boardProps, capacitorProps, chipProps, diodeProps, fuseProps, jumperProps, solderjumperProps, ledProps, powerSourceProps, resistorProps, constraintProps, fabricationNotePathProps, fabricationNoteTextProps, footprintProps, subcircuitProps, breakoutProps, breakoutPointProps, holeProps, pcbKeepoutProps, netAliasProps, platedHoleProps, silkscreenCircleProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, silkscreenLineProps, smtPadProps, traceHintProps, viaProps, cutoutProps, batteryProps, pinHeaderProps, resonatorProps, inductorProps, potentiometerProps, pushButtonProps, crystalProps, transistorProps, mosfetProps, switchProps, testpointProps, schematicTextProps, schematicBoxProps, CapacitorProps, ChipProps, DiodeProps, ResistorProps, ManualEditEvent, ManualEditsFile, ChipConnections, manual_edits_file } from '@tscircuit/props';
2
+ import { PlatformConfig, subcircuitGroupProps, AutorouterConfig, traceProps, SupplierPartNumbers, SchematicPortArrangement, groupProps, boardProps, capacitorProps, chipProps, diodeProps, fuseProps, jumperProps, solderjumperProps, ledProps, powerSourceProps, resistorProps, constraintProps, fabricationNotePathProps, fabricationNoteTextProps, footprintProps, subcircuitProps, breakoutProps, breakoutPointProps, holeProps, pcbKeepoutProps, netLabelProps, platedHoleProps, silkscreenCircleProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, silkscreenLineProps, smtPadProps, traceHintProps, viaProps, cutoutProps, batteryProps, pinHeaderProps, resonatorProps, inductorProps, potentiometerProps, pushButtonProps, crystalProps, transistorProps, mosfetProps, switchProps, testpointProps, schematicTextProps, schematicBoxProps, CapacitorProps, ChipProps, DiodeProps, ResistorProps, ManualEditEvent, ManualEditsFile, ChipConnections, manual_edits_file } from '@tscircuit/props';
3
3
  import React, { ReactElement, DetailedHTMLProps, SVGProps } from 'react';
4
4
  export { createElement } from 'react';
5
5
  import * as zod from 'zod';
@@ -7240,8 +7240,8 @@ declare class Keepout extends PrimitiveComponent<typeof pcbKeepoutProps> {
7240
7240
  doInitialPcbPrimitiveRender(): void;
7241
7241
  }
7242
7242
 
7243
- declare class NetAlias extends PrimitiveComponent<typeof netAliasProps> {
7244
- source_net_alias_id?: string;
7243
+ declare class NetLabel extends PrimitiveComponent<typeof netLabelProps> {
7244
+ source_net_label_id?: string;
7245
7245
  get config(): {
7246
7246
  componentName: string;
7247
7247
  zodProps: zod.ZodObject<{
@@ -14689,7 +14689,7 @@ interface TscircuitElements {
14689
14689
  hole: _tscircuit_props.HoleProps;
14690
14690
  port: _tscircuit_props.PortProps;
14691
14691
  group: _tscircuit_props.GroupProps;
14692
- netalias: _tscircuit_props.NetAliasProps;
14692
+ netlabel: _tscircuit_props.NetLabelProps;
14693
14693
  net: _tscircuit_props.NetProps;
14694
14694
  trace: _tscircuit_props.TraceProps;
14695
14695
  breakout: _tscircuit_props.BreakoutProps;
@@ -14734,4 +14734,4 @@ declare module "react/jsx-runtime" {
14734
14734
  }
14735
14735
  }
14736
14736
 
14737
- export { type AsyncEffect, type AutorouterCompleteEvent, type AutorouterErrorEvent, type AutorouterEvent, type AutorouterProgressEvent, type AutoroutingEndEvent, type AutoroutingErrorEvent, type AutoroutingProgressEvent, type AutoroutingStartEvent, Battery, Board, Breakout, BreakoutPoint, Capacitor, Chip, Circuit, type ComponentWithPins, Constraint, Crystal, Cutout, Diode, FabricationNotePath, FabricationNoteText, Footprint, Fuse, type GenericConnectionsAndSelectorsSel, type GenericLocalAutorouter, Group, Hole, type IRenderable, Inductor, Jumper, Keepout, Led, type LocalCacheEngine, Mosfet, Net, NetAlias, NormalComponent, type Obstacle, PcbTrace, PinHeader, type PinLabelSpec, PlatedHole, Port, Potentiometer, PowerSource, PrimitiveComponent, Project, PushButton, type RenderPhase, type RenderPhaseFn, type RenderPhaseFunctions, type RenderPhaseStates, Renderable, Resistor, Resonator, RootCircuit, type RootCircuitEventName, SchematicBox, SchematicText, type Sel, SilkscreenCircle, SilkscreenLine, SilkscreenPath, SilkscreenRect, SilkscreenText, type SimpleRouteConnection, type SimpleRouteJson, type SimplifiedPcbTrace, SmtPad, SolderJumper, Subcircuit, Switch, TestPoint, Trace, TraceHint, Transistor, Via, applyEditEvents, applyEditEventsToManualEditsFile, applyPcbEditEventsToManualEditsFile, applySchematicEditEventsToManualEditsFile, createUseComponent, getPhaseTimingsFromRenderEvents, getSimpleRouteJsonFromCircuitJson, normalizePinLabels, orderedRenderPhases, sel, useCapacitor, useChip, useDiode, useLed, useRenderedCircuit, useResistor };
14737
+ export { type AsyncEffect, type AutorouterCompleteEvent, type AutorouterErrorEvent, type AutorouterEvent, type AutorouterProgressEvent, type AutoroutingEndEvent, type AutoroutingErrorEvent, type AutoroutingProgressEvent, type AutoroutingStartEvent, Battery, Board, Breakout, BreakoutPoint, Capacitor, Chip, Circuit, type ComponentWithPins, Constraint, Crystal, Cutout, Diode, FabricationNotePath, FabricationNoteText, Footprint, Fuse, type GenericConnectionsAndSelectorsSel, type GenericLocalAutorouter, Group, Hole, type IRenderable, Inductor, Jumper, Keepout, Led, type LocalCacheEngine, Mosfet, Net, NetLabel, NormalComponent, type Obstacle, PcbTrace, PinHeader, type PinLabelSpec, PlatedHole, Port, Potentiometer, PowerSource, PrimitiveComponent, Project, PushButton, type RenderPhase, type RenderPhaseFn, type RenderPhaseFunctions, type RenderPhaseStates, Renderable, Resistor, Resonator, RootCircuit, type RootCircuitEventName, SchematicBox, SchematicText, type Sel, SilkscreenCircle, SilkscreenLine, SilkscreenPath, SilkscreenRect, SilkscreenText, type SimpleRouteConnection, type SimpleRouteJson, type SimplifiedPcbTrace, SmtPad, SolderJumper, Subcircuit, Switch, TestPoint, Trace, TraceHint, Transistor, Via, applyEditEvents, applyEditEventsToManualEditsFile, applyPcbEditEventsToManualEditsFile, applySchematicEditEventsToManualEditsFile, createUseComponent, getPhaseTimingsFromRenderEvents, getSimpleRouteJsonFromCircuitJson, normalizePinLabels, orderedRenderPhases, sel, useCapacitor, useChip, useDiode, useLed, useRenderedCircuit, useResistor };
package/dist/index.js CHANGED
@@ -29,7 +29,7 @@ __export(components_exports, {
29
29
  Led: () => Led,
30
30
  Mosfet: () => Mosfet,
31
31
  Net: () => Net,
32
- NetAlias: () => NetAlias,
32
+ NetLabel: () => NetLabel,
33
33
  NormalComponent: () => NormalComponent,
34
34
  PcbTrace: () => PcbTrace,
35
35
  PinHeader: () => PinHeader,
@@ -9103,14 +9103,14 @@ var BreakoutPoint = class extends PrimitiveComponent2 {
9103
9103
  }
9104
9104
  };
9105
9105
 
9106
- // lib/components/primitive-components/NetAlias.ts
9107
- import { netAliasProps } from "@tscircuit/props";
9108
- var NetAlias = class extends PrimitiveComponent2 {
9109
- source_net_alias_id;
9106
+ // lib/components/primitive-components/NetLabel.ts
9107
+ import { netLabelProps } from "@tscircuit/props";
9108
+ var NetLabel = class extends PrimitiveComponent2 {
9109
+ source_net_label_id;
9110
9110
  get config() {
9111
9111
  return {
9112
- componentName: "NetAlias",
9113
- zodProps: netAliasProps
9112
+ componentName: "NetLabel",
9113
+ zodProps: netLabelProps
9114
9114
  };
9115
9115
  }
9116
9116
  doInitialSchematicComponentRender() {
@@ -9118,7 +9118,7 @@ var NetAlias = class extends PrimitiveComponent2 {
9118
9118
  const { db } = this.root;
9119
9119
  const { _parsedProps: props } = this;
9120
9120
  const anchorPos = { x: props.schX ?? 0, y: props.schY ?? 0 };
9121
- const netAlias = db.schematic_net_label.insert({
9121
+ const netLabel = db.schematic_net_label.insert({
9122
9122
  text: props.net,
9123
9123
  source_net_id: props.net,
9124
9124
  anchor_position: anchorPos,
@@ -9126,7 +9126,7 @@ var NetAlias = class extends PrimitiveComponent2 {
9126
9126
  center: anchorPos,
9127
9127
  anchor_side: "bottom"
9128
9128
  });
9129
- this.source_net_alias_id = netAlias.source_net_id;
9129
+ this.source_net_label_id = netLabel.source_net_id;
9130
9130
  }
9131
9131
  };
9132
9132
 
@@ -10228,7 +10228,7 @@ import { identity as identity4 } from "transformation-matrix";
10228
10228
  var package_default = {
10229
10229
  name: "@tscircuit/core",
10230
10230
  type: "module",
10231
- version: "0.0.484",
10231
+ version: "0.0.486",
10232
10232
  types: "dist/index.d.ts",
10233
10233
  main: "dist/index.js",
10234
10234
  module: "dist/index.js",
@@ -10271,7 +10271,7 @@ var package_default = {
10271
10271
  "@types/react-reconciler": "^0.28.9",
10272
10272
  "bun-match-svg": "0.0.8",
10273
10273
  "chokidar-cli": "^3.0.0",
10274
- "circuit-json": "^0.0.210",
10274
+ "circuit-json": "^0.0.212",
10275
10275
  "circuit-json-to-connectivity-map": "^0.0.22",
10276
10276
  "circuit-json-to-simple-3d": "^0.0.2",
10277
10277
  "circuit-to-svg": "^0.0.154",
@@ -10720,7 +10720,7 @@ export {
10720
10720
  Led,
10721
10721
  Mosfet,
10722
10722
  Net,
10723
- NetAlias,
10723
+ NetLabel,
10724
10724
  NormalComponent,
10725
10725
  PcbTrace,
10726
10726
  PinHeader,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.485",
4
+ "version": "0.0.487",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -44,7 +44,7 @@
44
44
  "@types/react-reconciler": "^0.28.9",
45
45
  "bun-match-svg": "0.0.8",
46
46
  "chokidar-cli": "^3.0.0",
47
- "circuit-json": "^0.0.210",
47
+ "circuit-json": "^0.0.212",
48
48
  "circuit-json-to-connectivity-map": "^0.0.22",
49
49
  "circuit-json-to-simple-3d": "^0.0.2",
50
50
  "circuit-to-svg": "^0.0.154",