@designcrowd/library.brand-page 6.1.4 → 6.1.5-ai-websitev2-2

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 (218) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-BqSeZPrr.js → CreatedOnBrandCrowd-de-de-Cv-51vHw.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-DitDgddY.js → CreatedOnBrandCrowd-en-us-C7v_hAbT.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-BwBcLimJ.js → CreatedOnBrandCrowd-es-es-BE0sJ5wj.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-CDI6BAQ_.js → CreatedOnBrandCrowd-fr-ca-CDA-wNPb.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-CDI6BAQ_.js → CreatedOnBrandCrowd-fr-fr-CDA-wNPb.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-BqyYgu94.js → CreatedOnBrandCrowd-pt-br-DqEDRqKw.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-BqyYgu94.js → CreatedOnBrandCrowd-pt-pt-DqEDRqKw.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-Dhx4_JJc.js → CreatedOnDcom-de-de-B-3230SV.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-CRm12D2Q.js → CreatedOnDcom-en-us-BzKK-h8-.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-D0O-LyKs.js → CreatedOnDcom-es-es-BOycDUON.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-S2eHLTr4.js → CreatedOnDcom-fr-ca-CgN9wkLz.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-BjkPHKW2.js → CreatedOnDcom-fr-fr-Dw4V07tJ.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-BhXx649Y.js → CreatedOnDcom-pt-br-BigKza0y.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-D4ZzN09M.js → CreatedOnDcom-pt-pt-CC2G5Eb7.js} +1 -1
  15. package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.d.ts +1 -1
  16. package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.js +1 -1
  17. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +4 -1
  18. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.js +1 -1
  19. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.js +6 -5
  20. package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/store-fixture.d.ts +1 -1
  21. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +4 -1
  22. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.js +2 -2
  23. package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.d.ts +1 -1
  24. package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.js +3 -2
  25. package/lib/src/brand-page-maker/components/navigation/Navigation.mixin.d.ts +3 -3
  26. package/lib/src/brand-page-maker/components/navigation/Navigation.mixin.js +1 -1
  27. package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.d.ts +3 -0
  28. package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +3 -0
  29. package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +3 -0
  30. package/lib/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.d.ts +3 -0
  31. package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +4 -1
  32. package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.js +6 -6
  33. package/lib/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.d.ts +3 -0
  34. package/lib/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.js +7 -3
  35. package/lib/src/brand-page-maker/composables/useUndoRedoFlag.d.ts +1 -1
  36. package/lib/src/brand-page-maker/composables/useUndoRedoFlag.js +4 -2
  37. package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.d.ts +6 -1
  38. package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.js +5 -6
  39. package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +13 -14
  40. package/lib/src/brand-page-maker/stores/ui/ui-store.js +3 -5
  41. package/lib/src/brand-page-maker/stores/user/user-store.js +4 -1
  42. package/lib/src/brand-page-maker/stores/video/video-store.js +3 -1
  43. package/lib/src/clients/ai-assistant-client.d.ts +1 -0
  44. package/lib/src/clients/ai-assistant-client.js +1 -0
  45. package/lib/src/css/library.brand-page-brandCrowd.min.css +58 -58
  46. package/lib/src/css/library.brand-page-brandPage.min.css +58 -58
  47. package/lib/src/css/library.brand-page-designCom.min.css +58 -58
  48. package/lib/src/css/library.brand-page-preview.min.css +58 -58
  49. package/lib/src/index.mjs +1 -1
  50. package/lib/src/{lib-BSau-wQW.js → lib-CLGk6c7Z.js} +22739 -22560
  51. package/lib/src/metadata-builder/builders/global-font-propagation.d.ts +28 -0
  52. package/lib/src/metadata-builder/builders/global-font-propagation.js +125 -0
  53. package/lib/src/metadata-builder/builders/global-styles-builder.js +16 -0
  54. package/lib/src/metadata-builder/builders/section-builders/index.d.ts +1 -0
  55. package/lib/src/metadata-builder/builders/section-builders/index.js +1 -0
  56. package/lib/src/metadata-builder/builders/section-builders/support-me-builder.d.ts +8 -0
  57. package/lib/src/metadata-builder/builders/section-builders/support-me-builder.js +25 -0
  58. package/lib/src/metadata-builder/builders/section-builders/text-section-builder.js +5 -2
  59. package/lib/src/metadata-builder/builders/section-field-maps.js +15 -0
  60. package/lib/src/metadata-builder/builders/section-field-utils.d.ts +6 -1
  61. package/lib/src/metadata-builder/builders/section-field-utils.js +48 -12
  62. package/lib/src/metadata-builder/builders/section-rules/support-me.rules.d.ts +2 -0
  63. package/lib/src/metadata-builder/builders/section-rules/support-me.rules.js +17 -0
  64. package/lib/src/metadata-builder/helpers/rte.helpers.d.ts +9 -0
  65. package/lib/src/metadata-builder/helpers/rte.helpers.js +60 -1
  66. package/lib/src/metadata-builder/metadata-executor.js +3 -1
  67. package/lib/src/metadata-builder/models.d.ts +2 -0
  68. package/lib/src/metadata-builder/models.js +2 -0
  69. package/lib/src/metadata-builder/parsers/ai-toolcall-parser.d.ts +1 -0
  70. package/lib/src/metadata-builder/parsers/ai-toolcall-parser.js +4 -0
  71. package/lib/src/metadata-builder/parsers/section-tool-arguments.d.ts +14 -2
  72. package/lib/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.d.ts +1 -1
  73. package/lib/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.js +3 -2
  74. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +1 -1
  75. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.js +3 -2
  76. package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +1 -1
  77. package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.js +4 -3
  78. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +1 -1
  79. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.js +4 -4
  80. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +1 -1
  81. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.js +3 -3
  82. package/lib/src/shared/content-settings/components/draggable-item-list/DraggableItemList.mixin.d.ts +2 -2
  83. package/lib/src/shared/content-settings/components/draggable-item-list/DraggableItemList.mixin.js +1 -1
  84. package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.d.ts +1 -1
  85. package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.js +4 -3
  86. package/lib/src/shared/content-settings/components/images-field/ImagesField.mixin.d.ts +2 -2
  87. package/lib/src/shared/content-settings/components/images-field/ImagesField.mixin.js +1 -1
  88. package/lib/src/shared/content-settings/components/links-field/LinksField.mixin.d.ts +2 -2
  89. package/lib/src/shared/content-settings/components/links-field/LinksField.mixin.js +1 -1
  90. package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +3 -0
  91. package/lib/src/shared/content-settings/components/shape-field/ShapeField.mixin.d.ts +2 -2
  92. package/lib/src/shared/content-settings/components/shape-field/ShapeField.mixin.js +1 -1
  93. package/lib/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.d.ts +2 -2
  94. package/lib/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.js +1 -1
  95. package/lib/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.d.ts +2 -2
  96. package/lib/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.js +1 -1
  97. package/lib/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.d.ts +2 -2
  98. package/lib/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.js +1 -1
  99. package/lib/src/shared/content-settings/store/content-settings-store.js +3 -3
  100. package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +3 -0
  101. package/lib/src/shared/my-uploads/MyUploads.mixin.d.ts +1 -1
  102. package/lib/src/shared/my-uploads/MyUploads.mixin.js +3 -2
  103. package/lib/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.d.ts +2 -2
  104. package/lib/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.js +1 -1
  105. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +4 -1
  106. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.js +1 -1
  107. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +5 -2
  108. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.js +1 -1
  109. package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +3 -0
  110. package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +4 -1
  111. package/lib/src/shared/side-bar/components/SideBar.mixin.js +3 -3
  112. package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +4 -1
  113. package/lib/src/shared/style-settings/components/StyleSettings.mixin.js +2 -2
  114. package/lib/src/shared/template-settings/components/TemplatesSettings.mixin.js +1 -1
  115. package/lib/src/shared/template-settings/store/template-settings-store.js +8 -9
  116. package/lib/src/utils/minify-brand-page-metadata.js +7 -0
  117. package/package.json +1 -1
  118. package/src/brand-page-maker/components/action-bar/ActionBar.mixin.ts +1 -1
  119. package/src/brand-page-maker/components/action-bar/ActionBar.vue +1 -1
  120. package/src/brand-page-maker/components/action-bar/ActionBarNavigation.vue +5 -5
  121. package/src/brand-page-maker/components/admin-background-settings/AdminBackgroundSettings.vue +1 -1
  122. package/src/brand-page-maker/components/ai-website-builder/AiWebsiteBuilder.vue +1 -1
  123. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.ts +1 -1
  124. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.ts +8 -6
  125. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.vue +1 -1
  126. package/src/brand-page-maker/components/brand-page-maker/__fixtures__/store-fixture.ts +1 -1
  127. package/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.ts +2 -2
  128. package/src/brand-page-maker/components/brandpage-settings/BrandPageSettings.vue +3 -3
  129. package/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.ts +3 -1
  130. package/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.vue +1 -1
  131. package/src/brand-page-maker/components/navigation/Navigation.mixin.ts +1 -1
  132. package/src/brand-page-maker/components/navigation/Navigation.vue +3 -3
  133. package/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.vue +4 -3
  134. package/src/brand-page-maker/components/rich-text-editor/RichTextEditor.vue +13 -13
  135. package/src/brand-page-maker/components/save-contact/SaveContact.vue +2 -2
  136. package/src/brand-page-maker/components/shop/ReplaceImageSettingsForShop.vue +1 -1
  137. package/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.ts +6 -6
  138. package/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.ts +7 -3
  139. package/src/brand-page-maker/composables/useQuickLinkBarVisibility.test.ts +4 -5
  140. package/src/brand-page-maker/composables/useUndoRedoFlag.ts +4 -2
  141. package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.initialise.test.ts +89 -0
  142. package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.ts +9 -8
  143. package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.test.ts +5 -10
  144. package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +19 -14
  145. package/src/brand-page-maker/stores/ui/ui-store.ts +3 -5
  146. package/src/brand-page-maker/stores/user/user-store.ts +4 -1
  147. package/src/brand-page-maker/stores/video/video-store.ts +3 -1
  148. package/src/clients/ai-assistant-client.ts +1 -0
  149. package/src/metadata-builder/builders/global-font-propagation.test.ts +269 -0
  150. package/src/metadata-builder/builders/global-font-propagation.ts +205 -0
  151. package/src/metadata-builder/builders/global-styles-builder.ts +21 -0
  152. package/src/metadata-builder/builders/section-builders/index.ts +1 -0
  153. package/src/metadata-builder/builders/section-builders/support-me-builder.test.ts +177 -0
  154. package/src/metadata-builder/builders/section-builders/support-me-builder.ts +43 -0
  155. package/src/metadata-builder/builders/section-builders/text-section-builder.ts +5 -2
  156. package/src/metadata-builder/builders/section-field-maps.ts +18 -0
  157. package/src/metadata-builder/builders/section-field-utils.test.ts +83 -0
  158. package/src/metadata-builder/builders/section-field-utils.ts +69 -18
  159. package/src/metadata-builder/builders/section-rules/support-me.rules.ts +39 -0
  160. package/src/metadata-builder/helpers/rte.helpers.ts +82 -1
  161. package/src/metadata-builder/metadata-executor.ts +3 -0
  162. package/src/metadata-builder/models.ts +2 -0
  163. package/src/metadata-builder/parsers/ai-toolcall-parser.ts +4 -0
  164. package/src/metadata-builder/parsers/section-tool-arguments.ts +14 -1
  165. package/src/shared/background-settings/components/BackgroundSettings.vue +9 -9
  166. package/src/shared/background-settings/components/MultiBackgroundShapes.vue +7 -7
  167. package/src/shared/background-settings/components/ReplaceImageSettingsForBackgroundSettings.vue +4 -4
  168. package/src/shared/background-settings/components/SingleBackgroundShape.vue +5 -5
  169. package/src/shared/background-settings/components/background-color/BackgroundColorSettings.vue +6 -6
  170. package/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.ts +6 -2
  171. package/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.vue +1 -1
  172. package/src/shared/content-settings/components/button-configuration-field/ButtonConfigurationField.vue +2 -2
  173. package/src/shared/content-settings/components/color-field/ColorField.vue +6 -6
  174. package/src/shared/content-settings/components/color-replacements-field/ColorReplacementsField.vue +9 -7
  175. package/src/shared/content-settings/components/content-settings/ContentSettings.mixin.ts +3 -1
  176. package/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.ts +4 -2
  177. package/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.vue +1 -1
  178. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.ts +4 -4
  179. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.ts +3 -3
  180. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.vue +1 -1
  181. package/src/shared/content-settings/components/draggable-item-list/DraggableItemList.mixin.ts +1 -1
  182. package/src/shared/content-settings/components/draggable-item-list/DraggableItemList.vue +1 -1
  183. package/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.ts +5 -2
  184. package/src/shared/content-settings/components/images-field/ImagesField.mixin.ts +1 -1
  185. package/src/shared/content-settings/components/images-field/ImagesField.vue +1 -1
  186. package/src/shared/content-settings/components/links-field/LinksField.mixin.ts +1 -1
  187. package/src/shared/content-settings/components/links-field/LinksField.vue +1 -1
  188. package/src/shared/content-settings/components/logo-selection-field/LogoSelection.vue +1 -3
  189. package/src/shared/content-settings/components/personalisation-override-field/PersonalisationOverrideField.vue +6 -3
  190. package/src/shared/content-settings/components/replace-image-base-settings/ReplaceImageBaseSettings.vue +2 -2
  191. package/src/shared/content-settings/components/shape-field/ShapeField.mixin.ts +1 -1
  192. package/src/shared/content-settings/components/shape-field/ShapeField.vue +1 -1
  193. package/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.ts +1 -1
  194. package/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.vue +5 -5
  195. package/src/shared/content-settings/components/text-image-field/TextImageField.vue +7 -7
  196. package/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.test.ts +1 -1
  197. package/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.ts +1 -1
  198. package/src/shared/content-settings/components/text-items-field/TextItemsField.vue +2 -2
  199. package/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.ts +1 -1
  200. package/src/shared/content-settings/components/text-style-field/TextStyleField.vue +2 -2
  201. package/src/shared/content-settings/store/content-settings-store.ts +3 -2
  202. package/src/shared/my-uploads/MyUploads.mixin.ts +3 -1
  203. package/src/shared/my-uploads/MyUploads.vue +1 -1
  204. package/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.ts +1 -1
  205. package/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.vue +12 -9
  206. package/src/shared/page-settings/components/page-settings/PageSettings.mixin.ts +1 -1
  207. package/src/shared/page-settings/components/page-settings/PageSettings.vue +3 -3
  208. package/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.ts +1 -1
  209. package/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.vue +4 -4
  210. package/src/shared/shape-library/ShapeLibrary.vue +10 -12
  211. package/src/shared/side-bar/components/SideBar.mixin.ts +3 -3
  212. package/src/shared/style-settings/components/StyleSettings.mixin.ts +2 -2
  213. package/src/shared/style-settings/components/StyleSettings.vue +29 -23
  214. package/src/shared/style-settings/components/text-style-options-settings-with-state/TextStyleOptionsSettingsWithState.vue +4 -2
  215. package/src/shared/template-settings/components/TemplatesSettings.mixin.ts +1 -1
  216. package/src/shared/template-settings/store/template-settings-store.ts +7 -9
  217. package/src/utils/minify-brand-page-metadata.test.ts +61 -0
  218. package/src/utils/minify-brand-page-metadata.ts +8 -0
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BSau-wQW.js";
2
+ import { _ as t } from "./lib-CLGk6c7Z.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-BSau-wQW.js";
2
+ import { _ as t } from "./lib-CLGk6c7Z.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-BSau-wQW.js";
2
+ import { _ as t } from "./lib-CLGk6c7Z.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-BSau-wQW.js";
2
+ import { _ as t } from "./lib-CLGk6c7Z.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-BSau-wQW.js";
2
+ import { _ as t } from "./lib-CLGk6c7Z.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-BSau-wQW.js";
2
+ import { _ as t } from "./lib-CLGk6c7Z.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-BSau-wQW.js";
2
+ import { _ as t } from "./lib-CLGk6c7Z.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-BSau-wQW.js";
2
+ import { _ as e } from "./lib-CLGk6c7Z.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-BSau-wQW.js";
2
+ import { _ as e } from "./lib-CLGk6c7Z.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-BSau-wQW.js";
2
+ import { _ as e } from "./lib-CLGk6c7Z.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-BSau-wQW.js";
2
+ import { _ as e } from "./lib-CLGk6c7Z.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-BSau-wQW.js";
2
+ import { _ as e } from "./lib-CLGk6c7Z.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-BSau-wQW.js";
2
+ import { _ as M } from "./lib-CLGk6c7Z.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-BSau-wQW.js";
2
+ import { _ as M } from "./lib-CLGk6c7Z.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  declare const _default: import("vue").DefineComponent<{}, {
2
- isAdmin: import("vue").ComputedRef<boolean>;
2
+ isAdminMaker: import("vue").ComputedRef<boolean>;
3
3
  isLivePreviewEnabled: import("vue").ComputedRef<boolean>;
