@mx-cartographer/experiences 4.0.5 → 4.1.0-alpha.j10
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 +0 -16
- package/dist/common/api/AppApi.d.ts +7 -0
- package/dist/common/api/MarketingApi.d.ts +7 -0
- package/dist/common/api/index.d.ts +1 -0
- package/dist/common/constants/Offers.d.ts +12 -0
- package/dist/common/context/hooks.d.ts +2 -0
- package/dist/common/context/index.d.ts +1 -1
- package/dist/common/stores/AppStore.d.ts +14 -0
- package/dist/common/stores/GlobalStore.d.ts +4 -0
- package/dist/common/stores/MarketingStore.d.ts +9 -0
- package/dist/common/types/AccountBanner.d.ts +17 -0
- package/dist/common/types/AppData.d.ts +147 -0
- package/dist/common/types/index.d.ts +2 -0
- package/dist/common/utils/Fetch.d.ts +1 -0
- package/dist/dashboard/AccountBanner.d.ts +2 -0
- package/dist/index.es.js +3128 -3063
- package/dist/index.es.js.map +1 -1
- package/package.json +2 -2
- package/dist/common/stores/UserStore.d.ts +0 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
## [4.0.5] - 12-18-2024
|
|
2
|
-
|
|
3
|
-
- **FIXED** - Wrapping for accounts name and cashflow date range
|
|
4
|
-
|
|
5
|
-
## [4.0.4] - 12-18-2024
|
|
6
|
-
|
|
7
|
-
- **FIXED** - Trends miniWidget line chart marks now show correct color and labels
|
|
8
|
-
|
|
9
|
-
## [4.0.3] - 12-18-2024
|
|
10
|
-
|
|
11
|
-
- **FIXED** - Cash flow copy changes
|
|
12
|
-
|
|
13
|
-
## [4.0.2] - 12-17-2024
|
|
14
|
-
|
|
15
|
-
- **FIXED** - Adjust line chart gradient opacity
|
|
16
|
-
|
|
17
1
|
## [4.0.1] - 12-16-2024
|
|
18
2
|
|
|
19
3
|
- **FIXED** - Net Worth widget styling
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AccountBannerType } from '../types';
|
|
2
|
+
import { default as Fetch } from '../utils/Fetch';
|
|
3
|
+
export declare class MarketingApi {
|
|
4
|
+
fetchInstance: Fetch;
|
|
5
|
+
constructor(endpoint: string, token: string);
|
|
6
|
+
getAccountBanner: (bullseyeUrl: string, userGuid: string) => Promise<AccountBannerType>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const OfferType: {
|
|
2
|
+
ACCOUNT_WIDGET_BANNER: number;
|
|
3
|
+
FINSMART_CREDIT_CARD: number;
|
|
4
|
+
FINSMART_CREDIT_CARD_SMALL_CARD: number;
|
|
5
|
+
FINSMART_CREDIT_CARD_SPENDING_WIDGET: number;
|
|
6
|
+
FINSMART_BALANCE_TRANSFER: number;
|
|
7
|
+
FINSMART_BALANCE_TRANSFER_SMALL_CARD: number;
|
|
8
|
+
FINSMART_BALANCE_TRANSFER_SPENDING_WIDGET: number;
|
|
9
|
+
TOAST_MASTER: number;
|
|
10
|
+
TOAST_MINI: number;
|
|
11
|
+
TOAST_MOBILE: number;
|
|
12
|
+
};
|
|
@@ -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 useAppStore: () => import('../stores/AppStore').AppStore;
|
|
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;
|
|
@@ -9,6 +10,7 @@ export declare const useGlobalStore: () => import('..').GlobalStore;
|
|
|
9
10
|
export declare const useGlobalUiStore: () => import('../stores/GlobalUiStore').GlobalUiStore;
|
|
10
11
|
export declare const useGlobalCopyStore: () => import('..').GlobalCopy;
|
|
11
12
|
export declare const useGoalStore: () => import('../..').GoalStore;
|
|
13
|
+
export declare const useMarketingStore: () => import('../stores/MarketingStore').MarketingStore;
|
|
12
14
|
export declare const useMerchantStore: () => import('../..').MerchantStore;
|
|
13
15
|
export declare const useNetWorthStore: () => import('../..').NetWorthStore;
|
|
14
16
|
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, useAppStore, useBudgetsStore, useCashflowStore, useCategoryStore, useDebtStore, useEvent, useGlobalStore, useGlobalUiStore, useGlobalCopyStore, useGoalStore, useMarketingStore, useMerchantStore, useNetWorthStore, useNotificationStore, usePageView, useRecurringActivityStore, useTransactionStore, useUserStore, useWidgetContainerProvider, } from './hooks';
|
|
2
2
|
export { GlobalDataContext, GlobalDataProvider } from './GlobalDataProvider';
|
|
3
3
|
export { WidgetContainerContext, WidgetContainerProvider } from './WidgetContainerProvider';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AppApi } from '../api/AppApi';
|
|
2
|
+
import { AppData, UserProfile } from '../types';
|
|
3
|
+
import { User } from '../types/AppData';
|
|
4
|
+
export declare class AppStore {
|
|
5
|
+
appData: AppData;
|
|
6
|
+
bullseyeUrl: string;
|
|
7
|
+
user: User;
|
|
8
|
+
api: AppApi;
|
|
9
|
+
isInitialized: boolean;
|
|
10
|
+
constructor();
|
|
11
|
+
initialize: (endpoint: string, token: string) => Promise<void>;
|
|
12
|
+
loadAppData: () => Promise<void>;
|
|
13
|
+
updateUserProfile: (userProfile: UserProfile) => Promise<void>;
|
|
14
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AccountStore } from '../../accounts';
|
|
2
|
+
import { AppStore } from './AppStore';
|
|
2
3
|
import { BeatStore } from '../../insights/store/BeatStore';
|
|
3
4
|
import { BudgetsStore } from '../../budgets/store/BudgetsStore';
|
|
4
5
|
import { CashflowStore } from '../../cashflow';
|
|
@@ -7,6 +8,7 @@ import { ConnectStore } from './ConnectStore';
|
|
|
7
8
|
import { DebtsStore } from '../../debts/index';
|
|
8
9
|
import { GlobalUiStore } from './GlobalUiStore';
|
|
9
10
|
import { GoalStore } from '../../goals';
|
|
11
|
+
import { MarketingStore } from './MarketingStore';
|
|
10
12
|
import { MerchantStore } from '../../merchants';
|
|
11
13
|
import { NetWorthStore } from '../../networth';
|
|
12
14
|
import { NotificationStore } from '../../notifications';
|
|
@@ -16,6 +18,7 @@ import { UserStore } from './UserStore';
|
|
|
16
18
|
import { GlobalCopyStore } from './GlobalCopyStore';
|
|
17
19
|
export declare class GlobalStore {
|
|
18
20
|
accountStore: AccountStore;
|
|
21
|
+
appStore: AppStore;
|
|
19
22
|
beatStore: BeatStore;
|
|
20
23
|
budgetsStore: BudgetsStore;
|
|
21
24
|
cashflowStore: CashflowStore;
|
|
@@ -24,6 +27,7 @@ export declare class GlobalStore {
|
|
|
24
27
|
copyStore: GlobalCopyStore;
|
|
25
28
|
goalStore: GoalStore;
|
|
26
29
|
debtsStore: DebtsStore;
|
|
30
|
+
marketingStore: MarketingStore;
|
|
27
31
|
merchantStore: MerchantStore;
|
|
28
32
|
netWorthStore: NetWorthStore;
|
|
29
33
|
notificationStore: NotificationStore;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MarketingApi } from '../api/MarketingApi';
|
|
2
|
+
import { AccountBannerType } from '../types';
|
|
3
|
+
export declare class MarketingStore {
|
|
4
|
+
accountBanner: AccountBannerType;
|
|
5
|
+
api: MarketingApi;
|
|
6
|
+
isInitialized: boolean;
|
|
7
|
+
constructor();
|
|
8
|
+
loadAccountBanner: (bullseyeUrl: string, userGuid: string) => Promise<void>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface AccountBannerType {
|
|
2
|
+
"guid": string;
|
|
3
|
+
"dashboard_position": null;
|
|
4
|
+
"dismiss_button_action_uri": null;
|
|
5
|
+
"image_url": string;
|
|
6
|
+
"is_static": false;
|
|
7
|
+
"left_button_action_type": null;
|
|
8
|
+
"left_button_action_uri": null;
|
|
9
|
+
"left_button_image_url": null;
|
|
10
|
+
"left_button_success_image_url": null;
|
|
11
|
+
"redirect_url": string;
|
|
12
|
+
"right_button_action_type": null;
|
|
13
|
+
"right_button_action_uri": null;
|
|
14
|
+
"right_button_image_url": null;
|
|
15
|
+
"right_button_success_image_url": null;
|
|
16
|
+
"viewed_action_uri": null;
|
|
17
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
export interface AppData {
|
|
2
|
+
client: {
|
|
3
|
+
guid: string;
|
|
4
|
+
default_institution_guid: string;
|
|
5
|
+
external_guid: string;
|
|
6
|
+
has_atrium_api: boolean;
|
|
7
|
+
has_limited_institutions: boolean;
|
|
8
|
+
name: string;
|
|
9
|
+
oauth_app_name: null;
|
|
10
|
+
urls: null;
|
|
11
|
+
};
|
|
12
|
+
client_color_scheme: {
|
|
13
|
+
primary_100: string | null;
|
|
14
|
+
primary_200: string | null;
|
|
15
|
+
primary_300: string | null;
|
|
16
|
+
primary_400: string | null;
|
|
17
|
+
primary_500: string | null;
|
|
18
|
+
primary_color: string | null;
|
|
19
|
+
secondary_color: string | null;
|
|
20
|
+
widget_brand_color: string | null;
|
|
21
|
+
};
|
|
22
|
+
client_communication_profile: {
|
|
23
|
+
alerts_display_name: null;
|
|
24
|
+
budget_exceeded_notifications_enabled: boolean;
|
|
25
|
+
budget_off_target_notifications_enabled: boolean;
|
|
26
|
+
can_edit_contact_info: boolean;
|
|
27
|
+
debt_payment_reminder_notifications_enabled: boolean;
|
|
28
|
+
device_created_email_enabled: boolean;
|
|
29
|
+
device_deleted_email_enabled: boolean;
|
|
30
|
+
duplicate_payment_notifications_enabled: boolean;
|
|
31
|
+
email_notifications_enabled: boolean;
|
|
32
|
+
goal_progress_notifications_enabled: boolean;
|
|
33
|
+
large_deposit_notifications_enabled: boolean;
|
|
34
|
+
large_expense_notifications_enabled: boolean;
|
|
35
|
+
low_balance_notifications_enabled: boolean;
|
|
36
|
+
offer_notifications_enabled: boolean;
|
|
37
|
+
password_changed_email_enabled: boolean;
|
|
38
|
+
push_notifications_enabled: boolean;
|
|
39
|
+
sms_notifications_enabled: boolean;
|
|
40
|
+
sms_shortcode: string;
|
|
41
|
+
sms_shortcode_privacy_policy_url: string;
|
|
42
|
+
sms_shortcode_terms_of_service_url: string;
|
|
43
|
+
sms_verification_enabled: boolean;
|
|
44
|
+
sms_welcome_enabled: boolean;
|
|
45
|
+
transaction_fee_notifications_enabled: boolean;
|
|
46
|
+
transaction_is_international_notifications_enabled: boolean;
|
|
47
|
+
user_summary_notifications_enabled: boolean;
|
|
48
|
+
verification_email_enabled: boolean;
|
|
49
|
+
welcome_email_enabled: boolean;
|
|
50
|
+
};
|
|
51
|
+
client_profile: {
|
|
52
|
+
account_verification_is_enabled: boolean;
|
|
53
|
+
allow_accounts_widget: boolean;
|
|
54
|
+
allow_budgets_widget: boolean;
|
|
55
|
+
allow_cash_flow_widget: boolean;
|
|
56
|
+
allow_debts_widget: boolean;
|
|
57
|
+
allow_goals_widget: boolean;
|
|
58
|
+
allow_investments_widget: boolean;
|
|
59
|
+
allow_linked_account_add: boolean;
|
|
60
|
+
allow_mobile_master_widget: boolean;
|
|
61
|
+
allow_net_worth_widget: boolean;
|
|
62
|
+
allow_notifications_settings_widget: boolean;
|
|
63
|
+
allow_spending_widget: boolean;
|
|
64
|
+
allow_transactions_widget: boolean;
|
|
65
|
+
allow_trends_widget: boolean;
|
|
66
|
+
client_guid: string;
|
|
67
|
+
custom_copy_namespace: string;
|
|
68
|
+
institution_display_name: string;
|
|
69
|
+
is_microdeposits_enabled: boolean;
|
|
70
|
+
is_pfm_feedback_enabled: boolean;
|
|
71
|
+
locale: string;
|
|
72
|
+
mobile_app_android_url: string;
|
|
73
|
+
mobile_app_itunes_url: string;
|
|
74
|
+
privacy_policy_url: null;
|
|
75
|
+
show_bubble_budgets: boolean;
|
|
76
|
+
show_external_link_popup: boolean;
|
|
77
|
+
show_insurance_as_default_top_level_account_type: boolean;
|
|
78
|
+
show_notifications_settings_widget: boolean;
|
|
79
|
+
show_prepaid_as_default_top_level_account_type: boolean;
|
|
80
|
+
tax_statement_is_enabled: boolean;
|
|
81
|
+
use_cases_is_enabled: boolean;
|
|
82
|
+
uses_custom_popular_institution_list: boolean;
|
|
83
|
+
uses_mobile_sign_on_tokens: boolean;
|
|
84
|
+
uses_oauth: boolean;
|
|
85
|
+
default_institution_guid: string;
|
|
86
|
+
};
|
|
87
|
+
user: User;
|
|
88
|
+
user_profile: UserProfile;
|
|
89
|
+
user_communication_profile: {
|
|
90
|
+
client_guid: string;
|
|
91
|
+
guid: string;
|
|
92
|
+
opted_out_of_all_notifications: boolean;
|
|
93
|
+
opted_out_of_email_notifications: boolean;
|
|
94
|
+
opted_out_of_push_notifications: boolean;
|
|
95
|
+
opted_out_of_sms_notifications: boolean;
|
|
96
|
+
status_code: number;
|
|
97
|
+
user_guid: string;
|
|
98
|
+
created_at: number;
|
|
99
|
+
updated_at: number;
|
|
100
|
+
};
|
|
101
|
+
address: {
|
|
102
|
+
bullseye: string;
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
export interface User {
|
|
106
|
+
guid: string;
|
|
107
|
+
birthday: number;
|
|
108
|
+
client_guid: string;
|
|
109
|
+
credit_score: number;
|
|
110
|
+
email: string;
|
|
111
|
+
email_is_verified: boolean;
|
|
112
|
+
external_guid: string;
|
|
113
|
+
first_name: string;
|
|
114
|
+
has_accepted_terms: boolean;
|
|
115
|
+
has_password: boolean;
|
|
116
|
+
has_updated_terms_and_conditions: boolean;
|
|
117
|
+
health_score: number;
|
|
118
|
+
last_name: string;
|
|
119
|
+
metadata: null;
|
|
120
|
+
phone: null;
|
|
121
|
+
phone_is_verified: boolean;
|
|
122
|
+
postal_code: string;
|
|
123
|
+
sex: null;
|
|
124
|
+
uses_single_sign_on: boolean;
|
|
125
|
+
created_at: number;
|
|
126
|
+
}
|
|
127
|
+
interface UserProfile {
|
|
128
|
+
guid: string;
|
|
129
|
+
has_completed_cash_flow_onboarding: boolean;
|
|
130
|
+
has_completed_finstrong_onboarding: boolean;
|
|
131
|
+
has_completed_guide_me_wizard: boolean;
|
|
132
|
+
has_completed_budgets2_onboarding: boolean;
|
|
133
|
+
has_completed_recurring_transactions_manager_onboarding: boolean;
|
|
134
|
+
has_completed_spending_plan_onboarding: boolean;
|
|
135
|
+
has_completed_widgets_wizard: boolean;
|
|
136
|
+
has_closed_accounts_widget_help_state: boolean;
|
|
137
|
+
has_closed_budgets_widget_help_state: boolean;
|
|
138
|
+
has_closed_debts_widget_help_state: boolean;
|
|
139
|
+
has_closed_goals_widget_help_state: boolean;
|
|
140
|
+
has_closed_net_worth_widget_help_state: boolean;
|
|
141
|
+
has_closed_spending_widget_help_state: boolean;
|
|
142
|
+
has_closed_transactions_widget_help_state: boolean;
|
|
143
|
+
has_closed_trends_widget_help_state: boolean;
|
|
144
|
+
uses_detailed_notifications: boolean;
|
|
145
|
+
user_guid: string;
|
|
146
|
+
}
|
|
147
|
+
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export type { Account, DetailedAccount, Member, MonthlyAccountBalance } from './Account';
|
|
2
2
|
export { AccountIcon, AccountIconVariants, AccountSubType, AccountType, AccountTypeName, ConnectionStatus, ConnectionStatusEnums, ErrorStatuses, MfaStatuses, NonConnectedStatuses, ProcessingStatuses, PropertyType, PropertyTypeName, StatusName, } from './Account';
|
|
3
|
+
export type { AccountBannerType } from './AccountBanner';
|
|
3
4
|
export { type Activity, ActivityStatus, ActivityType } from './Activity';
|
|
4
5
|
export type { AnalyticsEvent, AnalyticsPageview, BasicAnalyticsEvent, BasicAnalyticsPageview, AnalyticsSession, AnalyticEventFunction, AnalyticPageviewFunction, } from './Analytics';
|
|
6
|
+
export type { AppData } from './AppData';
|
|
5
7
|
export type { Beat, DataSeries } from './Beat';
|
|
6
8
|
export { UserVerification } from './Beat';
|
|
7
9
|
export type { Budget, BudgetColors, DetailedBudget } from './Budget';
|