@designcrowd/library.brand-page 5.18.5 → 5.18.6-ast-padding-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-ciKpCAd9.js → CreatedOnBrandCrowd-de-de-CAtPZtwo.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-CZbTS1AZ.js → CreatedOnBrandCrowd-en-us-Dcx4yFkK.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-C8MExng5.js → CreatedOnBrandCrowd-es-es-DpodH0gD.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-CO0L9NK2.js → CreatedOnBrandCrowd-fr-ca-DZbMRJn-.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-CO0L9NK2.js → CreatedOnBrandCrowd-fr-fr-DZbMRJn-.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-zVDvBF2H.js → CreatedOnBrandCrowd-pt-br-C3gBveLk.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-zVDvBF2H.js → CreatedOnBrandCrowd-pt-pt-C3gBveLk.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-WrUSQdjf.js → CreatedOnDcom-de-de-DHNyyTV9.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-BqC9YtkL.js → CreatedOnDcom-en-us-BjqZ0Jmw.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-BzH32Oya.js → CreatedOnDcom-es-es-tiNjDJmH.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-D7TYfCW0.js → CreatedOnDcom-fr-ca-COUSI6w1.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-DVlyfBtb.js → CreatedOnDcom-fr-fr-c3UCfh9A.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-CSRB91ey.js → CreatedOnDcom-pt-br-U1jbo_g5.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-9KMj5gpc.js → CreatedOnDcom-pt-pt-BOW_n3bo.js} +1 -1
- package/lib/src/brand-page/components/contact-form/ContactForm.mixin.d.ts +4 -0
- package/lib/src/brand-page/components/contact-form/ContactForm.mixin.js +8 -4
- package/lib/src/brand-page/components/image-gallery/ImageGallery.mixin.d.ts +4 -0
- package/lib/src/brand-page/components/image-gallery/ImageGallery.mixin.js +4 -0
- package/lib/src/brand-page/components/mailing-list/MailingList.mixin.d.ts +4 -0
- package/lib/src/brand-page/components/mailing-list/MailingList.mixin.js +4 -1
- package/lib/src/brand-page/components/payment/request-payment/RequestPayment.mixin.d.ts +4 -0
- package/lib/src/brand-page/components/payment/request-payment/RequestPayment.mixin.js +4 -0
- package/lib/src/brand-page/components/payment/support-me/SupportMe.mixin.d.ts +4 -0
- package/lib/src/brand-page/components/payment/support-me/SupportMe.mixin.js +4 -1
- package/lib/src/brand-page/components/video/Video.mixin.d.ts +4 -0
- package/lib/src/brand-page/components/video/Video.mixin.js +4 -0
- package/lib/src/brand-page/constants/misc.constants.d.ts +30 -0
- package/lib/src/brand-page/constants/misc.constants.js +51 -0
- package/lib/src/brand-page/models/content.model.d.ts +2 -0
- package/lib/src/brand-page/utils/content-padding.util.d.ts +13 -0
- package/lib/src/brand-page/utils/content-padding.util.js +10 -0
- package/lib/src/brand-page/utils/index.d.ts +1 -0
- package/lib/src/brand-page/utils/index.js +1 -0
- package/lib/src/brand-page/utils/migration/migration-17.d.ts +2 -0
- package/lib/src/brand-page/utils/migration/migration-17.js +50 -0
- package/lib/src/brand-page/utils/migration.util.js +10 -0
- package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.d.ts +2 -7
- package/lib/src/brand-page-maker/components/admin-logo-settings/AdminLogoSettings.mixin.d.ts +2 -0
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +14 -7
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.js +0 -8
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMakerTemplateSettings.mixin.d.ts +2 -7
- package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.js +0 -1
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +16 -87
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.js +0 -5
- package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.d.ts +2 -7
- package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.d.ts +0 -3
- package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.js +0 -11
- package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +2 -7
- package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +2 -7
- package/lib/src/brand-page-maker/components/social-share/SocialShare.mixin.d.ts +2 -7
- package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +2 -7
- package/lib/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.js +0 -9
- package/lib/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.js +1 -20
- package/lib/src/brand-page-maker/composables/useEventTracker.d.ts +0 -20
- package/lib/src/brand-page-maker/composables/useEventTracker.js +0 -17
- package/lib/src/brand-page-maker/constants/config-settings-constant.js +37 -0
- package/lib/src/brand-page-maker/convertors/about-display-style.convertor.js +9 -1
- package/lib/src/brand-page-maker/convertors/banner-align-display-style.convertor.js +7 -1
- package/lib/src/brand-page-maker/convertors/contact-layout-style.convertor.js +6 -1
- package/lib/src/brand-page-maker/models/content-settings.js +36 -2
- package/lib/src/brand-page-maker/stores/ai-checkpoint/ai-checkpoint-store.d.ts +12 -0
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.d.ts +2 -41
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +5 -307
- package/lib/src/brand-page-maker/stores/logo-store/logo-store.d.ts +0 -1
- package/lib/src/brand-page-maker/stores/user/user-store.js +0 -1
- package/lib/src/bundled-translations-Chw0nsFv.js +175 -0
- package/lib/src/bundled-translations.de-DE-cqBv7atZ.js +175 -0
- package/lib/src/bundled-translations.es-ES-D9VXftl_.js +175 -0
- package/lib/src/bundled-translations.fr-CA-BYstWXcO.js +175 -0
- package/lib/src/bundled-translations.fr-FR-D1H1hJD4.js +175 -0
- package/lib/src/bundled-translations.pt-BR-DqNFuNHX.js +175 -0
- package/lib/src/bundled-translations.pt-PT-tOic0FfQ.js +175 -0
- package/lib/src/bundles/bundled-translations.de-DE.json +3 -3
- package/lib/src/bundles/bundled-translations.es-ES.json +3 -3
- package/lib/src/bundles/bundled-translations.fr-CA.json +3 -3
- package/lib/src/bundles/bundled-translations.fr-FR.json +3 -3
- package/lib/src/bundles/bundled-translations.json +3 -3
- package/lib/src/bundles/bundled-translations.pt-BR.json +3 -3
- package/lib/src/bundles/bundled-translations.pt-PT.json +3 -3
- package/lib/src/constants/ui.d.ts +0 -1
- package/lib/src/css/library.brand-page-brandCrowd.min.css +123 -136
- package/lib/src/css/library.brand-page-brandPage.min.css +124 -136
- package/lib/src/css/library.brand-page-designCom.min.css +123 -136
- package/lib/src/css/library.brand-page-preview.min.css +123 -136
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-BXbo_N88.js → lib-Bl7w5LQl.js} +28005 -28416
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +16 -87
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.js +0 -5
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.stories.js +0 -1
- package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +16 -23
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +12 -16
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +14 -7
- package/lib/src/shared/content-settings/components/draggable-item-list/DraggableItemList.mixin.d.ts +0 -3
- package/lib/src/shared/content-settings/components/draggable-item-list/DraggableItemList.mixin.js +2 -19
- package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.d.ts +12 -0
- package/lib/src/shared/content-settings/components/form-fields-field/FormFieldsField.mixin.js +8 -18
- package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +0 -64
- package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.js +0 -6
- package/lib/src/shared/content-settings/components/slider-field/SliderField.mixin.js +9 -0
- package/lib/src/shared/content-settings/store/content-settings-store.d.ts +12 -0
- package/lib/src/shared/logo-settings/components/EditLogoSettings.mixin.d.ts +0 -19
- package/lib/src/shared/logo-settings/components/EditLogoSettings.mixin.js +0 -11
- package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +2 -10
- package/lib/src/shared/logo-settings/store/editable-logo-store.d.ts +1 -5
- package/lib/src/shared/logo-settings/store/editable-logo-store.js +0 -31
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +18 -24
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +16 -10
- package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +2 -23
- package/lib/src/shared/side-bar/components/SideBarTabButton.mixin.d.ts +0 -16
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +2 -23
- package/lib/src/shared/template-settings/components/TemplatesSettings.mixin.d.ts +0 -16
- package/lib/src/utils/minify-brand-page-metadata.js +11 -1
- package/package.json +1 -1
- package/src/brand-page/components/about-section/AboutSection.vue +10 -4
- package/src/brand-page/components/banner-section/BannerSection.vue +11 -4
- package/src/brand-page/components/booking-section/BookingSection.vue +11 -3
- package/src/brand-page/components/contact-form/ContactForm.mixin.ts +12 -6
- package/src/brand-page/components/contact-form/ContactForm.vue +115 -118
- package/src/brand-page/components/image-gallery/ImageGallery.mixin.ts +5 -0
- package/src/brand-page/components/image-gallery/ImageGallery.vue +1 -1
- package/src/brand-page/components/mailing-list/MailingList.mixin.ts +8 -1
- package/src/brand-page/components/mailing-list/MailingList.vue +1 -1
- package/src/brand-page/components/map/Map.vue +5 -1
- package/src/brand-page/components/payment/request-payment/RequestPayment.mixin.ts +5 -0
- package/src/brand-page/components/payment/request-payment/RequestPayment.vue +1 -0
- package/src/brand-page/components/payment/support-me/SupportMe.mixin.ts +8 -1
- package/src/brand-page/components/payment/support-me/SupportMe.vue +1 -0
- package/src/brand-page/components/shop/Shop.vue +7 -2
- package/src/brand-page/components/social-links/SocialLinks.vue +7 -3
- package/src/brand-page/components/text/Text.vue +12 -5
- package/src/brand-page/components/text-media-section/TextMediaSection.vue +11 -3
- package/src/brand-page/components/video/Video.mixin.ts +5 -0
- package/src/brand-page/components/video/Video.vue +1 -1
- package/src/brand-page/constants/misc.constants.ts +60 -0
- package/src/brand-page/models/content.model.ts +2 -0
- package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +9 -3
- package/src/brand-page/utils/content-padding.util.test.ts +29 -0
- package/src/brand-page/utils/content-padding.util.ts +13 -0
- package/src/brand-page/utils/index.ts +1 -0
- package/src/brand-page/utils/migration/migration-17.ts +73 -0
- package/src/brand-page/utils/migration.util.test.ts +145 -0
- package/src/brand-page/utils/migration.util.ts +11 -0
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.ts +0 -9
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.vue +3 -2
- package/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.ts +0 -1
- package/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.ts +0 -5
- package/src/brand-page-maker/components/cookie-collection/CookieSettings.vue +17 -18
- package/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.ts +0 -13
- package/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.vue +3 -26
- package/src/brand-page-maker/components/quick-link-bar/i18n/quick-link-bar.de-DE.json +4 -6
- package/src/brand-page-maker/components/quick-link-bar/i18n/quick-link-bar.es-ES.json +4 -6
- package/src/brand-page-maker/components/quick-link-bar/i18n/quick-link-bar.fr-CA.json +4 -6
- package/src/brand-page-maker/components/quick-link-bar/i18n/quick-link-bar.fr-FR.json +4 -6
- package/src/brand-page-maker/components/quick-link-bar/i18n/quick-link-bar.json +1 -3
- package/src/brand-page-maker/components/quick-link-bar/i18n/quick-link-bar.pt-BR.json +4 -6
- package/src/brand-page-maker/components/quick-link-bar/i18n/quick-link-bar.pt-PT.json +4 -6
- package/src/brand-page-maker/components/save-contact/SaveContact.vue +19 -12
- package/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.ts +0 -10
- package/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.ts +1 -24
- package/src/brand-page-maker/composables/useEventTracker.ts +0 -29
- package/src/brand-page-maker/constants/config-settings-constant.ts +43 -0
- package/src/brand-page-maker/convertors/about-display-style.convertor.ts +10 -0
- package/src/brand-page-maker/convertors/banner-align-display-style.convertor.ts +8 -0
- package/src/brand-page-maker/convertors/contact-layout-style.convertor.test.ts +50 -0
- package/src/brand-page-maker/convertors/contact-layout-style.convertor.ts +8 -0
- package/src/brand-page-maker/models/content-settings.ts +38 -2
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.test.ts +0 -334
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +4 -371
- package/src/brand-page-maker/stores/logo-store/logo-store.ts +0 -5
- package/src/brand-page-maker/stores/user/user-store.ts +0 -1
- package/src/bundles/bundled-translations.de-DE.json +3 -3
- package/src/bundles/bundled-translations.es-ES.json +3 -3
- package/src/bundles/bundled-translations.fr-CA.json +3 -3
- package/src/bundles/bundled-translations.fr-FR.json +3 -3
- package/src/bundles/bundled-translations.json +3 -3
- package/src/bundles/bundled-translations.pt-BR.json +3 -3
- package/src/bundles/bundled-translations.pt-PT.json +3 -3
- package/src/constants/ui.ts +0 -1
- package/src/shared/content-settings/components/content-settings/ContentSettings.mixin.ts +0 -5
- package/src/shared/content-settings/components/content-settings/ContentSettings.stories.ts +0 -1
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.de-DE.json +2 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.es-ES.json +2 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-CA.json +2 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-FR.json +2 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.json +2 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-BR.json +2 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-PT.json +2 -0
- package/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.vue +1 -1
- package/src/shared/content-settings/components/draggable-item-list/DraggableItemList.mixin.ts +2 -19
- package/src/shared/content-settings/components/draggable-item-list/DraggableItemList.vue +1 -1
- package/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.vue +2 -2
- package/src/shared/content-settings/components/form-fields-field/FormFieldsField.mixin.ts +10 -26
- package/src/shared/content-settings/components/logo-selection-field/LogoSelection.vue +48 -63
- package/src/shared/content-settings/components/page-dropdown-field/PageDropdownField.vue +0 -4
- package/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.ts +0 -7
- package/src/shared/content-settings/components/slider-field/SliderField.mixin.ts +9 -0
- package/src/shared/content-settings/components/text-field/TextField.vue +0 -1
- package/src/shared/content-settings/components/text-image-field/TextImageField.vue +4 -33
- package/src/shared/logo-settings/components/EditLogoSettings.mixin.ts +0 -11
- package/src/shared/logo-settings/store/editable-logo-store.ts +1 -42
- package/src/utils/minify-brand-page-metadata.ts +11 -1
- package/lib/src/brand-page-maker/composables/useUndoRedoFlag.d.ts +0 -17
- package/lib/src/brand-page-maker/composables/useUndoRedoFlag.js +0 -25
- package/lib/src/brand-page-maker/stores/history/history-store.d.ts +0 -83
- package/lib/src/brand-page-maker/stores/history/history-store.js +0 -495
- package/lib/src/bundled-translations-D1q3rSEz.js +0 -175
- package/lib/src/bundled-translations.de-DE-BxqLLwbh.js +0 -175
- package/lib/src/bundled-translations.es-ES-uh249NlJ.js +0 -175
- package/lib/src/bundled-translations.fr-CA-BEQmv2fX.js +0 -175
- package/lib/src/bundled-translations.fr-FR-BnNuCojH.js +0 -175
- package/lib/src/bundled-translations.pt-BR-CJUOxVlq.js +0 -175
- package/lib/src/bundled-translations.pt-PT-Ds9cMEqK.js +0 -175
- package/lib/src/metadata-builder/builders/reorder-pages-builder.d.ts +0 -13
- package/lib/src/metadata-builder/builders/reorder-pages-builder.js +0 -49
- package/src/brand-page-maker/components/quick-link-bar/RedoButton.vue +0 -66
- package/src/brand-page-maker/components/quick-link-bar/UndoButton.vue +0 -66
- package/src/brand-page-maker/components/quick-link-bar/undo-redo-buttons.test.ts +0 -116
- package/src/brand-page-maker/composables/useUndoRedoFlag.ts +0 -30
- package/src/brand-page-maker/stores/history/history-store.test.ts +0 -1120
- package/src/brand-page-maker/stores/history/history-store.ts +0 -660
- package/src/metadata-builder/builders/reorder-pages-builder.ts +0 -80
|
@@ -3445,6 +3445,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3445
3445
|
id: string;
|
|
3446
3446
|
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";
|
|
3447
3447
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
3448
|
+
topPadding?: number | undefined;
|
|
3449
|
+
bottomPadding?: number | undefined;
|
|
3448
3450
|
imageUrlOverride?: string | undefined;
|
|
3449
3451
|
imageUrlsOverride?: string | undefined;
|
|
3450
3452
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -3494,6 +3496,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3494
3496
|
id: string;
|
|
3495
3497
|
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";
|
|
3496
3498
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
3499
|
+
topPadding?: number | undefined;
|
|
3500
|
+
bottomPadding?: number | undefined;
|
|
3497
3501
|
imageUrlOverride?: string | undefined;
|
|
3498
3502
|
imageUrlsOverride?: string | undefined;
|
|
3499
3503
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -3543,6 +3547,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3543
3547
|
id: string;
|
|
3544
3548
|
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";
|
|
3545
3549
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
3550
|
+
topPadding?: number | undefined;
|
|
3551
|
+
bottomPadding?: number | undefined;
|
|
3546
3552
|
imageUrlOverride?: string | undefined;
|
|
3547
3553
|
imageUrlsOverride?: string | undefined;
|
|
3548
3554
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -3592,6 +3598,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3592
3598
|
id: string;
|
|
3593
3599
|
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";
|
|
3594
3600
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
3601
|
+
topPadding?: number | undefined;
|
|
3602
|
+
bottomPadding?: number | undefined;
|
|
3595
3603
|
imageUrlOverride?: string | undefined;
|
|
3596
3604
|
imageUrlsOverride?: string | undefined;
|
|
3597
3605
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -3641,6 +3649,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3641
3649
|
id: string;
|
|
3642
3650
|
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";
|
|
3643
3651
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
3652
|
+
topPadding?: number | undefined;
|
|
3653
|
+
bottomPadding?: number | undefined;
|
|
3644
3654
|
imageUrlOverride?: string | undefined;
|
|
3645
3655
|
imageUrlsOverride?: string | undefined;
|
|
3646
3656
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -3690,6 +3700,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3690
3700
|
id: string;
|
|
3691
3701
|
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";
|
|
3692
3702
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
3703
|
+
topPadding?: number | undefined;
|
|
3704
|
+
bottomPadding?: number | undefined;
|
|
3693
3705
|
imageUrlOverride?: string | undefined;
|
|
3694
3706
|
imageUrlsOverride?: string | undefined;
|
|
3695
3707
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -4269,7 +4281,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4269
4281
|
logoTemplateMetadata: string;
|
|
4270
4282
|
isLogoDraftSaved: boolean;
|
|
4271
4283
|
isTextOnlyLogo: boolean;
|
|
4272
|
-
variationsByDraftToken: Record<string, import("@shared/logo-settings/store").EditableLogoVariation[]>;
|
|
4273
4284
|
} & import("pinia").PiniaCustomStateProperties<import("@shared/logo-settings/store").EditableLogoState>) => () => string | undefined;
|
|
4274
4285
|
}, {
|
|
4275
4286
|
setStateAsync(payload: {
|
|
@@ -4287,8 +4298,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4287
4298
|
getEditableLogoVariationByVariationId(id: number): any;
|
|
4288
4299
|
getEditableLogoVariationByBase64(base64: string): any;
|
|
4289
4300
|
updateEditableLogoImageUrlAsync(defaultPrimaryText?: string | undefined, overrideLogoVariation?: number | undefined, layout?: string | undefined): Promise<void>;
|
|
4290
|
-
stampLogoBase64IntoBrandPageData(overrideLogoVariation?: number | undefined): void;
|
|
4291
|
-
restoreVariationsForDraftToken(logoDraftToken: string): boolean;
|
|
4292
4301
|
updateMetadataAsync(defaultPrimaryText?: string | undefined, resetLogoTemplateMetadata?: boolean, layout?: string | undefined): Promise<void>;
|
|
4293
4302
|
updateEditableLogoImageByVariationAsync(editableLogoVariation: import("@shared/logo-settings/store").EditableLogoVariation, defaultPrimaryText?: string | undefined, layout?: string | undefined): Promise<import("../../../../clients/fabric-render-client").ModifyLogoDataResponse | null>;
|
|
4294
4303
|
getDraftMetadata(logoDraftToken: string): string | undefined;
|
|
@@ -4396,21 +4405,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4396
4405
|
hideChangeTemplateConfirmModal(): void;
|
|
4397
4406
|
onBackgroundChanged(): void;
|
|
4398
4407
|
onChangeTemplateConfirmModalCancel(): void;
|
|
4399
|
-
onChangeTemplateConfirmModalConfirm():
|
|
4408
|
+
onChangeTemplateConfirmModalConfirm(): void;
|
|
4400
4409
|
onContentChanged(): void;
|
|
4401
4410
|
onStyleChanged(): void;
|
|
4402
|
-
onTemplateSelected(payload: import("@brand-page-maker/stores").OnTemplateSelectedPayload):
|
|
4411
|
+
onTemplateSelected(payload: import("@brand-page-maker/stores").OnTemplateSelectedPayload): void;
|
|
4403
4412
|
setSelectedTabName(payload: any): void;
|
|
4404
4413
|
showNextNotificationMessage(): Promise<void>;
|
|
4405
4414
|
updateContent<TContent extends import("@brand-page").Content, P extends {
|
|
4406
4415
|
id: string;
|
|
4407
4416
|
content: TContent;
|
|
4408
4417
|
}>(payload: P): Promise<void>;
|
|
4409
|
-
_captureTemplateSwitchIfEnabled(): void;
|
|
4410
|
-
applyHistorySnapshot(snapshot: import("@brand-page").BrandPageModel, activePageId?: string | undefined, logoEditsStr?: string | undefined): Promise<void>;
|
|
4411
|
-
_syncLogoSettingsFromSnapshot(snapshot: import("@brand-page").BrandPageModel, logoEditsStr?: string | undefined): Promise<void>;
|
|
4412
|
-
_navigateToActivePage(activePageId?: string | undefined): void;
|
|
4413
|
-
_fallbackSidebarIfSelectedContentMissing(snapshot: import("@brand-page").BrandPageModel): void;
|
|
4414
4418
|
export(): import("@brand-page").BrandPageModel;
|
|
4415
4419
|
setBrandPageType({ brandPageType }: {
|
|
4416
4420
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
@@ -4458,6 +4462,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4458
4462
|
id: string;
|
|
4459
4463
|
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";
|
|
4460
4464
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
4465
|
+
topPadding?: number | undefined;
|
|
4466
|
+
bottomPadding?: number | undefined;
|
|
4461
4467
|
imageUrlOverride?: string | undefined;
|
|
4462
4468
|
imageUrlsOverride?: string | undefined;
|
|
4463
4469
|
avatarImageUrlOverride?: string | undefined;
|
package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts
CHANGED
|
@@ -173,21 +173,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
173
173
|
hideChangeTemplateConfirmModal(): void;
|
|
174
174
|
onBackgroundChanged(): void;
|
|
175
175
|
onChangeTemplateConfirmModalCancel(): void;
|
|
176
|
-
onChangeTemplateConfirmModalConfirm():
|
|
176
|
+
onChangeTemplateConfirmModalConfirm(): void;
|
|
177
177
|
onContentChanged(): void;
|
|
178
178
|
onStyleChanged(): void;
|
|
179
|
-
onTemplateSelected(payload: import("@brand-page-maker/stores").OnTemplateSelectedPayload):
|
|
179
|
+
onTemplateSelected(payload: import("@brand-page-maker/stores").OnTemplateSelectedPayload): void;
|
|
180
180
|
setSelectedTabName(payload: any): void;
|
|
181
181
|
showNextNotificationMessage(): Promise<void>;
|
|
182
182
|
updateContent<TContent extends import("@brand-page/models").Content, P extends {
|
|
183
183
|
id: string;
|
|
184
184
|
content: TContent;
|
|
185
185
|
}>(payload: P): Promise<void>;
|
|
186
|
-
_captureTemplateSwitchIfEnabled(): void;
|
|
187
|
-
applyHistorySnapshot(snapshot: import("@brand-page/models").BrandPageModel, activePageId?: string | undefined, logoEditsStr?: string | undefined): Promise<void>;
|
|
188
|
-
_syncLogoSettingsFromSnapshot(snapshot: import("@brand-page/models").BrandPageModel, logoEditsStr?: string | undefined): Promise<void>;
|
|
189
|
-
_navigateToActivePage(activePageId?: string | undefined): void;
|
|
190
|
-
_fallbackSidebarIfSelectedContentMissing(snapshot: import("@brand-page/models").BrandPageModel): void;
|
|
191
186
|
export(): import("@brand-page/models").BrandPageModel;
|
|
192
187
|
setBrandPageType({ brandPageType }: {
|
|
193
188
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
@@ -484,22 +479,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
484
479
|
}>;
|
|
485
480
|
eventTracker: {
|
|
486
481
|
sendShippingToggleEvent: (isEnabled: boolean) => void;
|
|
487
|
-
sendUndoEvent: (props: {
|
|
488
|
-
entries_count: number;
|
|
489
|
-
actor: string | undefined;
|
|
490
|
-
}) => void;
|
|
491
|
-
sendRedoEvent: (props: {
|
|
492
|
-
entries_count: number;
|
|
493
|
-
actor: string | undefined;
|
|
494
|
-
}) => void;
|
|
495
|
-
sendHistoryCappedEvent: (props: {
|
|
496
|
-
entries_count: number;
|
|
497
|
-
size_bytes: number;
|
|
498
|
-
}) => void;
|
|
499
|
-
sendHistoryOversizedEvent: (props: {
|
|
500
|
-
attempted_bytes: number;
|
|
501
|
-
source: string;
|
|
502
|
-
}) => void;
|
|
503
482
|
sendSaveContactEvent: () => void;
|
|
504
483
|
sendStartForFreeEvent: () => void;
|
|
505
484
|
sendFooterLinkClickEvent: (linkType: "watermark_logo" | "create_your_website") => void;
|
|
@@ -17,22 +17,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
17
17
|
isDesignCom: import("vue").ComputedRef<boolean>;
|
|
18
18
|
eventTracker: {
|
|
19
19
|
sendShippingToggleEvent: (isEnabled: boolean) => void;
|
|
20
|
-
sendUndoEvent: (props: {
|
|
21
|
-
entries_count: number;
|
|
22
|
-
actor: string | undefined;
|
|
23
|
-
}) => void;
|
|
24
|
-
sendRedoEvent: (props: {
|
|
25
|
-
entries_count: number;
|
|
26
|
-
actor: string | undefined;
|
|
27
|
-
}) => void;
|
|
28
|
-
sendHistoryCappedEvent: (props: {
|
|
29
|
-
entries_count: number;
|
|
30
|
-
size_bytes: number;
|
|
31
|
-
}) => void;
|
|
32
|
-
sendHistoryOversizedEvent: (props: {
|
|
33
|
-
attempted_bytes: number;
|
|
34
|
-
source: string;
|
|
35
|
-
}) => void;
|
|
36
20
|
sendSaveContactEvent: () => void;
|
|
37
21
|
sendStartForFreeEvent: () => void;
|
|
38
22
|
sendFooterLinkClickEvent: (linkType: "watermark_logo" | "create_your_website") => void;
|
|
@@ -565,21 +565,16 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
565
565
|
hideChangeTemplateConfirmModal(): void;
|
|
566
566
|
onBackgroundChanged(): void;
|
|
567
567
|
onChangeTemplateConfirmModalCancel(): void;
|
|
568
|
-
onChangeTemplateConfirmModalConfirm():
|
|
568
|
+
onChangeTemplateConfirmModalConfirm(): void;
|
|
569
569
|
onContentChanged(): void;
|
|
570
570
|
onStyleChanged(): void;
|
|
571
|
-
onTemplateSelected(payload: import("@brand-page-maker/stores").OnTemplateSelectedPayload):
|
|
571
|
+
onTemplateSelected(payload: import("@brand-page-maker/stores").OnTemplateSelectedPayload): void;
|
|
572
572
|
setSelectedTabName(payload: any): void;
|
|
573
573
|
showNextNotificationMessage(): Promise<void>;
|
|
574
574
|
updateContent<TContent extends import("@brand-page").Content, P extends {
|
|
575
575
|
id: string;
|
|
576
576
|
content: TContent;
|
|
577
577
|
}>(payload: P): Promise<void>;
|
|
578
|
-
_captureTemplateSwitchIfEnabled(): void;
|
|
579
|
-
applyHistorySnapshot(snapshot: import("@brand-page").BrandPageModel, activePageId?: string | undefined, logoEditsStr?: string | undefined): Promise<void>;
|
|
580
|
-
_syncLogoSettingsFromSnapshot(snapshot: import("@brand-page").BrandPageModel, logoEditsStr?: string | undefined): Promise<void>;
|
|
581
|
-
_navigateToActivePage(activePageId?: string | undefined): void;
|
|
582
|
-
_fallbackSidebarIfSelectedContentMissing(snapshot: import("@brand-page").BrandPageModel): void;
|
|
583
578
|
export(): import("@brand-page").BrandPageModel;
|
|
584
579
|
setBrandPageType({ brandPageType }: {
|
|
585
580
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
@@ -920,22 +915,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
920
915
|
}>;
|
|
921
916
|
eventTracker: {
|
|
922
917
|
sendShippingToggleEvent: (isEnabled: boolean) => void;
|
|
923
|
-
sendUndoEvent: (props: {
|
|
924
|
-
entries_count: number;
|
|
925
|
-
actor: string | undefined;
|
|
926
|
-
}) => void;
|
|
927
|
-
sendRedoEvent: (props: {
|
|
928
|
-
entries_count: number;
|
|
929
|
-
actor: string | undefined;
|
|
930
|
-
}) => void;
|
|
931
|
-
sendHistoryCappedEvent: (props: {
|
|
932
|
-
entries_count: number;
|
|
933
|
-
size_bytes: number;
|
|
934
|
-
}) => void;
|
|
935
|
-
sendHistoryOversizedEvent: (props: {
|
|
936
|
-
attempted_bytes: number;
|
|
937
|
-
source: string;
|
|
938
|
-
}) => void;
|
|
939
918
|
sendSaveContactEvent: () => void;
|
|
940
919
|
sendStartForFreeEvent: () => void;
|
|
941
920
|
sendFooterLinkClickEvent: (linkType: "watermark_logo" | "create_your_website") => void;
|
|
@@ -565,22 +565,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
565
565
|
isDesignCom: import("vue").ComputedRef<boolean>;
|
|
566
566
|
eventTracker: {
|
|
567
567
|
sendShippingToggleEvent: (isEnabled: boolean) => void;
|
|
568
|
-
sendUndoEvent: (props: {
|
|
569
|
-
entries_count: number;
|
|
570
|
-
actor: string | undefined;
|
|
571
|
-
}) => void;
|
|
572
|
-
sendRedoEvent: (props: {
|
|
573
|
-
entries_count: number;
|
|
574
|
-
actor: string | undefined;
|
|
575
|
-
}) => void;
|
|
576
|
-
sendHistoryCappedEvent: (props: {
|
|
577
|
-
entries_count: number;
|
|
578
|
-
size_bytes: number;
|
|
579
|
-
}) => void;
|
|
580
|
-
sendHistoryOversizedEvent: (props: {
|
|
581
|
-
attempted_bytes: number;
|
|
582
|
-
source: string;
|
|
583
|
-
}) => void;
|
|
584
568
|
sendSaveContactEvent: () => void;
|
|
585
569
|
sendStartForFreeEvent: () => void;
|
|
586
570
|
sendFooterLinkClickEvent: (linkType: "watermark_logo" | "create_your_website") => void;
|
|
@@ -87,7 +87,17 @@ const findAssetKey = (assets, data) => {
|
|
|
87
87
|
return assets.find((a) => a.data === data)?.key;
|
|
88
88
|
};
|
|
89
89
|
const minifyContent = (content, editor, assets) => {
|
|
90
|
-
const base = {
|
|
90
|
+
const base = {
|
|
91
|
+
id: content.id,
|
|
92
|
+
type: content.type,
|
|
93
|
+
// Padding Control (BP-5687) — shared across every block, persist when set.
|
|
94
|
+
...(typeof content.topPadding === 'number' && {
|
|
95
|
+
topPadding: content.topPadding,
|
|
96
|
+
}),
|
|
97
|
+
...(typeof content.bottomPadding === 'number' && {
|
|
98
|
+
bottomPadding: content.bottomPadding,
|
|
99
|
+
}),
|
|
100
|
+
};
|
|
91
101
|
const c = content;
|
|
92
102
|
// Helper: include imageUrl and its asset key if available
|
|
93
103
|
const includeImageWithKey = (url, urlField = 'imageUrl', keyField = 'imageAssetKey') => {
|
package/package.json
CHANGED
|
@@ -7,9 +7,10 @@
|
|
|
7
7
|
<div
|
|
8
8
|
:class="{
|
|
9
9
|
'about-container': context.isBrandSite,
|
|
10
|
-
'about-container--padding
|
|
10
|
+
'about-container--padding': !isFullImage,
|
|
11
11
|
'mobile-about-container--padding': isFullImage,
|
|
12
12
|
}"
|
|
13
|
+
:style="contentPaddingStyle"
|
|
13
14
|
>
|
|
14
15
|
<Media
|
|
15
16
|
v-if="
|
|
@@ -103,7 +104,10 @@
|
|
|
103
104
|
import { computed } from 'vue';
|
|
104
105
|
import type { AboutSectionViewModel } from '@brand-page/view-models';
|
|
105
106
|
import type { BrandPageContext } from '@brand-page/models';
|
|
106
|
-
import {
|
|
107
|
+
import {
|
|
108
|
+
getRenderText,
|
|
109
|
+
contentPaddingStyle as toContentPaddingStyle,
|
|
110
|
+
} from '@brand-page/utils';
|
|
107
111
|
import { hasRTEContent } from '@brand-page-maker/utils';
|
|
108
112
|
import Media from '../media/Media.vue';
|
|
109
113
|
import TextWrapper from '../text-wrapper/TextWrapper.vue';
|
|
@@ -123,6 +127,10 @@ const props = withDefaults(
|
|
|
123
127
|
},
|
|
124
128
|
);
|
|
125
129
|
|
|
130
|
+
const contentPaddingStyle = computed(() =>
|
|
131
|
+
toContentPaddingStyle(props.viewModel),
|
|
132
|
+
);
|
|
133
|
+
|
|
126
134
|
const isFullImage = computed(
|
|
127
135
|
() =>
|
|
128
136
|
props.viewModel.displayStyle === 'right-aligned-full-image' ||
|
|
@@ -201,7 +209,6 @@ const renderText = computed((): string => {
|
|
|
201
209
|
.device-wrapper--mobile .mobile-about-container--padding {
|
|
202
210
|
padding-left: var(--page-padding);
|
|
203
211
|
padding-right: var(--page-padding);
|
|
204
|
-
@apply tw-py-10;
|
|
205
212
|
}
|
|
206
213
|
.device-wrapper--mobile .text-grid-column {
|
|
207
214
|
@apply container-grid-columns;
|
|
@@ -275,7 +282,6 @@ const renderText = computed((): string => {
|
|
|
275
282
|
.mobile-about-container--padding {
|
|
276
283
|
padding-left: var(--page-padding);
|
|
277
284
|
padding-right: var(--page-padding);
|
|
278
|
-
@apply tw-py-10;
|
|
279
285
|
}
|
|
280
286
|
.about-container :deep(.container-image) {
|
|
281
287
|
aspect-ratio: 1/1;
|
|
@@ -7,9 +7,8 @@
|
|
|
7
7
|
viewModel.isBigImageType,
|
|
8
8
|
'c_banner--with-image-overlay tw-flex tw-flex-col': isDividedContent,
|
|
9
9
|
'tw-px-6': !isDividedContent,
|
|
10
|
-
'tw-py-8': !isDividedContent && !isStackedFullWidth,
|
|
11
10
|
}"
|
|
12
|
-
:style="viewModel.backgroundStyle"
|
|
11
|
+
:style="[viewModel.backgroundStyle, contentPaddingStyle]"
|
|
13
12
|
style="container-type: inline-size"
|
|
14
13
|
>
|
|
15
14
|
<Media
|
|
@@ -201,7 +200,7 @@
|
|
|
201
200
|
<div
|
|
202
201
|
class="!tw-text-center tw-flex tw-flex-col tw-gap-5"
|
|
203
202
|
:class="{
|
|
204
|
-
'tw-px-6
|
|
203
|
+
'tw-px-6': isDividedContent,
|
|
205
204
|
}"
|
|
206
205
|
>
|
|
207
206
|
<TextWrapper
|
|
@@ -332,7 +331,11 @@ import type {
|
|
|
332
331
|
} from '@brand-page/view-models';
|
|
333
332
|
import type { BrandPageContext } from '@brand-page/models';
|
|
334
333
|
import { hasValidButton } from '../../../utils/validator.util';
|
|
335
|
-
import {
|
|
334
|
+
import {
|
|
335
|
+
getRenderText,
|
|
336
|
+
escapeContentText,
|
|
337
|
+
contentPaddingStyle as toContentPaddingStyle,
|
|
338
|
+
} from '@brand-page/utils';
|
|
336
339
|
import { hasRTEContent } from '@brand-page-maker/utils';
|
|
337
340
|
import {
|
|
338
341
|
ALIGN_CENTERED,
|
|
@@ -490,6 +493,10 @@ const layout = computed<BannerLayoutConfig>(
|
|
|
490
493
|
() => BANNER_LAYOUTS[props.viewModel.displayStyle] ?? DEFAULT_LAYOUT,
|
|
491
494
|
);
|
|
492
495
|
|
|
496
|
+
const contentPaddingStyle = computed(() =>
|
|
497
|
+
toContentPaddingStyle(props.viewModel),
|
|
498
|
+
);
|
|
499
|
+
|
|
493
500
|
const displayAlignClass = computed(() => layout.value.alignClass);
|
|
494
501
|
const isHorizontalAligned = computed(() => !!layout.value.hasSideImage);
|
|
495
502
|
const isDividedContent = computed(() => layout.value.layout === 'divided');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<section data-component="booking-section">
|
|
3
3
|
<div
|
|
4
|
-
class="tw-relative tw-px-6
|
|
5
|
-
:style="viewModel.backgroundStyle"
|
|
4
|
+
class="tw-relative tw-px-6"
|
|
5
|
+
:style="[viewModel.backgroundStyle, contentPaddingStyle]"
|
|
6
6
|
style="container-type: inline-size"
|
|
7
7
|
>
|
|
8
8
|
<div
|
|
@@ -45,7 +45,11 @@ import type {
|
|
|
45
45
|
ButtonViewModel,
|
|
46
46
|
} from '@brand-page/view-models';
|
|
47
47
|
import type { BrandPageContext } from '@brand-page/models';
|
|
48
|
-
import {
|
|
48
|
+
import {
|
|
49
|
+
getRenderText,
|
|
50
|
+
escapeContentText,
|
|
51
|
+
contentPaddingStyle as toContentPaddingStyle,
|
|
52
|
+
} from '@brand-page/utils';
|
|
49
53
|
import { hasRTEContent } from '@brand-page-maker/utils';
|
|
50
54
|
import { hasValidButton as shouldShowButtonUtil } from '../../../utils/validator.util';
|
|
51
55
|
import Button from '../button/Button.vue';
|
|
@@ -71,6 +75,10 @@ const props = defineProps({
|
|
|
71
75
|
},
|
|
72
76
|
});
|
|
73
77
|
|
|
78
|
+
const contentPaddingStyle = computed(() =>
|
|
79
|
+
toContentPaddingStyle(props.viewModel),
|
|
80
|
+
);
|
|
81
|
+
|
|
74
82
|
const renderText = computed((): string => {
|
|
75
83
|
if (!props.viewModel.description) {
|
|
76
84
|
return '';
|
|
@@ -25,7 +25,10 @@ import {
|
|
|
25
25
|
RECAPTCHA_ACTION_CONTACT_FORM,
|
|
26
26
|
TEXT_ONLY,
|
|
27
27
|
} from '../../constants';
|
|
28
|
-
import {
|
|
28
|
+
import {
|
|
29
|
+
getRenderText,
|
|
30
|
+
contentPaddingStyle as toContentPaddingStyle,
|
|
31
|
+
} from '@brand-page/utils';
|
|
29
32
|
import { hasRTEContent } from '@brand-page-maker/utils';
|
|
30
33
|
import { useReCaptcha } from '../../composables/recaptcha.composable';
|
|
31
34
|
|
|
@@ -97,6 +100,10 @@ export default defineComponent({
|
|
|
97
100
|
return buttonTextStyle;
|
|
98
101
|
},
|
|
99
102
|
|
|
103
|
+
contentPaddingStyle(): { paddingTop: string; paddingBottom: string } {
|
|
104
|
+
return toContentPaddingStyle(this.viewModel);
|
|
105
|
+
},
|
|
106
|
+
|
|
100
107
|
hasCard(): boolean {
|
|
101
108
|
return (
|
|
102
109
|
this.viewModel.layoutStyle === ALIGN_CARD_CENTER ||
|
|
@@ -109,11 +116,10 @@ export default defineComponent({
|
|
|
109
116
|
},
|
|
110
117
|
|
|
111
118
|
hasBgColor(): boolean {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
);
|
|
119
|
+
// Every brandSite layout applies the background colour on the section
|
|
120
|
+
// root (banner-style) so the padding control reveals it; for the image
|
|
121
|
+
// layouts it only shows in the padding bands around the image block.
|
|
122
|
+
return Boolean(this.viewModel.layoutStyle);
|
|
117
123
|
},
|
|
118
124
|
|
|
119
125
|
isCenteredLayout(): boolean {
|