@gamelearn/arcade-components 1.27.4-hanged-snapshot-2 → 1.27.4
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.
|
@@ -52,8 +52,7 @@ var AnswerPanel = function AnswerPanel(_ref) {
|
|
|
52
52
|
var answer = _ref.answer,
|
|
53
53
|
flickerPosition = _ref.flickerPosition,
|
|
54
54
|
_ref$show = _ref.show,
|
|
55
|
-
show = _ref$show === void 0 ? false : _ref$show
|
|
56
|
-
showCorrectSolution = _ref.showCorrectSolution;
|
|
55
|
+
show = _ref$show === void 0 ? false : _ref$show;
|
|
57
56
|
var words = [];
|
|
58
57
|
var wordIndex = 0;
|
|
59
58
|
answer.forEach(function (a) {
|
|
@@ -67,9 +66,7 @@ var AnswerPanel = function AnswerPanel(_ref) {
|
|
|
67
66
|
wordIndex += 1;
|
|
68
67
|
}
|
|
69
68
|
|
|
70
|
-
|
|
71
|
-
a.positionInitial = a.index;
|
|
72
|
-
}
|
|
69
|
+
a.positionInitial = a.index;
|
|
73
70
|
});
|
|
74
71
|
return words.map(function (word, index) {
|
|
75
72
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -506,10 +503,10 @@ var HangedPuzzleComponent = function HangedPuzzleComponent(_ref4) {
|
|
|
506
503
|
dir: "auto",
|
|
507
504
|
className: "puzzle--hanged__solution ".concat(resolvedClass),
|
|
508
505
|
"data-testid": "".concat(resolvedClass)
|
|
509
|
-
}, showCorrectSolution ? /*#__PURE__*/_react.default.createElement(
|
|
506
|
+
}, showCorrectSolution ? /*#__PURE__*/_react.default.createElement(AnswerPanel, {
|
|
510
507
|
answer: answer.split(''),
|
|
511
508
|
show: true
|
|
512
|
-
})
|
|
509
|
+
}) : /*#__PURE__*/_react.default.createElement(AnswerPanel, {
|
|
513
510
|
flickerPosition: flickerPosition,
|
|
514
511
|
answer: resolvedAnswer
|
|
515
512
|
})), /*#__PURE__*/_react.default.createElement("div", {
|