@tscircuit/props 0.0.455 → 0.0.456

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
@@ -163153,7 +163153,7 @@ interface SchematicTextProps {
163153
163153
  type InferredSchematicTextProps = z.input<typeof schematicTextProps>;
163154
163154
 
163155
163155
  declare const schematicPathProps: z.ZodObject<{
163156
- points: z.ZodArray<z.ZodObject<{
163156
+ points: z.ZodOptional<z.ZodArray<z.ZodObject<{
163157
163157
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
163158
163158
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
163159
163159
  }, "strip", z.ZodTypeAny, {
@@ -163162,35 +163162,35 @@ declare const schematicPathProps: z.ZodObject<{
163162
163162
  }, {
163163
163163
  x: string | number;
163164
163164
  y: string | number;
163165
- }>, "many">;
163165
+ }>, "many">>;
163166
163166
  svgPath: z.ZodOptional<z.ZodString>;
163167
163167
  strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
163168
163168
  strokeColor: z.ZodOptional<z.ZodString>;
163169
163169
  isFilled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
163170
163170
  fillColor: z.ZodOptional<z.ZodEnum<["red", "blue"]>>;
163171
163171
  }, "strip", z.ZodTypeAny, {
163172
- points: {
163173
- x: number;
163174
- y: number;
163175
- }[];
163176
163172
  isFilled: boolean;
163177
163173
  strokeWidth?: number | undefined;
163174
+ points?: {
163175
+ x: number;
163176
+ y: number;
163177
+ }[] | undefined;
163178
163178
  fillColor?: "red" | "blue" | undefined;
163179
163179
  svgPath?: string | undefined;
163180
163180
  strokeColor?: string | undefined;
163181
163181
  }, {
163182
- points: {
163182
+ strokeWidth?: string | number | undefined;
163183
+ points?: {
163183
163184
  x: string | number;
163184
163185
  y: string | number;
163185
- }[];
163186
- strokeWidth?: string | number | undefined;
163186
+ }[] | undefined;
163187
163187
  isFilled?: boolean | undefined;
163188
163188
  fillColor?: "red" | "blue" | undefined;
163189
163189
  svgPath?: string | undefined;
163190
163190
  strokeColor?: string | undefined;
163191
163191
  }>;
163192
163192
  interface SchematicPathProps {
163193
- points: Point[];
163193
+ points?: Point[];
163194
163194
  svgPath?: string;
163195
163195
  strokeWidth?: Distance;
163196
163196
  strokeColor?: string;
package/dist/index.js CHANGED
@@ -2324,7 +2324,7 @@ expectTypesMatch(true);
2324
2324
  import { distance as distance33, point as point8 } from "circuit-json";
2325
2325
  import { z as z100 } from "zod";
2326
2326
  var schematicPathProps = z100.object({
2327
- points: z100.array(point8),
2327
+ points: z100.array(point8).optional(),
2328
2328
  svgPath: z100.string().optional(),
2329
2329
  strokeWidth: distance33.optional(),
2330
2330
  strokeColor: z100.string().optional(),