@designcrowd/library.brand-page 5.17.5-divider-kp-1 → 5.17.5

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 (187) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-Cn74K3Ju.js → CreatedOnBrandCrowd-de-de-Cpnqtpzv.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-DoM6RQ4V.js → CreatedOnBrandCrowd-en-us-C13SObir.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-CgYpVZrB.js → CreatedOnBrandCrowd-es-es-B5VwaU9q.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-BO_Bf2nz.js → CreatedOnBrandCrowd-fr-ca-Cr7eKKqj.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-BO_Bf2nz.js → CreatedOnBrandCrowd-fr-fr-Cr7eKKqj.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-agofYfY5.js → CreatedOnBrandCrowd-pt-br-DhSgDPQ8.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-agofYfY5.js → CreatedOnBrandCrowd-pt-pt-DhSgDPQ8.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-97prFMNR.js → CreatedOnDcom-de-de-BNI8f-n_.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-BCb-XzLm.js → CreatedOnDcom-en-us-BwaGdHTG.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-DNwkGJwk.js → CreatedOnDcom-es-es-CariHyO8.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-DtVZYTvY.js → CreatedOnDcom-fr-ca-BxuMjByN.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-kf4B18fh.js → CreatedOnDcom-fr-fr-NYGNCCIG.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-CBc9n8gv.js → CreatedOnDcom-pt-br-BQ0xFPwF.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-BFdEA1tX.js → CreatedOnDcom-pt-pt-Bn6xEs1M.js} +1 -1
  15. package/lib/src/brand-page/constants/font.constants.d.ts +1 -1
  16. package/lib/src/brand-page/constants/font.constants.js +1 -1
  17. package/lib/src/brand-page/models/brand-page-context.model.d.ts +1 -2
  18. package/lib/src/brand-page/models/brand-page-context.model.js +0 -5
  19. package/lib/src/brand-page/models/index.d.ts +0 -1
  20. package/lib/src/brand-page/utils/personalisation.util.js +47 -56
  21. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +2 -62
  22. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.js +0 -1
  23. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +2 -60
  24. package/lib/src/brand-page-maker/components/preview/Preview.mixin.d.ts +1 -30
  25. package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.d.ts +2 -60
  26. package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +2 -60
  27. package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +2 -60
  28. package/lib/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.d.ts +2 -60
  29. package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +4 -60
  30. package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.js +11 -7
  31. package/lib/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.d.ts +2 -60
  32. package/lib/src/brand-page-maker/composables/ai-chat/useAiChat.d.ts +0 -1
  33. package/lib/src/brand-page-maker/composables/ai-chat/useAiChat.js +7 -16
  34. package/lib/src/brand-page-maker/composables/ai-chat/useAiMetadataBuilder.d.ts +1 -1
  35. package/lib/src/brand-page-maker/composables/ai-chat/useAiMetadataBuilder.js +6 -6
  36. package/lib/src/brand-page-maker/constants/sidebar-constant.d.ts +0 -1
  37. package/lib/src/brand-page-maker/constants/sidebar-constant.js +0 -8
  38. package/lib/src/brand-page-maker/stores/ai-thread/ai-thread-store.d.ts +0 -12
  39. package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.d.ts +3 -62
  40. package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +0 -2
  41. package/lib/src/brand-page-maker/stores/index.d.ts +0 -1
  42. package/lib/src/brand-page-maker/stores/index.js +0 -1
  43. package/lib/src/brand-page-maker/stores/snapshot/snapshot-store.d.ts +0 -2
  44. package/lib/src/brand-page-maker/stores/snapshot/snapshot-store.js +0 -9
  45. package/lib/src/clients/ai-assistant-client.d.ts +0 -9
  46. package/lib/src/clients/ai-assistant-client.js +1 -11
  47. package/lib/src/composables/useSnapshot.js +0 -33
  48. package/lib/src/css/library.brand-page-brandCrowd.min.css +48 -61
  49. package/lib/src/css/library.brand-page-brandPage.min.css +48 -61
  50. package/lib/src/css/library.brand-page-designCom.min.css +48 -61
  51. package/lib/src/css/library.brand-page-preview.min.css +48 -61
  52. package/lib/src/index.d.ts +0 -1
  53. package/lib/src/index.mjs +41 -42
  54. package/lib/src/{lib-sExH3j2j.js → lib-CIZEL8xo.js} +25088 -27158
  55. package/lib/src/lib.js +0 -1
  56. package/lib/src/metadata-builder/ai-metadata-executor.d.ts +1 -1
  57. package/lib/src/metadata-builder/ai-metadata-executor.js +7 -69
  58. package/lib/src/metadata-builder/helpers/rte.helpers.d.ts +0 -6
  59. package/lib/src/metadata-builder/helpers/rte.helpers.js +1 -16
  60. package/lib/src/metadata-builder/logger.d.ts +3 -3
  61. package/lib/src/metadata-builder/logger.js +4 -14
  62. package/lib/src/metadata-builder/metadata-executor.js +1 -69
  63. package/lib/src/metadata-builder/models.d.ts +0 -52
  64. package/lib/src/metadata-builder/models.js +0 -56
  65. package/lib/src/metadata-builder/parsers/ai-toolcall-parser.d.ts +3 -51
  66. package/lib/src/metadata-builder/parsers/ai-toolcall-parser.js +13 -110
  67. package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +2 -60
  68. package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +2 -60
  69. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +2 -60
  70. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +2 -60
  71. package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +3 -90
  72. package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +2 -61
  73. package/lib/src/shared/side-bar/components/SideBar.mixin.js +0 -6
  74. package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +2 -60
  75. package/package.json +1 -1
  76. package/src/brand-page/components/about-section/AboutSection.vue +6 -0
  77. package/src/brand-page/constants/font.constants.ts +1 -1
  78. package/src/brand-page/models/brand-page-context.model.ts +3 -12
  79. package/src/brand-page/models/index.ts +0 -1
  80. package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +16 -16
  81. package/src/brand-page/utils/__snapshots__/migration2.util.test.ts.snap +1 -1
  82. package/src/brand-page/utils/__snapshots__/model.util.test.ts.snap +2 -2
  83. package/src/brand-page/utils/personalisation.util.test.ts +0 -334
  84. package/src/brand-page/utils/personalisation.util.ts +68 -94
  85. package/src/brand-page-maker/components/ai-text-edit/TextBubble.vue +31 -58
  86. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.ts +0 -4
  87. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.vue +2 -14
  88. package/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.ts +16 -6
  89. package/src/brand-page-maker/composables/ai-chat/useAiChat.ts +10 -22
  90. package/src/brand-page-maker/composables/ai-chat/useAiMetadataBuilder.ts +6 -6
  91. package/src/brand-page-maker/constants/sidebar-constant.ts +0 -8
  92. package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.ts +1 -3
  93. package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +0 -4
  94. package/src/brand-page-maker/stores/index.ts +0 -1
  95. package/src/brand-page-maker/stores/snapshot/snapshot-store.ts +0 -12
  96. package/src/clients/ai-assistant-client.ts +1 -18
  97. package/src/composables/useSnapshot.ts +0 -47
  98. package/src/lib.ts +0 -4
  99. package/src/metadata-builder/ai-metadata-executor.ts +26 -118
  100. package/src/metadata-builder/helpers/rte.helpers.ts +1 -23
  101. package/src/metadata-builder/logger.ts +8 -20
  102. package/src/metadata-builder/metadata-executor.ts +4 -93
  103. package/src/metadata-builder/models.ts +0 -60
  104. package/src/metadata-builder/parsers/ai-toolcall-parser.ts +17 -141
  105. package/src/shared/side-bar/components/SideBar.mixin.ts +0 -10
  106. package/lib/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.d.ts +0 -2
  107. package/lib/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.js +0 -275
  108. package/lib/src/brand-page-maker/stores/ai-thread/ai-website-builder-thread-store.d.ts +0 -22
  109. package/lib/src/brand-page-maker/stores/ai-thread/ai-website-builder-thread-store.js +0 -18
  110. package/lib/src/metadata-builder/builders/add-page-builder.d.ts +0 -14
  111. package/lib/src/metadata-builder/builders/add-page-builder.js +0 -66
  112. package/lib/src/metadata-builder/builders/remove-page-builder.d.ts +0 -13
  113. package/lib/src/metadata-builder/builders/remove-page-builder.js +0 -50
  114. package/lib/src/metadata-builder/builders/section-builders/about-section-builder.d.ts +0 -6
  115. package/lib/src/metadata-builder/builders/section-builders/about-section-builder.js +0 -24
  116. package/lib/src/metadata-builder/builders/section-builders/banner-section-builder.d.ts +0 -6
  117. package/lib/src/metadata-builder/builders/section-builders/banner-section-builder.js +0 -32
  118. package/lib/src/metadata-builder/builders/section-builders/base-section-builder.d.ts +0 -43
  119. package/lib/src/metadata-builder/builders/section-builders/base-section-builder.js +0 -143
  120. package/lib/src/metadata-builder/builders/section-builders/button-section-builder.d.ts +0 -6
  121. package/lib/src/metadata-builder/builders/section-builders/button-section-builder.js +0 -16
  122. package/lib/src/metadata-builder/builders/section-builders/contact-form-builder.d.ts +0 -6
  123. package/lib/src/metadata-builder/builders/section-builders/contact-form-builder.js +0 -33
  124. package/lib/src/metadata-builder/builders/section-builders/delete-section-builder.d.ts +0 -13
  125. package/lib/src/metadata-builder/builders/section-builders/delete-section-builder.js +0 -37
  126. package/lib/src/metadata-builder/builders/section-builders/divider-section-builder.d.ts +0 -6
  127. package/lib/src/metadata-builder/builders/section-builders/divider-section-builder.js +0 -23
  128. package/lib/src/metadata-builder/builders/section-builders/image-gallery-builder.d.ts +0 -6
  129. package/lib/src/metadata-builder/builders/section-builders/image-gallery-builder.js +0 -76
  130. package/lib/src/metadata-builder/builders/section-builders/images-section-builder.d.ts +0 -6
  131. package/lib/src/metadata-builder/builders/section-builders/images-section-builder.js +0 -163
  132. package/lib/src/metadata-builder/builders/section-builders/index.d.ts +0 -16
  133. package/lib/src/metadata-builder/builders/section-builders/index.js +0 -16
  134. package/lib/src/metadata-builder/builders/section-builders/mailing-list-builder.d.ts +0 -6
  135. package/lib/src/metadata-builder/builders/section-builders/mailing-list-builder.js +0 -17
  136. package/lib/src/metadata-builder/builders/section-builders/mailing-list-section-builder.d.ts +0 -6
  137. package/lib/src/metadata-builder/builders/section-builders/mailing-list-section-builder.js +0 -16
  138. package/lib/src/metadata-builder/builders/section-builders/move-section-builder.d.ts +0 -15
  139. package/lib/src/metadata-builder/builders/section-builders/move-section-builder.js +0 -62
  140. package/lib/src/metadata-builder/builders/section-builders/profile-section-builder.d.ts +0 -6
  141. package/lib/src/metadata-builder/builders/section-builders/profile-section-builder.js +0 -23
  142. package/lib/src/metadata-builder/builders/section-builders/shapes-section-builder.d.ts +0 -6
  143. package/lib/src/metadata-builder/builders/section-builders/shapes-section-builder.js +0 -162
  144. package/lib/src/metadata-builder/builders/section-builders/social-links-builder.d.ts +0 -6
  145. package/lib/src/metadata-builder/builders/section-builders/social-links-builder.js +0 -50
  146. package/lib/src/metadata-builder/builders/section-builders/testimonial-section-builder.d.ts +0 -6
  147. package/lib/src/metadata-builder/builders/section-builders/testimonial-section-builder.js +0 -133
  148. package/lib/src/metadata-builder/builders/section-builders/text-section-builder.d.ts +0 -6
  149. package/lib/src/metadata-builder/builders/section-builders/text-section-builder.js +0 -160
  150. package/lib/src/metadata-builder/builders/section-content-factory.d.ts +0 -3
  151. package/lib/src/metadata-builder/builders/section-content-factory.js +0 -13
  152. package/lib/src/metadata-builder/builders/section-field-maps.d.ts +0 -12
  153. package/lib/src/metadata-builder/builders/section-field-maps.js +0 -181
  154. package/lib/src/metadata-builder/builders/section-field-utils.d.ts +0 -11
  155. package/lib/src/metadata-builder/builders/section-field-utils.js +0 -109
  156. package/lib/src/metadata-builder/parsers/section-tool-arguments.d.ts +0 -295
  157. package/lib/src/metadata-builder/parsers/section-tool-arguments.js +0 -7
  158. package/lib/src/utils/minify-brand-page-metadata.d.ts +0 -23
  159. package/lib/src/utils/minify-brand-page-metadata.js +0 -346
  160. package/src/brand-page-maker/components/ai-website-builder/AiWebsiteBuilder.vue +0 -79
  161. package/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.ts +0 -382
  162. package/src/brand-page-maker/stores/ai-thread/ai-website-builder-thread-store.ts +0 -23
  163. package/src/metadata-builder/builders/add-page-builder.ts +0 -98
  164. package/src/metadata-builder/builders/remove-page-builder.ts +0 -83
  165. package/src/metadata-builder/builders/section-builders/about-section-builder.ts +0 -38
  166. package/src/metadata-builder/builders/section-builders/banner-section-builder.ts +0 -54
  167. package/src/metadata-builder/builders/section-builders/base-section-builder.ts +0 -212
  168. package/src/metadata-builder/builders/section-builders/button-section-builder.ts +0 -24
  169. package/src/metadata-builder/builders/section-builders/contact-form-builder.ts +0 -50
  170. package/src/metadata-builder/builders/section-builders/delete-section-builder.ts +0 -63
  171. package/src/metadata-builder/builders/section-builders/divider-section-builder.ts +0 -37
  172. package/src/metadata-builder/builders/section-builders/image-gallery-builder.ts +0 -111
  173. package/src/metadata-builder/builders/section-builders/images-section-builder.ts +0 -229
  174. package/src/metadata-builder/builders/section-builders/index.ts +0 -20
  175. package/src/metadata-builder/builders/section-builders/mailing-list-builder.ts +0 -29
  176. package/src/metadata-builder/builders/section-builders/mailing-list-section-builder.ts +0 -27
  177. package/src/metadata-builder/builders/section-builders/move-section-builder.ts +0 -100
  178. package/src/metadata-builder/builders/section-builders/profile-section-builder.ts +0 -37
  179. package/src/metadata-builder/builders/section-builders/shapes-section-builder.ts +0 -231
  180. package/src/metadata-builder/builders/section-builders/social-links-builder.ts +0 -79
  181. package/src/metadata-builder/builders/section-builders/testimonial-section-builder.ts +0 -194
  182. package/src/metadata-builder/builders/section-builders/text-section-builder.ts +0 -241
  183. package/src/metadata-builder/builders/section-content-factory.ts +0 -20
  184. package/src/metadata-builder/builders/section-field-maps.ts +0 -236
  185. package/src/metadata-builder/builders/section-field-utils.ts +0 -157
  186. package/src/metadata-builder/parsers/section-tool-arguments.ts +0 -427
  187. package/src/utils/minify-brand-page-metadata.ts +0 -411
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-sExH3j2j.js";
2
+ import { _ as t } from "./lib-CIZEL8xo.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-sExH3j2j.js";
2
+ import { _ as t } from "./lib-CIZEL8xo.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-sExH3j2j.js";
2
+ import { _ as t } from "./lib-CIZEL8xo.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-sExH3j2j.js";
2
+ import { _ as t } from "./lib-CIZEL8xo.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-sExH3j2j.js";
2
+ import { _ as t } from "./lib-CIZEL8xo.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-sExH3j2j.js";
2
+ import { _ as t } from "./lib-CIZEL8xo.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-sExH3j2j.js";
2
+ import { _ as t } from "./lib-CIZEL8xo.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-sExH3j2j.js";
2
+ import { _ as e } from "./lib-CIZEL8xo.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-sExH3j2j.js";
2
+ import { _ as e } from "./lib-CIZEL8xo.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-sExH3j2j.js";
2
+ import { _ as e } from "./lib-CIZEL8xo.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-sExH3j2j.js";
2
+ import { _ as e } from "./lib-CIZEL8xo.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-sExH3j2j.js";
2
+ import { _ as e } from "./lib-CIZEL8xo.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-sExH3j2j.js";
2
+ import { _ as M } from "./lib-CIZEL8xo.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-sExH3j2j.js";
2
+ import { _ as M } from "./lib-CIZEL8xo.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -10,7 +10,7 @@ export declare const FONT_SIZE_BODY = "1rem";
10
10
  export declare const FONT_SIZE_PROFILE_NAME = "1.5rem";
