@mx-cartographer/experiences 6.1.3 → 6.2.0-alpha-investments-widget

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,7 @@
1
+ ## [6.2.0] - 05-21-2025
2
+
3
+ - **ADDED** - Analytics | Survey MiniWidget
4
+
1
5
  ## [6.1.3] - 05-21-2025
2
6
 
3
7
  - **CHANGED** - Notification profiles to hide Delivery Method section when all are disabled
@@ -0,0 +1,4 @@
1
+ declare const _default: (() => import("react/jsx-runtime").JSX.Element | null) & {
2
+ displayName: string;
3
+ };
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ declare const _default: (() => import("react/jsx-runtime").JSX.Element) & {
2
+ displayName: string;
3
+ };
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ declare const _default: (() => import("react/jsx-runtime").JSX.Element) & {
2
+ displayName: string;
3
+ };
4
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as SurveyMiniWidget } from './SurveyMiniWidget';
@@ -0,0 +1,22 @@
1
+ import { Survey, SurveyQuestion } from 'posthog-js';
2
+ import { GlobalStore } from '../../common/stores/GlobalStore';
3
+ export declare class AnalyticsStore {
4
+ globalStore: GlobalStore;
5
+ survey: Survey | null;
6
+ currentQuestionIndex: number;
7
+ question: SurveyQuestion | null;
8
+ response: number | string | null;
9
+ responses: Record<string, number | string | null>;
10
+ constructor(globalStore: GlobalStore);
11
+ get isLastQuestion(): boolean;
12
+ get questionCount(): string;
13
+ get responsePayload(): {
14
+ $survey_id: string;
15
+ };
16
+ get surveyId(): "0196caa6-9b37-0000-98a7-f04e8d56faf5" | "0196a6b0-ccde-0000-b980-0b84ea2fef4a";
17
+ get surveyQuestions(): SurveyQuestion[];
18
+ loadSurvey: (forceReload?: boolean) => void;
19
+ nextQuestion: () => void;
20
+ resetStore: () => void;
21
+ setResponse: (response: number | string | null) => void;
22
+ }
@@ -2,6 +2,8 @@ import { default as React } from 'react';
2
2
  import { SxProps } from '@mui/material/styles';
3
3
  interface CardContainerProps {
4
4
  className?: string;
5
+ closeLabel?: string;
6
+ onClose?: () => void;
5
7
  onPrimaryCtaClick?: () => void;
6
8
  primaryCtaLabel?: string;
7
9
  subTitle?: string;
@@ -7,7 +7,10 @@ export interface DonutData {
7
7
  }
8
8
  export interface DonutProps {
9
9
  data: DonutData[];
10
+ hoveredId?: string;
10
11
  onClick?: (id: string) => void;
12
+ onMouseEnter?: (id: string) => void;
13
+ onMouseLeave?: (id: string) => void;
11
14
  selectedId?: string;
12
15
  size?: number;
13
16
  }
@@ -1,6 +1,7 @@
1
1
  export declare const useGlobalDataContext: (providerName?: string) => import('./GlobalDataProvider').GlobalStoreContextTypes;
2
2
  export declare const useAccountStore: () => import('../..').AccountStore;
3
3
  export declare const useAppConfig: () => import('..').AppConfig;
4
+ export declare const useAnalyticsStore: () => import('../../analytics/stores/AnalyticsStore').AnalyticsStore;
4
5
  export declare const useBudgetsStore: () => import('../../budgets/store/BudgetsStore').BudgetsStore;
5
6
  export declare const useCashflowStore: () => import('../..').CashflowStore;
6
7
  export declare const useCategoryStore: () => import('../..').CategoryStore;
@@ -1,4 +1,5 @@
1
1
  import { AccountStore } from '../../accounts';
2
+ import { AnalyticsStore } from '../../analytics/stores/AnalyticsStore';
2
3
  import { BeatStore } from '../../insights/store/BeatStore';
3
4
  import { BudgetsStore } from '../../budgets/store/BudgetsStore';
4
5
  import { CashflowStore } from '../../cashflow';
@@ -26,6 +27,7 @@ export declare class GlobalStore {
26
27
  sessionToken: string;
27
28
  accountStore: AccountStore;
28
29
  appDataStore: AppDataStore;
30
+ analyticsStore: AnalyticsStore;
29
31
  beatStore: BeatStore;
30
32
  budgetsStore: BudgetsStore;
31
33
  cashflowStore: CashflowStore;
@@ -17,6 +17,7 @@ export type Config = {
17
17
  };
18
18
  export type App = {
19
19
  config: Config;
20
+ postHogPublicKey?: string;
20
21
  };
21
22
  declare global {
22
23
  interface Window {
@@ -1,6 +1,7 @@
1
- import { AccountsCopy, BudgetsCopy, CashflowCopy, CategoryCopy, CommonCopy, ConnectCopy, DebtsCopy, GoalsCopy, HelpCopy, InsightsFeedCopy, InvestmentsCopy, MicroInsightsCopy, NetWorthCopy, NotificationsCopy, RecurringCopy, SettingsCopy, SpendingCopy, TransactionsCopy, TrendsCopy } from './localization';
1
+ import { AccountsCopy, AnalyticsCopy, BudgetsCopy, CashflowCopy, CategoryCopy, CommonCopy, ConnectCopy, DebtsCopy, GoalsCopy, HelpCopy, InsightsFeedCopy, InvestmentsCopy, MicroInsightsCopy, NetWorthCopy, NotificationsCopy, RecurringCopy, SettingsCopy, SpendingCopy, TransactionsCopy, TrendsCopy } from './localization';
2
2
  export interface GlobalCopy {
3
3
  accounts: AccountsCopy;
4
+ analytics: AnalyticsCopy;
4
5
  budgets: BudgetsCopy;
5
6
  cashflow: CashflowCopy;
6
7
  categories: CategoryCopy;
@@ -25,6 +25,7 @@ export interface Holding {
25
25
  mid_core_weight: number;
26
26
  mid_growth_weight: number;
27
27
  mid_value_weight: number;
28
+ name: string;
28
29
  purchase_price: number;
29
30
  small_core_weight: number;
30
31
  small_growth_weight: number;
@@ -0,0 +1,17 @@
1
+ export interface AnalyticsCopy {
2
+ continue: string;
3
+ dashboard_page_easy_to_use: string;
4
+ dashboard_page_meets_my_needs: string;
5
+ feedback: string;
6
+ feedback_sent_error: string;
7
+ feedback_sent_successfully: string;
8
+ improve_experience: string;
9
+ let_us_know: string;
10
+ other_feedback: string;
11
+ strongly_agree: string;
12
+ strongly_disagree: string;
13
+ submit_feedback: string;
14
+ thank_you: string;
15
+ try_again: string;
16
+ your_feedback_matters: string;
17
+ }
@@ -1,6 +1,7 @@
1
1
  export type { AccountFilterCopy } from './AccountFilterCopy';
2
2
  export type { AccountsCopy } from './AccountsCopy';
3
3
  export type { AccountTypeCopy } from './AccountTypeCopy';
4
+ export type { AnalyticsCopy } from './AnalyticsCopy';
4
5
  export type { BudgetsCopy } from './BudgetsCopy';
5
6
  export type { CashflowCopy } from './CashflowCopy';
6
7
  export type { CategoryCopy } from './CategoryCopy';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './accounts';
2
+ export * from './analytics';
2
3
  export * from './budgets';
3
4
  export * from './cashflow';
4
5
  export * from './categories';