@designcrowd/library.brand-page 6.1.6-use-isadminmaker-1 → 6.1.6-use-isadminmaker-3

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 (173) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-Dd_GKG2N.js → CreatedOnBrandCrowd-de-de-t5akeGDG.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-Dins7rod.js → CreatedOnBrandCrowd-en-us-D6iRa7UV.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-D-ie39pg.js → CreatedOnBrandCrowd-es-es-BHwAxInw.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-CbgslN2_.js → CreatedOnBrandCrowd-fr-ca-DETrOR_X.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-CbgslN2_.js → CreatedOnBrandCrowd-fr-fr-DETrOR_X.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-OMePx480.js → CreatedOnBrandCrowd-pt-br-CtWsOLWg.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-OMePx480.js → CreatedOnBrandCrowd-pt-pt-CtWsOLWg.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-BJc1FMjI.js → CreatedOnDcom-de-de-DsEbB4hv.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-DoLdNglw.js → CreatedOnDcom-en-us-CA3kvbs5.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-BG1UvnwD.js → CreatedOnDcom-es-es-B7o8joWb.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-DzZkCm3Z.js → CreatedOnDcom-fr-ca-Yz1cvzRY.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-9vEmBWv1.js → CreatedOnDcom-fr-fr-BETGUOnB.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-B5-fW01S.js → CreatedOnDcom-pt-br-B37QJXKn.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-CNCPHKgi.js → CreatedOnDcom-pt-pt-DMkIALyd.js} +1 -1
  15. package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.d.ts +1 -2
  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 -3
  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 -6
  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 -2
  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 -2
  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 -1
  28. package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +3 -1
  29. package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +3 -1
  30. package/lib/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.d.ts +3 -1
  31. package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +4 -3
  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 -1
  34. package/lib/src/brand-page-maker/composables/useUndoRedoFlag.d.ts +1 -1
  35. package/lib/src/brand-page-maker/composables/useUndoRedoFlag.js +4 -2
  36. package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.d.ts +5 -2
  37. package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.js +5 -12
  38. package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +13 -14
  39. package/lib/src/brand-page-maker/stores/ui/ui-store.js +3 -5
  40. package/lib/src/brand-page-maker/stores/user/user-store.d.ts +0 -1
  41. package/lib/src/brand-page-maker/stores/user/user-store.js +3 -8
  42. package/lib/src/brand-page-maker/stores/video/video-store.js +3 -1
  43. package/lib/src/css/library.brand-page-brandCrowd.min.css +57 -57
  44. package/lib/src/css/library.brand-page-brandPage.min.css +57 -57
  45. package/lib/src/css/library.brand-page-designCom.min.css +57 -57
  46. package/lib/src/css/library.brand-page-preview.min.css +57 -57
  47. package/lib/src/index.mjs +1 -1
  48. package/lib/src/{lib-Cq0WlFYO.js → lib-BgxxXPxt.js} +8644 -8651
  49. package/lib/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.d.ts +1 -2
  50. package/lib/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.js +3 -2
  51. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +1 -1
  52. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.js +3 -2
  53. package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +1 -2
  54. package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.js +4 -3
  55. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +1 -1
  56. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.js +4 -4
  57. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +1 -2
  58. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.js +3 -3
  59. package/lib/src/shared/content-settings/components/draggable-item-list/DraggableItemList.mixin.d.ts +2 -2
  60. package/lib/src/shared/content-settings/components/draggable-item-list/DraggableItemList.mixin.js +1 -1
  61. package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.d.ts +1 -1
  62. package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.js +4 -3
  63. package/lib/src/shared/content-settings/components/images-field/ImagesField.mixin.d.ts +2 -2
  64. package/lib/src/shared/content-settings/components/images-field/ImagesField.mixin.js +1 -1
  65. package/lib/src/shared/content-settings/components/links-field/LinksField.mixin.d.ts +2 -2
  66. package/lib/src/shared/content-settings/components/links-field/LinksField.mixin.js +1 -1
  67. package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +3 -1
  68. package/lib/src/shared/content-settings/components/shape-field/ShapeField.mixin.d.ts +2 -2
  69. package/lib/src/shared/content-settings/components/shape-field/ShapeField.mixin.js +1 -1
  70. package/lib/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.d.ts +2 -2
  71. package/lib/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.js +1 -1
  72. package/lib/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.d.ts +2 -2
  73. package/lib/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.js +1 -1
  74. package/lib/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.d.ts +2 -2
  75. package/lib/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.js +1 -1
  76. package/lib/src/shared/content-settings/store/content-settings-store.js +3 -3
  77. package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +3 -1
  78. package/lib/src/shared/models.d.ts +0 -1
  79. package/lib/src/shared/my-uploads/MyUploads.mixin.d.ts +1 -1
  80. package/lib/src/shared/my-uploads/MyUploads.mixin.js +3 -2
  81. package/lib/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.d.ts +2 -2
  82. package/lib/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.js +1 -1
  83. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +4 -3
  84. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.js +1 -1
  85. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +5 -3
  86. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.js +1 -1
  87. package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +3 -1
  88. package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +4 -3
  89. package/lib/src/shared/side-bar/components/SideBar.mixin.js +3 -3
  90. package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +4 -3
  91. package/lib/src/shared/style-settings/components/StyleSettings.mixin.js +2 -2
  92. package/lib/src/shared/template-settings/store/template-settings-store.js +8 -9
  93. package/package.json +1 -1
  94. package/src/brand-page-maker/components/action-bar/ActionBar.mixin.ts +1 -1
  95. package/src/brand-page-maker/components/action-bar/ActionBar.vue +1 -1
  96. package/src/brand-page-maker/components/action-bar/ActionBarNavigation.vue +5 -5
  97. package/src/brand-page-maker/components/admin-background-settings/AdminBackgroundSettings.vue +1 -1
  98. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.ts +1 -1
  99. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.ts +7 -7
  100. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.vue +1 -1
  101. package/src/brand-page-maker/components/brand-page-maker/__fixtures__/store-fixture.ts +1 -1
  102. package/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.ts +2 -2
  103. package/src/brand-page-maker/components/brandpage-settings/BrandPageSettings.vue +3 -3
  104. package/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.ts +3 -1
  105. package/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.vue +1 -1
  106. package/src/brand-page-maker/components/navigation/Navigation.mixin.ts +1 -1
  107. package/src/brand-page-maker/components/navigation/Navigation.vue +3 -3
  108. package/src/brand-page-maker/components/rich-text-editor/RichTextEditor.vue +13 -13
  109. package/src/brand-page-maker/components/save-contact/SaveContact.vue +2 -2
  110. package/src/brand-page-maker/components/shop/ReplaceImageSettingsForShop.vue +1 -1
  111. package/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.ts +6 -6
  112. package/src/brand-page-maker/composables/useQuickLinkBarVisibility.test.ts +4 -5
  113. package/src/brand-page-maker/composables/useUndoRedoFlag.ts +4 -2
  114. package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.initialise.test.ts +3 -5
  115. package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.ts +8 -17
  116. package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.test.ts +5 -10
  117. package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +19 -14
  118. package/src/brand-page-maker/stores/ui/ui-store.ts +3 -5
  119. package/src/brand-page-maker/stores/user/user-store.test.ts +0 -35
  120. package/src/brand-page-maker/stores/user/user-store.ts +3 -8
  121. package/src/brand-page-maker/stores/video/video-store.ts +3 -1
  122. package/src/shared/background-settings/components/BackgroundSettings.vue +9 -9
  123. package/src/shared/background-settings/components/MultiBackgroundShapes.vue +7 -7
  124. package/src/shared/background-settings/components/ReplaceImageSettingsForBackgroundSettings.vue +4 -4
  125. package/src/shared/background-settings/components/SingleBackgroundShape.vue +5 -5
  126. package/src/shared/background-settings/components/background-color/BackgroundColorSettings.vue +6 -6
  127. package/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.ts +6 -2
  128. package/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.vue +1 -1
  129. package/src/shared/content-settings/components/button-configuration-field/ButtonConfigurationField.vue +2 -2
  130. package/src/shared/content-settings/components/color-field/ColorField.vue +6 -6
  131. package/src/shared/content-settings/components/color-replacements-field/ColorReplacementsField.vue +9 -7
  132. package/src/shared/content-settings/components/content-settings/ContentSettings.mixin.ts +3 -1
  133. package/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.ts +4 -2
  134. package/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.vue +1 -1
  135. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.ts +4 -4
  136. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.ts +3 -3
  137. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.vue +1 -1
  138. package/src/shared/content-settings/components/draggable-item-list/DraggableItemList.mixin.ts +1 -1
  139. package/src/shared/content-settings/components/draggable-item-list/DraggableItemList.vue +1 -1
  140. package/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.ts +5 -2
  141. package/src/shared/content-settings/components/images-field/ImagesField.mixin.ts +1 -1
  142. package/src/shared/content-settings/components/images-field/ImagesField.vue +1 -1
  143. package/src/shared/content-settings/components/links-field/LinksField.mixin.ts +1 -1
  144. package/src/shared/content-settings/components/links-field/LinksField.vue +1 -1
  145. package/src/shared/content-settings/components/logo-selection-field/LogoSelection.vue +1 -3
  146. package/src/shared/content-settings/components/personalisation-override-field/PersonalisationOverrideField.vue +6 -3
  147. package/src/shared/content-settings/components/replace-image-base-settings/ReplaceImageBaseSettings.vue +2 -2
  148. package/src/shared/content-settings/components/shape-field/ShapeField.mixin.ts +1 -1
  149. package/src/shared/content-settings/components/shape-field/ShapeField.vue +1 -1
  150. package/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.ts +1 -1
  151. package/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.vue +5 -5
  152. package/src/shared/content-settings/components/text-image-field/TextImageField.vue +7 -7
  153. package/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.test.ts +1 -1
  154. package/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.ts +1 -1
  155. package/src/shared/content-settings/components/text-items-field/TextItemsField.vue +2 -2
  156. package/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.ts +1 -1
  157. package/src/shared/content-settings/components/text-style-field/TextStyleField.vue +2 -2
  158. package/src/shared/content-settings/store/content-settings-store.ts +3 -2
  159. package/src/shared/models.ts +0 -1
  160. package/src/shared/my-uploads/MyUploads.mixin.ts +3 -1
  161. package/src/shared/my-uploads/MyUploads.vue +1 -1
  162. package/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.ts +1 -1
  163. package/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.vue +12 -9
  164. package/src/shared/page-settings/components/page-settings/PageSettings.mixin.ts +1 -1
  165. package/src/shared/page-settings/components/page-settings/PageSettings.vue +3 -3
  166. package/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.ts +1 -1
  167. package/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.vue +4 -4
  168. package/src/shared/shape-library/ShapeLibrary.vue +10 -12
  169. package/src/shared/side-bar/components/SideBar.mixin.ts +3 -3
  170. package/src/shared/style-settings/components/StyleSettings.mixin.ts +2 -2
  171. package/src/shared/style-settings/components/StyleSettings.vue +29 -23
  172. package/src/shared/style-settings/components/text-style-options-settings-with-state/TextStyleOptionsSettingsWithState.vue +4 -2
  173. package/src/shared/template-settings/store/template-settings-store.ts +7 -9
