@designcrowd/library.brand-page 5.14.1 → 5.14.2-ml3
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-GGeRP-yJ.js → CreatedOnBrandCrowd-de-de-DxLeSo0D.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-D-mcoYKD.js → CreatedOnBrandCrowd-en-us-p9-PKTfD.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-UB-XVZLH.js → CreatedOnBrandCrowd-es-es-Dg1DkZwL.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-BcLwD-Ww.js → CreatedOnBrandCrowd-fr-fr-r6Ers47p.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-DuTtIiT7.js → CreatedOnBrandCrowd-pt-pt-CRvyq6iB.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-6nOtKdaY.js → CreatedOnDcom-de-de-DfCzyu8K.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-BlzEFog2.js → CreatedOnDcom-en-us-CP6lT2IJ.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-B_v3IYem.js → CreatedOnDcom-es-es-CABw9-cD.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-DmWvH9K_.js → CreatedOnDcom-fr-fr-DIN2-W0Q.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-P25mfZVx.js → CreatedOnDcom-pt-pt-BLTdvqrM.js} +1 -1
- package/lib/src/brand-page/models/brand-page-context.model.d.ts +2 -0
- package/lib/src/brand-page/models/brand-page-context.model.js +2 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +12 -3
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.js +1 -0
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +16 -3
- package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.d.ts +12 -3
- package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +12 -3
- package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +12 -3
- package/lib/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.d.ts +12 -3
- package/lib/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.d.ts +12 -3
- package/lib/src/brand-page-maker/composables/useEventTracker.d.ts +7 -1
- package/lib/src/brand-page-maker/composables/useEventTracker.js +29 -4
- package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.d.ts +14 -3
- package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.js +56 -9
- package/lib/src/brand-page-maker/stores/route/localised-route-store.js +6 -0
- package/lib/src/clients/brand-page-client.d.ts +20 -3
- package/lib/src/clients/brand-page-client.js +29 -17
- package/lib/src/css/library.brand-page-brandCrowd.min.css +14 -11
- package/lib/src/css/library.brand-page-brandPage.min.css +14 -11
- package/lib/src/css/library.brand-page-designCom.min.css +14 -11
- package/lib/src/css/library.brand-page-preview.min.css +14 -11
- package/lib/src/index.mjs +35 -34
- package/lib/src/{lib-CQSKlB0S.js → lib-OVp_vdPB.js} +20480 -20315
- package/lib/src/mockServiceWorker.js +1 -1
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +4 -0
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +4 -0
- package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +12 -3
- package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +12 -3
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +16 -3
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +12 -3
- package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +30 -10
- package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.js +25 -2
- package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +12 -3
- package/lib/src/shared/side-bar/components/SideBarTabButton.mixin.d.ts +4 -0
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +16 -3
- package/lib/src/shared/template-settings/components/TemplatesSettings.mixin.d.ts +4 -0
- package/package.json +2 -2
- package/src/brand-page/models/brand-page-context.model.ts +7 -1
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.ts +1 -0
- package/src/brand-page-maker/composables/useEventTracker.ts +37 -4
- package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.ts +96 -9
- package/src/brand-page-maker/stores/route/localised-route-store.ts +6 -0
- package/src/clients/brand-page-client.ts +55 -20
- package/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.ts +31 -2
- package/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.vue +8 -0
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* - Please do NOT modify this file.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
const PACKAGE_VERSION = '2.10.
|
|
10
|
+
const PACKAGE_VERSION = '2.10.5'
|
|
11
11
|
const INTEGRITY_CHECKSUM = 'f5825c521429caf22a4dd13b66e243af'
|
|
12
12
|
const IS_MOCKED_RESPONSE = Symbol('isMockedResponse')
|
|
13
13
|
const activeClientIds = new Set()
|
package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts
CHANGED
|
@@ -737,6 +737,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
737
737
|
toggleLogoBackground(): Promise<any>;
|
|
738
738
|
}>;
|
|
739
739
|
eventTracker: {
|
|
740
|
+
sendExperimentStartedEvent: (abTestKey: string, abTestValue: string) => void;
|
|
740
741
|
setGlobalEventProps: (props: Omit<import("../../../../brand-page-maker/composables/useEventTracker").BpGlobalEventProps, "template_category">) => void;
|
|
741
742
|
setUpsellBridgeState: (props: import("../../../../brand-page-maker/composables/useEventTracker").BpUpsellEventProps) => void;
|
|
742
743
|
subscribe: (callbackFn: (event: import("../../../../brand-page-maker/composables/useEventTracker").BpEventTrackerEvent) => void) => void;
|
|
@@ -745,6 +746,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
745
746
|
sendUpsellOpenEvent: () => void;
|
|
746
747
|
sendUpsellContinuationEvent: (continuation: string) => void;
|
|
747
748
|
sendPublishOpenEvent: () => void;
|
|
749
|
+
appendPublishBridgeState: (props: any) => void;
|
|
748
750
|
sendPublishContinuationEvent: (continuation: string, domain: string | null) => void;
|
|
749
751
|
sendWebsiteManageAddPageEvent: (pageName: string) => void;
|
|
750
752
|
sendWebsiteManageRemovePageEvent: (pageName: string) => void;
|
|
@@ -757,6 +759,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
757
759
|
sendTemplateCategorySelectEvent: (category: string) => void;
|
|
758
760
|
sendSidebarCategoryClickedEvent: (tabName: string) => void;
|
|
759
761
|
sendAddContentContinuationEvent: (continuation: string) => void;
|
|
762
|
+
sendUpsellOfferEvent: (upsellType: string) => void;
|
|
763
|
+
sendUpsellOfferActionEvent: (upsellType: string, action: string) => void;
|
|
760
764
|
};
|
|
761
765
|
externalEditor: import("@tiptap/vue-3").Editor;
|
|
762
766
|
}, {
|
|
@@ -468,6 +468,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
468
468
|
setSelectedTabName(payload: import("../../../side-bar/models").SetSelectedTabNamePayload): void;
|
|
469
469
|
}>;
|
|
470
470
|
eventTracker: {
|
|
471
|
+
sendExperimentStartedEvent: (abTestKey: string, abTestValue: string) => void;
|
|
471
472
|
setGlobalEventProps: (props: Omit<import("../../../../brand-page-maker/composables/useEventTracker").BpGlobalEventProps, "template_category">) => void;
|
|
472
473
|
setUpsellBridgeState: (props: import("../../../../brand-page-maker/composables/useEventTracker").BpUpsellEventProps) => void;
|
|
473
474
|
subscribe: (callbackFn: (event: import("../../../../brand-page-maker/composables/useEventTracker").BpEventTrackerEvent) => void) => void;
|
|
@@ -476,6 +477,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
476
477
|
sendUpsellOpenEvent: () => void;
|
|
477
478
|
sendUpsellContinuationEvent: (continuation: string) => void;
|
|
478
479
|
sendPublishOpenEvent: () => void;
|
|
480
|
+
appendPublishBridgeState: (props: any) => void;
|
|
479
481
|
sendPublishContinuationEvent: (continuation: string, domain: string | null) => void;
|
|
480
482
|
sendWebsiteManageAddPageEvent: (pageName: string) => void;
|
|
481
483
|
sendWebsiteManageRemovePageEvent: (pageName: string) => void;
|
|
@@ -488,6 +490,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
488
490
|
sendTemplateCategorySelectEvent: (category: string) => void;
|
|
489
491
|
sendSidebarCategoryClickedEvent: (tabName: string) => void;
|
|
490
492
|
sendAddContentContinuationEvent: (continuation: string) => void;
|
|
493
|
+
sendUpsellOfferEvent: (upsellType: string) => void;
|
|
494
|
+
sendUpsellOfferActionEvent: (upsellType: string, action: string) => void;
|
|
491
495
|
};
|
|
492
496
|
}, {
|
|
493
497
|
selectEventDebounceHandler: DebounceHandle | undefined;
|
|
@@ -80,8 +80,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
80
80
|
isPrePurchase: boolean;
|
|
81
81
|
makerFonts: any[];
|
|
82
82
|
eventButtonLocation?: string | undefined;
|
|
83
|
+
websiteUpsellModalViewModel?: any;
|
|
83
84
|
showPublishOptionModal?: boolean | undefined;
|
|
84
85
|
abTests: Record<string, string>;
|
|
86
|
+
isSubsequentPublish: boolean;
|
|
85
87
|
} & import("pinia").PiniaCustomStateProperties<import("../../../../brand-page-maker/stores").BrandPageContainerState>) => boolean;
|
|
86
88
|
isUserDraft: (state: {
|
|
87
89
|
availableTaxes: any[];
|
|
@@ -139,8 +141,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
139
141
|
isPrePurchase: boolean;
|
|
140
142
|
makerFonts: any[];
|
|
141
143
|
eventButtonLocation?: string | undefined;
|
|
144
|
+
websiteUpsellModalViewModel?: any;
|
|
142
145
|
showPublishOptionModal?: boolean | undefined;
|
|
143
146
|
abTests: Record<string, string>;
|
|
147
|
+
isSubsequentPublish: boolean;
|
|
144
148
|
} & import("pinia").PiniaCustomStateProperties<import("../../../../brand-page-maker/stores").BrandPageContainerState>) => boolean;
|
|
145
149
|
}, {
|
|
146
150
|
clearTriggerSaveEventApiOnPublishModalClose(): void;
|
|
@@ -173,6 +177,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
173
177
|
}): void;
|
|
174
178
|
setCreateCustomDomainErrorMessage(payload: any): void;
|
|
175
179
|
setBrandPageIsCustomDomainEnabled(payload: any): void;
|
|
180
|
+
setIsSubsequentPublish(payload: any): void;
|
|
176
181
|
clearPublishErrorMessage(): void;
|
|
177
182
|
closePublishModal(payload?: {
|
|
178
183
|
skipShowNextNotificationMessage?: boolean | undefined;
|
|
@@ -182,7 +187,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
182
187
|
publishBrandPage({ shouldPublish, slug }: {
|
|
183
188
|
shouldPublish: any;
|
|
184
189
|
slug: any;
|
|
185
|
-
}): Promise<
|
|
190
|
+
}): Promise<false | {
|
|
191
|
+
success: boolean;
|
|
192
|
+
websiteUpsellModalViewModel: any;
|
|
193
|
+
}>;
|
|
186
194
|
publishBrandPageWithCustomDomainAsync({ shouldPublish, slug, domain, isPurchasedDomain, }: {
|
|
187
195
|
shouldPublish: any;
|
|
188
196
|
slug: any;
|
|
@@ -199,12 +207,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
199
207
|
eventButtonLocation?: string | undefined;
|
|
200
208
|
}): Promise<false | {
|
|
201
209
|
saved: boolean;
|
|
202
|
-
canPublish:
|
|
210
|
+
canPublish: boolean;
|
|
211
|
+
websiteUpsellModalViewModel: any;
|
|
203
212
|
}>;
|
|
204
213
|
saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
|
|
205
214
|
saveTemplate(): Promise<void>;
|
|
206
215
|
setBrandPageStatus(status: any): Promise<void>;
|
|
207
|
-
showPublishModal(eventButtonLocation?: string | undefined): void;
|
|
216
|
+
showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any, isSubsequentPublish?: boolean | undefined): void;
|
|
208
217
|
showBrandPageSlugEditModal(): Promise<void>;
|
|
209
218
|
showUpgradeModalAndSaveAsync(): Promise<void>;
|
|
210
219
|
showStripeOnboardingModal(): void;
|
|
@@ -245,8 +245,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
245
245
|
isPrePurchase: boolean;
|
|
246
246
|
makerFonts: any[];
|
|
247
247
|
eventButtonLocation?: string | undefined;
|
|
248
|
+
websiteUpsellModalViewModel?: any;
|
|
248
249
|
showPublishOptionModal?: boolean | undefined;
|
|
249
250
|
abTests: Record<string, string>;
|
|
251
|
+
isSubsequentPublish: boolean;
|
|
250
252
|
} & import("pinia").PiniaCustomStateProperties<import("../../../brand-page-maker/stores").BrandPageContainerState>) => boolean;
|
|
251
253
|
isUserDraft: (state: {
|
|
252
254
|
availableTaxes: any[];
|
|
@@ -304,8 +306,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
304
306
|
isPrePurchase: boolean;
|
|
305
307
|
makerFonts: any[];
|
|
306
308
|
eventButtonLocation?: string | undefined;
|
|
309
|
+
websiteUpsellModalViewModel?: any;
|
|
307
310
|
showPublishOptionModal?: boolean | undefined;
|
|
308
311
|
abTests: Record<string, string>;
|
|
312
|
+
isSubsequentPublish: boolean;
|
|
309
313
|
} & import("pinia").PiniaCustomStateProperties<import("../../../brand-page-maker/stores").BrandPageContainerState>) => boolean;
|
|
310
314
|
}, {
|
|
311
315
|
clearTriggerSaveEventApiOnPublishModalClose(): void;
|
|
@@ -338,6 +342,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
338
342
|
}): void;
|
|
339
343
|
setCreateCustomDomainErrorMessage(payload: any): void;
|
|
340
344
|
setBrandPageIsCustomDomainEnabled(payload: any): void;
|
|
345
|
+
setIsSubsequentPublish(payload: any): void;
|
|
341
346
|
clearPublishErrorMessage(): void;
|
|
342
347
|
closePublishModal(payload?: {
|
|
343
348
|
skipShowNextNotificationMessage?: boolean | undefined;
|
|
@@ -347,7 +352,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
347
352
|
publishBrandPage({ shouldPublish, slug }: {
|
|
348
353
|
shouldPublish: any;
|
|
349
354
|
slug: any;
|
|
350
|
-
}): Promise<
|
|
355
|
+
}): Promise<false | {
|
|
356
|
+
success: boolean;
|
|
357
|
+
websiteUpsellModalViewModel: any;
|
|
358
|
+
}>;
|
|
351
359
|
publishBrandPageWithCustomDomainAsync({ shouldPublish, slug, domain, isPurchasedDomain, }: {
|
|
352
360
|
shouldPublish: any;
|
|
353
361
|
slug: any;
|
|
@@ -364,12 +372,13 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
364
372
|
eventButtonLocation?: string | undefined;
|
|
365
373
|
}): Promise<false | {
|
|
366
374
|
saved: boolean;
|
|
367
|
-
canPublish:
|
|
375
|
+
canPublish: boolean;
|
|
376
|
+
websiteUpsellModalViewModel: any;
|
|
368
377
|
}>;
|
|
369
378
|
saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
|
|
370
379
|
saveTemplate(): Promise<void>;
|
|
371
380
|
setBrandPageStatus(status: any): Promise<void>;
|
|
372
|
-
showPublishModal(eventButtonLocation?: string | undefined): void;
|
|
381
|
+
showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any, isSubsequentPublish?: boolean | undefined): void;
|
|
373
382
|
showBrandPageSlugEditModal(): Promise<void>;
|
|
374
383
|
showUpgradeModalAndSaveAsync(): Promise<void>;
|
|
375
384
|
showStripeOnboardingModal(): void;
|
|
@@ -4506,8 +4506,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
4506
4506
|
isPrePurchase: boolean;
|
|
4507
4507
|
makerFonts: any[];
|
|
4508
4508
|
eventButtonLocation?: string | undefined;
|
|
4509
|
+
websiteUpsellModalViewModel?: any;
|
|
4509
4510
|
showPublishOptionModal?: boolean | undefined;
|
|
4510
4511
|
abTests: Record<string, string>;
|
|
4512
|
+
isSubsequentPublish: boolean;
|
|
4511
4513
|
} & import("pinia").PiniaCustomStateProperties<import("../../../../brand-page-maker/stores").BrandPageContainerState>) => boolean;
|
|
4512
4514
|
isUserDraft: (state: {
|
|
4513
4515
|
availableTaxes: any[];
|
|
@@ -4565,8 +4567,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
4565
4567
|
isPrePurchase: boolean;
|
|
4566
4568
|
makerFonts: any[];
|
|
4567
4569
|
eventButtonLocation?: string | undefined;
|
|
4570
|
+
websiteUpsellModalViewModel?: any;
|
|
4568
4571
|
showPublishOptionModal?: boolean | undefined;
|
|
4569
4572
|
abTests: Record<string, string>;
|
|
4573
|
+
isSubsequentPublish: boolean;
|
|
4570
4574
|
} & import("pinia").PiniaCustomStateProperties<import("../../../../brand-page-maker/stores").BrandPageContainerState>) => boolean;
|
|
4571
4575
|
}, {
|
|
4572
4576
|
clearTriggerSaveEventApiOnPublishModalClose(): void;
|
|
@@ -4599,6 +4603,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
4599
4603
|
}): void;
|
|
4600
4604
|
setCreateCustomDomainErrorMessage(payload: any): void;
|
|
4601
4605
|
setBrandPageIsCustomDomainEnabled(payload: any): void;
|
|
4606
|
+
setIsSubsequentPublish(payload: any): void;
|
|
4602
4607
|
clearPublishErrorMessage(): void;
|
|
4603
4608
|
closePublishModal(payload?: {
|
|
4604
4609
|
skipShowNextNotificationMessage?: boolean | undefined;
|
|
@@ -4608,7 +4613,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
4608
4613
|
publishBrandPage({ shouldPublish, slug }: {
|
|
4609
4614
|
shouldPublish: any;
|
|
4610
4615
|
slug: any;
|
|
4611
|
-
}): Promise<
|
|
4616
|
+
}): Promise<false | {
|
|
4617
|
+
success: boolean;
|
|
4618
|
+
websiteUpsellModalViewModel: any;
|
|
4619
|
+
}>;
|
|
4612
4620
|
publishBrandPageWithCustomDomainAsync({ shouldPublish, slug, domain, isPurchasedDomain, }: {
|
|
4613
4621
|
shouldPublish: any;
|
|
4614
4622
|
slug: any;
|
|
@@ -4625,12 +4633,13 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
4625
4633
|
eventButtonLocation?: string | undefined;
|
|
4626
4634
|
}): Promise<false | {
|
|
4627
4635
|
saved: boolean;
|
|
4628
|
-
canPublish:
|
|
4636
|
+
canPublish: boolean;
|
|
4637
|
+
websiteUpsellModalViewModel: any;
|
|
4629
4638
|
}>;
|
|
4630
4639
|
saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
|
|
4631
4640
|
saveTemplate(): Promise<void>;
|
|
4632
4641
|
setBrandPageStatus(status: any): Promise<void>;
|
|
4633
|
-
showPublishModal(eventButtonLocation?: string | undefined): void;
|
|
4642
|
+
showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any, isSubsequentPublish?: boolean | undefined): void;
|
|
4634
4643
|
showBrandPageSlugEditModal(): Promise<void>;
|
|
4635
4644
|
showUpgradeModalAndSaveAsync(): Promise<void>;
|
|
4636
4645
|
showStripeOnboardingModal(): void;
|
|
@@ -4667,6 +4676,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
4667
4676
|
onDraggingStart: () => void;
|
|
4668
4677
|
onDraggingEnd: (ev: any) => void;
|
|
4669
4678
|
eventTracker: {
|
|
4679
|
+
sendExperimentStartedEvent: (abTestKey: string, abTestValue: string) => void;
|
|
4670
4680
|
setGlobalEventProps: (props: Omit<import("../../../../brand-page-maker/composables/useEventTracker").BpGlobalEventProps, "template_category">) => void;
|
|
4671
4681
|
setUpsellBridgeState: (props: import("../../../../brand-page-maker/composables/useEventTracker").BpUpsellEventProps) => void;
|
|
4672
4682
|
subscribe: (callbackFn: (event: import("../../../../brand-page-maker/composables/useEventTracker").BpEventTrackerEvent) => void) => void;
|
|
@@ -4675,6 +4685,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
4675
4685
|
sendUpsellOpenEvent: () => void;
|
|
4676
4686
|
sendUpsellContinuationEvent: (continuation: string) => void;
|
|
4677
4687
|
sendPublishOpenEvent: () => void;
|
|
4688
|
+
appendPublishBridgeState: (props: any) => void;
|
|
4678
4689
|
sendPublishContinuationEvent: (continuation: string, domain: string | null) => void;
|
|
4679
4690
|
sendWebsiteManageAddPageEvent: (pageName: string) => void;
|
|
4680
4691
|
sendWebsiteManageRemovePageEvent: (pageName: string) => void;
|
|
@@ -4687,6 +4698,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
4687
4698
|
sendTemplateCategorySelectEvent: (category: string) => void;
|
|
4688
4699
|
sendSidebarCategoryClickedEvent: (tabName: string) => void;
|
|
4689
4700
|
sendAddContentContinuationEvent: (continuation: string) => void;
|
|
4701
|
+
sendUpsellOfferEvent: (upsellType: string) => void;
|
|
4702
|
+
sendUpsellOfferActionEvent: (upsellType: string, action: string) => void;
|
|
4690
4703
|
};
|
|
4691
4704
|
}, {
|
|
4692
4705
|
isDeleteModalVisible: boolean;
|
|
@@ -3937,8 +3937,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3937
3937
|
isPrePurchase: boolean;
|
|
3938
3938
|
makerFonts: any[];
|
|
3939
3939
|
eventButtonLocation?: string | undefined;
|
|
3940
|
+
websiteUpsellModalViewModel?: any;
|
|
3940
3941
|
showPublishOptionModal?: boolean | undefined;
|
|
3941
3942
|
abTests: Record<string, string>;
|
|
3943
|
+
isSubsequentPublish: boolean;
|
|
3942
3944
|
} & import("pinia").PiniaCustomStateProperties<import("../../../../brand-page-maker/stores").BrandPageContainerState>) => boolean;
|
|
3943
3945
|
isUserDraft: (state: {
|
|
3944
3946
|
availableTaxes: any[];
|
|
@@ -3996,8 +3998,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3996
3998
|
isPrePurchase: boolean;
|
|
3997
3999
|
makerFonts: any[];
|
|
3998
4000
|
eventButtonLocation?: string | undefined;
|
|
4001
|
+
websiteUpsellModalViewModel?: any;
|
|
3999
4002
|
showPublishOptionModal?: boolean | undefined;
|
|
4000
4003
|
abTests: Record<string, string>;
|
|
4004
|
+
isSubsequentPublish: boolean;
|
|
4001
4005
|
} & import("pinia").PiniaCustomStateProperties<import("../../../../brand-page-maker/stores").BrandPageContainerState>) => boolean;
|
|
4002
4006
|
}, {
|
|
4003
4007
|
clearTriggerSaveEventApiOnPublishModalClose(): void;
|
|
@@ -4030,6 +4034,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4030
4034
|
}): void;
|
|
4031
4035
|
setCreateCustomDomainErrorMessage(payload: any): void;
|
|
4032
4036
|
setBrandPageIsCustomDomainEnabled(payload: any): void;
|
|
4037
|
+
setIsSubsequentPublish(payload: any): void;
|
|
4033
4038
|
clearPublishErrorMessage(): void;
|
|
4034
4039
|
closePublishModal(payload?: {
|
|
4035
4040
|
skipShowNextNotificationMessage?: boolean | undefined;
|
|
@@ -4039,7 +4044,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4039
4044
|
publishBrandPage({ shouldPublish, slug }: {
|
|
4040
4045
|
shouldPublish: any;
|
|
4041
4046
|
slug: any;
|
|
4042
|
-
}): Promise<
|
|
4047
|
+
}): Promise<false | {
|
|
4048
|
+
success: boolean;
|
|
4049
|
+
websiteUpsellModalViewModel: any;
|
|
4050
|
+
}>;
|
|
4043
4051
|
publishBrandPageWithCustomDomainAsync({ shouldPublish, slug, domain, isPurchasedDomain, }: {
|
|
4044
4052
|
shouldPublish: any;
|
|
4045
4053
|
slug: any;
|
|
@@ -4056,12 +4064,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4056
4064
|
eventButtonLocation?: string | undefined;
|
|
4057
4065
|
}): Promise<false | {
|
|
4058
4066
|
saved: boolean;
|
|
4059
|
-
canPublish:
|
|
4067
|
+
canPublish: boolean;
|
|
4068
|
+
websiteUpsellModalViewModel: any;
|
|
4060
4069
|
}>;
|
|
4061
4070
|
saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
|
|
4062
4071
|
saveTemplate(): Promise<void>;
|
|
4063
4072
|
setBrandPageStatus(status: any): Promise<void>;
|
|
4064
|
-
showPublishModal(eventButtonLocation?: string | undefined): void;
|
|
4073
|
+
showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any, isSubsequentPublish?: boolean | undefined): void;
|
|
4065
4074
|
showBrandPageSlugEditModal(): Promise<void>;
|
|
4066
4075
|
showUpgradeModalAndSaveAsync(): Promise<void>;
|
|
4067
4076
|
showStripeOnboardingModal(): void;
|
package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts
CHANGED
|
@@ -45,7 +45,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
45
45
|
publishBrandPage: import("vue").ComputedRef<({ shouldPublish, slug }: {
|
|
46
46
|
shouldPublish: any;
|
|
47
47
|
slug: any;
|
|
48
|
-
}) => Promise<
|
|
48
|
+
}) => Promise<false | {
|
|
49
|
+
success: boolean;
|
|
50
|
+
websiteUpsellModalViewModel: any;
|
|
51
|
+
}>>;
|
|
49
52
|
publishCustomDomain: import("vue").ComputedRef<({ shouldPublish, slug, domain, isPurchasedDomain, }: {
|
|
50
53
|
shouldPublish: any;
|
|
51
54
|
slug: any;
|
|
@@ -59,12 +62,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
59
62
|
errorMessage: import("vue").ComputedRef<string | null>;
|
|
60
63
|
publishErrorMessage: import("vue").ComputedRef<string>;
|
|
61
64
|
isBrandPageSlugEditMode: import("vue").ComputedRef<boolean>;
|
|
65
|
+
abTests: import("vue").ComputedRef<Record<string, string>>;
|
|
62
66
|
brandPageType: import("vue").ComputedRef<"default" | "brandSite" | "brandContact">;
|
|
67
|
+
isSubsequentPublish: import("vue").ComputedRef<boolean>;
|
|
63
68
|
brandPageMakerStore: import("pinia").Store<"brandPageMaker", import("../../brand-page-maker/stores").BrandPageMakerState, {
|
|
64
69
|
contentErrorCount(): number;
|
|
65
70
|
brandPageBaseUrl(): string;
|
|
66
71
|
brandPageContentTypes(): string[];
|
|
67
|
-
brandPageData(): import("../../brand-page").BrandPageModel;
|
|
72
|
+
brandPageData(): import("../../brand-page/models").BrandPageModel;
|
|
68
73
|
brandPageToken(): string | undefined;
|
|
69
74
|
brandPageDescription(): string;
|
|
70
75
|
brandPageSlug(): string;
|
|
@@ -147,17 +152,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
147
152
|
onTemplateSelected(payload: import("../../brand-page-maker/stores").OnTemplateSelectedPayload): void;
|
|
148
153
|
setSelectedTabName(payload: any): void;
|
|
149
154
|
showNextNotificationMessage(): Promise<void>;
|
|
150
|
-
updateContent<TContent extends import("../../brand-page").Content, P extends {
|
|
155
|
+
updateContent<TContent extends import("../../brand-page/models").Content, P extends {
|
|
151
156
|
id: string;
|
|
152
157
|
content: TContent;
|
|
153
158
|
}>(payload: P): Promise<void>;
|
|
154
|
-
export(): import("../../brand-page").BrandPageModel;
|
|
159
|
+
export(): import("../../brand-page/models").BrandPageModel;
|
|
155
160
|
setBrandPageType({ brandPageType }: {
|
|
156
161
|
brandPageType: "default" | "brandSite" | "brandContact";
|
|
157
162
|
}): void;
|
|
158
163
|
initialise({ brandPage, brandPageType, emailAddress, features, logoDraftDesignAttributes, unsplashApplicationName, templateCategories, personalisationData, isPersonalisationEnabled, businessName, logoVariationImageUrls, shopConfigData, }: import("../../brand-page-maker/stores").InitialisePayload): Promise<void>;
|
|
159
164
|
initialisePages({ pages, sections, }: {
|
|
160
|
-
pages: import("../../brand-page").PageModel[];
|
|
165
|
+
pages: import("../../brand-page/models").PageModel[];
|
|
161
166
|
sections: import("../page-settings/store").PageSettingsStateSections;
|
|
162
167
|
}): void;
|
|
163
168
|
initialiseAdminMaker(payload: {
|
|
@@ -173,7 +178,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
173
178
|
validateContentItems(): Promise<void>;
|
|
174
179
|
validateBrandPageData(): Promise<void>;
|
|
175
180
|
setViewport(payload: {
|
|
176
|
-
viewport: import("../../brand-page").ViewportsType;
|
|
181
|
+
viewport: import("../../brand-page/models").ViewportsType;
|
|
177
182
|
}): void;
|
|
178
183
|
showStripeOnboardingModal(): Promise<void>;
|
|
179
184
|
selectInitialCategories(payload: import("../template-settings/models").InitialCategories): void;
|
|
@@ -237,8 +242,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
237
242
|
isPrePurchase: boolean;
|
|
238
243
|
makerFonts: any[];
|
|
239
244
|
eventButtonLocation?: string | undefined;
|
|
245
|
+
websiteUpsellModalViewModel?: any;
|
|
240
246
|
showPublishOptionModal?: boolean | undefined;
|
|
241
247
|
abTests: Record<string, string>;
|
|
248
|
+
isSubsequentPublish: boolean;
|
|
242
249
|
} & import("pinia").PiniaCustomStateProperties<import("../../brand-page-maker/stores").BrandPageContainerState>) => boolean;
|
|
243
250
|
isUserDraft: (state: {
|
|
244
251
|
availableTaxes: any[];
|
|
@@ -296,8 +303,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
296
303
|
isPrePurchase: boolean;
|
|
297
304
|
makerFonts: any[];
|
|
298
305
|
eventButtonLocation?: string | undefined;
|
|
306
|
+
websiteUpsellModalViewModel?: any;
|
|
299
307
|
showPublishOptionModal?: boolean | undefined;
|
|
300
308
|
abTests: Record<string, string>;
|
|
309
|
+
isSubsequentPublish: boolean;
|
|
301
310
|
} & import("pinia").PiniaCustomStateProperties<import("../../brand-page-maker/stores").BrandPageContainerState>) => boolean;
|
|
302
311
|
}, {
|
|
303
312
|
clearTriggerSaveEventApiOnPublishModalClose(): void;
|
|
@@ -330,6 +339,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
330
339
|
}): void;
|
|
331
340
|
setCreateCustomDomainErrorMessage(payload: any): void;
|
|
332
341
|
setBrandPageIsCustomDomainEnabled(payload: any): void;
|
|
342
|
+
setIsSubsequentPublish(payload: any): void;
|
|
333
343
|
clearPublishErrorMessage(): void;
|
|
334
344
|
closePublishModal(payload?: {
|
|
335
345
|
skipShowNextNotificationMessage?: boolean | undefined;
|
|
@@ -339,7 +349,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
339
349
|
publishBrandPage({ shouldPublish, slug }: {
|
|
340
350
|
shouldPublish: any;
|
|
341
351
|
slug: any;
|
|
342
|
-
}): Promise<
|
|
352
|
+
}): Promise<false | {
|
|
353
|
+
success: boolean;
|
|
354
|
+
websiteUpsellModalViewModel: any;
|
|
355
|
+
}>;
|
|
343
356
|
publishBrandPageWithCustomDomainAsync({ shouldPublish, slug, domain, isPurchasedDomain, }: {
|
|
344
357
|
shouldPublish: any;
|
|
345
358
|
slug: any;
|
|
@@ -356,12 +369,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
356
369
|
eventButtonLocation?: string | undefined;
|
|
357
370
|
}): Promise<false | {
|
|
358
371
|
saved: boolean;
|
|
359
|
-
canPublish:
|
|
372
|
+
canPublish: boolean;
|
|
373
|
+
websiteUpsellModalViewModel: any;
|
|
360
374
|
}>;
|
|
361
375
|
saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
|
|
362
376
|
saveTemplate(): Promise<void>;
|
|
363
377
|
setBrandPageStatus(status: any): Promise<void>;
|
|
364
|
-
showPublishModal(eventButtonLocation?: string | undefined): void;
|
|
378
|
+
showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any, isSubsequentPublish?: boolean | undefined): void;
|
|
365
379
|
showBrandPageSlugEditModal(): Promise<void>;
|
|
366
380
|
showUpgradeModalAndSaveAsync(): Promise<void>;
|
|
367
381
|
showStripeOnboardingModal(): void;
|
|
@@ -394,6 +408,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
394
408
|
}): Promise<void>;
|
|
395
409
|
}>;
|
|
396
410
|
eventTracker: {
|
|
411
|
+
sendExperimentStartedEvent: (abTestKey: string, abTestValue: string) => void;
|
|
397
412
|
setGlobalEventProps: (props: Omit<import("../../brand-page-maker/composables/useEventTracker").BpGlobalEventProps, "template_category">) => void;
|
|
398
413
|
setUpsellBridgeState: (props: import("../../brand-page-maker/composables/useEventTracker").BpUpsellEventProps) => void;
|
|
399
414
|
subscribe: (callbackFn: (event: import("../../brand-page-maker/composables/useEventTracker").BpEventTrackerEvent) => void) => void;
|
|
@@ -402,6 +417,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
402
417
|
sendUpsellOpenEvent: () => void;
|
|
403
418
|
sendUpsellContinuationEvent: (continuation: string) => void;
|
|
404
419
|
sendPublishOpenEvent: () => void;
|
|
420
|
+
appendPublishBridgeState: (props: any) => void;
|
|
405
421
|
sendPublishContinuationEvent: (continuation: string, domain: string | null) => void;
|
|
406
422
|
sendWebsiteManageAddPageEvent: (pageName: string) => void;
|
|
407
423
|
sendWebsiteManageRemovePageEvent: (pageName: string) => void;
|
|
@@ -414,6 +430,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
414
430
|
sendTemplateCategorySelectEvent: (category: string) => void;
|
|
415
431
|
sendSidebarCategoryClickedEvent: (tabName: string) => void;
|
|
416
432
|
sendAddContentContinuationEvent: (continuation: string) => void;
|
|
433
|
+
sendUpsellOfferEvent: (upsellType: string) => void;
|
|
434
|
+
sendUpsellOfferActionEvent: (upsellType: string, action: string) => void;
|
|
417
435
|
};
|
|
418
436
|
}, {
|
|
419
437
|
purchasedDomains: UserDomainName[];
|
|
@@ -437,6 +455,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
437
455
|
getBusinessName(): string | undefined;
|
|
438
456
|
hasPurchasedDomains(): boolean;
|
|
439
457
|
isActiveDomain(): boolean;
|
|
458
|
+
showUpsellRotation(): boolean;
|
|
440
459
|
}, {
|
|
441
460
|
closeModal(): void;
|
|
442
461
|
onCopyUrlClicked(): void;
|
|
@@ -450,7 +469,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
450
469
|
onResetDomain(): void;
|
|
451
470
|
onSlugChanged(e: any): void;
|
|
452
471
|
onPublish(slug: string, domain: DomainObjectType): Promise<void>;
|
|
453
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("on-close" | "on-publish" | "on-slug-changed" | "on-publish-options")[], "on-close" | "on-publish" | "on-slug-changed" | "on-publish-options", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
472
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("on-close" | "on-publish" | "on-slug-changed" | "on-publish-options" | "upsell-offered")[], "on-close" | "on-publish" | "on-slug-changed" | "on-publish-options" | "upsell-offered", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
454
473
|
visible: {
|
|
455
474
|
type: BooleanConstructor;
|
|
456
475
|
default: boolean;
|
|
@@ -475,6 +494,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
475
494
|
"onOn-publish"?: ((...args: any[]) => any) | undefined;
|
|
476
495
|
"onOn-slug-changed"?: ((...args: any[]) => any) | undefined;
|
|
477
496
|
"onOn-publish-options"?: ((...args: any[]) => any) | undefined;
|
|
497
|
+
"onUpsell-offered"?: ((...args: any[]) => any) | undefined;
|
|
478
498
|
}>, {
|
|
479
499
|
shouldPublish: boolean;
|
|
480
500
|
visible: boolean;
|
package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.js
CHANGED
|
@@ -5,6 +5,7 @@ import { CUSTOM_DOMAIN_STATUSES, DOMAIN_TYPE, } from '../../brand-page-maker/con
|
|
|
5
5
|
import { defaultUSDCurrency } from '../../brand-page-maker/constants/currency-constants';
|
|
6
6
|
import { PUBLISH_MODAL_CONTINUATION_EVENTS, useEventTracker, } from '../../brand-page-maker/composables/useEventTracker';
|
|
7
7
|
import { publishBrandPageModalWithStateTr } from '../../composables/useTranslate';
|
|
8
|
+
import { BRAND_PAGE_TYPES } from '../../brand-page/models';
|
|
8
9
|
export default defineComponent({
|
|
9
10
|
props: {
|
|
10
11
|
visible: {
|
|
@@ -27,7 +28,13 @@ export default defineComponent({
|
|
|
27
28
|
default: false,
|
|
28
29
|
},
|
|
29
30
|
},
|
|
30
|
-
emits: [
|
|
31
|
+
emits: [
|
|
32
|
+
'on-close',
|
|
33
|
+
'on-publish',
|
|
34
|
+
'on-slug-changed',
|
|
35
|
+
'on-publish-options',
|
|
36
|
+
'upsell-offered',
|
|
37
|
+
],
|
|
31
38
|
setup() {
|
|
32
39
|
const brandPageMakerStore = useBrandPageMakerStore();
|
|
33
40
|
const brandPageContainerStore = useBrandPageContainerStore();
|
|
@@ -63,7 +70,9 @@ export default defineComponent({
|
|
|
63
70
|
errorMessage: computed(() => brandPageContainerStore.createCustomDomainErrorMessage),
|
|
64
71
|
publishErrorMessage: computed(() => brandPageContainerStore.publishErrorMessage),
|
|
65
72
|
isBrandPageSlugEditMode: computed(() => brandPageContainerStore.isBrandPageSlugEditMode),
|
|
73
|
+
abTests: computed(() => brandPageContainerStore.abTests),
|
|
66
74
|
brandPageType: computed(() => brandPageMakerStore.brandPageType),
|
|
75
|
+
isSubsequentPublish: computed(() => brandPageContainerStore.isSubsequentPublish),
|
|
67
76
|
brandPageMakerStore,
|
|
68
77
|
brandPageContainerStore,
|
|
69
78
|
eventTracker,
|
|
@@ -124,6 +133,11 @@ export default defineComponent({
|
|
|
124
133
|
this.brandPageContainerStore.customDomain.status ===
|
|
125
134
|
CUSTOM_DOMAIN_STATUSES.active);
|
|
126
135
|
},
|
|
136
|
+
showUpsellRotation() {
|
|
137
|
+
return (this.abTests.bp_4092_rotating_upsells_at_publish &&
|
|
138
|
+
this.abTests.bp_4092_rotating_upsells_at_publish.isVariation &&
|
|
139
|
+
this.brandPageMakerStore.brandPageType === BRAND_PAGE_TYPES.brandSite);
|
|
140
|
+
},
|
|
127
141
|
},
|
|
128
142
|
watch: {
|
|
129
143
|
customDomain(newCustomDomain) {
|
|
@@ -206,12 +220,21 @@ export default defineComponent({
|
|
|
206
220
|
domain: domain,
|
|
207
221
|
isPurchasedDomain: this.hasPurchasedDomains,
|
|
208
222
|
});
|
|
223
|
+
this.brandPageContainerStore.setIsPublishModalVisible({
|
|
224
|
+
isVisible: true,
|
|
225
|
+
});
|
|
209
226
|
}
|
|
210
227
|
else {
|
|
211
|
-
await this.publishBrandPage({
|
|
228
|
+
const response = await this.publishBrandPage({
|
|
212
229
|
shouldPublish: this.shouldPublish,
|
|
213
230
|
slug: slug,
|
|
214
231
|
});
|
|
232
|
+
this.brandPageContainerStore.setIsPublishModalVisible({
|
|
233
|
+
isVisible: true,
|
|
234
|
+
websiteUpsellModalViewModel: response?.websiteUpsellModalViewModel
|
|
235
|
+
? response.websiteUpsellModalViewModel
|
|
236
|
+
: undefined,
|
|
237
|
+
});
|
|
215
238
|
}
|
|
216
239
|
this.eventTracker.sendPublishContinuationEvent(PUBLISH_MODAL_CONTINUATION_EVENTS.PUBLISH, domain?.domainName || null);
|
|
217
240
|
this.isLoading = false;
|
|
@@ -73,8 +73,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
73
73
|
isPrePurchase: boolean;
|
|
74
74
|
makerFonts: any[];
|
|
75
75
|
eventButtonLocation?: string | undefined;
|
|
76
|
+
websiteUpsellModalViewModel?: any;
|
|
76
77
|
showPublishOptionModal?: boolean | undefined;
|
|
77
78
|
abTests: Record<string, string>;
|
|
79
|
+
isSubsequentPublish: boolean;
|
|
78
80
|
} & import("pinia").PiniaCustomStateProperties<import("../../../brand-page-maker/stores").BrandPageContainerState>) => boolean;
|
|
79
81
|
isUserDraft: (state: {
|
|
80
82
|
availableTaxes: any[];
|
|
@@ -132,8 +134,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
132
134
|
isPrePurchase: boolean;
|
|
133
135
|
makerFonts: any[];
|
|
134
136
|
eventButtonLocation?: string | undefined;
|
|
137
|
+
websiteUpsellModalViewModel?: any;
|
|
135
138
|
showPublishOptionModal?: boolean | undefined;
|
|
136
139
|
abTests: Record<string, string>;
|
|
140
|
+
isSubsequentPublish: boolean;
|
|
137
141
|
} & import("pinia").PiniaCustomStateProperties<import("../../../brand-page-maker/stores").BrandPageContainerState>) => boolean;
|
|
138
142
|
}, {
|
|
139
143
|
clearTriggerSaveEventApiOnPublishModalClose(): void;
|
|
@@ -166,6 +170,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
166
170
|
}): void;
|
|
167
171
|
setCreateCustomDomainErrorMessage(payload: any): void;
|
|
168
172
|
setBrandPageIsCustomDomainEnabled(payload: any): void;
|
|
173
|
+
setIsSubsequentPublish(payload: any): void;
|
|
169
174
|
clearPublishErrorMessage(): void;
|
|
170
175
|
closePublishModal(payload?: {
|
|
171
176
|
skipShowNextNotificationMessage?: boolean | undefined;
|
|
@@ -175,7 +180,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
175
180
|
publishBrandPage({ shouldPublish, slug }: {
|
|
176
181
|
shouldPublish: any;
|
|
177
182
|
slug: any;
|
|
178
|
-
}): Promise<
|
|
183
|
+
}): Promise<false | {
|
|
184
|
+
success: boolean;
|
|
185
|
+
websiteUpsellModalViewModel: any;
|
|
186
|
+
}>;
|
|
179
187
|
publishBrandPageWithCustomDomainAsync({ shouldPublish, slug, domain, isPurchasedDomain, }: {
|
|
180
188
|
shouldPublish: any;
|
|
181
189
|
slug: any;
|
|
@@ -192,12 +200,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
192
200
|
eventButtonLocation?: string | undefined;
|
|
193
201
|
}): Promise<false | {
|
|
194
202
|
saved: boolean;
|
|
195
|
-
canPublish:
|
|
203
|
+
canPublish: boolean;
|
|
204
|
+
websiteUpsellModalViewModel: any;
|
|
196
205
|
}>;
|
|
197
206
|
saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
|
|
198
207
|
saveTemplate(): Promise<void>;
|
|
199
208
|
setBrandPageStatus(status: any): Promise<void>;
|
|
200
|
-
showPublishModal(eventButtonLocation?: string | undefined): void;
|
|
209
|
+
showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any, isSubsequentPublish?: boolean | undefined): void;
|
|
201
210
|
showBrandPageSlugEditModal(): Promise<void>;
|
|
202
211
|
showUpgradeModalAndSaveAsync(): Promise<void>;
|
|
203
212
|
showStripeOnboardingModal(): void;
|
|
@@ -13,6 +13,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
13
13
|
}>;
|
|
14
14
|
isDesignCom: import("vue").ComputedRef<boolean>;
|
|
15
15
|
eventTracker: {
|
|
16
|
+
sendExperimentStartedEvent: (abTestKey: string, abTestValue: string) => void;
|
|
16
17
|
setGlobalEventProps: (props: Omit<import("../../../brand-page-maker/composables/useEventTracker").BpGlobalEventProps, "template_category">) => void;
|
|
17
18
|
setUpsellBridgeState: (props: import("../../../brand-page-maker/composables/useEventTracker").BpUpsellEventProps) => void;
|
|
18
19
|
subscribe: (callbackFn: (event: import("../../../brand-page-maker/composables/useEventTracker").BpEventTrackerEvent) => void) => void;
|
|
@@ -21,6 +22,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
21
22
|
sendUpsellOpenEvent: () => void;
|
|
22
23
|
sendUpsellContinuationEvent: (continuation: string) => void;
|
|
23
24
|
sendPublishOpenEvent: () => void;
|
|
25
|
+
appendPublishBridgeState: (props: any) => void;
|
|
24
26
|
sendPublishContinuationEvent: (continuation: string, domain: string | null) => void;
|
|
25
27
|
sendWebsiteManageAddPageEvent: (pageName: string) => void;
|
|
26
28
|
sendWebsiteManageRemovePageEvent: (pageName: string) => void;
|
|
@@ -33,6 +35,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
33
35
|
sendTemplateCategorySelectEvent: (category: string) => void;
|
|
34
36
|
sendSidebarCategoryClickedEvent: (tabName: string) => void;
|
|
35
37
|
sendAddContentContinuationEvent: (continuation: string) => void;
|
|
38
|
+
sendUpsellOfferEvent: (upsellType: string) => void;
|
|
39
|
+
sendUpsellOfferActionEvent: (upsellType: string, action: string) => void;
|
|
36
40
|
};
|
|
37
41
|
}, {}, {}, {
|
|
38
42
|
onTabSelected(tabName: string): void;
|