@mx-cartographer/experiences 4.1.2-alpha.sms-1 → 4.2.0-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.
Files changed (31) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/dist/accounts/stores/AccountStore.d.ts +17 -1
  3. package/dist/common/context/hooks.d.ts +1 -0
  4. package/dist/common/context/index.d.ts +1 -1
  5. package/dist/common/stores/GlobalStore.d.ts +9 -4
  6. package/dist/common/types/Debt.d.ts +2 -1
  7. package/dist/common/types/GlobalCopy.d.ts +3 -1
  8. package/dist/common/types/Help.d.ts +22 -0
  9. package/dist/common/types/localization/DebtsCopy.d.ts +8 -0
  10. package/dist/common/types/localization/SettingsCopy.d.ts +20 -0
  11. package/dist/common/types/localization/index.d.ts +2 -0
  12. package/dist/debts/components/debtsdrawer/actions/InterestRateAction.d.ts +8 -0
  13. package/dist/debts/components/debtsdrawer/actions/MonthlyPaymentAction.d.ts +8 -0
  14. package/dist/debts/components/debtsdrawer/actions/OriginalBalanceAction.d.ts +8 -0
  15. package/dist/goals/components/actions/AmountToSaveAction.d.ts +3 -1
  16. package/dist/goals/components/actions/InterestRateAction.d.ts +3 -1
  17. package/dist/goals/components/actions/MonthlyPaymentAction.d.ts +3 -1
  18. package/dist/goals/components/actions/OriginalBalanceAction.d.ts +3 -1
  19. package/dist/goals/stores/GoalStore.d.ts +2 -0
  20. package/dist/help/HelpList.d.ts +3 -0
  21. package/dist/help/HelpWidget.d.ts +7 -0
  22. package/dist/help/constants/index.d.ts +19 -0
  23. package/dist/help/index.d.ts +2 -0
  24. package/dist/help/store/HelpStore.d.ts +9 -0
  25. package/dist/help/utils/index.d.ts +2 -0
  26. package/dist/index.d.ts +1 -0
  27. package/dist/index.es.js +4047 -3480
  28. package/dist/index.es.js.map +1 -1
  29. package/dist/settings/components/profile/ProfileDetails.d.ts +4 -0
  30. package/dist/transactions/stores/TransactionStore.d.ts +20 -1
  31. package/package.json +8 -8
package/CHANGELOG.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  - **ADDED** - `GoalsWidget`
8
8
 
9
- ## [4.0.12] - 02-03-2025
9
+ ## [4.0.14] - 02-03-2025
10
10
 
11
11
  - **FIXED** - Projected income in budget widget
12
12
 
@@ -1,14 +1,29 @@
1
1
  import { Account, GlobalStore, Institution, Member } from '../../common';
2
2
  import { AccountApi } from '../api/AccountApi';
3
3
  import { UiStore } from './UiStore';
