@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
@@ -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
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
37
  };
@@ -223,7 +223,7 @@ export declare class ViroARSceneNavigator extends React.Component<Props, State>
223
223
  *
224
224
  * @returns Array of rendered Scene views.
225
225
  */
226
- _renderSceneStackItems: () => JSX.Element[];
226
+ _renderSceneStackItems: () => React.JSX.Element[];
227
227
  arSceneNavigator: {
228
228
  push: (param1?: ViroScene | string, param2?: ViroScene) => void;
229
229
  pop: () => void;
@@ -254,6 +254,6 @@ export declare class ViroARSceneNavigator extends React.Component<Props, State>
254
254
  unproject: (point: Viro3DPoint) => Promise<any>;
255
255
  viroAppProps: any;
256
256
  };
257
- render(): JSX.Element;
257
+ render(): React.JSX.Element;
258
258
  }
259
259
  export {};
@@ -26,18 +26,27 @@ 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.ViroARSceneNavigator = void 0;
38
48
  const React = __importStar(require("react"));
39
49
  const react_native_1 = require("react-native");
40
- const ViroTelemetry_1 = require("../Telemetry/ViroTelemetry");
41
50
  const ViroARSceneNavigatorModule = react_native_1.NativeModules.VRTARSceneNavigatorModule;
42
51
  let mathRandomOffset = 0;
