Skip to content

Commit e3ba4fd

Browse files
committed
feat: Export additional canvas-related types and functions
We need these types/functions to replay canvas. Also reverts the plugins code that were removed because we need that as well.
1 parent c35d276 commit e3ba4fd

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

packages/rrweb/src/index.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import record from './record';
22

33
import { Replayer } from './replay';
4+
import canvasMutation from './replay/canvas';
45
import * as utils from './utils';
56

67
export {
@@ -11,15 +12,19 @@ export {
1112
} from '@sentry-internal/rrweb-types';
1213

1314
export type {
15+
canvasMutationParam,
16+
canvasMutationData,
17+
eventWithTime,
1418
fullSnapshotEvent,
1519
incrementalSnapshotEvent,
1620
inputData,
17-
eventWithTime,
1821
} from '@sentry-internal/rrweb-types';
1922

20-
export type { recordOptions } from './types';
23+
export type { ReplayPlugin, recordOptions } from './types';
2124

22-
export { record, Replayer, utils };
25+
export { record, Replayer, utils, canvasMutation };
26+
27+
export { deserializeArg } from './replay/canvas/deserialize-args';
2328

2429
export {
2530
takeFullSnapshot,
@@ -28,3 +33,4 @@ export {
2833
addCustomEvent,
2934
getCanvasManager,
3035
} from './record';
36+

0 commit comments

Comments
 (0)