@designcrowd/library.brand-page 5.12.18-upsell-1 → 5.12.18

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 (59) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-CYcz2hSC.js → CreatedOnBrandCrowd-de-de-BEJZW9EU.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-Doj9YjhF.js → CreatedOnBrandCrowd-en-us-DnqipZ0K.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-COhwPYuu.js → CreatedOnBrandCrowd-es-es-DPH6Tvc7.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-opRV0oz_.js → CreatedOnBrandCrowd-fr-fr-CwxOWdgN.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-pt-pt-D7DiCvI_.js → CreatedOnBrandCrowd-pt-pt-HWDXi_vy.js} +1 -1
  6. package/lib/src/{CreatedOnDcom-de-de-Beqaiw33.js → CreatedOnDcom-de-de-DeDtODBP.js} +1 -1
  7. package/lib/src/{CreatedOnDcom-en-us-BVmIVdyf.js → CreatedOnDcom-en-us-CdgFJhDz.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-es-es-eQy4uWKt.js → CreatedOnDcom-es-es-Vt-agxSv.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-fr-fr-EuzFzFmx.js → CreatedOnDcom-fr-fr-CH_phXpq.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-pt-pt-ZXrw5G6P.js → CreatedOnDcom-pt-pt-BKuQlzwh.js} +1 -1
  11. package/lib/src/brand-page/models/brand-page-context.model.d.ts +0 -2
  12. package/lib/src/brand-page/models/brand-page-context.model.js +1 -2
  13. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +2 -5
  14. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +2 -9
  15. package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.d.ts +2 -5
  16. package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +2 -5
  17. package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +2 -5
  18. package/lib/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.d.ts +2 -5
  19. package/lib/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.d.ts +2 -5
  20. package/lib/src/brand-page-maker/composables/useEventTracker.d.ts +1 -7
  21. package/lib/src/brand-page-maker/composables/useEventTracker.js +4 -29
  22. package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.d.ts +2 -6
  23. package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.js +7 -42
  24. package/lib/src/bundled-translations-CD8h4dNr.js +27 -0
  25. package/lib/src/bundled-translations.de-DE-djs407Ih.js +27 -0
  26. package/lib/src/bundled-translations.es-ES-JjQoQaM7.js +27 -0
  27. package/lib/src/bundled-translations.fr-FR-rUuRWfsM.js +27 -0
  28. package/lib/src/bundled-translations.pt-PT-BiSQEFmA.js +27 -0
  29. package/lib/src/clients/brand-page-client.d.ts +3 -20
  30. package/lib/src/css/library.brand-page-brandCrowd.min.css +9 -12
  31. package/lib/src/css/library.brand-page-brandPage.min.css +9 -12
  32. package/lib/src/css/library.brand-page-designCom.min.css +9 -12
  33. package/lib/src/css/library.brand-page-preview.min.css +9 -12
  34. package/lib/src/index.mjs +34 -35
  35. package/lib/src/{lib-B6YdKTau.js → lib-DjMCRkcx.js} +13321 -13458
  36. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +0 -4
  37. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +0 -4
  38. package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +2 -5
  39. package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +2 -5
  40. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +2 -9
  41. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +2 -5
  42. package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +8 -18
  43. package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.js +1 -14
  44. package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +2 -5
  45. package/lib/src/shared/side-bar/components/SideBarTabButton.mixin.d.ts +0 -4
  46. package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +2 -9
  47. package/lib/src/shared/template-settings/components/TemplatesSettings.mixin.d.ts +0 -4
  48. package/package.json +2 -2
  49. package/src/brand-page/models/brand-page-context.model.ts +1 -7
  50. package/src/brand-page-maker/composables/useEventTracker.ts +4 -37
  51. package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.ts +7 -78
  52. package/src/clients/brand-page-client.ts +3 -22
  53. package/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.ts +1 -16
  54. package/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.vue +0 -5
  55. package/lib/src/bundled-translations-BMr0LtzI.js +0 -27
  56. package/lib/src/bundled-translations.de-DE-BXAa3p16.js +0 -27
  57. package/lib/src/bundled-translations.es-ES-B4FHib2V.js +0 -27
  58. package/lib/src/bundled-translations.fr-FR-B84T67W5.js +0 -27
  59. package/lib/src/bundled-translations.pt-PT-BB4hTIYd.js +0 -27
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-B6YdKTau.js";
2
+ import { _ as t } from "./lib-DjMCRkcx.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-B6YdKTau.js";
2
+ import { _ as t } from "./lib-DjMCRkcx.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-B6YdKTau.js";
2
+ import { _ as t } from "./lib-DjMCRkcx.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-B6YdKTau.js";
2
+ import { _ as t } from "./lib-DjMCRkcx.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-B6YdKTau.js";
2
+ import { _ as t } from "./lib-DjMCRkcx.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-B6YdKTau.js";
2
+ import { _ as e } from "./lib-DjMCRkcx.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-B6YdKTau.js";
2
+ import { _ as e } from "./lib-DjMCRkcx.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-B6YdKTau.js";
2
+ import { _ as e } from "./lib-DjMCRkcx.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-B6YdKTau.js";
2
+ import { _ as e } from "./lib-DjMCRkcx.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-B6YdKTau.js";
2
+ import { _ as M } from "./lib-DjMCRkcx.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -36,7 +36,6 @@ 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;
40
39
  }
