@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.
- package/lib/src/{CreatedOnBrandCrowd-de-de-CPLDYp5f.js → CreatedOnBrandCrowd-de-de-t5akeGDG.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-Br3HqLLr.js → CreatedOnBrandCrowd-en-us-D6iRa7UV.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-DwkIQVgN.js → CreatedOnBrandCrowd-es-es-BHwAxInw.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-DqeI8mF_.js → CreatedOnBrandCrowd-fr-ca-DETrOR_X.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-DqeI8mF_.js → CreatedOnBrandCrowd-fr-fr-DETrOR_X.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-bvgq_CN8.js → CreatedOnBrandCrowd-pt-br-CtWsOLWg.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-bvgq_CN8.js → CreatedOnBrandCrowd-pt-pt-CtWsOLWg.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-nT3MnRXy.js → CreatedOnDcom-de-de-DsEbB4hv.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-D2TYrEzJ.js → CreatedOnDcom-en-us-CA3kvbs5.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-Q-5tnP12.js → CreatedOnDcom-es-es-B7o8joWb.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-txkwqCzm.js → CreatedOnDcom-fr-ca-Yz1cvzRY.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-CUnJXLgr.js → CreatedOnDcom-fr-fr-BETGUOnB.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-7XAwvP9H.js → CreatedOnDcom-pt-br-B37QJXKn.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-DjhLiioZ.js → CreatedOnDcom-pt-pt-DMkIALyd.js} +1 -1
- package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.d.ts +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 -1
- package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.js +1 -1
- 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/template-preview/TemplatePreview.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.js +6 -6
- 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-dewphkuW.js → lib-BgxxXPxt.js} +191 -191
- package/lib/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.d.ts +1 -1
- package/lib/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.js +1 -1
- 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 +1 -1
- package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.js +2 -2
- 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 +2 -2
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +1 -1
- 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 +2 -2
- 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/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/my-uploads/MyUploads.mixin.d.ts +1 -1
- package/lib/src/shared/my-uploads/MyUploads.mixin.js +1 -1
- 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 +1 -1
- 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 +2 -2
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.js +1 -1
- package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +1 -1
- package/lib/src/shared/side-bar/components/SideBar.mixin.js +3 -3
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +1 -1
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.js +2 -2
- 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 +1 -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 +11 -11
- 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/shared/background-settings/components/BackgroundSettings.vue +7 -7
- package/src/shared/background-settings/components/MultiBackgroundShapes.vue +5 -5
- package/src/shared/background-settings/components/ReplaceImageSettingsForBackgroundSettings.vue +2 -2
- package/src/shared/background-settings/components/SingleBackgroundShape.vue +3 -3
- package/src/shared/background-settings/components/background-color/BackgroundColorSettings.vue +4 -4
- package/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.ts +1 -1
- 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 +1 -1
- package/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.ts +2 -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 +2 -2
- 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 +2 -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/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/my-uploads/MyUploads.mixin.ts +1 -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 +9 -9
- 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 +2 -2
|
@@ -111,7 +111,7 @@ const InitialiseMakerStores = (options: {
|
|
|
111
111
|
prepurchase?: {};
|
|
112
112
|
postpurchase?: {};
|
|
113
113
|
isDesignCom?: boolean;
|
|
114
|
-
|
|
114
|
+
isAdminMaker?: boolean;
|
|
115
115
|
}) => {
|
|
116
116
|
const isPrePurchase = !!options.prepurchase;
|
|
117
117
|
|
|
@@ -274,12 +274,12 @@ const InitialiseMakerStores = (options: {
|
|
|
274
274
|
});
|
|
275
275
|
|
|
276
276
|
userStore.setUserState({
|
|
277
|
-
isAdmin: options.
|
|
277
|
+
isAdmin: options.isAdminMaker,
|
|
278
278
|
hasPremiumSubscription: false,
|
|
279
279
|
brandPageCommissionPercentage: 0.1,
|
|
280
280
|
});
|
|
281
281
|
|
|
282
|
-
brandPageContainerStore.isAdminMaker = options.
|
|
282
|
+
brandPageContainerStore.isAdminMaker = options.isAdminMaker ?? false;
|
|
283
283
|
};
|
|
284
284
|
|
|
285
285
|
const FABRIC_RENDER_BASE_URL = 'https://localhost:6006/';
|
|
@@ -485,7 +485,7 @@ SampleBanner.story = {
|
|
|
485
485
|
};
|
|
486
486
|
|
|
487
487
|
export const SamplePersonalised = (): any => {
|
|
488
|
-
InitialiseMakerStores({
|
|
488
|
+
InitialiseMakerStores({ isAdminMaker: true });
|
|
489
489
|
|
|
490
490
|
return defineComponent({
|
|
491
491
|
components: {
|
|
@@ -511,7 +511,7 @@ export const SamplePersonalised = (): any => {
|
|
|
511
511
|
template: `
|
|
512
512
|
<BrandPageMaker :view-model="viewModel"/>
|
|
513
513
|
`,
|
|
514
|
-
pinia: setupStoryPinia({
|
|
514
|
+
pinia: setupStoryPinia({ isAdminMaker: true }),
|
|
515
515
|
});
|
|
516
516
|
};
|
|
517
517
|
|
|
@@ -1364,7 +1364,7 @@ export const SampleNoUserMedia = (): any => {
|
|
|
1364
1364
|
};
|
|
1365
1365
|
|
|
1366
1366
|
export const SampleAdminMode = (): any => {
|
|
1367
|
-
InitialiseMakerStores({
|
|
1367
|
+
InitialiseMakerStores({ isAdminMaker: true });
|
|
1368
1368
|
|
|
1369
1369
|
const pinia = setupStoryPinia();
|
|
1370
1370
|
|
|
@@ -1412,7 +1412,7 @@ export const SampleAdminModeBrandSite: Story = {
|
|
|
1412
1412
|
name: 'Sample (admin mode brandsite1)',
|
|
1413
1413
|
render: () => ({
|
|
1414
1414
|
setup() {
|
|
1415
|
-
InitialiseMakerStores({
|
|
1415
|
+
InitialiseMakerStores({ isAdminMaker: true });
|
|
1416
1416
|
},
|
|
1417
1417
|
components: {
|
|
1418
1418
|
BrandPageMaker,
|
|
@@ -75,7 +75,7 @@ export default defineComponent({
|
|
|
75
75
|
canUseRichTextEditor: computed(
|
|
76
76
|
() => brandPageMakerUserStore.features.canUseRichTextEditor,
|
|
77
77
|
),
|
|
78
|
-
|
|
78
|
+
isAdminMaker: computed(() => brandPageContainerStore.isAdminMaker),
|
|
79
79
|
logoTheme: computed(() => uiStore.logoTheme),
|
|
80
80
|
contentSettingsStore,
|
|
81
81
|
brandPageMakerStore,
|
|
@@ -294,7 +294,7 @@ export default defineComponent({
|
|
|
294
294
|
) {
|
|
295
295
|
let selectedItem = item;
|
|
296
296
|
|
|
297
|
-
if (this.
|
|
297
|
+
if (this.isAdminMaker) {
|
|
298
298
|
const currentItem = this.items.find(
|
|
299
299
|
(i: { id: string }) => i.id === item.id,
|
|
300
300
|
);
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
>
|
|
141
141
|
<div class="tw-mt-2">
|
|
142
142
|
<SaveContact
|
|
143
|
-
:is-admin="
|
|
143
|
+
:is-admin-maker="isAdminMaker"
|
|
144
144
|
:is-pre-purchase="isPrePurchase"
|
|
145
145
|
:is-design-com="isDesignCom"
|
|
146
146
|
/>
|
|
@@ -248,7 +248,7 @@ const brandPageViewModel = computed(
|
|
|
248
248
|
() => brandPageMakerStore.brandPageViewModel,
|
|
249
249
|
);
|
|
250
250
|
const features = computed(() => userStore.features);
|
|
251
|
-
const
|
|
251
|
+
const isAdminMaker = computed(() => containerStore.isAdminMaker);
|
|
252
252
|
const isDesignCom = computed(() => containerStore.isDesignCom);
|
|
253
253
|
const ogImageUrl = computed(() => brandPageMakerStore.ogImageUrl);
|
|
254
254
|
const isPublished = computed(() => containerStore.isPublished);
|
|
@@ -265,7 +265,7 @@ const data = reactive({
|
|
|
265
265
|
});
|
|
266
266
|
|
|
267
267
|
const isPaymentProvidersSectionEnabled = computed((): boolean => {
|
|
268
|
-
return !
|
|
268
|
+
return !isAdminMaker.value && features.value.canAddRequestPaymentContents;
|
|
269
269
|
});
|
|
270
270
|
|
|
271
271
|
const isAddPaymentProviderButtonEnabled = computed((): boolean => {
|
|
@@ -30,7 +30,7 @@ export default defineComponent({
|
|
|
30
30
|
|
|
31
31
|
return {
|
|
32
32
|
mode: computed(() => brandPageMakerStore.mode),
|
|
33
|
-
|
|
33
|
+
isAdminMaker: computed(() => containerStore.isAdminMaker),
|
|
34
34
|
brandPageMakerStore,
|
|
35
35
|
userStore,
|
|
36
36
|
};
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
data-component="navigation"
|
|
4
4
|
class="js-bp-header tw-h-24 lg:tw-h-16 tw-box-border lg:tw-py-4 lg:tw-px-5 tw-z-30 tw-fixed tw-w-full lg:tw-relative"
|
|
5
5
|
:class="{
|
|
6
|
-
'tw-bg-grayscale-800': !
|
|
6
|
+
'tw-bg-grayscale-800': !isAdminMaker,
|
|
7
7
|
}"
|
|
8
8
|
>
|
|
9
9
|
<div
|
|
10
10
|
class="tw-flex tw-flex-col lg:tw-flex-row tw-justify-between lg:tw-items-center lg:tw-gap-4"
|
|
11
11
|
>
|
|
12
12
|
<div
|
|
13
|
-
v-if="!
|
|
13
|
+
v-if="!isAdminMaker"
|
|
14
14
|
class="tw-px-2 lg:tw-px-0 tw-h-12 lg:tw-h-auto tw-flex tw-items-center"
|
|
15
15
|
>
|
|
16
16
|
<Logo
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
</div>
|
|
22
22
|
<WebsiteBreadcrumb v-if="showBreadcrumb" class="tw-hidden lg:tw-flex" />
|
|
23
23
|
<Button
|
|
24
|
-
v-if="
|
|
24
|
+
v-if="isAdminMaker || !showBreadcrumb"
|
|
25
25
|
:label="backButtonLabel"
|
|
26
26
|
variant="no-border"
|
|
27
27
|
icon-left="chevron-left"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div v-if="
|
|
2
|
+
<div v-if="isAdminMaker" class="tw-p-3">
|
|
3
3
|
<p
|
|
4
4
|
class="tw-font-sans tw-font-bold tw-text-secondary-800 tw-text-sm tw-mb-2 tw-mt-4"
|
|
5
5
|
>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
:name="name + 'TextStyle'"
|
|
12
12
|
:value="textColorValue"
|
|
13
13
|
:options="colorConvertor.convert(props.styles)"
|
|
14
|
-
:is-admin="
|
|
14
|
+
:is-admin-maker="isAdminMaker"
|
|
15
15
|
:logo-theme="logoTheme"
|
|
16
16
|
:show-color-pallet="false"
|
|
17
17
|
:is-toggled="true"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
:name="name"
|
|
39
39
|
:value="textBackgroundColorValue"
|
|
40
40
|
:options="backgroundColorConvertor.convert(props.styles)"
|
|
41
|
-
:is-admin="
|
|
41
|
+
:is-admin-maker="isAdminMaker"
|
|
42
42
|
:show-color-pallet="false"
|
|
43
43
|
:logo-theme="logoTheme"
|
|
44
44
|
:is-toggled="false"
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
:icon-type="'text-color'"
|
|
162
162
|
:disable-transparent="true"
|
|
163
163
|
:value="fontSettings.selectedTextColor"
|
|
164
|
-
:is-admin="
|
|
164
|
+
:is-admin-maker="isAdminMaker"
|
|
165
165
|
:logo-theme="logoTheme"
|
|
166
166
|
:is-toggled="true"
|
|
167
167
|
:popup="true"
|
|
@@ -248,7 +248,7 @@
|
|
|
248
248
|
:is-rich-text-editor="true"
|
|
249
249
|
:icon-type="'text-background-color'"
|
|
250
250
|
:value="fontSettings.selectedBackgroundColor"
|
|
251
|
-
:is-admin="
|
|
251
|
+
:is-admin-maker="isAdminMaker"
|
|
252
252
|
:logo-theme="logoTheme"
|
|
253
253
|
:is-toggled="true"
|
|
254
254
|
:popup="true"
|
|
@@ -569,7 +569,7 @@ const isSpacingDropdownOpen = ref(false);
|
|
|
569
569
|
const containerStore = useBrandPageContainerStore();
|
|
570
570
|
const uiStore = useUiStore();
|
|
571
571
|
|
|
572
|
-
const
|
|
572
|
+
const isAdminMaker = computed(() => containerStore.isAdminMaker);
|
|
573
573
|
const logoTheme = computed(() => uiStore.logoTheme);
|
|
574
574
|
|
|
575
575
|
const fontSettings = reactive({
|
|
@@ -686,7 +686,7 @@ const textColorValue = computed(() => toggleTextColor.value);
|
|
|
686
686
|
watch(
|
|
687
687
|
() => props.styles.color,
|
|
688
688
|
(newColor) => {
|
|
689
|
-
if (
|
|
689
|
+
if (isAdminMaker.value) {
|
|
690
690
|
toggleTextColor.value = newColor ?? '';
|
|
691
691
|
isTextColorPickerDisabled.value = hasLogoColorVar(newColor ?? '');
|
|
692
692
|
}
|
|
@@ -702,7 +702,7 @@ const textBackgroundColorValue = computed(
|
|
|
702
702
|
watch(
|
|
703
703
|
() => props.styles.backgroundColor,
|
|
704
704
|
(newColor) => {
|
|
705
|
-
if (
|
|
705
|
+
if (isAdminMaker.value) {
|
|
706
706
|
toggleTextBackgroundColor.value = newColor ?? '';
|
|
707
707
|
isBackgroundColorPickerDisabled.value = hasLogoColorVar(newColor ?? '');
|
|
708
708
|
}
|
|
@@ -715,7 +715,7 @@ watch(
|
|
|
715
715
|
?.color,
|
|
716
716
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
717
717
|
(_newColor) => {
|
|
718
|
-
if (
|
|
718
|
+
if (isAdminMaker.value) {
|
|
719
719
|
if (props.textItemIndex !== undefined && selectedGlobalTextStyles) {
|
|
720
720
|
toggleTextColor.value =
|
|
721
721
|
selectedGlobalTextStyles.value.style.color ?? '';
|
|
@@ -735,7 +735,7 @@ watch(
|
|
|
735
735
|
},
|
|
736
736
|
);
|
|
737
737
|
|
|
738
|
-
if (
|
|
738
|
+
if (isAdminMaker.value) initializeDisabledStates();
|
|
739
739
|
|
|
740
740
|
watch(
|
|
741
741
|
() => props.styles.textStyleType,
|
|
@@ -748,7 +748,7 @@ watch(
|
|
|
748
748
|
copyGlobalStyleSettings(globalStyle);
|
|
749
749
|
|
|
750
750
|
// syncing with admin global color match feature
|
|
751
|
-
if (
|
|
751
|
+
if (isAdminMaker.value) {
|
|
752
752
|
if (
|
|
753
753
|
globalStyle.color &&
|
|
754
754
|
(globalStyle.color.includes(STYLE_THEME_KEYS.LogoTextColor) ||
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
</div>
|
|
28
28
|
<div class="tw-flex-none tw-mt-4">
|
|
29
29
|
<div
|
|
30
|
-
v-if="!
|
|
30
|
+
v-if="!isAdminMaker && !isPrePurchase && isSavingEnabled"
|
|
31
31
|
class="tw-flex tw-items-center tw-justify-between tw-cursor-pointer tw-gap-1"
|
|
32
32
|
@click="onHideBranding"
|
|
33
33
|
>
|
|
@@ -86,7 +86,7 @@ import {
|
|
|
86
86
|
} from '../../composables/useEventTracker';
|
|
87
87
|
|
|
88
88
|
interface Props {
|
|
89
|
-
|
|
89
|
+
isAdminMaker: boolean;
|
|
90
90
|
isPrePurchase: boolean;
|
|
91
91
|
isDesignCom: boolean;
|
|
92
92
|
}
|
|
@@ -81,7 +81,7 @@ export default defineComponent({
|
|
|
81
81
|
runtimeEnvironment: computed(
|
|
82
82
|
() => brandPageContainerStore.runtimeEnvironment,
|
|
83
83
|
),
|
|
84
|
-
|
|
84
|
+
isAdminMaker: computed(() => brandPageContainerStore.isAdminMaker),
|
|
85
85
|
userToken: computed(() => brandPageMakerUserStore.userToken),
|
|
86
86
|
isBrandSite: computed(
|
|
87
87
|
() => brandPageMakerStore.brandPageType === BRAND_PAGE_TYPES.brandSite,
|
|
@@ -313,7 +313,7 @@ export default defineComponent({
|
|
|
313
313
|
},
|
|
314
314
|
watch: {
|
|
315
315
|
template() {
|
|
316
|
-
if (this.
|
|
316
|
+
if (this.isAdminMaker) {
|
|
317
317
|
this.updateViewModel();
|
|
318
318
|
} else {
|
|
319
319
|
// Reset loading state when template changes for image-based previews
|
|
@@ -323,20 +323,20 @@ export default defineComponent({
|
|
|
323
323
|
},
|
|
324
324
|
logoTheme: {
|
|
325
325
|
handler() {
|
|
326
|
-
if (this.
|
|
326
|
+
if (this.isAdminMaker) {
|
|
327
327
|
this.updateViewModel();
|
|
328
328
|
}
|
|
329
329
|
},
|
|
330
330
|
deep: true,
|
|
331
331
|
},
|
|
332
332
|
logoImageBase64Url() {
|
|
333
|
-
if (this.
|
|
333
|
+
if (this.isAdminMaker) {
|
|
334
334
|
this.updateViewModel();
|
|
335
335
|
}
|
|
336
336
|
},
|
|
337
337
|
previewImageUrl() {
|
|
338
338
|
// Reset loading state whenever the preview URL changes
|
|
339
|
-
if (!this.
|
|
339
|
+
if (!this.isAdminMaker) {
|
|
340
340
|
this.imageLoading = true;
|
|
341
341
|
this.imageLoadError = false;
|
|
342
342
|
}
|
|
@@ -406,7 +406,7 @@ export default defineComponent({
|
|
|
406
406
|
|
|
407
407
|
async updateViewModel(forceUpdate = true) {
|
|
408
408
|
// Only update view model for admin or pre-purchase mode
|
|
409
|
-
if (!this.
|
|
409
|
+
if (!this.isAdminMaker) {
|
|
410
410
|
return;
|
|
411
411
|
}
|
|
412
412
|
|
|
@@ -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
|
>
|
|
@@ -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"
|
|
@@ -187,7 +187,7 @@ defineProps({
|
|
|
187
187
|
|
|
188
188
|
const store = useUiBackgroundSettingsStore();
|
|
189
189
|
const containerStore = useBrandPageContainerStore();
|
|
190
|
-
const
|
|
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"
|
|
@@ -58,7 +58,7 @@ 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')"
|
|
@@ -66,7 +66,7 @@ defineProps({
|
|
|
66
66
|
|
|
67
67
|
const store = useUiBackgroundSettingsStore();
|
|
68
68
|
const containerStore = useBrandPageContainerStore();
|
|
69
|
-
const
|
|
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"
|
|
@@ -47,7 +47,7 @@ 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
|
@@ -34,7 +34,7 @@ export default defineComponent({
|
|
|
34
34
|
const backgroundSettingsStore = useUiBackgroundSettingsStore();
|
|
35
35
|
|
|
36
36
|
return {
|
|
37
|
-
|
|
37
|
+
isAdminMaker: computed(() => containerStore.isAdminMaker),
|
|
38
38
|
backgroundStyles: computed(
|
|
39
39
|
() => backgroundSettingsStore.backgroundStyles,
|
|
40
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;
|
|
@@ -59,7 +59,7 @@ export default defineComponent({
|
|
|
59
59
|
contentSettingsSelectedItemId: computed(
|
|
60
60
|
() => contentSettingsStore.selectedItemId,
|
|
61
61
|
),
|
|
62
|
-
|
|
62
|
+
isAdminMaker: computed(() => containerStore.isAdminMaker),
|
|
63
63
|
canUseRichTextEditor: computed(
|
|
64
64
|
() => userStore.features.canUseRichTextEditor,
|
|
65
65
|
),
|