ordering-ui-external 2.0.1 → 2.0.3
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/{0.ordering-ui.32113e17b220a7b5ae09.js → 0.ordering-ui.a228aa8797d9d0fc5a6c.js} +0 -0
- package/_bundles/{1.ordering-ui.32113e17b220a7b5ae09.js → 1.ordering-ui.a228aa8797d9d0fc5a6c.js} +0 -0
- package/_bundles/{2.ordering-ui.32113e17b220a7b5ae09.js → 2.ordering-ui.a228aa8797d9d0fc5a6c.js} +0 -0
- package/_bundles/{4.ordering-ui.32113e17b220a7b5ae09.js → 4.ordering-ui.a228aa8797d9d0fc5a6c.js} +0 -0
- package/_bundles/{5.ordering-ui.32113e17b220a7b5ae09.js → 5.ordering-ui.a228aa8797d9d0fc5a6c.js} +0 -0
- package/_bundles/{6.ordering-ui.32113e17b220a7b5ae09.js → 6.ordering-ui.a228aa8797d9d0fc5a6c.js} +0 -0
- package/_bundles/{7.ordering-ui.32113e17b220a7b5ae09.js → 7.ordering-ui.a228aa8797d9d0fc5a6c.js} +1 -1
- package/_bundles/{7.ordering-ui.32113e17b220a7b5ae09.js.LICENSE.txt → 7.ordering-ui.a228aa8797d9d0fc5a6c.js.LICENSE.txt} +0 -0
- package/_bundles/{8.ordering-ui.32113e17b220a7b5ae09.js → 8.ordering-ui.a228aa8797d9d0fc5a6c.js} +0 -0
- package/_bundles/{9.ordering-ui.32113e17b220a7b5ae09.js → 9.ordering-ui.a228aa8797d9d0fc5a6c.js} +0 -0
- package/_bundles/ordering-ui.a228aa8797d9d0fc5a6c.js +2 -0
- package/_bundles/{ordering-ui.32113e17b220a7b5ae09.js.LICENSE.txt → ordering-ui.a228aa8797d9d0fc5a6c.js.LICENSE.txt} +0 -0
- package/_modules/themes/callcenterOriginal/index.js +7 -0
- package/_modules/themes/callcenterOriginal/src/components/Cart/index.js +46 -32
- package/_modules/themes/callcenterOriginal/src/components/Cart/styles.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/CartContent/index.js +53 -21
- package/_modules/themes/callcenterOriginal/src/components/CartContent/styles.js +6 -4
- package/_modules/themes/callcenterOriginal/src/components/CartPopover/index.js +5 -19
- package/_modules/themes/callcenterOriginal/src/components/Header/index.js +3 -21
- package/_modules/themes/callcenterOriginal/src/components/Header/styles.js +2 -2
- package/_modules/themes/five/src/components/BusinessProductsListing/index.js +1 -0
- package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +13 -8
- package/_modules/themes/five/src/components/Cart/index.js +1 -1
- package/_modules/themes/five/src/components/MultiCheckout/index.js +3 -8
- package/_modules/themes/five/src/components/RenderProductsLayout/index.js +1 -1
- package/package.json +2 -2
- package/src/themes/callcenterOriginal/index.js +2 -0
- package/src/themes/callcenterOriginal/src/components/Cart/index.js +321 -307
- package/src/themes/callcenterOriginal/src/components/Cart/styles.js +1 -1
- package/src/themes/callcenterOriginal/src/components/CartContent/index.js +69 -50
- package/src/themes/callcenterOriginal/src/components/CartContent/styles.js +6 -0
- package/src/themes/callcenterOriginal/src/components/CartPopover/index.js +20 -32
- package/src/themes/callcenterOriginal/src/components/Header/index.js +276 -292
- package/src/themes/callcenterOriginal/src/components/Header/styles.js +19 -1
- package/src/themes/five/src/components/BusinessProductsListing/index.js +1 -0
- package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +5 -1
- package/src/themes/five/src/components/Cart/index.js +1 -1
- package/src/themes/five/src/components/MultiCheckout/index.js +2 -7
- package/src/themes/five/src/components/RenderProductsLayout/index.js +1 -1
- package/_bundles/ordering-ui.32113e17b220a7b5ae09.js +0 -2
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.MultiCheckout = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _reactRouterDom = require("react-router-dom");
|
|
10
|
-
var _styledComponents = require("styled-components");
|
|
11
10
|
var _orderingComponentsExternal = require("ordering-components-external");
|
|
12
11
|
var _libphonenumberJs = _interopRequireDefault(require("libphonenumber-js"));
|
|
13
12
|
var _NotFoundSource = require("../NotFoundSource");
|
|
@@ -42,7 +41,7 @@ var mapConfigs = {
|
|
|
42
41
|
}
|
|
43
42
|
};
|
|
44
43
|
var MultiCheckoutUI = function MultiCheckoutUI(props) {
|
|
45
|
-
var _paymethodSelected$pa, _Object$values,
|
|
44
|
+
var _paymethodSelected$pa, _Object$values, _configs$checkout_mul, _configs$driver_tip_o, _configs$driver_tip_o2, _configs$driver_tip_o3, _configs$multi_busine, _configs$driver_tip_o4, _configs$driver_tip_o5, _configs$google_maps_, _customerState$user, _validationFields$fie9, _validationFields$fie10, _validationFields$fie11, _configs$driver_tip_t, _configs$driver_tip_u, _configs$driver_tip_t2, _openCarts$, _openCarts$2, _configs$multi_busine4, _configs$multi_busine5;
|
|
46
45
|
var placing = props.placing,
|
|
47
46
|
isCustomerMode = props.isCustomerMode,
|
|
48
47
|
openCarts = props.openCarts,
|
|
@@ -57,7 +56,6 @@ var MultiCheckoutUI = function MultiCheckoutUI(props) {
|
|
|
57
56
|
cartUuid = props.cartUuid,
|
|
58
57
|
totalCartsFee = props.totalCartsFee,
|
|
59
58
|
handleSearchRedirect = props.handleSearchRedirect;
|
|
60
|
-
var theme = (0, _styledComponents.useTheme)();
|
|
61
59
|
var _useLanguage = (0, _orderingComponentsExternal.useLanguage)(),
|
|
62
60
|
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|
|
63
61
|
t = _useLanguage2[1];
|
|
@@ -70,9 +68,6 @@ var MultiCheckoutUI = function MultiCheckoutUI(props) {
|
|
|
70
68
|
var _useCustomer = (0, _orderingComponentsExternal.useCustomer)(),
|
|
71
69
|
_useCustomer2 = _slicedToArray(_useCustomer, 1),
|
|
72
70
|
customerState = _useCustomer2[0];
|
|
73
|
-
var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
|
|
74
|
-
_useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
|
|
75
|
-
orderingTheme = _useOrderingTheme2[0];
|
|
76
71
|
var _useValidationFields = (0, _orderingComponentsExternal.useValidationFields)(),
|
|
77
72
|
_useValidationFields2 = _slicedToArray(_useValidationFields, 1),
|
|
78
73
|
validationFields = _useValidationFields2[0];
|
|
@@ -103,7 +98,7 @@ var MultiCheckoutUI = function MultiCheckoutUI(props) {
|
|
|
103
98
|
var _cart$products;
|
|
104
99
|
return (cart === null || cart === void 0 ? void 0 : cart.products) && (cart === null || cart === void 0 ? void 0 : (_cart$products = cart.products) === null || _cart$products === void 0 ? void 0 : _cart$products.length) && (cart === null || cart === void 0 ? void 0 : cart.status) !== 2 && (cart === null || cart === void 0 ? void 0 : cart.valid_schedule) && (cart === null || cart === void 0 ? void 0 : cart.valid_products) && (cart === null || cart === void 0 ? void 0 : cart.valid_address) && (cart === null || cart === void 0 ? void 0 : cart.valid_maximum) && (cart === null || cart === void 0 ? void 0 : cart.valid_minimum) && (cart === null || cart === void 0 ? void 0 : cart.wallets);
|
|
105
100
|
})) || null || [];
|
|
106
|
-
var isMultiDriverTips = (
|
|
101
|
+
var isMultiDriverTips = (configs === null || configs === void 0 ? void 0 : (_configs$checkout_mul = configs.checkout_multi_business_enabled) === null || _configs$checkout_mul === void 0 ? void 0 : _configs$checkout_mul.value) === '1';
|
|
107
102
|
var driverTipsOptions = typeof (configs === null || configs === void 0 ? void 0 : (_configs$driver_tip_o = configs.driver_tip_options) === null || _configs$driver_tip_o === void 0 ? void 0 : _configs$driver_tip_o.value) === 'string' ? JSON.parse(configs === null || configs === void 0 ? void 0 : (_configs$driver_tip_o2 = configs.driver_tip_options) === null || _configs$driver_tip_o2 === void 0 ? void 0 : _configs$driver_tip_o2.value) || [] : (configs === null || configs === void 0 ? void 0 : (_configs$driver_tip_o3 = configs.driver_tip_options) === null || _configs$driver_tip_o3 === void 0 ? void 0 : _configs$driver_tip_o3.value) || [];
|
|
108
103
|
var totalFeeEnabled = (configs === null || configs === void 0 ? void 0 : (_configs$multi_busine = configs.multi_business_checkout_show_combined_delivery_fee) === null || _configs$multi_busine === void 0 ? void 0 : _configs$multi_busine.value) === '1' ? JSON.parse(configs === null || configs === void 0 ? void 0 : (_configs$driver_tip_o4 = configs.driver_tip_options) === null || _configs$driver_tip_o4 === void 0 ? void 0 : _configs$driver_tip_o4.value) || [] : (configs === null || configs === void 0 ? void 0 : (_configs$driver_tip_o5 = configs.driver_tip_options) === null || _configs$driver_tip_o5 === void 0 ? void 0 : _configs$driver_tip_o5.value) || [];
|
|
109
104
|
var handlePlaceOrder = function handlePlaceOrder() {
|
|
@@ -222,7 +217,7 @@ var MultiCheckoutUI = function MultiCheckoutUI(props) {
|
|
|
222
217
|
}, /*#__PURE__*/_react.default.createElement(_Cart.Cart, {
|
|
223
218
|
isCartPending: (cart === null || cart === void 0 ? void 0 : cart.status) === 2,
|
|
224
219
|
cart: cart,
|
|
225
|
-
isMultiCheckout:
|
|
220
|
+
isMultiCheckout: true,
|
|
226
221
|
isProducts: (cart === null || cart === void 0 ? void 0 : (_cart$products2 = cart.products) === null || _cart$products2 === void 0 ? void 0 : _cart$products2.length) || 0,
|
|
227
222
|
hideDeliveryFee: (configs === null || configs === void 0 ? void 0 : (_configs$multi_busine2 = configs.multi_business_checkout_show_combined_delivery_fee) === null || _configs$multi_busine2 === void 0 ? void 0 : _configs$multi_busine2.value) === '1',
|
|
228
223
|
hideDriverTip: (configs === null || configs === void 0 ? void 0 : (_configs$multi_busine3 = configs.multi_business_checkout_show_combined_driver_tip) === null || _configs$multi_busine3 === void 0 ? void 0 : _configs$multi_busine3.value) === '1'
|
|
@@ -135,7 +135,7 @@ var RenderProductsLayout = function RenderProductsLayout(props) {
|
|
|
135
135
|
}, [categorySelected]);
|
|
136
136
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !isLoading && (business === null || business === void 0 ? void 0 : business.id) && /*#__PURE__*/_react.default.createElement(_styles.WrappLayout, {
|
|
137
137
|
isCartOnProductsList: isCartOnProductsList
|
|
138
|
-
}, !hideBusinessNearCity && !useKioskApp && /*#__PURE__*/_react.default.createElement(_styles.NearBusiness, null, /*#__PURE__*/_react.default.createElement(_BusinessesListing.BusinessesListing, {
|
|
138
|
+
}, (!hideBusinessNearCity && !useKioskApp || props.forceShowNearBusiness) && /*#__PURE__*/_react.default.createElement(_styles.NearBusiness, null, /*#__PURE__*/_react.default.createElement(_BusinessesListing.BusinessesListing, {
|
|
139
139
|
logosLayout: true,
|
|
140
140
|
propsToFetch: ['id', 'logo', 'location', 'timezone', 'schedule', 'open', 'slug'],
|
|
141
141
|
cityId: businessState === null || businessState === void 0 ? void 0 : (_businessState$busine = businessState.business) === null || _businessState$busine === void 0 ? void 0 : _businessState$busine.city_id,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ordering-ui-external",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "Ordering UI Components",
|
|
5
5
|
"main": "./_modules/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"libphonenumber-js": "^1.9.4",
|
|
87
87
|
"lodash": "^4.17.19",
|
|
88
88
|
"moment": "^2.29.4",
|
|
89
|
-
"ordering-components-external": "2.0.
|
|
89
|
+
"ordering-components-external": "2.0.1",
|
|
90
90
|
"polished": "^3.6.6",
|
|
91
91
|
"react-bootstrap-icons": "^1.7.2",
|
|
92
92
|
"react-calendar": "^3.3.1",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AccordionDropdown } from './src/components/AccordionDropdown'
|
|
2
2
|
import { AddressDetails } from './src/components/AddressDetails'
|
|
3
|
+
import { AdminAreaPopover } from './src/components/AdminAreaPopover'
|
|
3
4
|
import { AddressForm } from './src/components/AddressForm'
|
|
4
5
|
import { AddressList } from './src/components/AddressList'
|
|
5
6
|
import { AppleLogin } from './src/components/AppleLogin'
|
|
@@ -81,6 +82,7 @@ import { Select } from './src/styles/Select'
|
|
|
81
82
|
export {
|
|
82
83
|
AccordionDropdown,
|
|
83
84
|
AddressDetails,
|
|
85
|
+
AdminAreaPopover,
|
|
84
86
|
AddressForm,
|
|
85
87
|
AddressList,
|
|
86
88
|
AppleLogin,
|