11
11
  export declare const FONT_WEIGHT_PROFILE_NAME = "800";
12
12
  export declare const FONT_WEIGHT_NORMAL = "normal";
13
- export declare const LINE_HEIGHT_TITLE = "1.3";
13
+ export declare const LINE_HEIGHT_TITLE = "1.1";
14
14
  export declare const LINE_HEIGHT_HEADINGS = "1.4";
15
15
  export declare const LINE_HEIGHT_BODY = "1.5";
16
16
  export declare const DEFAULT_FONT_SIZE = 12;
@@ -11,7 +11,7 @@ export const FONT_SIZE_BODY = '1rem';
11
11
  export const FONT_SIZE_PROFILE_NAME = '1.5rem';
12
12
  export const FONT_WEIGHT_PROFILE_NAME = '800';
13
13
  export const FONT_WEIGHT_NORMAL = 'normal';
14
- export const LINE_HEIGHT_TITLE = '1.3';
14
+ export const LINE_HEIGHT_TITLE = '1.1';
15
15
  export const LINE_HEIGHT_HEADINGS = '1.4';
16
16
  export const LINE_HEIGHT_BODY = '1.5';
17
17
  export const DEFAULT_FONT_SIZE = 12;
@@ -38,7 +38,6 @@ export interface AbTest {
38
38
  bp_3926_freemium_watermark?: AbTestResult;
39
39
  bp_4572_ai_text_generation_post_purchase?: AbTestResult;
40
40
  bp_4964_ai_text_generation_improvement?: AbTestResult;
41
- bp_5245_ai_website_assistant?: AbTestResult;
42
41
  }
