ordering-ui-external 10.1.0 → 10.2.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.
- package/_bundles/{0.ordering-ui.e9827c5566d8cce0eaa4.js → 0.ordering-ui.8384f3801abcc340af2a.js} +1 -1
- package/_bundles/{1.ordering-ui.e9827c5566d8cce0eaa4.js → 1.ordering-ui.8384f3801abcc340af2a.js} +1 -1
- package/_bundles/{2.ordering-ui.e9827c5566d8cce0eaa4.js → 2.ordering-ui.8384f3801abcc340af2a.js} +1 -1
- package/_bundles/{4.ordering-ui.e9827c5566d8cce0eaa4.js → 4.ordering-ui.8384f3801abcc340af2a.js} +1 -1
- package/_bundles/{5.ordering-ui.e9827c5566d8cce0eaa4.js → 5.ordering-ui.8384f3801abcc340af2a.js} +1 -1
- package/_bundles/{6.ordering-ui.e9827c5566d8cce0eaa4.js → 6.ordering-ui.8384f3801abcc340af2a.js} +1 -1
- package/_bundles/{7.ordering-ui.e9827c5566d8cce0eaa4.js → 7.ordering-ui.8384f3801abcc340af2a.js} +2 -2
- package/_bundles/{8.ordering-ui.e9827c5566d8cce0eaa4.js → 8.ordering-ui.8384f3801abcc340af2a.js} +1 -1
- package/_bundles/{9.ordering-ui.e9827c5566d8cce0eaa4.js → 9.ordering-ui.8384f3801abcc340af2a.js} +1 -1
- package/_bundles/ordering-ui.8384f3801abcc340af2a.js +2 -0
- package/_modules/components/BusinessBasicInformation/index.js +7 -10
- package/_modules/components/OrderDetails/index.js +14 -17
- package/_modules/components/ProductItemAccordion/index.js +4 -5
- package/_modules/components/RenderProductsLayout/SearchProducts/index.js +2 -5
- package/_modules/components/UserFormDetails/index.js +7 -8
- package/_modules/components/UserProfileForm/ProfileOptions/index.js +4 -5
- package/_modules/components/UserProfileForm/index.js +10 -11
- package/_modules/contexts/ThemeContext/index.js +1 -1
- package/_modules/themes/five/src/components/AddressList/index.js +0 -3
- package/_modules/themes/five/src/components/BusinessController/index.js +11 -14
- package/_modules/themes/five/src/components/BusinessInformation/styles.js +19 -14
- package/_modules/themes/five/src/components/BusinessPreorder/index.js +51 -10
- package/_modules/themes/five/src/components/BusinessPreorder/styles.js +32 -25
- package/_modules/themes/five/src/components/BusinessProductsCategories/index.js +2 -5
- package/_modules/themes/five/src/components/BusinessProductsListing/index.js +11 -4
- package/_modules/themes/five/src/components/BusinessProductsListing/styles.js +11 -12
- package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +5 -10
- package/_modules/themes/five/src/components/Cart/index.js +17 -9
- package/_modules/themes/five/src/components/CartPopover/index.js +4 -7
- package/_modules/themes/five/src/components/CartPopover/styles.js +4 -1
- package/_modules/themes/five/src/components/Checkout/index.js +3 -6
- package/_modules/themes/five/src/components/Confirm/styles.js +16 -13
- package/_modules/themes/five/src/components/DatePicker/index.js +2 -1
- package/_modules/themes/five/src/components/Favorite/index.js +4 -5
- package/_modules/themes/five/src/components/Footer/index.js +2 -3
- package/_modules/themes/five/src/components/Header/index.js +5 -8
- package/_modules/themes/five/src/components/HeaderOption/index.js +4 -5
- package/_modules/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/index.js +7 -10
- package/_modules/themes/five/src/components/HorizontalOrdersLayout/styles.js +1 -1
- package/_modules/themes/five/src/components/Modal/styles.js +4 -2
- package/_modules/themes/five/src/components/MomentContent/index.js +16 -6
- package/_modules/themes/five/src/components/MomentControl/index.js +44 -34
- package/_modules/themes/five/src/components/MomentControl/styles.js +49 -27
- package/_modules/themes/five/src/components/OrderDetails/index.js +31 -24
- package/_modules/themes/five/src/components/OrderDetails/layouts/Kiosk/index.js +4 -7
- package/_modules/themes/five/src/components/OrderTypeSelectorContent/index.js +11 -1
- package/_modules/themes/five/src/components/OrdersOption/PreviousBusinessOrdered/index.js +4 -5
- package/_modules/themes/five/src/components/PageBanner/index.js +75 -54
- package/_modules/themes/five/src/components/ProductForm/styles.js +12 -9
- package/_modules/themes/five/src/components/ProductItemAccordion/index.js +0 -3
- package/_modules/themes/five/src/components/ProductOption/styles.js +4 -1
- package/_modules/themes/five/src/components/RenderProductsLayout/index.js +8 -9
- package/_modules/themes/five/src/components/SingleProductCard/layouts/starbucks/index.js +0 -3
- package/_modules/themes/five/src/components/UserFormDetails/index.js +3 -6
- package/_modules/themes/five/src/components/UserPopover/index.js +3 -6
- package/_modules/themes/five/src/components/UserPopover/styles.js +8 -5
- package/_modules/themes/five/src/components/UserProfileForm/ProfileOptions/index.js +4 -5
- package/_modules/themes/five/src/components/UserProfileForm/index.js +2 -5
- package/_modules/themes/six/src/components/BusinessBasicInformation/index.js +8 -9
- package/_modules/themes/six/src/components/BusinessProductsListing/SearchProducts/index.js +3 -6
- package/package.json +2 -2
- package/src/components/BusinessBasicInformation/index.js +7 -8
- package/src/components/OrderDetails/index.js +14 -16
- package/src/components/ProductItemAccordion/index.js +4 -3
- package/src/components/RenderProductsLayout/SearchProducts/index.js +2 -3
- package/src/components/UserFormDetails/index.js +6 -5
- package/src/components/UserProfileForm/ProfileOptions/index.js +4 -4
- package/src/components/UserProfileForm/index.js +10 -10
- package/src/contexts/ThemeContext/index.js +1 -1
- package/src/themes/five/src/components/AddressForm/index.js +1 -2
- package/src/themes/five/src/components/AddressList/index.js +1 -3
- package/src/themes/five/src/components/BusinessController/index.js +2 -4
- package/src/themes/five/src/components/BusinessInformation/index.js +1 -2
- package/src/themes/five/src/components/BusinessInformation/styles.js +2 -2
- package/src/themes/five/src/components/BusinessPreorder/index.js +61 -10
- package/src/themes/five/src/components/BusinessPreorder/styles.js +93 -43
- package/src/themes/five/src/components/BusinessProductsCategories/index.js +2 -3
- package/src/themes/five/src/components/BusinessProductsList/index.js +1 -2
- package/src/themes/five/src/components/BusinessProductsListing/index.js +10 -3
- package/src/themes/five/src/components/BusinessProductsListing/styles.js +1 -1
- package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +6 -7
- package/src/themes/five/src/components/Cart/index.js +11 -4
- package/src/themes/five/src/components/CartPopover/index.js +2 -3
- package/src/themes/five/src/components/CartPopover/styles.js +1 -1
- package/src/themes/five/src/components/Checkout/index.js +2 -4
- package/src/themes/five/src/components/Confirm/styles.js +1 -1
- package/src/themes/five/src/components/DatePicker/index.js +1 -0
- package/src/themes/five/src/components/Favorite/index.js +4 -3
- package/src/themes/five/src/components/Footer/index.js +3 -2
- package/src/themes/five/src/components/Header/index.js +4 -5
- package/src/themes/five/src/components/HeaderOption/index.js +4 -3
- package/src/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/index.js +7 -8
- package/src/themes/five/src/components/HorizontalOrdersLayout/styles.js +1 -0
- package/src/themes/five/src/components/Modal/styles.js +1 -1
- package/src/themes/five/src/components/MomentContent/index.js +17 -8
- package/src/themes/five/src/components/MomentControl/index.js +83 -45
- package/src/themes/five/src/components/MomentControl/styles.js +137 -34
- package/src/themes/five/src/components/MyOrders/index.js +1 -1
- package/src/themes/five/src/components/OrderDetails/index.js +50 -21
- package/src/themes/five/src/components/OrderDetails/layouts/Kiosk/index.js +4 -6
- package/src/themes/five/src/components/OrderTypeSelectorContent/index.js +13 -1
- package/src/themes/five/src/components/OrdersOption/PreviousBusinessOrdered/index.js +4 -3
- package/src/themes/five/src/components/PageBanner/index.js +64 -50
- package/src/themes/five/src/components/ProductForm/styles.js +1 -1
- package/src/themes/five/src/components/ProductItemAccordion/index.js +1 -2
- package/src/themes/five/src/components/ProductOption/styles.js +1 -1
- package/src/themes/five/src/components/RenderProductsLayout/index.js +9 -6
- package/src/themes/five/src/components/SingleProductCard/layouts/starbucks/index.js +1 -2
- package/src/themes/five/src/components/UserFormDetails/index.js +3 -4
- package/src/themes/five/src/components/UserPopover/index.js +3 -4
- package/src/themes/five/src/components/UserPopover/styles.js +1 -1
- package/src/themes/five/src/components/UserProfileForm/ProfileOptions/index.js +4 -3
- package/src/themes/five/src/components/UserProfileForm/index.js +2 -4
- package/src/themes/six/src/components/BusinessBasicInformation/index.js +8 -7
- package/src/themes/six/src/components/BusinessProductsListing/SearchProducts/index.js +2 -3
- package/template/app.js +15 -10
- package/template/components/HelmetTags/index.js +3 -2
- package/template/pages/AddressList/index.js +4 -3
- package/template/pages/BusinessProductsList/index.js +5 -4
- package/template/pages/BusinessesList/index.js +6 -6
- package/template/pages/Checkout/index.js +6 -4
- package/template/pages/Home/index.js +4 -2
- package/template/pages/MessagesList/index.js +5 -4
- package/template/pages/MyOrders/index.js +6 -5
- package/template/pages/OrderDetails/index.js +4 -3
- package/_bundles/ordering-ui.e9827c5566d8cce0eaa4.js +0 -2
- package/template/components/OrderingThemeUpdated/index.js +0 -41
- /package/_bundles/{7.ordering-ui.e9827c5566d8cce0eaa4.js.LICENSE.txt → 7.ordering-ui.8384f3801abcc340af2a.js.LICENSE.txt} +0 -0
- /package/_bundles/{ordering-ui.e9827c5566d8cce0eaa4.js.LICENSE.txt → ordering-ui.8384f3801abcc340af2a.js.LICENSE.txt} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react'
|
|
2
|
-
import { useApi, useEvent, useSite
|
|
2
|
+
import { useApi, useEvent, useSite } from 'ordering-components-external'
|
|
3
3
|
import { HomeHero } from '../../../src/themes/five/src/components/HomeHero'
|
|
4
4
|
import { KioskHomeHero } from '../../../src/themes/five/src/components/HomeHero/layouts/KioskHomeHero'
|
|
5
5
|
import { useHistory } from 'react-router-dom'
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
SkeletonSide
|
|
19
19
|
} from './styles'
|
|
20
20
|
import { checkSiteUrl } from '../../Utils'
|
|
21
|
+
import { useTheme } from 'styled-components'
|
|
21
22
|
|
|
22
23
|
export const HomePage = (props) => {
|
|
23
24
|
const history = useHistory()
|
|
@@ -25,7 +26,8 @@ export const HomePage = (props) => {
|
|
|
25
26
|
const [ordering] = useApi()
|
|
26
27
|
const [events] = useEvent()
|
|
27
28
|
const [{ site }] = useSite()
|
|
28
|
-
const
|
|
29
|
+
const theme = useTheme()
|
|
30
|
+
|
|
29
31
|
const websiteThemeType = theme?.my_products?.components?.website_theme?.components?.type
|
|
30
32
|
const websiteThemeBusinessSlug = theme?.my_products?.components?.website_theme?.components?.business_slug
|
|
31
33
|
const updatedBusinessSlug = (websiteThemeType === 'single_store' && websiteThemeBusinessSlug) || settings?.businessSlug
|
|
@@ -2,14 +2,15 @@ import React from 'react'
|
|
|
2
2
|
import { MessagesListing } from '../../../src/themes/five/src/components/MessagesListing'
|
|
3
3
|
|
|
4
4
|
import { HelmetTags } from '../../components/HelmetTags'
|
|
5
|
-
import { useEvent
|
|
5
|
+
import { useEvent } from 'ordering-components-external'
|
|
6
6
|
import settings from '../../config'
|
|
7
|
+
import { useTheme } from 'styled-components'
|
|
7
8
|
|
|
8
9
|
export const MessagesList = (props) => {
|
|
9
10
|
const [events] = useEvent()
|
|
10
|
-
const
|
|
11
|
-
const websiteThemeType =
|
|
12
|
-
const websiteThemeFranchiseSlug =
|
|
11
|
+
const theme = useTheme()
|
|
12
|
+
const websiteThemeType = theme?.my_products?.components?.website_theme?.components?.type
|
|
13
|
+
const websiteThemeFranchiseSlug = theme?.my_products?.components?.website_theme?.components?.franchise_slug
|
|
13
14
|
const updatedFranchiseSlug = (websiteThemeType === 'franchise' && websiteThemeFranchiseSlug) || settings?.franchiseSlug
|
|
14
15
|
|
|
15
16
|
const messageprops = {
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { useSite, useEvent
|
|
2
|
+
import { useSite, useEvent } from 'ordering-components-external'
|
|
3
3
|
import { MyOrders as MyOrdersController } from '../../../src/themes/five/src/components/MyOrders'
|
|
4
4
|
import { HelmetTags } from '../../components/HelmetTags'
|
|
5
5
|
import settings from '../../config'
|
|
6
6
|
import { checkSiteUrl } from '../../Utils'
|
|
7
7
|
import { useWindowSize } from '../../../src/hooks/useWindowSize'
|
|
8
|
+
import { useTheme } from 'styled-components'
|
|
8
9
|
|
|
9
10
|
export const MyOrders = (props) => {
|
|
10
11
|
const [events] = useEvent()
|
|
11
12
|
const [{ site }] = useSite()
|
|
12
|
-
const
|
|
13
|
-
const websiteThemeType =
|
|
14
|
-
const websiteThemeBusinessSlug =
|
|
13
|
+
const theme = useTheme()
|
|
14
|
+
const websiteThemeType = theme?.my_products?.components?.website_theme?.components?.type
|
|
15
|
+
const websiteThemeBusinessSlug = theme?.my_products?.components?.website_theme?.components?.business_slug
|
|
15
16
|
const updatedBusinessSlug = (websiteThemeType === 'single_store' && websiteThemeBusinessSlug) || settings?.businessSlug
|
|
16
|
-
const websiteThemeFranchiseSlug =
|
|
17
|
+
const websiteThemeFranchiseSlug = theme?.my_products?.components?.website_theme?.components?.franchise_slug
|
|
17
18
|
const updatedFranchiseSlug = (websiteThemeType === 'franchise' && websiteThemeFranchiseSlug) || settings?.franchiseSlug
|
|
18
19
|
|
|
19
20
|
const windowSize = useWindowSize()
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { useHistory, useParams, useLocation } from 'react-router-dom'
|
|
3
3
|
import { HelmetTags } from '../../components/HelmetTags'
|
|
4
|
-
import {
|
|
4
|
+
import { useSite, useEvent } from 'ordering-components-external'
|
|
5
5
|
import { OrderDetails } from '../../../src/themes/five/src/components/OrderDetails'
|
|
6
6
|
import { OrderDetails as OrderDetailsKiosk } from '../../../src/themes/five/src/components/OrderDetails/layouts/Kiosk'
|
|
7
7
|
import { OrderDetails as OrderDetailsOld } from '../../../src/components/OrderDetails'
|
|
8
8
|
import settings from '../../config'
|
|
9
9
|
import { checkSiteUrl } from '../../Utils'
|
|
10
|
+
import { useTheme } from 'styled-components'
|
|
10
11
|
|
|
11
12
|
export const OrderDetailsPage = (props) => {
|
|
12
13
|
const history = useHistory()
|
|
13
14
|
const { orderId } = useParams()
|
|
14
15
|
const hashKey = new URLSearchParams(useLocation()?.search)?.get('hash') || null
|
|
15
|
-
const [orderingTheme] = useOrderingTheme()
|
|
16
16
|
const [events] = useEvent()
|
|
17
17
|
const [{ site }] = useSite()
|
|
18
|
+
const theme = useTheme()
|
|
18
19
|
const businessUrlTemplate = checkSiteUrl(site?.business_url_template, '/store/:business_slug')
|
|
19
20
|
|
|
20
21
|
const useKioskApp = settings?.use_kiosk
|
|
21
22
|
const OrderDetailsComponent = useKioskApp ? OrderDetailsKiosk
|
|
22
|
-
:
|
|
23
|
+
: theme?.confirmation?.components?.layout?.type === 'old'
|
|
23
24
|
? OrderDetailsOld
|
|
24
25
|
: OrderDetails
|
|
25
26
|
|