@mx-cartographer/experiences 5.2.0 → 5.2.1-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,3 +1,9 @@
1
+ ## [5.2.1] - 04-01-2025
2
+
3
+ - **ADDED** - Types for App config from window.app
4
+ - **ADDED** - Ability to hide Connect based on config settings
5
+ - **FIXED** - API endpoint for notification profiles
6
+
1
7
  ## [5.2.0] - 04-01-2025
2
8
 
3
9
  - **ADDED** - Transaction Rules tab in `SettingsWidget`
@@ -3,5 +3,5 @@ interface ConnectCardProps {
3
3
  label: string;
4
4
  title: string;
5
5
  }
6
- export declare const ConnectCard: ({ description, label, title }: ConnectCardProps) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const ConnectCard: ({ description, label, title }: ConnectCardProps) => import("react/jsx-runtime").JSX.Element | undefined;
7
7
  export {};
@@ -0,0 +1,2 @@
1
+ import { AppConfig } from '../types/AppData';
2
+ export declare const DefaultAppConfig: AppConfig;
@@ -1,5 +1,6 @@
1
1
  export declare const useGlobalDataContext: (providerName?: string) => import('./GlobalDataProvider').GlobalStoreContextTypes;
2
2
  export declare const useAccountStore: () => import('../..').AccountStore;
3
+ export declare const useAppConfig: () => import('..').AppConfig;
3
4
  export declare const useBudgetsStore: () => import('../../budgets/store/BudgetsStore').BudgetsStore;
4
5
  export declare const useCashflowStore: () => import('../..').CashflowStore;
5
6
  export declare const useCategoryStore: () => import('../..').CategoryStore;
@@ -1,3 +1,3 @@
1
- export { useAccountStore, useBudgetsStore, useCashflowStore, useCategoryStore, useDebtStore, useEvent, useGlobalStore, useGlobalUiStore, useGlobalCopyStore, useGoalStore, useHelpStore, useMerchantStore, useNetWorthStore, useNotificationStore, usePageView, useRecurringActivityStore, useSettingsStore, useTransactionStore, useUserStore, useWidgetContainerProvider, } from './hooks';
1
+ export { useAccountStore, useAppConfig, useBudgetsStore, useCashflowStore, useCategoryStore, useDebtStore, useEvent, useGlobalStore, useGlobalUiStore, useGlobalCopyStore, useGoalStore, useHelpStore, useMerchantStore, useNetWorthStore, useNotificationStore, usePageView, useRecurringActivityStore, useSettingsStore, useTransactionStore, useUserStore, useWidgetContainerProvider, } from './hooks';
2
2
  export { GlobalDataContext, GlobalDataProvider } from './GlobalDataProvider';
3
3
  export { WidgetContainerContext, WidgetContainerProvider } from './WidgetContainerProvider';
@@ -1,9 +1,10 @@
1
1
  import { AppDataApi } from '../api/AppDataApi';
