@react-three/fiber 8.16.6 → 8.16.8
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/core/index.d.ts +1 -1
- package/dist/declarations/src/three-types.d.ts +0 -18
- package/dist/{index-4664c596.cjs.prod.js → index-046cf796.cjs.prod.js} +1 -1
- package/dist/{index-ba8afaa4.esm.js → index-99983b2d.esm.js} +1 -1
- package/dist/{index-f983265a.cjs.dev.js → index-ca3a789d.cjs.dev.js} +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 +2 -2
- 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 +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @react-three/fiber
|
|
2
2
|
|
|
3
|
+
## 8.16.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4748b365: fix: update is.equ to compare booleans
|
|
8
|
+
|
|
9
|
+
## 8.16.7
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 4d6408c7: fix(types): revert usage of future module JSX
|
|
14
|
+
|
|
3
15
|
## 8.16.6
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -81,7 +81,7 @@ export declare type InjectState = Partial<Omit<RootState, PrivateKeys> & {
|
|
|
81
81
|
};
|
|
82
82
|
size?: Size;
|
|
83
83
|
}>;
|
|
84
|
-
declare function createPortal(children: React.ReactNode, container: THREE.Object3D, state?: InjectState):
|
|
84
|
+
declare function createPortal(children: React.ReactNode, container: THREE.Object3D, state?: InjectState): JSX.Element;
|
|
85
85
|
declare const act: any;
|
|
86
86
|
export * from './hooks';
|
|
87
87
|
export { context, render, createRoot, unmountComponentAtNode, createPortal, reconciler, applyProps, dispose, invalidate, advance, extend, addEffect, addAfterEffect, addTail, flushGlobalEffects, getRootState, act, buildGraph, roots as _roots, };
|
|
@@ -390,22 +390,4 @@ declare global {
|
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
|
-
declare module 'react' {
|
|
394
|
-
namespace JSX {
|
|
395
|
-
interface IntrinsicElements extends ThreeElements {
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
declare module 'react/jsx-runtime' {
|
|
400
|
-
namespace JSX {
|
|
401
|
-
interface IntrinsicElements extends ThreeElements {
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
declare module 'react/jsx-dev-runtime' {
|
|
406
|
-
namespace JSX {
|
|
407
|
-
interface IntrinsicElements extends ThreeElements {
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
393
|
export {};
|
|
@@ -486,7 +486,7 @@ const is = {
|
|
|
486
486
|
// Wrong type or one of the two undefined, doesn't match
|
|
487
487
|
if (typeof a !== typeof b || !!a !== !!b) return false;
|
|
488
488
|
// Atomic, just compare a against b
|
|
489
|
-
if (is.str(a) || is.num(a)) return a === b;
|
|
489
|
+
if (is.str(a) || is.num(a) || is.boo(a)) return a === b;
|
|
490
490
|
const isObj = is.obj(a);
|
|
491
491
|
if (isObj && objects === 'reference') return a === b;
|
|
492
492
|
const isArr = is.arr(a);
|
|
@@ -459,7 +459,7 @@ const is = {
|
|
|
459
459
|
// Wrong type or one of the two undefined, doesn't match
|
|
460
460
|
if (typeof a !== typeof b || !!a !== !!b) return false;
|
|
461
461
|
// Atomic, just compare a against b
|
|
462
|
-
if (is.str(a) || is.num(a)) return a === b;
|
|
462
|
+
if (is.str(a) || is.num(a) || is.boo(a)) return a === b;
|
|
463
463
|
const isObj = is.obj(a);
|
|
464
464
|
if (isObj && objects === 'reference') return a === b;
|
|
465
465
|
const isArr = is.arr(a);
|
|
@@ -486,7 +486,7 @@ const is = {
|
|
|
486
486
|
// Wrong type or one of the two undefined, doesn't match
|
|
487
487
|
if (typeof a !== typeof b || !!a !== !!b) return false;
|
|
488
488
|
// Atomic, just compare a against b
|
|
489
|
-
if (is.str(a) || is.num(a)) return a === b;
|
|
489
|
+
if (is.str(a) || is.num(a) || is.boo(a)) return a === b;
|
|
490
490
|
const isObj = is.obj(a);
|
|
491
491
|
if (isObj && objects === 'reference') return a === b;
|
|
492
492
|
const isArr = is.arr(a);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./index-
|
|
5
|
+
var index = require('./index-ca3a789d.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 index = require('./index-
|
|
5
|
+
var index = require('./index-046cf796.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 { c as createEvents, e as extend, u as useMutableCallback, a as useIsomorphicLayoutEffect, b as createRoot, i as isRef, E as ErrorBoundary, B as Block, d as unmountComponentAtNode } from './index-
|
|
2
|
-
export { t as ReactThreeFiber, x as _roots, v as act, o as addAfterEffect, n as addEffect, p as addTail, m as advance, j as applyProps, w as buildGraph, f as context, c as createEvents, g as createPortal, b as createRoot, k as dispose, e as extend, q as flushGlobalEffects, s as getRootState, l as invalidate, h as reconciler, r as render, d as unmountComponentAtNode, C as useFrame, D as useGraph, y as useInstanceHandle, F as useLoader, z as useStore, A as useThree } from './index-
|
|
1
|
+
import { c as createEvents, e as extend, u as useMutableCallback, a as useIsomorphicLayoutEffect, b as createRoot, i as isRef, E as ErrorBoundary, B as Block, d as unmountComponentAtNode } from './index-99983b2d.esm.js';
|
|
2
|
+
export { t as ReactThreeFiber, x as _roots, v as act, o as addAfterEffect, n as addEffect, p as addTail, m as advance, j as applyProps, w as buildGraph, f as context, c as createEvents, g as createPortal, b as createRoot, k as dispose, e as extend, q as flushGlobalEffects, s as getRootState, l as invalidate, h as reconciler, r as render, d as unmountComponentAtNode, C as useFrame, D as useGraph, y as useInstanceHandle, F as useLoader, z as useStore, A as useThree } from './index-99983b2d.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 index = require('../../dist/index-
|
|
5
|
+
var index = require('../../dist/index-ca3a789d.cjs.dev.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var THREE = require('three');
|
|
8
8
|
var reactNative = require('react-native');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('../../dist/index-
|
|
5
|
+
var index = require('../../dist/index-046cf796.cjs.prod.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var THREE = require('three');
|
|
8
8
|
var reactNative = require('react-native');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as createEvents, e as extend, u as useMutableCallback, b as createRoot, E as ErrorBoundary, B as Block, d as unmountComponentAtNode } from '../../dist/index-
|
|
2
|
-
export { t as ReactThreeFiber, x as _roots, v as act, o as addAfterEffect, n as addEffect, p as addTail, m as advance, j as applyProps, w as buildGraph, f as context, c as createEvents, g as createPortal, b as createRoot, k as dispose, e as extend, q as flushGlobalEffects, s as getRootState, l as invalidate, h as reconciler, r as render, d as unmountComponentAtNode, C as useFrame, D as useGraph, y as useInstanceHandle, F as useLoader, z as useStore, A as useThree } from '../../dist/index-
|
|
1
|
+
import { c as createEvents, e as extend, u as useMutableCallback, b as createRoot, E as ErrorBoundary, B as Block, d as unmountComponentAtNode } from '../../dist/index-99983b2d.esm.js';
|
|
2
|
+
export { t as ReactThreeFiber, x as _roots, v as act, o as addAfterEffect, n as addEffect, p as addTail, m as advance, j as applyProps, w as buildGraph, f as context, c as createEvents, g as createPortal, b as createRoot, k as dispose, e as extend, q as flushGlobalEffects, s as getRootState, l as invalidate, h as reconciler, r as render, d as unmountComponentAtNode, C as useFrame, D as useGraph, y as useInstanceHandle, F as useLoader, z as useStore, A as useThree } from '../../dist/index-99983b2d.esm.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import * as THREE from 'three';
|
|
5
5
|
import { PanResponder, PixelRatio, View, StyleSheet, Platform, Image, NativeModules } from 'react-native';
|