@highlight-run/rrweb 1.2.1 → 2.0.0-lambda.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +359 -19
- package/README.md +147 -34
- package/dist/assets/image-bitmap-data-url-worker-DwtK8A0z.js.map +1 -0
- package/dist/rrweb.cjs +17806 -0
- package/dist/rrweb.cjs.map +1 -0
- package/dist/rrweb.d.cts +509 -0
- package/dist/rrweb.d.ts +509 -0
- package/dist/rrweb.js +17807 -0
- package/dist/rrweb.js.map +1 -0
- package/dist/rrweb.umd.cjs +17810 -0
- package/dist/rrweb.umd.cjs.map +7 -0
- package/dist/rrweb.umd.min.cjs +90 -0
- package/dist/rrweb.umd.min.cjs.map +7 -0
- package/dist/{index.css → style.css} +23 -14
- package/dist/style.min.css +2 -0
- package/dist/style.min.css.map +7 -0
- package/package.json +67 -61
- package/rrweb-record/package.json +4 -0
- package/rrweb-replay/package.json +4 -0
- package/README.zh_CN.md +0 -122
- package/dist/entries/all.d.ts +0 -4
- package/dist/entries/record-pack.d.ts +0 -2
- package/dist/entries/replay-unpack.d.ts +0 -2
- package/dist/index.css.map +0 -1
- package/dist/index.d.ts +0 -9
- package/dist/index.js +0 -3
- package/dist/index.js.LICENSE.txt +0 -14
- package/dist/index.js.map +0 -1
- package/dist/packer/base.d.ts +0 -7
- package/dist/packer/index.d.ts +0 -2
- package/dist/packer/pack.d.ts +0 -2
- package/dist/packer/unpack.d.ts +0 -2
- package/dist/plugins/console/record/error-stack-parser.d.ts +0 -37
- package/dist/plugins/console/record/index.d.ts +0 -41
- package/dist/plugins/console/record/stringify.d.ts +0 -2
- package/dist/plugins/console/replay/index.d.ts +0 -9
- package/dist/plugins/console-record.min.js +0 -16
- package/dist/plugins/console-record.min.js.map +0 -1
- package/dist/plugins/entries/all.d.ts +0 -4
- package/dist/plugins/entries/record-pack.d.ts +0 -2
- package/dist/plugins/entries/replay-unpack.d.ts +0 -2
- package/dist/plugins/index.d.ts +0 -9
- package/dist/plugins/packer/base.d.ts +0 -7
- package/dist/plugins/packer/index.d.ts +0 -2
- package/dist/plugins/packer/pack.d.ts +0 -2
- package/dist/plugins/packer/unpack.d.ts +0 -2
- package/dist/plugins/plugins/console/record/error-stack-parser.d.ts +0 -37
- package/dist/plugins/plugins/console/record/index.d.ts +0 -41
- package/dist/plugins/plugins/console/record/stringify.d.ts +0 -2
- package/dist/plugins/plugins/console/replay/index.d.ts +0 -9
- package/dist/plugins/plugins/sequential-id/record/index.d.ts +0 -6
- package/dist/plugins/plugins/sequential-id/replay/index.d.ts +0 -7
- package/dist/plugins/record/iframe-manager.d.ts +0 -13
- package/dist/plugins/record/index.d.ts +0 -9
- package/dist/plugins/record/mutation.d.ts +0 -45
- package/dist/plugins/record/observer.d.ts +0 -11
- package/dist/plugins/record/observers/canvas/2d.d.ts +0 -2
- package/dist/plugins/record/observers/canvas/canvas-manager.d.ts +0 -32
- package/dist/plugins/record/observers/canvas/canvas.d.ts +0 -2
- package/dist/plugins/record/observers/canvas/serialize-args.d.ts +0 -6
- package/dist/plugins/record/observers/canvas/webgl.d.ts +0 -2
- package/dist/plugins/record/shadow-dom-manager.d.ts +0 -34
- package/dist/plugins/replay/canvas/2d.d.ts +0 -9
- package/dist/plugins/replay/canvas/index.d.ts +0 -9
- package/dist/plugins/replay/canvas/webgl.d.ts +0 -11
- package/dist/plugins/replay/index.d.ts +0 -82
- package/dist/plugins/replay/machine.d.ts +0 -85
- package/dist/plugins/replay/smoothscroll.d.ts +0 -1
- package/dist/plugins/replay/styles/inject-style.d.ts +0 -2
- package/dist/plugins/replay/timer.d.ts +0 -19
- package/dist/plugins/replay/virtual-styles.d.ts +0 -43
- package/dist/plugins/rrdom/index.d.ts +0 -1
- package/dist/plugins/rrdom/tree-node.d.ts +0 -20
- package/dist/plugins/sequential-id/record/index.d.ts +0 -6
- package/dist/plugins/sequential-id/replay/index.d.ts +0 -7
- package/dist/plugins/snapshot/css.d.ts +0 -92
- package/dist/plugins/snapshot/index.d.ts +0 -5
- package/dist/plugins/snapshot/rebuild.d.ts +0 -19
- package/dist/plugins/snapshot/snapshot.d.ts +0 -49
- package/dist/plugins/snapshot/types.d.ts +0 -99
- package/dist/plugins/snapshot/utils.d.ts +0 -11
- package/dist/plugins/types.d.ts +0 -509
- package/dist/plugins/utils.d.ts +0 -71
- package/dist/record/iframe-manager.d.ts +0 -13
- package/dist/record/index.d.ts +0 -9
- package/dist/record/mutation.d.ts +0 -45
- package/dist/record/observer.d.ts +0 -11
- package/dist/record/observers/canvas/2d.d.ts +0 -2
- package/dist/record/observers/canvas/canvas-manager.d.ts +0 -32
- package/dist/record/observers/canvas/canvas.d.ts +0 -2
- package/dist/record/observers/canvas/serialize-args.d.ts +0 -6
- package/dist/record/observers/canvas/webgl.d.ts +0 -2
- package/dist/record/shadow-dom-manager.d.ts +0 -34
- package/dist/replay/canvas/2d.d.ts +0 -9
- package/dist/replay/canvas/index.d.ts +0 -9
- package/dist/replay/canvas/webgl.d.ts +0 -11
- package/dist/replay/index.d.ts +0 -82
- package/dist/replay/machine.d.ts +0 -85
- package/dist/replay/smoothscroll.d.ts +0 -1
- package/dist/replay/styles/inject-style.d.ts +0 -2
- package/dist/replay/timer.d.ts +0 -19
- package/dist/replay/virtual-styles.d.ts +0 -43
- package/dist/rrdom/index.d.ts +0 -1
- package/dist/rrdom/tree-node.d.ts +0 -20
- package/dist/rrweb.min.js +0 -30
- package/dist/rrweb.min.js.map +0 -1
- package/dist/snapshot/css.d.ts +0 -92
- package/dist/snapshot/index.d.ts +0 -5
- package/dist/snapshot/rebuild.d.ts +0 -19
- package/dist/snapshot/snapshot.d.ts +0 -49
- package/dist/snapshot/types.d.ts +0 -99
- package/dist/snapshot/utils.d.ts +0 -11
- package/dist/types.d.ts +0 -509
- package/dist/utils.d.ts +0 -71
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { blockClass, canvasMutationCallback, IWindow, Mirror } from '../../../types';
|
|
2
|
-
export declare type RafStamps = {
|
|
3
|
-
latestId: number;
|
|
4
|
-
invokeId: number | null;
|
|
5
|
-
};
|
|
6
|
-
export declare class CanvasManager {
|
|
7
|
-
private pendingCanvasMutations;
|
|
8
|
-
private rafStamps;
|
|
9
|
-
private mirror;
|
|
10
|
-
private mutationCb;
|
|
11
|
-
private resetObservers?;
|
|
12
|
-
private frozen;
|
|
13
|
-
private locked;
|
|
14
|
-
reset(): void;
|
|
15
|
-
freeze(): void;
|
|
16
|
-
unfreeze(): void;
|
|
17
|
-
lock(): void;
|
|
18
|
-
unlock(): void;
|
|
19
|
-
constructor(options: {
|
|
20
|
-
recordCanvas: boolean | number;
|
|
21
|
-
mutationCb: canvasMutationCallback;
|
|
22
|
-
win: IWindow;
|
|
23
|
-
blockClass: blockClass;
|
|
24
|
-
mirror: Mirror;
|
|
25
|
-
});
|
|
26
|
-
private processMutation;
|
|
27
|
-
private initCanvasMutationObserver;
|
|
28
|
-
private startPendingCanvasMutationFlusher;
|
|
29
|
-
private startRAFTimestamping;
|
|
30
|
-
flushPendingCanvasMutations(): void;
|
|
31
|
-
flushPendingCanvasMutationFor(canvas: HTMLCanvasElement, id: number): void;
|
|
32
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { IWindow, SerializedWebGlArg } from '../../../types';
|
|
2
|
-
export declare function variableListFor(ctx: WebGLRenderingContext | WebGL2RenderingContext, ctor: string): any[];
|
|
3
|
-
export declare const saveWebGLVar: (value: any, win: IWindow, ctx: WebGL2RenderingContext | WebGLRenderingContext) => number | void;
|
|
4
|
-
export declare function serializeArg(value: any, win: IWindow, ctx: WebGL2RenderingContext | WebGLRenderingContext): SerializedWebGlArg;
|
|
5
|
-
export declare const serializeArgs: (args: Array<any>, win: IWindow, ctx: WebGLRenderingContext | WebGL2RenderingContext) => SerializedWebGlArg[];
|
|
6
|
-
export declare const isInstanceOfWebGLObject: (value: any, win: IWindow) => value is WebGLShader | WebGLProgram | WebGLActiveInfo | WebGLBuffer | WebGLFramebuffer | WebGLRenderbuffer | WebGLShaderPrecisionFormat | WebGLTexture | WebGLUniformLocation | WebGLVertexArrayObject;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { mutationCallBack, blockClass, maskTextClass, Mirror, scrollCallback, SamplingStrategy } from '../types';
|
|
2
|
-
import { MaskInputOptions, SlimDOMOptions, MaskTextFn, MaskInputFn } from '../snapshot';
|
|
3
|
-
import { IframeManager } from './iframe-manager';
|
|
4
|
-
import { CanvasManager } from './observers/canvas/canvas-manager';
|
|
5
|
-
declare type BypassOptions = {
|
|
6
|
-
blockClass: blockClass;
|
|
7
|
-
blockSelector: string | null;
|
|
8
|
-
maskTextClass: maskTextClass;
|
|
9
|
-
maskTextSelector: string | null;
|
|
10
|
-
inlineStylesheet: boolean;
|
|
11
|
-
maskInputOptions: MaskInputOptions;
|
|
12
|
-
maskTextFn: MaskTextFn | undefined;
|
|
13
|
-
maskInputFn: MaskInputFn | undefined;
|
|
14
|
-
recordCanvas: boolean;
|
|
15
|
-
sampling: SamplingStrategy;
|
|
16
|
-
slimDOMOptions: SlimDOMOptions;
|
|
17
|
-
iframeManager: IframeManager;
|
|
18
|
-
canvasManager: CanvasManager;
|
|
19
|
-
enableStrictPrivacy: boolean;
|
|
20
|
-
};
|
|
21
|
-
export declare class ShadowDomManager {
|
|
22
|
-
private mutationCb;
|
|
23
|
-
private scrollCb;
|
|
24
|
-
private bypassOptions;
|
|
25
|
-
private mirror;
|
|
26
|
-
constructor(options: {
|
|
27
|
-
mutationCb: mutationCallBack;
|
|
28
|
-
scrollCb: scrollCallback;
|
|
29
|
-
bypassOptions: BypassOptions;
|
|
30
|
-
mirror: Mirror;
|
|
31
|
-
});
|
|
32
|
-
addShadowRoot(shadowRoot: ShadowRoot, doc: Document): void;
|
|
33
|
-
}
|
|
34
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Replayer } from '../';
|
|
2
|
-
import { canvasMutationCommand } from '../../types';
|
|
3
|
-
export default function canvasMutation({ event, mutation, target, imageMap, errorHandler, }: {
|
|
4
|
-
event: Parameters<Replayer['applyIncremental']>[0];
|
|
5
|
-
mutation: canvasMutationCommand;
|
|
6
|
-
target: HTMLCanvasElement;
|
|
7
|
-
imageMap: Replayer['imageMap'];
|
|
8
|
-
errorHandler: Replayer['warnCanvasMutationFailed'];
|
|
9
|
-
}): void;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Replayer } from '..';
|
|
2
|
-
import { canvasMutationData } from '../../types';
|
|
3
|
-
export default function canvasMutation({ event, mutation, target, imageMap, errorHandler, }: {
|
|
4
|
-
event: Parameters<Replayer['applyIncremental']>[0];
|
|
5
|
-
mutation: canvasMutationData;
|
|
6
|
-
target: HTMLCanvasElement;
|
|
7
|
-
imageMap: Replayer['imageMap'];
|
|
8
|
-
errorHandler: Replayer['warnCanvasMutationFailed'];
|
|
9
|
-
}): void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Replayer } from '../';
|
|
2
|
-
import { CanvasContext, canvasMutationCommand, SerializedWebGlArg } from '../../types';
|
|
3
|
-
export declare function variableListFor(ctx: WebGLRenderingContext | WebGL2RenderingContext, ctor: string): any[];
|
|
4
|
-
export declare function deserializeArg(imageMap: Replayer['imageMap'], ctx: WebGLRenderingContext | WebGL2RenderingContext): (arg: SerializedWebGlArg) => any;
|
|
5
|
-
export default function webglMutation({ mutation, target, type, imageMap, errorHandler, }: {
|
|
6
|
-
mutation: canvasMutationCommand;
|
|
7
|
-
target: HTMLCanvasElement;
|
|
8
|
-
type: CanvasContext;
|
|
9
|
-
imageMap: Replayer['imageMap'];
|
|
10
|
-
errorHandler: Replayer['warnCanvasMutationFailed'];
|
|
11
|
-
}): void;
|
package/dist/replay/index.d.ts
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { Timer } from './timer';
|
|
2
|
-
import { createPlayerService, createSpeedService } from './machine';
|
|
3
|
-
import { eventWithTime, playerConfig, playerMetaData, Handler, Mirror, SessionInterval } from '../types';
|
|
4
|
-
import './styles/style.css';
|
|
5
|
-
export declare class Replayer {
|
|
6
|
-
wrapper: HTMLDivElement;
|
|
7
|
-
iframe: HTMLIFrameElement;
|
|
8
|
-
service: ReturnType<typeof createPlayerService>;
|
|
9
|
-
speedService: ReturnType<typeof createSpeedService>;
|
|
10
|
-
get timer(): Timer;
|
|
11
|
-
config: playerConfig;
|
|
12
|
-
private mouse;
|
|
13
|
-
private mouseTail;
|
|
14
|
-
private tailPositions;
|
|
15
|
-
private emitter;
|
|
16
|
-
private nextUserInteractionEvent;
|
|
17
|
-
private activityIntervals;
|
|
18
|
-
private inactiveEndTimestamp;
|
|
19
|
-
private legacy_missingNodeRetryMap;
|
|
20
|
-
private treeIndex;
|
|
21
|
-
private fragmentParentMap;
|
|
22
|
-
private elementStateMap;
|
|
23
|
-
private virtualStyleRulesMap;
|
|
24
|
-
private cache;
|
|
25
|
-
private imageMap;
|
|
26
|
-
private mirror;
|
|
27
|
-
private firstFullSnapshot;
|
|
28
|
-
private newDocumentQueue;
|
|
29
|
-
private mousePos;
|
|
30
|
-
private touchActive;
|
|
31
|
-
constructor(events: Array<eventWithTime | string>, config?: Partial<playerConfig>);
|
|
32
|
-
on(event: string, handler: Handler): this;
|
|
33
|
-
off(event: string, handler: Handler): this;
|
|
34
|
-
setConfig(config: Partial<playerConfig>): void;
|
|
35
|
-
getActivityIntervals(): Array<SessionInterval>;
|
|
36
|
-
getMetaData(): playerMetaData;
|
|
37
|
-
getCurrentTime(): number;
|
|
38
|
-
getTimeOffset(): number;
|
|
39
|
-
getMirror(): Mirror;
|
|
40
|
-
play(timeOffset?: number): void;
|
|
41
|
-
pause(timeOffset?: number): void;
|
|
42
|
-
resume(timeOffset?: number): void;
|
|
43
|
-
startLive(baselineTime?: number): void;
|
|
44
|
-
addEvent(rawEvent: eventWithTime | string): void;
|
|
45
|
-
replaceEvents(events: eventWithTime[]): void;
|
|
46
|
-
enableInteract(): void;
|
|
47
|
-
disableInteract(): void;
|
|
48
|
-
resetCache(): void;
|
|
49
|
-
private setupDom;
|
|
50
|
-
private handleResize;
|
|
51
|
-
private applyEventsSynchronously;
|
|
52
|
-
private getCastFn;
|
|
53
|
-
private handleInactivity;
|
|
54
|
-
private rebuildFullSnapshot;
|
|
55
|
-
private insertStyleRules;
|
|
56
|
-
private attachDocumentToIframe;
|
|
57
|
-
private collectIframeAndAttachDocument;
|
|
58
|
-
private waitForStylesheetLoad;
|
|
59
|
-
private hasImageArg;
|
|
60
|
-
private getImageArgs;
|
|
61
|
-
private preloadAllImages;
|
|
62
|
-
private preloadImages;
|
|
63
|
-
private applyIncremental;
|
|
64
|
-
private applyMutation;
|
|
65
|
-
private applyScroll;
|
|
66
|
-
private applyInput;
|
|
67
|
-
private legacy_resolveMissingNode;
|
|
68
|
-
private moveAndHover;
|
|
69
|
-
private drawMouseTail;
|
|
70
|
-
private hoverElements;
|
|
71
|
-
private isUserInteraction;
|
|
72
|
-
private backToNormal;
|
|
73
|
-
private restoreRealParent;
|
|
74
|
-
private storeState;
|
|
75
|
-
private restoreState;
|
|
76
|
-
private restoreNodeSheet;
|
|
77
|
-
private warnNodeNotFound;
|
|
78
|
-
private warnCanvasMutationFailed;
|
|
79
|
-
private debugNodeNotFound;
|
|
80
|
-
private warn;
|
|
81
|
-
private debug;
|
|
82
|
-
}
|
package/dist/replay/machine.d.ts
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { StateMachine } from '@xstate/fsm';
|
|
2
|
-
import { playerConfig, eventWithTime, Emitter } from '../types';
|
|
3
|
-
import { Timer } from './timer';
|
|
4
|
-
export declare type PlayerContext = {
|
|
5
|
-
events: eventWithTime[];
|
|
6
|
-
timer: Timer;
|
|
7
|
-
timeOffset: number;
|
|
8
|
-
baselineTime: number;
|
|
9
|
-
lastPlayedEvent: eventWithTime | null;
|
|
10
|
-
};
|
|
11
|
-
export declare type PlayerEvent = {
|
|
12
|
-
type: 'PLAY';
|
|
13
|
-
payload: {
|
|
14
|
-
timeOffset: number;
|
|
15
|
-
};
|
|
16
|
-
} | {
|
|
17
|
-
type: 'CAST_EVENT';
|
|
18
|
-
payload: {
|
|
19
|
-
event: eventWithTime;
|
|
20
|
-
};
|
|
21
|
-
} | {
|
|
22
|
-
type: 'PAUSE';
|
|
23
|
-
} | {
|
|
24
|
-
type: 'TO_LIVE';
|
|
25
|
-
payload: {
|
|
26
|
-
baselineTime?: number;
|
|
27
|
-
};
|
|
28
|
-
} | {
|
|
29
|
-
type: 'ADD_EVENT';
|
|
30
|
-
payload: {
|
|
31
|
-
event: eventWithTime;
|
|
32
|
-
};
|
|
33
|
-
} | {
|
|
34
|
-
type: 'REPLACE_EVENTS';
|
|
35
|
-
payload: {
|
|
36
|
-
events: eventWithTime[];
|
|
37
|
-
};
|
|
38
|
-
} | {
|
|
39
|
-
type: 'END';
|
|
40
|
-
};
|
|
41
|
-
export declare type PlayerState = {
|
|
42
|
-
value: 'playing';
|
|
43
|
-
context: PlayerContext;
|
|
44
|
-
} | {
|
|
45
|
-
value: 'paused';
|
|
46
|
-
context: PlayerContext;
|
|
47
|
-
} | {
|
|
48
|
-
value: 'live';
|
|
49
|
-
context: PlayerContext;
|
|
50
|
-
};
|
|
51
|
-
export declare function discardPriorSnapshots(events: eventWithTime[], baselineTime: number): eventWithTime[];
|
|
52
|
-
declare type PlayerAssets = {
|
|
53
|
-
emitter: Emitter;
|
|
54
|
-
applyEventsSynchronously(events: Array<eventWithTime>): void;
|
|
55
|
-
getCastFn(event: eventWithTime, isSync: boolean): () => void;
|
|
56
|
-
};
|
|
57
|
-
export declare function createPlayerService(context: PlayerContext, { getCastFn, applyEventsSynchronously, emitter }: PlayerAssets): StateMachine.Service<PlayerContext, PlayerEvent, PlayerState>;
|
|
58
|
-
export declare type SpeedContext = {
|
|
59
|
-
normalSpeed: playerConfig['speed'];
|
|
60
|
-
timer: Timer;
|
|
61
|
-
};
|
|
62
|
-
export declare type SpeedEvent = {
|
|
63
|
-
type: 'FAST_FORWARD';
|
|
64
|
-
payload: {
|
|
65
|
-
speed: playerConfig['speed'];
|
|
66
|
-
};
|
|
67
|
-
} | {
|
|
68
|
-
type: 'BACK_TO_NORMAL';
|
|
69
|
-
} | {
|
|
70
|
-
type: 'SET_SPEED';
|
|
71
|
-
payload: {
|
|
72
|
-
speed: playerConfig['speed'];
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
export declare type SpeedState = {
|
|
76
|
-
value: 'normal';
|
|
77
|
-
context: SpeedContext;
|
|
78
|
-
} | {
|
|
79
|
-
value: 'skipping';
|
|
80
|
-
context: SpeedContext;
|
|
81
|
-
};
|
|
82
|
-
export declare function createSpeedService(context: SpeedContext): StateMachine.Service<SpeedContext, SpeedEvent, SpeedState>;
|
|
83
|
-
export declare type PlayerMachineState = StateMachine.State<PlayerContext, PlayerEvent, PlayerState>;
|
|
84
|
-
export declare type SpeedMachineState = StateMachine.State<SpeedContext, SpeedEvent, SpeedState>;
|
|
85
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function polyfill(w?: Window, d?: Document): void;
|
package/dist/replay/timer.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { actionWithDelay, eventWithTime } from '../types';
|
|
2
|
-
export declare class Timer {
|
|
3
|
-
timeOffset: number;
|
|
4
|
-
speed: number;
|
|
5
|
-
private actions;
|
|
6
|
-
private raf;
|
|
7
|
-
private liveMode;
|
|
8
|
-
constructor(actions: actionWithDelay[] | undefined, speed: number);
|
|
9
|
-
addAction(action: actionWithDelay): void;
|
|
10
|
-
addActions(actions: actionWithDelay[]): void;
|
|
11
|
-
replaceActions(actions: actionWithDelay[]): void;
|
|
12
|
-
start(): void;
|
|
13
|
-
clear(): void;
|
|
14
|
-
setSpeed(speed: number): void;
|
|
15
|
-
toggleLiveMode(mode: boolean): void;
|
|
16
|
-
isActive(): boolean;
|
|
17
|
-
private findActionIndex;
|
|
18
|
-
}
|
|
19
|
-
export declare function addDelay(event: eventWithTime, baselineTime: number): number;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { INode } from '../snapshot';
|
|
2
|
-
export declare enum StyleRuleType {
|
|
3
|
-
Insert = 0,
|
|
4
|
-
Remove = 1,
|
|
5
|
-
Snapshot = 2,
|
|
6
|
-
SetProperty = 3,
|
|
7
|
-
RemoveProperty = 4
|
|
8
|
-
}
|
|
9
|
-
declare type InsertRule = {
|
|
10
|
-
cssText: string;
|
|
11
|
-
type: StyleRuleType.Insert;
|
|
12
|
-
index?: number | number[];
|
|
13
|
-
};
|
|
14
|
-
declare type RemoveRule = {
|
|
15
|
-
type: StyleRuleType.Remove;
|
|
16
|
-
index: number | number[];
|
|
17
|
-
};
|
|
18
|
-
declare type SnapshotRule = {
|
|
19
|
-
type: StyleRuleType.Snapshot;
|
|
20
|
-
cssTexts: string[];
|
|
21
|
-
};
|
|
22
|
-
declare type SetPropertyRule = {
|
|
23
|
-
type: StyleRuleType.SetProperty;
|
|
24
|
-
index: number[];
|
|
25
|
-
property: string;
|
|
26
|
-
value: string | null;
|
|
27
|
-
priority: string | undefined;
|
|
28
|
-
};
|
|
29
|
-
declare type RemovePropertyRule = {
|
|
30
|
-
type: StyleRuleType.RemoveProperty;
|
|
31
|
-
index: number[];
|
|
32
|
-
property: string;
|
|
33
|
-
};
|
|
34
|
-
export declare type VirtualStyleRules = Array<InsertRule | RemoveRule | SnapshotRule | SetPropertyRule | RemovePropertyRule>;
|
|
35
|
-
export declare type VirtualStyleRulesMap = Map<INode, VirtualStyleRules>;
|
|
36
|
-
export declare function getNestedRule(rules: CSSRuleList, position: number[]): CSSGroupingRule;
|
|
37
|
-
export declare function getPositionsAndIndex(nestedIndex: number[]): {
|
|
38
|
-
positions: number[];
|
|
39
|
-
index: number | undefined;
|
|
40
|
-
};
|
|
41
|
-
export declare function applyVirtualStyleRulesToNode(storedRules: VirtualStyleRules, styleNode: HTMLStyleElement): void;
|
|
42
|
-
export declare function storeCSSRules(parentElement: HTMLStyleElement, virtualStyleRulesMap: VirtualStyleRulesMap): void;
|
|
43
|
-
export {};
|
package/dist/rrdom/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare type AnyObject = {
|
|
2
|
-
[key: string]: any;
|
|
3
|
-
__rrdom__?: RRdomTreeNode;
|
|
4
|
-
};
|
|
5
|
-
export declare class RRdomTreeNode implements AnyObject {
|
|
6
|
-
parent: AnyObject | null;
|
|
7
|
-
previousSibling: AnyObject | null;
|
|
8
|
-
nextSibling: AnyObject | null;
|
|
9
|
-
firstChild: AnyObject | null;
|
|
10
|
-
lastChild: AnyObject | null;
|
|
11
|
-
childrenVersion: number;
|
|
12
|
-
childIndexCachedUpTo: AnyObject | null;
|
|
13
|
-
cachedIndex: number;
|
|
14
|
-
cachedIndexVersion: number;
|
|
15
|
-
get isAttached(): boolean;
|
|
16
|
-
get hasChildren(): boolean;
|
|
17
|
-
childrenChanged(): void;
|
|
18
|
-
getCachedIndex(parentNode: AnyObject): number;
|
|
19
|
-
setCachedIndex(parentNode: AnyObject, index: number): void;
|
|
20
|
-
}
|