@designcrowd/library.brand-page 6.2.16 → 6.2.17-header-logo-2
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-B_-PPZBi.js → CreatedOnBrandCrowd-de-de-BOI1vWbt.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-BO1Kj3iA.js → CreatedOnBrandCrowd-en-us-Jbe9uKyr.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-BoDJWRn2.js → CreatedOnBrandCrowd-es-es-Dz2jBuJE.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-DUJZmdAy.js → CreatedOnBrandCrowd-fr-ca-Cm1BpEvu.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-DUJZmdAy.js → CreatedOnBrandCrowd-fr-fr-Cm1BpEvu.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-pIlAG13E.js → CreatedOnBrandCrowd-pt-br-CN9vyvDE.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-pIlAG13E.js → CreatedOnBrandCrowd-pt-pt-CN9vyvDE.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-BNJtDtvi.js → CreatedOnDcom-de-de-BajY3tSa.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-uL6WU_1S.js → CreatedOnDcom-en-us-BxEXoQ81.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-DGZQISoF.js → CreatedOnDcom-es-es-DznU1_dJ.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-CvYWKqNh.js → CreatedOnDcom-fr-ca-i-_eVdFp.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-CpohVgCR.js → CreatedOnDcom-fr-fr-2AuegXtF.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-CaKS-48n.js → CreatedOnDcom-pt-br-B1Uh30JW.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-D4g-iecQ.js → CreatedOnDcom-pt-pt-CtJ-Ax2w.js} +1 -1
- package/lib/src/about-ClPbbvEP.js +13 -0
- package/lib/src/add-page-BG8HrWd6.js +13 -0
- package/lib/src/ai-BC9-shMV.js +13 -0
- package/lib/src/align-center-DmTZgbR6.js +14 -0
- package/lib/src/align-justify-DtjgYa_R.js +14 -0
- package/lib/src/align-left-y8c8S6kK.js +14 -0
- package/lib/src/align-right-CF5cjUm5.js +14 -0
- package/lib/src/animate-Dza5yUux.js +14 -0
- package/lib/src/annotate-heart-fAnAVl9h.js +14 -0
- package/lib/src/arrow-down-C9WFeIPW.js +13 -0
- package/lib/src/arrow-left-Do7NUZSU.js +14 -0
- package/lib/src/arrow-right-QUcZg8m9.js +14 -0
- package/lib/src/arrow-top-right-DEiQzge_.js +13 -0
- package/lib/src/arrow-up-DKq0CXS7.js +14 -0
- package/lib/src/arrow-up-underline-FrAMFh20.js +14 -0
- package/lib/src/attach-CbIEV2iB.js +13 -0
- package/lib/src/auth-facebook-C8Uc_vyG.js +16 -0
- package/lib/src/auth-facebook-white-CUC_80AY.js +24 -0
- package/lib/src/auth-google-MNBcZcM4.js +16 -0
- package/lib/src/award-BBOTZiFo.js +14 -0
- package/lib/src/background-FoMxgtMT.js +14 -0
- package/lib/src/badge-Lf6nSNsI.js +15 -0
- package/lib/src/ban-BDZp09m4.js +10 -0
- package/lib/src/banner-BknAsxzR.js +14 -0
- package/lib/src/banner-centered-6kWp2Seu.js +28 -0
- package/lib/src/banner-left-CIjB0pBU.js +28 -0
- package/lib/src/bar-BG_z21fP.js +31 -0
- package/lib/src/bc-mast-BwMW-7kD.js +14 -0
- package/lib/src/bezier-curve-BrWXFsTe.js +14 -0
- package/lib/src/bezier-curve-outline-G3QC1LUn.js +14 -0
- package/lib/src/bold-DPo-2It8.js +14 -0
- package/lib/src/brand-page/components/page/Page.mixin.d.ts +0 -8
- package/lib/src/brand-page/components/page/Page.mixin.js +5 -85
- package/lib/src/brand-page/components/page-header/HeaderLayout.stories.js +0 -1
- package/lib/src/brand-page/components/page-header/PageHeader.mixin.d.ts +3 -3
- package/lib/src/brand-page/components/page-header/PageHeader.mixin.js +18 -7
- package/lib/src/brand-page/constants/misc.constants.d.ts +7 -0
- package/lib/src/brand-page/constants/misc.constants.js +7 -0
- package/lib/src/brand-page/constants/sections/header-display.constants.d.ts +1 -0
- package/lib/src/brand-page/constants/sections/header-display.constants.js +8 -0
- package/lib/src/brand-page/constants/styles.constants.d.ts +2 -0
- package/lib/src/brand-page/constants/styles.constants.js +2 -0
- package/lib/src/brand-page/models/content.model.d.ts +1 -0
- package/lib/src/brand-page/models/content.model.js +1 -0
- package/lib/src/brand-page/models/index.d.ts +28 -0
- package/lib/src/brand-page/models/index.js +4 -0
- package/lib/src/brand-page/models/navigation-styles.model.d.ts +0 -1
- package/lib/src/brand-page/models/navigation-styles.model.js +5 -2
- package/lib/src/brand-page/utils/container-text-color.util.js +12 -0
- package/lib/src/brand-page/utils/content-callback-util.d.ts +2 -1
- package/lib/src/brand-page/utils/content-callback-util.js +3 -0
- package/lib/src/brand-page/utils/logo.util.d.ts +2 -11
- package/lib/src/brand-page/utils/logo.util.js +18 -23
- package/lib/src/brand-page/utils/migration/migration-01.js +3 -2
- package/lib/src/brand-page/utils/migration/migration-23.d.ts +9 -0
- package/lib/src/brand-page/utils/migration/migration-23.js +141 -0
- package/lib/src/brand-page/utils/migration.util.d.ts +3 -0
- package/lib/src/brand-page/utils/migration.util.js +9 -0
- package/lib/src/brand-page/utils/model.util.js +5 -1
- package/lib/src/brand-page/utils/view-model.util.js +27 -8
- package/lib/src/brand-page/view-models.d.ts +5 -2
- package/lib/src/brand-page-maker/assessors/faq-accordion-color-field-visibility.assessor.d.ts +3 -0
- package/lib/src/brand-page-maker/assessors/faq-accordion-color-field-visibility.assessor.js +4 -0
- package/lib/src/brand-page-maker/assessors/index.d.ts +1 -0
- package/lib/src/brand-page-maker/assessors/index.js +1 -0
- package/lib/src/brand-page-maker/components/admin-logo-settings/AdminLogoSettings.mixin.d.ts +0 -30
- package/lib/src/brand-page-maker/components/admin-logo-settings/AdminLogoSettings.mixin.js +0 -14
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +1 -0
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +5 -68
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.js +0 -6
- package/lib/src/brand-page-maker/components/navigation/Navigation.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.js +2 -0
- package/lib/src/brand-page-maker/composables/useEventTracker.d.ts +5 -0
- package/lib/src/brand-page-maker/composables/useEventTracker.js +5 -0
- package/lib/src/brand-page-maker/constants/config-settings-constant.d.ts +2 -1
- package/lib/src/brand-page-maker/constants/config-settings-constant.js +116 -4
- package/lib/src/brand-page-maker/constants/personalisation.constant.d.ts +2 -2
- package/lib/src/brand-page-maker/constants/personalisation.constant.js +3 -2
- package/lib/src/brand-page-maker/convertors/faq-display-style.convertor.d.ts +3 -0
- package/lib/src/brand-page-maker/convertors/faq-display-style.convertor.js +49 -0
- package/lib/src/brand-page-maker/models/content-settings-configs.d.ts +1 -0
- package/lib/src/brand-page-maker/models/content-settings-configs.js +1 -0
- package/lib/src/brand-page-maker/models/content-settings.d.ts +2 -1
- package/lib/src/brand-page-maker/models/content-settings.js +46 -1
- package/lib/src/brand-page-maker/models/navigation-style-configs.js +0 -7
- package/lib/src/brand-page-maker/stores/admin-logo-settings/admin-logo-settings-store.d.ts +0 -1
- package/lib/src/brand-page-maker/stores/admin-logo-settings/admin-logo-settings-store.js +0 -29
- package/lib/src/brand-page-maker/stores/ai-checkpoint/ai-checkpoint-store.d.ts +869 -113
- package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.js +6 -5
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +9 -13
- package/lib/src/brand-page-maker/utils/apply-color-strategy.js +41 -17
- package/lib/src/brand-page-maker/utils/rte-authoring.util.js +9 -1
- package/lib/src/brand-page-maker/validators/field.validator.js +2 -0
- package/lib/src/briefcase-C7QRlfVj.js +14 -0
- package/lib/src/browser-C4Fsu9Rp.js +14 -0
- package/lib/src/brush-CxvXKzhS.js +13 -0
- package/lib/src/building-BYKxplMv.js +10 -0
- package/lib/src/bulb-ejC9jV8k.js +14 -0
- package/lib/src/{bundled-translations-yGrvPE5i.js → bundled-translations-k_KKJCnS.js} +15 -15
- package/lib/src/{bundled-translations.de-DE-L4Znf8Hs.js → bundled-translations.de-DE-NMDaaBnp.js} +38 -38
- package/lib/src/{bundled-translations.es-ES-D6iticrK.js → bundled-translations.es-ES-CwkmEZam.js} +21 -21
- package/lib/src/{bundled-translations.fr-CA-BgAVE-9k.js → bundled-translations.fr-CA-BndgRIav.js} +33 -33
- package/lib/src/{bundled-translations.fr-FR-B8GbyqxQ.js → bundled-translations.fr-FR-Djo92wzG.js} +9 -9
- package/lib/src/{bundled-translations.pt-BR-DjPU3Db7.js → bundled-translations.pt-BR-Ce49ABPX.js} +19 -19
- package/lib/src/{bundled-translations.pt-PT-BaepaDpr.js → bundled-translations.pt-PT-CQlSVyFK.js} +39 -39
- package/lib/src/bundles/bundled-translations.de-DE.json +9 -2
- package/lib/src/bundles/bundled-translations.es-ES.json +9 -2
- package/lib/src/bundles/bundled-translations.fr-CA.json +9 -2
- package/lib/src/bundles/bundled-translations.fr-FR.json +9 -2
- package/lib/src/bundles/bundled-translations.json +10 -2
- package/lib/src/bundles/bundled-translations.pt-BR.json +9 -2
- package/lib/src/bundles/bundled-translations.pt-PT.json +9 -2
- package/lib/src/business-Bb8SY_4t.js +13 -0
- package/lib/src/business-card-filled-CvgmlFmT.js +10 -0
- package/lib/src/button-BFsYcRhD.js +15 -0
- package/lib/src/button-arrow-BJx7gSqA.js +19 -0
- package/lib/src/button-arrow-left-DH4AWq7r.js +19 -0
- package/lib/src/button-arrow-right-BCiUB6QH.js +19 -0
- package/lib/src/button-brushstroke-CA1mQBL6.js +21 -0
- package/lib/src/button-brushstroke-left-DAkJfXp6.js +14 -0
- package/lib/src/button-brushstroke-right-DfpxRjrR.js +14 -0
- package/lib/src/button-dashed-oval-D845tDes.js +25 -0
- package/lib/src/button-dashed-rectangle-BaNMJI6n.js +24 -0
- package/lib/src/button-dashed-rounded-D8dGILRK.js +25 -0
- package/lib/src/button-doubleline-oval-Dc_s_7EH.js +23 -0
- package/lib/src/button-doubleline-rectangle-CqF3C2lU.js +29 -0
- package/lib/src/button-doubleline-rounded-CYgA2cdT.js +23 -0
- package/lib/src/button-justified-BvDf6Pbt.js +33 -0
- package/lib/src/button-paper-DFL_w8i5.js +16 -0
- package/lib/src/button-paper-bottom-Cp-RylrX.js +12 -0
- package/lib/src/button-paper-top-np44rCsN.js +12 -0
- package/lib/src/button-softshadow-oval-BXo8fPgP.js +16 -0
- package/lib/src/button-softshadow-rectangle-BRrS4zyV.js +16 -0
- package/lib/src/button-softshadow-rounded-CK-QXrTn.js +16 -0
- package/lib/src/calculator-CTna5RqL.js +10 -0
- package/lib/src/calendar-CE15qaV1.js +10 -0
- package/lib/src/callout-error-D7YM8n0x.js +13 -0
- package/lib/src/callout-info-D7Xx1xjG.js +13 -0
- package/lib/src/callout-success-DICEVZAa.js +13 -0
- package/lib/src/callout-warning-BU5vtEfM.js +13 -0
- package/lib/src/cap-wwLcOxPS.js +27 -0
- package/lib/src/card-ONdGPsCh.js +19 -0
- package/lib/src/card-vertical-DlQSWLzg.js +14 -0
- package/lib/src/cart-empty-Nrixgx0R.js +16 -0
- package/lib/src/chart-CR_OxcOP.js +12 -0
- package/lib/src/chart-bar-7kB4RLvL.js +16 -0
- package/lib/src/chart-column-t56f9V2P.js +16 -0
- package/lib/src/chart-line-CCnCNxWd.js +14 -0
- package/lib/src/chart-pie-C1g_-Vkn.js +14 -0
- package/lib/src/check-CtYH_ouU.js +13 -0
- package/lib/src/check-circle-light-CIJpBwsF.js +14 -0
- package/lib/src/check-rounded-bLPfQlOf.js +14 -0
- package/lib/src/check-thin-B-CckFUs.js +14 -0
- package/lib/src/chevron-down-C4YXkyjj.js +14 -0
- package/lib/src/chevron-left-Dcj9aO1z.js +14 -0
- package/lib/src/chevron-right-htnITdyw.js +13 -0
- package/lib/src/chevron-right-wide-D9W9tRvo.js +10 -0
- package/lib/src/chevron-up-CTimP0W7.js +14 -0
- package/lib/src/clipboard-check-ChrOM2YN.js +14 -0
- package/lib/src/clock-DiL7VZIH.js +10 -0
- package/lib/src/close-DIzhn1GP.js +13 -0
- package/lib/src/coins-sparkle-OPx3ecC6.js +21 -0
- package/lib/src/column-1-CjKJ1AxO.js +23 -0
- package/lib/src/column-2-BtVQwHmz.js +29 -0
- package/lib/src/column-3-C5HbER1B.js +35 -0
- package/lib/src/column-4-D78b2Ua0.js +41 -0
- package/lib/src/community-Dqkcz-_P.js +10 -0
- package/lib/src/contact-message-BxTj9hos.js +13 -0
- package/lib/src/content-DkCXjW6X.js +14 -0
- package/lib/src/copy-D4fvhZV9.js +13 -0
- package/lib/src/crop-CoDLQLHd.js +13 -0
- package/lib/src/crown-BRoPrP-q.js +13 -0
- package/lib/src/crown-alt-CujHnvIM.js +10 -0
- package/lib/src/css/library.brand-page-brandCrowd.min.css +642 -450
- package/lib/src/css/library.brand-page-brandPage.min.css +643 -451
- package/lib/src/css/library.brand-page-designCom.min.css +642 -450
- package/lib/src/css/library.brand-page-preview.min.css +642 -450
- package/lib/src/custom-landscape-Bdgi1FoV.js +10 -0
- package/lib/src/delete-C-e_Qs44.js +13 -0
- package/lib/src/designs-BfNTmvUa.js +13 -0
- package/lib/src/desktop-hamburger-display-style-1-DwFJnRU8.js +31 -0
- package/lib/src/desktop-hamburger-display-style-2-dnc1s6ZD.js +31 -0
- package/lib/src/desktop-hamburger-display-style-with-button-1-Bxt77Z0-.js +16 -0
- package/lib/src/desktop-hamburger-display-style-with-button-2-DcLsiFmg.js +16 -0
- package/lib/src/desktop-tab-display-style-1-K4eUbUQc.js +31 -0
- package/lib/src/desktop-tab-display-style-2-DyIWoibZ.js +31 -0
- package/lib/src/desktop-tab-display-style-3-C5zYi9L-.js +27 -0
- package/lib/src/desktop-tab-display-style-4-IBVxAP6N.js +27 -0
- package/lib/src/desktop-tab-display-style-5-D6HYfiSA.js +31 -0
- package/lib/src/desktop-tab-display-style-6-CL-F2q6q.js +31 -0
- package/lib/src/desktop-tab-display-style-7-CAiqt3kJ.js +35 -0
- package/lib/src/desktop-tab-display-style-8-D2vHv7DX.js +31 -0
- package/lib/src/desktop-tab-display-style-with-button-1-Bz7fzcJd.js +35 -0
- package/lib/src/desktop-tab-display-style-with-button-2-eK4g0CtT.js +35 -0
- package/lib/src/desktop-tab-display-style-with-button-3-CFiX98ZH.js +35 -0
- package/lib/src/desktop-tab-display-style-with-button-4-DRBCVqdy.js +31 -0
- package/lib/src/desktop-tab-display-style-with-button-5-V6Dy6Kqr.js +16 -0
- package/lib/src/desktop-tab-display-style-with-button-6-CNg8lc48.js +16 -0
- package/lib/src/desktop-u69TVb5p.js +14 -0
- package/lib/src/diamond-w78TmD0h.js +14 -0
- package/lib/src/digital-business-card-filled-Demt1U8P.js +33 -0
- package/lib/src/display-style-1-BEu6CFUT.js +16 -0
- package/lib/src/display-style-1-Br29nU9V.js +31 -0
- package/lib/src/display-style-1-CnD7K-3Z.js +39 -0
- package/lib/src/display-style-2-8adBygQv.js +27 -0
- package/lib/src/display-style-2-C2mXt6qc.js +31 -0
- package/lib/src/display-style-2-DN4NykmH.js +16 -0
- package/lib/src/display-style-3-DDbu9GXv.js +31 -0
- package/lib/src/display-style-4-Dn2Op2-r.js +31 -0
- package/lib/src/display-style-about-1-3NI-IPV2.js +31 -0
- package/lib/src/display-style-about-2-bs-qb4kv.js +31 -0
- package/lib/src/display-style-about-3-BR-0sYYQ.js +31 -0
- package/lib/src/display-style-about-4-DD6zb0dc.js +16 -0
- package/lib/src/display-style-about-5-C86_L-fC.js +15 -0
- package/lib/src/display-style-about-6-BOwSe1YY.js +15 -0
- package/lib/src/display-style-banner-1-D0neiIKT.js +31 -0
- package/lib/src/display-style-banner-10-ACr-5zT1.js +31 -0
- package/lib/src/display-style-banner-11-D00gvWkN.js +31 -0
- package/lib/src/display-style-banner-12-9k_yNQBW.js +31 -0
- package/lib/src/display-style-banner-13-B_i8Ju4N.js +32 -0
- package/lib/src/display-style-banner-14-CpvQCpos.js +33 -0
- package/lib/src/display-style-banner-15-D8MD7sJG.js +33 -0
- package/lib/src/display-style-banner-2-BXuh9-AX.js +31 -0
- package/lib/src/display-style-banner-3-BsraiGBx.js +31 -0
- package/lib/src/display-style-banner-4-d91-Nxci.js +31 -0
- package/lib/src/display-style-banner-5-CBTCuJ55.js +31 -0
- package/lib/src/display-style-banner-6-DSAJJlaY.js +16 -0
- package/lib/src/display-style-banner-7-DzySW9Xy.js +16 -0
- package/lib/src/display-style-banner-8-B_cgq18m.js +31 -0
- package/lib/src/display-style-banner-9-t-pO6Jg4.js +31 -0
- package/lib/src/display-style-contact-1-B-AsF6my.js +16 -0
- package/lib/src/display-style-contact-2-DMfhyyt9.js +16 -0
- package/lib/src/display-style-contact-4-BJPk2Pbd.js +16 -0
- package/lib/src/display-style-contact-5-BAe-BYp8.js +16 -0
- package/lib/src/display-style-contact-6-CFauYgFb.js +16 -0
- package/lib/src/display-style-faq-1-BgT0eVND.js +16 -0
- package/lib/src/display-style-faq-2-BbER-sTX.js +16 -0
- package/lib/src/display-style-faq-3-D5yHpdug.js +16 -0
- package/lib/src/display-style-images-1-Bwf6ugpH.js +16 -0
- package/lib/src/display-style-images-2-SMGCL64f.js +16 -0
- package/lib/src/display-style-images-3-CnsgndWT.js +16 -0
- package/lib/src/display-style-images-4-ZA8JRP0Z.js +27 -0
- package/lib/src/display-style-images-5-C8u8Febf.js +16 -0
- package/lib/src/display-style-images-6-BVHykxa0.js +16 -0
- package/lib/src/divider-CR165RhP.js +14 -0
- package/lib/src/divider-thick-RshAbykX.js +23 -0
- package/lib/src/divider-thin-PizIMmao.js +23 -0
- package/lib/src/donate-DbZOJZnW.js +13 -0
- package/lib/src/download-ujggIjZY.js +14 -0
- package/lib/src/duplicate-Bhw4wrh1.js +13 -0
- package/lib/src/edit-BXYfQeCz.js +13 -0
- package/lib/src/edit-line-CYDRKzj9.js +16 -0
- package/lib/src/ellipsis-C2pBUY6z.js +13 -0
- package/lib/src/email-DaIH2ZUY.js +10 -0
- package/lib/src/email-symbol-SrN2dmcA.js +10 -0
- package/lib/src/envelope-email-BgdGi32i.js +16 -0
- package/lib/src/eraser-Cl4jOZ57.js +10 -0
- package/lib/src/error-Bqd4-C8y.js +13 -0
- package/lib/src/etsy-DV4EID0w.js +10 -0
- package/lib/src/external-link-DbomUDs5.js +10 -0
- package/lib/src/eye-crossed-1CvXFS6f.js +14 -0
- package/lib/src/eye-open-CNrGpXVz.js +24 -0
- package/lib/src/facebook-nXogbPGh.js +10 -0
- package/lib/src/favicon-BiVHU_d2.js +14 -0
- package/lib/src/fees-s1pYEj21.js +13 -0
- package/lib/src/file-box-DE8tkDVZ.js +13 -0
- package/lib/src/file-empty-D9NIKisK.js +14 -0
- package/lib/src/file-xz_a3HRC.js +14 -0
- package/lib/src/filter-BGGlmF74.js +14 -0
- package/lib/src/filter-BaHyfH4_.js +13 -0
- package/lib/src/filters-C9AT7gv9.js +13 -0
- package/lib/src/flag-CC_ibmfv.js +16 -0
- package/lib/src/flip-horizontal-CTBNXrTn.js +14 -0
- package/lib/src/flip-vertical-CDTrW306.js +14 -0
- package/lib/src/flyer-GZKJlWPk.js +14 -0
- package/lib/src/folder-BQ5gFVJm.js +13 -0
- package/lib/src/font-BOv93oqt.js +14 -0
- package/lib/src/footer-centered-Da9U18UX.js +35 -0
- package/lib/src/footer-left-Bnc_KqHz.js +35 -0
- package/lib/src/form-CmQAxidA.js +10 -0
- package/lib/src/form-message-C3SI_2VM.js +13 -0
- package/lib/src/fullscreen-BOwEZwBD.js +10 -0
- package/lib/src/fullscreen-exit-DGBOSH37.js +10 -0
- package/lib/src/gift-certificate-B6veGMIK.js +10 -0
- package/lib/src/globe-Bs2G5dbf.js +13 -0
- package/lib/src/globe-DFW8ogme.js +10 -0
- package/lib/src/globe-DdC9Dv-2.js +13 -0
- package/lib/src/group-DWmqRz8f.js +13 -0
- package/lib/src/hamburger-1-DmiITW7Y.js +17 -0
- package/lib/src/hamburger-2-QoMuoBxt.js +19 -0
- package/lib/src/hamburger-3-C07bJr3J.js +19 -0
- package/lib/src/hamburger-4-CVkY4au6.js +15 -0
- package/lib/src/hamburger-P-mY7VWK.js +19 -0
- package/lib/src/hamburger-display-style-no-logo-1-BSx4mtP5.js +27 -0
- package/lib/src/hamburger-display-style-no-logo-2-2B-GKQSU.js +27 -0
- package/lib/src/hamburger-display-style-no-logo-3-BXjPCwp8.js +27 -0
- package/lib/src/hamburger-x-dJBitX.js +31 -0
- package/lib/src/headphones-DDES6g0E.js +14 -0
- package/lib/src/heart-vRuF6Yno.js +14 -0
- package/lib/src/history-MCn9bdw-.js +41 -0
- package/lib/src/home-4gvv43pI.js +14 -0
- package/lib/src/home-C9Cc12KI.js +13 -0
- package/lib/src/home-outline-JeCQ_wqW.js +13 -0
- package/lib/src/icon-style-circle-bg-Bzmc4Mch.js +29 -0
- package/lib/src/icon-style-no-bg-VXDwahry.js +23 -0
- package/lib/src/icon-style-square-bg-CZI06D4R.js +29 -0
- package/lib/src/image-CDTu9td1.js +14 -0
- package/lib/src/image-DuHk1UkA.js +14 -0
- package/lib/src/image-gallery-carousel-sKibIp-z.js +22 -0
- package/lib/src/image-gallery-grid-DdzJGRWt.js +32 -0
- package/lib/src/image-gallery-masonry-Dq6IhBk5.js +26 -0
- package/lib/src/images-BD2b-GBv.js +14 -0
- package/lib/src/images-gallery-BlCSvhby.js +10 -0
- package/lib/src/index.d.ts +1 -1
- package/lib/src/index.mjs +171 -169
- package/lib/src/info-BMNzJhor.js +21 -0
- package/lib/src/infographics-CZ3Q1Exz.js +10 -0
- package/lib/src/instagram-nQQP0qcP.js +14 -0
- package/lib/src/invitation--3-xxz-7.js +10 -0
- package/lib/src/invoice-B3sw08vw.js +10 -0
- package/lib/src/italic-ePE1MCwa.js +14 -0
- package/lib/src/jobs-xzSei3ed.js +13 -0
- package/lib/src/layer-CCXYT1kV.js +13 -0
- package/lib/src/layer-bring-front-B8ggiwVa.js +13 -0
- package/lib/src/layer-send-back-NKtHI7eU.js +13 -0
- package/lib/src/layout-BYNrJ08n.js +10 -0
- package/lib/src/layout-icon-bottom-normal-text-center-normal-CWxX2Atx.js +35 -0
- package/lib/src/layout-icon-bottom-normal-text-center-small-DPmc6hDg.js +35 -0
- package/lib/src/layout-icon-bottom-small-text-center-normal-Cdtz9Wws.js +35 -0
- package/lib/src/layout-icon-center-normal-curved-text-bottom-CNsT1cwk.js +33 -0
- package/lib/src/layout-icon-center-normal-curved-text-circle-CfQ_ff9J.js +26 -0
- package/lib/src/layout-icon-center-normal-curved-text-top-BvizyC0f.js +33 -0
- package/lib/src/layout-icon-left-normal-text-center-normal-BjEh5GiP.js +35 -0
- package/lib/src/layout-icon-left-normal-text-justify-normal-Do6osf9Q.js +35 -0
- package/lib/src/layout-icon-left-normal-text-left-normal-B2D9-klC.js +35 -0
- package/lib/src/layout-icon-left-small-text-left-normal-3TZaP_AQ.js +35 -0
- package/lib/src/layout-icon-right-normal-text-center-normal-b3DVzXQr.js +35 -0
- package/lib/src/layout-icon-right-normal-text-justify-normal-DjzdGyVE.js +35 -0
- package/lib/src/layout-icon-right-normal-text-right-normal-8RPlsv0g.js +35 -0
- package/lib/src/layout-icon-right-small-text-right-normal-C6Lxmafr.js +35 -0
- package/lib/src/layout-icon-top-normal-text-center-normal-BPzGcL34.js +35 -0
- package/lib/src/layout-icon-top-normal-text-center-small-CiL6UapF.js +35 -0
- package/lib/src/layout-icon-top-normal-text-justify-normal-BdxKFlxz.js +35 -0
- package/lib/src/layout-icon-top-small-text-center-normal-CQEFgRGz.js +35 -0
- package/lib/src/letterhead-filled-D242ZmCV.js +10 -0
- package/lib/src/{lib-DwDFHSzX.js → lib-3Hnr9X6L.js} +44894 -50406
- package/lib/src/lib.js +1 -1
- package/lib/src/lightning-0DBN7brQ.js +14 -0
- package/lib/src/link-ASbs22iV.js +13 -0
- package/lib/src/link-f9Rqjgzs.js +14 -0
- package/lib/src/link-in-bio-filled-7KGQKnFf.js +33 -0
- package/lib/src/linkedin-DHZ9GYZR.js +14 -0
- package/lib/src/list-bullet-DmLotp-I.js +18 -0
- package/lib/src/list-numbered-4yfRS8uf.js +26 -0
- package/lib/src/location-CLAVWXlO.js +13 -0
- package/lib/src/lock-DeRe5704.js +13 -0
- package/lib/src/log-out-BcZt1tYV.js +14 -0
- package/lib/src/logo-CbnT5-3_.js +10 -0
- package/lib/src/logo-J_17MKVC.js +14 -0
- package/lib/src/mac-command-C_mOn-5D.js +15 -0
- package/lib/src/map-BYGwUtwG.js +13 -0
- package/lib/src/media-CtTU-S2_.js +10 -0
- package/lib/src/menu-BOvesjpI.js +10 -0
- package/lib/src/message-DpeaWeJO.js +13 -0
- package/lib/src/metadata-builder/builders/header-builder.d.ts +1 -0
- package/lib/src/metadata-builder/builders/header-builder.js +3 -1
- package/lib/src/metadata-builder/builders/section-rules/header.rules.d.ts +2 -1
- package/lib/src/metadata-builder/builders/section-rules/header.rules.js +18 -0
- package/lib/src/metadata-builder/parsers/section-tool-arguments.d.ts +1 -1
- package/lib/src/microphone-bold-DHNW7gHW.js +14 -0
- package/lib/src/microphone-oI9aYgUV.js +10 -0
- package/lib/src/minus-BnugKxWp.js +13 -0
- package/lib/src/minus-circle-light-BpwE33R9.js +14 -0
- package/lib/src/mobile-CWUkrrZz.js +10 -0
- package/lib/src/mobile-hamburger-display-style-1-CLeSmPUu.js +31 -0
- package/lib/src/mobile-hamburger-display-style-2-BT2wdGTM.js +31 -0
- package/lib/src/mobile-hamburger-display-style-3-BSfDOb_s.js +31 -0
- package/lib/src/mobile-hamburger-display-style-4-CMWaq5HF.js +31 -0
- package/lib/src/mobile-tab-display-style-1-BPHy8scy.js +31 -0
- package/lib/src/mobile-tab-display-style-2-rD9c_cim.js +31 -0
- package/lib/src/mobile-tab-display-style-with-button-1-DhbLIZq0.js +16 -0
- package/lib/src/mobile-tab-display-style-with-button-2-D--vnzWw.js +16 -0
- package/lib/src/mug-Dlk8rEi1.js +35 -0
- package/lib/src/opacity-CyK39FOD.js +13 -0
- package/lib/src/other-qYQKGjGx.js +29 -0
- package/lib/src/page-blank-Cutm12JP.js +13 -0
- package/lib/src/page-buttons-BVG-wqi2.js +18 -0
- package/lib/src/page-hamburger-CPzInb3g.js +37 -0
- package/lib/src/page-tabs-D6FfcoMT.js +39 -0
- package/lib/src/pages-DlRbcQ85.js +13 -0
- package/lib/src/paint-brush-D3Pb69Wl.js +10 -0
- package/lib/src/palette-4ouQ5VpX.js +14 -0
- package/lib/src/palette-outline-DDTfdInB.js +14 -0
- package/lib/src/pause-BY99VDWb.js +10 -0
- package/lib/src/pause-DidBP71W.js +10 -0
- package/lib/src/payment-BNKU6Duo.js +21 -0
- package/lib/src/payments-featured-BjAlUQu1.js +27 -0
- package/lib/src/payments-textonly-CqIcluCY.js +40 -0
- package/lib/src/payments-thumbnail-DhEXGUn-.js +29 -0
- package/lib/src/pen-WjD6Z863.js +14 -0
- package/lib/src/pen-outline-T-ujuXV9.js +14 -0
- package/lib/src/pen-sparkle-DmImSlQQ.js +26 -0
- package/lib/src/pen-tool-DcGjZWmF.js +14 -0
- package/lib/src/phone-B3Dv_9SX.js +13 -0
- package/lib/src/phone-DWXh3QKt.js +10 -0
- package/lib/src/pinterest-DUKuH82X.js +10 -0
- package/lib/src/play-CwcQ-4x1.js +10 -0
- package/lib/src/plus-DHtDsbcg.js +10 -0
- package/lib/src/plus-circle-Bhjd4jL5.js +14 -0
- package/lib/src/plus-circle-light-B8tUp3Z9.js +15 -0
- package/lib/src/plus-light-SrtSL6KT.js +14 -0
- package/lib/src/poll-CCpHFKR3.js +10 -0
- package/lib/src/portfolio-Cb3y-9ik.js +13 -0
- package/lib/src/postcard-ahKB24ZL.js +10 -0
- package/lib/src/poster-cBbPKnbr.js +14 -0
- package/lib/src/premium-content-BWeZ7Ogy.js +21 -0
- package/lib/src/preview-CBc7qQmh.js +13 -0
- package/lib/src/printing-CsuTvRzs.js +13 -0
- package/lib/src/processing-EcPXndeQ.js +10 -0
- package/lib/src/profile-BglPhJwI.js +10 -0
- package/lib/src/qrcode-BYoiJ8jq.js +10 -0
- package/lib/src/question-alt-D24ac-qg.js +29 -0
- package/lib/src/question-circle-filled-CCIGoq2U.js +14 -0
- package/lib/src/question-dJfpKnPX.js +21 -0
- package/lib/src/quote-Beov5JZG.js +12 -0
- package/lib/src/ratio-1-1-Ev1sUTpr.js +15 -0
- package/lib/src/ratio-16-9-mGEJdf_O.js +15 -0
- package/lib/src/ratio-2-3-B0O8kq4S.js +15 -0
- package/lib/src/ratio-3-2-xEZ6hW32.js +15 -0
- package/lib/src/ratio-3-4-cB-hCsw5.js +15 -0
- package/lib/src/ratio-4-3-BnQw8lJS.js +15 -0
- package/lib/src/ratio-9-16-BkCo5E7z.js +15 -0
- package/lib/src/ratio-circle-5fVudbEI.js +15 -0
- package/lib/src/ratio-original-Df7Cu-Iq.js +23 -0
- package/lib/src/redo-BO3BtgjR.js +13 -0
- package/lib/src/refresh-CSZ5cbQf.js +13 -0
- package/lib/src/reload-BZ-G467N.js +13 -0
- package/lib/src/reorderable-D-4Cz8gf.js +10 -0
- package/lib/src/request-payment-q1GdUQz3.js +13 -0
- package/lib/src/reset-DNJKFu9G.js +13 -0
- package/lib/src/resize-C1ym5cFG.js +25 -0
- package/lib/src/roller-brush-6Lkh0h57.js +10 -0
- package/lib/src/save-0Nq0XX2b.js +13 -0
- package/lib/src/search-CcXdiSZK.js +14 -0
- package/lib/src/secure-DQoaN8iR.js +14 -0
- package/lib/src/select-all-gere2HEj.js +24 -0
- package/lib/src/send-CY8t4K7K.js +23 -0
- package/lib/src/services-B-rJftx1.js +12 -0
- package/lib/src/settings-DjA93nK4.js +15 -0
- package/lib/src/shape-dbkIE51p.js +10 -0
- package/lib/src/share-C5troFj5.js +17 -0
- package/lib/src/shared/color-strategies/color-strategies.js +4 -0
- package/lib/src/shared/color-strategies/rte-field-pairs.d.ts +10 -0
- package/lib/src/shared/color-strategies/rte-field-pairs.js +22 -0
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +5 -0
- package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +6 -1
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +5 -0
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +10 -115
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.js +0 -30
- package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.d.ts +1 -0
- package/lib/src/shared/content-settings/components/items-field/ItemsField.mixin.d.ts +1 -0
- package/lib/src/shared/content-settings/components/items-field/ItemsField.mixin.js +3 -0
- package/lib/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.d.ts +2 -0
- package/lib/src/shared/content-settings/store/content-settings-store.d.ts +2 -0
- package/lib/src/shared/content-settings/store/content-settings-store.js +23 -3
- package/lib/src/shared/logo-settings/components/EditLogoSettings.mixin.d.ts +4 -1
- package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +0 -1
- package/lib/src/shared/logo-settings/components/LogoSettingsHeader.mixin.d.ts +0 -1
- package/lib/src/shared/logo-settings/store/logo-settings-store.d.ts +0 -1
- package/lib/src/shared/logo-settings/store/logo-settings-store.js +23 -93
- package/lib/src/shared/my-designs/MyDesigns.mixin.d.ts +0 -1
- package/lib/src/shared/navigation-style-settings/store/index.d.ts +0 -5
- package/lib/src/shared/navigation-style-settings/store/index.js +0 -3
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +97 -15
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +165 -17
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.js +57 -13
- package/lib/src/shared/page-settings/store/page-settings-store.js +0 -6
- package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +4 -0
- package/lib/src/shared/side-bar/components/SideBarTabButton.mixin.d.ts +4 -0
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +4 -0
- package/lib/src/shared/template-settings/components/TemplatesSettings.mixin.d.ts +4 -0
- package/lib/src/shared/template-settings/store/template-settings-store.js +1 -0
- package/lib/src/shield-tick-CJu2w7jV.js +13 -0
- package/lib/src/shop-BICCwqjA.js +13 -0
- package/lib/src/size-auto-DZ4AHHzc.js +10 -0
- package/lib/src/size-landscape-Co2ovloO.js +10 -0
- package/lib/src/size-portrait-2avbmbvP.js +10 -0
- package/lib/src/size-square-Bz1CZaK9.js +10 -0
- package/lib/src/sms-C1kZrMwo.js +10 -0
- package/lib/src/snapchat-BDhrhjxt.js +10 -0
- package/lib/src/social-facebook-DUNHwNb2.js +13 -0
- package/lib/src/social-facebook-color-Ct7tIJjy.js +25 -0
- package/lib/src/social-facebook-rcl4tAfz.js +10 -0
- package/lib/src/social-google-BTB1aEGv.js +10 -0
- package/lib/src/social-google-DJGuTMlB.js +13 -0
- package/lib/src/social-instagram-BCLf2eXM.js +13 -0
- package/lib/src/social-instagram-color-xjAjceQq.js +62 -0
- package/lib/src/social-linkedin-color-BZqnmI57.js +21 -0
- package/lib/src/social-share-DFkFeYix.js +12 -0
- package/lib/src/social-twitter-C1oScO7g.js +13 -0
- package/lib/src/social-twitter-color-DfOtI2Fg.js +25 -0
- package/lib/src/social-youtube-CkY91Sxk.js +13 -0
- package/lib/src/sort-Ba_MLXhQ.js +10 -0
- package/lib/src/soundcloud-D75CdlVH.js +14 -0
- package/lib/src/spacing-D_NTz008.js +27 -0
- package/lib/src/sparkle-square-C88DaAJm.js +31 -0
- package/lib/src/squares-CjaXv6E1.js +14 -0
- package/lib/src/star-filled-Dt4dP2V-.js +13 -0
- package/lib/src/star-hollow-DAKZTQq1.js +13 -0
- package/lib/src/sticker-DoYqtPNb.js +35 -0
- package/lib/src/stop-C0S-1Eo6.js +10 -0
- package/lib/src/strikethrough-BT13BDrx.js +14 -0
- package/lib/src/styles-Bs4y1ta6.js +10 -0
- package/lib/src/submit-BEB1wlPX.js +10 -0
- package/lib/src/t-shirt-D5YXSF2K.js +39 -0
- package/lib/src/tab-display-style-no-logo-1-BPxJPqUS.js +27 -0
- package/lib/src/tab-display-style-no-logo-2-Bkrgx0ll.js +27 -0
- package/lib/src/tab-display-style-no-logo-3-BWGcUgUX.js +27 -0
- package/lib/src/templates-B8egC2a3.js +14 -0
- package/lib/src/testimonial-big-image-DiPmYzdt.js +36 -0
- package/lib/src/testimonial-centered-jM2INLSy.js +32 -0
- package/lib/src/testimonial-columns-CDa9i6jz.js +40 -0
- package/lib/src/text-BK4YqqR7.js +14 -0
- package/lib/src/text-background-color-CPbyeOQM.js +21 -0
- package/lib/src/text-color-CbbWTlsX.js +23 -0
- package/lib/src/text-fkXBkdFx.js +14 -0
- package/lib/src/text-image-Co5SPyE6.js +44 -0
- package/lib/src/text-image-center-CmrIdS6C.js +28 -0
- package/lib/src/text-image-justified-BsXIFw9g.js +35 -0
- package/lib/src/text-image-left-CJVXL3QB.js +29 -0
- package/lib/src/text-image-only-ypeim10E.js +21 -0
- package/lib/src/text-image-right--XlSLgPu.js +29 -0
- package/lib/src/thankyou-card-CNoj8H8v.js +10 -0
- package/lib/src/thumbs-up-Cu5CKecf.js +10 -0
- package/lib/src/tiktok-DIga2vn6.js +10 -0
- package/lib/src/time-xJztv3yG.js +13 -0
- package/lib/src/tools-DKpoB0za.js +10 -0
- package/lib/src/tooltip-bottom-Bqw5Ggwa.js +12 -0
- package/lib/src/tooltip-left-CXVjJLB5.js +12 -0
- package/lib/src/tooltip-right-BY3BbjDG.js +12 -0
- package/lib/src/tooltip-top-BGstn3Lx.js +12 -0
- package/lib/src/tracker.mjs +1 -1
- package/lib/src/transition-D7Q-Bywn.js +27 -0
- package/lib/src/tumblr-DmzEhDlC.js +10 -0
- package/lib/src/twitch-CnDfpoBo.js +14 -0
- package/lib/src/twitter-DtPX8NYL.js +10 -0
- package/lib/src/underline-DHSpai3b.js +14 -0
- package/lib/src/undo-Db0DM_wS.js +13 -0
- package/lib/src/upgrade-alt-DBg1uVjf.js +14 -0
- package/lib/src/upgrade-eol6OnYc.js +16 -0
- package/lib/src/upgrade-to-add-page-xxEFVCff.js +57 -0
- package/lib/src/upgrade-to-contact-form-DlR6bx9L.js +95 -0
- package/lib/src/upgrade-to-google-ad-DMQhbFHz.js +129 -0
- package/lib/src/upgrade-to-maps-CodU6Iau.js +56 -0
- package/lib/src/upgrade-to-publish-JBLIGtsj.js +119 -0
- package/lib/src/upgrade-to-remove-watermark-z8PYQRQa.js +108 -0
- package/lib/src/upgrade-to-videos-BD2PpjC9.js +54 -0
- package/lib/src/upload-DIjYSaqf.js +10 -0
- package/lib/src/upload-arrow-C1Nu7eRP.js +10 -0
- package/lib/src/uppercase-DzGUT1dN.js +24 -0
- package/lib/src/{useEventTracker-DwPTmzpa.js → useEventTracker-BxQMBVf2.js} +6 -1
- package/lib/src/user-accounts-BxgZqjGt.js +10 -0
- package/lib/src/user-headset-nsAkiLau.js +57 -0
- package/lib/src/users-2-CnGpSLZE.js +15 -0
- package/lib/src/users-hA6xggk_.js +14 -0
- package/lib/src/video-BpWihNI_.js +10 -0
- package/lib/src/volume-BThAw2yn.js +10 -0
- package/lib/src/volume-muted-aeB5xUdN.js +10 -0
- package/lib/src/watchlist-filled-DN0u9uPt.js +24 -0
- package/lib/src/watchlist-hollow-B9t39PYN.js +13 -0
- package/lib/src/watchlist-hollow-alt-CVkYAHSm.js +24 -0
- package/lib/src/website-C_0agqCX.js +13 -0
- package/lib/src/website-filled-mlyF30rW.js +10 -0
- package/lib/src/whatsapp-DCNrs0zG.js +14 -0
- package/lib/src/wholesale-B5H4aswk.js +13 -0
- package/lib/src/wrap-text-iULZ1Msd.js +15 -0
- package/lib/src/youtube-C8GpL4B2.js +10 -0
- package/lib/src/zoom-2WYMtdQd.js +16 -0
- package/lib/src/zoom-WMvDdyz5.js +10 -0
- package/lib/src/zoom-in-BpNXDZ6b.js +10 -0
- package/lib/src/zoom-out-B7MQdPdu.js +10 -0
- package/package.json +2 -2
- package/src/brand-page/components/faq-section/FaqSection.test.ts +196 -0
- package/src/brand-page/components/faq-section/FaqSection.vue +315 -0
- package/src/brand-page/components/logo/Logo.vue +14 -7
- package/src/brand-page/components/page/Page.mixin.ts +6 -128
- package/src/brand-page/components/page/Page.vue +1 -103
- package/src/brand-page/components/page/Page.vue.test.ts +88 -2
- package/src/brand-page/components/page/PageComponent.vue +2 -0
- package/src/brand-page/components/page-header/HeaderLayout.stories.ts +0 -1
- package/src/brand-page/components/page-header/HeaderLayout.vue +52 -7
- package/src/brand-page/components/page-header/PageHeader.mixin.ts +24 -7
- package/src/brand-page/components/page-header/PageHeader.vue +28 -7
- package/src/brand-page/components/page-header/PageHeader.vue.test.ts +190 -4
- package/src/brand-page/constants/misc.constants.ts +9 -0
- package/src/brand-page/constants/sections/header-display.constants.ts +9 -0
- package/src/brand-page/constants/styles.constants.ts +2 -0
- package/src/brand-page/models/content.model.ts +1 -0
- package/src/brand-page/models/header-button.model.test.ts +26 -0
- package/src/brand-page/models/index.ts +37 -0
- package/src/brand-page/models/navigation-styles.model.ts +5 -2
- package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +3 -9
- package/src/brand-page/utils/__snapshots__/migration2.util.test.ts.snap +0 -2
- package/src/brand-page/utils/__snapshots__/model.util.test.ts.snap +9 -13
- package/src/brand-page/utils/container-text-color.util.test.ts +126 -0
- package/src/brand-page/utils/container-text-color.util.ts +16 -0
- package/src/brand-page/utils/content-callback-util.ts +5 -0
- package/src/brand-page/utils/logo.util.recalculate.test.ts +37 -0
- package/src/brand-page/utils/logo.util.test.ts +35 -22
- package/src/brand-page/utils/logo.util.ts +28 -36
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/edited-brandsite-sections.v22.json +4 -4
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/new-brandcontact-every-section.v22.json +4 -4
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/new-brandpage-every-section.v22.json +4 -4
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/new-brandsite-every-section.v22.json +4 -4
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/real-brandcontact.v22.json +4 -4
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/real-brandpage-general-link.v22.json +4 -4
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/real-brandpage-links.v22.json +4 -4
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/real-brandpage-social-links.v22.json +4 -4
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/real-brandsite-about.v22.json +4 -4
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/real-brandsite-footer.v22.json +4 -4
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/real-brandsite-header-banner.v22.json +4 -4
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/real-brandsite-sections.v22.json +4 -4
- package/src/brand-page/utils/migration/migration-01.ts +17 -2
- package/src/brand-page/utils/migration/migration-23.test.ts +712 -0
- package/src/brand-page/utils/migration/migration-23.ts +214 -0
- package/src/brand-page/utils/migration.util.test.ts +32 -6
- package/src/brand-page/utils/migration.util.ts +13 -0
- package/src/brand-page/utils/model.util.test.ts +27 -2
- package/src/brand-page/utils/model.util.ts +6 -0
- package/src/brand-page/utils/personalisation.util.test.ts +53 -0
- package/src/brand-page/utils/style.util.test.ts +25 -2
- package/src/brand-page/utils/view-model.util.test.ts +138 -0
- package/src/brand-page/utils/view-model.util.ts +43 -7
- package/src/brand-page/view-models.ts +8 -1
- package/src/brand-page-maker/assessors/faq-accordion-color-field-visibility.assessor.ts +9 -0
- package/src/brand-page-maker/assessors/index.ts +1 -0
- package/src/brand-page-maker/components/admin-logo-settings/AdminLogoSettings.mixin.ts +0 -20
- package/src/brand-page-maker/components/admin-logo-settings/AdminLogoSettings.vue +1 -11
- package/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.ts +0 -6
- package/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.vue +0 -60
- package/src/brand-page-maker/components/preview/Preview.vue +0 -1
- package/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.ts +2 -0
- package/src/brand-page-maker/composables/useEventTracker.ts +8 -0
- package/src/brand-page-maker/constants/config-settings-constant.ts +122 -1
- package/src/brand-page-maker/constants/faq-section-config.test.ts +22 -0
- package/src/brand-page-maker/constants/personalisation.constant.ts +5 -3
- package/src/brand-page-maker/convertors/faq-display-style.convertor.ts +61 -0
- package/src/brand-page-maker/models/content-settings-configs.ts +1 -0
- package/src/brand-page-maker/models/content-settings.test.ts +6 -0
- package/src/brand-page-maker/models/content-settings.ts +51 -0
- package/src/brand-page-maker/models/navigation-style-configs.ts +0 -7
- package/src/brand-page-maker/stores/admin-logo-settings/admin-logo-settings-store.ts +0 -49
- package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.save.test.ts +79 -1
- package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.ts +6 -5
- package/src/brand-page-maker/stores/brandpage-maker/__snapshots__/brandpage-maker-store.test.ts.snap +0 -1
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.test.ts +111 -0
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +18 -28
- package/src/brand-page-maker/utils/__snapshots__/apply-color-strategy.golden.test.ts.snap +2940 -300
- package/src/brand-page-maker/utils/apply-color-strategy.test.ts +93 -2
- package/src/brand-page-maker/utils/apply-color-strategy.ts +69 -19
- package/src/brand-page-maker/utils/rte-authoring.util.test.ts +30 -0
- package/src/brand-page-maker/utils/rte-authoring.util.ts +14 -0
- package/src/brand-page-maker/validators/field.validator.ts +2 -0
- package/src/bundles/bundled-translations.de-DE.json +9 -2
- package/src/bundles/bundled-translations.es-ES.json +9 -2
- package/src/bundles/bundled-translations.fr-CA.json +9 -2
- package/src/bundles/bundled-translations.fr-FR.json +9 -2
- package/src/bundles/bundled-translations.json +10 -2
- package/src/bundles/bundled-translations.pt-BR.json +9 -2
- package/src/bundles/bundled-translations.pt-PT.json +9 -2
- package/src/lib.ts +1 -0
- package/src/metadata-builder/builders/header-builder.test.ts +55 -1
- package/src/metadata-builder/builders/header-builder.ts +6 -1
- package/src/metadata-builder/builders/section-rules/header.rules.ts +37 -1
- package/src/metadata-builder/parsers/section-tool-arguments.ts +2 -1
- package/src/shared/color-strategies/color-strategies.ts +4 -0
- package/src/shared/color-strategies/rte-field-pairs.test.ts +2 -0
- package/src/shared/color-strategies/rte-field-pairs.ts +34 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.de-DE.json +10 -1
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.es-ES.json +10 -1
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-CA.json +10 -1
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-FR.json +10 -1
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.json +10 -1
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-BR.json +10 -1
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-PT.json +10 -1
- package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.ts +2 -41
- package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.test.ts +62 -0
- package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.vue +2 -0
- package/src/shared/content-settings/components/faq-items-field/FaqItemsField.test.ts +162 -0
- package/src/shared/content-settings/components/faq-items-field/FaqItemsField.vue +287 -0
- package/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.vue +1 -0
- package/src/shared/content-settings/components/items-field/ItemsField.mixin.ts +3 -0
- package/src/shared/content-settings/components/items-field/ItemsField.vue +13 -3
- package/src/shared/content-settings/store/content-settings-store.test.ts +86 -0
- package/src/shared/content-settings/store/content-settings-store.ts +39 -4
- package/src/shared/logo-settings/store/logo-settings-store.test.ts +27 -1
- package/src/shared/logo-settings/store/logo-settings-store.ts +24 -137
- package/src/shared/navigation-style-settings/store/index.ts +0 -12
- package/src/shared/page-settings/components/header-settings-panel/HeaderSettingsPanel.test.ts +213 -25
- package/src/shared/page-settings/components/header-settings-panel/HeaderSettingsPanel.vue +15 -25
- package/src/shared/page-settings/components/page-settings/i18n/page-settings.json +1 -0
- package/src/shared/page-settings/components/page-settings-section-styles/HeaderDisplayStyle.test.ts +94 -29
- package/src/shared/page-settings/components/page-settings-section-styles/HeaderDisplayStyle.vue +19 -28
- package/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.header-button.test.ts +195 -3
- package/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.ts +74 -15
- package/src/shared/page-settings/components/page-settings-section-styles/i18n/page-settings-section.de-DE.json +0 -1
- package/src/shared/page-settings/components/page-settings-section-styles/i18n/page-settings-section.es-ES.json +0 -1
- package/src/shared/page-settings/components/page-settings-section-styles/i18n/page-settings-section.fr-CA.json +0 -1
- package/src/shared/page-settings/components/page-settings-section-styles/i18n/page-settings-section.fr-FR.json +0 -1
- package/src/shared/page-settings/components/page-settings-section-styles/i18n/page-settings-section.json +0 -1
- package/src/shared/page-settings/components/page-settings-section-styles/i18n/page-settings-section.pt-BR.json +0 -1
- package/src/shared/page-settings/components/page-settings-section-styles/i18n/page-settings-section.pt-PT.json +0 -1
- package/src/shared/page-settings/store/page-settings-store.test.ts +22 -0
- package/src/shared/page-settings/store/page-settings-store.ts +0 -7
- package/src/shared/template-settings/store/template-settings-store.ts +1 -0
- package/src/brand-page/components/page/BrandSiteNavigationLayout.vue +0 -70
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import cloneDeep from 'lodash.clonedeep';
|
|
2
|
+
import { BRAND_PAGE_TYPES, HEADER_DISPLAY, } from '../../';
|
|
3
|
+
import { isLogoContent } from '../model.util';
|
|
4
|
+
// Mirrors the published site's own home rule: navItems[0] (slug-routes.composable.ts).
|
|
5
|
+
// A nav with no orders has no first entry to open, so it falls back to the first page.
|
|
6
|
+
const findHomePage = (nav, pages) => {
|
|
7
|
+
if (nav.orders.length === 0) {
|
|
8
|
+
return pages[0];
|
|
9
|
+
}
|
|
10
|
+
const homeRoute = nav.routes.find((route) => route.id === nav.orders[0].routeId);
|
|
11
|
+
return pages.find((page) => page.id === homeRoute?.pageId);
|
|
12
|
+
};
|
|
13
|
+
// Frozen copy of `hasVisibleNavigation` (route.util.ts) against the raw orders/routes a
|
|
14
|
+
// migration sees, instead of the NavItemViewModel the live renderer builds.
|
|
15
|
+
const isNavShown = (nav) => {
|
|
16
|
+
const isRouteVisible = (routeId) => {
|
|
17
|
+
const route = nav.routes.find((r) => r.id === routeId);
|
|
18
|
+
return route !== undefined && !route.isHidden;
|
|
19
|
+
};
|
|
20
|
+
const visibleOrders = nav.orders.filter((order) => isRouteVisible(order.routeId));
|
|
21
|
+
return (visibleOrders.length > 1 ||
|
|
22
|
+
(visibleOrders.length === 1 &&
|
|
23
|
+
visibleOrders[0].subRoutes.some((subRoute) => isRouteVisible(subRoute.routeId))));
|
|
24
|
+
};
|
|
25
|
+
const isFirstBlockAShownLogo = (page) => {
|
|
26
|
+
const first = page?.contents[0];
|
|
27
|
+
return isLogoContent(first) && first.isLogoVisible;
|
|
28
|
+
};
|
|
29
|
+
const isFirstBlockALogo = (page) => isLogoContent(page?.contents[0]);
|
|
30
|
+
// The home page's own leading block, shown or hidden; any other shape means the header
|
|
31
|
+
// keeps what it already has.
|
|
32
|
+
const findSourceLogoBlock = (homePage) => {
|
|
33
|
+
const homeBlock = homePage?.contents[0];
|
|
34
|
+
return homeBlock && isLogoContent(homeBlock) ? homeBlock : undefined;
|
|
35
|
+
};
|
|
36
|
+
// Retired field read raw (legacy-migrations.md).
|
|
37
|
+
const takeRenderAfterLogo = (navigation) => {
|
|
38
|
+
const raw = navigation;
|
|
39
|
+
const value = raw['renderAfterLogo'] === true;
|
|
40
|
+
delete raw['renderAfterLogo'];
|
|
41
|
+
return value;
|
|
42
|
+
};
|
|
43
|
+
// A tab layout always becomes the centred no-logo layout: today's BP/BC nav draws
|
|
44
|
+
// centred whatever is stored. Matched by the absence of "no-logo" in the stored value
|
|
45
|
+
// itself, not an enum allowlist, so a value this migration has never seen can't slip
|
|
46
|
+
// through unclassified.
|
|
47
|
+
const nextDisplayStyle = (viewport, showsLogo) => {
|
|
48
|
+
if (showsLogo) {
|
|
49
|
+
return viewport.stacked;
|
|
50
|
+
}
|
|
51
|
+
if (viewport.isHamburger) {
|
|
52
|
+
return viewport.header.displayStyle.includes('no-logo')
|
|
53
|
+
? viewport.header.displayStyle
|
|
54
|
+
: viewport.hamburgerNoLogo;
|
|
55
|
+
}
|
|
56
|
+
return viewport.tabNoLogo;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Each viewport decides on its own whether the home page's logo sits above the nav there:
|
|
60
|
+
* if so, the header takes the block's values, shown, centred; otherwise the same values,
|
|
61
|
+
* hidden. `options.isTemplate` (blank site, create-draft, template apply, or the admin
|
|
62
|
+
* maker editing a template) treats every tab viewport as above the nav, regardless of the
|
|
63
|
+
* stored setting. See `backward-compatibility.md`.
|
|
64
|
+
*/
|
|
65
|
+
export const migration23 = async (migrationResult, options) => {
|
|
66
|
+
const { brandPageModel } = migrationResult;
|
|
67
|
+
if (brandPageModel.brandPageType === BRAND_PAGE_TYPES.brandSite) {
|
|
68
|
+
const { pageHeaderDesktop, pageHeaderMobile } = brandPageModel;
|
|
69
|
+
if (pageHeaderDesktop && pageHeaderMobile) {
|
|
70
|
+
for (const header of [pageHeaderDesktop, pageHeaderMobile]) {
|
|
71
|
+
takeRenderAfterLogo(header.navigation);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return migrationResult;
|
|
75
|
+
}
|
|
76
|
+
const { pages, nav, pageHeaderDesktop, pageHeaderMobile } = brandPageModel;
|
|
77
|
+
if (!nav || !pageHeaderDesktop || !pageHeaderMobile || !pages) {
|
|
78
|
+
return migrationResult;
|
|
79
|
+
}
|
|
80
|
+
const navShown = isNavShown(nav);
|
|
81
|
+
const homePage = findHomePage(nav, pages);
|
|
82
|
+
const sourceBlock = findSourceLogoBlock(homePage);
|
|
83
|
+
// No real `renderAfterLogo` to honour on this path; see the function doc above.
|
|
84
|
+
const treatAsAboveTheNav = options?.isTemplate === true;
|
|
85
|
+
const viewports = [
|
|
86
|
+
{
|
|
87
|
+
header: pageHeaderDesktop,
|
|
88
|
+
stacked: HEADER_DISPLAY.DESKTOP_TAB_5,
|
|
89
|
+
tabNoLogo: HEADER_DISPLAY.DESKTOP_TAB_NO_LOGO_2,
|
|
90
|
+
hamburgerNoLogo: HEADER_DISPLAY.DESKTOP_HAMBURGER_NO_LOGO_3,
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
header: pageHeaderMobile,
|
|
94
|
+
stacked: HEADER_DISPLAY.MOBILE_TAB_1,
|
|
95
|
+
tabNoLogo: HEADER_DISPLAY.MOBILE_TAB_NO_LOGO_1,
|
|
96
|
+
hamburgerNoLogo: HEADER_DISPLAY.MOBILE_HAMBURGER_NO_LOGO_3,
|
|
97
|
+
},
|
|
98
|
+
].map((v) => {
|
|
99
|
+
const isHamburger = v.header.navigation.displayType.includes('hamburger');
|
|
100
|
+
const renderAfterLogo = takeRenderAfterLogo(v.header.navigation);
|
|
101
|
+
return {
|
|
102
|
+
...v,
|
|
103
|
+
isHamburger,
|
|
104
|
+
logoAboveNav: !isHamburger && (treatAsAboveTheNav || (navShown && renderAfterLogo)),
|
|
105
|
+
};
|
|
106
|
+
});
|
|
107
|
+
// A new site's header carries every page's leading logo block whether or not it was
|
|
108
|
+
// shown (R29); an existing site only carries one the home page actually showed.
|
|
109
|
+
const startsWithLogo = treatAsAboveTheNav
|
|
110
|
+
? isFirstBlockALogo
|
|
111
|
+
: isFirstBlockAShownLogo;
|
|
112
|
+
// Collected before any header write: stripping a block must not change what "above
|
|
113
|
+
// the nav" saw, for the home page's own copy above or any other page's own check.
|
|
114
|
+
const pagesToStrip = viewports.every((v) => v.logoAboveNav)
|
|
115
|
+
? pages.filter(startsWithLogo)
|
|
116
|
+
: [];
|
|
117
|
+
for (const v of viewports) {
|
|
118
|
+
const { header } = v;
|
|
119
|
+
const showsLogo = treatAsAboveTheNav
|
|
120
|
+
? v.logoAboveNav
|
|
121
|
+
: v.logoAboveNav && isFirstBlockAShownLogo(homePage);
|
|
122
|
+
if (sourceBlock) {
|
|
123
|
+
header.logoImage = cloneDeep(sourceBlock.logoImage);
|
|
124
|
+
header.logoTemplateImage =
|
|
125
|
+
cloneDeep(sourceBlock.logoTemplateImage) || undefined;
|
|
126
|
+
header.logoImageHeight = sourceBlock.logoImageHeight;
|
|
127
|
+
header.logoImageWidth = sourceBlock.logoImageWidth;
|
|
128
|
+
header.logoBackgroundStyle = cloneDeep(sourceBlock.backgroundStyle);
|
|
129
|
+
}
|
|
130
|
+
header.isLogoVisible = showsLogo;
|
|
131
|
+
header.displayStyle = nextDisplayStyle(v, showsLogo);
|
|
132
|
+
header.backgroundStyle = {
|
|
133
|
+
...header.backgroundStyle,
|
|
134
|
+
backgroundColor: 'transparent',
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
pagesToStrip.forEach((page) => {
|
|
138
|
+
page.contents.shift();
|
|
139
|
+
});
|
|
140
|
+
return migrationResult;
|
|
141
|
+
};
|
|
@@ -8,6 +8,9 @@ export interface MigrationOptions {
|
|
|
8
8
|
isUserDraft: boolean;
|
|
9
9
|
isServerRender: boolean;
|
|
10
10
|
disableLogoSizeMigration?: boolean;
|
|
11
|
+
/** A new BP/BC site, in or on its way to the maker: blank site, create-draft, template
|
|
12
|
+
* apply, or the admin maker editing a template (migration-23's own new-site rule). */
|
|
13
|
+
isTemplate?: boolean;
|
|
11
14
|
}
|
|
12
15
|
export declare const GetLatestModelVersion: () => number;
|
|
13
16
|
export declare const migrateBrandPageModel: (brandPageModel: BrandPageModel, options: MigrationOptions) => Promise<MigrationData>;
|
|
@@ -26,6 +26,7 @@ import { migration20 } from './migration/migration-20';
|
|
|
26
26
|
import { migration20_5 } from './migration/migration-20_5';
|
|
27
27
|
import { migration21 } from './migration/migration-21';
|
|
28
28
|
import { migration22 } from './migration/migration-22';
|
|
29
|
+
import { migration23 } from './migration/migration-23';
|
|
29
30
|
const MIGRATION_TABLE = [
|
|
30
31
|
{
|
|
31
32
|
version: 1,
|
|
@@ -212,6 +213,14 @@ const MIGRATION_TABLE = [
|
|
|
212
213
|
// migration-22's header).
|
|
213
214
|
description: 'BP-5969 Global Text Style V2: expand 4 roles -> 10 (H1-6/P1-3/button); roles keep default typography, reconnect all content to its nearest tier with its size kept as a per-block override, seed role colour + strip baked RTE typography (appearance-preserving, once)',
|
|
214
215
|
},
|
|
216
|
+
{
|
|
217
|
+
version: 23,
|
|
218
|
+
migrateFn: migration23,
|
|
219
|
+
// Version-gated: runs once, when modelVersion < 23. Not re-run safe on BP/BC:
|
|
220
|
+
// renderAfterLogo is deleted, so a second pass would hide every header logo while
|
|
221
|
+
// the stripped blocks stay gone.
|
|
222
|
+
description: "BP-6183 Header logo migration: renderAfterLogo deleted from every header; BP/BC headers take the home page's own leading logo block where it sits above the nav per viewport (hidden with its values otherwise); that block removed once the header carries it on both viewports; header background colour cleared",
|
|
223
|
+
},
|
|
215
224
|
];
|
|
216
225
|
export const GetLatestModelVersion = () => Math.max(...MIGRATION_TABLE.map((x) => x.version));
|
|
217
226
|
export const migrateBrandPageModel = async (brandPageModel, options) => {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* MIGRATION-22 SNAPSHOT DEPENDENCY: its reconnect and colour bake call `isButtonContent`. After
|
|
3
3
|
* migration-22 releases, pin its v22 behaviour in the migration before changing it.
|
|
4
4
|
*/
|
|
5
|
-
import { CONTENT_TYPES, } from '../models';
|
|
5
|
+
import { BRAND_PAGE_TYPES, CONTENT_TYPES, } from '../models';
|
|
6
6
|
export const isLogoContent = (content) => {
|
|
7
7
|
return content?.type === 'logo';
|
|
8
8
|
};
|
|
@@ -13,6 +13,10 @@ export const applyLogoImageToBrandPageModelLogoContents = (model, logoImage) =>
|
|
|
13
13
|
}
|
|
14
14
|
Object.assign(content.logoImage, logoImage);
|
|
15
15
|
}));
|
|
16
|
+
if (model.brandPageType !== BRAND_PAGE_TYPES.brandSite) {
|
|
17
|
+
model.pageHeaderDesktop.logoImage = logoImage;
|
|
18
|
+
model.pageHeaderMobile.logoImage = logoImage;
|
|
19
|
+
}
|
|
16
20
|
return model;
|
|
17
21
|
};
|
|
18
22
|
export const isTextContent = (content) => {
|
|
@@ -6,7 +6,7 @@ import { NavigationMobile, NavigationDesktop, BRAND_PAGE_TYPES, BUTTON_LINK_TYPE
|
|
|
6
6
|
import { backgroundColorFromStyle, isTransparentColour, mutedTextForBackground, withColorOpacity, } from './color.util';
|
|
7
7
|
import { resolveColorReference } from './color-palette.util';
|
|
8
8
|
import { containerTextColorDefaults, containerSurfaceForContent, titleSurfaceContrastFill, } from './container-text-color.util';
|
|
9
|
-
import { CONTENT_TEXT_STYLE_PROPERTY_KEYS, FALLBACK_DEFAULT_LINK_COLOR, DEFAULT_LOGO_HEIGHT, DEFAULT_LOGO_WIDTH, ALIGN_LEFT_ALIGNED, ALIGN_RIGHT_ALIGNED, MAX_IMAGES_SECTION_ALIGNMENT_ITEMS_LENGTH, DEFAULT_TEXT_ALIGN, IMAGE_RESOLUTION_PRESETS, BIG_IMAGE, ALIGN_LEFT_BIG_IMAGE, ALIGN_CARD_CENTER, ALIGN_CARD_CENTER_IMAGE, ALIGN_CARD_LEFT_IMAGE, ALIGN_LEFT_FULL_IMAGE, ALIGN_RIGHT_FULL_IMAGE, } from '../constants';
|
|
9
|
+
import { CONTENT_TEXT_STYLE_PROPERTY_KEYS, FALLBACK_DEFAULT_LINK_COLOR, DEFAULT_LOGO_HEIGHT, DEFAULT_LOGO_WIDTH, ALIGN_LEFT_ALIGNED, ALIGN_RIGHT_ALIGNED, MAX_IMAGES_SECTION_ALIGNMENT_ITEMS_LENGTH, DEFAULT_TEXT_ALIGN, IMAGE_RESOLUTION_PRESETS, BIG_IMAGE, ALIGN_LEFT_BIG_IMAGE, ALIGN_CARD_CENTER, ALIGN_CARD_CENTER_IMAGE, ALIGN_CARD_LEFT_IMAGE, ALIGN_LEFT_FULL_IMAGE, ALIGN_RIGHT_FULL_IMAGE, STACKED_LOGO_LAYOUTS, } from '../constants';
|
|
10
10
|
import uniq from 'lodash/uniq';
|
|
11
11
|
import { isValidSvgUrl } from './image.util';
|
|
12
12
|
import { isLogoContent } from './model.util';
|
|
@@ -626,6 +626,20 @@ const mapToTestimonialSectionViewModel = (content, styles) => {
|
|
|
626
626
|
isFullWidth: true,
|
|
627
627
|
}, styles);
|
|
628
628
|
};
|
|
629
|
+
const mapToFaqSectionViewModel = (content, styles) => {
|
|
630
|
+
return applyViewModelTextStyles({
|
|
631
|
+
...content,
|
|
632
|
+
role: content.type,
|
|
633
|
+
type: 'faq-section',
|
|
634
|
+
// No `color` pre-seed, as in the testimonial mapper: it would read as an override.
|
|
635
|
+
titleStyle: { ...content.titleStyle },
|
|
636
|
+
descriptionStyle: { ...content.descriptionStyle },
|
|
637
|
+
questionStyle: { ...content.questionStyle },
|
|
638
|
+
answerStyle: { ...content.answerStyle },
|
|
639
|
+
items: content.items ?? [],
|
|
640
|
+
isFullWidth: true,
|
|
641
|
+
}, styles);
|
|
642
|
+
};
|
|
629
643
|
const mapToSocialLinksViewModel = (content, styles, brandPageType) => {
|
|
630
644
|
return applyViewModelTextStyles({
|
|
631
645
|
...content,
|
|
@@ -767,10 +781,13 @@ textStyles) => Object.assign({}, pickTypography(buttonTextStyle ?? {}), {
|
|
|
767
781
|
});
|
|
768
782
|
export const mapToPageHeaderViewModel = (pageHeader, pageStyles, pages, useOldLogoRenderSize = false) => {
|
|
769
783
|
const viewport = pageHeader.viewport;
|
|
784
|
+
const drawsLogoBackground = STACKED_LOGO_LAYOUTS.includes(pageHeader.displayStyle);
|
|
770
785
|
const logoContent = {
|
|
771
786
|
id: 'page-header-logo',
|
|
772
787
|
type: 'logo',
|
|
773
|
-
backgroundStyle:
|
|
788
|
+
backgroundStyle: drawsLogoBackground
|
|
789
|
+
? (pageHeader.logoBackgroundStyle ?? {})
|
|
790
|
+
: {},
|
|
774
791
|
logoImageBase64Url: pageHeader.logoImageBase64Url,
|
|
775
792
|
isLogoVisible: pageHeader.isLogoVisible,
|
|
776
793
|
logoImage: pageHeader.logoImage,
|
|
@@ -894,6 +911,8 @@ export const mapToViewModel = (styles, brandPageType, options) => (content) => {
|
|
|
894
911
|
return mapToBannerSectionViewModel(content, styles, options);
|
|
895
912
|
case 'booking-section':
|
|
896
913
|
return mapToBookingSectionViewModel(content, styles);
|
|
914
|
+
case 'faq-section':
|
|
915
|
+
return mapToFaqSectionViewModel(content, styles);
|
|
897
916
|
case 'about-section':
|
|
898
917
|
return mapToAboutSectionViewModel(content, styles);
|
|
899
918
|
case 'images-section':
|
|
@@ -1092,9 +1111,9 @@ export const applyLogoImageToBrandPageViewModel = (viewModel, logoImage) => {
|
|
|
1092
1111
|
}
|
|
1093
1112
|
viewModel.logoImage = logoImage;
|
|
1094
1113
|
}));
|
|
1114
|
+
viewModel.headerViewModelDesktop.logo.logoImage = logoImage;
|
|
1115
|
+
viewModel.headerViewModelMobile.logo.logoImage = logoImage;
|
|
1095
1116
|
if (viewModel.brandPageType === BRAND_PAGE_TYPES.brandSite) {
|
|
1096
|
-
viewModel.headerViewModelDesktop.logo.logoImage = logoImage;
|
|
1097
|
-
viewModel.headerViewModelMobile.logo.logoImage = logoImage;
|
|
1098
1117
|
viewModel.footerViewModelDesktop.logo.logoImage = logoImage;
|
|
1099
1118
|
viewModel.footerViewModelMobile.logo.logoImage = logoImage;
|
|
1100
1119
|
}
|
|
@@ -1107,9 +1126,9 @@ export const applyLogoImageToBrandPageModel = (model, logoImage) => {
|
|
|
1107
1126
|
}
|
|
1108
1127
|
content.logoImage = logoImage;
|
|
1109
1128
|
}));
|
|
1129
|
+
model.pageHeaderDesktop.logoImage = logoImage;
|
|
1130
|
+
model.pageHeaderMobile.logoImage = logoImage;
|
|
1110
1131
|
if (model.brandPageType === BRAND_PAGE_TYPES.brandSite) {
|
|
1111
|
-
model.pageHeaderDesktop.logoImage = logoImage;
|
|
1112
|
-
model.pageHeaderMobile.logoImage = logoImage;
|
|
1113
1132
|
model.pageFooterDesktop.logoImage = logoImage;
|
|
1114
1133
|
model.pageFooterMobile.logoImage = logoImage;
|
|
1115
1134
|
}
|
|
@@ -1123,9 +1142,9 @@ export const applyLogoTemplateImageToBrandPageViewModel = (viewModel, logoTempla
|
|
|
1123
1142
|
}
|
|
1124
1143
|
viewModel.logoTemplateImage = logoTemplateImage;
|
|
1125
1144
|
}));
|
|
1145
|
+
viewModel.headerViewModelDesktop.logo.logoTemplateImage = logoTemplateImage;
|
|
1146
|
+
viewModel.headerViewModelMobile.logo.logoTemplateImage = logoTemplateImage;
|
|
1126
1147
|
if (viewModel.brandPageType === BRAND_PAGE_TYPES.brandSite) {
|
|
1127
|
-
viewModel.headerViewModelDesktop.logo.logoTemplateImage = logoTemplateImage;
|
|
1128
|
-
viewModel.headerViewModelMobile.logo.logoTemplateImage = logoTemplateImage;
|
|
1129
1148
|
viewModel.footerViewModelDesktop.logo.logoTemplateImage = logoTemplateImage;
|
|
1130
1149
|
viewModel.footerViewModelMobile.logo.logoTemplateImage = logoTemplateImage;
|
|
1131
1150
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ButtonWithModalContent, ProfileContent, TextContent, VideoContent, ImageContent, ContentType, ButtonStyles, LogoStyles, MapContent, ImageGalleryContent, GalleryStyles, MailingListContent, RequestPaymentContent, ShopContent, SupportMeContent, ContactFormContent, BannerSectionContent, BrandPageType, SocialLinksContent, TestimonialSectionContent, AboutSectionContent, DividerSectionContent, ShapesSectionContent, ButtonLinkType, PageHeaderMobile, PageHeaderDesktop, PageFooterMobile, PageFooterDesktop, TextMediaItem, TextShapeItem, TextStyleDeclaration, AspectRatio, LogoImageModel, LogoTemplateImageModel, CookieOptions, BookingSectionContent, MediaTypes, TextStyles, BackgroundStyle, BackgroundShape, PersonalisationRole, SaveContactOptions, ColorItem, RichTextValue } from './models';
|
|
1
|
+
import type { ButtonWithModalContent, ProfileContent, TextContent, VideoContent, ImageContent, ContentType, ButtonStyles, LogoStyles, MapContent, ImageGalleryContent, GalleryStyles, MailingListContent, RequestPaymentContent, ShopContent, SupportMeContent, ContactFormContent, BannerSectionContent, BrandPageType, SocialLinksContent, TestimonialSectionContent, AboutSectionContent, DividerSectionContent, ShapesSectionContent, ButtonLinkType, PageHeaderMobile, PageHeaderDesktop, PageFooterMobile, PageFooterDesktop, TextMediaItem, TextShapeItem, TextStyleDeclaration, AspectRatio, LogoImageModel, LogoTemplateImageModel, CookieOptions, BookingSectionContent, FaqSectionContent, MediaTypes, TextStyles, BackgroundStyle, BackgroundShape, PersonalisationRole, SaveContactOptions, ColorItem, RichTextValue } from './models';
|
|
2
2
|
import type { ImagesSectionContentDisplayStyle } from './constants';
|
|
3
|
-
export type ViewModelType = 'button' | 'image' | 'image-gallery' | 'logo' | 'map' | 'mailing-list' | 'profile' | 'support-me' | 'request-payment' | 'text' | 'video' | 'contact-form' | 'banner-section' | 'images-section' | 'about-section' | 'divider-section' | 'testimonial-section' | 'social-links' | 'shapes-section' | 'shop-section' | 'booking-section';
|
|
3
|
+
export type ViewModelType = 'button' | 'image' | 'image-gallery' | 'logo' | 'map' | 'mailing-list' | 'profile' | 'support-me' | 'request-payment' | 'text' | 'video' | 'contact-form' | 'banner-section' | 'images-section' | 'about-section' | 'divider-section' | 'testimonial-section' | 'social-links' | 'shapes-section' | 'shop-section' | 'booking-section' | 'faq-section';
|
|
4
4
|
export interface ContentViewModel {
|
|
5
5
|
id: string;
|
|
6
6
|
type: ViewModelType;
|
|
@@ -133,6 +133,9 @@ export interface BookingSectionViewModel extends ContentViewModel, Omit<BookingS
|
|
|
133
133
|
buttonViewModel: ButtonViewModel;
|
|
134
134
|
isFullWidth: boolean;
|
|
135
135
|
}
|
|
136
|
+
export interface FaqSectionViewModel extends ContentViewModel, Omit<FaqSectionContent, 'type'> {
|
|
137
|
+
isFullWidth: boolean;
|
|
138
|
+
}
|
|
136
139
|
export interface PageHeaderViewModel extends Omit<PageHeaderDesktop | PageHeaderMobile, 'logoImage' | 'logoImageStyle' | 'isLogoOptional' | 'viewport' | 'isLogoVisible' | 'logoTemplateImage' | 'logoImageHeight' | 'logoImageWidth' | 'headerButton' | 'backgroundStyle'> {
|
|
137
140
|
logo: LogoViewModel;
|
|
138
141
|
pages: PageViewModel[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FAQ_DISPLAY_STYLES } from '@brand-page/constants';
|
|
2
|
+
// Icon and divider colours paint the accordion toggle and its item dividers;
|
|
3
|
+
// grid shows neither, so the fields have nothing to colour there.
|
|
4
|
+
export const faqAccordionColorFieldVisibilityAssessor = (content) => content?.displayStyle !== FAQ_DISPLAY_STYLES.grid;
|
|
@@ -8,6 +8,7 @@ export * from './media-section-items-field.assessor';
|
|
|
8
8
|
export * from './shape-section-items-field.assessor';
|
|
9
9
|
export * from './shape-size-visibility.assessor';
|
|
10
10
|
export * from './divider-toggle-field-visibility.assessor';
|
|
11
|
+
export * from './faq-accordion-color-field-visibility.assessor';
|
|
11
12
|
export * from './color-replacement-visibility.assessor';
|
|
12
13
|
export * from './color-replacement-profile-visibility.assessor';
|
|
13
14
|
export * from './color-replacement-icon-visibility.assessor';
|
|
@@ -8,6 +8,7 @@ export * from './media-section-items-field.assessor';
|
|
|
8
8
|
export * from './shape-section-items-field.assessor';
|
|
9
9
|
export * from './shape-size-visibility.assessor';
|
|
10
10
|
export * from './divider-toggle-field-visibility.assessor';
|
|
11
|
+
export * from './faq-accordion-color-field-visibility.assessor';
|
|
11
12
|
export * from './color-replacement-visibility.assessor';
|
|
12
13
|
export * from './color-replacement-profile-visibility.assessor';
|
|
13
14
|
export * from './color-replacement-icon-visibility.assessor';
|
package/lib/src/brand-page-maker/components/admin-logo-settings/AdminLogoSettings.mixin.d.ts
CHANGED
|
@@ -1,48 +1,18 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
2
|
templates: import("vue").ComputedRef<import("@brand-page-maker/stores/admin-logo-settings").AdminPreviewLogoTemplateTemplate[]>;
|
|
3
|
-
items: import("vue").ComputedRef<{
|
|
4
|
-
id: string;
|
|
5
|
-
type: import("../../../brand-page").ContentType;
|
|
6
|
-
settings: {
|
|
7
|
-
content: {
|
|
8
|
-
id: string;
|
|
9
|
-
type: import("../../../brand-page").ContentType;
|
|
10
|
-
personalisationRole?: import("../../../brand-page").PersonalisationRole | undefined;
|
|
11
|
-
topPadding?: number | undefined;
|
|
12
|
-
bottomPadding?: number | undefined;
|
|
13
|
-
imageUrlOverride?: string | undefined;
|
|
14
|
-
imageUrlsOverride?: string | undefined;
|
|
15
|
-
avatarImageUrlOverride?: string | undefined;
|
|
16
|
-
backgroundImageUrlOverride?: string | undefined;
|
|
17
|
-
nameOverride?: string | undefined;
|
|
18
|
-
titleOverride?: string | undefined;
|
|
19
|
-
descriptionOverride?: string | undefined;
|
|
20
|
-
buttonTextOverride?: string | undefined;
|
|
21
|
-
ctaTitleOverride?: string | undefined;
|
|
22
|
-
urlOverride?: string | undefined;
|
|
23
|
-
textOverride?: string | undefined;
|
|
24
|
-
paragraphOverride?: string | undefined;
|
|
25
|
-
};
|
|
26
|
-
fields: Record<string, import("../../../shared/content-settings/models").ContentItemFieldSettings>;
|
|
27
|
-
};
|
|
28
|
-
}[]>;
|
|
29
3
|
brandPageTitle: import("vue").ComputedRef<string>;
|
|
30
4
|
brandPageType: import("vue").ComputedRef<"default" | "brandSite" | "brandContact">;
|
|
31
5
|
isBrandSite: import("vue").ComputedRef<boolean>;
|
|
32
|
-
isBrandPageOrIsBrandContact: import("vue").ComputedRef<boolean>;
|
|
33
6
|
adminLogoSettingsStore: import("pinia").Store<"adminLogoSettings", import("@brand-page-maker/stores/admin-logo-settings").AdminLogoSettingsState, {
|
|
34
7
|
templates(): import("@brand-page-maker/stores/admin-logo-settings").AdminPreviewLogoTemplateTemplate[];
|
|
35
8
|
}, {
|
|
36
9
|
setPreviewLogoTemplateModels({ models, }: import("@brand-page-maker/stores/admin-logo-settings").SetAdminPreviewLogoTemplateModelsPayload): void;
|
|
37
|
-
addLogoContent(): void;
|
|
38
10
|
selectPreviewLogoTemplateModel(payload: import("@brand-page-maker/stores/admin-logo-settings").SelectAdminPreviewLogoTemplateModelPayload): void;
|
|
39
11
|
}>;
|
|
40
12
|
}, {}, {
|
|
41
|
-
canAddLogo(): boolean;
|
|
42
13
|
previewWidth(): number;
|
|
43
14
|
previewHeight(): number;
|
|
44
15
|
}, {
|
|
45
|
-
onAddLogoClick(): void;
|
|
46
16
|
onTemplateSelected(logoTemplateToken: string): Promise<void>;
|
|
47
17
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
48
18
|
export default _default;
|
|
@@ -1,28 +1,20 @@
|
|
|
1
1
|
import { defineComponent, computed } from 'vue';
|
|
2
2
|
import { useAdminLogoSettingsStore } from '@brand-page-maker/stores/admin-logo-settings';
|
|
3
|
-
import { useUiContentSettingsStore } from '@shared/content-settings/store';
|
|
4
3
|
import { useBrandPageMakerStore } from '@brand-page-maker/stores/brandpage-maker';
|
|
5
4
|
import { DESKTOP_HEIGHT, DESKTOP_WIDTH, MOBILE_HEIGHT, MOBILE_WIDTH, } from '@brand-page-maker/constants';
|
|
6
5
|
export default defineComponent({
|
|
7
6
|
setup() {
|
|
8
7
|
const adminLogoSettingsStore = useAdminLogoSettingsStore();
|
|
9
|
-
const contentSettingsStore = useUiContentSettingsStore();
|
|
10
8
|
const brandPageMakerStore = useBrandPageMakerStore();
|
|
11
9
|
return {
|
|
12
10
|
templates: computed(() => adminLogoSettingsStore.templates),
|
|
13
|
-
items: computed(() => contentSettingsStore.items),
|
|
14
11
|
brandPageTitle: computed(() => brandPageMakerStore.brandPageTitle),
|
|
15
12
|
brandPageType: computed(() => brandPageMakerStore.brandPageType),
|
|
16
13
|
isBrandSite: computed(() => brandPageMakerStore.isBrandSite),
|
|
17
|
-
isBrandPageOrIsBrandContact: computed(() => brandPageMakerStore.isBrandPageOrIsBrandContact),
|
|
18
14
|
adminLogoSettingsStore,
|
|
19
15
|
};
|
|
20
16
|
},
|
|
21
17
|
computed: {
|
|
22
|
-
canAddLogo() {
|
|
23
|
-
return (!this.isBrandSite &&
|
|
24
|
-
this.items.filter((x) => x.type === 'logo').length === 0);
|
|
25
|
-
},
|
|
26
18
|
previewWidth() {
|
|
27
19
|
return this.isBrandSite ? DESKTOP_WIDTH : MOBILE_WIDTH;
|
|
28
20
|
},
|
|
@@ -31,12 +23,6 @@ export default defineComponent({
|
|
|
31
23
|
},
|
|
32
24
|
},
|
|
33
25
|
methods: {
|
|
34
|
-
onAddLogoClick() {
|
|
35
|
-
if (!this.canAddLogo) {
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
this.adminLogoSettingsStore.addLogoContent();
|
|
39
|
-
},
|
|
40
26
|
async onTemplateSelected(logoTemplateToken) {
|
|
41
27
|
await this.adminLogoSettingsStore.selectPreviewLogoTemplateModel({
|
|
42
28
|
logoTemplateToken,
|
package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts
CHANGED
|
@@ -412,6 +412,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
412
412
|
id: string;
|
|
413
413
|
name: string;
|
|
414
414
|
index?: number;
|
|
415
|
+
itemId?: string;
|
|
415
416
|
doc: unknown;
|
|
416
417
|
}): void;
|
|
417
418
|
applyCardContrastToItem({ id }: {
|
|
@@ -978,65 +979,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
978
979
|
isCustomDomainEnabled: any;
|
|
979
980
|
}): Promise<void>;
|
|
980
981
|
}>;
|
|
981
|
-
navigationStyleSettingsStore: import("pinia").Store<"uiNavigationStyleSettings", import("@shared/navigation-style-settings/store").NavigationStyleSettingsState, {}, {
|
|
982
|
-
initialise(options: {
|
|
983
|
-
reset: boolean;
|
|
984
|
-
}): void;
|
|
985
|
-
setState({ newState, }: {
|
|
986
|
-
newState: Omit<import("@shared/navigation-style-settings/store").NavigationStyleSettingsState, "availableNavigationStyleConfigs" | "navigationStyleTypeConfigs">;
|
|
987
|
-
}): void;
|
|
988
|
-
setNavigationOrder({ section, renderAfterLogo, viewport, }: {
|
|
989
|
-
section: import("@shared/page-settings/models").PageSection;
|
|
990
|
-
renderAfterLogo: boolean;
|
|
991
|
-
viewport: import("@brand-page").ViewportsType;
|
|
992
|
-
}): void;
|
|
993
|
-
_setDefaultButtonStyle({ displayType, section, style, viewport, ownsTypography, }: {
|
|
994
|
-
displayType: import("@brand-page").NavigationDisplayType;
|
|
995
|
-
section: import("@shared/page-settings/models").PageSection;
|
|
996
|
-
style: BrandPageCssStyle;
|
|
997
|
-
viewport: import("@brand-page").ViewportsType;
|
|
998
|
-
ownsTypography?: boolean;
|
|
999
|
-
}): void;
|
|
1000
|
-
_setSelectedButtonStyle({ displayType, section, style, viewport, }: {
|
|
1001
|
-
displayType: import("@brand-page").NavigationDisplayType;
|
|
1002
|
-
section: import("@shared/page-settings/models").PageSection;
|
|
1003
|
-
style: BrandPageCssStyle;
|
|
1004
|
-
viewport: import("@brand-page").ViewportsType;
|
|
1005
|
-
}): void;
|
|
1006
|
-
_setIconStyle({ displayType, section, style, viewport, }: {
|
|
1007
|
-
displayType?: import("@brand-page").NavigationDisplayType;
|
|
1008
|
-
section: import("@shared/page-settings/models").PageSection;
|
|
1009
|
-
style: BrandPageCssStyle;
|
|
1010
|
-
viewport: import("@brand-page").ViewportsType;
|
|
1011
|
-
}): void;
|
|
1012
|
-
_setSubNavBackgroundColor({ displayType, section, value, viewport, }: {
|
|
1013
|
-
displayType: import("@brand-page").NavigationDisplayType;
|
|
1014
|
-
section: import("@shared/page-settings/models").PageSection;
|
|
1015
|
-
value: string | undefined;
|
|
1016
|
-
viewport: import("@brand-page").ViewportsType;
|
|
1017
|
-
}): void;
|
|
1018
|
-
_setButtonStyles({ section, defaultButtonStyle, selectedButtonStyle, iconStyle, viewport, }: {
|
|
1019
|
-
section: import("@shared/page-settings/models").PageSection;
|
|
1020
|
-
defaultButtonStyle: import("@brand-page").TextStyleDeclaration;
|
|
1021
|
-
selectedButtonStyle: BrandPageCssStyle;
|
|
1022
|
-
iconStyle: BrandPageCssStyle;
|
|
1023
|
-
viewport: import("@brand-page").ViewportsType;
|
|
1024
|
-
}): void;
|
|
1025
|
-
setDisplayType({ section, displayType, viewport, headerBackgroundColor, pageBackgroundColor, }: {
|
|
1026
|
-
section: import("@shared/page-settings/models").PageSection;
|
|
1027
|
-
displayType: import("@brand-page").NavigationDisplayType;
|
|
1028
|
-
viewport: import("@brand-page").ViewportsType;
|
|
1029
|
-
headerBackgroundColor?: string;
|
|
1030
|
-
pageBackgroundColor?: string;
|
|
1031
|
-
}): void;
|
|
1032
|
-
renormalizeTextStylesForRole(type: string, textStyleOptions: import("@brand-page").TextStyleOptions | undefined): void;
|
|
1033
|
-
setNavigationStyleOptionValue({ section, option, value, viewport, }: {
|
|
1034
|
-
section: import("@shared/page-settings/models").PageSection;
|
|
1035
|
-
option: import("../../models/navigation-style-configs").NavigationStyleConfigOption;
|
|
1036
|
-
value: any;
|
|
1037
|
-
viewport: import("@brand-page").ViewportsType;
|
|
1038
|
-
}): void;
|
|
1039
|
-
}>;
|
|
1040
982
|
sideBarStore: import("pinia").Store<"uiSideBar", import("@shared/side-bar/store").SideBarState, {}, {
|
|
1041
983
|
setBrandPageSettingsTabVisibility(payload: {
|
|
1042
984
|
isVisible: boolean;
|
|
@@ -1151,6 +1093,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
1151
1093
|
attempted_bytes: number;
|
|
1152
1094
|
source: string;
|
|
1153
1095
|
}) => void;
|
|
1096
|
+
sendWebsiteMakerUpdateHeaderLogoEvent: (props: {
|
|
1097
|
+
setting: string;
|
|
1098
|
+
viewport: string;
|
|
1099
|
+
}) => void;
|
|
1154
1100
|
sendSaveContactEvent: () => void;
|
|
1155
1101
|
sendStartForFreeEvent: () => void;
|
|
1156
1102
|
sendFooterLinkClickEvent: (linkType: "watermark_logo" | "create_your_website") => void;
|
|
@@ -1211,7 +1157,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
1211
1157
|
onOverlayClick(item: ContentViewModel): void;
|
|
1212
1158
|
onItemSelected(item: ContentItem<Content> | ContentViewModel): void;
|
|
1213
1159
|
scrollToContentItemByItemId(itemId: any): void;
|
|
1214
|
-
setNavigationOrder(payload: any): void;
|
|
1215
1160
|
onPageHeaderContainerClick(): void;
|
|
1216
1161
|
onPageFooterContainerClick(): void;
|
|
1217
1162
|
onSaveContactWidgetClick(): void;
|
|
@@ -1280,16 +1225,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
1280
1225
|
showBrandCrowdLogo(): boolean;
|
|
1281
1226
|
isRenderedForStorybook(): boolean;
|
|
1282
1227
|
pageViewModel(): import("@brand-page").PageViewModel | undefined;
|
|
1283
|
-
headerViewModelMobile(): any;
|
|
1284
|
-
headerViewModelDesktop(): any;
|
|
1285
|
-
isNavigationEmbeddedInLogoMobile(): boolean;
|
|
1286
|
-
isNavigationEmbeddedInLogoDesktop(): boolean;
|
|
1287
1228
|
sideMenuHeaderButtonViewModel(): import("@brand-page").ButtonViewModel | undefined;
|
|
1288
1229
|
shouldShowNavigation(): boolean;
|
|
1289
|
-
showNavigationAfterLogoMobile(): boolean;
|
|
1290
|
-
showNavigationAfterLogoDesktop(): boolean;
|
|
1291
|
-
bpShowTopNavigationMobile(): boolean;
|
|
1292
|
-
bpShowTopNavigationDesktop(): boolean;
|
|
1293
1230
|
slug(): string;
|
|
1294
1231
|
pageHeadingText(): string;
|
|
1295
1232
|
shouldShowSaveContactWidget(): boolean;
|
package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.js
CHANGED
|
@@ -4,7 +4,6 @@ import { UI_DEVICE_MODES, UI_EVENT_SOURCES } from '@shared/models';
|
|
|
4
4
|
import { useUiContentSettingsStore } from '@shared/content-settings/store';
|
|
5
5
|
import { useBrandPageContainerStore, useBrandPageMakerStore, useUiStore, useBrandPageMakerUserStore, } from '@brand-page-maker/stores';
|
|
6
6
|
import { getContentSettingsFields, getContentSettingsTemplate, } from '@shared/content-settings/utils';
|
|
7
|
-
import { useUiNavigationStyleSettingsStore } from '@shared/navigation-style-settings/store';
|
|
8
7
|
import { useUiSideBarStore } from '@shared/side-bar/store';
|
|
9
8
|
import { SIDE_BAR_TAB_NAMES } from '@brand-page-maker/constants';
|
|
10
9
|
import { useUiPageSettingsStore } from '@shared/page-settings/store';
|
|
@@ -18,7 +17,6 @@ export default defineComponent({
|
|
|
18
17
|
const brandPageMakerStore = useBrandPageMakerStore();
|
|
19
18
|
const brandPageContainerStore = useBrandPageContainerStore();
|
|
20
19
|
const brandPageMakerUserStore = useBrandPageMakerUserStore();
|
|
21
|
-
const navigationStyleSettingsStore = useUiNavigationStyleSettingsStore();
|
|
22
20
|
const sideBarStore = useUiSideBarStore();
|
|
23
21
|
const pageSettingsStore = useUiPageSettingsStore();
|
|
24
22
|
const uiStore = useUiStore();
|
|
@@ -38,7 +36,6 @@ export default defineComponent({
|
|
|
38
36
|
contentSettingsStore,
|
|
39
37
|
brandPageMakerStore,
|
|
40
38
|
brandPageContainerStore,
|
|
41
|
-
navigationStyleSettingsStore,
|
|
42
39
|
sideBarStore,
|
|
43
40
|
pageSettingsStore,
|
|
44
41
|
eventTracker,
|
|
@@ -192,9 +189,6 @@ export default defineComponent({
|
|
|
192
189
|
previewPageScroll.scrollTop = item.offsetTop;
|
|
193
190
|
});
|
|
194
191
|
},
|
|
195
|
-
setNavigationOrder(payload) {
|
|
196
|
-
this.navigationStyleSettingsStore.setNavigationOrder(payload);
|
|
197
|
-
},
|
|
198
192
|
onPageHeaderContainerClick() {
|
|
199
193
|
if (!this.isInteractivePreviewEnabled) {
|
|
200
194
|
return;
|
|
@@ -82,8 +82,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
82
82
|
"onCreate-team-cards"?: ((...args: any[]) => any) | undefined;
|
|
83
83
|
}>, {
|
|
84
84
|
isPublished: boolean;
|
|
85
|
-
isSaving: boolean;
|
|
86
85
|
isAdminMaker: boolean;
|
|
86
|
+
isSaving: boolean;
|
|
87
87
|
backButtonLabel: string;
|
|
88
88
|
isDesignCom: boolean;
|
|
89
89
|
backUrl: string;
|
|
@@ -534,6 +534,8 @@ selectedGlobalTextStyles, onSelectTextStyleType, updateRichTextEditor, textStyle
|
|
|
534
534
|
id: props.rawId,
|
|
535
535
|
name: props.name,
|
|
536
536
|
index: props.textItemIndex,
|
|
537
|
+
// An FAQ question's editor is bound to its item; Apply to all keeps that item's live doc.
|
|
538
|
+
itemId: props.item?.id,
|
|
537
539
|
doc: sanitizeRteJson(editor.getJSON()),
|
|
538
540
|
});
|
|
539
541
|
};
|
|
@@ -62,6 +62,7 @@ export declare const EVENTS: {
|
|
|
62
62
|
WEBSITE_MAKER_HISTORY_OVERSIZED: string;
|
|
63
63
|
WEBSITE_MAKER_LIVE_PREVIEW_CLICK: string;
|
|
64
64
|
WEBSITE_MAKER_LIVE_PREVIEW_MODAL: string;
|
|
65
|
+
WEBSITE_MAKER_UPDATE_HEADER_LOGO: string;
|
|
65
66
|
};
|
|
66
67
|
export declare const PREVIEW_CTA_LOCATIONS: {
|
|
67
68
|
MAKER: string;
|
|
@@ -146,6 +147,10 @@ declare const useEventTracker: () => {
|
|
|
146
147
|
attempted_bytes: number;
|
|
147
148
|
source: string;
|
|
148
149
|
}) => void;
|
|
150
|
+
sendWebsiteMakerUpdateHeaderLogoEvent: (props: {
|
|
151
|
+
setting: string;
|
|
152
|
+
viewport: string;
|
|
153
|
+
}) => void;
|
|
149
154
|
sendSaveContactEvent: () => void;
|
|
150
155
|
sendStartForFreeEvent: () => void;
|
|
151
156
|
sendFooterLinkClickEvent: (linkType: "watermark_logo" | "create_your_website") => void;
|
|
@@ -43,6 +43,7 @@ export const EVENTS = {
|
|
|
43
43
|
WEBSITE_MAKER_HISTORY_OVERSIZED: 'website_maker_history_oversized',
|
|
44
44
|
WEBSITE_MAKER_LIVE_PREVIEW_CLICK: 'website_maker_live_preview_click',
|
|
45
45
|
WEBSITE_MAKER_LIVE_PREVIEW_MODAL: 'website_maker_live_preview_modal',
|
|
46
|
+
WEBSITE_MAKER_UPDATE_HEADER_LOGO: 'website_maker_update_header_logo',
|
|
46
47
|
};
|
|
47
48
|
// The global `location` prop already means pre/post purchase, so the surface a
|
|
48
49
|
// preview was launched from rides on cta_location, reusing existing values.
|
|
@@ -386,6 +387,10 @@ const useEventTracker = () => {
|
|
|
386
387
|
sendHistoryOversizedEvent: (props) => {
|
|
387
388
|
_publishEvent(EVENTS.WEBSITE_MAKER_HISTORY_OVERSIZED, props);
|
|
388
389
|
},
|
|
390
|
+
// BP/BC header logo and header background changes; BS sends none.
|
|
391
|
+
sendWebsiteMakerUpdateHeaderLogoEvent: (props) => {
|
|
392
|
+
_publishEvent(EVENTS.WEBSITE_MAKER_UPDATE_HEADER_LOGO, props);
|
|
393
|
+
},
|
|
389
394
|
};
|
|
390
395
|
};
|
|
391
396
|
export { useEventTracker };
|