@gamelearn/arcade-components 1.18.1 → 1.18.2-hotfix-1

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 (70) hide show
  1. package/dist/components/auto-evaluation-component/components/AutoEvaluation.js +1 -1
  2. package/dist/components/auto-evaluation-component/components/EndScreen.js +1 -1
  3. package/dist/components/cards-selector-puzzle-component/components/Board/index.js +1 -1
  4. package/dist/components/cards-selector-puzzle-component/components/CardsSelectorPuzzleComponent.js +1 -1
  5. package/dist/components/cards-selector-puzzle-component/mocks/mockForStory.js +2 -2
  6. package/dist/components/cartel-component/components/CartelComponent.js +1 -1
  7. package/dist/components/chained-image-click-puzzle-component/components/ChainedImageClickPuzzleComponent.js +1 -1
  8. package/dist/components/chained-image-click-puzzle-component/components/CurrentImagePuzzle.js +3 -3
  9. package/dist/components/comic-component/components/ComicComponent.js +25 -15
  10. package/dist/components/comic-component/components/Vignette.js +1 -1
  11. package/dist/components/conversational-component/components/ConversationalComponent.js +3 -3
  12. package/dist/components/conversational-pro-component/components/ConversationalProComponent.js +25 -13
  13. package/dist/components/conversational-pro-component/components/SlotList.js +2 -2
  14. package/dist/components/conversational-pro-component/components/scene/Panel.js +1 -1
  15. package/dist/components/conversational-pro-component/components/scene/Panels.js +2 -2
  16. package/dist/components/conversational-pro-component/components/scene/index.js +1 -1
  17. package/dist/components/cracker-puzzle-component/components/CrackerPuzzleComponent.js +1 -1
  18. package/dist/components/decision-component/components/DecisionBody.js +1 -1
  19. package/dist/components/decision-component/components/DecisionComponent.js +3 -3
  20. package/dist/components/dialog-component/components/DialogComponent.js +3 -3
  21. package/dist/components/drag-item-puzzle-component/components/DragItemPuzzleComponent.js +3 -3
  22. package/dist/components/feedback-component/components/FeedbackComponent.js +1 -1
  23. package/dist/components/frame-click-puzzle-component/components/CurrentFramePuzzle.js +3 -3
  24. package/dist/components/frame-click-puzzle-component/components/FrameClickPuzzleComponent.js +1 -1
  25. package/dist/components/hacker-puzzle-component/components/HackerPuzzleComponent.js +1 -1
  26. package/dist/components/hanged-puzzle-component/components/HangedPuzzleComponent.js +3 -3
  27. package/dist/components/image-click-wrapper-component/components/ImageClickWrapperComponent.js +5 -4
  28. package/dist/components/image-component/components/ImageComponent.js +1 -1
  29. package/dist/components/index.js +1 -1
  30. package/dist/components/inventory-item/components/InventoryItem.js +1 -1
  31. package/dist/components/keyboard-puzzle-component/components/KeyboardPuzzleComponent.js +1 -1
  32. package/dist/components/konva-components/Area/index.js +3 -3
  33. package/dist/components/konva-components/KonvaMapper.js +1 -1
  34. package/dist/components/lectures-component/components/LecturesComponent.js +1 -1
  35. package/dist/components/login-puzzle-component/components/LoginPuzzleComponent.js +1 -1
  36. package/dist/components/media-visor/components/MediaVisor.js +1 -1
  37. package/dist/components/pdf-component/components/PdfComponent.js +1 -1
  38. package/dist/components/pdf-component/components/PdfVisor.js +1 -1
  39. package/dist/components/referral-component/components/ReferralComponent.js +1 -1
  40. package/dist/components/referral-component/components/StepOne.js +1 -1
  41. package/dist/components/referral-component/components/StepTwo.js +1 -1
  42. package/dist/components/rewards-component/components/RewardItem.js +1 -1
  43. package/dist/components/rewards-component/components/RewardsComponent.js +3 -3
  44. package/dist/components/survey-component/components/ApplicableBox.js +3 -3
  45. package/dist/components/survey-component/components/OpinionBox.js +3 -3
  46. package/dist/components/survey-component/components/SurveyComponent.js +1 -1
  47. package/dist/components/survey-component/components/TextBox.js +2 -2
  48. package/dist/components/terminal-puzzle-component/components/TerminalPuzzleComponent.js +1 -1
  49. package/dist/components/terminal-puzzle-component/components/Visor/index.js +2 -2
  50. package/dist/components/test-component/components/Container.js +1 -1
  51. package/dist/components/test-component/components/Results.js +1 -1
  52. package/dist/components/test-component/components/TestComponent.js +3 -3
  53. package/dist/components/test-component/mocks/mockForStory.js +2 -2
  54. package/dist/components/text-click-puzzle-component/components/TextClickPuzzleComponent.js +3 -3
  55. package/dist/components/url-component/components/UrlComponent.js +1 -1
  56. package/dist/components/video-component/components/VideoComponent.js +1 -1
  57. package/dist/components/video-visor/components/VideoControllers/BufferBar.js +1 -1
  58. package/dist/components/video-visor/components/VideoVisor.js +1 -1
  59. package/dist/components/web-builder-puzzle-component/Popups/PopupColorComponent/index.js +1 -1
  60. package/dist/components/web-builder-puzzle-component/Popups/PopupImageComponent/index.js +1 -1
  61. package/dist/components/web-builder-puzzle-component/Popups/PopupTextComponent/index.js +1 -1
  62. package/dist/components/web-builder-puzzle-component/components/WebBuilderPuzzleComponent.js +3 -3
  63. package/dist/components/writer-puzzle-component/components/ElectionComponent.js +1 -1
  64. package/dist/components/writer-puzzle-component/components/FixedComponent.js +1 -1
  65. package/dist/components/writer-puzzle-component/components/SingleElection.js +1 -1
  66. package/dist/components/writer-puzzle-component/components/WriterPuzzleComponent.js +3 -3
  67. package/dist/helpers/drawLOD.js +1 -1
  68. package/dist/helpers/useEkho.js +9 -0
  69. package/dist/helpers/useWindowSize.js +1 -1
  70. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -33,9 +33,9 @@ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symb
33
33
 
34
34
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
35
35
 
36
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
36
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
37
37
 
38
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
38
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
39
39
 
40
40
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
41
41
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -7,6 +7,12 @@ exports.default = void 0;
7
7
 
8
8
  var _react = require("react");
9
9
 
10
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11
+
12
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
13
+
14
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
+
10
16
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
11
17
 
12
18
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
@@ -157,6 +163,9 @@ var useEkho = function useEkho(_ref) {
157
163
  }(), [emitEvent, onError, setCurrentPlaying]);
158
164
  var stopCurrentAudio = (0, _react.useCallback)(function () {
159
165
  if (currentPlaying.current.url) {
166
+ currentPlaying.current = _objectSpread(_objectSpread({}, currentPlaying.current), {}, {
167
+ url: ''
168
+ });
160
169
  stop(currentPlaying.current.cc);
161
170
  }
162
171
  }, [stop]);
@@ -19,7 +19,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
19
19
 
20
20
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
21
21
 
22
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
22
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
23
23
 
24
24
  // Hook
25
25
  var useWindowSize = function useWindowSize() {
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.18.1",
5
+ "version": "1.18.2-hotfix-1",
6
6
  "main": "dist/index.js",
7
7
  "files": [
8
8
  "dist",