@designcrowd/library.brand-page 5.14.8-flacky-nav-21 → 5.14.9
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/lib/src/{CreatedOnBrandCrowd-de-de-C7UP0wnU.js → CreatedOnBrandCrowd-de-de-5lGSHeUR.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-Dn7kLByA.js → CreatedOnBrandCrowd-en-us-q6NzpjRy.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-BniaWIta.js → CreatedOnBrandCrowd-es-es-Y6tA9XVi.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-L19SCOKe.js → CreatedOnBrandCrowd-fr-fr-eMjr_GUU.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-yF1hS_QN.js → CreatedOnBrandCrowd-pt-pt-BDkCWJFa.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-COoIYzR_.js → CreatedOnDcom-de-de-DqOF75SZ.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-DPxw4zug.js → CreatedOnDcom-en-us-Cikdxq8F.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-B6sdWmmP.js → CreatedOnDcom-es-es-DDnXD56X.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-C_P7GYue.js → CreatedOnDcom-fr-fr-BpVmVCAd.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-QAdIC2fu.js → CreatedOnDcom-pt-pt-D-Mf6uF4.js} +1 -1
- package/lib/src/brand-page/constants/logo.constants.d.ts +0 -1
- package/lib/src/brand-page/constants/logo.constants.js +0 -2
- package/lib/src/brand-page/constants/styles.constants.d.ts +2 -2
- package/lib/src/brand-page/constants/styles.constants.js +2 -2
- package/lib/src/brand-page/utils/migration/migration-01.d.ts +2 -3
- package/lib/src/brand-page/utils/migration/migration-01.js +2 -3
- package/lib/src/brand-page/utils/migration/migration-01_1.d.ts +3 -4
- package/lib/src/brand-page/utils/migration/migration-01_1.js +2 -3
- package/lib/src/brand-page/utils/migration/migration-02.d.ts +3 -4
- package/lib/src/brand-page/utils/migration/migration-02.js +2 -3
- package/lib/src/brand-page/utils/migration/migration-03.d.ts +3 -4
- package/lib/src/brand-page/utils/migration/migration-03.js +2 -3
- package/lib/src/brand-page/utils/migration/migration-04.d.ts +3 -4
- package/lib/src/brand-page/utils/migration/migration-04.js +2 -3
- package/lib/src/brand-page/utils/migration/migration-05.d.ts +2 -6
- package/lib/src/brand-page/utils/migration/migration-05.js +2 -3
- package/lib/src/brand-page/utils/migration/migration-05_1.d.ts +3 -3
- package/lib/src/brand-page/utils/migration/migration-05_1.js +3 -3
- package/lib/src/brand-page/utils/migration/migration-05_2.d.ts +3 -3
- package/lib/src/brand-page/utils/migration/migration-05_2.js +2 -3
- package/lib/src/brand-page/utils/migration.util.d.ts +1 -6
- package/lib/src/brand-page/utils/migration.util.js +6 -16
- package/lib/src/brand-page/utils/personalisation.util.js +2 -2
- package/lib/src/brand-page/utils/view-model.util.d.ts +4 -6
- package/lib/src/brand-page/utils/view-model.util.js +13 -14
- package/lib/src/brand-page/view-models.d.ts +0 -1
- package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.d.ts +0 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.js +2 -48
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMakerTemplateSettings.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.d.ts +0 -1122
- package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.js +0 -1058
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/google-analytics/GoogleAnalytics.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/social-share/SocialShare.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.d.ts +1 -2
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +2 -3
- package/lib/src/css/library.brand-page-brandCrowd.min.css +6 -3
- package/lib/src/css/library.brand-page-brandPage.min.css +6 -3
- package/lib/src/css/library.brand-page-designCom.min.css +6 -3
- package/lib/src/css/library.brand-page-preview.min.css +6 -3
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-BX6A4JdA.js → lib-DXgTJds-.js} +8015 -8149
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +1 -1
- package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +1 -1
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +1 -1
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +1 -1
- package/lib/src/shared/page-settings/store/page-settings-store.js +1 -1
- package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +1 -1
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +1 -1
- package/lib/src/shared/template-settings/store/template-settings-store.js +1 -2
- package/package.json +1 -1
- package/src/brand-page/components/logo/Logo.vue +1 -24
- package/src/brand-page/components/logo/LogoRender.vue +20 -56
- package/src/brand-page/constants/logo.constants.ts +0 -3
- package/src/brand-page/constants/styles.constants.ts +2 -2
- package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +1112 -1121
- package/src/brand-page/utils/__snapshots__/migration2.util.test.ts.snap +413 -416
- package/src/brand-page/utils/migration/logo/migration.util.logo.test.ts +3 -3
- package/src/brand-page/utils/migration/migration-01.ts +4 -7
- package/src/brand-page/utils/migration/migration-01_1.ts +3 -6
- package/src/brand-page/utils/migration/migration-02.ts +4 -7
- package/src/brand-page/utils/migration/migration-03.ts +4 -7
- package/src/brand-page/utils/migration/migration-04.ts +4 -7
- package/src/brand-page/utils/migration/migration-05.ts +3 -16
- package/src/brand-page/utils/migration/migration-05_1.ts +4 -6
- package/src/brand-page/utils/migration/migration-05_2.ts +3 -6
- package/src/brand-page/utils/migration.util.test.ts +157 -274
- package/src/brand-page/utils/migration.util.ts +9 -26
- package/src/brand-page/utils/migration2.util.test.ts +2 -7
- package/src/brand-page/utils/personalisation.util.test.ts +9 -9
- package/src/brand-page/utils/personalisation.util.ts +2 -4
- package/src/brand-page/utils/view-model.util.ts +7 -26
- package/src/brand-page/view-models.ts +0 -1
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.ts +1 -52
- package/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.ts +0 -1090
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +1 -4
- package/src/shared/page-settings/store/page-settings-store.ts +0 -1
- package/src/shared/template-settings/store/template-settings-store.ts +1 -2
- package/lib/src/brand-page/utils/migration/migration-06.d.ts +0 -4
- package/lib/src/brand-page/utils/migration/migration-06.js +0 -60
- package/src/brand-page/utils/migration/migration-06.test.ts +0 -384
- package/src/brand-page/utils/migration/migration-06.ts +0 -108
package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts
CHANGED
|
@@ -136,7 +136,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
136
136
|
setBrandPageType({ brandPageType }: {
|
|
137
137
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
138
138
|
}): void;
|
|
139
|
-
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData,
|
|
139
|
+
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData, }: import("../../../../brand-page-maker/stores").InitialisePayload): Promise<void>;
|
|
140
140
|
initialisePages({ pages, sections, }: {
|
|
141
141
|
pages: import("../../../../brand-page").PageModel[];
|
|
142
142
|
sections: import("../../../page-settings/store").PageSettingsStateSections;
|
|
@@ -650,7 +650,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
650
650
|
setBrandPageType({ brandPageType }: {
|
|
651
651
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
652
652
|
}): void;
|
|
653
|
-
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData,
|
|
653
|
+
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData, }: import("../../../../brand-page-maker/stores").InitialisePayload): Promise<void>;
|
|
654
654
|
initialisePages({ pages, sections, }: {
|
|
655
655
|
pages: import("../../../../brand-page").PageModel[];
|
|
656
656
|
sections: import("../../../page-settings/store").PageSettingsStateSections;
|
|
@@ -595,7 +595,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
595
595
|
setBrandPageType({ brandPageType }: {
|
|
596
596
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
597
597
|
}): void;
|
|
598
|
-
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData,
|
|
598
|
+
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData, }: import("../../../../brand-page-maker/stores").InitialisePayload): Promise<void>;
|
|
599
599
|
initialisePages({ pages, sections, }: {
|
|
600
600
|
pages: import("../../../../brand-page").PageModel[];
|
|
601
601
|
sections: import("../../../page-settings/store").PageSettingsStateSections;
|
|
@@ -126,7 +126,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
126
126
|
setBrandPageType({ brandPageType }: {
|
|
127
127
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
128
128
|
}): void;
|
|
129
|
-
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData,
|
|
129
|
+
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData, }: import("../../../brand-page-maker/stores").InitialisePayload): Promise<void>;
|
|
130
130
|
initialisePages({ pages, sections, }: {
|
|
131
131
|
pages: import("../../../brand-page").PageModel[];
|
|
132
132
|
sections: import("../../page-settings/store/page-settings-store").PageSettingsStateSections;
|
|
@@ -3813,7 +3813,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
3813
3813
|
setBrandPageType({ brandPageType }: {
|
|
3814
3814
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
3815
3815
|
}): void;
|
|
3816
|
-
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData,
|
|
3816
|
+
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData, }: import("../../../../brand-page-maker/stores").InitialisePayload): Promise<void>;
|
|
3817
3817
|
initialisePages({ pages, sections, }: {
|
|
3818
3818
|
pages: import("../../../../brand-page").PageModel[];
|
|
3819
3819
|
sections: import("../../store").PageSettingsStateSections;
|
|
@@ -4234,7 +4234,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4234
4234
|
setBrandPageType({ brandPageType }: {
|
|
4235
4235
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
4236
4236
|
}): void;
|
|
4237
|
-
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData,
|
|
4237
|
+
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData, }: import("../../../../brand-page-maker/stores").InitialisePayload): Promise<void>;
|
|
4238
4238
|
initialisePages({ pages, sections, }: {
|
|
4239
4239
|
pages: import("../../../../brand-page").PageModel[];
|
|
4240
4240
|
sections: import("../../store").PageSettingsStateSections;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineStore } from 'pinia';
|
|
2
|
-
import { PageHeaderDesktop, PageHeaderMobile, PageFooterDesktop, PageFooterMobile, VIEWPORTS,
|
|
2
|
+
import { PageHeaderDesktop, PageHeaderMobile, PageFooterDesktop, PageFooterMobile, VIEWPORTS, } from '../../../brand-page';
|
|
3
3
|
import { PAGE_SECTIONS } from '../models';
|
|
4
4
|
import { navigateToPageBySlug } from '../../../brand-page-maker/routing';
|
|
5
5
|
import { getPageSlugFromPageTitle } from '../../../brand-page-maker/utils';
|
package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts
CHANGED
|
@@ -160,7 +160,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
160
160
|
setBrandPageType({ brandPageType }: {
|
|
161
161
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
162
162
|
}): void;
|
|
163
|
-
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData,
|
|
163
|
+
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData, }: import("../../brand-page-maker/stores").InitialisePayload): Promise<void>;
|
|
164
164
|
initialisePages({ pages, sections, }: {
|
|
165
165
|
pages: import("../../brand-page/models").PageModel[];
|
|
166
166
|
sections: import("../page-settings/store").PageSettingsStateSections;
|
|
@@ -568,7 +568,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
568
568
|
setBrandPageType({ brandPageType }: {
|
|
569
569
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
570
570
|
}): void;
|
|
571
|
-
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData,
|
|
571
|
+
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData, }: import("../../../brand-page-maker/stores").InitialisePayload): Promise<void>;
|
|
572
572
|
initialisePages({ pages, sections, }: {
|
|
573
573
|
pages: import("../../../brand-page").PageModel[];
|
|
574
574
|
sections: import("../../page-settings/store").PageSettingsStateSections;
|
|
@@ -103,12 +103,11 @@ export const useUiTemplateSettingsStore = defineStore('uiTemplateSettings', {
|
|
|
103
103
|
}
|
|
104
104
|
const logoSettingsStore = useUiLogoSettingsStore();
|
|
105
105
|
const templateData = JSON.parse(template.data);
|
|
106
|
-
const
|
|
106
|
+
const brandPageModel = migrateBrandPageModel(new BrandPageModel(templateData), {
|
|
107
107
|
logoImage: {
|
|
108
108
|
...logoSettingsStore.selectedLogoImage,
|
|
109
109
|
},
|
|
110
110
|
isUserDraft: false,
|
|
111
|
-
isServerRender: false,
|
|
112
111
|
});
|
|
113
112
|
const uiStore = useUiStore();
|
|
114
113
|
const personalisationContentIndex = uiStore.personalisationData
|
package/package.json
CHANGED
|
@@ -2,35 +2,19 @@
|
|
|
2
2
|
<div
|
|
3
3
|
v-if="viewModel.isVisible"
|
|
4
4
|
class="logo tw-relative tw-justify-center tw-items-center"
|
|
5
|
-
:style="
|
|
6
|
-
!viewModel.useOldLogoRenderSize
|
|
7
|
-
? {
|
|
8
|
-
...(context.isBrandSite
|
|
9
|
-
? {
|
|
10
|
-
margin: 'var(--logo-spacing) 0',
|
|
11
|
-
height: viewModel?.logoImageHeight,
|
|
12
|
-
}
|
|
13
|
-
: {}),
|
|
14
|
-
}
|
|
15
|
-
: {}
|
|
16
|
-
"
|
|
17
5
|
>
|
|
18
|
-
<div v-if="!context.isPreview && context.isBrandSite"
|
|
6
|
+
<div v-if="!context.isPreview && context.isBrandSite">
|
|
19
7
|
<router-link
|
|
20
8
|
v-if="routes.length >= 1"
|
|
21
9
|
:to="{
|
|
22
10
|
name: routes[0].routeName,
|
|
23
11
|
params: routes[0].routeParams,
|
|
24
12
|
}"
|
|
25
|
-
class="tw-block tw-h-full"
|
|
26
13
|
>
|
|
27
14
|
<LazyHydrationWrapper v-if="context.isServerRender">
|
|
28
15
|
<LogoRender
|
|
29
16
|
:is-preview="context.isPreview"
|
|
30
17
|
:is-brand-site="context.isBrandSite"
|
|
31
|
-
:is-brand-page-or-is-brand-contact="
|
|
32
|
-
context.isBrandPageOrIsBrandContact
|
|
33
|
-
"
|
|
34
18
|
:disable-server-render="context.disableLogoRenderOnServerside"
|
|
35
19
|
:has-margin-bottom="hasMarginBottom"
|
|
36
20
|
:alt-text="altText"
|
|
@@ -41,9 +25,6 @@
|
|
|
41
25
|
v-else
|
|
42
26
|
:is-preview="context.isPreview"
|
|
43
27
|
:is-brand-site="context.isBrandSite"
|
|
44
|
-
:is-brand-page-or-is-brand-contact="
|
|
45
|
-
context.isBrandPageOrIsBrandContact
|
|
46
|
-
"
|
|
47
28
|
:disable-server-render="context.disableLogoRenderOnServerside"
|
|
48
29
|
:has-margin-bottom="hasMarginBottom"
|
|
49
30
|
:alt-text="altText"
|
|
@@ -65,9 +46,6 @@
|
|
|
65
46
|
:has-margin-bottom="hasMarginBottom"
|
|
66
47
|
:alt-text="altText"
|
|
67
48
|
:view-model="viewModel"
|
|
68
|
-
:is-brand-page-or-is-brand-contact="
|
|
69
|
-
context.isBrandPageOrIsBrandContact
|
|
70
|
-
"
|
|
71
49
|
/>
|
|
72
50
|
</LazyHydrationWrapper>
|
|
73
51
|
<LogoRender
|
|
@@ -75,7 +53,6 @@
|
|
|
75
53
|
:is-preview="context.isPreview"
|
|
76
54
|
:disable-server-render="context.disableLogoRenderOnServerside"
|
|
77
55
|
:is-brand-site="context.isBrandSite"
|
|
78
|
-
:is-brand-page-or-is-brand-contact="context.isBrandPageOrIsBrandContact"
|
|
79
56
|
:has-margin-bottom="hasMarginBottom"
|
|
80
57
|
:alt-text="altText"
|
|
81
58
|
:view-model="viewModel"
|
|
@@ -1,40 +1,21 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
:class="[
|
|
4
|
-
'logo tw-relative tw-h-full',
|
|
5
|
-
isBrandSite ? 'brand-site' : 'brand-page',
|
|
6
|
-
]"
|
|
7
|
-
>
|
|
2
|
+
<div :class="['logo tw-relative', isBrandSite ? 'brand-site' : 'brand-page']">
|
|
8
3
|
<figure
|
|
9
4
|
v-if="logoImageUrl || !isPreview"
|
|
10
5
|
class="logo__container"
|
|
11
6
|
:class="{
|
|
12
7
|
'tw-mb-10': hasMarginBottom,
|
|
13
8
|
}"
|
|
14
|
-
:style="
|
|
9
|
+
:style="logoBackgroundStyles"
|
|
15
10
|
>
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
height: '100%',
|
|
25
|
-
width: '100%',
|
|
26
|
-
}),
|
|
27
|
-
}"
|
|
28
|
-
>
|
|
29
|
-
<img
|
|
30
|
-
v-if="logoImageUrl"
|
|
31
|
-
data-test-tag="logo"
|
|
32
|
-
class="logo__image"
|
|
33
|
-
:src="logoImageUrl"
|
|
34
|
-
:alt="altText"
|
|
35
|
-
:style="[logoStyle, marginStyle]"
|
|
36
|
-
/>
|
|
37
|
-
</div>
|
|
11
|
+
<img
|
|
12
|
+
v-if="logoImageUrl"
|
|
13
|
+
data-test-tag="logo"
|
|
14
|
+
class="logo__image"
|
|
15
|
+
:src="logoImageUrl"
|
|
16
|
+
:alt="altText"
|
|
17
|
+
:style="logoStyle"
|
|
18
|
+
/>
|
|
38
19
|
</figure>
|
|
39
20
|
</div>
|
|
40
21
|
</template>
|
|
@@ -50,7 +31,6 @@ const props = withDefaults(
|
|
|
50
31
|
disableServerRender?: boolean;
|
|
51
32
|
hasMarginBottom: boolean;
|
|
52
33
|
isBrandSite: boolean;
|
|
53
|
-
isBrandPageOrIsBrandContact: boolean;
|
|
54
34
|
viewModel?: LogoViewModel;
|
|
55
35
|
altText: string;
|
|
56
36
|
}>(),
|
|
@@ -75,15 +55,6 @@ const logoBackgroundStyles = computed(() => {
|
|
|
75
55
|
return `background: ${props.viewModel?.styles.backgroundStyle.backgroundColor}`;
|
|
76
56
|
});
|
|
77
57
|
|
|
78
|
-
const figureDimensions = computed(() => {
|
|
79
|
-
return !props.viewModel?.useOldLogoRenderSize
|
|
80
|
-
? {
|
|
81
|
-
width: '100%',
|
|
82
|
-
height: '100%',
|
|
83
|
-
}
|
|
84
|
-
: {};
|
|
85
|
-
});
|
|
86
|
-
|
|
87
58
|
const logoImageUrl = computed(() => {
|
|
88
59
|
if (typeof logoImageBase64Url.value !== 'undefined') {
|
|
89
60
|
return logoImageBase64Url.value;
|
|
@@ -100,23 +71,12 @@ const logoWidth = computed(() => {
|
|
|
100
71
|
});
|
|
101
72
|
|
|
102
73
|
const logoStyle = computed(() => {
|
|
103
|
-
return
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
: ({
|
|
111
|
-
width: '100%',
|
|
112
|
-
height: '100%',
|
|
113
|
-
} as any);
|
|
114
|
-
});
|
|
115
|
-
|
|
116
|
-
const marginStyle = computed(() => {
|
|
117
|
-
return props.viewModel?.useOldLogoRenderSize
|
|
118
|
-
? { margin: 'var(--logo-spacing) auto' }
|
|
119
|
-
: {};
|
|
74
|
+
return {
|
|
75
|
+
width: '100%',
|
|
76
|
+
height: '100%',
|
|
77
|
+
'max-width': logoWidth.value,
|
|
78
|
+
'max-height': logoHeight.value,
|
|
79
|
+
} as any;
|
|
120
80
|
});
|
|
121
81
|
|
|
122
82
|
const updateLogoImageSvgUrlAsync = async () => {
|
|
@@ -168,4 +128,8 @@ onMounted(async () => {
|
|
|
168
128
|
object-fit: contain;
|
|
169
129
|
height: 6rem;
|
|
170
130
|
}
|
|
131
|
+
|
|
132
|
+
.brand-page .logo__image {
|
|
133
|
+
margin: var(--logo-spacing) auto;
|
|
134
|
+
}
|
|
171
135
|
</style>
|
|
@@ -22,9 +22,9 @@ export const DEFAULT_LOGO_HEIGHT = '9rem';
|
|
|
22
22
|
export const DEFAULT_LOGO_WIDTH = '9rem';
|
|
23
23
|
|
|
24
24
|
// Logo slider values are unit of rem
|
|
25
|
-
export const LOGO_SLIDER_DESKTOP_MIN =
|
|
25
|
+
export const LOGO_SLIDER_DESKTOP_MIN = 5;
|
|
26
26
|
export const LOGO_SLIDER_DESKTOP_MAX = 20;
|
|
27
|
-
export const LOGO_SLIDER_MOBILE_MIN =
|
|
27
|
+
export const LOGO_SLIDER_MOBILE_MIN = 4;
|
|
28
28
|
export const LOGO_SLIDER_MOBILE_MAX = 13;
|
|
29
29
|
|
|
30
30
|
export const CONTENT_TEXT_STYLE_PROPERTY_KEYS = {
|