easyeda 0.0.290 → 0.0.292

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.
@@ -11643,6 +11643,30 @@ ${cadModelLines}
11643
11643
  />
11644
11644
  )
11645
11645
  }
11646
+ `.trim();
11647
+ }
11648
+ if (componentType === "connector") {
11649
+ return `
11650
+ import type { ConnectorProps } from "@tscircuit/props"
11651
+
11652
+ const pinLabels = {
11653
+ ${pinLabelsString}
11654
+ } as const
11655
+
11656
+ export const ${componentName} = (props: ConnectorProps) => {
11657
+ return (
11658
+ <connector
11659
+ pinLabels={pinLabels}
11660
+ supplierPartNumbers={${JSON.stringify(supplierPartNumbers, null, " ")}}
11661
+ manufacturerPartNumber="${manufacturerPartNumber}"
11662
+ footprint={${footprintTsx}}
11663
+ ${objUrl || stepUrl ? `cadModel={{
11664
+ ${cadModelLines}
11665
+ }}` : ""}
11666
+ {...props}
11667
+ />
11668
+ )
11669
+ }
11646
11670
  `.trim();
11647
11671
  }
11648
11672
  return `
@@ -11687,6 +11711,12 @@ var isInductorComponent = (betterEasy) => {
11687
11711
  return packageName?.toUpperCase().startsWith("IND-") === true && typeof value === "string" && inductancePattern.test(value.trim());
11688
11712
  };
11689
11713
 
11714
+ // lib/websafe/convert-to-typescript-component/is-micro-usb-connector-component.ts
11715
+ var isMicroUsbConnectorComponent = (betterEasy) => {
11716
+ const componentParameters = betterEasy.dataStr.head.c_para;
11717
+ return componentParameters.pre === "USB?" && componentParameters.package?.toUpperCase().startsWith("MICRO-USB-") === true;
11718
+ };
11719
+
11690
11720
  // lib/websafe/convert-to-typescript-component/category-value-contains-pushbutton.ts
11691
11721
  var categoryValueContainsPushbutton = (value) => {
11692
11722
  if (typeof value === "string") {
@@ -12057,6 +12087,7 @@ var getGeneratedComponentType = (betterEasy) => {
12057
12087
  if (isSwitchCategoryComponent(betterEasy)) return "switch";
12058
12088
  if (isInductorComponent(betterEasy)) return "inductor";
12059
12089
  if (isCrystalComponent(betterEasy)) return "crystal";
12090
+ if (isMicroUsbConnectorComponent(betterEasy)) return "connector";
12060
12091
  return "chip";
12061
12092
  };
12062
12093
  var convertRawEasyToTsx = async ({ rawEasy }) => {