Skip to content

Commit

Permalink
Apply formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jxiwang authored and github-actions[bot] committed Oct 18, 2024
1 parent 68ee960 commit 5a5915f
Show file tree
Hide file tree
Showing 7 changed files with 487 additions and 511 deletions.
2 changes: 1 addition & 1 deletion packages/all/test/cross-origin-iframe-packer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import * as fs from 'fs';
import * as path from 'path';
import type * as puppeteer from 'puppeteer';
import type { recordOptions } from '@amplitude/rrweb';
import type {} from'@amplitude/rrweb-types';
import type {} from '@amplitude/rrweb-types';
import { EventType } from '@amplitude/rrweb-types';
import {
assertSnapshot,
Expand Down
6 changes: 5 additions & 1 deletion packages/plugins/rrweb-plugin-console-replay/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import type { eventWithTime } from '@amplitude/rrweb-types';
import { EventType, IncrementalSource } from '@amplitude/rrweb-types';
import type { ReplayPlugin, Replayer } from '@amplitude/rrweb';
import { LogData, LogLevel, PLUGIN_NAME } from '@amplitude/rrweb-plugin-console-record';
import {
LogData,
LogLevel,
PLUGIN_NAME,
} from '@amplitude/rrweb-plugin-console-record';

/**
* define an interface to replay log records
Expand Down
2 changes: 1 addition & 1 deletion packages/rrdom-nodejs/src/document-nodejs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -390,4 +390,4 @@ interface RRElementTagNameMap {
}

type RRElementType<K extends keyof HTMLElementTagNameMap> =
K extends keyof RRElementTagNameMap ? RRElementTagNameMap[K] : RRElement;
K extends keyof RRElementTagNameMap ? RRElementTagNameMap[K] : RRElement;
930 changes: 447 additions & 483 deletions packages/rrweb-player/.svelte-kit/ambient.d.ts

Large diffs are not rendered by default.

45 changes: 25 additions & 20 deletions packages/rrweb-player/.svelte-kit/non-ambient.d.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@

// this file is generated — do not edit it


declare module "svelte/elements" {
export interface HTMLAttributes<T> {
'data-sveltekit-keepfocus'?: true | '' | 'off' | undefined | null;
'data-sveltekit-noscroll'?: true | '' | 'off' | undefined | null;
'data-sveltekit-preload-code'?:
| true
| ''
| 'eager'
| 'viewport'
| 'hover'
| 'tap'
| 'off'
| undefined
| null;
'data-sveltekit-preload-data'?: true | '' | 'hover' | 'tap' | 'off' | undefined | null;
'data-sveltekit-reload'?: true | '' | 'off' | undefined | null;
'data-sveltekit-replacestate'?: true | '' | 'off' | undefined | null;
}
declare module 'svelte/elements' {
export interface HTMLAttributes<T> {
'data-sveltekit-keepfocus'?: true | '' | 'off' | undefined | null;
'data-sveltekit-noscroll'?: true | '' | 'off' | undefined | null;
'data-sveltekit-preload-code'?:
| true
| ''
| 'eager'
| 'viewport'
| 'hover'
| 'tap'
| 'off'
| undefined
| null;
'data-sveltekit-preload-data'?:
| true
| ''
| 'hover'
| 'tap'
| 'off'
| undefined
| null;
'data-sveltekit-reload'?: true | '' | 'off' | undefined | null;
'data-sveltekit-replacestate'?: true | '' | 'off' | undefined | null;
}
}

export {};
8 changes: 4 additions & 4 deletions packages/rrweb/src/replay/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ import {
} from '../utils';
import canvasMutation from './canvas';
import { deserializeArg } from './canvas/deserialize-args';
import {
createPlayerService,
createSpeedService,
import {
createPlayerService,
createSpeedService,
type PlayerMachineState,
type SpeedMachineState,
type SpeedMachineState,
} from './machine';
import { polyfill as smoothscrollPolyfill } from './smoothscroll';
import getInjectStyleRules from './styles/inject-style';
Expand Down
5 changes: 4 additions & 1 deletion packages/rrweb/test/rrdom.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
*/
import { EventType, IncrementalSource, Replayer, eventWithTime } from '../src';
import { vi, type MockInstance } from 'vitest';
import type { styleDeclarationData, styleSheetRuleData } from '@amplitude/rrweb-types';
import type {
styleDeclarationData,
styleSheetRuleData,
} from '@amplitude/rrweb-types';
import { createMirror, Mirror as NodeMirror } from '@amplitude/rrweb-snapshot';
import type { ReplayerHandler } from '@amplitude/rrdom';

Expand Down

0 comments on commit 5a5915f

Please sign in to comment.