@highlight-run/rrweb 2.0.0-lambda.5 → 2.0.0-lambda.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.
- package/CHANGELOG.md +427 -0
- package/README.md +113 -7
- package/dist/assets/image-bitmap-data-url-worker-DwtK8A0z.js.map +1 -1
- package/dist/rrweb.cjs +7821 -6664
- package/dist/rrweb.cjs.map +1 -1
- package/dist/rrweb.d.cts +6 -4
- package/dist/rrweb.d.ts +6 -4
- package/dist/rrweb.js +7821 -6664
- package/dist/rrweb.js.map +1 -1
- package/dist/rrweb.umd.cjs +7821 -6684
- package/dist/rrweb.umd.cjs.map +3 -3
- package/dist/rrweb.umd.min.cjs +150 -60
- package/dist/rrweb.umd.min.cjs.map +3 -3
- package/package.json +22 -13
- package/umd/rrweb.js +19162 -0
- package/umd/rrweb.min.js +192 -0
package/dist/rrweb.d.cts
CHANGED
|
@@ -26,6 +26,7 @@ import { Mirror } from '../../../../node_modules/@highlight-run/rrweb-snapshot/d
|
|
|
26
26
|
import { Mirror as Mirror_2 } from '../../../node_modules/@highlight-run/rrweb-snapshot/dist/rrweb-snapshot.js';
|
|
27
27
|
import { Mirror as Mirror_3 } from 'rrweb-snapshot';
|
|
28
28
|
import { MouseInteractions } from '../../../node_modules/@highlight-run/rrweb-types/dist/rrweb-types.js';
|
|
29
|
+
import { nowTimestamp } from '../../../node_modules/@highlight-run/rrweb-utils/dist/rrweb-utils.js';
|
|
29
30
|
import { PackFn } from '../../../node_modules/@highlight-run/rrweb-types/dist/rrweb-types.js';
|
|
30
31
|
import { playerMetaData } from '../../../../node_modules/@highlight-run/rrweb-types/dist/rrweb-types.js';
|
|
31
32
|
import { RecordPlugin } from '../../../node_modules/@highlight-run/rrweb-types/dist/rrweb-types.js';
|
|
@@ -73,7 +74,7 @@ export declare const freezePage: () => void;
|
|
|
73
74
|
|
|
74
75
|
declare function getBaseDimension(node: Node, rootIframe: Node): DocumentDimension;
|
|
75
76
|
|
|
76
|
-
declare function getNestedRule(rules: CSSRuleList, position: number[]): CSSGroupingRule;
|
|
77
|
+
declare function getNestedRule(rules: CSSRuleList, position: number[]): CSSGroupingRule | null;
|
|
77
78
|
|
|
78
79
|
declare function getPositionsAndIndex(nestedIndex: number[]): {
|
|
79
80
|
positions: number[];
|
|
@@ -125,8 +126,6 @@ export declare let mirror: DeprecatedMirror;
|
|
|
125
126
|
|
|
126
127
|
export { MouseInteractions }
|
|
127
128
|
|
|
128
|
-
declare let nowTimestamp: () => number;
|
|
129
|
-
|
|
130
129
|
declare function on(type: string, fn: EventListenerOrEventListenerObject, target?: Document | IWindow): listenerHandler_2;
|
|
131
130
|
|
|
132
131
|
declare type PlayerAssets = {
|
|
@@ -149,6 +148,7 @@ export declare type playerConfig = {
|
|
|
149
148
|
insertStyleRules: string[];
|
|
150
149
|
triggerFocus: boolean;
|
|
151
150
|
UNSAFE_replayCanvas: boolean;
|
|
151
|
+
cspContent?: string;
|
|
152
152
|
pauseAnimation?: boolean;
|
|
153
153
|
mouseTail: boolean | {
|
|
154
154
|
duration?: number;
|
|
@@ -278,6 +278,7 @@ export declare type recordOptions<T> = {
|
|
|
278
278
|
export declare class Replayer {
|
|
279
279
|
wrapper: HTMLDivElement;
|
|
280
280
|
iframe: HTMLIFrameElement;
|
|
281
|
+
private UNSAFE_replayCanvas;
|
|
281
282
|
service: ReturnType<typeof createPlayerService>;
|
|
282
283
|
speedService: ReturnType<typeof createSpeedService>;
|
|
283
284
|
get timer(): Timer;
|
|
@@ -442,6 +443,7 @@ declare class Timer {
|
|
|
442
443
|
addActions(actions: actionWithDelay[]): void;
|
|
443
444
|
replaceActions(actions: actionWithDelay[]): void;
|
|
444
445
|
start(): void;
|
|
446
|
+
updateLiveTime(): void;
|
|
445
447
|
private rafCheck;
|
|
446
448
|
clear(): void;
|
|
447
449
|
setSpeed(speed: number): void;
|
|
@@ -479,8 +481,8 @@ declare namespace utils {
|
|
|
479
481
|
getRootShadowHost,
|
|
480
482
|
shadowHostInDom,
|
|
481
483
|
inDom,
|
|
482
|
-
mirror as _mirror,
|
|
483
484
|
nowTimestamp,
|
|
485
|
+
mirror as _mirror,
|
|
484
486
|
isCanvasNode,
|
|
485
487
|
AppendedIframe,
|
|
486
488
|
StyleSheetMirror
|
package/dist/rrweb.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ import { Mirror } from '../../../../node_modules/@highlight-run/rrweb-snapshot/d
|
|
|
26
26
|
import { Mirror as Mirror_2 } from '../../../node_modules/@highlight-run/rrweb-snapshot/dist/rrweb-snapshot.js';
|
|
27
27
|
import { Mirror as Mirror_3 } from 'rrweb-snapshot';
|
|
28
28
|
import { MouseInteractions } from '../../../node_modules/@highlight-run/rrweb-types/dist/rrweb-types.js';
|
|
29
|
+
import { nowTimestamp } from '../../../node_modules/@highlight-run/rrweb-utils/dist/rrweb-utils.js';
|
|
29
30
|
import { PackFn } from '../../../node_modules/@highlight-run/rrweb-types/dist/rrweb-types.js';
|
|
30
31
|
import { playerMetaData } from '../../../../node_modules/@highlight-run/rrweb-types/dist/rrweb-types.js';
|
|
31
32
|
import { RecordPlugin } from '../../../node_modules/@highlight-run/rrweb-types/dist/rrweb-types.js';
|
|
@@ -73,7 +74,7 @@ export declare const freezePage: () => void;
|
|
|
73
74
|
|
|
74
75
|
declare function getBaseDimension(node: Node, rootIframe: Node): DocumentDimension;
|
|
75
76
|
|
|
76
|
-
declare function getNestedRule(rules: CSSRuleList, position: number[]): CSSGroupingRule;
|
|
77
|
+
declare function getNestedRule(rules: CSSRuleList, position: number[]): CSSGroupingRule | null;
|
|
77
78
|
|
|
78
79
|
declare function getPositionsAndIndex(nestedIndex: number[]): {
|
|
79
80
|
positions: number[];
|
|
@@ -125,8 +126,6 @@ export declare let mirror: DeprecatedMirror;
|
|
|
125
126
|
|
|
126
127
|
export { MouseInteractions }
|
|
127
128
|
|
|
128
|
-
declare let nowTimestamp: () => number;
|
|
129
|
-
|
|
130
129
|
declare function on(type: string, fn: EventListenerOrEventListenerObject, target?: Document | IWindow): listenerHandler_2;
|
|
131
130
|
|
|
132
131
|
declare type PlayerAssets = {
|
|
@@ -149,6 +148,7 @@ export declare type playerConfig = {
|
|
|
149
148
|
insertStyleRules: string[];
|
|
150
149
|
triggerFocus: boolean;
|
|
151
150
|
UNSAFE_replayCanvas: boolean;
|
|
151
|
+
cspContent?: string;
|
|
152
152
|
pauseAnimation?: boolean;
|
|
153
153
|
mouseTail: boolean | {
|
|
154
154
|
duration?: number;
|
|
@@ -278,6 +278,7 @@ export declare type recordOptions<T> = {
|
|
|
278
278
|
export declare class Replayer {
|
|
279
279
|
wrapper: HTMLDivElement;
|
|
280
280
|
iframe: HTMLIFrameElement;
|
|
281
|
+
private UNSAFE_replayCanvas;
|
|
281
282
|
service: ReturnType<typeof createPlayerService>;
|
|
282
283
|
speedService: ReturnType<typeof createSpeedService>;
|
|
283
284
|
get timer(): Timer;
|
|
@@ -442,6 +443,7 @@ declare class Timer {
|
|
|
442
443
|
addActions(actions: actionWithDelay[]): void;
|
|
443
444
|
replaceActions(actions: actionWithDelay[]): void;
|
|
444
445
|
start(): void;
|
|
446
|
+
updateLiveTime(): void;
|
|
445
447
|
private rafCheck;
|
|
446
448
|
clear(): void;
|
|
447
449
|
setSpeed(speed: number): void;
|
|
@@ -479,8 +481,8 @@ declare namespace utils {
|
|
|
479
481
|
getRootShadowHost,
|
|
480
482
|
shadowHostInDom,
|
|
481
483
|
inDom,
|
|
482
|
-
mirror as _mirror,
|
|
483
484
|
nowTimestamp,
|
|
485
|
+
mirror as _mirror,
|
|
484
486
|
isCanvasNode,
|
|
485
487
|
AppendedIframe,
|
|
486
488
|
StyleSheetMirror
|