@fluid-topics/ft-app-context 1.2.34 → 1.2.36
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,6 +1,8 @@
|
|
|
1
|
-
import type { FtDocumentSearchEvent, FtKhubSearchEvent } from "@fluid-topics/public-api";
|
|
1
|
+
import type { FtDocumentSearchEvent, FtDocumentStartDisplayEvent, FtKhubSearchEvent, FtTopicStartDisplayEvent } from "@fluid-topics/public-api";
|
|
2
2
|
import { FtService } from "./FtService";
|
|
3
3
|
export declare class FtAnalyticsEventsService extends FtService {
|
|
4
|
+
sendDocumentStartDisplayEvent(event: FtDocumentStartDisplayEvent): Promise<void>;
|
|
5
|
+
sendTopicStartDisplayEvent(event: FtTopicStartDisplayEvent): Promise<void>;
|
|
4
6
|
sendKhubSearchEvent(event: FtKhubSearchEvent): Promise<void>;
|
|
5
7
|
sendDocumentSearchEvent(event: FtDocumentSearchEvent): Promise<void>;
|
|
6
8
|
}
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
import { FtService } from "./FtService";
|
|
2
2
|
export class FtAnalyticsEventsService extends FtService {
|
|
3
|
+
async sendDocumentStartDisplayEvent(event) {
|
|
4
|
+
return (await this.awaitApi)
|
|
5
|
+
.sendEvents([event])
|
|
6
|
+
.catch(reason => {
|
|
7
|
+
console.info("Failed to send document.start_display event");
|
|
8
|
+
console.debug(reason);
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
async sendTopicStartDisplayEvent(event) {
|
|
12
|
+
return (await this.awaitApi)
|
|
13
|
+
.sendEvents([event])
|
|
14
|
+
.catch(reason => {
|
|
15
|
+
console.info("Failed to send topic.start_display event");
|
|
16
|
+
console.debug(reason);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
3
19
|
async sendKhubSearchEvent(event) {
|
|
4
20
|
return (await this.awaitApi)
|
|
5
21
|
.sendEvents([event])
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-app-context",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.36",
|
|
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": "1.2.
|
|
22
|
+
"@fluid-topics/ft-wc-utils": "1.2.36",
|
|
23
23
|
"lit": "3.1.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@fluid-topics/public-api": "1.0.
|
|
26
|
+
"@fluid-topics/public-api": "1.0.88"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "a4046ed3696479764bf4bd5210100a5eed70f40a"
|
|
29
29
|
}
|