@designcrowd/library.brand-page 6.2.16 → 6.2.17-header-logo-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (730) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-B_-PPZBi.js → CreatedOnBrandCrowd-de-de-BOI1vWbt.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-BO1Kj3iA.js → CreatedOnBrandCrowd-en-us-Jbe9uKyr.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-BoDJWRn2.js → CreatedOnBrandCrowd-es-es-Dz2jBuJE.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-DUJZmdAy.js → CreatedOnBrandCrowd-fr-ca-Cm1BpEvu.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-DUJZmdAy.js → CreatedOnBrandCrowd-fr-fr-Cm1BpEvu.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-pIlAG13E.js → CreatedOnBrandCrowd-pt-br-CN9vyvDE.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-pIlAG13E.js → CreatedOnBrandCrowd-pt-pt-CN9vyvDE.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-BNJtDtvi.js → CreatedOnDcom-de-de-BajY3tSa.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-uL6WU_1S.js → CreatedOnDcom-en-us-BxEXoQ81.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-DGZQISoF.js → CreatedOnDcom-es-es-DznU1_dJ.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-CvYWKqNh.js → CreatedOnDcom-fr-ca-i-_eVdFp.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-CpohVgCR.js → CreatedOnDcom-fr-fr-2AuegXtF.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-CaKS-48n.js → CreatedOnDcom-pt-br-B1Uh30JW.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-D4g-iecQ.js → CreatedOnDcom-pt-pt-CtJ-Ax2w.js} +1 -1
  15. package/lib/src/about-ClPbbvEP.js +13 -0
  16. package/lib/src/add-page-BG8HrWd6.js +13 -0
  17. package/lib/src/ai-BC9-shMV.js +13 -0
  18. package/lib/src/align-center-DmTZgbR6.js +14 -0
  19. package/lib/src/align-justify-DtjgYa_R.js +14 -0
  20. package/lib/src/align-left-y8c8S6kK.js +14 -0
  21. package/lib/src/align-right-CF5cjUm5.js +14 -0
  22. package/lib/src/animate-Dza5yUux.js +14 -0
  23. package/lib/src/annotate-heart-fAnAVl9h.js +14 -0
  24. package/lib/src/arrow-down-C9WFeIPW.js +13 -0
  25. package/lib/src/arrow-left-Do7NUZSU.js +14 -0
  26. package/lib/src/arrow-right-QUcZg8m9.js +14 -0
  27. package/lib/src/arrow-top-right-DEiQzge_.js +13 -0
  28. package/lib/src/arrow-up-DKq0CXS7.js +14 -0
  29. package/lib/src/arrow-up-underline-FrAMFh20.js +14 -0
  30. package/lib/src/attach-CbIEV2iB.js +13 -0
  31. package/lib/src/auth-facebook-C8Uc_vyG.js +16 -0
  32. package/lib/src/auth-facebook-white-CUC_80AY.js +24 -0
  33. package/lib/src/auth-google-MNBcZcM4.js +16 -0
  34. package/lib/src/award-BBOTZiFo.js +14 -0
  35. package/lib/src/background-FoMxgtMT.js +14 -0
  36. package/lib/src/badge-Lf6nSNsI.js +15 -0
  37. package/lib/src/ban-BDZp09m4.js +10 -0
  38. package/lib/src/banner-BknAsxzR.js +14 -0
  39. package/lib/src/banner-centered-6kWp2Seu.js +28 -0
  40. package/lib/src/banner-left-CIjB0pBU.js +28 -0
  41. package/lib/src/bar-BG_z21fP.js +31 -0
  42. package/lib/src/bc-mast-BwMW-7kD.js +14 -0
  43. package/lib/src/bezier-curve-BrWXFsTe.js +14 -0
  44. package/lib/src/bezier-curve-outline-G3QC1LUn.js +14 -0
  45. package/lib/src/bold-DPo-2It8.js +14 -0
  46. package/lib/src/brand-page/components/page/Page.mixin.d.ts +0 -8
  47. package/lib/src/brand-page/components/page/Page.mixin.js +5 -85
  48. package/lib/src/brand-page/components/page-header/HeaderLayout.stories.js +0 -1
  49. package/lib/src/brand-page/components/page-header/PageHeader.mixin.d.ts +3 -3
  50. package/lib/src/brand-page/components/page-header/PageHeader.mixin.js +18 -7
  51. package/lib/src/brand-page/constants/misc.constants.d.ts +7 -0
  52. package/lib/src/brand-page/constants/misc.constants.js +7 -0
  53. package/lib/src/brand-page/constants/sections/header-display.constants.d.ts +1 -0
  54. package/lib/src/brand-page/constants/sections/header-display.constants.js +8 -0
  55. package/lib/src/brand-page/constants/styles.constants.d.ts +2 -0
  56. package/lib/src/brand-page/constants/styles.constants.js +2 -0
  57. package/lib/src/brand-page/models/content.model.d.ts +1 -0
  58. package/lib/src/brand-page/models/content.model.js +1 -0
  59. package/lib/src/brand-page/models/index.d.ts +28 -0
  60. package/lib/src/brand-page/models/index.js +4 -0
  61. package/lib/src/brand-page/models/navigation-styles.model.d.ts +0 -1
  62. package/lib/src/brand-page/models/navigation-styles.model.js +5 -2
  63. package/lib/src/brand-page/utils/container-text-color.util.js +12 -0
  64. package/lib/src/brand-page/utils/content-callback-util.d.ts +2 -1
  65. package/lib/src/brand-page/utils/content-callback-util.js +3 -0
  66. package/lib/src/brand-page/utils/logo.util.d.ts +2 -11
  67. package/lib/src/brand-page/utils/logo.util.js +18 -23
  68. package/lib/src/brand-page/utils/migration/migration-01.js +3 -2
  69. package/lib/src/brand-page/utils/migration/migration-23.d.ts +9 -0
  70. package/lib/src/brand-page/utils/migration/migration-23.js +141 -0
  71. package/lib/src/brand-page/utils/migration.util.d.ts +3 -0
  72. package/lib/src/brand-page/utils/migration.util.js +9 -0
  73. package/lib/src/brand-page/utils/model.util.js +5 -1
  74. package/lib/src/brand-page/utils/view-model.util.js +27 -8
  75. package/lib/src/brand-page/view-models.d.ts +5 -2
  76. package/lib/src/brand-page-maker/assessors/faq-accordion-color-field-visibility.assessor.d.ts +3 -0
  77. package/lib/src/brand-page-maker/assessors/faq-accordion-color-field-visibility.assessor.js +4 -0
  78. package/lib/src/brand-page-maker/assessors/index.d.ts +1 -0
  79. package/lib/src/brand-page-maker/assessors/index.js +1 -0
  80. package/lib/src/brand-page-maker/components/admin-logo-settings/AdminLogoSettings.mixin.d.ts +0 -30
  81. package/lib/src/brand-page-maker/components/admin-logo-settings/AdminLogoSettings.mixin.js +0 -14
  82. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +1 -0
  83. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +5 -68
  84. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.js +0 -6
  85. package/lib/src/brand-page-maker/components/navigation/Navigation.mixin.d.ts +1 -1
  86. package/lib/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.js +2 -0
  87. package/lib/src/brand-page-maker/composables/useEventTracker.d.ts +5 -0
  88. package/lib/src/brand-page-maker/composables/useEventTracker.js +5 -0
  89. package/lib/src/brand-page-maker/constants/config-settings-constant.d.ts +2 -1
  90. package/lib/src/brand-page-maker/constants/config-settings-constant.js +116 -4
  91. package/lib/src/brand-page-maker/constants/personalisation.constant.d.ts +2 -2
  92. package/lib/src/brand-page-maker/constants/personalisation.constant.js +3 -2
  93. package/lib/src/brand-page-maker/convertors/faq-display-style.convertor.d.ts +3 -0
  94. package/lib/src/brand-page-maker/convertors/faq-display-style.convertor.js +49 -0
  95. package/lib/src/brand-page-maker/models/content-settings-configs.d.ts +1 -0
  96. package/lib/src/brand-page-maker/models/content-settings-configs.js +1 -0
  97. package/lib/src/brand-page-maker/models/content-settings.d.ts +2 -1
  98. package/lib/src/brand-page-maker/models/content-settings.js +46 -1
  99. package/lib/src/brand-page-maker/models/navigation-style-configs.js +0 -7
  100. package/lib/src/brand-page-maker/stores/admin-logo-settings/admin-logo-settings-store.d.ts +0 -1
  101. package/lib/src/brand-page-maker/stores/admin-logo-settings/admin-logo-settings-store.js +0 -29
  102. package/lib/src/brand-page-maker/stores/ai-checkpoint/ai-checkpoint-store.d.ts +869 -113
  103. package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.js +6 -5
  104. package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +9 -13
  105. package/lib/src/brand-page-maker/utils/apply-color-strategy.js +41 -17
  106. package/lib/src/brand-page-maker/utils/rte-authoring.util.js +9 -1
  107. package/lib/src/brand-page-maker/validators/field.validator.js +2 -0
  108. package/lib/src/briefcase-C7QRlfVj.js +14 -0
  109. package/lib/src/browser-C4Fsu9Rp.js +14 -0
  110. package/lib/src/brush-CxvXKzhS.js +13 -0
  111. package/lib/src/building-BYKxplMv.js +10 -0
  112. package/lib/src/bulb-ejC9jV8k.js +14 -0
  113. package/lib/src/{bundled-translations-yGrvPE5i.js → bundled-translations-k_KKJCnS.js} +15 -15
  114. package/lib/src/{bundled-translations.de-DE-L4Znf8Hs.js → bundled-translations.de-DE-NMDaaBnp.js} +38 -38
  115. package/lib/src/{bundled-translations.es-ES-D6iticrK.js → bundled-translations.es-ES-CwkmEZam.js} +21 -21
  116. package/lib/src/{bundled-translations.fr-CA-BgAVE-9k.js → bundled-translations.fr-CA-BndgRIav.js} +33 -33
  117. package/lib/src/{bundled-translations.fr-FR-B8GbyqxQ.js → bundled-translations.fr-FR-Djo92wzG.js} +9 -9
  118. package/lib/src/{bundled-translations.pt-BR-DjPU3Db7.js → bundled-translations.pt-BR-Ce49ABPX.js} +19 -19
  119. package/lib/src/{bundled-translations.pt-PT-BaepaDpr.js → bundled-translations.pt-PT-CQlSVyFK.js} +39 -39
  120. package/lib/src/bundles/bundled-translations.de-DE.json +9 -2
  121. package/lib/src/bundles/bundled-translations.es-ES.json +9 -2
  122. package/lib/src/bundles/bundled-translations.fr-CA.json +9 -2
  123. package/lib/src/bundles/bundled-translations.fr-FR.json +9 -2
  124. package/lib/src/bundles/bundled-translations.json +10 -2
  125. package/lib/src/bundles/bundled-translations.pt-BR.json +9 -2
  126. package/lib/src/bundles/bundled-translations.pt-PT.json +9 -2
  127. package/lib/src/business-Bb8SY_4t.js +13 -0
  128. package/lib/src/business-card-filled-CvgmlFmT.js +10 -0
  129. package/lib/src/button-BFsYcRhD.js +15 -0
  130. package/lib/src/button-arrow-BJx7gSqA.js +19 -0
  131. package/lib/src/button-arrow-left-DH4AWq7r.js +19 -0
  132. package/lib/src/button-arrow-right-BCiUB6QH.js +19 -0
  133. package/lib/src/button-brushstroke-CA1mQBL6.js +21 -0
  134. package/lib/src/button-brushstroke-left-DAkJfXp6.js +14 -0
  135. package/lib/src/button-brushstroke-right-DfpxRjrR.js +14 -0
  136. package/lib/src/button-dashed-oval-D845tDes.js +25 -0
  137. package/lib/src/button-dashed-rectangle-BaNMJI6n.js +24 -0
  138. package/lib/src/button-dashed-rounded-D8dGILRK.js +25 -0
  139. package/lib/src/button-doubleline-oval-Dc_s_7EH.js +23 -0
  140. package/lib/src/button-doubleline-rectangle-CqF3C2lU.js +29 -0
  141. package/lib/src/button-doubleline-rounded-CYgA2cdT.js +23 -0
  142. package/lib/src/button-justified-BvDf6Pbt.js +33 -0
  143. package/lib/src/button-paper-DFL_w8i5.js +16 -0
  144. package/lib/src/button-paper-bottom-Cp-RylrX.js +12 -0
  145. package/lib/src/button-paper-top-np44rCsN.js +12 -0
  146. package/lib/src/button-softshadow-oval-BXo8fPgP.js +16 -0
  147. package/lib/src/button-softshadow-rectangle-BRrS4zyV.js +16 -0
  148. package/lib/src/button-softshadow-rounded-CK-QXrTn.js +16 -0
  149. package/lib/src/calculator-CTna5RqL.js +10 -0
  150. package/lib/src/calendar-CE15qaV1.js +10 -0
  151. package/lib/src/callout-error-D7YM8n0x.js +13 -0
  152. package/lib/src/callout-info-D7Xx1xjG.js +13 -0
  153. package/lib/src/callout-success-DICEVZAa.js +13 -0
  154. package/lib/src/callout-warning-BU5vtEfM.js +13 -0
  155. package/lib/src/cap-wwLcOxPS.js +27 -0
  156. package/lib/src/card-ONdGPsCh.js +19 -0
  157. package/lib/src/card-vertical-DlQSWLzg.js +14 -0
  158. package/lib/src/cart-empty-Nrixgx0R.js +16 -0
  159. package/lib/src/chart-CR_OxcOP.js +12 -0
  160. package/lib/src/chart-bar-7kB4RLvL.js +16 -0
  161. package/lib/src/chart-column-t56f9V2P.js +16 -0
  162. package/lib/src/chart-line-CCnCNxWd.js +14 -0
  163. package/lib/src/chart-pie-C1g_-Vkn.js +14 -0
  164. package/lib/src/check-CtYH_ouU.js +13 -0
  165. package/lib/src/check-circle-light-CIJpBwsF.js +14 -0
  166. package/lib/src/check-rounded-bLPfQlOf.js +14 -0
  167. package/lib/src/check-thin-B-CckFUs.js +14 -0
  168. package/lib/src/chevron-down-C4YXkyjj.js +14 -0
  169. package/lib/src/chevron-left-Dcj9aO1z.js +14 -0
  170. package/lib/src/chevron-right-htnITdyw.js +13 -0
  171. package/lib/src/chevron-right-wide-D9W9tRvo.js +10 -0
  172. package/lib/src/chevron-up-CTimP0W7.js +14 -0
  173. package/lib/src/clipboard-check-ChrOM2YN.js +14 -0
  174. package/lib/src/clock-DiL7VZIH.js +10 -0
  175. package/lib/src/close-DIzhn1GP.js +13 -0
  176. package/lib/src/coins-sparkle-OPx3ecC6.js +21 -0
  177. package/lib/src/column-1-CjKJ1AxO.js +23 -0
  178. package/lib/src/column-2-BtVQwHmz.js +29 -0
  179. package/lib/src/column-3-C5HbER1B.js +35 -0
  180. package/lib/src/column-4-D78b2Ua0.js +41 -0
  181. package/lib/src/community-Dqkcz-_P.js +10 -0
  182. package/lib/src/contact-message-BxTj9hos.js +13 -0
  183. package/lib/src/content-DkCXjW6X.js +14 -0
  184. package/lib/src/copy-D4fvhZV9.js +13 -0
  185. package/lib/src/crop-CoDLQLHd.js +13 -0
  186. package/lib/src/crown-BRoPrP-q.js +13 -0
  187. package/lib/src/crown-alt-CujHnvIM.js +10 -0
  188. package/lib/src/css/library.brand-page-brandCrowd.min.css +642 -450
  189. package/lib/src/css/library.brand-page-brandPage.min.css +643 -451
  190. package/lib/src/css/library.brand-page-designCom.min.css +642 -450
  191. package/lib/src/css/library.brand-page-preview.min.css +642 -450
  192. package/lib/src/custom-landscape-Bdgi1FoV.js +10 -0
  193. package/lib/src/delete-C-e_Qs44.js +13 -0
  194. package/lib/src/designs-BfNTmvUa.js +13 -0
  195. package/lib/src/desktop-hamburger-display-style-1-DwFJnRU8.js +31 -0
  196. package/lib/src/desktop-hamburger-display-style-2-dnc1s6ZD.js +31 -0
  197. package/lib/src/desktop-hamburger-display-style-with-button-1-Bxt77Z0-.js +16 -0
  198. package/lib/src/desktop-hamburger-display-style-with-button-2-DcLsiFmg.js +16 -0
  199. package/lib/src/desktop-tab-display-style-1-K4eUbUQc.js +31 -0
  200. package/lib/src/desktop-tab-display-style-2-DyIWoibZ.js +31 -0
  201. package/lib/src/desktop-tab-display-style-3-C5zYi9L-.js +27 -0
  202. package/lib/src/desktop-tab-display-style-4-IBVxAP6N.js +27 -0
  203. package/lib/src/desktop-tab-display-style-5-D6HYfiSA.js +31 -0
  204. package/lib/src/desktop-tab-display-style-6-CL-F2q6q.js +31 -0
  205. package/lib/src/desktop-tab-display-style-7-CAiqt3kJ.js +35 -0
  206. package/lib/src/desktop-tab-display-style-8-D2vHv7DX.js +31 -0
  207. package/lib/src/desktop-tab-display-style-with-button-1-Bz7fzcJd.js +35 -0
  208. package/lib/src/desktop-tab-display-style-with-button-2-eK4g0CtT.js +35 -0
  209. package/lib/src/desktop-tab-display-style-with-button-3-CFiX98ZH.js +35 -0
  210. package/lib/src/desktop-tab-display-style-with-button-4-DRBCVqdy.js +31 -0
  211. package/lib/src/desktop-tab-display-style-with-button-5-V6Dy6Kqr.js +16 -0
  212. package/lib/src/desktop-tab-display-style-with-button-6-CNg8lc48.js +16 -0
  213. package/lib/src/desktop-u69TVb5p.js +14 -0
  214. package/lib/src/diamond-w78TmD0h.js +14 -0
  215. package/lib/src/digital-business-card-filled-Demt1U8P.js +33 -0
  216. package/lib/src/display-style-1-BEu6CFUT.js +16 -0
  217. package/lib/src/display-style-1-Br29nU9V.js +31 -0
  218. package/lib/src/display-style-1-CnD7K-3Z.js +39 -0
  219. package/lib/src/display-style-2-8adBygQv.js +27 -0
  220. package/lib/src/display-style-2-C2mXt6qc.js +31 -0
  221. package/lib/src/display-style-2-DN4NykmH.js +16 -0
  222. package/lib/src/display-style-3-DDbu9GXv.js +31 -0
  223. package/lib/src/display-style-4-Dn2Op2-r.js +31 -0
  224. package/lib/src/display-style-about-1-3NI-IPV2.js +31 -0
  225. package/lib/src/display-style-about-2-bs-qb4kv.js +31 -0
  226. package/lib/src/display-style-about-3-BR-0sYYQ.js +31 -0
  227. package/lib/src/display-style-about-4-DD6zb0dc.js +16 -0
  228. package/lib/src/display-style-about-5-C86_L-fC.js +15 -0
  229. package/lib/src/display-style-about-6-BOwSe1YY.js +15 -0
  230. package/lib/src/display-style-banner-1-D0neiIKT.js +31 -0
  231. package/lib/src/display-style-banner-10-ACr-5zT1.js +31 -0
  232. package/lib/src/display-style-banner-11-D00gvWkN.js +31 -0
  233. package/lib/src/display-style-banner-12-9k_yNQBW.js +31 -0
  234. package/lib/src/display-style-banner-13-B_i8Ju4N.js +32 -0
  235. package/lib/src/display-style-banner-14-CpvQCpos.js +33 -0
  236. package/lib/src/display-style-banner-15-D8MD7sJG.js +33 -0
  237. package/lib/src/display-style-banner-2-BXuh9-AX.js +31 -0
  238. package/lib/src/display-style-banner-3-BsraiGBx.js +31 -0
  239. package/lib/src/display-style-banner-4-d91-Nxci.js +31 -0
  240. package/lib/src/display-style-banner-5-CBTCuJ55.js +31 -0
  241. package/lib/src/display-style-banner-6-DSAJJlaY.js +16 -0
  242. package/lib/src/display-style-banner-7-DzySW9Xy.js +16 -0
  243. package/lib/src/display-style-banner-8-B_cgq18m.js +31 -0
  244. package/lib/src/display-style-banner-9-t-pO6Jg4.js +31 -0
  245. package/lib/src/display-style-contact-1-B-AsF6my.js +16 -0
  246. package/lib/src/display-style-contact-2-DMfhyyt9.js +16 -0
  247. package/lib/src/display-style-contact-4-BJPk2Pbd.js +16 -0
  248. package/lib/src/display-style-contact-5-BAe-BYp8.js +16 -0
  249. package/lib/src/display-style-contact-6-CFauYgFb.js +16 -0
  250. package/lib/src/display-style-faq-1-BgT0eVND.js +16 -0
  251. package/lib/src/display-style-faq-2-BbER-sTX.js +16 -0
  252. package/lib/src/display-style-faq-3-D5yHpdug.js +16 -0
  253. package/lib/src/display-style-images-1-Bwf6ugpH.js +16 -0
  254. package/lib/src/display-style-images-2-SMGCL64f.js +16 -0
  255. package/lib/src/display-style-images-3-CnsgndWT.js +16 -0
  256. package/lib/src/display-style-images-4-ZA8JRP0Z.js +27 -0
  257. package/lib/src/display-style-images-5-C8u8Febf.js +16 -0
  258. package/lib/src/display-style-images-6-BVHykxa0.js +16 -0
  259. package/lib/src/divider-CR165RhP.js +14 -0
  260. package/lib/src/divider-thick-RshAbykX.js +23 -0
  261. package/lib/src/divider-thin-PizIMmao.js +23 -0
  262. package/lib/src/donate-DbZOJZnW.js +13 -0
  263. package/lib/src/download-ujggIjZY.js +14 -0
  264. package/lib/src/duplicate-Bhw4wrh1.js +13 -0
  265. package/lib/src/edit-BXYfQeCz.js +13 -0
  266. package/lib/src/edit-line-CYDRKzj9.js +16 -0
  267. package/lib/src/ellipsis-C2pBUY6z.js +13 -0
  268. package/lib/src/email-DaIH2ZUY.js +10 -0
  269. package/lib/src/email-symbol-SrN2dmcA.js +10 -0
  270. package/lib/src/envelope-email-BgdGi32i.js +16 -0
  271. package/lib/src/eraser-Cl4jOZ57.js +10 -0
  272. package/lib/src/error-Bqd4-C8y.js +13 -0
  273. package/lib/src/etsy-DV4EID0w.js +10 -0
  274. package/lib/src/external-link-DbomUDs5.js +10 -0
  275. package/lib/src/eye-crossed-1CvXFS6f.js +14 -0
  276. package/lib/src/eye-open-CNrGpXVz.js +24 -0
  277. package/lib/src/facebook-nXogbPGh.js +10 -0
  278. package/lib/src/favicon-BiVHU_d2.js +14 -0
  279. package/lib/src/fees-s1pYEj21.js +13 -0
  280. package/lib/src/file-box-DE8tkDVZ.js +13 -0
  281. package/lib/src/file-empty-D9NIKisK.js +14 -0
  282. package/lib/src/file-xz_a3HRC.js +14 -0
  283. package/lib/src/filter-BGGlmF74.js +14 -0
  284. package/lib/src/filter-BaHyfH4_.js +13 -0
  285. package/lib/src/filters-C9AT7gv9.js +13 -0
  286. package/lib/src/flag-CC_ibmfv.js +16 -0
  287. package/lib/src/flip-horizontal-CTBNXrTn.js +14 -0
  288. package/lib/src/flip-vertical-CDTrW306.js +14 -0
  289. package/lib/src/flyer-GZKJlWPk.js +14 -0
  290. package/lib/src/folder-BQ5gFVJm.js +13 -0
  291. package/lib/src/font-BOv93oqt.js +14 -0
  292. package/lib/src/footer-centered-Da9U18UX.js +35 -0
  293. package/lib/src/footer-left-Bnc_KqHz.js +35 -0
  294. package/lib/src/form-CmQAxidA.js +10 -0
  295. package/lib/src/form-message-C3SI_2VM.js +13 -0
  296. package/lib/src/fullscreen-BOwEZwBD.js +10 -0
  297. package/lib/src/fullscreen-exit-DGBOSH37.js +10 -0
  298. package/lib/src/gift-certificate-B6veGMIK.js +10 -0
  299. package/lib/src/globe-Bs2G5dbf.js +13 -0
  300. package/lib/src/globe-DFW8ogme.js +10 -0
  301. package/lib/src/globe-DdC9Dv-2.js +13 -0
  302. package/lib/src/group-DWmqRz8f.js +13 -0
  303. package/lib/src/hamburger-1-DmiITW7Y.js +17 -0
  304. package/lib/src/hamburger-2-QoMuoBxt.js +19 -0
  305. package/lib/src/hamburger-3-C07bJr3J.js +19 -0
  306. package/lib/src/hamburger-4-CVkY4au6.js +15 -0
  307. package/lib/src/hamburger-P-mY7VWK.js +19 -0
  308. package/lib/src/hamburger-display-style-no-logo-1-BSx4mtP5.js +27 -0
  309. package/lib/src/hamburger-display-style-no-logo-2-2B-GKQSU.js +27 -0
  310. package/lib/src/hamburger-display-style-no-logo-3-BXjPCwp8.js +27 -0
  311. package/lib/src/hamburger-x-dJBitX.js +31 -0
  312. package/lib/src/headphones-DDES6g0E.js +14 -0
  313. package/lib/src/heart-vRuF6Yno.js +14 -0
  314. package/lib/src/history-MCn9bdw-.js +41 -0
  315. package/lib/src/home-4gvv43pI.js +14 -0
  316. package/lib/src/home-C9Cc12KI.js +13 -0
  317. package/lib/src/home-outline-JeCQ_wqW.js +13 -0
  318. package/lib/src/icon-style-circle-bg-Bzmc4Mch.js +29 -0
  319. package/lib/src/icon-style-no-bg-VXDwahry.js +23 -0
  320. package/lib/src/icon-style-square-bg-CZI06D4R.js +29 -0
  321. package/lib/src/image-CDTu9td1.js +14 -0
  322. package/lib/src/image-DuHk1UkA.js +14 -0
  323. package/lib/src/image-gallery-carousel-sKibIp-z.js +22 -0
  324. package/lib/src/image-gallery-grid-DdzJGRWt.js +32 -0
  325. package/lib/src/image-gallery-masonry-Dq6IhBk5.js +26 -0
  326. package/lib/src/images-BD2b-GBv.js +14 -0
  327. package/lib/src/images-gallery-BlCSvhby.js +10 -0
  328. package/lib/src/index.d.ts +1 -1
  329. package/lib/src/index.mjs +171 -169
  330. package/lib/src/info-BMNzJhor.js +21 -0
  331. package/lib/src/infographics-CZ3Q1Exz.js +10 -0
  332. package/lib/src/instagram-nQQP0qcP.js +14 -0
  333. package/lib/src/invitation--3-xxz-7.js +10 -0
  334. package/lib/src/invoice-B3sw08vw.js +10 -0
  335. package/lib/src/italic-ePE1MCwa.js +14 -0
  336. package/lib/src/jobs-xzSei3ed.js +13 -0
  337. package/lib/src/layer-CCXYT1kV.js +13 -0
  338. package/lib/src/layer-bring-front-B8ggiwVa.js +13 -0
  339. package/lib/src/layer-send-back-NKtHI7eU.js +13 -0
  340. package/lib/src/layout-BYNrJ08n.js +10 -0
  341. package/lib/src/layout-icon-bottom-normal-text-center-normal-CWxX2Atx.js +35 -0
  342. package/lib/src/layout-icon-bottom-normal-text-center-small-DPmc6hDg.js +35 -0
  343. package/lib/src/layout-icon-bottom-small-text-center-normal-Cdtz9Wws.js +35 -0
  344. package/lib/src/layout-icon-center-normal-curved-text-bottom-CNsT1cwk.js +33 -0
  345. package/lib/src/layout-icon-center-normal-curved-text-circle-CfQ_ff9J.js +26 -0
  346. package/lib/src/layout-icon-center-normal-curved-text-top-BvizyC0f.js +33 -0
  347. package/lib/src/layout-icon-left-normal-text-center-normal-BjEh5GiP.js +35 -0
  348. package/lib/src/layout-icon-left-normal-text-justify-normal-Do6osf9Q.js +35 -0
  349. package/lib/src/layout-icon-left-normal-text-left-normal-B2D9-klC.js +35 -0
  350. package/lib/src/layout-icon-left-small-text-left-normal-3TZaP_AQ.js +35 -0
  351. package/lib/src/layout-icon-right-normal-text-center-normal-b3DVzXQr.js +35 -0
  352. package/lib/src/layout-icon-right-normal-text-justify-normal-DjzdGyVE.js +35 -0
  353. package/lib/src/layout-icon-right-normal-text-right-normal-8RPlsv0g.js +35 -0
  354. package/lib/src/layout-icon-right-small-text-right-normal-C6Lxmafr.js +35 -0
  355. package/lib/src/layout-icon-top-normal-text-center-normal-BPzGcL34.js +35 -0
  356. package/lib/src/layout-icon-top-normal-text-center-small-CiL6UapF.js +35 -0
  357. package/lib/src/layout-icon-top-normal-text-justify-normal-BdxKFlxz.js +35 -0
  358. package/lib/src/layout-icon-top-small-text-center-normal-CQEFgRGz.js +35 -0
  359. package/lib/src/letterhead-filled-D242ZmCV.js +10 -0
  360. package/lib/src/{lib-DwDFHSzX.js → lib-3Hnr9X6L.js} +44894 -50406
  361. package/lib/src/lib.js +1 -1
  362. package/lib/src/lightning-0DBN7brQ.js +14 -0
  363. package/lib/src/link-ASbs22iV.js +13 -0
  364. package/lib/src/link-f9Rqjgzs.js +14 -0
  365. package/lib/src/link-in-bio-filled-7KGQKnFf.js +33 -0
  366. package/lib/src/linkedin-DHZ9GYZR.js +14 -0
  367. package/lib/src/list-bullet-DmLotp-I.js +18 -0
  368. package/lib/src/list-numbered-4yfRS8uf.js +26 -0
  369. package/lib/src/location-CLAVWXlO.js +13 -0
  370. package/lib/src/lock-DeRe5704.js +13 -0
  371. package/lib/src/log-out-BcZt1tYV.js +14 -0
  372. package/lib/src/logo-CbnT5-3_.js +10 -0
  373. package/lib/src/logo-J_17MKVC.js +14 -0
  374. package/lib/src/mac-command-C_mOn-5D.js +15 -0
  375. package/lib/src/map-BYGwUtwG.js +13 -0
  376. package/lib/src/media-CtTU-S2_.js +10 -0
  377. package/lib/src/menu-BOvesjpI.js +10 -0
  378. package/lib/src/message-DpeaWeJO.js +13 -0
  379. package/lib/src/metadata-builder/builders/header-builder.d.ts +1 -0
  380. package/lib/src/metadata-builder/builders/header-builder.js +3 -1
  381. package/lib/src/metadata-builder/builders/section-rules/header.rules.d.ts +2 -1
  382. package/lib/src/metadata-builder/builders/section-rules/header.rules.js +18 -0
  383. package/lib/src/metadata-builder/parsers/section-tool-arguments.d.ts +1 -1
  384. package/lib/src/microphone-bold-DHNW7gHW.js +14 -0
  385. package/lib/src/microphone-oI9aYgUV.js +10 -0
  386. package/lib/src/minus-BnugKxWp.js +13 -0
  387. package/lib/src/minus-circle-light-BpwE33R9.js +14 -0
  388. package/lib/src/mobile-CWUkrrZz.js +10 -0
  389. package/lib/src/mobile-hamburger-display-style-1-CLeSmPUu.js +31 -0
  390. package/lib/src/mobile-hamburger-display-style-2-BT2wdGTM.js +31 -0
  391. package/lib/src/mobile-hamburger-display-style-3-BSfDOb_s.js +31 -0
  392. package/lib/src/mobile-hamburger-display-style-4-CMWaq5HF.js +31 -0
  393. package/lib/src/mobile-tab-display-style-1-BPHy8scy.js +31 -0
  394. package/lib/src/mobile-tab-display-style-2-rD9c_cim.js +31 -0
  395. package/lib/src/mobile-tab-display-style-with-button-1-DhbLIZq0.js +16 -0
  396. package/lib/src/mobile-tab-display-style-with-button-2-D--vnzWw.js +16 -0
  397. package/lib/src/mug-Dlk8rEi1.js +35 -0
  398. package/lib/src/opacity-CyK39FOD.js +13 -0
  399. package/lib/src/other-qYQKGjGx.js +29 -0
  400. package/lib/src/page-blank-Cutm12JP.js +13 -0
  401. package/lib/src/page-buttons-BVG-wqi2.js +18 -0
  402. package/lib/src/page-hamburger-CPzInb3g.js +37 -0
  403. package/lib/src/page-tabs-D6FfcoMT.js +39 -0
  404. package/lib/src/pages-DlRbcQ85.js +13 -0
  405. package/lib/src/paint-brush-D3Pb69Wl.js +10 -0
  406. package/lib/src/palette-4ouQ5VpX.js +14 -0
  407. package/lib/src/palette-outline-DDTfdInB.js +14 -0
  408. package/lib/src/pause-BY99VDWb.js +10 -0
  409. package/lib/src/pause-DidBP71W.js +10 -0
  410. package/lib/src/payment-BNKU6Duo.js +21 -0
  411. package/lib/src/payments-featured-BjAlUQu1.js +27 -0
  412. package/lib/src/payments-textonly-CqIcluCY.js +40 -0
  413. package/lib/src/payments-thumbnail-DhEXGUn-.js +29 -0
  414. package/lib/src/pen-WjD6Z863.js +14 -0
  415. package/lib/src/pen-outline-T-ujuXV9.js +14 -0
  416. package/lib/src/pen-sparkle-DmImSlQQ.js +26 -0
  417. package/lib/src/pen-tool-DcGjZWmF.js +14 -0
  418. package/lib/src/phone-B3Dv_9SX.js +13 -0
  419. package/lib/src/phone-DWXh3QKt.js +10 -0
  420. package/lib/src/pinterest-DUKuH82X.js +10 -0
  421. package/lib/src/play-CwcQ-4x1.js +10 -0
  422. package/lib/src/plus-DHtDsbcg.js +10 -0
  423. package/lib/src/plus-circle-Bhjd4jL5.js +14 -0
  424. package/lib/src/plus-circle-light-B8tUp3Z9.js +15 -0
  425. package/lib/src/plus-light-SrtSL6KT.js +14 -0
  426. package/lib/src/poll-CCpHFKR3.js +10 -0
  427. package/lib/src/portfolio-Cb3y-9ik.js +13 -0
  428. package/lib/src/postcard-ahKB24ZL.js +10 -0
  429. package/lib/src/poster-cBbPKnbr.js +14 -0
  430. package/lib/src/premium-content-BWeZ7Ogy.js +21 -0
  431. package/lib/src/preview-CBc7qQmh.js +13 -0
  432. package/lib/src/printing-CsuTvRzs.js +13 -0
  433. package/lib/src/processing-EcPXndeQ.js +10 -0
  434. package/lib/src/profile-BglPhJwI.js +10 -0
  435. package/lib/src/qrcode-BYoiJ8jq.js +10 -0
  436. package/lib/src/question-alt-D24ac-qg.js +29 -0
  437. package/lib/src/question-circle-filled-CCIGoq2U.js +14 -0
  438. package/lib/src/question-dJfpKnPX.js +21 -0
  439. package/lib/src/quote-Beov5JZG.js +12 -0
  440. package/lib/src/ratio-1-1-Ev1sUTpr.js +15 -0
  441. package/lib/src/ratio-16-9-mGEJdf_O.js +15 -0
  442. package/lib/src/ratio-2-3-B0O8kq4S.js +15 -0
  443. package/lib/src/ratio-3-2-xEZ6hW32.js +15 -0
  444. package/lib/src/ratio-3-4-cB-hCsw5.js +15 -0
  445. package/lib/src/ratio-4-3-BnQw8lJS.js +15 -0
  446. package/lib/src/ratio-9-16-BkCo5E7z.js +15 -0
  447. package/lib/src/ratio-circle-5fVudbEI.js +15 -0
  448. package/lib/src/ratio-original-Df7Cu-Iq.js +23 -0
  449. package/lib/src/redo-BO3BtgjR.js +13 -0
  450. package/lib/src/refresh-CSZ5cbQf.js +13 -0
  451. package/lib/src/reload-BZ-G467N.js +13 -0
  452. package/lib/src/reorderable-D-4Cz8gf.js +10 -0
  453. package/lib/src/request-payment-q1GdUQz3.js +13 -0
  454. package/lib/src/reset-DNJKFu9G.js +13 -0
  455. package/lib/src/resize-C1ym5cFG.js +25 -0
  456. package/lib/src/roller-brush-6Lkh0h57.js +10 -0
  457. package/lib/src/save-0Nq0XX2b.js +13 -0
  458. package/lib/src/search-CcXdiSZK.js +14 -0
  459. package/lib/src/secure-DQoaN8iR.js +14 -0
  460. package/lib/src/select-all-gere2HEj.js +24 -0
  461. package/lib/src/send-CY8t4K7K.js +23 -0
  462. package/lib/src/services-B-rJftx1.js +12 -0
  463. package/lib/src/settings-DjA93nK4.js +15 -0
  464. package/lib/src/shape-dbkIE51p.js +10 -0
  465. package/lib/src/share-C5troFj5.js +17 -0
  466. package/lib/src/shared/color-strategies/color-strategies.js +4 -0
  467. package/lib/src/shared/color-strategies/rte-field-pairs.d.ts +10 -0
  468. package/lib/src/shared/color-strategies/rte-field-pairs.js +22 -0
  469. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +5 -0
  470. package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +6 -1
  471. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +5 -0
  472. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +10 -115
  473. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.js +0 -30
  474. package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.d.ts +1 -0
  475. package/lib/src/shared/content-settings/components/items-field/ItemsField.mixin.d.ts +1 -0
  476. package/lib/src/shared/content-settings/components/items-field/ItemsField.mixin.js +3 -0
  477. package/lib/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.d.ts +2 -0
  478. package/lib/src/shared/content-settings/store/content-settings-store.d.ts +2 -0
  479. package/lib/src/shared/content-settings/store/content-settings-store.js +23 -3
  480. package/lib/src/shared/logo-settings/components/EditLogoSettings.mixin.d.ts +4 -1
  481. package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +0 -1
  482. package/lib/src/shared/logo-settings/components/LogoSettingsHeader.mixin.d.ts +0 -1
  483. package/lib/src/shared/logo-settings/store/logo-settings-store.d.ts +0 -1
  484. package/lib/src/shared/logo-settings/store/logo-settings-store.js +23 -93
  485. package/lib/src/shared/my-designs/MyDesigns.mixin.d.ts +0 -1
  486. package/lib/src/shared/navigation-style-settings/store/index.d.ts +0 -5
  487. package/lib/src/shared/navigation-style-settings/store/index.js +0 -3
  488. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +97 -15
  489. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +165 -17
  490. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.js +57 -13
  491. package/lib/src/shared/page-settings/store/page-settings-store.js +0 -6
  492. package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +4 -0
  493. package/lib/src/shared/side-bar/components/SideBarTabButton.mixin.d.ts +4 -0
  494. package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +4 -0
  495. package/lib/src/shared/template-settings/components/TemplatesSettings.mixin.d.ts +4 -0
  496. package/lib/src/shared/template-settings/store/template-settings-store.js +1 -0
  497. package/lib/src/shield-tick-CJu2w7jV.js +13 -0
  498. package/lib/src/shop-BICCwqjA.js +13 -0
  499. package/lib/src/size-auto-DZ4AHHzc.js +10 -0
  500. package/lib/src/size-landscape-Co2ovloO.js +10 -0
  501. package/lib/src/size-portrait-2avbmbvP.js +10 -0
  502. package/lib/src/size-square-Bz1CZaK9.js +10 -0
  503. package/lib/src/sms-C1kZrMwo.js +10 -0
  504. package/lib/src/snapchat-BDhrhjxt.js +10 -0
  505. package/lib/src/social-facebook-DUNHwNb2.js +13 -0
  506. package/lib/src/social-facebook-color-Ct7tIJjy.js +25 -0
  507. package/lib/src/social-facebook-rcl4tAfz.js +10 -0
  508. package/lib/src/social-google-BTB1aEGv.js +10 -0
  509. package/lib/src/social-google-DJGuTMlB.js +13 -0
  510. package/lib/src/social-instagram-BCLf2eXM.js +13 -0
  511. package/lib/src/social-instagram-color-xjAjceQq.js +62 -0
  512. package/lib/src/social-linkedin-color-BZqnmI57.js +21 -0
  513. package/lib/src/social-share-DFkFeYix.js +12 -0
  514. package/lib/src/social-twitter-C1oScO7g.js +13 -0
  515. package/lib/src/social-twitter-color-DfOtI2Fg.js +25 -0
  516. package/lib/src/social-youtube-CkY91Sxk.js +13 -0
  517. package/lib/src/sort-Ba_MLXhQ.js +10 -0
  518. package/lib/src/soundcloud-D75CdlVH.js +14 -0
  519. package/lib/src/spacing-D_NTz008.js +27 -0
  520. package/lib/src/sparkle-square-C88DaAJm.js +31 -0
  521. package/lib/src/squares-CjaXv6E1.js +14 -0
  522. package/lib/src/star-filled-Dt4dP2V-.js +13 -0
  523. package/lib/src/star-hollow-DAKZTQq1.js +13 -0
  524. package/lib/src/sticker-DoYqtPNb.js +35 -0
  525. package/lib/src/stop-C0S-1Eo6.js +10 -0
  526. package/lib/src/strikethrough-BT13BDrx.js +14 -0
  527. package/lib/src/styles-Bs4y1ta6.js +10 -0
  528. package/lib/src/submit-BEB1wlPX.js +10 -0
  529. package/lib/src/t-shirt-D5YXSF2K.js +39 -0
  530. package/lib/src/tab-display-style-no-logo-1-BPxJPqUS.js +27 -0
  531. package/lib/src/tab-display-style-no-logo-2-Bkrgx0ll.js +27 -0
  532. package/lib/src/tab-display-style-no-logo-3-BWGcUgUX.js +27 -0
  533. package/lib/src/templates-B8egC2a3.js +14 -0
  534. package/lib/src/testimonial-big-image-DiPmYzdt.js +36 -0
  535. package/lib/src/testimonial-centered-jM2INLSy.js +32 -0
  536. package/lib/src/testimonial-columns-CDa9i6jz.js +40 -0
  537. package/lib/src/text-BK4YqqR7.js +14 -0
  538. package/lib/src/text-background-color-CPbyeOQM.js +21 -0
  539. package/lib/src/text-color-CbbWTlsX.js +23 -0
  540. package/lib/src/text-fkXBkdFx.js +14 -0
  541. package/lib/src/text-image-Co5SPyE6.js +44 -0
  542. package/lib/src/text-image-center-CmrIdS6C.js +28 -0
  543. package/lib/src/text-image-justified-BsXIFw9g.js +35 -0
  544. package/lib/src/text-image-left-CJVXL3QB.js +29 -0
  545. package/lib/src/text-image-only-ypeim10E.js +21 -0
  546. package/lib/src/text-image-right--XlSLgPu.js +29 -0
  547. package/lib/src/thankyou-card-CNoj8H8v.js +10 -0
  548. package/lib/src/thumbs-up-Cu5CKecf.js +10 -0
  549. package/lib/src/tiktok-DIga2vn6.js +10 -0
  550. package/lib/src/time-xJztv3yG.js +13 -0
  551. package/lib/src/tools-DKpoB0za.js +10 -0
  552. package/lib/src/tooltip-bottom-Bqw5Ggwa.js +12 -0
  553. package/lib/src/tooltip-left-CXVjJLB5.js +12 -0
  554. package/lib/src/tooltip-right-BY3BbjDG.js +12 -0
  555. package/lib/src/tooltip-top-BGstn3Lx.js +12 -0
  556. package/lib/src/tracker.mjs +1 -1
  557. package/lib/src/transition-D7Q-Bywn.js +27 -0
  558. package/lib/src/tumblr-DmzEhDlC.js +10 -0
  559. package/lib/src/twitch-CnDfpoBo.js +14 -0
  560. package/lib/src/twitter-DtPX8NYL.js +10 -0
  561. package/lib/src/underline-DHSpai3b.js +14 -0
  562. package/lib/src/undo-Db0DM_wS.js +13 -0
  563. package/lib/src/upgrade-alt-DBg1uVjf.js +14 -0
  564. package/lib/src/upgrade-eol6OnYc.js +16 -0
  565. package/lib/src/upgrade-to-add-page-xxEFVCff.js +57 -0
  566. package/lib/src/upgrade-to-contact-form-DlR6bx9L.js +95 -0
  567. package/lib/src/upgrade-to-google-ad-DMQhbFHz.js +129 -0
  568. package/lib/src/upgrade-to-maps-CodU6Iau.js +56 -0
  569. package/lib/src/upgrade-to-publish-JBLIGtsj.js +119 -0
  570. package/lib/src/upgrade-to-remove-watermark-z8PYQRQa.js +108 -0
  571. package/lib/src/upgrade-to-videos-BD2PpjC9.js +54 -0
  572. package/lib/src/upload-DIjYSaqf.js +10 -0
  573. package/lib/src/upload-arrow-C1Nu7eRP.js +10 -0
  574. package/lib/src/uppercase-DzGUT1dN.js +24 -0
  575. package/lib/src/{useEventTracker-DwPTmzpa.js → useEventTracker-BxQMBVf2.js} +6 -1
  576. package/lib/src/user-accounts-BxgZqjGt.js +10 -0
  577. package/lib/src/user-headset-nsAkiLau.js +57 -0
  578. package/lib/src/users-2-CnGpSLZE.js +15 -0
  579. package/lib/src/users-hA6xggk_.js +14 -0
  580. package/lib/src/video-BpWihNI_.js +10 -0
  581. package/lib/src/volume-BThAw2yn.js +10 -0
  582. package/lib/src/volume-muted-aeB5xUdN.js +10 -0
  583. package/lib/src/watchlist-filled-DN0u9uPt.js +24 -0
  584. package/lib/src/watchlist-hollow-B9t39PYN.js +13 -0
  585. package/lib/src/watchlist-hollow-alt-CVkYAHSm.js +24 -0
  586. package/lib/src/website-C_0agqCX.js +13 -0
  587. package/lib/src/website-filled-mlyF30rW.js +10 -0
  588. package/lib/src/whatsapp-DCNrs0zG.js +14 -0
  589. package/lib/src/wholesale-B5H4aswk.js +13 -0
  590. package/lib/src/wrap-text-iULZ1Msd.js +15 -0
  591. package/lib/src/youtube-C8GpL4B2.js +10 -0
  592. package/lib/src/zoom-2WYMtdQd.js +16 -0
  593. package/lib/src/zoom-WMvDdyz5.js +10 -0
  594. package/lib/src/zoom-in-BpNXDZ6b.js +10 -0
  595. package/lib/src/zoom-out-B7MQdPdu.js +10 -0
  596. package/package.json +2 -2
  597. package/src/brand-page/components/faq-section/FaqSection.test.ts +196 -0
  598. package/src/brand-page/components/faq-section/FaqSection.vue +315 -0
  599. package/src/brand-page/components/logo/Logo.vue +14 -7
  600. package/src/brand-page/components/page/Page.mixin.ts +6 -128
  601. package/src/brand-page/components/page/Page.vue +1 -103
  602. package/src/brand-page/components/page/Page.vue.test.ts +88 -2
  603. package/src/brand-page/components/page/PageComponent.vue +2 -0
  604. package/src/brand-page/components/page-header/HeaderLayout.stories.ts +0 -1
  605. package/src/brand-page/components/page-header/HeaderLayout.vue +52 -7
  606. package/src/brand-page/components/page-header/PageHeader.mixin.ts +24 -7
  607. package/src/brand-page/components/page-header/PageHeader.vue +28 -7
  608. package/src/brand-page/components/page-header/PageHeader.vue.test.ts +190 -4
  609. package/src/brand-page/constants/misc.constants.ts +9 -0
  610. package/src/brand-page/constants/sections/header-display.constants.ts +9 -0
  611. package/src/brand-page/constants/styles.constants.ts +2 -0
  612. package/src/brand-page/models/content.model.ts +1 -0
  613. package/src/brand-page/models/header-button.model.test.ts +26 -0
  614. package/src/brand-page/models/index.ts +37 -0
  615. package/src/brand-page/models/navigation-styles.model.ts +5 -2
  616. package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +3 -9
  617. package/src/brand-page/utils/__snapshots__/migration2.util.test.ts.snap +0 -2
  618. package/src/brand-page/utils/__snapshots__/model.util.test.ts.snap +9 -13
  619. package/src/brand-page/utils/container-text-color.util.test.ts +126 -0
  620. package/src/brand-page/utils/container-text-color.util.ts +16 -0
  621. package/src/brand-page/utils/content-callback-util.ts +5 -0
  622. package/src/brand-page/utils/logo.util.recalculate.test.ts +37 -0
  623. package/src/brand-page/utils/logo.util.test.ts +35 -22
  624. package/src/brand-page/utils/logo.util.ts +28 -36
  625. package/src/brand-page/utils/migration/__snapshots__/migration-22-output/edited-brandsite-sections.v22.json +4 -4
  626. package/src/brand-page/utils/migration/__snapshots__/migration-22-output/new-brandcontact-every-section.v22.json +4 -4
  627. package/src/brand-page/utils/migration/__snapshots__/migration-22-output/new-brandpage-every-section.v22.json +4 -4
  628. package/src/brand-page/utils/migration/__snapshots__/migration-22-output/new-brandsite-every-section.v22.json +4 -4
  629. package/src/brand-page/utils/migration/__snapshots__/migration-22-output/real-brandcontact.v22.json +4 -4
  630. package/src/brand-page/utils/migration/__snapshots__/migration-22-output/real-brandpage-general-link.v22.json +4 -4
  631. package/src/brand-page/utils/migration/__snapshots__/migration-22-output/real-brandpage-links.v22.json +4 -4
  632. package/src/brand-page/utils/migration/__snapshots__/migration-22-output/real-brandpage-social-links.v22.json +4 -4
  633. package/src/brand-page/utils/migration/__snapshots__/migration-22-output/real-brandsite-about.v22.json +4 -4
  634. package/src/brand-page/utils/migration/__snapshots__/migration-22-output/real-brandsite-footer.v22.json +4 -4
  635. package/src/brand-page/utils/migration/__snapshots__/migration-22-output/real-brandsite-header-banner.v22.json +4 -4
  636. package/src/brand-page/utils/migration/__snapshots__/migration-22-output/real-brandsite-sections.v22.json +4 -4
  637. package/src/brand-page/utils/migration/migration-01.ts +17 -2
  638. package/src/brand-page/utils/migration/migration-23.test.ts +712 -0
  639. package/src/brand-page/utils/migration/migration-23.ts +214 -0
  640. package/src/brand-page/utils/migration.util.test.ts +32 -6
  641. package/src/brand-page/utils/migration.util.ts +13 -0
  642. package/src/brand-page/utils/model.util.test.ts +27 -2
  643. package/src/brand-page/utils/model.util.ts +6 -0
  644. package/src/brand-page/utils/personalisation.util.test.ts +53 -0
  645. package/src/brand-page/utils/style.util.test.ts +25 -2
  646. package/src/brand-page/utils/view-model.util.test.ts +138 -0
  647. package/src/brand-page/utils/view-model.util.ts +43 -7
  648. package/src/brand-page/view-models.ts +8 -1
  649. package/src/brand-page-maker/assessors/faq-accordion-color-field-visibility.assessor.ts +9 -0
  650. package/src/brand-page-maker/assessors/index.ts +1 -0
  651. package/src/brand-page-maker/components/admin-logo-settings/AdminLogoSettings.mixin.ts +0 -20
  652. package/src/brand-page-maker/components/admin-logo-settings/AdminLogoSettings.vue +1 -11
  653. package/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.ts +0 -6
  654. package/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.vue +0 -60
  655. package/src/brand-page-maker/components/preview/Preview.vue +0 -1
  656. package/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.ts +2 -0
  657. package/src/brand-page-maker/composables/useEventTracker.ts +8 -0
  658. package/src/brand-page-maker/constants/config-settings-constant.ts +122 -1
  659. package/src/brand-page-maker/constants/faq-section-config.test.ts +22 -0
  660. package/src/brand-page-maker/constants/personalisation.constant.ts +5 -3
  661. package/src/brand-page-maker/convertors/faq-display-style.convertor.ts +61 -0
  662. package/src/brand-page-maker/models/content-settings-configs.ts +1 -0
  663. package/src/brand-page-maker/models/content-settings.test.ts +6 -0
  664. package/src/brand-page-maker/models/content-settings.ts +51 -0
  665. package/src/brand-page-maker/models/navigation-style-configs.ts +0 -7
  666. package/src/brand-page-maker/stores/admin-logo-settings/admin-logo-settings-store.ts +0 -49
  667. package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.save.test.ts +79 -1
  668. package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.ts +6 -5
  669. package/src/brand-page-maker/stores/brandpage-maker/__snapshots__/brandpage-maker-store.test.ts.snap +0 -1
  670. package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.test.ts +111 -0
  671. package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +18 -28
  672. package/src/brand-page-maker/utils/__snapshots__/apply-color-strategy.golden.test.ts.snap +2940 -300
  673. package/src/brand-page-maker/utils/apply-color-strategy.test.ts +93 -2
  674. package/src/brand-page-maker/utils/apply-color-strategy.ts +69 -19
  675. package/src/brand-page-maker/utils/rte-authoring.util.test.ts +30 -0
  676. package/src/brand-page-maker/utils/rte-authoring.util.ts +14 -0
  677. package/src/brand-page-maker/validators/field.validator.ts +2 -0
  678. package/src/bundles/bundled-translations.de-DE.json +9 -2
  679. package/src/bundles/bundled-translations.es-ES.json +9 -2
  680. package/src/bundles/bundled-translations.fr-CA.json +9 -2
  681. package/src/bundles/bundled-translations.fr-FR.json +9 -2
  682. package/src/bundles/bundled-translations.json +10 -2
  683. package/src/bundles/bundled-translations.pt-BR.json +9 -2
  684. package/src/bundles/bundled-translations.pt-PT.json +9 -2
  685. package/src/lib.ts +1 -0
  686. package/src/metadata-builder/builders/header-builder.test.ts +55 -1
  687. package/src/metadata-builder/builders/header-builder.ts +6 -1
  688. package/src/metadata-builder/builders/section-rules/header.rules.ts +37 -1
  689. package/src/metadata-builder/parsers/section-tool-arguments.ts +2 -1
  690. package/src/shared/color-strategies/color-strategies.ts +4 -0
  691. package/src/shared/color-strategies/rte-field-pairs.test.ts +2 -0
  692. package/src/shared/color-strategies/rte-field-pairs.ts +34 -0
  693. package/src/shared/content-settings/components/content-settings/i18n/content-settings.de-DE.json +10 -1
  694. package/src/shared/content-settings/components/content-settings/i18n/content-settings.es-ES.json +10 -1
  695. package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-CA.json +10 -1
  696. package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-FR.json +10 -1
  697. package/src/shared/content-settings/components/content-settings/i18n/content-settings.json +10 -1
  698. package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-BR.json +10 -1
  699. package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-PT.json +10 -1
  700. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.ts +2 -41
  701. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.test.ts +62 -0
  702. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.vue +2 -0
  703. package/src/shared/content-settings/components/faq-items-field/FaqItemsField.test.ts +162 -0
  704. package/src/shared/content-settings/components/faq-items-field/FaqItemsField.vue +287 -0
  705. package/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.vue +1 -0
  706. package/src/shared/content-settings/components/items-field/ItemsField.mixin.ts +3 -0
  707. package/src/shared/content-settings/components/items-field/ItemsField.vue +13 -3
  708. package/src/shared/content-settings/store/content-settings-store.test.ts +86 -0
  709. package/src/shared/content-settings/store/content-settings-store.ts +39 -4
  710. package/src/shared/logo-settings/store/logo-settings-store.test.ts +27 -1
  711. package/src/shared/logo-settings/store/logo-settings-store.ts +24 -137
  712. package/src/shared/navigation-style-settings/store/index.ts +0 -12
  713. package/src/shared/page-settings/components/header-settings-panel/HeaderSettingsPanel.test.ts +213 -25
  714. package/src/shared/page-settings/components/header-settings-panel/HeaderSettingsPanel.vue +15 -25
  715. package/src/shared/page-settings/components/page-settings/i18n/page-settings.json +1 -0
  716. package/src/shared/page-settings/components/page-settings-section-styles/HeaderDisplayStyle.test.ts +94 -29
  717. package/src/shared/page-settings/components/page-settings-section-styles/HeaderDisplayStyle.vue +19 -28
  718. package/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.header-button.test.ts +195 -3
  719. package/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.ts +74 -15
  720. package/src/shared/page-settings/components/page-settings-section-styles/i18n/page-settings-section.de-DE.json +0 -1
  721. package/src/shared/page-settings/components/page-settings-section-styles/i18n/page-settings-section.es-ES.json +0 -1
  722. package/src/shared/page-settings/components/page-settings-section-styles/i18n/page-settings-section.fr-CA.json +0 -1
  723. package/src/shared/page-settings/components/page-settings-section-styles/i18n/page-settings-section.fr-FR.json +0 -1
  724. package/src/shared/page-settings/components/page-settings-section-styles/i18n/page-settings-section.json +0 -1
  725. package/src/shared/page-settings/components/page-settings-section-styles/i18n/page-settings-section.pt-BR.json +0 -1
  726. package/src/shared/page-settings/components/page-settings-section-styles/i18n/page-settings-section.pt-PT.json +0 -1
  727. package/src/shared/page-settings/store/page-settings-store.test.ts +22 -0
  728. package/src/shared/page-settings/store/page-settings-store.ts +0 -7
  729. package/src/shared/template-settings/store/template-settings-store.ts +1 -0
  730. package/src/brand-page/components/page/BrandSiteNavigationLayout.vue +0 -70