43
42
  export declare const MEDIA_SIZES: {
44
43
  readonly size1x: "size1x";
@@ -84,4 +83,4 @@ export interface BrandPageContext {
84
83
  disableLogoRenderOnServerside?: boolean;
85
84
  }
86
85
  export declare const getValueType: (key: string, abtestValue?: string) => AbTestResult;
87
- export declare const getAbTestResults: (abtestKeyValues: AbTest) => AbTest;
86
+ export declare const getAbTestResults: (abtestKeyValues: Record<string, string>) => AbTest;
@@ -26,7 +26,6 @@ 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
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',
30
29
  };
31
30
  export const MEDIA_SIZES = {
32
31
  size1x: 'size1x',
@@ -56,9 +55,5 @@ export const getAbTestResults = (abtestKeyValues) => {
56
55
  if (abtestKeyValues[AB_TEST_KEYS.BP_4964_AI_TEXT_GENERATION_IMPROVEMENT]) {
57
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]);
58
57
  }
59
- // AB Test for BP-5245 - AI Website Assistant
60
- if (abtestKeyValues[AB_TEST_KEYS.BP_5245_AI_WEBSITE_ASSISTANT]) {
61
- abTests.bp_5245_ai_website_assistant = getValueType(AB_TEST_KEYS.BP_5245_AI_WEBSITE_ASSISTANT, abtestKeyValues[AB_TEST_KEYS.BP_5245_AI_WEBSITE_ASSISTANT]);
62
- }
63
58
  return abTests;
