@reactvision/react-viro 2.41.6 → 2.43.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.
Files changed (121) hide show
  1. package/android/react_viro/react_viro-release.aar +0 -0
  2. package/components/AR/ViroARPlaneSelector.tsx +76 -37
  3. package/components/AR/ViroARScene.tsx +7 -4
  4. package/components/AR/ViroARSceneNavigator.tsx +1 -2
  5. package/components/Utilities/ViroVersion.ts +1 -1
  6. package/components/Viro3DSceneNavigator.tsx +1 -1
  7. package/components/ViroCamera.tsx +1 -0
  8. package/components/ViroOrbitCamera.tsx +1 -0
  9. package/components/ViroScene.tsx +7 -3
  10. package/components/ViroSceneContext.tsx +4 -3
  11. package/components/ViroSceneNavigator.tsx +1 -1
  12. package/dist/components/AR/ViroARCamera.d.ts +1 -1
  13. package/dist/components/AR/ViroARCamera.js +17 -7
  14. package/dist/components/AR/ViroARImageMarker.d.ts +2 -2
  15. package/dist/components/AR/ViroARImageMarker.js +17 -7
  16. package/dist/components/AR/ViroARObjectMarker.d.ts +2 -2
  17. package/dist/components/AR/ViroARObjectMarker.js +17 -7
  18. package/dist/components/AR/ViroARPlane.d.ts +2 -2
  19. package/dist/components/AR/ViroARPlane.js +17 -7
  20. package/dist/components/AR/ViroARPlaneSelector.d.ts +3 -3
  21. package/dist/components/AR/ViroARPlaneSelector.js +63 -25
  22. package/dist/components/AR/ViroARScene.d.ts +2 -2
  23. package/dist/components/AR/ViroARScene.js +17 -7
  24. package/dist/components/AR/ViroARSceneNavigator.d.ts +2 -2
  25. package/dist/components/AR/ViroARSceneNavigator.js +17 -9
  26. package/dist/components/Types/ViroEvents.d.ts +6 -6
  27. package/dist/components/Types/ViroEvents.js +6 -6
  28. package/dist/components/Types/ViroUtils.d.ts +0 -1
  29. package/dist/components/Utilities/ViroProps.js +1 -2
  30. package/dist/components/Utilities/ViroUtils.js +3 -4
  31. package/dist/components/Utilities/ViroVersion.d.ts +1 -1
  32. package/dist/components/Utilities/ViroVersion.js +1 -1
  33. package/dist/components/Viro360Image.d.ts +1 -1
  34. package/dist/components/Viro360Image.js +17 -7
  35. package/dist/components/Viro360Video.d.ts +1 -1
  36. package/dist/components/Viro360Video.js +17 -7
  37. package/dist/components/Viro3DObject.d.ts +2 -2
  38. package/dist/components/Viro3DObject.js +17 -7
  39. package/dist/components/Viro3DSceneNavigator.d.ts +2 -2
  40. package/dist/components/Viro3DSceneNavigator.js +17 -7
  41. package/dist/components/ViroAmbientLight.d.ts +1 -1
  42. package/dist/components/ViroAmbientLight.js +17 -7
  43. package/dist/components/ViroAnimatedComponent.d.ts +1 -1
  44. package/dist/components/ViroAnimatedComponent.js +17 -7
  45. package/dist/components/ViroAnimatedImage.d.ts +2 -2
  46. package/dist/components/ViroAnimatedImage.js +17 -7
  47. package/dist/components/ViroBase.js +17 -7
  48. package/dist/components/ViroBox.d.ts +2 -2
  49. package/dist/components/ViroBox.js +17 -7
  50. package/dist/components/ViroButton.d.ts +1 -1
  51. package/dist/components/ViroButton.js +18 -8
  52. package/dist/components/ViroCamera.d.ts +3 -1
  53. package/dist/components/ViroCamera.js +17 -7
  54. package/dist/components/ViroConstants.js +3 -3
  55. package/dist/components/ViroController.d.ts +1 -1
  56. package/dist/components/ViroController.js +17 -7
  57. package/dist/components/ViroDirectionalLight.d.ts +1 -1
  58. package/dist/components/ViroDirectionalLight.js +17 -7
  59. package/dist/components/ViroFlexView.d.ts +2 -2
  60. package/dist/components/ViroFlexView.js +17 -7
  61. package/dist/components/ViroGeometry.d.ts +2 -2
  62. package/dist/components/ViroGeometry.js +17 -7
  63. package/dist/components/ViroImage.d.ts +2 -2
  64. package/dist/components/ViroImage.js +17 -7
  65. package/dist/components/ViroLightingEnvironment.d.ts +1 -1
  66. package/dist/components/ViroLightingEnvironment.js +17 -7
  67. package/dist/components/ViroMaterialVideo.d.ts +1 -1
  68. package/dist/components/ViroMaterialVideo.js +17 -7
  69. package/dist/components/ViroNode.d.ts +2 -2
  70. package/dist/components/ViroNode.js +17 -7
  71. package/dist/components/ViroOmniLight.d.ts +1 -1
  72. package/dist/components/ViroOmniLight.js +17 -7
  73. package/dist/components/ViroOrbitCamera.d.ts +3 -1
  74. package/dist/components/ViroOrbitCamera.js +17 -7
  75. package/dist/components/ViroParticleEmitter.d.ts +1 -1
  76. package/dist/components/ViroParticleEmitter.js +17 -7
  77. package/dist/components/ViroPolygon.d.ts +2 -2
  78. package/dist/components/ViroPolygon.js +17 -7
  79. package/dist/components/ViroPolyline.d.ts +2 -2
  80. package/dist/components/ViroPolyline.js +17 -7
  81. package/dist/components/ViroPortal.d.ts +2 -2
  82. package/dist/components/ViroPortal.js +17 -7
  83. package/dist/components/ViroPortalScene.d.ts +2 -2
  84. package/dist/components/ViroPortalScene.js +17 -7
  85. package/dist/components/ViroQuad.d.ts +2 -2
  86. package/dist/components/ViroQuad.js +17 -7
  87. package/dist/components/ViroScene.d.ts +10 -2
  88. package/dist/components/ViroScene.js +17 -7
  89. package/dist/components/ViroSceneContext.d.ts +4 -3
  90. package/dist/components/ViroSceneContext.js +17 -7
  91. package/dist/components/ViroSceneNavigator.d.ts +2 -2
  92. package/dist/components/ViroSceneNavigator.js +17 -7
  93. package/dist/components/ViroSkyBox.d.ts +1 -1
  94. package/dist/components/ViroSkyBox.js +17 -7
  95. package/dist/components/ViroSound.d.ts +1 -1
  96. package/dist/components/ViroSound.js +17 -7
  97. package/dist/components/ViroSoundField.d.ts +1 -1
  98. package/dist/components/ViroSoundField.js +17 -7
  99. package/dist/components/ViroSpatialSound.d.ts +1 -1
  100. package/dist/components/ViroSpatialSound.js +17 -7
  101. package/dist/components/ViroSphere.d.ts +2 -2
  102. package/dist/components/ViroSphere.js +17 -7
  103. package/dist/components/ViroSpinner.d.ts +2 -2
  104. package/dist/components/ViroSpinner.js +17 -7
  105. package/dist/components/ViroSpotLight.d.ts +1 -1
  106. package/dist/components/ViroSpotLight.js +17 -7
  107. package/dist/components/ViroSurface.d.ts +2 -2
  108. package/dist/components/ViroSurface.js +17 -7
  109. package/dist/components/ViroText.d.ts +2 -2
  110. package/dist/components/ViroText.js +17 -7
  111. package/dist/components/ViroVRSceneNavigator.d.ts +2 -2
  112. package/dist/components/ViroVRSceneNavigator.js +17 -7
  113. package/dist/components/ViroVideo.d.ts +10 -2
  114. package/dist/components/ViroVideo.js +17 -7
  115. package/dist/index.d.ts +1 -2
  116. package/dist/index.js +1 -3
  117. package/dist/plugins/withViroAndroid.js +15 -11
  118. package/dist/plugins/withViroIos.js +1 -1
  119. package/index.ts +0 -2
  120. package/package.json +23 -14
  121. package/components/Telemetry/ViroTelemetry.ts +0 -93
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
26
26
  }) : function(o, v) {
27
27
  o["default"] = v;
28
28
  });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
