@gamelearn/arcade-components 2.41.1 → 3.0.2
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/README.md +9 -6
- package/dist/arcade-components.cjs +274 -0
- package/dist/arcade-components.js +57929 -0
- package/package.json +74 -73
- package/dist/components/animation-component/components/AnimationComponent.js +0 -98
- package/dist/components/animation-component/index.js +0 -10
- package/dist/components/animation-component/mocks/mockForStory.js +0 -26
- package/dist/components/auto-evaluation-component/components/AutoEvaluation.js +0 -215
- package/dist/components/auto-evaluation-component/components/EndScreen.js +0 -43
- package/dist/components/auto-evaluation-component/components/StartScreen.js +0 -32
- package/dist/components/auto-evaluation-component/index.js +0 -10
- package/dist/components/auto-evaluation-component/mocks/mockForStory.js +0 -38
- package/dist/components/cards-selector-puzzle-component/components/Board/index.js +0 -159
- package/dist/components/cards-selector-puzzle-component/components/Card/index.js +0 -115
- package/dist/components/cards-selector-puzzle-component/components/CardsSelectorPuzzleComponent.js +0 -289
- package/dist/components/cards-selector-puzzle-component/index.js +0 -10
- package/dist/components/cards-selector-puzzle-component/mocks/mockForStory.js +0 -446
- package/dist/components/cartel-component/components/CartelComponent.js +0 -124
- package/dist/components/cartel-component/index.js +0 -10
- package/dist/components/chained-image-click-puzzle-component/components/ChainedImageClickPuzzleComponent.js +0 -80
- package/dist/components/chained-image-click-puzzle-component/components/CurrentImagePuzzle.js +0 -182
- package/dist/components/chained-image-click-puzzle-component/index.js +0 -10
- package/dist/components/chained-image-click-puzzle-component/mocks/mockForStory.js +0 -413
- package/dist/components/comic-component/components/ComicComponent.js +0 -201
- package/dist/components/comic-component/components/Slide.js +0 -31
- package/dist/components/comic-component/components/Vignette.js +0 -70
- package/dist/components/comic-component/index.js +0 -10
- package/dist/components/comic-component/mocks/mockForStory.js +0 -314
- package/dist/components/conversational-component/components/ConversationalComponent.js +0 -101
- package/dist/components/conversational-component/index.js +0 -10
- package/dist/components/conversational-pro-component/components/ConversationalProComponent.js +0 -543
- package/dist/components/conversational-pro-component/components/Message.js +0 -37
- package/dist/components/conversational-pro-component/components/Slot.js +0 -92
- package/dist/components/conversational-pro-component/components/SlotList.js +0 -162
- package/dist/components/conversational-pro-component/components/scene/Panel.js +0 -179
- package/dist/components/conversational-pro-component/components/scene/Panels.js +0 -46
- package/dist/components/conversational-pro-component/components/scene/index.js +0 -77
- package/dist/components/conversational-pro-component/index.js +0 -10
- package/dist/components/conversational-pro-component/mocks/mockForStory.js +0 -1529
- package/dist/components/cracker-puzzle-component/components/CrackerPuzzleComponent.js +0 -261
- package/dist/components/cracker-puzzle-component/components/DrawGrid/index.js +0 -33
- package/dist/components/cracker-puzzle-component/components/DrawItem/index.js +0 -48
- package/dist/components/cracker-puzzle-component/components/DrawRow/index.js +0 -43
- package/dist/components/cracker-puzzle-component/components/colors.js +0 -12
- package/dist/components/cracker-puzzle-component/components/helpers.js +0 -133
- package/dist/components/cracker-puzzle-component/index.js +0 -10
- package/dist/components/cracker-puzzle-component/mocks/mockForStory.js +0 -277
- package/dist/components/decision-component/components/DecisionBody.js +0 -116
- package/dist/components/decision-component/components/DecisionComponent.js +0 -248
- package/dist/components/decision-component/components/Feedback.js +0 -40
- package/dist/components/decision-component/components/Options.js +0 -74
- package/dist/components/decision-component/index.js +0 -10
- package/dist/components/decision-component/mocks/mockForStory.js +0 -166
- package/dist/components/dialog-component/components/BubbleWrapper.js +0 -39
- package/dist/components/dialog-component/components/DialogComponent.js +0 -779
- package/dist/components/dialog-component/components/DialogDecision.js +0 -44
- package/dist/components/dialog-component/components/SpeechBubbleComponent.js +0 -66
- package/dist/components/dialog-component/index.js +0 -10
- package/dist/components/dialog-component/mocks/mockForStory.js +0 -550
- package/dist/components/drag-item-puzzle-component/components/DragItemPuzzleComponent.js +0 -361
- package/dist/components/drag-item-puzzle-component/index.js +0 -10
- package/dist/components/drag-item-puzzle-component/mocks/mockForStory.js +0 -74
- package/dist/components/feedback-component/components/FeedbackComponent.js +0 -126
- package/dist/components/feedback-component/index.js +0 -10
- package/dist/components/feedback-component/mocks/mockForStory.js +0 -52
- package/dist/components/frame-click-puzzle-component/components/Counter/index.js +0 -24
- package/dist/components/frame-click-puzzle-component/components/CurrentFramePuzzle.js +0 -196
- package/dist/components/frame-click-puzzle-component/components/FrameClickPuzzleComponent.js +0 -178
- package/dist/components/frame-click-puzzle-component/components/Tooltip/index.js +0 -23
- package/dist/components/frame-click-puzzle-component/index.js +0 -10
- package/dist/components/frame-click-puzzle-component/mocks/mockForStory.js +0 -717
- package/dist/components/hacker-puzzle-component/components/HackerPuzzleComponent.js +0 -255
- package/dist/components/hacker-puzzle-component/components/languages.js +0 -13
- package/dist/components/hacker-puzzle-component/index.js +0 -10
- package/dist/components/hacker-puzzle-component/mocks/mockForStory.js +0 -103
- package/dist/components/hanged-puzzle-component/components/HangedPuzzleComponent.js +0 -488
- package/dist/components/hanged-puzzle-component/index.js +0 -10
- package/dist/components/hanged-puzzle-component/mocks/mockForStory.js +0 -61
- package/dist/components/hanged-puzzle-component/utils.js +0 -64
- package/dist/components/image-click-puzzle-component/components/ImageClickPuzzleComponent.js +0 -40
- package/dist/components/image-click-puzzle-component/index.js +0 -10
- package/dist/components/image-click-puzzle-component/mocks/mockForStory.js +0 -427
- package/dist/components/image-click-wrapper-component/components/CountDown/index.js +0 -18
- package/dist/components/image-click-wrapper-component/components/ImageClickWrapperComponent.js +0 -472
- package/dist/components/image-click-wrapper-component/components/TimerDialog/index.js +0 -26
- package/dist/components/image-click-wrapper-component/index.js +0 -10
- package/dist/components/image-click-wrapper-component/mocks/mockForStory.js +0 -432
- package/dist/components/image-component/components/ImageComponent.js +0 -83
- package/dist/components/image-component/index.js +0 -10
- package/dist/components/image-component/mocks/mockForStory.js +0 -52
- package/dist/components/index.js +0 -260
- package/dist/components/inventory-item/components/InventoryItem.js +0 -120
- package/dist/components/inventory-item/index.js +0 -10
- package/dist/components/inventory-item/mocks/mockForStory.js +0 -29
- package/dist/components/keyboard-puzzle-component/components/KeyboardPuzzleComponent.js +0 -275
- package/dist/components/keyboard-puzzle-component/index.js +0 -10
- package/dist/components/keyboard-puzzle-component/mocks/mockForStory.js +0 -40
- package/dist/components/konva-components/Area/index.js +0 -170
- package/dist/components/konva-components/KonvaMapper.js +0 -185
- package/dist/components/lectures-component/components/LectureButtons.js +0 -40
- package/dist/components/lectures-component/components/LecturesComponent.js +0 -157
- package/dist/components/lectures-component/index.js +0 -10
- package/dist/components/lectures-component/mocks/mockForStory.js +0 -39
- package/dist/components/login-puzzle-component/components/LoginPuzzleComponent.js +0 -243
- package/dist/components/login-puzzle-component/index.js +0 -10
- package/dist/components/login-puzzle-component/mocks/mockForStory.js +0 -38
- package/dist/components/notice-component/components/NoticeComponent.js +0 -96
- package/dist/components/notice-component/index.js +0 -10
- package/dist/components/notice-component/mocks/mockForStory.js +0 -20
- package/dist/components/pattern-component/components/PatternComponent.js +0 -78
- package/dist/components/pattern-component/index.js +0 -10
- package/dist/components/pattern-component/mocks/mockForStory.js +0 -35
- package/dist/components/pdf-component/components/PdfComponent.js +0 -122
- package/dist/components/pdf-component/components/PdfVisor.js +0 -187
- package/dist/components/pdf-component/index.js +0 -20
- package/dist/components/pdf-component/mocks/mockForProps.js +0 -38
- package/dist/components/referral-component/components/EmailPill.js +0 -26
- package/dist/components/referral-component/components/ReferralComponent.js +0 -115
- package/dist/components/referral-component/components/StepOne.js +0 -170
- package/dist/components/referral-component/components/StepTwo.js +0 -57
- package/dist/components/referral-component/index.js +0 -10
- package/dist/components/referral-component/mocks/mockForStory.js +0 -40
- package/dist/components/survey-component/components/ApplicableBox.js +0 -49
- package/dist/components/survey-component/components/OpinionBox.js +0 -45
- package/dist/components/survey-component/components/SurveyComponent.js +0 -150
- package/dist/components/survey-component/components/TextBox.js +0 -40
- package/dist/components/survey-component/index.js +0 -10
- package/dist/components/survey-component/mocks/mockForStory.js +0 -14
- package/dist/components/terminal-puzzle-component/components/FilesGroup/Item.js +0 -28
- package/dist/components/terminal-puzzle-component/components/FilesGroup/index.js +0 -76
- package/dist/components/terminal-puzzle-component/components/Image/index.js +0 -22
- package/dist/components/terminal-puzzle-component/components/TerminalPuzzleComponent.js +0 -216
- package/dist/components/terminal-puzzle-component/components/Visor/index.js +0 -129
- package/dist/components/terminal-puzzle-component/components/utils/index.js +0 -26
- package/dist/components/terminal-puzzle-component/index.js +0 -10
- package/dist/components/terminal-puzzle-component/mocks/mockForStory.js +0 -188
- package/dist/components/test-component/components/Container.js +0 -211
- package/dist/components/test-component/components/Feedbacks.js +0 -48
- package/dist/components/test-component/components/Questions.js +0 -145
- package/dist/components/test-component/components/Results.js +0 -208
- package/dist/components/test-component/components/TestComponent.js +0 -302
- package/dist/components/test-component/index.js +0 -10
- package/dist/components/test-component/mocks/mockForStory.js +0 -113
- package/dist/components/text-click-puzzle-component/components/TextClickPuzzleComponent.js +0 -387
- package/dist/components/text-click-puzzle-component/index.js +0 -10
- package/dist/components/text-click-puzzle-component/mocks/mockForStory.js +0 -485
- package/dist/components/text-click-puzzle-component/utils/index.js +0 -76
- package/dist/components/url-component/components/UrlComponent.js +0 -88
- package/dist/components/url-component/index.js +0 -10
- package/dist/components/url-component/mocks/mockForProps.js +0 -20
- package/dist/components/video-component/components/VideoComponent.js +0 -73
- package/dist/components/video-component/index.js +0 -10
- package/dist/components/video-component/mocks/mockForStory.js +0 -94
- package/dist/components/video-visor/components/VideoControllers/BufferBar.js +0 -108
- package/dist/components/video-visor/components/VideoControllers/ControlButtons.js +0 -31
- package/dist/components/video-visor/components/VideoControllers/FinishedVideoButtons.js +0 -32
- package/dist/components/video-visor/components/VideoControllers/PlayInitButton.js +0 -37
- package/dist/components/video-visor/components/VideoControllers/SkipButton.js +0 -37
- package/dist/components/video-visor/components/VideoControllers/Timer.js +0 -37
- package/dist/components/video-visor/components/VideoControllers/VolumeBar.js +0 -92
- package/dist/components/video-visor/components/VideoControllers/index.js +0 -122
- package/dist/components/video-visor/components/VideoVisor.js +0 -271
- package/dist/components/video-visor/index.js +0 -10
- package/dist/components/video-visor/mocks/mockForStory.js +0 -42
- package/dist/components/web-builder-puzzle-component/Popups/PopupColorComponent/index.js +0 -87
- package/dist/components/web-builder-puzzle-component/Popups/PopupImageComponent/index.js +0 -94
- package/dist/components/web-builder-puzzle-component/Popups/PopupTextComponent/index.js +0 -114
- package/dist/components/web-builder-puzzle-component/Popups/index.js +0 -27
- package/dist/components/web-builder-puzzle-component/Templates/Bank.js +0 -98
- package/dist/components/web-builder-puzzle-component/Templates/Facebook.js +0 -37
- package/dist/components/web-builder-puzzle-component/Templates/resourcePath.js +0 -9
- package/dist/components/web-builder-puzzle-component/components/EditButton/index.js +0 -28
- package/dist/components/web-builder-puzzle-component/components/Feedback/index.js +0 -41
- package/dist/components/web-builder-puzzle-component/components/PublishButton/index.js +0 -29
- package/dist/components/web-builder-puzzle-component/components/WebBuilderBody/BankBody.js +0 -118
- package/dist/components/web-builder-puzzle-component/components/WebBuilderBody/FacebookBody.js +0 -149
- package/dist/components/web-builder-puzzle-component/components/WebBuilderBody/index.js +0 -25
- package/dist/components/web-builder-puzzle-component/components/WebBuilderFront/index.js +0 -89
- package/dist/components/web-builder-puzzle-component/components/WebBuilderHeader/BankHeader.js +0 -84
- package/dist/components/web-builder-puzzle-component/components/WebBuilderHeader/FacebookHeader.js +0 -38
- package/dist/components/web-builder-puzzle-component/components/WebBuilderHeader/index.js +0 -40
- package/dist/components/web-builder-puzzle-component/components/WebBuilderPuzzleComponent.js +0 -302
- package/dist/components/web-builder-puzzle-component/components/WebBuilderTopBar/index.js +0 -30
- package/dist/components/web-builder-puzzle-component/index.js +0 -10
- package/dist/components/web-builder-puzzle-component/mocks/mockForStory.js +0 -27
- package/dist/components/writer-puzzle-component/components/ElectionComponent.js +0 -69
- package/dist/components/writer-puzzle-component/components/FeedbackComponent.js +0 -97
- package/dist/components/writer-puzzle-component/components/FeedbackElement.js +0 -32
- package/dist/components/writer-puzzle-component/components/FinishedTextComponent.js +0 -25
- package/dist/components/writer-puzzle-component/components/FixedComponent.js +0 -120
- package/dist/components/writer-puzzle-component/components/SingleElection.js +0 -85
- package/dist/components/writer-puzzle-component/components/WriterPuzzleComponent.js +0 -450
- package/dist/components/writer-puzzle-component/index.js +0 -10
- package/dist/components/writer-puzzle-component/mocks/mockForStory.js +0 -1194
- package/dist/components/zoom-test/components/ZoomTest.js +0 -73
- package/dist/components/zoom-test/index.js +0 -10
- package/dist/components/zoom-test/mocks/mockForStory.js +0 -21
- package/dist/helpers/LangIsRtl.js +0 -16
- package/dist/helpers/LightSet.js +0 -35
- package/dist/helpers/LodController.js +0 -28
- package/dist/helpers/deviceDetection.js +0 -21
- package/dist/helpers/drawLOD.js +0 -310
- package/dist/helpers/index.js +0 -268
- package/dist/helpers/lodStats.js +0 -55
- package/dist/helpers/mocker.js +0 -116
- package/dist/helpers/useEkho.js +0 -172
- package/dist/helpers/useGLB.js +0 -57
- package/dist/helpers/useStateMachine.js +0 -277
- package/dist/helpers/useTimeout.js +0 -32
- package/dist/helpers/useWindowSize.js +0 -44
- package/dist/index.js +0 -16
- package/dist/test/testSceneWrapper.js +0 -31
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
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
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _arcadeThreeCore = require("@gamelearn/arcade-three-core");
|
|
10
|
-
var _decisionComponent = _interopRequireDefault(require("../../decision-component"));
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
|
-
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; }
|
|
14
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15
|
-
var cleanStyle = {
|
|
16
|
-
width: '100vw',
|
|
17
|
-
height: '100vh',
|
|
18
|
-
position: 'static'
|
|
19
|
-
};
|
|
20
|
-
var DialogDecision = function DialogDecision(props) {
|
|
21
|
-
var container = document.querySelector('.screens--container');
|
|
22
|
-
(0, _react.useEffect)(function () {
|
|
23
|
-
if (props.onMount) props.onMount();
|
|
24
|
-
return function () {
|
|
25
|
-
if (props.onUnMount) props.onUnMount();
|
|
26
|
-
};
|
|
27
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
28
|
-
}, []);
|
|
29
|
-
return /*#__PURE__*/_react.default.createElement(_arcadeThreeCore.HtmlPro, {
|
|
30
|
-
zIndexRange: [6, 6],
|
|
31
|
-
style: cleanStyle,
|
|
32
|
-
portal: container ? {
|
|
33
|
-
current: container
|
|
34
|
-
} : undefined,
|
|
35
|
-
onOcclude: function onOcclude() {},
|
|
36
|
-
calculatePosition: function calculatePosition() {
|
|
37
|
-
return [0, 0];
|
|
38
|
-
}
|
|
39
|
-
}, /*#__PURE__*/_react.default.createElement(_decisionComponent.default, _extends({
|
|
40
|
-
inScene: true
|
|
41
|
-
}, props)));
|
|
42
|
-
};
|
|
43
|
-
var _default = DialogDecision;
|
|
44
|
-
exports.default = _default;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
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
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
10
|
-
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; }
|
|
11
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
12
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
13
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
14
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
15
|
-
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
16
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
17
|
-
var SpeechBubbleComponent = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
18
|
-
var message = _ref.message,
|
|
19
|
-
translate = _ref.translate;
|
|
20
|
-
var _useState = (0, _react.useState)(false),
|
|
21
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
22
|
-
mounted = _useState2[0],
|
|
23
|
-
setMounted = _useState2[1];
|
|
24
|
-
var getAvatar = function getAvatar() {
|
|
25
|
-
var avatarUrl = message.avatar;
|
|
26
|
-
var idx = avatarUrl.lastIndexOf('/');
|
|
27
|
-
if (avatarUrl.includes('/object/')) {
|
|
28
|
-
return avatarUrl.slice(0, idx).concat('/mini-thumbnail.png');
|
|
29
|
-
}
|
|
30
|
-
if (avatarUrl.includes('/character/')) {
|
|
31
|
-
return avatarUrl.slice(0, idx).concat('/mini-face.png');
|
|
32
|
-
}
|
|
33
|
-
return avatarUrl;
|
|
34
|
-
};
|
|
35
|
-
(0, _react.useLayoutEffect)(function () {
|
|
36
|
-
if (!mounted) {
|
|
37
|
-
setMounted(true);
|
|
38
|
-
}
|
|
39
|
-
}, [mounted]);
|
|
40
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
41
|
-
dir: "auto",
|
|
42
|
-
ref: ref,
|
|
43
|
-
className: "\n speech-bubble\n ".concat(message.thinkful ? 'speech-bubble--italic' : '', "\n ")
|
|
44
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
45
|
-
className: "speech-bubble__header ".concat(message.thinkful ? 'speech-bubble__header--thinking' : '')
|
|
46
|
-
}, message.thinkful ? /*#__PURE__*/_react.default.createElement("div", {
|
|
47
|
-
className: "thinking-icon-wrap"
|
|
48
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
49
|
-
className: "icon-bubble-thinkful-black"
|
|
50
|
-
})) : null, message.avatar ? /*#__PURE__*/_react.default.createElement("div", {
|
|
51
|
-
className: "speech-bubble__avatar"
|
|
52
|
-
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
53
|
-
src: getAvatar(),
|
|
54
|
-
alt: message.name
|
|
55
|
-
})) : null, message.voiceOver ? /*#__PURE__*/_react.default.createElement("div", {
|
|
56
|
-
className: "speech-bubble__avatar"
|
|
57
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
58
|
-
className: "icon-narrator"
|
|
59
|
-
})) : null, /*#__PURE__*/_react.default.createElement("div", {
|
|
60
|
-
className: "speech-bubble__name"
|
|
61
|
-
}, /*#__PURE__*/_react.default.createElement("span", null, message.name), message.thinkful ? /*#__PURE__*/_react.default.createElement("span", null, "[ ", translate('emotion.thinking'), " ]") : null)), message.text ? /*#__PURE__*/_react.default.createElement("div", {
|
|
62
|
-
className: "speech-bubble__text"
|
|
63
|
-
}, message.text) : null);
|
|
64
|
-
});
|
|
65
|
-
var _default = SpeechBubbleComponent;
|
|
66
|
-
exports.default = _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _DialogComponent = _interopRequireDefault(require("./components/DialogComponent"));
|
|
8
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
var _default = _DialogComponent.default;
|
|
10
|
-
exports.default = _default;
|
|
@@ -1,550 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.mockScene = exports.mockProps = exports.branchedMockProps = void 0;
|
|
7
|
-
var _bg001_street = _interopRequireDefault(require("test/mocks/bg001_street.json"));
|
|
8
|
-
var _characters = require("test/mocks/characters.json");
|
|
9
|
-
var _mocker = require("helpers/mocker");
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
/* eslint-disable max-len */
|
|
12
|
-
|
|
13
|
-
var animations = {
|
|
14
|
-
neutral: {
|
|
15
|
-
url: 'https://min.int.gamelearn.io/cooked.gl-lms-storage/clients/5981fca94d82290bcbe957fe/animation/5f06e116f9efdd00112fcc6f/male_missunderstand_1.glb'
|
|
16
|
-
},
|
|
17
|
-
angry: {
|
|
18
|
-
url: 'https://min.int.gamelearn.io/cooked.gl-lms-storage/clients/5981fca94d82290bcbe957fe/animation/5e4a5b4a8487c3000fb7a3bd/standmale_1_angry.glb'
|
|
19
|
-
},
|
|
20
|
-
sad: {
|
|
21
|
-
url: 'https://min.int.gamelearn.io/cooked.gl-lms-storage/clients/5981fca94d82290bcbe957fe/animation/5f06e116f9efdd00112fcc6f/male_missunderstand_1.glb'
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
var mockProps = {
|
|
25
|
-
emitEvent: _mocker.emitEvent,
|
|
26
|
-
soundActions: _mocker.soundActions,
|
|
27
|
-
keyboardControl: _mocker.keyboardControl,
|
|
28
|
-
autoPlay: false,
|
|
29
|
-
zoomInActor: true,
|
|
30
|
-
lines: [{
|
|
31
|
-
flex: true,
|
|
32
|
-
slots: [{
|
|
33
|
-
emotion: '',
|
|
34
|
-
text: '',
|
|
35
|
-
uid: null,
|
|
36
|
-
talking: false,
|
|
37
|
-
alias: 'paco',
|
|
38
|
-
text_labelId: 'text_0_0_nlrZh8Np',
|
|
39
|
-
alias_labelId: 'alias_0_0_nlrZh2Iq'
|
|
40
|
-
}, {
|
|
41
|
-
emotion: 'neutral',
|
|
42
|
-
text: '',
|
|
43
|
-
uid: null,
|
|
44
|
-
talking: false,
|
|
45
|
-
text_labelId: 'text_0_1_nlrZiNfB',
|
|
46
|
-
alias_labelId: 'alias_0_1_nlrZijhw'
|
|
47
|
-
}, {
|
|
48
|
-
emotion: 'neutral',
|
|
49
|
-
text: '',
|
|
50
|
-
uid: null,
|
|
51
|
-
talking: false,
|
|
52
|
-
text_labelId: 'text_0_2_nlrZiBF3',
|
|
53
|
-
alias_labelId: 'alias_0_2_nlrZiR6G'
|
|
54
|
-
}, {
|
|
55
|
-
emotion: 'neutral',
|
|
56
|
-
text: '',
|
|
57
|
-
uid: null,
|
|
58
|
-
talking: false,
|
|
59
|
-
text_labelId: 'text_0_3_nlrZinJN',
|
|
60
|
-
alias_labelId: 'alias_0_3_nlrZjLWB'
|
|
61
|
-
}, {
|
|
62
|
-
emotion: 'neutral',
|
|
63
|
-
text: 'En un lugar de la Mancha, de cuyo nombre no quiero acordarme, no ha mucho tiempo que vivía un hidalgo de los de lanza en astillero, adarga antigua, rocín flaco. En un lugar de la Mancha, de cuyo nombre no quiero acordarme, no ha mucho tiempo que vivía un hidalgo de los de lanza en astillero, adarga an',
|
|
64
|
-
uid: 'snHJhg',
|
|
65
|
-
talking: true,
|
|
66
|
-
character: {
|
|
67
|
-
resource: {
|
|
68
|
-
animations: animations
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
alias: 'Manolo',
|
|
72
|
-
text_labelId: 'text_0_4_nlrZjUV9',
|
|
73
|
-
alias_labelId: 'alias_0_4_nlrZj81d'
|
|
74
|
-
}],
|
|
75
|
-
audioId: '5f1078861d84860011e179d0',
|
|
76
|
-
hasAlias: true,
|
|
77
|
-
text_labelId: 'text_0_nlrZj4Nr',
|
|
78
|
-
audioId_labelId: 'audioId_0_nlrZkkdo'
|
|
79
|
-
}, {
|
|
80
|
-
flex: true,
|
|
81
|
-
slots: [{
|
|
82
|
-
emotion: '',
|
|
83
|
-
text: '',
|
|
84
|
-
uid: null,
|
|
85
|
-
talking: false,
|
|
86
|
-
alias: 'paco',
|
|
87
|
-
text_labelId: 'text_0_0_nlrZh8Np',
|
|
88
|
-
alias_labelId: 'alias_0_0_nlrZh2Iq'
|
|
89
|
-
}, {
|
|
90
|
-
emotion: 'neutral',
|
|
91
|
-
text: '',
|
|
92
|
-
uid: null,
|
|
93
|
-
talking: false,
|
|
94
|
-
text_labelId: 'text_0_1_nlrZiNfB',
|
|
95
|
-
alias_labelId: 'alias_0_1_nlrZijhw'
|
|
96
|
-
}, {
|
|
97
|
-
emotion: 'neutral',
|
|
98
|
-
text: '',
|
|
99
|
-
uid: null,
|
|
100
|
-
talking: false,
|
|
101
|
-
text_labelId: 'text_0_2_nlrZiBF3',
|
|
102
|
-
alias_labelId: 'alias_0_2_nlrZiR6G'
|
|
103
|
-
}, {
|
|
104
|
-
emotion: 'neutral',
|
|
105
|
-
text: '',
|
|
106
|
-
uid: null,
|
|
107
|
-
talking: false,
|
|
108
|
-
text_labelId: 'text_0_3_nlrZinJN',
|
|
109
|
-
alias_labelId: 'alias_0_3_nlrZjLWB'
|
|
110
|
-
}, {
|
|
111
|
-
emotion: 'neutral',
|
|
112
|
-
text: 'Hola!',
|
|
113
|
-
character: {
|
|
114
|
-
resource: {
|
|
115
|
-
animations: animations
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
uid: 'jLKRKJ',
|
|
119
|
-
talking: true,
|
|
120
|
-
alias: 'Manolo',
|
|
121
|
-
text_labelId: 'text_0_4_nlrZjUV9',
|
|
122
|
-
alias_labelId: 'alias_0_4_nlrZj81d'
|
|
123
|
-
}],
|
|
124
|
-
audioId: '5f1078861d84860011e179d0',
|
|
125
|
-
hasAlias: true,
|
|
126
|
-
text_labelId: 'text_0_nlrZj4Nr',
|
|
127
|
-
audioId_labelId: 'audioId_0_nlrZkkdo'
|
|
128
|
-
}, {
|
|
129
|
-
flex: true,
|
|
130
|
-
slots: [{
|
|
131
|
-
emotion: '',
|
|
132
|
-
text: '',
|
|
133
|
-
uid: null,
|
|
134
|
-
talking: false,
|
|
135
|
-
alias: 'paco',
|
|
136
|
-
text_labelId: 'text_0_0_nlrZh8Np',
|
|
137
|
-
alias_labelId: 'alias_0_0_nlrZh2Iq'
|
|
138
|
-
}, {
|
|
139
|
-
emotion: 'neutral',
|
|
140
|
-
text: '',
|
|
141
|
-
uid: null,
|
|
142
|
-
talking: false,
|
|
143
|
-
text_labelId: 'text_0_1_nlrZiNfB',
|
|
144
|
-
alias_labelId: 'alias_0_1_nlrZijhw'
|
|
145
|
-
}, {
|
|
146
|
-
emotion: 'neutral',
|
|
147
|
-
text: '',
|
|
148
|
-
uid: null,
|
|
149
|
-
talking: false,
|
|
150
|
-
text_labelId: 'text_0_2_nlrZiBF3',
|
|
151
|
-
alias_labelId: 'alias_0_2_nlrZiR6G'
|
|
152
|
-
}, {
|
|
153
|
-
emotion: 'neutral',
|
|
154
|
-
text: '',
|
|
155
|
-
uid: null,
|
|
156
|
-
talking: false,
|
|
157
|
-
text_labelId: 'text_0_3_nlrZinJN',
|
|
158
|
-
alias_labelId: 'alias_0_3_nlrZjLWB'
|
|
159
|
-
}, {
|
|
160
|
-
emotion: 'neutral',
|
|
161
|
-
text: 'Hola!',
|
|
162
|
-
uid: 'snHJhg',
|
|
163
|
-
character: {
|
|
164
|
-
resource: {
|
|
165
|
-
animations: animations
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
talking: true,
|
|
169
|
-
alias: 'Manolo',
|
|
170
|
-
text_labelId: 'text_0_4_nlrZjUV9',
|
|
171
|
-
alias_labelId: 'alias_0_4_nlrZj81d'
|
|
172
|
-
}],
|
|
173
|
-
audioId: '5f1078861d84860011e179d0',
|
|
174
|
-
hasAlias: true,
|
|
175
|
-
text_labelId: 'text_0_nlrZj4Nr',
|
|
176
|
-
audioId_labelId: 'audioId_0_nlrZkkdo'
|
|
177
|
-
}, {
|
|
178
|
-
payload: {
|
|
179
|
-
options: [{
|
|
180
|
-
id: 0,
|
|
181
|
-
right: false,
|
|
182
|
-
feedback: 'dfgsdfgsdfgsdfghdfgh',
|
|
183
|
-
text: 'Si',
|
|
184
|
-
rewards: [],
|
|
185
|
-
audioId: '',
|
|
186
|
-
text_labelId: 'text_3_0_u4s8j5fa',
|
|
187
|
-
feedback_labelId: 'feedback_3_0_u4s8jVTv',
|
|
188
|
-
audioId_labelId: 'audioId_3_0_u4s8jyiK'
|
|
189
|
-
}, {
|
|
190
|
-
id: 1,
|
|
191
|
-
right: false,
|
|
192
|
-
feedback: 'fasdfasdfg',
|
|
193
|
-
text: 'No',
|
|
194
|
-
rewards: [],
|
|
195
|
-
audioId: '',
|
|
196
|
-
text_labelId: 'text_3_1_u4s8jzBF',
|
|
197
|
-
feedback_labelId: 'feedback_3_1_u4s8jWNa',
|
|
198
|
-
audioId_labelId: 'audioId_3_1_u4s8jaJY'
|
|
199
|
-
}, {
|
|
200
|
-
id: 2,
|
|
201
|
-
right: true,
|
|
202
|
-
feedback: 'asdfasd',
|
|
203
|
-
text: 'Patata',
|
|
204
|
-
rewards: [],
|
|
205
|
-
audioId: '',
|
|
206
|
-
text_labelId: 'text_3_2_u4s8jA2Z',
|
|
207
|
-
feedback_labelId: 'feedback_3_2_u4s8jBIJ',
|
|
208
|
-
audioId_labelId: 'audioId_3_2_u4s8j23g'
|
|
209
|
-
}],
|
|
210
|
-
required: true,
|
|
211
|
-
question: 'Funciona la decisión',
|
|
212
|
-
question_labelId: 'question_3_u4s8i10a'
|
|
213
|
-
},
|
|
214
|
-
decision: true
|
|
215
|
-
}, {
|
|
216
|
-
flex: true,
|
|
217
|
-
slots: [{
|
|
218
|
-
emotion: 'angry',
|
|
219
|
-
text: '',
|
|
220
|
-
uid: null,
|
|
221
|
-
talking: false,
|
|
222
|
-
alias: 'paco',
|
|
223
|
-
text_labelId: 'text_0_0_nlrZh8Np',
|
|
224
|
-
alias_labelId: 'alias_0_0_nlrZh2Iq'
|
|
225
|
-
}, {
|
|
226
|
-
emotion: 'neutral',
|
|
227
|
-
text: '',
|
|
228
|
-
uid: null,
|
|
229
|
-
talking: false,
|
|
230
|
-
text_labelId: 'text_0_1_nlrZiNfB',
|
|
231
|
-
alias_labelId: 'alias_0_1_nlrZijhw'
|
|
232
|
-
}, {
|
|
233
|
-
emotion: 'neutral',
|
|
234
|
-
text: '',
|
|
235
|
-
uid: null,
|
|
236
|
-
talking: false,
|
|
237
|
-
text_labelId: 'text_0_2_nlrZiBF3',
|
|
238
|
-
alias_labelId: 'alias_0_2_nlrZiR6G'
|
|
239
|
-
}, {
|
|
240
|
-
emotion: 'neutral',
|
|
241
|
-
text: '',
|
|
242
|
-
uid: null,
|
|
243
|
-
talking: false,
|
|
244
|
-
text_labelId: 'text_0_3_nlrZinJN',
|
|
245
|
-
alias_labelId: 'alias_0_3_nlrZjLWB'
|
|
246
|
-
}, {
|
|
247
|
-
emotion: 'neutral',
|
|
248
|
-
text: 'Hola!',
|
|
249
|
-
uid: 'snHJhg',
|
|
250
|
-
talking: true,
|
|
251
|
-
character: {
|
|
252
|
-
resource: {
|
|
253
|
-
animations: animations
|
|
254
|
-
}
|
|
255
|
-
},
|
|
256
|
-
alias: 'Manolo',
|
|
257
|
-
text_labelId: 'text_0_4_nlrZjUV9',
|
|
258
|
-
alias_labelId: 'alias_0_4_nlrZj81d'
|
|
259
|
-
}],
|
|
260
|
-
audioId: '5f1078861d84860011e179d0',
|
|
261
|
-
hasAlias: true,
|
|
262
|
-
text_labelId: 'text_0_nlrZj4Nr',
|
|
263
|
-
audioId_labelId: 'audioId_0_nlrZkkdo'
|
|
264
|
-
}],
|
|
265
|
-
background: {
|
|
266
|
-
imgId: '605369a5901f3e00123b81ca',
|
|
267
|
-
imgName: 'b27bb40dcb1189d14012131a35b48a36.jpeg',
|
|
268
|
-
img: {
|
|
269
|
-
url: 'https://min.int.gamelearn.io/cooked.gl-lms-storage/clients/58dccfba26561500117caf53/image/605369a5901f3e00123b81ca/b27bb40dcb1189d14012131a35b48a36.jpeg'
|
|
270
|
-
}
|
|
271
|
-
},
|
|
272
|
-
characters: [],
|
|
273
|
-
actors: []
|
|
274
|
-
};
|
|
275
|
-
exports.mockProps = mockProps;
|
|
276
|
-
var branchedMockProps = {
|
|
277
|
-
emitEvent: _mocker.emitEvent,
|
|
278
|
-
soundActions: _mocker.soundActions,
|
|
279
|
-
keyboardControl: _mocker.keyboardControl,
|
|
280
|
-
autoPlay: false,
|
|
281
|
-
lines: [{
|
|
282
|
-
id: 'line1',
|
|
283
|
-
flex: true,
|
|
284
|
-
slots: [{
|
|
285
|
-
emotion: '',
|
|
286
|
-
text: '',
|
|
287
|
-
uid: null,
|
|
288
|
-
talking: false,
|
|
289
|
-
alias: 'paco',
|
|
290
|
-
text_labelId: 'text_0_0_nlrZh8Np',
|
|
291
|
-
alias_labelId: 'alias_0_0_nlrZh2Iq'
|
|
292
|
-
}, {
|
|
293
|
-
emotion: 'neutral',
|
|
294
|
-
text: '',
|
|
295
|
-
uid: null,
|
|
296
|
-
talking: false,
|
|
297
|
-
text_labelId: 'text_0_1_nlrZiNfB',
|
|
298
|
-
alias_labelId: 'alias_0_1_nlrZijhw'
|
|
299
|
-
}, {
|
|
300
|
-
emotion: 'neutral',
|
|
301
|
-
text: '',
|
|
302
|
-
uid: null,
|
|
303
|
-
talking: false,
|
|
304
|
-
text_labelId: 'text_0_2_nlrZiBF3',
|
|
305
|
-
alias_labelId: 'alias_0_2_nlrZiR6G'
|
|
306
|
-
}, {
|
|
307
|
-
emotion: 'neutral',
|
|
308
|
-
text: '',
|
|
309
|
-
uid: null,
|
|
310
|
-
talking: false,
|
|
311
|
-
text_labelId: 'text_0_3_nlrZinJN',
|
|
312
|
-
alias_labelId: 'alias_0_3_nlrZjLWB'
|
|
313
|
-
}, {
|
|
314
|
-
emotion: 'neutral',
|
|
315
|
-
text: 'En un lugar de la Mancha, de cuyo nombre no quiero acordarme, no ha mucho tiempo que vivía un hidalgo de los de lanza en astillero, adarga antigua, rocín flaco. En un lugar de la Mancha, de cuyo nombre no quiero acordarme, no ha mucho tiempo que vivía un hidalgo de los de lanza en astillero, adarga an',
|
|
316
|
-
uid: 'snHJhg',
|
|
317
|
-
talking: true,
|
|
318
|
-
character: {
|
|
319
|
-
resource: {
|
|
320
|
-
animations: animations
|
|
321
|
-
}
|
|
322
|
-
},
|
|
323
|
-
alias: 'Manolo',
|
|
324
|
-
text_labelId: 'text_0_4_nlrZjUV9',
|
|
325
|
-
alias_labelId: 'alias_0_4_nlrZj81d'
|
|
326
|
-
}],
|
|
327
|
-
audioId: '5f1078861d84860011e179d0',
|
|
328
|
-
hasAlias: true,
|
|
329
|
-
text_labelId: 'text_0_nlrZj4Nr',
|
|
330
|
-
audioId_labelId: 'audioId_0_nlrZkkdo'
|
|
331
|
-
}, {
|
|
332
|
-
id: 'line2',
|
|
333
|
-
flex: true,
|
|
334
|
-
slots: [{
|
|
335
|
-
emotion: '',
|
|
336
|
-
text: '',
|
|
337
|
-
uid: null,
|
|
338
|
-
talking: false,
|
|
339
|
-
alias: 'paco',
|
|
340
|
-
text_labelId: 'text_0_0_nlrZh8Np',
|
|
341
|
-
alias_labelId: 'alias_0_0_nlrZh2Iq'
|
|
342
|
-
}, {
|
|
343
|
-
emotion: 'neutral',
|
|
344
|
-
text: '',
|
|
345
|
-
uid: null,
|
|
346
|
-
talking: false,
|
|
347
|
-
text_labelId: 'text_0_1_nlrZiNfB',
|
|
348
|
-
alias_labelId: 'alias_0_1_nlrZijhw'
|
|
349
|
-
}, {
|
|
350
|
-
emotion: 'neutral',
|
|
351
|
-
text: '',
|
|
352
|
-
uid: null,
|
|
353
|
-
talking: false,
|
|
354
|
-
text_labelId: 'text_0_2_nlrZiBF3',
|
|
355
|
-
alias_labelId: 'alias_0_2_nlrZiR6G'
|
|
356
|
-
}, {
|
|
357
|
-
emotion: 'neutral',
|
|
358
|
-
text: '',
|
|
359
|
-
uid: null,
|
|
360
|
-
talking: false,
|
|
361
|
-
text_labelId: 'text_0_3_nlrZinJN',
|
|
362
|
-
alias_labelId: 'alias_0_3_nlrZjLWB'
|
|
363
|
-
}, {
|
|
364
|
-
emotion: 'neutral',
|
|
365
|
-
text: 'Hola!',
|
|
366
|
-
character: {
|
|
367
|
-
resource: {
|
|
368
|
-
animations: animations
|
|
369
|
-
}
|
|
370
|
-
},
|
|
371
|
-
uid: 'jLKRKJ',
|
|
372
|
-
talking: true,
|
|
373
|
-
alias: 'Manolo',
|
|
374
|
-
text_labelId: 'text_0_4_nlrZjUV9',
|
|
375
|
-
alias_labelId: 'alias_0_4_nlrZj81d'
|
|
376
|
-
}],
|
|
377
|
-
audioId: '5f1078861d84860011e179d0',
|
|
378
|
-
hasAlias: true,
|
|
379
|
-
text_labelId: 'text_0_nlrZj4Nr',
|
|
380
|
-
audioId_labelId: 'audioId_0_nlrZkkdo'
|
|
381
|
-
}, {
|
|
382
|
-
id: 'line3',
|
|
383
|
-
flex: true,
|
|
384
|
-
slots: [{
|
|
385
|
-
emotion: '',
|
|
386
|
-
text: '',
|
|
387
|
-
uid: null,
|
|
388
|
-
talking: false,
|
|
389
|
-
alias: 'paco',
|
|
390
|
-
text_labelId: 'text_0_0_nlrZh8Np',
|
|
391
|
-
alias_labelId: 'alias_0_0_nlrZh2Iq'
|
|
392
|
-
}, {
|
|
393
|
-
emotion: 'neutral',
|
|
394
|
-
text: '',
|
|
395
|
-
uid: null,
|
|
396
|
-
talking: false,
|
|
397
|
-
text_labelId: 'text_0_1_nlrZiNfB',
|
|
398
|
-
alias_labelId: 'alias_0_1_nlrZijhw'
|
|
399
|
-
}, {
|
|
400
|
-
emotion: 'neutral',
|
|
401
|
-
text: '',
|
|
402
|
-
uid: null,
|
|
403
|
-
talking: false,
|
|
404
|
-
text_labelId: 'text_0_2_nlrZiBF3',
|
|
405
|
-
alias_labelId: 'alias_0_2_nlrZiR6G'
|
|
406
|
-
}, {
|
|
407
|
-
emotion: 'neutral',
|
|
408
|
-
text: '',
|
|
409
|
-
uid: null,
|
|
410
|
-
talking: false,
|
|
411
|
-
text_labelId: 'text_0_3_nlrZinJN',
|
|
412
|
-
alias_labelId: 'alias_0_3_nlrZjLWB'
|
|
413
|
-
}, {
|
|
414
|
-
emotion: 'neutral',
|
|
415
|
-
text: 'Hola!',
|
|
416
|
-
uid: 'snHJhg',
|
|
417
|
-
character: {
|
|
418
|
-
resource: {
|
|
419
|
-
animations: animations
|
|
420
|
-
}
|
|
421
|
-
},
|
|
422
|
-
talking: true,
|
|
423
|
-
alias: 'Manolo',
|
|
424
|
-
text_labelId: 'text_0_4_nlrZjUV9',
|
|
425
|
-
alias_labelId: 'alias_0_4_nlrZj81d'
|
|
426
|
-
}],
|
|
427
|
-
audioId: '5f1078861d84860011e179d0',
|
|
428
|
-
hasAlias: true,
|
|
429
|
-
text_labelId: 'text_0_nlrZj4Nr',
|
|
430
|
-
audioId_labelId: 'audioId_0_nlrZkkdo'
|
|
431
|
-
}, {
|
|
432
|
-
id: 'line4',
|
|
433
|
-
payload: {
|
|
434
|
-
options: [{
|
|
435
|
-
id: 0,
|
|
436
|
-
right: false,
|
|
437
|
-
feedback: 'dfgsdfgsdfgsdfghdfgh',
|
|
438
|
-
text: 'Si',
|
|
439
|
-
rewards: [],
|
|
440
|
-
audioId: '',
|
|
441
|
-
text_labelId: 'text_3_0_u4s8j5fa',
|
|
442
|
-
feedback_labelId: 'feedback_3_0_u4s8jVTv',
|
|
443
|
-
audioId_labelId: 'audioId_3_0_u4s8jyiK'
|
|
444
|
-
}, {
|
|
445
|
-
id: 1,
|
|
446
|
-
right: false,
|
|
447
|
-
feedback: 'fasdfasdfg',
|
|
448
|
-
text: 'No',
|
|
449
|
-
rewards: [],
|
|
450
|
-
audioId: '',
|
|
451
|
-
text_labelId: 'text_3_1_u4s8jzBF',
|
|
452
|
-
feedback_labelId: 'feedback_3_1_u4s8jWNa',
|
|
453
|
-
audioId_labelId: 'audioId_3_1_u4s8jaJY'
|
|
454
|
-
}, {
|
|
455
|
-
id: 2,
|
|
456
|
-
right: true,
|
|
457
|
-
feedback: 'asdfasd',
|
|
458
|
-
text: 'Patata',
|
|
459
|
-
rewards: [],
|
|
460
|
-
audioId: '',
|
|
461
|
-
text_labelId: 'text_3_2_u4s8jA2Z',
|
|
462
|
-
feedback_labelId: 'feedback_3_2_u4s8jBIJ',
|
|
463
|
-
audioId_labelId: 'audioId_3_2_u4s8j23g'
|
|
464
|
-
}],
|
|
465
|
-
required: true,
|
|
466
|
-
question: 'Funciona la decisión',
|
|
467
|
-
question_labelId: 'question_3_u4s8i10a'
|
|
468
|
-
},
|
|
469
|
-
decision: true
|
|
470
|
-
}, {
|
|
471
|
-
id: 'line5',
|
|
472
|
-
flex: true,
|
|
473
|
-
slots: [{
|
|
474
|
-
emotion: 'angry',
|
|
475
|
-
text: '',
|
|
476
|
-
uid: null,
|
|
477
|
-
talking: false,
|
|
478
|
-
alias: 'paco',
|
|
479
|
-
text_labelId: 'text_0_0_nlrZh8Np',
|
|
480
|
-
alias_labelId: 'alias_0_0_nlrZh2Iq'
|
|
481
|
-
}, {
|
|
482
|
-
emotion: 'neutral',
|
|
483
|
-
text: '',
|
|
484
|
-
uid: null,
|
|
485
|
-
talking: false,
|
|
486
|
-
text_labelId: 'text_0_1_nlrZiNfB',
|
|
487
|
-
alias_labelId: 'alias_0_1_nlrZijhw'
|
|
488
|
-
}, {
|
|
489
|
-
emotion: 'neutral',
|
|
490
|
-
text: '',
|
|
491
|
-
uid: null,
|
|
492
|
-
talking: false,
|
|
493
|
-
text_labelId: 'text_0_2_nlrZiBF3',
|
|
494
|
-
alias_labelId: 'alias_0_2_nlrZiR6G'
|
|
495
|
-
}, {
|
|
496
|
-
emotion: 'neutral',
|
|
497
|
-
text: '',
|
|
498
|
-
uid: null,
|
|
499
|
-
talking: false,
|
|
500
|
-
text_labelId: 'text_0_3_nlrZinJN',
|
|
501
|
-
alias_labelId: 'alias_0_3_nlrZjLWB'
|
|
502
|
-
}, {
|
|
503
|
-
emotion: 'neutral',
|
|
504
|
-
text: 'Hola!',
|
|
505
|
-
uid: 'snHJhg',
|
|
506
|
-
talking: true,
|
|
507
|
-
character: {
|
|
508
|
-
resource: {
|
|
509
|
-
animations: animations
|
|
510
|
-
}
|
|
511
|
-
},
|
|
512
|
-
alias: 'Manolo',
|
|
513
|
-
text_labelId: 'text_0_4_nlrZjUV9',
|
|
514
|
-
alias_labelId: 'alias_0_4_nlrZj81d'
|
|
515
|
-
}],
|
|
516
|
-
audioId: '5f1078861d84860011e179d0',
|
|
517
|
-
hasAlias: true,
|
|
518
|
-
text_labelId: 'text_0_nlrZj4Nr',
|
|
519
|
-
audioId_labelId: 'audioId_0_nlrZkkdo'
|
|
520
|
-
}],
|
|
521
|
-
background: {
|
|
522
|
-
imgId: '605369a5901f3e00123b81ca',
|
|
523
|
-
imgName: 'b27bb40dcb1189d14012131a35b48a36.jpeg',
|
|
524
|
-
img: {
|
|
525
|
-
url: 'https://min.int.gamelearn.io/cooked.gl-lms-storage/clients/58dccfba26561500117caf53/image/605369a5901f3e00123b81ca/b27bb40dcb1189d14012131a35b48a36.jpeg'
|
|
526
|
-
}
|
|
527
|
-
},
|
|
528
|
-
characters: [],
|
|
529
|
-
actors: [],
|
|
530
|
-
edges: [{
|
|
531
|
-
id: '1',
|
|
532
|
-
fromId: 'line1',
|
|
533
|
-
toId: 'line3'
|
|
534
|
-
}, {
|
|
535
|
-
id: '2',
|
|
536
|
-
fromId: 'line3',
|
|
537
|
-
toId: 'line2'
|
|
538
|
-
}]
|
|
539
|
-
};
|
|
540
|
-
exports.branchedMockProps = branchedMockProps;
|
|
541
|
-
var mockScene = {
|
|
542
|
-
background: _bg001_street.default,
|
|
543
|
-
elements: _characters.elements,
|
|
544
|
-
scene: {
|
|
545
|
-
sceneChanged: true,
|
|
546
|
-
loadingText: 'Cargando... {percent}%',
|
|
547
|
-
hasControls: false
|
|
548
|
-
}
|
|
549
|
-
};
|
|
550
|
-
exports.mockScene = mockScene;
|