@react-three/fiber 9.4.2 → 10.0.0-alpha.0
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/LICENSE +21 -0
- package/dist/index.cjs +14832 -0
- package/dist/index.d.cts +3350 -0
- package/dist/index.d.mts +3350 -0
- package/dist/index.d.ts +3350 -0
- package/dist/index.mjs +14747 -0
- package/dist/legacy.cjs +14820 -0
- package/dist/legacy.d.cts +3347 -0
- package/dist/legacy.d.mts +3347 -0
- package/dist/legacy.d.ts +3347 -0
- package/dist/legacy.mjs +14735 -0
- package/dist/webgpu/index.cjs +15274 -0
- package/dist/webgpu/index.d.cts +3470 -0
- package/dist/webgpu/index.d.mts +3470 -0
- package/dist/webgpu/index.d.ts +3470 -0
- package/dist/webgpu/index.mjs +15177 -0
- package/package.json +44 -44
- package/react-reconciler/constants.d.ts +7 -0
- package/react-reconciler/constants.js +9 -0
- package/react-reconciler/index.d.ts +1044 -0
- package/react-reconciler/index.js +224 -0
- package/readme.md +98 -33
- package/CHANGELOG.md +0 -1186
- package/dist/declarations/src/core/events.d.ts +0 -92
- package/dist/declarations/src/core/hooks.d.ts +0 -53
- package/dist/declarations/src/core/index.d.ts +0 -13
- package/dist/declarations/src/core/loop.d.ts +0 -31
- package/dist/declarations/src/core/reconciler.d.ts +0 -50
- package/dist/declarations/src/core/renderer.d.ts +0 -89
- package/dist/declarations/src/core/store.d.ts +0 -130
- package/dist/declarations/src/core/utils.d.ts +0 -191
- package/dist/declarations/src/index.d.ts +0 -6
- package/dist/declarations/src/native/Canvas.d.ts +0 -13
- package/dist/declarations/src/native/events.d.ts +0 -4
- package/dist/declarations/src/native.d.ts +0 -6
- package/dist/declarations/src/three-types.d.ts +0 -68
- package/dist/declarations/src/web/Canvas.d.ts +0 -23
- package/dist/declarations/src/web/events.d.ts +0 -4
- package/dist/events-1eccaf1c.esm.js +0 -2510
- package/dist/events-5c8d1731.cjs.prod.js +0 -2569
- package/dist/events-c80effae.cjs.dev.js +0 -2569
- package/dist/react-three-fiber.cjs.d.ts +0 -2
- package/dist/react-three-fiber.cjs.dev.js +0 -222
- package/dist/react-three-fiber.cjs.js +0 -7
- package/dist/react-three-fiber.cjs.prod.js +0 -222
- package/dist/react-three-fiber.esm.js +0 -167
- package/native/dist/react-three-fiber-native.cjs.d.ts +0 -2
- package/native/dist/react-three-fiber-native.cjs.dev.js +0 -569
- package/native/dist/react-three-fiber-native.cjs.js +0 -7
- package/native/dist/react-three-fiber-native.cjs.prod.js +0 -569
- package/native/dist/react-three-fiber-native.esm.js +0 -517
- package/native/package.json +0 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-three/fiber",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0-alpha.0",
|
|
4
4
|
"description": "A React renderer for Threejs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
"maintainers": [
|
|
15
15
|
"Josh Ellis (https://github.com/joshuaellis)",
|
|
16
16
|
"Cody Bennett (https://github.com/codyjasonbennett)",
|
|
17
|
-
"Kris Baumgarter (https://github.com/krispya)"
|
|
17
|
+
"Kris Baumgarter (https://github.com/krispya)",
|
|
18
|
+
"Dennis Smolek (https://github.com/dennissmolek)"
|
|
18
19
|
],
|
|
19
20
|
"bugs": {
|
|
20
21
|
"url": "https://github.com/pmndrs/react-three-fiber/issues"
|
|
@@ -28,62 +29,61 @@
|
|
|
28
29
|
"type": "opencollective",
|
|
29
30
|
"url": "https://opencollective.com/react-three-fiber"
|
|
30
31
|
},
|
|
31
|
-
"main": "dist/
|
|
32
|
-
"module": "dist/
|
|
33
|
-
"types": "dist/
|
|
34
|
-
"react-native": "native/dist/react-three-fiber-native.cjs.js",
|
|
32
|
+
"main": "./dist/index.cjs",
|
|
33
|
+
"module": "./dist/index.mjs",
|
|
34
|
+
"types": "./dist/index.d.ts",
|
|
35
35
|
"sideEffects": false,
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
36
|
+
"files": [
|
|
37
|
+
"dist",
|
|
38
|
+
"react-reconciler",
|
|
39
|
+
"readme.md"
|
|
40
|
+
],
|
|
41
|
+
"exports": {
|
|
42
|
+
".": {
|
|
43
|
+
"types": "./dist/index.d.ts",
|
|
44
|
+
"import": "./dist/index.mjs",
|
|
45
|
+
"require": "./dist/index.cjs"
|
|
46
|
+
},
|
|
47
|
+
"./legacy": {
|
|
48
|
+
"types": "./dist/legacy.d.ts",
|
|
49
|
+
"import": "./dist/legacy.mjs",
|
|
50
|
+
"require": "./dist/legacy.cjs"
|
|
51
|
+
},
|
|
52
|
+
"./webgpu": {
|
|
53
|
+
"types": "./dist/webgpu/index.d.ts",
|
|
54
|
+
"import": "./dist/webgpu/index.mjs",
|
|
55
|
+
"require": "./dist/webgpu/index.cjs"
|
|
56
|
+
}
|
|
44
57
|
},
|
|
45
58
|
"dependencies": {
|
|
46
59
|
"@babel/runtime": "^7.17.8",
|
|
47
|
-
"
|
|
48
|
-
"@types/webxr": "*",
|
|
49
|
-
"base64-js": "^1.5.1",
|
|
50
|
-
"buffer": "^6.0.3",
|
|
60
|
+
"dequal": "^2.0.3",
|
|
51
61
|
"its-fine": "^2.0.0",
|
|
52
|
-
"react-reconciler": "^0.31.0",
|
|
53
62
|
"react-use-measure": "^2.1.7",
|
|
54
|
-
"scheduler": "^0.
|
|
63
|
+
"scheduler": "^0.27.0",
|
|
55
64
|
"suspend-react": "^0.1.3",
|
|
56
65
|
"use-sync-external-store": "^1.4.0",
|
|
57
66
|
"zustand": "^5.0.3"
|
|
58
67
|
},
|
|
68
|
+
"devDependencies": {
|
|
69
|
+
"@types/react-reconciler": "^0.32.0",
|
|
70
|
+
"@types/three": "^0.181.0",
|
|
71
|
+
"@types/webxr": "*",
|
|
72
|
+
"react-reconciler": "^0.33.0"
|
|
73
|
+
},
|
|
59
74
|
"peerDependencies": {
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"expo-gl": ">=11.0",
|
|
64
|
-
"react": "^19.0.0",
|
|
65
|
-
"react-dom": "^19.0.0",
|
|
66
|
-
"react-native": ">=0.78",
|
|
67
|
-
"three": ">=0.156"
|
|
75
|
+
"react": ">=19.0 <19.3",
|
|
76
|
+
"react-dom": ">=19.0 <19.3",
|
|
77
|
+
"three": ">=0.181.2"
|
|
68
78
|
},
|
|
69
79
|
"peerDependenciesMeta": {
|
|
70
80
|
"react-dom": {
|
|
71
81
|
"optional": true
|
|
72
|
-
},
|
|
73
|
-
"react-native": {
|
|
74
|
-
"optional": true
|
|
75
|
-
},
|
|
76
|
-
"expo": {
|
|
77
|
-
"optional": true
|
|
78
|
-
},
|
|
79
|
-
"expo-asset": {
|
|
80
|
-
"optional": true
|
|
81
|
-
},
|
|
82
|
-
"expo-file-system": {
|
|
83
|
-
"optional": true
|
|
84
|
-
},
|
|
85
|
-
"expo-gl": {
|
|
86
|
-
"optional": true
|
|
87
82
|
}
|
|
83
|
+
},
|
|
84
|
+
"scripts": {
|
|
85
|
+
"prebuild": "node -e \"require('fs').copyFileSync('../../readme.md', 'readme.md')\"",
|
|
86
|
+
"build": "unbuild",
|
|
87
|
+
"stub": "unbuild --stub"
|
|
88
88
|
}
|
|
89
|
-
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export const DiscreteEventPriority = 0b0000000000000000000000000000001;
|
|
2
|
+
export const ContinuousEventPriority = 0b0000000000000000000000000000100;
|
|
3
|
+
export const DefaultEventPriority = 0b0000000000000000000000000010000;
|
|
4
|
+
export const IdleEventPriority = 0b0100000000000000000000000000000;
|
|
5
|
+
export const LegacyRoot = 0;
|
|
6
|
+
export const ConcurrentRoot = 1;
|
|
7
|
+
export const NoEventPriority = 0;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-reconciler-constants.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/const t=1,o=8,r=32,e=2,i=268435456,n=0,s=0;export{t as ConcurrentRoot,o as ContinuousEventPriority,r as DefaultEventPriority,e as DiscreteEventPriority,i as IdleEventPriority,n as LegacyRoot,s as NoEventPriority};
|