@tscircuit/props 0.0.372 → 0.0.374

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/README.md CHANGED
@@ -188,6 +188,7 @@ export interface AnalogSimulationProps {
188
188
  simulationType?: "spice_transient_analysis";
189
189
  duration?: number | string;
190
190
  timePerStep?: number | string;
191
+ spiceEngine?: AutocompleteString<"spicey" | "ngspice">;
191
192
  }
192
193
  ```
193
194
 
@@ -1454,6 +1455,7 @@ export interface TestpointProps extends CommonComponentProps {
1454
1455
  * Height of the pad when padShape is rect
1455
1456
  */
1456
1457
  height?: number | string;
1458
+ connections?: TestpointConnections;
1457
1459
  }
1458
1460
  ```
1459
1461
 
@@ -1561,6 +1563,8 @@ export interface PlatformConfig {
1561
1563
  includeBoardFiles?: string[];
1562
1564
  snapshotsDir?: string;
1563
1565
 
1566
+ defaultSpiceEngine?: AutocompleteString<"spicey" | "ngspice">;
1567
+
1564
1568
  pcbDisabled?: boolean;
1565
1569
  schematicDisabled?: boolean;
1566
1570
  partsEngineDisabled?: boolean;
@@ -1601,6 +1605,7 @@ export interface ProjectConfig
1601
1605
  | "printBoardInformationToSilkscreen"
1602
1606
  | "includeBoardFiles"
1603
1607
  | "snapshotsDir"
1608
+ | "defaultSpiceEngine"
1604
1609
  > {}
1605
1610
  ```
1606
1611
 
package/dist/index.d.ts CHANGED
@@ -38941,19 +38941,23 @@ interface AnalogSimulationProps {
38941
38941
  simulationType?: "spice_transient_analysis";
38942
38942
  duration?: number | string;
38943
38943
  timePerStep?: number | string;
38944
+ spiceEngine?: AutocompleteString<"spicey" | "ngspice">;
38944
38945
  }
38945
38946
  declare const analogSimulationProps: z.ZodObject<{
38946
38947
  simulationType: z.ZodDefault<z.ZodLiteral<"spice_transient_analysis">>;
38947
38948
  duration: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
38948
38949
  timePerStep: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
38950
+ spiceEngine: z.ZodOptional<z.ZodType<AutocompleteString<"spicey" | "ngspice">, z.ZodTypeDef, AutocompleteString<"spicey" | "ngspice">>>;
38949
38951
  }, "strip", z.ZodTypeAny, {
38950
38952
  simulationType: "spice_transient_analysis";
38951
38953
  duration?: number | undefined;
38952
38954
  timePerStep?: number | undefined;
38955
+ spiceEngine?: AutocompleteString<"spicey" | "ngspice"> | undefined;
38953
38956
  }, {
38954
38957
  duration?: string | number | undefined;
38955
38958
  simulationType?: "spice_transient_analysis" | undefined;
38956
38959
  timePerStep?: string | number | undefined;
38960
+ spiceEngine?: AutocompleteString<"spicey" | "ngspice"> | undefined;
38957
38961
  }>;
38958
38962
 
38959
38963
  declare const transistorPinsLabels: readonly ["pin1", "pin2", "pin3", "emitter", "collector", "base", "gate", "source", "drain"];
@@ -46830,6 +46834,16 @@ declare const viaProps: z.ZodObject<{
46830
46834
  }>;
46831
46835
  type InferredViaProps = z.input<typeof viaProps>;
46832
46836
 
46837
+ declare const testpointPins: readonly ["pin1"];
46838
+ type TestpointPinLabels = (typeof testpointPins)[number];
46839
+ declare const testpointConnectionsProp: z.ZodObject<{
46840
+ pin1: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString, "many">>]>, z.ZodArray<z.ZodString, "many">]>;
46841
+ }, "strict", z.ZodTypeAny, {
46842
+ pin1: string | readonly string[] | string[];
46843
+ }, {
46844
+ pin1: string | readonly string[] | string[];
46845
+ }>;
46846
+ type TestpointConnections = z.infer<typeof testpointConnectionsProp>;
46833
46847
  interface TestpointProps extends CommonComponentProps {
46834
46848
  /**
46835
46849
  * The footprint variant of the testpoint either a surface pad or through-hole
@@ -46855,6 +46869,7 @@ interface TestpointProps extends CommonComponentProps {
46855
46869
  * Height of the pad when padShape is rect
46856
46870
  */
46857
46871
  height?: number | string;
46872
+ connections?: TestpointConnections;
46858
46873
  }
46859
46874
  declare const testpointProps: z.ZodEffects<z.ZodObject<{
46860
46875
  pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -47512,6 +47527,13 @@ declare const testpointProps: z.ZodEffects<z.ZodObject<{
47512
47527
  highlightColor?: string | undefined;
47513
47528
  }>>>;
47514
47529
  } & {
47530
+ connections: z.ZodOptional<z.ZodObject<{
47531
+ pin1: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString, "many">>]>, z.ZodArray<z.ZodString, "many">]>;
47532
+ }, "strict", z.ZodTypeAny, {
47533
+ pin1: string | readonly string[] | string[];
47534
+ }, {
47535
+ pin1: string | readonly string[] | string[];
47536
+ }>>;
47515
47537
  footprintVariant: z.ZodOptional<z.ZodEnum<["pad", "through_hole"]>>;
47516
47538
  padShape: z.ZodDefault<z.ZodOptional<z.ZodEnum<["rect", "circle"]>>>;
47517
47539
  padDiameter: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -47703,6 +47725,9 @@ declare const testpointProps: z.ZodEffects<z.ZodObject<{
47703
47725
  obstructsWithinBounds?: boolean | undefined;
47704
47726
  width?: number | undefined;
47705
47727
  height?: number | undefined;
47728
+ connections?: {
47729
+ pin1: string | readonly string[] | string[];
47730
+ } | undefined;
47706
47731
  holeDiameter?: number | undefined;
47707
47732
  footprintVariant?: "pad" | "through_hole" | undefined;
47708
47733
  padDiameter?: number | undefined;
@@ -47892,6 +47917,9 @@ declare const testpointProps: z.ZodEffects<z.ZodObject<{
47892
47917
  obstructsWithinBounds?: boolean | undefined;
47893
47918
  width?: string | number | undefined;
47894
47919
  height?: string | number | undefined;
47920
+ connections?: {
47921
+ pin1: string | readonly string[] | string[];
47922
+ } | undefined;
47895
47923
  holeDiameter?: string | number | undefined;
47896
47924
  padShape?: "circle" | "rect" | undefined;
47897
47925
  footprintVariant?: "pad" | "through_hole" | undefined;
@@ -48081,6 +48109,9 @@ declare const testpointProps: z.ZodEffects<z.ZodObject<{
48081
48109
  obstructsWithinBounds?: boolean | undefined;
48082
48110
  width?: number | undefined;
48083
48111
  height?: number | undefined;
48112
+ connections?: {
48113
+ pin1: string | readonly string[] | string[];
48114
+ } | undefined;
48084
48115
  holeDiameter?: number | undefined;
48085
48116
  footprintVariant?: "pad" | "through_hole" | undefined;
48086
48117
  padDiameter?: number | undefined;
@@ -48270,6 +48301,9 @@ declare const testpointProps: z.ZodEffects<z.ZodObject<{
48270
48301
  obstructsWithinBounds?: boolean | undefined;
48271
48302
  width?: string | number | undefined;
48272
48303
  height?: string | number | undefined;
48304
+ connections?: {
48305
+ pin1: string | readonly string[] | string[];
48306
+ } | undefined;
48273
48307
  holeDiameter?: string | number | undefined;
48274
48308
  padShape?: "circle" | "rect" | undefined;
48275
48309
  footprintVariant?: "pad" | "through_hole" | undefined;
@@ -53663,6 +53697,7 @@ interface PlatformConfig {
53663
53697
  printBoardInformationToSilkscreen?: boolean;
53664
53698
  includeBoardFiles?: string[];
53665
53699
  snapshotsDir?: string;
53700
+ defaultSpiceEngine?: AutocompleteString<"spicey" | "ngspice">;
53666
53701
  pcbDisabled?: boolean;
53667
53702
  schematicDisabled?: boolean;
53668
53703
  partsEngineDisabled?: boolean;
@@ -53672,8 +53707,8 @@ interface PlatformConfig {
53672
53707
  }
53673
53708
  declare const platformConfig: z.ZodType<PlatformConfig>;
53674
53709
 
53675
- interface ProjectConfig extends Pick<PlatformConfig, "projectName" | "projectBaseUrl" | "version" | "url" | "printBoardInformationToSilkscreen" | "includeBoardFiles" | "snapshotsDir"> {
53710
+ interface ProjectConfig extends Pick<PlatformConfig, "projectName" | "projectBaseUrl" | "version" | "url" | "printBoardInformationToSilkscreen" | "includeBoardFiles" | "snapshotsDir" | "defaultSpiceEngine"> {
53676
53711
  }
53677
53712
  declare const projectConfig: z.ZodType<ProjectConfig>;
53678
53713
 
53679
- export { type AnalogSimulationProps, type AutocompleteString, type AutorouterConfig, type AutorouterDefinition, type AutorouterInstance, type AutorouterPreset, type AutorouterProp, type BaseGroupProps, type BaseManualEditEvent, type BaseManualEditEventInput, type BasicFootprint, type BatteryPinLabels, type BatteryProps, type BoardColor, type BoardColorPreset, type BoardProps, type Border, type BreakoutPointProps, type BreakoutProps, type CadAssemblyProps, type CadAssemblyPropsInput, type CadModelBase, type CadModelGlb, type CadModelGltf, type CadModelJscad, type CadModelObj, type CadModelProp, type CadModelProps, type CadModelPropsInput, type CadModelStep, type CadModelStl, type CadModelWrl, type CapacitorPinLabels, type CapacitorProps, type ChipConnections, type ChipPinLabels, type ChipProps, type ChipPropsSU, type CircleCutoutProps, type CircleHoleProps, type CirclePlatedHoleProps, type CircleSmtPadProps, type CircleSolderPasteProps, type CircuitJson, type CircularHoleWithRectPlatedProps, type CommonComponentProps, type CommonLayoutProps, type ComponentProps, type ConnectionTarget, type Connections, type ConnectorProps, type ConstrainedLayoutProps, type ConstraintProps, type CopperPourProps, type CopperPourPropsInput, type CourtyardOutlineProps, type CourtyardRectProps, type CrystalPinLabels, type CrystalProps, type CutoutProps, type CutoutPropsInput, type DiodePinLabels, 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 FabricationNoteDimensionProps, type FabricationNoteDimensionPropsInput, type FabricationNotePathProps, type FabricationNoteRectProps, type FabricationNoteTextProps, type FabricationNoteTextPropsInput, type FootprintFileParserEntry, type FootprintLibraryResult, type FootprintProp, type FootprintProps, type FootprintPropsInput, type FootprintSoupElements, type FusePinLabels, type FuseProps, type GroupProps, type HoleProps, type InductorPinLabels, type InductorProps, type InferredChipProps, type InferredConstrainedLayoutProps, type InferredDiodeProps, type InferredFuseProps, type InferredHoleProps, type InferredSmtPadProps, type InferredSolderPasteProps, type InferredSwitchProps, type InferredTestpointProps, type InferredViaProps, type JumperProps, type KicadAutocompleteStringPath, type KicadPath, type LayoutConfig, type LedPinLabels, type LedProps, type ManualEditEvent, type ManualEditEventInput, type ManualEditsFile, type ManualEditsFileInput, type ManualPcbPlacement, type ManualPcbPlacementInput, type ManualSchematicPlacement, type ManualSchematicPlacementInput, type ManualTraceHint, type ManualTraceHintInput, type MosfetPinLabels, type MosfetProps, type NetAliasProps, type NetLabelProps, type NetProps, type NonSubcircuitGroupProps, type OvalPlatedHoleProps, type PanelProps, type PartsEngine, type PcbKeepoutProps, type PcbLayoutProps, type PcbNoteDimensionProps, type PcbNoteDimensionPropsInput, type PcbNoteLineProps, type PcbNoteLinePropsInput, type PcbNotePathProps, type PcbNotePathPropsInput, type PcbNoteRectProps, type PcbNoteRectPropsInput, type PcbNoteTextProps, type PcbNoteTextPropsInput, type PcbPositionMode, type PcbRouteCache, type PcbSameXConstraint, type PcbSameYConstraint, type PcbTraceProps, type PcbXDistConstraint, type PcbYDistConstraint, type PillHoleProps, type PillPlatedHoleProps, type PillSmtPadProps, type PillWithRectPadPlatedHoleProps, type PinAttributeMap, type PinCompatibleVariant, type PinHeaderProps, type PinLabelFromPinLabelMap, type PinLabelsProp, type PinSideDefinition, type PinVariant, type PinoutProps, type PlatedHoleProps, type PlatformConfig, type PolygonCutoutProps, type PolygonSmtPadProps, type PortHints, type PortProps, type PositionMode, type PotentiometerPinVariant, type PotentiometerProps, type PowerSourceProps, type ProjectConfig, type PushButtonProps, type RectCutoutProps, type RectSmtPadProps, type RectSolderPasteProps, type ResistorPinLabels, type ResistorProps, type ResonatorPinVariant, type ResonatorProps, type RotatedRectSmtPadProps, type SchematicArcProps, type SchematicBoxProps, type SchematicCellProps, type SchematicCircleProps, type SchematicLineProps, type SchematicOrientation, type SchematicPathProps, type SchematicPinArrangement, type SchematicPinArrangementWithPinCounts, type SchematicPinArrangementWithSides, type SchematicPinArrangementWithSizes, type SchematicPinLabel, type SchematicPinStyle, type SchematicPortArrangement, type SchematicPortArrangementWithPinCounts, type SchematicPortArrangementWithSides, type SchematicPortArrangementWithSizes, type SchematicRectProps, type SchematicRowProps, type SchematicTableProps, type SchematicTextProps, type Selectors, type SilkscreenCircleProps, type SilkscreenLineProps, type SilkscreenPathProps, type SilkscreenRectProps, type SilkscreenTextProps, type SimpleRouteJson, type SmtPadProps, type SolderJumperProps, type SolderPasteProps, type SpiceEngine, type SpiceEngineSimulationResult, type StampboardProps, type SubcircuitGroupProps, type SubcircuitGroupPropsWithBool, type SubcircuitProps, type SupplierName, type SupplierPartNumbers, type SupplierProps, type SwitchProps, type SymbolProp, type SymbolProps, type SymbolPropsInput, type TestpointProps, type TraceHintProps, type TraceProps, type TransistorPinLabels, type TransistorProps, type ViaProps, type VoltageProbeProps, type VoltageSourcePinLabels, type VoltageSourceProps, type WaveShape, analogSimulationProps, autorouterConfig, autorouterPreset, autorouterProp, baseGroupProps, base_manual_edit_event, batteryPins, batteryProps, boardProps, border, breakoutPointProps, breakoutProps, bugProps, cadModelBase, cadModelGlb, cadModelGltf, cadModelJscad, cadModelObj, cadModelProp, cadModelStep, cadModelStl, cadModelWrl, cadassemblyProps, cadmodelProps, capacitorPinLabels, capacitorPins, capacitorProps, chipProps, circleCutoutProps, circleSmtPadProps, circleSolderPasteProps, commonComponentProps, commonLayoutProps, componentProps, connectorProps, constrainedLayoutProps, constraintProps, copperPourProps, courtyardOutlineProps, courtyardRectProps, crystalPins, crystalProps, cutoutProps, 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, fabricationNoteDimensionProps, fabricationNotePathProps, fabricationNoteRectProps, fabricationNoteTextProps, footprintProp, footprintProps, fusePinLabels, fuseProps, 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, netLabelProps, netProps, ninePointAnchor, panelProps, partsEngine, pcbKeepoutProps, pcbLayoutProps, pcbNoteDimensionProps, pcbNoteLineProps, pcbNotePathProps, pcbNoteRectProps, pcbNoteTextProps, pcbSameXConstraintProps, pcbSameYConstraintProps, pcbTraceProps, pcbXDistConstraintProps, pcbYDistConstraintProps, pillSmtPadProps, pinAttributeMap, pinCompatibleVariant, pinHeaderProps, pinLabelsProp, pinoutProps, platedHoleProps, platformConfig, point3, polygonCutoutProps, polygonSmtPadProps, portHints, portProps, portRef, potentiometerProps, powerSourceProps, projectConfig, pushButtonProps, rectCutoutProps, rectSmtPadProps, rectSolderPasteProps, resistorPinLabels, resistorPins, resistorProps, resonatorProps, rotatedRectSmtPadProps, rotationPoint3, routeHintPointProps, schematicArcProps, schematicBoxProps, schematicCellProps, schematicCircleProps, schematicLineProps, schematicOrientation, schematicPathProps, schematicPinArrangement, schematicPinLabel, schematicPinStyle, schematicPortArrangement, schematicRectProps, schematicRowProps, schematicTableProps, schematicTextProps, silkscreenCircleProps, silkscreenLineProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, smtPadProps, solderPasteProps, solderjumperProps, stampboardProps, subcircuitGroupProps, subcircuitGroupPropsWithBool, subcircuitProps, supplierProps, switchProps, symbolProp, symbolProps, testpointProps, traceHintProps, traceProps, transistorPins, transistorPinsLabels, transistorProps, viaProps, voltageProbeProps, voltageSourcePinLabels, voltageSourcePins, voltageSourceProps };
53714
+ export { type AnalogSimulationProps, type AutocompleteString, type AutorouterConfig, type AutorouterDefinition, type AutorouterInstance, type AutorouterPreset, type AutorouterProp, type BaseGroupProps, type BaseManualEditEvent, type BaseManualEditEventInput, type BasicFootprint, type BatteryPinLabels, type BatteryProps, type BoardColor, type BoardColorPreset, type BoardProps, type Border, type BreakoutPointProps, type BreakoutProps, type CadAssemblyProps, type CadAssemblyPropsInput, type CadModelBase, type CadModelGlb, type CadModelGltf, type CadModelJscad, type CadModelObj, type CadModelProp, type CadModelProps, type CadModelPropsInput, type CadModelStep, type CadModelStl, type CadModelWrl, type CapacitorPinLabels, type CapacitorProps, type ChipConnections, type ChipPinLabels, type ChipProps, type ChipPropsSU, type CircleCutoutProps, type CircleHoleProps, type CirclePlatedHoleProps, type CircleSmtPadProps, type CircleSolderPasteProps, type CircuitJson, type CircularHoleWithRectPlatedProps, type CommonComponentProps, type CommonLayoutProps, type ComponentProps, type ConnectionTarget, type Connections, type ConnectorProps, type ConstrainedLayoutProps, type ConstraintProps, type CopperPourProps, type CopperPourPropsInput, type CourtyardOutlineProps, type CourtyardRectProps, type CrystalPinLabels, type CrystalProps, type CutoutProps, type CutoutPropsInput, type DiodePinLabels, 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 FabricationNoteDimensionProps, type FabricationNoteDimensionPropsInput, type FabricationNotePathProps, type FabricationNoteRectProps, type FabricationNoteTextProps, type FabricationNoteTextPropsInput, type FootprintFileParserEntry, type FootprintLibraryResult, type FootprintProp, type FootprintProps, type FootprintPropsInput, type FootprintSoupElements, type FusePinLabels, type FuseProps, type GroupProps, type HoleProps, type InductorPinLabels, type InductorProps, type InferredChipProps, type InferredConstrainedLayoutProps, type InferredDiodeProps, type InferredFuseProps, type InferredHoleProps, type InferredSmtPadProps, type InferredSolderPasteProps, type InferredSwitchProps, type InferredTestpointProps, type InferredViaProps, type JumperProps, type KicadAutocompleteStringPath, type KicadPath, type LayoutConfig, type LedPinLabels, type LedProps, type ManualEditEvent, type ManualEditEventInput, type ManualEditsFile, type ManualEditsFileInput, type ManualPcbPlacement, type ManualPcbPlacementInput, type ManualSchematicPlacement, type ManualSchematicPlacementInput, type ManualTraceHint, type ManualTraceHintInput, type MosfetPinLabels, type MosfetProps, type NetAliasProps, type NetLabelProps, type NetProps, type NonSubcircuitGroupProps, type OvalPlatedHoleProps, type PanelProps, type PartsEngine, type PcbKeepoutProps, type PcbLayoutProps, type PcbNoteDimensionProps, type PcbNoteDimensionPropsInput, type PcbNoteLineProps, type PcbNoteLinePropsInput, type PcbNotePathProps, type PcbNotePathPropsInput, type PcbNoteRectProps, type PcbNoteRectPropsInput, type PcbNoteTextProps, type PcbNoteTextPropsInput, type PcbPositionMode, type PcbRouteCache, type PcbSameXConstraint, type PcbSameYConstraint, type PcbTraceProps, type PcbXDistConstraint, type PcbYDistConstraint, type PillHoleProps, type PillPlatedHoleProps, type PillSmtPadProps, type PillWithRectPadPlatedHoleProps, type PinAttributeMap, type PinCompatibleVariant, type PinHeaderProps, type PinLabelFromPinLabelMap, type PinLabelsProp, type PinSideDefinition, type PinVariant, type PinoutProps, type PlatedHoleProps, type PlatformConfig, type PolygonCutoutProps, type PolygonSmtPadProps, type PortHints, type PortProps, type PositionMode, type PotentiometerPinVariant, type PotentiometerProps, type PowerSourceProps, type ProjectConfig, type PushButtonProps, type RectCutoutProps, type RectSmtPadProps, type RectSolderPasteProps, type ResistorPinLabels, type ResistorProps, type ResonatorPinVariant, type ResonatorProps, type RotatedRectSmtPadProps, type SchematicArcProps, type SchematicBoxProps, type SchematicCellProps, type SchematicCircleProps, type SchematicLineProps, type SchematicOrientation, type SchematicPathProps, type SchematicPinArrangement, type SchematicPinArrangementWithPinCounts, type SchematicPinArrangementWithSides, type SchematicPinArrangementWithSizes, type SchematicPinLabel, type SchematicPinStyle, type SchematicPortArrangement, type SchematicPortArrangementWithPinCounts, type SchematicPortArrangementWithSides, type SchematicPortArrangementWithSizes, type SchematicRectProps, type SchematicRowProps, type SchematicTableProps, type SchematicTextProps, type Selectors, type SilkscreenCircleProps, type SilkscreenLineProps, type SilkscreenPathProps, type SilkscreenRectProps, type SilkscreenTextProps, type SimpleRouteJson, type SmtPadProps, type SolderJumperProps, type SolderPasteProps, type SpiceEngine, type SpiceEngineSimulationResult, type StampboardProps, type SubcircuitGroupProps, type SubcircuitGroupPropsWithBool, type SubcircuitProps, type SupplierName, type SupplierPartNumbers, type SupplierProps, type SwitchProps, type SymbolProp, type SymbolProps, type SymbolPropsInput, type TestpointConnections, type TestpointPinLabels, type TestpointProps, type TraceHintProps, type TraceProps, type TransistorPinLabels, type TransistorProps, type ViaProps, type VoltageProbeProps, type VoltageSourcePinLabels, type VoltageSourceProps, type WaveShape, analogSimulationProps, autorouterConfig, autorouterPreset, autorouterProp, baseGroupProps, base_manual_edit_event, batteryPins, batteryProps, boardProps, border, breakoutPointProps, breakoutProps, bugProps, cadModelBase, cadModelGlb, cadModelGltf, cadModelJscad, cadModelObj, cadModelProp, cadModelStep, cadModelStl, cadModelWrl, cadassemblyProps, cadmodelProps, capacitorPinLabels, capacitorPins, capacitorProps, chipProps, circleCutoutProps, circleSmtPadProps, circleSolderPasteProps, commonComponentProps, commonLayoutProps, componentProps, connectorProps, constrainedLayoutProps, constraintProps, copperPourProps, courtyardOutlineProps, courtyardRectProps, crystalPins, crystalProps, cutoutProps, 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, fabricationNoteDimensionProps, fabricationNotePathProps, fabricationNoteRectProps, fabricationNoteTextProps, footprintProp, footprintProps, fusePinLabels, fuseProps, 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, netLabelProps, netProps, ninePointAnchor, panelProps, partsEngine, pcbKeepoutProps, pcbLayoutProps, pcbNoteDimensionProps, pcbNoteLineProps, pcbNotePathProps, pcbNoteRectProps, pcbNoteTextProps, pcbSameXConstraintProps, pcbSameYConstraintProps, pcbTraceProps, pcbXDistConstraintProps, pcbYDistConstraintProps, pillSmtPadProps, pinAttributeMap, pinCompatibleVariant, pinHeaderProps, pinLabelsProp, pinoutProps, platedHoleProps, platformConfig, point3, polygonCutoutProps, polygonSmtPadProps, portHints, portProps, portRef, potentiometerProps, powerSourceProps, projectConfig, pushButtonProps, rectCutoutProps, rectSmtPadProps, rectSolderPasteProps, resistorPinLabels, resistorPins, resistorProps, resonatorProps, rotatedRectSmtPadProps, rotationPoint3, routeHintPointProps, schematicArcProps, schematicBoxProps, schematicCellProps, schematicCircleProps, schematicLineProps, schematicOrientation, schematicPathProps, schematicPinArrangement, schematicPinLabel, schematicPinStyle, schematicPortArrangement, schematicRectProps, schematicRowProps, schematicTableProps, schematicTextProps, silkscreenCircleProps, silkscreenLineProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, smtPadProps, solderPasteProps, solderjumperProps, stampboardProps, subcircuitGroupProps, subcircuitGroupPropsWithBool, subcircuitProps, supplierProps, switchProps, symbolProp, symbolProps, testpointPins, testpointProps, traceHintProps, traceProps, transistorPins, transistorPinsLabels, transistorProps, viaProps, voltageProbeProps, voltageSourcePinLabels, voltageSourcePins, voltageSourceProps };
package/dist/index.js CHANGED
@@ -1325,10 +1325,14 @@ expectTypesMatch(true);
1325
1325
  // lib/components/analogsimulation.ts
1326
1326
  import { ms } from "circuit-json";
1327
1327
  import { z as z59 } from "zod";
1328
+ var spiceEngine = z59.custom(
1329
+ (value) => typeof value === "string"
1330
+ );
1328
1331
  var analogSimulationProps = z59.object({
1329
1332
  simulationType: z59.literal("spice_transient_analysis").default("spice_transient_analysis"),
1330
1333
  duration: ms.optional(),
1331
- timePerStep: ms.optional()
1334
+ timePerStep: ms.optional(),
1335
+ spiceEngine: spiceEngine.optional()
1332
1336
  });
1333
1337
  expectTypesMatch(
1334
1338
  true
@@ -1624,7 +1628,12 @@ expectTypesMatch(true);
1624
1628
  // lib/components/testpoint.ts
1625
1629
  import { distance as distance19 } from "circuit-json";
1626
1630
  import { z as z72 } from "zod";
1631
+ var testpointPins = ["pin1"];
1632
+ var testpointConnectionsProp = z72.object({
1633
+ pin1: connectionTarget
1634
+ }).strict();
1627
1635
  var testpointProps = commonComponentProps.extend({
1636
+ connections: testpointConnectionsProp.optional(),
1628
1637
  footprintVariant: z72.enum(["pad", "through_hole"]).optional(),
1629
1638
  padShape: z72.enum(["rect", "circle"]).optional().default("circle"),
1630
1639
  padDiameter: distance19.optional(),
@@ -2139,6 +2148,9 @@ var spiceEngineZod = z104.object({
2139
2148
  "A function that takes a SPICE string and returns a simulation result"
2140
2149
  )
2141
2150
  });
2151
+ var defaultSpiceEngine = z104.custom(
2152
+ (value) => typeof value === "string"
2153
+ );
2142
2154
  var autorouterInstance = z104.object({
2143
2155
  run: z104.function().args().returns(z104.promise(z104.unknown())).describe("Run the autorouter"),
2144
2156
  getOutputSimpleRouteJson: z104.function().args().returns(z104.promise(z104.any())).describe("Get the resulting SimpleRouteJson")
@@ -2163,6 +2175,7 @@ var platformConfig = z104.object({
2163
2175
  snapshotsDir: z104.string().describe(
2164
2176
  'The directory where snapshots are stored for "tsci snapshot", defaults to "tests/__snapshots__"'
2165
2177
  ).optional(),
2178
+ defaultSpiceEngine: defaultSpiceEngine.optional(),
2166
2179
  localCacheEngine: z104.any().optional(),
2167
2180
  pcbDisabled: z104.boolean().optional(),
2168
2181
  schematicDisabled: z104.boolean().optional(),
@@ -2192,7 +2205,8 @@ var projectConfig = platformConfigObject.pick({
2192
2205
  url: true,
2193
2206
  printBoardInformationToSilkscreen: true,
2194
2207
  includeBoardFiles: true,
2195
- snapshotsDir: true
2208
+ snapshotsDir: true,
2209
+ defaultSpiceEngine: true
2196
2210
  });
2197
2211
  expectTypesMatch(true);
2198
2212
  export {
@@ -2353,6 +2367,7 @@ export {
2353
2367
  switchProps,
2354
2368
  symbolProp,
2355
2369
  symbolProps,
2370
+ testpointPins,
2356
2371
  testpointProps,
2357
2372
  traceHintProps,
2358
2373
  traceProps,