@designcrowd/library.brand-page 5.18.7-ast-padding-1 → 5.18.7

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 (132) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-Cn8zNuGM.js → CreatedOnBrandCrowd-de-de-CZmqvsOT.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-CP8xAFc-.js → CreatedOnBrandCrowd-en-us-5nTR1eLT.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-Ds8NijwP.js → CreatedOnBrandCrowd-es-es-xLvoayrw.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-BiVV_7lj.js → CreatedOnBrandCrowd-fr-ca-CN5n8X8v.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-BiVV_7lj.js → CreatedOnBrandCrowd-fr-fr-CN5n8X8v.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-CjjrYojo.js → CreatedOnBrandCrowd-pt-br-CdkYC12E.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-CjjrYojo.js → CreatedOnBrandCrowd-pt-pt-CdkYC12E.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-ChR5jvlP.js → CreatedOnDcom-de-de-B8rV2rD7.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-C4rO1BMA.js → CreatedOnDcom-en-us-C4WaRIpF.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-DxGMS6JK.js → CreatedOnDcom-es-es-BPHPey0b.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-n31u4t7u.js → CreatedOnDcom-fr-ca-xrMr4xlv.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-gwdsX7YV.js → CreatedOnDcom-fr-fr-BEozL-o2.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-iZjFp--s.js → CreatedOnDcom-pt-br-CoN-ZhjG.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-B3Z3-RLC.js → CreatedOnDcom-pt-pt-9vfUJ3ks.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 -26
  28. package/lib/src/brand-page/constants/misc.constants.js +0 -42
  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 -38
  37. package/lib/src/brand-page-maker/convertors/about-display-style.convertor.js +1 -9
  38. package/lib/src/brand-page-maker/convertors/banner-align-display-style.convertor.js +1 -7
  39. package/lib/src/brand-page-maker/convertors/contact-layout-style.convertor.js +1 -6
  40. package/lib/src/brand-page-maker/models/content-settings.js +2 -36
  41. package/lib/src/brand-page-maker/stores/ai-checkpoint/ai-checkpoint-store.d.ts +0 -12
  42. package/lib/src/{bundled-translations-BUyt4scr.js → bundled-translations-D1q3rSEz.js} +9 -9
  43. package/lib/src/{bundled-translations.de-DE-DEw_OVai.js → bundled-translations.de-DE-BxqLLwbh.js} +1 -1
  44. package/lib/src/{bundled-translations.es-ES-CFKWmkgY.js → bundled-translations.es-ES-uh249NlJ.js} +17 -17
  45. package/lib/src/{bundled-translations.fr-CA-DCl5LJS4.js → bundled-translations.fr-CA-BEQmv2fX.js} +1 -1
  46. package/lib/src/{bundled-translations.fr-FR-B5BjgllA.js → bundled-translations.fr-FR-BnNuCojH.js} +1 -1
  47. package/lib/src/{bundled-translations.pt-BR-5PWpMPuM.js → bundled-translations.pt-BR-CJUOxVlq.js} +1 -1
  48. package/lib/src/{bundled-translations.pt-PT-B9_wN0HR.js → bundled-translations.pt-PT-Ds9cMEqK.js} +9 -9
  49. package/lib/src/bundles/bundled-translations.de-DE.json +0 -2
  50. package/lib/src/bundles/bundled-translations.es-ES.json +0 -2
  51. package/lib/src/bundles/bundled-translations.fr-CA.json +0 -2
  52. package/lib/src/bundles/bundled-translations.fr-FR.json +0 -2
  53. package/lib/src/bundles/bundled-translations.json +0 -2
  54. package/lib/src/bundles/bundled-translations.pt-BR.json +0 -2
  55. package/lib/src/bundles/bundled-translations.pt-PT.json +0 -2
  56. package/lib/src/css/library.brand-page-brandCrowd.min.css +116 -108
  57. package/lib/src/css/library.brand-page-brandPage.min.css +116 -108
  58. package/lib/src/css/library.brand-page-designCom.min.css +116 -108
  59. package/lib/src/css/library.brand-page-preview.min.css +116 -108
  60. package/lib/src/index.mjs +1 -1
  61. package/lib/src/{lib-CIj_C38s.js → lib-xHNclG2R.js} +19655 -19841
  62. package/lib/src/metadata-builder/builders/reorder-pages-builder.d.ts +13 -0
  63. package/lib/src/metadata-builder/builders/reorder-pages-builder.js +49 -0
  64. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +0 -14
  65. package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +0 -14
  66. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +0 -12
  67. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +0 -12
  68. package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.d.ts +0 -12
  69. package/lib/src/shared/content-settings/components/slider-field/SliderField.mixin.js +0 -9
  70. package/lib/src/shared/content-settings/store/content-settings-store.d.ts +0 -12
  71. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +0 -16
  72. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +0 -14
  73. package/lib/src/utils/minify-brand-page-metadata.js +1 -11
  74. package/package.json +1 -1
  75. package/src/brand-page/components/about-section/AboutSection.vue +4 -10
  76. package/src/brand-page/components/banner-section/BannerSection.vue +4 -11
  77. package/src/brand-page/components/booking-section/BookingSection.vue +3 -11
  78. package/src/brand-page/components/contact-form/ContactForm.mixin.ts +6 -12
  79. package/src/brand-page/components/contact-form/ContactForm.vue +104 -105
  80. package/src/brand-page/components/image-gallery/ImageGallery.mixin.ts +0 -5
  81. package/src/brand-page/components/image-gallery/ImageGallery.vue +1 -1
  82. package/src/brand-page/components/mailing-list/MailingList.mixin.ts +1 -8
  83. package/src/brand-page/components/mailing-list/MailingList.vue +1 -1
  84. package/src/brand-page/components/map/Map.vue +1 -5
  85. package/src/brand-page/components/payment/request-payment/RequestPayment.mixin.ts +0 -5
  86. package/src/brand-page/components/payment/request-payment/RequestPayment.vue +0 -1
  87. package/src/brand-page/components/payment/support-me/SupportMe.mixin.ts +1 -8
  88. package/src/brand-page/components/payment/support-me/SupportMe.vue +0 -1
  89. package/src/brand-page/components/shop/Shop.vue +2 -7
  90. package/src/brand-page/components/social-links/SocialLinks.vue +3 -7
  91. package/src/brand-page/components/text/Text.vue +5 -12
  92. package/src/brand-page/components/text-media-section/TextMediaSection.vue +3 -11
  93. package/src/brand-page/components/video/Video.mixin.ts +0 -5
  94. package/src/brand-page/components/video/Video.vue +1 -1
  95. package/src/brand-page/constants/misc.constants.ts +0 -48
  96. package/src/brand-page/models/content.model.ts +0 -2
  97. package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +3 -9
  98. package/src/brand-page/utils/index.ts +0 -1
  99. package/src/brand-page/utils/migration.util.test.ts +0 -195
  100. package/src/brand-page/utils/migration.util.ts +0 -11
  101. package/src/brand-page-maker/constants/config-settings-constant.ts +0 -44
  102. package/src/brand-page-maker/convertors/about-display-style.convertor.ts +0 -10
  103. package/src/brand-page-maker/convertors/banner-align-display-style.convertor.ts +0 -8
  104. package/src/brand-page-maker/convertors/contact-layout-style.convertor.ts +0 -8
  105. package/src/brand-page-maker/models/content-settings.ts +2 -38
  106. package/src/bundles/bundled-translations.de-DE.json +0 -2
  107. package/src/bundles/bundled-translations.es-ES.json +0 -2
  108. package/src/bundles/bundled-translations.fr-CA.json +0 -2
  109. package/src/bundles/bundled-translations.fr-FR.json +0 -2
  110. package/src/bundles/bundled-translations.json +0 -2
  111. package/src/bundles/bundled-translations.pt-BR.json +0 -2
  112. package/src/bundles/bundled-translations.pt-PT.json +0 -2
  113. package/src/metadata-builder/builders/reorder-pages-builder.ts +80 -0
  114. package/src/shared/content-settings/components/content-settings/i18n/content-settings.de-DE.json +0 -2
  115. package/src/shared/content-settings/components/content-settings/i18n/content-settings.es-ES.json +0 -2
  116. package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-CA.json +0 -2
  117. package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-FR.json +0 -2
  118. package/src/shared/content-settings/components/content-settings/i18n/content-settings.json +0 -2
  119. package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-BR.json +0 -2
  120. package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-PT.json +0 -2
  121. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.vue +1 -1
  122. package/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.vue +2 -2
  123. package/src/shared/content-settings/components/slider-field/SliderField.mixin.ts +0 -9
  124. package/src/utils/minify-brand-page-metadata.ts +1 -11
  125. package/lib/src/brand-page/utils/content-padding.util.d.ts +0 -13
  126. package/lib/src/brand-page/utils/content-padding.util.js +0 -10
  127. package/lib/src/brand-page/utils/migration/migration-17.d.ts +0 -2
  128. package/lib/src/brand-page/utils/migration/migration-17.js +0 -48
  129. package/src/brand-page/utils/content-padding.util.test.ts +0 -29
  130. package/src/brand-page/utils/content-padding.util.ts +0 -13
  131. package/src/brand-page/utils/migration/migration-17.ts +0 -65
  132. 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-CIj_C38s.js";
