@tscircuit/core 0.0.460 → 0.0.461
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 +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -854,6 +854,9 @@ var PrimitiveComponent2 = class extends Renderable {
|
|
|
854
854
|
this.parent?.onChildChanged?.(child);
|
|
855
855
|
}
|
|
856
856
|
add(component) {
|
|
857
|
+
if (this.lowercaseComponentName === "board" && component.lowercaseComponentName === "board") {
|
|
858
|
+
throw new Error("Nested boards are not supported");
|
|
859
|
+
}
|
|
857
860
|
if (!component.onAddToParent) {
|
|
858
861
|
throw new Error(
|
|
859
862
|
`Invalid JSX Element: Expected a React component but received "${JSON.stringify(component)}"`
|
|
@@ -9613,7 +9616,7 @@ import { identity as identity4 } from "transformation-matrix";
|
|
|
9613
9616
|
var package_default = {
|
|
9614
9617
|
name: "@tscircuit/core",
|
|
9615
9618
|
type: "module",
|
|
9616
|
-
version: "0.0.
|
|
9619
|
+
version: "0.0.460",
|
|
9617
9620
|
types: "dist/index.d.ts",
|
|
9618
9621
|
main: "dist/index.js",
|
|
9619
9622
|
module: "dist/index.js",
|