moved rrweb-player into packages/rrweb-player
This commit is contained in:
22
packages/rrweb-player/src/main.ts
Normal file
22
packages/rrweb-player/src/main.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import type { eventWithTime } from 'rrweb/typings/types';
|
||||
import _Player from './Player.svelte';
|
||||
|
||||
type PlayerProps = {
|
||||
events: eventWithTime[];
|
||||
};
|
||||
|
||||
class Player extends _Player {
|
||||
constructor(options: {
|
||||
target: Element;
|
||||
props: PlayerProps;
|
||||
// for compatibility
|
||||
data?: PlayerProps;
|
||||
}) {
|
||||
super({
|
||||
target: options.target,
|
||||
props: options.data || options.props,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export default Player;
|
||||
Reference in New Issue
Block a user