@mx-cartographer/experiences 3.5.0-alpha.mm1 → 3.5.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.
- package/CHANGELOG.md +5 -1
- package/dist/accounts/stores/AccountStore.d.ts +1 -7
- package/dist/categories/stores/CategoryStore.d.ts +1 -1
- package/dist/{accounts → common}/components/ConnectDrawer.d.ts +1 -0
- package/dist/common/components/WidgetContainer.d.ts +1 -1
- package/dist/common/components/charts/StackedLineChart.d.ts +3 -3
- package/dist/common/components/charts/stackedlinechart/CustomLegend.d.ts +0 -1
- package/dist/common/constants/Analytics.d.ts +1 -0
- package/dist/common/context/hooks.d.ts +1 -0
- package/dist/common/stores/ConnectStore.d.ts +13 -0
- package/dist/common/stores/GlobalStore.d.ts +2 -0
- package/dist/common/types/localization/TransactionsCopy.d.ts +3 -0
- package/dist/index.es.js +4061 -4201
- package/dist/index.es.js.map +1 -1
- package/dist/transactions/api/TransactionApi.d.ts +1 -1
- package/dist/transactions/components/transactionwidget/AddAccountModal.d.ts +5 -0
- package/dist/transactions/index.d.ts +1 -0
- package/dist/trends/index.d.ts +0 -1
- package/package.json +2 -2
- package/dist/trends/TrendsFullWidget.d.ts +0 -5
- package/dist/trends/components/TrendsTable.d.ts +0 -9
- package/dist/trends/components/trendstable/AmountCell.d.ts +0 -3
- package/dist/trends/components/trendstable/CategoryCell.d.ts +0 -3
- package/dist/trends/components/trendstable/HeaderCell.d.ts +0 -3
- package/dist/trends/utils/index.d.ts +0 -32
- /package/dist/{accounts → common}/constants/Connect.d.ts +0 -0
|
@@ -2,7 +2,7 @@ import { Fetch, Tag, Tagging, Transaction, TransactionRule } from '../../common'
|
|
|
2
2
|
|
|
3
3
|
export declare class TransactionApi {
|
|
4
4
|
fetchInstance: Fetch;
|
|
5
|
-
constructor(endpoint
|
|
5
|
+
constructor(endpoint: string, token: string);
|
|
6
6
|
addTag: (tag: Tag) => Promise<any>;
|
|
7
7
|
addTagging: (tagging: Tagging) => Promise<any>;
|
|
8
8
|
addTransaction: (transaction: Transaction) => Promise<any>;
|
|
@@ -7,4 +7,5 @@ export { default as TransactionRow } from './components/shared/transactionlist/T
|
|
|
7
7
|
export { default as TransactionList } from './components/shared/TransactionList';
|
|
8
8
|
export { default as TransactionTable } from './components/shared/TransactionTable';
|
|
9
9
|
export { default as TransactionDetails } from './components/shared/TransactionDetails';
|
|
10
|
+
export { default as AddAccountModal } from './components/transactionwidget/AddAccountModal';
|
|
10
11
|
export { default as TransactionWidget } from './TransactionWidget';
|
package/dist/trends/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mx-cartographer/experiences",
|
|
3
|
-
"version": "3.5.0
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "Library containing experience widgets",
|
|
5
5
|
"main": "dist/index.es.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public"
|
|
11
11
|
},
|
|
12
|
-
"scripts": {
|
|
12
|
+
"scripts": {
|
|
13
13
|
"build": "tsc && vite build",
|
|
14
14
|
"build-storybook": "storybook build -o compiled_docs",
|
|
15
15
|
"dev": "storybook dev -p 8106",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { MonthlyCategoryTotals } from '../../common';
|
|
3
|
-
|
|
4
|
-
interface TrendsTableProps {
|
|
5
|
-
height?: number | string;
|
|
6
|
-
monthlyCategoryTotals: MonthlyCategoryTotals[];
|
|
7
|
-
}
|
|
8
|
-
declare const TrendsTable: React.FC<TrendsTableProps>;
|
|
9
|
-
export default TrendsTable;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { MonthlyCategoryTotals } from '../../common';
|
|
2
|
-
|
|
3
|
-
type DateRange = {
|
|
4
|
-
start: Date;
|
|
5
|
-
end: Date;
|
|
6
|
-
};
|
|
7
|
-
export declare const isIncome: (totals: MonthlyCategoryTotals) => boolean;
|
|
8
|
-
export declare const isPayment: (totals: MonthlyCategoryTotals) => boolean;
|
|
9
|
-
export declare const isTransfer: (totals: MonthlyCategoryTotals) => boolean;
|
|
10
|
-
export declare const isSpend: (totals: MonthlyCategoryTotals) => boolean;
|
|
11
|
-
export declare const getMonthlyTotalsDataset: (totals: MonthlyCategoryTotals[]) => {
|
|
12
|
-
x: string;
|
|
13
|
-
y: number;
|
|
14
|
-
}[][];
|
|
15
|
-
export declare const getMonthlyTotals: (totals: MonthlyCategoryTotals[], range?: DateRange) => {
|
|
16
|
-
x: string;
|
|
17
|
-
y: number;
|
|
18
|
-
}[];
|
|
19
|
-
export declare const getIncomeTotals: (totals: MonthlyCategoryTotals[], range?: DateRange) => {
|
|
20
|
-
y: number;
|
|
21
|
-
x: string;
|
|
22
|
-
}[];
|
|
23
|
-
export declare const getPaymentTotals: (totals: MonthlyCategoryTotals[], range?: DateRange) => {
|
|
24
|
-
y: number;
|
|
25
|
-
x: string;
|
|
26
|
-
}[];
|
|
27
|
-
export declare const getSpendingTotals: (totals: MonthlyCategoryTotals[], range?: DateRange) => {
|
|
28
|
-
x: string;
|
|
29
|
-
y: number;
|
|
30
|
-
}[];
|
|
31
|
-
export declare const getTopLevelCategoryTotals: (totals: MonthlyCategoryTotals[]) => MonthlyCategoryTotals[];
|
|
32
|
-
export {};
|
|
File without changes
|