@tscircuit/core 0.0.359 → 0.0.360

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
@@ -1,5 +1,5 @@
1
1
  import * as _tscircuit_props from '@tscircuit/props';
2
- import { subcircuitGroupProps, AutorouterConfig, traceProps, SupplierPartNumbers, SchematicPortArrangement, groupProps, boardProps, capacitorProps, chipProps, diodeProps, jumperProps, ledProps, powerSourceProps, resistorProps, constraintProps, fabricationNotePathProps, fabricationNoteTextProps, footprintProps, subcircuitProps, holeProps, pcbKeepoutProps, netAliasProps, platedHoleProps, silkscreenCircleProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, silkscreenLineProps, smtPadProps, traceHintProps, viaProps, batteryProps, pinHeaderProps, resonatorProps, inductorProps, potentiometerProps, pushButtonProps, crystalProps, transistorProps, mosfetProps, switchProps, CapacitorProps, ChipProps, ResistorProps, ManualEditEvent, manual_edits_file, ChipConnections } from '@tscircuit/props';
2
+ import { subcircuitGroupProps, AutorouterConfig, traceProps, SupplierPartNumbers, SchematicPortArrangement, groupProps, boardProps, capacitorProps, chipProps, diodeProps, jumperProps, ledProps, powerSourceProps, resistorProps, constraintProps, fabricationNotePathProps, fabricationNoteTextProps, footprintProps, subcircuitProps, holeProps, pcbKeepoutProps, netAliasProps, platedHoleProps, silkscreenCircleProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, silkscreenLineProps, smtPadProps, traceHintProps, viaProps, batteryProps, pinHeaderProps, resonatorProps, inductorProps, potentiometerProps, pushButtonProps, crystalProps, transistorProps, mosfetProps, switchProps, CapacitorProps, ChipProps, DiodeProps, ResistorProps, ManualEditEvent, manual_edits_file, ChipConnections } from '@tscircuit/props';
3
3
  import React, { ReactElement, DetailedHTMLProps, SVGProps } from 'react';
4
4
  export { createElement } from 'react';
5
5
  import * as zod from 'zod';
@@ -3147,7 +3147,9 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
3147
3147
  }>]>>;
3148
3148
  children: zod.ZodOptional<zod.ZodAny>;
3149
3149
  symbolName: zod.ZodOptional<zod.ZodString>;
3150
- }>, {}>, "strip", zod.ZodTypeAny, {
3150
+ }>, {
3151
+ connections: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<["anode", "cathode", "pin1", "pin2", "pos", "neg"]>, zod.ZodUnion<[zod.ZodUnion<[zod.ZodString, zod.ZodReadonly<zod.ZodArray<zod.ZodString, "many">>]>, zod.ZodArray<zod.ZodString, "many">]>>>;
3152
+ }>, "strip", zod.ZodTypeAny, {
3151
3153
  name: string;
3152
3154
  pcbX?: number | undefined;
3153
3155
  pcbY?: number | undefined;
@@ -3214,6 +3216,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
3214
3216
  } | undefined;
3215
3217
  children?: any;
3216
3218
  symbolName?: string | undefined;
3219
+ connections?: Partial<Record<"pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
3217
3220
  }, {
3218
3221
  name: string;
3219
3222
  pcbX?: string | number | undefined;
@@ -3283,6 +3286,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
3283
3286
  } | undefined;
3284
3287
  children?: any;
3285
3288
  symbolName?: string | undefined;
3289
+ connections?: Partial<Record<"pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
3286
3290
  }>;
3287
3291
  sourceFtype: Ftype;
3288
3292
  };
@@ -11168,145 +11172,7 @@ declare const useCapacitor: <PropsFromHook extends Omit<CapacitorProps, "name">
11168
11172
 
11169
11173
  declare const useChip: <PinLabel extends string>(pinLabels: Record<string, PinLabel[]>) => <PropsFromHook extends Omit<ChipProps, "name"> | undefined = undefined>(name: string, props?: PropsFromHook | undefined) => ComponentWithPins<ChipProps, string | PinLabel, PropsFromHook>;
11170
11174
 
