@gamelearn/arcade-components 2.23.3 → 2.23.5

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.
@@ -10,6 +10,8 @@ var _react = _interopRequireDefault(require("react"));
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
 
12
12
  var Message = function Message(_ref) {
13
+ var _current$emotion, _current$emotion2;
14
+
13
15
  var current = _ref.current,
14
16
  translate = _ref.translate;
15
17
  var currentText = current.text;
@@ -29,8 +31,8 @@ var Message = function Message(_ref) {
29
31
  };
30
32
 
31
33
  return /*#__PURE__*/_react.default.createElement("div", {
32
- className: "conversation--message ".concat(current.voiceOver || current.emotion.includes('think') ? 'voice--over' : '')
33
- }, current.voiceOver ? /*#__PURE__*/_react.default.createElement(VoiceOver, null) : null, current.emotion.includes('think') ? /*#__PURE__*/_react.default.createElement(ThinkFul, null) : null, /*#__PURE__*/_react.default.createElement("span", {
34
+ className: "conversation--message ".concat(current.voiceOver || current !== null && current !== void 0 && (_current$emotion = current.emotion) !== null && _current$emotion !== void 0 && _current$emotion.includes('think') ? 'voice--over' : '')
35
+ }, current.voiceOver ? /*#__PURE__*/_react.default.createElement(VoiceOver, null) : null, current !== null && current !== void 0 && (_current$emotion2 = current.emotion) !== null && _current$emotion2 !== void 0 && _current$emotion2.includes('think') ? /*#__PURE__*/_react.default.createElement(ThinkFul, null) : null, /*#__PURE__*/_react.default.createElement("span", {
34
36
  className: "conversation--main__text"
35
37
  }, currentText));
36
38
  };
@@ -801,7 +801,7 @@ var DialogComponent = function DialogComponent(_ref) {
801
801
  };
802
802
  }, [line, stopEkho]);
803
803
  (0, _react.useEffect)(function () {
804
- if (((currentLineData === null || currentLineData === void 0 ? void 0 : currentLineData.audioType) === 'none' || audioFailed) && currentMessage !== null && currentMessage !== void 0 && currentMessage.show && !talkingCharacter.emotion.includes('think')) {
804
+ if (((currentLineData === null || currentLineData === void 0 ? void 0 : currentLineData.audioType) === 'none' || audioFailed) && currentMessage !== null && currentMessage !== void 0 && currentMessage.show && !(talkingCharacter !== null && talkingCharacter !== void 0 && talkingCharacter.emotion.includes('think'))) {
805
805
  var _currentMessage$text;
806
806
 
807
807
  startTalking(true);
@@ -17,7 +17,7 @@ var skipButton = function skipButton(_ref) {
17
17
  mandatoryHasBeenViewed = _ref.mandatoryHasBeenViewed,
18
18
  translate = _ref.translate;
19
19
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, mandatory && viewed || !mandatory || finished || mandatoryHasBeenViewed ? /*#__PURE__*/_react.default.createElement("div", {
20
- className: "position--absolute right top z-index1"
20
+ className: "position--absolute right top z-index2"
21
21
  }, /*#__PURE__*/_react.default.createElement("button", {
22
22
  className: "gat--btn__round gat--btn__close",
23
23
  type: "button",
@@ -295,7 +295,7 @@ var VideoVisor = function VideoVisor(_ref) {
295
295
  }, /*#__PURE__*/_react.default.createElement("div", {
296
296
  className: "popup-message"
297
297
  }, /*#__PURE__*/_react.default.createElement("p", null, Math.floor(loadedPercentage))))) : null) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
298
- className: "position--absolute right top z-index1"
298
+ className: "position--absolute right top z-index2"
299
299
  }, /*#__PURE__*/_react.default.createElement("button", {
300
300
  type: "button",
301
301
  "aria-label": translate('storylines.misc.closePiece'),
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@gamelearn/arcade-components",
3
3
  "author": "Gamelearn",
4
4
  "license": "unlicense",
5
- "version": "2.23.3",
5
+ "version": "2.23.5",
6
6
  "main": "dist/index.js",
7
7
  "files": [
8
8
  "dist",