@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.
Files changed (597) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-B_-PPZBi.js → CreatedOnBrandCrowd-de-de-mBnhRDDT.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-BO1Kj3iA.js → CreatedOnBrandCrowd-en-us-B5G4jAq0.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-BoDJWRn2.js → CreatedOnBrandCrowd-es-es-lY-bpYf9.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-DUJZmdAy.js → CreatedOnBrandCrowd-fr-ca-BI42Y9Ma.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-DUJZmdAy.js → CreatedOnBrandCrowd-fr-fr-BI42Y9Ma.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-pIlAG13E.js → CreatedOnBrandCrowd-pt-br-DMVo-znd.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-pIlAG13E.js → CreatedOnBrandCrowd-pt-pt-DMVo-znd.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-BNJtDtvi.js → CreatedOnDcom-de-de-DFqX__oC.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-uL6WU_1S.js → CreatedOnDcom-en-us-r5Q6gn-F.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-DGZQISoF.js → CreatedOnDcom-es-es-DQxdtDnN.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-CvYWKqNh.js → CreatedOnDcom-fr-ca-Cn4oM5Ez.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-CpohVgCR.js → CreatedOnDcom-fr-fr-BHMJkd5G.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-CaKS-48n.js → CreatedOnDcom-pt-br-Bv10ZJkf.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-D4g-iecQ.js → CreatedOnDcom-pt-pt-DYNSS7Sw.js} +1 -1
  15. package/lib/src/about-CnI37uir.js +13 -0
  16. package/lib/src/add-page-DZqEIZ92.js +13 -0
  17. package/lib/src/ai-Dns_W9Yl.js +13 -0
  18. package/lib/src/align-center-C8q0p_UL.js +14 -0
  19. package/lib/src/align-justify-YW2zg_2Y.js +14 -0
  20. package/lib/src/align-left-BguHad0Z.js +14 -0
  21. package/lib/src/align-right-CFj2kC1H.js +14 -0
  22. package/lib/src/animate-fgHgaIDQ.js +14 -0
  23. package/lib/src/annotate-heart-GSDjTZnx.js +14 -0
  24. package/lib/src/arrow-down-5rpHAcDi.js +13 -0
  25. package/lib/src/arrow-left-Br85wi65.js +14 -0
  26. package/lib/src/arrow-right-hjoz-eJq.js +14 -0
  27. package/lib/src/arrow-top-right-DXcJkzfH.js +13 -0
  28. package/lib/src/arrow-up-B3d3lRC8.js +14 -0
  29. package/lib/src/arrow-up-underline-xGZLTmZB.js +14 -0
  30. package/lib/src/attach-BrJXX9gd.js +13 -0
  31. package/lib/src/auth-facebook-CrlpBUXn.js +16 -0
  32. package/lib/src/auth-facebook-white-D2eQHsVC.js +24 -0
  33. package/lib/src/auth-google-xagNyHUi.js +16 -0
  34. package/lib/src/award-DCPQbK9Y.js +14 -0
  35. package/lib/src/background-BJ2BpD_C.js +14 -0
  36. package/lib/src/badge-u-tAqeFJ.js +15 -0
  37. package/lib/src/ban-BlvjZvlc.js +10 -0
  38. package/lib/src/banner-centered-0oVEiMkv.js +28 -0
  39. package/lib/src/banner-left-d3UFgw86.js +28 -0
  40. package/lib/src/banner-q9q8zRad.js +14 -0
  41. package/lib/src/bar-DyldgIxC.js +31 -0
  42. package/lib/src/bc-mast-BC6Ft93u.js +14 -0
  43. package/lib/src/bezier-curve-Bu9TMDs-.js +14 -0
  44. package/lib/src/bezier-curve-outline-Dd_YnimO.js +14 -0
  45. package/lib/src/bold-Bsa366H0.js +14 -0
  46. package/lib/src/brand-page/constants/misc.constants.d.ts +7 -0
  47. package/lib/src/brand-page/constants/misc.constants.js +7 -0
  48. package/lib/src/brand-page/constants/styles.constants.d.ts +2 -0
  49. package/lib/src/brand-page/constants/styles.constants.js +2 -0
  50. package/lib/src/brand-page/models/content.model.d.ts +1 -0
  51. package/lib/src/brand-page/models/content.model.js +1 -0
  52. package/lib/src/brand-page/models/index.d.ts +26 -0
  53. package/lib/src/brand-page/utils/container-text-color.util.js +12 -0
  54. package/lib/src/brand-page/utils/content-callback-util.d.ts +2 -1
  55. package/lib/src/brand-page/utils/content-callback-util.js +3 -0
  56. package/lib/src/brand-page/utils/view-model.util.js +16 -0
  57. package/lib/src/brand-page/view-models.d.ts +5 -2
  58. package/lib/src/brand-page-maker/assessors/faq-accordion-color-field-visibility.assessor.d.ts +3 -0
  59. package/lib/src/brand-page-maker/assessors/faq-accordion-color-field-visibility.assessor.js +4 -0
  60. package/lib/src/brand-page-maker/assessors/index.d.ts +1 -0
  61. package/lib/src/brand-page-maker/assessors/index.js +1 -0
  62. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +1 -0
  63. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +1 -0
  64. package/lib/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.js +2 -0
  65. package/lib/src/brand-page-maker/constants/config-settings-constant.d.ts +2 -1
  66. package/lib/src/brand-page-maker/constants/config-settings-constant.js +116 -4
  67. package/lib/src/brand-page-maker/constants/personalisation.constant.d.ts +2 -2
  68. package/lib/src/brand-page-maker/constants/personalisation.constant.js +3 -2
  69. package/lib/src/brand-page-maker/convertors/faq-display-style.convertor.d.ts +3 -0
  70. package/lib/src/brand-page-maker/convertors/faq-display-style.convertor.js +49 -0
  71. package/lib/src/brand-page-maker/models/content-settings-configs.d.ts +1 -0
  72. package/lib/src/brand-page-maker/models/content-settings-configs.js +1 -0
  73. package/lib/src/brand-page-maker/models/content-settings.d.ts +2 -1
  74. package/lib/src/brand-page-maker/models/content-settings.js +46 -1
  75. package/lib/src/brand-page-maker/utils/apply-color-strategy.js +41 -17
  76. package/lib/src/brand-page-maker/utils/rte-authoring.util.js +9 -1
  77. package/lib/src/brand-page-maker/validators/field.validator.js +2 -0
  78. package/lib/src/briefcase-DWCD6pl-.js +14 -0
  79. package/lib/src/browser-CNvqg9Kx.js +14 -0
  80. package/lib/src/brush-DA2t0g6e.js +13 -0
  81. package/lib/src/building-BRO0N47t.js +10 -0
  82. package/lib/src/bulb-D30qpqcp.js +14 -0
  83. package/lib/src/{bundled-translations-yGrvPE5i.js → bundled-translations-LMpZwTQ3.js} +15 -15
  84. package/lib/src/{bundled-translations.de-DE-L4Znf8Hs.js → bundled-translations.de-DE-Dz0bbwo3.js} +35 -35
  85. package/lib/src/{bundled-translations.es-ES-D6iticrK.js → bundled-translations.es-ES-DxFSGNeu.js} +21 -21
  86. package/lib/src/{bundled-translations.fr-CA-BgAVE-9k.js → bundled-translations.fr-CA-CArr9KG-.js} +33 -33
  87. package/lib/src/{bundled-translations.fr-FR-B8GbyqxQ.js → bundled-translations.fr-FR-Ci7-8b_w.js} +9 -9
  88. package/lib/src/{bundled-translations.pt-BR-DjPU3Db7.js → bundled-translations.pt-BR-BmPWrJ7g.js} +31 -31
  89. package/lib/src/{bundled-translations.pt-PT-BaepaDpr.js → bundled-translations.pt-PT-DS8g_MFC.js} +31 -31
  90. package/lib/src/bundles/bundled-translations.de-DE.json +9 -1
  91. package/lib/src/bundles/bundled-translations.es-ES.json +9 -1
  92. package/lib/src/bundles/bundled-translations.fr-CA.json +9 -1
  93. package/lib/src/bundles/bundled-translations.fr-FR.json +9 -1
  94. package/lib/src/bundles/bundled-translations.json +9 -1
  95. package/lib/src/bundles/bundled-translations.pt-BR.json +9 -1
  96. package/lib/src/bundles/bundled-translations.pt-PT.json +9 -1
  97. package/lib/src/business-CkH9A-wX.js +13 -0
  98. package/lib/src/business-card-filled-DZQTpyPW.js +10 -0
  99. package/lib/src/button-arrow-BJ_qLnj6.js +19 -0
  100. package/lib/src/button-arrow-left-BHGR969U.js +19 -0
  101. package/lib/src/button-arrow-right-DILRPO8A.js +19 -0
  102. package/lib/src/button-brushstroke-hTDM9O94.js +21 -0
  103. package/lib/src/button-brushstroke-left-B6nKq2IC.js +14 -0
  104. package/lib/src/button-brushstroke-right-KaJVSc96.js +14 -0
  105. package/lib/src/button-dashed-oval-CGfIefIv.js +25 -0
  106. package/lib/src/button-dashed-rectangle-qA-4J2dc.js +24 -0
  107. package/lib/src/button-dashed-rounded-8zbmM63r.js +25 -0
  108. package/lib/src/button-doubleline-oval-DIe0t-WR.js +23 -0
  109. package/lib/src/button-doubleline-rectangle-vzBwnBQX.js +29 -0
  110. package/lib/src/button-doubleline-rounded-BIlEcbW4.js +23 -0
  111. package/lib/src/button-fi42to0Q.js +15 -0
  112. package/lib/src/button-justified-rhTu-8br.js +33 -0
  113. package/lib/src/button-paper-BUCQjsgW.js +16 -0
  114. package/lib/src/button-paper-bottom-Cld4xVl7.js +12 -0
  115. package/lib/src/button-paper-top-BQPrE3n5.js +12 -0
  116. package/lib/src/button-softshadow-oval-B4oALkUA.js +16 -0
  117. package/lib/src/button-softshadow-rectangle-BJgqwLFj.js +16 -0
  118. package/lib/src/button-softshadow-rounded-B68qal6q.js +16 -0
  119. package/lib/src/calculator-BI2uBJyQ.js +10 -0
  120. package/lib/src/calendar-AM3XaEXf.js +10 -0
  121. package/lib/src/callout-error-BPQ8t825.js +13 -0
  122. package/lib/src/callout-info-B5h6Q8_3.js +13 -0
  123. package/lib/src/callout-success-Cjit0tKH.js +13 -0
  124. package/lib/src/callout-warning-CJ7narSy.js +13 -0
  125. package/lib/src/cap-B52seKty.js +27 -0
  126. package/lib/src/card-D8jURN1j.js +19 -0
  127. package/lib/src/card-vertical-NG94U01Q.js +14 -0
  128. package/lib/src/cart-empty-bWNAg1CI.js +16 -0
  129. package/lib/src/chart-CR8rzy-z.js +12 -0
  130. package/lib/src/chart-bar-B-bzTwmn.js +16 -0
  131. package/lib/src/chart-column-qcK4xgPY.js +16 -0
  132. package/lib/src/chart-line-CiawAlyw.js +14 -0
  133. package/lib/src/chart-pie-D5sho8Lh.js +14 -0
  134. package/lib/src/check-BoUKe8Nd.js +13 -0
  135. package/lib/src/check-circle-light-C1sJemq2.js +14 -0
  136. package/lib/src/check-rounded-COQkWiNr.js +14 -0
  137. package/lib/src/check-thin-CRTPGQlt.js +14 -0
  138. package/lib/src/chevron-down-DC3fDa4H.js +14 -0
  139. package/lib/src/chevron-left-f1U0paMV.js +14 -0
  140. package/lib/src/chevron-right-DUklJm44.js +13 -0
  141. package/lib/src/chevron-right-wide-Dkl58AKv.js +10 -0
  142. package/lib/src/chevron-up-Dnq2_9gl.js +14 -0
  143. package/lib/src/clipboard-check-ZAGuzfFh.js +14 -0
  144. package/lib/src/clock-Bq0QC70L.js +10 -0
  145. package/lib/src/close-Ca7hFdTE.js +13 -0
  146. package/lib/src/coins-sparkle-Df6v6y5Y.js +21 -0
  147. package/lib/src/column-1-D1JJ6E1G.js +23 -0
  148. package/lib/src/column-2-C6-LowDg.js +29 -0
  149. package/lib/src/column-3-v9pOMIEU.js +35 -0
  150. package/lib/src/column-4-8NJDpLt9.js +41 -0
  151. package/lib/src/community-CEKKhXZh.js +10 -0
  152. package/lib/src/contact-message-D4bE1gVF.js +13 -0
  153. package/lib/src/content-CdplIZ1H.js +14 -0
  154. package/lib/src/copy-Dxz4YY2s.js +13 -0
  155. package/lib/src/crop-DlK9cZrn.js +13 -0
  156. package/lib/src/crown-DE7faDOy.js +13 -0
  157. package/lib/src/crown-alt-B6XeXAnE.js +10 -0
  158. package/lib/src/css/library.brand-page-brandCrowd.min.css +272 -71
  159. package/lib/src/css/library.brand-page-brandPage.min.css +273 -72
  160. package/lib/src/css/library.brand-page-designCom.min.css +272 -71
  161. package/lib/src/css/library.brand-page-preview.min.css +272 -71
  162. package/lib/src/custom-landscape-Ca5RqK9Q.js +10 -0
  163. package/lib/src/delete-C9NrBiRG.js +13 -0
  164. package/lib/src/designs-B6Bh2RpR.js +13 -0
  165. package/lib/src/desktop-CHHMtnvY.js +14 -0
  166. package/lib/src/desktop-hamburger-display-style-1-BmNvEx7f.js +31 -0
  167. package/lib/src/desktop-hamburger-display-style-2-HwKC3T1-.js +31 -0
  168. package/lib/src/desktop-hamburger-display-style-with-button-1-B7MAosA2.js +16 -0
  169. package/lib/src/desktop-hamburger-display-style-with-button-2-C12XZ7Fu.js +16 -0
  170. package/lib/src/desktop-tab-display-style-1-B_hlYXm6.js +31 -0
  171. package/lib/src/desktop-tab-display-style-2-ChDda6S4.js +31 -0
  172. package/lib/src/desktop-tab-display-style-3-u60OeCRQ.js +27 -0
  173. package/lib/src/desktop-tab-display-style-4-Bz4-CXm2.js +27 -0
  174. package/lib/src/desktop-tab-display-style-5-B0KLuZOi.js +31 -0
  175. package/lib/src/desktop-tab-display-style-6-Cg_kS-1c.js +31 -0
  176. package/lib/src/desktop-tab-display-style-7-D9ka6kTG.js +35 -0
  177. package/lib/src/desktop-tab-display-style-8-Dwpw4vpU.js +31 -0
  178. package/lib/src/desktop-tab-display-style-with-button-1-D49ggWOe.js +35 -0
  179. package/lib/src/desktop-tab-display-style-with-button-2-DRolvRRN.js +35 -0
  180. package/lib/src/desktop-tab-display-style-with-button-3-BMsP0TCG.js +35 -0
  181. package/lib/src/desktop-tab-display-style-with-button-4-BvEiHQoJ.js +31 -0
  182. package/lib/src/desktop-tab-display-style-with-button-5-C4pkR3HA.js +16 -0
  183. package/lib/src/desktop-tab-display-style-with-button-6-CBpwzTw0.js +16 -0
  184. package/lib/src/diamond-SXVjl4S0.js +14 -0
  185. package/lib/src/digital-business-card-filled-CBaI7EoL.js +33 -0
  186. package/lib/src/display-style-1-Cy58_xSc.js +39 -0
  187. package/lib/src/display-style-1-S76foJNv.js +31 -0
  188. package/lib/src/display-style-1-h_dFTtxI.js +16 -0
  189. package/lib/src/display-style-2-BRmlzz5s.js +16 -0
  190. package/lib/src/display-style-2-CKWpa-Dt.js +31 -0
  191. package/lib/src/display-style-2-DeGzooDt.js +27 -0
  192. package/lib/src/display-style-3-msgPBp4B.js +31 -0
  193. package/lib/src/display-style-4-yIhlKV5Z.js +31 -0
  194. package/lib/src/display-style-about-1-CHpJ5qpI.js +31 -0
  195. package/lib/src/display-style-about-2-CMtfl0ol.js +31 -0
  196. package/lib/src/display-style-about-3-kBwuQNql.js +31 -0
  197. package/lib/src/display-style-about-4-GcOPZOtv.js +16 -0
  198. package/lib/src/display-style-about-5-DSpvTp2Q.js +15 -0
  199. package/lib/src/display-style-about-6-kP_au_kx.js +15 -0
  200. package/lib/src/display-style-banner-1-DPzGEUpm.js +31 -0
  201. package/lib/src/display-style-banner-10-C6NcDH47.js +31 -0
  202. package/lib/src/display-style-banner-11-Bub_JNGG.js +31 -0
  203. package/lib/src/display-style-banner-12-DbbwXA8b.js +31 -0
  204. package/lib/src/display-style-banner-13-BlwxH9BR.js +32 -0
  205. package/lib/src/display-style-banner-14-brWMH6d6.js +33 -0
  206. package/lib/src/display-style-banner-15--zR6siv-.js +33 -0
  207. package/lib/src/display-style-banner-2-zrjDU9b9.js +31 -0
  208. package/lib/src/display-style-banner-3-CHh7gKhT.js +31 -0
  209. package/lib/src/display-style-banner-4-zivr-xd4.js +31 -0
  210. package/lib/src/display-style-banner-5-DD1GFPlm.js +31 -0
  211. package/lib/src/display-style-banner-6-BbeRW0Ps.js +16 -0
  212. package/lib/src/display-style-banner-7-OAfk00GO.js +16 -0
  213. package/lib/src/display-style-banner-8-BAwIbke-.js +31 -0
  214. package/lib/src/display-style-banner-9-8Jj2JpbS.js +31 -0
  215. package/lib/src/display-style-contact-1-B3cGIzKo.js +16 -0
  216. package/lib/src/display-style-contact-2-D75wCQtZ.js +16 -0
  217. package/lib/src/display-style-contact-4-DsCtgjPN.js +16 -0
  218. package/lib/src/display-style-contact-5-CRKOvT9F.js +16 -0
  219. package/lib/src/display-style-contact-6-BYasGUeL.js +16 -0
  220. package/lib/src/display-style-faq-1-Cw8I6iVf.js +16 -0
  221. package/lib/src/display-style-faq-2-DR_YSONz.js +16 -0
  222. package/lib/src/display-style-faq-3-s6tdZ9BV.js +16 -0
  223. package/lib/src/display-style-images-1-zi9VlSTl.js +16 -0
  224. package/lib/src/display-style-images-2-8JUqIipU.js +16 -0
  225. package/lib/src/display-style-images-3-Dw2t-G4s.js +16 -0
  226. package/lib/src/display-style-images-4-L1Y9NPID.js +27 -0
  227. package/lib/src/display-style-images-5-BWBcsp1s.js +16 -0
  228. package/lib/src/display-style-images-6-BysJhQVW.js +16 -0
  229. package/lib/src/divider-DUqeexLY.js +14 -0
  230. package/lib/src/divider-thick-DOpnsgpC.js +23 -0
  231. package/lib/src/divider-thin-0jk0MJ9W.js +23 -0
  232. package/lib/src/donate-D9ykv0zR.js +13 -0
  233. package/lib/src/download-g0I3gsrl.js +14 -0
  234. package/lib/src/duplicate-Cu3SuEYo.js +13 -0
  235. package/lib/src/edit-4q5f2nYo.js +13 -0
  236. package/lib/src/edit-line-pJ3kAwQt.js +16 -0
  237. package/lib/src/ellipsis-C9MDg_6Q.js +13 -0
  238. package/lib/src/email-BO1uNcOp.js +10 -0
  239. package/lib/src/email-symbol-CQrZdzKo.js +10 -0
  240. package/lib/src/envelope-email-Cj9pNGlg.js +16 -0
  241. package/lib/src/eraser-9w1-rJ4P.js +10 -0
  242. package/lib/src/error-BBiB5Tlc.js +13 -0
  243. package/lib/src/etsy-Jo67P3Gl.js +10 -0
  244. package/lib/src/external-link-CKFq3VRK.js +10 -0
  245. package/lib/src/eye-crossed-6zqb50Gv.js +14 -0
  246. package/lib/src/eye-open-19ZZxXd3.js +24 -0
  247. package/lib/src/facebook-uRyq0o0i.js +10 -0
  248. package/lib/src/favicon-C4D7FdoA.js +14 -0
  249. package/lib/src/fees-C7kQOtOf.js +13 -0
  250. package/lib/src/file-box-DL8WZYoR.js +13 -0
  251. package/lib/src/file-empty-D3sH29HM.js +14 -0
  252. package/lib/src/file-zDnCpksX.js +14 -0
  253. package/lib/src/filter-C52Ks-M6.js +14 -0
  254. package/lib/src/filter-CQovjzx2.js +13 -0
  255. package/lib/src/filters-DcTKclYY.js +13 -0
  256. package/lib/src/flag-Dnjqvqq8.js +16 -0
  257. package/lib/src/flip-horizontal-BIZr1vpq.js +14 -0
  258. package/lib/src/flip-vertical-DEb0itBF.js +14 -0
  259. package/lib/src/flyer-Bys-HIC3.js +14 -0
  260. package/lib/src/folder-CL5KVqdq.js +13 -0
  261. package/lib/src/font-sYr58s_H.js +14 -0
  262. package/lib/src/footer-centered-BqMBNIGz.js +35 -0
  263. package/lib/src/footer-left-Ccp2ULen.js +35 -0
  264. package/lib/src/form-D7N4tMOT.js +10 -0
  265. package/lib/src/form-message-DbO0C-gP.js +13 -0
  266. package/lib/src/fullscreen-BmIyHNIW.js +10 -0
  267. package/lib/src/fullscreen-exit-1gcHbNB4.js +10 -0
  268. package/lib/src/gift-certificate-pzLDGZhy.js +10 -0
  269. package/lib/src/globe-BDXo0cOb.js +13 -0
  270. package/lib/src/globe-BL8reMFV.js +10 -0
  271. package/lib/src/globe-C20Cq6jl.js +13 -0
  272. package/lib/src/group-B-0N6UzE.js +13 -0
  273. package/lib/src/hamburger-1-CKItj3vm.js +17 -0
  274. package/lib/src/hamburger-2-Dpur2d56.js +19 -0
  275. package/lib/src/hamburger-3-BI2RkTRX.js +19 -0
  276. package/lib/src/hamburger-4-B1Jz6kZC.js +15 -0
  277. package/lib/src/hamburger-BUFlrUAV.js +31 -0
  278. package/lib/src/hamburger-DIu8wreU.js +19 -0
  279. package/lib/src/hamburger-display-style-no-logo-1-LGyAZh2r.js +27 -0
  280. package/lib/src/hamburger-display-style-no-logo-2-CFW3b5ep.js +27 -0
  281. package/lib/src/hamburger-display-style-no-logo-3-D8BdxhKz.js +27 -0
  282. package/lib/src/headphones-DdDMjtWq.js +14 -0
  283. package/lib/src/heart-DhiUsjT5.js +14 -0
  284. package/lib/src/history-Ds5StoNa.js +41 -0
  285. package/lib/src/home-D5CM-18a.js +13 -0
  286. package/lib/src/home-DnJDV34r.js +14 -0
  287. package/lib/src/home-outline-DHwkwQ8H.js +13 -0
  288. package/lib/src/icon-style-circle-bg-eueVCqP6.js +29 -0
  289. package/lib/src/icon-style-no-bg-Bm0n136m.js +23 -0
  290. package/lib/src/icon-style-square-bg-PjimqOKL.js +29 -0
  291. package/lib/src/image-B6CdzFNb.js +14 -0
  292. package/lib/src/image-aTbRfIye.js +14 -0
  293. package/lib/src/image-gallery-carousel-CeDdnPD1.js +22 -0
  294. package/lib/src/image-gallery-grid-C1GMg9Gl.js +32 -0
  295. package/lib/src/image-gallery-masonry-BxhDtpzE.js +26 -0
  296. package/lib/src/images-CCpkSySQ.js +14 -0
  297. package/lib/src/images-gallery-BvYPXZPT.js +10 -0
  298. package/lib/src/index.mjs +164 -163
  299. package/lib/src/info-ChfLUrQt.js +21 -0
  300. package/lib/src/infographics-Dewgf4iV.js +10 -0
  301. package/lib/src/instagram-wsTJWPeU.js +14 -0
  302. package/lib/src/invitation-CaYB86pH.js +10 -0
  303. package/lib/src/invoice-vtBL5SP2.js +10 -0
  304. package/lib/src/italic-BdUC-A7M.js +14 -0
  305. package/lib/src/jobs-B370Mmg9.js +13 -0
  306. package/lib/src/layer-Ds-Buemp.js +13 -0
  307. package/lib/src/layer-bring-front-DnB9LWFk.js +13 -0
  308. package/lib/src/layer-send-back-CGrxFmn6.js +13 -0
  309. package/lib/src/layout-BHK1BaA9.js +10 -0
  310. package/lib/src/layout-icon-bottom-normal-text-center-normal-B9FqgR-v.js +35 -0
  311. package/lib/src/layout-icon-bottom-normal-text-center-small-D3w4JbDB.js +35 -0
  312. package/lib/src/layout-icon-bottom-small-text-center-normal-D6MWRGOG.js +35 -0
  313. package/lib/src/layout-icon-center-normal-curved-text-bottom-DV1RSxdT.js +33 -0
  314. package/lib/src/layout-icon-center-normal-curved-text-circle-prEv3x-E.js +26 -0
  315. package/lib/src/layout-icon-center-normal-curved-text-top-C5o-VQll.js +33 -0
  316. package/lib/src/layout-icon-left-normal-text-center-normal-B7F9B7wu.js +35 -0
  317. package/lib/src/layout-icon-left-normal-text-justify-normal-CWSe9jHg.js +35 -0
  318. package/lib/src/layout-icon-left-normal-text-left-normal-HcOn2p71.js +35 -0
  319. package/lib/src/layout-icon-left-small-text-left-normal-_xbmTGfP.js +35 -0
  320. package/lib/src/layout-icon-right-normal-text-center-normal-Cei718Uj.js +35 -0
  321. package/lib/src/layout-icon-right-normal-text-justify-normal-DrXgBU_t.js +35 -0
  322. package/lib/src/layout-icon-right-normal-text-right-normal-CJds9J9_.js +35 -0
  323. package/lib/src/layout-icon-right-small-text-right-normal-B0-ivJke.js +35 -0
  324. package/lib/src/layout-icon-top-normal-text-center-normal-Dmq-Y0u7.js +35 -0
  325. package/lib/src/layout-icon-top-normal-text-center-small-BtBe5fGK.js +35 -0
  326. package/lib/src/layout-icon-top-normal-text-justify-normal-DYoDdVC-.js +35 -0
  327. package/lib/src/layout-icon-top-small-text-center-normal-CTXOiabZ.js +35 -0
  328. package/lib/src/letterhead-filled-DBu50uYq.js +10 -0
  329. package/lib/src/{lib-DwDFHSzX.js → lib-vHQ3PSie.js} +34702 -39973
  330. package/lib/src/lightning-5ADYjnFL.js +14 -0
  331. package/lib/src/link-C3HnGy4o.js +13 -0
  332. package/lib/src/link-C_Lh5Jan.js +14 -0
  333. package/lib/src/link-in-bio-filled-B8RuhBme.js +33 -0
  334. package/lib/src/linkedin-Dlg5fAaU.js +14 -0
  335. package/lib/src/list-bullet-DmBZCkM7.js +18 -0
  336. package/lib/src/list-numbered-BGrezA_n.js +26 -0
  337. package/lib/src/location-yh3Xfuga.js +13 -0
  338. package/lib/src/lock-Cu_dcYhc.js +13 -0
  339. package/lib/src/log-out-C5hfDL2n.js +14 -0
  340. package/lib/src/logo-CL5m5BWX.js +10 -0
  341. package/lib/src/logo-EKc7Pjwr.js +14 -0
  342. package/lib/src/mac-command-CpxA6pTu.js +15 -0
  343. package/lib/src/map-Dui__0Ec.js +13 -0
  344. package/lib/src/media-BBoSZjaF.js +10 -0
  345. package/lib/src/menu-CbxHZmO4.js +10 -0
  346. package/lib/src/message-DPMrMEK5.js +13 -0
  347. package/lib/src/metadata-builder/parsers/section-tool-arguments.d.ts +1 -1
  348. package/lib/src/microphone-Ulm-DZ9e.js +10 -0
  349. package/lib/src/microphone-bold---tnFcZw.js +14 -0
  350. package/lib/src/minus-RKoA-v7m.js +13 -0
  351. package/lib/src/minus-circle-light-DVmQ8wb4.js +14 -0
  352. package/lib/src/mobile-Cuh5LHRF.js +10 -0
  353. package/lib/src/mobile-hamburger-display-style-1-BOllFoYV.js +31 -0
  354. package/lib/src/mobile-hamburger-display-style-2-Bl_kYi2k.js +31 -0
  355. package/lib/src/mobile-hamburger-display-style-3-CofdK6hQ.js +31 -0
  356. package/lib/src/mobile-hamburger-display-style-4-BynvHkLX.js +31 -0
  357. package/lib/src/mobile-tab-display-style-1-BQhQczsO.js +31 -0
  358. package/lib/src/mobile-tab-display-style-2-CpvC1Kdh.js +31 -0
  359. package/lib/src/mobile-tab-display-style-with-button-1-jtm_oP8o.js +16 -0
  360. package/lib/src/mobile-tab-display-style-with-button-2-jkXhV45J.js +16 -0
  361. package/lib/src/mug-CZlWo8xS.js +35 -0
  362. package/lib/src/opacity-CtF3qrBX.js +13 -0
  363. package/lib/src/other-Rc3vvDCz.js +29 -0
  364. package/lib/src/page-blank-R4s0mnRQ.js +13 -0
  365. package/lib/src/page-buttons-CmXeHP0R.js +18 -0
  366. package/lib/src/page-hamburger-B7Lk-3ZF.js +37 -0
  367. package/lib/src/page-tabs-MjO1JBWs.js +39 -0
  368. package/lib/src/pages-CJlytYHc.js +13 -0
  369. package/lib/src/paint-brush-FcK9fjBb.js +10 -0
  370. package/lib/src/palette-4SUWhjbq.js +14 -0
  371. package/lib/src/palette-outline-C7r-M93I.js +14 -0
  372. package/lib/src/pause-91-IaU2Y.js +10 -0
  373. package/lib/src/pause-Ctxbpymr.js +10 -0
  374. package/lib/src/payment-BkD8iKZW.js +21 -0
  375. package/lib/src/payments-featured-Bbh08Qjq.js +27 -0
  376. package/lib/src/payments-textonly-BTmHmYL0.js +40 -0
  377. package/lib/src/payments-thumbnail-BPTVIUV-.js +29 -0
  378. package/lib/src/pen-BwBOCbPm.js +14 -0
  379. package/lib/src/pen-outline-CvdifQK5.js +14 -0
  380. package/lib/src/pen-sparkle-Box2OjVT.js +26 -0
  381. package/lib/src/pen-tool-CdofztVF.js +14 -0
  382. package/lib/src/phone-Bzf9u7XL.js +13 -0
  383. package/lib/src/phone-CcHHxJyq.js +10 -0
  384. package/lib/src/pinterest-LH9q082w.js +10 -0
  385. package/lib/src/play-fq91XbWs.js +10 -0
  386. package/lib/src/plus-C3-SVt99.js +10 -0
  387. package/lib/src/plus-circle-haGZutJ1.js +14 -0
  388. package/lib/src/plus-circle-light-DXgDGKPn.js +15 -0
  389. package/lib/src/plus-light-BxlUuR3I.js +14 -0
  390. package/lib/src/poll-b7sgInUR.js +10 -0
  391. package/lib/src/portfolio-BY_vB67Z.js +13 -0
  392. package/lib/src/postcard-DMhujcts.js +10 -0
  393. package/lib/src/poster-D5jYbk1G.js +14 -0
  394. package/lib/src/premium-content-CTnweAK0.js +21 -0
  395. package/lib/src/preview-BHD4xFsj.js +13 -0
  396. package/lib/src/printing-CfJbnRgn.js +13 -0
  397. package/lib/src/processing-DqEt82cw.js +10 -0
  398. package/lib/src/profile-CgLR9SYs.js +10 -0
  399. package/lib/src/qrcode-BRFeSDHI.js +10 -0
  400. package/lib/src/question-DVh4waO2.js +21 -0
  401. package/lib/src/question-alt-hJ1o_Q_V.js +29 -0
  402. package/lib/src/question-circle-filled-CFs8UyHM.js +14 -0
  403. package/lib/src/quote-de6tAUMn.js +12 -0
  404. package/lib/src/ratio-1-1-zHjUStOP.js +15 -0
  405. package/lib/src/ratio-16-9-BFb8CamZ.js +15 -0
  406. package/lib/src/ratio-2-3-C1bykLds.js +15 -0
  407. package/lib/src/ratio-3-2-DTvfuwth.js +15 -0
  408. package/lib/src/ratio-3-4-0hG9lP6D.js +15 -0
  409. package/lib/src/ratio-4-3-hAz54s--.js +15 -0
  410. package/lib/src/ratio-9-16-BbUCV5m5.js +15 -0
  411. package/lib/src/ratio-circle-D6demlJH.js +15 -0
  412. package/lib/src/ratio-original-BvkJVUky.js +23 -0
  413. package/lib/src/redo--Ifx7f2f.js +13 -0
  414. package/lib/src/refresh-DjHReUDY.js +13 -0
  415. package/lib/src/reload-DT8EwyWF.js +13 -0
  416. package/lib/src/reorderable-DYPqA4mP.js +10 -0
  417. package/lib/src/request-payment-1uQZiFVG.js +13 -0
  418. package/lib/src/reset-BJ4wGF4t.js +13 -0
  419. package/lib/src/resize-Bkz3CVYj.js +25 -0
  420. package/lib/src/roller-brush-BKDdH5q1.js +10 -0
  421. package/lib/src/save-CyvtIUOH.js +13 -0
  422. package/lib/src/search-Bn0oVn01.js +14 -0
  423. package/lib/src/secure-BUbQFh_w.js +14 -0
  424. package/lib/src/select-all-Bm7KzAg1.js +24 -0
  425. package/lib/src/send-DxZKgW4U.js +23 -0
  426. package/lib/src/services-BlIg0gbZ.js +12 -0
  427. package/lib/src/settings-Bxc3dhgh.js +15 -0
  428. package/lib/src/shape-BUIXdfkB.js +10 -0
  429. package/lib/src/share-Ck2PdAbb.js +17 -0
  430. package/lib/src/shared/color-strategies/color-strategies.js +4 -0
  431. package/lib/src/shared/color-strategies/rte-field-pairs.d.ts +10 -0
  432. package/lib/src/shared/color-strategies/rte-field-pairs.js +22 -0
  433. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +1 -0
  434. package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +2 -1
  435. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +1 -0
  436. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +1 -0
  437. package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.d.ts +1 -0
  438. package/lib/src/shared/content-settings/components/items-field/ItemsField.mixin.d.ts +1 -0
  439. package/lib/src/shared/content-settings/components/items-field/ItemsField.mixin.js +3 -0
  440. package/lib/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.d.ts +2 -0
  441. package/lib/src/shared/content-settings/store/content-settings-store.d.ts +2 -0
  442. package/lib/src/shared/content-settings/store/content-settings-store.js +23 -3
  443. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +1 -0
  444. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +1 -0
  445. package/lib/src/shield-tick-BqesXT6U.js +13 -0
  446. package/lib/src/shop-rT0JkEba.js +13 -0
  447. package/lib/src/size-auto-CWZU3SNg.js +10 -0
  448. package/lib/src/size-landscape-DN0ZUbG1.js +10 -0
  449. package/lib/src/size-portrait-BCDQOCQP.js +10 -0
  450. package/lib/src/size-square-Dk0ywIEw.js +10 -0
  451. package/lib/src/sms-DgS07IDl.js +10 -0
  452. package/lib/src/snapchat-B9mEk1WD.js +10 -0
  453. package/lib/src/social-facebook-BYeLY-QL.js +13 -0
  454. package/lib/src/social-facebook-DHTz-GCi.js +10 -0
  455. package/lib/src/social-facebook-color-Cp9va_WX.js +25 -0
  456. package/lib/src/social-google-BihuqlwB.js +10 -0
  457. package/lib/src/social-google-CMG-PaBh.js +13 -0
  458. package/lib/src/social-instagram-CYuFeEC8.js +13 -0
  459. package/lib/src/social-instagram-color-BEuzfTt4.js +62 -0
  460. package/lib/src/social-linkedin-color-DnLJtP_K.js +21 -0
  461. package/lib/src/social-share-BBuGIZLF.js +12 -0
  462. package/lib/src/social-twitter-DQlhcmO_.js +13 -0
  463. package/lib/src/social-twitter-color-D6glrrz_.js +25 -0
  464. package/lib/src/social-youtube-ehBXYyXY.js +13 -0
  465. package/lib/src/sort-dsDk3cJy.js +10 -0
  466. package/lib/src/soundcloud-FXItloDZ.js +14 -0
  467. package/lib/src/spacing-CLXSY0a3.js +27 -0
  468. package/lib/src/sparkle-square-B8_DUO64.js +31 -0
  469. package/lib/src/squares-Bh501gE7.js +14 -0
  470. package/lib/src/star-filled-DCJ1kr1k.js +13 -0
  471. package/lib/src/star-hollow-1P0edhe4.js +13 -0
  472. package/lib/src/sticker-DO_FPV66.js +35 -0
  473. package/lib/src/stop-CHfUQAYZ.js +10 -0
  474. package/lib/src/strikethrough-Q-Cjrlrq.js +14 -0
  475. package/lib/src/styles-BNMPa-i9.js +10 -0
  476. package/lib/src/submit-BuhaLla8.js +10 -0
  477. package/lib/src/t-shirt-CpqpjALA.js +39 -0
  478. package/lib/src/tab-display-style-no-logo-1-V5sgWAS1.js +27 -0
  479. package/lib/src/tab-display-style-no-logo-2-DjOBOyRA.js +27 -0
  480. package/lib/src/tab-display-style-no-logo-3-CsQU2RQG.js +27 -0
  481. package/lib/src/templates-BhYZOvN1.js +14 -0
  482. package/lib/src/testimonial-big-image-BJgG59uO.js +36 -0
  483. package/lib/src/testimonial-centered-SVJu3v9h.js +32 -0
  484. package/lib/src/testimonial-columns-Cqe3BnaX.js +40 -0
  485. package/lib/src/text-B3U_w6jH.js +14 -0
  486. package/lib/src/text-CmNuVy9M.js +14 -0
  487. package/lib/src/text-background-color-Z9NZCfeS.js +21 -0
  488. package/lib/src/text-color-DIt0vljx.js +23 -0
  489. package/lib/src/text-image-C1i9QEkX.js +44 -0
  490. package/lib/src/text-image-center-EmnA0ghU.js +28 -0
  491. package/lib/src/text-image-justified-F2-n0Zlg.js +35 -0
  492. package/lib/src/text-image-left-BZ3_S9OW.js +29 -0
  493. package/lib/src/text-image-only-Bo1hDo-_.js +21 -0
  494. package/lib/src/text-image-right-Y1GTFFDk.js +29 -0
  495. package/lib/src/thankyou-card-4IR09ojS.js +10 -0
  496. package/lib/src/thumbs-up-Ctl0ZuDo.js +10 -0
  497. package/lib/src/tiktok-CyGJ9TpC.js +10 -0
  498. package/lib/src/time-BoZe-_gU.js +13 -0
  499. package/lib/src/tools-PGAS66bO.js +10 -0
  500. package/lib/src/tooltip-bottom-Du7utXai.js +12 -0
  501. package/lib/src/tooltip-left-DhcpWIXG.js +12 -0
  502. package/lib/src/tooltip-right-C3YM_L_e.js +12 -0
  503. package/lib/src/tooltip-top-DEVGBKWp.js +12 -0
  504. package/lib/src/transition-CFYiHwQg.js +27 -0
  505. package/lib/src/tumblr-DuJo2Ku6.js +10 -0
  506. package/lib/src/twitch-BIWCnc9w.js +14 -0
  507. package/lib/src/twitter-CB4llYeJ.js +10 -0
  508. package/lib/src/underline-D8DpHTwA.js +14 -0
  509. package/lib/src/undo-CpE_xDEa.js +13 -0
  510. package/lib/src/upgrade-alt-DAl1NqA6.js +14 -0
  511. package/lib/src/upgrade-oh0lvPP4.js +16 -0
  512. package/lib/src/upgrade-to-add-page-Dj5IeWUB.js +57 -0
  513. package/lib/src/upgrade-to-contact-form-ByBYHR1w.js +95 -0
  514. package/lib/src/upgrade-to-google-ad-CtHChyB-.js +129 -0
  515. package/lib/src/upgrade-to-maps-w3LVao8K.js +56 -0
  516. package/lib/src/upgrade-to-publish-DQ_Cf7OY.js +119 -0
  517. package/lib/src/upgrade-to-remove-watermark-BUeT0ret.js +108 -0
  518. package/lib/src/upgrade-to-videos-BtssuzXy.js +54 -0
  519. package/lib/src/upload-DBmX5U1T.js +10 -0
  520. package/lib/src/upload-arrow-BUDuxXPO.js +10 -0
  521. package/lib/src/uppercase-Df-wYy_q.js +24 -0
  522. package/lib/src/user-accounts-B5KphoEO.js +10 -0
  523. package/lib/src/user-headset-D4Br9KDU.js +57 -0
  524. package/lib/src/users-2-DQdjQahr.js +15 -0
  525. package/lib/src/users-T7iBUemv.js +14 -0
  526. package/lib/src/video-DsoO5Y5b.js +10 -0
  527. package/lib/src/volume-muted-DhMSv_dG.js +10 -0
  528. package/lib/src/volume-npTikHfN.js +10 -0
  529. package/lib/src/watchlist-filled-CbBhwRcY.js +24 -0
  530. package/lib/src/watchlist-hollow-B395lGfZ.js +13 -0
  531. package/lib/src/watchlist-hollow-alt-Djk6RIK9.js +24 -0
  532. package/lib/src/website-BNoGr6cM.js +13 -0
  533. package/lib/src/website-filled-D0MFpZU7.js +10 -0
  534. package/lib/src/whatsapp-DkpDY9MO.js +14 -0
  535. package/lib/src/wholesale-Cach3yo9.js +13 -0
  536. package/lib/src/wrap-text-Iqd-3_xm.js +15 -0
  537. package/lib/src/youtube-D8mXT3Ho.js +10 -0
  538. package/lib/src/zoom-C50O2YhZ.js +16 -0
  539. package/lib/src/zoom-in-lmqi7IM_.js +10 -0
  540. package/lib/src/zoom-out-CRkgtd46.js +10 -0
  541. package/lib/src/zoom-w74FIjVh.js +10 -0
  542. package/package.json +2 -2
  543. package/src/brand-page/components/faq-section/FaqSection.test.ts +196 -0
  544. package/src/brand-page/components/faq-section/FaqSection.vue +315 -0
  545. package/src/brand-page/components/page/PageComponent.vue +2 -0
  546. package/src/brand-page/constants/misc.constants.ts +9 -0
  547. package/src/brand-page/constants/styles.constants.ts +2 -0
  548. package/src/brand-page/models/content.model.ts +1 -0
  549. package/src/brand-page/models/index.ts +29 -0
  550. package/src/brand-page/utils/container-text-color.util.test.ts +126 -0
  551. package/src/brand-page/utils/container-text-color.util.ts +16 -0
  552. package/src/brand-page/utils/content-callback-util.ts +5 -0
  553. package/src/brand-page/utils/personalisation.util.test.ts +53 -0
  554. package/src/brand-page/utils/view-model.util.ts +26 -0
  555. package/src/brand-page/view-models.ts +8 -1
  556. package/src/brand-page-maker/assessors/faq-accordion-color-field-visibility.assessor.ts +9 -0
  557. package/src/brand-page-maker/assessors/index.ts +1 -0
  558. package/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.ts +2 -0
  559. package/src/brand-page-maker/constants/config-settings-constant.ts +122 -1
  560. package/src/brand-page-maker/constants/faq-section-config.test.ts +22 -0
  561. package/src/brand-page-maker/constants/personalisation.constant.ts +5 -3
  562. package/src/brand-page-maker/convertors/faq-display-style.convertor.ts +61 -0
  563. package/src/brand-page-maker/models/content-settings-configs.ts +1 -0
  564. package/src/brand-page-maker/models/content-settings.test.ts +6 -0
  565. package/src/brand-page-maker/models/content-settings.ts +51 -0
  566. package/src/brand-page-maker/utils/__snapshots__/apply-color-strategy.golden.test.ts.snap +2940 -300
  567. package/src/brand-page-maker/utils/apply-color-strategy.test.ts +93 -2
  568. package/src/brand-page-maker/utils/apply-color-strategy.ts +69 -19
  569. package/src/brand-page-maker/utils/rte-authoring.util.test.ts +30 -0
  570. package/src/brand-page-maker/utils/rte-authoring.util.ts +14 -0
  571. package/src/brand-page-maker/validators/field.validator.ts +2 -0
  572. package/src/bundles/bundled-translations.de-DE.json +9 -1
  573. package/src/bundles/bundled-translations.es-ES.json +9 -1
  574. package/src/bundles/bundled-translations.fr-CA.json +9 -1
  575. package/src/bundles/bundled-translations.fr-FR.json +9 -1
  576. package/src/bundles/bundled-translations.json +9 -1
  577. package/src/bundles/bundled-translations.pt-BR.json +9 -1
  578. package/src/bundles/bundled-translations.pt-PT.json +9 -1
  579. package/src/metadata-builder/parsers/section-tool-arguments.ts +2 -1
  580. package/src/shared/color-strategies/color-strategies.ts +4 -0
  581. package/src/shared/color-strategies/rte-field-pairs.test.ts +2 -0
  582. package/src/shared/color-strategies/rte-field-pairs.ts +34 -0
  583. package/src/shared/content-settings/components/content-settings/i18n/content-settings.de-DE.json +10 -1
  584. package/src/shared/content-settings/components/content-settings/i18n/content-settings.es-ES.json +10 -1
  585. package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-CA.json +10 -1
  586. package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-FR.json +10 -1
  587. package/src/shared/content-settings/components/content-settings/i18n/content-settings.json +10 -1
  588. package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-BR.json +10 -1
  589. package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-PT.json +10 -1
  590. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.vue +2 -0
  591. package/src/shared/content-settings/components/faq-items-field/FaqItemsField.test.ts +162 -0
  592. package/src/shared/content-settings/components/faq-items-field/FaqItemsField.vue +287 -0
  593. package/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.vue +1 -0
  594. package/src/shared/content-settings/components/items-field/ItemsField.mixin.ts +3 -0
  595. package/src/shared/content-settings/components/items-field/ItemsField.vue +13 -3
  596. package/src/shared/content-settings/store/content-settings-store.test.ts +86 -0
  597. 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 =