41
40
  export declare const MEDIA_SIZES: {
42
41
  readonly size1x: "size1x";
@@ -75,5 +74,4 @@ export interface BrandPageContext {
75
74
  isCapturingPreview: boolean;
76
75
  disableLogoRenderOnServerside?: boolean;
77
76
  }
78
- export declare const getValueType: (key: string, abtestValue?: string) => AbTestResult;
79
77
  export declare const getAbTestResults: (abtestKeyValues: Record<string, string>) => AbTest;
@@ -24,14 +24,13 @@ 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',
28
27
  };
29
28
  export const MEDIA_SIZES = {
30
29
  size1x: 'size1x',
31
30
  size2x: 'size2x',
32
31
  sizeThumb: 'sizeThumb',
33
32
  };
34
- export const getValueType = (key, abtestValue) => {
33
+ const getValueType = (key, abtestValue) => {
35
34
  return {
36
35
  key: key,
37
36
  value: abtestValue || '',
@@ -246,7 +246,6 @@ 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;
250
249
  showPublishOptionModal?: boolean | undefined;
251
250
  abTests: Record<string, string>;
252
251
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
@@ -306,7 +305,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
306
305
  isPrePurchase: boolean;
307
306
  makerFonts: any[];
308
307
  eventButtonLocation?: string | undefined;
309
- websiteUpsellModalViewModel?: any;
310
308
  showPublishOptionModal?: boolean | undefined;
311
309
  abTests: Record<string, string>;
312
310
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
@@ -367,13 +365,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
367
365
  eventButtonLocation?: string | undefined;
368
366
  }): Promise<false | {
369
367
  saved: boolean;
370
- canPublish: boolean;
371
- websiteUpsellModalViewModel: any;
368
+ canPublish: any;
372
369
  }>;
373
370
  saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
374
371
  saveTemplate(): Promise<void>;
375
372
  setBrandPageStatus(status: any): Promise<void>;
376
- showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any): void;
373
+ showPublishModal(eventButtonLocation?: string | undefined): void;
377
374
  showBrandPageSlugEditModal(): Promise<void>;
378
375
  showUpgradeModalAndSaveAsync(): Promise<void>;
379
376
  showStripeOnboardingModal(): void;
@@ -684,7 +684,6 @@ declare const _default: import("vue").DefineComponent<{}, {
684
684
  isPrePurchase: boolean;
685
685
  makerFonts: any[];
686
686
  eventButtonLocation?: string | undefined;
687
- websiteUpsellModalViewModel?: any;
688
687
  showPublishOptionModal?: boolean | undefined;
689
688
  abTests: Record<string, string>;
690
689
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
@@ -744,7 +743,6 @@ declare const _default: import("vue").DefineComponent<{}, {
744
743
  isPrePurchase: boolean;
745
744
  makerFonts: any[];
746
745
  eventButtonLocation?: string | undefined;
747
- websiteUpsellModalViewModel?: any;
748
746
  showPublishOptionModal?: boolean | undefined;
749
747
  abTests: Record<string, string>;
750
748
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
@@ -805,13 +803,12 @@ declare const _default: import("vue").DefineComponent<{}, {
805
803
  eventButtonLocation?: string | undefined;
806
804
  }): Promise<false | {
807
805
  saved: boolean;
808
- canPublish: boolean;
809
- websiteUpsellModalViewModel: any;
806
+ canPublish: any;
810
807
  }>;
811
808
  saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
812
809
  saveTemplate(): Promise<void>;
813
810
  setBrandPageStatus(status: any): Promise<void>;
814
- showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any): void;
811
+ showPublishModal(eventButtonLocation?: string | undefined): void;
815
812
  showBrandPageSlugEditModal(): Promise<void>;
