@react-three/fiber 9.1.2 → 9.1.3

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @react-three/fiber
2
2
 
3
+ ## 9.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - efd28328f5e612b0592be7da316fad990fdf4675: fix(native) fix crash on rerendering GLView with new arch
8
+
3
9
  ## 9.1.2
4
10
 
5
11
  ### Patch Changes
@@ -528,7 +534,7 @@
528
534
 
529
535
  ### Patch Changes
530
536
 
531
- - 564edbbb: fix port inject layers, it should allow root props to overwrite indefined portal props"
537
+ - 564edbbb: fix port inject layers, it should allow root props to overwrite undefined portal props"
532
538
 
533
539
  ## 8.10.1
534
540
 
@@ -959,7 +965,7 @@
959
965
 
960
966
  ### Patch Changes
961
967
 
962
- - 7aa2eab: fix: remove zustand subcribe selector
968
+ - 7aa2eab: fix: remove zustand subscribe selector
963
969
 
964
970
  ## 7.0.18
965
971
 
@@ -983,7 +989,7 @@
983
989
 
984
990
  ### Patch Changes
985
991
 
986
- - c5645e8: fix primitve leftovers on switch
992
+ - c5645e8: fix primitive leftovers on switch
987
993
 
988
994
  ## 7.0.14
989
995
 
@@ -1065,7 +1071,7 @@
1065
1071
 
1066
1072
  - 96ae1ad: fix javascript interpreting negative renderpriority as positive
1067
1073
 
1068
- This is a major breaking change that will fix an edge-case. It will only affect you if you used negative useFrame indicies, for instance
1074
+ This is a major breaking change that will fix an edge-case. It will only affect you if you used negative useFrame indices, for instance
1069
1075
 