29
+ var __importStar = (this && this.__importStar) || (function () {
30
+ var ownKeys = function(o) {
31
+ ownKeys = Object.getOwnPropertyNames || function (o) {
32
+ var ar = [];
33
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
+ return ar;
35
+ };
36
+ return ownKeys(o);
37
+ };
38
+ return function (mod) {
39
+ if (mod && mod.__esModule) return mod;
40
+ var result = {};
41
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
+ __setModuleDefault(result, mod);
43
+ return result;
44
+ };
45
+ })();
36
46
  Object.defineProperty(exports, "__esModule", { value: true });
37
47
  exports.ViroButton = exports.ViroButtonStateTypes = void 0;
38
48
  const React = __importStar(require("react"));
@@ -45,7 +55,7 @@ var ViroButtonStateTypes;
45
55
  ViroButtonStateTypes["BTN_TYPE_HOVER"] = "hovering";
46
56
  ViroButtonStateTypes["BTN_TYPE_NORMAL"] = "normal";
47
57
  ViroButtonStateTypes["BTN_TYPE_CLICKED"] = "clicked";
48
- })(ViroButtonStateTypes = exports.ViroButtonStateTypes || (exports.ViroButtonStateTypes = {}));
58
+ })(ViroButtonStateTypes || (exports.ViroButtonStateTypes = ViroButtonStateTypes = {}));
49
59
  /**
50
60
  * Composite controle for 2D button
51
61
  */
