@mx-cartographer/experiences 4.1.0-alpha.j9 → 4.1.1
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 +65 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +4 -1
- package/dist/accounts/index.d.ts +3 -0
- package/dist/accounts/stores/AccountStore.d.ts +3 -0
- package/dist/categories/stores/CategoryStore.d.ts +1 -0
- package/dist/common/api/{AppApi.d.ts → AppDataApi.d.ts} +2 -2
- package/dist/common/api/UserApi.d.ts +2 -2
- package/dist/common/api/index.d.ts +0 -1
- package/dist/common/components/ListItemAction.d.ts +16 -0
- package/dist/common/components/index.d.ts +1 -0
- package/dist/common/constants/Analytics.d.ts +2 -0
- package/dist/common/constants/ApiEndpoints.d.ts +4 -0
- package/dist/common/context/hooks.d.ts +0 -2
- package/dist/common/context/index.d.ts +1 -1
- package/dist/common/stores/AppDataStore.d.ts +13 -0
- package/dist/common/stores/GlobalStore.d.ts +3 -5
- package/dist/common/stores/UserStore.d.ts +13 -0
- package/dist/common/types/AppData.d.ts +8 -142
- package/dist/common/types/Client.d.ts +82 -0
- package/dist/common/types/Debt.d.ts +7 -8
- package/dist/common/types/Goal.d.ts +25 -0
- package/dist/common/types/User.d.ts +12 -0
- package/dist/common/types/index.d.ts +3 -4
- package/dist/common/types/localization/GoalsCopy.d.ts +77 -0
- package/dist/common/utils/Fetch.d.ts +0 -1
- package/dist/debts/components/DebtDrawer.d.ts +7 -0
- package/dist/debts/components/DebtsChart.d.ts +6 -10
- package/dist/debts/components/DebtsTable.d.ts +5 -3
- package/dist/debts/components/SnowballCard.d.ts +11 -0
- package/dist/debts/components/SnowballDrawer.d.ts +9 -0
- package/dist/debts/components/debtsdrawer/DebtDetailsChart.d.ts +4 -0
- package/dist/debts/components/debtsdrawer/DebtDetailsContent.d.ts +4 -0
- package/dist/debts/components/debtsdrawer/DebtDetailsTab.d.ts +4 -0
- package/dist/debts/components/debtsdrawer/DebtScheduleTab.d.ts +4 -0
- package/dist/debts/components/debtsdrawer/DebtStatusCard.d.ts +7 -0
- package/dist/debts/hooks/useDebtsUiStore.d.ts +1 -0
- package/dist/debts/store/DebtsStore.d.ts +2 -0
- package/dist/debts/store/DebtsUiStore.d.ts +10 -0
- package/dist/debts/utils/DebtStore.d.ts +1 -2
- package/dist/debts/utils/DebtsChart.d.ts +2 -0
- package/dist/debts/utils/DebtsWidget.d.ts +12 -8
- package/dist/debts/utils/SnowballCard.d.ts +8 -0
- package/dist/goals/api/GoalApi.d.ts +12 -2
- package/dist/goals/components/AccountSelectionDrawer.d.ts +10 -0
- package/dist/goals/components/AddGoal.d.ts +6 -0
- package/dist/goals/components/GoalDetails.d.ts +8 -0
- package/dist/goals/components/GoalDetailsDrawer.d.ts +8 -0
- package/dist/goals/components/GoalList.d.ts +1 -2
- package/dist/goals/components/GoalStatusCard.d.ts +3 -1
- package/dist/goals/components/ManageGoals.d.ts +6 -0
- package/dist/goals/components/actions/AccountAction.d.ts +6 -0
- package/dist/goals/components/actions/AddRetirementAccountAction.d.ts +6 -0
- package/dist/goals/components/actions/AmountToSaveAction.d.ts +6 -0
- package/dist/goals/components/actions/BirthdayAction.d.ts +8 -0
- package/dist/goals/components/actions/ChangeAccountAction.d.ts +6 -0
- package/dist/goals/components/actions/ContributionAction.d.ts +8 -0
- package/dist/goals/components/actions/GoalNameAction.d.ts +8 -0
- package/dist/goals/components/actions/InterestRateAction.d.ts +6 -0
- package/dist/goals/components/actions/MonthlyPaymentAction.d.ts +6 -0
- package/dist/goals/components/actions/OriginalBalanceAction.d.ts +6 -0
- package/dist/goals/components/actions/RetirementAgeAction.d.ts +6 -0
- package/dist/goals/components/addgoal/AddGoalListItem.d.ts +8 -0
- package/dist/goals/components/managegoals/CompleteListItem.d.ts +6 -0
- package/dist/goals/components/managegoals/OngoingListItem.d.ts +7 -0
- package/dist/goals/components/managegoals/ReorderGoals.d.ts +6 -0
- package/dist/goals/index.d.ts +1 -0
- package/dist/goals/stores/GoalStore.d.ts +19 -3
- package/dist/goals/util/GoalsUtil.d.ts +16 -1
- package/dist/index.es.js +9572 -7689
- package/dist/index.es.js.map +1 -1
- package/dist/trends/components/TrendsTable.d.ts +4 -0
- package/dist/trends/utils/SpendingData.d.ts +4 -0
- package/dist/trends/utils/TrendsData.d.ts +1 -8
- package/package.json +15 -15
- package/dist/common/api/MarketingApi.d.ts +0 -7
- package/dist/common/constants/Offers.d.ts +0 -12
- package/dist/common/stores/AppStore.d.ts +0 -14
- package/dist/common/stores/MarketingStore.d.ts +0 -9
- package/dist/common/types/AccountBanner.d.ts +0 -17
- package/dist/dashboard/AccountBanner.d.ts +0 -2
- package/dist/goals/constants/CopyKeys.d.ts +0 -11
|
@@ -12,13 +12,6 @@ export interface StackedLineChartData {
|
|
|
12
12
|
category_color: string;
|
|
13
13
|
dataset: Dataset;
|
|
14
14
|
}
|
|
15
|
-
export declare const getStackedLineChartData: (totals: MonthlyCategoryTotals[]) => StackedLineChartData[];
|
|
16
|
-
export declare const sliceStackedLineChartData: (data: StackedLineChartData[], limit: number) => {
|
|
17
|
-
dataset: DataPoint[];
|
|
18
|
-
top_level_category_guid: string;
|
|
19
|
-
category_guid: string;
|
|
20
|
-
category_name: string;
|
|
21
|
-
category_color: string;
|
|
22
|
-
}[];
|
|
15
|
+
export declare const getStackedLineChartData: (totals: MonthlyCategoryTotals[], start: Date, end: Date) => StackedLineChartData[];
|
|
23
16
|
export declare const amountComparator: GridComparatorFn<string | number>;
|
|
24
17
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mx-cartographer/experiences",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Library containing experience widgets",
|
|
5
5
|
"main": "dist/index.es.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"@mui/x-date-pickers": "^7.9.0",
|
|
38
38
|
"@mui/x-date-pickers-pro": "^7.9.0",
|
|
39
39
|
"@mxenabled/cssinjs": "^0.6.0",
|
|
40
|
+
"@mxenabled/mx-icons": "^1.2.0",
|
|
40
41
|
"@mxenabled/web-widget-sdk": "^0.0.13",
|
|
41
42
|
"@tanstack/react-virtual": "^3.8.2",
|
|
42
43
|
"bowser": "^2.11.0",
|
|
@@ -54,16 +55,15 @@
|
|
|
54
55
|
"devDependencies": {
|
|
55
56
|
"@babel/core": "^7.23.7",
|
|
56
57
|
"@babel/eslint-parser": "^7.23.3",
|
|
57
|
-
"@storybook/addon-a11y": "^8.
|
|
58
|
-
"@storybook/addon-essentials": "^8.
|
|
59
|
-
"@storybook/addon-interactions": "^8.
|
|
60
|
-
"@storybook/addon-links": "^8.
|
|
61
|
-
"@storybook/
|
|
62
|
-
"@storybook/
|
|
63
|
-
"@storybook/react": "^8.
|
|
64
|
-
"@storybook/
|
|
65
|
-
"@storybook/
|
|
66
|
-
"@storybook/theming": "^8.3.6",
|
|
58
|
+
"@storybook/addon-a11y": "^8.4.7",
|
|
59
|
+
"@storybook/addon-essentials": "^8.4.7",
|
|
60
|
+
"@storybook/addon-interactions": "^8.4.7",
|
|
61
|
+
"@storybook/addon-links": "^8.4.7",
|
|
62
|
+
"@storybook/blocks": "^8.4.7",
|
|
63
|
+
"@storybook/react": "^8.4.7",
|
|
64
|
+
"@storybook/react-vite": "^8.4.7",
|
|
65
|
+
"@storybook/test": "^8.4.7",
|
|
66
|
+
"@storybook/theming": "^8.4.7",
|
|
67
67
|
"@testing-library/dom": "^9.3.4",
|
|
68
68
|
"@testing-library/jest-dom": "^6.4.2",
|
|
69
69
|
"@testing-library/react": "^14.2.1",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"eslint-plugin-react": "^7.33.2",
|
|
90
90
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
91
91
|
"eslint-plugin-react-refresh": "^0.4.5",
|
|
92
|
-
"eslint-plugin-storybook": "^0.
|
|
92
|
+
"eslint-plugin-storybook": "^0.11.1",
|
|
93
93
|
"global-jsdom": "^9.2.0",
|
|
94
94
|
"husky": "^9.1.5",
|
|
95
95
|
"jsdom": "^23.0.1",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"path": "^0.12.7",
|
|
98
98
|
"prettier": "^3.1.1",
|
|
99
99
|
"prop-types": "^15.8.1",
|
|
100
|
-
"storybook": "^8.
|
|
100
|
+
"storybook": "^8.4.7",
|
|
101
101
|
"storybook-addon-mock": "^5.0.0",
|
|
102
102
|
"storybook-dark-mode": "4.0.1",
|
|
103
103
|
"typescript": "^5.6.3",
|
|
@@ -119,5 +119,5 @@
|
|
|
119
119
|
"CHANGELOG.md",
|
|
120
120
|
"README.md"
|
|
121
121
|
],
|
|
122
|
-
"packageManager": "yarn@4.
|
|
123
|
-
}
|
|
122
|
+
"packageManager": "yarn@4.6.0"
|
|
123
|
+
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { AccountBannerType } from '../types';
|
|
2
|
-
import { default as Fetch } from '../utils/Fetch';
|
|
3
|
-
export declare class MarketingApi {
|
|
4
|
-
fetchInstance: Fetch;
|
|
5
|
-
constructor(endpoint: string, token: string);
|
|
6
|
-
getAccountBanner: (bullseyeUrl: string, userGuid: string) => Promise<AccountBannerType>;
|
|
7
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const OfferType: {
|
|
2
|
-
ACCOUNT_WIDGET_BANNER: number;
|
|
3
|
-
FINSMART_CREDIT_CARD: number;
|
|
4
|
-
FINSMART_CREDIT_CARD_SMALL_CARD: number;
|
|
5
|
-
FINSMART_CREDIT_CARD_SPENDING_WIDGET: number;
|
|
6
|
-
FINSMART_BALANCE_TRANSFER: number;
|
|
7
|
-
FINSMART_BALANCE_TRANSFER_SMALL_CARD: number;
|
|
8
|
-
FINSMART_BALANCE_TRANSFER_SPENDING_WIDGET: number;
|
|
9
|
-
TOAST_MASTER: number;
|
|
10
|
-
TOAST_MINI: number;
|
|
11
|
-
TOAST_MOBILE: number;
|
|
12
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { AppApi } from '../api/AppApi';
|
|
2
|
-
import { AppData, UserProfile } from '../types';
|
|
3
|
-
import { User } from '../types/AppData';
|
|
4
|
-
export declare class AppStore {
|
|
5
|
-
appData: AppData;
|
|
6
|
-
bullseyeUrl: string;
|
|
7
|
-
user: User;
|
|
8
|
-
api: AppApi;
|
|
9
|
-
isInitialized: boolean;
|
|
10
|
-
constructor();
|
|
11
|
-
initialize: (endpoint: string, token: string) => Promise<void>;
|
|
12
|
-
loadAppData: () => Promise<void>;
|
|
13
|
-
updateUserProfile: (userProfile: UserProfile) => Promise<void>;
|
|
14
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { MarketingApi } from '../api/MarketingApi';
|
|
2
|
-
import { AccountBannerType } from '../types';
|
|
3
|
-
export declare class MarketingStore {
|
|
4
|
-
accountBanner: AccountBannerType;
|
|
5
|
-
api: MarketingApi;
|
|
6
|
-
isInitialized: boolean;
|
|
7
|
-
constructor();
|
|
8
|
-
loadAccountBanner: (bullseyeUrl: string, userGuid: string) => Promise<void>;
|
|
9
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface AccountBannerType {
|
|
2
|
-
"guid": string;
|
|
3
|
-
"dashboard_position": null;
|
|
4
|
-
"dismiss_button_action_uri": null;
|
|
5
|
-
"image_url": string;
|
|
6
|
-
"is_static": false;
|
|
7
|
-
"left_button_action_type": null;
|
|
8
|
-
"left_button_action_uri": null;
|
|
9
|
-
"left_button_image_url": null;
|
|
10
|
-
"left_button_success_image_url": null;
|
|
11
|
-
"redirect_url": string;
|
|
12
|
-
"right_button_action_type": null;
|
|
13
|
-
"right_button_action_uri": null;
|
|
14
|
-
"right_button_image_url": null;
|
|
15
|
-
"right_button_success_image_url": null;
|
|
16
|
-
"viewed_action_uri": null;
|
|
17
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare enum CopyNamespace {
|
|
2
|
-
Goals = "goals"
|
|
3
|
-
}
|
|
4
|
-
export declare enum ScreenName {
|
|
5
|
-
EmergencySavings = "emergency_savings"
|
|
6
|
-
}
|
|
7
|
-
export declare enum ComponentName {
|
|
8
|
-
DismissalFeedback = "dismissal_feedback",
|
|
9
|
-
ZeroState = "zero_state"
|
|
10
|
-
}
|
|
11
|
-
export declare const COPY_KEYS: string[];
|