@react-three/fiber 8.10.3 → 8.10.4

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
+ ## 8.10.4
4
+
5
+ ### Patch Changes
6
+
7
+ - d9e6316d: fix: transpile class properties
8
+
3
9
  ## 8.10.3
4
10
 
5
11
  ### Patch Changes
@@ -13,14 +13,15 @@ export declare type UnblockProps = {
13
13
  children: React.ReactNode;
14
14
  };
15
15
  export declare function Block({ set }: Omit<UnblockProps, 'children'>): null;
16
- declare type ErrorBoundaryProps = {
16
+ export declare class ErrorBoundary extends React.Component<{
17
17
  set: React.Dispatch<Error | undefined>;
18
18
  children: React.ReactNode;
19
- };
20
- export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, {
19
+ }, {
21
20
  error: boolean;
22
21
  }> {
23
- constructor(props: ErrorBoundaryProps);
22
+ state: {
23
+ error: boolean;
24
+ };
24
25
  static getDerivedStateFromError: () => {
25
26
  error: boolean;
26
27
  };
@@ -80,4 +81,3 @@ export declare function updateCamera(camera: Camera & {
80
81
  manual?: boolean;
81
82
  }, size: Size): void;
82
83
  export declare function setDeep(obj: any, value: any, keys: string[]): any;
83
- export {};
@@ -66,15 +66,12 @@ function Block({
66
66
  return null;
67
67
  }
68
68
  class ErrorBoundary extends React__namespace.Component {
69
- constructor(props) {
70
- super(props);
69
+ constructor(...args) {
70
+ super(...args);
71
71
  this.state = {
72
72
  error: false
73
73
  };
74
74
  }
75
- static getDerivedStateFromError = () => ({
76
- error: true
77
- });
78
75
  componentDidCatch(err) {
79
76
  this.props.set(err);
80
77
  }
@@ -82,6 +79,9 @@ class ErrorBoundary extends React__namespace.Component {
82
79
  return this.state.error ? null : this.props.children;
83
80
  }
84
81
  }
82
+ ErrorBoundary.getDerivedStateFromError = () => ({
83
+ error: true
84
+ });
85
85
  const DEFAULT = '__default';
86
86
  const isDiffSet = def => def && !!def.memoized && !!def.changes;
87
87
  function calculateDpr(dpr) {
@@ -66,15 +66,12 @@ function Block({
66
66
  return null;
67
67
  }
68
68
  class ErrorBoundary extends React__namespace.Component {
69
- constructor(props) {
70
- super(props);
69
+ constructor(...args) {
70
+ super(...args);
71
71
  this.state = {
72
72
  error: false
73
73
  };
74
74
  }
75
- static getDerivedStateFromError = () => ({
76
- error: true
77
- });
78
75
  componentDidCatch(err) {
79
76
  this.props.set(err);
80
77
  }
@@ -82,6 +79,9 @@ class ErrorBoundary extends React__namespace.Component {
82
79
  return this.state.error ? null : this.props.children;
83
80
  }
84
81
  }
82
+ ErrorBoundary.getDerivedStateFromError = () => ({
83
+ error: true
84
+ });
85
85
  const DEFAULT = '__default';
86
86
  const isDiffSet = def => def && !!def.memoized && !!def.changes;
87
87
  function calculateDpr(dpr) {
@@ -39,15 +39,12 @@ function Block({
39
39
  return null;
40
40
  }
41
41
  class ErrorBoundary extends React.Component {
42
- constructor(props) {
43
- super(props);
42
+ constructor(...args) {
43
+ super(...args);
44
44
  this.state = {
45
45
  error: false
46
46
  };
47
47
  }
48
- static getDerivedStateFromError = () => ({
49
- error: true
50
- });
51
48
  componentDidCatch(err) {
52
49
  this.props.set(err);
53
50
  }
@@ -55,6 +52,9 @@ class ErrorBoundary extends React.Component {
55
52
  return this.state.error ? null : this.props.children;
56
53
  }
57
54
  }
55
+ ErrorBoundary.getDerivedStateFromError = () => ({
56
+ error: true
57
+ });
58
58
  const DEFAULT = '__default';
59
59
  const isDiffSet = def => def && !!def.memoized && !!def.changes;
60
60
  function calculateDpr(dpr) {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index = require('./index-dff4d2eb.cjs.dev.js');
5
+ var index = require('./index-6442a2a3.cjs.dev.js');
6
6
  var _extends = require('@babel/runtime/helpers/extends');
7
7
  var React = require('react');
8
8
  var THREE = require('three');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index = require('./index-6e3ece64.cjs.prod.js');
5
+ var index = require('./index-455b51ca.cjs.prod.js');
6
6
  var _extends = require('@babel/runtime/helpers/extends');
7
7
  var React = require('react');
8
8
  var THREE = require('three');
@@ -1,5 +1,5 @@
1
- import { c as createEvents, e as extend, u as useMutableCallback, a as createRoot, i as isRef, E as ErrorBoundary, B as Block, b as useIsomorphicLayoutEffect, d as unmountComponentAtNode } from './index-291d12f4.esm.js';
2
- export { t as ReactThreeFiber, w as _roots, v as act, o as addAfterEffect, n as addEffect, p as addTail, m as advance, j as applyProps, f as context, c as createEvents, g as createPortal, a 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, A as useFrame, C as useGraph, x as useInstanceHandle, D as useLoader, y as useStore, z as useThree } from './index-291d12f4.esm.js';
1
+ import { c as createEvents, e as extend, u as useMutableCallback, a as createRoot, i as isRef, E as ErrorBoundary, B as Block, b as useIsomorphicLayoutEffect, d as unmountComponentAtNode } from './index-7dbf758c.esm.js';
2
+ export { t as ReactThreeFiber, w as _roots, v as act, o as addAfterEffect, n as addEffect, p as addTail, m as advance, j as applyProps, f as context, c as createEvents, g as createPortal, a 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, A as useFrame, C as useGraph, x as useInstanceHandle, D as useLoader, y as useStore, z as useThree } from './index-7dbf758c.esm.js';
3
3
  import _extends from '@babel/runtime/helpers/esm/extends';
4
4
  import * as React from 'react';
5
5
  import * as THREE from 'three';
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index = require('../../dist/index-dff4d2eb.cjs.dev.js');
5
+ var index = require('../../dist/index-6442a2a3.cjs.dev.js');
6
6
  var _extends = require('@babel/runtime/helpers/extends');
7
7
  var React = require('react');
8
8
  var THREE = require('three');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index = require('../../dist/index-6e3ece64.cjs.prod.js');
5
+ var index = require('../../dist/index-455b51ca.cjs.prod.js');
6
6
  var _extends = require('@babel/runtime/helpers/extends');
7
7
  var React = require('react');
8
8
  var THREE = require('three');
@@ -1,5 +1,5 @@
1
- import { c as createEvents, e as extend, u as useMutableCallback, a as createRoot, E as ErrorBoundary, B as Block, d as unmountComponentAtNode } from '../../dist/index-291d12f4.esm.js';
2
- export { t as ReactThreeFiber, w as _roots, v as act, o as addAfterEffect, n as addEffect, p as addTail, m as advance, j as applyProps, f as context, c as createEvents, g as createPortal, a 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, A as useFrame, C as useGraph, x as useInstanceHandle, D as useLoader, y as useStore, z as useThree } from '../../dist/index-291d12f4.esm.js';
1
+ import { c as createEvents, e as extend, u as useMutableCallback, a as createRoot, E as ErrorBoundary, B as Block, d as unmountComponentAtNode } from '../../dist/index-7dbf758c.esm.js';
2
+ export { t as ReactThreeFiber, w as _roots, v as act, o as addAfterEffect, n as addEffect, p as addTail, m as advance, j as applyProps, f as context, c as createEvents, g as createPortal, a 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, A as useFrame, C as useGraph, x as useInstanceHandle, D as useLoader, y as useStore, z as useThree } from '../../dist/index-7dbf758c.esm.js';
3
3
  import _extends from '@babel/runtime/helpers/esm/extends';
4
4
  import * as React from 'react';
5
5
  import * as THREE from 'three';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-three/fiber",
3
- "version": "8.10.3",
3
+ "version": "8.10.4",
4
4
  "description": "A React renderer for Threejs",
5
5
  "keywords": [
6
6
  "react",