@livetiles/reach-plugin-types 0.5.0-preview.421 → 0.5.0-preview.423

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 +37 -39
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -2909,7 +2909,7 @@ declare module "libs/reach/util/common/src/analytics/AnalyticsModuleContextProvi
2909
2909
  }
2910
2910
  declare module "libs/reach/util/common/src/analytics/AnalyticsContextProvider" {
2911
2911
  import { Dispatch, FC, SetStateAction } from 'react';
2912
- import { Activity, Analytics, EventModule, InteractionProperties, EventSearch } from '@livetiles/analytics';
2912
+ import { Analytics, EventModule, InteractionProperties, EventSearch } from '@livetiles/analytics';
2913
2913
  export interface SearchAnalytics {
2914
2914
  data: EventSearch[];
2915
2915
  onSearchTermChange: (newData: EventSearch) => Promise<unknown>;
@@ -2919,24 +2919,18 @@ declare module "libs/reach/util/common/src/analytics/AnalyticsContextProvider" {
2919
2919
  module: EventModule;
2920
2920
  setModule: Dispatch<SetStateAction<EventModule>>;
2921
2921
  }
2922
- interface ActivityAnalytics {
2923
- trackActivity: (scrollContainer?: HTMLElement, moduleOverride?: EventModule) => Activity | undefined;
2924
- sendActivity: () => void;
2925
- }
2926
- export type ReachAnalytics = Analytics & ModuleAnalytics & SearchAnalytics & ActivityAnalytics;
2922
+ export type ReachAnalytics = Analytics & ModuleAnalytics & SearchAnalytics;
2927
2923
  export const AnalyticsContext: import("react").Context<ReachAnalytics>;
2928
2924
  export function useAnalyticsContext(): {
2929
2925
  interaction: (payload: Omit<InteractionProperties, 'module'>) => Promise<void>;
2930
- trackActivity: (scrollContainer?: HTMLElement) => Activity;
2931
2926
  getUser: () => import("@segment/analytics-next").User;
2932
2927
  identify: (userId: string, traits?: Record<string, unknown>) => void;
2933
- activity: (payload: import("@livetiles/analytics").ActivityProperties) => Activity;
2928
+ activity: (payload: import("@livetiles/analytics").ActivityProperties) => import("@livetiles/analytics").Activity;
2934
2929
  module: EventModule;
2935
2930
  setModule: Dispatch<SetStateAction<EventModule>>;
2936
2931
  data: EventSearch[];
2937
2932
  onSearchTermChange: (newData: EventSearch) => Promise<unknown>;
2938
2933
  onItemRead: (itemId: string) => void;
2939
- sendActivity: () => void;
2940
2934
  };
2941
2935
  export const AnalyticsLibraryContextProvider: FC<{
2942
2936
  appName?: string;
@@ -2960,8 +2954,41 @@ declare module "libs/reach/util/common/src/analytics/useAnalyticsViewTrack" {
2960
2954
  export function useAnalyticsViewTrackWithPagination(startTracking: boolean, items: BaseItem[], itemResourceType: ItemResourceTypes): void;
2961
2955
  export function useAnalyticsViewTrack(startTracking: boolean, itemResourceType?: ItemResourceTypes, thresholdPercentageOverride?: number): void;
2962
2956
  }
2957
+ declare module "libs/reach/util/common/src/useModalRouting" {
2958
+ export interface ModalRouting {
2959
+ isActive: boolean;
2960
+ itemId: string;
2961
+ backgroundLocation: any;
2962
+ }
2963
+ export function useModalRouting(): {
2964
+ isModalRoutingActive: boolean;
2965
+ modalItemId: string;
2966
+ backgroundLocation: any;
2967
+ };
2968
+ export function useModalRoutingSettings(): (itemId: string) => {
2969
+ modalRouting: {
2970
+ isActive: boolean;
2971
+ itemId: string;
2972
+ backgroundLocation: {
2973
+ state: {
2974
+ modalRouting: {
2975
+ isActive: boolean;
2976
+ };
2977
+ };
2978
+ pathname: string;
2979
+ search: string;
2980
+ hash: string;
2981
+ key?: string;
2982
+ };
2983
+ };
2984
+ };
2985
+ }
2963
2986
  declare module "libs/reach/util/common/src/analytics/useAnalyticsActivityTrack" {
2964
- export function useAnalyticsActivityTrack(scrollContainer: HTMLElement): void;
2987
+ import { Activity } from '@livetiles/analytics';
2988
+ export function useAnalyticsActivityTrack(scrollContainer?: HTMLElement): {
2989
+ trackActivity: () => Activity;
2990
+ sendActivity: () => void;
2991
+ };
2965
2992
  }
2966
2993
  declare module "libs/reach/util/common/src/analytics/useAnalyticsNavigateTrack" {
2967
2994
  export function useAnalyticsNavigateTrack(): void;
@@ -3755,35 +3782,6 @@ declare module "libs/reach/util/common/src/ForbiddenErrorTriggerAction" {
3755
3782
  static create(): GenericAccessDeniedTriggerAction;
3756
3783
  }
3757
3784
  }
3758
- declare module "libs/reach/util/common/src/useModalRouting" {
3759
- export interface ModalRouting {
3760
- isActive: boolean;
3761
- itemId: string;
3762
- backgroundLocation: any;
3763
- }
3764
- export function useModalRouting(): {
3765
- isModalRoutingActive: boolean;
3766
- modalItemId: string;
3767
- backgroundLocation: any;
3768
- };
3769
- export function useModalRoutingSettings(): (itemId: string) => {
3770
- modalRouting: {
3771
- isActive: boolean;
3772
- itemId: string;
3773
- backgroundLocation: {
3774
- state: {
3775
- modalRouting: {
3776
- isActive: boolean;
3777
- };
3778
- };
3779
- pathname: string;
3780
- search: string;
3781
- hash: string;
3782
- key?: string;
3783
- };
3784
- };
3785
- };
3786
- }
3787
3785
  declare module "libs/reach/util/common/src/ReachQueryClient" {
3788
3786
  import { QueryClient } from '@tanstack/react-query';
3789
3787
  export const ReachQueryClient: QueryClient;
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.421",
7
+ "version": "0.5.0-preview.423",
8
8
  "dependencies": {}
9
9
  }