@tscircuit/props 0.0.368 → 0.0.370
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 +1 -0
- package/dist/index.d.ts +14 -13
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/lib/components/trace.ts +1 -1
- package/lib/platformConfig.ts +7 -0
- package/lib/projectConfig.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1310,6 +1310,7 @@ export interface RectSmtPadProps extends Omit<PcbLayoutProps, "pcbRotation"> {
|
|
|
1310
1310
|
width: Distance;
|
|
1311
1311
|
height: Distance;
|
|
1312
1312
|
rectBorderRadius?: Distance;
|
|
1313
|
+
cornerRadius?: Distance;
|
|
1313
1314
|
portHints?: PortHints;
|
|
1314
1315
|
coveredWithSolderMask?: boolean;
|
|
1315
1316
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -33007,7 +33007,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
33007
33007
|
trace_width?: string | number | undefined;
|
|
33008
33008
|
}>, "many">>;
|
|
33009
33009
|
pcbPathRelativeTo: z.ZodOptional<z.ZodString>;
|
|
33010
|
-
pcbPath: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
33010
|
+
pcbPath: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
33011
33011
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
33012
33012
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
33013
33013
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -33016,7 +33016,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
33016
33016
|
}, {
|
|
33017
33017
|
x: string | number;
|
|
33018
33018
|
y: string | number;
|
|
33019
|
-
}>, "many">>;
|
|
33019
|
+
}>, z.ZodString]>, "many">>;
|
|
33020
33020
|
schDisplayLabel: z.ZodOptional<z.ZodString>;
|
|
33021
33021
|
schStroke: z.ZodOptional<z.ZodString>;
|
|
33022
33022
|
highlightColor: z.ZodOptional<z.ZodString>;
|
|
@@ -33047,10 +33047,10 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
33047
33047
|
trace_width?: number | undefined;
|
|
33048
33048
|
}[] | undefined;
|
|
33049
33049
|
pcbPathRelativeTo?: string | undefined;
|
|
33050
|
-
pcbPath?: {
|
|
33050
|
+
pcbPath?: (string | {
|
|
33051
33051
|
x: number;
|
|
33052
33052
|
y: number;
|
|
33053
|
-
}[] | undefined;
|
|
33053
|
+
})[] | undefined;
|
|
33054
33054
|
schDisplayLabel?: string | undefined;
|
|
33055
33055
|
schStroke?: string | undefined;
|
|
33056
33056
|
}, {
|
|
@@ -33075,10 +33075,10 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
33075
33075
|
trace_width?: string | number | undefined;
|
|
33076
33076
|
}[] | undefined;
|
|
33077
33077
|
pcbPathRelativeTo?: string | undefined;
|
|
33078
|
-
pcbPath?: {
|
|
33078
|
+
pcbPath?: (string | {
|
|
33079
33079
|
x: string | number;
|
|
33080
33080
|
y: string | number;
|
|
33081
|
-
}[] | undefined;
|
|
33081
|
+
})[] | undefined;
|
|
33082
33082
|
schDisplayLabel?: string | undefined;
|
|
33083
33083
|
schStroke?: string | undefined;
|
|
33084
33084
|
}>, z.ZodObject<{
|
|
@@ -33124,7 +33124,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
33124
33124
|
trace_width?: string | number | undefined;
|
|
33125
33125
|
}>, "many">>;
|
|
33126
33126
|
pcbPathRelativeTo: z.ZodOptional<z.ZodString>;
|
|
33127
|
-
pcbPath: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
33127
|
+
pcbPath: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
33128
33128
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
33129
33129
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
33130
33130
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -33133,7 +33133,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
33133
33133
|
}, {
|
|
33134
33134
|
x: string | number;
|
|
33135
33135
|
y: string | number;
|
|
33136
|
-
}>, "many">>;
|
|
33136
|
+
}>, z.ZodString]>, "many">>;
|
|
33137
33137
|
schDisplayLabel: z.ZodOptional<z.ZodString>;
|
|
33138
33138
|
schStroke: z.ZodOptional<z.ZodString>;
|
|
33139
33139
|
highlightColor: z.ZodOptional<z.ZodString>;
|
|
@@ -33172,10 +33172,10 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
33172
33172
|
trace_width?: number | undefined;
|
|
33173
33173
|
}[] | undefined;
|
|
33174
33174
|
pcbPathRelativeTo?: string | undefined;
|
|
33175
|
-
pcbPath?: {
|
|
33175
|
+
pcbPath?: (string | {
|
|
33176
33176
|
x: number;
|
|
33177
33177
|
y: number;
|
|
33178
|
-
}[] | undefined;
|
|
33178
|
+
})[] | undefined;
|
|
33179
33179
|
schDisplayLabel?: string | undefined;
|
|
33180
33180
|
schStroke?: string | undefined;
|
|
33181
33181
|
}, {
|
|
@@ -33203,10 +33203,10 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
33203
33203
|
trace_width?: string | number | undefined;
|
|
33204
33204
|
}[] | undefined;
|
|
33205
33205
|
pcbPathRelativeTo?: string | undefined;
|
|
33206
|
-
pcbPath?: {
|
|
33206
|
+
pcbPath?: (string | {
|
|
33207
33207
|
x: string | number;
|
|
33208
33208
|
y: string | number;
|
|
33209
|
-
}[] | undefined;
|
|
33209
|
+
})[] | undefined;
|
|
33210
33210
|
schDisplayLabel?: string | undefined;
|
|
33211
33211
|
schStroke?: string | undefined;
|
|
33212
33212
|
}>]>;
|
|
@@ -52812,6 +52812,7 @@ interface PlatformConfig {
|
|
|
52812
52812
|
url?: string;
|
|
52813
52813
|
printBoardInformationToSilkscreen?: boolean;
|
|
52814
52814
|
includeBoardFiles?: string[];
|
|
52815
|
+
snapshotsDir?: string;
|
|
52815
52816
|
pcbDisabled?: boolean;
|
|
52816
52817
|
schematicDisabled?: boolean;
|
|
52817
52818
|
partsEngineDisabled?: boolean;
|
|
@@ -52821,7 +52822,7 @@ interface PlatformConfig {
|
|
|
52821
52822
|
}
|
|
52822
52823
|
declare const platformConfig: z.ZodType<PlatformConfig>;
|
|
52823
52824
|
|
|
52824
|
-
interface ProjectConfig extends Pick<PlatformConfig, "projectName" | "projectBaseUrl" | "version" | "url" | "printBoardInformationToSilkscreen" | "includeBoardFiles"> {
|
|
52825
|
+
interface ProjectConfig extends Pick<PlatformConfig, "projectName" | "projectBaseUrl" | "version" | "url" | "printBoardInformationToSilkscreen" | "includeBoardFiles" | "snapshotsDir"> {
|
|
52825
52826
|
}
|
|
52826
52827
|
declare const projectConfig: z.ZodType<ProjectConfig>;
|
|
52827
52828
|
|
package/dist/index.js
CHANGED
|
@@ -1180,7 +1180,7 @@ var baseTraceProps = z50.object({
|
|
|
1180
1180
|
schematicRouteHints: z50.array(point).optional(),
|
|
1181
1181
|
pcbRouteHints: z50.array(route_hint_point2).optional(),
|
|
1182
1182
|
pcbPathRelativeTo: z50.string().optional(),
|
|
1183
|
-
pcbPath: z50.array(point).optional(),
|
|
1183
|
+
pcbPath: z50.array(z50.union([point, z50.string()])).optional(),
|
|
1184
1184
|
schDisplayLabel: z50.string().optional(),
|
|
1185
1185
|
schStroke: z50.string().optional(),
|
|
1186
1186
|
highlightColor: z50.string().optional(),
|
|
@@ -2093,6 +2093,9 @@ var platformConfig = z104.object({
|
|
|
2093
2093
|
includeBoardFiles: z104.array(z104.string()).describe(
|
|
2094
2094
|
'The board files to automatically build with "tsci build", defaults to ["**/*.circuit.tsx"]. Can be an array of files or globs'
|
|
2095
2095
|
).optional(),
|
|
2096
|
+
snapshotsDir: z104.string().describe(
|
|
2097
|
+
'The directory where snapshots are stored for "tsci snapshot", defaults to "tests/__snapshots__"'
|
|
2098
|
+
).optional(),
|
|
2096
2099
|
localCacheEngine: z104.any().optional(),
|
|
2097
2100
|
pcbDisabled: z104.boolean().optional(),
|
|
2098
2101
|
schematicDisabled: z104.boolean().optional(),
|
|
@@ -2121,7 +2124,8 @@ var projectConfig = platformConfigObject.pick({
|
|
|
2121
2124
|
version: true,
|
|
2122
2125
|
url: true,
|
|
2123
2126
|
printBoardInformationToSilkscreen: true,
|
|
2124
|
-
includeBoardFiles: true
|
|
2127
|
+
includeBoardFiles: true,
|
|
2128
|
+
snapshotsDir: true
|
|
2125
2129
|
});
|
|
2126
2130
|
expectTypesMatch(true);
|
|
2127
2131
|
export {
|