@amplitude/rrweb-player 2.0.0-alpha.23 → 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.
@@ -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
- }