@designcrowd/library.brand-page 5.19.2 → 6.0.0

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 (323) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-Ekmn0O3s.js → CreatedOnBrandCrowd-de-de-BhimVEpD.js} +3 -3
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-BjeXlKTS.js → CreatedOnBrandCrowd-en-us-CcBSmedR.js} +3 -3
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-rpNINAMY.js → CreatedOnBrandCrowd-es-es-Bywf3OqP.js} +3 -3
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-BL4nSaLj.js → CreatedOnBrandCrowd-fr-ca-CWpYmK2m.js} +3 -3
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-BL4nSaLj.js → CreatedOnBrandCrowd-fr-fr-CWpYmK2m.js} +3 -3
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-K0r4FyYq.js → CreatedOnBrandCrowd-pt-br-DHM9G51s.js} +3 -3
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-K0r4FyYq.js → CreatedOnBrandCrowd-pt-pt-DHM9G51s.js} +3 -3
  8. package/lib/src/{CreatedOnDcom-de-de-0XYyEKYc.js → CreatedOnDcom-de-de-BnUSIarY.js} +3 -3
  9. package/lib/src/{CreatedOnDcom-en-us-E8hvwiMd.js → CreatedOnDcom-en-us-DzU8X52o.js} +3 -3
  10. package/lib/src/{CreatedOnDcom-es-es-pRuCd7xX.js → CreatedOnDcom-es-es-rpp-c_OZ.js} +3 -3
  11. package/lib/src/{CreatedOnDcom-fr-ca-Bu4V3jpn.js → CreatedOnDcom-fr-ca-MJ7nCJTH.js} +3 -3
  12. package/lib/src/{CreatedOnDcom-fr-fr-CCcrGNz2.js → CreatedOnDcom-fr-fr-B3USPvBZ.js} +3 -3
  13. package/lib/src/{CreatedOnDcom-pt-br-1GTvaLKd.js → CreatedOnDcom-pt-br-DJv7sfEZ.js} +3 -3
  14. package/lib/src/{CreatedOnDcom-pt-pt-CTIYW10X.js → CreatedOnDcom-pt-pt-DAPP7A-E.js} +3 -3
  15. package/lib/src/brand-page/clients/brand-page.client.d.ts +9 -9
  16. package/lib/src/brand-page/components/banner-section/BannerSection.mixin.d.ts +103 -0
  17. package/lib/src/brand-page/components/banner-section/BannerSection.mixin.js +178 -0
  18. package/lib/src/brand-page/components/image-gallery/masonry/MasonryGallery.mixin.d.ts +0 -1
  19. package/lib/src/brand-page/components/navigation/hamburger/HamburgerNavigation.mixin.d.ts +4 -2
  20. package/lib/src/brand-page/components/navigation/hamburger/HamburgerNavigation.mixin.js +1 -0
  21. package/lib/src/brand-page/components/navigation/navigation-side-menu/NavigationSideMenu.mixin.d.ts +4 -2
  22. package/lib/src/brand-page/components/navigation/navigation-side-menu/NavigationSideMenu.mixin.js +5 -4
  23. package/lib/src/brand-page/components/page/Page.mixin.d.ts +1 -1
  24. package/lib/src/brand-page/components/page/PageComponent.mixin.d.ts +1 -1
  25. package/lib/src/brand-page/components/payment/Payment.mixin.d.ts +3 -3
  26. package/lib/src/brand-page/components/payment/__fixtures__/request-payment.d.ts +13 -13
  27. package/lib/src/brand-page/components/payment/__fixtures__/support-me.d.ts +13 -13
  28. package/lib/src/brand-page/constants/sections/footer-display.constants.js +1 -1
  29. package/lib/src/brand-page/models/index.d.ts +1 -1
  30. package/lib/src/brand-page/models/payment.model.d.ts +1 -1
  31. package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.d.ts +21 -19
  32. package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.js +1 -0
  33. package/lib/src/brand-page-maker/components/admin-background-settings/AdminBackgroundSettings.mixin.d.ts +10 -10
  34. package/lib/src/brand-page-maker/components/admin-logo-settings/AdminLogoSettings.mixin.d.ts +3 -3
  35. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +170 -170
  36. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.js +1 -0
  37. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMakerTemplateSettings.mixin.d.ts +12 -12
  38. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMakerTemplateSettings.stories.js +2 -2
  39. package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-payment.js +0 -7
  40. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +148 -149
  41. package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.d.ts +21 -21
  42. package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.js +1 -1
  43. package/lib/src/brand-page-maker/components/color-picker/components/ColorModeSelect.mixin.d.ts +4 -2
  44. package/lib/src/brand-page-maker/components/color-picker/components/ColorModeSelect.mixin.js +1 -0
  45. package/lib/src/brand-page-maker/components/color-picker/components/GradientColorSlider.mixin.d.ts +4 -2
  46. package/lib/src/brand-page-maker/components/color-picker/components/GradientColorSlider.mixin.js +1 -0
  47. package/lib/src/brand-page-maker/components/color-picker/components/GradientColorSliderHandler.mixin.d.ts +5 -2
  48. package/lib/src/brand-page-maker/components/color-picker/components/GradientColorSliderHandler.mixin.js +1 -0
  49. package/lib/src/brand-page-maker/components/color-picker/components/GradientTypeSelector.mixin.d.ts +4 -2
  50. package/lib/src/brand-page-maker/components/color-picker/components/GradientTypeSelector.mixin.js +1 -0
  51. package/lib/src/brand-page-maker/components/device/Device.mixin.d.ts +4 -2
  52. package/lib/src/brand-page-maker/components/device/Device.mixin.js +1 -0
  53. package/lib/src/brand-page-maker/components/navigation/Navigation.mixin.d.ts +4 -2
  54. package/lib/src/brand-page-maker/components/navigation/Navigation.mixin.js +1 -0
  55. package/lib/src/brand-page-maker/components/preview/Preview.mixin.d.ts +3 -3
  56. package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.d.ts +11 -11
  57. package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +27 -25
  58. package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.js +1 -0
  59. package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +27 -27
  60. package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.js +1 -1
  61. package/lib/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.d.ts +17 -12
  62. package/lib/src/brand-page-maker/components/social-share/SocialShare.mixin.d.ts +12 -12
  63. package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +29 -30
  64. package/lib/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.d.ts +11 -11
  65. package/lib/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.js +1 -1
  66. package/lib/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.d.ts +1 -1
  67. package/lib/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.js +6 -6
  68. package/lib/src/brand-page-maker/composables/useEventTracker.d.ts +2 -2
  69. package/lib/src/brand-page-maker/constants/config-settings-constant.d.ts +6 -6
  70. package/lib/src/brand-page-maker/constants/config-settings-constant.js +1 -1
  71. package/lib/src/brand-page-maker/convertors/text-image-display-style.convertor.d.ts +1 -1
  72. package/lib/src/brand-page-maker/convertors/text-image-display-style.convertor.js +1 -1
  73. package/lib/src/brand-page-maker/models/content-settings.d.ts +1 -1
  74. package/lib/src/brand-page-maker/models/navigation-style-configs.js +1 -1
  75. package/lib/src/brand-page-maker/routing/brand-page-maker-router.d.ts +1 -2
  76. package/lib/src/brand-page-maker/stores/ai-checkpoint/ai-checkpoint-store.d.ts +360 -360
  77. package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.d.ts +4 -4
  78. package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.js +5 -5
  79. package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.d.ts +1 -1
  80. package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +3 -3
  81. package/lib/src/brand-page-maker/stores/history/history-store.d.ts +15 -15
  82. package/lib/src/brand-page-maker/utils/content-settings.util.js +1 -1
  83. package/lib/src/brand-page-maker/utils/rich-text-editor.util.d.ts +1 -1
  84. package/lib/src/brand-page-maker/utils/rich-text-editor.util.js +4 -4
  85. package/lib/src/clients/brand-page-client.d.ts +16 -15
  86. package/lib/src/clients/media-client.d.ts +2 -2
  87. package/lib/src/css/library.brand-page-brandCrowd.min.css +323 -317
  88. package/lib/src/css/library.brand-page-brandPage.min.css +601 -317
  89. package/lib/src/css/library.brand-page-designCom.min.css +323 -317
  90. package/lib/src/css/library.brand-page-preview.min.css +579 -317
  91. package/lib/src/index.d.ts +1 -1
  92. package/lib/src/index.mjs +16 -15
  93. package/lib/src/{lib-BfgUqu0B.js → lib-Cfx4mNMR.js} +36304 -33366
  94. package/lib/src/lib.js +1 -1
  95. package/lib/src/metadata-builder/builders/section-builders/image-gallery-builder.js +1 -1
  96. package/lib/src/metadata-builder/builders/section-builders/images-section-builder.js +1 -1
  97. package/lib/src/metadata-builder/builders/section-builders/testimonial-section-builder.js +1 -1
  98. package/lib/src/metadata-builder/builders/section-builders/text-section-builder.js +1 -1
  99. package/lib/src/metadata-builder/builders/shape-color-utils.js +1 -1
  100. package/lib/src/plugins/google-maps-plugin/google-maps-plugin.d.ts +1 -1
  101. package/lib/src/plugins/google-maps-plugin/google-maps-plugin.js +8 -8
  102. package/lib/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.d.ts +13 -13
  103. package/lib/src/shared/background-settings/store/background-settings-store.d.ts +3 -3
  104. package/lib/src/shared/color-picker/components/ColorPicker.mixin.d.ts +4 -2
  105. package/lib/src/shared/color-picker/components/ColorPicker.mixin.js +2 -2
  106. package/lib/src/shared/color-picker/components/ColorPickerSwatch.mixin.d.ts +4 -2
  107. package/lib/src/shared/color-picker/components/ColorPickerSwatch.mixin.js +1 -0
  108. package/lib/src/shared/confirm-modal/ConfirmModal.mixin.d.ts +5 -2
  109. package/lib/src/shared/confirm-modal/ConfirmModal.mixin.js +1 -0
  110. package/lib/src/shared/content-settings/components/GenericTextInput.mixin.d.ts +0 -1
  111. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +131 -129
  112. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.js +2 -1
  113. package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +111 -110
  114. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +84 -81
  115. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.js +5 -0
  116. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +111 -109
  117. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.js +1 -14
  118. package/lib/src/shared/content-settings/components/email-field/EmailField.mixin.d.ts +0 -1
  119. package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.d.ts +72 -70
  120. package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.js +4 -3
  121. package/lib/src/shared/content-settings/components/form-fields-field/FormFieldsField.mixin.d.ts +4 -4
  122. package/lib/src/shared/content-settings/components/icon-library/IconLibrary.mixin.d.ts +3 -1
  123. package/lib/src/shared/content-settings/components/icon-library/IconLibrary.mixin.js +1 -0
  124. package/lib/src/shared/content-settings/components/images-field/ImagesField.mixin.d.ts +2 -2
  125. package/lib/src/shared/content-settings/components/items-field/ItemsField.mixin.d.ts +4 -3
  126. package/lib/src/shared/content-settings/components/items-field/ItemsField.mixin.js +1 -1
  127. package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +40 -40
  128. package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigOptionField.mixin.d.ts +5 -6
  129. package/lib/src/shared/content-settings/components/shape-field/ShapeField.mixin.d.ts +0 -1
  130. package/lib/src/shared/content-settings/components/slider-field/SliderField.mixin.d.ts +2 -2
  131. package/lib/src/shared/content-settings/components/tel-field/TelField.mixin.d.ts +0 -1
  132. package/lib/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.d.ts +1 -2
  133. package/lib/src/shared/content-settings/components/text-field/TextField.mixin.d.ts +0 -1
  134. package/lib/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.d.ts +1 -2
  135. package/lib/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.js +1 -1
  136. package/lib/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.d.ts +28 -28
  137. package/lib/src/shared/content-settings/components/textarea-field/TextareaField.mixin.d.ts +0 -1
  138. package/lib/src/shared/content-settings/components/toggle-field/ToggleField.mixin.d.ts +2 -2
  139. package/lib/src/shared/content-settings/components/url-field/UrlField.mixin.d.ts +0 -1
  140. package/lib/src/shared/content-settings/components/youtube-video-field/YoutubeVideoField.mixin.d.ts +0 -1
  141. package/lib/src/shared/content-settings/store/content-settings-store.d.ts +39 -39
  142. package/lib/src/shared/content-settings/utils.js +0 -1
  143. package/lib/src/shared/font-family-selector/FontFamilySelector.mixin.d.ts +6 -4
  144. package/lib/src/shared/font-family-selector/FontFamilySelector.mixin.js +1 -0
  145. package/lib/src/shared/image-gallery-style-settings/ImageGalleryStyleSettings.mixin.d.ts +4 -2
  146. package/lib/src/shared/image-gallery-style-settings/ImageGalleryStyleSettings.mixin.js +1 -0
  147. package/lib/src/shared/logo-settings/components/EditLogoSettings.mixin.d.ts +20 -21
  148. package/lib/src/shared/logo-settings/components/EditLogoSettings.mixin.js +1 -1
  149. package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +50 -51
  150. package/lib/src/shared/logo-settings/components/LogoSettingsHeader.mixin.d.ts +6 -4
  151. package/lib/src/shared/logo-settings/components/LogoSettingsHeader.mixin.js +1 -0
  152. package/lib/src/shared/logo-settings/store/editable-logo-store.js +1 -1
  153. package/lib/src/shared/logo-settings/store/logo-settings-store.d.ts +1 -1
  154. package/lib/src/shared/logo-versions/LogoVersions.mixin.d.ts +7 -5
  155. package/lib/src/shared/logo-versions/LogoVersions.mixin.js +1 -0
  156. package/lib/src/shared/my-designs/MyDesigns.mixin.d.ts +8 -6
  157. package/lib/src/shared/my-designs/MyDesigns.mixin.js +1 -0
  158. package/lib/src/shared/my-uploads/MyMedia.mixin.d.ts +8 -5
  159. package/lib/src/shared/my-uploads/MyMedia.mixin.js +1 -0
  160. package/lib/src/shared/my-uploads/MyUploads.mixin.d.ts +8 -5
  161. package/lib/src/shared/my-uploads/MyUploads.mixin.js +1 -0
  162. package/lib/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.d.ts +5 -3
  163. package/lib/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.js +1 -0
  164. package/lib/src/shared/navigation-style-settings/store/index.d.ts +2 -2
  165. package/lib/src/shared/page-navigation/store/page-navigation-store.d.ts +2 -2
  166. package/lib/src/shared/page-settings/components/new-page-modal/NewPageModal.mixin.d.ts +27 -28
  167. package/lib/src/shared/page-settings/components/new-page-modal/NewPageModal.mixin.js +0 -2
  168. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +182 -177
  169. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +175 -175
  170. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.js +1 -1
  171. package/lib/src/shared/page-settings/store/page-settings-store.d.ts +9 -9
  172. package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +39 -39
  173. package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.js +0 -1
  174. package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +18 -18
  175. package/lib/src/shared/side-bar/components/SideBarTabButton.mixin.d.ts +6 -6
  176. package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +60 -60
  177. package/lib/src/shared/style-settings/store/style-settings-store.d.ts +1 -1
  178. package/lib/src/shared/style-settings/store/style-settings-store.js +1 -1
  179. package/lib/src/shared/template-settings/components/TemplatesSettings.mixin.d.ts +10 -11
  180. package/lib/src/shared/unsplash-library/UnsplashLibrary.mixin.d.ts +3 -4
  181. package/package.json +61 -57
  182. package/src/brand-page/components/about-section/AboutSection.vue.test.ts +7 -5
  183. package/src/brand-page/components/banner-section/BannerSection.mixin.ts +210 -0
  184. package/src/brand-page/components/brand-page-footer/BrandPageFooter.vue +1 -1
  185. package/src/brand-page/components/image/Image.mixin.ts +1 -1
  186. package/src/brand-page/components/image/Image.test.ts +1 -1
  187. package/src/brand-page/components/images-section/ImagesSection.vue +0 -1
  188. package/src/brand-page/components/logo/LogoRender.vue +188 -188
  189. package/src/brand-page/components/navigation/hamburger/HamburgerNavigation.mixin.ts +1 -0
  190. package/src/brand-page/components/navigation/navigation-side-menu/NavigationSideMenu.mixin.ts +15 -6
  191. package/src/brand-page/components/page-footer/PageFooter.vue +1 -0
  192. package/src/brand-page/components/page-header/HeaderLayout.vue +12 -6
  193. package/src/brand-page/components/page-header/PageHeader.vue +1 -0
  194. package/src/brand-page/components/shapes-section/ShapesSection.vue +1 -1
  195. package/src/brand-page/components/shop/CartModal.vue +1 -3
  196. package/src/brand-page/components/shop/FeaturedDisplay.vue +2 -2
  197. package/src/brand-page/components/shop/PaymentModal.vue +1 -5
  198. package/src/brand-page/components/shop/ProductDetailModal.vue +1 -1
  199. package/src/brand-page/components/shop/Shop.vue +1 -1
  200. package/src/brand-page/components/shop/TextDisplay.vue +1 -1
  201. package/src/brand-page/components/shop/ThumbnailDisplay.vue +2 -2
  202. package/src/brand-page/components/testimonial-section/TestimonialSection.vue +3 -3
  203. package/src/brand-page/components/text-wrapper/TextWrapper.vue +3 -1
  204. package/src/brand-page/constants/sections/footer-display.constants.ts +1 -1
  205. package/src/brand-page/models/payment.model.ts +2 -1
  206. package/src/brand-page/models/shop.model.ts +0 -2
  207. package/src/brand-page/models/user-personalisation.model.ts +1 -2
  208. package/src/brand-page/utils/migration/migration-01_1.ts +1 -1
  209. package/src/brand-page/utils/migration/migration-02.ts +0 -1
  210. package/src/brand-page/utils/migration/migration-03.ts +0 -1
  211. package/src/brand-page/utils/migration/migration-04.ts +0 -1
  212. package/src/brand-page/utils/migration/migration-05.ts +1 -5
  213. package/src/brand-page/utils/migration/migration-05_2.ts +1 -1
  214. package/src/brand-page/utils/migration/migration-08.test.ts +1 -1
  215. package/src/brand-page/view-models.ts +38 -56
  216. package/src/brand-page-maker/assessors/banner-section-description-visibility.assessor.ts +6 -6
  217. package/src/brand-page-maker/assessors/color-replacement-icon-visibility.assessor.ts +2 -2
  218. package/src/brand-page-maker/assessors/color-replacement-profile-visibility.assessor.ts +2 -2
  219. package/src/brand-page-maker/assessors/color-replacement-visibility.assessor.ts +2 -2
  220. package/src/brand-page-maker/assessors/contact-form-visibility.assessor.ts +14 -14
  221. package/src/brand-page-maker/components/action-bar/ActionBar.mixin.ts +1 -0
  222. package/src/brand-page-maker/components/ai-text-edit/TextBubble.vue +1 -0
  223. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.ts +1 -1
  224. package/src/brand-page-maker/components/brand-page-maker/BrandPageMakerTemplateSettings.stories.ts +2 -5
  225. package/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.ts +0 -5
  226. package/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-payment.ts +0 -8
  227. package/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-site-template.examples.ts +0 -2
  228. package/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.vue +1 -0
  229. package/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.ts +1 -1
  230. package/src/brand-page-maker/components/color-palette/BpColorPalette.vue +1 -2
  231. package/src/brand-page-maker/components/color-picker/components/ColorModeSelect.mixin.ts +1 -0
  232. package/src/brand-page-maker/components/color-picker/components/GradientColorSlider.mixin.ts +1 -0
  233. package/src/brand-page-maker/components/color-picker/components/GradientColorSliderHandler.mixin.ts +1 -0
  234. package/src/brand-page-maker/components/color-picker/components/GradientTypeSelector.mixin.ts +1 -0
  235. package/src/brand-page-maker/components/device/Device.mixin.ts +1 -0
  236. package/src/brand-page-maker/components/navigation/Navigation.mixin.ts +1 -0
  237. package/src/brand-page-maker/components/rich-text-editor/RichTextEditor.vue +3 -1
  238. package/src/brand-page-maker/components/sensitive-content/SensitiveContent.vue +1 -4
  239. package/src/brand-page-maker/components/seo-settings/DeleteDomainModal.vue +1 -1
  240. package/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.ts +1 -0
  241. package/src/brand-page-maker/components/seo-settings/SeoPageSettings.vue +1 -1
  242. package/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.ts +0 -1
  243. package/src/brand-page-maker/components/seo-settings/UrlSettings.vue +0 -1
  244. package/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.vue +1 -5
  245. package/src/brand-page-maker/components/shop/AddOrEditProductContainer.vue +1 -1
  246. package/src/brand-page-maker/components/shop/ReplaceImageSettingsForShop.vue +1 -1
  247. package/src/brand-page-maker/components/social-share/SocialShare.vue +1 -1
  248. package/src/brand-page-maker/components/video-play/VideoPlayButton.vue +1 -1
  249. package/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.ts +1 -1
  250. package/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.ts +6 -6
  251. package/src/brand-page-maker/constants/config-settings-constant.ts +3 -3
  252. package/src/brand-page-maker/convertors/text-image-display-style.convertor.ts +1 -1
  253. package/src/brand-page-maker/models/button-styles-config.ts +4 -2
  254. package/src/brand-page-maker/models/content-settings-configs.ts +4 -2
  255. package/src/brand-page-maker/models/navigation-style-configs.ts +5 -6
  256. package/src/brand-page-maker/stores/admin-logo-settings/admin-logo-settings-store.ts +0 -1
  257. package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.ts +3 -5
  258. package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.test.ts +1 -3
  259. package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +2 -4
  260. package/src/brand-page-maker/utils/content-settings.util.ts +1 -1
  261. package/src/brand-page-maker/utils/rich-text-editor.util.ts +4 -4
  262. package/src/lib.ts +1 -0
  263. package/src/metadata-builder/builders/section-builders/image-gallery-builder.ts +1 -1
  264. package/src/metadata-builder/builders/section-builders/images-section-builder.ts +1 -1
  265. package/src/metadata-builder/builders/section-builders/testimonial-section-builder.ts +1 -1
  266. package/src/metadata-builder/builders/section-builders/text-section-builder.ts +1 -1
  267. package/src/metadata-builder/builders/shape-color-utils.ts +2 -2
  268. package/src/plugins/google-maps-plugin/google-maps-plugin.ts +8 -8
  269. package/src/shared/background-settings/components/BackgroundSettings.vue +1 -1
  270. package/src/shared/background-settings/components/background-color/BackgroundColorSettings.vue +1 -1
  271. package/src/shared/color-picker/components/ColorPicker.mixin.ts +2 -7
  272. package/src/shared/color-picker/components/ColorPickerSwatch.mixin.ts +1 -0
  273. package/src/shared/common/NumberInput.vue +1 -0
  274. package/src/shared/common/SideBarSettingsHeader.vue +2 -2
  275. package/src/shared/confirm-modal/ConfirmModal.mixin.ts +1 -0
  276. package/src/shared/content-settings/components/booking-url-field/BookingUrlField.vue +1 -0
  277. package/src/shared/content-settings/components/button-configuration-field/ButtonConfigurationField.vue +1 -0
  278. package/src/shared/content-settings/components/color-field/ColorField.vue +3 -10
  279. package/src/shared/content-settings/components/content-settings/ContentSettings.mixin.ts +1 -1
  280. package/src/shared/content-settings/components/content-settings/ContentSettingsLockedButton.vue +1 -0
  281. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.ts +5 -0
  282. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.ts +1 -14
  283. package/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.ts +4 -6
  284. package/src/shared/content-settings/components/icon-library/IconLibrary.mixin.ts +1 -0
  285. package/src/shared/content-settings/components/items-field/ItemsField.mixin.ts +1 -1
  286. package/src/shared/content-settings/components/logo-selection-field/LogoSelectionField.vue +1 -1
  287. package/src/shared/content-settings/components/logo-size-field/LogoSizeSliderField.vue +1 -1
  288. package/src/shared/content-settings/components/page-dropdown-field/PageDropdownField.vue +1 -1
  289. package/src/shared/content-settings/components/personalisation-role-field/PersonalisationRoleField.vue +4 -4
  290. package/src/shared/content-settings/components/text-image-field/TextImageField.vue +2 -8
  291. package/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.ts +1 -1
  292. package/src/shared/content-settings/models.ts +3 -2
  293. package/src/shared/content-settings/utils.ts +0 -1
  294. package/src/shared/dropzone-image-uploader/components/DropzoneImageUploader.vue +1 -0
  295. package/src/shared/ecommerce-settings/store/cart-store.test.ts +1 -1
  296. package/src/shared/font-family-selector/FontFamilySelector.mixin.ts +1 -0
  297. package/src/shared/image-gallery-style-settings/ImageGalleryStyleSettings.mixin.ts +1 -0
  298. package/src/shared/logo-settings/components/EditLogoSettings.mixin.ts +1 -1
  299. package/src/shared/logo-settings/components/LogoSettings.mixin.ts +0 -1
  300. package/src/shared/logo-settings/components/LogoSettingsHeader.mixin.ts +1 -0
  301. package/src/shared/logo-settings/components/LogoStyleSettingsWithState.vue +2 -2
  302. package/src/shared/logo-settings/components/LogoTemplateSearch.vue +1 -1
  303. package/src/shared/logo-settings/store/editable-logo-store.ts +1 -1
  304. package/src/shared/logo-settings/store/logo-settings-store.test.ts +4 -4
  305. package/src/shared/logo-versions/LogoVersions.mixin.ts +1 -0
  306. package/src/shared/my-designs/MyDesigns.mixin.ts +1 -0
  307. package/src/shared/my-uploads/MyMedia.mixin.ts +1 -0
  308. package/src/shared/my-uploads/MyMediaSelectionItem.vue +2 -1
  309. package/src/shared/my-uploads/MyUploads.mixin.ts +1 -0
  310. package/src/shared/my-uploads/models.ts +1 -2
  311. package/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.ts +1 -0
  312. package/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.vue +1 -1
  313. package/src/shared/page-settings/components/new-page-modal/NewPageModal.mixin.ts +0 -3
  314. package/src/shared/page-settings/components/page-settings/NestedDraggable.vue +1 -1
  315. package/src/shared/page-settings/components/page-settings/PageSettings.vue +1 -2
  316. package/src/shared/page-settings/components/page-settings-section-styles/HeaderDisplayStyle.vue +1 -1
  317. package/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.ts +1 -1
  318. package/src/shared/page-settings/store/page-settings-store.test.ts +4 -8
  319. package/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.ts +0 -1
  320. package/src/shared/shape-library/ShapeLibrary.vue +2 -2
  321. package/src/shared/style-settings/store/style-settings-store.ts +1 -1
  322. package/src/shared/unsplash-library/UnsplashLibrary.vue +2 -6
  323. package/src/shared/video-library/VideoLibrary.vue +1 -1
