@designcrowd/library.brand-page 5.10.34 → 5.10.35-ast-back-url-1
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 +7 -1
- 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 +7 -1
- package/lib/src/brand-page-maker/components/navigation/Navigation.mixin.d.ts +1 -0
- package/lib/src/brand-page-maker/components/navigation/Navigation.mixin.js +6 -0
- package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.d.ts +7 -1
- package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +7 -1
- package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +7 -1
- package/lib/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.d.ts +7 -1
- package/lib/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.d.ts +7 -1
- package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.d.ts +8 -1
- package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.js +20 -5
- package/lib/src/constants/brand-page-maker.d.ts +1 -0
- package/lib/src/constants/brand-page-maker.js +1 -0
- package/lib/src/css/library.brand-page-brandCrowd.min.css +10 -10
- package/lib/src/css/library.brand-page-brandPage.min.css +10 -10
- package/lib/src/css/library.brand-page-designCom.min.css +10 -10
- package/lib/src/css/library.brand-page-preview.min.css +10 -10
- package/lib/src/index.mjs +634 -618
- package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +7 -1
- package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +7 -1
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +7 -1
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +7 -1
- package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +7 -1
- package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +7 -1
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +7 -1
- package/package.json +1 -1
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.ts +1 -0
- package/src/brand-page-maker/components/color-palette/BpColorPalette.vue +1 -1
- package/src/brand-page-maker/components/navigation/Navigation.mixin.ts +7 -0
- package/src/brand-page-maker/components/navigation/Navigation.vue +1 -0
- package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.ts +25 -6
- package/src/constants/brand-page-maker.ts +1 -0
|
@@ -227,6 +227,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
227
227
|
isSellDomainNameEnabled: boolean;
|
|
228
228
|
isStripeOnboardingModalVisible: boolean;
|
|
229
229
|
isReactivationModal: boolean;
|
|
230
|
+
isPublishUpgradeModal: boolean;
|
|
230
231
|
isSaving: boolean;
|
|
231
232
|
backButtonLabel: string;
|
|
232
233
|
manageWebsiteDesignsUrl: string;
|
|
@@ -286,6 +287,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
286
287
|
isSellDomainNameEnabled: boolean;
|
|
287
288
|
isStripeOnboardingModalVisible: boolean;
|
|
288
289
|
isReactivationModal: boolean;
|
|
290
|
+
isPublishUpgradeModal: boolean;
|
|
289
291
|
isSaving: boolean;
|
|
290
292
|
backButtonLabel: string;
|
|
291
293
|
manageWebsiteDesignsUrl: string;
|
|
@@ -315,6 +317,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
315
317
|
setIsBrandPageSlugEditMode(payload: any): void;
|
|
316
318
|
setIsPublishing(payload: any): void;
|
|
317
319
|
setIsPublishModalVisible(payload: any): void;
|
|
320
|
+
setIsPublishUpgradeModal(payload: any): void;
|
|
318
321
|
setIsSaving(payload: any): void;
|
|
319
322
|
setIsUpgradeModalVisible(payload: any): void;
|
|
320
323
|
setPublishErrorMessage(payload: any): void;
|
|
@@ -361,7 +364,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
361
364
|
saveBrandPage(payload?: {
|
|
362
365
|
isPublish?: boolean | undefined;
|
|
363
366
|
eventButtonLocation?: string | undefined;
|
|
364
|
-
}): Promise<
|
|
367
|
+
}): Promise<false | {
|
|
368
|
+
saved: boolean;
|
|
369
|
+
canPublish: any;
|
|
370
|
+
}>;
|
|
365
371
|
saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
|
|
366
372
|
saveTemplate(): Promise<void>;
|
|
367
373
|
setBrandPageStatus(status: any): Promise<void>;
|
|
@@ -166,6 +166,7 @@ const InitialiseMakerStores = (options) => {
|
|
|
166
166
|
isBrandPageSlugEditMode: false,
|
|
167
167
|
isPublishModalVisible: false,
|
|
168
168
|
isUpgradeModalVisible: false,
|
|
169
|
+
isPublishUpgradeModal: false,
|
|
169
170
|
isStripeOnboardingModalVisible: false,
|
|
170
171
|
publishErrorMessage: '',
|
|
171
172
|
selectedTaxId: undefined,
|
package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts
CHANGED
|
@@ -666,6 +666,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
666
666
|
isSellDomainNameEnabled: boolean;
|
|
667
667
|
isStripeOnboardingModalVisible: boolean;
|
|
668
668
|
isReactivationModal: boolean;
|
|
669
|
+
isPublishUpgradeModal: boolean;
|
|
669
670
|
isSaving: boolean;
|
|
670
671
|
backButtonLabel: string;
|
|
671
672
|
manageWebsiteDesignsUrl: string;
|
|
@@ -725,6 +726,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
725
726
|
isSellDomainNameEnabled: boolean;
|
|
726
727
|
isStripeOnboardingModalVisible: boolean;
|
|
727
728
|
isReactivationModal: boolean;
|
|
729
|
+
isPublishUpgradeModal: boolean;
|
|
728
730
|
isSaving: boolean;
|
|
729
731
|
backButtonLabel: string;
|
|
730
732
|
manageWebsiteDesignsUrl: string;
|
|
@@ -754,6 +756,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
754
756
|
setIsBrandPageSlugEditMode(payload: any): void;
|
|
755
757
|
setIsPublishing(payload: any): void;
|
|
756
758
|
setIsPublishModalVisible(payload: any): void;
|
|
759
|
+
setIsPublishUpgradeModal(payload: any): void;
|
|
757
760
|
setIsSaving(payload: any): void;
|
|
758
761
|
setIsUpgradeModalVisible(payload: any): void;
|
|
759
762
|
setPublishErrorMessage(payload: any): void;
|
|
@@ -800,7 +803,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
800
803
|
saveBrandPage(payload?: {
|
|
801
804
|
isPublish?: boolean | undefined;
|
|
802
805
|
eventButtonLocation?: string | undefined;
|
|
803
|
-
}): Promise<
|
|
806
|
+
}): Promise<false | {
|
|
807
|
+
saved: boolean;
|
|
808
|
+
canPublish: any;
|
|
809
|
+
}>;
|
|
804
810
|
saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
|
|
805
811
|
saveTemplate(): Promise<void>;
|
|
806
812
|
setBrandPageStatus(status: any): Promise<void>;
|
|
@@ -37,6 +37,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
37
37
|
}>, {}, {}, {}, {
|
|
38
38
|
saveBrandPage(): void;
|
|
39
39
|
saveAndPublishBrandPage(): void;
|
|
40
|
+
handleBackClick(): void;
|
|
40
41
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
41
42
|
isAdmin: {
|
|
42
43
|
type: BooleanConstructor;
|
|
@@ -46,5 +46,11 @@ export default defineComponent({
|
|
|
46
46
|
saveAndPublishBrandPage() {
|
|
47
47
|
this.$emit(EVENTS.Publish);
|
|
48
48
|
},
|
|
49
|
+
handleBackClick() {
|
|
50
|
+
console.log('handleBackClick called', this.backUrl);
|
|
51
|
+
if (this.backUrl === '') {
|
|
52
|
+
this.$emit(EVENTS.Back);
|
|
53
|
+
}
|
|
54
|
+
},
|
|
49
55
|
},
|
|
50
56
|
});
|
|
@@ -49,6 +49,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
49
49
|
isSellDomainNameEnabled: boolean;
|
|
50
50
|
isStripeOnboardingModalVisible: boolean;
|
|
51
51
|
isReactivationModal: boolean;
|
|
52
|
+
isPublishUpgradeModal: boolean;
|
|
52
53
|
isSaving: boolean;
|
|
53
54
|
backButtonLabel: string;
|
|
54
55
|
manageWebsiteDesignsUrl: string;
|
|
@@ -108,6 +109,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
108
109
|
isSellDomainNameEnabled: boolean;
|
|
109
110
|
isStripeOnboardingModalVisible: boolean;
|
|
110
111
|
isReactivationModal: boolean;
|
|
112
|
+
isPublishUpgradeModal: boolean;
|
|
111
113
|
isSaving: boolean;
|
|
112
114
|
backButtonLabel: string;
|
|
113
115
|
manageWebsiteDesignsUrl: string;
|
|
@@ -137,6 +139,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
137
139
|
setIsBrandPageSlugEditMode(payload: any): void;
|
|
138
140
|
setIsPublishing(payload: any): void;
|
|
139
141
|
setIsPublishModalVisible(payload: any): void;
|
|
142
|
+
setIsPublishUpgradeModal(payload: any): void;
|
|
140
143
|
setIsSaving(payload: any): void;
|
|
141
144
|
setIsUpgradeModalVisible(payload: any): void;
|
|
142
145
|
setPublishErrorMessage(payload: any): void;
|
|
@@ -183,7 +186,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
183
186
|
saveBrandPage(payload?: {
|
|
184
187
|
isPublish?: boolean | undefined;
|
|
185
188
|
eventButtonLocation?: string | undefined;
|
|
186
|
-
}): Promise<
|
|
189
|
+
}): Promise<false | {
|
|
190
|
+
saved: boolean;
|
|
191
|
+
canPublish: any;
|
|
192
|
+
}>;
|
|
187
193
|
saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
|
|
188
194
|
saveTemplate(): Promise<void>;
|
|
189
195
|
setBrandPageStatus(status: any): Promise<void>;
|
|
@@ -65,6 +65,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
65
65
|
isSellDomainNameEnabled: boolean;
|
|
66
66
|
isStripeOnboardingModalVisible: boolean;
|
|
67
67
|
isReactivationModal: boolean;
|
|
68
|
+
isPublishUpgradeModal: boolean;
|
|
68
69
|
isSaving: boolean;
|
|
69
70
|
backButtonLabel: string;
|
|
70
71
|
manageWebsiteDesignsUrl: string;
|
|
@@ -124,6 +125,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
124
125
|
isSellDomainNameEnabled: boolean;
|
|
125
126
|
isStripeOnboardingModalVisible: boolean;
|
|
126
127
|
isReactivationModal: boolean;
|
|
128
|
+
isPublishUpgradeModal: boolean;
|
|
127
129
|
isSaving: boolean;
|
|
128
130
|
backButtonLabel: string;
|
|
129
131
|
manageWebsiteDesignsUrl: string;
|
|
@@ -153,6 +155,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
153
155
|
setIsBrandPageSlugEditMode(payload: any): void;
|
|
154
156
|
setIsPublishing(payload: any): void;
|
|
155
157
|
setIsPublishModalVisible(payload: any): void;
|
|
158
|
+
setIsPublishUpgradeModal(payload: any): void;
|
|
156
159
|
setIsSaving(payload: any): void;
|
|
157
160
|
setIsUpgradeModalVisible(payload: any): void;
|
|
158
161
|
setPublishErrorMessage(payload: any): void;
|
|
@@ -199,7 +202,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
199
202
|
saveBrandPage(payload?: {
|
|
200
203
|
isPublish?: boolean | undefined;
|
|
201
204
|
eventButtonLocation?: string | undefined;
|
|
202
|
-
}): Promise<
|
|
205
|
+
}): Promise<false | {
|
|
206
|
+
saved: boolean;
|
|
207
|
+
canPublish: any;
|
|
208
|
+
}>;
|
|
203
209
|
saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
|
|
204
210
|
saveTemplate(): Promise<void>;
|
|
205
211
|
setBrandPageStatus(status: any): Promise<void>;
|
|
@@ -68,6 +68,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
68
68
|
isSellDomainNameEnabled: boolean;
|
|
69
69
|
isStripeOnboardingModalVisible: boolean;
|
|
70
70
|
isReactivationModal: boolean;
|
|
71
|
+
isPublishUpgradeModal: boolean;
|
|
71
72
|
isSaving: boolean;
|
|
72
73
|
backButtonLabel: string;
|
|
73
74
|
manageWebsiteDesignsUrl: string;
|
|
@@ -127,6 +128,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
127
128
|
isSellDomainNameEnabled: boolean;
|
|
128
129
|
isStripeOnboardingModalVisible: boolean;
|
|
129
130
|
isReactivationModal: boolean;
|
|
131
|
+
isPublishUpgradeModal: boolean;
|
|
130
132
|
isSaving: boolean;
|
|
131
133
|
backButtonLabel: string;
|
|
132
134
|
manageWebsiteDesignsUrl: string;
|
|
@@ -156,6 +158,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
156
158
|
setIsBrandPageSlugEditMode(payload: any): void;
|
|
157
159
|
setIsPublishing(payload: any): void;
|
|
158
160
|
setIsPublishModalVisible(payload: any): void;
|
|
161
|
+
setIsPublishUpgradeModal(payload: any): void;
|
|
159
162
|
setIsSaving(payload: any): void;
|
|
160
163
|
setIsUpgradeModalVisible(payload: any): void;
|
|
161
164
|
setPublishErrorMessage(payload: any): void;
|
|
@@ -202,7 +205,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
202
205
|
saveBrandPage(payload?: {
|
|
203
206
|
isPublish?: boolean | undefined;
|
|
204
207
|
eventButtonLocation?: string | undefined;
|
|
205
|
-
}): Promise<
|
|
208
|
+
}): Promise<false | {
|
|
209
|
+
saved: boolean;
|
|
210
|
+
canPublish: any;
|
|
211
|
+
}>;
|
|
206
212
|
saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
|
|
207
213
|
saveTemplate(): Promise<void>;
|
|
208
214
|
setBrandPageStatus(status: any): Promise<void>;
|
|
@@ -46,6 +46,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
46
46
|
isSellDomainNameEnabled: boolean;
|
|
47
47
|
isStripeOnboardingModalVisible: boolean;
|
|
48
48
|
isReactivationModal: boolean;
|
|
49
|
+
isPublishUpgradeModal: boolean;
|
|
49
50
|
isSaving: boolean;
|
|
50
51
|
backButtonLabel: string;
|
|
51
52
|
manageWebsiteDesignsUrl: string;
|
|
@@ -105,6 +106,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
105
106
|
isSellDomainNameEnabled: boolean;
|
|
106
107
|
isStripeOnboardingModalVisible: boolean;
|
|
107
108
|
isReactivationModal: boolean;
|
|
109
|
+
isPublishUpgradeModal: boolean;
|
|
108
110
|
isSaving: boolean;
|
|
109
111
|
backButtonLabel: string;
|
|
110
112
|
manageWebsiteDesignsUrl: string;
|
|
@@ -134,6 +136,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
134
136
|
setIsBrandPageSlugEditMode(payload: any): void;
|
|
135
137
|
setIsPublishing(payload: any): void;
|
|
136
138
|
setIsPublishModalVisible(payload: any): void;
|
|
139
|
+
setIsPublishUpgradeModal(payload: any): void;
|
|
137
140
|
setIsSaving(payload: any): void;
|
|
138
141
|
setIsUpgradeModalVisible(payload: any): void;
|
|
139
142
|
setPublishErrorMessage(payload: any): void;
|
|
@@ -180,7 +183,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
180
183
|
saveBrandPage(payload?: {
|
|
181
184
|
isPublish?: boolean | undefined;
|
|
182
185
|
eventButtonLocation?: string | undefined;
|
|
183
|
-
}): Promise<
|
|
186
|
+
}): Promise<false | {
|
|
187
|
+
saved: boolean;
|
|
188
|
+
canPublish: any;
|
|
189
|
+
}>;
|
|
184
190
|
saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
|
|
185
191
|
saveTemplate(): Promise<void>;
|
|
186
192
|
setBrandPageStatus(status: any): Promise<void>;
|
|
@@ -46,6 +46,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
46
46
|
isSellDomainNameEnabled: boolean;
|
|
47
47
|
isStripeOnboardingModalVisible: boolean;
|
|
48
48
|
isReactivationModal: boolean;
|
|
49
|
+
isPublishUpgradeModal: boolean;
|
|
49
50
|
isSaving: boolean;
|
|
50
51
|
backButtonLabel: string;
|
|
51
52
|
manageWebsiteDesignsUrl: string;
|
|
@@ -105,6 +106,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
105
106
|
isSellDomainNameEnabled: boolean;
|
|
106
107
|
isStripeOnboardingModalVisible: boolean;
|
|
107
108
|
isReactivationModal: boolean;
|
|
109
|
+
isPublishUpgradeModal: boolean;
|
|
108
110
|
isSaving: boolean;
|
|
109
111
|
backButtonLabel: string;
|
|
110
112
|
manageWebsiteDesignsUrl: string;
|
|
@@ -134,6 +136,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
134
136
|
setIsBrandPageSlugEditMode(payload: any): void;
|
|
135
137
|
setIsPublishing(payload: any): void;
|
|
136
138
|
setIsPublishModalVisible(payload: any): void;
|
|
139
|
+
setIsPublishUpgradeModal(payload: any): void;
|
|
137
140
|
setIsSaving(payload: any): void;
|
|
138
141
|
setIsUpgradeModalVisible(payload: any): void;
|
|
139
142
|
setPublishErrorMessage(payload: any): void;
|
|
@@ -180,7 +183,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
180
183
|
saveBrandPage(payload?: {
|
|
181
184
|
isPublish?: boolean | undefined;
|
|
182
185
|
eventButtonLocation?: string | undefined;
|
|
183
|
-
}): Promise<
|
|
186
|
+
}): Promise<false | {
|
|
187
|
+
saved: boolean;
|
|
188
|
+
canPublish: any;
|
|
189
|
+
}>;
|
|
184
190
|
saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
|
|
185
191
|
saveTemplate(): Promise<void>;
|
|
186
192
|
setBrandPageStatus(status: any): Promise<void>;
|
|
@@ -26,6 +26,7 @@ export interface BrandPageContainerState {
|
|
|
26
26
|
isSellDomainNameEnabled: boolean;
|
|
27
27
|
isStripeOnboardingModalVisible: boolean;
|
|
28
28
|
isReactivationModal: boolean;
|
|
29
|
+
isPublishUpgradeModal: boolean;
|
|
29
30
|
isSaving: boolean;
|
|
30
31
|
backButtonLabel: string;
|
|
31
32
|
manageWebsiteDesignsUrl: string;
|
|
@@ -99,6 +100,7 @@ export declare const useBrandPageContainerStore: import("pinia").StoreDefinition
|
|
|
99
100
|
isSellDomainNameEnabled: boolean;
|
|
100
101
|
isStripeOnboardingModalVisible: boolean;
|
|
101
102
|
isReactivationModal: boolean;
|
|
103
|
+
isPublishUpgradeModal: boolean;
|
|
102
104
|
isSaving: boolean;
|
|
103
105
|
backButtonLabel: string;
|
|
104
106
|
manageWebsiteDesignsUrl: string;
|
|
@@ -158,6 +160,7 @@ export declare const useBrandPageContainerStore: import("pinia").StoreDefinition
|
|
|
158
160
|
isSellDomainNameEnabled: boolean;
|
|
159
161
|
isStripeOnboardingModalVisible: boolean;
|
|
160
162
|
isReactivationModal: boolean;
|
|
163
|
+
isPublishUpgradeModal: boolean;
|
|
161
164
|
isSaving: boolean;
|
|
162
165
|
backButtonLabel: string;
|
|
163
166
|
manageWebsiteDesignsUrl: string;
|
|
@@ -187,6 +190,7 @@ export declare const useBrandPageContainerStore: import("pinia").StoreDefinition
|
|
|
187
190
|
setIsBrandPageSlugEditMode(payload: any): void;
|
|
188
191
|
setIsPublishing(payload: any): void;
|
|
189
192
|
setIsPublishModalVisible(payload: any): void;
|
|
193
|
+
setIsPublishUpgradeModal(payload: any): void;
|
|
190
194
|
setIsSaving(payload: any): void;
|
|
191
195
|
setIsUpgradeModalVisible(payload: any): void;
|
|
192
196
|
setPublishErrorMessage(payload: any): void;
|
|
@@ -233,7 +237,10 @@ export declare const useBrandPageContainerStore: import("pinia").StoreDefinition
|
|
|
233
237
|
saveBrandPage(payload?: {
|
|
234
238
|
isPublish?: boolean;
|
|
235
239
|
eventButtonLocation?: string;
|
|
236
|
-
}): Promise<
|
|
240
|
+
}): Promise<false | {
|
|
241
|
+
saved: boolean;
|
|
242
|
+
canPublish: any;
|
|
243
|
+
}>;
|
|
237
244
|
saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
|
|
238
245
|
saveTemplate(): Promise<void>;
|
|
239
246
|
setBrandPageStatus(status: any): Promise<void>;
|
|
@@ -42,6 +42,7 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
|
|
|
42
42
|
isPublishing: false,
|
|
43
43
|
isSaving: false,
|
|
44
44
|
isUpgradeModalVisible: false,
|
|
45
|
+
isPublishUpgradeModal: false,
|
|
45
46
|
runtimeEnvironment: 'undefined',
|
|
46
47
|
upgradeUrl: '',
|
|
47
48
|
reactivationUrl: '',
|
|
@@ -109,6 +110,7 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
|
|
|
109
110
|
this.upgradeUrl = payload.upgradeUrl; // Deprecated: Remove when manage brand page routing is implemented
|
|
110
111
|
this.reactivationUrl = payload.reactivationUrl; // Deprecated: Remove when manage brand page routing is implemented
|
|
111
112
|
this.isReactivationModal = payload.isReactivationModal;
|
|
113
|
+
this.isPublishUpgradeModal = payload.isPublishUpgradeModal;
|
|
112
114
|
this.availableTaxes = payload.availableTaxes;
|
|
113
115
|
this.selectedTaxId =
|
|
114
116
|
this.availableTaxes?.length > 0 ? this.availableTaxes[0].id : undefined;
|
|
@@ -153,6 +155,9 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
|
|
|
153
155
|
this.isPublishModalVisible = payload.isVisible;
|
|
154
156
|
this.eventButtonLocation = payload.eventButtonLocation;
|
|
155
157
|
},
|
|
158
|
+
setIsPublishUpgradeModal(payload) {
|
|
159
|
+
this.isPublishUpgradeModal = payload;
|
|
160
|
+
},
|
|
156
161
|
setIsSaving(payload) {
|
|
157
162
|
if (process.env.NODE_ENV !== 'production' &&
|
|
158
163
|
typeof payload.isSaving !== 'boolean') {
|
|
@@ -230,6 +235,7 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
|
|
|
230
235
|
}
|
|
231
236
|
}
|
|
232
237
|
this.clearTriggerSaveEventApiOnPublishModalClose();
|
|
238
|
+
this.setIsPublishUpgradeModal(false);
|
|
233
239
|
this.setIsPublishModalVisible({ isVisible: false });
|
|
234
240
|
await this.endBrandPageSlugEditMode();
|
|
235
241
|
if (!payload.skipShowNextNotificationMessage) {
|
|
@@ -239,6 +245,7 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
|
|
|
239
245
|
},
|
|
240
246
|
async closeUpgradeModal() {
|
|
241
247
|
const brandPageMakerStore = useBrandPageMakerStore();
|
|
248
|
+
this.setIsPublishUpgradeModal(false);
|
|
242
249
|
this.setIsUpgradeModalVisible({ isVisible: false });
|
|
243
250
|
await this.showSaveSuccessMessage();
|
|
244
251
|
await brandPageMakerStore.showNextNotificationMessage();
|
|
@@ -296,6 +303,7 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
|
|
|
296
303
|
trigger_type: TRIGGER_TYPE.AUTOMATIC,
|
|
297
304
|
content_type: null,
|
|
298
305
|
});
|
|
306
|
+
this.setIsPublishUpgradeModal(true);
|
|
299
307
|
await this.showUpgradeModalAndSaveAsync();
|
|
300
308
|
await this.closePublishModal({
|
|
301
309
|
skipShowNextNotificationMessage: true,
|
|
@@ -388,6 +396,7 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
|
|
|
388
396
|
}
|
|
389
397
|
catch (err) {
|
|
390
398
|
if (err.customDomainResponse?.data?.showUpgradeModal === true) {
|
|
399
|
+
this.setIsPublishUpgradeModal(true);
|
|
391
400
|
await this.showUpgradeModalAndSaveAsync();
|
|
392
401
|
await this.closePublishModal({
|
|
393
402
|
skipShowNextNotificationMessage: true,
|
|
@@ -592,7 +601,7 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
|
|
|
592
601
|
await this.showSaveSuccessMessage();
|
|
593
602
|
await brandPageMakerStore.showNextNotificationMessage();
|
|
594
603
|
}
|
|
595
|
-
return true;
|
|
604
|
+
return { saved: true, canPublish: response.canPublish };
|
|
596
605
|
}
|
|
597
606
|
catch (err) {
|
|
598
607
|
if (err.response?.data?.showUpgradeModal === true) {
|
|
@@ -621,17 +630,24 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
|
|
|
621
630
|
if (userStore.isAdmin) {
|
|
622
631
|
throw new Error('save brand page is not allowed in admin mode');
|
|
623
632
|
}
|
|
624
|
-
const
|
|
633
|
+
const response = await this.saveBrandPage({
|
|
625
634
|
isPublish: true,
|
|
626
635
|
eventButtonLocation,
|
|
627
636
|
});
|
|
628
|
-
if (!
|
|
637
|
+
if (!response.saved) {
|
|
629
638
|
return;
|
|
630
639
|
}
|
|
631
640
|
if (this.brandPageStatus !== BRANDPAGE_STATUS.Published) {
|
|
632
641
|
this.setTriggerSaveEventApiOnPublishModalClose();
|
|
633
642
|
}
|
|
634
|
-
|
|
643
|
+
if (!response.canPublish) {
|
|
644
|
+
this.setIsPublishUpgradeModal(true);
|
|
645
|
+
await this.showUpgradeModalAndSaveAsync();
|
|
646
|
+
return;
|
|
647
|
+
}
|
|
648
|
+
else {
|
|
649
|
+
await this.showPublishModal(eventButtonLocation);
|
|
650
|
+
}
|
|
635
651
|
},
|
|
636
652
|
async saveTemplate() {
|
|
637
653
|
const userStore = useBrandPageMakerUserStore();
|
|
@@ -655,7 +671,6 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
|
|
|
655
671
|
await brandPageMakerStore.showNextNotificationMessage();
|
|
656
672
|
},
|
|
657
673
|
async setBrandPageStatus(status) {
|
|
658
|
-
const sideBarStore = useUiSideBarStore();
|
|
659
674
|
this.brandPageStatus = status;
|
|
660
675
|
},
|
|
661
676
|
showPublishModal(eventButtonLocation) {
|
|
@@ -3,6 +3,7 @@ export declare const EVENTS: {
|
|
|
3
3
|
readonly Save: "save";
|
|
4
4
|
readonly Publish: "publish";
|
|
5
5
|
readonly Initialised: "initialised";
|
|
6
|
+
readonly Back: "Back";
|
|
6
7
|
};
|
|
7
8
|
export declare const S3_TEMPLATE_ASSETS_URL = "https://bcassetcdn.com/assets/brand-page/template-assets/backgrounds";
|
|
8
9
|
export declare const BRAND_PAGE_ICONS: string[];
|
|
@@ -7906,27 +7906,27 @@ body {
|
|
|
7906
7906
|
transition-timing-function: cubic-bezier(0, 0, 0.2, 1)
|
|
7907
7907
|
}
|
|
7908
7908
|
|
|
7909
|
-
.c-color[data-v-
|
|
7909
|
+
.c-color[data-v-1dd06ab9] {
|
|
7910
7910
|
-webkit-box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
|
|
7911
7911
|
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
|
|
7912
7912
|
}
|
|
7913
|
-
.c-color[data-v-
|
|
7913
|
+
.c-color[data-v-1dd06ab9]:hover {
|
|
7914
7914
|
-webkit-box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
|
|
7915
7915
|
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
|
|
7916
7916
|
-webkit-transform: scale(1.025);
|
|
7917
7917
|
transform: scale(1.025);
|
|
7918
7918
|
}
|
|
7919
|
-
.c-color[data-v-
|
|
7919
|
+
.c-color[data-v-1dd06ab9] {
|
|
7920
7920
|
-webkit-box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
|
|
7921
7921
|
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
|
|
7922
7922
|
}
|
|
7923
|
-
.c-color[data-v-
|
|
7923
|
+
.c-color[data-v-1dd06ab9]:hover {
|
|
7924
7924
|
-webkit-box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
|
|
7925
7925
|
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
|
|
7926
7926
|
-webkit-transform: scale(1.025);
|
|
7927
7927
|
transform: scale(1.025);
|
|
7928
7928
|
}
|
|
7929
|
-
.maker-color-palette__popup[data-v-
|
|
7929
|
+
.maker-color-palette__popup[data-v-1dd06ab9] {
|
|
7930
7930
|
position: absolute;
|
|
7931
7931
|
padding: 0.625rem;
|
|
7932
7932
|
background: white;
|
|
@@ -7940,13 +7940,13 @@ body {
|
|
|
7940
7940
|
height: fit-content;
|
|
7941
7941
|
max-width: 100%;
|
|
7942
7942
|
}
|
|
7943
|
-
.maker-color-palette__widget-body[data-v-
|
|
7943
|
+
.maker-color-palette__widget-body[data-v-1dd06ab9] {
|
|
7944
7944
|
height: 100%;
|
|
7945
7945
|
overflow-x: hidden;
|
|
7946
7946
|
overflow-y: auto;
|
|
7947
7947
|
padding: 0.625rem;
|
|
7948
7948
|
}
|
|
7949
|
-
.picker-button[data-v-
|
|
7949
|
+
.picker-button[data-v-1dd06ab9] {
|
|
7950
7950
|
width: 100%;
|
|
7951
7951
|
border: 1px solid #878787;
|
|
7952
7952
|
text-transform: uppercase;
|
|
@@ -7955,14 +7955,14 @@ body {
|
|
|
7955
7955
|
cursor: pointer;
|
|
7956
7956
|
}
|
|
7957
7957
|
@media print, screen and (min-width: 40em) {
|
|
7958
|
-
.maker-color-palette__popup[data-v-
|
|
7958
|
+
.maker-color-palette__popup[data-v-1dd06ab9] {
|
|
7959
7959
|
bottom: initial;
|
|
7960
7960
|
height: auto;
|
|
7961
7961
|
top: 1.25rem;
|
|
7962
7962
|
width: calc(100% - 36px);
|
|
7963
7963
|
}
|
|
7964
7964
|
}
|
|
7965
|
-
.maker-text-color__icon[data-v-
|
|
7965
|
+
.maker-text-color__icon[data-v-1dd06ab9] {
|
|
7966
7966
|
display: -webkit-box;
|
|
7967
7967
|
display: -ms-flexbox;
|
|
7968
7968
|
display: flex;
|
|
@@ -7976,7 +7976,7 @@ body {
|
|
|
7976
7976
|
height: 32px;
|
|
7977
7977
|
margin-top: 15px;
|
|
7978
7978
|
}
|
|
7979
|
-
.maker-text-color__icon .active[data-v-
|
|
7979
|
+
.maker-text-color__icon .active[data-v-1dd06ab9] {
|
|
7980
7980
|
font-weight: bold;
|
|
7981
7981
|
background: #e3e3e3;
|
|
7982
7982
|
}
|
|
@@ -8234,27 +8234,27 @@ body {
|
|
|
8234
8234
|
transition-timing-function: cubic-bezier(0, 0, 0.2, 1)
|
|
8235
8235
|
}
|
|
8236
8236
|
|
|
8237
|
-
.c-color[data-v-
|
|
8237
|
+
.c-color[data-v-1dd06ab9] {
|
|
8238
8238
|
-webkit-box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
|
|
8239
8239
|
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
|
|
8240
8240
|
}
|
|
8241
|
-
.c-color[data-v-
|
|
8241
|
+
.c-color[data-v-1dd06ab9]:hover {
|
|
8242
8242
|
-webkit-box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
|
|
8243
8243
|
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
|
|
8244
8244
|
-webkit-transform: scale(1.025);
|
|
8245
8245
|
transform: scale(1.025);
|
|
8246
8246
|
}
|
|
8247
|
-
.c-color[data-v-
|
|
8247
|
+
.c-color[data-v-1dd06ab9] {
|
|
8248
8248
|
-webkit-box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
|
|
8249
8249
|
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
|
|
8250
8250
|
}
|
|
8251
|
-
.c-color[data-v-
|
|
8251
|
+
.c-color[data-v-1dd06ab9]:hover {
|
|
8252
8252
|
-webkit-box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
|
|
8253
8253
|
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
|
|
8254
8254
|
-webkit-transform: scale(1.025);
|
|
8255
8255
|
transform: scale(1.025);
|
|
8256
8256
|
}
|
|
8257
|
-
.maker-color-palette__popup[data-v-
|
|
8257
|
+
.maker-color-palette__popup[data-v-1dd06ab9] {
|
|
8258
8258
|
position: absolute;
|
|
8259
8259
|
padding: 0.625rem;
|
|
8260
8260
|
background: white;
|
|
@@ -8268,13 +8268,13 @@ body {
|
|
|
8268
8268
|
height: fit-content;
|
|
8269
8269
|
max-width: 100%;
|
|
8270
8270
|
}
|
|
8271
|
-
.maker-color-palette__widget-body[data-v-
|
|
8271
|
+
.maker-color-palette__widget-body[data-v-1dd06ab9] {
|
|
8272
8272
|
height: 100%;
|
|
8273
8273
|
overflow-x: hidden;
|
|
8274
8274
|
overflow-y: auto;
|
|
8275
8275
|
padding: 0.625rem;
|
|
8276
8276
|
}
|
|
8277
|
-
.picker-button[data-v-
|
|
8277
|
+
.picker-button[data-v-1dd06ab9] {
|
|
8278
8278
|
width: 100%;
|
|
8279
8279
|
border: 1px solid #878787;
|
|
8280
8280
|
text-transform: uppercase;
|
|
@@ -8283,14 +8283,14 @@ body {
|
|
|
8283
8283
|
cursor: pointer;
|
|
8284
8284
|
}
|
|
8285
8285
|
@media print, screen and (min-width: 40em) {
|
|
8286
|
-
.maker-color-palette__popup[data-v-
|
|
8286
|
+
.maker-color-palette__popup[data-v-1dd06ab9] {
|
|
8287
8287
|
bottom: initial;
|
|
8288
8288
|
height: auto;
|
|
8289
8289
|
top: 1.25rem;
|
|
8290
8290
|
width: calc(100% - 36px);
|
|
8291
8291
|
}
|
|
8292
8292
|
}
|
|
8293
|
-
.maker-text-color__icon[data-v-
|
|
8293
|
+
.maker-text-color__icon[data-v-1dd06ab9] {
|
|
8294
8294
|
display: -webkit-box;
|
|
8295
8295
|
display: -ms-flexbox;
|
|
8296
8296
|
display: flex;
|
|
@@ -8304,7 +8304,7 @@ body {
|
|
|
8304
8304
|
height: 32px;
|
|
8305
8305
|
margin-top: 15px;
|
|
8306
8306
|
}
|
|
8307
|
-
.maker-text-color__icon .active[data-v-
|
|
8307
|
+
.maker-text-color__icon .active[data-v-1dd06ab9] {
|
|
8308
8308
|
font-weight: bold;
|
|
8309
8309
|
background: #e3e3e3;
|
|
8310
8310
|
}
|
|
@@ -7924,27 +7924,27 @@ body {
|
|
|
7924
7924
|
transition-timing-function: cubic-bezier(0, 0, 0.2, 1)
|
|
7925
7925
|
}
|
|
7926
7926
|
|
|
7927
|
-
.c-color[data-v-
|
|
7927
|
+
.c-color[data-v-1dd06ab9] {
|
|
7928
7928
|
-webkit-box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
|
|
7929
7929
|
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
|
|
7930
7930
|
}
|
|
7931
|
-
.c-color[data-v-
|
|
7931
|
+
.c-color[data-v-1dd06ab9]:hover {
|
|
7932
7932
|
-webkit-box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
|
|
7933
7933
|
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
|
|
7934
7934
|
-webkit-transform: scale(1.025);
|
|
7935
7935
|
transform: scale(1.025);
|
|
7936
7936
|
}
|
|
7937
|
-
.c-color[data-v-
|
|
7937
|
+
.c-color[data-v-1dd06ab9] {
|
|
7938
7938
|
-webkit-box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
|
|
7939
7939
|
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
|
|
7940
7940
|
}
|
|
7941
|
-
.c-color[data-v-
|
|
7941
|
+
.c-color[data-v-1dd06ab9]:hover {
|
|
7942
7942
|
-webkit-box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
|
|
7943
7943
|
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
|
|
7944
7944
|
-webkit-transform: scale(1.025);
|
|
7945
7945
|
transform: scale(1.025);
|
|
7946
7946
|
}
|
|
7947
|
-
.maker-color-palette__popup[data-v-
|
|
7947
|
+
.maker-color-palette__popup[data-v-1dd06ab9] {
|
|
7948
7948
|
position: absolute;
|
|
7949
7949
|
padding: 0.625rem;
|
|
7950
7950
|
background: white;
|
|
@@ -7958,13 +7958,13 @@ body {
|
|
|
7958
7958
|
height: fit-content;
|
|
7959
7959
|
max-width: 100%;
|
|
7960
7960
|
}
|
|
7961
|
-
.maker-color-palette__widget-body[data-v-
|
|
7961
|
+
.maker-color-palette__widget-body[data-v-1dd06ab9] {
|
|
7962
7962
|
height: 100%;
|
|
7963
7963
|
overflow-x: hidden;
|
|
7964
7964
|
overflow-y: auto;
|
|
7965
7965
|
padding: 0.625rem;
|
|
7966
7966
|
}
|
|
7967
|
-
.picker-button[data-v-
|
|
7967
|
+
.picker-button[data-v-1dd06ab9] {
|
|
7968
7968
|
width: 100%;
|
|
7969
7969
|
border: 1px solid #878787;
|
|
7970
7970
|
text-transform: uppercase;
|
|
@@ -7973,14 +7973,14 @@ body {
|
|
|
7973
7973
|
cursor: pointer;
|
|
7974
7974
|
}
|
|
7975
7975
|
@media print, screen and (min-width: 40em) {
|
|
7976
|
-
.maker-color-palette__popup[data-v-
|
|
7976
|
+
.maker-color-palette__popup[data-v-1dd06ab9] {
|
|
7977
7977
|
bottom: initial;
|
|
7978
7978
|
height: auto;
|
|
7979
7979
|
top: 1.25rem;
|
|
7980
7980
|
width: calc(100% - 36px);
|
|
7981
7981
|
}
|
|
7982
7982
|
}
|
|
7983
|
-
.maker-text-color__icon[data-v-
|
|
7983
|
+
.maker-text-color__icon[data-v-1dd06ab9] {
|
|
7984
7984
|
display: -webkit-box;
|
|
7985
7985
|
display: -ms-flexbox;
|
|
7986
7986
|
display: flex;
|
|
@@ -7994,7 +7994,7 @@ body {
|
|
|
7994
7994
|
height: 32px;
|
|
7995
7995
|
margin-top: 15px;
|
|
7996
7996
|
}
|
|
7997
|
-
.maker-text-color__icon .active[data-v-
|
|
7997
|
+
.maker-text-color__icon .active[data-v-1dd06ab9] {
|
|
7998
7998
|
font-weight: bold;
|
|
7999
7999
|
background: #e3e3e3;
|
|
8000
8000
|
}
|