@mx-cartographer/experiences 3.16.2 → 3.16.4-alpha.JB0

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 CHANGED
@@ -1,3 +1,11 @@
1
+ ## [3.16.4] - 12-09-2024
2
+
3
+ - **REMOVED** - Mobx from Insights SettingsDrawer
4
+
5
+ ## [3.16.3] - 12-06-2024
6
+
7
+ - **UPDATED** - Bubble logic to show loader until data is ready
8
+
1
9
  ## [3.16.2] - 12-04-2024
2
10
 
3
11
  - **REMOVED** - Theme provider from settings drawer and accounts drawer
@@ -1,8 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { SimulationNodeDatum } from 'd3-force';
3
3
  import { DetailedBudget } from '../../common';
4
- export interface BubbleData extends SimulationNodeDatum {
5
- budget_guid: string;
4
+ export interface BubbleData extends DetailedBudget, SimulationNodeDatum {
6
5
  radius: number;
7
6
  }
8
7
  interface BubbleChartProps {
@@ -1,10 +1,9 @@
1
- import { default as React } from 'react';
2
- import { BubbleData } from '../BubbleChart';
3
1
  import { DetailedBudget } from '../../../common';
2
+ import { BubbleData } from '../BubbleChart';
4
3
  interface BubbleProps {
5
4
  bubble: BubbleData;
6
5
  isDraggable: boolean;
7
6
  onClick?: (budget: DetailedBudget) => void;
8
7
  }
9
- export declare const Bubble: React.FC<BubbleProps>;
8
+ export declare function Bubble({ bubble, isDraggable, onClick }: BubbleProps): import("react/jsx-runtime").JSX.Element | undefined;
10
9
  export {};
@@ -1,9 +1,6 @@
1
- import { default as React } from 'react';
2
1
  import { BubbleData } from '../BubbleChart';
3
- import { DetailedBudget } from '../../../common';
4
2
  interface MercuryProps {
5
3
  bubble: BubbleData;
6
- budget: DetailedBudget;
7
4
  }
8
- export declare const Mercury: React.FC<MercuryProps>;
5
+ export declare function Mercury({ bubble }: MercuryProps): import("react/jsx-runtime").JSX.Element;
9
6
  export {};
@@ -1,5 +1,5 @@
1
1
  import { Theme } from '@mui/system';
2
- import { Account, Budget, Category, CategoryTotal, DateRange, DetailedBudget, DetailedCategory, CategoryApi, GlobalStore } from '../../common';
2
+ import { Budget, Category, DateRange, DetailedBudget, DetailedCategory, CategoryApi, GlobalStore } from '../../common';
3
3
  import { BudgetsApi } from '../api/BudgetsApi';
4
4
  export declare class BudgetsStore {
5
5
  api: BudgetsApi;
@@ -7,7 +7,6 @@ export declare class BudgetsStore {
7
7
  globalStore: GlobalStore;
8
8
  dateRange: DateRange;
9
9
  budgets: Budget[];
10
- categoryTotals: CategoryTotal[];
11
10
  selectedBudget: DetailedBudget | undefined;
12
11
  selectedSubBudget: DetailedBudget | undefined;
13
12
  theme: Theme;
@@ -18,9 +17,7 @@ export declare class BudgetsStore {
18
17
  get totalBudgeted(): number;
19
18
  addBudget: (category: Category, amount: number, parentGuid?: string | null) => Promise<void>;
20
19
  deleteBudget: (guid: string) => Promise<void>;
21
- generateBudgets: () => Promise<void>;
22
20
  loadBudgets: () => Promise<void>;
23
- loadCategoryTotals: (accounts: Account[], dateRange: DateRange) => Promise<void>;
24
21
  setDateRange: (dateRange: DateRange) => DateRange;
25
22
  setSelectedBudget: (budget: DetailedBudget | undefined) => DetailedBudget | undefined;
26
23
  setSelectedSubBudget: (budget: DetailedBudget | undefined) => DetailedBudget | undefined;
@@ -1,9 +1,8 @@
1
1
  import { Simulation } from 'd3';
2
- import { SimulationNodeDatum } from 'd3-force';
3
2
  import { BubbleData } from '../components/BubbleChart';
4
3
  import { DetailedBudget } from '../../common';
5
4
  import * as d3 from 'd3';
6
- export type SimulationType = Simulation<SimulationNodeDatum, undefined>;
5
+ export type SimulationType = Simulation<BubbleData, undefined>;
7
6
  /**
8
7
  * Enables dragging of bubbles
9
8
  * @param simulation D3 Simulation
@@ -11,10 +10,9 @@ export type SimulationType = Simulation<SimulationNodeDatum, undefined>;
11
10
  export declare const drag: (simulation: SimulationType) => d3.DragBehavior<Element, unknown, unknown>;
12
11
  /**
13
12
  * Provide d values for the arc between the start and end radius based on time
14
- * @param budget Budget data
15
- * @param data Bubble data
13
+ * @param bubble Bubble data
16
14
  */
17
- export declare const arcTween: (budget: DetailedBudget, data: BubbleData) => (t: number) => string;
15
+ export declare const arcTween: (bubble: BubbleData) => (t: number) => string;
18
16
  /**
19
17
  * Enable drag
20
18
  * @param simulation D3 Simulation
@@ -30,6 +28,6 @@ export declare const resize: (simulation: SimulationType, height: number, width:
30
28
  export declare const getScale: (min: number, max: number) => d3.ScaleLinear<number, number, never>;
31
29
  /**
32
30
  * Simulates the chart
33
- * @param data All Bubble data for the chart
31
+ * @param budgets Budget data
34
32
  */
35
- export declare const simulate: (data: BubbleData[]) => d3.Simulation<d3.SimulationNodeDatum, undefined>;
33
+ export declare const simulate: (budgets: DetailedBudget[]) => d3.Simulation<BubbleData, undefined>;
@@ -18,6 +18,7 @@ export declare class CategoryStore {
18
18
  loadCategories: () => Promise<void>;
19
19
  loadDateRangeCategoryTotals: (accounts: Account[], startDate: Date, endDate: Date) => Promise<void>;
20
20
  loadMonthlyCategoryTotals: (accounts?: Account[], startDate?: Date, endDate?: Date) => Promise<void>;
21
+ reloadCategoryTotals: (accounts: Account[], startDate: Date, endDate: Date) => Promise<void>;
21
22
  removeCategory: (guid: string) => Promise<void>;
22
23
  setIsLoadingCategoryTotals: (isLoading: boolean) => void;
23
24
  updateCategory: (category: Category) => Promise<void>;
@@ -6,6 +6,7 @@ export type CopyObject = {
6
6
  interface DrawerProps {
7
7
  ariaLabelClose?: string;
8
8
  className?: string;
9
+ disablePortal?: boolean;
9
10
  id?: string;
10
11
  isOpen: boolean;
11
12
  isPrimaryDisabled?: boolean;
@@ -16,6 +16,9 @@ export declare const ANALYTICS_EVENTS: {
16
16
  BUDGETS_VIEW: string;
17
17
  CASH_FLOW_CLICK_SETTINGS: string;
18
18
  CASH_FLOW_CLICK_FILTER: string;
19
+ GOALS_VIEW: string;
20
+ GOALS_CLICK_FILTER: string;
21
+ GOALS_CLICK_ADD: string;
19
22
  RECURRING_ACTIVITY_CLICK_SETTINGS: string;
20
23
  RECURRING_ACTIVITY_CLICK_FILTER: string;
21
24
  RECURRING_ACTIVITY_CLICK_UPCOMING: string;
@@ -0,0 +1,4 @@
1
+ import { WidgetProps } from '../common';
2
+ export declare const GoalsWidget: (({ onBackClick, sx }: WidgetProps) => import("react/jsx-runtime").JSX.Element) & {
3
+ displayName: string;
4
+ };
@@ -0,0 +1 @@
1
+ export declare const DebtGoals: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const RetirementGoals: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const SavingGoals: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ interface TabTitleProps {
2
+ title: string;
3
+ subtitle: string;
4
+ }
5
+ export declare function TabTitle({ title, subtitle }: TabTitleProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1,2 +1,2 @@
1
- export { default as GoalsWidget } from './components/GoalsWidget';
1
+ export { GoalsWidget } from './GoalsWidget';
2
2
  export { GoalStore } from './stores/GoalStore';