@mx-cartographer/experiences 6.1.0-alpha.al0 → 6.1.0-alpha.al10

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 (46) hide show
  1. package/CHANGELOG.md +30 -1
  2. package/dist/analytics/SurveyMiniWidget.d.ts +9 -0
  3. package/dist/budgets/api/BudgetsApi.d.ts +0 -1
  4. package/dist/budgets/components/BubbleBudgets.d.ts +1 -0
  5. package/dist/budgets/components/BudgetsEmptyState.d.ts +7 -0
  6. package/dist/budgets/store/BudgetsStore.d.ts +4 -1
  7. package/dist/common/components/EmptyState.d.ts +6 -2
  8. package/dist/common/components/MiniWidgetContainer.d.ts +2 -0
  9. package/dist/common/constants/Analytics.d.ts +1 -0
  10. package/dist/common/constants/ApiEndpoints.d.ts +1 -0
  11. package/dist/common/context/hooks.d.ts +1 -0
  12. package/dist/common/context/index.d.ts +1 -1
  13. package/dist/common/stores/GlobalStore.d.ts +2 -0
  14. package/dist/common/types/Analytics.d.ts +2 -16
  15. package/dist/common/types/AppData.d.ts +2 -0
  16. package/dist/common/types/GlobalCopy.d.ts +2 -1
  17. package/dist/common/types/Holding.d.ts +39 -0
  18. package/dist/common/types/index.d.ts +1 -0
  19. package/dist/common/types/localization/BudgetsCopy.d.ts +13 -0
  20. package/dist/common/types/localization/InvestmentsCopy.d.ts +6 -0
  21. package/dist/common/types/localization/index.d.ts +1 -0
  22. package/dist/dashboard/Dashboard.d.ts +0 -2
  23. package/dist/index.d.ts +2 -0
  24. package/dist/index.es.js +4369 -4025
  25. package/dist/index.es.js.map +1 -1
  26. package/dist/insights/store/BeatStore.d.ts +1 -1
  27. package/dist/investments/InvestmentsWidget.d.ts +4 -0
  28. package/dist/investments/api/HoldingApi.d.ts +6 -0
  29. package/dist/investments/components/Allocation.d.ts +2 -0
  30. package/dist/investments/components/Analysis.d.ts +2 -0
  31. package/dist/investments/components/Overview.d.ts +2 -0
  32. package/dist/investments/components/TabTitle.d.ts +5 -0
  33. package/dist/investments/index.d.ts +1 -0
  34. package/dist/investments/stores/HoldingStore.d.ts +10 -0
  35. package/dist/microinsights/components/beatCard/BeatCard.d.ts +2 -2
  36. package/dist/microinsights/components/beaticons/BeatCategoryIcon.d.ts +2 -2
  37. package/dist/microinsights/components/beaticons/BeatMerchantLogo.d.ts +2 -2
  38. package/dist/microinsights/components/beaticons/MonthlySpendComparisonIcon.d.ts +2 -2
  39. package/dist/microinsights/interfaces.d.ts +39 -0
  40. package/dist/microinsights/utils/beatUtils.d.ts +2 -1
  41. package/package.json +1 -1
  42. package/dist/analytics/components/SurveyMiniWidget.d.ts +0 -4
  43. package/dist/analytics/components/SurveyModal.d.ts +0 -11
  44. package/dist/microinsights/constants/Insights.d.ts +0 -3
  45. package/dist/microinsights/constants/OnClickEvents.d.ts +0 -3
  46. package/dist/microinsights/types/BeatUIComponent.d.ts +0 -38
