Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref(rrweb): allow multi touch gestures to be shown for mobile replays #190

Merged
merged 28 commits into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
5f4dfd3
ref(rrweb): allow multi touch gestures to be shown for mobile replays
michellewzhang May 16, 2024
94e7595
some type fixes
michellewzhang May 16, 2024
d87bbb9
rm files
michellewzhang May 16, 2024
8e44b94
more fixes
michellewzhang May 16, 2024
1d0cce1
touchId -> pointerId
michellewzhang May 16, 2024
673d62a
name changes
michellewzhang May 16, 2024
c92bc1b
types
michellewzhang May 16, 2024
52e4399
some fixes
michellewzhang May 28, 2024
07d1d67
forgot a spot
michellewzhang May 28, 2024
b2b12c8
rm export
michellewzhang May 28, 2024
c7039dd
rm changes to package.json and yarn.lock
michellewzhang May 28, 2024
1b453b7
ts
michellewzhang May 28, 2024
ad7d1ce
fix delete
michellewzhang May 28, 2024
583d808
turn "run for branch" on for size limit GHA
billyvg May 29, 2024
a41c292
Update packages/rrweb/src/replay/index.ts
billyvg May 29, 2024
74a19cd
add size limit entry for Replayer
billyvg May 29, 2024
fd3e3ed
optimizations
michellewzhang May 29, 2024
fbb92f6
Merge remote-tracking branch 'origin/sentry-v2' into mz/rrweb-ref-mul…
michellewzhang May 29, 2024
c424b56
rm -1
michellewzhang May 29, 2024
3830e04
update snapshots for failing tests
michellewzhang May 29, 2024
3044563
add tests
michellewzhang May 29, 2024
a2aac2a
:white-check-mark: add test
michellewzhang May 29, 2024
830d8f3
move func out of the class
michellewzhang May 30, 2024
d9d3075
TESTS.
michellewzhang May 30, 2024
56ed9a0
tests that pass
michellewzhang May 30, 2024
0a7aeee
rm code for creating pointers upfront
michellewzhang May 31, 2024
5e465eb
add touch-device class inside createPointer
michellewzhang May 31, 2024
8fee9ca
rm play() from tests
michellewzhang May 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
"prettier": "2.8.4",
"size-limit": "~8.2.6",
"turbo": "^1.2.4",
"typescript": "^4.9.5"
"typescript": "^4.9.5",
"yalc": "^1.0.0-pre.53"
michellewzhang marked this conversation as resolved.
Show resolved Hide resolved
},
"scripts": {
"build:all": "NODE_OPTIONS='--max-old-space-size=4096' yarn run concurrently --success=all -r -m=1 'yarn workspaces-to-typescript-project-references' 'yarn turbo run prepare'",
Expand Down
11 changes: 11 additions & 0 deletions packages/rrweb-player/src/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/rrweb-player/src/main.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

146 changes: 146 additions & 0 deletions packages/rrweb-player/src/utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/rrweb-player/src/utils.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions packages/rrweb-player/typings/src/main.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import type { eventWithTime } from '@sentry-internal/rrweb-types';
import _Player from './Player.svelte';
type PlayerProps = {
events: eventWithTime[];
};
declare class Player extends _Player {
constructor(options: {
target: Element;
props: PlayerProps;
data?: PlayerProps;
});
}
export default Player;
30 changes: 30 additions & 0 deletions packages/rrweb-player/typings/src/utils.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
declare global {
interface Document {
mozExitFullscreen: Document['exitFullscreen'];
webkitExitFullscreen: Document['exitFullscreen'];
msExitFullscreen: Document['exitFullscreen'];
webkitIsFullScreen: Document['fullscreen'];
mozFullScreen: Document['fullscreen'];
msFullscreenElement: Document['fullscreen'];
}
interface HTMLElement {
mozRequestFullScreen: Element['requestFullscreen'];
webkitRequestFullscreen: Element['requestFullscreen'];
msRequestFullscreen: Element['requestFullscreen'];
}
}
import type { eventWithTime } from '@sentry-internal/rrweb-types';
export declare function inlineCss(cssObj: Record<string, string>): string;
export declare function formatTime(ms: number): string;
export declare function openFullscreen(el: HTMLElement): Promise<void>;
export declare function exitFullscreen(): Promise<void>;
export declare function isFullscreen(): boolean;
export declare function onFullscreenChange(handler: () => unknown): () => void;
export declare function typeOf(obj: unknown): 'boolean' | 'number' | 'string' | 'function' | 'array' | 'date' | 'regExp' | 'undefined' | 'null' | 'object';
/**
* Get periods of time when no user interaction happened from a list of events.
* @param events - all events
* @param inactivePeriodThreshold - threshold of inactive time in milliseconds
* @returns periods of time consist with [start time, end time]
*/
export declare function getInactivePeriods(events: eventWithTime[], inactivePeriodThreshold: number): [number, number][];
Loading
Loading