@mx-cartographer/experiences 3.9.0-alpha.bb1 → 3.9.0-alpha.sms2
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 +6 -0
- package/dist/budgets/components/BubbleBudgets.d.ts +2 -2
- package/dist/budgets/components/BubbleChart.d.ts +10 -3
- package/dist/budgets/components/bubblechart/Bubble.d.ts +1 -2
- package/dist/budgets/index.d.ts +0 -1
- package/dist/budgets/store/BudgetsStore.d.ts +3 -6
- package/dist/budgets/utils/Budget.d.ts +10 -4
- package/dist/common/api/AnalyticsApi.d.ts +1 -1
- package/dist/common/types/Analytics.d.ts +23 -9
- package/dist/common/types/Budget.d.ts +0 -16
- package/dist/common/utils/Analytics.d.ts +1 -1
- package/dist/index.es.js +4096 -4360
- package/dist/index.es.js.map +1 -1
- package/dist/microinsights/analytics.d.ts +2 -2
- package/dist/microinsights/components/insightsmicrowidget/InsightsMicroWidget.d.ts +1 -0
- package/dist/microinsights/stores/AppStore.d.ts +1 -1
- package/dist/microinsights/stores/InsightsMicroWidgetStore.d.ts +9 -3
- package/package.json +1 -1
- package/dist/budgets/BubbleBudgetsWidget.d.ts +0 -3
- package/dist/budgets/components/BudgetDetails.d.ts +0 -7
- package/dist/budgets/components/BudgetList.d.ts +0 -7
- package/dist/budgets/components/Overview.d.ts +0 -3
- package/dist/budgets/components/budgetlist/BudgetRow.d.ts +0 -8
- package/dist/budgets/components/budgetlist/SubBudgetRow.d.ts +0 -7
- package/dist/budgets/components/budgetlist/SubBudgetZeroState.d.ts +0 -1
- /package/dist/budgets/utils/{BubblesSVG.d.ts → buildBubblesSVG.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { analyticsSession } from '../common';
|
|
2
2
|
export type AnalyticSession = Awaited<ReturnType<typeof analyticsSession>>;
|
|
3
|
-
export declare const onAnalyticEvent: (event: string, session: AnalyticSession
|
|
4
|
-
export declare const onAnalyticPageView: (page: string, session: AnalyticSession
|
|
3
|
+
export declare const onAnalyticEvent: (event: string, session: AnalyticSession) => Promise<any>;
|
|
4
|
+
export declare const onAnalyticPageView: (page: string, session: AnalyticSession) => Promise<any>;
|
|
@@ -5,6 +5,7 @@ export interface InsightsMicroWidgetProps extends MicroWidgetProps {
|
|
|
5
5
|
areBeatsLoading: boolean;
|
|
6
6
|
beats: Beat[];
|
|
7
7
|
endpoint: string;
|
|
8
|
+
logOutUser: () => void;
|
|
8
9
|
onEvent?: (event?: string | undefined) => void;
|
|
9
10
|
onPageview?: (event?: string | undefined) => void;
|
|
10
11
|
token: string;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
import { AnalyticSession } from '../analytics';
|
|
1
2
|
import { BeatApi } from '../../common/api/BeatApi';
|
|
2
3
|
import { Beat } from '../../common';
|
|
4
|
+
export interface ErrPromise<TSuccess, TError = unknown> {
|
|
5
|
+
then<TResult1 = TSuccess, TResult2 = never>(onfulfilled?: ((value: TSuccess) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: TError) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
|
|
6
|
+
catch<TResult = never>(onrejected?: ((reason: TError) => TResult | PromiseLike<TResult>) | undefined | null): Promise<TSuccess | TResult>;
|
|
7
|
+
}
|
|
3
8
|
export declare class InsightsMicroWidgetStore {
|
|
4
|
-
onAnalyticEvent: (event: string, session:
|
|
5
|
-
onAnalyticPageView: (
|
|
9
|
+
onAnalyticEvent: (event: string, session: AnalyticSession) => ErrPromise<string, AnalyticSession>;
|
|
10
|
+
onAnalyticPageView: (event: string, session: AnalyticSession) => ErrPromise<string, AnalyticSession>;
|
|
6
11
|
beatApi: BeatApi;
|
|
7
|
-
|
|
12
|
+
constructor();
|
|
13
|
+
initialize: (endpoint: string, token: string, logOutUser: () => void) => Promise<void>;
|
|
8
14
|
updateBeat: (beat: Beat) => Promise<void>;
|
|
9
15
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { DetailedBudget } from '../../../common/types/Budget';
|
|
3
|
-
interface BudgetRowProps {
|
|
4
|
-
budget: DetailedBudget;
|
|
5
|
-
onClick?: (budget: DetailedBudget) => void;
|
|
6
|
-
}
|
|
7
|
-
export declare const BudgetRow: React.FC<BudgetRowProps>;
|
|
8
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SubBudgetZeroState: () => import("react/jsx-runtime").JSX.Element;
|
|
File without changes
|