@mx-cartographer/experiences 7.2.13 → 7.2.14-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,3 +1,7 @@
1
+ ## [7.2.14] - 11-24-2025
2
+
3
+ - **UPDATED** - remove uneeded client color scheme reference from `microinsights`
4
+
1
5
  ## [7.2.13] - 11-24-2025
2
6
 
3
7
  - **FIXED** - interactive controls for budget and spending mini widgets
@@ -44,7 +44,7 @@ import yt from "@mui/material/AlertTitle";
44
44
  import xt from "@mui/material/Link";
45
45
  import wt from "@mui/material/Paper";
46
46
  import { subDays as kt, startOfToday as It, endOfToday as Mt } from "date-fns";
47
- import { T as vt, a as Lt } from "./TransactionDetails-DW7T0W0z.mjs";
47
+ import { T as vt, a as Lt } from "./TransactionDetails-CuqEbcYg.mjs";
48
48
  import { T as j } from "./TabContentContainer-j01JYR_7.mjs";
49
49
  const U = ({
50
50
  children: e,
@@ -16,7 +16,7 @@ import { startOfToday as z } from "date-fns/startOfToday";
16
16
  import { endOfMonth as _e } from "date-fns/endOfMonth";
17
17
  import $ from "@mui/material/Button";
18
18
  import { Delete as me, Add as pe, ReceiptLong as he } from "@mxenabled/mx-icons";
19
- import { T as X, a as ye, u as ge, S as fe, b as Ce } from "./TransactionDetails-DW7T0W0z.mjs";
19
+ import { T as X, a as ye, u as ge, S as fe, b as Ce } from "./TransactionDetails-CuqEbcYg.mjs";
20
20
  import { getDayOfYear as be } from "date-fns/getDayOfYear";
21
21
  import { setDayOfYear as xe } from "date-fns/setDayOfYear";
22
22
  import { AdapterDateFns as Se } from "@mui/x-date-pickers/AdapterDateFnsV3";
@@ -7,7 +7,7 @@ import b from "@mui/material/Tabs";
7
7
  import d from "@mui/material/Divider";
8
8
  import R from "@mui/material/List";
9
9
  import T from "@mui/material/Stack";
10
- import { R as C, A as S, a as E, M as v } from "./ManageIncome-CQPFKdYB.mjs";
10
+ import { R as C, A as S, a as E, M as v } from "./ManageIncome-B5zuYyxg.mjs";
11
11
  import { u as _, j as A, g as f } from "./hooks-D6XlXHf4.mjs";
12
12
  import { R as y, F as N } from "./RecurringTransactions-ej39mgA6.mjs";
13
13
  import { A as m } from "./WidgetContainer-C88Ecu2W.mjs";
@@ -1295,7 +1295,7 @@ const it = ({ transaction: t, onClick: r }) => {
1295
1295
  /* @__PURE__ */ l(f, { bgcolor: "background.highlight", borderRadius: "12px", gap: 4, p: 8, children: [
1296
1296
  /* @__PURE__ */ e(T, { bold: !0, children: `${a.account}
1297
1297
  ${c ? a.number : "•".repeat(4).concat(a.number ?? "")}` }),
1298
- /* @__PURE__ */ e(T, { bold: !0, color: "secondary", variant: "Tiny", children: a.feed_description })
1298
+ /* @__PURE__ */ e(T, { bold: !0, color: "secondary", variant: "Tiny", children: a.description || a.feed_description })
1299
1299
  ] })
1300
1300
  ] }),
