@mx-cartographer/experiences 7.2.15-alpha.sms24 → 7.2.15-alpha.sms25
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/dist/common/index.es.js
CHANGED
|
@@ -1202,7 +1202,7 @@ class ts {
|
|
|
1202
1202
|
constructor(t = K, e = "/", r) {
|
|
1203
1203
|
this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.onError = r, this.accountStore = new yt(this), this.appDataStore = new ce(this), this.analyticsStore = new se(this), this.beatStore = new bt(this), this.budgetsStore = new re(this), this.cashflowStore = new nt(this), this.categoryStore = new et(this), this.connectStore = new de(this), this.copyStore = new ee(this), this.debtsStore = new Ct(this), this.finstrongStore = new vt(this), this.goalStore = new it(this), this.helpStore = new ne(this), this.holdingStore = new ie(this), this.merchantStore = new Bt(this), this.netWorthStore = new It(this), this.notificationStore = new st(this), this.recurringTransactionsStore = new mt(this), this.settingsStore = new Nt(this), this.transactionStore = new at(this), this.trendsStore = new ct(this), this.userStore = new ue(this), this.globalUiStore = new le(this), f(this), ft(() => {
|
|
1204
1204
|
const { transactions: o } = this.transactionStore;
|
|
1205
|
-
return console.log("change happened
|
|
1205
|
+
return console.log("change happened 3"), this.emitChange(), {
|
|
1206
1206
|
transactions: o
|
|
1207
1207
|
};
|
|
1208
1208
|
});
|
|
@@ -1217,7 +1217,9 @@ class ts {
|
|
|
1217
1217
|
this.listeners = this.listeners.filter((e) => e !== t);
|
|
1218
1218
|
});
|
|
1219
1219
|
// returns change subscribed to in the autorun (found in the constructor)
|
|
1220
|
-
getTransactionStoreSnapshot = () =>
|
|
1220
|
+
getTransactionStoreSnapshot = () => ({
|
|
1221
|
+
transactions: this.transactionStore.transactions
|
|
1222
|
+
});
|
|
1221
1223
|
// emits change triggered in the autorun
|
|
1222
1224
|
emitChange = () => {
|
|
1223
1225
|
for (const t of this.listeners)
|
|
@@ -69,7 +69,9 @@ export declare class GlobalStore {
|
|
|
69
69
|
constructor(appConfig?: AppConfig, endpoint?: string, onError?: GlobalErrorHandler);
|
|
70
70
|
get isInitialized(): boolean;
|
|
71
71
|
subscribe: (listener: any) => () => void;
|
|
72
|
-
getTransactionStoreSnapshot: () =>
|
|
72
|
+
getTransactionStoreSnapshot: () => {
|
|
73
|
+
transactions: Transaction[];
|
|
74
|
+
};
|
|
73
75
|
emitChange: () => void;
|
|
74
76
|
loadData: ({ accounts, appData, associatedBeats, categories, institutions, transactionRules, transactions, userFeatures, }?: LoadDataProps) => Promise<void>;
|
|
75
77
|
}
|