@open-tender/store 1.1.222 → 1.1.223

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.
@@ -7,7 +7,7 @@ var WAITING_TIME_IN_SECONDS = 15;
7
7
  var IdleModal = function (_a) {
8
8
  var close = _a.close, reset = _a.reset, children = _a.children;
9
9
  var _b = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig), config = _b.idleModal, modalContentConfig = _b.modalContent;
10
- var handlers = (0, react_1.useMemo)(function () { return ({ close: close }); }, [close]);
10
+ var handlers = (0, react_1.useMemo)(function () { return ({ close: close, reset: reset }); }, [close, reset]);
11
11
  (0, react_1.useEffect)(function () {
12
12
  var timerId = setTimeout(reset, WAITING_TIME_IN_SECONDS * 1000);
13
13
  return function () { return clearTimeout(timerId); };
@@ -5,7 +5,7 @@ var WAITING_TIME_IN_SECONDS = 15;
5
5
  var IdleModal = function (_a) {
6
6
  var close = _a.close, reset = _a.reset, children = _a.children;
7
7
  var _b = useAppSelector(selectKioskConfig), config = _b.idleModal, modalContentConfig = _b.modalContent;
8
- var handlers = useMemo(function () { return ({ close: close }); }, [close]);
8
+ var handlers = useMemo(function () { return ({ close: close, reset: reset }); }, [close, reset]);
9
9
  useEffect(function () {
10
10
  var timerId = setTimeout(reset, WAITING_TIME_IN_SECONDS * 1000);
11
11
  return function () { return clearTimeout(timerId); };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/store",
3
- "version": "1.1.222",
3
+ "version": "1.1.223",
4
4
  "description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -63,7 +63,7 @@
63
63
  "@emotion/react": "^11.11.1",
64
64
  "@open-tender/types": "^0.4.95",
65
65
  "@open-tender/ui": "^0.4.27",
66
- "@open-tender/utils": "^0.4.68",
66
+ "@open-tender/utils": "^0.4.69",
67
67
  "@reduxjs/toolkit": "^2.0.1",
68
68
  "date-fns": "2.30.0",
69
69
  "date-fns-tz": "^2.0.0",