@tscircuit/rectdiff 0.0.3 → 0.0.4

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/index.html CHANGED
@@ -3,10 +3,10 @@
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>React Cosmos Vite Renderer</title>
6
+ <title>React Cosmos</title>
7
7
  </head>
8
8
  <body>
9
9
  <div id="root"></div>
10
- <script type="module" src="/src/main.tsx"></script>
10
+ <script type="module" src="/main.tsx"></script>
11
11
  </body>
12
12
  </html>
package/main.tsx ADDED
@@ -0,0 +1 @@
1
+ import "react-cosmos/client"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/rectdiff",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -15,23 +15,26 @@
15
15
  "@react-hook/resize-observer": "^2.0.2",
16
16
  "@tscircuit/solver-utils": "^0.0.3",
17
17
  "@types/bun": "latest",
18
+ "@types/react": "^18",
19
+ "@types/react-dom": "^18",
18
20
  "@types/three": "^0.181.0",
19
21
  "biome": "^0.3.3",
20
22
  "bun-match-svg": "^0.0.14",
21
23
  "graphics-debug": "^0.0.70",
22
24
  "rbush": "^4.0.1",
23
- "react": "^19.2.0",
24
- "react-cosmos": "^7.0.0",
25
- "react-cosmos-plugin-vite": "^7.0.0",
26
- "react-dom": "^19.2.0",
25
+ "react": "18",
26
+ "react-cosmos": "^6.2.3",
27
+ "react-cosmos-plugin-vite": "^6.2.0",
28
+ "react-dom": "18",
27
29
  "three": "^0.181.1",
28
- "tsup": "^8.5.1"
30
+ "tsup": "^8.5.1",
31
+ "vite": "^6.0.11",
32
+ "@vitejs/plugin-react": "^4"
29
33
  },
30
34
  "peerDependencies": {
31
35
  "typescript": "^5"
32
36
  },
33
37
  "dependencies": {
34
- "D": "^1.0.0",
35
- "vite": "^7.2.2"
38
+ "D": "^1.0.0"
36
39
  }
37
40
  }
package/vite.config.ts ADDED
@@ -0,0 +1,7 @@
1
+ import { defineConfig } from "vite"
2
+ import react from "@vitejs/plugin-react"
3
+
4
+ // https://vitejs.dev/config/
5
+ export default defineConfig({
6
+ plugins: [react()],
7
+ })