@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.
Files changed (2) hide show
  1. package/lib/index.d.ts +9 -14
  2. 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 { Module } from "libs/reach/util/common/src/analytics/AnalyticsContextProvider";
2894
- export const AnalyticsModuleContext: import("react").Context<Module>;
2893
+ import { EventModule } from '@livetiles/analytics';
2894
+ export const AnalyticsModuleContext: import("react").Context<EventModule>;
2895
2895
  export const AnalyticsModuleContextProvider: FC<{
2896
- module: 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: Module;
2914
- setModule: Dispatch<SetStateAction<Module>>;
2908
+ module: EventModule;
2909
+ setModule: Dispatch<SetStateAction<EventModule>>;
2915
2910
  }
2916
2911
  interface ActivityAnalytics {
2917
- trackActivity: (scrollContainer?: HTMLElement, moduleOverride?: Module) => Activity | undefined;
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: Module;
2929
- setModule: Dispatch<SetStateAction<Module>>;
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;
package/package.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "main": "",
5
5
  "types": "./index.d.ts",
6
6
  "license": "ISC",
7
- "version": "0.5.0-preview.295",
7
+ "version": "0.5.0-preview.296",
8
8
  "dependencies": {}
9
9
  }