@open-tender/store 1.1.87 → 1.1.88
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 CartUpsellItem = function (_a) {
|
|
|
7
7
|
var item = _a.item, callback = _a.callback, isLast = _a.isLast, children = _a.children;
|
|
8
8
|
var dispatch = (0, hooks_1.useAppDispatch)();
|
|
9
9
|
var apiUrl = (0, hooks_1.useAppSelector)(slices_1.selectKioskApi);
|
|
10
|
-
var
|
|
10
|
+
var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).cartUpsellItem;
|
|
11
11
|
var builtItem = (0, utils_1.useBuilder)(item).item;
|
|
12
12
|
var quantity = builtItem.quantity, groups = builtItem.groups;
|
|
13
13
|
var groupsBelowMin = (0, utils_1.hasGroupsBelowMin)(null, groups);
|
|
@@ -20,6 +20,6 @@ var CartUpsellItem = function (_a) {
|
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
var handlers = { add: add };
|
|
23
|
-
return children({ config: config, handlers: handlers, item: item, isLast: isLast,
|
|
23
|
+
return children({ config: config, handlers: handlers, item: item, isLast: isLast, apiUrl: apiUrl });
|
|
24
24
|
};
|
|
25
25
|
exports.default = CartUpsellItem;
|
|
@@ -7,7 +7,7 @@ var UpsellItem = function (_a) {
|
|
|
7
7
|
var item = _a.item, callback = _a.callback, isLast = _a.isLast, children = _a.children;
|
|
8
8
|
var dispatch = (0, hooks_1.useAppDispatch)();
|
|
9
9
|
var apiUrl = (0, hooks_1.useAppSelector)(slices_1.selectKioskApi);
|
|
10
|
-
var
|
|
10
|
+
var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).upsellItem;
|
|
11
11
|
var builtItem = (0, utils_1.useBuilder)(item).item;
|
|
12
12
|
var quantity = builtItem.quantity, groups = builtItem.groups;
|
|
13
13
|
var groupsBelowMin = (0, utils_1.hasGroupsBelowMin)(null, groups);
|
|
@@ -20,6 +20,6 @@ var UpsellItem = function (_a) {
|
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
var handlers = { add: add };
|
|
23
|
-
return children({ config: config, handlers: handlers, item: item, isLast: isLast,
|
|
23
|
+
return children({ config: config, handlers: handlers, item: item, isLast: isLast, apiUrl: apiUrl });
|
|
24
24
|
};
|
|
25
25
|
exports.default = UpsellItem;
|
|
@@ -5,7 +5,7 @@ var CartUpsellItem = function (_a) {
|
|
|
5
5
|
var item = _a.item, callback = _a.callback, isLast = _a.isLast, children = _a.children;
|
|
6
6
|
var dispatch = useAppDispatch();
|
|
7
7
|
var apiUrl = useAppSelector(selectKioskApi);
|
|
8
|
-
var
|
|
8
|
+
var config = useAppSelector(selectKioskConfig).cartUpsellItem;
|
|
9
9
|
var builtItem = useBuilder(item).item;
|
|
10
10
|
var quantity = builtItem.quantity, groups = builtItem.groups;
|
|
11
11
|
var groupsBelowMin = hasGroupsBelowMin(null, groups);
|
|
@@ -18,6 +18,6 @@ var CartUpsellItem = function (_a) {
|
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
var handlers = { add: add };
|
|
21
|
-
return children({ config: config, handlers: handlers, item: item, isLast: isLast,
|
|
21
|
+
return children({ config: config, handlers: handlers, item: item, isLast: isLast, apiUrl: apiUrl });
|
|
22
22
|
};
|
|
23
23
|
export default CartUpsellItem;
|
|
@@ -5,7 +5,7 @@ var UpsellItem = function (_a) {
|
|
|
5
5
|
var item = _a.item, callback = _a.callback, isLast = _a.isLast, children = _a.children;
|
|
6
6
|
var dispatch = useAppDispatch();
|
|
7
7
|
var apiUrl = useAppSelector(selectKioskApi);
|
|
8
|
-
var
|
|
8
|
+
var config = useAppSelector(selectKioskConfig).upsellItem;
|
|
9
9
|
var builtItem = useBuilder(item).item;
|
|
10
10
|
var quantity = builtItem.quantity, groups = builtItem.groups;
|
|
11
11
|
var groupsBelowMin = hasGroupsBelowMin(null, groups);
|
|
@@ -18,6 +18,6 @@ var UpsellItem = function (_a) {
|
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
var handlers = { add: add };
|
|
21
|
-
return children({ config: config, handlers: handlers, item: item, isLast: isLast,
|
|
21
|
+
return children({ config: config, handlers: handlers, item: item, isLast: isLast, apiUrl: apiUrl });
|
|
22
22
|
};
|
|
23
23
|
export default UpsellItem;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.88",
|
|
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",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"@emotion/react": "^11.11.1",
|
|
64
64
|
"@open-tender/types": "^0.4.59",
|
|
65
|
-
"@open-tender/ui": "^0.3.
|
|
66
|
-
"@open-tender/utils": "^0.4.
|
|
65
|
+
"@open-tender/ui": "^0.3.75",
|
|
66
|
+
"@open-tender/utils": "^0.4.39",
|
|
67
67
|
"@reduxjs/toolkit": "^2.0.1",
|
|
68
68
|
"date-fns": "2.30.0",
|
|
69
69
|
"date-fns-tz": "^2.0.0",
|