@designcrowd/library.brand-page 5.12.14-upsell-5 → 5.12.14

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-4gdNQRfZ.js → CreatedOnBrandCrowd-de-de-CLvcrjGD.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-kl2UTn1f.js → CreatedOnBrandCrowd-en-us-IAccZs5I.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-DUuyFU8S.js → CreatedOnBrandCrowd-es-es-DiT9Jb5Q.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-CiNUgSZL.js → CreatedOnBrandCrowd-fr-fr-C-ZE-8xH.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-pt-pt-DtUdufqG.js → CreatedOnBrandCrowd-pt-pt-BmzMx788.js} +1 -1
  6. package/lib/src/{CreatedOnDcom-de-de-BXJ-VNwJ.js → CreatedOnDcom-de-de-CknEXPtF.js} +1 -1
  7. package/lib/src/{CreatedOnDcom-en-us-B9rtV_a9.js → CreatedOnDcom-en-us-CNuaCmwO.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-es-es-DXz-RaQI.js → CreatedOnDcom-es-es-xQmDcCxZ.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-fr-fr-CAo4Td4h.js → CreatedOnDcom-fr-fr-Ig9ufuyT.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-pt-pt-Ba42OWgc.js → CreatedOnDcom-pt-pt-BcpCcEx4.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 +6 -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-pU0Bg4q2.js → lib-BxhpFccU.js} +19591 -19728
  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 +6 -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-pU0Bg4q2.js";
2
+ import { _ as t } from "./lib-BxhpFccU.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-pU0Bg4q2.js";
2
+ import { _ as t } from "./lib-BxhpFccU.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-pU0Bg4q2.js";
2
+ import { _ as t } from "./lib-BxhpFccU.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-pU0Bg4q2.js";
2
+ import { _ as t } from "./lib-BxhpFccU.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-pU0Bg4q2.js";
2
+ import { _ as t } from "./lib-BxhpFccU.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-pU0Bg4q2.js";
2
+ import { _ as e } from "./lib-BxhpFccU.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-pU0Bg4q2.js";
2
+ import { _ as e } from "./lib-BxhpFccU.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-pU0Bg4q2.js";
2
+ import { _ as e } from "./lib-BxhpFccU.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-pU0Bg4q2.js";
2
+ import { _ as e } from "./lib-BxhpFccU.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-pU0Bg4q2.js";
2
+ import { _ as M } from "./lib-BxhpFccU.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
  logoBrandIndustry: string | undefined;
@@ -307,7 +306,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
307
306
  isPrePurchase: boolean;
308
307
  makerFonts: any[];
309
308
  eventButtonLocation?: string | undefined;
310
- websiteUpsellModalViewModel?: any;
311
309
  showPublishOptionModal?: boolean | undefined;
312
310
  abTests: Record<string, string>;
313
311
  logoBrandIndustry: string | undefined;
@@ -369,13 +367,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
369
367
  eventButtonLocation?: string | undefined;
370
368
  }): Promise<false | {
371
369
  saved: boolean;
372
- canPublish: boolean;
373
- websiteUpsellModalViewModel: any;
370
+ canPublish: any;
374
371
  }>;
375
372
  saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
376
373
  saveTemplate(): Promise<void>;
377
374
  setBrandPageStatus(status: any): Promise<void>;
378
- showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any): void;
375
+ showPublishModal(eventButtonLocation?: string | undefined): void;
379
376
  showBrandPageSlugEditModal(): Promise<void>;
380
377
  showUpgradeModalAndSaveAsync(): Promise<void>;
381
378
  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
  logoBrandIndustry: string | undefined;
@@ -745,7 +744,6 @@ declare const _default: import("vue").DefineComponent<{}, {
745
744
  isPrePurchase: boolean;
746
745
  makerFonts: any[];
747
746
  eventButtonLocation?: string | undefined;
748
- websiteUpsellModalViewModel?: any;
749
747
  showPublishOptionModal?: boolean | undefined;
750
748
  abTests: Record<string, string>;
751
749
  logoBrandIndustry: string | undefined;
@@ -807,13 +805,12 @@ declare const _default: import("vue").DefineComponent<{}, {
807
805
  eventButtonLocation?: string | undefined;
808
806
  }): Promise<false | {
809
807
  saved: boolean;
810
- canPublish: boolean;
811
- websiteUpsellModalViewModel: any;
808
+ canPublish: any;
812
809
  }>;
813
810
  saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
814
811
  saveTemplate(): Promise<void>;
815
812
  setBrandPageStatus(status: any): Promise<void>;
816
- showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any): void;
813
+ showPublishModal(eventButtonLocation?: string | undefined): void;
817
814
  showBrandPageSlugEditModal(): Promise<void>;
818
815
  showUpgradeModalAndSaveAsync(): Promise<void>;
819
816
  showStripeOnboardingModal(): void;
