@designcrowd/library.brand-page 6.1.6-use-isadminmaker-1 → 6.1.6-use-isadminmaker-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 (109) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-Dd_GKG2N.js → CreatedOnBrandCrowd-de-de-CPLDYp5f.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-Dins7rod.js → CreatedOnBrandCrowd-en-us-Br3HqLLr.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-D-ie39pg.js → CreatedOnBrandCrowd-es-es-DwkIQVgN.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-CbgslN2_.js → CreatedOnBrandCrowd-fr-ca-DqeI8mF_.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-CbgslN2_.js → CreatedOnBrandCrowd-fr-fr-DqeI8mF_.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-OMePx480.js → CreatedOnBrandCrowd-pt-br-bvgq_CN8.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-OMePx480.js → CreatedOnBrandCrowd-pt-pt-bvgq_CN8.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-BJc1FMjI.js → CreatedOnDcom-de-de-nT3MnRXy.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-DoLdNglw.js → CreatedOnDcom-en-us-D2TYrEzJ.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-BG1UvnwD.js → CreatedOnDcom-es-es-Q-5tnP12.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-DzZkCm3Z.js → CreatedOnDcom-fr-ca-txkwqCzm.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-9vEmBWv1.js → CreatedOnDcom-fr-fr-CUnJXLgr.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-B5-fW01S.js → CreatedOnDcom-pt-br-7XAwvP9H.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-CNCPHKgi.js → CreatedOnDcom-pt-pt-DjhLiioZ.js} +1 -1
  15. package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.d.ts +0 -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 +3 -2
  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 +1 -1
  20. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +3 -1
  21. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.js +1 -1
  22. package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.d.ts +0 -1
  23. package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.js +3 -2
  24. package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.d.ts +3 -1
  25. package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +3 -1
  26. package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +3 -1
  27. package/lib/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.d.ts +3 -1
  28. package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +3 -2
  29. package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.js +1 -1
  30. package/lib/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.d.ts +3 -1
  31. package/lib/src/brand-page-maker/composables/useUndoRedoFlag.d.ts +1 -1
  32. package/lib/src/brand-page-maker/composables/useUndoRedoFlag.js +4 -2
  33. package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.d.ts +5 -2
  34. package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.js +5 -12
  35. package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +13 -14
  36. package/lib/src/brand-page-maker/stores/ui/ui-store.js +3 -5
  37. package/lib/src/brand-page-maker/stores/user/user-store.d.ts +0 -1
  38. package/lib/src/brand-page-maker/stores/user/user-store.js +3 -8
  39. package/lib/src/brand-page-maker/stores/video/video-store.js +3 -1
  40. package/lib/src/css/library.brand-page-brandCrowd.min.css +40 -40
  41. package/lib/src/css/library.brand-page-brandPage.min.css +40 -40
  42. package/lib/src/css/library.brand-page-designCom.min.css +40 -40
  43. package/lib/src/css/library.brand-page-preview.min.css +40 -40
  44. package/lib/src/index.mjs +1 -1
  45. package/lib/src/{lib-Cq0WlFYO.js → lib-dewphkuW.js} +8493 -8500
  46. package/lib/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.d.ts +0 -1
  47. package/lib/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.js +3 -2
  48. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.js +3 -2
  49. package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +0 -1
  50. package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.js +3 -2
  51. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.js +3 -3
  52. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +0 -1
  53. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.js +1 -1
  54. package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.js +3 -2
  55. package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +3 -1
  56. package/lib/src/shared/content-settings/store/content-settings-store.js +3 -3
  57. package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +3 -1
  58. package/lib/src/shared/models.d.ts +0 -1
  59. package/lib/src/shared/my-uploads/MyUploads.mixin.js +3 -2
  60. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +3 -2
  61. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.js +1 -1
  62. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +3 -1
  63. package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +3 -1
  64. package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +3 -2
  65. package/lib/src/shared/side-bar/components/SideBar.mixin.js +1 -1
  66. package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +3 -2
  67. package/lib/src/shared/style-settings/components/StyleSettings.mixin.js +1 -1
  68. package/lib/src/shared/template-settings/store/template-settings-store.js +8 -9
  69. package/package.json +1 -1
  70. package/src/brand-page-maker/components/action-bar/ActionBar.mixin.ts +1 -1
  71. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.ts +1 -1
  72. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.ts +1 -1
  73. package/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.ts +1 -1
  74. package/src/brand-page-maker/components/brandpage-settings/BrandPageSettings.vue +1 -1
  75. package/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.ts +3 -1
  76. package/src/brand-page-maker/components/rich-text-editor/RichTextEditor.vue +3 -3
  77. package/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.ts +1 -1
  78. package/src/brand-page-maker/composables/useQuickLinkBarVisibility.test.ts +4 -5
  79. package/src/brand-page-maker/composables/useUndoRedoFlag.ts +4 -2
  80. package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.initialise.test.ts +3 -5
  81. package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.ts +8 -17
  82. package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.test.ts +5 -10
  83. package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +19 -14
  84. package/src/brand-page-maker/stores/ui/ui-store.ts +3 -5
  85. package/src/brand-page-maker/stores/user/user-store.test.ts +0 -35
  86. package/src/brand-page-maker/stores/user/user-store.ts +3 -8
  87. package/src/brand-page-maker/stores/video/video-store.ts +3 -1
  88. package/src/shared/background-settings/components/BackgroundSettings.vue +3 -3
  89. package/src/shared/background-settings/components/MultiBackgroundShapes.vue +3 -3
  90. package/src/shared/background-settings/components/ReplaceImageSettingsForBackgroundSettings.vue +3 -3
  91. package/src/shared/background-settings/components/SingleBackgroundShape.vue +3 -3
  92. package/src/shared/background-settings/components/background-color/BackgroundColorSettings.vue +3 -3
  93. package/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.ts +6 -2
  94. package/src/shared/content-settings/components/content-settings/ContentSettings.mixin.ts +3 -1
  95. package/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.ts +3 -1
  96. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.ts +3 -3
  97. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.ts +1 -1
  98. package/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.ts +4 -1
  99. package/src/shared/content-settings/components/logo-selection-field/LogoSelection.vue +1 -3
  100. package/src/shared/content-settings/components/personalisation-override-field/PersonalisationOverrideField.vue +6 -3
  101. package/src/shared/content-settings/store/content-settings-store.ts +3 -2
  102. package/src/shared/models.ts +0 -1
  103. package/src/shared/my-uploads/MyUploads.mixin.ts +3 -1
  104. package/src/shared/page-settings/components/page-settings/PageSettings.mixin.ts +1 -1
  105. package/src/shared/shape-library/ShapeLibrary.vue +2 -4
  106. package/src/shared/side-bar/components/SideBar.mixin.ts +1 -1
  107. package/src/shared/style-settings/components/StyleSettings.mixin.ts +1 -1
  108. package/src/shared/style-settings/components/text-style-options-settings-with-state/TextStyleOptionsSettingsWithState.vue +3 -1
  109. package/src/shared/template-settings/store/template-settings-store.ts +7 -9
