@mx-cartographer/experiences 3.7.0-alpha.sms7 → 3.7.0

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 (70) hide show
  1. package/CHANGELOG.md +22 -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/utils/Budget.d.ts +2 -2
  9. package/dist/cashflow/components/RemainingCash.d.ts +2 -2
  10. package/dist/common/api/AnalyticsApi.d.ts +3 -3
  11. package/dist/common/components/CurrencyInput.d.ts +2 -7
  12. package/dist/common/components/CurrencyText.d.ts +1 -0
  13. package/dist/common/components/charts/StackedLineChart.d.ts +3 -0
  14. package/dist/common/components/charts/linechart/CustomLegend.d.ts +5 -2
  15. package/dist/common/components/charts/stackedlinechart/CustomAreaTooltip.d.ts +2 -2
  16. package/dist/common/constants/Analytics.d.ts +9 -0
  17. package/dist/common/types/Analytics.d.ts +9 -23
  18. package/dist/common/types/GlobalCopy.d.ts +8 -1
  19. package/dist/common/types/localization/AccountFilterCopy.d.ts +4 -0
  20. package/dist/common/types/localization/AccountTypeCopy.d.ts +16 -0
  21. package/dist/common/types/localization/AccountsCopy.d.ts +113 -0
  22. package/dist/common/types/localization/BudgetsCopy.d.ts +11 -0
  23. package/dist/common/types/localization/CashflowCopy.d.ts +7 -1
  24. package/dist/common/types/localization/CategoryCopy.d.ts +1 -0
  25. package/dist/common/types/localization/CommonCopy.d.ts +9 -1
  26. package/dist/common/types/localization/ConnectCopy.d.ts +74 -0
  27. package/dist/common/types/localization/DateRangePickerCopy.d.ts +5 -0
  28. package/dist/common/types/localization/NotificationsCopy.d.ts +7 -0
  29. package/dist/common/types/localization/RecurringCopy.d.ts +76 -0
  30. package/dist/common/types/localization/SpendingCopy.d.ts +16 -0
  31. package/dist/common/types/localization/TransactionsCopy.d.ts +3 -0
  32. package/dist/common/types/localization/TrendsCopy.d.ts +9 -0
  33. package/dist/common/types/localization/index.d.ts +8 -0
  34. package/dist/common/utils/Fetch.d.ts +2 -1
  35. package/dist/index.es.js +5616 -5791
  36. package/dist/index.es.js.map +1 -1
  37. package/dist/microinsights/analytics.d.ts +2 -2
  38. package/dist/microinsights/components/insightsmicrowidget/InsightsMicroWidget.d.ts +0 -1
  39. package/dist/microinsights/stores/AppStore.d.ts +1 -1
  40. package/dist/microinsights/stores/InsightsMicroWidgetStore.d.ts +3 -9
  41. package/dist/notifications/components/NotificationBadge.d.ts +2 -2
  42. package/dist/notifications/components/NotificationList.d.ts +2 -2
  43. package/dist/recurringactivity/components/ActivityList.d.ts +2 -2
  44. package/dist/recurringactivity/components/ActivityRow.d.ts +2 -2
  45. package/dist/recurringactivity/components/ActivityStatus.d.ts +2 -2
  46. package/dist/recurringactivity/components/activitycalendar/Legend.d.ts +4 -2
  47. package/dist/recurringactivity/components/shared/ActivitySettings.d.ts +4 -2
  48. package/dist/recurringactivity/components/shared/activitysettings/AddActivityDetails.d.ts +2 -2
  49. package/dist/recurringactivity/util/getRecurrence.d.ts +9 -0
  50. package/dist/recurringactivity/util/getStatus.d.ts +3 -0
  51. package/dist/spending/components/SpendingDonut.d.ts +2 -2
  52. package/dist/spending/components/SpendingList.d.ts +2 -2
  53. package/dist/transactions/analytics.d.ts +1 -1
  54. package/dist/transactions/components/shared/transactiondetails/Description.d.ts +2 -2
  55. package/dist/transactions/components/shared/transactiondetails/FlagTransaction.d.ts +2 -2
  56. package/dist/transactions/components/shared/transactiondetails/actions/DeleteAction.d.ts +2 -2
  57. package/dist/transactions/components/shared/transactiondetails/actions/DeleteLogoAction.d.ts +2 -2
  58. package/dist/transactions/components/shared/transactiondetails/actions/HideAction.d.ts +2 -2
  59. package/dist/transactions/components/shared/transactiondetails/actions/MemoAction.d.ts +2 -2
  60. package/dist/transactions/components/shared/transactiondetails/actions/SplitAction.d.ts +2 -2
  61. package/dist/transactions/components/shared/transactiontable/cells/CategoryCell.d.ts +5 -3
  62. package/dist/transactions/components/shared/transactiontable/cells/FlagCell.d.ts +5 -3
  63. package/dist/transactions/components/splitmanager/SplitManager.d.ts +2 -2
  64. package/dist/transactions/components/splitmanager/SplitRow.d.ts +2 -2
  65. package/dist/transactions/components/tagmanager/Header.d.ts +4 -2
  66. package/dist/transactions/components/tagmanager/SearchBox.d.ts +2 -2
  67. package/dist/transactions/components/tagmanager/TagRow.d.ts +2 -2
  68. package/dist/transactions/components/transactionwidget/actions/EditCategoryAction.d.ts +2 -2
  69. package/dist/transactions/stores/TransactionStore.d.ts +1 -1
  70. package/package.json +3 -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) => Promise<any>;
