@open-tender/store 1.1.264 → 1.1.265
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.
|
@@ -4,10 +4,17 @@ var hooks_1 = require("../app/hooks");
|
|
|
4
4
|
var slices_1 = require("../slices");
|
|
5
5
|
var Ingredients = function (_a) {
|
|
6
6
|
var title = _a.title, subtitle = _a.subtitle, ingredients = _a.ingredients, close = _a.close, children = _a.children;
|
|
7
|
-
var
|
|
7
|
+
var _b = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig), config = _b.ingredients, modalContentConfig = _b.modalContent;
|
|
8
8
|
var handlers = { close: close };
|
|
9
9
|
if (!config)
|
|
10
10
|
return null;
|
|
11
|
-
return children({
|
|
11
|
+
return children({
|
|
12
|
+
config: config,
|
|
13
|
+
modalContentConfig: modalContentConfig,
|
|
14
|
+
handlers: handlers,
|
|
15
|
+
title: title,
|
|
16
|
+
subtitle: subtitle,
|
|
17
|
+
ingredients: ingredients
|
|
18
|
+
});
|
|
12
19
|
};
|
|
13
20
|
exports.default = Ingredients;
|
|
@@ -2,10 +2,17 @@ import { useAppSelector } from '../app/hooks';
|
|
|
2
2
|
import { selectKioskConfig } from '../slices';
|
|
3
3
|
var Ingredients = function (_a) {
|
|
4
4
|
var title = _a.title, subtitle = _a.subtitle, ingredients = _a.ingredients, close = _a.close, children = _a.children;
|
|
5
|
-
var
|
|
5
|
+
var _b = useAppSelector(selectKioskConfig), config = _b.ingredients, modalContentConfig = _b.modalContent;
|
|
6
6
|
var handlers = { close: close };
|
|
7
7
|
if (!config)
|
|
8
8
|
return null;
|
|
9
|
-
return children({
|
|
9
|
+
return children({
|
|
10
|
+
config: config,
|
|
11
|
+
modalContentConfig: modalContentConfig,
|
|
12
|
+
handlers: handlers,
|
|
13
|
+
title: title,
|
|
14
|
+
subtitle: subtitle,
|
|
15
|
+
ingredients: ingredients
|
|
16
|
+
});
|
|
10
17
|
};
|
|
11
18
|
export default Ingredients;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.265",
|
|
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",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"@emotion/react": "^11.11.1",
|
|
64
|
-
"@open-tender/types": "^0.4.
|
|
65
|
-
"@open-tender/ui": "^0.4.
|
|
66
|
-
"@open-tender/utils": "^0.
|
|
64
|
+
"@open-tender/types": "^0.4.132",
|
|
65
|
+
"@open-tender/ui": "^0.4.45",
|
|
66
|
+
"@open-tender/utils": "^0.5.1",
|
|
67
67
|
"@reduxjs/toolkit": "^2.0.1",
|
|
68
68
|
"date-fns": "2.30.0",
|
|
69
69
|
"date-fns-tz": "^2.0.0",
|