@designcrowd/library.brand-page 5.16.53 → 5.16.54-ai-text-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 (348) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-CejWy1YN.js → CreatedOnBrandCrowd-de-de-D_nKZvfb.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-D4zwnmuP.js → CreatedOnBrandCrowd-en-us-CMDci0F3.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-CS57f6v7.js → CreatedOnBrandCrowd-es-es-BsZOtFmt.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-BYtaFS2D.js → CreatedOnBrandCrowd-fr-ca-CacUyqOB.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-BYtaFS2D.js → CreatedOnBrandCrowd-fr-fr-CacUyqOB.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-blFPofeb.js → CreatedOnBrandCrowd-pt-br-C4RxlIAF.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-blFPofeb.js → CreatedOnBrandCrowd-pt-pt-C4RxlIAF.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-DoiLqeTw.js → CreatedOnDcom-de-de-Ccbu2pF6.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-CDqWgWuP.js → CreatedOnDcom-en-us-DA2YuqX_.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-BVF4w8R8.js → CreatedOnDcom-es-es-CX7Uqdog.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-k3myTyVH.js → CreatedOnDcom-fr-ca-C-MEkQxe.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-CguF4s2G.js → CreatedOnDcom-fr-fr-CLMAMNlw.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-CtHWhIti.js → CreatedOnDcom-pt-br-m42wRS-K.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-DOicpVqu.js → CreatedOnDcom-pt-pt-Byend_zH.js} +1 -1
  15. package/lib/src/brand-page/composables/consent.composable.d.ts +2 -0
  16. package/lib/src/brand-page/composables/consent.composable.js +11 -1
  17. package/lib/src/brand-page/models/brand-page-context.model.d.ts +1 -0
  18. package/lib/src/brand-page/models/brand-page-context.model.js +5 -0
  19. package/lib/src/brand-page/models/index.d.ts +1 -1
  20. package/lib/src/brand-page/utils/migration.util.js +6 -1
  21. package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.d.ts +5 -0
  22. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +7 -0
  23. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMakerTemplateSettings.mixin.d.ts +5 -0
  24. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +7 -0
  25. package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.d.ts +5 -0
  26. package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +5 -0
  27. package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +5 -0
  28. package/lib/src/brand-page-maker/components/social-share/SocialShare.mixin.d.ts +5 -0
  29. package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +5 -0
  30. package/lib/src/brand-page-maker/composables/ai-chat/useAiChat.d.ts +54 -0
  31. package/lib/src/brand-page-maker/composables/ai-chat/useAiChat.js +387 -0
  32. package/lib/src/brand-page-maker/composables/ai-chat/useAiMetadataBuilder.d.ts +17 -0
  33. package/lib/src/brand-page-maker/composables/ai-chat/useAiMetadataBuilder.js +33 -0
  34. package/lib/src/brand-page-maker/composables/ai-chat/useAiTextEditPrompts.d.ts +18 -0
  35. package/lib/src/brand-page-maker/composables/ai-chat/useAiTextEditPrompts.js +144 -0
  36. package/lib/src/brand-page-maker/constants/sidebar-constant.d.ts +1 -0
  37. package/lib/src/brand-page-maker/constants/sidebar-constant.js +8 -0
  38. package/lib/src/brand-page-maker/stores/ai-thread/ai-thread-store.d.ts +19 -0
  39. package/lib/src/brand-page-maker/stores/ai-thread/ai-thread-store.js +17 -0
  40. package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.d.ts +11 -0
  41. package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +55 -1
  42. package/lib/src/brand-page-maker/stores/index.d.ts +1 -0
  43. package/lib/src/brand-page-maker/stores/index.js +1 -0
  44. package/lib/src/brand-page-maker/utils/rich-text-editor.util.js +7 -4
  45. package/lib/src/bundled-translations-D_D7Y1MR.js +169 -0
  46. package/lib/src/bundled-translations.de-DE-TeGS2Ql2.js +169 -0
  47. package/lib/src/bundled-translations.es-ES-Bbcsxz-o.js +169 -0
  48. package/lib/src/bundled-translations.fr-CA-EAXpuJ-_.js +169 -0
  49. package/lib/src/bundled-translations.fr-FR-BBwWEk8v.js +169 -0
  50. package/lib/src/bundled-translations.pt-BR-2gh_78Y-.js +169 -0
  51. package/lib/src/bundled-translations.pt-PT-DxWeWbBV.js +169 -0
  52. package/lib/src/bundles/bundled-translations.de-DE.json +27 -23
  53. package/lib/src/bundles/bundled-translations.es-ES.json +27 -23
  54. package/lib/src/bundles/bundled-translations.fr-CA.json +27 -23
  55. package/lib/src/bundles/bundled-translations.fr-FR.json +27 -23
  56. package/lib/src/bundles/bundled-translations.json +28 -23
  57. package/lib/src/bundles/bundled-translations.pt-BR.json +27 -23
  58. package/lib/src/bundles/bundled-translations.pt-PT.json +27 -23
  59. package/lib/src/clients/ai-assistant-client.d.ts +49 -61
  60. package/lib/src/clients/ai-assistant-client.js +23 -25
  61. package/lib/src/css/library.brand-page-brandCrowd.min.css +589 -612
  62. package/lib/src/css/library.brand-page-brandPage.min.css +582 -612
  63. package/lib/src/css/library.brand-page-designCom.min.css +589 -612
  64. package/lib/src/css/library.brand-page-preview.min.css +581 -612
  65. package/lib/src/index.mjs +1 -1
  66. package/lib/src/{lib-BbrowyLZ.js → lib-BjEv9nzD.js} +24670 -23595
  67. package/lib/src/metadata-builder/ai-metadata-executor.d.ts +8 -0
  68. package/lib/src/metadata-builder/ai-metadata-executor.js +35 -0
  69. package/lib/src/metadata-builder/builders/update-content-text-builder.d.ts +17 -0
  70. package/lib/src/metadata-builder/builders/update-content-text-builder.js +108 -0
  71. package/lib/src/metadata-builder/builders/update-content-text-style-builder.d.ts +16 -0
  72. package/lib/src/metadata-builder/builders/update-content-text-style-builder.js +212 -0
  73. package/lib/src/metadata-builder/helpers/rte.helpers.d.ts +3 -0
  74. package/lib/src/metadata-builder/helpers/rte.helpers.js +53 -0
  75. package/lib/src/metadata-builder/index.d.ts +2 -0
  76. package/lib/src/metadata-builder/index.js +2 -0
  77. package/lib/src/metadata-builder/logger.d.ts +10 -0
  78. package/lib/src/metadata-builder/logger.js +13 -0
  79. package/lib/src/metadata-builder/metadata-executor.d.ts +6 -0
  80. package/lib/src/metadata-builder/metadata-executor.js +37 -0
  81. package/lib/src/metadata-builder/models.d.ts +35 -0
  82. package/lib/src/metadata-builder/models.js +21 -0
  83. package/lib/src/metadata-builder/parsers/ai-toolcall-parser.d.ts +30 -0
  84. package/lib/src/metadata-builder/parsers/ai-toolcall-parser.js +21 -0
  85. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +5 -0
  86. package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +5 -0
  87. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +2 -0
  88. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +8 -0
  89. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.js +15 -0
  90. package/lib/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.d.ts +0 -1
  91. package/lib/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.js +0 -8
  92. package/lib/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.d.ts +0 -1
  93. package/lib/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.js +0 -12
  94. package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +5 -0
  95. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +5 -0
  96. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +5 -0
  97. package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +5 -0
  98. package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +2 -0
  99. package/lib/src/shared/side-bar/components/SideBarTabButton.mixin.d.ts +2 -0
  100. package/lib/src/shared/side-bar/store/side-bar-store.d.ts +12 -0
  101. package/lib/src/shared/side-bar/store/side-bar-store.js +7 -0
  102. package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +5 -0
  103. package/package.json +1 -1
  104. package/src/brand-page/components/about-section/AboutSection.vue +5 -1
  105. package/src/brand-page/components/background-shape/BackgroundShape.vue +1 -1
  106. package/src/brand-page/components/banner-section/BannerSection.vue +1 -1
  107. package/src/brand-page/components/booking-section/BookingSection.vue +1 -1
  108. package/src/brand-page/components/brand-page-footer/BrandPageFooter.vue +1 -0
  109. package/src/brand-page/components/collapsible/Collapsible.vue +1 -1
  110. package/src/brand-page/components/contact-form/ContactForm.vue +1 -1
  111. package/src/brand-page/components/cookie-consent/CookieConsent.vue +9 -2
  112. package/src/brand-page/components/cookie-consent/i18n/cookie.de-DE.json +4 -3
  113. package/src/brand-page/components/cookie-consent/i18n/cookie.es-ES.json +4 -3
  114. package/src/brand-page/components/cookie-consent/i18n/cookie.fr-CA.json +4 -3
  115. package/src/brand-page/components/cookie-consent/i18n/cookie.fr-FR.json +4 -3
  116. package/src/brand-page/components/cookie-consent/i18n/cookie.json +1 -0
  117. package/src/brand-page/components/cookie-consent/i18n/cookie.pt-BR.json +4 -3
  118. package/src/brand-page/components/cookie-consent/i18n/cookie.pt-PT.json +4 -3
  119. package/src/brand-page/components/divider-section/DividerSection.vue +5 -1
  120. package/src/brand-page/components/fallback-image/FallbackImage.vue +1 -0
  121. package/src/brand-page/components/image/Image.vue +1 -0
  122. package/src/brand-page/components/image-gallery/ImageGallery.vue +1 -0
  123. package/src/brand-page/components/image-gallery/ImageGalleryModal.vue +1 -0
  124. package/src/brand-page/components/image-gallery/carousel/CarouselGallery.vue +1 -0
  125. package/src/brand-page/components/image-gallery/grid/GridImageGallery.vue +1 -1
  126. package/src/brand-page/components/image-modal/ImageModal.vue +1 -1
  127. package/src/brand-page/components/images-section/ImagesSection.vue +1 -1
  128. package/src/brand-page/components/logo/Logo.vue +1 -0
  129. package/src/brand-page/components/logo/LogoRender.vue +1 -0
  130. package/src/brand-page/components/map/GoogleMap.vue +1 -0
  131. package/src/brand-page/components/map/Map.vue +1 -1
  132. package/src/brand-page/components/media/Media.vue +1 -0
  133. package/src/brand-page/components/media/Shape.vue +1 -1
  134. package/src/brand-page/components/media/Video.vue +1 -0
  135. package/src/brand-page/components/media-query/CSSDesktopOnly.vue +1 -1
  136. package/src/brand-page/components/media-query/CSSMobileOnly.vue +1 -1
  137. package/src/brand-page/components/navigation/button-carousel/ButtonCarouselNavigation.vue +1 -0
  138. package/src/brand-page/components/navigation/hamburger/HamburgerNavigation.vue +1 -1
  139. package/src/brand-page/components/navigation/navigation-side-menu/NavigationSideMenu.vue +1 -1
  140. package/src/brand-page/components/page/BrandSiteNavigationLayout.vue +4 -1
  141. package/src/brand-page/components/page/Page.vue +1 -0
  142. package/src/brand-page/components/page/PageComponent.vue +1 -0
  143. package/src/brand-page/components/page-footer/PageFooter.vue +1 -0
  144. package/src/brand-page/components/page-header/HeaderLayout.vue +1 -0
  145. package/src/brand-page/components/page-header/PageHeader.vue +1 -0
  146. package/src/brand-page/components/payment/RequestPaymentStripe.vue +1 -1
  147. package/src/brand-page/components/payment/request-payment/RequestPayment.vue +1 -0
  148. package/src/brand-page/components/payment/support-me/SupportMe.vue +1 -0
  149. package/src/brand-page/components/placeholder/Placeholder.vue +6 -1
  150. package/src/brand-page/components/save-contact/SaveContactWidget.vue +1 -0
  151. package/src/brand-page/components/sensitive-content/SensitiveContentModal.vue +1 -0
  152. package/src/brand-page/components/shapes-section/ShapesSection.vue +1 -1
  153. package/src/brand-page/components/shop/CartModal.vue +1 -1
  154. package/src/brand-page/components/shop/FeaturedDisplay.vue +1 -0
  155. package/src/brand-page/components/shop/PaymentModal.vue +1 -1
  156. package/src/brand-page/components/shop/ProductDetailModal.vue +1 -1
  157. package/src/brand-page/components/shop/Shop.vue +5 -1
  158. package/src/brand-page/components/shop/TextDisplay.vue +1 -1
  159. package/src/brand-page/components/shop/ThumbnailDisplay.vue +1 -1
  160. package/src/brand-page/components/social-links/SocialLinks.vue +1 -1
  161. package/src/brand-page/components/social-links/SocialLinksItems.vue +4 -1
  162. package/src/brand-page/components/testimonial-section/TestimonialSection.vue +1 -0
  163. package/src/brand-page/components/text-media-section/TextMediaSection.vue +1 -1
  164. package/src/brand-page/composables/consent.composable.ts +15 -1
  165. package/src/brand-page/models/brand-page-context.model.ts +12 -0
  166. package/src/brand-page/models/index.ts +1 -1
  167. package/src/brand-page/storybook-helpers/components/DarkBackground.vue +1 -0
  168. package/src/brand-page/storybook-helpers/components/Device.vue +1 -1
  169. package/src/brand-page/utils/migration.util.ts +8 -1
  170. package/src/brand-page-maker/components/action-bar/ActionBarNavigation.vue +1 -0
  171. package/src/brand-page-maker/components/admin-background-settings/AdminBackgroundSettings.vue +1 -1
  172. package/src/brand-page-maker/components/admin-background-settings/ShapePositionSlider.vue +1 -1
  173. package/src/brand-page-maker/components/admin-logo-settings/AdminLogoSettings.vue +1 -1
  174. package/src/brand-page-maker/components/ai-text-edit/AiActionButtons.vue +54 -0
  175. package/src/brand-page-maker/components/ai-text-edit/AiChatbox.vue +196 -0
  176. package/src/brand-page-maker/components/ai-text-edit/AiTextEdit.vue +159 -0
  177. package/src/brand-page-maker/components/ai-text-edit/ImageBubble.vue +79 -0
  178. package/src/brand-page-maker/components/ai-text-edit/TextBubble.vue +195 -0
  179. package/src/{shared/content-settings/components/generate-ai-modal → brand-page-maker/components/ai-text-edit}/i18n/generate-ai.de-DE.json +2 -1
  180. package/src/{shared/content-settings/components/generate-ai-modal → brand-page-maker/components/ai-text-edit}/i18n/generate-ai.es-ES.json +2 -1
  181. package/src/{shared/content-settings/components/generate-ai-modal → brand-page-maker/components/ai-text-edit}/i18n/generate-ai.fr-CA.json +2 -1
  182. package/src/{shared/content-settings/components/generate-ai-modal → brand-page-maker/components/ai-text-edit}/i18n/generate-ai.fr-FR.json +2 -1
  183. package/src/{shared/content-settings/components/generate-ai-modal → brand-page-maker/components/ai-text-edit}/i18n/generate-ai.json +3 -1
  184. package/src/{shared/content-settings/components/generate-ai-modal → brand-page-maker/components/ai-text-edit}/i18n/generate-ai.pt-BR.json +2 -1
  185. package/src/{shared/content-settings/components/generate-ai-modal → brand-page-maker/components/ai-text-edit}/i18n/generate-ai.pt-PT.json +2 -1
  186. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.vue +43 -3
  187. package/src/brand-page-maker/components/brand-page-maker/BrandPageMakerTemplateSettings.vue +4 -1
  188. package/src/brand-page-maker/components/brandpage-background-settings/BrandPageBackgroundSettings.vue +1 -1
  189. package/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.vue +2 -0
  190. package/src/brand-page-maker/components/brandpage-settings/BrandPageSettings.vue +1 -1
  191. package/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.vue +1 -1
  192. package/src/brand-page-maker/components/color-palette/BpColorPalette.vue +1 -1
  193. package/src/brand-page-maker/components/color-picker/BpColorPickerV2.vue +1 -1
  194. package/src/brand-page-maker/components/color-picker/components/ColorModeSelect.vue +1 -0
  195. package/src/brand-page-maker/components/color-picker/components/GradientColorSlider.vue +1 -1
  196. package/src/brand-page-maker/components/color-picker/components/GradientColorSliderHandler.vue +1 -0
  197. package/src/brand-page-maker/components/color-picker/components/GradientTypeSelector.vue +1 -0
  198. package/src/brand-page-maker/components/cookie-collection/CookieSettings.vue +1 -1
  199. package/src/brand-page-maker/components/device/Device.vue +1 -0
  200. package/src/brand-page-maker/components/google-analytics/GoogleAnalytics.vue +1 -1
  201. package/src/brand-page-maker/components/layout-switcher/LayoutSwitcher.vue +4 -1
  202. package/src/brand-page-maker/components/navigation/Navigation.vue +1 -0
  203. package/src/brand-page-maker/components/preview/Preview.vue +1 -0
  204. package/src/brand-page-maker/components/preview-with-state/PreviewWithState.vue +1 -0
  205. package/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.vue +1 -0
  206. package/src/brand-page-maker/components/rich-text-editor/RichTextEditor.vue +2 -1
  207. package/src/brand-page-maker/components/save-contact/SaveContact.vue +1 -1
  208. package/src/brand-page-maker/components/seo-settings/DeleteDomainModal.vue +1 -0
  209. package/src/brand-page-maker/components/seo-settings/UrlSettings.vue +1 -1
  210. package/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.vue +1 -1
  211. package/src/brand-page-maker/components/shop/AddOrEditProductContainer.vue +1 -1
  212. package/src/brand-page-maker/components/shop/ImageUpload.vue +1 -1
  213. package/src/brand-page-maker/components/shop/ProductConfigModal.vue +1 -1
  214. package/src/brand-page-maker/components/shop/ProductItemField.vue +1 -0
  215. package/src/brand-page-maker/components/shop/ReplaceImageSettingsForShop.vue +1 -1
  216. package/src/brand-page-maker/components/social-share/SocialShare.vue +1 -1
  217. package/src/brand-page-maker/components/template-preview/TemplatePreview.vue +1 -0
  218. package/src/brand-page-maker/components/template-preview-with-state/TemplatePreviewWithState.vue +1 -0
  219. package/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.vue +1 -0
  220. package/src/brand-page-maker/components/video-play/VideoPlayButton.vue +1 -0
  221. package/src/brand-page-maker/composables/ai-chat/useAiChat.ts +582 -0
  222. package/src/brand-page-maker/composables/ai-chat/useAiMetadataBuilder.ts +60 -0
  223. package/src/brand-page-maker/composables/ai-chat/useAiTextEditPrompts.ts +196 -0
  224. package/src/brand-page-maker/constants/sidebar-constant.ts +8 -0
  225. package/src/brand-page-maker/stores/ai-thread/ai-thread-store.ts +19 -0
  226. package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +74 -1
  227. package/src/brand-page-maker/stores/index.ts +1 -0
  228. package/src/brand-page-maker/utils/rich-text-editor.util.ts +7 -4
  229. package/src/bundles/bundled-translations.de-DE.json +27 -23
  230. package/src/bundles/bundled-translations.es-ES.json +27 -23
  231. package/src/bundles/bundled-translations.fr-CA.json +27 -23
  232. package/src/bundles/bundled-translations.fr-FR.json +27 -23
  233. package/src/bundles/bundled-translations.json +28 -23
  234. package/src/bundles/bundled-translations.pt-BR.json +27 -23
  235. package/src/bundles/bundled-translations.pt-PT.json +27 -23
  236. package/src/clients/ai-assistant-client.ts +80 -84
  237. package/src/metadata-builder/ai-metadata-executor.ts +59 -0
  238. package/src/metadata-builder/builders/update-content-text-builder.ts +154 -0
  239. package/src/metadata-builder/builders/update-content-text-style-builder.ts +349 -0
  240. package/src/metadata-builder/helpers/rte.helpers.ts +74 -0
  241. package/src/metadata-builder/index.ts +8 -0
  242. package/src/metadata-builder/logger.ts +21 -0
  243. package/src/metadata-builder/metadata-executor.ts +72 -0
  244. package/src/metadata-builder/models.ts +58 -0
  245. package/src/metadata-builder/parsers/ai-toolcall-parser.ts +61 -0
  246. package/src/shared/background-settings/components/ReplaceImageSettingsForBackgroundSettings.vue +1 -1
  247. package/src/shared/background-settings/components/background-color/BackgroundColorSettings.vue +1 -1
  248. package/src/shared/color-picker/components/ColorPickerSwatch.vue +1 -0
  249. package/src/shared/common/NumberInput.vue +1 -0
  250. package/src/shared/common/SideBarSectionTitle.vue +1 -0
  251. package/src/shared/common/SideBarSettingsHeader.vue +1 -0
  252. package/src/shared/common/i18n/common.de-DE.json +3 -1
  253. package/src/shared/common/i18n/common.es-ES.json +3 -1
  254. package/src/shared/common/i18n/common.fr-CA.json +3 -1
  255. package/src/shared/common/i18n/common.fr-FR.json +3 -1
  256. package/src/shared/common/i18n/common.json +3 -1
  257. package/src/shared/common/i18n/common.pt-BR.json +3 -1
  258. package/src/shared/common/i18n/common.pt-PT.json +3 -1
  259. package/src/shared/confirm-modal/ConfirmModal.vue +1 -1
  260. package/src/shared/content-settings/components/booking-url-field/BookingUrlField.vue +1 -1
  261. package/src/shared/content-settings/components/button-configuration-field/ButtonConfigurationField.vue +1 -1
  262. package/src/shared/content-settings/components/color-field/ColorField.vue +1 -0
  263. package/src/shared/content-settings/components/color-replacements-field/ColorReplacementsField.vue +1 -0
  264. package/src/shared/content-settings/components/content-settings/ContentSettings.vue +1 -0
  265. package/src/shared/content-settings/components/content-settings/ContentSettingsButton.vue +1 -0
  266. package/src/shared/content-settings/components/content-settings/ContentSettingsLockedButton.vue +4 -1
  267. package/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.vue +1 -1
  268. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.vue +1 -0
  269. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.ts +17 -0
  270. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.vue +10 -2
  271. package/src/shared/content-settings/components/draggable-item-list/DraggableItemList.vue +1 -1
  272. package/src/shared/content-settings/components/email-field/EmailField.vue +1 -1
  273. package/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.vue +1 -1
  274. package/src/shared/content-settings/components/form-fields-field/FormFieldsField.vue +1 -1
  275. package/src/shared/content-settings/components/generate-ai-button/GenerateAiButton.vue +30 -31
  276. package/src/shared/content-settings/components/generate-ai-modal/GenerateAiModal.vue +1 -1
  277. package/src/shared/content-settings/components/google-address-field/GoogleAddressField.vue +1 -1
  278. package/src/shared/content-settings/components/icon-library/IconLibrary.vue +1 -1
  279. package/src/shared/content-settings/components/image-field/ImageField.vue +1 -1
  280. package/src/shared/content-settings/components/items-field/ItemsField.vue +1 -1
  281. package/src/shared/content-settings/components/logo-field/LogoField.vue +1 -1
  282. package/src/shared/content-settings/components/logo-selection-field/LogoSelection.vue +4 -1
  283. package/src/shared/content-settings/components/logo-selection-field/LogoSelectionField.vue +1 -0
  284. package/src/shared/content-settings/components/logo-size-field/LogoSizeSliderField.vue +1 -0
  285. package/src/shared/content-settings/components/page-dropdown-field/PageDropdownField.vue +1 -1
  286. package/src/shared/content-settings/components/payment-config-field/PaymentConfigField.vue +4 -1
  287. package/src/shared/content-settings/components/payment-config-field/PaymentConfigOptionField.vue +4 -1
  288. package/src/shared/content-settings/components/payment-config-field/PaymentConfigOptionFieldAdaptor.vue +1 -0
  289. package/src/shared/content-settings/components/payment-config-field/payment-toggle-field/PaymentToggleField.vue +4 -1
  290. package/src/shared/content-settings/components/payment-config-field/request-payment-config-field/RequestPaymentConfigField.vue +1 -0
  291. package/src/shared/content-settings/components/payment-config-field/support-me-config-field/SupportMeConfigField.vue +1 -0
  292. package/src/shared/content-settings/components/personalisation-role-field/PersonalisationRoleField.vue +4 -1
  293. package/src/shared/content-settings/components/replace-image-base-settings/ReplaceImageBaseSettings.vue +1 -1
  294. package/src/shared/content-settings/components/shape-field/ShapeField.vue +1 -1
  295. package/src/shared/content-settings/components/slider-field/SliderField.vue +1 -1
  296. package/src/shared/content-settings/components/tel-field/TelField.vue +1 -1
  297. package/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.ts +0 -9
  298. package/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.vue +6 -3
  299. package/src/shared/content-settings/components/text-image-field/TextImageField.vue +1 -1
  300. package/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.ts +0 -15
  301. package/src/shared/content-settings/components/text-items-field/TextItemsField.vue +7 -3
  302. package/src/shared/content-settings/components/text-style-field/TextStyleField.vue +1 -0
  303. package/src/shared/content-settings/components/toggle-field/ToggleField.vue +1 -1
  304. package/src/shared/content-settings/components/url-field/UrlField.vue +1 -1
  305. package/src/shared/content-settings/components/youtube-video-field/YoutubeVideoField.vue +1 -1
  306. package/src/shared/ecommerce-settings/components/product-config-field/ProductConfigOption.vue +1 -1
  307. package/src/shared/ecommerce-settings/components/shop-payment-config-field/ShopPaymentConfigField.vue +1 -0
  308. package/src/shared/font-family-selector/FontFamilySelector.vue +1 -1
  309. package/src/shared/font-preview/FontPreview.vue +1 -1
  310. package/src/shared/image-gallery-style-settings/ImageGalleryStyleSettings.vue +4 -1
  311. package/src/shared/login-required-message/LoginRequiredMessage.vue +1 -1
  312. package/src/shared/logo-settings/components/EditLogoSettings.vue +1 -0
  313. package/src/shared/logo-settings/components/LogoSettings.vue +1 -1
  314. package/src/shared/logo-settings/components/LogoSettingsHeader.vue +1 -0
  315. package/src/shared/logo-settings/components/LogoTemplateSearch.vue +4 -1
  316. package/src/shared/logo-settings/components/LogoVariations.vue +1 -1
  317. package/src/shared/logo-settings/components/logo-switch-confirmation-modal/LogoSwitchConfirmationModal.vue +1 -1
  318. package/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.vue +1 -1
  319. package/src/shared/page-navigation/PageSelectorDropdown.vue +1 -1
  320. package/src/shared/page-settings/components/delete-page-modal/DeletePageModal.vue +1 -1
  321. package/src/shared/page-settings/components/new-page-modal/NewPageModal.vue +1 -1
  322. package/src/shared/page-settings/components/page-settings/PageElement.vue +5 -1
  323. package/src/shared/page-settings/components/page-settings/PageSettingMenu.vue +1 -1
  324. package/src/shared/page-settings/components/page-settings/PageSettings.vue +1 -1
  325. package/src/shared/page-settings/components/page-settings-section-styles/FooterDisplayStyle.vue +1 -1
  326. package/src/shared/page-settings/components/page-settings-section-styles/HeaderNavigationType.vue +1 -1
  327. package/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.vue +1 -1
  328. package/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.vue +1 -0
  329. package/src/shared/reorderable-list/ReorderableList.vue +1 -0
  330. package/src/shared/reorderable-list/ReorderableListItem.vue +1 -0
  331. package/src/shared/side-bar/components/SideBar.vue +7 -1
  332. package/src/shared/side-bar/components/SideBarTabButton.vue +1 -0
  333. package/src/shared/side-bar/store/side-bar-store.ts +20 -0
  334. package/src/shared/style-settings/components/StyleSettings.vue +1 -1
  335. package/src/shared/style-settings/components/StyleSettingsSection.vue +1 -0
  336. package/src/shared/style-settings/components/text-style-options-settings-with-state/TextStyleOptionsSettingsWithState.vue +1 -1
  337. package/src/shared/template-settings/components/TemplatesSettings.vue +1 -1
  338. package/src/shared/unsplash-library/UnsplashLibrary.vue +1 -1
  339. package/src/shared/upload-logo-modal/UploadLogoModal.vue +1 -1
  340. package/src/shared/video-library/VideoLibrary.vue +1 -1
  341. package/src/shared/website-byo-upload/WebsiteByoUpload.vue +1 -0
  342. package/lib/src/bundled-translations-BGBFf8J6.js +0 -169
  343. package/lib/src/bundled-translations.de-DE-CMMRRwga.js +0 -169
  344. package/lib/src/bundled-translations.es-ES-XRLPG1g-.js +0 -169
  345. package/lib/src/bundled-translations.fr-CA-JVxHjJw5.js +0 -169
  346. package/lib/src/bundled-translations.fr-FR-B9v33v0w.js +0 -169
  347. package/lib/src/bundled-translations.pt-BR-B_hexxsq.js +0 -169
  348. package/lib/src/bundled-translations.pt-PT-B9aY7rS8.js +0 -169
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BbrowyLZ.js";
2
+ import { _ as t } from "./lib-BjEv9nzD.js";
3
3
  const i = {}, h = {
4
4
  width: "275",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BbrowyLZ.js";
2
+ import { _ as t } from "./lib-BjEv9nzD.js";
3
3
  const i = {}, h = {
4
4
  width: "251",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BbrowyLZ.js";
2
+ import { _ as t } from "./lib-BjEv9nzD.js";
3
3
  const i = {}, h = {
4
4
  width: "250",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BbrowyLZ.js";
2
+ import { _ as t } from "./lib-BjEv9nzD.js";
3
3
  const i = {}, h = {
4
4
  width: "237",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BbrowyLZ.js";
2
+ import { _ as t } from "./lib-BjEv9nzD.js";
3
3
  const i = {}, h = {
4
4
  width: "237",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BbrowyLZ.js";
2
+ import { _ as t } from "./lib-BjEv9nzD.js";
3
3
  const i = {}, h = {
4
4
  width: "263",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BbrowyLZ.js";
2
+ import { _ as t } from "./lib-BjEv9nzD.js";
3
3
  const i = {}, h = {
4
4
  width: "263",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-BbrowyLZ.js";
2
+ import { _ as e } from "./lib-BjEv9nzD.js";
3
3
  const M = {}, Z = {
4
4
  width: "242",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-BbrowyLZ.js";
2
+ import { _ as e } from "./lib-BjEv9nzD.js";
3
3
  const i = {}, M = {
4
4
  width: "231",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-BbrowyLZ.js";
2
+ import { _ as e } from "./lib-BjEv9nzD.js";
3
3
  const M = {}, Z = {
4
4
  width: "230",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-BbrowyLZ.js";
2
+ import { _ as e } from "./lib-BjEv9nzD.js";
3
3
  const i = {}, l = {
4
4
  width: "216",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-BbrowyLZ.js";
2
+ import { _ as e } from "./lib-BjEv9nzD.js";
3
3
  const i = {}, l = {
4
4
  width: "216",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as M } from "./lib-BbrowyLZ.js";
2
+ import { _ as M } from "./lib-BjEv9nzD.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as M } from "./lib-BbrowyLZ.js";
2
+ import { _ as M } from "./lib-BjEv9nzD.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -8,5 +8,7 @@ export declare const useConsent: () => {
8
8
  featureEnabled: boolean;
9
9
  }) => ConsentType;
10
10
  grant: (cb?: () => unknown) => void;
11
+ deny: (cb?: () => unknown) => void;
11
12
  accepted: import("vue").ComputedRef<boolean>;
13
+ declined: import("vue").ComputedRef<boolean>;
12
14
  };
@@ -39,20 +39,30 @@ export const useConsent = () => {
39
39
  }
40
40
  store.featureEnabled = options.featureEnabled;
41
41
  store.consent = getStoredConsent();
42
- store.showConsentModal = options.featureEnabled && !accepted.value;
42
+ store.showConsentModal =
43
+ options.featureEnabled && !accepted.value && !declined.value;
43
44
  return store.consent;
44
45
  };
45
46
  const accepted = computed(() => Boolean(store.consent && store.consent === 'granted'));
47
+ const declined = computed(() => Boolean(store.consent && store.consent === 'denied'));
46
48
  const grant = (cb) => {
47
49
  storeConsent('granted');
48
50
  store.updateConsent('granted');
49
51
  store.showConsentModal = store.featureEnabled && !accepted.value;
50
52
  cb && cb();
51
53
  };
54
+ const deny = (cb) => {
55
+ storeConsent('denied');
56
+ store.updateConsent('denied');
57
+ store.showConsentModal = false;
58
+ cb && cb();
59
+ };
52
60
  return {
53
61
  initialise,
54
62
  grant,
63
+ deny,
55
64
  accepted,
65
+ declined,
56
66
  ...toRefs(store),
57
67
  };
58
68
  };
@@ -37,6 +37,7 @@ export interface AbTestResult {
37
37
  export interface AbTest {
38
38
  bp_3926_freemium_watermark?: AbTestResult;
39
39
  bp_4572_ai_text_generation_post_purchase?: AbTestResult;
40
+ bp_4964_ai_text_generation_improvement?: AbTestResult;
40
41
  }
41
42
  export declare const MEDIA_SIZES: {
42
43
  readonly size1x: "size1x";
@@ -25,6 +25,7 @@ export const AB_TEST_FLAG = {
25
25
  const AB_TEST_KEYS = {
26
26
  BP_3926_FREEMIUM_WATERMARK: 'bc-bp-3926-freemium-cta-in-website-editor',
27
27
  BP_4572_AI_TEXT_GENERATION_POST_PURCHASE: 'bc-bp-4572-ai-text-generation-post-purchase',
28
+ BP_4964_AI_TEXT_GENERATION_IMPROVEMENT: 'bc-bp-4964-ai-text-improvement-post-purchase-on-website',
28
29
  };
29
30
  export const MEDIA_SIZES = {
30
31
  size1x: 'size1x',
@@ -50,5 +51,9 @@ export const getAbTestResults = (abtestKeyValues) => {
50
51
  if (abtestKeyValues[AB_TEST_KEYS.BP_4572_AI_TEXT_GENERATION_POST_PURCHASE]) {
51
52
  abTests.bp_4572_ai_text_generation_post_purchase = getValueType(AB_TEST_KEYS.BP_4572_AI_TEXT_GENERATION_POST_PURCHASE, abtestKeyValues[AB_TEST_KEYS.BP_4572_AI_TEXT_GENERATION_POST_PURCHASE]);
52
53
  }
54
+ // AB Test for BP-4572 - AI Text Generation Improvement
55
+ if (abtestKeyValues[AB_TEST_KEYS.BP_4964_AI_TEXT_GENERATION_IMPROVEMENT]) {
56
+ abTests.bp_4964_ai_text_generation_improvement = getValueType(AB_TEST_KEYS.BP_4964_AI_TEXT_GENERATION_IMPROVEMENT, abtestKeyValues[AB_TEST_KEYS.BP_4964_AI_TEXT_GENERATION_IMPROVEMENT]);
57
+ }
53
58
  return abTests;
54
59
  };
@@ -137,7 +137,7 @@ export interface VideoContent extends Content {
137
137
  export interface TextContent extends Content {
138
138
  iconUrl: string;
139
139
  /**
140
- * For BrandPage only
140
+ * For BrandPage/BrandContact only
141
141
  */
142
142
  text: string;
143
143
  /**
@@ -111,6 +111,11 @@ export const migrateBrandPageModel = async (brandPageModel, options) => {
111
111
  brandPageModel,
112
112
  useOldLogoRenderSize: false,
113
113
  };
114
+ const latestVersion = GetLatestModelVersion();
115
+ // Return early if the model is already at the latest version
116
+ if (migrationResult.brandPageModel.v === latestVersion) {
117
+ return migrationResult;
118
+ }
114
119
  if (!modelVersion) {
115
120
  modelVersion = 0;
116
121
  }
@@ -120,6 +125,6 @@ export const migrateBrandPageModel = async (brandPageModel, options) => {
120
125
  }
121
126
  }
122
127
  // Set the model to latest version
123
- migrationResult.brandPageModel.v = GetLatestModelVersion();
128
+ migrationResult.brandPageModel.v = latestVersion;
124
129
  return migrationResult;
125
130
  };
@@ -120,11 +120,16 @@ declare const _default: import("vue").DefineComponent<{}, {
120
120
  setBrandPageType({ brandPageType }: {
121
121
  brandPageType: "default" | "brandSite" | "brandContact";
122
122
  }): void;
123
+ initialiseStoresByBrandPageModelAsync(brandPageModel: import("../../../brand-page").BrandPageModel): Promise<void>;
123
124
  initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../stores").InitialisePayload): Promise<void>;
124
125
  initialisePages({ pages, sections, }: {
125
126
  pages: import("../../../brand-page").PageModel[];
126
127
  sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
127
128
  }): void;
129
+ initialisePagesForCurrentPage({ pages, sections, }: {
130
+ pages: import("../../../brand-page").PageModel[];
131
+ sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
132
+ }): void;
128
133
  initialiseAdminMaker(payload: {
129
134
  models: import("../../stores/admin-logo-settings").AdminPreviewLogoTemplateModel[];
130
135
  }): void;
@@ -165,11 +165,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
165
165
  setBrandPageType({ brandPageType }: {
166
166
  brandPageType: "default" | "brandSite" | "brandContact";
167
167
  }): void;
168
+ initialiseStoresByBrandPageModelAsync(brandPageModel: import("../../../brand-page").BrandPageModel): Promise<void>;
168
169
  initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../stores").InitialisePayload): Promise<void>;
169
170
  initialisePages({ pages, sections, }: {
170
171
  pages: import("../../../brand-page").PageModel[];
171
172
  sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
172
173
  }): void;
174
+ initialisePagesForCurrentPage({ pages, sections, }: {
175
+ pages: import("../../../brand-page").PageModel[];
176
+ sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
177
+ }): void;
173
178
  initialiseAdminMaker(payload: {
174
179
  models: AdminPreviewLogoTemplateModel[];
175
180
  }): void;
@@ -199,6 +204,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
199
204
  setSelectedSettingsSection(payload: {
200
205
  sectionName?: string | undefined;
201
206
  }): void;
207
+ setAiTextEditContext(payload: import("../../../shared/side-bar/store").AiTextEditContext): void;
208
+ clearAiTextEditContext(): void;
202
209
  }>;
203
210
  userStore: import("pinia").Store<"brandPageMakerUser", import("../../stores").UserState, {}, {
204
211
  setUserState(payload: {
@@ -110,11 +110,16 @@ declare const _default: import("vue").DefineComponent<{}, {
110
110
  setBrandPageType({ brandPageType }: {
111
111
  brandPageType: "default" | "brandSite" | "brandContact";
112
112
  }): void;
113
+ initialiseStoresByBrandPageModelAsync(brandPageModel: import("../../../lib").BrandPageModel): Promise<void>;
113
114
  initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../stores").InitialisePayload): Promise<void>;
114
115
  initialisePages({ pages, sections, }: {
115
116
  pages: import("../../../lib").PageModel[];
116
117
  sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
117
118
  }): void;
119
+ initialisePagesForCurrentPage({ pages, sections, }: {
120
+ pages: import("../../../lib").PageModel[];
121
+ sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
122
+ }): void;
118
123
  initialiseAdminMaker(payload: {
119
124
  models: import("../../stores/admin-logo-settings").AdminPreviewLogoTemplateModel[];
120
125
  }): void;
@@ -616,11 +616,16 @@ declare const _default: import("vue").DefineComponent<{}, {
616
616
  setBrandPageType({ brandPageType }: {
617
617
  brandPageType: "default" | "brandSite" | "brandContact";
618
618
  }): void;
619
+ initialiseStoresByBrandPageModelAsync(brandPageModel: import("../../../brand-page").BrandPageModel): Promise<void>;
619
620
  initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../stores").InitialisePayload): Promise<void>;
620
621
  initialisePages({ pages, sections, }: {
621
622
  pages: import("../../../brand-page").PageModel[];
622
623
  sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
623
624
  }): void;
625
+ initialisePagesForCurrentPage({ pages, sections, }: {
626
+ pages: import("../../../brand-page").PageModel[];
627
+ sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
628
+ }): void;
624
629
  initialiseAdminMaker(payload: {
625
630
  models: import("../../stores/admin-logo-settings").AdminPreviewLogoTemplateModel[];
626
631
  }): void;
@@ -926,6 +931,8 @@ declare const _default: import("vue").DefineComponent<{}, {
926
931
  setSelectedSettingsSection(payload: {
927
932
  sectionName?: string | undefined;
928
933
  }): void;
934
+ setAiTextEditContext(payload: import("../../../shared/side-bar/store").AiTextEditContext): void;
935
+ clearAiTextEditContext(): void;
929
936
  }>;
930
937
  pageSettingsStore: import("pinia").Store<"uiPageSettings", import("../../../shared/page-settings/store").PageSettingsState, {
931
938
  pageIndex(): number;
@@ -116,11 +116,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
116
116
  setBrandPageType({ brandPageType }: {
117
117
  brandPageType: "default" | "brandSite" | "brandContact";
118
118
  }): void;
119
+ initialiseStoresByBrandPageModelAsync(brandPageModel: import("../../../brand-page").BrandPageModel): Promise<void>;
119
120
  initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../stores").InitialisePayload): Promise<void>;
120
121
  initialisePages({ pages, sections, }: {
121
122
  pages: import("../../../brand-page").PageModel[];
122
123
  sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
123
124
  }): void;
125
+ initialisePagesForCurrentPage({ pages, sections, }: {
126
+ pages: import("../../../brand-page").PageModel[];
127
+ sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
128
+ }): void;
124
129
  initialiseAdminMaker(payload: {
125
130
  models: import("../../stores/admin-logo-settings").AdminPreviewLogoTemplateModel[];
126
131
  }): void;
@@ -362,11 +362,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
362
362
  setBrandPageType({ brandPageType }: {
363
363
  brandPageType: "default" | "brandSite" | "brandContact";
364
364
  }): void;
365
+ initialiseStoresByBrandPageModelAsync(brandPageModel: import("../../../brand-page").BrandPageModel): Promise<void>;
365
366
  initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../stores").InitialisePayload): Promise<void>;
366
367
  initialisePages({ pages, sections, }: {
367
368
  pages: import("../../../brand-page").PageModel[];
368
369
  sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
369
370
  }): void;
371
+ initialisePagesForCurrentPage({ pages, sections, }: {
372
+ pages: import("../../../brand-page").PageModel[];
373
+ sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
374
+ }): void;
370
375
  initialiseAdminMaker(payload: {
371
376
  models: import("../../stores/admin-logo-settings").AdminPreviewLogoTemplateModel[];
372
377
  }): void;
@@ -363,11 +363,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
363
363
  setBrandPageType({ brandPageType }: {
364
364
  brandPageType: "default" | "brandSite" | "brandContact";
365
365
  }): void;
366
+ initialiseStoresByBrandPageModelAsync(brandPageModel: import("../../../brand-page").BrandPageModel): Promise<void>;
366
367
  initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../stores").InitialisePayload): Promise<void>;
367
368
  initialisePages({ pages, sections, }: {
368
369
  pages: import("../../../brand-page").PageModel[];
369
370
  sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
370
371
  }): void;
372
+ initialisePagesForCurrentPage({ pages, sections, }: {
373
+ pages: import("../../../brand-page").PageModel[];
374
+ sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
375
+ }): void;
371
376
  initialiseAdminMaker(payload: {
372
377
  models: import("../../stores/admin-logo-settings").AdminPreviewLogoTemplateModel[];
373
378
  }): void;
@@ -126,11 +126,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
126
126
  setBrandPageType({ brandPageType }: {
127
127
  brandPageType: "default" | "brandSite" | "brandContact";
128
128
  }): void;
129
+ initialiseStoresByBrandPageModelAsync(brandPageModel: import("../../../brand-page").BrandPageModel): Promise<void>;
129
130
  initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../stores").InitialisePayload): Promise<void>;
130
131
  initialisePages({ pages, sections, }: {
131
132
  pages: import("../../../brand-page").PageModel[];
132
133
  sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
133
134
  }): void;
135
+ initialisePagesForCurrentPage({ pages, sections, }: {
136
+ pages: import("../../../brand-page").PageModel[];
137
+ sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
138
+ }): void;
134
139
  initialiseAdminMaker(payload: {
135
140
  models: import("../../stores/admin-logo-settings").AdminPreviewLogoTemplateModel[];
136
141
  }): void;
@@ -414,11 +414,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
414
414
  setBrandPageType({ brandPageType }: {
415
415
  brandPageType: "default" | "brandSite" | "brandContact";
416
416
  }): void;
417
+ initialiseStoresByBrandPageModelAsync(brandPageModel: import("../../../brand-page").BrandPageModel): Promise<void>;
417
418
  initialise({ brandPage, brandPageType, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, industry, logoVariationImageUrls, shopConfigData, isServerRenderOverride, }: import("../../stores").InitialisePayload): Promise<void>;
418
419
  initialisePages({ pages, sections, }: {
419
420
  pages: import("../../../brand-page").PageModel[];
420
421
  sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
421
422
  }): void;
423
+ initialisePagesForCurrentPage({ pages, sections, }: {
424
+ pages: import("../../../brand-page").PageModel[];
425
+ sections: import("../../../shared/page-settings/store").PageSettingsStateSections;
426
+ }): void;
422
427
  initialiseAdminMaker(payload: {
423
428
  models: import("../../stores/admin-logo-settings").AdminPreviewLogoTemplateModel[];
424
429
  }): void;
@@ -0,0 +1,54 @@
1
+ import { type ComputedRef, type Ref } from 'vue';
2
+ export interface BaseThreadMessage {
3
+ id: string;
4
+ role: 'user' | 'agent';
5
+ isTyping?: boolean;
6
+ isError?: boolean;
7
+ timestamp: Date;
8
+ }
9
+ export interface TextThreadMessage extends BaseThreadMessage {
10
+ type: 'text';
11
+ text: string;
12
+ }
13
+ export interface ImageThreadMessage extends BaseThreadMessage {
14
+ type: 'image';
15
+ images: {
16
+ url: string;
17
+ alt?: string;
18
+ }[];
19
+ text?: string;
20
+ }
21
+ export type ThreadMessage = TextThreadMessage | ImageThreadMessage;
22
+ export interface SendMessageOptions {
23
+ text?: string;
24
+ images?: {
25
+ url: string;
26
+ alt?: string;
27
+ }[];
28
+ }
29
+ export interface UseAiChatOptions {
30
+ currentValue?: string;
31
+ fieldId: string;
32
+ fieldName: string;
33
+ contentType: string;
34
+ maxChars?: number;
35
+ textStyle?: BrandPageCssStyle;
36
+ onTextUpdate?: (text: string) => void;
37
+ onStyleUpdate?: (style: BrandPageCssStyle) => void;
38
+ }
39
+ export interface UseAiChatResult {
40
+ threadItems: Ref<ThreadMessage[]>;
41
+ isProcessing: Ref<boolean>;
42
+ currentTypingMessageId: Ref<string | null>;
43
+ generatedText: Ref<string | null>;
44
+ generatedStyle: Ref<BrandPageCssStyle | null>;
45
+ sendMessageAsync: (options: SendMessageOptions) => Promise<void>;
46
+ deleteMessage: (messageId: string) => void;
47
+ stopGenerationAsync: () => Promise<void>;
48
+ formattedMessages: ComputedRef<{
49
+ type: string;
50
+ props: Record<string, unknown>;
51
+ }[]>;
52
+ }
53
+ export declare const createWelcomeMessage: (currentValue: string) => TextThreadMessage;
54
+ export declare function useAiChat(options: UseAiChatOptions): UseAiChatResult;