@mx-cartographer/experiences 7.0.11-alpha.al0 → 7.0.11-alpha.mega1
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/CHANGELOG.md +8 -0
- package/dist/{Account-D_kRKI6x.mjs → Account-BW3-oYEs.mjs} +1 -1
- package/dist/{AccountDetailsContent-Dfja2v8K.mjs → AccountDetailsContent-Tm7IjJIc.mjs} +16 -16
- package/dist/{AccountDetailsHeader-nc5mqlHm.mjs → AccountDetailsHeader-sum_Bgdy.mjs} +5 -5
- package/dist/{AccountFields-DeebSePp.mjs → AccountFields-CIz-r3gP.mjs} +2 -2
- package/dist/{AccountListItem-dh03tivj.mjs → AccountListItem-B-ZjJ4Gp.mjs} +3 -3
- package/dist/{AccountStore-Cp7xWX8n.mjs → AccountStore-BaMynkQT.mjs} +11 -11
- package/dist/{Accounts-DppzmFak.mjs → Accounts-CA-nqAjT.mjs} +1 -1
- package/dist/{BeatApi-D0WcLW3O.mjs → BeatApi-DLu87ijw.mjs} +3 -3
- package/dist/{BeatStore-y6WVs07e.mjs → BeatStore-By4aGoRM.mjs} +17 -17
- package/dist/{BudgetUtil-DmWvHV7C.mjs → BudgetUtil-CeSLAcsl.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-uTU7Nwn2.mjs → CategorySelectorDrawer-BPvjZ-Xo.mjs} +1 -1
- package/dist/{CategoryStore-BfYppD3g.mjs → CategoryStore-BOyzQjQp.mjs} +4 -4
- package/dist/{ConnectDrawer-BfYwIgKa.mjs → ConnectDrawer-phFH6OHt.mjs} +5 -5
- package/dist/{ConnectionsDrawer-BKG07Loi.mjs → ConnectionsDrawer-ihxkAi1P.mjs} +2 -2
- package/dist/{CurrencyInput-BtrNBP3z.mjs → CurrencyInput-bEx2Mbd0.mjs} +1 -1
- package/dist/{DebtsStore-BR1o55kk.mjs → DebtsStore-Dp-CraCD.mjs} +1 -1
- package/dist/{ExportCsvAction-BH369hls.mjs → ExportCsvAction-CbMfQ2Wa.mjs} +3 -3
- package/dist/{Fetch-CJ9cgjgV.mjs → Fetch-CkFKy79O.mjs} +8 -9
- package/dist/{FinstrongStore-rC2F4Tq3.mjs → FinstrongStore-mkALvztw.mjs} +4 -4
- package/dist/{GoalStore-rZKi2YjE.mjs → GoalStore-BWHkOQ8o.mjs} +21 -21
- package/dist/{Help-t24Ldz-O.mjs → Help-B3oENhkG.mjs} +1 -1
- package/dist/{LineChart-CfEEnHUy.mjs → LineChart-BWWmmJxV.mjs} +204 -183
- package/dist/{ListItemAction-Cwadpg85.mjs → ListItemAction-DNZZ5fSa.mjs} +1 -1
- package/dist/{ManageIncome-xksS_sWM.mjs → ManageIncome-Bef4VWt7.mjs} +4 -4
- package/dist/MerchantStore-DVH-QOf0.mjs +37 -0
- package/dist/{MicroWidgetContainer-DwTAjSdX.mjs → MicroWidgetContainer-Dxz8uBN9.mjs} +1 -1
- package/dist/{MiniWidgetContainer-CxggrnHk.mjs → MiniWidgetContainer-CTyjmE1h.mjs} +1 -1
- package/dist/{NetWorthStore-5qSDIglU.mjs → NetWorthStore-B6xF9eGH.mjs} +2 -2
- package/dist/{NotificationSettings-Cny7J1hO.mjs → NotificationSettings-uXVwpIa1.mjs} +2 -2
- package/dist/{NotificationStore-DpV9hXSE.mjs → NotificationStore-DHtSGySy.mjs} +4 -8
- package/dist/{OriginalBalanceAction-DDMRgIBU.mjs → OriginalBalanceAction-DepsKiJz.mjs} +3 -3
- package/dist/{RecurringSettings-DXQ64A8U.mjs → RecurringSettings-1EOh67IT.mjs} +3 -3
- package/dist/{RecurringTransactionsStore-CXhnipfd.mjs → RecurringTransactionsStore-D62XJtdL.mjs} +16 -20
- package/dist/{SettingsStore-CLLqNa_S.mjs → SettingsStore-B4gi6oOw.mjs} +29 -33
- package/dist/{TransactionApi-C0HMGDBV.mjs → TransactionApi-DbbcjI2L.mjs} +29 -29
- package/dist/TransactionDetails-DYF-P762.mjs +1337 -0
- package/dist/{TransactionStore-Cu_KM_J9.mjs → TransactionStore-0tLtBEIC.mjs} +25 -29
- package/dist/TrendsStore-WrHxzdbQ.mjs +565 -0
- package/dist/{Transaction-CXMMfhz-.mjs → User-Dq9Qj764.mjs} +48 -46
- package/dist/{ViewMoreMicroCard-DJoNOqkD.mjs → ViewMoreMicroCard-BZI5VMNW.mjs} +2 -5
- package/dist/{WidgetContainer-QcfqagZD.mjs → WidgetContainer-C2NBfpDg.mjs} +2 -2
- package/dist/accounts/api/AccountApi.d.ts +2 -2
- package/dist/accounts/index.es.js +17 -17
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/api/BudgetsApi.d.ts +2 -2
- package/dist/budgets/index.es.js +10 -10
- package/dist/cashflow/api/CashflowApi.d.ts +2 -3
- package/dist/cashflow/index.es.js +10 -10
- package/dist/categories/index.es.js +2 -2
- package/dist/common/api/AnalyticsApi.d.ts +2 -2
- package/dist/common/api/AppDataApi.d.ts +2 -2
- package/dist/common/api/BeatApi.d.ts +2 -2
- package/dist/common/api/CategoryApi.d.ts +3 -2
- package/dist/common/api/GlobalCopyApi.d.ts +1 -2
- package/dist/common/api/LocalizedCopyApi.d.ts +1 -2
- package/dist/common/api/NotificationApi.d.ts +2 -2
- package/dist/common/api/ScheduledPaymentsApi.d.ts +2 -3
- package/dist/common/api/UserApi.d.ts +2 -2
- package/dist/common/context/GlobalDataProvider.d.ts +2 -3
- package/dist/common/context/hooks.d.ts +1 -4
- package/dist/common/context/index.d.ts +1 -1
- package/dist/common/index.es.js +315 -321
- package/dist/common/stores/GlobalStore.d.ts +1 -2
- package/dist/common/types/index.d.ts +0 -1
- package/dist/common/utils/Fetch.d.ts +1 -3
- package/dist/dashboard/index.es.js +7 -7
- package/dist/debts/index.es.js +197 -180
- package/dist/{exportTransactionsToCSV-DpP_a1g8.mjs → exportTransactionsToCSV-BDlt8u0n.mjs} +1 -1
- package/dist/finstrong/api/FinstrongApi.d.ts +1 -2
- package/dist/finstrong/index.es.js +7 -7
- package/dist/goals/api/GoalApi.d.ts +2 -3
- package/dist/goals/index.es.js +11 -11
- package/dist/help/api/HelpApi.d.ts +2 -2
- package/dist/help/index.es.js +3 -3
- package/dist/hooks-DkUqN6JE.mjs +71 -0
- package/dist/insights/index.es.js +1 -1
- package/dist/investments/api/HoldingApi.d.ts +2 -3
- package/dist/investments/index.es.js +3 -3
- package/dist/merchants/api/MerchantApi.d.ts +1 -2
- package/dist/merchants/index.es.js +2 -2
- package/dist/microinsights/context/InsightsMicroWidgetDataProvider.d.ts +1 -2
- package/dist/microinsights/context/hooks.d.ts +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +7 -7
- package/dist/notifications/index.es.js +5 -5
- package/dist/recurringtransactions/api/RepeatingTransactionsApi.d.ts +2 -2
- package/dist/recurringtransactions/index.es.js +10 -10
- package/dist/settings/api/SettingsApi.d.ts +2 -3
- package/dist/settings/index.es.js +7 -7
- package/dist/spending/index.es.js +4 -4
- package/dist/transactions/api/TransactionApi.d.ts +2 -3
- package/dist/transactions/components/shared/transactiondetails/Description.d.ts +1 -0
- package/dist/transactions/components/shared/transactiondetails/TransactionDetailsView.d.ts +8 -0
- package/dist/transactions/index.es.js +121 -120
- package/dist/trends/index.es.js +10 -10
- package/dist/{useCombineEvents-Dbjzfwvo.mjs → useCombineEvents-DaDBSR_1.mjs} +29 -29
- package/package.json +1 -1
- package/dist/MerchantStore-h96aTml7.mjs +0 -37
- package/dist/TransactionDetails-v77agHHP.mjs +0 -1280
- package/dist/TrendsStore-B4Q-iLX0.mjs +0 -547
- package/dist/common/types/Handlers.d.ts +0 -2
- package/dist/hooks-DcS6DyRl.mjs +0 -74
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { getUnixTime as l } from "date-fns/getUnixTime";
|
|
2
2
|
import A from "bowser";
|
|
3
|
-
import { F as u, A as r } from "./Fetch-
|
|
3
|
+
import { F as u, A as r } from "./Fetch-CkFKy79O.mjs";
|
|
4
4
|
import y from "react";
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const d = async (o, t, n = "1.0.0", a = "Experiences") => {
|
|
6
|
+
const i = new _(o, t), { analytics_session: s } = await i.initializeAnalyticsSession(
|
|
7
7
|
n,
|
|
8
|
-
|
|
8
|
+
a
|
|
9
9
|
), e = window.location.hostname;
|
|
10
10
|
return {
|
|
11
|
-
sendAnalyticEvent: async (c) => await
|
|
11
|
+
sendAnalyticEvent: async (c) => await i.sendAnalyticEvent({
|
|
12
12
|
analytics_event: {
|
|
13
13
|
...c,
|
|
14
14
|
app_version: "widgets-v2",
|
|
15
15
|
created_at: l(/* @__PURE__ */ new Date()).toString(),
|
|
16
16
|
host: e,
|
|
17
17
|
name: c?.label || "",
|
|
18
|
-
session_id:
|
|
18
|
+
session_id: s.guid,
|
|
19
19
|
user_agent: navigator.userAgent || "",
|
|
20
20
|
version: 2
|
|
21
21
|
}
|
|
22
22
|
}),
|
|
23
|
-
sendAnalyticsPageview: async (c) => await
|
|
23
|
+
sendAnalyticsPageview: async (c) => await i.sendAnalyticsPageview({
|
|
24
24
|
analytics_pageview: {
|
|
25
25
|
...c,
|
|
26
26
|
app_version: "widgets-v2",
|
|
27
27
|
created_at: l(/* @__PURE__ */ new Date()).toString(),
|
|
28
28
|
host: e,
|
|
29
29
|
name: c.name,
|
|
30
|
-
session_id:
|
|
30
|
+
session_id: s.guid,
|
|
31
31
|
user_agent: navigator.userAgent || ""
|
|
32
32
|
}
|
|
33
33
|
})
|
|
@@ -35,24 +35,24 @@ const g = async (o, t, n = "1.0.0", s = "Experiences") => {
|
|
|
35
35
|
};
|
|
36
36
|
class _ {
|
|
37
37
|
fetchInstance;
|
|
38
|
-
constructor(t, n
|
|
39
|
-
this.fetchInstance = new u(t, n
|
|
38
|
+
constructor(t, n) {
|
|
39
|
+
this.fetchInstance = new u(t, n);
|
|
40
40
|
}
|
|
41
41
|
initializeAnalyticsSession = async (t, n) => {
|
|
42
|
-
const
|
|
43
|
-
browser_name:
|
|
44
|
-
browser_version:
|
|
42
|
+
const a = A.getParser(window.navigator.userAgent), { analytics_session: i } = await this.fetchInstance.post(r.ANALYTICS_SESSION, {
|
|
43
|
+
browser_name: a.getBrowserName() || "Unknown",
|
|
44
|
+
browser_version: a.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
|
|
49
|
+
return i ? (this.fetchInstance.post(r.ANALYTICS_FEATURE_VISITS, {
|
|
50
50
|
feature_visit: {
|
|
51
|
-
analytics_session_guid:
|
|
51
|
+
analytics_session_guid: i.guid,
|
|
52
52
|
feature_name: n || "Experiences",
|
|
53
|
-
is_first_visit:
|
|
53
|
+
is_first_visit: i.is_first_visit
|
|
54
54
|
}
|
|
55
|
-
}), { analytics_session:
|
|
55
|
+
}), { analytics_session: i }) : { analytics_session: null };
|
|
56
56
|
};
|
|
57
57
|
sendAnalyticEvent = async (t) => this.fetchInstance.post(r.ANALYTICS_EVENTS, t).catch((n) => {
|
|
58
58
|
throw n;
|
|
@@ -63,30 +63,30 @@ class _ {
|
|
|
63
63
|
}
|
|
64
64
|
class h {
|
|
65
65
|
fetchInstance;
|
|
66
|
-
constructor(t, n
|
|
67
|
-
this.fetchInstance = new u(t, n
|
|
66
|
+
constructor(t, n) {
|
|
67
|
+
this.fetchInstance = new u(t, n);
|
|
68
68
|
}
|
|
69
|
-
getGlobalCopy = async (t, n) => this.fetchInstance.post(`${r.LOCALIZED_CONTENT}/${t}`, { translation_key: n }).then((
|
|
69
|
+
getGlobalCopy = async (t, n) => this.fetchInstance.post(`${r.LOCALIZED_CONTENT}/${t}`, { translation_key: n }).then((a) => a);
|
|
70
70
|
}
|
|
71
71
|
const p = (o, t) => {
|
|
72
|
-
const { session: n } = t,
|
|
73
|
-
return y.useMemo(() => (
|
|
74
|
-
|
|
75
|
-
n ? e(
|
|
72
|
+
const { session: n } = t, a = Object.values(t).reduce((s, e) => n && e?.onAnalyticEvent && typeof e?.onAnalyticEvent == "function" ? [...s, e.onAnalyticEvent] : s, []), i = [...o, ...a];
|
|
73
|
+
return y.useMemo(() => (s) => {
|
|
74
|
+
i.forEach((e) => {
|
|
75
|
+
n ? e(s, n) : e(s);
|
|
76
76
|
});
|
|
77
77
|
}, [o, n]);
|
|
78
78
|
}, E = (o, t) => {
|
|
79
|
-
const { session: n } = t,
|
|
80
|
-
return y.useMemo(() => (
|
|
81
|
-
|
|
82
|
-
n ? e(
|
|
79
|
+
const { session: n } = t, a = Object.values(t).reduce((s, e) => n && e?.onAnalyticPageView && typeof e?.onAnalyticPageView == "function" ? [...s, e.onAnalyticPageView] : s, []), i = [...o, ...a];
|
|
80
|
+
return y.useMemo(() => (s) => {
|
|
81
|
+
i.forEach((e) => {
|
|
82
|
+
n ? e(s, n) : e(s);
|
|
83
83
|
});
|
|
84
84
|
}, [o, n]);
|
|
85
85
|
};
|
|
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
|
};
|
package/package.json
CHANGED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { makeAutoObservable as m, runInAction as c } from "mobx";
|
|
2
|
-
import { F as p, A as h } from "./Fetch-CJ9cgjgV.mjs";
|
|
3
|
-
class i {
|
|
4
|
-
fetchInstance;
|
|
5
|
-
constructor(t, n, s) {
|
|
6
|
-
this.fetchInstance = new p(t, n, void 0, s);
|
|
7
|
-
}
|
|
8
|
-
getMerchants = async (t = [], n = [], s = 1, o = 25) => {
|
|
9
|
-
let a = h.MERCHANTS;
|
|
10
|
-
return a += `?page=${s}&per_page=${o}`, t.length && t.forEach((e) => a += `&fuzzy_name[]=${e}`), n.length && n.forEach((e) => a += `&guid[]=${e}`), this.fetchInstance.get(a).then((e) => e.merchants);
|
|
11
|
-
};
|
|
12
|
-
getMerchantByGuid = async (t) => this.fetchInstance.get(`${h.MERCHANTS}/${t}`).then((n) => n.merchant);
|
|
13
|
-
}
|
|
14
|
-
class u {
|
|
15
|
-
globalStore;
|
|
16
|
-
api = new i("/", "");
|
|
17
|
-
merchant = null;
|
|
18
|
-
merchants = [];
|
|
19
|
-
isLoading = !1;
|
|
20
|
-
constructor(t) {
|
|
21
|
-
this.globalStore = t, this.api = new i(t.endpoint, t.sessionToken, t.onError), m(this);
|
|
22
|
-
}
|
|
23
|
-
loadMerchants = async (t = "") => {
|
|
24
|
-
this.isLoading = !0;
|
|
25
|
-
const n = await this.api.getMerchants([t]);
|
|
26
|
-
c(() => {
|
|
27
|
-
this.merchants = n, this.isLoading = !1;
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
loadMerchantByGuid = async (t) => {
|
|
31
|
-
const n = await this.api.getMerchantByGuid(t);
|
|
32
|
-
c(() => this.merchant = n);
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
export {
|
|
36
|
-
u as M
|
|
37
|
-
};
|