@designcrowd/library.brand-page 6.0.8-recaptcha-badge-2 → 6.0.8
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-DMcTHCmt.js → CreatedOnBrandCrowd-de-de-B74hbf1M.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-CCpRaNNX.js → CreatedOnBrandCrowd-en-us-DBB4rdcr.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-DJnOg6ED.js → CreatedOnBrandCrowd-es-es-DgsVWLqe.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-CWPCpuip.js → CreatedOnBrandCrowd-fr-ca-FOLmUD6S.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-CWPCpuip.js → CreatedOnBrandCrowd-fr-fr-FOLmUD6S.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-CAmJrKnZ.js → CreatedOnBrandCrowd-pt-br-CFN_QkC9.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-CAmJrKnZ.js → CreatedOnBrandCrowd-pt-pt-CFN_QkC9.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-CQsfe25S.js → CreatedOnDcom-de-de-DcR_LZOc.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-td8XSiYh.js → CreatedOnDcom-en-us-D4STpZ1l.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-BIxxXp97.js → CreatedOnDcom-es-es-oJH29i_Z.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-DcW-GZ0v.js → CreatedOnDcom-fr-ca-C9ZqPzpz.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-D06mFbLk.js → CreatedOnDcom-fr-fr-BeI4f0rw.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-DNc_MeP0.js → CreatedOnDcom-pt-br-Bc1hY8c-.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-Dalw2-7H.js → CreatedOnDcom-pt-pt-D-I_mgfR.js} +1 -1
- package/lib/src/brand-page/components/contact-form/ContactForm.mixin.d.ts +0 -1
- package/lib/src/brand-page/components/contact-form/ContactForm.mixin.js +1 -19
- package/lib/src/brand-page/components/image-gallery/ImageGallery.stories.js +0 -3
- package/lib/src/brand-page/components/image-gallery/masonry/MasonryGallery.mixin.d.ts +1 -1
- package/lib/src/brand-page/components/images-section/ImagesSection.stories.js +1 -2
- package/lib/src/brand-page/components/mailing-list/MailingList.mixin.d.ts +0 -1
- package/lib/src/brand-page/components/mailing-list/MailingList.mixin.js +1 -8
- package/lib/src/brand-page/components/navigation/navigation-side-menu/NavigationSideMenu.mixin.js +2 -7
- package/lib/src/brand-page/components/social-links/SocialLinks.stories.js +0 -3
- package/lib/src/brand-page/components/testimonial-section/__fixtures__/data.js +0 -3
- package/lib/src/brand-page/components/text/Text.stories.js +0 -2
- package/lib/src/brand-page/models/index.d.ts +0 -13
- package/lib/src/brand-page/models/index.js +0 -4
- package/lib/src/brand-page/utils/color.util.d.ts +0 -16
- package/lib/src/brand-page/utils/color.util.js +0 -56
- package/lib/src/brand-page/utils/logo.util.d.ts +0 -14
- package/lib/src/brand-page/utils/logo.util.js +0 -19
- package/lib/src/brand-page/utils/migration/migration-01.js +0 -2
- package/lib/src/brand-page/utils/migration.util.js +0 -6
- package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +6 -6
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.js +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.js +0 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMakerTemplateSettings.mixin.d.ts +1 -1
- 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 +7 -7
- package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/preview/Preview.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +2 -2
- package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/social-share/SocialShare.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.js +0 -5
- package/lib/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.js +5 -31
- package/lib/src/brand-page-maker/composables/useUndoRedoFlag.d.ts +7 -6
- package/lib/src/brand-page-maker/composables/useUndoRedoFlag.js +12 -7
- package/lib/src/brand-page-maker/constants/config-settings-constant.js +0 -4
- package/lib/src/brand-page-maker/models/content-settings.js +0 -4
- package/lib/src/brand-page-maker/stores/ai-checkpoint/ai-checkpoint-store.d.ts +0 -18
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.d.ts +1 -1
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +55 -77
- package/lib/src/brand-page-maker/stores/history/history-store.d.ts +1 -7
- package/lib/src/brand-page-maker/stores/history/history-store.js +5 -23
- package/lib/src/bundled-translations-BzzINHD2.js +175 -0
- package/lib/src/bundled-translations.de-DE-opJOfLO-.js +175 -0
- package/lib/src/bundled-translations.es-ES-MaidBiW6.js +175 -0
- package/lib/src/bundled-translations.fr-CA-CuG0285l.js +175 -0
- package/lib/src/bundled-translations.fr-FR-DWh-DHys.js +175 -0
- package/lib/src/bundled-translations.pt-BR-DG6n1YPu.js +175 -0
- package/lib/src/bundled-translations.pt-PT-J5-Lhk0H.js +175 -0
- package/lib/src/bundles/bundled-translations.de-DE.json +0 -3
- package/lib/src/bundles/bundled-translations.es-ES.json +0 -3
- package/lib/src/bundles/bundled-translations.fr-CA.json +0 -3
- package/lib/src/bundles/bundled-translations.fr-FR.json +0 -3
- package/lib/src/bundles/bundled-translations.json +0 -3
- package/lib/src/bundles/bundled-translations.pt-BR.json +0 -3
- package/lib/src/bundles/bundled-translations.pt-PT.json +0 -3
- package/lib/src/composables/useTranslate.d.ts +1 -2
- package/lib/src/composables/useTranslate.js +1 -2
- package/lib/src/css/library.brand-page-brandCrowd.min.css +50 -80
- package/lib/src/css/library.brand-page-brandPage.min.css +50 -80
- package/lib/src/css/library.brand-page-designCom.min.css +50 -80
- package/lib/src/css/library.brand-page-preview.min.css +50 -80
- package/lib/src/index.mjs +83 -84
- package/lib/src/{lib-BLwhJeCX.js → lib-n42zt1Rj.js} +34024 -33962
- package/lib/src/metadata-builder/ai-metadata-executor.js +1 -24
- package/lib/src/metadata-builder/builders/footer-builder.js +41 -32
- package/lib/src/metadata-builder/builders/section-builders/image-gallery-builder.js +68 -57
- package/lib/src/metadata-builder/builders/section-builders/images-section-builder.js +93 -58
- package/lib/src/metadata-builder/builders/section-builders/move-section-builder.d.ts +1 -13
- package/lib/src/metadata-builder/builders/section-builders/move-section-builder.js +30 -40
- package/lib/src/metadata-builder/builders/section-builders/shapes-section-builder.js +99 -66
- package/lib/src/metadata-builder/builders/section-builders/social-links-builder.js +17 -57
- package/lib/src/metadata-builder/builders/section-builders/testimonial-section-builder.js +85 -51
- package/lib/src/metadata-builder/builders/section-builders/text-section-builder.js +74 -50
- package/lib/src/metadata-builder/builders/section-field-maps.js +0 -17
- package/lib/src/metadata-builder/metadata-executor.js +0 -4
- package/lib/src/metadata-builder/models.d.ts +0 -2
- package/lib/src/metadata-builder/models.js +0 -2
- package/lib/src/metadata-builder/parsers/ai-toolcall-parser.d.ts +7 -31
- package/lib/src/metadata-builder/parsers/ai-toolcall-parser.js +0 -2
- package/lib/src/metadata-builder/parsers/section-tool-arguments.d.ts +48 -84
- package/lib/src/shared/content-settings/components/GenericTextInput.mixin.d.ts +0 -5
- package/lib/src/shared/content-settings/components/GenericTextInput.mixin.js +0 -29
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +7 -7
- package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +6 -6
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +5 -5
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +6 -6
- package/lib/src/shared/content-settings/components/email-field/EmailField.mixin.d.ts +0 -5
- package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.d.ts +5 -5
- package/lib/src/shared/content-settings/components/form-fields-field/FormFieldsField.mixin.js +4 -5
- package/lib/src/shared/content-settings/components/links-field/LinksField.mixin.js +0 -2
- package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +67 -0
- package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.js +6 -4
- package/lib/src/shared/content-settings/components/tel-field/TelField.mixin.d.ts +0 -5
- package/lib/src/shared/content-settings/components/text-field/TextField.mixin.d.ts +0 -5
- package/lib/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.d.ts +0 -2
- package/lib/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.js +0 -19
- package/lib/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.d.ts +0 -1
- package/lib/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.js +7 -18
- package/lib/src/shared/content-settings/components/textarea-field/TextareaField.mixin.d.ts +0 -5
- package/lib/src/shared/content-settings/components/url-field/UrlField.mixin.d.ts +0 -5
- package/lib/src/shared/content-settings/components/youtube-video-field/YoutubeVideoField.mixin.d.ts +0 -5
- package/lib/src/shared/content-settings/models.d.ts +0 -11
- package/lib/src/shared/content-settings/store/content-settings-store.d.ts +5 -5
- package/lib/src/shared/content-settings/store/content-settings-store.js +5 -47
- package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +1 -1
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +6 -8
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +6 -8
- package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +1 -1
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +1 -1
- package/lib/src/utils/minify-brand-page-metadata.d.ts +0 -2
- package/lib/src/utils/minify-brand-page-metadata.js +1 -8
- package/package.json +1 -16
- package/src/brand-page/components/banner-section/BannerSection.vue +1 -5
- package/src/brand-page/components/contact-form/ContactForm.mixin.ts +0 -24
- package/src/brand-page/components/contact-form/ContactForm.vue +0 -9
- package/src/brand-page/components/image-gallery/ImageGallery.stories.ts +0 -3
- package/src/brand-page/components/image-gallery/ImageGallery.test.ts +0 -1
- package/src/brand-page/components/image-gallery/masonry/MasonryGallery.mixin.ts +1 -2
- package/src/brand-page/components/images-section/ImagesSection.stories.ts +1 -2
- package/src/brand-page/components/mailing-list/MailingList.mixin.ts +0 -11
- package/src/brand-page/components/mailing-list/MailingList.vue +0 -3
- package/src/brand-page/components/navigation/navigation-side-menu/NavigationSideMenu.mixin.ts +3 -11
- package/src/brand-page/components/page/Page.vue +0 -9
- package/src/brand-page/components/social-links/SocialLinks.stories.ts +0 -3
- package/src/brand-page/components/social-links/SocialLinks.vue.test.ts +0 -5
- package/src/brand-page/components/testimonial-section/__fixtures__/data.ts +0 -3
- package/src/brand-page/components/text/Text.stories.ts +0 -2
- package/src/brand-page/models/index.ts +0 -17
- package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +3 -23
- package/src/brand-page/utils/__snapshots__/migration2.util.test.ts.snap +0 -6
- package/src/brand-page/utils/__snapshots__/model.util.test.ts.snap +0 -12
- package/src/brand-page/utils/color.util.test.ts +1 -78
- package/src/brand-page/utils/color.util.ts +0 -82
- package/src/brand-page/utils/logo.util.test.ts +1 -54
- package/src/brand-page/utils/logo.util.ts +0 -23
- package/src/brand-page/utils/migration/migration-01.ts +0 -2
- package/src/brand-page/utils/migration.util.ts +0 -7
- package/src/brand-page/utils/personalisation.util.test.ts +0 -4
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.ts +1 -1
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.ts +0 -1
- package/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.ts +0 -1
- package/src/brand-page-maker/components/quick-link-bar/RedoButton.vue +2 -24
- package/src/brand-page-maker/components/quick-link-bar/UndoButton.vue +2 -24
- package/src/brand-page-maker/components/quick-link-bar/undo-redo-buttons.test.ts +2 -36
- package/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.ts +0 -6
- package/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.ts +6 -32
- package/src/brand-page-maker/composables/useUndoRedoFlag.ts +13 -7
- package/src/brand-page-maker/constants/config-settings-constant.ts +0 -4
- package/src/brand-page-maker/models/content-settings.ts +0 -4
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.test.ts +0 -183
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +72 -84
- package/src/brand-page-maker/stores/history/history-store.test.ts +0 -85
- package/src/brand-page-maker/stores/history/history-store.ts +4 -31
- package/src/bundles/bundled-translations.de-DE.json +0 -3
- package/src/bundles/bundled-translations.es-ES.json +0 -3
- package/src/bundles/bundled-translations.fr-CA.json +0 -3
- package/src/bundles/bundled-translations.fr-FR.json +0 -3
- package/src/bundles/bundled-translations.json +0 -3
- package/src/bundles/bundled-translations.pt-BR.json +0 -3
- package/src/bundles/bundled-translations.pt-PT.json +0 -3
- package/src/composables/useTranslate.ts +0 -3
- package/src/metadata-builder/ai-metadata-executor.ts +1 -31
- package/src/metadata-builder/builders/footer-builder.test.ts +28 -335
- package/src/metadata-builder/builders/footer-builder.ts +57 -40
- package/src/metadata-builder/builders/section-builders/image-gallery-builder.ts +88 -62
- package/src/metadata-builder/builders/section-builders/images-section-builder.ts +129 -66
- package/src/metadata-builder/builders/section-builders/move-section-builder.ts +35 -58
- package/src/metadata-builder/builders/section-builders/shapes-section-builder.ts +160 -105
- package/src/metadata-builder/builders/section-builders/social-links-builder.ts +20 -65
- package/src/metadata-builder/builders/section-builders/testimonial-section-builder.ts +146 -83
- package/src/metadata-builder/builders/section-builders/text-section-builder.ts +122 -71
- package/src/metadata-builder/builders/section-field-maps.ts +0 -18
- package/src/metadata-builder/metadata-executor.ts +0 -4
- package/src/metadata-builder/models.ts +0 -2
- package/src/metadata-builder/parsers/ai-toolcall-parser.ts +7 -32
- package/src/metadata-builder/parsers/section-tool-arguments.ts +48 -84
- package/src/shared/content-settings/components/GenericTextInput.mixin.ts +0 -37
- package/src/shared/content-settings/components/form-fields-field/FormFieldsField.mixin.ts +6 -9
- package/src/shared/content-settings/components/links-field/LinksField.mixin.ts +0 -2
- package/src/shared/content-settings/components/page-dropdown-field/PageDropdownField.vue +5 -10
- package/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.ts +7 -4
- package/src/shared/content-settings/components/text-field/TextField.vue +1 -2
- package/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.ts +0 -26
- package/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.ts +11 -19
- package/src/shared/content-settings/components/textarea-field/TextareaField.vue +1 -2
- package/src/shared/content-settings/models.ts +0 -11
- package/src/shared/content-settings/store/content-settings-store.test.ts +0 -278
- package/src/shared/content-settings/store/content-settings-store.ts +0 -64
- package/src/utils/minify-brand-page-metadata.ts +2 -14
- package/lib/src/brand-page/utils/migration/migration-18.d.ts +0 -14
- package/lib/src/brand-page/utils/migration/migration-18.js +0 -17
- package/lib/src/bundled-translations-Cbaxd_x-.js +0 -177
- package/lib/src/bundled-translations.de-DE-CIxaSVA1.js +0 -177
- package/lib/src/bundled-translations.es-ES-hutUJbuX.js +0 -177
- package/lib/src/bundled-translations.fr-CA-kIF8Q7px.js +0 -177
- package/lib/src/bundled-translations.fr-FR-CE3XDUTn.js +0 -177
- package/lib/src/bundled-translations.pt-BR-BEhfMyNa.js +0 -177
- package/lib/src/bundled-translations.pt-PT-BBd3nlQc.js +0 -177
- package/lib/src/metadata-builder/builders/item-id-utils.d.ts +0 -54
- package/lib/src/metadata-builder/builders/item-id-utils.js +0 -96
- package/lib/src/metadata-builder/builders/move-page-builder.d.ts +0 -32
- package/lib/src/metadata-builder/builders/move-page-builder.js +0 -137
- package/lib/src/metadata-builder/builders/nav-utils.d.ts +0 -26
- package/lib/src/metadata-builder/builders/nav-utils.js +0 -95
- package/lib/src/metadata-builder/builders/set-page-visibility-builder.d.ts +0 -23
- package/lib/src/metadata-builder/builders/set-page-visibility-builder.js +0 -83
- package/lib/src/tracker.d.ts +0 -2
- package/lib/src/tracker.js +0 -12
- package/lib/src/tracker.mjs +0 -12
- package/lib/src/useEventTracker-DmQ6AkNn.js +0 -356
- package/src/brand-page/components/contact-form/ContactForm.mixin.test.ts +0 -59
- package/src/brand-page/components/recaptcha-disclosure/RecaptchaDisclosure.vue +0 -60
- package/src/brand-page/components/recaptcha-disclosure/RecaptchaDisclosure.vue.test.ts +0 -36
- package/src/brand-page/components/recaptcha-disclosure/i18n/recaptcha.de-DE.json +0 -5
- package/src/brand-page/components/recaptcha-disclosure/i18n/recaptcha.es-ES.json +0 -5
- package/src/brand-page/components/recaptcha-disclosure/i18n/recaptcha.fr-CA.json +0 -5
- package/src/brand-page/components/recaptcha-disclosure/i18n/recaptcha.fr-FR.json +0 -5
- package/src/brand-page/components/recaptcha-disclosure/i18n/recaptcha.json +0 -5
- package/src/brand-page/components/recaptcha-disclosure/i18n/recaptcha.pt-BR.json +0 -5
- package/src/brand-page/components/recaptcha-disclosure/i18n/recaptcha.pt-PT.json +0 -5
- package/src/brand-page/utils/migration/migration-18.test.ts +0 -131
- package/src/brand-page/utils/migration/migration-18.ts +0 -22
- package/src/metadata-builder/builders/item-id-utils.test.ts +0 -184
- package/src/metadata-builder/builders/item-id-utils.ts +0 -117
- package/src/metadata-builder/builders/move-page-builder.ts +0 -227
- package/src/metadata-builder/builders/nav-utils.ts +0 -141
- package/src/metadata-builder/builders/set-page-visibility-builder.ts +0 -122
- package/src/shared/content-settings/components/GenericTextInput.mixin.test.ts +0 -119
- package/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.test.ts +0 -149
- package/src/tracker.ts +0 -28
|
@@ -65,7 +65,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
65
65
|
renderText(): string;
|
|
66
66
|
renderSuccessText(): string;
|
|
67
67
|
successMessageColorStyle(): BrandPageCssStyle;
|
|
68
|
-
disclosureColor(): string | undefined;
|
|
69
68
|
}, {
|
|
70
69
|
submitContactForm(): Promise<void>;
|
|
71
70
|
validateFormValues(): void;
|
|
@@ -4,7 +4,7 @@ import { getEmailValidationError, getMessageValidationError, getNameValidationEr
|
|
|
4
4
|
import brandPageClient from '../../clients/brand-page.client';
|
|
5
5
|
import { isEmail } from '../../../utils/validator.util';
|
|
6
6
|
import { ALIGN_CARD_CENTER, ALIGN_CARD_CENTER_IMAGE, ALIGN_CENTERED, ALIGN_LEFT_FULL_IMAGE, ALIGN_RIGHT_FULL_IMAGE, DISPLAY_STYLE_COLLAPSED, RECAPTCHA_ACTION_CONTACT_FORM, TEXT_ONLY, } from '../../constants';
|
|
7
|
-
import { getRenderText, contentPaddingStyle as toContentPaddingStyle,
|
|
7
|
+
import { getRenderText, contentPaddingStyle as toContentPaddingStyle, } from '@brand-page/utils';
|
|
8
8
|
import { hasRTEContent } from '@brand-page-maker/utils';
|
|
9
9
|
import { useReCaptcha } from '../../composables/recaptcha.composable';
|
|
10
10
|
export default defineComponent({
|
|
@@ -146,24 +146,6 @@ export default defineComponent({
|
|
|
146
146
|
}
|
|
147
147
|
return {};
|
|
148
148
|
},
|
|
149
|
-
disclosureColor() {
|
|
150
|
-
// Anchor the reCAPTCHA footnote to the surface it visually sits on, which
|
|
151
|
-
// differs by website type:
|
|
152
|
-
// - brandSite: the card style (card + divided layouts) or the section
|
|
153
|
-
// background (other layouts).
|
|
154
|
-
// - brand.page / brand.contact: there's no section background, so the
|
|
155
|
-
// coloured surface is the global button fill.
|
|
156
|
-
// Falls back to the title colour when there's no solid colour to anchor to.
|
|
157
|
-
const style = this.context.isBrandSite
|
|
158
|
-
? this.hasCard || this.isDividedContent
|
|
159
|
-
? this.viewModel.cardStyle
|
|
160
|
-
: this.hasBgColor
|
|
161
|
-
? this.viewModel.backgroundStyle
|
|
162
|
-
: undefined
|
|
163
|
-
: this.viewModel.buttonStyles?.style;
|
|
164
|
-
return (mutedTextForBackground(backgroundColorFromStyle(style)) ??
|
|
165
|
-
this.viewModel.titleStyle?.color);
|
|
166
|
-
},
|
|
167
149
|
},
|
|
168
150
|
watch: {
|
|
169
151
|
fields(fields) {
|
|
@@ -44,7 +44,6 @@ export const Carousel = () => {
|
|
|
44
44
|
content.galleryStyles = undefined;
|
|
45
45
|
content.images = new Array(10).fill(0).map((_, i) => {
|
|
46
46
|
return {
|
|
47
|
-
id: `gallery-carousel-item-${i}`,
|
|
48
47
|
imageUrl: `https://picsum.photos/${300 * ((i + 1) / 4)}/${300 * ((i + 1) / 4)}?random=${i}`,
|
|
49
48
|
width: 300,
|
|
50
49
|
height: 300,
|
|
@@ -72,7 +71,6 @@ export const Masonry = () => {
|
|
|
72
71
|
const content = createInitialImageGalleryContent();
|
|
73
72
|
content.images = new Array(10).fill(0).map((_, i) => {
|
|
74
73
|
return {
|
|
75
|
-
id: `gallery-masonry-item-${i}`,
|
|
76
74
|
imageUrl: `https://picsum.photos/${300 * ((i + 1) / 4)}/${300 * ((i + 1) / 4)}?random=${i}`,
|
|
77
75
|
width: 564,
|
|
78
76
|
height: 416,
|
|
@@ -100,7 +98,6 @@ export const Grid = () => {
|
|
|
100
98
|
const content = createInitialImageGalleryContent();
|
|
101
99
|
content.images = new Array(10).fill(0).map((_, i) => {
|
|
102
100
|
return {
|
|
103
|
-
id: `gallery-grid-item-${i}`,
|
|
104
101
|
imageUrl: `https://picsum.photos/${300 * ((i + 1) / 4)}/${300 * ((i + 1) / 4)}?random=${i}`,
|
|
105
102
|
width: 564,
|
|
106
103
|
height: 416,
|
|
@@ -2,7 +2,7 @@ import type { PropType } from 'vue';
|
|
|
2
2
|
import type { ImageGalleryViewModel } from '../../../view-models';
|
|
3
3
|
import type { DebounceHandle } from 'lodash.debounce';
|
|
4
4
|
import type { BrandPageContext, ImageGalleryItem } from '../../../models';
|
|
5
|
-
interface IndexedImageGalleryItem extends
|
|
5
|
+
interface IndexedImageGalleryItem extends ImageGalleryItem {
|
|
6
6
|
id: number;
|
|
7
7
|
}
|
|
8
8
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -41,9 +41,8 @@ export const Images = () => {
|
|
|
41
41
|
},
|
|
42
42
|
data() {
|
|
43
43
|
const content = createInitialImagesSectionContent();
|
|
44
|
-
content.items = new Array(2).fill(0).map((
|
|
44
|
+
content.items = new Array(2).fill(0).map(() => {
|
|
45
45
|
return {
|
|
46
|
-
id: `images-section-item-${i}`,
|
|
47
46
|
imageUrl: 'https://bc-user-uploads.brandcrowd.com/public/media-int/6b3a4d19-e95c-4d59-aa22-ac033a2cec2f/1116870a-c672-4306-b515-32f8d5d6e10c',
|
|
48
47
|
width: 564,
|
|
49
48
|
height: 416,
|
|
@@ -48,7 +48,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
48
48
|
hasFormError(): boolean;
|
|
49
49
|
isNameRequired(): boolean;
|
|
50
50
|
hasSubmitError(): boolean;
|
|
51
|
-
disclosureColor(): string | undefined;
|
|
52
51
|
buttonStyle(): BrandPageCssStyle;
|
|
53
52
|
buttonText(): string;
|
|
54
53
|
containerStyle(): BrandPageCssStyle;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent } from 'vue';
|
|
2
2
|
import brandPageClient from '../../clients/brand-page.client';
|
|
3
|
-
import { getEmailValidationError, contentPaddingStyle as toContentPaddingStyle,
|
|
3
|
+
import { getEmailValidationError, contentPaddingStyle as toContentPaddingStyle, } from '@brand-page/utils';
|
|
4
4
|
import { contentSettingsTr, mailingListTr, } from '@src/composables/useTranslate';
|
|
5
5
|
import { useReCaptcha } from '../../composables/recaptcha.composable';
|
|
6
6
|
import { RECAPTCHA_ACTION_MAILING_LIST } from '../../constants';
|
|
@@ -69,13 +69,6 @@ export default defineComponent({
|
|
|
69
69
|
hasSubmitError() {
|
|
70
70
|
return Boolean(this.submitError);
|
|
71
71
|
},
|
|
72
|
-
disclosureColor() {
|
|
73
|
-
// The mailing-list box uses the button style as its background, so anchor
|
|
74
|
-
// the reCAPTCHA footnote to that. Falls back to the title colour when the
|
|
75
|
-
// background isn't a solid colour.
|
|
76
|
-
const bg = backgroundColorFromStyle(this.viewModel.styles?.style);
|
|
77
|
-
return mutedTextForBackground(bg) ?? this.viewModel.titleStyle?.color;
|
|
78
|
-
},
|
|
79
72
|
buttonStyle() {
|
|
80
73
|
const buttonStyle = { ...this.viewModel.styles?.style };
|
|
81
74
|
if (buttonStyle.borderStyle !== 'solid') {
|
package/lib/src/brand-page/components/navigation/navigation-side-menu/NavigationSideMenu.mixin.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { defineComponent } from 'vue';
|
|
2
|
-
import { isUnsetOrTransparentColor } from '../../../models';
|
|
3
2
|
export default defineComponent({
|
|
4
3
|
props: {
|
|
5
4
|
context: {
|
|
@@ -76,16 +75,12 @@ export default defineComponent({
|
|
|
76
75
|
const baseStyle = isActive
|
|
77
76
|
? this.selectedButtonStyle
|
|
78
77
|
: this.defaultButtonStyle;
|
|
79
|
-
const subNavBackgroundColor = this.styles.hamburgerMenuStyle.subNavBackgroundColor ?? '#ffffff';
|
|
80
|
-
// An active sub-page uses the selected button colour, but when that colour
|
|
81
|
-
// is transparent/unset it must keep the sub-nav background colour rather
|
|
82
|
-
// than rendering transparent (BP-5751).
|
|
83
78
|
return {
|
|
84
79
|
...baseStyle,
|
|
85
80
|
paddingLeft: '32px',
|
|
86
|
-
backgroundColor: isActive
|
|
81
|
+
backgroundColor: isActive
|
|
87
82
|
? baseStyle.backgroundColor
|
|
88
|
-
: subNavBackgroundColor,
|
|
83
|
+
: (this.styles.hamburgerMenuStyle.subNavBackgroundColor ?? '#ffffff'),
|
|
89
84
|
};
|
|
90
85
|
},
|
|
91
86
|
closeSideMenu() {
|
|
@@ -11,7 +11,6 @@ const viewModel = {
|
|
|
11
11
|
title: 'Follow us on',
|
|
12
12
|
links: [
|
|
13
13
|
{
|
|
14
|
-
id: 'social-link-facebook',
|
|
15
14
|
imageUrl: 'facebook',
|
|
16
15
|
url: '',
|
|
17
16
|
imageTitle: '',
|
|
@@ -22,7 +21,6 @@ const viewModel = {
|
|
|
22
21
|
imageLink: '',
|
|
23
22
|
},
|
|
24
23
|
{
|
|
25
|
-
id: 'social-link-instagram',
|
|
26
24
|
imageUrl: 'instagram',
|
|
27
25
|
url: 'https://www.instagram.com',
|
|
28
26
|
imageTitle: '',
|
|
@@ -33,7 +31,6 @@ const viewModel = {
|
|
|
33
31
|
imageLink: '',
|
|
34
32
|
},
|
|
35
33
|
{
|
|
36
|
-
id: 'social-link-empty',
|
|
37
34
|
imageUrl: '',
|
|
38
35
|
url: '',
|
|
39
36
|
imageTitle: '',
|
|
@@ -9,7 +9,6 @@ export const viewModel = {
|
|
|
9
9
|
displayStyle: 'centered',
|
|
10
10
|
items: [
|
|
11
11
|
{
|
|
12
|
-
id: 'testimonial-1',
|
|
13
12
|
testimonials: faker.lorem.paragraphs(1),
|
|
14
13
|
imageUrl: unsplashImage,
|
|
15
14
|
name: '1',
|
|
@@ -18,7 +17,6 @@ export const viewModel = {
|
|
|
18
17
|
colorReplacements: [],
|
|
19
18
|
},
|
|
20
19
|
{
|
|
21
|
-
id: 'testimonial-2',
|
|
22
20
|
testimonials: faker.lorem.paragraphs(3),
|
|
23
21
|
imageUrl: unsplashImage,
|
|
24
22
|
name: '2',
|
|
@@ -27,7 +25,6 @@ export const viewModel = {
|
|
|
27
25
|
colorReplacements: [],
|
|
28
26
|
},
|
|
29
27
|
{
|
|
30
|
-
id: 'testimonial-3',
|
|
31
28
|
testimonials: faker.lorem.paragraphs(5),
|
|
32
29
|
imageUrl: 'https://source.unsplash.com/random/200x200?3',
|
|
33
30
|
name: '3',
|
|
@@ -31,7 +31,6 @@ const BSviewModel = {
|
|
|
31
31
|
text: 'asdasjdlkasjmdlkmsad',
|
|
32
32
|
textItems: [
|
|
33
33
|
{
|
|
34
|
-
id: 'text-item-1',
|
|
35
34
|
text: 'lorem ipsum',
|
|
36
35
|
textStyle: {
|
|
37
36
|
fontSize: '1rem',
|
|
@@ -40,7 +39,6 @@ const BSviewModel = {
|
|
|
40
39
|
},
|
|
41
40
|
},
|
|
42
41
|
{
|
|
43
|
-
id: 'text-item-2',
|
|
44
42
|
text: 'lorem ipsum',
|
|
45
43
|
textStyle: {
|
|
46
44
|
fontSize: '1rem',
|
|
@@ -110,13 +110,6 @@ export interface ImageContent extends Content {
|
|
|
110
110
|
height?: number;
|
|
111
111
|
}
|
|
112
112
|
export interface ImageItem {
|
|
113
|
-
/**
|
|
114
|
-
* Stable per-item identifier. Mirrors the section-level `Content.id` one
|
|
115
|
-
* level deeper so AI tool calls can reference items by id rather than by
|
|
116
|
-
* positional index. Backfilled on load for persisted data that predates
|
|
117
|
-
* item ids (see ensureItemIds), so it is always present at runtime.
|
|
118
|
-
*/
|
|
119
|
-
id: string;
|
|
120
113
|
imageUrl: string;
|
|
121
114
|
imageTitle: string;
|
|
122
115
|
width: number;
|
|
@@ -318,8 +311,6 @@ export interface ShapeItem extends ImageItem {
|
|
|
318
311
|
paragraphOverride?: string;
|
|
319
312
|
}
|
|
320
313
|
export interface TestimonialItems {
|
|
321
|
-
/** Stable per-item identifier. See ImageItem.id. */
|
|
322
|
-
id: string;
|
|
323
314
|
imageUrl: string;
|
|
324
315
|
name: string;
|
|
325
316
|
position: string;
|
|
@@ -334,8 +325,6 @@ export interface TestimonialItems {
|
|
|
334
325
|
positionOverride?: string;
|
|
335
326
|
}
|
|
336
327
|
export interface TextItem {
|
|
337
|
-
/** Stable per-item identifier. See ImageItem.id. */
|
|
338
|
-
id: string;
|
|
339
328
|
text: string;
|
|
340
329
|
textStyle: TextStyleDeclaration;
|
|
341
330
|
textOverride?: string;
|
|
@@ -396,8 +385,6 @@ export interface AboutSectionContent extends Content {
|
|
|
396
385
|
size?: string;
|
|
397
386
|
}
|
|
398
387
|
export interface LinksItem {
|
|
399
|
-
/** Stable per-item identifier. See ImageItem.id. */
|
|
400
|
-
id: string;
|
|
401
388
|
imageUrl: string;
|
|
402
389
|
url: string;
|
|
403
390
|
size?: string;
|
|
@@ -11,7 +11,6 @@ import { NavigationDesktop, NavigationMobile } from './navigation-styles.model';
|
|
|
11
11
|
import { TEXT_STYLE_TYPES, TextStyles } from './styles.model';
|
|
12
12
|
import { EMPTY_LOGO_IMAGE_MODEL, LogoStyles } from './logo.model';
|
|
13
13
|
import cloneDeep from 'lodash.clonedeep';
|
|
14
|
-
import * as uuid from 'uuid';
|
|
15
14
|
export * from './brand-page-context.model';
|
|
16
15
|
export * from './payment.model';
|
|
17
16
|
export * from './content.model';
|
|
@@ -332,7 +331,6 @@ export class AbstractPageFooterStyles {
|
|
|
332
331
|
this.logoImageWidth = options.logoImageWidth || DEFAULT_LOGO_WIDTH;
|
|
333
332
|
this.socialLinks = options.socialLinks || [
|
|
334
333
|
{
|
|
335
|
-
id: uuid.v4(),
|
|
336
334
|
width: 0,
|
|
337
335
|
height: 0,
|
|
338
336
|
imageUrl: 'facebook',
|
|
@@ -342,7 +340,6 @@ export class AbstractPageFooterStyles {
|
|
|
342
340
|
imageLink: '',
|
|
343
341
|
},
|
|
344
342
|
{
|
|
345
|
-
id: uuid.v4(),
|
|
346
343
|
width: 0,
|
|
347
344
|
height: 0,
|
|
348
345
|
imageUrl: 'instagram',
|
|
@@ -352,7 +349,6 @@ export class AbstractPageFooterStyles {
|
|
|
352
349
|
imageLink: '',
|
|
353
350
|
},
|
|
354
351
|
{
|
|
355
|
-
id: uuid.v4(),
|
|
356
352
|
width: 0,
|
|
357
353
|
height: 0,
|
|
358
354
|
imageUrl: 'x',
|
|
@@ -7,21 +7,5 @@ export declare const removeAlphaFromHex: (hex: string) => string;
|
|
|
7
7
|
export declare const addTransparentAlphaChannelToHex: (hex: string) => string;
|
|
8
8
|
export declare const addOpacityToHex: (hex: string, opacity: number) => string;
|
|
9
9
|
export declare const setRgbAlpha: (rgb: string, alpha: number) => string;
|
|
10
|
-
/**
|
|
11
|
-
* A muted text colour whose lightness runs opposite to the background: darker
|
|
12
|
-
* text on light backgrounds (e.g. beige), lighter text on dark ones. Starts
|
|
13
|
-
* faded (close to the background) and is nudged toward black or white — whichever
|
|
14
|
-
* the background contrasts with more — only until it reaches a legible target
|
|
15
|
-
* contrast, so the result is as subtle as legibility allows.
|
|
16
|
-
*
|
|
17
|
-
* Returns undefined when the background isn't a solid, opaque colour (image,
|
|
18
|
-
* gradient, transparent, unparseable) so callers can fall back.
|
|
19
|
-
*/
|
|
20
|
-
export declare const mutedTextForBackground: (bgColor: string | undefined, { targetContrast, start, step }?: {
|
|
21
|
-
targetContrast?: number | undefined;
|
|
22
|
-
start?: number | undefined;
|
|
23
|
-
step?: number | undefined;
|
|
24
|
-
}) => string | undefined;
|
|
25
|
-
export declare const backgroundColorFromStyle: (style: BrandPageCssStyle | undefined) => string | undefined;
|
|
26
10
|
export declare const getThemeByTextStyleAndLogoTheme: (textStyle: BrandPageCssStyle, logoTheme: LogoTheme) => Theme;
|
|
27
11
|
export declare const getNewColorBasedOnTargetColorTheme: (originalColor: string, targetColor: string) => ColorInstance | undefined;
|
|
@@ -47,62 +47,6 @@ export const setRgbAlpha = (rgb, alpha) => {
|
|
|
47
47
|
}
|
|
48
48
|
return `rgba(${match[1]},${match[2]},${match[3]},${alpha})`;
|
|
49
49
|
};
|
|
50
|
-
// Weighted linear blend of two colours in sRGB (weight = amount of `b`, 0..1).
|
|
51
|
-
const mixRgb = (a, b, weight) => {
|
|
52
|
-
const [ar, ag, ab] = a.rgb().array();
|
|
53
|
-
const [br, bg, bb] = b.rgb().array();
|
|
54
|
-
return Color.rgb(ar + (br - ar) * weight, ag + (bg - ag) * weight, ab + (bb - ab) * weight);
|
|
55
|
-
};
|
|
56
|
-
// WCAG contrast ratio (1..21) between two colours.
|
|
57
|
-
const contrastRatio = (a, b) => {
|
|
58
|
-
const [ar, ag, ab] = a.rgb().array();
|
|
59
|
-
const [br, bg, bb] = b.rgb().array();
|
|
60
|
-
const la = luminance(ar, ag, ab);
|
|
61
|
-
const lb = luminance(br, bg, bb);
|
|
62
|
-
return (Math.max(la, lb) + 0.05) / (Math.min(la, lb) + 0.05);
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* A muted text colour whose lightness runs opposite to the background: darker
|
|
66
|
-
* text on light backgrounds (e.g. beige), lighter text on dark ones. Starts
|
|
67
|
-
* faded (close to the background) and is nudged toward black or white — whichever
|
|
68
|
-
* the background contrasts with more — only until it reaches a legible target
|
|
69
|
-
* contrast, so the result is as subtle as legibility allows.
|
|
70
|
-
*
|
|
71
|
-
* Returns undefined when the background isn't a solid, opaque colour (image,
|
|
72
|
-
* gradient, transparent, unparseable) so callers can fall back.
|
|
73
|
-
*/
|
|
74
|
-
export const mutedTextForBackground = (bgColor, { targetContrast = 3.5, start = 0.12, step = 0.04 } = {}) => {
|
|
75
|
-
if (!bgColor) {
|
|
76
|
-
return undefined;
|
|
77
|
-
}
|
|
78
|
-
let bg;
|
|
79
|
-
try {
|
|
80
|
-
bg = Color(bgColor);
|
|
81
|
-
}
|
|
82
|
-
catch {
|
|
83
|
-
return undefined;
|
|
84
|
-
}
|
|
85
|
-
// Can't anchor to a see-through background — caller should fall back.
|
|
86
|
-
if (bg.alpha() === 0) {
|
|
87
|
-
return undefined;
|
|
88
|
-
}
|
|
89
|
-
const black = Color.rgb(0, 0, 0);
|
|
90
|
-
const white = Color.rgb(255, 255, 255);
|
|
91
|
-
const target = contrastRatio(bg, black) >= contrastRatio(bg, white) ? black : white;
|
|
92
|
-
let weight = start;
|
|
93
|
-
let text = mixRgb(bg, target, weight);
|
|
94
|
-
while (weight < 1 && contrastRatio(text, bg) < targetContrast) {
|
|
95
|
-
weight += step;
|
|
96
|
-
text = mixRgb(bg, target, weight);
|
|
97
|
-
}
|
|
98
|
-
return text.hex();
|
|
99
|
-
};
|
|
100
|
-
// Pull a usable background colour out of a style object. Section backgrounds are
|
|
101
|
-
// written under the `background` shorthand (the background-settings store forbids
|
|
102
|
-
// `backgroundColor`), while card/button styles use `backgroundColor` — so check
|
|
103
|
-
// both. The value may be a gradient/shorthand; callers that need a solid colour
|
|
104
|
-
// pass it through mutedTextForBackground, which rejects anything unparseable.
|
|
105
|
-
export const backgroundColorFromStyle = (style) => style?.backgroundColor || style?.background;
|
|
106
50
|
export const getThemeByTextStyleAndLogoTheme = (textStyle, logoTheme) => {
|
|
107
51
|
const primaryColor = textStyle.color;
|
|
108
52
|
let secondaryColor = primaryColor;
|
|
@@ -30,20 +30,6 @@ export declare const calculateOptimizedLogoDimensions: (logoData: {
|
|
|
30
30
|
width: string;
|
|
31
31
|
height: string;
|
|
32
32
|
};
|
|
33
|
-
/**
|
|
34
|
-
* Resolves the "current" logo image from a brand-page MODEL (the raw,
|
|
35
|
-
* deserialized shape — not the live stores, whose contents are wrapped in
|
|
36
|
-
* `settings.content`).
|
|
37
|
-
*
|
|
38
|
-
* Brand-site keeps its logo in the page header; brand-page and brand-contact
|
|
39
|
-
* keep it as a logo CONTENT block on the home page — the same `isBrandSite ?
|
|
40
|
-
* header : content` split the logo-settings store getters/setter use. This is
|
|
41
|
-
* the single source of truth for model-level logo reads: initial load and
|
|
42
|
-
* history-restore both call it so the two paths can't drift. They previously
|
|
43
|
-
* hard-coded `=== brandPage`, which silently excluded brand-contact and read a
|
|
44
|
-
* stale header logo on undo.
|
|
45
|
-
*/
|
|
46
|
-
export declare const getLogoImageFromModel: (model: BrandPageModel) => LogoImageModel | undefined;
|
|
47
33
|
export declare const recalculateLogoContentDimensions: (pageData: any, editableLogoVariations: {
|
|
48
34
|
variationId: number;
|
|
49
35
|
width: number;
|
|
@@ -225,25 +225,6 @@ export const calculateOptimizedLogoDimensions = (logoData, currentWidth, current
|
|
|
225
225
|
}
|
|
226
226
|
return { width: currentWidth, height: currentHeight };
|
|
227
227
|
};
|
|
228
|
-
/**
|
|
229
|
-
* Resolves the "current" logo image from a brand-page MODEL (the raw,
|
|
230
|
-
* deserialized shape — not the live stores, whose contents are wrapped in
|
|
231
|
-
* `settings.content`).
|
|
232
|
-
*
|
|
233
|
-
* Brand-site keeps its logo in the page header; brand-page and brand-contact
|
|
234
|
-
* keep it as a logo CONTENT block on the home page — the same `isBrandSite ?
|
|
235
|
-
* header : content` split the logo-settings store getters/setter use. This is
|
|
236
|
-
* the single source of truth for model-level logo reads: initial load and
|
|
237
|
-
* history-restore both call it so the two paths can't drift. They previously
|
|
238
|
-
* hard-coded `=== brandPage`, which silently excluded brand-contact and read a
|
|
239
|
-
* stale header logo on undo.
|
|
240
|
-
*/
|
|
241
|
-
export const getLogoImageFromModel = (model) => {
|
|
242
|
-
if (model.brandPageType === BRAND_PAGE_TYPES.brandSite) {
|
|
243
|
-
return model.pageHeaderDesktop?.logoImage;
|
|
244
|
-
}
|
|
245
|
-
return model.pages?.[0]?.contents?.find(isLogoContent)?.logoImage;
|
|
246
|
-
};
|
|
247
228
|
export const recalculateLogoContentDimensions = async (pageData, editableLogoVariations, logoImage, isPrePurchase) => {
|
|
248
229
|
try {
|
|
249
230
|
let logoData;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as uuid from 'uuid';
|
|
2
1
|
import { getLogoVariationIndexFromLogoImageUrl, getLogoDraftTokenFromLogoImageUrl, safeGetLogoImageFromLogoImageUrl, } from '../logo.util';
|
|
3
2
|
import { DEFAULT_LETTER_SPACING, FOOTER_DISPLAY, NavigationDesktop, NavigationMobile, PageFooterDesktop, PageFooterMobile, PageHeaderDesktop, PageHeaderMobile, } from '../../';
|
|
4
3
|
import { ALIGN_CARD_CENTER_IMAGE, ALIGN_CARD_LEFT_IMAGE, ALIGN_CENTERED, ALIGN_LEFT_BIG_IMAGE, BIG_IMAGE, BRAND_PAGE_TYPES, DEFAULT_FONT_FAMILY_KEY, DEFAULT_LOGO_HEIGHT, DEFAULT_LOGO_WIDTH, DEFAULT_TEXT_ALIGN, FONT_FAMILY_CONFIGS, HEADER_DISPLAY, NAVIGATION_DISPLAY, LINE_HEIGHT_BODY, LINE_HEIGHT_HEADINGS, LINE_HEIGHT_TITLE, PAYMENT_OPTION_DISPLAY_TYPES, } from '../../';
|
|
@@ -26,7 +25,6 @@ export const applyTextContentTextToTextItemsMigration = (brandPageModel) => {
|
|
|
26
25
|
};
|
|
27
26
|
}
|
|
28
27
|
const textItem = {
|
|
29
|
-
id: uuid.v4(),
|
|
30
28
|
text: item.text,
|
|
31
29
|
textStyle,
|
|
32
30
|
};
|
|
@@ -20,7 +20,6 @@ import { migration14 } from './migration/migration-14';
|
|
|
20
20
|
import { migration15 } from './migration/migration-15';
|
|
21
21
|
import { migration16 } from './migration/migration-16';
|
|
22
22
|
import { migration17 } from './migration/migration-17';
|
|
23
|
-
import { migration18 } from './migration/migration-18';
|
|
24
23
|
const MIGRATION_TABLE = [
|
|
25
24
|
{
|
|
26
25
|
version: 1,
|
|
@@ -133,11 +132,6 @@ const MIGRATION_TABLE = [
|
|
|
133
132
|
runAlways: true,
|
|
134
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)',
|
|
135
134
|
},
|
|
136
|
-
{
|
|
137
|
-
version: 18,
|
|
138
|
-
migrateFn: migration18,
|
|
139
|
-
description: 'BP-5603: backfill stable item ids on all nested items (gallery/section/testimonial/text items, section + footer social links) — the item id is now non-nullable',
|
|
140
|
-
},
|
|
141
135
|
];
|
|
142
136
|
export const GetLatestModelVersion = () => Math.max(...MIGRATION_TABLE.map((x) => x.version));
|
|
143
137
|
export const migrateBrandPageModel = async (brandPageModel, options) => {
|
|
@@ -118,7 +118,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
118
118
|
content: TContent;
|
|
119
119
|
}>(payload: P): Promise<void>;
|
|
120
120
|
_captureTemplateSwitchIfEnabled(): void;
|
|
121
|
-
applyHistorySnapshot(snapshot: import("@brand-page/models").BrandPageModel, activePageId?: string, logoEditsStr?: string
|
|
121
|
+
applyHistorySnapshot(snapshot: import("@brand-page/models").BrandPageModel, activePageId?: string, logoEditsStr?: string): Promise<void>;
|
|
122
122
|
_syncLogoSettingsFromSnapshot(snapshot: import("@brand-page/models").BrandPageModel, logoEditsStr?: string): Promise<void>;
|
|
123
123
|
_navigateToActivePage(activePageId?: string): void;
|
|
124
124
|
_fallbackSidebarIfSelectedContentMissing(snapshot: import("@brand-page/models").BrandPageModel): void;
|
|
@@ -163,7 +163,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
163
163
|
content: TContent;
|
|
164
164
|
}>(payload: P): Promise<void>;
|
|
165
165
|
_captureTemplateSwitchIfEnabled(): void;
|
|
166
|
-
applyHistorySnapshot(snapshot: import("@brand-page").BrandPageModel, activePageId?: string, logoEditsStr?: string
|
|
166
|
+
applyHistorySnapshot(snapshot: import("@brand-page").BrandPageModel, activePageId?: string, logoEditsStr?: string): Promise<void>;
|
|
167
167
|
_syncLogoSettingsFromSnapshot(snapshot: import("@brand-page").BrandPageModel, logoEditsStr?: string): Promise<void>;
|
|
168
168
|
_navigateToActivePage(activePageId?: string): void;
|
|
169
169
|
_fallbackSidebarIfSelectedContentMissing(snapshot: import("@brand-page").BrandPageModel): void;
|
|
@@ -843,15 +843,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
843
843
|
pushMode(item: import("@shared/content-settings/store").ContentSettingsModeStackItem): void;
|
|
844
844
|
resetMode(): void;
|
|
845
845
|
updateItemValue(payload: import("../../../shared/content-settings/models").UpdateItemValuePayload<unknown>): void;
|
|
846
|
-
updateMultipleItemValues({ id, name, value,
|
|
847
|
-
updateTextStyleType({ id, name, value,
|
|
848
|
-
updateTextStyles({ id, name, value,
|
|
846
|
+
updateMultipleItemValues({ id, name, value, }: import("../../../shared/content-settings/models").UpdateMultipleItemValuesPayload<any>): void;
|
|
847
|
+
updateTextStyleType({ id, name, value, }: import("../../../shared/content-settings/models").UpdateMultipleItemValuesPayload<any>): void;
|
|
848
|
+
updateTextStyles({ id, name, value, }: import("../../../shared/content-settings/models").UpdateMultipleItemValuesPayload<any>): void;
|
|
849
849
|
getTextStyles({ id, name }: {
|
|
850
850
|
id: string;
|
|
851
851
|
name: string;
|
|
852
852
|
}): unknown;
|
|
853
|
-
updateTextItemTextStyleType({ id, name, value, index,
|
|
854
|
-
updateTextItemTextStyleTypeWithStyles({ id, name, value, index,
|
|
853
|
+
updateTextItemTextStyleType({ id, name, value, index, }: import("../../../shared/content-settings/models").UpdateMultipleItemValuesPayload<any>): void;
|
|
854
|
+
updateTextItemTextStyleTypeWithStyles({ id, name, value, index, }: import("../../../shared/content-settings/models").UpdateMultipleItemValuesPayload<any>): void;
|
|
855
855
|
_setActiveCategoryTab({ activeCategoryTab, }: {
|
|
856
856
|
activeCategoryTab: import("@brand-page-maker/models").ItemCategory;
|
|
857
857
|
}): void;
|
|
@@ -196,7 +196,7 @@ export default defineComponent({
|
|
|
196
196
|
this.brandPageMakerStore.setIsBrandPageLoaded(true);
|
|
197
197
|
// Capture baseline for undo/redo when the feature is active for this
|
|
198
198
|
// session — see useUndoRedoFlag.ts for the gate (LaunchDarkly flag +
|
|
199
|
-
// non-admin maker
|
|
199
|
+
// brand-site + non-admin maker).
|
|
200
200
|
if (useUndoRedoFlag().value) {
|
|
201
201
|
useHistoryStore().captureBaseline();
|
|
202
202
|
}
|
|
@@ -1281,7 +1281,6 @@ export const SampleImageGallery = () => {
|
|
|
1281
1281
|
const width = 300;
|
|
1282
1282
|
const height = 300;
|
|
1283
1283
|
imageGalleryContent.images.push({
|
|
1284
|
-
id: `gallery-item-${i}`,
|
|
1285
1284
|
width,
|
|
1286
1285
|
height,
|
|
1287
1286
|
imageUrl: `https://images.unsplash.com/photo-1659535915214-e7cbac112038?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMjQzOTV8MXwxfHNlYXJjaHw4fHxnYW1pbmd8ZW58MHx8fHwxNjY5MDc4ODE1&ixlib=rb-4.0.3&q=80&w=1080`,
|