@@ -972,7 +969,6 @@ declare const _default: import("vue").DefineComponent<{}, {
972
969
  setPreviousSelectedDisplayStyle(viewport: string, displayStyle: string): void;
973
970
  }>;
974
971
  eventTracker: {
975
- sendExperimentStartedEvent: (abTestKey: string, abTestValue: string) => void;
976
972
  setGlobalEventProps: (props: Omit<import("../../../brand-page-maker/composables/useEventTracker").BpGlobalEventProps, "template_category">) => void;
977
973
  setUpsellBridgeState: (props: import("../../../brand-page-maker/composables/useEventTracker").BpUpsellEventProps) => void;
978
974
  subscribe: (callbackFn: (event: import("../../../brand-page-maker/composables/useEventTracker").BpEventTrackerEvent) => void) => void;
@@ -981,7 +977,6 @@ declare const _default: import("vue").DefineComponent<{}, {
981
977
  sendUpsellOpenEvent: () => void;
982
978
  sendUpsellContinuationEvent: (continuation: string) => void;
983
979
  sendPublishOpenEvent: () => void;
984
- appendPublishBridgeState: (props: any) => void;
985
980
  sendPublishContinuationEvent: (continuation: string, domain: string | null) => void;
986
981
  sendWebsiteManageAddPageEvent: (pageName: string) => void;
987
982
  sendWebsiteManageRemovePageEvent: (pageName: string) => void;
@@ -994,8 +989,6 @@ declare const _default: import("vue").DefineComponent<{}, {
994
989
  sendTemplateCategorySelectEvent: (category: string) => void;
995
990
  sendSidebarCategoryClickedEvent: (tabName: string) => void;
996
991
  sendAddContentContinuationEvent: (continuation: string) => void;
997
- sendUpsellOfferEvent: (upsellType: string) => void;
998
- sendUpsellOfferActionEvent: (upsellType: string, action: string) => void;
999
992
  };
1000
993
  externalEditor: import("@tiptap/vue-3").Editor;
1001
994
  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
  logoBrandIndustry: string | undefined;
@@ -128,7 +127,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
128
127
  isPrePurchase: boolean;
129
128
  makerFonts: any[];
130
129
  eventButtonLocation?: string | undefined;
131
- websiteUpsellModalViewModel?: any;
132
130
  showPublishOptionModal?: boolean | undefined;
133
131
  abTests: Record<string, string>;
134
132
  logoBrandIndustry: string | undefined;
@@ -190,13 +188,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
190
188
  eventButtonLocation?: string | undefined;
191
189
  }): Promise<false | {
192
190
  saved: boolean;
193
- canPublish: boolean;
194
- websiteUpsellModalViewModel: any;
191
+ canPublish: any;
195
192
  }>;
196
193
  saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
197
194
  saveTemplate(): Promise<void>;
198
195
  setBrandPageStatus(status: any): Promise<void>;
199
- showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any): void;
196
+ showPublishModal(eventButtonLocation?: string | undefined): void;
200
197
  showBrandPageSlugEditModal(): Promise<void>;
201
198
  showUpgradeModalAndSaveAsync(): Promise<void>;
202
199
  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
  logoBrandIndustry: string | undefined;
@@ -144,7 +143,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
144
143
  isPrePurchase: boolean;
145
144
  makerFonts: any[];
146
145
  eventButtonLocation?: string | undefined;
147
- websiteUpsellModalViewModel?: any;
148
146
  showPublishOptionModal?: boolean | undefined;
149
147
  abTests: Record<string, string>;
150
148
  logoBrandIndustry: string | undefined;
@@ -206,13 +204,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
206
204
  eventButtonLocation?: string | undefined;
207
205
  }): Promise<false | {
208
206
  saved: boolean;
209
- canPublish: boolean;
210
- websiteUpsellModalViewModel: any;
207
+ canPublish: any;
211
208
  }>;
212
209
  saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
213
210
  saveTemplate(): Promise<void>;
214
211
  setBrandPageStatus(status: any): Promise<void>;
215
- showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any): void;
212
+ showPublishModal(eventButtonLocation?: string | undefined): void;
216
213
  showBrandPageSlugEditModal(): Promise<void>;
217
214
  showUpgradeModalAndSaveAsync(): Promise<void>;
218
215
  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
  logoBrandIndustry: string | undefined;
@@ -147,7 +146,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
147
146
  isPrePurchase: boolean;
148
147
  makerFonts: any[];
149
148
  eventButtonLocation?: string | undefined;
150
- websiteUpsellModalViewModel?: any;
151
149
  showPublishOptionModal?: boolean | undefined;
152
150
  abTests: Record<string, string>;
153
151
  logoBrandIndustry: string | undefined;
@@ -209,13 +207,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
209
207
  eventButtonLocation?: string | undefined;
