@designcrowd/library.brand-page 5.18.9-ast-padding-2 → 5.18.9-metadata-timeout-fix
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-BmLOUBDj.js → CreatedOnBrandCrowd-de-de-DsoA9hc-.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-DGCwedd5.js → CreatedOnBrandCrowd-en-us-BP6NEQ66.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-qfWIO62h.js → CreatedOnBrandCrowd-es-es-D424uM1Z.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-Bh6tQfv-.js → CreatedOnBrandCrowd-fr-ca-CJvuLTkB.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-Bh6tQfv-.js → CreatedOnBrandCrowd-fr-fr-CJvuLTkB.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-DBF_gR3z.js → CreatedOnBrandCrowd-pt-br-Cc9L314u.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-DBF_gR3z.js → CreatedOnBrandCrowd-pt-pt-Cc9L314u.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-B1ZibTqN.js → CreatedOnDcom-de-de-CX-295FH.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-4qS61Om_.js → CreatedOnDcom-en-us-UFlORUgZ.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-yX1FaMrI.js → CreatedOnDcom-es-es-D1tRpcq9.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-h5RbgiUo.js → CreatedOnDcom-fr-ca-Dz_ry9uY.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-4cJbiAWr.js → CreatedOnDcom-fr-fr-8Ydu6b1T.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-C0FUKVjn.js → CreatedOnDcom-pt-br-COwvw5k4.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-CFstpuvQ.js → CreatedOnDcom-pt-pt-CB72-eaa.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 +97 -0
- package/lib/src/brand-page/components/testimonial-section/TestimonialSection.mixin.js +112 -0
- 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/font.constants.d.ts +4 -4
- package/lib/src/brand-page/constants/font.constants.js +4 -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-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 -39
- 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/clients/asset-library-clients.js +19 -12
- 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.mjs +1 -1
- package/lib/src/{lib-B3NH7cmE.js → lib-tHPi9EKk.js} +21027 -21168
- 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 +132 -0
- package/src/brand-page/components/testimonial-section/TestimonialSection.vue +11 -120
- 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/font.constants.ts +4 -4
- 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/__snapshots__/migration2.util.test.ts.snap +6 -6
- package/src/brand-page/utils/__snapshots__/model.util.test.ts.snap +12 -12
- package/src/brand-page/utils/index.ts +0 -1
- package/src/brand-page/utils/migration.util.test.ts +0 -290
- 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 -43
- 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/clients/asset-library-clients.ts +26 -13
- 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 -60
- 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 -77
- package/src/brand-page-maker/convertors/contact-layout-style.convertor.test.ts +0 -50
|
@@ -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-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;
|
package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts
CHANGED
|
@@ -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;
|
|
@@ -42,28 +42,6 @@ const SETTINGS_STYLE_FIElD_GROUPS = () => {
|
|
|
42
42
|
},
|
|
43
43
|
];
|
|
44
44
|
};
|
|
45
|
-
/**
|
|
46
|
-
* Shared Top/Bottom padding sliders (BP-5687). Reuses the same `slider` control
|
|
47
|
-
* as the Divider block (track + editable number box), range 0–100, continuous.
|
|
48
|
-
* Spread into a block's `fields` to expose the Padding Control on that block.
|
|
49
|
-
* Pass the Style field-group id for blocks that use grouped panels.
|
|
50
|
-
*/
|
|
51
|
-
const PADDING_CONTROL_FIELDS = (groupId) => ({
|
|
52
|
-
topPadding: {
|
|
53
|
-
type: 'slider',
|
|
54
|
-
title: contentSettingsTr(`topPaddingTitle`),
|
|
55
|
-
minLength: 0,
|
|
56
|
-
maxLength: 100,
|
|
57
|
-
groupId,
|
|
58
|
-
},
|
|
59
|
-
bottomPadding: {
|
|
60
|
-
type: 'slider',
|
|
61
|
-
title: contentSettingsTr(`bottomPaddingTitle`),
|
|
62
|
-
minLength: 0,
|
|
63
|
-
maxLength: 100,
|
|
64
|
-
groupId,
|
|
65
|
-
},
|
|
66
|
-
});
|
|
67
45
|
const DEFAULT_TITLE_STYLE_SETTINGS_FILED = () => ({
|
|
68
46
|
type: 'text-style',
|
|
69
47
|
defaultValue: {},
|
|
@@ -821,7 +799,6 @@ export const IMAGE_GALLERY_CONTENT_SETTINGS_CONFIG = () => ({
|
|
|
821
799
|
defaultValue: false,
|
|
822
800
|
visibilityAssessor: imageGalleryFieldVisibilityAssessor,
|
|
823
801
|
},
|
|
824
|
-
...PADDING_CONTROL_FIELDS(),
|
|
825
802
|
},
|
|
826
803
|
isEnabled: true,
|
|
827
804
|
isLocked: (features) => !features.canAddImageContents,
|
|
@@ -858,7 +835,6 @@ export const VIDEO_CONTENT_SETTINGS_CONFIG = () => ({
|
|
|
858
835
|
label: contentSettingsTr(`muteLabel`),
|
|
859
836
|
valueConvertor: videoContentStateConvertor,
|
|
860
837
|
},
|
|
861
|
-
...PADDING_CONTROL_FIELDS(),
|
|
862
838
|
},
|
|
863
839
|
isEnabled: true,
|
|
864
840
|
isLocked: (features) => !features.canAddVideoContents,
|
|
@@ -992,7 +968,6 @@ export const TEXT_CONTENT_SETTINGS_CONFIG = () => ({
|
|
|
992
968
|
variant: 'icon',
|
|
993
969
|
visibilityAssessor: brandSiteTypeVisibilityAssessor,
|
|
994
970
|
},
|
|
995
|
-
...PADDING_CONTROL_FIELDS(SETTINGS_STYLE_FIELD_GROUP_IDS.style),
|
|
996
971
|
backgroundColor: {
|
|
997
972
|
type: 'color',
|
|
998
973
|
defaultValue: {},
|
|
@@ -1409,7 +1384,6 @@ export const MAP_CONTENT_SETTINGS_CONFIG = () => ({
|
|
|
1409
1384
|
type: 'address',
|
|
1410
1385
|
title: contentSettingsTr(`addressTitle`),
|
|
1411
1386
|
},
|
|
1412
|
-
...PADDING_CONTROL_FIELDS(),
|
|
1413
1387
|
},
|
|
1414
1388
|
isEnabled: true,
|
|
1415
1389
|
isLocked: (features) => !features.canAddMapContents,
|
|
@@ -1458,7 +1432,6 @@ export const MAILING_LIST_CONTENT_SETTINGS_CONFIG = () => ({
|
|
|
1458
1432
|
},
|
|
1459
1433
|
titleStyle: DEFAULT_TITLE_STYLE_SETTINGS_FILED_WITH_TITLE(),
|
|
1460
1434
|
buttonTextStyle: DEFAULT_BUTTON_TEXT_STYLE_FIELD(),
|
|
1461
|
-
...PADDING_CONTROL_FIELDS(SETTINGS_STYLE_FIELD_GROUP_IDS.style),
|
|
1462
1435
|
},
|
|
1463
1436
|
isEnabled: true,
|
|
1464
1437
|
isLocked: false,
|
|
@@ -1629,7 +1602,6 @@ export const REQUEST_PAYMENT_CONTENT_SETTINGS_CONFIG = () => ({
|
|
|
1629
1602
|
defaultValue: {},
|
|
1630
1603
|
label: contentSettingsTr(`buttonTextStyleLabel`),
|
|
1631
1604
|
},
|
|
1632
|
-
...PADDING_CONTROL_FIELDS(REQUEST_PAYMENT_GROUPS.style),
|
|
1633
1605
|
},
|
|
1634
1606
|
isEnabled: (features) => features.canAddRequestPaymentContents,
|
|
1635
1607
|
isLocked: false,
|
|
@@ -1694,7 +1666,6 @@ export const SUPPORT_ME_CONTENT_SETTINGS_CONFIG = () => ({
|
|
|
1694
1666
|
label: contentSettingsTr(`itemStyleLabel`),
|
|
1695
1667
|
},
|
|
1696
1668
|
buttonTextStyle: DEFAULT_BUTTON_TEXT_STYLE_FIELD(),
|
|
1697
|
-
...PADDING_CONTROL_FIELDS(SETTINGS_STYLE_FIELD_GROUP_IDS.style),
|
|
1698
1669
|
},
|
|
1699
1670
|
isEnabled: (features) => features.canAddRequestPaymentContents,
|
|
1700
1671
|
isLocked: false,
|
|
@@ -1820,7 +1791,6 @@ export const CONTACT_FORM_SETTINGS_CONFIG = () => ({
|
|
|
1820
1791
|
variant: 'icon',
|
|
1821
1792
|
visibilityAssessor: brandSiteTypeVisibilityAssessor,
|
|
1822
1793
|
},
|
|
1823
|
-
...PADDING_CONTROL_FIELDS(CONTACT_FORM_GROUPS.style),
|
|
1824
1794
|
titleStyle: DEFAULT_TITLE_STYLE_SETTINGS_FILED_WITH_TITLE(),
|
|
1825
1795
|
descriptionStyle: DEFAULT_DESCRIPTION_STYLE_FILED(),
|
|
1826
1796
|
buttonTextStyle: DEFAULT_BUTTON_TEXT_STYLE_FIELD(),
|
|
@@ -1878,7 +1848,6 @@ export const BANNER_SECTION_SETTINGS_CONFIG = () => ({
|
|
|
1878
1848
|
groupId: SETTINGS_STYLE_FIELD_GROUP_IDS.style,
|
|
1879
1849
|
variant: 'icon',
|
|
1880
1850
|
},
|
|
1881
|
-
...PADDING_CONTROL_FIELDS(SETTINGS_STYLE_FIELD_GROUP_IDS.style),
|
|
1882
1851
|
overlayColor: {
|
|
1883
1852
|
type: 'color',
|
|
1884
1853
|
title: contentSettingsTr(`overlayColorTitle`),
|
|
@@ -2094,7 +2063,6 @@ export const ABOUT_SECTION_SETTINGS_CONFIG = () => ({
|
|
|
2094
2063
|
groupId: SETTINGS_STYLE_FIELD_GROUP_IDS.style,
|
|
2095
2064
|
variant: 'icon',
|
|
2096
2065
|
},
|
|
2097
|
-
...PADDING_CONTROL_FIELDS(SETTINGS_STYLE_FIELD_GROUP_IDS.style),
|
|
2098
2066
|
titleStyle: DEFAULT_TITLE_STYLE_SETTINGS_FILED_WITH_TITLE(),
|
|
2099
2067
|
paragraphStyle: {
|
|
2100
2068
|
type: 'text-style',
|
|
@@ -2177,7 +2145,6 @@ export const IMAGES_SECTION_SETTINGS_CONFIG = () => ({
|
|
|
2177
2145
|
],
|
|
2178
2146
|
fields: {
|
|
2179
2147
|
displayStyle: TEXT_MEDIA_DISPLAY_STYLE_FIELD(MEDIA_TYPES.image),
|
|
2180
|
-
...PADDING_CONTROL_FIELDS(SETTINGS_STYLE_FIELD_GROUP_IDS.style),
|
|
2181
2148
|
aspectRatio: {
|
|
2182
2149
|
type: 'radio',
|
|
2183
2150
|
role: 'multi',
|
|
@@ -2260,7 +2227,6 @@ export const TESTIMONIALS_SECTION_SETTINGS_CONFIG = () => ({
|
|
|
2260
2227
|
groupId: SETTINGS_STYLE_FIELD_GROUP_IDS.style,
|
|
2261
2228
|
variant: 'icon',
|
|
2262
2229
|
},
|
|
2263
|
-
...PADDING_CONTROL_FIELDS(SETTINGS_STYLE_FIELD_GROUP_IDS.style),
|
|
2264
2230
|
title: {
|
|
2265
2231
|
type: 'text',
|
|
2266
2232
|
placeholder: contentSettingsTr(`titlePlaceholder`),
|
|
@@ -2368,7 +2334,6 @@ export const SOCIAL_LINKS_SETTINGS_CONFIG = () => ({
|
|
|
2368
2334
|
optionsConvertor: socialLinksIconDisplayStyleConvertor,
|
|
2369
2335
|
variant: 'icon',
|
|
2370
2336
|
},
|
|
2371
|
-
...PADDING_CONTROL_FIELDS(SOCIAL_LINKS_GROUPS.style),
|
|
2372
2337
|
titleStyle: {
|
|
2373
2338
|
type: 'text-style',
|
|
2374
2339
|
groupId: SOCIAL_LINKS_GROUPS.style,
|
|
@@ -2477,7 +2442,6 @@ export const SHAPES_SECTION_SETTINGS_CONFIG = () => ({
|
|
|
2477
2442
|
],
|
|
2478
2443
|
fields: {
|
|
2479
2444
|
displayStyle: TEXT_MEDIA_DISPLAY_STYLE_FIELD(MEDIA_TYPES.shape),
|
|
2480
|
-
...PADDING_CONTROL_FIELDS(SETTINGS_STYLE_FIELD_GROUP_IDS.style),
|
|
2481
2445
|
size: IMAGE_SIZE_FIELD(),
|
|
2482
2446
|
title: TEXT_MEDIA_TITLE_FIELD(),
|
|
2483
2447
|
description: TEXT_MEDIA_DESCRIPTION_FIELD(),
|
|
@@ -2513,7 +2477,6 @@ export const SHAPES_SECTION_SETTINGS_CONFIG = () => ({
|
|
|
2513
2477
|
? MAX_BS_MEDIA_AND_IMAGE_ITEMS
|
|
2514
2478
|
: MAX_BP_MEDIA_AND_IMAGE_ITEMS,
|
|
2515
2479
|
},
|
|
2516
|
-
...PADDING_CONTROL_FIELDS(SETTINGS_STYLE_FIELD_GROUP_IDS.style),
|
|
2517
2480
|
},
|
|
2518
2481
|
isEnabled: true,
|
|
2519
2482
|
isLocked: false,
|
|
@@ -2567,7 +2530,6 @@ export const SHOP_SECTION_SETTINGS_CONFIG = () => ({
|
|
|
2567
2530
|
optionsConvertor: shopAspectRatioConvertor,
|
|
2568
2531
|
visibilityAssessor: shopImageOptionVisibilityAssessor,
|
|
2569
2532
|
},
|
|
2570
|
-
...PADDING_CONTROL_FIELDS(REQUEST_PAYMENT_GROUPS.style),
|
|
2571
2533
|
title: {
|
|
2572
2534
|
type: 'title',
|
|
2573
2535
|
groupId: REQUEST_PAYMENT_GROUPS.settings,
|
|
@@ -2726,7 +2688,6 @@ export const BOOKING_SECTION_SETTINGS_CONFIG = () => ({
|
|
|
2726
2688
|
groupId: SETTINGS_STYLE_FIELD_GROUP_IDS.settings,
|
|
2727
2689
|
visibilityAssessor: (c, b) => personalisationOverrideVisibility(c, b, 'buttonText'),
|
|
2728
2690
|
},
|
|
2729
|
-
...PADDING_CONTROL_FIELDS(SETTINGS_STYLE_FIELD_GROUP_IDS.style),
|
|
2730
2691
|
backgroundStyle: {
|
|
2731
2692
|
type: 'color',
|
|
2732
2693
|
groupId: SETTINGS_STYLE_FIELD_GROUP_IDS.style,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ALIGN_CENTERED, ALIGN_LEFT_ALIGNED, ALIGN_LEFT_FULL_IMAGE, ALIGN_RIGHT_ALIGNED, ALIGN_RIGHT_FULL_IMAGE, TEXT_ONLY,
|
|
1
|
+
import { ALIGN_CENTERED, ALIGN_LEFT_ALIGNED, ALIGN_LEFT_FULL_IMAGE, ALIGN_RIGHT_ALIGNED, ALIGN_RIGHT_FULL_IMAGE, TEXT_ONLY, } from '@brand-page/constants';
|
|
2
2
|
export const aboutDisplayStyleConvertor = {
|
|
3
3
|
convertBackToMultipleValues: true,
|
|
4
4
|
convert(value) {
|
|
@@ -58,16 +58,10 @@ export const aboutDisplayStyleConvertor = {
|
|
|
58
58
|
},
|
|
59
59
|
convertBack(config) {
|
|
60
60
|
const selectedOption = config.options.find((v) => v.isSelected);
|
|
61
|
-
// Switching display style adopts that style's canonical look — like the
|
|
62
|
-
// textAlign reset below — including its default block padding (a flat 32
|
|
63
|
-
// for every About style).
|
|
64
|
-
const padding = ABOUT_DEFAULT_PADDING;
|
|
65
61
|
if (!selectedOption || selectedOption.value === ALIGN_CENTERED) {
|
|
66
62
|
const textAlign = 'center';
|
|
67
63
|
return {
|
|
68
64
|
displayStyle: selectedOption?.value,
|
|
69
|
-
topPadding: padding,
|
|
70
|
-
bottomPadding: padding,
|
|
71
65
|
titleStyle: {
|
|
72
66
|
textAlign,
|
|
73
67
|
},
|
|
@@ -79,8 +73,6 @@ export const aboutDisplayStyleConvertor = {
|
|
|
79
73
|
const textAlign = 'left';
|
|
80
74
|
return {
|
|
81
75
|
displayStyle: selectedOption?.value,
|
|
82
|
-
topPadding: padding,
|
|
83
|
-
bottomPadding: padding,
|
|
84
76
|
titleStyle: {
|
|
85
77
|
textAlign,
|
|
86
78
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ALIGN_CENTERED, ALIGN_LEFT_ALIGNED, ALIGN_RIGHT_ALIGNED, BIG_IMAGE, ALIGN_LEFT_FULL_IMAGE, ALIGN_RIGHT_FULL_IMAGE, ALIGN_LEFT_BIG_IMAGE, ALIGN_CARD_CENTER_IMAGE, ALIGN_CARD_LEFT_IMAGE, ALIGN_TOP_CARD_IMAGE, ALIGN_BOTTOM_CARD_IMAGE, ALIGN_MIDDLE_CARD_IMAGE, ALIGN_TOP_FULL_IMAGE, ALIGN_BOTTOM_FULL_IMAGE, ALIGN_MIDDLE_FULL_IMAGE,
|
|
1
|
+
import { ALIGN_CENTERED, ALIGN_LEFT_ALIGNED, ALIGN_RIGHT_ALIGNED, BIG_IMAGE, ALIGN_LEFT_FULL_IMAGE, ALIGN_RIGHT_FULL_IMAGE, ALIGN_LEFT_BIG_IMAGE, ALIGN_CARD_CENTER_IMAGE, ALIGN_CARD_LEFT_IMAGE, ALIGN_TOP_CARD_IMAGE, ALIGN_BOTTOM_CARD_IMAGE, ALIGN_MIDDLE_CARD_IMAGE, ALIGN_TOP_FULL_IMAGE, ALIGN_BOTTOM_FULL_IMAGE, ALIGN_MIDDLE_FULL_IMAGE, } from '@brand-page/constants';
|
|
2
2
|
export const bannerAlignDisplayStyleConvertor = {
|
|
3
3
|
convertBackToMultipleValues: true,
|
|
4
4
|
convert(value) {
|
|
@@ -143,14 +143,8 @@ export const bannerAlignDisplayStyleConvertor = {
|
|
|
143
143
|
selectedOption.value === ALIGN_MIDDLE_FULL_IMAGE) {
|
|
144
144
|
textAlign = 'center';
|
|
145
145
|
}
|
|
146
|
-
// Switching display style adopts that style's canonical look — like the
|
|
147
|
-
// textAlign resets above — including its default block padding. Full-bleed
|
|
148
|
-
// image styles default to 0 (image flush to the edges); the rest to 32.
|
|
149
|
-
const padding = bannerDisplayStyleDefaultPadding(selectedOption?.value);
|
|
150
146
|
return {
|
|
151
147
|
displayStyle: selectedOption?.value,
|
|
152
|
-
topPadding: padding,
|
|
153
|
-
bottomPadding: padding,
|
|
154
148
|
titleStyle: {
|
|
155
149
|
textAlign,
|
|
156
150
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ALIGN_CENTERED, ALIGN_LEFT_FULL_IMAGE, ALIGN_RIGHT_FULL_IMAGE, ALIGN_CARD_CENTER_IMAGE, TEXT_ONLY, ALIGN_CARD_CENTER,
|
|
1
|
+
import { ALIGN_CENTERED, ALIGN_LEFT_FULL_IMAGE, ALIGN_RIGHT_FULL_IMAGE, ALIGN_CARD_CENTER_IMAGE, TEXT_ONLY, ALIGN_CARD_CENTER, } from '@brand-page/constants';
|
|
2
2
|
export const contactLayoutStyleConvertor = {
|
|
3
3
|
convertBackToMultipleValues: true,
|
|
4
4
|
convert(value) {
|
|
@@ -64,13 +64,8 @@ export const contactLayoutStyleConvertor = {
|
|
|
64
64
|
selectedOption?.value === ALIGN_RIGHT_FULL_IMAGE) {
|
|
65
65
|
textAlign = 'left';
|
|
66
66
|
}
|
|
67
|
-
// Switching layout adopts that layout's canonical look — same as the
|
|
68
|
-
// textAlign resets below — including its default block padding.
|
|
69
|
-
const padding = CONTACT_FORM_LAYOUT_DEFAULT_PADDING[selectedOption?.value ?? ''] ?? 0;
|
|
70
67
|
return {
|
|
71
68
|
layoutStyle: selectedOption?.value,
|
|
72
|
-
topPadding: padding,
|
|
73
|
-
bottomPadding: padding,
|
|
74
69
|
titleStyle: {
|
|
75
70
|
textAlign,
|
|
76
71
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BrandPageModel, PageStyles, FORM_FIELD_IDS, PAYMENT_OPTION_DISPLAY_TYPES, PAYMENT_OPTION_IMAGE_TYPES, SOCIAL_LINKS_ICON_DISPLAY_STYLES, PageHeaderMobile, PageHeaderDesktop, PageFooterMobile, PageFooterDesktop, MEDIA_TYPES, BUTTON_LINK_TYPE, DISPLAY_STYLE_PREVIEW, SUPPORT_ME_CUSTOM_PRODUCT_NAME, DEFAULT_LOGO_HEIGHT, DEFAULT_LOGO_WIDTH, FONT_SIZE_BODY, LINE_HEIGHT_BODY, TEXT_STYLE_TYPES, TEXT_COLUMNS, DEFAULT_LOGO_BACKGROUND_COLOR_RGB, DEFAULT_LOGO_TEXT_COLOR_RGB, EMPTY_LOGO_IMAGE_MODEL, BRAND_PAGE_TYPES, SENSITIVE_CONTENT_TYPES,
|
|
1
|
+
import { BrandPageModel, PageStyles, FORM_FIELD_IDS, PAYMENT_OPTION_DISPLAY_TYPES, PAYMENT_OPTION_IMAGE_TYPES, SOCIAL_LINKS_ICON_DISPLAY_STYLES, PageHeaderMobile, PageHeaderDesktop, PageFooterMobile, PageFooterDesktop, MEDIA_TYPES, BUTTON_LINK_TYPE, DISPLAY_STYLE_PREVIEW, SUPPORT_ME_CUSTOM_PRODUCT_NAME, DEFAULT_LOGO_HEIGHT, DEFAULT_LOGO_WIDTH, FONT_SIZE_BODY, LINE_HEIGHT_BODY, TEXT_STYLE_TYPES, TEXT_COLUMNS, DEFAULT_LOGO_BACKGROUND_COLOR_RGB, DEFAULT_LOGO_TEXT_COLOR_RGB, EMPTY_LOGO_IMAGE_MODEL, BRAND_PAGE_TYPES, SENSITIVE_CONTENT_TYPES, } from '@brand-page';
|
|
2
2
|
import * as uuid from 'uuid';
|
|
3
3
|
import { getColorShades } from '@brand-page/utils';
|
|
4
4
|
import { contentSettingsTr } from '@src/composables/useTranslate';
|
|
@@ -101,8 +101,6 @@ export const createInitialImageGalleryContent = () => {
|
|
|
101
101
|
galleryStyles: {
|
|
102
102
|
galleryType: 'grid',
|
|
103
103
|
},
|
|
104
|
-
topPadding: 0,
|
|
105
|
-
bottomPadding: 0,
|
|
106
104
|
};
|
|
107
105
|
};
|
|
108
106
|
export const createInitialVideoContent = () => {
|
|
@@ -113,8 +111,6 @@ export const createInitialVideoContent = () => {
|
|
|
113
111
|
displayStyle: DISPLAY_STYLE_PREVIEW,
|
|
114
112
|
mute: false,
|
|
115
113
|
videoUrl: '',
|
|
116
|
-
topPadding: 0,
|
|
117
|
-
bottomPadding: 0,
|
|
118
114
|
};
|
|
119
115
|
};
|
|
120
116
|
export const createInitialProfileContent = (options) => {
|
|
@@ -164,9 +160,6 @@ export const createInitialTextContent = (options) => {
|
|
|
164
160
|
]
|
|
165
161
|
: undefined,
|
|
166
162
|
type: 'text',
|
|
167
|
-
// Brand Site text blocks sit in a 12px outer padding; Brand Page / Brand Contact use 0.
|
|
168
|
-
topPadding: options?.brandPageType === BRAND_PAGE_TYPES.brandSite ? 12 : 0,
|
|
169
|
-
bottomPadding: options?.brandPageType === BRAND_PAGE_TYPES.brandSite ? 12 : 0,
|
|
170
163
|
textSize: {
|
|
171
164
|
fontSize: FONT_SIZE_BODY,
|
|
172
165
|
lineHeight: LINE_HEIGHT_BODY,
|
|
@@ -208,16 +201,12 @@ export const createInitialMapContent = () => {
|
|
|
208
201
|
formattedAddress: '',
|
|
209
202
|
placeId: '',
|
|
210
203
|
},
|
|
211
|
-
topPadding: 0,
|
|
212
|
-
bottomPadding: 0,
|
|
213
204
|
};
|
|
214
205
|
};
|
|
215
206
|
export const createInitialMailingListContent = (options) => {
|
|
216
207
|
return {
|
|
217
208
|
id: uuid.v4(),
|
|
218
209
|
type: 'mailing-list',
|
|
219
|
-
topPadding: 0,
|
|
220
|
-
bottomPadding: 0,
|
|
221
210
|
title: contentSettingsTr(`mailingListTitle`),
|
|
222
211
|
buttonText: contentSettingsTr(`subscribePlaceholder`),
|
|
223
212
|
acceptedFields: 'emailOnly',
|
|
@@ -248,8 +237,6 @@ export const createInitialRequestPaymentContent = (options) => {
|
|
|
248
237
|
successMessage: '',
|
|
249
238
|
title: contentSettingsTr(`buyNowTitle`),
|
|
250
239
|
type: 'request-payment',
|
|
251
|
-
topPadding: 0,
|
|
252
|
-
bottomPadding: 0,
|
|
253
240
|
fillColor: {},
|
|
254
241
|
defaultBorderColor: {},
|
|
255
242
|
selectedBorderColor: {},
|
|
@@ -279,8 +266,6 @@ export const createInitialShopContent = (options) => {
|
|
|
279
266
|
return {
|
|
280
267
|
id: uuid.v4(),
|
|
281
268
|
description: '',
|
|
282
|
-
topPadding: 16,
|
|
283
|
-
bottomPadding: 16,
|
|
284
269
|
products: [],
|
|
285
270
|
displayStyle: PAYMENT_OPTION_DISPLAY_TYPES.thumbnail,
|
|
286
271
|
aspectRatio: PAYMENT_OPTION_IMAGE_TYPES.auto,
|
|
@@ -337,8 +322,6 @@ export const createInitialSupportMeContent = (options) => {
|
|
|
337
322
|
successMessage: contentSettingsTr(`successSupportPlaceholder`),
|
|
338
323
|
description: contentSettingsTr(`makeADonationDescription`),
|
|
339
324
|
type: 'support-me',
|
|
340
|
-
topPadding: 0,
|
|
341
|
-
bottomPadding: 0,
|
|
342
325
|
titleStyle: {
|
|
343
326
|
applyAutoScale: options?.brandPageType === BRAND_PAGE_TYPES.brandSite,
|
|
344
327
|
textStyleType: TEXT_STYLE_TYPES.headings,
|
|
@@ -371,19 +354,13 @@ export const createInitialContactFormContent = (options) => {
|
|
|
371
354
|
typeof options?.userState.emailAddress === 'undefined') {
|
|
372
355
|
console.error('userState.emailAddress should not be undefined');
|
|
373
356
|
}
|
|
374
|
-
// New blocks inherit the padding their initial layout previously had
|
|
375
|
-
// hard-coded — same source as the migration backfill for existing pages.
|
|
376
|
-
const layoutStyle = options?.brandPageType === 'brandSite' ? 'center-card-aligned' : '';
|
|
377
|
-
const padding = CONTACT_FORM_LAYOUT_DEFAULT_PADDING[layoutStyle] ?? 0;
|
|
378
357
|
return {
|
|
379
358
|
id: uuid.v4(),
|
|
380
359
|
title: contentSettingsTr(`contactUsTitle`),
|
|
381
360
|
description: '',
|
|
382
361
|
buttonText: contentSettingsTr(`sendPlaceholder`),
|
|
383
362
|
displayStyle: DISPLAY_STYLE_PREVIEW,
|
|
384
|
-
layoutStyle,
|
|
385
|
-
topPadding: padding,
|
|
386
|
-
bottomPadding: padding,
|
|
363
|
+
layoutStyle: options?.brandPageType === 'brandSite' ? 'center-card-aligned' : '',
|
|
387
364
|
imageUrl: '',
|
|
388
365
|
fields: [
|
|
389
366
|
{
|
|
@@ -473,8 +450,6 @@ export const createInitialContactFormContent = (options) => {
|
|
|
473
450
|
export const createInitialBannerSectionContent = (options) => {
|
|
474
451
|
return {
|
|
475
452
|
id: uuid.v4(),
|
|
476
|
-
topPadding: 32,
|
|
477
|
-
bottomPadding: 32,
|
|
478
453
|
imageUrl: '',
|
|
479
454
|
title: contentSettingsTr(`thisIsABannerTitle`),
|
|
480
455
|
description: '',
|
|
@@ -518,8 +493,6 @@ export const createInitialBookingSectionContent = (options) => {
|
|
|
518
493
|
buttonText: contentSettingsTr(`bookNowLabel`),
|
|
519
494
|
url: '',
|
|
520
495
|
type: 'booking-section',
|
|
521
|
-
topPadding: 32,
|
|
522
|
-
bottomPadding: 32,
|
|
523
496
|
descriptionStyle: {
|
|
524
497
|
applyAutoScale: options?.brandPageType === BRAND_PAGE_TYPES.brandSite,
|
|
525
498
|
textStyleType: TEXT_STYLE_TYPES.paragraphs,
|
|
@@ -546,8 +519,6 @@ export const createInitialImagesSectionContent = (options) => {
|
|
|
546
519
|
title: contentSettingsTr(`imagesTitle`),
|
|
547
520
|
description: '',
|
|
548
521
|
type: 'images-section',
|
|
549
|
-
topPadding: 32,
|
|
550
|
-
bottomPadding: 32,
|
|
551
522
|
displayStyle: 'centered',
|
|
552
523
|
aspectRatio: 'Default',
|
|
553
524
|
areImagesFullWidth: false,
|
|
@@ -600,8 +571,6 @@ export const createInitialTestimonialSectionContent = (options) => {
|
|
|
600
571
|
title: contentSettingsTr(`testimonialsTitle`),
|
|
601
572
|
type: 'testimonial-section',
|
|
602
573
|
displayStyle: 'centered',
|
|
603
|
-
topPadding: TESTIMONIAL_DEFAULT_PADDING,
|
|
604
|
-
bottomPadding: TESTIMONIAL_DEFAULT_PADDING,
|
|
605
574
|
items: [],
|
|
606
575
|
titleStyle: {
|
|
607
576
|
applyAutoScale: options?.brandPageType === BRAND_PAGE_TYPES.brandSite,
|
|
@@ -647,8 +616,6 @@ export const createInitialAboutSectionContent = (options) => {
|
|
|
647
616
|
textAlign: 'center',
|
|
648
617
|
},
|
|
649
618
|
backgroundStyle: {},
|
|
650
|
-
topPadding: 32,
|
|
651
|
-
bottomPadding: 32,
|
|
652
619
|
};
|
|
653
620
|
};
|
|
654
621
|
export const createInitialDividerSectionContent = () => {
|
|
@@ -701,8 +668,6 @@ export const createInitialSocialLinksContent = (options) => {
|
|
|
701
668
|
return {
|
|
702
669
|
id: uuid.v4(),
|
|
703
670
|
type: 'social-links',
|
|
704
|
-
topPadding: 32,
|
|
705
|
-
bottomPadding: 32,
|
|
706
671
|
title: contentSettingsTr(`followUsOnTitle`),
|
|
707
672
|
links: [
|
|
708
673
|
{
|
|
@@ -753,8 +718,6 @@ export const createInitialShapesSectionContent = (options) => {
|
|
|
753
718
|
title: contentSettingsTr(`shapesTitle`),
|
|
754
719
|
description: '',
|
|
755
720
|
type: 'shapes-section',
|
|
756
|
-
topPadding: 32,
|
|
757
|
-
bottomPadding: 32,
|
|
758
721
|
displayStyle: 'centered',
|
|
759
722
|
items: [
|
|
760
723
|
{
|
|
@@ -5054,8 +5054,6 @@ export declare const useAiCheckpointStore: import("pinia").StoreDefinition<"aiCh
|
|
|
5054
5054
|
id: string;
|
|
5055
5055
|
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";
|
|
5056
5056
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
5057
|
-
topPadding?: number | undefined;
|
|
5058
|
-
bottomPadding?: number | undefined;
|
|
5059
5057
|
imageUrlOverride?: string | undefined;
|
|
5060
5058
|
imageUrlsOverride?: string | undefined;
|
|
5061
5059
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -10162,8 +10160,6 @@ export declare const useAiCheckpointStore: import("pinia").StoreDefinition<"aiCh
|
|
|
10162
10160
|
id: string;
|
|
10163
10161
|
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";
|
|
10164
10162
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
10165
|
-
topPadding?: number | undefined;
|
|
10166
|
-
bottomPadding?: number | undefined;
|
|
10167
10163
|
imageUrlOverride?: string | undefined;
|
|
10168
10164
|
imageUrlsOverride?: string | undefined;
|
|
10169
10165
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -15276,8 +15272,6 @@ export declare const useAiCheckpointStore: import("pinia").StoreDefinition<"aiCh
|
|
|
15276
15272
|
id: string;
|
|
15277
15273
|
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";
|
|
15278
15274
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
15279
|
-
topPadding?: number | undefined;
|
|
15280
|
-
bottomPadding?: number | undefined;
|
|
15281
15275
|
imageUrlOverride?: string | undefined;
|
|
15282
15276
|
imageUrlsOverride?: string | undefined;
|
|
15283
15277
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -20384,8 +20378,6 @@ export declare const useAiCheckpointStore: import("pinia").StoreDefinition<"aiCh
|
|
|
20384
20378
|
id: string;
|
|
20385
20379
|
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";
|
|
20386
20380
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
20387
|
-
topPadding?: number | undefined;
|
|
20388
|
-
bottomPadding?: number | undefined;
|
|
20389
20381
|
imageUrlOverride?: string | undefined;
|
|
20390
20382
|
imageUrlsOverride?: string | undefined;
|
|
20391
20383
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -25498,8 +25490,6 @@ export declare const useAiCheckpointStore: import("pinia").StoreDefinition<"aiCh
|
|
|
25498
25490
|
id: string;
|
|
25499
25491
|
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";
|
|
25500
25492
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
25501
|
-
topPadding?: number | undefined;
|
|
25502
|
-
bottomPadding?: number | undefined;
|
|
25503
25493
|
imageUrlOverride?: string | undefined;
|
|
25504
25494
|
imageUrlsOverride?: string | undefined;
|
|
25505
25495
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -30606,8 +30596,6 @@ export declare const useAiCheckpointStore: import("pinia").StoreDefinition<"aiCh
|
|
|
30606
30596
|
id: string;
|
|
30607
30597
|
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";
|
|
30608
30598
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
30609
|
-
topPadding?: number | undefined;
|
|
30610
|
-
bottomPadding?: number | undefined;
|
|
30611
30599
|
imageUrlOverride?: string | undefined;
|
|
30612
30600
|
imageUrlsOverride?: string | undefined;
|
|
30613
30601
|
avatarImageUrlOverride?: string | undefined;
|