2
+ import { _ as t } from "./lib-xHNclG2R.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-CIj_C38s.js";
2
+ import { _ as t } from "./lib-xHNclG2R.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-CIj_C38s.js";
2
+ import { _ as t } from "./lib-xHNclG2R.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-CIj_C38s.js";
2
+ import { _ as t } from "./lib-xHNclG2R.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-CIj_C38s.js";
2
+ import { _ as t } from "./lib-xHNclG2R.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-CIj_C38s.js";
2
+ import { _ as t } from "./lib-xHNclG2R.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-CIj_C38s.js";
2
+ import { _ as t } from "./lib-xHNclG2R.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-CIj_C38s.js";
2
+ import { _ as e } from "./lib-xHNclG2R.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-CIj_C38s.js";
2
+ import { _ as e } from "./lib-xHNclG2R.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-CIj_C38s.js";
2
+ import { _ as e } from "./lib-xHNclG2R.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-CIj_C38s.js";
2
+ import { _ as e } from "./lib-xHNclG2R.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-CIj_C38s.js";
2
+ import { _ as e } from "./lib-xHNclG2R.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-CIj_C38s.js";
2
+ import { _ as M } from "./lib-xHNclG2R.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-CIj_C38s.js";
2
+ import { _ as M } from "./lib-xHNclG2R.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,32 +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: the bg
37
- * image expands with the section padding (banner-style), so the default starts
38
- * flush at the edges; the spacing inside/over the image stays fixed.
39
- */
40
- export declare const CONTACT_FORM_LAYOUT_DEFAULT_PADDING: Record<string, number>;
41
- /**
42
- * Banner: full-bleed display styles (divided + full-width stacked) render the
43
- * image flush to the section edges, so their top/bottom padding defaults to 0 to
44
- * match prod — the standard 32 would push the image off the edges. Every other
45
- * banner style keeps 32. Used by the banner display-style convertor and the
46
- * migration backfill, mirroring contact-form's per-layout map above.
47
- */
48
- export declare const BANNER_DEFAULT_PADDING = 32;
49
- export declare const BANNER_FULL_BLEED_DISPLAY_STYLES: string[];
50
- export declare const bannerDisplayStyleDefaultPadding: (displayStyle?: string) => number;
51
- /**
52
- * About: a flat 32 for every display style, including the two full-image styles.
53
- * The full-image About renders the image inside the padded container, so the
54
- * standard 32 band is the intended look. Used by the About display-style
55
- * convertor and the migration backfill.
56
- */
57
- export declare const ABOUT_DEFAULT_PADDING = 32;
58
32
  export declare const BIG_IMAGE = "big-image";