@@ -207,7 +207,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
207
207
  brandPageCommissionPercentage?: number;
208
208
  features?: Partial<import("@brand-page-maker/stores").UserFeatures>;
209
209
  }): void;
210
- setIsAdminMaker(isAdminMaker: boolean): void;
211
210
  }>;
212
211
  backgroundSettingsStore: import("pinia").Store<"uiBackgroundSettings", import("../../store").BackgroundSettingsState, {
213
212
  hasMedia(): boolean;
@@ -5,7 +5,7 @@ import StyleSettingsSection from '../../../style-settings/components/StyleSettin
5
5
  import ColorPicker from '@brand-page-maker/components/color-palette/BpColorPicker.vue';
6
6
  import { hexToRGBA } from '@utils/helpers';
7
7
  import { isColorMatched } from '@brand-page-maker/utils';
8
- import { useBrandPageMakerUserStore } from '@brand-page-maker/stores';
8
+ import { useBrandPageMakerUserStore, useBrandPageContainerStore, } from '@brand-page-maker/stores';
9
9
  export default defineComponent({
10
10
  components: {
11
11
  ColorPicker,
@@ -25,9 +25,10 @@ export default defineComponent({
25
25
  },
26
26
  setup() {
27
27
  const userStore = useBrandPageMakerUserStore();
28
+ const containerStore = useBrandPageContainerStore();
28
29
  const backgroundSettingsStore = useUiBackgroundSettingsStore();
29
30
  return {
30
- isAdmin: computed(() => userStore.isAdminMaker),
31
+ isAdmin: computed(() => containerStore.isAdminMaker),
31
32
  backgroundStyles: computed(() => backgroundSettingsStore.backgroundStyles),
32
33
  userStore,
33
34
  backgroundSettingsStore,
@@ -4,7 +4,7 @@ import { UI_EVENT_SOURCES } from '../../../models';
4
4
  import { PAGE_SETTINGS_SECTIONS, useUiPageSettingsStore, } from '../../../page-settings/store';
5
5
  import { useUiContentSettingsStore } from '../../store';
6
6
  import { CONTENT_SETTINGS_MODES } from '../../store';
7
- import { useBrandPageMakerStore, useBrandPageMakerUserStore, } from '@brand-page-maker/stores';
7
+ import { useBrandPageMakerStore, useBrandPageMakerUserStore, useBrandPageContainerStore, } from '@brand-page-maker/stores';
8
8
  import { SIDE_BAR_CONTENT_ID } from '../../constants';
9
9
  import { SELECT_LOCATIONS, useEventTracker, } from '@brand-page-maker/composables/useEventTracker';
10
10
  import { useExternalRichTextEditor } from '@brand-page-maker/composables/rich-text-editor/useRichTextEditor';
@@ -21,6 +21,7 @@ export default defineComponent({
21
21
  const pageNavigationStore = usePageNavigationStore();
22
22
  const styleSettingsStore = useUiStyleSettingsStore();
23
23
  const userStore = useBrandPageMakerUserStore();
24
+ const containerStore = useBrandPageContainerStore();
24
25
  const eventTracker = useEventTracker();
25
26
  const historyStore = useHistoryStore();
26
27
  const { externalEditor } = useExternalRichTextEditor();
@@ -31,7 +32,7 @@ export default defineComponent({
31
32
  activeCategoryTab: computed(() => contentSettingsStore.activeCategoryTab),
32
33
  isBrandSite: computed(() => brandPageMakerStore.isBrandSite),
33
34
  contentSettingsSelectedItemId: computed(() => contentSettingsStore.selectedItemId),
34
- isAdmin: computed(() => userStore.isAdminMaker),
35
+ isAdmin: computed(() => containerStore.isAdminMaker),
35
36
  canUseRichTextEditor: computed(() => userStore.features.canUseRichTextEditor),
36
37
  brandPageMakerStore,
37
38
  contentSettingsStore,
@@ -497,7 +497,6 @@ declare const _default: import("vue").DefineComponent<{}, {
497
497
  brandPageCommissionPercentage?: number;
498
498
  features?: Partial<import("@brand-page-maker/stores").UserFeatures>;
499
499
  }): void;
500
- setIsAdminMaker(isAdminMaker: boolean): void;
501
500
  }>;
502
501
  pageSettingsStore: import("pinia").Store<"uiPageSettings", import("../../../page-settings/store").PageSettingsState, {
503
502
  getFirstOrDefaultPage(): import("../../../page-settings/models").ContentPage;
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, computed } from 'vue';
2
2
  import { ReplaceImageSettingsTabIds } from '../../models';
3
3
  import { useUiContentSettingsStore } from '../../store';
4
- import { useBrandPageMakerUserStore, useBrandPageMakerStore, useVideoStore, GETTY_VIDEO_LIMIT_FOR_SITE, } from '@brand-page-maker/stores';
4
+ import { useBrandPageMakerUserStore, useBrandPageContainerStore, useBrandPageMakerStore, useVideoStore, GETTY_VIDEO_LIMIT_FOR_SITE, } from '@brand-page-maker/stores';
5
5
  import { UI_EVENT_SOURCES } from '../../../models';
6
6
  import { useUiPageSettingsStore } from '../../../page-settings/store';
7
7
  import { MEDIA_TYPES } from '@brand-page';
@@ -12,6 +12,7 @@ export default defineComponent({
12
12
  const brandPageMakerStore = useBrandPageMakerStore();
13
13
  const contentSettingsStore = useUiContentSettingsStore();
14
14
  const userStore = useBrandPageMakerUserStore();
15
+ const containerStore = useBrandPageContainerStore();
15
16
  const pageSettingsStore = useUiPageSettingsStore();
16
17
  const videoStore = useVideoStore();
17
18
  const bpEventTracker = useEventTracker();
@@ -24,7 +25,7 @@ export default defineComponent({
24
25
  selectedItemValue: computed(() => contentSettingsStore.selectedItemValue),
25
26
  contentType: computed(() => contentSettingsStore.selectedItemTemplate?.type),
26
27
  mode: computed(() => contentSettingsStore.mode),
27
- isAdmin: computed(() => userStore.isAdminMaker),
28
+ isAdmin: computed(() => containerStore.isAdminMaker),
28
29
  contentSettingsStore,
29
30
  userStore,
30
31
  pageSettingsStore,
@@ -5,7 +5,7 @@ import { getContentSettingDisplayName, getContentSettingsFields, getContentSetti
5
5
  import { UI_EVENT_SOURCES } from '../../../models';
6
6
  import { useUiContentSettingsStore, CONTENT_SETTINGS_MODES } from '../../store';
7
7
  import { SIDE_BAR_CONTENT_ID } from '../../constants';
8
- import { useBrandPageMakerStore, useBrandPageMakerUserStore, useRouteStore, useUiStore, } from '@brand-page-maker/stores';
8
+ import { useBrandPageMakerStore, useBrandPageContainerStore, useRouteStore, useUiStore, } from '@brand-page-maker/stores';
9
9
  import { BRAND_PAGE_TYPES, CONTENT_TYPES, MEDIA_SIZES, } from '@brand-page';
10
10
  import { EVENTS, SELECT_LOCATIONS, useEventTracker, } from '@brand-page-maker/composables/useEventTracker';
11
11
  import debounce from 'lodash.debounce';
@@ -33,7 +33,7 @@ export default defineComponent({
33
33
  const sideBarStore = useUiSideBarStore();
34
34
  const brandPageMakerStore = useBrandPageMakerStore();
35
35
  const uiStore = useUiStore();
36
- const userStore = useBrandPageMakerUserStore();
36
+ const containerStore = useBrandPageContainerStore();
37
37
  const routeStore = useRouteStore();
38
38
  const eventTracker = useEventTracker();
39
39
  return {
@@ -43,7 +43,7 @@ export default defineComponent({
43
43
  brandPageData: computed(() => brandPageMakerStore.brandPageData),
44
44
  getValue: computed(() => contentSettingsStore.getValue),
45
45
  isPersonalisationEnabled: computed(() => uiStore.isPersonalisationEnabled),
46
- isAdmin: computed(() => userStore.isAdminMaker),
46
+ isAdmin: computed(() => containerStore.isAdminMaker),
47
47
  contentSettingsStore,
48
48
  sideBarStore,
49
49
  eventTracker,
@@ -668,7 +668,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
668
668
  brandPageCommissionPercentage?: number;
669
669
  features?: Partial<import("@brand-page-maker/stores").UserFeatures>;
670
670
  }): void;
671
- setIsAdminMaker(isAdminMaker: boolean): void;
672
671
  }>;
673
672
  uiStore: import("pinia").Store<"ui", import("../../../models").UIRootState, {
674
673
  endpoints: () => import("../../../models").Endpoints;
@@ -49,7 +49,7 @@ export default defineComponent({
49
49
  getContent: computed(() => contentSettingsStore.getContent),
50
50
  getValue: computed(() => contentSettingsStore.getValue),
51
51
  brandPageData: computed(() => brandPageMakerStore.brandPageData),
52
- isAdmin: computed(() => userStore.isAdminMaker),
52
+ isAdmin: computed(() => brandPageContainerStore.isAdminMaker),
53
53
  isDesignCom: computed(() => brandPageContainerStore.isDesignCom),
54
54
  canUseRichTextEditor: computed(() => userStore.features.canUseRichTextEditor),
55
55
  brandPageType: computed(() => brandPageMakerStore.brandPageType),
@@ -2,7 +2,7 @@ import { defineComponent, computed } from 'vue';
2
2
  import { getContentSettingsFields, getContentSettingsTemplate, } from '@shared/content-settings/utils';
3
3
  import { UI_EVENT_SOURCES } from '../../../models';
4
4
  import { useUiContentSettingsStore } from '../../store';
5
- import { useBrandPageMakerStore, useBrandPageMakerUserStore, useRouteStore, useUiStore, } from '@brand-page-maker/stores';
5
+ import { useBrandPageMakerStore, useBrandPageMakerUserStore, useBrandPageContainerStore, useRouteStore, useUiStore, } from '@brand-page-maker/stores';
6
6
  import { BRAND_PAGE_TYPES, MEDIA_SIZES, } from '@brand-page';
7
7
  import { buildRelativePathFromParams } from '@brand-page/utils/route.util';
8
8
  import { isRTEManagedStyleField } from '@brand-page-maker/utils';
@@ -17,6 +17,7 @@ export default defineComponent({
17
17
  const _pageSettingsStore = useUiPageSettingsStore();
18
18
  const _styleSettingsStore = useUiStyleSettingsStore();
19
19
  const userStore = useBrandPageMakerUserStore();
20
+ const containerStore = useBrandPageContainerStore();
20
21
  const uiStore = useUiStore();
21
22
  const routeStore = useRouteStore();
22
23
  const { externalEditor } = useExternalRichTextEditor();
@@ -29,7 +30,7 @@ export default defineComponent({
29
30
  getItemGroupState: computed(() => contentSettingsStore.getItemGroupState),
30
31
  brandPageData: computed(() => brandPageMakerStore.brandPageData),
31
32
  isPersonalisationEnabled: computed(() => uiStore.isPersonalisationEnabled),
32
- isAdmin: computed(() => userStore.isAdminMaker),
33
+ isAdmin: computed(() => containerStore.isAdminMaker),
33
34
  canUseRichTextEditor: computed(() => userStore.features.canUseRichTextEditor),
34
35
  externalEditor,
35
36
  contentSettingsStore,
@@ -24,7 +24,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
24
24
  brandPageContainerStore: import("pinia").Store<"brandPageContainer", import("@brand-page-maker/stores").BrandPageContainerState, {
25
25
  brandPageContentTypes(): string[];
26
26
  isAdmin(): boolean;
27
- isAdminMaker(): boolean;
28
27
  isPublished: (state: {
29
28
  availableTaxes: any[];
30
29
  brandPageBaseUrl: string;
@@ -61,6 +60,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
61
60
  isUpgradeModalVisible: boolean;
62
61
  isPublishing: boolean;
63
62
  isProduction: boolean;
63
+ isAdminMaker: boolean;
64
64
  isSellDomainNameEnabled: boolean;
65
65
  isStripeOnboardingModalVisible: boolean;
66
66
  isReactivationModal: boolean;
@@ -155,6 +155,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
155
155
  isUpgradeModalVisible: boolean;
156
156
  isPublishing: boolean;
157
157
  isProduction: boolean;
158
+ isAdminMaker: boolean;
158
159
  isSellDomainNameEnabled: boolean;
159
160
  isStripeOnboardingModalVisible: boolean;
160
161
  isReactivationModal: boolean;
@@ -249,6 +250,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
249
250
  isUpgradeModalVisible: boolean;
250
251
  isPublishing: boolean;
251
252
  isProduction: boolean;
253
+ isAdminMaker: boolean;
252
254
  isSellDomainNameEnabled: boolean;
253
255
  isStripeOnboardingModalVisible: boolean;
254
256
  isReactivationModal: boolean;
@@ -3,7 +3,7 @@ import { CONTENT_SETTINGS_CONFIGS, SIDE_BAR_TAB_NAMES, } from '@brand-page-maker
3
3
  import { RESERVED_FIELD_NAMES } from '../constants';
4
4
  import { UI_EVENT_SOURCES } from '../../models';
5
5
  import { CONTENT_SETTINGS_DISPLAY_MODES, ITEM_CATEGORIES, ITEM_CATEGORY_NAMES, } from '@brand-page-maker/models';
6
- import { useUiStore, useBrandPageMakerUserStore, useBrandPageMakerStore, useVideoStore, } from '@brand-page-maker/stores';
6
+ import { useUiStore, useBrandPageMakerUserStore, useBrandPageMakerStore, useBrandPageContainerStore, useVideoStore, } from '@brand-page-maker/stores';
7
7
  import { useHistoryStore } from '@brand-page-maker/stores/history/history-store';
8
8
  import { useUiStyleSettingsStore } from '@shared/style-settings/store';
9
9
  import { useUiSideBarStore } from '../../side-bar/store';
@@ -530,7 +530,7 @@ export const useUiContentSettingsStore = defineStore('uiContentSettings', {
530
530
  this.onContentChanged();
531
531
  },
532
532
  validateItem(payload) {
533
- const userStore = useBrandPageMakerUserStore();
533
+ const containerStore = useBrandPageContainerStore();
534
534
  const item = this.items.find((i) => i.id === payload.id);
535
535
  if (!item) {
536
536
  if (process.env.NODE_ENV !== 'production')
@@ -551,7 +551,7 @@ export const useUiContentSettingsStore = defineStore('uiContentSettings', {
551
551
  if (!fieldConfig) {
552
552
  return;
553
553
  }
554
- let genericValidator = userStore.isAdminMaker
554
+ let genericValidator = containerStore.isAdminMaker
555
555
  ? adminValidatorsDict[fieldTypeAssessor !== undefined ? fieldType : fieldConfig.type]
556
556
  : validatorDict[fieldTypeAssessor !== undefined ? fieldType : fieldConfig.type];
557
557
  if (!genericValidator) {
@@ -318,7 +318,6 @@ declare const _default: import("vue").DefineComponent<{}, {
318
318
  containerStore: import("pinia").Store<"brandPageContainer", import("@brand-page-maker/stores").BrandPageContainerState, {
319
319
  brandPageContentTypes(): string[];
320
320
  isAdmin(): boolean;
321
- isAdminMaker(): boolean;
322
321
  isPublished: (state: {
323
322
  availableTaxes: any[];
324
323
  brandPageBaseUrl: string;
@@ -355,6 +354,7 @@ declare const _default: import("vue").DefineComponent<{}, {
355
354
  isUpgradeModalVisible: boolean;
356
355
  isPublishing: boolean;
357
356
  isProduction: boolean;
357
+ isAdminMaker: boolean;
358
358
  isSellDomainNameEnabled: boolean;
359
359
  isStripeOnboardingModalVisible: boolean;
360
360
  isReactivationModal: boolean;
@@ -449,6 +449,7 @@ declare const _default: import("vue").DefineComponent<{}, {
449
449
  isUpgradeModalVisible: boolean;
450
450
  isPublishing: boolean;
451
451
  isProduction: boolean;
452
+ isAdminMaker: boolean;
452
453
  isSellDomainNameEnabled: boolean;
453
454
  isStripeOnboardingModalVisible: boolean;
454
455
  isReactivationModal: boolean;
@@ -543,6 +544,7 @@ declare const _default: import("vue").DefineComponent<{}, {
543
544
  isUpgradeModalVisible: boolean;
544
545
  isPublishing: boolean;
545
546
  isProduction: boolean;
547
+ isAdminMaker: boolean;
546
548
  isSellDomainNameEnabled: boolean;
547
549
  isStripeOnboardingModalVisible: boolean;
548
550
  isReactivationModal: boolean;
@@ -2,7 +2,6 @@ import type { LogoTheme, UserPersonalisationContent } from '@brand-page';
2
2
  import type { UIUserFeatures } from '../constants/ui';
3
3
  export interface UIUserState {
4
4
  isAdmin: boolean;
5
- isAdminMaker: boolean;
6
5
  features: UIUserFeatures;
7
6
  }
8
7
  export interface UIRootStateThirdPartySettings {
@@ -3,7 +3,7 @@ import { computed, defineComponent } from 'vue';
3
3
  import { UI_EVENTS } from '@brand-page-maker/constants';
4
4
  import { getInstance as getUserMediaClientInstance } from '../../clients/user-media-client';
5
5
  import { DEFAULT_UPLOAD_FILE_LIMIT } from '../../constants/ui';
6
- import { useBrandPageMakerUserStore, useUiStore, } from '@brand-page-maker/stores';
6
+ import { useBrandPageMakerUserStore, useBrandPageContainerStore, useUiStore, } from '@brand-page-maker/stores';
7
7
  import { formatKilobytes } from '@brand-page-maker/utils/file-size.util';
8
8
  import { errorTr } from '@src/composables/useTranslate';
9
9
  const DROPZONE_STATUS_CANCELED = 'canceled';
@@ -49,12 +49,13 @@ export default defineComponent({
49
49
  setup() {
50
50
  const uiStore = useUiStore();
51
51
  const userStore = useBrandPageMakerUserStore();
52
+ const containerStore = useBrandPageContainerStore();
52
53
  const dropzoneImageUploaderRef = ref(null);
53
54
  return {
54
55
  dropzoneImageUploaderRef,
55
56
  endpoints: computed(() => uiStore.endpoints),
56
57
  uiStore,
57
- isAdmin: computed(() => !!userStore.isAdminMaker),
58
+ isAdmin: computed(() => !!containerStore.isAdminMaker),
58
59
  isLoggedIn: computed(() => !!userStore.emailAddress),
59
60
  };
60
61
  },
@@ -3950,7 +3950,6 @@ declare const _default: import("vue").DefineComponent<{}, {
3950
3950
  brandPageCommissionPercentage?: number;
3951
3951
  features?: Partial<import("@brand-page-maker/stores").UserFeatures>;
3952
3952
  }): void;
3953
- setIsAdminMaker(isAdminMaker: boolean): void;
3954
3953
  }>;
3955
3954
  pageSettingsStore: import("pinia").Store<"uiPageSettings", import("../../store").PageSettingsState, {
3956
3955
  getFirstOrDefaultPage(): ContentPage;
@@ -4561,7 +4560,6 @@ declare const _default: import("vue").DefineComponent<{}, {
4561
4560
  brandPageContainerStore: import("pinia").Store<"brandPageContainer", import("@brand-page-maker/stores").BrandPageContainerState, {
4562
4561
  brandPageContentTypes(): string[];
4563
4562
  isAdmin(): boolean;
4564
- isAdminMaker(): boolean;
4565
4563
  isPublished: (state: {
4566
4564
  availableTaxes: any[];
4567
4565
  brandPageBaseUrl: string;
@@ -4598,6 +4596,7 @@ declare const _default: import("vue").DefineComponent<{}, {
4598
4596
  isUpgradeModalVisible: boolean;
4599
4597
  isPublishing: boolean;
4600
4598
  isProduction: boolean;
4599
+ isAdminMaker: boolean;
4601
4600
  isSellDomainNameEnabled: boolean;
4602
4601
  isStripeOnboardingModalVisible: boolean;
4603
4602
  isReactivationModal: boolean;
@@ -4692,6 +4691,7 @@ declare const _default: import("vue").DefineComponent<{}, {
4692
4691
  isUpgradeModalVisible: boolean;
4693
4692
  isPublishing: boolean;
4694
4693
  isProduction: boolean;
4694
+ isAdminMaker: boolean;
4695
4695
  isSellDomainNameEnabled: boolean;
4696
4696
  isStripeOnboardingModalVisible: boolean;
4697
4697
  isReactivationModal: boolean;
@@ -4786,6 +4786,7 @@ declare const _default: import("vue").DefineComponent<{}, {
4786
4786
  isUpgradeModalVisible: boolean;
4787
4787
  isPublishing: boolean;
4788
4788
  isProduction: boolean;
4789
+ isAdminMaker: boolean;
4789
4790
  isSellDomainNameEnabled: boolean;
4790
4791
  isStripeOnboardingModalVisible: boolean;
4791
4792
  isReactivationModal: boolean;
@@ -138,7 +138,7 @@ export default defineComponent({
138
138
  sectionCollapsedStates: computed(() => pageSettingsStore.sectionCollapsedStates),
139
139
  sections: computed(() => pageSettingsStore.sections),
140
140
  features: computed(() => userStore.features),
141
- isAdmin: computed(() => userStore.isAdminMaker),
141
+ isAdmin: computed(() => brandPageContainerStore.isAdminMaker),
142
142
  isBrandSite: computed(() => brandPageMakerStore.isBrandSite),
143
143
  navigationStyleTypeConfigs: computed(() => navigationSettingsStore.navigationStyleTypeConfigs),
144
144
  navigationStylesDesktop: computed(() => navigationSettingsStore.navigation.header.desktop),
@@ -3925,7 +3925,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3925
3925
  containerStore: import("pinia").Store<"brandPageContainer", import("@brand-page-maker/stores").BrandPageContainerState, {
3926
3926
  brandPageContentTypes(): string[];
3927
3927
  isAdmin(): boolean;
3928
- isAdminMaker(): boolean;
3929
3928
  isPublished: (state: {
3930
3929
  availableTaxes: any[];
3931
3930
  brandPageBaseUrl: string;
@@ -3962,6 +3961,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3962
3961
  isUpgradeModalVisible: boolean;
3963
3962
  isPublishing: boolean;
3964
3963
  isProduction: boolean;
3964
+ isAdminMaker: boolean;
3965
3965
  isSellDomainNameEnabled: boolean;
3966
3966
  isStripeOnboardingModalVisible: boolean;
3967
3967
  isReactivationModal: boolean;
@@ -4056,6 +4056,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4056
4056
  isUpgradeModalVisible: boolean;
4057
4057
  isPublishing: boolean;
4058
4058
  isProduction: boolean;
4059
+ isAdminMaker: boolean;
4059
4060
  isSellDomainNameEnabled: boolean;
4060
4061
  isStripeOnboardingModalVisible: boolean;
4061
4062
  isReactivationModal: boolean;
@@ -4150,6 +4151,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4150
4151
  isUpgradeModalVisible: boolean;
4151
4152
  isPublishing: boolean;
4152
4153
  isProduction: boolean;
4154
+ isAdminMaker: boolean;
4153
4155
  isSellDomainNameEnabled: boolean;
4154
4156
  isStripeOnboardingModalVisible: boolean;
4155
4157
  isReactivationModal: boolean;
@@ -240,7 +240,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
240
240
  brandPageContainerStore: import("pinia").Store<"brandPageContainer", import("@brand-page-maker/stores").BrandPageContainerState, {
241
241
  brandPageContentTypes(): string[];
242
242
  isAdmin(): boolean;
243
- isAdminMaker(): boolean;
244
243
  isPublished: (state: {
245
244
  availableTaxes: any[];
246
245
  brandPageBaseUrl: string;
@@ -277,6 +276,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
277
276
  isUpgradeModalVisible: boolean;
278
277
  isPublishing: boolean;
279
278
  isProduction: boolean;
279
+ isAdminMaker: boolean;
280
280
  isSellDomainNameEnabled: boolean;
281
281
  isStripeOnboardingModalVisible: boolean;
282
282
  isReactivationModal: boolean;
@@ -371,6 +371,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
371
371
  isUpgradeModalVisible: boolean;
372
372
  isPublishing: boolean;
373
373
  isProduction: boolean;
374
+ isAdminMaker: boolean;
374
375
  isSellDomainNameEnabled: boolean;
375
376
  isStripeOnboardingModalVisible: boolean;
376
377
  isReactivationModal: boolean;
@@ -465,6 +466,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
465
466
  isUpgradeModalVisible: boolean;
466
467
  isPublishing: boolean;
467
468
  isProduction: boolean;
469
+ isAdminMaker: boolean;
468
470
  isSellDomainNameEnabled: boolean;
469
471
  isStripeOnboardingModalVisible: boolean;
470
472
  isReactivationModal: boolean;
@@ -17,7 +17,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
17
17
  brandPageContainerStore: import("pinia").Store<"brandPageContainer", import("@brand-page-maker/stores").BrandPageContainerState, {
18
18
  brandPageContentTypes(): string[];
19
19
  isAdmin(): boolean;
20
- isAdminMaker(): boolean;
21
20
  isPublished: (state: {
22
21
  availableTaxes: any[];
23
22
  brandPageBaseUrl: string;
@@ -54,6 +53,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
54
53
  isUpgradeModalVisible: boolean;
55
54
  isPublishing: boolean;
56
55
  isProduction: boolean;
56
+ isAdminMaker: boolean;
57
57
  isSellDomainNameEnabled: boolean;
58
58
  isStripeOnboardingModalVisible: boolean;
59
59
  isReactivationModal: boolean;
@@ -148,6 +148,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
148
148
  isUpgradeModalVisible: boolean;
149
149
  isPublishing: boolean;
150
150
  isProduction: boolean;
151
+ isAdminMaker: boolean;
151
152
  isSellDomainNameEnabled: boolean;
152
153
  isStripeOnboardingModalVisible: boolean;
153
154
  isReactivationModal: boolean;
@@ -242,6 +243,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
242
243
  isUpgradeModalVisible: boolean;
243
244
  isPublishing: boolean;
244
245
  isProduction: boolean;
246
+ isAdminMaker: boolean;
245
247
  isSellDomainNameEnabled: boolean;
246
248
  isStripeOnboardingModalVisible: boolean;
247
249
  isReactivationModal: boolean;
@@ -437,7 +439,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
437
439
  brandPageCommissionPercentage?: number;
438
440
  features?: Partial<import("@brand-page-maker/stores").UserFeatures>;
439
441
  }): void;
440
- setIsAdminMaker(isAdminMaker: boolean): void;
441
442
  }>;
442
443
  'side-bar-content': import("vue").Ref<null, null>;
443
444
  isPrepurchase: import("vue").ComputedRef<boolean>;
@@ -30,7 +30,7 @@ export default defineComponent({
30
30
  brandPageContainerStore,
31
31
  tabs: computed(() => sideBarStore.tabs),
32
32
  selectedTabName: computed(() => sideBarStore.selectedTabName),
33
- isAdmin: computed(() => userStore.isAdminMaker),
33
+ isAdmin: computed(() => brandPageContainerStore.isAdminMaker),
34
34
  contentSettingsMode: computed(() => contentSettingsStore.mode),
35
35
  contentSettingsSelectedItemId: computed(() => contentSettingsStore.selectedItemId),
36
36
  sideBarStore,
@@ -477,7 +477,6 @@ declare const _default: import("vue").DefineComponent<{}, {
477
477
  brandPageCommissionPercentage?: number;
478
478
  features?: Partial<import("@brand-page-maker/stores").UserFeatures>;
479
479
  }): void;
480
- setIsAdminMaker(isAdminMaker: boolean): void;
481
480
  }>;
482
481
  brandPageMakerStore: import("pinia").Store<"brandPageMaker", import("@brand-page-maker/stores").BrandPageMakerState, {
483
482
  contentErrorCount(): number;
@@ -625,7 +624,6 @@ declare const _default: import("vue").DefineComponent<{}, {
625
624
  brandPageContainerStore: import("pinia").Store<"brandPageContainer", import("@brand-page-maker/stores").BrandPageContainerState, {
626
625
  brandPageContentTypes(): string[];
627
626
  isAdmin(): boolean;
628
- isAdminMaker(): boolean;
629
627
  isPublished: (state: {
630
628
  availableTaxes: any[];
631
629
  brandPageBaseUrl: string;
@@ -662,6 +660,7 @@ declare const _default: import("vue").DefineComponent<{}, {
662
660
  isUpgradeModalVisible: boolean;
663
661
  isPublishing: boolean;
664
662
  isProduction: boolean;
663
+ isAdminMaker: boolean;
665
664
  isSellDomainNameEnabled: boolean;
666
665
  isStripeOnboardingModalVisible: boolean;
667
666
  isReactivationModal: boolean;
@@ -756,6 +755,7 @@ declare const _default: import("vue").DefineComponent<{}, {
756
755
  isUpgradeModalVisible: boolean;
757
756
  isPublishing: boolean;
758
757
  isProduction: boolean;
758
+ isAdminMaker: boolean;
759
759
  isSellDomainNameEnabled: boolean;
760
760
  isStripeOnboardingModalVisible: boolean;
761
761
  isReactivationModal: boolean;
@@ -850,6 +850,7 @@ declare const _default: import("vue").DefineComponent<{}, {
850
850
  isUpgradeModalVisible: boolean;
851
851
  isPublishing: boolean;
852
852
  isProduction: boolean;
853
+ isAdminMaker: boolean;
853
854
  isSellDomainNameEnabled: boolean;
854
855
  isStripeOnboardingModalVisible: boolean;
855
856
  isReactivationModal: boolean;
@@ -36,7 +36,7 @@ export default defineComponent({
36
36
  doesLogoHaveBackground: computed(() => styleSettingsStore.doesLogoHaveBackground),
37
37
  toggleLogoBackground: computed(() => styleSettingsStore.toggleLogoBackground),
38
38
  isDefaultTextColorRequired: computed(() => uiStore.isDefaultTextColorRequired),
39
- isAdmin: computed(() => userStore.isAdminMaker),
39
+ isAdmin: computed(() => brandPageContainerStore.isAdminMaker),
40
40
  brandPageType: computed(() => brandPageMakerStore.brandPageType),
41
41
  showBrandCrowdLogo: computed(() => brandPageMakerStore.showBrandCrowdLogo),
42
42
  isDesignCom: computed(() => brandPageContainerStore.isDesignCom),
@@ -3,7 +3,7 @@ import * as DesignTemplateClient from '../../../clients/design-template-client';
3
3
  import {} from '../../../clients/models';
4
4
  import { BP_DEFAULT_TEMPLATE_TYPE_NAME, BP_BRAND_SITE_TEMPLATE_TYPE_NAME, SIDE_BAR_TAB_NAMES, } from '@brand-page-maker/constants';
5
5
  import { defineStore, storeToRefs } from 'pinia';
6
- import { useBrandPageContainerStore, useBrandPageMakerStore, useBrandPageMakerUserStore, useLogoStore, useUiStore, } from '@brand-page-maker/stores';
6
+ import { useBrandPageContainerStore, useBrandPageMakerStore, useLogoStore, useUiStore, } from '@brand-page-maker/stores';
7
7
  import { useUiSideBarStore } from '../../side-bar/store';
8
8
  import { BrandPageModel, } from '@brand-page/models';
9
9
  import { migrateBrandPageModel } from '@brand-page/utils';
@@ -65,9 +65,9 @@ export const useUiTemplateSettingsStore = defineStore('uiTemplateSettings', {
65
65
  },
66
66
  getters: {
67
67
  renderAsImage() {
68
- const brandPageMakerUserStore = useBrandPageMakerUserStore();
68
+ const brandPageContainerStore = useBrandPageContainerStore();
69
69
  // Admin users get live previews, non-admin users get images
70
- return !brandPageMakerUserStore.isAdminMaker;
70
+ return !brandPageContainerStore.isAdminMaker;
71
71
  },
72
72
  },
73
73
  actions: {
@@ -158,7 +158,6 @@ export const useUiTemplateSettingsStore = defineStore('uiTemplateSettings', {
158
158
  async loadPageNo({ pageNo }) {
159
159
  const brandPageMakerStore = useBrandPageMakerStore();
160
160
  const brandPageContainerStore = useBrandPageContainerStore();
161
- const brandPageMakerUserStore = useBrandPageMakerUserStore();
162
161
  const logoSettingsStore = useUiLogoSettingsStore();
163
162
  const logoStore = useLogoStore();
164
163
  const editableLogoStore = useUiEditableLogoStore();
@@ -280,7 +279,7 @@ export const useUiTemplateSettingsStore = defineStore('uiTemplateSettings', {
280
279
  }
281
280
  const templates = await Promise.all(result.paginatedItems.map(async (item) => {
282
281
  try {
283
- if (brandPageMakerUserStore.isAdminMaker) {
282
+ if (brandPageContainerStore.isAdminMaker) {
284
283
  const template = await designTemplateClient.getTemplateByTemplateToken(item.designTemplateToken);
285
284
  return this.safeMapToTemplateSettingsTemplate(template);
286
285
  }
@@ -461,7 +460,7 @@ export const useUiTemplateSettingsStore = defineStore('uiTemplateSettings', {
461
460
  setupLogoChangeWatcher() {
462
461
  const logoSettingsStore = useUiLogoSettingsStore();
463
462
  const editableLogoStore = useUiEditableLogoStore();
464
- const brandPageMakerUserStore = useBrandPageMakerUserStore();
463
+ const brandPageContainerStore = useBrandPageContainerStore();
465
464
  const { selectedLogoImage } = storeToRefs(logoSettingsStore);
466
465
  const { editableLogoVariations } = storeToRefs(editableLogoStore);
467
466
  let s3TokenDebounceTimer = null;
@@ -475,11 +474,11 @@ export const useUiTemplateSettingsStore = defineStore('uiTemplateSettings', {
475
474
  // shows in the thumbnails.
476
475
  const hasLogoChanged = newLogoImage.logoDraftToken !== oldLogoImage.logoDraftToken ||
477
476
  newLogoImage.logoVariation !== oldLogoImage.logoVariation;
478
- if (!brandPageMakerUserStore.isAdminMaker &&
477
+ if (!brandPageContainerStore.isAdminMaker &&
479
478
  newLogoImage.logoDraftToken &&
480
479
  hasLogoChanged) {
481
480
  const uiStore = useUiStore();
482
- const isPrePurchase = useBrandPageContainerStore().isPrePurchase;
481
+ const isPrePurchase = brandPageContainerStore.isPrePurchase;
483
482
  uiStore.setUserPersonalisationData({
484
483
  personalisationData: undefined,
485
484
  });
@@ -509,7 +508,7 @@ export const useUiTemplateSettingsStore = defineStore('uiTemplateSettings', {
509
508
  if (newS3Token === oldS3Token) {
510
509
  return;
511
510
  }
512
- if (brandPageMakerUserStore.isAdminMaker) {
511
+ if (brandPageContainerStore.isAdminMaker) {
513
512
  return;
514
513
  }
515
514
  // Debounce the reload by 500ms to avoid rapid successive reloads
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@designcrowd/library.brand-page",
3
3
  "description": "A collection of Maker/Designer applications",
4
- "version": "6.1.6-use-isadminmaker-1",
4
+ "version": "6.1.6-use-isadminmaker-2",
5
5
  "author": "Design.com Eng",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -16,7 +16,7 @@ export default defineComponent({
16
16
  const containerStore = useBrandPageContainerStore();
17
17
 
18
18
  return {
19
- isAdmin: computed(() => userStore.isAdminMaker),
19
+ isAdmin: computed(() => containerStore.isAdminMaker),
20
20
  // BP-5873: the Preview button is behind an AB test, and pre/post purchase are
21
21
  // two separate experiments. Pick the one for the current purchase state — a
22
22
  // user's value on the other side is independent and must not leak across.
@@ -152,7 +152,7 @@ export default defineComponent({
152
152
  backButtonLabel: computed(() => containerStore.backButtonLabel),
153
153
  isDesignCom: computed(() => containerStore.isDesignCom),
154
154
  selectedTabName: computed(() => sideBarStore.selectedTabName),
155
- isAdmin: computed(() => userStore.isAdminMaker),
155
+ isAdmin: computed(() => containerStore.isAdminMaker),
156
156
  contentErrorCount: computed(() => contentSettingsStore.contentErrorCount),
157
157
  mode: computed(() => contentSettingsStore.mode),
158
158
  brandPageMakerStore,
@@ -279,7 +279,7 @@ const InitialiseMakerStores = (options: {
279
279
  brandPageCommissionPercentage: 0.1,
280
280
  });
281
281
 
282
- userStore.setIsAdminMaker(options.isAdmin ?? false);
282
+ brandPageContainerStore.isAdminMaker = options.isAdmin ?? false;
283
283
  };
284
284
 
285
285
  const FABRIC_RENDER_BASE_URL = 'https://localhost:6006/';
@@ -75,7 +75,7 @@ export default defineComponent({
75
75
  canUseRichTextEditor: computed(
76
76
  () => brandPageMakerUserStore.features.canUseRichTextEditor,
77
77
  ),
78
- isAdmin: computed(() => brandPageMakerUserStore.isAdminMaker),
78
+ isAdmin: computed(() => brandPageContainerStore.isAdminMaker),
79
79
  logoTheme: computed(() => uiStore.logoTheme),
80
80
  contentSettingsStore,
81
81
  brandPageMakerStore,