11171
- declare const useDiode: <PropsFromHook extends Omit<{
11172
- name: string;
11173
- pcbX?: string | number | undefined;
11174
- pcbY?: string | number | undefined;
11175
- pcbRotation?: string | number | undefined;
11176
- layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
11177
- name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
11178
- } | undefined;
11179
- schX?: string | number | undefined;
11180
- schY?: string | number | undefined;
11181
- schRotation?: string | number | undefined;
11182
- footprint?: _tscircuit_props.Footprint | undefined;
11183
- supplierPartNumbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
11184
- key?: any;
11185
- cadModel?: string | {
11186
- stlUrl: string;
11187
- rotationOffset?: number | {
11188
- x: string | number;
11189
- y: string | number;
11190
- z: string | number;
11191
- } | undefined;
11192
- positionOffset?: {
11193
- x: string | number;
11194
- y: string | number;
11195
- z: string | number;
11196
- } | undefined;
11197
- size?: {
11198
- x: string | number;
11199
- y: string | number;
11200
- z: string | number;
11201
- } | undefined;
11202
- } | {
11203
- objUrl: string;
11204
- rotationOffset?: number | {
11205
- x: string | number;
11206
- y: string | number;
11207
- z: string | number;
11208
- } | undefined;
11209
- positionOffset?: {
11210
- x: string | number;
11211
- y: string | number;
11212
- z: string | number;
11213
- } | undefined;
11214
- size?: {
11215
- x: string | number;
11216
- y: string | number;
11217
- z: string | number;
11218
- } | undefined;
11219
- mtlUrl?: string | undefined;
11220
- } | {
11221
- jscad: Record<string, any>;
11222
- rotationOffset?: number | {
11223
- x: string | number;
11224
- y: string | number;
11225
- z: string | number;
11226
- } | undefined;
11227
- positionOffset?: {
11228
- x: string | number;
11229
- y: string | number;
11230
- z: string | number;
11231
- } | undefined;
11232
- size?: {
11233
- x: string | number;
11234
- y: string | number;
11235
- z: string | number;
11236
- } | undefined;
11237
- } | undefined;
11238
- children?: any;
11239
- symbolName?: string | undefined;
11240
- }, "name"> | undefined = undefined>(name: string, props?: PropsFromHook | undefined) => ComponentWithPins<{
11241
- name: string;
11242
- pcbX?: string | number | undefined;
11243
- pcbY?: string | number | undefined;
11244
- pcbRotation?: string | number | undefined;
11245
- layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
11246
- name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
11247
- } | undefined;
11248
- schX?: string | number | undefined;
11249
- schY?: string | number | undefined;
11250
- schRotation?: string | number | undefined;
11251
- footprint?: _tscircuit_props.Footprint | undefined;
11252
- supplierPartNumbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
11253
- key?: any;
11254
- cadModel?: string | {
11255
- stlUrl: string;
11256
- rotationOffset?: number | {
11257
- x: string | number;
11258
- y: string | number;
11259
- z: string | number;
11260
- } | undefined;
11261
- positionOffset?: {
11262
- x: string | number;
11263
- y: string | number;
11264
- z: string | number;
11265
- } | undefined;
11266
- size?: {
11267
- x: string | number;
11268
- y: string | number;
11269
- z: string | number;
11270
- } | undefined;
11271
- } | {
11272
- objUrl: string;
11273
- rotationOffset?: number | {
11274
- x: string | number;
11275
- y: string | number;
11276
- z: string | number;
11277
- } | undefined;
11278
- positionOffset?: {
11279
- x: string | number;
11280
- y: string | number;
11281
- z: string | number;
11282
- } | undefined;
11283
- size?: {
11284
- x: string | number;
11285
- y: string | number;
11286
- z: string | number;
11287
- } | undefined;
11288
- mtlUrl?: string | undefined;
11289
- } | {
11290
- jscad: Record<string, any>;
11291
- rotationOffset?: number | {
11292
- x: string | number;
11293
- y: string | number;
11294
- z: string | number;
11295
- } | undefined;
11296
- positionOffset?: {
11297
- x: string | number;
11298
- y: string | number;
11299
- z: string | number;
11300
- } | undefined;
11301
- size?: {
11302
- x: string | number;
11303
- y: string | number;
11304
- z: string | number;
11305
- } | undefined;
11306
- } | undefined;
11307
- children?: any;
11308
- symbolName?: string | undefined;
11309
- }, "left" | "right" | "pin1" | "pin2" | "anode" | "cathode" | "pos" | "neg", PropsFromHook>;
11175
+ declare const useDiode: <PropsFromHook extends Omit<DiodeProps, "name"> | undefined = undefined>(name: string, props?: PropsFromHook | undefined) => ComponentWithPins<DiodeProps, "left" | "right" | "pin1" | "pin2" | "anode" | "cathode" | "pos" | "neg", PropsFromHook>;
11310
11176
 
11311
11177
  declare const useLed: <PropsFromHook extends Omit<{
11312
11178
  name: string;
package/dist/index.js CHANGED
@@ -7332,7 +7332,7 @@ import { identity as identity4 } from "transformation-matrix";
7332
7332
  var package_default = {
7333
7333
  name: "@tscircuit/core",
7334
7334
  type: "module",
7335
- version: "0.0.358",
7335
+ version: "0.0.359",
7336
7336
  types: "dist/index.d.ts",
7337
7337
  main: "dist/index.js",
7338
7338
  module: "dist/index.js",
@@ -7389,7 +7389,7 @@ var package_default = {
7389
7389
  "@tscircuit/circuit-json-util": "^0.0.45",
7390
7390
  "@tscircuit/infgrid-ijump-astar": "^0.0.33",
7391
7391
  "@tscircuit/math-utils": "^0.0.12",
7392
- "@tscircuit/props": "^0.0.163",
7392
+ "@tscircuit/props": "^0.0.165",
7393
7393
  "@tscircuit/schematic-autolayout": "^0.0.6",
7394
7394
  "@tscircuit/soup-util": "^0.0.41",
7395
7395
  "circuit-json": "^0.0.153",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.359",
4
+ "version": "0.0.360",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -58,7 +58,7 @@
58
58
  "@tscircuit/circuit-json-util": "^0.0.45",
59
59
  "@tscircuit/infgrid-ijump-astar": "^0.0.33",
60
60
  "@tscircuit/math-utils": "^0.0.12",
61
- "@tscircuit/props": "^0.0.163",
61
+ "@tscircuit/props": "^0.0.165",
62
62
  "@tscircuit/schematic-autolayout": "^0.0.6",
63
63
  "@tscircuit/soup-util": "^0.0.41",
64
64
  "circuit-json": "^0.0.153",