@@ -13,6 +13,7 @@ import * as React from "react";
13
13
  import { NativeSyntheticEvent, ViewProps } from "react-native";
14
14
  import { ViroAnimationFinishEvent, ViroAnimationStartEvent } from "./Types/ViroEvents";
15
15
  import { Viro3DPoint, ViroRotation } from "./Types/ViroUtils";
16
+ import { ViroSceneContext } from "./ViroSceneContext";
16
17
  type Props = ViewProps & {
17
18
  position?: Viro3DPoint;
18
19
  rotation?: ViroRotation;
@@ -34,12 +35,13 @@ type State = {
34
35
  export declare class ViroCamera extends React.Component<Props, State> {
35
36
  _component: any;
36
37
  static contextType?: React.Context<any> | undefined;
38
+ context: React.ContextType<typeof ViroSceneContext>;
37
39
  componentDidMount(): void;
38
40
  componentWillUnmount(): void;
39
41
  componentDidUpdate(prevProps: Props, _prevState: State): void;
40
42
  setNativeProps: (nativeProps: any) => void;
41
43
  _onAnimationStart: (_event: NativeSyntheticEvent<ViroAnimationStartEvent>) => void;
42
44
  _onAnimationFinish: (_event: NativeSyntheticEvent<ViroAnimationFinishEvent>) => void;
43
- render(): JSX.Element;
45
+ render(): React.JSX.Element;
44
46
  }
45
47
  export {};
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
26
26
  }) : function(o, v) {
27
27
  o["default"] = v;
28
28
  });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
