Release 1.1.0

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent 105268f472
commit 697be5acf7
3 changed files with 4 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "rrweb-snapshot",
"version": "1.0.7",
"version": "1.1.0",
"description": "rrweb's component to take a snapshot of DOM, aka DOM serializer",
"scripts": {
"prepare": "npm run prepack",

View File

@@ -2,7 +2,7 @@ import { serializedNodeWithId, INode, idNodeMap, MaskInputOptions, SlimDOMOption
export declare const IGNORED_NODE = -2;
export declare function absoluteToStylesheet(cssText: string | null, href: string): string;
export declare function absoluteToDoc(doc: Document, attributeValue: string): string;
export declare function transformAttribute(doc: Document, name: string, value: string): string;
export declare function transformAttribute(doc: Document, tagName: string, name: string, value: string): string;
export declare function _isBlockedElement(element: HTMLElement, blockClass: string | RegExp, blockSelector: string | null): boolean;
export declare function serializeNodeWithId(n: Node | INode, options: {
doc: Document;

2
typings/types.d.ts vendored
View File

@@ -42,6 +42,8 @@ export declare type commentNode = {
};
export declare type serializedNode = (documentNode | documentTypeNode | elementNode | textNode | cdataNode | commentNode) & {
rootId?: number;
isShadowHost?: boolean;
isShadow?: boolean;
};
export declare type serializedNodeWithId = serializedNode & {
id: number;