@tscircuit/core 0.0.1100 → 0.0.1101

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
@@ -497,6 +497,7 @@ declare abstract class PrimitiveComponent<ZodProps extends ZodType = any> extend
497
497
  schematic_component_id: string | null;
498
498
  pcb_component_id: string | null;
499
499
  cad_component_id: string | null;
500
+ _reportedInvalidPcbCalcWarnings: Set<string>;
500
501
  fallbackUnassignedName?: string;
501
502
  constructor(props: z.input<ZodProps>);
502
503
  setProps(props: Partial<z.input<ZodProps>>): void;
package/dist/index.js CHANGED
@@ -1199,6 +1199,7 @@ var PrimitiveComponent2 = class extends Renderable {
1199
1199
  schematic_component_id = null;
1200
1200
  pcb_component_id = null;
1201
1201
  cad_component_id = null;
1202
+ _reportedInvalidPcbCalcWarnings = /* @__PURE__ */ new Set();
1202
1203
  fallbackUnassignedName;
1203
1204
  constructor(props) {
1204
1205
  super(props);
@@ -1289,6 +1290,15 @@ var PrimitiveComponent2 = class extends Renderable {
1289
1290
  (identifier) => !identifier.startsWith("board.")
1290
1291
  );
1291
1292
  if (includesComponentVariable && !allowComponentVariables) {
1293
+ if (this._isInsideFootprint() && this.root && !this._reportedInvalidPcbCalcWarnings.has(axis)) {
1294
+ this.root.db.source_invalid_component_property_error.insert({
1295
+ source_component_id: this.source_component_id || "",
1296
+ property_name: axis,
1297
+ message: `component-relative calc references are not supported for footprint elements (${this.componentName}); ${axis} will be ignored. expression="${rawValue}"`,
1298
+ error_type: "source_invalid_component_property_error"
1299
+ });
1300
+ this._reportedInvalidPcbCalcWarnings.add(axis);
1301
+ }
1292
1302
  return 0;
1293
1303
  }
1294
1304
  return evaluateCalcString(rawValue, { knownVariables });
@@ -18250,7 +18260,7 @@ import { identity as identity5 } from "transformation-matrix";
18250
18260
  var package_default = {
18251
18261
  name: "@tscircuit/core",
18252
18262
  type: "module",
18253
- version: "0.0.1099",
18263
+ version: "0.0.1100",
18254
18264
  types: "dist/index.d.ts",
18255
18265
  main: "dist/index.js",
18256
18266
  module: "dist/index.js",
@@ -18309,7 +18319,7 @@ var package_default = {
18309
18319
  "bun-match-svg": "0.0.12",
18310
18320
  "calculate-elbow": "^0.0.12",
18311
18321
  "chokidar-cli": "^3.0.0",
18312
- "circuit-json": "^0.0.393",
18322
+ "circuit-json": "^0.0.397",
18313
18323
  "circuit-json-to-bpc": "^0.0.13",
18314
18324
  "circuit-json-to-connectivity-map": "^0.0.23",
18315
18325
  "circuit-json-to-gltf": "^0.0.73",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.1100",
4
+ "version": "0.0.1101",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -60,7 +60,7 @@
60
60
  "bun-match-svg": "0.0.12",
61
61
  "calculate-elbow": "^0.0.12",
62
62
  "chokidar-cli": "^3.0.0",
63
- "circuit-json": "^0.0.393",
63
+ "circuit-json": "^0.0.397",
64
64
  "circuit-json-to-bpc": "^0.0.13",
65
65
  "circuit-json-to-connectivity-map": "^0.0.23",
66
66
  "circuit-json-to-gltf": "^0.0.73",