@tscircuit/props 0.0.455 → 0.0.457

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
@@ -93921,12 +93921,24 @@ interface SymbolProps {
93921
93921
  * because you have a complex symbol. Default is "right" and this is most intuitive.
93922
93922
  */
93923
93923
  originalFacingDirection?: "up" | "down" | "left" | "right";
93924
+ width?: string | number;
93925
+ height?: string | number;
93926
+ name?: string;
93924
93927
  }
93925
93928
  declare const symbolProps: z.ZodObject<{
93926
93929
  originalFacingDirection: z.ZodOptional<z.ZodDefault<z.ZodEnum<["up", "down", "left", "right"]>>>;
93930
+ width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
93931
+ height: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
93932
+ name: z.ZodOptional<z.ZodString>;
93927
93933
  }, "strip", z.ZodTypeAny, {
93934
+ name?: string | undefined;
93935
+ width?: number | undefined;
93936
+ height?: number | undefined;
93928
93937
  originalFacingDirection?: "up" | "down" | "left" | "right" | undefined;
93929
93938
  }, {
93939
+ name?: string | undefined;
93940
+ width?: string | number | undefined;
93941
+ height?: string | number | undefined;
93930
93942
  originalFacingDirection?: "up" | "down" | "left" | "right" | undefined;
93931
93943
  }>;
93932
93944
  type SymbolPropsInput = z.input<typeof symbolProps>;
@@ -163153,7 +163165,7 @@ interface SchematicTextProps {
163153
163165
  type InferredSchematicTextProps = z.input<typeof schematicTextProps>;
163154
163166
 
163155
163167
  declare const schematicPathProps: z.ZodObject<{
163156
- points: z.ZodArray<z.ZodObject<{
163168
+ points: z.ZodOptional<z.ZodArray<z.ZodObject<{
163157
163169
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
163158
163170
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
163159
163171
  }, "strip", z.ZodTypeAny, {
@@ -163162,35 +163174,35 @@ declare const schematicPathProps: z.ZodObject<{
163162
163174
  }, {
163163
163175
  x: string | number;
163164
163176
  y: string | number;
163165
- }>, "many">;
163177
+ }>, "many">>;
163166
163178
  svgPath: z.ZodOptional<z.ZodString>;
163167
163179
  strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
163168
163180
  strokeColor: z.ZodOptional<z.ZodString>;
163169
163181
  isFilled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
163170
163182
  fillColor: z.ZodOptional<z.ZodEnum<["red", "blue"]>>;
163171
163183
  }, "strip", z.ZodTypeAny, {
163172
- points: {
163173
- x: number;
163174
- y: number;
163175
- }[];
163176
163184
  isFilled: boolean;
163177
163185
  strokeWidth?: number | undefined;
163186
+ points?: {
163187
+ x: number;
163188
+ y: number;
163189
+ }[] | undefined;
163178
163190
  fillColor?: "red" | "blue" | undefined;
163179
163191
  svgPath?: string | undefined;
163180
163192
  strokeColor?: string | undefined;
163181
163193
  }, {
163182
- points: {
163194
+ strokeWidth?: string | number | undefined;
163195
+ points?: {
163183
163196
  x: string | number;
163184
163197
  y: string | number;
163185
- }[];
163186
- strokeWidth?: string | number | undefined;
163198
+ }[] | undefined;
163187
163199
  isFilled?: boolean | undefined;
163188
163200
  fillColor?: "red" | "blue" | undefined;
163189
163201
  svgPath?: string | undefined;
163190
163202
  strokeColor?: string | undefined;
163191
163203
  }>;
163192
163204
  interface SchematicPathProps {
163193
- points: Point[];
163205
+ points?: Point[];
163194
163206
  svgPath?: string;
163195
163207
  strokeWidth?: Distance;
163196
163208
  strokeColor?: string;
package/dist/index.js CHANGED
@@ -1567,7 +1567,10 @@ expectTypesMatch(true);
1567
1567
  // lib/components/symbol.ts
1568
1568
  import { z as z60 } from "zod";
1569
1569
  var symbolProps = z60.object({
1570
- originalFacingDirection: z60.enum(["up", "down", "left", "right"]).default("right").optional()
1570
+ originalFacingDirection: z60.enum(["up", "down", "left", "right"]).default("right").optional(),
1571
+ width: distance.optional(),
1572
+ height: distance.optional(),
1573
+ name: z60.string().optional()
1571
1574
  });
1572
1575
  expectTypesMatch(true);
1573
1576
 
@@ -2324,7 +2327,7 @@ expectTypesMatch(true);
2324
2327
  import { distance as distance33, point as point8 } from "circuit-json";
2325
2328
  import { z as z100 } from "zod";
2326
2329
  var schematicPathProps = z100.object({
2327
- points: z100.array(point8),
2330
+ points: z100.array(point8).optional(),
2328
2331
  svgPath: z100.string().optional(),
2329
2332
  strokeWidth: distance33.optional(),
2330
2333
  strokeColor: z100.string().optional(),