ordering-ui-external 5.0.1 → 5.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.
Files changed (37) hide show
  1. package/_bundles/{0.ordering-ui.dc2501dcf51ed5b7b821.js → 0.ordering-ui.72b67ac0e449c40276fb.js} +1 -1
  2. package/_bundles/{4.ordering-ui.dc2501dcf51ed5b7b821.js → 4.ordering-ui.72b67ac0e449c40276fb.js} +1 -1
  3. package/_bundles/{7.ordering-ui.dc2501dcf51ed5b7b821.js → 7.ordering-ui.72b67ac0e449c40276fb.js} +1 -1
  4. package/_bundles/ordering-ui.72b67ac0e449c40276fb.js +2 -0
  5. package/_modules/components/Checkout/index.js +12 -7
  6. package/_modules/components/PaymentOptions/index.js +7 -1
  7. package/_modules/themes/five/src/components/AddressForm/index.js +8 -9
  8. package/_modules/themes/five/src/components/BusinessBasicInformation/index.js +2 -2
  9. package/_modules/themes/five/src/components/BusinessProductsListing/index.js +12 -1
  10. package/_modules/themes/five/src/components/BusinessProductsListing/styles.js +1 -1
  11. package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +2 -2
  12. package/_modules/themes/five/src/components/MultiCheckout/index.js +3 -2
  13. package/_modules/themes/five/src/components/OrderDetails/OrderHistory.js +1 -1
  14. package/_modules/themes/five/src/components/OrderDetails/index.js +1 -0
  15. package/_modules/themes/five/src/components/OrderTypeSelectorContent/index.js +11 -10
  16. package/package.json +2 -2
  17. package/src/components/Checkout/index.js +12 -6
  18. package/src/components/PaymentOptions/index.js +7 -1
  19. package/src/themes/five/src/components/AddressForm/index.js +6 -5
  20. package/src/themes/five/src/components/BusinessBasicInformation/index.js +4 -4
  21. package/src/themes/five/src/components/BusinessProductsListing/index.js +12 -0
  22. package/src/themes/five/src/components/BusinessProductsListing/styles.js +3 -0
  23. package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +3 -1
  24. package/src/themes/five/src/components/MultiCheckout/index.js +4 -1
  25. package/src/themes/five/src/components/OrderDetails/OrderHistory.js +6 -2
  26. package/src/themes/five/src/components/OrderDetails/index.js +1 -0
  27. package/src/themes/five/src/components/OrderTypeSelectorContent/index.js +2 -2
  28. package/template/pages/OrderDetails/index.js +1 -0
  29. package/_bundles/ordering-ui.dc2501dcf51ed5b7b821.js +0 -2
  30. /package/_bundles/{1.ordering-ui.dc2501dcf51ed5b7b821.js → 1.ordering-ui.72b67ac0e449c40276fb.js} +0 -0
  31. /package/_bundles/{2.ordering-ui.dc2501dcf51ed5b7b821.js → 2.ordering-ui.72b67ac0e449c40276fb.js} +0 -0
  32. /package/_bundles/{5.ordering-ui.dc2501dcf51ed5b7b821.js → 5.ordering-ui.72b67ac0e449c40276fb.js} +0 -0
  33. /package/_bundles/{6.ordering-ui.dc2501dcf51ed5b7b821.js → 6.ordering-ui.72b67ac0e449c40276fb.js} +0 -0
  34. /package/_bundles/{7.ordering-ui.dc2501dcf51ed5b7b821.js.LICENSE.txt → 7.ordering-ui.72b67ac0e449c40276fb.js.LICENSE.txt} +0 -0
  35. /package/_bundles/{8.ordering-ui.dc2501dcf51ed5b7b821.js → 8.ordering-ui.72b67ac0e449c40276fb.js} +0 -0
  36. /package/_bundles/{9.ordering-ui.dc2501dcf51ed5b7b821.js → 9.ordering-ui.72b67ac0e449c40276fb.js} +0 -0
  37. /package/_bundles/{ordering-ui.dc2501dcf51ed5b7b821.js.LICENSE.txt → ordering-ui.72b67ac0e449c40276fb.js.LICENSE.txt} +0 -0
@@ -28,11 +28,11 @@ export const OrderTypeSelectorContentUI = (props) => {
28
28
  handleChangeOrderType && handleChangeOrderType(orderType)
29
29
  }
30
30
 
31
+ const titleOrdertype = theme?.order_types?.components?.title_menu
31
32
  const orderTypeImage = (type) => theme?.order_types?.components?.[type]?.components?.image
32
33
  const orderTypeTitle = (type) => theme?.order_types?.components?.[type]?.components?.title
33
34
  const orderTypeDescription = (type) => theme?.order_types?.components?.[type]?.components?.description
34
35
  const orderTypeCallAction = (type) => theme?.order_types?.components?.[type]?.components?.call_to_action
35
-
36
36
  return (
37
37
  <div className='order-type' style={{ overflow: 'hidden' }}>
38
38
  {props.beforeElements?.map((BeforeElement, i) => (
@@ -42,7 +42,7 @@ export const OrderTypeSelectorContentUI = (props) => {
42
42
  {props.beforeComponents?.map((BeforeComponent, i) => (
43
43
  <BeforeComponent key={i} {...props} />))}
44
44
  <OrderTypeSelectorContainer>
45
- <OrderTypeListTitle>{t('HOW_WILL_YOU_DELIVERY_TYPE', 'How will you delivery type?')}</OrderTypeListTitle>
45
+ <OrderTypeListTitle>{titleOrdertype || t('HOW_WILL_YOU_DELIVERY_TYPE', 'How will you delivery type?')}</OrderTypeListTitle>
46
46
  {
47
47
  orderTypes && (configTypes ? orderTypes.filter(type => configTypes?.includes(type.value)) : orderTypes).map((item, i) => (
48
48
  <OrderTypeListItemContainer
@@ -27,6 +27,7 @@ export const OrderDetailsPage = (props) => {
27
27
  ...props,
28
28
  orderId,
29
29
  hashKey,
30
+ hideViaText: settings?.project === 'chewproject',
30
31
  urlToShare: (hashKey) => hashKey ? `${window.location.origin}/orders/${orderId}?hash=${hashKey}` : null,
31
32
  handleOrderRedirect: () => {
32
33
  history.push('/profile/orders')