@designcrowd/library.brand-page 5.18.8-ast-padding-1 → 5.18.8-preview-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/src/{CreatedOnBrandCrowd-de-de-4K_VkRLQ.js → CreatedOnBrandCrowd-de-de-D7vzpvjY.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-n6Fd47e_.js → CreatedOnBrandCrowd-en-us-Dl0ITtKa.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-BcCANYX_.js → CreatedOnBrandCrowd-es-es-D6iWZKGj.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-qusGdhEQ.js → CreatedOnBrandCrowd-fr-ca-CRNww-gI.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-qusGdhEQ.js → CreatedOnBrandCrowd-fr-fr-CRNww-gI.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-C9IBrRc_.js → CreatedOnBrandCrowd-pt-br-BrZHUqkY.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-C9IBrRc_.js → CreatedOnBrandCrowd-pt-pt-BrZHUqkY.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-BY13DaXj.js → CreatedOnDcom-de-de-DUQwr2oJ.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-BPc5Nacx.js → CreatedOnDcom-en-us-S0V4ng2U.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-KrsweAGY.js → CreatedOnDcom-es-es-D1SEHtQ0.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-NaPJNFZH.js → CreatedOnDcom-fr-ca-C2AtgCKk.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-DjZKRox_.js → CreatedOnDcom-fr-fr-Y-0a5Srp.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-xGSMGQZa.js → CreatedOnDcom-pt-br-BhdL_qjn.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-B7CcpJ4c.js → CreatedOnDcom-pt-pt-DC8v9puv.js} +1 -1
- package/lib/src/brand-page/components/contact-form/ContactForm.mixin.d.ts +0 -4
- package/lib/src/brand-page/components/contact-form/ContactForm.mixin.js +4 -8
- package/lib/src/brand-page/components/image-gallery/ImageGallery.mixin.d.ts +0 -4
- package/lib/src/brand-page/components/image-gallery/ImageGallery.mixin.js +0 -4
- package/lib/src/brand-page/components/mailing-list/MailingList.mixin.d.ts +0 -4
- package/lib/src/brand-page/components/mailing-list/MailingList.mixin.js +1 -4
- package/lib/src/brand-page/components/payment/request-payment/RequestPayment.mixin.d.ts +0 -4
- package/lib/src/brand-page/components/payment/request-payment/RequestPayment.mixin.js +0 -4
- package/lib/src/brand-page/components/payment/support-me/SupportMe.mixin.d.ts +0 -4
- package/lib/src/brand-page/components/payment/support-me/SupportMe.mixin.js +1 -4
- package/lib/src/brand-page/components/testimonial-section/TestimonialSection.mixin.d.ts +0 -4
- package/lib/src/brand-page/components/testimonial-section/TestimonialSection.mixin.js +1 -4
- package/lib/src/brand-page/components/video/Video.mixin.d.ts +0 -4
- package/lib/src/brand-page/components/video/Video.mixin.js +0 -4
- package/lib/src/brand-page/constants/misc.constants.d.ts +0 -35
- package/lib/src/brand-page/constants/misc.constants.js +0 -51
- package/lib/src/brand-page/models/content.model.d.ts +0 -2
- package/lib/src/brand-page/utils/index.d.ts +0 -1
- package/lib/src/brand-page/utils/index.js +0 -1
- package/lib/src/brand-page/utils/migration.util.js +0 -10
- package/lib/src/brand-page-maker/components/admin-background-settings/ShapePositionSlider.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/admin-logo-settings/AdminLogoSettings.mixin.d.ts +0 -2
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +0 -12
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +0 -14
- package/lib/src/brand-page-maker/constants/config-settings-constant.js +0 -39
- package/lib/src/brand-page-maker/convertors/about-display-style.convertor.js +1 -9
- package/lib/src/brand-page-maker/convertors/banner-align-display-style.convertor.js +1 -7
- package/lib/src/brand-page-maker/convertors/contact-layout-style.convertor.js +1 -6
- package/lib/src/brand-page-maker/models/content-settings.js +2 -38
- package/lib/src/brand-page-maker/stores/ai-checkpoint/ai-checkpoint-store.d.ts +0 -12
- package/lib/src/{bundled-translations-BUyt4scr.js → bundled-translations-D1q3rSEz.js} +9 -9
- package/lib/src/{bundled-translations.de-DE-DEw_OVai.js → bundled-translations.de-DE-BxqLLwbh.js} +1 -1
- package/lib/src/{bundled-translations.es-ES-CFKWmkgY.js → bundled-translations.es-ES-uh249NlJ.js} +17 -17
- package/lib/src/{bundled-translations.fr-CA-DCl5LJS4.js → bundled-translations.fr-CA-BEQmv2fX.js} +1 -1
- package/lib/src/{bundled-translations.fr-FR-B5BjgllA.js → bundled-translations.fr-FR-BnNuCojH.js} +1 -1
- package/lib/src/{bundled-translations.pt-BR-5PWpMPuM.js → bundled-translations.pt-BR-CJUOxVlq.js} +1 -1
- package/lib/src/{bundled-translations.pt-PT-B9_wN0HR.js → bundled-translations.pt-PT-Ds9cMEqK.js} +9 -9
- package/lib/src/bundles/bundled-translations.de-DE.json +0 -2
- package/lib/src/bundles/bundled-translations.es-ES.json +0 -2
- package/lib/src/bundles/bundled-translations.fr-CA.json +0 -2
- package/lib/src/bundles/bundled-translations.fr-FR.json +0 -2
- package/lib/src/bundles/bundled-translations.json +0 -2
- package/lib/src/bundles/bundled-translations.pt-BR.json +0 -2
- package/lib/src/bundles/bundled-translations.pt-PT.json +0 -2
- package/lib/src/css/library.brand-page-brandCrowd.min.css +155 -141
- package/lib/src/css/library.brand-page-brandPage.min.css +155 -141
- package/lib/src/css/library.brand-page-designCom.min.css +155 -141
- package/lib/src/css/library.brand-page-preview.min.css +155 -141
- package/lib/src/index.d.ts +4 -0
- package/lib/src/index.mjs +106 -103
- package/lib/src/{lib-ClPLZIYL.js → lib-BkgHrDH6.js} +20031 -20211
- package/lib/src/lib.js +10 -0
- package/lib/src/metadata-builder/builders/reorder-pages-builder.d.ts +13 -0
- package/lib/src/metadata-builder/builders/reorder-pages-builder.js +49 -0
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +0 -14
- package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +0 -14
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +0 -12
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +0 -12
- package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.d.ts +0 -12
- package/lib/src/shared/content-settings/components/slider-field/SliderField.mixin.js +0 -9
- package/lib/src/shared/content-settings/store/content-settings-store.d.ts +0 -12
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +0 -16
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +0 -14
- package/lib/src/utils/minify-brand-page-metadata.js +1 -11
- package/package.json +1 -1
- package/src/brand-page/components/about-section/AboutSection.vue +4 -10
- package/src/brand-page/components/banner-section/BannerSection.vue +4 -11
- package/src/brand-page/components/booking-section/BookingSection.vue +3 -11
- package/src/brand-page/components/contact-form/ContactForm.mixin.ts +6 -12
- package/src/brand-page/components/contact-form/ContactForm.vue +104 -105
- package/src/brand-page/components/image-gallery/ImageGallery.mixin.ts +0 -5
- package/src/brand-page/components/image-gallery/ImageGallery.vue +1 -1
- package/src/brand-page/components/mailing-list/MailingList.mixin.ts +1 -8
- package/src/brand-page/components/mailing-list/MailingList.vue +1 -1
- package/src/brand-page/components/map/Map.vue +1 -5
- package/src/brand-page/components/payment/request-payment/RequestPayment.mixin.ts +0 -5
- package/src/brand-page/components/payment/request-payment/RequestPayment.vue +0 -1
- package/src/brand-page/components/payment/support-me/SupportMe.mixin.ts +1 -8
- package/src/brand-page/components/payment/support-me/SupportMe.vue +0 -1
- package/src/brand-page/components/shop/Shop.vue +2 -7
- package/src/brand-page/components/social-links/SocialLinks.vue +3 -7
- package/src/brand-page/components/testimonial-section/TestimonialSection.mixin.ts +1 -7
- package/src/brand-page/components/testimonial-section/TestimonialSection.vue +6 -4
- package/src/brand-page/components/text/Text.vue +5 -12
- package/src/brand-page/components/text-media-section/TextMediaSection.vue +3 -11
- package/src/brand-page/components/video/Video.mixin.ts +0 -5
- package/src/brand-page/components/video/Video.vue +1 -1
- package/src/brand-page/constants/misc.constants.ts +0 -58
- package/src/brand-page/models/content.model.ts +0 -2
- package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +3 -9
- package/src/brand-page/utils/index.ts +0 -1
- package/src/brand-page/utils/migration.util.test.ts +0 -252
- package/src/brand-page/utils/migration.util.ts +0 -11
- package/src/brand-page-maker/constants/config-settings-constant.ts +0 -45
- package/src/brand-page-maker/convertors/about-display-style.convertor.ts +0 -10
- package/src/brand-page-maker/convertors/banner-align-display-style.convertor.ts +0 -8
- package/src/brand-page-maker/convertors/contact-layout-style.convertor.ts +0 -8
- package/src/brand-page-maker/models/content-settings.ts +2 -41
- package/src/bundles/bundled-translations.de-DE.json +0 -2
- package/src/bundles/bundled-translations.es-ES.json +0 -2
- package/src/bundles/bundled-translations.fr-CA.json +0 -2
- package/src/bundles/bundled-translations.fr-FR.json +0 -2
- package/src/bundles/bundled-translations.json +0 -2
- package/src/bundles/bundled-translations.pt-BR.json +0 -2
- package/src/bundles/bundled-translations.pt-PT.json +0 -2
- package/src/lib.ts +12 -0
- package/src/metadata-builder/builders/reorder-pages-builder.ts +80 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.de-DE.json +0 -2
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.es-ES.json +0 -2
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-CA.json +0 -2
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-FR.json +0 -2
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.json +0 -2
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-BR.json +0 -2
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-PT.json +0 -2
- package/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.vue +1 -1
- package/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.vue +2 -2
- package/src/shared/content-settings/components/slider-field/SliderField.mixin.ts +0 -9
- package/src/utils/minify-brand-page-metadata.ts +1 -11
- package/lib/src/brand-page/utils/content-padding.util.d.ts +0 -13
- package/lib/src/brand-page/utils/content-padding.util.js +0 -10
- package/lib/src/brand-page/utils/migration/migration-17.d.ts +0 -2
- package/lib/src/brand-page/utils/migration/migration-17.js +0 -54
- package/src/brand-page/utils/content-padding.util.test.ts +0 -29
- package/src/brand-page/utils/content-padding.util.ts +0 -13
- package/src/brand-page/utils/migration/migration-17.ts +0 -72
- package/src/brand-page-maker/convertors/contact-layout-style.convertor.test.ts +0 -50
|
@@ -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
|
|
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
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
|
|
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
|
|
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
|
},
|
|
@@ -26,10 +26,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
26
26
|
debouncedForceCarouselUpdate: DebounceHandle | undefined;
|
|
27
27
|
carouselRef: string;
|
|
28
28
|
}, {
|
|
29
|
-
contentPaddingStyle(): {
|
|
30
|
-
paddingTop: string;
|
|
31
|
-
paddingBottom: string;
|
|
32
|
-
};
|
|
33
29
|
textAlignClass(): {
|
|
34
30
|
'c_testimonial-big-image-text-item': boolean;
|
|
35
31
|
'tw-mb-2': boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent } from 'vue';
|
|
2
2
|
import ComponentCommonMixin from '../mixins/component-common.mixin';
|
|
3
|
-
import { getRenderText
|
|
3
|
+
import { getRenderText } from '@brand-page/utils';
|
|
4
4
|
import debounce from 'lodash.debounce';
|
|
5
5
|
import { DEVICE_CSS_TRANSITION_DELAY } from '@brand-page-maker/constants';
|
|
6
6
|
const DEBOUNCE_WAIT_MS = 100;
|
|
@@ -38,9 +38,6 @@ export default defineComponent({
|
|
|
38
38
|
}, DEBOUNCE_WAIT_MS);
|
|
39
39
|
},
|
|
40
40
|
computed: {
|
|
41
|
-
contentPaddingStyle() {
|
|
42
|
-
return toContentPaddingStyle(this.viewModel);
|
|
43
|
-
},
|
|
44
41
|
textAlignClass() {
|
|
45
42
|
return {
|
|
46
43
|
'c_testimonial-big-image-text-item': this.viewModel.displayStyle === 'big-image',
|
|
@@ -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,41 +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
|
-
/**
|
|
59
|
-
* Testimonials: a single top/bottom value across both breakpoints, replacing the
|
|
60
|
-
* old 32px mobile / 80px desktop split. The same value applies to every display
|
|
61
|
-
* style (centered / big-image / columns) — they share one root, so padding does
|
|
62
|
-
* not vary by style. Used by the new-block default and the migration backfill.
|
|
63
|
-
* Default (BP-5703): 48px — the single value chosen for both breakpoints (replaces
|
|
64
|
-
* the old 32px mobile / 80px desktop split).
|
|
65
|
-
*/
|
|
66
|
-
export declare const TESTIMONIAL_DEFAULT_PADDING = 48;
|
|
67
32
|
export declare const BIG_IMAGE = "big-image";
|
|
68
33
|
export declare const MEDIA_ONLY = "media-only";
|
|
69
34
|
export declare const COLUMNS = "columns";
|
|
@@ -30,57 +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
|
-
/**
|
|
76
|
-
* Testimonials: a single top/bottom value across both breakpoints, replacing the
|
|
77
|
-
* old 32px mobile / 80px desktop split. The same value applies to every display
|
|
78
|
-
* style (centered / big-image / columns) — they share one root, so padding does
|
|
79
|
-
* not vary by style. Used by the new-block default and the migration backfill.
|
|
80
|
-
* Default (BP-5703): 48px — the single value chosen for both breakpoints (replaces
|
|
81
|
-
* the old 32px mobile / 80px desktop split).
|
|
82
|
-
*/
|
|
83
|
-
export const TESTIMONIAL_DEFAULT_PADDING = 48;
|
|
84
33
|
export const BIG_IMAGE = 'big-image';
|
|
85
34
|
export const MEDIA_ONLY = 'media-only';
|
|
86
35
|
export const COLUMNS = 'columns';
|
|
@@ -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) => {
|
package/lib/src/brand-page-maker/components/admin-background-settings/ShapePositionSlider.mixin.d.ts
CHANGED
|
@@ -48,9 +48,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
48
48
|
}>> & Readonly<{
|
|
49
49
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
50
50
|
}>, {
|
|
51
|
-
modelValue: number;
|
|
52
51
|
min: number;
|
|
53
52
|
max: number;
|
|
53
|
+
modelValue: number;
|
|
54
54
|
axis: string;
|
|
55
55
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
56
56
|
export default _default;
|
package/lib/src/brand-page-maker/components/admin-logo-settings/AdminLogoSettings.mixin.d.ts
CHANGED
|
@@ -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;
|