@crapthings/run3d 0.2.16 → 0.2.18
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/README.md +1 -1
- package/package.json +2 -1
- package/template/AGENTS.md +3 -2
- package/template/docs/headless-ui.md +3 -1
- package/template/index.html +1 -0
- package/template/package.json +14 -15
- package/template/pnpm-lock.yaml +472 -704
- package/template/pnpm-workspace.yaml +50 -0
- package/template/src/app.jsx +8 -4
- package/template/src/scenes/index.jsx +4 -3
- package/template/src/ui/index.jsx +11 -0
package/README.md
CHANGED
|
@@ -41,7 +41,7 @@ Ordered by importance to the starter and typical usage, with core tools first an
|
|
|
41
41
|
- [GSAP](https://github.com/greensock/GSAP) and [@gsap/react](https://github.com/greensock/react) — animate scene and UI properties with timelines and the `useGSAP` React hook.
|
|
42
42
|
- [Postprocessing](https://github.com/pmndrs/postprocessing) and [@react-three/postprocessing](https://github.com/pmndrs/react-postprocessing) — add visual effects with React components.
|
|
43
43
|
- [pmndrs/math](https://github.com/pmndrs/math) — provides math utilities for 3D work.
|
|
44
|
-
- [
|
|
44
|
+
- [Drei StatsGl](https://github.com/pmndrs/drei#statsgl) — monitors rendering performance while developing.
|
|
45
45
|
|
|
46
46
|
### Data and state
|
|
47
47
|
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.2.
|
|
6
|
+
"version": "0.2.18",
|
|
7
7
|
"description": "From idea to interactive 3D prototype in one command. A JavaScript starter with Vite, React Three Fiber, and tools for creative experimentation.",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"bin": {
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"template/npmrc",
|
|
20
20
|
"template/package.json",
|
|
21
21
|
"template/pnpm-lock.yaml",
|
|
22
|
+
"template/pnpm-workspace.yaml",
|
|
22
23
|
"template/public",
|
|
23
24
|
"template/src",
|
|
24
25
|
"template/vite.config.js"
|
package/template/AGENTS.md
CHANGED
|
@@ -11,8 +11,9 @@
|
|
|
11
11
|
|
|
12
12
|
## UI Design and Components
|
|
13
13
|
|
|
14
|
-
-
|
|
15
|
-
-
|
|
14
|
+
- Keep HTML interface components in `src/ui`, rendered through the `Ui` portal into `#ui-root`. Add `pointer-events-auto` to interactive UI regions so empty overlay areas remain transparent to scene input.
|
|
15
|
+
- Prefer `@floating-ui/react` for dialogs, popovers, menus, and tooltips; use its positioning, interaction, focus, and dismissal primitives. Follow the official docs and provide accessible titles, focus trapping and restoration, Escape dismissal, and backdrops for modal dialogs.
|
|
16
|
+
- Use `@headlessui/react` when a ready-made component fits better, especially for tabs and form controls. See [docs/headless-ui.md](docs/headless-ui.md).
|
|
16
17
|
|
|
17
18
|
## Commands
|
|
18
19
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# Headless UI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Prefer `@floating-ui/react` for overlays, especially dialogs, popovers, dropdown menus, and tooltips. Read its official [React guide](https://floating-ui.com/docs/react), [Dialog example](https://floating-ui.com/docs/dialog), and [FloatingFocusManager guide](https://floating-ui.com/docs/floatingfocusmanager) before implementation. Use its primitives for positioning, interactions, focus management, and dismissal.
|
|
4
|
+
|
|
5
|
+
Use the installed `@headlessui/react` package when a ready-made accessible component better fits the interface, including dialogs, tabs, and form controls. The guide below applies when choosing Headless UI. Style components with Tailwind CSS and read the linked official documentation for component composition, keyboard behavior, and API details.
|
|
4
6
|
|
|
5
7
|
## Component guide
|
|
6
8
|
|
package/template/index.html
CHANGED
package/template/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"private": true,
|
|
4
4
|
"version": "0.0.0",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"packageManager": "pnpm@12.
|
|
6
|
+
"packageManager": "pnpm@12.16.1",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=24"
|
|
9
9
|
},
|
|
@@ -22,35 +22,34 @@
|
|
|
22
22
|
"@react-three/fiber": "^9.8.2",
|
|
23
23
|
"@react-three/postprocessing": "^3.2.2",
|
|
24
24
|
"@react-three/rapier": "^2.2.0",
|
|
25
|
-
"@recast-navigation/three": "^0.
|
|
26
|
-
"d3": "^7.9.
|
|
25
|
+
"@recast-navigation/three": "^0.44.0",
|
|
26
|
+
"d3": "^7.9.1",
|
|
27
27
|
"fastnoise-lite": "^1.1.1",
|
|
28
28
|
"gsap": "^3.15.0",
|
|
29
29
|
"howler": "^2.2.4",
|
|
30
|
-
"i18next": "^26.
|
|
31
|
-
"i18next-browser-languagedetector": "^8.
|
|
30
|
+
"i18next": "^26.7.1",
|
|
31
|
+
"i18next-browser-languagedetector": "^8.3.0",
|
|
32
32
|
"koota": "^0.6.6",
|
|
33
33
|
"math": "0.1.0",
|
|
34
|
-
"mediabunny": "^1.
|
|
34
|
+
"mediabunny": "^1.65.1",
|
|
35
35
|
"navcat": "^0.4.1",
|
|
36
36
|
"p5": "^2.3.4",
|
|
37
|
-
"postprocessing": "^6.39.
|
|
37
|
+
"postprocessing": "^6.39.6",
|
|
38
38
|
"react": "19.2.8",
|
|
39
39
|
"react-dom": "19.2.8",
|
|
40
40
|
"react-hotkeys-hook": "^5.3.3",
|
|
41
|
-
"react-i18next": "^17.1.
|
|
42
|
-
"react-router": "^8.5.
|
|
43
|
-
"recast-navigation": "^0.
|
|
44
|
-
"three": "^0.
|
|
41
|
+
"react-i18next": "^17.1.11",
|
|
42
|
+
"react-router": "^8.5.1",
|
|
43
|
+
"recast-navigation": "^0.44.0",
|
|
44
|
+
"three": "^0.187.0",
|
|
45
45
|
"three-hex-tiling": "^0.1.5",
|
|
46
46
|
"tsl-hex-tiling": "^0.1.1",
|
|
47
47
|
"zustand": "^5.0.16"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@tailwindcss/vite": "^4.3.
|
|
51
|
-
"@vitejs/plugin-react": "^6.1
|
|
52
|
-
"
|
|
53
|
-
"tailwindcss": "^4.3.3",
|
|
50
|
+
"@tailwindcss/vite": "^4.3.4",
|
|
51
|
+
"@vitejs/plugin-react": "^6.2.1",
|
|
52
|
+
"tailwindcss": "^4.3.4",
|
|
54
53
|
"vite": "^8.3.5"
|
|
55
54
|
}
|
|
56
55
|
}
|