4
+ interface OptionalProps {
5
+ accounts?: Account[] | [];
6
+ institutions?: Institution[] | [];
7
+ members?: Member[] | [];
8
+ updateExternallyManagedAccounts?: (accounts: Account[]) => void;
9
+ }
4
10
  export declare class AccountStore {
5
11
  api: AccountApi;
6
12
  globalStore: GlobalStore;
13
+ /**
14
+ * Required props if data is externally managed
15
+ * @property {Array} accounts array of accounts
16
+ * @property {Array} institutions array of institutions
17
+ * @property {Array} members array of members
18
+ * @property {function} updateExternallyManagedAccounts Updater function for external data manager
19
+ */
7
20
  accounts: Account[];
8
21
  institutions: Institution[];
9
22
  members: Member[];
23
+ updateExternallyManagedAccounts: ((accounts: Account[]) => void) | undefined;
24
+ shouldManageDataExternally: boolean;
10
25
  uiStore: UiStore;
11
- constructor(globalStore: GlobalStore);
26
+ constructor(globalStore: GlobalStore, optionalProps?: OptionalProps);
12
27
  initialize: (endpoint: string, token: string) => Promise<void>;
13
28
  get cashAccounts(): Account[];
14
29
  get checkingAccounts(): Account[];
@@ -28,3 +43,4 @@ export declare class AccountStore {
28
43
  removeAccount: (accountGuid: string) => Promise<void>;
29
44
  updateAccount: (account: Account) => Promise<void>;
30
45
  }
46
+ export {};
@@ -9,6 +9,7 @@ export declare const useGlobalStore: () => import('..').GlobalStore;
9
9
  export declare const useGlobalUiStore: () => import('../stores/GlobalUiStore').GlobalUiStore;
10
10
  export declare const useGlobalCopyStore: () => import('..').GlobalCopy;
11
11
  export declare const useGoalStore: () => import('../..').GoalStore;
12
+ export declare const useHelpStore: () => import('../../help/store/HelpStore').HelpStore;
12
13
  export declare const useMerchantStore: () => import('../..').MerchantStore;
13
14
  export declare const useNetWorthStore: () => import('../..').NetWorthStore;
14
15
  export declare const useNotificationStore: () => import('../..').NotificationStore;
@@ -1,3 +1,3 @@
1
- export { useAccountStore, useBudgetsStore, useCashflowStore, useCategoryStore, useDebtStore, useEvent, useGlobalStore, useGlobalUiStore, useGlobalCopyStore, useGoalStore, useMerchantStore, useNetWorthStore, useNotificationStore, usePageView, useRecurringActivityStore, useTransactionStore, useUserStore, useWidgetContainerProvider, } from './hooks';
1
+ export { useAccountStore, useBudgetsStore, useCashflowStore, useCategoryStore, useDebtStore, useEvent, useGlobalStore, useGlobalUiStore, useGlobalCopyStore, useGoalStore, useHelpStore, useMerchantStore, useNetWorthStore, useNotificationStore, usePageView, useRecurringActivityStore, useTransactionStore, useUserStore, useWidgetContainerProvider, } from './hooks';
2
2
  export { GlobalDataContext, GlobalDataProvider } from './GlobalDataProvider';
3
3
  export { WidgetContainerContext, WidgetContainerProvider } from './WidgetContainerProvider';
@@ -6,15 +6,16 @@ import { CashflowStore } from '../../cashflow';
6
6
  import { CategoryStore } from '../../categories';
7
7
  import { ConnectStore } from './ConnectStore';
8
8
  import { DebtsStore } from '../../debts';
9
+ import { GlobalCopyStore } from './GlobalCopyStore';
9
10
  import { GlobalUiStore } from './GlobalUiStore';
10
11
  import { GoalStore } from '../../goals';
12
+ import { HelpStore } from '../../help/store/HelpStore';
11
13
  import { MerchantStore } from '../../merchants';
12
14
  import { NetWorthStore } from '../../networth';
13
15
  import { NotificationStore } from '../../notifications';
14
16
  import { RecurringActivityStore } from '../../recurringactivity';
15
17
  import { TransactionStore } from '../../transactions';
16
18
  import { UserStore } from './UserStore';
17
- import { GlobalCopyStore } from './GlobalCopyStore';
18
19
  export declare class GlobalStore {
19
20
  accountStore: AccountStore;
20
21
  appDataStore: AppDataStore;
@@ -24,8 +25,9 @@ export declare class GlobalStore {
24
25
  categoryStore: CategoryStore;
25
26
  connectStore: ConnectStore;
26
27
  copyStore: GlobalCopyStore;
27
- goalStore: GoalStore;
28
28
  debtsStore: DebtsStore;
29
+ goalStore: GoalStore;
30
+ helpStore: HelpStore;
29
31
  merchantStore: MerchantStore;
30
32
  netWorthStore: NetWorthStore;
31
33
  notificationStore: NotificationStore;
@@ -34,6 +36,9 @@ export declare class GlobalStore {
34
36
  userStore: UserStore;
35
37
  globalUiStore: GlobalUiStore;
36
38
  isInitialized: boolean;
37
- constructor();
38
- initialize: (endpoint: string, token: string) => Promise<void>;
39
+ constructor({ accountStoreProps, transactionStoreProps, }: {
40
+ accountStoreProps?: any;
41
+ transactionStoreProps?: any;
42
+ });
43
+ initialize: (endpoint: string, token: string, storesToInitialize?: string[]) => Promise<void>;
39
44
  }
@@ -4,12 +4,13 @@ export type Debt = {
4
4
  account: Account;
5
5
  balance: number;
6
6
  goal?: Goal;
7
- guid?: string;
7
+ guid: string;
8
8
  interest_rate?: number;
9
9
  is_paid_off: boolean;
10
10
  is_impossible: boolean;
11
11
  monthly_payment?: number;
12
12
  name: string;
13
+ original_balance?: number;
13
14
  payment_due_date: number;
14
15
  priority?: number | string;
15
16
  projected_payoff_date?: Date;
@@ -1,4 +1,4 @@
1
- import { AccountsCopy, BudgetsCopy, CashflowCopy, CategoryCopy, CommonCopy, ConnectCopy, GoalsCopy, InsightsFeedCopy, MicroInsightsCopy, NetWorthCopy, NotificationsCopy, RecurringCopy, SpendingCopy, TransactionsCopy, TrendsCopy } from './localization';
1
+ import { AccountsCopy, BudgetsCopy, CashflowCopy, CategoryCopy, CommonCopy, ConnectCopy, DebtsCopy, GoalsCopy, InsightsFeedCopy, MicroInsightsCopy, NetWorthCopy, NotificationsCopy, RecurringCopy, SettingsCopy, SpendingCopy, TransactionsCopy, TrendsCopy } from './localization';
2
2
  export interface GlobalCopy {
3
3
  accounts: AccountsCopy;
4
4
  budgets: BudgetsCopy;
@@ -6,12 +6,14 @@ export interface GlobalCopy {
6
6
  categories: CategoryCopy;
7
7
  common: CommonCopy;
8
8
  connect: ConnectCopy;
9
+ debts: DebtsCopy;
9
10
  goals: GoalsCopy;
10
11
  insights_feed: InsightsFeedCopy;
11
12
  micro_insights: MicroInsightsCopy;
12
13
  net_worth: NetWorthCopy;
13
14
  notifications: NotificationsCopy;
14
15
  recurring: RecurringCopy;
16
+ settings: SettingsCopy;
15
17
  spending: SpendingCopy;
16
18
  transactions: TransactionsCopy;
17
19
  trends: TrendsCopy;
@@ -0,0 +1,22 @@
1
+ import { ClientCommunicationProfile, ClientProfile } from './Client';
2
+ export interface HelpCategory {
3
+ flags?: string[];
4
+ guid: string;
5
+ icon: string;
6
+ title: string;
7
+ topics: HelpTopic[];
8
+ }
9
+ export interface HelpListProps {
10
+ helpCategories: HelpCategory[];
11
+ helpContent: string;
12
+ helpTitle: string;
13
+ buttonText: string;
14
+ onRequestHelp: () => void;
15
+ onTopicSelect: (topicKey: string) => void;
16
+ }
17
+ export interface HelpTopic {
18
+ label: string;
19
+ topicKey: string;
20
+ }
21
+ export interface Profile extends ClientCommunicationProfile, ClientProfile {
22
+ }
@@ -0,0 +1,8 @@
1
+ export interface DebtsCopy {
2
+ add_interest_rate: string;
3
+ add_monthly_payment: string;
4
+ add_original_balance: string;
5
+ details_interest_rate: string;
6
+ details_monthly_payment: string;
7
+ details_original_balance: string;
8
+ }
@@ -0,0 +1,20 @@
1
+ export interface SettingsCopy {
2
+ birthdate: string;
3
+ credit_score: string;
4
+ email_address: string;
5
+ first_name: string;
6
+ last_name: string;
7
+ mobile_number: string;
8
+ profile_details: string;
9
+ profile_updated_error_alert: string;
10
+ profile_updated_success_alert: string;
11
+ send_verification: string;
12
+ update_profile_details: string;
13
+ verification_code_error_alert: string;
14
+ verification_code_success_alert: string;
15
+ verification_notice: string;
16
+ verify_contact: string;
17
+ verify_contact_detail: string;
18
+ verify_contact_button: string;
19
+ zip_code: string;
20
+ }
@@ -8,12 +8,14 @@ export type { CommonCopy } from './CommonCopy';
8
8
  export type { ConnectCopy } from './ConnectCopy';
9
9
  export type { CurrencyInputCopy } from './CurrencyInputCopy';
10
10
  export type { DateRangePickerCopy } from './DateRangePickerCopy';
11
+ export type { DebtsCopy } from './DebtsCopy';
11
12
  export type { GoalsCopy } from './GoalsCopy';
12
13
  export type { InsightsFeedCopy } from './InsightsFeedCopy';
13
14
  export type { MicroInsightsCopy } from './MicroInsightsCopy';
14
15
  export type { NetWorthCopy } from './NetWorthCopy';
15
16
  export type { NotificationsCopy } from './NotificationsCopy';
16
17
  export type { RecurringCopy } from './RecurringCopy';
18
+ export type { SettingsCopy } from './SettingsCopy';
17
19
  export type { SpendingCopy } from './SpendingCopy';
18
20
  export type { TransactionsCopy } from './TransactionsCopy';
19
21
  export type { TrendsCopy } from './TrendsCopy';
@@ -0,0 +1,8 @@
1
+ import { DebtChartData } from '../../../utils/DebtsWidget';
2
+ interface InterestRateActionProps {
3
+ debt: DebtChartData;
4
+ }
5
+ export declare const InterestRateAction: (({ debt }: InterestRateActionProps) => import("react/jsx-runtime").JSX.Element) & {
6
+ displayName: string;
7
+ };
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import { DebtChartData } from '../../../utils/DebtsWidget';
2
+ interface MonthlyPaymentActionProps {
3
+ debt: DebtChartData;
4
+ }
5
+ export declare const MonthlyPaymentAction: (({ debt }: MonthlyPaymentActionProps) => import("react/jsx-runtime").JSX.Element) & {
6
+ displayName: string;
7
+ };
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import { DebtChartData } from '../../../utils/DebtsWidget';
2
+ interface OriginalBalanceActionProps {
3
+ debt: DebtChartData;
4
+ }
5
+ export declare const OriginalBalanceAction: (({ debt }: OriginalBalanceActionProps) => import("react/jsx-runtime").JSX.Element) & {
6
+ displayName: string;
7
+ };
8
+ export {};
@@ -2,5 +2,7 @@ import { Goal } from '../../../common';
2
2
  interface AmountToSaveActionProps {
3
3
  goal: Goal;
4
4
  }
5
- export declare const AmountToSaveAction: ({ goal }: AmountToSaveActionProps) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const AmountToSaveAction: (({ goal }: AmountToSaveActionProps) => import("react/jsx-runtime").JSX.Element) & {
6
+ displayName: string;
7
+ };
6
8
  export {};
@@ -2,5 +2,7 @@ import { Goal } from '../../../common';
2
2
  interface InterestRateActionProps {
3
3
  goal: Goal;
4
4
  }
5
- export declare const InterestRateAction: ({ goal }: InterestRateActionProps) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const InterestRateAction: (({ goal }: InterestRateActionProps) => import("react/jsx-runtime").JSX.Element) & {
6
+ displayName: string;
7
+ };
6
8
  export {};
@@ -2,5 +2,7 @@ import { Goal } from '../../../common';
2
2
  interface MonthlyPaymentActionProps {
3
3
  goal: Goal;
4
4
  }
5
- export declare const MonthlyPaymentAction: ({ goal }: MonthlyPaymentActionProps) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const MonthlyPaymentAction: (({ goal }: MonthlyPaymentActionProps) => import("react/jsx-runtime").JSX.Element) & {
6
+ displayName: string;
7
+ };
6
8
  export {};
@@ -2,5 +2,7 @@ import { Goal } from '../../../common';
2
2
  interface OriginalBalanceActionProps {
3
3
  goal: Goal;
4
4
  }
5
- export declare const OriginalBalanceAction: ({ goal }: OriginalBalanceActionProps) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const OriginalBalanceAction: (({ goal }: OriginalBalanceActionProps) => import("react/jsx-runtime").JSX.Element) & {
6
+ displayName: string;
7
+ };
6
8
  export {};
@@ -13,6 +13,8 @@ export declare class GoalStore {
13
13
  initialize: (endpoint: string, token: string) => Promise<void>;
14
14
  get orderedGoals(): Goal[];
15
15
  get debtGoals(): Goal[];
16
+ get retirmentGoals(): Goal[];
17
+ get savingGoals(): Goal[];
16
18
  addGoal: (goal: Goal) => Promise<void>;
17
19
  addRetirementGoal: (goal: Goal) => Promise<void>;
18
20
  addRetirementGoalAccount: (account: RetirementGoalAccount) => Promise<void>;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { HelpListProps } from '../common/types/Help';
3
+ export declare const HelpList: React.FC<HelpListProps>;
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { SxProps } from '@mui/material/styles';
3
+ interface HelpProps {
4
+ sx: SxProps;
5
+ }
6
+ declare const _default: React.FunctionComponent<HelpProps>;
7
+ export default _default;
@@ -0,0 +1,19 @@
1
+ export declare const HELP_CATEGORIES: ({
2
+ flags: string[];
3
+ guid: string;
4
+ icon: string;
5
+ title: string;
6
+ topics: {
7
+ label: string;
8
+ topicKey: string;
9
+ }[];
10
+ } | {
11
+ guid: string;
12
+ icon: string;
13
+ title: string;
14
+ topics: {
15
+ label: string;
16
+ topicKey: string;
17
+ }[];
18
+ flags?: undefined;
19
+ })[];
@@ -0,0 +1,2 @@
1
+ export { default as HelpWidget } from './HelpWidget';
2
+ export { HelpList } from './HelpList';
@@ -0,0 +1,9 @@
1
+ import { GlobalStore } from '../../common';
2
+ import { Config } from '../../common/types/Global';
3
+ export declare class HelpStore {
4
+ appConfig: Config | undefined;
5
+ globalStore: GlobalStore;
6
+ constructor(globalStore: GlobalStore);
7
+ loadAppConfig: (config: Config) => Config;
8
+ get helpCategories(): import('../../common/types/Help').HelpCategory[];
9
+ }
@@ -0,0 +1,2 @@
1
+ import { HelpCategory, Profile } from '../../common/types/Help';
2
+ export declare const getAccessibleHelpCategories: (profile: Profile) => HelpCategory[];
package/dist/index.d.ts CHANGED
@@ -6,6 +6,7 @@ export * from './common';
6
6
  export * from './dashboard';
7
7
  export * from './debts';
8
8
  export * from './goals';
9
+ export * from './help';
9
10
  export * from './insights';
10
11
  export * from './merchants';
11
12
  export * from './microinsights';