@mx-cartographer/experiences 6.2.3-alpha.bb4 → 6.2.3-alpha.mega1

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,6 @@
1
+ interface AnalysisDetailsProps {
2
+ analysisType: 'stocks' | 'bonds';
3
+ setAnalysisType: (type: 'stocks' | 'bonds') => void;
4
+ }
5
+ declare const AnalysisDetails: React.FC<AnalysisDetailsProps>;
6
+ export default AnalysisDetails;
@@ -0,0 +1,7 @@
1
+ interface InfoTooltipProps {
2
+ placement?: 'top' | 'bottom' | 'left' | 'right';
3
+ tooltip_info_body: string;
4
+ tooltip_info_title: string;
5
+ }
6
+ declare const InfoTooltip: React.FC<InfoTooltipProps>;
7
+ export default InfoTooltip;
@@ -0,0 +1,24 @@
1
+ export declare const EquityClassificationValues: {
2
+ 1: string;
3
+ 2: string;
4
+ 3: string;
5
+ 4: string;
6
+ 5: string;
7
+ 6: string;
8
+ 7: string;
9
+ 8: string;
10
+ 9: string;
11
+ 0: string;
12
+ };
13
+ export declare const FixedIncomeClassificationValues: {
14
+ 0: string;
15
+ 1: string;
16
+ 2: string;
17
+ 3: string;
18
+ 4: string;
19
+ 5: string;
20
+ 6: string;
21
+ 7: string;
22
+ 8: string;
23
+ 9: string;
24
+ };
@@ -6,6 +6,7 @@ export declare class HoldingStore {
6
6
  holdings: Holding[];
7
7
  holdingsLoaded: boolean;
8
8
  constructor(globalStore: GlobalStore);
9
+ get holdingsChartData(): any;
9
10
  loadHoldings: () => Promise<void>;
10
11
  updateHoldings: (holding: Holding) => Promise<void>;
11
12
  }
@@ -0,0 +1,15 @@
1
+ import { Holding } from '../../common';
2
+ type WeightMap = Record<string, number>;
3
+ export declare const extractStockWeight: (stock: Holding) => WeightMap;
4
+ export declare const extractBondWeight: (bond: Holding) => WeightMap;
5
+ export declare const getHoldingValue: (holding: Holding) => number;
6
+ export declare const extractValueFromWeight: (holding: Holding, extractWeightFn: (h: Holding) => WeightMap, classificationValues: Record<string, string>) => WeightMap;
7
+ export declare const extractStockValueFromWeight: (stock: Holding) => WeightMap;
8
+ export declare const extractBondValueFromWeight: (bond: Holding) => WeightMap;
9
+ export declare const getValidStockHoldings: (holdings: Holding[]) => Holding[];
10
+ export declare const getValidBondHoldings: (holdings: Holding[]) => Holding[];
11
+ export declare const getChartData: (holdings: Holding[]) => any;
12
+ type AnalysisType = 'stocks' | 'bonds';
13
+ type InputData = Record<string, number>;
14
+ export declare const mapDataToPercentageGrid: (data: Record<AnalysisType, InputData>, analysisType: AnalysisType) => string[][];
15
+ export {};
@@ -1,4 +1,4 @@
1
- import { GlobalStore, Recurrence, RepeatingTransaction, Transaction } from '../../common';
1
+ import { Recurrence, RepeatingTransaction, Transaction, GlobalStore } from '../../common';
2
2
  import { RepeatingTransactionsApi } from '../api/RepeatingTransactionsApi';
3
3
  export declare class RecurringTransactionsStore {
4
4
  globalStore: GlobalStore;
@@ -14,7 +14,6 @@ export declare class RecurringTransactionsStore {
14
14
  get expenses(): Recurrence[];
15
15
  get paidExpenses(): Recurrence[];
16
16
  get missedExpenses(): Recurrence[];
17
- get upcomingExpenses(): Recurrence[];
18
17
  get income(): Recurrence[];
19
18
  get paidIncome(): Recurrence[];
20
19
  get upcomingIncome(): Recurrence[];
@@ -24,7 +23,6 @@ export declare class RecurringTransactionsStore {
24
23
  get incomeTotal(): number;
25
24
  get paidIncomeTotal(): number;
26
25
  get projectedIncome(): number;
27
- get nextIncomeRecurrence(): Recurrence | undefined;
28
26
  get selectedDayRecurrences(): Recurrence[] | undefined;
29
27
  setSelectedDay: (day: Date) => void;
30
28
  loadRepeatingTransactions: () => Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "6.2.3-alpha.bb4",
3
+ "version": "6.2.3-alpha.mega1",
4
4
  "description": "Library containing experience widgets",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",