@amplitude/plugin-session-replay-browser 1.16.5 → 1.16.7

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.
Binary file
@@ -1 +0,0 @@
1
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- export { sessionReplayPlugin as plugin, sessionReplayPlugin, SessionReplayPlugin } from './session-replay';
2
- export { AmplitudeSessionReplay, SessionReplayOptions } from '@amplitude/session-replay-browser';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,IAAI,MAAM,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC3G,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC"}
@@ -1,24 +0,0 @@
1
- import { BrowserClient, BrowserConfig, EnrichmentPlugin, Event } from '@amplitude/analytics-core';
2
- import * as sessionReplay from '@amplitude/session-replay-browser';
3
- import { SessionReplayOptions } from './typings/session-replay';
4
- import { AmplitudeSessionReplay } from '@amplitude/session-replay-browser';
5
- export declare class SessionReplayPlugin implements EnrichmentPlugin<BrowserClient, BrowserConfig> {
6
- static pluginName: string;
7
- name: string;
8
- type: "enrichment";
9
- config: BrowserConfig;
10
- options: SessionReplayOptions;
11
- srInitOptions: sessionReplay.SessionReplayOptions;
12
- sr: AmplitudeSessionReplay;
13
- constructor(options?: SessionReplayOptions);
14
- setup(config: BrowserConfig, _client: BrowserClient): Promise<void>;
15
- onSessionIdChanged(sessionId: number): Promise<void>;
16
- onOptOutChanged(optOut: boolean): Promise<void>;
17
- execute(event: Event): Promise<Event>;
18
- teardown(): Promise<void>;
19
- getSessionReplayProperties(): {
20
- [key: string]: string | boolean | null;
21
- };
22
- }
23
- export declare const sessionReplayPlugin: (options?: SessionReplayOptions) => EnrichmentPlugin;
24
- //# sourceMappingURL=session-replay.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"session-replay.d.ts","sourceRoot":"","sources":["../../src/session-replay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAClG,OAAO,KAAK,aAAa,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,qBAAa,mBAAoB,YAAW,gBAAgB,CAAC,aAAa,EAAE,aAAa,CAAC;IACxF,MAAM,CAAC,UAAU,SAA8C;IAC/D,IAAI,SAAkC;IACtC,IAAI,eAAyB;IAI7B,MAAM,EAAE,aAAa,CAAC;IACtB,OAAO,EAAE,oBAAoB,CAAC;IAC9B,aAAa,EAAE,aAAa,CAAC,oBAAoB,CAAC;IAClD,EAAE,EAAE,sBAAsB,CAOxB;gBAEU,OAAO,CAAC,EAAE,oBAAoB;IAKpC,KAAK,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,aAAa;IA0DnD,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAOpD,eAAe,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAe/C,OAAO,CAAC,KAAK,EAAE,KAAK;IA6CpB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAc/B,0BAA0B;;;CAG3B;AAED,eAAO,MAAM,mBAAmB,EAAE,CAAC,OAAO,CAAC,EAAE,oBAAoB,KAAK,gBAIrE,CAAC"}
@@ -1,68 +0,0 @@
1
- import { Event } from '@amplitude/analytics-core';
2
- import { StoreType } from '@amplitude/session-replay-browser';
3
- export type MaskLevel = 'light' | 'medium' | 'conservative';
4
- export interface SessionReplayPrivacyConfig {
5
- blockSelector?: string | string[];
6
- defaultMaskLevel?: MaskLevel;
7
- maskSelector?: string[];
8
- unmaskSelector?: string[];
9
- }
10
- export interface SessionReplayPerformanceConfig {
11
- enabled: boolean;
12
- timeout?: number;
13
- }
14
- export interface SessionReplayOptions {
15
- /**
16
- * @see {@link StandaloneSessionReplayOptions.sampleRate}
17
- */
18
- sampleRate?: number;
19
- /**
20
- * @see {@link StandaloneSessionReplayOptions.privacyConfig}
21
- */
22
- privacyConfig?: SessionReplayPrivacyConfig;
23
- /**
24
- * @see {@link StandaloneSessionReplayOptions.debugMode}
25
- */
26
- debugMode?: boolean;
27
- /**
28
- * If this is enabled we will force the browser SDK to also send start and end session events.
29
- */
30
- forceSessionTracking?: boolean;
31
- /**
32
- * @see {@link StandaloneSessionReplayOptions.configServerUrl}
33
- */
34
- configServerUrl?: string;
35
- /**
36
- * @see {@link StandaloneSessionReplayOptions.trackServerUrl}
37
- */
38
- trackServerUrl?: string;
39
- /**
40
- * @see {@link StandaloneSessionReplayOptions.shouldInlineStylesheet}
41
- */
42
- shouldInlineStylesheet?: boolean;
43
- /**
44
- * @see {@link StandaloneSessionReplayOptions.performanceConfig}
45
- */
46
- performanceConfig?: SessionReplayPerformanceConfig;
47
- /**
48
- * @see {@link StandaloneSessionReplayOptions.storeType}
49
- */
50
- storeType?: StoreType;
51
- /**
52
- * Override the device ID for session replay.
53
- */
54
- deviceId?: string;
55
- /**
56
- * Dynamically overrides the session ID for replay. Ensure stability to avoid frequent restarts.
57
- * @param event Browser SDK event
58
- * @returns The session ID for the session replay.
59
- */
60
- customSessionId?: (event: Event) => string | undefined;
61
- /**
62
- * @see {@link StandaloneSessionReplayOptions.experimental}
63
- */
64
- experimental?: {
65
- useWebWorker: boolean;
66
- };
67
- }
68
- //# sourceMappingURL=session-replay.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"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ACH"}
@@ -1,2 +0,0 @@
1
- export declare const VERSION = "1.16.5";
2
- //# sourceMappingURL=version.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,WAAW,CAAC"}