59
33
  export declare const MEDIA_ONLY = "media-only";
60
34
  export declare const COLUMNS = "columns";
@@ -30,48 +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: the bg
38
- * image expands with the section padding (banner-style), so the default starts
39
- * flush at the edges; the spacing inside/over the image stays fixed.
40
- */
41
- export const CONTACT_FORM_LAYOUT_DEFAULT_PADDING = {
42
- '': 0, // collapsible (default on Brand Page / Brand Contact)
43
- [ALIGN_CENTERED]: 32,
44
- [ALIGN_CARD_CENTER]: 32,
45
- [ALIGN_CARD_CENTER_IMAGE]: 0,
46
- [TEXT_ONLY]: 32,
47
- [ALIGN_LEFT_FULL_IMAGE]: 0,
48
- [ALIGN_RIGHT_FULL_IMAGE]: 0,
49
- };
50
- /**
51
- * Banner: full-bleed display styles (divided + full-width stacked) render the
52
- * image flush to the section edges, so their top/bottom padding defaults to 0 to
53
- * match prod — the standard 32 would push the image off the edges. Every other
54
- * banner style keeps 32. Used by the banner display-style convertor and the
55
- * migration backfill, mirroring contact-form's per-layout map above.
56
- */
57
- export const BANNER_DEFAULT_PADDING = 32;
58
- export const BANNER_FULL_BLEED_DISPLAY_STYLES = [
59
- ALIGN_LEFT_FULL_IMAGE,
60
- ALIGN_RIGHT_FULL_IMAGE,
61
- ALIGN_TOP_FULL_IMAGE,
62
- ALIGN_BOTTOM_FULL_IMAGE,
63
- ALIGN_MIDDLE_FULL_IMAGE,
64
- ];
65
- export const bannerDisplayStyleDefaultPadding = (displayStyle) => displayStyle && BANNER_FULL_BLEED_DISPLAY_STYLES.includes(displayStyle)
66
- ? 0
67
- : BANNER_DEFAULT_PADDING;
68
- /**
69
- * About: a flat 32 for every display style, including the two full-image styles.
70
- * The full-image About renders the image inside the padded container, so the
71
- * standard 32 band is the intended look. Used by the About display-style
72
- * convertor and the migration backfill.
73
- */
74
- export const ABOUT_DEFAULT_PADDING = 32;
75
33
  export const BIG_IMAGE = 'big-image';
