@gamelearn/arcade-components 2.12.10 → 2.12.12

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.
@@ -93,7 +93,7 @@ var FeedbackComponent = function FeedbackComponent(_ref) {
93
93
  return 'icon-error-circle-black';
94
94
  };
95
95
 
96
- keyboardControl(null, text && functionOnClose && explain || functionOnClose && shortText ? functionOnClose : null, text && functionOnClose && explain || functionOnClose && shortText ? functionOnClose : null);
96
+ keyboardControl(null, text && functionOnClose && explain ? functionOnClose : null, text && functionOnClose && explain || functionOnClose && shortText ? functionOnClose : null);
97
97
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
98
98
  className: "feedback-layer ".concat(explain ? 'feedback-layer--withexplain' : '')
99
99
  }, /*#__PURE__*/_react.default.createElement("div", {
@@ -261,11 +261,12 @@ var ImageClickWrapperComponent = function ImageClickWrapperComponent(props) {
261
261
  });
262
262
 
263
263
  if (timer) {
264
+ clearIntervalForCountDown();
264
265
  pauseTheCounter();
265
266
  }
266
267
  }
267
268
  }
268
- }, [clickedZones, areas.length, specificFeedbacks, hasClickOnce, completed, info.solution.right, pauseTheCounter, timer]);
269
+ }, [clickedZones, areas.length, specificFeedbacks, hasClickOnce, completed, info.solution.right, pauseTheCounter, timer, clearIntervalForCountDown]);
269
270
  (0, _react.useEffect)(function () {
270
271
  setResolveAction(function (resolve) {
271
272
  if (timer) {
@@ -94,7 +94,8 @@ var Visor = function Visor(_ref) {
94
94
  translate: translate,
95
95
  soundActions: soundActions,
96
96
  emitNumberOfPages: function emitNumberOfPages() {},
97
- endPdf: function endPdf() {}
97
+ endPdf: function endPdf() {},
98
+ keyboardControl: keyboardControl
98
99
  })
99
100
  },
100
101
  application: {
@@ -104,6 +105,7 @@ var Visor = function Visor(_ref) {
104
105
  translate: translate,
105
106
  soundActions: soundActions,
106
107
  emitNumberOfPages: function emitNumberOfPages() {},
108
+ keyboardControl: keyboardControl,
107
109
  endPdf: function endPdf() {}
108
110
  })
109
111
  }
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.12.10",
5
+ "version": "2.12.12",
6
6
  "main": "dist/index.js",
7
7
  "files": [
8
8
  "dist",