@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.
- package/dist/components/auto-evaluation-component/components/AutoEvaluation.js +1 -1
- package/dist/components/auto-evaluation-component/components/EndScreen.js +1 -1
- package/dist/components/cards-selector-puzzle-component/components/Board/index.js +1 -1
- package/dist/components/cards-selector-puzzle-component/components/CardsSelectorPuzzleComponent.js +1 -1
- package/dist/components/cards-selector-puzzle-component/mocks/mockForStory.js +2 -2
- package/dist/components/cartel-component/components/CartelComponent.js +1 -1
- package/dist/components/chained-image-click-puzzle-component/components/ChainedImageClickPuzzleComponent.js +1 -1
- package/dist/components/chained-image-click-puzzle-component/components/CurrentImagePuzzle.js +3 -3
- package/dist/components/comic-component/components/ComicComponent.js +25 -15
- package/dist/components/comic-component/components/Vignette.js +1 -1
- package/dist/components/conversational-component/components/ConversationalComponent.js +3 -3
- package/dist/components/conversational-pro-component/components/ConversationalProComponent.js +25 -13
- package/dist/components/conversational-pro-component/components/SlotList.js +2 -2
- package/dist/components/conversational-pro-component/components/scene/Panel.js +1 -1
- package/dist/components/conversational-pro-component/components/scene/Panels.js +2 -2
- package/dist/components/conversational-pro-component/components/scene/index.js +1 -1
- package/dist/components/cracker-puzzle-component/components/CrackerPuzzleComponent.js +1 -1
- package/dist/components/decision-component/components/DecisionBody.js +1 -1
- package/dist/components/decision-component/components/DecisionComponent.js +3 -3
- package/dist/components/dialog-component/components/DialogComponent.js +3 -3
- package/dist/components/drag-item-puzzle-component/components/DragItemPuzzleComponent.js +3 -3
- package/dist/components/feedback-component/components/FeedbackComponent.js +1 -1
- package/dist/components/frame-click-puzzle-component/components/CurrentFramePuzzle.js +3 -3
- package/dist/components/frame-click-puzzle-component/components/FrameClickPuzzleComponent.js +1 -1
- package/dist/components/hacker-puzzle-component/components/HackerPuzzleComponent.js +1 -1
- package/dist/components/hanged-puzzle-component/components/HangedPuzzleComponent.js +3 -3
- package/dist/components/image-click-wrapper-component/components/ImageClickWrapperComponent.js +5 -4
- package/dist/components/image-component/components/ImageComponent.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/inventory-item/components/InventoryItem.js +1 -1
- package/dist/components/keyboard-puzzle-component/components/KeyboardPuzzleComponent.js +1 -1
- package/dist/components/konva-components/Area/index.js +3 -3
- package/dist/components/konva-components/KonvaMapper.js +1 -1
- package/dist/components/lectures-component/components/LecturesComponent.js +1 -1
- package/dist/components/login-puzzle-component/components/LoginPuzzleComponent.js +1 -1
- package/dist/components/media-visor/components/MediaVisor.js +1 -1
- package/dist/components/pdf-component/components/PdfComponent.js +1 -1
- package/dist/components/pdf-component/components/PdfVisor.js +1 -1
- package/dist/components/referral-component/components/ReferralComponent.js +1 -1
- package/dist/components/referral-component/components/StepOne.js +1 -1
- package/dist/components/referral-component/components/StepTwo.js +1 -1
- package/dist/components/rewards-component/components/RewardItem.js +1 -1
- package/dist/components/rewards-component/components/RewardsComponent.js +3 -3
- package/dist/components/survey-component/components/ApplicableBox.js +3 -3
- package/dist/components/survey-component/components/OpinionBox.js +3 -3
- package/dist/components/survey-component/components/SurveyComponent.js +1 -1
- package/dist/components/survey-component/components/TextBox.js +2 -2
- package/dist/components/terminal-puzzle-component/components/TerminalPuzzleComponent.js +1 -1
- package/dist/components/terminal-puzzle-component/components/Visor/index.js +2 -2
- package/dist/components/test-component/components/Container.js +1 -1
- package/dist/components/test-component/components/Results.js +1 -1
- package/dist/components/test-component/components/TestComponent.js +3 -3
- package/dist/components/test-component/mocks/mockForStory.js +2 -2
- package/dist/components/text-click-puzzle-component/components/TextClickPuzzleComponent.js +3 -3
- package/dist/components/url-component/components/UrlComponent.js +1 -1
- package/dist/components/video-component/components/VideoComponent.js +1 -1
- package/dist/components/video-visor/components/VideoControllers/BufferBar.js +1 -1
- package/dist/components/video-visor/components/VideoVisor.js +1 -1
- package/dist/components/web-builder-puzzle-component/Popups/PopupColorComponent/index.js +1 -1
- package/dist/components/web-builder-puzzle-component/Popups/PopupImageComponent/index.js +1 -1
- package/dist/components/web-builder-puzzle-component/Popups/PopupTextComponent/index.js +1 -1
- package/dist/components/web-builder-puzzle-component/components/WebBuilderPuzzleComponent.js +3 -3
- package/dist/components/writer-puzzle-component/components/ElectionComponent.js +1 -1
- package/dist/components/writer-puzzle-component/components/FixedComponent.js +1 -1
- package/dist/components/writer-puzzle-component/components/SingleElection.js +1 -1
- package/dist/components/writer-puzzle-component/components/WriterPuzzleComponent.js +3 -3
- package/dist/helpers/drawLOD.js +1 -1
- package/dist/helpers/useEkho.js +9 -0
- package/dist/helpers/useWindowSize.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
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);
|
|
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]
|
|
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
|
|
package/dist/helpers/drawLOD.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
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
|
package/dist/helpers/useEkho.js
CHANGED
|
@@ -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";
|
|
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() {
|