@mx-cartographer/experiences 3.8.0-alpha.al7 → 3.8.0-alpha.sms10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/accounts/ConnectMiniWidget.d.ts +2 -2
  3. package/dist/accounts/components/ConnectStatus.d.ts +2 -1
  4. package/dist/accounts/components/ConnectionsDrawer.d.ts +2 -2
  5. package/dist/accounts/components/detailsdrawer/Accounts/AccountConnection.d.ts +4 -2
  6. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsContent.d.ts +4 -2
  7. package/dist/accounts/utils/AccountFields.d.ts +3 -3
  8. package/dist/budgets/components/BubbleBudgets.d.ts +2 -0
  9. package/dist/budgets/components/bubblechart/Bubble.d.ts +10 -0
  10. package/dist/budgets/components/bubblechart/Mercury.d.ts +8 -0
  11. package/dist/budgets/utils/Budget.d.ts +2 -2
  12. package/dist/budgets/utils/buildBubblesSVG.d.ts +23 -3
  13. package/dist/cashflow/components/RemainingCash.d.ts +2 -2
  14. package/dist/common/components/CurrencyInput.d.ts +2 -7
  15. package/dist/common/components/charts/LineChart.d.ts +0 -1
  16. package/dist/common/components/charts/linechart/CustomLegend.d.ts +5 -2
  17. package/dist/common/components/charts/stackedlinechart/CustomAreaTooltip.d.ts +2 -2
  18. package/dist/common/context/hooks.d.ts +0 -1
  19. package/dist/common/context/index.d.ts +1 -1
  20. package/dist/common/stores/GlobalStore.d.ts +0 -2
  21. package/dist/common/types/Analytics.d.ts +23 -9
  22. package/dist/common/types/GlobalCopy.d.ts +7 -1
  23. package/dist/common/types/localization/AccountFilterCopy.d.ts +4 -0
  24. package/dist/common/types/localization/AccountTypeCopy.d.ts +16 -0
  25. package/dist/common/types/localization/AccountsCopy.d.ts +113 -0
  26. package/dist/common/types/localization/BudgetsCopy.d.ts +11 -0
  27. package/dist/common/types/localization/CashflowCopy.d.ts +7 -1
  28. package/dist/common/types/localization/CommonCopy.d.ts +9 -1
  29. package/dist/common/types/localization/ConnectCopy.d.ts +74 -0
  30. package/dist/common/types/localization/DateRangePickerCopy.d.ts +5 -0
  31. package/dist/common/types/localization/NotificationsCopy.d.ts +7 -0
  32. package/dist/common/types/localization/RecurringCopy.d.ts +76 -0
  33. package/dist/common/types/localization/SpendingCopy.d.ts +16 -0
  34. package/dist/common/types/localization/TransactionsCopy.d.ts +3 -0
  35. package/dist/common/types/localization/TrendsCopy.d.ts +6 -1
  36. package/dist/common/types/localization/index.d.ts +7 -0
  37. package/dist/common/utils/Fetch.d.ts +1 -2
  38. package/dist/index.d.ts +0 -1
  39. package/dist/index.es.js +4753 -4991
  40. package/dist/index.es.js.map +1 -1
  41. package/dist/microinsights/analytics.d.ts +2 -2
  42. package/dist/microinsights/components/insightsmicrowidget/InsightsMicroWidget.d.ts +1 -0
  43. package/dist/microinsights/stores/AppStore.d.ts +1 -1
  44. package/dist/microinsights/stores/InsightsMicroWidgetStore.d.ts +9 -3
  45. package/dist/notifications/components/NotificationBadge.d.ts +2 -2
  46. package/dist/notifications/components/NotificationList.d.ts +2 -2
  47. package/dist/recurringactivity/components/ActivityList.d.ts +2 -2
  48. package/dist/recurringactivity/components/ActivityRow.d.ts +2 -2
  49. package/dist/recurringactivity/components/ActivityStatus.d.ts +2 -2
  50. package/dist/recurringactivity/components/activitycalendar/Legend.d.ts +4 -2
  51. package/dist/recurringactivity/components/shared/ActivitySettings.d.ts +4 -2
  52. package/dist/recurringactivity/components/shared/activitysettings/AddActivityDetails.d.ts +2 -2
  53. package/dist/recurringactivity/util/getRecurrence.d.ts +9 -0
  54. package/dist/recurringactivity/util/getStatus.d.ts +3 -0
  55. package/dist/spending/components/SpendingDonut.d.ts +2 -2
  56. package/dist/spending/components/SpendingList.d.ts +2 -2
  57. package/dist/transactions/components/shared/transactiondetails/Description.d.ts +2 -2
  58. package/dist/transactions/components/shared/transactiondetails/FlagTransaction.d.ts +2 -2
  59. package/dist/transactions/components/shared/transactiondetails/actions/DeleteAction.d.ts +2 -2
  60. package/dist/transactions/components/shared/transactiondetails/actions/DeleteLogoAction.d.ts +2 -2
  61. package/dist/transactions/components/shared/transactiondetails/actions/HideAction.d.ts +2 -2
  62. package/dist/transactions/components/shared/transactiondetails/actions/MemoAction.d.ts +2 -2
  63. package/dist/transactions/components/shared/transactiondetails/actions/SplitAction.d.ts +2 -2
  64. package/dist/transactions/components/shared/transactiontable/cells/CategoryCell.d.ts +5 -3
  65. package/dist/transactions/components/shared/transactiontable/cells/FlagCell.d.ts +5 -3
  66. package/dist/transactions/components/splitmanager/SplitManager.d.ts +2 -2
  67. package/dist/transactions/components/splitmanager/SplitRow.d.ts +2 -2
  68. package/dist/transactions/components/tagmanager/Header.d.ts +4 -2
  69. package/dist/transactions/components/tagmanager/SearchBox.d.ts +2 -2
  70. package/dist/transactions/components/tagmanager/TagRow.d.ts +2 -2
  71. package/dist/transactions/components/transactionwidget/actions/EditCategoryAction.d.ts +2 -2
  72. package/package.json +2 -2
  73. package/dist/networth/NetWorthWidget.d.ts +0 -5
  74. package/dist/networth/api/NetWorthApi.d.ts +0 -9
  75. package/dist/networth/components/NetWorthChart.d.ts +0 -7
  76. package/dist/networth/components/NetWorthList.d.ts +0 -7
  77. package/dist/networth/components/NetWorthRow.d.ts +0 -6
  78. package/dist/networth/index.d.ts +0 -3
  79. package/dist/networth/stores/NetWorthStore.d.ts +0 -15
  80. package/dist/networth/types/NetWorth.d.ts +0 -37
  81. package/dist/networth/utils/NetWorth.d.ts +0 -3
