@react-three/fiber 8.0.0-beta.2 → 8.0.0-beta.5

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.
@@ -1,17 +1,17 @@
1
1
  import * as THREE from 'three';
2
2
  import { Asset } from 'expo-asset';
3
- import { c as createEvents, e as extend, p as pick, o as omit, a as createRoot, u as unmountComponentAtNode } from '../../dist/index-e78dd2f0.esm.js';
4
- export { t as ReactThreeFiber, q as _roots, n as act, l as addAfterEffect, k as addEffect, m as addTail, j as advance, g as applyProps, b as context, d as createPortal, a as createRoot, h as dispose, e as extend, i as invalidate, f as reconciler, r as render, u as unmountComponentAtNode, w as useFrame, x as useGraph, y as useLoader, s as useStore, v as useThree } from '../../dist/index-e78dd2f0.esm.js';
3
+ import { c as createEvents, e as extend, p as pick, o as omit, a as createRoot, u as unmountComponentAtNode } from '../../dist/index-32069e53.esm.js';
4
+ export { t as ReactThreeFiber, q as _roots, n as act, l as addAfterEffect, k as addEffect, m as addTail, j as advance, g as applyProps, b as context, d as createPortal, a as createRoot, h as dispose, e as extend, i as invalidate, f as reconciler, r as render, u as unmountComponentAtNode, x as useFrame, y as useGraph, w as useInject, z as useLoader, s as useStore, v as useThree } from '../../dist/index-32069e53.esm.js';
5
5
  import _extends from '@babel/runtime/helpers/esm/extends';
6
6
  import * as React from 'react';
7
7
  import { PixelRatio, View, StyleSheet } from 'react-native';
8
8
  import { GLView } from 'expo-gl';
9
9
  import Pressability from 'react-native/Libraries/Pressability/Pressability';
10
- import 'suspend-react';
11
10
  import 'react-reconciler/constants';
12
11
  import 'zustand';
13
12
  import 'react-reconciler';
14
13
  import 'scheduler';
14
+ import 'suspend-react';
15
15
 
16
16
  const EVENTS = {
17
17
  PRESS: 'onPress',
@@ -251,7 +251,7 @@ THREE.LoaderUtils.extractUrlBase = url => typeof url === 'string' ? extractUrlBa
251
251
 
252
252
 
253
253
  THREE.TextureLoader.prototype.load = function load(url, onLoad, onProgress, onError) {
254
- const texture = new THREE.Texture(); // @ts-expect-error
254
+ const texture = new THREE.Texture(); // @ts-ignore
255
255
 
256
256
  texture.isDataTexture = true;
257
257
  getAsset(url).downloadAsync().then(asset => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-three/fiber",
3
- "version": "8.0.0-beta.2",
3
+ "version": "8.0.0-beta.5",
4
4
  "description": "A React renderer for Threejs",
5
5
  "keywords": [
6
6
  "react",
@@ -43,21 +43,22 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@babel/runtime": "^7.17.2",
46
+ "@types/react-reconciler": "^0.26.4",
46
47
  "react-merge-refs": "^1.1.0",
47
- "react-reconciler": "^0.27.0-rc.1",
48
+ "react-reconciler": "^0.27.0-rc.2",
48
49
  "react-use-measure": "^2.1.1",
49
- "scheduler": "0.21.0-rc.1",
50
+ "scheduler": "^0.21.0-rc.2",
50
51
  "suspend-react": "^0.0.8",
51
52
  "zustand": "^3.7.1"
52
53
  },
53
54
  "peerDependencies": {
54
- "react": ">=18.0",
55
- "react-dom": ">=18.0",
56
- "react-native": ">=0.64",
57
55
  "expo": ">=43.0",
58
56
  "expo-asset": ">=8.4",
59
57
  "expo-gl": ">=11.0",
60
- "three": ">=0.133"
58
+ "react": ">=18.0",
59
+ "react-dom": ">=18.0",
60
+ "react-native": ">=0.64",
61
+ "three": ">=0.139"
61
62
  },
62
63
  "peerDependenciesMeta": {
63
64
  "react-dom": {