@designcrowd/library.brand-page 5.16.45 → 5.16.47-alias-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-C7sXkIBb.js → CreatedOnBrandCrowd-de-de-DsUAZdDZ.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-DhtnVceC.js → CreatedOnBrandCrowd-en-us-BNR-T34t.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-BptLAnJw.js → CreatedOnBrandCrowd-es-es-D9jzI5Gq.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-Dhd8PVKw.js → CreatedOnBrandCrowd-fr-ca-DUbAnAP7.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-Dhd8PVKw.js → CreatedOnBrandCrowd-fr-fr-DUbAnAP7.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-X5oQu67A.js → CreatedOnBrandCrowd-pt-br-DLzCYy_9.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-X5oQu67A.js → CreatedOnBrandCrowd-pt-pt-DLzCYy_9.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-D_2wZOXC.js → CreatedOnDcom-de-de-BP5YtPE5.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-DYWjuLNy.js → CreatedOnDcom-en-us-ih-rYZb7.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-DNcNR11_.js → CreatedOnDcom-es-es-DOdyRnZy.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-DqK95jxt.js → CreatedOnDcom-fr-ca-DJAXIcPr.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-CAaFVidi.js → CreatedOnDcom-fr-fr-DOw9WG-3.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-80W59bFj.js → CreatedOnDcom-pt-br-9o0DJ0n-.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-BTELqfP0.js → CreatedOnDcom-pt-pt-Dyf54Z8l.js} +1 -1
- package/lib/src/brand-page/components/about-section/AboutSection.mixin.d.ts +2 -2
- package/lib/src/brand-page/components/about-section/AboutSection.mixin.js +1 -1
- package/lib/src/brand-page/components/background-shape/BackgroundShape.mixin.d.ts +1 -1
- package/lib/src/brand-page/components/background-shape/BackgroundShape.mixin.js +3 -3
- package/lib/src/brand-page/components/banner-section/BannerSection.mixin.d.ts +2 -2
- package/lib/src/brand-page/components/banner-section/BannerSection.mixin.js +2 -2
- package/lib/src/brand-page/components/button/Button.mixin.d.ts +2 -2
- package/lib/src/brand-page/components/button/Button.mixin.js +1 -1
- package/lib/src/brand-page/components/button/Button.stories.d.ts +1 -1
- package/lib/src/brand-page/components/button/Button.stories.js +1 -1
- package/lib/src/brand-page/components/collapsible/Collapsible.mixin.d.ts +1 -1
- package/lib/src/brand-page/components/contact-form/ContactForm.mixin.d.ts +2 -2
- package/lib/src/brand-page/components/contact-form/ContactForm.mixin.js +3 -3
- package/lib/src/brand-page/components/contact-form/ContactForm.stories.d.ts +4 -4
- package/lib/src/brand-page/components/contact-form/ContactForm.stories.js +5 -5
- package/lib/src/brand-page/components/divider-section/DividerSection.mixin.d.ts +2 -2
- package/lib/src/brand-page/components/divider-section/DividerSection.mixin.js +1 -1
- package/lib/src/brand-page/components/image/Image.mixin.d.ts +2 -2
- package/lib/src/brand-page/components/image/Image.mixin.js +2 -2
- package/lib/src/brand-page/components/image-gallery/ImageGallery.mixin.d.ts +2 -2
- package/lib/src/brand-page/components/image-gallery/ImageGallery.mixin.js +1 -1
- package/lib/src/brand-page/components/image-gallery/ImageGallery.stories.d.ts +1 -1
- package/lib/src/brand-page/components/image-gallery/ImageGallery.stories.js +3 -3
- package/lib/src/brand-page/components/image-gallery/ImageGalleryModal.mixin.d.ts +1 -1
- package/lib/src/brand-page/components/images-section/ImagesSection.stories.d.ts +1 -1
- package/lib/src/brand-page/components/images-section/ImagesSection.stories.js +3 -3
- package/lib/src/brand-page/components/mailing-list/MailingList.mixin.d.ts +2 -2
- package/lib/src/brand-page/components/mailing-list/MailingList.mixin.js +2 -2
- package/lib/src/brand-page/components/mailing-list/MailingList.stories.d.ts +4 -4
- package/lib/src/brand-page/components/mailing-list/MailingList.stories.js +1 -1
- package/lib/src/brand-page/components/map/GoogleMap.mixin.js +2 -2
- package/lib/src/brand-page/components/media/Media.mixin.d.ts +1 -1
- package/lib/src/brand-page/components/media/Shape.mixin.d.ts +1 -1
- package/lib/src/brand-page/components/media/Shape.mixin.js +3 -3
- package/lib/src/brand-page/components/media-query/MediaQuery.stories.js +1 -1
- package/lib/src/brand-page/components/page/Page.mixin.d.ts +2 -2
- package/lib/src/brand-page/components/page/Page.mixin.js +3 -3
- package/lib/src/brand-page/components/page/Page.stories.d.ts +1 -1
- package/lib/src/brand-page/components/page/Page.stories.js +5 -2
- package/lib/src/brand-page/components/page/PageComponent.mixin.d.ts +2 -2
- package/lib/src/brand-page/components/page-footer/PageFooter.mixin.d.ts +2 -2
- package/lib/src/brand-page/components/page-footer/PageFooter.mixin.js +1 -1
- package/lib/src/brand-page/components/page-header/PageHeader.mixin.d.ts +2 -2
- package/lib/src/brand-page/components/payment/Payment.mixin.d.ts +2 -2
- package/lib/src/brand-page/components/payment/Payment.mixin.js +2 -2
- package/lib/src/brand-page/components/payment/RequestPaymentStripe.mixin.d.ts +1 -1
- package/lib/src/brand-page/components/payment/RequestPaymentStripe.mixin.js +1 -1
- package/lib/src/brand-page/components/payment/__fixtures__/request-payment.js +2 -2
- package/lib/src/brand-page/components/payment/__fixtures__/support-me.js +2 -2
- package/lib/src/brand-page/components/payment/request-payment/RequestPayment.mixin.js +1 -1
- package/lib/src/brand-page/components/payment/request-payment/RequestPayment.stories.js +1 -1
- package/lib/src/brand-page/components/payment/support-me/SupportMe.mixin.js +1 -1
- package/lib/src/brand-page/components/payment/support-me/SupportMe.stories.js +1 -1
- package/lib/src/brand-page/components/profile/Profile.mixin.d.ts +2 -2
- package/lib/src/brand-page/components/profile/Profile.mixin.js +2 -2
- package/lib/src/brand-page/components/profile/Profile.stories.d.ts +2 -2
- package/lib/src/brand-page/components/profile/Profile.stories.js +1 -1
- package/lib/src/brand-page/components/shop/Cart.stories.js +3 -3
- package/lib/src/brand-page/components/social-links/SocialLinks.stories.d.ts +1 -1
- package/lib/src/brand-page/components/testimonial-section/TestimonialSection.mixin.d.ts +2 -2
- package/lib/src/brand-page/components/testimonial-section/TestimonialSection.mixin.js +2 -2
- package/lib/src/brand-page/components/text/Text.stories.d.ts +1 -1
- package/lib/src/brand-page/components/video/Video.mixin.d.ts +1 -1
- package/lib/src/brand-page/constants/font.constants.js +1 -1
- package/lib/src/brand-page/constants/misc.constants.js +1 -1
- package/lib/src/brand-page/constants/sections/footer-display.constants.d.ts +1 -1
- package/lib/src/brand-page/constants/sections/footer-display.constants.js +1 -1
- package/lib/src/brand-page/constants/sections/header-display.constants.d.ts +1 -1
- package/lib/src/brand-page/models/index.d.ts +18 -0
- package/lib/src/brand-page/models/index.js +12 -0
- package/lib/src/brand-page/models/styles.model.js +1 -1
- package/lib/src/brand-page/utils/button.util.js +1 -1
- package/lib/src/brand-page/utils/color.util.js +1 -1
- package/lib/src/brand-page/utils/index.d.ts +1 -1
- package/lib/src/brand-page/utils/index.js +1 -1
- package/lib/src/brand-page/utils/migration/migration-01.d.ts +1 -1
- package/lib/src/brand-page/utils/migration/migration-01.js +2 -2
- package/lib/src/brand-page/utils/migration/migration-12.d.ts +2 -0
- package/lib/src/brand-page/utils/migration/migration-12.js +30 -0
- package/lib/src/brand-page/utils/migration.util.js +6 -0
- package/lib/src/brand-page/utils/personalisation.util.js +2 -2
- package/lib/src/brand-page/utils/route.util.d.ts +1 -1
- package/lib/src/brand-page/utils/style.util.js +3 -3
- package/lib/src/brand-page/utils/svg-color.util.js +1 -1
- package/lib/src/brand-page/utils/validation.util.js +2 -2
- package/lib/src/brand-page/utils/vcard.util.js +2 -2
- package/lib/src/brand-page/utils/view-model.util.d.ts +5 -2
- package/lib/src/brand-page/utils/view-model.util.js +27 -1
- package/lib/src/brand-page/view-models.d.ts +28 -0
- package/lib/src/brand-page-maker/assessors/banner-section-description-visibility.assessor.d.ts +1 -1
- package/lib/src/brand-page-maker/assessors/banner-section-description-visibility.assessor.js +2 -2
- package/lib/src/brand-page-maker/assessors/banner-section-field.assessor.d.ts +1 -1
- package/lib/src/brand-page-maker/assessors/brand-page-type-visibility.assessor.d.ts +1 -1
- package/lib/src/brand-page-maker/assessors/card-fill-visibility.assessor.d.ts +1 -1
- package/lib/src/brand-page-maker/assessors/color-replacement-icon-visibility.assessor.d.ts +1 -1
- package/lib/src/brand-page-maker/assessors/color-replacement-profile-visibility.assessor.d.ts +1 -1
- package/lib/src/brand-page-maker/assessors/color-replacement-visibility.assessor.d.ts +1 -1
- package/lib/src/brand-page-maker/assessors/contact-form-visibility.assessor.d.ts +1 -1
- package/lib/src/brand-page-maker/assessors/contact-form-visibility.assessor.js +2 -2
- package/lib/src/brand-page-maker/assessors/divider-toggle-field-visibility.assessor.d.ts +1 -1
- package/lib/src/brand-page-maker/assessors/image-field-visability.assessor.d.ts +1 -1
- package/lib/src/brand-page-maker/assessors/image-gallery-field-visibility.assessor.d.ts +1 -1
- package/lib/src/brand-page-maker/assessors/image-option-visibility.assessor.d.ts +1 -1
- package/lib/src/brand-page-maker/assessors/images-section-aspect-ratio-visibility.assessor.d.ts +1 -1
- package/lib/src/brand-page-maker/assessors/images-section-aspect-ratio-visibility.assessor.js +2 -2
- package/lib/src/brand-page-maker/assessors/images-section-card-style-visibility.assessor.d.ts +1 -1
- package/lib/src/brand-page-maker/assessors/images-section-card-style-visibility.assessor.js +1 -1
- package/lib/src/brand-page-maker/assessors/images-section-text-style-visibility.assessor.d.ts +1 -1
- package/lib/src/brand-page-maker/assessors/images-section-text-style-visibility.assessor.js +1 -1
- package/lib/src/brand-page-maker/assessors/logo-field-visibility.assessor.d.ts +1 -1
- package/lib/src/brand-page-maker/assessors/media-section-items-field.assessor.d.ts +1 -1
- package/lib/src/brand-page-maker/assessors/media-section-items-field.assessor.js +1 -1
- package/lib/src/brand-page-maker/assessors/personalisation-visibility.assessor.d.ts +1 -1
- package/lib/src/brand-page-maker/assessors/personalisation-visibility.assessor.js +2 -2
- package/lib/src/brand-page-maker/assessors/shape-section-items-field.assessor.d.ts +1 -1
- package/lib/src/brand-page-maker/assessors/shape-section-items-field.assessor.js +1 -1
- package/lib/src/brand-page-maker/assessors/shape-size-visibility.assessor.d.ts +1 -1
- package/lib/src/brand-page-maker/assessors/shop-item-color-visibility.assessor.d.ts +1 -1
- package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.d.ts +11 -11
- package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.js +1 -1
- package/lib/src/brand-page-maker/components/admin-background-settings/AdminBackgroundSettings.mixin.d.ts +3 -3
- package/lib/src/brand-page-maker/components/admin-background-settings/AdminBackgroundSettings.mixin.js +5 -5
- package/lib/src/brand-page-maker/components/admin-logo-settings/AdminLogoSettings.mixin.d.ts +5 -5
- package/lib/src/brand-page-maker/components/admin-logo-settings/AdminLogoSettings.mixin.js +4 -4
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +128 -128
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.js +14 -14
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.js +8 -8
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMakerTemplateSettings.mixin.js +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMakerTemplateSettings.stories.js +6 -6
- package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.d.ts +4 -4
- package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.js +2 -2
- package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-payment.d.ts +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/content-settings-items.fixture.d.ts +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/content-settings-items.fixture.js +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/store-fixture.d.ts +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/mock-api-calls/index.js +2 -2
- package/lib/src/brand-page-maker/components/brand-page-maker/mock-api-calls/mock-fabric-render-client-api-calls.js +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/starter-kits/background-colors.d.ts +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/starter-kits/background-colors.js +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/starter-kits/background-gradients.d.ts +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/starter-kits/background-gradients.js +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/starter-kits/background-images.js +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/starter-kits/background-shapes.d.ts +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/starter-kits/background-shapes.js +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/starter-kits/helpers.d.ts +2 -2
- package/lib/src/brand-page-maker/components/brand-page-maker/starter-kits/helpers.js +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/starter-kits/styles.d.ts +1 -1
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +117 -117
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.js +15 -15
- package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.d.ts +15 -15
- package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.js +2 -2
- package/lib/src/brand-page-maker/components/device/Device.mixin.js +1 -1
- package/lib/src/brand-page-maker/components/index.d.ts +1 -1
- package/lib/src/brand-page-maker/components/index.js +1 -1
- package/lib/src/brand-page-maker/components/navigation/Navigation.mixin.js +1 -1
- package/lib/src/brand-page-maker/components/preview/Preview.mixin.d.ts +2 -2
- package/lib/src/brand-page-maker/components/preview/Preview.mixin.js +2 -2
- package/lib/src/brand-page-maker/components/preview/Preview.stories.d.ts +1 -1
- package/lib/src/brand-page-maker/components/preview/Preview.stories.js +8 -4
- package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.d.ts +3 -3
- package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.js +3 -3
- package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +13 -13
- package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.js +4 -4
- package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +17 -17
- package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.js +5 -5
- package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.stories.js +2 -2
- package/lib/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.d.ts +4 -4
- package/lib/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.js +2 -2
- package/lib/src/brand-page-maker/components/social-share/SocialShare.mixin.d.ts +10 -10
- package/lib/src/brand-page-maker/components/social-share/SocialShare.mixin.js +2 -2
- package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +22 -22
- package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.js +9 -9
- package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.stories.d.ts +3 -3
- package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.stories.js +3 -3
- package/lib/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.d.ts +3 -3
- package/lib/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.js +2 -2
- package/lib/src/brand-page-maker/composables/rich-text-editor/font.js +1 -1
- package/lib/src/brand-page-maker/composables/rich-text-editor/formatting.js +1 -1
- package/lib/src/brand-page-maker/composables/rich-text-editor/spacing.js +2 -2
- package/lib/src/brand-page-maker/composables/rich-text-editor/textAlign.js +1 -1
- package/lib/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.d.ts +4 -4
- package/lib/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.js +5 -5
- package/lib/src/brand-page-maker/constants/brandpage-meta-constant.js +1 -1
- package/lib/src/brand-page-maker/constants/config-settings-constant.d.ts +1 -1
- package/lib/src/brand-page-maker/constants/config-settings-constant.js +4 -4
- package/lib/src/brand-page-maker/constants/index.d.ts +1 -1
- package/lib/src/brand-page-maker/constants/index.js +1 -1
- package/lib/src/brand-page-maker/constants/personalisation.constant.d.ts +1 -1
- package/lib/src/brand-page-maker/constants/sidebar-constant.d.ts +1 -1
- package/lib/src/brand-page-maker/constants/sidebar-constant.js +1 -1
- package/lib/src/brand-page-maker/constants/ui-constant.js +1 -1
- package/lib/src/brand-page-maker/convertors/about-display-style.convertor.d.ts +1 -1
- package/lib/src/brand-page-maker/convertors/about-display-style.convertor.js +1 -1
- package/lib/src/brand-page-maker/convertors/align-display-style.convertor.js +2 -2
- package/lib/src/brand-page-maker/convertors/banner-align-display-style.convertor.d.ts +1 -1
- package/lib/src/brand-page-maker/convertors/banner-align-display-style.convertor.js +1 -1
- package/lib/src/brand-page-maker/convertors/button-link-style.convertor.js +2 -2
- package/lib/src/brand-page-maker/convertors/contact-layout-style.convertor.d.ts +1 -1
- package/lib/src/brand-page-maker/convertors/contact-layout-style.convertor.js +1 -1
- package/lib/src/brand-page-maker/convertors/display-style.convertor.js +2 -2
- package/lib/src/brand-page-maker/convertors/divider-style.convertor.js +2 -2
- package/lib/src/brand-page-maker/convertors/gallery-type.convertor.d.ts +1 -1
- package/lib/src/brand-page-maker/convertors/gallery-type.convertor.js +2 -2
- package/lib/src/brand-page-maker/convertors/image-aspect-ratio.convertor.d.ts +1 -1
- package/lib/src/brand-page-maker/convertors/image-aspect-ratio.convertor.js +2 -2
- package/lib/src/brand-page-maker/convertors/line-height-value.convertor.js +1 -1
- package/lib/src/brand-page-maker/convertors/payment-display-type.convertor.d.ts +1 -1
- package/lib/src/brand-page-maker/convertors/payment-display-type.convertor.js +2 -2
- package/lib/src/brand-page-maker/convertors/shape-size-options.convertor.js +1 -1
- package/lib/src/brand-page-maker/convertors/shop-aspect-ratio.convertor.js +2 -2
- package/lib/src/brand-page-maker/convertors/shop-display-type.convertor.d.ts +1 -1
- package/lib/src/brand-page-maker/convertors/shop-display-type.convertor.js +2 -2
- package/lib/src/brand-page-maker/convertors/social-links-icon-display-style.convertor.d.ts +1 -1
- package/lib/src/brand-page-maker/convertors/social-links-icon-display-style.convertor.js +2 -2
- package/lib/src/brand-page-maker/convertors/testimonial-display-style-convertor.js +2 -2
- package/lib/src/brand-page-maker/convertors/text-column-style.convertor.js +1 -1
- package/lib/src/brand-page-maker/convertors/text-css-style-options.convertor.d.ts +1 -1
- package/lib/src/brand-page-maker/convertors/text-image-display-style.convertor.d.ts +1 -1
- package/lib/src/brand-page-maker/convertors/text-image-display-style.convertor.js +1 -1
- package/lib/src/brand-page-maker/convertors/text-size-value.convertor.js +1 -1
- package/lib/src/brand-page-maker/convertors/video-content-state.convertor.d.ts +1 -1
- package/lib/src/brand-page-maker/default-getters/payment-fill-color.default-getter.js +1 -1
- package/lib/src/brand-page-maker/default-getters/payment-text-and-border-color.default-getter.js +2 -2
- package/lib/src/brand-page-maker/default-getters/text-color.default-getter.js +2 -2
- package/lib/src/brand-page-maker/models/assessor.model.d.ts +1 -1
- package/lib/src/brand-page-maker/models/button-styles-config.d.ts +1 -1
- package/lib/src/brand-page-maker/models/button-styles-config.js +2 -2
- package/lib/src/brand-page-maker/models/content-settings-configs.d.ts +3 -3
- package/lib/src/brand-page-maker/models/content-settings-configs.js +1 -1
- package/lib/src/brand-page-maker/models/content-settings.d.ts +3 -3
- package/lib/src/brand-page-maker/models/content-settings.js +3 -3
- package/lib/src/brand-page-maker/models/convertor.model.d.ts +1 -1
- package/lib/src/brand-page-maker/models/default-getter.model.d.ts +1 -1
- package/lib/src/brand-page-maker/models/navigation-style-configs.d.ts +3 -3
- package/lib/src/brand-page-maker/models/navigation-style-configs.js +3 -3
- package/lib/src/brand-page-maker/stores/admin-logo-settings/admin-logo-settings-store-utils.d.ts +1 -1
- package/lib/src/brand-page-maker/stores/admin-logo-settings/admin-logo-settings-store-utils.js +2 -2
- package/lib/src/brand-page-maker/stores/admin-logo-settings/admin-logo-settings-store.d.ts +2 -2
- package/lib/src/brand-page-maker/stores/admin-logo-settings/admin-logo-settings-store.js +5 -5
- package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.d.ts +3 -3
- package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.js +10 -10
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store-utils.js +3 -3
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.d.ts +7 -7
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +36 -21
- package/lib/src/brand-page-maker/stores/product-config/product-config-store.d.ts +1 -1
- package/lib/src/brand-page-maker/stores/product-config/product-config-store.js +1 -1
- package/lib/src/brand-page-maker/stores/route/localised-route-store.js +2 -2
- package/lib/src/brand-page-maker/stores/ui/ui-store.d.ts +2 -2
- package/lib/src/brand-page-maker/stores/ui/ui-store.js +4 -4
- package/lib/src/brand-page-maker/stores/user/user-store.d.ts +1 -1
- package/lib/src/brand-page-maker/utils/content-settings.util.d.ts +3 -3
- package/lib/src/brand-page-maker/utils/content-settings.util.js +2 -2
- package/lib/src/brand-page-maker/utils/content.util.d.ts +2 -2
- package/lib/src/brand-page-maker/utils/content.util.js +3 -3
- package/lib/src/brand-page-maker/utils/index.js +1 -1
- package/lib/src/brand-page-maker/utils/rich-text-editor.util.d.ts +3 -3
- package/lib/src/brand-page-maker/utils/rich-text-editor.util.js +3 -3
- package/lib/src/brand-page-maker/validators/field.validator.d.ts +1 -1
- package/lib/src/brand-page-maker/validators/field.validator.js +3 -3
- package/lib/src/brand-page-maker/validators/section-button.validator.d.ts +1 -1
- package/lib/src/brand-page-maker/validators/section-button.validator.js +3 -3
- package/lib/src/clients/ai-assistant-client.js +1 -1
- package/lib/src/clients/asset-library-clients.d.ts +1 -1
- package/lib/src/clients/brand-page-client.d.ts +1 -1
- package/lib/src/clients/brand-page-client.js +1 -1
- package/lib/src/clients/user-media-client.d.ts +2 -2
- package/lib/src/clients/user-media-client.js +1 -1
- package/lib/src/constants/brand-page-maker.d.ts +1 -1
- package/lib/src/constants/brand-page-maker.js +1 -1
- package/lib/src/css/library.brand-page-brandCrowd.min.css +324 -324
- package/lib/src/css/library.brand-page-brandPage.min.css +324 -324
- package/lib/src/css/library.brand-page-designCom.min.css +324 -324
- package/lib/src/css/library.brand-page-preview.min.css +324 -324
- package/lib/src/index.mjs +110 -109
- package/lib/src/{lib-xn7dUNvb.js → lib-CRBe2_A8.js} +13883 -13660
- package/lib/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.d.ts +1 -1
- package/lib/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.js +4 -4
- package/lib/src/shared/background-settings/store/background-settings-store.d.ts +2 -2
- package/lib/src/shared/background-settings/store/background-settings-store.js +3 -3
- package/lib/src/shared/color-picker/components/ColorPicker.mixin.js +3 -3
- package/lib/src/shared/color-picker/constants.js +1 -1
- package/lib/src/shared/confirm-modal/ConfirmModal.mixin.js +2 -2
- package/lib/src/shared/content-settings/components/GenericTextInput.mixin.js +2 -2
- package/lib/src/shared/content-settings/components/booking-url-field/BookingUrlField.mixin.js +1 -1
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +42 -41
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.js +5 -5
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.stories.js +4 -4
- package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +52 -52
- package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.js +4 -4
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +24 -24
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.js +5 -5
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +35 -35
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.js +8 -8
- package/lib/src/shared/content-settings/components/draggable-item-list/DraggableItemList.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/draggable-item-list/DraggableItemList.mixin.js +1 -1
- package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.d.ts +19 -19
- package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.js +7 -7
- package/lib/src/shared/content-settings/components/form-fields-field/FormFieldsField.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/form-fields-field/FormFieldsField.mixin.js +1 -1
- package/lib/src/shared/content-settings/components/google-address-field/GoogleAddressField.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/icon-library/IconLibrary.mixin.js +1 -1
- package/lib/src/shared/content-settings/components/image-field/ImageField.mixin.js +4 -4
- package/lib/src/shared/content-settings/components/images-field/ImagesField.mixin.d.ts +3 -3
- package/lib/src/shared/content-settings/components/links-field/LinksField.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/logo-field/LogoField.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/logo-field/LogoField.mixin.js +1 -1
- package/lib/src/shared/content-settings/components/page-dropdown-field/PageDropdownField.mixin.d.ts +2 -2
- package/lib/src/shared/content-settings/components/page-dropdown-field/PageDropdownField.mixin.js +2 -2
- package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +17 -17
- package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.js +4 -4
- package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigOptionField.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigOptionField.mixin.js +3 -3
- package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigOptionFieldAdaptor.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/payment-config-field/payment-config-field-utils.d.ts +1 -1
- package/lib/src/shared/content-settings/components/payment-config-field/payment-config-field-utils.js +1 -1
- package/lib/src/shared/content-settings/components/payment-config-field/payment-link-display-style-field/PaymentImageStyleField.mixin.d.ts +2 -2
- package/lib/src/shared/content-settings/components/payment-config-field/payment-link-display-style-field/PaymentImageStyleField.mixin.js +1 -1
- package/lib/src/shared/content-settings/components/payment-config-field/payment-toggle-field/PaymentToggleField.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/payment-config-field/request-payment-config-field/RequestPaymentConfigField.mixin.d.ts +2 -2
- package/lib/src/shared/content-settings/components/payment-config-field/request-payment-config-field/RequestPaymentConfigField.mixin.js +1 -1
- package/lib/src/shared/content-settings/components/payment-config-field/support-me-config-field/SupportMeConfigField.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/payment-config-field/support-me-config-field/SupportMeConfigField.mixin.js +1 -1
- package/lib/src/shared/content-settings/components/radio-field/RadioField.mixin.d.ts +4 -4
- package/lib/src/shared/content-settings/components/radio-field/RadioField.mixin.js +2 -2
- package/lib/src/shared/content-settings/components/shape-field/ShapeField.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/shape-field/ShapeField.mixin.js +1 -1
- package/lib/src/shared/content-settings/components/slider-field/SliderField.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.js +3 -3
- package/lib/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.js +4 -4
- package/lib/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.d.ts +16 -16
- package/lib/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.js +2 -2
- package/lib/src/shared/content-settings/components/textarea-field/TextareaField.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/toggle-field/ToggleField.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/youtube-video-field/YoutubeVideoField.mixin.js +2 -2
- package/lib/src/shared/content-settings/models.d.ts +3 -3
- package/lib/src/shared/content-settings/store/content-settings-store.d.ts +2 -2
- package/lib/src/shared/content-settings/store/content-settings-store.js +5 -5
- package/lib/src/shared/content-settings/utils.d.ts +2 -2
- package/lib/src/shared/content-settings/utils.js +2 -2
- package/lib/src/shared/ecommerce-settings/store/shop-settings-store.d.ts +2 -2
- package/lib/src/shared/ecommerce-settings/store/shop-settings-store.js +1 -1
- package/lib/src/shared/ecommerce-settings/util/skuUtils.d.ts +1 -1
- package/lib/src/shared/font-family-selector/FontFamilySelector.mixin.d.ts +2 -2
- package/lib/src/shared/font-family-selector/FontFamilySelector.mixin.js +1 -1
- package/lib/src/shared/image-gallery-style-settings/ImageGalleryStyleSettings.mixin.d.ts +1 -1
- package/lib/src/shared/logo-settings/components/EditLogoSettings.mixin.d.ts +71 -7
- package/lib/src/shared/logo-settings/components/EditLogoSettings.mixin.js +15 -4
- package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +26 -26
- package/lib/src/shared/logo-settings/components/LogoSettings.mixin.js +2 -2
- package/lib/src/shared/logo-settings/store/editable-logo-store.d.ts +1 -1
- package/lib/src/shared/logo-settings/store/editable-logo-store.js +5 -5
- package/lib/src/shared/logo-settings/store/logo-settings-store.d.ts +1 -1
- package/lib/src/shared/logo-settings/store/logo-settings-store.js +4 -4
- package/lib/src/shared/logo-versions/LogoVersions.mixin.d.ts +1 -1
- package/lib/src/shared/logo-versions/LogoVersions.mixin.js +1 -1
- package/lib/src/shared/models.d.ts +1 -1
- package/lib/src/shared/my-designs/MyDesigns.mixin.d.ts +1 -1
- package/lib/src/shared/my-designs/MyDesigns.mixin.js +2 -2
- package/lib/src/shared/my-uploads/MyMedia.mixin.d.ts +1 -1
- package/lib/src/shared/my-uploads/MyMedia.mixin.js +4 -4
- package/lib/src/shared/my-uploads/MyMedia.stories.js +3 -3
- package/lib/src/shared/my-uploads/MyUploads.mixin.d.ts +1 -1
- package/lib/src/shared/my-uploads/MyUploads.mixin.js +4 -4
- package/lib/src/shared/my-uploads/MyUploads.stories.js +1 -1
- package/lib/src/shared/my-uploads/models.d.ts +1 -1
- package/lib/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.d.ts +2 -2
- package/lib/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.js +4 -4
- package/lib/src/shared/navigation-style-settings/store/index.d.ts +4 -4
- package/lib/src/shared/navigation-style-settings/store/index.js +5 -5
- package/lib/src/shared/page-navigation/store/page-navigation-store.d.ts +18 -0
- package/lib/src/shared/page-navigation/store/page-navigation-store.js +118 -0
- package/lib/src/shared/page-settings/components/new-page-modal/NewPageModal.mixin.d.ts +22 -8
- package/lib/src/shared/page-settings/components/new-page-modal/NewPageModal.mixin.js +16 -2
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +91 -77
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.js +36 -5
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +62 -61
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.js +6 -6
- package/lib/src/shared/page-settings/models.d.ts +3 -2
- package/lib/src/shared/page-settings/store/page-settings-store.d.ts +3 -3
- package/lib/src/shared/page-settings/store/page-settings-store.js +8 -6
- package/lib/src/shared/page-settings/utils.js +1 -1
- package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +25 -25
- package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.js +6 -6
- package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +4 -4
- package/lib/src/shared/side-bar/components/SideBar.mixin.js +1 -1
- package/lib/src/shared/side-bar/components/SideBarTabButton.mixin.d.ts +5 -5
- package/lib/src/shared/side-bar/components/SideBarTabButton.mixin.js +2 -2
- package/lib/src/shared/side-bar/store/side-bar-store.js +1 -1
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +42 -42
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.js +7 -7
- package/lib/src/shared/style-settings/components/StyleSettings.stories.js +3 -3
- package/lib/src/shared/style-settings/models.d.ts +1 -1
- package/lib/src/shared/style-settings/store/style-settings-store.d.ts +4 -4
- package/lib/src/shared/style-settings/store/style-settings-store.js +6 -6
- package/lib/src/shared/template-settings/components/TemplatesSettings.mixin.d.ts +6 -6
- package/lib/src/shared/template-settings/components/TemplatesSettings.mixin.js +5 -5
- package/lib/src/shared/template-settings/components/TemplatesSettings.stories.js +2 -2
- package/lib/src/shared/template-settings/components/TemplatesSettings.test-helper.d.ts +1 -1
- package/lib/src/shared/template-settings/components/TemplatesSettings.test-helper.js +4 -4
- package/lib/src/shared/template-settings/models.d.ts +1 -1
- package/lib/src/shared/template-settings/models.js +1 -1
- package/lib/src/shared/template-settings/store/template-settings-store.js +6 -6
- package/lib/src/shared/unsplash-library/UnsplashLibrary.mixin.d.ts +1 -1
- package/lib/src/shared/unsplash-library/UnsplashLibrary.mixin.js +2 -2
- package/package.json +3 -3
- package/src/brand-page/components/about-section/AboutSection.mixin.ts +3 -3
- package/src/brand-page/components/about-section/AboutSection.vue.test.ts +2 -2
- package/src/brand-page/components/background-shape/BackgroundShape.mixin.ts +4 -4
- package/src/brand-page/components/banner-section/BannerSection.mixin.ts +4 -4
- package/src/brand-page/components/booking-section/BookingSection.vue +4 -4
- package/src/brand-page/components/brand-page-footer/BrandPageFooter.vue +4 -4
- package/src/brand-page/components/button/Button.mixin.ts +3 -3
- package/src/brand-page/components/button/Button.stories.ts +2 -2
- package/src/brand-page/components/collapsible/Collapsible.mixin.ts +1 -1
- package/src/brand-page/components/contact-form/ContactForm.mixin.ts +9 -5
- package/src/brand-page/components/contact-form/ContactForm.stories.ts +5 -5
- package/src/brand-page/components/cookie-consent/CookieConsent.vue +1 -1
- package/src/brand-page/components/divider-section/DividerSection.mixin.ts +3 -3
- package/src/brand-page/components/fallback-image/FallbackImage.vue +1 -1
- package/src/brand-page/components/image/Image.mixin.ts +7 -4
- package/src/brand-page/components/image/Image.test.ts +7 -4
- package/src/brand-page/components/image/Image.vue +1 -1
- package/src/brand-page/components/image-gallery/ImageGallery.mixin.ts +3 -3
- package/src/brand-page/components/image-gallery/ImageGallery.stories.ts +3 -3
- package/src/brand-page/components/image-gallery/ImageGallery.test.ts +8 -4
- package/src/brand-page/components/image-gallery/ImageGallery.vue +1 -1
- package/src/brand-page/components/image-gallery/ImageGalleryModal.mixin.ts +1 -1
- package/src/brand-page/components/image-gallery/carousel/CarouselGallery.vue +1 -1
- package/src/brand-page/components/image-gallery/grid/GridImageGallery.vue +1 -1
- package/src/brand-page/components/image-gallery/masonry/MasonryGallery.vue +1 -1
- package/src/brand-page/components/images-section/ImagesSection.stories.ts +3 -3
- package/src/brand-page/components/images-section/ImagesSection.test.ts +1 -1
- package/src/brand-page/components/images-section/ImagesSection.vue +9 -5
- package/src/brand-page/components/logo/Logo.vue +3 -3
- package/src/brand-page/components/logo/LogoRender.vue +2 -2
- package/src/brand-page/components/mailing-list/MailingList.mixin.ts +4 -4
- package/src/brand-page/components/mailing-list/MailingList.stories.ts +2 -2
- package/src/brand-page/components/map/GoogleMap.mixin.ts +2 -2
- package/src/brand-page/components/map/Map.stories.ts +1 -1
- package/src/brand-page/components/map/Map.vue +3 -3
- package/src/brand-page/components/media/Media.mixin.ts +1 -1
- package/src/brand-page/components/media/Shape.mixin.ts +4 -4
- package/src/brand-page/components/media-query/MediaQuery.stories.ts +1 -1
- package/src/brand-page/components/media-query/MediaQuery.vue +2 -2
- package/src/brand-page/components/navigation/Navigation.vue +3 -3
- package/src/brand-page/components/page/Page.mixin.ts +5 -5
- package/src/brand-page/components/page/Page.stories.ts +6 -3
- package/src/brand-page/components/page/PageComponent.mixin.ts +5 -2
- package/src/brand-page/components/page-footer/PageFooter.mixin.ts +3 -3
- package/src/brand-page/components/page-header/PageHeader.mixin.ts +2 -2
- package/src/brand-page/components/payment/Payment.mixin.ts +4 -4
- package/src/brand-page/components/payment/Payment.vue +1 -1
- package/src/brand-page/components/payment/RequestPaymentStripe.mixin.ts +2 -2
- package/src/brand-page/components/payment/RequestPaymentStripe.vue +1 -1
- package/src/brand-page/components/payment/__fixtures__/request-payment.ts +2 -2
- package/src/brand-page/components/payment/__fixtures__/support-me.ts +2 -2
- package/src/brand-page/components/payment/request-payment/RequestPayment.mixin.ts +1 -1
- package/src/brand-page/components/payment/request-payment/RequestPayment.stories.ts +1 -1
- package/src/brand-page/components/payment/request-payment/RequestPayment.vue +1 -1
- package/src/brand-page/components/payment/support-me/SupportMe.mixin.ts +1 -1
- package/src/brand-page/components/payment/support-me/SupportMe.stories.ts +1 -1
- package/src/brand-page/components/payment/support-me/SupportMe.vue +1 -1
- package/src/brand-page/components/profile/Profile.mixin.ts +4 -4
- package/src/brand-page/components/profile/Profile.stories.ts +2 -2
- package/src/brand-page/components/save-contact/SaveContactWidget.vue +9 -6
- package/src/brand-page/components/save-contact/popup-card/PopupCard.vue +2 -2
- package/src/brand-page/components/sensitive-content/SensitiveContentModal.vue +1 -1
- package/src/brand-page/components/shapes-section/ShapesSection.vue +2 -2
- package/src/brand-page/components/shop/Cart.stories.ts +3 -3
- package/src/brand-page/components/shop/CartModal.vue +3 -3
- package/src/brand-page/components/shop/FeaturedDisplay.vue +4 -4
- package/src/brand-page/components/shop/PaymentModal.vue +5 -5
- package/src/brand-page/components/shop/ProductDetailModal.vue +4 -4
- package/src/brand-page/components/shop/Shop.vue +7 -7
- package/src/brand-page/components/shop/TextDisplay.vue +4 -4
- package/src/brand-page/components/shop/ThumbnailDisplay.vue +4 -4
- package/src/brand-page/components/social-links/SocialLinks.stories.ts +1 -1
- package/src/brand-page/components/social-links/SocialLinks.vue +2 -2
- package/src/brand-page/components/social-links/SocialLinks.vue.test.ts +4 -3
- package/src/brand-page/components/social-links/SocialLinksItems.vue +1 -1
- package/src/brand-page/components/testimonial-section/TestimonialSection.mixin.ts +4 -4
- package/src/brand-page/components/text/Text.stories.ts +1 -1
- package/src/brand-page/components/text/Text.vue +3 -3
- package/src/brand-page/components/text-media-section/TextMediaSection.test.ts +1 -1
- package/src/brand-page/components/text-media-section/TextMediaSection.vue +5 -5
- package/src/brand-page/components/text-wrapper/TextWrapper.vue +5 -2
- package/src/brand-page/components/video/Video.mixin.ts +1 -1
- package/src/brand-page/components/video/Video.vue +1 -1
- package/src/brand-page/constants/font.constants.ts +1 -1
- package/src/brand-page/constants/misc.constants.ts +1 -1
- package/src/brand-page/constants/sections/footer-display.constants.ts +2 -2
- package/src/brand-page/constants/sections/header-display.constants.ts +1 -1
- package/src/brand-page/models/index.ts +30 -0
- package/src/brand-page/models/styles.model.ts +1 -1
- package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +57 -3
- package/src/brand-page/utils/__snapshots__/migration2.util.test.ts.snap +4 -0
- package/src/brand-page/utils/__snapshots__/model.util.test.ts.snap +8 -0
- package/src/brand-page/utils/button.util.ts +1 -1
- package/src/brand-page/utils/color.util.ts +1 -1
- package/src/brand-page/utils/index.ts +1 -1
- package/src/brand-page/utils/logo.util.test.ts +5 -0
- package/src/brand-page/utils/migration/migration-01.ts +2 -2
- package/src/brand-page/utils/migration/migration-07.test.ts +1 -1
- package/src/brand-page/utils/migration/migration-08.test.ts +1 -1
- package/src/brand-page/utils/migration/migration-08.ts +1 -1
- package/src/brand-page/utils/migration/migration-12.ts +43 -0
- package/src/brand-page/utils/migration.util.test.ts +16 -1
- package/src/brand-page/utils/migration.util.ts +6 -0
- package/src/brand-page/utils/personalisation.util.test.ts +2 -2
- package/src/brand-page/utils/personalisation.util.ts +2 -2
- package/src/brand-page/utils/route.util.ts +1 -1
- package/src/brand-page/utils/style.util.test.ts +2 -2
- package/src/brand-page/utils/style.util.ts +3 -3
- package/src/brand-page/utils/svg-color.util.test.ts +1 -1
- package/src/brand-page/utils/svg-color.util.ts +1 -1
- package/src/brand-page/utils/validation.util.ts +2 -2
- package/src/brand-page/utils/vcard.util.ts +2 -2
- package/src/brand-page/utils/view-model.util.test.ts +1 -1
- package/src/brand-page/utils/view-model.util.ts +82 -1
- package/src/brand-page/view-models.ts +33 -0
- package/src/brand-page-maker/assessors/banner-section-description-visibility.assessor.ts +3 -6
- package/src/brand-page-maker/assessors/banner-section-field.assessor.ts +1 -4
- package/src/brand-page-maker/assessors/brand-page-type-visibility.assessor.ts +1 -1
- package/src/brand-page-maker/assessors/card-fill-visibility.assessor.ts +1 -1
- package/src/brand-page-maker/assessors/color-replacement-icon-visibility.assessor.ts +1 -1
- package/src/brand-page-maker/assessors/color-replacement-profile-visibility.assessor.ts +1 -1
- package/src/brand-page-maker/assessors/color-replacement-visibility.assessor.ts +1 -1
- package/src/brand-page-maker/assessors/contact-form-visibility.assessor.ts +2 -2
- package/src/brand-page-maker/assessors/divider-toggle-field-visibility.assessor.ts +1 -1
- package/src/brand-page-maker/assessors/image-field-visability.assessor.ts +1 -1
- package/src/brand-page-maker/assessors/image-gallery-field-visibility.assessor.ts +1 -1
- package/src/brand-page-maker/assessors/image-option-visibility.assessor.ts +1 -1
- package/src/brand-page-maker/assessors/images-section-aspect-ratio-visibility.assessor.ts +3 -3
- package/src/brand-page-maker/assessors/images-section-card-style-visibility.assessor.ts +2 -5
- package/src/brand-page-maker/assessors/images-section-text-style-visibility.assessor.ts +2 -2
- package/src/brand-page-maker/assessors/logo-field-visibility.assessor.ts +1 -1
- package/src/brand-page-maker/assessors/media-section-items-field.assessor.ts +2 -5
- package/src/brand-page-maker/assessors/personalisation-visibility.assessor.ts +2 -2
- package/src/brand-page-maker/assessors/shape-section-items-field.assessor.ts +2 -5
- package/src/brand-page-maker/assessors/shape-size-visibility.assessor.ts +1 -1
- package/src/brand-page-maker/assessors/shop-item-color-visibility.assessor.ts +1 -1
- package/src/brand-page-maker/components/action-bar/ActionBar.mixin.ts +1 -1
- package/src/brand-page-maker/components/action-bar/ActionBar.vue +1 -1
- package/src/brand-page-maker/components/action-bar/ActionBarNavigation.vue +1 -1
- package/src/brand-page-maker/components/admin-background-settings/AdminBackgroundSettings.mixin.ts +6 -6
- package/src/brand-page-maker/components/admin-background-settings/AdminBackgroundSettings.vue +3 -3
- package/src/brand-page-maker/components/admin-logo-settings/AdminLogoSettings.mixin.ts +4 -4
- package/src/brand-page-maker/components/admin-logo-settings/AdminLogoSettings.vue +2 -2
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.ts +19 -19
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.ts +8 -8
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.vue +10 -10
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMakerTemplateSettings.mixin.ts +1 -1
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMakerTemplateSettings.stories.ts +6 -6
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMakerTemplateSettings.vue +1 -1
- package/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.ts +6 -6
- package/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-payment.ts +1 -1
- package/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-site-template.examples.ts +1 -1
- package/src/brand-page-maker/components/brand-page-maker/__fixtures__/content-settings-items.fixture.ts +2 -2
- package/src/brand-page-maker/components/brand-page-maker/__fixtures__/store-fixture.ts +1 -1
- package/src/brand-page-maker/components/brand-page-maker/mock-api-calls/index.ts +2 -2
- package/src/brand-page-maker/components/brand-page-maker/mock-api-calls/mock-fabric-render-client-api-calls.ts +1 -1
- package/src/brand-page-maker/components/brand-page-maker/mock-api-calls/mock-user-domain-api-calls.ts +1 -1
- package/src/brand-page-maker/components/brand-page-maker/starter-kits/background-colors.ts +2 -2
- package/src/brand-page-maker/components/brand-page-maker/starter-kits/background-gradients.ts +2 -2
- package/src/brand-page-maker/components/brand-page-maker/starter-kits/background-images.ts +2 -2
- package/src/brand-page-maker/components/brand-page-maker/starter-kits/background-shapes.ts +2 -2
- package/src/brand-page-maker/components/brand-page-maker/starter-kits/helpers.ts +2 -2
- package/src/brand-page-maker/components/brand-page-maker/starter-kits/styles.ts +1 -1
- package/src/brand-page-maker/components/brandpage-background-settings/BrandPageBackgroundSettings.vue +2 -2
- package/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.ts +17 -17
- package/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.vue +6 -6
- package/src/brand-page-maker/components/brandpage-settings/BrandPageSettings.vue +7 -7
- package/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.ts +5 -5
- package/src/brand-page-maker/components/color-palette/BpColorPalette.vue +1 -1
- package/src/brand-page-maker/components/color-palette/BpColorPicker.vue +2 -2
- package/src/brand-page-maker/components/cookie-collection/CookieSettings.vue +3 -3
- package/src/brand-page-maker/components/device/Device.mixin.ts +1 -1
- package/src/brand-page-maker/components/device/Device.test.ts +1 -1
- package/src/brand-page-maker/components/google-analytics/GoogleAnalytics.vue +4 -4
- package/src/brand-page-maker/components/index.ts +1 -1
- package/src/brand-page-maker/components/layout-switcher/LayoutSwitcher.vue +3 -3
- package/src/brand-page-maker/components/navigation/Navigation.mixin.ts +1 -1
- package/src/brand-page-maker/components/navigation/Navigation.vue +1 -1
- package/src/brand-page-maker/components/preview/Preview.mixin.ts +4 -4
- package/src/brand-page-maker/components/preview/Preview.stories.ts +8 -4
- package/src/brand-page-maker/components/preview-with-state/PreviewWithState.vue +2 -2
- package/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.ts +6 -3
- package/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.vue +1 -1
- package/src/brand-page-maker/components/rich-text-editor/RichTextEditor.vue +19 -16
- package/src/brand-page-maker/components/save-contact/SaveContact.vue +2 -2
- package/src/brand-page-maker/components/sensitive-content/SensitiveContent.vue +3 -6
- package/src/brand-page-maker/components/seo-settings/DeleteDomainModal.vue +1 -1
- package/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.ts +4 -4
- package/src/brand-page-maker/components/seo-settings/SeoPageSettings.vue +1 -1
- package/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.ts +5 -5
- package/src/brand-page-maker/components/seo-settings/UrlSettings.stories.ts +2 -2
- package/src/brand-page-maker/components/seo-settings/UrlSettings.vue +2 -2
- package/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.ts +4 -4
- package/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.vue +1 -1
- package/src/brand-page-maker/components/shop/AddOrEditProductContainer.vue +5 -5
- package/src/brand-page-maker/components/shop/ProductConfigModal.vue +2 -2
- package/src/brand-page-maker/components/shop/ProductItemField.vue +5 -5
- package/src/brand-page-maker/components/shop/ReplaceImageSettingsForShop.vue +3 -3
- package/src/brand-page-maker/components/social-share/SocialShare.mixin.ts +5 -2
- package/src/brand-page-maker/components/social-share/SocialShare.vue +2 -2
- package/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.ts +10 -10
- package/src/brand-page-maker/components/template-preview/TemplatePreview.stories.ts +3 -3
- package/src/brand-page-maker/components/template-preview/TemplatePreview.vue +1 -1
- package/src/brand-page-maker/components/template-preview-with-state/TemplatePreviewWithState.vue +6 -6
- package/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.ts +2 -2
- package/src/brand-page-maker/composables/rich-text-editor/font.ts +1 -5
- package/src/brand-page-maker/composables/rich-text-editor/formatting.ts +1 -1
- package/src/brand-page-maker/composables/rich-text-editor/spacing.ts +2 -2
- package/src/brand-page-maker/composables/rich-text-editor/textAlign.ts +1 -1
- package/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.ts +8 -8
- package/src/brand-page-maker/constants/brandpage-meta-constant.ts +1 -1
- package/src/brand-page-maker/constants/config-settings-constant.ts +7 -7
- package/src/brand-page-maker/constants/index.ts +2 -2
- package/src/brand-page-maker/constants/personalisation.constant.ts +1 -1
- package/src/brand-page-maker/constants/sidebar-constant.ts +2 -2
- package/src/brand-page-maker/constants/ui-constant.ts +1 -1
- package/src/brand-page-maker/convertors/about-display-style.convertor.ts +2 -2
- package/src/brand-page-maker/convertors/align-display-style.convertor.ts +2 -2
- package/src/brand-page-maker/convertors/banner-align-display-style.convertor.ts +2 -2
- package/src/brand-page-maker/convertors/button-link-style.convertor.ts +3 -3
- package/src/brand-page-maker/convertors/contact-layout-style.convertor.ts +2 -2
- package/src/brand-page-maker/convertors/display-style.convertor.ts +2 -2
- package/src/brand-page-maker/convertors/divider-style.convertor.ts +3 -3
- package/src/brand-page-maker/convertors/gallery-type.convertor.ts +3 -3
- package/src/brand-page-maker/convertors/image-aspect-ratio.convertor.ts +3 -3
- package/src/brand-page-maker/convertors/line-height-value.convertor.ts +1 -1
- package/src/brand-page-maker/convertors/payment-display-type.convertor.ts +2 -2
- package/src/brand-page-maker/convertors/shape-size-options.convertor.ts +1 -1
- package/src/brand-page-maker/convertors/shop-aspect-ratio.convertor.ts +2 -2
- package/src/brand-page-maker/convertors/shop-display-type.convertor.ts +2 -2
- package/src/brand-page-maker/convertors/social-links-icon-display-style.convertor.ts +3 -3
- package/src/brand-page-maker/convertors/testimonial-display-style-convertor.ts +2 -2
- package/src/brand-page-maker/convertors/text-column-style.convertor.ts +1 -1
- package/src/brand-page-maker/convertors/text-css-style-options.convertor.ts +1 -1
- package/src/brand-page-maker/convertors/text-image-display-style.convertor.ts +2 -2
- package/src/brand-page-maker/convertors/text-size-value.convertor.ts +1 -1
- package/src/brand-page-maker/convertors/video-content-state.convertor.ts +1 -1
- package/src/brand-page-maker/default-getters/payment-fill-color.default-getter.ts +1 -1
- package/src/brand-page-maker/default-getters/payment-text-and-border-color.default-getter.ts +3 -3
- package/src/brand-page-maker/default-getters/text-color.default-getter.ts +3 -3
- package/src/brand-page-maker/models/assessor.model.ts +1 -1
- package/src/brand-page-maker/models/button-styles-config.ts +3 -3
- package/src/brand-page-maker/models/content-settings-configs.ts +4 -4
- package/src/brand-page-maker/models/content-settings.ts +5 -5
- package/src/brand-page-maker/models/convertor.model.ts +1 -1
- package/src/brand-page-maker/models/default-getter.model.ts +1 -1
- package/src/brand-page-maker/models/navigation-style-configs.ts +5 -5
- package/src/brand-page-maker/stores/admin-logo-settings/admin-logo-settings-store-utils.ts +3 -3
- package/src/brand-page-maker/stores/admin-logo-settings/admin-logo-settings-store.ts +7 -7
- package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.ts +15 -12
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store-utils.ts +3 -3
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.test.ts +10 -10
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +49 -28
- package/src/brand-page-maker/stores/product-config/product-config-store.ts +2 -2
- package/src/brand-page-maker/stores/route/localised-route-store.ts +2 -2
- package/src/brand-page-maker/stores/ui/ui-store.ts +6 -9
- package/src/brand-page-maker/stores/user/user-store.ts +1 -1
- package/src/brand-page-maker/utils/content-settings.util.ts +4 -4
- package/src/brand-page-maker/utils/content.util.test.ts +1 -1
- package/src/brand-page-maker/utils/content.util.ts +5 -5
- package/src/brand-page-maker/utils/index.ts +1 -1
- package/src/brand-page-maker/utils/rich-text-editor.util.test.ts +1 -1
- package/src/brand-page-maker/utils/rich-text-editor.util.ts +5 -5
- package/src/brand-page-maker/validators/field.validator.ts +4 -4
- package/src/brand-page-maker/validators/section-button.validator.ts +3 -3
- package/src/clients/ai-assistant-client.ts +1 -1
- package/src/clients/asset-library-clients.ts +1 -1
- package/src/clients/brand-page-client.ts +3 -3
- package/src/clients/user-media-client.test.ts +3 -3
- package/src/clients/user-media-client.ts +3 -3
- package/src/constants/brand-page-maker.ts +1 -1
- package/src/shared/background-settings/components/BackgroundSettings.vue +4 -4
- package/src/shared/background-settings/components/ReplaceImageSettingsForBackgroundSettings.vue +7 -7
- package/src/shared/background-settings/components/background-color/BackgroundColorSettings.vue +4 -8
- package/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.ts +4 -4
- package/src/shared/background-settings/store/background-settings-store.ts +4 -4
- package/src/shared/color-picker/components/ColorPicker.mixin.ts +3 -6
- package/src/shared/color-picker/components/ColorPickerSwatch.vue +1 -1
- package/src/shared/color-picker/constants.ts +1 -1
- package/src/shared/common/SideBarSettingsHeader.vue +1 -1
- package/src/shared/confirm-modal/ConfirmModal.mixin.ts +2 -2
- package/src/shared/content-settings/components/GenericTextInput.mixin.ts +2 -5
- package/src/shared/content-settings/components/booking-url-field/BookingUrlField.mixin.ts +1 -1
- package/src/shared/content-settings/components/booking-url-field/BookingUrlField.vue +2 -2
- package/src/shared/content-settings/components/button-configuration-field/ButtonConfigurationField.vue +3 -3
- package/src/shared/content-settings/components/color-field/ColorField.vue +8 -12
- package/src/shared/content-settings/components/color-replacements-field/ColorReplacementsField.vue +4 -4
- package/src/shared/content-settings/components/content-settings/ContentSettings.mixin.ts +7 -10
- package/src/shared/content-settings/components/content-settings/ContentSettings.stories.ts +4 -4
- package/src/shared/content-settings/components/content-settings/ContentSettings.vue +1 -1
- package/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.ts +4 -4
- package/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.ts +6 -6
- package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.ts +8 -15
- package/src/shared/content-settings/components/draggable-item-list/DraggableItemList.mixin.ts +2 -2
- package/src/shared/content-settings/components/draggable-item-list/DraggableItemList.vue +2 -2
- package/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.ts +8 -8
- package/src/shared/content-settings/components/form-fields-field/FormFieldsField.mixin.ts +2 -2
- package/src/shared/content-settings/components/generate-ai-button/GenerateAiButton.vue +4 -4
- package/src/shared/content-settings/components/generate-ai-modal/GenerateAiModal.vue +4 -4
- package/src/shared/content-settings/components/google-address-field/GoogleAddressField.mixin.ts +1 -1
- package/src/shared/content-settings/components/google-address-field/GoogleAddressField.vue +1 -1
- package/src/shared/content-settings/components/icon-library/IconLibrary.mixin.ts +1 -1
- package/src/shared/content-settings/components/image-field/ImageField.mixin.ts +4 -4
- package/src/shared/content-settings/components/image-field/ImageField.vue +1 -1
- package/src/shared/content-settings/components/images-field/ImagesField.mixin.ts +1 -1
- package/src/shared/content-settings/components/images-field/ImagesField.vue +1 -1
- package/src/shared/content-settings/components/links-field/LinksField.mixin.ts +1 -1
- package/src/shared/content-settings/components/links-field/LinksField.vue +1 -1
- package/src/shared/content-settings/components/logo-field/LogoField.mixin.ts +1 -1
- package/src/shared/content-settings/components/logo-field/LogoField.vue +1 -1
- package/src/shared/content-settings/components/logo-selection-field/LogoSelection.vue +13 -13
- package/src/shared/content-settings/components/logo-selection-field/LogoSelectionField.vue +6 -6
- package/src/shared/content-settings/components/logo-size-field/LogoSizeSlider.vue +1 -1
- package/src/shared/content-settings/components/logo-size-field/LogoSizeSliderField.vue +2 -2
- package/src/shared/content-settings/components/page-dropdown-field/PageDropdownField.mixin.ts +2 -2
- package/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.ts +5 -5
- package/src/shared/content-settings/components/payment-config-field/PaymentConfigField.vue +1 -1
- package/src/shared/content-settings/components/payment-config-field/PaymentConfigOptionField.mixin.ts +4 -4
- package/src/shared/content-settings/components/payment-config-field/PaymentConfigOptionField.vue +1 -4
- package/src/shared/content-settings/components/payment-config-field/PaymentConfigOptionFieldAdaptor.mixin.ts +1 -1
- package/src/shared/content-settings/components/payment-config-field/payment-config-field-utils.ts +2 -2
- package/src/shared/content-settings/components/payment-config-field/payment-link-display-style-field/PaymentImageStyleField.mixin.ts +3 -6
- package/src/shared/content-settings/components/payment-config-field/payment-link-display-style-field/PaymentImageStyleField.vue +1 -1
- package/src/shared/content-settings/components/payment-config-field/payment-toggle-field/PaymentToggleField.mixin.ts +1 -1
- package/src/shared/content-settings/components/payment-config-field/request-payment-config-field/RequestPaymentConfigField.mixin.ts +3 -3
- package/src/shared/content-settings/components/payment-config-field/support-me-config-field/SupportMeConfigField.mixin.ts +2 -2
- package/src/shared/content-settings/components/payment-config-field/support-me-config-field/SupportMeConfigField.vue +1 -1
- package/src/shared/content-settings/components/personalisation-override-field/PersonalisationOverrideField.vue +5 -5
- package/src/shared/content-settings/components/personalisation-role-field/PersonalisationRoleField.vue +2 -2
- package/src/shared/content-settings/components/radio-field/RadioField.mixin.ts +4 -4
- package/src/shared/content-settings/components/replace-image-base-settings/ReplaceImageBaseSettings.vue +3 -3
- package/src/shared/content-settings/components/shape-field/ShapeField.mixin.ts +2 -6
- package/src/shared/content-settings/components/shape-field/ShapeField.vue +1 -1
- package/src/shared/content-settings/components/slider-field/SliderField.mixin.ts +2 -2
- package/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.ts +4 -4
- package/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.vue +2 -2
- package/src/shared/content-settings/components/text-field/TextField.vue +2 -2
- package/src/shared/content-settings/components/text-image-field/TextImageField.vue +3 -3
- package/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.ts +5 -8
- package/src/shared/content-settings/components/text-items-field/TextItemsField.vue +2 -5
- package/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.ts +4 -4
- package/src/shared/content-settings/components/text-style-field/TextStyleField.vue +2 -2
- package/src/shared/content-settings/components/textarea-field/TextareaField.mixin.ts +1 -1
- package/src/shared/content-settings/components/textarea-field/TextareaField.vue +2 -2
- package/src/shared/content-settings/components/toggle-field/ToggleField.mixin.ts +1 -1
- package/src/shared/content-settings/components/youtube-video-field/YoutubeVideoField.mixin.ts +2 -2
- package/src/shared/content-settings/models.ts +3 -3
- package/src/shared/content-settings/store/content-settings-store.ts +7 -11
- package/src/shared/content-settings/utils.ts +4 -4
- package/src/shared/dropzone-image-uploader/components/DropzoneImageUploader.vue +1 -1
- package/src/shared/ecommerce-settings/components/product-config-field/ProductConfigOption.vue +6 -6
- package/src/shared/ecommerce-settings/components/shop-payment-config-field/ShopPaymentConfigField.vue +1 -1
- package/src/shared/ecommerce-settings/store/shop-settings-store.ts +3 -3
- package/src/shared/ecommerce-settings/util/skuUtils.ts +1 -1
- package/src/shared/font-family-selector/FontFamilySelector.mixin.ts +2 -2
- package/src/shared/font-preview/FontPreview.vue +1 -1
- package/src/shared/image-gallery-style-settings/ImageGalleryStyleSettings.mixin.ts +1 -1
- package/src/shared/login-required-message/LoginRequiredMessage.vue +1 -1
- package/src/shared/logo-settings/components/EditLogoSettings.mixin.ts +19 -5
- package/src/shared/logo-settings/components/EditLogoSettings.vue +2 -1
- package/src/shared/logo-settings/components/LogoSettings.mixin.ts +4 -4
- package/src/shared/logo-settings/components/LogoSettings.vue +1 -1
- package/src/shared/logo-settings/components/LogoStyleSettingsWithState.vue +4 -4
- package/src/shared/logo-settings/components/LogoTemplateSearch.vue +13 -17
- package/src/shared/logo-settings/components/LogoVariations.vue +1 -1
- package/src/shared/logo-settings/components/logo-switch-confirmation-modal/LogoSwitchConfirmationModal.vue +1 -1
- package/src/shared/logo-settings/store/editable-logo-store.ts +5 -5
- package/src/shared/logo-settings/store/logo-settings-store.test.ts +7 -5
- package/src/shared/logo-settings/store/logo-settings-store.ts +5 -12
- package/src/shared/logo-versions/LogoVersions.mixin.ts +1 -1
- package/src/shared/models.ts +1 -1
- package/src/shared/my-designs/MyDesigns.mixin.ts +2 -2
- package/src/shared/my-designs/MyDesigns.vue +1 -1
- package/src/shared/my-uploads/MyMedia.mixin.ts +4 -4
- package/src/shared/my-uploads/MyMedia.stories.ts +3 -3
- package/src/shared/my-uploads/MyMedia.vue +1 -1
- package/src/shared/my-uploads/MyUploads.mixin.ts +4 -4
- package/src/shared/my-uploads/MyUploads.stories.ts +1 -1
- package/src/shared/my-uploads/MyUploads.vue +1 -1
- package/src/shared/my-uploads/models.ts +1 -1
- package/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.ts +6 -6
- package/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.vue +1 -1
- package/src/shared/navigation-style-settings/store/index.ts +7 -11
- package/src/shared/page-navigation/store/page-navigation-store.ts +168 -0
- package/src/shared/page-settings/components/delete-page-modal/DeletePageModal.vue +1 -1
- package/src/shared/page-settings/components/new-page-modal/NewPageModal.mixin.ts +19 -2
- package/src/shared/page-settings/components/new-page-modal/NewPageModal.vue +1 -1
- package/src/shared/page-settings/components/page-settings/PageElement.vue +1 -1
- package/src/shared/page-settings/components/page-settings/PageSettingMenu.vue +1 -1
- package/src/shared/page-settings/components/page-settings/PageSettings.mixin.ts +60 -8
- package/src/shared/page-settings/components/page-settings/PageSettings.vue +2 -5
- package/src/shared/page-settings/components/page-settings-section-styles/FooterDisplayStyle.vue +3 -3
- package/src/shared/page-settings/components/page-settings-section-styles/HeaderDisplayStyle.vue +5 -5
- package/src/shared/page-settings/components/page-settings-section-styles/HeaderNavigationType.vue +3 -3
- package/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.ts +8 -8
- package/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.vue +3 -3
- package/src/shared/page-settings/models.ts +3 -2
- package/src/shared/page-settings/store/page-settings-store.test.ts +5 -4
- package/src/shared/page-settings/store/page-settings-store.ts +12 -8
- package/src/shared/page-settings/utils.ts +1 -1
- package/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.ts +7 -7
- package/src/shared/shape-library/ShapeLibrary.vue +4 -4
- package/src/shared/side-bar/components/SideBar.mixin.ts +1 -1
- package/src/shared/side-bar/components/SideBarTabButton.mixin.ts +2 -2
- package/src/shared/side-bar/store/side-bar-store.ts +1 -1
- package/src/shared/style-settings/components/StyleSettings.mixin.ts +7 -7
- package/src/shared/style-settings/components/StyleSettings.stories.ts +3 -3
- package/src/shared/style-settings/components/StyleSettings.vue +1 -1
- package/src/shared/style-settings/components/text-style-options-settings-with-state/TextStyleOptionsSettingsWithState.vue +5 -8
- package/src/shared/style-settings/models.ts +1 -1
- package/src/shared/style-settings/store/style-settings-store.test.ts +3 -3
- package/src/shared/style-settings/store/style-settings-store.ts +9 -9
- package/src/shared/template-settings/components/TemplatesSettings.mixin.ts +5 -5
- package/src/shared/template-settings/components/TemplatesSettings.stories.ts +2 -2
- package/src/shared/template-settings/components/TemplatesSettings.test-helper.ts +4 -4
- package/src/shared/template-settings/components/TemplatesSettings.vue +1 -1
- package/src/shared/template-settings/models.ts +2 -2
- package/src/shared/template-settings/store/template-settings-store.ts +6 -6
- package/src/shared/unsplash-library/UnsplashLibrary.mixin.ts +2 -2
- package/src/shared/unsplash-library/UnsplashLibrary.vue +1 -1
- package/src/shared/upload-logo-modal/UploadLogoModal.vue +2 -2
- package/src/shared/video-library/VideoLibrary.vue +2 -2
- package/src/shared/website-byo-upload/WebsiteByoUpload.vue +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type { BrandPageContext } from '
|
|
3
|
-
import type { PageHeaderViewModel } from '
|
|
2
|
+
import type { BrandPageContext } from '@brand-page/models';
|
|
3
|
+
import type { PageHeaderViewModel } from '@brand-page/view-models';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
5
|
navId: {
|
|
6
6
|
type: StringConstructor;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type { BrandPageContext, CheckoutInformation, CreateCartResult, PaymentConfig, PaymentOption } from '
|
|
3
|
-
import type { RequestPaymentViewModel, SupportMeViewModel } from '
|
|
2
|
+
import type { BrandPageContext, CheckoutInformation, CreateCartResult, PaymentConfig, PaymentOption } from '@brand-page/models';
|
|
3
|
+
import type { RequestPaymentViewModel, SupportMeViewModel } from '@brand-page/view-models';
|
|
4
4
|
export declare const paymentState: {
|
|
5
5
|
readonly CreatingCart: "creating-cart";
|
|
6
6
|
readonly IncompleteConfig: "incomplete-config";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent } from 'vue';
|
|
2
2
|
import brandPageClient from '../../clients/brand-page.client';
|
|
3
3
|
import { DISPLAY_STYLE_COLLAPSED, DISPLAY_STYLE_PREVIEW, paymentProviders, } from '../../constants';
|
|
4
|
-
import raygunUtil from '
|
|
5
|
-
import { paymentTr } from '
|
|
4
|
+
import raygunUtil from '@brand-page/utils/raygun.util';
|
|
5
|
+
import { paymentTr } from '@src/composables/useTranslate';
|
|
6
6
|
const DEFAULT_PAYMENT_SUCCESS_MESSAGE = paymentTr(`defaultPaymentSuccessMessage`);
|
|
7
7
|
const PAYMENT_CONFIG_ACTIVE = 'Active';
|
|
8
8
|
export const paymentState = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type { BrandPagePaymentConfig, ButtonStyles, CheckoutInformation, CreateCartResult, StripePaymentIntent } from '
|
|
2
|
+
import type { BrandPagePaymentConfig, ButtonStyles, CheckoutInformation, CreateCartResult, StripePaymentIntent } from '@brand-page/models';
|
|
3
3
|
declare global {
|
|
4
4
|
interface Window {
|
|
5
5
|
Stripe?: stripe.StripeStatic;
|
|
@@ -2,7 +2,7 @@ import { defineComponent } from 'vue';
|
|
|
2
2
|
import validator from 'validator';
|
|
3
3
|
import { debug, debugError } from '../../../utils/debug.util';
|
|
4
4
|
import * as constants from '../../constants';
|
|
5
|
-
import { requestPaymentStripeTr } from '
|
|
5
|
+
import { requestPaymentStripeTr } from '@src/composables/useTranslate';
|
|
6
6
|
import brandPageClient from '../../clients/brand-page.client';
|
|
7
7
|
const INVALID_EMAIL_MESSAGE = () => requestPaymentStripeTr('invalidEmailMessage');
|
|
8
8
|
const STRIPE_SCRIPT_URL = 'https://js.stripe.com/v3/';
|
|
@@ -2,8 +2,8 @@ import { context as baseContext, logoTheme, } from '../../../__fixtures__/brand-
|
|
|
2
2
|
import { faker } from '@faker-js/faker';
|
|
3
3
|
import { DEFAULT_TEXT_ALIGN } from '../../../constants';
|
|
4
4
|
import { applyLogoThemeToBrandPageStyles } from '../../../utils';
|
|
5
|
-
import { BRAND_PAGE } from '
|
|
6
|
-
import { createInitialRequestPaymentContent } from '
|
|
5
|
+
import { BRAND_PAGE } from '@brand-page-maker/components/brand-page-maker/__fixtures__';
|
|
6
|
+
import { createInitialRequestPaymentContent } from '@brand-page-maker/models';
|
|
7
7
|
import { BRAND_PAGE_PUBLISHABLE_KEY } from '../../../__fixtures__/stripe.fixture';
|
|
8
8
|
export const context = {
|
|
9
9
|
...baseContext,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { context as baseContext, logoTheme, } from '../../../__fixtures__/brand-page-sample-data';
|
|
2
|
-
import { createInitialSupportMeContent } from '
|
|
2
|
+
import { createInitialSupportMeContent } from '@brand-page-maker/models';
|
|
3
3
|
import { applyLogoThemeToBrandPageStyles } from '../../../utils';
|
|
4
|
-
import { BRAND_PAGE } from '
|
|
4
|
+
import { BRAND_PAGE } from '@brand-page-maker/components/brand-page-maker/__fixtures__';
|
|
5
5
|
import { faker } from '@faker-js/faker';
|
|
6
6
|
import { DEFAULT_TEXT_ALIGN, SUPPORT_ME_CUSTOM_PRODUCT_NAME, SUPPORT_ME_PRODUCT_NAME, } from '../../../constants';
|
|
7
7
|
import { BRAND_PAGE_PUBLISHABLE_KEY } from '../../../__fixtures__/stripe.fixture';
|
|
@@ -2,7 +2,7 @@ import { defineComponent } from 'vue';
|
|
|
2
2
|
import { PAYMENT_OPTION_DISPLAY_TYPES, PAYMENT_OPTION_IMAGE_TYPES, } from '../../../models';
|
|
3
3
|
import { DEFAULT_CURRENCY_SYMBOL } from '../../../constants';
|
|
4
4
|
import { addOpacityToHex } from '../../../utils/color.util';
|
|
5
|
-
import { RGBAtoHex } from '
|
|
5
|
+
import { RGBAtoHex } from '@utils/helpers';
|
|
6
6
|
const MAX_CUSTOM_REQUEST_CHARS = 500;
|
|
7
7
|
export default defineComponent({
|
|
8
8
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import RequestPayment from './RequestPayment.vue';
|
|
2
2
|
import Payment from '../Payment.vue';
|
|
3
3
|
import { viewModel, context } from '../__fixtures__/request-payment';
|
|
4
|
-
import { setupStoryPinia } from '
|
|
4
|
+
import { setupStoryPinia } from '@brand-page-maker/components/brand-page-maker/__fixtures__/store-fixture';
|
|
5
5
|
import { faker } from '@faker-js/faker';
|
|
6
6
|
import DarkBackground from '../../../storybook-helpers/components/DarkBackground.vue';
|
|
7
7
|
const meta = {
|
|
@@ -2,7 +2,7 @@ import { defineComponent } from 'vue';
|
|
|
2
2
|
import { SUPPORT_ME_CUSTOM_PRODUCT_NAME } from '../../../constants';
|
|
3
3
|
import { isPaymentAmountValid } from '../../../utils';
|
|
4
4
|
import { DEFAULT_CURRENCY_SYMBOL, DEFAULT_CURRENCY_CODE, } from '../../../constants';
|
|
5
|
-
import { paymentTr } from '
|
|
5
|
+
import { paymentTr } from '@src/composables/useTranslate';
|
|
6
6
|
const MAX_CUSTOM_MESSAGE_CHARS = 500;
|
|
7
7
|
export default defineComponent({
|
|
8
8
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { context, viewModel } from '../__fixtures__/support-me';
|
|
2
2
|
import SupportMe from './SupportMe.vue';
|
|
3
|
-
import { setupStoryPinia } from '
|
|
3
|
+
import { setupStoryPinia } from '@brand-page-maker/components/brand-page-maker/__fixtures__/store-fixture';
|
|
4
4
|
import DarkBackground from '../../../storybook-helpers/components/DarkBackground.vue';
|
|
5
5
|
const meta = {
|
|
6
6
|
title: 'BrandPage/Components/Payment/SupportMe',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type { ProfileViewModel } from '
|
|
3
|
-
import type { BrandPageContext } from '
|
|
2
|
+
import type { ProfileViewModel } from '@brand-page/view-models';
|
|
3
|
+
import type { BrandPageContext } from '@brand-page/models';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
5
|
viewModel: {
|
|
6
6
|
type: PropType<ProfileViewModel>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent } from 'vue';
|
|
2
|
-
import { getRenderText, escapeContentText } from '
|
|
3
|
-
import { hasRTEContent } from '
|
|
2
|
+
import { getRenderText, escapeContentText } from '@brand-page/utils';
|
|
3
|
+
import { hasRTEContent } from '@brand-page-maker/utils/rich-text-editor.util';
|
|
4
4
|
export default defineComponent({
|
|
5
5
|
props: {
|
|
6
6
|
viewModel: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ProfileViewModel } from '
|
|
2
|
-
import { type BrandPageContext } from '
|
|
1
|
+
import type { ProfileViewModel } from '@brand-page/view-models';
|
|
2
|
+
import { type BrandPageContext } from '@brand-page/models/brand-page-context.model';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
5
|
component: import("vue").DefineComponent<{}, {}, any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent } from 'vue';
|
|
2
2
|
import Profile from './Profile.vue';
|
|
3
3
|
import { DEFAULT_TEXT_ALIGN } from '../../constants';
|
|
4
|
-
import { MEDIA_SIZES, } from '
|
|
4
|
+
import { MEDIA_SIZES, } from '@brand-page/models/brand-page-context.model';
|
|
5
5
|
export default {
|
|
6
6
|
title: 'Components/BrandPage/Profile',
|
|
7
7
|
component: Profile,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import CartModal from './CartModal.vue';
|
|
2
2
|
import ProductDetailModal from './ProductDetailModal.vue';
|
|
3
3
|
import PaymentModal from './PaymentModal.vue';
|
|
4
|
-
import { setupStoryPinia } from '
|
|
5
|
-
import { useCartStore } from '
|
|
6
|
-
import { useShopConfigStore } from '
|
|
4
|
+
import { setupStoryPinia } from '@brand-page-maker/components/brand-page-maker/__fixtures__/store-fixture';
|
|
5
|
+
import { useCartStore } from '@shared/ecommerce-settings/store/cart-settings-store';
|
|
6
|
+
import { useShopConfigStore } from '@shared/ecommerce-settings/store/shop-settings-store';
|
|
7
7
|
const InitialiseCartStores = () => {
|
|
8
8
|
const shopStore = useShopConfigStore();
|
|
9
9
|
shopStore.addProduct({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="types/lodash-shims" />
|
|
2
2
|
import type { PropType } from 'vue';
|
|
3
|
-
import type { TestimonialSectionViewModel } from '
|
|
4
|
-
import type { BrandPageContext } from '
|
|
3
|
+
import type { TestimonialSectionViewModel } from '@brand-page/view-models';
|
|
4
|
+
import type { BrandPageContext } from '@brand-page/models';
|
|
5
5
|
import type { DebounceHandle } from 'lodash.debounce';
|
|
6
6
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
7
7
|
viewModel: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent } from 'vue';
|
|
2
2
|
import ComponentCommonMixin from '../mixins/component-common.mixin';
|
|
3
|
-
import { getRenderText } from '
|
|
3
|
+
import { getRenderText } from '@brand-page/utils';
|
|
4
4
|
import debounce from 'lodash.debounce';
|
|
5
|
-
import { DEVICE_CSS_TRANSITION_DELAY } from '
|
|
5
|
+
import { DEVICE_CSS_TRANSITION_DELAY } from '@brand-page-maker/constants';
|
|
6
6
|
const DEBOUNCE_WAIT_MS = 100;
|
|
7
7
|
export default defineComponent({
|
|
8
8
|
mixins: [ComponentCommonMixin],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type { VideoViewModel } from '
|
|
2
|
+
import type { VideoViewModel } from '@brand-page/view-models';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
viewModel: {
|
|
5
5
|
type: PropType<VideoViewModel>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { constantsTr, errorTr } from '
|
|
1
|
+
import { constantsTr, errorTr } from '@src/composables/useTranslate';
|
|
2
2
|
export const DISPLAY_TEXT_TITLE = 'Titles';
|
|
3
3
|
export const DISPLAY_TEXT_HEADINGS = 'Headings';
|
|
4
4
|
export const DISPLAY_TEXT_BODY = 'Paragraphs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ALIGN_CENTERED, ALIGN_JUSTIFIED } from '../misc.constants';
|
|
2
|
-
import { tr, commonTr } from '
|
|
2
|
+
import { tr, commonTr } from '@src/composables/useTranslate';
|
|
3
3
|
export const FOOTER_DISPLAY = {
|
|
4
4
|
/** @deprecated */
|
|
5
5
|
ALIGN_CENTERED, // mapped to CENTERED
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ButtonGroupOption } from '
|
|
1
|
+
import type { ButtonGroupOption } from '@brand-page-maker/models/button-group.model';
|
|
2
2
|
export declare const HEADER_DISPLAY: {
|
|
3
3
|
/** @deprecated */
|
|
4
4
|
readonly ALIGN_CENTERED: "centered";
|
|
@@ -434,9 +434,26 @@ export declare class PageModel {
|
|
|
434
434
|
title: string;
|
|
435
435
|
slug: string;
|
|
436
436
|
contents: Content[];
|
|
437
|
+
id: string;
|
|
437
438
|
isHidden?: boolean;
|
|
438
439
|
constructor(options: Partial<Omit<PageModel, 'contents'>> & Partial<Pick<PageModel, 'contents'>>);
|
|
439
440
|
}
|
|
441
|
+
export interface NavRoute {
|
|
442
|
+
id: string;
|
|
443
|
+
pageId: string;
|
|
444
|
+
pageSlug: string;
|
|
445
|
+
isHidden: boolean;
|
|
446
|
+
displayName: string;
|
|
447
|
+
}
|
|
448
|
+
export interface NavOrder {
|
|
449
|
+
routeId: string;
|
|
450
|
+
subRoutes: NavOrder[];
|
|
451
|
+
}
|
|
452
|
+
export declare class NavModel {
|
|
453
|
+
orders: NavOrder[];
|
|
454
|
+
routes: NavRoute[];
|
|
455
|
+
constructor(options?: Partial<NavModel>);
|
|
456
|
+
}
|
|
440
457
|
type AbstractPageHeaderStylesType = Partial<AbstractPageHeaderStyles>;
|
|
441
458
|
export declare abstract class AbstractPageHeaderStyles {
|
|
442
459
|
displayStyle: HeaderDisplayStyle;
|
|
@@ -538,6 +555,7 @@ export declare class BrandPageModel {
|
|
|
538
555
|
pageFooterMobile: PageFooterMobile;
|
|
539
556
|
pageFooterDesktop: PageFooterDesktop;
|
|
540
557
|
pages: PageModel[];
|
|
558
|
+
nav: NavModel;
|
|
541
559
|
isModifiedAfterTemplateApplied?: boolean;
|
|
542
560
|
brandPageType?: BrandPageType;
|
|
543
561
|
faviconUrl?: string;
|
|
@@ -168,12 +168,22 @@ export class PageModel {
|
|
|
168
168
|
title;
|
|
169
169
|
slug;
|
|
170
170
|
contents;
|
|
171
|
+
id;
|
|
171
172
|
isHidden;
|
|
172
173
|
constructor(options) {
|
|
173
174
|
this.title = options.title ?? '';
|
|
174
175
|
this.slug = options.slug ?? '';
|
|
175
176
|
this.contents = options.contents || [];
|
|
176
177
|
this.isHidden = options.isHidden ?? false;
|
|
178
|
+
this.id = options.id || '';
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
export class NavModel {
|
|
182
|
+
orders;
|
|
183
|
+
routes;
|
|
184
|
+
constructor(options = {}) {
|
|
185
|
+
this.orders = options.orders || [];
|
|
186
|
+
this.routes = options.routes || [];
|
|
177
187
|
}
|
|
178
188
|
}
|
|
179
189
|
export class AbstractPageHeaderStyles {
|
|
@@ -403,6 +413,7 @@ export class BrandPageModel {
|
|
|
403
413
|
// @ts-expect-error should be initialised in constructor
|
|
404
414
|
pageFooterDesktop;
|
|
405
415
|
pages;
|
|
416
|
+
nav;
|
|
406
417
|
isModifiedAfterTemplateApplied;
|
|
407
418
|
brandPageType;
|
|
408
419
|
faviconUrl;
|
|
@@ -476,5 +487,6 @@ export class BrandPageModel {
|
|
|
476
487
|
this.cookieOptions = options.cookieOptions;
|
|
477
488
|
this.saveContactSettings = options.saveContactSettings;
|
|
478
489
|
this.paymentConfig = options.paymentConfig;
|
|
490
|
+
this.nav = new NavModel(options.nav);
|
|
479
491
|
}
|
|
480
492
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FONT_SIZE_HEADINGS, FONT_SIZE_TITLE, LINE_HEIGHT_HEADINGS, LINE_HEIGHT_TITLE, FONT_SIZE_BODY, LINE_HEIGHT_BODY, DISPLAY_TEXT_TITLE, DISPLAY_TEXT_HEADINGS, DISPLAY_TEXT_BODY, STYLE_THEME_KEYS, FONT_FAMILY_CONFIGS, DEFAULT_FONT_FAMILY_KEY, DISPlAY_TEXT_BUTTONS, } from '../constants';
|
|
2
|
-
import { commonTr, styleSettingsTr } from '
|
|
2
|
+
import { commonTr, styleSettingsTr } from '@src/composables/useTranslate';
|
|
3
3
|
export const TEXT_STYLE_TYPES = {
|
|
4
4
|
titles: 'titles',
|
|
5
5
|
headings: 'headings',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import isHexColor from 'validator/lib/isHexColor';
|
|
2
|
-
import { hexToRGBA, isColor } from '
|
|
2
|
+
import { hexToRGBA, isColor } from '@src/utils/helpers';
|
|
3
3
|
import Color, {} from 'color';
|
|
4
4
|
// function from https://stackoverflow.com/a/9733420/3695983
|
|
5
5
|
export const luminance = (r, g, b) => {
|
|
@@ -11,7 +11,7 @@ export * from './context.util';
|
|
|
11
11
|
export * from './color.util';
|
|
12
12
|
export * from './personalisation.util';
|
|
13
13
|
export * from './migration.util';
|
|
14
|
-
export * from '
|
|
14
|
+
export * from './validation.util';
|
|
15
15
|
export * as logoUtil from './logo.util';
|
|
16
16
|
export * as svgUtil from './svg.util';
|
|
17
17
|
export * as svgShapeUtil from './svg-shape.util';
|
|
@@ -11,7 +11,7 @@ export * from './context.util';
|
|
|
11
11
|
export * from './color.util';
|
|
12
12
|
export * from './personalisation.util';
|
|
13
13
|
export * from './migration.util';
|
|
14
|
-
export * from '
|
|
14
|
+
export * from './validation.util';
|
|
15
15
|
export * as logoUtil from './logo.util';
|
|
16
16
|
export * as svgUtil from './svg.util';
|
|
17
17
|
export * as svgShapeUtil from './svg-shape.util';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BrandPageModel } from '../../';
|
|
2
|
-
import { type MigrationData } from '
|
|
2
|
+
import { type MigrationData } from '@brand-page/utils';
|
|
3
3
|
export declare const applyTextContentTextToTextItemsMigration: (brandPageModel: BrandPageModel) => void;
|
|
4
4
|
export declare const migrateProfileContentToHaveTextStyles: (brandPageModel: BrandPageModel) => void;
|
|
5
5
|
export declare const migrateMailingListContentToHaveTextStyles: (brandPageModel: BrandPageModel) => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getLogoVariationIndexFromLogoImageUrl, getLogoDraftTokenFromLogoImageUrl, safeGetLogoImageFromLogoImageUrl, } from '../logo.util';
|
|
2
2
|
import { DEFAULT_LETTER_SPACING, FOOTER_DISPLAY, NavigationDesktop, NavigationMobile, PageFooterDesktop, PageFooterMobile, PageHeaderDesktop, PageHeaderMobile, } from '../../';
|
|
3
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 '../../';
|
|
4
|
-
import { isAboutContent, isBannerContent, isButtonContent, isContact, isImagesContent, isLogoContent, isMailingListContent, isPayment, isProfileContent, isShapesContent, isSocialLinks, isSupportMeContent, isTestimonialContent, isTextContent, } from '
|
|
5
|
-
import { createInitialLogoContent } from '
|
|
4
|
+
import { isAboutContent, isBannerContent, isButtonContent, isContact, isImagesContent, isLogoContent, isMailingListContent, isPayment, isProfileContent, isShapesContent, isSocialLinks, isSupportMeContent, isTestimonialContent, isTextContent, } from '@brand-page/utils';
|
|
5
|
+
import { createInitialLogoContent } from '@brand-page-maker/models';
|
|
6
6
|
export const applyTextContentTextToTextItemsMigration = (brandPageModel) => {
|
|
7
7
|
const textContents = brandPageModel.pages.reduce((acc, cur) => {
|
|
8
8
|
return [...acc, ...cur.contents.filter(isTextContent)];
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { v4 as uuid } from 'uuid';
|
|
2
|
+
import { NavModel } from '@brand-page/models';
|
|
3
|
+
export const migration12 = async (migrationResult) => {
|
|
4
|
+
const { brandPageModel } = migrationResult;
|
|
5
|
+
const pages = brandPageModel.pages;
|
|
6
|
+
// Add uuid to each page as id
|
|
7
|
+
pages.forEach((page) => {
|
|
8
|
+
if (!page.id) {
|
|
9
|
+
page.id = uuid();
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
const routes = [];
|
|
13
|
+
const orders = [];
|
|
14
|
+
pages.forEach((page) => {
|
|
15
|
+
const routeId = uuid();
|
|
16
|
+
routes.push({
|
|
17
|
+
id: routeId,
|
|
18
|
+
pageId: page.id,
|
|
19
|
+
pageSlug: page.slug,
|
|
20
|
+
isHidden: page.isHidden ?? false,
|
|
21
|
+
displayName: page.title,
|
|
22
|
+
});
|
|
23
|
+
orders.push({
|
|
24
|
+
routeId,
|
|
25
|
+
subRoutes: [],
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
brandPageModel.nav = new NavModel({ routes, orders });
|
|
29
|
+
return migrationResult;
|
|
30
|
+
};
|
|
@@ -13,6 +13,7 @@ import { migration08 } from './migration/migration-08';
|
|
|
13
13
|
import { migration09 } from './migration/migration-09';
|
|
14
14
|
import { migration10 } from './migration/migration-10';
|
|
15
15
|
import { migration11 } from './migration/migration-11';
|
|
16
|
+
import { migration12 } from './migration/migration-12';
|
|
16
17
|
const MIGRATION_TABLE = [
|
|
17
18
|
{
|
|
18
19
|
version: 1,
|
|
@@ -85,6 +86,11 @@ const MIGRATION_TABLE = [
|
|
|
85
86
|
migrateFn: migration11,
|
|
86
87
|
description: 'Remove backgroundColorEnabled flag from page headers',
|
|
87
88
|
},
|
|
89
|
+
{
|
|
90
|
+
version: 12,
|
|
91
|
+
migrateFn: migration12,
|
|
92
|
+
description: 'Migrating nav model to support sub nav feature',
|
|
93
|
+
},
|
|
88
94
|
];
|
|
89
95
|
export const GetLatestModelVersion = () => Math.max(...MIGRATION_TABLE.map((x) => x.version));
|
|
90
96
|
export const migrateBrandPageModel = async (brandPageModel, options) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { escapeContentText } from '
|
|
2
|
-
import { DEFAULT_PERSONALISATION_MAPPING, PERSONALISATION_MAPPINGS, TEXT_MEDIA_CONTENT_TYPES, } from '
|
|
1
|
+
import { escapeContentText } from '@brand-page/utils';
|
|
2
|
+
import { DEFAULT_PERSONALISATION_MAPPING, PERSONALISATION_MAPPINGS, TEXT_MEDIA_CONTENT_TYPES, } from '@brand-page-maker/constants/personalisation.constant';
|
|
3
3
|
import { BRAND_PAGE_TYPES, ShapeAspectRatioCategory } from '../models';
|
|
4
4
|
import { getColorReplacementsFromSvgString, getColorReplacementsFromSvgStringServer, } from './svg-color.util';
|
|
5
5
|
const ASPECT_RATIO_LOWER_CUT_OFF = 0.5;
|
|
@@ -5,4 +5,4 @@ export declare const getRouteParamsByPage: (isCustomDomain: boolean, brandPageSl
|
|
|
5
5
|
slug: string;
|
|
6
6
|
pageSlug: string;
|
|
7
7
|
};
|
|
8
|
-
export declare const getRouteNameByPageIndex: (isCustomDomain: boolean, pageIndex
|
|
8
|
+
export declare const getRouteNameByPageIndex: (isCustomDomain: boolean, pageIndex?: number) => string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { VIEWPORTS, NavigationDesktop, NavigationMobile } from '../models';
|
|
2
2
|
import { PageStyles, PageHeaderMobile, PageHeaderDesktop, PageFooterMobile, PageFooterDesktop, } from '../models';
|
|
3
3
|
import { STYLE_THEME_KEYS } from '../constants';
|
|
4
|
-
import { arrayToLinearGradient, linearGradientToArray, isColorLinearGradient, RGBAtoHex, } from '
|
|
4
|
+
import { arrayToLinearGradient, linearGradientToArray, isColorLinearGradient, RGBAtoHex, } from '@src/utils/helpers';
|
|
5
5
|
import { addTransparentAlphaChannelToHex, calculateLuminanceRatio, getNewColorBasedOnTargetColorTheme, } from './color.util';
|
|
6
|
-
import { isRgbColor } from '
|
|
6
|
+
import { isRgbColor } from '@src/utils/helpers';
|
|
7
7
|
import chroma from 'chroma-js';
|
|
8
|
-
import { hasRTEContent, RTE_ALLOWED_SECTION_TYPES, } from '
|
|
8
|
+
import { hasRTEContent, RTE_ALLOWED_SECTION_TYPES, } from '@brand-page-maker/utils';
|
|
9
9
|
/**
|
|
10
10
|
* Simple utility to convert any color format to hex for consistent comparison
|
|
11
11
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RGBAtoHex } from '
|
|
1
|
+
import { RGBAtoHex } from '@src/utils/helpers';
|
|
2
2
|
import * as uuid from 'uuid';
|
|
3
3
|
import { getStyleDeclarations, getSvgConfig, handleAttributes, modifySvgMetadata, } from './svg-shape.util';
|
|
4
4
|
import { parse, } from 'svg-parser';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isEmail } from '
|
|
2
|
-
import { errorTr } from '
|
|
1
|
+
import { isEmail } from '@src/utils/validator.util';
|
|
2
|
+
import { errorTr } from '@src/composables/useTranslate';
|
|
3
3
|
const MAX_EMAIL_LENGTH = 320;
|
|
4
4
|
const MAX_PHONE_LENGTH = 50;
|
|
5
5
|
const MAX_NAME_LENGTH = 250;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isValidUrl } from '../../helpers/url.helper';
|
|
2
|
-
import { getPlainTextFromRTE } from '
|
|
3
|
-
import { isEmail, isTel } from '
|
|
2
|
+
import { getPlainTextFromRTE } from '@brand-page-maker/utils/rich-text-editor.util';
|
|
3
|
+
import { isEmail, isTel } from '@src/utils/validator.util';
|
|
4
4
|
// Constants
|
|
5
5
|
const HTML_ENTITIES = {
|
|
6
6
|
' ': ' ',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ImageContent, ProfileContent, TextContent, PageStyles, Content, BrandPageModel, ImageGalleryContent, GalleryStyles, BannerSectionContent, ImagesSectionContent, BrandPageType, PageHeaderDesktop, PageFooterDesktop, PageFooterMobile, PageHeaderMobile, LogoImageModel, LogoTemplateImageModel, BookingSectionContent } from '../models';
|
|
2
|
-
import type { ImageViewModel, LogoViewModel, ProfileViewModel, TextViewModel, ContentViewModel, BrandPageViewModel, ImageGalleryViewModel, PageViewModel, BannerSectionViewModel, PageHeaderViewModel, PageFooterViewModel, TextImageSectionViewModel, BookingSectionViewModel, PageStylesViewModel } from '../view-models';
|
|
1
|
+
import type { ImageContent, ProfileContent, TextContent, PageStyles, Content, BrandPageModel, ImageGalleryContent, GalleryStyles, BannerSectionContent, ImagesSectionContent, BrandPageType, PageHeaderDesktop, PageFooterDesktop, PageFooterMobile, PageHeaderMobile, LogoImageModel, LogoTemplateImageModel, BookingSectionContent, NavModel } from '../models';
|
|
2
|
+
import type { ImageViewModel, LogoViewModel, ProfileViewModel, TextViewModel, ContentViewModel, BrandPageViewModel, ImageGalleryViewModel, PageViewModel, BannerSectionViewModel, PageHeaderViewModel, PageFooterViewModel, TextImageSectionViewModel, BookingSectionViewModel, PageStylesViewModel, NavViewModel } from '../view-models';
|
|
3
3
|
export declare const applyViewModelTextStyles: <T extends ContentViewModel>(content: T, styles: PageStyles) => T;
|
|
4
4
|
export declare const mapToImageViewModel: (content: ImageContent) => ImageViewModel;
|
|
5
5
|
export declare const mapToImageGalleryViewModel: (content: ImageGalleryContent, globalStyles: GalleryStyles) => ImageGalleryViewModel;
|
|
@@ -8,12 +8,15 @@ export declare const mapToTextViewModel: (content: TextContent, styles: PageStyl
|
|
|
8
8
|
export declare const mapToBannerSectionViewModel: (content: BannerSectionContent, styles: PageStyles, options: ViewModelMappingOptions) => BannerSectionViewModel;
|
|
9
9
|
export declare const mapToImagesSectionViewModel: (content: ImagesSectionContent, styles: PageStyles, brandPageType: BrandPageType) => TextImageSectionViewModel;
|
|
10
10
|
export declare const mapToBookingSectionViewModel: (content: BookingSectionContent, styles: PageStyles) => BookingSectionViewModel;
|
|
11
|
+
export declare const mapToNavViewModel: (nav: NavModel, brandPageSlug?: string, isCustomDomain?: boolean) => NavViewModel;
|
|
11
12
|
export declare const mapToPageStyleViewModel: (pageStyles: PageStyles, options: ViewModelMappingOptions) => PageStylesViewModel;
|
|
12
13
|
export declare const mapToPageHeaderViewModel: (pageHeader: PageHeaderDesktop | PageHeaderMobile, pageStyles: PageStyles, pages: PageViewModel[], useOldLogoRenderSize?: boolean) => PageHeaderViewModel;
|
|
13
14
|
export declare const mapToPageFooterViewModel: (pageFooter: PageFooterDesktop | PageFooterMobile, pageStyles: PageStyles, useOldLogoRenderSize?: boolean) => PageFooterViewModel;
|
|
14
15
|
export declare const mapToViewModel: (styles: PageStyles, brandPageType: BrandPageType, options: ViewModelMappingOptions) => (content: Content) => ContentViewModel | undefined;
|
|
15
16
|
interface ViewModelMappingOptions {
|
|
16
17
|
useOldLogoRenderSize?: boolean;
|
|
18
|
+
isCustomDomain?: boolean;
|
|
19
|
+
brandPageSlug?: string;
|
|
17
20
|
getVideoUrls?: (token: string) => {
|
|
18
21
|
videoUrl: string;
|
|
19
22
|
previewImageUrl: string;
|
|
@@ -3,16 +3,18 @@ import { assertUnreachable } from '../../helpers/ts.helper';
|
|
|
3
3
|
import { ButtonStyles, SENSITIVE_CONTENT_TYPES, VIEWPORTS } from '../models';
|
|
4
4
|
import { NavigationMobile, NavigationDesktop, BRAND_PAGE_TYPES, BUTTON_LINK_TYPE, NavigationMenuStyles, } from '../models';
|
|
5
5
|
import { isHexTransparent, setRgbAlpha } from './color.util';
|
|
6
|
-
import { isHexColor } from '
|
|
6
|
+
import { isHexColor } from '@src/utils/helpers';
|
|
7
7
|
import { CONTENT_TEXT_STYLE_PROPERTY_KEYS, FALLBACK_DEFAULT_LINK_COLOR, FONT_SIZE_BODY, LINE_HEIGHT_BODY, DEFAULT_LOGO_HEIGHT, DEFAULT_LOGO_WIDTH, ButtonSoftBoxShadowSize, ButtonBoxShadowSize, BoxShadowSpread, ALIGN_LEFT_ALIGNED, ALIGN_RIGHT_ALIGNED, MAX_IMAGES_SECTION_ALIGNMENT_ITEMS_LENGTH, FONT_FAMILY_CONFIGS, isGoogleType, LINE_HEIGHT_HEADINGS, FONT_SIZE_HEADINGS, DEFAULT_TEXT_ALIGN, IMAGE_RESOLUTION_PRESETS, BIG_IMAGE, ALIGN_LEFT_BIG_IMAGE, ALIGN_CARD_CENTER_IMAGE, ALIGN_CARD_LEFT_IMAGE, } from '../constants';
|
|
8
8
|
import uniq from 'lodash/uniq';
|
|
9
9
|
import { generateGoogleFontUrl } from './font-loader.util';
|
|
10
10
|
import { isValidSvgUrl } from './image.util';
|
|
11
11
|
import { isLogoContent } from './model.util';
|
|
12
12
|
import { getBoxShadowValue } from './button.util';
|
|
13
|
+
import { getRouteNameByPageIndex, getRouteParamsByPage } from './route.util';
|
|
13
14
|
const BUTTON_BORDER_RADIUS = '9999px';
|
|
14
15
|
const CONTENT_BORDER_RADIUS = '48px';
|
|
15
16
|
const PROFILE_PADDING_TOP = '1rem';
|
|
17
|
+
const MAX_SUB_NAV_DEPTH = 1;
|
|
16
18
|
const applyContentBorderRadius = (styles) => {
|
|
17
19
|
return {
|
|
18
20
|
...styles,
|
|
@@ -604,6 +606,27 @@ export const mapToBookingSectionViewModel = (content, styles) => {
|
|
|
604
606
|
isFullWidth: true,
|
|
605
607
|
}, styles);
|
|
606
608
|
};
|
|
609
|
+
// Recursively build the nav item view model for each page/sub page in the nav
|
|
610
|
+
const buildNavItemViewModel = (order, routes, parentPath, isFirstPage, brandPageSlug, isCustomDomain, depth = 0) => {
|
|
611
|
+
const route = routes.find((r) => r.id === order.routeId);
|
|
612
|
+
const pageSlug = route?.pageSlug ?? '';
|
|
613
|
+
const relativePath = parentPath ? `${parentPath}/${pageSlug}` : pageSlug;
|
|
614
|
+
return {
|
|
615
|
+
displayName: route?.displayName ?? '',
|
|
616
|
+
routeName: getRouteNameByPageIndex(Boolean(isCustomDomain), isFirstPage ? 0 : 9999),
|
|
617
|
+
routeParams: getRouteParamsByPage(Boolean(isCustomDomain), brandPageSlug ?? '', pageSlug),
|
|
618
|
+
relativePath,
|
|
619
|
+
isHidden: route?.isHidden ?? false,
|
|
620
|
+
nestedNavItems: depth >= MAX_SUB_NAV_DEPTH
|
|
621
|
+
? []
|
|
622
|
+
: order.subRoutes.map((subRoute) => buildNavItemViewModel(subRoute, routes, relativePath, false, brandPageSlug, isCustomDomain, depth + 1)),
|
|
623
|
+
};
|
|
624
|
+
};
|
|
625
|
+
export const mapToNavViewModel = (nav, brandPageSlug, isCustomDomain) => {
|
|
626
|
+
return {
|
|
627
|
+
navItems: nav.orders.map((order, idx) => buildNavItemViewModel(order, nav.routes, '', idx === 0, brandPageSlug, isCustomDomain)),
|
|
628
|
+
};
|
|
629
|
+
};
|
|
607
630
|
export const mapToPageStyleViewModel = (pageStyles, options) => {
|
|
608
631
|
return {
|
|
609
632
|
backgroundStylesViewModel: mapBackgroundStylesToViewModel(pageStyles.backgroundStyles, options),
|
|
@@ -781,14 +804,17 @@ export const getBrandPageViewModelFromBrandPageModel = (model, brandPageToken, s
|
|
|
781
804
|
return {
|
|
782
805
|
title: p.title,
|
|
783
806
|
slug: p.slug,
|
|
807
|
+
id: p.id,
|
|
784
808
|
contents,
|
|
785
809
|
isHidden: Boolean(p?.isHidden),
|
|
786
810
|
};
|
|
787
811
|
});
|
|
812
|
+
const nav = mapToNavViewModel(model.nav, options.brandPageSlug, options.isCustomDomain);
|
|
788
813
|
return {
|
|
789
814
|
brandPageToken,
|
|
790
815
|
pages,
|
|
791
816
|
showBrandCrowdLogo,
|
|
817
|
+
nav,
|
|
792
818
|
styles: mapToPageStyleViewModel(model.styles, options),
|
|
793
819
|
headerViewModelDesktop: mapToPageHeaderViewModel(model.pageHeaderDesktop, model.styles, pages, options.useOldLogoRenderSize),
|
|
794
820
|
headerViewModelMobile: mapToPageHeaderViewModel(model.pageHeaderMobile, model.styles, pages, options.useOldLogoRenderSize),
|