29
+ var __importStar = (this && this.__importStar) || (function () {
30
+ var ownKeys = function(o) {
31
+ ownKeys = Object.getOwnPropertyNames || function (o) {
32
+ var ar = [];
33
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
+ return ar;
35
+ };
36
+ return ownKeys(o);
37
+ };
38
+ return function (mod) {
39
+ if (mod && mod.__esModule) return mod;
40
+ var result = {};
41
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
+ __setModuleDefault(result, mod);
43
+ return result;
44
+ };
45
+ })();
36
46
  Object.defineProperty(exports, "__esModule", { value: true });
37
47
  exports.ViroCamera = void 0;
38
48
  const React = __importStar(require("react"));
@@ -23,18 +23,18 @@ var ViroRecordingErrorConstants;
23
23
  ViroRecordingErrorConstants[ViroRecordingErrorConstants["RECORD_ERROR_WRITE_TO_FILE"] = 3] = "RECORD_ERROR_WRITE_TO_FILE";
24
24
  ViroRecordingErrorConstants[ViroRecordingErrorConstants["RECORD_ERROR_ALREADY_RUNNING"] = 4] = "RECORD_ERROR_ALREADY_RUNNING";
25
25
  ViroRecordingErrorConstants[ViroRecordingErrorConstants["RECORD_ERROR_ALREADY_STOPPED"] = 5] = "RECORD_ERROR_ALREADY_STOPPED";
26
- })(ViroRecordingErrorConstants = exports.ViroRecordingErrorConstants || (exports.ViroRecordingErrorConstants = {}));
26
+ })(ViroRecordingErrorConstants || (exports.ViroRecordingErrorConstants = ViroRecordingErrorConstants = {}));
27
27
  var ViroTrackingStateConstants;
28
28
  (function (ViroTrackingStateConstants) {
29
29
  // Viro AR Tracking constants,
30
30
  ViroTrackingStateConstants[ViroTrackingStateConstants["TRACKING_UNAVAILABLE"] = 1] = "TRACKING_UNAVAILABLE";
31
31
  ViroTrackingStateConstants[ViroTrackingStateConstants["TRACKING_LIMITED"] = 2] = "TRACKING_LIMITED";
32
32
  ViroTrackingStateConstants[ViroTrackingStateConstants["TRACKING_NORMAL"] = 3] = "TRACKING_NORMAL";
33
- })(ViroTrackingStateConstants = exports.ViroTrackingStateConstants || (exports.ViroTrackingStateConstants = {}));
33
+ })(ViroTrackingStateConstants || (exports.ViroTrackingStateConstants = ViroTrackingStateConstants = {}));
34
34
  var ViroARTrackingReasonConstants;
35
35
  (function (ViroARTrackingReasonConstants) {
36
36
  // Viro AR Tracking reason constants,
37
37
  ViroARTrackingReasonConstants[ViroARTrackingReasonConstants["TRACKING_REASON_NONE"] = 1] = "TRACKING_REASON_NONE";
38
38
  ViroARTrackingReasonConstants[ViroARTrackingReasonConstants["TRACKING_REASON_EXCESSIVE_MOTION"] = 2] = "TRACKING_REASON_EXCESSIVE_MOTION";
39
39
  ViroARTrackingReasonConstants[ViroARTrackingReasonConstants["TRACKING_REASON_INSUFFICIENT_FEATURES"] = 3] = "TRACKING_REASON_INSUFFICIENT_FEATURES";
40
- })(ViroARTrackingReasonConstants = exports.ViroARTrackingReasonConstants || (exports.ViroARTrackingReasonConstants = {}));
40
+ })(ViroARTrackingReasonConstants || (exports.ViroARTrackingReasonConstants = ViroARTrackingReasonConstants = {}));
@@ -23,6 +23,6 @@ export declare class ViroController extends React.Component<Props> {
23
23
  getControllerForwardAsync(): Promise<any>;
24
24
  setNativeProps(nativeProps: Props): void;
25
25
  _onDrag(event: NativeSyntheticEvent<ViroDragEvent>): void;
26
- render(): JSX.Element;
26
+ render(): React.JSX.Element;
27
27
  }
