@open-tender/store 0.1.296 → 0.1.297
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,6 +1,6 @@
|
|
|
1
1
|
import { CheckoutProps, Handlers } from '@open-tender/ui';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
declare const CheckoutContainer: ({ handlers, title, subtitle, headerContent, content, backTitle, proceedTitle, showFooter, showBottomText, renderHeader, renderTotals, children }: {
|
|
3
|
+
declare const CheckoutContainer: ({ handlers, title, subtitle, headerContent, content, backTitle, proceedTitle, showFooter, showBottomText, renderHeader, renderTotals, children, showViewOrder }: {
|
|
4
4
|
handlers: Handlers;
|
|
5
5
|
title: string;
|
|
6
6
|
subtitle?: string | null;
|
|
@@ -10,11 +10,13 @@ declare const CheckoutContainer: ({ handlers, title, subtitle, headerContent, co
|
|
|
10
10
|
showFooter?: boolean;
|
|
11
11
|
proceedTitle?: string;
|
|
12
12
|
showBottomText?: boolean;
|
|
13
|
+
showViewOrder?: boolean;
|
|
13
14
|
renderHeader: () => ReactNode;
|
|
14
15
|
renderTotals?: () => ReactNode;
|
|
15
16
|
children: (props: CheckoutProps & {
|
|
16
17
|
showFooter?: boolean;
|
|
17
18
|
showBottomText?: boolean;
|
|
19
|
+
showViewOrder?: boolean;
|
|
18
20
|
}) => ReactNode;
|
|
19
21
|
}) => ReactNode;
|
|
20
22
|
export default CheckoutContainer;
|
|
@@ -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 CheckoutContainer = function (_a) {
|
|
6
|
-
var handlers = _a.handlers, title = _a.title, subtitle = _a.subtitle, headerContent = _a.headerContent, content = _a.content, backTitle = _a.backTitle, proceedTitle = _a.proceedTitle, showFooter = _a.showFooter, showBottomText = _a.showBottomText, renderHeader = _a.renderHeader, renderTotals = _a.renderTotals, children = _a.children;
|
|
6
|
+
var handlers = _a.handlers, title = _a.title, subtitle = _a.subtitle, headerContent = _a.headerContent, content = _a.content, backTitle = _a.backTitle, proceedTitle = _a.proceedTitle, showFooter = _a.showFooter, showBottomText = _a.showBottomText, renderHeader = _a.renderHeader, renderTotals = _a.renderTotals, children = _a.children, showViewOrder = _a.showViewOrder;
|
|
7
7
|
var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).checkout;
|
|
8
8
|
if (!config)
|
|
9
9
|
return null;
|
|
@@ -18,6 +18,7 @@ var CheckoutContainer = function (_a) {
|
|
|
18
18
|
proceedTitle: proceedTitle,
|
|
19
19
|
showFooter: showFooter,
|
|
20
20
|
showBottomText: showBottomText,
|
|
21
|
+
showViewOrder: showViewOrder,
|
|
21
22
|
renderHeader: renderHeader,
|
|
22
23
|
renderTotals: renderTotals
|
|
23
24
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CheckoutProps, Handlers } from '@open-tender/ui';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
declare const CheckoutContainer: ({ handlers, title, subtitle, headerContent, content, backTitle, proceedTitle, showFooter, showBottomText, renderHeader, renderTotals, children }: {
|
|
3
|
+
declare const CheckoutContainer: ({ handlers, title, subtitle, headerContent, content, backTitle, proceedTitle, showFooter, showBottomText, renderHeader, renderTotals, children, showViewOrder }: {
|
|
4
4
|
handlers: Handlers;
|
|
5
5
|
title: string;
|
|
6
6
|
subtitle?: string | null;
|
|
@@ -10,11 +10,13 @@ declare const CheckoutContainer: ({ handlers, title, subtitle, headerContent, co
|
|
|
10
10
|
showFooter?: boolean;
|
|
11
11
|
proceedTitle?: string;
|
|
12
12
|
showBottomText?: boolean;
|
|
13
|
+
showViewOrder?: boolean;
|
|
13
14
|
renderHeader: () => ReactNode;
|
|
14
15
|
renderTotals?: () => ReactNode;
|
|
15
16
|
children: (props: CheckoutProps & {
|
|
16
17
|
showFooter?: boolean;
|
|
17
18
|
showBottomText?: boolean;
|
|
19
|
+
showViewOrder?: boolean;
|
|
18
20
|
}) => ReactNode;
|
|
19
21
|
}) => ReactNode;
|
|
20
22
|
export default CheckoutContainer;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useAppSelector } from '../app/hooks';
|
|
2
2
|
import { selectKioskConfig } from '../slices';
|
|
3
3
|
var CheckoutContainer = function (_a) {
|
|
4
|
-
var handlers = _a.handlers, title = _a.title, subtitle = _a.subtitle, headerContent = _a.headerContent, content = _a.content, backTitle = _a.backTitle, proceedTitle = _a.proceedTitle, showFooter = _a.showFooter, showBottomText = _a.showBottomText, renderHeader = _a.renderHeader, renderTotals = _a.renderTotals, children = _a.children;
|
|
4
|
+
var handlers = _a.handlers, title = _a.title, subtitle = _a.subtitle, headerContent = _a.headerContent, content = _a.content, backTitle = _a.backTitle, proceedTitle = _a.proceedTitle, showFooter = _a.showFooter, showBottomText = _a.showBottomText, renderHeader = _a.renderHeader, renderTotals = _a.renderTotals, children = _a.children, showViewOrder = _a.showViewOrder;
|
|
5
5
|
var config = useAppSelector(selectKioskConfig).checkout;
|
|
6
6
|
if (!config)
|
|
7
7
|
return null;
|
|
@@ -16,6 +16,7 @@ var CheckoutContainer = function (_a) {
|
|
|
16
16
|
proceedTitle: proceedTitle,
|
|
17
17
|
showFooter: showFooter,
|
|
18
18
|
showBottomText: showBottomText,
|
|
19
|
+
showViewOrder: showViewOrder,
|
|
19
20
|
renderHeader: renderHeader,
|
|
20
21
|
renderTotals: renderTotals
|
|
21
22
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.297",
|
|
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",
|