@tscircuit/core 0.0.372 → 0.0.373

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
@@ -7,7 +7,7 @@ import { z, ZodType } from 'zod';
7
7
  import { symbols, SchSymbol, BaseSymbolName } from 'schematic-symbols';
8
8
  import { PcbTraceError, PcbPlacementError, PcbManualEditConflictError, LayerRef, AnyCircuitElement, AnySourceComponent, PcbTraceRoutePoint, PcbTrace, PcbVia, RouteHintPoint, CircuitJson } from 'circuit-json';
9
9
  import { Matrix } from 'transformation-matrix';
10
- import { SoupUtilObjects } from '@tscircuit/soup-util';
10
+ import { CircuitJsonUtilObjects } from '@tscircuit/circuit-json-util';
11
11
  import * as _tscircuit_layout from '@tscircuit/layout';
12
12
  import { ConnectivityMap } from 'circuit-json-to-connectivity-map';
13
13
  import { GraphicsObject } from 'graphics-debug';
@@ -189,7 +189,7 @@ interface AutoroutingEndEvent {
189
189
  declare class RootCircuit {
190
190
  firstChild: PrimitiveComponent | null;
191
191
  children: PrimitiveComponent[];
192
- db: SoupUtilObjects;
192
+ db: CircuitJsonUtilObjects;
193
193
  root: RootCircuit | null;
194
194
  isRoot: boolean;
195
195
  schematicDisabled: boolean;
@@ -11443,7 +11443,7 @@ declare const applyEditEvents: ({ circuitJson, editEvents, }: {
11443
11443
  * This function can only be called in the PcbTraceRender phase or later
11444
11444
  */
11445
11445
  declare const getSimpleRouteJsonFromCircuitJson: ({ db, circuitJson, subcircuit_id, minTraceWidth, }: {
11446
- db?: SoupUtilObjects;
11446
+ db?: CircuitJsonUtilObjects;
11447
11447
  circuitJson?: AnyCircuitElement[];
11448
11448
  subcircuit_id?: string | null;
11449
11449
  minTraceWidth?: number;
package/dist/index.js CHANGED
@@ -5406,7 +5406,7 @@ var TraceHint = class extends PrimitiveComponent {
5406
5406
 
5407
5407
  // lib/utils/edit-events/apply-pcb-edit-events-to-manual-edits-file.ts
5408
5408
  import "zod";
5409
- import { su } from "@tscircuit/soup-util";
5409
+ import { su } from "@tscircuit/circuit-json-util";
5410
5410
  var applyPcbEditEventsToManualEditsFile = ({
5411
5411
  circuitJson,
5412
5412
  editEvents,
@@ -5444,7 +5444,7 @@ var applyPcbEditEventsToManualEditsFile = ({
5444
5444
  };
5445
5445
 
5446
5446
  // lib/utils/edit-events/apply-schematic-edit-events-to-manual-edits-file.ts
5447
- import { su as su2 } from "@tscircuit/soup-util";
5447
+ import { su as su2 } from "@tscircuit/circuit-json-util";
5448
5448
  import "zod";
5449
5449
  var applySchematicEditEventsToManualEditsFile = ({
5450
5450
  circuitJson,
@@ -5515,11 +5515,11 @@ var applyEditEventsToManualEditsFile = ({
5515
5515
  };
5516
5516
 
5517
5517
  // lib/utils/edit-events/apply-edit-events-to-circuit-json.ts
5518
- import { transformPCBElement } from "@tscircuit/soup-util";
5518
+ import { transformPCBElement } from "@tscircuit/circuit-json-util";
5519
5519
  import { translate as translate3 } from "transformation-matrix";
5520
5520
 
5521
5521
  // lib/utils/edit-events/apply-trace-hint-edit-event.ts
5522
- import { su as su3 } from "@tscircuit/soup-util";
5522
+ import { su as su3 } from "@tscircuit/circuit-json-util";
5523
5523
  var applyTraceHintEditEvent = (circuitJson, edit_event) => {
5524
5524
  const existingTraceHint = su3(circuitJson).pcb_trace_hint.get(
5525
5525
  edit_event.pcb_trace_hint_id
@@ -5588,7 +5588,7 @@ var applyEditEvents = ({
5588
5588
 
5589
5589
  // lib/utils/autorouting/getSimpleRouteJsonFromCircuitJson.ts
5590
5590
  import { getObstaclesFromSoup as getObstaclesFromSoup2 } from "@tscircuit/infgrid-ijump-astar";
5591
- import { su as su4 } from "@tscircuit/soup-util";
5591
+ import { su as su4 } from "@tscircuit/circuit-json-util";
5592
5592
  import {
5593
5593
  getFullConnectivityMapFromCircuitJson as getFullConnectivityMapFromCircuitJson2
5594
5594
  } from "circuit-json-to-connectivity-map";
@@ -7505,7 +7505,7 @@ var Switch = class extends NormalComponent {
7505
7505
  };
7506
7506
 
7507
7507
  // lib/RootCircuit.ts
7508
- import { su as su5 } from "@tscircuit/soup-util";
7508
+ import { su as su5 } from "@tscircuit/circuit-json-util";
7509
7509
  import { isValidElement as isValidElement2 } from "react";
7510
7510
  import { identity as identity4 } from "transformation-matrix";
7511
7511
 
@@ -7513,7 +7513,7 @@ import { identity as identity4 } from "transformation-matrix";
7513
7513
  var package_default = {
7514
7514
  name: "@tscircuit/core",
7515
7515
  type: "module",
7516
- version: "0.0.371",
7516
+ version: "0.0.372",
7517
7517
  types: "dist/index.d.ts",
7518
7518
  main: "dist/index.js",
7519
7519
  module: "dist/index.js",
@@ -7567,12 +7567,11 @@ var package_default = {
7567
7567
  "@lume/kiwi": "^0.4.3",
7568
7568
  "@tscircuit/capacity-autorouter": "^0.0.52",
7569
7569
  "@tscircuit/checks": "^0.0.36",
7570
- "@tscircuit/circuit-json-util": "^0.0.45",
7570
+ "@tscircuit/circuit-json-util": "^0.0.47",
7571
7571
  "@tscircuit/infgrid-ijump-astar": "^0.0.33",
7572
7572
  "@tscircuit/math-utils": "^0.0.12",
7573
7573
  "@tscircuit/props": "^0.0.171",
7574
7574
  "@tscircuit/schematic-autolayout": "^0.0.6",
7575
- "@tscircuit/soup-util": "^0.0.41",
7576
7575
  "circuit-json": "^0.0.153",
7577
7576
  "circuit-json-to-connectivity-map": "^0.0.20",
7578
7577
  "format-si-unit": "^0.0.3",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.372",
4
+ "version": "0.0.373",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -55,12 +55,11 @@
55
55
  "@lume/kiwi": "^0.4.3",
56
56
  "@tscircuit/capacity-autorouter": "^0.0.52",
57
57
  "@tscircuit/checks": "^0.0.36",
58
- "@tscircuit/circuit-json-util": "^0.0.45",
58
+ "@tscircuit/circuit-json-util": "^0.0.47",
59
59
  "@tscircuit/infgrid-ijump-astar": "^0.0.33",
60
60
  "@tscircuit/math-utils": "^0.0.12",
61
61
  "@tscircuit/props": "^0.0.171",
62
62
  "@tscircuit/schematic-autolayout": "^0.0.6",
63
- "@tscircuit/soup-util": "^0.0.41",
64
63
  "circuit-json": "^0.0.153",
65
64
  "circuit-json-to-connectivity-map": "^0.0.20",
66
65
  "format-si-unit": "^0.0.3",