28
28
  export {};
@@ -23,13 +23,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
23
23
  }) : function(o, v) {
24
24
  o["default"] = v;
25
25
  });
26
- var __importStar = (this && this.__importStar) || function (mod) {
27
- if (mod && mod.__esModule) return mod;
28
- var result = {};
29
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
30
- __setModuleDefault(result, mod);
31
- return result;
32
- };
26
+ var __importStar = (this && this.__importStar) || (function () {
27
+ var ownKeys = function(o) {
28
+ ownKeys = Object.getOwnPropertyNames || function (o) {
29
+ var ar = [];
30
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
31
+ return ar;
32
+ };
33
+ return ownKeys(o);
34
+ };
35
+ return function (mod) {
36
+ if (mod && mod.__esModule) return mod;
37
+ var result = {};
38
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
39
+ __setModuleDefault(result, mod);
40
+ return result;
41
+ };
42
+ })();
33
43
  Object.defineProperty(exports, "__esModule", { value: true });
34
44
  exports.ViroController = void 0;
35
45
  const React = __importStar(require("react"));
@@ -22,6 +22,6 @@ type Props = ViewProps & {
22
22
  export declare class ViroDirectionalLight extends React.Component<Props> {
23
23
  _component: ViroNativeRef;
24
24
  setNativeProps(nativeProps: Props): void;
25
- render(): JSX.Element;
25
+ render(): React.JSX.Element;
26
26
  }
27
27
  export {};
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
26
26
  }) : function(o, v) {
27
27
  o["default"] = v;
28
28
  });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
29
+ var __importStar = (this && this.__importStar) || (function () {
30
+ var ownKeys = function(o) {
31
+ ownKeys = Object.getOwnPropertyNames || function (o) {
32
+ var ar = [];
33
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
+ return ar;
35
+ };
36
+ return ownKeys(o);
37
+ };
38
+ return function (mod) {
39
+ if (mod && mod.__esModule) return mod;
40
+ var result = {};
41
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
+ __setModuleDefault(result, mod);
43
+ return result;
44
+ };
45
+ })();
36
46
  Object.defineProperty(exports, "__esModule", { value: true });
37
47
  exports.ViroDirectionalLight = void 0;
38
48
  const React = __importStar(require("react"));
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from "react";
2
2
  import { ViroStyle } from "./Styles/ViroStyle";
3
3
  import { ViroBase } from "./ViroBase";
4
4
  type Props = {
@@ -8,6 +8,6 @@ type Props = {
8
8
  * Used to render a ViroFlexView
9
9
  */
10
10
  export declare class ViroFlexView extends ViroBase<Props> {
11
- render(): JSX.Element;
11
+ render(): React.JSX.Element;
12
12
  }
13
13
  export {};
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
26
26
  }) : function(o, v) {
27
27
  o["default"] = v;
28
28
  });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
29
+ var __importStar = (this && this.__importStar) || (function () {
30
+ var ownKeys = function(o) {
31
+ ownKeys = Object.getOwnPropertyNames || function (o) {
32
+ var ar = [];
33
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
+ return ar;
35
+ };
36
+ return ownKeys(o);
37
+ };
38
+ return function (mod) {
39
+ if (mod && mod.__esModule) return mod;
40
+ var result = {};
41
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
+ __setModuleDefault(result, mod);
43
+ return result;
44
+ };
45
+ })();
36
46
  Object.defineProperty(exports, "__esModule", { value: true });
37
47
  exports.ViroFlexView = void 0;
38
48
  const React = __importStar(require("react"));
@@ -6,7 +6,7 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  */
9
- /// <reference types="react" />
9
+ import * as React from "react";
10
10
  import { Viro2DPoint, Viro3DPoint } from "./Types/ViroUtils";
11
11
  import { ViroBase } from "./ViroBase";