4
4
  isSaving: import("vue").ComputedRef<boolean>;
5
5
  isPublished: import("vue").ComputedRef<boolean>;
@@ -10,7 +10,7 @@ export default defineComponent({
10
10
  const brandPageMakerStore = useBrandPageMakerStore();
11
11
  const containerStore = useBrandPageContainerStore();
12
12
  return {
13
- isAdmin: computed(() => userStore.isAdmin),
13
+ isAdminMaker: computed(() => containerStore.isAdminMaker),
14
14
  // BP-5873: the Preview button is behind an AB test, and pre/post purchase are
15
15
  // two separate experiments. Pick the one for the current purchase state — a
16
16
  // user's value on the other side is independent and must not leak across.
@@ -57,7 +57,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
57
57
  backButtonLabel: import("vue").ComputedRef<string>;
58
58
  isDesignCom: import("vue").ComputedRef<boolean>;
59
59
  selectedTabName: import("vue").ComputedRef<string>;
60
- isAdmin: import("vue").ComputedRef<boolean>;
60
+ isAdminMaker: import("vue").ComputedRef<boolean>;
61
61
  contentErrorCount: import("vue").ComputedRef<number>;
62
62
  mode: import("vue").ComputedRef<"images" | "add" | "pages" | "edit" | "focusedContentItem">;
63
63
  brandPageMakerStore: import("pinia").Store<"brandPageMaker", import("@brand-page-maker/stores").BrandPageMakerState, {
@@ -261,6 +261,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
261
261
  isUpgradeModalVisible: boolean;
262
262
  isPublishing: boolean;
263
263
  isProduction: boolean;
264
+ isAdminMaker: boolean;
264
265
  isSellDomainNameEnabled: boolean;
265
266
  isStripeOnboardingModalVisible: boolean;
266
267
  isReactivationModal: boolean;
@@ -355,6 +356,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
355
356
  isUpgradeModalVisible: boolean;
356
357
  isPublishing: boolean;
357
358
  isProduction: boolean;
359
+ isAdminMaker: boolean;
358
360
  isSellDomainNameEnabled: boolean;
359
361
  isStripeOnboardingModalVisible: boolean;
360
362
  isReactivationModal: boolean;
@@ -449,6 +451,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
449
451
  isUpgradeModalVisible: boolean;
450
452
  isPublishing: boolean;
451
453
  isProduction: boolean;
454
+ isAdminMaker: boolean;
452
455
  isSellDomainNameEnabled: boolean;
453
456
  isStripeOnboardingModalVisible: boolean;
454
457
  isReactivationModal: boolean;
@@ -84,7 +84,7 @@ export default defineComponent({
84
84
  backButtonLabel: computed(() => containerStore.backButtonLabel),
85
85
  isDesignCom: computed(() => containerStore.isDesignCom),
86
86
  selectedTabName: computed(() => sideBarStore.selectedTabName),
87
- isAdmin: computed(() => userStore.isAdmin),
87
+ isAdminMaker: computed(() => containerStore.isAdminMaker),
88
88
  contentErrorCount: computed(() => contentSettingsStore.contentErrorCount),
89
89
  mode: computed(() => contentSettingsStore.mode),
90
90
  brandPageMakerStore,
@@ -182,10 +182,11 @@ const InitialiseMakerStores = (options) => {
182
182
  aiTemplateKeywords: undefined,
183
183
  });
184
184
  userStore.setUserState({
185
- isAdmin: options.isAdmin,
185
+ isAdmin: options.isAdminMaker,
186
186
  hasPremiumSubscription: false,
187
187
  brandPageCommissionPercentage: 0.1,
188
188
  });
189
+ brandPageContainerStore.isAdminMaker = options.isAdminMaker ?? false;
189
190
  };
190
191
  const FABRIC_RENDER_BASE_URL = 'https://localhost:6006/';
191
192
  const SAMPLE_BRAND_PAGE_URL = 'https://brand.page';
@@ -366,7 +367,7 @@ SampleBanner.story = {
366
367
  name: 'Sample (Banner)',
367
368
  };
368
369
  export const SamplePersonalised = () => {
369
- InitialiseMakerStores({ isAdmin: true });
370
+ InitialiseMakerStores({ isAdminMaker: true });
370
371
  return defineComponent({
371
372
  components: {
372
373
  BrandPageMaker,
@@ -391,7 +392,7 @@ export const SamplePersonalised = () => {
391
392
  template: `
392
393
  <BrandPageMaker :view-model="viewModel"/>
393
394
  `,
394
- pinia: setupStoryPinia({ isAdmin: true }),
395
+ pinia: setupStoryPinia({ isAdminMaker: true }),
395
396
  });
396
397
  };
397
398
  export const SamplePublished = {
@@ -1159,7 +1160,7 @@ export const SampleNoUserMedia = () => {
1159
1160
  };
1160
1161
  };
1161
1162
  export const SampleAdminMode = () => {
1162
- InitialiseMakerStores({ isAdmin: true });
1163
+ InitialiseMakerStores({ isAdminMaker: true });
1163
1164
  const pinia = setupStoryPinia();
1164
1165
  return {
1165
1166
  components: {
@@ -1201,7 +1202,7 @@ export const SampleAdminModeBrandSite = {
1201
1202
  name: 'Sample (admin mode brandsite1)',
1202
1203
  render: () => ({
1203
1204
  setup() {
1204
- InitialiseMakerStores({ isAdmin: true });
1205
+ InitialiseMakerStores({ isAdminMaker: true });
1205
1206
  },
1206
1207
  components: {
1207
1208
  BrandPageMaker,
@@ -5,7 +5,7 @@ export declare const setupStoryPinia: (options?: {
5
5
  customDomain?: CustomDomainModel;
6
6
  designDraftToken?: string;
7
7
  endpoints?: Endpoints;
8
- isAdmin?: boolean;
8
+ isAdminMaker?: boolean;
9
9
  noUserMedia?: boolean;
10
10
  noPaymentConfig?: boolean;
11
11
  disableMock?: boolean;
@@ -37,7 +37,7 @@ declare const _default: import("vue").DefineComponent<{}, {
37
37
  getValue: import("vue").ComputedRef<(id: string, fieldName: string) => Content | string | undefined>;
38
38
  selectedTemplateId: import("vue").ComputedRef<string | false>;
39
39
  canUseRichTextEditor: import("vue").ComputedRef<boolean>;
40
- isAdmin: import("vue").ComputedRef<boolean>;
40
+ isAdminMaker: import("vue").ComputedRef<boolean>;
41
41
  logoTheme: import("vue").ComputedRef<{
42
42
  logoTextColor: {
43
43
  rgb: string;
@@ -704,6 +704,7 @@ declare const _default: import("vue").DefineComponent<{}, {
704
704
  isUpgradeModalVisible: boolean;
705
705
  isPublishing: boolean;
706
706
  isProduction: boolean;
707
+ isAdminMaker: boolean;
707
708
  isSellDomainNameEnabled: boolean;
708
709
  isStripeOnboardingModalVisible: boolean;
709
710
  isReactivationModal: boolean;
@@ -798,6 +799,7 @@ declare const _default: import("vue").DefineComponent<{}, {
798
799
  isUpgradeModalVisible: boolean;
799
800
  isPublishing: boolean;
800
801
  isProduction: boolean;
802
+ isAdminMaker: boolean;
801
803
  isSellDomainNameEnabled: boolean;
802
804
  isStripeOnboardingModalVisible: boolean;
803
805
  isReactivationModal: boolean;
@@ -892,6 +894,7 @@ declare const _default: import("vue").DefineComponent<{}, {
892
894
  isUpgradeModalVisible: boolean;
893
895
  isPublishing: boolean;
894
896
  isProduction: boolean;
897
+ isAdminMaker: boolean;
895
898
  isSellDomainNameEnabled: boolean;
896
899
  isStripeOnboardingModalVisible: boolean;
897
900
  isReactivationModal: boolean;
@@ -42,7 +42,7 @@ export default defineComponent({
42
42
  getValue: computed(() => contentSettingsStore.getValue),
43
43
  selectedTemplateId: computed(() => brandPageMakerStore.selectedTemplateId),
44
44
  canUseRichTextEditor: computed(() => brandPageMakerUserStore.features.canUseRichTextEditor),
45
- isAdmin: computed(() => brandPageMakerUserStore.isAdmin),
45
+ isAdminMaker: computed(() => brandPageContainerStore.isAdminMaker),
46
46
  logoTheme: computed(() => uiStore.logoTheme),
47
47
  contentSettingsStore,
48
48
  brandPageMakerStore,
@@ -211,7 +211,7 @@ export default defineComponent({
211
211
  if (RTE_ALLOWED_SECTION_TYPES.includes(item.type) &&
212
212
  this.canUseRichTextEditor) {
213
213
  let selectedItem = item;
214
- if (this.isAdmin) {
214
+ if (this.isAdminMaker) {
215
215
  const currentItem = this.items.find((i) => i.id === item.id);
216
216
  if (currentItem) {
217
217
  selectedItem = currentItem.settings.content;
@@ -8,7 +8,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
8
8
  };
9
9
  }>, {
10
10
  mode: import("vue").ComputedRef<"images" | "shapes" | "edit">;
11
- isAdmin: import("vue").ComputedRef<boolean>;
11
+ isAdminMaker: import("vue").ComputedRef<boolean>;
12
12
  brandPageMakerStore: import("pinia").Store<"brandPageMaker", import("@brand-page-maker/stores").BrandPageMakerState, {
13
13
  contentErrorCount(): number;
14
14
  brandPageBaseUrl(): string;
@@ -1,5 +1,5 @@
1
1
  import { computed, defineComponent } from 'vue';
2
- import { useBrandPageMakerStore, BRANDPAGE_SETTINGS_MODES, useBrandPageMakerUserStore, } from '@brand-page-maker/stores';
2
+ import { useBrandPageMakerStore, BRANDPAGE_SETTINGS_MODES, useBrandPageMakerUserStore, useBrandPageContainerStore, } from '@brand-page-maker/stores';
3
3
  import { MEDIA_TYPES } from '@brand-page/models/brand-page-context.model';
4
4
  const imageExtension = ['.png', '.ico'];
5
5
  export default defineComponent({
@@ -13,9 +13,10 @@ export default defineComponent({
13
13
  setup() {
14
14
  const brandPageMakerStore = useBrandPageMakerStore();
15
15
  const userStore = useBrandPageMakerUserStore();
16
+ const containerStore = useBrandPageContainerStore();
16
17
  return {
17
18
  mode: computed(() => brandPageMakerStore.mode),
18
- isAdmin: computed(() => userStore.isAdmin),
19
+ isAdminMaker: computed(() => containerStore.isAdminMaker),
19
20
  brandPageMakerStore,
20
21
  userStore,
21
22
  };
@@ -1,5 +1,5 @@
1
1
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- isAdmin: {
2
+ isAdminMaker: {
3
3
  type: BooleanConstructor;
4
4
  required: false;
5
5
  default: boolean;
@@ -43,7 +43,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
43
43
  cta_location: string;
44
44
  }): void;
45
45
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "create-team-cards"[], "create-team-cards", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
46
- isAdmin: {
46
+ isAdminMaker: {
47
47
  type: BooleanConstructor;
48
48
  required: false;
49
49
  default: boolean;
@@ -81,8 +81,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
81
81
  }>> & Readonly<{
82
82
  "onCreate-team-cards"?: ((...args: any[]) => any) | undefined;
83
83
  }>, {
84
- isAdmin: boolean;
85
84
  isPublished: boolean;
85
+ isAdminMaker: boolean;
86
86
  isSaving: boolean;
87
87
  backButtonLabel: string;
88
88
  isDesignCom: boolean;
@@ -3,7 +3,7 @@ import { EVENTS } from '../../../constants/brand-page-maker';
3
3
  import { navigationTr } from '@src/composables/useTranslate';
4
4
  export default defineComponent({
5
5
  props: {
6
- isAdmin: {
6
+ isAdminMaker: {
7
7
  type: Boolean,
8
8
  required: false,
9
9
  default: false,
@@ -47,6 +47,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
47
47
  isUpgradeModalVisible: boolean;
48
48
  isPublishing: boolean;
49
49
  isProduction: boolean;
50
+ isAdminMaker: boolean;
50
51
  isSellDomainNameEnabled: boolean;
51
52
  isStripeOnboardingModalVisible: boolean;
52
53
  isReactivationModal: boolean;
@@ -141,6 +142,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
141
142
  isUpgradeModalVisible: boolean;
142
143
  isPublishing: boolean;
143
144
  isProduction: boolean;
145
+ isAdminMaker: boolean;
144
146
  isSellDomainNameEnabled: boolean;
145
147
  isStripeOnboardingModalVisible: boolean;
146
148
  isReactivationModal: boolean;
@@ -235,6 +237,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
235
237
  isUpgradeModalVisible: boolean;
236
238
  isPublishing: boolean;
237
239
  isProduction: boolean;
240
+ isAdminMaker: boolean;
238
241
  isSellDomainNameEnabled: boolean;
239
242
  isStripeOnboardingModalVisible: boolean;
240
243
  isReactivationModal: boolean;
@@ -63,6 +63,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
63
63
  isUpgradeModalVisible: boolean;
64
64
  isPublishing: boolean;
65
65
  isProduction: boolean;
66
+ isAdminMaker: boolean;
66
67
  isSellDomainNameEnabled: boolean;
67
68
  isStripeOnboardingModalVisible: boolean;
68
69
  isReactivationModal: boolean;
@@ -157,6 +158,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
157
158
  isUpgradeModalVisible: boolean;
158
159
  isPublishing: boolean;
159
160
  isProduction: boolean;
161
+ isAdminMaker: boolean;
160
162
  isSellDomainNameEnabled: boolean;
161
163
  isStripeOnboardingModalVisible: boolean;
162
164
  isReactivationModal: boolean;
@@ -251,6 +253,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
251
253
  isUpgradeModalVisible: boolean;
252
254
  isPublishing: boolean;
253
255
  isProduction: boolean;
256
+ isAdminMaker: boolean;
254
257
  isSellDomainNameEnabled: boolean;
255
258
  isStripeOnboardingModalVisible: boolean;
256
259
  isReactivationModal: boolean;
@@ -68,6 +68,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
68
68
  isUpgradeModalVisible: boolean;
69
69
  isPublishing: boolean;
70
70
  isProduction: boolean;
71
+ isAdminMaker: boolean;
71
72
  isSellDomainNameEnabled: boolean;
72
73
  isStripeOnboardingModalVisible: boolean;
73
74
  isReactivationModal: boolean;
@@ -162,6 +163,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
162
163
  isUpgradeModalVisible: boolean;
163
164
  isPublishing: boolean;
164
165
  isProduction: boolean;
166
+ isAdminMaker: boolean;
165
167
  isSellDomainNameEnabled: boolean;
166
168
  isStripeOnboardingModalVisible: boolean;
167
169
  isReactivationModal: boolean;
@@ -256,6 +258,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
256
258
  isUpgradeModalVisible: boolean;
257
259
  isPublishing: boolean;
258
260
  isProduction: boolean;
261
+ isAdminMaker: boolean;
259
262
  isSellDomainNameEnabled: boolean;
260
263
  isStripeOnboardingModalVisible: boolean;
261
264
  isReactivationModal: boolean;
@@ -49,6 +49,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
49
49
  isUpgradeModalVisible: boolean;
50
50
  isPublishing: boolean;
51
51
  isProduction: boolean;
52
+ isAdminMaker: boolean;
52
53
  isSellDomainNameEnabled: boolean;
53
54
  isStripeOnboardingModalVisible: boolean;
54
55
  isReactivationModal: boolean;
@@ -143,6 +144,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
143
144
  isUpgradeModalVisible: boolean;
144
145
  isPublishing: boolean;
145
146
  isProduction: boolean;
147
+ isAdminMaker: boolean;
146
148
  isSellDomainNameEnabled: boolean;
147
149
  isStripeOnboardingModalVisible: boolean;
148
150
  isReactivationModal: boolean;
@@ -237,6 +239,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
237
239
  isUpgradeModalVisible: boolean;
238
240
  isPublishing: boolean;
239
241
  isProduction: boolean;
242
+ isAdminMaker: boolean;
240
243
  isSellDomainNameEnabled: boolean;
241
244
  isStripeOnboardingModalVisible: boolean;
242
245
  isReactivationModal: boolean;
@@ -64,7 +64,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
64
64
  selectedTemplateId: import("vue").ComputedRef<string | false>;
65
65
  isPrePurchase: import("vue").ComputedRef<boolean>;
66
66
  runtimeEnvironment: import("vue").ComputedRef<string>;
67
- isAdmin: import("vue").ComputedRef<boolean>;
67
+ isAdminMaker: import("vue").ComputedRef<boolean>;
68
68
  userToken: import("vue").ComputedRef<string | undefined>;
69
69
  isBrandSite: import("vue").ComputedRef<boolean>;
70
70
  renderAsImage: import("vue").ComputedRef<boolean>;
@@ -117,6 +117,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
117
117
  isUpgradeModalVisible: boolean;
118
118
  isPublishing: boolean;
119
119
  isProduction: boolean;
120
+ isAdminMaker: boolean;
120
121
  isSellDomainNameEnabled: boolean;
121
122
  isStripeOnboardingModalVisible: boolean;
122
123
  isReactivationModal: boolean;
@@ -211,6 +212,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
211
212
  isUpgradeModalVisible: boolean;
212
213
  isPublishing: boolean;
213
214
  isProduction: boolean;
215
+ isAdminMaker: boolean;
214
216
  isSellDomainNameEnabled: boolean;
215
217
  isStripeOnboardingModalVisible: boolean;
216
218
  isReactivationModal: boolean;
@@ -305,6 +307,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
305
307
  isUpgradeModalVisible: boolean;
306
308
  isPublishing: boolean;
307
309
  isProduction: boolean;
310
+ isAdminMaker: boolean;
308
311
  isSellDomainNameEnabled: boolean;
309
312
  isStripeOnboardingModalVisible: boolean;
310
313
  isReactivationModal: boolean;
@@ -34,7 +34,7 @@ export default defineComponent({
34
34
  selectedTemplateId: computed(() => brandPageMakerStore.selectedTemplateId),
35
35
  isPrePurchase: computed(() => brandPageContainerStore.isPrePurchase),
36
36
  runtimeEnvironment: computed(() => brandPageContainerStore.runtimeEnvironment),
37
- isAdmin: computed(() => brandPageMakerUserStore.isAdmin),
37
+ isAdminMaker: computed(() => brandPageContainerStore.isAdminMaker),
38
38
  userToken: computed(() => brandPageMakerUserStore.userToken),
39
39
  isBrandSite: computed(() => brandPageMakerStore.brandPageType === BRAND_PAGE_TYPES.brandSite),
40
40
  renderAsImage: computed(() => templateSettingsStore.renderAsImage),
@@ -231,7 +231,7 @@ export default defineComponent({
231
231
  },
232
232
  watch: {
233
233
  template() {
234
- if (this.isAdmin) {
234
+ if (this.isAdminMaker) {
235
235
  this.updateViewModel();
236
236
  }
237
237
  else {
@@ -242,20 +242,20 @@ export default defineComponent({
242
242
  },
243
243
  logoTheme: {
244
244
  handler() {
245
- if (this.isAdmin) {
245
+ if (this.isAdminMaker) {
246
246
  this.updateViewModel();
247
247
  }
248
248
  },
249
249
  deep: true,
250
250
  },
251
251
  logoImageBase64Url() {
252
- if (this.isAdmin) {
252
+ if (this.isAdminMaker) {
253
253
  this.updateViewModel();
254
254
  }
255
255
  },
256
256
  previewImageUrl() {
257
257
  // Reset loading state whenever the preview URL changes
258
- if (!this.isAdmin) {
258
+ if (!this.isAdminMaker) {
259
259
  this.imageLoading = true;
260
260
  this.imageLoadError = false;
261
261
  }
@@ -314,7 +314,7 @@ export default defineComponent({
314
314
  },
315
315
  async updateViewModel(forceUpdate = true) {
316
316
  // Only update view model for admin or pre-purchase mode
317
- if (!this.isAdmin) {
317
+ if (!this.isAdminMaker) {
318
318
  return;
319
319
  }
320
320
  const videoStore = useVideoStore();
@@ -44,6 +44,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
44
44
  isUpgradeModalVisible: boolean;
45
45
  isPublishing: boolean;
46
46
  isProduction: boolean;
47
+ isAdminMaker: boolean;
47
48
  isSellDomainNameEnabled: boolean;
48
49
  isStripeOnboardingModalVisible: boolean;
49
50
  isReactivationModal: boolean;
@@ -138,6 +139,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
138
139
  isUpgradeModalVisible: boolean;
139
140
  isPublishing: boolean;
140
141
  isProduction: boolean;
142
+ isAdminMaker: boolean;
141
143
  isSellDomainNameEnabled: boolean;
142
144
  isStripeOnboardingModalVisible: boolean;
143
145
  isReactivationModal: boolean;
@@ -232,6 +234,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
232
234
  isUpgradeModalVisible: boolean;
233
235
  isPublishing: boolean;
234
236
  isProduction: boolean;
237
+ isAdminMaker: boolean;
235
238
  isSellDomainNameEnabled: boolean;
236
239
  isStripeOnboardingModalVisible: boolean;
237
240
  isReactivationModal: boolean;
@@ -348,7 +348,7 @@ export function useAiWebsiteBuilderChat() {
348
348
  message,
349
349
  websiteContext,
350
350
  websiteSnapshot: snapshotStore.snapshotBase64 || undefined,
351
- agentType: AI_ASSISTANT_AGENT_TYPES.WEBSITE_BUILDER,
351
+ agentType: AI_ASSISTANT_AGENT_TYPES.WEBSITE_BUILDER_V2,
352
352
  userPlan,
353
353
  connectionId,
354
354
  });
@@ -358,7 +358,7 @@ export function useAiWebsiteBuilderChat() {
358
358
  message,
359
359
  websiteContext,
360
360
  websiteSnapshot: snapshotStore.snapshotBase64 || undefined,
361
- agentType: AI_ASSISTANT_AGENT_TYPES.WEBSITE_BUILDER,
361
+ agentType: AI_ASSISTANT_AGENT_TYPES.WEBSITE_BUILDER_V2,
362
362
  userPlan,
363
363
  connectionId,
364
364
  });
@@ -503,9 +503,13 @@ export function useAiWebsiteBuilderChat() {
503
503
  failedResults,
504
504
  retryCount,
505
505
  });
506
+ // Tool submissions must go to the SAME agent that ran the thread
507
+ // (AI QA 2026-07-05 T19: a mismatched agentType routes tool results
508
+ // to a service with no state for the thread and fails the build).
509
+ // brandSite AI is V2-only; every call site sends WEBSITE_BUILDER_V2.
506
510
  const submitResult = await client.submitToolResultsBuildAsync(aiThreadStore.threadId, {
507
511
  toolCalls: toolResults,
508
- agentType: AI_ASSISTANT_AGENT_TYPES.WEBSITE_BUILDER,
512
+ agentType: AI_ASSISTANT_AGENT_TYPES.WEBSITE_BUILDER_V2,
509
513
  connectionId,
510
514
  retryCount,
511
515
  userPlan,
@@ -9,7 +9,7 @@ import { type ComputedRef } from 'vue';
9
9
  * same precedent as RichTextEditor / GettyVideos / AITextGenerator. The
10
10
  * one flag governs all three brands (brand-site, brand-page,
11
11
  * brand-contact) — there is no per-brand gating.
12
- * 2. The session is NOT in admin-maker mode (`userStore.isAdmin`). The
12
+ * 2. The session is NOT in admin-maker mode (`containerStore.isAdminMaker`). The
13
13
  * admin maker uses the same components but a different editing flow
14
14
  * (template authoring) where undo/redo is out of scope.
15
15
  */
@@ -1,5 +1,6 @@
1
1
  import { computed } from 'vue';
2
2
  import { useBrandPageMakerUserStore } from '@brand-page-maker/stores/user';
3
+ import { useBrandPageContainerStore } from '@brand-page-maker/stores';
3
4
  /**
4
5
  * Returns whether undo/redo is active for the current maker session. Both
5
6
  * conditions must hold:
@@ -10,11 +11,12 @@ import { useBrandPageMakerUserStore } from '@brand-page-maker/stores/user';
10
11
  * same precedent as RichTextEditor / GettyVideos / AITextGenerator. The
11
12
  * one flag governs all three brands (brand-site, brand-page,
12
13
  * brand-contact) — there is no per-brand gating.
13
- * 2. The session is NOT in admin-maker mode (`userStore.isAdmin`). The
14
+ * 2. The session is NOT in admin-maker mode (`containerStore.isAdminMaker`). The
14
15
  * admin maker uses the same components but a different editing flow
15
16
  * (template authoring) where undo/redo is out of scope.
16
17
  */
17
18
  export function useUndoRedoFlag() {
18
19
  const userStore = useBrandPageMakerUserStore();
19
- return computed(() => userStore.features.canUseUndoRedo && !userStore.isAdmin);
20
+ const containerStore = useBrandPageContainerStore();
21
+ return computed(() => userStore.features.canUseUndoRedo && !containerStore.isAdminMaker);
20
22
  }