@mx-cartographer/experiences 6.24.11 → 6.25.0-alpha.sms1

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 CHANGED
@@ -1,7 +1,3 @@
1
- ## [6.24.11] - 08-12-2025
2
-
3
- - **FIXED** - Unwanted white space issue in the Budgets widget by updating usage of `detailedBudgets` for consistent filtering
4
-
5
1
  ## [6.24.10] - 08-11-2025
6
2
 
7
3
  - **ADDED** - Score Rubric Drawer component displaying detailed financial strength scoring information
@@ -10,6 +10,14 @@ export declare class AccountStore {
10
10
  uiStore: UiStore;
11
11
  constructor(globalStore: GlobalStore);
12
12
  loadAccountData: () => Promise<void>;
13
+ setAccountData: ({ accounts, institutions }: {
14
+ accounts: Account[];
15
+ institutions: Institution[];
16
+ }) => void;
17
+ getAccountData: () => {
18
+ accounts: Account[];
19
+ institutions: Institution[];
20
+ };
13
21
  get cashAccounts(): Account[];
14
22
  get cashBalance(): number;
15
23
  get checkingAccounts(): Account[];
package/dist/index.es.js CHANGED
@@ -4265,7 +4265,7 @@ const _r = (e, n) => !e && !n ? 0 : !e && n ? 101 : n / e * 100, hr = (e, n) =>
4265
4265
  };
4266
4266
  return e > 100 ? (i.background = n.palette.error.main, i.mercury = n.palette.error.lighter) : e > 80 && (i.background = n.palette.warning.main, i.text = n.palette.grey[900], i.mercury = n.palette.warning.lighter), i;
4267
4267
  }, T_ = () => {
4268
- const { detailedBudgets: e } = ht();
4268
+ const { budgets: e } = ht();
4269
4269
  return e.map((i) => {
4270
4270
  const a = i.transaction_total;
4271
4271
  return i.amount - a;
@@ -23151,7 +23151,7 @@ class C2 {
23151
23151
  this.appDataStore.loadAppData(),
23152
23152
  this.userStore.loadUserFeatures()
23153
23153
  ]), await Promise.all([
23154
- this.accountStore.loadAccountData(),
23154
+ // this.accountStore.loadAccountData(),
23155
23155
  this.categoryStore.loadCategories(),
23156
23156
  this.transactionStore.loadTransactionData()
23157
23157
  ]), this.globalUiStore.setInitialized(!0);
@@ -24528,6 +24528,13 @@ class b0 {
24528
24528
  loadAccountData = async () => {
24529
24529
  await Promise.all([this.loadAccounts(), this.loadInstitutions()]);
24530
24530
  };
24531
+ setAccountData = ({ accounts: n, institutions: i }) => {
24532
+ this.accounts = n, this.institutions = i;
24533
+ };
24534
+ getAccountData = () => ({
24535
+ accounts: this.accounts,
24536
+ institutions: this.institutions
24537
+ });
24531
24538
  get cashAccounts() {
24532
24539
  return this.accounts.filter(
24533
24540
  (n) => n.account_type === re.CASH || n.account_type === re.CHECKING || n.account_type === re.PREPAID || n.account_type === re.SAVINGS || n.account_type === re.CHECKING_LINE_OF_CREDIT
@@ -25259,7 +25266,7 @@ const G0 = ({
25259
25266
  /* @__PURE__ */ t(W0, { onRecalculateBudgets: e })
25260
25267
  ] });
25261
25268
  }), V0 = (e) => {
25262
- const n = pe(), { onEvent: i } = X(), { detailedBudgets: a, isDataLoaded: o, loadBudgetData: r, setTheme: s } = ht(), { budgets: c, common: d } = x(), { isCopyLoaded: _, isInitialized: u, selectedAccounts: h } = se(), { reloadCategoryTotals: m } = Ve(), p = T_(), f = a.length === 0, [E, y] = g.useState(!1), A = () => {
25269
+ const n = pe(), { onEvent: i } = X(), { budgets: a, isDataLoaded: o, loadBudgetData: r, setTheme: s } = ht(), { budgets: c, common: d } = x(), { isCopyLoaded: _, isInitialized: u, selectedAccounts: h } = se(), { reloadCategoryTotals: m } = Ve(), p = T_(), f = a.length === 0, [E, y] = g.useState(!1), A = () => {
25263
25270
  y(!0), i(W.BUDGETS_CLICK_ADD);
25264
25271
  }, I = () => {
25265
25272
  y(!1);
@@ -25758,7 +25765,7 @@ const G0 = ({
25758
25765
  setDateRange: y,
25759
25766
  setAlert: A,
25760
25767
  setTheme: I,
25761
- detailedBudgets: v
25768
+ budgets: v
25762
25769
  } = ht(), { loadRepeatingTransactions: w, setDateRange: D } = tt(), { reloadCategoryTotals: O } = Ve(), { isSmallTablet: G, isMobile: M, isSmallMobile: R } = me(), L = G || M || R, [U, te] = g.useState(!1);
25763
25770
  g.useEffect(() => {
25764
25771
  I(i), h(o), u(p.start, p.end), a(W.BUDGETS_VIEW);