12
12
  type Props = {
@@ -16,6 +16,6 @@ type Props = {
16
16
  triangleIndices?: Viro3DPoint[];
17
17
  };
18
18
  export declare class ViroGeometry extends ViroBase<Props> {
19
- render(): JSX.Element;
19
+ render(): React.JSX.Element;
20
20
  }
21
21
  export {};
@@ -23,13 +23,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
23
23
  }) : function(o, v) {
24
24
  o["default"] = v;
25
25
  });
26
- var __importStar = (this && this.__importStar) || function (mod) {
27
- if (mod && mod.__esModule) return mod;
28
- var result = {};
29
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
30
- __setModuleDefault(result, mod);
31
- return result;
32
- };
26
+ var __importStar = (this && this.__importStar) || (function () {
27
+ var ownKeys = function(o) {
28
+ ownKeys = Object.getOwnPropertyNames || function (o) {
29
+ var ar = [];
30
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
31
+ return ar;
32
+ };
33
+ return ownKeys(o);
34
+ };
35
+ return function (mod) {
36
+ if (mod && mod.__esModule) return mod;
37
+ var result = {};
38
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
39
+ __setModuleDefault(result, mod);
40
+ return result;
41
+ };
42
+ })();
33
43
  Object.defineProperty(exports, "__esModule", { value: true });
34
44
  exports.ViroGeometry = void 0;
35
45
  const React = __importStar(require("react"));
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from "react";
2
2
  import { NativeSyntheticEvent } from "react-native";
3
3
  import { ViroStyle } from "./Styles/ViroStyle";
4
4
  import { ViroLoadEndEvent, ViroLoadStartEvent } from "./Types/ViroEvents";
@@ -43,7 +43,7 @@ type Props = {
43
43
  export declare class ViroImage extends ViroBase<Props> {
44
44
  _onLoadStart: (event: NativeSyntheticEvent<ViroLoadStartEvent>) => void;
45
45
  _onLoadEnd: (event: NativeSyntheticEvent<ViroLoadEndEvent>) => void;
46
- render(): JSX.Element;
46
+ render(): React.JSX.Element;
47
47
  static evictFromCache: (imageSource: ViroSource) => void;
48
48
  }
49
49
  export {};
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
26
26
  }) : function(o, v) {
27
27
  o["default"] = v;
28
28
  });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
29
+ var __importStar = (this && this.__importStar) || (function () {
30
+ var ownKeys = function(o) {
31
+ ownKeys = Object.getOwnPropertyNames || function (o) {
32
+ var ar = [];
33
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
+ return ar;
35
+ };
36
+ return ownKeys(o);
37
+ };
38
+ return function (mod) {
39
+ if (mod && mod.__esModule) return mod;
40
+ var result = {};
41
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
+ __setModuleDefault(result, mod);
43
+ return result;
44
+ };
45
+ })();
36
46
  var __importDefault = (this && this.__importDefault) || function (mod) {
37
47
  return (mod && mod.__esModule) ? mod : { "default": mod };
38
48
  };
@@ -37,6 +37,6 @@ export declare class ViroLightingEnvironment extends React.Component<Props> {
37
37
  _onLoadEnd: (event: NativeSyntheticEvent<ViroLoadEndEvent>) => void;
38
38
  _onError: (event: NativeSyntheticEvent<ViroLoadErrorEvent>) => void;
39
39
  setNativeProps: (nativeProps: Props) => void;
40
- render(): JSX.Element;
40
+ render(): React.JSX.Element;
41
41
  }
42
42
  export {};
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
26
26
  }) : function(o, v) {
27
27
  o["default"] = v;
28
28
  });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
