File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 67
67
},
68
68
"homepage" : " https://docs.sentry.io/platforms/javascript/session-replay/" ,
69
69
"devDependencies" : {
70
- "@sentry-internal/rrweb" : " 2.35 .0"
70
+ "@sentry-internal/rrweb" : " 2.37 .0"
71
71
},
72
72
"dependencies" : {
73
73
"@sentry-internal/replay" : " 9.46.0" ,
Original file line number Diff line number Diff line change @@ -3,8 +3,12 @@ import { defineIntegration } from '@sentry/core';
3
3
import type { CanvasManagerInterface , CanvasManagerOptions } from '@sentry-internal/replay' ;
4
4
import { CanvasManager } from '@sentry-internal/rrweb' ;
5
5
6
+ interface SnapshotOptions {
7
+ skipRequestAnimationFrame ?: boolean ;
8
+ }
9
+
6
10
interface ReplayCanvasIntegration extends Integration {
7
- snapshot : ( canvasElement ?: HTMLCanvasElement ) => Promise < void > ;
11
+ snapshot : ( canvasElement ?: HTMLCanvasElement , options ?: SnapshotOptions ) => Promise < void > ;
8
12
}
9
13
10
14
interface ReplayCanvasOptions {
@@ -106,9 +110,10 @@ export const _replayCanvasIntegration = ((options: Partial<ReplayCanvasOptions>
106
110
...( CANVAS_QUALITY [ quality || 'medium' ] || CANVAS_QUALITY . medium ) ,
107
111
} ;
108
112
} ,
109
- async snapshot ( canvasElement ?: HTMLCanvasElement ) {
113
+ async snapshot ( canvasElement ?: HTMLCanvasElement , options ?: SnapshotOptions ) {
110
114
const canvasManager = await _canvasManager ;
111
- canvasManager . snapshot ( canvasElement ) ;
115
+
116
+ canvasManager . snapshot ( canvasElement , options ) ;
112
117
} ,
113
118
} ;
114
119
} ) satisfies IntegrationFn < ReplayCanvasIntegration > ;
Original file line number Diff line number Diff line change 83
83
"devDependencies" : {
84
84
"@babel/core" : " ^7.27.7" ,
85
85
"@sentry-internal/replay-worker" : " 9.46.0" ,
86
- "@sentry-internal/rrweb" : " 2.35 .0" ,
87
- "@sentry-internal/rrweb-snapshot" : " 2.35 .0" ,
86
+ "@sentry-internal/rrweb" : " 2.37 .0" ,
87
+ "@sentry-internal/rrweb-snapshot" : " 2.37 .0" ,
88
88
"fflate" : " 0.8.2" ,
89
89
"jest-matcher-utils" : " ^29.0.0" ,
90
90
"jsdom-worker" : " ^0.3.0" ,
You can’t perform that action at this time.
0 commit comments