@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.
- package/lib/src/{CreatedOnBrandCrowd-de-de-Dd_GKG2N.js → CreatedOnBrandCrowd-de-de-t5akeGDG.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-Dins7rod.js → CreatedOnBrandCrowd-en-us-D6iRa7UV.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-D-ie39pg.js → CreatedOnBrandCrowd-es-es-BHwAxInw.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-CbgslN2_.js → CreatedOnBrandCrowd-fr-ca-DETrOR_X.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-CbgslN2_.js → CreatedOnBrandCrowd-fr-fr-DETrOR_X.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-OMePx480.js → CreatedOnBrandCrowd-pt-br-CtWsOLWg.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-OMePx480.js → CreatedOnBrandCrowd-pt-pt-CtWsOLWg.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-BJc1FMjI.js → CreatedOnDcom-de-de-DsEbB4hv.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-DoLdNglw.js → CreatedOnDcom-en-us-CA3kvbs5.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-BG1UvnwD.js → CreatedOnDcom-es-es-B7o8joWb.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-DzZkCm3Z.js → CreatedOnDcom-fr-ca-Yz1cvzRY.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-9vEmBWv1.js → CreatedOnDcom-fr-fr-BETGUOnB.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-B5-fW01S.js → CreatedOnDcom-pt-br-B37QJXKn.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-CNCPHKgi.js → CreatedOnDcom-pt-pt-DMkIALyd.js} +1 -1
- package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.d.ts +1 -2
- package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.js +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +4 -3
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.js +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.js +6 -6
- package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/store-fixture.d.ts +1 -1
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +4 -2
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.js +2 -2
- package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.d.ts +1 -2
- package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.js +3 -2
- package/lib/src/brand-page-maker/components/navigation/Navigation.mixin.d.ts +3 -3
- package/lib/src/brand-page-maker/components/navigation/Navigation.mixin.js +1 -1
- package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.d.ts +3 -1
- package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +3 -1
- package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +3 -1
- package/lib/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.d.ts +3 -1
- package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +4 -3
- package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.js +6 -6
- package/lib/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.d.ts +3 -1
- package/lib/src/brand-page-maker/composables/useUndoRedoFlag.d.ts +1 -1
- package/lib/src/brand-page-maker/composables/useUndoRedoFlag.js +4 -2
- package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.d.ts +5 -2
- package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.js +5 -12
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +13 -14
- package/lib/src/brand-page-maker/stores/ui/ui-store.js +3 -5
- package/lib/src/brand-page-maker/stores/user/user-store.d.ts +0 -1
- package/lib/src/brand-page-maker/stores/user/user-store.js +3 -8
- package/lib/src/brand-page-maker/stores/video/video-store.js +3 -1
- package/lib/src/css/library.brand-page-brandCrowd.min.css +57 -57
- package/lib/src/css/library.brand-page-brandPage.min.css +57 -57
- package/lib/src/css/library.brand-page-designCom.min.css +57 -57
- package/lib/src/css/library.brand-page-preview.min.css +57 -57
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-Cq0WlFYO.js → lib-BgxxXPxt.js} +8644 -8651
- package/lib/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.d.ts +1 -2
- package/lib/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.js +3 -2
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.js +3 -2
- package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +1 -2
- package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.js +4 -3
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.js +4 -4
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +1 -2
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.js +3 -3
- package/lib/src/shared/content-settings/components/draggable-item-list/DraggableItemList.mixin.d.ts +2 -2
- package/lib/src/shared/content-settings/components/draggable-item-list/DraggableItemList.mixin.js +1 -1
- package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.js +4 -3
- package/lib/src/shared/content-settings/components/images-field/ImagesField.mixin.d.ts +2 -2
- package/lib/src/shared/content-settings/components/images-field/ImagesField.mixin.js +1 -1
- package/lib/src/shared/content-settings/components/links-field/LinksField.mixin.d.ts +2 -2
- package/lib/src/shared/content-settings/components/links-field/LinksField.mixin.js +1 -1
- package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +3 -1
- package/lib/src/shared/content-settings/components/shape-field/ShapeField.mixin.d.ts +2 -2
- package/lib/src/shared/content-settings/components/shape-field/ShapeField.mixin.js +1 -1
- package/lib/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.d.ts +2 -2
- package/lib/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.js +1 -1
- package/lib/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.d.ts +2 -2
- package/lib/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.js +1 -1
- package/lib/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.d.ts +2 -2
- package/lib/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.js +1 -1
- package/lib/src/shared/content-settings/store/content-settings-store.js +3 -3
- package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +3 -1
- package/lib/src/shared/models.d.ts +0 -1
- package/lib/src/shared/my-uploads/MyUploads.mixin.d.ts +1 -1
- package/lib/src/shared/my-uploads/MyUploads.mixin.js +3 -2
- package/lib/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.d.ts +2 -2
- package/lib/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.js +1 -1
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +4 -3
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.js +1 -1
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +5 -3
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.js +1 -1
- package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +3 -1
- package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +4 -3
- package/lib/src/shared/side-bar/components/SideBar.mixin.js +3 -3
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +4 -3
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.js +2 -2
- package/lib/src/shared/template-settings/store/template-settings-store.js +8 -9
- package/package.json +1 -1
- package/src/brand-page-maker/components/action-bar/ActionBar.mixin.ts +1 -1
- package/src/brand-page-maker/components/action-bar/ActionBar.vue +1 -1
- package/src/brand-page-maker/components/action-bar/ActionBarNavigation.vue +5 -5
- package/src/brand-page-maker/components/admin-background-settings/AdminBackgroundSettings.vue +1 -1
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.ts +1 -1
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.ts +7 -7
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.vue +1 -1
- package/src/brand-page-maker/components/brand-page-maker/__fixtures__/store-fixture.ts +1 -1
- package/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.ts +2 -2
- package/src/brand-page-maker/components/brandpage-settings/BrandPageSettings.vue +3 -3
- package/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.ts +3 -1
- package/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.vue +1 -1
- package/src/brand-page-maker/components/navigation/Navigation.mixin.ts +1 -1
- package/src/brand-page-maker/components/navigation/Navigation.vue +3 -3
- package/src/brand-page-maker/components/rich-text-editor/RichTextEditor.vue +13 -13
- package/src/brand-page-maker/components/save-contact/SaveContact.vue +2 -2
- package/src/brand-page-maker/components/shop/ReplaceImageSettingsForShop.vue +1 -1
- package/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.ts +6 -6
- package/src/brand-page-maker/composables/useQuickLinkBarVisibility.test.ts +4 -5
- package/src/brand-page-maker/composables/useUndoRedoFlag.ts +4 -2
- package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.initialise.test.ts +3 -5
- package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.ts +8 -17
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.test.ts +5 -10
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +19 -14
- package/src/brand-page-maker/stores/ui/ui-store.ts +3 -5
- package/src/brand-page-maker/stores/user/user-store.test.ts +0 -35
- package/src/brand-page-maker/stores/user/user-store.ts +3 -8
- package/src/brand-page-maker/stores/video/video-store.ts +3 -1
- package/src/shared/background-settings/components/BackgroundSettings.vue +9 -9
- package/src/shared/background-settings/components/MultiBackgroundShapes.vue +7 -7
- package/src/shared/background-settings/components/ReplaceImageSettingsForBackgroundSettings.vue +4 -4
- package/src/shared/background-settings/components/SingleBackgroundShape.vue +5 -5
- package/src/shared/background-settings/components/background-color/BackgroundColorSettings.vue +6 -6
- package/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.ts +6 -2
- package/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.vue +1 -1
- package/src/shared/content-settings/components/button-configuration-field/ButtonConfigurationField.vue +2 -2
- package/src/shared/content-settings/components/color-field/ColorField.vue +6 -6
- package/src/shared/content-settings/components/color-replacements-field/ColorReplacementsField.vue +9 -7
- package/src/shared/content-settings/components/content-settings/ContentSettings.mixin.ts +3 -1
- package/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.ts +4 -2
- package/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.vue +1 -1
- package/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.ts +4 -4
- package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.ts +3 -3
- package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.vue +1 -1
- package/src/shared/content-settings/components/draggable-item-list/DraggableItemList.mixin.ts +1 -1
- package/src/shared/content-settings/components/draggable-item-list/DraggableItemList.vue +1 -1
- package/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.ts +5 -2
- package/src/shared/content-settings/components/images-field/ImagesField.mixin.ts +1 -1
- package/src/shared/content-settings/components/images-field/ImagesField.vue +1 -1
- package/src/shared/content-settings/components/links-field/LinksField.mixin.ts +1 -1
- package/src/shared/content-settings/components/links-field/LinksField.vue +1 -1
- package/src/shared/content-settings/components/logo-selection-field/LogoSelection.vue +1 -3
- package/src/shared/content-settings/components/personalisation-override-field/PersonalisationOverrideField.vue +6 -3
- package/src/shared/content-settings/components/replace-image-base-settings/ReplaceImageBaseSettings.vue +2 -2
- package/src/shared/content-settings/components/shape-field/ShapeField.mixin.ts +1 -1
- package/src/shared/content-settings/components/shape-field/ShapeField.vue +1 -1
- package/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.mixin.ts +1 -1
- package/src/shared/content-settings/components/testimonial-items-field/TestimonialItemsField.vue +5 -5
- package/src/shared/content-settings/components/text-image-field/TextImageField.vue +7 -7
- package/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.test.ts +1 -1
- package/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.ts +1 -1
- package/src/shared/content-settings/components/text-items-field/TextItemsField.vue +2 -2
- package/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.ts +1 -1
- package/src/shared/content-settings/components/text-style-field/TextStyleField.vue +2 -2
- package/src/shared/content-settings/store/content-settings-store.ts +3 -2
- package/src/shared/models.ts +0 -1
- package/src/shared/my-uploads/MyUploads.mixin.ts +3 -1
- package/src/shared/my-uploads/MyUploads.vue +1 -1
- package/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.ts +1 -1
- package/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.vue +12 -9
- package/src/shared/page-settings/components/page-settings/PageSettings.mixin.ts +1 -1
- package/src/shared/page-settings/components/page-settings/PageSettings.vue +3 -3
- package/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.ts +1 -1
- package/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.vue +4 -4
- package/src/shared/shape-library/ShapeLibrary.vue +10 -12
- package/src/shared/side-bar/components/SideBar.mixin.ts +3 -3
- package/src/shared/style-settings/components/StyleSettings.mixin.ts +2 -2
- package/src/shared/style-settings/components/StyleSettings.vue +29 -23
- package/src/shared/style-settings/components/text-style-options-settings-with-state/TextStyleOptionsSettingsWithState.vue +4 -2
- package/src/shared/template-settings/store/template-settings-store.ts +7 -9
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
id="background-overlay-color"
|
|
48
48
|
name="overlayColor"
|
|
49
49
|
:value="overlayColorValue"
|
|
50
|
-
:is-admin="
|
|
50
|
+
:is-admin-maker="isAdminMaker"
|
|
51
51
|
:logo-theme="logoTheme"
|
|
52
|
-
:enable-color-match="
|
|
52
|
+
:enable-color-match="isAdminMaker"
|
|
53
53
|
disable-transparent
|
|
54
54
|
:label="backgroundSettingsTr('overlayColor')"
|
|
55
55
|
@update:model-value="onOverlayColorChange"
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
<!-- Shape section — admin always sees it; customers only when the
|
|
81
81
|
template has at least one shape (main or array). -->
|
|
82
82
|
<CollapsiblePanel
|
|
83
|
-
v-if="
|
|
83
|
+
v-if="isAdminMaker || hasSingleShape || hasMultipleShapes"
|
|
84
84
|
data-component="collapsible-panel"
|
|
85
85
|
:title="backgroundSettingsTr('shape')"
|
|
86
86
|
>
|
|
@@ -121,7 +121,7 @@ import ColorField from '../../content-settings/components/color-field/ColorField
|
|
|
121
121
|
import {
|
|
122
122
|
BRANDPAGE_SETTINGS_MODES,
|
|
123
123
|
useBrandPageMakerStore,
|
|
124
|
-
|
|
124
|
+
useBrandPageContainerStore,
|
|
125
125
|
useUiStore,
|
|
126
126
|
useVideoStore,
|
|
127
127
|
} from '@brand-page-maker/stores';
|
|
@@ -143,7 +143,7 @@ import ReplaceImageSettingsForBackgroundSettings from './ReplaceImageSettingsFor
|
|
|
143
143
|
import { useEventTracker } from '@brand-page-maker/composables/useEventTracker';
|
|
144
144
|
|
|
145
145
|
const backgroundSettingsStore = useUiBackgroundSettingsStore();
|
|
146
|
-
const
|
|
146
|
+
const containerStore = useBrandPageContainerStore();
|
|
147
147
|
const brandPageMakerStore = useBrandPageMakerStore();
|
|
148
148
|
const uiStore = useUiStore();
|
|
149
149
|
const bpEventTracker = useEventTracker();
|
|
@@ -158,7 +158,7 @@ const recommendedLogoColors = computed(
|
|
|
158
158
|
const logoColors = computed(() => backgroundSettingsStore.logoColors);
|
|
159
159
|
const logoTheme = computed(() => uiStore.logoTheme);
|
|
160
160
|
const backgroundMode = computed(() => backgroundSettingsStore.backgroundMode);
|
|
161
|
-
const
|
|
161
|
+
const isAdminMaker = computed(() => containerStore.isAdminMaker);
|
|
162
162
|
const isPersonalisationEnabled = computed(
|
|
163
163
|
() => uiStore.isPersonalisationEnabled,
|
|
164
164
|
);
|
|
@@ -166,7 +166,7 @@ const isPersonalisationEnabled = computed(
|
|
|
166
166
|
defineEmits(['on-intent-image-replace']);
|
|
167
167
|
|
|
168
168
|
const showPersonalisationField = computed(() => {
|
|
169
|
-
return
|
|
169
|
+
return isAdminMaker.value && isPersonalisationEnabled.value;
|
|
170
170
|
});
|
|
171
171
|
|
|
172
172
|
const personalisationRole = computed(() => {
|
|
@@ -251,10 +251,10 @@ const hasMultipleShapes = computed(
|
|
|
251
251
|
|
|
252
252
|
const shapeTabs = computed(() => {
|
|
253
253
|
const tabs: string[] = [];
|
|
254
|
-
if (
|
|
254
|
+
if (isAdminMaker.value || hasSingleShape.value) {
|
|
255
255
|
tabs.push(backgroundSettingsTr('singleShape'));
|
|
256
256
|
}
|
|
257
|
-
if (
|
|
257
|
+
if (isAdminMaker.value || hasMultipleShapes.value) {
|
|
258
258
|
tabs.push(backgroundSettingsTr('multipleShapes'));
|
|
259
259
|
}
|
|
260
260
|
return tabs;
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
id="background-shapes"
|
|
6
6
|
name="shapeColor"
|
|
7
7
|
:value="shapeColorValue"
|
|
8
|
-
:is-admin="
|
|
8
|
+
:is-admin-maker="isAdminMaker"
|
|
9
9
|
:logo-theme="logoTheme"
|
|
10
|
-
:enable-color-match="
|
|
10
|
+
:enable-color-match="isAdminMaker"
|
|
11
11
|
:disable-transparent="true"
|
|
12
12
|
:custom-groups="customGroups"
|
|
13
13
|
:label="backgroundSettingsTr('shapeColor')"
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
|
|
73
73
|
<template v-if="backgroundShapes[option.index]">
|
|
74
74
|
<!-- Screen placement comes first (admin-only, template building) -->
|
|
75
|
-
<template v-if="
|
|
75
|
+
<template v-if="isAdminMaker">
|
|
76
76
|
<p
|
|
77
77
|
class="tw-mt-3 tw-font-sans tw-font-bold tw-text-secondary-800 tw-text-sm tw-mb-1"
|
|
78
78
|
>
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
|
|
144
144
|
<!-- Adding items is admin-only -->
|
|
145
145
|
<Button
|
|
146
|
-
v-if="
|
|
146
|
+
v-if="isAdminMaker"
|
|
147
147
|
variant="outline"
|
|
148
148
|
:label="shapeFieldTr('addItemLabel')"
|
|
149
149
|
size="small"
|
|
@@ -163,7 +163,7 @@ import ImageField from '../../content-settings/components/image-field/ImageField
|
|
|
163
163
|
import ShapePositionSlider from '@brand-page-maker/components/admin-background-settings/ShapePositionSlider.vue';
|
|
164
164
|
import { useUiBackgroundSettingsStore } from '../store';
|
|
165
165
|
import { useBackgroundShapeControls } from '../composables/useBackgroundShapeControls';
|
|
166
|
-
import {
|
|
166
|
+
import { useBrandPageContainerStore } from '@brand-page-maker/stores';
|
|
167
167
|
import { RGBAtoHex, hexToRGBA } from '@utils/helpers';
|
|
168
168
|
import { isColorMatched } from '@brand-page-maker/utils';
|
|
169
169
|
import {
|
|
@@ -186,8 +186,8 @@ defineProps({
|
|
|
186
186
|
});
|
|
187
187
|
|
|
188
188
|
const store = useUiBackgroundSettingsStore();
|
|
189
|
-
const
|
|
190
|
-
const
|
|
189
|
+
const containerStore = useBrandPageContainerStore();
|
|
190
|
+
const isAdminMaker = computed(() => containerStore.isAdminMaker);
|
|
191
191
|
|
|
192
192
|
const {
|
|
193
193
|
backgroundShapes,
|
package/src/shared/background-settings/components/ReplaceImageSettingsForBackgroundSettings.vue
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
:section-title="sectionTitle"
|
|
5
5
|
:media-settings="mediaSettings"
|
|
6
6
|
:image-extension="mediaExtension"
|
|
7
|
-
:is-admin="
|
|
7
|
+
:is-admin-maker="isAdminMaker"
|
|
8
8
|
:mode="backgroundMode"
|
|
9
9
|
:active-tabs="activeTabs"
|
|
10
10
|
:media-type="mediaType"
|
|
@@ -22,7 +22,7 @@ import ReplaceImageBaseSettings from '@shared/content-settings/components/replac
|
|
|
22
22
|
import {
|
|
23
23
|
GETTY_VIDEO_LIMIT_FOR_SITE,
|
|
24
24
|
useBrandPageMakerStore,
|
|
25
|
-
|
|
25
|
+
useBrandPageContainerStore,
|
|
26
26
|
useVideoStore,
|
|
27
27
|
} from '@brand-page-maker/stores';
|
|
28
28
|
import { useUiBackgroundSettingsStore } from '../store';
|
|
@@ -51,14 +51,14 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
51
51
|
const imageExtension = ['.png', '.ico'];
|
|
52
52
|
|
|
53
53
|
const brandPageMakerStore = useBrandPageMakerStore();
|
|
54
|
-
const
|
|
54
|
+
const containerStore = useBrandPageContainerStore();
|
|
55
55
|
const backgroundSettingsStore = useUiBackgroundSettingsStore();
|
|
56
56
|
const videoStore = useVideoStore();
|
|
57
57
|
const contentSettingsStore = useUiContentSettingsStore();
|
|
58
58
|
const bpEventTracker = useEventTracker();
|
|
59
59
|
|
|
60
60
|
const backgroundMode = computed(() => backgroundSettingsStore.backgroundMode);
|
|
61
|
-
const
|
|
61
|
+
const isAdminMaker = computed(() => containerStore.isAdminMaker);
|
|
62
62
|
|
|
63
63
|
const mediaSettings = computed((): ReplaceImageSettingsBase | undefined => {
|
|
64
64
|
return brandPageMakerStore.fieldSettings?.replaceImageSettings;
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
id="background-shape"
|
|
15
15
|
name="shapeColor"
|
|
16
16
|
:value="shapeColorValue"
|
|
17
|
-
:is-admin="
|
|
17
|
+
:is-admin-maker="isAdminMaker"
|
|
18
18
|
:logo-theme="logoTheme"
|
|
19
|
-
:enable-color-match="
|
|
19
|
+
:enable-color-match="isAdminMaker"
|
|
20
20
|
:disable-transparent="true"
|
|
21
21
|
:custom-groups="customGroups"
|
|
22
22
|
:label="backgroundSettingsTr('shapeColor')"
|
|
@@ -47,7 +47,7 @@ import ColorField from '../../content-settings/components/color-field/ColorField
|
|
|
47
47
|
import ImageField from '../../content-settings/components/image-field/ImageField.vue';
|
|
48
48
|
import { useUiBackgroundSettingsStore } from '../store';
|
|
49
49
|
import { useSingleBackgroundShape } from '../composables/useSingleBackgroundShape';
|
|
50
|
-
import {
|
|
50
|
+
import { useBrandPageContainerStore } from '@brand-page-maker/stores';
|
|
51
51
|
import { backgroundSettingsTr } from '@src/composables/useTranslate';
|
|
52
52
|
import type { LogoTheme } from '@brand-page';
|
|
53
53
|
|
|
@@ -65,8 +65,8 @@ defineProps({
|
|
|
65
65
|
});
|
|
66
66
|
|
|
67
67
|
const store = useUiBackgroundSettingsStore();
|
|
68
|
-
const
|
|
69
|
-
const
|
|
68
|
+
const containerStore = useBrandPageContainerStore();
|
|
69
|
+
const isAdminMaker = computed(() => containerStore.isAdminMaker);
|
|
70
70
|
|
|
71
71
|
const {
|
|
72
72
|
shapeUrl,
|
package/src/shared/background-settings/components/background-color/BackgroundColorSettings.vue
CHANGED
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
id="background-color"
|
|
5
5
|
name="background"
|
|
6
6
|
:value="backgroundStyles.style.background || ''"
|
|
7
|
-
:is-admin="
|
|
7
|
+
:is-admin-maker="isAdminMaker"
|
|
8
8
|
:logo-theme="logoTheme"
|
|
9
|
-
:enable-color-match="
|
|
9
|
+
:enable-color-match="isAdminMaker"
|
|
10
10
|
show-gradients
|
|
11
11
|
disable-transparent
|
|
12
12
|
:label="backgroundSettingsTr(`backgroundColor`)"
|
|
13
13
|
@update:model-value="onBackgroundColorChange"
|
|
14
14
|
/>
|
|
15
15
|
<HelloBar
|
|
16
|
-
v-if="colorMatched &&
|
|
16
|
+
v-if="colorMatched && isAdminMaker"
|
|
17
17
|
label="Color Matched Logo"
|
|
18
18
|
description="The color of the background is matched to the customers logo. If you change the color of the background, it will not longer be matched to the customer's logo."
|
|
19
19
|
class="tw-mb-4 tw-mt-4"
|
|
@@ -28,7 +28,7 @@ import { useUiBackgroundSettingsStore } from '../../store';
|
|
|
28
28
|
import ColorField from '../../../content-settings/components/color-field/ColorField.vue';
|
|
29
29
|
import { isColorMatched } from '@brand-page-maker/utils';
|
|
30
30
|
import { arrayToLinearGradient, hexToRGBA, RGBAtoHex } from '@utils/helpers';
|
|
31
|
-
import {
|
|
31
|
+
import { useBrandPageContainerStore } from '@brand-page-maker/stores';
|
|
32
32
|
import { backgroundSettingsTr } from '@src/composables/useTranslate';
|
|
33
33
|
|
|
34
34
|
// Props
|
|
@@ -43,11 +43,11 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
43
43
|
});
|
|
44
44
|
|
|
45
45
|
// Stores
|
|
46
|
-
const
|
|
46
|
+
const containerStore = useBrandPageContainerStore();
|
|
47
47
|
const backgroundSettingsStore = useUiBackgroundSettingsStore();
|
|
48
48
|
|
|
49
49
|
// Computed
|
|
50
|
-
const
|
|
50
|
+
const isAdminMaker = computed(() => containerStore.isAdminMaker);
|
|
51
51
|
const backgroundStyles = computed(
|
|
52
52
|
() => backgroundSettingsStore.backgroundStyles,
|
|
53
53
|
);
|
package/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.ts
CHANGED
|
@@ -5,7 +5,10 @@ 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 {
|
|
8
|
+
import {
|
|
9
|
+
useBrandPageMakerUserStore,
|
|
10
|
+
useBrandPageContainerStore,
|
|
11
|
+
} from '@brand-page-maker/stores';
|
|
9
12
|
|
|
10
13
|
export default defineComponent({
|
|
11
14
|
components: {
|
|
@@ -27,10 +30,11 @@ export default defineComponent({
|
|
|
27
30
|
},
|
|
28
31
|
setup() {
|
|
29
32
|
const userStore = useBrandPageMakerUserStore();
|
|
33
|
+
const containerStore = useBrandPageContainerStore();
|
|
30
34
|
const backgroundSettingsStore = useUiBackgroundSettingsStore();
|
|
31
35
|
|
|
32
36
|
return {
|
|
33
|
-
|
|
37
|
+
isAdminMaker: computed(() => containerStore.isAdminMaker),
|
|
34
38
|
backgroundStyles: computed(
|
|
35
39
|
() => backgroundSettingsStore.backgroundStyles,
|
|
36
40
|
),
|
package/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<HelloBar
|
|
4
|
-
v-if="colorMatched &&
|
|
4
|
+
v-if="colorMatched && isAdminMaker"
|
|
5
5
|
label="Color Matched Logo"
|
|
6
6
|
description="The color of the shapes is matched to the customers logo. If you change the color of the shapes, it will not longer be matched to the customer's logo."
|
|
7
7
|
class="tw-mb-4"
|
|
@@ -130,13 +130,13 @@ interface Props {
|
|
|
130
130
|
pages?: Array<{ slug: string; title: string }>;
|
|
131
131
|
titleLength?: number;
|
|
132
132
|
descriptionLength?: number;
|
|
133
|
-
|
|
133
|
+
isAdminMaker?: boolean;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
const props = withDefaults(defineProps<Props>(), {
|
|
137
137
|
titleLength: MAX_TITLE_LENGTH,
|
|
138
138
|
descriptionLength: MAX_DESCRIPTION_LENGTH,
|
|
139
|
-
|
|
139
|
+
isAdminMaker: false,
|
|
140
140
|
pages: undefined,
|
|
141
141
|
});
|
|
142
142
|
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
class="tw-flex"
|
|
5
5
|
:class="{
|
|
6
6
|
'tw-mt-4': !!label,
|
|
7
|
-
'tw-flex-col tw-gap-y-2 tw-w-full':
|
|
8
|
-
'tw-gap-2 tw-justify-between tw-items-center': !
|
|
7
|
+
'tw-flex-col tw-gap-y-2 tw-w-full': isAdminMaker,
|
|
8
|
+
'tw-gap-2 tw-justify-between tw-items-center': !isAdminMaker,
|
|
9
9
|
}"
|
|
10
10
|
>
|
|
11
11
|
<span
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
class="tw-flex tw-flex-row tw-gap-2 tw-items-center tw-justify-between"
|
|
19
19
|
>
|
|
20
20
|
<Toggle
|
|
21
|
-
v-if="
|
|
21
|
+
v-if="isAdminMaker && enableColorMatch"
|
|
22
22
|
:id="`${id}-${name}-color-matched${toggleIdSuffix}`"
|
|
23
23
|
:model-value="isOptionColorMatched"
|
|
24
24
|
color="info"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
<!-- Start Admin Style Theme Key Select -->
|
|
46
|
-
<div v-if="
|
|
46
|
+
<div v-if="isAdminMaker && !isRichTextEditor && isOptionColorMatched">
|
|
47
47
|
<select
|
|
48
48
|
class="c-select c-button-style tw-border tw-appearance-none tw-border-none tw-h-10 tw-pl-2 tw-rounded tw-cursor-pointer tw-transition-all tw-duration-300 tw-bg-white"
|
|
49
49
|
@change.stop="
|
|
@@ -100,7 +100,7 @@ interface Props {
|
|
|
100
100
|
string | undefined
|
|
101
101
|
>;
|
|
102
102
|
label?: string;
|
|
103
|
-
|
|
103
|
+
isAdminMaker: boolean;
|
|
104
104
|
logoTheme: LogoTheme;
|
|
105
105
|
toggleUniqueId?: string;
|
|
106
106
|
enableColorMatch?: boolean;
|
|
@@ -333,7 +333,7 @@ watch(
|
|
|
333
333
|
return;
|
|
334
334
|
}
|
|
335
335
|
|
|
336
|
-
if (props.
|
|
336
|
+
if (props.isAdminMaker && !newVal) {
|
|
337
337
|
newColor.value = '';
|
|
338
338
|
changeColor();
|
|
339
339
|
return;
|
package/src/shared/content-settings/components/color-replacements-field/ColorReplacementsField.vue
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
data-component="color-replacements-field"
|
|
4
4
|
class="tw-flex"
|
|
5
5
|
:class="{
|
|
6
|
-
'tw-flex-col tw-gap-y-2 tw-w-full':
|
|
7
|
-
'tw-gap-2 tw-justify-between tw-items-center': !
|
|
6
|
+
'tw-flex-col tw-gap-y-2 tw-w-full': isAdminMaker,
|
|
7
|
+
'tw-gap-2 tw-justify-between tw-items-center': !isAdminMaker,
|
|
8
8
|
}"
|
|
9
9
|
>
|
|
10
10
|
<span
|
|
@@ -14,7 +14,9 @@
|
|
|
14
14
|
</span>
|
|
15
15
|
<Toggle
|
|
16
16
|
v-if="
|
|
17
|
-
|
|
17
|
+
isAdminMaker &&
|
|
18
|
+
data.colorReplacements &&
|
|
19
|
+
data.colorReplacements.length > 0
|
|
18
20
|
"
|
|
19
21
|
:id="`${id}-${name}-color-matched${toggleIdSuffix}`"
|
|
20
22
|
:model-value="isOptionColorMatched"
|
|
@@ -35,18 +37,18 @@
|
|
|
35
37
|
:key="`${colorReplacement.attribute}-${colorReplacement.originalColor}`"
|
|
36
38
|
>
|
|
37
39
|
<ColorField
|
|
38
|
-
v-if="!
|
|
40
|
+
v-if="!isAdminMaker || !isOptionColorMatched"
|
|
39
41
|
name="fill"
|
|
40
42
|
:disable-transparent="true"
|
|
41
43
|
:value="colorReplacement.replacementColor"
|
|
42
|
-
:is-admin="
|
|
44
|
+
:is-admin-maker="isAdminMaker"
|
|
43
45
|
:logo-theme="logoTheme"
|
|
44
46
|
@update:model-value="onColorPickerInput($event, index)"
|
|
45
47
|
/>
|
|
46
48
|
</div>
|
|
47
49
|
<div
|
|
48
50
|
v-if="
|
|
49
|
-
|
|
51
|
+
isAdminMaker &&
|
|
50
52
|
data.colorReplacements &&
|
|
51
53
|
data.colorReplacements.length > 0 &&
|
|
52
54
|
isOptionColorMatched
|
|
@@ -90,7 +92,7 @@ const props = defineProps<{
|
|
|
90
92
|
id: string;
|
|
91
93
|
name: string;
|
|
92
94
|
value: ColorReplacement[];
|
|
93
|
-
|
|
95
|
+
isAdminMaker: boolean;
|
|
94
96
|
label?: string;
|
|
95
97
|
toggleUniqueId?: string;
|
|
96
98
|
logoTheme: LogoTheme;
|
|
@@ -13,6 +13,7 @@ import { CONTENT_SETTINGS_MODES } from '../../store';
|
|
|
13
13
|
import {
|
|
14
14
|
useBrandPageMakerStore,
|
|
15
15
|
useBrandPageMakerUserStore,
|
|
16
|
+
useBrandPageContainerStore,
|
|
16
17
|
} from '@brand-page-maker/stores';
|
|
17
18
|
import { SIDE_BAR_CONTENT_ID } from '../../constants';
|
|
18
19
|
import type { ComponentPublicInstance } from '@vue/runtime-core';
|
|
@@ -44,6 +45,7 @@ export default defineComponent({
|
|
|
44
45
|
const pageNavigationStore = usePageNavigationStore();
|
|
45
46
|
const styleSettingsStore = useUiStyleSettingsStore();
|
|
46
47
|
const userStore = useBrandPageMakerUserStore();
|
|
48
|
+
const containerStore = useBrandPageContainerStore();
|
|
47
49
|
const eventTracker = useEventTracker();
|
|
48
50
|
const historyStore = useHistoryStore();
|
|
49
51
|
const { externalEditor } = useExternalRichTextEditor();
|
|
@@ -57,7 +59,7 @@ export default defineComponent({
|
|
|
57
59
|
contentSettingsSelectedItemId: computed(
|
|
58
60
|
() => contentSettingsStore.selectedItemId,
|
|
59
61
|
),
|
|
60
|
-
|
|
62
|
+
isAdminMaker: computed(() => containerStore.isAdminMaker),
|
|
61
63
|
canUseRichTextEditor: computed(
|
|
62
64
|
() => userStore.features.canUseRichTextEditor,
|
|
63
65
|
),
|
|
@@ -13,6 +13,7 @@ import type {
|
|
|
13
13
|
import { useUiContentSettingsStore } from '../../store';
|
|
14
14
|
import {
|
|
15
15
|
useBrandPageMakerUserStore,
|
|
16
|
+
useBrandPageContainerStore,
|
|
16
17
|
useBrandPageMakerStore,
|
|
17
18
|
useVideoStore,
|
|
18
19
|
GETTY_VIDEO_LIMIT_FOR_SITE,
|
|
@@ -33,6 +34,7 @@ export default defineComponent({
|
|
|
33
34
|
const brandPageMakerStore = useBrandPageMakerStore();
|
|
34
35
|
const contentSettingsStore = useUiContentSettingsStore();
|
|
35
36
|
const userStore = useBrandPageMakerUserStore();
|
|
37
|
+
const containerStore = useBrandPageContainerStore();
|
|
36
38
|
const pageSettingsStore = useUiPageSettingsStore();
|
|
37
39
|
const videoStore = useVideoStore();
|
|
38
40
|
const bpEventTracker = useEventTracker();
|
|
@@ -52,7 +54,7 @@ export default defineComponent({
|
|
|
52
54
|
() => contentSettingsStore.selectedItemTemplate?.type,
|
|
53
55
|
),
|
|
54
56
|
mode: computed(() => contentSettingsStore.mode),
|
|
55
|
-
|
|
57
|
+
isAdminMaker: computed(() => containerStore.isAdminMaker),
|
|
56
58
|
contentSettingsStore,
|
|
57
59
|
userStore,
|
|
58
60
|
pageSettingsStore,
|
|
@@ -64,7 +66,7 @@ export default defineComponent({
|
|
|
64
66
|
},
|
|
65
67
|
computed: {
|
|
66
68
|
isDeleteEnabled(): boolean {
|
|
67
|
-
return this.
|
|
69
|
+
return this.isAdminMaker;
|
|
68
70
|
},
|
|
69
71
|
selectedField(): ContentItemFieldSettings | undefined {
|
|
70
72
|
if (!this.selectedItemFieldName) {
|
package/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.ts
CHANGED
|
@@ -14,7 +14,7 @@ import { useUiContentSettingsStore, CONTENT_SETTINGS_MODES } from '../../store';
|
|
|
14
14
|
import { SIDE_BAR_CONTENT_ID } from '../../constants';
|
|
15
15
|
import {
|
|
16
16
|
useBrandPageMakerStore,
|
|
17
|
-
|
|
17
|
+
useBrandPageContainerStore,
|
|
18
18
|
useRouteStore,
|
|
19
19
|
useUiStore,
|
|
20
20
|
} from '@brand-page-maker/stores';
|
|
@@ -59,7 +59,7 @@ export default defineComponent({
|
|
|
59
59
|
const sideBarStore = useUiSideBarStore();
|
|
60
60
|
const brandPageMakerStore = useBrandPageMakerStore();
|
|
61
61
|
const uiStore = useUiStore();
|
|
62
|
-
const
|
|
62
|
+
const containerStore = useBrandPageContainerStore();
|
|
63
63
|
const routeStore = useRouteStore();
|
|
64
64
|
const eventTracker = useEventTracker();
|
|
65
65
|
|
|
@@ -72,7 +72,7 @@ export default defineComponent({
|
|
|
72
72
|
isPersonalisationEnabled: computed(
|
|
73
73
|
() => uiStore.isPersonalisationEnabled,
|
|
74
74
|
),
|
|
75
|
-
|
|
75
|
+
isAdminMaker: computed(() => containerStore.isAdminMaker),
|
|
76
76
|
contentSettingsStore,
|
|
77
77
|
sideBarStore,
|
|
78
78
|
eventTracker,
|
|
@@ -190,7 +190,7 @@ export default defineComponent({
|
|
|
190
190
|
},
|
|
191
191
|
|
|
192
192
|
showPersonalisationField(): boolean {
|
|
193
|
-
return this.
|
|
193
|
+
return this.isAdminMaker && this.isPersonalisationEnabled;
|
|
194
194
|
},
|
|
195
195
|
|
|
196
196
|
personalisationRole(): PersonalisationRole | undefined {
|
|
@@ -68,7 +68,7 @@ export default defineComponent({
|
|
|
68
68
|
getContent: computed(() => contentSettingsStore.getContent),
|
|
69
69
|
getValue: computed(() => contentSettingsStore.getValue),
|
|
70
70
|
brandPageData: computed(() => brandPageMakerStore.brandPageData),
|
|
71
|
-
|
|
71
|
+
isAdminMaker: computed(() => brandPageContainerStore.isAdminMaker),
|
|
72
72
|
isDesignCom: computed(() => brandPageContainerStore.isDesignCom),
|
|
73
73
|
canUseRichTextEditor: computed(
|
|
74
74
|
() => userStore.features.canUseRichTextEditor,
|
|
@@ -208,7 +208,7 @@ export default defineComponent({
|
|
|
208
208
|
},
|
|
209
209
|
showToggle(): boolean | undefined {
|
|
210
210
|
//TODO: convert showToggle to both boolean and a function
|
|
211
|
-
if (this.field.name === 'backgroundStyle' && this.
|
|
211
|
+
if (this.field.name === 'backgroundStyle' && this.isAdminMaker) {
|
|
212
212
|
return true;
|
|
213
213
|
}
|
|
214
214
|
|
|
@@ -294,7 +294,7 @@ export default defineComponent({
|
|
|
294
294
|
}
|
|
295
295
|
},
|
|
296
296
|
onFieldChangeLogo(): void {
|
|
297
|
-
if (this.
|
|
297
|
+
if (this.isAdminMaker) {
|
|
298
298
|
this.sideBarStore.setSelectedTabName({
|
|
299
299
|
tabName: SIDE_BAR_TAB_NAMES.ADMIN_LOGO_SETTINGS,
|
|
300
300
|
});
|
|
@@ -15,6 +15,7 @@ import { useUiContentSettingsStore } from '../../store';
|
|
|
15
15
|
import {
|
|
16
16
|
useBrandPageMakerStore,
|
|
17
17
|
useBrandPageMakerUserStore,
|
|
18
|
+
useBrandPageContainerStore,
|
|
18
19
|
useRouteStore,
|
|
19
20
|
useUiStore,
|
|
20
21
|
} from '@brand-page-maker/stores';
|
|
@@ -39,6 +40,8 @@ export default defineComponent({
|
|
|
39
40
|
const _styleSettingsStore = useUiStyleSettingsStore();
|
|
40
41
|
|
|
41
42
|
const userStore = useBrandPageMakerUserStore();
|
|
43
|
+
|
|
44
|
+
const containerStore = useBrandPageContainerStore();
|
|
42
45
|
const uiStore = useUiStore();
|
|
43
46
|
const routeStore = useRouteStore();
|
|
44
47
|
const { externalEditor } = useExternalRichTextEditor();
|
|
@@ -54,7 +57,7 @@ export default defineComponent({
|
|
|
54
57
|
isPersonalisationEnabled: computed(
|
|
55
58
|
() => uiStore.isPersonalisationEnabled,
|
|
56
59
|
),
|
|
57
|
-
|
|
60
|
+
isAdminMaker: computed(() => containerStore.isAdminMaker),
|
|
58
61
|
canUseRichTextEditor: computed(
|
|
59
62
|
() => userStore.features.canUseRichTextEditor,
|
|
60
63
|
),
|
|
@@ -220,7 +223,7 @@ export default defineComponent({
|
|
|
220
223
|
},
|
|
221
224
|
|
|
222
225
|
showPersonalisationField(): boolean {
|
|
223
|
-
return this.
|
|
226
|
+
return this.isAdminMaker && this.isPersonalisationEnabled;
|
|
224
227
|
},
|
|
225
228
|
|
|
226
229
|
personalisationRole(): PersonalisationRole | undefined {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
value-prop-name="url"
|
|
11
11
|
field-type="url"
|
|
12
12
|
:settings="itemListSettings"
|
|
13
|
-
:is-admin="
|
|
13
|
+
:is-admin-maker="isAdminMaker"
|
|
14
14
|
:logo-theme="logoTheme"
|
|
15
15
|
@on-intent-image-replace="onItemListIntentImageReplace"
|
|
16
16
|
@on-color-replacements-change="onColorReplacementsChange"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
@on-click.stop="onEditLogoButtonClicked"
|
|
19
19
|
/>
|
|
20
20
|
</div>
|
|
21
|
-
<div v-if="
|
|
21
|
+
<div v-if="containerStore.isAdminMaker">
|
|
22
22
|
<LogoField
|
|
23
23
|
:value="selectedLogo"
|
|
24
24
|
button-label="Change Logo"
|
|
@@ -119,7 +119,6 @@ import LogoVersions from '@shared/logo-versions/LogoVersions.vue';
|
|
|
119
119
|
import LogoVariations from '@shared/logo-settings/components/LogoVariations.vue';
|
|
120
120
|
import {
|
|
121
121
|
useBrandPageContainerStore,
|
|
122
|
-
useBrandPageMakerUserStore,
|
|
123
122
|
useLogoStore,
|
|
124
123
|
} from '@brand-page-maker/stores/index';
|
|
125
124
|
import { computed, onMounted, reactive, watch } from 'vue';
|
|
@@ -200,7 +199,6 @@ const containerStore = useBrandPageContainerStore();
|
|
|
200
199
|
const logoStore = useLogoStore();
|
|
201
200
|
const editableLogoStore = useUiEditableLogoStore();
|
|
202
201
|
const sideBarStore = useUiSideBarStore();
|
|
203
|
-
const userStore = useBrandPageMakerUserStore();
|
|
204
202
|
|
|
205
203
|
const currentLogoIsByo = computed(() => {
|
|
206
204
|
const logoDraftAsset = logoStore.getLogoDraftAssetByToken(
|