@livetiles/reach-plugin-types 0.5.0-preview.295 → 0.5.0-preview.296
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/lib/index.d.ts +9 -14
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -2890,31 +2890,26 @@ declare module "libs/reach/util/common/src/analytics/useIframeInteraction" {
|
|
|
2890
2890
|
}
|
|
2891
2891
|
declare module "libs/reach/util/common/src/analytics/AnalyticsModuleContextProvider" {
|
|
2892
2892
|
import { FC } from 'react';
|
|
2893
|
-
import {
|
|
2894
|
-
export const AnalyticsModuleContext: import("react").Context<
|
|
2893
|
+
import { EventModule } from '@livetiles/analytics';
|
|
2894
|
+
export const AnalyticsModuleContext: import("react").Context<EventModule>;
|
|
2895
2895
|
export const AnalyticsModuleContextProvider: FC<{
|
|
2896
|
-
module:
|
|
2896
|
+
module: EventModule;
|
|
2897
2897
|
}>;
|
|
2898
2898
|
}
|
|
2899
2899
|
declare module "libs/reach/util/common/src/analytics/AnalyticsContextProvider" {
|
|
2900
2900
|
import { Dispatch, FC, SetStateAction } from 'react';
|
|
2901
|
-
import { Activity, Analytics, InteractionProperties, EventSearch } from '@livetiles/analytics';
|
|
2901
|
+
import { Activity, Analytics, EventModule, InteractionProperties, EventSearch } from '@livetiles/analytics';
|
|
2902
2902
|
export interface SearchAnalytics {
|
|
2903
2903
|
data: EventSearch[];
|
|
2904
2904
|
onSearchTermChange: (newData: EventSearch) => Promise<unknown>;
|
|
2905
2905
|
onItemRead: (itemId: string) => void;
|
|
2906
2906
|
}
|
|
2907
|
-
export interface Module {
|
|
2908
|
-
type: string;
|
|
2909
|
-
subtype?: string;
|
|
2910
|
-
value?: string;
|
|
2911
|
-
}
|
|
2912
2907
|
export interface ModuleAnalytics {
|
|
2913
|
-
module:
|
|
2914
|
-
setModule: Dispatch<SetStateAction<
|
|
2908
|
+
module: EventModule;
|
|
2909
|
+
setModule: Dispatch<SetStateAction<EventModule>>;
|
|
2915
2910
|
}
|
|
2916
2911
|
interface ActivityAnalytics {
|
|
2917
|
-
trackActivity: (scrollContainer?: HTMLElement, moduleOverride?:
|
|
2912
|
+
trackActivity: (scrollContainer?: HTMLElement, moduleOverride?: EventModule) => Activity | undefined;
|
|
2918
2913
|
sendActivity: () => void;
|
|
2919
2914
|
}
|
|
2920
2915
|
export type ReachAnalytics = Analytics & ModuleAnalytics & SearchAnalytics & ActivityAnalytics;
|
|
@@ -2925,8 +2920,8 @@ declare module "libs/reach/util/common/src/analytics/AnalyticsContextProvider" {
|
|
|
2925
2920
|
getUser: () => import("@segment/analytics-next").User;
|
|
2926
2921
|
identify: (userId: string, traits?: Record<string, unknown>) => Promise<void>;
|
|
2927
2922
|
activity: (payload: import("@livetiles/analytics").ActivityProperties) => Activity;
|
|
2928
|
-
module:
|
|
2929
|
-
setModule: Dispatch<SetStateAction<
|
|
2923
|
+
module: EventModule;
|
|
2924
|
+
setModule: Dispatch<SetStateAction<EventModule>>;
|
|
2930
2925
|
data: EventSearch[];
|
|
2931
2926
|
onSearchTermChange: (newData: EventSearch) => Promise<unknown>;
|
|
2932
2927
|
onItemRead: (itemId: string) => void;
|