@@ -178,11 +178,7 @@ import {
178
178
  Loader,
179
179
  } from '@designcrowd/fe-shared-lib';
180
180
  import UseExistingDomainModalMixin from './UseExistingDomainModal.mixin.ts';
181
- import {
182
- tr,
183
- commonTr,
184
- existingDomainModalTr,
185
- } from '@src/composables/useTranslate';
181
+ import { commonTr, existingDomainModalTr } from '@src/composables/useTranslate';
186
182
 
187
183
  export default {
188
184
  components: {
@@ -172,7 +172,7 @@ const enableNotes = computed(() => productSettingStore.productEnableNotes);
172
172
  const hasVariants = computed(() => productSettingStore.productHasVariants);
173
173
  const currencySymbol = computed(() => shopConfigStore.currencySymbol);
174
174
 
175
- const emit = defineEmits(['update:modelValue']);
175
+ defineEmits(['update:modelValue']);
176
176
 
177
177
  const onImageUpload = () => {
178
178
  productSettingStore.setImageUpload(true);
@@ -25,7 +25,7 @@ import {
25
25
  import type { UserMediaItemWithDimensions } from 'src/shared/my-uploads/models';
26
26
  const productSettingStore = useProductConfigStore();
27
27
 
28
- const emit = defineEmits(['on-close', 'on-save']);
28
+ defineEmits(['on-close', 'on-save']);
29
29
 
30
30
  const onBack = () => {
31
31
  productSettingStore.setImageUpload(false);
@@ -55,7 +55,7 @@
55
55
  <!-- End Loader Overlay -->
56
56
  </template>
57
57
  <script>
58
- import { Button, Loader, TextInput } from '@designcrowd/fe-shared-lib';
58
+ import { Loader, TextInput } from '@designcrowd/fe-shared-lib';
59
59
  import SocialShareMixin from './SocialShare.mixin';
60
60
  import ImageField from '@shared/content-settings/components/image-field/ImageField.vue';
61
61
  import { socialShareTr, commonTr } from '@src/composables/useTranslate';
@@ -28,5 +28,5 @@ interface Props {
28
28
  iconColor?: string;
29
29
  }
30
30
 
31
- const props = defineProps<Props>();
31
+ defineProps<Props>();
32
32
  </script>
@@ -1,4 +1,4 @@
1
- import { ref, computed, watch, nextTick, onUnmounted } from 'vue';
1
+ import { ref, computed, watch, nextTick } from 'vue';
2
2
  import type { BrandPageModel } from '../../../brand-page/models';
3
3
  import {
4
4
  getInstance as getAiAssistantClient,
@@ -628,15 +628,15 @@ export const useRichTextEditor = (
628
628
  );
629
629
  fontSettings.selectedTextColor = hasLogoColorVar(globalStyles.color ?? '')
630
630
  ? '#000000'
631
- : globalStyles?.color ?? '#000000';
631
+ : (globalStyles?.color ?? '#000000');
632
632
  fontSettings.selectedBackgroundColor = hasLogoColorVar(
633
633
  globalStyles?.backgroundColor ?? '',
634
634
  )
635
635
  ? 'transparent'
636
- : globalStyles?.backgroundColor ?? 'transparent';
636
+ : (globalStyles?.backgroundColor ?? 'transparent');
637
637
  lineHeight.value = globalStyles?.lineHeight?.includes('em')
638
638
  ? emToPx(globalStyles?.lineHeight ?? '1em')
639
- : globalStyles?.lineHeight ?? '1';
639
+ : (globalStyles?.lineHeight ?? '1');
640
640
  letterSpacing.value = letterSpacingValueConvertor.convert(
641
641
  globalStyles ?? {},
642
642
  );
@@ -658,15 +658,15 @@ export const useRichTextEditor = (
658
658
  props.styles?.color ?? '#000000',
659
659
  )
660
660
  ? '#000000'
661
- : props.styles?.color ?? '#000000';
661
+ : (props.styles?.color ?? '#000000');
662
662
  fontSettings.selectedBackgroundColor = hasLogoColorVar(
663
663
  props.styles?.backgroundColor ?? '',
664
664
  )
665
665
  ? 'transparent'
666
- : props.styles?.backgroundColor ?? 'transparent';
666
+ : (props.styles?.backgroundColor ?? 'transparent');
667
667
  lineHeight.value = props.styles?.lineHeight?.includes('em')
668
668
  ? emToPx(props.styles?.lineHeight ?? '1em')
669
- : props.styles?.lineHeight ?? '1';
669
+ : (props.styles?.lineHeight ?? '1');
670
670
  letterSpacing.value = letterSpacingValueConvertor.convert(
671
671
  props.styles ?? {},
672
672
  );
@@ -446,9 +446,9 @@ const shopReplaceImageSettings =
446
446
  titleReplace: contentSettingsTr(`imageReplaceTitle`),
447
447
  contentMediaFieldName: MediaFieldNames.requestPaymentConfig,
448
448
  setContentMedia: (
449
- content: ShopContent,
450
- value: SetContentMediaPayload,
451
- index?: number,
449
+ _content: ShopContent,
450
+ _value: SetContentMediaPayload,
451
+ _index?: number,
452
452
  ) => '',
453
453
  openByDefault: false,
454
454
  mediaType: null,
@@ -11,7 +11,7 @@ import {
11
11
  import type { ImagesSectionContent, MediaType } from '@brand-page';
12
12
 
13
13
  export const getTextMediaOptionsConverterByMediaType = (
14
- mediaType: MediaType,
14
+ _mediaType: MediaType,
15
15
  ): ValueConvertor<
16
16
  string | null,
17
17
  ButtonGroupConfig,
@@ -15,8 +15,10 @@ export const ButtonStyleConfigOptions = [
15
15
 
16
16
  export type ButtonStyleConfigOption = (typeof ButtonStyleConfigOptions)[number];
17
17
 
18
- export interface ButtonStyleConfig
19
- extends Omit<ButtonStyles, 'style' | 'template' | 'selectedButtonStyleId'> {
18
+ export interface ButtonStyleConfig extends Omit<
19
+ ButtonStyles,
20
+ 'style' | 'template' | 'selectedButtonStyleId'
21
+ > {
20
22
  readonly id: string;
21
23
  readonly hasShadow: boolean;
22
24
  readonly hasSoftShadow?: boolean;
@@ -156,8 +156,10 @@ export interface ContentSettingsField<TContent> {
156
156
  styleName?: string;
157
157
  }
158
158
 
159
- export interface ContentSettingsMultiField<TContent, TField>
160
- extends Omit<ContentSettingsField<TContent>, 'type' | 'role'> {
159
+ export interface ContentSettingsMultiField<TContent, TField> extends Omit<
160
+ ContentSettingsField<TContent>,
161
+ 'type' | 'role'
162
+ > {
161
163
  type: ItemMultiFieldType;
162
164
  role: 'multi';
163
165
  fields?: {
@@ -14,7 +14,7 @@ import type {
14
14
  import type { PageSection } from '@shared/page-settings/models';
15
15
  import { PAGE_SECTIONS } from '@shared/page-settings/models';
16
16
  import type { ButtonGroupOption } from './button-group.model';
17
- import { tr, commonTr, modelsTr } from '@src/composables/useTranslate';
17
+ import { commonTr, modelsTr } from '@src/composables/useTranslate';
18
18
 
19
19
  export const NavigationStyleConfigOptions = {
20
20
  defaultBorderColor: 'defaultBorderColor',
@@ -46,11 +46,10 @@ export const NAVIGATION_STYLE_CONFIG_OPTION_TITLES = (): Record<
46
46
  subNavBackgroundColor: modelsTr('subNavBackgroundColor'),
47
47
  });
48
48
 
49
- export interface NavigationStyleConfig
50
- extends Omit<
51
- NavigationDesktop | NavigationMobile,
52
- 'isLogoVisible' | 'hamburgerMenuStyle' | 'viewport'
53
- > {
49
+ export interface NavigationStyleConfig extends Omit<
50
+ NavigationDesktop | NavigationMobile,
51
+ 'isLogoVisible' | 'hamburgerMenuStyle' | 'viewport'
52
+ > {
54
53
  buttonGroupOption: ButtonGroupOption;
55
54
  options: NavigationStyleConfigOption[];
56
55
  }
@@ -2,7 +2,6 @@ import {
2
2
  EMPTY_LOGO_IMAGE_MODEL,
3
3
  type FabricLogoTheme,
4
4
  type LogoContent,
5
- type LogoImageModel,
6
5
  type LogoTemplateImageModel,
7
6
  type LogoTheme,
8
7
  } from '@brand-page';
@@ -21,7 +21,6 @@ import {
21
21
  BRAND_PAGE_TYPES,
22
22
  SENSITIVE_CONTENT_TYPES,
23
23
  getAbTestResults,
24
- getValueType,
25
24
  type AbTest,
26
25
  type LogoContent,
27
26
  } from '@brand-page';
@@ -34,7 +33,6 @@ import {
34
33
  TRIGGER_TYPE,
35
34
  UPGRADE_CTA_LOCATIONS,
36
35
  useEventTracker,
37
- EVENTS,
38
36
  } from '@brand-page-maker/composables/useEventTracker';
39
37
  import { navigationTr } from '@src/composables/useTranslate';
40
38
  import type { WebsiteSlugCheckResponse } from '@brand-page-maker/models/api.model';
@@ -451,7 +449,7 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
451
449
 
452
450
  async publishBrandPage({ shouldPublish, slug }) {
453
451
  const brandPageMakerStore = useBrandPageMakerStore();
454
- const eventTracker = useEventTracker();
452
+ const _eventTracker = useEventTracker();
455
453
 
456
454
  if (!this.designDraftToken) {
457
455
  throw new Error(
@@ -558,7 +556,7 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
558
556
  isPurchasedDomain,
559
557
  }) {
560
558
  const brandPageMakerStore = useBrandPageMakerStore();
561
- const eventTracker = useEventTracker();
559
+ const _eventTracker = useEventTracker();
562
560
 
563
561
  if (!this.designDraftToken) {
564
562
  throw new Error(
@@ -892,7 +890,7 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
892
890
  ) {
893
891
  const userStore = useBrandPageMakerUserStore();
894
892
  const brandPageMakerStore = useBrandPageMakerStore();
895
- const eventTracker = useEventTracker();
893
+ const _eventTracker = useEventTracker();
896
894
 
897
895
  if (userStore.isAdmin) {
898
896
  throw new Error('save brand page is not allowed in admin mode');
@@ -2,7 +2,6 @@ import { vi } from 'vitest';
2
2
  import {
3
3
  BRAND_PAGE,
4
4
  INITIALISE_PAYLOAD,
5
- USER_FEATURES,
6
5
  userFeatures,
7
6
  } from '../../components/brand-page-maker/__fixtures__';
8
7
  import {
@@ -44,6 +43,7 @@ import { useUiBackgroundSettingsStore } from '@shared/background-settings/store'
44
43
  import { useBrandPageMakerUserStore } from '../user';
45
44
  import { useBrandPageContainerStore } from '../brandpage-container';
46
45
  import { useUiTemplateSettingsStore } from '@shared/template-settings/store';
46
+ import { usePageNavigationStore } from '@shared/page-navigation/store/page-navigation-store';
47
47
  import {
48
48
  CONTENT_SETTINGS_MODES,
49
49
  useUiContentSettingsStore,
@@ -54,8 +54,6 @@ import { SIDE_BAR_TAB_NAMES } from '@brand-page-maker/constants';
54
54
  import { PAGE_SECTIONS } from '@shared/page-settings/models';
55
55
  import { FabricRenderClient } from '../../../clients/fabric-render-client';
56
56
  import { setLocaleAsync } from '@src/composables/useTranslate';
57
- import { usePageNavigationStore } from '@shared/page-navigation/store/page-navigation-store';
58
- import type { NavModel } from '@brand-page/models';
59
57
 
60
58
  const createInitialisePayload = () => {
61
59
  const initialisePayload = {
@@ -23,14 +23,12 @@ import {
23
23
  CONTENT_TYPES,
24
24
  NavigationDesktop,
25
25
  NavigationMobile,
26
- NavModel,
27
26
  } from '@brand-page';
28
27
  import type {
29
28
  DesignTemplateType,
30
29
  InitialCategories,
31
30
  TemplateCategory,
32
31
  } from '@shared/template-settings/models';
33
- import type { UserFeatures } from '../user';
34
32
  import { useBrandPageMakerUserStore } from '../user';
35
33
  import { defineStore } from 'pinia';
36
34
  import { toRaw } from 'vue';
@@ -1238,7 +1236,7 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
1238
1236
  industry,
1239
1237
  layout,
1240
1238
  logoVariationImageUrls,
1241
- shopConfigData,
1239
+ shopConfigData: _shopConfigData,
1242
1240
  isServerRenderOverride = false,
1243
1241
  }: InitialisePayload) {
1244
1242
  const brandPageContainerStore = useBrandPageContainerStore();
@@ -1250,7 +1248,7 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
1250
1248
  const backgroundSettingsStore = useUiBackgroundSettingsStore();
1251
1249
  const styleSettingsStore = useUiStyleSettingsStore();
1252
1250
  const navigationStyleSettingsStore = useUiNavigationStyleSettingsStore();
1253
- const sideBarStore = useUiSideBarStore();
1251
+ const _sideBarStore = useUiSideBarStore();
1254
1252
 
1255
1253
  navigationStyleSettingsStore.initialise({ reset: false });
1256
1254
 
@@ -7,7 +7,7 @@ import type {
7
7
  ContentSettingsConfig,
8
8
  CreateInitialContentOptions,
9
9
  } from '../models';
10
- import { SENSITIVE_CONTENT_TYPES, type Content } from '@brand-page';
10
+ import { type Content } from '@brand-page';
11
11
  import { RESERVED_FIELD_NAMES } from '@shared/content-settings/constants';
12
12
  import { CONTENT_SETTINGS_CONFIGS } from '../constants';
13
13
  import type { UIUserFeatures } from '@src/constants/ui';
@@ -431,7 +431,7 @@ const transformRTEField = (
431
431
  if (textStyleType && (textStyleType === type || uiStyleSettingsStore)) {
432
432
  let globalContentStyle = uiStyleSettingsStore
433
433
  ? uiStyleSettingsStore.textStyles.textStyleOptions[textStyleType].style
434
- : newStyle ?? ({} as TextStyleDeclaration);
434
+ : (newStyle ?? ({} as TextStyleDeclaration));
435
435
 
436
436
  globalContentStyle = {
437
437
  ...globalContentStyle,
@@ -549,7 +549,7 @@ export const transformToRTE = (
549
549
  ? uiStyleSettingsStore.textStyles.textStyleOptions[
550
550
  textItemStyleType
551
551
  ].style
552
- : newStyle ?? ({} as TextStyleDeclaration);
552
+ : (newStyle ?? ({} as TextStyleDeclaration));
553
553
 
554
554
  globalContentStyle = {
555
555
  ...globalContentStyle,
@@ -593,7 +593,7 @@ export const transformToRTE = (
593
593
  let globalContentStyle = uiStyleSettingsStore
594
594
  ? uiStyleSettingsStore.textStyles.textStyleOptions[textStyleType]
595
595
  .style
596
- : newStyle ?? ({} as TextStyleDeclaration);
596
+ : (newStyle ?? ({} as TextStyleDeclaration));
597
597
 
598
598
  globalContentStyle = {
599
599
  ...globalContentStyle,
@@ -647,7 +647,7 @@ export const switchAllContentToRTE = (
647
647
 
648
648
  if (textContent.textItems && textContent.textItems.length > 0) {
649
649
  for (const [
650
- itemIndex,
650
+ _itemIndex,
651
651
  textItemContent,
652
652
  ] of textContent.textItems.entries()) {
653
653
  const textItemStyleType = textItemContent.textStyle.textStyleType;
package/src/lib.ts CHANGED
@@ -96,6 +96,7 @@ export {
96
96
  useEventManagerStore,
97
97
  useLocalisedRouteStore,
98
98
  useVideoStore,
99
+ useRouteStore,
99
100
  } from './brand-page-maker/stores';
100
101
  export { useShopConfigStore } from './shared/ecommerce-settings/store/shop-settings-store';
101
102
 
@@ -46,7 +46,7 @@ const mergeGalleryImages = (
46
46
  const existing = content.images?.[index];
47
47
  const imageUrl = isValidUrl(img.image_url)
48
48
  ? img.image_url!
49
- : existing?.imageUrl ?? '';
49
+ : (existing?.imageUrl ?? '');
50
50
 
51
51
  return {
52
52
  ...(existing || {}),
@@ -80,7 +80,7 @@ const mergeImageItems = (
80
80
  ...(existing || {}),
81
81
  imageUrl: isValidUrl(item.image_url)
82
82
  ? item.image_url!
83
- : existing?.imageUrl ?? '',
83
+ : (existing?.imageUrl ?? ''),
84
84
  imageTitle: existing?.imageTitle ?? '',
85
85
  width: existing?.width ?? 0,
86
86
  height: existing?.height ?? 0,
@@ -128,7 +128,7 @@ const mergeTestimonialItemsAsync = async (
128
128
  ? 'shape'
129
129
  : item.avatar_image_url
130
130
  ? 'image'
131
- : existing?.mediaType ?? 'image';
131
+ : (existing?.mediaType ?? 'image');
132
132
 
133
133
  return {
134
134
  ...(existing || {}),
@@ -128,7 +128,7 @@ const mergeTextItems = (
128
128
  ) as TextStyleDeclaration;
129
129
 
130
130
  const resolved = item.text !== undefined ? resolveText(item.text) : null;
131
- const text = resolved ? resolved.html : existing?.text ?? '';
131
+ const text = resolved ? resolved.html : (existing?.text ?? '');
132
132
 
133
133
  return {
134
134
  text,
@@ -68,8 +68,8 @@ export const applyColorThemeToReplacements = (
68
68
  replacementColor:
69
69
  replacements.length === 1
70
70
  ? colorTheme
71
- : getNewColorBasedOnTargetColorTheme(
71
+ : (getNewColorBasedOnTargetColorTheme(
72
72
  r.originalColor,
73
73
  colorTheme,
74
- )?.toString() ?? colorTheme,
74
+ )?.toString() ?? colorTheme),
75
75
  }));
@@ -31,10 +31,10 @@ export interface AddressDetails {
31
31
  export class GoogleMapsPlugin {
32
32
  private initialised = false;
33
33
  private initialising = false;
34
- private readonly _options: GoogleMapsPluginOptions;
34
+ private readonly options: GoogleMapsPluginOptions;
35
35
 
36
36
  constructor(options: GoogleMapsPluginOptions) {
37
- this._options = options;
37
+ this.options = options;
38
38
  }
39
39
 
40
40
  private async initialise(): Promise<void> {
@@ -111,7 +111,7 @@ export class GoogleMapsPlugin {
111
111
  const { PlaceAutocompleteElement } = await this.getPlacesLibrary();
112
112
 
113
113
  return new PlaceAutocompleteElement({
114
- requestedLanguage: this._options.locale,
114
+ requestedLanguage: this.options.locale,
115
115
  ...options,
116
116
  });
117
117
  }
@@ -149,17 +149,17 @@ export class GoogleMapsPlugin {
149
149
  }
150
150
 
151
151
  private getGoogleScriptUrl(): string {
152
- const baseUrl = `https://maps.googleapis.com/maps/api/js?key=${this._options.apiKey}&libraries=places&loading=async`;
152
+ const baseUrl = `https://maps.googleapis.com/maps/api/js?key=${this.options.apiKey}&libraries=places&loading=async`;
153
153
 
154
- return this._options.locale
155
- ? `${baseUrl}&language=${this._options.locale}`
154
+ return this.options.locale
155
+ ? `${baseUrl}&language=${this.options.locale}`
156
156
  : baseUrl;
157
157
  }
158
158
 
159
159
  getEmbedGoogleMapsSrc(options: GetEmbedGoogleMapsOptions): string {
160
160
  const mapMode = options.mapMode || MAP_MODE_PLACE;
161
- const locale = options.locale || this._options.locale;
162
- const baseUrl = `https://www.google.com/maps/embed/v1/${mapMode}?key=${this._options.apiKey}&q=${options.query}`;
161
+ const locale = options.locale || this.options.locale;
162
+ const baseUrl = `https://www.google.com/maps/embed/v1/${mapMode}?key=${this.options.apiKey}&q=${options.query}`;
163
163
 
164
164
  return locale ? `${baseUrl}&language=${locale}` : baseUrl;
165
165
  }
@@ -174,7 +174,7 @@ const isPersonalisationEnabled = computed(
174
174
  );
175
175
  const isDesignCom = computed(() => containerStore.isDesignCom);
176
176
 
177
- const emit = defineEmits(['on-intent-image-replace']);
177
+ defineEmits(['on-intent-image-replace']);
178
178
 
179
179
  const shapeTabs = [
180
180
  backgroundSettingsTr(`background`),
@@ -22,7 +22,7 @@
22
22
  </div>
23
23
  </template>
24
24
  <script setup lang="ts">
25
- import { computed, type PropType } from 'vue';
25
+ import { computed } from 'vue';
26
26
  import { HelloBar } from '@designcrowd/fe-shared-lib';
27
27
  import { useUiBackgroundSettingsStore } from '../../store';
28
28
  import ColorField from '../../../content-settings/components/color-field/ColorField.vue';
@@ -3,15 +3,9 @@ import { Icon } from '@designcrowd/fe-shared-lib';
3
3
  import ColorPickerSwatch from './ColorPickerSwatch.vue';
4
4
  import type { ColorValue, ColorGroupItem, ColorGroup } from '../models';
5
5
  import { DEFAULT_COLORS, DEFAULT_GRADIENT_COLORS } from '../constants';
6
- import {
7
- RGBAtoHex,
8
- hexToRGB,
9
- arrayToLinearGradient,
10
- isRgbColor,
11
- } from '@utils/helpers';
6
+ import { RGBAtoHex, arrayToLinearGradient, isRgbColor } from '@utils/helpers';
12
7
  import { normalizeColorToHex, colorsMatch } from '@brand-page/utils/style.util';
13
8
  import { colorPickerTr } from '@src/composables/useTranslate';
14
- import { useUiStyleSettingsStore } from '../../style-settings/store';
15
9
 
16
10
  // Simple session storage for newColors (persists during browser session, clears on refresh)
17
11
  let sessionNewColors: ColorGroupItem[] = [];
@@ -53,6 +47,7 @@ export default defineComponent({
53
47
  default: () => false,
54
48
  },
55
49
  },
50
+ emits: ['on-color-select'],
56
51
  data() {
57
52
  const groups: ColorGroup[] = [];
58
53
  const newColors: ColorGroupItem[] = [];
@@ -7,6 +7,7 @@ export default defineComponent({
7
7
  required: true,
8
8
  },
9
9
  },
10
+ emits: ['click'],
10
11
  data() {
11
12
  const styles: BrandPageCssStyle = this.color.styles;
12
13
 
@@ -53,6 +53,7 @@ export default {
53
53
  default: 1,
54
54
  },
55
55
  },
56
+ emits: ['update:model-value'],
56
57
  data() {
57
58
  return {
58
59
  priceValue: this.modelValue,
@@ -33,9 +33,9 @@
33
33
  </template>
34
34
  <script setup lang="ts">
35
35
  import { Button } from '@designcrowd/fe-shared-lib';
36
- import { tr, commonTr } from '@src/composables/useTranslate';
36
+ import { commonTr } from '@src/composables/useTranslate';
37
37
 
38
- const props = defineProps({
38
+ defineProps({
39
39
  showBackButton: {
40
40
  type: Boolean,
41
41
  required: false,
@@ -14,6 +14,7 @@ export default defineComponent({
14
14
  required: false,
15
15
  },
16
16
  },
17
+ emits: ['confirm', 'cancel'],
17
18
  setup() {
18
19
  const containerStore = useBrandPageContainerStore();
19
20
 
@@ -1,3 +1,4 @@
1
+ <!-- eslint-disable vue/no-v-html -->
1
2
  <template>
2
3
  <div data-component="booking-url-field">
3
4
  <div
@@ -137,6 +137,7 @@ const props = withDefaults(defineProps<Props>(), {
137
137
  titleLength: MAX_TITLE_LENGTH,
138
138
  descriptionLength: MAX_DESCRIPTION_LENGTH,
139
139
  isAdmin: false,
140
+ pages: undefined,
140
141
  });
141
142
 
142
143
  const pageSettingsStore = useUiPageSettingsStore();
@@ -70,14 +70,7 @@
70
70
  </template>
71
71
 
72
72
  <script setup lang="ts">
73
- import {
74
- ref,
75
- computed,
76
- watch,
77
- onMounted,
78
- onBeforeMount,
79
- type PropType,
80
- } from 'vue';
73
+ import { ref, computed, watch, onMounted, onBeforeMount } from 'vue';
81
74
  import { Toggle } from '@designcrowd/fe-shared-lib';
82
75
  import {
83
76
  addTransparentAlphaChannelToHex,
@@ -320,8 +313,8 @@ onBeforeMount(() => {
320
313
  onMounted(() => {
321
314
  const toggleState = Boolean(
322
315
  color.value &&
323
- typeof color.value === 'string' &&
324
- !isHexTransparent(color.value),
316
+ typeof color.value === 'string' &&
317
+ !isHexTransparent(color.value),
325
318
  );
326
319
 
327
320
  emit('on-toggle-state-change', toggleState);
@@ -17,7 +17,6 @@ import {
17
17
  import { SIDE_BAR_CONTENT_ID } from '../../constants';
18
18
  import type { ComponentPublicInstance } from '@vue/runtime-core';
19
19
  import {
20
- EVENTS,
21
20
  SELECT_LOCATIONS,
22
21
  useEventTracker,
23
22
  } from '@brand-page-maker/composables/useEventTracker';
@@ -37,6 +36,7 @@ interface CategoryTab {
37
36
  }
38
37
 
39
38
  export default defineComponent({
39
+ emits: ['capture-preview-snapshot'],
40
40
  setup() {
41
41
  const brandPageMakerStore = useBrandPageMakerStore();
42
42
  const contentSettingsStore = useUiContentSettingsStore();
@@ -41,6 +41,7 @@ export default {
41
41
  required: true,
42
42
  },
43
43
  },
44
+ emits: ['on-click'],
44
45
  methods: {
45
46
  onClick(ev) {
46
47
  this.$emit('on-click', ev);
@@ -49,6 +49,11 @@ export default defineComponent({
49
49
  required: true,
50
50
  },
51
51
  },
52
+ emits: [
53
+ 'on-delete',
54
+ 'capture-snapshot-before-modal',
55
+ 'capture-preview-snapshot',
56
+ ],
52
57
  setup() {
53
58
  const contentSettingsStore = useUiContentSettingsStore();
54
59
  const sideBarStore = useUiSideBarStore();
@@ -16,7 +16,6 @@ import { SIDE_BAR_TAB_NAMES } from '@brand-page-maker/constants';
16
16
  import { ITEM_FIELD_TYPES, type ItemFieldType } from '@brand-page-maker/models';
17
17
  import { useUiPageSettingsStore } from '../../../page-settings/store';
18
18
  import { PAGE_SECTIONS } from '../../../page-settings/models';
19
- import { commonTr } from '@src/composables/useTranslate';
20
19
  import {
21
20
  getPlainTextFromRTE,
22
21
  replaceTextInRTE,
@@ -26,19 +25,6 @@ import {
26
25
  import { isDefaultContentText } from '@shared/content-settings/utils';
27
26
  import { useUiLogoSettingsStore } from '../../../logo-settings/store';
28
27
 
29
- const RTE_DISALLOWED_STYLE_FIELD_NAMES = [
30
- 'descriptionStyle',
31
- 'titleStyle',
32
- 'textStyle',
33
- 'paragraphStyle',
34
- ];
35
- const AI_ALLOWED_SECTION_TYPES = [
36
- 'banner-section',
37
- 'text',
38
- 'about-section',
39
- 'testimonials-section',
40
- ];
41
- const AI_ALLOWED_FIELD_NAMES = ['description', 'title', 'text', 'paragraph'];
42
28
  const RTE_DISALLOWED_FIELD_NAMES = ['buttonText'];
43
29
 
44
30
  export default defineComponent({
@@ -62,6 +48,7 @@ export default defineComponent({
62
48
  default: undefined,
63
49
  },
64
50
  },
51
+ emits: ['capture-preview-snapshot'],
65
52
  setup() {
66
53
  const contentSettingsStore = useUiContentSettingsStore();
67
54
  const brandPageMakerStore = useBrandPageMakerStore();