29
+ var __importStar = (this && this.__importStar) || (function () {
30
+ var ownKeys = function(o) {
31
+ ownKeys = Object.getOwnPropertyNames || function (o) {
32
+ var ar = [];
33
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
+ return ar;
35
+ };
36
+ return ownKeys(o);
37
+ };
38
+ return function (mod) {
39
+ if (mod && mod.__esModule) return mod;
40
+ var result = {};
41
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
+ __setModuleDefault(result, mod);
43
+ return result;
44
+ };
45
+ })();
36
46
  var __importDefault = (this && this.__importDefault) || function (mod) {
37
47
  return (mod && mod.__esModule) ? mod : { "default": mod };
38
48
  };
@@ -51,7 +51,7 @@ export declare class ViroMaterialVideo extends React.Component<Props> {
51
51
  _onError: (event: NativeSyntheticEvent<ViroErrorEvent>) => void;
52
52
  _onUpdateTime: (event: NativeSyntheticEvent<ViroVideoUpdateTimeEvent>) => void;
53
53
  setNativeProps: (nativeProps: Props) => void;
54
- render(): JSX.Element;
54
+ render(): React.JSX.Element;
55
55
  seekToTime: (timeInSeconds: number) => void;
56
56
  }
57
57
  export {};
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  Object.defineProperty(exports, "__esModule", { value: true });
26
36
  exports.ViroMaterialVideo = void 0;
27
37
  /**
@@ -8,11 +8,11 @@
8
8
  *
9
9
  * @providesModule ViroNode
10
10
  */
11
- /// <reference types="react" />
11
+ import * as React from "react";
12
12
  import { ViroBase } from "./ViroBase";
13
13
  /**
14
14
  * Absolute container for Viro Controls
15
15
  */
16
16
  export declare class ViroNode extends ViroBase<{}> {
17
- render(): JSX.Element;
17
+ render(): React.JSX.Element;
18
18
  }
@@ -25,13 +25,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
25
25
  }) : function(o, v) {
26
26
  o["default"] = v;
27
27
  });
28
- var __importStar = (this && this.__importStar) || function (mod) {
29
- if (mod && mod.__esModule) return mod;
30
- var result = {};
31
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
32
- __setModuleDefault(result, mod);
33
- return result;
34
- };
28
+ var __importStar = (this && this.__importStar) || (function () {
29
+ var ownKeys = function(o) {
30
+ ownKeys = Object.getOwnPropertyNames || function (o) {
31
+ var ar = [];
32
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
33
+ return ar;
34
+ };
35
+ return ownKeys(o);
36
+ };
37
+ return function (mod) {
38
+ if (mod && mod.__esModule) return mod;
39
+ var result = {};
40
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
41
+ __setModuleDefault(result, mod);
42
+ return result;
43
+ };
44
+ })();
35
45
  Object.defineProperty(exports, "__esModule", { value: true });
36
46
  exports.ViroNode = void 0;
37
47
  const React = __importStar(require("react"));
@@ -16,6 +16,6 @@ type Props = ViewProps & {
16
16
  export declare class ViroOmniLight extends React.Component<Props> {
17
17
  _component: ViroNativeRef;
18
18
  setNativeProps: (nativeProps: Props) => void;
19
- render(): JSX.Element;
19
+ render(): React.JSX.Element;
20
20
  }
21
21
  export {};
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
26
26
  }) : function(o, v) {
27
27
  o["default"] = v;
28
28
  });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
29
+ var __importStar = (this && this.__importStar) || (function () {
30
+ var ownKeys = function(o) {
31
+ ownKeys = Object.getOwnPropertyNames || function (o) {
32
+ var ar = [];
33
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
+ return ar;
35
+ };
36
+ return ownKeys(o);
37
+ };
38
+ return function (mod) {
39
+ if (mod && mod.__esModule) return mod;
40
+ var result = {};
41
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
+ __setModuleDefault(result, mod);
43
+ return result;
44
+ };
45
+ })();
36
46
  Object.defineProperty(exports, "__esModule", { value: true });
37
47
  exports.ViroOmniLight = void 0;
38
48
  const React = __importStar(require("react"));
@@ -2,6 +2,7 @@ import * as React from "react";
2
2
  import { ViewProps } from "react-native";