816
813
  showUpgradeModalAndSaveAsync(): Promise<void>;
817
814
  showStripeOnboardingModal(): void;
@@ -970,7 +967,6 @@ declare const _default: import("vue").DefineComponent<{}, {
970
967
  setPreviousSelectedDisplayStyle(viewport: string, displayStyle: string): void;
971
968
  }>;
972
969
  eventTracker: {
973
- sendExperimentStartedEvent: (abTestKey: string, abTestValue: string) => void;
974
970
  setGlobalEventProps: (props: Omit<import("../../../brand-page-maker/composables/useEventTracker").BpGlobalEventProps, "template_category">) => void;
975
971
  setUpsellBridgeState: (props: import("../../../brand-page-maker/composables/useEventTracker").BpUpsellEventProps) => void;
976
972
  subscribe: (callbackFn: (event: import("../../../brand-page-maker/composables/useEventTracker").BpEventTrackerEvent) => void) => void;
@@ -979,7 +975,6 @@ declare const _default: import("vue").DefineComponent<{}, {
979
975
  sendUpsellOpenEvent: () => void;
980
976
  sendUpsellContinuationEvent: (continuation: string) => void;
981
977
  sendPublishOpenEvent: () => void;
982
- appendPublishBridgeState: (props: any) => void;
983
978
  sendPublishContinuationEvent: (continuation: string, domain: string | null) => void;
984
979
  sendWebsiteManageAddPageEvent: (pageName: string) => void;
985
980
  sendWebsiteManageRemovePageEvent: (pageName: string) => void;
@@ -992,8 +987,6 @@ declare const _default: import("vue").DefineComponent<{}, {
992
987
  sendTemplateCategorySelectEvent: (category: string) => void;
993
988
  sendSidebarCategoryClickedEvent: (tabName: string) => void;
994
989
  sendAddContentContinuationEvent: (continuation: string) => void;
995
- sendUpsellOfferEvent: (upsellType: string) => void;
996
- sendUpsellOfferActionEvent: (upsellType: string, action: string) => void;
997
990
  };
998
991
  externalEditor: import("@tiptap/vue-3").Editor;
999
992
  styleSettingsStore: import("pinia").Store<"uiStyleSettings", import("../../../shared/style-settings/store").StyleSettingsState, {
@@ -67,7 +67,6 @@ 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;
71
70
  showPublishOptionModal?: boolean | undefined;
72
71
  abTests: Record<string, string>;
73
72
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
@@ -127,7 +126,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
127
126
  isPrePurchase: boolean;
128
127
  makerFonts: any[];
129
128
  eventButtonLocation?: string | undefined;
130
- websiteUpsellModalViewModel?: any;
131
129
  showPublishOptionModal?: boolean | undefined;
132
130
  abTests: Record<string, string>;
133
131
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
@@ -188,13 +186,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
188
186
  eventButtonLocation?: string | undefined;
189
187
  }): Promise<false | {
190
188
  saved: boolean;
191
- canPublish: boolean;
192
- websiteUpsellModalViewModel: any;
189
+ canPublish: any;
193
190
  }>;
194
191
  saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
195
192
  saveTemplate(): Promise<void>;
196
193
  setBrandPageStatus(status: any): Promise<void>;
197
- showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any): void;
194
+ showPublishModal(eventButtonLocation?: string | undefined): void;
198
195
  showBrandPageSlugEditModal(): Promise<void>;
199
196
  showUpgradeModalAndSaveAsync(): Promise<void>;
200
197
  showStripeOnboardingModal(): void;
@@ -83,7 +83,6 @@ 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;
87
86
  showPublishOptionModal?: boolean | undefined;
88
87
  abTests: Record<string, string>;
89
88
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
@@ -143,7 +142,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
143
142
  isPrePurchase: boolean;
144
143
  makerFonts: any[];
145
144
  eventButtonLocation?: string | undefined;
146
- websiteUpsellModalViewModel?: any;
147
145
  showPublishOptionModal?: boolean | undefined;
148
146
  abTests: Record<string, string>;
149
147
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
@@ -204,13 +202,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
204
202
  eventButtonLocation?: string | undefined;
