@gamelearn/arcade-components 1.31.3 → 1.31.6

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.
@@ -709,6 +709,7 @@ var DialogComponent = function DialogComponent(_ref) {
709
709
  portal: container ? {
710
710
  current: container
711
711
  } : undefined,
712
+ onOcclude: function onOcclude() {},
712
713
  calculatePosition: function calculatePosition() {
713
714
  return [0, 0];
714
715
  }
@@ -203,7 +203,10 @@ var TestComponent = function TestComponent(_ref) {
203
203
  setResult({});
204
204
  setTime(countdown.time);
205
205
  setTimeOver(false);
206
- playSound(audio.url, 'test_bg');
206
+
207
+ if (audio !== null && audio !== void 0 && audio.url) {
208
+ playSound(audio.url, 'test_bg');
209
+ }
207
210
  };
208
211
 
209
212
  var resultAnswers = Object.values(result);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@gamelearn/arcade-components",
3
3
  "author": "Gamelearn",
4
4
  "license": "unlicense",
5
- "version": "1.31.3",
5
+ "version": "1.31.6",
6
6
  "main": "dist/index.js",
7
7
  "files": [
8
8
  "dist",