@materials3d/react 0.6.0 → 0.6.1
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/dist/index.d.ts +3 -3
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ interface FlatProps {
|
|
|
20
20
|
dprMax?: number;
|
|
21
21
|
paused?: boolean;
|
|
22
22
|
}
|
|
23
|
-
interface Materials3DProps<R extends RendererKind = "webgl"> extends FlatProps {
|
|
23
|
+
export interface Materials3DProps<R extends RendererKind = "webgl"> extends FlatProps {
|
|
24
24
|
/** A preset: a function (tree-shakeable) or a name string (lazy-imports the presets chunk). */
|
|
25
25
|
preset?: string | (() => Partial<SceneConfig$1>);
|
|
26
26
|
/**
|
|
@@ -62,9 +62,9 @@ interface Materials3DProps<R extends RendererKind = "webgl"> extends FlatProps {
|
|
|
62
62
|
* `play()`, `pause()`), on React 18 and 19 alike. `forwardRef` keeps the generic engine parameter
|
|
63
63
|
* only through this cast, which is why the component is declared this way.
|
|
64
64
|
*/
|
|
65
|
-
declare const Materials3D: <R extends RendererKind = "webgl">(props: Materials3DProps<R> & {
|
|
65
|
+
export declare const Materials3D: <R extends RendererKind = "webgl">(props: Materials3DProps<R> & {
|
|
66
66
|
ref?: Ref<MaterialHandle$1<R>>;
|
|
67
67
|
}) => ReactElement;
|
|
68
68
|
//#endregion
|
|
69
|
-
export { type FallbackReason, type MaterialHandle, Materials3D
|
|
69
|
+
export { type FallbackReason, type MaterialHandle, Materials3D as default, type SceneConfig, type SnapshotOptions };
|
|
70
70
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@materials3d/react",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Drop-in Materials3D scene for React: the <Materials3D> component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"background",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@materials3d/core": "^0.6.
|
|
39
|
+
"@materials3d/core": "^0.6.1"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@types/react": "^19.
|
|
43
|
-
"react": "^19.
|
|
42
|
+
"@types/react": "^19.3.0",
|
|
43
|
+
"react": "^19.3.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"@types/react": ">=18",
|