@mx-cartographer/experiences 8.0.0-alpha.sms2 → 9.0.0-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.
Files changed (139) hide show
  1. package/CHANGELOG.md +217 -0
  2. package/dist/{Account-Cp30A3ad.mjs → Account-BIKn4XEZ.mjs} +1 -1
  3. package/dist/Account-CMjOp7S2.mjs +118 -0
  4. package/dist/AccountApi-DgZ8ILj1.mjs +19 -0
  5. package/dist/AccountDetailsHeader-BOV91g1o.mjs +95 -0
  6. package/dist/AccountDisplayName-CO7z3v99.mjs +11 -0
  7. package/dist/{AccountFields-CW6cIthP.mjs → AccountFields-BRRH37K1.mjs} +10 -11
  8. package/dist/{AccountListItem-DxmAs98Z.mjs → AccountListItem-Ds5C0mOT.mjs} +4 -4
  9. package/dist/{AccountStore-hIs-yA6W.mjs → AccountStore-BFKvXJSD.mjs} +79 -69
  10. package/dist/{Accounts-DUHkUyK4.mjs → Accounts-CuE8aSZN.mjs} +1 -1
  11. package/dist/{BudgetUtil-CIDAPPPT.mjs → BudgetUtil-CDSOZXem.mjs} +4 -4
  12. package/dist/CategorySelectorDrawer-C4aZYP4N.mjs +418 -0
  13. package/dist/CategoryStore-DEqAnHbi.mjs +186 -0
  14. package/dist/{CategoryUtil-DfVKKkRf.mjs → CategoryUtil-CFHBvaV4.mjs} +1 -1
  15. package/dist/{ConnectionsDrawer-CSo6AFkG.mjs → ConnectionsDrawer-BExzgE16.mjs} +5 -5
  16. package/dist/{CurrencyInput-BrGvhgVK.mjs → CurrencyInput-DDQ4DBrE.mjs} +1 -1
  17. package/dist/{CurrencyText-Dr0EZ7bp.mjs → CurrencyText-C-85TnUF.mjs} +3 -3
  18. package/dist/{DateUtil-CDPZw_-m.mjs → DateUtil-CVsMhbZU.mjs} +3 -3
  19. package/dist/{DebtsStore-hi1cqrRk.mjs → DebtsStore-Dv_T7Dts.mjs} +12 -12
  20. package/dist/{Dialog-CDV0kKxj.mjs → Dialog-CWymUiuO.mjs} +32 -35
  21. package/dist/Drawer-Bet2ZPJo.mjs +176 -0
  22. package/dist/{ExportCsvAction-CQ1grpwo.mjs → ExportCsvAction-oG_Mn66T.mjs} +3 -3
  23. package/dist/{FinstrongStore-dKZOZ2hM.mjs → FinstrongStore-BjFkMTIL.mjs} +6 -6
  24. package/dist/GlobalAccountFilter-BpWlPAl5.mjs +316 -0
  25. package/dist/{GoalStore-CFeAJloA.mjs → GoalStore-Dbjgft2i.mjs} +155 -137
  26. package/dist/{Help-i4OasOO-.mjs → Help-BW_ar-4B.mjs} +2 -2
  27. package/dist/LineChart-DHj-Bufi.mjs +580 -0
  28. package/dist/{ListItemAction-BNCWQAN_.mjs → ListItemAction-Cbr3417C.mjs} +10 -10
  29. package/dist/{ManageIncome-D_qVX5dN.mjs → ManageIncome-DIIyqDTp.mjs} +85 -85
  30. package/dist/{MicroWidgetContainer-BGpNl5ZS.mjs → MicroWidgetContainer-DSyYwRCU.mjs} +2 -2
  31. package/dist/{MiniWidgetContainer-D7MkHG15.mjs → MiniWidgetContainer-DKn7ndO6.mjs} +1 -1
  32. package/dist/NetWorthStore-B6ziBtaH.mjs +168 -0
  33. package/dist/NotificationSettings-e789PcRb.mjs +676 -0
  34. package/dist/{OriginalBalanceAction-62e0mU_3.mjs → OriginalBalanceAction-DFoG79Ba.mjs} +3 -3
  35. package/dist/{RecurringSettings-RfZ8Wuhh.mjs → RecurringSettings-BpCUcE8w.mjs} +4 -4
  36. package/dist/{RecurringTransactionsStore-D3EOKZ2B.mjs → RecurringTransactionsStore-D_--5PWH.mjs} +1 -1
  37. package/dist/{RecurringTransactions-Bhx56aA3.mjs → RepeatingTransaction-C2txVA9O.mjs} +3 -3
  38. package/dist/{SettingsStore-BASMQSIp.mjs → SettingsStore-CInvh-rQ.mjs} +1 -1
  39. package/dist/SpendingData-B7NuTQ9s.mjs +53 -0
  40. package/dist/SpendingLegend-BxefXiQd.mjs +193 -0
  41. package/dist/TransactionDetails-CPwv9xtZ.mjs +1374 -0
  42. package/dist/{TransactionStore-DgLrYW4C.mjs → TransactionStore-D2aMUClq.mjs} +128 -111
  43. package/dist/TrendsStore-BdsYfCc7.mjs +183 -0
  44. package/dist/{User-DqNX2GAK.mjs → User-CulNdZUr.mjs} +21 -20
  45. package/dist/ViewMoreMicroCard-CDWR16_h.mjs +1147 -0
  46. package/dist/WidgetContainer-mzejMmz2.mjs +555 -0
  47. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +1 -0
  48. package/dist/accounts/index.es.js +933 -232
  49. package/dist/accounts/stores/AccountStore.d.ts +6 -2
  50. package/dist/accounts/utils/AccountDetails.d.ts +5 -0
  51. package/dist/analytics/index.es.js +2 -2
  52. package/dist/budgets/components/AddBudgets.d.ts +2 -1
  53. package/dist/budgets/index.es.js +561 -522
  54. package/dist/cashflow/index.es.js +397 -396
  55. package/dist/categories/components/CustomCategories/AddSubcategory.d.ts +1 -0
  56. package/dist/categories/components/CustomCategories/DeleteSubcategory.d.ts +1 -0
  57. package/dist/categories/components/CustomCategories/RenameSubcategory.d.ts +1 -0
  58. package/dist/categories/components/SubcategoryRow.d.ts +1 -0
  59. package/dist/categories/index.es.js +2 -2
  60. package/dist/categories/stores/CategoryStore.d.ts +5 -3
  61. package/dist/common/components/GlobalAccountFilter.d.ts +11 -0
  62. package/dist/common/components/WidgetContainer.d.ts +7 -6
  63. package/dist/common/components/charts/linechart/CustomTooltip.d.ts +6 -1
  64. package/dist/common/components/charts/stackedlinechart/CustomPointTooltip.d.ts +5 -2
  65. package/dist/common/components/globalaccountfilter/GlobalAccountFilterList.d.ts +7 -0
  66. package/dist/common/components/index.d.ts +2 -2
  67. package/dist/common/hooks/index.d.ts +1 -0
  68. package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
  69. package/dist/common/index.es.js +325 -306
  70. package/dist/common/stores/GlobalUiStore.d.ts +7 -4
  71. package/dist/common/types/localization/AccountsCopy.d.ts +6 -0
  72. package/dist/common/types/localization/CategoryCopy.d.ts +3 -0
  73. package/dist/common/types/localization/CommonCopy.d.ts +3 -0
  74. package/dist/common/types/localization/GoalsCopy.d.ts +3 -1
  75. package/dist/common/types/localization/MicroInsightsCopy.d.ts +1 -0
  76. package/dist/common/types/localization/TransactionsCopy.d.ts +4 -0
  77. package/dist/common/types/localization/TrendsCopy.d.ts +4 -0
  78. package/dist/dashboard/index.es.js +95 -125
  79. package/dist/debts/index.es.js +466 -460
  80. package/dist/{exportTransactionsToCSV-BFpuIAXW.mjs → exportTransactionsToCSV-BU1jTY0Q.mjs} +4 -4
  81. package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +4 -5
  82. package/dist/finstrong/index.es.js +1660 -1553
  83. package/dist/goals/index.es.js +716 -677
  84. package/dist/goals/stores/GoalStore.d.ts +2 -0
  85. package/dist/help/index.es.js +14 -10
  86. package/dist/{hooks-C41HAxM5.mjs → hooks-fY_n74f7.mjs} +16 -16
  87. package/dist/investments/index.es.js +464 -457
  88. package/dist/merchants/index.es.js +1 -1
  89. package/dist/microinsights/MicroCardTemplate.d.ts +23 -0
  90. package/dist/microinsights/beaticons/BeatMaterialIcon.d.ts +8 -0
  91. package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +1 -2
  92. package/dist/microinsights/beaticons/index.d.ts +1 -0
  93. package/dist/microinsights/cards/InsightCard.d.ts +0 -2
  94. package/dist/microinsights/cards/ViewMoreMicroCard.d.ts +2 -5
  95. package/dist/microinsights/index.d.ts +2 -2
  96. package/dist/microinsights/index.es.js +824 -14
  97. package/dist/networth/components/NetWorthChart.d.ts +3 -2
  98. package/dist/networth/components/NetWorthList.d.ts +3 -3
  99. package/dist/networth/index.es.js +433 -438
  100. package/dist/networth/stores/NetWorthStore.d.ts +20 -9
  101. package/dist/networth/utils/NetWorthUtils.d.ts +2 -2
  102. package/dist/notifications/index.es.js +5 -5
  103. package/dist/recurringtransactions/index.es.js +331 -325
  104. package/dist/settings/index.es.js +293 -285
  105. package/dist/spending/components/SpendingChart.d.ts +1 -1
  106. package/dist/spending/components/SpendingList.d.ts +1 -1
  107. package/dist/spending/components/SpendingTabLabel.d.ts +1 -0
  108. package/dist/spending/index.es.js +250 -235
  109. package/dist/transactions/index.es.js +288 -281
  110. package/dist/transactions/stores/TransactionStore.d.ts +5 -0
  111. package/dist/trends/components/TrendsTable.d.ts +0 -2
  112. package/dist/trends/index.es.js +876 -802
  113. package/dist/trends/utils/TrendsData.d.ts +1 -0
  114. package/dist/trends/utils/TrendsTable.d.ts +12 -0
  115. package/dist/{useAccountDisplayName-usSZCQ7I.mjs → useAccountDisplayName-DbkgGLdg.mjs} +2 -2
  116. package/dist/useAriaLive-B3_pRUio.mjs +35 -0
  117. package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-dhmXeSyF.mjs} +1 -1
  118. package/dist/useWidgetLoadTimer-CrUzxN-P.mjs +19 -0
  119. package/package.json +26 -21
  120. package/dist/AccountDetailsContent-C1HumFnW.mjs +0 -683
  121. package/dist/AccountDetailsHeader-NMx79DGs.mjs +0 -87
  122. package/dist/CategorySelectorDrawer-DqDAA_5I.mjs +0 -399
  123. package/dist/CategoryStore-MUwRWH9e.mjs +0 -176
  124. package/dist/ConnectDrawer-Dn1MlqLz.mjs +0 -545
  125. package/dist/Drawer-Dqe5EqvA.mjs +0 -163
  126. package/dist/LineChart-bc1D9xBE.mjs +0 -581
  127. package/dist/NetWorthStore-8FFC1Bs0.mjs +0 -150
  128. package/dist/NotificationSettings-BsWiYD94.mjs +0 -672
  129. package/dist/SpendingData-DPQ96k3x.mjs +0 -55
  130. package/dist/SpendingLegend-CZzDb-7d.mjs +0 -193
  131. package/dist/TransactionDetails-Duv1X9ec.mjs +0 -1379
  132. package/dist/TrendsStore-_mRaFUdf.mjs +0 -182
  133. package/dist/ViewMoreMicroCard-CH9E-jOx.mjs +0 -1930
  134. package/dist/WidgetContainer-B1Jzb4XA.mjs +0 -565
  135. package/dist/common/components/accountfilter/AccountFilter.d.ts +0 -20
  136. package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +0 -31
  137. package/dist/common/components/accountfilter/index.d.ts +0 -1
  138. package/dist/microinsights/cards/BaseCard.d.ts +0 -13
  139. package/dist/{ToggleListItem-ciFTiqRS.mjs → Notification-Bs1fdbzI.mjs} +1 -1