43
52
  /**
@@ -47,7 +56,6 @@ class ViroARSceneNavigator extends React.Component {
47
56
  _component = null;
48
57
  constructor(props) {
49
58
  super(props);
50
- ViroTelemetry_1.ViroTelemetry.recordTelemetry("INIT", { ar: true });
51
59
  let initialSceneTag = this.props.initialSceneKey;
52
60
  if (initialSceneTag == null) {
53
61
  initialSceneTag = this.getRandomTag();
@@ -28,8 +28,8 @@ export type ViroClickStateEvent = {
28
28
  };
29
29
  export type ViroClickState = ViroClickStateTypes.CLICK_DOWN | ViroClickStateTypes.CLICK_UP | ViroClickStateTypes.CLICKED;
30
30
  export declare enum ViroClickStateTypes {
31
- CLICK_DOWN = 1,
32
- CLICK_UP = 2,
31
+ CLICK_DOWN = 1,// Click Down: Triggered when the user has performed a click down action while hovering on this control.|
32
+ CLICK_UP = 2,// Click Up: Triggered when the user has performed a click up action while hovering on this control.|
33
33
  CLICKED = 3
34
34
  }
35
35
  export type ViroTouchEvent = {
@@ -55,8 +55,8 @@ export type ViroPinchEvent = {
55
55
  };
56
56
  export type ViroPinchState = ViroPinchStateTypes.PINCH_START | ViroPinchStateTypes.PINCH_MOVE | ViroPinchStateTypes.PINCH_END;
57
57
  export declare enum ViroPinchStateTypes {
58
- PINCH_START = 1,
59
- PINCH_MOVE = 2,
58
+ PINCH_START = 1,// Triggered when the user has started a pinch gesture.
59
+ PINCH_MOVE = 2,// Triggered when the user has adjusted the pinch, moving both fingers.
60
60
  PINCH_END = 3
61
61
  }
62
62
  export type ViroRotateEvent = {
@@ -66,8 +66,8 @@ export type ViroRotateEvent = {
66
66
  };
67
67
  export type ViroRotateState = ViroRotateStateTypes.ROTATE_START | ViroRotateStateTypes.ROTATE_MOVE | ViroRotateStateTypes.ROTATE_END;
68
68
  export declare enum ViroRotateStateTypes {
69
- ROTATE_START = 1,
70
- ROTATE_MOVE = 2,
69
+ ROTATE_START = 1,// Triggered when the user has started a rotation gesture.
70
+ ROTATE_MOVE = 2,// Triggered when the user has adjusted the rotation, moving both fingers.
71
71
  ROTATE_END = 3
72
72
  }
73
73
  export type ViroDragEvent = {
@@ -18,33 +18,33 @@ var ViroClickStateTypes;
18
18
  ViroClickStateTypes[ViroClickStateTypes["CLICK_DOWN"] = 1] = "CLICK_DOWN";
19
19
  ViroClickStateTypes[ViroClickStateTypes["CLICK_UP"] = 2] = "CLICK_UP";
20
20
  ViroClickStateTypes[ViroClickStateTypes["CLICKED"] = 3] = "CLICKED";
21
- })(ViroClickStateTypes = exports.ViroClickStateTypes || (exports.ViroClickStateTypes = {}));
21
+ })(ViroClickStateTypes || (exports.ViroClickStateTypes = ViroClickStateTypes = {}));
22
22
  var ViroPinchStateTypes;
23
23
  (function (ViroPinchStateTypes) {
24
24
  ViroPinchStateTypes[ViroPinchStateTypes["PINCH_START"] = 1] = "PINCH_START";
25
25
  ViroPinchStateTypes[ViroPinchStateTypes["PINCH_MOVE"] = 2] = "PINCH_MOVE";
26
26
  ViroPinchStateTypes[ViroPinchStateTypes["PINCH_END"] = 3] = "PINCH_END";
27
- })(ViroPinchStateTypes = exports.ViroPinchStateTypes || (exports.ViroPinchStateTypes = {}));
27
+ })(ViroPinchStateTypes || (exports.ViroPinchStateTypes = ViroPinchStateTypes = {}));
28
28
  var ViroRotateStateTypes;
29
29
  (function (ViroRotateStateTypes) {
30
30
  ViroRotateStateTypes[ViroRotateStateTypes["ROTATE_START"] = 1] = "ROTATE_START";
31
31
  ViroRotateStateTypes[ViroRotateStateTypes["ROTATE_MOVE"] = 2] = "ROTATE_MOVE";
32
32
  ViroRotateStateTypes[ViroRotateStateTypes["ROTATE_END"] = 3] = "ROTATE_END";
33
- })(ViroRotateStateTypes = exports.ViroRotateStateTypes || (exports.ViroRotateStateTypes = {}));
33
+ })(ViroRotateStateTypes || (exports.ViroRotateStateTypes = ViroRotateStateTypes = {}));
34
34
  var ViroPlatformTypes;
35
35
  (function (ViroPlatformTypes) {
36
36
  ViroPlatformTypes["GVR"] = "gvr";
37
37
  ViroPlatformTypes["GEAR_VR"] = "ovr-mobile";
38
- })(ViroPlatformTypes = exports.ViroPlatformTypes || (exports.ViroPlatformTypes = {}));
38
+ })(ViroPlatformTypes || (exports.ViroPlatformTypes = ViroPlatformTypes = {}));
39
39
  var ViroHeadsetTypes;
40
40
  (function (ViroHeadsetTypes) {
41
41
  ViroHeadsetTypes["CARDBOARD"] = "cardboard";
42
42
  ViroHeadsetTypes["DAYDREAM"] = "daydream";
43
43
  ViroHeadsetTypes["GEARVR"] = "gearvr";
44
- })(ViroHeadsetTypes = exports.ViroHeadsetTypes || (exports.ViroHeadsetTypes = {}));
44
+ })(ViroHeadsetTypes || (exports.ViroHeadsetTypes = ViroHeadsetTypes = {}));
45
45
  var ViroControllerTypes;
46
46
  (function (ViroControllerTypes) {
47
47
  ViroControllerTypes["CARDBOARD"] = "cardboard";
48
48
  ViroControllerTypes["DAYDREAM"] = "daydream";
49
49
  ViroControllerTypes["GEARVR"] = "gearvr";
50
- })(ViroControllerTypes = exports.ViroControllerTypes || (exports.ViroControllerTypes = {}));
50
+ })(ViroControllerTypes || (exports.ViroControllerTypes = ViroControllerTypes = {}));
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ImageSourcePropType, NativeMethods } from "react-native";
3
2
  export type ViroSceneDictionary = {
4
3
  [val: string]: ViroScene;
@@ -8,7 +8,7 @@
8
8
  * of patent rights can be found in the PATENTS file in the same directory.
9
9
  */
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.checkMisnamedProps = void 0;
11
+ exports.checkMisnamedProps = checkMisnamedProps;
12
12
  /*
13
13
  This function is a simple helper function that attempts to check
14
14
  for misnamed props. Returns whether or not a prop was misnamed.
@@ -88,4 +88,3 @@ function checkMisnamedProps(component, props) {
88
88
  }
89
89
  return false;
90
90
  }
91
- exports.checkMisnamedProps = checkMisnamedProps;
@@ -10,7 +10,9 @@
10
10
  * @providesModule polarToCartesian
11
11
  */
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.isARSupportedOnDevice = exports.polarToCartesianActual = exports.polarToCartesian = void 0;
13
+ exports.polarToCartesian = polarToCartesian;
14
+ exports.polarToCartesianActual = polarToCartesianActual;
15
+ exports.isARSupportedOnDevice = isARSupportedOnDevice;
14
16
  /**
15
17
  * Convert the given polar coords of the form [r, theta, phi] to cartesian
16
18
  * coordinates based on the default user location of (0, 0, 0) w/ viewing vector
@@ -35,7 +37,6 @@ function polarToCartesian(polarcoords) {
35
37
  cartesianCoords.push(z);
36
38
  return cartesianCoords;
37
39
  }
38
- exports.polarToCartesian = polarToCartesian;
39
40
  /**
40
41
  * Convert the given polar coords of the form [r, theta, phi] to cartesian
41
42
  * coordinates following the proper mathematical notation (from the zeros of
@@ -60,7 +61,6 @@ function polarToCartesianActual(polarcoords) {
60
61
  cartesianCoords.push(z);
61
62
  return cartesianCoords;
62
63
  }
63
- exports.polarToCartesianActual = polarToCartesianActual;
64
64
  const react_native_1 = require("react-native");
65
65
  function isARSupportedOnDevice() {
66
66
  return new Promise((resolve, reject) => {
@@ -84,4 +84,3 @@ function isARSupportedOnDevice() {
84
84
  }
85
85
  });
86
86
  }
87
- exports.isARSupportedOnDevice = isARSupportedOnDevice;
@@ -1 +1 @@
1
- export declare const VIRO_VERSION = "2.41.6";
1
+ export declare const VIRO_VERSION = "2.43.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VIRO_VERSION = void 0;
4
- exports.VIRO_VERSION = "2.41.6";
4
+ exports.VIRO_VERSION = "2.43.0";
@@ -41,6 +41,6 @@ export declare class Viro360Image extends React.Component<Props> {
41
41
  _onLoadEnd: (event: NativeSyntheticEvent<ViroLoadEndEvent>) => void;
42
42
  _onError: (event: NativeSyntheticEvent<ViroLoadErrorEvent>) => void;
43
43
  setNativeProps(nativeProps: Props): void;
44
- render(): JSX.Element;
44
+ render(): React.JSX.Element;
45
45
  }
46
46
  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
  };
@@ -47,7 +47,7 @@ export declare class Viro360Video extends React.Component<Props> {
47
47
  _onError: (event: NativeSyntheticEvent<ViroVideoErrorEvent>) => void;
48
48
  _onUpdateTime: (event: NativeSyntheticEvent<ViroVideoUpdateTimeEvent>) => void;
49
49
  setNativeProps: (nativeProps: Props) => void;
50
- render(): JSX.Element;
50
+ render(): React.JSX.Element;
51
51
  seekToTime: (timeInSeconds: number) => void;
52
52
  }
53
53
  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
  };
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from "react";
2
2
  import { ImageSourcePropType, NativeSyntheticEvent } from "react-native";
3
3
  import { ViroErrorEvent, ViroLoadEndEvent, ViroLoadStartEvent } from "./Types/ViroEvents";
4
4
  import { ViroBase } from "./ViroBase";
@@ -27,7 +27,7 @@ type Props = {
27
27
  * Viro3DObject is a component that is used to render 3D models in the scene.
28
28
  */
