@designcrowd/library.brand-page 6.2.11-builder-v2-1 → 6.2.12
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-Dg2pOwbr.js → CreatedOnBrandCrowd-de-de-BtVKllNQ.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-BILs_hsB.js → CreatedOnBrandCrowd-en-us-CX5V0v8u.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-VpxQ0N5F.js → CreatedOnBrandCrowd-es-es-CbA02PCL.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-CFHWRHzi.js → CreatedOnBrandCrowd-fr-ca-BQAKruBF.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-CFHWRHzi.js → CreatedOnBrandCrowd-fr-fr-BQAKruBF.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-CZfs45s9.js → CreatedOnBrandCrowd-pt-br-Yk_yzB3s.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-CZfs45s9.js → CreatedOnBrandCrowd-pt-pt-Yk_yzB3s.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-DYMQ6sIF.js → CreatedOnDcom-de-de-DJZQbPSD.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-Dj5sdPid.js → CreatedOnDcom-en-us-BJvNAa4l.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-Cx9yNTro.js → CreatedOnDcom-es-es-CUwB1FRY.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-Bzr0SjGq.js → CreatedOnDcom-fr-ca-CK54U4oh.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-BgqKY35F.js → CreatedOnDcom-fr-fr-DuUNBGrM.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-CXK6qfvL.js → CreatedOnDcom-pt-br-BfODpFNV.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-B8SggNTQ.js → CreatedOnDcom-pt-pt-Cf6u2GCg.js} +1 -1
- package/lib/src/brand-page/__fixtures__/production-text-style-resolver.fixture.d.ts +16 -0
- package/lib/src/brand-page/__fixtures__/production-text-style-resolver.fixture.js +35 -0
- package/lib/src/brand-page/components/contact-form/ContactForm.mixin.d.ts +3 -0
- package/lib/src/brand-page/components/contact-form/ContactForm.mixin.js +19 -13
- package/lib/src/brand-page/components/mailing-list/MailingList.mixin.d.ts +3 -1
- package/lib/src/brand-page/components/mailing-list/MailingList.mixin.js +17 -2
- package/lib/src/brand-page/components/navigation/button-carousel/ButtonCarouselNavigation.mixin.d.ts +11 -3
- package/lib/src/brand-page/components/navigation/button-carousel/ButtonCarouselNavigation.mixin.js +35 -1
- package/lib/src/brand-page/components/navigation/navigation-side-menu/NavigationSideMenu.mixin.d.ts +8 -2
- package/lib/src/brand-page/components/navigation/navigation-side-menu/NavigationSideMenu.mixin.js +27 -3
- package/lib/src/brand-page/components/page/Page.mixin.d.ts +5 -2
- package/lib/src/brand-page/components/page/Page.mixin.js +33 -27
- package/lib/src/brand-page/components/page-footer/PageFooter.mixin.d.ts +7 -2
- package/lib/src/brand-page/components/page-footer/PageFooter.mixin.js +21 -1
- package/lib/src/brand-page/components/payment/Payment.mixin.d.ts +5 -2
- package/lib/src/brand-page/components/payment/Payment.mixin.js +22 -2
- package/lib/src/brand-page/components/payment/support-me/SupportMe.mixin.d.ts +6 -2
- package/lib/src/brand-page/components/payment/support-me/SupportMe.mixin.js +32 -1
- package/lib/src/brand-page/components/social-links/SocialLinks.stories.js +0 -3
- package/lib/src/brand-page/components/testimonial-section/__fixtures__/data.js +0 -3
- package/lib/src/brand-page/components/text/Text.stories.js +0 -17
- package/lib/src/brand-page/constants/font.constants.d.ts +62 -0
- package/lib/src/brand-page/constants/font.constants.js +35 -0
- package/lib/src/brand-page/models/brand-page-context.model.d.ts +2 -0
- package/lib/src/brand-page/models/brand-page-context.model.js +7 -0
- package/lib/src/brand-page/models/index.d.ts +23 -24
- package/lib/src/brand-page/models/index.js +20 -7
- package/lib/src/brand-page/models/navigation-styles.model.d.ts +1 -1
- package/lib/src/brand-page/models/navigation-styles.model.js +17 -8
- package/lib/src/brand-page/models/payment.model.d.ts +11 -6
- package/lib/src/brand-page/models/styles.model.d.ts +53 -7
- package/lib/src/brand-page/models/styles.model.js +115 -27
- package/lib/src/brand-page/utils/color-palette.util.d.ts +43 -23
- package/lib/src/brand-page/utils/color-palette.util.js +65 -27
- package/lib/src/brand-page/utils/color.util.d.ts +13 -9
- package/lib/src/brand-page/utils/color.util.js +56 -15
- package/lib/src/brand-page/utils/container-text-color.util.d.ts +46 -13
- package/lib/src/brand-page/utils/container-text-color.util.js +321 -41
- package/lib/src/brand-page/utils/index.d.ts +1 -0
- package/lib/src/brand-page/utils/index.js +1 -0
- package/lib/src/brand-page/utils/migration/migration-20.js +6 -2
- package/lib/src/brand-page/utils/migration/migration-21.js +34 -6
- package/lib/src/brand-page/utils/migration/migration-22.d.ts +99 -0
- package/lib/src/brand-page/utils/migration/migration-22.js +909 -0
- package/lib/src/brand-page/utils/migration.util.js +17 -0
- package/lib/src/brand-page/utils/model.util.d.ts +4 -0
- package/lib/src/brand-page/utils/model.util.js +4 -0
- package/lib/src/brand-page/utils/personalisation.util.js +9 -1
- package/lib/src/brand-page/utils/rte-role-lift.util.d.ts +72 -0
- package/lib/src/brand-page/utils/rte-role-lift.util.js +275 -0
- package/lib/src/brand-page/utils/style.util.d.ts +5 -1
- package/lib/src/brand-page/utils/style.util.js +34 -11
- package/lib/src/brand-page/utils/text-role-css.util.d.ts +19 -0
- package/lib/src/brand-page/utils/text-role-css.util.js +186 -0
- package/lib/src/brand-page/utils/text-role-reconnect.util.d.ts +90 -0
- package/lib/src/brand-page/utils/text-role-reconnect.util.js +434 -0
- package/lib/src/brand-page/utils/text-style.util.d.ts +53 -23
- package/lib/src/brand-page/utils/text-style.util.js +122 -22
- package/lib/src/brand-page/utils/view-model.util.d.ts +9 -1
- package/lib/src/brand-page/utils/view-model.util.js +124 -111
- package/lib/src/brand-page/view-models.d.ts +1 -0
- package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.d.ts +4 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +34 -2
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.js +4 -4
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMakerTemplateSettings.mixin.d.ts +4 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.js +0 -10
- package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/content-settings-items.fixture.js +0 -1
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +44 -138
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.js +0 -28
- package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.d.ts +4 -1
- package/lib/src/brand-page-maker/components/navigation/Navigation.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/preview/Preview.mixin.d.ts +7 -0
- package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.d.ts +21 -0
- package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +25 -1
- package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +25 -1
- package/lib/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.d.ts +21 -0
- package/lib/src/brand-page-maker/components/social-share/SocialShare.mixin.d.ts +4 -1
- package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +25 -1
- package/lib/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.d.ts +21 -0
- package/lib/src/brand-page-maker/composables/ai-chat/ai-builder-experiment.d.ts +10 -0
- package/lib/src/brand-page-maker/composables/ai-chat/ai-builder-experiment.js +11 -0
- package/lib/src/brand-page-maker/composables/ai-chat/useAiMetadataBuilder.d.ts +1 -0
- package/lib/src/brand-page-maker/composables/ai-chat/useAiMetadataBuilder.js +1 -0
- package/lib/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.js +14 -0
- package/lib/src/brand-page-maker/composables/rich-text-editor/extensions/RoleTypographyFill.d.ts +16 -0
- package/lib/src/brand-page-maker/composables/rich-text-editor/extensions/RoleTypographyFill.js +61 -0
- package/lib/src/brand-page-maker/composables/rich-text-editor/extensions/RteClipboard.d.ts +11 -0
- package/lib/src/brand-page-maker/composables/rich-text-editor/extensions/RteClipboard.js +236 -0
- package/lib/src/brand-page-maker/composables/rich-text-editor/font.d.ts +2 -1
- package/lib/src/brand-page-maker/composables/rich-text-editor/font.js +25 -6
- package/lib/src/brand-page-maker/composables/rich-text-editor/formatting.d.ts +17 -4
- package/lib/src/brand-page-maker/composables/rich-text-editor/formatting.js +204 -17
- package/lib/src/brand-page-maker/composables/rich-text-editor/hyperlink.d.ts +1 -1
- package/lib/src/brand-page-maker/composables/rich-text-editor/hyperlink.js +29 -31
- package/lib/src/brand-page-maker/composables/rich-text-editor/keepMarksOnEmpty.d.ts +20 -0
- package/lib/src/brand-page-maker/composables/rich-text-editor/keepMarksOnEmpty.js +60 -0
- package/lib/src/brand-page-maker/composables/rich-text-editor/spacing.d.ts +2 -1
- package/lib/src/brand-page-maker/composables/rich-text-editor/spacing.js +22 -6
- package/lib/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.d.ts +10 -4
- package/lib/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.js +319 -275
- package/lib/src/brand-page-maker/constants/config-settings-constant.js +1 -5
- package/lib/src/brand-page-maker/convertors/text-css-style-options.convertor.js +6 -2
- package/lib/src/brand-page-maker/convertors/text-size-value.convertor.d.ts +1 -1
- package/lib/src/brand-page-maker/convertors/text-size-value.convertor.js +3 -1
- package/lib/src/brand-page-maker/default-getters/payment-text-and-border-color.default-getter.js +7 -14
- package/lib/src/brand-page-maker/default-getters/text-color.default-getter.js +6 -13
- package/lib/src/brand-page-maker/models/content-settings.d.ts +8 -0
- package/lib/src/brand-page-maker/models/content-settings.js +112 -81
- package/lib/src/brand-page-maker/stores/admin-logo-settings/admin-logo-settings-store-utils.d.ts +2 -2
- package/lib/src/brand-page-maker/stores/admin-logo-settings/admin-logo-settings-store-utils.js +5 -2
- package/lib/src/brand-page-maker/stores/admin-logo-settings/admin-logo-settings-store.js +4 -3
- package/lib/src/brand-page-maker/stores/ai-checkpoint/ai-checkpoint-store.d.ts +1257 -117
- package/lib/src/brand-page-maker/stores/ai-thread/ai-website-builder-thread-store.d.ts +9 -2
- package/lib/src/brand-page-maker/stores/ai-thread/ai-website-builder-thread-store.js +20 -0
- package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.d.ts +21 -0
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.d.ts +6 -1
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +17 -9
- package/lib/src/brand-page-maker/stores/history/history-store.d.ts +59 -5
- package/lib/src/brand-page-maker/stores/history/history-store.js +22 -2
- package/lib/src/brand-page-maker/utils/apply-color-strategy.js +26 -8
- package/lib/src/brand-page-maker/utils/index.d.ts +2 -1
- package/lib/src/brand-page-maker/utils/index.js +2 -1
- package/lib/src/brand-page-maker/utils/rich-text-editor.util.d.ts +117 -15
- package/lib/src/brand-page-maker/utils/rich-text-editor.util.js +435 -281
- package/lib/src/brand-page-maker/utils/rte-authoring.util.d.ts +4 -0
- package/lib/src/brand-page-maker/utils/rte-authoring.util.js +101 -0
- package/lib/src/brand-page-maker/utils/rte-clipboard.util.d.ts +126 -0
- package/lib/src/brand-page-maker/utils/rte-clipboard.util.js +307 -0
- package/lib/src/brand-page-maker/utils/rte-sanitize.util.js +13 -3
- package/lib/src/{bundled-translations-zfiA5Tsw.js → bundled-translations-yGrvPE5i.js} +17 -17
- package/lib/src/{bundled-translations.de-DE-ChsdSyAP.js → bundled-translations.de-DE-L4Znf8Hs.js} +17 -17
- package/lib/src/{bundled-translations.es-ES-DflsWQK0.js → bundled-translations.es-ES-D6iticrK.js} +15 -15
- package/lib/src/{bundled-translations.fr-CA-fpDRuZ52.js → bundled-translations.fr-CA-BgAVE-9k.js} +25 -25
- package/lib/src/{bundled-translations.fr-FR-Bub73Zt-.js → bundled-translations.fr-FR-B8GbyqxQ.js} +17 -17
- package/lib/src/{bundled-translations.pt-BR-BlnWE9TB.js → bundled-translations.pt-BR-DjPU3Db7.js} +25 -25
- package/lib/src/{bundled-translations.pt-PT-DmzXlnaS.js → bundled-translations.pt-PT-BaepaDpr.js} +23 -23
- package/lib/src/bundles/bundled-translations.de-DE.json +21 -2
- package/lib/src/bundles/bundled-translations.es-ES.json +21 -2
- package/lib/src/bundles/bundled-translations.fr-CA.json +21 -2
- package/lib/src/bundles/bundled-translations.fr-FR.json +21 -2
- package/lib/src/bundles/bundled-translations.json +21 -2
- package/lib/src/bundles/bundled-translations.pt-BR.json +21 -2
- package/lib/src/bundles/bundled-translations.pt-PT.json +21 -2
- package/lib/src/clients/ai-assistant-client.d.ts +7 -1
- package/lib/src/clients/ai-assistant-client.js +7 -15
- package/lib/src/composables/useTranslate.d.ts +1 -1
- package/lib/src/composables/useTranslate.js +1 -1
- package/lib/src/css/library.brand-page-brandCrowd.min.css +284 -188
- package/lib/src/css/library.brand-page-brandPage.min.css +284 -188
- package/lib/src/css/library.brand-page-designCom.min.css +284 -188
- package/lib/src/css/library.brand-page-preview.min.css +284 -188
- package/lib/src/index.d.ts +2 -1
- package/lib/src/index.mjs +195 -191
- package/lib/src/{lib-7gtW85nE.js → lib-kGRlD3_P.js} +39082 -36131
- package/lib/src/lib.js +2 -1
- package/lib/src/metadata-builder/builders/footer-builder.js +4 -5
- package/lib/src/metadata-builder/builders/global-role-propagation.d.ts +58 -0
- package/lib/src/metadata-builder/builders/global-role-propagation.js +246 -0
- package/lib/src/metadata-builder/builders/global-styles-builder.d.ts +1 -0
- package/lib/src/metadata-builder/builders/global-styles-builder.js +116 -45
- package/lib/src/metadata-builder/builders/header-builder.js +13 -4
- package/lib/src/metadata-builder/builders/section-builders/about-section-builder.js +3 -3
- package/lib/src/metadata-builder/builders/section-builders/banner-section-builder.js +3 -3
- package/lib/src/metadata-builder/builders/section-builders/booking-section-builder.js +3 -3
- package/lib/src/metadata-builder/builders/section-builders/contact-form-builder.js +4 -4
- package/lib/src/metadata-builder/builders/section-builders/images-section-builder.js +3 -3
- package/lib/src/metadata-builder/builders/section-builders/mailing-list-builder.js +2 -2
- package/lib/src/metadata-builder/builders/section-builders/mailing-list-section-builder.js +2 -2
- package/lib/src/metadata-builder/builders/section-builders/profile-section-builder.js +4 -4
- package/lib/src/metadata-builder/builders/section-builders/shapes-section-builder.js +3 -3
- package/lib/src/metadata-builder/builders/section-builders/social-links-builder.js +8 -2
- package/lib/src/metadata-builder/builders/section-builders/testimonial-section-builder.js +2 -2
- package/lib/src/metadata-builder/builders/section-builders/text-section-builder.js +60 -29
- package/lib/src/metadata-builder/builders/section-field-maps.js +1 -0
- package/lib/src/metadata-builder/builders/section-field-utils.d.ts +48 -19
- package/lib/src/metadata-builder/builders/section-field-utils.js +128 -52
- package/lib/src/metadata-builder/builders/section-rules/global-styles.rules.d.ts +4 -2
- package/lib/src/metadata-builder/builders/section-rules/global-styles.rules.js +28 -12
- package/lib/src/metadata-builder/builders/section-rules/social-links.rules.js +5 -1
- package/lib/src/metadata-builder/helpers/rte.helpers.d.ts +1 -1
- package/lib/src/metadata-builder/helpers/rte.helpers.js +97 -40
- package/lib/src/metadata-builder/metadata-executor.js +23 -1
- package/lib/src/metadata-builder/models.d.ts +2 -0
- package/lib/src/metadata-builder/parsers/ai-toolcall-parser.d.ts +18 -19
- package/lib/src/metadata-builder/parsers/section-tool-arguments.d.ts +18 -1
- package/lib/src/metadata-builder/sanitizers/rte-schema-check.js +1 -1
- package/lib/src/metadata-builder/sanitizers/sanitizer-rules.d.ts +0 -1
- package/lib/src/metadata-builder/sanitizers/sanitizer-rules.js +5 -8
- package/lib/src/metadata-builder/sanitizers/section-args-validator.d.ts +7 -16
- package/lib/src/metadata-builder/sanitizers/section-args-validator.js +95 -22
- package/lib/src/shared/color-palette/section-color-matches.js +9 -25
- package/lib/src/shared/color-strategies/color-strategies.d.ts +15 -0
- package/lib/src/shared/color-strategies/color-strategies.js +31 -0
- package/lib/src/shared/color-strategies/rte-color.d.ts +8 -0
- package/lib/src/shared/color-strategies/rte-color.js +16 -0
- package/lib/src/shared/color-strategies/rte-field-pairs.d.ts +23 -0
- package/lib/src/shared/color-strategies/rte-field-pairs.js +28 -0
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +9 -135
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.js +1 -27
- package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +12 -2
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +7 -0
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +75 -6
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.js +18 -7
- package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.d.ts +6 -1
- package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.js +0 -7
- package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +22 -0
- package/lib/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.js +8 -4
- package/lib/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.d.ts +1255 -26
- package/lib/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.js +203 -59
- package/lib/src/shared/content-settings/store/content-settings-store.d.ts +6 -0
- package/lib/src/shared/content-settings/store/content-settings-store.js +105 -8
- package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +26 -1
- package/lib/src/shared/navigation-style-settings/store/index.d.ts +7 -3
- package/lib/src/shared/navigation-style-settings/store/index.js +40 -15
- package/lib/src/shared/page-settings/components/new-page-modal/NewPageModal.mixin.d.ts +1 -0
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +38 -5
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +91 -13
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.js +10 -2
- package/lib/src/shared/page-settings/store/page-settings-store.d.ts +2 -1
- package/lib/src/shared/page-settings/store/page-settings-store.js +17 -0
- package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +32 -1
- package/lib/src/shared/rte-extensions/AutoLink.d.ts +17 -0
- package/lib/src/{brand-page-maker/composables/rich-text-editor/extensions → shared/rte-extensions}/AutoLink.js +67 -51
- package/lib/src/{brand-page-maker/composables/rich-text-editor/extensions → shared/rte-extensions}/MaxLength.js +4 -1
- package/lib/src/shared/rte-extensions/TextEffects.d.ts +28 -0
- package/lib/src/shared/rte-extensions/TextEffects.js +96 -0
- package/lib/src/shared/rte-extensions/ViewDomParser.d.ts +2 -0
- package/lib/src/shared/rte-extensions/ViewDomParser.js +21 -0
- package/lib/src/shared/rte-extensions.util.d.ts +25 -0
- package/lib/src/{brand-page-maker/composables/rich-text-editor/getRteExtensions.js → shared/rte-extensions.util.js} +62 -7
- package/lib/src/shared/rte-link.util.d.ts +1 -0
- package/lib/src/shared/rte-link.util.js +1 -0
- package/lib/src/shared/rte-render.util.d.ts +112 -0
- package/lib/src/shared/rte-render.util.js +255 -0
- package/lib/src/shared/rte-shape.util.d.ts +6 -0
- package/lib/src/shared/rte-shape.util.js +18 -0
- package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +23 -1
- package/lib/src/shared/side-bar/components/SideBarTabButton.mixin.d.ts +1 -0
- package/lib/src/shared/side-bar/store/side-bar-store.d.ts +2 -0
- package/lib/src/shared/side-bar/store/side-bar-store.js +9 -0
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +176 -15
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.js +7 -1
- package/lib/src/shared/style-settings/store/style-settings-store.d.ts +1 -9
- package/lib/src/shared/style-settings/store/style-settings-store.js +3 -33
- package/lib/src/shared/style-settings/text-style-size-order.d.ts +2 -0
- package/lib/src/shared/style-settings/text-style-size-order.js +13 -0
- package/lib/src/shared/text-role-typography.util.d.ts +64 -0
- package/lib/src/shared/text-role-typography.util.js +183 -0
- package/lib/src/utils/minify-brand-page-metadata.d.ts +16 -1
- package/lib/src/utils/minify-brand-page-metadata.js +31 -9
- package/package.json +1 -1
- package/src/brand-page/__fixtures__/migration-22-v21/edited-brandsite-sections.v21.json +982 -0
- package/src/brand-page/__fixtures__/migration-22-v21/new-brandcontact-every-section.v21.json +1231 -0
- package/src/brand-page/__fixtures__/migration-22-v21/new-brandpage-every-section.v21.json +1231 -0
- package/src/brand-page/__fixtures__/migration-22-v21/new-brandsite-every-section.v21.json +1243 -0
- package/src/brand-page/__fixtures__/migration-22-v21/real-brandcontact.v21.json +755 -0
- package/src/brand-page/__fixtures__/migration-22-v21/real-brandpage-general-link.v21.json +527 -0
- package/src/brand-page/__fixtures__/migration-22-v21/real-brandpage-links.v21.json +755 -0
- package/src/brand-page/__fixtures__/migration-22-v21/real-brandpage-social-links.v21.json +514 -0
- package/src/brand-page/__fixtures__/migration-22-v21/real-brandsite-about.v21.json +459 -0
- package/src/brand-page/__fixtures__/migration-22-v21/real-brandsite-footer.v21.json +469 -0
- package/src/brand-page/__fixtures__/migration-22-v21/real-brandsite-header-banner.v21.json +481 -0
- package/src/brand-page/__fixtures__/migration-22-v21/real-brandsite-sections.v21.json +800 -0
- package/src/brand-page/__fixtures__/production-text-style-resolver.fixture.ts +52 -0
- package/src/brand-page/components/about-section/AboutSection.vue.test.ts +0 -10
- package/src/brand-page/components/contact-form/ContactForm.mixin.test.ts +127 -0
- package/src/brand-page/components/contact-form/ContactForm.mixin.ts +31 -14
- package/src/brand-page/components/contact-form/ContactForm.vue +26 -12
- package/src/brand-page/components/contact-form/ContactForm.vue.test.ts +60 -0
- package/src/brand-page/components/mailing-list/MailingList.mixin.test.ts +92 -0
- package/src/brand-page/components/mailing-list/MailingList.mixin.ts +28 -3
- package/src/brand-page/components/mailing-list/MailingList.vue +9 -4
- package/src/brand-page/components/mailing-list/MailingList.vue.test.ts +63 -0
- package/src/brand-page/components/navigation/button-carousel/ButtonCarouselNavigation.mixin.ts +51 -1
- package/src/brand-page/components/navigation/button-carousel/ButtonCarouselNavigation.test.ts +114 -0
- package/src/brand-page/components/navigation/button-carousel/ButtonCarouselNavigation.vue +8 -2
- package/src/brand-page/components/navigation/navigation-carousel/NavigationCarousel.test.ts +182 -0
- package/src/brand-page/components/navigation/navigation-carousel/NavigationCarousel.vue +58 -12
- package/src/brand-page/components/navigation/navigation-side-menu/NavigationSideMenu.mixin.ts +40 -3
- package/src/brand-page/components/navigation/navigation-side-menu/NavigationSideMenu.vue +15 -7
- package/src/brand-page/components/navigation/navigation-side-menu/NavigationSideMenu.vue.test.ts +133 -3
- package/src/brand-page/components/page/Page.mixin.ts +41 -34
- package/src/brand-page/components/page/Page.vue +17 -6
- package/src/brand-page/components/page/Page.vue.test.ts +91 -1
- package/src/brand-page/components/page-footer/PageFooter.mixin.ts +32 -2
- package/src/brand-page/components/page-footer/PageFooter.test.ts +79 -0
- package/src/brand-page/components/page-footer/PageFooter.vue +12 -4
- package/src/brand-page/components/payment/Payment.mixin.ts +34 -2
- package/src/brand-page/components/payment/Payment.test.ts +188 -0
- package/src/brand-page/components/payment/Payment.vue +12 -5
- package/src/brand-page/components/payment/RequestPaymentStripe.vue +1 -0
- package/src/brand-page/components/payment/support-me/SupportMe.mixin.ts +49 -2
- package/src/brand-page/components/payment/support-me/SupportMe.test.ts +100 -0
- package/src/brand-page/components/payment/support-me/SupportMe.vue +7 -1
- package/src/brand-page/components/payment/support-me/SupportMe.vue.test.ts +66 -0
- package/src/brand-page/components/save-contact/SaveContactWidget.test.ts +100 -0
- package/src/brand-page/components/save-contact/SaveContactWidget.vue +6 -3
- package/src/brand-page/components/shop/PaymentModal.vue +2 -6
- package/src/brand-page/components/shop/PaymentShippingAddress.vue +6 -0
- package/src/brand-page/components/shop/Shop.vue +15 -2
- package/src/brand-page/components/shop/Shop.vue.test.ts +74 -2
- package/src/brand-page/components/social-links/SocialLinks.stories.ts +0 -3
- package/src/brand-page/components/social-links/SocialLinks.vue.test.ts +0 -3
- package/src/brand-page/components/testimonial-section/__fixtures__/data.ts +0 -3
- package/src/brand-page/components/text/Text.stories.ts +0 -17
- package/src/brand-page/components/text-wrapper/TextWrapper.parity.test.ts +136 -0
- package/src/brand-page/components/text-wrapper/TextWrapper.test.ts +358 -0
- package/src/brand-page/components/text-wrapper/TextWrapper.vue +82 -22
- package/src/brand-page/constants/font.constants.ts +37 -0
- package/src/brand-page/models/brand-page-context.model.ts +13 -0
- package/src/brand-page/models/footer-icon-color.test.ts +22 -0
- package/src/brand-page/models/index.ts +50 -28
- package/src/brand-page/models/navigation-styles.model.test.ts +77 -1
- package/src/brand-page/models/navigation-styles.model.ts +26 -9
- package/src/brand-page/models/payment.model.ts +15 -6
- package/src/brand-page/models/styles.model.test.ts +104 -0
- package/src/brand-page/models/styles.model.ts +181 -47
- package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +619 -115
- package/src/brand-page/utils/__snapshots__/migration2.util.test.ts.snap +150 -9
- package/src/brand-page/utils/__snapshots__/model.util.test.ts.snap +300 -18
- package/src/brand-page/utils/color-palette.util.test.ts +126 -1
- package/src/brand-page/utils/color-palette.util.ts +92 -26
- package/src/brand-page/utils/color.util.test.ts +62 -29
- package/src/brand-page/utils/color.util.ts +77 -14
- package/src/brand-page/utils/container-text-color.util.test.ts +672 -26
- package/src/brand-page/utils/container-text-color.util.ts +472 -46
- package/src/brand-page/utils/index.ts +1 -0
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/edited-brandsite-sections.v22.json +1191 -0
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/new-brandcontact-every-section.v22.json +2026 -0
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/new-brandpage-every-section.v22.json +2017 -0
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/new-brandsite-every-section.v22.json +2031 -0
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/real-brandcontact.v22.json +1145 -0
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/real-brandpage-general-link.v22.json +645 -0
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/real-brandpage-links.v22.json +1136 -0
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/real-brandpage-social-links.v22.json +662 -0
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/real-brandsite-about.v22.json +638 -0
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/real-brandsite-footer.v22.json +610 -0
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/real-brandsite-header-banner.v22.json +660 -0
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/real-brandsite-sections.v22.json +1132 -0
- package/src/brand-page/utils/migration/migration-01.ts +293 -237
- package/src/brand-page/utils/migration/migration-02.ts +8 -1
- package/src/brand-page/utils/migration/migration-20.ts +6 -3
- package/src/brand-page/utils/migration/migration-20_5.test.ts +5 -2
- package/src/brand-page/utils/migration/migration-21.test.ts +34 -0
- package/src/brand-page/utils/migration/migration-21.ts +46 -10
- package/src/brand-page/utils/migration/migration-22.fixed-input.test.ts +43 -0
- package/src/brand-page/utils/migration/migration-22.test.ts +4103 -0
- package/src/brand-page/utils/migration/migration-22.text-font-family.test.ts +72 -0
- package/src/brand-page/utils/migration/migration-22.ts +1336 -0
- package/src/brand-page/utils/migration.util.test.ts +146 -32
- package/src/brand-page/utils/migration.util.ts +18 -0
- package/src/brand-page/utils/model.util.ts +4 -0
- package/src/brand-page/utils/personalisation.util.test.ts +148 -3
- package/src/brand-page/utils/personalisation.util.ts +9 -1
- package/src/brand-page/utils/rte-role-lift.util.ts +409 -0
- package/src/brand-page/utils/style.util.test.ts +35 -2
- package/src/brand-page/utils/style.util.ts +45 -11
- package/src/brand-page/utils/text-role-css.util.test.ts +525 -0
- package/src/brand-page/utils/text-role-css.util.ts +321 -0
- package/src/brand-page/utils/text-role-reconnect.util.test.ts +604 -0
- package/src/brand-page/utils/text-role-reconnect.util.ts +727 -0
- package/src/brand-page/utils/text-style.util.test.ts +305 -0
- package/src/brand-page/utils/text-style.util.ts +198 -24
- package/src/brand-page/utils/view-model.page-data.test.ts +232 -0
- package/src/brand-page/utils/view-model.util.test.ts +954 -133
- package/src/brand-page/utils/view-model.util.ts +187 -139
- package/src/brand-page/view-models.ts +4 -0
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.blank-site.test.ts +57 -0
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.ts +9 -5
- package/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.ts +0 -10
- package/src/brand-page-maker/components/brand-page-maker/__fixtures__/content-settings-items.fixture.ts +0 -1
- package/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.ts +0 -44
- package/src/brand-page-maker/components/rich-text-editor/RichTextEditor.vue +253 -200
- package/src/brand-page-maker/composables/ai-chat/ai-builder-experiment.test.ts +82 -0
- package/src/brand-page-maker/composables/ai-chat/ai-builder-experiment.ts +19 -0
- package/src/brand-page-maker/composables/ai-chat/useAiMetadataBuilder.ts +2 -0
- package/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.ts +19 -0
- package/src/brand-page-maker/composables/rich-text-editor/block-typography.test.ts +519 -0
- package/src/brand-page-maker/composables/rich-text-editor/extensions/FontFamily.test.ts +1 -1
- package/src/brand-page-maker/composables/rich-text-editor/extensions/MaxLength.test.ts +26 -1
- package/src/brand-page-maker/composables/rich-text-editor/extensions/RoleTypographyFill.test.ts +110 -0
- package/src/brand-page-maker/composables/rich-text-editor/extensions/RoleTypographyFill.ts +99 -0
- package/src/brand-page-maker/composables/rich-text-editor/extensions/RteClipboard.ts +397 -0
- package/src/brand-page-maker/composables/rich-text-editor/extensions/ViewDomParser.test.ts +139 -0
- package/src/brand-page-maker/composables/rich-text-editor/font.ts +36 -5
- package/src/brand-page-maker/composables/rich-text-editor/formatting.test.ts +375 -1
- package/src/brand-page-maker/composables/rich-text-editor/formatting.ts +301 -17
- package/src/brand-page-maker/composables/rich-text-editor/hyperlink.test.ts +82 -1
- package/src/brand-page-maker/composables/rich-text-editor/hyperlink.ts +28 -34
- package/src/brand-page-maker/composables/rich-text-editor/keepMarksOnEmpty.test.ts +80 -0
- package/src/brand-page-maker/composables/rich-text-editor/keepMarksOnEmpty.ts +75 -0
- package/src/brand-page-maker/composables/rich-text-editor/spacing.ts +31 -6
- package/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.test.ts +2485 -0
- package/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.ts +435 -337
- package/src/brand-page-maker/constants/config-settings-constant.ts +0 -6
- package/src/brand-page-maker/convertors/text-css-style-options.convertor.test.ts +43 -0
- package/src/brand-page-maker/convertors/text-css-style-options.convertor.ts +6 -2
- package/src/brand-page-maker/convertors/text-size-value.convertor.test.ts +24 -0
- package/src/brand-page-maker/convertors/text-size-value.convertor.ts +17 -13
- package/src/brand-page-maker/default-getters/payment-text-and-border-color.default-getter.ts +7 -22
- package/src/brand-page-maker/default-getters/text-color.default-getter.ts +5 -21
- package/src/brand-page-maker/models/content-settings.test.ts +708 -0
- package/src/brand-page-maker/models/content-settings.ts +133 -82
- package/src/brand-page-maker/stores/admin-logo-settings/admin-logo-settings-store-utils.test.ts +63 -1
- package/src/brand-page-maker/stores/admin-logo-settings/admin-logo-settings-store-utils.ts +16 -3
- package/src/brand-page-maker/stores/admin-logo-settings/admin-logo-settings-store.test.ts +34 -0
- package/src/brand-page-maker/stores/admin-logo-settings/admin-logo-settings-store.ts +4 -2
- package/src/brand-page-maker/stores/ai-thread/ai-website-builder-thread-store.ts +30 -0
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.test.ts +185 -1
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +22 -34
- package/src/brand-page-maker/stores/history/history-store.ts +35 -2
- package/src/brand-page-maker/utils/__snapshots__/apply-color-strategy.golden.test.ts.snap +528 -0
- package/src/brand-page-maker/utils/__snapshots__/rte-render-parity.test.ts.snap +12 -0
- package/src/brand-page-maker/utils/apply-color-strategy.golden.test.ts +2 -0
- package/src/brand-page-maker/utils/apply-color-strategy.test.ts +181 -3
- package/src/brand-page-maker/utils/apply-color-strategy.ts +36 -4
- package/src/brand-page-maker/utils/index.ts +2 -1
- package/src/brand-page-maker/utils/rich-text-editor.util.test.ts +447 -410
- package/src/brand-page-maker/utils/rich-text-editor.util.ts +610 -506
- package/src/brand-page-maker/utils/rte-authoring.util.test.ts +244 -0
- package/src/brand-page-maker/utils/rte-authoring.util.ts +175 -0
- package/src/brand-page-maker/utils/rte-clipboard.util.test.ts +558 -0
- package/src/brand-page-maker/utils/rte-clipboard.util.ts +473 -0
- package/src/brand-page-maker/utils/rte-features.test.ts +99 -3
- package/src/brand-page-maker/utils/rte-render-parity.test.ts +1 -1
- package/src/brand-page-maker/utils/rte-render.util.test.ts +230 -0
- package/src/brand-page-maker/utils/rte-sanitize-json.test.ts +1 -1
- package/src/brand-page-maker/utils/rte-sanitize.util.ts +14 -3
- package/src/brand-page-maker/utils/rte-schema-version.test.ts +102 -0
- package/src/bundles/bundled-translations.de-DE.json +21 -2
- package/src/bundles/bundled-translations.es-ES.json +21 -2
- package/src/bundles/bundled-translations.fr-CA.json +21 -2
- package/src/bundles/bundled-translations.fr-FR.json +21 -2
- package/src/bundles/bundled-translations.json +21 -2
- package/src/bundles/bundled-translations.pt-BR.json +21 -2
- package/src/bundles/bundled-translations.pt-PT.json +21 -2
- package/src/clients/ai-assistant-client.ts +13 -18
- package/src/composables/useTranslate.ts +2 -1
- package/src/lib.ts +2 -2
- package/src/metadata-builder/builders/footer-builder.test.ts +70 -45
- package/src/metadata-builder/builders/footer-builder.ts +4 -8
- package/src/metadata-builder/builders/global-role-propagation.test.ts +907 -0
- package/src/metadata-builder/builders/global-role-propagation.ts +430 -0
- package/src/metadata-builder/builders/global-styles-builder.test.ts +1020 -0
- package/src/metadata-builder/builders/global-styles-builder.ts +194 -48
- package/src/metadata-builder/builders/header-builder.test.ts +112 -40
- package/src/metadata-builder/builders/header-builder.ts +18 -8
- package/src/metadata-builder/builders/section-builders/about-section-builder.ts +5 -3
- package/src/metadata-builder/builders/section-builders/banner-section-builder.ts +5 -3
- package/src/metadata-builder/builders/section-builders/booking-section-builder.ts +5 -3
- package/src/metadata-builder/builders/section-builders/contact-form-builder.ts +7 -4
- package/src/metadata-builder/builders/section-builders/images-section-builder.ts +5 -3
- package/src/metadata-builder/builders/section-builders/mailing-list-builder.ts +3 -2
- package/src/metadata-builder/builders/section-builders/mailing-list-section-builder.ts +3 -2
- package/src/metadata-builder/builders/section-builders/profile-section-builder.ts +7 -7
- package/src/metadata-builder/builders/section-builders/shapes-section-builder.ts +5 -3
- package/src/metadata-builder/builders/section-builders/social-links-builder.test.ts +2 -2
- package/src/metadata-builder/builders/section-builders/social-links-builder.ts +21 -10
- package/src/metadata-builder/builders/section-builders/support-me-builder.test.ts +10 -0
- package/src/metadata-builder/builders/section-builders/testimonial-section-builder.ts +3 -2
- package/src/metadata-builder/builders/section-builders/text-section-builder.ts +111 -61
- package/src/metadata-builder/builders/section-field-maps.ts +1 -0
- package/src/metadata-builder/builders/section-field-utils.test.ts +545 -2
- package/src/metadata-builder/builders/section-field-utils.ts +202 -69
- package/src/metadata-builder/builders/section-rules/global-styles.rules.ts +38 -13
- package/src/metadata-builder/builders/section-rules/social-links.rules.ts +5 -0
- package/src/metadata-builder/helpers/rte.helpers.test.ts +101 -0
- package/src/metadata-builder/helpers/rte.helpers.ts +129 -43
- package/src/metadata-builder/metadata-executor.test.ts +167 -0
- package/src/metadata-builder/metadata-executor.ts +34 -1
- package/src/metadata-builder/models.ts +2 -0
- package/src/metadata-builder/parsers/ai-toolcall-parser.ts +23 -7
- package/src/metadata-builder/parsers/section-tool-arguments.ts +21 -1
- package/src/metadata-builder/sanitizers/__tests__/section-args-validator.test.ts +215 -0
- package/src/metadata-builder/sanitizers/rte-schema-check.ts +1 -1
- package/src/metadata-builder/sanitizers/sanitizer-rules.ts +4 -8
- package/src/metadata-builder/sanitizers/section-args-validator.ts +136 -53
- package/src/shared/color-palette/section-color-matches.test.ts +15 -11
- package/src/shared/color-palette/section-color-matches.ts +9 -28
- package/src/shared/color-strategies/color-strategies.ts +35 -0
- package/src/shared/color-strategies/rte-color.test.ts +1 -1
- package/src/shared/color-strategies/rte-color.ts +19 -0
- package/src/shared/color-strategies/rte-field-pairs.test.ts +26 -5
- package/src/shared/color-strategies/rte-field-pairs.ts +33 -0
- package/src/shared/content-settings/components/color-matches-panel/ColorMatchesPanel.test.ts +43 -66
- package/src/shared/content-settings/components/color-matches-panel/ColorMatchesPanel.vue +7 -1
- package/src/shared/content-settings/components/content-settings/ContentSettings.mixin.ts +1 -48
- package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.ts +33 -7
- package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.test.ts +128 -1
- package/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.ts +0 -6
- package/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.test.ts +56 -3
- package/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.ts +11 -4
- package/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.test.ts +335 -25
- package/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.ts +248 -70
- package/src/shared/content-settings/components/text-style-field/TextStyleField.vue +113 -25
- package/src/shared/content-settings/components/text-style-field/i18n/text-style-field.de-DE.json +17 -10
- package/src/shared/content-settings/components/text-style-field/i18n/text-style-field.es-ES.json +17 -10
- package/src/shared/content-settings/components/text-style-field/i18n/text-style-field.fr-CA.json +17 -10
- package/src/shared/content-settings/components/text-style-field/i18n/text-style-field.fr-FR.json +17 -10
- package/src/shared/content-settings/components/text-style-field/i18n/text-style-field.json +8 -1
- package/src/shared/content-settings/components/text-style-field/i18n/text-style-field.pt-BR.json +17 -10
- package/src/shared/content-settings/components/text-style-field/i18n/text-style-field.pt-PT.json +17 -10
- package/src/shared/content-settings/components/text-style-role-dropdown/TextStyleRoleDropdown.test.ts +141 -0
- package/src/shared/content-settings/components/text-style-role-dropdown/TextStyleRoleDropdown.vue +136 -0
- package/src/shared/content-settings/store/content-settings-store.test.ts +491 -6
- package/src/shared/content-settings/store/content-settings-store.ts +159 -17
- package/src/shared/navigation-style-settings/store/index.test.ts +295 -0
- package/src/shared/navigation-style-settings/store/index.ts +65 -15
- package/src/shared/page-settings/components/page-settings-section-styles/HeaderButtonSettings.test.ts +44 -4
- package/src/shared/page-settings/components/page-settings-section-styles/HeaderButtonSettings.vue +13 -4
- package/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.navigation.test.ts +89 -0
- package/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.text-style.test.ts +91 -0
- package/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.ts +14 -2
- package/src/shared/page-settings/store/page-settings-store.text-style.test.ts +84 -0
- package/src/shared/page-settings/store/page-settings-store.ts +30 -1
- package/src/shared/rte-extensions/AutoLink.test.ts +98 -0
- package/src/{brand-page-maker/composables/rich-text-editor/extensions → shared/rte-extensions}/AutoLink.ts +87 -58
- package/src/{brand-page-maker/composables/rich-text-editor/extensions → shared/rte-extensions}/MaxLength.ts +4 -1
- package/src/shared/rte-extensions/TextEffects.ts +151 -0
- package/src/shared/rte-extensions/ViewDomParser.ts +27 -0
- package/src/{brand-page-maker/composables/rich-text-editor/getRteExtensions.ts → shared/rte-extensions.util.ts} +66 -9
- package/src/shared/rte-link.util.ts +2 -0
- package/src/shared/rte-render.util.ts +385 -0
- package/src/shared/rte-shape.util.ts +29 -0
- package/src/shared/side-bar/store/side-bar-store.test.ts +27 -1
- package/src/shared/side-bar/store/side-bar-store.ts +11 -0
- package/src/shared/style-settings/components/StyleSettings.mixin.ts +7 -3
- package/src/shared/style-settings/components/StyleSettings.test.ts +116 -0
- package/src/shared/style-settings/components/StyleSettings.vue +74 -25
- package/src/shared/style-settings/components/i18n/style-settings.de-DE.json +32 -20
- package/src/shared/style-settings/components/i18n/style-settings.es-ES.json +32 -20
- package/src/shared/style-settings/components/i18n/style-settings.fr-CA.json +32 -20
- package/src/shared/style-settings/components/i18n/style-settings.fr-FR.json +32 -20
- package/src/shared/style-settings/components/i18n/style-settings.json +13 -3
- package/src/shared/style-settings/components/i18n/style-settings.pt-BR.json +32 -20
- package/src/shared/style-settings/components/i18n/style-settings.pt-PT.json +32 -20
- package/src/shared/style-settings/components/text-style-options-settings-with-state/TextStyleOptionsSettingsWithState.vue +14 -34
- package/src/shared/style-settings/store/style-settings-store.ts +3 -49
- package/src/shared/style-settings/text-style-size-order.test.ts +76 -0
- package/src/shared/style-settings/text-style-size-order.ts +28 -0
- package/src/shared/text-role-typography.util.ts +277 -0
- package/src/utils/minify-brand-page-metadata.test.ts +102 -7
- package/src/utils/minify-brand-page-metadata.ts +62 -8
- package/lib/src/brand-page-maker/composables/rich-text-editor/extensions/AutoLink.d.ts +0 -2
- package/lib/src/brand-page-maker/composables/rich-text-editor/getRteExtensions.d.ts +0 -28
- package/lib/src/brand-page-maker/utils/rte-render.util.d.ts +0 -63
- package/lib/src/brand-page-maker/utils/rte-render.util.js +0 -106
- package/lib/src/brand-page-maker/utils/rte-shape.d.ts +0 -18
- package/lib/src/brand-page-maker/utils/rte-shape.js +0 -21
- package/lib/src/metadata-builder/builders/global-font-propagation.d.ts +0 -41
- package/lib/src/metadata-builder/builders/global-font-propagation.js +0 -146
- package/src/brand-page/models/brand-page-context.model.test.ts +0 -38
- package/src/brand-page-maker/utils/rte-render.util.ts +0 -179
- package/src/brand-page-maker/utils/rte-shape.ts +0 -29
- package/src/clients/ai-assistant-client.test.ts +0 -135
- package/src/metadata-builder/builders/global-font-propagation.test.ts +0 -401
- package/src/metadata-builder/builders/global-font-propagation.ts +0 -238
- package/src/shared/style-settings/components/StyleSettingsSection.vue +0 -8
- /package/lib/src/{brand-page-maker/composables/rich-text-editor/extensions → shared/rte-extensions}/FontFamily.d.ts +0 -0
- /package/lib/src/{brand-page-maker/composables/rich-text-editor/extensions → shared/rte-extensions}/FontFamily.js +0 -0
- /package/lib/src/{brand-page-maker/composables/rich-text-editor/extensions → shared/rte-extensions}/LetterSpacing.d.ts +0 -0
- /package/lib/src/{brand-page-maker/composables/rich-text-editor/extensions → shared/rte-extensions}/LetterSpacing.js +0 -0
- /package/lib/src/{brand-page-maker/composables/rich-text-editor/extensions → shared/rte-extensions}/MaxLength.d.ts +0 -0
- /package/src/{brand-page-maker/composables/rich-text-editor/extensions → shared/rte-extensions}/FontFamily.ts +0 -0
- /package/src/{brand-page-maker/composables/rich-text-editor/extensions → shared/rte-extensions}/LetterSpacing.ts +0 -0
|
@@ -188,13 +188,161 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
188
188
|
};
|
|
189
189
|
}>;
|
|
190
190
|
textStyles: import("vue").ComputedRef<{
|
|
191
|
-
textFontFamily: import("../../../brand-page").FontFamilyKey;
|
|
192
191
|
textStyleOptions: {
|
|
193
192
|
buttons: {
|
|
194
193
|
type: import("../../../brand-page").TextStyleType;
|
|
195
194
|
title: string;
|
|
196
195
|
style: {
|
|
197
|
-
|
|
196
|
+
fontFamily: string | undefined;
|
|
197
|
+
fontSize: string | undefined;
|
|
198
|
+
fontStyle: string | undefined;
|
|
199
|
+
fontWeight: string | undefined;
|
|
200
|
+
letterSpacing: string | undefined;
|
|
201
|
+
lineHeight: string | undefined;
|
|
202
|
+
textDecoration: string | undefined;
|
|
203
|
+
textStyleType: import("../../../brand-page").TextStyleType | undefined;
|
|
204
|
+
};
|
|
205
|
+
isModified: boolean;
|
|
206
|
+
};
|
|
207
|
+
button: {
|
|
208
|
+
type: import("../../../brand-page").TextStyleType;
|
|
209
|
+
title: string;
|
|
210
|
+
style: {
|
|
211
|
+
fontFamily: string | undefined;
|
|
212
|
+
fontSize: string | undefined;
|
|
213
|
+
fontStyle: string | undefined;
|
|
214
|
+
fontWeight: string | undefined;
|
|
215
|
+
letterSpacing: string | undefined;
|
|
216
|
+
lineHeight: string | undefined;
|
|
217
|
+
textDecoration: string | undefined;
|
|
218
|
+
textStyleType: import("../../../brand-page").TextStyleType | undefined;
|
|
219
|
+
};
|
|
220
|
+
isModified: boolean;
|
|
221
|
+
};
|
|
222
|
+
heading1: {
|
|
223
|
+
type: import("../../../brand-page").TextStyleType;
|
|
224
|
+
title: string;
|
|
225
|
+
style: {
|
|
226
|
+
fontFamily: string | undefined;
|
|
227
|
+
fontSize: string | undefined;
|
|
228
|
+
fontStyle: string | undefined;
|
|
229
|
+
fontWeight: string | undefined;
|
|
230
|
+
letterSpacing: string | undefined;
|
|
231
|
+
lineHeight: string | undefined;
|
|
232
|
+
textDecoration: string | undefined;
|
|
233
|
+
textStyleType: import("../../../brand-page").TextStyleType | undefined;
|
|
234
|
+
};
|
|
235
|
+
isModified: boolean;
|
|
236
|
+
};
|
|
237
|
+
heading2: {
|
|
238
|
+
type: import("../../../brand-page").TextStyleType;
|
|
239
|
+
title: string;
|
|
240
|
+
style: {
|
|
241
|
+
fontFamily: string | undefined;
|
|
242
|
+
fontSize: string | undefined;
|
|
243
|
+
fontStyle: string | undefined;
|
|
244
|
+
fontWeight: string | undefined;
|
|
245
|
+
letterSpacing: string | undefined;
|
|
246
|
+
lineHeight: string | undefined;
|
|
247
|
+
textDecoration: string | undefined;
|
|
248
|
+
textStyleType: import("../../../brand-page").TextStyleType | undefined;
|
|
249
|
+
};
|
|
250
|
+
isModified: boolean;
|
|
251
|
+
};
|
|
252
|
+
heading3: {
|
|
253
|
+
type: import("../../../brand-page").TextStyleType;
|
|
254
|
+
title: string;
|
|
255
|
+
style: {
|
|
256
|
+
fontFamily: string | undefined;
|
|
257
|
+
fontSize: string | undefined;
|
|
258
|
+
fontStyle: string | undefined;
|
|
259
|
+
fontWeight: string | undefined;
|
|
260
|
+
letterSpacing: string | undefined;
|
|
261
|
+
lineHeight: string | undefined;
|
|
262
|
+
textDecoration: string | undefined;
|
|
263
|
+
textStyleType: import("../../../brand-page").TextStyleType | undefined;
|
|
264
|
+
};
|
|
265
|
+
isModified: boolean;
|
|
266
|
+
};
|
|
267
|
+
heading4: {
|
|
268
|
+
type: import("../../../brand-page").TextStyleType;
|
|
269
|
+
title: string;
|
|
270
|
+
style: {
|
|
271
|
+
fontFamily: string | undefined;
|
|
272
|
+
fontSize: string | undefined;
|
|
273
|
+
fontStyle: string | undefined;
|
|
274
|
+
fontWeight: string | undefined;
|
|
275
|
+
letterSpacing: string | undefined;
|
|
276
|
+
lineHeight: string | undefined;
|
|
277
|
+
textDecoration: string | undefined;
|
|
278
|
+
textStyleType: import("../../../brand-page").TextStyleType | undefined;
|
|
279
|
+
};
|
|
280
|
+
isModified: boolean;
|
|
281
|
+
};
|
|
282
|
+
heading5: {
|
|
283
|
+
type: import("../../../brand-page").TextStyleType;
|
|
284
|
+
title: string;
|
|
285
|
+
style: {
|
|
286
|
+
fontFamily: string | undefined;
|
|
287
|
+
fontSize: string | undefined;
|
|
288
|
+
fontStyle: string | undefined;
|
|
289
|
+
fontWeight: string | undefined;
|
|
290
|
+
letterSpacing: string | undefined;
|
|
291
|
+
lineHeight: string | undefined;
|
|
292
|
+
textDecoration: string | undefined;
|
|
293
|
+
textStyleType: import("../../../brand-page").TextStyleType | undefined;
|
|
294
|
+
};
|
|
295
|
+
isModified: boolean;
|
|
296
|
+
};
|
|
297
|
+
heading6: {
|
|
298
|
+
type: import("../../../brand-page").TextStyleType;
|
|
299
|
+
title: string;
|
|
300
|
+
style: {
|
|
301
|
+
fontFamily: string | undefined;
|
|
302
|
+
fontSize: string | undefined;
|
|
303
|
+
fontStyle: string | undefined;
|
|
304
|
+
fontWeight: string | undefined;
|
|
305
|
+
letterSpacing: string | undefined;
|
|
306
|
+
lineHeight: string | undefined;
|
|
307
|
+
textDecoration: string | undefined;
|
|
308
|
+
textStyleType: import("../../../brand-page").TextStyleType | undefined;
|
|
309
|
+
};
|
|
310
|
+
isModified: boolean;
|
|
311
|
+
};
|
|
312
|
+
paragraph1: {
|
|
313
|
+
type: import("../../../brand-page").TextStyleType;
|
|
314
|
+
title: string;
|
|
315
|
+
style: {
|
|
316
|
+
fontFamily: string | undefined;
|
|
317
|
+
fontSize: string | undefined;
|
|
318
|
+
fontStyle: string | undefined;
|
|
319
|
+
fontWeight: string | undefined;
|
|
320
|
+
letterSpacing: string | undefined;
|
|
321
|
+
lineHeight: string | undefined;
|
|
322
|
+
textDecoration: string | undefined;
|
|
323
|
+
textStyleType: import("../../../brand-page").TextStyleType | undefined;
|
|
324
|
+
};
|
|
325
|
+
isModified: boolean;
|
|
326
|
+
};
|
|
327
|
+
paragraph2: {
|
|
328
|
+
type: import("../../../brand-page").TextStyleType;
|
|
329
|
+
title: string;
|
|
330
|
+
style: {
|
|
331
|
+
fontFamily: string | undefined;
|
|
332
|
+
fontSize: string | undefined;
|
|
333
|
+
fontStyle: string | undefined;
|
|
334
|
+
fontWeight: string | undefined;
|
|
335
|
+
letterSpacing: string | undefined;
|
|
336
|
+
lineHeight: string | undefined;
|
|
337
|
+
textDecoration: string | undefined;
|
|
338
|
+
textStyleType: import("../../../brand-page").TextStyleType | undefined;
|
|
339
|
+
};
|
|
340
|
+
isModified: boolean;
|
|
341
|
+
};
|
|
342
|
+
paragraph3: {
|
|
343
|
+
type: import("../../../brand-page").TextStyleType;
|
|
344
|
+
title: string;
|
|
345
|
+
style: {
|
|
198
346
|
fontFamily: string | undefined;
|
|
199
347
|
fontSize: string | undefined;
|
|
200
348
|
fontStyle: string | undefined;
|
|
@@ -210,7 +358,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
210
358
|
type: import("../../../brand-page").TextStyleType;
|
|
211
359
|
title: string;
|
|
212
360
|
style: {
|
|
213
|
-
color: string | undefined;
|
|
214
361
|
fontFamily: string | undefined;
|
|
215
362
|
fontSize: string | undefined;
|
|
216
363
|
fontStyle: string | undefined;
|
|
@@ -226,7 +373,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
226
373
|
type: import("../../../brand-page").TextStyleType;
|
|
227
374
|
title: string;
|
|
228
375
|
style: {
|
|
229
|
-
color: string | undefined;
|
|
230
376
|
fontFamily: string | undefined;
|
|
231
377
|
fontSize: string | undefined;
|
|
232
378
|
fontStyle: string | undefined;
|
|
@@ -242,7 +388,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
242
388
|
type: import("../../../brand-page").TextStyleType;
|
|
243
389
|
title: string;
|
|
244
390
|
style: {
|
|
245
|
-
color: string | undefined;
|
|
246
391
|
fontFamily: string | undefined;
|
|
247
392
|
fontSize: string | undefined;
|
|
248
393
|
fontStyle: string | undefined;
|
|
@@ -262,7 +407,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
262
407
|
buttonShadowColor: import("vue").ComputedRef<string>;
|
|
263
408
|
buttonSoftShadowColor: import("vue").ComputedRef<string>;
|
|
264
409
|
selectedButtonStyleConfig: import("vue").ComputedRef<import("@brand-page-maker/models").ButtonStyleConfig | undefined>;
|
|
265
|
-
selectedTextFontFamily: import("vue").ComputedRef<"lato" | "roboto" | "notoSans" | "openSans" | "arvo" | "bebasNeue" | "ptSerif" | "oswald" | "inter" | "montserrat" | "raleway" | "anton" | "antonSc" | "quicksand" | "pacifico" | "bioRhyme" | "playfairDisplay" | "mulish" | "telex" | "pridi" | "hindMadurai" | "kanit" | "libreBaskerville" | "amiko" | "neuton" | "tenorSans" | "jacquesFrancois" | "varela" | "quattrocentoSans" | "workSans" | "titilliumWeb" | "amaticSc" | "poiretOne" | "shantellSans" | "dancingScript" | "tangerine" | "cinzel" | "jost" | "exo2" | "ebGaramond" | "ubuntu" | "cabin" | "josefinSans" | "lobsterTwo" | "sacramento" | "nunito" | "aboreto" | "afacad" | "aleo" | "abhayaLibre" | "caladea" | "rokkitt" | "rubik" | "frankRuhlLibre" | "spectral" | "abrilFatface" | "courgette" | "kiteOne" | "amarante" | "satisfy" | "lilitaOne" | "lobster" | "titanOne" | "cookie" | "bungee" | "poppins" | "staatliches" | "patuaOne" | "calistoga" | "suezOne" | "caprasimo" | "rubikMonoOne" | "silkscreen" | "alfaSlabOne" | "orelegaOne" | "audiowide" | "redRose" | "kalnia" | "imbue" | "climateCrisis" | "gluten" | "madimiOne" | "anta" | "trykker" | "moul" | "bevan" | "wendyOne" | "lexendDeca" | "vinaSans" | "chango" | "changaOne" | "protestGuerrilla" | "londrinaShadow" | "candal" | "borel" | "rockNRollOne" | "bungeeInline" | "rampartOne" | "manrope" | "yuseiMagic" | "patrickHandSC" | "farsan" | "handlee" | "lemonada" | "arsenal" | "bakbakOne" | "belleza" | "blackHanSans" | "bowlbyOne" | "brunoAceSC" | "castoroTitling" | "contrailOne" | "delaGothicOne" | "dotGothic16" | "fahkwang" | "francoisOne" | "gloock" | "graduate" | "jersey10" | "kavoon" | "kronaOne" | "notable" | "pavanam" | "phudu" | "poetsenOne" | "pollerOne" | "questrial" | "racingSansOne" | "rammettoOne" | "rubikGlitch" | "shrikhand" | "spicyRice" | "syncopate" | "urbanist" | "yesevaOne" | "zenDots" | "ballet" | "luxuriousScript" | "windSong" | "calSans" | "specialGothicExpandedOne" | "imperialScript" | "greatVibes" | "limelight" | "bodoniModaSc" | "zillaSlab" | "righteous" | "cherryBombOne" | "barlow" | "comfortaa" | "cormorant" | "msMadi" | "tektur" | "spaceGrotesk" | "leagueSpartan" | "cormorantGaramond" | "gwendolyn" | "playwriteOsterreich" | "sourceCodePro" | "commissioner" | "lora" | "sairaCondensed" | "fruktur" | "caudex" | "cascadiaCode" | "merriweather" | "unbounded" | "nataSans" | "museoModerno" | "geologica" | "tomorrow" | "fraunces" | "notoSerifDisplay" | "coiny" | "sriracha" | "redditSans" | "heptaSlab" | "parisienne" | "monteCarlo" | "georama" | "goldman" | "montaguSlab" | "ephesis" | "sigmar" | "knewave">;
|
|
266
410
|
isAdminMaker: import("vue").ComputedRef<boolean>;
|
|
267
411
|
brandPageType: import("vue").ComputedRef<"default" | "brandSite" | "brandContact">;
|
|
268
412
|
showBrandCrowdLogo: import("vue").ComputedRef<boolean>;
|
|
@@ -316,9 +460,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
316
460
|
buttonIconColor(): string | undefined;
|
|
317
461
|
buttonShadowColor(): string;
|
|
318
462
|
buttonSoftShadowColor(): string;
|
|
319
|
-
defaultTextColor(): string | undefined;
|
|
320
463
|
selectedButtonStyleConfig(): import("@brand-page-maker/models").ButtonStyleConfig | undefined;
|
|
321
|
-
selectedTextFontFamily(): import("../../../brand-page").FontFamilyKey;
|
|
322
464
|
}, {
|
|
323
465
|
initialise(options: {
|
|
324
466
|
reset: boolean;
|
|
@@ -338,9 +480,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
338
480
|
_setSelectedButtonStyle(payload: {
|
|
339
481
|
id: string;
|
|
340
482
|
}): void;
|
|
341
|
-
_setTextFontFamily(payload: {
|
|
342
|
-
fontFamily: import("../../../brand-page").FontFamilyKey;
|
|
343
|
-
}): void;
|
|
344
483
|
_setTextStyles(payload: Partial<import("../../../brand-page").TextStyles>): void;
|
|
345
484
|
setAdminStyleOptionDefaultValues(): void;
|
|
346
485
|
setTextStyleOption(payload: {
|
|
@@ -364,9 +503,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
364
503
|
setSelectedButtonStyle(payload: {
|
|
365
504
|
id: string;
|
|
366
505
|
}): void;
|
|
367
|
-
setTextFontFamily(payload: {
|
|
368
|
-
fontFamily: import("../../../brand-page").FontFamilyKey;
|
|
369
|
-
}): Promise<void>;
|
|
370
506
|
}>;
|
|
371
507
|
userStore: import("pinia").Store<"brandPageMakerUser", import("@brand-page-maker/stores").UserState, {}, {
|
|
372
508
|
setUserState(payload: {
|
|
@@ -430,6 +566,9 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
430
566
|
setHideBranding(payload: {
|
|
431
567
|
hideBranding: boolean;
|
|
432
568
|
}): void;
|
|
569
|
+
setSaveContactButtonTextStyle(payload: {
|
|
570
|
+
buttonTextStyle: import("../../../brand-page").SaveContactOptions["buttonTextStyle"];
|
|
571
|
+
}): void;
|
|
433
572
|
setSensitiveContent(payload: {
|
|
434
573
|
sensitiveContent: string;
|
|
435
574
|
}): void;
|
|
@@ -492,7 +631,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
492
631
|
brandPageType: import("../../../brand-page").BrandPageType;
|
|
493
632
|
}): void;
|
|
494
633
|
initialiseStoresByBrandPageModelAsync(brandPageModel: import("../../../brand-page").BrandPageModel): Promise<void>;
|
|
495
|
-
initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, userPromptContentKey, showAiTemplatesTab, businessName, industry, layout, logoVariationImageUrls, shopConfigData: _shopConfigData, isServerRenderOverride, }: import("@brand-page-maker/stores").InitialisePayload): Promise<void>;
|
|
634
|
+
initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, userPromptContentKey, showAiTemplatesTab, businessName, industry, layout, logoVariationImageUrls, shopConfigData: _shopConfigData, isServerRenderOverride, isBlankSite, }: import("@brand-page-maker/stores").InitialisePayload): Promise<void>;
|
|
496
635
|
initialisePages({ pages, sections, }: {
|
|
497
636
|
pages: import("../../../brand-page").PageModel[];
|
|
498
637
|
sections: import("../../page-settings/store").PageSettingsStateSections;
|
|
@@ -592,6 +731,13 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
592
731
|
isVariation: boolean;
|
|
593
732
|
isExcluded: boolean;
|
|
594
733
|
} | undefined;
|
|
734
|
+
bp_6136_v2_ai_builder?: {
|
|
735
|
+
key: string;
|
|
736
|
+
value: string;
|
|
737
|
+
isControl: boolean;
|
|
738
|
+
isVariation: boolean;
|
|
739
|
+
isExcluded: boolean;
|
|
740
|
+
} | undefined;
|
|
595
741
|
};
|
|
596
742
|
isSubsequentPublish: boolean;
|
|
597
743
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -667,6 +813,13 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
667
813
|
isVariation: boolean;
|
|
668
814
|
isExcluded: boolean;
|
|
669
815
|
} | undefined;
|
|
816
|
+
bp_6136_v2_ai_builder?: {
|
|
817
|
+
key: string;
|
|
818
|
+
value: string;
|
|
819
|
+
isControl: boolean;
|
|
820
|
+
isVariation: boolean;
|
|
821
|
+
isExcluded: boolean;
|
|
822
|
+
} | undefined;
|
|
670
823
|
};
|
|
671
824
|
isSubsequentPublish: boolean;
|
|
672
825
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -742,6 +895,13 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
742
895
|
isVariation: boolean;
|
|
743
896
|
isExcluded: boolean;
|
|
744
897
|
} | undefined;
|
|
898
|
+
bp_6136_v2_ai_builder?: {
|
|
899
|
+
key: string;
|
|
900
|
+
value: string;
|
|
901
|
+
isControl: boolean;
|
|
902
|
+
isVariation: boolean;
|
|
903
|
+
isExcluded: boolean;
|
|
904
|
+
} | undefined;
|
|
745
905
|
};
|
|
746
906
|
isSubsequentPublish: boolean;
|
|
747
907
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -979,6 +1139,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
979
1139
|
filteredButtonStyleOptions(): ButtonStyleConfigOption[];
|
|
980
1140
|
brandName(): "Design.com" | "BrandCrowd";
|
|
981
1141
|
hideText(): any;
|
|
1142
|
+
textStyleSizeOrderWarning(): string;
|
|
982
1143
|
}, {
|
|
983
1144
|
onColorPickerSelected(value: boolean): void;
|
|
984
1145
|
getButtonStyleConfigOptionTitle(option: ButtonStyleConfigOption): any;
|
|
@@ -8,6 +8,7 @@ import { useUiBackgroundSettingsStore } from '../../background-settings/store';
|
|
|
8
8
|
import { useBrandPageContainerStore, useBrandPageMakerStore, useBrandPageMakerUserStore, useUiStore, } from '@brand-page-maker/stores';
|
|
9
9
|
import { TRIGGER_TYPE, UPGRADE_CTA_LOCATIONS, useEventTracker, } from '@brand-page-maker/composables/useEventTracker';
|
|
10
10
|
import { styleSettingsTr } from '@src/composables/useTranslate';
|
|
11
|
+
import { hasTextStyleSizeOrderIssue } from '../text-style-size-order';
|
|
11
12
|
import { WEBSITE_UPGRADE_CONTEXT_TYPES } from '@designcrowd/fe-shared-lib';
|
|
12
13
|
export default defineComponent({
|
|
13
14
|
setup() {
|
|
@@ -29,7 +30,6 @@ export default defineComponent({
|
|
|
29
30
|
buttonShadowColor: computed(() => styleSettingsStore.buttonShadowColor),
|
|
30
31
|
buttonSoftShadowColor: computed(() => styleSettingsStore.buttonSoftShadowColor),
|
|
31
32
|
selectedButtonStyleConfig: computed(() => styleSettingsStore.selectedButtonStyleConfig),
|
|
32
|
-
selectedTextFontFamily: computed(() => styleSettingsStore.selectedTextFontFamily),
|
|
33
33
|
isAdminMaker: computed(() => brandPageContainerStore.isAdminMaker),
|
|
34
34
|
brandPageType: computed(() => brandPageMakerStore.brandPageType),
|
|
35
35
|
showBrandCrowdLogo: computed(() => brandPageMakerStore.showBrandCrowdLogo),
|
|
@@ -86,6 +86,12 @@ export default defineComponent({
|
|
|
86
86
|
? styleSettingsTr(`hideDesignLogo`)
|
|
87
87
|
: styleSettingsTr(`hideBrandCrowdLogo`);
|
|
88
88
|
},
|
|
89
|
+
// The panel's subtitle, so the warning still shows while the panel is collapsed.
|
|
90
|
+
textStyleSizeOrderWarning() {
|
|
91
|
+
return hasTextStyleSizeOrderIssue(this.textStyles.textStyleOptions)
|
|
92
|
+
? styleSettingsTr('sizeOrderWarning')
|
|
93
|
+
: '';
|
|
94
|
+
},
|
|
89
95
|
},
|
|
90
96
|
methods: {
|
|
91
97
|
onColorPickerSelected(value) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ButtonStyleConfig, ButtonStyleConfigOption } from '@brand-page-maker/models';
|
|
2
2
|
import type { BrandPageType, TextStyleDeclaration, ViewportsType, LogoStyles } from '@brand-page';
|
|
3
|
-
import { ButtonStyles, GalleryStyles, type GalleryType, TextStyles, type
|
|
3
|
+
import { ButtonStyles, GalleryStyles, type GalleryType, TextStyles, type TextStyleType } from '@brand-page';
|
|
4
4
|
import type { OtherStyleConfigOption } from '@brand-page-maker/models';
|
|
5
5
|
import type { SetGalleryTypePayload, StyleTextFontFamilyOption } from '../models';
|
|
6
6
|
export interface StyleSettingsState {
|
|
@@ -18,9 +18,7 @@ export declare const useUiStyleSettingsStore: import("pinia").StoreDefinition<"u
|
|
|
18
18
|
buttonIconColor(): string | undefined;
|
|
19
19
|
buttonShadowColor(): string;
|
|
20
20
|
buttonSoftShadowColor(): string;
|
|
21
|
-
defaultTextColor(): string | undefined;
|
|
22
21
|
selectedButtonStyleConfig(): ButtonStyleConfig | undefined;
|
|
23
|
-
selectedTextFontFamily(): FontFamilyKey;
|
|
24
22
|
}, {
|
|
25
23
|
initialise(options: {
|
|
26
24
|
reset: boolean;
|
|
@@ -40,9 +38,6 @@ export declare const useUiStyleSettingsStore: import("pinia").StoreDefinition<"u
|
|
|
40
38
|
_setSelectedButtonStyle(payload: {
|
|
41
39
|
id: string;
|
|
42
40
|
}): void;
|
|
43
|
-
_setTextFontFamily(payload: {
|
|
44
|
-
fontFamily: FontFamilyKey;
|
|
45
|
-
}): void;
|
|
46
41
|
_setTextStyles(payload: Partial<TextStyles>): void;
|
|
47
42
|
setAdminStyleOptionDefaultValues(): void;
|
|
48
43
|
setTextStyleOption(payload: {
|
|
@@ -72,7 +67,4 @@ export declare const useUiStyleSettingsStore: import("pinia").StoreDefinition<"u
|
|
|
72
67
|
setSelectedButtonStyle(payload: {
|
|
73
68
|
id: string;
|
|
74
69
|
}): void;
|
|
75
|
-
setTextFontFamily(payload: {
|
|
76
|
-
fontFamily: FontFamilyKey;
|
|
77
|
-
}): Promise<void>;
|
|
78
70
|
}>;
|
|
@@ -9,7 +9,6 @@ import { useUiPageSettingsStore } from '../../page-settings/store';
|
|
|
9
9
|
import { PAGE_SECTIONS } from '../../page-settings/models';
|
|
10
10
|
import { availableButtonStyleConfigs } from '@brand-page-maker/models';
|
|
11
11
|
import { buttonStylePresetCss } from '../button-style-preset';
|
|
12
|
-
import { TRIGGER_TYPE, UPGRADE_CTA_LOCATIONS, useEventTracker, } from '@brand-page-maker/composables/useEventTracker';
|
|
13
12
|
const onStyleChanged = () => {
|
|
14
13
|
const uiStore = useUiStore();
|
|
15
14
|
return uiStore.onStyleChanged();
|
|
@@ -96,15 +95,8 @@ export const useUiStyleSettingsStore = defineStore('uiStyleSettings', {
|
|
|
96
95
|
state.buttonStyles.selectedButtonStyleId = payload.id;
|
|
97
96
|
});
|
|
98
97
|
},
|
|
99
|
-
_setTextFontFamily(payload) {
|
|
100
|
-
this.$patch((state) => {
|
|
101
|
-
state.textStyles.textFontFamily = payload.fontFamily;
|
|
102
|
-
});
|
|
103
|
-
},
|
|
104
98
|
_setTextStyles(payload) {
|
|
105
99
|
this.$patch((state) => {
|
|
106
|
-
state.textStyles.textFontFamily =
|
|
107
|
-
payload.textFontFamily || state.textStyles.textFontFamily;
|
|
108
100
|
state.textStyles.textStyleOptions =
|
|
109
101
|
payload.textStyleOptions || state.textStyles.textStyleOptions;
|
|
110
102
|
});
|
|
@@ -212,24 +204,6 @@ export const useUiStyleSettingsStore = defineStore('uiStyleSettings', {
|
|
|
212
204
|
this._setButtonStyle(buttonStyle);
|
|
213
205
|
onStyleChanged();
|
|
214
206
|
},
|
|
215
|
-
async setTextFontFamily(payload) {
|
|
216
|
-
const uiStore = useUiStore();
|
|
217
|
-
const eventTracker = useEventTracker();
|
|
218
|
-
const fontFamilyConfig = this.availableTextFontFamilyOptions.find((x) => x.key === payload.fontFamily);
|
|
219
|
-
if (!fontFamilyConfig) {
|
|
220
|
-
return;
|
|
221
|
-
}
|
|
222
|
-
if (fontFamilyConfig.isLocked) {
|
|
223
|
-
eventTracker.setUpsellBridgeState({
|
|
224
|
-
cta_location: UPGRADE_CTA_LOCATIONS.ADD_CONTENT,
|
|
225
|
-
trigger_type: TRIGGER_TYPE.AUTOMATIC,
|
|
226
|
-
content_type: 'font',
|
|
227
|
-
});
|
|
228
|
-
await uiStore.showUpgradeModalAndSaveAsync();
|
|
229
|
-
return;
|
|
230
|
-
}
|
|
231
|
-
await this._setTextFontFamily(payload);
|
|
232
|
-
},
|
|
233
207
|
},
|
|
234
208
|
getters: {
|
|
235
209
|
availableTextFontFamilyOptions() {
|
|
@@ -261,15 +235,11 @@ export const useUiStyleSettingsStore = defineStore('uiStyleSettings', {
|
|
|
261
235
|
buttonSoftShadowColor() {
|
|
262
236
|
return getColorFromCSSShadow(this.buttonStyles.style.boxShadow);
|
|
263
237
|
},
|
|
264
|
-
//
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
},
|
|
238
|
+
// BP-5969 (ADR-0020): the `defaultTextColor` getter is gone — there is no site-wide
|
|
239
|
+
// default text colour any more (no base coat, roles carry none). Its only consumer,
|
|
240
|
+
// the Color Matches panel, no longer feeds one in.
|
|
268
241
|
selectedButtonStyleConfig() {
|
|
269
242
|
return this.availableButtonStyleConfigs.find((s) => s.id === this.buttonStyles.selectedButtonStyleId);
|
|
270
243
|
},
|
|
271
|
-
selectedTextFontFamily() {
|
|
272
|
-
return this.textStyles.textFontFamily;
|
|
273
|
-
},
|
|
274
244
|
},
|
|
275
245
|
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { textSizeValueConvertor } from '@brand-page-maker/convertors';
|
|
2
|
+
// A role is only compared with the one above it in its own group. Button text has no
|
|
3
|
+
// group: it has nothing above or below it.
|
|
4
|
+
const SIZE_ORDER_GROUPS = [
|
|
5
|
+
['heading1', 'heading2', 'heading3', 'heading4', 'heading5', 'heading6'],
|
|
6
|
+
['paragraph1', 'paragraph2', 'paragraph3'],
|
|
7
|
+
];
|
|
8
|
+
// The px the role card shows, so two sizes that read the same never count as out of order.
|
|
9
|
+
const roleSizePx = (options, type) => Number(textSizeValueConvertor.convert(options[type]?.style));
|
|
10
|
+
// Equal sizes are allowed: a group can tell two roles apart by weight alone.
|
|
11
|
+
export const hasTextStyleSizeOrderIssue = (options) => SIZE_ORDER_GROUPS.some((types) => types
|
|
12
|
+
.slice(1)
|
|
13
|
+
.some((type, index) => roleSizePx(options, type) > roleSizePx(options, types[index])));
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MIGRATION-22 SNAPSHOT DEPENDENCY: its normalisation and RTE lift use `composeTextDecoration`,
|
|
3
|
+
* `NEUTRAL_TYPOGRAPHY_VALUE`, `TEXT_STYLE_CASCADE_PROPS` and `roleVarRef`. After migration-22
|
|
4
|
+
* releases, pin their v22 behaviour in the migration before changing them.
|
|
5
|
+
*/
|
|
6
|
+
export declare const ROLE_VAR_ATTRS: readonly [{
|
|
7
|
+
readonly markAttr: "fontFamily";
|
|
8
|
+
readonly cssProp: "font-family";
|
|
9
|
+
readonly varName: "--role-font-family";
|
|
10
|
+
}, {
|
|
11
|
+
readonly markAttr: "fontSize";
|
|
12
|
+
readonly cssProp: "font-size";
|
|
13
|
+
readonly varName: "--role-font-size";
|
|
14
|
+
}, {
|
|
15
|
+
readonly markAttr: "lineHeight";
|
|
16
|
+
readonly cssProp: "line-height";
|
|
17
|
+
readonly varName: "--role-line-height";
|
|
18
|
+
}, {
|
|
19
|
+
readonly markAttr: "letterSpacing";
|
|
20
|
+
readonly cssProp: "letter-spacing";
|
|
21
|
+
readonly varName: "--role-letter-spacing";
|
|
22
|
+
}, {
|
|
23
|
+
readonly markAttr: "fontWeight";
|
|
24
|
+
readonly cssProp: "font-weight";
|
|
25
|
+
readonly varName: "--role-font-weight";
|
|
26
|
+
}, {
|
|
27
|
+
readonly markAttr: "fontStyle";
|
|
28
|
+
readonly cssProp: "font-style";
|
|
29
|
+
readonly varName: "--role-font-style";
|
|
30
|
+
}, {
|
|
31
|
+
readonly markAttr: "textDecoration";
|
|
32
|
+
readonly cssProp: "text-decoration";
|
|
33
|
+
readonly varName: "--role-text-decoration";
|
|
34
|
+
}];
|
|
35
|
+
export type RoleVarMarkAttr = (typeof ROLE_VAR_ATTRS)[number]['markAttr'];
|
|
36
|
+
export declare const TEXT_STYLE_CASCADE_PROPS: readonly ["fontFamily", "fontSize", "fontWeight", "fontStyle", "letterSpacing", "lineHeight", "textDecoration"];
|
|
37
|
+
export type CascadeTypographyProp = (typeof TEXT_STYLE_CASCADE_PROPS)[number];
|
|
38
|
+
/** A copy of a style without typography; colour, alignment and other metadata stay. */
|
|
39
|
+
export declare const omitTypography: <T extends object>(style: T) => Omit<T, CascadeTypographyProp>;
|
|
40
|
+
/**
|
|
41
|
+
* `omitTypography` as a patch, for the stores that deep-merge a write: an unset value replaces the
|
|
42
|
+
* block's own and their role normalisation then drops the key.
|
|
43
|
+
*/
|
|
44
|
+
export declare const CLEARED_TYPOGRAPHY: Readonly<Record<CascadeTypographyProp, undefined>>;
|
|
45
|
+
/** Only the typography a style sets itself. */
|
|
46
|
+
export declare const pickTypography: (style: Partial<Record<CascadeTypographyProp, string>>) => Partial<Record<CascadeTypographyProp, string>>;
|
|
47
|
+
export declare const textRoleClassName: (type: string) => string;
|
|
48
|
+
export declare const roleVarRef: (markAttr: string) => string | undefined;
|
|
49
|
+
export declare const NEUTRAL_TYPOGRAPHY_VALUE: Partial<Record<RoleVarMarkAttr, string>>;
|
|
50
|
+
/**
|
|
51
|
+
* Whether a local decoration explicitly clears its role's lines before adding its own. The reset
|
|
52
|
+
* marker qualifies the run's own lines, so with no literal (absent, or the role ref) it means nothing.
|
|
53
|
+
*/
|
|
54
|
+
export declare const textDecorationClearsRole: (value: string | undefined, resetMarker?: boolean) => boolean;
|
|
55
|
+
/**
|
|
56
|
+
* A run's own decoration in the form every compare reads: a reset run's lines become `none <lines>`
|
|
57
|
+
* ("clear the role, then draw these"). A read form only — writes store the marker instead.
|
|
58
|
+
*/
|
|
59
|
+
export declare const localTextDecoration: (value: string | undefined, resetMarker?: boolean) => string | undefined;
|
|
60
|
+
export declare const textDecorationFlags: (value: string | undefined) => Set<string>;
|
|
61
|
+
export declare const textDecorationValue: (flags: Iterable<string>) => string;
|
|
62
|
+
export declare const composeTextDecoration: (roleValue: string | undefined, localValue: string | undefined, clearsRole?: boolean) => string | undefined;
|
|
63
|
+
export declare const rteTextDecorationClassName: (value: string | undefined, clearsRole?: boolean) => string | undefined;
|
|
64
|
+
export declare const runTypographyFillValue: (attr: RoleVarMarkAttr, roleStyle: Partial<Record<RoleVarMarkAttr, string>> | undefined, styleObj: Partial<Record<RoleVarMarkAttr, string>> | undefined) => string | undefined;
|