@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 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
- - [R3F-Perf](https://github.com/utsuboco/r3f-perf) — monitors rendering performance while developing.
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.16",
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"
@@ -11,8 +11,9 @@
11
11
 
12
12
  ## UI Design and Components
13
13
 
14
- - Design self-explanatory interfaces: use clear labels and visual hierarchy instead of explanatory text; add help text only when necessary.
15
- - For menus, dialogs, popovers, tabs, and form controls, consult [docs/headless-ui.md](docs/headless-ui.md) and its official Headless UI links before implementation.
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
- Use the installed `@headlessui/react` package for accessible, unstyled React components. Style them with Tailwind CSS. Read the linked official documentation for component composition, keyboard behavior, and API details before implementing a matching interface.
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
 
@@ -10,6 +10,7 @@
10
10
  </head>
11
11
  <body class="select-none">
12
12
  <div id="root"></div>
13
+ <div id="ui-root"></div>
13
14
  <script type="module" src="/src/main.jsx"></script>
14
15
  </body>
15
16
  </html>
@@ -3,7 +3,7 @@
3
3
  "private": true,
4
4
  "version": "0.0.0",
5
5
  "type": "module",
6
- "packageManager": "pnpm@12.15.0",
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.43.1",
26
- "d3": "^7.9.0",
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.5.11",
31
- "i18next-browser-languagedetector": "^8.2.3",
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.62.1",
34
+ "mediabunny": "^1.65.1",
35
35
  "navcat": "^0.4.1",
36
36
  "p5": "^2.3.4",
37
- "postprocessing": "^6.39.5",
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.9",
42
- "react-router": "^8.5.0",
43
- "recast-navigation": "^0.43.1",
44
- "three": "^0.186.1",
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.3",
51
- "@vitejs/plugin-react": "^6.1.2",
52
- "r3f-perf": "^7.2.3",
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
  }