@tscircuit/core 0.0.569 → 0.0.570

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
@@ -5694,8 +5694,8 @@ declare class SolderJumper<PinLabels extends string = never> extends NormalCompo
5694
5694
 
5695
5695
  declare class Led extends NormalComponent<typeof ledProps, PolarizedPassivePorts> {
5696
5696
  get config(): {
5697
- componentName: string;
5698
5697
  schematicSymbolName: string;
5698
+ componentName: string;
5699
5699
  zodProps: zod.ZodObject<{
5700
5700
  pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
5701
5701
  pcbY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
package/dist/index.js CHANGED
@@ -9174,9 +9174,13 @@ var SolderJumper = class extends NormalComponent {
9174
9174
  import { ledProps } from "@tscircuit/props";
9175
9175
  var Led = class extends NormalComponent {
9176
9176
  get config() {
9177
+ const symbolMap = {
9178
+ laser: "laser_diode"
9179
+ };
9180
+ const variantSymbol = this.props.laser ? "laser" : null;
9177
9181
  return {
9182
+ schematicSymbolName: variantSymbol ? symbolMap[variantSymbol] : this.props.symbolName ?? "led",
9178
9183
  componentName: "Led",
9179
- schematicSymbolName: this.props.symbolName ?? "led",
9180
9184
  zodProps: ledProps,
9181
9185
  sourceFtype: "simple_led"
9182
9186
  };
@@ -10981,7 +10985,7 @@ import { identity as identity5 } from "transformation-matrix";
10981
10985
  var package_default = {
10982
10986
  name: "@tscircuit/core",
10983
10987
  type: "module",
10984
- version: "0.0.568",
10988
+ version: "0.0.569",
10985
10989
  types: "dist/index.d.ts",
10986
10990
  main: "dist/index.js",
10987
10991
  module: "dist/index.js",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.569",
4
+ "version": "0.0.570",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",