moved rrweb-player into packages/rrweb-player

This commit is contained in:
Mark-fenng
2026-04-01 12:00:00 +08:00
parent ec423f29d0
commit 2ef99ed976
16 changed files with 0 additions and 1524 deletions

View 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;