@@ -1,5 +1,8 @@
1
1
  <template>
2
- <div v-if="userStore.isAdminMaker && getDefaultAiProperty" class="tw-mt-2">
2
+ <div
3
+ v-if="containerStore.isAdminMaker && getDefaultAiProperty"
4
+ class="tw-mt-2"
5
+ >
3
6
  <div class="tw-border tw-border-solid tw-rounded tw-p-2">
4
7
  <div
5
8
  class="tw-relative tw-flex"
@@ -52,12 +55,12 @@ import {
52
55
  } from '@brand-page/utils/personalisation.util';
53
56
  import {
54
57
  useBrandPageMakerStore,
55
- useBrandPageMakerUserStore,
58
+ useBrandPageContainerStore,
56
59
  } from '@brand-page-maker/stores';
57
60
  import type { PersonalisationMappingType } from '@brand-page/models/user-personalisation.model';
58
61
  import { personalisationOverrideTr } from '@src/composables/useTranslate';
59
62
 
60
- const userStore = useBrandPageMakerUserStore();
63
+ const containerStore = useBrandPageContainerStore();
61
64
  const brandPageMakerStore = useBrandPageMakerStore();
62
65
 
63
66
  const emit = defineEmits(['update:modelValue']);
@@ -128,7 +128,7 @@ const props = defineProps({
128
128
  type: Object as PropType<BrandPageSettingsMode>,
129
129
  required: true,
130
130
  },
131
- isAdmin: {
131
+ isAdminMaker: {
132
132
  type: Boolean,
133
133
  required: true,
134
134
  default: false,
@@ -231,7 +231,7 @@ const tabs = ref<Tab[]>([
231
231
 
232
232
  const enabledTabs = computed(() => {
233
233
  return tabs.value
234
- .filter((x) => x.id !== 'MY_DESIGNS' || !props.isAdmin)
234
+ .filter((x) => x.id !== 'MY_DESIGNS' || !props.isAdminMaker)
235
235
  .filter(
236
236
  (x) =>
237
237
  props.activeTabs.some((y) => y === x.id) &&
@@ -33,7 +33,7 @@ export default defineComponent({
33
33
  type: Object as PropType<LogoTheme>,
34
34
  required: true,
35
35
  },
36
- isAdmin: {
36
+ isAdminMaker: {
37
37
  type: Boolean,
38
38
  required: true,
39
39
  },
@@ -58,7 +58,7 @@
58
58
  : ''
59
59
  "
60
60
  :value="option.item.colorReplacements"
61
- :is-admin="isAdmin"
61
+ :is-admin-maker="isAdminMaker"
62
62
  :logo-theme="logoTheme"
63
63
  :toggle-unique-id="option.index.toString()"
64
64
  @update:model-value="onColorReplacementsChange($event, option.index)"
@@ -43,7 +43,7 @@ export default defineComponent({
43
43
  type: Object as PropType<LogoTheme>,
44
44
  required: true,
45
45
  },
46
- isAdmin: {
46
+ isAdminMaker: {
47
47
  type: Boolean,
48
48
  required: true,
49
49
  },
@@ -51,7 +51,7 @@
51
51
  {{ testimonialMaxLengthErrorMessage }}
52
52
  </p>
53
53
  <PersonalisationOverrideField
54
- v-if="isAdmin && content.personalisationRole"
54
+ v-if="isAdminMaker && content.personalisationRole"
55
55
  :id="id"
56
56
  name="testimonialsOverride"
57
57
  :content="content"
@@ -72,7 +72,7 @@
72
72
  @update:model-value="onRemoveImage(option.index)"
73
73
  />
74
74
  <PersonalisationOverrideField
75
- v-if="isAdmin && content.personalisationRole"
75
+ v-if="isAdminMaker && content.personalisationRole"
76
76
  :id="id"
77
77
  name="imageUrlOverride"
78
78
  :content="content"
@@ -108,7 +108,7 @@
108
108
  : ''
109
109
  "
110
110
  :value="option.item.colorReplacements"
111
- :is-admin="isAdmin"
111
+ :is-admin-maker="isAdminMaker"
112
112
  :logo-theme="logoTheme"
113
113
  :toggle-unique-id="option.index.toString()"
114
114
  @update:model-value="
@@ -136,7 +136,7 @@
136
136
  {{ testimonialMaxLengthErrorMessage }}
137
137
  </p>
138
138
  <PersonalisationOverrideField
139
- v-if="isAdmin && content.personalisationRole"
139
+ v-if="isAdminMaker && content.personalisationRole"
140
140
  :id="id"
141
141
  name="nameOverride"
142
142
  :content="content"
@@ -167,7 +167,7 @@
167
167
  {{ testimonialMaxLengthErrorMessage }}
168
168
  </p>
169
169
  <PersonalisationOverrideField
170
- v-if="isAdmin && content.personalisationRole"
170
+ v-if="isAdminMaker && content.personalisationRole"
171
171
  :id="id"
172
172
  name="positionOverride"
173
173
  :content="content"
@@ -51,7 +51,7 @@
51
51
  />
52
52
 
53
53
  <PersonalisationOverrideField
54
- v-if="isAdmin && content.personalisationRole"
54
+ v-if="isAdminMaker && content.personalisationRole"
55
55
  :id="id"
56
56
  name="imageUrlOverride"
57
57
  :content="content"
@@ -80,7 +80,7 @@
80
80
  : ''
81
81
  "
82
82
  :value="option.item.colorReplacements"
83
- :is-admin="isAdmin"
83
+ :is-admin-maker="isAdminMaker"
84
84
  :logo-theme="logoTheme"
85
85
  :toggle-unique-id="option.index.toString()"
86
86
  @update:model-value="onColorReplacementsChange($event, option.index)"
@@ -106,7 +106,7 @@
106
106
  {{ maxLengthError }}
107
107
  </p>
108
108
  <PersonalisationOverrideField
109
- v-if="isAdmin && content.personalisationRole"
109
+ v-if="isAdminMaker && content.personalisationRole"
110
110
  :id="id"
111
111
  name="titleOverride"
112
112
  :content="content"
@@ -140,7 +140,7 @@
140
140
  @update:model-value="onTextAreaTextChange($event, option.index)"
141
141
  />
142
142
  <PersonalisationOverrideField
143
- v-if="isAdmin && content.personalisationRole"
143
+ v-if="isAdminMaker && content.personalisationRole"
144
144
  :id="id"
145
145
  name="paragraphOverride"
146
146
  :content="content"
@@ -179,7 +179,7 @@
179
179
  {{ maxLengthError }}
180
180
  </p>
181
181
  <PersonalisationOverrideField
182
- v-if="isAdmin && content.personalisationRole"
182
+ v-if="isAdminMaker && content.personalisationRole"
183
183
  :id="id"
184
184
  name="imageTitleOverride"
185
185
  :content="content"
@@ -193,7 +193,7 @@
193
193
  <ButtonConfigurationField
194
194
  :id="id"
195
195
  :index="option.index"
196
- :is-admin="isAdmin"
196
+ :is-admin-maker="isAdminMaker"
197
197
  :button-config="{
198
198
  buttonText: options[option.index].buttonText ?? false,
199
199
  buttonLinkType: options[option.index].buttonLinkType || 'url',
@@ -325,7 +325,7 @@ interface Props {
325
325
  maxLength?: number;
326
326
  logoTheme: LogoTheme;
327
327
  settings: any;
328
- isAdmin: boolean;
328
+ isAdminMaker: boolean;
329
329
  brandPageType?: string;
330
330
  }
331
331
 
@@ -41,7 +41,7 @@ const mountHost = () =>
41
41
  name: 'textItems',
42
42
  content: { id: 'item-1', type: 'text' } as Content,
43
43
  value: [makeTextItem('<p>one</p>'), makeTextItem('<p>two</p>')],
44
- isAdmin: false,
44
+ isAdminMaker: false,
45
45
  logoTheme: {
46
46
  logoTextColor: '#000000',
47
47
  logoBackgroundColor: '#ffffff',
@@ -43,7 +43,7 @@ export default defineComponent({
43
43
  type: Array as PropType<TextItem[]>,
44
44
  required: true,
45
45
  },
46
- isAdmin: {
46
+ isAdminMaker: {
47
47
  type: Boolean,
48
48
  required: true,
49
49
  },
@@ -43,7 +43,7 @@
43
43
  @update:model-value="onTextAreaTextChange($event, option.index)"
44
44
  />
45
45
  <PersonalisationOverrideField
46
- v-if="isAdmin && content.personalisationRole"
46
+ v-if="isAdminMaker && content.personalisationRole"
47
47
  :id="id"
48
48
  name="textOverride"
49
49
  :content="content"
@@ -57,7 +57,7 @@
57
57
  v-if="!showRichTextEditor"
58
58
  :id="`text-style-field-${option.index}`"
59
59
  :key="`text-style-field-${option.index}`"
60
- :is-admin="isAdmin"
60
+ :is-admin-maker="isAdminMaker"
61
61
  :value="options[option.index].textStyle"
62
62
  :logo-theme="logoTheme"
63
63
  :show-font-style-only="true"
@@ -83,7 +83,7 @@ export default defineComponent({
83
83
  type: Object as PropType<TextStyleDeclaration>,
84
84
  required: true,
85
85
  },
86
- isAdmin: {
86
+ isAdminMaker: {
87
87
  type: Boolean,
88
88
  required: true,
89
89
  },
@@ -134,7 +134,7 @@
134
134
  :name="name"
135
135
  :value="textColorValue"
136
136
  :options="textColorOptions"
137
- :is-admin="isAdmin"
137
+ :is-admin-maker="isAdminMaker"
138
138
  :logo-theme="logoTheme"
139
139
  :is-toggled="false"
140
140
  :disable-transparent="true"
@@ -153,7 +153,7 @@
153
153
  :name="name"
154
154
  :value="textBackgroundColorValue"
155
155
  :options="textBackgroundColorOptions"
156
- :is-admin="isAdmin"
156
+ :is-admin-maker="isAdminMaker"
157
157
  :logo-theme="logoTheme"
158
158
  :is-toggled="false"
159
159
  @update:model-value="onSelectBackgroundColor"
@@ -34,6 +34,7 @@ import {
34
34
  useUiStore,
35
35
  useBrandPageMakerUserStore,
36
36
  useBrandPageMakerStore,
37
+ useBrandPageContainerStore,
37
38
  useVideoStore,
38
39
  } from '@brand-page-maker/stores';
39
40
  import { useHistoryStore } from '@brand-page-maker/stores/history/history-store';
@@ -918,7 +919,7 @@ export const useUiContentSettingsStore = defineStore('uiContentSettings', {
918
919
  },
919
920
 
920
921
  validateItem(payload: ValidateItemPayload): void {
921
- const userStore = useBrandPageMakerUserStore();
922
+ const containerStore = useBrandPageContainerStore();
922
923
 
923
924
  const item = this.items.find((i) => i.id === payload.id);
924
925
 
@@ -951,7 +952,7 @@ export const useUiContentSettingsStore = defineStore('uiContentSettings', {
951
952
  return;
952
953
  }
953
954
 
954
- let genericValidator: Validator = userStore.isAdminMaker
955
+ let genericValidator: Validator = containerStore.isAdminMaker
955
956
  ? adminValidatorsDict[
956
957
  fieldTypeAssessor !== undefined ? fieldType : fieldConfig.type
957
958
  ]
@@ -3,7 +3,6 @@ import type { UIUserFeatures } from '../constants/ui';
3
3
 
4
4
  export interface UIUserState {
5
5
  isAdmin: boolean;
6
- isAdminMaker: boolean;
7
6
  features: UIUserFeatures;
8
7
  }
9
8
 
@@ -7,6 +7,7 @@ import type { MediaFile } from '../../clients/models';
7
7
  import { DEFAULT_UPLOAD_FILE_LIMIT } from '../../constants/ui';
8
8
  import {
9
9
  useBrandPageMakerUserStore,
10
+ useBrandPageContainerStore,
10
11
  useUiStore,
11
12
  } from '@brand-page-maker/stores';
12
13
  import { formatKilobytes } from '@brand-page-maker/utils/file-size.util';
@@ -58,6 +59,7 @@ export default defineComponent({
58
59
  setup() {
59
60
  const uiStore = useUiStore();
60
61
  const userStore = useBrandPageMakerUserStore();
62
+ const containerStore = useBrandPageContainerStore();
61
63
 
62
64
  const dropzoneImageUploaderRef = ref<InstanceType<
63
65
  typeof DropzoneImageUploader
@@ -67,7 +69,7 @@ export default defineComponent({
67
69
  dropzoneImageUploaderRef,
68
70
  endpoints: computed(() => uiStore.endpoints),
69
71
  uiStore,
70
- isAdmin: computed(() => !!userStore.isAdminMaker),
72
+ isAdminMaker: computed(() => !!containerStore.isAdminMaker),
71
73
  isLoggedIn: computed(() => !!userStore.emailAddress),
72
74
  };
73
75
  },
@@ -1,6 +1,6 @@
1
1
  <!-- eslint-disable vue/no-deprecated-slot-attribute -->
2
2
  <template>
3
- <LoginRequiredMessage v-if="!isLoggedIn && !isAdmin" />
3
+ <LoginRequiredMessage v-if="!isLoggedIn && !isAdminMaker" />
4
4
  <div v-else>
5
5
  <DropzoneImageUploader
6
6
  ref="dropzoneImageUploaderRef"
@@ -25,7 +25,7 @@ export default defineComponent({
25
25
  type: Array as PropType<NavigationStyleConfig[]>,
26
26
  required: true,
27
27
  },
28
- isAdmin: {
28
+ isAdminMaker: {
29
29
  type: Boolean,
30
30
  required: true,
31
31
  },
@@ -13,7 +13,7 @@
13
13
  id="navigation-hamburger-default-button-style"
14
14
  key="navigation-hamburger-default-button-style"
15
15
  name="Default text style"
16
- :is-admin="isAdmin"
16
+ :is-admin-maker="isAdminMaker"
17
17
  :label="commonTr('defaultTextStyle')"
18
18
  :logo-theme="logoTheme"
19
19
  :value="value.hamburgerMenuStyle.defaultButtonStyle"
@@ -24,7 +24,7 @@
24
24
  id="navigation-default-button-style"
25
25
  key="navigation-default-button-style"
26
26
  name="Default text style"
27
- :is-admin="isAdmin"
27
+ :is-admin-maker="isAdminMaker"
28
28
  :label="commonTr('defaultTextStyle')"
29
29
  :logo-theme="logoTheme"
30
30
  :value="value.defaultButtonStyle"
@@ -41,8 +41,8 @@
41
41
  :key="index"
42
42
  class="tw-flex tw-justify-between tw-w-full"
43
43
  :class="{
44
- 'tw-items-start': isAdmin,
45
- 'tw-items-center': !isAdmin,
44
+ 'tw-items-start': isAdminMaker,
45
+ 'tw-items-center': !isAdminMaker,
46
46
  'tw-mb-4': index < navigationStyleOptions.length - 1,
47
47
  }"
48
48
  >
@@ -50,12 +50,12 @@
50
50
  <p
51
51
  class="tw-font-sans tw-font-bold tw-text-secondary-800 tw-text-sm tw-break-words"
52
52
  :class="{
53
- 'tw-mb-2': isAdmin,
53
+ 'tw-mb-2': isAdminMaker,
54
54
  }"
55
55
  >
56
56
  {{ navigationStyleConfigOptionTitles[option] }}
57
57
  </p>
58
- <div v-if="isAdmin">
58
+ <div v-if="isAdminMaker">
59
59
  <Toggle
60
60
  :id="`${option}-color-matched`"
61
61
  :model-value="isOptionColorMatched(option)"
@@ -69,14 +69,14 @@
69
69
 
70
70
  <!-- Start style option color picker -->
71
71
  <div
72
- v-if="(isAdmin && !isOptionColorMatched(option)) || !isAdmin"
72
+ v-if="(isAdminMaker && !isOptionColorMatched(option)) || !isAdminMaker"
73
73
  class="tw-flex-none"
74
74
  >
75
75
  <ColorField
76
76
  id="navigationStyle"
77
77
  name="navigationStyle"
78
78
  :value="colorPickerValue(option)"
79
- :is-admin="isAdmin"
79
+ :is-admin-maker="isAdminMaker"
80
80
  :is-toggled="false"
81
81
  :logo-theme="logoTheme"
82
82
  :disable-transparent="
@@ -89,7 +89,10 @@
89
89
  <!-- End style option color picker -->
90
90
 
91
91
  <!-- Start Admin Style Theme Key Select -->
92
- <div v-if="isAdmin && isOptionColorMatched(option)" class="tw-flex-none">
92
+ <div
93
+ v-if="isAdminMaker && isOptionColorMatched(option)"
94
+ class="tw-flex-none"
95
+ >
93
96
  <select
94
97
  class="c-select c-button-style tw-border tw-appearance-none tw-border-none tw-h-10 tw-pl-2 tw-pr-8 tw-rounded tw-cursor-pointer tw-transition-all tw-duration-300 tw-bg-white"
95
98
  @change.stop="onColorPickerInput(option, $event.target.value)"
@@ -231,7 +231,7 @@ export default defineComponent({
231
231
  ),
232
232
  sections: computed(() => pageSettingsStore.sections),
233
233
  features: computed(() => userStore.features),
234
- isAdmin: computed(() => userStore.isAdminMaker),
234
+ isAdminMaker: computed(() => brandPageContainerStore.isAdminMaker),
235
235
  isBrandSite: computed(() => brandPageMakerStore.isBrandSite),
236
236
  navigationStyleTypeConfigs: computed(
237
237
  () => navigationSettingsStore.navigationStyleTypeConfigs,
@@ -49,7 +49,7 @@
49
49
  >
50
50
  <PageSettingsSectionStyles
51
51
  section-name="header"
52
- :is-admin="isAdmin"
52
+ :is-admin-maker="isAdminMaker"
53
53
  :is-brand-site="isBrandSite"
54
54
  :logo-theme="logoTheme"
55
55
  :style-options="headerPageSectionStyleOptions"
@@ -66,14 +66,14 @@
66
66
  <PageSettingsSectionStyles
67
67
  section-name="footer"
68
68
  :font-settings-options="footerFontSettingsOptions"
69
- :is-admin="isAdmin"
69
+ :is-admin-maker="isAdminMaker"
70
70
  :is-brand-site="isBrandSite"
71
71
  :logo-theme="logoTheme"
72
72
  :style-options="footerPageSectionStyleOptions"
73
73
  />
74
74
 
75
75
  <div
76
- v-if="!isAdmin && !isPrePurchase && showBrandCrowdLogo"
76
+ v-if="!isAdminMaker && !isPrePurchase && showBrandCrowdLogo"
77
77
  class="tw-flex tw-items-center tw-justify-between tw-cursor-pointer"
78
78
  @click="onHideBrandPageLogoClickFromFooter"
79
79
  >
@@ -75,7 +75,7 @@ export default defineComponent({
75
75
  required: false,
76
76
  default: () => [],
77
77
  },
78
- isAdmin: {
78
+ isAdminMaker: {
79
79
  type: Boolean,
80
80
  required: true,
81
81
  },
@@ -85,7 +85,7 @@
85
85
 
86
86
  <NavigationStyleSettings
87
87
  :available-navigation-style-configs="availableNavigationStyleConfigs"
88
- :is-admin="isAdmin"
88
+ :is-admin-maker="isAdminMaker"
89
89
  :logo-theme="logoTheme"
90
90
  :value="navigation"
91
91
  @option-value-change="handleHeaderNavigationStyleOptionValueChange"
@@ -155,7 +155,7 @@
155
155
  :font-family-options="availableTextFontFamilyOptions"
156
156
  :value="fontStyle(option.propName)"
157
157
  :show-text-alignment-options="false"
158
- :is-admin="isAdmin"
158
+ :is-admin-maker="isAdminMaker"
159
159
  :logo-theme="logoTheme"
160
160
  @update:model-value="setTextStyleOption(option.propName, $event)"
161
161
  />
@@ -173,7 +173,7 @@
173
173
  name="fill"
174
174
  :label="commonTr('iconColor')"
175
175
  :value="iconColor"
176
- :is-admin="isAdmin"
176
+ :is-admin-maker="isAdminMaker"
177
177
  :logo-theme="logoTheme"
178
178
  :toggle-unique-id="sectionName"
179
179
  :disable-transparent="true"
@@ -194,7 +194,7 @@
194
194
  name="backgroundColor"
195
195
  :label="commonTr('backgroundColor')"
196
196
  :value="backgroundColor"
197
- :is-admin="isAdmin"
197
+ :is-admin-maker="isAdminMaker"
198
198
  :logo-theme="logoTheme"
199
199
  :toggle-unique-id="sectionName"
200
200
  @update:model-value="onSelectColor"
@@ -75,7 +75,7 @@
75
75
  <img :src="shape.url" alt="" />
76
76
  </figure>
77
77
  <div
78
- v-if="isAdmin && !shape.isEnabledToAdmin"
78
+ v-if="isAdminMaker && !shape.isEnabledToAdmin"
79
79
  class="tw-absolute tw-text-sm tw-w-full tw-h-full tw-top-0 tw-flex tw-items-end tw-justify-center"
80
80
  >
81
81
  <span class="tw-text-error-500 tw-mb-1">{{
@@ -94,7 +94,7 @@
94
94
  @click="handleShapeOrShapeCollectionSelection(shape)"
95
95
  >
96
96
  <div
97
- v-if="shape.numberOfVariants > 1 && !isAdmin"
97
+ v-if="shape.numberOfVariants > 1 && !isAdminMaker"
98
98
  class="tw-absolute tw-top-2 tw-right-2 tw-bg-grayscale-600 tw-rounded-full tw-flex tw-items-center tw-justify-center tw-h-5 tw-w-5 tw-z-5"
99
99
  >
100
100
  <span class="tw-text-xs tw-text-white">{{
@@ -105,7 +105,7 @@
105
105
  <img :src="shape.url" alt="" />
106
106
  </figure>
107
107
  <div
108
- v-if="isAdmin && !shape.isEnabledToAdmin"
108
+ v-if="isAdminMaker && !shape.isEnabledToAdmin"
109
109
  class="tw-absolute tw-text-sm tw-w-full tw-h-full tw-top-0 tw-flex tw-items-end tw-justify-center"
110
110
  >
111
111
  <span class="tw-text-error-500 tw-mb-1">{{
@@ -176,7 +176,6 @@ import {
176
176
  import {
177
177
  useBrandPageContainerStore,
178
178
  useBrandPageMakerStore,
179
- useBrandPageMakerUserStore,
180
179
  useUiStore,
181
180
  } from '@brand-page-maker/stores';
182
181
  import { useUiSideBarStore } from '@shared/side-bar/store/side-bar-store';
@@ -191,15 +190,14 @@ import debounce from 'lodash.debounce';
191
190
  const uiStore = useUiStore();
192
191
  const containerStore = useBrandPageContainerStore();
193
192
  const makerStore = useBrandPageMakerStore();
194
- const makerUserStore = useBrandPageMakerUserStore();
195
193
  const sidebarStore = useUiSideBarStore();
196
194
 
197
- const isAdmin = computed(() => makerUserStore.isAdminMaker);
195
+ const isAdminMaker = computed(() => containerStore.isAdminMaker);
198
196
  const isBackgroundTab = computed(
199
197
  () => sidebarStore.selectedTabName === 'BackgroundSettings',
200
198
  );
201
199
  const makerMode = computed(() =>
202
- makerUserStore.isAdminMaker
200
+ containerStore.isAdminMaker
203
201
  ? `admin_${makerStore.brandPageType.toLocaleLowerCase()}`
204
202
  : makerStore.brandPageType.toLocaleLowerCase(),
205
203
  );
@@ -259,7 +257,7 @@ async function getShapesCategories() {
259
257
  locale,
260
258
  )) as ShapeCategoryModel[];
261
259
  shapeLibraryCategories.value = categories.filter(
262
- (shape) => isAdmin.value || shape.isEnabled,
260
+ (shape) => isAdminMaker.value || shape.isEnabled,
263
261
  );
264
262
  } catch (e) {
265
263
  if (process.env.NODE_ENV !== 'production') console.error(e);
@@ -281,7 +279,7 @@ async function getShapes() {
281
279
  currentPageSize.value,
282
280
  locale,
283
281
  makerMode.value,
284
- isAdmin.value,
282
+ isAdminMaker.value,
285
283
  )) as ShapeSearchResponseModel;
286
284
  totalPageSize.value += newShapes.items.length;
287
285
  if (!shapeLibrary.value || !shapeLibrary.value.items) {
@@ -327,7 +325,7 @@ async function onCategoryClicked(shapeCategory: ShapeCategoryModel) {
327
325
  currentPageSize.value,
328
326
  locale,
329
327
  makerMode.value,
330
- isAdmin.value,
328
+ isAdminMaker.value,
331
329
  )) as ShapeSearchResponseModel;
332
330
  totalPageSize.value += res.items.length;
333
331
  if (!shapeLibrary.value || !shapeLibrary.value.items) {
@@ -372,7 +370,7 @@ async function handleShapeOrShapeCollectionSelection(shape: any) {
372
370
  if (
373
371
  shape.numberOfVariants > 1 &&
374
372
  shape.shapeCollectionToken &&
375
- !isAdmin.value
373
+ !isAdminMaker.value
376
374
  ) {
377
375
  try {
378
376
  const shapeCollection =
@@ -403,7 +401,7 @@ async function searchShapes() {
403
401
  currentPageSize.value,
404
402
  locale,
405
403
  makerMode.value,
406
- isAdmin.value,
404
+ isAdminMaker.value,
407
405
  )) as ShapeSearchResponseModel;
408
406
  totalPageSize.value += res.items.length;
409
407
  if (!shapeLibrary.value || !shapeLibrary.value.items) {
@@ -38,7 +38,7 @@ export default defineComponent({
38
38
  brandPageContainerStore,
39
39
  tabs: computed(() => sideBarStore.tabs),
40
40
  selectedTabName: computed(() => sideBarStore.selectedTabName),
41
- isAdmin: computed(() => userStore.isAdminMaker),
41
+ isAdminMaker: computed(() => brandPageContainerStore.isAdminMaker),
42
42
  contentSettingsMode: computed(() => contentSettingsStore.mode),
43
43
  contentSettingsSelectedItemId: computed(
44
44
  () => contentSettingsStore.selectedItemId,
@@ -91,11 +91,11 @@ export default defineComponent({
91
91
  return false;
92
92
  }
93
93
 
94
- if (this.isAdmin && tab.isDisabledForAdmin) {
94
+ if (this.isAdminMaker && tab.isDisabledForAdmin) {
95
95
  return false;
96
96
  }
97
97
 
98
- if (!this.isAdmin && tab.isEnabledForAdminOnly === true) {
98
+ if (!this.isAdminMaker && tab.isEnabledForAdminOnly === true) {
99
99
  return false;
100
100
  }
101
101
 
@@ -69,7 +69,7 @@ export default defineComponent({
69
69
  isDefaultTextColorRequired: computed(
70
70
  () => uiStore.isDefaultTextColorRequired,
71
71
  ),
72
- isAdmin: computed(() => userStore.isAdminMaker),
72
+ isAdminMaker: computed(() => brandPageContainerStore.isAdminMaker),
73
73
  brandPageType: computed(() => brandPageMakerStore.brandPageType),
74
74
  showBrandCrowdLogo: computed(
75
75
  () => brandPageMakerStore.showBrandCrowdLogo,
@@ -143,7 +143,7 @@ export default defineComponent({
143
143
  },
144
144
  },
145
145
  created() {
146
- if (this.isAdmin) {
146
+ if (this.isAdminMaker) {
147
147
  // check if the buttons styles are color matched
148
148
  Object.keys(this.isColorMatch).forEach((k) => {
149
149
  this.isColorMatch[k] =