@@ -0,0 +1,196 @@
1
+ import { vi } from 'vitest';
2
+ import { createSSRApp, h } from 'vue';
3
+ import { renderToString } from 'vue/server-renderer';
4
+ import { mount } from '@vue/test-utils';
5
+ import { createPinia, setActivePinia } from 'pinia';
6
+ import FaqSection from './FaqSection.vue';
7
+ import {
8
+ BRAND_PAGE_TYPES,
9
+ MEDIA_SIZES,
10
+ type BrandPageContext,
11
+ } from '@brand-page/models';
12
+ import { FAQ_DISPLAY_STYLES } from '@brand-page/constants';
13
+ import type { FaqSectionViewModel } from '@brand-page/view-models';
14
+ import type { RichTextValue } from '@brand-page/models';
15
+
16
+ global.ResizeObserver = vi.fn(function () {
17
+ return {
18
+ observe: vi.fn(),
19
+ unobserve: vi.fn(),
20
+ disconnect: vi.fn(),
21
+ } as unknown as ResizeObserver;
22
+ });
23
+
24
+ const context = (
25
+ overrides: Partial<BrandPageContext> = {},
26
+ ): BrandPageContext => ({
27
+ brandPageSlug: 'faq-test',
28
+ brandPageToken: '',
29
+ isMobile: false,
30
+ isPreview: false,
31
+ isProduction: false,
32
+ isServerRender: false,
33
+ options: { mediaSizes: MEDIA_SIZES.sizeThumb },
34
+ isTemplate: false,
35
+ isDesignCom: false,
36
+ pageTitle: 'FAQ',
37
+ runtimeEnvironment: '',
38
+ stripePublishableKey: undefined,
39
+ customDomain: undefined,
40
+ brandPageType: BRAND_PAGE_TYPES.brandSite,
41
+ isBrandPage: false,
42
+ isBrandPageOrIsBrandContact: false,
43
+ isBrandSite: true,
44
+ isBrandContact: false,
45
+ pages: [],
46
+ isCapturingPreview: false,
47
+ recaptchaSiteKey: undefined,
48
+ nav: { navItems: [] },
49
+ ...overrides,
50
+ });
51
+
52
+ const faqItem = (
53
+ id: string,
54
+ question: RichTextValue,
55
+ answer: RichTextValue,
56
+ ) => ({
57
+ id,
58
+ question,
59
+ answer,
60
+ });
61
+
62
+ const items = [
63
+ faqItem('q1', 'What services do you offer?', 'Many.'),
64
+ faqItem('q2', 'What are your hours?', '9 to 6.'),
65
+ faqItem('q3', 'How can I get in touch?', 'Email us.'),
66
+ ];
67
+
68
+ const viewModel = (
69
+ overrides: Partial<FaqSectionViewModel> = {},
70
+ ): FaqSectionViewModel => ({
71
+ id: 'faq-1',
72
+ type: 'faq-section',
73
+ role: 'faq-section',
74
+ title: 'Frequently Asked Questions',
75
+ description: 'Find answers',
76
+ displayStyle: FAQ_DISPLAY_STYLES.centered,
77
+ items: items.map((item) => ({ ...item })),
78
+ titleStyle: {},
79
+ descriptionStyle: {},
80
+ questionStyle: {},
81
+ answerStyle: {},
82
+ backgroundStyle: {},
83
+ topPadding: 32,
84
+ bottomPadding: 32,
85
+ isFullWidth: true,
86
+ iconColor: { color: '#555555' },
87
+ dividerColor: { backgroundColor: '#dcdcdc' },
88
+ ...overrides,
89
+ });
90
+
91
+ const mountFaq = (overrides: Partial<FaqSectionViewModel> = {}) =>
92
+ mount(FaqSection, {
93
+ props: { viewModel: viewModel(overrides), context: context() },
94
+ global: { stubs: { Icon: true } },
95
+ });
96
+
97
+ const openItemIds = (wrapper: ReturnType<typeof mountFaq>): string[] =>
98
+ wrapper
99
+ .findAll('[data-test-faq-item]')
100
+ .filter(
101
+ (item) =>
102
+ item.find('[data-test-faq-question]').attributes('aria-expanded') ===
103
+ 'true',
104
+ )
105
+ .map((item) => item.attributes('data-test-faq-item') as string);
106
+
107
+ describe('FaqSection', () => {
108
+ beforeEach(() => {
109
+ setActivePinia(createPinia());
110
+ });
111
+
112
+ test('opening another item leaves the first open; closing one leaves the rest; all can close', async () => {
113
+ const wrapper = mountFaq();
114
+ const question = (id: string) =>
115
+ wrapper.find(`[data-test-faq-item="${id}"] [data-test-faq-question]`);
116
+
117
+ await question('q3').trigger('click');
118
+ expect(openItemIds(wrapper)).toEqual(['q1', 'q3']);
119
+
120
+ await question('q2').trigger('click');
121
+ expect(openItemIds(wrapper)).toEqual(['q1', 'q2', 'q3']);
122
+
123
+ await question('q1').trigger('click');
124
+ expect(openItemIds(wrapper)).toEqual(['q2', 'q3']);
125
+
126
+ await question('q2').trigger('click');
127
+ expect(openItemIds(wrapper)).toEqual(['q3']);
128
+
129
+ await question('q3').trigger('click');
130
+ expect(openItemIds(wrapper)).toEqual([]);
131
+ });
132
+
133
+ // A template thumbnail also sets context.isPreview (see
134
+ // TemplatePreview.mixin.ts), but must render like a real page, not the
135
+ // editor canvas: context.isTemplate is the signal that tells them apart.
136
+ describe('thumbnail context (isPreview + isTemplate)', () => {
137
+ const mountFaqAsThumbnail = (
138
+ overrides: Partial<FaqSectionViewModel> = {},
139
+ ) =>
140
+ mount(FaqSection, {
141
+ props: {
142
+ viewModel: viewModel(overrides),
143
+ context: context({ isPreview: true, isTemplate: true }),
144
+ },
145
+ global: { stubs: { Icon: true } },
146
+ });
147
+
148
+ test('only the first item renders expanded', () => {
149
+ expect(openItemIds(mountFaqAsThumbnail())).toEqual(['q1']);
150
+ });
151
+ });
152
+
153
+ test('server render opens the same first item the client does', async () => {
154
+ const app = createSSRApp({
155
+ render: () =>
156
+ h(FaqSection, { viewModel: viewModel(), context: context() }),
157
+ });
158
+
159
+ app.use(createPinia());
160
+ app.component('Icon', { render: () => null });
161
+
162
+ const html = await renderToString(app);
163
+
164
+ expect(html.match(/aria-expanded="true"/g)).toHaveLength(1);
165
+ expect(html.match(/aria-expanded="false"/g)).toHaveLength(2);
166
+ });
167
+
168
+ test('clicking a link inside a question follows it without toggling the item', async () => {
169
+ const linkDoc = {
170
+ type: 'doc',
171
+ content: [
172
+ {
173
+ type: 'paragraph',
174
+ content: [
175
+ {
176
+ type: 'text',
177
+ text: 'See pricing',
178
+ marks: [{ type: 'link', attrs: { href: 'https://example.com' } }],
179
+ },
180
+ ],
181
+ },
182
+ ],
183
+ };
184
+ const wrapper = mountFaq({
185
+ items: [faqItem('l1', 'First', 'a'), faqItem('l2', linkDoc, 'b')],
186
+ });
187
+
188
+ await wrapper.find('[data-test-faq-item="l2"] a').trigger('click');
189
+ expect(openItemIds(wrapper)).toEqual(['l1']);
190
+
191
+ await wrapper
192
+ .find('[data-test-faq-item="l2"] [data-test-faq-question]')
193
+ .trigger('click');
194
+ expect(openItemIds(wrapper)).toEqual(['l1', 'l2']);
195
+ });
196
+ });
@@ -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>
@@ -16,7 +16,7 @@
16
16
  : {}
