@designcrowd/library.brand-page 6.1.6-use-isadminmaker-2 → 6.1.6
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-COw1kYDh.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-Br3HqLLr.js → CreatedOnBrandCrowd-en-us-JRm1p0it.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-DwkIQVgN.js → CreatedOnBrandCrowd-es-es-D-G9uI6b.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-DqeI8mF_.js → CreatedOnBrandCrowd-fr-ca-DQCScohj.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-DqeI8mF_.js → CreatedOnBrandCrowd-fr-fr-DQCScohj.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-bvgq_CN8.js → CreatedOnBrandCrowd-pt-br-4RazAfO7.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-bvgq_CN8.js → CreatedOnBrandCrowd-pt-pt-4RazAfO7.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-nT3MnRXy.js → CreatedOnDcom-de-de-DqvLTbhq.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-D2TYrEzJ.js → CreatedOnDcom-en-us-DG1X0ero.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-Q-5tnP12.js → CreatedOnDcom-es-es-BxHAIikP.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-txkwqCzm.js → CreatedOnDcom-fr-ca-BGXoViAC.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-CUnJXLgr.js → CreatedOnDcom-fr-fr-CsvmeK2T.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-7XAwvP9H.js → CreatedOnDcom-pt-br-DvWm7MjO.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-DjhLiioZ.js → CreatedOnDcom-pt-pt-Bhz2YEVP.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 +4 -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 +4 -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/quick-link-bar/QuickLinkBar.mixin.d.ts +3 -0
- package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +3 -0
- package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +3 -0
- package/lib/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.d.ts +3 -0
- package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +4 -1
- 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 -0
- package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.d.ts +6 -1
- package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.js +6 -0
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +6 -0
- package/lib/src/clients/fabric-render-client.d.ts +1 -0
- 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-Bg2K2ze6.js} +225 -213
- 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/payment-config-field/PaymentConfigField.mixin.d.ts +3 -0
- 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/logo-settings/components/EditLogoSettings.mixin.d.ts +1 -0
- package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +4 -0
- package/lib/src/shared/logo-settings/store/editable-logo-store.d.ts +2 -0
- package/lib/src/shared/logo-settings/store/editable-logo-store.js +20 -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 +4 -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 +6 -2
- 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 -0
- package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +4 -1
- package/lib/src/shared/side-bar/components/SideBar.mixin.js +3 -3
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +4 -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/brand-page-maker/stores/brandpage-container/brand-page-container-store.initialise.test.ts +53 -0
- package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.ts +20 -1
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +7 -0
- package/src/clients/fabric-render-client.ts +5 -0
- 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/logo-settings/store/editable-logo-store.test.ts +90 -0
- package/src/shared/logo-settings/store/editable-logo-store.ts +28 -1
- 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
|
@@ -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
|
};
|
|
@@ -3979,6 +3979,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3979
3979
|
triggerSaveSuccessMessage: boolean;
|
|
3980
3980
|
isDesignCom: boolean;
|
|
3981
3981
|
isPrePurchase: boolean;
|
|
3982
|
+
prePurchaseBrandKitLogoDraftToken: string;
|
|
3982
3983
|
makerFonts: any[];
|
|
3983
3984
|
eventButtonLocation?: string | undefined;
|
|
3984
3985
|
websiteUpsellModalViewModel?: any;
|
|
@@ -4074,6 +4075,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4074
4075
|
triggerSaveSuccessMessage: boolean;
|
|
4075
4076
|
isDesignCom: boolean;
|
|
4076
4077
|
isPrePurchase: boolean;
|
|
4078
|
+
prePurchaseBrandKitLogoDraftToken: string;
|
|
4077
4079
|
makerFonts: any[];
|
|
4078
4080
|
eventButtonLocation?: string | undefined;
|
|
4079
4081
|
websiteUpsellModalViewModel?: any;
|
|
@@ -4169,6 +4171,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4169
4171
|
triggerSaveSuccessMessage: boolean;
|
|
4170
4172
|
isDesignCom: boolean;
|
|
4171
4173
|
isPrePurchase: boolean;
|
|
4174
|
+
prePurchaseBrandKitLogoDraftToken: string;
|
|
4172
4175
|
makerFonts: any[];
|
|
4173
4176
|
eventButtonLocation?: string | undefined;
|
|
4174
4177
|
websiteUpsellModalViewModel?: any;
|
|
@@ -4335,6 +4338,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4335
4338
|
getLogoPrimaryText: (state: {
|
|
4336
4339
|
enableEditMode: boolean;
|
|
4337
4340
|
logoDraftToken: string;
|
|
4341
|
+
prePurchaseBrandKitLogoDraftToken: string;
|
|
4338
4342
|
logoEdits: {
|
|
4339
4343
|
backgroundObject: {
|
|
4340
4344
|
id: string;
|
|
@@ -4721,7 +4725,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4721
4725
|
required: false;
|
|
4722
4726
|
default: () => never[];
|
|
4723
4727
|
};
|
|
4724
|
-
|
|
4728
|
+
isAdminMaker: {
|
|
4725
4729
|
type: BooleanConstructor;
|
|
4726
4730
|
required: true;
|
|
4727
4731
|
};
|
package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts
CHANGED
|
@@ -294,6 +294,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
294
294
|
triggerSaveSuccessMessage: boolean;
|
|
295
295
|
isDesignCom: boolean;
|
|
296
296
|
isPrePurchase: boolean;
|
|
297
|
+
prePurchaseBrandKitLogoDraftToken: string;
|
|
297
298
|
makerFonts: any[];
|
|
298
299
|
eventButtonLocation?: string | undefined;
|
|
299
300
|
websiteUpsellModalViewModel?: any;
|
|
@@ -389,6 +390,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
389
390
|
triggerSaveSuccessMessage: boolean;
|
|
390
391
|
isDesignCom: boolean;
|
|
391
392
|
isPrePurchase: boolean;
|
|
393
|
+
prePurchaseBrandKitLogoDraftToken: string;
|
|
392
394
|
makerFonts: any[];
|
|
393
395
|
eventButtonLocation?: string | undefined;
|
|
394
396
|
websiteUpsellModalViewModel?: any;
|
|
@@ -484,6 +486,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
484
486
|
triggerSaveSuccessMessage: boolean;
|
|
485
487
|
isDesignCom: boolean;
|
|
486
488
|
isPrePurchase: boolean;
|
|
489
|
+
prePurchaseBrandKitLogoDraftToken: string;
|
|
487
490
|
makerFonts: any[];
|
|
488
491
|
eventButtonLocation?: string | undefined;
|
|
489
492
|
websiteUpsellModalViewModel?: any;
|
|
@@ -71,6 +71,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
71
71
|
triggerSaveSuccessMessage: boolean;
|
|
72
72
|
isDesignCom: boolean;
|
|
73
73
|
isPrePurchase: boolean;
|
|
74
|
+
prePurchaseBrandKitLogoDraftToken: string;
|
|
74
75
|
makerFonts: any[];
|
|
75
76
|
eventButtonLocation?: string | undefined;
|
|
76
77
|
websiteUpsellModalViewModel?: any;
|
|
@@ -166,6 +167,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
166
167
|
triggerSaveSuccessMessage: boolean;
|
|
167
168
|
isDesignCom: boolean;
|
|
168
169
|
isPrePurchase: boolean;
|
|
170
|
+
prePurchaseBrandKitLogoDraftToken: string;
|
|
169
171
|
makerFonts: any[];
|
|
170
172
|
eventButtonLocation?: string | undefined;
|
|
171
173
|
websiteUpsellModalViewModel?: any;
|
|
@@ -261,6 +263,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
261
263
|
triggerSaveSuccessMessage: boolean;
|
|
262
264
|
isDesignCom: boolean;
|
|
263
265
|
isPrePurchase: boolean;
|
|
266
|
+
prePurchaseBrandKitLogoDraftToken: string;
|
|
264
267
|
makerFonts: any[];
|
|
265
268
|
eventButtonLocation?: string | undefined;
|
|
266
269
|
websiteUpsellModalViewModel?: any;
|
|
@@ -418,7 +421,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
418
421
|
isPrepurchaseOnly?: boolean | undefined;
|
|
419
422
|
}[]>;
|
|
420
423
|
selectedTabName: import("vue").ComputedRef<string>;
|
|
421
|
-
|
|
424
|
+
isAdminMaker: import("vue").ComputedRef<boolean>;
|
|
422
425
|
contentSettingsMode: import("vue").ComputedRef<"images" | "add" | "pages" | "edit" | "focusedContentItem">;
|
|
423
426
|
contentSettingsSelectedItemId: import("vue").ComputedRef<string | null>;
|
|
424
427
|
sideBarStore: import("pinia").Store<"uiSideBar", import("../store").SideBarState, {}, {
|
|
@@ -30,7 +30,7 @@ export default defineComponent({
|
|
|
30
30
|
brandPageContainerStore,
|
|
31
31
|
tabs: computed(() => sideBarStore.tabs),
|
|
32
32
|
selectedTabName: computed(() => sideBarStore.selectedTabName),
|
|
33
|
-
|
|
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>;
|
|
@@ -678,6 +678,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
678
678
|
triggerSaveSuccessMessage: boolean;
|
|
679
679
|
isDesignCom: boolean;
|
|
680
680
|
isPrePurchase: boolean;
|
|
681
|
+
prePurchaseBrandKitLogoDraftToken: string;
|
|
681
682
|
makerFonts: any[];
|
|
682
683
|
eventButtonLocation?: string | undefined;
|
|
683
684
|
websiteUpsellModalViewModel?: any;
|
|
@@ -773,6 +774,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
773
774
|
triggerSaveSuccessMessage: boolean;
|
|
774
775
|
isDesignCom: boolean;
|
|
775
776
|
isPrePurchase: boolean;
|
|
777
|
+
prePurchaseBrandKitLogoDraftToken: string;
|
|
776
778
|
makerFonts: any[];
|
|
777
779
|
eventButtonLocation?: string | undefined;
|
|
778
780
|
websiteUpsellModalViewModel?: any;
|
|
@@ -868,6 +870,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
868
870
|
triggerSaveSuccessMessage: boolean;
|
|
869
871
|
isDesignCom: boolean;
|
|
870
872
|
isPrePurchase: boolean;
|
|
873
|
+
prePurchaseBrandKitLogoDraftToken: string;
|
|
871
874
|
makerFonts: any[];
|
|
872
875
|
eventButtonLocation?: string | undefined;
|
|
873
876
|
websiteUpsellModalViewModel?: any;
|
|
@@ -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] =
|
package/package.json
CHANGED
|
@@ -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
|
-
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
|
|