@designcrowd/library.brand-page 6.2.14 → 6.2.16-ast-faq
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-Deoc6s8r.js → CreatedOnBrandCrowd-de-de-CNsnP62Q.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-BxDzsLl-.js → CreatedOnBrandCrowd-en-us-DXhRk85B.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-B-5VS2MV.js → CreatedOnBrandCrowd-es-es-CR2tUzfv.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-C6h05sUZ.js → CreatedOnBrandCrowd-fr-ca-DG77i_Vv.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-C6h05sUZ.js → CreatedOnBrandCrowd-fr-fr-DG77i_Vv.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-BC6XU3ev.js → CreatedOnBrandCrowd-pt-br-vs4USh7U.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-BC6XU3ev.js → CreatedOnBrandCrowd-pt-pt-vs4USh7U.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-dUTedh8v.js → CreatedOnDcom-de-de-B0ruQ6jj.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-DY0jkOeW.js → CreatedOnDcom-en-us-y9qeDmk4.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-DRioej2A.js → CreatedOnDcom-es-es-skWVem_b.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-CcglfcUU.js → CreatedOnDcom-fr-ca-CTa0nLIm.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-B7v_e6HI.js → CreatedOnDcom-fr-fr-9Xas5Xgk.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-5XGcKJb7.js → CreatedOnDcom-pt-br-BLKLqoQS.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-DepC53tO.js → CreatedOnDcom-pt-pt-CVOLjp2Y.js} +1 -1
- package/lib/src/about-CpfAzHYI.js +13 -0
- package/lib/src/add-page-Cam6psWp.js +13 -0
- package/lib/src/ai-DdiAsyYj.js +13 -0
- package/lib/src/align-center-BNwE0ZtQ.js +14 -0
- package/lib/src/align-justify-Cexjtj02.js +14 -0
- package/lib/src/align-left-CNqHW5sh.js +14 -0
- package/lib/src/align-right-D5yzRPUd.js +14 -0
- package/lib/src/animate-Clk90STT.js +14 -0
- package/lib/src/annotate-heart-DJxtsIXE.js +14 -0
- package/lib/src/arrow-down-KlrcGl_u.js +13 -0
- package/lib/src/arrow-left-CxZzXfas.js +14 -0
- package/lib/src/arrow-right-JOOwygRE.js +14 -0
- package/lib/src/arrow-top-right-ClDYepSz.js +13 -0
- package/lib/src/arrow-up-4vVvj7lh.js +14 -0
- package/lib/src/arrow-up-underline-C22tTO7_.js +14 -0
- package/lib/src/attach-2t4zVhNZ.js +13 -0
- package/lib/src/auth-facebook-CLoGcA0H.js +16 -0
- package/lib/src/auth-facebook-white-vj-ltMW0.js +24 -0
- package/lib/src/auth-google-DrtiO6LL.js +16 -0
- package/lib/src/award-CKwCoing.js +14 -0
- package/lib/src/background-Eu-soBOY.js +14 -0
- package/lib/src/badge-DMiNPqcq.js +15 -0
- package/lib/src/ban-BWYVUslW.js +10 -0
- package/lib/src/banner-Dke3L8Vw.js +14 -0
- package/lib/src/banner-centered-i0OzWZQw.js +28 -0
- package/lib/src/banner-left-2iajZ5gF.js +28 -0
- package/lib/src/bar-DrvKpwo1.js +31 -0
- package/lib/src/bc-mast-CK_DMyjz.js +14 -0
- package/lib/src/bezier-curve-go28-L4O.js +14 -0
- package/lib/src/bezier-curve-outline-Imcah2Qa.js +14 -0
- package/lib/src/bold-CZfYruyy.js +14 -0
- 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/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 +26 -0
- 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/migration/migration-22.d.ts +10 -4
- package/lib/src/brand-page/utils/migration/migration-22.js +59 -5
- package/lib/src/brand-page/utils/view-model.util.js +16 -0
- 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/brand-page-maker/BrandPageMaker.mixin.d.ts +1 -0
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +1 -0
- package/lib/src/brand-page-maker/composables/ai-chat/aiErrorCopy.d.ts +1 -1
- package/lib/src/brand-page-maker/composables/ai-chat/aiErrorCopy.js +2 -2
- package/lib/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.js +2 -2
- package/lib/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.js +2 -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/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-C5316IlB.js +14 -0
- package/lib/src/browser-K7TgGegK.js +14 -0
- package/lib/src/brush-DlV0f4mG.js +13 -0
- package/lib/src/building-CPQAQm6Z.js +10 -0
- package/lib/src/bulb-D0JiMyD0.js +14 -0
- package/lib/src/{bundled-translations-yGrvPE5i.js → bundled-translations-LMpZwTQ3.js} +15 -15
- package/lib/src/{bundled-translations.de-DE-L4Znf8Hs.js → bundled-translations.de-DE-Dz0bbwo3.js} +35 -35
- package/lib/src/{bundled-translations.es-ES-D6iticrK.js → bundled-translations.es-ES-DxFSGNeu.js} +21 -21
- package/lib/src/{bundled-translations.fr-CA-BgAVE-9k.js → bundled-translations.fr-CA-CArr9KG-.js} +33 -33
- package/lib/src/{bundled-translations.fr-FR-B8GbyqxQ.js → bundled-translations.fr-FR-Ci7-8b_w.js} +9 -9
- package/lib/src/{bundled-translations.pt-BR-DjPU3Db7.js → bundled-translations.pt-BR-BmPWrJ7g.js} +31 -31
- package/lib/src/{bundled-translations.pt-PT-BaepaDpr.js → bundled-translations.pt-PT-DS8g_MFC.js} +31 -31
- package/lib/src/bundles/bundled-translations.de-DE.json +9 -1
- package/lib/src/bundles/bundled-translations.es-ES.json +9 -1
- package/lib/src/bundles/bundled-translations.fr-CA.json +9 -1
- package/lib/src/bundles/bundled-translations.fr-FR.json +9 -1
- package/lib/src/bundles/bundled-translations.json +9 -1
- package/lib/src/bundles/bundled-translations.pt-BR.json +9 -1
- package/lib/src/bundles/bundled-translations.pt-PT.json +9 -1
- package/lib/src/business-D63jEgaI.js +13 -0
- package/lib/src/business-card-filled-Bd3FwP3f.js +10 -0
- package/lib/src/button-D1ZOr9bt.js +15 -0
- package/lib/src/button-arrow-CFDzyc9H.js +19 -0
- package/lib/src/button-arrow-left-Y0ZZCpSh.js +19 -0
- package/lib/src/button-arrow-right-fXDw8Ql2.js +19 -0
- package/lib/src/button-brushstroke-left-hz3Vb0Te.js +14 -0
- package/lib/src/button-brushstroke-right-BP1dqsnH.js +14 -0
- package/lib/src/button-brushstroke-vKjg5mzf.js +21 -0
- package/lib/src/button-dashed-oval-BSMrbcJ0.js +25 -0
- package/lib/src/button-dashed-rectangle-6SlatyIq.js +24 -0
- package/lib/src/button-dashed-rounded-BQXDSnt4.js +25 -0
- package/lib/src/button-doubleline-oval-8F9K1Wle.js +23 -0
- package/lib/src/button-doubleline-rectangle-CN0amDxf.js +29 -0
- package/lib/src/button-doubleline-rounded-B_AL4dtA.js +23 -0
- package/lib/src/button-justified-BNeosmm8.js +33 -0
- package/lib/src/button-paper-BA6ZBxmv.js +16 -0
- package/lib/src/button-paper-bottom-C3AnFPFh.js +12 -0
- package/lib/src/button-paper-top-CFLVNlHH.js +12 -0
- package/lib/src/button-softshadow-oval-DVQRnsf6.js +16 -0
- package/lib/src/button-softshadow-rectangle-D4ex7sUX.js +16 -0
- package/lib/src/button-softshadow-rounded-4_WRQ5FH.js +16 -0
- package/lib/src/calculator-jInjHAgL.js +10 -0
- package/lib/src/calendar-D3ZcQwPh.js +10 -0
- package/lib/src/callout-error-B2MsA_sn.js +13 -0
- package/lib/src/callout-info-Hp_yr5C2.js +13 -0
- package/lib/src/callout-success-D9cZc_kL.js +13 -0
- package/lib/src/callout-warning-CxoFgVaS.js +13 -0
- package/lib/src/cap-D-GPcxZm.js +27 -0
- package/lib/src/card-B37KadHf.js +19 -0
- package/lib/src/card-vertical-150X06Zi.js +14 -0
- package/lib/src/cart-empty-B1DFd2ao.js +16 -0
- package/lib/src/chart-bar-Cmi595KD.js +16 -0
- package/lib/src/chart-column-BQzSYPPR.js +16 -0
- package/lib/src/chart-fE4AJSLl.js +12 -0
- package/lib/src/chart-line-5IKpJMG5.js +14 -0
- package/lib/src/chart-pie-bHsK4W7x.js +14 -0
- package/lib/src/check-BgPl2Xg1.js +13 -0
- package/lib/src/check-circle-light-C79DsOqM.js +14 -0
- package/lib/src/check-rounded-BFeTKJ33.js +14 -0
- package/lib/src/check-thin-BpTwk0Qp.js +14 -0
- package/lib/src/chevron-down-DzTbBI_D.js +14 -0
- package/lib/src/chevron-left-CBOyk_SJ.js +14 -0
- package/lib/src/chevron-right-Dt4fKTtQ.js +13 -0
- package/lib/src/chevron-right-wide-DzFQ5Tfb.js +10 -0
- package/lib/src/chevron-up-CVHffidi.js +14 -0
- package/lib/src/clients/websocket-gateway-client.d.ts +1 -5
- package/lib/src/clipboard-check-BQA5PWe2.js +14 -0
- package/lib/src/clock-BMhgBwjR.js +10 -0
- package/lib/src/close-8dkHpZ6Z.js +13 -0
- package/lib/src/coins-sparkle-Blp7skne.js +21 -0
- package/lib/src/column-1-CmO2lXqg.js +23 -0
- package/lib/src/column-2-CFbzp1kU.js +29 -0
- package/lib/src/column-3-DBQGt9Ys.js +35 -0
- package/lib/src/column-4-Eu7-xTR5.js +41 -0
- package/lib/src/community-CXzJtu4U.js +10 -0
- package/lib/src/contact-message-DLib7GN3.js +13 -0
- package/lib/src/content-B6xdgFxg.js +14 -0
- package/lib/src/copy-CtyrDfn7.js +13 -0
- package/lib/src/crop-ws-CCOzp.js +13 -0
- package/lib/src/crown-DL2Wieha.js +13 -0
- package/lib/src/crown-alt-bvONz0E4.js +10 -0
- package/lib/src/css/library.brand-page-brandCrowd.min.css +272 -71
- package/lib/src/css/library.brand-page-brandPage.min.css +273 -72
- package/lib/src/css/library.brand-page-designCom.min.css +272 -71
- package/lib/src/css/library.brand-page-preview.min.css +272 -71
- package/lib/src/custom-landscape-A7ZKk9ed.js +10 -0
- package/lib/src/delete-C37OBRZ0.js +13 -0
- package/lib/src/designs-DIv1BqF0.js +13 -0
- package/lib/src/desktop-SJDj7Goi.js +14 -0
- package/lib/src/desktop-hamburger-display-style-1-CNKw15XK.js +31 -0
- package/lib/src/desktop-hamburger-display-style-2-2ewrYd_A.js +31 -0
- package/lib/src/desktop-hamburger-display-style-with-button-1-B0qruTHB.js +16 -0
- package/lib/src/desktop-hamburger-display-style-with-button-2-xe0oYLtw.js +16 -0
- package/lib/src/desktop-tab-display-style-1-BY-aPYPx.js +31 -0
- package/lib/src/desktop-tab-display-style-2-f24u0Du0.js +31 -0
- package/lib/src/desktop-tab-display-style-3-nRdjnye_.js +27 -0
- package/lib/src/desktop-tab-display-style-4-BMH5EYio.js +27 -0
- package/lib/src/desktop-tab-display-style-5-CTIrYIXI.js +31 -0
- package/lib/src/desktop-tab-display-style-6-DAWtQWOv.js +31 -0
- package/lib/src/desktop-tab-display-style-7-DVWU4RYB.js +35 -0
- package/lib/src/desktop-tab-display-style-8-tEXK5Soy.js +31 -0
- package/lib/src/desktop-tab-display-style-with-button-1-C35AMknu.js +35 -0
- package/lib/src/desktop-tab-display-style-with-button-2-CB738FG_.js +35 -0
- package/lib/src/desktop-tab-display-style-with-button-3-cI6j48XP.js +35 -0
- package/lib/src/desktop-tab-display-style-with-button-4-BhdhvqIj.js +31 -0
- package/lib/src/desktop-tab-display-style-with-button-5-CCGMoPQq.js +16 -0
- package/lib/src/desktop-tab-display-style-with-button-6-DszQ0mPS.js +16 -0
- package/lib/src/diamond-D4lqI2nA.js +14 -0
- package/lib/src/digital-business-card-filled-VZeDwcSJ.js +33 -0
- package/lib/src/display-style-1-CXn-kKwy.js +39 -0
- package/lib/src/display-style-1-DOqTIy6E.js +31 -0
- package/lib/src/display-style-1-v1n446Tu.js +16 -0
- package/lib/src/display-style-2-BK1j0nmz.js +31 -0
- package/lib/src/display-style-2-Bjo5lGIq.js +27 -0
- package/lib/src/display-style-2-BkR9tBo8.js +16 -0
- package/lib/src/display-style-3-CMZ_nGLN.js +31 -0
- package/lib/src/display-style-4-C-JBN6g6.js +31 -0
- package/lib/src/display-style-about-1-BSelGHIQ.js +31 -0
- package/lib/src/display-style-about-2-CnNlIOrY.js +31 -0
- package/lib/src/display-style-about-3-l5zdL0GD.js +31 -0
- package/lib/src/display-style-about-4-C5mWY7om.js +16 -0
- package/lib/src/display-style-about-5-DQk_43QL.js +15 -0
- package/lib/src/display-style-about-6-IMmTLRe3.js +15 -0
- package/lib/src/display-style-banner-1-PGva4TIp.js +31 -0
- package/lib/src/display-style-banner-10-CamQlng4.js +31 -0
- package/lib/src/display-style-banner-11-CJcECZiv.js +31 -0
- package/lib/src/display-style-banner-12-5MLNTATn.js +31 -0
- package/lib/src/display-style-banner-13-BCzBw-hw.js +32 -0
- package/lib/src/display-style-banner-14-f3ezdwQH.js +33 -0
- package/lib/src/display-style-banner-15-CL0nAJ8m.js +33 -0
- package/lib/src/display-style-banner-2-Ca3E2eve.js +31 -0
- package/lib/src/display-style-banner-3-BMBdaJ21.js +31 -0
- package/lib/src/display-style-banner-4-BXjwxyEf.js +31 -0
- package/lib/src/display-style-banner-5-H1R0nSeM.js +31 -0
- package/lib/src/display-style-banner-6-DOflsFNa.js +16 -0
- package/lib/src/display-style-banner-7-CthNa7Un.js +16 -0
- package/lib/src/display-style-banner-8-BKXplCsT.js +31 -0
- package/lib/src/display-style-banner-9-DrMPF9eR.js +31 -0
- package/lib/src/display-style-contact-1-B_8Jc01j.js +16 -0
- package/lib/src/display-style-contact-2-Ba03F0gV.js +16 -0
- package/lib/src/display-style-contact-4-DCaEimSF.js +16 -0
- package/lib/src/display-style-contact-5-B767fCRm.js +16 -0
- package/lib/src/display-style-contact-6-od3McHkx.js +16 -0
- package/lib/src/display-style-faq-1-CqKJ4Ly3.js +16 -0
- package/lib/src/display-style-faq-2-CSarOHJb.js +16 -0
- package/lib/src/display-style-faq-3-DOjdJS_z.js +16 -0
- package/lib/src/display-style-images-1-DT0GVNgS.js +16 -0
- package/lib/src/display-style-images-2-46MrwLIl.js +16 -0
- package/lib/src/display-style-images-3-DHPFnVE3.js +16 -0
- package/lib/src/display-style-images-4-DC_T8nsk.js +27 -0
- package/lib/src/display-style-images-5-xE96EO5b.js +16 -0
- package/lib/src/display-style-images-6-Du7t1XD5.js +16 -0
- package/lib/src/divider-DnOAve5X.js +14 -0
- package/lib/src/divider-thick-C2lmrfm6.js +23 -0
- package/lib/src/divider-thin-BaKizph2.js +23 -0
- package/lib/src/donate-lpJFY2mx.js +13 -0
- package/lib/src/download-BzZa5drX.js +14 -0
- package/lib/src/duplicate-D5g-oYG8.js +13 -0
- package/lib/src/edit-DkE5zh8K.js +13 -0
- package/lib/src/edit-line-DX3WfIZz.js +16 -0
- package/lib/src/ellipsis-CCqPS0WG.js +13 -0
- package/lib/src/email-DKZ0xXxy.js +10 -0
- package/lib/src/email-symbol-CASzuu-D.js +10 -0
- package/lib/src/envelope-email-AnqDBUyb.js +16 -0
- package/lib/src/eraser-Bwx1HZwy.js +10 -0
- package/lib/src/error-DiqaFC9b.js +13 -0
- package/lib/src/etsy-KyCQUiIK.js +10 -0
- package/lib/src/eye-crossed-D8Sbdxyj.js +14 -0
- package/lib/src/eye-open-BicHubIM.js +24 -0
- package/lib/src/facebook-DkBk7LLr.js +10 -0
- package/lib/src/favicon-Hcq_3Vdi.js +14 -0
- package/lib/src/fees--vANdnYL.js +13 -0
- package/lib/src/file-C0f_ltyT.js +14 -0
- package/lib/src/file-box-BV8JnPxx.js +13 -0
- package/lib/src/file-empty-i7TZU2IX.js +14 -0
- package/lib/src/filter-BERckCWX.js +13 -0
- package/lib/src/filter-Cs-uNY1P.js +14 -0
- package/lib/src/filters-JWLwl8i1.js +13 -0
- package/lib/src/flag-DteG9L_P.js +16 -0
- package/lib/src/flip-horizontal-C1mOkUzH.js +14 -0
- package/lib/src/flip-vertical-DLl4gtbx.js +14 -0
- package/lib/src/flyer-BvyfgyXO.js +14 -0
- package/lib/src/folder-BXP2I936.js +13 -0
- package/lib/src/font-I0Sh9XMI.js +14 -0
- package/lib/src/footer-centered-NzzNbRSz.js +35 -0
- package/lib/src/footer-left-BJMF268B.js +35 -0
- package/lib/src/form-aHaZlMzS.js +10 -0
- package/lib/src/form-message-BeICFs8u.js +13 -0
- package/lib/src/fullscreen-DcEOjC0U.js +10 -0
- package/lib/src/fullscreen-exit-CjmzcvGM.js +10 -0
- package/lib/src/gift-certificate-B5V9rQI5.js +10 -0
- package/lib/src/globe-B490Q0bP.js +13 -0
- package/lib/src/globe-ChUZiM8T.js +10 -0
- package/lib/src/globe-DFmpHm_2.js +13 -0
- package/lib/src/group-Dc9mVFcn.js +13 -0
- package/lib/src/hamburger-1-BEphoioj.js +17 -0
- package/lib/src/hamburger-2-BKM_rVbZ.js +19 -0
- package/lib/src/hamburger-3-DdKjmZIq.js +19 -0
- package/lib/src/hamburger-4-B9I8jfhD.js +15 -0
- package/lib/src/hamburger-Bh0ZrW-q.js +19 -0
- package/lib/src/hamburger-DTY0Ei2b.js +31 -0
- package/lib/src/hamburger-display-style-no-logo-1-CFqOI__z.js +27 -0
- package/lib/src/hamburger-display-style-no-logo-2-ehHmBkpj.js +27 -0
- package/lib/src/hamburger-display-style-no-logo-3-DFwQsoLo.js +27 -0
- package/lib/src/headphones-BuaNMDAX.js +14 -0
- package/lib/src/heart-DfKlyjTE.js +14 -0
- package/lib/src/history-DzA2mbFQ.js +41 -0
- package/lib/src/home-1VhJeefA.js +14 -0
- package/lib/src/home-Bd9BVHpE.js +13 -0
- package/lib/src/home-outline-BL952wup.js +13 -0
- package/lib/src/icon-style-circle-bg-CBWQYcrG.js +29 -0
- package/lib/src/icon-style-no-bg-C4MeLrLN.js +23 -0
- package/lib/src/icon-style-square-bg-UdoKx2BD.js +29 -0
- package/lib/src/image-Cs0pdxPf.js +14 -0
- package/lib/src/image-DqPmgaR6.js +14 -0
- package/lib/src/image-gallery-carousel-DaELueRy.js +22 -0
- package/lib/src/image-gallery-grid-ELbA0rME.js +32 -0
- package/lib/src/image-gallery-masonry-D6XVOAt2.js +26 -0
- package/lib/src/images-Cxdq_QJe.js +14 -0
- package/lib/src/images-gallery-C2KGX0Vt.js +10 -0
- package/lib/src/index.mjs +164 -163
- package/lib/src/info-Cr06f_5z.js +21 -0
- package/lib/src/infographics-0jyqJpXQ.js +10 -0
- package/lib/src/instagram-CDTb1tul.js +14 -0
- package/lib/src/invitation-CJ2b0dEg.js +10 -0
- package/lib/src/invoice-Bz3oJMGM.js +10 -0
- package/lib/src/italic-zzxZZ1V9.js +14 -0
- package/lib/src/jobs-DCcoHrcd.js +13 -0
- package/lib/src/layer-D3VQznB9.js +13 -0
- package/lib/src/layer-bring-front-CYHkW1aU.js +13 -0
- package/lib/src/layer-send-back-C3drjWFm.js +13 -0
- package/lib/src/layout-hmiB9k-2.js +10 -0
- package/lib/src/layout-icon-bottom-normal-text-center-normal-D3hEgZK9.js +35 -0
- package/lib/src/layout-icon-bottom-normal-text-center-small-Dp-Vb_JO.js +35 -0
- package/lib/src/layout-icon-bottom-small-text-center-normal-2HbtnXAz.js +35 -0
- package/lib/src/layout-icon-center-normal-curved-text-bottom-D3Hiqz97.js +33 -0
- package/lib/src/layout-icon-center-normal-curved-text-circle-S1_fqA4X.js +26 -0
- package/lib/src/layout-icon-center-normal-curved-text-top-biDDTKKy.js +33 -0
- package/lib/src/layout-icon-left-normal-text-center-normal-CH5BA1-c.js +35 -0
- package/lib/src/layout-icon-left-normal-text-justify-normal-DOio-vV6.js +35 -0
- package/lib/src/layout-icon-left-normal-text-left-normal-B6l03sC6.js +35 -0
- package/lib/src/layout-icon-left-small-text-left-normal-NX5SzzGS.js +35 -0
- package/lib/src/layout-icon-right-normal-text-center-normal-B2k4L1WG.js +35 -0
- package/lib/src/layout-icon-right-normal-text-justify-normal-DdID8PMH.js +35 -0
- package/lib/src/layout-icon-right-normal-text-right-normal-Di1gAWYq.js +35 -0
- package/lib/src/layout-icon-right-small-text-right-normal-B1mG18Vb.js +35 -0
- package/lib/src/layout-icon-top-normal-text-center-normal-5EEqhHVH.js +35 -0
- package/lib/src/layout-icon-top-normal-text-center-small-Dj6bcJ3s.js +35 -0
- package/lib/src/layout-icon-top-normal-text-justify-normal-B-P9nfe-.js +35 -0
- package/lib/src/layout-icon-top-small-text-center-normal-DdsQTBL-.js +35 -0
- package/lib/src/letterhead-filled-D4rd6pcx.js +10 -0
- package/lib/src/{lib-CidddZOL.js → lib-DY_vUnHe.js} +34371 -39600
- package/lib/src/lightning-CNaQjC0I.js +14 -0
- package/lib/src/link-Bo9vrCM3.js +13 -0
- package/lib/src/link-in-bio-filled-BX1nNPjw.js +33 -0
- package/lib/src/link-r1vG56Yd.js +14 -0
- package/lib/src/linkedin-DMKOtaHb.js +14 -0
- package/lib/src/list-bullet-CMqM9RJ4.js +18 -0
- package/lib/src/list-numbered-sfs2qGQR.js +26 -0
- package/lib/src/location-BYSwhflT.js +13 -0
- package/lib/src/lock-DOQ8Aptn.js +13 -0
- package/lib/src/logo-DtFxKnSI.js +14 -0
- package/lib/src/logo-oLXFk3s8.js +10 -0
- package/lib/src/mac-command-BTYTb8Go.js +15 -0
- package/lib/src/map-Cm9rzaO2.js +13 -0
- package/lib/src/media-RV2wDZJ2.js +10 -0
- package/lib/src/menu-DFQn79Rh.js +10 -0
- package/lib/src/message-wluIKTox.js +13 -0
- package/lib/src/metadata-builder/builders/section-field-maps.d.ts +1 -1
- package/lib/src/metadata-builder/builders/section-field-maps.js +1 -1
- package/lib/src/metadata-builder/builders/undo-builder.d.ts +2 -2
- package/lib/src/metadata-builder/builders/undo-builder.js +2 -2
- package/lib/src/metadata-builder/parsers/section-tool-arguments.d.ts +3 -3
- package/lib/src/metadata-builder/parsers/section-tool-arguments.js +1 -1
- package/lib/src/microphone-BufgUGWy.js +10 -0
- package/lib/src/microphone-bold-DUZ5AJ3L.js +14 -0
- package/lib/src/minus-DzUgQkSZ.js +13 -0
- package/lib/src/minus-circle-light-BD7eKYN_.js +14 -0
- package/lib/src/mobile-DiGgp18z.js +10 -0
- package/lib/src/mobile-hamburger-display-style-1-CQ75ElwZ.js +31 -0
- package/lib/src/mobile-hamburger-display-style-2-BMfiAsHx.js +31 -0
- package/lib/src/mobile-hamburger-display-style-3-DUIm2W30.js +31 -0
- package/lib/src/mobile-hamburger-display-style-4-2CWklt_-.js +31 -0
- package/lib/src/mobile-tab-display-style-1-DKNcJVTr.js +31 -0
- package/lib/src/mobile-tab-display-style-2-Zw9TZTqF.js +31 -0
- package/lib/src/mobile-tab-display-style-with-button-1-CTg6eMbx.js +16 -0
- package/lib/src/mobile-tab-display-style-with-button-2-Ce3-f5-6.js +16 -0
- package/lib/src/mug-iuzAhgRH.js +35 -0
- package/lib/src/opacity-DkJsMJ9I.js +13 -0
- package/lib/src/other-DS5FhtzA.js +29 -0
- package/lib/src/page-blank-yUM2mL5m.js +13 -0
- package/lib/src/page-buttons-1037-dTh.js +18 -0
- package/lib/src/page-hamburger-DkJsogq5.js +37 -0
- package/lib/src/page-tabs-Dkndr8Oi.js +39 -0
- package/lib/src/pages-BUSKFx1a.js +13 -0
- package/lib/src/paint-brush-BKdwdV0n.js +10 -0
- package/lib/src/palette-DFdykQVv.js +14 -0
- package/lib/src/palette-outline-KhG2vx5d.js +14 -0
- package/lib/src/pause-CL9k8Lxp.js +10 -0
- package/lib/src/pause-ConKkY5J.js +10 -0
- package/lib/src/payment-D8YtsaSZ.js +21 -0
- package/lib/src/payments-featured-D3j5mAnz.js +27 -0
- package/lib/src/payments-textonly-CKhoipuI.js +40 -0
- package/lib/src/payments-thumbnail-CVpl0W7T.js +29 -0
- package/lib/src/pen-Bm0z5q9V.js +14 -0
- package/lib/src/pen-outline-BQ4LiADk.js +14 -0
- package/lib/src/pen-sparkle-mIwxLCyz.js +26 -0
- package/lib/src/pen-tool-wfdF0pPI.js +14 -0
- package/lib/src/phone-BfSQEe_W.js +13 -0
- package/lib/src/phone-DE95BDb8.js +10 -0
- package/lib/src/pinterest-D9vv_pEN.js +10 -0
- package/lib/src/play-CdFTEnxv.js +10 -0
- package/lib/src/plus-BeGokSus.js +10 -0
- package/lib/src/plus-circle-PD_0a-0C.js +14 -0
- package/lib/src/plus-circle-light-DM1PO4pd.js +15 -0
- package/lib/src/plus-light-CKTu3H3S.js +14 -0
- package/lib/src/poll-DLh3fJen.js +10 -0
- package/lib/src/portfolio-BpYfEehk.js +13 -0
- package/lib/src/postcard-BKMsUt9B.js +10 -0
- package/lib/src/poster-mCJ7GDzF.js +14 -0
- package/lib/src/premium-content-B2eoJWcY.js +21 -0
- package/lib/src/preview-_hMOqL1k.js +13 -0
- package/lib/src/printing-DmUmKyu0.js +13 -0
- package/lib/src/processing-DJFlKthj.js +10 -0
- package/lib/src/profile-C0IBq6Hd.js +10 -0
- package/lib/src/qrcode-Cp1XqCr3.js +10 -0
- package/lib/src/question-6jQ6MdC-.js +21 -0
- package/lib/src/question-alt-DUboGm-r.js +29 -0
- package/lib/src/question-circle-filled-D79nKcJq.js +14 -0
- package/lib/src/quote-BDZO3VeB.js +12 -0
- package/lib/src/ratio-1-1-XQaJGx-L.js +15 -0
- package/lib/src/ratio-16-9-jP4b4Ck3.js +15 -0
- package/lib/src/ratio-2-3-cb2qs0Mu.js +15 -0
- package/lib/src/ratio-3-2-25W8PMlp.js +15 -0
- package/lib/src/ratio-3-4-V2HzLIfA.js +15 -0
- package/lib/src/ratio-4-3-DrZKJj8a.js +15 -0
- package/lib/src/ratio-9-16-CXrTJW1K.js +15 -0
- package/lib/src/ratio-circle-C_TFvDGj.js +15 -0
- package/lib/src/ratio-original-jfbH-aUV.js +23 -0
- package/lib/src/redo-CTCSmHGx.js +13 -0
- package/lib/src/refresh-DxmnDGz7.js +13 -0
- package/lib/src/reload-DYtQKAAu.js +13 -0
- package/lib/src/reorderable-CsG17jAV.js +10 -0
- package/lib/src/request-payment-DRTcxo7j.js +13 -0
- package/lib/src/reset-QvKUGqRZ.js +13 -0
- package/lib/src/resize-fbekkz02.js +25 -0
- package/lib/src/roller-brush-DqV6McUG.js +10 -0
- package/lib/src/save-Dpo36uBX.js +13 -0
- package/lib/src/search-Wkqsltj5.js +14 -0
- package/lib/src/secure-D33nyNa2.js +14 -0
- package/lib/src/select-all-B1fbNSBq.js +24 -0
- package/lib/src/send-BolZZD8V.js +23 -0
- package/lib/src/services-t81drp50.js +12 -0
- package/lib/src/settings-ZuwLZxG-.js +15 -0
- package/lib/src/shape-DgnWUfL0.js +10 -0
- package/lib/src/share-PhTQCMEH.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 +11 -0
- package/lib/src/shared/color-strategies/rte-field-pairs.js +23 -0
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +1 -0
- package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +2 -1
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +1 -0
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +1 -0
- 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/page-settings/components/page-settings/PageSettings.mixin.d.ts +1 -0
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +1 -0
- package/lib/src/shield-tick-CfRvQxPo.js +13 -0
- package/lib/src/shop-BnIqxTf7.js +13 -0
- package/lib/src/size-auto-CFYbPP8b.js +10 -0
- package/lib/src/size-landscape-BfkTcvD3.js +10 -0
- package/lib/src/size-portrait-B5aeleHm.js +10 -0
- package/lib/src/size-square-Cgy1sF5M.js +10 -0
- package/lib/src/sms-BiKhz6nM.js +10 -0
- package/lib/src/snapchat-Cjv2_4Yb.js +10 -0
- package/lib/src/social-facebook-4ppvxwKP.js +10 -0
- package/lib/src/social-facebook-Drs9nDyg.js +13 -0
- package/lib/src/social-facebook-color-76JrtzHS.js +25 -0
- package/lib/src/social-google-7QL97me7.js +10 -0
- package/lib/src/social-google-D5Knsr7g.js +13 -0
- package/lib/src/social-instagram-_klL3uhy.js +13 -0
- package/lib/src/social-instagram-color-DAFyYA6l.js +62 -0
- package/lib/src/social-linkedin-color-2IhPEkoY.js +21 -0
- package/lib/src/social-share-D_z23xdt.js +12 -0
- package/lib/src/social-twitter-C32TsK-S.js +13 -0
- package/lib/src/social-twitter-color-BgoJgmHR.js +25 -0
- package/lib/src/social-youtube-CqIe-oK0.js +13 -0
- package/lib/src/sort-WQM55Znq.js +10 -0
- package/lib/src/soundcloud-D_rPYnz_.js +14 -0
- package/lib/src/spacing-apx-l3Xv.js +27 -0
- package/lib/src/sparkle-square-CLmdD9Qx.js +31 -0
- package/lib/src/squares-mnDAYZDI.js +14 -0
- package/lib/src/star-filled-hzNMrvuj.js +13 -0
- package/lib/src/star-hollow-qqeiBIkV.js +13 -0
- package/lib/src/sticker-ComycVrN.js +35 -0
- package/lib/src/stop-DVIru9yN.js +10 -0
- package/lib/src/strikethrough-CJNP8SGy.js +14 -0
- package/lib/src/styles-DTDjHHxb.js +10 -0
- package/lib/src/submit-CYR7u_CG.js +10 -0
- package/lib/src/t-shirt-BsZg0Cfc.js +39 -0
- package/lib/src/tab-display-style-no-logo-1-B2O1FVFu.js +27 -0
- package/lib/src/tab-display-style-no-logo-2-BSHYuWQd.js +27 -0
- package/lib/src/tab-display-style-no-logo-3-yqgKXdTk.js +27 -0
- package/lib/src/templates-Bga3FRYs.js +14 -0
- package/lib/src/testimonial-big-image-CRV62bPm.js +36 -0
- package/lib/src/testimonial-centered-BB5ZrjVC.js +32 -0
- package/lib/src/testimonial-columns-B-wNsh6Q.js +40 -0
- package/lib/src/text-CLykMXpS.js +14 -0
- package/lib/src/text-DAZYK490.js +14 -0
- package/lib/src/text-background-color-DbwcAD-t.js +21 -0
- package/lib/src/text-color-6gy1VHg2.js +23 -0
- package/lib/src/text-image-center-CGlaeD5R.js +28 -0
- package/lib/src/text-image-f5-27VsG.js +44 -0
- package/lib/src/text-image-justified-DKNa4g0x.js +35 -0
- package/lib/src/text-image-left--D7gYeGu.js +29 -0
- package/lib/src/text-image-only-CTWr51rN.js +21 -0
- package/lib/src/text-image-right-CwHE1ANa.js +29 -0
- package/lib/src/thankyou-card-2FndEbnv.js +10 -0
- package/lib/src/thumbs-up-BGOaudWH.js +10 -0
- package/lib/src/tiktok-B7Q9t0LQ.js +10 -0
- package/lib/src/time-CZtBVf6n.js +13 -0
- package/lib/src/tools-2R2R_xSB.js +10 -0
- package/lib/src/tooltip-bottom-76kaSvpy.js +12 -0
- package/lib/src/tooltip-left-DnqlXRbf.js +12 -0
- package/lib/src/tooltip-right-De3IVoPH.js +12 -0
- package/lib/src/tooltip-top-BcBMxm6e.js +12 -0
- package/lib/src/transition-BB5rBqiy.js +27 -0
- package/lib/src/tumblr-DKDzUME6.js +10 -0
- package/lib/src/twitch-B0zCOTGw.js +14 -0
- package/lib/src/twitter-CRTGZZIs.js +10 -0
- package/lib/src/underline-Cvau1mZf.js +14 -0
- package/lib/src/undo-Bj9NTZW6.js +13 -0
- package/lib/src/upgrade-BfixCoxO.js +16 -0
- package/lib/src/upgrade-alt-BwwKsh2K.js +14 -0
- package/lib/src/upgrade-to-add-page-BsS2Hhvw.js +57 -0
- package/lib/src/upgrade-to-contact-form-BRN2Rejc.js +95 -0
- package/lib/src/upgrade-to-google-ad-DBOKNd-L.js +129 -0
- package/lib/src/upgrade-to-maps-Cig6c1LO.js +56 -0
- package/lib/src/upgrade-to-publish-B-d3aORY.js +119 -0
- package/lib/src/upgrade-to-remove-watermark-BF-P0J7e.js +108 -0
- package/lib/src/upgrade-to-videos-CcnXS-0r.js +54 -0
- package/lib/src/upload-DgBY7irZ.js +10 -0
- package/lib/src/upload-arrow-kvBFT3Oa.js +10 -0
- package/lib/src/uppercase-BT4dJAup.js +24 -0
- package/lib/src/user-accounts-BiEVlJJq.js +10 -0
- package/lib/src/user-headset-BlZeYCqo.js +57 -0
- package/lib/src/users-2-BKiuVLCy.js +15 -0
- package/lib/src/users-DMJEhWSj.js +14 -0
- package/lib/src/video-C3HNFBVB.js +10 -0
- package/lib/src/volume-DAaP2Yxi.js +10 -0
- package/lib/src/volume-muted-AmP9KNUG.js +10 -0
- package/lib/src/watchlist-filled-kZ28HiCq.js +24 -0
- package/lib/src/watchlist-hollow-CeOpNctW.js +13 -0
- package/lib/src/watchlist-hollow-alt-Ba7RimtB.js +24 -0
- package/lib/src/website-Cs7nmJ0F.js +13 -0
- package/lib/src/website-filled-IcFTJE0J.js +10 -0
- package/lib/src/whatsapp-CGGNCvUj.js +14 -0
- package/lib/src/wholesale-Dpn61RgC.js +13 -0
- package/lib/src/wrap-text-1c4j5CQf.js +15 -0
- package/lib/src/youtube-DouyWVkL.js +10 -0
- package/lib/src/zoom-B7pl1jZp.js +10 -0
- package/lib/src/zoom-CzeslImn.js +16 -0
- package/lib/src/zoom-in-B38FEljT.js +10 -0
- package/lib/src/zoom-out-DS76wW6N.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/page/PageComponent.vue +2 -0
- package/src/brand-page/constants/misc.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/index.ts +29 -0
- package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +1 -0
- package/src/brand-page/utils/container-text-color.util.test.ts +81 -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/migration/__snapshots__/migration-22-output/edited-brandsite-sections.v22.json +6 -3
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/new-brandcontact-every-section.v22.json +26 -13
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/new-brandpage-every-section.v22.json +24 -12
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/new-brandsite-every-section.v22.json +24 -12
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/real-brandcontact.v22.json +8 -4
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/real-brandpage-general-link.v22.json +6 -3
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/real-brandpage-links.v22.json +6 -3
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/real-brandsite-header-banner.v22.json +2 -1
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/real-brandsite-sections.v22.json +6 -3
- package/src/brand-page/utils/migration/migration-22.ts +103 -4
- package/src/brand-page/utils/personalisation.util.test.ts +53 -0
- package/src/brand-page/utils/view-model.util.ts +26 -0
- 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/composables/ai-chat/aiErrorCopy.ts +2 -2
- package/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.ts +2 -2
- package/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.ts +2 -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/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 -1
- package/src/bundles/bundled-translations.es-ES.json +9 -1
- package/src/bundles/bundled-translations.fr-CA.json +9 -1
- package/src/bundles/bundled-translations.fr-FR.json +9 -1
- package/src/bundles/bundled-translations.json +9 -1
- package/src/bundles/bundled-translations.pt-BR.json +9 -1
- package/src/bundles/bundled-translations.pt-PT.json +9 -1
- package/src/clients/websocket-gateway-client.ts +0 -5
- package/src/metadata-builder/builders/section-field-maps.ts +1 -1
- package/src/metadata-builder/builders/undo-builder.ts +2 -2
- package/src/metadata-builder/parsers/section-tool-arguments.ts +6 -5
- 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 +35 -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.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
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<section data-component="faq-section">
|
|
3
|
+
<div
|
|
4
|
+
class="tw-relative tw-px-6"
|
|
5
|
+
:style="[viewModel.backgroundStyle, contentPaddingStyle]"
|
|
6
|
+
style="container-type: inline-size"
|
|
7
|
+
>
|
|
8
|
+
<div class="c_faq" :class="`c_faq--${layout}`">
|
|
9
|
+
<div
|
|
10
|
+
v-if="hasTitle || hasDescription"
|
|
11
|
+
class="c_faq__heading"
|
|
12
|
+
data-test-faq-heading
|
|
13
|
+
>
|
|
14
|
+
<TextWrapper
|
|
15
|
+
v-if="hasTitle"
|
|
16
|
+
:text-style="viewModel.titleStyle"
|
|
17
|
+
:text="viewModel.title"
|
|
18
|
+
:slug="context.brandPageSlug"
|
|
19
|
+
element="h2"
|
|
20
|
+
/>
|
|
21
|
+
<TextWrapper
|
|
22
|
+
v-if="hasDescription"
|
|
23
|
+
class="tw-mt-4"
|
|
24
|
+
:text-style="viewModel.descriptionStyle"
|
|
25
|
+
:text="getRenderText(viewModel.description)"
|
|
26
|
+
:slug="context.brandPageSlug"
|
|
27
|
+
element="div"
|
|
28
|
+
/>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<!-- No items: no list at all, so the heading gap doesn't linger. -->
|
|
32
|
+
<div
|
|
33
|
+
v-if="hasItems && isAccordion"
|
|
34
|
+
class="c_faq__items"
|
|
35
|
+
:style="dividerStyle"
|
|
36
|
+
data-test-faq-items
|
|
37
|
+
>
|
|
38
|
+
<div
|
|
39
|
+
v-for="item in viewModel.items"
|
|
40
|
+
:key="item.id"
|
|
41
|
+
class="c_faq__item"
|
|
42
|
+
:data-test-faq-item="item.id"
|
|
43
|
+
>
|
|
44
|
+
<h3 class="tw-m-0">
|
|
45
|
+
<button
|
|
46
|
+
type="button"
|
|
47
|
+
class="c_faq__question"
|
|
48
|
+
:aria-expanded="isOpen(item.id)"
|
|
49
|
+
:aria-controls="answerId(item.id)"
|
|
50
|
+
data-test-faq-question
|
|
51
|
+
@click="onQuestionClick($event, item.id)"
|
|
52
|
+
>
|
|
53
|
+
<TextWrapper
|
|
54
|
+
:text-style="viewModel.questionStyle"
|
|
55
|
+
:text="getRenderText(item.question)"
|
|
56
|
+
:slug="context.brandPageSlug"
|
|
57
|
+
element="span"
|
|
58
|
+
/>
|
|
59
|
+
<Icon
|
|
60
|
+
class="c_faq__toggle"
|
|
61
|
+
:style="iconStyle"
|
|
62
|
+
:name="isOpen(item.id) ? 'minus' : 'plus-light'"
|
|
63
|
+
size="sm"
|
|
64
|
+
data-test-faq-toggle
|
|
65
|
+
/>
|
|
66
|
+
</button>
|
|
67
|
+
</h3>
|
|
68
|
+
<div
|
|
69
|
+
v-show="isOpen(item.id)"
|
|
70
|
+
:id="answerId(item.id)"
|
|
71
|
+
class="c_faq__answer"
|
|
72
|
+
data-test-faq-answer
|
|
73
|
+
>
|
|
74
|
+
<TextWrapper
|
|
75
|
+
:text-style="viewModel.answerStyle"
|
|
76
|
+
:text="getRenderText(item.answer)"
|
|
77
|
+
:slug="context.brandPageSlug"
|
|
78
|
+
element="div"
|
|
79
|
+
/>
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
</div>
|
|
83
|
+
|
|
84
|
+
<div v-else-if="hasItems" class="c_faq__grid" data-test-faq-items>
|
|
85
|
+
<div
|
|
86
|
+
v-for="item in viewModel.items"
|
|
87
|
+
:key="item.id"
|
|
88
|
+
:data-test-faq-item="item.id"
|
|
89
|
+
>
|
|
90
|
+
<TextWrapper
|
|
91
|
+
:text-style="viewModel.questionStyle"
|
|
92
|
+
:text="getRenderText(item.question)"
|
|
93
|
+
:slug="context.brandPageSlug"
|
|
94
|
+
element="h3"
|
|
95
|
+
/>
|
|
96
|
+
<TextWrapper
|
|
97
|
+
class="tw-mt-2"
|
|
98
|
+
:text-style="viewModel.answerStyle"
|
|
99
|
+
:text="getRenderText(item.answer)"
|
|
100
|
+
:slug="context.brandPageSlug"
|
|
101
|
+
element="div"
|
|
102
|
+
data-test-faq-answer
|
|
103
|
+
/>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
</section>
|
|
109
|
+
</template>
|
|
110
|
+
<script setup lang="ts">
|
|
111
|
+
import type { PropType } from 'vue';
|
|
112
|
+
import { computed, ref } from 'vue';
|
|
113
|
+
import { Icon } from '@designcrowd/fe-shared-lib';
|
|
114
|
+
import TextWrapper from '../text-wrapper/TextWrapper.vue';
|
|
115
|
+
import type { FaqSectionViewModel } from '@brand-page/view-models';
|
|
116
|
+
import type { BrandPageContext } from '@brand-page/models';
|
|
117
|
+
import { FAQ_DISPLAY_STYLES } from '@brand-page/constants';
|
|
118
|
+
import {
|
|
119
|
+
escapeContentText,
|
|
120
|
+
getRenderText,
|
|
121
|
+
contentPaddingStyle as toContentPaddingStyle,
|
|
122
|
+
} from '@brand-page/utils';
|
|
123
|
+
|
|
124
|
+
const props = defineProps({
|
|
125
|
+
viewModel: {
|
|
126
|
+
type: Object as PropType<FaqSectionViewModel>,
|
|
127
|
+
required: true,
|
|
128
|
+
},
|
|
129
|
+
context: {
|
|
130
|
+
type: Object as PropType<BrandPageContext>,
|
|
131
|
+
required: true,
|
|
132
|
+
},
|
|
133
|
+
containerClientWidth: {
|
|
134
|
+
type: Number as PropType<number | undefined>,
|
|
135
|
+
required: false,
|
|
136
|
+
default: undefined,
|
|
137
|
+
},
|
|
138
|
+
containerClientHeight: {
|
|
139
|
+
type: Number as PropType<number | undefined>,
|
|
140
|
+
required: false,
|
|
141
|
+
default: undefined,
|
|
142
|
+
},
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
const contentPaddingStyle = computed(() =>
|
|
146
|
+
toContentPaddingStyle(props.viewModel),
|
|
147
|
+
);
|
|
148
|
+
|
|
149
|
+
const layout = computed((): string => {
|
|
150
|
+
switch (props.viewModel.displayStyle) {
|
|
151
|
+
case FAQ_DISPLAY_STYLES.split:
|
|
152
|
+
return 'split';
|
|
153
|
+
case FAQ_DISPLAY_STYLES.grid:
|
|
154
|
+
return 'grid';
|
|
155
|
+
default:
|
|
156
|
+
return 'centered';
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
const isAccordion = computed((): boolean => layout.value !== 'grid');
|
|
161
|
+
|
|
162
|
+
const hasItems = computed((): boolean => props.viewModel.items.length > 0);
|
|
163
|
+
|
|
164
|
+
// The h2 (ADR 0004) and description hide when empty, so no heading gap lingers.
|
|
165
|
+
const hasTitle = computed(
|
|
166
|
+
(): boolean => !!escapeContentText(props.viewModel.title),
|
|
167
|
+
);
|
|
168
|
+
const hasDescription = computed(
|
|
169
|
+
(): boolean => !!escapeContentText(props.viewModel.description),
|
|
170
|
+
);
|
|
171
|
+
|
|
172
|
+
// The icon and divider colours are baked at birth by applyTextContrast.
|
|
173
|
+
const iconStyle = computed((): { color?: string } => ({
|
|
174
|
+
color: props.viewModel.iconColor?.color,
|
|
175
|
+
}));
|
|
176
|
+
|
|
177
|
+
const dividerStyle = computed(
|
|
178
|
+
(): Record<string, string | undefined> => ({
|
|
179
|
+
'--faq-divider-color': props.viewModel.dividerColor?.backgroundColor,
|
|
180
|
+
}),
|
|
181
|
+
);
|
|
182
|
+
|
|
183
|
+
// Items open independently: any number can be open at once, including none.
|
|
184
|
+
// Seeded from data (not `mounted`) so SSR and hydration render the same open
|
|
185
|
+
// item. A new item starts closed; it simply isn't in the set yet.
|
|
186
|
+
const openItemIds = ref<Set<string>>(
|
|
187
|
+
new Set(props.viewModel.items[0] ? [props.viewModel.items[0].id] : []),
|
|
188
|
+
);
|
|
189
|
+
|
|
190
|
+
// Every item renders expanded in the editor canvas only, so edits don't need
|
|
191
|
+
// opening each row. A template thumbnail also sets isPreview (see
|
|
192
|
+
// TemplatePreview.mixin.ts) but renders like a real page on load (first item
|
|
193
|
+
// only) and is never clicked; context.isTemplate is the signal sibling
|
|
194
|
+
// sections already read (e.g. ButtonCarouselNavigation.vue) to suppress
|
|
195
|
+
// canvas-only behaviour in those renders, so it gates this split too.
|
|
196
|
+
const isOpen = (itemId: string): boolean =>
|
|
197
|
+
(props.context.isPreview && !props.context.isTemplate) ||
|
|
198
|
+
openItemIds.value.has(itemId);
|
|
199
|
+
|
|
200
|
+
const toggle = (itemId: string): void => {
|
|
201
|
+
const next = new Set(openItemIds.value);
|
|
202
|
+
if (next.has(itemId)) {
|
|
203
|
+
next.delete(itemId);
|
|
204
|
+
} else {
|
|
205
|
+
next.add(itemId);
|
|
206
|
+
}
|
|
207
|
+
openItemIds.value = next;
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
// A link inside a rich-text question follows the link; only the rest of the row toggles.
|
|
211
|
+
const onQuestionClick = (event: MouseEvent, itemId: string): void => {
|
|
212
|
+
if ((event.target as Element | null)?.closest?.('a')) {
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
toggle(itemId);
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
const answerId = (itemId: string): string =>
|
|
220
|
+
`faq-answer-${props.viewModel.id}-${itemId}`;
|
|
221
|
+
</script>
|
|
222
|
+
|
|
223
|
+
<style scoped>
|
|
224
|
+
/* Spacing follows the Figma redlines ("Website — Features & Widgets", FAQ): 32 heading→items,
|
|
225
|
+
16 above and below each question, dividers only between items. */
|
|
226
|
+
.c_faq {
|
|
227
|
+
margin: 0 auto;
|
|
228
|
+
max-width: var(--brandsite-max-width);
|
|
229
|
+
display: flex;
|
|
230
|
+
flex-direction: column;
|
|
231
|
+
gap: 32px;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.c_faq--centered .c_faq__items {
|
|
235
|
+
width: 100%;
|
|
236
|
+
max-width: 48rem;
|
|
237
|
+
margin: 0 auto;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.c_faq__item {
|
|
241
|
+
padding: 16px 0;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.c_faq__item + .c_faq__item {
|
|
245
|
+
/* `transparent` is a valid pick: the line disappears, with no fallback to the default. */
|
|
246
|
+
border-top: 1px solid var(--faq-divider-color, currentColor);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.c_faq__question {
|
|
250
|
+
display: flex;
|
|
251
|
+
align-items: center;
|
|
252
|
+
justify-content: space-between;
|
|
253
|
+
gap: 16px;
|
|
254
|
+
width: 100%;
|
|
255
|
+
padding: 0;
|
|
256
|
+
border: none;
|
|
257
|
+
background: none;
|
|
258
|
+
/* Buttons don't inherit font by default; the question's em sizes need the h3's. */
|
|
259
|
+
font: inherit;
|
|
260
|
+
color: inherit;
|
|
261
|
+
text-align: left;
|
|
262
|
+
cursor: pointer;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.c_faq__toggle {
|
|
266
|
+
flex: 0 0 auto;
|
|
267
|
+
/* Stays on the right when the question is empty and renders nothing. */
|
|
268
|
+
margin-left: auto;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/* A long unbroken word wraps instead of pushing the +/- out of the row. */
|
|
272
|
+
.c_faq__question > [data-component='text-wrapper'] {
|
|
273
|
+
flex: 1 1 auto;
|
|
274
|
+
min-width: 0;
|
|
275
|
+
overflow-wrap: anywhere;
|
|
276
|
+
/* The dcom maker chrome resets every <button> to capitalize (!important); this
|
|
277
|
+
question holds content text, not a UI label, so reset it back on the child
|
|
278
|
+
(HeaderNavigationType.vue uses the same technique for the same clash). */
|
|
279
|
+
text-transform: none;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.c_faq__answer {
|
|
283
|
+
margin-top: 8px;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.c_faq__grid {
|
|
287
|
+
display: grid;
|
|
288
|
+
grid-template-columns: 1fr 1fr;
|
|
289
|
+
gap: 32px;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
@container (min-width: 640px) {
|
|
293
|
+
.c_faq--split {
|
|
294
|
+
flex-direction: row;
|
|
295
|
+
align-items: flex-start;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/* 1/3 heading · 2/3 items, either side of the 32px gap. */
|
|
299
|
+
.c_faq--split .c_faq__heading {
|
|
300
|
+
flex: 1 1 0;
|
|
301
|
+
min-width: 0;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.c_faq--split .c_faq__items {
|
|
305
|
+
flex: 2 1 0;
|
|
306
|
+
min-width: 0;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
@container (max-width: 640px) {
|
|
311
|
+
.c_faq__grid {
|
|
312
|
+
grid-template-columns: 1fr;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
</style>
|
|
@@ -35,6 +35,7 @@ import ShapesSection from '../shapes-section/ShapesSection.vue';
|
|
|
35
35
|
import PageComponentMixin from './PageComponent.mixin.ts';
|
|
36
36
|
import Shop from '../shop/Shop.vue';
|
|
37
37
|
import BookingSection from '../booking-section/BookingSection.vue';
|
|
38
|
+
import FaqSection from '../faq-section/FaqSection.vue';
|
|
38
39
|
|
|
39
40
|
export default {
|
|
40
41
|
components: {
|
|
@@ -60,6 +61,7 @@ export default {
|
|
|
60
61
|
'bp-shapes-section': ShapesSection,
|
|
61
62
|
'bp-shop-section': Shop,
|
|
62
63
|
'bp-booking-section': BookingSection,
|
|
64
|
+
'bp-faq-section': FaqSection,
|
|
63
65
|
},
|
|
64
66
|
mixins: [PageComponentMixin],
|
|
65
67
|
};
|
|
@@ -126,6 +126,15 @@ export const IMAGE_RESOLUTION_PRESETS = {
|
|
|
126
126
|
export type ImagesSectionContentDisplayStyle =
|
|
127
127
|
(typeof IMAGES_SECTION_CONTENT_DISPLAY_STYLES)[number];
|
|
128
128
|
|
|
129
|
+
/** Centered and split are accordions; grid shows every answer. */
|
|
130
|
+
export const FAQ_DISPLAY_STYLES = Object.freeze({
|
|
131
|
+
centered: 'faq-centered',
|
|
132
|
+
split: 'faq-split',
|
|
133
|
+
grid: 'faq-grid',
|
|
134
|
+
} as const);
|
|
135
|
+
|
|
136
|
+
export const FAQ_MAX_ITEMS = 6;
|
|
137
|
+
|
|
129
138
|
export const HEADER_CSRF_TOKEN = 'csrf-token';
|
|
130
139
|
|
|
131
140
|
export const STYLE_THEME_KEYS = Object.freeze({
|
|
@@ -40,6 +40,8 @@ export const CONTENT_TEXT_STYLE_PROPERTY_KEYS = {
|
|
|
40
40
|
buttonTextStyle: 'buttonTextStyle',
|
|
41
41
|
copyrightStyle: 'copyrightStyle',
|
|
42
42
|
successMessageStyle: 'successMessageStyle',
|
|
43
|
+
questionStyle: 'questionStyle',
|
|
44
|
+
answerStyle: 'answerStyle',
|
|
43
45
|
} as const;
|
|
44
46
|
|
|
45
47
|
export type ContentTextStylePropertyKey =
|
|
@@ -672,6 +672,35 @@ export interface BookingSectionContent extends Content {
|
|
|
672
672
|
buttonTextStyle: TextStyleDeclaration;
|
|
673
673
|
}
|
|
674
674
|
|
|
675
|
+
export interface FaqItem {
|
|
676
|
+
/** Stable per-item identifier. See ImageItem.id. */
|
|
677
|
+
id: string;
|
|
678
|
+
question: RichTextValue;
|
|
679
|
+
answer: RichTextValue;
|
|
680
|
+
// Overrides for personalisation
|
|
681
|
+
questionOverride?: string;
|
|
682
|
+
answerOverride?: string;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
export interface FaqSectionContent extends Content {
|
|
686
|
+
type: 'faq-section';
|
|
687
|
+
title: RichTextValue;
|
|
688
|
+
description: RichTextValue;
|
|
689
|
+
displayStyle: string;
|
|
690
|
+
items: FaqItem[];
|
|
691
|
+
titleStyle: RteTextRole;
|
|
692
|
+
descriptionStyle: RteTextRole;
|
|
693
|
+
/** Shared by every question; a question's own formatting lives in its doc. */
|
|
694
|
+
questionStyle: RteTextRole;
|
|
695
|
+
/** Shared by every answer. */
|
|
696
|
+
answerStyle: RteTextRole;
|
|
697
|
+
backgroundStyle: BrandPageCssStyle;
|
|
698
|
+
/** `{ color }` for the +/- toggle. */
|
|
699
|
+
iconColor: BrandPageCssStyle;
|
|
700
|
+
/** `{ backgroundColor }`, the Divider section's shape. `'transparent'` hides the line. */
|
|
701
|
+
dividerColor: BrandPageCssStyle;
|
|
702
|
+
}
|
|
703
|
+
|
|
675
704
|
export class PageModel {
|
|
676
705
|
title: string;
|
|
677
706
|
contents: Content[];
|
|
@@ -308,6 +308,7 @@ exports[`migration.util > Banner Contents - text Align and Font Family should no
|
|
|
308
308
|
"buttonText": "Get Started",
|
|
309
309
|
"buttonTextStyle": {
|
|
310
310
|
"applyAutoScale": true,
|
|
311
|
+
"color": "var(--palette-1)",
|
|
311
312
|
"lineHeight": "1.5",
|
|
312
313
|
"overflowWrap": "anywhere",
|
|
313
314
|
"textAlign": "center",
|
|
@@ -1244,6 +1244,87 @@ describe('applyTextContrast — standalone button labels (BP-5969)', () => {
|
|
|
1244
1244
|
});
|
|
1245
1245
|
});
|
|
1246
1246
|
|
|
1247
|
+
describe('applyTextContrast — FAQ shared question and answer styles', () => {
|
|
1248
|
+
test('a new FAQ bakes a contrast colour into the shared question and answer styles', () => {
|
|
1249
|
+
const styles = new PageStyles();
|
|
1250
|
+
|
|
1251
|
+
styles.colors = [
|
|
1252
|
+
{ id: 'palette-0', value: '#000000', type: 'palette' }, // dark brand
|
|
1253
|
+
{ id: 'palette-1', value: '#ffffff', type: 'palette' }, // light brand
|
|
1254
|
+
];
|
|
1255
|
+
|
|
1256
|
+
const content = {
|
|
1257
|
+
id: 'faq',
|
|
1258
|
+
type: 'faq-section',
|
|
1259
|
+
backgroundStyle: { backgroundColor: 'var(--palette-0)' }, // dark band
|
|
1260
|
+
questionStyle: { textStyleType: 'heading5' },
|
|
1261
|
+
answerStyle: { textStyleType: 'paragraph2' },
|
|
1262
|
+
items: [{ id: 'a', question: 'Q1', answer: 'A1' }],
|
|
1263
|
+
} as unknown as Content & {
|
|
1264
|
+
questionStyle: { color?: string };
|
|
1265
|
+
answerStyle: { color?: string };
|
|
1266
|
+
};
|
|
1267
|
+
|
|
1268
|
+
applyTextContrast(content, styles);
|
|
1269
|
+
|
|
1270
|
+
expect(content.questionStyle.color).toBe('var(--palette-1)'); // light on dark
|
|
1271
|
+
expect(content.answerStyle.color).toBe('var(--palette-1)');
|
|
1272
|
+
});
|
|
1273
|
+
});
|
|
1274
|
+
|
|
1275
|
+
describe('applyTextContrast — FAQ icon and divider', () => {
|
|
1276
|
+
const styles = (): PageStyles => {
|
|
1277
|
+
const pageStyles = new PageStyles();
|
|
1278
|
+
|
|
1279
|
+
pageStyles.colors = [
|
|
1280
|
+
{ id: 'palette-0', value: '#000000', type: 'palette' },
|
|
1281
|
+
{ id: 'palette-1', value: '#ffffff', type: 'palette' },
|
|
1282
|
+
];
|
|
1283
|
+
|
|
1284
|
+
return pageStyles;
|
|
1285
|
+
};
|
|
1286
|
+
|
|
1287
|
+
const faq = (iconColor: BrandPageCssStyle, dividerColor: BrandPageCssStyle) =>
|
|
1288
|
+
({
|
|
1289
|
+
id: 'f',
|
|
1290
|
+
type: 'faq-section',
|
|
1291
|
+
titleStyle: { textStyleType: 'heading4' },
|
|
1292
|
+
items: [],
|
|
1293
|
+
iconColor,
|
|
1294
|
+
dividerColor,
|
|
1295
|
+
backgroundStyle: {},
|
|
1296
|
+
}) as unknown as Content & {
|
|
1297
|
+
iconColor: BrandPageCssStyle;
|
|
1298
|
+
dividerColor: BrandPageCssStyle;
|
|
1299
|
+
};
|
|
1300
|
+
|
|
1301
|
+
test('a new FAQ stores its title colour on the icon and divider', () => {
|
|
1302
|
+
const content = faq({}, {});
|
|
1303
|
+
|
|
1304
|
+
applyTextContrast(content, styles());
|
|
1305
|
+
|
|
1306
|
+
const titleColour = (
|
|
1307
|
+
content as unknown as { titleStyle: { color?: string } }
|
|
1308
|
+
).titleStyle.color;
|
|
1309
|
+
|
|
1310
|
+
expect(titleColour).toMatch(/^var\(--palette-/);
|
|
1311
|
+
expect(content.iconColor.color).toBe(titleColour);
|
|
1312
|
+
expect(content.dividerColor.backgroundColor).toBe(titleColour);
|
|
1313
|
+
});
|
|
1314
|
+
|
|
1315
|
+
test('an explicit or transparent colour is left alone', () => {
|
|
1316
|
+
const content = faq(
|
|
1317
|
+
{ color: '#abcdef' },
|
|
1318
|
+
{ backgroundColor: 'transparent' },
|
|
1319
|
+
);
|
|
1320
|
+
|
|
1321
|
+
applyTextContrast(content, styles());
|
|
1322
|
+
|
|
1323
|
+
expect(content.iconColor.color).toBe('#abcdef');
|
|
1324
|
+
expect(content.dividerColor.backgroundColor).toBe('transparent');
|
|
1325
|
+
});
|
|
1326
|
+
});
|
|
1327
|
+
|
|
1247
1328
|
describe('applyTextContrast — social-links icon fill', () => {
|
|
1248
1329
|
const styles = (): PageStyles => {
|
|
1249
1330
|
const pageStyles = new PageStyles();
|
|
@@ -17,6 +17,7 @@ import type {
|
|
|
17
17
|
PageStyles,
|
|
18
18
|
BrandPageType,
|
|
19
19
|
ColorItem,
|
|
20
|
+
FaqSectionContent,
|
|
20
21
|
ShopContent,
|
|
21
22
|
SocialLinksContent,
|
|
22
23
|
TextStyleDeclaration,
|
|
@@ -753,6 +754,21 @@ export const applyTextContrast = (
|
|
|
753
754
|
}
|
|
754
755
|
}
|
|
755
756
|
|
|
757
|
+
// Same for the FAQ's +/− icons and divider: with no base coat to inherit, a new section
|
|
758
|
+
// stores its title's contrast colour, so both start linked to the palette.
|
|
759
|
+
if (content.type === 'faq-section') {
|
|
760
|
+
const faq = content as FaqSectionContent;
|
|
761
|
+
const fill = titleSurfaceContrastFill(content, styles, brandPageType);
|
|
762
|
+
|
|
763
|
+
if (fill && isBlankColorValue(faq.iconColor?.color)) {
|
|
764
|
+
faq.iconColor = { ...faq.iconColor, color: fill };
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
if (fill && isBlankColorValue(faq.dividerColor?.backgroundColor)) {
|
|
768
|
+
faq.dividerColor = { ...faq.dividerColor, backgroundColor: fill };
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
|
|
756
772
|
return content;
|
|
757
773
|
};
|
|
758
774
|
|
|
@@ -17,6 +17,7 @@ import type {
|
|
|
17
17
|
ButtonContent,
|
|
18
18
|
PageModel,
|
|
19
19
|
BookingSectionContent,
|
|
20
|
+
FaqSectionContent,
|
|
20
21
|
} from '../models';
|
|
21
22
|
|
|
22
23
|
export type ContentCallback = {
|
|
@@ -39,6 +40,7 @@ export type ContentCallback = {
|
|
|
39
40
|
shopSectionContentCallback: (content: ShopContent) => void;
|
|
40
41
|
buttonContentCallback: (content: ButtonContent) => void;
|
|
41
42
|
bookingSectionContentCallback: (content: BookingSectionContent) => void;
|
|
43
|
+
faqSectionContentCallback: (content: FaqSectionContent) => void;
|
|
42
44
|
};
|
|
43
45
|
|
|
44
46
|
export const forEachPageCallContentCallback = (
|
|
@@ -101,6 +103,9 @@ export const forEachPageCallContentCallback = (
|
|
|
101
103
|
content as BookingSectionContent,
|
|
102
104
|
);
|
|
103
105
|
break;
|
|
106
|
+
case 'faq-section':
|
|
107
|
+
callbacks.faqSectionContentCallback(content as FaqSectionContent);
|
|
108
|
+
break;
|
|
104
109
|
case 'general-link':
|
|
105
110
|
case 'website':
|
|
106
111
|
case 'email':
|
|
@@ -890,7 +890,8 @@
|
|
|
890
890
|
"textStyleType": "button",
|
|
891
891
|
"lineHeight": "1.5",
|
|
892
892
|
"applyAutoScale": true,
|
|
893
|
-
"letterSpacing": "0"
|
|
893
|
+
"letterSpacing": "0",
|
|
894
|
+
"color": "var(--palette-1)"
|
|
894
895
|
},
|
|
895
896
|
"descriptionStyle": {
|
|
896
897
|
"textAlign": "center",
|
|
@@ -1071,7 +1072,8 @@
|
|
|
1071
1072
|
"textStyleType": "button",
|
|
1072
1073
|
"lineHeight": "1.5",
|
|
1073
1074
|
"applyAutoScale": true,
|
|
1074
|
-
"letterSpacing": "0"
|
|
1075
|
+
"letterSpacing": "0",
|
|
1076
|
+
"color": "var(--palette-1)"
|
|
1075
1077
|
},
|
|
1076
1078
|
"descriptionStyle": {
|
|
1077
1079
|
"textAlign": "left",
|
|
@@ -1141,7 +1143,8 @@
|
|
|
1141
1143
|
"textStyleType": "button",
|
|
1142
1144
|
"lineHeight": "1.5",
|
|
1143
1145
|
"applyAutoScale": true,
|
|
1144
|
-
"letterSpacing": "0"
|
|
1146
|
+
"letterSpacing": "0",
|
|
1147
|
+
"color": "var(--palette-1)"
|
|
1145
1148
|
},
|
|
1146
1149
|
"backgroundStyle": {
|
|
1147
1150
|
"backgroundColor": "var(--palette-0)"
|