@mx-cartographer/experiences 7.2.15-alpha.sms2 → 7.2.15-alpha.sms4

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.
@@ -661,7 +661,7 @@ class mt {
661
661
  };
662
662
  updateTransaction = async (t) => {
663
663
  const a = await this.api.updateTransaction(t), e = this.transactions.findIndex((c) => c.guid === t.guid);
664
- console.log("updateTransaction ran 1", e), e >= 0 && (console.log("updateTransaction ran 2", e), d(
664
+ e >= 0 && (console.log("updateTransaction ran 2", e), d(
665
665
  () => this.rawTransactions = [
666
666
  ...this.transactions.slice(0, e),
667
667
  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-Cd9GapAi.mjs";
22
- import { S as Js } from "../TransactionStore-Cd9GapAi.mjs";
21
+ import { T as at } from "../TransactionStore-RGu9PZK8.mjs";
22
+ import { S as Js } from "../TransactionStore-RGu9PZK8.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";
@@ -1198,6 +1198,7 @@ class Je {
1198
1198
  userStore;
1199
1199
  // UI Stores
1200
1200
  globalUiStore;
1201
+ listeners = [];
1201
1202
  constructor(t = K, e = "/", r) {
1202
1203
  this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.onError = r, this.accountStore = new ft(this), this.appDataStore = new ie(this), this.analyticsStore = new ee(this), this.beatStore = new St(this), this.budgetsStore = new se(this), this.cashflowStore = new nt(this), this.categoryStore = new et(this), this.connectStore = new ce(this), this.copyStore = new te(this), this.debtsStore = new xt(this), this.finstrongStore = new Ct(this), this.goalStore = new it(this), this.helpStore = new ae(this), this.holdingStore = new ne(this), this.merchantStore = new Tt(this), this.netWorthStore = new Bt(this), this.notificationStore = new st(this), this.recurringTransactionsStore = new mt(this), this.settingsStore = new It(this), this.transactionStore = new at(this), this.trendsStore = new ct(this), this.userStore = new le(this), this.globalUiStore = new de(this), f(this);
1203
1204
  }
@@ -1229,6 +1230,10 @@ class Je {
1229
1230
  })
1230
1231
  ]), this.globalUiStore.setInitialized(!0);
1231
1232
  };
1233
+ subscribe = (t) => (this.listeners = [...this.listeners, t], () => {
1234
+ this.listeners = this.listeners.filter((e) => e !== t);
1235
+ });
1236
+ getSnapshot = () => this;
1232
1237
  }
1233
1238
  export {
1234
1239
  vs as ANALYTICS_EVENTS,
@@ -64,8 +64,11 @@ export declare class GlobalStore {
64
64
  trendsStore: TrendsStore;
65
65
  userStore: UserStore;
66
66
  globalUiStore: GlobalUiStore;
67
+ listeners: any;
67
68
  constructor(appConfig?: AppConfig, endpoint?: string, onError?: GlobalErrorHandler);
68
69
  get isInitialized(): boolean;
69
70
  loadData: ({ accounts, appData, associatedBeats, categories, institutions, transactionRules, transactions, userFeatures, }?: LoadDataProps) => Promise<void>;
71
+ subscribe: (listener: any) => () => void;
72
+ getSnapshot: () => this;
70
73
  }
71
74
  export {};
@@ -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-BqCr2FTh.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-Cd9GapAi.mjs";
7
- import { T as Ea } from "../TransactionStore-Cd9GapAi.mjs";
6
+ import { S as ae, D as Fe } from "../TransactionStore-RGu9PZK8.mjs";
7
+ import { T as Ea } from "../TransactionStore-RGu9PZK8.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.sms2",
3
+ "version": "7.2.15-alpha.sms4",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",