@gamelearn/arcade-components 0.18.8 → 0.19.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.
@@ -57,6 +57,11 @@ var useCameraPan = function useCameraPan(lookingSide) {
57
57
  });
58
58
  var setCameraRotationView = (0, _react.useCallback)(function () {
59
59
  if (viewport.aspect >= STD_RESOLUTION) {
60
+ cameraRotation.current = {
61
+ left: camera.quaternion,
62
+ center: camera.quaternion,
63
+ right: camera.quaternion
64
+ };
60
65
  return;
61
66
  }
62
67
 
@@ -84,7 +84,9 @@ var DecisionComponent = function DecisionComponent(_ref) {
84
84
  var failed = required && !resultChoice.right;
85
85
 
86
86
  var playCurrentAudio = function playCurrentAudio(option) {
87
- if (option.audio.url) {
87
+ var _option$audio;
88
+
89
+ if ((_option$audio = option.audio) !== null && _option$audio !== void 0 && _option$audio.url) {
88
90
  playSound(option.audio.url);
89
91
  }
90
92
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gamelearn/arcade-components",
3
3
  "license": "Gamelearn",
4
- "version": "0.18.8",
4
+ "version": "0.19.0",
5
5
  "main": "dist/index.js",
6
6
  "files": [
7
7
  "dist",