@designcrowd/library.brand-page 5.18.2-ast-padding-3 → 5.18.2-seo-collapsed-2

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 (128) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-CmxeG9Mp.js → CreatedOnBrandCrowd-de-de-qDanndcr.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-DU2ferVk.js → CreatedOnBrandCrowd-en-us-BScNjiY-.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-C9acnq5K.js → CreatedOnBrandCrowd-es-es-DT4kYr2X.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-DCQIfvOJ.js → CreatedOnBrandCrowd-fr-ca-DgKnmImQ.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-DCQIfvOJ.js → CreatedOnBrandCrowd-fr-fr-DgKnmImQ.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-CJca3Ftj.js → CreatedOnBrandCrowd-pt-br-E3vAuUT_.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-CJca3Ftj.js → CreatedOnBrandCrowd-pt-pt-E3vAuUT_.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-CK1AF-P1.js → CreatedOnDcom-de-de-CIlbPAVq.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-JRxNxkr4.js → CreatedOnDcom-en-us-DNviuRIl.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-DOYuxaE_.js → CreatedOnDcom-es-es-BAvISSoo.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-DUPp1-DG.js → CreatedOnDcom-fr-ca-BwH06PRf.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-DJFhu26d.js → CreatedOnDcom-fr-fr-DgkK0gSR.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-B4RwOpm_.js → CreatedOnDcom-pt-br-Dog_LLOg.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-NPq4tNzp.js → CreatedOnDcom-pt-pt-CoLhIaYa.js} +1 -1
  15. package/lib/src/brand-page/components/contact-form/ContactForm.mixin.d.ts +0 -4
  16. package/lib/src/brand-page/components/contact-form/ContactForm.mixin.js +4 -8
  17. package/lib/src/brand-page/components/image-gallery/ImageGallery.mixin.d.ts +0 -4
  18. package/lib/src/brand-page/components/image-gallery/ImageGallery.mixin.js +0 -4
  19. package/lib/src/brand-page/components/mailing-list/MailingList.mixin.d.ts +0 -4
  20. package/lib/src/brand-page/components/mailing-list/MailingList.mixin.js +1 -4
  21. package/lib/src/brand-page/components/payment/request-payment/RequestPayment.mixin.d.ts +0 -4
  22. package/lib/src/brand-page/components/payment/request-payment/RequestPayment.mixin.js +0 -4
  23. package/lib/src/brand-page/components/payment/support-me/SupportMe.mixin.d.ts +0 -4
  24. package/lib/src/brand-page/components/payment/support-me/SupportMe.mixin.js +1 -4
  25. package/lib/src/brand-page/components/video/Video.mixin.d.ts +0 -4
  26. package/lib/src/brand-page/components/video/Video.mixin.js +0 -4
  27. package/lib/src/brand-page/constants/misc.constants.d.ts +0 -21
  28. package/lib/src/brand-page/constants/misc.constants.js +0 -37
  29. package/lib/src/brand-page/models/content.model.d.ts +0 -2
  30. package/lib/src/brand-page/utils/index.d.ts +0 -1
  31. package/lib/src/brand-page/utils/index.js +0 -1
  32. package/lib/src/brand-page/utils/migration.util.js +0 -10
  33. package/lib/src/brand-page-maker/components/admin-logo-settings/AdminLogoSettings.mixin.d.ts +0 -2
  34. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +0 -12
  35. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +0 -14
  36. package/lib/src/brand-page-maker/constants/config-settings-constant.js +0 -37
  37. package/lib/src/brand-page-maker/convertors/banner-align-display-style.convertor.js +1 -7
  38. package/lib/src/brand-page-maker/convertors/contact-layout-style.convertor.js +1 -6
  39. package/lib/src/brand-page-maker/models/content-settings.js +2 -36
  40. package/lib/src/brand-page-maker/stores/ai-checkpoint/ai-checkpoint-store.d.ts +0 -12
  41. package/lib/src/{bundled-translations-DYd5oFZv.js → bundled-translations-CnareLWC.js} +1 -1
  42. package/lib/src/{bundled-translations.de-DE-CH1jit6l.js → bundled-translations.de-DE-2Ys7epLO.js} +1 -1
  43. package/lib/src/{bundled-translations.es-ES-DoLRmoFo.js → bundled-translations.es-ES-Cjp-G8rT.js} +9 -9
  44. package/lib/src/{bundled-translations.fr-CA-Dq1_Ddi1.js → bundled-translations.fr-CA-CsaW4Oae.js} +9 -9
  45. package/lib/src/{bundled-translations.fr-FR-D5Smt12r.js → bundled-translations.fr-FR-DIT2dd8J.js} +1 -1
  46. package/lib/src/{bundled-translations.pt-BR-CpAaJ3dQ.js → bundled-translations.pt-BR-BamoBpDW.js} +9 -9
  47. package/lib/src/{bundled-translations.pt-PT-C1uIpd-9.js → bundled-translations.pt-PT-C9A4hY_e.js} +9 -9
  48. package/lib/src/bundles/bundled-translations.de-DE.json +0 -2
  49. package/lib/src/bundles/bundled-translations.es-ES.json +0 -2
  50. package/lib/src/bundles/bundled-translations.fr-CA.json +0 -2
  51. package/lib/src/bundles/bundled-translations.fr-FR.json +0 -2
  52. package/lib/src/bundles/bundled-translations.json +0 -2
  53. package/lib/src/bundles/bundled-translations.pt-BR.json +0 -2
  54. package/lib/src/bundles/bundled-translations.pt-PT.json +0 -2
  55. package/lib/src/css/library.brand-page-brandCrowd.min.css +117 -109
  56. package/lib/src/css/library.brand-page-brandPage.min.css +117 -109
  57. package/lib/src/css/library.brand-page-designCom.min.css +117 -109
  58. package/lib/src/css/library.brand-page-preview.min.css +117 -109
  59. package/lib/src/index.mjs +1 -1
  60. package/lib/src/{lib-5zQNtOzo.js → lib-BtEEiZMd.js} +18663 -18833
  61. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +0 -14
  62. package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +0 -14
  63. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +0 -12
  64. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +0 -12
  65. package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.d.ts +0 -12
  66. package/lib/src/shared/content-settings/components/slider-field/SliderField.mixin.js +0 -9
  67. package/lib/src/shared/content-settings/store/content-settings-store.d.ts +0 -12
  68. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +0 -16
  69. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +0 -14
  70. package/lib/src/utils/minify-brand-page-metadata.js +1 -11
  71. package/package.json +1 -1
  72. package/src/brand-page/components/about-section/AboutSection.vue +4 -10
  73. package/src/brand-page/components/banner-section/BannerSection.vue +4 -11
  74. package/src/brand-page/components/booking-section/BookingSection.vue +3 -11
  75. package/src/brand-page/components/contact-form/ContactForm.mixin.ts +6 -12
  76. package/src/brand-page/components/contact-form/ContactForm.vue +118 -115
  77. package/src/brand-page/components/image-gallery/ImageGallery.mixin.ts +0 -5
  78. package/src/brand-page/components/image-gallery/ImageGallery.vue +1 -1
  79. package/src/brand-page/components/mailing-list/MailingList.mixin.ts +1 -8
  80. package/src/brand-page/components/mailing-list/MailingList.vue +1 -1
  81. package/src/brand-page/components/map/Map.vue +1 -5
  82. package/src/brand-page/components/payment/request-payment/RequestPayment.mixin.ts +0 -5
  83. package/src/brand-page/components/payment/request-payment/RequestPayment.vue +0 -1
  84. package/src/brand-page/components/payment/support-me/SupportMe.mixin.ts +1 -8
  85. package/src/brand-page/components/payment/support-me/SupportMe.vue +0 -1
  86. package/src/brand-page/components/shop/Shop.vue +2 -7
  87. package/src/brand-page/components/social-links/SocialLinks.vue +3 -7
  88. package/src/brand-page/components/text/Text.vue +5 -12
  89. package/src/brand-page/components/text-media-section/TextMediaSection.vue +3 -11
  90. package/src/brand-page/components/video/Video.mixin.ts +0 -5
  91. package/src/brand-page/components/video/Video.vue +1 -1
  92. package/src/brand-page/constants/misc.constants.ts +0 -42
  93. package/src/brand-page/models/content.model.ts +0 -2
  94. package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +3 -9
  95. package/src/brand-page/utils/index.ts +0 -1
  96. package/src/brand-page/utils/migration.util.test.ts +0 -109
  97. package/src/brand-page/utils/migration.util.ts +0 -11
  98. package/src/brand-page-maker/components/brandpage-settings/BrandPageSettings.vue +8 -0
  99. package/src/brand-page-maker/constants/config-settings-constant.ts +0 -43
  100. package/src/brand-page-maker/convertors/banner-align-display-style.convertor.ts +0 -8
  101. package/src/brand-page-maker/convertors/contact-layout-style.convertor.ts +0 -8
  102. package/src/brand-page-maker/models/content-settings.ts +2 -38
  103. package/src/bundles/bundled-translations.de-DE.json +0 -2
  104. package/src/bundles/bundled-translations.es-ES.json +0 -2
  105. package/src/bundles/bundled-translations.fr-CA.json +0 -2
  106. package/src/bundles/bundled-translations.fr-FR.json +0 -2
  107. package/src/bundles/bundled-translations.json +0 -2
  108. package/src/bundles/bundled-translations.pt-BR.json +0 -2
  109. package/src/bundles/bundled-translations.pt-PT.json +0 -2
  110. package/src/shared/content-settings/components/content-settings/i18n/content-settings.de-DE.json +0 -2
  111. package/src/shared/content-settings/components/content-settings/i18n/content-settings.es-ES.json +0 -2
  112. package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-CA.json +0 -2
  113. package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-FR.json +0 -2
  114. package/src/shared/content-settings/components/content-settings/i18n/content-settings.json +0 -2
  115. package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-BR.json +0 -2
  116. package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-PT.json +0 -2
  117. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.vue +1 -1
  118. package/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.vue +2 -2
  119. package/src/shared/content-settings/components/slider-field/SliderField.mixin.ts +0 -9
  120. package/src/utils/minify-brand-page-metadata.ts +1 -11
  121. package/lib/src/brand-page/utils/content-padding.util.d.ts +0 -13
  122. package/lib/src/brand-page/utils/content-padding.util.js +0 -10
  123. package/lib/src/brand-page/utils/migration/migration-16.d.ts +0 -2
  124. package/lib/src/brand-page/utils/migration/migration-16.js +0 -48
  125. package/src/brand-page/utils/content-padding.util.test.ts +0 -29
  126. package/src/brand-page/utils/content-padding.util.ts +0 -13
  127. package/src/brand-page/utils/migration/migration-16.ts +0 -65
  128. package/src/brand-page-maker/convertors/contact-layout-style.convertor.test.ts +0 -50
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-5zQNtOzo.js";
2
+ import { _ as t } from "./lib-BtEEiZMd.js";
3
3
  const i = {}, h = {
4
4
  width: "275",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-5zQNtOzo.js";
2
+ import { _ as t } from "./lib-BtEEiZMd.js";
3
3
  const i = {}, h = {
4
4
  width: "251",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-5zQNtOzo.js";
2
+ import { _ as t } from "./lib-BtEEiZMd.js";
3
3
  const i = {}, h = {
4
4
  width: "250",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-5zQNtOzo.js";
2
+ import { _ as t } from "./lib-BtEEiZMd.js";
3
3
  const i = {}, h = {
4
4
  width: "237",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-5zQNtOzo.js";
2
+ import { _ as t } from "./lib-BtEEiZMd.js";
3
3
  const i = {}, h = {
4
4
  width: "237",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-5zQNtOzo.js";
2
+ import { _ as t } from "./lib-BtEEiZMd.js";
3
3
  const i = {}, h = {
4
4
  width: "263",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-5zQNtOzo.js";
2
+ import { _ as t } from "./lib-BtEEiZMd.js";
3
3
  const i = {}, h = {
4
4
  width: "263",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-5zQNtOzo.js";
2
+ import { _ as e } from "./lib-BtEEiZMd.js";
3
3
  const M = {}, Z = {
4
4
  width: "242",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-5zQNtOzo.js";
2
+ import { _ as e } from "./lib-BtEEiZMd.js";
3
3
  const i = {}, M = {
4
4
  width: "231",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-5zQNtOzo.js";
2
+ import { _ as e } from "./lib-BtEEiZMd.js";
3
3
  const M = {}, Z = {
4
4
  width: "230",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-5zQNtOzo.js";
2
+ import { _ as e } from "./lib-BtEEiZMd.js";
3
3
  const i = {}, l = {
4
4
  width: "216",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-5zQNtOzo.js";
2
+ import { _ as e } from "./lib-BtEEiZMd.js";
3
3
  const i = {}, l = {
4
4
  width: "216",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as M } from "./lib-5zQNtOzo.js";
2
+ import { _ as M } from "./lib-BtEEiZMd.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as M } from "./lib-5zQNtOzo.js";
2
+ import { _ as M } from "./lib-BtEEiZMd.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -45,10 +45,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
45
45
  }, {
46
46
  submitButtonStyle(): BrandPageCssStyle;
47
47
  submitButtonTextStyle(): BrandPageCssStyle;
48
- contentPaddingStyle(): {
49
- paddingTop: string;
50
- paddingBottom: string;
51
- };
52
48
  hasCard(): boolean;
53
49
  hasBgImage(): boolean;
54
50
  hasBgColor(): boolean;
@@ -4,7 +4,7 @@ import { getEmailValidationError, getMessageValidationError, getNameValidationEr
4
4
  import brandPageClient from '../../clients/brand-page.client';
5
5
  import { isEmail } from '../../../utils/validator.util';
6
6
  import { ALIGN_CARD_CENTER, ALIGN_CARD_CENTER_IMAGE, ALIGN_CENTERED, ALIGN_LEFT_FULL_IMAGE, ALIGN_RIGHT_FULL_IMAGE, DISPLAY_STYLE_COLLAPSED, RECAPTCHA_ACTION_CONTACT_FORM, TEXT_ONLY, } from '../../constants';
7
- import { getRenderText, contentPaddingStyle as toContentPaddingStyle, } from '@brand-page/utils';
7
+ import { getRenderText } from '@brand-page/utils';
8
8
  import { hasRTEContent } from '@brand-page-maker/utils';
9
9
  import { useReCaptcha } from '../../composables/recaptcha.composable';
10
10
  export default defineComponent({
@@ -64,9 +64,6 @@ export default defineComponent({
64
64
  };
65
65
  return buttonTextStyle;
66
66
  },
67
- contentPaddingStyle() {
68
- return toContentPaddingStyle(this.viewModel);
69
- },
70
67
  hasCard() {
71
68
  return (this.viewModel.layoutStyle === ALIGN_CARD_CENTER ||
72
69
  this.viewModel.layoutStyle === ALIGN_CARD_CENTER_IMAGE);
@@ -75,10 +72,9 @@ export default defineComponent({
75
72
  return this.viewModel.layoutStyle === ALIGN_CARD_CENTER_IMAGE;
76
73
  },
77
74
  hasBgColor() {
78
- // Every brandSite layout applies the background colour on the section
79
- // root (banner-style) so the padding control reveals it; for the image
80
- // layouts it only shows in the padding bands around the image block.
81
- return Boolean(this.viewModel.layoutStyle);
75
+ return (this.viewModel.layoutStyle === ALIGN_CARD_CENTER ||
76
+ this.viewModel.layoutStyle === TEXT_ONLY ||
77
+ this.viewModel.layoutStyle === ALIGN_CENTERED);
82
78
  },
83
79
  isCenteredLayout() {
84
80
  return (this.viewModel.layoutStyle === ALIGN_CARD_CENTER ||
@@ -23,10 +23,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
23
23
  }>, {}, {
24
24
  imageModalSelectedImageIndex: number | undefined;
25
25
  }, {
26
- contentPaddingStyle(): {
27
- paddingTop: string;
28
- paddingBottom: string;
29
- };
30
26
  getContainerStyle(): BrandPageCssStyle;
31
27
  images(): any[] | undefined;
32
28
  galleryType(): GalleryType;
@@ -1,5 +1,4 @@
1
1
  import { defineComponent } from 'vue';
2
- import { contentPaddingStyle as toContentPaddingStyle } from '@brand-page/utils';
3
2
  import ComponentCommonMixin from '../mixins/component-common.mixin';
4
3
  import ImageModalMixin from '../mixins/image-modal.mixin';
5
4
  import { GALLERY_TYPES } from '@brand-page/models';
@@ -30,9 +29,6 @@ export default defineComponent({
30
29
  };
31
30
  },
32
31
  computed: {
33
- contentPaddingStyle() {
34
- return toContentPaddingStyle(this.viewModel);
35
- },
36
32
  getContainerStyle() {
37
33
  if (this.galleryType === 'carousel') {
38
34
  const maxWidth = this.containerClientWidth
@@ -39,10 +39,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
39
39
  isSubmitting: boolean;
40
40
  show: boolean;
41
41
  }, {
42
- contentPaddingStyle(): {
43
- paddingTop: string;
44
- paddingBottom: string;
45
- };
46
42
  hasNameError(): boolean;
47
43
  hasEmailError(): boolean;
48
44
  hasFormError(): boolean;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent } from 'vue';
2
2
  import brandPageClient from '../../clients/brand-page.client';
3
- import { getEmailValidationError, contentPaddingStyle as toContentPaddingStyle, } from '@brand-page/utils';
3
+ import { getEmailValidationError } from '@brand-page/utils';
4
4
  import { contentSettingsTr, mailingListTr, } from '@src/composables/useTranslate';
5
5
  import { useReCaptcha } from '../../composables/recaptcha.composable';
6
6
  import { RECAPTCHA_ACTION_MAILING_LIST } from '../../constants';
@@ -51,9 +51,6 @@ export default defineComponent({
51
51
  }
52
52
  },
53
53
  computed: {
54
- contentPaddingStyle() {
55
- return toContentPaddingStyle(this.viewModel);
56
- },
57
54
  hasNameError() {
58
55
  return !!this.nameError;
59
56
  },
@@ -21,10 +21,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
21
21
  selectedPaymentOptionIds: string[];
22
22
  imageType: string;
23
23
  }, {
24
- contentPaddingStyle(): {
25
- paddingTop: string;
26
- paddingBottom: string;
27
- };
28
24
  isCustomerRequestDetailsValid(): boolean;
29
25
  paymentRequestDetails(): PaymentRequestDetails;
30
26
  paymentOptions(): PaymentOption[];
@@ -2,7 +2,6 @@ import { defineComponent } from 'vue';
2
2
  import { PAYMENT_OPTION_DISPLAY_TYPES, PAYMENT_OPTION_IMAGE_TYPES, } from '../../../models';
3
3
  import { DEFAULT_CURRENCY_SYMBOL } from '../../../constants';
4
4
  import { addOpacityToHex } from '../../../utils/color.util';
5
- import { contentPaddingStyle as toContentPaddingStyle } from '../../../utils';
6
5
  import { RGBAtoHex } from '@utils/helpers';
7
6
  const MAX_CUSTOM_REQUEST_CHARS = 500;
8
7
  export default defineComponent({
@@ -29,9 +28,6 @@ export default defineComponent({
29
28
  };
30
29
  },
31
30
  computed: {
32
- contentPaddingStyle() {
33
- return toContentPaddingStyle(this.viewModel);
34
- },
35
31
  isCustomerRequestDetailsValid() {
36
32
  return (!this.viewModel.requestPaymentConfig.isCustomerRequestDetailsEnabled ||
37
33
  this.customerRequestDetails === undefined ||
@@ -17,10 +17,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
17
17
  prevCustomAmount: string;
18
18
  customAmount: string;
19
19
  }, {
20
- contentPaddingStyle(): {
21
- paddingTop: string;
22
- paddingBottom: string;
23
- };
24
20
  isCustomAmountFieldVisible(): boolean;
25
21
  isCustomerMessageFieldVisible(): boolean;
26
22
  isCustomerMessageValid(): boolean;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent } from 'vue';
2
2
  import { SUPPORT_ME_CUSTOM_PRODUCT_NAME } from '../../../constants';
3
- import { isPaymentAmountValid, contentPaddingStyle as toContentPaddingStyle, } from '../../../utils';
3
+ import { isPaymentAmountValid } from '../../../utils';
4
4
  import { DEFAULT_CURRENCY_SYMBOL, DEFAULT_CURRENCY_CODE, } from '../../../constants';
5
5
  import { paymentTr } from '@src/composables/useTranslate';
6
6
  const MAX_CUSTOM_MESSAGE_CHARS = 500;
@@ -24,9 +24,6 @@ export default defineComponent({
24
24
  };
25
25
  },
26
26
  computed: {
27
- contentPaddingStyle() {
28
- return toContentPaddingStyle(this.viewModel);
29
- },
30
27
  isCustomAmountFieldVisible() {
31
28
  return this.viewModel.supportMeConfig.paymentOptions.some((o) => o.name === SUPPORT_ME_CUSTOM_PRODUCT_NAME);
32
29
  },
@@ -11,10 +11,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
11
11
  isCollapsed: boolean;
12
12
  title: string;
13
13
  }, {
14
- contentPaddingStyle(): {
15
- paddingTop: string;
16
- paddingBottom: string;
17
- };
18
14
  arrowStyle(): BrandPageCssStyle;
19
15
  containerStyle(): BrandPageCssStyle;
20
16
  videoUrl(): string;
@@ -1,5 +1,4 @@
1
1
  import { defineComponent } from 'vue';
2
- import { contentPaddingStyle as toContentPaddingStyle } from '@brand-page/utils';
3
2
  import ComponentCommonMixin from '../mixins/component-common.mixin';
4
3
  import { DISPLAY_STYLE_PREVIEW, DISPLAY_STYLE_COLLAPSED, } from '../../constants';
5
4
  export default defineComponent({
@@ -17,9 +16,6 @@ export default defineComponent({
17
16
  title: 'Video',
18
17
  }),
19
18
  computed: {
20
- contentPaddingStyle() {
21
- return toContentPaddingStyle(this.viewModel);
22
- },
23
19
  arrowStyle() {
24
20
  return {
25
21
  color: this.viewModel.buttonStyles.style?.color,
@@ -29,27 +29,6 @@ export declare const TEXT_ONLY = "text-only";
29
29
  export declare const ALIGN_LEFT_FULL_IMAGE = "left-aligned-full-image";
30
30
  export declare const ALIGN_RIGHT_FULL_IMAGE = "right-aligned-full-image";
31
31
  export declare const ALTERNATE_IMAGE = "alternate-image";
32
- /**
33
- * Padding Control (BP-5699): the top/bottom padding each Contact Form layout
34
- * had hard-coded before the sliders existed. Single source for new-block
35
- * defaults (content-settings) and the migration backfill for existing pages.
36
- * The image layouts (full-image divided and card-over-image) are 0: their
37
- * padding sits on the section root and reveals the background colour around
38
- * the image block (same as the banner), while the spacing inside/over the
39
- * image stays fixed — existing pages rendered the image flush to the section
40
- * edges.
41
- */
42
- export declare const CONTACT_FORM_LAYOUT_DEFAULT_PADDING: Record<string, number>;
43
- /**
44
- * Banner: full-bleed display styles (divided + full-width stacked) render the
45
- * image flush to the section edges, so their top/bottom padding defaults to 0 to
46
- * match prod — the standard 32 would push the image off the edges. Every other
47
- * banner style keeps 32. Used by the banner display-style convertor and the
48
- * migration backfill, mirroring contact-form's per-layout map above.
49
- */
50
- export declare const BANNER_DEFAULT_PADDING = 32;
51
- export declare const BANNER_FULL_BLEED_DISPLAY_STYLES: string[];
52
- export declare const bannerDisplayStyleDefaultPadding: (displayStyle?: string) => number;
53
32
  export declare const BIG_IMAGE = "big-image";
54
33
  export declare const MEDIA_ONLY = "media-only";
55
34
  export declare const COLUMNS = "columns";
@@ -30,43 +30,6 @@ export const TEXT_ONLY = 'text-only';
30
30
  export const ALIGN_LEFT_FULL_IMAGE = 'left-aligned-full-image';
31
31
  export const ALIGN_RIGHT_FULL_IMAGE = 'right-aligned-full-image';
32
32
  export const ALTERNATE_IMAGE = 'alternate-image';
33
- /**
34
- * Padding Control (BP-5699): the top/bottom padding each Contact Form layout
35
- * had hard-coded before the sliders existed. Single source for new-block
36
- * defaults (content-settings) and the migration backfill for existing pages.
37
- * The image layouts (full-image divided and card-over-image) are 0: their
38
- * padding sits on the section root and reveals the background colour around
39
- * the image block (same as the banner), while the spacing inside/over the
40
- * image stays fixed — existing pages rendered the image flush to the section
41
- * edges.
42
- */
43
- export const CONTACT_FORM_LAYOUT_DEFAULT_PADDING = {
44
- '': 0, // collapsible (default on Brand Page / Brand Contact)
45
- [ALIGN_CENTERED]: 24,
46
- [ALIGN_CARD_CENTER]: 32,
47
- [ALIGN_CARD_CENTER_IMAGE]: 0,
48
- [TEXT_ONLY]: 32,
49
- [ALIGN_LEFT_FULL_IMAGE]: 0,
50
- [ALIGN_RIGHT_FULL_IMAGE]: 0,
51
- };
52
- /**
53
- * Banner: full-bleed display styles (divided + full-width stacked) render the
54
- * image flush to the section edges, so their top/bottom padding defaults to 0 to
55
- * match prod — the standard 32 would push the image off the edges. Every other
56
- * banner style keeps 32. Used by the banner display-style convertor and the
57
- * migration backfill, mirroring contact-form's per-layout map above.
58
- */
59
- export const BANNER_DEFAULT_PADDING = 32;
60
- export const BANNER_FULL_BLEED_DISPLAY_STYLES = [
61
- ALIGN_LEFT_FULL_IMAGE,
62
- ALIGN_RIGHT_FULL_IMAGE,
63
- ALIGN_TOP_FULL_IMAGE,
64
- ALIGN_BOTTOM_FULL_IMAGE,
65
- ALIGN_MIDDLE_FULL_IMAGE,
66
- ];
67
- export const bannerDisplayStyleDefaultPadding = (displayStyle) => displayStyle && BANNER_FULL_BLEED_DISPLAY_STYLES.includes(displayStyle)
68
- ? 0
69
- : BANNER_DEFAULT_PADDING;
70
33
  export const BIG_IMAGE = 'big-image';
71
34
  export const MEDIA_ONLY = 'media-only';
72
35
  export const COLUMNS = 'columns';
@@ -47,8 +47,6 @@ export interface Content {
47
47
  id: string;
48
48
  type: ContentType;
49
49
  personalisationRole?: PersonalisationRole;
50
- topPadding?: number;
51
- bottomPadding?: number;
52
50
  imageUrlOverride?: string;
53
51
  imageUrlsOverride?: string;
54
52
  avatarImageUrlOverride?: string;
@@ -1,5 +1,4 @@
1
1
  export * from './style.util';
2
- export * from './content-padding.util';
3
2
  export * from './view-model.util';
4
3
  export * from './text.util';
5
4
  export * from './model.util';
@@ -1,5 +1,4 @@
1
1
  export * from './style.util';
2
- export * from './content-padding.util';
3
2
  export * from './view-model.util';
4
3
  export * from './text.util';
5
4
  export * from './model.util';
@@ -18,7 +18,6 @@ import { migration12_1 } from './migration/migration-12_1';
18
18
  import { migration13 } from './migration/migration-13';
19
19
  import { migration14 } from './migration/migration-14';
20
20
  import { migration15 } from './migration/migration-15';
21
- import { migration16 } from './migration/migration-16';
22
21
  const MIGRATION_TABLE = [
23
22
  {
24
23
  version: 1,
@@ -116,15 +115,6 @@ const MIGRATION_TABLE = [
116
115
  migrateFn: migration15,
117
116
  description: 'Adding default mediaOverlayStyle to background styles',
118
117
  },
119
- {
120
- version: 16,
121
- migrateFn: migration16,
122
- // runAlways: re-apply on every load (ticket stack) so already-migrated pages
123
- // pick up newly-added block defaults (e.g. Store) without a new migration.
124
- // Idempotent — only backfills when topPadding/bottomPadding aren't already set.
125
- runAlways: true,
126
- description: 'Padding Control backfill (BP-5699 Tier 2 + BP-5700 Store): backfill existing top/bottom spacing as explicit padding for text (12px), images/social links/shapes/booking (32px), store (16px), and contact form (per layout)',
127
- },
128
118
  ];
129
119
  export const GetLatestModelVersion = () => Math.max(...MIGRATION_TABLE.map((x) => x.version));
130
120
  export const migrateBrandPageModel = async (brandPageModel, options) => {
@@ -8,8 +8,6 @@ declare const _default: import("vue").DefineComponent<{}, {
8
8
  id: string;
9
9
  type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
10
10
  personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
11
- topPadding?: number | undefined;
12
- bottomPadding?: number | undefined;
13
11
  imageUrlOverride?: string | undefined;
14
12
  imageUrlsOverride?: string | undefined;
15
13
  avatarImageUrlOverride?: string | undefined;
@@ -496,8 +496,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
496
496
  id: string;
497
497
  type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
498
498
  personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
499
- topPadding?: number | undefined;
500
- bottomPadding?: number | undefined;
501
499
  imageUrlOverride?: string | undefined;
502
500
  imageUrlsOverride?: string | undefined;
503
501
  avatarImageUrlOverride?: string | undefined;
@@ -547,8 +545,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
547
545
  id: string;
548
546
  type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
549
547
  personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
550
- topPadding?: number | undefined;
551
- bottomPadding?: number | undefined;
552
548
  imageUrlOverride?: string | undefined;
553
549
  imageUrlsOverride?: string | undefined;
554
550
  avatarImageUrlOverride?: string | undefined;
@@ -598,8 +594,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
598
594
  id: string;
599
595
  type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
600
596
  personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
601
- topPadding?: number | undefined;
602
- bottomPadding?: number | undefined;
603
597
  imageUrlOverride?: string | undefined;
604
598
  imageUrlsOverride?: string | undefined;
605
599
  avatarImageUrlOverride?: string | undefined;
@@ -649,8 +643,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
649
643
  id: string;
650
644
  type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
651
645
  personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
652
- topPadding?: number | undefined;
653
- bottomPadding?: number | undefined;
654
646
  imageUrlOverride?: string | undefined;
655
647
  imageUrlsOverride?: string | undefined;
656
648
  avatarImageUrlOverride?: string | undefined;
@@ -700,8 +692,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
700
692
  id: string;
701
693
  type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
702
694
  personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
703
- topPadding?: number | undefined;
704
- bottomPadding?: number | undefined;
705
695
  imageUrlOverride?: string | undefined;
706
696
  imageUrlsOverride?: string | undefined;
707
697
  avatarImageUrlOverride?: string | undefined;
@@ -751,8 +741,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
751
741
  id: string;
752
742
  type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
753
743
  personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
754
- topPadding?: number | undefined;
755
- bottomPadding?: number | undefined;
756
744
  imageUrlOverride?: string | undefined;
757
745
  imageUrlsOverride?: string | undefined;
758
746
  avatarImageUrlOverride?: string | undefined;
@@ -11,8 +11,6 @@ declare const _default: import("vue").DefineComponent<{}, {
11
11
  id: string;
12
12
  type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
13
13
  personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
14
- topPadding?: number | undefined;
15
- bottomPadding?: number | undefined;
16
14
  imageUrlOverride?: string | undefined;
17
15
  imageUrlsOverride?: string | undefined;
18
16
  avatarImageUrlOverride?: string | undefined;
@@ -92,8 +90,6 @@ declare const _default: import("vue").DefineComponent<{}, {
92
90
  id: string;
93
91
  type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
94
92
  personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
95
- topPadding?: number | undefined;
96
- bottomPadding?: number | undefined;
97
93
  imageUrlOverride?: string | undefined;
98
94
  imageUrlsOverride?: string | undefined;
99
95
  avatarImageUrlOverride?: string | undefined;
@@ -143,8 +139,6 @@ declare const _default: import("vue").DefineComponent<{}, {
143
139
  id: string;
144
140
  type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
145
141
  personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
146
- topPadding?: number | undefined;
147
- bottomPadding?: number | undefined;
148
142
  imageUrlOverride?: string | undefined;
149
143
  imageUrlsOverride?: string | undefined;
150
144
  avatarImageUrlOverride?: string | undefined;
@@ -194,8 +188,6 @@ declare const _default: import("vue").DefineComponent<{}, {
194
188
  id: string;
195
189
  type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
196
190
  personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
197
- topPadding?: number | undefined;
198
- bottomPadding?: number | undefined;
199
191
  imageUrlOverride?: string | undefined;
200
192
  imageUrlsOverride?: string | undefined;
201
193
  avatarImageUrlOverride?: string | undefined;
@@ -245,8 +237,6 @@ declare const _default: import("vue").DefineComponent<{}, {
245
237
  id: string;
246
238
  type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
247
239
  personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
248
- topPadding?: number | undefined;
249
- bottomPadding?: number | undefined;
250
240
  imageUrlOverride?: string | undefined;
251
241
  imageUrlsOverride?: string | undefined;
252
242
  avatarImageUrlOverride?: string | undefined;
@@ -296,8 +286,6 @@ declare const _default: import("vue").DefineComponent<{}, {
296
286
  id: string;
297
287
  type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
298
288
  personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
299
- topPadding?: number | undefined;
300
- bottomPadding?: number | undefined;
301
289
  imageUrlOverride?: string | undefined;
302
290
  imageUrlsOverride?: string | undefined;
303
291
  avatarImageUrlOverride?: string | undefined;
@@ -347,8 +335,6 @@ declare const _default: import("vue").DefineComponent<{}, {
347
335
  id: string;
348
336
  type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
349
337
  personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
350
- topPadding?: number | undefined;
351
- bottomPadding?: number | undefined;
352
338
  imageUrlOverride?: string | undefined;
353
339
  imageUrlsOverride?: string | undefined;
354
340
  avatarImageUrlOverride?: string | undefined;