@amplitude/rrweb-player 2.0.0-alpha.24 → 2.0.0-alpha.25
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/README.md +175 -1
- package/dist/events.js +3 -0
- package/dist/global.css +12 -0
- package/dist/rrweb-player.cjs +14884 -0
- package/dist/rrweb-player.cjs.map +1 -0
- package/dist/rrweb-player.d.cts +109 -0
- package/dist/rrweb-player.d.ts +109 -0
- package/dist/rrweb-player.js +14884 -0
- package/dist/rrweb-player.js.map +1 -0
- package/dist/rrweb-player.umd.cjs +14941 -0
- package/dist/rrweb-player.umd.cjs.map +7 -0
- package/dist/rrweb-player.umd.min.cjs +126 -0
- package/dist/rrweb-player.umd.min.cjs.map +7 -0
- package/dist/style.css +81 -1
- package/dist/style.min.css +2 -0
- package/dist/style.min.css.map +7 -0
- package/package.json +40 -31
- package/dist/index.js +0 -30
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -30
- package/dist/index.mjs.map +0 -1
- package/lib/index.cjs +0 -30
- package/lib/index.cjs.map +0 -1
- package/typings/index.d.ts +0 -87
package/typings/index.d.ts
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { Replayer } from '@amplitude/rrweb';
|
|
2
|
-
import { Mirror } from '@amplitude/rrweb-snapshot';
|
|
3
|
-
import { eventWithTime } from '@amplitude/rrweb-types';
|
|
4
|
-
import { playerConfig } from '@amplitude/rrweb/typings/types';
|
|
5
|
-
import { SvelteComponent } from 'svelte';
|
|
6
|
-
|
|
7
|
-
export type RRwebPlayerOptions = {
|
|
8
|
-
target: HTMLElement;
|
|
9
|
-
props: {
|
|
10
|
-
/**
|
|
11
|
-
* The events to replay.
|
|
12
|
-
* @default `[]`
|
|
13
|
-
*/
|
|
14
|
-
events: eventWithTime[];
|
|
15
|
-
/**
|
|
16
|
-
* The width of the replayer
|
|
17
|
-
* @defaultValue `1024`
|
|
18
|
-
*/
|
|
19
|
-
width?: number;
|
|
20
|
-
/**
|
|
21
|
-
* The height of the replayer
|
|
22
|
-
* @defaultValue `576`
|
|
23
|
-
*/
|
|
24
|
-
height?: number;
|
|
25
|
-
/**
|
|
26
|
-
* The maximum scale of the replayer (1 = 100%). Set to 0 for unlimited
|
|
27
|
-
* @defaultValue `1`
|
|
28
|
-
*/
|
|
29
|
-
maxScale?: number;
|
|
30
|
-
/**
|
|
31
|
-
* Whether to autoplay
|
|
32
|
-
* @defaultValue `true`
|
|
33
|
-
*/
|
|
34
|
-
autoPlay?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* The default speed to play at
|
|
37
|
-
* @defaultValue `1`
|
|
38
|
-
*/
|
|
39
|
-
speed?: number;
|
|
40
|
-
/**
|
|
41
|
-
* Speed options in UI
|
|
42
|
-
* @defaultValue `[1, 2, 4, 8]`
|
|
43
|
-
*/
|
|
44
|
-
speedOption?: number[];
|
|
45
|
-
/**
|
|
46
|
-
* Whether to show the controller UI
|
|
47
|
-
* @defaultValue `true`
|
|
48
|
-
*/
|
|
49
|
-
showController?: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Customize the custom events style with a key-value map
|
|
52
|
-
* @defaultValue `{}`
|
|
53
|
-
*/
|
|
54
|
-
tags?: Record<string, string>;
|
|
55
|
-
/**
|
|
56
|
-
* Customize the color of inactive periods indicator in the progress bar with a valid CSS color string.
|
|
57
|
-
* @defaultValue `#D4D4D4`
|
|
58
|
-
*/
|
|
59
|
-
inactiveColor?: string;
|
|
60
|
-
} & Partial<playerConfig>;
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
export default class rrwebPlayer extends SvelteComponent {
|
|
64
|
-
constructor(options: RRwebPlayerOptions);
|
|
65
|
-
|
|
66
|
-
addEventListener(event: string, handler: (params: any) => unknown): void;
|
|
67
|
-
|
|
68
|
-
addEvent(event: eventWithTime): void;
|
|
69
|
-
getMetaData: Replayer['getMetaData'];
|
|
70
|
-
getReplayer: () => Replayer;
|
|
71
|
-
getMirror: () => Mirror;
|
|
72
|
-
|
|
73
|
-
toggle: () => void;
|
|
74
|
-
setSpeed: (speed: number) => void;
|
|
75
|
-
toggleSkipInactive: () => void;
|
|
76
|
-
triggerResize: () => void;
|
|
77
|
-
$set: (options: { width: number; height: number }) => void;
|
|
78
|
-
play: () => void;
|
|
79
|
-
pause: () => void;
|
|
80
|
-
goto: (timeOffset: number, play?: boolean) => void;
|
|
81
|
-
playRange: (
|
|
82
|
-
timeOffset: number,
|
|
83
|
-
endTimeOffset: number,
|
|
84
|
-
startLooping?: boolean,
|
|
85
|
-
afterHook?: undefined | (() => void),
|
|
86
|
-
) => void;
|
|
87
|
-
}
|