3
3
  import { ViroAnimation } from "./Animation/ViroAnimations";
4
4
  import { Viro3DPoint, ViroNativeRef } from "./Types/ViroUtils";
5
+ import { ViroSceneContext } from "./ViroSceneContext";
5
6
  export type Props = ViewProps & {
6
7
  position?: Viro3DPoint;
7
8
  focalPoint?: Viro3DPoint;
@@ -12,9 +13,10 @@ export type Props = ViewProps & {
12
13
  export declare class ViroOrbitCamera extends React.Component<Props> {
13
14
  _component: ViroNativeRef;
14
15
  static contextType?: React.Context<any> | undefined;
16
+ context: React.ContextType<typeof ViroSceneContext>;
15
17
  componentDidMount(): void;
16
18
  componentWillUnmount(): void;
17
19
  componentDidUpdate(prevProps: Props, _prevState: any): void;
18
20
  setNativeProps: (nativeProps: Props) => void;
19
- render(): JSX.Element;
21
+ render(): React.JSX.Element;
20
22
  }
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
26
26
  }) : function(o, v) {
27
27
  o["default"] = v;
28
28
  });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
29
+ var __importStar = (this && this.__importStar) || (function () {
30
+ var ownKeys = function(o) {
31
+ ownKeys = Object.getOwnPropertyNames || function (o) {
32
+ var ar = [];
33
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
+ return ar;
35
+ };
36
+ return ownKeys(o);
37
+ };
38
+ return function (mod) {
39
+ if (mod && mod.__esModule) return mod;
40
+ var result = {};
41
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
+ __setModuleDefault(result, mod);
43
+ return result;
44
+ };
45
+ })();
36
46
  Object.defineProperty(exports, "__esModule", { value: true });
37
47
  exports.ViroOrbitCamera = void 0;
38
48
  const React = __importStar(require("react"));
@@ -106,7 +106,7 @@ export declare class ViroParticleEmitter extends React.Component<Props, State> {
106
106
  _onNativeTransformUpdate(event: NativeSyntheticEvent<ViroNativeTransformUpdateEvent>): void;
107
107
  shouldComponentUpdate(_nextProps: Props, nextState: State): boolean;
108
108
  setNativeProps(nativeProps: Props): void;
109
- render(): JSX.Element | undefined;
109
+ render(): React.JSX.Element | undefined;
110
110
  static getDerivedStateFromProps(nextProps: Props, prevState: State): {
111
111
  propsPositionState: number[];
112
112
  } | {
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
26
26
  }) : function(o, v) {
27
27
  o["default"] = v;
28
28
  });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
29
+ var __importStar = (this && this.__importStar) || (function () {
30
+ var ownKeys = function(o) {
31
+ ownKeys = Object.getOwnPropertyNames || function (o) {
32
+ var ar = [];
33
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
+ return ar;
35
+ };
36
+ return ownKeys(o);
37
+ };
38
+ return function (mod) {
39
+ if (mod && mod.__esModule) return mod;
40
+ var result = {};
41
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
+ __setModuleDefault(result, mod);
43
+ return result;
44
+ };
45
+ })();
36
46
  var __importDefault = (this && this.__importDefault) || function (mod) {
37
47
  return (mod && mod.__esModule) ? mod : { "default": mod };
38
48
  };
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from "react";
2
2
  import { ViroStyle } from "./Styles/ViroStyle";
3
3
  import { Viro2DPoint, ViroUVCoordinate } from "./Types/ViroUtils";
4
4
  import { ViroBase } from "./ViroBase";
@@ -47,6 +47,6 @@ type Props = {
47
47
  * Used to render a ViroPolygon
48
48
  */
49
49
  export declare class ViroPolygon extends ViroBase<Props> {
50
- render(): JSX.Element;
50
+ render(): React.JSX.Element;
51
51
  }
52
52
  export {};