64
59
  };
@@ -297,7 +297,6 @@ export interface TextMediaItem extends ImageItem {
297
297
  }
298
298
  export interface TextShapeItem extends TextMediaItem {
299
299
  colorReplacements: ColorReplacement[];
300
- keepColor?: boolean;
301
300
  aspectRatio?: number | null;
302
301
  }
303
302
  export interface ShapeItem extends ImageItem {
@@ -27,61 +27,10 @@ export const getModifiedPersonalisationPropertyKeyBasedOnCondition = (property,
27
27
  }
28
28
  return newProperty;
29
29
  };
30
- /**
31
- * Resolves the URL from a shape object, handling both camelCase (`url`)
32
- * and PascalCase (`Url`) property names that may come from different
33
- * personalisation data sources. Returns undefined if the URL is missing
34
- * or not a valid absolute URL.
35
- */
36
- const resolveShapeUrl = (shape) => {
37
- const url = shape?.url ?? shape?.Url;
38
- if (!url)
39
- return undefined;
40
- try {
41
- new URL(url);
42
- return url;
43
- }
44
- catch {
45
- return undefined;
46
- }
47
- };
48
- const fetchShapeColorReplacementsAsync = async (shapeUrl) => {
49
- try {
50
- const svgResponse = await (await fetch(shapeUrl)).text();
51
- return typeof DOMParser !== 'undefined'
52
- ? getColorReplacementsFromSvgString(svgResponse)
53
- : getColorReplacementsFromSvgStringServer(svgResponse);
54
- }
55
- catch (e) {
56
- console.error(`Failed to fetch or parse shape SVG for color replacements: ${shapeUrl}`, e);
57
- return [];
58
- }
59
- };
60
- const resolveShapeWithColorReplacementsAsync = async (shape, section) => {
61
- const shapeUrl = resolveShapeUrl(shape);
62
- if (!shapeUrl) {
63
- return { value: undefined, section };
64
- }
65
- const colorReplacements = await fetchShapeColorReplacementsAsync(shapeUrl);
66
- return {
67
- value: shapeUrl,
68
- section: {
69
- ...section,
70
- shapeIndex: section.shapeIndex + 1,
71
- },
72
- valuesToUpdate: {
73
- colorReplacements,
74
- },
75
- };
76
- };
77
30
  const getPersonalisationValueAsync = async (section, property) => {
78
31
  const propertyValue = section[property];
79
32
  if ((property === 'imageUrls' && section.imageUrls?.length === 0) ||
80
- (property === 'shapes' &&
81
- section.shapes?.length === 0 &&
82
- !section.mainShapesCollection?.tall?.length &&
83
- !section.mainShapesCollection?.square?.length &&
84
- !section.mainShapesCollection?.wide?.length)) {
33
+ (property === 'shapes' && section.shapes?.length === 0)) {
85
34
  return { value: undefined, section };
86
35
  }
87
36
  if (section.items?.length === 0 &&
@@ -159,15 +108,57 @@ const getPersonalisationValueAsync = async (section, property) => {
159
108
  ].find((x) => x.count > 0);
160
109
  if (shapesWithRatio) {
161
110
  const aspectRatioCategory = shapesWithRatio.type;
162
- const shapesForCategory = section.mainShapesCollection[aspectRatioCategory];
163
- return await resolveShapeWithColorReplacementsAsync(shapesForCategory[section.shapeIndex % shapesForCategory.length], section);
111
+ const shapeUrl = propertyValue[section.shapeIndex %
112
+ section.mainShapesCollection[aspectRatioCategory].length].url;
113
+ const svgResponse = await (await fetch(shapeUrl)).text();
114
+ const colorReplacements = typeof DOMParser !== 'undefined'
115
+ ? getColorReplacementsFromSvgString(svgResponse)
116
+ : getColorReplacementsFromSvgStringServer(svgResponse);
117
+ return {
118
+ value: shapeUrl,
119
+ section: {
120
+ ...section,
121
+ shapeIndex: section.shapeIndex + 1,
122
+ },
123
+ valuesToUpdate: {
124
+ colorReplacements,
125
+ },
126
+ };
164
127
  }
165
128
  else if (section.shapes) {
166
- return await resolveShapeWithColorReplacementsAsync(propertyValue[section.shapeIndex % section.shapes.length], section);
129
+ const shapeUrl = propertyValue[section.shapeIndex % section.shapes.length].url;
130
+ const svgResponse = await (await fetch(shapeUrl)).text();
131
+ const colorReplacements = typeof DOMParser !== 'undefined'
132
+ ? getColorReplacementsFromSvgString(svgResponse)
133
+ : getColorReplacementsFromSvgStringServer(svgResponse);
134
+ return {
135
+ value: shapeUrl,
136
+ section: {
137
+ ...section,
138
+ shapeIndex: section.shapeIndex + 1,
139
+ },
140
+ valuesToUpdate: {
141
+ colorReplacements,
142
+ },
143
+ };
167
144
  }
168
145
  }
169
146
  else if (section.shapes) {
170
- return await resolveShapeWithColorReplacementsAsync(propertyValue[section.shapeIndex % section.shapes.length], section);
147
+ const shapeUrl = propertyValue[section.shapeIndex % section.shapes.length].url;
148
+ const svgResponse = await (await fetch(shapeUrl)).text();
149
+ const colorReplacements = typeof DOMParser !== 'undefined'
150
+ ? getColorReplacementsFromSvgString(svgResponse)
151
+ : getColorReplacementsFromSvgStringServer(svgResponse);
152
+ return {
153
+ value: shapeUrl,
154
+ section: {
155
+ ...section,
156
+ shapeIndex: section.shapeIndex + 1,
157
+ },
158
+ valuesToUpdate: {
159
+ colorReplacements,
160
+ },
161
+ };
171
162
  }
172
163
  break;
173
164
  case 'itemTitle':
@@ -276,36 +276,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
276
276
  eventButtonLocation?: string | undefined;
277
277
  websiteUpsellModalViewModel?: any;
278
278
  showPublishOptionModal?: boolean | undefined;
279
- abTests: {
280
- bp_3926_freemium_watermark?: {
281
- key: string;
282
- value: string;
283
- isControl: boolean;
284
- isVariation: boolean;
285
- isExcluded: boolean;
286
- } | undefined;
287
- bp_4572_ai_text_generation_post_purchase?: {
288
- key: string;
289
- value: string;
290
- isControl: boolean;
291
- isVariation: boolean;
292
- isExcluded: boolean;
293
- } | undefined;
294
- bp_4964_ai_text_generation_improvement?: {
295
- key: string;
296
- value: string;
297
- isControl: boolean;
298
- isVariation: boolean;
299
- isExcluded: boolean;
300
- } | undefined;
301
- bp_5245_ai_website_assistant?: {
302
- key: string;
303
- value: string;
304
- isControl: boolean;
305
- isVariation: boolean;
306
- isExcluded: boolean;
307
- } | undefined;
308
- };
279
+ abTests: Record<string, string>;
309
280
  isSubsequentPublish: boolean;
310
281
  isContextualUpgradeModalVisible: boolean;
311
282
  contextualUpgradeType: string | number | symbol | undefined;
@@ -367,36 +338,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
367
338
  eventButtonLocation?: string | undefined;
368
339
  websiteUpsellModalViewModel?: any;
369
340
  showPublishOptionModal?: boolean | undefined;
370
- abTests: {
371
- bp_3926_freemium_watermark?: {
372
- key: string;
373
- value: string;
374
- isControl: boolean;
375
- isVariation: boolean;
376
- isExcluded: boolean;
377
- } | undefined;
378
- bp_4572_ai_text_generation_post_purchase?: {
379
- key: string;
380
- value: string;
381
- isControl: boolean;
382
- isVariation: boolean;
383
- isExcluded: boolean;
384
- } | undefined;
385
- bp_4964_ai_text_generation_improvement?: {
386
- key: string;
387
- value: string;
388
- isControl: boolean;
389
- isVariation: boolean;
390
- isExcluded: boolean;
391
- } | undefined;
392
- bp_5245_ai_website_assistant?: {
393
- key: string;
394
- value: string;
395
- isControl: boolean;
396
- isVariation: boolean;
397
- isExcluded: boolean;
398
- } | undefined;
399
- };
341
+ abTests: Record<string, string>;
400
342
  isSubsequentPublish: boolean;
401
343
  isContextualUpgradeModalVisible: boolean;
402
344
  contextualUpgradeType: string | number | symbol | undefined;
@@ -1241,8 +1183,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1241
1183
  setBase64Snapshot(base64: string | null): void;
1242
1184
  setIsCapturing(isCapturing: boolean): void;
1243
1185
  clearSnapshot(): void;
1244
- registerCaptureCallback(callback: () => Promise<void>): void;
1245
- refreshSnapshotAsync(): Promise<void>;
1246
1186
  }>;
