@tscircuit/core 0.0.34 → 0.0.35

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
@@ -3441,6 +3441,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
3441
3441
  declare const edgeSpecifiers: readonly ["leftedge", "rightedge", "topedge", "bottomedge", "center"];
3442
3442
  type EdgeSpecifier = (typeof edgeSpecifiers)[number];
3443
3443
  declare class Constraint extends PrimitiveComponent<typeof constraintProps> {
3444
+ componentName: string;
3444
3445
  get config(): {
3445
3446
  zodProps: z.ZodUnion<[z.ZodObject<{
3446
3447
  pcb: z.ZodOptional<z.ZodLiteral<true>>;
package/dist/index.js CHANGED
@@ -213,8 +213,8 @@ var PrimitiveComponent = class extends Renderable {
213
213
  );
214
214
  if (!this.componentName) {
215
215
  this.componentName = this.constructor.name;
216
- this.lowercaseComponentName = this.componentName.toLowerCase();
217
216
  }
217
+ this.lowercaseComponentName = this.componentName.toLowerCase();
218
218
  }
219
219
  setProps(props) {
220
220
  const newProps = this.config.zodProps.parse({
@@ -2982,6 +2982,7 @@ var edgeSpecifiers = [
2982
2982
  "center"
2983
2983
  ];
2984
2984
  var Constraint2 = class extends PrimitiveComponent {
2985
+ componentName = "Constraint";
2985
2986
  get config() {
2986
2987
  return {
2987
2988
  zodProps: constraintProps
@@ -92,8 +92,8 @@ export abstract class PrimitiveComponent<
92
92
  ) as z.infer<ZodProps>
93
93
  if (!this.componentName) {
94
94
  this.componentName = this.constructor.name
95
- this.lowercaseComponentName = this.componentName.toLowerCase()
96
95
  }
96
+ this.lowercaseComponentName = this.componentName.toLowerCase()
97
97
  }
98
98
 
99
99
  setProps(props: Partial<z.input<ZodProps>>) {
@@ -13,6 +13,8 @@ const edgeSpecifiers = [
13
13
  export type EdgeSpecifier = (typeof edgeSpecifiers)[number]
14
14
 
15
15
  export class Constraint extends PrimitiveComponent<typeof constraintProps> {
16
+ componentName = "Constraint"
17
+
16
18
  get config() {
17
19
  return {
18
20
  zodProps: constraintProps,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tscircuit/core",
3
3
  "module": "index.ts",
4
4
  "type": "module",
5
- "version": "0.0.34",
5
+ "version": "0.0.35",
6
6
  "types": "dist/index.d.ts",
7
7
  "main": "dist/index.js",
8
8
  "files": [