@tscircuit/props 0.0.567 → 0.0.568
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 +6 -6
- package/dist/index.js.map +1 -1
- package/lib/common/symbolProp.ts +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import * as react from 'react';
|
|
3
3
|
import { ReactElement } from 'react';
|
|
4
|
-
import { LayerRef, LayerRefInput, SourceNet, PcbPort, SourcePort, PcbComponent, SourceComponentBase,
|
|
4
|
+
import { LayerRef, AnyCircuitElement, LayerRefInput, SourceNet, PcbPort, SourcePort, PcbComponent, SourceComponentBase, CircuitJsonError, Point as Point$1, RouteHintPoint, PcbTrace, AnySourceComponent, VisibleLayer, RouteHintPointInput } from 'circuit-json';
|
|
5
5
|
|
|
6
6
|
declare const direction: z.ZodEnum<["up", "down", "left", "right"]>;
|
|
7
7
|
type Direction = "up" | "down" | "left" | "right";
|
|
@@ -6658,7 +6658,7 @@ declare const schStyle: z.ZodObject<{
|
|
|
6658
6658
|
defaultCapacitorOrientation?: "none" | "vertical" | undefined;
|
|
6659
6659
|
}>;
|
|
6660
6660
|
|
|
6661
|
-
type SymbolProp = string | ReactElement;
|
|
6661
|
+
type SymbolProp = string | ReactElement | AnyCircuitElement[];
|
|
6662
6662
|
declare const symbolProp: z.ZodType<SymbolProp, z.ZodTypeDef, SymbolProp>;
|
|
6663
6663
|
|
|
6664
6664
|
type PcbPositionMode = "relative_to_group_anchor" | "auto" | "relative_to_board_anchor" | "relative_to_component_anchor";
|
|
@@ -173493,7 +173493,7 @@ declare const voltageSourceProps: z.ZodObject<{
|
|
|
173493
173493
|
frequency?: number | undefined;
|
|
173494
173494
|
voltage?: number | undefined;
|
|
173495
173495
|
peakToPeakVoltage?: number | undefined;
|
|
173496
|
-
waveShape?: "square" | "
|
|
173496
|
+
waveShape?: "square" | "triangle" | "sawtooth" | "sinewave" | undefined;
|
|
173497
173497
|
phase?: number | undefined;
|
|
173498
173498
|
dutyCycle?: number | undefined;
|
|
173499
173499
|
pulseDelay?: number | undefined;
|
|
@@ -174085,7 +174085,7 @@ declare const voltageSourceProps: z.ZodObject<{
|
|
|
174085
174085
|
frequency?: string | number | undefined;
|
|
174086
174086
|
voltage?: string | number | undefined;
|
|
174087
174087
|
peakToPeakVoltage?: string | number | undefined;
|
|
174088
|
-
waveShape?: "square" | "
|
|
174088
|
+
waveShape?: "square" | "triangle" | "sawtooth" | "sinewave" | undefined;
|
|
174089
174089
|
phase?: string | number | undefined;
|
|
174090
174090
|
dutyCycle?: string | number | undefined;
|
|
174091
174091
|
pulseDelay?: string | number | undefined;
|
|
@@ -178054,7 +178054,7 @@ declare const currentSourceProps: z.ZodObject<{
|
|
|
178054
178054
|
schSheetName?: string | undefined;
|
|
178055
178055
|
connections?: Partial<Record<"pin1" | "pin2" | "pos" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
178056
178056
|
frequency?: number | undefined;
|
|
178057
|
-
waveShape?: "square" | "
|
|
178057
|
+
waveShape?: "square" | "triangle" | "sawtooth" | "sinewave" | undefined;
|
|
178058
178058
|
phase?: number | undefined;
|
|
178059
178059
|
dutyCycle?: number | undefined;
|
|
178060
178060
|
current?: number | undefined;
|
|
@@ -178641,7 +178641,7 @@ declare const currentSourceProps: z.ZodObject<{
|
|
|
178641
178641
|
schSheetName?: string | undefined;
|
|
178642
178642
|
connections?: Partial<Record<"pin1" | "pin2" | "pos" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
178643
178643
|
frequency?: string | number | undefined;
|
|
178644
|
-
waveShape?: "square" | "
|
|
178644
|
+
waveShape?: "square" | "triangle" | "sawtooth" | "sinewave" | undefined;
|
|
178645
178645
|
phase?: string | number | undefined;
|
|
178646
178646
|
dutyCycle?: string | number | undefined;
|
|
178647
178647
|
current?: string | number | undefined;
|