@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
|
@@ -6,7 +6,7 @@ import * as uuid from 'uuid';
|
|
|
6
6
|
import { createMemoryHistory, createRouter } from 'vue-router';
|
|
7
7
|
import { brandPageApiClient } from '@designcrowd/fe-shared-lib';
|
|
8
8
|
import BrandPageMaker from './BrandPageMaker.vue';
|
|
9
|
-
import { ADMIN_PREVIEW_LOGO_TEMPLATE_MODELS, BRAND_PAGE, brandPagePaymentConfigBrandPageToken, brandPagePaymentConfigsResponse, brandPageBackgroundColor, brandPageBackgroundColorWithShapes, brandPageBackgroundGradient, brandPageBackgroundGradientWithShapes, brandPageBackgroundImage, brandPageBackgroundImageWithShapes, brandPageEmpty, requestPaymentPaymentOptions, userFeatures, supportMePaymentOptions, BRAND_PAGE_MULTI_PAGE, PERSONALISATION_CONTENT, BRAND_PAGE_PERSONALISED, PUBLISHED_DESIGN_DRAFT_TOKEN, BRAND_SITE,
|
|
9
|
+
import { ADMIN_PREVIEW_LOGO_TEMPLATE_MODELS, BRAND_PAGE, brandPagePaymentConfigBrandPageToken, brandPagePaymentConfigsResponse, brandPageBackgroundColor, brandPageBackgroundColorWithShapes, brandPageBackgroundGradient, brandPageBackgroundGradientWithShapes, brandPageBackgroundImage, brandPageBackgroundImageWithShapes, brandPageEmpty, requestPaymentPaymentOptions, userFeatures, supportMePaymentOptions, BRAND_PAGE_MULTI_PAGE, PERSONALISATION_CONTENT, BRAND_PAGE_PERSONALISED, PUBLISHED_DESIGN_DRAFT_TOKEN, BRAND_SITE, CUSTOM_DOMAIN_DESIGN_DRAFT_TOKEN, brandPageCustom, BRAND_CONTACT, BRAND_SITE_SAMPLE, } from './__fixtures__';
|
|
10
10
|
import { gradientLogoDesignAttributes, LOGO_IMAGE_URL, logoVariationImageUrls, sampleLogoTheme, simpleLogoDesignAttributes, } from '../../../__fixtures__';
|
|
11
11
|
import { BRAND_PAGE_TYPES, CONTENT_TEXT_STYLE_PROPERTY_KEYS, CONTENT_TYPES, DISPLAY_STYLE_PREVIEW, PageStyles, BrandPageModel, PageHeaderDesktop, NavigationMobile, NavigationDesktop, NAVIGATION_DISPLAY, TEXT_STYLE_TYPES, VIEWPORTS, GalleryStyles, GALLERY_TYPES, SENSITIVE_CONTENT_TYPES, } from '../../../brand-page';
|
|
12
12
|
import {} from './BrandPageMaker.mixin';
|
|
@@ -469,52 +469,6 @@ export const SamplePublishedWithCustomDomain = {
|
|
|
469
469
|
pinia: setupStoryPinia(),
|
|
470
470
|
}),
|
|
471
471
|
};
|
|
472
|
-
export const SamplePublishedBrandSiteWithLogo = {
|
|
473
|
-
name: 'Sample (published brandsite with logo)',
|
|
474
|
-
render: () => ({
|
|
475
|
-
setup() {
|
|
476
|
-
InitialiseMakerStores({});
|
|
477
|
-
const containerStore = useBrandPageContainerStore();
|
|
478
|
-
containerStore.$patch({
|
|
479
|
-
isSellDomainNameEnabled: true,
|
|
480
|
-
baseFabricRenderUrl: FABRIC_RENDER_BASE_URL,
|
|
481
|
-
});
|
|
482
|
-
containerStore.setBrandPageStatus('Published');
|
|
483
|
-
containerStore.setDesignDraftToken({
|
|
484
|
-
designDraftToken: CUSTOM_DOMAIN_DESIGN_DRAFT_TOKEN,
|
|
485
|
-
});
|
|
486
|
-
containerStore.brandPageBaseUrl = 'https://brand.site';
|
|
487
|
-
containerStore.setSlug({
|
|
488
|
-
slug: 'my-page',
|
|
489
|
-
});
|
|
490
|
-
},
|
|
491
|
-
components: {
|
|
492
|
-
BrandPageMaker,
|
|
493
|
-
},
|
|
494
|
-
data() {
|
|
495
|
-
return {
|
|
496
|
-
viewModel: {
|
|
497
|
-
brandPageData: JSON.stringify(BRAND_SITE_SAMPLE_WITH_LOGO),
|
|
498
|
-
isSaving: false,
|
|
499
|
-
logoDraftDesignAttributes: simpleLogoDesignAttributes,
|
|
500
|
-
logoVariationImageUrls,
|
|
501
|
-
baseBrandPageUrl: 'https://brand.site',
|
|
502
|
-
features: userFeatures,
|
|
503
|
-
initialCategories: {},
|
|
504
|
-
},
|
|
505
|
-
show: false,
|
|
506
|
-
};
|
|
507
|
-
},
|
|
508
|
-
template: `
|
|
509
|
-
<BrandPageMaker v-if="show" :view-model="viewModel"/>
|
|
510
|
-
`,
|
|
511
|
-
pinia: setupStoryPinia(),
|
|
512
|
-
async beforeMount() {
|
|
513
|
-
await setLocaleAsync('en-US');
|
|
514
|
-
this.show = true;
|
|
515
|
-
},
|
|
516
|
-
}),
|
|
517
|
-
};
|
|
518
472
|
export const SamplePublishedBrandSite = {
|
|
519
473
|
name: 'Sample (published brandsite)',
|
|
520
474
|
render: () => ({
|
|
@@ -1184,7 +1138,7 @@ SampleAdminMode.story = {
|
|
|
1184
1138
|
name: 'Sample (admin mode)',
|
|
1185
1139
|
};
|
|
1186
1140
|
export const SampleAdminModeBrandSite = {
|
|
1187
|
-
name: 'Sample (admin mode
|
|
1141
|
+
name: 'Sample (admin mode brandsite)',
|
|
1188
1142
|
render: () => ({
|
|
1189
1143
|
setup() {
|
|
1190
1144
|
InitialiseMakerStores({ isAdmin: true });
|
|
@@ -97,7 +97,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
97
97
|
setBrandPageType({ brandPageType }: {
|
|
98
98
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
99
99
|
}): void;
|
|
100
|
-
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData,
|
|
100
|
+
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData, }: import("../../stores").InitialisePayload): Promise<void>;
|
|
101
101
|
initialisePages({ pages, sections, }: {
|
|
102
102
|
pages: import("../../../lib").PageModel[];
|
|
103
103
|
sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
|