@coralogix/browser 2.4.1 → 2.6.0
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 +18 -0
- package/index.esm2.js +621 -618
- package/package.json +1 -1
- package/sessionRecorder.esm.js +666 -582
- package/src/constants.d.ts +1 -1
- package/src/instrumentations/instrumentation.consts.d.ts +4 -0
- package/src/types.d.ts +10 -2
- package/src/utils/compatibility.d.ts +1 -0
- package/src/version.d.ts +1 -1
package/src/constants.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ export declare const INSTRUMENTATIONS: readonly [{
|
|
|
48
48
|
readonly disable: false;
|
|
49
49
|
}, {
|
|
50
50
|
readonly Instrument: typeof CoralogixUserInteractionInstrumentation;
|
|
51
|
-
readonly confKey: "
|
|
51
|
+
readonly confKey: "user-interaction";
|
|
52
52
|
readonly disable: false;
|
|
53
53
|
}, {
|
|
54
54
|
readonly Instrument: typeof CoralogixWebVitalsInstrumentation;
|
|
@@ -9,6 +9,10 @@ export declare const DOM_INSTRUMENTATION_NAME = "dom";
|
|
|
9
9
|
export declare const DOM_INSTRUMENTATION_VERSION = "1.0.0";
|
|
10
10
|
export declare const CUSTOM_MEASUREMENT_INSTRUMENTATION_NAME = "custom_measurement";
|
|
11
11
|
export declare const CUSTOM_MEASUREMENT_INSTRUMENTATION_VERSION = "1.0.0";
|
|
12
|
+
export declare const XHR_INSTRUMENTATION_NAME = "xhr";
|
|
13
|
+
export declare const FETCH_INSTRUMENTATION_NAME = "fetch";
|
|
14
|
+
export declare const CUSTOM_INSTRUMENTATION_NAME = "custom";
|
|
15
|
+
export declare const SESSION_RECORDING_INSTRUMENTATION_NAME = "session_recording";
|
|
12
16
|
export declare const ALL_WEB_VITALS_METRICS: CoralogixWebVitalsMetrics;
|
|
13
17
|
export declare const LONGTASK_DURATION = 50;
|
|
14
18
|
export declare const INTERNAL_INSTRUMENTATION_NAME = "internal";
|
package/src/types.d.ts
CHANGED
|
@@ -440,8 +440,8 @@ export declare enum OtelNetworkAttrs {
|
|
|
440
440
|
RESPONSE_CONTENT_LENGTH = "http.response_content_length"
|
|
441
441
|
}
|
|
442
442
|
export type Browser = 'Chrome' | 'Edge' | 'Firefox' | 'Safari' | 'Opera' | 'IE' | 'Unknown';
|
|
443
|
-
export type OS = 'Windows' | 'MacOS' | 'Linux' | 'iOS' | 'Android' | 'Unknown';
|
|
444
|
-
export type Device = 'Mobile' | 'Tablet' | 'Desktop' | 'Unknown';
|
|
443
|
+
export type OS = 'Windows' | 'MacOS' | 'Linux' | 'iOS' | 'Android' | 'Tizen' | 'webOS' | 'Unknown';
|
|
444
|
+
export type Device = 'Mobile' | 'Tablet' | 'Desktop' | 'Smart-TV' | 'Unknown';
|
|
445
445
|
export type EventName = keyof HTMLElementEventMap;
|
|
446
446
|
export interface PatternReplacement {
|
|
447
447
|
pattern: RegExp;
|
|
@@ -461,4 +461,12 @@ export type InputType = 'button' | 'checkbox' | 'color' | 'date' | 'datetime-loc
|
|
|
461
461
|
export interface EditableCxRumEvent extends Omit<CxRumEvent, 'session_context' | 'browser_sdk' | 'timestamp'> {
|
|
462
462
|
session_context: Pick<SessionContext, keyof UserMetadata>;
|
|
463
463
|
}
|
|
464
|
+
interface BrowserCompatibility {
|
|
465
|
+
name: Browser;
|
|
466
|
+
minVersion: number;
|
|
467
|
+
}
|
|
468
|
+
export interface InstrumentationCompatibility {
|
|
469
|
+
browsers: BrowserCompatibility[];
|
|
470
|
+
warningText: string;
|
|
471
|
+
}
|
|
464
472
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isInstrumentationCompatible(confKey: string): boolean;
|
package/src/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.
|
|
1
|
+
export declare const SDK_VERSION = "2.6.0";
|