@tscircuit/core 0.0.616 → 0.0.618

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
@@ -13828,7 +13828,7 @@ declare class Crystal extends NormalComponent<typeof crystalProps, PolarizedPass
13828
13828
  declare class Transistor extends NormalComponent<typeof transistorProps, TransistorPorts> {
13829
13829
  get config(): {
13830
13830
  componentName: string;
13831
- schematicSymbolName: "npn_bipolar_transistor" | "pnp_bipolar_transistor";
13831
+ schematicSymbolName: BaseSymbolName;
13832
13832
  zodProps: zod.ZodObject<{
13833
13833
  pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
13834
13834
  pcbY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
@@ -14294,7 +14294,7 @@ declare class Transistor extends NormalComponent<typeof transistorProps, Transis
14294
14294
  declare class Mosfet extends NormalComponent<typeof mosfetProps> {
14295
14295
  get config(): {
14296
14296
  componentName: string;
14297
- schematicSymbolName: "n_channel_d_mosfet_transistor" | "n_channel_e_mosfet_transistor" | "p_channel_d_mosfet_transistor" | "p_channel_e_mosfet_transistor";
14297
+ schematicSymbolName: BaseSymbolName;
14298
14298
  zodProps: zod.ZodObject<{
14299
14299
  pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
14300
14300
  pcbY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
package/dist/index.js CHANGED
@@ -8408,14 +8408,13 @@ var Group_doInitialPcbLayoutPack = (group) => {
8408
8408
  };
8409
8409
 
8410
8410
  // lib/components/primitive-components/Group/Group_doInitialPcbLayoutFlex.ts
8411
- import "@tscircuit/circuit-json-flex";
8412
8411
  import {
8413
8412
  getCircuitJsonTree,
8414
8413
  repositionPcbComponentTo,
8415
- repositionPcbGroupTo
8414
+ repositionPcbGroupTo,
8415
+ getMinimumFlexContainer
8416
8416
  } from "@tscircuit/circuit-json-util";
8417
8417
  import { RootFlexBox } from "@tscircuit/miniflex";
8418
- import { getMinimumFlexContainer } from "@tscircuit/circuit-json-flex";
8419
8418
  import { length as length4 } from "circuit-json";
8420
8419
  var getSizeOfTreeNodeChild = (db, child) => {
8421
8420
  const { sourceComponent, sourceGroup } = child;
@@ -11147,7 +11146,7 @@ var Transistor = class extends NormalComponent {
11147
11146
  const baseSymbolName = this.props.type === "npn" ? "npn_bipolar_transistor" : "pnp_bipolar_transistor";
11148
11147
  return {
11149
11148
  componentName: "Transistor",
11150
- schematicSymbolName: baseSymbolName,
11149
+ schematicSymbolName: this.props.symbolName ?? baseSymbolName,
11151
11150
  zodProps: transistorProps,
11152
11151
  sourceFtype: "simple_transistor",
11153
11152
  shouldRenderAsSchematicBox: false
@@ -11198,7 +11197,7 @@ var Mosfet = class extends NormalComponent {
11198
11197
  const baseSymbolName = `${channelType}_channel_${mosfetMode}_mosfet_transistor`;
11199
11198
  return {
11200
11199
  componentName: "Mosfet",
11201
- schematicSymbolName: baseSymbolName,
11200
+ schematicSymbolName: this.props.symbolName ?? baseSymbolName,
11202
11201
  zodProps: mosfetProps,
11203
11202
  shouldRenderAsSchematicBox: false
11204
11203
  };
@@ -11239,7 +11238,7 @@ var Switch = class extends NormalComponent {
11239
11238
  const symbolName = baseSymbolNameMap[switchType] ?? "spst_switch";
11240
11239
  return {
11241
11240
  componentName: "Switch",
11242
- schematicSymbolName: symbolName,
11241
+ schematicSymbolName: this.props.symbolName ?? symbolName,
11243
11242
  zodProps: switchProps,
11244
11243
  shouldRenderAsSchematicBox: false
11245
11244
  };
@@ -11746,7 +11745,7 @@ import { identity as identity5 } from "transformation-matrix";
11746
11745
  var package_default = {
11747
11746
  name: "@tscircuit/core",
11748
11747
  type: "module",
11749
- version: "0.0.615",
11748
+ version: "0.0.617",
11750
11749
  types: "dist/index.d.ts",
11751
11750
  main: "dist/index.js",
11752
11751
  module: "dist/index.js",
@@ -11771,7 +11770,7 @@ var package_default = {
11771
11770
  "@biomejs/biome": "^1.8.3",
11772
11771
  "@tscircuit/capacity-autorouter": "^0.0.100",
11773
11772
  "@tscircuit/checks": "^0.0.64",
11774
- "@tscircuit/circuit-json-util": "^0.0.62",
11773
+ "@tscircuit/circuit-json-util": "^0.0.64",
11775
11774
  "@tscircuit/footprinter": "^0.0.208",
11776
11775
  "@tscircuit/import-snippet": "^0.0.4",
11777
11776
  "@tscircuit/infgrid-ijump-astar": "^0.0.33",
@@ -11808,7 +11807,6 @@ var package_default = {
11808
11807
  "react-dom": "^19.1.0",
11809
11808
  "schematic-symbols": "^0.0.180",
11810
11809
  "ts-expect": "^1.3.0",
11811
- "@tscircuit/circuit-json-flex": "^0.0.3",
11812
11810
  tsup: "^8.2.4"
11813
11811
  },
11814
11812
  peerDependencies: {
@@ -11821,7 +11819,6 @@ var package_default = {
11821
11819
  "@tscircuit/props": "*",
11822
11820
  "@tscircuit/schematic-autolayout": "*",
11823
11821
  "@tscircuit/schematic-match-adapt": "*",
11824
- "@tscircuit/circuit-json-flex": "*",
11825
11822
  "@tscircuit/schematic-corpus": "*",
11826
11823
  "circuit-json-to-bpc": "*",
11827
11824
  "bpc-graph": "*",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.616",
4
+ "version": "0.0.618",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -26,7 +26,7 @@
26
26
  "@biomejs/biome": "^1.8.3",
27
27
  "@tscircuit/capacity-autorouter": "^0.0.100",
28
28
  "@tscircuit/checks": "^0.0.64",
29
- "@tscircuit/circuit-json-util": "^0.0.62",
29
+ "@tscircuit/circuit-json-util": "^0.0.64",
30
30
  "@tscircuit/footprinter": "^0.0.208",
31
31
  "@tscircuit/import-snippet": "^0.0.4",
32
32
  "@tscircuit/infgrid-ijump-astar": "^0.0.33",
@@ -63,7 +63,6 @@
63
63
  "react-dom": "^19.1.0",
64
64
  "schematic-symbols": "^0.0.180",
65
65
  "ts-expect": "^1.3.0",
66
- "@tscircuit/circuit-json-flex": "^0.0.3",
67
66
  "tsup": "^8.2.4"
68
67
  },
69
68
  "peerDependencies": {
@@ -76,7 +75,6 @@
76
75
  "@tscircuit/props": "*",
77
76
  "@tscircuit/schematic-autolayout": "*",
78
77
  "@tscircuit/schematic-match-adapt": "*",
79
- "@tscircuit/circuit-json-flex": "*",
80
78
  "@tscircuit/schematic-corpus": "*",
81
79
  "circuit-json-to-bpc": "*",
82
80
  "bpc-graph": "*",