ordering-ui-external 2.3.7 → 2.4.0

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.
Files changed (39) hide show
  1. package/_bundles/{7.ordering-ui.f7f389e931a1667d2943.js → 7.ordering-ui.514c8d0a101626d93843.js} +1 -1
  2. package/_bundles/ordering-ui.514c8d0a101626d93843.js +2 -0
  3. package/_modules/themes/five/src/components/BusinessProductsListing/index.js +6 -1
  4. package/_modules/themes/five/src/components/Cart/index.js +16 -16
  5. package/_modules/themes/five/src/components/Messages/index.js +3 -1
  6. package/_modules/themes/five/src/components/MultiCartsPaymethodsAndWallets/index.js +33 -8
  7. package/_modules/themes/five/src/components/MultiCartsPaymethodsAndWallets/styles.js +10 -6
  8. package/_modules/themes/five/src/components/MultiCheckout/index.js +43 -15
  9. package/_modules/themes/five/src/components/MyOrders/styles.js +3 -3
  10. package/_modules/themes/five/src/components/OrderDetails/OrderEta.js +6 -4
  11. package/_modules/themes/five/src/components/OrderProgress/index.js +2 -1
  12. package/_modules/themes/five/src/components/PageBanner/index.js +6 -6
  13. package/_modules/themes/five/src/components/PaymentOptions/index.js +22 -22
  14. package/_modules/themes/five/src/components/QueryLoginSpoonity/index.js +3 -2
  15. package/package.json +2 -2
  16. package/src/themes/five/src/components/BusinessProductsListing/index.js +7 -1
  17. package/src/themes/five/src/components/Cart/index.js +13 -19
  18. package/src/themes/five/src/components/Messages/index.js +4 -9
  19. package/src/themes/five/src/components/MultiCartsPaymethodsAndWallets/index.js +52 -16
  20. package/src/themes/five/src/components/MultiCartsPaymethodsAndWallets/styles.js +12 -0
  21. package/src/themes/five/src/components/MultiCheckout/index.js +37 -3
  22. package/src/themes/five/src/components/MyOrders/styles.js +2 -4
  23. package/src/themes/five/src/components/OrderDetails/OrderEta.js +4 -4
  24. package/src/themes/five/src/components/OrderProgress/index.js +2 -2
  25. package/src/themes/five/src/components/PageBanner/index.js +6 -6
  26. package/src/themes/five/src/components/PaymentOptions/index.js +2 -3
  27. package/src/themes/five/src/components/QueryLoginSpoonity/index.js +9 -1
  28. package/template/app.js +12 -10
  29. package/_bundles/ordering-ui.f7f389e931a1667d2943.js +0 -2
  30. /package/_bundles/{0.ordering-ui.f7f389e931a1667d2943.js → 0.ordering-ui.514c8d0a101626d93843.js} +0 -0
  31. /package/_bundles/{1.ordering-ui.f7f389e931a1667d2943.js → 1.ordering-ui.514c8d0a101626d93843.js} +0 -0
  32. /package/_bundles/{2.ordering-ui.f7f389e931a1667d2943.js → 2.ordering-ui.514c8d0a101626d93843.js} +0 -0
  33. /package/_bundles/{4.ordering-ui.f7f389e931a1667d2943.js → 4.ordering-ui.514c8d0a101626d93843.js} +0 -0
  34. /package/_bundles/{5.ordering-ui.f7f389e931a1667d2943.js → 5.ordering-ui.514c8d0a101626d93843.js} +0 -0
  35. /package/_bundles/{6.ordering-ui.f7f389e931a1667d2943.js → 6.ordering-ui.514c8d0a101626d93843.js} +0 -0
  36. /package/_bundles/{7.ordering-ui.f7f389e931a1667d2943.js.LICENSE.txt → 7.ordering-ui.514c8d0a101626d93843.js.LICENSE.txt} +0 -0
  37. /package/_bundles/{8.ordering-ui.f7f389e931a1667d2943.js → 8.ordering-ui.514c8d0a101626d93843.js} +0 -0
  38. /package/_bundles/{9.ordering-ui.f7f389e931a1667d2943.js → 9.ordering-ui.514c8d0a101626d93843.js} +0 -0
  39. /package/_bundles/{ordering-ui.f7f389e931a1667d2943.js.LICENSE.txt → ordering-ui.514c8d0a101626d93843.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: true })
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: true })
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: true
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: true
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: true
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: true
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 stripe key')}</p>
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
- <SpinnerLoader content={t('LOADING_DELICIOUS_FOOD', 'Loading Ordering Dashboard...')} />
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
- orderStatus.loading && !orderStatus.options?.address?.location ? (
610
- <SpinnerLoader />
611
- ) : (
612
- isUserVerifyRequired ? (
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
- (orderStatus.options?.address?.location || isAllowUnaddressOrderType)
616
- ? <BusinessesList searchValueCustom={searchValue} />
617
- : <Redirect to={singleBusinessConfig.isActive ? `/${singleBusinessConfig.businessSlug}` : '/'} />
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'>