@@ -31,6 +31,7 @@ export const CONTENT_TYPES = {
31
31
  'shapes-section': 'shapes-section',
32
32
  'shop-section': 'shop-section',
33
33
  'booking-section': 'booking-section',
34
+ 'faq-section': 'faq-section',
34
35
  } as const;
35
36
 
36
37
  export type ContentType = keyof typeof CONTENT_TYPES;
@@ -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[];
@@ -1244,6 +1244,132 @@ 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
+ // The shared style's colour is only the birth colour; a question recoloured in its doc keeps
1275
+ // that colour when a later text-style change re-runs contrast (applyCardContrastToItem).
1276
+ test("a re-run bakes only the shared style, never over a recoloured question's doc", () => {
1277
+ const styles = new PageStyles();
1278
+
1279
+ styles.colors = [
1280
+ { id: 'palette-0', value: '#000000', type: 'palette' },
1281
+ { id: 'palette-1', value: '#ffffff', type: 'palette' },
1282
+ ];
1283
+
1284
+ const redQuestion = {
1285
+ type: 'doc',
1286
+ content: [
1287
+ {
1288
+ type: 'paragraph',
1289
+ content: [
1290
+ {
1291
+ type: 'text',
1292
+ text: 'Q1',
1293
+ marks: [{ type: 'textStyle', attrs: { color: '#ff0000' } }],
1294
+ },
1295
+ ],
1296
+ },
1297
+ ],
1298
+ };
1299
+ const content = {
1300
+ id: 'faq',
1301
+ type: 'faq-section',
1302
+ backgroundStyle: { backgroundColor: 'var(--palette-0)' },
1303
+ questionStyle: { textStyleType: 'heading5' }, // colour cleared by a role change
1304
+ answerStyle: { textStyleType: 'paragraph2' },
1305
+ items: [
1306
+ { id: 'a', question: structuredClone(redQuestion), answer: 'A1' },
1307
+ ],
1308
+ } as unknown as Content & {
1309
+ questionStyle: { color?: string };
1310
+ items: { question: unknown }[];
1311
+ };
1312
+
1313
+ applyTextContrast(content, styles);
1314
+
1315
+ expect(content.questionStyle.color).toBe('var(--palette-1)');
1316
+ expect(content.items[0].question).toEqual(redQuestion);
1317
+ });
1318
+ });
1319
+
1320
+ describe('applyTextContrast — FAQ icon and divider', () => {
1321
+ const styles = (): PageStyles => {
1322
+ const pageStyles = new PageStyles();
1323
+
1324
+ pageStyles.colors = [
1325
+ { id: 'palette-0', value: '#000000', type: 'palette' },
1326
+ { id: 'palette-1', value: '#ffffff', type: 'palette' },
1327
+ ];
1328
+
1329
+ return pageStyles;
1330
+ };
1331
+
1332
+ const faq = (iconColor: BrandPageCssStyle, dividerColor: BrandPageCssStyle) =>
1333
+ ({
1334
+ id: 'f',
1335
+ type: 'faq-section',
1336
+ titleStyle: { textStyleType: 'heading4' },
1337
+ items: [],
1338
+ iconColor,
1339
+ dividerColor,
1340
+ backgroundStyle: {},
1341
+ }) as unknown as Content & {
1342
+ iconColor: BrandPageCssStyle;
1343
+ dividerColor: BrandPageCssStyle;
1344
+ };
1345
+
1346
+ test('a new FAQ stores its title colour on the icon and divider', () => {
1347
+ const content = faq({}, {});
1348
+
1349
+ applyTextContrast(content, styles());
1350
+
1351
+ const titleColour = (
1352
+ content as unknown as { titleStyle: { color?: string } }
1353
+ ).titleStyle.color;
1354
+
1355
+ expect(titleColour).toMatch(/^var\(--palette-/);
1356
+ expect(content.iconColor.color).toBe(titleColour);
1357
+ expect(content.dividerColor.backgroundColor).toBe(titleColour);
1358
+ });
1359
+
1360
+ test('an explicit or transparent colour is left alone', () => {
1361
+ const content = faq(
1362
+ { color: '#abcdef' },
1363
+ { backgroundColor: 'transparent' },
1364
+ );
1365
+
1366
+ applyTextContrast(content, styles());
1367
+
1368
+ expect(content.iconColor.color).toBe('#abcdef');
1369
+ expect(content.dividerColor.backgroundColor).toBe('transparent');
1370
+ });
1371
+ });
1372
+
1247
1373
  describe('applyTextContrast — social-links icon fill', () => {
1248
1374
  const styles = (): PageStyles => {
1249
1375
  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':
@@ -2,6 +2,7 @@ import { BrandPageModel, BRAND_PAGE_TYPES } from '../models';
2
2
  import type {
3
3
  BannerSectionContent,
4
4
  EmailContent,
5
+ FaqSectionContent,
5
6
  GeneralLinkContent,
6
7
  ImageGalleryContent,
7
8
  ImagesSectionContent,
@@ -28,6 +29,7 @@ import {
28
29
  createInitialTestimonialSectionContent,
29
30
  createInitialProfileContent,
30
31
  createInitialButtonContent,
32
+ createInitialFaqSectionContent,
31
33
  } from '@brand-page-maker/models';
32
34
  import { faker } from '@faker-js/faker';
33
35
  import { isTiptapDocument } from '@brand-page-maker/utils';
@@ -860,6 +862,57 @@ describe('personalisation.util', async () => {
860
862
  );
861
863
  });
862
864
 
865
+ test('applyUserPersonalisationToBrandPageModelAsync personalises an FAQ title, description and each item', async () => {
866
+ const faq = createInitialFaqSectionContent();
867
+ const faqContent = {
868
+ ...faq,
869
+ title: 'title',
870
+ description: 'description',
871
+ items: [
872
+ {
873
+ ...faq.items[0],
874
+ id: 'q1',
875
+ question: 'Question 1',
876
+ answer: 'Answer 1',
877
+ },
878
+ {
879
+ ...faq.items[0],
880
+ id: 'q2',
881
+ question: 'Question 2',
882
+ answer: 'Answer 2',
883
+ },
884
+ ],
885
+ personalisationRole: 'about',
886
+ } as FaqSectionContent;
887
+
888
+ const model = new BrandPageModel({
889
+ brandPageType: BRAND_PAGE_TYPES.brandSite,
890
+ pages: [{ title: 'home', slug: 'home', contents: [faqContent] }],
891
+ });
892
+
893
+ const result = await applyUserPersonalisationToBrandPageModelAsync(
894
+ PERSONALISATION,
895
+ model,
896
+ );
897
+
898
+ const personalised = result.model.pages[0].contents[0] as FaqSectionContent;
899
+ const sourceItems = PERSONALISATION.aboutSection.items!;
900
+
901
+ expect(result.isModified).toBe(true);
902
+ expect(personalised.title).toBe(PERSONALISATION.aboutSection.title);
903
+ expect(personalised.description).toBe(
904
+ PERSONALISATION.aboutSection.descriptionShort,
905
+ );
906
+ expect(personalised.items.map((item) => item.question)).toEqual([
907
+ sourceItems[0].itemTitle,
908
+ sourceItems[1].itemTitle,
909
+ ]);
910
+ expect(personalised.items.map((item) => item.answer)).toEqual([
911
+ sourceItems[0].itemDescription,
912
+ sourceItems[1].itemDescription,
913
+ ]);
914
+ });
915
+
863
916
  test('applyUserPersonalisationToBrandPageModelAsync should not personlise certain element if override has `none`', async () => {
864
917
  // Arrange
865
918
  const textContent = {