ordering-ui-external 10.2.2 → 10.3.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 (23) hide show
  1. package/_bundles/{7.ordering-ui.2c4c0317bc47a947e415.js → 7.ordering-ui.e758aec40c3bf292cadb.js} +1 -1
  2. package/_bundles/ordering-ui.e758aec40c3bf292cadb.js +2 -0
  3. package/_modules/themes/five/src/components/GiftCard/PurchaseGiftCard/index.js +17 -3
  4. package/_modules/themes/five/src/components/GiftCard/PurchaseGiftCard/styles.js +23 -11
  5. package/_modules/themes/six/src/components/Header/index.js +113 -9
  6. package/_modules/utils/index.js +18 -8
  7. package/package.json +2 -2
  8. package/src/themes/five/src/components/GiftCard/PurchaseGiftCard/index.js +18 -3
  9. package/src/themes/five/src/components/GiftCard/PurchaseGiftCard/styles.js +32 -6
  10. package/src/themes/six/src/components/Header/index.js +113 -4
  11. package/src/utils/index.js +11 -4
  12. package/template/app.js +8 -8
  13. package/_bundles/ordering-ui.2c4c0317bc47a947e415.js +0 -2
  14. /package/_bundles/{0.ordering-ui.2c4c0317bc47a947e415.js → 0.ordering-ui.e758aec40c3bf292cadb.js} +0 -0
  15. /package/_bundles/{1.ordering-ui.2c4c0317bc47a947e415.js → 1.ordering-ui.e758aec40c3bf292cadb.js} +0 -0
  16. /package/_bundles/{2.ordering-ui.2c4c0317bc47a947e415.js → 2.ordering-ui.e758aec40c3bf292cadb.js} +0 -0
  17. /package/_bundles/{4.ordering-ui.2c4c0317bc47a947e415.js → 4.ordering-ui.e758aec40c3bf292cadb.js} +0 -0
  18. /package/_bundles/{5.ordering-ui.2c4c0317bc47a947e415.js → 5.ordering-ui.e758aec40c3bf292cadb.js} +0 -0
  19. /package/_bundles/{6.ordering-ui.2c4c0317bc47a947e415.js → 6.ordering-ui.e758aec40c3bf292cadb.js} +0 -0
  20. /package/_bundles/{7.ordering-ui.2c4c0317bc47a947e415.js.LICENSE.txt → 7.ordering-ui.e758aec40c3bf292cadb.js.LICENSE.txt} +0 -0
  21. /package/_bundles/{8.ordering-ui.2c4c0317bc47a947e415.js → 8.ordering-ui.e758aec40c3bf292cadb.js} +0 -0
  22. /package/_bundles/{9.ordering-ui.2c4c0317bc47a947e415.js → 9.ordering-ui.e758aec40c3bf292cadb.js} +0 -0
  23. /package/_bundles/{ordering-ui.2c4c0317bc47a947e415.js.LICENSE.txt → ordering-ui.e758aec40c3bf292cadb.js.LICENSE.txt} +0 -0
package/template/app.js CHANGED
@@ -171,8 +171,8 @@ export const App = () => {
171
171
  }
172
172
  }
173
173
 
174
- const websiteThemeType = themeUpdated?.theme?.my_products?.components?.website_theme?.components?.type
175
- const websiteThemeBusinessSlug = themeUpdated?.theme?.my_products?.components?.website_theme?.components?.business_slug
174
+ const websiteThemeType = themeUpdated?.my_products?.components?.website_theme?.components?.type
175
+ const websiteThemeBusinessSlug = themeUpdated?.my_products?.components?.website_theme?.components?.business_slug
176
176
  const updatedBusinessSlug = (websiteThemeType === 'single_store' && websiteThemeBusinessSlug) || settings?.businessSlug
177
177
 
178
178
  const businessesSlug = {
@@ -185,21 +185,21 @@ export const App = () => {
185
185
  businessSlug: businessesSlug[isKioskApp ? 'kiosk' : 'marketplace']
186
186
  }
187
187
 
188
- const signUpBusinesslayout = themeUpdated?.theme?.business_signup?.components?.layout?.type === 'old'
188
+ const signUpBusinesslayout = themeUpdated?.business_signup?.components?.layout?.type === 'old'
189
189
  ? 'old'
190
190
  : 'new'
191
191
 
192
- const signUpDriverlayout = themeUpdated?.theme?.driver_signup?.components?.layout?.type === 'old'
192
+ const signUpDriverlayout = themeUpdated?.driver_signup?.components?.layout?.type === 'old'
193
193
  ? 'old'
194
194
  : 'new'
195
195
 
196
196
  const HeaderComponent =
197
197
  isKioskApp ? HeaderKiosk
198
- : themeUpdated?.theme?.header?.components?.layout?.type === 'old'
198
+ : themeUpdated?.header?.components?.layout?.type === 'old'
199
199
  ? HeaderOld
200
- : themeUpdated?.theme?.header?.components?.layout?.type === 'red'
200
+ : themeUpdated?.header?.components?.layout?.type === 'red'
201
201
  ? HeaderRed
202
- : themeUpdated?.theme?.header?.components?.layout?.type === 'starbucks'
202
+ : themeUpdated?.header?.components?.layout?.type === 'starbucks'
203
203
  ? HeaderStarbucks
204
204
  : Header
205
205
 
@@ -210,7 +210,7 @@ export const App = () => {
210
210
  const isEmailVerifyRequired = auth && configs?.verification_email_required?.value === '1' && !user?.email_verified
211
211
  const isPhoneVerifyRequired = auth && configs?.verification_phone_required?.value === '1' && !user?.phone_verified
212
212
  const isUserVerifyRequired = (isEmailVerifyRequired || isPhoneVerifyRequired) && !isKioskApp
213
- const isHideFooter = themeUpdated?.theme?.footer?.hidden
213
+ const isHideFooter = themeUpdated?.footer?.hidden
214
214
 
215
215
  const isHome = location.pathname === '/' || location.pathname === '/home'
216
216
  const isFooterPage = location.pathname === '/pages/footer' || isKioskApp || isHideFooter