@@ -1,5 +1,5 @@
1
1
  import { analyticsSession } from '../common';
2
2
 
3
3
  export type AnalyticSession = Awaited<ReturnType<typeof analyticsSession>>;
4
- export declare const onAnalyticEvent: (event: string, session: AnalyticSession | null) => Promise<any>;
5
- export declare const onAnalyticPageView: (page: string, session: AnalyticSession | null) => Promise<any>;
4
+ export declare const onAnalyticEvent: (event: string, session: AnalyticSession) => Promise<any>;
5
+ export declare const onAnalyticPageView: (page: string, session: AnalyticSession) => Promise<any>;
@@ -6,6 +6,7 @@ export interface InsightsMicroWidgetProps extends MicroWidgetProps {
6
6
  areBeatsLoading: boolean;
7
7
  beats: Beat[];
8
8
  endpoint: string;
9
+ logOutUser: () => void;
9
10
  onEvent?: (event?: string | undefined) => void;
10
11
  onPageview?: (event?: string | undefined) => void;
11
12
  token: string;
@@ -10,5 +10,5 @@ export declare class AppStore {
10
10
  token: string;
11
11
  isInitialized: boolean;
12
12
  constructor();
13
- initialize: (endpoint: string, token: string) => Promise<void>;
13
+ initialize: (endpoint: string, token: string, logOutUser: () => void) => Promise<void>;
14
14
  }
@@ -1,10 +1,16 @@
1
+ import { AnalyticSession } from '../analytics';
1
2
  import { BeatApi } from '../../common/api/BeatApi';
2
3
  import { Beat } from '../../common';
3
4
 
5
+ export interface ErrPromise<TSuccess, TError = unknown> {
6
+ then<TResult1 = TSuccess, TResult2 = never>(onfulfilled?: ((value: TSuccess) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: TError) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
7
+ catch<TResult = never>(onrejected?: ((reason: TError) => TResult | PromiseLike<TResult>) | undefined | null): Promise<TSuccess | TResult>;
8
+ }
4
9
  export declare class InsightsMicroWidgetStore {
5
- onAnalyticEvent: (event: string, session: import('../analytics').AnalyticSession | null) => Promise<any>;
6
- onAnalyticPageView: (page: string, session: import('../analytics').AnalyticSession | null) => Promise<any>;
10
+ onAnalyticEvent: (event: string, session: AnalyticSession) => ErrPromise<string, AnalyticSession>;
11
+ onAnalyticPageView: (event: string, session: AnalyticSession) => ErrPromise<string, AnalyticSession>;
7
12
  beatApi: BeatApi;
8
- initialize: (endpoint: string, token: string) => Promise<void>;
13
+ constructor();
14
+ initialize: (endpoint: string, token: string, logOutUser: () => void) => Promise<void>;
9
15
  updateBeat: (beat: Beat) => Promise<void>;
10
16
  }
@@ -4,5 +4,5 @@ import { Notification } from '../../common/types';
4
4
  interface NotificationBadgeProps {
5
5
  notification: Notification;
6
6
  }
7
- declare const NotificationBadge: React.FC<NotificationBadgeProps>;
8
- export default NotificationBadge;
7
+ declare const _default: React.FunctionComponent<NotificationBadgeProps>;
8
+ export default _default;
@@ -4,5 +4,5 @@ import { Notification } from '../../common/types';
4
4
  export interface NotificationListProps {
5
5
  onClick?: (notification: Notification) => void;
6
6
  }
7
- declare const NotificationList: React.FC<NotificationListProps>;
8
- export default NotificationList;
7
+ declare const _default: React.FunctionComponent<NotificationListProps>;
8
+ export default _default;
@@ -10,5 +10,5 @@ interface ActivityListProps {
10
10
  sx?: SxProps;
11
11
  title?: string;
12
12
  }
13
- declare const ActivityList: React.FC<ActivityListProps>;
14
- export default ActivityList;
13
+ declare const _default: React.FunctionComponent<ActivityListProps>;
14
+ export default _default;
@@ -7,5 +7,5 @@ interface ActivityRowProps {
7
7
  onActivityClick?: (activity: Activity) => void;
8
8
  showOrdinal?: boolean;
9
9
  }
10
- declare const ActivityRow: React.FC<ActivityRowProps>;
11
- export default ActivityRow;
10
+ declare const _default: React.FunctionComponent<ActivityRowProps>;
11
+ export default _default;
@@ -8,5 +8,5 @@ interface ActivityStatusProps {
8
8
  total: number;
9
9
  onNewClick?: () => void;
10
10
  }
11
- declare const ActivityStatus: React.FC<ActivityStatusProps>;
12
- export default ActivityStatus;
11
+ declare const _default: React.FunctionComponent<ActivityStatusProps>;
12
+ export default _default;
@@ -1,2 +1,4 @@
1
- declare const Legend: () => import("react/jsx-runtime").JSX.Element;
2
- export default Legend;
1
+ declare const _default: (() => import("react/jsx-runtime").JSX.Element) & {
2
+ displayName: string;
3
+ };
4
+ export default _default;
@@ -1,2 +1,4 @@
1
- declare const ActivitySettings: () => import("react/jsx-runtime").JSX.Element;
2
- export default ActivitySettings;
1
+ declare const _default: (() => import("react/jsx-runtime").JSX.Element) & {
2
+ displayName: string;
3
+ };
4
+ export default _default;
@@ -10,5 +10,5 @@ interface ActivityDetailsProps {
10
10
  onNextDateChange: (date: Date | null) => void;
11
11
  transaction: Transaction;
12
12
  }
13
- declare const AddActivityDetails: React.FC<ActivityDetailsProps>;
14
- export default AddActivityDetails;
13
+ declare const _default: React.FunctionComponent<ActivityDetailsProps>;
14
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { RecurrenceTypes, RecurringCopy } from '../../common';
2
+
3
+ interface GetRecurrenceArgs {
4
+ copy: RecurringCopy;
5
+ date: Date | null;
6
+ type: RecurrenceTypes;
7
+ }
8
+ export declare const getRecurrence: ({ copy, date, type }: GetRecurrenceArgs) => string;
9
+ export {};
@@ -0,0 +1,3 @@
1
+ import { Activity, RecurringCopy } from '../../common';
2
+
3
+ export declare const getStatus: (activity: Activity, copy: RecurringCopy) => string;
@@ -11,5 +11,5 @@ interface SpendingDonutProps {
11
11
  totalLabel: string;
12
12
  variant?: 'mini' | 'full';
13
13
  }
14
- declare const SpendingDonut: React.FC<SpendingDonutProps>;
15
- export default SpendingDonut;
14
+ declare const _default: React.FunctionComponent<SpendingDonutProps>;
15
+ export default _default;
@@ -7,5 +7,5 @@ interface SpendingListProps {
7
7
  selectedId?: string;
8
8
  title: string;
9
9
  }
10
- declare const SpendingList: React.FC<SpendingListProps>;
11
- export default SpendingList;
10
+ declare const _default: React.FunctionComponent<SpendingListProps>;
11
+ export default _default;
@@ -4,5 +4,5 @@ import { Transaction } from '../../../../common';
4
4
  interface DescriptionProps {
5
5
  transaction: Transaction;
6
6
  }
7
- declare const Description: React.FC<DescriptionProps>;
8
- export default Description;
7
+ declare const _default: React.FunctionComponent<DescriptionProps>;
8
+ export default _default;
@@ -4,5 +4,5 @@ import { Transaction } from '../../../../common';
4
4
  interface FlagTransactionProps {
5
5
  transaction: Transaction;
6
6
  }
7
- declare const FlagTransaction: React.FC<FlagTransactionProps>;
8
- export default FlagTransaction;
7
+ declare const _default: React.FunctionComponent<FlagTransactionProps>;
8
+ export default _default;
@@ -4,5 +4,5 @@ import { Transaction } from '../../../../../common';
4
4
  interface DeleteActionProps {
5
5
  transaction: Transaction;
6
6
  }
7
- declare const DeleteAction: React.FC<DeleteActionProps>;
8
- export default DeleteAction;
7
+ declare const _default: React.FunctionComponent<DeleteActionProps>;
8
+ export default _default;
@@ -4,5 +4,5 @@ import { Transaction } from '../../../../../common';
4
4
  interface DeleteLogoActionProps {
5
5
  transaction: Transaction;
6
6
  }
7
- declare const DeleteLogoAction: React.FC<DeleteLogoActionProps>;
8
- export default DeleteLogoAction;
7
+ declare const _default: React.FunctionComponent<DeleteLogoActionProps>;
8
+ export default _default;
@@ -4,5 +4,5 @@ import { Transaction } from '../../../../../common';
4
4
  interface HideActionProps {
5
5
  transaction: Transaction;
6
6
  }
7
- declare const HideAction: React.FC<HideActionProps>;
8
- export default HideAction;
7
+ declare const _default: React.FunctionComponent<HideActionProps>;
8
+ export default _default;
@@ -4,5 +4,5 @@ import { Transaction } from '../../../../../common';
4
4
  interface MemoActionProps {
5
5
  transaction: Transaction;
6
6
  }
7
- declare const MemoAction: React.FC<MemoActionProps>;
8
- export default MemoAction;
7
+ declare const _default: React.FunctionComponent<MemoActionProps>;
8
+ export default _default;
@@ -4,5 +4,5 @@ import { Transaction } from '../../../../../common';
4
4
  interface SplitActionProps {
5
5
  transaction: Transaction;
6
6
  }
7
- declare const SplitAction: React.FC<SplitActionProps>;
8
- export default SplitAction;
7
+ declare const _default: React.FunctionComponent<SplitActionProps>;
8
+ export default _default;
@@ -1,4 +1,6 @@
1
- import { GridCellParams } from '@mui/x-data-grid';
1
+ import { GridCellParams } from '@mui/x-data-grid-pro';
2
2
 
3
- declare const CategoryCell: (params: GridCellParams) => import("react/jsx-runtime").JSX.Element;
4
- export default CategoryCell;
3
+ declare const _default: ((params: GridCellParams) => import("react/jsx-runtime").JSX.Element) & {
4
+ displayName: string;
5
+ };
6
+ export default _default;
@@ -1,4 +1,6 @@
1
- import { GridCellParams } from '@mui/x-data-grid';
1
+ import { GridRenderCellParams } from '@mui/x-data-grid-pro';
2
2
 
3
- declare const FlagCell: (params: GridCellParams) => import("react/jsx-runtime").JSX.Element;
4
- export default FlagCell;
3
+ declare const _default: ((params: GridRenderCellParams) => import("react/jsx-runtime").JSX.Element) & {
4
+ displayName: string;
5
+ };
6
+ export default _default;
@@ -9,5 +9,5 @@ interface SplitManagerProps {
9
9
  splits: Transaction[];
10
10
  transaction: Transaction;
11
11
  }
12
- declare const SplitManager: React.FC<SplitManagerProps>;
13
- export default SplitManager;
12
+ declare const _default: React.FunctionComponent<SplitManagerProps>;
13
+ export default _default;
@@ -8,5 +8,5 @@ interface SplitRowProps {
8
8
  onUpdateAmount: (index: number, amount: number) => void;
9
9
  split: Transaction;
10
10
  }
11
- declare const SplitRow: React.FC<SplitRowProps>;
12
- export default SplitRow;
11
+ declare const _default: React.FunctionComponent<SplitRowProps>;
12
+ export default _default;
@@ -1,2 +1,4 @@
1
- declare const Header: () => import("react/jsx-runtime").JSX.Element;
2
- export default Header;
1
+ declare const _default: (() => import("react/jsx-runtime").JSX.Element) & {
2
+ displayName: string;
3
+ };
4
+ export default _default;
@@ -4,5 +4,5 @@ interface SearchBoxProps {
4
4
  onSearchValueChanged: (value: string) => void;
5
5
  searchValue: string;
6
6
  }
7
- declare const SearchBox: React.FC<SearchBoxProps>;
8
- export default SearchBox;
7
+ declare const _default: React.FunctionComponent<SearchBoxProps>;
8
+ export default _default;
@@ -6,5 +6,5 @@ interface TagRowProps {
6
6
  selectedTags: string[];
7
7
  onTagChecked: (guid: string) => void;
8
8
  }
9
- declare const TagRow: React.FC<TagRowProps>;
10
- export default TagRow;
9
+ declare const _default: React.FunctionComponent<TagRowProps>;
10
+ export default _default;
@@ -5,5 +5,5 @@ interface EditCategoryActionProps {
5
5
  onClose: () => void;
6
6
  transaction: Transaction;
7
7
  }
8
- declare const EditCategoryAction: React.FC<EditCategoryActionProps>;
9
- export default EditCategoryAction;
8
+ declare const _default: React.FunctionComponent<EditCategoryActionProps>;
9
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "3.8.0-alpha.al7",
3
+ "version": "3.8.0-alpha.sms10",
4
4
  "description": "Library containing experience widgets",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",
@@ -27,7 +27,7 @@
27
27
  "@emotion/styled": "^11.11.0",
28
28
  "@honeybadger-io/js": "^6.8.3",
29
29
  "@honeybadger-io/react": "^6.1.19",
30
- "@kyper/mui": "^4.0.0",
30
+ "@kyper/mui": "^4.0.4",
31
31
  "@mui/icons-material": "^5.16.0",
32
32
  "@mui/lab": "^5.0.0-alpha.172",
33
33
  "@mui/material": "^5.16.0",
@@ -1,5 +0,0 @@
1
- import { default as React } from 'react';
2
- import { WidgetProps } from '../common';
3
-
4
- declare const _default: React.FunctionComponent<WidgetProps>;
5
- export default _default;
@@ -1,9 +0,0 @@
1
- import { Fetch } from '../../common';
2
-
3
- export declare class NetWorthApi {
4
- fetchInstance: Fetch;
5
- constructor(endpoint: string, token: string);
6
- getAccounts: () => Promise<any>;
7
- getMembers: () => Promise<any>;
8
- getMonthlyAccountBalances: (guid: string) => Promise<any>;
9
- }
@@ -1,7 +0,0 @@
1
- import { xyData } from '../types/NetWorth';
2
-
3
- interface NetWorthChartProps {
4
- chartData: xyData[];
5
- }
6
- declare const _default: import('react').FunctionComponent<NetWorthChartProps>;
7
- export default _default;
@@ -1,7 +0,0 @@
1
- import { NetWorth } from '../types/NetWorth';
2
-
3
- interface NetWorthListProps {
4
- netWorthList: NetWorth[];
5
- }
6
- declare const _default: import('react').FunctionComponent<NetWorthListProps>;
7
- export default _default;
@@ -1,6 +0,0 @@
1
- interface NetWorthRowProps {
2
- month: string;
3
- amount: number;
4
- }
5
- declare const _default: import('react').FunctionComponent<NetWorthRowProps>;
6
- export default _default;
@@ -1,3 +0,0 @@
1
- export { default as NetWorthChart } from './components/NetWorthChart';
2
- export type { NetWorth, NetWorthData, MonthlyAccountBalance, xyData } from './types/NetWorth';
3
- export { default as NetWorthWidget } from './NetWorthWidget';
@@ -1,15 +0,0 @@
1
- import { GlobalStore } from '../../common';
2
- import { NetWorthApi } from '../api/NetWorthApi';
3
- import { MonthlyAccountBalance, NetWorth, NetWorthData, xyData } from '../types/NetWorth';
4
-
5
- export declare class NetWorthStore {
6
- api: NetWorthApi;
7
- globalStore: GlobalStore;
8
- netWorthData: NetWorthData;
9
- netWorthChartData: xyData[];
10
- netWorthMonthlyList: NetWorth[];
11
- constructor(globalStore: GlobalStore);
12
- initialize: (endpoint: string, token: string) => void;
13
- loadNetWorthData: () => Promise<void>;
14
- _flattenBalances: (balances: MonthlyAccountBalance[], balance: MonthlyAccountBalance) => MonthlyAccountBalance[];
15
- }
@@ -1,37 +0,0 @@
1
- import { Account } from '../../common';
2
-
3
- export type MonthlyAccountBalance = {
4
- account_guid: string;
5
- balance: number;
6
- credit_transaction_total: number;
7
- debit_transaction_total: number;
8
- id: string;
9
- month: number;
10
- transaction_total: number;
11
- user_guid: string;
12
- year: number;
13
- year_month: number;
14
- };
15
- type MonthlyAccountBalances = {
16
- change: number;
17
- guid: string;
18
- name: string;
19
- type: number;
20
- value: number;
21
- };
22
- export type NetWorth = {
23
- id: number;
24
- accounts: MonthlyAccountBalances[];
25
- x: number;
26
- y: number;
27
- change: number;
28
- };
29
- export type xyData = {
30
- x: string;
31
- y: number;
32
- };
33
- export type NetWorthData = {
34
- accounts: Account[];
35
- monthlyAccountBalances: MonthlyAccountBalance[];
36
- };
37
- export {};
@@ -1,3 +0,0 @@
1
- import { Account, Member } from '../../common/types';
2
-
3
- export declare const filterAccounts: (members: Member[], accounts: Account[]) => Account[];