@tscircuit/pcb-viewer 1.10.6 → 1.10.7

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 react_jsx_runtime from 'react/jsx-runtime';
2
- import { LayerRef, AnySoupElement } from 'circuit-json';
2
+ import { LayerRef, AnyCircuitElement } from 'circuit-json';
3
3
  import { Matrix } from 'transformation-matrix';
4
4
 
5
5
  type EditComponentLocationEvent = {
@@ -63,7 +63,7 @@ type Props = {
63
63
  };
64
64
  declare const PCBViewer: ({ children, soup, height, initialState, allowEditing, editEvents: editEventsProp, onEditEventsChanged, }: Props) => react_jsx_runtime.JSX.Element;
65
65
 
66
- declare const applyEditEvents: (soup: AnySoupElement[], edit_events: EditEvent[]) => AnySoupElement[];
66
+ declare const applyEditEvents: (soup: AnyCircuitElement[], edit_events: EditEvent[]) => AnyCircuitElement[];
67
67
 
68
68
  type GridConfig = {
69
69
  spacing: number;
@@ -76,7 +76,7 @@ type GridConfig = {
76
76
  };
77
77
 
78
78
  interface CanvasElementsRendererProps {
79
- elements: AnySoupElement[];
79
+ elements: AnyCircuitElement[];
80
80
  transform?: Matrix;
81
81
  width?: number;
82
82
  height?: number;
package/dist/index.js CHANGED
@@ -13374,7 +13374,7 @@ var import_css = require("@emotion/css");
13374
13374
  // package.json
13375
13375
  var package_default = {
13376
13376
  name: "@tscircuit/pcb-viewer",
13377
- version: "1.10.5",
13377
+ version: "1.10.6",
13378
13378
  main: "dist/index.js",
13379
13379
  repository: "tscircuit/pcb-viewer",
13380
13380
  license: "MIT",
@@ -13784,7 +13784,7 @@ var ErrorOverlay = function(param) {
13784
13784
  children: [
13785
13785
  children,
13786
13786
  elements === null || elements === void 0 ? void 0 : elements.filter(function(el) {
13787
- return el.type === "pcb_error";
13787
+ return el.type === "pcb_trace_error";
13788
13788
  }).map(function(el) {
13789
13789
  var pcb_port_ids = el.pcb_port_ids;
13790
13790
  var port1 = elements.find(function(el2) {