Release 0.9.10
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "rrweb",
|
"name": "rrweb",
|
||||||
"version": "0.9.9",
|
"version": "0.9.10",
|
||||||
"description": "record and replay the web",
|
"description": "record and replay the web",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "npm run bundle:browser && cross-env TS_NODE_CACHE=false TS_NODE_FILES=true mocha -r ts-node/register test/**/*.test.ts",
|
"test": "npm run bundle:browser && cross-env TS_NODE_CACHE=false TS_NODE_FILES=true mocha -r ts-node/register test/**/*.test.ts",
|
||||||
|
|||||||
6
typings/record/mutation.d.ts
vendored
6
typings/record/mutation.d.ts
vendored
@@ -1,4 +1,4 @@
|
|||||||
import { MaskInputOptions } from 'rrweb-snapshot';
|
import { MaskInputOptions, SlimDOMOptions } from 'rrweb-snapshot';
|
||||||
import { mutationRecord, blockClass, mutationCallBack } from '../types';
|
import { mutationRecord, blockClass, mutationCallBack } from '../types';
|
||||||
export default class MutationBuffer {
|
export default class MutationBuffer {
|
||||||
private frozen;
|
private frozen;
|
||||||
@@ -12,10 +12,12 @@ export default class MutationBuffer {
|
|||||||
private droppedSet;
|
private droppedSet;
|
||||||
private emissionCallback;
|
private emissionCallback;
|
||||||
private blockClass;
|
private blockClass;
|
||||||
|
private blockSelector;
|
||||||
private inlineStylesheet;
|
private inlineStylesheet;
|
||||||
private maskInputOptions;
|
private maskInputOptions;
|
||||||
private recordCanvas;
|
private recordCanvas;
|
||||||
init(cb: mutationCallBack, blockClass: blockClass, inlineStylesheet: boolean, maskInputOptions: MaskInputOptions, recordCanvas: boolean): void;
|
private slimDOMOptions;
|
||||||
|
init(cb: mutationCallBack, blockClass: blockClass, blockSelector: string | null, inlineStylesheet: boolean, maskInputOptions: MaskInputOptions, recordCanvas: boolean, slimDOMOptions: SlimDOMOptions): void;
|
||||||
freeze(): void;
|
freeze(): void;
|
||||||
unfreeze(): void;
|
unfreeze(): void;
|
||||||
isFrozen(): boolean;
|
isFrozen(): boolean;
|
||||||
|
|||||||
6
typings/types.d.ts
vendored
6
typings/types.d.ts
vendored
@@ -1,4 +1,4 @@
|
|||||||
import { serializedNodeWithId, idNodeMap, INode, MaskInputOptions } from 'rrweb-snapshot';
|
import { serializedNodeWithId, idNodeMap, INode, MaskInputOptions, SlimDOMOptions } from 'rrweb-snapshot';
|
||||||
import { PackFn, UnpackFn } from './packer/base';
|
import { PackFn, UnpackFn } from './packer/base';
|
||||||
import { FontFaceDescriptors } from 'css-font-loading-module';
|
import { FontFaceDescriptors } from 'css-font-loading-module';
|
||||||
export declare enum EventType {
|
export declare enum EventType {
|
||||||
@@ -110,10 +110,12 @@ export declare type recordOptions<T> = {
|
|||||||
checkoutEveryNth?: number;
|
checkoutEveryNth?: number;
|
||||||
checkoutEveryNms?: number;
|
checkoutEveryNms?: number;
|
||||||
blockClass?: blockClass;
|
blockClass?: blockClass;
|
||||||
|
blockSelector?: string;
|
||||||
ignoreClass?: string;
|
ignoreClass?: string;
|
||||||
maskAllInputs?: boolean;
|
maskAllInputs?: boolean;
|
||||||
maskInputOptions?: MaskInputOptions;
|
maskInputOptions?: MaskInputOptions;
|
||||||
maskInputFn?: MaskInputFn;
|
maskInputFn?: MaskInputFn;
|
||||||
|
slimDOMOptions?: SlimDOMOptions;
|
||||||
inlineStylesheet?: boolean;
|
inlineStylesheet?: boolean;
|
||||||
hooks?: hooksParam;
|
hooks?: hooksParam;
|
||||||
packFn?: PackFn;
|
packFn?: PackFn;
|
||||||
@@ -131,6 +133,7 @@ export declare type observerParam = {
|
|||||||
inputCb: inputCallback;
|
inputCb: inputCallback;
|
||||||
mediaInteractionCb: mediaInteractionCallback;
|
mediaInteractionCb: mediaInteractionCallback;
|
||||||
blockClass: blockClass;
|
blockClass: blockClass;
|
||||||
|
blockSelector: string | null;
|
||||||
ignoreClass: string;
|
ignoreClass: string;
|
||||||
maskInputOptions: MaskInputOptions;
|
maskInputOptions: MaskInputOptions;
|
||||||
maskInputFn?: MaskInputFn;
|
maskInputFn?: MaskInputFn;
|
||||||
@@ -141,6 +144,7 @@ export declare type observerParam = {
|
|||||||
sampling: SamplingStrategy;
|
sampling: SamplingStrategy;
|
||||||
recordCanvas: boolean;
|
recordCanvas: boolean;
|
||||||
collectFonts: boolean;
|
collectFonts: boolean;
|
||||||
|
slimDOMOptions: SlimDOMOptions;
|
||||||
};
|
};
|
||||||
export declare type hooksParam = {
|
export declare type hooksParam = {
|
||||||
mutation?: mutationCallBack;
|
mutation?: mutationCallBack;
|
||||||
|
|||||||
1
typings/utils.d.ts
vendored
1
typings/utils.d.ts
vendored
@@ -10,6 +10,7 @@ export declare function patch(source: {
|
|||||||
export declare function getWindowHeight(): number;
|
export declare function getWindowHeight(): number;
|
||||||
export declare function getWindowWidth(): number;
|
export declare function getWindowWidth(): number;
|
||||||
export declare function isBlocked(node: Node | null, blockClass: blockClass): boolean;
|
export declare function isBlocked(node: Node | null, blockClass: blockClass): boolean;
|
||||||
|
export declare function isIgnored(n: Node | INode): boolean;
|
||||||
export declare function isAncestorRemoved(target: INode): boolean;
|
export declare function isAncestorRemoved(target: INode): boolean;
|
||||||
export declare function isTouchEvent(event: MouseEvent | TouchEvent): event is TouchEvent;
|
export declare function isTouchEvent(event: MouseEvent | TouchEvent): event is TouchEvent;
|
||||||
export declare function polyfill(win?: Window & typeof globalThis): void;
|
export declare function polyfill(win?: Window & typeof globalThis): void;
|
||||||
|
|||||||
Reference in New Issue
Block a user