ordering-ui-external 14.1.90 → 14.1.92
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.
- package/_bundles/{7.ordering-ui.a5d8b15db8c2afa70992.js → 7.ordering-ui.892c096c695e1bed3c0b.js} +1 -1
- package/_bundles/{ordering-ui.a5d8b15db8c2afa70992.js → ordering-ui.892c096c695e1bed3c0b.js} +2 -2
- package/_modules/themes/five/src/components/Checkout/index.js +6 -8
- package/package.json +2 -2
- package/src/themes/five/src/components/Checkout/index.js +2 -2
- /package/_bundles/{0.ordering-ui.a5d8b15db8c2afa70992.js → 0.ordering-ui.892c096c695e1bed3c0b.js} +0 -0
- /package/_bundles/{1.ordering-ui.a5d8b15db8c2afa70992.js → 1.ordering-ui.892c096c695e1bed3c0b.js} +0 -0
- /package/_bundles/{2.ordering-ui.a5d8b15db8c2afa70992.js → 2.ordering-ui.892c096c695e1bed3c0b.js} +0 -0
- /package/_bundles/{4.ordering-ui.a5d8b15db8c2afa70992.js → 4.ordering-ui.892c096c695e1bed3c0b.js} +0 -0
- /package/_bundles/{5.ordering-ui.a5d8b15db8c2afa70992.js → 5.ordering-ui.892c096c695e1bed3c0b.js} +0 -0
- /package/_bundles/{6.ordering-ui.a5d8b15db8c2afa70992.js → 6.ordering-ui.892c096c695e1bed3c0b.js} +0 -0
- /package/_bundles/{7.ordering-ui.a5d8b15db8c2afa70992.js.LICENSE.txt → 7.ordering-ui.892c096c695e1bed3c0b.js.LICENSE.txt} +0 -0
- /package/_bundles/{8.ordering-ui.a5d8b15db8c2afa70992.js → 8.ordering-ui.892c096c695e1bed3c0b.js} +0 -0
- /package/_bundles/{9.ordering-ui.a5d8b15db8c2afa70992.js → 9.ordering-ui.892c096c695e1bed3c0b.js} +0 -0
- /package/_bundles/{ordering-ui.a5d8b15db8c2afa70992.js.LICENSE.txt → ordering-ui.892c096c695e1bed3c0b.js.LICENSE.txt} +0 -0
|
@@ -93,9 +93,6 @@ var CheckoutUI = function CheckoutUI(props) {
|
|
|
93
93
|
alseaCheckPriceError = props.alseaCheckPriceError,
|
|
94
94
|
isLoadingCheckprice = props.isLoadingCheckprice;
|
|
95
95
|
var theme = (0, _styledComponents.useTheme)();
|
|
96
|
-
var _useApi = (0, _orderingComponentsExternal.useApi)(),
|
|
97
|
-
_useApi2 = _slicedToArray(_useApi, 1),
|
|
98
|
-
ordering = _useApi2[0];
|
|
99
96
|
var _useOrder = (0, _orderingComponentsExternal.useOrder)(),
|
|
100
97
|
_useOrder2 = _slicedToArray(_useOrder, 1),
|
|
101
98
|
_useOrder2$ = _useOrder2[0],
|
|
@@ -260,7 +257,7 @@ var CheckoutUI = function CheckoutUI(props) {
|
|
|
260
257
|
var hideBusinessDetails = theme === null || theme === void 0 || (_theme$checkout2 = theme.checkout) === null || _theme$checkout2 === void 0 || (_theme$checkout2 = _theme$checkout2.components) === null || _theme$checkout2 === void 0 || (_theme$checkout2 = _theme$checkout2.business) === null || _theme$checkout2 === void 0 ? void 0 : _theme$checkout2.hidden;
|
|
261
258
|
var hideBusinessMap = theme === null || theme === void 0 || (_theme$checkout3 = theme.checkout) === null || _theme$checkout3 === void 0 || (_theme$checkout3 = _theme$checkout3.components) === null || _theme$checkout3 === void 0 || (_theme$checkout3 = _theme$checkout3.map) === null || _theme$checkout3 === void 0 ? void 0 : _theme$checkout3.hidden;
|
|
262
259
|
var hideCustomerDetails = theme === null || theme === void 0 || (_theme$checkout4 = theme.checkout) === null || _theme$checkout4 === void 0 || (_theme$checkout4 = _theme$checkout4.components) === null || _theme$checkout4 === void 0 || (_theme$checkout4 = _theme$checkout4.customer) === null || _theme$checkout4 === void 0 ? void 0 : _theme$checkout4.hidden;
|
|
263
|
-
var driverTipsField = !cartState.loading && cart && (cart === null || cart === void 0 ? void 0 : cart.business_id) && (options.type === 1 || allowDriverTipPickup) && (cart === null || cart === void 0 ? void 0 : cart.status) !== 2 && driverTipsOptions.length > 0 && !useKioskApp;
|
|
260
|
+
var driverTipsField = !cartState.loading && cart && (cart === null || cart === void 0 ? void 0 : cart.business_id) && (options.type === 1 || allowDriverTipPickup) && (cart === null || cart === void 0 ? void 0 : cart.status) !== 2 && (guestCheckoutDriveTip === null || guestCheckoutDriveTip === void 0 ? void 0 : guestCheckoutDriveTip.enabled) && driverTipsOptions.length > 0 && !useKioskApp;
|
|
264
261
|
var creditPointPlan = loyaltyPlansState === null || loyaltyPlansState === void 0 || (_loyaltyPlansState$re = loyaltyPlansState.result) === null || _loyaltyPlansState$re === void 0 ? void 0 : _loyaltyPlansState$re.find(function (loyal) {
|
|
265
262
|
return loyal.type === 'credit_point';
|
|
266
263
|
});
|
|
@@ -820,7 +817,8 @@ var CheckoutUI = function CheckoutUI(props) {
|
|
|
820
817
|
}
|
|
821
818
|
}, /*#__PURE__*/_react.default.createElement(_PaymentOptionStripeLink.PaymentOptionStripeLink, {
|
|
822
819
|
businessConfigs: (_businessDetails$busi13 = businessDetails === null || businessDetails === void 0 || (_businessDetails$busi14 = businessDetails.business) === null || _businessDetails$busi14 === void 0 ? void 0 : _businessDetails$busi14.configs) !== null && _businessDetails$busi13 !== void 0 ? _businessDetails$busi13 : [],
|
|
823
|
-
paymentURL: cart === null || cart === void 0 || (_cart$paymethod_data = cart.paymethod_data) === null || _cart$paymethod_data === void 0 || (_cart$paymethod_data = _cart$paymethod_data.result) === null || _cart$paymethod_data === void 0 ? void 0 : _cart$paymethod_data.payment_url
|
|
820
|
+
paymentURL: cart === null || cart === void 0 || (_cart$paymethod_data = cart.paymethod_data) === null || _cart$paymethod_data === void 0 || (_cart$paymethod_data = _cart$paymethod_data.result) === null || _cart$paymethod_data === void 0 ? void 0 : _cart$paymethod_data.payment_url,
|
|
821
|
+
cartTotal: cart === null || cart === void 0 ? void 0 : cart.total
|
|
824
822
|
})));
|
|
825
823
|
};
|
|
826
824
|
var Checkout = exports.Checkout = function Checkout(props) {
|
|
@@ -840,9 +838,9 @@ var Checkout = exports.Checkout = function Checkout(props) {
|
|
|
840
838
|
var _useSession3 = (0, _orderingComponentsExternal.useSession)(),
|
|
841
839
|
_useSession4 = _slicedToArray(_useSession3, 1),
|
|
842
840
|
token = _useSession4[0].token;
|
|
843
|
-
var
|
|
844
|
-
|
|
845
|
-
ordering =
|
|
841
|
+
var _useApi = (0, _orderingComponentsExternal.useApi)(),
|
|
842
|
+
_useApi2 = _slicedToArray(_useApi, 1),
|
|
843
|
+
ordering = _useApi2[0];
|
|
846
844
|
var _useLanguage3 = (0, _orderingComponentsExternal.useLanguage)(),
|
|
847
845
|
_useLanguage4 = _slicedToArray(_useLanguage3, 2),
|
|
848
846
|
t = _useLanguage4[1];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ordering-ui-external",
|
|
3
|
-
"version": "14.1.
|
|
3
|
+
"version": "14.1.92",
|
|
4
4
|
"description": "Ordering UI Components",
|
|
5
5
|
"main": "./_modules/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"lodash": "^4.17.19",
|
|
89
89
|
"moment": "^2.29.4",
|
|
90
90
|
"nanoid": "^4.0.0",
|
|
91
|
-
"ordering-components-external": "13.2.
|
|
91
|
+
"ordering-components-external": "13.2.24",
|
|
92
92
|
"payment": "^2.4.6",
|
|
93
93
|
"polished": "^3.6.6",
|
|
94
94
|
"react-bootstrap-icons": "^1.7.2",
|
|
@@ -112,7 +112,6 @@ const CheckoutUI = (props) => {
|
|
|
112
112
|
} = props
|
|
113
113
|
|
|
114
114
|
const theme = useTheme()
|
|
115
|
-
const [ordering] = useApi()
|
|
116
115
|
const [{ options, loading }] = useOrder()
|
|
117
116
|
const [, t] = useLanguage()
|
|
118
117
|
const [{ parsePrice }] = useUtils()
|
|
@@ -199,7 +198,7 @@ const CheckoutUI = (props) => {
|
|
|
199
198
|
const hideBusinessDetails = theme?.checkout?.components?.business?.hidden
|
|
200
199
|
const hideBusinessMap = theme?.checkout?.components?.map?.hidden
|
|
201
200
|
const hideCustomerDetails = theme?.checkout?.components?.customer?.hidden
|
|
202
|
-
const driverTipsField = !cartState.loading && cart && cart?.business_id && (options.type === 1 || allowDriverTipPickup) && cart?.status !== 2 && driverTipsOptions.length > 0 && !useKioskApp
|
|
201
|
+
const driverTipsField = !cartState.loading && cart && cart?.business_id && (options.type === 1 || allowDriverTipPickup) && cart?.status !== 2 && (guestCheckoutDriveTip?.enabled) && driverTipsOptions.length > 0 && !useKioskApp
|
|
203
202
|
const creditPointPlan = loyaltyPlansState?.result?.find(loyal => loyal.type === 'credit_point')
|
|
204
203
|
const creditPointPlanOnBusiness = creditPointPlan?.businesses?.find(b => b.business_id === cart?.business_id && b.accumulates)
|
|
205
204
|
|
|
@@ -919,6 +918,7 @@ const CheckoutUI = (props) => {
|
|
|
919
918
|
<PaymentOptionStripeLink
|
|
920
919
|
businessConfigs={businessDetails?.business?.configs ?? []}
|
|
921
920
|
paymentURL={cart?.paymethod_data?.result?.payment_url}
|
|
921
|
+
cartTotal={cart?.total}
|
|
922
922
|
/>
|
|
923
923
|
</Modal>
|
|
924
924
|
</Container>
|
/package/_bundles/{0.ordering-ui.a5d8b15db8c2afa70992.js → 0.ordering-ui.892c096c695e1bed3c0b.js}
RENAMED
|
File without changes
|
/package/_bundles/{1.ordering-ui.a5d8b15db8c2afa70992.js → 1.ordering-ui.892c096c695e1bed3c0b.js}
RENAMED
|
File without changes
|
/package/_bundles/{2.ordering-ui.a5d8b15db8c2afa70992.js → 2.ordering-ui.892c096c695e1bed3c0b.js}
RENAMED
|
File without changes
|
/package/_bundles/{4.ordering-ui.a5d8b15db8c2afa70992.js → 4.ordering-ui.892c096c695e1bed3c0b.js}
RENAMED
|
File without changes
|
/package/_bundles/{5.ordering-ui.a5d8b15db8c2afa70992.js → 5.ordering-ui.892c096c695e1bed3c0b.js}
RENAMED
|
File without changes
|
/package/_bundles/{6.ordering-ui.a5d8b15db8c2afa70992.js → 6.ordering-ui.892c096c695e1bed3c0b.js}
RENAMED
|
File without changes
|
|
File without changes
|
/package/_bundles/{8.ordering-ui.a5d8b15db8c2afa70992.js → 8.ordering-ui.892c096c695e1bed3c0b.js}
RENAMED
|
File without changes
|
/package/_bundles/{9.ordering-ui.a5d8b15db8c2afa70992.js → 9.ordering-ui.892c096c695e1bed3c0b.js}
RENAMED
|
File without changes
|