@mx-cartographer/experiences 7.0.20-alpha.mm12 → 7.0.20-alpha.mm13
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/dist/{AccountStore-Cr3Kjpo4.mjs → AccountStore-xRAZ5q8q.mjs} +2 -2
- package/dist/{BeatApi-D4iZVGiY.mjs → BeatApi-bPKymk9s.mjs} +2 -2
- package/dist/{BeatStore-LPnzXtXQ.mjs → BeatStore-mnrkh3h6.mjs} +1 -1
- package/dist/{CategoryStore-CKS37_CH.mjs → CategoryStore-BlWkDwiZ.mjs} +2 -2
- package/dist/{Fetch-DV5XjBJP.mjs → Fetch-5yMqsiXO.mjs} +22 -22
- package/dist/{FinstrongStore-Cy--8F7E.mjs → FinstrongStore-ZIbHKDSr.mjs} +8 -8
- package/dist/{GoalStore-DcobIUfg.mjs → GoalStore-sMlO3voq.mjs} +2 -2
- package/dist/{MerchantStore-cn8kDyVN.mjs → MerchantStore-CR5dFLpL.mjs} +10 -10
- package/dist/{NotificationStore-CIJ8NbCF.mjs → NotificationStore-Bc_r-sfC.mjs} +11 -11
- package/dist/{RecurringTransactionsStore-JqhzbjvQ.mjs → RecurringTransactionsStore-DukrsYPV.mjs} +21 -21
- package/dist/{SettingsStore-CU9TOlLc.mjs → SettingsStore-C7rj4rLf.mjs} +6 -6
- package/dist/{TransactionApi-CD2A7dWt.mjs → TransactionApi-Dla2CTeC.mjs} +2 -2
- package/dist/{TransactionStore-DCQGlXOT.mjs → TransactionStore-DasHlGBB.mjs} +2 -2
- package/dist/{ViewMoreMicroCard-BWFVzUt8.mjs → ViewMoreMicroCard-CjPlvt2p.mjs} +2 -2
- package/dist/accounts/index.es.js +1 -1
- package/dist/cashflow/index.es.js +2 -2
- package/dist/categories/index.es.js +1 -1
- package/dist/common/index.es.js +84 -84
- package/dist/finstrong/index.es.js +1 -1
- package/dist/goals/index.es.js +2 -2
- package/dist/insights/index.es.js +1 -1
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/notifications/index.es.js +3 -3
- package/dist/recurringtransactions/index.es.js +2 -2
- package/dist/settings/index.es.js +1 -1
- package/dist/transactions/index.es.js +3 -3
- package/dist/trends/index.es.js +1 -1
- package/dist/{useCombineEvents-DHSTr2O0.mjs → useCombineEvents-DwW81wcc.mjs} +20 -20
- package/package.json +1 -1
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { getUnixTime as l } from "date-fns/getUnixTime";
|
|
2
|
-
import
|
|
3
|
-
import { F as u, A as
|
|
4
|
-
import
|
|
5
|
-
const
|
|
2
|
+
import y from "bowser";
|
|
3
|
+
import { F as u, A as c } from "./Fetch-5yMqsiXO.mjs";
|
|
4
|
+
import A from "react";
|
|
5
|
+
const d = async (o, t, n = "1.0.0", s = "Experiences") => {
|
|
6
6
|
const a = new _(o, t), { analytics_session: i } = await a.initializeAnalyticsSession(
|
|
7
7
|
n,
|
|
8
8
|
s
|
|
9
9
|
), e = window.location.hostname;
|
|
10
10
|
return {
|
|
11
|
-
sendAnalyticEvent: async (
|
|
11
|
+
sendAnalyticEvent: async (r) => await a.sendAnalyticEvent({
|
|
12
12
|
analytics_event: {
|
|
13
|
-
...
|
|
13
|
+
...r,
|
|
14
14
|
app_version: "widgets-v2",
|
|
15
15
|
created_at: l(/* @__PURE__ */ new Date()).toString(),
|
|
16
16
|
host: e,
|
|
17
|
-
name:
|
|
17
|
+
name: r?.label || "",
|
|
18
18
|
session_id: i.guid,
|
|
19
19
|
user_agent: navigator.userAgent || "",
|
|
20
20
|
version: 2
|
|
21
21
|
}
|
|
22
22
|
}),
|
|
23
|
-
sendAnalyticsPageview: async (
|
|
23
|
+
sendAnalyticsPageview: async (r) => await a.sendAnalyticsPageview({
|
|
24
24
|
analytics_pageview: {
|
|
25
|
-
...
|
|
25
|
+
...r,
|
|
26
26
|
app_version: "widgets-v2",
|
|
27
27
|
created_at: l(/* @__PURE__ */ new Date()).toString(),
|
|
28
28
|
host: e,
|
|
29
|
-
name:
|
|
29
|
+
name: r.name,
|
|
30
30
|
session_id: i.guid,
|
|
31
31
|
user_agent: navigator.userAgent || ""
|
|
32
32
|
}
|
|
@@ -36,17 +36,17 @@ const g = async (o, t, n = "1.0.0", s = "Experiences") => {
|
|
|
36
36
|
class _ {
|
|
37
37
|
fetchInstance;
|
|
38
38
|
constructor(t, n, s) {
|
|
39
|
-
this.fetchInstance = new u(t, n,
|
|
39
|
+
this.fetchInstance = new u(t, n), console.log("API constructor onError:", s);
|
|
40
40
|
}
|
|
41
41
|
initializeAnalyticsSession = async (t, n) => {
|
|
42
|
-
const s =
|
|
42
|
+
const s = y.getParser(window.navigator.userAgent), { analytics_session: a } = await this.fetchInstance.post(c.ANALYTICS_SESSION, {
|
|
43
43
|
browser_name: s.getBrowserName() || "Unknown",
|
|
44
44
|
browser_version: s.getBrowserVersion() || "0.0.0",
|
|
45
45
|
is_first_visit: !1,
|
|
46
46
|
product_name: "Individual Widget",
|
|
47
47
|
product_version: t
|
|
48
48
|
});
|
|
49
|
-
return a ? (this.fetchInstance.post(
|
|
49
|
+
return a ? (this.fetchInstance.post(c.ANALYTICS_FEATURE_VISITS, {
|
|
50
50
|
feature_visit: {
|
|
51
51
|
analytics_session_guid: a.guid,
|
|
52
52
|
feature_name: n || "Experiences",
|
|
@@ -54,30 +54,30 @@ class _ {
|
|
|
54
54
|
}
|
|
55
55
|
}), { analytics_session: a }) : { analytics_session: null };
|
|
56
56
|
};
|
|
57
|
-
sendAnalyticEvent = async (t) => this.fetchInstance.post(
|
|
57
|
+
sendAnalyticEvent = async (t) => this.fetchInstance.post(c.ANALYTICS_EVENTS, t).catch((n) => {
|
|
58
58
|
throw n;
|
|
59
59
|
});
|
|
60
|
-
sendAnalyticsPageview = async (t) => this.fetchInstance.post(
|
|
60
|
+
sendAnalyticsPageview = async (t) => this.fetchInstance.post(c.ANALYTICS_PAGEVIEWS, t).catch((n) => {
|
|
61
61
|
throw n;
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
class h {
|
|
65
65
|
fetchInstance;
|
|
66
66
|
constructor(t, n, s) {
|
|
67
|
-
this.fetchInstance = new u(t, n,
|
|
67
|
+
this.fetchInstance = new u(t, n), console.log("API constructor onError:", s);
|
|
68
68
|
}
|
|
69
|
-
getGlobalCopy = async (t, n) => this.fetchInstance.post(`${
|
|
69
|
+
getGlobalCopy = async (t, n) => this.fetchInstance.post(`${c.LOCALIZED_CONTENT}/${t}`, { translation_key: n }).then((s) => s);
|
|
70
70
|
}
|
|
71
71
|
const p = (o, t) => {
|
|
72
72
|
const { session: n } = t, s = Object.values(t).reduce((i, e) => n && e?.onAnalyticEvent && typeof e?.onAnalyticEvent == "function" ? [...i, e.onAnalyticEvent] : i, []), a = [...o, ...s];
|
|
73
|
-
return
|
|
73
|
+
return A.useMemo(() => (i) => {
|
|
74
74
|
a.forEach((e) => {
|
|
75
75
|
n ? e(i, n) : e(i);
|
|
76
76
|
});
|
|
77
77
|
}, [o, n]);
|
|
78
78
|
}, E = (o, t) => {
|
|
79
79
|
const { session: n } = t, s = Object.values(t).reduce((i, e) => n && e?.onAnalyticPageView && typeof e?.onAnalyticPageView == "function" ? [...i, e.onAnalyticPageView] : i, []), a = [...o, ...s];
|
|
80
|
-
return
|
|
80
|
+
return A.useMemo(() => (i) => {
|
|
81
81
|
a.forEach((e) => {
|
|
82
82
|
n ? e(i, n) : e(i);
|
|
83
83
|
});
|
|
@@ -86,7 +86,7 @@ const p = (o, t) => {
|
|
|
86
86
|
export {
|
|
87
87
|
_ as A,
|
|
88
88
|
h as G,
|
|
89
|
-
|
|
89
|
+
d as a,
|
|
90
90
|
E as b,
|
|
91
91
|
p as u
|
|
92
92
|
};
|