posthog-js 1.68.0 → 1.68.2

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/dist/module.d.ts CHANGED
@@ -1003,18 +1003,20 @@ declare type recordOptions<T> = {
1003
1003
  keepIframeSrcFn?: KeepIframeSrcFn;
1004
1004
  };
1005
1005
  declare class SessionRecording {
1006
- instance: PostHog;
1006
+ private instance;
1007
+ private emit;
1008
+ private endpoint;
1009
+ private windowId;
1010
+ private sessionId;
1011
+ private lastActivityTimestamp;
1012
+ private flushBufferTimer?;
1013
+ private buffer?;
1007
1014
  captureStarted: boolean;
1008
1015
  snapshots: any[];
1009
- emit: boolean;
1010
- endpoint: string;
1011
1016
  stopRrweb: listenerHandler | undefined;
1012
- windowId: string | null;
1013
- sessionId: string | null;
1014
1017
  receivedDecide: boolean;
1015
1018
  rrwebRecord: rrwebRecord | undefined;
1016
1019
  recorderVersion?: string;
1017
- lastActivityTimestamp: number;
1018
1020
  isIdle: boolean;
1019
1021
  constructor(instance: PostHog);
1020
1022
  startRecordingIfEnabled(): void;
@@ -1030,8 +1032,10 @@ declare class SessionRecording {
1030
1032
  _updateWindowAndSessionIds(event: eventWithTime): void;
1031
1033
  _tryTakeFullSnapshot(): boolean;
1032
1034
  _onScriptLoaded(): void;
1033
- onRRwebEmit(event: eventWithTime): void;
1034
- _captureSnapshot(properties: Properties): void;
1035
+ onRRwebEmit(rawEvent: eventWithTime): void;
1036
+ private _flushBuffer;
1037
+ private _captureSnapshotBuffered;
1038
+ private _captureSnapshot;
1035
1039
  }
1036
1040
 
1037
1041
  declare class WebPerformanceObserver {