@mx-cartographer/experiences 5.3.3 → 6.0.0-alpha.bb1

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,10 +1,6 @@
1
- ## [5.3.3] - 04-25-2025
2
-
3
- - **UPDATED** - Closed accounts and transactions behavior fix
4
-
5
1
  ## [5.3.2] - 04-24-2025
6
2
 
7
- - **UPDATED** - Manage transactions based on closed accounts more effectively across various widgets.
3
+ - **UPDATED** - Manage closed transactions more effectively across various widgets.
8
4
 
9
5
  ## [5.3.1] - 04-23-2025
10
6
 
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
2
- import { MiniWidgetProps } from '../../common';
3
- declare const _default: React.FunctionComponent<MiniWidgetProps>;
1
+ declare const _default: (() => import("react/jsx-runtime").JSX.Element) & {
2
+ displayName: string;
3
+ };
4
4
  export default _default;
@@ -2,14 +2,14 @@ import { Account, GlobalStore, Institution, Member } from '../../common';
2
2
  import { AccountApi } from '../api/AccountApi';
3
3
  import { UiStore } from './UiStore';
4
4
  export declare class AccountStore {
5
- api: AccountApi;
6
5
  globalStore: GlobalStore;
6
+ api: AccountApi;
7
7
  accounts: Account[];
8
8
  institutions: Institution[];
9
9
  members: Member[];
10
10
  uiStore: UiStore;
11
11
  constructor(globalStore: GlobalStore);
12
- initialize: (endpoint: string, token: string) => Promise<void>;
12
+ loadAccountData: () => Promise<void>;
13
13
  get cashAccounts(): Account[];
14
14
  get checkingAccounts(): Account[];
15
15
  get debtAccounts(): Account[];
@@ -1,2 +1,4 @@
1
- declare const ZeroState: () => import("react/jsx-runtime").JSX.Element;
2
- export default ZeroState;
1
+ declare const _default: (() => import("react/jsx-runtime").JSX.Element) & {
2
+ displayName: string;
3
+ };
4
+ export default _default;
@@ -1,18 +1,18 @@
1
1
  import { Theme } from '@mui/system';
2
- import { Budget, Category, DateRange, DetailedBudget, DetailedCategory, CategoryApi, GlobalStore } from '../../common';
2
+ import { Budget, Category, DateRange, DetailedBudget, DetailedCategory, GlobalStore } from '../../common';
3
3
  import { BudgetsApi } from '../api/BudgetsApi';
4
4
  export declare class BudgetsStore {
5
5
  api: BudgetsApi;
6
- categoryApi: CategoryApi;
7
6
  globalStore: GlobalStore;
8
7
  alert: string;
9
8
  dateRange: DateRange;
10
9
  budgets: Budget[];
11
10
  selectedBudget: DetailedBudget | undefined;
12
11
  selectedSubBudget: DetailedBudget | undefined;
12
+ isDataLoaded: boolean;
13
13
  theme: Theme;
14
14
  constructor(globalStore: GlobalStore);
15
- initialize: (endpoint: string, token: string) => Promise<void>;
15
+ loadBudgetData: () => Promise<void>;
16
16
  get detailedBudgets(): DetailedBudget[];
17
17
  get unbudgetedCategories(): DetailedCategory[];
18
18
  get totalBudgeted(): number;
@@ -1,15 +1,14 @@
1
1
  import { Account, CategoryApi, Category, DetailedCategory, DateRangeCategoryTotals, GlobalStore, MonthlyCategoryTotals } from '../../common';
2
2
  import { UiStore } from './UiStore';
3
3
  export declare class CategoryStore {
4
- api: CategoryApi;
5
4
  globalStore: GlobalStore;
6
5
  uiStore: UiStore;
6
+ api: CategoryApi;
7
7
  categories: Category[];
8
8
  dateRangeCategoryTotals: DateRangeCategoryTotals[];
9
9
  monthlyCategoryTotals: MonthlyCategoryTotals[];
10
10
  isLoadingCategoryTotals: boolean;
11
11
  constructor(globalStore: GlobalStore);
12
- initialize: (endpoint: string, token: string) => Promise<void>;
13
12
  get detailedCategories(): DetailedCategory[];
14
13
  get incomeCategories(): DetailedCategory[];
15
14
  get spendCategories(): DetailedCategory[];
@@ -1,6 +1,6 @@
1
1
  import { default as Fetch } from '../utils/Fetch';
2
2
  export declare class BannerApi {
3
3
  fetchInstance: Fetch | null;
4
- constructor(bullseyeEndpoint: string | undefined | null);
4
+ constructor(bullseyeEndpoint: string);
5
5
  getBanner: (userGuid: string) => Promise<any>;
6
6
  }
@@ -1,21 +1,22 @@
1
1
  import { AppDataApi } from '../api/AppDataApi';
2
- import { AppConfig, AppData, Banner, ClientCommunicationProfile, User, UserCommunicationProfile, UserProfile } from '../types';
2
+ import { AppConfig, AppData, Banner, User, UserCommunicationProfile, UserProfile } from '../types';
3
3
  import { BannerApi } from '../api';
4
+ import { GlobalStore } from './GlobalStore';
4
5
  export declare class AppDataStore {
5
- appConfig: AppConfig;
6
- appData: AppData;
6
+ globalStore: GlobalStore;
7
7
  api: AppDataApi;
8
- banner: Banner;
9
8
  bannerApi: BannerApi;
10
- constructor(appConfig: AppConfig);
9
+ appData: AppData;
10
+ banner: Banner;
11
+ constructor(globalStore: GlobalStore);
11
12
  initialize: (endpoint: string, token: string) => Promise<void>;
12
- get clientCommunicationProfile(): ClientCommunicationProfile;
13
+ get appConfig(): AppConfig;
14
+ get clientCommunicationProfile(): import('../types').ClientCommunicationProfile;
13
15
  get user(): User;
14
16
  get userCommunicationProfile(): UserCommunicationProfile;
15
17
  get userProfile(): UserProfile;
16
18
  loadAppData: () => Promise<void>;
17
19
  loadBanner: () => Promise<void>;
18
- setClientCommunicationProfile: (profile: ClientCommunicationProfile) => void;
19
20
  setUser: (user: User) => User;
20
21
  setUserCommunicationProfile: (profile: UserCommunicationProfile) => UserCommunicationProfile;
21
22
  setUserProfile: (userProfile: UserProfile) => UserProfile;
@@ -1,9 +1,9 @@
1
- import { WidgetApi, GlobalStore } from '../../common';
1
+ import { WidgetApi } from '../api';
2
+ import { GlobalStore } from '../../common';
2
3
  export declare class ConnectStore {
3
- widgetApi: WidgetApi;
4
4
  globalStore: GlobalStore;
5
+ widgetApi: WidgetApi;
5
6
  constructor(globalStore: GlobalStore);
6
- initialize: (endpoint: string, token: string) => Promise<void>;
7
7
  loadWidget: ({ widget, mode, ...rest }: {
8
8
  [x: string]: any;
9
9
  widget?: string | undefined;
@@ -1,11 +1,14 @@
1
- import { GlobalCopyApi } from '../api/GlobalCopyApi';
1
+ import { GlobalCopyApi } from '../api';
2
2
  import { GlobalCopy } from '../types';
3
+ import { GlobalStore } from './GlobalStore';
3
4
  export declare class GlobalCopyStore {
5
+ globalStore: GlobalStore;
6
+ api: GlobalCopyApi;
4
7
  copy: GlobalCopy;
5
8
  featureNamespace: string;
6
- api: GlobalCopyApi;
7
9
  isInitialized: boolean;
8
- constructor();
10
+ constructor(globalStore: GlobalStore);
9
11
  initialize: (endpoint: string, token: string) => Promise<void>;
12
+ loadCopy: () => Promise<void>;
10
13
  getCopy: (namespace: string, translationKey?: string) => Promise<void>;
11
14
  }
@@ -1,13 +1,9 @@
1
1
  import { AccountStore } from '../../accounts';
2
- import { AppDataStore } from './AppDataStore';
3
2
  import { BeatStore } from '../../insights/store/BeatStore';
4
3
  import { BudgetsStore } from '../../budgets/store/BudgetsStore';
5
4
  import { CashflowStore } from '../../cashflow';
6
5
  import { CategoryStore } from '../../categories';
7
- import { ConnectStore } from './ConnectStore';
8
6
  import { DebtsStore } from '../../debts';
9
- import { GlobalCopyStore } from './GlobalCopyStore';
10
- import { GlobalUiStore } from './GlobalUiStore';
11
7
  import { GoalStore } from '../../goals';
12
8
  import { HelpStore } from '../../help/store/HelpStore';
13
9
  import { MerchantStore } from '../../merchants';
@@ -16,9 +12,16 @@ import { NotificationStore } from '../../notifications';
16
12
  import { RecurringActivityStore } from '../../recurringactivity';
17
13
  import { SettingsStore } from '../../settings';
18
14
  import { TransactionStore } from '../../transactions';
15
+ import { AppDataStore } from './AppDataStore';
16
+ import { ConnectStore } from './ConnectStore';
17
+ import { GlobalCopyStore } from './GlobalCopyStore';
18
+ import { GlobalUiStore } from './GlobalUiStore';
19
19
  import { UserStore } from './UserStore';
20
- import { AppConfig } from '../types/AppData';
20
+ import { AppConfig } from '../types';
21
21
  export declare class GlobalStore {
22
+ appConfig: AppConfig;
23
+ endpoint: string;
24
+ sessionToken: string;
22
25
  accountStore: AccountStore;
23
26
  appDataStore: AppDataStore;
24
27
  beatStore: BeatStore;
@@ -38,7 +41,14 @@ export declare class GlobalStore {
38
41
  transactionStore: TransactionStore;
39
42
  userStore: UserStore;
40
43
  globalUiStore: GlobalUiStore;
41
- isInitialized: boolean;
42
- constructor(appConfig?: AppConfig);
44
+ constructor(appConfig?: AppConfig, endpoint?: string);
45
+ get isInitialized(): boolean;
46
+ loadData: () => Promise<void>;
47
+ /**
48
+ * DEPRECATED: Use loadData instead
49
+ * TODO: Remove once all use of this function is removed
50
+ * @param endpoint
51
+ * @param token
52
+ */
43
53
  initialize: (endpoint: string, token: string) => Promise<void>;
44
54
  }
@@ -11,6 +11,7 @@ export declare class GlobalUiStore {
11
11
  end: Date;
12
12
  };
13
13
  constructor(globalStore: GlobalStore);
14
+ get isCopyLoaded(): boolean;
14
15
  setInitialized: (isInitialized: boolean) => void;
15
16
  setSelectedAccounts: (accounts: Account[]) => void;
16
17
  setSelectedAccountGuids: (guids: string[]) => Promise<void>;
@@ -3,8 +3,8 @@ import { GlobalStore } from './GlobalStore';
3
3
  import { User, UserFeature, UserProfile } from '../types';
4
4
  export declare class UserStore {
5
5
  globalStore: GlobalStore;
6
- userFeatures: UserFeature[];
7
6
  api: UserApi;
7
+ userFeatures: UserFeature[];
8
8
  constructor(globalStore: GlobalStore);
9
9
  initialize: (endpoint: string, token: string) => Promise<void>;
10
10
  get userProfile(): UserProfile;
@@ -1,7 +1,6 @@
1
1
  export interface AccountsCopy {
2
2
  account_balance: string;
3
3
  account_details: string;
4
- account_closed: string;
5
4
  account_name: string;
6
5
  account_type: string;
7
6
  account_type_accounts: {
@@ -105,7 +104,6 @@ export interface AccountsCopy {
105
104
  this_means_accounts_will_be_merged: string;
106
105
  this_will_resume_updating_the_balance: string;
107
106
  this_will_set_the_account_balance_to_0: string;
108
- this_will_set_the_closed_account: string;
109
107
  this_will_set_the_balance_of_your_account: string;
110
108
  title: string;
111
109
  transaction_drawer_title: string;
@@ -1,16 +1,16 @@
1
1
  import { GoalApi } from '../api/GoalApi';
2
2
  import { Goal, MonthlyCashFlowProfile, RetirementGoalAccount, GlobalStore } from '../../common';
3
3
  export declare class GoalStore {
4
- api: GoalApi;
5
4
  globalStore: GlobalStore;
5
+ api: GoalApi;
6
6
  alert: string;
7
7
  goals: Goal[];
8
8
  retirementGoalAccounts: RetirementGoalAccount[];
9
9
  newRetirementGoalAccounts: RetirementGoalAccount[];
10
10
  selectedGoal: Goal | undefined;
11
11
  monthlyCashFlowProfile: MonthlyCashFlowProfile | undefined;
12
+ goalsLoaded: boolean;
12
13
  constructor(globalStore: GlobalStore);
13
- initialize: (endpoint: string, token: string) => Promise<void>;
14
14
  get orderedGoals(): Goal[];
15
15
  get debtGoals(): Goal[];
16
16
  get retirmentGoals(): Goal[];