@open-tender/store 0.1.294 → 0.1.296
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, renderHeader, renderTotals, children }: {
|
|
3
|
+
declare const CheckoutContainer: ({ handlers, title, subtitle, headerContent, content, backTitle, proceedTitle, showFooter, showBottomText, renderHeader, renderTotals, children }: {
|
|
4
4
|
handlers: Handlers;
|
|
5
5
|
title: string;
|
|
6
6
|
subtitle?: string | null;
|
|
@@ -9,10 +9,12 @@ declare const CheckoutContainer: ({ handlers, title, subtitle, headerContent, co
|
|
|
9
9
|
backTitle: string;
|
|
10
10
|
showFooter?: boolean;
|
|
11
11
|
proceedTitle?: string;
|
|
12
|
+
showBottomText?: boolean;
|
|
12
13
|
renderHeader: () => ReactNode;
|
|
13
14
|
renderTotals?: () => ReactNode;
|
|
14
15
|
children: (props: CheckoutProps & {
|
|
15
16
|
showFooter?: boolean;
|
|
17
|
+
showBottomText?: boolean;
|
|
16
18
|
}) => ReactNode;
|
|
17
19
|
}) => ReactNode;
|
|
18
20
|
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, 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;
|
|
7
7
|
var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).checkout;
|
|
8
8
|
if (!config)
|
|
9
9
|
return null;
|
|
@@ -17,6 +17,7 @@ var CheckoutContainer = function (_a) {
|
|
|
17
17
|
backTitle: backTitle,
|
|
18
18
|
proceedTitle: proceedTitle,
|
|
19
19
|
showFooter: showFooter,
|
|
20
|
+
showBottomText: showBottomText,
|
|
20
21
|
renderHeader: renderHeader,
|
|
21
22
|
renderTotals: renderTotals
|
|
22
23
|
});
|
|
@@ -754,15 +754,15 @@ var checkoutSlice = (0, toolkit_1.createSlice)({
|
|
|
754
754
|
state.error = action.payload;
|
|
755
755
|
})
|
|
756
756
|
.addCase(exports.rateOrder.fulfilled, function (state, action) {
|
|
757
|
-
state.
|
|
758
|
-
state.
|
|
757
|
+
state.rate = action.payload;
|
|
758
|
+
state.rating = 'idle';
|
|
759
759
|
state.ratingError = null;
|
|
760
760
|
})
|
|
761
761
|
.addCase(exports.rateOrder.pending, function (state) {
|
|
762
|
-
state.
|
|
762
|
+
state.rating = 'pending';
|
|
763
763
|
})
|
|
764
764
|
.addCase(exports.rateOrder.rejected, function (state, action) {
|
|
765
|
-
state.
|
|
765
|
+
state.rating = 'idle';
|
|
766
766
|
state.ratingError = action.payload;
|
|
767
767
|
});
|
|
768
768
|
}
|
|
@@ -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, renderHeader, renderTotals, children }: {
|
|
3
|
+
declare const CheckoutContainer: ({ handlers, title, subtitle, headerContent, content, backTitle, proceedTitle, showFooter, showBottomText, renderHeader, renderTotals, children }: {
|
|
4
4
|
handlers: Handlers;
|
|
5
5
|
title: string;
|
|
6
6
|
subtitle?: string | null;
|
|
@@ -9,10 +9,12 @@ declare const CheckoutContainer: ({ handlers, title, subtitle, headerContent, co
|
|
|
9
9
|
backTitle: string;
|
|
10
10
|
showFooter?: boolean;
|
|
11
11
|
proceedTitle?: string;
|
|
12
|
+
showBottomText?: boolean;
|
|
12
13
|
renderHeader: () => ReactNode;
|
|
13
14
|
renderTotals?: () => ReactNode;
|
|
14
15
|
children: (props: CheckoutProps & {
|
|
15
16
|
showFooter?: boolean;
|
|
17
|
+
showBottomText?: boolean;
|
|
16
18
|
}) => ReactNode;
|
|
17
19
|
}) => ReactNode;
|
|
18
20
|
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, 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;
|
|
5
5
|
var config = useAppSelector(selectKioskConfig).checkout;
|
|
6
6
|
if (!config)
|
|
7
7
|
return null;
|
|
@@ -15,6 +15,7 @@ var CheckoutContainer = function (_a) {
|
|
|
15
15
|
backTitle: backTitle,
|
|
16
16
|
proceedTitle: proceedTitle,
|
|
17
17
|
showFooter: showFooter,
|
|
18
|
+
showBottomText: showBottomText,
|
|
18
19
|
renderHeader: renderHeader,
|
|
19
20
|
renderTotals: renderTotals
|
|
20
21
|
});
|
|
@@ -750,15 +750,15 @@ var checkoutSlice = createSlice({
|
|
|
750
750
|
state.error = action.payload;
|
|
751
751
|
})
|
|
752
752
|
.addCase(rateOrder.fulfilled, function (state, action) {
|
|
753
|
-
state.
|
|
754
|
-
state.
|
|
753
|
+
state.rate = action.payload;
|
|
754
|
+
state.rating = 'idle';
|
|
755
755
|
state.ratingError = null;
|
|
756
756
|
})
|
|
757
757
|
.addCase(rateOrder.pending, function (state) {
|
|
758
|
-
state.
|
|
758
|
+
state.rating = 'pending';
|
|
759
759
|
})
|
|
760
760
|
.addCase(rateOrder.rejected, function (state, action) {
|
|
761
|
-
state.
|
|
761
|
+
state.rating = 'idle';
|
|
762
762
|
state.ratingError = action.payload;
|
|
763
763
|
});
|
|
764
764
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.296",
|
|
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",
|