@tscircuit/props 0.0.181 → 0.0.183

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
@@ -2100,6 +2100,146 @@ interface EditSchematicComponentLocationEvent extends BaseManualEditEvent {
2100
2100
  }
2101
2101
  type EditSchematicComponentLocationEventInput = z.input<typeof edit_schematic_component_location_event>;
2102
2102
 
2103
+ declare const edit_pcb_group_location_event: z.ZodObject<z.objectUtil.extendShape<{
2104
+ edit_event_id: z.ZodString;
2105
+ in_progress: z.ZodOptional<z.ZodBoolean>;
2106
+ created_at: z.ZodNumber;
2107
+ }, {
2108
+ edit_event_type: z.ZodLiteral<"edit_pcb_group_location">;
2109
+ pcb_group_id: z.ZodString;
2110
+ original_center: z.ZodObject<{
2111
+ x: z.ZodNumber;
2112
+ y: z.ZodNumber;
2113
+ }, "strip", z.ZodTypeAny, {
2114
+ x: number;
2115
+ y: number;
2116
+ }, {
2117
+ x: number;
2118
+ y: number;
2119
+ }>;
2120
+ new_center: z.ZodObject<{
2121
+ x: z.ZodNumber;
2122
+ y: z.ZodNumber;
2123
+ }, "strip", z.ZodTypeAny, {
2124
+ x: number;
2125
+ y: number;
2126
+ }, {
2127
+ x: number;
2128
+ y: number;
2129
+ }>;
2130
+ }>, "strip", z.ZodTypeAny, {
2131
+ edit_event_id: string;
2132
+ created_at: number;
2133
+ edit_event_type: "edit_pcb_group_location";
2134
+ original_center: {
2135
+ x: number;
2136
+ y: number;
2137
+ };
2138
+ new_center: {
2139
+ x: number;
2140
+ y: number;
2141
+ };
2142
+ pcb_group_id: string;
2143
+ in_progress?: boolean | undefined;
2144
+ }, {
2145
+ edit_event_id: string;
2146
+ created_at: number;
2147
+ edit_event_type: "edit_pcb_group_location";
2148
+ original_center: {
2149
+ x: number;
2150
+ y: number;
2151
+ };
2152
+ new_center: {
2153
+ x: number;
2154
+ y: number;
2155
+ };
2156
+ pcb_group_id: string;
2157
+ in_progress?: boolean | undefined;
2158
+ }>;
2159
+ interface EditPcbGroupLocationEvent extends BaseManualEditEvent {
2160
+ edit_event_type: "edit_pcb_group_location";
2161
+ pcb_group_id: string;
2162
+ original_center: {
2163
+ x: number;
2164
+ y: number;
2165
+ };
2166
+ new_center: {
2167
+ x: number;
2168
+ y: number;
2169
+ };
2170
+ }
2171
+ type EditPcbGroupLocationEventInput = z.input<typeof edit_pcb_group_location_event>;
2172
+
2173
+ declare const edit_schematic_group_location_event: z.ZodObject<z.objectUtil.extendShape<{
2174
+ edit_event_id: z.ZodString;
2175
+ in_progress: z.ZodOptional<z.ZodBoolean>;
2176
+ created_at: z.ZodNumber;
2177
+ }, {
2178
+ edit_event_type: z.ZodLiteral<"edit_schematic_group_location">;
2179
+ schematic_group_id: z.ZodString;
2180
+ original_center: z.ZodObject<{
2181
+ x: z.ZodNumber;
2182
+ y: z.ZodNumber;
2183
+ }, "strip", z.ZodTypeAny, {
2184
+ x: number;
2185
+ y: number;
2186
+ }, {
2187
+ x: number;
2188
+ y: number;
2189
+ }>;
2190
+ new_center: z.ZodObject<{
2191
+ x: z.ZodNumber;
2192
+ y: z.ZodNumber;
2193
+ }, "strip", z.ZodTypeAny, {
2194
+ x: number;
2195
+ y: number;
2196
+ }, {
2197
+ x: number;
2198
+ y: number;
2199
+ }>;
2200
+ }>, "strip", z.ZodTypeAny, {
2201
+ edit_event_id: string;
2202
+ created_at: number;
2203
+ edit_event_type: "edit_schematic_group_location";
2204
+ original_center: {
2205
+ x: number;
2206
+ y: number;
2207
+ };
2208
+ new_center: {
2209
+ x: number;
2210
+ y: number;
2211
+ };
2212
+ schematic_group_id: string;
2213
+ in_progress?: boolean | undefined;
2214
+ }, {
2215
+ edit_event_id: string;
2216
+ created_at: number;
2217
+ edit_event_type: "edit_schematic_group_location";
2218
+ original_center: {
2219
+ x: number;
2220
+ y: number;
2221
+ };
2222
+ new_center: {
2223
+ x: number;
2224
+ y: number;
2225
+ };
2226
+ schematic_group_id: string;
2227
+ in_progress?: boolean | undefined;
2228
+ }>;
2229
+ interface EditSchematicGroupLocationEvent extends BaseManualEditEvent {
2230
+ edit_event_type: "edit_schematic_group_location";
2231
+ schematic_group_id: string;
2232
+ original_center: {
2233
+ x: number;
2234
+ y: number;
2235
+ };
2236
+ new_center: {
2237
+ x: number;
2238
+ y: number;
2239
+ };
2240
+ }
2241
+ type EditSchematicGroupLocationEventInput = z.input<typeof edit_schematic_group_location_event>;
2242
+
2103
2243
  type ManualEditEvent = EditPcbComponentLocationEvent | EditTraceHintEvent | EditSchematicComponentLocationEvent;