2
- import { AppData, ClientCommunicationProfile, User, UserCommunicationProfile, UserProfile } from '../types';
2
+ import { AppConfig, AppData, ClientCommunicationProfile, User, UserCommunicationProfile, UserProfile } from '../types';
3
3
  export declare class AppDataStore {
4
+ appConfig: AppConfig;
4
5
  appData: AppData;
5
6
  api: AppDataApi;
6
- constructor();
7
+ constructor(appConfig: AppConfig);
7
8
  initialize: (endpoint: string, token: string) => Promise<void>;
8
9
  get clientCommunicationProfile(): ClientCommunicationProfile;
9
10
  get user(): User;
@@ -17,6 +17,7 @@ import { RecurringActivityStore } from '../../recurringactivity';
17
17
  import { SettingsStore } from '../../settings';
18
18
  import { TransactionStore } from '../../transactions';
19
19
  import { UserStore } from './UserStore';
20
+ import { AppConfig } from '../types/AppData';
20
21
  export declare class GlobalStore {
21
22
  accountStore: AccountStore;
22
23
  appDataStore: AppDataStore;
@@ -38,6 +39,6 @@ export declare class GlobalStore {
38
39
  userStore: UserStore;
39
40
  globalUiStore: GlobalUiStore;
40
41
  isInitialized: boolean;
41
- constructor();
42
+ constructor(appConfig?: AppConfig);
42
43
  initialize: (endpoint: string, token: string) => Promise<void>;
43
44
  }
@@ -1,6 +1,7 @@
1
- import { Client, ClientColorScheme, ClientCommunicationProfile, ClientProfile } from './Client';
2
- import { User, UserCommunicationProfile, UserProfile } from './User';
1
+ import { Client, ClientColorScheme, ClientCommunicationProfile, ClientProfile, ClientStyleProfile } from './Client';
2
+ import { User, UserCommunicationProfile, UserFeature, UserProfile } from './User';
3
3
  export interface AppData {
4
+ appConfig: AppConfig;
4
5
  address: {
5
6
  bullseye?: string | null;
6
7
  };
@@ -12,3 +13,104 @@ export interface AppData {
12
13
  user_communication_profile: UserCommunicationProfile;
13
14
  user_profile: UserProfile;
14
15
  }
16
+ export interface AppConfig {
17
+ clientStyleProfile: ClientStyleProfile;
18
+ config: Config;
19
+ honeyBadgerPublicKey?: string;
20
+ options: Options;
21
+ postHogPublicKey?: string;
22
+ userFeatures: UserFeature[];
23
+ }
24
+ export interface Config {
25
+ assets_prefix?: string;
26
+ bundle?: string;
27
+ client_guid?: string;
28
+ dashboard_accounts_index: number;
29
+ dashboard_accounts_location: number;
30
+ dashboard_activity_index: number;
31
+ dashboard_activity_location: number;
32
+ dashboard_budgets_index: number;
33
+ dashboard_budgets_location: number;
34
+ dashboard_cash_flow_index: number;
35
+ dashboard_cash_flow_location: number;
36
+ dashboard_connect_index: number;
37
+ dashboard_connect_location: number;
38
+ dashboard_insights_index: number;
39
+ dashboard_insights_location: number;
40
+ dashboard_spending_index: number;
41
+ dashboard_spending_location: number;
42
+ dashboard_trends_index: number;
43
+ dashboard_trends_location: number;
44
+ display_account_number_in_accounts: boolean;
45
+ display_add_manual_transaction_in_transactions: boolean;
46
+ display_available_balance_in_accounts: boolean;
47
+ display_email_edit_field_in_settings: boolean;
48
+ display_mobile_devices_in_settings: boolean;
49
+ display_notification_settings_in_settings: boolean;
50
+ display_only_external_accounts_in_accounts: boolean;
51
+ display_password_options_in_settings: boolean;
52
+ display_sms_edit_field_in_settings: boolean;
53
+ display_terms_and_conditions: boolean;
54
+ display_user_profile_in_settins: boolean;
55
+ display_user_transaction_rules_in_settings: boolean;
56
+ enable_add_account_in_zero_state: boolean;
57
+ enable_aggregation_prompts: boolean;
58
+ enable_external_accounts_in_goals_widget: boolean;
59
+ enable_funds_transfers_in_goals_widget: boolean;
60
+ enable_manual_accounts: boolean;
61
+ enable_mark_account_closed_for_held_accounts: boolean;
62
+ enable_mark_account_duplicate_for_held_accounts: boolean;
63
+ enable_renaming_home_accounts: boolean;
64
+ enable_support_requests: boolean;
65
+ language?: string;
66
+ product_name?: string;
67
+ session_token?: string;
68
+ show_account_nicknames_in_master: boolean;
69
+ show_accounts_widget_in_master: boolean;
70
+ show_budgets_widget_in_master: boolean;
71
+ show_carousel_card_border_in_pulse_micro_widget: boolean;
72
+ show_cash_flow_widget_in_master: boolean;
73
+ show_connections_widget_in_master: boolean;
74
+ show_cta_colocated_with_text_in_pulse_micro_widget: boolean;
75
+ show_debts_widget_in_master: boolean;
76
+ show_finstrong_widget_in_master: boolean;
77
+ show_full_experience_link_in_pulse_micro_widget: boolean;
78
+ show_full_experience_link_in_pulse_mini_widget: boolean;
79
+ show_goals_widget_in_master: boolean;
80
+ show_help_widget_in_master: boolean;
81
+ show_horizontal_padding_in_pulse_micro_widget: boolean;
82
+ show_icon_in_pulse_micro_widget: boolean;
83
+ show_investments_widget_in_master: boolean;
84
+ show_mx_branding: boolean;
85
+ show_navigation_controls_in_pulse_micro_widget: boolean;
86
+ show_net_worth_widget_in_master: boolean;
87
+ show_notifications_widget_in_master: boolean;
88
+ show_settings_widget_in_master: boolean;
89
+ show_spending_plan_widget_in_master: boolean;
90
+ show_spending_widget_in_master: boolean;
91
+ show_transactions_widget_in_master: boolean;
92
+ show_trends_widget_in_master: boolean;
93
+ type?: string;
94
+ websocket: {
95
+ hmac?: string;
96
+ token?: string;
97
+ url?: string;
98
+ };
99
+ widgets_display_name?: string;
100
+ }
101
+ export interface Options {
102
+ assets_prefix?: string;
103
+ brokaw_auth: {
104
+ hmac?: string;
105
+ token?: string;
106
+ url?: string;
107
+ };
108
+ brokaw_websocket_url?: string;
109
+ bundle?: string;
110
+ custom_copy_namespace?: string;
111
+ language?: string;
112
+ product_name?: string;
113
+ session_token?: string;
114
+ subtype?: string;
115
+ type?: string;
116
+ }
@@ -80,3 +80,15 @@ export interface ClientProfile {
80
80
  uses_oauth: boolean;
81
81
  default_institution_guid?: string | null;
82
82
  }
83
+ export interface ClientStyleProfile {
84
+ primary_color?: string;
85
+ secondary_color?: string;
86
+ success_color?: string;
87
+ error_color?: string;
88
+ warning_color?: string;
89
+ info_color?: string;
90
+ mode?: 'dark' | 'light' | 'user';
91
+ system_font?: string;
92
+ card_corner_radius?: number;
93
+ button_corner_radius?: number;
94
+ }
@@ -2,13 +2,13 @@ export type { Account, DetailedAccount, Member, MonthlyAccountBalance } from './
2
2
  export { AccountIcon, AccountIconVariants, AccountSubType, AccountType, AccountTypeName, ConnectionStatus, ConnectionStatusEnums, ErrorStatuses, MfaStatuses, NonConnectedStatuses, ProcessingStatuses, PropertyType, PropertyTypeName, StatusName, } from './Account';
3
3
  export { type Activity, ActivityStatus, ActivityType } from './Activity';
4
4
  export type { AnalyticsEvent, AnalyticsPageview, BasicAnalyticsEvent, BasicAnalyticsPageview, AnalyticsSession, AnalyticEventFunction, AnalyticPageviewFunction, } from './Analytics';
5
- export type { AppData } from './AppData';
5
+ export type { AppConfig, AppData, Config, Options } from './AppData';
6
6
  export type { Beat, DataSeries } from './Beat';
7
7
  export { UserVerification } from './Beat';
8
8
  export type { Budget, BudgetColors, DetailedBudget } from './Budget';
9
9
  export type { CashflowEvent, CashflowSequence, RepeatDay, RepeatInterval, RepeatMonth, RepeatWeekday, } from './Cashflow';
10
10
  export type { Category, CategoryTotal, DateRangeCategoryTotals, DetailedCategory, MonthlyAmount, MonthlyCategoryTotals, } from './Category';
11
- export type { Client, ClientColorScheme, ClientCommunicationProfile, ClientProfile } from './Client';
11
+ export type { Client, ClientColorScheme, ClientCommunicationProfile, ClientProfile, ClientStyleProfile, } from './Client';
12
12
  export type { DateType, DateRange } from './Date';
13
13
  export type { Expense } from './Expense';
14
14
  export { ExpenseStatus, ScheduledPaymentTypes } from './Expense';