@open-tender/store 1.1.218 → 1.1.219
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.
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { CancelButtonProps } from '@open-tender/ui';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
declare const CancelButton: ({ navigate, children }: {
|
|
3
|
+
declare const CancelButton: ({ navigate, children, route }: {
|
|
4
|
+
route?: string;
|
|
4
5
|
navigate: (route: string) => void;
|
|
5
|
-
children: (props: CancelButtonProps
|
|
6
|
+
children: (props: CancelButtonProps & {
|
|
7
|
+
route?: string;
|
|
8
|
+
}) => ReactNode;
|
|
6
9
|
}) => ReactNode;
|
|
7
10
|
export default CancelButton;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
var hooks_1 = require("../app/hooks");
|
|
4
4
|
var slices_1 = require("../slices");
|
|
5
5
|
var CancelButton = function (_a) {
|
|
6
|
-
var navigate = _a.navigate, children = _a.children;
|
|
6
|
+
var navigate = _a.navigate, children = _a.children, route = _a.route;
|
|
7
7
|
var dispatch = (0, hooks_1.useAppDispatch)();
|
|
8
8
|
var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).cancelButton;
|
|
9
9
|
var startOver = function () {
|
|
@@ -21,7 +21,8 @@ var CancelButton = function (_a) {
|
|
|
21
21
|
return null;
|
|
22
22
|
return children({
|
|
23
23
|
config: config,
|
|
24
|
-
handlers: handlers
|
|
24
|
+
handlers: handlers,
|
|
25
|
+
route: route
|
|
25
26
|
});
|
|
26
27
|
};
|
|
27
28
|
exports.default = CancelButton;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { CancelButtonProps } from '@open-tender/ui';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
declare const CancelButton: ({ navigate, children }: {
|
|
3
|
+
declare const CancelButton: ({ navigate, children, route }: {
|
|
4
|
+
route?: string;
|
|
4
5
|
navigate: (route: string) => void;
|
|
5
|
-
children: (props: CancelButtonProps
|
|
6
|
+
children: (props: CancelButtonProps & {
|
|
7
|
+
route?: string;
|
|
8
|
+
}) => ReactNode;
|
|
6
9
|
}) => ReactNode;
|
|
7
10
|
export default CancelButton;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useAppDispatch, useAppSelector } from '../app/hooks';
|
|
2
2
|
import { resetCart, resetCustomer, resetCustomerIdentify, resetIdleState, resetMenu, resetPosCheckout, selectKioskConfig, setOrderId } from '../slices';
|
|
3
3
|
var CancelButton = function (_a) {
|
|
4
|
-
var navigate = _a.navigate, children = _a.children;
|
|
4
|
+
var navigate = _a.navigate, children = _a.children, route = _a.route;
|
|
5
5
|
var dispatch = useAppDispatch();
|
|
6
6
|
var config = useAppSelector(selectKioskConfig).cancelButton;
|
|
7
7
|
var startOver = function () {
|
|
@@ -19,7 +19,8 @@ var CancelButton = function (_a) {
|
|
|
19
19
|
return null;
|
|
20
20
|
return children({
|
|
21
21
|
config: config,
|
|
22
|
-
handlers: handlers
|
|
22
|
+
handlers: handlers,
|
|
23
|
+
route: route
|
|
23
24
|
});
|
|
24
25
|
};
|
|
25
26
|
export default CancelButton;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.219",
|
|
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,7 +61,7 @@
|
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"@emotion/react": "^11.11.1",
|
|
64
|
-
"@open-tender/types": "^0.4.
|
|
64
|
+
"@open-tender/types": "^0.4.91",
|
|
65
65
|
"@open-tender/ui": "^0.4.25",
|
|
66
66
|
"@open-tender/utils": "^0.4.67",
|
|
67
67
|
"@reduxjs/toolkit": "^2.0.1",
|