@designcrowd/library.brand-page 5.16.46 → 5.16.47-alias-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 (844) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-uiIr5kLt.js → CreatedOnBrandCrowd-de-de-DsUAZdDZ.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-ZxmDyB2L.js → CreatedOnBrandCrowd-en-us-BNR-T34t.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-Dy0prqYb.js → CreatedOnBrandCrowd-es-es-D9jzI5Gq.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-ptYivmhP.js → CreatedOnBrandCrowd-fr-ca-DUbAnAP7.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-ptYivmhP.js → CreatedOnBrandCrowd-fr-fr-DUbAnAP7.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-CJ2KmyN9.js → CreatedOnBrandCrowd-pt-br-DLzCYy_9.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-CJ2KmyN9.js → CreatedOnBrandCrowd-pt-pt-DLzCYy_9.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-BOKzyd7W.js → CreatedOnDcom-de-de-BP5YtPE5.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-DUn1EGFC.js → CreatedOnDcom-en-us-ih-rYZb7.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-CWmC3YRV.js → CreatedOnDcom-es-es-DOdyRnZy.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-_UTCwQgn.js → CreatedOnDcom-fr-ca-DJAXIcPr.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-DYUvSYKz.js → CreatedOnDcom-fr-fr-DOw9WG-3.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-o2kCzJWH.js → CreatedOnDcom-pt-br-9o0DJ0n-.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-JLuH_BY3.js → CreatedOnDcom-pt-pt-Dyf54Z8l.js} +1 -1
  15. package/lib/src/brand-page/components/about-section/AboutSection.mixin.d.ts +2 -2
  16. package/lib/src/brand-page/components/about-section/AboutSection.mixin.js +1 -1
  17. package/lib/src/brand-page/components/background-shape/BackgroundShape.mixin.d.ts +1 -1
  18. package/lib/src/brand-page/components/background-shape/BackgroundShape.mixin.js +3 -3
  19. package/lib/src/brand-page/components/banner-section/BannerSection.mixin.d.ts +2 -2
  20. package/lib/src/brand-page/components/banner-section/BannerSection.mixin.js +2 -2
  21. package/lib/src/brand-page/components/button/Button.mixin.d.ts +2 -2
  22. package/lib/src/brand-page/components/button/Button.mixin.js +1 -1
  23. package/lib/src/brand-page/components/button/Button.stories.d.ts +1 -1
  24. package/lib/src/brand-page/components/button/Button.stories.js +1 -1
  25. package/lib/src/brand-page/components/collapsible/Collapsible.mixin.d.ts +1 -1
  26. package/lib/src/brand-page/components/contact-form/ContactForm.mixin.d.ts +2 -2
  27. package/lib/src/brand-page/components/contact-form/ContactForm.mixin.js +3 -3
  28. package/lib/src/brand-page/components/contact-form/ContactForm.stories.d.ts +4 -4
  29. package/lib/src/brand-page/components/contact-form/ContactForm.stories.js +5 -5
  30. package/lib/src/brand-page/components/divider-section/DividerSection.mixin.d.ts +2 -2
  31. package/lib/src/brand-page/components/divider-section/DividerSection.mixin.js +1 -1
  32. package/lib/src/brand-page/components/image/Image.mixin.d.ts +2 -2
  33. package/lib/src/brand-page/components/image/Image.mixin.js +2 -2
  34. package/lib/src/brand-page/components/image-gallery/ImageGallery.mixin.d.ts +2 -2
  35. package/lib/src/brand-page/components/image-gallery/ImageGallery.mixin.js +1 -1
  36. package/lib/src/brand-page/components/image-gallery/ImageGallery.stories.d.ts +1 -1
  37. package/lib/src/brand-page/components/image-gallery/ImageGallery.stories.js +3 -3
  38. package/lib/src/brand-page/components/image-gallery/ImageGalleryModal.mixin.d.ts +1 -1
  39. package/lib/src/brand-page/components/images-section/ImagesSection.stories.d.ts +1 -1
  40. package/lib/src/brand-page/components/images-section/ImagesSection.stories.js +3 -3
  41. package/lib/src/brand-page/components/mailing-list/MailingList.mixin.d.ts +2 -2
  42. package/lib/src/brand-page/components/mailing-list/MailingList.mixin.js +2 -2
  43. package/lib/src/brand-page/components/mailing-list/MailingList.stories.d.ts +4 -4
  44. package/lib/src/brand-page/components/mailing-list/MailingList.stories.js +1 -1
  45. package/lib/src/brand-page/components/map/GoogleMap.mixin.js +2 -2
  46. package/lib/src/brand-page/components/media/Media.mixin.d.ts +1 -1
  47. package/lib/src/brand-page/components/media/Shape.mixin.d.ts +1 -1
  48. package/lib/src/brand-page/components/media/Shape.mixin.js +3 -3
  49. package/lib/src/brand-page/components/media-query/MediaQuery.stories.js +1 -1
  50. package/lib/src/brand-page/components/page/Page.mixin.d.ts +2 -2
  51. package/lib/src/brand-page/components/page/Page.mixin.js +3 -3
  52. package/lib/src/brand-page/components/page/Page.stories.d.ts +1 -1
  53. package/lib/src/brand-page/components/page/Page.stories.js +5 -2
  54. package/lib/src/brand-page/components/page/PageComponent.mixin.d.ts +2 -2
  55. package/lib/src/brand-page/components/page-footer/PageFooter.mixin.d.ts +2 -2
  56. package/lib/src/brand-page/components/page-footer/PageFooter.mixin.js +1 -1
  57. package/lib/src/brand-page/components/page-header/PageHeader.mixin.d.ts +2 -2
  58. package/lib/src/brand-page/components/payment/Payment.mixin.d.ts +2 -2
  59. package/lib/src/brand-page/components/payment/Payment.mixin.js +2 -2
  60. package/lib/src/brand-page/components/payment/RequestPaymentStripe.mixin.d.ts +1 -1
  61. package/lib/src/brand-page/components/payment/RequestPaymentStripe.mixin.js +1 -1
  62. package/lib/src/brand-page/components/payment/__fixtures__/request-payment.js +2 -2
  63. package/lib/src/brand-page/components/payment/__fixtures__/support-me.js +2 -2
  64. package/lib/src/brand-page/components/payment/request-payment/RequestPayment.mixin.js +1 -1
  65. package/lib/src/brand-page/components/payment/request-payment/RequestPayment.stories.js +1 -1
  66. package/lib/src/brand-page/components/payment/support-me/SupportMe.mixin.js +1 -1
  67. package/lib/src/brand-page/components/payment/support-me/SupportMe.stories.js +1 -1
  68. package/lib/src/brand-page/components/profile/Profile.mixin.d.ts +2 -2
  69. package/lib/src/brand-page/components/profile/Profile.mixin.js +2 -2
  70. package/lib/src/brand-page/components/profile/Profile.stories.d.ts +2 -2
  71. package/lib/src/brand-page/components/profile/Profile.stories.js +1 -1
  72. package/lib/src/brand-page/components/shop/Cart.stories.js +3 -3
  73. package/lib/src/brand-page/components/social-links/SocialLinks.stories.d.ts +1 -1
  74. package/lib/src/brand-page/components/testimonial-section/TestimonialSection.mixin.d.ts +2 -2
  75. package/lib/src/brand-page/components/testimonial-section/TestimonialSection.mixin.js +2 -2
  76. package/lib/src/brand-page/components/text/Text.stories.d.ts +1 -1
  77. package/lib/src/brand-page/components/video/Video.mixin.d.ts +1 -1
  78. package/lib/src/brand-page/constants/font.constants.js +1 -1
  79. package/lib/src/brand-page/constants/misc.constants.js +1 -1
  80. package/lib/src/brand-page/constants/sections/footer-display.constants.d.ts +1 -1
  81. package/lib/src/brand-page/constants/sections/footer-display.constants.js +1 -1
  82. package/lib/src/brand-page/constants/sections/header-display.constants.d.ts +1 -1
  83. package/lib/src/brand-page/models/index.d.ts +18 -0
  84. package/lib/src/brand-page/models/index.js +12 -0
  85. package/lib/src/brand-page/models/styles.model.js +1 -1
  86. package/lib/src/brand-page/utils/button.util.js +1 -1
  87. package/lib/src/brand-page/utils/color.util.js +1 -1
  88. package/lib/src/brand-page/utils/index.d.ts +1 -1
  89. package/lib/src/brand-page/utils/index.js +1 -1
  90. package/lib/src/brand-page/utils/migration/migration-01.d.ts +1 -1
  91. package/lib/src/brand-page/utils/migration/migration-01.js +2 -2
  92. package/lib/src/brand-page/utils/migration/migration-12.d.ts +2 -0
  93. package/lib/src/brand-page/utils/migration/migration-12.js +30 -0
  94. package/lib/src/brand-page/utils/migration.util.js +6 -0
  95. package/lib/src/brand-page/utils/personalisation.util.js +2 -2
  96. package/lib/src/brand-page/utils/route.util.d.ts +1 -1
  97. package/lib/src/brand-page/utils/style.util.js +3 -3
  98. package/lib/src/brand-page/utils/svg-color.util.js +1 -1
  99. package/lib/src/brand-page/utils/validation.util.js +2 -2
  100. package/lib/src/brand-page/utils/vcard.util.js +2 -2
  101. package/lib/src/brand-page/utils/view-model.util.d.ts +5 -2
  102. package/lib/src/brand-page/utils/view-model.util.js +27 -1
  103. package/lib/src/brand-page/view-models.d.ts +28 -0
  104. package/lib/src/brand-page-maker/assessors/banner-section-description-visibility.assessor.d.ts +1 -1
  105. package/lib/src/brand-page-maker/assessors/banner-section-description-visibility.assessor.js +2 -2
  106. package/lib/src/brand-page-maker/assessors/banner-section-field.assessor.d.ts +1 -1
  107. package/lib/src/brand-page-maker/assessors/brand-page-type-visibility.assessor.d.ts +1 -1
  108. package/lib/src/brand-page-maker/assessors/card-fill-visibility.assessor.d.ts +1 -1
  109. package/lib/src/brand-page-maker/assessors/color-replacement-icon-visibility.assessor.d.ts +1 -1
  110. package/lib/src/brand-page-maker/assessors/color-replacement-profile-visibility.assessor.d.ts +1 -1
  111. package/lib/src/brand-page-maker/assessors/color-replacement-visibility.assessor.d.ts +1 -1
  112. package/lib/src/brand-page-maker/assessors/contact-form-visibility.assessor.d.ts +1 -1
  113. package/lib/src/brand-page-maker/assessors/contact-form-visibility.assessor.js +2 -2
  114. package/lib/src/brand-page-maker/assessors/divider-toggle-field-visibility.assessor.d.ts +1 -1
  115. package/lib/src/brand-page-maker/assessors/image-field-visability.assessor.d.ts +1 -1
  116. package/lib/src/brand-page-maker/assessors/image-gallery-field-visibility.assessor.d.ts +1 -1
  117. package/lib/src/brand-page-maker/assessors/image-option-visibility.assessor.d.ts +1 -1
  118. package/lib/src/brand-page-maker/assessors/images-section-aspect-ratio-visibility.assessor.d.ts +1 -1
  119. package/lib/src/brand-page-maker/assessors/images-section-aspect-ratio-visibility.assessor.js +2 -2
  120. package/lib/src/brand-page-maker/assessors/images-section-card-style-visibility.assessor.d.ts +1 -1
  121. package/lib/src/brand-page-maker/assessors/images-section-card-style-visibility.assessor.js +1 -1
  122. package/lib/src/brand-page-maker/assessors/images-section-text-style-visibility.assessor.d.ts +1 -1
  123. package/lib/src/brand-page-maker/assessors/images-section-text-style-visibility.assessor.js +1 -1
  124. package/lib/src/brand-page-maker/assessors/logo-field-visibility.assessor.d.ts +1 -1
  125. package/lib/src/brand-page-maker/assessors/media-section-items-field.assessor.d.ts +1 -1
  126. package/lib/src/brand-page-maker/assessors/media-section-items-field.assessor.js +1 -1
  127. package/lib/src/brand-page-maker/assessors/personalisation-visibility.assessor.d.ts +1 -1
  128. package/lib/src/brand-page-maker/assessors/personalisation-visibility.assessor.js +2 -2
  129. package/lib/src/brand-page-maker/assessors/shape-section-items-field.assessor.d.ts +1 -1
  130. package/lib/src/brand-page-maker/assessors/shape-section-items-field.assessor.js +1 -1
  131. package/lib/src/brand-page-maker/assessors/shape-size-visibility.assessor.d.ts +1 -1
  132. package/lib/src/brand-page-maker/assessors/shop-item-color-visibility.assessor.d.ts +1 -1
  133. package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.d.ts +11 -11
  134. package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.js +1 -1
  135. package/lib/src/brand-page-maker/components/admin-background-settings/AdminBackgroundSettings.mixin.d.ts +3 -3
  136. package/lib/src/brand-page-maker/components/admin-background-settings/AdminBackgroundSettings.mixin.js +5 -5
  137. package/lib/src/brand-page-maker/components/admin-logo-settings/AdminLogoSettings.mixin.d.ts +5 -5
  138. package/lib/src/brand-page-maker/components/admin-logo-settings/AdminLogoSettings.mixin.js +4 -4
  139. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +128 -128
  140. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.js +14 -14
  141. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.js +8 -8
  142. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMakerTemplateSettings.mixin.js +1 -1
  143. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMakerTemplateSettings.stories.js +6 -6
  144. package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.d.ts +4 -4
  145. package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.js +2 -2
  146. package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-payment.d.ts +1 -1
  147. package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/content-settings-items.fixture.d.ts +1 -1
  148. package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/content-settings-items.fixture.js +1 -1
  149. package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/store-fixture.d.ts +1 -1
  150. package/lib/src/brand-page-maker/components/brand-page-maker/mock-api-calls/index.js +2 -2
  151. package/lib/src/brand-page-maker/components/brand-page-maker/mock-api-calls/mock-fabric-render-client-api-calls.js +1 -1
  152. package/lib/src/brand-page-maker/components/brand-page-maker/starter-kits/background-colors.d.ts +1 -1
  153. package/lib/src/brand-page-maker/components/brand-page-maker/starter-kits/background-colors.js +1 -1
  154. package/lib/src/brand-page-maker/components/brand-page-maker/starter-kits/background-gradients.d.ts +1 -1
  155. package/lib/src/brand-page-maker/components/brand-page-maker/starter-kits/background-gradients.js +1 -1
  156. package/lib/src/brand-page-maker/components/brand-page-maker/starter-kits/background-images.js +1 -1
  157. package/lib/src/brand-page-maker/components/brand-page-maker/starter-kits/background-shapes.d.ts +1 -1
  158. package/lib/src/brand-page-maker/components/brand-page-maker/starter-kits/background-shapes.js +1 -1
  159. package/lib/src/brand-page-maker/components/brand-page-maker/starter-kits/helpers.d.ts +2 -2
  160. package/lib/src/brand-page-maker/components/brand-page-maker/starter-kits/helpers.js +1 -1
  161. package/lib/src/brand-page-maker/components/brand-page-maker/starter-kits/styles.d.ts +1 -1
  162. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +117 -117
  163. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.js +15 -15
  164. package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.d.ts +15 -15
  165. package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.js +2 -2
  166. package/lib/src/brand-page-maker/components/device/Device.mixin.js +1 -1
  167. package/lib/src/brand-page-maker/components/index.d.ts +1 -1
  168. package/lib/src/brand-page-maker/components/index.js +1 -1
  169. package/lib/src/brand-page-maker/components/navigation/Navigation.mixin.js +1 -1
  170. package/lib/src/brand-page-maker/components/preview/Preview.mixin.d.ts +2 -2
  171. package/lib/src/brand-page-maker/components/preview/Preview.mixin.js +2 -2
  172. package/lib/src/brand-page-maker/components/preview/Preview.stories.d.ts +1 -1
  173. package/lib/src/brand-page-maker/components/preview/Preview.stories.js +8 -4
  174. package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.d.ts +3 -3
  175. package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.js +3 -3
  176. package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +13 -13
  177. package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.js +4 -4
  178. package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +17 -17
  179. package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.js +5 -5
  180. package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.stories.js +2 -2
  181. package/lib/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.d.ts +4 -4
  182. package/lib/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.js +2 -2
  183. package/lib/src/brand-page-maker/components/social-share/SocialShare.mixin.d.ts +10 -10
  184. package/lib/src/brand-page-maker/components/social-share/SocialShare.mixin.js +2 -2
  185. package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +22 -22
  186. package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.js +9 -9
  187. package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.stories.d.ts +3 -3
  188. package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.stories.js +3 -3
  189. package/lib/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.d.ts +3 -3
  190. package/lib/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.js +2 -2
  191. package/lib/src/brand-page-maker/composables/rich-text-editor/font.js +1 -1
  192. package/lib/src/brand-page-maker/composables/rich-text-editor/formatting.js +1 -1
  193. package/lib/src/brand-page-maker/composables/rich-text-editor/spacing.js +2 -2
  194. package/lib/src/brand-page-maker/composables/rich-text-editor/textAlign.js +1 -1
  195. package/lib/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.d.ts +4 -4
  196. package/lib/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.js +5 -5
  197. package/lib/src/brand-page-maker/constants/brandpage-meta-constant.js +1 -1
  198. package/lib/src/brand-page-maker/constants/config-settings-constant.d.ts +1 -1
  199. package/lib/src/brand-page-maker/constants/config-settings-constant.js +4 -4
  200. package/lib/src/brand-page-maker/constants/index.d.ts +1 -1
  201. package/lib/src/brand-page-maker/constants/index.js +1 -1
  202. package/lib/src/brand-page-maker/constants/personalisation.constant.d.ts +1 -1
  203. package/lib/src/brand-page-maker/constants/sidebar-constant.d.ts +1 -1
  204. package/lib/src/brand-page-maker/constants/sidebar-constant.js +1 -1
  205. package/lib/src/brand-page-maker/constants/ui-constant.js +1 -1
  206. package/lib/src/brand-page-maker/convertors/about-display-style.convertor.d.ts +1 -1
  207. package/lib/src/brand-page-maker/convertors/about-display-style.convertor.js +1 -1
  208. package/lib/src/brand-page-maker/convertors/align-display-style.convertor.js +2 -2
  209. package/lib/src/brand-page-maker/convertors/banner-align-display-style.convertor.d.ts +1 -1
  210. package/lib/src/brand-page-maker/convertors/banner-align-display-style.convertor.js +1 -1
  211. package/lib/src/brand-page-maker/convertors/button-link-style.convertor.js +2 -2
  212. package/lib/src/brand-page-maker/convertors/contact-layout-style.convertor.d.ts +1 -1
  213. package/lib/src/brand-page-maker/convertors/contact-layout-style.convertor.js +1 -1
  214. package/lib/src/brand-page-maker/convertors/display-style.convertor.js +2 -2
  215. package/lib/src/brand-page-maker/convertors/divider-style.convertor.js +2 -2
  216. package/lib/src/brand-page-maker/convertors/gallery-type.convertor.d.ts +1 -1
  217. package/lib/src/brand-page-maker/convertors/gallery-type.convertor.js +2 -2
  218. package/lib/src/brand-page-maker/convertors/image-aspect-ratio.convertor.d.ts +1 -1
  219. package/lib/src/brand-page-maker/convertors/image-aspect-ratio.convertor.js +2 -2
  220. package/lib/src/brand-page-maker/convertors/line-height-value.convertor.js +1 -1
  221. package/lib/src/brand-page-maker/convertors/payment-display-type.convertor.d.ts +1 -1
  222. package/lib/src/brand-page-maker/convertors/payment-display-type.convertor.js +2 -2
  223. package/lib/src/brand-page-maker/convertors/shape-size-options.convertor.js +1 -1
  224. package/lib/src/brand-page-maker/convertors/shop-aspect-ratio.convertor.js +2 -2
  225. package/lib/src/brand-page-maker/convertors/shop-display-type.convertor.d.ts +1 -1
  226. package/lib/src/brand-page-maker/convertors/shop-display-type.convertor.js +2 -2
  227. package/lib/src/brand-page-maker/convertors/social-links-icon-display-style.convertor.d.ts +1 -1
  228. package/lib/src/brand-page-maker/convertors/social-links-icon-display-style.convertor.js +2 -2
  229. package/lib/src/brand-page-maker/convertors/testimonial-display-style-convertor.js +2 -2
  230. package/lib/src/brand-page-maker/convertors/text-column-style.convertor.js +1 -1
  231. package/lib/src/brand-page-maker/convertors/text-css-style-options.convertor.d.ts +1 -1
  232. package/lib/src/brand-page-maker/convertors/text-image-display-style.convertor.d.ts +1 -1
  233. package/lib/src/brand-page-maker/convertors/text-image-display-style.convertor.js +1 -1
  234. package/lib/src/brand-page-maker/convertors/text-size-value.convertor.js +1 -1
  235. package/lib/src/brand-page-maker/convertors/video-content-state.convertor.d.ts +1 -1
  236. package/lib/src/brand-page-maker/default-getters/payment-fill-color.default-getter.js +1 -1
  237. package/lib/src/brand-page-maker/default-getters/payment-text-and-border-color.default-getter.js +2 -2
  238. package/lib/src/brand-page-maker/default-getters/text-color.default-getter.js +2 -2
  239. package/lib/src/brand-page-maker/models/assessor.model.d.ts +1 -1
  240. package/lib/src/brand-page-maker/models/button-styles-config.d.ts +1 -1
  241. package/lib/src/brand-page-maker/models/button-styles-config.js +2 -2
  242. package/lib/src/brand-page-maker/models/content-settings-configs.d.ts +3 -3
  243. package/lib/src/brand-page-maker/models/content-settings-configs.js +1 -1
  244. package/lib/src/brand-page-maker/models/content-settings.d.ts +3 -3
  245. package/lib/src/brand-page-maker/models/content-settings.js +3 -3
  246. package/lib/src/brand-page-maker/models/convertor.model.d.ts +1 -1
  247. package/lib/src/brand-page-maker/models/default-getter.model.d.ts +1 -1
  248. package/lib/src/brand-page-maker/models/navigation-style-configs.d.ts +3 -3
  249. package/lib/src/brand-page-maker/models/navigation-style-configs.js +3 -3
  250. package/lib/src/brand-page-maker/stores/admin-logo-settings/admin-logo-settings-store-utils.d.ts +1 -1
  251. package/lib/src/brand-page-maker/stores/admin-logo-settings/admin-logo-settings-store-utils.js +2 -2
  252. package/lib/src/brand-page-maker/stores/admin-logo-settings/admin-logo-settings-store.d.ts +2 -2
  253. package/lib/src/brand-page-maker/stores/admin-logo-settings/admin-logo-settings-store.js +5 -5
  254. package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.d.ts +3 -3
  255. package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.js +10 -10
  256. package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store-utils.js +3 -3
  257. package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.d.ts +7 -7
  258. package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +36 -21
  259. package/lib/src/brand-page-maker/stores/product-config/product-config-store.d.ts +1 -1
  260. package/lib/src/brand-page-maker/stores/product-config/product-config-store.js +1 -1
  261. package/lib/src/brand-page-maker/stores/route/localised-route-store.js +2 -2
  262. package/lib/src/brand-page-maker/stores/ui/ui-store.d.ts +2 -2
  263. package/lib/src/brand-page-maker/stores/ui/ui-store.js +4 -4
  264. package/lib/src/brand-page-maker/stores/user/user-store.d.ts +1 -1
  265. package/lib/src/brand-page-maker/utils/content-settings.util.d.ts +3 -3
  266. package/lib/src/brand-page-maker/utils/content-settings.util.js +2 -2
  267. package/lib/src/brand-page-maker/utils/content.util.d.ts +2 -2
  268. package/lib/src/brand-page-maker/utils/content.util.js +3 -3
  269. package/lib/src/brand-page-maker/utils/index.js +1 -1
  270. package/lib/src/brand-page-maker/utils/rich-text-editor.util.d.ts +3 -3
  271. package/lib/src/brand-page-maker/utils/rich-text-editor.util.js +3 -3
  272. package/lib/src/brand-page-maker/validators/field.validator.d.ts +1 -1
  273. package/lib/src/brand-page-maker/validators/field.validator.js +3 -3
  274. package/lib/src/brand-page-maker/validators/section-button.validator.d.ts +1 -1
  275. package/lib/src/brand-page-maker/validators/section-button.validator.js +3 -3
  276. package/lib/src/clients/ai-assistant-client.js +1 -1
  277. package/lib/src/clients/asset-library-clients.d.ts +1 -1
  278. package/lib/src/clients/brand-page-client.d.ts +1 -1
  279. package/lib/src/clients/brand-page-client.js +1 -1
  280. package/lib/src/clients/user-media-client.d.ts +2 -2
  281. package/lib/src/clients/user-media-client.js +1 -1
  282. package/lib/src/constants/brand-page-maker.d.ts +1 -1
  283. package/lib/src/constants/brand-page-maker.js +1 -1
  284. package/lib/src/css/library.brand-page-brandCrowd.min.css +324 -324
  285. package/lib/src/css/library.brand-page-brandPage.min.css +324 -324
  286. package/lib/src/css/library.brand-page-designCom.min.css +324 -324
  287. package/lib/src/css/library.brand-page-preview.min.css +324 -324
  288. package/lib/src/index.mjs +110 -109
  289. package/lib/src/{lib-CBpRmget.js → lib-CRBe2_A8.js} +13648 -13426
  290. package/lib/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.d.ts +1 -1
  291. package/lib/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.js +4 -4
  292. package/lib/src/shared/background-settings/store/background-settings-store.d.ts +2 -2
  293. package/lib/src/shared/background-settings/store/background-settings-store.js +3 -3
  294. package/lib/src/shared/color-picker/components/ColorPicker.mixin.js +3 -3
  295. package/lib/src/shared/color-picker/constants.js +1 -1
  296. package/lib/src/shared/confirm-modal/ConfirmModal.mixin.js +2 -2
  297. package/lib/src/shared/content-settings/components/GenericTextInput.mixin.js +2 -2
  298. package/lib/src/shared/content-settings/components/booking-url-field/BookingUrlField.mixin.js +1 -1
  299. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +42 -41
  300. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.js +5 -5
  301. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.stories.js +4 -4
  302. package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +52 -52
  303. package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.js +4 -4
  304. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +24 -24
  305. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.js +5 -5
  306. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +35 -35
  307. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.js +8 -8
  308. package/lib/src/shared/content-settings/components/draggable-item-list/DraggableItemList.mixin.d.ts +1 -1
  309. package/lib/src/shared/content-settings/components/draggable-item-list/DraggableItemList.mixin.js +1 -1
  310. package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.d.ts +19 -19
  311. package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.js +7 -7
  312. package/lib/src/shared/content-settings/components/form-fields-field/FormFieldsField.mixin.d.ts +1 -1
  313. package/lib/src/shared/content-settings/components/form-fields-field/FormFieldsField.mixin.js +1 -1
  314. package/lib/src/shared/content-settings/components/google-address-field/GoogleAddressField.mixin.d.ts +1 -1
  315. package/lib/src/shared/content-settings/components/icon-library/IconLibrary.mixin.js +1 -1
  316. package/lib/src/shared/content-settings/components/image-field/ImageField.mixin.js +4 -4
  317. package/lib/src/shared/content-settings/components/images-field/ImagesField.mixin.d.ts +3 -3
  318. package/lib/src/shared/content-settings/components/links-field/LinksField.mixin.d.ts +1 -1
  319. package/lib/src/shared/content-settings/components/logo-field/LogoField.mixin.d.ts +1 -1
  320. package/lib/src/shared/content-settings/components/logo-field/LogoField.mixin.js +1 -1
  321. package/lib/src/shared/content-settings/components/page-dropdown-field/PageDropdownField.mixin.d.ts +2 -2
  322. package/lib/src/shared/content-settings/components/page-dropdown-field/PageDropdownField.mixin.js +2 -2
  323. package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +17 -17
  324. package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.js +4 -4
  325. package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigOptionField.mixin.d.ts +1 -1
  326. package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigOptionField.mixin.js +3 -3
  327. package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigOptionFieldAdaptor.mixin.d.ts +1 -1
  328. package/lib/src/shared/content-settings/components/payment-config-field/payment-config-field-utils.d.ts +1 -1
  329. package/lib/src/shared/content-settings/components/payment-config-field/payment-config-field-utils.js +1 -1
  330. package/lib/src/shared/content-settings/components/payment-config-field/payment-link-display-style-field/PaymentImageStyleField.mixin.d.ts +2 -2
  331. package/lib/src/shared/content-settings/components/payment-config-field/payment-link-display-style-field/PaymentImageStyleField.mixin.js +1 -1
  332. package/lib/src/shared/content-settings/components/payment-config-field/payment-toggle-field/PaymentToggleField.mixin.d.ts +1 -1
  333. package/lib/src/shared/content-settings/components/payment-config-field/request-payment-config-field/RequestPaymentConfigField.mixin.d.ts +2 -2
  334. package/lib/src/shared/content-settings/components/payment-config-field/request-payment-config-field/RequestPaymentConfigField.mixin.js +1 -1
  335. package/lib/src/shared/content-settings/components/payment-config-field/support-me-config-field/SupportMeConfigField.mixin.d.ts +1 -1
  336. package/lib/src/shared/content-settings/components/payment-config-field/support-me-config-field/SupportMeConfigField.mixin.js +1 -1
  337. package/lib/src/shared/content-settings/components/radio-field/RadioField.mixin.d.ts +4 -4
  338. package/lib/src/shared/content-settings/components/radio-field/RadioField.mixin.js +2 -2
  339. package/lib/src/shared/content-settings/components/shape-field/ShapeField.mixin.d.ts +1 -1
  340. package/lib/src/shared/content-settings/components/shape-field/ShapeField.mixin.js +1 -1
  341. package/lib/src/shared/content-settings/components/slider-field/SliderField.mixin.d.ts +1 -1
  342. package/lib/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.d.ts +1 -1
  343. package/lib/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.js +3 -3
  344. package/lib/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.d.ts +1 -1
  345. package/lib/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.js +4 -4
  346. package/lib/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.d.ts +16 -16
  347. package/lib/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.js +2 -2
  348. package/lib/src/shared/content-settings/components/textarea-field/TextareaField.mixin.d.ts +1 -1
  349. package/lib/src/shared/content-settings/components/toggle-field/ToggleField.mixin.d.ts +1 -1
  350. package/lib/src/shared/content-settings/components/youtube-video-field/YoutubeVideoField.mixin.js +2 -2
  351. package/lib/src/shared/content-settings/models.d.ts +3 -3
  352. package/lib/src/shared/content-settings/store/content-settings-store.d.ts +2 -2
  353. package/lib/src/shared/content-settings/store/content-settings-store.js +5 -5
  354. package/lib/src/shared/content-settings/utils.d.ts +2 -2
  355. package/lib/src/shared/content-settings/utils.js +2 -2
  356. package/lib/src/shared/ecommerce-settings/store/shop-settings-store.d.ts +2 -2
  357. package/lib/src/shared/ecommerce-settings/store/shop-settings-store.js +1 -1
  358. package/lib/src/shared/ecommerce-settings/util/skuUtils.d.ts +1 -1
  359. package/lib/src/shared/font-family-selector/FontFamilySelector.mixin.d.ts +2 -2
  360. package/lib/src/shared/font-family-selector/FontFamilySelector.mixin.js +1 -1
  361. package/lib/src/shared/image-gallery-style-settings/ImageGalleryStyleSettings.mixin.d.ts +1 -1
  362. package/lib/src/shared/logo-settings/components/EditLogoSettings.mixin.d.ts +7 -7
  363. package/lib/src/shared/logo-settings/components/EditLogoSettings.mixin.js +4 -4
  364. package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +26 -26
  365. package/lib/src/shared/logo-settings/components/LogoSettings.mixin.js +2 -2
  366. package/lib/src/shared/logo-settings/store/editable-logo-store.d.ts +1 -1
  367. package/lib/src/shared/logo-settings/store/editable-logo-store.js +5 -5
  368. package/lib/src/shared/logo-settings/store/logo-settings-store.d.ts +1 -1
  369. package/lib/src/shared/logo-settings/store/logo-settings-store.js +4 -4
  370. package/lib/src/shared/logo-versions/LogoVersions.mixin.d.ts +1 -1
  371. package/lib/src/shared/logo-versions/LogoVersions.mixin.js +1 -1
  372. package/lib/src/shared/models.d.ts +1 -1
  373. package/lib/src/shared/my-designs/MyDesigns.mixin.d.ts +1 -1
  374. package/lib/src/shared/my-designs/MyDesigns.mixin.js +2 -2
  375. package/lib/src/shared/my-uploads/MyMedia.mixin.d.ts +1 -1
  376. package/lib/src/shared/my-uploads/MyMedia.mixin.js +4 -4
  377. package/lib/src/shared/my-uploads/MyMedia.stories.js +3 -3
  378. package/lib/src/shared/my-uploads/MyUploads.mixin.d.ts +1 -1
  379. package/lib/src/shared/my-uploads/MyUploads.mixin.js +4 -4
  380. package/lib/src/shared/my-uploads/MyUploads.stories.js +1 -1
  381. package/lib/src/shared/my-uploads/models.d.ts +1 -1
  382. package/lib/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.d.ts +2 -2
  383. package/lib/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.js +4 -4
  384. package/lib/src/shared/navigation-style-settings/store/index.d.ts +4 -4
  385. package/lib/src/shared/navigation-style-settings/store/index.js +5 -5
  386. package/lib/src/shared/page-navigation/store/page-navigation-store.d.ts +18 -0
  387. package/lib/src/shared/page-navigation/store/page-navigation-store.js +118 -0
  388. package/lib/src/shared/page-settings/components/new-page-modal/NewPageModal.mixin.d.ts +22 -8
  389. package/lib/src/shared/page-settings/components/new-page-modal/NewPageModal.mixin.js +16 -2
  390. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +91 -77
  391. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.js +36 -5
  392. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +62 -61
  393. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.js +6 -6
  394. package/lib/src/shared/page-settings/models.d.ts +3 -2
  395. package/lib/src/shared/page-settings/store/page-settings-store.d.ts +3 -3
  396. package/lib/src/shared/page-settings/store/page-settings-store.js +8 -6
  397. package/lib/src/shared/page-settings/utils.js +1 -1
  398. package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +25 -25
  399. package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.js +6 -6
  400. package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +4 -4
  401. package/lib/src/shared/side-bar/components/SideBar.mixin.js +1 -1
  402. package/lib/src/shared/side-bar/components/SideBarTabButton.mixin.d.ts +5 -5
  403. package/lib/src/shared/side-bar/components/SideBarTabButton.mixin.js +2 -2
  404. package/lib/src/shared/side-bar/store/side-bar-store.js +1 -1
  405. package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +42 -42
  406. package/lib/src/shared/style-settings/components/StyleSettings.mixin.js +7 -7
  407. package/lib/src/shared/style-settings/components/StyleSettings.stories.js +3 -3
  408. package/lib/src/shared/style-settings/models.d.ts +1 -1
  409. package/lib/src/shared/style-settings/store/style-settings-store.d.ts +4 -4
  410. package/lib/src/shared/style-settings/store/style-settings-store.js +6 -6
  411. package/lib/src/shared/template-settings/components/TemplatesSettings.mixin.d.ts +6 -6
  412. package/lib/src/shared/template-settings/components/TemplatesSettings.mixin.js +5 -5
  413. package/lib/src/shared/template-settings/components/TemplatesSettings.stories.js +2 -2
  414. package/lib/src/shared/template-settings/components/TemplatesSettings.test-helper.d.ts +1 -1
  415. package/lib/src/shared/template-settings/components/TemplatesSettings.test-helper.js +4 -4
  416. package/lib/src/shared/template-settings/models.d.ts +1 -1
  417. package/lib/src/shared/template-settings/models.js +1 -1
  418. package/lib/src/shared/template-settings/store/template-settings-store.js +6 -6
  419. package/lib/src/shared/unsplash-library/UnsplashLibrary.mixin.d.ts +1 -1
  420. package/lib/src/shared/unsplash-library/UnsplashLibrary.mixin.js +2 -2
  421. package/package.json +3 -3
  422. package/src/brand-page/components/about-section/AboutSection.mixin.ts +3 -3
  423. package/src/brand-page/components/about-section/AboutSection.vue.test.ts +2 -2
  424. package/src/brand-page/components/background-shape/BackgroundShape.mixin.ts +4 -4
  425. package/src/brand-page/components/banner-section/BannerSection.mixin.ts +4 -4
  426. package/src/brand-page/components/booking-section/BookingSection.vue +4 -4
  427. package/src/brand-page/components/brand-page-footer/BrandPageFooter.vue +4 -4
  428. package/src/brand-page/components/button/Button.mixin.ts +3 -3
  429. package/src/brand-page/components/button/Button.stories.ts +2 -2
  430. package/src/brand-page/components/collapsible/Collapsible.mixin.ts +1 -1
  431. package/src/brand-page/components/contact-form/ContactForm.mixin.ts +9 -5
  432. package/src/brand-page/components/contact-form/ContactForm.stories.ts +5 -5
  433. package/src/brand-page/components/cookie-consent/CookieConsent.vue +1 -1
  434. package/src/brand-page/components/divider-section/DividerSection.mixin.ts +3 -3
  435. package/src/brand-page/components/fallback-image/FallbackImage.vue +1 -1
  436. package/src/brand-page/components/image/Image.mixin.ts +7 -4
  437. package/src/brand-page/components/image/Image.test.ts +7 -4
  438. package/src/brand-page/components/image/Image.vue +1 -1
  439. package/src/brand-page/components/image-gallery/ImageGallery.mixin.ts +3 -3
  440. package/src/brand-page/components/image-gallery/ImageGallery.stories.ts +3 -3
  441. package/src/brand-page/components/image-gallery/ImageGallery.test.ts +8 -4
  442. package/src/brand-page/components/image-gallery/ImageGallery.vue +1 -1
  443. package/src/brand-page/components/image-gallery/ImageGalleryModal.mixin.ts +1 -1
  444. package/src/brand-page/components/image-gallery/carousel/CarouselGallery.vue +1 -1
  445. package/src/brand-page/components/image-gallery/grid/GridImageGallery.vue +1 -1
  446. package/src/brand-page/components/image-gallery/masonry/MasonryGallery.vue +1 -1
  447. package/src/brand-page/components/images-section/ImagesSection.stories.ts +3 -3
  448. package/src/brand-page/components/images-section/ImagesSection.test.ts +1 -1
  449. package/src/brand-page/components/images-section/ImagesSection.vue +9 -5
  450. package/src/brand-page/components/logo/Logo.vue +3 -3
  451. package/src/brand-page/components/logo/LogoRender.vue +2 -2
  452. package/src/brand-page/components/mailing-list/MailingList.mixin.ts +4 -4
  453. package/src/brand-page/components/mailing-list/MailingList.stories.ts +2 -2
  454. package/src/brand-page/components/map/GoogleMap.mixin.ts +2 -2
  455. package/src/brand-page/components/map/Map.stories.ts +1 -1
  456. package/src/brand-page/components/map/Map.vue +3 -3
  457. package/src/brand-page/components/media/Media.mixin.ts +1 -1
  458. package/src/brand-page/components/media/Shape.mixin.ts +4 -4
  459. package/src/brand-page/components/media-query/MediaQuery.stories.ts +1 -1
  460. package/src/brand-page/components/media-query/MediaQuery.vue +2 -2
  461. package/src/brand-page/components/navigation/Navigation.vue +3 -3
  462. package/src/brand-page/components/page/Page.mixin.ts +5 -5
  463. package/src/brand-page/components/page/Page.stories.ts +6 -3
  464. package/src/brand-page/components/page/PageComponent.mixin.ts +5 -2
  465. package/src/brand-page/components/page-footer/PageFooter.mixin.ts +3 -3
  466. package/src/brand-page/components/page-header/PageHeader.mixin.ts +2 -2
  467. package/src/brand-page/components/payment/Payment.mixin.ts +4 -4
  468. package/src/brand-page/components/payment/Payment.vue +1 -1
  469. package/src/brand-page/components/payment/RequestPaymentStripe.mixin.ts +2 -2
  470. package/src/brand-page/components/payment/RequestPaymentStripe.vue +1 -1
  471. package/src/brand-page/components/payment/__fixtures__/request-payment.ts +2 -2
  472. package/src/brand-page/components/payment/__fixtures__/support-me.ts +2 -2
  473. package/src/brand-page/components/payment/request-payment/RequestPayment.mixin.ts +1 -1
  474. package/src/brand-page/components/payment/request-payment/RequestPayment.stories.ts +1 -1
  475. package/src/brand-page/components/payment/request-payment/RequestPayment.vue +1 -1
  476. package/src/brand-page/components/payment/support-me/SupportMe.mixin.ts +1 -1
  477. package/src/brand-page/components/payment/support-me/SupportMe.stories.ts +1 -1
  478. package/src/brand-page/components/payment/support-me/SupportMe.vue +1 -1
  479. package/src/brand-page/components/profile/Profile.mixin.ts +4 -4
  480. package/src/brand-page/components/profile/Profile.stories.ts +2 -2
  481. package/src/brand-page/components/save-contact/SaveContactWidget.vue +9 -6
  482. package/src/brand-page/components/save-contact/popup-card/PopupCard.vue +2 -2
  483. package/src/brand-page/components/sensitive-content/SensitiveContentModal.vue +1 -1
  484. package/src/brand-page/components/shapes-section/ShapesSection.vue +2 -2
  485. package/src/brand-page/components/shop/Cart.stories.ts +3 -3
  486. package/src/brand-page/components/shop/CartModal.vue +3 -3
  487. package/src/brand-page/components/shop/FeaturedDisplay.vue +4 -4
  488. package/src/brand-page/components/shop/PaymentModal.vue +5 -5
  489. package/src/brand-page/components/shop/ProductDetailModal.vue +4 -4
  490. package/src/brand-page/components/shop/Shop.vue +7 -7
  491. package/src/brand-page/components/shop/TextDisplay.vue +4 -4
  492. package/src/brand-page/components/shop/ThumbnailDisplay.vue +4 -4
  493. package/src/brand-page/components/social-links/SocialLinks.stories.ts +1 -1
  494. package/src/brand-page/components/social-links/SocialLinks.vue +2 -2
  495. package/src/brand-page/components/social-links/SocialLinks.vue.test.ts +4 -3
  496. package/src/brand-page/components/social-links/SocialLinksItems.vue +1 -1
  497. package/src/brand-page/components/testimonial-section/TestimonialSection.mixin.ts +4 -4
  498. package/src/brand-page/components/text/Text.stories.ts +1 -1
  499. package/src/brand-page/components/text/Text.vue +3 -3
  500. package/src/brand-page/components/text-media-section/TextMediaSection.test.ts +1 -1
  501. package/src/brand-page/components/text-media-section/TextMediaSection.vue +5 -5
  502. package/src/brand-page/components/text-wrapper/TextWrapper.vue +5 -2
  503. package/src/brand-page/components/video/Video.mixin.ts +1 -1
  504. package/src/brand-page/components/video/Video.vue +1 -1
  505. package/src/brand-page/constants/font.constants.ts +1 -1
  506. package/src/brand-page/constants/misc.constants.ts +1 -1
  507. package/src/brand-page/constants/sections/footer-display.constants.ts +2 -2
  508. package/src/brand-page/constants/sections/header-display.constants.ts +1 -1
  509. package/src/brand-page/models/index.ts +30 -0
  510. package/src/brand-page/models/styles.model.ts +1 -1
  511. package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +57 -3
  512. package/src/brand-page/utils/__snapshots__/migration2.util.test.ts.snap +4 -0
  513. package/src/brand-page/utils/__snapshots__/model.util.test.ts.snap +8 -0
  514. package/src/brand-page/utils/button.util.ts +1 -1
  515. package/src/brand-page/utils/color.util.ts +1 -1
  516. package/src/brand-page/utils/index.ts +1 -1
  517. package/src/brand-page/utils/logo.util.test.ts +5 -0
  518. package/src/brand-page/utils/migration/migration-01.ts +2 -2
  519. package/src/brand-page/utils/migration/migration-07.test.ts +1 -1
  520. package/src/brand-page/utils/migration/migration-08.test.ts +1 -1
  521. package/src/brand-page/utils/migration/migration-08.ts +1 -1
  522. package/src/brand-page/utils/migration/migration-12.ts +43 -0
  523. package/src/brand-page/utils/migration.util.test.ts +16 -1
  524. package/src/brand-page/utils/migration.util.ts +6 -0
  525. package/src/brand-page/utils/personalisation.util.test.ts +2 -2
  526. package/src/brand-page/utils/personalisation.util.ts +2 -2
  527. package/src/brand-page/utils/route.util.ts +1 -1
  528. package/src/brand-page/utils/style.util.test.ts +2 -2
  529. package/src/brand-page/utils/style.util.ts +3 -3
  530. package/src/brand-page/utils/svg-color.util.test.ts +1 -1
  531. package/src/brand-page/utils/svg-color.util.ts +1 -1
  532. package/src/brand-page/utils/validation.util.ts +2 -2
  533. package/src/brand-page/utils/vcard.util.ts +2 -2
  534. package/src/brand-page/utils/view-model.util.test.ts +1 -1
  535. package/src/brand-page/utils/view-model.util.ts +82 -1
  536. package/src/brand-page/view-models.ts +33 -0
  537. package/src/brand-page-maker/assessors/banner-section-description-visibility.assessor.ts +3 -6
  538. package/src/brand-page-maker/assessors/banner-section-field.assessor.ts +1 -4
  539. package/src/brand-page-maker/assessors/brand-page-type-visibility.assessor.ts +1 -1
  540. package/src/brand-page-maker/assessors/card-fill-visibility.assessor.ts +1 -1
  541. package/src/brand-page-maker/assessors/color-replacement-icon-visibility.assessor.ts +1 -1
  542. package/src/brand-page-maker/assessors/color-replacement-profile-visibility.assessor.ts +1 -1
  543. package/src/brand-page-maker/assessors/color-replacement-visibility.assessor.ts +1 -1
  544. package/src/brand-page-maker/assessors/contact-form-visibility.assessor.ts +2 -2
  545. package/src/brand-page-maker/assessors/divider-toggle-field-visibility.assessor.ts +1 -1
  546. package/src/brand-page-maker/assessors/image-field-visability.assessor.ts +1 -1
  547. package/src/brand-page-maker/assessors/image-gallery-field-visibility.assessor.ts +1 -1
  548. package/src/brand-page-maker/assessors/image-option-visibility.assessor.ts +1 -1
  549. package/src/brand-page-maker/assessors/images-section-aspect-ratio-visibility.assessor.ts +3 -3
  550. package/src/brand-page-maker/assessors/images-section-card-style-visibility.assessor.ts +2 -5
  551. package/src/brand-page-maker/assessors/images-section-text-style-visibility.assessor.ts +2 -2
  552. package/src/brand-page-maker/assessors/logo-field-visibility.assessor.ts +1 -1
  553. package/src/brand-page-maker/assessors/media-section-items-field.assessor.ts +2 -5
  554. package/src/brand-page-maker/assessors/personalisation-visibility.assessor.ts +2 -2
  555. package/src/brand-page-maker/assessors/shape-section-items-field.assessor.ts +2 -5
  556. package/src/brand-page-maker/assessors/shape-size-visibility.assessor.ts +1 -1
  557. package/src/brand-page-maker/assessors/shop-item-color-visibility.assessor.ts +1 -1
  558. package/src/brand-page-maker/components/action-bar/ActionBar.mixin.ts +1 -1
  559. package/src/brand-page-maker/components/action-bar/ActionBar.vue +1 -1
  560. package/src/brand-page-maker/components/action-bar/ActionBarNavigation.vue +1 -1
  561. package/src/brand-page-maker/components/admin-background-settings/AdminBackgroundSettings.mixin.ts +6 -6
  562. package/src/brand-page-maker/components/admin-background-settings/AdminBackgroundSettings.vue +3 -3
  563. package/src/brand-page-maker/components/admin-logo-settings/AdminLogoSettings.mixin.ts +4 -4
  564. package/src/brand-page-maker/components/admin-logo-settings/AdminLogoSettings.vue +2 -2
  565. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.ts +19 -19
  566. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.ts +8 -8
  567. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.vue +10 -10
  568. package/src/brand-page-maker/components/brand-page-maker/BrandPageMakerTemplateSettings.mixin.ts +1 -1
  569. package/src/brand-page-maker/components/brand-page-maker/BrandPageMakerTemplateSettings.stories.ts +6 -6
  570. package/src/brand-page-maker/components/brand-page-maker/BrandPageMakerTemplateSettings.vue +1 -1
  571. package/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.ts +6 -6
  572. package/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-payment.ts +1 -1
  573. package/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-site-template.examples.ts +1 -1
  574. package/src/brand-page-maker/components/brand-page-maker/__fixtures__/content-settings-items.fixture.ts +2 -2
  575. package/src/brand-page-maker/components/brand-page-maker/__fixtures__/store-fixture.ts +1 -1
  576. package/src/brand-page-maker/components/brand-page-maker/mock-api-calls/index.ts +2 -2
  577. package/src/brand-page-maker/components/brand-page-maker/mock-api-calls/mock-fabric-render-client-api-calls.ts +1 -1
  578. package/src/brand-page-maker/components/brand-page-maker/mock-api-calls/mock-user-domain-api-calls.ts +1 -1
  579. package/src/brand-page-maker/components/brand-page-maker/starter-kits/background-colors.ts +2 -2
  580. package/src/brand-page-maker/components/brand-page-maker/starter-kits/background-gradients.ts +2 -2
  581. package/src/brand-page-maker/components/brand-page-maker/starter-kits/background-images.ts +2 -2
  582. package/src/brand-page-maker/components/brand-page-maker/starter-kits/background-shapes.ts +2 -2
  583. package/src/brand-page-maker/components/brand-page-maker/starter-kits/helpers.ts +2 -2
  584. package/src/brand-page-maker/components/brand-page-maker/starter-kits/styles.ts +1 -1
  585. package/src/brand-page-maker/components/brandpage-background-settings/BrandPageBackgroundSettings.vue +2 -2
  586. package/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.ts +17 -17
  587. package/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.vue +6 -6
  588. package/src/brand-page-maker/components/brandpage-settings/BrandPageSettings.vue +7 -7
  589. package/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.ts +5 -5
  590. package/src/brand-page-maker/components/color-palette/BpColorPalette.vue +1 -1
  591. package/src/brand-page-maker/components/color-palette/BpColorPicker.vue +2 -2
  592. package/src/brand-page-maker/components/cookie-collection/CookieSettings.vue +3 -3
  593. package/src/brand-page-maker/components/device/Device.mixin.ts +1 -1
  594. package/src/brand-page-maker/components/device/Device.test.ts +1 -1
  595. package/src/brand-page-maker/components/google-analytics/GoogleAnalytics.vue +4 -4
  596. package/src/brand-page-maker/components/index.ts +1 -1
  597. package/src/brand-page-maker/components/layout-switcher/LayoutSwitcher.vue +3 -3
  598. package/src/brand-page-maker/components/navigation/Navigation.mixin.ts +1 -1
  599. package/src/brand-page-maker/components/navigation/Navigation.vue +1 -1
  600. package/src/brand-page-maker/components/preview/Preview.mixin.ts +4 -4
  601. package/src/brand-page-maker/components/preview/Preview.stories.ts +8 -4
  602. package/src/brand-page-maker/components/preview-with-state/PreviewWithState.vue +2 -2
  603. package/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.ts +6 -3
  604. package/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.vue +1 -1
  605. package/src/brand-page-maker/components/rich-text-editor/RichTextEditor.vue +19 -16
  606. package/src/brand-page-maker/components/save-contact/SaveContact.vue +2 -2
  607. package/src/brand-page-maker/components/sensitive-content/SensitiveContent.vue +3 -6
  608. package/src/brand-page-maker/components/seo-settings/DeleteDomainModal.vue +1 -1
  609. package/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.ts +4 -4
  610. package/src/brand-page-maker/components/seo-settings/SeoPageSettings.vue +1 -1
  611. package/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.ts +5 -5
  612. package/src/brand-page-maker/components/seo-settings/UrlSettings.stories.ts +2 -2
  613. package/src/brand-page-maker/components/seo-settings/UrlSettings.vue +2 -2
  614. package/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.ts +4 -4
  615. package/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.vue +1 -1
  616. package/src/brand-page-maker/components/shop/AddOrEditProductContainer.vue +5 -5
  617. package/src/brand-page-maker/components/shop/ProductConfigModal.vue +2 -2
  618. package/src/brand-page-maker/components/shop/ProductItemField.vue +5 -5
  619. package/src/brand-page-maker/components/shop/ReplaceImageSettingsForShop.vue +3 -3
  620. package/src/brand-page-maker/components/social-share/SocialShare.mixin.ts +5 -2
  621. package/src/brand-page-maker/components/social-share/SocialShare.vue +2 -2
  622. package/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.ts +10 -10
  623. package/src/brand-page-maker/components/template-preview/TemplatePreview.stories.ts +3 -3
  624. package/src/brand-page-maker/components/template-preview/TemplatePreview.vue +1 -1
  625. package/src/brand-page-maker/components/template-preview-with-state/TemplatePreviewWithState.vue +6 -6
  626. package/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.ts +2 -2
  627. package/src/brand-page-maker/composables/rich-text-editor/font.ts +1 -5
  628. package/src/brand-page-maker/composables/rich-text-editor/formatting.ts +1 -1
  629. package/src/brand-page-maker/composables/rich-text-editor/spacing.ts +2 -2
  630. package/src/brand-page-maker/composables/rich-text-editor/textAlign.ts +1 -1
  631. package/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.ts +8 -8
  632. package/src/brand-page-maker/constants/brandpage-meta-constant.ts +1 -1
  633. package/src/brand-page-maker/constants/config-settings-constant.ts +7 -7
  634. package/src/brand-page-maker/constants/index.ts +2 -2
  635. package/src/brand-page-maker/constants/personalisation.constant.ts +1 -1
  636. package/src/brand-page-maker/constants/sidebar-constant.ts +2 -2
  637. package/src/brand-page-maker/constants/ui-constant.ts +1 -1
  638. package/src/brand-page-maker/convertors/about-display-style.convertor.ts +2 -2
  639. package/src/brand-page-maker/convertors/align-display-style.convertor.ts +2 -2
  640. package/src/brand-page-maker/convertors/banner-align-display-style.convertor.ts +2 -2
  641. package/src/brand-page-maker/convertors/button-link-style.convertor.ts +3 -3
  642. package/src/brand-page-maker/convertors/contact-layout-style.convertor.ts +2 -2
  643. package/src/brand-page-maker/convertors/display-style.convertor.ts +2 -2
  644. package/src/brand-page-maker/convertors/divider-style.convertor.ts +3 -3
  645. package/src/brand-page-maker/convertors/gallery-type.convertor.ts +3 -3
  646. package/src/brand-page-maker/convertors/image-aspect-ratio.convertor.ts +3 -3
  647. package/src/brand-page-maker/convertors/line-height-value.convertor.ts +1 -1
  648. package/src/brand-page-maker/convertors/payment-display-type.convertor.ts +2 -2
  649. package/src/brand-page-maker/convertors/shape-size-options.convertor.ts +1 -1
  650. package/src/brand-page-maker/convertors/shop-aspect-ratio.convertor.ts +2 -2
  651. package/src/brand-page-maker/convertors/shop-display-type.convertor.ts +2 -2
  652. package/src/brand-page-maker/convertors/social-links-icon-display-style.convertor.ts +3 -3
  653. package/src/brand-page-maker/convertors/testimonial-display-style-convertor.ts +2 -2
  654. package/src/brand-page-maker/convertors/text-column-style.convertor.ts +1 -1
  655. package/src/brand-page-maker/convertors/text-css-style-options.convertor.ts +1 -1
  656. package/src/brand-page-maker/convertors/text-image-display-style.convertor.ts +2 -2
  657. package/src/brand-page-maker/convertors/text-size-value.convertor.ts +1 -1
  658. package/src/brand-page-maker/convertors/video-content-state.convertor.ts +1 -1
  659. package/src/brand-page-maker/default-getters/payment-fill-color.default-getter.ts +1 -1
  660. package/src/brand-page-maker/default-getters/payment-text-and-border-color.default-getter.ts +3 -3
  661. package/src/brand-page-maker/default-getters/text-color.default-getter.ts +3 -3
  662. package/src/brand-page-maker/models/assessor.model.ts +1 -1
  663. package/src/brand-page-maker/models/button-styles-config.ts +3 -3
  664. package/src/brand-page-maker/models/content-settings-configs.ts +4 -4
  665. package/src/brand-page-maker/models/content-settings.ts +5 -5
  666. package/src/brand-page-maker/models/convertor.model.ts +1 -1
  667. package/src/brand-page-maker/models/default-getter.model.ts +1 -1
  668. package/src/brand-page-maker/models/navigation-style-configs.ts +5 -5
  669. package/src/brand-page-maker/stores/admin-logo-settings/admin-logo-settings-store-utils.ts +3 -3
  670. package/src/brand-page-maker/stores/admin-logo-settings/admin-logo-settings-store.ts +7 -7
  671. package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.ts +15 -12
  672. package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store-utils.ts +3 -3
  673. package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.test.ts +10 -10
  674. package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +49 -28
  675. package/src/brand-page-maker/stores/product-config/product-config-store.ts +2 -2
  676. package/src/brand-page-maker/stores/route/localised-route-store.ts +2 -2
  677. package/src/brand-page-maker/stores/ui/ui-store.ts +6 -9
  678. package/src/brand-page-maker/stores/user/user-store.ts +1 -1
  679. package/src/brand-page-maker/utils/content-settings.util.ts +4 -4
  680. package/src/brand-page-maker/utils/content.util.test.ts +1 -1
  681. package/src/brand-page-maker/utils/content.util.ts +5 -5
  682. package/src/brand-page-maker/utils/index.ts +1 -1
  683. package/src/brand-page-maker/utils/rich-text-editor.util.test.ts +1 -1
  684. package/src/brand-page-maker/utils/rich-text-editor.util.ts +5 -5
  685. package/src/brand-page-maker/validators/field.validator.ts +4 -4
  686. package/src/brand-page-maker/validators/section-button.validator.ts +3 -3
  687. package/src/clients/ai-assistant-client.ts +1 -1
  688. package/src/clients/asset-library-clients.ts +1 -1
  689. package/src/clients/brand-page-client.ts +3 -3
  690. package/src/clients/user-media-client.test.ts +3 -3
  691. package/src/clients/user-media-client.ts +3 -3
  692. package/src/constants/brand-page-maker.ts +1 -1
  693. package/src/shared/background-settings/components/BackgroundSettings.vue +4 -4
  694. package/src/shared/background-settings/components/ReplaceImageSettingsForBackgroundSettings.vue +7 -7
  695. package/src/shared/background-settings/components/background-color/BackgroundColorSettings.vue +4 -8
  696. package/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.ts +4 -4
  697. package/src/shared/background-settings/store/background-settings-store.ts +4 -4
  698. package/src/shared/color-picker/components/ColorPicker.mixin.ts +3 -6
  699. package/src/shared/color-picker/components/ColorPickerSwatch.vue +1 -1
  700. package/src/shared/color-picker/constants.ts +1 -1
  701. package/src/shared/common/SideBarSettingsHeader.vue +1 -1
  702. package/src/shared/confirm-modal/ConfirmModal.mixin.ts +2 -2
  703. package/src/shared/content-settings/components/GenericTextInput.mixin.ts +2 -5
  704. package/src/shared/content-settings/components/booking-url-field/BookingUrlField.mixin.ts +1 -1
  705. package/src/shared/content-settings/components/booking-url-field/BookingUrlField.vue +2 -2
  706. package/src/shared/content-settings/components/button-configuration-field/ButtonConfigurationField.vue +3 -3
  707. package/src/shared/content-settings/components/color-field/ColorField.vue +8 -12
  708. package/src/shared/content-settings/components/color-replacements-field/ColorReplacementsField.vue +4 -4
  709. package/src/shared/content-settings/components/content-settings/ContentSettings.mixin.ts +7 -10
  710. package/src/shared/content-settings/components/content-settings/ContentSettings.stories.ts +4 -4
  711. package/src/shared/content-settings/components/content-settings/ContentSettings.vue +1 -1
  712. package/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.ts +4 -4
  713. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.ts +6 -6
  714. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.ts +8 -15
  715. package/src/shared/content-settings/components/draggable-item-list/DraggableItemList.mixin.ts +2 -2
  716. package/src/shared/content-settings/components/draggable-item-list/DraggableItemList.vue +2 -2
  717. package/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.ts +8 -8
  718. package/src/shared/content-settings/components/form-fields-field/FormFieldsField.mixin.ts +2 -2
  719. package/src/shared/content-settings/components/generate-ai-button/GenerateAiButton.vue +4 -4
  720. package/src/shared/content-settings/components/generate-ai-modal/GenerateAiModal.vue +4 -4
  721. package/src/shared/content-settings/components/google-address-field/GoogleAddressField.mixin.ts +1 -1
  722. package/src/shared/content-settings/components/google-address-field/GoogleAddressField.vue +1 -1
  723. package/src/shared/content-settings/components/icon-library/IconLibrary.mixin.ts +1 -1
  724. package/src/shared/content-settings/components/image-field/ImageField.mixin.ts +4 -4
  725. package/src/shared/content-settings/components/image-field/ImageField.vue +1 -1
  726. package/src/shared/content-settings/components/images-field/ImagesField.mixin.ts +1 -1
  727. package/src/shared/content-settings/components/images-field/ImagesField.vue +1 -1
  728. package/src/shared/content-settings/components/links-field/LinksField.mixin.ts +1 -1
  729. package/src/shared/content-settings/components/links-field/LinksField.vue +1 -1
  730. package/src/shared/content-settings/components/logo-field/LogoField.mixin.ts +1 -1
  731. package/src/shared/content-settings/components/logo-field/LogoField.vue +1 -1
  732. package/src/shared/content-settings/components/logo-selection-field/LogoSelection.vue +13 -13
  733. package/src/shared/content-settings/components/logo-selection-field/LogoSelectionField.vue +6 -6
  734. package/src/shared/content-settings/components/logo-size-field/LogoSizeSlider.vue +1 -1
  735. package/src/shared/content-settings/components/logo-size-field/LogoSizeSliderField.vue +2 -2
  736. package/src/shared/content-settings/components/page-dropdown-field/PageDropdownField.mixin.ts +2 -2
  737. package/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.ts +5 -5
  738. package/src/shared/content-settings/components/payment-config-field/PaymentConfigField.vue +1 -1
  739. package/src/shared/content-settings/components/payment-config-field/PaymentConfigOptionField.mixin.ts +4 -4
  740. package/src/shared/content-settings/components/payment-config-field/PaymentConfigOptionField.vue +1 -4
  741. package/src/shared/content-settings/components/payment-config-field/PaymentConfigOptionFieldAdaptor.mixin.ts +1 -1
  742. package/src/shared/content-settings/components/payment-config-field/payment-config-field-utils.ts +2 -2
  743. package/src/shared/content-settings/components/payment-config-field/payment-link-display-style-field/PaymentImageStyleField.mixin.ts +3 -6
  744. package/src/shared/content-settings/components/payment-config-field/payment-link-display-style-field/PaymentImageStyleField.vue +1 -1
  745. package/src/shared/content-settings/components/payment-config-field/payment-toggle-field/PaymentToggleField.mixin.ts +1 -1
  746. package/src/shared/content-settings/components/payment-config-field/request-payment-config-field/RequestPaymentConfigField.mixin.ts +3 -3
  747. package/src/shared/content-settings/components/payment-config-field/support-me-config-field/SupportMeConfigField.mixin.ts +2 -2
  748. package/src/shared/content-settings/components/payment-config-field/support-me-config-field/SupportMeConfigField.vue +1 -1
  749. package/src/shared/content-settings/components/personalisation-override-field/PersonalisationOverrideField.vue +5 -5
  750. package/src/shared/content-settings/components/personalisation-role-field/PersonalisationRoleField.vue +2 -2
  751. package/src/shared/content-settings/components/radio-field/RadioField.mixin.ts +4 -4
  752. package/src/shared/content-settings/components/replace-image-base-settings/ReplaceImageBaseSettings.vue +3 -3
  753. package/src/shared/content-settings/components/shape-field/ShapeField.mixin.ts +2 -6
  754. package/src/shared/content-settings/components/shape-field/ShapeField.vue +1 -1
  755. package/src/shared/content-settings/components/slider-field/SliderField.mixin.ts +2 -2
  756. package/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.ts +4 -4
  757. package/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.vue +2 -2
  758. package/src/shared/content-settings/components/text-field/TextField.vue +2 -2
  759. package/src/shared/content-settings/components/text-image-field/TextImageField.vue +3 -3
  760. package/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.ts +5 -8
  761. package/src/shared/content-settings/components/text-items-field/TextItemsField.vue +2 -5
  762. package/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.ts +4 -4
  763. package/src/shared/content-settings/components/text-style-field/TextStyleField.vue +2 -2
  764. package/src/shared/content-settings/components/textarea-field/TextareaField.mixin.ts +1 -1
  765. package/src/shared/content-settings/components/textarea-field/TextareaField.vue +2 -2
  766. package/src/shared/content-settings/components/toggle-field/ToggleField.mixin.ts +1 -1
  767. package/src/shared/content-settings/components/youtube-video-field/YoutubeVideoField.mixin.ts +2 -2
  768. package/src/shared/content-settings/models.ts +3 -3
  769. package/src/shared/content-settings/store/content-settings-store.ts +7 -11
  770. package/src/shared/content-settings/utils.ts +4 -4
  771. package/src/shared/dropzone-image-uploader/components/DropzoneImageUploader.vue +1 -1
  772. package/src/shared/ecommerce-settings/components/product-config-field/ProductConfigOption.vue +6 -6
  773. package/src/shared/ecommerce-settings/components/shop-payment-config-field/ShopPaymentConfigField.vue +1 -1
  774. package/src/shared/ecommerce-settings/store/shop-settings-store.ts +3 -3
  775. package/src/shared/ecommerce-settings/util/skuUtils.ts +1 -1
  776. package/src/shared/font-family-selector/FontFamilySelector.mixin.ts +2 -2
  777. package/src/shared/font-preview/FontPreview.vue +1 -1
  778. package/src/shared/image-gallery-style-settings/ImageGalleryStyleSettings.mixin.ts +1 -1
  779. package/src/shared/login-required-message/LoginRequiredMessage.vue +1 -1
  780. package/src/shared/logo-settings/components/EditLogoSettings.mixin.ts +5 -5
  781. package/src/shared/logo-settings/components/EditLogoSettings.vue +1 -1
  782. package/src/shared/logo-settings/components/LogoSettings.mixin.ts +4 -4
  783. package/src/shared/logo-settings/components/LogoSettings.vue +1 -1
  784. package/src/shared/logo-settings/components/LogoStyleSettingsWithState.vue +4 -4
  785. package/src/shared/logo-settings/components/LogoTemplateSearch.vue +4 -4
  786. package/src/shared/logo-settings/components/LogoVariations.vue +1 -1
  787. package/src/shared/logo-settings/components/logo-switch-confirmation-modal/LogoSwitchConfirmationModal.vue +1 -1
  788. package/src/shared/logo-settings/store/editable-logo-store.ts +5 -5
  789. package/src/shared/logo-settings/store/logo-settings-store.test.ts +7 -5
  790. package/src/shared/logo-settings/store/logo-settings-store.ts +5 -12
  791. package/src/shared/logo-versions/LogoVersions.mixin.ts +1 -1
  792. package/src/shared/models.ts +1 -1
  793. package/src/shared/my-designs/MyDesigns.mixin.ts +2 -2
  794. package/src/shared/my-designs/MyDesigns.vue +1 -1
  795. package/src/shared/my-uploads/MyMedia.mixin.ts +4 -4
  796. package/src/shared/my-uploads/MyMedia.stories.ts +3 -3
  797. package/src/shared/my-uploads/MyMedia.vue +1 -1
  798. package/src/shared/my-uploads/MyUploads.mixin.ts +4 -4
  799. package/src/shared/my-uploads/MyUploads.stories.ts +1 -1
  800. package/src/shared/my-uploads/MyUploads.vue +1 -1
  801. package/src/shared/my-uploads/models.ts +1 -1
  802. package/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.ts +6 -6
  803. package/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.vue +1 -1
  804. package/src/shared/navigation-style-settings/store/index.ts +7 -11
  805. package/src/shared/page-navigation/store/page-navigation-store.ts +168 -0
  806. package/src/shared/page-settings/components/delete-page-modal/DeletePageModal.vue +1 -1
  807. package/src/shared/page-settings/components/new-page-modal/NewPageModal.mixin.ts +19 -2
  808. package/src/shared/page-settings/components/new-page-modal/NewPageModal.vue +1 -1
  809. package/src/shared/page-settings/components/page-settings/PageElement.vue +1 -1
  810. package/src/shared/page-settings/components/page-settings/PageSettingMenu.vue +1 -1
  811. package/src/shared/page-settings/components/page-settings/PageSettings.mixin.ts +60 -8
  812. package/src/shared/page-settings/components/page-settings/PageSettings.vue +2 -5
  813. package/src/shared/page-settings/components/page-settings-section-styles/FooterDisplayStyle.vue +3 -3
  814. package/src/shared/page-settings/components/page-settings-section-styles/HeaderDisplayStyle.vue +5 -5
  815. package/src/shared/page-settings/components/page-settings-section-styles/HeaderNavigationType.vue +3 -3
  816. package/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.ts +8 -8
  817. package/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.vue +3 -3
  818. package/src/shared/page-settings/models.ts +3 -2
  819. package/src/shared/page-settings/store/page-settings-store.test.ts +5 -4
  820. package/src/shared/page-settings/store/page-settings-store.ts +12 -8
  821. package/src/shared/page-settings/utils.ts +1 -1
  822. package/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.ts +7 -7
  823. package/src/shared/shape-library/ShapeLibrary.vue +4 -4
  824. package/src/shared/side-bar/components/SideBar.mixin.ts +1 -1
  825. package/src/shared/side-bar/components/SideBarTabButton.mixin.ts +2 -2
  826. package/src/shared/side-bar/store/side-bar-store.ts +1 -1
  827. package/src/shared/style-settings/components/StyleSettings.mixin.ts +7 -7
  828. package/src/shared/style-settings/components/StyleSettings.stories.ts +3 -3
  829. package/src/shared/style-settings/components/StyleSettings.vue +1 -1
  830. package/src/shared/style-settings/components/text-style-options-settings-with-state/TextStyleOptionsSettingsWithState.vue +5 -8
  831. package/src/shared/style-settings/models.ts +1 -1
  832. package/src/shared/style-settings/store/style-settings-store.test.ts +3 -3
  833. package/src/shared/style-settings/store/style-settings-store.ts +9 -9
  834. package/src/shared/template-settings/components/TemplatesSettings.mixin.ts +5 -5
  835. package/src/shared/template-settings/components/TemplatesSettings.stories.ts +2 -2
  836. package/src/shared/template-settings/components/TemplatesSettings.test-helper.ts +4 -4
  837. package/src/shared/template-settings/components/TemplatesSettings.vue +1 -1
  838. package/src/shared/template-settings/models.ts +2 -2
  839. package/src/shared/template-settings/store/template-settings-store.ts +6 -6
  840. package/src/shared/unsplash-library/UnsplashLibrary.mixin.ts +2 -2
  841. package/src/shared/unsplash-library/UnsplashLibrary.vue +1 -1
  842. package/src/shared/upload-logo-modal/UploadLogoModal.vue +2 -2
  843. package/src/shared/video-library/VideoLibrary.vue +2 -2
  844. package/src/shared/website-byo-upload/WebsiteByoUpload.vue +2 -2