210
208
  }): Promise<false | {
211
209
  saved: boolean;
212
- canPublish: boolean;
213
- websiteUpsellModalViewModel: any;
210
+ canPublish: any;
214
211
  }>;
215
212
  saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
216
213
  saveTemplate(): Promise<void>;
217
214
  setBrandPageStatus(status: any): Promise<void>;
218
- showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any): void;
215
+ showPublishModal(eventButtonLocation?: string | undefined): void;
219
216
  showBrandPageSlugEditModal(): Promise<void>;
220
217
  showUpgradeModalAndSaveAsync(): Promise<void>;
221
218
  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
  logoBrandIndustry: string | undefined;
@@ -125,7 +124,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
125
124
  isPrePurchase: boolean;
126
125
  makerFonts: any[];
127
126
  eventButtonLocation?: string | undefined;
128
- websiteUpsellModalViewModel?: any;
129
127
  showPublishOptionModal?: boolean | undefined;
130
128
  abTests: Record<string, string>;
131
129
  logoBrandIndustry: string | undefined;
@@ -187,13 +185,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
187
185
  eventButtonLocation?: string | undefined;
188
186
  }): Promise<false | {
189
187
  saved: boolean;
190
- canPublish: boolean;
191
- websiteUpsellModalViewModel: any;
188
+ canPublish: any;
192
189
  }>;
193
190
  saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
194
191
  saveTemplate(): Promise<void>;
195
192
  setBrandPageStatus(status: any): Promise<void>;
196
- showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any): void;
193
+ showPublishModal(eventButtonLocation?: string | undefined): void;
197
194
  showBrandPageSlugEditModal(): Promise<void>;
198
195
  showUpgradeModalAndSaveAsync(): Promise<void>;
199
196
  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
  logoBrandIndustry: string | undefined;
@@ -125,7 +124,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
125
124
  isPrePurchase: boolean;
126
125
  makerFonts: any[];
127
126
  eventButtonLocation?: string | undefined;
128
- websiteUpsellModalViewModel?: any;
129
127
  showPublishOptionModal?: boolean | undefined;
130
128
  abTests: Record<string, string>;
131
129
  logoBrandIndustry: string | undefined;
@@ -187,13 +185,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
187
185
  eventButtonLocation?: string | undefined;
188
186
  }): Promise<false | {
189
187
  saved: boolean;
190
- canPublish: boolean;
191
- websiteUpsellModalViewModel: any;
188
+ canPublish: any;
192
189
  }>;
193
190
  saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
194
191
  saveTemplate(): Promise<void>;
195
192
  setBrandPageStatus(status: any): Promise<void>;
196
- showPublishModal(eventButtonLocation?: string | undefined, websiteUpsellModalViewModel?: any): void;
193
+ showPublishModal(eventButtonLocation?: string | undefined): void;
197
194
  showBrandPageSlugEditModal(): Promise<void>;
198
195
  showUpgradeModalAndSaveAsync(): Promise<void>;
199
196
  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
  logoBrandIndustry: string | undefined;
@@ -119,7 +118,6 @@ export declare const useBrandPageContainerStore: import("pinia").StoreDefinition
119
118
  isPrePurchase: boolean;
120
119
  makerFonts: any[];
121
120
  eventButtonLocation?: string | undefined;
122
- websiteUpsellModalViewModel?: any;
123
121
  showPublishOptionModal?: boolean | undefined;
124
122
  abTests: Record<string, string>;
125
123
  logoBrandIndustry: string | undefined;
@@ -180,7 +178,6 @@ export declare const useBrandPageContainerStore: import("pinia").StoreDefinition
180
178
  isPrePurchase: boolean;
181
179
  makerFonts: any[];
182
180
  eventButtonLocation?: string | undefined;
183
- websiteUpsellModalViewModel?: any;
184
181
  showPublishOptionModal?: boolean | undefined;
185
182
  abTests: Record<string, string>;
186
183
  logoBrandIndustry: string | undefined;
@@ -242,13 +239,12 @@ export declare const useBrandPageContainerStore: import("pinia").StoreDefinition
242
239
  eventButtonLocation?: string;
243
240
  }): Promise<false | {
244
241
  saved: boolean;
245
- canPublish: boolean;
246
- websiteUpsellModalViewModel: any;
242
+ canPublish: any;
247
243
  }>;
248
244
  saveAndPublishBrandPage(eventButtonLocation: string): Promise<void>;
249
245
  saveTemplate(): Promise<void>;
250
246
  setBrandPageStatus(status: any): Promise<void>;
251
- showPublishModal(eventButtonLocation?: string, websiteUpsellModalViewModel?: any): void;
247
+ showPublishModal(eventButtonLocation?: string): void;
252
248
  showBrandPageSlugEditModal(): Promise<void>;
253
249
  showUpgradeModalAndSaveAsync(): Promise<void>;
254
250
  showStripeOnboardingModal(): void;