@designcrowd/library.brand-page 5.10.15-debug-2 → 5.10.15-routing-14
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 +2 -6
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.js +4 -3
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.js +0 -2
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +2 -6
- package/lib/src/brand-page-maker/components/navigation/Navigation.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.d.ts +2 -6
- package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +3 -7
- package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.js +5 -8
- package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +59 -7
- package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.js +4 -6
- package/lib/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.d.ts +2 -6
- package/lib/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.d.ts +2 -6
- package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.d.ts +3 -9
- package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.js +25 -19
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +3 -2
- package/lib/src/brand-page-maker/stores/route/index.d.ts +1 -0
- package/lib/src/brand-page-maker/stores/route/index.js +1 -0
- package/lib/src/brand-page-maker/stores/route/localised-route-store.d.ts +73 -0
- package/lib/src/brand-page-maker/stores/route/localised-route-store.js +85 -0
- package/lib/src/brand-page-maker/utils/route.util.d.ts +1 -0
- package/lib/src/brand-page-maker/utils/route.util.js +5 -0
- package/lib/src/css/library.brand-page-brandCrowd.min.css +12 -12
- package/lib/src/css/library.brand-page-brandPage.min.css +12 -12
- package/lib/src/css/library.brand-page-designCom.min.css +12 -12
- package/lib/src/css/library.brand-page-preview.min.css +12 -12
- package/lib/src/index.d.ts +1 -1
- package/lib/src/index.mjs +13130 -13084
- package/lib/src/lib.js +1 -1
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.js +0 -3
- package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +2 -6
- package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +2 -6
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +2 -6
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +2 -6
- package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +2 -6
- package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.js +4 -3
- package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +2 -6
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +2 -6
- package/package.json +1 -1
- package/src/brand-page/components/brand-page-footer/BrandPageFooter.vue +14 -25
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.ts +4 -2
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.ts +0 -2
- package/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.ts +7 -8
- package/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.ts +4 -5
- package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.ts +40 -25
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +3 -2
- package/src/brand-page-maker/stores/route/index.ts +1 -0
- package/src/brand-page-maker/stores/route/localised-route-store.ts +118 -0
- package/src/brand-page-maker/utils/route.util.ts +8 -0
- package/src/lib.ts +1 -0
- package/src/shared/content-settings/components/content-settings/ContentSettings.mixin.ts +0 -4
- package/src/shared/content-settings/components/logo-selection-field/LogoSelection.vue +0 -1
- package/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.ts +4 -4
|
@@ -200,7 +200,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
200
200
|
brandPageStatus: string;
|
|
201
201
|
brandPageToken: string | undefined;
|
|
202
202
|
brandPageTitle: string;
|
|
203
|
-
createNewDesignUrl: string;
|
|
204
203
|
customDomain: {
|
|
205
204
|
id: string;
|
|
206
205
|
created: Date;
|
|
@@ -229,10 +228,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
229
228
|
isStripeOnboardingModalVisible: boolean;
|
|
230
229
|
isReactivationModal: boolean;
|
|
231
230
|
isSaving: boolean;
|
|
232
|
-
backUrl: string;
|
|
233
231
|
backButtonLabel: string;
|
|
234
232
|
manageWebsiteDesignsUrl: string;
|
|
235
233
|
publishErrorMessage: string;
|
|
234
|
+
upgradeUrl: string;
|
|
236
235
|
reactivationUrl: string;
|
|
237
236
|
runtimeEnvironment: string;
|
|
238
237
|
selectedTaxId: number | undefined;
|
|
@@ -240,7 +239,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
240
239
|
standalone: boolean;
|
|
241
240
|
triggerSaveSuccessMessage: boolean;
|
|
242
241
|
triggerSaveEventApiOnPublishModalClose: boolean;
|
|
243
|
-
upgradeUrl: string;
|
|
244
242
|
measurementID: string | undefined;
|
|
245
243
|
isDesignCom: boolean;
|
|
246
244
|
isPrePurchase: boolean;
|
|
@@ -260,7 +258,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
260
258
|
brandPageStatus: string;
|
|
261
259
|
brandPageToken: string | undefined;
|
|
262
260
|
brandPageTitle: string;
|
|
263
|
-
createNewDesignUrl: string;
|
|
264
261
|
customDomain: {
|
|
265
262
|
id: string;
|
|
266
263
|
created: Date;
|
|
@@ -289,10 +286,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
289
286
|
isStripeOnboardingModalVisible: boolean;
|
|
290
287
|
isReactivationModal: boolean;
|
|
291
288
|
isSaving: boolean;
|
|
292
|
-
backUrl: string;
|
|
293
289
|
backButtonLabel: string;
|
|
294
290
|
manageWebsiteDesignsUrl: string;
|
|
295
291
|
publishErrorMessage: string;
|
|
292
|
+
upgradeUrl: string;
|
|
296
293
|
reactivationUrl: string;
|
|
297
294
|
runtimeEnvironment: string;
|
|
298
295
|
selectedTaxId: number | undefined;
|
|
@@ -300,7 +297,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
300
297
|
standalone: boolean;
|
|
301
298
|
triggerSaveSuccessMessage: boolean;
|
|
302
299
|
triggerSaveEventApiOnPublishModalClose: boolean;
|
|
303
|
-
upgradeUrl: string;
|
|
304
300
|
measurementID: string | undefined;
|
|
305
301
|
isDesignCom: boolean;
|
|
306
302
|
isPrePurchase: boolean;
|
|
@@ -10,7 +10,7 @@ import { createInitialBrandPage } from '../../models';
|
|
|
10
10
|
import { navigateToPageBySlug } from '../../routing';
|
|
11
11
|
import { useBrandPageContainerStore } from '../../stores';
|
|
12
12
|
import { UI_DEVICE_MODES, UI_SCREENSIZE_MODES, } from '../../../shared/models';
|
|
13
|
-
import { useBrandPageMakerStore, useBrandPageMakerUserStore, useUiStore, } from '../../stores';
|
|
13
|
+
import { useBrandPageMakerStore, useBrandPageMakerUserStore, useLocalisedRouteStore, useUiStore, } from '../../stores';
|
|
14
14
|
import { useUiContentSettingsStore } from '../../../shared/content-settings/store';
|
|
15
15
|
import { useUiTemplateSettingsStore } from '../../../shared/template-settings/store';
|
|
16
16
|
import { useUiPageSettingsStore } from '../../../shared/page-settings/store';
|
|
@@ -39,6 +39,7 @@ export default defineComponent({
|
|
|
39
39
|
const shopSettingStore = useShopConfigStore();
|
|
40
40
|
const productSettingStore = useProductConfigStore();
|
|
41
41
|
const router = useRouter();
|
|
42
|
+
const localisedRouteStore = useLocalisedRouteStore();
|
|
42
43
|
return {
|
|
43
44
|
currentNotificationMessage: computed(() => brandPageMakerStore.currentNotificationMessage),
|
|
44
45
|
isChangeTemplateConfirmModalVisible: computed(() => brandPageMakerStore.isChangeTemplateConfirmModalVisible),
|
|
@@ -49,7 +50,7 @@ export default defineComponent({
|
|
|
49
50
|
isMobileDevice: computed(() => uiStore.deviceMode === UI_DEVICE_MODES.mobile),
|
|
50
51
|
// the state of window screen size
|
|
51
52
|
isMobileScreenSize: computed(() => uiStore.screenSizeMode === UI_SCREENSIZE_MODES.mobile),
|
|
52
|
-
brandPageBaseUrl: computed(() =>
|
|
53
|
+
brandPageBaseUrl: computed(() => localisedRouteStore.baseBrandPageDomain),
|
|
53
54
|
brandPageSlug: computed(() => brandPageMakerStore.brandPageSlug),
|
|
54
55
|
brandPageType: computed(() => brandPageMakerStore.brandPageType),
|
|
55
56
|
isSaving: computed(() => brandPageMakerStore.isSaving),
|
|
@@ -57,7 +58,7 @@ export default defineComponent({
|
|
|
57
58
|
isPublished: computed(() => brandPageMakerStore.isPublished),
|
|
58
59
|
isBrandPageOrIsBrandContact: computed(() => brandPageMakerStore.isBrandPageOrIsBrandContact),
|
|
59
60
|
brandPageViewModel: computed(() => brandPageMakerStore.brandPageViewModel),
|
|
60
|
-
backUrl: computed(() =>
|
|
61
|
+
backUrl: computed(() => localisedRouteStore.backToWebsiteManageUrlPath),
|
|
61
62
|
backButtonLabel: computed(() => containerStore.backButtonLabel),
|
|
62
63
|
isDesignCom: computed(() => containerStore.isDesignCom),
|
|
63
64
|
selectedTabName: computed(() => sideBarStore.selectedTabName),
|
|
@@ -44,7 +44,6 @@ const InitialiseMakerStores = (options) => {
|
|
|
44
44
|
isDesignCom: options.isDesignCom || false,
|
|
45
45
|
isPrePurchase: isPrePurchase,
|
|
46
46
|
logoDraftToken: 'f7d3163f-bcdf-4537-98b0-64cd6df8d1a9',
|
|
47
|
-
createNewDesignUrl: '',
|
|
48
47
|
runtimeEnvironment: 'staging',
|
|
49
48
|
upgradeUrl: '',
|
|
50
49
|
reactivationUrl: '',
|
|
@@ -62,7 +61,6 @@ const InitialiseMakerStores = (options) => {
|
|
|
62
61
|
brandPageCustomDomain: undefined,
|
|
63
62
|
isBrandPageCustomDomainEnabled: false,
|
|
64
63
|
isSellDomainNameEnabled: false,
|
|
65
|
-
backUrl: '',
|
|
66
64
|
backButtonLabel: 'Back',
|
|
67
65
|
manageWebsiteDesignsUrl: '',
|
|
68
66
|
logoTemplateAsset: isPrePurchase
|
package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts
CHANGED
|
@@ -607,7 +607,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
607
607
|
brandPageStatus: string;
|
|
608
608
|
brandPageToken: string | undefined;
|
|
609
609
|
brandPageTitle: string;
|
|
610
|
-
createNewDesignUrl: string;
|
|
611
610
|
customDomain: {
|
|
612
611
|
id: string;
|
|
613
612
|
created: Date;
|
|
@@ -636,10 +635,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
636
635
|
isStripeOnboardingModalVisible: boolean;
|
|
637
636
|
isReactivationModal: boolean;
|
|
638
637
|
isSaving: boolean;
|
|
639
|
-
backUrl: string;
|
|
640
638
|
backButtonLabel: string;
|
|
641
639
|
manageWebsiteDesignsUrl: string;
|
|
642
640
|
publishErrorMessage: string;
|
|
641
|
+
upgradeUrl: string;
|
|
643
642
|
reactivationUrl: string;
|
|
644
643
|
runtimeEnvironment: string;
|
|
645
644
|
selectedTaxId: number | undefined;
|
|
@@ -647,7 +646,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
647
646
|
standalone: boolean;
|
|
648
647
|
triggerSaveSuccessMessage: boolean;
|
|
649
648
|
triggerSaveEventApiOnPublishModalClose: boolean;
|
|
650
|
-
upgradeUrl: string;
|
|
651
649
|
measurementID: string | undefined;
|
|
652
650
|
isDesignCom: boolean;
|
|
653
651
|
isPrePurchase: boolean;
|
|
@@ -667,7 +665,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
667
665
|
brandPageStatus: string;
|
|
668
666
|
brandPageToken: string | undefined;
|
|
669
667
|
brandPageTitle: string;
|
|
670
|
-
createNewDesignUrl: string;
|
|
671
668
|
customDomain: {
|
|
672
669
|
id: string;
|
|
673
670
|
created: Date;
|
|
@@ -696,10 +693,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
696
693
|
isStripeOnboardingModalVisible: boolean;
|
|
697
694
|
isReactivationModal: boolean;
|
|
698
695
|
isSaving: boolean;
|
|
699
|
-
backUrl: string;
|
|
700
696
|
backButtonLabel: string;
|
|
701
697
|
manageWebsiteDesignsUrl: string;
|
|
702
698
|
publishErrorMessage: string;
|
|
699
|
+
upgradeUrl: string;
|
|
703
700
|
reactivationUrl: string;
|
|
704
701
|
runtimeEnvironment: string;
|
|
705
702
|
selectedTaxId: number | undefined;
|
|
@@ -707,7 +704,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
707
704
|
standalone: boolean;
|
|
708
705
|
triggerSaveSuccessMessage: boolean;
|
|
709
706
|
triggerSaveEventApiOnPublishModalClose: boolean;
|
|
710
|
-
upgradeUrl: string;
|
|
711
707
|
measurementID: string | undefined;
|
|
712
708
|
isDesignCom: boolean;
|
|
713
709
|
isPrePurchase: boolean;
|
|
@@ -77,9 +77,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
77
77
|
isAdmin: boolean;
|
|
78
78
|
isPublished: boolean;
|
|
79
79
|
isSaving: boolean;
|
|
80
|
-
backUrl: string;
|
|
81
80
|
backButtonLabel: string;
|
|
82
81
|
isDesignCom: boolean;
|
|
82
|
+
backUrl: string;
|
|
83
83
|
brandCrowdUrl: string;
|
|
84
84
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
85
85
|
export default _default;
|
|
@@ -22,7 +22,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
22
22
|
brandPageStatus: string;
|
|
23
23
|
brandPageToken: string | undefined;
|
|
24
24
|
brandPageTitle: string;
|
|
25
|
-
createNewDesignUrl: string;
|
|
26
25
|
customDomain: {
|
|
27
26
|
id: string;
|
|
28
27
|
created: Date;
|
|
@@ -51,10 +50,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
51
50
|
isStripeOnboardingModalVisible: boolean;
|
|
52
51
|
isReactivationModal: boolean;
|
|
53
52
|
isSaving: boolean;
|
|
54
|
-
backUrl: string;
|
|
55
53
|
backButtonLabel: string;
|
|
56
54
|
manageWebsiteDesignsUrl: string;
|
|
57
55
|
publishErrorMessage: string;
|
|
56
|
+
upgradeUrl: string;
|
|
58
57
|
reactivationUrl: string;
|
|
59
58
|
runtimeEnvironment: string;
|
|
60
59
|
selectedTaxId: number | undefined;
|
|
@@ -62,7 +61,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
62
61
|
standalone: boolean;
|
|
63
62
|
triggerSaveSuccessMessage: boolean;
|
|
64
63
|
triggerSaveEventApiOnPublishModalClose: boolean;
|
|
65
|
-
upgradeUrl: string;
|
|
66
64
|
measurementID: string | undefined;
|
|
67
65
|
isDesignCom: boolean;
|
|
68
66
|
isPrePurchase: boolean;
|
|
@@ -82,7 +80,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
82
80
|
brandPageStatus: string;
|
|
83
81
|
brandPageToken: string | undefined;
|
|
84
82
|
brandPageTitle: string;
|
|
85
|
-
createNewDesignUrl: string;
|
|
86
83
|
customDomain: {
|
|
87
84
|
id: string;
|
|
88
85
|
created: Date;
|
|
@@ -111,10 +108,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
111
108
|
isStripeOnboardingModalVisible: boolean;
|
|
112
109
|
isReactivationModal: boolean;
|
|
113
110
|
isSaving: boolean;
|
|
114
|
-
backUrl: string;
|
|
115
111
|
backButtonLabel: string;
|
|
116
112
|
manageWebsiteDesignsUrl: string;
|
|
117
113
|
publishErrorMessage: string;
|
|
114
|
+
upgradeUrl: string;
|
|
118
115
|
reactivationUrl: string;
|
|
119
116
|
runtimeEnvironment: string;
|
|
120
117
|
selectedTaxId: number | undefined;
|
|
@@ -122,7 +119,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
122
119
|
standalone: boolean;
|
|
123
120
|
triggerSaveSuccessMessage: boolean;
|
|
124
121
|
triggerSaveEventApiOnPublishModalClose: boolean;
|
|
125
|
-
upgradeUrl: string;
|
|
126
122
|
measurementID: string | undefined;
|
|
127
123
|
isDesignCom: boolean;
|
|
128
124
|
isPrePurchase: boolean;
|
|
@@ -38,7 +38,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
38
38
|
brandPageStatus: string;
|
|
39
39
|
brandPageToken: string | undefined;
|
|
40
40
|
brandPageTitle: string;
|
|
41
|
-
createNewDesignUrl: string;
|
|
42
41
|
customDomain: {
|
|
43
42
|
id: string;
|
|
44
43
|
created: Date;
|
|
@@ -67,10 +66,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
67
66
|
isStripeOnboardingModalVisible: boolean;
|
|
68
67
|
isReactivationModal: boolean;
|
|
69
68
|
isSaving: boolean;
|
|
70
|
-
backUrl: string;
|
|
71
69
|
backButtonLabel: string;
|
|
72
70
|
manageWebsiteDesignsUrl: string;
|
|
73
71
|
publishErrorMessage: string;
|
|
72
|
+
upgradeUrl: string;
|
|
74
73
|
reactivationUrl: string;
|
|
75
74
|
runtimeEnvironment: string;
|
|
76
75
|
selectedTaxId: number | undefined;
|
|
@@ -78,7 +77,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
78
77
|
standalone: boolean;
|
|
79
78
|
triggerSaveSuccessMessage: boolean;
|
|
80
79
|
triggerSaveEventApiOnPublishModalClose: boolean;
|
|
81
|
-
upgradeUrl: string;
|
|
82
80
|
measurementID: string | undefined;
|
|
83
81
|
isDesignCom: boolean;
|
|
84
82
|
isPrePurchase: boolean;
|
|
@@ -98,7 +96,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
98
96
|
brandPageStatus: string;
|
|
99
97
|
brandPageToken: string | undefined;
|
|
100
98
|
brandPageTitle: string;
|
|
101
|
-
createNewDesignUrl: string;
|
|
102
99
|
customDomain: {
|
|
103
100
|
id: string;
|
|
104
101
|
created: Date;
|
|
@@ -127,10 +124,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
127
124
|
isStripeOnboardingModalVisible: boolean;
|
|
128
125
|
isReactivationModal: boolean;
|
|
129
126
|
isSaving: boolean;
|
|
130
|
-
backUrl: string;
|
|
131
127
|
backButtonLabel: string;
|
|
132
128
|
manageWebsiteDesignsUrl: string;
|
|
133
129
|
publishErrorMessage: string;
|
|
130
|
+
upgradeUrl: string;
|
|
134
131
|
reactivationUrl: string;
|
|
135
132
|
runtimeEnvironment: string;
|
|
136
133
|
selectedTaxId: number | undefined;
|
|
@@ -138,7 +135,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
138
135
|
standalone: boolean;
|
|
139
136
|
triggerSaveSuccessMessage: boolean;
|
|
140
137
|
triggerSaveEventApiOnPublishModalClose: boolean;
|
|
141
|
-
upgradeUrl: string;
|
|
142
138
|
measurementID: string | undefined;
|
|
143
139
|
isDesignCom: boolean;
|
|
144
140
|
isPrePurchase: boolean;
|
|
@@ -359,6 +355,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
359
355
|
showStripeOnboardingModal(): Promise<void>;
|
|
360
356
|
selectInitialCategories(payload: import("../../../shared/template-settings/models").InitialCategories): void;
|
|
361
357
|
}>;
|
|
358
|
+
publishedUrl: import("vue").ComputedRef<string | undefined>;
|
|
362
359
|
}, {
|
|
363
360
|
metaKeywords: never[];
|
|
364
361
|
isInternalDescriptionValid: boolean;
|
|
@@ -373,7 +370,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
373
370
|
editMetaActionPath(): string;
|
|
374
371
|
duplicateActionPath(): string;
|
|
375
372
|
hasSlug(): boolean;
|
|
376
|
-
publishedUrl(): string | undefined;
|
|
377
373
|
titleError(): string | undefined;
|
|
378
374
|
descriptionError(): string | undefined;
|
|
379
375
|
metaKeywordsError(): string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, defineComponent } from 'vue';
|
|
2
2
|
import { validateBrandPageDescription, validateBrandPageTitle, } from '../../utils';
|
|
3
|
-
import { useBrandPageContainerStore, useBrandPageMakerStore, } from '../../stores';
|
|
3
|
+
import { useBrandPageContainerStore, useBrandPageMakerStore, useLocalisedRouteStore, } from '../../stores';
|
|
4
4
|
import { BRANDPAGE_DESCRIPTION_CHARACTER_LIMIT, BRANDPAGE_TITLE_CHARACTER_LIMIT, } from '../../constants';
|
|
5
5
|
import { errorTr } from '../../../composables/useTranslate';
|
|
6
6
|
export default defineComponent({
|
|
@@ -32,13 +32,16 @@ export default defineComponent({
|
|
|
32
32
|
},
|
|
33
33
|
setup() {
|
|
34
34
|
const brandPageMakerStore = useBrandPageMakerStore();
|
|
35
|
+
const localisedRouteStore = useLocalisedRouteStore();
|
|
36
|
+
const brandPageContainerStore = useBrandPageContainerStore();
|
|
35
37
|
return {
|
|
36
|
-
brandPageContainerStore
|
|
38
|
+
brandPageContainerStore,
|
|
37
39
|
isBrandSite: computed(() => brandPageMakerStore.isBrandSite),
|
|
38
40
|
isBrandPageOrIsBrandContact: computed(() => brandPageMakerStore.isBrandPageOrIsBrandContact),
|
|
39
41
|
isBrandPage: computed(() => brandPageMakerStore.isBrandPage),
|
|
40
42
|
isBrandContact: computed(() => brandPageMakerStore.isBrandContact),
|
|
41
43
|
brandPageMakerStore,
|
|
44
|
+
publishedUrl: computed(() => localisedRouteStore.currentPublishedSlugUrl()),
|
|
42
45
|
};
|
|
43
46
|
},
|
|
44
47
|
data() {
|
|
@@ -85,12 +88,6 @@ export default defineComponent({
|
|
|
85
88
|
hasSlug() {
|
|
86
89
|
return Boolean(this.brandPageContainerStore.brandPageSlug);
|
|
87
90
|
},
|
|
88
|
-
publishedUrl() {
|
|
89
|
-
if (!this.hasSlug || !this.brandPageContainerStore.brandPageBaseUrl) {
|
|
90
|
-
return undefined;
|
|
91
|
-
}
|
|
92
|
-
return `${this.brandPageContainerStore.brandPageBaseUrl}/${this.brandPageContainerStore.brandPageSlug}`;
|
|
93
|
-
},
|
|
94
91
|
titleError() {
|
|
95
92
|
return this.myPageTitle?.length &&
|
|
96
93
|
this.myPageTitle.length > BRANDPAGE_TITLE_CHARACTER_LIMIT
|
|
@@ -26,6 +26,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
26
26
|
isCustomDomainEnabled: import("vue").ComputedRef<boolean>;
|
|
27
27
|
isSellDomainNameEnabled: import("vue").ComputedRef<boolean>;
|
|
28
28
|
designDraftToken: import("vue").ComputedRef<string | undefined>;
|
|
29
|
+
brandPageUrl: import("vue").ComputedRef<string>;
|
|
29
30
|
brandPageContainer: import("pinia").Store<"brandPageContainer", import("../../stores").BrandPageContainerState, {
|
|
30
31
|
brandPageContentTypes(): string[];
|
|
31
32
|
isAdmin(): boolean;
|
|
@@ -40,7 +41,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
40
41
|
brandPageStatus: string;
|
|
41
42
|
brandPageToken: string | undefined;
|
|
42
43
|
brandPageTitle: string;
|
|
43
|
-
createNewDesignUrl: string;
|
|
44
44
|
customDomain: {
|
|
45
45
|
id: string;
|
|
46
46
|
created: Date;
|
|
@@ -69,10 +69,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
69
69
|
isStripeOnboardingModalVisible: boolean;
|
|
70
70
|
isReactivationModal: boolean;
|
|
71
71
|
isSaving: boolean;
|
|
72
|
-
backUrl: string;
|
|
73
72
|
backButtonLabel: string;
|
|
74
73
|
manageWebsiteDesignsUrl: string;
|
|
75
74
|
publishErrorMessage: string;
|
|
75
|
+
upgradeUrl: string;
|
|
76
76
|
reactivationUrl: string;
|
|
77
77
|
runtimeEnvironment: string;
|
|
78
78
|
selectedTaxId: number | undefined;
|
|
@@ -80,7 +80,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
80
80
|
standalone: boolean;
|
|
81
81
|
triggerSaveSuccessMessage: boolean;
|
|
82
82
|
triggerSaveEventApiOnPublishModalClose: boolean;
|
|
83
|
-
upgradeUrl: string;
|
|
84
83
|
measurementID: string | undefined;
|
|
85
84
|
isDesignCom: boolean;
|
|
86
85
|
isPrePurchase: boolean;
|
|
@@ -100,7 +99,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
100
99
|
brandPageStatus: string;
|
|
101
100
|
brandPageToken: string | undefined;
|
|
102
101
|
brandPageTitle: string;
|
|
103
|
-
createNewDesignUrl: string;
|
|
104
102
|
customDomain: {
|
|
105
103
|
id: string;
|
|
106
104
|
created: Date;
|
|
@@ -129,10 +127,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
129
127
|
isStripeOnboardingModalVisible: boolean;
|
|
130
128
|
isReactivationModal: boolean;
|
|
131
129
|
isSaving: boolean;
|
|
132
|
-
backUrl: string;
|
|
133
130
|
backButtonLabel: string;
|
|
134
131
|
manageWebsiteDesignsUrl: string;
|
|
135
132
|
publishErrorMessage: string;
|
|
133
|
+
upgradeUrl: string;
|
|
136
134
|
reactivationUrl: string;
|
|
137
135
|
runtimeEnvironment: string;
|
|
138
136
|
selectedTaxId: number | undefined;
|
|
@@ -140,7 +138,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
140
138
|
standalone: boolean;
|
|
141
139
|
triggerSaveSuccessMessage: boolean;
|
|
142
140
|
triggerSaveEventApiOnPublishModalClose: boolean;
|
|
143
|
-
upgradeUrl: string;
|
|
144
141
|
measurementID: string | undefined;
|
|
145
142
|
isDesignCom: boolean;
|
|
146
143
|
isPrePurchase: boolean;
|
|
@@ -357,6 +354,62 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
357
354
|
showStripeOnboardingModal(): Promise<void>;
|
|
358
355
|
selectInitialCategories(payload: import("../../../shared/template-settings/models").InitialCategories): void;
|
|
359
356
|
}>;
|
|
357
|
+
localisedRouteStore: import("pinia").Store<"localisedRoute", import("../../stores").LocalisedRouteState, {
|
|
358
|
+
currentPublishedSlugUrl: (state: {
|
|
359
|
+
baseFabricRenderDomain: string;
|
|
360
|
+
baseBrandPageDomain: string;
|
|
361
|
+
upgradeSubscriptionUrlPath: string;
|
|
362
|
+
reactivationUrlPath: string;
|
|
363
|
+
backToWebsiteManageUrlPath: string;
|
|
364
|
+
manageWebsiteDesignsUrlPath: string;
|
|
365
|
+
createNewDesignUrlPath: string;
|
|
366
|
+
termsOfUseUrlPath: string;
|
|
367
|
+
websiteBuilderUrlPath: string;
|
|
368
|
+
digitalBusinessCardBuilderUrlPath: string;
|
|
369
|
+
linkInBioBuilderUrlPath: string;
|
|
370
|
+
brandPageEditorUrlPath: string;
|
|
371
|
+
brandSiteEditorUrlPath: string;
|
|
372
|
+
brandContactEditorUrlPath: string;
|
|
373
|
+
logoEditUrlPath: string;
|
|
374
|
+
} & import("pinia").PiniaCustomStateProperties<import("../../stores").LocalisedRouteState>) => () => string | undefined;
|
|
375
|
+
currentBrandPageUrl: (state: {
|
|
376
|
+
baseFabricRenderDomain: string;
|
|
377
|
+
baseBrandPageDomain: string;
|
|
378
|
+
upgradeSubscriptionUrlPath: string;
|
|
379
|
+
reactivationUrlPath: string;
|
|
380
|
+
backToWebsiteManageUrlPath: string;
|
|
381
|
+
manageWebsiteDesignsUrlPath: string;
|
|
382
|
+
createNewDesignUrlPath: string;
|
|
383
|
+
termsOfUseUrlPath: string;
|
|
384
|
+
websiteBuilderUrlPath: string;
|
|
385
|
+
digitalBusinessCardBuilderUrlPath: string;
|
|
386
|
+
linkInBioBuilderUrlPath: string;
|
|
387
|
+
brandPageEditorUrlPath: string;
|
|
388
|
+
brandSiteEditorUrlPath: string;
|
|
389
|
+
brandContactEditorUrlPath: string;
|
|
390
|
+
logoEditUrlPath: string;
|
|
391
|
+
} & import("pinia").PiniaCustomStateProperties<import("../../stores").LocalisedRouteState>) => () => string;
|
|
392
|
+
getPostpurchaseByDesignDraftTokenUrl: () => (editorUrlToRedirectTo: string, designDraftToken: string) => string;
|
|
393
|
+
getBuilderLandingPageByTypeUrl: (state: {
|
|
394
|
+
baseFabricRenderDomain: string;
|
|
395
|
+
baseBrandPageDomain: string;
|
|
396
|
+
upgradeSubscriptionUrlPath: string;
|
|
397
|
+
reactivationUrlPath: string;
|
|
398
|
+
backToWebsiteManageUrlPath: string;
|
|
399
|
+
manageWebsiteDesignsUrlPath: string;
|
|
400
|
+
createNewDesignUrlPath: string;
|
|
401
|
+
termsOfUseUrlPath: string;
|
|
402
|
+
websiteBuilderUrlPath: string;
|
|
403
|
+
digitalBusinessCardBuilderUrlPath: string;
|
|
404
|
+
linkInBioBuilderUrlPath: string;
|
|
405
|
+
brandPageEditorUrlPath: string;
|
|
406
|
+
brandSiteEditorUrlPath: string;
|
|
407
|
+
brandContactEditorUrlPath: string;
|
|
408
|
+
logoEditUrlPath: string;
|
|
409
|
+
} & import("pinia").PiniaCustomStateProperties<import("../../stores").LocalisedRouteState>) => (isPreview: boolean, brandPageType: string, isDesignCom: boolean) => string;
|
|
410
|
+
}, {
|
|
411
|
+
initialise(payload: any): void;
|
|
412
|
+
}>;
|
|
360
413
|
}, {
|
|
361
414
|
customDomainName: string | undefined;
|
|
362
415
|
isCustomDomainNameValid: boolean;
|
|
@@ -374,7 +427,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
374
427
|
isCustomDomainActionListVisible: boolean;
|
|
375
428
|
CUSTOM_DOMAIN_INSTRUCTION_DNS_HOST_DISPLAY_TEXT: string;
|
|
376
429
|
}, {
|
|
377
|
-
brandPageUrl(): string;
|
|
378
430
|
customDomainStatusDisplayText(): string | null;
|
|
379
431
|
customDomainStatusDisplayClasses(): string | null;
|
|
380
432
|
customDomainConfigIpAddresses(): string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed } from 'vue';
|
|
2
2
|
import { BRANDCROWD_MANAGED_TRIGGER_ORIGIN, CUSTOM_DOMAIN_INSTRUCTION_DNS_HOST_DISPLAY_TEXT, CUSTOM_DOMAIN_STATUSES, DNS_CONFIGURATION_STATUSES, } from '../../constants';
|
|
3
|
-
import { useBrandPageContainerStore, useBrandPageMakerStore, } from '../../stores';
|
|
3
|
+
import { useBrandPageContainerStore, useBrandPageMakerStore, useLocalisedRouteStore, } from '../../stores';
|
|
4
4
|
import { defaultUSDCurrency } from '../../constants/currency-constants';
|
|
5
5
|
import { validateCustomDomainName } from '../../utils';
|
|
6
6
|
import { seoSettingsTr, commonTr } from '../../../composables/useTranslate';
|
|
@@ -19,13 +19,16 @@ export default defineComponent({
|
|
|
19
19
|
setup() {
|
|
20
20
|
const brandPageContainer = useBrandPageContainerStore();
|
|
21
21
|
const brandPageMakerStore = useBrandPageMakerStore();
|
|
22
|
+
const localisedRouteStore = useLocalisedRouteStore();
|
|
22
23
|
return {
|
|
23
24
|
customDomain: computed(() => brandPageContainer.customDomain),
|
|
24
25
|
isCustomDomainEnabled: computed(() => brandPageContainer.isCustomDomainEnabled),
|
|
25
26
|
isSellDomainNameEnabled: computed(() => brandPageContainer.isSellDomainNameEnabled),
|
|
26
27
|
designDraftToken: computed(() => brandPageContainer.designDraftToken),
|
|
28
|
+
brandPageUrl: computed(() => localisedRouteStore.currentBrandPageUrl()),
|
|
27
29
|
brandPageContainer,
|
|
28
30
|
brandPageMakerStore,
|
|
31
|
+
localisedRouteStore,
|
|
29
32
|
};
|
|
30
33
|
},
|
|
31
34
|
data: () => ({
|
|
@@ -40,11 +43,6 @@ export default defineComponent({
|
|
|
40
43
|
CUSTOM_DOMAIN_INSTRUCTION_DNS_HOST_DISPLAY_TEXT,
|
|
41
44
|
}),
|
|
42
45
|
computed: {
|
|
43
|
-
brandPageUrl() {
|
|
44
|
-
return this.brandPageContainer.brandPageSlug
|
|
45
|
-
? `${this.brandPageContainer.brandPageBaseUrl}/${this.brandPageContainer.brandPageSlug}`
|
|
46
|
-
: '';
|
|
47
|
-
},
|
|
48
46
|
customDomainStatusDisplayText() {
|
|
49
47
|
const status = this.brandPageContainer.customDomain?.status;
|
|
50
48
|
if (!status) {
|
|
@@ -19,7 +19,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
19
19
|
brandPageStatus: string;
|
|
20
20
|
brandPageToken: string | undefined;
|
|
21
21
|
brandPageTitle: string;
|
|
22
|
-
createNewDesignUrl: string;
|
|
23
22
|
customDomain: {
|
|
24
23
|
id: string;
|
|
25
24
|
created: Date;
|
|
@@ -48,10 +47,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
48
47
|
isStripeOnboardingModalVisible: boolean;
|
|
49
48
|
isReactivationModal: boolean;
|
|
50
49
|
isSaving: boolean;
|
|
51
|
-
backUrl: string;
|
|
52
50
|
backButtonLabel: string;
|
|
53
51
|
manageWebsiteDesignsUrl: string;
|
|
54
52
|
publishErrorMessage: string;
|
|
53
|
+
upgradeUrl: string;
|
|
55
54
|
reactivationUrl: string;
|
|
56
55
|
runtimeEnvironment: string;
|
|
57
56
|
selectedTaxId: number | undefined;
|
|
@@ -59,7 +58,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
59
58
|
standalone: boolean;
|
|
60
59
|
triggerSaveSuccessMessage: boolean;
|
|
61
60
|
triggerSaveEventApiOnPublishModalClose: boolean;
|
|
62
|
-
upgradeUrl: string;
|
|
63
61
|
measurementID: string | undefined;
|
|
64
62
|
isDesignCom: boolean;
|
|
65
63
|
isPrePurchase: boolean;
|
|
@@ -79,7 +77,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
79
77
|
brandPageStatus: string;
|
|
80
78
|
brandPageToken: string | undefined;
|
|
81
79
|
brandPageTitle: string;
|
|
82
|
-
createNewDesignUrl: string;
|
|
83
80
|
customDomain: {
|
|
84
81
|
id: string;
|
|
85
82
|
created: Date;
|
|
@@ -108,10 +105,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
108
105
|
isStripeOnboardingModalVisible: boolean;
|
|
109
106
|
isReactivationModal: boolean;
|
|
110
107
|
isSaving: boolean;
|
|
111
|
-
backUrl: string;
|
|
112
108
|
backButtonLabel: string;
|
|
113
109
|
manageWebsiteDesignsUrl: string;
|
|
114
110
|
publishErrorMessage: string;
|
|
111
|
+
upgradeUrl: string;
|
|
115
112
|
reactivationUrl: string;
|
|
116
113
|
runtimeEnvironment: string;
|
|
117
114
|
selectedTaxId: number | undefined;
|
|
@@ -119,7 +116,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
119
116
|
standalone: boolean;
|
|
120
117
|
triggerSaveSuccessMessage: boolean;
|
|
121
118
|
triggerSaveEventApiOnPublishModalClose: boolean;
|
|
122
|
-
upgradeUrl: string;
|
|
123
119
|
measurementID: string | undefined;
|
|
124
120
|
isDesignCom: boolean;
|
|
125
121
|
isPrePurchase: boolean;
|
|
@@ -19,7 +19,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
19
19
|
brandPageStatus: string;
|
|
20
20
|
brandPageToken: string | undefined;
|
|
21
21
|
brandPageTitle: string;
|
|
22
|
-
createNewDesignUrl: string;
|
|
23
22
|
customDomain: {
|
|
24
23
|
id: string;
|
|
25
24
|
created: Date;
|
|
@@ -48,10 +47,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
48
47
|
isStripeOnboardingModalVisible: boolean;
|
|
49
48
|
isReactivationModal: boolean;
|
|
50
49
|
isSaving: boolean;
|
|
51
|
-
backUrl: string;
|
|
52
50
|
backButtonLabel: string;
|
|
53
51
|
manageWebsiteDesignsUrl: string;
|
|
54
52
|
publishErrorMessage: string;
|
|
53
|
+
upgradeUrl: string;
|
|
55
54
|
reactivationUrl: string;
|
|
56
55
|
runtimeEnvironment: string;
|
|
57
56
|
selectedTaxId: number | undefined;
|
|
@@ -59,7 +58,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
59
58
|
standalone: boolean;
|
|
60
59
|
triggerSaveSuccessMessage: boolean;
|
|
61
60
|
triggerSaveEventApiOnPublishModalClose: boolean;
|
|
62
|
-
upgradeUrl: string;
|
|
63
61
|
measurementID: string | undefined;
|
|
64
62
|
isDesignCom: boolean;
|
|
65
63
|
isPrePurchase: boolean;
|
|
@@ -79,7 +77,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
79
77
|
brandPageStatus: string;
|
|
80
78
|
brandPageToken: string | undefined;
|
|
81
79
|
brandPageTitle: string;
|
|
82
|
-
createNewDesignUrl: string;
|
|
83
80
|
customDomain: {
|
|
84
81
|
id: string;
|
|
85
82
|
created: Date;
|
|
@@ -108,10 +105,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
108
105
|
isStripeOnboardingModalVisible: boolean;
|
|
109
106
|
isReactivationModal: boolean;
|
|
110
107
|
isSaving: boolean;
|
|
111
|
-
backUrl: string;
|
|
112
108
|
backButtonLabel: string;
|
|
113
109
|
manageWebsiteDesignsUrl: string;
|
|
114
110
|
publishErrorMessage: string;
|
|
111
|
+
upgradeUrl: string;
|
|
115
112
|
reactivationUrl: string;
|
|
116
113
|
runtimeEnvironment: string;
|
|
117
114
|
selectedTaxId: number | undefined;
|
|
@@ -119,7 +116,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
119
116
|
standalone: boolean;
|
|
120
117
|
triggerSaveSuccessMessage: boolean;
|
|
121
118
|
triggerSaveEventApiOnPublishModalClose: boolean;
|
|
122
|
-
upgradeUrl: string;
|
|
123
119
|
measurementID: string | undefined;
|
|
124
120
|
isDesignCom: boolean;
|
|
125
121
|
isPrePurchase: boolean;
|