1247
1187
  captureSnapshot: (element: HTMLElement | null) => Promise<string | null>;
1248
1188
  videoStore: import("pinia").Store<"video", import("@brand-page-maker/stores").videoStoreState, {
@@ -200,7 +200,6 @@ export default defineComponent({
200
200
  document.body.classList.remove('sb-main-padded');
201
201
  }
202
202
  fontLoaderUtil.loadAllFonts();
203
- this.snapshotStore.registerCaptureCallback(() => this.handleCaptureSnapshot());
204
203
  this.setUiScreenSizeModeBasedOnDeviceWidth();
205
204
  if (this.isBrandPageOrIsBrandContact) {
206
205
  this.brandPageMakerStore.setViewport({ viewport: VIEWPORTS.mobile });
@@ -706,36 +706,7 @@ declare const _default: import("vue").DefineComponent<{}, {
706
706
  eventButtonLocation?: string | undefined;
707
707
  websiteUpsellModalViewModel?: any;
708
708
  showPublishOptionModal?: boolean | undefined;
709
- abTests: {
710
- bp_3926_freemium_watermark?: {
711
- key: string;
712
- value: string;
713
- isControl: boolean;
714
- isVariation: boolean;
715
- isExcluded: boolean;
716
- } | undefined;
717
- bp_4572_ai_text_generation_post_purchase?: {
718
- key: string;
719
- value: string;
720
- isControl: boolean;
721
- isVariation: boolean;
722
- isExcluded: boolean;
723
- } | undefined;
724
- bp_4964_ai_text_generation_improvement?: {
725
- key: string;
726
- value: string;
727
- isControl: boolean;
728
- isVariation: boolean;
729
- isExcluded: boolean;
730
- } | undefined;
731
- bp_5245_ai_website_assistant?: {
732
- key: string;
733
- value: string;
734
- isControl: boolean;
735
- isVariation: boolean;
736
- isExcluded: boolean;
737
- } | undefined;
738
- };
709
+ abTests: Record<string, string>;
739
710
  isSubsequentPublish: boolean;
740
711
  isContextualUpgradeModalVisible: boolean;
741
712
  contextualUpgradeType: string | number | symbol | undefined;
@@ -797,36 +768,7 @@ declare const _default: import("vue").DefineComponent<{}, {
797
768
  eventButtonLocation?: string | undefined;
798
769
  websiteUpsellModalViewModel?: any;
799
770
  showPublishOptionModal?: boolean | undefined;
800
- abTests: {
801
- bp_3926_freemium_watermark?: {
802
- key: string;
803
- value: string;
804
- isControl: boolean;
805
- isVariation: boolean;
806
- isExcluded: boolean;
807
- } | undefined;
808
- bp_4572_ai_text_generation_post_purchase?: {
809
- key: string;
810
- value: string;
811
- isControl: boolean;
812
- isVariation: boolean;
813
- isExcluded: boolean;
814
- } | undefined;
815
- bp_4964_ai_text_generation_improvement?: {
816
- key: string;
817
- value: string;
818
- isControl: boolean;
819
- isVariation: boolean;
820
- isExcluded: boolean;
821
- } | undefined;
822
- bp_5245_ai_website_assistant?: {
823
- key: string;
824
- value: string;
825
- isControl: boolean;
826
- isVariation: boolean;
827
- isExcluded: boolean;
828
- } | undefined;
829
- };
771
+ abTests: Record<string, string>;
830
772
  isSubsequentPublish: boolean;
831
773
  isContextualUpgradeModalVisible: boolean;
832
774
  contextualUpgradeType: string | number | symbol | undefined;
@@ -33,36 +33,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
33
33
  isInitialising: import("vue").ComputedRef<boolean>;
34
34
  shouldPlayVideos: import("vue").ComputedRef<boolean>;
35
35
  viewport: import("@brand-page").ViewportsType;
36
- abTests: {
37
- bp_3926_freemium_watermark?: {
38
- key: string;
39
- value: string;
40
- isControl: boolean;
41
- isVariation: boolean;
42
- isExcluded: boolean;
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
- bp_5245_ai_website_assistant?: {
59
- key: string;
60
- value: string;
61
- isControl: boolean;
62
- isVariation: boolean;
63
- isExcluded: boolean;
64
- } | undefined;
65
- };
36
+ abTests: Record<string, string>;
66
37
  }, {
67
38
  containerClientHeight: number | undefined;
68
39
  containerClientWidth: number | undefined;
@@ -67,36 +67,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
67
67
  eventButtonLocation?: string | undefined;
68
68
  websiteUpsellModalViewModel?: any;
69
69
  showPublishOptionModal?: boolean | undefined;
70
- abTests: {
71
- bp_3926_freemium_watermark?: {
72
- key: string;
73
- value: string;
74
- isControl: boolean;
75
- isVariation: boolean;
76
- isExcluded: boolean;
77
- } | undefined;
78
- bp_4572_ai_text_generation_post_purchase?: {
79
- key: string;
80
- value: string;
81
- isControl: boolean;
82
- isVariation: boolean;
83
- isExcluded: boolean;
84
- } | undefined;
85
- bp_4964_ai_text_generation_improvement?: {
86
- key: string;
87
- value: string;
88
- isControl: boolean;
89
- isVariation: boolean;
90
- isExcluded: boolean;
91
- } | undefined;
92
- bp_5245_ai_website_assistant?: {
93
- key: string;
94
- value: string;
95
- isControl: boolean;
96
- isVariation: boolean;
97
- isExcluded: boolean;
98
- } | undefined;
99
- };
70
+ abTests: Record<string, string>;
100
71
  isSubsequentPublish: boolean;
101
72
  isContextualUpgradeModalVisible: boolean;
102
73
  contextualUpgradeType: string | number | symbol | undefined;
@@ -158,36 +129,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
158
129
  eventButtonLocation?: string | undefined;
159
130
  websiteUpsellModalViewModel?: any;
160
131
  showPublishOptionModal?: boolean | undefined;
161
- abTests: {
162
- bp_3926_freemium_watermark?: {
163
- key: string;
164
- value: string;
165
- isControl: boolean;
166
- isVariation: boolean;
167
- isExcluded: boolean;
168
- } | undefined;
169
- bp_4572_ai_text_generation_post_purchase?: {
170
- key: string;
171
- value: string;
172
- isControl: boolean;
173
- isVariation: boolean;
174
- isExcluded: boolean;
175
- } | undefined;
176
- bp_4964_ai_text_generation_improvement?: {
177
- key: string;
178
- value: string;
179
- isControl: boolean;
180
- isVariation: boolean;
181
- isExcluded: boolean;
182
- } | undefined;
183
- bp_5245_ai_website_assistant?: {
184
- key: string;
185
- value: string;
186
- isControl: boolean;
187
- isVariation: boolean;
188
- isExcluded: boolean;
189
- } | undefined;
190
- };
132
+ abTests: Record<string, string>;
191
133
  isSubsequentPublish: boolean;
192
134
  isContextualUpgradeModalVisible: boolean;
193
135
  contextualUpgradeType: string | number | symbol | undefined;