@designcrowd/library.brand-page 6.2.16 → 6.2.17-header-logo-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/src/{CreatedOnBrandCrowd-de-de-B_-PPZBi.js → CreatedOnBrandCrowd-de-de-mBnhRDDT.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-BO1Kj3iA.js → CreatedOnBrandCrowd-en-us-B5G4jAq0.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-BoDJWRn2.js → CreatedOnBrandCrowd-es-es-lY-bpYf9.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-DUJZmdAy.js → CreatedOnBrandCrowd-fr-ca-BI42Y9Ma.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-DUJZmdAy.js → CreatedOnBrandCrowd-fr-fr-BI42Y9Ma.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-pIlAG13E.js → CreatedOnBrandCrowd-pt-br-DMVo-znd.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-pIlAG13E.js → CreatedOnBrandCrowd-pt-pt-DMVo-znd.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-BNJtDtvi.js → CreatedOnDcom-de-de-DFqX__oC.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-uL6WU_1S.js → CreatedOnDcom-en-us-r5Q6gn-F.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-DGZQISoF.js → CreatedOnDcom-es-es-DQxdtDnN.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-CvYWKqNh.js → CreatedOnDcom-fr-ca-Cn4oM5Ez.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-CpohVgCR.js → CreatedOnDcom-fr-fr-BHMJkd5G.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-CaKS-48n.js → CreatedOnDcom-pt-br-Bv10ZJkf.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-D4g-iecQ.js → CreatedOnDcom-pt-pt-DYNSS7Sw.js} +1 -1
- package/lib/src/about-CnI37uir.js +13 -0
- package/lib/src/add-page-DZqEIZ92.js +13 -0
- package/lib/src/ai-Dns_W9Yl.js +13 -0
- package/lib/src/align-center-C8q0p_UL.js +14 -0
- package/lib/src/align-justify-YW2zg_2Y.js +14 -0
- package/lib/src/align-left-BguHad0Z.js +14 -0
- package/lib/src/align-right-CFj2kC1H.js +14 -0
- package/lib/src/animate-fgHgaIDQ.js +14 -0
- package/lib/src/annotate-heart-GSDjTZnx.js +14 -0
- package/lib/src/arrow-down-5rpHAcDi.js +13 -0
- package/lib/src/arrow-left-Br85wi65.js +14 -0
- package/lib/src/arrow-right-hjoz-eJq.js +14 -0
- package/lib/src/arrow-top-right-DXcJkzfH.js +13 -0
- package/lib/src/arrow-up-B3d3lRC8.js +14 -0
- package/lib/src/arrow-up-underline-xGZLTmZB.js +14 -0
- package/lib/src/attach-BrJXX9gd.js +13 -0
- package/lib/src/auth-facebook-CrlpBUXn.js +16 -0
- package/lib/src/auth-facebook-white-D2eQHsVC.js +24 -0
- package/lib/src/auth-google-xagNyHUi.js +16 -0
- package/lib/src/award-DCPQbK9Y.js +14 -0
- package/lib/src/background-BJ2BpD_C.js +14 -0
- package/lib/src/badge-u-tAqeFJ.js +15 -0
- package/lib/src/ban-BlvjZvlc.js +10 -0
- package/lib/src/banner-centered-0oVEiMkv.js +28 -0
- package/lib/src/banner-left-d3UFgw86.js +28 -0
- package/lib/src/banner-q9q8zRad.js +14 -0
- package/lib/src/bar-DyldgIxC.js +31 -0
- package/lib/src/bc-mast-BC6Ft93u.js +14 -0
- package/lib/src/bezier-curve-Bu9TMDs-.js +14 -0
- package/lib/src/bezier-curve-outline-Dd_YnimO.js +14 -0
- package/lib/src/bold-Bsa366H0.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/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/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-DWCD6pl-.js +14 -0
- package/lib/src/browser-CNvqg9Kx.js +14 -0
- package/lib/src/brush-DA2t0g6e.js +13 -0
- package/lib/src/building-BRO0N47t.js +10 -0
- package/lib/src/bulb-D30qpqcp.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-CkH9A-wX.js +13 -0
- package/lib/src/business-card-filled-DZQTpyPW.js +10 -0
- package/lib/src/button-arrow-BJ_qLnj6.js +19 -0
- package/lib/src/button-arrow-left-BHGR969U.js +19 -0
- package/lib/src/button-arrow-right-DILRPO8A.js +19 -0
- package/lib/src/button-brushstroke-hTDM9O94.js +21 -0
- package/lib/src/button-brushstroke-left-B6nKq2IC.js +14 -0
- package/lib/src/button-brushstroke-right-KaJVSc96.js +14 -0
- package/lib/src/button-dashed-oval-CGfIefIv.js +25 -0
- package/lib/src/button-dashed-rectangle-qA-4J2dc.js +24 -0
- package/lib/src/button-dashed-rounded-8zbmM63r.js +25 -0
- package/lib/src/button-doubleline-oval-DIe0t-WR.js +23 -0
- package/lib/src/button-doubleline-rectangle-vzBwnBQX.js +29 -0
- package/lib/src/button-doubleline-rounded-BIlEcbW4.js +23 -0
- package/lib/src/button-fi42to0Q.js +15 -0
- package/lib/src/button-justified-rhTu-8br.js +33 -0
- package/lib/src/button-paper-BUCQjsgW.js +16 -0
- package/lib/src/button-paper-bottom-Cld4xVl7.js +12 -0
- package/lib/src/button-paper-top-BQPrE3n5.js +12 -0
- package/lib/src/button-softshadow-oval-B4oALkUA.js +16 -0
- package/lib/src/button-softshadow-rectangle-BJgqwLFj.js +16 -0
- package/lib/src/button-softshadow-rounded-B68qal6q.js +16 -0
- package/lib/src/calculator-BI2uBJyQ.js +10 -0
- package/lib/src/calendar-AM3XaEXf.js +10 -0
- package/lib/src/callout-error-BPQ8t825.js +13 -0
- package/lib/src/callout-info-B5h6Q8_3.js +13 -0
- package/lib/src/callout-success-Cjit0tKH.js +13 -0
- package/lib/src/callout-warning-CJ7narSy.js +13 -0
- package/lib/src/cap-B52seKty.js +27 -0
- package/lib/src/card-D8jURN1j.js +19 -0
- package/lib/src/card-vertical-NG94U01Q.js +14 -0
- package/lib/src/cart-empty-bWNAg1CI.js +16 -0
- package/lib/src/chart-CR8rzy-z.js +12 -0
- package/lib/src/chart-bar-B-bzTwmn.js +16 -0
- package/lib/src/chart-column-qcK4xgPY.js +16 -0
- package/lib/src/chart-line-CiawAlyw.js +14 -0
- package/lib/src/chart-pie-D5sho8Lh.js +14 -0
- package/lib/src/check-BoUKe8Nd.js +13 -0
- package/lib/src/check-circle-light-C1sJemq2.js +14 -0
- package/lib/src/check-rounded-COQkWiNr.js +14 -0
- package/lib/src/check-thin-CRTPGQlt.js +14 -0
- package/lib/src/chevron-down-DC3fDa4H.js +14 -0
- package/lib/src/chevron-left-f1U0paMV.js +14 -0
- package/lib/src/chevron-right-DUklJm44.js +13 -0
- package/lib/src/chevron-right-wide-Dkl58AKv.js +10 -0
- package/lib/src/chevron-up-Dnq2_9gl.js +14 -0
- package/lib/src/clipboard-check-ZAGuzfFh.js +14 -0
- package/lib/src/clock-Bq0QC70L.js +10 -0
- package/lib/src/close-Ca7hFdTE.js +13 -0
- package/lib/src/coins-sparkle-Df6v6y5Y.js +21 -0
- package/lib/src/column-1-D1JJ6E1G.js +23 -0
- package/lib/src/column-2-C6-LowDg.js +29 -0
- package/lib/src/column-3-v9pOMIEU.js +35 -0
- package/lib/src/column-4-8NJDpLt9.js +41 -0
- package/lib/src/community-CEKKhXZh.js +10 -0
- package/lib/src/contact-message-D4bE1gVF.js +13 -0
- package/lib/src/content-CdplIZ1H.js +14 -0
- package/lib/src/copy-Dxz4YY2s.js +13 -0
- package/lib/src/crop-DlK9cZrn.js +13 -0
- package/lib/src/crown-DE7faDOy.js +13 -0
- package/lib/src/crown-alt-B6XeXAnE.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-Ca5RqK9Q.js +10 -0
- package/lib/src/delete-C9NrBiRG.js +13 -0
- package/lib/src/designs-B6Bh2RpR.js +13 -0
- package/lib/src/desktop-CHHMtnvY.js +14 -0
- package/lib/src/desktop-hamburger-display-style-1-BmNvEx7f.js +31 -0
- package/lib/src/desktop-hamburger-display-style-2-HwKC3T1-.js +31 -0
- package/lib/src/desktop-hamburger-display-style-with-button-1-B7MAosA2.js +16 -0
- package/lib/src/desktop-hamburger-display-style-with-button-2-C12XZ7Fu.js +16 -0
- package/lib/src/desktop-tab-display-style-1-B_hlYXm6.js +31 -0
- package/lib/src/desktop-tab-display-style-2-ChDda6S4.js +31 -0
- package/lib/src/desktop-tab-display-style-3-u60OeCRQ.js +27 -0
- package/lib/src/desktop-tab-display-style-4-Bz4-CXm2.js +27 -0
- package/lib/src/desktop-tab-display-style-5-B0KLuZOi.js +31 -0
- package/lib/src/desktop-tab-display-style-6-Cg_kS-1c.js +31 -0
- package/lib/src/desktop-tab-display-style-7-D9ka6kTG.js +35 -0
- package/lib/src/desktop-tab-display-style-8-Dwpw4vpU.js +31 -0
- package/lib/src/desktop-tab-display-style-with-button-1-D49ggWOe.js +35 -0
- package/lib/src/desktop-tab-display-style-with-button-2-DRolvRRN.js +35 -0
- package/lib/src/desktop-tab-display-style-with-button-3-BMsP0TCG.js +35 -0
- package/lib/src/desktop-tab-display-style-with-button-4-BvEiHQoJ.js +31 -0
- package/lib/src/desktop-tab-display-style-with-button-5-C4pkR3HA.js +16 -0
- package/lib/src/desktop-tab-display-style-with-button-6-CBpwzTw0.js +16 -0
- package/lib/src/diamond-SXVjl4S0.js +14 -0
- package/lib/src/digital-business-card-filled-CBaI7EoL.js +33 -0
- package/lib/src/display-style-1-Cy58_xSc.js +39 -0
- package/lib/src/display-style-1-S76foJNv.js +31 -0
- package/lib/src/display-style-1-h_dFTtxI.js +16 -0
- package/lib/src/display-style-2-BRmlzz5s.js +16 -0
- package/lib/src/display-style-2-CKWpa-Dt.js +31 -0
- package/lib/src/display-style-2-DeGzooDt.js +27 -0
- package/lib/src/display-style-3-msgPBp4B.js +31 -0
- package/lib/src/display-style-4-yIhlKV5Z.js +31 -0
- package/lib/src/display-style-about-1-CHpJ5qpI.js +31 -0
- package/lib/src/display-style-about-2-CMtfl0ol.js +31 -0
- package/lib/src/display-style-about-3-kBwuQNql.js +31 -0
- package/lib/src/display-style-about-4-GcOPZOtv.js +16 -0
- package/lib/src/display-style-about-5-DSpvTp2Q.js +15 -0
- package/lib/src/display-style-about-6-kP_au_kx.js +15 -0
- package/lib/src/display-style-banner-1-DPzGEUpm.js +31 -0
- package/lib/src/display-style-banner-10-C6NcDH47.js +31 -0
- package/lib/src/display-style-banner-11-Bub_JNGG.js +31 -0
- package/lib/src/display-style-banner-12-DbbwXA8b.js +31 -0
- package/lib/src/display-style-banner-13-BlwxH9BR.js +32 -0
- package/lib/src/display-style-banner-14-brWMH6d6.js +33 -0
- package/lib/src/display-style-banner-15--zR6siv-.js +33 -0
- package/lib/src/display-style-banner-2-zrjDU9b9.js +31 -0
- package/lib/src/display-style-banner-3-CHh7gKhT.js +31 -0
- package/lib/src/display-style-banner-4-zivr-xd4.js +31 -0
- package/lib/src/display-style-banner-5-DD1GFPlm.js +31 -0
- package/lib/src/display-style-banner-6-BbeRW0Ps.js +16 -0
- package/lib/src/display-style-banner-7-OAfk00GO.js +16 -0
- package/lib/src/display-style-banner-8-BAwIbke-.js +31 -0
- package/lib/src/display-style-banner-9-8Jj2JpbS.js +31 -0
- package/lib/src/display-style-contact-1-B3cGIzKo.js +16 -0
- package/lib/src/display-style-contact-2-D75wCQtZ.js +16 -0
- package/lib/src/display-style-contact-4-DsCtgjPN.js +16 -0
- package/lib/src/display-style-contact-5-CRKOvT9F.js +16 -0
- package/lib/src/display-style-contact-6-BYasGUeL.js +16 -0
- package/lib/src/display-style-faq-1-Cw8I6iVf.js +16 -0
- package/lib/src/display-style-faq-2-DR_YSONz.js +16 -0
- package/lib/src/display-style-faq-3-s6tdZ9BV.js +16 -0
- package/lib/src/display-style-images-1-zi9VlSTl.js +16 -0
- package/lib/src/display-style-images-2-8JUqIipU.js +16 -0
- package/lib/src/display-style-images-3-Dw2t-G4s.js +16 -0
- package/lib/src/display-style-images-4-L1Y9NPID.js +27 -0
- package/lib/src/display-style-images-5-BWBcsp1s.js +16 -0
- package/lib/src/display-style-images-6-BysJhQVW.js +16 -0
- package/lib/src/divider-DUqeexLY.js +14 -0
- package/lib/src/divider-thick-DOpnsgpC.js +23 -0
- package/lib/src/divider-thin-0jk0MJ9W.js +23 -0
- package/lib/src/donate-D9ykv0zR.js +13 -0
- package/lib/src/download-g0I3gsrl.js +14 -0
- package/lib/src/duplicate-Cu3SuEYo.js +13 -0
- package/lib/src/edit-4q5f2nYo.js +13 -0
- package/lib/src/edit-line-pJ3kAwQt.js +16 -0
- package/lib/src/ellipsis-C9MDg_6Q.js +13 -0
- package/lib/src/email-BO1uNcOp.js +10 -0
- package/lib/src/email-symbol-CQrZdzKo.js +10 -0
- package/lib/src/envelope-email-Cj9pNGlg.js +16 -0
- package/lib/src/eraser-9w1-rJ4P.js +10 -0
- package/lib/src/error-BBiB5Tlc.js +13 -0
- package/lib/src/etsy-Jo67P3Gl.js +10 -0
- package/lib/src/external-link-CKFq3VRK.js +10 -0
- package/lib/src/eye-crossed-6zqb50Gv.js +14 -0
- package/lib/src/eye-open-19ZZxXd3.js +24 -0
- package/lib/src/facebook-uRyq0o0i.js +10 -0
- package/lib/src/favicon-C4D7FdoA.js +14 -0
- package/lib/src/fees-C7kQOtOf.js +13 -0
- package/lib/src/file-box-DL8WZYoR.js +13 -0
- package/lib/src/file-empty-D3sH29HM.js +14 -0
- package/lib/src/file-zDnCpksX.js +14 -0
- package/lib/src/filter-C52Ks-M6.js +14 -0
- package/lib/src/filter-CQovjzx2.js +13 -0
- package/lib/src/filters-DcTKclYY.js +13 -0
- package/lib/src/flag-Dnjqvqq8.js +16 -0
- package/lib/src/flip-horizontal-BIZr1vpq.js +14 -0
- package/lib/src/flip-vertical-DEb0itBF.js +14 -0
- package/lib/src/flyer-Bys-HIC3.js +14 -0
- package/lib/src/folder-CL5KVqdq.js +13 -0
- package/lib/src/font-sYr58s_H.js +14 -0
- package/lib/src/footer-centered-BqMBNIGz.js +35 -0
- package/lib/src/footer-left-Ccp2ULen.js +35 -0
- package/lib/src/form-D7N4tMOT.js +10 -0
- package/lib/src/form-message-DbO0C-gP.js +13 -0
- package/lib/src/fullscreen-BmIyHNIW.js +10 -0
- package/lib/src/fullscreen-exit-1gcHbNB4.js +10 -0
- package/lib/src/gift-certificate-pzLDGZhy.js +10 -0
- package/lib/src/globe-BDXo0cOb.js +13 -0
- package/lib/src/globe-BL8reMFV.js +10 -0
- package/lib/src/globe-C20Cq6jl.js +13 -0
- package/lib/src/group-B-0N6UzE.js +13 -0
- package/lib/src/hamburger-1-CKItj3vm.js +17 -0
- package/lib/src/hamburger-2-Dpur2d56.js +19 -0
- package/lib/src/hamburger-3-BI2RkTRX.js +19 -0
- package/lib/src/hamburger-4-B1Jz6kZC.js +15 -0
- package/lib/src/hamburger-BUFlrUAV.js +31 -0
- package/lib/src/hamburger-DIu8wreU.js +19 -0
- package/lib/src/hamburger-display-style-no-logo-1-LGyAZh2r.js +27 -0
- package/lib/src/hamburger-display-style-no-logo-2-CFW3b5ep.js +27 -0
- package/lib/src/hamburger-display-style-no-logo-3-D8BdxhKz.js +27 -0
- package/lib/src/headphones-DdDMjtWq.js +14 -0
- package/lib/src/heart-DhiUsjT5.js +14 -0
- package/lib/src/history-Ds5StoNa.js +41 -0
- package/lib/src/home-D5CM-18a.js +13 -0
- package/lib/src/home-DnJDV34r.js +14 -0
- package/lib/src/home-outline-DHwkwQ8H.js +13 -0
- package/lib/src/icon-style-circle-bg-eueVCqP6.js +29 -0
- package/lib/src/icon-style-no-bg-Bm0n136m.js +23 -0
- package/lib/src/icon-style-square-bg-PjimqOKL.js +29 -0
- package/lib/src/image-B6CdzFNb.js +14 -0
- package/lib/src/image-aTbRfIye.js +14 -0
- package/lib/src/image-gallery-carousel-CeDdnPD1.js +22 -0
- package/lib/src/image-gallery-grid-C1GMg9Gl.js +32 -0
- package/lib/src/image-gallery-masonry-BxhDtpzE.js +26 -0
- package/lib/src/images-CCpkSySQ.js +14 -0
- package/lib/src/images-gallery-BvYPXZPT.js +10 -0
- package/lib/src/index.mjs +164 -163
- package/lib/src/info-ChfLUrQt.js +21 -0
- package/lib/src/infographics-Dewgf4iV.js +10 -0
- package/lib/src/instagram-wsTJWPeU.js +14 -0
- package/lib/src/invitation-CaYB86pH.js +10 -0
- package/lib/src/invoice-vtBL5SP2.js +10 -0
- package/lib/src/italic-BdUC-A7M.js +14 -0
- package/lib/src/jobs-B370Mmg9.js +13 -0
- package/lib/src/layer-Ds-Buemp.js +13 -0
- package/lib/src/layer-bring-front-DnB9LWFk.js +13 -0
- package/lib/src/layer-send-back-CGrxFmn6.js +13 -0
- package/lib/src/layout-BHK1BaA9.js +10 -0
- package/lib/src/layout-icon-bottom-normal-text-center-normal-B9FqgR-v.js +35 -0
- package/lib/src/layout-icon-bottom-normal-text-center-small-D3w4JbDB.js +35 -0
- package/lib/src/layout-icon-bottom-small-text-center-normal-D6MWRGOG.js +35 -0
- package/lib/src/layout-icon-center-normal-curved-text-bottom-DV1RSxdT.js +33 -0
- package/lib/src/layout-icon-center-normal-curved-text-circle-prEv3x-E.js +26 -0
- package/lib/src/layout-icon-center-normal-curved-text-top-C5o-VQll.js +33 -0
- package/lib/src/layout-icon-left-normal-text-center-normal-B7F9B7wu.js +35 -0
- package/lib/src/layout-icon-left-normal-text-justify-normal-CWSe9jHg.js +35 -0
- package/lib/src/layout-icon-left-normal-text-left-normal-HcOn2p71.js +35 -0
- package/lib/src/layout-icon-left-small-text-left-normal-_xbmTGfP.js +35 -0
- package/lib/src/layout-icon-right-normal-text-center-normal-Cei718Uj.js +35 -0
- package/lib/src/layout-icon-right-normal-text-justify-normal-DrXgBU_t.js +35 -0
- package/lib/src/layout-icon-right-normal-text-right-normal-CJds9J9_.js +35 -0
- package/lib/src/layout-icon-right-small-text-right-normal-B0-ivJke.js +35 -0
- package/lib/src/layout-icon-top-normal-text-center-normal-Dmq-Y0u7.js +35 -0
- package/lib/src/layout-icon-top-normal-text-center-small-BtBe5fGK.js +35 -0
- package/lib/src/layout-icon-top-normal-text-justify-normal-DYoDdVC-.js +35 -0
- package/lib/src/layout-icon-top-small-text-center-normal-CTXOiabZ.js +35 -0
- package/lib/src/letterhead-filled-DBu50uYq.js +10 -0
- package/lib/src/{lib-DwDFHSzX.js → lib-vHQ3PSie.js} +34702 -39973
- package/lib/src/lightning-5ADYjnFL.js +14 -0
- package/lib/src/link-C3HnGy4o.js +13 -0
- package/lib/src/link-C_Lh5Jan.js +14 -0
- package/lib/src/link-in-bio-filled-B8RuhBme.js +33 -0
- package/lib/src/linkedin-Dlg5fAaU.js +14 -0
- package/lib/src/list-bullet-DmBZCkM7.js +18 -0
- package/lib/src/list-numbered-BGrezA_n.js +26 -0
- package/lib/src/location-yh3Xfuga.js +13 -0
- package/lib/src/lock-Cu_dcYhc.js +13 -0
- package/lib/src/log-out-C5hfDL2n.js +14 -0
- package/lib/src/logo-CL5m5BWX.js +10 -0
- package/lib/src/logo-EKc7Pjwr.js +14 -0
- package/lib/src/mac-command-CpxA6pTu.js +15 -0
- package/lib/src/map-Dui__0Ec.js +13 -0
- package/lib/src/media-BBoSZjaF.js +10 -0
- package/lib/src/menu-CbxHZmO4.js +10 -0
- package/lib/src/message-DPMrMEK5.js +13 -0
- package/lib/src/metadata-builder/parsers/section-tool-arguments.d.ts +1 -1
- package/lib/src/microphone-Ulm-DZ9e.js +10 -0
- package/lib/src/microphone-bold---tnFcZw.js +14 -0
- package/lib/src/minus-RKoA-v7m.js +13 -0
- package/lib/src/minus-circle-light-DVmQ8wb4.js +14 -0
- package/lib/src/mobile-Cuh5LHRF.js +10 -0
- package/lib/src/mobile-hamburger-display-style-1-BOllFoYV.js +31 -0
- package/lib/src/mobile-hamburger-display-style-2-Bl_kYi2k.js +31 -0
- package/lib/src/mobile-hamburger-display-style-3-CofdK6hQ.js +31 -0
- package/lib/src/mobile-hamburger-display-style-4-BynvHkLX.js +31 -0
- package/lib/src/mobile-tab-display-style-1-BQhQczsO.js +31 -0
- package/lib/src/mobile-tab-display-style-2-CpvC1Kdh.js +31 -0
- package/lib/src/mobile-tab-display-style-with-button-1-jtm_oP8o.js +16 -0
- package/lib/src/mobile-tab-display-style-with-button-2-jkXhV45J.js +16 -0
- package/lib/src/mug-CZlWo8xS.js +35 -0
- package/lib/src/opacity-CtF3qrBX.js +13 -0
- package/lib/src/other-Rc3vvDCz.js +29 -0
- package/lib/src/page-blank-R4s0mnRQ.js +13 -0
- package/lib/src/page-buttons-CmXeHP0R.js +18 -0
- package/lib/src/page-hamburger-B7Lk-3ZF.js +37 -0
- package/lib/src/page-tabs-MjO1JBWs.js +39 -0
- package/lib/src/pages-CJlytYHc.js +13 -0
- package/lib/src/paint-brush-FcK9fjBb.js +10 -0
- package/lib/src/palette-4SUWhjbq.js +14 -0
- package/lib/src/palette-outline-C7r-M93I.js +14 -0
- package/lib/src/pause-91-IaU2Y.js +10 -0
- package/lib/src/pause-Ctxbpymr.js +10 -0
- package/lib/src/payment-BkD8iKZW.js +21 -0
- package/lib/src/payments-featured-Bbh08Qjq.js +27 -0
- package/lib/src/payments-textonly-BTmHmYL0.js +40 -0
- package/lib/src/payments-thumbnail-BPTVIUV-.js +29 -0
- package/lib/src/pen-BwBOCbPm.js +14 -0
- package/lib/src/pen-outline-CvdifQK5.js +14 -0
- package/lib/src/pen-sparkle-Box2OjVT.js +26 -0
- package/lib/src/pen-tool-CdofztVF.js +14 -0
- package/lib/src/phone-Bzf9u7XL.js +13 -0
- package/lib/src/phone-CcHHxJyq.js +10 -0
- package/lib/src/pinterest-LH9q082w.js +10 -0
- package/lib/src/play-fq91XbWs.js +10 -0
- package/lib/src/plus-C3-SVt99.js +10 -0
- package/lib/src/plus-circle-haGZutJ1.js +14 -0
- package/lib/src/plus-circle-light-DXgDGKPn.js +15 -0
- package/lib/src/plus-light-BxlUuR3I.js +14 -0
- package/lib/src/poll-b7sgInUR.js +10 -0
- package/lib/src/portfolio-BY_vB67Z.js +13 -0
- package/lib/src/postcard-DMhujcts.js +10 -0
- package/lib/src/poster-D5jYbk1G.js +14 -0
- package/lib/src/premium-content-CTnweAK0.js +21 -0
- package/lib/src/preview-BHD4xFsj.js +13 -0
- package/lib/src/printing-CfJbnRgn.js +13 -0
- package/lib/src/processing-DqEt82cw.js +10 -0
- package/lib/src/profile-CgLR9SYs.js +10 -0
- package/lib/src/qrcode-BRFeSDHI.js +10 -0
- package/lib/src/question-DVh4waO2.js +21 -0
- package/lib/src/question-alt-hJ1o_Q_V.js +29 -0
- package/lib/src/question-circle-filled-CFs8UyHM.js +14 -0
- package/lib/src/quote-de6tAUMn.js +12 -0
- package/lib/src/ratio-1-1-zHjUStOP.js +15 -0
- package/lib/src/ratio-16-9-BFb8CamZ.js +15 -0
- package/lib/src/ratio-2-3-C1bykLds.js +15 -0
- package/lib/src/ratio-3-2-DTvfuwth.js +15 -0
- package/lib/src/ratio-3-4-0hG9lP6D.js +15 -0
- package/lib/src/ratio-4-3-hAz54s--.js +15 -0
- package/lib/src/ratio-9-16-BbUCV5m5.js +15 -0
- package/lib/src/ratio-circle-D6demlJH.js +15 -0
- package/lib/src/ratio-original-BvkJVUky.js +23 -0
- package/lib/src/redo--Ifx7f2f.js +13 -0
- package/lib/src/refresh-DjHReUDY.js +13 -0
- package/lib/src/reload-DT8EwyWF.js +13 -0
- package/lib/src/reorderable-DYPqA4mP.js +10 -0
- package/lib/src/request-payment-1uQZiFVG.js +13 -0
- package/lib/src/reset-BJ4wGF4t.js +13 -0
- package/lib/src/resize-Bkz3CVYj.js +25 -0
- package/lib/src/roller-brush-BKDdH5q1.js +10 -0
- package/lib/src/save-CyvtIUOH.js +13 -0
- package/lib/src/search-Bn0oVn01.js +14 -0
- package/lib/src/secure-BUbQFh_w.js +14 -0
- package/lib/src/select-all-Bm7KzAg1.js +24 -0
- package/lib/src/send-DxZKgW4U.js +23 -0
- package/lib/src/services-BlIg0gbZ.js +12 -0
- package/lib/src/settings-Bxc3dhgh.js +15 -0
- package/lib/src/shape-BUIXdfkB.js +10 -0
- package/lib/src/share-Ck2PdAbb.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 +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-BqesXT6U.js +13 -0
- package/lib/src/shop-rT0JkEba.js +13 -0
- package/lib/src/size-auto-CWZU3SNg.js +10 -0
- package/lib/src/size-landscape-DN0ZUbG1.js +10 -0
- package/lib/src/size-portrait-BCDQOCQP.js +10 -0
- package/lib/src/size-square-Dk0ywIEw.js +10 -0
- package/lib/src/sms-DgS07IDl.js +10 -0
- package/lib/src/snapchat-B9mEk1WD.js +10 -0
- package/lib/src/social-facebook-BYeLY-QL.js +13 -0
- package/lib/src/social-facebook-DHTz-GCi.js +10 -0
- package/lib/src/social-facebook-color-Cp9va_WX.js +25 -0
- package/lib/src/social-google-BihuqlwB.js +10 -0
- package/lib/src/social-google-CMG-PaBh.js +13 -0
- package/lib/src/social-instagram-CYuFeEC8.js +13 -0
- package/lib/src/social-instagram-color-BEuzfTt4.js +62 -0
- package/lib/src/social-linkedin-color-DnLJtP_K.js +21 -0
- package/lib/src/social-share-BBuGIZLF.js +12 -0
- package/lib/src/social-twitter-DQlhcmO_.js +13 -0
- package/lib/src/social-twitter-color-D6glrrz_.js +25 -0
- package/lib/src/social-youtube-ehBXYyXY.js +13 -0
- package/lib/src/sort-dsDk3cJy.js +10 -0
- package/lib/src/soundcloud-FXItloDZ.js +14 -0
- package/lib/src/spacing-CLXSY0a3.js +27 -0
- package/lib/src/sparkle-square-B8_DUO64.js +31 -0
- package/lib/src/squares-Bh501gE7.js +14 -0
- package/lib/src/star-filled-DCJ1kr1k.js +13 -0
- package/lib/src/star-hollow-1P0edhe4.js +13 -0
- package/lib/src/sticker-DO_FPV66.js +35 -0
- package/lib/src/stop-CHfUQAYZ.js +10 -0
- package/lib/src/strikethrough-Q-Cjrlrq.js +14 -0
- package/lib/src/styles-BNMPa-i9.js +10 -0
- package/lib/src/submit-BuhaLla8.js +10 -0
- package/lib/src/t-shirt-CpqpjALA.js +39 -0
- package/lib/src/tab-display-style-no-logo-1-V5sgWAS1.js +27 -0
- package/lib/src/tab-display-style-no-logo-2-DjOBOyRA.js +27 -0
- package/lib/src/tab-display-style-no-logo-3-CsQU2RQG.js +27 -0
- package/lib/src/templates-BhYZOvN1.js +14 -0
- package/lib/src/testimonial-big-image-BJgG59uO.js +36 -0
- package/lib/src/testimonial-centered-SVJu3v9h.js +32 -0
- package/lib/src/testimonial-columns-Cqe3BnaX.js +40 -0
- package/lib/src/text-B3U_w6jH.js +14 -0
- package/lib/src/text-CmNuVy9M.js +14 -0
- package/lib/src/text-background-color-Z9NZCfeS.js +21 -0
- package/lib/src/text-color-DIt0vljx.js +23 -0
- package/lib/src/text-image-C1i9QEkX.js +44 -0
- package/lib/src/text-image-center-EmnA0ghU.js +28 -0
- package/lib/src/text-image-justified-F2-n0Zlg.js +35 -0
- package/lib/src/text-image-left-BZ3_S9OW.js +29 -0
- package/lib/src/text-image-only-Bo1hDo-_.js +21 -0
- package/lib/src/text-image-right-Y1GTFFDk.js +29 -0
- package/lib/src/thankyou-card-4IR09ojS.js +10 -0
- package/lib/src/thumbs-up-Ctl0ZuDo.js +10 -0
- package/lib/src/tiktok-CyGJ9TpC.js +10 -0
- package/lib/src/time-BoZe-_gU.js +13 -0
- package/lib/src/tools-PGAS66bO.js +10 -0
- package/lib/src/tooltip-bottom-Du7utXai.js +12 -0
- package/lib/src/tooltip-left-DhcpWIXG.js +12 -0
- package/lib/src/tooltip-right-C3YM_L_e.js +12 -0
- package/lib/src/tooltip-top-DEVGBKWp.js +12 -0
- package/lib/src/transition-CFYiHwQg.js +27 -0
- package/lib/src/tumblr-DuJo2Ku6.js +10 -0
- package/lib/src/twitch-BIWCnc9w.js +14 -0
- package/lib/src/twitter-CB4llYeJ.js +10 -0
- package/lib/src/underline-D8DpHTwA.js +14 -0
- package/lib/src/undo-CpE_xDEa.js +13 -0
- package/lib/src/upgrade-alt-DAl1NqA6.js +14 -0
- package/lib/src/upgrade-oh0lvPP4.js +16 -0
- package/lib/src/upgrade-to-add-page-Dj5IeWUB.js +57 -0
- package/lib/src/upgrade-to-contact-form-ByBYHR1w.js +95 -0
- package/lib/src/upgrade-to-google-ad-CtHChyB-.js +129 -0
- package/lib/src/upgrade-to-maps-w3LVao8K.js +56 -0
- package/lib/src/upgrade-to-publish-DQ_Cf7OY.js +119 -0
- package/lib/src/upgrade-to-remove-watermark-BUeT0ret.js +108 -0
- package/lib/src/upgrade-to-videos-BtssuzXy.js +54 -0
- package/lib/src/upload-DBmX5U1T.js +10 -0
- package/lib/src/upload-arrow-BUDuxXPO.js +10 -0
- package/lib/src/uppercase-Df-wYy_q.js +24 -0
- package/lib/src/user-accounts-B5KphoEO.js +10 -0
- package/lib/src/user-headset-D4Br9KDU.js +57 -0
- package/lib/src/users-2-DQdjQahr.js +15 -0
- package/lib/src/users-T7iBUemv.js +14 -0
- package/lib/src/video-DsoO5Y5b.js +10 -0
- package/lib/src/volume-muted-DhMSv_dG.js +10 -0
- package/lib/src/volume-npTikHfN.js +10 -0
- package/lib/src/watchlist-filled-CbBhwRcY.js +24 -0
- package/lib/src/watchlist-hollow-B395lGfZ.js +13 -0
- package/lib/src/watchlist-hollow-alt-Djk6RIK9.js +24 -0
- package/lib/src/website-BNoGr6cM.js +13 -0
- package/lib/src/website-filled-D0MFpZU7.js +10 -0
- package/lib/src/whatsapp-DkpDY9MO.js +14 -0
- package/lib/src/wholesale-Cach3yo9.js +13 -0
- package/lib/src/wrap-text-Iqd-3_xm.js +15 -0
- package/lib/src/youtube-D8mXT3Ho.js +10 -0
- package/lib/src/zoom-C50O2YhZ.js +16 -0
- package/lib/src/zoom-in-lmqi7IM_.js +10 -0
- package/lib/src/zoom-out-CRkgtd46.js +10 -0
- package/lib/src/zoom-w74FIjVh.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/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/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/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/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.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,14 @@
|
|
|
1
|
+
import { openBlock as C, createElementBlock as e } from "vue";
|
|
2
|
+
import { _ as L } from "./lib-vHQ3PSie.js";
|
|
3
|
+
const r = {}, o = {
|
|
4
|
+
"fill-rule": "evenodd",
|
|
5
|
+
"clip-rule": "evenodd",
|
|
6
|
+
d: "M0.802937 0.803029C0.987686 0.61828 1.25527 0.542992 1.50925 0.604297L10.5138 2.77781C10.5302 2.78177 10.5473 2.78582 10.565 2.79001C10.7472 2.8331 10.9937 2.89138 11.2035 3.02818C11.3841 3.14595 11.5354 3.30338 11.646 3.48849C11.7744 3.70352 11.8229 3.95206 11.8588 4.13584C11.8623 4.1537 11.8656 4.17094 11.8689 4.18749L12.5379 7.53203C12.728 7.51468 12.9207 7.53584 13.1044 7.5955C13.3121 7.66301 13.4697 7.77702 13.5902 7.87932C13.699 7.97171 13.8171 8.08983 13.935 8.20777L14.4589 8.73164C14.5768 8.84953 14.6949 8.96761 14.7873 9.07644C14.8896 9.19694 15.0036 9.35448 15.0711 9.56225C15.1636 9.84678 15.1636 10.1533 15.0711 10.4378C15.0036 10.6456 14.8896 10.8031 14.7873 10.9236C14.6949 11.0324 14.5768 11.1505 14.4589 11.2684L11.2683 14.459C11.1504 14.5769 11.0324 14.695 10.9235 14.7874C10.803 14.8897 10.6455 15.0037 10.4377 15.0712C10.1532 15.1637 9.84669 15.1637 9.56216 15.0712C9.35439 15.0037 9.19685 14.8897 9.07634 14.7874C8.96752 14.695 8.84945 14.5769 8.73156 14.459L8.20766 13.9351C8.08973 13.8172 7.97162 13.6991 7.87923 13.5903C7.77693 13.4698 7.66292 13.3122 7.59541 13.1045C7.53575 12.9208 7.51459 12.7281 7.53194 12.5379L4.1874 11.869C4.17085 11.8657 4.1536 11.8624 4.13574 11.8589C3.95197 11.823 3.70343 11.7745 3.4884 11.6461C3.30329 11.5355 3.14585 11.3842 3.02809 11.2036C2.89129 10.9938 2.83301 10.7473 2.78991 10.5651C2.78573 10.5474 2.78168 10.5303 2.77772 10.5139L0.604206 1.50934C0.5429 1.25536 0.618188 0.987778 0.802937 0.803029ZM9.06481 12.6667C9.11212 12.7178 9.17955 12.7856 9.28451 12.8906L9.77602 13.3821C9.88098 13.4871 9.94887 13.5545 9.99993 13.6018C10.051 13.5545 10.1189 13.4871 10.2239 13.3821L13.382 10.2239C13.487 10.119 13.5544 10.0511 13.6017 10C13.5544 9.94896 13.487 9.88107 13.382 9.77611L12.8905 9.2846C12.7856 9.17964 12.7177 9.11221 12.6666 9.0649C12.6155 9.11221 12.5476 9.17964 12.4427 9.2846L9.28451 12.4428C9.17955 12.5477 9.11212 12.6156 9.06481 12.6667ZM11.1858 8.42019L8.42009 11.1859L4.48157 10.3982C4.41975 10.3858 4.37179 10.3762 4.3304 10.3674C4.31258 10.3636 4.29745 10.3602 4.28449 10.3573C4.281 10.3444 4.27707 10.3294 4.27257 10.3118C4.26213 10.2708 4.25064 10.2232 4.23585 10.162L2.68778 3.74853L5.42817 6.48893C5.3136 6.74704 5.24993 7.03276 5.24993 7.33336C5.24993 8.48395 6.18267 9.41669 7.33327 9.41669C8.48386 9.41669 9.4166 8.48395 9.4166 7.33336C9.4166 6.18277 8.48386 5.25003 7.33327 5.25003C7.03267 5.25003 6.74694 5.31369 6.48883 5.42827L3.74844 2.68787L10.1619 4.23594C10.2231 4.25073 10.2707 4.26222 10.3117 4.27266C10.3294 4.27716 10.3443 4.2811 10.3572 4.28458C10.3601 4.29754 10.3635 4.31267 10.3673 4.33049C10.3761 4.37189 10.3857 4.41984 10.3981 4.48166L11.1858 8.42019ZM6.91269 6.92914C6.91545 6.92646 6.9182 6.92375 6.92093 6.92102C6.92366 6.91829 6.92637 6.91554 6.92905 6.91278C7.0339 6.81199 7.17635 6.75003 7.33327 6.75003C7.65543 6.75003 7.9166 7.01119 7.9166 7.33336C7.9166 7.65553 7.65543 7.91669 7.33327 7.91669C7.0111 7.91669 6.74993 7.65553 6.74993 7.33336C6.74993 7.17644 6.8119 7.03399 6.91269 6.92914Z"
|
|
7
|
+
};
|
|
8
|
+
function t(c, n) {
|
|
9
|
+
return C(), e("path", o);
|
|
10
|
+
}
|
|
11
|
+
const l = /* @__PURE__ */ L(r, [["render", t]]);
|
|
12
|
+
export {
|
|
13
|
+
l as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { openBlock as C, createElementBlock as e } from "vue";
|
|
2
|
+
import { _ as r } from "./lib-vHQ3PSie.js";
|
|
3
|
+
const o = {}, t = {
|
|
4
|
+
"fill-rule": "evenodd",
|
|
5
|
+
"clip-rule": "evenodd",
|
|
6
|
+
d: "M7.71036 2.58338H8.28949C8.45624 2.58335 8.62325 2.58333 8.76553 2.59495C8.92308 2.60782 9.11509 2.6386 9.30974 2.73779C9.57631 2.87361 9.79303 3.09033 9.92885 3.35689C10.028 3.55155 10.0588 3.74356 10.0717 3.90111C10.0721 3.90628 10.0725 3.91148 10.0729 3.91671L12.7978 3.91671C13.0482 3.51635 13.4929 3.25005 13.9999 3.25005C14.7823 3.25005 15.4166 3.88431 15.4166 4.66671C15.4166 5.44912 14.7823 6.08338 13.9999 6.08338C13.4929 6.08338 13.0482 5.81707 12.7978 5.41671H11.9999C13.1011 6.37837 13.8526 7.73036 14.0384 9.25743C14.059 9.25862 14.0792 9.26001 14.0989 9.26162C14.2564 9.27449 14.4484 9.30527 14.6431 9.40445C14.9096 9.54027 15.1264 9.757 15.2622 10.0236C15.3614 10.2182 15.3921 10.4102 15.405 10.5678C15.4166 10.7101 15.4166 10.8771 15.4166 11.0438V11.6229C15.4166 11.7897 15.4166 11.9567 15.405 12.099C15.3921 12.2565 15.3614 12.4485 15.2622 12.6432C15.1264 12.9098 14.9096 13.1265 14.6431 13.2623C14.4484 13.3615 14.2564 13.3923 14.0989 13.4051C13.9566 13.4168 13.7896 13.4167 13.6228 13.4167H13.0437C12.877 13.4167 12.7099 13.4168 12.5677 13.4051C12.4101 13.3923 12.2181 13.3615 12.0234 13.2623C11.7569 13.1265 11.5402 12.9098 11.4043 12.6432C11.3051 12.4485 11.2744 12.2565 11.2615 12.099C11.2499 11.9567 11.2499 11.7897 11.2499 11.623V11.0438C11.2499 10.8771 11.2499 10.71 11.2615 10.5678C11.2744 10.4102 11.3051 10.2182 11.4043 10.0236C11.5402 9.757 11.7569 9.54027 12.0234 9.40445C12.2007 9.31412 12.3758 9.28053 12.5247 9.26553C12.2824 7.76166 11.3083 6.50185 9.97893 5.8645C9.96454 5.9016 9.94796 5.93902 9.92885 5.97653C9.79303 6.24309 9.57631 6.45982 9.30974 6.59564C9.11509 6.69482 8.92308 6.7256 8.76553 6.73847C8.62325 6.7501 8.45624 6.75007 8.28948 6.75005L7.73326 6.75005C7.72563 6.75005 7.718 6.75005 7.71036 6.75005C7.54361 6.75007 7.3766 6.7501 7.23432 6.73847C7.07677 6.7256 6.88476 6.69482 6.6901 6.59564C6.42354 6.45982 6.20682 6.24309 6.071 5.97653C6.05188 5.93902 6.03531 5.9016 6.02091 5.8645C4.69153 6.50185 3.71742 7.76166 3.47514 9.26553C3.62401 9.28053 3.79911 9.31412 3.97641 9.40445C4.24297 9.54027 4.45969 9.75699 4.59552 10.0236C4.6947 10.2182 4.72548 10.4102 4.73835 10.5678C4.74997 10.7101 4.74995 10.8771 4.74993 11.0438V11.6229C4.74995 11.7897 4.74997 11.9567 4.73835 12.099C4.72548 12.2565 4.6947 12.4485 4.59552 12.6432C4.45969 12.9098 4.24297 13.1265 3.97641 13.2623C3.78175 13.3615 3.58974 13.3923 3.4322 13.4051C3.28991 13.4168 3.12289 13.4167 2.95613 13.4167H2.37705C2.21029 13.4167 2.04327 13.4168 1.90098 13.4051C1.74343 13.3923 1.55142 13.3615 1.35677 13.2623C1.09021 13.1265 0.873485 12.9098 0.737664 12.6432C0.638482 12.4485 0.607702 12.2565 0.59483 12.099C0.583205 11.9567 0.58323 11.7897 0.583254 11.6229V11.0438C0.58323 10.8771 0.583205 10.7101 0.59483 10.5678C0.607702 10.4102 0.638482 10.2182 0.737664 10.0236C0.873485 9.75699 1.09021 9.54027 1.35677 9.40445C1.55142 9.30527 1.74343 9.27449 1.90098 9.26162C1.92069 9.26001 1.94086 9.25862 1.96144 9.25743C2.14724 7.73036 2.89876 6.37837 3.99992 5.41671H3.202C2.95168 5.81707 2.5069 6.08338 1.99992 6.08338C1.21752 6.08338 0.583256 5.44912 0.583256 4.66671C0.583256 3.88431 1.21752 3.25005 1.99992 3.25005C2.5069 3.25005 2.95168 3.51635 3.202 3.91671L5.92694 3.91671C5.92733 3.91148 5.92774 3.90628 5.92816 3.90111C5.94104 3.74356 5.97182 3.55155 6.071 3.35689C6.20682 3.09033 6.42354 2.87361 6.6901 2.73779C6.88476 2.6386 7.07677 2.60782 7.23432 2.59495C7.3766 2.58333 7.5436 2.58335 7.71036 2.58338ZM7.41659 4.81878V4.40005C7.41659 4.25161 7.41692 4.15592 7.41957 4.08636C7.48913 4.0837 7.58482 4.08338 7.73326 4.08338H8.26659C8.41503 4.08338 8.51071 4.0837 8.58027 4.08636C8.58293 4.15592 8.58326 4.25161 8.58326 4.40005V4.8188C8.58301 4.82977 8.58302 4.84071 8.58326 4.85162V4.93338C8.58326 5.08182 8.58293 5.1775 8.58028 5.24706C8.51071 5.24972 8.41503 5.25005 8.26659 5.25005H7.73326C7.58482 5.25005 7.48913 5.24972 7.41957 5.24706C7.41691 5.1775 7.41659 5.08182 7.41659 4.93338V4.85164C7.41683 4.84072 7.41683 4.82976 7.41659 4.81878ZM2.08624 10.753C2.08358 10.8226 2.08326 10.9183 2.08326 11.0667V11.6C2.08326 11.7485 2.08358 11.8442 2.08624 11.9137C2.1558 11.9164 2.25148 11.9167 2.39992 11.9167H2.93326C3.0817 11.9167 3.17738 11.9164 3.24694 11.9137C3.2496 11.8442 3.24992 11.7485 3.24992 11.6V11.0667C3.24992 10.9183 3.2496 10.8226 3.24694 10.753C3.17738 10.7504 3.0817 10.75 2.93326 10.75H2.39992C2.25148 10.75 2.1558 10.7504 2.08624 10.753ZM12.7529 10.753C12.7503 10.8226 12.7499 10.9183 12.7499 11.0667V11.6C12.7499 11.7485 12.7502 11.8442 12.7529 11.9137C12.8225 11.9164 12.9182 11.9167 13.0666 11.9167H13.5999C13.7484 11.9167 13.844 11.9164 13.9136 11.9137C13.9163 11.8442 13.9166 11.7485 13.9166 11.6V11.0667C13.9166 10.9183 13.9163 10.8226 13.9136 10.753C13.844 10.7504 13.7484 10.75 13.5999 10.75H13.0666C12.9182 10.75 12.8225 10.7504 12.7529 10.753Z"
|
|
7
|
+
};
|
|
8
|
+
function c(n, V) {
|
|
9
|
+
return C(), e("path", t);
|
|
10
|
+
}
|
|
11
|
+
const l = /* @__PURE__ */ r(o, [["render", c]]);
|
|
12
|
+
export {
|
|
13
|
+
l as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { openBlock as C, createElementBlock as e } from "vue";
|
|
2
|
+
import { _ as o } from "./lib-vHQ3PSie.js";
|
|
3
|
+
const r = {}, t = {
|
|
4
|
+
"fill-rule": "evenodd",
|
|
5
|
+
"clip-rule": "evenodd",
|
|
6
|
+
d: "M11.5857 7.51786C12.0763 7.89286 12.4488 8.36607 12.7032 8.9375C12.9576 9.49107 13.0485 10.0893 12.9758 10.7321C12.8849 11.6607 12.467 12.4375 11.722 13.0625C10.977 13.6875 10.1139 14 9.13265 14H3.4361C3.3089 14 3.19988 13.9554 3.10902 13.8661C3.03634 13.7946 3 13.6964 3 13.5714V12.2857C3 12.1607 3.03634 12.0625 3.10902 11.9911C3.19988 11.9018 3.3089 11.8571 3.4361 11.8571H4.3083V4.14286H3.4361C3.3089 4.14286 3.19988 4.10714 3.10902 4.03571C3.03634 3.94643 3 3.83929 3 3.71429V2.42857C3 2.30357 3.03634 2.20536 3.10902 2.13393C3.19988 2.04464 3.3089 2 3.4361 2H8.86009C9.89582 2 10.7589 2.375 11.4494 3.125C12.1399 3.875 12.4306 4.75893 12.3216 5.77679C12.2671 6.41964 12.0218 7 11.5857 7.51786ZM6.48879 4.14286V6.71429H8.86009C9.2235 6.71429 9.5324 6.58929 9.7868 6.33929C10.0412 6.08929 10.1684 5.78571 10.1684 5.42857C10.1684 5.07143 10.0412 4.76786 9.7868 4.51786C9.5324 4.26786 9.2235 4.14286 8.86009 4.14286H6.48879ZM8.86009 11.8571C9.29618 11.8571 9.6596 11.7143 9.95033 11.4286C10.2411 11.125 10.3864 10.7679 10.3864 10.3571C10.3864 9.94643 10.2411 9.59821 9.95033 9.3125C9.6596 9.00893 9.29618 8.85714 8.86009 8.85714H6.48879V11.8571H8.86009Z"
|
|
7
|
+
};
|
|
8
|
+
function c(n, _) {
|
|
9
|
+
return C(), e("path", t);
|
|
10
|
+
}
|
|
11
|
+
const s = /* @__PURE__ */ o(r, [["render", c]]);
|
|
12
|
+
export {
|
|
13
|
+
s as default
|
|
14
|
+
};
|
|
@@ -77,6 +77,13 @@ export declare const IMAGE_RESOLUTION_PRESETS: {
|
|
|
77
77
|
readonly ULTRA_HD: "q=80&w=2160";
|
|
78
78
|
};
|
|
79
79
|
export type ImagesSectionContentDisplayStyle = (typeof IMAGES_SECTION_CONTENT_DISPLAY_STYLES)[number];
|
|
80
|
+
/** Centered and split are accordions; grid shows every answer. */
|
|
81
|
+
export declare const FAQ_DISPLAY_STYLES: Readonly<{
|
|
82
|
+
readonly centered: "faq-centered";
|
|
83
|
+
readonly split: "faq-split";
|
|
84
|
+
readonly grid: "faq-grid";
|
|
85
|
+
}>;
|
|
86
|
+
export declare const FAQ_MAX_ITEMS = 6;
|
|
80
87
|
export declare const HEADER_CSRF_TOKEN = "csrf-token";
|
|
81
88
|
export declare const STYLE_THEME_KEYS: Readonly<{
|
|
82
89
|
LogoTextColor: "logo-text-color";
|
|
@@ -103,6 +103,13 @@ export const IMAGE_RESOLUTION_PRESETS = {
|
|
|
103
103
|
FULL_HD: 'q=80&w=1080',
|
|
104
104
|
ULTRA_HD: 'q=80&w=2160',
|
|
105
105
|
};
|
|
106
|
+
/** Centered and split are accordions; grid shows every answer. */
|
|
107
|
+
export const FAQ_DISPLAY_STYLES = Object.freeze({
|
|
108
|
+
centered: 'faq-centered',
|
|
109
|
+
split: 'faq-split',
|
|
110
|
+
grid: 'faq-grid',
|
|
111
|
+
});
|
|
112
|
+
export const FAQ_MAX_ITEMS = 6;
|
|
106
113
|
export const HEADER_CSRF_TOKEN = 'csrf-token';
|
|
107
114
|
export const STYLE_THEME_KEYS = Object.freeze({
|
|
108
115
|
LogoTextColor: 'logo-text-color',
|
|
@@ -33,5 +33,7 @@ export declare const CONTENT_TEXT_STYLE_PROPERTY_KEYS: {
|
|
|
33
33
|
readonly buttonTextStyle: "buttonTextStyle";
|
|
34
34
|
readonly copyrightStyle: "copyrightStyle";
|
|
35
35
|
readonly successMessageStyle: "successMessageStyle";
|
|
36
|
+
readonly questionStyle: "questionStyle";
|
|
37
|
+
readonly answerStyle: "answerStyle";
|
|
36
38
|
};
|
|
37
39
|
export type ContentTextStylePropertyKey = keyof typeof CONTENT_TEXT_STYLE_PROPERTY_KEYS;
|
|
@@ -31,6 +31,7 @@ export declare const CONTENT_TYPES: {
|
|
|
31
31
|
readonly 'shapes-section': "shapes-section";
|
|
32
32
|
readonly 'shop-section': "shop-section";
|
|
33
33
|
readonly 'booking-section': "booking-section";
|
|
34
|
+
readonly 'faq-section': "faq-section";
|
|
34
35
|
};
|
|
35
36
|
export type ContentType = keyof typeof CONTENT_TYPES;
|
|
36
37
|
export declare const PERSONALISATION_ROLES: {
|
|
@@ -478,6 +478,32 @@ export interface BookingSectionContent extends Content {
|
|
|
478
478
|
buttonLinkType: ButtonLinkType;
|
|
479
479
|
buttonTextStyle: TextStyleDeclaration;
|
|
480
480
|
}
|
|
481
|
+
export interface FaqItem {
|
|
482
|
+
/** Stable per-item identifier. See ImageItem.id. */
|
|
483
|
+
id: string;
|
|
484
|
+
question: RichTextValue;
|
|
485
|
+
answer: RichTextValue;
|
|
486
|
+
questionOverride?: string;
|
|
487
|
+
answerOverride?: string;
|
|
488
|
+
}
|
|
489
|
+
export interface FaqSectionContent extends Content {
|
|
490
|
+
type: 'faq-section';
|
|
491
|
+
title: RichTextValue;
|
|
492
|
+
description: RichTextValue;
|
|
493
|
+
displayStyle: string;
|
|
494
|
+
items: FaqItem[];
|
|
495
|
+
titleStyle: RteTextRole;
|
|
496
|
+
descriptionStyle: RteTextRole;
|
|
497
|
+
/** Shared by every question; a question's own formatting lives in its doc. */
|
|
498
|
+
questionStyle: RteTextRole;
|
|
499
|
+
/** Shared by every answer. */
|
|
500
|
+
answerStyle: RteTextRole;
|
|
501
|
+
backgroundStyle: BrandPageCssStyle;
|
|
502
|
+
/** `{ color }` for the +/- toggle. */
|
|
503
|
+
iconColor: BrandPageCssStyle;
|
|
504
|
+
/** `{ backgroundColor }`, the Divider section's shape. `'transparent'` hides the line. */
|
|
505
|
+
dividerColor: BrandPageCssStyle;
|
|
506
|
+
}
|
|
481
507
|
export declare class PageModel {
|
|
482
508
|
title: string;
|
|
483
509
|
contents: Content[];
|
|
@@ -490,6 +490,18 @@ export const applyTextContrast = (content, styles, brandPageType) => {
|
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
|
+
// Same for the FAQ's +/− icons and divider: with no base coat to inherit, a new section
|
|
494
|
+
// stores its title's contrast colour, so both start linked to the palette.
|
|
495
|
+
if (content.type === 'faq-section') {
|
|
496
|
+
const faq = content;
|
|
497
|
+
const fill = titleSurfaceContrastFill(content, styles, brandPageType);
|
|
498
|
+
if (fill && isBlankColorValue(faq.iconColor?.color)) {
|
|
499
|
+
faq.iconColor = { ...faq.iconColor, color: fill };
|
|
500
|
+
}
|
|
501
|
+
if (fill && isBlankColorValue(faq.dividerColor?.backgroundColor)) {
|
|
502
|
+
faq.dividerColor = { ...faq.dividerColor, backgroundColor: fill };
|
|
503
|
+
}
|
|
504
|
+
}
|
|
493
505
|
return content;
|
|
494
506
|
};
|
|
495
507
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ProfileContent, TextContent, ContactFormContent, ImageContent, BannerSectionContent, SocialLinksContent, ImageGalleryContent, TestimonialSectionContent, AboutSectionContent, ImagesSectionContent, MailingListContent, SupportMeContent, RequestPaymentContent, ShapesSectionContent, ShopContent, ButtonContent, PageModel, BookingSectionContent } from '../models';
|
|
1
|
+
import type { ProfileContent, TextContent, ContactFormContent, ImageContent, BannerSectionContent, SocialLinksContent, ImageGalleryContent, TestimonialSectionContent, AboutSectionContent, ImagesSectionContent, MailingListContent, SupportMeContent, RequestPaymentContent, ShapesSectionContent, ShopContent, ButtonContent, PageModel, BookingSectionContent, FaqSectionContent } from '../models';
|
|
2
2
|
export type ContentCallback = {
|
|
3
3
|
profileContentCallback: (content: ProfileContent) => void;
|
|
4
4
|
textContentCallback: (content: TextContent) => void;
|
|
@@ -17,5 +17,6 @@ export type ContentCallback = {
|
|
|
17
17
|
shopSectionContentCallback: (content: ShopContent) => void;
|
|
18
18
|
buttonContentCallback: (content: ButtonContent) => void;
|
|
19
19
|
bookingSectionContentCallback: (content: BookingSectionContent) => void;
|
|
20
|
+
faqSectionContentCallback: (content: FaqSectionContent) => void;
|
|
20
21
|
};
|
|
21
22
|
export declare const forEachPageCallContentCallback: (page: PageModel, callbacks: ContentCallback) => void;
|
|
@@ -49,6 +49,9 @@ export const forEachPageCallContentCallback = (page, callbacks) => {
|
|
|
49
49
|
case 'booking-section':
|
|
50
50
|
callbacks.bookingSectionContentCallback(content);
|
|
51
51
|
break;
|
|
52
|
+
case 'faq-section':
|
|
53
|
+
callbacks.faqSectionContentCallback(content);
|
|
54
|
+
break;
|
|
52
55
|
case 'general-link':
|
|
53
56
|
case 'website':
|
|
54
57
|
case 'email':
|
|
@@ -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,
|
|
@@ -894,6 +908,8 @@ export const mapToViewModel = (styles, brandPageType, options) => (content) => {
|
|
|
894
908
|
return mapToBannerSectionViewModel(content, styles, options);
|
|
895
909
|
case 'booking-section':
|
|
896
910
|
return mapToBookingSectionViewModel(content, styles);
|
|
911
|
+
case 'faq-section':
|
|
912
|
+
return mapToFaqSectionViewModel(content, styles);
|
|
897
913
|
case 'about-section':
|
|
898
914
|
return mapToAboutSectionViewModel(content, styles);
|
|
899
915
|
case 'images-section':
|
|
@@ -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';
|
|
@@ -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
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LogoContent, FacebookContent, GeneralLinkContent, PhoneContent, EmailContent, ImageContent, InstagramContent, LinkedInContent, PinterestContent, ProfileContent, TextContent, TiktokContent, TwitchContent, XContent, VideoContent, WebsiteContent, YoutubeContent, ContentType, MapContent, ImageGalleryContent, MailingListContent, RequestPaymentContent, SupportMeContent, ContactFormContent, BannerSectionContent, SocialLinksContent, ImagesSectionContent, TestimonialSectionContent, AboutSectionContent, DividerSectionContent, ShapesSectionContent, ShopContent, BookingSectionContent } from '@brand-page';
|
|
1
|
+
import type { LogoContent, FacebookContent, GeneralLinkContent, PhoneContent, EmailContent, ImageContent, InstagramContent, LinkedInContent, PinterestContent, ProfileContent, TextContent, TiktokContent, TwitchContent, XContent, VideoContent, WebsiteContent, YoutubeContent, ContentType, MapContent, ImageGalleryContent, MailingListContent, RequestPaymentContent, SupportMeContent, ContactFormContent, BannerSectionContent, SocialLinksContent, ImagesSectionContent, TestimonialSectionContent, AboutSectionContent, DividerSectionContent, ShapesSectionContent, ShopContent, BookingSectionContent, FaqSectionContent } from '@brand-page';
|
|
2
2
|
import type { ContentSettingsConfig, ContentSettingsField, ContentSettingsMultiField } from '../models';
|
|
3
3
|
export declare const LOGO_SETTINGS_CONFIG: () => ContentSettingsConfig<Omit<LogoContent, "version" | "logoVariation" | "logoImageHeight" | "logoImageWidth" | "logoLastUpdate" | "logoImageBase64Url">>;
|
|
4
4
|
export declare const GENERAL_LINK_CONTENT_SETTINGS_CONFIG: () => ContentSettingsConfig<GeneralLinkContent>;
|
|
@@ -51,4 +51,5 @@ export declare const SHOP_SECTION_SETTINGS_CONFIG: () => ContentSettingsConfig<S
|
|
|
51
51
|
isShippingEnabled: boolean;
|
|
52
52
|
}>;
|
|
53
53
|
export declare const BOOKING_SECTION_SETTINGS_CONFIG: () => ContentSettingsConfig<BookingSectionContent>;
|
|
54
|
+
export declare const FAQ_SECTION_SETTINGS_CONFIG: () => ContentSettingsConfig<FaqSectionContent>;
|
|
54
55
|
export declare const CONTENT_SETTINGS_CONFIGS: () => Record<ContentType, ContentSettingsConfig<any>>;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { SOCIAL_LINKS_ICON_DISPLAY_STYLES, BRAND_PAGE_TYPES, DIVIDER_STYLES, MEDIA_TYPES, BUTTON_LINK_TYPE, MIN_TEXT_SIZE_PX, MAX_TEXT_SIZE_PX, TEXT_COLUMNS, DEFAULT_SHAPE_SIZE, PAYMENT_OPTION_DISPLAY_TYPES, PAYMENT_OPTION_IMAGE_TYPES, GettyVideoMedia, } from '@brand-page';
|
|
2
|
-
import { createInitialButtonContent, createInitialImageContent, createInitialProfileContent, createInitialTextContent, createInitialVideoContent, createInitialLogoContent, createInitialMapContent, createInitialImageGalleryContent, createInitialGeneralLinkContent, createInitialMailingListContent, createInitialRequestPaymentContent, createInitialSupportMeContent, createInitialContactFormContent, CONTENT_SETTINGS_DISPLAY_MODES, createInitialBannerSectionContent, createInitialSocialLinksContent, createInitialImagesSectionContent, createInitialTestimonialSectionContent, createInitialAboutSectionContent, createInitialDividerSectionContent, createInitialShapesSectionContent, VARIANT_DISPLAY_MODES, createInitialShopContent, createInitialBookingSectionContent, } from '../models';
|
|
1
|
+
import { FAQ_DISPLAY_STYLES, SOCIAL_LINKS_ICON_DISPLAY_STYLES, BRAND_PAGE_TYPES, DIVIDER_STYLES, MEDIA_TYPES, BUTTON_LINK_TYPE, MIN_TEXT_SIZE_PX, MAX_TEXT_SIZE_PX, TEXT_COLUMNS, DEFAULT_SHAPE_SIZE, PAYMENT_OPTION_DISPLAY_TYPES, PAYMENT_OPTION_IMAGE_TYPES, GettyVideoMedia, } from '@brand-page';
|
|
2
|
+
import { createInitialButtonContent, createInitialImageContent, createInitialProfileContent, createInitialTextContent, createInitialVideoContent, createInitialLogoContent, createInitialMapContent, createInitialImageGalleryContent, createInitialGeneralLinkContent, createInitialMailingListContent, createInitialRequestPaymentContent, createInitialSupportMeContent, createInitialContactFormContent, CONTENT_SETTINGS_DISPLAY_MODES, createInitialBannerSectionContent, createInitialSocialLinksContent, createInitialImagesSectionContent, createInitialTestimonialSectionContent, createInitialAboutSectionContent, createInitialDividerSectionContent, createInitialShapesSectionContent, VARIANT_DISPLAY_MODES, createInitialShopContent, createInitialBookingSectionContent, createInitialFaqSectionContent, } from '../models';
|
|
3
3
|
import * as uuid from 'uuid';
|
|
4
4
|
import { colorConvertor, backgroundColorConvertor, borderColorConvertor, displayStyleConvertor, galleryTypeConvertor, imageAspectRatioConvertor, textAlignmentOptionsConvertor, videoContentStateConvertor, fillColorConvertor, bannerAlignDisplayStyleConvertor, aboutDisplayStyleConvertor, dividerStyleConvertor, shapeSizeOptionsConvertor, buttonLinkStyleConvertor, textSizeValueConvertor, textColumnStyleConvertor, contactLayoutStyleConvertor, paymentLinkDisplayStyleConvertor, shopDisplayConvertor, shopAspectRatioConvertor, } from '../convertors';
|
|
5
5
|
import { ALIGN_CENTERED, DISPLAY_STYLE_COLLAPSED, DISPLAY_STYLE_PREVIEW, } from '@brand-page';
|
|
6
|
-
import { imageFieldVisibilityAssessor, imageOptionVisibilityAssessor, imageGalleryFieldVisibilityAssessor, cardFillVisibilityAssessor, mediaSectionItemsFieldTypeAssessor, dividerToggleFieldVisibilityAssessor, shapeSectionItemsFieldTypeAssessor, colorReplacementVisibilityTypeAssessor, colorReplacementProfileVisibilityTypeAssessor, colorReplacementIconVisibilityTypeAssessor, imagesSectionCardStyleVisibilityAssessor, contactCardColorVisibilityAssessor, imageUrlVisibilityAssessor, displayTypeVisibilityAssessor, logoFieldVisibilityAssessor, shapesSectionCardStyleVisibilityAssessor, shopImageOptionVisibilityAssessor, shopItemColorVisibility, personalisationOverrideVisibility, } from '../assessors';
|
|
6
|
+
import { imageFieldVisibilityAssessor, imageOptionVisibilityAssessor, imageGalleryFieldVisibilityAssessor, cardFillVisibilityAssessor, mediaSectionItemsFieldTypeAssessor, dividerToggleFieldVisibilityAssessor, faqAccordionColorFieldVisibilityAssessor, shapeSectionItemsFieldTypeAssessor, colorReplacementVisibilityTypeAssessor, colorReplacementProfileVisibilityTypeAssessor, colorReplacementIconVisibilityTypeAssessor, imagesSectionCardStyleVisibilityAssessor, contactCardColorVisibilityAssessor, imageUrlVisibilityAssessor, displayTypeVisibilityAssessor, logoFieldVisibilityAssessor, shapesSectionCardStyleVisibilityAssessor, shopImageOptionVisibilityAssessor, shopItemColorVisibility, personalisationOverrideVisibility, } from '../assessors';
|
|
7
7
|
import { contactFormCardColorDefaultGetter, paymentFillColorFieldDefaultGetter, paymentTextAndBorderColorFieldDefaultGetter, shopBorderColorFieldDefaultGetter, shopFillColorFieldDefaultGetter, textColorFieldDefaultGetter, } from '../default-getters';
|
|
8
8
|
import { socialLinksIconDisplayStyleConvertor } from '../convertors/social-links-icon-display-style.convertor';
|
|
9
9
|
import { getTextMediaOptionsConverterByMediaType } from '../convertors/text-image-display-style.convertor';
|
|
10
10
|
import { testimonialDisplayStyleConvertor } from '../convertors/testimonial-display-style-convertor';
|
|
11
|
+
import { faqDisplayStyleConvertor } from '../convertors/faq-display-style.convertor';
|
|
11
12
|
import { pageValidator, urlValidator } from '../validators';
|
|
12
13
|
import { imagesSectionAspectRatioVisibilityAssessor } from '../assessors/images-section-aspect-ratio-visibility.assessor';
|
|
13
14
|
import { bannerLinkTypeVisibilityAssessor, bannerSectionPageVisibilityAssessor, bannerSectionUrlVisibilityAssessor, bannerDisplayTypeVisibilityAssessor, bannerOverlayOptionsVisibilityAssessor, } from '../assessors/banner-section-description-visibility.assessor';
|
|
@@ -15,7 +16,7 @@ import { imagesSectionTextStyleVisibilityAssessor } from '../assessors/images-se
|
|
|
15
16
|
import { bannerPlaceholderFieldTypeAssessor, bannerSectionFieldTypeAssessor, bannerSectionRoleTypeAssessor, } from '../assessors/banner-section-field.assessor';
|
|
16
17
|
import { isValidSvgUrl } from '@brand-page/utils';
|
|
17
18
|
import { brandPageOrbrandContactTypeVisibilityAssessor, brandSiteTypeVisibilityAssessor, } from '../assessors/brand-page-type-visibility.assessor';
|
|
18
|
-
import { contentSettingsTr } from '@src/composables/useTranslate';
|
|
19
|
+
import { commonTr, contentSettingsTr } from '@src/composables/useTranslate';
|
|
19
20
|
const MediaFieldNames = {
|
|
20
21
|
aspectRatio: 'aspectRatio',
|
|
21
22
|
iconUrl: 'iconUrl',
|
|
@@ -2803,6 +2804,116 @@ export const BOOKING_SECTION_SETTINGS_CONFIG = () => ({
|
|
|
2803
2804
|
isEnabled: true,
|
|
2804
2805
|
isLocked: false,
|
|
2805
2806
|
});
|
|
2807
|
+
const FAQ_FIELD_GROUP_IDS = {
|
|
2808
|
+
settings: 'settings',
|
|
2809
|
+
items: 'items',
|
|
2810
|
+
style: 'style',
|
|
2811
|
+
};
|
|
2812
|
+
export const FAQ_SECTION_SETTINGS_CONFIG = () => ({
|
|
2813
|
+
type: 'faq-section',
|
|
2814
|
+
category: 'general',
|
|
2815
|
+
createInitialContent: createInitialFaqSectionContent,
|
|
2816
|
+
displayMode: CONTENT_SETTINGS_DISPLAY_MODES.focused,
|
|
2817
|
+
defaultIconName: 'question-circle-filled',
|
|
2818
|
+
displayName: contentSettingsTr(`faqSectionDisplayName`),
|
|
2819
|
+
fieldGroups: [
|
|
2820
|
+
{
|
|
2821
|
+
id: FAQ_FIELD_GROUP_IDS.settings,
|
|
2822
|
+
displayName: contentSettingsTr(`settingsDisplayName`),
|
|
2823
|
+
isCollapsed: false,
|
|
2824
|
+
},
|
|
2825
|
+
{
|
|
2826
|
+
id: FAQ_FIELD_GROUP_IDS.items,
|
|
2827
|
+
displayName: contentSettingsTr(`faqItemsDisplayName`),
|
|
2828
|
+
isCollapsed: false,
|
|
2829
|
+
},
|
|
2830
|
+
{
|
|
2831
|
+
id: FAQ_FIELD_GROUP_IDS.style,
|
|
2832
|
+
displayName: contentSettingsTr(`styleDisplayName`),
|
|
2833
|
+
isCollapsed: true,
|
|
2834
|
+
},
|
|
2835
|
+
],
|
|
2836
|
+
fields: {
|
|
2837
|
+
titleStyle: DEFAULT_TITLE_STYLE_SETTINGS_FILED_WITH_TITLE(),
|
|
2838
|
+
descriptionStyle: DEFAULT_DESCRIPTION_STYLE_FILED(),
|
|
2839
|
+
// Edited in each item's editor (FaqItemsField), not as section fields.
|
|
2840
|
+
questionStyle: undefined,
|
|
2841
|
+
answerStyle: undefined,
|
|
2842
|
+
title: {
|
|
2843
|
+
type: 'text',
|
|
2844
|
+
placeholder: contentSettingsTr(`titlePlaceholder`),
|
|
2845
|
+
title: contentSettingsTr(`titleTitle`),
|
|
2846
|
+
groupId: FAQ_FIELD_GROUP_IDS.settings,
|
|
2847
|
+
maxLength: 200,
|
|
2848
|
+
},
|
|
2849
|
+
titleOverride: {
|
|
2850
|
+
type: 'personalisation-override',
|
|
2851
|
+
groupId: FAQ_FIELD_GROUP_IDS.settings,
|
|
2852
|
+
visibilityAssessor: (c, b) => personalisationOverrideVisibility(c, b, 'title'),
|
|
2853
|
+
},
|
|
2854
|
+
description: {
|
|
2855
|
+
type: 'textarea',
|
|
2856
|
+
placeholder: contentSettingsTr(`descriptionPlaceholder`),
|
|
2857
|
+
title: contentSettingsTr(`descriptionTitle`),
|
|
2858
|
+
groupId: FAQ_FIELD_GROUP_IDS.settings,
|
|
2859
|
+
maxLength: 1000,
|
|
2860
|
+
},
|
|
2861
|
+
descriptionOverride: {
|
|
2862
|
+
type: 'personalisation-override',
|
|
2863
|
+
groupId: FAQ_FIELD_GROUP_IDS.settings,
|
|
2864
|
+
visibilityAssessor: (c, b) => personalisationOverrideVisibility(c, b, 'description'),
|
|
2865
|
+
},
|
|
2866
|
+
// FaqItemsField owns the question/answer inputs and the FAQ_MAX_ITEMS cap.
|
|
2867
|
+
items: {
|
|
2868
|
+
type: 'faq-items',
|
|
2869
|
+
defaultValue: [],
|
|
2870
|
+
groupId: FAQ_FIELD_GROUP_IDS.items,
|
|
2871
|
+
},
|
|
2872
|
+
displayStyle: {
|
|
2873
|
+
type: 'radio',
|
|
2874
|
+
role: 'multi',
|
|
2875
|
+
defaultValue: FAQ_DISPLAY_STYLES.centered,
|
|
2876
|
+
title: contentSettingsTr(`displayStyleTitle`),
|
|
2877
|
+
optionsConvertor: faqDisplayStyleConvertor,
|
|
2878
|
+
groupId: FAQ_FIELD_GROUP_IDS.style,
|
|
2879
|
+
variant: 'icon',
|
|
2880
|
+
},
|
|
2881
|
+
...PADDING_CONTROL_FIELDS(FAQ_FIELD_GROUP_IDS.style),
|
|
2882
|
+
iconColor: {
|
|
2883
|
+
type: 'color',
|
|
2884
|
+
groupId: FAQ_FIELD_GROUP_IDS.style,
|
|
2885
|
+
defaultValue: {},
|
|
2886
|
+
isInline: true,
|
|
2887
|
+
showToggle: false,
|
|
2888
|
+
disableTransparent: true,
|
|
2889
|
+
visibilityAssessor: faqAccordionColorFieldVisibilityAssessor,
|
|
2890
|
+
title: commonTr(`iconColor`),
|
|
2891
|
+
valueConvertor: colorConvertor,
|
|
2892
|
+
},
|
|
2893
|
+
// Transparent allowed on purpose (it hides the line), unlike the Divider section's field.
|
|
2894
|
+
dividerColor: {
|
|
2895
|
+
type: 'color',
|
|
2896
|
+
groupId: FAQ_FIELD_GROUP_IDS.style,
|
|
2897
|
+
defaultValue: {},
|
|
2898
|
+
isInline: true,
|
|
2899
|
+
showToggle: false,
|
|
2900
|
+
visibilityAssessor: faqAccordionColorFieldVisibilityAssessor,
|
|
2901
|
+
title: contentSettingsTr(`dividerColorTitle`),
|
|
2902
|
+
valueConvertor: backgroundColorConvertor,
|
|
2903
|
+
},
|
|
2904
|
+
backgroundStyle: {
|
|
2905
|
+
type: 'color',
|
|
2906
|
+
groupId: FAQ_FIELD_GROUP_IDS.style,
|
|
2907
|
+
defaultValue: {},
|
|
2908
|
+
isInline: true,
|
|
2909
|
+
showToggle: false,
|
|
2910
|
+
title: contentSettingsTr(`backgroundColorTitle`),
|
|
2911
|
+
valueConvertor: backgroundColorConvertor,
|
|
2912
|
+
},
|
|
2913
|
+
},
|
|
2914
|
+
isEnabled: true,
|
|
2915
|
+
isLocked: false,
|
|
2916
|
+
});
|
|
2806
2917
|
export const CONTENT_SETTINGS_CONFIGS = () => ({
|
|
2807
2918
|
logo: LOGO_SETTINGS_CONFIG(),
|
|
2808
2919
|
'general-link': GENERAL_LINK_CONTENT_SETTINGS_CONFIG(),
|
|
@@ -2836,4 +2947,5 @@ export const CONTENT_SETTINGS_CONFIGS = () => ({
|
|
|
2836
2947
|
'shapes-section': SHAPES_SECTION_SETTINGS_CONFIG(),
|
|
2837
2948
|
'shop-section': SHOP_SECTION_SETTINGS_CONFIG(),
|
|
2838
2949
|
'booking-section': BOOKING_SECTION_SETTINGS_CONFIG(),
|
|
2950
|
+
'faq-section': FAQ_SECTION_SETTINGS_CONFIG(),
|
|
2839
2951
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { PersonalisationMappingType, TestimonialItems, TextItem, TextMediaItem, UserPersonalisationItem, UserPersonalisationSection } from '@brand-page/models';
|
|
1
|
+
import type { FaqItem, PersonalisationMappingType, TestimonialItems, TextItem, TextMediaItem, UserPersonalisationItem, UserPersonalisationSection } from '@brand-page/models';
|
|
2
2
|
export type ContentPersonalisationMapping<T> = {
|
|
3
3
|
[key in Exclude<keyof UserPersonalisationSection, 'items'> | keyof UserPersonalisationItem]?: (keyof T)[];
|
|
4
4
|
};
|
|
5
5
|
export declare const DEFAULT_PERSONALISATION_MAPPING: ContentPersonalisationMapping<any>;
|
|
6
|
-
export declare const TEXT_MEDIA_ITEMS_PERSONALISATION_MAPPING: ContentPersonalisationMapping<TextMediaItem & TestimonialItems & TextItem>;
|
|
6
|
+
export declare const TEXT_MEDIA_ITEMS_PERSONALISATION_MAPPING: ContentPersonalisationMapping<TextMediaItem & TestimonialItems & TextItem & FaqItem>;
|
|
7
7
|
export declare const TEXT_MEDIA_CONTENT_TYPES: PersonalisationMappingType[];
|
|
8
8
|
export declare const PERSONALISATION_MAPPINGS: Partial<Record<PersonalisationMappingType, ContentPersonalisationMapping<any>>>;
|
|
@@ -17,8 +17,8 @@ export const DEFAULT_PERSONALISATION_MAPPING = {
|
|
|
17
17
|
url: ['url'],
|
|
18
18
|
};
|
|
19
19
|
export const TEXT_MEDIA_ITEMS_PERSONALISATION_MAPPING = {
|
|
20
|
-
itemTitle: ['title', 'imageTitle', 'name'],
|
|
21
|
-
itemDescription: ['paragraph', 'testimonials', 'text'],
|
|
20
|
+
itemTitle: ['title', 'imageTitle', 'name', 'question'],
|
|
21
|
+
itemDescription: ['paragraph', 'testimonials', 'text', 'answer'],
|
|
22
22
|
itemDescriptionShort: ['position'],
|
|
23
23
|
imageUrls: ['imageUrl'],
|
|
24
24
|
};
|
|
@@ -29,6 +29,7 @@ export const TEXT_MEDIA_CONTENT_TYPES = [
|
|
|
29
29
|
'text-media-items',
|
|
30
30
|
'image-gallery',
|
|
31
31
|
'text',
|
|
32
|
+
'faq-section',
|
|
32
33
|
];
|
|
33
34
|
export const PERSONALISATION_MAPPINGS = {
|
|
34
35
|
'general-link': BUTTON_PERSONALISATION_MAPPING,
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { FAQ_DISPLAY_STYLES } from '@brand-page/constants';
|
|
2
|
+
const ICON_VIEW_BOX = '0 0 96 56';
|
|
3
|
+
export const faqDisplayStyleConvertor = {
|
|
4
|
+
convertBackToMultipleValues: true,
|
|
5
|
+
convert(value) {
|
|
6
|
+
return {
|
|
7
|
+
options: [
|
|
8
|
+
// An empty title suppresses ButtonGroup's label-under-icon paragraph.
|
|
9
|
+
{
|
|
10
|
+
title: '',
|
|
11
|
+
value: FAQ_DISPLAY_STYLES.centered,
|
|
12
|
+
isSelected: value === FAQ_DISPLAY_STYLES.centered,
|
|
13
|
+
iconName: 'display-style-faq-1',
|
|
14
|
+
iconViewBox: ICON_VIEW_BOX,
|
|
15
|
+
dataAttribute: 'data-test-btn-faq-centered',
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
title: '',
|
|
19
|
+
value: FAQ_DISPLAY_STYLES.split,
|
|
20
|
+
isSelected: value === FAQ_DISPLAY_STYLES.split,
|
|
21
|
+
iconName: 'display-style-faq-2',
|
|
22
|
+
iconViewBox: ICON_VIEW_BOX,
|
|
23
|
+
dataAttribute: 'data-test-btn-faq-split',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
title: '',
|
|
27
|
+
value: FAQ_DISPLAY_STYLES.grid,
|
|
28
|
+
isSelected: value === FAQ_DISPLAY_STYLES.grid,
|
|
29
|
+
iconName: 'display-style-faq-3',
|
|
30
|
+
iconViewBox: ICON_VIEW_BOX,
|
|
31
|
+
dataAttribute: 'data-test-btn-faq-grid',
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
// Label-less buttons only fill their slot in ButtonGroup's grid mode.
|
|
35
|
+
columns: 3,
|
|
36
|
+
};
|
|
37
|
+
},
|
|
38
|
+
// The heading sits left beside the accordion in split, centred above it otherwise.
|
|
39
|
+
convertBack(config) {
|
|
40
|
+
const displayStyle = config.options.find((v) => v.isSelected)?.value ??
|
|
41
|
+
FAQ_DISPLAY_STYLES.centered;
|
|
42
|
+
const textAlign = displayStyle === FAQ_DISPLAY_STYLES.split ? 'left' : 'center';
|
|
43
|
+
return {
|
|
44
|
+
displayStyle,
|
|
45
|
+
titleStyle: { textAlign },
|
|
46
|
+
descriptionStyle: { textAlign },
|
|
47
|
+
};
|
|
48
|
+
},
|
|
49
|
+
};
|
|
@@ -52,6 +52,7 @@ export declare const ITEM_FIELD_TYPES: {
|
|
|
52
52
|
readonly 'color-replacements': "color-replacements";
|
|
53
53
|
readonly 'testimonial-items': "testimonial-items";
|
|
54
54
|
readonly 'text-items': "text-items";
|
|
55
|
+
readonly 'faq-items': "faq-items";
|
|
55
56
|
readonly 'page-dropdown': "page-dropdown";
|
|
56
57
|
readonly 'personalisation-override': "personalisation-override";
|
|
57
58
|
};
|
|
@@ -55,6 +55,7 @@ export const ITEM_FIELD_TYPES = {
|
|
|
55
55
|
'color-replacements': 'color-replacements',
|
|
56
56
|
'testimonial-items': 'testimonial-items',
|
|
57
57
|
'text-items': 'text-items',
|
|
58
|
+
'faq-items': 'faq-items',
|
|
58
59
|
'page-dropdown': 'page-dropdown',
|
|
59
60
|
'personalisation-override': 'personalisation-override',
|
|
60
61
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BrandPageModel } from '@brand-page';
|
|
2
|
-
import type { ButtonContent, ContentType, ImageContent, ProfileContent, TextContent, VideoContent, LogoContent, LogoTheme, MapContent, ImageGalleryContent, GeneralLinkContent, MailingListContent, RequestPaymentContent, ContactFormContent, BannerSectionContent, SocialLinksContent, ImagesSectionContent, TestimonialSectionContent, AboutSectionContent, DividerSectionContent, ShapesSectionContent, BrandPageType, SupportMeContent, ShopContent, BookingSectionContent } from '@brand-page';
|
|
2
|
+
import type { ButtonContent, ContentType, ImageContent, ProfileContent, TextContent, VideoContent, LogoContent, LogoTheme, MapContent, ImageGalleryContent, GeneralLinkContent, MailingListContent, RequestPaymentContent, ContactFormContent, BannerSectionContent, SocialLinksContent, ImagesSectionContent, TestimonialSectionContent, AboutSectionContent, DividerSectionContent, ShapesSectionContent, BrandPageType, SupportMeContent, ShopContent, BookingSectionContent, FaqSectionContent } from '@brand-page';
|
|
3
3
|
import type { CreateInitialContentFunction } from './content-settings-configs';
|
|
4
4
|
import type { CreateInitialContentOptions } from '@shared/content-settings/models';
|
|
5
5
|
export declare const createInitialButtonContent: (type: ContentType, iconUrl: string, options?: CreateInitialContentOptions) => () => ButtonContent;
|
|
@@ -18,6 +18,7 @@ export declare const createInitialSupportMeContent: (options?: CreateInitialCont
|
|
|
18
18
|
export declare const createInitialContactFormContent: CreateInitialContentFunction<ContactFormContent>;
|
|
19
19
|
export declare const createInitialBannerSectionContent: CreateInitialContentFunction<BannerSectionContent>;
|
|
20
20
|
export declare const createInitialBookingSectionContent: CreateInitialContentFunction<BookingSectionContent>;
|
|
21
|
+
export declare const createInitialFaqSectionContent: CreateInitialContentFunction<FaqSectionContent>;
|
|
21
22
|
export declare const createInitialImagesSectionContent: CreateInitialContentFunction<ImagesSectionContent>;
|
|
22
23
|
export declare const createInitialTestimonialSectionContent: CreateInitialContentFunction<TestimonialSectionContent>;
|
|
23
24
|
export declare const createInitialAboutSectionContent: CreateInitialContentFunction<AboutSectionContent>;
|