diff --git a/packages/replay/src/types.ts b/packages/replay/src/types.ts index 702a7b5d798f..cf8d078973ab 100644 --- a/packages/replay/src/types.ts +++ b/packages/replay/src/types.ts @@ -1,4 +1,4 @@ -import type { eventWithTime, recordOptions } from 'rrweb/typings/types'; +import type { eventWithTime, recordOptions } from 'rrweb/typings/entries/all'; export type RecordingEvent = eventWithTime; export type RecordingOptions = recordOptions; diff --git a/patches/rrweb+1.1.3.patch b/patches/rrweb+1.1.3.patch index af53f6595d88..7317c090e69a 100644 --- a/patches/rrweb+1.1.3.patch +++ b/patches/rrweb+1.1.3.patch @@ -15,3 +15,16 @@ index 8091399..48e8321 100644 }); var init_1 = function () { takeFullSnapshot(); +diff --git a/node_modules/rrweb/typings/index.d.ts b/node_modules/rrweb/typings/index.d.ts +index 6b6d18d..31456a0 100644 +--- a/node_modules/rrweb/typings/index.d.ts ++++ b/node_modules/rrweb/typings/index.d.ts +@@ -2,7 +2,7 @@ import record from './record'; + import { Replayer } from './replay'; + import { _mirror } from './utils'; + import * as utils from './utils'; +-export { EventType, IncrementalSource, MouseInteractions, ReplayerEvents, } from './types'; ++export { EventType, IncrementalSource, MouseInteractions, ReplayerEvents, eventWithTime, recordOptions } from './types'; + declare const addCustomEvent: (tag: string, payload: T) => void; + declare const freezePage: () => void; + export { record, addCustomEvent, freezePage, Replayer, _mirror as mirror, utils, };