@gamelearn/arcade-components 1.18.0 → 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 +32 -21
- 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 +31 -16
- 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 +25 -11
- 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 +14 -5
- 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
|
|
@@ -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/components/web-builder-puzzle-component/components/WebBuilderPuzzleComponent.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
|
|
@@ -33,9 +33,9 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
33
33
|
|
|
34
34
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
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
|
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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); }); }; }
|
|
@@ -33,6 +39,8 @@ var useEkho = function useEkho(_ref) {
|
|
|
33
39
|
audioType = _ref.audioType,
|
|
34
40
|
_ref$loop = _ref.loop,
|
|
35
41
|
loop = _ref$loop === void 0 ? false : _ref$loop,
|
|
42
|
+
_ref$started = _ref.started,
|
|
43
|
+
started = _ref$started === void 0 ? true : _ref$started,
|
|
36
44
|
audio = _ref.audio,
|
|
37
45
|
soundActions = _ref.soundActions,
|
|
38
46
|
emitEvent = _ref.emitEvent,
|
|
@@ -139,9 +147,7 @@ var useEkho = function useEkho(_ref) {
|
|
|
139
147
|
break;
|
|
140
148
|
|
|
141
149
|
case 7:
|
|
142
|
-
|
|
143
|
-
onError();
|
|
144
|
-
}
|
|
150
|
+
onError();
|
|
145
151
|
|
|
146
152
|
case 8:
|
|
147
153
|
case "end":
|
|
@@ -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]);
|
|
@@ -166,7 +175,7 @@ var useEkho = function useEkho(_ref) {
|
|
|
166
175
|
}
|
|
167
176
|
}, [noAudio, stopCurrentAudio]);
|
|
168
177
|
(0, _react.useEffect)(function () {
|
|
169
|
-
if (isMounted) {
|
|
178
|
+
if (isMounted && started) {
|
|
170
179
|
if (audioType === 'voice' && voice !== null && voice !== void 0 && voice.id) {
|
|
171
180
|
var voiceId = getVoice(voice);
|
|
172
181
|
playSpeech({
|
|
@@ -179,7 +188,7 @@ var useEkho = function useEkho(_ref) {
|
|
|
179
188
|
onError();
|
|
180
189
|
}
|
|
181
190
|
}
|
|
182
|
-
}, [getVoice, playSpeech, isMounted, voice, text, audioType, audio === null || audio === void 0 ? void 0 : audio.url, audio, setCurrentPlaying, onError]);
|
|
191
|
+
}, [getVoice, playSpeech, isMounted, voice, text, audioType, audio === null || audio === void 0 ? void 0 : audio.url, audio, setCurrentPlaying, onError, started]);
|
|
183
192
|
return stopCurrentAudio;
|
|
184
193
|
};
|
|
185
194
|
|
|
@@ -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() {
|