1070
1076
  ```jsx
1071
1077
  useFrame(..., -1)
@@ -2033,7 +2033,7 @@ function Provider({
2033
2033
  active: true
2034
2034
  }
2035
2035
  }));
2036
- // Notifiy that init is completed, the scene graph exists, but nothing has yet rendered
2036
+ // Notify that init is completed, the scene graph exists, but nothing has yet rendered
2037
2037
  if (onCreated) onCreated(state);
2038
2038
  // Connect events to the targets parent, this is done to ensure events are registered on
2039
2039
  // a shared target, and not on the canvas itself
@@ -2033,7 +2033,7 @@ function Provider({
2033
2033
  active: true
2034
2034
  }
2035
2035
  }));
2036
- // Notifiy that init is completed, the scene graph exists, but nothing has yet rendered
2036
+ // Notify that init is completed, the scene graph exists, but nothing has yet rendered
2037
2037
  if (onCreated) onCreated(state);
2038
2038
  // Connect events to the targets parent, this is done to ensure events are registered on
2039
2039
  // a shared target, and not on the canvas itself
@@ -2007,7 +2007,7 @@ function Provider({
2007
2007
  active: true
2008
2008
  }
2009
2009
  }));
2010
- // Notifiy that init is completed, the scene graph exists, but nothing has yet rendered
2010
+ // Notify that init is completed, the scene graph exists, but nothing has yet rendered
2011
2011
  if (onCreated) onCreated(state);
2012
2012
  // Connect events to the targets parent, this is done to ensure events are registered on
2013
2013
  // a shared target, and not on the canvas itself
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var events = require('./events-485b18b5.cjs.dev.js');
5
+ var events = require('./events-66111f5e.cjs.dev.js');
6
6
  var React = require('react');
7
7
  var THREE = require('three');
8
8
  var useMeasure = require('react-use-measure');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var events = require('./events-ff8a8ea8.cjs.prod.js');
5
+ var events = require('./events-a96a0963.cjs.prod.js');
6
6
  var React = require('react');
7
7
  var THREE = require('three');
8
8
  var useMeasure = require('react-use-measure');
@@ -1,5 +1,5 @@
1
- import { e as extend, u as useBridge, a as useMutableCallback, b as useIsomorphicLayoutEffect, c as createRoot, i as isRef, E as ErrorBoundary, B as Block, d as unmountComponentAtNode, f as createPointerEvents } from './events-dc44c1b8.esm.js';
2
- export { t as ReactThreeFiber, _ as _roots, w as act, k as addAfterEffect, j as addEffect, l as addTail, n as advance, q as applyProps, x as buildGraph, p as context, g as createEvents, o as createPortal, c as createRoot, v as dispose, f as events, e as extend, h as flushGlobalEffects, s as getRootState, m as invalidate, r as reconciler, d as unmountComponentAtNode, C as useFrame, D as useGraph, y as useInstanceHandle, F as useLoader, z as useStore, A as useThree } from './events-dc44c1b8.esm.js';
1
+ import { e as extend, u as useBridge, a as useMutableCallback, b as useIsomorphicLayoutEffect, c as createRoot, i as isRef, E as ErrorBoundary, B as Block, d as unmountComponentAtNode, f as createPointerEvents } from './events-f681e724.esm.js';
2
+ export { t as ReactThreeFiber, _ as _roots, w as act, k as addAfterEffect, j as addEffect, l as addTail, n as advance, q as applyProps, x as buildGraph, p as context, g as createEvents, o as createPortal, c as createRoot, v as dispose, f as events, e as extend, h as flushGlobalEffects, s as getRootState, m as invalidate, r as reconciler, d as unmountComponentAtNode, C as useFrame, D as useGraph, y as useInstanceHandle, F as useLoader, z as useStore, A as useThree } from './events-f681e724.esm.js';
3
3
  import * as React from 'react';
4
4
  import * as THREE from 'three';
5
5
  import useMeasure from 'react-use-measure';
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var events = require('../../dist/events-485b18b5.cjs.dev.js');
5
+ var events = require('../../dist/events-66111f5e.cjs.dev.js');
6
6
  var React = require('react');
7
7
  var THREE = require('three');
8
8
  var reactNative = require('react-native');
@@ -61,6 +61,7 @@ function CanvasImpl({
61
61
  onPointerMissed,
62
62
  onCreated,
63
63
  ref,
64
+ pointerEvents,
64
65
  ...props
65
66
  }) {
66
67
  // Create a known catalogue of Threejs-native elements
@@ -252,7 +253,7 @@ function CanvasImpl({
252
253
  return () => events.unmountComponentAtNode(canvas);
253
254
  }
254
255
  }, [canvas]);
255
- return /*#__PURE__*/jsxRuntime.jsx(_View, {
256
+ return /*#__PURE__*/jsxRuntime.jsxs(_View, {
256
257
  ...props,
257
258
  ref: viewRef,
258
259
  onLayout: onLayout,
@@ -260,12 +261,15 @@ function CanvasImpl({
260
261
  flex: 1,
261
262
  ...style
262
263
  },
263
- ...bind,
264
- children: width > 0 && /*#__PURE__*/jsxRuntime.jsx(expoGl.GLView, {
264
+ children: [width > 0 && /*#__PURE__*/jsxRuntime.jsx(expoGl.GLView, {
265
265
  msaaSamples: antialias ? 4 : 0,
266
266
  onContextCreate: onContextCreate,
267
267
  style: reactNative.StyleSheet.absoluteFill
268
- })
268
+ }), /*#__PURE__*/jsxRuntime.jsx(_View, {
269
+ style: reactNative.StyleSheet.absoluteFill,
270
+ pointerEvents: pointerEvents,
271
+ ...bind
272
+ })]
269
273
  });
270
274
  }
271
275
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var events = require('../../dist/events-ff8a8ea8.cjs.prod.js');
5
+ var events = require('../../dist/events-a96a0963.cjs.prod.js');
6
6
  var React = require('react');
7
7
  var THREE = require('three');
8
8
  var reactNative = require('react-native');
@@ -61,6 +61,7 @@ function CanvasImpl({
61
61
  onPointerMissed,
62
62
  onCreated,
63
63
  ref,
64
+ pointerEvents,
64
65
  ...props
65
66
  }) {
66
67
  // Create a known catalogue of Threejs-native elements
@@ -252,7 +253,7 @@ function CanvasImpl({
252
253
  return () => events.unmountComponentAtNode(canvas);
253
254
  }
254
255
  }, [canvas]);
255
- return /*#__PURE__*/jsxRuntime.jsx(_View, {
256
+ return /*#__PURE__*/jsxRuntime.jsxs(_View, {
256
257
  ...props,
257
258
  ref: viewRef,
258
259
  onLayout: onLayout,
@@ -260,12 +261,15 @@ function CanvasImpl({
260
261
  flex: 1,
261
262
  ...style
262
263
  },
263
- ...bind,
264
- children: width > 0 && /*#__PURE__*/jsxRuntime.jsx(expoGl.GLView, {
264
+ children: [width > 0 && /*#__PURE__*/jsxRuntime.jsx(expoGl.GLView, {
265
265
  msaaSamples: antialias ? 4 : 0,
266
266
  onContextCreate: onContextCreate,
267
267
  style: reactNative.StyleSheet.absoluteFill
268
- })
268
+ }), /*#__PURE__*/jsxRuntime.jsx(_View, {
269
+ style: reactNative.StyleSheet.absoluteFill,
270
+ pointerEvents: pointerEvents,
271
+ ...bind
272
+ })]
269
273
  });
270
274
  }
271
275
 
@@ -1,11 +1,11 @@
1
- import { e as extend, u as useBridge, a as useMutableCallback, c as createRoot, b as useIsomorphicLayoutEffect, E as ErrorBoundary, B as Block, d as unmountComponentAtNode, f as createPointerEvents, g as createEvents } from '../../dist/events-dc44c1b8.esm.js';
2
- export { t as ReactThreeFiber, _ as _roots, w as act, k as addAfterEffect, j as addEffect, l as addTail, n as advance, q as applyProps, x as buildGraph, p as context, g as createEvents, o as createPortal, c as createRoot, v as dispose, e as extend, h as flushGlobalEffects, s as getRootState, m as invalidate, r as reconciler, d as unmountComponentAtNode, C as useFrame, D as useGraph, y as useInstanceHandle, F as useLoader, z as useStore, A as useThree } from '../../dist/events-dc44c1b8.esm.js';
1
+ import { e as extend, u as useBridge, a as useMutableCallback, c as createRoot, b as useIsomorphicLayoutEffect, E as ErrorBoundary, B as Block, d as unmountComponentAtNode, f as createPointerEvents, g as createEvents } from '../../dist/events-f681e724.esm.js';
2
+ export { t as ReactThreeFiber, _ as _roots, w as act, k as addAfterEffect, j as addEffect, l as addTail, n as advance, q as applyProps, x as buildGraph, p as context, g as createEvents, o as createPortal, c as createRoot, v as dispose, e as extend, h as flushGlobalEffects, s as getRootState, m as invalidate, r as reconciler, d as unmountComponentAtNode, C as useFrame, D as useGraph, y as useInstanceHandle, F as useLoader, z as useStore, A as useThree } from '../../dist/events-f681e724.esm.js';
3
3
  import * as React from 'react';
4
4
  import * as THREE from 'three';
5
5
  import { PanResponder, PixelRatio, StyleSheet, View, Platform, Image, NativeModules } from 'react-native';
6
6
  import { GLView } from 'expo-gl';
7
7
  import { FiberProvider } from 'its-fine';
8
- import { jsx } from 'react/jsx-runtime';
8
+ import { jsx, jsxs } from 'react/jsx-runtime';
9
9
  import { Asset } from 'expo-asset';
10
10
  import * as fs from 'expo-file-system';
11
11
  import { fromByteArray } from 'base64-js';
@@ -36,6 +36,7 @@ function CanvasImpl({
36
36
  onPointerMissed,
37
37
  onCreated,
38
38
  ref,
39
+ pointerEvents,
39
40
  ...props
40
41
  }) {
41
42
  // Create a known catalogue of Threejs-native elements
@@ -227,7 +228,7 @@ function CanvasImpl({
227
228
  return () => unmountComponentAtNode(canvas);
228
229
  }
229
230
  }, [canvas]);
230
- return /*#__PURE__*/jsx(_View, {
231
+ return /*#__PURE__*/jsxs(_View, {
231
232
  ...props,
232
233
  ref: viewRef,
233
234
  onLayout: onLayout,
@@ -235,12 +236,15 @@ function CanvasImpl({
235
236
  flex: 1,
236
237
  ...style
237
238
  },
238
- ...bind,
239
- children: width > 0 && /*#__PURE__*/jsx(GLView, {
239
+ children: [width > 0 && /*#__PURE__*/jsx(GLView, {
240
240
  msaaSamples: antialias ? 4 : 0,
241
241
  onContextCreate: onContextCreate,
242
242
  style: StyleSheet.absoluteFill
243
- })
243
+ }), /*#__PURE__*/jsx(_View, {
244
+ style: StyleSheet.absoluteFill,
245
+ pointerEvents: pointerEvents,
246
+ ...bind
247
+ })]
244
248
  });
245
249
  }
246
250
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-three/fiber",
3
- "version": "9.1.2",
3
+ "version": "9.1.3",
4
4
  "description": "A React renderer for Threejs",
5
5
  "keywords": [
6
6
  "react",
@@ -14,7 +14,7 @@
14
14
  "maintainers": [
15
15
  "Josh Ellis (https://github.com/joshuaellis)",
16
16
  "Cody Bennett (https://github.com/codyjasonbennett)",
17
- "Kris Baumgarnter (https://github.com/krispya)"
17
+ "Kris Baumgarter (https://github.com/krispya)"
18
18
  ],
19
19
  "bugs": {
20
20
  "url": "https://github.com/pmndrs/react-three-fiber/issues"