@designcrowd/library.brand-page 5.10.32 → 5.10.33-buster-test
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/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +5 -0
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.js +1 -0
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +2 -0
- package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.d.ts +2 -0
- package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +2 -0
- package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +2 -0
- package/lib/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.d.ts +2 -0
- package/lib/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.d.ts +2 -0
- package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.d.ts +3 -0
- package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.js +6 -0
- package/lib/src/index.mjs +381 -367
- package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +2 -0
- package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +2 -0
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +2 -0
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +2 -0
- package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +2 -0
- package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +2 -0
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +2 -0
- package/lib/src/shared/template-settings/components/TemplatesSettings.mixin.d.ts +4 -0
- package/lib/src/shared/template-settings/components/TemplatesSettings.mixin.js +12 -3
- package/lib/src/shared/template-settings/store/template-settings-store.d.ts +4 -0
- package/lib/src/shared/template-settings/store/template-settings-store.js +4 -0
- package/package.json +1 -1
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.ts +1 -0
- package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.ts +8 -0
- package/src/shared/template-settings/components/TemplatesSettings.mixin.ts +13 -3
- package/src/shared/template-settings/store/template-settings-store.ts +5 -0
|
@@ -246,6 +246,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
246
246
|
eventButtonLocation?: string | undefined;
|
|
247
247
|
showPublishOptionModal?: boolean | undefined;
|
|
248
248
|
abTests: Record<string, string>;
|
|
249
|
+
logoBrandIndustry: string | undefined;
|
|
249
250
|
} & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
|
|
250
251
|
isUserDraft: (state: {
|
|
251
252
|
availableTaxes: any[];
|
|
@@ -304,6 +305,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
304
305
|
eventButtonLocation?: string | undefined;
|
|
305
306
|
showPublishOptionModal?: boolean | undefined;
|
|
306
307
|
abTests: Record<string, string>;
|
|
308
|
+
logoBrandIndustry: string | undefined;
|
|
307
309
|
} & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
|
|
308
310
|
}, {
|
|
309
311
|
clearTriggerSaveEventApiOnPublishModalClose(): void;
|
|
@@ -992,6 +994,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
992
994
|
selectInitialTemplateCategory(payload: {
|
|
993
995
|
selectedCategory: string;
|
|
994
996
|
}): void;
|
|
997
|
+
setInitialSearchTerm(payload: {
|
|
998
|
+
initialSearchTerm: string;
|
|
999
|
+
}): void;
|
|
995
1000
|
clearTemplates(): void;
|
|
996
1001
|
getTemplateByTemplateId(id: string): import("../../../shared/template-settings/models").TemplateSettingsTemplate | undefined;
|
|
997
1002
|
}>;
|
|
@@ -174,6 +174,7 @@ const InitialiseMakerStores = (options) => {
|
|
|
174
174
|
triggerSaveSuccessMessage: false,
|
|
175
175
|
triggerSaveEventApiOnPublishModalClose: false,
|
|
176
176
|
abTests: {},
|
|
177
|
+
logoBrandIndustry: '',
|
|
177
178
|
});
|
|
178
179
|
userStore.setIsAdmin({ isAdmin: options.isAdmin || false });
|
|
179
180
|
userStore.setHasBrandPagePremiumSubscription(false);
|
package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts
CHANGED
|
@@ -685,6 +685,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
685
685
|
eventButtonLocation?: string | undefined;
|
|
686
686
|
showPublishOptionModal?: boolean | undefined;
|
|
687
687
|
abTests: Record<string, string>;
|
|
688
|
+
logoBrandIndustry: string | undefined;
|
|
688
689
|
} & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
|
|
689
690
|
isUserDraft: (state: {
|
|
690
691
|
availableTaxes: any[];
|
|
@@ -743,6 +744,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
743
744
|
eventButtonLocation?: string | undefined;
|
|
744
745
|
showPublishOptionModal?: boolean | undefined;
|
|
745
746
|
abTests: Record<string, string>;
|
|
747
|
+
logoBrandIndustry: string | undefined;
|
|
746
748
|
} & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
|
|
747
749
|
}, {
|
|
748
750
|
clearTriggerSaveEventApiOnPublishModalClose(): void;
|
|
@@ -68,6 +68,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
68
68
|
eventButtonLocation?: string | undefined;
|
|
69
69
|
showPublishOptionModal?: boolean | undefined;
|
|
70
70
|
abTests: Record<string, string>;
|
|
71
|
+
logoBrandIndustry: string | undefined;
|
|
71
72
|
} & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
|
|
72
73
|
isUserDraft: (state: {
|
|
73
74
|
availableTaxes: any[];
|
|
@@ -126,6 +127,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
126
127
|
eventButtonLocation?: string | undefined;
|
|
127
128
|
showPublishOptionModal?: boolean | undefined;
|
|
128
129
|
abTests: Record<string, string>;
|
|
130
|
+
logoBrandIndustry: string | undefined;
|
|
129
131
|
} & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
|
|
130
132
|
}, {
|
|
131
133
|
clearTriggerSaveEventApiOnPublishModalClose(): void;
|
|
@@ -84,6 +84,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
84
84
|
eventButtonLocation?: string | undefined;
|
|
85
85
|
showPublishOptionModal?: boolean | undefined;
|
|
86
86
|
abTests: Record<string, string>;
|
|
87
|
+
logoBrandIndustry: string | undefined;
|
|
87
88
|
} & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
|
|
88
89
|
isUserDraft: (state: {
|
|
89
90
|
availableTaxes: any[];
|
|
@@ -142,6 +143,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
142
143
|
eventButtonLocation?: string | undefined;
|
|
143
144
|
showPublishOptionModal?: boolean | undefined;
|
|
144
145
|
abTests: Record<string, string>;
|
|
146
|
+
logoBrandIndustry: string | undefined;
|
|
145
147
|
} & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
|
|
146
148
|
}, {
|
|
147
149
|
clearTriggerSaveEventApiOnPublishModalClose(): void;
|
|
@@ -87,6 +87,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
87
87
|
eventButtonLocation?: string | undefined;
|
|
88
88
|
showPublishOptionModal?: boolean | undefined;
|
|
89
89
|
abTests: Record<string, string>;
|
|
90
|
+
logoBrandIndustry: string | undefined;
|
|
90
91
|
} & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
|
|
91
92
|
isUserDraft: (state: {
|
|
92
93
|
availableTaxes: any[];
|
|
@@ -145,6 +146,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
145
146
|
eventButtonLocation?: string | undefined;
|
|
146
147
|
showPublishOptionModal?: boolean | undefined;
|
|
147
148
|
abTests: Record<string, string>;
|
|
149
|
+
logoBrandIndustry: string | undefined;
|
|
148
150
|
} & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
|
|
149
151
|
}, {
|
|
150
152
|
clearTriggerSaveEventApiOnPublishModalClose(): void;
|
|
@@ -65,6 +65,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
65
65
|
eventButtonLocation?: string | undefined;
|
|
66
66
|
showPublishOptionModal?: boolean | undefined;
|
|
67
67
|
abTests: Record<string, string>;
|
|
68
|
+
logoBrandIndustry: string | undefined;
|
|
68
69
|
} & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
|
|
69
70
|
isUserDraft: (state: {
|
|
70
71
|
availableTaxes: any[];
|
|
@@ -123,6 +124,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
123
124
|
eventButtonLocation?: string | undefined;
|
|
124
125
|
showPublishOptionModal?: boolean | undefined;
|
|
125
126
|
abTests: Record<string, string>;
|
|
127
|
+
logoBrandIndustry: string | undefined;
|
|
126
128
|
} & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
|
|
127
129
|
}, {
|
|
128
130
|
clearTriggerSaveEventApiOnPublishModalClose(): void;
|
|
@@ -65,6 +65,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
65
65
|
eventButtonLocation?: string | undefined;
|
|
66
66
|
showPublishOptionModal?: boolean | undefined;
|
|
67
67
|
abTests: Record<string, string>;
|
|
68
|
+
logoBrandIndustry: string | undefined;
|
|
68
69
|
} & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
|
|
69
70
|
isUserDraft: (state: {
|
|
70
71
|
availableTaxes: any[];
|
|
@@ -123,6 +124,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
123
124
|
eventButtonLocation?: string | undefined;
|
|
124
125
|
showPublishOptionModal?: boolean | undefined;
|
|
125
126
|
abTests: Record<string, string>;
|
|
127
|
+
logoBrandIndustry: string | undefined;
|
|
126
128
|
} & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
|
|
127
129
|
}, {
|
|
128
130
|
clearTriggerSaveEventApiOnPublishModalClose(): void;
|
|
@@ -45,6 +45,7 @@ export interface BrandPageContainerState {
|
|
|
45
45
|
eventButtonLocation?: string;
|
|
46
46
|
showPublishOptionModal?: boolean;
|
|
47
47
|
abTests: Record<string, string>;
|
|
48
|
+
logoBrandIndustry: string | undefined;
|
|
48
49
|
}
|
|
49
50
|
export type InitialisePayload = Omit<BrandPageContainerState, 'customDomain' | 'customDomainConfig'> & {
|
|
50
51
|
logoDraftToken?: string;
|
|
@@ -117,6 +118,7 @@ export declare const useBrandPageContainerStore: import("pinia").StoreDefinition
|
|
|
117
118
|
eventButtonLocation?: string | undefined;
|
|
118
119
|
showPublishOptionModal?: boolean | undefined;
|
|
119
120
|
abTests: Record<string, string>;
|
|
121
|
+
logoBrandIndustry: string | undefined;
|
|
120
122
|
} & import("pinia").PiniaCustomStateProperties<BrandPageContainerState>) => boolean;
|
|
121
123
|
isUserDraft: (state: {
|
|
122
124
|
availableTaxes: any[];
|
|
@@ -175,6 +177,7 @@ export declare const useBrandPageContainerStore: import("pinia").StoreDefinition
|
|
|
175
177
|
eventButtonLocation?: string | undefined;
|
|
176
178
|
showPublishOptionModal?: boolean | undefined;
|
|
177
179
|
abTests: Record<string, string>;
|
|
180
|
+
logoBrandIndustry: string | undefined;
|
|
178
181
|
} & import("pinia").PiniaCustomStateProperties<BrandPageContainerState>) => boolean;
|
|
179
182
|
}, {
|
|
180
183
|
clearTriggerSaveEventApiOnPublishModalClose(): void;
|
|
@@ -12,6 +12,7 @@ import { useShopConfigStore } from '../../../shared/ecommerce-settings/store/sho
|
|
|
12
12
|
import { TRIGGER_TYPE, UPGRADE_CTA_LOCATIONS, useEventTracker, } from '../../composables/useEventTracker';
|
|
13
13
|
import { navigationTr } from '../../../composables/useTranslate';
|
|
14
14
|
import { errorTr } from '../../../composables/useTranslate';
|
|
15
|
+
import { useUiTemplateSettingsStore } from '../../../shared/template-settings/store';
|
|
15
16
|
export const BRANDPAGE_STATUS = Object.freeze({
|
|
16
17
|
Published: 'Published',
|
|
17
18
|
Unpublished: 'Unpublished',
|
|
@@ -62,6 +63,7 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
|
|
|
62
63
|
eventButtonLocation: undefined,
|
|
63
64
|
showPublishOptionModal: false,
|
|
64
65
|
abTests: {},
|
|
66
|
+
logoBrandIndustry: undefined,
|
|
65
67
|
};
|
|
66
68
|
},
|
|
67
69
|
actions: {
|
|
@@ -86,6 +88,7 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
|
|
|
86
88
|
}
|
|
87
89
|
}
|
|
88
90
|
const brandPageMakerStore = useBrandPageMakerStore();
|
|
91
|
+
const templateSettingsStore = useUiTemplateSettingsStore();
|
|
89
92
|
this.brandPageBaseUrl = payload.brandPageBaseUrl;
|
|
90
93
|
this.baseFabricRenderUrl = localisedRouteStore.baseFabricRenderDomain;
|
|
91
94
|
this.brandPageDescription = payload.brandPageDescription;
|
|
@@ -119,6 +122,9 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
|
|
|
119
122
|
this.showPublishOptionModal = payload.showPublishOptionModal;
|
|
120
123
|
this.abTests = getAbTestResults(payload.abTests || {});
|
|
121
124
|
const logoStore = useLogoStore();
|
|
125
|
+
templateSettingsStore.setInitialSearchTerm({
|
|
126
|
+
initialSearchTerm: payload.logoBrandIndustry ?? '',
|
|
127
|
+
});
|
|
122
128
|
logoStore.initialise({
|
|
123
129
|
logoTemplateAsset: payload.logoTemplateAsset,
|
|
124
130
|
logoDraftAssets: payload.logoDraftAssets || [],
|