@tscircuit/core 0.0.208 → 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.
- package/dist/index.js +7 -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) {
|