package/CHANGELOG.md CHANGED
@@ -1,4 +1,33 @@
1
- ## [6.0.11] - 05-65-2025
1
+ ## [6.0.18] - 05-12-2025
2
+
3
+ - **ADDED** - EmptyState for Budgets Component.
4
+
5
+ ## [6.0.17] - 05-12-2025
6
+
7
+ - **ADDED** - Holdings Api Integration
8
+ - **ADDED** - Holdings GlobalStore Implementation
9
+
10
+ ## [6.0.16] - 05-09-2025
11
+
12
+ - **ADDED** - Initial Investments layout
13
+
14
+ ## [6.0.15] - 05-08-2025
15
+
16
+ - **UPDATED** - `Dashboard` to use updated MXUI breakpoints
17
+
18
+ ## [6.0.14] - 05-08-2025
19
+
20
+ - **UPDATED** - `useScreenSize` hook to use updated MXUI breakpoints
21
+
22
+ ## [6.0.13] - 05-07-2025
23
+
24
+ - **UPDATED** - InsightsMicroWidget Messaging Insights posthog events
25
+
26
+ ## [6.0.12] - 05-07-2025
27
+
28
+ - **UPDATED** - CSS Bug fixes for Goals and Networth empty state scenario
29
+
30
+ ## [6.0.11] - 05-06-2025
2
31
 
3
32
  - **UPDATED** - Remove barrel imports from InsightsMicroWidget files
4
33
 
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { SurveyQuestion } from '../common/types/Analytics';
3
+ interface SurveyProps {
4
+ onDismiss: () => void;
5
+ onSubmit: () => void;
6
+ surveyQuestions: SurveyQuestion[];
7
+ }
8
+ declare const _default: React.FunctionComponent<SurveyProps>;
9
+ export default _default;
@@ -4,7 +4,6 @@ export declare class BudgetsApi {
4
4
  constructor(endpoint: string, token: string);
5
5
  addBudget: (category: Category, amount: number, parentGuid?: string | null) => Promise<any>;
6
6
  deleteBudget: (guid: string) => Promise<any>;
7
- generateBudgets: () => Promise<any>;
8
7
  getBudgets: () => Promise<any>;
9
8
  updateBudget: (budget: Budget) => Promise<any>;
10
9
  }
