@designcrowd/library.brand-page 6.1.6-use-isadminmaker-2 → 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 (138) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-CPLDYp5f.js → CreatedOnBrandCrowd-de-de-t5akeGDG.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-Br3HqLLr.js → CreatedOnBrandCrowd-en-us-D6iRa7UV.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-DwkIQVgN.js → CreatedOnBrandCrowd-es-es-BHwAxInw.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-DqeI8mF_.js → CreatedOnBrandCrowd-fr-ca-DETrOR_X.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-DqeI8mF_.js → CreatedOnBrandCrowd-fr-fr-DETrOR_X.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-bvgq_CN8.js → CreatedOnBrandCrowd-pt-br-CtWsOLWg.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-bvgq_CN8.js → CreatedOnBrandCrowd-pt-pt-CtWsOLWg.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-nT3MnRXy.js → CreatedOnDcom-de-de-DsEbB4hv.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-D2TYrEzJ.js → CreatedOnDcom-en-us-CA3kvbs5.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-Q-5tnP12.js → CreatedOnDcom-es-es-B7o8joWb.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-txkwqCzm.js → CreatedOnDcom-fr-ca-Yz1cvzRY.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-CUnJXLgr.js → CreatedOnDcom-fr-fr-BETGUOnB.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-7XAwvP9H.js → CreatedOnDcom-pt-br-B37QJXKn.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-DjhLiioZ.js → CreatedOnDcom-pt-pt-DMkIALyd.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 +1 -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 -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 +1 -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 +1 -1
  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/template-preview/TemplatePreview.mixin.d.ts +1 -1
  28. package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.js +6 -6
  29. package/lib/src/css/library.brand-page-brandCrowd.min.css +57 -57
  30. package/lib/src/css/library.brand-page-brandPage.min.css +57 -57
  31. package/lib/src/css/library.brand-page-designCom.min.css +57 -57
  32. package/lib/src/css/library.brand-page-preview.min.css +57 -57
  33. package/lib/src/index.mjs +1 -1
  34. package/lib/src/{lib-dewphkuW.js → lib-BgxxXPxt.js} +191 -191
  35. package/lib/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.d.ts +1 -1
  36. package/lib/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.js +1 -1
  37. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +1 -1
  38. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.js +1 -1
  39. package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +1 -1
  40. package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.js +2 -2
  41. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +1 -1
  42. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.js +2 -2
  43. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +1 -1
  44. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.js +3 -3
  45. package/lib/src/shared/content-settings/components/draggable-item-list/DraggableItemList.mixin.d.ts +2 -2
  46. package/lib/src/shared/content-settings/components/draggable-item-list/DraggableItemList.mixin.js +1 -1
  47. package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.d.ts +1 -1
  48. package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.js +2 -2
  49. package/lib/src/shared/content-settings/components/images-field/ImagesField.mixin.d.ts +2 -2
  50. package/lib/src/shared/content-settings/components/images-field/ImagesField.mixin.js +1 -1
  51. package/lib/src/shared/content-settings/components/links-field/LinksField.mixin.d.ts +2 -2
  52. package/lib/src/shared/content-settings/components/links-field/LinksField.mixin.js +1 -1
  53. package/lib/src/shared/content-settings/components/shape-field/ShapeField.mixin.d.ts +2 -2
  54. package/lib/src/shared/content-settings/components/shape-field/ShapeField.mixin.js +1 -1
  55. package/lib/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.d.ts +2 -2
  56. package/lib/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.js +1 -1
  57. package/lib/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.d.ts +2 -2
  58. package/lib/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.js +1 -1
  59. package/lib/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.d.ts +2 -2
  60. package/lib/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.js +1 -1
  61. package/lib/src/shared/my-uploads/MyUploads.mixin.d.ts +1 -1
  62. package/lib/src/shared/my-uploads/MyUploads.mixin.js +1 -1
  63. package/lib/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.d.ts +2 -2
  64. package/lib/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.js +1 -1
  65. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +1 -1
  66. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.js +1 -1
  67. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +2 -2
  68. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.js +1 -1
  69. package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +1 -1
  70. package/lib/src/shared/side-bar/components/SideBar.mixin.js +3 -3
  71. package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +1 -1
  72. package/lib/src/shared/style-settings/components/StyleSettings.mixin.js +2 -2
  73. package/package.json +1 -1
  74. package/src/brand-page-maker/components/action-bar/ActionBar.mixin.ts +1 -1
  75. package/src/brand-page-maker/components/action-bar/ActionBar.vue +1 -1
  76. package/src/brand-page-maker/components/action-bar/ActionBarNavigation.vue +5 -5
  77. package/src/brand-page-maker/components/admin-background-settings/AdminBackgroundSettings.vue +1 -1
  78. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.ts +1 -1
  79. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.ts +7 -7
  80. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.vue +1 -1
  81. package/src/brand-page-maker/components/brand-page-maker/__fixtures__/store-fixture.ts +1 -1
  82. package/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.ts +2 -2
  83. package/src/brand-page-maker/components/brandpage-settings/BrandPageSettings.vue +3 -3
  84. package/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.ts +1 -1
  85. package/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.vue +1 -1
  86. package/src/brand-page-maker/components/navigation/Navigation.mixin.ts +1 -1
  87. package/src/brand-page-maker/components/navigation/Navigation.vue +3 -3
  88. package/src/brand-page-maker/components/rich-text-editor/RichTextEditor.vue +11 -11
  89. package/src/brand-page-maker/components/save-contact/SaveContact.vue +2 -2
  90. package/src/brand-page-maker/components/shop/ReplaceImageSettingsForShop.vue +1 -1
  91. package/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.ts +6 -6
  92. package/src/shared/background-settings/components/BackgroundSettings.vue +7 -7
  93. package/src/shared/background-settings/components/MultiBackgroundShapes.vue +5 -5
  94. package/src/shared/background-settings/components/ReplaceImageSettingsForBackgroundSettings.vue +2 -2
  95. package/src/shared/background-settings/components/SingleBackgroundShape.vue +3 -3
  96. package/src/shared/background-settings/components/background-color/BackgroundColorSettings.vue +4 -4
  97. package/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.ts +1 -1
  98. package/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.vue +1 -1
  99. package/src/shared/content-settings/components/button-configuration-field/ButtonConfigurationField.vue +2 -2
  100. package/src/shared/content-settings/components/color-field/ColorField.vue +6 -6
  101. package/src/shared/content-settings/components/color-replacements-field/ColorReplacementsField.vue +9 -7
  102. package/src/shared/content-settings/components/content-settings/ContentSettings.mixin.ts +1 -1
  103. package/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.ts +2 -2
  104. package/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.vue +1 -1
  105. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.ts +2 -2
  106. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.ts +3 -3
  107. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.vue +1 -1
  108. package/src/shared/content-settings/components/draggable-item-list/DraggableItemList.mixin.ts +1 -1
  109. package/src/shared/content-settings/components/draggable-item-list/DraggableItemList.vue +1 -1
  110. package/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.ts +2 -2
  111. package/src/shared/content-settings/components/images-field/ImagesField.mixin.ts +1 -1
  112. package/src/shared/content-settings/components/images-field/ImagesField.vue +1 -1
  113. package/src/shared/content-settings/components/links-field/LinksField.mixin.ts +1 -1
  114. package/src/shared/content-settings/components/links-field/LinksField.vue +1 -1
  115. package/src/shared/content-settings/components/replace-image-base-settings/ReplaceImageBaseSettings.vue +2 -2
  116. package/src/shared/content-settings/components/shape-field/ShapeField.mixin.ts +1 -1
  117. package/src/shared/content-settings/components/shape-field/ShapeField.vue +1 -1
  118. package/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.ts +1 -1
  119. package/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.vue +5 -5
  120. package/src/shared/content-settings/components/text-image-field/TextImageField.vue +7 -7
  121. package/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.test.ts +1 -1
  122. package/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.ts +1 -1
  123. package/src/shared/content-settings/components/text-items-field/TextItemsField.vue +2 -2
  124. package/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.ts +1 -1
  125. package/src/shared/content-settings/components/text-style-field/TextStyleField.vue +2 -2
  126. package/src/shared/my-uploads/MyUploads.mixin.ts +1 -1
  127. package/src/shared/my-uploads/MyUploads.vue +1 -1
  128. package/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.ts +1 -1
  129. package/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.vue +12 -9
  130. package/src/shared/page-settings/components/page-settings/PageSettings.mixin.ts +1 -1
  131. package/src/shared/page-settings/components/page-settings/PageSettings.vue +3 -3
  132. package/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.ts +1 -1
  133. package/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.vue +4 -4
  134. package/src/shared/shape-library/ShapeLibrary.vue +9 -9
  135. package/src/shared/side-bar/components/SideBar.mixin.ts +3 -3
  136. package/src/shared/style-settings/components/StyleSettings.mixin.ts +2 -2
  137. package/src/shared/style-settings/components/StyleSettings.vue +29 -23
  138. package/src/shared/style-settings/components/text-style-options-settings-with-state/TextStyleOptionsSettingsWithState.vue +2 -2
