@designcrowd/library.brand-page 6.1.14-mp-2 → 6.1.14-mp-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/src/{CreatedOnBrandCrowd-de-de-DUGKNJ8A.js → CreatedOnBrandCrowd-de-de-a7cNT5AA.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-C3_EWEVW.js → CreatedOnBrandCrowd-en-us-BpZ89I9T.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-Bxc_D4l0.js → CreatedOnBrandCrowd-es-es-Db0Ot-mQ.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-gFEufJ47.js → CreatedOnBrandCrowd-fr-ca-Mbd7Hhxh.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-gFEufJ47.js → CreatedOnBrandCrowd-fr-fr-Mbd7Hhxh.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-Dcv6p40Z.js → CreatedOnBrandCrowd-pt-br-B98aoT6y.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-Dcv6p40Z.js → CreatedOnBrandCrowd-pt-pt-B98aoT6y.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-D2FyOixD.js → CreatedOnDcom-de-de-b_GUYmhX.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-BmKiT5n7.js → CreatedOnDcom-en-us-BtTIwekM.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-BbfrfMNN.js → CreatedOnDcom-es-es-WbhHNEg-.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-Dv2pfDDW.js → CreatedOnDcom-fr-ca-DnQOAvS5.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-1bboE3LZ.js → CreatedOnDcom-fr-fr-D7Q-aBNQ.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-sBeCmBLQ.js → CreatedOnDcom-pt-br-DnqkF_ve.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-eJiXmOTn.js → CreatedOnDcom-pt-pt-DNyyHF1o.js} +1 -1
- package/lib/src/brand-page-maker/composables/useEventTracker.d.ts +2 -2
- package/lib/src/brand-page-maker/composables/useEventTracker.js +5 -5
- package/lib/src/index.mjs +2 -2
- package/lib/src/{lib-iDY80HzN.js → lib-33AmrlUy.js} +3 -3
- package/lib/src/tracker.mjs +1 -1
- package/lib/src/{useEventTracker-DHvvK2mp.js → useEventTracker-C5Ql5p7u.js} +9 -9
- package/package.json +1 -1
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.preview-gate.test.ts +1 -1
- package/src/brand-page-maker/components/preview-modal/PreviewModalWithState.test.ts +4 -4
- package/src/brand-page-maker/composables/useEventTracker.ts +5 -5
|
@@ -59,8 +59,8 @@ export declare const EVENTS: {
|
|
|
59
59
|
WEBSITE_MAKER_REDO: string;
|
|
60
60
|
WEBSITE_MAKER_HISTORY_CAPPED: string;
|
|
61
61
|
WEBSITE_MAKER_HISTORY_OVERSIZED: string;
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
WEBSITE_MAKER_LIVE_PREVIEW_CLICK: string;
|
|
63
|
+
WEBSITE_MAKER_LIVE_PREVIEW_MODAL: string;
|
|
64
64
|
};
|
|
65
65
|
export declare const PREVIEW_CTA_LOCATIONS: {
|
|
66
66
|
MAKER: string;
|
|
@@ -40,8 +40,8 @@ export const EVENTS = {
|
|
|
40
40
|
WEBSITE_MAKER_REDO: 'website_maker_redo',
|
|
41
41
|
WEBSITE_MAKER_HISTORY_CAPPED: 'website_maker_history_capped',
|
|
42
42
|
WEBSITE_MAKER_HISTORY_OVERSIZED: 'website_maker_history_oversized',
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
WEBSITE_MAKER_LIVE_PREVIEW_CLICK: 'website_maker_live_preview_click',
|
|
44
|
+
WEBSITE_MAKER_LIVE_PREVIEW_MODAL: 'website_maker_live_preview_modal',
|
|
45
45
|
};
|
|
46
46
|
// The global `location` prop already means pre/post purchase, so the surface a
|
|
47
47
|
// preview was launched from rides on cta_location, reusing existing values.
|
|
@@ -347,18 +347,18 @@ const useEventTracker = () => {
|
|
|
347
347
|
// sign-in/save gating means a click doesn't always open the modal, and the
|
|
348
348
|
// post-sign-in return trip opens it without a click.
|
|
349
349
|
sendPreviewClickEvent: (ctaLocation) => {
|
|
350
|
-
_publishEvent(EVENTS.
|
|
350
|
+
_publishEvent(EVENTS.WEBSITE_MAKER_LIVE_PREVIEW_CLICK, {
|
|
351
351
|
cta_location: ctaLocation,
|
|
352
352
|
});
|
|
353
353
|
},
|
|
354
354
|
sendPreviewModalOpenEvent: (ctaLocation) => {
|
|
355
|
-
_publishEvent(EVENTS.
|
|
355
|
+
_publishEvent(EVENTS.WEBSITE_MAKER_LIVE_PREVIEW_MODAL, {
|
|
356
356
|
cta_location: ctaLocation,
|
|
357
357
|
continuation: null,
|
|
358
358
|
});
|
|
359
359
|
},
|
|
360
360
|
sendPreviewModalContinuationEvent: (continuation, ctaLocation) => {
|
|
361
|
-
_publishEvent(EVENTS.
|
|
361
|
+
_publishEvent(EVENTS.WEBSITE_MAKER_LIVE_PREVIEW_MODAL, {
|
|
362
362
|
cta_location: ctaLocation,
|
|
363
363
|
continuation,
|
|
364
364
|
});
|
package/lib/src/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as s, a as I, b as S, c as N, d as e, e as A, f as O, B as t, g as C, h as D, i as G, j as P, k as R, l as o, m as L, n as M, o as r, p as n, q as i, r as l, s as b, t as c, u as F, v as g, w as B, x as Y, y as U, z as d, C as u, D as H, E as p, F as y, G as m, H as K, I as k, J as V, K as v, L as X, M as h, N as f, O as x, P as W, Q as z, R as w, S as J, T as Z, U as j, V as q, W as Q, X as $, Y as aa, Z as Ea, $ as _a, a0 as Ta, a1 as sa, a2 as Ia, a3 as Sa, a4 as Na, a5 as ea, a6 as Aa, a7 as Oa, a8 as ta, a9 as Ca, aa as Da, ab as Ga, ac as Pa, ad as Ra, ae as oa, af as La, ag as Ma, ah as ra, ai as na, aj as ia, ak as la, al as ba, am as ca, an as Fa, ao as ga, ap as Ba, aq as Ya, ar as Ua, as as da, at as ua, au as Ha, av as pa, aw as ya, ax as ma, ay as Ka, az as ka, aA as Va, aB as va, aC as Xa, aD as ha, aE as fa, aF as xa, aG as Wa, aH as za, aI as wa, aJ as Ja, aK as Za, aL as ja, aM as qa, aN as Qa, aO as $a, aP as aE, aQ as EE, aR as _E, aS as TE, aT as sE, aU as IE, aV as SE, aW as NE, aX as eE, aY as AE, aZ as OE, a_ as tE, a$ as CE, b0 as DE, b1 as GE, b2 as PE, b3 as RE, b4 as oE, b5 as LE, b6 as ME, b7 as rE, b8 as nE, b9 as iE, ba as lE, bb as bE, bc as cE, bd as FE, be as gE, bf as BE, bg as YE, bh as UE, bi as dE, bj as uE, bk as HE, bl as pE, bm as yE, bn as mE, bo as KE, bp as kE, bq as VE, br as vE, bs as XE, bt as hE, bu as fE, bv as xE, bw as WE, bx as zE, by as wE, bz as JE, bA as ZE, bB as jE, bC as qE, bD as QE, bE as $E, bF as a_, bG as E_, bH as __, bI as T_, bJ as s_, bK as I_, bL as S_, bM as N_, bN as e_, bO as A_, bP as O_, bQ as t_, bR as C_, bS as D_, bT as G_, bU as P_, bV as R_, bW as o_, bX as L_, bY as M_, bZ as r_, b_ as n_, b$ as i_, c0 as l_, c1 as b_, c2 as c_, c3 as F_, c4 as g_, c5 as B_, c6 as Y_, c7 as U_, c8 as d_, c9 as u_, ca as H_, cb as p_, cc as y_, cd as m_, ce as K_, cf as k_, cg as V_, ch as v_, ci as X_, cj as h_, ck as f_, cl as x_, cm as W_, cn as z_, co as w_, cp as J_, cq as Z_, cr as j_, cs as q_, ct as Q_, cu as $_, cv as aT, cw as ET, cx as _T, cy as TT, cz as sT, cA as IT, cB as ST, cC as NT, cD as eT } from "./lib-
|
|
2
|
-
import { U as OT, u as tT } from "./useEventTracker-
|
|
1
|
+
import { A as s, a as I, b as S, c as N, d as e, e as A, f as O, B as t, g as C, h as D, i as G, j as P, k as R, l as o, m as L, n as M, o as r, p as n, q as i, r as l, s as b, t as c, u as F, v as g, w as B, x as Y, y as U, z as d, C as u, D as H, E as p, F as y, G as m, H as K, I as k, J as V, K as v, L as X, M as h, N as f, O as x, P as W, Q as z, R as w, S as J, T as Z, U as j, V as q, W as Q, X as $, Y as aa, Z as Ea, $ as _a, a0 as Ta, a1 as sa, a2 as Ia, a3 as Sa, a4 as Na, a5 as ea, a6 as Aa, a7 as Oa, a8 as ta, a9 as Ca, aa as Da, ab as Ga, ac as Pa, ad as Ra, ae as oa, af as La, ag as Ma, ah as ra, ai as na, aj as ia, ak as la, al as ba, am as ca, an as Fa, ao as ga, ap as Ba, aq as Ya, ar as Ua, as as da, at as ua, au as Ha, av as pa, aw as ya, ax as ma, ay as Ka, az as ka, aA as Va, aB as va, aC as Xa, aD as ha, aE as fa, aF as xa, aG as Wa, aH as za, aI as wa, aJ as Ja, aK as Za, aL as ja, aM as qa, aN as Qa, aO as $a, aP as aE, aQ as EE, aR as _E, aS as TE, aT as sE, aU as IE, aV as SE, aW as NE, aX as eE, aY as AE, aZ as OE, a_ as tE, a$ as CE, b0 as DE, b1 as GE, b2 as PE, b3 as RE, b4 as oE, b5 as LE, b6 as ME, b7 as rE, b8 as nE, b9 as iE, ba as lE, bb as bE, bc as cE, bd as FE, be as gE, bf as BE, bg as YE, bh as UE, bi as dE, bj as uE, bk as HE, bl as pE, bm as yE, bn as mE, bo as KE, bp as kE, bq as VE, br as vE, bs as XE, bt as hE, bu as fE, bv as xE, bw as WE, bx as zE, by as wE, bz as JE, bA as ZE, bB as jE, bC as qE, bD as QE, bE as $E, bF as a_, bG as E_, bH as __, bI as T_, bJ as s_, bK as I_, bL as S_, bM as N_, bN as e_, bO as A_, bP as O_, bQ as t_, bR as C_, bS as D_, bT as G_, bU as P_, bV as R_, bW as o_, bX as L_, bY as M_, bZ as r_, b_ as n_, b$ as i_, c0 as l_, c1 as b_, c2 as c_, c3 as F_, c4 as g_, c5 as B_, c6 as Y_, c7 as U_, c8 as d_, c9 as u_, ca as H_, cb as p_, cc as y_, cd as m_, ce as K_, cf as k_, cg as V_, ch as v_, ci as X_, cj as h_, ck as f_, cl as x_, cm as W_, cn as z_, co as w_, cp as J_, cq as Z_, cr as j_, cs as q_, ct as Q_, cu as $_, cv as aT, cw as ET, cx as _T, cy as TT, cz as sT, cA as IT, cB as ST, cC as NT, cD as eT } from "./lib-33AmrlUy.js";
|
|
2
|
+
import { U as OT, u as tT } from "./useEventTracker-C5Ql5p7u.js";
|
|
3
3
|
import "vue";
|
|
4
4
|
import "vue-cropperjs";
|
|
5
5
|
import { createPinia as DT, setActivePinia as GT } from "pinia";
|
|
@@ -2,7 +2,7 @@ import { openBlock as u, createElementBlock as f, mergeProps as He, renderSlot a
|
|
|
2
2
|
import sj from "vue-cropperjs";
|
|
3
3
|
import * as i2 from "uuid";
|
|
4
4
|
import { v5 as Go, v4 as P4, validate as rj } from "uuid";
|
|
5
|
-
import { T as H6, U as u4, u as g2, E as E6, S as q8, P as DP, a as Br, A as Zg, b as T7 } from "./useEventTracker-
|
|
5
|
+
import { T as H6, U as u4, u as g2, E as E6, S as q8, P as DP, a as Br, A as Zg, b as T7 } from "./useEventTracker-C5Ql5p7u.js";
|
|
6
6
|
import { defineStore as q2, storeToRefs as rd } from "pinia";
|
|
7
7
|
import { useRouter as Xy, createRouter as aj, createMemoryHistory as lj } from "vue-router";
|
|
8
8
|
import Ls from "vuedraggable";
|
|
@@ -69705,10 +69705,10 @@ const go = /* @__PURE__ */ rt(lJ1), cJ1 = (e, t, n) => {
|
|
|
69705
69705
|
xe(() => n.context.isDesignCom, async () => {
|
|
69706
69706
|
const _ = P6().toLowerCase(), S = n.context.isDesignCom ? "Dcom" : "BrandCrowd";
|
|
69707
69707
|
try {
|
|
69708
|
-
const { default: M } = await TH(/* @__PURE__ */ Object.assign({ "./watermark/CreatedOnBrandCrowd-de-de.vue": () => import("./CreatedOnBrandCrowd-de-de-
|
|
69708
|
+
const { default: M } = await TH(/* @__PURE__ */ Object.assign({ "./watermark/CreatedOnBrandCrowd-de-de.vue": () => import("./CreatedOnBrandCrowd-de-de-a7cNT5AA.js"), "./watermark/CreatedOnBrandCrowd-en-us.vue": () => import("./CreatedOnBrandCrowd-en-us-BpZ89I9T.js"), "./watermark/CreatedOnBrandCrowd-es-es.vue": () => import("./CreatedOnBrandCrowd-es-es-Db0Ot-mQ.js"), "./watermark/CreatedOnBrandCrowd-fr-ca.vue": () => import("./CreatedOnBrandCrowd-fr-ca-Mbd7Hhxh.js"), "./watermark/CreatedOnBrandCrowd-fr-fr.vue": () => import("./CreatedOnBrandCrowd-fr-fr-Mbd7Hhxh.js"), "./watermark/CreatedOnBrandCrowd-pt-br.vue": () => import("./CreatedOnBrandCrowd-pt-br-B98aoT6y.js"), "./watermark/CreatedOnBrandCrowd-pt-pt.vue": () => import("./CreatedOnBrandCrowd-pt-pt-B98aoT6y.js"), "./watermark/CreatedOnDcom-de-de.vue": () => import("./CreatedOnDcom-de-de-b_GUYmhX.js"), "./watermark/CreatedOnDcom-en-us.vue": () => import("./CreatedOnDcom-en-us-BtTIwekM.js"), "./watermark/CreatedOnDcom-es-es.vue": () => import("./CreatedOnDcom-es-es-WbhHNEg-.js"), "./watermark/CreatedOnDcom-fr-ca.vue": () => import("./CreatedOnDcom-fr-ca-DnQOAvS5.js"), "./watermark/CreatedOnDcom-fr-fr.vue": () => import("./CreatedOnDcom-fr-fr-D7Q-aBNQ.js"), "./watermark/CreatedOnDcom-pt-br.vue": () => import("./CreatedOnDcom-pt-br-DnqkF_ve.js"), "./watermark/CreatedOnDcom-pt-pt.vue": () => import("./CreatedOnDcom-pt-pt-DNyyHF1o.js") }), `./watermark/CreatedOn${S}-${_}.vue`, 3);
|
|
69709
69709
|
i.value = M;
|
|
69710
69710
|
} catch {
|
|
69711
|
-
const { default: x } = await TH(/* @__PURE__ */ Object.assign({ "./watermark/CreatedOnBrandCrowd-en-us.vue": () => import("./CreatedOnBrandCrowd-en-us-
|
|
69711
|
+
const { default: x } = await TH(/* @__PURE__ */ Object.assign({ "./watermark/CreatedOnBrandCrowd-en-us.vue": () => import("./CreatedOnBrandCrowd-en-us-BpZ89I9T.js"), "./watermark/CreatedOnDcom-en-us.vue": () => import("./CreatedOnDcom-en-us-BtTIwekM.js") }), `./watermark/CreatedOn${S}-en-us.vue`, 3);
|
|
69712
69712
|
i.value = x;
|
|
69713
69713
|
}
|
|
69714
69714
|
}, {
|
package/lib/src/tracker.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as N, E as O, G as _, P as I, a as A, b as a, c as S, S as s, T as C, U as L, u as P } from "./useEventTracker-
|
|
1
|
+
import { A as N, E as O, G as _, P as I, a as A, b as a, c as S, S as s, T as C, U as L, u as P } from "./useEventTracker-C5Ql5p7u.js";
|
|
2
2
|
export {
|
|
3
3
|
N as AI_CTA_LOCATIONS,
|
|
4
4
|
O as EVENTS,
|
|
@@ -39,8 +39,8 @@ const E = {
|
|
|
39
39
|
WEBSITE_MAKER_REDO: "website_maker_redo",
|
|
40
40
|
WEBSITE_MAKER_HISTORY_CAPPED: "website_maker_history_capped",
|
|
41
41
|
WEBSITE_MAKER_HISTORY_OVERSIZED: "website_maker_history_oversized",
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
WEBSITE_MAKER_LIVE_PREVIEW_CLICK: "website_maker_live_preview_click",
|
|
43
|
+
WEBSITE_MAKER_LIVE_PREVIEW_MODAL: "website_maker_live_preview_modal"
|
|
44
44
|
}, r = {
|
|
45
45
|
MAKER: "maker",
|
|
46
46
|
MANAGE_WEBSITE: "manage_website"
|
|
@@ -88,7 +88,7 @@ const E = {
|
|
|
88
88
|
COPY_LINK: "copy_link",
|
|
89
89
|
VIEW_WEBSITE: "view_website",
|
|
90
90
|
USE_EXISTING_DOMAIN: "use_existing_domain"
|
|
91
|
-
},
|
|
91
|
+
}, L = {
|
|
92
92
|
USE_TEXT: "use_text",
|
|
93
93
|
EXIT: "exit"
|
|
94
94
|
}, i = {
|
|
@@ -110,7 +110,7 @@ const E = {
|
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
112
|
});
|
|
113
|
-
},
|
|
113
|
+
}, B = () => ({
|
|
114
114
|
sendExperimentStartedEvent: (e, t) => {
|
|
115
115
|
_(
|
|
116
116
|
E.EXPERIMENT_STARTED,
|
|
@@ -346,18 +346,18 @@ const E = {
|
|
|
346
346
|
// sign-in/save gating means a click doesn't always open the modal, and the
|
|
347
347
|
// post-sign-in return trip opens it without a click.
|
|
348
348
|
sendPreviewClickEvent: (e) => {
|
|
349
|
-
_(E.
|
|
349
|
+
_(E.WEBSITE_MAKER_LIVE_PREVIEW_CLICK, {
|
|
350
350
|
cta_location: e
|
|
351
351
|
});
|
|
352
352
|
},
|
|
353
353
|
sendPreviewModalOpenEvent: (e) => {
|
|
354
|
-
_(E.
|
|
354
|
+
_(E.WEBSITE_MAKER_LIVE_PREVIEW_MODAL, {
|
|
355
355
|
cta_location: e,
|
|
356
356
|
continuation: null
|
|
357
357
|
});
|
|
358
358
|
},
|
|
359
359
|
sendPreviewModalContinuationEvent: (e, t) => {
|
|
360
|
-
_(E.
|
|
360
|
+
_(E.WEBSITE_MAKER_LIVE_PREVIEW_MODAL, {
|
|
361
361
|
cta_location: t,
|
|
362
362
|
continuation: e
|
|
363
363
|
});
|
|
@@ -379,7 +379,7 @@ const E = {
|
|
|
379
379
|
export {
|
|
380
380
|
d as A,
|
|
381
381
|
E,
|
|
382
|
-
|
|
382
|
+
L as G,
|
|
383
383
|
r as P,
|
|
384
384
|
O as S,
|
|
385
385
|
S as T,
|
|
@@ -387,5 +387,5 @@ export {
|
|
|
387
387
|
p as a,
|
|
388
388
|
P as b,
|
|
389
389
|
i as c,
|
|
390
|
-
|
|
390
|
+
B as u
|
|
391
391
|
};
|
package/package.json
CHANGED
package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.preview-gate.test.ts
CHANGED
|
@@ -98,7 +98,7 @@ describe('BrandPageMaker.onPreview click analytics', () => {
|
|
|
98
98
|
|
|
99
99
|
expect(received).toEqual([
|
|
100
100
|
{
|
|
101
|
-
name: TRACKER_EVENTS.
|
|
101
|
+
name: TRACKER_EVENTS.WEBSITE_MAKER_LIVE_PREVIEW_CLICK,
|
|
102
102
|
props: { cta_location: PREVIEW_CTA_LOCATIONS.MAKER },
|
|
103
103
|
},
|
|
104
104
|
]);
|
|
@@ -289,7 +289,7 @@ describe('PreviewModalWithState', () => {
|
|
|
289
289
|
|
|
290
290
|
expect(received).toEqual([
|
|
291
291
|
{
|
|
292
|
-
name: EVENTS.
|
|
292
|
+
name: EVENTS.WEBSITE_MAKER_LIVE_PREVIEW_MODAL,
|
|
293
293
|
props: {
|
|
294
294
|
cta_location: PREVIEW_CTA_LOCATIONS.MAKER,
|
|
295
295
|
continuation: null,
|
|
@@ -303,7 +303,7 @@ describe('PreviewModalWithState', () => {
|
|
|
303
303
|
|
|
304
304
|
expect(received).toEqual([
|
|
305
305
|
{
|
|
306
|
-
name: EVENTS.
|
|
306
|
+
name: EVENTS.WEBSITE_MAKER_LIVE_PREVIEW_MODAL,
|
|
307
307
|
props: {
|
|
308
308
|
cta_location: PREVIEW_CTA_LOCATIONS.MANAGE_WEBSITE,
|
|
309
309
|
continuation: null,
|
|
@@ -326,7 +326,7 @@ describe('PreviewModalWithState', () => {
|
|
|
326
326
|
|
|
327
327
|
expect(received).toEqual([
|
|
328
328
|
{
|
|
329
|
-
name: EVENTS.
|
|
329
|
+
name: EVENTS.WEBSITE_MAKER_LIVE_PREVIEW_MODAL,
|
|
330
330
|
props: { cta_location: PREVIEW_CTA_LOCATIONS.MAKER, continuation },
|
|
331
331
|
},
|
|
332
332
|
]);
|
|
@@ -346,7 +346,7 @@ describe('PreviewModalWithState', () => {
|
|
|
346
346
|
|
|
347
347
|
expect(received).toEqual([
|
|
348
348
|
{
|
|
349
|
-
name: EVENTS.
|
|
349
|
+
name: EVENTS.WEBSITE_MAKER_LIVE_PREVIEW_MODAL,
|
|
350
350
|
props: {
|
|
351
351
|
cta_location: PREVIEW_CTA_LOCATIONS.MANAGE_WEBSITE,
|
|
352
352
|
continuation: PREVIEW_MODAL_CONTINUATION_EVENTS.EDIT,
|
|
@@ -74,8 +74,8 @@ export const EVENTS = {
|
|
|
74
74
|
WEBSITE_MAKER_REDO: 'website_maker_redo',
|
|
75
75
|
WEBSITE_MAKER_HISTORY_CAPPED: 'website_maker_history_capped',
|
|
76
76
|
WEBSITE_MAKER_HISTORY_OVERSIZED: 'website_maker_history_oversized',
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
WEBSITE_MAKER_LIVE_PREVIEW_CLICK: 'website_maker_live_preview_click',
|
|
78
|
+
WEBSITE_MAKER_LIVE_PREVIEW_MODAL: 'website_maker_live_preview_modal',
|
|
79
79
|
};
|
|
80
80
|
|
|
81
81
|
// The global `location` prop already means pre/post purchase, so the surface a
|
|
@@ -448,12 +448,12 @@ const useEventTracker = () => {
|
|
|
448
448
|
// sign-in/save gating means a click doesn't always open the modal, and the
|
|
449
449
|
// post-sign-in return trip opens it without a click.
|
|
450
450
|
sendPreviewClickEvent: (ctaLocation: string) => {
|
|
451
|
-
_publishEvent(EVENTS.
|
|
451
|
+
_publishEvent(EVENTS.WEBSITE_MAKER_LIVE_PREVIEW_CLICK, {
|
|
452
452
|
cta_location: ctaLocation,
|
|
453
453
|
});
|
|
454
454
|
},
|
|
455
455
|
sendPreviewModalOpenEvent: (ctaLocation: string) => {
|
|
456
|
-
_publishEvent(EVENTS.
|
|
456
|
+
_publishEvent(EVENTS.WEBSITE_MAKER_LIVE_PREVIEW_MODAL, {
|
|
457
457
|
cta_location: ctaLocation,
|
|
458
458
|
continuation: null,
|
|
459
459
|
});
|
|
@@ -462,7 +462,7 @@ const useEventTracker = () => {
|
|
|
462
462
|
continuation: string,
|
|
463
463
|
ctaLocation: string,
|
|
464
464
|
) => {
|
|
465
|
-
_publishEvent(EVENTS.
|
|
465
|
+
_publishEvent(EVENTS.WEBSITE_MAKER_LIVE_PREVIEW_MODAL, {
|
|
466
466
|
cta_location: ctaLocation,
|
|
467
467
|
continuation,
|
|
468
468
|
});
|