@@ -1,5 +1,5 @@
1
1
  import { defineComponent } from 'vue';
2
- import { getRenderText } from '../../utils';
2
+ import { getRenderText } from '@brand-page/utils';
3
3
  import { FOOTER_DISPLAY } from '../../constants';
4
4
  export default defineComponent({
5
5
  props: {
@@ -1,6 +1,6 @@
1
1
  import type { PropType } from 'vue';
2
- import type { BrandPageContext } from '../../models';
3
- import type { PageHeaderViewModel } from '../../view-models';
2
+ import type { BrandPageContext } from '@brand-page/models';
3
+ import type { PageHeaderViewModel } from '@brand-page/view-models';
4
4
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
5
  navId: {
6
6
  type: StringConstructor;
@@ -1,6 +1,6 @@
1
1
  import type { PropType } from 'vue';
2
- import type { BrandPageContext, CheckoutInformation, CreateCartResult, PaymentConfig, PaymentOption } from '../../models';
3
- import type { RequestPaymentViewModel, SupportMeViewModel } from '../../view-models';
2
+ import type { BrandPageContext, CheckoutInformation, CreateCartResult, PaymentConfig, PaymentOption } from '@brand-page/models';
3
+ import type { RequestPaymentViewModel, SupportMeViewModel } from '@brand-page/view-models';
4
4
  export declare const paymentState: {
5
5
  readonly CreatingCart: "creating-cart";
6
6
  readonly IncompleteConfig: "incomplete-config";
@@ -1,8 +1,8 @@
1
1
  import { defineComponent } from 'vue';
2
2
  import brandPageClient from '../../clients/brand-page.client';
3
3
  import { DISPLAY_STYLE_COLLAPSED, DISPLAY_STYLE_PREVIEW, paymentProviders, } from '../../constants';
4
- import raygunUtil from '../../utils/raygun.util';
5
- import { paymentTr } from '../../../composables/useTranslate';
4
+ import raygunUtil from '@brand-page/utils/raygun.util';
5
+ import { paymentTr } from '@src/composables/useTranslate';
6
6
  const DEFAULT_PAYMENT_SUCCESS_MESSAGE = paymentTr(`defaultPaymentSuccessMessage`);
7
7
  const PAYMENT_CONFIG_ACTIVE = 'Active';
8
8
  export const paymentState = {
@@ -1,5 +1,5 @@
1
1
  import type { PropType } from 'vue';
2
- import type { BrandPagePaymentConfig, ButtonStyles, CheckoutInformation, CreateCartResult, StripePaymentIntent } from '../../models';
2
+ import type { BrandPagePaymentConfig, ButtonStyles, CheckoutInformation, CreateCartResult, StripePaymentIntent } from '@brand-page/models';
3
3
  declare global {
4
4
  interface Window {
5
5
  Stripe?: stripe.StripeStatic;
@@ -2,7 +2,7 @@ import { defineComponent } from 'vue';
2
2
  import validator from 'validator';
3
3
  import { debug, debugError } from '../../../utils/debug.util';
4
4
  import * as constants from '../../constants';
5
- import { requestPaymentStripeTr } from '../../../composables/useTranslate';
5
+ import { requestPaymentStripeTr } from '@src/composables/useTranslate';
6
6
  import brandPageClient from '../../clients/brand-page.client';
7
7
  const INVALID_EMAIL_MESSAGE = () => requestPaymentStripeTr('invalidEmailMessage');
8
8
  const STRIPE_SCRIPT_URL = 'https://js.stripe.com/v3/';
@@ -2,8 +2,8 @@ import { context as baseContext, logoTheme, } from '../../../__fixtures__/brand-
2
2
  import { faker } from '@faker-js/faker';
3
3
  import { DEFAULT_TEXT_ALIGN } from '../../../constants';
4
4
  import { applyLogoThemeToBrandPageStyles } from '../../../utils';
5
- import { BRAND_PAGE } from '../../../../brand-page-maker/components/brand-page-maker/__fixtures__';
6
- import { createInitialRequestPaymentContent } from '../../../../brand-page-maker/models';
5
+ import { BRAND_PAGE } from '@brand-page-maker/components/brand-page-maker/__fixtures__';
6
+ import { createInitialRequestPaymentContent } from '@brand-page-maker/models';
7
7
  import { BRAND_PAGE_PUBLISHABLE_KEY } from '../../../__fixtures__/stripe.fixture';
8
8
  export const context = {
9
9
  ...baseContext,
@@ -1,7 +1,7 @@
1
1
  import { context as baseContext, logoTheme, } from '../../../__fixtures__/brand-page-sample-data';
2
- import { createInitialSupportMeContent } from '../../../../brand-page-maker/models';
2
+ import { createInitialSupportMeContent } from '@brand-page-maker/models';
3
3
  import { applyLogoThemeToBrandPageStyles } from '../../../utils';
4
- import { BRAND_PAGE } from '../../../../brand-page-maker/components/brand-page-maker/__fixtures__';
4
+ import { BRAND_PAGE } from '@brand-page-maker/components/brand-page-maker/__fixtures__';
5
5
  import { faker } from '@faker-js/faker';
6
6
  import { DEFAULT_TEXT_ALIGN, SUPPORT_ME_CUSTOM_PRODUCT_NAME, SUPPORT_ME_PRODUCT_NAME, } from '../../../constants';
7
7
  import { BRAND_PAGE_PUBLISHABLE_KEY } from '../../../__fixtures__/stripe.fixture';
@@ -2,7 +2,7 @@ import { defineComponent } from 'vue';
2
2
  import { PAYMENT_OPTION_DISPLAY_TYPES, PAYMENT_OPTION_IMAGE_TYPES, } from '../../../models';
3
3
  import { DEFAULT_CURRENCY_SYMBOL } from '../../../constants';
4
4
  import { addOpacityToHex } from '../../../utils/color.util';
5
- import { RGBAtoHex } from '../../../../utils/helpers';
5
+ import { RGBAtoHex } from '@utils/helpers';
6
6
  const MAX_CUSTOM_REQUEST_CHARS = 500;
7
7
  export default defineComponent({
8
8
  props: {
@@ -1,7 +1,7 @@
1
1
  import RequestPayment from './RequestPayment.vue';
2
2
  import Payment from '../Payment.vue';
3
3
  import { viewModel, context } from '../__fixtures__/request-payment';
4
- import { setupStoryPinia } from '../../../../brand-page-maker/components/brand-page-maker/__fixtures__/store-fixture';
4
+ import { setupStoryPinia } from '@brand-page-maker/components/brand-page-maker/__fixtures__/store-fixture';
5
5
  import { faker } from '@faker-js/faker';
6
6
  import DarkBackground from '../../../storybook-helpers/components/DarkBackground.vue';
7
7
  const meta = {
@@ -2,7 +2,7 @@ import { defineComponent } from 'vue';
2
2
  import { SUPPORT_ME_CUSTOM_PRODUCT_NAME } from '../../../constants';
3
3
  import { isPaymentAmountValid } from '../../../utils';
4
4
  import { DEFAULT_CURRENCY_SYMBOL, DEFAULT_CURRENCY_CODE, } from '../../../constants';
5
- import { paymentTr } from '../../../../composables/useTranslate';
5
+ import { paymentTr } from '@src/composables/useTranslate';
6
6
  const MAX_CUSTOM_MESSAGE_CHARS = 500;
7
7
  export default defineComponent({
8
8
  props: {
@@ -1,6 +1,6 @@
1
1
  import { context, viewModel } from '../__fixtures__/support-me';
2
2
  import SupportMe from './SupportMe.vue';
3
- import { setupStoryPinia } from '../../../../brand-page-maker/components/brand-page-maker/__fixtures__/store-fixture';
3
+ import { setupStoryPinia } from '@brand-page-maker/components/brand-page-maker/__fixtures__/store-fixture';
4
4
  import DarkBackground from '../../../storybook-helpers/components/DarkBackground.vue';
5
5
  const meta = {
6
6
  title: 'BrandPage/Components/Payment/SupportMe',
@@ -1,6 +1,6 @@
1
1
  import type { PropType } from 'vue';
2
- import type { ProfileViewModel } from '../../view-models';
3
- import type { BrandPageContext } from '../../models';
2
+ import type { ProfileViewModel } from '@brand-page/view-models';
3
+ import type { BrandPageContext } from '@brand-page/models';
4
4
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
5
  viewModel: {
6
6
  type: PropType<ProfileViewModel>;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent } from 'vue';
2
- import { getRenderText, escapeContentText } from '../../utils';
3
- import { hasRTEContent } from '../../../brand-page-maker/utils/rich-text-editor.util';
2
+ import { getRenderText, escapeContentText } from '@brand-page/utils';
3
+ import { hasRTEContent } from '@brand-page-maker/utils/rich-text-editor.util';
4
4
  export default defineComponent({
5
5
  props: {
6
6
  viewModel: {
@@ -1,5 +1,5 @@
1
- import type { ProfileViewModel } from '../../view-models';
2
- import { type BrandPageContext } from '../../models/brand-page-context.model';
1
+ import type { ProfileViewModel } from '@brand-page/view-models';
2
+ import { type BrandPageContext } from '@brand-page/models/brand-page-context.model';
3
3
  declare const _default: {
4
4
  title: string;
5
5
  component: import("vue").DefineComponent<{}, {}, any>;
@@ -1,7 +1,7 @@
1
1
  import { defineComponent } from 'vue';
2
2
  import Profile from './Profile.vue';
3
3
  import { DEFAULT_TEXT_ALIGN } from '../../constants';
4
- import { MEDIA_SIZES, } from '../../models/brand-page-context.model';
4
+ import { MEDIA_SIZES, } from '@brand-page/models/brand-page-context.model';
5
5
  export default {
6
6
  title: 'Components/BrandPage/Profile',
7
7
  component: Profile,
@@ -1,9 +1,9 @@
1
1
  import CartModal from './CartModal.vue';
2
2
  import ProductDetailModal from './ProductDetailModal.vue';
3
3
  import PaymentModal from './PaymentModal.vue';
4
- import { setupStoryPinia } from '../../../brand-page-maker/components/brand-page-maker/__fixtures__/store-fixture';
5
- import { useCartStore } from '../../../shared/ecommerce-settings/store/cart-settings-store';
6
- import { useShopConfigStore } from '../../../shared/ecommerce-settings/store/shop-settings-store';
4
+ import { setupStoryPinia } from '@brand-page-maker/components/brand-page-maker/__fixtures__/store-fixture';
5
+ import { useCartStore } from '@shared/ecommerce-settings/store/cart-settings-store';
6
+ import { useShopConfigStore } from '@shared/ecommerce-settings/store/shop-settings-store';
7
7
  const InitialiseCartStores = () => {
8
8
  const shopStore = useShopConfigStore();
9
9
  shopStore.addProduct({
@@ -1,4 +1,4 @@
1
- import type { SocialLinksViewModel } from '../../view-models';
1
+ import type { SocialLinksViewModel } from '@brand-page/view-models';
2
2
  declare const _default: {
3
3
  title: string;
4
4
  component: import("vue").DefineComponent<{}, {}, any>;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="types/lodash-shims" />
2
2
  import type { PropType } from 'vue';
3
- import type { TestimonialSectionViewModel } from '../../view-models';
4
- import type { BrandPageContext } from '../../models';
3
+ import type { TestimonialSectionViewModel } from '@brand-page/view-models';
4
+ import type { BrandPageContext } from '@brand-page/models';
5
5
  import type { DebounceHandle } from 'lodash.debounce';
6
6
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
7
7
  viewModel: {
@@ -1,8 +1,8 @@
1
1
  import { defineComponent } from 'vue';
2
2
  import ComponentCommonMixin from '../mixins/component-common.mixin';
3
- import { getRenderText } from '../../utils';
3
+ import { getRenderText } from '@brand-page/utils';
4
4
  import debounce from 'lodash.debounce';
5
- import { DEVICE_CSS_TRANSITION_DELAY } from '../../../brand-page-maker/constants';
5
+ import { DEVICE_CSS_TRANSITION_DELAY } from '@brand-page-maker/constants';
6
6
  const DEBOUNCE_WAIT_MS = 100;
7
7
  export default defineComponent({
8
8
  mixins: [ComponentCommonMixin],
@@ -1,4 +1,4 @@
1
- import type { TextViewModel } from '../../view-models';
1
+ import type { TextViewModel } from '@brand-page/view-models';
2
2
  declare const _default: {
3
3
  title: string;
4
4
  component: import("vue").DefineComponent<{}, {}, any>;
@@ -1,5 +1,5 @@
1
1
  import type { PropType } from 'vue';
2
- import type { VideoViewModel } from '../../view-models';
2
+ import type { VideoViewModel } from '@brand-page/view-models';
3
3
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
4
  viewModel: {
5
5
  type: PropType<VideoViewModel>;
@@ -1,4 +1,4 @@
1
- import { constantsTr, errorTr } from '../../composables/useTranslate';
1
+ import { constantsTr, errorTr } from '@src/composables/useTranslate';
2
2
  export const DISPLAY_TEXT_TITLE = 'Titles';
3
3
  export const DISPLAY_TEXT_HEADINGS = 'Headings';
4
4
  export const DISPLAY_TEXT_BODY = 'Paragraphs';
@@ -1,4 +1,4 @@
1
- import { errorTr } from '../../composables/useTranslate';
1
+ import { errorTr } from '@src/composables/useTranslate';
2
2
  export const DEFAULT_CURRENCY_SYMBOL = '$';
3
3
  export const DEFAULT_CURRENCY_CODE = 'USD';
4
4
  export const DEFAULT_LOGO_TEXT_COLOR_RGB = 'rgb(0,0,0)';
@@ -1,4 +1,4 @@
1
- import type { ButtonGroupOption } from '../../../brand-page-maker/models/button-group.model';
1
+ import type { ButtonGroupOption } from '@brand-page-maker/models/button-group.model';
2
2
  export declare const FOOTER_DISPLAY: {
3
3
  /** @deprecated */
4
4
  ALIGN_CENTERED: string;
@@ -1,5 +1,5 @@
1
1
  import { ALIGN_CENTERED, ALIGN_JUSTIFIED } from '../misc.constants';
2
- import { tr, commonTr } from '../../../composables/useTranslate';
2
+ import { tr, commonTr } from '@src/composables/useTranslate';
3
3
  export const FOOTER_DISPLAY = {
4
4
  /** @deprecated */
5
5
  ALIGN_CENTERED, // mapped to CENTERED
@@ -1,4 +1,4 @@
1
- import type { ButtonGroupOption } from '../../../brand-page-maker/models/button-group.model';
1
+ import type { ButtonGroupOption } from '@brand-page-maker/models/button-group.model';
2
2
  export declare const HEADER_DISPLAY: {
3
3
  /** @deprecated */
4
4
  readonly ALIGN_CENTERED: "centered";
@@ -434,9 +434,26 @@ export declare class PageModel {
434
434
  title: string;
435
435
  slug: string;
436
436
  contents: Content[];
437
+ id: string;
437
438
  isHidden?: boolean;
438
439
  constructor(options: Partial<Omit<PageModel, 'contents'>> & Partial<Pick<PageModel, 'contents'>>);
439
440
  }
441
+ export interface NavRoute {
442
+ id: string;
443
+ pageId: string;
444
+ pageSlug: string;
445
+ isHidden: boolean;
446
+ displayName: string;
447
+ }
448
+ export interface NavOrder {
449
+ routeId: string;
450
+ subRoutes: NavOrder[];
451
+ }
452
+ export declare class NavModel {
453
+ orders: NavOrder[];
454
+ routes: NavRoute[];
455
+ constructor(options?: Partial<NavModel>);
456
+ }
440
457
  type AbstractPageHeaderStylesType = Partial<AbstractPageHeaderStyles>;
441
458
  export declare abstract class AbstractPageHeaderStyles {
442
459
  displayStyle: HeaderDisplayStyle;
@@ -538,6 +555,7 @@ export declare class BrandPageModel {
538
555
  pageFooterMobile: PageFooterMobile;
539
556
  pageFooterDesktop: PageFooterDesktop;
540
557
  pages: PageModel[];
558
+ nav: NavModel;
541
559
  isModifiedAfterTemplateApplied?: boolean;
542
560
  brandPageType?: BrandPageType;
543
561
  faviconUrl?: string;
@@ -168,12 +168,22 @@ export class PageModel {
168
168
  title;
169
169
  slug;
170
170
  contents;
171
+ id;
171
172
  isHidden;
172
173
  constructor(options) {
173
174
  this.title = options.title ?? '';
174
175
  this.slug = options.slug ?? '';
175
176
  this.contents = options.contents || [];
176
177
  this.isHidden = options.isHidden ?? false;
178
+ this.id = options.id || '';
179
+ }
180
+ }
181
+ export class NavModel {
182
+ orders;
183
+ routes;
184
+ constructor(options = {}) {
185
+ this.orders = options.orders || [];
186
+ this.routes = options.routes || [];
177
187
  }
178
188
  }
179
189
  export class AbstractPageHeaderStyles {
@@ -403,6 +413,7 @@ export class BrandPageModel {
403
413
  // @ts-expect-error should be initialised in constructor
404
414
  pageFooterDesktop;
405
415
  pages;
416
+ nav;
406
417
  isModifiedAfterTemplateApplied;
407
418
  brandPageType;
408
419
  faviconUrl;
@@ -476,5 +487,6 @@ export class BrandPageModel {
476
487
  this.cookieOptions = options.cookieOptions;
477
488
  this.saveContactSettings = options.saveContactSettings;
478
489
  this.paymentConfig = options.paymentConfig;
490
+ this.nav = new NavModel(options.nav);
479
491
  }
480
492
  }
@@ -1,5 +1,5 @@
1
1
  import { FONT_SIZE_HEADINGS, FONT_SIZE_TITLE, LINE_HEIGHT_HEADINGS, LINE_HEIGHT_TITLE, FONT_SIZE_BODY, LINE_HEIGHT_BODY, DISPLAY_TEXT_TITLE, DISPLAY_TEXT_HEADINGS, DISPLAY_TEXT_BODY, STYLE_THEME_KEYS, FONT_FAMILY_CONFIGS, DEFAULT_FONT_FAMILY_KEY, DISPlAY_TEXT_BUTTONS, } from '../constants';
2
- import { commonTr, styleSettingsTr } from '../../composables/useTranslate';
2
+ import { commonTr, styleSettingsTr } from '@src/composables/useTranslate';
3
3
  export const TEXT_STYLE_TYPES = {
4
4
  titles: 'titles',
5
5
  headings: 'headings',
@@ -1,4 +1,4 @@
1
- import { isHexColor } from '../../utils/helpers';
1
+ import { isHexColor } from '@src/utils/helpers';
2
2
  import { setRgbAlpha } from './color.util';
3
3
  import { ButtonSoftBoxShadowSize, ButtonBoxShadowSize, BoxShadowSpread, } from '../constants';
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import isHexColor from 'validator/lib/isHexColor';
2
- import { hexToRGBA, isColor } from '../../utils/helpers';
2
+ import { hexToRGBA, isColor } from '@src/utils/helpers';
3
3
  import Color, {} from 'color';
4
4
  // function from https://stackoverflow.com/a/9733420/3695983
5
5
  export const luminance = (r, g, b) => {
@@ -11,7 +11,7 @@ export * from './context.util';
11
11
  export * from './color.util';
12
12
  export * from './personalisation.util';
13
13
  export * from './migration.util';
14
- export * from '../../utils/validator.util';
14
+ export * from './validation.util';
15
15
  export * as logoUtil from './logo.util';
16
16
  export * as svgUtil from './svg.util';
17
17
  export * as svgShapeUtil from './svg-shape.util';
@@ -11,7 +11,7 @@ export * from './context.util';
11
11
  export * from './color.util';
12
12
  export * from './personalisation.util';
13
13
  export * from './migration.util';
14
- export * from '../../utils/validator.util';
14
+ export * from './validation.util';
15
15
  export * as logoUtil from './logo.util';
16
16
  export * as svgUtil from './svg.util';
17
17
  export * as svgShapeUtil from './svg-shape.util';
@@ -1,5 +1,5 @@
1
1
  import type { BrandPageModel } from '../../';
2
- import { type MigrationData } from '../../utils';
2
+ import { type MigrationData } from '@brand-page/utils';
3
3
  export declare const applyTextContentTextToTextItemsMigration: (brandPageModel: BrandPageModel) => void;
4
4
  export declare const migrateProfileContentToHaveTextStyles: (brandPageModel: BrandPageModel) => void;
5
5
  export declare const migrateMailingListContentToHaveTextStyles: (brandPageModel: BrandPageModel) => void;
@@ -1,8 +1,8 @@
1
1
  import { getLogoVariationIndexFromLogoImageUrl, getLogoDraftTokenFromLogoImageUrl, safeGetLogoImageFromLogoImageUrl, } from '../logo.util';
2
2
  import { DEFAULT_LETTER_SPACING, FOOTER_DISPLAY, NavigationDesktop, NavigationMobile, PageFooterDesktop, PageFooterMobile, PageHeaderDesktop, PageHeaderMobile, } from '../../';
3
3
  import { ALIGN_CARD_CENTER_IMAGE, ALIGN_CARD_LEFT_IMAGE, ALIGN_CENTERED, ALIGN_LEFT_BIG_IMAGE, BIG_IMAGE, BRAND_PAGE_TYPES, DEFAULT_FONT_FAMILY_KEY, DEFAULT_LOGO_HEIGHT, DEFAULT_LOGO_WIDTH, DEFAULT_TEXT_ALIGN, FONT_FAMILY_CONFIGS, HEADER_DISPLAY, NAVIGATION_DISPLAY, LINE_HEIGHT_BODY, LINE_HEIGHT_HEADINGS, LINE_HEIGHT_TITLE, PAYMENT_OPTION_DISPLAY_TYPES, } from '../../';
4
- import { isAboutContent, isBannerContent, isButtonContent, isContact, isImagesContent, isLogoContent, isMailingListContent, isPayment, isProfileContent, isShapesContent, isSocialLinks, isSupportMeContent, isTestimonialContent, isTextContent, } from '../../utils';
5
- import { createInitialLogoContent } from '../../../brand-page-maker/models';
4
+ import { isAboutContent, isBannerContent, isButtonContent, isContact, isImagesContent, isLogoContent, isMailingListContent, isPayment, isProfileContent, isShapesContent, isSocialLinks, isSupportMeContent, isTestimonialContent, isTextContent, } from '@brand-page/utils';
5
+ import { createInitialLogoContent } from '@brand-page-maker/models';
6
6
  export const applyTextContentTextToTextItemsMigration = (brandPageModel) => {
7
7
  const textContents = brandPageModel.pages.reduce((acc, cur) => {
8
8
  return [...acc, ...cur.contents.filter(isTextContent)];
@@ -0,0 +1,2 @@
1
+ import type { MigrationData } from '../migration.util';
2
+ export declare const migration12: (migrationResult: MigrationData) => Promise<MigrationData>;
@@ -0,0 +1,30 @@
1
+ import { v4 as uuid } from 'uuid';
2
+ import { NavModel } from '@brand-page/models';
3
+ export const migration12 = async (migrationResult) => {
4
+ const { brandPageModel } = migrationResult;
5
+ const pages = brandPageModel.pages;
6
+ // Add uuid to each page as id
7
+ pages.forEach((page) => {
8
+ if (!page.id) {
9
+ page.id = uuid();
10
+ }
11
+ });
12
+ const routes = [];
13
+ const orders = [];
14
+ pages.forEach((page) => {
15
+ const routeId = uuid();
16
+ routes.push({
17
+ id: routeId,
18
+ pageId: page.id,
19
+ pageSlug: page.slug,
20
+ isHidden: page.isHidden ?? false,
21
+ displayName: page.title,
22
+ });
23
+ orders.push({
24
+ routeId,
25
+ subRoutes: [],
26
+ });
27
+ });
28
+ brandPageModel.nav = new NavModel({ routes, orders });
29
+ return migrationResult;
30
+ };
@@ -13,6 +13,7 @@ import { migration08 } from './migration/migration-08';
13
13
  import { migration09 } from './migration/migration-09';
14
14
  import { migration10 } from './migration/migration-10';
15
15
  import { migration11 } from './migration/migration-11';
16
+ import { migration12 } from './migration/migration-12';
16
17
  const MIGRATION_TABLE = [
17
18
  {
18
19
  version: 1,
@@ -85,6 +86,11 @@ const MIGRATION_TABLE = [
85
86
  migrateFn: migration11,
86
87
  description: 'Remove backgroundColorEnabled flag from page headers',
87
88
  },
89
+ {
90
+ version: 12,
91
+ migrateFn: migration12,
92
+ description: 'Migrating nav model to support sub nav feature',
93
+ },
88
94
  ];
89
95
  export const GetLatestModelVersion = () => Math.max(...MIGRATION_TABLE.map((x) => x.version));
90
96
  export const migrateBrandPageModel = async (brandPageModel, options) => {
@@ -1,5 +1,5 @@
1
- import { escapeContentText } from '../../brand-page/utils';
2
- import { DEFAULT_PERSONALISATION_MAPPING, PERSONALISATION_MAPPINGS, TEXT_MEDIA_CONTENT_TYPES, } from '../../brand-page-maker/constants/personalisation.constant';
1
+ import { escapeContentText } from '@brand-page/utils';
2
+ import { DEFAULT_PERSONALISATION_MAPPING, PERSONALISATION_MAPPINGS, TEXT_MEDIA_CONTENT_TYPES, } from '@brand-page-maker/constants/personalisation.constant';
3
3
  import { BRAND_PAGE_TYPES, ShapeAspectRatioCategory } from '../models';
4
4
  import { getColorReplacementsFromSvgString, getColorReplacementsFromSvgStringServer, } from './svg-color.util';
5
5
  const ASPECT_RATIO_LOWER_CUT_OFF = 0.5;
@@ -5,4 +5,4 @@ export declare const getRouteParamsByPage: (isCustomDomain: boolean, brandPageSl
5
5
  slug: string;
6
6
  pageSlug: string;
7
7
  };
8
- export declare const getRouteNameByPageIndex: (isCustomDomain: boolean, pageIndex: number) => string;
8
+ export declare const getRouteNameByPageIndex: (isCustomDomain: boolean, pageIndex?: number) => string;
@@ -1,11 +1,11 @@
1
1
  import { VIEWPORTS, NavigationDesktop, NavigationMobile } from '../models';
2
2
  import { PageStyles, PageHeaderMobile, PageHeaderDesktop, PageFooterMobile, PageFooterDesktop, } from '../models';
3
3
  import { STYLE_THEME_KEYS } from '../constants';
4
- import { arrayToLinearGradient, linearGradientToArray, isColorLinearGradient, RGBAtoHex, } from '../../utils/helpers';
4
+ import { arrayToLinearGradient, linearGradientToArray, isColorLinearGradient, RGBAtoHex, } from '@src/utils/helpers';
5
5
  import { addTransparentAlphaChannelToHex, calculateLuminanceRatio, getNewColorBasedOnTargetColorTheme, } from './color.util';
6
- import { isRgbColor } from '../../utils/helpers';
6
+ import { isRgbColor } from '@src/utils/helpers';
7
7
  import chroma from 'chroma-js';
8
- import { hasRTEContent, RTE_ALLOWED_SECTION_TYPES, } from '../../brand-page-maker/utils';
8
+ import { hasRTEContent, RTE_ALLOWED_SECTION_TYPES, } from '@brand-page-maker/utils';
9
9
  /**
10
10
  * Simple utility to convert any color format to hex for consistent comparison
11
11
  */
@@ -1,4 +1,4 @@
1
- import { RGBAtoHex } from '../../utils/helpers';
1
+ import { RGBAtoHex } from '@src/utils/helpers';
2
2
  import * as uuid from 'uuid';
3
3
  import { getStyleDeclarations, getSvgConfig, handleAttributes, modifySvgMetadata, } from './svg-shape.util';
4
4
  import { parse, } from 'svg-parser';
@@ -1,5 +1,5 @@
1
- import { isEmail } from '../../utils/validator.util';
2
- import { errorTr } from '../../composables/useTranslate';
1
+ import { isEmail } from '@src/utils/validator.util';
2
+ import { errorTr } from '@src/composables/useTranslate';
3
3
  const MAX_EMAIL_LENGTH = 320;
4
4
  const MAX_PHONE_LENGTH = 50;
5
5
  const MAX_NAME_LENGTH = 250;
@@ -1,6 +1,6 @@
1
1
  import { isValidUrl } from '../../helpers/url.helper';
2
- import { getPlainTextFromRTE } from '../../brand-page-maker/utils/rich-text-editor.util';
3
- import { isEmail, isTel } from '../../utils/validator.util';
2
+ import { getPlainTextFromRTE } from '@brand-page-maker/utils/rich-text-editor.util';
3
+ import { isEmail, isTel } from '@src/utils/validator.util';
4
4
  // Constants
5
5
  const HTML_ENTITIES = {
6
6
  '&nbsp;': ' ',
@@ -1,5 +1,5 @@
1
- import type { ImageContent, ProfileContent, TextContent, PageStyles, Content, BrandPageModel, ImageGalleryContent, GalleryStyles, BannerSectionContent, ImagesSectionContent, BrandPageType, PageHeaderDesktop, PageFooterDesktop, PageFooterMobile, PageHeaderMobile, LogoImageModel, LogoTemplateImageModel, BookingSectionContent } from '../models';
2
- import type { ImageViewModel, LogoViewModel, ProfileViewModel, TextViewModel, ContentViewModel, BrandPageViewModel, ImageGalleryViewModel, PageViewModel, BannerSectionViewModel, PageHeaderViewModel, PageFooterViewModel, TextImageSectionViewModel, BookingSectionViewModel, PageStylesViewModel } from '../view-models';
1
+ import type { ImageContent, ProfileContent, TextContent, PageStyles, Content, BrandPageModel, ImageGalleryContent, GalleryStyles, BannerSectionContent, ImagesSectionContent, BrandPageType, PageHeaderDesktop, PageFooterDesktop, PageFooterMobile, PageHeaderMobile, LogoImageModel, LogoTemplateImageModel, BookingSectionContent, NavModel } from '../models';
2
+ import type { ImageViewModel, LogoViewModel, ProfileViewModel, TextViewModel, ContentViewModel, BrandPageViewModel, ImageGalleryViewModel, PageViewModel, BannerSectionViewModel, PageHeaderViewModel, PageFooterViewModel, TextImageSectionViewModel, BookingSectionViewModel, PageStylesViewModel, NavViewModel } from '../view-models';
3
3
  export declare const applyViewModelTextStyles: <T extends ContentViewModel>(content: T, styles: PageStyles) => T;
4
4
  export declare const mapToImageViewModel: (content: ImageContent) => ImageViewModel;
5
5
  export declare const mapToImageGalleryViewModel: (content: ImageGalleryContent, globalStyles: GalleryStyles) => ImageGalleryViewModel;
@@ -8,12 +8,15 @@ export declare const mapToTextViewModel: (content: TextContent, styles: PageStyl
8
8
  export declare const mapToBannerSectionViewModel: (content: BannerSectionContent, styles: PageStyles, options: ViewModelMappingOptions) => BannerSectionViewModel;
9
9
  export declare const mapToImagesSectionViewModel: (content: ImagesSectionContent, styles: PageStyles, brandPageType: BrandPageType) => TextImageSectionViewModel;
10
10
  export declare const mapToBookingSectionViewModel: (content: BookingSectionContent, styles: PageStyles) => BookingSectionViewModel;
11
+ export declare const mapToNavViewModel: (nav: NavModel, brandPageSlug?: string, isCustomDomain?: boolean) => NavViewModel;
11
12
  export declare const mapToPageStyleViewModel: (pageStyles: PageStyles, options: ViewModelMappingOptions) => PageStylesViewModel;
12
13
  export declare const mapToPageHeaderViewModel: (pageHeader: PageHeaderDesktop | PageHeaderMobile, pageStyles: PageStyles, pages: PageViewModel[], useOldLogoRenderSize?: boolean) => PageHeaderViewModel;
13
14
  export declare const mapToPageFooterViewModel: (pageFooter: PageFooterDesktop | PageFooterMobile, pageStyles: PageStyles, useOldLogoRenderSize?: boolean) => PageFooterViewModel;
14
15
  export declare const mapToViewModel: (styles: PageStyles, brandPageType: BrandPageType, options: ViewModelMappingOptions) => (content: Content) => ContentViewModel | undefined;
15
16
  interface ViewModelMappingOptions {
16
17
  useOldLogoRenderSize?: boolean;
18
+ isCustomDomain?: boolean;
19
+ brandPageSlug?: string;
17
20
  getVideoUrls?: (token: string) => {
18
21
  videoUrl: string;
19
22
  previewImageUrl: string;
@@ -3,16 +3,18 @@ import { assertUnreachable } from '../../helpers/ts.helper';
3
3
  import { ButtonStyles, SENSITIVE_CONTENT_TYPES, VIEWPORTS } from '../models';
4
4
  import { NavigationMobile, NavigationDesktop, BRAND_PAGE_TYPES, BUTTON_LINK_TYPE, NavigationMenuStyles, } from '../models';
5
5
  import { isHexTransparent, setRgbAlpha } from './color.util';
6
- import { isHexColor } from '../../utils/helpers';
6
+ import { isHexColor } from '@src/utils/helpers';
7
7
  import { CONTENT_TEXT_STYLE_PROPERTY_KEYS, FALLBACK_DEFAULT_LINK_COLOR, FONT_SIZE_BODY, LINE_HEIGHT_BODY, DEFAULT_LOGO_HEIGHT, DEFAULT_LOGO_WIDTH, ButtonSoftBoxShadowSize, ButtonBoxShadowSize, BoxShadowSpread, ALIGN_LEFT_ALIGNED, ALIGN_RIGHT_ALIGNED, MAX_IMAGES_SECTION_ALIGNMENT_ITEMS_LENGTH, FONT_FAMILY_CONFIGS, isGoogleType, LINE_HEIGHT_HEADINGS, FONT_SIZE_HEADINGS, DEFAULT_TEXT_ALIGN, IMAGE_RESOLUTION_PRESETS, BIG_IMAGE, ALIGN_LEFT_BIG_IMAGE, ALIGN_CARD_CENTER_IMAGE, ALIGN_CARD_LEFT_IMAGE, } from '../constants';
8
8
  import uniq from 'lodash/uniq';
9
9
  import { generateGoogleFontUrl } from './font-loader.util';
10
10
  import { isValidSvgUrl } from './image.util';
11
11
  import { isLogoContent } from './model.util';
12
12
  import { getBoxShadowValue } from './button.util';
13
+ import { getRouteNameByPageIndex, getRouteParamsByPage } from './route.util';
13
14
  const BUTTON_BORDER_RADIUS = '9999px';
14
15
  const CONTENT_BORDER_RADIUS = '48px';
15
16
  const PROFILE_PADDING_TOP = '1rem';
17
+ const MAX_SUB_NAV_DEPTH = 1;
16
18
  const applyContentBorderRadius = (styles) => {
17
19
  return {
18
20
  ...styles,
@@ -604,6 +606,27 @@ export const mapToBookingSectionViewModel = (content, styles) => {
604
606
  isFullWidth: true,
605
607
  }, styles);
606
608
  };
609
+ // Recursively build the nav item view model for each page/sub page in the nav
610
+ const buildNavItemViewModel = (order, routes, parentPath, isFirstPage, brandPageSlug, isCustomDomain, depth = 0) => {
611
+ const route = routes.find((r) => r.id === order.routeId);
612
+ const pageSlug = route?.pageSlug ?? '';
613
+ const relativePath = parentPath ? `${parentPath}/${pageSlug}` : pageSlug;
614
+ return {
615
+ displayName: route?.displayName ?? '',
616
+ routeName: getRouteNameByPageIndex(Boolean(isCustomDomain), isFirstPage ? 0 : 9999),
617
+ routeParams: getRouteParamsByPage(Boolean(isCustomDomain), brandPageSlug ?? '', pageSlug),
618
+ relativePath,
619
+ isHidden: route?.isHidden ?? false,
620
+ nestedNavItems: depth >= MAX_SUB_NAV_DEPTH
621
+ ? []
622
+ : order.subRoutes.map((subRoute) => buildNavItemViewModel(subRoute, routes, relativePath, false, brandPageSlug, isCustomDomain, depth + 1)),
623
+ };
624
+ };
625
+ export const mapToNavViewModel = (nav, brandPageSlug, isCustomDomain) => {
626
+ return {
627
+ navItems: nav.orders.map((order, idx) => buildNavItemViewModel(order, nav.routes, '', idx === 0, brandPageSlug, isCustomDomain)),
628
+ };
629
+ };
607
630
  export const mapToPageStyleViewModel = (pageStyles, options) => {
608
631
  return {
609
632
  backgroundStylesViewModel: mapBackgroundStylesToViewModel(pageStyles.backgroundStyles, options),
@@ -781,14 +804,17 @@ export const getBrandPageViewModelFromBrandPageModel = (model, brandPageToken, s
781
804
  return {
782
805
  title: p.title,
783
806
  slug: p.slug,
807
+ id: p.id,
784
808
  contents,
785
809
  isHidden: Boolean(p?.isHidden),
786
810
  };
787
811
  });
812
+ const nav = mapToNavViewModel(model.nav, options.brandPageSlug, options.isCustomDomain);
788
813
  return {
789
814
  brandPageToken,
790
815
  pages,
791
816
  showBrandCrowdLogo,
817
+ nav,
792
818
  styles: mapToPageStyleViewModel(model.styles, options),
793
819
  headerViewModelDesktop: mapToPageHeaderViewModel(model.pageHeaderDesktop, model.styles, pages, options.useOldLogoRenderSize),
794
820
  headerViewModelMobile: mapToPageHeaderViewModel(model.pageHeaderMobile, model.styles, pages, options.useOldLogoRenderSize),