@designcrowd/library.brand-page 5.16.38 → 5.16.39-ast-save-contact-2
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-CM11v_Oz.js → CreatedOnBrandCrowd-de-de-B2A0Pukr.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-C9swNo_b.js → CreatedOnBrandCrowd-en-us-DRxQuzoa.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-DiyHRG5i.js → CreatedOnBrandCrowd-es-es-KAqcyJhk.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-CQHStWHV.js → CreatedOnBrandCrowd-fr-ca-DYCCDmtk.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-CQHStWHV.js → CreatedOnBrandCrowd-fr-fr-DYCCDmtk.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-CxtJg7-e.js → CreatedOnBrandCrowd-pt-br-BiGEWSpn.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-CxtJg7-e.js → CreatedOnBrandCrowd-pt-pt-BiGEWSpn.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-D3j64Kcb.js → CreatedOnDcom-de-de-D5A0p-oS.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-DV7MDMEL.js → CreatedOnDcom-en-us-CY-Yes51.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-BgLu8EEM.js → CreatedOnDcom-es-es-D3YigA2m.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-CHTihJaY.js → CreatedOnDcom-fr-ca-Cmj7HGMC.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-C14VlbrV.js → CreatedOnDcom-fr-fr-C4eyMXUp.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-Chfwx4Tw.js → CreatedOnDcom-pt-br-BrIGgCPA.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-BVNNQ5uv.js → CreatedOnDcom-pt-pt-lTRuWTrJ.js} +1 -1
- package/lib/src/brand-page/components/page/Page.mixin.d.ts +1 -0
- package/lib/src/brand-page/components/page/Page.mixin.js +5 -1
- package/lib/src/brand-page/components/page/Page.stories.js +4 -0
- package/lib/src/brand-page/models/index.d.ts +5 -0
- package/lib/src/brand-page/models/index.js +2 -0
- package/lib/src/brand-page/utils/view-model.util.js +6 -0
- package/lib/src/brand-page/view-models.d.ts +2 -1
- package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.d.ts +6 -0
- 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/BrandPageMakerTemplateSettings.mixin.d.ts +6 -0
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +8 -1
- package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.d.ts +6 -0
- package/lib/src/brand-page-maker/components/preview/Preview.stories.js +4 -0
- package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.d.ts +1 -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 +1 -1
- package/lib/src/brand-page-maker/components/social-share/SocialShare.mixin.d.ts +6 -0
- package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +7 -1
- package/lib/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/composables/useEventTracker.d.ts +3 -0
- package/lib/src/brand-page-maker/composables/useEventTracker.js +3 -0
- package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.d.ts +1 -1
- package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.js +2 -2
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.d.ts +8 -1
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +18 -2
- package/lib/src/bundled-translations-CdtzrOW9.js +169 -0
- package/lib/src/bundled-translations.de-DE-CFCkrWOb.js +169 -0
- package/lib/src/bundled-translations.es-ES-C7GbD8Pr.js +169 -0
- package/lib/src/bundled-translations.fr-CA-CXL2f7FN.js +169 -0
- package/lib/src/bundled-translations.fr-FR-Cb9ASB78.js +169 -0
- package/lib/src/bundled-translations.pt-BR-dvMgeOMI.js +169 -0
- package/lib/src/{bundled-translations.pt-PT-DDsgh_7r.js → bundled-translations.pt-PT-Dzgiaqkn.js} +112 -110
- package/lib/src/bundles/bundled-translations.de-DE.json +8 -0
- package/lib/src/bundles/bundled-translations.es-ES.json +8 -0
- package/lib/src/bundles/bundled-translations.fr-CA.json +8 -0
- package/lib/src/bundles/bundled-translations.fr-FR.json +8 -0
- package/lib/src/bundles/bundled-translations.json +8 -0
- package/lib/src/bundles/bundled-translations.pt-BR.json +8 -0
- package/lib/src/bundles/bundled-translations.pt-PT.json +8 -0
- package/lib/src/composables/useTranslate.d.ts +2 -1
- package/lib/src/composables/useTranslate.js +2 -1
- package/lib/src/css/library.brand-page-brandCrowd.min.css +39 -25
- package/lib/src/css/library.brand-page-brandPage.min.css +39 -25
- package/lib/src/css/library.brand-page-designCom.min.css +39 -25
- package/lib/src/css/library.brand-page-preview.min.css +39 -25
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-DG4GuHPT.js → lib-CA3o3_Kk.js} +17763 -17461
- package/lib/src/shared/color-picker/components/ColorPicker.mixin.js +11 -0
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +6 -0
- package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +6 -0
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +6 -0
- package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +1 -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 +1 -1
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +7 -1
- package/package.json +1 -1
- package/src/brand-page/components/page/Page.mixin.ts +5 -1
- package/src/brand-page/components/page/Page.stories.ts +4 -0
- package/src/brand-page/components/page/Page.vue +2 -1
- package/src/brand-page/components/save-contact/SaveContactWidget.vue +2 -1
- package/src/brand-page/models/index.ts +9 -0
- package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +3 -0
- package/src/brand-page/utils/__snapshots__/migration2.util.test.ts.snap +1 -0
- package/src/brand-page/utils/__snapshots__/model.util.test.ts.snap +2 -0
- package/src/brand-page/utils/view-model.util.ts +6 -0
- package/src/brand-page/view-models.ts +2 -0
- package/src/brand-page-maker/components/brandpage-settings/BrandPageSettings.vue +15 -1
- package/src/brand-page-maker/components/preview/Preview.stories.ts +4 -0
- package/src/brand-page-maker/components/save-contact/SaveContact.vue +163 -0
- package/src/brand-page-maker/components/save-contact/i18n/save-settings.de-DE.json +10 -0
- package/src/brand-page-maker/components/save-contact/i18n/save-settings.es-ES.json +10 -0
- package/src/brand-page-maker/components/save-contact/i18n/save-settings.fr-CA.json +10 -0
- package/src/brand-page-maker/components/save-contact/i18n/save-settings.fr-FR.json +10 -0
- package/src/brand-page-maker/components/save-contact/i18n/save-settings.json +10 -0
- package/src/brand-page-maker/components/save-contact/i18n/save-settings.pt-BR.json +10 -0
- package/src/brand-page-maker/components/save-contact/i18n/save-settings.pt-PT.json +10 -0
- package/src/brand-page-maker/composables/useEventTracker.ts +5 -0
- package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.ts +2 -1
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +25 -2
- package/src/bundles/bundled-translations.de-DE.json +8 -0
- package/src/bundles/bundled-translations.es-ES.json +8 -0
- package/src/bundles/bundled-translations.fr-CA.json +8 -0
- package/src/bundles/bundled-translations.fr-FR.json +8 -0
- package/src/bundles/bundled-translations.json +8 -0
- package/src/bundles/bundled-translations.pt-BR.json +8 -0
- package/src/bundles/bundled-translations.pt-PT.json +8 -0
- package/src/composables/useTranslate.ts +3 -0
- package/src/shared/color-picker/components/ColorPicker.mixin.ts +14 -0
- package/src/shared/content-settings/components/color-field/ColorField.vue +18 -1
- package/lib/src/bundled-translations-EqxiRIwA.js +0 -167
- package/lib/src/bundled-translations.de-DE-BKqVO-q2.js +0 -167
- package/lib/src/bundled-translations.es-ES-DwKrkWcX.js +0 -167
- package/lib/src/bundled-translations.fr-CA-BZtZzL79.js +0 -167
- package/lib/src/bundled-translations.fr-FR-NgI1lWQl.js +0 -167
- package/lib/src/bundled-translations.pt-BR-DuqcSme7.js +0 -167
|
@@ -75,6 +75,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
75
75
|
slug(): string;
|
|
76
76
|
shouldShowSaveContactWidget(): boolean;
|
|
77
77
|
isPremiumSubscription(): boolean;
|
|
78
|
+
shouldShowPopupBranding(): boolean;
|
|
78
79
|
}, {
|
|
79
80
|
openSideMenu(): void;
|
|
80
81
|
onLogoClick(tabName: string): void;
|
|
@@ -268,7 +268,8 @@ export default defineComponent({
|
|
|
268
268
|
try {
|
|
269
269
|
if (this.context.isPreview ||
|
|
270
270
|
this.context.options?.enableSaveContact === false ||
|
|
271
|
-
!this.context.isBrandContact
|
|
271
|
+
!this.context.isBrandContact ||
|
|
272
|
+
this.viewModel.saveContactSettings.isSavingEnabled === false) {
|
|
272
273
|
return false;
|
|
273
274
|
}
|
|
274
275
|
const brandPageData = { pages: this.context?.pages || [] };
|
|
@@ -282,6 +283,9 @@ export default defineComponent({
|
|
|
282
283
|
isPremiumSubscription() {
|
|
283
284
|
return !this.showBrandCrowdLogo;
|
|
284
285
|
},
|
|
286
|
+
shouldShowPopupBranding() {
|
|
287
|
+
return this.viewModel.saveContactSettings.hideBranding;
|
|
288
|
+
},
|
|
285
289
|
},
|
|
286
290
|
watch: {
|
|
287
291
|
rootElementStyles() {
|
|
@@ -522,6 +522,10 @@ export interface CookieOptions {
|
|
|
522
522
|
isCookieEnabled: boolean;
|
|
523
523
|
isCookiePreviewEnabled: boolean;
|
|
524
524
|
}
|
|
525
|
+
export interface SaveContactOptions {
|
|
526
|
+
isSavingEnabled: boolean;
|
|
527
|
+
hideBranding: boolean;
|
|
528
|
+
}
|
|
525
529
|
export declare class BrandPageModel {
|
|
526
530
|
v: number;
|
|
527
531
|
styles: PageStyles;
|
|
@@ -543,6 +547,7 @@ export declare class BrandPageModel {
|
|
|
543
547
|
ogTitle?: string;
|
|
544
548
|
ogDescription?: string;
|
|
545
549
|
cookieOptions?: CookieOptions;
|
|
550
|
+
saveContactSettings?: SaveContactOptions;
|
|
546
551
|
paymentConfig?: BrandPagePaymentConfig;
|
|
547
552
|
constructor(options: BrandPageData);
|
|
548
553
|
}
|
|
@@ -412,6 +412,7 @@ export class BrandPageModel {
|
|
|
412
412
|
ogTitle;
|
|
413
413
|
ogDescription;
|
|
414
414
|
cookieOptions;
|
|
415
|
+
saveContactSettings;
|
|
415
416
|
paymentConfig;
|
|
416
417
|
constructor(options) {
|
|
417
418
|
this.v = options.v || 0;
|
|
@@ -473,6 +474,7 @@ export class BrandPageModel {
|
|
|
473
474
|
this.ogTitle = options.ogTitle;
|
|
474
475
|
this.ogDescription = options.ogDescription;
|
|
475
476
|
this.cookieOptions = options.cookieOptions;
|
|
477
|
+
this.saveContactSettings = options.saveContactSettings;
|
|
476
478
|
this.paymentConfig = options.paymentConfig;
|
|
477
479
|
}
|
|
478
480
|
}
|
|
@@ -805,6 +805,12 @@ export const getBrandPageViewModelFromBrandPageModel = (model, brandPageToken, s
|
|
|
805
805
|
isCookieEnabled: model.cookieOptions?.isCookieEnabled || false,
|
|
806
806
|
isCookiePreviewEnabled: model.cookieOptions?.isCookiePreviewEnabled || false,
|
|
807
807
|
},
|
|
808
|
+
saveContactSettings: model.saveContactSettings
|
|
809
|
+
? {
|
|
810
|
+
isSavingEnabled: model.saveContactSettings.isSavingEnabled ?? true,
|
|
811
|
+
hideBranding: model.saveContactSettings.hideBranding ?? false,
|
|
812
|
+
}
|
|
813
|
+
: { isSavingEnabled: true, hideBranding: false },
|
|
808
814
|
};
|
|
809
815
|
};
|
|
810
816
|
export const isLogoViewModel = (viewModel) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ButtonWithModalContent, ProfileContent, TextContent, VideoContent, ImageContent, ContentType, ButtonStyles, LogoStyles, MapContent, ImageGalleryContent, GalleryStyles, MailingListContent, RequestPaymentContent, ShopContent, SupportMeContent, ContactFormContent, BannerSectionContent, BrandPageType, SocialLinksContent, TestimonialSectionContent, AboutSectionContent, DividerSectionContent, ShapesSectionContent, ButtonLinkType, PageHeaderMobile, PageHeaderDesktop, PageFooterMobile, PageFooterDesktop, TextMediaItem, TextShapeItem, TextStyleDeclaration, AspectRatio, LogoImageModel, LogoTemplateImageModel, CookieOptions, BookingSectionContent, MediaTypes, TextStyles, BackgroundStyle, BackgroundShape, PersonalisationRole } from './models';
|
|
1
|
+
import type { ButtonWithModalContent, ProfileContent, TextContent, VideoContent, ImageContent, ContentType, ButtonStyles, LogoStyles, MapContent, ImageGalleryContent, GalleryStyles, MailingListContent, RequestPaymentContent, ShopContent, SupportMeContent, ContactFormContent, BannerSectionContent, BrandPageType, SocialLinksContent, TestimonialSectionContent, AboutSectionContent, DividerSectionContent, ShapesSectionContent, ButtonLinkType, PageHeaderMobile, PageHeaderDesktop, PageFooterMobile, PageFooterDesktop, TextMediaItem, TextShapeItem, TextStyleDeclaration, AspectRatio, LogoImageModel, LogoTemplateImageModel, CookieOptions, BookingSectionContent, MediaTypes, TextStyles, BackgroundStyle, BackgroundShape, PersonalisationRole, SaveContactOptions } from './models';
|
|
2
2
|
import type { ImagesSectionContentDisplayStyle } from './constants';
|
|
3
3
|
export type ViewModelType = 'button' | 'image' | 'image-gallery' | 'logo' | 'map' | 'mailing-list' | 'profile' | 'support-me' | 'request-payment' | 'text' | 'video' | 'contact-form' | 'banner-section' | 'images-section' | 'about-section' | 'divider-section' | 'testimonial-section' | 'social-links' | 'shapes-section' | 'shop-section' | 'booking-section';
|
|
4
4
|
export interface ContentViewModel {
|
|
@@ -166,4 +166,5 @@ export interface BrandPageViewModel {
|
|
|
166
166
|
ogTitle?: string;
|
|
167
167
|
ogDescription?: string;
|
|
168
168
|
cookieOptions: CookieOptions;
|
|
169
|
+
saveContactSettings: SaveContactOptions;
|
|
169
170
|
}
|
|
@@ -59,6 +59,12 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
59
59
|
setCookieEnabled(payload: {
|
|
60
60
|
isCookieEnabled: boolean;
|
|
61
61
|
}): void;
|
|
62
|
+
setSavingEnabled(payload: {
|
|
63
|
+
isSavingEnabled: boolean;
|
|
64
|
+
}): void;
|
|
65
|
+
setHideBranding(payload: {
|
|
66
|
+
hideBranding: boolean;
|
|
67
|
+
}): void;
|
|
62
68
|
setSensitiveContent(payload: {
|
|
63
69
|
sensitiveContent: string;
|
|
64
70
|
}): void;
|
|
@@ -104,6 +104,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
104
104
|
setCookieEnabled(payload: {
|
|
105
105
|
isCookieEnabled: boolean;
|
|
106
106
|
}): void;
|
|
107
|
+
setSavingEnabled(payload: {
|
|
108
|
+
isSavingEnabled: boolean;
|
|
109
|
+
}): void;
|
|
110
|
+
setHideBranding(payload: {
|
|
111
|
+
hideBranding: boolean;
|
|
112
|
+
}): void;
|
|
107
113
|
setSensitiveContent(payload: {
|
|
108
114
|
sensitiveContent: string;
|
|
109
115
|
}): void;
|
|
@@ -395,7 +401,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
395
401
|
setBrandPageStatus(status: any): Promise<void>;
|
|
396
402
|
showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any, isSubsequentPublish?: boolean | undefined): void;
|
|
397
403
|
showBrandPageSlugEditModal(eventButtonLocation: string): Promise<void>;
|
|
398
|
-
showUpgradeModalAndSaveAsync(contextualUpgradeType?: string | number | symbol | undefined): Promise<void>;
|
|
404
|
+
showUpgradeModalAndSaveAsync(contextualUpgradeType?: string | number | symbol | undefined, cta?: string | undefined): Promise<void>;
|
|
399
405
|
getContextualUpgradeResponseAsync(): Promise<import("../../../clients/brand-page-client").getWebsiteContextualUpgradeResponse | undefined>;
|
|
400
406
|
showStripeOnboardingModal(): void;
|
|
401
407
|
closeStripeOnboardingModal(): void;
|
|
@@ -49,6 +49,12 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
49
49
|
setCookieEnabled(payload: {
|
|
50
50
|
isCookieEnabled: boolean;
|
|
51
51
|
}): void;
|
|
52
|
+
setSavingEnabled(payload: {
|
|
53
|
+
isSavingEnabled: boolean;
|
|
54
|
+
}): void;
|
|
55
|
+
setHideBranding(payload: {
|
|
56
|
+
hideBranding: boolean;
|
|
57
|
+
}): void;
|
|
52
58
|
setSensitiveContent(payload: {
|
|
53
59
|
sensitiveContent: string;
|
|
54
60
|
}): void;
|
package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts
CHANGED
|
@@ -555,6 +555,12 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
555
555
|
setCookieEnabled(payload: {
|
|
556
556
|
isCookieEnabled: boolean;
|
|
557
557
|
}): void;
|
|
558
|
+
setSavingEnabled(payload: {
|
|
559
|
+
isSavingEnabled: boolean;
|
|
560
|
+
}): void;
|
|
561
|
+
setHideBranding(payload: {
|
|
562
|
+
hideBranding: boolean;
|
|
563
|
+
}): void;
|
|
558
564
|
setSensitiveContent(payload: {
|
|
559
565
|
sensitiveContent: string;
|
|
560
566
|
}): void;
|
|
@@ -830,7 +836,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
830
836
|
setBrandPageStatus(status: any): Promise<void>;
|
|
831
837
|
showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any, isSubsequentPublish?: boolean | undefined): void;
|
|
832
838
|
showBrandPageSlugEditModal(eventButtonLocation: string): Promise<void>;
|
|
833
|
-
showUpgradeModalAndSaveAsync(contextualUpgradeType?: string | number | symbol | undefined): Promise<void>;
|
|
839
|
+
showUpgradeModalAndSaveAsync(contextualUpgradeType?: string | number | symbol | undefined, cta?: string | undefined): Promise<void>;
|
|
834
840
|
getContextualUpgradeResponseAsync(): Promise<import("../../../clients/brand-page-client").getWebsiteContextualUpgradeResponse | undefined>;
|
|
835
841
|
showStripeOnboardingModal(): void;
|
|
836
842
|
closeStripeOnboardingModal(): void;
|
|
@@ -1185,6 +1191,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
1185
1191
|
slug(): string;
|
|
1186
1192
|
shouldShowSaveContactWidget(): boolean;
|
|
1187
1193
|
isPremiumSubscription(): boolean;
|
|
1194
|
+
shouldShowPopupBranding(): boolean;
|
|
1188
1195
|
}, {
|
|
1189
1196
|
openSideMenu(): void;
|
|
1190
1197
|
onLogoClick(tabName: string): void;
|
|
@@ -55,6 +55,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
55
55
|
setCookieEnabled(payload: {
|
|
56
56
|
isCookieEnabled: boolean;
|
|
57
57
|
}): void;
|
|
58
|
+
setSavingEnabled(payload: {
|
|
59
|
+
isSavingEnabled: boolean;
|
|
60
|
+
}): void;
|
|
61
|
+
setHideBranding(payload: {
|
|
62
|
+
hideBranding: boolean;
|
|
63
|
+
}): void;
|
|
58
64
|
setSensitiveContent(payload: {
|
|
59
65
|
sensitiveContent: string;
|
|
60
66
|
}): void;
|
|
@@ -202,7 +202,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
202
202
|
setBrandPageStatus(status: any): Promise<void>;
|
|
203
203
|
showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any, isSubsequentPublish?: boolean | undefined): void;
|
|
204
204
|
showBrandPageSlugEditModal(eventButtonLocation: string): Promise<void>;
|
|
205
|
-
showUpgradeModalAndSaveAsync(contextualUpgradeType?: string | number | symbol | undefined): Promise<void>;
|
|
205
|
+
showUpgradeModalAndSaveAsync(contextualUpgradeType?: string | number | symbol | undefined, cta?: string | undefined): Promise<void>;
|
|
206
206
|
getContextualUpgradeResponseAsync(): Promise<import("../../../clients/brand-page-client").getWebsiteContextualUpgradeResponse | undefined>;
|
|
207
207
|
showStripeOnboardingModal(): void;
|
|
208
208
|
closeStripeOnboardingModal(): void;
|
|
@@ -218,7 +218,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
218
218
|
setBrandPageStatus(status: any): Promise<void>;
|
|
219
219
|
showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any, isSubsequentPublish?: boolean | undefined): void;
|
|
220
220
|
showBrandPageSlugEditModal(eventButtonLocation: string): Promise<void>;
|
|
221
|
-
showUpgradeModalAndSaveAsync(contextualUpgradeType?: string | number | symbol | undefined): Promise<void>;
|
|
221
|
+
showUpgradeModalAndSaveAsync(contextualUpgradeType?: string | number | symbol | undefined, cta?: string | undefined): Promise<void>;
|
|
222
222
|
getContextualUpgradeResponseAsync(): Promise<import("../../../clients/brand-page-client").getWebsiteContextualUpgradeResponse | undefined>;
|
|
223
223
|
showStripeOnboardingModal(): void;
|
|
224
224
|
closeStripeOnboardingModal(): void;
|
|
@@ -299,6 +299,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
299
299
|
setCookieEnabled(payload: {
|
|
300
300
|
isCookieEnabled: boolean;
|
|
301
301
|
}): void;
|
|
302
|
+
setSavingEnabled(payload: {
|
|
303
|
+
isSavingEnabled: boolean;
|
|
304
|
+
}): void;
|
|
305
|
+
setHideBranding(payload: {
|
|
306
|
+
hideBranding: boolean;
|
|
307
|
+
}): void;
|
|
302
308
|
setSensitiveContent(payload: {
|
|
303
309
|
sensitiveContent: string;
|
|
304
310
|
}): void;
|
|
@@ -223,7 +223,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
223
223
|
setBrandPageStatus(status: any): Promise<void>;
|
|
224
224
|
showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any, isSubsequentPublish?: boolean | undefined): void;
|
|
225
225
|
showBrandPageSlugEditModal(eventButtonLocation: string): Promise<void>;
|
|
226
|
-
showUpgradeModalAndSaveAsync(contextualUpgradeType?: string | number | symbol | undefined): Promise<void>;
|
|
226
|
+
showUpgradeModalAndSaveAsync(contextualUpgradeType?: string | number | symbol | undefined, cta?: string | undefined): Promise<void>;
|
|
227
227
|
getContextualUpgradeResponseAsync(): Promise<import("../../../clients/brand-page-client").getWebsiteContextualUpgradeResponse | undefined>;
|
|
228
228
|
showStripeOnboardingModal(): void;
|
|
229
229
|
closeStripeOnboardingModal(): void;
|
|
@@ -300,6 +300,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
300
300
|
setCookieEnabled(payload: {
|
|
301
301
|
isCookieEnabled: boolean;
|
|
302
302
|
}): void;
|
|
303
|
+
setSavingEnabled(payload: {
|
|
304
|
+
isSavingEnabled: boolean;
|
|
305
|
+
}): void;
|
|
306
|
+
setHideBranding(payload: {
|
|
307
|
+
hideBranding: boolean;
|
|
308
|
+
}): void;
|
|
303
309
|
setSensitiveContent(payload: {
|
|
304
310
|
sensitiveContent: string;
|
|
305
311
|
}): void;
|
|
@@ -199,7 +199,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
199
199
|
setBrandPageStatus(status: any): Promise<void>;
|
|
200
200
|
showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any, isSubsequentPublish?: boolean | undefined): void;
|
|
201
201
|
showBrandPageSlugEditModal(eventButtonLocation: string): Promise<void>;
|
|
202
|
-
showUpgradeModalAndSaveAsync(contextualUpgradeType?: string | number | symbol | undefined): Promise<void>;
|
|
202
|
+
showUpgradeModalAndSaveAsync(contextualUpgradeType?: string | number | symbol | undefined, cta?: string | undefined): Promise<void>;
|
|
203
203
|
getContextualUpgradeResponseAsync(): Promise<import("../../../clients/brand-page-client").getWebsiteContextualUpgradeResponse | undefined>;
|
|
204
204
|
showStripeOnboardingModal(): void;
|
|
205
205
|
closeStripeOnboardingModal(): void;
|
|
@@ -65,6 +65,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
65
65
|
setCookieEnabled(payload: {
|
|
66
66
|
isCookieEnabled: boolean;
|
|
67
67
|
}): void;
|
|
68
|
+
setSavingEnabled(payload: {
|
|
69
|
+
isSavingEnabled: boolean;
|
|
70
|
+
}): void;
|
|
71
|
+
setHideBranding(payload: {
|
|
72
|
+
hideBranding: boolean;
|
|
73
|
+
}): void;
|
|
68
74
|
setSensitiveContent(payload: {
|
|
69
75
|
sensitiveContent: string;
|
|
70
76
|
}): void;
|
|
@@ -274,7 +274,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
274
274
|
setBrandPageStatus(status: any): Promise<void>;
|
|
275
275
|
showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any, isSubsequentPublish?: boolean | undefined): void;
|
|
276
276
|
showBrandPageSlugEditModal(eventButtonLocation: string): Promise<void>;
|
|
277
|
-
showUpgradeModalAndSaveAsync(contextualUpgradeType?: string | number | symbol | undefined): Promise<void>;
|
|
277
|
+
showUpgradeModalAndSaveAsync(contextualUpgradeType?: string | number | symbol | undefined, cta?: string | undefined): Promise<void>;
|
|
278
278
|
getContextualUpgradeResponseAsync(): Promise<import("../../../clients/brand-page-client").getWebsiteContextualUpgradeResponse | undefined>;
|
|
279
279
|
showStripeOnboardingModal(): void;
|
|
280
280
|
closeStripeOnboardingModal(): void;
|
|
@@ -351,6 +351,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
351
351
|
setCookieEnabled(payload: {
|
|
352
352
|
isCookieEnabled: boolean;
|
|
353
353
|
}): void;
|
|
354
|
+
setSavingEnabled(payload: {
|
|
355
|
+
isSavingEnabled: boolean;
|
|
356
|
+
}): void;
|
|
357
|
+
setHideBranding(payload: {
|
|
358
|
+
hideBranding: boolean;
|
|
359
|
+
}): void;
|
|
354
360
|
setSensitiveContent(payload: {
|
|
355
361
|
sensitiveContent: string;
|
|
356
362
|
}): void;
|
|
@@ -199,7 +199,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
199
199
|
setBrandPageStatus(status: any): Promise<void>;
|
|
200
200
|
showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any, isSubsequentPublish?: boolean | undefined): void;
|
|
201
201
|
showBrandPageSlugEditModal(eventButtonLocation: string): Promise<void>;
|
|
202
|
-
showUpgradeModalAndSaveAsync(contextualUpgradeType?: string | number | symbol | undefined): Promise<void>;
|
|
202
|
+
showUpgradeModalAndSaveAsync(contextualUpgradeType?: string | number | symbol | undefined, cta?: string | undefined): Promise<void>;
|
|
203
203
|
getContextualUpgradeResponseAsync(): Promise<import("../../../clients/brand-page-client").getWebsiteContextualUpgradeResponse | undefined>;
|
|
204
204
|
showStripeOnboardingModal(): void;
|
|
205
205
|
closeStripeOnboardingModal(): void;
|
|
@@ -51,6 +51,8 @@ export declare const EVENTS: {
|
|
|
51
51
|
WEBSITE_START_FOR_FREE: string;
|
|
52
52
|
WEBSITE_MAKER_AI_CLICK_SUGGESTED_PROMPT: string;
|
|
53
53
|
WEBSITE_MAKER_DOMAIN_UPSELL_MODAL: string;
|
|
54
|
+
WEBSITE_MAKER_DIGITAL_BUSINESS_CARDS_SAVE_CONTACT_TOGGLE: string;
|
|
55
|
+
WEBSITE_MAKER_DIGITAL_BUSINESS_CARDS_HIDE_POPUP: string;
|
|
54
56
|
WEBSITE_MAKER_GETTY_VIDEO: string;
|
|
55
57
|
};
|
|
56
58
|
export declare const SELECT_LOCATIONS: {
|
|
@@ -72,6 +74,7 @@ export declare const UPGRADE_CTA_LOCATIONS: {
|
|
|
72
74
|
SLUG_CHANGE_MANAGE_PAGE: string;
|
|
73
75
|
GOOGLE_ADSENSE: string;
|
|
74
76
|
QUICK_LINKS: string;
|
|
77
|
+
SAVE_CONTACT_SETTINGS: string;
|
|
75
78
|
};
|
|
76
79
|
export declare const GENERATE_AI_TEXT_CTA_LOCATIONS: {
|
|
77
80
|
BANNER_DESCRIPTION: string;
|
|
@@ -34,6 +34,8 @@ export const EVENTS = {
|
|
|
34
34
|
WEBSITE_START_FOR_FREE: 'website_start_for_free',
|
|
35
35
|
WEBSITE_MAKER_AI_CLICK_SUGGESTED_PROMPT: 'website_maker_ai_click_suggested_prompt',
|
|
36
36
|
WEBSITE_MAKER_DOMAIN_UPSELL_MODAL: 'website_domain_upsell_modal',
|
|
37
|
+
WEBSITE_MAKER_DIGITAL_BUSINESS_CARDS_SAVE_CONTACT_TOGGLE: 'website_maker_digital_business_cards_save_contact_toggle',
|
|
38
|
+
WEBSITE_MAKER_DIGITAL_BUSINESS_CARDS_HIDE_POPUP: 'website_maker_digital_business_cards_hide_popup',
|
|
37
39
|
WEBSITE_MAKER_GETTY_VIDEO: 'website_maker_getty_video',
|
|
38
40
|
};
|
|
39
41
|
export const SELECT_LOCATIONS = {
|
|
@@ -55,6 +57,7 @@ export const UPGRADE_CTA_LOCATIONS = {
|
|
|
55
57
|
SLUG_CHANGE_MANAGE_PAGE: 'slug_change_manage_page',
|
|
56
58
|
GOOGLE_ADSENSE: 'google_adsense',
|
|
57
59
|
QUICK_LINKS: 'quick_links',
|
|
60
|
+
SAVE_CONTACT_SETTINGS: 'save_contact_settings',
|
|
58
61
|
};
|
|
59
62
|
export const GENERATE_AI_TEXT_CTA_LOCATIONS = {
|
|
60
63
|
BANNER_DESCRIPTION: 'banner_description',
|
|
@@ -270,7 +270,7 @@ export declare const useBrandPageContainerStore: import("pinia").StoreDefinition
|
|
|
270
270
|
setBrandPageStatus(status: any): Promise<void>;
|
|
271
271
|
showPublishModal(eventButtonLocation?: string, websiteUpsellModalViewModel?: any, isSubsequentPublish?: boolean): void;
|
|
272
272
|
showBrandPageSlugEditModal(eventButtonLocation: string): Promise<void>;
|
|
273
|
-
showUpgradeModalAndSaveAsync(contextualUpgradeType?: WebsiteContextUpgradeType): Promise<void>;
|
|
273
|
+
showUpgradeModalAndSaveAsync(contextualUpgradeType?: WebsiteContextUpgradeType, cta?: string): Promise<void>;
|
|
274
274
|
getContextualUpgradeResponseAsync(): Promise<getWebsiteContextualUpgradeResponse | undefined>;
|
|
275
275
|
showStripeOnboardingModal(): void;
|
|
276
276
|
closeStripeOnboardingModal(): void;
|
|
@@ -736,7 +736,7 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
|
|
|
736
736
|
await this.startBrandPageSlugEditMode();
|
|
737
737
|
await this.showPublishModal(eventButtonLocation);
|
|
738
738
|
},
|
|
739
|
-
async showUpgradeModalAndSaveAsync(contextualUpgradeType) {
|
|
739
|
+
async showUpgradeModalAndSaveAsync(contextualUpgradeType, cta) {
|
|
740
740
|
const eventTracker = useEventTracker();
|
|
741
741
|
const formatCtaLocation = (type) => {
|
|
742
742
|
if (!type || typeof type !== 'string')
|
|
@@ -747,7 +747,7 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
|
|
|
747
747
|
.isPublishUpgradeModal
|
|
748
748
|
? WEBSITE_UPGRADE_CONTEXT_TYPES.Publish
|
|
749
749
|
: contextualUpgradeType;
|
|
750
|
-
const cta_location = formatCtaLocation(requestedType);
|
|
750
|
+
const cta_location = cta ? cta : formatCtaLocation(requestedType);
|
|
751
751
|
eventTracker.sendUpsellOpenEvent(cta_location);
|
|
752
752
|
if (!this.isPrePurchase && requestedType) {
|
|
753
753
|
const bucketResponse = await this.getContextualUpgradeResponseAsync();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BrandPageData, BrandPageType, BrandPageViewModel, CookieOptions, Content, PageModel, UserPersonalisationContent, ViewportsType, SensitiveContent } from '../../../brand-page';
|
|
1
|
+
import type { BrandPageData, BrandPageType, BrandPageViewModel, CookieOptions, Content, PageModel, UserPersonalisationContent, ViewportsType, SensitiveContent, SaveContactOptions } from '../../../brand-page';
|
|
2
2
|
import { BrandPageModel } from '../../../brand-page';
|
|
3
3
|
import type { InitialCategories, TemplateCategory } from '../../../shared/template-settings/models';
|
|
4
4
|
import type { AdminPreviewLogoTemplateModel } from '../admin-logo-settings';
|
|
@@ -52,6 +52,7 @@ export interface BrandPageMakerState {
|
|
|
52
52
|
businessName: string | undefined;
|
|
53
53
|
industry: string | undefined;
|
|
54
54
|
cookieOptions: CookieOptions;
|
|
55
|
+
saveContactSettings: SaveContactOptions;
|
|
55
56
|
sensitiveContent: SensitiveContent;
|
|
56
57
|
isBrandPage: boolean;
|
|
57
58
|
isBrandPageOrIsBrandContact: boolean;
|
|
@@ -128,6 +129,12 @@ export declare const useBrandPageMakerStore: import("pinia").StoreDefinition<"br
|
|
|
128
129
|
setCookieEnabled(payload: {
|
|
129
130
|
isCookieEnabled: boolean;
|
|
130
131
|
}): void;
|
|
132
|
+
setSavingEnabled(payload: {
|
|
133
|
+
isSavingEnabled: boolean;
|
|
134
|
+
}): void;
|
|
135
|
+
setHideBranding(payload: {
|
|
136
|
+
hideBranding: boolean;
|
|
137
|
+
}): void;
|
|
131
138
|
setSensitiveContent(payload: {
|
|
132
139
|
sensitiveContent: string;
|
|
133
140
|
}): void;
|
|
@@ -26,8 +26,7 @@ import { useLocalisedRouteStore } from '../route/localised-route-store';
|
|
|
26
26
|
import cloneDeep from 'lodash.clonedeep';
|
|
27
27
|
import * as uuid from 'uuid';
|
|
28
28
|
import { getAiContentIndexByTemplateTokenAndNumberOfVariations } from '../../utils/ai-content-selection.util';
|
|
29
|
-
import { applyLogoTemplateImageToBrandPageTemplateModel,
|
|
30
|
-
import { FabricRenderClient } from '../../../clients/fabric-render-client';
|
|
29
|
+
import { applyLogoTemplateImageToBrandPageTemplateModel, recalculateLogoContentDimensions, recalculateHeaderLogoSizes, } from '../../../brand-page/utils/logo.util';
|
|
31
30
|
import { useConsent } from '../../../brand-page/composables/consent.composable';
|
|
32
31
|
import { commonTr, errorTr } from '../../../composables/useTranslate';
|
|
33
32
|
import { UPGRADE_CTA_LOCATIONS } from '../../composables/useEventTracker';
|
|
@@ -75,6 +74,10 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
|
|
|
75
74
|
isCookieEnabled: false,
|
|
76
75
|
isCookiePreviewEnabled: false,
|
|
77
76
|
},
|
|
77
|
+
saveContactSettings: {
|
|
78
|
+
isSavingEnabled: true,
|
|
79
|
+
hideBranding: false,
|
|
80
|
+
},
|
|
78
81
|
}),
|
|
79
82
|
actions: {
|
|
80
83
|
setMode(payload) {
|
|
@@ -101,6 +104,12 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
|
|
|
101
104
|
setCookieEnabled(payload) {
|
|
102
105
|
this.cookieOptions.isCookieEnabled = payload.isCookieEnabled;
|
|
103
106
|
},
|
|
107
|
+
setSavingEnabled(payload) {
|
|
108
|
+
this.saveContactSettings.isSavingEnabled = payload.isSavingEnabled;
|
|
109
|
+
},
|
|
110
|
+
setHideBranding(payload) {
|
|
111
|
+
this.saveContactSettings.hideBranding = payload.hideBranding;
|
|
112
|
+
},
|
|
104
113
|
setSensitiveContent(payload) {
|
|
105
114
|
this.sensitiveContent = payload.sensitiveContent;
|
|
106
115
|
},
|
|
@@ -637,6 +646,12 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
|
|
|
637
646
|
this.setCookiePreviewEnabled({
|
|
638
647
|
isCookiePreviewEnabled: brandPageModel.cookieOptions?.isCookiePreviewEnabled,
|
|
639
648
|
});
|
|
649
|
+
this.setSavingEnabled({
|
|
650
|
+
isSavingEnabled: brandPageModel.saveContactSettings?.isSavingEnabled ?? true,
|
|
651
|
+
});
|
|
652
|
+
this.setHideBranding({
|
|
653
|
+
hideBranding: brandPageModel.saveContactSettings?.hideBranding ?? false,
|
|
654
|
+
});
|
|
640
655
|
this.businessName = businessName;
|
|
641
656
|
this.industry = industry;
|
|
642
657
|
}
|
|
@@ -834,6 +849,7 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
|
|
|
834
849
|
ogTitle: this.ogTitle,
|
|
835
850
|
ogDescription: this.ogDescription,
|
|
836
851
|
cookieOptions: this.cookieOptions,
|
|
852
|
+
saveContactSettings: this.saveContactSettings,
|
|
837
853
|
paymentConfig: shopStore.paymentConfig,
|
|
838
854
|
};
|
|
839
855
|
},
|