@designcrowd/library.brand-page 5.18.5 → 5.18.6-ast-padding-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/src/{CreatedOnBrandCrowd-de-de-ciKpCAd9.js → CreatedOnBrandCrowd-de-de-CAtPZtwo.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-CZbTS1AZ.js → CreatedOnBrandCrowd-en-us-Dcx4yFkK.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-C8MExng5.js → CreatedOnBrandCrowd-es-es-DpodH0gD.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-CO0L9NK2.js → CreatedOnBrandCrowd-fr-ca-DZbMRJn-.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-CO0L9NK2.js → CreatedOnBrandCrowd-fr-fr-DZbMRJn-.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-zVDvBF2H.js → CreatedOnBrandCrowd-pt-br-C3gBveLk.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-zVDvBF2H.js → CreatedOnBrandCrowd-pt-pt-C3gBveLk.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-WrUSQdjf.js → CreatedOnDcom-de-de-DHNyyTV9.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-BqC9YtkL.js → CreatedOnDcom-en-us-BjqZ0Jmw.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-BzH32Oya.js → CreatedOnDcom-es-es-tiNjDJmH.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-D7TYfCW0.js → CreatedOnDcom-fr-ca-COUSI6w1.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-DVlyfBtb.js → CreatedOnDcom-fr-fr-c3UCfh9A.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-CSRB91ey.js → CreatedOnDcom-pt-br-U1jbo_g5.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-9KMj5gpc.js → CreatedOnDcom-pt-pt-BOW_n3bo.js} +1 -1
- package/lib/src/brand-page/components/contact-form/ContactForm.mixin.d.ts +4 -0
- package/lib/src/brand-page/components/contact-form/ContactForm.mixin.js +8 -4
- package/lib/src/brand-page/components/image-gallery/ImageGallery.mixin.d.ts +4 -0
- package/lib/src/brand-page/components/image-gallery/ImageGallery.mixin.js +4 -0
- package/lib/src/brand-page/components/mailing-list/MailingList.mixin.d.ts +4 -0
- package/lib/src/brand-page/components/mailing-list/MailingList.mixin.js +4 -1
- package/lib/src/brand-page/components/payment/request-payment/RequestPayment.mixin.d.ts +4 -0
- package/lib/src/brand-page/components/payment/request-payment/RequestPayment.mixin.js +4 -0
- package/lib/src/brand-page/components/payment/support-me/SupportMe.mixin.d.ts +4 -0
- package/lib/src/brand-page/components/payment/support-me/SupportMe.mixin.js +4 -1
- package/lib/src/brand-page/components/video/Video.mixin.d.ts +4 -0
- package/lib/src/brand-page/components/video/Video.mixin.js +4 -0
- package/lib/src/brand-page/constants/misc.constants.d.ts +30 -0
- package/lib/src/brand-page/constants/misc.constants.js +51 -0
- package/lib/src/brand-page/models/content.model.d.ts +2 -0
- package/lib/src/brand-page/utils/content-padding.util.d.ts +13 -0
- package/lib/src/brand-page/utils/content-padding.util.js +10 -0
- package/lib/src/brand-page/utils/index.d.ts +1 -0
- package/lib/src/brand-page/utils/index.js +1 -0
- package/lib/src/brand-page/utils/migration/migration-17.d.ts +2 -0
- package/lib/src/brand-page/utils/migration/migration-17.js +50 -0
- package/lib/src/brand-page/utils/migration.util.js +10 -0
- package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.d.ts +2 -7
- package/lib/src/brand-page-maker/components/admin-logo-settings/AdminLogoSettings.mixin.d.ts +2 -0
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +14 -7
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.js +0 -8
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMakerTemplateSettings.mixin.d.ts +2 -7
- package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.js +0 -1
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +16 -87
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.js +0 -5
- package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.d.ts +2 -7
- package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.d.ts +0 -3
- package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.js +0 -11
- package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +2 -7
- package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +2 -7
- package/lib/src/brand-page-maker/components/social-share/SocialShare.mixin.d.ts +2 -7
- package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +2 -7
- package/lib/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.js +0 -9
- package/lib/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.js +1 -20
- package/lib/src/brand-page-maker/composables/useEventTracker.d.ts +0 -20
- package/lib/src/brand-page-maker/composables/useEventTracker.js +0 -17
- package/lib/src/brand-page-maker/constants/config-settings-constant.js +37 -0
- package/lib/src/brand-page-maker/convertors/about-display-style.convertor.js +9 -1
- package/lib/src/brand-page-maker/convertors/banner-align-display-style.convertor.js +7 -1
- package/lib/src/brand-page-maker/convertors/contact-layout-style.convertor.js +6 -1
- package/lib/src/brand-page-maker/models/content-settings.js +36 -2
- package/lib/src/brand-page-maker/stores/ai-checkpoint/ai-checkpoint-store.d.ts +12 -0
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.d.ts +2 -41
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +5 -307
- package/lib/src/brand-page-maker/stores/logo-store/logo-store.d.ts +0 -1
- package/lib/src/brand-page-maker/stores/user/user-store.js +0 -1
- package/lib/src/bundled-translations-Chw0nsFv.js +175 -0
- package/lib/src/bundled-translations.de-DE-cqBv7atZ.js +175 -0
- package/lib/src/bundled-translations.es-ES-D9VXftl_.js +175 -0
- package/lib/src/bundled-translations.fr-CA-BYstWXcO.js +175 -0
- package/lib/src/bundled-translations.fr-FR-D1H1hJD4.js +175 -0
- package/lib/src/bundled-translations.pt-BR-DqNFuNHX.js +175 -0
- package/lib/src/bundled-translations.pt-PT-tOic0FfQ.js +175 -0
- package/lib/src/bundles/bundled-translations.de-DE.json +3 -3
- package/lib/src/bundles/bundled-translations.es-ES.json +3 -3
- package/lib/src/bundles/bundled-translations.fr-CA.json +3 -3
- package/lib/src/bundles/bundled-translations.fr-FR.json +3 -3
- package/lib/src/bundles/bundled-translations.json +3 -3
- package/lib/src/bundles/bundled-translations.pt-BR.json +3 -3
- package/lib/src/bundles/bundled-translations.pt-PT.json +3 -3
- package/lib/src/constants/ui.d.ts +0 -1
- package/lib/src/css/library.brand-page-brandCrowd.min.css +123 -136
- package/lib/src/css/library.brand-page-brandPage.min.css +124 -136
- package/lib/src/css/library.brand-page-designCom.min.css +123 -136
- package/lib/src/css/library.brand-page-preview.min.css +123 -136
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-BXbo_N88.js → lib-Bl7w5LQl.js} +28005 -28416
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +16 -87
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.js +0 -5
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.stories.js +0 -1
- package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +16 -23
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +12 -16
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +14 -7
- package/lib/src/shared/content-settings/components/draggable-item-list/DraggableItemList.mixin.d.ts +0 -3
- package/lib/src/shared/content-settings/components/draggable-item-list/DraggableItemList.mixin.js +2 -19
- package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.d.ts +12 -0
- package/lib/src/shared/content-settings/components/form-fields-field/FormFieldsField.mixin.js +8 -18
- package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +0 -64
- package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.js +0 -6
- package/lib/src/shared/content-settings/components/slider-field/SliderField.mixin.js +9 -0
- package/lib/src/shared/content-settings/store/content-settings-store.d.ts +12 -0
- package/lib/src/shared/logo-settings/components/EditLogoSettings.mixin.d.ts +0 -19
- package/lib/src/shared/logo-settings/components/EditLogoSettings.mixin.js +0 -11
- package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +2 -10
- package/lib/src/shared/logo-settings/store/editable-logo-store.d.ts +1 -5
- package/lib/src/shared/logo-settings/store/editable-logo-store.js +0 -31
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +18 -24
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +16 -10
- package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +2 -23
- package/lib/src/shared/side-bar/components/SideBarTabButton.mixin.d.ts +0 -16
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +2 -23
- package/lib/src/shared/template-settings/components/TemplatesSettings.mixin.d.ts +0 -16
- package/lib/src/utils/minify-brand-page-metadata.js +11 -1
- package/package.json +1 -1
- package/src/brand-page/components/about-section/AboutSection.vue +10 -4
- package/src/brand-page/components/banner-section/BannerSection.vue +11 -4
- package/src/brand-page/components/booking-section/BookingSection.vue +11 -3
- package/src/brand-page/components/contact-form/ContactForm.mixin.ts +12 -6
- package/src/brand-page/components/contact-form/ContactForm.vue +115 -118
- package/src/brand-page/components/image-gallery/ImageGallery.mixin.ts +5 -0
- package/src/brand-page/components/image-gallery/ImageGallery.vue +1 -1
- package/src/brand-page/components/mailing-list/MailingList.mixin.ts +8 -1
- package/src/brand-page/components/mailing-list/MailingList.vue +1 -1
- package/src/brand-page/components/map/Map.vue +5 -1
- package/src/brand-page/components/payment/request-payment/RequestPayment.mixin.ts +5 -0
- package/src/brand-page/components/payment/request-payment/RequestPayment.vue +1 -0
- package/src/brand-page/components/payment/support-me/SupportMe.mixin.ts +8 -1
- package/src/brand-page/components/payment/support-me/SupportMe.vue +1 -0
- package/src/brand-page/components/shop/Shop.vue +7 -2
- package/src/brand-page/components/social-links/SocialLinks.vue +7 -3
- package/src/brand-page/components/text/Text.vue +12 -5
- package/src/brand-page/components/text-media-section/TextMediaSection.vue +11 -3
- package/src/brand-page/components/video/Video.mixin.ts +5 -0
- package/src/brand-page/components/video/Video.vue +1 -1
- package/src/brand-page/constants/misc.constants.ts +60 -0
- package/src/brand-page/models/content.model.ts +2 -0
- package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +9 -3
- package/src/brand-page/utils/content-padding.util.test.ts +29 -0
- package/src/brand-page/utils/content-padding.util.ts +13 -0
- package/src/brand-page/utils/index.ts +1 -0
- package/src/brand-page/utils/migration/migration-17.ts +73 -0
- package/src/brand-page/utils/migration.util.test.ts +145 -0
- package/src/brand-page/utils/migration.util.ts +11 -0
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.ts +0 -9
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.vue +3 -2
- package/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.ts +0 -1
- package/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.ts +0 -5
- package/src/brand-page-maker/components/cookie-collection/CookieSettings.vue +17 -18
- package/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.ts +0 -13
- package/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.vue +3 -26
- package/src/brand-page-maker/components/quick-link-bar/i18n/quick-link-bar.de-DE.json +4 -6
- package/src/brand-page-maker/components/quick-link-bar/i18n/quick-link-bar.es-ES.json +4 -6
- package/src/brand-page-maker/components/quick-link-bar/i18n/quick-link-bar.fr-CA.json +4 -6
- package/src/brand-page-maker/components/quick-link-bar/i18n/quick-link-bar.fr-FR.json +4 -6
- package/src/brand-page-maker/components/quick-link-bar/i18n/quick-link-bar.json +1 -3
- package/src/brand-page-maker/components/quick-link-bar/i18n/quick-link-bar.pt-BR.json +4 -6
- package/src/brand-page-maker/components/quick-link-bar/i18n/quick-link-bar.pt-PT.json +4 -6
- package/src/brand-page-maker/components/save-contact/SaveContact.vue +19 -12
- package/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.ts +0 -10
- package/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.ts +1 -24
- package/src/brand-page-maker/composables/useEventTracker.ts +0 -29
- package/src/brand-page-maker/constants/config-settings-constant.ts +43 -0
- package/src/brand-page-maker/convertors/about-display-style.convertor.ts +10 -0
- package/src/brand-page-maker/convertors/banner-align-display-style.convertor.ts +8 -0
- package/src/brand-page-maker/convertors/contact-layout-style.convertor.test.ts +50 -0
- package/src/brand-page-maker/convertors/contact-layout-style.convertor.ts +8 -0
- package/src/brand-page-maker/models/content-settings.ts +38 -2
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.test.ts +0 -334
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +4 -371
- package/src/brand-page-maker/stores/logo-store/logo-store.ts +0 -5
- package/src/brand-page-maker/stores/user/user-store.ts +0 -1
- package/src/bundles/bundled-translations.de-DE.json +3 -3
- package/src/bundles/bundled-translations.es-ES.json +3 -3
- package/src/bundles/bundled-translations.fr-CA.json +3 -3
- package/src/bundles/bundled-translations.fr-FR.json +3 -3
- package/src/bundles/bundled-translations.json +3 -3
- package/src/bundles/bundled-translations.pt-BR.json +3 -3
- package/src/bundles/bundled-translations.pt-PT.json +3 -3
- package/src/constants/ui.ts +0 -1
- package/src/shared/content-settings/components/content-settings/ContentSettings.mixin.ts +0 -5
- package/src/shared/content-settings/components/content-settings/ContentSettings.stories.ts +0 -1
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.de-DE.json +2 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.es-ES.json +2 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-CA.json +2 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-FR.json +2 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.json +2 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-BR.json +2 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-PT.json +2 -0
- package/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.vue +1 -1
- package/src/shared/content-settings/components/draggable-item-list/DraggableItemList.mixin.ts +2 -19
- package/src/shared/content-settings/components/draggable-item-list/DraggableItemList.vue +1 -1
- package/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.vue +2 -2
- package/src/shared/content-settings/components/form-fields-field/FormFieldsField.mixin.ts +10 -26
- package/src/shared/content-settings/components/logo-selection-field/LogoSelection.vue +48 -63
- package/src/shared/content-settings/components/page-dropdown-field/PageDropdownField.vue +0 -4
- package/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.ts +0 -7
- package/src/shared/content-settings/components/slider-field/SliderField.mixin.ts +9 -0
- package/src/shared/content-settings/components/text-field/TextField.vue +0 -1
- package/src/shared/content-settings/components/text-image-field/TextImageField.vue +4 -33
- package/src/shared/logo-settings/components/EditLogoSettings.mixin.ts +0 -11
- package/src/shared/logo-settings/store/editable-logo-store.ts +1 -42
- package/src/utils/minify-brand-page-metadata.ts +11 -1
- package/lib/src/brand-page-maker/composables/useUndoRedoFlag.d.ts +0 -17
- package/lib/src/brand-page-maker/composables/useUndoRedoFlag.js +0 -25
- package/lib/src/brand-page-maker/stores/history/history-store.d.ts +0 -83
- package/lib/src/brand-page-maker/stores/history/history-store.js +0 -495
- package/lib/src/bundled-translations-D1q3rSEz.js +0 -175
- package/lib/src/bundled-translations.de-DE-BxqLLwbh.js +0 -175
- package/lib/src/bundled-translations.es-ES-uh249NlJ.js +0 -175
- package/lib/src/bundled-translations.fr-CA-BEQmv2fX.js +0 -175
- package/lib/src/bundled-translations.fr-FR-BnNuCojH.js +0 -175
- package/lib/src/bundled-translations.pt-BR-CJUOxVlq.js +0 -175
- package/lib/src/bundled-translations.pt-PT-Ds9cMEqK.js +0 -175
- package/lib/src/metadata-builder/builders/reorder-pages-builder.d.ts +0 -13
- package/lib/src/metadata-builder/builders/reorder-pages-builder.js +0 -49
- package/src/brand-page-maker/components/quick-link-bar/RedoButton.vue +0 -66
- package/src/brand-page-maker/components/quick-link-bar/UndoButton.vue +0 -66
- package/src/brand-page-maker/components/quick-link-bar/undo-redo-buttons.test.ts +0 -116
- package/src/brand-page-maker/composables/useUndoRedoFlag.ts +0 -30
- package/src/brand-page-maker/stores/history/history-store.test.ts +0 -1120
- package/src/brand-page-maker/stores/history/history-store.ts +0 -660
- package/src/metadata-builder/builders/reorder-pages-builder.ts +0 -80
|
@@ -36,6 +36,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
36
36
|
id: string;
|
|
37
37
|
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";
|
|
38
38
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
39
|
+
topPadding?: number | undefined;
|
|
40
|
+
bottomPadding?: number | undefined;
|
|
39
41
|
imageUrlOverride?: string | undefined;
|
|
40
42
|
imageUrlsOverride?: string | undefined;
|
|
41
43
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -85,6 +87,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
85
87
|
id: string;
|
|
86
88
|
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";
|
|
87
89
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
90
|
+
topPadding?: number | undefined;
|
|
91
|
+
bottomPadding?: number | undefined;
|
|
88
92
|
imageUrlOverride?: string | undefined;
|
|
89
93
|
imageUrlsOverride?: string | undefined;
|
|
90
94
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -134,6 +138,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
134
138
|
id: string;
|
|
135
139
|
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";
|
|
136
140
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
141
|
+
topPadding?: number | undefined;
|
|
142
|
+
bottomPadding?: number | undefined;
|
|
137
143
|
imageUrlOverride?: string | undefined;
|
|
138
144
|
imageUrlsOverride?: string | undefined;
|
|
139
145
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -183,6 +189,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
183
189
|
id: string;
|
|
184
190
|
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";
|
|
185
191
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
192
|
+
topPadding?: number | undefined;
|
|
193
|
+
bottomPadding?: number | undefined;
|
|
186
194
|
imageUrlOverride?: string | undefined;
|
|
187
195
|
imageUrlsOverride?: string | undefined;
|
|
188
196
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -232,6 +240,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
232
240
|
id: string;
|
|
233
241
|
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";
|
|
234
242
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
243
|
+
topPadding?: number | undefined;
|
|
244
|
+
bottomPadding?: number | undefined;
|
|
235
245
|
imageUrlOverride?: string | undefined;
|
|
236
246
|
imageUrlsOverride?: string | undefined;
|
|
237
247
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -281,6 +291,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
281
291
|
id: string;
|
|
282
292
|
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";
|
|
283
293
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
294
|
+
topPadding?: number | undefined;
|
|
295
|
+
bottomPadding?: number | undefined;
|
|
284
296
|
imageUrlOverride?: string | undefined;
|
|
285
297
|
imageUrlsOverride?: string | undefined;
|
|
286
298
|
avatarImageUrlOverride?: string | undefined;
|
package/lib/src/shared/content-settings/components/form-fields-field/FormFieldsField.mixin.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref
|
|
1
|
+
import { defineComponent, ref } from 'vue';
|
|
2
2
|
import { formFieldsTr } from '@src/composables/useTranslate';
|
|
3
3
|
export default defineComponent({
|
|
4
4
|
props: {
|
|
@@ -45,26 +45,16 @@ export default defineComponent({
|
|
|
45
45
|
type: 'phone',
|
|
46
46
|
},
|
|
47
47
|
];
|
|
48
|
-
const valueWithState = ref(props.value.map((field) => ({
|
|
49
|
-
field,
|
|
50
|
-
isCollapsed: true,
|
|
51
|
-
isTypeDropdownOpen: false,
|
|
52
|
-
})));
|
|
53
|
-
// Re-sync when the store-bound value changes externally (e.g. undo/redo
|
|
54
|
-
// via history-store). Preserve per-row UI flags (isCollapsed,
|
|
55
|
-
// isTypeDropdownOpen) by index so an undo doesn't snap rows back to
|
|
56
|
-
// collapsed state.
|
|
57
|
-
watch(() => props.value, (newVal) => {
|
|
58
|
-
valueWithState.value = newVal.map((field, index) => ({
|
|
59
|
-
field,
|
|
60
|
-
isCollapsed: valueWithState.value[index]?.isCollapsed ?? true,
|
|
61
|
-
isTypeDropdownOpen: valueWithState.value[index]?.isTypeDropdownOpen ?? false,
|
|
62
|
-
}));
|
|
63
|
-
});
|
|
64
48
|
return {
|
|
65
49
|
formFieldsTr,
|
|
66
50
|
typeList,
|
|
67
|
-
valueWithState
|
|
51
|
+
valueWithState: ref(props.value.map((field) => {
|
|
52
|
+
return {
|
|
53
|
+
field: field,
|
|
54
|
+
isCollapsed: true,
|
|
55
|
+
isTypeDropdownOpen: false,
|
|
56
|
+
};
|
|
57
|
+
})),
|
|
68
58
|
};
|
|
69
59
|
},
|
|
70
60
|
methods: {
|
|
@@ -483,70 +483,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
483
483
|
collapseAllSections(): void;
|
|
484
484
|
setPreviousSelectedDisplayStyle(viewport: string, displayStyle: string): void;
|
|
485
485
|
}>;
|
|
486
|
-
historyStore: import("pinia").Store<"history", Pick<{
|
|
487
|
-
entries: import("vue").ShallowRef<import("@brand-page-maker/stores/history/history-store").HistoryEntry[], import("@brand-page-maker/stores/history/history-store").HistoryEntry[]>;
|
|
488
|
-
currentIndex: import("vue").Ref<number, number>;
|
|
489
|
-
isApplyingSnapshot: import("vue").Ref<boolean, boolean>;
|
|
490
|
-
baselineCaptured: import("vue").Ref<boolean, boolean>;
|
|
491
|
-
canUndo: import("vue").ComputedRef<boolean>;
|
|
492
|
-
canRedo: import("vue").ComputedRef<boolean>;
|
|
493
|
-
captureBaseline: () => void;
|
|
494
|
-
capture: (args: {
|
|
495
|
-
source: "manual_edit" | "template_switch" | "ai_changeset" | "rich_text";
|
|
496
|
-
actor: "user" | "ai_builder";
|
|
497
|
-
label?: string | undefined;
|
|
498
|
-
}) => "committed" | "oversized" | "noop" | "skipped";
|
|
499
|
-
captureTemplateSwitch: (label?: string | undefined) => "committed" | "oversized" | "noop" | "skipped";
|
|
500
|
-
captureAiChangeset: (label?: string | undefined) => "committed" | "oversized" | "noop" | "skipped";
|
|
501
|
-
mergeNextMutation: () => void;
|
|
502
|
-
undo: () => Promise<void>;
|
|
503
|
-
redo: () => Promise<void>;
|
|
504
|
-
reset: () => void;
|
|
505
|
-
getCurrentSizeBytes: () => number;
|
|
506
|
-
getCurrentEntryCount: () => number;
|
|
507
|
-
}, "entries" | "currentIndex" | "isApplyingSnapshot" | "baselineCaptured">, Pick<{
|
|
508
|
-
entries: import("vue").ShallowRef<import("@brand-page-maker/stores/history/history-store").HistoryEntry[], import("@brand-page-maker/stores/history/history-store").HistoryEntry[]>;
|
|
509
|
-
currentIndex: import("vue").Ref<number, number>;
|
|
510
|
-
isApplyingSnapshot: import("vue").Ref<boolean, boolean>;
|
|
511
|
-
baselineCaptured: import("vue").Ref<boolean, boolean>;
|
|
512
|
-
canUndo: import("vue").ComputedRef<boolean>;
|
|
513
|
-
canRedo: import("vue").ComputedRef<boolean>;
|
|
514
|
-
captureBaseline: () => void;
|
|
515
|
-
capture: (args: {
|
|
516
|
-
source: "manual_edit" | "template_switch" | "ai_changeset" | "rich_text";
|
|
517
|
-
actor: "user" | "ai_builder";
|
|
518
|
-
label?: string | undefined;
|
|
519
|
-
}) => "committed" | "oversized" | "noop" | "skipped";
|
|
520
|
-
captureTemplateSwitch: (label?: string | undefined) => "committed" | "oversized" | "noop" | "skipped";
|
|
521
|
-
captureAiChangeset: (label?: string | undefined) => "committed" | "oversized" | "noop" | "skipped";
|
|
522
|
-
mergeNextMutation: () => void;
|
|
523
|
-
undo: () => Promise<void>;
|
|
524
|
-
redo: () => Promise<void>;
|
|
525
|
-
reset: () => void;
|
|
526
|
-
getCurrentSizeBytes: () => number;
|
|
527
|
-
getCurrentEntryCount: () => number;
|
|
528
|
-
}, "canUndo" | "canRedo">, Pick<{
|
|
529
|
-
entries: import("vue").ShallowRef<import("@brand-page-maker/stores/history/history-store").HistoryEntry[], import("@brand-page-maker/stores/history/history-store").HistoryEntry[]>;
|
|
530
|
-
currentIndex: import("vue").Ref<number, number>;
|
|
531
|
-
isApplyingSnapshot: import("vue").Ref<boolean, boolean>;
|
|
532
|
-
baselineCaptured: import("vue").Ref<boolean, boolean>;
|
|
533
|
-
canUndo: import("vue").ComputedRef<boolean>;
|
|
534
|
-
canRedo: import("vue").ComputedRef<boolean>;
|
|
535
|
-
captureBaseline: () => void;
|
|
536
|
-
capture: (args: {
|
|
537
|
-
source: "manual_edit" | "template_switch" | "ai_changeset" | "rich_text";
|
|
538
|
-
actor: "user" | "ai_builder";
|
|
539
|
-
label?: string | undefined;
|
|
540
|
-
}) => "committed" | "oversized" | "noop" | "skipped";
|
|
541
|
-
captureTemplateSwitch: (label?: string | undefined) => "committed" | "oversized" | "noop" | "skipped";
|
|
542
|
-
captureAiChangeset: (label?: string | undefined) => "committed" | "oversized" | "noop" | "skipped";
|
|
543
|
-
mergeNextMutation: () => void;
|
|
544
|
-
undo: () => Promise<void>;
|
|
545
|
-
redo: () => Promise<void>;
|
|
546
|
-
reset: () => void;
|
|
547
|
-
getCurrentSizeBytes: () => number;
|
|
548
|
-
getCurrentEntryCount: () => number;
|
|
549
|
-
}, "reset" | "undo" | "redo" | "captureBaseline" | "capture" | "captureTemplateSwitch" | "captureAiChangeset" | "mergeNextMutation" | "getCurrentSizeBytes" | "getCurrentEntryCount">>;
|
|
550
486
|
}, {
|
|
551
487
|
selectedPaymentConfig: BrandPagePaymentConfig | undefined;
|
|
552
488
|
isCurrencyUpdating: boolean;
|
package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.js
CHANGED
|
@@ -4,7 +4,6 @@ import { useShopConfigStore } from '@shared/ecommerce-settings/store/shop-settin
|
|
|
4
4
|
import { paymentConfigTr } from '@src/composables/useTranslate';
|
|
5
5
|
import brandPageClient from '../../../../clients/brand-page-client';
|
|
6
6
|
import { useUiPageSettingsStore } from '@shared/page-settings/store';
|
|
7
|
-
import { useHistoryStore } from '@brand-page-maker/stores/history/history-store';
|
|
8
7
|
export default defineComponent({
|
|
9
8
|
props: {
|
|
10
9
|
id: {
|
|
@@ -30,7 +29,6 @@ export default defineComponent({
|
|
|
30
29
|
const uiPageSettingsStore = useUiPageSettingsStore();
|
|
31
30
|
const eventManagerStore = useEventManagerStore();
|
|
32
31
|
const shopConfigStore = useShopConfigStore();
|
|
33
|
-
const historyStore = useHistoryStore();
|
|
34
32
|
return {
|
|
35
33
|
brandPageToken: computed(() => brandPageContainerStore.brandPageToken),
|
|
36
34
|
isPaymentConfigSetupVisible: computed(() => !brandPageContainerStore.isPrePurchase),
|
|
@@ -38,7 +36,6 @@ export default defineComponent({
|
|
|
38
36
|
eventManagerStore,
|
|
39
37
|
shopConfigStore,
|
|
40
38
|
uiPageSettingsStore,
|
|
41
|
-
historyStore,
|
|
42
39
|
};
|
|
43
40
|
},
|
|
44
41
|
emits: ['update:modelValue'],
|
|
@@ -102,9 +99,6 @@ export default defineComponent({
|
|
|
102
99
|
name: this.name,
|
|
103
100
|
value,
|
|
104
101
|
};
|
|
105
|
-
// Lazy paymentConfig hydration — fold into current head instead
|
|
106
|
-
// of pushing a phantom entry.
|
|
107
|
-
this.historyStore.mergeNextMutation();
|
|
108
102
|
this.$emit('update:modelValue', payload);
|
|
109
103
|
}
|
|
110
104
|
},
|
|
@@ -39,6 +39,15 @@ export default defineComponent({
|
|
|
39
39
|
sliderValue: value,
|
|
40
40
|
};
|
|
41
41
|
},
|
|
42
|
+
watch: {
|
|
43
|
+
// The value can change outside the slider (e.g. a layout switch
|
|
44
|
+
// re-applying default padding, or undo) — keep the display in sync.
|
|
45
|
+
value(newValue) {
|
|
46
|
+
this.sliderValue = this.valueConvertor
|
|
47
|
+
? this.valueConvertor.convert(newValue)
|
|
48
|
+
: newValue;
|
|
49
|
+
},
|
|
50
|
+
},
|
|
42
51
|
computed: {
|
|
43
52
|
innerMinLength() {
|
|
44
53
|
return this.minLength ?? 0;
|
|
@@ -51,6 +51,8 @@ export declare const useUiContentSettingsStore: import("pinia").StoreDefinition<
|
|
|
51
51
|
id: string;
|
|
52
52
|
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";
|
|
53
53
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
54
|
+
topPadding?: number | undefined;
|
|
55
|
+
bottomPadding?: number | undefined;
|
|
54
56
|
imageUrlOverride?: string | undefined;
|
|
55
57
|
imageUrlsOverride?: string | undefined;
|
|
56
58
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -100,6 +102,8 @@ export declare const useUiContentSettingsStore: import("pinia").StoreDefinition<
|
|
|
100
102
|
id: string;
|
|
101
103
|
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";
|
|
102
104
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
105
|
+
topPadding?: number | undefined;
|
|
106
|
+
bottomPadding?: number | undefined;
|
|
103
107
|
imageUrlOverride?: string | undefined;
|
|
104
108
|
imageUrlsOverride?: string | undefined;
|
|
105
109
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -149,6 +153,8 @@ export declare const useUiContentSettingsStore: import("pinia").StoreDefinition<
|
|
|
149
153
|
id: string;
|
|
150
154
|
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";
|
|
151
155
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
156
|
+
topPadding?: number | undefined;
|
|
157
|
+
bottomPadding?: number | undefined;
|
|
152
158
|
imageUrlOverride?: string | undefined;
|
|
153
159
|
imageUrlsOverride?: string | undefined;
|
|
154
160
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -198,6 +204,8 @@ export declare const useUiContentSettingsStore: import("pinia").StoreDefinition<
|
|
|
198
204
|
id: string;
|
|
199
205
|
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";
|
|
200
206
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
207
|
+
topPadding?: number | undefined;
|
|
208
|
+
bottomPadding?: number | undefined;
|
|
201
209
|
imageUrlOverride?: string | undefined;
|
|
202
210
|
imageUrlsOverride?: string | undefined;
|
|
203
211
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -247,6 +255,8 @@ export declare const useUiContentSettingsStore: import("pinia").StoreDefinition<
|
|
|
247
255
|
id: string;
|
|
248
256
|
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";
|
|
249
257
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
258
|
+
topPadding?: number | undefined;
|
|
259
|
+
bottomPadding?: number | undefined;
|
|
250
260
|
imageUrlOverride?: string | undefined;
|
|
251
261
|
imageUrlsOverride?: string | undefined;
|
|
252
262
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -296,6 +306,8 @@ export declare const useUiContentSettingsStore: import("pinia").StoreDefinition<
|
|
|
296
306
|
id: string;
|
|
297
307
|
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
308
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
309
|
+
topPadding?: number | undefined;
|
|
310
|
+
bottomPadding?: number | undefined;
|
|
299
311
|
imageUrlOverride?: string | undefined;
|
|
300
312
|
imageUrlsOverride?: string | undefined;
|
|
301
313
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -93,7 +93,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
93
93
|
logoTemplateMetadata: string;
|
|
94
94
|
isLogoDraftSaved: boolean;
|
|
95
95
|
isTextOnlyLogo: boolean;
|
|
96
|
-
variationsByDraftToken: Record<string, import("../store/editable-logo-store").EditableLogoVariation[]>;
|
|
97
96
|
} & import("pinia").PiniaCustomStateProperties<import("../store/editable-logo-store").EditableLogoState>) => () => string | undefined;
|
|
98
97
|
}, {
|
|
99
98
|
setStateAsync(payload: {
|
|
@@ -111,8 +110,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
111
110
|
getEditableLogoVariationByVariationId(id: number): any;
|
|
112
111
|
getEditableLogoVariationByBase64(base64: string): any;
|
|
113
112
|
updateEditableLogoImageUrlAsync(defaultPrimaryText?: string | undefined, overrideLogoVariation?: number | undefined, layout?: string | undefined): Promise<void>;
|
|
114
|
-
stampLogoBase64IntoBrandPageData(overrideLogoVariation?: number | undefined): void;
|
|
115
|
-
restoreVariationsForDraftToken(logoDraftToken: string): boolean;
|
|
116
113
|
updateMetadataAsync(defaultPrimaryText?: string | undefined, resetLogoTemplateMetadata?: boolean, layout?: string | undefined): Promise<void>;
|
|
117
114
|
updateEditableLogoImageByVariationAsync(editableLogoVariation: import("../store/editable-logo-store").EditableLogoVariation, defaultPrimaryText?: string | undefined, layout?: string | undefined): Promise<import("../../../clients/fabric-render-client").ModifyLogoDataResponse | null>;
|
|
118
115
|
getDraftMetadata(logoDraftToken: string): string | undefined;
|
|
@@ -250,22 +247,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
250
247
|
}>;
|
|
251
248
|
eventTracker: {
|
|
252
249
|
sendShippingToggleEvent: (isEnabled: boolean) => void;
|
|
253
|
-
sendUndoEvent: (props: {
|
|
254
|
-
entries_count: number;
|
|
255
|
-
actor: string | undefined;
|
|
256
|
-
}) => void;
|
|
257
|
-
sendRedoEvent: (props: {
|
|
258
|
-
entries_count: number;
|
|
259
|
-
actor: string | undefined;
|
|
260
|
-
}) => void;
|
|
261
|
-
sendHistoryCappedEvent: (props: {
|
|
262
|
-
entries_count: number;
|
|
263
|
-
size_bytes: number;
|
|
264
|
-
}) => void;
|
|
265
|
-
sendHistoryOversizedEvent: (props: {
|
|
266
|
-
attempted_bytes: number;
|
|
267
|
-
source: string;
|
|
268
|
-
}) => void;
|
|
269
250
|
sendSaveContactEvent: () => void;
|
|
270
251
|
sendStartForFreeEvent: () => void;
|
|
271
252
|
sendFooterLinkClickEvent: (linkType: "watermark_logo" | "create_your_website") => void;
|
|
@@ -65,17 +65,6 @@ export default defineComponent({
|
|
|
65
65
|
return 'tw-font-bold tw-text-xs';
|
|
66
66
|
},
|
|
67
67
|
},
|
|
68
|
-
watch: {
|
|
69
|
-
// Keeps the design/upload tab in sync with `enableEditMode` whenever it
|
|
70
|
-
// flips outside the user's tab clicks — undo/redo restoring a BYO upload
|
|
71
|
-
// (mode → false) or a designed logo (mode → true). User clicks within
|
|
72
|
-
// the same mode don't change `enableEditMode` and don't trigger this.
|
|
73
|
-
showEditLogoSetting(enabled) {
|
|
74
|
-
this.selectedTab = enabled
|
|
75
|
-
? this.tabsWithTranslations[0]
|
|
76
|
-
: this.tabsWithTranslations[1];
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
68
|
methods: {
|
|
80
69
|
disableTextToggle(currentTextEnabled) {
|
|
81
70
|
if (!this.isTextOnlyLogo || !currentTextEnabled) {
|
|
@@ -124,21 +124,16 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
124
124
|
hideChangeTemplateConfirmModal(): void;
|
|
125
125
|
onBackgroundChanged(): void;
|
|
126
126
|
onChangeTemplateConfirmModalCancel(): void;
|
|
127
|
-
onChangeTemplateConfirmModalConfirm():
|
|
127
|
+
onChangeTemplateConfirmModalConfirm(): void;
|
|
128
128
|
onContentChanged(): void;
|
|
129
129
|
onStyleChanged(): void;
|
|
130
|
-
onTemplateSelected(payload: import("@brand-page-maker/stores").OnTemplateSelectedPayload):
|
|
130
|
+
onTemplateSelected(payload: import("@brand-page-maker/stores").OnTemplateSelectedPayload): void;
|
|
131
131
|
setSelectedTabName(payload: any): void;
|
|
132
132
|
showNextNotificationMessage(): Promise<void>;
|
|
133
133
|
updateContent<TContent extends import("../../../brand-page").Content, P extends {
|
|
134
134
|
id: string;
|
|
135
135
|
content: TContent;
|
|
136
136
|
}>(payload: P): Promise<void>;
|
|
137
|
-
_captureTemplateSwitchIfEnabled(): void;
|
|
138
|
-
applyHistorySnapshot(snapshot: import("../../../brand-page").BrandPageModel, activePageId?: string | undefined, logoEditsStr?: string | undefined): Promise<void>;
|
|
139
|
-
_syncLogoSettingsFromSnapshot(snapshot: import("../../../brand-page").BrandPageModel, logoEditsStr?: string | undefined): Promise<void>;
|
|
140
|
-
_navigateToActivePage(activePageId?: string | undefined): void;
|
|
141
|
-
_fallbackSidebarIfSelectedContentMissing(snapshot: import("../../../brand-page").BrandPageModel): void;
|
|
142
137
|
export(): import("../../../brand-page").BrandPageModel;
|
|
143
138
|
setBrandPageType({ brandPageType }: {
|
|
144
139
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
@@ -282,7 +277,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
282
277
|
logoTemplateMetadata: string;
|
|
283
278
|
isLogoDraftSaved: boolean;
|
|
284
279
|
isTextOnlyLogo: boolean;
|
|
285
|
-
variationsByDraftToken: Record<string, import("../store").EditableLogoVariation[]>;
|
|
286
280
|
} & import("pinia").PiniaCustomStateProperties<import("../store").EditableLogoState>) => () => string | undefined;
|
|
287
281
|
}, {
|
|
288
282
|
setStateAsync(payload: {
|
|
@@ -300,8 +294,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
300
294
|
getEditableLogoVariationByVariationId(id: number): any;
|
|
301
295
|
getEditableLogoVariationByBase64(base64: string): any;
|
|
302
296
|
updateEditableLogoImageUrlAsync(defaultPrimaryText?: string | undefined, overrideLogoVariation?: number | undefined, layout?: string | undefined): Promise<void>;
|
|
303
|
-
stampLogoBase64IntoBrandPageData(overrideLogoVariation?: number | undefined): void;
|
|
304
|
-
restoreVariationsForDraftToken(logoDraftToken: string): boolean;
|
|
305
297
|
updateMetadataAsync(defaultPrimaryText?: string | undefined, resetLogoTemplateMetadata?: boolean, layout?: string | undefined): Promise<void>;
|
|
306
298
|
updateEditableLogoImageByVariationAsync(editableLogoVariation: import("../store").EditableLogoVariation, defaultPrimaryText?: string | undefined, layout?: string | undefined): Promise<import("../../../clients/fabric-render-client").ModifyLogoDataResponse | null>;
|
|
307
299
|
getDraftMetadata(logoDraftToken: string): string | undefined;
|
|
@@ -74,9 +74,8 @@ export interface EditableLogoState {
|
|
|
74
74
|
logoTemplateMetadata: string;
|
|
75
75
|
isLogoDraftSaved: boolean;
|
|
76
76
|
isTextOnlyLogo: boolean;
|
|
77
|
-
variationsByDraftToken: Record<string, EditableLogoVariation[]>;
|
|
78
77
|
}
|
|
79
|
-
export type SetStateAsyncPayload = Omit<EditableLogoState, 'enableEditMode' | 'editableLogoVariations'
|
|
78
|
+
export type SetStateAsyncPayload = Omit<EditableLogoState, 'enableEditMode' | 'editableLogoVariations'>;
|
|
80
79
|
export declare const useUiEditableLogoStore: import("pinia").StoreDefinition<"uiEditableLogo", EditableLogoState, {
|
|
81
80
|
getLogoPrimaryText: (state: {
|
|
82
81
|
enableEditMode: boolean;
|
|
@@ -168,7 +167,6 @@ export declare const useUiEditableLogoStore: import("pinia").StoreDefinition<"ui
|
|
|
168
167
|
logoTemplateMetadata: string;
|
|
169
168
|
isLogoDraftSaved: boolean;
|
|
170
169
|
isTextOnlyLogo: boolean;
|
|
171
|
-
variationsByDraftToken: Record<string, EditableLogoVariation[]>;
|
|
172
170
|
} & import("pinia").PiniaCustomStateProperties<EditableLogoState>) => () => string | undefined;
|
|
173
171
|
}, {
|
|
174
172
|
setStateAsync(payload: {
|
|
@@ -186,8 +184,6 @@ export declare const useUiEditableLogoStore: import("pinia").StoreDefinition<"ui
|
|
|
186
184
|
getEditableLogoVariationByVariationId(id: number): any;
|
|
187
185
|
getEditableLogoVariationByBase64(base64: string): any;
|
|
188
186
|
updateEditableLogoImageUrlAsync(defaultPrimaryText?: string, overrideLogoVariation?: number | undefined, layout?: string): Promise<void>;
|
|
189
|
-
stampLogoBase64IntoBrandPageData(overrideLogoVariation?: number): void;
|
|
190
|
-
restoreVariationsForDraftToken(logoDraftToken: string): boolean;
|
|
191
187
|
updateMetadataAsync(defaultPrimaryText?: string, resetLogoTemplateMetadata?: boolean, layout?: string): Promise<void>;
|
|
192
188
|
updateEditableLogoImageByVariationAsync(editableLogoVariation: EditableLogoVariation, defaultPrimaryText?: string, layout?: string): Promise<ModifyLogoDataResponse | null>;
|
|
193
189
|
getDraftMetadata(logoDraftToken: string): string | undefined;
|
|
@@ -74,7 +74,6 @@ export const useUiEditableLogoStore = defineStore('uiEditableLogo', {
|
|
|
74
74
|
},
|
|
75
75
|
makerFonts: [],
|
|
76
76
|
isLogoDraftSaved: false,
|
|
77
|
-
variationsByDraftToken: {},
|
|
78
77
|
}),
|
|
79
78
|
actions: {
|
|
80
79
|
async setStateAsync(payload) {
|
|
@@ -218,17 +217,6 @@ export const useUiEditableLogoStore = defineStore('uiEditableLogo', {
|
|
|
218
217
|
async updateEditableLogoImageUrlAsync(defaultPrimaryText, overrideLogoVariation, layout) {
|
|
219
218
|
const tasks = this.editableLogoVariations.map((x) => this.updateEditableLogoImageByVariationAsync(x, defaultPrimaryText, layout));
|
|
220
219
|
await Promise.all(tasks);
|
|
221
|
-
this.stampLogoBase64IntoBrandPageData(overrideLogoVariation);
|
|
222
|
-
// Cache per draft token so BYO undo can restore without re-rendering.
|
|
223
|
-
if (this.logoDraftToken) {
|
|
224
|
-
this.variationsByDraftToken[this.logoDraftToken] =
|
|
225
|
-
this.editableLogoVariations.map((v) => ({ ...v }));
|
|
226
|
-
}
|
|
227
|
-
},
|
|
228
|
-
// Stamp editableLogoVariations[*].base64 across header/footer + every
|
|
229
|
-
// LogoContent. Called by the live edit path post-render, and by
|
|
230
|
-
// undo/redo to repopulate the stripped logoImageBase64Url fields.
|
|
231
|
-
stampLogoBase64IntoBrandPageData(overrideLogoVariation) {
|
|
232
220
|
const pageSettingStore = useUiPageSettingsStore();
|
|
233
221
|
[PAGE_SECTIONS.header, PAGE_SECTIONS.footer].forEach((section) => {
|
|
234
222
|
[VIEWPORTS.desktop, VIEWPORTS.mobile].forEach((viewport) => {
|
|
@@ -255,15 +243,6 @@ export const useUiEditableLogoStore = defineStore('uiEditableLogo', {
|
|
|
255
243
|
});
|
|
256
244
|
});
|
|
257
245
|
},
|
|
258
|
-
// Restore variations grid for a draft token from the per-token cache.
|
|
259
|
-
// Returns true on cache hit.
|
|
260
|
-
restoreVariationsForDraftToken(logoDraftToken) {
|
|
261
|
-
const cached = this.variationsByDraftToken[logoDraftToken];
|
|
262
|
-
if (!cached)
|
|
263
|
-
return false;
|
|
264
|
-
this.editableLogoVariations = cached.map((v) => ({ ...v }));
|
|
265
|
-
return true;
|
|
266
|
-
},
|
|
267
246
|
async updateMetadataAsync(defaultPrimaryText, resetLogoTemplateMetadata = false, layout) {
|
|
268
247
|
const result = await this.postEditableLogoRequestAsync({
|
|
269
248
|
returnJson: true,
|
|
@@ -306,13 +285,6 @@ export const useUiEditableLogoStore = defineStore('uiEditableLogo', {
|
|
|
306
285
|
const logoDraft = logoStore.getLogoDraftAssetByToken(this.logoDraftToken);
|
|
307
286
|
if (logoDraft) {
|
|
308
287
|
logoDraft.metadata = metadata;
|
|
309
|
-
// Refresh the template-asset stamp in case the active asset has
|
|
310
|
-
// changed since this draft was first registered (e.g. successive
|
|
311
|
-
// BYO uploads that share an existing draft token would otherwise
|
|
312
|
-
// keep pointing at an older template).
|
|
313
|
-
if (logoStore.logoTemplateAsset) {
|
|
314
|
-
logoDraft.templateAsset = { ...logoStore.logoTemplateAsset };
|
|
315
|
-
}
|
|
316
288
|
}
|
|
317
289
|
else {
|
|
318
290
|
logoStore.addLogoDraftAsset({
|
|
@@ -321,9 +293,6 @@ export const useUiEditableLogoStore = defineStore('uiEditableLogo', {
|
|
|
321
293
|
metadata,
|
|
322
294
|
tick: Date.now(),
|
|
323
295
|
isByo: logoStore.logoTemplateAsset?.isByo || false,
|
|
324
|
-
templateAsset: logoStore.logoTemplateAsset
|
|
325
|
-
? { ...logoStore.logoTemplateAsset }
|
|
326
|
-
: undefined,
|
|
327
296
|
},
|
|
328
297
|
});
|
|
329
298
|
}
|
|
@@ -21,6 +21,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
21
21
|
id: string;
|
|
22
22
|
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";
|
|
23
23
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
24
|
+
topPadding?: number | undefined;
|
|
25
|
+
bottomPadding?: number | undefined;
|
|
24
26
|
imageUrlOverride?: string | undefined;
|
|
25
27
|
imageUrlsOverride?: string | undefined;
|
|
26
28
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -49,6 +51,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
49
51
|
id: string;
|
|
50
52
|
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";
|
|
51
53
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
54
|
+
topPadding?: number | undefined;
|
|
55
|
+
bottomPadding?: number | undefined;
|
|
52
56
|
imageUrlOverride?: string | undefined;
|
|
53
57
|
imageUrlsOverride?: string | undefined;
|
|
54
58
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -3124,7 +3128,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
3124
3128
|
canUseGettyVideos: boolean;
|
|
3125
3129
|
canUseGoogleAdsense: boolean;
|
|
3126
3130
|
googleAdsenseEnabled: boolean;
|
|
3127
|
-
canUseUndoRedo: boolean;
|
|
3128
3131
|
}>;
|
|
3129
3132
|
isAdmin: import("vue").ComputedRef<boolean>;
|
|
3130
3133
|
isBrandSite: import("vue").ComputedRef<boolean>;
|
|
@@ -3836,21 +3839,16 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
3836
3839
|
hideChangeTemplateConfirmModal(): void;
|
|
3837
3840
|
onBackgroundChanged(): void;
|
|
3838
3841
|
onChangeTemplateConfirmModalCancel(): void;
|
|
3839
|
-
onChangeTemplateConfirmModalConfirm():
|
|
3842
|
+
onChangeTemplateConfirmModalConfirm(): void;
|
|
3840
3843
|
onContentChanged(): void;
|
|
3841
3844
|
onStyleChanged(): void;
|
|
3842
|
-
onTemplateSelected(payload: import("@brand-page-maker/stores").OnTemplateSelectedPayload):
|
|
3845
|
+
onTemplateSelected(payload: import("@brand-page-maker/stores").OnTemplateSelectedPayload): void;
|
|
3843
3846
|
setSelectedTabName(payload: any): void;
|
|
3844
3847
|
showNextNotificationMessage(): Promise<void>;
|
|
3845
3848
|
updateContent<TContent extends Content, P extends {
|
|
3846
3849
|
id: string;
|
|
3847
3850
|
content: TContent;
|
|
3848
3851
|
}>(payload: P): Promise<void>;
|
|
3849
|
-
_captureTemplateSwitchIfEnabled(): void;
|
|
3850
|
-
applyHistorySnapshot(snapshot: import("@brand-page").BrandPageModel, activePageId?: string | undefined, logoEditsStr?: string | undefined): Promise<void>;
|
|
3851
|
-
_syncLogoSettingsFromSnapshot(snapshot: import("@brand-page").BrandPageModel, logoEditsStr?: string | undefined): Promise<void>;
|
|
3852
|
-
_navigateToActivePage(activePageId?: string | undefined): void;
|
|
3853
|
-
_fallbackSidebarIfSelectedContentMissing(snapshot: import("@brand-page").BrandPageModel): void;
|
|
3854
3852
|
export(): import("@brand-page").BrandPageModel;
|
|
3855
3853
|
setBrandPageType({ brandPageType }: {
|
|
3856
3854
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
@@ -4054,6 +4052,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
4054
4052
|
id: string;
|
|
4055
4053
|
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";
|
|
4056
4054
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
4055
|
+
topPadding?: number | undefined;
|
|
4056
|
+
bottomPadding?: number | undefined;
|
|
4057
4057
|
imageUrlOverride?: string | undefined;
|
|
4058
4058
|
imageUrlsOverride?: string | undefined;
|
|
4059
4059
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -4103,6 +4103,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
4103
4103
|
id: string;
|
|
4104
4104
|
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";
|
|
4105
4105
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
4106
|
+
topPadding?: number | undefined;
|
|
4107
|
+
bottomPadding?: number | undefined;
|
|
4106
4108
|
imageUrlOverride?: string | undefined;
|
|
4107
4109
|
imageUrlsOverride?: string | undefined;
|
|
4108
4110
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -4152,6 +4154,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
4152
4154
|
id: string;
|
|
4153
4155
|
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";
|
|
4154
4156
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
4157
|
+
topPadding?: number | undefined;
|
|
4158
|
+
bottomPadding?: number | undefined;
|
|
4155
4159
|
imageUrlOverride?: string | undefined;
|
|
4156
4160
|
imageUrlsOverride?: string | undefined;
|
|
4157
4161
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -4201,6 +4205,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
4201
4205
|
id: string;
|
|
4202
4206
|
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";
|
|
4203
4207
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
4208
|
+
topPadding?: number | undefined;
|
|
4209
|
+
bottomPadding?: number | undefined;
|
|
4204
4210
|
imageUrlOverride?: string | undefined;
|
|
4205
4211
|
imageUrlsOverride?: string | undefined;
|
|
4206
4212
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -4250,6 +4256,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
4250
4256
|
id: string;
|
|
4251
4257
|
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";
|
|
4252
4258
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
4259
|
+
topPadding?: number | undefined;
|
|
4260
|
+
bottomPadding?: number | undefined;
|
|
4253
4261
|
imageUrlOverride?: string | undefined;
|
|
4254
4262
|
imageUrlsOverride?: string | undefined;
|
|
4255
4263
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -4299,6 +4307,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
4299
4307
|
id: string;
|
|
4300
4308
|
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";
|
|
4301
4309
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
4310
|
+
topPadding?: number | undefined;
|
|
4311
|
+
bottomPadding?: number | undefined;
|
|
4302
4312
|
imageUrlOverride?: string | undefined;
|
|
4303
4313
|
imageUrlsOverride?: string | undefined;
|
|
4304
4314
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -4793,22 +4803,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
4793
4803
|
onDraggingEnd: (ev?: any, routeId?: string, previousParentRouteId?: string) => void;
|
|
4794
4804
|
eventTracker: {
|
|
4795
4805
|
sendShippingToggleEvent: (isEnabled: boolean) => void;
|
|
4796
|
-
sendUndoEvent: (props: {
|
|
4797
|
-
entries_count: number;
|
|
4798
|
-
actor: string | undefined;
|
|
4799
|
-
}) => void;
|
|
4800
|
-
sendRedoEvent: (props: {
|
|
4801
|
-
entries_count: number;
|
|
4802
|
-
actor: string | undefined;
|
|
4803
|
-
}) => void;
|
|
4804
|
-
sendHistoryCappedEvent: (props: {
|
|
4805
|
-
entries_count: number;
|
|
4806
|
-
size_bytes: number;
|
|
4807
|
-
}) => void;
|
|
4808
|
-
sendHistoryOversizedEvent: (props: {
|
|
4809
|
-
attempted_bytes: number;
|
|
4810
|
-
source: string;
|
|
4811
|
-
}) => void;
|
|
4812
4806
|
sendSaveContactEvent: () => void;
|
|
4813
4807
|
sendStartForFreeEvent: () => void;
|
|
4814
4808
|
sendFooterLinkClickEvent: (linkType: "watermark_logo" | "create_your_website") => void;
|