Skip to content

Commit 1192735

Browse files
committed
Release 1.1.0
1 parent 88f348a commit 1192735

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rrweb-snapshot",
3-
"version": "1.0.7",
3+
"version": "1.1.0",
44
"description": "rrweb's component to take a snapshot of DOM, aka DOM serializer",
55
"scripts": {
66
"prepare": "npm run prepack",

typings/snapshot.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { serializedNodeWithId, INode, idNodeMap, MaskInputOptions, SlimDOMOption
22
export declare const IGNORED_NODE = -2;
33
export declare function absoluteToStylesheet(cssText: string | null, href: string): string;
44
export declare function absoluteToDoc(doc: Document, attributeValue: string): string;
5-
export declare function transformAttribute(doc: Document, name: string, value: string): string;
5+
export declare function transformAttribute(doc: Document, tagName: string, name: string, value: string): string;
66
export declare function _isBlockedElement(element: HTMLElement, blockClass: string | RegExp, blockSelector: string | null): boolean;
77
export declare function serializeNodeWithId(n: Node | INode, options: {
88
doc: Document;

typings/types.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ export declare type commentNode = {
4242
};
4343
export declare type serializedNode = (documentNode | documentTypeNode | elementNode | textNode | cdataNode | commentNode) & {
4444
rootId?: number;
45+
isShadowHost?: boolean;
46+
isShadow?: boolean;
4547
};
4648
export declare type serializedNodeWithId = serializedNode & {
4749
id: number;

0 commit comments

Comments
 (0)