@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.
- package/CHANGELOG.md +21 -0
- package/dist/accounts/ConnectMiniWidget.d.ts +2 -2
- package/dist/accounts/components/ConnectStatus.d.ts +2 -1
- package/dist/accounts/components/ConnectionsDrawer.d.ts +2 -2
- package/dist/accounts/components/detailsdrawer/Accounts/AccountConnection.d.ts +4 -2
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsContent.d.ts +4 -2
- package/dist/accounts/utils/AccountFields.d.ts +3 -3
- package/dist/budgets/components/BubbleBudgets.d.ts +2 -0
- package/dist/budgets/components/bubblechart/Bubble.d.ts +10 -0
- package/dist/budgets/components/bubblechart/Mercury.d.ts +8 -0
- package/dist/budgets/utils/Budget.d.ts +2 -2
- package/dist/budgets/utils/buildBubblesSVG.d.ts +23 -3
- package/dist/cashflow/components/RemainingCash.d.ts +2 -2
- package/dist/common/components/CurrencyInput.d.ts +2 -7
- package/dist/common/components/charts/LineChart.d.ts +0 -1
- package/dist/common/components/charts/linechart/CustomLegend.d.ts +5 -2
- package/dist/common/components/charts/stackedlinechart/CustomAreaTooltip.d.ts +2 -2
- package/dist/common/context/hooks.d.ts +0 -1
- package/dist/common/context/index.d.ts +1 -1
- package/dist/common/stores/GlobalStore.d.ts +0 -2
- package/dist/common/types/Analytics.d.ts +23 -9
- package/dist/common/types/GlobalCopy.d.ts +7 -1
- package/dist/common/types/localization/AccountFilterCopy.d.ts +4 -0
- package/dist/common/types/localization/AccountTypeCopy.d.ts +16 -0
- package/dist/common/types/localization/AccountsCopy.d.ts +113 -0
- package/dist/common/types/localization/BudgetsCopy.d.ts +11 -0
- package/dist/common/types/localization/CashflowCopy.d.ts +7 -1
- package/dist/common/types/localization/CommonCopy.d.ts +9 -1
- package/dist/common/types/localization/ConnectCopy.d.ts +74 -0
- package/dist/common/types/localization/DateRangePickerCopy.d.ts +5 -0
- package/dist/common/types/localization/NotificationsCopy.d.ts +7 -0
- package/dist/common/types/localization/RecurringCopy.d.ts +76 -0
- package/dist/common/types/localization/SpendingCopy.d.ts +16 -0
- package/dist/common/types/localization/TransactionsCopy.d.ts +3 -0
- package/dist/common/types/localization/TrendsCopy.d.ts +6 -1
- package/dist/common/types/localization/index.d.ts +7 -0
- package/dist/common/utils/Fetch.d.ts +1 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.es.js +4753 -4991
- package/dist/index.es.js.map +1 -1
- package/dist/microinsights/analytics.d.ts +2 -2
- package/dist/microinsights/components/insightsmicrowidget/InsightsMicroWidget.d.ts +1 -0
- package/dist/microinsights/stores/AppStore.d.ts +1 -1
- package/dist/microinsights/stores/InsightsMicroWidgetStore.d.ts +9 -3
- package/dist/notifications/components/NotificationBadge.d.ts +2 -2
- package/dist/notifications/components/NotificationList.d.ts +2 -2
- package/dist/recurringactivity/components/ActivityList.d.ts +2 -2
- package/dist/recurringactivity/components/ActivityRow.d.ts +2 -2
- package/dist/recurringactivity/components/ActivityStatus.d.ts +2 -2
- package/dist/recurringactivity/components/activitycalendar/Legend.d.ts +4 -2
- package/dist/recurringactivity/components/shared/ActivitySettings.d.ts +4 -2
- package/dist/recurringactivity/components/shared/activitysettings/AddActivityDetails.d.ts +2 -2
- package/dist/recurringactivity/util/getRecurrence.d.ts +9 -0
- package/dist/recurringactivity/util/getStatus.d.ts +3 -0
- package/dist/spending/components/SpendingDonut.d.ts +2 -2
- package/dist/spending/components/SpendingList.d.ts +2 -2
- package/dist/transactions/components/shared/transactiondetails/Description.d.ts +2 -2
- package/dist/transactions/components/shared/transactiondetails/FlagTransaction.d.ts +2 -2
- package/dist/transactions/components/shared/transactiondetails/actions/DeleteAction.d.ts +2 -2
- package/dist/transactions/components/shared/transactiondetails/actions/DeleteLogoAction.d.ts +2 -2
- package/dist/transactions/components/shared/transactiondetails/actions/HideAction.d.ts +2 -2
- package/dist/transactions/components/shared/transactiondetails/actions/MemoAction.d.ts +2 -2
- package/dist/transactions/components/shared/transactiondetails/actions/SplitAction.d.ts +2 -2
- package/dist/transactions/components/shared/transactiontable/cells/CategoryCell.d.ts +5 -3
- package/dist/transactions/components/shared/transactiontable/cells/FlagCell.d.ts +5 -3
- package/dist/transactions/components/splitmanager/SplitManager.d.ts +2 -2
- package/dist/transactions/components/splitmanager/SplitRow.d.ts +2 -2
- package/dist/transactions/components/tagmanager/Header.d.ts +4 -2
- package/dist/transactions/components/tagmanager/SearchBox.d.ts +2 -2
- package/dist/transactions/components/tagmanager/TagRow.d.ts +2 -2
- package/dist/transactions/components/transactionwidget/actions/EditCategoryAction.d.ts +2 -2
- package/package.json +2 -2
- package/dist/networth/NetWorthWidget.d.ts +0 -5
- package/dist/networth/api/NetWorthApi.d.ts +0 -9
- package/dist/networth/components/NetWorthChart.d.ts +0 -7
- package/dist/networth/components/NetWorthList.d.ts +0 -7
- package/dist/networth/components/NetWorthRow.d.ts +0 -6
- package/dist/networth/index.d.ts +0 -3
- package/dist/networth/stores/NetWorthStore.d.ts +0 -15
- package/dist/networth/types/NetWorth.d.ts +0 -37
- 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
|
5
|
-
export declare const onAnalyticPageView: (page: string, session: AnalyticSession
|
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;
|
@@ -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:
|
6
|
-
onAnalyticPageView: (
|
10
|
+
onAnalyticEvent: (event: string, session: AnalyticSession) => ErrPromise<string, AnalyticSession>;
|
11
|
+
onAnalyticPageView: (event: string, session: AnalyticSession) => ErrPromise<string, AnalyticSession>;
|
7
12
|
beatApi: BeatApi;
|
8
|
-
|
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
|
8
|
-
export default
|
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
|
8
|
-
export default
|
7
|
+
declare const _default: React.FunctionComponent<NotificationListProps>;
|
8
|
+
export default _default;
|
@@ -7,5 +7,5 @@ interface ActivityRowProps {
|
|
7
7
|
onActivityClick?: (activity: Activity) => void;
|
8
8
|
showOrdinal?: boolean;
|
9
9
|
}
|
10
|
-
declare const
|
11
|
-
export default
|
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
|
12
|
-
export default
|
11
|
+
declare const _default: React.FunctionComponent<ActivityStatusProps>;
|
12
|
+
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
|
14
|
-
export default
|
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 {};
|
@@ -11,5 +11,5 @@ interface SpendingDonutProps {
|
|
11
11
|
totalLabel: string;
|
12
12
|
variant?: 'mini' | 'full';
|
13
13
|
}
|
14
|
-
declare const
|
15
|
-
export default
|
14
|
+
declare const _default: React.FunctionComponent<SpendingDonutProps>;
|
15
|
+
export default _default;
|
@@ -4,5 +4,5 @@ import { Transaction } from '../../../../common';
|
|
4
4
|
interface DescriptionProps {
|
5
5
|
transaction: Transaction;
|
6
6
|
}
|
7
|
-
declare const
|
8
|
-
export default
|
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
|
8
|
-
export default
|
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
|
8
|
-
export default
|
7
|
+
declare const _default: React.FunctionComponent<DeleteActionProps>;
|
8
|
+
export default _default;
|
package/dist/transactions/components/shared/transactiondetails/actions/DeleteLogoAction.d.ts
CHANGED
@@ -4,5 +4,5 @@ import { Transaction } from '../../../../../common';
|
|
4
4
|
interface DeleteLogoActionProps {
|
5
5
|
transaction: Transaction;
|
6
6
|
}
|
7
|
-
declare const
|
8
|
-
export default
|
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
|
8
|
-
export default
|
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
|
8
|
-
export default
|
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
|
8
|
-
export default
|
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
|
4
|
-
|
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 {
|
1
|
+
import { GridRenderCellParams } from '@mui/x-data-grid-pro';
|
2
2
|
|
3
|
-
declare const
|
4
|
-
|
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
|
13
|
-
export default
|
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
|
12
|
-
export default
|
11
|
+
declare const _default: React.FunctionComponent<SplitRowProps>;
|
12
|
+
export default _default;
|
@@ -4,5 +4,5 @@ interface SearchBoxProps {
|
|
4
4
|
onSearchValueChanged: (value: string) => void;
|
5
5
|
searchValue: string;
|
6
6
|
}
|
7
|
-
declare const
|
8
|
-
export default
|
7
|
+
declare const _default: React.FunctionComponent<SearchBoxProps>;
|
8
|
+
export default _default;
|
@@ -5,5 +5,5 @@ interface EditCategoryActionProps {
|
|
5
5
|
onClose: () => void;
|
6
6
|
transaction: Transaction;
|
7
7
|
}
|
8
|
-
declare const
|
9
|
-
export default
|
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.
|
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.
|
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,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
|
-
}
|
package/dist/networth/index.d.ts
DELETED
@@ -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 {};
|