@mx-cartographer/experiences 6.24.9-alpha.mega1 → 6.24.10-alpha.al0

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,7 @@
1
1
  import { default as React } from 'react';
2
- import { WidgetProps } from '../common';
3
- declare const _default: React.FunctionComponent<WidgetProps>;
2
+ import { WidgetProps, Beat } from '../common';
3
+ interface TrendsWidgetProps extends WidgetProps {
4
+ onInsightCardClick?: (beat?: Beat) => void;
5
+ }
6
+ declare const _default: React.FunctionComponent<TrendsWidgetProps>;
4
7
  export default _default;
@@ -1,4 +1,8 @@
1
- declare const CategoriesList: (() => import("react/jsx-runtime").JSX.Element) & {
2
- displayName: string;
3
- };
1
+ import { default as React } from 'react';
2
+ import { CategoryListItem, Transaction } from '../../common';
3
+ interface CategoriesListProps {
4
+ onListItemClick: (data: CategoryListItem) => void;
5
+ transactions: Transaction[];
6
+ }
7
+ declare const CategoriesList: React.FC<CategoriesListProps>;
4
8
  export default CategoriesList;
@@ -1,10 +1,7 @@
1
1
  import { default as React } from 'react';
2
- interface CategoriesListItemProps {
3
- categoryGuid?: string;
4
- categoryName?: string;
5
- categoryTotal?: string;
6
- onClick: () => void;
7
- transactionCount?: number;
2
+ import { CategoryListItem } from '../../common';
3
+ interface CategoriesListItemProps extends CategoryListItem {
4
+ onClick?: () => void;
8
5
  }
9
6
  declare const CategoriesListItem: React.FC<CategoriesListItemProps>;
10
7
  export default CategoriesListItem;
@@ -0,0 +1,4 @@
1
+ declare const CategoryDetailChart: (() => import("react/jsx-runtime").JSX.Element) & {
2
+ displayName: string;
3
+ };
4
+ export default CategoryDetailChart;
@@ -0,0 +1,7 @@
1
+ interface CategoryDetailProps {
2
+ onClose?: () => void;
3
+ }
4
+ declare const CategoryDetail: (({ onClose }: CategoryDetailProps) => import("react/jsx-runtime").JSX.Element | null) & {
5
+ displayName: string;
6
+ };
7
+ export default CategoryDetail;
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { Transaction } from '../../common';
3
+ interface TransactionsListProps {
4
+ transactions: Transaction[];
5
+ }
6
+ declare const TransactionsList: React.FC<TransactionsListProps>;
7
+ export default TransactionsList;
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ import { DateRange, MonthlyCategoryTotals } from '../../common';
3
+ interface TrendsChartTotalsProps {
4
+ selectedDateRange: DateRange;
5
+ totals: MonthlyCategoryTotals[];
6
+ }
7
+ declare const _default: React.FunctionComponent<TrendsChartTotalsProps>;
8
+ export default _default;
@@ -1,3 +1,7 @@
1
1
  import { default as React } from 'react';
2
- declare const _default: React.FunctionComponent<{}>;
2
+ import { Beat } from '../../common/types/Beat';
3
+ interface TrendsMicroInsightsProps {
4
+ onInsightCardClick?: (beat?: Beat) => void;
5
+ }
6
+ declare const _default: React.FunctionComponent<TrendsMicroInsightsProps>;
3
7
  export default _default;
@@ -1,16 +1,16 @@
1
- import { DetailedCategory, GlobalStore } from '../../common';
1
+ import { CategoryListItem, DetailedCategory, GlobalStore } from '../../common';
2
2
  export declare class TrendsStore {
3
3
  globalStore: GlobalStore;
4
+ selectedCategoryData: CategoryListItem | null;
4
5
  constructor(globalStore: GlobalStore);
5
- sortByTotalDescending: () => {
6
+ setSelectedCategoryData: (category: CategoryListItem | null) => void;
7
+ sortCategoriesList: () => {
6
8
  guid: string;
7
9
  name: string;
8
- totalAmount: number;
10
+ amount: number;
9
11
  }[];
10
12
  get detailedCategories(): DetailedCategory[];
11
- get sortedCategoriesList(): {
12
- guid: string;
13
- name: string;
14
- totalAmount: number;
15
- }[];
13
+ get sortedCategoriesList(): CategoryListItem[];
14
+ get visibleListItems(): CategoryListItem[];
15
+ get collapsedListItems(): CategoryListItem[];
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "6.24.9-alpha.mega1",
3
+ "version": "6.24.10-alpha.al0",
4
4
  "description": "Library containing experience widgets",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",