@mx-cartographer/experiences 9.0.3 → 9.1.0-alpha.bb1

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 (121) hide show
  1. package/CHANGELOG.md +0 -4
  2. package/dist/Analytics-BKzTPees.mjs +61 -0
  3. package/dist/GlobalCopyApi-BeXzaDH9.mjs +487 -0
  4. package/dist/HeaderCell-EhCUSjvj.mjs +10 -0
  5. package/dist/Loader-BlVzRtUd.mjs +73 -0
  6. package/dist/MiniWidgetContainer-COwnjfy7.mjs +110 -0
  7. package/dist/OriginalBalanceAction-sbiqaxok.mjs +110 -0
  8. package/dist/SpendingLegend-D15ixlQ1.mjs +222 -0
  9. package/dist/accounts/index.es.js +12 -1598
  10. package/dist/accounts-DkyAiLpg.mjs +15632 -0
  11. package/dist/analytics/index.es.js +155 -139
  12. package/dist/budgets/index.es.js +1317 -1266
  13. package/dist/cashflow/index.es.js +1047 -942
  14. package/dist/categories/index.es.js +4 -4
  15. package/dist/common/index.es.js +101 -310
  16. package/dist/core/index.es.js +80 -104
  17. package/dist/core-BexP5oiV.mjs +4047 -0
  18. package/dist/dashboard/index.es.js +185 -141
  19. package/dist/debts/index.es.js +1384 -1272
  20. package/dist/finstrong/index.es.js +3366 -3471
  21. package/dist/goals/index.es.js +1103 -984
  22. package/dist/help/index.es.js +3 -25
  23. package/dist/help-CctDYrAH.mjs +2308 -0
  24. package/dist/insights/index.es.js +93 -4843
  25. package/dist/investments/index.es.js +1533 -1522
  26. package/dist/merchants/index.es.js +75 -64
  27. package/dist/microinsights/index.es.js +15 -824
  28. package/dist/microinsights-CRf3ChsJ.mjs +1814 -0
  29. package/dist/networth/index.es.js +550 -503
  30. package/dist/notifications/index.es.js +169 -161
  31. package/dist/recurringtransactions/index.es.js +10 -962
  32. package/dist/recurringtransactions-gbJ_NA8u.mjs +1564 -0
  33. package/dist/settings/index.es.js +13 -880
  34. package/dist/settings-ZMHe439l.mjs +1526 -0
  35. package/dist/spending/index.es.js +400 -456
  36. package/dist/transactions/index.es.js +10 -603
  37. package/dist/trends/index.es.js +1268 -1407
  38. package/package.json +28 -28
  39. package/dist/Account-BaJmiJAG.mjs +0 -118
  40. package/dist/Account-BxHMlV9R.mjs +0 -30
  41. package/dist/AccountDetailsHeader-DIysk_4w.mjs +0 -95
  42. package/dist/AccountDisplayName-CO7z3v99.mjs +0 -11
  43. package/dist/AccountFields-mwJ8NXsX.mjs +0 -141
  44. package/dist/AccountListItem-BDXHs4tV.mjs +0 -94
  45. package/dist/AccountUtils-T5_Odvos.mjs +0 -27
  46. package/dist/Accounts-CseLC3lL.mjs +0 -5
  47. package/dist/Analytics-CkYXKvco.mjs +0 -53
  48. package/dist/Analytics-CzGzz_sE.mjs +0 -136
  49. package/dist/ApiEndpoints-DXwIYNUV.mjs +0 -49
  50. package/dist/BudgetUtil-Bg2AQJpQ.mjs +0 -74
  51. package/dist/Category-DEKZGLYe.mjs +0 -301
  52. package/dist/CategorySelectorDrawer-8soGrhB8.mjs +0 -430
  53. package/dist/Connect-Dk6GZEsA.mjs +0 -39
  54. package/dist/ConnectCard-CCep7Zqe.mjs +0 -54
  55. package/dist/ConnectDrawer-Cnjr3Ddg.mjs +0 -58
  56. package/dist/ConnectionsDrawer-CtfPXk0M.mjs +0 -54
  57. package/dist/CurrencyDialog-DumQCTPO.mjs +0 -373
  58. package/dist/CurrencyInput-adTIRtL3.mjs +0 -87
  59. package/dist/CurrencyText-CCbE6MmF.mjs +0 -20
  60. package/dist/DateFormats-HudZ3Bjs.mjs +0 -64
  61. package/dist/DateUtil-Bhq59ZVg.mjs +0 -58
  62. package/dist/DebtUtils-DD3186U-.mjs +0 -153
  63. package/dist/Dialog-Bvd2n8hz.mjs +0 -66
  64. package/dist/Donut-SzzfZDHF.mjs +0 -88
  65. package/dist/Drawer-BXqqBMxg.mjs +0 -174
  66. package/dist/EmbeddedCard-DPwJjqMH.mjs +0 -856
  67. package/dist/EmptyState-CJUDc3kD.mjs +0 -84
  68. package/dist/Error-Dogaw2jO.mjs +0 -84
  69. package/dist/ErrorBoundary-CsdOcnJ9.mjs +0 -23
  70. package/dist/ExportCsvAction-Bw02ZJEj.mjs +0 -24
  71. package/dist/GlobalAccountFilter-7Cg2-9A5.mjs +0 -237
  72. package/dist/GlobalCopyApi-wcnDUzMV.mjs +0 -128
  73. package/dist/GoalsUtil-C9EnLWvC.mjs +0 -107
  74. package/dist/HeaderCell-P8w6CmfO.mjs +0 -6
  75. package/dist/Help-CkQTjORd.mjs +0 -299
  76. package/dist/Help-DJ8PrVHX.mjs +0 -3209
  77. package/dist/IconBacking-DgT8DCeh.mjs +0 -39
  78. package/dist/InformationTooltip-4su8bn1e.mjs +0 -41
  79. package/dist/InvestmentUtil-BItV7uEs.mjs +0 -134
  80. package/dist/LineChart-CejWS_rh.mjs +0 -612
  81. package/dist/ListItemAction-CzZ8s39Z.mjs +0 -69
  82. package/dist/ListItemRow-kH1rn8Xu.mjs +0 -67
  83. package/dist/ListItemWrapper-B5r-YQQ_.mjs +0 -42
  84. package/dist/Loader-CxeBwuPG.mjs +0 -21
  85. package/dist/Localization-DnoVyBNK.mjs +0 -38
  86. package/dist/ManageIncome-D1yBODQi.mjs +0 -595
  87. package/dist/MicroWidgetContainer-CfKdQfhi.mjs +0 -45
  88. package/dist/MiniWidgetContainer-BdPiUU-u.mjs +0 -66
  89. package/dist/NetWorthUtils-DilGN1nW.mjs +0 -95
  90. package/dist/Notification-DTNYSd8P.mjs +0 -7
  91. package/dist/NotificationSettings-B4JA5IKE.mjs +0 -677
  92. package/dist/NotificationUtils-BRGFTePr.mjs +0 -23
  93. package/dist/NumberFormatting--XMeeBfr.mjs +0 -49
  94. package/dist/OriginalBalanceAction-BybTXDtO.mjs +0 -114
  95. package/dist/RecurringSettings-D2xbNb67.mjs +0 -88
  96. package/dist/RecurringTransactionsUtil-B3rLEx_g.mjs +0 -253
  97. package/dist/ResponsiveButton-CC9F_Ezk.mjs +0 -45
  98. package/dist/SearchBox-Cpgu_gdO.mjs +0 -50
  99. package/dist/Select-BFt-HD-L.mjs +0 -55
  100. package/dist/SelectionBox-B4xELRgp.mjs +0 -48
  101. package/dist/SingleSegmentDonut-7Uy6VEld.mjs +0 -69
  102. package/dist/Sizes-DISGrlUg.mjs +0 -6
  103. package/dist/SkeletonLoader-BaNboJjD.mjs +0 -38
  104. package/dist/SpendingData-Fii_xATx.mjs +0 -53
  105. package/dist/SpendingLegend-5Ct_FZ8o.mjs +0 -193
  106. package/dist/StatusBar-CPfSXe80.mjs +0 -30
  107. package/dist/TabContentContainer-CnMXkVqr.mjs +0 -21
  108. package/dist/ToggleListItem-Dl1lXNwj.mjs +0 -91
  109. package/dist/TransactionDetails-DctXr07p.mjs +0 -1714
  110. package/dist/TransactionUtils-BphBJBbU.mjs +0 -234
  111. package/dist/TrendsUtil-D9z3kIj_.mjs +0 -69
  112. package/dist/UserStore-CRpKQjpP.mjs +0 -3002
  113. package/dist/ViewMoreMicroCard-BD_MNc2z.mjs +0 -1295
  114. package/dist/WidgetContainer-CmbU4CBH.mjs +0 -482
  115. package/dist/hooks-BaO_gOI6.mjs +0 -77
  116. package/dist/useAccountDisplayName-CFa_MrS6.mjs +0 -15
  117. package/dist/useAriaLive-MkYebyUR.mjs +0 -35
  118. package/dist/useDimensions-CeDR9V8N.mjs +0 -36
  119. package/dist/useInsightsEnabled-DaNLPmUU.mjs +0 -11
  120. package/dist/useScreenSize-mWpmnh5w.mjs +0 -36
  121. package/dist/useWidgetLoadTimer-CJb-RELP.mjs +0 -19
