@gamelearn/arcade-components 1.18.2-hotfix-1 → 1.18.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.
package/dist/components/image-click-wrapper-component/components/ImageClickWrapperComponent.js
CHANGED
|
@@ -185,7 +185,6 @@ var ImageClickWrapperComponent = function ImageClickWrapperComponent(props) {
|
|
|
185
185
|
clearListenerForActualDate();
|
|
186
186
|
}, [clearListenerForActualDate]);
|
|
187
187
|
var listenerForActualDate = (0, _react.useCallback)(function () {
|
|
188
|
-
clearInterval(intervalForActualDate.current);
|
|
189
188
|
intervalForActualDate.current = setInterval(function () {
|
|
190
189
|
actualDate.current = Date.now(); // show timerFeedback when finish the time
|
|
191
190
|
|
|
@@ -203,7 +202,7 @@ var ImageClickWrapperComponent = function ImageClickWrapperComponent(props) {
|
|
|
203
202
|
setTimeExpired(true);
|
|
204
203
|
clearListenerForActualDate();
|
|
205
204
|
}
|
|
206
|
-
},
|
|
205
|
+
}, 0);
|
|
207
206
|
}, [clearListenerForActualDate, info === null || info === void 0 ? void 0 : (_info$timerFeedback3 = info.timerFeedback) === null || _info$timerFeedback3 === void 0 ? void 0 : _info$timerFeedback3.desc, info === null || info === void 0 ? void 0 : (_info$timerFeedback4 = info.timerFeedback) === null || _info$timerFeedback4 === void 0 ? void 0 : _info$timerFeedback4.rewards]);
|
|
208
207
|
(0, _react.useEffect)(function () {
|
|
209
208
|
if ((areas.length === clickedZones.length || hasClickOnce && clickedZones.length > 0) && !completed) {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@gamelearn/arcade-components",
|
|
3
3
|
"author": "Gamelearn",
|
|
4
4
|
"license": "unlicense",
|
|
5
|
-
"version": "1.18.
|
|
5
|
+
"version": "1.18.4",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"@storybook/preset-create-react-app": "3.1.5",
|
|
78
78
|
"@storybook/react": "6.1.11",
|
|
79
79
|
"@storybook/theming": "^6.3.8",
|
|
80
|
-
"babel-loader": "8.
|
|
80
|
+
"babel-loader": "8.1.0",
|
|
81
81
|
"cross-env": "7.0.3",
|
|
82
82
|
"eslint-config-airbnb": "^18.2.1",
|
|
83
83
|
"eslint-config-prettier": "^8.3.0",
|