5
- export declare const onAnalyticPageView: (page: string, session: AnalyticSession) => Promise<any>;
4
+ export declare const onAnalyticEvent: (event: string, session: AnalyticSession | null) => Promise<any>;
5
+ export declare const onAnalyticPageView: (page: string, session: AnalyticSession | null) => Promise<any>;
@@ -6,7 +6,6 @@ export interface InsightsMicroWidgetProps extends MicroWidgetProps {
6
6
  areBeatsLoading: boolean;
7
7
  beats: Beat[];
8
8
  endpoint: string;
9
- logOutUser: () => void;
10
9
  onEvent?: (event?: string | undefined) => void;
11
10
  onPageview?: (event?: string | undefined) => void;
12
11
  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, logOutUser: () => void) => Promise<void>;
13
+ initialize: (endpoint: string, token: string) => Promise<void>;
14
14
  }
@@ -1,16 +1,10 @@
1
- import { AnalyticSession } from '../analytics';
2
1
  import { BeatApi } from '../../common/api/BeatApi';
3
2
  import { Beat } from '../../common';
4
3
 
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
- }
9
4
  export declare class InsightsMicroWidgetStore {
10
- onAnalyticEvent: (event: string, session: AnalyticSession) => ErrPromise<string, AnalyticSession>;
11
- onAnalyticPageView: (event: string, session: AnalyticSession) => ErrPromise<string, AnalyticSession>;
5
+ onAnalyticEvent: (event: string, session: import('../analytics').AnalyticSession | null) => Promise<any>;
6
+ onAnalyticPageView: (page: string, session: import('../analytics').AnalyticSession | null) => Promise<any>;
12
7
  beatApi: BeatApi;
13
- constructor();
14
- initialize: (endpoint: string, token: string, logOutUser: () => void) => Promise<void>;
8
+ initialize: (endpoint: string, token: string) => Promise<void>;
15
9
  updateBeat: (beat: Beat) => Promise<void>;
16
10
  }
@@ -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;
@@ -1,4 +1,4 @@
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) => Promise<any>;
4
+ export declare const onAnalyticEvent: (event: string, session: AnalyticSession | null) => Promise<any>;
@@ -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;
@@ -23,7 +23,7 @@ export declare class TransactionStore {
23
23
  transactions: Transaction[];
24
24
  associatedBeats: Beat[];
25
25
  cachedStartDate: Date;
26
- onAnalyticEvent: (event: string, session: import('../analytics').AnalyticSession) => Promise<any>;
26
+ onAnalyticEvent: (event: string, session: import('../analytics').AnalyticSession | null) => Promise<any>;
27
27
  sortColumn: string;
28
28
  sortDirection: string;
29
29
  filter: TransactionFilter;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "3.7.0-alpha.sms7",
3
+ "version": "3.7.0",
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",
@@ -122,4 +122,4 @@
122
122
  "README.md"
123
123
  ],
124
124
  "packageManager": "yarn@4.4.1"
125
- }
125
+ }