@tscircuit/core 0.0.207 → 0.0.209

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -5701,11 +5701,16 @@ var createUseComponent = (Component2, pins) => {
5701
5701
  pinLabelsFlatArray.push(...pins.flat());
5702
5702
  } else if (typeof pins === "object") {
5703
5703
  pinLabelsFlatArray.push(
5704
- ...Object.values(pins).flat()
5704
+ ...Object.values(pins).flat(),
5705
+ ...Object.keys(pins)
5705
5706
  );
5706
- pinLabelsFlatArray.push(...Object.keys(pins));
5707
5707
  }
5708
5708
  const R = (props2) => {
5709
+ if (props2?.name && props2.name !== name) {
5710
+ throw new Error(
5711
+ `Component name mismatch. Hook name: ${name}, Component prop name: ${props2.name}`
5712
+ );
5713
+ }
5709
5714
  const combinedProps = { ...props, ...props2, name };
5710
5715
  const tracesToCreate = [];
5711
5716
  for (const portLabel of pinLabelsFlatArray) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.207",
4
+ "version": "0.0.209",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",