@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
|
@@ -3137,7 +3137,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
3137
3137
|
googleAdsenseEnabled: boolean;
|
|
3138
3138
|
canUseUndoRedo: boolean;
|
|
3139
3139
|
}>;
|
|
3140
|
-
|
|
3140
|
+
isAdminMaker: import("vue").ComputedRef<boolean>;
|
|
3141
3141
|
isBrandSite: import("vue").ComputedRef<boolean>;
|
|
3142
3142
|
navigationStyleTypeConfigs: import("vue").ComputedRef<{
|
|
3143
3143
|
header: {
|
|
@@ -3950,7 +3950,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
3950
3950
|
brandPageCommissionPercentage?: number;
|
|
3951
3951
|
features?: Partial<import("@brand-page-maker/stores").UserFeatures>;
|
|
3952
3952
|
}): void;
|
|
3953
|
-
setIsAdminMaker(isAdminMaker: boolean): void;
|
|
3954
3953
|
}>;
|
|
3955
3954
|
pageSettingsStore: import("pinia").Store<"uiPageSettings", import("../../store").PageSettingsState, {
|
|
3956
3955
|
getFirstOrDefaultPage(): ContentPage;
|
|
@@ -4561,7 +4560,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
4561
4560
|
brandPageContainerStore: import("pinia").Store<"brandPageContainer", import("@brand-page-maker/stores").BrandPageContainerState, {
|
|
4562
4561
|
brandPageContentTypes(): string[];
|
|
4563
4562
|
isAdmin(): boolean;
|
|
4564
|
-
isAdminMaker(): boolean;
|
|
4565
4563
|
isPublished: (state: {
|
|
4566
4564
|
availableTaxes: any[];
|
|
4567
4565
|
brandPageBaseUrl: string;
|
|
@@ -4598,6 +4596,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
4598
4596
|
isUpgradeModalVisible: boolean;
|
|
4599
4597
|
isPublishing: boolean;
|
|
4600
4598
|
isProduction: boolean;
|
|
4599
|
+
isAdminMaker: boolean;
|
|
4601
4600
|
isSellDomainNameEnabled: boolean;
|
|
4602
4601
|
isStripeOnboardingModalVisible: boolean;
|
|
4603
4602
|
isReactivationModal: boolean;
|
|
@@ -4692,6 +4691,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
4692
4691
|
isUpgradeModalVisible: boolean;
|
|
4693
4692
|
isPublishing: boolean;
|
|
4694
4693
|
isProduction: boolean;
|
|
4694
|
+
isAdminMaker: boolean;
|
|
4695
4695
|
isSellDomainNameEnabled: boolean;
|
|
4696
4696
|
isStripeOnboardingModalVisible: boolean;
|
|
4697
4697
|
isReactivationModal: boolean;
|
|
@@ -4786,6 +4786,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
4786
4786
|
isUpgradeModalVisible: boolean;
|
|
4787
4787
|
isPublishing: boolean;
|
|
4788
4788
|
isProduction: boolean;
|
|
4789
|
+
isAdminMaker: boolean;
|
|
4789
4790
|
isSellDomainNameEnabled: boolean;
|
|
4790
4791
|
isStripeOnboardingModalVisible: boolean;
|
|
4791
4792
|
isReactivationModal: boolean;
|
|
@@ -138,7 +138,7 @@ export default defineComponent({
|
|
|
138
138
|
sectionCollapsedStates: computed(() => pageSettingsStore.sectionCollapsedStates),
|
|
139
139
|
sections: computed(() => pageSettingsStore.sections),
|
|
140
140
|
features: computed(() => userStore.features),
|
|
141
|
-
|
|
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
|
-
|
|
14
|
+
isAdminMaker: {
|
|
15
15
|
type: BooleanConstructor;
|
|
16
16
|
required: true;
|
|
17
17
|
};
|
|
@@ -3925,7 +3925,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3925
3925
|
containerStore: import("pinia").Store<"brandPageContainer", import("@brand-page-maker/stores").BrandPageContainerState, {
|
|
3926
3926
|
brandPageContentTypes(): string[];
|
|
3927
3927
|
isAdmin(): boolean;
|
|
3928
|
-
isAdminMaker(): boolean;
|
|
3929
3928
|
isPublished: (state: {
|
|
3930
3929
|
availableTaxes: any[];
|
|
3931
3930
|
brandPageBaseUrl: string;
|
|
@@ -3962,6 +3961,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3962
3961
|
isUpgradeModalVisible: boolean;
|
|
3963
3962
|
isPublishing: boolean;
|
|
3964
3963
|
isProduction: boolean;
|
|
3964
|
+
isAdminMaker: boolean;
|
|
3965
3965
|
isSellDomainNameEnabled: boolean;
|
|
3966
3966
|
isStripeOnboardingModalVisible: boolean;
|
|
3967
3967
|
isReactivationModal: boolean;
|
|
@@ -4056,6 +4056,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4056
4056
|
isUpgradeModalVisible: boolean;
|
|
4057
4057
|
isPublishing: boolean;
|
|
4058
4058
|
isProduction: boolean;
|
|
4059
|
+
isAdminMaker: boolean;
|
|
4059
4060
|
isSellDomainNameEnabled: boolean;
|
|
4060
4061
|
isStripeOnboardingModalVisible: boolean;
|
|
4061
4062
|
isReactivationModal: boolean;
|
|
@@ -4150,6 +4151,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4150
4151
|
isUpgradeModalVisible: boolean;
|
|
4151
4152
|
isPublishing: boolean;
|
|
4152
4153
|
isProduction: boolean;
|
|
4154
|
+
isAdminMaker: boolean;
|
|
4153
4155
|
isSellDomainNameEnabled: boolean;
|
|
4154
4156
|
isStripeOnboardingModalVisible: boolean;
|
|
4155
4157
|
isReactivationModal: boolean;
|
|
@@ -4719,7 +4721,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4719
4721
|
required: false;
|
|
4720
4722
|
default: () => never[];
|
|
4721
4723
|
};
|
|
4722
|
-
|
|
4724
|
+
isAdminMaker: {
|
|
4723
4725
|
type: BooleanConstructor;
|
|
4724
4726
|
required: true;
|
|
4725
4727
|
};
|
package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts
CHANGED
|
@@ -240,7 +240,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
240
240
|
brandPageContainerStore: import("pinia").Store<"brandPageContainer", import("@brand-page-maker/stores").BrandPageContainerState, {
|
|
241
241
|
brandPageContentTypes(): string[];
|
|
242
242
|
isAdmin(): boolean;
|
|
243
|
-
isAdminMaker(): boolean;
|
|
244
243
|
isPublished: (state: {
|
|
245
244
|
availableTaxes: any[];
|
|
246
245
|
brandPageBaseUrl: string;
|
|
@@ -277,6 +276,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
277
276
|
isUpgradeModalVisible: boolean;
|
|
278
277
|
isPublishing: boolean;
|
|
279
278
|
isProduction: boolean;
|
|
279
|
+
isAdminMaker: boolean;
|
|
280
280
|
isSellDomainNameEnabled: boolean;
|
|
281
281
|
isStripeOnboardingModalVisible: boolean;
|
|
282
282
|
isReactivationModal: boolean;
|
|
@@ -371,6 +371,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
371
371
|
isUpgradeModalVisible: boolean;
|
|
372
372
|
isPublishing: boolean;
|
|
373
373
|
isProduction: boolean;
|
|
374
|
+
isAdminMaker: boolean;
|
|
374
375
|
isSellDomainNameEnabled: boolean;
|
|
375
376
|
isStripeOnboardingModalVisible: boolean;
|
|
376
377
|
isReactivationModal: boolean;
|
|
@@ -465,6 +466,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
465
466
|
isUpgradeModalVisible: boolean;
|
|
466
467
|
isPublishing: boolean;
|
|
467
468
|
isProduction: boolean;
|
|
469
|
+
isAdminMaker: boolean;
|
|
468
470
|
isSellDomainNameEnabled: boolean;
|
|
469
471
|
isStripeOnboardingModalVisible: boolean;
|
|
470
472
|
isReactivationModal: boolean;
|
|
@@ -17,7 +17,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
17
17
|
brandPageContainerStore: import("pinia").Store<"brandPageContainer", import("@brand-page-maker/stores").BrandPageContainerState, {
|
|
18
18
|
brandPageContentTypes(): string[];
|
|
19
19
|
isAdmin(): boolean;
|
|
20
|
-
isAdminMaker(): boolean;
|
|
21
20
|
isPublished: (state: {
|
|
22
21
|
availableTaxes: any[];
|
|
23
22
|
brandPageBaseUrl: string;
|
|
@@ -54,6 +53,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
54
53
|
isUpgradeModalVisible: boolean;
|
|
55
54
|
isPublishing: boolean;
|
|
56
55
|
isProduction: boolean;
|
|
56
|
+
isAdminMaker: boolean;
|
|
57
57
|
isSellDomainNameEnabled: boolean;
|
|
58
58
|
isStripeOnboardingModalVisible: boolean;
|
|
59
59
|
isReactivationModal: boolean;
|
|
@@ -148,6 +148,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
148
148
|
isUpgradeModalVisible: boolean;
|
|
149
149
|
isPublishing: boolean;
|
|
150
150
|
isProduction: boolean;
|
|
151
|
+
isAdminMaker: boolean;
|
|
151
152
|
isSellDomainNameEnabled: boolean;
|
|
152
153
|
isStripeOnboardingModalVisible: boolean;
|
|
153
154
|
isReactivationModal: boolean;
|
|
@@ -242,6 +243,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
242
243
|
isUpgradeModalVisible: boolean;
|
|
243
244
|
isPublishing: boolean;
|
|
244
245
|
isProduction: boolean;
|
|
246
|
+
isAdminMaker: boolean;
|
|
245
247
|
isSellDomainNameEnabled: boolean;
|
|
246
248
|
isStripeOnboardingModalVisible: boolean;
|
|
247
249
|
isReactivationModal: boolean;
|
|
@@ -416,7 +418,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
416
418
|
isPrepurchaseOnly?: boolean | undefined;
|
|
417
419
|
}[]>;
|
|
418
420
|
selectedTabName: import("vue").ComputedRef<string>;
|
|
419
|
-
|
|
421
|
+
isAdminMaker: import("vue").ComputedRef<boolean>;
|
|
420
422
|
contentSettingsMode: import("vue").ComputedRef<"images" | "add" | "pages" | "edit" | "focusedContentItem">;
|
|
421
423
|
contentSettingsSelectedItemId: import("vue").ComputedRef<string | null>;
|
|
422
424
|
sideBarStore: import("pinia").Store<"uiSideBar", import("../store").SideBarState, {}, {
|
|
@@ -437,7 +439,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
437
439
|
brandPageCommissionPercentage?: number;
|
|
438
440
|
features?: Partial<import("@brand-page-maker/stores").UserFeatures>;
|
|
439
441
|
}): void;
|
|
440
|
-
setIsAdminMaker(isAdminMaker: boolean): void;
|
|
441
442
|
}>;
|
|
442
443
|
'side-bar-content': import("vue").Ref<null, null>;
|
|
443
444
|
isPrepurchase: import("vue").ComputedRef<boolean>;
|
|
@@ -30,7 +30,7 @@ export default defineComponent({
|
|
|
30
30
|
brandPageContainerStore,
|
|
31
31
|
tabs: computed(() => sideBarStore.tabs),
|
|
32
32
|
selectedTabName: computed(() => sideBarStore.selectedTabName),
|
|
33
|
-
|
|
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.
|
|
79
|
+
if (this.isAdminMaker && tab.isDisabledForAdmin) {
|
|
80
80
|
return false;
|
|
81
81
|
}
|
|
82
|
-
if (!this.
|
|
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
|
-
|
|
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>;
|
|
@@ -477,7 +477,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
477
477
|
brandPageCommissionPercentage?: number;
|
|
478
478
|
features?: Partial<import("@brand-page-maker/stores").UserFeatures>;
|
|
479
479
|
}): void;
|
|
480
|
-
setIsAdminMaker(isAdminMaker: boolean): void;
|
|
481
480
|
}>;
|
|
482
481
|
brandPageMakerStore: import("pinia").Store<"brandPageMaker", import("@brand-page-maker/stores").BrandPageMakerState, {
|
|
483
482
|
contentErrorCount(): number;
|
|
@@ -625,7 +624,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
625
624
|
brandPageContainerStore: import("pinia").Store<"brandPageContainer", import("@brand-page-maker/stores").BrandPageContainerState, {
|
|
626
625
|
brandPageContentTypes(): string[];
|
|
627
626
|
isAdmin(): boolean;
|
|
628
|
-
isAdminMaker(): boolean;
|
|
629
627
|
isPublished: (state: {
|
|
630
628
|
availableTaxes: any[];
|
|
631
629
|
brandPageBaseUrl: string;
|
|
@@ -662,6 +660,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
662
660
|
isUpgradeModalVisible: boolean;
|
|
663
661
|
isPublishing: boolean;
|
|
664
662
|
isProduction: boolean;
|
|
663
|
+
isAdminMaker: boolean;
|
|
665
664
|
isSellDomainNameEnabled: boolean;
|
|
666
665
|
isStripeOnboardingModalVisible: boolean;
|
|
667
666
|
isReactivationModal: boolean;
|
|
@@ -756,6 +755,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
756
755
|
isUpgradeModalVisible: boolean;
|
|
757
756
|
isPublishing: boolean;
|
|
758
757
|
isProduction: boolean;
|
|
758
|
+
isAdminMaker: boolean;
|
|
759
759
|
isSellDomainNameEnabled: boolean;
|
|
760
760
|
isStripeOnboardingModalVisible: boolean;
|
|
761
761
|
isReactivationModal: boolean;
|
|
@@ -850,6 +850,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
850
850
|
isUpgradeModalVisible: boolean;
|
|
851
851
|
isPublishing: boolean;
|
|
852
852
|
isProduction: boolean;
|
|
853
|
+
isAdminMaker: boolean;
|
|
853
854
|
isSellDomainNameEnabled: boolean;
|
|
854
855
|
isStripeOnboardingModalVisible: boolean;
|
|
855
856
|
isReactivationModal: boolean;
|
|
@@ -36,7 +36,7 @@ export default defineComponent({
|
|
|
36
36
|
doesLogoHaveBackground: computed(() => styleSettingsStore.doesLogoHaveBackground),
|
|
37
37
|
toggleLogoBackground: computed(() => styleSettingsStore.toggleLogoBackground),
|
|
38
38
|
isDefaultTextColorRequired: computed(() => uiStore.isDefaultTextColorRequired),
|
|
39
|
-
|
|
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.
|
|
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] =
|
|
@@ -3,7 +3,7 @@ import * as DesignTemplateClient from '../../../clients/design-template-client';
|
|
|
3
3
|
import {} from '../../../clients/models';
|
|
4
4
|
import { BP_DEFAULT_TEMPLATE_TYPE_NAME, BP_BRAND_SITE_TEMPLATE_TYPE_NAME, SIDE_BAR_TAB_NAMES, } from '@brand-page-maker/constants';
|
|
5
5
|
import { defineStore, storeToRefs } from 'pinia';
|
|
6
|
-
import { useBrandPageContainerStore, useBrandPageMakerStore,
|
|
6
|
+
import { useBrandPageContainerStore, useBrandPageMakerStore, useLogoStore, useUiStore, } from '@brand-page-maker/stores';
|
|
7
7
|
import { useUiSideBarStore } from '../../side-bar/store';
|
|
8
8
|
import { BrandPageModel, } from '@brand-page/models';
|
|
9
9
|
import { migrateBrandPageModel } from '@brand-page/utils';
|
|
@@ -65,9 +65,9 @@ export const useUiTemplateSettingsStore = defineStore('uiTemplateSettings', {
|
|
|
65
65
|
},
|
|
66
66
|
getters: {
|
|
67
67
|
renderAsImage() {
|
|
68
|
-
const
|
|
68
|
+
const brandPageContainerStore = useBrandPageContainerStore();
|
|
69
69
|
// Admin users get live previews, non-admin users get images
|
|
70
|
-
return !
|
|
70
|
+
return !brandPageContainerStore.isAdminMaker;
|
|
71
71
|
},
|
|
72
72
|
},
|
|
73
73
|
actions: {
|
|
@@ -158,7 +158,6 @@ export const useUiTemplateSettingsStore = defineStore('uiTemplateSettings', {
|
|
|
158
158
|
async loadPageNo({ pageNo }) {
|
|
159
159
|
const brandPageMakerStore = useBrandPageMakerStore();
|
|
160
160
|
const brandPageContainerStore = useBrandPageContainerStore();
|
|
161
|
-
const brandPageMakerUserStore = useBrandPageMakerUserStore();
|
|
162
161
|
const logoSettingsStore = useUiLogoSettingsStore();
|
|
163
162
|
const logoStore = useLogoStore();
|
|
164
163
|
const editableLogoStore = useUiEditableLogoStore();
|
|
@@ -280,7 +279,7 @@ export const useUiTemplateSettingsStore = defineStore('uiTemplateSettings', {
|
|
|
280
279
|
}
|
|
281
280
|
const templates = await Promise.all(result.paginatedItems.map(async (item) => {
|
|
282
281
|
try {
|
|
283
|
-
if (
|
|
282
|
+
if (brandPageContainerStore.isAdminMaker) {
|
|
284
283
|
const template = await designTemplateClient.getTemplateByTemplateToken(item.designTemplateToken);
|
|
285
284
|
return this.safeMapToTemplateSettingsTemplate(template);
|
|
286
285
|
}
|
|
@@ -461,7 +460,7 @@ export const useUiTemplateSettingsStore = defineStore('uiTemplateSettings', {
|
|
|
461
460
|
setupLogoChangeWatcher() {
|
|
462
461
|
const logoSettingsStore = useUiLogoSettingsStore();
|
|
463
462
|
const editableLogoStore = useUiEditableLogoStore();
|
|
464
|
-
const
|
|
463
|
+
const brandPageContainerStore = useBrandPageContainerStore();
|
|
465
464
|
const { selectedLogoImage } = storeToRefs(logoSettingsStore);
|
|
466
465
|
const { editableLogoVariations } = storeToRefs(editableLogoStore);
|
|
467
466
|
let s3TokenDebounceTimer = null;
|
|
@@ -475,11 +474,11 @@ export const useUiTemplateSettingsStore = defineStore('uiTemplateSettings', {
|
|
|
475
474
|
// shows in the thumbnails.
|
|
476
475
|
const hasLogoChanged = newLogoImage.logoDraftToken !== oldLogoImage.logoDraftToken ||
|
|
477
476
|
newLogoImage.logoVariation !== oldLogoImage.logoVariation;
|
|
478
|
-
if (!
|
|
477
|
+
if (!brandPageContainerStore.isAdminMaker &&
|
|
479
478
|
newLogoImage.logoDraftToken &&
|
|
480
479
|
hasLogoChanged) {
|
|
481
480
|
const uiStore = useUiStore();
|
|
482
|
-
const isPrePurchase =
|
|
481
|
+
const isPrePurchase = brandPageContainerStore.isPrePurchase;
|
|
483
482
|
uiStore.setUserPersonalisationData({
|
|
484
483
|
personalisationData: undefined,
|
|
485
484
|
});
|
|
@@ -509,7 +508,7 @@ export const useUiTemplateSettingsStore = defineStore('uiTemplateSettings', {
|
|
|
509
508
|
if (newS3Token === oldS3Token) {
|
|
510
509
|
return;
|
|
511
510
|
}
|
|
512
|
-
if (
|
|
511
|
+
if (brandPageContainerStore.isAdminMaker) {
|
|
513
512
|
return;
|
|
514
513
|
}
|
|
515
514
|
// Debounce the reload by 500ms to avoid rapid successive reloads
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@designcrowd/library.brand-page",
|
|
3
3
|
"description": "A collection of Maker/Designer applications",
|
|
4
|
-
"version": "6.1.6-use-isadminmaker-
|
|
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
|
-
|
|
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="!
|
|
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="!
|
|
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
|
-
|
|
22
|
+
isAdminMaker ? actionBarTr('saveTemplate') : actionBarTr('saveProgress')
|
|
23
23
|
"
|
|
24
|
-
:variant="
|
|
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 && !
|
|
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="!
|
|
43
|
+
v-if="!isAdminMaker"
|
|
44
44
|
:label="actionBarTr('publish')"
|
|
45
45
|
:variant="isPublishButtonEnabled ? 'success' : 'gray'"
|
|
46
46
|
:disabled="!isPublishButtonEnabled"
|
package/src/brand-page-maker/components/admin-background-settings/AdminBackgroundSettings.vue
CHANGED
|
@@ -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 `
|
|
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
|
-
|
|
155
|
+
isAdminMaker: computed(() => containerStore.isAdminMaker),
|
|
156
156
|
contentErrorCount: computed(() => contentSettingsStore.contentErrorCount),
|
|
157
157
|
mode: computed(() => contentSettingsStore.mode),
|
|
158
158
|
brandPageMakerStore,
|
|
@@ -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
|
-
|
|
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 => {
|
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
useBrandPageMakerStore,
|
|
4
4
|
BRANDPAGE_SETTINGS_MODES,
|
|
5
5
|
useBrandPageMakerUserStore,
|
|
6
|
+
useBrandPageContainerStore,
|
|
6
7
|
} from '@brand-page-maker/stores';
|
|
7
8
|
import type {
|
|
8
9
|
ReplaceImageSettingsBase,
|
|
@@ -25,10 +26,11 @@ export default defineComponent({
|
|
|
25
26
|
setup() {
|
|
26
27
|
const brandPageMakerStore = useBrandPageMakerStore();
|
|
27
28
|
const userStore = useBrandPageMakerUserStore();
|
|
29
|
+
const containerStore = useBrandPageContainerStore();
|
|
28
30
|
|
|
29
31
|
return {
|
|
30
32
|
mode: computed(() => brandPageMakerStore.mode),
|
|
31
|
-
|
|
33
|
+
isAdminMaker: computed(() => containerStore.isAdminMaker),
|
|
32
34
|
brandPageMakerStore,
|
|
33
35
|
userStore,
|
|
34
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"
|