@mx-cartographer/experiences 6.4.3-alpha.sms1 → 6.5.0-alpha.bb2
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 +3 -3
- package/dist/cashflow/components/DetailsExpenseRow.d.ts +2 -2
- package/dist/cashflow/components/DetailsFooter.d.ts +1 -1
- package/dist/cashflow/components/RemainingCash.d.ts +3 -1
- package/dist/cashflow/stores/UiStore.d.ts +6 -6
- package/dist/cashflow/util/Filters.d.ts +4 -4
- package/dist/common/context/hooks.d.ts +0 -1
- package/dist/common/context/index.d.ts +1 -1
- package/dist/common/hooks/useScreenSize.d.ts +1 -1
- package/dist/common/stores/GlobalStore.d.ts +1 -3
- package/dist/common/types/index.d.ts +0 -1
- package/dist/common/utils/Theme.d.ts +3 -3
- package/dist/index.d.ts +0 -1
- package/dist/index.es.js +9410 -11006
- package/dist/index.es.js.map +1 -1
- package/dist/recurringtransactions/index.d.ts +5 -0
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +13 -0
- package/dist/settings/SettingsWidget.d.ts +0 -7
- package/dist/settings/components/profile/ProfileTab.d.ts +3 -5
- package/dist/settings/index.d.ts +1 -2
- package/package.json +1 -3
- package/dist/common/types/Activity.d.ts +0 -28
- package/dist/recurringactivity/RecurringActivityMiniWidget.d.ts +0 -4
- package/dist/recurringactivity/RecurringActivityWidget.d.ts +0 -4
- package/dist/recurringactivity/components/ActivityBadges.d.ts +0 -16
- package/dist/recurringactivity/components/ActivityDetails.d.ts +0 -8
- package/dist/recurringactivity/components/ActivityList.d.ts +0 -13
- package/dist/recurringactivity/components/ActivityRow.d.ts +0 -10
- package/dist/recurringactivity/components/ActivityStatus.d.ts +0 -11
- package/dist/recurringactivity/components/MiniWidgetContent.d.ts +0 -4
- package/dist/recurringactivity/components/RecurringActivity.d.ts +0 -4
- package/dist/recurringactivity/components/actions/FrequencyAction.d.ts +0 -7
- package/dist/recurringactivity/components/actions/PaymentDateAction.d.ts +0 -7
- package/dist/recurringactivity/components/activitycalendar/ActivityCalendar.d.ts +0 -4
- package/dist/recurringactivity/components/activitycalendar/ActivityDay.d.ts +0 -4
- package/dist/recurringactivity/components/activitycalendar/Legend.d.ts +0 -4
- package/dist/recurringactivity/components/shared/ActivitySettings.d.ts +0 -4
- package/dist/recurringactivity/components/shared/activitysettings/AddActivity.d.ts +0 -8
- package/dist/recurringactivity/components/shared/activitysettings/AddActivityDetails.d.ts +0 -13
- package/dist/recurringactivity/components/shared/activitysettings/ManageExpenses.d.ts +0 -4
- package/dist/recurringactivity/components/shared/activitysettings/ManageIncome.d.ts +0 -4
- package/dist/recurringactivity/components/shared/activitysettings/SelectTransaction.d.ts +0 -9
- package/dist/recurringactivity/index.d.ts +0 -5
- package/dist/recurringactivity/stores/RecurringActivityStore.d.ts +0 -39
- package/dist/recurringactivity/util/RecurringActivityUtils.d.ts +0 -5
- package/dist/recurringactivity/util/buildActivities.d.ts +0 -3
- package/dist/recurringactivity/util/buildNewActivity.d.ts +0 -4
- package/dist/recurringactivity/util/getRecurrence.d.ts +0 -8
- package/dist/recurringactivity/util/getStatus.d.ts +0 -2
- package/dist/recurringactivity/util/updateActivity.d.ts +0 -3
- package/dist/settings/components/SettingsWidgetContents.d.ts +0 -8
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
export { RecurringTransactionsWidget } from './RecurringTransactionsWidget';
|
|
2
2
|
export { RecurringTransactionsMiniWidget } from './RecurringTransactionsMiniWidget';
|
|
3
3
|
export { RecurringTransactionsStore } from './stores/RecurringTransactionsStore';
|
|
4
|
+
export { RecurringSettings } from './components/shared/RecurringSettings';
|
|
5
|
+
export { ManageIncome } from './components/shared/recurringsettings/ManageIncome';
|
|
6
|
+
export { ManageExpenses } from './components/shared/recurringsettings/ManageExpenses';
|
|
7
|
+
export { SelectTransaction } from './components/shared/recurringsettings/SelectTransaction';
|
|
8
|
+
export { AddRecurringTransactionDetails } from './components/shared/recurringsettings/AddRecurringTransactionDetails';
|
|
@@ -25,10 +25,23 @@ export declare class RecurringTransactionsStore {
|
|
|
25
25
|
* Returns all expense recurrences.
|
|
26
26
|
*/
|
|
27
27
|
get expenses(): Recurrence[];
|
|
28
|
+
/**
|
|
29
|
+
* Returns the upcoming expense recurrences.
|
|
30
|
+
*/
|
|
31
|
+
get upcomingExpenses(): Recurrence[];
|
|
28
32
|
/**
|
|
29
33
|
* Returns all income recurrences.
|
|
30
34
|
*/
|
|
31
35
|
get income(): Recurrence[];
|
|
36
|
+
/**
|
|
37
|
+
* Returns the upcoming income recurrences.
|
|
38
|
+
*/
|
|
39
|
+
get upcomingIncome(): Recurrence[];
|
|
40
|
+
/**
|
|
41
|
+
* Calculates the total projected income for the next 30 days.
|
|
42
|
+
*/
|
|
43
|
+
get projectedIncome(): number;
|
|
44
|
+
get nextIncomeRecurrence(): Recurrence | undefined;
|
|
32
45
|
/**
|
|
33
46
|
* Returns the expense recurrences for the current month.
|
|
34
47
|
*/
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
import { WidgetProps } from '../common';
|
|
2
|
-
export declare enum SettingsTabs {
|
|
3
|
-
Profile = 0,
|
|
4
|
-
Devices = 1,
|
|
5
|
-
Notifications = 2,
|
|
6
|
-
TransactionRules = 3,
|
|
7
|
-
Help = 4
|
|
8
|
-
}
|
|
9
2
|
export declare const SettingsWidget: (({ onBackClick, sx }: WidgetProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
10
3
|
displayName: string;
|
|
11
4
|
};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
declare const _default: React.FunctionComponent<ProfileFormProps>;
|
|
1
|
+
declare const _default: (() => import("react/jsx-runtime").JSX.Element) & {
|
|
2
|
+
displayName: string;
|
|
3
|
+
};
|
|
6
4
|
export default _default;
|
package/dist/settings/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export { SettingsApi } from './api/SettingsApi';
|
|
2
2
|
export { SettingsStore } from './stores/SettingsStore';
|
|
3
|
-
export { SettingsWidget
|
|
4
|
-
export { SettingsWidgetContents } from './components/SettingsWidgetContents';
|
|
3
|
+
export { SettingsWidget } from './SettingsWidget';
|
|
5
4
|
export { default as ProfileTab } from './components/profile/ProfileTab';
|
|
6
5
|
export { default as DeviceTab } from './components/devices/DeviceTab';
|
|
7
6
|
export { NotificationSettings, type NotificationSettingsProps, } from './components/notifications/NotificationSettings';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mx-cartographer/experiences",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.5.0-alpha.bb2",
|
|
4
4
|
"description": "Library containing experience widgets",
|
|
5
5
|
"main": "dist/index.es.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -68,7 +68,6 @@
|
|
|
68
68
|
"@testing-library/jest-dom": "^6.6.3",
|
|
69
69
|
"@testing-library/react": "^16.2.0",
|
|
70
70
|
"@testing-library/user-event": "^14.6.1",
|
|
71
|
-
"@types/css-mediaquery": "^0",
|
|
72
71
|
"@types/d3": "^7.4.3",
|
|
73
72
|
"@types/honeybadger": "^1.4.5",
|
|
74
73
|
"@types/jest": "^29.5.14",
|
|
@@ -83,7 +82,6 @@
|
|
|
83
82
|
"@vitest/coverage-v8": "^3.0.8",
|
|
84
83
|
"@vitest/ui": "^3.0.8",
|
|
85
84
|
"@yarnpkg/sdks": "^3.2.1",
|
|
86
|
-
"css-mediaquery": "^0.1.2",
|
|
87
85
|
"eslint": "^8.56.0",
|
|
88
86
|
"eslint-config-mx": "^4.0.0",
|
|
89
87
|
"eslint-config-prettier": "^9.1.0",
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { RecurrenceTypes } from '../constants';
|
|
2
|
-
export declare enum ActivityType {
|
|
3
|
-
Expense = 0,
|
|
4
|
-
Income = 1
|
|
5
|
-
}
|
|
6
|
-
export declare enum ActivityStatus {
|
|
7
|
-
Paid = 0,
|
|
8
|
-
Missed = 1,
|
|
9
|
-
Upcoming = 2
|
|
10
|
-
}
|
|
11
|
-
export interface Activity {
|
|
12
|
-
accountGuid?: string;
|
|
13
|
-
activityStatus: ActivityStatus;
|
|
14
|
-
activityType: ActivityType;
|
|
15
|
-
amount: number;
|
|
16
|
-
categoryGuid?: string;
|
|
17
|
-
expectedDate: Date;
|
|
18
|
-
occurredOnDate?: Date;
|
|
19
|
-
name: string;
|
|
20
|
-
institution?: string;
|
|
21
|
-
institutionGuid?: string;
|
|
22
|
-
merchantGuid?: string;
|
|
23
|
-
recurrenceType: RecurrenceTypes;
|
|
24
|
-
recurrenceDay?: number;
|
|
25
|
-
scheduledPaymentGuid?: string;
|
|
26
|
-
sequenceGuid?: string;
|
|
27
|
-
transactionGuid?: string;
|
|
28
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const UpcomingExpenseBadge: ({ isOffset, size }: {
|
|
2
|
-
isOffset?: boolean | undefined;
|
|
3
|
-
size?: number | undefined;
|
|
4
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare const IncomeBadge: ({ isOffset, size }: {
|
|
6
|
-
isOffset?: boolean | undefined;
|
|
7
|
-
size?: number | undefined;
|
|
8
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export declare const MissedBadge: ({ isOffset, size }: {
|
|
10
|
-
isOffset?: boolean | undefined;
|
|
11
|
-
size?: number | undefined;
|
|
12
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export declare const PaidBadge: ({ isOffset, size }: {
|
|
14
|
-
isOffset?: boolean | undefined;
|
|
15
|
-
size?: number | undefined;
|
|
16
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { Activity } from '../../common';
|
|
3
|
-
interface ActivityDetailsProps {
|
|
4
|
-
activity: Activity;
|
|
5
|
-
onDeleted: () => void;
|
|
6
|
-
}
|
|
7
|
-
declare const _default: React.FunctionComponent<ActivityDetailsProps>;
|
|
8
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { SxProps } from '@mui/material/styles';
|
|
3
|
-
import { Activity } from '../../common';
|
|
4
|
-
interface ActivityListProps {
|
|
5
|
-
activities: Activity[];
|
|
6
|
-
isMini?: boolean;
|
|
7
|
-
onResetClick?: () => void;
|
|
8
|
-
onActivityClick?: (activity: Activity) => void;
|
|
9
|
-
sx?: SxProps;
|
|
10
|
-
title?: string;
|
|
11
|
-
}
|
|
12
|
-
declare const _default: React.FunctionComponent<ActivityListProps>;
|
|
13
|
-
export default _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { Activity } from '../../common';
|
|
3
|
-
interface ActivityRowProps {
|
|
4
|
-
activity: Activity;
|
|
5
|
-
isMini?: boolean;
|
|
6
|
-
onActivityClick?: (activity: Activity) => void;
|
|
7
|
-
showOrdinal?: boolean;
|
|
8
|
-
}
|
|
9
|
-
declare const _default: React.FunctionComponent<ActivityRowProps>;
|
|
10
|
-
export default _default;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface ActivityStatusProps {
|
|
3
|
-
title: string;
|
|
4
|
-
expected: number;
|
|
5
|
-
paid: number;
|
|
6
|
-
missed?: number;
|
|
7
|
-
total: number;
|
|
8
|
-
onNewClick?: () => void;
|
|
9
|
-
}
|
|
10
|
-
declare const _default: React.FunctionComponent<ActivityStatusProps>;
|
|
11
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { RecurrenceTypes, Transaction } from '../../../../common';
|
|
3
|
-
interface ActivityDetailsProps {
|
|
4
|
-
bgcolor?: string;
|
|
5
|
-
frequency: RecurrenceTypes;
|
|
6
|
-
isIncome: boolean;
|
|
7
|
-
nextDate: Date | null;
|
|
8
|
-
onFrequencyChange: (frequency: RecurrenceTypes) => void;
|
|
9
|
-
onNextDateChange: (date: Date | null) => void;
|
|
10
|
-
transaction: Transaction;
|
|
11
|
-
}
|
|
12
|
-
declare const _default: React.FunctionComponent<ActivityDetailsProps>;
|
|
13
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface SelectTransactionProps {
|
|
3
|
-
bgcolor?: string;
|
|
4
|
-
description?: string;
|
|
5
|
-
onSearch: (value: string) => void;
|
|
6
|
-
onSelected: (guid: string) => void;
|
|
7
|
-
}
|
|
8
|
-
declare const _default: React.FunctionComponent<SelectTransactionProps>;
|
|
9
|
-
export default _default;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { default as ActivitySettings } from './components/shared/ActivitySettings';
|
|
2
|
-
export { default as ManageIncome } from './components/shared/activitysettings/ManageIncome';
|
|
3
|
-
export { default as RecurringActivityWidget } from './RecurringActivityWidget';
|
|
4
|
-
export { default as RecurringActivityMiniWidget } from './RecurringActivityMiniWidget';
|
|
5
|
-
export { RecurringActivityStore } from './stores/RecurringActivityStore';
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Activity, CashflowEvent, CashflowSequence, GlobalStore, ScheduledPayment, ScheduledPaymentsApi, Transaction } from '../../common';
|
|
2
|
-
import { CashflowApi } from '../../cashflow';
|
|
3
|
-
export declare class RecurringActivityStore {
|
|
4
|
-
globalStore: GlobalStore;
|
|
5
|
-
api: ScheduledPaymentsApi;
|
|
6
|
-
cashflowApi: CashflowApi;
|
|
7
|
-
cashflowSequences: CashflowSequence[];
|
|
8
|
-
cashflowEvents: CashflowEvent[];
|
|
9
|
-
projectedEvents: CashflowEvent[];
|
|
10
|
-
transactions: Transaction[];
|
|
11
|
-
scheduledPayments: ScheduledPayment[];
|
|
12
|
-
selectedDay: Date | undefined;
|
|
13
|
-
isDataLoaded: boolean;
|
|
14
|
-
constructor(globalStore: GlobalStore);
|
|
15
|
-
get activities(): Activity[];
|
|
16
|
-
get paidActivities(): Activity[];
|
|
17
|
-
get upcomingActivities(): Activity[];
|
|
18
|
-
get missedActivities(): Activity[];
|
|
19
|
-
get upcomingExpenses(): Activity[];
|
|
20
|
-
get upcomingIncome(): Activity[];
|
|
21
|
-
get nextIncomeActivity(): Activity | undefined;
|
|
22
|
-
get selectedDayActivities(): Activity[] | undefined;
|
|
23
|
-
get projectedIncome(): number;
|
|
24
|
-
addCashflowEvent: (cashflowEvent: CashflowEvent) => Promise<void>;
|
|
25
|
-
addCashflowSequence: (cashflowSequence: CashflowSequence) => Promise<CashflowSequence | undefined>;
|
|
26
|
-
addScheduledPayment: (scheduledPayemnt: ScheduledPayment, transaction: Transaction) => Promise<void>;
|
|
27
|
-
deleteCashflowSequence: (guid: string) => Promise<void>;
|
|
28
|
-
deleteScheduledPayment: (guid: string) => Promise<void>;
|
|
29
|
-
loadActivity: () => void;
|
|
30
|
-
loadExpenseActivity: () => Promise<void>;
|
|
31
|
-
loadIncomeActivity: () => Promise<void>;
|
|
32
|
-
loadCashflowSequences: () => Promise<void>;
|
|
33
|
-
loadExpectedEvents: () => Promise<void>;
|
|
34
|
-
loadPaidEvents: () => Promise<void>;
|
|
35
|
-
loadScheduledPayments: () => Promise<void>;
|
|
36
|
-
setSelectedDay: (day: Date) => void;
|
|
37
|
-
updateCashflowSequence: (sequence: CashflowSequence) => Promise<void>;
|
|
38
|
-
updateScheduledPayment: (payment: ScheduledPayment) => Promise<void>;
|
|
39
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Activity } from '../../common';
|
|
2
|
-
export declare const totalReducer: (acc: number, curr: Activity) => number;
|
|
3
|
-
export declare const incomeFilter: (i: Activity) => boolean;
|
|
4
|
-
export declare const expenseFilter: (i: Activity) => boolean;
|
|
5
|
-
export declare const dateFilter: (a: Activity) => boolean;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { Account, Activity, CashflowEvent, CashflowSequence, RecurrenceTypes, ScheduledPayment, Transaction } from '../../common';
|
|
2
|
-
export declare const getRecurrenceType: (sequence?: CashflowSequence) => RecurrenceTypes.Unknown | RecurrenceTypes.EveryWeek | RecurrenceTypes.EveryOtherWeek | RecurrenceTypes.EveryMonth | RecurrenceTypes.EveryQuarter | RecurrenceTypes.EveryYear;
|
|
3
|
-
export declare const buildActivities: (accounts: Account[], events: CashflowEvent[], payments: ScheduledPayment[], projected: CashflowEvent[], sequences: CashflowSequence[], transactions: Transaction[]) => Activity[];
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { CashflowEvent, CashflowSequence, ScheduledPayment, Transaction, RecurrenceTypes } from '../../common';
|
|
2
|
-
export declare const buildNewCashflowSequence: (transaction: Transaction, recurrenceType: RecurrenceTypes, nextDate: Date) => CashflowSequence;
|
|
3
|
-
export declare const buildNewCashflowEvent: (cashflowSequence: CashflowSequence, transaction: Transaction) => CashflowEvent;
|
|
4
|
-
export declare const buildNewScheduledPayment: (transaction: Transaction, recurrenceType: RecurrenceTypes, nextDate: Date) => ScheduledPayment;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { RecurrenceTypes, RecurringCopy } from '../../common';
|
|
2
|
-
interface GetRecurrenceArgs {
|
|
3
|
-
copy: RecurringCopy;
|
|
4
|
-
date: Date | null;
|
|
5
|
-
type: RecurrenceTypes;
|
|
6
|
-
}
|
|
7
|
-
export declare const getRecurrence: ({ copy, date, type }: GetRecurrenceArgs) => string;
|
|
8
|
-
export {};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { Activity, CashflowSequence, ScheduledPayment } from '../../common';
|
|
2
|
-
export declare const updateIncome: (activity: Activity, sequence: CashflowSequence) => CashflowSequence;
|
|
3
|
-
export declare const updateExpense: (activity: Activity, scheduledPayment: ScheduledPayment) => ScheduledPayment;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { SettingsTabs } from '../SettingsWidget';
|
|
2
|
-
interface SettingsWidgetContentsProps {
|
|
3
|
-
selectedTab: SettingsTabs;
|
|
4
|
-
}
|
|
5
|
-
export declare const SettingsWidgetContents: (({ selectedTab }: SettingsWidgetContentsProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
6
|
-
displayName: string;
|
|
7
|
-
};
|
|
8
|
-
export {};
|