@@ -14,6 +14,7 @@ export interface StackedLineChartData {
14
14
  }
15
15
  export declare const getStackedLineChartData: (totals: MonthlyCategoryTotals[], start: Date, end: Date) => StackedLineChartData[];
16
16
  export declare const amountComparator: GridComparatorFn<string | number>;
17
+ export declare const categoryComparator: GridComparatorFn<string>;
17
18
  export declare const buildCategoryDetailsChartData: (data: DetailedCategoryWithTransactions | null, monthsCount: number) => {
18
19
  monthlyAmounts: {
19
20
  x: string;
@@ -0,0 +1,12 @@
1
+ import { GridColDef } from '@mui/x-data-grid-pro';
2
+ import { DetailedCategory, TrendsCopy } from '../../common';
3
+ export declare const generateMonthHeaders: (start: Date, end: Date) => string[];
4
+ export declare const getTrendsTableColumns: (monthHeaders: string[], copy: TrendsCopy) => GridColDef[];
5
+ export declare const getTrendsTableRows: (categories: DetailedCategory[], copy: TrendsCopy, monthHeaders: string[], parentCategory?: DetailedCategory) => {
6
+ id: string;
7
+ category: string;
8
+ category_guid: string;
9
+ isParent: boolean;
10
+ top_level_category_guid: string;
11
+ total: number;
12
+ }[];
@@ -1,6 +1,6 @@
1
1
  import s from "react";
2
- import { g as e } from "./ConnectDrawer-Dn1MlqLz.mjs";
3
- import { a as n } from "./hooks-C41HAxM5.mjs";
2
+ import { g as e } from "./AccountDisplayName-CO7z3v99.mjs";
3
+ import { a as n } from "./hooks-fY_n74f7.mjs";
4
4
  const i = (o) => {
5
5
  const { config: a } = n();
6
6
  return s.useMemo(
@@ -0,0 +1,35 @@
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import e from "react";
3
+ import u from "@mui/material/Box";
4
+ const x = (a = "polite") => {
5
+ const [s, o] = e.useState(""), [t, r] = e.useState(a), n = e.useCallback((c, i) => {
6
+ i && r(i), o(c);
7
+ }, []), p = e.useMemo(
8
+ () => /* @__PURE__ */ l(
9
+ u,
10
+ {
11
+ "aria-atomic": "true",
12
+ "aria-live": t,
13
+ role: t === "assertive" ? "alert" : "status",
14
+ sx: {
15
+ position: "absolute",
16
+ width: "1px",
17
+ height: "1px",
18
+ padding: 0,
19
+ margin: "-1px",
20
+ overflow: "hidden",
21
+ clip: "rect(0 0 0 0)",
22
+ clipPath: "inset(50%)",
23
+ whiteSpace: "nowrap",
24
+ border: 0
25
+ },
26
+ children: s
27
+ }
28
+ ),
29
+ [s, t]
30
+ );
31
+ return { announce: n, ariaLive: p };
32
+ };
33
+ export {
34
+ x as u
35
+ };
@@ -1,5 +1,5 @@
1
1
  import { useState as n, useEffect as a } from "react";
2
- import { f as o } from "./hooks-C41HAxM5.mjs";
2
+ import { f as o } from "./hooks-fY_n74f7.mjs";
3
3
  const f = () => {
4
4
  const { isInitialized: e, appDataStore: t } = o(), [s, i] = n(!1);
5
5
  return a(() => {
@@ -0,0 +1,19 @@
1
+ import { useRef as r, useEffect as c } from "react";
2
+ import { g as l } from "./hooks-fY_n74f7.mjs";
3
+ let n = !0;
4
+ const d = ({ widgetName: i, isLoaded: u = !0 }) => {
5
+ const { onEvent: o } = l(), t = r(null), s = r(!1), e = r(!1);
6
+ t.current === null && (e.current = n, t.current = n ? performance.timeOrigin : Date.now()), c(() => {
7
+ if (u && !s.current && t.current !== null) {
8
+ const a = Date.now() - t.current;
9
+ o("WidgetLoad", {
10
+ widgetName: i,
11
+ loadTimeMs: a,
12
+ isInitialLoad: e.current
13
+ }), s.current = !0, t.current = null, e.current && (n = !1);
14
+ }
15
+ }, [u, i, o]);
16
+ };
17
+ export {
18
+ d as u
19
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "8.0.0-alpha.sms2",
3
+ "version": "9.0.0-alpha.mega1",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",
@@ -180,7 +180,7 @@
180
180
  "@mui/lab": "^5.0.0-alpha.177",
181
181
  "@mui/material": "^5.18.0",
182
182
  "@mui/system": "^5.18.0",
183
- "@mui/x-charts": "^7.29.1",
183
+ "@mui/x-charts": "^8.23.0",
184
184
  "@mui/x-data-grid-pro": "^7.29.8",
185
185
  "@mui/x-date-pickers": "^7.29.4",
186
186
  "@mui/x-date-pickers-pro": "^7.29.4",
@@ -196,18 +196,21 @@
196
196
  "mobx-react-lite": "^4.1.0",
197
197
  "numeral": "^2.0.6",
198
198
  "posthog-js": "^1.230.1",
199
- "react": "^19.2.3",
200
- "react-dom": "^19.2.3",
201
- "react-intersection-observer": "^10.0.0",
199
+ "react-intersection-observer": "^10.0.2",
202
200
  "uuid": "^11.1.0"
203
201
  },
204
202
  "devDependencies": {
205
203
  "@babel/core": "^7.26.10",
206
204
  "@babel/eslint-parser": "^7.26.10",
207
- "@storybook/addon-a11y": "9.1.16",
208
- "@storybook/addon-docs": "9.1.16",
209
- "@storybook/addon-links": "9.1.16",
210
- "@storybook/react-vite": "9.1.16",
205
+ "@storybook/addon-a11y": "^8.6.4",
206
+ "@storybook/addon-essentials": "^8.6.4",
207
+ "@storybook/addon-interactions": "^8.6.4",
208
+ "@storybook/addon-links": "^8.6.4",
209
+ "@storybook/blocks": "^8.6.4",
210
+ "@storybook/react": "^8.6.4",
211
+ "@storybook/react-vite": "^8.6.4",
212
+ "@storybook/test": "^8.6.4",
213
+ "@storybook/theming": "^8.6.4",
211
214
  "@testing-library/dom": "^10.4.0",
212
215
  "@testing-library/jest-dom": "^6.6.3",
213
216
  "@testing-library/react": "^16.2.0",
@@ -217,16 +220,15 @@
217
220
  "@types/jest": "^29.5.14",
218
221
  "@types/numeral": "^2.0.5",
219
222
  "@types/prop-types": "^15.7.14",
220
- "@types/react": "^19.2.7",
223
+ "@types/react": "^19.2.10",
221
224
  "@types/react-dom": "^19.2.3",
222
225
  "@types/uuid": "^10.0.0",
223
226
  "@typescript-eslint/eslint-plugin": "^7.16.0",
224
227
  "@typescript-eslint/parser": "^7.16.0",
225
- "@vitejs/plugin-react": "^5.1.2",
226
- "@vitest/coverage-v8": "^4.0.15",
227
- "@vitest/ui": "^4.0.15",
228
- "@vueless/storybook-dark-mode": "^10.0.4",
229
- "@yarnpkg/sdks": "^3.2.3",
228
+ "@vitejs/plugin-react": "^4.3.4",
229
+ "@vitest/coverage-v8": "^3.0.8",
230
+ "@vitest/ui": "^3.0.8",
231
+ "@yarnpkg/sdks": "^3.2.1",
230
232
  "css-mediaquery": "^0.1.2",
231
233
  "eslint": "^8.56.0",
232
234
  "eslint-config-mx": "^4.0.0",
@@ -235,7 +237,7 @@
235
237
  "eslint-plugin-react": "^7.33.2",
236
238
  "eslint-plugin-react-hooks": "^4.6.0",
237
239
  "eslint-plugin-react-refresh": "^0.4.5",
238
- "eslint-plugin-storybook": "9.1.16",
240
+ "eslint-plugin-storybook": "^0.11.1",
239
241
  "global-jsdom": "^9.2.0",
240
242
  "husky": "^9.1.7",
241
243
  "jsdom": "^23.0.1",
@@ -243,14 +245,17 @@
243
245
  "path": "^0.12.7",
244
246
  "prettier": "^3.5.3",
245
247
  "prop-types": "^15.8.1",
246
- "storybook": "9.1.16",
247
- "storybook-addon-mock": "^6.0.1",
248
+ "react": "^19.2.4",
249
+ "react-dom": "^19.2.4",
250
+ "storybook": "^8.6.4",
251
+ "storybook-addon-mock": "^5.0.0",
252
+ "storybook-dark-mode": "4.0.1",
248
253
  "typescript": "^5.8.2",
249
254
  "vi-canvas-mock": "^1.0.0",
250
- "vite": "^7.2.7",
251
- "vite-plugin-dts": "^4.5.4",
255
+ "vite": "^5.4.21",
256
+ "vite-plugin-dts": "^4.5.3",
252
257
  "vite-tsconfig-paths": "^5.1.4",
253
- "vitest": "^4.0.15"
258
+ "vitest": "^3.0.8"
254
259
  },
255
260
  "peerDependencies": {
256
261
  "@mui/material": "^5",