@designcrowd/library.brand-page 5.17.28 → 5.18.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 (380) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-CJZpKPNH.js → CreatedOnBrandCrowd-de-de-xmkupPus.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-DkIa7iEb.js → CreatedOnBrandCrowd-en-us-Ck7EdTtb.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-CE2p6XHz.js → CreatedOnBrandCrowd-es-es-BC8sJuDH.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-BBjOZS3M.js → CreatedOnBrandCrowd-fr-ca-CN-UBe1q.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-BBjOZS3M.js → CreatedOnBrandCrowd-fr-fr-CN-UBe1q.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-Dayzl4BZ.js → CreatedOnBrandCrowd-pt-br-CajQyNkx.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-Dayzl4BZ.js → CreatedOnBrandCrowd-pt-pt-CajQyNkx.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-CFzDqfCb.js → CreatedOnDcom-de-de-BRCNMmDq.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-C2jIPBDY.js → CreatedOnDcom-en-us-BzQDtZhc.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-qejpzqho.js → CreatedOnDcom-es-es-D-qAM4Cd.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-DMO9Ld7K.js → CreatedOnDcom-fr-ca-CZ1irFOc.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-BFWN9qTP.js → CreatedOnDcom-fr-fr-Gb5BCF0N.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-CneD3ghF.js → CreatedOnDcom-pt-br-CAQV0q6o.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-Cg1B7s0o.js → CreatedOnDcom-pt-pt-D6tQdQFh.js} +1 -1
  15. package/lib/src/brand-page/components/image-gallery/ImageGalleryModal.mixin.js +2 -2
  16. package/lib/src/brand-page/models/brand-page-context.model.d.ts +0 -2
  17. package/lib/src/brand-page/models/brand-page-context.model.js +1 -11
  18. package/lib/src/brand-page/models/index.d.ts +1 -0
  19. package/lib/src/brand-page/models/index.js +1 -0
  20. package/lib/src/brand-page/utils/color.util.js +23 -3
  21. package/lib/src/brand-page/utils/raygun.util.d.ts +5 -1
  22. package/lib/src/brand-page/utils/raygun.util.js +7 -2
  23. package/lib/src/brand-page/utils/svg-color.util.js +1 -2
  24. package/lib/src/brand-page/utils/view-model.util.js +1 -1
  25. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +1 -31
  26. package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.js +0 -2
  27. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +2 -31
  28. package/lib/src/brand-page-maker/components/preview/Preview.mixin.d.ts +0 -14
  29. package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.d.ts +0 -28
  30. package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +0 -28
  31. package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +0 -28
  32. package/lib/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.d.ts +0 -28
  33. package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +0 -28
  34. package/lib/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.d.ts +0 -28
  35. package/lib/src/brand-page-maker/composables/ai-chat/aiErrorCopy.d.ts +35 -0
  36. package/lib/src/brand-page-maker/composables/ai-chat/aiErrorCopy.js +108 -0
  37. package/lib/src/brand-page-maker/composables/ai-chat/{useAiChat.d.ts → types.d.ts} +5 -13
  38. package/lib/src/brand-page-maker/composables/ai-chat/types.js +1 -0
  39. package/lib/src/brand-page-maker/composables/ai-chat/useAiMetadataBuilder.d.ts +19 -0
  40. package/lib/src/brand-page-maker/composables/ai-chat/useAiMetadataBuilder.js +1 -0
  41. package/lib/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.d.ts +1 -1
  42. package/lib/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.js +488 -82
  43. package/lib/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.js +5 -5
  44. package/lib/src/brand-page-maker/composables/useEventTracker.d.ts +6 -16
  45. package/lib/src/brand-page-maker/composables/useEventTracker.js +19 -21
  46. package/lib/src/brand-page-maker/constants/sidebar-constant.d.ts +0 -1
  47. package/lib/src/brand-page-maker/constants/sidebar-constant.js +7 -15
  48. package/lib/src/brand-page-maker/convertors/image-aspect-ratio.convertor.js +2 -2
  49. package/lib/src/brand-page-maker/convertors/text-size-value.convertor.js +3 -1
  50. package/lib/src/brand-page-maker/stores/ai-checkpoint/ai-checkpoint-store.d.ts +30660 -0
  51. package/lib/src/brand-page-maker/stores/ai-checkpoint/ai-checkpoint-store.js +34 -0
  52. package/lib/src/brand-page-maker/stores/ai-thread/ai-website-builder-thread-store.d.ts +1 -1
  53. package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.d.ts +0 -28
  54. package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +42 -2
  55. package/lib/src/brand-page-maker/stores/index.d.ts +1 -1
  56. package/lib/src/brand-page-maker/stores/index.js +1 -1
  57. package/lib/src/brand-page-maker/stores/user/user-store.js +0 -1
  58. package/lib/src/bundled-translations-CnareLWC.js +175 -0
  59. package/lib/src/bundled-translations.de-DE-2Ys7epLO.js +175 -0
  60. package/lib/src/bundled-translations.es-ES-Cjp-G8rT.js +175 -0
  61. package/lib/src/bundled-translations.fr-CA-CsaW4Oae.js +175 -0
  62. package/lib/src/bundled-translations.fr-FR-DIT2dd8J.js +175 -0
  63. package/lib/src/bundled-translations.pt-BR-BamoBpDW.js +175 -0
  64. package/lib/src/bundled-translations.pt-PT-C9A4hY_e.js +175 -0
  65. package/lib/src/bundles/bundled-translations.de-DE.json +1 -20
  66. package/lib/src/bundles/bundled-translations.es-ES.json +1 -20
  67. package/lib/src/bundles/bundled-translations.fr-CA.json +1 -20
  68. package/lib/src/bundles/bundled-translations.fr-FR.json +1 -20
  69. package/lib/src/bundles/bundled-translations.json +1 -20
  70. package/lib/src/bundles/bundled-translations.pt-BR.json +1 -20
  71. package/lib/src/bundles/bundled-translations.pt-PT.json +1 -20
  72. package/lib/src/clients/ai-assistant-client.d.ts +30 -29
  73. package/lib/src/clients/ai-assistant-client.js +16 -16
  74. package/lib/src/clients/design-template-client.d.ts +0 -2
  75. package/lib/src/clients/design-template-client.js +0 -38
  76. package/lib/src/clients/websocket-gateway-client.d.ts +9 -1
  77. package/lib/src/composables/useTranslate.d.ts +2 -1
  78. package/lib/src/composables/useTranslate.js +2 -1
  79. package/lib/src/constants/ui.d.ts +0 -1
  80. package/lib/src/css/library.brand-page-brandCrowd.min.css +225 -134
  81. package/lib/src/css/library.brand-page-brandPage.min.css +227 -121
  82. package/lib/src/css/library.brand-page-designCom.min.css +225 -134
  83. package/lib/src/css/library.brand-page-preview.min.css +225 -118
  84. package/lib/src/index.d.ts +1 -1
  85. package/lib/src/index.mjs +1 -1
  86. package/lib/src/{lib-33w_DBny.js → lib-CSRUPpSo.js} +30887 -29395
  87. package/lib/src/metadata-builder/ai-metadata-executor.d.ts +21 -0
  88. package/lib/src/metadata-builder/ai-metadata-executor.js +56 -3
  89. package/lib/src/metadata-builder/builders/add-page-builder.d.ts +2 -4
  90. package/lib/src/metadata-builder/builders/add-page-builder.js +5 -8
  91. package/lib/src/metadata-builder/builders/footer-builder.d.ts +11 -0
  92. package/lib/src/metadata-builder/builders/footer-builder.js +151 -0
  93. package/lib/src/metadata-builder/builders/global-styles-builder.d.ts +15 -0
  94. package/lib/src/metadata-builder/builders/global-styles-builder.js +129 -0
  95. package/lib/src/metadata-builder/builders/header-builder.d.ts +11 -0
  96. package/lib/src/metadata-builder/builders/header-builder.js +167 -0
  97. package/lib/src/metadata-builder/builders/rename-page-builder.d.ts +12 -0
  98. package/lib/src/metadata-builder/builders/rename-page-builder.js +49 -0
  99. package/lib/src/metadata-builder/builders/section-builders/about-section-builder.d.ts +2 -0
  100. package/lib/src/metadata-builder/builders/section-builders/about-section-builder.js +44 -4
  101. package/lib/src/metadata-builder/builders/section-builders/banner-section-builder.d.ts +2 -0
  102. package/lib/src/metadata-builder/builders/section-builders/banner-section-builder.js +70 -6
  103. package/lib/src/metadata-builder/builders/section-builders/base-section-builder.d.ts +36 -4
  104. package/lib/src/metadata-builder/builders/section-builders/base-section-builder.js +102 -12
  105. package/lib/src/metadata-builder/builders/section-builders/booking-section-builder.d.ts +8 -0
  106. package/lib/src/metadata-builder/builders/section-builders/booking-section-builder.js +50 -0
  107. package/lib/src/metadata-builder/builders/section-builders/button-section-builder.d.ts +2 -0
  108. package/lib/src/metadata-builder/builders/section-builders/button-section-builder.js +5 -1
  109. package/lib/src/metadata-builder/builders/section-builders/contact-form-builder.d.ts +2 -0
  110. package/lib/src/metadata-builder/builders/section-builders/contact-form-builder.js +47 -3
  111. package/lib/src/metadata-builder/builders/section-builders/delete-section-builder.d.ts +2 -1
  112. package/lib/src/metadata-builder/builders/section-builders/delete-section-builder.js +5 -2
  113. package/lib/src/metadata-builder/builders/section-builders/divider-section-builder.d.ts +2 -0
  114. package/lib/src/metadata-builder/builders/section-builders/divider-section-builder.js +11 -1
  115. package/lib/src/metadata-builder/builders/section-builders/image-gallery-builder.d.ts +2 -0
  116. package/lib/src/metadata-builder/builders/section-builders/image-gallery-builder.js +52 -13
  117. package/lib/src/metadata-builder/builders/section-builders/images-section-builder.d.ts +2 -0
  118. package/lib/src/metadata-builder/builders/section-builders/images-section-builder.js +47 -17
  119. package/lib/src/metadata-builder/builders/section-builders/index.d.ts +1 -0
  120. package/lib/src/metadata-builder/builders/section-builders/index.js +1 -0
  121. package/lib/src/metadata-builder/builders/section-builders/mailing-list-builder.d.ts +2 -0
  122. package/lib/src/metadata-builder/builders/section-builders/mailing-list-builder.js +20 -2
  123. package/lib/src/metadata-builder/builders/section-builders/mailing-list-section-builder.d.ts +2 -0
  124. package/lib/src/metadata-builder/builders/section-builders/mailing-list-section-builder.js +20 -2
  125. package/lib/src/metadata-builder/builders/section-builders/profile-section-builder.d.ts +2 -0
  126. package/lib/src/metadata-builder/builders/section-builders/profile-section-builder.js +36 -2
  127. package/lib/src/metadata-builder/builders/section-builders/shapes-section-builder.d.ts +2 -0
  128. package/lib/src/metadata-builder/builders/section-builders/shapes-section-builder.js +70 -27
  129. package/lib/src/metadata-builder/builders/section-builders/social-links-builder.d.ts +2 -0
  130. package/lib/src/metadata-builder/builders/section-builders/social-links-builder.js +7 -2
  131. package/lib/src/metadata-builder/builders/section-builders/testimonial-section-builder.d.ts +2 -0
  132. package/lib/src/metadata-builder/builders/section-builders/testimonial-section-builder.js +91 -26
  133. package/lib/src/metadata-builder/builders/section-builders/text-section-builder.d.ts +2 -0
  134. package/lib/src/metadata-builder/builders/section-builders/text-section-builder.js +69 -31
  135. package/lib/src/metadata-builder/builders/section-content-factory.d.ts +2 -2
  136. package/lib/src/metadata-builder/builders/section-content-factory.js +8 -2
  137. package/lib/src/metadata-builder/builders/section-field-maps.js +30 -2
  138. package/lib/src/metadata-builder/builders/section-field-utils.d.ts +46 -7
  139. package/lib/src/metadata-builder/builders/section-field-utils.js +86 -62
  140. package/lib/src/metadata-builder/builders/section-rules/about-section.rules.d.ts +2 -0
  141. package/lib/src/metadata-builder/builders/section-rules/about-section.rules.js +20 -0
  142. package/lib/src/metadata-builder/builders/section-rules/add-page.rules.d.ts +7 -0
  143. package/lib/src/metadata-builder/builders/section-rules/add-page.rules.js +8 -0
  144. package/lib/src/metadata-builder/builders/section-rules/banner-section.rules.d.ts +2 -0
  145. package/lib/src/metadata-builder/builders/section-rules/banner-section.rules.js +27 -0
  146. package/lib/src/metadata-builder/builders/section-rules/booking-section.rules.d.ts +2 -0
  147. package/lib/src/metadata-builder/builders/section-rules/booking-section.rules.js +16 -0
  148. package/lib/src/metadata-builder/builders/section-rules/button-section.rules.d.ts +2 -0
  149. package/lib/src/metadata-builder/builders/section-rules/button-section.rules.js +13 -0
  150. package/lib/src/metadata-builder/builders/section-rules/contact-form.rules.d.ts +2 -0
  151. package/lib/src/metadata-builder/builders/section-rules/contact-form.rules.js +16 -0
  152. package/lib/src/metadata-builder/builders/section-rules/divider-section.rules.d.ts +2 -0
  153. package/lib/src/metadata-builder/builders/section-rules/divider-section.rules.js +7 -0
  154. package/lib/src/metadata-builder/builders/section-rules/footer.rules.d.ts +4 -0
  155. package/lib/src/metadata-builder/builders/section-rules/footer.rules.js +5 -0
  156. package/lib/src/metadata-builder/builders/section-rules/global-styles.rules.d.ts +6 -0
  157. package/lib/src/metadata-builder/builders/section-rules/global-styles.rules.js +26 -0
  158. package/lib/src/metadata-builder/builders/section-rules/header.rules.d.ts +4 -0
  159. package/lib/src/metadata-builder/builders/section-rules/header.rules.js +41 -0
  160. package/lib/src/metadata-builder/builders/section-rules/image-gallery.rules.d.ts +2 -0
  161. package/lib/src/metadata-builder/builders/section-rules/image-gallery.rules.js +10 -0
  162. package/lib/src/metadata-builder/builders/section-rules/images-section.rules.d.ts +2 -0
  163. package/lib/src/metadata-builder/builders/section-rules/images-section.rules.js +31 -0
  164. package/lib/src/metadata-builder/builders/section-rules/mailing-list.rules.d.ts +2 -0
  165. package/lib/src/metadata-builder/builders/section-rules/mailing-list.rules.js +11 -0
  166. package/lib/src/metadata-builder/builders/section-rules/profile.rules.d.ts +2 -0
  167. package/lib/src/metadata-builder/builders/section-rules/profile.rules.js +14 -0
  168. package/lib/src/metadata-builder/builders/section-rules/rename-page.rules.d.ts +7 -0
  169. package/lib/src/metadata-builder/builders/section-rules/rename-page.rules.js +8 -0
  170. package/lib/src/metadata-builder/builders/section-rules/shapes-section.rules.d.ts +2 -0
  171. package/lib/src/metadata-builder/builders/section-rules/shapes-section.rules.js +27 -0
  172. package/lib/src/metadata-builder/builders/section-rules/social-links.rules.d.ts +2 -0
  173. package/lib/src/metadata-builder/builders/section-rules/social-links.rules.js +9 -0
  174. package/lib/src/metadata-builder/builders/section-rules/testimonial-section.rules.d.ts +7 -0
  175. package/lib/src/metadata-builder/builders/section-rules/testimonial-section.rules.js +26 -0
  176. package/lib/src/metadata-builder/builders/section-rules/text-section.rules.d.ts +2 -0
  177. package/lib/src/metadata-builder/builders/section-rules/text-section.rules.js +14 -0
  178. package/lib/src/metadata-builder/builders/shape-color-utils.d.ts +26 -0
  179. package/lib/src/metadata-builder/builders/shape-color-utils.js +52 -0
  180. package/lib/src/metadata-builder/builders/undo-builder.d.ts +48 -0
  181. package/lib/src/metadata-builder/builders/undo-builder.js +58 -0
  182. package/lib/src/metadata-builder/builders/update-content-text-style-builder.js +5 -1
  183. package/lib/src/metadata-builder/helpers/rte.helpers.d.ts +15 -4
  184. package/lib/src/metadata-builder/helpers/rte.helpers.js +24 -10
  185. package/lib/src/metadata-builder/metadata-executor.d.ts +2 -1
  186. package/lib/src/metadata-builder/metadata-executor.js +32 -5
  187. package/lib/src/metadata-builder/models.d.ts +26 -1
  188. package/lib/src/metadata-builder/models.js +14 -1
  189. package/lib/src/metadata-builder/parsers/ai-toolcall-parser.d.ts +144 -0
  190. package/lib/src/metadata-builder/parsers/ai-toolcall-parser.js +17 -0
  191. package/lib/src/metadata-builder/parsers/section-tool-arguments.d.ts +113 -24
  192. package/lib/src/metadata-builder/parsers/section-tool-arguments.js +5 -1
  193. package/lib/src/metadata-builder/sanitizers/rte-schema-check.d.ts +22 -0
  194. package/lib/src/metadata-builder/sanitizers/rte-schema-check.js +84 -0
  195. package/lib/src/metadata-builder/sanitizers/sanitizer-rules.d.ts +47 -0
  196. package/lib/src/metadata-builder/sanitizers/sanitizer-rules.js +60 -0
  197. package/lib/src/metadata-builder/sanitizers/section-args-validator.d.ts +41 -0
  198. package/lib/src/metadata-builder/sanitizers/section-args-validator.js +274 -0
  199. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +2 -1
  200. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.js +2 -16
  201. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.stories.js +0 -1
  202. package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +2 -1
  203. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +2 -3
  204. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +0 -4
  205. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.js +6 -8
  206. package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +0 -28
  207. package/lib/src/shared/logo-settings/components/EditLogoSettings.mixin.d.ts +2 -1
  208. package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +0 -28
  209. package/lib/src/shared/navigation-style-settings/store/index.js +1 -0
  210. package/lib/src/shared/page-navigation/store/page-navigation-store.js +1 -20
  211. package/lib/src/shared/page-navigation/utils/nav-order-utils.d.ts +3 -0
  212. package/lib/src/shared/page-navigation/utils/nav-order-utils.js +20 -0
  213. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +2 -30
  214. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +0 -28
  215. package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +2 -43
  216. package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +0 -30
  217. package/lib/src/shared/side-bar/components/SideBarTabButton.mixin.d.ts +2 -3
  218. package/lib/src/shared/side-bar/store/side-bar-store.d.ts +0 -12
  219. package/lib/src/shared/side-bar/store/side-bar-store.js +0 -7
  220. package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +2 -29
  221. package/lib/src/shared/template-settings/components/TemplatesSettings.mixin.d.ts +2 -1
  222. package/lib/src/utils/build-asset-manifest.d.ts +26 -0
  223. package/lib/src/utils/build-asset-manifest.js +114 -0
  224. package/lib/src/utils/minify-brand-page-metadata.d.ts +49 -1
  225. package/lib/src/utils/minify-brand-page-metadata.js +216 -129
  226. package/package.json +1 -1
  227. package/src/brand-page/components/banner-section/BannerSection.vue +1 -1
  228. package/src/brand-page/components/contact-form/ContactForm.vue +29 -26
  229. package/src/brand-page/components/image-gallery/ImageGalleryModal.mixin.ts +6 -2
  230. package/src/brand-page/components/text-media-section/TextMediaSection.vue +1 -5
  231. package/src/brand-page/models/brand-page-context.model.ts +1 -25
  232. package/src/brand-page/models/index.ts +1 -0
  233. package/src/brand-page/utils/color.util.test.ts +48 -0
  234. package/src/brand-page/utils/color.util.ts +29 -4
  235. package/src/brand-page/utils/raygun.util.ts +11 -2
  236. package/src/brand-page/utils/svg-color.util.ts +1 -3
  237. package/src/brand-page/utils/view-model.util.ts +1 -4
  238. package/src/brand-page-maker/components/ai-text-edit/AiChatbox.vue +2 -2
  239. package/src/brand-page-maker/components/ai-text-edit/AiProgressFeed.vue +162 -0
  240. package/src/brand-page-maker/components/ai-text-edit/TextBubble.vue +57 -5
  241. package/src/brand-page-maker/components/ai-text-edit/i18n/generate-ai.de-DE.json +0 -20
  242. package/src/brand-page-maker/components/ai-text-edit/i18n/generate-ai.es-ES.json +0 -20
  243. package/src/brand-page-maker/components/ai-text-edit/i18n/generate-ai.fr-CA.json +0 -20
  244. package/src/brand-page-maker/components/ai-text-edit/i18n/generate-ai.fr-FR.json +0 -20
  245. package/src/brand-page-maker/components/ai-text-edit/i18n/generate-ai.json +0 -20
  246. package/src/brand-page-maker/components/ai-text-edit/i18n/generate-ai.pt-BR.json +0 -20
  247. package/src/brand-page-maker/components/ai-text-edit/i18n/generate-ai.pt-PT.json +0 -20
  248. package/src/brand-page-maker/components/ai-website-builder/AiWebsiteBuilder.vue +1 -2
  249. package/src/brand-page-maker/components/ai-website-builder/i18n/ai-website-builder.de-DE.json +3 -0
  250. package/src/brand-page-maker/components/ai-website-builder/i18n/ai-website-builder.es-ES.json +3 -0
  251. package/src/brand-page-maker/components/ai-website-builder/i18n/ai-website-builder.fr-CA.json +3 -0
  252. package/src/brand-page-maker/components/ai-website-builder/i18n/ai-website-builder.fr-FR.json +3 -0
  253. package/src/brand-page-maker/components/ai-website-builder/i18n/ai-website-builder.json +3 -0
  254. package/src/brand-page-maker/components/ai-website-builder/i18n/ai-website-builder.pt-BR.json +3 -0
  255. package/src/brand-page-maker/components/ai-website-builder/i18n/ai-website-builder.pt-PT.json +3 -0
  256. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.vue +3 -28
  257. package/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.ts +0 -2
  258. package/src/brand-page-maker/composables/ai-chat/aiErrorCopy.test.ts +229 -0
  259. package/src/brand-page-maker/composables/ai-chat/aiErrorCopy.ts +164 -0
  260. package/src/brand-page-maker/composables/ai-chat/types.ts +49 -0
  261. package/src/brand-page-maker/composables/ai-chat/useAiMetadataBuilder.ts +20 -0
  262. package/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.ts +651 -94
  263. package/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.ts +9 -9
  264. package/src/brand-page-maker/composables/useEventTracker.ts +31 -25
  265. package/src/brand-page-maker/constants/sidebar-constant.ts +7 -15
  266. package/src/brand-page-maker/convertors/image-aspect-ratio.convertor.ts +2 -2
  267. package/src/brand-page-maker/convertors/text-size-value.convertor.ts +3 -3
  268. package/src/brand-page-maker/stores/ai-checkpoint/ai-checkpoint-store.ts +54 -0
  269. package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +76 -0
  270. package/src/brand-page-maker/stores/index.ts +1 -1
  271. package/src/brand-page-maker/stores/user/user-store.ts +0 -1
  272. package/src/bundles/bundled-translations.de-DE.json +1 -20
  273. package/src/bundles/bundled-translations.es-ES.json +1 -20
  274. package/src/bundles/bundled-translations.fr-CA.json +1 -20
  275. package/src/bundles/bundled-translations.fr-FR.json +1 -20
  276. package/src/bundles/bundled-translations.json +1 -20
  277. package/src/bundles/bundled-translations.pt-BR.json +1 -20
  278. package/src/bundles/bundled-translations.pt-PT.json +1 -20
  279. package/src/clients/ai-assistant-client.ts +59 -46
  280. package/src/clients/design-template-client.ts +0 -66
  281. package/src/clients/websocket-gateway-client.ts +17 -1
  282. package/src/composables/useTranslate.ts +3 -0
  283. package/src/constants/ui.ts +0 -1
  284. package/src/lib.ts +1 -0
  285. package/src/metadata-builder/ai-metadata-executor.ts +94 -1
  286. package/src/metadata-builder/builders/add-page-builder.ts +9 -13
  287. package/src/metadata-builder/builders/footer-builder.test.ts +76 -0
  288. package/src/metadata-builder/builders/footer-builder.ts +226 -0
  289. package/src/metadata-builder/builders/global-styles-builder.ts +187 -0
  290. package/src/metadata-builder/builders/header-builder.test.ts +106 -0
  291. package/src/metadata-builder/builders/header-builder.ts +254 -0
  292. package/src/metadata-builder/builders/rename-page-builder.ts +79 -0
  293. package/src/metadata-builder/builders/section-builders/about-section-builder.ts +73 -5
  294. package/src/metadata-builder/builders/section-builders/banner-section-builder.ts +112 -7
  295. package/src/metadata-builder/builders/section-builders/base-section-builder.ts +149 -11
  296. package/src/metadata-builder/builders/section-builders/booking-section-builder.ts +87 -0
  297. package/src/metadata-builder/builders/section-builders/button-section-builder.ts +6 -1
  298. package/src/metadata-builder/builders/section-builders/contact-form-builder.ts +74 -4
  299. package/src/metadata-builder/builders/section-builders/delete-section-builder.ts +15 -1
  300. package/src/metadata-builder/builders/section-builders/divider-section-builder.ts +13 -1
  301. package/src/metadata-builder/builders/section-builders/image-gallery-builder.ts +91 -31
  302. package/src/metadata-builder/builders/section-builders/images-section-builder.ts +102 -48
  303. package/src/metadata-builder/builders/section-builders/index.ts +1 -0
  304. package/src/metadata-builder/builders/section-builders/mailing-list-builder.ts +38 -2
  305. package/src/metadata-builder/builders/section-builders/mailing-list-section-builder.ts +38 -2
  306. package/src/metadata-builder/builders/section-builders/profile-section-builder.ts +55 -3
  307. package/src/metadata-builder/builders/section-builders/shapes-section-builder.ts +170 -77
  308. package/src/metadata-builder/builders/section-builders/social-links-builder.test.ts +119 -0
  309. package/src/metadata-builder/builders/section-builders/social-links-builder.ts +13 -2
  310. package/src/metadata-builder/builders/section-builders/testimonial-section-builder.ts +178 -57
  311. package/src/metadata-builder/builders/section-builders/text-section-builder.ts +130 -30
  312. package/src/metadata-builder/builders/section-content-factory.ts +15 -2
  313. package/src/metadata-builder/builders/section-field-maps.ts +34 -1
  314. package/src/metadata-builder/builders/section-field-utils.ts +131 -72
  315. package/src/metadata-builder/builders/section-rules/about-section.rules.ts +38 -0
  316. package/src/metadata-builder/builders/section-rules/add-page.rules.ts +17 -0
  317. package/src/metadata-builder/builders/section-rules/banner-section.rules.ts +49 -0
  318. package/src/metadata-builder/builders/section-rules/booking-section.rules.ts +34 -0
  319. package/src/metadata-builder/builders/section-rules/button-section.rules.ts +22 -0
  320. package/src/metadata-builder/builders/section-rules/contact-form.rules.ts +30 -0
  321. package/src/metadata-builder/builders/section-rules/divider-section.rules.ts +17 -0
  322. package/src/metadata-builder/builders/section-rules/footer.rules.ts +21 -0
  323. package/src/metadata-builder/builders/section-rules/global-styles.rules.ts +44 -0
  324. package/src/metadata-builder/builders/section-rules/header.rules.ts +75 -0
  325. package/src/metadata-builder/builders/section-rules/image-gallery.rules.ts +22 -0
  326. package/src/metadata-builder/builders/section-rules/images-section.rules.ts +55 -0
  327. package/src/metadata-builder/builders/section-rules/mailing-list.rules.ts +21 -0
  328. package/src/metadata-builder/builders/section-rules/profile.rules.ts +27 -0
  329. package/src/metadata-builder/builders/section-rules/rename-page.rules.ts +17 -0
  330. package/src/metadata-builder/builders/section-rules/shapes-section.rules.ts +51 -0
  331. package/src/metadata-builder/builders/section-rules/social-links.rules.ts +27 -0
  332. package/src/metadata-builder/builders/section-rules/testimonial-section.rules.ts +48 -0
  333. package/src/metadata-builder/builders/section-rules/text-section.rules.ts +28 -0
  334. package/src/metadata-builder/builders/shape-color-utils.test.ts +115 -0
  335. package/src/metadata-builder/builders/shape-color-utils.ts +75 -0
  336. package/src/metadata-builder/builders/undo-builder.ts +105 -0
  337. package/src/metadata-builder/builders/update-content-text-style-builder.ts +4 -1
  338. package/src/metadata-builder/helpers/rte.helpers.ts +27 -13
  339. package/src/metadata-builder/metadata-executor.ts +42 -2
  340. package/src/metadata-builder/models.ts +39 -1
  341. package/src/metadata-builder/parsers/ai-toolcall-parser.ts +152 -0
  342. package/src/metadata-builder/parsers/section-tool-arguments.ts +138 -24
  343. package/src/metadata-builder/sanitizers/__tests__/section-args-validator.test.ts +659 -0
  344. package/src/metadata-builder/sanitizers/rte-schema-check.ts +99 -0
  345. package/src/metadata-builder/sanitizers/sanitizer-rules.ts +97 -0
  346. package/src/metadata-builder/sanitizers/section-args-validator.ts +445 -0
  347. package/src/shared/content-settings/components/content-settings/ContentSettings.mixin.ts +10 -16
  348. package/src/shared/content-settings/components/content-settings/ContentSettings.stories.ts +0 -1
  349. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.ts +6 -10
  350. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.vue +1 -23
  351. package/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.vue +0 -15
  352. package/src/shared/content-settings/components/text-items-field/TextItemsField.vue +0 -15
  353. package/src/shared/navigation-style-settings/store/index.ts +5 -0
  354. package/src/shared/page-navigation/store/page-navigation-store.ts +4 -31
  355. package/src/shared/page-navigation/utils/nav-order-utils.ts +32 -0
  356. package/src/shared/side-bar/components/SideBar.vue +14 -1
  357. package/src/shared/side-bar/store/side-bar-store.ts +0 -20
  358. package/src/utils/build-asset-manifest.ts +153 -0
  359. package/src/utils/minify-brand-page-metadata.ts +362 -130
  360. package/lib/src/brand-page-maker/composables/ai-chat/useAiChat.js +0 -368
  361. package/lib/src/brand-page-maker/composables/ai-chat/useAiTextEditPrompts.d.ts +0 -18
  362. package/lib/src/brand-page-maker/composables/ai-chat/useAiTextEditPrompts.js +0 -144
  363. package/lib/src/brand-page-maker/stores/ai-thread/ai-thread-store.d.ts +0 -155
  364. package/lib/src/brand-page-maker/stores/ai-thread/ai-thread-store.js +0 -25
  365. package/lib/src/brand-page-maker/utils/mixpanel.util.d.ts +0 -1
  366. package/lib/src/brand-page-maker/utils/mixpanel.util.js +0 -29
  367. package/lib/src/bundled-translations-CNK7l6_v.js +0 -173
  368. package/lib/src/bundled-translations.de-DE-BLE4_y0H.js +0 -173
  369. package/lib/src/bundled-translations.es-ES-thO9osbg.js +0 -173
  370. package/lib/src/bundled-translations.fr-CA-BZkhiNgU.js +0 -173
  371. package/lib/src/bundled-translations.fr-FR-bhDLPKgZ.js +0 -173
  372. package/lib/src/bundled-translations.pt-BR-CI9a5Bq1.js +0 -173
  373. package/lib/src/bundled-translations.pt-PT-DBoErBaq.js +0 -173
  374. package/src/brand-page-maker/components/ai-text-edit/AiTextEdit.vue +0 -154
  375. package/src/brand-page-maker/composables/ai-chat/useAiChat.ts +0 -562
  376. package/src/brand-page-maker/composables/ai-chat/useAiTextEditPrompts.ts +0 -196
  377. package/src/brand-page-maker/stores/ai-thread/ai-thread-store.ts +0 -31
  378. package/src/brand-page-maker/utils/mixpanel.util.ts +0 -42
  379. package/src/shared/content-settings/components/generate-ai-button/GenerateAiButton.vue +0 -114
  380. package/src/shared/content-settings/components/generate-ai-modal/GenerateAiModal.vue +0 -761
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-33w_DBny.js";
2
+ import { _ as t } from "./lib-CSRUPpSo.js";
3
3
  const i = {}, h = {
4
4
  width: "275",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-33w_DBny.js";
2
+ import { _ as t } from "./lib-CSRUPpSo.js";
3
3
  const i = {}, h = {
4
4
  width: "251",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-33w_DBny.js";
2
+ import { _ as t } from "./lib-CSRUPpSo.js";
3
3
  const i = {}, h = {
4
4
  width: "250",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-33w_DBny.js";
2
+ import { _ as t } from "./lib-CSRUPpSo.js";
3
3
  const i = {}, h = {
4
4
  width: "237",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-33w_DBny.js";
2
+ import { _ as t } from "./lib-CSRUPpSo.js";
3
3
  const i = {}, h = {
4
4
  width: "237",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-33w_DBny.js";
2
+ import { _ as t } from "./lib-CSRUPpSo.js";
3
3
  const i = {}, h = {
4
4
  width: "263",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-33w_DBny.js";
2
+ import { _ as t } from "./lib-CSRUPpSo.js";
3
3
  const i = {}, h = {
4
4
  width: "263",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-33w_DBny.js";
2
+ import { _ as e } from "./lib-CSRUPpSo.js";
3
3
  const M = {}, Z = {
4
4
  width: "242",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-33w_DBny.js";
2
+ import { _ as e } from "./lib-CSRUPpSo.js";
3
3
  const i = {}, M = {
4
4
  width: "231",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-33w_DBny.js";
2
+ import { _ as e } from "./lib-CSRUPpSo.js";
3
3
  const M = {}, Z = {
4
4
  width: "230",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-33w_DBny.js";
2
+ import { _ as e } from "./lib-CSRUPpSo.js";
3
3
  const i = {}, l = {
4
4
  width: "216",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-33w_DBny.js";
2
+ import { _ as e } from "./lib-CSRUPpSo.js";
3
3
  const i = {}, l = {
4
4
  width: "216",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as M } from "./lib-33w_DBny.js";
2
+ import { _ as M } from "./lib-CSRUPpSo.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as M } from "./lib-33w_DBny.js";
2
+ import { _ as M } from "./lib-CSRUPpSo.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -102,14 +102,14 @@ export default defineComponent({
102
102
  images: {
103
103
  deep: true,
104
104
  handler(newImages) {
105
- this.carouselImages = cloneDeep(newImages);
105
+ this.carouselImages = cloneDeep(newImages).map(({ width, height, ...rest }) => rest);
106
106
  },
107
107
  },
108
108
  },
109
109
  created() {
110
110
  // FIXME - types for this were added on 6/6/24 and usage of cloneDeep here fails type check
111
111
  // @ts-ignore
112
- this.carouselImages = cloneDeep(this.images);
112
+ this.carouselImages = cloneDeep(this.images).map(({ width, height, ...rest }) => rest);
113
113
  },
114
114
  methods: {
115
115
  checkImageModalImageComplete() {
@@ -36,8 +36,6 @@ export interface AbTestResult {
36
36
  }
37
37
  export interface AbTest {
38
38
  bp_3926_freemium_watermark?: AbTestResult;
39
- bp_4572_ai_text_generation_post_purchase?: AbTestResult;
40
- bp_4964_ai_text_generation_improvement?: AbTestResult;
41
39
  bp_5245_ai_website_assistant?: AbTestResult;
42
40
  }
43
41
  export declare const MEDIA_SIZES: {
@@ -24,9 +24,7 @@ export const AB_TEST_FLAG = {
24
24
  };
25
25
  const AB_TEST_KEYS = {
26
26
  BP_3926_FREEMIUM_WATERMARK: 'bc-bp-3926-freemium-cta-in-website-editor',
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',
29
- BP_5245_AI_WEBSITE_ASSISTANT: 'bc-bp-5245-ai-website-assistant',
27
+ BP_5245_AI_WEBSITE_ASSISTANT: 'bc-bp-5245-ai-website-assistant-postpurchase',
30
28
  };
31
29
  export const MEDIA_SIZES = {
32
30
  size1x: 'size1x',
@@ -48,14 +46,6 @@ export const getAbTestResults = (abtestKeyValues) => {
48
46
  if (abtestKeyValues[AB_TEST_KEYS.BP_3926_FREEMIUM_WATERMARK]) {
49
47
  abTests.bp_3926_freemium_watermark = getValueType(AB_TEST_KEYS.BP_3926_FREEMIUM_WATERMARK, abtestKeyValues[AB_TEST_KEYS.BP_3926_FREEMIUM_WATERMARK]);
50
48
  }
51
- // AB Test for BP-4572 - AI Text Generation Post Purchase
52
- if (abtestKeyValues[AB_TEST_KEYS.BP_4572_AI_TEXT_GENERATION_POST_PURCHASE]) {
53
- 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]);
54
- }
55
- // AB Test for BP-4572 - AI Text Generation Improvement
56
- if (abtestKeyValues[AB_TEST_KEYS.BP_4964_AI_TEXT_GENERATION_IMPROVEMENT]) {
57
- 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]);
58
- }
59
49
  // AB Test for BP-5245 - AI Website Assistant
60
50
  if (abtestKeyValues[AB_TEST_KEYS.BP_5245_AI_WEBSITE_ASSISTANT]) {
61
51
  abTests.bp_5245_ai_website_assistant = getValueType(AB_TEST_KEYS.BP_5245_AI_WEBSITE_ASSISTANT, abtestKeyValues[AB_TEST_KEYS.BP_5245_AI_WEBSITE_ASSISTANT]);
@@ -90,6 +90,7 @@ export type TwitchContent = ButtonContent;
90
90
  export type TiktokContent = ButtonContent;
91
91
  export declare const ASPECT_RATIOS: {
92
92
  readonly Default: "";
93
+ readonly original: "";
93
94
  readonly '1:1': "1/1";
94
95
  readonly '16:9': "16/9";
95
96
  readonly '9:16': "9/16";
@@ -112,6 +112,7 @@ export class PageStyles {
112
112
  }
113
113
  export const ASPECT_RATIOS = {
114
114
  Default: '',
115
+ original: '',
115
116
  '1:1': '1/1',
116
117
  '16:9': '16/9',
117
118
  '9:16': '9/16',
@@ -63,12 +63,32 @@ export const getThemeByTextStyleAndLogoTheme = (textStyle, logoTheme) => {
63
63
  secondaryColor,
64
64
  };
65
65
  };
66
+ // RGB chroma threshold (0..1) below which a colour is treated as perceptually
67
+ // grayscale even when its HSL saturation is non-zero. Off-whites like #fffcfa
68
+ // report 100% HSL saturation but have ~2% chroma; applying that hue+saturation
69
+ // on top of a dark original fill in `getNewColorBasedOnTargetColorTheme`
70
+ // produces a saturated tint of the residual hue (e.g. #fffcfa → burnt-orange
71
+ // at low lightness) rather than the perceived "white".
72
+ const NEAR_GRAYSCALE_CHROMA_THRESHOLD = 0.05;
73
+ const isNearGrayscale = (color) => {
74
+ const [r, g, b] = color.rgb().array();
75
+ return ((Math.max(r, g, b) - Math.min(r, g, b)) / 255 <
76
+ NEAR_GRAYSCALE_CHROMA_THRESHOLD);
77
+ };
66
78
  export const getNewColorBasedOnTargetColorTheme = (originalColor, targetColor) => {
67
79
  try {
68
80
  const originalColorGrayScaled = Color(originalColor).grayscale().hsl();
69
- const targetHslColor = Color(targetColor)
70
- .hsl()
71
- .lightness(originalColorGrayScaled.lightness());
81
+ const targetColorObj = Color(targetColor);
82
+ // Snap saturation to 0 when the target is perceptually grayscale. Without
83
+ // this, multi-fill SVG recolour (callers in `shape-color-utils.ts`)
84
+ // injects the target's residual hue into the original's lightness layer,
85
+ // producing visible hue where the user "meant" white/black.
86
+ const targetHslColor = isNearGrayscale(targetColorObj)
87
+ ? targetColorObj
88
+ .hsl()
89
+ .saturationl(0)
90
+ .lightness(originalColorGrayScaled.lightness())
91
+ : targetColorObj.hsl().lightness(originalColorGrayScaled.lightness());
72
92
  return targetHslColor.rgb();
73
93
  }
74
94
  catch (e) {
@@ -4,7 +4,11 @@ declare global {
4
4
  Raygun: RaygunStatic;
5
5
  }
6
6
  }
7
+ interface RaygunOptions {
8
+ tags?: string[];
9
+ customData?: Record<string, unknown>;
10
+ }
7
11
  declare const _default: {
8
- safeSendRaygunError: (err: Error) => void;
12
+ safeSendRaygunError: (err: Error, options?: RaygunOptions) => void;
9
13
  };
10
14
  export default _default;
@@ -1,10 +1,15 @@
1
1
  export default {
2
- safeSendRaygunError: (err) => {
2
+ safeSendRaygunError: (err, options) => {
3
3
  if (typeof window?.Raygun?.send !== 'function') {
4
4
  return;
5
5
  }
6
6
  try {
7
- window.Raygun.send(err);
7
+ if (options) {
8
+ window.Raygun.send(err, options.customData, options.tags);
9
+ }
10
+ else {
11
+ window.Raygun.send(err);
12
+ }
8
13
  }
9
14
  catch (e) {
10
15
  console.error(e);
@@ -90,12 +90,11 @@ export const getColorReplacementsFromSvgStringServer = (svgString) => {
90
90
  };
91
91
  export const applyColorReplacementsToSvgString = (svgString, colorReplacements) => {
92
92
  const scopeId = `id-${uuid.v4()}`;
93
- const newSvg = modifySvgMetadata({
93
+ return modifySvgMetadata({
94
94
  svgString: svgString,
95
95
  replacementColors: colorReplacements,
96
96
  scopeId: scopeId,
97
97
  });
98
- return newSvg;
99
98
  };
100
99
  export const applyColorToSvgString = (svgString, color) => {
101
100
  const colorReplacements = getColorReplacementsFromSvgString(svgString);
@@ -723,7 +723,7 @@ export const mapToPageFooterViewModel = (pageFooter, pageStyles, useOldLogoRende
723
723
  copyrightText: pageFooter.copyrightText,
724
724
  copyrightStyle,
725
725
  displayStyle: pageFooter.displayStyle,
726
- iconStyle: Object.assign({ fill: pageStyles.textStyles?.style.color }, pageFooter.iconStyle),
726
+ iconStyle: { ...pageFooter.iconStyle },
727
727
  logo: mapToLogoViewModel(logoContent, logoStyles, useOldLogoRenderSize),
728
728
  socialLinks: pageFooter.socialLinks,
729
729
  textFontFamily: pageFooter.textFontFamily,
@@ -33,7 +33,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
33
33
  }>, {
34
34
  commonTr: (key: any) => any;
35
35
  currentNotificationMessage: import("vue").ComputedRef<false | {
36
- type: "success" | "warning" | "error";
36
+ type: "error" | "success" | "warning";
37
37
  label: string;
38
38
  description: string | false;
39
39
  }>;
@@ -205,8 +205,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
205
205
  setSelectedSettingsSection(payload: {
206
206
  sectionName?: string | undefined;
207
207
  }): void;
208
- setAiTextEditContext(payload: import("@shared/side-bar/store").AiTextEditContext): void;
209
- clearAiTextEditContext(): void;
210
208
  }>;
211
209
  userStore: import("pinia").Store<"brandPageMakerUser", import("@brand-page-maker/stores").UserState, {}, {
212
210
  setUserState(payload: {
@@ -286,20 +284,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
286
284
  isVariation: boolean;
287
285
  isExcluded: boolean;
288
286
  } | undefined;
289
- bp_4572_ai_text_generation_post_purchase?: {
290
- key: string;
291
- value: string;
292
- isControl: boolean;
293
- isVariation: boolean;
294
- isExcluded: boolean;
295
- } | undefined;
296
- bp_4964_ai_text_generation_improvement?: {
297
- key: string;
298
- value: string;
299
- isControl: boolean;
300
- isVariation: boolean;
301
- isExcluded: boolean;
302
- } | undefined;
303
287
  bp_5245_ai_website_assistant?: {
304
288
  key: string;
305
289
  value: string;
@@ -378,20 +362,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
378
362
  isVariation: boolean;
379
363
  isExcluded: boolean;
380
364
  } | undefined;
381
- bp_4572_ai_text_generation_post_purchase?: {
382
- key: string;
383
- value: string;
384
- isControl: boolean;
385
- isVariation: boolean;
386
- isExcluded: boolean;
387
- } | undefined;
388
- bp_4964_ai_text_generation_improvement?: {
389
- key: string;
390
- value: string;
391
- isControl: boolean;
392
- isVariation: boolean;
393
- isExcluded: boolean;
394
- } | undefined;
395
365
  bp_5245_ai_website_assistant?: {
396
366
  key: string;
397
367
  value: string;
@@ -53,7 +53,6 @@ export const userFeatures = {
53
53
  canUseGettyVideos: false,
54
54
  canUseGoogleAdsense: false,
55
55
  googleAdsenseEnabled: false,
56
- canUseAITextGenerator: true,
57
56
  };
58
57
  export const BRAND_PAGE = {
59
58
  styles: {
@@ -2027,7 +2026,6 @@ export const USER_FEATURES = Object.freeze({
2027
2026
  canUseGettyVideos: true,
2028
2027
  canUseGoogleAdsense: false,
2029
2028
  googleAdsenseEnabled: true,
2030
- canUseAITextGenerator: true,
2031
2029
  });
2032
2030
  export const INITIALISE_PAYLOAD = Object.freeze({
2033
2031
  brandPage: BRAND_PAGE,
@@ -715,20 +715,6 @@ declare const _default: import("vue").DefineComponent<{}, {
715
715
  isVariation: boolean;
716
716
  isExcluded: boolean;
717
717
  } | undefined;
718
- bp_4572_ai_text_generation_post_purchase?: {
719
- key: string;
720
- value: string;
721
- isControl: boolean;
722
- isVariation: boolean;
723
- isExcluded: boolean;
724
- } | undefined;
725
- bp_4964_ai_text_generation_improvement?: {
726
- key: string;
727
- value: string;
728
- isControl: boolean;
729
- isVariation: boolean;
730
- isExcluded: boolean;
731
- } | undefined;
732
718
  bp_5245_ai_website_assistant?: {
733
719
  key: string;
734
720
  value: string;
@@ -807,20 +793,6 @@ declare const _default: import("vue").DefineComponent<{}, {
807
793
  isVariation: boolean;
808
794
  isExcluded: boolean;
809
795
  } | undefined;
810
- bp_4572_ai_text_generation_post_purchase?: {
811
- key: string;
812
- value: string;
813
- isControl: boolean;
814
- isVariation: boolean;
815
- isExcluded: boolean;
816
- } | undefined;
817
- bp_4964_ai_text_generation_improvement?: {
818
- key: string;
819
- value: string;
820
- isControl: boolean;
821
- isVariation: boolean;
822
- isExcluded: boolean;
823
- } | undefined;
824
796
  bp_5245_ai_website_assistant?: {
825
797
  key: string;
826
798
  value: string;
@@ -997,8 +969,6 @@ declare const _default: import("vue").DefineComponent<{}, {
997
969
  setSelectedSettingsSection(payload: {
998
970
  sectionName?: string | undefined;
999
971
  }): void;
1000
- setAiTextEditContext(payload: import("@shared/side-bar/store").AiTextEditContext): void;
1001
- clearAiTextEditContext(): void;
1002
972
  }>;
1003
973
  pageSettingsStore: import("pinia").Store<"uiPageSettings", import("@shared/page-settings/store").PageSettingsState, {
1004
974
  getFirstOrDefaultPage(): import("@shared/page-settings/models").ContentPage;
@@ -1107,10 +1077,11 @@ declare const _default: import("vue").DefineComponent<{}, {
1107
1077
  sendTemplateSelectEvent: (templateId: string) => void;
1108
1078
  sendTemplateCategorySelectEvent: (category: string) => void;
1109
1079
  sendSidebarCategoryClickedEvent: (tabName: string) => void;
1080
+ sendAddContentEvent: (contentType: string, selectLocation?: string | undefined, contentCategory?: string | undefined, triggerType?: string) => void;
1081
+ sendRemoveContentEvent: (contentType: string, selectLocation?: string | undefined, contentCategory?: string | undefined, triggerType?: string) => void;
1110
1082
  sendAddContentContinuationEvent: (continuation: string) => void;
1111
1083
  sendUpsellOfferEvent: (upsellType: string) => void;
1112
1084
  sendUpsellOfferActionEvent: (upsellType: string, action: string) => void;
1113
- sendGenerateTextContinuationEvent: (cta_location: string, continuation: string | null) => void;
1114
1085
  sendAiSendPromptEvent: (ctaLocation: string) => void;
1115
1086
  sendAiStopGenerationEvent: (ctaLocation: string) => void;
1116
1087
  };
@@ -41,20 +41,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
41
41
  isVariation: boolean;
42
42
  isExcluded: boolean;
43
43
  } | undefined;
44
- bp_4572_ai_text_generation_post_purchase?: {
45
- key: string;
46
- value: string;
47
- isControl: boolean;
48
- isVariation: boolean;
49
- isExcluded: boolean;
50
- } | undefined;
51
- bp_4964_ai_text_generation_improvement?: {
52
- key: string;
53
- value: string;
54
- isControl: boolean;
55
- isVariation: boolean;
56
- isExcluded: boolean;
57
- } | undefined;
58
44
  bp_5245_ai_website_assistant?: {
59
45
  key: string;
60
46
  value: string;
@@ -76,20 +76,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
76
76
  isVariation: boolean;
77
77
  isExcluded: boolean;
78
78
  } | undefined;
79
- bp_4572_ai_text_generation_post_purchase?: {
80
- key: string;
81
- value: string;
82
- isControl: boolean;
83
- isVariation: boolean;
84
- isExcluded: boolean;
85
- } | undefined;
86
- bp_4964_ai_text_generation_improvement?: {
87
- key: string;
88
- value: string;
89
- isControl: boolean;
90
- isVariation: boolean;
91
- isExcluded: boolean;
92
- } | undefined;
93
79
  bp_5245_ai_website_assistant?: {
94
80
  key: string;
95
81
  value: string;
@@ -168,20 +154,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
168
154
  isVariation: boolean;
169
155
  isExcluded: boolean;
170
156
  } | undefined;
171
- bp_4572_ai_text_generation_post_purchase?: {
172
- key: string;
173
- value: string;
174
- isControl: boolean;
175
- isVariation: boolean;
176
- isExcluded: boolean;
177
- } | undefined;
178
- bp_4964_ai_text_generation_improvement?: {
179
- key: string;
180
- value: string;
181
- isControl: boolean;
182
- isVariation: boolean;
183
- isExcluded: boolean;
184
- } | undefined;
185
157
  bp_5245_ai_website_assistant?: {
186
158
  key: string;
187
159
  value: string;
@@ -92,20 +92,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
92
92
  isVariation: boolean;
93
93
  isExcluded: boolean;
94
94
  } | undefined;
95
- bp_4572_ai_text_generation_post_purchase?: {
96
- key: string;
97
- value: string;
98
- isControl: boolean;
99
- isVariation: boolean;
100
- isExcluded: boolean;
101
- } | undefined;
102
- bp_4964_ai_text_generation_improvement?: {
103
- key: string;
104
- value: string;
105
- isControl: boolean;
106
- isVariation: boolean;
107
- isExcluded: boolean;
108
- } | undefined;
109
95
  bp_5245_ai_website_assistant?: {
110
96
  key: string;
111
97
  value: string;
@@ -184,20 +170,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
184
170
  isVariation: boolean;
185
171
  isExcluded: boolean;
186
172
  } | undefined;
187
- bp_4572_ai_text_generation_post_purchase?: {
188
- key: string;
189
- value: string;
190
- isControl: boolean;
191
- isVariation: boolean;
192
- isExcluded: boolean;
193
- } | undefined;
194
- bp_4964_ai_text_generation_improvement?: {
195
- key: string;
196
- value: string;
197
- isControl: boolean;
198
- isVariation: boolean;
199
- isExcluded: boolean;
200
- } | undefined;
201
173
  bp_5245_ai_website_assistant?: {
202
174
  key: string;
203
175
  value: string;
@@ -97,20 +97,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
97
97
  isVariation: boolean;
98
98
  isExcluded: boolean;
99
99
  } | undefined;
100
- bp_4572_ai_text_generation_post_purchase?: {
101
- key: string;
102
- value: string;
103
- isControl: boolean;
104
- isVariation: boolean;
105
- isExcluded: boolean;
106
- } | undefined;
107
- bp_4964_ai_text_generation_improvement?: {
108
- key: string;
109
- value: string;
110
- isControl: boolean;
111
- isVariation: boolean;
112
- isExcluded: boolean;
113
- } | undefined;
114
100
  bp_5245_ai_website_assistant?: {
115
101
  key: string;
116
102
  value: string;
@@ -189,20 +175,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
189
175
  isVariation: boolean;
190
176
  isExcluded: boolean;
191
177
  } | undefined;
192
- bp_4572_ai_text_generation_post_purchase?: {
193
- key: string;
194
- value: string;
195
- isControl: boolean;
196
- isVariation: boolean;
197
- isExcluded: boolean;
198
- } | undefined;
199
- bp_4964_ai_text_generation_improvement?: {
200
- key: string;
201
- value: string;
202
- isControl: boolean;
203
- isVariation: boolean;
204
- isExcluded: boolean;
205
- } | undefined;
206
178
  bp_5245_ai_website_assistant?: {
207
179
  key: string;
208
180
  value: string;
@@ -73,20 +73,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
73
73
  isVariation: boolean;
74
74
  isExcluded: boolean;
75
75
  } | undefined;
76
- bp_4572_ai_text_generation_post_purchase?: {
77
- key: string;
78
- value: string;
79
- isControl: boolean;
80
- isVariation: boolean;
81
- isExcluded: boolean;
82
- } | undefined;
83
- bp_4964_ai_text_generation_improvement?: {
84
- key: string;
85
- value: string;
86
- isControl: boolean;
87
- isVariation: boolean;
88
- isExcluded: boolean;
89
- } | undefined;
90
76
  bp_5245_ai_website_assistant?: {
91
77
  key: string;
92
78
  value: string;
@@ -165,20 +151,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
165
151
  isVariation: boolean;
166
152
  isExcluded: boolean;
167
153
  } | undefined;
168
- bp_4572_ai_text_generation_post_purchase?: {
169
- key: string;
170
- value: string;
171
- isControl: boolean;
172
- isVariation: boolean;
173
- isExcluded: boolean;
174
- } | undefined;
175
- bp_4964_ai_text_generation_improvement?: {
176
- key: string;
177
- value: string;
178
- isControl: boolean;
179
- isVariation: boolean;
180
- isExcluded: boolean;
181
- } | undefined;
182
154
  bp_5245_ai_website_assistant?: {
183
155
  key: string;
184
156
  value: string;