2104
2244
  declare const manual_edit_event: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
2105
2245
  edit_event_id: z.ZodString;
@@ -8104,7 +8244,7 @@ interface CircularHoleWithRectPlatedProps extends Omit<PcbLayoutProps, "pcbRotat
8104
8244
  rectPadHeight: number | string;
8105
8245
  holeShape?: "circle";
8106
8246
  padShape?: "rect";
8107
- shape?: "circularHoleWithRectPad";
8247
+ shape?: "circular_hole_with_rect_pad";
8108
8248
  portHints?: PortHints;
8109
8249
  }
8110
8250
  type PlatedHoleProps = CirclePlatedHoleProps | OvalPlatedHoleProps | PillPlatedHoleProps | CircularHoleWithRectPlatedProps;
@@ -8257,7 +8397,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodUnion<[z.ZodObject<z.objectUtil
8257
8397
  rectPadHeight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
8258
8398
  holeShape: z.ZodOptional<z.ZodLiteral<"circle">>;
8259
8399
  padShape: z.ZodOptional<z.ZodLiteral<"rect">>;
8260
- shape: z.ZodOptional<z.ZodLiteral<"circularHoleWithRectPad">>;
8400
+ shape: z.ZodOptional<z.ZodLiteral<"circular_hole_with_rect_pad">>;
8261
8401
  portHints: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
8262
8402
  }>, "strip", z.ZodTypeAny, {
8263
8403
  holeDiameter: number;
@@ -8266,7 +8406,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodUnion<[z.ZodObject<z.objectUtil
8266
8406
  pcbX?: number | undefined;
8267
8407
  pcbY?: number | undefined;
8268
8408
  name?: string | undefined;
8269
- shape?: "circularHoleWithRectPad" | undefined;
8409
+ shape?: "circular_hole_with_rect_pad" | undefined;
8270
8410
  portHints?: (string | number)[] | undefined;
8271
8411
  holeShape?: "circle" | undefined;
8272
8412
  padShape?: "rect" | undefined;
@@ -8277,7 +8417,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodUnion<[z.ZodObject<z.objectUtil
8277
8417
  pcbX?: string | number | undefined;
8278
8418
  pcbY?: string | number | undefined;
8279
8419
  name?: string | undefined;
8280
- shape?: "circularHoleWithRectPad" | undefined;
8420
+ shape?: "circular_hole_with_rect_pad" | undefined;
8281
8421
  portHints?: (string | number)[] | undefined;
8282
8422
  holeShape?: "circle" | undefined;
8283
8423
  padShape?: "rect" | undefined;
@@ -8288,7 +8428,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodUnion<[z.ZodObject<z.objectUtil
8288
8428
  pcbX?: number | undefined;
8289
8429
  pcbY?: number | undefined;
8290
8430
  name?: string | undefined;
8291
- shape?: "circularHoleWithRectPad" | undefined;
8431
+ shape?: "circular_hole_with_rect_pad" | undefined;
8292
8432
  portHints?: (string | number)[] | undefined;
8293
8433
  holeShape?: "circle" | undefined;
8294
8434
  padShape?: "rect" | undefined;
@@ -8299,7 +8439,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodUnion<[z.ZodObject<z.objectUtil
8299
8439
  pcbX?: string | number | undefined;
8300
8440
  pcbY?: string | number | undefined;
8301
8441
  name?: string | undefined;
8302
- shape?: "circularHoleWithRectPad" | undefined;
8442
+ shape?: "circular_hole_with_rect_pad" | undefined;
8303
8443
  portHints?: (string | number)[] | undefined;
8304
8444
  holeShape?: "circle" | undefined;
8305
8445
  padShape?: "rect" | undefined;
@@ -8342,7 +8482,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodUnion<[z.ZodObject<z.objectUtil
8342
8482
  pcbX?: number | undefined;
8343
8483
  pcbY?: number | undefined;
8344
8484
  name?: string | undefined;
8345
- shape?: "circularHoleWithRectPad" | undefined;
8485
+ shape?: "circular_hole_with_rect_pad" | undefined;
8346
8486
  portHints?: (string | number)[] | undefined;
8347
8487
  holeShape?: "circle" | undefined;
8348
8488
  padShape?: "rect" | undefined;
@@ -8385,7 +8525,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodUnion<[z.ZodObject<z.objectUtil
8385
8525
  pcbX?: string | number | undefined;
8386
8526
  pcbY?: string | number | undefined;
8387
8527
  name?: string | undefined;
8388
- shape?: "circularHoleWithRectPad" | undefined;
8528
+ shape?: "circular_hole_with_rect_pad" | undefined;
8389
8529
  portHints?: (string | number)[] | undefined;
8390
8530
  holeShape?: "circle" | undefined;
8391
8531
  padShape?: "rect" | undefined;
@@ -18601,4 +18741,4 @@ declare const platformConfig: z.ZodObject<{
18601
18741
  cloudAutorouterUrl?: string | undefined;
18602
18742
  }>;
18603
18743
 
18604
- export { type AutorouterConfig, type AutorouterProp, type BaseGroupProps, type BaseManualEditEvent, type BaseManualEditEventInput, type BatteryProps, type BoardProps, type CadModelBase, type CadModelJscad, type CadModelObj, type CadModelProp, type CadModelStl, type CapacitorPinLabels, type CapacitorProps, type ChipConnections, type ChipPinLabels, type ChipProps, type ChipPropsSU, type CirclePlatedHoleProps, type CircleSmtPadProps, type CircleSolderPasteProps, type CircularHoleWithRectPlatedProps, type CommonComponentProps, type CommonLayoutProps, type ComponentProps, type ConnectionTarget, type Connections, type ConstrainedLayoutProps, type ConstraintProps, type CrystalProps, type DiodeProps, type Direction, type DirectionAlongEdge, type EditPcbComponentLocationEvent, type EditPcbComponentLocationEventInput, type EditSchematicComponentLocationEvent, type EditSchematicComponentLocationEventInput, type EditTraceHintEvent, type EditTraceHintEventInput, type FabricationNotePathProps, type FabricationNoteTextProps, type Footprint, type FootprintProps, type FootprintPropsInput, type FootprintSoupElements, type GroupProps, type HoleProps, type InductorProps, type InferredChipProps, type InferredConstrainedLayoutProps, type InferredDiodeProps, type InferredHoleProps, type InferredSmtPadProps, type InferredSolderPasteProps, type InferredSwitchProps, type JumperProps, type LayoutConfig, type LedProps, type ManualEditEvent, type ManualEditEventInput, type ManualEditsFile, type ManualEditsFileInput, type ManualPcbPlacement, type ManualPcbPlacementInput, type ManualSchematicPlacement, type ManualSchematicPlacementInput, type ManualTraceHint, type ManualTraceHintInput, type MosfetProps, type NetAliasProps, type NetProps, type NonSubcircuitGroupProps, type OvalPlatedHoleProps, type PartsEngine, type PcbKeepoutProps, type PcbLayoutProps, type PcbRouteCache, type PcbSameXConstraint, type PcbSameYConstraint, type PcbTraceProps, type PcbXDistConstraint, type PcbYDistConstraint, type PillPlatedHoleProps, type PillSmtPadProps, type PinCompatibleVariant, type PinHeaderProps, type PinLabelFromPinLabelMap, type PinLabelsProp, type PinSideDefinition, type PinVariant, type PlatedHoleProps, type PlatformConfig, type PortHints, type PortProps, type PotentiometerPinVariant, type PotentiometerProps, type PowerSourceProps, type PushButtonProps, type RectSmtPadProps, type RectSolderPasteProps, type ResistorPinLabels, type ResistorProps, type ResonatorPinVariant, type ResonatorProps, type RotatedRectSmtPadProps, type SchematicBoxProps, type SchematicLineProps, type SchematicPathProps, type SchematicPinArrangement, type SchematicPinArrangementWithPinCounts, type SchematicPinArrangementWithSides, type SchematicPinArrangementWithSizes, type SchematicPinStyle, type SchematicPortArrangement, type SchematicPortArrangementWithPinCounts, type SchematicPortArrangementWithSides, type SchematicPortArrangementWithSizes, type SchematicTextProps, type Selectors, type SilkscreenCircleProps, type SilkscreenLineProps, type SilkscreenPathProps, type SilkscreenRectProps, type SilkscreenTextProps, type SmtPadProps, type SolderPasteProps, type StampboardProps, type SubcircuitGroupProps, type SubcircuitGroupPropsWithBool, type SubcircuitProps, type SupplierName, type SupplierPartNumbers, type SupplierProps, type SwitchProps, type TraceHintProps, type TraceProps, type TransistorProps, type ViaProps, autorouterConfig, autorouterProp, baseGroupProps, base_manual_edit_event, batteryPins, batteryProps, boardProps, bugProps, cadModelBase, cadModelJscad, cadModelObj, cadModelProp, cadModelStl, capacitorPinLabels, capacitorPins, capacitorProps, chipProps, circleSmtPadProps, circleSolderPasteProps, commonComponentProps, commonLayoutProps, componentProps, constrainedLayoutProps, constraintProps, crystalPins, crystalProps, diodePins, diodeProps, direction, directionAlongEdge, distanceOrMultiplier, edit_component_location_event, edit_pcb_component_location_event, edit_schematic_component_location_event, edit_trace_hint_event, explicitPinSideDefinition, fabricationNotePathProps, fabricationNoteTextProps, footprintProp, footprintProps, groupProps, holeProps, inductorPins, inductorProps, jumperProps, layoutConfig, ledPins, ledProps, lrPins, lrPolarPins, manual_edit_event, manual_edits_file, manual_pcb_placement, manual_schematic_placement, manual_trace_hint, mosfetPins, mosfetProps, netAliasProps, netProps, partsEngine, pcbKeepoutProps, pcbLayoutProps, pcbSameXConstraintProps, pcbSameYConstraintProps, pcbTraceProps, pcbXDistConstraintProps, pcbYDistConstraintProps, pillSmtPadProps, pinCompatibleVariant, pinHeaderProps, pinLabelsProp, platedHoleProps, platformConfig, point3, portHints, portProps, portRef, potentiometerProps, powerSourceProps, pushButtonProps, rectSmtPadProps, rectSolderPasteProps, resistorPinLabels, resistorPins, resistorProps, resonatorProps, rotatedRectSmtPadProps, rotationPoint3, routeHintPointProps, schematicBoxProps, schematicLineProps, schematicPathProps, schematicPinArrangement, schematicPinStyle, schematicPortArrangement, schematicTextProps, silkscreenCircleProps, silkscreenLineProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, smtPadProps, solderPasteProps, stampboardProps, subcircuitGroupProps, subcircuitGroupPropsWithBool, subcircuitProps, supplierProps, switchProps, traceHintProps, traceProps, transistorPins, transistorProps, viaProps };
18744
+ export { type AutorouterConfig, type AutorouterProp, type BaseGroupProps, type BaseManualEditEvent, type BaseManualEditEventInput, type BatteryProps, type BoardProps, type CadModelBase, type CadModelJscad, type CadModelObj, type CadModelProp, type CadModelStl, type CapacitorPinLabels, type CapacitorProps, type ChipConnections, type ChipPinLabels, type ChipProps, type ChipPropsSU, type CirclePlatedHoleProps, type CircleSmtPadProps, type CircleSolderPasteProps, type CircularHoleWithRectPlatedProps, type CommonComponentProps, type CommonLayoutProps, type ComponentProps, type ConnectionTarget, type Connections, type ConstrainedLayoutProps, type ConstraintProps, type CrystalProps, type DiodeProps, type Direction, type DirectionAlongEdge, type EditPcbComponentLocationEvent, type EditPcbComponentLocationEventInput, type EditPcbGroupLocationEvent, type EditPcbGroupLocationEventInput, type EditSchematicComponentLocationEvent, type EditSchematicComponentLocationEventInput, type EditSchematicGroupLocationEvent, type EditSchematicGroupLocationEventInput, type EditTraceHintEvent, type EditTraceHintEventInput, type FabricationNotePathProps, type FabricationNoteTextProps, type Footprint, type FootprintProps, type FootprintPropsInput, type FootprintSoupElements, type GroupProps, type HoleProps, type InductorProps, type InferredChipProps, type InferredConstrainedLayoutProps, type InferredDiodeProps, type InferredHoleProps, type InferredSmtPadProps, type InferredSolderPasteProps, type InferredSwitchProps, type JumperProps, type LayoutConfig, type LedProps, type ManualEditEvent, type ManualEditEventInput, type ManualEditsFile, type ManualEditsFileInput, type ManualPcbPlacement, type ManualPcbPlacementInput, type ManualSchematicPlacement, type ManualSchematicPlacementInput, type ManualTraceHint, type ManualTraceHintInput, type MosfetProps, type NetAliasProps, type NetProps, type NonSubcircuitGroupProps, type OvalPlatedHoleProps, type PartsEngine, type PcbKeepoutProps, type PcbLayoutProps, type PcbRouteCache, type PcbSameXConstraint, type PcbSameYConstraint, type PcbTraceProps, type PcbXDistConstraint, type PcbYDistConstraint, type PillPlatedHoleProps, type PillSmtPadProps, type PinCompatibleVariant, type PinHeaderProps, type PinLabelFromPinLabelMap, type PinLabelsProp, type PinSideDefinition, type PinVariant, type PlatedHoleProps, type PlatformConfig, type PortHints, type PortProps, type PotentiometerPinVariant, type PotentiometerProps, type PowerSourceProps, type PushButtonProps, type RectSmtPadProps, type RectSolderPasteProps, type ResistorPinLabels, type ResistorProps, type ResonatorPinVariant, type ResonatorProps, type RotatedRectSmtPadProps, type SchematicBoxProps, type SchematicLineProps, type SchematicPathProps, type SchematicPinArrangement, type SchematicPinArrangementWithPinCounts, type SchematicPinArrangementWithSides, type SchematicPinArrangementWithSizes, type SchematicPinStyle, type SchematicPortArrangement, type SchematicPortArrangementWithPinCounts, type SchematicPortArrangementWithSides, type SchematicPortArrangementWithSizes, type SchematicTextProps, type Selectors, type SilkscreenCircleProps, type SilkscreenLineProps, type SilkscreenPathProps, type SilkscreenRectProps, type SilkscreenTextProps, type SmtPadProps, type SolderPasteProps, type StampboardProps, type SubcircuitGroupProps, type SubcircuitGroupPropsWithBool, type SubcircuitProps, type SupplierName, type SupplierPartNumbers, type SupplierProps, type SwitchProps, type TraceHintProps, type TraceProps, type TransistorProps, type ViaProps, autorouterConfig, autorouterProp, baseGroupProps, base_manual_edit_event, batteryPins, batteryProps, boardProps, bugProps, cadModelBase, cadModelJscad, cadModelObj, cadModelProp, cadModelStl, capacitorPinLabels, capacitorPins, capacitorProps, chipProps, circleSmtPadProps, circleSolderPasteProps, commonComponentProps, commonLayoutProps, componentProps, constrainedLayoutProps, constraintProps, crystalPins, crystalProps, diodePins, diodeProps, direction, directionAlongEdge, distanceOrMultiplier, edit_component_location_event, edit_pcb_component_location_event, edit_pcb_group_location_event, edit_schematic_component_location_event, edit_schematic_group_location_event, edit_trace_hint_event, explicitPinSideDefinition, fabricationNotePathProps, fabricationNoteTextProps, footprintProp, footprintProps, groupProps, holeProps, inductorPins, inductorProps, jumperProps, layoutConfig, ledPins, ledProps, lrPins, lrPolarPins, manual_edit_event, manual_edits_file, manual_pcb_placement, manual_schematic_placement, manual_trace_hint, mosfetPins, mosfetProps, netAliasProps, netProps, partsEngine, pcbKeepoutProps, pcbLayoutProps, pcbSameXConstraintProps, pcbSameYConstraintProps, pcbTraceProps, pcbXDistConstraintProps, pcbYDistConstraintProps, pillSmtPadProps, pinCompatibleVariant, pinHeaderProps, pinLabelsProp, platedHoleProps, platformConfig, point3, portHints, portProps, portRef, potentiometerProps, powerSourceProps, pushButtonProps, rectSmtPadProps, rectSolderPasteProps, resistorPinLabels, resistorPins, resistorProps, resonatorProps, rotatedRectSmtPadProps, rotationPoint3, routeHintPointProps, schematicBoxProps, schematicLineProps, schematicPathProps, schematicPinArrangement, schematicPinStyle, schematicPortArrangement, schematicTextProps, silkscreenCircleProps, silkscreenLineProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, smtPadProps, solderPasteProps, stampboardProps, subcircuitGroupProps, subcircuitGroupPropsWithBool, subcircuitProps, supplierProps, switchProps, traceHintProps, traceProps, transistorPins, transistorProps, viaProps };