76
34
  export const MEDIA_ONLY = 'media-only';
77
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';
@@ -19,7 +19,6 @@ import { migration13 } from './migration/migration-13';
19
19
  import { migration14 } from './migration/migration-14';
20
20
  import { migration15 } from './migration/migration-15';
21
21
  import { migration16 } from './migration/migration-16';
22
- import { migration17 } from './migration/migration-17';
23
22
  const MIGRATION_TABLE = [
24
23
  {
25
24
  version: 1,
@@ -123,15 +122,6 @@ const MIGRATION_TABLE = [
123
122
  runAlways: true,
124
123
  description: 'Default sub nav background color to color match on for TAB_2 and hamburger navs depending on font color only on first load flow',
125
124
  },
126
- {
127
- version: 17,
128
- migrateFn: migration17,
129
- // runAlways: re-apply on every load (ticket stack) so already-migrated pages
130
- // pick up newly-added block defaults (e.g. Store) without a new migration.
131
- // Idempotent — only backfills when topPadding/bottomPadding aren't already set.
132
- runAlways: true,
133
- 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), contact form (per layout), banner and about (per display style)',
134
- },
135
125
  ];
136
126
  export const GetLatestModelVersion = () => Math.max(...MIGRATION_TABLE.map((x) => x.version));
137
127
  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;
@@ -501,8 +501,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
501
501
  id: string;
502
502
  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";
503
503
  personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
504
- topPadding?: number | undefined;
505
- bottomPadding?: number | undefined;
506
504
  imageUrlOverride?: string | undefined;
507
505
  imageUrlsOverride?: string | undefined;
508
506
  avatarImageUrlOverride?: string | undefined;
@@ -552,8 +550,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
552
550
  id: string;
553
551
  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";
554
552
  personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
555
- topPadding?: number | undefined;
556
- bottomPadding?: number | undefined;
557
553
  imageUrlOverride?: string | undefined;
558
554
  imageUrlsOverride?: string | undefined;
559
555
  avatarImageUrlOverride?: string | undefined;
@@ -603,8 +599,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
603
599
  id: string;
604
600
  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";
605
601
  personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
606
- topPadding?: number | undefined;
607
- bottomPadding?: number | undefined;
608
602
  imageUrlOverride?: string | undefined;
609
603
  imageUrlsOverride?: string | undefined;
610
604
  avatarImageUrlOverride?: string | undefined;
@@ -654,8 +648,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
654
648
  id: string;
655
649
  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";
656
650
  personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
657
- topPadding?: number | undefined;
658
- bottomPadding?: number | undefined;
659
651
  imageUrlOverride?: string | undefined;
660
652
  imageUrlsOverride?: string | undefined;
661
653
  avatarImageUrlOverride?: string | undefined;
@@ -705,8 +697,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
705
697
  id: string;
706
698
  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";
707
699
  personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
708
- topPadding?: number | undefined;
709
- bottomPadding?: number | undefined;
710
700
  imageUrlOverride?: string | undefined;
711
701
  imageUrlsOverride?: string | undefined;
712
702
  avatarImageUrlOverride?: string | undefined;
@@ -756,8 +746,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
756
746
  id: string;
757
747
  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";
758
748
  personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
759
- topPadding?: number | undefined;
760
- bottomPadding?: number | undefined;
761
749
  imageUrlOverride?: string | undefined;
762
750
  imageUrlsOverride?: string | undefined;
763
751
  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;