@mx-cartographer/experiences 6.16.2 → 6.16.4

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,4 +1,12 @@
1
- ## [6.16.2] - 07-08-2025
1
+ ## [6.16.4] - 07-10-2025
2
+
3
+ - **FIXED** - Fixed transactions showing `Unknown` accounts; this may also fix categories showing as `Uncategorized`.
4
+
5
+ ## [6.16.3] - 07-10-2025
6
+
7
+ - **FIXED** - Accounts subtotal miscalculation and matching with the networth and accounts subtotals
8
+
9
+ ## [6.16.2] - 07-09-2025
2
10
 
3
11
  - **ADDED** - Deep link view support for `NotificationSettings` widget
4
12
 
@@ -24,7 +32,7 @@
24
32
 
25
33
  ## [6.14.2] - 07-07-2025
26
34
 
27
- - **FIXED** - Accounts filtering option indicating `(Closed)`
35
+ - **FIXED** - Accounts filtering option indicating `(Closed)`
28
36
 
29
37
  ## [6.14.1] - 07-04-2025
30
38
 
package/dist/index.es.js CHANGED
@@ -5347,16 +5347,16 @@ class Mu {
5347
5347
  uiStore;
5348
5348
  api = new Xi("/", "");
5349
5349
  beatApi = new jn("/", "");
5350
- isLoading = !0;
5351
- taggings = [];
5352
- tags = [];
5353
- transactionRules = [];
5354
- transactions = [];
5355
5350
  associatedBeats = [];
5356
5351
  cachedStartDate = At(he(), 90);
5352
+ filter = {};
5353
+ isLoading = !0;
5354
+ rawTransactions = [];
5357
5355
  sortColumn = Ha.DATE;
5358
5356
  sortDirection = Vs.DESC;
5359
- filter = {};
5357
+ taggings = [];
5358
+ tags = [];
5359
+ transactionRules = [];
5360
5360
  onAnalyticEvent = Au;
5361
5361
  constructor(n) {
5362
5362
  this.globalStore = n, this.uiStore = new Lu(), this.api = new Xi(n.endpoint, n.sessionToken), this.beatApi = new jn(n.endpoint, n.sessionToken), Be(this);
@@ -5383,6 +5383,9 @@ class Mu {
5383
5383
  this.transactions
5384
5384
  );
5385
5385
  }
5386
+ get transactions() {
5387
+ return this.augmentTransactions(this.rawTransactions);
5388
+ }
5386
5389
  addTag = async (n) => {
5387
5390
  await this.api.addTag({ name: n }), await this.loadTags();
5388
5391
  };
@@ -5408,9 +5411,7 @@ class Mu {
5408
5411
  };
5409
5412
  addTransaction = async (n) => {
5410
5413
  const i = await this.api.addTransaction(n);
5411
- i && Z(
5412
- () => this.transactions = this.augmentTransactions([i, ...this.transactions])
5413
- );
5414
+ i && Z(() => this.rawTransactions = [i, ...this.transactions]);
5414
5415
  };
5415
5416
  augmentTransactions = (n) => Tu(
5416
5417
  n,
@@ -5435,14 +5436,14 @@ class Mu {
5435
5436
  Z(() => this.transactionRules = n);
5436
5437
  };
5437
5438
  loadTransactions = async (n = this.cachedStartDate, i = En()) => {
5438
- this.setIsLoading(!0), this.transactions = [];
5439
+ this.setIsLoading(!0), this.rawTransactions = [];
5439
5440
  try {
5440
5441
  const a = await this.api.getTransactionsByDateRange(
5441
5442
  He(n),
5442
5443
  He(i)
5443
5444
  );
5444
5445
  Z(() => {
5445
- this.transactions = this.augmentTransactions(a);
5446
+ this.rawTransactions = a;
5446
5447
  });
5447
5448
  } catch (a) {
5448
5449
  console.error(`Error occurred while loading transactions: ${a}`);
@@ -5457,7 +5458,7 @@ class Mu {
5457
5458
  });
5458
5459
  };
5459
5460
  modifyTransactionByAccountGuid = (n, i) => {
5460
- this.transactions = this.transactions.map(
5461
+ this.rawTransactions = this.transactions.map(
5461
5462
  (a) => a.account_guid === n ? { ...a, ...i } : a
5462
5463
  );
5463
5464
  };
@@ -5472,7 +5473,7 @@ class Mu {
5472
5473
  const i = this.transactions.findIndex((a) => a.guid === n);
5473
5474
  if (i >= 0) {
5474
5475
  const a = [...this.transactions];
5475
- a.splice(i, 1), Z(() => this.transactions = a);
5476
+ a.splice(i, 1), Z(() => this.rawTransactions = a);
5476
5477
  }
5477
5478
  };
5478
5479
  setFilter = (n) => {
@@ -5492,12 +5493,12 @@ class Mu {
5492
5493
  }
5493
5494
  const r = this.transactions.findIndex((s) => s.guid === n.guid);
5494
5495
  r >= 0 && Z(
5495
- () => this.transactions = this.augmentTransactions([
5496
+ () => this.rawTransactions = [
5496
5497
  ...this.transactions.slice(0, r),
5497
5498
  a,
5498
5499
  ...this.transactions.slice(r + 1),
5499
5500
  ...o
5500
- ])
5501
+ ]
5501
5502
  );
5502
5503
  };
5503
5504
  unSplitTransaction = async (n) => {
@@ -5510,7 +5511,7 @@ class Mu {
5510
5511
  });
5511
5512
  const o = a.findIndex((s) => s.guid === n), r = a[o];
5512
5513
  r.has_been_split = !1, o >= 0 && Z(
5513
- () => this.transactions = [
5514
+ () => this.rawTransactions = [
5514
5515
  ...a.slice(0, o),
5515
5516
  r,
5516
5517
  ...a.slice(o + 1)
@@ -5531,11 +5532,11 @@ class Mu {
5531
5532
  updateTransaction = async (n) => {
5532
5533
  const i = await this.api.updateTransaction(n), a = this.transactions.findIndex((o) => o.guid === n.guid);
5533
5534
  a >= 0 && Z(
5534
- () => this.transactions = this.augmentTransactions([
5535
+ () => this.rawTransactions = [
5535
5536
  ...this.transactions.slice(0, a),
5536
5537
  i,
5537
5538
  ...this.transactions.slice(a + 1)
5538
- ])
5539
+ ]
5539
5540
  );
5540
5541
  };
5541
5542
  }
@@ -20771,7 +20772,7 @@ const xa = ({
20771
20772
  const S = a.filter(
20772
20773
  (w) => w.account_type === y && !w.is_closed && !w.is_hidden
20773
20774
  ), A = S.reduce(
20774
- (w, v) => (v.available_balance || v.balance || 0) + w,
20775
+ (w, v) => (v.balance || 0) + w,
20775
20776
  0
20776
20777
  );
20777
20778
  return S.length === 0 ? null : /* @__PURE__ */ t(