205
203
  }): Promise<false | {
206
204
  saved: boolean;
207
- canPublish: boolean;
208
- websiteUpsellModalViewModel: any;
205
+ canPublish: any;
209
206
  }>;
210
207
  saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
211
208
  saveTemplate(): Promise<void>;
212
209
  setBrandPageStatus(status: any): Promise<void>;
213
- showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any): void;
210
+ showPublishModal(eventButtonLocation?: string | undefined): void;
214
211
  showBrandPageSlugEditModal(): Promise<void>;
215
212
  showUpgradeModalAndSaveAsync(): Promise<void>;
216
213
  showStripeOnboardingModal(): void;
@@ -86,7 +86,6 @@ 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;
90
89
  showPublishOptionModal?: boolean | undefined;
91
90
  abTests: Record<string, string>;
92
91
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
@@ -146,7 +145,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
146
145
  isPrePurchase: boolean;
147
146
  makerFonts: any[];
148
147
  eventButtonLocation?: string | undefined;
149
- websiteUpsellModalViewModel?: any;
150
148
  showPublishOptionModal?: boolean | undefined;
151
149
  abTests: Record<string, string>;
152
150
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
@@ -207,13 +205,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
207
205
  eventButtonLocation?: string | undefined;
208
206
  }): Promise<false | {
209
207
  saved: boolean;
210
- canPublish: boolean;
211
- websiteUpsellModalViewModel: any;
208
+ canPublish: any;
212
209
  }>;
213
210
  saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
214
211
  saveTemplate(): Promise<void>;
215
212
  setBrandPageStatus(status: any): Promise<void>;
216
- showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any): void;
213
+ showPublishModal(eventButtonLocation?: string | undefined): void;
217
214
  showBrandPageSlugEditModal(): Promise<void>;
218
215
  showUpgradeModalAndSaveAsync(): Promise<void>;
219
216
  showStripeOnboardingModal(): void;
@@ -64,7 +64,6 @@ 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;
68
67
  showPublishOptionModal?: boolean | undefined;
69
68
  abTests: Record<string, string>;
70
69
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
@@ -124,7 +123,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
124
123
  isPrePurchase: boolean;
125
124
  makerFonts: any[];
126
125
  eventButtonLocation?: string | undefined;
127
- websiteUpsellModalViewModel?: any;
128
126
  showPublishOptionModal?: boolean | undefined;
129
127
  abTests: Record<string, string>;
130
128
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
@@ -185,13 +183,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
185
183
  eventButtonLocation?: string | undefined;
186
184
  }): Promise<false | {
187
185
  saved: boolean;
188
- canPublish: boolean;
189
- websiteUpsellModalViewModel: any;
186
+ canPublish: any;
190
187
  }>;
191
188
  saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
192
189
  saveTemplate(): Promise<void>;
193
190
  setBrandPageStatus(status: any): Promise<void>;
194
- showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any): void;
191
+ showPublishModal(eventButtonLocation?: string | undefined): void;
195
192
  showBrandPageSlugEditModal(): Promise<void>;
196
193
  showUpgradeModalAndSaveAsync(): Promise<void>;
197
194
  showStripeOnboardingModal(): void;
@@ -64,7 +64,6 @@ 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;
68
67
  showPublishOptionModal?: boolean | undefined;
69
68
  abTests: Record<string, string>;
70
69
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
@@ -124,7 +123,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
124
123
  isPrePurchase: boolean;
125
124
  makerFonts: any[];
126
125
  eventButtonLocation?: string | undefined;
127
- websiteUpsellModalViewModel?: any;
128
126
  showPublishOptionModal?: boolean | undefined;
129
127
  abTests: Record<string, string>;
130
128
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
@@ -185,13 +183,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
185
183
  eventButtonLocation?: string | undefined;
186
184
  }): Promise<false | {
187
185
  saved: boolean;
188
- canPublish: boolean;
189
- websiteUpsellModalViewModel: any;
186
+ canPublish: any;
190
187
  }>;
191
188
  saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
192
189
  saveTemplate(): Promise<void>;
193
190
  setBrandPageStatus(status: any): Promise<void>;
194
- showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any): void;
191
+ showPublishModal(eventButtonLocation?: string | undefined): void;
195
192
  showBrandPageSlugEditModal(): Promise<void>;
196
193
  showUpgradeModalAndSaveAsync(): Promise<void>;
197
194
  showStripeOnboardingModal(): void;
