@mx-cartographer/experiences 4.1.2-alpha.sms-2 → 4.2.0-alpha.sms2
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 +1 -1
- package/dist/accounts/stores/AccountStore.d.ts +17 -1
- package/dist/common/context/hooks.d.ts +1 -0
- package/dist/common/context/index.d.ts +1 -1
- package/dist/common/stores/GlobalStore.d.ts +9 -4
- package/dist/common/types/Debt.d.ts +2 -1
- package/dist/common/types/GlobalCopy.d.ts +3 -1
- package/dist/common/types/Help.d.ts +22 -0
- package/dist/common/types/localization/DebtsCopy.d.ts +8 -0
- package/dist/common/types/localization/SettingsCopy.d.ts +20 -0
- package/dist/common/types/localization/index.d.ts +2 -0
- package/dist/debts/components/debtsdrawer/actions/InterestRateAction.d.ts +8 -0
- package/dist/debts/components/debtsdrawer/actions/MonthlyPaymentAction.d.ts +8 -0
- package/dist/debts/components/debtsdrawer/actions/OriginalBalanceAction.d.ts +8 -0
- package/dist/goals/components/actions/AmountToSaveAction.d.ts +3 -1
- package/dist/goals/components/actions/InterestRateAction.d.ts +3 -1
- package/dist/goals/components/actions/MonthlyPaymentAction.d.ts +3 -1
- package/dist/goals/components/actions/OriginalBalanceAction.d.ts +3 -1
- package/dist/goals/stores/GoalStore.d.ts +2 -0
- package/dist/help/HelpList.d.ts +3 -0
- package/dist/help/HelpWidget.d.ts +7 -0
- package/dist/help/constants/index.d.ts +19 -0
- package/dist/help/index.d.ts +2 -0
- package/dist/help/store/HelpStore.d.ts +9 -0
- package/dist/help/utils/index.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +4304 -3735
- package/dist/index.es.js.map +1 -1
- package/dist/settings/components/profile/ProfileDetails.d.ts +4 -0
- package/dist/transactions/stores/TransactionStore.d.ts +20 -1
- package/package.json +8 -8
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { BeatApi, Beat, GlobalStore, Tag, Tagging, Transaction, TransactionRule } from '../../common';
|
|
2
2
|
import { TransactionApi } from '../api/TransactionApi';
|
|
3
3
|
import { UiStore } from './UiStore';
|
|
4
|
+
interface OptionalProps {
|
|
5
|
+
taggings: Tagging[];
|
|
6
|
+
tags: Tag[];
|
|
7
|
+
transactionRules: TransactionRule[];
|
|
8
|
+
transactions: Transaction[];
|
|
9
|
+
associatedBeats: Beat[];
|
|
10
|
+
updateExternallyManagedTransactions?: (transactions: Transaction[]) => void;
|
|
11
|
+
}
|
|
4
12
|
export type TransactionFilter = {
|
|
5
13
|
accounts?: string[];
|
|
6
14
|
dateRange?: {
|
|
@@ -16,17 +24,27 @@ export declare class TransactionStore {
|
|
|
16
24
|
globalStore: GlobalStore;
|
|
17
25
|
uiStore: UiStore;
|
|
18
26
|
isLoading: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Required props if data is externally managed
|
|
29
|
+
* @property {Array} tags array of tags
|
|
30
|
+
* @property {Array} transactionRules array of transactionRules
|
|
31
|
+
* @property {Array} transactions array of transactions
|
|
32
|
+
* @property {Array} associatedBeats array of associatedBeats
|
|
33
|
+
* @property {function} updateExternallyManagedTransactions Updater function for external data manager
|
|
34
|
+
*/
|
|
19
35
|
taggings: Tagging[];
|
|
20
36
|
tags: Tag[];
|
|
21
37
|
transactionRules: TransactionRule[];
|
|
22
38
|
transactions: Transaction[];
|
|
23
39
|
associatedBeats: Beat[];
|
|
40
|
+
updateExternallyManagedTransactions: ((transactions: Transaction[]) => void) | undefined;
|
|
41
|
+
shouldManageDataExternally: boolean;
|
|
24
42
|
cachedStartDate: Date;
|
|
25
43
|
onAnalyticEvent: (event: string, session: import('../analytics').AnalyticSession | null) => Promise<any>;
|
|
26
44
|
sortColumn: string;
|
|
27
45
|
sortDirection: string;
|
|
28
46
|
filter: TransactionFilter;
|
|
29
|
-
constructor(globalStore: GlobalStore);
|
|
47
|
+
constructor(globalStore: GlobalStore, optionalProps?: OptionalProps | undefined);
|
|
30
48
|
initialize: (endpoint: string, token: string) => Promise<void>;
|
|
31
49
|
get sortedTransactions(): Transaction[];
|
|
32
50
|
addTag: (name: string) => Promise<void>;
|
|
@@ -108,3 +126,4 @@ export declare class TransactionStore {
|
|
|
108
126
|
updateTag: (tag: Tag) => Promise<void>;
|
|
109
127
|
updateTransaction: (transaction: Transaction) => Promise<void>;
|
|
110
128
|
}
|
|
129
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mx-cartographer/experiences",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0-alpha.sms2",
|
|
4
4
|
"description": "Library containing experience widgets",
|
|
5
5
|
"main": "dist/index.es.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -64,10 +64,10 @@
|
|
|
64
64
|
"@storybook/react-vite": "^8.4.7",
|
|
65
65
|
"@storybook/test": "^8.4.7",
|
|
66
66
|
"@storybook/theming": "^8.4.7",
|
|
67
|
-
"@testing-library/dom": "^
|
|
68
|
-
"@testing-library/jest-dom": "^6.
|
|
69
|
-
"@testing-library/react": "^
|
|
70
|
-
"@testing-library/user-event": "^14.
|
|
67
|
+
"@testing-library/dom": "^10.4.0",
|
|
68
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
69
|
+
"@testing-library/react": "^16.2.0",
|
|
70
|
+
"@testing-library/user-event": "^14.6.1",
|
|
71
71
|
"@types/d3": "^7.4.3",
|
|
72
72
|
"@types/honeybadger": "^1.4.5",
|
|
73
73
|
"@types/jest": "^29.5.12",
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"@typescript-eslint/eslint-plugin": "^7.16.0",
|
|
80
80
|
"@typescript-eslint/parser": "^7.16.0",
|
|
81
81
|
"@vitejs/plugin-react": "^4.3.3",
|
|
82
|
-
"@vitest/coverage-v8": "^2.1.
|
|
83
|
-
"@vitest/ui": "^2.1.
|
|
82
|
+
"@vitest/coverage-v8": "^2.1.9",
|
|
83
|
+
"@vitest/ui": "^2.1.9",
|
|
84
84
|
"@yarnpkg/sdks": "^3.2.0",
|
|
85
85
|
"eslint": "^8.56.0",
|
|
86
86
|
"eslint-config-mx": "^4.0.0",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"vite": "^5.4.10",
|
|
106
106
|
"vite-plugin-dts": "^4.3.0",
|
|
107
107
|
"vite-tsconfig-paths": "^5.0.1",
|
|
108
|
-
"vitest": "^2.1.
|
|
108
|
+
"vitest": "^2.1.9"
|
|
109
109
|
},
|
|
110
110
|
"peerDependencies": {
|
|
111
111
|
"@kyper/mui": "^4",
|