@designcrowd/library.brand-page 5.18.7-ast-padding-1 → 5.18.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/src/{CreatedOnBrandCrowd-de-de-Cn8zNuGM.js → CreatedOnBrandCrowd-de-de-CZmqvsOT.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-CP8xAFc-.js → CreatedOnBrandCrowd-en-us-5nTR1eLT.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-Ds8NijwP.js → CreatedOnBrandCrowd-es-es-xLvoayrw.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-BiVV_7lj.js → CreatedOnBrandCrowd-fr-ca-CN5n8X8v.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-BiVV_7lj.js → CreatedOnBrandCrowd-fr-fr-CN5n8X8v.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-CjjrYojo.js → CreatedOnBrandCrowd-pt-br-CdkYC12E.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-CjjrYojo.js → CreatedOnBrandCrowd-pt-pt-CdkYC12E.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-ChR5jvlP.js → CreatedOnDcom-de-de-B8rV2rD7.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-C4rO1BMA.js → CreatedOnDcom-en-us-C4WaRIpF.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-DxGMS6JK.js → CreatedOnDcom-es-es-BPHPey0b.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-n31u4t7u.js → CreatedOnDcom-fr-ca-xrMr4xlv.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-gwdsX7YV.js → CreatedOnDcom-fr-fr-BEozL-o2.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-iZjFp--s.js → CreatedOnDcom-pt-br-CoN-ZhjG.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-B3Z3-RLC.js → CreatedOnDcom-pt-pt-9vfUJ3ks.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/video/Video.mixin.d.ts +0 -4
- package/lib/src/brand-page/components/video/Video.mixin.js +0 -4
- package/lib/src/brand-page/constants/misc.constants.d.ts +0 -26
- package/lib/src/brand-page/constants/misc.constants.js +0 -42
- 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 -38
- 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 -36
- package/lib/src/brand-page-maker/stores/ai-checkpoint/ai-checkpoint-store.d.ts +0 -12
- package/lib/src/{bundled-translations-BUyt4scr.js → bundled-translations-D1q3rSEz.js} +9 -9
- package/lib/src/{bundled-translations.de-DE-DEw_OVai.js → bundled-translations.de-DE-BxqLLwbh.js} +1 -1
- package/lib/src/{bundled-translations.es-ES-CFKWmkgY.js → bundled-translations.es-ES-uh249NlJ.js} +17 -17
- package/lib/src/{bundled-translations.fr-CA-DCl5LJS4.js → bundled-translations.fr-CA-BEQmv2fX.js} +1 -1
- package/lib/src/{bundled-translations.fr-FR-B5BjgllA.js → bundled-translations.fr-FR-BnNuCojH.js} +1 -1
- package/lib/src/{bundled-translations.pt-BR-5PWpMPuM.js → bundled-translations.pt-BR-CJUOxVlq.js} +1 -1
- package/lib/src/{bundled-translations.pt-PT-B9_wN0HR.js → bundled-translations.pt-PT-Ds9cMEqK.js} +9 -9
- package/lib/src/bundles/bundled-translations.de-DE.json +0 -2
- package/lib/src/bundles/bundled-translations.es-ES.json +0 -2
- package/lib/src/bundles/bundled-translations.fr-CA.json +0 -2
- package/lib/src/bundles/bundled-translations.fr-FR.json +0 -2
- package/lib/src/bundles/bundled-translations.json +0 -2
- package/lib/src/bundles/bundled-translations.pt-BR.json +0 -2
- package/lib/src/bundles/bundled-translations.pt-PT.json +0 -2
- package/lib/src/css/library.brand-page-brandCrowd.min.css +116 -108
- package/lib/src/css/library.brand-page-brandPage.min.css +116 -108
- package/lib/src/css/library.brand-page-designCom.min.css +116 -108
- package/lib/src/css/library.brand-page-preview.min.css +116 -108
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-CIj_C38s.js → lib-xHNclG2R.js} +19655 -19841
- package/lib/src/metadata-builder/builders/reorder-pages-builder.d.ts +13 -0
- package/lib/src/metadata-builder/builders/reorder-pages-builder.js +49 -0
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +0 -14
- package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +0 -14
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +0 -12
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +0 -12
- package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.d.ts +0 -12
- package/lib/src/shared/content-settings/components/slider-field/SliderField.mixin.js +0 -9
- package/lib/src/shared/content-settings/store/content-settings-store.d.ts +0 -12
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +0 -16
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +0 -14
- package/lib/src/utils/minify-brand-page-metadata.js +1 -11
- package/package.json +1 -1
- package/src/brand-page/components/about-section/AboutSection.vue +4 -10
- package/src/brand-page/components/banner-section/BannerSection.vue +4 -11
- package/src/brand-page/components/booking-section/BookingSection.vue +3 -11
- package/src/brand-page/components/contact-form/ContactForm.mixin.ts +6 -12
- package/src/brand-page/components/contact-form/ContactForm.vue +104 -105
- package/src/brand-page/components/image-gallery/ImageGallery.mixin.ts +0 -5
- package/src/brand-page/components/image-gallery/ImageGallery.vue +1 -1
- package/src/brand-page/components/mailing-list/MailingList.mixin.ts +1 -8
- package/src/brand-page/components/mailing-list/MailingList.vue +1 -1
- package/src/brand-page/components/map/Map.vue +1 -5
- package/src/brand-page/components/payment/request-payment/RequestPayment.mixin.ts +0 -5
- package/src/brand-page/components/payment/request-payment/RequestPayment.vue +0 -1
- package/src/brand-page/components/payment/support-me/SupportMe.mixin.ts +1 -8
- package/src/brand-page/components/payment/support-me/SupportMe.vue +0 -1
- package/src/brand-page/components/shop/Shop.vue +2 -7
- package/src/brand-page/components/social-links/SocialLinks.vue +3 -7
- package/src/brand-page/components/text/Text.vue +5 -12
- package/src/brand-page/components/text-media-section/TextMediaSection.vue +3 -11
- package/src/brand-page/components/video/Video.mixin.ts +0 -5
- package/src/brand-page/components/video/Video.vue +1 -1
- package/src/brand-page/constants/misc.constants.ts +0 -48
- package/src/brand-page/models/content.model.ts +0 -2
- package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +3 -9
- package/src/brand-page/utils/index.ts +0 -1
- package/src/brand-page/utils/migration.util.test.ts +0 -195
- package/src/brand-page/utils/migration.util.ts +0 -11
- package/src/brand-page-maker/constants/config-settings-constant.ts +0 -44
- 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 -38
- 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/metadata-builder/builders/reorder-pages-builder.ts +80 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.de-DE.json +0 -2
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.es-ES.json +0 -2
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-CA.json +0 -2
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-FR.json +0 -2
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.json +0 -2
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-BR.json +0 -2
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-PT.json +0 -2
- package/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.vue +1 -1
- package/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.vue +2 -2
- package/src/shared/content-settings/components/slider-field/SliderField.mixin.ts +0 -9
- package/src/utils/minify-brand-page-metadata.ts +1 -11
- package/lib/src/brand-page/utils/content-padding.util.d.ts +0 -13
- package/lib/src/brand-page/utils/content-padding.util.js +0 -10
- package/lib/src/brand-page/utils/migration/migration-17.d.ts +0 -2
- package/lib/src/brand-page/utils/migration/migration-17.js +0 -48
- 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 -65
- package/src/brand-page-maker/convertors/contact-layout-style.convertor.test.ts +0 -50
|
@@ -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',
|
|
@@ -2367,7 +2334,6 @@ export const SOCIAL_LINKS_SETTINGS_CONFIG = () => ({
|
|
|
2367
2334
|
optionsConvertor: socialLinksIconDisplayStyleConvertor,
|
|
2368
2335
|
variant: 'icon',
|
|
2369
2336
|
},
|
|
2370
|
-
...PADDING_CONTROL_FIELDS(SOCIAL_LINKS_GROUPS.style),
|
|
2371
2337
|
titleStyle: {
|
|
2372
2338
|
type: 'text-style',
|
|
2373
2339
|
groupId: SOCIAL_LINKS_GROUPS.style,
|
|
@@ -2476,7 +2442,6 @@ export const SHAPES_SECTION_SETTINGS_CONFIG = () => ({
|
|
|
2476
2442
|
],
|
|
2477
2443
|
fields: {
|
|
2478
2444
|
displayStyle: TEXT_MEDIA_DISPLAY_STYLE_FIELD(MEDIA_TYPES.shape),
|
|
2479
|
-
...PADDING_CONTROL_FIELDS(SETTINGS_STYLE_FIELD_GROUP_IDS.style),
|
|
2480
2445
|
size: IMAGE_SIZE_FIELD(),
|
|
2481
2446
|
title: TEXT_MEDIA_TITLE_FIELD(),
|
|
2482
2447
|
description: TEXT_MEDIA_DESCRIPTION_FIELD(),
|
|
@@ -2512,7 +2477,6 @@ export const SHAPES_SECTION_SETTINGS_CONFIG = () => ({
|
|
|
2512
2477
|
? MAX_BS_MEDIA_AND_IMAGE_ITEMS
|
|
2513
2478
|
: MAX_BP_MEDIA_AND_IMAGE_ITEMS,
|
|
2514
2479
|
},
|
|
2515
|
-
...PADDING_CONTROL_FIELDS(SETTINGS_STYLE_FIELD_GROUP_IDS.style),
|
|
2516
2480
|
},
|
|
2517
2481
|
isEnabled: true,
|
|
2518
2482
|
isLocked: false,
|
|
@@ -2566,7 +2530,6 @@ export const SHOP_SECTION_SETTINGS_CONFIG = () => ({
|
|
|
2566
2530
|
optionsConvertor: shopAspectRatioConvertor,
|
|
2567
2531
|
visibilityAssessor: shopImageOptionVisibilityAssessor,
|
|
2568
2532
|
},
|
|
2569
|
-
...PADDING_CONTROL_FIELDS(REQUEST_PAYMENT_GROUPS.style),
|
|
2570
2533
|
title: {
|
|
2571
2534
|
type: 'title',
|
|
2572
2535
|
groupId: REQUEST_PAYMENT_GROUPS.settings,
|
|
@@ -2725,7 +2688,6 @@ export const BOOKING_SECTION_SETTINGS_CONFIG = () => ({
|
|
|
2725
2688
|
groupId: SETTINGS_STYLE_FIELD_GROUP_IDS.settings,
|
|
2726
2689
|
visibilityAssessor: (c, b) => personalisationOverrideVisibility(c, b, 'buttonText'),
|
|
2727
2690
|
},
|
|
2728
|
-
...PADDING_CONTROL_FIELDS(SETTINGS_STYLE_FIELD_GROUP_IDS.style),
|
|
2729
2691
|
backgroundStyle: {
|
|
2730
2692
|
type: 'color',
|
|
2731
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,8 +160,6 @@ export const createInitialTextContent = (options) => {
|
|
|
164
160
|
]
|
|
165
161
|
: undefined,
|
|
166
162
|
type: 'text',
|
|
167
|
-
topPadding: 12,
|
|
168
|
-
bottomPadding: 12,
|
|
169
163
|
textSize: {
|
|
170
164
|
fontSize: FONT_SIZE_BODY,
|
|
171
165
|
lineHeight: LINE_HEIGHT_BODY,
|
|
@@ -207,16 +201,12 @@ export const createInitialMapContent = () => {
|
|
|
207
201
|
formattedAddress: '',
|
|
208
202
|
placeId: '',
|
|
209
203
|
},
|
|
210
|
-
topPadding: 0,
|
|
211
|
-
bottomPadding: 0,
|
|
212
204
|
};
|
|
213
205
|
};
|
|
214
206
|
export const createInitialMailingListContent = (options) => {
|
|
215
207
|
return {
|
|
216
208
|
id: uuid.v4(),
|
|
217
209
|
type: 'mailing-list',
|
|
218
|
-
topPadding: 0,
|
|
219
|
-
bottomPadding: 0,
|
|
220
210
|
title: contentSettingsTr(`mailingListTitle`),
|
|
221
211
|
buttonText: contentSettingsTr(`subscribePlaceholder`),
|
|
222
212
|
acceptedFields: 'emailOnly',
|
|
@@ -247,8 +237,6 @@ export const createInitialRequestPaymentContent = (options) => {
|
|
|
247
237
|
successMessage: '',
|
|
248
238
|
title: contentSettingsTr(`buyNowTitle`),
|
|
249
239
|
type: 'request-payment',
|
|
250
|
-
topPadding: 0,
|
|
251
|
-
bottomPadding: 0,
|
|
252
240
|
fillColor: {},
|
|
253
241
|
defaultBorderColor: {},
|
|
254
242
|
selectedBorderColor: {},
|
|
@@ -278,8 +266,6 @@ export const createInitialShopContent = (options) => {
|
|
|
278
266
|
return {
|
|
279
267
|
id: uuid.v4(),
|
|
280
268
|
description: '',
|
|
281
|
-
topPadding: 16,
|
|
282
|
-
bottomPadding: 16,
|
|
283
269
|
products: [],
|
|
284
270
|
displayStyle: PAYMENT_OPTION_DISPLAY_TYPES.thumbnail,
|
|
285
271
|
aspectRatio: PAYMENT_OPTION_IMAGE_TYPES.auto,
|
|
@@ -336,8 +322,6 @@ export const createInitialSupportMeContent = (options) => {
|
|
|
336
322
|
successMessage: contentSettingsTr(`successSupportPlaceholder`),
|
|
337
323
|
description: contentSettingsTr(`makeADonationDescription`),
|
|
338
324
|
type: 'support-me',
|
|
339
|
-
topPadding: 0,
|
|
340
|
-
bottomPadding: 0,
|
|
341
325
|
titleStyle: {
|
|
342
326
|
applyAutoScale: options?.brandPageType === BRAND_PAGE_TYPES.brandSite,
|
|
343
327
|
textStyleType: TEXT_STYLE_TYPES.headings,
|
|
@@ -370,19 +354,13 @@ export const createInitialContactFormContent = (options) => {
|
|
|
370
354
|
typeof options?.userState.emailAddress === 'undefined') {
|
|
371
355
|
console.error('userState.emailAddress should not be undefined');
|
|
372
356
|
}
|
|
373
|
-
// New blocks inherit the padding their initial layout previously had
|
|
374
|
-
// hard-coded — same source as the migration backfill for existing pages.
|
|
375
|
-
const layoutStyle = options?.brandPageType === 'brandSite' ? 'center-card-aligned' : '';
|
|
376
|
-
const padding = CONTACT_FORM_LAYOUT_DEFAULT_PADDING[layoutStyle] ?? 0;
|
|
377
357
|
return {
|
|
378
358
|
id: uuid.v4(),
|
|
379
359
|
title: contentSettingsTr(`contactUsTitle`),
|
|
380
360
|
description: '',
|
|
381
361
|
buttonText: contentSettingsTr(`sendPlaceholder`),
|
|
382
362
|
displayStyle: DISPLAY_STYLE_PREVIEW,
|
|
383
|
-
layoutStyle,
|
|
384
|
-
topPadding: padding,
|
|
385
|
-
bottomPadding: padding,
|
|
363
|
+
layoutStyle: options?.brandPageType === 'brandSite' ? 'center-card-aligned' : '',
|
|
386
364
|
imageUrl: '',
|
|
387
365
|
fields: [
|
|
388
366
|
{
|
|
@@ -472,8 +450,6 @@ export const createInitialContactFormContent = (options) => {
|
|
|
472
450
|
export const createInitialBannerSectionContent = (options) => {
|
|
473
451
|
return {
|
|
474
452
|
id: uuid.v4(),
|
|
475
|
-
topPadding: 32,
|
|
476
|
-
bottomPadding: 32,
|
|
477
453
|
imageUrl: '',
|
|
478
454
|
title: contentSettingsTr(`thisIsABannerTitle`),
|
|
479
455
|
description: '',
|
|
@@ -517,8 +493,6 @@ export const createInitialBookingSectionContent = (options) => {
|
|
|
517
493
|
buttonText: contentSettingsTr(`bookNowLabel`),
|
|
518
494
|
url: '',
|
|
519
495
|
type: 'booking-section',
|
|
520
|
-
topPadding: 32,
|
|
521
|
-
bottomPadding: 32,
|
|
522
496
|
descriptionStyle: {
|
|
523
497
|
applyAutoScale: options?.brandPageType === BRAND_PAGE_TYPES.brandSite,
|
|
524
498
|
textStyleType: TEXT_STYLE_TYPES.paragraphs,
|
|
@@ -545,8 +519,6 @@ export const createInitialImagesSectionContent = (options) => {
|
|
|
545
519
|
title: contentSettingsTr(`imagesTitle`),
|
|
546
520
|
description: '',
|
|
547
521
|
type: 'images-section',
|
|
548
|
-
topPadding: 32,
|
|
549
|
-
bottomPadding: 32,
|
|
550
522
|
displayStyle: 'centered',
|
|
551
523
|
aspectRatio: 'Default',
|
|
552
524
|
areImagesFullWidth: false,
|
|
@@ -644,8 +616,6 @@ export const createInitialAboutSectionContent = (options) => {
|
|
|
644
616
|
textAlign: 'center',
|
|
645
617
|
},
|
|
646
618
|
backgroundStyle: {},
|
|
647
|
-
topPadding: 32,
|
|
648
|
-
bottomPadding: 32,
|
|
649
619
|
};
|
|
650
620
|
};
|
|
651
621
|
export const createInitialDividerSectionContent = () => {
|
|
@@ -698,8 +668,6 @@ export const createInitialSocialLinksContent = (options) => {
|
|
|
698
668
|
return {
|
|
699
669
|
id: uuid.v4(),
|
|
700
670
|
type: 'social-links',
|
|
701
|
-
topPadding: 32,
|
|
702
|
-
bottomPadding: 32,
|
|
703
671
|
title: contentSettingsTr(`followUsOnTitle`),
|
|
704
672
|
links: [
|
|
705
673
|
{
|
|
@@ -750,8 +718,6 @@ export const createInitialShapesSectionContent = (options) => {
|
|
|
750
718
|
title: contentSettingsTr(`shapesTitle`),
|
|
751
719
|
description: '',
|
|
752
720
|
type: 'shapes-section',
|
|
753
|
-
topPadding: 32,
|
|
754
|
-
bottomPadding: 32,
|
|
755
721
|
displayStyle: 'centered',
|
|
756
722
|
items: [
|
|
757
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;
|