From 6bf5349c68b29a3a177c384b657d53d28add0b8e Mon Sep 17 00:00:00 2001 From: seveibar Date: Sat, 13 Apr 2024 15:53:50 -0700 Subject: [PATCH] support for rendering --- dev-server-frontend/bun.lockb | Bin 204395 -> 204395 bytes dev-server-frontend/package-lock.json | 57 ++- dev-server-frontend/package.json | 2 +- package-lock.json | 12 +- package.json | 2 +- .../assets/example-project/package-lock.json | 448 ++++++++++++++++++ tests/assets/example-project/package.json | 6 +- .../assets/example-project/src/MyCircuit.tsx | 4 +- 8 files changed, 514 insertions(+), 17 deletions(-) create mode 100644 tests/assets/example-project/package-lock.json diff --git a/dev-server-frontend/bun.lockb b/dev-server-frontend/bun.lockb index c8ccd5f1de91561cab66cadae0143681a17da63c..4a38b261043d17047aa6f824871584783630406e 100755 GIT binary patch delta 163 zcmV;U09^m;ybSBS43I7$so5aSajWp5T%jw#eai?**F9@7$R>xO6_aJ1q1=c2u}&&y zle9c2lOP}nv#4i%w?I!?AxOV(RE?)U7ng~N(hQNzRbF{!%3AcwoGd5X;K0R(ZzO;4 zTK+>4l56mjJN%5XNs-jP9zh%u?{a>3CE2%S9|2S30Ux)y0|F8Z2m)+jbY*jN0JqZ* R0!zi0@d^VXw?NebD@iOoN*MqE delta 168 zcmV;Z09XI(ybSBS43I7$t^xCnNP6-@Xl8>hO&{i@W#ob||GLsWmkC`F=P~^uu}&&y zlQcsplOP}nv#4i%w?G+RRB)@cBth(`UU42Yn}dcvq&k(2;$0s=Of2QVK;daU=~KBb zOj`$A%c`w~`mH{L-xO@gl`^YMC&JwX#jCev9|2S30Ts8o0|F8Z2mxL(E;24MGq=+Z W0!zi0k*xwDmw?j(3b#qs0wPKD_eZe+ diff --git a/dev-server-frontend/package-lock.json b/dev-server-frontend/package-lock.json index 58fea4da..72438edc 100644 --- a/dev-server-frontend/package-lock.json +++ b/dev-server-frontend/package-lock.json @@ -8,6 +8,7 @@ "name": "@tscircuit/dev-server-frontend", "version": "0.0.0", "dependencies": { + "@headlessui/react": "^1.7.18", "@radix-ui/react-alert-dialog": "^1.0.5", "@radix-ui/react-context-menu": "^2.1.5", "@radix-ui/react-dialog": "^1.0.5", @@ -21,8 +22,8 @@ "@radix-ui/react-toggle": "^1.0.3", "@radix-ui/react-toggle-group": "^1.0.4", "@radix-ui/react-tooltip": "^1.0.7", - "@tscircuit/builder": "^1.5.29", - "@tscircuit/pcb-viewer": "^1.2.23", + "@tscircuit/builder": "latest", + "@tscircuit/pcb-viewer": "^1.2.24", "@tscircuit/schematic-viewer": "^1.1.22", "axios": "^1.6.7", "class-variance-authority": "^0.7.0", @@ -660,6 +661,22 @@ "version": "0.2.1", "license": "MIT" }, + "node_modules/@headlessui/react": { + "version": "1.7.18", + "resolved": "https://registry.npmjs.org/@headlessui/react/-/react-1.7.18.tgz", + "integrity": "sha512-4i5DOrzwN4qSgNsL4Si61VMkUcWbcSKueUV7sFhpHzQcSShdlHENE5+QBntMSRvHt8NyoFO2AGG8si9lq+w4zQ==", + "dependencies": { + "@tanstack/react-virtual": "^3.0.0-beta.60", + "client-only": "^0.0.1" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "react": "^16 || ^17 || ^18", + "react-dom": "^16 || ^17 || ^18" + } + }, "node_modules/@humanwhocodes/config-array": { "version": "0.11.14", "dev": true, @@ -1786,6 +1803,31 @@ "linux" ] }, + "node_modules/@tanstack/react-virtual": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/@tanstack/react-virtual/-/react-virtual-3.2.1.tgz", + "integrity": "sha512-i9Nt0ssIh2bSjomJZlr6Iq5usT/9+ewo2/fKHRNk6kjVKS8jrhXbnO8NEawarCuBx/efv0xpoUUKKGxa0cQb4Q==", + "dependencies": { + "@tanstack/virtual-core": "3.2.1" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, + "node_modules/@tanstack/virtual-core": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/@tanstack/virtual-core/-/virtual-core-3.2.1.tgz", + "integrity": "sha512-nO0d4vRzsmpBQCJYyClNHPPoUMI4nXNfrm6IcCRL33ncWMoNVpURh9YebEHPw8KrtsP2VSJIHE4gf4XFGk1OGg==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + } + }, "node_modules/@tscircuit/builder": { "version": "1.5.53", "resolved": "https://registry.npmjs.org/@tscircuit/builder/-/builder-1.5.53.tgz", @@ -1825,9 +1867,9 @@ } }, "node_modules/@tscircuit/pcb-viewer": { - "version": "1.2.23", - "resolved": "https://registry.npmjs.org/@tscircuit/pcb-viewer/-/pcb-viewer-1.2.23.tgz", - "integrity": "sha512-GV9UcKu1JEHsqF5xHjSbg4Y+pDqVjeJdH0BMLOXAQOFpPelTuS5MWwdby6qthfqtPoPfFGzJlTKrTSfC3QTFqw==", + "version": "1.2.24", + "resolved": "https://registry.npmjs.org/@tscircuit/pcb-viewer/-/pcb-viewer-1.2.24.tgz", + "integrity": "sha512-T1ohSL9vVI2nPxeXiYnSDJHMVV55Zspa9MqcLCfb4MDFhm8kf/Ba/kMSkmvwkzv8jLFJkdS+HkEcEu9yfncl2Q==", "dependencies": { "react-supergrid": "^1.0.7", "transformation-matrix": "^2.13.0" @@ -2550,6 +2592,11 @@ "node": ">=6" } }, + "node_modules/client-only": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz", + "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==" + }, "node_modules/clsx": { "version": "2.1.0", "license": "MIT", diff --git a/dev-server-frontend/package.json b/dev-server-frontend/package.json index 258e04cf..010b91fc 100644 --- a/dev-server-frontend/package.json +++ b/dev-server-frontend/package.json @@ -31,7 +31,7 @@ "@radix-ui/react-toggle-group": "^1.0.4", "@radix-ui/react-tooltip": "^1.0.7", "@tscircuit/builder": "latest", - "@tscircuit/pcb-viewer": "^1.2.23", + "@tscircuit/pcb-viewer": "^1.2.24", "@tscircuit/schematic-viewer": "^1.1.22", "axios": "^1.6.7", "class-variance-authority": "^0.7.0", diff --git a/package-lock.json b/package-lock.json index 7b12fcd4..7c400888 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,17 +1,17 @@ { "name": "@tscircuit/cli", - "version": "0.0.57", + "version": "0.0.63", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@tscircuit/cli", - "version": "0.0.57", + "version": "0.0.63", "license": "ISC", "dependencies": { "@edge-runtime/primitives": "^4.1.0", "@hono/node-server": "^1.8.2", - "@tscircuit/builder": "1.5.53", + "@tscircuit/builder": "^1.5.54", "@tscircuit/react-fiber": "latest", "archiver": "^7.0.1", "axios": "^1.6.7", @@ -676,9 +676,9 @@ } }, "node_modules/@tscircuit/builder": { - "version": "1.5.53", - "resolved": "https://registry.npmjs.org/@tscircuit/builder/-/builder-1.5.53.tgz", - "integrity": "sha512-DJWEJAacSN+5p4Sc1RSbYAUEMqbKarS8HusrLpyDHnP+K3NzDG4/kxMGrD9rzTZSq2hfed97Zne/BZlVqfigVQ==", + "version": "1.5.54", + "resolved": "https://registry.npmjs.org/@tscircuit/builder/-/builder-1.5.54.tgz", + "integrity": "sha512-PqNS6osmTMk1Uat1KMx3LIz6e8JjfZwEpWIQ93+RsoE1+y683qNYvIMzBCNEmww1HkfB0rSOWbNOoPcdtwHa5w==", "dependencies": { "@lume/kiwi": "^0.1.0", "@tscircuit/footprints": "^0.0.14", diff --git a/package.json b/package.json index a56fc6a1..b852322b 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "dependencies": { "@edge-runtime/primitives": "^4.1.0", "@hono/node-server": "^1.8.2", - "@tscircuit/builder": "latest", + "@tscircuit/builder": "^1.5.54", "@tscircuit/react-fiber": "latest", "archiver": "^7.0.1", "axios": "^1.6.7", diff --git a/tests/assets/example-project/package-lock.json b/tests/assets/example-project/package-lock.json new file mode 100644 index 00000000..e1d44412 --- /dev/null +++ b/tests/assets/example-project/package-lock.json @@ -0,0 +1,448 @@ +{ + "name": "example-project", + "version": "1.2.26", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "example-project", + "version": "1.2.26", + "dependencies": { + "@tscircuit/builder": "^1.5.56", + "@tscircuit/react-fiber": "^1.0.33" + } + }, + "node_modules/@babel/runtime": { + "version": "7.24.4", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.4.tgz", + "integrity": "sha512-dkxf7+hn8mFBwKjs9bvBlArzLVxVbS8usaPUDd5p2a9JCL9tB8OaOVN1isD4+Xyk4ns89/xeOmbQvgdK7IIVdA==", + "dependencies": { + "regenerator-runtime": "^0.14.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@lume/kiwi": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@lume/kiwi/-/kiwi-0.1.0.tgz", + "integrity": "sha512-iB+oaYyaVK1hQ0cODubnoSDg4gGYL9cp/4ad7G1b9Z0/IqehPztp5qE3KP2mV9Ns0UYmzwvtkEhTCmKUuhorbg==" + }, + "node_modules/@tscircuit/builder": { + "version": "1.5.56", + "resolved": "https://registry.npmjs.org/@tscircuit/builder/-/builder-1.5.56.tgz", + "integrity": "sha512-Kx1lg9zc0qqlsp1Udnz4QbtZUgmaXUsS4SY6x4I9bg1SIPLaQnMXe7X6cxWEn5ByenP8jkAs3qmfMxFxYzSPmA==", + "dependencies": { + "@lume/kiwi": "^0.1.0", + "@tscircuit/builder": "^1.5.55", + "@tscircuit/footprints": "^0.0.14", + "@tscircuit/routing": "^1.3.1", + "@tscircuit/sparkfun-packages": "^1.2.0", + "convert-units": "^2.3.4", + "fast-json-stable-stringify": "^2.1.0", + "rectilinear-router": "^1.0.1", + "svg-path-bounds": "^1.0.2", + "transformation-matrix": "^2.12.0" + } + }, + "node_modules/@tscircuit/footprints": { + "version": "0.0.14", + "resolved": "https://registry.npmjs.org/@tscircuit/footprints/-/footprints-0.0.14.tgz", + "integrity": "sha512-QRqBZixJUxtqftNB37JVAKiMdDia1FSRVEJEqfClu1D5p0DveFyACJro6uyuPP6HWswZ3LYWn98k6jvIzmZwsg==", + "dependencies": { + "@tscircuit/mm": "^0.0.4" + }, + "peerDependencies": { + "typescript": "^5.0.0" + } + }, + "node_modules/@tscircuit/mm": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/@tscircuit/mm/-/mm-0.0.4.tgz", + "integrity": "sha512-yD/YB43mEd/iJ41N1rXa5+S5lTokoIDwFcQNd/sBp4ut/7iMmzyDEea2GIRj3lLodzwUrjmMPtEW5JLC3LntRw==", + "dependencies": { + "convert-units": "^2.3.4" + }, + "peerDependencies": { + "typescript": "^5.0.0" + } + }, + "node_modules/@tscircuit/react-fiber": { + "version": "1.0.33", + "resolved": "https://registry.npmjs.org/@tscircuit/react-fiber/-/react-fiber-1.0.33.tgz", + "integrity": "sha512-9+WL0+sI4vs21s7AVNHRckaCSYw2/61/TEnJTZCYM9SkBXGLj1LbaIJNgxCVmUH3Mtn/JcNo3LVApDGvsyOhRw==", + "dependencies": { + "react-reconciler": "^0.29.0" + }, + "peerDependencies": { + "@tscircuit/builder": "*", + "react": "*" + } + }, + "node_modules/@tscircuit/routing": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@tscircuit/routing/-/routing-1.3.1.tgz", + "integrity": "sha512-DQRAFvk3uikRMbeOTWnNAdoSVdStx9o8UZhvh6pcoqxJsx4RKWg8d9ssycm2v7wzyg8rjjUPJUpymgkJQtBPpA==", + "dependencies": { + "pathfinding": "^0.4.18", + "react-error-boundary": "^4.0.11" + } + }, + "node_modules/@tscircuit/sparkfun-packages": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@tscircuit/sparkfun-packages/-/sparkfun-packages-1.2.0.tgz", + "integrity": "sha512-m+jCOaSBpwRzUN5trc9z5f8yh2zzLITANgNhuNQOtxNZRIrv98iYfL3dSSmf73xknh0Nz68EephNvKVZmproCQ==", + "dependencies": { + "change-case": "^5.4.3" + } + }, + "node_modules/abs-svg-path": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/abs-svg-path/-/abs-svg-path-0.1.1.tgz", + "integrity": "sha512-d8XPSGjfyzlXC3Xx891DJRyZfqk5JU0BJrDQcsWomFIV1/BIzPW5HDH5iDdWpqWaav0YVIEzT1RHTwWr0FFshA==" + }, + "node_modules/change-case": { + "version": "5.4.4", + "resolved": "https://registry.npmjs.org/change-case/-/change-case-5.4.4.tgz", + "integrity": "sha512-HRQyTk2/YPEkt9TnUPbOpr64Uw3KOicFWPVBb+xiHvd6eBx/qPr9xqfBFDT8P2vWsvvz4jbEkfDe71W3VyNu2w==" + }, + "node_modules/convert-units": { + "version": "2.3.4", + "resolved": "https://registry.npmjs.org/convert-units/-/convert-units-2.3.4.tgz", + "integrity": "sha512-ERHfdA0UhHJp1IpwE6PnFJx8LqG7B1ZjJ20UvVCmopEnVCfER68Tbe3kvN63dLbYXDA2xFWRE6zd4Wsf0w7POg==", + "dependencies": { + "lodash.foreach": "2.3.x", + "lodash.keys": "2.3.x" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" + }, + "node_modules/glpk.js": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/glpk.js/-/glpk.js-4.0.2.tgz", + "integrity": "sha512-GADfTGaExp7C6JfBnBdx7SF80hxPO30VvLP9wpA6EhXgDj5/Oapm+gyF0EFEC7RrPX4JpfRI3TmAtlLckeQIXw==", + "dependencies": { + "pako": "^2.0.4" + } + }, + "node_modules/heap": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/heap/-/heap-0.2.5.tgz", + "integrity": "sha512-G7HLD+WKcrOyJP5VQwYZNC3Z6FcQ7YYjEFiFoIj8PfEr73mu421o8B1N5DKUcc8K37EsJ2XXWA8DtrDz/2dReg==" + }, + "node_modules/is-svg-path": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-svg-path/-/is-svg-path-1.0.2.tgz", + "integrity": "sha512-Lj4vePmqpPR1ZnRctHv8ltSh1OrSxHkhUkd7wi+VQdcdP15/KvQFyk7LhNuM7ZW0EVbJz8kZLVmL9quLrfq4Kg==" + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, + "node_modules/lodash._basebind": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/lodash._basebind/-/lodash._basebind-2.3.0.tgz", + "integrity": "sha512-SHqM7YCuJ+BeGTs7lqpWnmdHEeF4MWxS3dksJctHFNxR81FXPOzA4bS5Vs5CpcGTkBpM8FCl+YEbQEblRw8ABg==", + "dependencies": { + "lodash._basecreate": "~2.3.0", + "lodash._setbinddata": "~2.3.0", + "lodash.isobject": "~2.3.0" + } + }, + "node_modules/lodash._basecreate": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/lodash._basecreate/-/lodash._basecreate-2.3.0.tgz", + "integrity": "sha512-vwZaWldZwS2y9b99D8i9+WtgiZXbHKsBsMrpxJEqTsNW20NhJo5W8PBQkeQO9CmxuqEYn8UkMnfEM2MMT4cVrw==", + "dependencies": { + "lodash._renative": "~2.3.0", + "lodash.isobject": "~2.3.0", + "lodash.noop": "~2.3.0" + } + }, + "node_modules/lodash._basecreatecallback": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/lodash._basecreatecallback/-/lodash._basecreatecallback-2.3.0.tgz", + "integrity": "sha512-Ev+pDzzfVfgbiucpXijconLGRBar7/+KNCf05kSnk4CmdDVhAy1RdbU9efCJ/o9GXI08JdUGwZ+5QJ3QX3kj0g==", + "dependencies": { + "lodash._setbinddata": "~2.3.0", + "lodash.bind": "~2.3.0", + "lodash.identity": "~2.3.0", + "lodash.support": "~2.3.0" + } + }, + "node_modules/lodash._basecreatewrapper": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/lodash._basecreatewrapper/-/lodash._basecreatewrapper-2.3.0.tgz", + "integrity": "sha512-YLycQ7k8AB9Wc1EOvLNxuRWcqipDkMXq2GCgnLWQR6qtgTb3gY3LELzEpnFshrEO4LOLs+R2EpcY+uCOZaLQ8Q==", + "dependencies": { + "lodash._basecreate": "~2.3.0", + "lodash._setbinddata": "~2.3.0", + "lodash._slice": "~2.3.0", + "lodash.isobject": "~2.3.0" + } + }, + "node_modules/lodash._createwrapper": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/lodash._createwrapper/-/lodash._createwrapper-2.3.0.tgz", + "integrity": "sha512-XjaI/rzg9W+WO4WJDQ+PRlHD5sAMJ1RhJLuT65cBxLCb1kIYs4U20jqvTDGAWyVT3c34GYiLd9AreHYuB/8yJA==", + "dependencies": { + "lodash._basebind": "~2.3.0", + "lodash._basecreatewrapper": "~2.3.0", + "lodash.isfunction": "~2.3.0" + } + }, + "node_modules/lodash._objecttypes": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/lodash._objecttypes/-/lodash._objecttypes-2.3.0.tgz", + "integrity": "sha512-jbA6QyHt9cw3BzvbWzIcnU3Z12jSneT6xBgz3Y782CJsN1tV5aTBKrFo2B4AkeHBNaxSrbPYZZpi1Lwj3xjdtg==" + }, + "node_modules/lodash._renative": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/lodash._renative/-/lodash._renative-2.3.0.tgz", + "integrity": "sha512-v44MRirqYqZGK/h5UKoVqXWF2L+LUiLTU+Ogu5rHRVWJUA1uWIlHaMpG8f/OA8j++BzPMQij9+erXHtgFcbuwg==" + }, + "node_modules/lodash._setbinddata": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/lodash._setbinddata/-/lodash._setbinddata-2.3.0.tgz", + "integrity": "sha512-xMFfbF7dL+sFtrdE49uHFmfpBAEwlFtfgMp86nQRlAF6aizYL+3MTbnYMKJSkP1W501PhsgiBED5kBbZd8kR2g==", + "dependencies": { + "lodash._renative": "~2.3.0", + "lodash.noop": "~2.3.0" + } + }, + "node_modules/lodash._shimkeys": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/lodash._shimkeys/-/lodash._shimkeys-2.3.0.tgz", + "integrity": "sha512-9Iuyi7TiWMGa/9+2rqEE+Zwye4b/U2w7Saw6UX1h6Xs88mEER+uz9FZcEBPKMVKsad9Pw5GNAcIBRnW2jNpneQ==", + "dependencies": { + "lodash._objecttypes": "~2.3.0" + } + }, + "node_modules/lodash._slice": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/lodash._slice/-/lodash._slice-2.3.0.tgz", + "integrity": "sha512-7C61GhzRUv36gTafr+RIb+AomCAYsSATEoK4OP0VkNBcwvsM022Z22AVgqjjzikeNO1U29LzsJZDvLbiNPUYvA==" + }, + "node_modules/lodash.bind": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/lodash.bind/-/lodash.bind-2.3.0.tgz", + "integrity": "sha512-goakyOo+FMN8lttMPnZ0UNlr5RlzX4IrUXyTJPT2A0tGCMXySupond9wzvDqTvVmYTcQjIKGrj8naJDS2xWAlQ==", + "dependencies": { + "lodash._createwrapper": "~2.3.0", + "lodash._renative": "~2.3.0", + "lodash._slice": "~2.3.0" + } + }, + "node_modules/lodash.foreach": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/lodash.foreach/-/lodash.foreach-2.3.0.tgz", + "integrity": "sha512-yLnyptVRJd0//AbGp480grgQG9iaDIV5uOgSbpurRy1dYybPbjNTLQ3FyLEQ84buVLPG7jyaiyvpzgfOutRB3Q==", + "dependencies": { + "lodash._basecreatecallback": "~2.3.0", + "lodash.forown": "~2.3.0" + } + }, + "node_modules/lodash.forown": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/lodash.forown/-/lodash.forown-2.3.0.tgz", + "integrity": "sha512-dUnCsuQTtq3Y7bxPNoEEqjJjPL2ftLtcz2PTeRKvhbpdM514AvnqCjewHGsm/W+dwspIwa14KoWEZeizJ7smxA==", + "dependencies": { + "lodash._basecreatecallback": "~2.3.0", + "lodash._objecttypes": "~2.3.0", + "lodash.keys": "~2.3.0" + } + }, + "node_modules/lodash.identity": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/lodash.identity/-/lodash.identity-2.3.0.tgz", + "integrity": "sha512-NYJ2r2cwy3tkx/saqbIZEX6oQUzjWTnGRu7d/zmBjMCZos3eHBxCpbvWFWSetv8jFVrptsp6EbWjzNgBKhUoOA==" + }, + "node_modules/lodash.isfunction": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/lodash.isfunction/-/lodash.isfunction-2.3.0.tgz", + "integrity": "sha512-X5lteBYlCrVO7Qc00fxP8W90fzRp6Ax9XcHANmU3OsZHdSyIVZ9ZlX5QTTpRq8aGY+9I5Rmd0UTzTIIyWPugEQ==" + }, + "node_modules/lodash.isobject": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/lodash.isobject/-/lodash.isobject-2.3.0.tgz", + "integrity": "sha512-jo1pfV61C4TE8BfEzqaHj6EIKiSkFANJrB6yscwuCJMSRw5tbqjk4Gv7nJzk4Z6nFKobZjGZ8Qd41vmnwgeQqQ==", + "dependencies": { + "lodash._objecttypes": "~2.3.0" + } + }, + "node_modules/lodash.keys": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-2.3.0.tgz", + "integrity": "sha512-c0UW0ffqMxSCtoVbmVt2lERJLkEqgoOn2ejPsWXzr0ZrqRbl3uruGgwHzhtqXxi6K/ei3Ey7zimOqSwXgzazPg==", + "dependencies": { + "lodash._renative": "~2.3.0", + "lodash._shimkeys": "~2.3.0", + "lodash.isobject": "~2.3.0" + } + }, + "node_modules/lodash.noop": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/lodash.noop/-/lodash.noop-2.3.0.tgz", + "integrity": "sha512-NpSm8HRm1WkBBWHUveDukLF4Kfb5P5E3fjHc9Qre9A11nNubozLWD2wH3UBTZbu+KSuX8aSUvy9b+PUyEceJ8g==" + }, + "node_modules/lodash.support": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/lodash.support/-/lodash.support-2.3.0.tgz", + "integrity": "sha512-etc7VWbB0U3Iya8ixj2xy4sDBN3jvPX7ODi8iXtn4KkkjNpdngrdc7Vlt5jub/Vgqx6/dWtp7Ml9awhCQPYKGQ==", + "dependencies": { + "lodash._renative": "~2.3.0" + } + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/normalize-svg-path": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/normalize-svg-path/-/normalize-svg-path-1.1.0.tgz", + "integrity": "sha512-r9KHKG2UUeB5LoTouwDzBy2VxXlHsiM6fyLQvnJa0S5hrhzqElH/CH7TUGhT1fVvIYBIKf3OpY4YJ4CK+iaqHg==", + "dependencies": { + "svg-arc-to-cubic-bezier": "^3.0.0" + } + }, + "node_modules/pako": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/pako/-/pako-2.1.0.tgz", + "integrity": "sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug==" + }, + "node_modules/parse-svg-path": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/parse-svg-path/-/parse-svg-path-0.1.2.tgz", + "integrity": "sha512-JyPSBnkTJ0AI8GGJLfMXvKq42cj5c006fnLz6fXy6zfoVjJizi8BNTpu8on8ziI1cKy9d9DGNuY17Ce7wuejpQ==" + }, + "node_modules/pathfinding": { + "version": "0.4.18", + "resolved": "https://registry.npmjs.org/pathfinding/-/pathfinding-0.4.18.tgz", + "integrity": "sha512-R0TGEQ9GRcFCDvAWlJAWC+KGJ9SLbW4c0nuZRcioVlXVTlw+F5RvXQ8SQgSqI9KXWC1ew95vgmIiyaWTlCe9Ag==", + "dependencies": { + "heap": "0.2.5" + } + }, + "node_modules/react": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", + "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==", + "peer": true, + "dependencies": { + "loose-envify": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-error-boundary": { + "version": "4.0.13", + "resolved": "https://registry.npmjs.org/react-error-boundary/-/react-error-boundary-4.0.13.tgz", + "integrity": "sha512-b6PwbdSv8XeOSYvjt8LpgpKrZ0yGdtZokYwkwV2wlcZbxgopHX/hgPl5VgpnoVOWd868n1hktM8Qm4b+02MiLQ==", + "dependencies": { + "@babel/runtime": "^7.12.5" + }, + "peerDependencies": { + "react": ">=16.13.1" + } + }, + "node_modules/react-reconciler": { + "version": "0.29.0", + "resolved": "https://registry.npmjs.org/react-reconciler/-/react-reconciler-0.29.0.tgz", + "integrity": "sha512-wa0fGj7Zht1EYMRhKWwoo1H9GApxYLBuhoAuXN0TlltESAjDssB+Apf0T/DngVqaMyPypDmabL37vw/2aRM98Q==", + "dependencies": { + "loose-envify": "^1.1.0", + "scheduler": "^0.23.0" + }, + "engines": { + "node": ">=0.10.0" + }, + "peerDependencies": { + "react": "^18.2.0" + } + }, + "node_modules/rectilinear-router": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/rectilinear-router/-/rectilinear-router-1.0.1.tgz", + "integrity": "sha512-3cLXo9A8/jK36nU5XRTC0V/9DLn0ORBaI02nYqGnoscazzo1xphyzzmQIJK8QjyNSBqoDAypkpOEP0khMMIPPw==", + "dependencies": { + "lodash": "^4.17.21", + "rsmt-ts": "^1.1.4" + } + }, + "node_modules/regenerator-runtime": { + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", + "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==" + }, + "node_modules/rsmt-ts": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/rsmt-ts/-/rsmt-ts-1.1.6.tgz", + "integrity": "sha512-SKq3nla9/X4YUJX+DkInHbdZ/iEfVkGnpvP8zaF9/vv09vpHHmpiHv129zpKkVjVr7dML9lBGBdTok41Z3rQnQ==", + "dependencies": { + "glpk.js": "^4.0.1" + } + }, + "node_modules/scheduler": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz", + "integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==", + "dependencies": { + "loose-envify": "^1.1.0" + } + }, + "node_modules/svg-arc-to-cubic-bezier": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/svg-arc-to-cubic-bezier/-/svg-arc-to-cubic-bezier-3.2.0.tgz", + "integrity": "sha512-djbJ/vZKZO+gPoSDThGNpKDO+o+bAeA4XQKovvkNCqnIS2t+S4qnLAGQhyyrulhCFRl1WWzAp0wUDV8PpTVU3g==" + }, + "node_modules/svg-path-bounds": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/svg-path-bounds/-/svg-path-bounds-1.0.2.tgz", + "integrity": "sha512-H4/uAgLWrppIC0kHsb2/dWUYSmb4GE5UqH06uqWBcg6LBjX2fu0A8+JrO2/FJPZiSsNOKZAhyFFgsLTdYUvSqQ==", + "dependencies": { + "abs-svg-path": "^0.1.1", + "is-svg-path": "^1.0.1", + "normalize-svg-path": "^1.0.0", + "parse-svg-path": "^0.1.2" + } + }, + "node_modules/transformation-matrix": { + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/transformation-matrix/-/transformation-matrix-2.16.1.tgz", + "integrity": "sha512-tdtC3wxVEuzU7X/ydL131Q3JU5cPMEn37oqVLITjRDSDsnSHVFzW2JiCLfZLIQEgWzZHdSy3J6bZzvKEN24jGA==", + "funding": { + "url": "https://github.com/sponsors/chrvadala" + } + }, + "node_modules/typescript": { + "version": "5.4.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", + "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + } + } +} diff --git a/tests/assets/example-project/package.json b/tests/assets/example-project/package.json index 601904be..2c6856bd 100644 --- a/tests/assets/example-project/package.json +++ b/tests/assets/example-project/package.json @@ -4,7 +4,7 @@ "type": "module", "main": "dist/index.js", "dependencies": { - "@tscircuit/builder": "latest", - "@tscircuit/react-fiber": "^1.0.6" + "@tscircuit/builder": "^1.5.56", + "@tscircuit/react-fiber": "^1.0.33" } -} \ No newline at end of file +} diff --git a/tests/assets/example-project/src/MyCircuit.tsx b/tests/assets/example-project/src/MyCircuit.tsx index 26f4aff3..36a06962 100644 --- a/tests/assets/example-project/src/MyCircuit.tsx +++ b/tests/assets/example-project/src/MyCircuit.tsx @@ -1,5 +1,7 @@ import "@tscircuit/react-fiber" export const MyCircuit = () => ( - + + + )