@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.
Files changed (55) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-GGeRP-yJ.js → CreatedOnBrandCrowd-de-de-DxLeSo0D.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-D-mcoYKD.js → CreatedOnBrandCrowd-en-us-p9-PKTfD.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-UB-XVZLH.js → CreatedOnBrandCrowd-es-es-Dg1DkZwL.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-BcLwD-Ww.js → CreatedOnBrandCrowd-fr-fr-r6Ers47p.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-pt-pt-DuTtIiT7.js → CreatedOnBrandCrowd-pt-pt-CRvyq6iB.js} +1 -1
  6. package/lib/src/{CreatedOnDcom-de-de-6nOtKdaY.js → CreatedOnDcom-de-de-DfCzyu8K.js} +1 -1
  7. package/lib/src/{CreatedOnDcom-en-us-BlzEFog2.js → CreatedOnDcom-en-us-CP6lT2IJ.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-es-es-B_v3IYem.js → CreatedOnDcom-es-es-CABw9-cD.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-fr-fr-DmWvH9K_.js → CreatedOnDcom-fr-fr-DIN2-W0Q.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-pt-pt-P25mfZVx.js → CreatedOnDcom-pt-pt-BLTdvqrM.js} +1 -1
  11. package/lib/src/brand-page/models/brand-page-context.model.d.ts +2 -0
  12. package/lib/src/brand-page/models/brand-page-context.model.js +2 -1
  13. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +12 -3
  14. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.js +1 -0
  15. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +16 -3
  16. package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.d.ts +12 -3
  17. package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +12 -3
  18. package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +12 -3
  19. package/lib/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.d.ts +12 -3
  20. package/lib/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.d.ts +12 -3
  21. package/lib/src/brand-page-maker/composables/useEventTracker.d.ts +7 -1
  22. package/lib/src/brand-page-maker/composables/useEventTracker.js +29 -4
  23. package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.d.ts +14 -3
  24. package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.js +56 -9
  25. package/lib/src/brand-page-maker/stores/route/localised-route-store.js +6 -0
  26. package/lib/src/clients/brand-page-client.d.ts +20 -3
  27. package/lib/src/clients/brand-page-client.js +29 -17
  28. package/lib/src/css/library.brand-page-brandCrowd.min.css +14 -11
  29. package/lib/src/css/library.brand-page-brandPage.min.css +14 -11
  30. package/lib/src/css/library.brand-page-designCom.min.css +14 -11
  31. package/lib/src/css/library.brand-page-preview.min.css +14 -11
  32. package/lib/src/index.mjs +35 -34
  33. package/lib/src/{lib-CQSKlB0S.js → lib-OVp_vdPB.js} +20480 -20315
  34. package/lib/src/mockServiceWorker.js +1 -1
  35. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +4 -0
  36. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +4 -0
  37. package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +12 -3
  38. package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +12 -3
  39. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +16 -3
  40. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +12 -3
  41. package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +30 -10
  42. package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.js +25 -2
  43. package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +12 -3
  44. package/lib/src/shared/side-bar/components/SideBarTabButton.mixin.d.ts +4 -0
  45. package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +16 -3
  46. package/lib/src/shared/template-settings/components/TemplatesSettings.mixin.d.ts +4 -0
  47. package/package.json +2 -2
  48. package/src/brand-page/models/brand-page-context.model.ts +7 -1
  49. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.ts +1 -0
  50. package/src/brand-page-maker/composables/useEventTracker.ts +37 -4
  51. package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.ts +96 -9
  52. package/src/brand-page-maker/stores/route/localised-route-store.ts +6 -0
  53. package/src/clients/brand-page-client.ts +55 -20
  54. package/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.ts +31 -2
  55. package/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.vue +8 -0
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-CQSKlB0S.js";
2
+ import { _ as t } from "./lib-OVp_vdPB.js";
3
3
  const i = {}, h = {
4
4
  width: "275",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-CQSKlB0S.js";
2
+ import { _ as t } from "./lib-OVp_vdPB.js";
3
3
  const i = {}, h = {
4
4
  width: "251",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-CQSKlB0S.js";
2
+ import { _ as t } from "./lib-OVp_vdPB.js";
3
3
  const i = {}, h = {
4
4
  width: "250",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-CQSKlB0S.js";
2
+ import { _ as t } from "./lib-OVp_vdPB.js";
3
3
  const i = {}, h = {
4
4
  width: "237",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-CQSKlB0S.js";
2
+ import { _ as t } from "./lib-OVp_vdPB.js";
3
3
  const i = {}, h = {
4
4
  width: "263",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-CQSKlB0S.js";
2
+ import { _ as e } from "./lib-OVp_vdPB.js";
3
3
  const M = {}, Z = {
4
4
  width: "242",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-CQSKlB0S.js";
2
+ import { _ as e } from "./lib-OVp_vdPB.js";
3
3
  const i = {}, M = {
4
4
  width: "231",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-CQSKlB0S.js";
2
+ import { _ as e } from "./lib-OVp_vdPB.js";
3
3
  const M = {}, Z = {
4
4
  width: "230",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-CQSKlB0S.js";
2
+ import { _ as e } from "./lib-OVp_vdPB.js";
3
3
  const i = {}, l = {
4
4
  width: "216",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as M } from "./lib-CQSKlB0S.js";
2
+ import { _ as M } from "./lib-OVp_vdPB.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -36,6 +36,7 @@ export interface AbTestResult {
36
36
  }
37
37
  export interface AbTest {
38
38
  bp_3926_freemium_watermark?: AbTestResult;
39
+ bp_4092_rotating_upsells_at_publish?: AbTestResult;
39
40
  }
40
41
  export declare const MEDIA_SIZES: {
41
42
  readonly size1x: "size1x";
@@ -74,4 +75,5 @@ export interface BrandPageContext {
74
75
  isCapturingPreview: boolean;
75
76
  disableLogoRenderOnServerside?: boolean;
76
77
  }
78
+ export declare const getValueType: (key: string, abtestValue?: string) => AbTestResult;
77
79
  export declare const getAbTestResults: (abtestKeyValues: Record<string, string>) => AbTest;
@@ -24,13 +24,14 @@ export const AB_TEST_FLAG = {
24
24
  };
25
25
  const AB_TEST_KEYS = {
26
26
  BP_3926_FREEMIUM_WATERMARK: 'bc-bp-3926-freemium-cta-in-website-editor',
27
+ BP_4092_ROTATING_UPSELLS_AT_PUBLISH: 'bc-bp-4092-rotating-upsells-at-website-publish',
27
28
  };
28
29
  export const MEDIA_SIZES = {
29
30
  size1x: 'size1x',
30
31
  size2x: 'size2x',
31
32
  sizeThumb: 'sizeThumb',
32
33
  };
33
- const getValueType = (key, abtestValue) => {
34
+ export const getValueType = (key, abtestValue) => {
34
35
  return {
35
36
  key: key,
36
37
  value: abtestValue || '',
@@ -246,8 +246,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
246
246
  isPrePurchase: boolean;
247
247
  makerFonts: any[];
248
248
  eventButtonLocation?: string | undefined;
249
+ websiteUpsellModalViewModel?: any;
249
250
  showPublishOptionModal?: boolean | undefined;
250
251
  abTests: Record<string, string>;
252
+ isSubsequentPublish: boolean;
251
253
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
252
254
  isUserDraft: (state: {
253
255
  availableTaxes: any[];
@@ -305,8 +307,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
305
307
  isPrePurchase: boolean;
306
308
  makerFonts: any[];
307
309
  eventButtonLocation?: string | undefined;
310
+ websiteUpsellModalViewModel?: any;
308
311
  showPublishOptionModal?: boolean | undefined;
309
312
  abTests: Record<string, string>;
313
+ isSubsequentPublish: boolean;
310
314
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
311
315
  }, {
312
316
  clearTriggerSaveEventApiOnPublishModalClose(): void;
@@ -339,6 +343,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
339
343
  }): void;
340
344
  setCreateCustomDomainErrorMessage(payload: any): void;
341
345
  setBrandPageIsCustomDomainEnabled(payload: any): void;
346
+ setIsSubsequentPublish(payload: any): void;
342
347
  clearPublishErrorMessage(): void;
343
348
  closePublishModal(payload?: {
344
349
  skipShowNextNotificationMessage?: boolean | undefined;
@@ -348,7 +353,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
348
353
  publishBrandPage({ shouldPublish, slug }: {
349
354
  shouldPublish: any;
350
355
  slug: any;
351
- }): Promise<boolean>;
356
+ }): Promise<false | {
357
+ success: boolean;
358
+ websiteUpsellModalViewModel: any;
359
+ }>;
352
360
  publishBrandPageWithCustomDomainAsync({ shouldPublish, slug, domain, isPurchasedDomain, }: {
353
361
  shouldPublish: any;
354
362
  slug: any;
@@ -365,12 +373,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
365
373
  eventButtonLocation?: string | undefined;
366
374
  }): Promise<false | {
367
375
  saved: boolean;
368
- canPublish: any;
376
+ canPublish: boolean;
377
+ websiteUpsellModalViewModel: any;
369
378
  }>;
370
379
  saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
371
380
  saveTemplate(): Promise<void>;
372
381
  setBrandPageStatus(status: any): Promise<void>;
373
- showPublishModal(eventButtonLocation?: string | undefined): void;
382
+ showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any, isSubsequentPublish?: boolean | undefined): void;
374
383
  showBrandPageSlugEditModal(): Promise<void>;
375
384
  showUpgradeModalAndSaveAsync(): Promise<void>;
376
385
  showStripeOnboardingModal(): void;
@@ -175,6 +175,7 @@ const InitialiseMakerStores = (options) => {
175
175
  triggerSaveSuccessMessage: false,
176
176
  triggerSaveEventApiOnPublishModalClose: false,
177
177
  abTests: {},
178
+ isSubsequentPublish: false,
178
179
  });
179
180
  userStore.setIsAdmin({ isAdmin: options.isAdmin || false });
180
181
  userStore.setHasBrandPagePremiumSubscription(false);
@@ -684,8 +684,10 @@ declare const _default: import("vue").DefineComponent<{}, {
684
684
  isPrePurchase: boolean;
685
685
  makerFonts: any[];
686
686
  eventButtonLocation?: string | undefined;
687
+ websiteUpsellModalViewModel?: any;
687
688
  showPublishOptionModal?: boolean | undefined;
688
689
  abTests: Record<string, string>;
690
+ isSubsequentPublish: boolean;
689
691
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
690
692
  isUserDraft: (state: {
691
693
  availableTaxes: any[];
@@ -743,8 +745,10 @@ declare const _default: import("vue").DefineComponent<{}, {
743
745
  isPrePurchase: boolean;
744
746
  makerFonts: any[];
745
747
  eventButtonLocation?: string | undefined;
748
+ websiteUpsellModalViewModel?: any;
746
749
  showPublishOptionModal?: boolean | undefined;
747
750
  abTests: Record<string, string>;
751
+ isSubsequentPublish: boolean;
748
752
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
749
753
  }, {
750
754
  clearTriggerSaveEventApiOnPublishModalClose(): void;
@@ -777,6 +781,7 @@ declare const _default: import("vue").DefineComponent<{}, {
777
781
  }): void;
778
782
  setCreateCustomDomainErrorMessage(payload: any): void;
779
783
  setBrandPageIsCustomDomainEnabled(payload: any): void;
784
+ setIsSubsequentPublish(payload: any): void;
780
785
  clearPublishErrorMessage(): void;
781
786
  closePublishModal(payload?: {
782
787
  skipShowNextNotificationMessage?: boolean | undefined;
@@ -786,7 +791,10 @@ declare const _default: import("vue").DefineComponent<{}, {
786
791
  publishBrandPage({ shouldPublish, slug }: {
787
792
  shouldPublish: any;
788
793
  slug: any;
789
- }): Promise<boolean>;
794
+ }): Promise<false | {
795
+ success: boolean;
796
+ websiteUpsellModalViewModel: any;
797
+ }>;
790
798
  publishBrandPageWithCustomDomainAsync({ shouldPublish, slug, domain, isPurchasedDomain, }: {
791
799
  shouldPublish: any;
792
800
  slug: any;
@@ -803,12 +811,13 @@ declare const _default: import("vue").DefineComponent<{}, {
803
811
  eventButtonLocation?: string | undefined;
804
812
  }): Promise<false | {
805
813
  saved: boolean;
806
- canPublish: any;
814
+ canPublish: boolean;
815
+ websiteUpsellModalViewModel: any;
807
816
  }>;
808
817
  saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
809
818
  saveTemplate(): Promise<void>;
810
819
  setBrandPageStatus(status: any): Promise<void>;
811
- showPublishModal(eventButtonLocation?: string | undefined): void;
820
+ showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any, isSubsequentPublish?: boolean | undefined): void;
812
821
  showBrandPageSlugEditModal(): Promise<void>;
813
822
  showUpgradeModalAndSaveAsync(): Promise<void>;
814
823
  showStripeOnboardingModal(): void;
@@ -971,6 +980,7 @@ declare const _default: import("vue").DefineComponent<{}, {
971
980
  setPreviousSelectedDisplayStyle(viewport: string, displayStyle: string): void;
972
981
  }>;
973
982
  eventTracker: {
983
+ sendExperimentStartedEvent: (abTestKey: string, abTestValue: string) => void;
974
984
  setGlobalEventProps: (props: Omit<import("../../../brand-page-maker/composables/useEventTracker").BpGlobalEventProps, "template_category">) => void;
975
985
  setUpsellBridgeState: (props: import("../../../brand-page-maker/composables/useEventTracker").BpUpsellEventProps) => void;
976
986
  subscribe: (callbackFn: (event: import("../../../brand-page-maker/composables/useEventTracker").BpEventTrackerEvent) => void) => void;
@@ -979,6 +989,7 @@ declare const _default: import("vue").DefineComponent<{}, {
979
989
  sendUpsellOpenEvent: () => void;
980
990
  sendUpsellContinuationEvent: (continuation: string) => void;
981
991
  sendPublishOpenEvent: () => void;
992
+ appendPublishBridgeState: (props: any) => void;
982
993
  sendPublishContinuationEvent: (continuation: string, domain: string | null) => void;
983
994
  sendWebsiteManageAddPageEvent: (pageName: string) => void;
984
995
  sendWebsiteManageRemovePageEvent: (pageName: string) => void;
@@ -991,6 +1002,8 @@ declare const _default: import("vue").DefineComponent<{}, {
991
1002
  sendTemplateCategorySelectEvent: (category: string) => void;
992
1003
  sendSidebarCategoryClickedEvent: (tabName: string) => void;
993
1004
  sendAddContentContinuationEvent: (continuation: string) => void;
1005
+ sendUpsellOfferEvent: (upsellType: string) => void;
1006
+ sendUpsellOfferActionEvent: (upsellType: string, action: string) => void;
994
1007
  };
995
1008
  externalEditor: import("@tiptap/vue-3").Editor;
996
1009
  styleSettingsStore: import("pinia").Store<"uiStyleSettings", import("../../../shared/style-settings/store").StyleSettingsState, {
@@ -67,8 +67,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
67
67
  isPrePurchase: boolean;
68
68
  makerFonts: any[];
69
69
  eventButtonLocation?: string | undefined;
70
+ websiteUpsellModalViewModel?: any;
70
71
  showPublishOptionModal?: boolean | undefined;
71
72
  abTests: Record<string, string>;
73
+ isSubsequentPublish: boolean;
72
74
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
73
75
  isUserDraft: (state: {
74
76
  availableTaxes: any[];
@@ -126,8 +128,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
126
128
  isPrePurchase: boolean;
127
129
  makerFonts: any[];
128
130
  eventButtonLocation?: string | undefined;
131
+ websiteUpsellModalViewModel?: any;
129
132
  showPublishOptionModal?: boolean | undefined;
130
133
  abTests: Record<string, string>;
134
+ isSubsequentPublish: boolean;
131
135
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
132
136
  }, {
133
137
  clearTriggerSaveEventApiOnPublishModalClose(): void;
@@ -160,6 +164,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
160
164
  }): void;
161
165
  setCreateCustomDomainErrorMessage(payload: any): void;
162
166
  setBrandPageIsCustomDomainEnabled(payload: any): void;
167
+ setIsSubsequentPublish(payload: any): void;
163
168
  clearPublishErrorMessage(): void;
164
169
  closePublishModal(payload?: {
165
170
  skipShowNextNotificationMessage?: boolean | undefined;
@@ -169,7 +174,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
169
174
  publishBrandPage({ shouldPublish, slug }: {
170
175
  shouldPublish: any;
171
176
  slug: any;
172
- }): Promise<boolean>;
177
+ }): Promise<false | {
178
+ success: boolean;
179
+ websiteUpsellModalViewModel: any;
180
+ }>;
173
181
  publishBrandPageWithCustomDomainAsync({ shouldPublish, slug, domain, isPurchasedDomain, }: {
174
182
  shouldPublish: any;
175
183
  slug: any;
@@ -186,12 +194,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
186
194
  eventButtonLocation?: string | undefined;
187
195
  }): Promise<false | {
188
196
  saved: boolean;
189
- canPublish: any;
197
+ canPublish: boolean;
198
+ websiteUpsellModalViewModel: any;
190
199
  }>;
191
200
  saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
192
201
  saveTemplate(): Promise<void>;
193
202
  setBrandPageStatus(status: any): Promise<void>;
194
- showPublishModal(eventButtonLocation?: string | undefined): void;
203
+ showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any, isSubsequentPublish?: boolean | undefined): void;
195
204
  showBrandPageSlugEditModal(): Promise<void>;
196
205
  showUpgradeModalAndSaveAsync(): Promise<void>;
197
206
  showStripeOnboardingModal(): void;
@@ -83,8 +83,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
83
83
  isPrePurchase: boolean;
84
84
  makerFonts: any[];
85
85
  eventButtonLocation?: string | undefined;
86
+ websiteUpsellModalViewModel?: any;
86
87
  showPublishOptionModal?: boolean | undefined;
87
88
  abTests: Record<string, string>;
89
+ isSubsequentPublish: boolean;
88
90
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
89
91
  isUserDraft: (state: {
90
92
  availableTaxes: any[];
@@ -142,8 +144,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
142
144
  isPrePurchase: boolean;
143
145
  makerFonts: any[];
144
146
  eventButtonLocation?: string | undefined;
147
+ websiteUpsellModalViewModel?: any;
145
148
  showPublishOptionModal?: boolean | undefined;
146
149
  abTests: Record<string, string>;
150
+ isSubsequentPublish: boolean;
147
151
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
148
152
  }, {
149
153
  clearTriggerSaveEventApiOnPublishModalClose(): void;
@@ -176,6 +180,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
176
180
  }): void;
177
181
  setCreateCustomDomainErrorMessage(payload: any): void;
178
182
  setBrandPageIsCustomDomainEnabled(payload: any): void;
183
+ setIsSubsequentPublish(payload: any): void;
179
184
  clearPublishErrorMessage(): void;
180
185
  closePublishModal(payload?: {
181
186
  skipShowNextNotificationMessage?: boolean | undefined;
@@ -185,7 +190,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
185
190
  publishBrandPage({ shouldPublish, slug }: {
186
191
  shouldPublish: any;
187
192
  slug: any;
188
- }): Promise<boolean>;
193
+ }): Promise<false | {
194
+ success: boolean;
195
+ websiteUpsellModalViewModel: any;
196
+ }>;
189
197
  publishBrandPageWithCustomDomainAsync({ shouldPublish, slug, domain, isPurchasedDomain, }: {
190
198
  shouldPublish: any;
191
199
  slug: any;
@@ -202,12 +210,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
202
210
  eventButtonLocation?: string | undefined;
203
211
  }): Promise<false | {
204
212
  saved: boolean;
205
- canPublish: any;
213
+ canPublish: boolean;
214
+ websiteUpsellModalViewModel: any;
206
215
  }>;
207
216
  saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
208
217
  saveTemplate(): Promise<void>;
209
218
  setBrandPageStatus(status: any): Promise<void>;
210
- showPublishModal(eventButtonLocation?: string | undefined): void;
219
+ showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any, isSubsequentPublish?: boolean | undefined): void;
211
220
  showBrandPageSlugEditModal(): Promise<void>;
212
221
  showUpgradeModalAndSaveAsync(): Promise<void>;
213
222
  showStripeOnboardingModal(): void;
@@ -86,8 +86,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
86
86
  isPrePurchase: boolean;
87
87
  makerFonts: any[];
88
88
  eventButtonLocation?: string | undefined;
89
+ websiteUpsellModalViewModel?: any;
89
90
  showPublishOptionModal?: boolean | undefined;
90
91
  abTests: Record<string, string>;
92
+ isSubsequentPublish: boolean;
91
93
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
92
94
  isUserDraft: (state: {
93
95
  availableTaxes: any[];
@@ -145,8 +147,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
145
147
  isPrePurchase: boolean;
146
148
  makerFonts: any[];
147
149
  eventButtonLocation?: string | undefined;
150
+ websiteUpsellModalViewModel?: any;
148
151
  showPublishOptionModal?: boolean | undefined;
149
152
  abTests: Record<string, string>;
153
+ isSubsequentPublish: boolean;
150
154
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
151
155
  }, {
152
156
  clearTriggerSaveEventApiOnPublishModalClose(): void;
@@ -179,6 +183,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
179
183
  }): void;
180
184
  setCreateCustomDomainErrorMessage(payload: any): void;
181
185
  setBrandPageIsCustomDomainEnabled(payload: any): void;
186
+ setIsSubsequentPublish(payload: any): void;
182
187
  clearPublishErrorMessage(): void;
183
188
  closePublishModal(payload?: {
184
189
  skipShowNextNotificationMessage?: boolean | undefined;
@@ -188,7 +193,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
188
193
  publishBrandPage({ shouldPublish, slug }: {
189
194
  shouldPublish: any;
190
195
  slug: any;
191
- }): Promise<boolean>;
196
+ }): Promise<false | {
197
+ success: boolean;
198
+ websiteUpsellModalViewModel: any;
199
+ }>;
192
200
  publishBrandPageWithCustomDomainAsync({ shouldPublish, slug, domain, isPurchasedDomain, }: {
193
201
  shouldPublish: any;
194
202
  slug: any;
@@ -205,12 +213,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
205
213
  eventButtonLocation?: string | undefined;
206
214
  }): Promise<false | {
207
215
  saved: boolean;
208
- canPublish: any;
216
+ canPublish: boolean;
217
+ websiteUpsellModalViewModel: any;
209
218
  }>;
210
219
  saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
211
220
  saveTemplate(): Promise<void>;
212
221
  setBrandPageStatus(status: any): Promise<void>;
213
- showPublishModal(eventButtonLocation?: string | undefined): void;
222
+ showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any, isSubsequentPublish?: boolean | undefined): void;
214
223
  showBrandPageSlugEditModal(): Promise<void>;
215
224
  showUpgradeModalAndSaveAsync(): Promise<void>;
216
225
  showStripeOnboardingModal(): void;
@@ -64,8 +64,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
64
64
  isPrePurchase: boolean;
65
65
  makerFonts: any[];
66
66
  eventButtonLocation?: string | undefined;
67
+ websiteUpsellModalViewModel?: any;
67
68
  showPublishOptionModal?: boolean | undefined;
68
69
  abTests: Record<string, string>;
70
+ isSubsequentPublish: boolean;
69
71
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
70
72
  isUserDraft: (state: {
71
73
  availableTaxes: any[];
@@ -123,8 +125,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
123
125
  isPrePurchase: boolean;
124
126
  makerFonts: any[];
125
127
  eventButtonLocation?: string | undefined;
128
+ websiteUpsellModalViewModel?: any;
126
129
  showPublishOptionModal?: boolean | undefined;
127
130
  abTests: Record<string, string>;
131
+ isSubsequentPublish: boolean;
128
132
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
129
133
  }, {
130
134
  clearTriggerSaveEventApiOnPublishModalClose(): void;
@@ -157,6 +161,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
157
161
  }): void;
158
162
  setCreateCustomDomainErrorMessage(payload: any): void;
159
163
  setBrandPageIsCustomDomainEnabled(payload: any): void;
164
+ setIsSubsequentPublish(payload: any): void;
160
165
  clearPublishErrorMessage(): void;
161
166
  closePublishModal(payload?: {
162
167
  skipShowNextNotificationMessage?: boolean | undefined;
@@ -166,7 +171,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
166
171
  publishBrandPage({ shouldPublish, slug }: {
167
172
  shouldPublish: any;
168
173
  slug: any;
169
- }): Promise<boolean>;
174
+ }): Promise<false | {
175
+ success: boolean;
176
+ websiteUpsellModalViewModel: any;
177
+ }>;
170
178
  publishBrandPageWithCustomDomainAsync({ shouldPublish, slug, domain, isPurchasedDomain, }: {
171
179
  shouldPublish: any;
172
180
  slug: any;
@@ -183,12 +191,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
183
191
  eventButtonLocation?: string | undefined;
184
192
  }): Promise<false | {
185
193
  saved: boolean;
186
- canPublish: any;
194
+ canPublish: boolean;
195
+ websiteUpsellModalViewModel: any;
187
196
  }>;
188
197
  saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
189
198
  saveTemplate(): Promise<void>;
190
199
  setBrandPageStatus(status: any): Promise<void>;
191
- showPublishModal(eventButtonLocation?: string | undefined): void;
200
+ showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any, isSubsequentPublish?: boolean | undefined): void;
192
201
  showBrandPageSlugEditModal(): Promise<void>;
193
202
  showUpgradeModalAndSaveAsync(): Promise<void>;
194
203
  showStripeOnboardingModal(): void;
@@ -64,8 +64,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
64
64
  isPrePurchase: boolean;
65
65
  makerFonts: any[];
66
66
  eventButtonLocation?: string | undefined;
67
+ websiteUpsellModalViewModel?: any;
67
68
  showPublishOptionModal?: boolean | undefined;
68
69
  abTests: Record<string, string>;
70
+ isSubsequentPublish: boolean;
69
71
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
70
72
  isUserDraft: (state: {
71
73
  availableTaxes: any[];
@@ -123,8 +125,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
123
125
  isPrePurchase: boolean;
124
126
  makerFonts: any[];
125
127
  eventButtonLocation?: string | undefined;
128
+ websiteUpsellModalViewModel?: any;
126
129
  showPublishOptionModal?: boolean | undefined;
127
130
  abTests: Record<string, string>;
131
+ isSubsequentPublish: boolean;
128
132
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
129
133
  }, {
130
134
  clearTriggerSaveEventApiOnPublishModalClose(): void;
@@ -157,6 +161,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
157
161
  }): void;
158
162
  setCreateCustomDomainErrorMessage(payload: any): void;
159
163
  setBrandPageIsCustomDomainEnabled(payload: any): void;
164
+ setIsSubsequentPublish(payload: any): void;
160
165
  clearPublishErrorMessage(): void;
161
166
  closePublishModal(payload?: {
162
167
  skipShowNextNotificationMessage?: boolean | undefined;
@@ -166,7 +171,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
166
171
  publishBrandPage({ shouldPublish, slug }: {
167
172
  shouldPublish: any;
168
173
  slug: any;
169
- }): Promise<boolean>;
174
+ }): Promise<false | {
175
+ success: boolean;
176
+ websiteUpsellModalViewModel: any;
177
+ }>;
170
178
  publishBrandPageWithCustomDomainAsync({ shouldPublish, slug, domain, isPurchasedDomain, }: {
171
179
  shouldPublish: any;
172
180
  slug: any;
@@ -183,12 +191,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
183
191
  eventButtonLocation?: string | undefined;
184
192
  }): Promise<false | {
185
193
  saved: boolean;
186
- canPublish: any;
194
+ canPublish: boolean;
195
+ websiteUpsellModalViewModel: any;
187
196
  }>;
188
197
  saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
189
198
  saveTemplate(): Promise<void>;
190
199
  setBrandPageStatus(status: any): Promise<void>;
191
- showPublishModal(eventButtonLocation?: string | undefined): void;
200
+ showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any, isSubsequentPublish?: boolean | undefined): void;
192
201
  showBrandPageSlugEditModal(): Promise<void>;
193
202
  showUpgradeModalAndSaveAsync(): Promise<void>;
194
203
  showStripeOnboardingModal(): void;
@@ -18,7 +18,7 @@ export interface BpEventTrackerEvent {
18
18
  eventProps: any;
19
19
  }
20
20
  export declare const EVENTS: {
21
- TEST: string;
21
+ EXPERIMENT_STARTED: string;
22
22
  WEBSITE_MAKER_ADD_CONTENT: string;
23
23
  WEBSITE_MAKER_REMOVE_CONTENT: string;
24
24
  WEBSITE_MAKER_SELECT_CONTENT: string;
@@ -38,6 +38,8 @@ export declare const EVENTS: {
38
38
  WEBSITE_MAKER_HYPERLINK_CLICK: string;
39
39
  WEBSITE_MAKER_HYPERLINK_EDIT: string;
40
40
  WEBSITE_MAKER_CALENDLY_LINK_CLICKED: string;
41
+ WEBSITE_MAKER_UPSELL_OFFER: string;
42
+ WEBSITE_MAKER_UPSELL_ACTION: string;
41
43
  };
42
44
  export declare const SELECT_LOCATIONS: {
43
45
  MAKER_PREVIEW: string;
@@ -73,6 +75,7 @@ export declare const PUBLISH_OPTION_MODAL_CONTINUATION_EVENTS: {
73
75
  FREEMIUM: string;
74
76
  };
75
77
  declare const useEventTracker: () => {
78
+ sendExperimentStartedEvent: (abTestKey: string, abTestValue: string) => void;
76
79
  setGlobalEventProps: (props: Omit<BpGlobalEventProps, 'template_category'>) => void;
77
80
  setUpsellBridgeState: (props: BpUpsellEventProps) => void;
78
81
  subscribe: (callbackFn: (event: BpEventTrackerEvent) => void) => void;
@@ -81,6 +84,7 @@ declare const useEventTracker: () => {
81
84
  sendUpsellOpenEvent: () => void;
82
85
  sendUpsellContinuationEvent: (continuation: string) => void;
83
86
  sendPublishOpenEvent: () => void;
87
+ appendPublishBridgeState: (props: any) => void;
84
88
  sendPublishContinuationEvent: (continuation: string, domain: string | null) => void;
85
89
  sendWebsiteManageAddPageEvent: (pageName: string) => void;
86
90
  sendWebsiteManageRemovePageEvent: (pageName: string) => void;
@@ -93,5 +97,7 @@ declare const useEventTracker: () => {
93
97
  sendTemplateCategorySelectEvent: (category: string) => void;
94
98
  sendSidebarCategoryClickedEvent: (tabName: string) => void;
95
99
  sendAddContentContinuationEvent: (continuation: string) => void;
100
+ sendUpsellOfferEvent: (upsellType: string) => void;
101
+ sendUpsellOfferActionEvent: (upsellType: string, action: string) => void;
96
102
  };
97
103
  export { useEventTracker };