@designcrowd/library.brand-page 5.14.18-flaky-test-4 → 5.14.18

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 (107) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-BIE9c3EL.js → CreatedOnBrandCrowd-de-de-DcUC9u9V.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-BE9PH8qL.js → CreatedOnBrandCrowd-en-us-CyE7w_kQ.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-DWiKnM6A.js → CreatedOnBrandCrowd-es-es-CYfCI1eo.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-8eX1EXEv.js → CreatedOnBrandCrowd-fr-ca-XneRcW9W.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-8eX1EXEv.js → CreatedOnBrandCrowd-fr-fr-XneRcW9W.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-mCxUdC56.js → CreatedOnBrandCrowd-pt-br-DN9Jvi8B.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-mCxUdC56.js → CreatedOnBrandCrowd-pt-pt-DN9Jvi8B.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-BeOF7zXw.js → CreatedOnDcom-de-de-xeVBy03R.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-CawAwKBe.js → CreatedOnDcom-en-us-Db5rDsSD.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-CeUIvRLW.js → CreatedOnDcom-es-es-Dsza6g1E.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-rlKuqR9V.js → CreatedOnDcom-fr-ca-DfG2BFbq.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-DrtcMVwe.js → CreatedOnDcom-fr-fr-B0EqCu0Q.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-CwQNzn0P.js → CreatedOnDcom-pt-br-Bf9E4uxV.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-BVt_i9Mu.js → CreatedOnDcom-pt-pt-C_COgmdc.js} +1 -1
  15. package/lib/src/brand-page/constants/logo.constants.d.ts +0 -1
  16. package/lib/src/brand-page/constants/logo.constants.js +0 -2
  17. package/lib/src/brand-page/constants/styles.constants.d.ts +2 -2
  18. package/lib/src/brand-page/constants/styles.constants.js +2 -2
  19. package/lib/src/brand-page/utils/logo.util.js +3 -3
  20. package/lib/src/brand-page/utils/migration/migration-01.d.ts +2 -3
  21. package/lib/src/brand-page/utils/migration/migration-01.js +2 -3
  22. package/lib/src/brand-page/utils/migration/migration-01_1.d.ts +3 -4
  23. package/lib/src/brand-page/utils/migration/migration-01_1.js +2 -3
  24. package/lib/src/brand-page/utils/migration/migration-02.d.ts +3 -4
  25. package/lib/src/brand-page/utils/migration/migration-02.js +2 -3
  26. package/lib/src/brand-page/utils/migration/migration-03.d.ts +3 -4
  27. package/lib/src/brand-page/utils/migration/migration-03.js +2 -3
  28. package/lib/src/brand-page/utils/migration/migration-04.d.ts +3 -4
  29. package/lib/src/brand-page/utils/migration/migration-04.js +2 -3
  30. package/lib/src/brand-page/utils/migration/migration-05.d.ts +2 -6
  31. package/lib/src/brand-page/utils/migration/migration-05.js +2 -3
  32. package/lib/src/brand-page/utils/migration/migration-05_1.d.ts +3 -3
  33. package/lib/src/brand-page/utils/migration/migration-05_1.js +3 -3
  34. package/lib/src/brand-page/utils/migration/migration-05_2.d.ts +3 -3
  35. package/lib/src/brand-page/utils/migration/migration-05_2.js +2 -3
  36. package/lib/src/brand-page/utils/migration/migration-06.d.ts +2 -2
  37. package/lib/src/brand-page/utils/migration/migration-06.js +2 -3
  38. package/lib/src/brand-page/utils/migration.util.d.ts +1 -6
  39. package/lib/src/brand-page/utils/migration.util.js +7 -18
  40. package/lib/src/brand-page/utils/view-model.util.d.ts +4 -6
  41. package/lib/src/brand-page/utils/view-model.util.js +13 -14
  42. package/lib/src/brand-page/view-models.d.ts +0 -1
  43. package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.d.ts +1 -1
  44. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +1 -1
  45. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.d.ts +0 -1
  46. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.js +2 -48
  47. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMakerTemplateSettings.mixin.d.ts +1 -1
  48. package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.d.ts +0 -1122
  49. package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.js +0 -1058
  50. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +1 -1
  51. package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.d.ts +1 -1
  52. package/lib/src/brand-page-maker/components/google-analytics/GoogleAnalytics.mixin.d.ts +1 -1
  53. package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +1 -1
  54. package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +1 -1
  55. package/lib/src/brand-page-maker/components/social-share/SocialShare.mixin.d.ts +1 -1
  56. package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +1 -1
  57. package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.d.ts +1 -2
  58. package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +2 -3
  59. package/lib/src/css/library.brand-page-brandCrowd.min.css +6 -3
  60. package/lib/src/css/library.brand-page-brandPage.min.css +6 -3
  61. package/lib/src/css/library.brand-page-designCom.min.css +6 -3
  62. package/lib/src/css/library.brand-page-preview.min.css +6 -3
  63. package/lib/src/index.mjs +1 -1
  64. package/lib/src/{lib-DcKgS2dv.js → lib-C9-6KWzA.js} +15130 -15271
  65. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +1 -1
  66. package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +1 -1
  67. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +1 -1
  68. package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +1 -1
  69. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +1 -1
  70. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +1 -1
  71. package/lib/src/shared/page-settings/store/page-settings-store.js +1 -1
  72. package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +1 -1
  73. package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +1 -1
  74. package/lib/src/shared/template-settings/store/template-settings-store.js +1 -2
  75. package/package.json +1 -1
  76. package/src/brand-page/components/logo/Logo.vue +1 -25
  77. package/src/brand-page/components/logo/LogoRender.vue +20 -56
  78. package/src/brand-page/constants/logo.constants.ts +0 -3
  79. package/src/brand-page/constants/styles.constants.ts +2 -2
  80. package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +1112 -1121
  81. package/src/brand-page/utils/__snapshots__/migration2.util.test.ts.snap +413 -416
  82. package/src/brand-page/utils/logo.util.test.ts +3 -3
  83. package/src/brand-page/utils/logo.util.ts +3 -3
  84. package/src/brand-page/utils/migration/logo/migration.util.logo.test.ts +3 -3
  85. package/src/brand-page/utils/migration/migration-01.ts +4 -7
  86. package/src/brand-page/utils/migration/migration-01_1.ts +3 -6
  87. package/src/brand-page/utils/migration/migration-02.ts +4 -7
  88. package/src/brand-page/utils/migration/migration-03.ts +4 -7
  89. package/src/brand-page/utils/migration/migration-04.ts +4 -7
  90. package/src/brand-page/utils/migration/migration-05.ts +3 -16
  91. package/src/brand-page/utils/migration/migration-05_1.ts +4 -6
  92. package/src/brand-page/utils/migration/migration-05_2.ts +3 -6
  93. package/src/brand-page/utils/migration/migration-06.ts +2 -5
  94. package/src/brand-page/utils/migration.util.test.ts +157 -274
  95. package/src/brand-page/utils/migration.util.ts +10 -29
  96. package/src/brand-page/utils/migration2.util.test.ts +2 -7
  97. package/src/brand-page/utils/view-model.util.ts +7 -26
  98. package/src/brand-page/view-models.ts +0 -1
  99. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.ts +1 -52
  100. package/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.ts +0 -1090
  101. package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +1 -4
  102. package/src/shared/page-settings/store/page-settings-store.ts +0 -1
  103. package/src/shared/template-settings/store/template-settings-store.ts +1 -2
  104. package/lib/src/brand-page/utils/migration/migration-07.d.ts +0 -4
  105. package/lib/src/brand-page/utils/migration/migration-07.js +0 -71
  106. package/src/brand-page/utils/migration/migration-07.test.ts +0 -384
  107. package/src/brand-page/utils/migration/migration-07.ts +0 -120
