@designcrowd/library.brand-page 5.16.0-ast-preview-1 → 5.16.0-ast-bug
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-HPTmEVKC.js → CreatedOnBrandCrowd-de-de-CQaFsHRq.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-sJrp0jlw.js → CreatedOnBrandCrowd-en-us-BqYPoS2-.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-DCgIkMwu.js → CreatedOnBrandCrowd-es-es-BiXPRMaO.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-Tlh31gqe.js → CreatedOnBrandCrowd-fr-ca-CSSwi6HC.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-Tlh31gqe.js → CreatedOnBrandCrowd-fr-fr-CSSwi6HC.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-Dx_KMsev.js → CreatedOnBrandCrowd-pt-br-fgBCi1Yx.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-Dx_KMsev.js → CreatedOnBrandCrowd-pt-pt-fgBCi1Yx.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-BBWxN-1A.js → CreatedOnDcom-de-de-JvCcqsZ3.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-DeGKo6Wf.js → CreatedOnDcom-en-us-BzL4R7K1.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-D4bZ0zJj.js → CreatedOnDcom-es-es-BmxDrOv4.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-OevxDkD0.js → CreatedOnDcom-fr-ca-CQXQARJP.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-CLRY9hW2.js → CreatedOnDcom-fr-fr-C_Q5VmJU.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-C04b_VpV.js → CreatedOnDcom-pt-br-B_6hh63J.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-CGwrDxSK.js → CreatedOnDcom-pt-pt-D4Pyw8eD.js} +1 -1
- package/lib/src/brand-page/utils/migration/migration-07.js +1 -1
- package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.d.ts +0 -3
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +0 -3
- package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.d.ts +0 -3
- package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +0 -22
- package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +1 -243
- package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.js +4 -61
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +1 -9
- package/lib/src/brand-page-maker/stores/route/localised-route-store.d.ts +0 -23
- package/lib/src/brand-page-maker/stores/route/localised-route-store.js +0 -16
- package/lib/src/brand-page-maker/stores/user/user-store.d.ts +0 -4
- package/lib/src/brand-page-maker/stores/user/user-store.js +0 -4
- package/lib/src/clients/models.d.ts +0 -1
- package/lib/src/css/library.brand-page-brandCrowd.min.css +21 -46
- package/lib/src/css/library.brand-page-brandPage.min.css +21 -46
- package/lib/src/css/library.brand-page-designCom.min.css +21 -46
- package/lib/src/css/library.brand-page-preview.min.css +21 -46
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-CpU9mWgA.js → lib-BCRpz2_m.js} +7188 -7275
- package/lib/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.d.ts +0 -3
- package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +0 -3
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +0 -3
- package/lib/src/shared/content-settings/components/page-dropdown-field/PageDropdownField.mixin.d.ts +0 -3
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +0 -3
- package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +0 -3
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +0 -3
- package/lib/src/shared/template-settings/models.d.ts +0 -2
- package/lib/src/shared/template-settings/store/template-settings-store.js +6 -33
- package/package.json +1 -1
- package/src/brand-page/components/media/Shape.vue +1 -1
- package/src/brand-page/components/page/Page.vue +2 -2
- package/src/brand-page/utils/migration/migration-07.ts +4 -6
- package/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.ts +5 -81
- package/src/brand-page-maker/components/template-preview/TemplatePreview.vue +4 -41
- package/src/brand-page-maker/components/template-preview-with-state/TemplatePreviewWithState.vue +6 -4
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +1 -14
- package/src/brand-page-maker/stores/route/localised-route-store.ts +0 -33
- package/src/brand-page-maker/stores/user/user-store.ts +0 -5
- package/src/clients/models.ts +0 -1
- package/src/shared/template-settings/models.ts +0 -2
- package/src/shared/template-settings/store/template-settings-store.ts +13 -50
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BRAND_PAGE_TYPES, DEFAULT_LOGO_HEIGHT, DEFAULT_LOGO_WIDTH, } from '../..';
|
|
1
|
+
import { BRAND_PAGE_TYPES, DEFAULT_LOGO_HEIGHT, DEFAULT_LOGO_WIDTH, PageFooterDesktop, PageFooterMobile, PageHeaderDesktop, PageHeaderMobile, } from '../..';
|
|
2
2
|
import { FabricRenderClient } from '../../../clients/fabric-render-client';
|
|
3
3
|
import { calculateLogoDimensions } from '../logo.util';
|
|
4
4
|
export const migration07 = async (migrationResult, options) => {
|
|
@@ -11,9 +11,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
11
11
|
isAdmin: boolean;
|
|
12
12
|
}): void;
|
|
13
13
|
setBrandPageCommissionPercentage(payload: number): void;
|
|
14
|
-
setUserId(payload: {
|
|
15
|
-
userId: string;
|
|
16
|
-
}): void;
|
|
17
14
|
}>;
|
|
18
15
|
brandPageMakerStore: import("pinia").Store<"brandPageMaker", import("../../stores").BrandPageMakerState, {
|
|
19
16
|
contentErrorCount(): number;
|
|
@@ -197,9 +197,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
197
197
|
isAdmin: boolean;
|
|
198
198
|
}): void;
|
|
199
199
|
setBrandPageCommissionPercentage(payload: number): void;
|
|
200
|
-
setUserId(payload: {
|
|
201
|
-
userId: string;
|
|
202
|
-
}): void;
|
|
203
200
|
}>;
|
|
204
201
|
containerStore: import("pinia").Store<"brandPageContainer", import("../../stores").BrandPageContainerState, {
|
|
205
202
|
brandPageContentTypes(): string[];
|
|
@@ -143,9 +143,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
143
143
|
isAdmin: boolean;
|
|
144
144
|
}): void;
|
|
145
145
|
setBrandPageCommissionPercentage(payload: number): void;
|
|
146
|
-
setUserId(payload: {
|
|
147
|
-
userId: string;
|
|
148
|
-
}): void;
|
|
149
146
|
}>;
|
|
150
147
|
}, {
|
|
151
148
|
imageExtension: string[];
|
|
@@ -375,7 +375,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
375
375
|
currentPublishedSlugUrl: (state: {
|
|
376
376
|
baseFabricRenderDomain: string;
|
|
377
377
|
baseBrandPageDomain: string;
|
|
378
|
-
baseTemplatePreviewDomain: string;
|
|
379
378
|
upgradeSubscriptionUrlPath: string;
|
|
380
379
|
reactivationUrlPath: string;
|
|
381
380
|
backToWebsiteManageUrlPath: string;
|
|
@@ -394,7 +393,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
394
393
|
currentBrandPageUrl: (state: {
|
|
395
394
|
baseFabricRenderDomain: string;
|
|
396
395
|
baseBrandPageDomain: string;
|
|
397
|
-
baseTemplatePreviewDomain: string;
|
|
398
396
|
upgradeSubscriptionUrlPath: string;
|
|
399
397
|
reactivationUrlPath: string;
|
|
400
398
|
backToWebsiteManageUrlPath: string;
|
|
@@ -414,7 +412,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
414
412
|
getBuilderLandingPageByTypeUrl: (state: {
|
|
415
413
|
baseFabricRenderDomain: string;
|
|
416
414
|
baseBrandPageDomain: string;
|
|
417
|
-
baseTemplatePreviewDomain: string;
|
|
418
415
|
upgradeSubscriptionUrlPath: string;
|
|
419
416
|
reactivationUrlPath: string;
|
|
420
417
|
backToWebsiteManageUrlPath: string;
|
|
@@ -431,25 +428,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
431
428
|
localisedBaseUrl: string;
|
|
432
429
|
} & import("pinia").PiniaCustomStateProperties<import("../../stores").LocalisedRouteState>) => (isPreview: boolean, brandPageType: string, isDesignCom: boolean, locale: string) => string;
|
|
433
430
|
getWebsiteBaseUrl: () => (isDesignCom: boolean) => "https://www.design.com" | "https://www.brandcrowd.com";
|
|
434
|
-
getTemplatePreviewUrl: (state: {
|
|
435
|
-
baseFabricRenderDomain: string;
|
|
436
|
-
baseBrandPageDomain: string;
|
|
437
|
-
baseTemplatePreviewDomain: string;
|
|
438
|
-
upgradeSubscriptionUrlPath: string;
|
|
439
|
-
reactivationUrlPath: string;
|
|
440
|
-
backToWebsiteManageUrlPath: string;
|
|
441
|
-
manageWebsiteDesignsUrlPath: string;
|
|
442
|
-
createNewDesignUrlPath: string;
|
|
443
|
-
termsOfUseUrlPath: string;
|
|
444
|
-
websiteBuilderUrlPath: string;
|
|
445
|
-
digitalBusinessCardBuilderUrlPath: string;
|
|
446
|
-
linkInBioBuilderUrlPath: string;
|
|
447
|
-
brandPageEditorUrlPath: string;
|
|
448
|
-
brandSiteEditorUrlPath: string;
|
|
449
|
-
brandContactEditorUrlPath: string;
|
|
450
|
-
logoEditUrlPath: string;
|
|
451
|
-
localisedBaseUrl: string;
|
|
452
|
-
} & import("pinia").PiniaCustomStateProperties<import("../../stores").LocalisedRouteState>) => (templateId: string, logoDraftToken: string, deviceType: "desktop" | "mobile", contentKey?: string | undefined, userToken?: string | undefined, runtimeEnvironment?: string | undefined, isAiTemplate?: boolean | undefined) => string;
|
|
453
431
|
}, {
|
|
454
432
|
initialise(payload: any): void;
|
|
455
433
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="types/lodash-shims" />
|
|
2
2
|
import type { PropType } from 'vue';
|
|
3
3
|
import type { BrandPageContext, BrandPageViewModel, LogoImageModel, LogoTemplateImageModel, LogoTheme, UserPersonalisation } from '../../../brand-page';
|
|
4
|
-
import {
|
|
4
|
+
import type { TemplateSettingsTemplate } from '../../../shared/template-settings/models';
|
|
5
5
|
import type { DebounceHandle } from 'lodash.debounce';
|
|
6
6
|
interface TemplatePreviewData {
|
|
7
7
|
containerStyle: BrandPageCssStyle;
|
|
@@ -15,8 +15,6 @@ interface TemplatePreviewData {
|
|
|
15
15
|
renderHeight: number;
|
|
16
16
|
renderWidth: number;
|
|
17
17
|
rootStyles: BrandPageCssStyle;
|
|
18
|
-
imageLoadError: boolean;
|
|
19
|
-
imageLoading: boolean;
|
|
20
18
|
}
|
|
21
19
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
22
20
|
logoImage: {
|
|
@@ -63,242 +61,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
63
61
|
};
|
|
64
62
|
}>, {
|
|
65
63
|
selectedTemplateId: import("vue").ComputedRef<string | false>;
|
|
66
|
-
isPrePurchase: import("vue").ComputedRef<boolean>;
|
|
67
|
-
runtimeEnvironment: import("vue").ComputedRef<string>;
|
|
68
|
-
isAdmin: import("vue").ComputedRef<boolean>;
|
|
69
|
-
userToken: import("vue").ComputedRef<string | undefined>;
|
|
70
|
-
isBrandSite: import("vue").ComputedRef<boolean>;
|
|
71
|
-
selectedTab: import("vue").ComputedRef<string>;
|
|
72
|
-
brandPageMakerUserStore: import("pinia").Store<"brandPageMakerUser", import("../../stores").UserState, {}, {
|
|
73
|
-
setEmailAddress(payload: string): void;
|
|
74
|
-
setFeatures(payload: Partial<import("../../../constants/ui").UIUserFeatures>): void;
|
|
75
|
-
setHasBrandPagePremiumSubscription(payload: boolean): void;
|
|
76
|
-
setIsAdmin(payload: {
|
|
77
|
-
isAdmin: boolean;
|
|
78
|
-
}): void;
|
|
79
|
-
setBrandPageCommissionPercentage(payload: number): void;
|
|
80
|
-
setUserId(payload: {
|
|
81
|
-
userId: string;
|
|
82
|
-
}): void;
|
|
83
|
-
}>;
|
|
84
|
-
brandPageContainerStore: import("pinia").Store<"brandPageContainer", import("../../stores").BrandPageContainerState, {
|
|
85
|
-
brandPageContentTypes(): string[];
|
|
86
|
-
isAdmin(): boolean;
|
|
87
|
-
isPublished: (state: {
|
|
88
|
-
availableTaxes: any[];
|
|
89
|
-
brandPageBaseUrl: string;
|
|
90
|
-
baseFabricRenderUrl: string;
|
|
91
|
-
brandPageDescription: string;
|
|
92
|
-
brandPageDisplayName: string;
|
|
93
|
-
sensitiveContent: number;
|
|
94
|
-
brandPageSlug: string;
|
|
95
|
-
brandPageStatus: string;
|
|
96
|
-
brandPageToken: string | undefined;
|
|
97
|
-
brandPageTitle: string;
|
|
98
|
-
customDomain: {
|
|
99
|
-
id: string;
|
|
100
|
-
created: Date;
|
|
101
|
-
updated: Date;
|
|
102
|
-
brandPageToken: string;
|
|
103
|
-
domainName: string;
|
|
104
|
-
status: "active" | "pending" | "failed" | "renewFailed" | "deleted";
|
|
105
|
-
dnsConfigurationStatus: "request_expired" | "missing_expected_dns_records" | "invalid_multiple_dns_records_exist" | "unexpected_aaaa_record" | "completed";
|
|
106
|
-
triggerOrigin?: string | undefined;
|
|
107
|
-
} | null;
|
|
108
|
-
createCustomDomainErrorMessage: string | null;
|
|
109
|
-
customDomainConfig?: {
|
|
110
|
-
dns: {
|
|
111
|
-
ipAddresses: string[];
|
|
112
|
-
};
|
|
113
|
-
} | undefined;
|
|
114
|
-
designDraftToken?: string | undefined;
|
|
115
|
-
designTemplateToken: string;
|
|
116
|
-
isCustomDomainEnabled: boolean;
|
|
117
|
-
isBrandPageSlugEditMode: boolean;
|
|
118
|
-
isPublishModalVisible: boolean;
|
|
119
|
-
isUpgradeModalVisible: boolean;
|
|
120
|
-
isPublishing: boolean;
|
|
121
|
-
isProduction: boolean;
|
|
122
|
-
isSellDomainNameEnabled: boolean;
|
|
123
|
-
isStripeOnboardingModalVisible: boolean;
|
|
124
|
-
isReactivationModal: boolean;
|
|
125
|
-
isPublishUpgradeModal: boolean;
|
|
126
|
-
isSaving: boolean;
|
|
127
|
-
backButtonLabel: string;
|
|
128
|
-
manageWebsiteDesignsUrl: string;
|
|
129
|
-
publishErrorMessage: string;
|
|
130
|
-
upgradeUrl: string;
|
|
131
|
-
reactivationUrl: string;
|
|
132
|
-
runtimeEnvironment: string;
|
|
133
|
-
selectedTaxId: number | undefined;
|
|
134
|
-
slug: string;
|
|
135
|
-
standalone: boolean;
|
|
136
|
-
triggerSaveSuccessMessage: boolean;
|
|
137
|
-
isDesignCom: boolean;
|
|
138
|
-
isPrePurchase: boolean;
|
|
139
|
-
makerFonts: any[];
|
|
140
|
-
eventButtonLocation?: string | undefined;
|
|
141
|
-
websiteUpsellModalViewModel?: any;
|
|
142
|
-
showPublishOptionModal?: boolean | undefined;
|
|
143
|
-
abTests: Record<string, string>;
|
|
144
|
-
isSubsequentPublish: boolean;
|
|
145
|
-
} & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
|
|
146
|
-
isUserDraft: (state: {
|
|
147
|
-
availableTaxes: any[];
|
|
148
|
-
brandPageBaseUrl: string;
|
|
149
|
-
baseFabricRenderUrl: string;
|
|
150
|
-
brandPageDescription: string;
|
|
151
|
-
brandPageDisplayName: string;
|
|
152
|
-
sensitiveContent: number;
|
|
153
|
-
brandPageSlug: string;
|
|
154
|
-
brandPageStatus: string;
|
|
155
|
-
brandPageToken: string | undefined;
|
|
156
|
-
brandPageTitle: string;
|
|
157
|
-
customDomain: {
|
|
158
|
-
id: string;
|
|
159
|
-
created: Date;
|
|
160
|
-
updated: Date;
|
|
161
|
-
brandPageToken: string;
|
|
162
|
-
domainName: string;
|
|
163
|
-
status: "active" | "pending" | "failed" | "renewFailed" | "deleted";
|
|
164
|
-
dnsConfigurationStatus: "request_expired" | "missing_expected_dns_records" | "invalid_multiple_dns_records_exist" | "unexpected_aaaa_record" | "completed";
|
|
165
|
-
triggerOrigin?: string | undefined;
|
|
166
|
-
} | null;
|
|
167
|
-
createCustomDomainErrorMessage: string | null;
|
|
168
|
-
customDomainConfig?: {
|
|
169
|
-
dns: {
|
|
170
|
-
ipAddresses: string[];
|
|
171
|
-
};
|
|
172
|
-
} | undefined;
|
|
173
|
-
designDraftToken?: string | undefined;
|
|
174
|
-
designTemplateToken: string;
|
|
175
|
-
isCustomDomainEnabled: boolean;
|
|
176
|
-
isBrandPageSlugEditMode: boolean;
|
|
177
|
-
isPublishModalVisible: boolean;
|
|
178
|
-
isUpgradeModalVisible: boolean;
|
|
179
|
-
isPublishing: boolean;
|
|
180
|
-
isProduction: boolean;
|
|
181
|
-
isSellDomainNameEnabled: boolean;
|
|
182
|
-
isStripeOnboardingModalVisible: boolean;
|
|
183
|
-
isReactivationModal: boolean;
|
|
184
|
-
isPublishUpgradeModal: boolean;
|
|
185
|
-
isSaving: boolean;
|
|
186
|
-
backButtonLabel: string;
|
|
187
|
-
manageWebsiteDesignsUrl: string;
|
|
188
|
-
publishErrorMessage: string;
|
|
189
|
-
upgradeUrl: string;
|
|
190
|
-
reactivationUrl: string;
|
|
191
|
-
runtimeEnvironment: string;
|
|
192
|
-
selectedTaxId: number | undefined;
|
|
193
|
-
slug: string;
|
|
194
|
-
standalone: boolean;
|
|
195
|
-
triggerSaveSuccessMessage: boolean;
|
|
196
|
-
isDesignCom: boolean;
|
|
197
|
-
isPrePurchase: boolean;
|
|
198
|
-
makerFonts: any[];
|
|
199
|
-
eventButtonLocation?: string | undefined;
|
|
200
|
-
websiteUpsellModalViewModel?: any;
|
|
201
|
-
showPublishOptionModal?: boolean | undefined;
|
|
202
|
-
abTests: Record<string, string>;
|
|
203
|
-
isSubsequentPublish: boolean;
|
|
204
|
-
} & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
|
|
205
|
-
}, {
|
|
206
|
-
initialise(payload: import("../../stores/brandpage-container").InitialisePayload): void;
|
|
207
|
-
setDesignTemplateToken(payload: any): void;
|
|
208
|
-
setDesignDraftToken(payload: any): void;
|
|
209
|
-
setIsBrandPageSlugEditMode(payload: any): void;
|
|
210
|
-
setIsPublishing(payload: any): void;
|
|
211
|
-
setIsPublishModalVisible(payload: any): void;
|
|
212
|
-
setIsPublishUpgradeModal(payload: any): void;
|
|
213
|
-
setIsSaving(payload: any): void;
|
|
214
|
-
setIsUpgradeModalVisible(payload: any): void;
|
|
215
|
-
setPublishErrorMessage(payload: any): void;
|
|
216
|
-
setTriggerSaveSuccessMessage(payload: any): void;
|
|
217
|
-
setSlug(payload: any): void;
|
|
218
|
-
updateBrandPageMeta(payload: any): void;
|
|
219
|
-
updateBrandPageSensitiveContent(payload: any): void;
|
|
220
|
-
setLogoDraftToken(payload: {
|
|
221
|
-
logoDraftToken: string;
|
|
222
|
-
}): void;
|
|
223
|
-
setBackUrl(payload: any): void;
|
|
224
|
-
setIsStripeOnboardingModalVisible(payload: any): void;
|
|
225
|
-
setSelectedTaxId(payload: any): void;
|
|
226
|
-
setBrandPageCustomDomainConfig({ customDomainConfig }: {
|
|
227
|
-
customDomainConfig: any;
|
|
228
|
-
}): void;
|
|
229
|
-
setBrandPageCustomDomain(payload: {
|
|
230
|
-
customDomain: import("../../models").CustomDomainModel | null;
|
|
231
|
-
}): void;
|
|
232
|
-
setCreateCustomDomainErrorMessage(payload: any): void;
|
|
233
|
-
setBrandPageIsCustomDomainEnabled(payload: any): void;
|
|
234
|
-
setIsSubsequentPublish(payload: any): void;
|
|
235
|
-
clearPublishErrorMessage(): void;
|
|
236
|
-
closePublishModal(payload?: {
|
|
237
|
-
skipShowNextNotificationMessage?: boolean | undefined;
|
|
238
|
-
}): Promise<void>;
|
|
239
|
-
closeUpgradeModal(): Promise<void>;
|
|
240
|
-
endBrandPageSlugEditMode(): void;
|
|
241
|
-
publishBrandPage({ shouldPublish, slug }: {
|
|
242
|
-
shouldPublish: any;
|
|
243
|
-
slug: any;
|
|
244
|
-
}): Promise<false | {
|
|
245
|
-
success: boolean;
|
|
246
|
-
websiteUpsellModalViewModel: any;
|
|
247
|
-
}>;
|
|
248
|
-
publishBrandPageWithCustomDomainAsync({ shouldPublish, slug, domain, isPurchasedDomain, }: {
|
|
249
|
-
shouldPublish: any;
|
|
250
|
-
slug: any;
|
|
251
|
-
domain: any;
|
|
252
|
-
isPurchasedDomain: any;
|
|
253
|
-
}): Promise<boolean | undefined>;
|
|
254
|
-
checkWebsiteSlugAsync(slug: string): Promise<import("../../models/api.model").WebsiteSlugCheckResponse | null>;
|
|
255
|
-
redirectToLogoEditPage(logoEditUrl: string, locale: string): Promise<void>;
|
|
256
|
-
redirectToCreateNewDesignPage(): Promise<void>;
|
|
257
|
-
redirectToStripeOnboarding(): Promise<void>;
|
|
258
|
-
exportDesignAsync(): Promise<any>;
|
|
259
|
-
saveBrandPage(payload?: {
|
|
260
|
-
isPublish?: boolean | undefined;
|
|
261
|
-
eventButtonLocation?: string | undefined;
|
|
262
|
-
}): Promise<false | {
|
|
263
|
-
saved: boolean;
|
|
264
|
-
canPublish: boolean;
|
|
265
|
-
websiteUpsellModalViewModel: any;
|
|
266
|
-
}>;
|
|
267
|
-
saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
|
|
268
|
-
saveTemplate(): Promise<void>;
|
|
269
|
-
setBrandPageStatus(status: any): Promise<void>;
|
|
270
|
-
showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any, isSubsequentPublish?: boolean | undefined): void;
|
|
271
|
-
showBrandPageSlugEditModal(eventButtonLocation: string): Promise<void>;
|
|
272
|
-
showUpgradeModalAndSaveAsync(): Promise<void>;
|
|
273
|
-
showStripeOnboardingModal(): void;
|
|
274
|
-
closeStripeOnboardingModal(): void;
|
|
275
|
-
showSaveSuccessMessage(): Promise<void>;
|
|
276
|
-
startBrandPageSlugEditMode(): void;
|
|
277
|
-
triggerLockedContentClickedEvent(contentType: string): Promise<void>;
|
|
278
|
-
unpublishBrandPage(): Promise<void>;
|
|
279
|
-
updateBrandPageSettings({ description, title }: {
|
|
280
|
-
description: any;
|
|
281
|
-
title: any;
|
|
282
|
-
}): Promise<void>;
|
|
283
|
-
updateSensitiveContent({ sensitiveContent }: {
|
|
284
|
-
sensitiveContent: any;
|
|
285
|
-
}): Promise<void>;
|
|
286
|
-
createBrandPageCustomDomain({ domainName }: {
|
|
287
|
-
domainName: any;
|
|
288
|
-
}): Promise<false | undefined>;
|
|
289
|
-
createBrandPageWithPurchasedDomain({ domainName }: {
|
|
290
|
-
domainName: any;
|
|
291
|
-
}): Promise<false | undefined>;
|
|
292
|
-
deleteBrandPageCustomDomain({ designDraftToken, customDomainId }: {
|
|
293
|
-
designDraftToken: any;
|
|
294
|
-
customDomainId: any;
|
|
295
|
-
}): Promise<void>;
|
|
296
|
-
refreshBrandPageCustomDomainConfig(): Promise<void>;
|
|
297
|
-
refreshBrandPageCustomDomain(): Promise<void>;
|
|
298
|
-
updateBrandPageIsCustomDomainEnabled({ isCustomDomainEnabled }: {
|
|
299
|
-
isCustomDomainEnabled: any;
|
|
300
|
-
}): Promise<void>;
|
|
301
|
-
}>;
|
|
302
64
|
brandPageMakerStore: import("pinia").Store<"brandPageMaker", import("../../stores").BrandPageMakerState, {
|
|
303
65
|
contentErrorCount(): number;
|
|
304
66
|
brandPageBaseUrl(): string;
|
|
@@ -432,14 +194,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
432
194
|
innerContainerStyle(): BrandPageCssStyle;
|
|
433
195
|
isPersonalisable(): boolean;
|
|
434
196
|
cssVariablesStyle(): Record<string, string>;
|
|
435
|
-
previewImageUrl(): string;
|
|
436
197
|
}, {
|
|
437
198
|
onOverlayClicked(): void;
|
|
438
199
|
onResize(): void;
|
|
439
200
|
onSetPreviewStyles(styles: BrandPageCssStyle): void;
|
|
440
|
-
onImageError(): void;
|
|
441
|
-
onImageLoad(): void;
|
|
442
|
-
regeneratePreview(): void;
|
|
443
201
|
updateViewModel(forceUpdate?: boolean): Promise<void>;
|
|
444
202
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "template-selected"[], "template-selected", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
445
203
|
logoImage: {
|
|
@@ -2,11 +2,9 @@ import { computed, defineComponent } from 'vue';
|
|
|
2
2
|
import { BRAND_PAGE_TYPES, MEDIA_SIZES, VIEWPORTS } from '../../../brand-page';
|
|
3
3
|
import { applyLogoThemeToBrandPageModel, applyUserPersonalisationToBrandPageModelAsync, getBrandPageViewModelFromBrandPageModel, } from '../../../brand-page/utils';
|
|
4
4
|
import { STYLE_THEME_KEYS } from '../../../brand-page/constants';
|
|
5
|
-
import { TEMPLATE_TABS, } from '../../../shared/template-settings/models';
|
|
6
5
|
import debounce from 'lodash.debounce';
|
|
7
6
|
import { MOBILE_HEIGHT, MOBILE_WIDTH } from '../../constants';
|
|
8
|
-
import {
|
|
9
|
-
import { useUiTemplateSettingsStore } from '../../../shared/template-settings/store';
|
|
7
|
+
import { useBrandPageMakerStore } from '../../stores';
|
|
10
8
|
import { applyLogoImageBase64UrlToBrandPageTemplateModel, applyLogoImageToBrandPageTemplateModel, applyLogoTemplateImageToBrandPageTemplateModel, } from '../../../brand-page/utils/logo.util';
|
|
11
9
|
import { useVideoStore } from '../../../lib';
|
|
12
10
|
const DEBOUNCE_IN_MS = 250;
|
|
@@ -14,19 +12,8 @@ export default defineComponent({
|
|
|
14
12
|
emits: ['template-selected'],
|
|
15
13
|
setup() {
|
|
16
14
|
const brandPageMakerStore = useBrandPageMakerStore();
|
|
17
|
-
const brandPageContainerStore = useBrandPageContainerStore();
|
|
18
|
-
const brandPageMakerUserStore = useBrandPageMakerUserStore();
|
|
19
|
-
const templateSettingsStore = useUiTemplateSettingsStore();
|
|
20
15
|
return {
|
|
21
16
|
selectedTemplateId: computed(() => brandPageMakerStore.selectedTemplateId),
|
|
22
|
-
isPrePurchase: computed(() => brandPageContainerStore.isPrePurchase),
|
|
23
|
-
runtimeEnvironment: computed(() => brandPageContainerStore.runtimeEnvironment),
|
|
24
|
-
isAdmin: computed(() => brandPageMakerUserStore.isAdmin),
|
|
25
|
-
userToken: computed(() => brandPageMakerUserStore.userId),
|
|
26
|
-
isBrandSite: computed(() => brandPageMakerStore.brandPageType === BRAND_PAGE_TYPES.brandSite),
|
|
27
|
-
selectedTab: computed(() => templateSettingsStore.selectedTab.key),
|
|
28
|
-
brandPageMakerUserStore,
|
|
29
|
-
brandPageContainerStore,
|
|
30
17
|
brandPageMakerStore,
|
|
31
18
|
};
|
|
32
19
|
},
|
|
@@ -86,8 +73,6 @@ export default defineComponent({
|
|
|
86
73
|
renderWidth: 400,
|
|
87
74
|
rootStyles: {},
|
|
88
75
|
viewModel: undefined,
|
|
89
|
-
imageLoadError: false,
|
|
90
|
-
imageLoading: true,
|
|
91
76
|
};
|
|
92
77
|
return data;
|
|
93
78
|
},
|
|
@@ -162,41 +147,16 @@ export default defineComponent({
|
|
|
162
147
|
});
|
|
163
148
|
return cssVariables;
|
|
164
149
|
},
|
|
165
|
-
previewImageUrl() {
|
|
166
|
-
let previewImageUrl = this.template.previewImageUrl;
|
|
167
|
-
if (this.selectedTab === TEMPLATE_TABS.AI &&
|
|
168
|
-
this.contentKey &&
|
|
169
|
-
this.userToken) {
|
|
170
|
-
previewImageUrl += `&contentKey=${this.contentKey}&userToken=${this.userToken}`;
|
|
171
|
-
}
|
|
172
|
-
return previewImageUrl || '';
|
|
173
|
-
},
|
|
174
150
|
},
|
|
175
151
|
watch: {
|
|
176
|
-
template() {
|
|
177
|
-
if (this.isAdmin || this.isPrePurchase) {
|
|
178
|
-
this.updateViewModel();
|
|
179
|
-
}
|
|
180
|
-
else {
|
|
181
|
-
// Reset loading state when template changes for image-based previews
|
|
182
|
-
this.imageLoading = true;
|
|
183
|
-
this.imageLoadError = false;
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
152
|
logoTheme: {
|
|
187
153
|
handler() {
|
|
188
|
-
|
|
189
|
-
this.updateViewModel();
|
|
190
|
-
}
|
|
154
|
+
this.updateViewModel();
|
|
191
155
|
},
|
|
192
156
|
deep: true,
|
|
193
157
|
},
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
if (!this.isAdmin && !this.isPrePurchase) {
|
|
197
|
-
this.imageLoading = true;
|
|
198
|
-
this.imageLoadError = false;
|
|
199
|
-
}
|
|
158
|
+
template() {
|
|
159
|
+
this.updateViewModel();
|
|
200
160
|
},
|
|
201
161
|
},
|
|
202
162
|
created() {
|
|
@@ -237,24 +197,7 @@ export default defineComponent({
|
|
|
237
197
|
onSetPreviewStyles(styles) {
|
|
238
198
|
this.rootStyles = styles;
|
|
239
199
|
},
|
|
240
|
-
onImageError() {
|
|
241
|
-
this.imageLoadError = true;
|
|
242
|
-
this.imageLoading = false;
|
|
243
|
-
},
|
|
244
|
-
onImageLoad() {
|
|
245
|
-
this.imageLoadError = false;
|
|
246
|
-
this.imageLoading = false;
|
|
247
|
-
},
|
|
248
|
-
regeneratePreview() {
|
|
249
|
-
this.imageLoadError = false;
|
|
250
|
-
this.imageLoading = true;
|
|
251
|
-
this.$forceUpdate();
|
|
252
|
-
},
|
|
253
200
|
async updateViewModel(forceUpdate = true) {
|
|
254
|
-
// Only update view model for admin or pre-purchase mode
|
|
255
|
-
if (!this.isAdmin && !this.isPrePurchase) {
|
|
256
|
-
return;
|
|
257
|
-
}
|
|
258
201
|
const videoStore = useVideoStore();
|
|
259
202
|
let model = this.template.brandPageModel;
|
|
260
203
|
if (this.logoImageBase64Url) {
|
|
@@ -178,21 +178,13 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
|
|
|
178
178
|
if (!this.selectedTemplateId) {
|
|
179
179
|
return;
|
|
180
180
|
}
|
|
181
|
-
|
|
181
|
+
const template = templateSettingsStore.getTemplateByTemplateId(this.selectedTemplateId);
|
|
182
182
|
if (!template) {
|
|
183
183
|
if (process.env.NODE_ENV !== 'production') {
|
|
184
184
|
throw new Error('template should not be falsy');
|
|
185
185
|
}
|
|
186
186
|
return;
|
|
187
187
|
}
|
|
188
|
-
// If template doesn't have brandPageModel (post-purchase mode), fetch it
|
|
189
|
-
if (!template.brandPageModel) {
|
|
190
|
-
template = await templateSettingsStore.getCachedTemplateByTokenAsync(this.selectedTemplateId);
|
|
191
|
-
}
|
|
192
|
-
if (!template?.brandPageModel) {
|
|
193
|
-
console.error('Failed to fetch template brandPageModel');
|
|
194
|
-
return;
|
|
195
|
-
}
|
|
196
188
|
this.isApplyingTemplate = true;
|
|
197
189
|
let brandPageModel = cloneDeep(template.brandPageModel);
|
|
198
190
|
// Apply selected logo image to logo contents
|