@atlaskit/collab-provider 7.4.2 → 7.4.3
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.
- package/CHANGELOG.md +6 -0
- package/dist/cjs/analytics/index.js +17 -44
- package/dist/cjs/analytics/performance.js +22 -12
- package/dist/cjs/channel.js +47 -23
- package/dist/cjs/helpers/const.js +21 -9
- package/dist/cjs/provider/index.js +50 -17
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/analytics/index.js +17 -31
- package/dist/es2019/analytics/performance.js +22 -12
- package/dist/es2019/channel.js +38 -10
- package/dist/es2019/helpers/const.js +17 -4
- package/dist/es2019/provider/index.js +37 -8
- package/dist/es2019/version.json +1 -1
- package/dist/esm/analytics/index.js +16 -31
- package/dist/esm/analytics/performance.js +22 -12
- package/dist/esm/channel.js +47 -24
- package/dist/esm/helpers/const.js +17 -4
- package/dist/esm/provider/index.js +51 -19
- package/dist/esm/version.json +1 -1
- package/dist/types/analytics/index.d.ts +3 -7
- package/dist/types/analytics/performance.d.ts +5 -2
- package/dist/types/helpers/const.d.ts +21 -4
- package/package.json +1 -1
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import type { AnalyticsWebClient } from '@atlaskit/analytics-listeners';
|
|
2
2
|
import { GasPurePayload } from '@atlaskit/analytics-gas-types';
|
|
3
|
-
import {
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const triggerAnalyticsForStepsAddedSuccessfully: (analyticsClient?: AnalyticsWebClient | undefined) => void;
|
|
7
|
-
export declare const triggerAnalyticsForStepsRejected: (analyticsClient?: AnalyticsWebClient | undefined, error?: ErrorPayload | undefined) => void;
|
|
8
|
-
export declare const triggerAnalyticsForCatchupFailed: (analyticsClient?: AnalyticsWebClient | undefined, error?: ErrorPayload | undefined) => void;
|
|
9
|
-
export declare const triggerAnalyticsForCatchupSuccessfulWithLatency: (analyticsClient?: AnalyticsWebClient | undefined, latency?: number | undefined) => void;
|
|
3
|
+
import { AnalyticsEvent } from '../helpers/const';
|
|
4
|
+
export declare const fireAnalyticsEvent: (analyticsClient?: AnalyticsWebClient | undefined, payload?: GasPurePayload | undefined) => void;
|
|
5
|
+
export declare const triggerCollabAnalyticsEvent: (analyticsEvent: AnalyticsEvent, analyticsClient?: AnalyticsWebClient | undefined) => void;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
declare type MeasureName = 'callingCatchupApi';
|
|
1
|
+
declare type MeasureName = 'callingCatchupApi' | 'socketConnect' | 'documentInit';
|
|
2
2
|
export declare function startMeasure(measureName: MeasureName): void;
|
|
3
|
-
export declare function stopMeasure(measureName: MeasureName, onMeasureComplete?: (duration: number, startTime: number) => void):
|
|
3
|
+
export declare function stopMeasure(measureName: MeasureName, onMeasureComplete?: (duration: number, startTime: number) => void): {
|
|
4
|
+
duration: number;
|
|
5
|
+
startTime: number;
|
|
6
|
+
} | undefined;
|
|
4
7
|
export declare function clearMeasure(measureName: string): void;
|
|
5
8
|
export {};
|
|
@@ -1,6 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const STEPS_REJECTED = "collabStepsAddedRejected";
|
|
1
|
+
import { ErrorPayload } from '../types';
|
|
3
2
|
export declare const ATTRIBUTES_PACKAGE = "collabProvider";
|
|
4
|
-
export declare const
|
|
5
|
-
export declare
|
|
3
|
+
export declare const EVENT_SUBJECT = "collab";
|
|
4
|
+
export declare enum EVENT_ACTION {
|
|
5
|
+
CONNECTION = "connection",
|
|
6
|
+
CATCHUP = "catchup",
|
|
7
|
+
DOCUMENT_INIT = "documentInit",
|
|
8
|
+
ADD_STEPS = "addSteps"
|
|
9
|
+
}
|
|
10
|
+
export declare enum EVENT_STATUS {
|
|
11
|
+
SUCCESS = "SUCCESS",
|
|
12
|
+
FAILURE = "FAILURE"
|
|
13
|
+
}
|
|
14
|
+
export declare type AnalyticsEvent = {
|
|
15
|
+
eventAction: EVENT_ACTION;
|
|
16
|
+
attributes: {
|
|
17
|
+
eventStatus: EVENT_STATUS;
|
|
18
|
+
meetsSLO?: boolean;
|
|
19
|
+
latency?: number;
|
|
20
|
+
error?: ErrorPayload;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
6
23
|
export declare const ACK_MAX_TRY = 10;
|