@mx-cartographer/experiences 6.1.3 → 6.2.0-alpha.al1
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 +4 -0
- package/dist/analytics/SurveyMiniWidget.d.ts +4 -0
- package/dist/analytics/components/OpenTextField.d.ts +4 -0
- package/dist/analytics/components/RatingScale.d.ts +4 -0
- package/dist/analytics/index.d.ts +1 -0
- package/dist/analytics/stores/AnalyticsStore.d.ts +22 -0
- package/dist/common/components/MiniWidgetContainer.d.ts +2 -0
- package/dist/common/context/hooks.d.ts +1 -0
- package/dist/common/stores/AppDataStore.d.ts +1 -0
- package/dist/common/stores/GlobalStore.d.ts +2 -0
- package/dist/common/types/GlobalCopy.d.ts +2 -1
- package/dist/common/types/localization/AnalyticsCopy.d.ts +17 -0
- package/dist/common/types/localization/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +3822 -3593
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -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;
|
@@ -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;
|
@@ -14,6 +14,7 @@ export declare class AppDataStore {
|
|
14
14
|
get user(): User;
|
15
15
|
get userCommunicationProfile(): UserCommunicationProfile;
|
16
16
|
get userProfile(): UserProfile;
|
17
|
+
get environment(): string;
|
17
18
|
loadAppData: () => Promise<void>;
|
18
19
|
loadBanner: () => Promise<void>;
|
19
20
|
setUser: (user: User) => User;
|
@@ -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;
|
@@ -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;
|
@@ -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';
|