@mx-cartographer/experiences 7.2.15-alpha.sms18 → 7.2.15-alpha.sms19

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.
@@ -7,8 +7,8 @@ import v from "@mui/material/Tooltip";
7
7
  import { makeAutoObservable as y, autorun as B, runInAction as d } from "mobx";
8
8
  import { endOfToday as D } from "date-fns/endOfToday";
9
9
  import { formatISO as Y } from "date-fns/formatISO";
10
- import { fromUnixTime as u } from "date-fns/fromUnixTime";
11
- import { getUnixTime as h } from "date-fns/getUnixTime";
10
+ import { fromUnixTime as h } from "date-fns/fromUnixTime";
11
+ import { getUnixTime as u } from "date-fns/getUnixTime";
12
12
  import { isBefore as F } from "date-fns/isBefore";
13
13
  import { startOfMonth as R } from "date-fns/startOfMonth";
14
14
  import { startOfToday as b } from "date-fns/startOfToday";
@@ -372,14 +372,14 @@ const Z = ({
372
372
  searchTerm: s = "",
373
373
  showSplits: A = !1
374
374
  } = l;
375
- return a.filter((i) => A ? !i.has_been_split : !i.parent_guid).filter((i) => !!e.find((N) => N === i.account_guid)).filter((i) => i.date >= h(c.start) && i.date <= h(c.end)).filter(_).filter((i) => {
375
+ return a.filter((i) => A ? !i.has_been_split : !i.parent_guid).filter((i) => !!e.find((N) => N === i.account_guid)).filter((i) => i.date >= u(c.start) && i.date <= u(c.end)).filter(_).filter((i) => {
376
376
  if (s === Q && i.has_been_split)
377
377
  return !1;
378
378
  if (/^spl/i.test(s) && (i.has_been_split || i.parent_guid))
379
379
  return !0;
380
380
  const I = i.tags.some(
381
381
  (M) => S(s, t.find((H) => H.guid === M)?.name)
382
- ), E = u(i.date);
382
+ ), E = h(i.date);
383
383
  return S(s, i.payee) || S(s, i.feed_description) || S(s, i.category) || S(s, g(E, O.MONTH)) || S(s, g(E, O.DAY)) || S(s, g(E, O.FULL_MONTH_DAY)) || S(s, g(E, O.MONTH_DAY_YEAR)) || S(s, $(E, X)) || S(s, i.account) || S(s, `${i.amount}`) || S(s, i.memo) || I;
384
384
  });
385
385
  }, et = (l, t, a) => [...l].sort((e, c) => {
@@ -481,10 +481,7 @@ class yt {
481
481
  t.endpoint,
482
482
  t.sessionToken,
483
483
  t.onError
484
- ), this.beatApi = new f(t.endpoint, t.sessionToken, t.onError), y(this), B(() => {
485
- const a = this.transactions;
486
- return this.emitChange(), a;
487
- });
484
+ ), this.beatApi = new f(t.endpoint, t.sessionToken, t.onError), y(this), B(() => this.transactions);
488
485
  }
489
486
  loadTransactionData = async ({
490
487
  associatedBeats: t,
@@ -583,7 +580,7 @@ class yt {
583
580
  loadTransactions = async (t = this.cachedStartDate, a = D(), e) => {
584
581
  this.setIsLoading(!0), this.rawTransactions = [];
585
582
  try {
586
- const c = e ?? await this.api.getTransactionsByDateRange(h(t), h(a));
583
+ const c = e ?? await this.api.getTransactionsByDateRange(u(t), u(a));
587
584
  d(() => {
588
585
  this.rawTransactions = c;
589
586
  });
@@ -596,7 +593,7 @@ class yt {
596
593
  loadTransactionsByDateRange = async (t, a) => {
597
594
  console.warn("DEPRECATED: loadTransactionsByDateRange will be removed"), this.setFilter({
598
595
  ...this.filter,
599
- dateRange: { start: u(a), end: u(t) }
596
+ dateRange: { start: h(a), end: h(t) }
600
597
  });
601
598
  };
602
599
  modifyTransactionByAccountGuid = (t, a) => {
@@ -18,8 +18,8 @@ import { C as Ys } from "../CurrencyInput-DUsQbkXb.mjs";
18
18
  import { L as zs } from "../Loader-DUaFpDGv.mjs";
19
19
  import { R as js } from "../ResponsiveButton-DZFp78fJ.mjs";
20
20
  import { S as Vs } from "../SearchBox-B2_zLv8-.mjs";
21
- import { T as at } from "../TransactionStore-D3UCn4oY.mjs";
22
- import { S as Js } from "../TransactionStore-D3UCn4oY.mjs";
21
+ import { T as at } from "../TransactionStore-nPlvBMgL.mjs";
22
+ import { S as Js } from "../TransactionStore-nPlvBMgL.mjs";
23
23
  import { T as er } from "../TabContentContainer-j01JYR_7.mjs";
24
24
  import { I as rr } from "../IconBacking-B9oC6uL2.mjs";
25
25
  import { D as ar, F as nr, a as ir, c as cr, R as dr, S as lr } from "../RecurringTransactions-ej39mgA6.mjs";
@@ -3,8 +3,8 @@ import { u as P, C as Pe, D as $e, M as Ve, c as We, T as Ge, a as Ue } from "..
3
3
  import { B as xa, d as wa, b as Ia } from "../TransactionDetails-dRfjqJ3s.mjs";
4
4
  import { T as M } from "../User-BQUxBeZV.mjs";
5
5
  import { O as Da } from "../User-BQUxBeZV.mjs";
6
- import { S as ae, D as Fe } from "../TransactionStore-D3UCn4oY.mjs";
7
- import { T as Ea } from "../TransactionStore-D3UCn4oY.mjs";
6
+ import { S as ae, D as Fe } from "../TransactionStore-nPlvBMgL.mjs";
7
+ import { T as Ea } from "../TransactionStore-nPlvBMgL.mjs";
8
8
  import { e as ze } from "../exportTransactionsToCSV-7bVS7KXf.mjs";
9
9
  import { E as Ma } from "../ExportCsvAction-sX8Rg4Ov.mjs";
10
10
  import { jsxs as _, jsx as e } from "react/jsx-runtime";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.2.15-alpha.sms18",
3
+ "version": "7.2.15-alpha.sms19",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",