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.
- package/_bundles/{7.ordering-ui.2c4c0317bc47a947e415.js → 7.ordering-ui.e758aec40c3bf292cadb.js} +1 -1
- package/_bundles/ordering-ui.e758aec40c3bf292cadb.js +2 -0
- package/_modules/themes/five/src/components/GiftCard/PurchaseGiftCard/index.js +17 -3
- package/_modules/themes/five/src/components/GiftCard/PurchaseGiftCard/styles.js +23 -11
- package/_modules/themes/six/src/components/Header/index.js +113 -9
- package/_modules/utils/index.js +18 -8
- package/package.json +2 -2
- package/src/themes/five/src/components/GiftCard/PurchaseGiftCard/index.js +18 -3
- package/src/themes/five/src/components/GiftCard/PurchaseGiftCard/styles.js +32 -6
- package/src/themes/six/src/components/Header/index.js +113 -4
- package/src/utils/index.js +11 -4
- package/template/app.js +8 -8
- package/_bundles/ordering-ui.2c4c0317bc47a947e415.js +0 -2
- /package/_bundles/{0.ordering-ui.2c4c0317bc47a947e415.js → 0.ordering-ui.e758aec40c3bf292cadb.js} +0 -0
- /package/_bundles/{1.ordering-ui.2c4c0317bc47a947e415.js → 1.ordering-ui.e758aec40c3bf292cadb.js} +0 -0
- /package/_bundles/{2.ordering-ui.2c4c0317bc47a947e415.js → 2.ordering-ui.e758aec40c3bf292cadb.js} +0 -0
- /package/_bundles/{4.ordering-ui.2c4c0317bc47a947e415.js → 4.ordering-ui.e758aec40c3bf292cadb.js} +0 -0
- /package/_bundles/{5.ordering-ui.2c4c0317bc47a947e415.js → 5.ordering-ui.e758aec40c3bf292cadb.js} +0 -0
- /package/_bundles/{6.ordering-ui.2c4c0317bc47a947e415.js → 6.ordering-ui.e758aec40c3bf292cadb.js} +0 -0
- /package/_bundles/{7.ordering-ui.2c4c0317bc47a947e415.js.LICENSE.txt → 7.ordering-ui.e758aec40c3bf292cadb.js.LICENSE.txt} +0 -0
- /package/_bundles/{8.ordering-ui.2c4c0317bc47a947e415.js → 8.ordering-ui.e758aec40c3bf292cadb.js} +0 -0
- /package/_bundles/{9.ordering-ui.2c4c0317bc47a947e415.js → 9.ordering-ui.e758aec40c3bf292cadb.js} +0 -0
- /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?.
|
|
175
|
-
const websiteThemeBusinessSlug = themeUpdated?.
|
|
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?.
|
|
188
|
+
const signUpBusinesslayout = themeUpdated?.business_signup?.components?.layout?.type === 'old'
|
|
189
189
|
? 'old'
|
|
190
190
|
: 'new'
|
|
191
191
|
|
|
192
|
-
const signUpDriverlayout = themeUpdated?.
|
|
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?.
|
|
198
|
+
: themeUpdated?.header?.components?.layout?.type === 'old'
|
|
199
199
|
? HeaderOld
|
|
200
|
-
: themeUpdated?.
|
|
200
|
+
: themeUpdated?.header?.components?.layout?.type === 'red'
|
|
201
201
|
? HeaderRed
|
|
202
|
-
: themeUpdated?.
|
|
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?.
|
|
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
|