@@ -1,152 +1,168 @@
1
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
1
+ import { d as R, h as A, p as y, r as f, t as W } from "../Loader-BlVzRtUd.mjs";
2
+ import { t as j } from "../MiniWidgetContainer-COwnjfy7.mjs";
2
3
  import c from "react";
3
- import { observer as h } from "mobx-react-lite";
4
- import { SurveyQuestionType as C } from "posthog-js";
5
- import R from "@mui/material/Alert";
6
- import j from "@mui/material/Button";
4
+ import { observer as v } from "mobx-react-lite";
7
5
  import s from "@mui/material/Stack";
8
- import { Text as u, TextField as A } from "@mxenabled/mxui";
9
- import { L } from "../Loader-CxeBwuPG.mjs";
10
- import { M as W } from "../MiniWidgetContainer-BdPiUU-u.mjs";
11
- import { j as f, u as g, g as $, b as q } from "../hooks-BaO_gOI6.mjs";
12
- import E from "@mui/material/ToggleButton";
13
- import Q from "@mui/material/ToggleButtonGroup";
14
- import { useTheme as B } from "@mui/material/styles";
15
- const G = () => {
16
- const { question: n, response: a, setResponse: t } = f(), { analytics: o } = g(), m = B(), d = n, y = (p, r) => {
17
- t(r);
6
+ import { Text as u, TextField as q } from "@mxenabled/mxui";
7
+ import E from "@mui/material/Button";
8
+ import { jsx as e, jsxs as i } from "react/jsx-runtime";
9
+ import { useTheme as L } from "@mui/material/styles";
10
+ import Q from "@mui/material/ToggleButton";
11
+ import B from "@mui/material/ToggleButtonGroup";
12
+ import { SurveyQuestionType as C } from "posthog-js";
13
+ import G from "@mui/material/Alert";
14
+ var O = () => {
15
+ const { question: o, response: a, setResponse: t } = f(), { analytics: r } = y(), h = L(), d = o, m = (p, n) => {
16
+ t(n);
18
17
  };
19
- return /* @__PURE__ */ i(c.Fragment, { children: [
20
- /* @__PURE__ */ e(
21
- Q,
22
- {
23
- exclusive: !0,
24
- onChange: y,
25
- sx: {
26
- display: "flex",
27
- height: 44,
28
- justifyContent: "space-between",
29
- width: "100%"
30
- },
31
- value: a,
32
- children: Array.from({ length: d.scale }, (p, r) => /* @__PURE__ */ e(
33
- E,
34
- {
35
- color: "primary",
36
- sx: { fontWeight: "bold", width: `${100 / d.scale}%` },
37
- value: r + 1,
38
- children: r + 1
39
- },
40
- r + 1
41
- ))
42
- }
43
- ),
44
- /* @__PURE__ */ i(
45
- s,
46
- {
47
- sx: {
48
- color: m.palette.secondary.light,
49
- flexDirection: "row",
50
- justifyContent: "space-between"
51
- },
52
- children: [
53
- /* @__PURE__ */ e(u, { bold: !0, color: "text.secondary", variant: "caption", children: o.strongly_disagree }),
54
- /* @__PURE__ */ e(u, { bold: !0, color: "text.secondary", variant: "caption", children: o.strongly_agree })
55
- ]
56
- }
57
- )
58
- ] });
59
- }, O = h(G), z = () => {
60
- const { response: n, setResponse: a } = f(), { analytics: t } = g();
61
- return /* @__PURE__ */ e(
62
- A,
63
- {
64
- label: t.feedback,
65
- multiline: !0,
66
- onChange: (o) => {
67
- a(o.target.value);
18
+ return /* @__PURE__ */ i(c.Fragment, { children: [/* @__PURE__ */ e(B, {
19
+ exclusive: !0,
20
+ onChange: m,
21
+ sx: {
22
+ display: "flex",
23
+ height: 44,
24
+ justifyContent: "space-between",
25
+ width: "100%"
26
+ },
27
+ value: a,
28
+ children: Array.from({ length: d.scale }, (p, n) => /* @__PURE__ */ e(Q, {
29
+ color: "primary",
30
+ sx: {
31
+ fontWeight: "bold",
32
+ width: `${100 / d.scale}%`
68
33
  },
69
- placeholder: t.improve_experience,
70
- rows: 4,
71
- value: n
72
- }
73
- );
74
- }, H = h(z), I = () => {
75
- const { onEvent: n } = $(), {
76
- surveyId: a,
77
- question: t,
78
- isLastQuestion: o,
79
- nextQuestion: m,
80
- loadSurvey: d,
81
- questionCount: y,
82
- response: p,
83
- responsePayload: r,
84
- resetStore: x,
85
- survey: S
86
- } = f(), { analytics: l, common: w } = g(), { isCopyLoaded: k, isInitialized: v } = q(), [b, _] = c.useState(!1);
34
+ value: n + 1,
35
+ children: n + 1
36
+ }, n + 1))
37
+ }), /* @__PURE__ */ i(s, {
38
+ sx: {
39
+ color: h.palette.secondary.light,
40
+ flexDirection: "row",
41
+ justifyContent: "space-between"
42
+ },
43
+ children: [/* @__PURE__ */ e(u, {
44
+ bold: !0,
45
+ color: "text.secondary",
46
+ variant: "caption",
47
+ children: r.strongly_disagree
48
+ }), /* @__PURE__ */ e(u, {
49
+ bold: !0,
50
+ color: "text.secondary",
51
+ variant: "caption",
52
+ children: r.strongly_agree
53
+ })]
54
+ })] });
55
+ }, $ = v(O), z = () => {
56
+ const { response: o, setResponse: a } = f(), { analytics: t } = y();
57
+ return /* @__PURE__ */ e(q, {
58
+ label: t.feedback,
59
+ multiline: !0,
60
+ onChange: (r) => {
61
+ a(r.target.value);
62
+ },
63
+ placeholder: t.improve_experience,
64
+ rows: 4,
65
+ value: o
66
+ });
67
+ }, H = v(z), I = () => {
68
+ const { onEvent: o } = R(), { surveyId: a, question: t, isLastQuestion: r, nextQuestion: h, loadSurvey: d, questionCount: m, response: p, responsePayload: n, resetStore: x, survey: S } = f(), { analytics: l, common: w } = y(), { isCopyLoaded: k, isInitialized: g } = A(), [b, _] = c.useState(!1);
87
69
  c.useEffect(() => {
88
- v && d();
89
- }, [v]), c.useEffect(() => {
90
- n("survey shown", {
91
- $survey_id: a
92
- });
70
+ g && d();
71
+ }, [g]), c.useEffect(() => {
72
+ o("survey shown", { $survey_id: a });
93
73
  }, [S]);
94
- const M = () => {
95
- n("survey dismissed", {
96
- $survey_id: a
97
- }), x(), _(!1);
98
- }, T = () => {
99
- m();
74
+ const T = () => {
75
+ o("survey dismissed", { $survey_id: a }), x(), _(!1);
76
+ }, M = () => {
77
+ h();
100
78
  }, F = () => {
101
- n("survey sent", r), x(), _(!0);
79
+ o("survey sent", n), x(), _(!0);
102
80
  };
103
- return k ? !t && !b ? null : /* @__PURE__ */ i(
104
- W,
105
- {
106
- closeLabel: w.close_aria,
107
- onClose: M,
108
- sx: {
109
- "& .MuiCardHeader-root": {
81
+ return k ? !t && !b ? null : /* @__PURE__ */ i(j, {
82
+ closeLabel: w.close_aria,
83
+ onClose: T,
84
+ sx: {
85
+ "& .MuiCardHeader-root": {
86
+ px: 24,
87
+ pb: 2
88
+ },
89
+ "& .MuiCardHeader-subheader": { fontSize: 13 },
90
+ "& .MuiCardContent-root:last-child": { pb: 0 }
91
+ },
92
+ title: l.your_feedback_matters,
93
+ children: [
94
+ /* @__PURE__ */ e(s, {
95
+ sx: {
96
+ pb: 8,
97
+ px: 24
98
+ },
99
+ children: /* @__PURE__ */ e(u, {
100
+ truncate: !1,
101
+ variant: "subtitle2",
102
+ children: l.let_us_know
103
+ })
104
+ }),
105
+ t && /* @__PURE__ */ i(c.Fragment, { children: [
106
+ /* @__PURE__ */ i(s, {
107
+ sx: {
108
+ gap: 4,
109
+ px: 24,
110
+ py: 16
111
+ },
112
+ children: [/* @__PURE__ */ e(u, {
113
+ bold: !0,
114
+ truncate: !1,
115
+ children: t.question
116
+ }), /* @__PURE__ */ e(u, {
117
+ variant: "caption",
118
+ children: m
119
+ })]
120
+ }),
121
+ /* @__PURE__ */ i(s, {
122
+ sx: {
123
+ gap: 6,
124
+ px: 24,
125
+ pb: 8
126
+ },
127
+ children: [t.type === C.Rating && /* @__PURE__ */ e($, {}), t.type === C.Open && /* @__PURE__ */ e(H, {})]
128
+ }),
129
+ /* @__PURE__ */ e(s, {
130
+ sx: {
131
+ px: 24,
132
+ py: 16
133
+ },
134
+ children: /* @__PURE__ */ e(E, {
135
+ disabled: !r && !p,
136
+ onClick: r ? F : M,
137
+ variant: r && p ? "contained" : "outlined",
138
+ children: r ? l.submit_feedback : l.continue
139
+ })
140
+ })
141
+ ] }),
142
+ b && /* @__PURE__ */ i(c.Fragment, { children: [/* @__PURE__ */ e(s, {
143
+ sx: {
110
144
  px: 24,
111
- pb: 2
145
+ py: 24
112
146
  },
113
- "& .MuiCardHeader-subheader": {
114
- fontSize: 13
147
+ children: /* @__PURE__ */ e(u, {
148
+ bold: !0,
149
+ truncate: !1,
150
+ children: l.thank_you
151
+ })
152
+ }), /* @__PURE__ */ e(s, {
153
+ sx: {
154
+ px: 24,
155
+ pb: 24
115
156
  },
116
- "& .MuiCardContent-root:last-child": {
117
- pb: 0
118
- }
119
- },
120
- title: l.your_feedback_matters,
121
- children: [
122
- /* @__PURE__ */ e(s, { sx: { pb: 8, px: 24 }, children: /* @__PURE__ */ e(u, { truncate: !1, variant: "subtitle2", children: l.let_us_know }) }),
123
- t && /* @__PURE__ */ i(c.Fragment, { children: [
124
- /* @__PURE__ */ i(s, { sx: { gap: 4, px: 24, py: 16 }, children: [
125
- /* @__PURE__ */ e(u, { bold: !0, truncate: !1, children: t.question }),
126
- /* @__PURE__ */ e(u, { variant: "caption", children: y })
127
- ] }),
128
- /* @__PURE__ */ i(s, { sx: { gap: 6, px: 24, pb: 8 }, children: [
129
- t.type === C.Rating && /* @__PURE__ */ e(O, {}),
130
- t.type === C.Open && /* @__PURE__ */ e(H, {})
131
- ] }),
132
- /* @__PURE__ */ e(s, { sx: { px: 24, py: 16 }, children: /* @__PURE__ */ e(
133
- j,
134
- {
135
- disabled: !o && !p,
136
- onClick: o ? F : T,
137
- variant: o && p ? "contained" : "outlined",
138
- children: o ? l.submit_feedback : l.continue
139
- }
140
- ) })
141
- ] }),
142
- b && /* @__PURE__ */ i(c.Fragment, { children: [
143
- /* @__PURE__ */ e(s, { sx: { px: 24, py: 24 }, children: /* @__PURE__ */ e(u, { bold: !0, truncate: !1, children: l.thank_you }) }),
144
- /* @__PURE__ */ e(s, { sx: { px: 24, pb: 24 }, children: /* @__PURE__ */ e(R, { severity: "success", variant: "filled", children: l.feedback_sent_successfully }) })
145
- ] })
146
- ]
147
- }
148
- ) : /* @__PURE__ */ e(L, {});
149
- }, se = h(I);
157
+ children: /* @__PURE__ */ e(G, {
158
+ severity: "success",
159
+ variant: "filled",
160
+ children: l.feedback_sent_successfully
161
+ })
162
+ })] })
163
+ ]
164
+ }) : /* @__PURE__ */ e(W, {});
165
+ }, oe = v(I);
150
166
  export {
151
- se as SurveyMiniWidget
167
+ oe as SurveyMiniWidget
152
168
  };