@@ -1,5 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  interface BubbleBudgetsProps {
3
+ createBudgetOnClick?: () => void;
3
4
  height: number;
4
5
  isDraggable?: boolean;
5
6
  shouldShowZeroState: boolean;
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ interface BudgetsEmptyStateProps {
3
+ onConnectAccountsClick: () => void;
4
+ createBudgetOnClick: () => void;
5
+ }
6
+ export declare const BudgetsEmptyState: React.FC<BudgetsEmptyStateProps>;
7
+ export {};
@@ -28,6 +28,9 @@ export declare class BudgetsStore {
28
28
  * Recalculate budget by using the average amount from top-level categories
29
29
  * @param categories Detailed categories
30
30
  */
31
- recalculateBudgets: (categories: DetailedCategory[]) => Promise<void>;
31
+ recalculateBudgets: (categories: DetailedCategory[]) => Promise<{
32
+ data: Budget[];
33
+ isSuccess: boolean;
34
+ }>;
32
35
  updateBudget: (budget: Budget) => Promise<void>;
33
36
  }
@@ -1,10 +1,14 @@
1
1
  import { default as React } from 'react';
2
+ import { SxProps } from '@mui/material/styles';
2
3
  interface EmptyWidgetProps {
3
- buttonText: string;
4
+ iconColor?: string;
4
5
  header: string;
5
6
  icon: string;
6
- onClick: () => void;
7
+ onClick: (buttonType: string) => void;
8
+ primaryButton: string;
9
+ secondaryButton?: string;
7
10
  subText: string;
11
+ sx?: SxProps;
8
12
  }
9
13
  export declare const EmptyState: React.FC<EmptyWidgetProps>;
10
14
  export {};
@@ -2,8 +2,10 @@ import { default as React } from 'react';
2
2
  import { SxProps } from '@mui/material/styles';
3
3
  interface CardContainerProps {
4
4
  className?: string;
5
+ onClose?: () => void;
5
6
  onPrimaryCtaClick?: () => void;
6
7
  primaryCtaLabel?: string;
8
+ showClose?: boolean;
7
9
  subTitle?: string;
8
10
  sx?: SxProps;
9
11
  title?: string;
@@ -34,6 +34,7 @@ export declare const ANALYTICS_EVENTS: {
34
34
  GOALS_CLICK_ADD: string;
35
35
  GOALS_CLICK_FILTER: string;
36
36
  GOALS_VIEW: string;
37
+ INVESTMENTS: string;
37
38
  NET_WORTH_VIEW: string;
38
39
  NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES: string;
39
40
  NET_WORTH_WIDGET_CLICK_FILTER: string;
@@ -14,6 +14,7 @@ export declare const ApiEndpoints: {
14
14
  DEVICES: string;
15
15
  EMAIL_VERIFICATIONS: string;
16
16
  GOALS: string;
17
+ HOLDINGS: string;
17
18
  INSTITUTIONS: string;
18
19
  LOCALIZED_COPY: string;
19
20
  LOCALIZED_CONTENT: string;
@@ -11,6 +11,7 @@ export declare const useGlobalUiStore: () => import('../stores/GlobalUiStore').G
11
11
  export declare const useGlobalCopyStore: () => import('..').GlobalCopy;
12
12
  export declare const useGoalStore: () => import('../..').GoalStore;
13
13
  export declare const useHelpStore: () => import('../../help/store/HelpStore').HelpStore;
14
+ export declare const useHoldingStore: () => import('../../investments/stores/HoldingStore').HoldingStore;
14
15
  export declare const useMerchantStore: () => import('../..').MerchantStore;
15
16
  export declare const useNetWorthStore: () => import('../..').NetWorthStore;
16
17
  export declare const useNotificationStore: () => import('../..').NotificationStore;
@@ -1,3 +1,3 @@
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';
1
+ export { useAccountStore, useAppConfig, useBudgetsStore, useCashflowStore, useCategoryStore, useDebtStore, useEvent, useGlobalStore, useGlobalUiStore, useGlobalCopyStore, useGoalStore, useHelpStore, useHoldingStore, 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';
@@ -6,6 +6,7 @@ import { CategoryStore } from '../../categories';
6
6
  import { DebtsStore } from '../../debts';
7
7
  import { GoalStore } from '../../goals';
8
8
  import { HelpStore } from '../../help/store/HelpStore';
9
+ import { HoldingStore } from '../../investments/stores/HoldingStore';
9
10
  import { MerchantStore } from '../../merchants';
10
11
  import { NetWorthStore } from '../../networth';
11
12
  import { NotificationStore } from '../../notifications';
@@ -33,6 +34,7 @@ export declare class GlobalStore {
33
34
  debtsStore: DebtsStore;
34
35
  goalStore: GoalStore;
35
36
  helpStore: HelpStore;
37
+ holdingStore: HoldingStore;
36
38
  merchantStore: MerchantStore;
37
39
  netWorthStore: NetWorthStore;
38
40
  notificationStore: NotificationStore;
@@ -1,4 +1,5 @@
1
1
  import { analyticsSession } from '../utils/Analytics';
2
+ import { BasicSurveyQuestion, RatingSurveyQuestion } from 'posthog-js';
2
3
  export type AnalyticsEvent = {
3
4
  analytics_event: {
4
5
  action: string;
@@ -48,19 +49,4 @@ export interface AnalyticsPageviewObjectType extends BasicAnalyticsPageview {
48
49
  path: string;
49
50
  value: string;
50
51
  }
51
- export interface SurveyQuestion {
52
- id: string;
53
- type: string;
54
- scale?: number;
55
- display?: string;
56
- optional?: boolean;
57
- question: string;
58
- buttonText: string;
59
- description: string;
60
- lowerBoundLabel?: string;
61
- upperBoundLabel?: string;
62
- descriptionContentType?: string;
63
- }
64
- export interface SurveyWidgetProps {
65
- surveyQuestions: SurveyQuestion[];
66
- }
52
+ export type SurveyQuestion = RatingSurveyQuestion | BasicSurveyQuestion;
@@ -43,6 +43,8 @@ export interface Config {
43
43
  dashboard_insights_location: number;
44
44
  dashboard_spending_index: number;
45
45
  dashboard_spending_location: number;
46
+ dashboard_survey_index: number;
47
+ dashboard_survey_location: number;
46
48
  dashboard_trends_index: number;
47
49
  dashboard_trends_location: number;
48
50
  display_account_number_in_accounts: boolean;
@@ -1,4 +1,4 @@
1
- import { AccountsCopy, BudgetsCopy, CashflowCopy, CategoryCopy, CommonCopy, ConnectCopy, DebtsCopy, GoalsCopy, HelpCopy, InsightsFeedCopy, MicroInsightsCopy, NetWorthCopy, NotificationsCopy, RecurringCopy, SettingsCopy, SpendingCopy, TransactionsCopy, TrendsCopy } from './localization';
1
+ import { AccountsCopy, BudgetsCopy, CashflowCopy, CategoryCopy, CommonCopy, ConnectCopy, DebtsCopy, GoalsCopy, HelpCopy, InsightsFeedCopy, InvestmentsCopy, MicroInsightsCopy, NetWorthCopy, NotificationsCopy, RecurringCopy, SettingsCopy, SpendingCopy, TransactionsCopy, TrendsCopy } from './localization';
2
2
  export interface GlobalCopy {
3
3
  accounts: AccountsCopy;
4
4
  budgets: BudgetsCopy;
@@ -10,6 +10,7 @@ export interface GlobalCopy {
10
10
  goals: GoalsCopy;
11
11
  help: HelpCopy;
12
12
  insights_feed: InsightsFeedCopy;
13
+ investments: InvestmentsCopy;
13
14
  micro_insights: MicroInsightsCopy;
14
15
  net_worth: NetWorthCopy;
15
16
  notifications: NotificationsCopy;
@@ -0,0 +1,39 @@
1
+ export interface Holding {
2
+ account_guid: string;
3
+ allocations_cash: number;
4
+ allocations_convertible: number;
5
+ allocations_foreign_bond: number;
6
+ allocations_foreign_stock: number;
7
+ allocations_other: number;
8
+ allocations_preferred: number;
9
+ allocations_unknown: number;
10
+ allocations_us_bond: number;
11
+ allocations_us_stock: number;
12
+ calculated_market_value: number | null;
13
+ cost_basis: number;
14
+ cost_basis_set_by: number;
15
+ daily_change: number;
16
+ description: string;
17
+ equity_classification: number;
18
+ fixed_income_classification: number;
19
+ guid: string;
20
+ large_core_weight: number;
21
+ large_growth_weight: number;
22
+ large_value_weight: number;
23
+ market_value: number;
24
+ metadata: number | string;
25
+ mid_core_weight: number;
26
+ mid_growth_weight: number;
27
+ mid_value_weight: number;
28
+ purchase_price: number;
29
+ small_core_weight: number;
30
+ small_growth_weight: number;
31
+ small_value_weight: number;
32
+ shares: number;
33
+ symbol: string;
34
+ unknown_weight: number;
35
+ user_guid: string;
36
+ cost_basis_updated_at: null | number;
37
+ cusip: null | number;
38
+ updated_at: number;
39
+ }
@@ -29,3 +29,4 @@ export { TransactionStatus, TransactionType } from './Transaction';
29
29
  export type { Device, User, UserCommunicationProfile, UserFeature, UserProfile } from './User';
30
30
  export { ScreenSize } from './ScreenSize';
31
31
  export type { MiniWidgetProps, WidgetProps } from './Widgets';
32
+ export type { Holding } from './Holding';
@@ -1,4 +1,5 @@
1
1
  export interface BudgetsCopy {
2
+ add_budgets_button: string;
2
3
  add_description_bottom: string;
3
4
  add_description_top: string;
4
5
  add_label: string;
@@ -12,11 +13,15 @@ export interface BudgetsCopy {
12
13
  alert_budget_updated: string;
13
14
  alert_csv_downloaded: string;
14
15
  alert_recalculated_budgets: string;
16
+ autogenerate_budgets_error_header: string;
17
+ autogenerate_budgets_error_subheader: string;
18
+ autogenerate_budgets_error_primary_button: string;
15
19
  budget_categories_title: string;
16
20
  budget_remaining_left: string;
17
21
  budget_remaining_over: string;
18
22
  budgeted: string;
19
23
  budgets_title: string;
24
+ create_budgets_title: string;
20
25
  delete_description: string;
21
26
  delete_title: string;
22
27
  details_cta: string;
@@ -28,6 +33,9 @@ export interface BudgetsCopy {
28
33
  details_transaction_drawer: string;
29
34
  details_transactions_tab: string;
30
35
  edit_save_button: string;
36
+ empty_state_subheader: string;
37
+ empty_state_primary_button: string;
38
+ empty_state_secondary_button: string;
31
39
  get_started_cta: string;
32
40
  income_description: string;
33
41
  income_title: string;
@@ -45,7 +53,12 @@ export interface BudgetsCopy {
45
53
  remaining: string;
46
54
  spending_description: string;
47
55
  spending_title: string;
56
+ zero_state_budget_list_text: string;
48
57
  zero_state_description: string;
58
+ zero_state_generate_budgets_header: string;
59
+ zero_state_generate_budgets_primary_button: string;
60
+ zero_state_generate_budgets_secondary_button: string;
61
+ zero_state_generate_budgets_subheader: string;
49
62
  zero_state_title: string;
50
63
  zero_state_no_sub_budgets: string;
51
64
  zero_state_no_sub_budgets_description: string;
@@ -0,0 +1,6 @@
1
+ export interface InvestmentsCopy {
2
+ tab_allocation_title: string;
3
+ tab_analysis_title: string;
4
+ tab_overview_title: string;
5
+ title: string;
6
+ }
@@ -12,6 +12,7 @@ export type { DebtsCopy } from './DebtsCopy';
12
12
  export type { GoalsCopy } from './GoalsCopy';
13
13
  export type { HelpCopy } from './HelpCopy';
14
14
  export type { InsightsFeedCopy } from './InsightsFeedCopy';
15
+ export type { InvestmentsCopy } from './InvestmentsCopy';
15
16
  export type { MicroInsightsCopy } from './MicroInsightsCopy';
16
17
  export type { NetWorthCopy } from './NetWorthCopy';
17
18
  export type { NotificationsCopy } from './NotificationsCopy';
@@ -1,10 +1,8 @@
1
1
  import { default as React } from 'react';
2
2
  import { DashboardWidget } from './types/DashboardTypes';
3
- import { SurveyQuestion } from '../common/types/Analytics';
4
3
  export interface DashboardProps {
5
4
  widgets: DashboardWidget[];
6
5
  isLoading: boolean;
7
- surveyQuestions?: SurveyQuestion[];
8
6
  }
9
7
  declare const _default: React.FunctionComponent<DashboardProps>;
10
8
  export default _default;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './accounts';
2
+ export { default as SurveyMiniWidget } from './analytics/SurveyMiniWidget';
2
3
  export * from './budgets';
3
4
  export * from './cashflow';
4
5
  export * from './categories';
@@ -7,6 +8,7 @@ export * from './dashboard';
7
8
  export * from './debts';
8
9
  export * from './goals';
9
10
  export * from './help';
11
+ export * from './investments';
10
12
  export * from './merchants';
11
13
  export * from './microinsights';
12
14
  export * from './networth';