29
29
  export declare class Viro3DObject extends ViroBase<Props> {
30
- render(): JSX.Element;
30
+ render(): React.JSX.Element;
31
31
  _onLoadStart: (event: NativeSyntheticEvent<ViroLoadStartEvent>) => void;
32
32
  _onLoadEnd: (event: NativeSyntheticEvent<ViroLoadEndEvent>) => void;
33
33
  getBoundingBoxAsync: () => Promise<any>;
@@ -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.Viro3DObject = void 0;
27
37
  const React = __importStar(require("react"));
@@ -138,7 +138,7 @@ export declare class Viro3DSceneNavigator extends React.Component<Props, State>
138
138
  popHistoryByN(n: number): void;
139
139
  getSceneIndex(sceneTag: string): number;
140
140
  _recenterTracking(): void;
141
- _renderSceneStackItems(): JSX.Element[];
141
+ _renderSceneStackItems(): React.JSX.Element[];
142
142
  _project(point: Viro3DPoint): Promise<any>;
143
143
  _unproject(point: Viro3DPoint): Promise<any>;
144
144
  sceneNavigator: {
@@ -152,6 +152,6 @@ export declare class Viro3DSceneNavigator extends React.Component<Props, State>
152
152
  unproject: (point: Viro3DPoint) => Promise<any>;
153
153
  viroAppProps: any;
154
154
  };
155
- render(): JSX.Element;
155
+ render(): React.JSX.Element;
156
156
  }
