@betterbugs/rrdom-nodejs 2.0.0-alpha.19
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/README.md +179 -0
- package/dist/index.d.cts +117 -0
- package/dist/index.d.ts +117 -0
- package/dist/rrdom-nodejs.cjs +4446 -0
- package/dist/rrdom-nodejs.cjs.map +1 -0
- package/dist/rrdom-nodejs.js +4446 -0
- package/dist/rrdom-nodejs.js.map +1 -0
- package/dist/rrdom-nodejs.umd.cjs +4511 -0
- package/dist/rrdom-nodejs.umd.cjs.map +7 -0
- package/dist/rrdom-nodejs.umd.min.cjs +57 -0
- package/dist/rrdom-nodejs.umd.min.cjs.map +7 -0
- package/package.json +73 -0
package/README.md
ADDED
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
# rrdom-nodejs
|
|
2
|
+
|
|
3
|
+
`rrdom-nodejs` is a Node.js implementation of the [`rrdom`](../rrdom/) library. It allows you to replay and inspect recorded user interactions with `rrweb` in a Node.js environment.
|
|
4
|
+
|
|
5
|
+
See the [guide](../../guide.md) for more info on rrweb.
|
|
6
|
+
|
|
7
|
+
## Sponsors
|
|
8
|
+
|
|
9
|
+
[Become a sponsor](https://opencollective.com/rrweb#sponsor) and get your logo on our README on Github with a link to your site.
|
|
10
|
+
|
|
11
|
+
### Gold Sponsors 🥇
|
|
12
|
+
|
|
13
|
+
<div dir="auto">
|
|
14
|
+
|
|
15
|
+
<a href="https://opencollective.com/rrweb/tiers/gold-sponsor/0/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/gold-sponsor/0/avatar.svg?requireActive=false&avatarHeight=225" alt="sponsor"></a>
|
|
16
|
+
<a href="https://opencollective.com/rrweb/tiers/gold-sponsor/1/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/gold-sponsor/1/avatar.svg?requireActive=false&avatarHeight=225" alt="sponsor"></a>
|
|
17
|
+
<a href="https://opencollective.com/rrweb/tiers/gold-sponsor/2/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/gold-sponsor/2/avatar.svg?requireActive=false&avatarHeight=225" alt="sponsor"></a>
|
|
18
|
+
<a href="https://opencollective.com/rrweb/tiers/gold-sponsor/3/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/gold-sponsor/3/avatar.svg?requireActive=false&avatarHeight=225" alt="sponsor"></a>
|
|
19
|
+
<a href="https://opencollective.com/rrweb/tiers/gold-sponsor/4/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/gold-sponsor/4/avatar.svg?requireActive=false&avatarHeight=225" alt="sponsor"></a>
|
|
20
|
+
<a href="https://opencollective.com/rrweb/tiers/gold-sponsor/5/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/gold-sponsor/5/avatar.svg?requireActive=false&avatarHeight=225" alt="sponsor"></a>
|
|
21
|
+
<a href="https://opencollective.com/rrweb/tiers/gold-sponsor/6/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/gold-sponsor/6/avatar.svg?requireActive=false&avatarHeight=225" alt="sponsor"></a>
|
|
22
|
+
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
### Silver Sponsors 🥈
|
|
26
|
+
|
|
27
|
+
<div dir="auto">
|
|
28
|
+
|
|
29
|
+
<a href="https://opencollective.com/rrweb/tiers/silver-sponsor/0/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/silver-sponsor/0/avatar.svg?requireActive=false&avatarHeight=158" alt="sponsor"></a>
|
|
30
|
+
<a href="https://opencollective.com/rrweb/tiers/silver-sponsor/1/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/silver-sponsor/1/avatar.svg?requireActive=false&avatarHeight=158" alt="sponsor"></a>
|
|
31
|
+
<a href="https://opencollective.com/rrweb/tiers/silver-sponsor/2/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/silver-sponsor/2/avatar.svg?requireActive=false&avatarHeight=158" alt="sponsor"></a>
|
|
32
|
+
<a href="https://opencollective.com/rrweb/tiers/silver-sponsor/3/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/silver-sponsor/3/avatar.svg?requireActive=false&avatarHeight=158" alt="sponsor"></a>
|
|
33
|
+
<a href="https://opencollective.com/rrweb/tiers/silver-sponsor/4/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/silver-sponsor/4/avatar.svg?requireActive=false&avatarHeight=158" alt="sponsor"></a>
|
|
34
|
+
<a href="https://opencollective.com/rrweb/tiers/silver-sponsor/5/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/silver-sponsor/5/avatar.svg?requireActive=false&avatarHeight=158" alt="sponsor"></a>
|
|
35
|
+
<a href="https://opencollective.com/rrweb/tiers/silver-sponsor/6/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/silver-sponsor/6/avatar.svg?requireActive=false&avatarHeight=158" alt="sponsor"></a>
|
|
36
|
+
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
### Bronze Sponsors 🥉
|
|
40
|
+
|
|
41
|
+
<div dir="auto">
|
|
42
|
+
|
|
43
|
+
<a href="https://opencollective.com/rrweb/tiers/sponsors/0/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/sponsors/0/avatar.svg?requireActive=false&avatarHeight=70" alt="sponsor"></a>
|
|
44
|
+
<a href="https://opencollective.com/rrweb/tiers/sponsors/1/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/sponsors/1/avatar.svg?requireActive=false&avatarHeight=70" alt="sponsor"></a>
|
|
45
|
+
<a href="https://opencollective.com/rrweb/tiers/sponsors/2/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/sponsors/2/avatar.svg?requireActive=false&avatarHeight=70" alt="sponsor"></a>
|
|
46
|
+
<a href="https://opencollective.com/rrweb/tiers/sponsors/3/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/sponsors/3/avatar.svg?requireActive=false&avatarHeight=70" alt="sponsor"></a>
|
|
47
|
+
<a href="https://opencollective.com/rrweb/tiers/sponsors/4/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/sponsors/4/avatar.svg?requireActive=false&avatarHeight=70" alt="sponsor"></a>
|
|
48
|
+
<a href="https://opencollective.com/rrweb/tiers/sponsors/5/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/sponsors/5/avatar.svg?requireActive=false&avatarHeight=70" alt="sponsor"></a>
|
|
49
|
+
<a href="https://opencollective.com/rrweb/tiers/sponsors/6/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/sponsors/6/avatar.svg?requireActive=false&avatarHeight=70" alt="sponsor"></a>
|
|
50
|
+
<a href="https://opencollective.com/rrweb/tiers/sponsors/7/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/sponsors/7/avatar.svg?requireActive=false&avatarHeight=70" alt="sponsor"></a>
|
|
51
|
+
<a href="https://opencollective.com/rrweb/tiers/sponsors/8/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/sponsors/8/avatar.svg?requireActive=false&avatarHeight=70" alt="sponsor"></a>
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
|
|
55
|
+
### Backers
|
|
56
|
+
|
|
57
|
+
<a href="https://opencollective.com/rrweb#sponsor" rel="nofollow"><img src="https://opencollective.com/rrweb/tiers/backers.svg?avatarHeight=36"></a>
|
|
58
|
+
|
|
59
|
+
## Core Team Members
|
|
60
|
+
|
|
61
|
+
<table>
|
|
62
|
+
<tr>
|
|
63
|
+
<td align="center">
|
|
64
|
+
<a href="https://github.com/Yuyz0112">
|
|
65
|
+
<img
|
|
66
|
+
src="https://avatars.githubusercontent.com/u/13651389?s=100"
|
|
67
|
+
width="100px;"
|
|
68
|
+
alt=""
|
|
69
|
+
/>
|
|
70
|
+
<br /><sub><b>Yuyz0112</b></sub>
|
|
71
|
+
<br /><br />
|
|
72
|
+
</a>
|
|
73
|
+
</td>
|
|
74
|
+
<td align="center">
|
|
75
|
+
<a href="https://github.com/YunFeng0817">
|
|
76
|
+
<img
|
|
77
|
+
src="https://avatars.githubusercontent.com/u/27533910?s=100"
|
|
78
|
+
width="100px;"
|
|
79
|
+
alt=""
|
|
80
|
+
/>
|
|
81
|
+
<br /><sub><b>Yun Feng</b></sub>
|
|
82
|
+
<br /><br />
|
|
83
|
+
</a>
|
|
84
|
+
</td>
|
|
85
|
+
<td align="center">
|
|
86
|
+
<a href="https://github.com/eoghanmurray">
|
|
87
|
+
<img
|
|
88
|
+
src="https://avatars.githubusercontent.com/u/156780?s=100"
|
|
89
|
+
width="100px;"
|
|
90
|
+
alt=""
|
|
91
|
+
/>
|
|
92
|
+
<br /><sub><b>eoghanmurray</b></sub>
|
|
93
|
+
<br /><br />
|
|
94
|
+
</a>
|
|
95
|
+
</td>
|
|
96
|
+
<td align="center">
|
|
97
|
+
<a href="https://github.com/Juice10">
|
|
98
|
+
<img
|
|
99
|
+
src="https://avatars.githubusercontent.com/u/4106?s=100"
|
|
100
|
+
width="100px;"
|
|
101
|
+
alt=""
|
|
102
|
+
/>
|
|
103
|
+
<br /><sub><b>Juice10</b></sub>
|
|
104
|
+
<br /><sub>open for rrweb consulting</sub>
|
|
105
|
+
</a>
|
|
106
|
+
</td>
|
|
107
|
+
</tr>
|
|
108
|
+
</table>
|
|
109
|
+
|
|
110
|
+
## Who's using rrweb?
|
|
111
|
+
|
|
112
|
+
<table>
|
|
113
|
+
<tr>
|
|
114
|
+
<td align="center">
|
|
115
|
+
<a href="http://www.smartx.com/" target="_blank">
|
|
116
|
+
<img width="195px" src="https://www.rrweb.io/logos/smartx.png">
|
|
117
|
+
</a>
|
|
118
|
+
</td>
|
|
119
|
+
<td align="center">
|
|
120
|
+
<a href="https://posthog.com?utm_source=rrweb&utm_medium=sponsorship&utm_campaign=open-source-sponsorship" target="_blank">
|
|
121
|
+
<img width="195px" src="https://www.rrweb.io/logos/posthog.png">
|
|
122
|
+
</a>
|
|
123
|
+
</td>
|
|
124
|
+
<td align="center">
|
|
125
|
+
<a href="https://statcounter.com/session-replay/" target="_blank">
|
|
126
|
+
<img width="195px" src="https://statcounter.com/images/logo-statcounter-arc-blue.svg">
|
|
127
|
+
</a>
|
|
128
|
+
</td>
|
|
129
|
+
<td align="center">
|
|
130
|
+
<a href="https://recordonce.com/" target="_blank">
|
|
131
|
+
<img width="195px" alt="Smart screen recording for SaaS" src="https://uploads-ssl.webflow.com/5f3d133183156245630d4446/5f3d1940abe8db8612c23521_Record-Once-logo-554x80px.svg">
|
|
132
|
+
</a>
|
|
133
|
+
</td>
|
|
134
|
+
</tr>
|
|
135
|
+
<tr>
|
|
136
|
+
<td align="center">
|
|
137
|
+
<a href="https://cux.io" target="_blank">
|
|
138
|
+
<img style="padding: 8px" alt="The first ever UX automation tool" width="195px" src="https://cux.io/cux-logo.svg">
|
|
139
|
+
</a>
|
|
140
|
+
</td>
|
|
141
|
+
<td align="center">
|
|
142
|
+
<a href="https://remsupp.com" target="_blank">
|
|
143
|
+
<img style="padding: 8px" alt="Remote Access & Co-Browsing" width="195px" src="https://remsupp.com/images/logo.png">
|
|
144
|
+
</a>
|
|
145
|
+
</td>
|
|
146
|
+
<td align="center">
|
|
147
|
+
<a href="https://highlight.io" target="_blank">
|
|
148
|
+
<img style="padding: 8px" alt="The open source, fullstack Monitoring Platform." width="195px" src="https://github.com/highlight/highlight/raw/main/highlight.io/public/images/logo.png">
|
|
149
|
+
</a>
|
|
150
|
+
</td>
|
|
151
|
+
<td align="center">
|
|
152
|
+
<a href="https://analyzee.io" target="_blank">
|
|
153
|
+
<img style="padding: 8px" alt="Comprehensive data analytics platform that empowers businesses to gain valuable insights and make data-driven decisions." width="195px" src="https://cdn.analyzee.io/assets/analyzee-logo.png">
|
|
154
|
+
</a>
|
|
155
|
+
</td>
|
|
156
|
+
</tr>
|
|
157
|
+
<tr>
|
|
158
|
+
<td align="center">
|
|
159
|
+
<a href="https://requestly.io" target="_blank">
|
|
160
|
+
<img style="padding: 8px" alt="Intercept, Modify, Record & Replay HTTP Requests." width="195px" src="https://github.com/requestly/requestly/assets/16779465/652552db-c867-44cb-9bb5-94a2026e04ca">
|
|
161
|
+
</a>
|
|
162
|
+
</td>
|
|
163
|
+
<td align="center">
|
|
164
|
+
<a href="https://gleap.io" target="_blank">
|
|
165
|
+
<img style="padding: 8px" alt="In-app bug reporting & customer feedback platform." width="195px" src="https://assets-global.website-files.com/6506f3f29c68b1724807619d/6506f56010237164c6306591_GleapLogo.svg">
|
|
166
|
+
</a>
|
|
167
|
+
</td>
|
|
168
|
+
<td align="center">
|
|
169
|
+
<a href="https://uxwizz.com" target="_blank">
|
|
170
|
+
<img style="padding: 8px" alt="Self-hosted website analytics with heatmaps and session recordings." width="195px" src="https://github.com/UXWizz/public-files/raw/main/assets/logo.png">
|
|
171
|
+
</a>
|
|
172
|
+
</td>
|
|
173
|
+
<td align="center">
|
|
174
|
+
<a href="https://www.howdygo.com" target="_blank">
|
|
175
|
+
<img style="padding: 8px" alt="Interactive product demos for small marketing teams" width="195px" src="https://assets-global.website-files.com/650afb446f1dd5bd410f00cc/650b2cec6188ff54dd9b01e1_Logo.svg">
|
|
176
|
+
</a>
|
|
177
|
+
</td>
|
|
178
|
+
</tr>
|
|
179
|
+
</table>
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { BaseRRCDATASection } from '@betterbugs/rrdom';
|
|
2
|
+
import { BaseRRComment } from '@betterbugs/rrdom';
|
|
3
|
+
import { BaseRRDocument } from '@betterbugs/rrdom';
|
|
4
|
+
import { BaseRRDocumentType } from '@betterbugs/rrdom';
|
|
5
|
+
import { BaseRRElement } from '@betterbugs/rrdom';
|
|
6
|
+
import { BaseRRMediaElement } from '@betterbugs/rrdom';
|
|
7
|
+
import { BaseRRNode } from '@betterbugs/rrdom';
|
|
8
|
+
import { BaseRRText } from '@betterbugs/rrdom';
|
|
9
|
+
import { CSSStyleDeclaration as CSSStyleDeclaration_2 } from '@betterbugs/rrdom';
|
|
10
|
+
import { IRRDocument } from '@betterbugs/rrdom';
|
|
11
|
+
import { IRRNode } from '@betterbugs/rrdom';
|
|
12
|
+
import { NWSAPI } from 'nwsapi';
|
|
13
|
+
|
|
14
|
+
export declare class RRCanvasElement extends RRElement {
|
|
15
|
+
getContext(): CanvasRenderingContext2D | null;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export declare class RRCDATASection extends BaseRRCDATASection {
|
|
19
|
+
readonly nodeName: "#cdata-section";
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export declare class RRComment extends BaseRRComment {
|
|
23
|
+
readonly nodeName: "#comment";
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export declare class RRDocument extends BaseRRDocument implements IRRDocument {
|
|
27
|
+
readonly nodeName: "#document";
|
|
28
|
+
private _nwsapi;
|
|
29
|
+
get nwsapi(): NWSAPI;
|
|
30
|
+
get documentElement(): RRElement | null;
|
|
31
|
+
get body(): RRElement | null;
|
|
32
|
+
get head(): RRElement | null;
|
|
33
|
+
get implementation(): RRDocument;
|
|
34
|
+
get firstElementChild(): RRElement | null;
|
|
35
|
+
appendChild(childNode: BaseRRNode): IRRNode;
|
|
36
|
+
insertBefore(newChild: BaseRRNode, refChild: BaseRRNode | null): IRRNode;
|
|
37
|
+
querySelectorAll(selectors: string): BaseRRNode[];
|
|
38
|
+
getElementsByTagName(tagName: string): RRElement[];
|
|
39
|
+
getElementsByClassName(className: string): RRElement[];
|
|
40
|
+
getElementById(elementId: string): RRElement | null;
|
|
41
|
+
createDocument(_namespace: string | null, _qualifiedName: string | null, _doctype?: DocumentType | null): RRDocument;
|
|
42
|
+
createDocumentType(qualifiedName: string, publicId: string, systemId: string): RRDocumentType;
|
|
43
|
+
createElement<K extends keyof HTMLElementTagNameMap>(tagName: K): RRElementType<K>;
|
|
44
|
+
createElement(tagName: string): RRElement;
|
|
45
|
+
createElementNS(_namespaceURI: string, qualifiedName: string): RRElement | RRMediaElement | RRCanvasElement | RRIFrameElement | RRImageElement | RRStyleElement;
|
|
46
|
+
createComment(data: string): RRComment;
|
|
47
|
+
createCDATASection(data: string): RRCDATASection;
|
|
48
|
+
createTextNode(data: string): RRText;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export declare class RRDocumentType extends BaseRRDocumentType {
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export declare class RRElement extends BaseRRElement {
|
|
55
|
+
private _style;
|
|
56
|
+
constructor(tagName: string);
|
|
57
|
+
get style(): CSSStyleDeclaration_2;
|
|
58
|
+
attachShadow(_init: ShadowRootInit): RRElement;
|
|
59
|
+
appendChild(newChild: BaseRRNode): BaseRRNode;
|
|
60
|
+
insertBefore(newChild: BaseRRNode, refChild: BaseRRNode | null): BaseRRNode;
|
|
61
|
+
getAttribute(name: string): string | null;
|
|
62
|
+
setAttribute(name: string, attribute: string): void;
|
|
63
|
+
removeAttribute(name: string): void;
|
|
64
|
+
get firstElementChild(): RRElement | null;
|
|
65
|
+
get nextElementSibling(): RRElement | null;
|
|
66
|
+
querySelectorAll(selectors: string): BaseRRNode[];
|
|
67
|
+
getElementById(elementId: string): RRElement | null;
|
|
68
|
+
getElementsByClassName(className: string): RRElement[];
|
|
69
|
+
getElementsByTagName(tagName: string): RRElement[];
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
declare interface RRElementTagNameMap {
|
|
73
|
+
audio: RRMediaElement;
|
|
74
|
+
canvas: RRCanvasElement;
|
|
75
|
+
iframe: RRIFrameElement;
|
|
76
|
+
img: RRImageElement;
|
|
77
|
+
style: RRStyleElement;
|
|
78
|
+
video: RRMediaElement;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
declare type RRElementType<K extends keyof HTMLElementTagNameMap> = K extends keyof RRElementTagNameMap ? RRElementTagNameMap[K] : RRElement;
|
|
82
|
+
|
|
83
|
+
export declare class RRIFrameElement extends RRElement {
|
|
84
|
+
width: string;
|
|
85
|
+
height: string;
|
|
86
|
+
src: string;
|
|
87
|
+
contentDocument: RRDocument;
|
|
88
|
+
contentWindow: RRWindow;
|
|
89
|
+
constructor(tagName: string);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export declare class RRImageElement extends RRElement {
|
|
93
|
+
src: string;
|
|
94
|
+
width: number;
|
|
95
|
+
height: number;
|
|
96
|
+
onload: ((this: GlobalEventHandlers, ev: Event) => unknown) | null;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export declare class RRMediaElement extends BaseRRMediaElement {
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export declare class RRStyleElement extends RRElement {
|
|
103
|
+
private _sheet;
|
|
104
|
+
get sheet(): CSSStyleSheet | null;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export declare class RRText extends BaseRRText {
|
|
108
|
+
readonly nodeName: "#text";
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export declare class RRWindow {
|
|
112
|
+
scrollLeft: number;
|
|
113
|
+
scrollTop: number;
|
|
114
|
+
scrollTo(options?: ScrollToOptions): void;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export { }
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { BaseRRCDATASection } from '@betterbugs/rrdom';
|
|
2
|
+
import { BaseRRComment } from '@betterbugs/rrdom';
|
|
3
|
+
import { BaseRRDocument } from '@betterbugs/rrdom';
|
|
4
|
+
import { BaseRRDocumentType } from '@betterbugs/rrdom';
|
|
5
|
+
import { BaseRRElement } from '@betterbugs/rrdom';
|
|
6
|
+
import { BaseRRMediaElement } from '@betterbugs/rrdom';
|
|
7
|
+
import { BaseRRNode } from '@betterbugs/rrdom';
|
|
8
|
+
import { BaseRRText } from '@betterbugs/rrdom';
|
|
9
|
+
import { CSSStyleDeclaration as CSSStyleDeclaration_2 } from '@betterbugs/rrdom';
|
|
10
|
+
import { IRRDocument } from '@betterbugs/rrdom';
|
|
11
|
+
import { IRRNode } from '@betterbugs/rrdom';
|
|
12
|
+
import { NWSAPI } from 'nwsapi';
|
|
13
|
+
|
|
14
|
+
export declare class RRCanvasElement extends RRElement {
|
|
15
|
+
getContext(): CanvasRenderingContext2D | null;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export declare class RRCDATASection extends BaseRRCDATASection {
|
|
19
|
+
readonly nodeName: "#cdata-section";
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export declare class RRComment extends BaseRRComment {
|
|
23
|
+
readonly nodeName: "#comment";
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export declare class RRDocument extends BaseRRDocument implements IRRDocument {
|
|
27
|
+
readonly nodeName: "#document";
|
|
28
|
+
private _nwsapi;
|
|
29
|
+
get nwsapi(): NWSAPI;
|
|
30
|
+
get documentElement(): RRElement | null;
|
|
31
|
+
get body(): RRElement | null;
|
|
32
|
+
get head(): RRElement | null;
|
|
33
|
+
get implementation(): RRDocument;
|
|
34
|
+
get firstElementChild(): RRElement | null;
|
|
35
|
+
appendChild(childNode: BaseRRNode): IRRNode;
|
|
36
|
+
insertBefore(newChild: BaseRRNode, refChild: BaseRRNode | null): IRRNode;
|
|
37
|
+
querySelectorAll(selectors: string): BaseRRNode[];
|
|
38
|
+
getElementsByTagName(tagName: string): RRElement[];
|
|
39
|
+
getElementsByClassName(className: string): RRElement[];
|
|
40
|
+
getElementById(elementId: string): RRElement | null;
|
|
41
|
+
createDocument(_namespace: string | null, _qualifiedName: string | null, _doctype?: DocumentType | null): RRDocument;
|
|
42
|
+
createDocumentType(qualifiedName: string, publicId: string, systemId: string): RRDocumentType;
|
|
43
|
+
createElement<K extends keyof HTMLElementTagNameMap>(tagName: K): RRElementType<K>;
|
|
44
|
+
createElement(tagName: string): RRElement;
|
|
45
|
+
createElementNS(_namespaceURI: string, qualifiedName: string): RRElement | RRMediaElement | RRCanvasElement | RRIFrameElement | RRImageElement | RRStyleElement;
|
|
46
|
+
createComment(data: string): RRComment;
|
|
47
|
+
createCDATASection(data: string): RRCDATASection;
|
|
48
|
+
createTextNode(data: string): RRText;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export declare class RRDocumentType extends BaseRRDocumentType {
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export declare class RRElement extends BaseRRElement {
|
|
55
|
+
private _style;
|
|
56
|
+
constructor(tagName: string);
|
|
57
|
+
get style(): CSSStyleDeclaration_2;
|
|
58
|
+
attachShadow(_init: ShadowRootInit): RRElement;
|
|
59
|
+
appendChild(newChild: BaseRRNode): BaseRRNode;
|
|
60
|
+
insertBefore(newChild: BaseRRNode, refChild: BaseRRNode | null): BaseRRNode;
|
|
61
|
+
getAttribute(name: string): string | null;
|
|
62
|
+
setAttribute(name: string, attribute: string): void;
|
|
63
|
+
removeAttribute(name: string): void;
|
|
64
|
+
get firstElementChild(): RRElement | null;
|
|
65
|
+
get nextElementSibling(): RRElement | null;
|
|
66
|
+
querySelectorAll(selectors: string): BaseRRNode[];
|
|
67
|
+
getElementById(elementId: string): RRElement | null;
|
|
68
|
+
getElementsByClassName(className: string): RRElement[];
|
|
69
|
+
getElementsByTagName(tagName: string): RRElement[];
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
declare interface RRElementTagNameMap {
|
|
73
|
+
audio: RRMediaElement;
|
|
74
|
+
canvas: RRCanvasElement;
|
|
75
|
+
iframe: RRIFrameElement;
|
|
76
|
+
img: RRImageElement;
|
|
77
|
+
style: RRStyleElement;
|
|
78
|
+
video: RRMediaElement;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
declare type RRElementType<K extends keyof HTMLElementTagNameMap> = K extends keyof RRElementTagNameMap ? RRElementTagNameMap[K] : RRElement;
|
|
82
|
+
|
|
83
|
+
export declare class RRIFrameElement extends RRElement {
|
|
84
|
+
width: string;
|
|
85
|
+
height: string;
|
|
86
|
+
src: string;
|
|
87
|
+
contentDocument: RRDocument;
|
|
88
|
+
contentWindow: RRWindow;
|
|
89
|
+
constructor(tagName: string);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export declare class RRImageElement extends RRElement {
|
|
93
|
+
src: string;
|
|
94
|
+
width: number;
|
|
95
|
+
height: number;
|
|
96
|
+
onload: ((this: GlobalEventHandlers, ev: Event) => unknown) | null;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export declare class RRMediaElement extends BaseRRMediaElement {
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export declare class RRStyleElement extends RRElement {
|
|
103
|
+
private _sheet;
|
|
104
|
+
get sheet(): CSSStyleSheet | null;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export declare class RRText extends BaseRRText {
|
|
108
|
+
readonly nodeName: "#text";
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export declare class RRWindow {
|
|
112
|
+
scrollLeft: number;
|
|
113
|
+
scrollTop: number;
|
|
114
|
+
scrollTo(options?: ScrollToOptions): void;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export { }
|