@mx-cartographer/experiences 6.2.9-alpha.mega4 → 6.3.0-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.
@@ -1,4 +1,2 @@
1
- declare const _default: (() => import("react/jsx-runtime").JSX.Element) & {
2
- displayName: string;
3
- };
4
- export default _default;
1
+ declare const Allocation: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Allocation;
@@ -14,6 +14,7 @@ interface InvestmentDetailsDrawerProps {
14
14
  accountHoldingsData: {
15
15
  accounts: any;
16
16
  holdings: HoldingDetail[];
17
+ members: any;
17
18
  };
18
19
  }
19
20
  declare const InvestmentDetailsDrawer: React.FC<InvestmentDetailsDrawerProps>;
@@ -1,10 +1,12 @@
1
1
  import { Notification } from '../../common';
2
+ import { Types } from '../../settings/components/notifications/NotificationSettings';
2
3
  interface NotificationDrawerProps {
4
+ notificationTypes?: Types[];
3
5
  isOpen: boolean;
4
6
  onClose: () => void;
5
7
  onNotificationClick?: (notification: Notification) => void;
6
8
  }
7
- export declare const NotificationDrawer: (({ isOpen, onClose, onNotificationClick }: NotificationDrawerProps) => import("react/jsx-runtime").JSX.Element) & {
9
+ export declare const NotificationDrawer: (({ notificationTypes, isOpen, onClose, onNotificationClick }: NotificationDrawerProps) => import("react/jsx-runtime").JSX.Element) & {
8
10
  displayName: string;
9
11
  };
10
12
  export {};
@@ -1,3 +1,12 @@
1
- export declare const NotificationSettings: (() => import("react/jsx-runtime").JSX.Element) & {
2
- displayName: string;
3
- };
1
+ import { default as React } from 'react';
2
+ export declare enum Types {
3
+ Accounts = "accounts",
4
+ Budgets = "budgets",
5
+ Insights = "insights",
6
+ Delivery = "delivery"
7
+ }
8
+ interface NotificationSettingsProps {
9
+ notificationTypes?: Types[];
10
+ }
11
+ export declare const NotificationSettings: React.FC<NotificationSettingsProps>;
12
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "6.2.9-alpha.mega4",
3
+ "version": "6.3.0-alpha.mega1",
4
4
  "description": "Library containing experience widgets",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,12 +0,0 @@
1
- import { InvestmentsData } from './InvestmentsAllocationChart';
2
- interface InvestmentAllocationListProps {
3
- data: InvestmentsData;
4
- onSelected: (id: string) => void;
5
- selectedId?: string;
6
- selectedTabs: number;
7
- setSelectedTabs: (value: number) => void;
8
- }
9
- export declare const InvestementAllocationList: (({ data, onSelected, selectedId, selectedTabs, setSelectedTabs, }: InvestmentAllocationListProps) => import("react/jsx-runtime").JSX.Element) & {
10
- displayName: string;
11
- };
12
- export {};
@@ -1,29 +0,0 @@
1
- import { default as React } from 'react';
2
- import { InvestmentsAllocationData } from './util/createInvestementsAllocationData';
3
- export interface DonutData {
4
- id: string;
5
- label?: string;
6
- color: string;
7
- value: number;
8
- }
9
- export interface InvestmentsData {
10
- investmentsData: InvestmentsAllocationData[];
11
- donutData: DonutData[];
12
- totalAmount: number;
13
- totalGainLoss: number;
14
- totalMarketValue: number;
15
- totalGainLossPercentage: number;
16
- }
17
- interface InvestementAllocationProps {
18
- data: InvestmentsData;
19
- hoveredId?: string;
20
- isPercentage?: boolean;
21
- onSelected: (id: string) => void;
22
- onMouseEnter: (id: string) => void;
23
- onMouseLeave: (id: string) => void;
24
- selectedId?: string;
25
- size?: number;
26
- totalLabel: string;
27
- }
28
- export declare const InvestementsAllocationChart: React.FC<InvestementAllocationProps>;
29
- export {};
@@ -1,28 +0,0 @@
1
- import { Account, Holding } from '../../../../common';
2
- import { InvestmentAllocationCopy } from '../../../../common/types/localization/InvestmentsCopy';
3
- import { DonutData } from '../InvestmentsAllocationChart';
4
- export interface InvestmentsAllocationData {
5
- name: string;
6
- displayName: string;
7
- guid: string;
8
- holdings: InvestmentAllocationTotals[];
9
- percentage: number;
10
- value: number;
11
- color: string;
12
- }
13
- export interface InvestmentAllocationTotals {
14
- displayName: string;
15
- name: string;
16
- value: number;
17
- percentage: number;
18
- }
19
- export declare const createInvestmentsAllocationData: (accounts: Account[], copy: InvestmentAllocationCopy, holdings: Holding[]) => {
20
- investmentsData: InvestmentsAllocationData[];
21
- donutData: DonutData[];
22
- totalAmount: number;
23
- totalGainLoss: number;
24
- totalMarketValue: number;
25
- totalGainLossPercentage: number;
26
- };
27
- export declare const percentageDisplay: (value: number) => string | number | undefined;
28
- export declare const currencyDisplay: (value: number) => string;