@mx-cartographer/experiences 7.2.15-alpha.sms25 → 7.2.15-alpha.sms26

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.
@@ -1213,13 +1213,9 @@ class ts {
1213
1213
  // for external libraries like Pulse to subscribe
1214
1214
  // to global store snapshots, like `getTransactionStoreSnapshot` below
1215
1215
  // using `useSyncExternalStore` https://react.dev/reference/react/useSyncExternalStore
1216
- subscribe = (t) => (this.listeners = [...this.listeners, t], () => {
1217
- this.listeners = this.listeners.filter((e) => e !== t);
1218
- });
1216
+ subscribe = (t) => (this.listeners = [...this.listeners, t], this.listeners);
1219
1217
  // returns change subscribed to in the autorun (found in the constructor)
1220
- getTransactionStoreSnapshot = () => ({
1221
- transactions: this.transactionStore.transactions
1222
- });
1218
+ getTransactionStoreSnapshot = () => this.transactionStore;
1223
1219
  // emits change triggered in the autorun
1224
1220
  emitChange = () => {
1225
1221
  for (const t of this.listeners)
@@ -68,10 +68,8 @@ export declare class GlobalStore {
68
68
  globalUiStore: GlobalUiStore;
69
69
  constructor(appConfig?: AppConfig, endpoint?: string, onError?: GlobalErrorHandler);
70
70
  get isInitialized(): boolean;
71
- subscribe: (listener: any) => () => void;
72
- getTransactionStoreSnapshot: () => {
73
- transactions: Transaction[];
74
- };
71
+ subscribe: (listener: any) => Listener[] | (() => void);
72
+ getTransactionStoreSnapshot: () => TransactionStore;
75
73
  emitChange: () => void;
76
74
  loadData: ({ accounts, appData, associatedBeats, categories, institutions, transactionRules, transactions, userFeatures, }?: LoadDataProps) => Promise<void>;
77
75
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.2.15-alpha.sms25",
3
+ "version": "7.2.15-alpha.sms26",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",