Skip to content

Commit

Permalink
Merge pull request #34 from amplitude/rrweb-sync-alpha-12
Browse files Browse the repository at this point in the history
Missing imports
  • Loading branch information
jxiwang authored Oct 16, 2024
2 parents 0be05c5 + 43f38b1 commit 199428c
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .changeset/good-moles-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@amplitude/rrweb": patch
---

Change package names
12 changes: 8 additions & 4 deletions packages/rrweb/src/replay/media/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import { Emitter, MediaInteractions, ReplayerEvents } from '@rrweb/types';
import type { RRMediaElement } from 'rrdom/es';
import {
Emitter,
MediaInteractions,
ReplayerEvents,
} from '@amplitude/rrweb-types';
import type { RRMediaElement } from '@amplitude/rrdom/es';
import type { createPlayerService, createSpeedService } from '../machine';
import type { Mirror, mediaAttributes } from 'rrweb-snapshot';
import type { mediaInteractionData } from '@rrweb/types';
import type { Mirror, mediaAttributes } from '@amplitude/rrweb-snapshot';
import type { mediaInteractionData } from '@amplitude/rrweb-types';

type MediaState = {
isPlaying: boolean;
Expand Down
4 changes: 2 additions & 2 deletions packages/rrweb/test/events/bad-textarea.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { EventType, IncrementalSource } from '@rrweb/types';
import type { eventWithTime } from '@rrweb/types';
import { EventType, IncrementalSource } from '@amplitude/rrweb-types';
import type { eventWithTime } from '@amplitude/rrweb-types';

const now = Date.now();
const events: eventWithTime[] = [
Expand Down
4 changes: 2 additions & 2 deletions packages/rrweb/test/events/custom-element-define-class.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { EventType } from '@rrweb/types';
import type { eventWithTime } from '@rrweb/types';
import { EventType } from '@amplitude/rrweb-types';
import type { eventWithTime } from '@amplitude/rrweb-types';

const now = Date.now();
const events: eventWithTime[] = [
Expand Down
4 changes: 2 additions & 2 deletions packages/rrweb/test/events/scroll-with-parent-styles.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { EventType, IncrementalSource } from '@rrweb/types';
import type { eventWithTime } from '@rrweb/types';
import { EventType, IncrementalSource } from '@amplitude/rrweb-types';
import type { eventWithTime } from '@amplitude/rrweb-types';

const now = Date.now();
const events: eventWithTime[] = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { eventWithTime } from '@rrweb/types';
import type { eventWithTime } from '@amplitude/rrweb-types';

const events: eventWithTime[] = [
{ type: 0, data: {}, timestamp: 1900000001 },
Expand Down
2 changes: 1 addition & 1 deletion packages/rrweb/test/events/video-playback.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { eventWithTime } from '@rrweb/types';
import type { eventWithTime } from '@amplitude/rrweb-types';

const events: eventWithTime[] = [
{ type: 0, data: {}, timestamp: 1900000001 },
Expand Down

0 comments on commit 199428c

Please sign in to comment.