@react-three/fiber 8.17.13 → 8.18.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/CHANGELOG.md +12 -0
- package/dist/declarations/src/native/Canvas.d.ts +1 -1
- package/dist/declarations/src/web/Canvas.d.ts +1 -1
- package/dist/react-three-fiber.cjs.dev.js +1 -1
- package/dist/react-three-fiber.cjs.prod.js +1 -1
- package/dist/react-three-fiber.esm.js +1 -1
- package/native/dist/react-three-fiber-native.cjs.dev.js +1 -1
- package/native/dist/react-three-fiber-native.cjs.prod.js +1 -1
- package/native/dist/react-three-fiber-native.esm.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { View, type ViewProps, type ViewStyle } from 'react-native';
|
|
3
3
|
import { RenderProps } from '../core';
|
|
4
4
|
export interface CanvasProps extends Omit<RenderProps<HTMLCanvasElement>, 'size' | 'dpr'>, ViewProps {
|
|
5
|
-
children
|
|
5
|
+
children?: React.ReactNode;
|
|
6
6
|
style?: ViewStyle;
|
|
7
7
|
}
|
|
8
8
|
export interface Props extends CanvasProps {
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { Options as ResizeOptions } from 'react-use-measure';
|
|
3
3
|
import { RenderProps } from '../core';
|
|
4
4
|
export interface CanvasProps extends Omit<RenderProps<HTMLCanvasElement>, 'size'>, React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
children
|
|
5
|
+
children?: React.ReactNode;
|
|
6
6
|
/** Canvas fallback content, similar to img's alt prop */
|
|
7
7
|
fallback?: React.ReactNode;
|
|
8
8
|
/**
|
|
@@ -133,7 +133,7 @@ const CanvasImpl = /*#__PURE__*/React__namespace.forwardRef(function Canvas({
|
|
|
133
133
|
fallback: /*#__PURE__*/jsxRuntime.jsx(events.Block, {
|
|
134
134
|
set: setBlock
|
|
135
135
|
}),
|
|
136
|
-
children: children
|
|
136
|
+
children: children != null ? children : null
|
|
137
137
|
})
|
|
138
138
|
})
|
|
139
139
|
}));
|
|
@@ -133,7 +133,7 @@ const CanvasImpl = /*#__PURE__*/React__namespace.forwardRef(function Canvas({
|
|
|
133
133
|
fallback: /*#__PURE__*/jsxRuntime.jsx(events.Block, {
|
|
134
134
|
set: setBlock
|
|
135
135
|
}),
|
|
136
|
-
children: children
|
|
136
|
+
children: children != null ? children : null
|
|
137
137
|
})
|
|
138
138
|
})
|
|
139
139
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-three/fiber",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.18.0",
|
|
4
4
|
"description": "A React renderer for Threejs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"buffer": "^6.0.3",
|
|
50
50
|
"its-fine": "^1.0.6",
|
|
51
51
|
"react-reconciler": "^0.27.0",
|
|
52
|
-
"react-use-measure": "^2.1.
|
|
52
|
+
"react-use-measure": "^2.1.7",
|
|
53
53
|
"scheduler": "^0.21.0",
|
|
54
54
|
"suspend-react": "^0.1.3",
|
|
55
55
|
"zustand": "^3.7.1"
|