@fluid-topics/ft-app-context 2.0.20 → 2.0.21

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,4 +1,4 @@
1
- import type { FtAnalyticsEventDocument, FtDocumentOnDemandTranslateEvent, FtDocumentSearchEvent, FtDocumentStartDisplayEvent, FtKhubSearchEvent, FtMap, FtSearchPageSelectEvent, FtSearchResultOpenContextMenuEvent, FtTopicStartDisplayEvent } from "@fluid-topics/public-api";
1
+ import type { FtAnalyticsEventDocument, FtDocumentOnDemandTranslateEvent, FtDocumentSearchEvent, FtDocumentStartDisplayEvent, FtKhubSearchEvent, FtMap, FtSearchPageSelectEvent, FtSearchResultOpenContextMenuEvent, FtTopicAiTranslateEvent, FtTopicStartDisplayEvent } from "@fluid-topics/public-api";
2
2
  import { FtServiceWithCache } from "./FtServiceWithCache";
3
3
  export declare class FtAnalyticsEventsService extends FtServiceWithCache {
4
4
  sendDocumentStartDisplayEvent(event: FtDocumentStartDisplayEvent): Promise<string>;
@@ -8,6 +8,7 @@ export declare class FtAnalyticsEventsService extends FtServiceWithCache {
8
8
  sendSearchPageSelectEvent(event: FtSearchPageSelectEvent): Promise<string>;
9
9
  sendSearchResultOpenContextMenuEvent(event: FtSearchResultOpenContextMenuEvent): Promise<string>;
10
10
  sendDocumentOnDemandTranslateEvent(event: FtDocumentOnDemandTranslateEvent): Promise<string>;
11
+ sendTopicAiTranslateEvent(event: FtTopicAiTranslateEvent): Promise<string>;
11
12
  convertMapToAnalyticsDocument(map: FtMap): FtAnalyticsEventDocument;
12
13
  private sortEventArrays;
13
14
  private sendEvents;
@@ -19,7 +19,10 @@ export class FtAnalyticsEventsService extends FtServiceWithCache {
19
19
  return this.sendEvents([this.sortEventArrays(event)], "Failed to send search_result.open_context_menu event");
20
20
  }
21
21
  async sendDocumentOnDemandTranslateEvent(event) {
22
- return this.sendEvents([this.sortEventArrays(event)], "Failed to send document.on-demand_translate event");
22
+ return this.sendEvents([this.sortEventArrays(event)], "Failed to send document.on_demand_translate event");
23
+ }
24
+ async sendTopicAiTranslateEvent(event) {
25
+ return this.sendEvents([this.sortEventArrays(event)], "Failed to send topic.ai_translate event");
23
26
  }
24
27
  convertMapToAnalyticsDocument(map) {
25
28
  let documentType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-app-context",
3
- "version": "2.0.20",
3
+ "version": "2.0.21",
4
4
  "description": "Global application context for Fluid Topics integrations",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,11 +19,11 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-wc-utils": "2.0.20",
22
+ "@fluid-topics/ft-wc-utils": "2.0.21",
23
23
  "lit": "3.1.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@fluid-topics/public-api": "1.0.120"
26
+ "@fluid-topics/public-api": "1.0.121"
27
27
  },
28
- "gitHead": "c76ecad8c5bc04964ad8f7c42ab93c285189601e"
28
+ "gitHead": "3daf4c51496f7b8ef227e5e7e0ed0a03bfbbb9fc"
29
29
  }