@livetiles/reach-plugin-types 0.5.0-preview.294 → 0.5.0-preview.295

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 +7 -23
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -2844,7 +2844,7 @@ declare module "libs/reach/util/common/src/analytics/analyticsUtils" {
2844
2844
  Chat = "chat",
2845
2845
  Comments = "comments",
2846
2846
  Events = "events",
2847
- GlobalSearch = "globalSearch",
2847
+ Search = "search",
2848
2848
  News = "news",
2849
2849
  Pages = "pages",
2850
2850
  People = "people",
@@ -2898,25 +2898,10 @@ declare module "libs/reach/util/common/src/analytics/AnalyticsModuleContextProvi
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 } from '@livetiles/analytics';
2902
- import { ItemResourceTypes } from "libs/reach/util/common/src/content/index";
2903
- export interface AnalyticsSearchData {
2904
- searchTerm: string;
2905
- results: {
2906
- itemId: string;
2907
- itemType: ItemResourceTypes;
2908
- }[];
2909
- itemRead?: string;
2910
- isGlobalSearch?: boolean;
2911
- }
2912
- export enum AnalyticsSearchEventType {
2913
- search = "search",
2914
- searchSession = "searchSession"
2915
- }
2901
+ import { Activity, Analytics, InteractionProperties, EventSearch } from '@livetiles/analytics';
2916
2902
  export interface SearchAnalytics {
2917
- data: AnalyticsSearchData[];
2918
- onSearchTermChange: (newData: AnalyticsSearchData) => Promise<unknown>;
2919
- trackSearchSession: () => Promise<unknown>;
2903
+ data: EventSearch[];
2904
+ onSearchTermChange: (newData: EventSearch) => Promise<unknown>;
2920
2905
  onItemRead: (itemId: string) => void;
2921
2906
  }
2922
2907
  export interface Module {
@@ -2942,9 +2927,8 @@ declare module "libs/reach/util/common/src/analytics/AnalyticsContextProvider" {
2942
2927
  activity: (payload: import("@livetiles/analytics").ActivityProperties) => Activity;
2943
2928
  module: Module;
2944
2929
  setModule: Dispatch<SetStateAction<Module>>;
2945
- data: AnalyticsSearchData[];
2946
- onSearchTermChange: (newData: AnalyticsSearchData) => Promise<unknown>;
2947
- trackSearchSession: () => Promise<unknown>;
2930
+ data: EventSearch[];
2931
+ onSearchTermChange: (newData: EventSearch) => Promise<unknown>;
2948
2932
  onItemRead: (itemId: string) => void;
2949
2933
  sendActivity: () => void;
2950
2934
  };
@@ -11397,7 +11381,7 @@ declare module "libs/reach/feature/content/src/common/hooks/useAnalyticsSearchTr
11397
11381
  import { Post } from "libs/reach/feature/content/src/posts/utils";
11398
11382
  import { StreamItem } from "libs/reach/feature/content/src/stream/streamUtils";
11399
11383
  import { ItemResourceTypes, PublishableItem } from "libs/reach/util/common/src/index";
11400
- export function useAnalyticsSearchTracking(items?: (PublishableItem | Post | StreamItem)[], disableTracking?: boolean, isGlobalSearch?: boolean, itemType?: ItemResourceTypes): void;
11384
+ export function useAnalyticsSearchTracking(items?: (PublishableItem | Post | StreamItem)[], disableTracking?: boolean, itemType?: ItemResourceTypes): void;
11401
11385
  export function useClearSearchSessionOnLeave(): void;
11402
11386
  }
11403
11387
  declare module "libs/reach/feature/content/src/common/sidebar/SidebarIcon" {
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.294",
7
+ "version": "0.5.0-preview.295",
8
8
  "dependencies": {}
9
9
  }