157
157
  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.Viro3DSceneNavigator = void 0;
38
48
  const React = __importStar(require("react"));
@@ -13,6 +13,6 @@ type Props = ViewProps & {
13
13
  export declare class ViroAmbientLight extends React.Component<Props> {
14
14
  _component: ViroNativeRef;
15
15
  setNativeProps(nativeProps: Props): void;
16
- render(): JSX.Element;
16
+ render(): React.JSX.Element;
17
17
  }
18
18
  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.ViroAmbientLight = void 0;
38
48
  const React = __importStar(require("react"));
@@ -18,6 +18,6 @@ export declare class ViroAnimatedComponent extends React.Component<Props> {
18
18
  _onStart(_event: NativeSyntheticEvent<ViroAnimatedComponentStartEvent>): void;
19
19
  _onFinish(_event: NativeSyntheticEvent<ViroAnimatedComponentFinishEvent>): void;
20
20
  setNativeProps(nativeProps: Props): void;
21
- render(): JSX.Element;
21
+ render(): React.JSX.Element;
22
22
  }
23
23
  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.ViroAnimatedComponent = 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 { NativeSyntheticEvent } from "react-native";
3
3
  import { ViroAnimation } from "./Animation/ViroAnimations";
4
4
  import { ViroCommonProps } from "./AR/ViroCommonProps";
@@ -63,6 +63,6 @@ export declare class ViroAnimatedImage extends ViroBase<Props> {
63
63
  _component: ViroNativeRef;
64
64
  _onLoadStart: (event: NativeSyntheticEvent<ViroLoadStartEvent>) => void;
65
65
  _onLoadEnd: (event: NativeSyntheticEvent<ViroLoadEndEvent>) => void;
66
- render(): JSX.Element;
66
+ render(): React.JSX.Element;
67
67
  }
68
68
  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
  var __importDefault = (this && this.__importDefault) || function (mod) {
34
44
  return (mod && mod.__esModule) ? mod : { "default": mod };
35
45
  };
@@ -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.ViroBase = void 0;
27
37
  const React = __importStar(require("react"));
@@ -6,8 +6,8 @@
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 { ViroBase } from "./ViroBase";
11
11
  export declare class ViroBox extends ViroBase<{}> {
12
- render(): JSX.Element;
12
+ render(): React.JSX.Element;
13
13
  }
@@ -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.ViroBox = void 0;
35
45
  const React = __importStar(require("react"));
@@ -54,7 +54,7 @@ export declare class ViroButton extends React.Component<Props, State> {
54
54
  _onAnimationFinish: () => void;
55
55
  getTransformAsync: () => Promise<any>;
56
56
  getBoundingBoxAsync: () => Promise<any>;
57
- render(): JSX.Element;
57
+ render(): React.JSX.Element;
58
58
  _onButtonHover: (isHovering: boolean, position: Viro3DPoint, source: ViroSource) => void;
59
59
  _onButtonClicked: (position: Viro3DPoint, source: ViroSource) => void;
60
60
  _onAnimationFinished: () => void;