@@ -18,7 +18,7 @@ export interface BpEventTrackerEvent {
18
18
  eventProps: any;
19
19
  }
20
20
  export declare const EVENTS: {
21
- EXPERIMENT_STARTED: string;
21
+ TEST: string;
22
22
  WEBSITE_MAKER_ADD_CONTENT: string;
23
23
  WEBSITE_MAKER_REMOVE_CONTENT: string;
24
24
  WEBSITE_MAKER_SELECT_CONTENT: string;
@@ -38,8 +38,6 @@ 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;
43
41
  };
44
42
  export declare const SELECT_LOCATIONS: {
45
43
  MAKER_PREVIEW: string;
@@ -75,7 +73,6 @@ export declare const PUBLISH_OPTION_MODAL_CONTINUATION_EVENTS: {
75
73
  FREEMIUM: string;
76
74
  };
77
75
  declare const useEventTracker: () => {
78
- sendExperimentStartedEvent: (abTestKey: string, abTestValue: string) => void;
79
76
  setGlobalEventProps: (props: Omit<BpGlobalEventProps, 'template_category'>) => void;
80
77
  setUpsellBridgeState: (props: BpUpsellEventProps) => void;
81
78
  subscribe: (callbackFn: (event: BpEventTrackerEvent) => void) => void;
@@ -84,7 +81,6 @@ declare const useEventTracker: () => {
84
81
  sendUpsellOpenEvent: () => void;
85
82
  sendUpsellContinuationEvent: (continuation: string) => void;
86
83
  sendPublishOpenEvent: () => void;
87
- appendPublishBridgeState: (props: any) => void;
88
84
  sendPublishContinuationEvent: (continuation: string, domain: string | null) => void;
89
85
  sendWebsiteManageAddPageEvent: (pageName: string) => void;
90
86
  sendWebsiteManageRemovePageEvent: (pageName: string) => void;
@@ -97,7 +93,5 @@ declare const useEventTracker: () => {
97
93
  sendTemplateCategorySelectEvent: (category: string) => void;
98
94
  sendSidebarCategoryClickedEvent: (tabName: string) => void;
99
95
  sendAddContentContinuationEvent: (continuation: string) => void;
100
- sendUpsellOfferEvent: (upsellType: string) => void;
101
- sendUpsellOfferActionEvent: (upsellType: string, action: string) => void;
102
96
  };
103
97
  export { useEventTracker };
@@ -1,7 +1,7 @@
1
1
  import { shallowRef } from 'vue';
2
- // Event names should driven with prefix `website_maker_` to distinguish the event from other events around the site
2
+ // Event names should driven with prefix `bpmaker_` to distinguish the event from other events around the site
3
3
  export const EVENTS = {
4
- EXPERIMENT_STARTED: '$experiment_started',
4
+ TEST: 'bpmaker_test',
5
5
  WEBSITE_MAKER_ADD_CONTENT: 'website_maker_add_content',
6
6
  WEBSITE_MAKER_REMOVE_CONTENT: 'website_maker_remove_content',
7
7
  WEBSITE_MAKER_SELECT_CONTENT: 'website_maker_select_content',
@@ -21,8 +21,6 @@ export const EVENTS = {
21
21
  WEBSITE_MAKER_HYPERLINK_CLICK: 'website_maker_hyperlink_click',
22
22
  WEBSITE_MAKER_HYPERLINK_EDIT: 'website_maker_hyperlink_edit',
23
23
  WEBSITE_MAKER_CALENDLY_LINK_CLICKED: 'website_maker_calendly_link_clicked',
24
- WEBSITE_MAKER_UPSELL_OFFER: 'website_maker_upsell_offer',
25
- WEBSITE_MAKER_UPSELL_ACTION: 'website_maker_upsell_action',
26
24
  };
27
25
  export const SELECT_LOCATIONS = {
28
26
  MAKER_PREVIEW: 'maker_preview',
@@ -68,12 +66,12 @@ const bridgeState = shallowRef({
68
66
  publishOpenEventProps: {},
69
67
  });
70
68
  const LISTENERS = shallowRef([]);
71
- const _publishEvent = (eventName, eventProps, excludeGlobal = false) => {
69
+ const _publishEvent = (eventName, eventProps) => {
72
70
  LISTENERS.value.forEach((listener) => {
73
71
  listener({
74
72
  eventName: eventName,
75
73
  eventProps: {
76
- ...(excludeGlobal ? {} : GLOBAL_EVENT_PROPS.value),
74
+ ...GLOBAL_EVENT_PROPS.value,
77
75
  ...eventProps,
78
76
  },
79
77
  });
@@ -81,12 +79,6 @@ const _publishEvent = (eventName, eventProps, excludeGlobal = false) => {
81
79
  };
82
80
  const useEventTracker = () => {
83
81
  return {
84
- sendExperimentStartedEvent: (abTestKey, abTestValue) => {
85
- _publishEvent(EVENTS.EXPERIMENT_STARTED, {
86
- 'Experiment name': abTestKey,
87
- 'Variant name': abTestValue,
88
- }, true);
89
- },
90
82
  setGlobalEventProps: (props) => {
91
83
  GLOBAL_EVENT_PROPS.value = { ...GLOBAL_EVENT_PROPS.value, ...props };
92
84
  },
@@ -126,12 +118,6 @@ const useEventTracker = () => {
126
118
  continuation: null,
127
119
  });
128
120
  },
129
- appendPublishBridgeState: (props) => {
130
- bridgeState.value.publishOpenEventProps = {
131
- ...bridgeState.value.publishOpenEventProps,
132
- ...props,
133
- };
134
- },
135
121
  sendPublishContinuationEvent: (continuation, domain) => {
136
122
  _publishEvent(EVENTS.WEBSITE_MAKER_PUBLISH_MODAL, {
137
123
  ...bridgeState.value.publishOpenEventProps,
@@ -196,17 +182,6 @@ const useEventTracker = () => {
196
182
  continuation,
197
183
  });
198
184
  },
199
- sendUpsellOfferEvent: (upsellType) => {
200
- _publishEvent(EVENTS.WEBSITE_MAKER_UPSELL_OFFER, {
201
- upsellType,
202
- });
203
- },
204
- sendUpsellOfferActionEvent: (upsellType, action) => {
205
- _publishEvent(EVENTS.WEBSITE_MAKER_UPSELL_ACTION, {
206
- upsellType,
207
- action,
208
- });
209
- },
210
185
  };
211
186
  };
212
187
  export { useEventTracker };
@@ -44,7 +44,6 @@ export interface BrandPageContainerState {
44
44
  isPrePurchase: boolean;
45
45
  makerFonts: any[];
46
46
  eventButtonLocation?: string;
47
- websiteUpsellModalViewModel?: any;
48
47
  showPublishOptionModal?: boolean;
49
48
  abTests: Record<string, string>;
50
49
  }
@@ -118,7 +117,6 @@ export declare const useBrandPageContainerStore: import("pinia").StoreDefinition
118
117
  isPrePurchase: boolean;
119
118
  makerFonts: any[];
120
119
  eventButtonLocation?: string | undefined;
121
- websiteUpsellModalViewModel?: any;
122
120
  showPublishOptionModal?: boolean | undefined;
123
121
  abTests: Record<string, string>;
124
122
  } & import("pinia").PiniaCustomStateProperties<BrandPageContainerState>) => boolean;
@@ -178,7 +176,6 @@ export declare const useBrandPageContainerStore: import("pinia").StoreDefinition
178
176
  isPrePurchase: boolean;
179
177
  makerFonts: any[];
180
178
  eventButtonLocation?: string | undefined;
181
- websiteUpsellModalViewModel?: any;
182
179
  showPublishOptionModal?: boolean | undefined;
183
180
  abTests: Record<string, string>;
184
181
  } & import("pinia").PiniaCustomStateProperties<BrandPageContainerState>) => boolean;
@@ -239,13 +236,12 @@ export declare const useBrandPageContainerStore: import("pinia").StoreDefinition
239
236
  eventButtonLocation?: string;
240
237
  }): Promise<false | {
241
238
  saved: boolean;
242
- canPublish: boolean;
243
- websiteUpsellModalViewModel: any;
239
+ canPublish: any;
244
240
  }>;
245
241
  saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
246
242
  saveTemplate(): Promise<void>;
247
243
  setBrandPageStatus(status: any): Promise<void>;
248
- showPublishModal(eventButtonLocation?: string, websiteUpsellModalViewModel?: any): void;
244
+ showPublishModal(eventButtonLocation?: string): void;
249
245
  showBrandPageSlugEditModal(): Promise<void>;
250
246
  showUpgradeModalAndSaveAsync(): Promise<void>;
251
247
  showStripeOnboardingModal(): void;