@fluid-topics/ft-search-context 1.2.67 → 1.2.69

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.
@@ -1,7 +1,7 @@
1
1
  import { FtSearchPageState } from "./model";
2
2
  import { FtReduxStore, ReduxWatcher } from "@fluid-topics/ft-wc-utils";
3
3
  import { FtSearchPageStateReducers } from "./redux";
4
- import { FtAnalyticsEventPublication, FtSearchResultCluster, FtSearchResultClusterEntry } from "@fluid-topics/public-api";
4
+ import { FtAnalyticsEventDocument, FtSearchResultCluster, FtSearchResultClusterEntry } from "@fluid-topics/public-api";
5
5
  import { FtAnalyticsEventsService } from "@fluid-topics/ft-app-context";
6
6
  export declare class FtAnalyticsSearchEventManager {
7
7
  readonly store: FtReduxStore<FtSearchPageState, FtSearchPageStateReducers>;
@@ -12,13 +12,13 @@ export declare class FtAnalyticsSearchEventManager {
12
12
  enableAnalyticsEvents: boolean;
13
13
  appName: string | undefined;
14
14
  appVersion: string | undefined;
15
- publication: FtAnalyticsEventPublication | undefined;
15
+ document: FtAnalyticsEventDocument | undefined;
16
16
  protected readonly resultsWatcher: ReduxWatcher<FtSearchPageState, FtSearchResultCluster[] | undefined>;
17
17
  constructor(store: FtReduxStore<FtSearchPageState, FtSearchPageStateReducers>, eventService?: FtAnalyticsEventsService);
18
18
  setEnableAnalyticsEvents(enableAnalyticsEvents: boolean): void;
19
19
  setAppName(appName: string): void;
20
20
  setAppVersion(appVersion: string): void;
21
- setDocumentSearch(publication: FtAnalyticsEventPublication): void;
21
+ setDocumentSearch(document: FtAnalyticsEventDocument): void;
22
22
  private canSendEvent;
23
23
  private sendEvent;
24
24
  private sendKhubSearchEvent;
@@ -10,13 +10,13 @@ export class FtAnalyticsSearchEventManager {
10
10
  this.enableAnalyticsEvents = true;
11
11
  this.appName = undefined;
12
12
  this.appVersion = undefined;
13
- this.publication = undefined;
13
+ this.document = undefined;
14
14
  this.sendEvent = (results) => {
15
15
  if (!this.canSendEvent() || !results) {
16
16
  return;
17
17
  }
18
18
  const request = this.store.getState().request;
19
- if (this.publication == undefined) {
19
+ if (this.document == undefined) {
20
20
  this.sendKhubSearchEvent(request, results);
21
21
  }
22
22
  else {
@@ -35,8 +35,8 @@ export class FtAnalyticsSearchEventManager {
35
35
  setAppVersion(appVersion) {
36
36
  this.appVersion = appVersion;
37
37
  }
38
- setDocumentSearch(publication) {
39
- this.publication = publication;
38
+ setDocumentSearch(document) {
39
+ this.document = document;
40
40
  }
41
41
  canSendEvent() {
42
42
  if (this.appName == undefined || this.appVersion == undefined) {
@@ -81,7 +81,7 @@ export class FtAnalyticsSearchEventManager {
81
81
  lastUpdate: getAnalyticsLastUpdate(request.metadataFilters),
82
82
  facets: request.metadataFilters.map(facet => convertMetadataFilterToAnalyticsFacet(facet))
83
83
  },
84
- publication: this.publication
84
+ document: this.document
85
85
  };
86
86
  this.eventsService.sendDocumentSearchEvent(event);
87
87
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-search-context",
3
- "version": "1.2.67",
3
+ "version": "1.2.69",
4
4
  "description": "Context block for integrated search components",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,12 +19,12 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-app-context": "1.2.67",
23
- "@fluid-topics/ft-wc-utils": "1.2.67",
22
+ "@fluid-topics/ft-app-context": "1.2.69",
23
+ "@fluid-topics/ft-wc-utils": "1.2.69",
24
24
  "lit": "3.1.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@fluid-topics/public-api": "1.0.95"
27
+ "@fluid-topics/public-api": "1.0.98"
28
28
  },
29
- "gitHead": "883c4eaa2ce2d80befa30df7781a2cc5f547260f"
29
+ "gitHead": "4adc08533f739641afe426b27feeadd8d84b25a2"
30
30
  }