@mx-cartographer/experiences 3.13.3 → 3.13.4-alpha.mm3

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.
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { WidgetProps } from '../common';
3
+ export declare const NetWorthWidget: React.FC<WidgetProps>;
@@ -1,7 +1,8 @@
1
1
  import { NetWorth } from '../types/NetWorth';
2
2
  interface NetWorthChartProps {
3
3
  chartData: NetWorth[];
4
- selectedData: NetWorth | null;
4
+ onDataClick: any;
5
+ selectedData?: NetWorth;
5
6
  }
6
7
  declare const _default: import('react').FunctionComponent<NetWorthChartProps>;
7
8
  export default _default;
@@ -1,3 +1,4 @@
1
1
  export { NetWorthStore } from './stores/NetWorthStore';
2
2
  export { default as NetWorthChart } from './components/NetWorthChart';
3
3
  export { default as NetWorthList } from './components/NetWorthList';
4
+ export { NetWorthWidget } from './NetWorthWidget';
@@ -4,7 +4,9 @@ export declare class NetWorthStore {
4
4
  globalStore: GlobalStore;
5
5
  netWorthData: NetWorthData;
6
6
  netWorthChartData: NetWorth[];
7
+ selectedData?: NetWorth;
7
8
  constructor(globalStore: GlobalStore);
8
9
  loadNetWorthData: () => Promise<void>;
9
10
  loadChartData: (numberOfMonths: number) => Promise<void>;
11
+ setSelectedData: (identifier: number) => void;
10
12
  }
@@ -2,6 +2,6 @@ import { Account, Member, MonthlyAccountBalance } from '../../common/types';
2
2
  import { NetWorth } from '../types/NetWorth';
3
3
  export declare const filterAccounts: (accounts: Account[], members: Member[]) => Account[];
4
4
  export declare const flattenBalances: (balances: any, balance: any) => any[];
5
- export declare const getSelectedDataDefault: (chartData: NetWorth[]) => NetWorth | null;
5
+ export declare const getSelectedDataDefault: (chartData: NetWorth[]) => NetWorth | undefined;
6
6
  export declare const sortByYearMonthAscending: (a: MonthlyAccountBalance, b: MonthlyAccountBalance) => number;
7
7
  export declare const buildChartData: (accounts: Account[], monthlyAccountBalances: MonthlyAccountBalance[], numberOfMonths: number) => any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "3.13.3",
3
+ "version": "3.13.4-alpha.mm3",
4
4
  "description": "Library containing experience widgets",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",