ordering-ui-external 2.3.8 → 2.4.1
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.b2b44cfc71966263a798.js → 7.ordering-ui.f617c2b14777b5518ddc.js} +1 -1
- package/_bundles/ordering-ui.f617c2b14777b5518ddc.js +2 -0
- package/_modules/themes/five/src/components/BusinessProductsListing/index.js +6 -1
- package/_modules/themes/five/src/components/Cart/index.js +16 -16
- package/_modules/themes/five/src/components/Messages/index.js +3 -1
- package/_modules/themes/five/src/components/MultiCartsPaymethodsAndWallets/index.js +33 -8
- package/_modules/themes/five/src/components/MultiCartsPaymethodsAndWallets/styles.js +10 -6
- package/_modules/themes/five/src/components/MultiCheckout/index.js +43 -15
- package/_modules/themes/five/src/components/MyOrders/styles.js +3 -3
- package/_modules/themes/five/src/components/OrderDetails/OrderEta.js +6 -4
- package/_modules/themes/five/src/components/OrderProgress/index.js +2 -1
- package/_modules/themes/five/src/components/PageBanner/index.js +6 -6
- package/_modules/themes/five/src/components/PaymentOptions/index.js +22 -22
- package/_modules/themes/five/src/components/QueryLoginSpoonity/index.js +3 -2
- package/package.json +2 -2
- package/src/themes/five/src/components/BusinessProductsListing/index.js +7 -1
- package/src/themes/five/src/components/Cart/index.js +13 -19
- package/src/themes/five/src/components/Messages/index.js +4 -9
- package/src/themes/five/src/components/MultiCartsPaymethodsAndWallets/index.js +52 -16
- package/src/themes/five/src/components/MultiCartsPaymethodsAndWallets/styles.js +12 -0
- package/src/themes/five/src/components/MultiCheckout/index.js +37 -3
- package/src/themes/five/src/components/MyOrders/styles.js +2 -4
- package/src/themes/five/src/components/OrderDetails/OrderEta.js +4 -4
- package/src/themes/five/src/components/OrderProgress/index.js +2 -2
- package/src/themes/five/src/components/PageBanner/index.js +6 -6
- package/src/themes/five/src/components/PaymentOptions/index.js +2 -3
- package/src/themes/five/src/components/QueryLoginSpoonity/index.js +9 -1
- package/template/app.js +12 -10
- package/_bundles/ordering-ui.b2b44cfc71966263a798.js +0 -2
- /package/_bundles/{0.ordering-ui.b2b44cfc71966263a798.js → 0.ordering-ui.f617c2b14777b5518ddc.js} +0 -0
- /package/_bundles/{1.ordering-ui.b2b44cfc71966263a798.js → 1.ordering-ui.f617c2b14777b5518ddc.js} +0 -0
- /package/_bundles/{2.ordering-ui.b2b44cfc71966263a798.js → 2.ordering-ui.f617c2b14777b5518ddc.js} +0 -0
- /package/_bundles/{4.ordering-ui.b2b44cfc71966263a798.js → 4.ordering-ui.f617c2b14777b5518ddc.js} +0 -0
- /package/_bundles/{5.ordering-ui.b2b44cfc71966263a798.js → 5.ordering-ui.f617c2b14777b5518ddc.js} +0 -0
- /package/_bundles/{6.ordering-ui.b2b44cfc71966263a798.js → 6.ordering-ui.f617c2b14777b5518ddc.js} +0 -0
- /package/_bundles/{7.ordering-ui.b2b44cfc71966263a798.js.LICENSE.txt → 7.ordering-ui.f617c2b14777b5518ddc.js.LICENSE.txt} +0 -0
- /package/_bundles/{8.ordering-ui.b2b44cfc71966263a798.js → 8.ordering-ui.f617c2b14777b5518ddc.js} +0 -0
- /package/_bundles/{9.ordering-ui.b2b44cfc71966263a798.js → 9.ordering-ui.f617c2b14777b5518ddc.js} +0 -0
- /package/_bundles/{ordering-ui.b2b44cfc71966263a798.js.LICENSE.txt → ordering-ui.f617c2b14777b5518ddc.js.LICENSE.txt} +0 -0
|
@@ -34,9 +34,9 @@ const PageBannerUI = (props) => {
|
|
|
34
34
|
const onProductRedirect = ({ slug, category, product }) => {
|
|
35
35
|
if (!category && !product) {
|
|
36
36
|
if (businessUrlTemplate === '/store/:business_slug' || businessUrlTemplate === '/:business_slug') {
|
|
37
|
-
return events.emit('go_to_page', { page: 'business', params: { business_slug: slug }, replace:
|
|
37
|
+
return events.emit('go_to_page', { page: 'business', params: { business_slug: slug }, replace: false })
|
|
38
38
|
} else {
|
|
39
|
-
return events.emit('go_to_page', { page: 'business', search: `?${businessUrlTemplate.split('?')[1].replace(':business_slug', '')}${slug}`, replace:
|
|
39
|
+
return events.emit('go_to_page', { page: 'business', search: `?${businessUrlTemplate.split('?')[1].replace(':business_slug', '')}${slug}`, replace: false })
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
events.emit('product_banner_clicked')
|
|
@@ -48,7 +48,7 @@ const PageBannerUI = (props) => {
|
|
|
48
48
|
category_slug: category,
|
|
49
49
|
product_slug: product
|
|
50
50
|
},
|
|
51
|
-
replace:
|
|
51
|
+
replace: false
|
|
52
52
|
})
|
|
53
53
|
}
|
|
54
54
|
if (productUrlTemplate.includes('/store/:category_slug/:product_slug')) {
|
|
@@ -60,7 +60,7 @@ const PageBannerUI = (props) => {
|
|
|
60
60
|
product_slug: product
|
|
61
61
|
},
|
|
62
62
|
search: `?${businessParameter}=${slug}`,
|
|
63
|
-
replace:
|
|
63
|
+
replace: false
|
|
64
64
|
})
|
|
65
65
|
}
|
|
66
66
|
if (productUrlTemplate.includes('/store/:business_slug') && productUrlTemplate.includes('category_id')) {
|
|
@@ -73,7 +73,7 @@ const PageBannerUI = (props) => {
|
|
|
73
73
|
business_slug: slug
|
|
74
74
|
},
|
|
75
75
|
search: `?${categoryParameter}=${category}&${productParameter}=${product}`,
|
|
76
|
-
replace:
|
|
76
|
+
replace: false
|
|
77
77
|
})
|
|
78
78
|
}
|
|
79
79
|
if (productUrlTemplate.includes('/:business_slug') && !productUrlTemplate.includes('store')) {
|
|
@@ -86,7 +86,7 @@ const PageBannerUI = (props) => {
|
|
|
86
86
|
business_slug: slug
|
|
87
87
|
},
|
|
88
88
|
search: `?${categoryParameter}=${category}&${productParameter}=${product}`,
|
|
89
|
-
replace:
|
|
89
|
+
replace: false
|
|
90
90
|
})
|
|
91
91
|
}
|
|
92
92
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react'
|
|
2
2
|
import Skeleton from 'react-loading-skeleton'
|
|
3
3
|
import IosRadioButtonOn from '@meronex/icons/ios/IosRadioButtonOn'
|
|
4
|
-
import BilStripe from '@meronex/icons/bi/BilStripe'
|
|
5
4
|
import FaCcStripe from '@meronex/icons/fa/FaCcStripe'
|
|
6
5
|
import FaStripeS from '@meronex/icons/fa/FaStripeS'
|
|
7
6
|
import GrStripe from '@meronex/icons/gr/GrStripe'
|
|
@@ -197,7 +196,7 @@ const PaymentOptionsUI = (props) => {
|
|
|
197
196
|
(!isCustomerMode || (isCustomerMode && (paymethod.gateway === 'card_delivery' || paymethod.gateway === 'cash'))) && (
|
|
198
197
|
<PayCard
|
|
199
198
|
isDisabled={isDisabled}
|
|
200
|
-
className={`card ${paymethodSelected?.id === paymethod.id ? 'active' : ''}`}
|
|
199
|
+
className={`card ${(paymethodSelected?.id || isOpenMethod?.paymethod?.id) === paymethod.id ? 'active' : ''}`}
|
|
201
200
|
onClick={() => handlePaymentMethodClick(paymethod)}
|
|
202
201
|
>
|
|
203
202
|
<div>
|
|
@@ -328,7 +327,7 @@ const PaymentOptionsUI = (props) => {
|
|
|
328
327
|
>
|
|
329
328
|
{!isOpenMethod?.paymethod?.credentials?.publishable &&
|
|
330
329
|
<Container>
|
|
331
|
-
<p>{t('ADD_PUBLISHABLE_KEY', 'Please add a
|
|
330
|
+
<p>{t('ADD_PUBLISHABLE_KEY', 'Please add a publishable key')}</p>
|
|
332
331
|
</Container>}
|
|
333
332
|
{isOpenMethod?.paymethod?.credentials?.publishable && stripeDirectMethods?.includes(isOpenMethod?.paymethod?.gateway) && (
|
|
334
333
|
<StripeElementsForm
|
|
@@ -3,10 +3,18 @@ import { QueryLoginSpoonity as QueryLoginSpoonityController, useLanguage } from
|
|
|
3
3
|
import { SpinnerLoader } from '../../../../../components/SpinnerLoader'
|
|
4
4
|
|
|
5
5
|
const QueryLoginSpoonityUI = (props) => {
|
|
6
|
+
const {
|
|
7
|
+
userState
|
|
8
|
+
} = props
|
|
9
|
+
|
|
6
10
|
const [, t] = useLanguage()
|
|
7
11
|
|
|
8
12
|
return (
|
|
9
|
-
|
|
13
|
+
<>
|
|
14
|
+
{userState?.loading ? (
|
|
15
|
+
<SpinnerLoader content={t('LOADING_DELICIOUS_FOOD', 'Loading Ordering Dashboard...')} />
|
|
16
|
+
) : null}
|
|
17
|
+
</>
|
|
10
18
|
)
|
|
11
19
|
}
|
|
12
20
|
|
package/template/app.js
CHANGED
|
@@ -605,19 +605,21 @@ export const App = () => {
|
|
|
605
605
|
{
|
|
606
606
|
isKioskApp
|
|
607
607
|
? <Redirect to={singleBusinessConfig.isActive ? `/${singleBusinessConfig.businessSlug}` : '/'} />
|
|
608
|
-
:
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
<Redirect to='/verify' />
|
|
608
|
+
: queryIntegrationToken && queryIntegrationCode === 'spoonity'
|
|
609
|
+
? <QueryLoginSpoonity token={queryIntegrationToken} />
|
|
610
|
+
: (
|
|
611
|
+
orderStatus.loading && !orderStatus.options?.address?.location ? (
|
|
612
|
+
<SpinnerLoader />
|
|
614
613
|
) : (
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
614
|
+
isUserVerifyRequired ? (
|
|
615
|
+
<Redirect to='/verify' />
|
|
616
|
+
) : (
|
|
617
|
+
(orderStatus.options?.address?.location || isAllowUnaddressOrderType)
|
|
618
|
+
? <BusinessesList searchValueCustom={searchValue} />
|
|
619
|
+
: <Redirect to={singleBusinessConfig.isActive ? `/${singleBusinessConfig.businessSlug}` : '/'} />
|
|
620
|
+
)
|
|
618
621
|
)
|
|
619
622
|
)
|
|
620
|
-
)
|
|
621
623
|
}
|
|
622
624
|
</Route>
|
|
623
625
|
<Route exact path='/business_search'>
|