17
17
  "
18
18
  >
19
- <div v-if="!context.isPreview && context.isBrandSite" class="tw-h-full">
19
+ <div v-if="showHomeLink" class="tw-h-full">
20
20
  <router-link
21
21
  v-if="routes.length >= 1"
22
22
  :to="{
@@ -54,12 +54,7 @@
54
54
  />
55
55
  </router-link>
56
56
  </div>
57
- <template
58
- v-if="
59
- (context.isPreview && context.isBrandSite) ||
60
- context.isBrandPageOrIsBrandContact
61
- "
62
- >
57
+ <template v-else>
63
58
  <LazyHydrationWrapper v-if="context.isServerRender">
64
59
  <LogoRender
65
60
  :is-preview="context.isPreview"
@@ -129,6 +124,13 @@ const props = defineProps({
129
124
  required: false,
130
125
  default: false,
131
126
  },
127
+ // The BP/BC header logo links home, as brand site's always has; a logo content
128
+ // block never does.
129
+ linksHome: {
130
+ type: Boolean,
131
+ required: false,
132
+ default: false,
133
+ },
132
134
  });
133
135
 
134
136
  const altText = computed(() =>
@@ -143,6 +145,11 @@ const logoMaxWidth = computed(() => {
143
145
  return `${LOGO_SLIDER_DESKTOP_MAX}rem`;
144
146
  });
145
147
 
148
+ const showHomeLink = computed(
149
+ () =>
150
+ !props.context.isPreview && (props.context.isBrandSite || props.linksHome),
151
+ );
152
+
146
153
  // This is needed just to calculate the home route for logo link
147
154
  const routes = computed(
148
155
  () =>
@@ -354,36 +354,13 @@ export default defineComponent({
354
354
  return this.viewModel?.pages?.find((p) => p.id === navItem.pageId);
355
355
  },
356
356
 
357
- headerViewModelMobile() {
358
- return this.viewModel.headerViewModelMobile;
359
- },
360
- headerViewModelDesktop() {
361
- return this.viewModel.headerViewModelDesktop;
362
- },
363
-
364
- // TECH DEBT - brand page navigation handlers
365
- isNavigationEmbeddedInLogoMobile(): boolean {
366
- return (
367
- this.headerViewModelMobile.navigation.displayType.includes(
368
- 'hamburger',
369
- ) &&
370
- this.contents[0]?.type === 'logo' &&
371
- this.viewModel.pages.length > 1
372
- );
373
- },
374
-
375
- isNavigationEmbeddedInLogoDesktop(): boolean {
376
- return (
377
- this.headerViewModelDesktop.navigation.displayType.includes(
378
- 'hamburger',
379
- ) &&
380
- this.contents[0]?.type === 'logo' &&
381
- this.viewModel.pages.length > 1
382
- );
383
- },
384
-
385
- // The button shows in the header row OR in the side menu, never both. This gives it to the side menu when the header doesn't show it; undefined = no button in the menu.
357
+ // The button shows in the header row OR in the side menu, never both, and never on BP/BC
358
+ // (brand site only); this gives it to the side menu when the header doesn't show it.
386
359
  sideMenuHeaderButtonViewModel(): ButtonViewModel | undefined {
360
+ if (!this.context.isBrandSite) {
361
+ return undefined;
362
+ }
363
+
387
364
  const header = this.viewModel.headerViewModelMobile;
388
365
 
389
366
  if (
@@ -399,105 +376,6 @@ export default defineComponent({
399
376
  shouldShowNavigation(): boolean {
400
377
  return hasVisibleNavigation(this.context.nav.navItems);
401
378
  },
402
-
403
- showNavigationAfterLogoMobile(): boolean {
404
- return (
405
- !this.context.isBrandSite &&
406
- this.shouldShowNavigation &&
407
- this.contents[0]?.type === 'logo' &&
408
- this.headerViewModelMobile.navigation.renderAfterLogo &&
409
- !this.isNavigationEmbeddedInLogoMobile
410
- );
411
- },
412
-
413
- showNavigationAfterLogoDesktop(): boolean {
414
- return (
415
- !this.context.isBrandSite &&
416
- this.shouldShowNavigation &&
417
- this.contents[0]?.type === 'logo' &&
418
- this.headerViewModelDesktop.navigation.renderAfterLogo &&
419
- !this.isNavigationEmbeddedInLogoDesktop
420
- );
421
- },
422
-
423
- bpShowTopNavigationMobile() {
424
- if (this.context.isBrandSite) {
425
- return false;
426
- }
427
-
428
- if (!this.shouldShowNavigation) {
429
- return false;
430
- }
431
-
432
- if (
433
- // TODO - use constant
434
- this.headerViewModelMobile.navigation.displayType.includes('hamburger')
435
- ) {
436
- return true;
437
- }
438
-
439
- const isFirstContentALogo = this.contents[0]?.type === 'logo';
440
-
441
- if (
442
- isFirstContentALogo &&
443
- this.headerViewModelMobile.navigation.renderAfterLogo
444
- ) {
445
- return false;
446
- }
447
-
448
- if (
449
- !this.isNavigationEmbeddedInLogoMobile &&
450
- !this.headerViewModelMobile.navigation.renderAfterLogo
451
- ) {
452
- return true;
453
- }
454
-
455
- if (!isFirstContentALogo) {
456
- return true;
457
- }
458
-
459
- return false;
460
- },
461
-
462
- bpShowTopNavigationDesktop() {
463
- if (this.context.isBrandSite) {
464
- return false;
465
- }
466
-
467
- if (!this.shouldShowNavigation) {
468
- return false;
469
- }
470
-
471
- if (
472
- // TODO - use constant
473
- this.headerViewModelDesktop.navigation.displayType.includes('hamburger')
474
- ) {
475
- return true;
476
- }
477
-
478
- const isFirstContentALogo = this.contents[0]?.type === 'logo';
479
-
480
- if (
481
- isFirstContentALogo &&
482
- this.headerViewModelDesktop.navigation.renderAfterLogo
483
- ) {
484
- return false;
485
- }
486
-
487
- if (
488
- !this.isNavigationEmbeddedInLogoDesktop &&
489
- !this.headerViewModelDesktop.navigation.renderAfterLogo
490
- ) {
491
- return true;
492
- }
493
-
494
- if (!isFirstContentALogo) {
495
- return true;
496
- }
497
-
498
- return false;
499
- },
500
- // TECH DEBT END
501
379
  slug(): string {
502
380
  return getSlugFromContext(this.context);
503
381
  },