@@ -9,7 +9,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
9
9
  required: true;
10
10
  };
11
11
  }>, {
12
- isAdmin: import("vue").ComputedRef<boolean>;
12
+ isAdminMaker: import("vue").ComputedRef<boolean>;
13
13
  backgroundStyles: import("vue").ComputedRef<{
14
14
  style: {
15
15
  left?: string | undefined;
@@ -28,7 +28,7 @@ export default defineComponent({
28
28
  const containerStore = useBrandPageContainerStore();
29
29
  const backgroundSettingsStore = useUiBackgroundSettingsStore();
30
30
  return {
31
- isAdmin: computed(() => containerStore.isAdminMaker),
31
+ isAdminMaker: computed(() => containerStore.isAdminMaker),
32
32
  backgroundStyles: computed(() => backgroundSettingsStore.backgroundStyles),
33
33
  userStore,
34
34
  backgroundSettingsStore,
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{}, {
41
41
  activeCategoryTab: import("vue").ComputedRef<string>;
42
42
  isBrandSite: import("vue").ComputedRef<boolean>;
43
43
  contentSettingsSelectedItemId: import("vue").ComputedRef<string | null>;
44
- isAdmin: import("vue").ComputedRef<boolean>;
44
+ isAdminMaker: import("vue").ComputedRef<boolean>;
45
45
  canUseRichTextEditor: import("vue").ComputedRef<boolean>;
46
46
  brandPageMakerStore: import("pinia").Store<"brandPageMaker", import("@brand-page-maker/stores").BrandPageMakerState, {
47
47
  contentErrorCount(): number;
@@ -32,7 +32,7 @@ export default defineComponent({
32
32
  activeCategoryTab: computed(() => contentSettingsStore.activeCategoryTab),
33
33
  isBrandSite: computed(() => brandPageMakerStore.isBrandSite),
34
34
  contentSettingsSelectedItemId: computed(() => contentSettingsStore.selectedItemId),
35
- isAdmin: computed(() => containerStore.isAdminMaker),
35
+ isAdminMaker: computed(() => containerStore.isAdminMaker),
36
36
  canUseRichTextEditor: computed(() => userStore.features.canUseRichTextEditor),
37
37
  brandPageMakerStore,
38
38
  contentSettingsStore,
@@ -35,7 +35,7 @@ declare const _default: import("vue").DefineComponent<{}, {
35
35
  selectedItemValue: import("vue").ComputedRef<string | null>;
36
36
  contentType: import("vue").ComputedRef<"website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section" | undefined>;
37
37
  mode: import("vue").ComputedRef<"images" | "add" | "pages" | "edit" | "focusedContentItem">;
38
- isAdmin: import("vue").ComputedRef<boolean>;
38
+ isAdminMaker: import("vue").ComputedRef<boolean>;
39
39
  contentSettingsStore: import("pinia").Store<"uiContentSettings", import("../../store").ContentSettingsState, {
40
40
  contentErrorCount(): number;
41
41
  getContent(state: {
@@ -25,7 +25,7 @@ export default defineComponent({
25
25
  selectedItemValue: computed(() => contentSettingsStore.selectedItemValue),
26
26
  contentType: computed(() => contentSettingsStore.selectedItemTemplate?.type),
27
27
  mode: computed(() => contentSettingsStore.mode),
28
- isAdmin: computed(() => containerStore.isAdminMaker),
28
+ isAdminMaker: computed(() => containerStore.isAdminMaker),
29
29
  contentSettingsStore,
30
30
  userStore,
31
31
  pageSettingsStore,
@@ -37,7 +37,7 @@ export default defineComponent({
37
37
  },
38
38
  computed: {
39
39
  isDeleteEnabled() {
40
- return this.isAdmin;
40
+ return this.isAdminMaker;
41
41
  },
42
42
  selectedField() {
43
43
  if (!this.selectedItemFieldName) {
@@ -21,7 +21,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
21
21
  brandPageData: import("vue").ComputedRef<import("@brand-page").BrandPageModel>;
22
22
  getValue: import("vue").ComputedRef<(id: string, fieldName: string) => import("@brand-page").Content | string | undefined>;
23
23
  isPersonalisationEnabled: import("vue").ComputedRef<boolean>;
24
- isAdmin: import("vue").ComputedRef<boolean>;
24
+ isAdminMaker: import("vue").ComputedRef<boolean>;
25
25
  contentSettingsStore: import("pinia").Store<"uiContentSettings", import("../../store").ContentSettingsState, {
26
26
  contentErrorCount(): number;
27
27
  getContent(state: {
@@ -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(() => containerStore.isAdminMaker),
46
+ isAdminMaker: computed(() => containerStore.isAdminMaker),
47
47
  contentSettingsStore,
48
48
  sideBarStore,
49
49
  eventTracker,
@@ -134,7 +134,7 @@ export default defineComponent({
134
134
  return this.collapsed ? ICON_CHEVRON_RIGHT : ICON_CHEVRON_UP;
135
135
  },
136
136
  showPersonalisationField() {
137
- return this.isAdmin && this.isPersonalisationEnabled;
137
+ return this.isAdminMaker && this.isPersonalisationEnabled;
138
138
  },
139
139
  personalisationRole() {
140
140
  return this.getValue(this.id, 'personalisationRole');
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
26
26
  getContent: import("vue").ComputedRef<(id: string) => Content | undefined>;
27
27
  getValue: import("vue").ComputedRef<(id: string, fieldName: string) => Content | string | undefined>;
28
28
  brandPageData: import("vue").ComputedRef<import("@brand-page").BrandPageModel>;
29
- isAdmin: import("vue").ComputedRef<boolean>;
29
+ isAdminMaker: import("vue").ComputedRef<boolean>;
30
30
  isDesignCom: import("vue").ComputedRef<boolean>;
31
31
  canUseRichTextEditor: import("vue").ComputedRef<boolean>;
32
32
  brandPageType: import("vue").ComputedRef<"default" | "brandSite" | "brandContact">;
@@ -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(() => brandPageContainerStore.isAdminMaker),
52
+ isAdminMaker: computed(() => brandPageContainerStore.isAdminMaker),
53
53
  isDesignCom: computed(() => brandPageContainerStore.isDesignCom),
54
54
  canUseRichTextEditor: computed(() => userStore.features.canUseRichTextEditor),
55
55
  brandPageType: computed(() => brandPageMakerStore.brandPageType),
@@ -165,7 +165,7 @@ export default defineComponent({
165
165
  },
166
166
  showToggle() {
167
167
  //TODO: convert showToggle to both boolean and a function
168
- if (this.field.name === 'backgroundStyle' && this.isAdmin) {
168
+ if (this.field.name === 'backgroundStyle' && this.isAdminMaker) {
169
169
  return true;
170
170
  }
171
171
  return this.field.showToggle;
@@ -236,7 +236,7 @@ export default defineComponent({
236
236
  }
237
237
  },
238
238
  onFieldChangeLogo() {
239
- if (this.isAdmin) {
239
+ if (this.isAdminMaker) {
240
240
  this.sideBarStore.setSelectedTabName({
241
241
  tabName: SIDE_BAR_TAB_NAMES.ADMIN_LOGO_SETTINGS,
242
242
  });
@@ -48,7 +48,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
48
48
  type: PropType<LogoTheme>;
49
49
  required: true;
50
50
  };
51
- isAdmin: {
51
+ isAdminMaker: {
52
52
  type: BooleanConstructor;
53
53
  required: true;
54
54
  };
@@ -130,7 +130,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
130
130
  type: PropType<LogoTheme>;
131
131
  required: true;
132
132
  };
133
- isAdmin: {
133
+ isAdminMaker: {
134
134
  type: BooleanConstructor;
135
135
  required: true;
136
136
  };
@@ -53,7 +53,7 @@ export default defineComponent({
53
53
  type: Object,
54
54
  required: true,
55
55
  },
56
- isAdmin: {
56
+ isAdminMaker: {
57
57
  type: Boolean,
58
58
  required: true,
59
59
  },
@@ -12,7 +12,7 @@ declare const _default: import("vue").DefineComponent<{}, {
12
12
  getItemGroupState: import("vue").ComputedRef<(id: string, groupId: string) => import("../../models").ContentSettingsItemGroupState>;
13
13
  brandPageData: import("vue").ComputedRef<import("@brand-page").BrandPageModel>;
14
14
  isPersonalisationEnabled: import("vue").ComputedRef<boolean>;
15
- isAdmin: import("vue").ComputedRef<boolean>;
15
+ isAdminMaker: import("vue").ComputedRef<boolean>;
16
16
  canUseRichTextEditor: import("vue").ComputedRef<boolean>;
17
17
  externalEditor: import("@tiptap/vue-3").Editor;
18
18
  contentSettingsStore: import("pinia").Store<"uiContentSettings", import("../../store").ContentSettingsState, {
@@ -30,7 +30,7 @@ export default defineComponent({
30
30
  getItemGroupState: computed(() => contentSettingsStore.getItemGroupState),
31
31
  brandPageData: computed(() => brandPageMakerStore.brandPageData),
32
32
  isPersonalisationEnabled: computed(() => uiStore.isPersonalisationEnabled),
33
- isAdmin: computed(() => containerStore.isAdminMaker),
33
+ isAdminMaker: computed(() => containerStore.isAdminMaker),
34
34
  canUseRichTextEditor: computed(() => userStore.features.canUseRichTextEditor),
35
35
  externalEditor,
36
36
  contentSettingsStore,
@@ -154,7 +154,7 @@ export default defineComponent({
154
154
  return this.template?.displayName || '';
155
155
  },
156
156
  showPersonalisationField() {
157
- return this.isAdmin && this.isPersonalisationEnabled;
157
+ return this.isAdminMaker && this.isPersonalisationEnabled;
158
158
  },
159
159
  personalisationRole() {
160
160
  return this.getValue(this.id, 'personalisationRole');
@@ -32,7 +32,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
32
32
  type: PropType<LogoTheme>;
33
33
  required: true;
34
34
  };
35
- isAdmin: {
35
+ isAdminMaker: {
36
36
  type: BooleanConstructor;
37
37
  required: true;
38
38
  };
@@ -81,7 +81,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
81
81
  type: PropType<LogoTheme>;
82
82
  required: true;
83
83
  };
84
- isAdmin: {
84
+ isAdminMaker: {
85
85
  type: BooleanConstructor;
86
86
  required: true;
87
87
  };
@@ -34,7 +34,7 @@ export default defineComponent({
34
34
  type: Object,
35
35
  required: true,
36
36
  },
37
- isAdmin: {
37
+ isAdminMaker: {
38
38
  type: Boolean,
39
39
  required: true,
40
40
  },
@@ -29,7 +29,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
29
29
  type: PropType<LinksItem[]>;
30
30
  required: true;
31
31
  };
32
- isAdmin: {
32
+ isAdminMaker: {
33
33
  type: BooleanConstructor;
34
34
  required: true;
35
35
  };
@@ -82,7 +82,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
82
82
  type: PropType<LinksItem[]>;
83
83
  required: true;
84
84
  };
85
- isAdmin: {
85
+ isAdminMaker: {
86
86
  type: BooleanConstructor;
87
87
  required: true;
88
88
  };
@@ -31,7 +31,7 @@ export default defineComponent({
31
31
  type: Array,
32
32
  required: true,
33
33
  },
34
- isAdmin: {
34
+ isAdminMaker: {
35
35
  type: Boolean,
36
36
  required: true,
37
37
  },
@@ -24,7 +24,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
24
24
  type: PropType<LogoTheme>;
25
25
  required: true;
26
26
  };
27
- isAdmin: {
27
+ isAdminMaker: {
28
28
  type: BooleanConstructor;
29
29
  required: true;
30
30
  };
@@ -65,7 +65,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
65
65
  type: PropType<LogoTheme>;
66
66
  required: true;
67
67
  };
68
- isAdmin: {
68
+ isAdminMaker: {
69
69
  type: BooleanConstructor;
70
70
  required: true;
71
71
  };
@@ -27,7 +27,7 @@ export default defineComponent({
27
27
  type: Object,
28
28
  required: true,
29
29
  },
30
- isAdmin: {
30
+ isAdminMaker: {
31
31
  type: Boolean,
32
32
  required: true,
33
33
  },
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
19
19
  type: PropType<LogoTheme>;
20
20
  required: true;
21
21
  };
22
- isAdmin: {
22
+ isAdminMaker: {
23
23
  type: BooleanConstructor;
24
24
  required: true;
25
25
  };
@@ -85,7 +85,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
85
85
  type: PropType<LogoTheme>;
86
86
  required: true;
87
87
  };
88
- isAdmin: {
88
+ isAdminMaker: {
89
89
  type: BooleanConstructor;
90
90
  required: true;
91
91
  };
@@ -26,7 +26,7 @@ export default defineComponent({
26
26
  type: Object,
27
27
  required: true,
28
28
  },
29
- isAdmin: {
29
+ isAdminMaker: {
30
30
  type: Boolean,
31
31
  required: true,
32
32
  },
@@ -18,7 +18,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
18
18
  type: PropType<TextItem[]>;
19
19
  required: true;
20
20
  };
21
- isAdmin: {
21
+ isAdminMaker: {
22
22
  type: BooleanConstructor;
23
23
  required: true;
24
24
  };
@@ -99,7 +99,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
99
99
  type: PropType<TextItem[]>;
100
100
  required: true;
101
101
  };
102
- isAdmin: {
102
+ isAdminMaker: {
103
103
  type: BooleanConstructor;
104
104
  required: true;
105
105
  };
@@ -25,7 +25,7 @@ export default defineComponent({
25
25
  type: Array,
26
26
  required: true,
27
27
  },
28
- isAdmin: {
28
+ isAdminMaker: {
29
29
  type: Boolean,
30
30
  required: true,
31
31
  },
@@ -50,7 +50,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
50
50
  type: PropType<TextStyleDeclaration>;
51
51
  required: true;
52
52
  };
53
- isAdmin: {
53
+ isAdminMaker: {
54
54
  type: BooleanConstructor;
55
55
  required: true;
56
56
  };
@@ -432,7 +432,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
432
432
  type: PropType<TextStyleDeclaration>;
433
433
  required: true;
434
434
  };
435
- isAdmin: {
435
+ isAdminMaker: {
436
436
  type: BooleanConstructor;
437
437
  required: true;
438
438
  };
@@ -55,7 +55,7 @@ export default defineComponent({
55
55
  type: Object,
56
56
  required: true,
57
57
  },
58
- isAdmin: {
58
+ isAdminMaker: {
59
59
  type: Boolean,
60
60
  required: true,
61
61
  },
@@ -85,7 +85,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
85
85
  isPersonalisationEnabled: boolean;
86
86
  }): void;
87
87
  }>;
88
- isAdmin: import("vue").ComputedRef<boolean>;
88
+ isAdminMaker: import("vue").ComputedRef<boolean>;
89
89
  isLoggedIn: import("vue").ComputedRef<boolean>;
90
90
  }, {
91
91
  imageUploaderReady: boolean;
@@ -55,7 +55,7 @@ export default defineComponent({
55
55
  dropzoneImageUploaderRef,
56
56
  endpoints: computed(() => uiStore.endpoints),
57
57
  uiStore,
58
- isAdmin: computed(() => !!containerStore.isAdminMaker),
58
+ isAdminMaker: computed(() => !!containerStore.isAdminMaker),
59
59
  isLoggedIn: computed(() => !!userStore.emailAddress),
60
60
  };
61
61
  },
@@ -8,7 +8,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
8
8
  type: PropType<NavigationStyleConfig[]>;
9
9
  required: true;
10
10
  };
11
- isAdmin: {
11
+ isAdminMaker: {
12
12
  type: BooleanConstructor;
13
13
  required: true;
14
14
  };
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
41
41
  type: PropType<NavigationStyleConfig[]>;
42
42
  required: true;
43
43
  };
44
- isAdmin: {
44
+ isAdminMaker: {
45
45
  type: BooleanConstructor;
46
46
  required: true;
47
47
  };
@@ -10,7 +10,7 @@ export default defineComponent({
10
10
  type: Array,
11
11
  required: true,
12
12
  },
13
- isAdmin: {
13
+ isAdminMaker: {
14
14
  type: Boolean,
15
15
  required: true,
16
16
  },
@@ -3137,7 +3137,7 @@ declare const _default: import("vue").DefineComponent<{}, {
3137
3137
  googleAdsenseEnabled: boolean;
3138
3138
  canUseUndoRedo: boolean;
3139
3139
  }>;
3140
- isAdmin: import("vue").ComputedRef<boolean>;
3140
+ isAdminMaker: import("vue").ComputedRef<boolean>;
3141
3141
  isBrandSite: import("vue").ComputedRef<boolean>;
3142
3142
  navigationStyleTypeConfigs: import("vue").ComputedRef<{
3143
3143
  header: {
@@ -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(() => brandPageContainerStore.isAdminMaker),
141
+ isAdminMaker: computed(() => brandPageContainerStore.isAdminMaker),
142
142
  isBrandSite: computed(() => brandPageMakerStore.isBrandSite),
143
143
  navigationStyleTypeConfigs: computed(() => navigationSettingsStore.navigationStyleTypeConfigs),
144
144
  navigationStylesDesktop: computed(() => navigationSettingsStore.navigation.header.desktop),
@@ -11,7 +11,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
11
11
  required: false;
12
12
  default: () => never[];
13
13
  };
14
- isAdmin: {
14
+ isAdminMaker: {
15
15
  type: BooleanConstructor;
16
16
  required: true;
17
17
  };
@@ -4721,7 +4721,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4721
4721
  required: false;
4722
4722
  default: () => never[];
4723
4723
  };
4724
- isAdmin: {
4724
+ isAdminMaker: {
4725
4725
  type: BooleanConstructor;
4726
4726
  required: true;
4727
4727
  };
@@ -29,7 +29,7 @@ export default defineComponent({
29
29
  required: false,
30
30
  default: () => [],
31
31
  },
32
- isAdmin: {
32
+ isAdminMaker: {
33
33
  type: Boolean,
34
34
  required: true,
35
35
  },
@@ -418,7 +418,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
418
418
  isPrepurchaseOnly?: boolean | undefined;
419
419
  }[]>;
420
420
  selectedTabName: import("vue").ComputedRef<string>;
421
- isAdmin: import("vue").ComputedRef<boolean>;
421
+ isAdminMaker: import("vue").ComputedRef<boolean>;
422
422
  contentSettingsMode: import("vue").ComputedRef<"images" | "add" | "pages" | "edit" | "focusedContentItem">;
423
423
  contentSettingsSelectedItemId: import("vue").ComputedRef<string | null>;
424
424
  sideBarStore: import("pinia").Store<"uiSideBar", import("../store").SideBarState, {}, {
@@ -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(() => brandPageContainerStore.isAdminMaker),
33
+ isAdminMaker: computed(() => brandPageContainerStore.isAdminMaker),
34
34
  contentSettingsMode: computed(() => contentSettingsStore.mode),
35
35
  contentSettingsSelectedItemId: computed(() => contentSettingsStore.selectedItemId),
36
36
  sideBarStore,
@@ -76,10 +76,10 @@ export default defineComponent({
76
76
  if (this.isBrandPageLoaded === false && this.isPrePurchase === false) {
77
77
  return false;
78
78
  }
79
- if (this.isAdmin && tab.isDisabledForAdmin) {
79
+ if (this.isAdminMaker && tab.isDisabledForAdmin) {
80
80
  return false;
81
81
  }
82
- if (!this.isAdmin && tab.isEnabledForAdminOnly === true) {
82
+ if (!this.isAdminMaker && tab.isEnabledForAdminOnly === true) {
83
83
  return false;
84
84
  }
85
85
  if (this.isPrepurchase && tab.isPrepurchaseOnly === true) {
@@ -355,7 +355,7 @@ declare const _default: import("vue").DefineComponent<{}, {
355
355
  doesLogoHaveBackground: import("vue").ComputedRef<boolean>;
356
356
  toggleLogoBackground: import("vue").ComputedRef<() => Promise<any>>;
357
357
  isDefaultTextColorRequired: import("vue").ComputedRef<boolean>;
358
- isAdmin: import("vue").ComputedRef<boolean>;
358
+ isAdminMaker: import("vue").ComputedRef<boolean>;
359
359
  brandPageType: import("vue").ComputedRef<"default" | "brandSite" | "brandContact">;
360
360
  showBrandCrowdLogo: import("vue").ComputedRef<boolean>;
361
361
  isDesignCom: import("vue").ComputedRef<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(() => brandPageContainerStore.isAdminMaker),
39
+ isAdminMaker: computed(() => brandPageContainerStore.isAdminMaker),
40
40
  brandPageType: computed(() => brandPageMakerStore.brandPageType),
41
41
  showBrandCrowdLogo: computed(() => brandPageMakerStore.showBrandCrowdLogo),
42
42
  isDesignCom: computed(() => brandPageContainerStore.isDesignCom),
@@ -104,7 +104,7 @@ export default defineComponent({
104
104
  },
105
105
  },
106
106
  created() {
107
- if (this.isAdmin) {
107
+ if (this.isAdminMaker) {
108
108
  // check if the buttons styles are color matched
109
109
  Object.keys(this.isColorMatch).forEach((k) => {
110
110
  this.isColorMatch[k] =
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-2",
4
+ "version": "6.1.6-use-isadminmaker-3",
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(() => containerStore.isAdminMaker),
19
+ isAdminMaker: 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.
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div
3
- v-if="!isAdmin"
3
+ v-if="!isAdminMaker"
4
4
  class="tw-hidden lg:tw-flex tw-p-4 tw-w-full tw-bg-black lg:tw-bg-white tw-border-t tw-border-b tw-border-grayscale-500 tw-border-solid tw-items-center tw-justify-center tw-gap-5 tw-box-border"
5
5
  >
6
6
  <Button
@@ -4,7 +4,7 @@
4
4
  class="tw-flex tw-items-center tw-border-t tw-border-solid tw-border-grayscale-600 tw-h-12 tw-px-2 lg:tw-px-0 lg:tw-h-auto lg:tw-border-none tw-gap-3 lg:tw-gap-5 tw-w-full lg:tw-justify-end tw-box-border"
5
5
  >
6
6
  <Button
7
- v-if="!isAdmin && isLivePreviewEnabled"
7
+ v-if="!isAdminMaker && isLivePreviewEnabled"
8
8
  :label="constantsTr('previewDisplayName')"
9
9
  variant="no-border"
10
10
  :white="true"
@@ -19,9 +19,9 @@
19
19
  <Button
20
20
  v-if="!isPublished"
21
21
  :label="
22
- isAdmin ? actionBarTr('saveTemplate') : actionBarTr('saveProgress')
22
+ isAdminMaker ? actionBarTr('saveTemplate') : actionBarTr('saveProgress')
23
23
  "
24
- :variant="isAdmin ? 'primary' : 'outline'"
24
+ :variant="isAdminMaker ? 'primary' : 'outline'"
25
25
  :disabled="isSaving"
26
26
  :white="true"
27
27
  size="small-medium"
@@ -30,7 +30,7 @@
30
30
  @on-click.stop="saveBrandPage"
31
31
  />
32
32
  <Button
33
- v-if="isBrandContact && isPublished && !isAdmin"
33
+ v-if="isBrandContact && isPublished && !isAdminMaker"
34
34
  :label="actionBarTr('createTeamCards')"
35
35
  variant="gray"
36
36
  size="small-medium"
@@ -40,7 +40,7 @@
40
40
  @on-click.stop="createTeamCards(true)"
41
41
  />
42
42
  <Button
43
- v-if="!isAdmin"
43
+ v-if="!isAdminMaker"
44
44
  :label="actionBarTr('publish')"
45
45
  :variant="isPublishButtonEnabled ? 'success' : 'gray'"
46
46
  :disabled="!isPublishButtonEnabled"
@@ -4,7 +4,7 @@
4
4
  <script>
5
5
  import BackgroundSettings from '@shared/background-settings/components/BackgroundSettings.vue';
6
6
 
7
- // The shared BackgroundSettings panel reads `isAdmin` from the user store and renders
7
+ // The shared BackgroundSettings panel reads `isAdminMaker` from the user store and renders
8
8
  // the admin controls (colour-match, add/placement) inline, so the admin tab is just a
9
9
  // thin wrapper. The old slot-based admin UI was removed when BackgroundSettings stopped
10
10
  // exposing #pre/#pre-shape/#post-shape slots (BP-4024).
@@ -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(() => containerStore.isAdminMaker),
155
+ isAdminMaker: computed(() => containerStore.isAdminMaker),
156
156
  contentErrorCount: computed(() => contentSettingsStore.contentErrorCount),
157
157
  mode: computed(() => contentSettingsStore.mode),
158
158
  brandPageMakerStore,