@@ -27,7 +27,6 @@ export declare const SampleBanner: {
27
27
  export declare const SamplePersonalised: () => any;
28
28
  export declare const SamplePublished: Story;
29
29
  export declare const SamplePublishedWithCustomDomain: Story;
30
- export declare const SamplePublishedBrandSiteWithLogo: Story;
31
30
  export declare const SamplePublishedBrandSite: Story;
32
31
  export declare const SampleProfile: {
33
32
  (): any;
@@ -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, BRAND_SITE_SAMPLE_WITH_LOGO, CUSTOM_DOMAIN_DESIGN_DRAFT_TOKEN, brandPageCustom, BRAND_CONTACT, BRAND_SITE_SAMPLE, } from './__fixtures__';
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';
@@ -468,52 +468,6 @@ export const SamplePublishedWithCustomDomain = {
468
468
  pinia: setupStoryPinia(),
469
469
  }),
470
470
  };
471
- export const SamplePublishedBrandSiteWithLogo = {
472
- name: 'Sample (published brandsite with logo)',
473
- render: () => ({
474
- setup() {
475
- InitialiseMakerStores({});
476
- const containerStore = useBrandPageContainerStore();
477
- containerStore.$patch({
478
- isSellDomainNameEnabled: true,
479
- baseFabricRenderUrl: FABRIC_RENDER_BASE_URL,
480
- });
481
- containerStore.setBrandPageStatus('Published');
482
- containerStore.setDesignDraftToken({
483
- designDraftToken: CUSTOM_DOMAIN_DESIGN_DRAFT_TOKEN,
484
- });
485
- containerStore.brandPageBaseUrl = 'https://brand.site';
486
- containerStore.setSlug({
487
- slug: 'my-page',
488
- });
489
- },
490
- components: {
491
- BrandPageMaker,
492
- },
493
- data() {
494
- return {
495
- viewModel: {
496
- brandPageData: JSON.stringify(BRAND_SITE_SAMPLE_WITH_LOGO),
497
- isSaving: false,
498
- logoDraftDesignAttributes: simpleLogoDesignAttributes,
499
- logoVariationImageUrls,
500
- baseBrandPageUrl: 'https://brand.site',
501
- features: userFeatures,
502
- initialCategories: {},
503
- },
504
- show: false,
505
- };
506
- },
507
- template: `
508
- <BrandPageMaker v-if="show" :view-model="viewModel"/>
509
- `,
510
- pinia: setupStoryPinia(),
511
- async beforeMount() {
512
- await setLocaleAsync('en-US');
513
- this.show = true;
514
- },
515
- }),
516
- };
517
471
  export const SamplePublishedBrandSite = {
518
472
  name: 'Sample (published brandsite)',
519
473
  render: () => ({
@@ -1183,7 +1137,7 @@ SampleAdminMode.story = {
1183
1137
  name: 'Sample (admin mode)',
1184
1138
  };
1185
1139
  export const SampleAdminModeBrandSite = {
1186
- name: 'Sample (admin mode brandsite1)',
1140
+ name: 'Sample (admin mode brandsite)',
1187
1141
  render: () => ({
1188
1142
  setup() {
1189
1143
  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, isServerRenderOverride, }: import("../../stores").InitialisePayload): Promise<void>;
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;