1301
1301
  /* @__PURE__ */ e(ne, { square: !0, sx: { boxShadow: "none" }, children: d ? /* @__PURE__ */ e(Ut, { transaction: a }) : /* @__PURE__ */ e(J, { children: r.map((i, u) => /* @__PURE__ */ l(_.Fragment, { children: [
@@ -22,18 +22,18 @@ import { f as g, D as O, O as $ } from "./Dialog-CWW597AF.mjs";
22
22
  import { endOfMonth as X } from "date-fns/endOfMonth";
23
23
  import { B as f } from "./BeatApi-DhJpgCLz.mjs";
24
24
  const j = ({
25
- checked: S = !1,
25
+ checked: l = !1,
26
26
  label: t,
27
27
  sx: a = {},
28
28
  tooltip: e = "",
29
29
  value: c
30
30
  }) => {
31
- const _ = V(), i = _.palette.mode === "light" ? _.palette.grey[400] : _.palette.grey[700], A = S ? _.palette.action.active : i;
31
+ const _ = V(), i = _.palette.mode === "light" ? _.palette.grey[400] : _.palette.grey[700], A = l ? _.palette.action.active : i;
32
32
  return /* @__PURE__ */ C(
33
33
  P,
34
34
  {
35
35
  bgcolor: "background.paper",
36
- border: `${S ? 3 : 1}px solid`,
36
+ border: `${l ? 3 : 1}px solid`,
37
37
  borderColor: A,
38
38
  borderRadius: 2,
39
39
  mt: -2,
@@ -322,35 +322,35 @@ const j = ({
322
322
  category: o.TRANSACTIONS_WIDGET,
323
323
  label: r.DELETE_TRANSACTION
324
324
  }
325
- }, Z = async (S, t) => !t || !m[S] ? null : t.sendAnalyticEvent(m[S]), L = {
325
+ }, Z = async (l, t) => !t || !m[l] ? null : t.sendAnalyticEvent(m[l]), L = {
326
326
  FLAG: "flag",
327
327
  DATE: "date",
328
328
  PAYEE: "payee",
329
329
  CATEGORY: "category",
330
330
  ACCOUNT: "account",
331
331
  AMOUNT: "amount"
332
- }, q = (S, t, a, e = []) => {
332
+ }, q = (l, t, a, e = []) => {
333
333
  const c = t.reduce((A, s) => ({ ...A, [s.guid]: s }), {}), _ = a.reduce((A, s) => ({ ...A, [s.guid]: s }), {}), i = e.reduce((A, s) => {
334
- const { transaction_guid: l, tag_guid: I } = s;
335
- if (!A[l])
334
+ const { transaction_guid: N, tag_guid: I } = s;
335
+ if (!A[N])
336
336
  return {
337
337
  ...A,
338
- [l]: [I]
338
+ [N]: [I]
339
339
  };
340
- const E = [...A[l], I];
340
+ const E = [...A[N], I];
341
341
  return {
342
342
  ...A,
343
- [l]: E
343
+ [N]: E
344
344
  };
345
345
  }, {});
346
- return S.map((A) => {
347
- const s = c[A.account_guid], l = A.category_guid ? _[A.category_guid] : null, I = i[A.guid] ?? [];
346
+ return l.map((A) => {
347
+ const s = c[A.account_guid], N = A.category_guid ? _[A.category_guid] : null, I = i[A.guid] ?? [];
348
348
  return {
349
349
  ...A,
350
350
  account: s?.user_name || "Unknown",
351
351
  accountIsClosed: s?.is_closed,
352
352
  accountIsHidden: s?.is_hidden,
353
- category: l?.name || "Uncategorized",
353
+ category: N?.name || "Uncategorized",
354
354
  isIncome: A.top_level_category_guid === W.INCOME,
355
355
  isPending: A.feed_status === G.PENDING,
356
356
  number: s?.account_number || "",
@@ -358,36 +358,36 @@ const j = ({
358
358
  tags: I
359
359
  };
360
360
  });
361
- }, J = "uncategorized", Q = (S, t, a, e, c, _) => {
362
- const i = tt(S, c, _), A = at(i, a, e);
361
+ }, J = "uncategorized", Q = (l, t, a, e, c, _) => {
362
+ const i = tt(l, c, _), A = at(i, a, e);
363
363
  return t.forEach((s) => {
364
- const l = A.findIndex((E) => E.guid === s), I = _.filter((E) => E.parent_guid === s);
365
- A.splice(l + 1, 0, ...I);
364
+ const N = A.findIndex((E) => E.guid === s), I = _.filter((E) => E.parent_guid === s);
365
+ A.splice(N + 1, 0, ...I);
366
366
  }), A;
367
- }, tt = (S, t, a) => {
367
+ }, tt = (l, t, a) => {
368
368
  const {
369
369
  accounts: e = [],
370
370
  dateRange: c = { start: R(b()), end: D() },
371
371
  custom: _ = () => !0,
372
372
  searchTerm: i = "",
373
373
  showSplits: A = !1
374
- } = S;
375
- return a.filter((s) => A ? !s.has_been_split : !s.parent_guid).filter((s) => !!e.find((l) => l === s.account_guid)).filter((s) => s.date >= u(c.start) && s.date <= u(c.end)).filter(_).filter((s) => {
374
+ } = l;
375
+ return a.filter((s) => A ? !s.has_been_split : !s.parent_guid).filter((s) => !!e.find((N) => N === s.account_guid)).filter((s) => s.date >= u(c.start) && s.date <= u(c.end)).filter(_).filter((s) => {
376
376
  if (i === J && s.has_been_split)
377
377
  return !1;
378
378
  if (/^spl/i.test(i) && (s.has_been_split || s.parent_guid))
379
379
  return !0;
380
380
  const I = s.tags.some(
381
- (M) => N(i, t.find((H) => H.guid === M)?.name)
381
+ (M) => S(i, t.find((H) => H.guid === M)?.name)
382
382
  ), E = h(s.date);
383
- return N(i, s.payee) || N(i, s.feed_description) || N(i, s.category) || N(i, g(E, O.MONTH)) || N(i, g(E, O.DAY)) || N(i, g(E, O.FULL_MONTH_DAY)) || N(i, g(E, O.MONTH_DAY_YEAR)) || N(i, k(E, $)) || N(i, s.account) || N(i, `${s.amount}`) || N(i, s.memo) || I;
383
+ return S(i, s.payee) || S(i, s.feed_description) || S(i, s.category) || S(i, g(E, O.MONTH)) || S(i, g(E, O.DAY)) || S(i, g(E, O.FULL_MONTH_DAY)) || S(i, g(E, O.MONTH_DAY_YEAR)) || S(i, k(E, $)) || S(i, s.account) || S(i, `${s.amount}`) || S(i, s.memo) || I;
384
384
  });
385
- }, at = (S, t, a) => [...S].sort((e, c) => {
385
+ }, at = (l, t, a) => [...l].sort((e, c) => {
386
386
  const _ = t, i = (e[_] || "") > (c[_] || "");
387
387
  let A = i ? -1 : 1, s = i ? 1 : -1;
388
388
  return (t === L.DATE || t === L.AMOUNT) && (A = i ? 1 : -1, s = i ? -1 : 1), a === x.ASC ? A : s;
389
- }), N = (S, t) => {
390
- const a = S.toLowerCase().split(" "), e = t?.toString().toLowerCase() ?? "";
389
+ }), S = (l, t) => {
390
+ const a = l.toLowerCase().split(" "), e = t?.toString().toLowerCase() ?? "";
391
391
  return a.every((c) => e.indexOf(c) > -1);
392
392
  }, et = {
393
393
  account_guid: "",
@@ -545,12 +545,15 @@ class mt {
545
545
  this.globalStore.accountStore.updateAccountBalance(a.account_guid, e);
546
546
  }
547
547
  };
548
- augmentTransactions = (t) => q(
549
- t,
550
- this.globalStore.accountStore.visibleAccounts,
551
- this.globalStore.categoryStore.categories,
552
- this.taggings
553
- );
548
+ augmentTransactions = (t) => {
549
+ const a = q(
550
+ t,
551
+ this.globalStore.accountStore.visibleAccounts,
552
+ this.globalStore.categoryStore.categories,
553
+ this.taggings
554
+ );
555
+ return console.log("x", a), a;
556
+ };
554
557
  getTransactionData = () => ({});
555
558
  loadAssociatedBeats = async (t, a) => {
556
559
  const e = t ? B(t, { representation: "date" }) : void 0, c = a ?? await this.beatApi.getBeatsWithAssociatedTransaction(e);