@gamelearn/arcade-components 2.13.2 → 2.13.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.
|
@@ -97,6 +97,7 @@ var ConversationalComponent = function ConversationalComponent(_ref) {
|
|
|
97
97
|
lodSettings: lodSettings,
|
|
98
98
|
currentMessage: currentMessage,
|
|
99
99
|
slots: parsedCharacters,
|
|
100
|
+
emitEvent: emitEvent,
|
|
100
101
|
flex: true
|
|
101
102
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
102
103
|
className: "conversation--body"
|
|
@@ -96,7 +96,6 @@ var KeyboardPuzzleComponent = function KeyboardPuzzleComponent(_ref) {
|
|
|
96
96
|
};
|
|
97
97
|
|
|
98
98
|
var puzzleId = "keyboard-puzzle_".concat(nodeId);
|
|
99
|
-
var imageURL = ((_image$img = image.img) === null || _image$img === void 0 ? void 0 : _image$img.url) || defaultImage;
|
|
100
99
|
|
|
101
100
|
var _soundActions = _slicedToArray(soundActions, 1),
|
|
102
101
|
playSound = _soundActions[0];
|
|
@@ -231,11 +230,15 @@ var KeyboardPuzzleComponent = function KeyboardPuzzleComponent(_ref) {
|
|
|
231
230
|
setInputPassword(inputPassword.substring(0, inputPassword.length - 1));
|
|
232
231
|
};
|
|
233
232
|
|
|
233
|
+
var imageURL = ((_image$img = image.img) === null || _image$img === void 0 ? void 0 : _image$img.url) || defaultImage;
|
|
234
|
+
var styleForBackground = {
|
|
235
|
+
backgroundSize: imageURL ? 'cover' : 'contain',
|
|
236
|
+
backgroundImage: "url(\"".concat(imageURL, "\")"),
|
|
237
|
+
backgroudPosition: 'center center'
|
|
238
|
+
};
|
|
234
239
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
235
240
|
className: "puzzle--keyboard",
|
|
236
|
-
style:
|
|
237
|
-
backgroundImage: "url(".concat(imageURL, ")")
|
|
238
|
-
}
|
|
241
|
+
style: styleForBackground
|
|
239
242
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
240
243
|
className: "puzzle--keyboard__header"
|
|
241
244
|
}, /*#__PURE__*/_react.default.createElement("div", {
|