(
- n: T,
-): n is T & { shadowRoot: ShadowRoot } {
- return Boolean(((n as unknown) as Element)?.shadowRoot);
-}
diff --git a/test/__snapshots__/integration.test.ts.snap b/test/__snapshots__/integration.test.ts.snap
index 35bd2406..19f34fb6 100644
--- a/test/__snapshots__/integration.test.ts.snap
+++ b/test/__snapshots__/integration.test.ts.snap
@@ -1727,7 +1727,7 @@ exports[`frozen 1`] = `
]"
`;
-exports[`iframe 1`] = `
+exports[`ignore 1`] = `
"[
{
\\"type\\": 0,
@@ -1745,53 +1745,6 @@ exports[`iframe 1`] = `
\\"height\\": 1080
}
},
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 0,
- \\"adds\\": [
- {
- \\"parentId\\": 19,
- \\"nextId\\": null,
- \\"node\\": {
- \\"type\\": 0,
- \\"childNodes\\": [
- {
- \\"type\\": 2,
- \\"tagName\\": \\"html\\",
- \\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 2,
- \\"tagName\\": \\"head\\",
- \\"attributes\\": {},
- \\"childNodes\\": [],
- \\"rootId\\": 20,
- \\"id\\": 22
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"body\\",
- \\"attributes\\": {},
- \\"childNodes\\": [],
- \\"rootId\\": 20,
- \\"id\\": 23
- }
- ],
- \\"rootId\\": 20,
- \\"id\\": 21
- }
- ],
- \\"id\\": 20
- }
- }
- ],
- \\"removes\\": [],
- \\"texts\\": [],
- \\"attributes\\": [],
- \\"isAttachIframe\\": true
- }
- },
{
\\"type\\": 2,
\\"data\\": {
@@ -1853,48 +1806,44 @@ exports[`iframe 1`] = `
},
{
\\"type\\": 2,
- \\"tagName\\": \\"title\\",
- \\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"Main\\",
- \\"id\\": 11
- }
- ],
+ \\"tagName\\": \\"meta\\",
+ \\"attributes\\": {
+ \\"http-equiv\\": \\"X-UA-Compatible\\",
+ \\"content\\": \\"ie=edge\\"
+ },
+ \\"childNodes\\": [],
\\"id\\": 10
},
{
\\"type\\": 3,
\\"textContent\\": \\"\\\\n \\",
- \\"id\\": 12
+ \\"id\\": 11
},
{
\\"type\\": 2,
- \\"tagName\\": \\"style\\",
+ \\"tagName\\": \\"title\\",
\\"attributes\\": {},
\\"childNodes\\": [
{
\\"type\\": 3,
- \\"textContent\\": \\"\\\\n iframe {\\\\n width: 500px;\\\\n height: 500px;\\\\n }\\\\n \\",
- \\"isStyle\\": true,
- \\"id\\": 14
+ \\"textContent\\": \\"ignore fields\\",
+ \\"id\\": 13
}
],
- \\"id\\": 13
+ \\"id\\": 12
},
{
\\"type\\": 3,
\\"textContent\\": \\"\\\\n \\",
- \\"id\\": 15
+ \\"id\\": 14
}
],
\\"id\\": 4
},
{
\\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 16
+ \\"textContent\\": \\"\\\\n\\\\n \\",
+ \\"id\\": 15
},
{
\\"type\\": 2,
@@ -1904,39 +1853,94 @@ exports[`iframe 1`] = `
{
\\"type\\": 3,
\\"textContent\\": \\"\\\\n \\",
- \\"id\\": 18
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"iframe\\",
- \\"attributes\\": {
- \\"id\\": \\"one\\"
- },
- \\"childNodes\\": [],
- \\"id\\": 19
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\\\n \\",
- \\"id\\": 24
+ \\"id\\": 17
},
{
\\"type\\": 2,
- \\"tagName\\": \\"script\\",
+ \\"tagName\\": \\"form\\",
\\"attributes\\": {},
\\"childNodes\\": [
{
\\"type\\": 3,
- \\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
- \\"id\\": 26
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 19
+ },
+ {
+ \\"type\\": 2,
+ \\"tagName\\": \\"label\\",
+ \\"attributes\\": {
+ \\"for\\": \\"password\\"
+ },
+ \\"childNodes\\": [
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\" \\",
+ \\"id\\": 21
+ },
+ {
+ \\"type\\": 2,
+ \\"tagName\\": \\"input\\",
+ \\"attributes\\": {
+ \\"type\\": \\"password\\"
+ },
+ \\"childNodes\\": [],
+ \\"id\\": 22
+ },
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\" \\",
+ \\"id\\": 23
+ }
+ ],
+ \\"id\\": 20
+ },
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 24
+ },
+ {
+ \\"type\\": 2,
+ \\"tagName\\": \\"label\\",
+ \\"attributes\\": {
+ \\"for\\": \\"ignore text\\"
+ },
+ \\"childNodes\\": [
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\" \\",
+ \\"id\\": 26
+ },
+ {
+ \\"type\\": 2,
+ \\"tagName\\": \\"input\\",
+ \\"attributes\\": {
+ \\"type\\": \\"text\\",
+ \\"class\\": \\"rr-ignore\\"
+ },
+ \\"childNodes\\": [],
+ \\"id\\": 27
+ },
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\" \\",
+ \\"id\\": 28
+ }
+ ],
+ \\"id\\": 25
+ },
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 29
}
],
- \\"id\\": 25
+ \\"id\\": 18
},
{
\\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\\\n \\\\n \\",
- \\"id\\": 27
+ \\"textContent\\": \\"\\\\n \\\\n \\",
+ \\"id\\": 30
},
{
\\"type\\": 2,
@@ -1946,18 +1950,18 @@ exports[`iframe 1`] = `
{
\\"type\\": 3,
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
- \\"id\\": 29
+ \\"id\\": 32
}
],
- \\"id\\": 28
+ \\"id\\": 31
},
{
\\"type\\": 3,
- \\"textContent\\": \\"\\\\n\\\\n\\",
- \\"id\\": 30
+ \\"textContent\\": \\"\\\\n \\\\n \\\\n\\\\n\\",
+ \\"id\\": 33
}
],
- \\"id\\": 17
+ \\"id\\": 16
}
],
\\"id\\": 3
@@ -1974,467 +1978,354 @@ exports[`iframe 1`] = `
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 0,
- \\"texts\\": [],
- \\"attributes\\": [],
- \\"removes\\": [],
- \\"adds\\": [
- {
- \\"parentId\\": 17,
- \\"nextId\\": null,
- \\"node\\": {
- \\"type\\": 2,
- \\"tagName\\": \\"iframe\\",
- \\"attributes\\": {
- \\"id\\": \\"two\\"
- },
- \\"childNodes\\": [],
- \\"id\\": 31
- }
- }
- ]
+ \\"source\\": 2,
+ \\"type\\": 5,
+ \\"id\\": 22
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 0,
- \\"adds\\": [
- {
- \\"parentId\\": 47,
- \\"nextId\\": null,
- \\"node\\": {
- \\"type\\": 0,
+ \\"source\\": 2,
+ \\"type\\": 6,
+ \\"id\\": 22
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 2,
+ \\"type\\": 5,
+ \\"id\\": 27
+ }
+ }
+]"
+`;
+
+exports[`log`] = `
+"[
+ {
+ \\"type\\": 0,
+ \\"data\\": {}
+ },
+ {
+ \\"type\\": 1,
+ \\"data\\": {}
+ },
+ {
+ \\"type\\": 4,
+ \\"data\\": {
+ \\"href\\": \\"about:blank\\",
+ \\"width\\": 1920,
+ \\"height\\": 1080
+ }
+ },
+ {
+ \\"type\\": 2,
+ \\"data\\": {
+ \\"node\\": {
+ \\"type\\": 0,
+ \\"childNodes\\": [
+ {
+ \\"type\\": 1,
+ \\"name\\": \\"html\\",
+ \\"publicId\\": \\"\\",
+ \\"systemId\\": \\"\\",
+ \\"id\\": 2
+ },
+ {
+ \\"type\\": 2,
+ \\"tagName\\": \\"html\\",
+ \\"attributes\\": {
+ \\"lang\\": \\"en\\"
+ },
\\"childNodes\\": [
{
\\"type\\": 2,
- \\"tagName\\": \\"html\\",
+ \\"tagName\\": \\"head\\",
\\"attributes\\": {},
\\"childNodes\\": [
{
- \\"type\\": 2,
- \\"tagName\\": \\"head\\",
- \\"attributes\\": {},
- \\"childNodes\\": [],
- \\"rootId\\": 48,
- \\"id\\": 50
+ \\"type\\": 3,
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 5
},
{
\\"type\\": 2,
- \\"tagName\\": \\"body\\",
- \\"attributes\\": {},
+ \\"tagName\\": \\"meta\\",
+ \\"attributes\\": {
+ \\"charset\\": \\"UTF-8\\"
+ },
\\"childNodes\\": [],
- \\"rootId\\": 48,
- \\"id\\": 51
- }
- ],
- \\"rootId\\": 48,
- \\"id\\": 49
- }
- ],
- \\"id\\": 48
- }
- }
- ],
- \\"removes\\": [],
- \\"texts\\": [],
- \\"attributes\\": [],
- \\"isAttachIframe\\": true
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 0,
- \\"adds\\": [
- {
- \\"parentId\\": 53,
- \\"nextId\\": null,
- \\"node\\": {
- \\"type\\": 0,
- \\"childNodes\\": [
- {
- \\"type\\": 1,
- \\"name\\": \\"html\\",
- \\"publicId\\": \\"\\",
- \\"systemId\\": \\"\\",
- \\"rootId\\": 54,
- \\"id\\": 55
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"html\\",
- \\"attributes\\": {
- \\"lang\\": \\"en\\"
- },
- \\"childNodes\\": [
+ \\"id\\": 6
+ },
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 7
+ },
{
\\"type\\": 2,
- \\"tagName\\": \\"head\\",
- \\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"rootId\\": 54,
- \\"id\\": 58
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"meta\\",
- \\"attributes\\": {
- \\"charset\\": \\"UTF-8\\"
- },
- \\"childNodes\\": [],
- \\"rootId\\": 54,
- \\"id\\": 59
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"rootId\\": 54,
- \\"id\\": 60
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"meta\\",
- \\"attributes\\": {
- \\"name\\": \\"viewport\\",
- \\"content\\": \\"width=device-width, initial-scale=1.0\\"
- },
- \\"childNodes\\": [],
- \\"rootId\\": 54,
- \\"id\\": 61
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"rootId\\": 54,
- \\"id\\": 62
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"title\\",
- \\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"Frame 2\\",
- \\"rootId\\": 54,
- \\"id\\": 64
- }
- ],
- \\"rootId\\": 54,
- \\"id\\": 63
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"rootId\\": 54,
- \\"id\\": 65
- }
- ],
- \\"rootId\\": 54,
- \\"id\\": 57
+ \\"tagName\\": \\"meta\\",
+ \\"attributes\\": {
+ \\"name\\": \\"viewport\\",
+ \\"content\\": \\"width=device-width, initial-scale=1.0\\"
+ },
+ \\"childNodes\\": [],
+ \\"id\\": 8
},
{
\\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"rootId\\": 54,
- \\"id\\": 66
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 9
+ },
+ {
+ \\"type\\": 2,
+ \\"tagName\\": \\"meta\\",
+ \\"attributes\\": {
+ \\"http-equiv\\": \\"X-UA-Compatible\\",
+ \\"content\\": \\"ie=edge\\"
+ },
+ \\"childNodes\\": [],
+ \\"id\\": 10
+ },
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 11
},
{
\\"type\\": 2,
- \\"tagName\\": \\"body\\",
+ \\"tagName\\": \\"title\\",
\\"attributes\\": {},
\\"childNodes\\": [
{
\\"type\\": 3,
- \\"textContent\\": \\"\\\\n frame 2\\\\n \\\\n \\",
- \\"rootId\\": 54,
- \\"id\\": 68
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"script\\",
- \\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
- \\"rootId\\": 54,
- \\"id\\": 70
- }
- ],
- \\"rootId\\": 54,
- \\"id\\": 69
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n\\\\n\\",
- \\"rootId\\": 54,
- \\"id\\": 71
+ \\"textContent\\": \\"Log record\\",
+ \\"id\\": 13
}
],
- \\"rootId\\": 54,
- \\"id\\": 67
+ \\"id\\": 12
+ },
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 14
}
],
- \\"rootId\\": 54,
- \\"id\\": 56
- }
- ],
- \\"id\\": 54
- }
- }
- ],
- \\"removes\\": [],
- \\"texts\\": [],
- \\"attributes\\": [],
- \\"isAttachIframe\\": true
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 0,
- \\"adds\\": [
- {
- \\"parentId\\": 31,
- \\"nextId\\": null,
- \\"node\\": {
- \\"type\\": 0,
- \\"childNodes\\": [
+ \\"id\\": 4
+ },
{
- \\"type\\": 1,
- \\"name\\": \\"html\\",
- \\"publicId\\": \\"\\",
- \\"systemId\\": \\"\\",
- \\"rootId\\": 32,
- \\"id\\": 33
+ \\"type\\": 3,
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 15
},
{
\\"type\\": 2,
- \\"tagName\\": \\"html\\",
- \\"attributes\\": {
- \\"lang\\": \\"en\\"
- },
+ \\"tagName\\": \\"body\\",
+ \\"attributes\\": {},
\\"childNodes\\": [
- {
- \\"type\\": 2,
- \\"tagName\\": \\"head\\",
- \\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"rootId\\": 32,
- \\"id\\": 36
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"meta\\",
- \\"attributes\\": {
- \\"charset\\": \\"UTF-8\\"
- },
- \\"childNodes\\": [],
- \\"rootId\\": 32,
- \\"id\\": 37
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"rootId\\": 32,
- \\"id\\": 38
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"meta\\",
- \\"attributes\\": {
- \\"name\\": \\"viewport\\",
- \\"content\\": \\"width=device-width, initial-scale=1.0\\"
- },
- \\"childNodes\\": [],
- \\"rootId\\": 32,
- \\"id\\": 39
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"rootId\\": 32,
- \\"id\\": 40
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"title\\",
- \\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"Frame 1\\",
- \\"rootId\\": 32,
- \\"id\\": 42
- }
- ],
- \\"rootId\\": 32,
- \\"id\\": 41
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"rootId\\": 32,
- \\"id\\": 43
- }
- ],
- \\"rootId\\": 32,
- \\"id\\": 35
- },
{
\\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"rootId\\": 32,
- \\"id\\": 44
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 17
},
{
\\"type\\": 2,
- \\"tagName\\": \\"body\\",
+ \\"tagName\\": \\"script\\",
\\"attributes\\": {},
\\"childNodes\\": [
{
\\"type\\": 3,
- \\"textContent\\": \\"\\\\n frame 1\\\\n \\",
- \\"rootId\\": 32,
- \\"id\\": 46
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"iframe\\",
- \\"attributes\\": {
- \\"id\\": \\"three\\",
- \\"frameborder\\": \\"0\\"
- },
- \\"childNodes\\": [],
- \\"rootId\\": 32,
- \\"id\\": 47
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"rootId\\": 32,
- \\"id\\": 52
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"iframe\\",
- \\"attributes\\": {
- \\"id\\": \\"four\\",
- \\"frameborder\\": \\"0\\"
- },
- \\"childNodes\\": [],
- \\"rootId\\": 32,
- \\"id\\": 53
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\\\n\\\\n\\",
- \\"rootId\\": 32,
- \\"id\\": 72
+ \\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
+ \\"id\\": 19
}
],
- \\"rootId\\": 32,
- \\"id\\": 45
+ \\"id\\": 18
+ },
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\"\\\\n \\\\n \\\\n\\\\n\\",
+ \\"id\\": 20
}
],
- \\"rootId\\": 32,
- \\"id\\": 34
+ \\"id\\": 16
}
],
- \\"id\\": 32
+ \\"id\\": 3
}
- }
- ],
- \\"removes\\": [],
- \\"texts\\": [],
- \\"attributes\\": [],
- \\"isAttachIframe\\": true
+ ],
+ \\"id\\": 1
+ },
+ \\"initialOffset\\": {
+ \\"left\\": 0,
+ \\"top\\": 0
+ }
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 0,
- \\"adds\\": [
- {
- \\"parentId\\": 73,
- \\"nextId\\": null,
- \\"node\\": {
- \\"type\\": 0,
- \\"childNodes\\": [
- {
- \\"type\\": 2,
- \\"tagName\\": \\"html\\",
- \\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 2,
- \\"tagName\\": \\"head\\",
- \\"attributes\\": {},
- \\"childNodes\\": [],
- \\"rootId\\": 74,
- \\"id\\": 76
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"body\\",
- \\"attributes\\": {},
- \\"childNodes\\": [],
- \\"rootId\\": 74,
- \\"id\\": 77
- }
- ],
- \\"rootId\\": 74,
- \\"id\\": 75
- }
- ],
- \\"id\\": 74
- }
- }
- ],
- \\"removes\\": [],
- \\"texts\\": [],
- \\"attributes\\": [],
- \\"isAttachIframe\\": true
+ \\"source\\": 11,
+ \\"level\\": \\"assert\\",
+ \\"payload\\": [
+ \\"true\\",
+ \\"\\"assert\\"\\"
+ ]
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 0,
- \\"texts\\": [],
- \\"attributes\\": [],
- \\"removes\\": [],
- \\"adds\\": [
- {
- \\"parentId\\": 67,
- \\"nextId\\": null,
- \\"node\\": {
- \\"type\\": 2,
- \\"tagName\\": \\"iframe\\",
- \\"attributes\\": {
- \\"id\\": \\"five\\"
- },
- \\"childNodes\\": [],
- \\"rootId\\": 54,
- \\"id\\": 73
- }
- }
+ \\"source\\": 11,
+ \\"level\\": \\"count\\",
+ \\"payload\\": [
+ \\"\\"count\\"\\"
+ ]
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 11,
+ \\"level\\": \\"countReset\\",
+ \\"payload\\": [
+ \\"\\"count\\"\\"
+ ]
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 11,
+ \\"level\\": \\"debug\\",
+ \\"payload\\": [
+ \\"\\"debug\\"\\"
+ ]
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 11,
+ \\"level\\": \\"dir\\",
+ \\"payload\\": [
+ \\"\\"dir\\"\\"
+ ]
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 11,
+ \\"level\\": \\"dirxml\\",
+ \\"payload\\": [
+ \\"\\"dirxml\\"\\"
+ ]
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 11,
+ \\"level\\": \\"group\\",
+ \\"payload\\": []
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 11,
+ \\"level\\": \\"groupCollapsed\\",
+ \\"payload\\": []
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 11,
+ \\"level\\": \\"info\\",
+ \\"payload\\": [
+ \\"\\"info\\"\\"
+ ]
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 11,
+ \\"level\\": \\"log\\",
+ \\"payload\\": [
+ \\"\\"log\\"\\"
+ ]
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 11,
+ \\"level\\": \\"table\\",
+ \\"payload\\": [
+ \\"\\"table\\"\\"
+ ]
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 11,
+ \\"level\\": \\"time\\",
+ \\"payload\\": []
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 11,
+ \\"level\\": \\"timeEnd\\",
+ \\"payload\\": []
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 11,
+ \\"level\\": \\"timeLog\\",
+ \\"payload\\": []
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 11,
+ \\"level\\": \\"trace\\",
+ \\"payload\\": [
+ \\"\\"trace\\"\\"
+ ]
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 11,
+ \\"level\\": \\"warn\\",
+ \\"payload\\": [
+ \\"\\"warn\\"\\"
]
}
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 11,
+ \\"level\\": \\"clear\\",
+ \\"payload\\": []
+ }
}
]"
`;
-exports[`ignore 1`] = `
+exports[`log 1`] = `
"[
{
\\"type\\": 0,
@@ -2533,7 +2424,7 @@ exports[`ignore 1`] = `
\\"childNodes\\": [
{
\\"type\\": 3,
- \\"textContent\\": \\"ignore fields\\",
+ \\"textContent\\": \\"Log record\\",
\\"id\\": 13
}
],
@@ -2549,7 +2440,7 @@ exports[`ignore 1`] = `
},
{
\\"type\\": 3,
- \\"textContent\\": \\"\\\\n\\\\n \\",
+ \\"textContent\\": \\"\\\\n \\",
\\"id\\": 15
},
{
@@ -2564,108 +2455,21 @@ exports[`ignore 1`] = `
},
{
\\"type\\": 2,
- \\"tagName\\": \\"form\\",
+ \\"tagName\\": \\"script\\",
\\"attributes\\": {},
\\"childNodes\\": [
{
\\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
+ \\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
\\"id\\": 19
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"label\\",
- \\"attributes\\": {
- \\"for\\": \\"password\\"
- },
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\" \\",
- \\"id\\": 21
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"input\\",
- \\"attributes\\": {
- \\"type\\": \\"password\\"
- },
- \\"childNodes\\": [],
- \\"id\\": 22
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\" \\",
- \\"id\\": 23
- }
- ],
- \\"id\\": 20
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 24
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"label\\",
- \\"attributes\\": {
- \\"for\\": \\"ignore text\\"
- },
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\" \\",
- \\"id\\": 26
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"input\\",
- \\"attributes\\": {
- \\"type\\": \\"text\\",
- \\"class\\": \\"rr-ignore\\"
- },
- \\"childNodes\\": [],
- \\"id\\": 27
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\" \\",
- \\"id\\": 28
- }
- ],
- \\"id\\": 25
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 29
}
],
\\"id\\": 18
},
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\\\n \\",
- \\"id\\": 30
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"script\\",
- \\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
- \\"id\\": 32
- }
- ],
- \\"id\\": 31
- },
{
\\"type\\": 3,
\\"textContent\\": \\"\\\\n \\\\n \\\\n\\\\n\\",
- \\"id\\": 33
+ \\"id\\": 20
}
],
\\"id\\": 16
@@ -2685,31 +2489,234 @@ exports[`ignore 1`] = `
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 2,
- \\"type\\": 5,
- \\"id\\": 22
+ \\"source\\": 11,
+ \\"level\\": \\"assert\\",
+ \\"trace\\": [
+ \\"__puppeteer_evalu\\",
+ \\"ion_script__:2:37\\"
+ ],
+ \\"payload\\": [
+ \\"true\\",
+ \\"\\\\\\"assert\\\\\\"\\"
+ ]
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 2,
- \\"type\\": 6,
- \\"id\\": 22
+ \\"source\\": 11,
+ \\"level\\": \\"count\\",
+ \\"trace\\": [
+ \\"__puppeteer_evalu\\",
+ \\"ion_script__:3:37\\"
+ ],
+ \\"payload\\": [
+ \\"\\\\\\"count\\\\\\"\\"
+ ]
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 2,
- \\"type\\": 5,
- \\"id\\": 27
+ \\"source\\": 11,
+ \\"level\\": \\"countReset\\",
+ \\"trace\\": [
+ \\"__puppeteer_evalu\\",
+ \\"ion_script__:4:37\\"
+ ],
+ \\"payload\\": [
+ \\"\\\\\\"count\\\\\\"\\"
+ ]
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 11,
+ \\"level\\": \\"debug\\",
+ \\"trace\\": [
+ \\"__puppeteer_evalu\\",
+ \\"ion_script__:5:37\\"
+ ],
+ \\"payload\\": [
+ \\"\\\\\\"debug\\\\\\"\\"
+ ]
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 11,
+ \\"level\\": \\"dir\\",
+ \\"trace\\": [
+ \\"__puppeteer_evalu\\",
+ \\"ion_script__:6:37\\"
+ ],
+ \\"payload\\": [
+ \\"\\\\\\"dir\\\\\\"\\"
+ ]
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 11,
+ \\"level\\": \\"dirxml\\",
+ \\"trace\\": [
+ \\"__puppeteer_evalu\\",
+ \\"ion_script__:7:37\\"
+ ],
+ \\"payload\\": [
+ \\"\\\\\\"dirxml\\\\\\"\\"
+ ]
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 11,
+ \\"level\\": \\"group\\",
+ \\"trace\\": [
+ \\"__puppeteer_evalu\\",
+ \\"ion_script__:8:37\\"
+ ],
+ \\"payload\\": []
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 11,
+ \\"level\\": \\"groupCollapsed\\",
+ \\"trace\\": [
+ \\"__puppeteer_evalu\\",
+ \\"ion_script__:9:37\\"
+ ],
+ \\"payload\\": []
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 11,
+ \\"level\\": \\"info\\",
+ \\"trace\\": [
+ \\"__puppeteer_evalu\\",
+ \\"ion_script__:10:37\\"
+ ],
+ \\"payload\\": [
+ \\"\\\\\\"info\\\\\\"\\"
+ ]
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 11,
+ \\"level\\": \\"log\\",
+ \\"trace\\": [
+ \\"__puppeteer_evalu\\",
+ \\"ion_script__:11:37\\"
+ ],
+ \\"payload\\": [
+ \\"\\\\\\"log\\\\\\"\\"
+ ]
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 11,
+ \\"level\\": \\"table\\",
+ \\"trace\\": [
+ \\"__puppeteer_evalu\\",
+ \\"ion_script__:12:37\\"
+ ],
+ \\"payload\\": [
+ \\"\\\\\\"table\\\\\\"\\"
+ ]
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 11,
+ \\"level\\": \\"time\\",
+ \\"trace\\": [
+ \\"__puppeteer_evalu\\",
+ \\"ion_script__:13:37\\"
+ ],
+ \\"payload\\": []
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 11,
+ \\"level\\": \\"timeEnd\\",
+ \\"trace\\": [
+ \\"__puppeteer_evalu\\",
+ \\"ion_script__:14:37\\"
+ ],
+ \\"payload\\": []
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 11,
+ \\"level\\": \\"timeLog\\",
+ \\"trace\\": [
+ \\"__puppeteer_evalu\\",
+ \\"ion_script__:15:37\\"
+ ],
+ \\"payload\\": []
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 11,
+ \\"level\\": \\"trace\\",
+ \\"trace\\": [
+ \\"__puppeteer_evalu\\",
+ \\"ion_script__:16:37\\"
+ ],
+ \\"payload\\": [
+ \\"\\\\\\"trace\\\\\\"\\"
+ ]
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 11,
+ \\"level\\": \\"warn\\",
+ \\"trace\\": [
+ \\"__puppeteer_evalu\\",
+ \\"ion_script__:17:37\\"
+ ],
+ \\"payload\\": [
+ \\"\\\\\\"warn\\\\\\"\\"
+ ]
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 11,
+ \\"level\\": \\"clear\\",
+ \\"trace\\": [
+ \\"__puppeteer_evalu\\",
+ \\"ion_script__:18:37\\"
+ ],
+ \\"payload\\": []
}
}
]"
`;
-exports[`log`] = `
+exports[`mask 1`] = `
"[
{
\\"type\\": 0,
@@ -2754,7 +2761,7 @@ exports[`log`] = `
\\"childNodes\\": [
{
\\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
+ \\"textContent\\": \\"\\\\n \\",
\\"id\\": 5
},
{
@@ -2768,7 +2775,7 @@ exports[`log`] = `
},
{
\\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
+ \\"textContent\\": \\"\\\\n \\",
\\"id\\": 7
},
{
@@ -2783,7 +2790,7 @@ exports[`log`] = `
},
{
\\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
+ \\"textContent\\": \\"\\\\n \\",
\\"id\\": 9
},
{
@@ -2798,7 +2805,7 @@ exports[`log`] = `
},
{
\\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
+ \\"textContent\\": \\"\\\\n \\",
\\"id\\": 11
},
{
@@ -2808,7 +2815,7 @@ exports[`log`] = `
\\"childNodes\\": [
{
\\"type\\": 3,
- \\"textContent\\": \\"Log record\\",
+ \\"textContent\\": \\"form fields\\",
\\"id\\": 13
}
],
@@ -2816,7 +2823,7 @@ exports[`log`] = `
},
{
\\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
+ \\"textContent\\": \\"\\\\n\\",
\\"id\\": 14
}
],
@@ -2824,7 +2831,7 @@ exports[`log`] = `
},
{
\\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
+ \\"textContent\\": \\"\\\\n\\\\n\\",
\\"id\\": 15
},
{
@@ -2834,607 +2841,581 @@ exports[`log`] = `
\\"childNodes\\": [
{
\\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
+ \\"textContent\\": \\"\\\\n \\",
\\"id\\": 17
},
{
\\"type\\": 2,
- \\"tagName\\": \\"script\\",
+ \\"tagName\\": \\"form\\",
\\"attributes\\": {},
\\"childNodes\\": [
{
\\"type\\": 3,
- \\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
+ \\"textContent\\": \\"\\\\n \\",
\\"id\\": 19
+ },
+ {
+ \\"type\\": 2,
+ \\"tagName\\": \\"label\\",
+ \\"attributes\\": {
+ \\"for\\": \\"text\\"
+ },
+ \\"childNodes\\": [
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 21
+ },
+ {
+ \\"type\\": 2,
+ \\"tagName\\": \\"input\\",
+ \\"attributes\\": {
+ \\"type\\": \\"text\\"
+ },
+ \\"childNodes\\": [],
+ \\"id\\": 22
+ },
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 23
+ }
+ ],
+ \\"id\\": 20
+ },
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 24
+ },
+ {
+ \\"type\\": 2,
+ \\"tagName\\": \\"label\\",
+ \\"attributes\\": {
+ \\"for\\": \\"radio\\"
+ },
+ \\"childNodes\\": [
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 26
+ },
+ {
+ \\"type\\": 2,
+ \\"tagName\\": \\"input\\",
+ \\"attributes\\": {
+ \\"type\\": \\"radio\\"
+ },
+ \\"childNodes\\": [],
+ \\"id\\": 27
+ },
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 28
+ }
+ ],
+ \\"id\\": 25
+ },
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 29
+ },
+ {
+ \\"type\\": 2,
+ \\"tagName\\": \\"label\\",
+ \\"attributes\\": {
+ \\"for\\": \\"checkbox\\"
+ },
+ \\"childNodes\\": [
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 31
+ },
+ {
+ \\"type\\": 2,
+ \\"tagName\\": \\"input\\",
+ \\"attributes\\": {
+ \\"type\\": \\"checkbox\\"
+ },
+ \\"childNodes\\": [],
+ \\"id\\": 32
+ },
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 33
+ }
+ ],
+ \\"id\\": 30
+ },
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 34
+ },
+ {
+ \\"type\\": 2,
+ \\"tagName\\": \\"label\\",
+ \\"attributes\\": {
+ \\"for\\": \\"textarea\\"
+ },
+ \\"childNodes\\": [
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 36
+ },
+ {
+ \\"type\\": 2,
+ \\"tagName\\": \\"textarea\\",
+ \\"attributes\\": {
+ \\"name\\": \\"\\",
+ \\"id\\": \\"\\",
+ \\"cols\\": \\"30\\",
+ \\"rows\\": \\"10\\"
+ },
+ \\"childNodes\\": [],
+ \\"id\\": 37
+ },
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 38
+ }
+ ],
+ \\"id\\": 35
+ },
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 39
+ },
+ {
+ \\"type\\": 2,
+ \\"tagName\\": \\"label\\",
+ \\"attributes\\": {
+ \\"for\\": \\"select\\"
+ },
+ \\"childNodes\\": [
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 41
+ },
+ {
+ \\"type\\": 2,
+ \\"tagName\\": \\"select\\",
+ \\"attributes\\": {
+ \\"name\\": \\"\\",
+ \\"id\\": \\"\\",
+ \\"value\\": \\"*\\"
+ },
+ \\"childNodes\\": [
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 43
+ },
+ {
+ \\"type\\": 2,
+ \\"tagName\\": \\"option\\",
+ \\"attributes\\": {
+ \\"value\\": \\"1\\",
+ \\"selected\\": true
+ },
+ \\"childNodes\\": [
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\"1\\",
+ \\"id\\": 45
+ }
+ ],
+ \\"id\\": 44
+ },
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 46
+ },
+ {
+ \\"type\\": 2,
+ \\"tagName\\": \\"option\\",
+ \\"attributes\\": {
+ \\"value\\": \\"2\\"
+ },
+ \\"childNodes\\": [
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\"2\\",
+ \\"id\\": 48
+ }
+ ],
+ \\"id\\": 47
+ },
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 49
+ }
+ ],
+ \\"id\\": 42
+ },
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 50
+ }
+ ],
+ \\"id\\": 40
+ },
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 51
}
],
\\"id\\": 18
},
{
\\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\\\n \\\\n\\\\n\\",
- \\"id\\": 20
- }
- ],
- \\"id\\": 16
- }
- ],
- \\"id\\": 3
- }
- ],
- \\"id\\": 1
- },
- \\"initialOffset\\": {
- \\"left\\": 0,
- \\"top\\": 0
- }
- }
- },
- {
+ \\"textContent\\": \\"\\\\n\\\\n \\",
+ \\"id\\": 52
+ },
+ {
+ \\"type\\": 2,
+ \\"tagName\\": \\"script\\",
+ \\"attributes\\": {},
+ \\"childNodes\\": [
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
+ \\"id\\": 54
+ }
+ ],
+ \\"id\\": 53
+ },
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\"\\\\n \\\\n \\\\n\\\\n\\\\n\\",
+ \\"id\\": 55
+ }
+ ],
+ \\"id\\": 16
+ }
+ ],
+ \\"id\\": 3
+ }
+ ],
+ \\"id\\": 1
+ },
+ \\"initialOffset\\": {
+ \\"left\\": 0,
+ \\"top\\": 0
+ }
+ }
+ },
+ {
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"assert\\",
- \\"payload\\": [
- \\"true\\",
- \\"\\"assert\\"\\"
- ]
+ \\"source\\": 2,
+ \\"type\\": 5,
+ \\"id\\": 22
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"count\\",
- \\"payload\\": [
- \\"\\"count\\"\\"
- ]
+ \\"source\\": 5,
+ \\"text\\": \\"*\\",
+ \\"isChecked\\": false,
+ \\"id\\": 22
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"countReset\\",
- \\"payload\\": [
- \\"\\"count\\"\\"
- ]
+ \\"source\\": 5,
+ \\"text\\": \\"**\\",
+ \\"isChecked\\": false,
+ \\"id\\": 22
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"debug\\",
- \\"payload\\": [
- \\"\\"debug\\"\\"
- ]
+ \\"source\\": 5,
+ \\"text\\": \\"***\\",
+ \\"isChecked\\": false,
+ \\"id\\": 22
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"dir\\",
- \\"payload\\": [
- \\"\\"dir\\"\\"
- ]
+ \\"source\\": 5,
+ \\"text\\": \\"****\\",
+ \\"isChecked\\": false,
+ \\"id\\": 22
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"dirxml\\",
- \\"payload\\": [
- \\"\\"dirxml\\"\\"
- ]
+ \\"source\\": 2,
+ \\"type\\": 1,
+ \\"id\\": 27
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"group\\",
- \\"payload\\": []
+ \\"source\\": 2,
+ \\"type\\": 6,
+ \\"id\\": 22
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"groupCollapsed\\",
- \\"payload\\": []
+ \\"source\\": 2,
+ \\"type\\": 5,
+ \\"id\\": 27
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"info\\",
- \\"payload\\": [
- \\"\\"info\\"\\"
- ]
+ \\"source\\": 2,
+ \\"type\\": 0,
+ \\"id\\": 27
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"log\\",
- \\"payload\\": [
- \\"\\"log\\"\\"
- ]
+ \\"source\\": 2,
+ \\"type\\": 2,
+ \\"id\\": 27
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"table\\",
- \\"payload\\": [
- \\"\\"table\\"\\"
- ]
+ \\"source\\": 5,
+ \\"text\\": \\"on\\",
+ \\"isChecked\\": true,
+ \\"id\\": 27
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"time\\",
- \\"payload\\": []
+ \\"source\\": 2,
+ \\"type\\": 1,
+ \\"id\\": 32
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"timeEnd\\",
- \\"payload\\": []
+ \\"source\\": 2,
+ \\"type\\": 6,
+ \\"id\\": 27
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"timeLog\\",
- \\"payload\\": []
+ \\"source\\": 2,
+ \\"type\\": 5,
+ \\"id\\": 32
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"trace\\",
- \\"payload\\": [
- \\"\\"trace\\"\\"
- ]
+ \\"source\\": 2,
+ \\"type\\": 0,
+ \\"id\\": 32
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"warn\\",
- \\"payload\\": [
- \\"\\"warn\\"\\"
- ]
+ \\"source\\": 2,
+ \\"type\\": 2,
+ \\"id\\": 32
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"clear\\",
- \\"payload\\": []
+ \\"source\\": 5,
+ \\"text\\": \\"on\\",
+ \\"isChecked\\": true,
+ \\"id\\": 32
}
- }
-]"
-`;
-
-exports[`log 1`] = `
-"[
+ },
{
- \\"type\\": 0,
- \\"data\\": {}
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 2,
+ \\"type\\": 6,
+ \\"id\\": 32
+ }
},
{
- \\"type\\": 1,
- \\"data\\": {}
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 2,
+ \\"type\\": 5,
+ \\"id\\": 37
+ }
},
{
- \\"type\\": 4,
+ \\"type\\": 3,
\\"data\\": {
- \\"href\\": \\"about:blank\\",
- \\"width\\": 1920,
- \\"height\\": 1080
+ \\"source\\": 5,
+ \\"text\\": \\"*\\",
+ \\"isChecked\\": false,
+ \\"id\\": 37
}
},
{
- \\"type\\": 2,
+ \\"type\\": 3,
\\"data\\": {
- \\"node\\": {
- \\"type\\": 0,
- \\"childNodes\\": [
- {
- \\"type\\": 1,
- \\"name\\": \\"html\\",
- \\"publicId\\": \\"\\",
- \\"systemId\\": \\"\\",
- \\"id\\": 2
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"html\\",
- \\"attributes\\": {
- \\"lang\\": \\"en\\"
- },
- \\"childNodes\\": [
- {
- \\"type\\": 2,
- \\"tagName\\": \\"head\\",
- \\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 5
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"meta\\",
- \\"attributes\\": {
- \\"charset\\": \\"UTF-8\\"
- },
- \\"childNodes\\": [],
- \\"id\\": 6
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 7
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"meta\\",
- \\"attributes\\": {
- \\"name\\": \\"viewport\\",
- \\"content\\": \\"width=device-width, initial-scale=1.0\\"
- },
- \\"childNodes\\": [],
- \\"id\\": 8
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 9
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"meta\\",
- \\"attributes\\": {
- \\"http-equiv\\": \\"X-UA-Compatible\\",
- \\"content\\": \\"ie=edge\\"
- },
- \\"childNodes\\": [],
- \\"id\\": 10
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 11
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"title\\",
- \\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"Log record\\",
- \\"id\\": 13
- }
- ],
- \\"id\\": 12
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 14
- }
- ],
- \\"id\\": 4
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 15
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"body\\",
- \\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 17
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"script\\",
- \\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
- \\"id\\": 19
- }
- ],
- \\"id\\": 18
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\\\n \\\\n\\\\n\\",
- \\"id\\": 20
- }
- ],
- \\"id\\": 16
- }
- ],
- \\"id\\": 3
- }
- ],
- \\"id\\": 1
- },
- \\"initialOffset\\": {
- \\"left\\": 0,
- \\"top\\": 0
- }
+ \\"source\\": 5,
+ \\"text\\": \\"**\\",
+ \\"isChecked\\": false,
+ \\"id\\": 37
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"assert\\",
- \\"trace\\": [
- \\"__puppeteer_evalu\\",
- \\"ion_script__:2:37\\"
- ],
- \\"payload\\": [
- \\"true\\",
- \\"\\\\\\"assert\\\\\\"\\"
- ]
+ \\"source\\": 5,
+ \\"text\\": \\"***\\",
+ \\"isChecked\\": false,
+ \\"id\\": 37
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"count\\",
- \\"trace\\": [
- \\"__puppeteer_evalu\\",
- \\"ion_script__:3:37\\"
- ],
- \\"payload\\": [
- \\"\\\\\\"count\\\\\\"\\"
- ]
+ \\"source\\": 5,
+ \\"text\\": \\"****\\",
+ \\"isChecked\\": false,
+ \\"id\\": 37
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"countReset\\",
- \\"trace\\": [
- \\"__puppeteer_evalu\\",
- \\"ion_script__:4:37\\"
- ],
- \\"payload\\": [
- \\"\\\\\\"count\\\\\\"\\"
- ]
+ \\"source\\": 5,
+ \\"text\\": \\"*****\\",
+ \\"isChecked\\": false,
+ \\"id\\": 37
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"debug\\",
- \\"trace\\": [
- \\"__puppeteer_evalu\\",
- \\"ion_script__:5:37\\"
- ],
- \\"payload\\": [
- \\"\\\\\\"debug\\\\\\"\\"
- ]
+ \\"source\\": 5,
+ \\"text\\": \\"******\\",
+ \\"isChecked\\": false,
+ \\"id\\": 37
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"dir\\",
- \\"trace\\": [
- \\"__puppeteer_evalu\\",
- \\"ion_script__:6:37\\"
- ],
- \\"payload\\": [
- \\"\\\\\\"dir\\\\\\"\\"
- ]
+ \\"source\\": 5,
+ \\"text\\": \\"*******\\",
+ \\"isChecked\\": false,
+ \\"id\\": 37
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"dirxml\\",
- \\"trace\\": [
- \\"__puppeteer_evalu\\",
- \\"ion_script__:7:37\\"
- ],
- \\"payload\\": [
- \\"\\\\\\"dirxml\\\\\\"\\"
- ]
+ \\"source\\": 5,
+ \\"text\\": \\"********\\",
+ \\"isChecked\\": false,
+ \\"id\\": 37
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"group\\",
- \\"trace\\": [
- \\"__puppeteer_evalu\\",
- \\"ion_script__:8:37\\"
- ],
- \\"payload\\": []
+ \\"source\\": 5,
+ \\"text\\": \\"*********\\",
+ \\"isChecked\\": false,
+ \\"id\\": 37
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"groupCollapsed\\",
- \\"trace\\": [
- \\"__puppeteer_evalu\\",
- \\"ion_script__:9:37\\"
- ],
- \\"payload\\": []
+ \\"source\\": 5,
+ \\"text\\": \\"**********\\",
+ \\"isChecked\\": false,
+ \\"id\\": 37
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"info\\",
- \\"trace\\": [
- \\"__puppeteer_evalu\\",
- \\"ion_script__:10:37\\"
- ],
- \\"payload\\": [
- \\"\\\\\\"info\\\\\\"\\"
- ]
+ \\"source\\": 5,
+ \\"text\\": \\"***********\\",
+ \\"isChecked\\": false,
+ \\"id\\": 37
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"log\\",
- \\"trace\\": [
- \\"__puppeteer_evalu\\",
- \\"ion_script__:11:37\\"
- ],
- \\"payload\\": [
- \\"\\\\\\"log\\\\\\"\\"
- ]
+ \\"source\\": 5,
+ \\"text\\": \\"************\\",
+ \\"isChecked\\": false,
+ \\"id\\": 37
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"table\\",
- \\"trace\\": [
- \\"__puppeteer_evalu\\",
- \\"ion_script__:12:37\\"
- ],
- \\"payload\\": [
- \\"\\\\\\"table\\\\\\"\\"
- ]
+ \\"source\\": 5,
+ \\"text\\": \\"*************\\",
+ \\"isChecked\\": false,
+ \\"id\\": 37
}
},
{
\\"type\\": 3,
\\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"time\\",
- \\"trace\\": [
- \\"__puppeteer_evalu\\",
- \\"ion_script__:13:37\\"
- ],
- \\"payload\\": []
+ \\"source\\": 5,
+ \\"text\\": \\"*\\",
+ \\"isChecked\\": false,
+ \\"id\\": 42
}
+ }
+]"
+`;
+
+exports[`maskInputOptions 1`] = `
+"[
+ {
+ \\"type\\": 0,
+ \\"data\\": {}
},
{
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"timeEnd\\",
- \\"trace\\": [
- \\"__puppeteer_evalu\\",
- \\"ion_script__:14:37\\"
- ],
- \\"payload\\": []
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"timeLog\\",
- \\"trace\\": [
- \\"__puppeteer_evalu\\",
- \\"ion_script__:15:37\\"
- ],
- \\"payload\\": []
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"trace\\",
- \\"trace\\": [
- \\"__puppeteer_evalu\\",
- \\"ion_script__:16:37\\"
- ],
- \\"payload\\": [
- \\"\\\\\\"trace\\\\\\"\\"
- ]
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"warn\\",
- \\"trace\\": [
- \\"__puppeteer_evalu\\",
- \\"ion_script__:17:37\\"
- ],
- \\"payload\\": [
- \\"\\\\\\"warn\\\\\\"\\"
- ]
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 11,
- \\"level\\": \\"clear\\",
- \\"trace\\": [
- \\"__puppeteer_evalu\\",
- \\"ion_script__:18:37\\"
- ],
- \\"payload\\": []
- }
- }
-]"
-`;
-
-exports[`mask 1`] = `
-"[
- {
- \\"type\\": 0,
- \\"data\\": {}
- },
- {
- \\"type\\": 1,
- \\"data\\": {}
- },
- {
- \\"type\\": 4,
+ \\"type\\": 1,
+ \\"data\\": {}
+ },
+ {
+ \\"type\\": 4,
\\"data\\": {
\\"href\\": \\"about:blank\\",
\\"width\\": 1920,
@@ -3718,7 +3699,7 @@ exports[`mask 1`] = `
\\"attributes\\": {
\\"name\\": \\"\\",
\\"id\\": \\"\\",
- \\"value\\": \\"*\\"
+ \\"value\\": \\"1\\"
},
\\"childNodes\\": [
{
@@ -3836,7 +3817,7 @@ exports[`mask 1`] = `
\\"type\\": 3,
\\"data\\": {
\\"source\\": 5,
- \\"text\\": \\"*\\",
+ \\"text\\": \\"t\\",
\\"isChecked\\": false,
\\"id\\": 22
}
@@ -3845,7 +3826,7 @@ exports[`mask 1`] = `
\\"type\\": 3,
\\"data\\": {
\\"source\\": 5,
- \\"text\\": \\"**\\",
+ \\"text\\": \\"te\\",
\\"isChecked\\": false,
\\"id\\": 22
}
@@ -3854,7 +3835,7 @@ exports[`mask 1`] = `
\\"type\\": 3,
\\"data\\": {
\\"source\\": 5,
- \\"text\\": \\"***\\",
+ \\"text\\": \\"tes\\",
\\"isChecked\\": false,
\\"id\\": 22
}
@@ -3863,7 +3844,7 @@ exports[`mask 1`] = `
\\"type\\": 3,
\\"data\\": {
\\"source\\": 5,
- \\"text\\": \\"****\\",
+ \\"text\\": \\"test\\",
\\"isChecked\\": false,
\\"id\\": 22
}
@@ -3986,7 +3967,7 @@ exports[`mask 1`] = `
\\"type\\": 3,
\\"data\\": {
\\"source\\": 5,
- \\"text\\": \\"*\\",
+ \\"text\\": \\"t\\",
\\"isChecked\\": false,
\\"id\\": 37
}
@@ -3995,7 +3976,7 @@ exports[`mask 1`] = `
\\"type\\": 3,
\\"data\\": {
\\"source\\": 5,
- \\"text\\": \\"**\\",
+ \\"text\\": \\"te\\",
\\"isChecked\\": false,
\\"id\\": 37
}
@@ -4004,7 +3985,7 @@ exports[`mask 1`] = `
\\"type\\": 3,
\\"data\\": {
\\"source\\": 5,
- \\"text\\": \\"***\\",
+ \\"text\\": \\"tex\\",
\\"isChecked\\": false,
\\"id\\": 37
}
@@ -4013,7 +3994,7 @@ exports[`mask 1`] = `
\\"type\\": 3,
\\"data\\": {
\\"source\\": 5,
- \\"text\\": \\"****\\",
+ \\"text\\": \\"text\\",
\\"isChecked\\": false,
\\"id\\": 37
}
@@ -4022,7 +4003,7 @@ exports[`mask 1`] = `
\\"type\\": 3,
\\"data\\": {
\\"source\\": 5,
- \\"text\\": \\"*****\\",
+ \\"text\\": \\"texta\\",
\\"isChecked\\": false,
\\"id\\": 37
}
@@ -4031,7 +4012,7 @@ exports[`mask 1`] = `
\\"type\\": 3,
\\"data\\": {
\\"source\\": 5,
- \\"text\\": \\"******\\",
+ \\"text\\": \\"textar\\",
\\"isChecked\\": false,
\\"id\\": 37
}
@@ -4040,7 +4021,7 @@ exports[`mask 1`] = `
\\"type\\": 3,
\\"data\\": {
\\"source\\": 5,
- \\"text\\": \\"*******\\",
+ \\"text\\": \\"textare\\",
\\"isChecked\\": false,
\\"id\\": 37
}
@@ -4049,7 +4030,7 @@ exports[`mask 1`] = `
\\"type\\": 3,
\\"data\\": {
\\"source\\": 5,
- \\"text\\": \\"********\\",
+ \\"text\\": \\"textarea\\",
\\"isChecked\\": false,
\\"id\\": 37
}
@@ -4058,7 +4039,7 @@ exports[`mask 1`] = `
\\"type\\": 3,
\\"data\\": {
\\"source\\": 5,
- \\"text\\": \\"*********\\",
+ \\"text\\": \\"textarea \\",
\\"isChecked\\": false,
\\"id\\": 37
}
@@ -4067,7 +4048,7 @@ exports[`mask 1`] = `
\\"type\\": 3,
\\"data\\": {
\\"source\\": 5,
- \\"text\\": \\"**********\\",
+ \\"text\\": \\"textarea t\\",
\\"isChecked\\": false,
\\"id\\": 37
}
@@ -4076,7 +4057,7 @@ exports[`mask 1`] = `
\\"type\\": 3,
\\"data\\": {
\\"source\\": 5,
- \\"text\\": \\"***********\\",
+ \\"text\\": \\"textarea te\\",
\\"isChecked\\": false,
\\"id\\": 37
}
@@ -4085,7 +4066,7 @@ exports[`mask 1`] = `
\\"type\\": 3,
\\"data\\": {
\\"source\\": 5,
- \\"text\\": \\"************\\",
+ \\"text\\": \\"textarea tes\\",
\\"isChecked\\": false,
\\"id\\": 37
}
@@ -4094,7 +4075,7 @@ exports[`mask 1`] = `
\\"type\\": 3,
\\"data\\": {
\\"source\\": 5,
- \\"text\\": \\"*************\\",
+ \\"text\\": \\"textarea test\\",
\\"isChecked\\": false,
\\"id\\": 37
}
@@ -4103,7 +4084,7 @@ exports[`mask 1`] = `
\\"type\\": 3,
\\"data\\": {
\\"source\\": 5,
- \\"text\\": \\"*\\",
+ \\"text\\": \\"1\\",
\\"isChecked\\": false,
\\"id\\": 42
}
@@ -4111,7 +4092,7 @@ exports[`mask 1`] = `
]"
`;
-exports[`maskInputOptions 1`] = `
+exports[`move-node-1 1`] = `
"[
{
\\"type\\": 0,
@@ -4135,349 +4116,111 @@ exports[`maskInputOptions 1`] = `
\\"node\\": {
\\"type\\": 0,
\\"childNodes\\": [
- {
- \\"type\\": 1,
- \\"name\\": \\"html\\",
- \\"publicId\\": \\"\\",
- \\"systemId\\": \\"\\",
- \\"id\\": 2
- },
{
\\"type\\": 2,
\\"tagName\\": \\"html\\",
- \\"attributes\\": {
- \\"lang\\": \\"en\\"
- },
+ \\"attributes\\": {},
\\"childNodes\\": [
{
\\"type\\": 2,
\\"tagName\\": \\"head\\",
\\"attributes\\": {},
+ \\"childNodes\\": [],
+ \\"id\\": 3
+ },
+ {
+ \\"type\\": 2,
+ \\"tagName\\": \\"body\\",
+ \\"attributes\\": {},
\\"childNodes\\": [
{
\\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
+ \\"textContent\\": \\"\\\\n \\",
\\"id\\": 5
},
{
\\"type\\": 2,
- \\"tagName\\": \\"meta\\",
- \\"attributes\\": {
- \\"charset\\": \\"UTF-8\\"
- },
- \\"childNodes\\": [],
- \\"id\\": 6
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 7
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"meta\\",
- \\"attributes\\": {
- \\"name\\": \\"viewport\\",
- \\"content\\": \\"width=device-width, initial-scale=1.0\\"
- },
- \\"childNodes\\": [],
- \\"id\\": 8
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 9
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"meta\\",
- \\"attributes\\": {
- \\"http-equiv\\": \\"X-UA-Compatible\\",
- \\"content\\": \\"ie=edge\\"
- },
- \\"childNodes\\": [],
- \\"id\\": 10
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 11
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"title\\",
+ \\"tagName\\": \\"div\\",
\\"attributes\\": {},
\\"childNodes\\": [
{
\\"type\\": 3,
- \\"textContent\\": \\"form fields\\",
- \\"id\\": 13
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 7
+ },
+ {
+ \\"type\\": 2,
+ \\"tagName\\": \\"p\\",
+ \\"attributes\\": {},
+ \\"childNodes\\": [],
+ \\"id\\": 8
+ },
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 9
}
],
- \\"id\\": 12
+ \\"id\\": 6
},
{
\\"type\\": 3,
- \\"textContent\\": \\"\\\\n\\",
- \\"id\\": 14
- }
- ],
- \\"id\\": 4
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n\\\\n\\",
- \\"id\\": 15
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"body\\",
- \\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 17
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 10
},
{
\\"type\\": 2,
- \\"tagName\\": \\"form\\",
+ \\"tagName\\": \\"span\\",
\\"attributes\\": {},
\\"childNodes\\": [
{
\\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 19
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 12
},
{
\\"type\\": 2,
- \\"tagName\\": \\"label\\",
- \\"attributes\\": {
- \\"for\\": \\"text\\"
- },
+ \\"tagName\\": \\"i\\",
+ \\"attributes\\": {},
\\"childNodes\\": [
{
\\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 21
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 14
},
{
\\"type\\": 2,
- \\"tagName\\": \\"input\\",
- \\"attributes\\": {
- \\"type\\": \\"text\\"
- },
- \\"childNodes\\": [],
- \\"id\\": 22
+ \\"tagName\\": \\"b\\",
+ \\"attributes\\": {},
+ \\"childNodes\\": [
+ {
+ \\"type\\": 3,
+ \\"textContent\\": \\"1\\",
+ \\"id\\": 16
+ }
+ ],
+ \\"id\\": 15
},
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 23
- }
- ],
- \\"id\\": 20
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 24
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"label\\",
- \\"attributes\\": {
- \\"for\\": \\"radio\\"
- },
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 26
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"input\\",
- \\"attributes\\": {
- \\"type\\": \\"radio\\"
- },
- \\"childNodes\\": [],
- \\"id\\": 27
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 28
- }
- ],
- \\"id\\": 25
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 29
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"label\\",
- \\"attributes\\": {
- \\"for\\": \\"checkbox\\"
- },
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 31
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"input\\",
- \\"attributes\\": {
- \\"type\\": \\"checkbox\\"
- },
- \\"childNodes\\": [],
- \\"id\\": 32
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 33
- }
- ],
- \\"id\\": 30
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 34
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"label\\",
- \\"attributes\\": {
- \\"for\\": \\"textarea\\"
- },
- \\"childNodes\\": [
{
\\"type\\": 3,
\\"textContent\\": \\"\\\\n \\",
- \\"id\\": 36
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"textarea\\",
- \\"attributes\\": {
- \\"name\\": \\"\\",
- \\"id\\": \\"\\",
- \\"cols\\": \\"30\\",
- \\"rows\\": \\"10\\"
- },
- \\"childNodes\\": [],
- \\"id\\": 37
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 38
+ \\"id\\": 17
}
],
- \\"id\\": 35
+ \\"id\\": 13
},
{
\\"type\\": 3,
\\"textContent\\": \\"\\\\n \\",
- \\"id\\": 39
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"label\\",
- \\"attributes\\": {
- \\"for\\": \\"select\\"
- },
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 41
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"select\\",
- \\"attributes\\": {
- \\"name\\": \\"\\",
- \\"id\\": \\"\\",
- \\"value\\": \\"1\\"
- },
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 43
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"option\\",
- \\"attributes\\": {
- \\"value\\": \\"1\\",
- \\"selected\\": true
- },
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"1\\",
- \\"id\\": 45
- }
- ],
- \\"id\\": 44
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 46
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"option\\",
- \\"attributes\\": {
- \\"value\\": \\"2\\"
- },
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"2\\",
- \\"id\\": 48
- }
- ],
- \\"id\\": 47
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 49
- }
- ],
- \\"id\\": 42
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 50
- }
- ],
- \\"id\\": 40
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 51
+ \\"id\\": 18
}
],
- \\"id\\": 18
+ \\"id\\": 11
},
{
\\"type\\": 3,
- \\"textContent\\": \\"\\\\n\\\\n \\",
- \\"id\\": 52
+ \\"textContent\\": \\"\\\\n \\\\n \\",
+ \\"id\\": 19
},
{
\\"type\\": 2,
@@ -4487,471 +4230,21 @@ exports[`maskInputOptions 1`] = `
{
\\"type\\": 3,
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
- \\"id\\": 54
+ \\"id\\": 21
}
],
- \\"id\\": 53
+ \\"id\\": 20
},
{
\\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\\\n \\\\n\\\\n\\\\n\\",
- \\"id\\": 55
+ \\"textContent\\": \\"\\\\n \\\\n \\\\n\\\\n\\",
+ \\"id\\": 22
}
],
- \\"id\\": 16
+ \\"id\\": 4
}
],
- \\"id\\": 3
- }
- ],
- \\"id\\": 1
- },
- \\"initialOffset\\": {
- \\"left\\": 0,
- \\"top\\": 0
- }
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 2,
- \\"type\\": 5,
- \\"id\\": 22
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 5,
- \\"text\\": \\"t\\",
- \\"isChecked\\": false,
- \\"id\\": 22
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 5,
- \\"text\\": \\"te\\",
- \\"isChecked\\": false,
- \\"id\\": 22
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 5,
- \\"text\\": \\"tes\\",
- \\"isChecked\\": false,
- \\"id\\": 22
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 5,
- \\"text\\": \\"test\\",
- \\"isChecked\\": false,
- \\"id\\": 22
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 2,
- \\"type\\": 1,
- \\"id\\": 27
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 2,
- \\"type\\": 6,
- \\"id\\": 22
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 2,
- \\"type\\": 5,
- \\"id\\": 27
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 2,
- \\"type\\": 0,
- \\"id\\": 27
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 2,
- \\"type\\": 2,
- \\"id\\": 27
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 5,
- \\"text\\": \\"on\\",
- \\"isChecked\\": true,
- \\"id\\": 27
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 2,
- \\"type\\": 1,
- \\"id\\": 32
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 2,
- \\"type\\": 6,
- \\"id\\": 27
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 2,
- \\"type\\": 5,
- \\"id\\": 32
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 2,
- \\"type\\": 0,
- \\"id\\": 32
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 2,
- \\"type\\": 2,
- \\"id\\": 32
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 5,
- \\"text\\": \\"on\\",
- \\"isChecked\\": true,
- \\"id\\": 32
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 2,
- \\"type\\": 6,
- \\"id\\": 32
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 2,
- \\"type\\": 5,
- \\"id\\": 37
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 5,
- \\"text\\": \\"t\\",
- \\"isChecked\\": false,
- \\"id\\": 37
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 5,
- \\"text\\": \\"te\\",
- \\"isChecked\\": false,
- \\"id\\": 37
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 5,
- \\"text\\": \\"tex\\",
- \\"isChecked\\": false,
- \\"id\\": 37
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 5,
- \\"text\\": \\"text\\",
- \\"isChecked\\": false,
- \\"id\\": 37
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 5,
- \\"text\\": \\"texta\\",
- \\"isChecked\\": false,
- \\"id\\": 37
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 5,
- \\"text\\": \\"textar\\",
- \\"isChecked\\": false,
- \\"id\\": 37
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 5,
- \\"text\\": \\"textare\\",
- \\"isChecked\\": false,
- \\"id\\": 37
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 5,
- \\"text\\": \\"textarea\\",
- \\"isChecked\\": false,
- \\"id\\": 37
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 5,
- \\"text\\": \\"textarea \\",
- \\"isChecked\\": false,
- \\"id\\": 37
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 5,
- \\"text\\": \\"textarea t\\",
- \\"isChecked\\": false,
- \\"id\\": 37
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 5,
- \\"text\\": \\"textarea te\\",
- \\"isChecked\\": false,
- \\"id\\": 37
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 5,
- \\"text\\": \\"textarea tes\\",
- \\"isChecked\\": false,
- \\"id\\": 37
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 5,
- \\"text\\": \\"textarea test\\",
- \\"isChecked\\": false,
- \\"id\\": 37
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 5,
- \\"text\\": \\"1\\",
- \\"isChecked\\": false,
- \\"id\\": 42
- }
- }
-]"
-`;
-
-exports[`move-node-1 1`] = `
-"[
- {
- \\"type\\": 0,
- \\"data\\": {}
- },
- {
- \\"type\\": 1,
- \\"data\\": {}
- },
- {
- \\"type\\": 4,
- \\"data\\": {
- \\"href\\": \\"about:blank\\",
- \\"width\\": 1920,
- \\"height\\": 1080
- }
- },
- {
- \\"type\\": 2,
- \\"data\\": {
- \\"node\\": {
- \\"type\\": 0,
- \\"childNodes\\": [
- {
- \\"type\\": 2,
- \\"tagName\\": \\"html\\",
- \\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 2,
- \\"tagName\\": \\"head\\",
- \\"attributes\\": {},
- \\"childNodes\\": [],
- \\"id\\": 3
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"body\\",
- \\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 5
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"div\\",
- \\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 7
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"p\\",
- \\"attributes\\": {},
- \\"childNodes\\": [],
- \\"id\\": 8
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 9
- }
- ],
- \\"id\\": 6
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 10
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"span\\",
- \\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 12
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"i\\",
- \\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 14
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"b\\",
- \\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"1\\",
- \\"id\\": 16
- }
- ],
- \\"id\\": 15
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 17
- }
- ],
- \\"id\\": 13
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 18
- }
- ],
- \\"id\\": 11
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\\\n \\",
- \\"id\\": 19
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"script\\",
- \\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
- \\"id\\": 21
- }
- ],
- \\"id\\": 20
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\\\n \\\\n\\\\n\\",
- \\"id\\": 22
- }
- ],
- \\"id\\": 4
- }
- ],
- \\"id\\": 2
+ \\"id\\": 2
}
],
\\"id\\": 1
@@ -6280,7 +5573,6 @@ exports[`select2 1`] = `
\\"id\\": 36,
\\"attributes\\": {
\\"id\\": \\"select2-drop\\",
- \\"style\\": \\"left: Npx; width: Npx; top: Npx; bottom: auto; display: block;\\",
\\"class\\": \\"select2-drop select2-display-none select2-with-searchbox select2-drop-active\\"
}
},
@@ -6429,8 +5721,7 @@ exports[`select2 1`] = `
\\"tagName\\": \\"div\\",
\\"attributes\\": {
\\"class\\": \\"select2-drop select2-display-none select2-with-searchbox select2-drop-active\\",
- \\"id\\": \\"select2-drop\\",
- \\"style\\": \\"left: Npx; width: Npx; top: Npx; bottom: auto; display: block;\\"
+ \\"id\\": \\"select2-drop\\"
},
\\"childNodes\\": [],
\\"id\\": 36
@@ -6491,295 +5782,101 @@ exports[`select2 1`] = `
}
},
{
- \\"parentId\\": 38,
- \\"nextId\\": 43,
- \\"node\\": {
- \\"type\\": 2,
- \\"tagName\\": \\"input\\",
- \\"attributes\\": {
- \\"type\\": \\"text\\",
- \\"autocomplete\\": \\"off\\",
- \\"autocorrect\\": \\"off\\",
- \\"autocapitalize\\": \\"off\\",
- \\"spellcheck\\": \\"false\\",
- \\"class\\": \\"select2-input select2-focused\\",
- \\"role\\": \\"combobox\\",
- \\"aria-expanded\\": \\"true\\",
- \\"aria-autocomplete\\": \\"list\\",
- \\"aria-owns\\": \\"select2-results-1\\",
- \\"id\\": \\"s2id_autogen1_search\\",
- \\"placeholder\\": \\"\\",
- \\"aria-activedescendant\\": \\"select2-result-label-2\\"
- },
- \\"childNodes\\": [],
- \\"id\\": 42
- }
- },
- {
- \\"parentId\\": 38,
- \\"nextId\\": null,
- \\"node\\": {
- \\"type\\": 3,
- \\"textContent\\": \\" \\",
- \\"id\\": 43
- }
- },
- {
- \\"parentId\\": 36,
- \\"nextId\\": 45,
- \\"node\\": {
- \\"type\\": 3,
- \\"textContent\\": \\" \\",
- \\"id\\": 44
- }
- },
- {
- \\"parentId\\": 36,
- \\"nextId\\": null,
- \\"node\\": {
- \\"type\\": 2,
- \\"tagName\\": \\"ul\\",
- \\"attributes\\": {
- \\"class\\": \\"select2-results\\",
- \\"role\\": \\"listbox\\",
- \\"id\\": \\"select2-results-1\\"
- },
- \\"childNodes\\": [],
- \\"id\\": 45
- }
- },
- {
- \\"parentId\\": 45,
- \\"nextId\\": null,
- \\"node\\": {
- \\"type\\": 2,
- \\"tagName\\": \\"li\\",
- \\"attributes\\": {
- \\"class\\": \\"select2-results-dept-0 select2-result select2-result-selectable\\",
- \\"role\\": \\"presentation\\"
- },
- \\"childNodes\\": [],
- \\"id\\": 67
- }
- },
- {
- \\"parentId\\": 67,
- \\"nextId\\": null,
- \\"node\\": {
- \\"type\\": 2,
- \\"tagName\\": \\"div\\",
- \\"attributes\\": {
- \\"class\\": \\"select2-result-label\\",
- \\"id\\": \\"select2-result-label-3\\",
- \\"role\\": \\"option\\"
- },
- \\"childNodes\\": [],
- \\"id\\": 68
- }
- },
- {
- \\"parentId\\": 68,
- \\"nextId\\": null,
- \\"node\\": {
- \\"type\\": 3,
- \\"textContent\\": \\"B\\",
- \\"id\\": 69
- }
- },
- {
- \\"parentId\\": 18,
- \\"nextId\\": 36,
- \\"node\\": {
- \\"type\\": 2,
- \\"tagName\\": \\"div\\",
- \\"attributes\\": {
- \\"id\\": \\"select2-drop-mask\\",
- \\"class\\": \\"select2-drop-mask\\",
- \\"style\\": \\"\\"
- },
- \\"childNodes\\": [],
- \\"id\\": 70
- }
- },
- {
- \\"parentId\\": 62,
- \\"nextId\\": null,
- \\"node\\": {
- \\"type\\": 3,
- \\"textContent\\": \\"2 results are available, use up and down arrow keys to navigate.\\",
- \\"id\\": 71
- }
- },
- {
- \\"parentId\\": 45,
- \\"nextId\\": 67,
- \\"node\\": {
- \\"type\\": 2,
- \\"tagName\\": \\"li\\",
- \\"attributes\\": {
- \\"class\\": \\"select2-results-dept-0 select2-result select2-result-selectable select2-highlighted\\",
- \\"role\\": \\"presentation\\"
- },
- \\"childNodes\\": [],
- \\"id\\": 72
- }
- },
- {
- \\"parentId\\": 72,
- \\"nextId\\": null,
- \\"node\\": {
- \\"type\\": 2,
- \\"tagName\\": \\"div\\",
- \\"attributes\\": {
- \\"class\\": \\"select2-result-label\\",
- \\"id\\": \\"select2-result-label-2\\",
- \\"role\\": \\"option\\"
- },
- \\"childNodes\\": [],
- \\"id\\": 73
- }
- },
- {
- \\"parentId\\": 73,
- \\"nextId\\": null,
- \\"node\\": {
- \\"type\\": 3,
- \\"textContent\\": \\"A\\",
- \\"id\\": 74
- }
- },
- {
- \\"parentId\\": 73,
- \\"nextId\\": 74,
- \\"node\\": {
- \\"type\\": 2,
- \\"tagName\\": \\"span\\",
- \\"attributes\\": {
- \\"class\\": \\"select2-match\\"
- },
- \\"childNodes\\": [],
- \\"id\\": 75
- }
- },
- {
- \\"parentId\\": 68,
- \\"nextId\\": 69,
- \\"node\\": {
- \\"type\\": 2,
- \\"tagName\\": \\"span\\",
- \\"attributes\\": {
- \\"class\\": \\"select2-match\\"
- },
- \\"childNodes\\": [],
- \\"id\\": 76
- }
- }
- ]
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 2,
- \\"type\\": 0,
- \\"id\\": 70
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 5,
- \\"text\\": \\"\\",
- \\"isChecked\\": false,
- \\"id\\": 42
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 5,
- \\"text\\": \\"\\",
- \\"isChecked\\": false,
- \\"id\\": 35
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 2,
- \\"type\\": 1,
- \\"id\\": 70
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 2,
- \\"type\\": 6,
- \\"id\\": 42
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 2,
- \\"type\\": 5,
- \\"id\\": 35
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 0,
- \\"texts\\": [],
- \\"attributes\\": [
- {
- \\"id\\": 70,
- \\"attributes\\": {
- \\"style\\": \\"display: none;\\"
- }
- },
- {
- \\"id\\": 36,
- \\"attributes\\": {
- \\"id\\": null,
- \\"style\\": \\"left: Npx; width: Npx; top: Npx; bottom: auto; display: none;\\"
+ \\"parentId\\": 38,
+ \\"nextId\\": 43,
+ \\"node\\": {
+ \\"type\\": 2,
+ \\"tagName\\": \\"input\\",
+ \\"attributes\\": {
+ \\"type\\": \\"text\\",
+ \\"autocomplete\\": \\"off\\",
+ \\"autocorrect\\": \\"off\\",
+ \\"autocapitalize\\": \\"off\\",
+ \\"spellcheck\\": \\"false\\",
+ \\"class\\": \\"select2-input select2-focused\\",
+ \\"role\\": \\"combobox\\",
+ \\"aria-expanded\\": \\"true\\",
+ \\"aria-autocomplete\\": \\"list\\",
+ \\"aria-owns\\": \\"select2-results-1\\",
+ \\"id\\": \\"s2id_autogen1_search\\",
+ \\"placeholder\\": \\"\\",
+ \\"aria-activedescendant\\": \\"select2-result-label-2\\"
+ },
+ \\"childNodes\\": [],
+ \\"id\\": 42
}
},
{
- \\"id\\": 25,
- \\"attributes\\": {
- \\"class\\": \\"select2-container select2-container-active\\"
+ \\"parentId\\": 38,
+ \\"nextId\\": null,
+ \\"node\\": {
+ \\"type\\": 3,
+ \\"textContent\\": \\" \\",
+ \\"id\\": 43
}
},
{
- \\"id\\": 35,
- \\"attributes\\": {
- \\"disabled\\": null
+ \\"parentId\\": 36,
+ \\"nextId\\": 45,
+ \\"node\\": {
+ \\"type\\": 3,
+ \\"textContent\\": \\" \\",
+ \\"id\\": 44
}
},
{
- \\"id\\": 42,
- \\"attributes\\": {
- \\"class\\": \\"select2-input\\"
+ \\"parentId\\": 36,
+ \\"nextId\\": null,
+ \\"node\\": {
+ \\"type\\": 2,
+ \\"tagName\\": \\"ul\\",
+ \\"attributes\\": {
+ \\"class\\": \\"select2-results\\",
+ \\"role\\": \\"listbox\\",
+ \\"id\\": \\"select2-results-1\\"
+ },
+ \\"childNodes\\": [],
+ \\"id\\": 45
}
- }
- ],
- \\"removes\\": [
- {
- \\"parentId\\": 18,
- \\"id\\": 70
},
{
\\"parentId\\": 45,
- \\"id\\": 72
+ \\"nextId\\": null,
+ \\"node\\": {
+ \\"type\\": 2,
+ \\"tagName\\": \\"li\\",
+ \\"attributes\\": {
+ \\"class\\": \\"select2-results-dept-0 select2-result select2-result-selectable\\",
+ \\"role\\": \\"presentation\\"
+ },
+ \\"childNodes\\": [],
+ \\"id\\": 67
+ }
},
{
- \\"parentId\\": 45,
- \\"id\\": 67
- }
- ],
- \\"adds\\": [
+ \\"parentId\\": 67,
+ \\"nextId\\": null,
+ \\"node\\": {
+ \\"type\\": 2,
+ \\"tagName\\": \\"div\\",
+ \\"attributes\\": {
+ \\"class\\": \\"select2-result-label\\",
+ \\"id\\": \\"select2-result-label-3\\",
+ \\"role\\": \\"option\\"
+ },
+ \\"childNodes\\": [],
+ \\"id\\": 68
+ }
+ },
+ {
+ \\"parentId\\": 68,
+ \\"nextId\\": null,
+ \\"node\\": {
+ \\"type\\": 3,
+ \\"textContent\\": \\"B\\",
+ \\"id\\": 69
+ }
+ },
{
\\"parentId\\": 18,
\\"nextId\\": 36,
@@ -6789,321 +5886,254 @@ exports[`select2 1`] = `
\\"attributes\\": {
\\"id\\": \\"select2-drop-mask\\",
\\"class\\": \\"select2-drop-mask\\",
- \\"style\\": \\"display: none;\\"
+ \\"style\\": \\"\\"
},
\\"childNodes\\": [],
\\"id\\": 70
}
- }
- ]
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 2,
- \\"type\\": 0,
- \\"id\\": 26
- }
- }
-]"
-`;
-
-exports[`serialize-before-record 1`] = `
-"[
- {
- \\"type\\": 0,
- \\"data\\": {}
- },
- {
- \\"type\\": 1,
- \\"data\\": {}
- },
- {
- \\"type\\": 4,
- \\"data\\": {
- \\"href\\": \\"about:blank\\",
- \\"width\\": 1920,
- \\"height\\": 1080
- }
- },
- {
- \\"type\\": 2,
- \\"data\\": {
- \\"node\\": {
- \\"type\\": 0,
- \\"childNodes\\": [
- {
- \\"type\\": 2,
- \\"tagName\\": \\"html\\",
- \\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 2,
- \\"tagName\\": \\"head\\",
- \\"attributes\\": {},
- \\"childNodes\\": [],
- \\"id\\": 3
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"body\\",
- \\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 5
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"p\\",
- \\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"mutation observer\\",
- \\"id\\": 7
- }
- ],
- \\"id\\": 6
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 8
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"ul\\",
- \\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 10
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"li\\",
- \\"attributes\\": {},
- \\"childNodes\\": [],
- \\"id\\": 11
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 12
- }
- ],
- \\"id\\": 9
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n\\\\n \\",
- \\"id\\": 13
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"script\\",
- \\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
- \\"id\\": 15
- }
- ],
- \\"id\\": 14
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\\\n \\",
- \\"id\\": 16
- }
- ],
- \\"id\\": 4
- }
- ],
- \\"id\\": 2
- }
- ],
- \\"id\\": 1
- },
- \\"initialOffset\\": {
- \\"left\\": 0,
- \\"top\\": 0
- }
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 0,
- \\"texts\\": [],
- \\"attributes\\": [],
- \\"removes\\": [],
- \\"adds\\": [
+ },
{
- \\"parentId\\": 9,
+ \\"parentId\\": 62,
\\"nextId\\": null,
+ \\"node\\": {
+ \\"type\\": 3,
+ \\"textContent\\": \\"2 results are available, use up and down arrow keys to navigate.\\",
+ \\"id\\": 71
+ }
+ },
+ {
+ \\"parentId\\": 45,
+ \\"nextId\\": 67,
\\"node\\": {
\\"type\\": 2,
\\"tagName\\": \\"li\\",
- \\"attributes\\": {},
+ \\"attributes\\": {
+ \\"class\\": \\"select2-results-dept-0 select2-result select2-result-selectable select2-highlighted\\",
+ \\"role\\": \\"presentation\\"
+ },
\\"childNodes\\": [],
- \\"id\\": 17
+ \\"id\\": 72
}
},
{
- \\"parentId\\": 9,
- \\"nextId\\": 17,
+ \\"parentId\\": 72,
+ \\"nextId\\": null,
\\"node\\": {
\\"type\\": 2,
- \\"tagName\\": \\"li\\",
- \\"attributes\\": {},
+ \\"tagName\\": \\"div\\",
+ \\"attributes\\": {
+ \\"class\\": \\"select2-result-label\\",
+ \\"id\\": \\"select2-result-label-2\\",
+ \\"role\\": \\"option\\"
+ },
\\"childNodes\\": [],
- \\"id\\": 18
+ \\"id\\": 73
}
},
{
- \\"parentId\\": 9,
- \\"nextId\\": 18,
+ \\"parentId\\": 73,
+ \\"nextId\\": null,
+ \\"node\\": {
+ \\"type\\": 3,
+ \\"textContent\\": \\"A\\",
+ \\"id\\": 74
+ }
+ },
+ {
+ \\"parentId\\": 73,
+ \\"nextId\\": 74,
\\"node\\": {
\\"type\\": 2,
- \\"tagName\\": \\"li\\",
- \\"attributes\\": {},
+ \\"tagName\\": \\"span\\",
+ \\"attributes\\": {
+ \\"class\\": \\"select2-match\\"
+ },
\\"childNodes\\": [],
- \\"id\\": 19
+ \\"id\\": 75
+ }
+ },
+ {
+ \\"parentId\\": 68,
+ \\"nextId\\": 69,
+ \\"node\\": {
+ \\"type\\": 2,
+ \\"tagName\\": \\"span\\",
+ \\"attributes\\": {
+ \\"class\\": \\"select2-match\\"
+ },
+ \\"childNodes\\": [],
+ \\"id\\": 76
}
}
]
}
- }
-]"
-`;
-
-exports[`shadow-dom 1`] = `
-"[
+ },
{
- \\"type\\": 0,
- \\"data\\": {}
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 2,
+ \\"type\\": 0,
+ \\"id\\": 70
+ }
},
{
- \\"type\\": 1,
- \\"data\\": {}
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 5,
+ \\"text\\": \\"\\",
+ \\"isChecked\\": false,
+ \\"id\\": 42
+ }
},
{
- \\"type\\": 4,
+ \\"type\\": 3,
\\"data\\": {
- \\"href\\": \\"about:blank\\",
- \\"width\\": 1920,
- \\"height\\": 1080
+ \\"source\\": 5,
+ \\"text\\": \\"\\",
+ \\"isChecked\\": false,
+ \\"id\\": 35
}
},
{
- \\"type\\": 2,
+ \\"type\\": 3,
\\"data\\": {
- \\"node\\": {
- \\"type\\": 0,
- \\"childNodes\\": [
- {
- \\"type\\": 1,
- \\"name\\": \\"html\\",
- \\"publicId\\": \\"\\",
- \\"systemId\\": \\"\\",
- \\"id\\": 2
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"html\\",
- \\"attributes\\": {
- \\"lang\\": \\"en\\"
- },
- \\"childNodes\\": [
- {
- \\"type\\": 2,
- \\"tagName\\": \\"head\\",
- \\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 5
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"meta\\",
- \\"attributes\\": {
- \\"charset\\": \\"UTF-8\\"
- },
- \\"childNodes\\": [],
- \\"id\\": 6
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 7
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"meta\\",
- \\"attributes\\": {
- \\"name\\": \\"viewport\\",
- \\"content\\": \\"width=device-width, initial-scale=1.0\\"
- },
- \\"childNodes\\": [],
- \\"id\\": 8
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 9
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"title\\",
- \\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"Shadow DOM Observer\\",
- \\"id\\": 11
- }
- ],
- \\"id\\": 10
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 12
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"style\\",
- \\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n .my-element {\\\\n margin: 0 0 1rem 0;\\\\n }\\\\n iframe {\\\\n border: 0;\\\\n width: 100%;\\\\n padding: 0;\\\\n }\\\\n\\\\n body {\\\\n max-width: 400px;\\\\n margin: 1rem auto;\\\\n padding: 0 1rem;\\\\n font-family: 'comic sans ms';\\\\n }\\\\n \\",
- \\"isStyle\\": true,
- \\"id\\": 14
- }
- ],
- \\"id\\": 13
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 15
- }
- ],
- \\"id\\": 4
- },
+ \\"source\\": 2,
+ \\"type\\": 1,
+ \\"id\\": 70
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 2,
+ \\"type\\": 6,
+ \\"id\\": 42
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 2,
+ \\"type\\": 5,
+ \\"id\\": 35
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 0,
+ \\"texts\\": [],
+ \\"attributes\\": [
+ {
+ \\"id\\": 70,
+ \\"attributes\\": {
+ \\"style\\": \\"display: none;\\"
+ }
+ },
+ {
+ \\"id\\": 36,
+ \\"attributes\\": {
+ \\"id\\": null
+ }
+ },
+ {
+ \\"id\\": 25,
+ \\"attributes\\": {
+ \\"class\\": \\"select2-container select2-container-active\\"
+ }
+ },
+ {
+ \\"id\\": 35,
+ \\"attributes\\": {
+ \\"disabled\\": null
+ }
+ },
+ {
+ \\"id\\": 42,
+ \\"attributes\\": {
+ \\"class\\": \\"select2-input\\"
+ }
+ }
+ ],
+ \\"removes\\": [
+ {
+ \\"parentId\\": 18,
+ \\"id\\": 70
+ },
+ {
+ \\"parentId\\": 45,
+ \\"id\\": 72
+ },
+ {
+ \\"parentId\\": 45,
+ \\"id\\": 67
+ }
+ ],
+ \\"adds\\": [
+ {
+ \\"parentId\\": 18,
+ \\"nextId\\": 36,
+ \\"node\\": {
+ \\"type\\": 2,
+ \\"tagName\\": \\"div\\",
+ \\"attributes\\": {
+ \\"id\\": \\"select2-drop-mask\\",
+ \\"class\\": \\"select2-drop-mask\\",
+ \\"style\\": \\"display: none;\\"
+ },
+ \\"childNodes\\": [],
+ \\"id\\": 70
+ }
+ }
+ ]
+ }
+ },
+ {
+ \\"type\\": 3,
+ \\"data\\": {
+ \\"source\\": 2,
+ \\"type\\": 0,
+ \\"id\\": 26
+ }
+ }
+]"
+`;
+
+exports[`serialize-before-record 1`] = `
+"[
+ {
+ \\"type\\": 0,
+ \\"data\\": {}
+ },
+ {
+ \\"type\\": 1,
+ \\"data\\": {}
+ },
+ {
+ \\"type\\": 4,
+ \\"data\\": {
+ \\"href\\": \\"about:blank\\",
+ \\"width\\": 1920,
+ \\"height\\": 1080
+ }
+ },
+ {
+ \\"type\\": 2,
+ \\"data\\": {
+ \\"node\\": {
+ \\"type\\": 0,
+ \\"childNodes\\": [
+ {
+ \\"type\\": 2,
+ \\"tagName\\": \\"html\\",
+ \\"attributes\\": {},
+ \\"childNodes\\": [
{
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 16
+ \\"type\\": 2,
+ \\"tagName\\": \\"head\\",
+ \\"attributes\\": {},
+ \\"childNodes\\": [],
+ \\"id\\": 3
},
{
\\"type\\": 2,
@@ -7112,8 +6142,8 @@ exports[`shadow-dom 1`] = `
\\"childNodes\\": [
{
\\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 18
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 5
},
{
\\"type\\": 2,
@@ -7122,130 +6152,46 @@ exports[`shadow-dom 1`] = `
\\"childNodes\\": [
{
\\"type\\": 3,
- \\"textContent\\": \\"\\\\n Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellat odit\\\\n officiis necessitatibus laborum asperiores et adipisci dolores corporis,\\\\n vero distinctio voluptas, suscipit commodi architecto, aliquam fugit.\\\\n Nesciunt labore reiciendis blanditiis!\\\\n \\",
- \\"id\\": 20
+ \\"textContent\\": \\"mutation observer\\",
+ \\"id\\": 7
}
],
- \\"id\\": 19
+ \\"id\\": 6
},
{
\\"type\\": 3,
- \\"textContent\\": \\"\\\\n\\\\n \\",
- \\"id\\": 21
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 8
},
{
\\"type\\": 2,
- \\"tagName\\": \\"div\\",
- \\"attributes\\": {
- \\"class\\": \\"my-element\\"
- },
+ \\"tagName\\": \\"ul\\",
+ \\"attributes\\": {},
\\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 23
- },
- {
- \\"type\\": 5,
- \\"textContent\\": \\" Also could be a \\\\n \\\\n \\",
- \\"id\\": 24
- },
{
\\"type\\": 3,
\\"textContent\\": \\"\\\\n \\",
- \\"id\\": 25
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 26,
- \\"isShadow\\": true
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"style\\",
- \\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n body { /* for fallback iframe */\\\\n margin: 0;\\\\n }\\\\n p { \\\\n border: 1px solid #ccc;\\\\n padding: 1rem;\\\\n color: red;\\\\n font-family: sans-serif;\\\\n }\\\\n \\",
- \\"isStyle\\": true,
- \\"id\\": 28
- }
- ],
- \\"id\\": 27,
- \\"isShadow\\": true
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n\\\\n \\",
- \\"id\\": 29,
- \\"isShadow\\": true
+ \\"id\\": 10
},
{
\\"type\\": 2,
- \\"tagName\\": \\"p\\",
+ \\"tagName\\": \\"li\\",
\\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"Element with Shadow DOM\\",
- \\"id\\": 31
- }
- ],
- \\"id\\": 30,
- \\"isShadow\\": true
+ \\"childNodes\\": [],
+ \\"id\\": 11
},
{
\\"type\\": 3,
- \\"textContent\\": \\"\\\\n\\",
- \\"id\\": 32,
- \\"isShadow\\": true
+ \\"textContent\\": \\"\\\\n \\",
+ \\"id\\": 12
}
],
- \\"id\\": 22,
- \\"isShadowHost\\": true
+ \\"id\\": 9
},
{
\\"type\\": 3,
\\"textContent\\": \\"\\\\n\\\\n \\",
- \\"id\\": 33
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"p\\",
- \\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellat odit\\\\n officiis necessitatibus laborum asperiores et adipisci dolores corporis,\\\\n vero distinctio voluptas, suscipit commodi architecto, aliquam fugit.\\\\n Nesciunt labore reiciendis blanditiis!\\\\n \\",
- \\"id\\": 35
- }
- ],
- \\"id\\": 34
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\",
- \\"id\\": 36
- },
- {
- \\"type\\": 2,
- \\"tagName\\": \\"script\\",
- \\"attributes\\": {},
- \\"childNodes\\": [
- {
- \\"type\\": 3,
- \\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
- \\"id\\": 38
- }
- ],
- \\"id\\": 37
- },
- {
- \\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\\\n \\\\n \\",
- \\"id\\": 39
+ \\"id\\": 13
},
{
\\"type\\": 2,
@@ -7255,21 +6201,21 @@ exports[`shadow-dom 1`] = `
{
\\"type\\": 3,
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
- \\"id\\": 41
+ \\"id\\": 15
}
],
- \\"id\\": 40
+ \\"id\\": 14
},
{
\\"type\\": 3,
- \\"textContent\\": \\"\\\\n \\\\n \\\\n\\\\n\\",
- \\"id\\": 42
+ \\"textContent\\": \\"\\\\n \\\\n \\",
+ \\"id\\": 16
}
],
- \\"id\\": 17
+ \\"id\\": 4
}
],
- \\"id\\": 3
+ \\"id\\": 2
}
],
\\"id\\": 1
@@ -7289,98 +6235,36 @@ exports[`shadow-dom 1`] = `
\\"removes\\": [],
\\"adds\\": [
{
- \\"parentId\\": 22,
+ \\"parentId\\": 9,
\\"nextId\\": null,
\\"node\\": {
\\"type\\": 2,
- \\"tagName\\": \\"p\\",
+ \\"tagName\\": \\"li\\",
\\"attributes\\": {},
\\"childNodes\\": [],
- \\"id\\": 43,
- \\"isShadow\\": true
+ \\"id\\": 17
}
- }
- ]
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 0,
- \\"texts\\": [],
- \\"attributes\\": [],
- \\"removes\\": [],
- \\"adds\\": [
+ },
{
- \\"parentId\\": 43,
- \\"nextId\\": null,
+ \\"parentId\\": 9,
+ \\"nextId\\": 17,
\\"node\\": {
\\"type\\": 2,
- \\"tagName\\": \\"p\\",
+ \\"tagName\\": \\"li\\",
\\"attributes\\": {},
\\"childNodes\\": [],
- \\"id\\": 44
- }
- }
- ]
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 0,
- \\"texts\\": [],
- \\"attributes\\": [],
- \\"removes\\": [
- {
- \\"parentId\\": 22,
- \\"id\\": 30,
- \\"isShadow\\": true
- }
- ],
- \\"adds\\": []
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 0,
- \\"texts\\": [],
- \\"attributes\\": [],
- \\"removes\\": [],
- \\"adds\\": [
- {
- \\"parentId\\": 44,
- \\"nextId\\": null,
- \\"node\\": {
- \\"type\\": 3,
- \\"textContent\\": \\"hi\\",
- \\"id\\": 45
+ \\"id\\": 18
}
- }
- ]
- }
- },
- {
- \\"type\\": 3,
- \\"data\\": {
- \\"source\\": 0,
- \\"texts\\": [],
- \\"attributes\\": [],
- \\"removes\\": [
- {
- \\"parentId\\": 44,
- \\"id\\": 45
- }
- ],
- \\"adds\\": [
+ },
{
- \\"parentId\\": 44,
- \\"nextId\\": null,
+ \\"parentId\\": 9,
+ \\"nextId\\": 18,
\\"node\\": {
- \\"type\\": 3,
- \\"textContent\\": \\"123\\",
- \\"id\\": 46
+ \\"type\\": 2,
+ \\"tagName\\": \\"li\\",
+ \\"attributes\\": {},
+ \\"childNodes\\": [],
+ \\"id\\": 19
}
}
]
diff --git a/test/events/style-sheet-rule-events.ts b/test/events/style-sheet-rule-events.ts
index 5740f502..e0e9682e 100644
--- a/test/events/style-sheet-rule-events.ts
+++ b/test/events/style-sheet-rule-events.ts
@@ -1,4 +1,8 @@
-import { EventType, eventWithTime, IncrementalSource } from '../../src/types';
+import {
+ EventType,
+ eventWithTime,
+ IncrementalSource
+} from '../../src/types';
const now = Date.now();
const events: eventWithTime[] = [
@@ -23,124 +27,68 @@ const events: eventWithTime[] = [
},
// full snapshot:
{
- data: {
- node: {
- id: 1,
- type: 0,
- childNodes: [
- { id: 2, name: 'html', type: 1, publicId: '', systemId: '' },
- {
- id: 3,
- type: 2,
- tagName: 'html',
- attributes: { lang: 'en' },
- childNodes: [
+ "data": {
+ "node": {
+ "id": 1, "type": 0, "childNodes": [{ "id": 2, "name": "html", "type": 1, "publicId": "", "systemId": "" }, {
+ "id": 3, "type": 2, "tagName": "html", "attributes": { "lang": "en" }, "childNodes": [{
+ "id": 4, "type": 2, "tagName": "head", "attributes": {}, "childNodes": [
{
- id: 4,
- type: 2,
- tagName: 'head',
- attributes: {},
- childNodes: [
- {
- id: 101,
- type: 2,
- tagName: 'style',
- attributes: {
- 'data-jss': '',
- 'data-meta': 'sk, Unthemed, Static',
- },
- childNodes: [
- {
- id: 102,
- type: 3,
- isStyle: true,
- textContent:
- '\n.c01x {\n opacity: 1;\n transform: translateX(0);\n}\n',
- },
- ],
- },
- {
- id: 105,
- type: 2,
- tagName: 'style',
- attributes: {
- _cssText:
- '.css-1uxxxx3 { position: fixed; top: 0px; right: 0px; left: 4rem; z-index: 15; flex-shrink: 0; height: 0.25rem; overflow: hidden; background-color: rgb(17, 171, 209); }.css-1c9xxxx { height: 0.25rem; background-color: rgb(190, 232, 242); opacity: 0; transition: opacity 0.5s ease 0s; }.css-lsxxx { padding-left: 4rem; }',
- 'data-emotion': 'css',
- },
- childNodes: [
- { id: 106, type: 3, isStyle: true, textContent: '' },
- ],
- },
- ],
+ "id": 101, "type": 2, "tagName": "style", "attributes": { "data-jss": "", "data-meta": "sk, Unthemed, Static" }, "childNodes": [{ "id": 102, "type": 3, "isStyle": true, "textContent": "\n.c01x {\n opacity: 1;\n transform: translateX(0);\n}\n" }]
},
{
- id: 107,
- type: 2,
- tagName: 'body',
- attributes: {},
- childNodes: [],
- },
- ],
- },
- ],
- },
- initialOffset: { top: 0, left: 0 },
+ "id": 105, "type": 2, "tagName": "style", "attributes":
+ { "_cssText": ".css-1uxxxx3 { position: fixed; top: 0px; right: 0px; left: 4rem; z-index: 15; flex-shrink: 0; height: 0.25rem; overflow: hidden; background-color: rgb(17, 171, 209); }.css-1c9xxxx { height: 0.25rem; background-color: rgb(190, 232, 242); opacity: 0; transition: opacity 0.5s ease 0s; }.css-lsxxx { padding-left: 4rem; }", "data-emotion": "css" }, "childNodes": [{ "id": 106, "type": 3, "isStyle": true, "textContent": "" }]
+ }]
+ }, {
+ "id": 107, "type": 2, "tagName": "body", "attributes": {}, "childNodes": []
+ }]
+ }]
+ }, "initialOffset": { "top": 0, "left": 0 }
},
- type: EventType.FullSnapshot,
- timestamp: now + 100,
+ "type": EventType.FullSnapshot,
+ "timestamp": now + 100
},
// mutation that adds stylesheet
{
- data: {
- adds: [
+ "data": {
+ "adds": [
{
- node: {
- id: 255,
- type: 2,
- tagName: 'style',
- attributes: { 'data-jss': '', 'data-meta': 'Col, Themed, Dynamic' },
- childNodes: [],
+ "node": {
+ "id": 255, "type": 2, "tagName": "style", "attributes": { "data-jss": "", "data-meta": "Col, Themed, Dynamic" }, "childNodes": []
},
- nextId: 101,
- parentId: 4,
+ "nextId": 101,
+ "parentId": 4
},
{
- node: {
- id: 256,
- type: 3,
- isStyle: true,
- textContent:
- '\n.c011xx {\n padding: 1.3125rem;\n flex: none;\n width: 100%;\n}\n',
+ "node": {
+ "id": 256, "type": 3, "isStyle": true, "textContent": "\n.c011xx {\n padding: 1.3125rem;\n flex: none;\n width: 100%;\n}\n"
},
- nextId: null,
- parentId: 255,
+ "nextId": null,
+ "parentId": 255
},
],
- texts: [],
- source: IncrementalSource.Mutation,
- removes: [],
- attributes: [],
+ "texts": [],
+ "source": IncrementalSource.Mutation,
+ "removes": [],
+ "attributes": []
},
- type: EventType.IncrementalSnapshot,
- timestamp: now + 500,
+ "type": EventType.IncrementalSnapshot,
+ "timestamp": now + 500
},
// adds StyleSheetRule
{
- data: {
- id: 105,
- adds: [
+ "data": {
+ "id": 105, "adds": [
{
- rule:
- '.css-1fbxx79{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;min-width:60rem;min-height:100vh;}',
- index: 2,
- },
+ "rule": ".css-1fbxx79{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;min-width:60rem;min-height:100vh;}",
+ "index": 2
+ }
],
- source: IncrementalSource.StyleSheetRule,
+ "source": IncrementalSource.StyleSheetRule
},
- type: EventType.IncrementalSnapshot,
- timestamp: now + 1000,
- },
+ "type": EventType.IncrementalSnapshot,
+ "timestamp": now + 1000
+ }
];
-export default events;
+export default events;
\ No newline at end of file
diff --git a/test/html/frame1.html b/test/html/frame1.html
deleted file mode 100644
index 8810af46..00000000
--- a/test/html/frame1.html
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
- Frame 1
-
-
- frame 1
-
-
-
-
diff --git a/test/html/frame2.html b/test/html/frame2.html
deleted file mode 100644
index 6344438c..00000000
--- a/test/html/frame2.html
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
- Frame 2
-
-
- frame 2
-
-
-
diff --git a/test/html/main.html b/test/html/main.html
deleted file mode 100644
index a37d9bea..00000000
--- a/test/html/main.html
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
- Main
-
-
-
-
-
-
-
diff --git a/test/html/shadow-dom.html b/test/html/shadow-dom.html
deleted file mode 100644
index bf4c6837..00000000
--- a/test/html/shadow-dom.html
+++ /dev/null
@@ -1,83 +0,0 @@
-
-
-
-
-
- Shadow DOM Observer
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellat odit
- officiis necessitatibus laborum asperiores et adipisci dolores corporis,
- vero distinctio voluptas, suscipit commodi architecto, aliquam fugit.
- Nesciunt labore reiciendis blanditiis!
-
-
-
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellat odit
- officiis necessitatibus laborum asperiores et adipisci dolores corporis,
- vero distinctio voluptas, suscipit commodi architecto, aliquam fugit.
- Nesciunt labore reiciendis blanditiis!
-
-
-
-
-
diff --git a/test/integration.test.ts b/test/integration.test.ts
index f0eddb5b..68c4e3ad 100644
--- a/test/integration.test.ts
+++ b/test/integration.test.ts
@@ -1,7 +1,5 @@
import * as fs from 'fs';
import * as path from 'path';
-import * as http from 'http';
-import * as url from 'url';
import * as puppeteer from 'puppeteer';
import { assertSnapshot, launchPuppeteer } from './utils';
import { Suite } from 'mocha';
@@ -10,48 +8,10 @@ import { recordOptions, eventWithTime, EventType } from '../src/types';
import { visitSnapshot, NodeType } from '../src/snapshot';
interface ISuite extends Suite {
- server: http.Server;
code: string;
browser: puppeteer.Browser;
}
-interface IMimeType {
- [key: string]: string;
-}
-
-const server = () =>
- new Promise((resolve) => {
- const mimeType: IMimeType = {
- '.html': 'text/html',
- '.js': 'text/javascript',
- '.css': 'text/css',
- };
- const s = http.createServer((req, res) => {
- const parsedUrl = url.parse(req.url!);
- const sanitizePath = path
- .normalize(parsedUrl.pathname!)
- .replace(/^(\.\.[\/\\])+/, '');
- let pathname = path.join(__dirname, sanitizePath);
- try {
- const data = fs.readFileSync(pathname);
- const ext = path.parse(pathname).ext;
- res.setHeader('Content-type', mimeType[ext] || 'text/plain');
- res.setHeader('Access-Control-Allow-Origin', '*');
- res.setHeader('Access-Control-Allow-Methods', 'GET');
- res.setHeader('Access-Control-Allow-Headers', 'Content-type');
- setTimeout(() => {
- res.end(data);
- // mock delay
- }, 100);
- } catch (error) {
- res.end();
- }
- });
- s.listen(3030).on('listening', () => {
- resolve(s);
- });
- });
-
describe('record integration tests', function (this: ISuite) {
this.timeout(10_000);
@@ -84,7 +44,6 @@ describe('record integration tests', function (this: ISuite) {
};
before(async () => {
- this.server = await server();
this.browser = await launchPuppeteer();
const bundlePath = path.resolve(__dirname, '../dist/rrweb.min.js');
@@ -93,7 +52,6 @@ describe('record integration tests', function (this: ISuite) {
after(async () => {
await this.browser.close();
- this.server.close();
});
it('can record form interactions', async () => {
@@ -409,51 +367,4 @@ describe('record integration tests', function (this: ISuite) {
const snapshots = await page.evaluate('window.snapshots');
assertSnapshot(snapshots, __filename, 'log');
});
-
- it('should nest record iframe', async () => {
- const page: puppeteer.Page = await this.browser.newPage();
- await page.goto(`http://localhost:3030/html`);
- await page.setContent(getHtml.call(this, 'main.html'));
-
- await page.waitFor(500);
- const snapshots = await page.evaluate('window.snapshots');
- assertSnapshot(snapshots, __filename, 'iframe');
- });
-
- it('should record shadow DOM', async () => {
- const page: puppeteer.Page = await this.browser.newPage();
- await page.goto('about:blank');
- await page.setContent(getHtml.call(this, 'shadow-dom.html'));
-
- await page.evaluate(() => {
- const sleep = (ms: number) =>
- new Promise((resolve) => setTimeout(resolve, ms));
-
- const el = document.querySelector('.my-element') as HTMLDivElement;
- const shadowRoot = el.shadowRoot as ShadowRoot;
- shadowRoot.appendChild(document.createElement('p'));
- sleep(1)
- .then(() => {
- shadowRoot.lastChild!.appendChild(document.createElement('p'));
- return sleep(1);
- })
- .then(() => {
- const firstP = shadowRoot.querySelector('p') as HTMLParagraphElement;
- shadowRoot.removeChild(firstP);
- return sleep(1);
- })
- .then(() => {
- (shadowRoot.lastChild!.childNodes[0] as HTMLElement).innerText = 'hi';
- return sleep(1);
- })
- .then(() => {
- (shadowRoot.lastChild!.childNodes[0] as HTMLElement).innerText =
- '123';
- });
- });
- await page.waitFor(50);
-
- const snapshots = await page.evaluate('window.snapshots');
- assertSnapshot(snapshots, __filename, 'shadow-dom');
- });
});
diff --git a/test/replayer.test.ts b/test/replayer.test.ts
index e61c3d37..af7a3243 100644
--- a/test/replayer.test.ts
+++ b/test/replayer.test.ts
@@ -8,7 +8,7 @@ import { Suite } from 'mocha';
import {
launchPuppeteer,
sampleEvents as events,
- sampleStyleSheetRemoveEvents as stylesheetRemoveEvents,
+ sampleStyleSheetRemoveEvents as stylesheetRemoveEvents
} from './utils';
import styleSheetRuleEvents from './events/style-sheet-rule-events';
@@ -127,19 +127,17 @@ describe('replayer', function (this: ISuite) {
`);
const currentTime = await this.page.evaluate(`
replayer.getCurrentTime();
- `);
+ `)
const currentState = await this.page.evaluate(`
replayer['service']['state']['value'];
- `);
- expect(actionLength).to.equal(0);
+ `)
+ expect(actionLength).to.equal(0)
expect(currentTime).to.equal(2500);
expect(currentState).to.equal('paused');
});
it('can fast forward past StyleSheetRule changes on virtual elements', async () => {
- await this.page.evaluate(
- `events = ${JSON.stringify(styleSheetRuleEvents)}`,
- );
+ await this.page.evaluate(`events = ${JSON.stringify(styleSheetRuleEvents)}`);
const actionLength = await this.page.evaluate(`
const { Replayer } = rrweb;
const replayer = new Replayer(events);
@@ -147,16 +145,12 @@ describe('replayer', function (this: ISuite) {
replayer['timer']['actions'].length;
`);
expect(actionLength).to.equal(
- styleSheetRuleEvents.filter(
- (e) => e.timestamp - styleSheetRuleEvents[0].timestamp >= 1500,
- ).length,
+ styleSheetRuleEvents.filter((e) => e.timestamp - styleSheetRuleEvents[0].timestamp >= 1500).length,
);
});
it('can handle removing style elements', async () => {
- await this.page.evaluate(
- `events = ${JSON.stringify(stylesheetRemoveEvents)}`,
- );
+ await this.page.evaluate(`events = ${JSON.stringify(stylesheetRemoveEvents)}`);
const actionLength = await this.page.evaluate(`
const { Replayer } = rrweb;
const replayer = new Replayer(events);
@@ -164,9 +158,7 @@ describe('replayer', function (this: ISuite) {
replayer['timer']['actions'].length;
`);
expect(actionLength).to.equal(
- stylesheetRemoveEvents.filter(
- (e) => e.timestamp - stylesheetRemoveEvents[0].timestamp >= 2500,
- ).length,
+ stylesheetRemoveEvents.filter((e) => e.timestamp - stylesheetRemoveEvents[0].timestamp >= 2500).length,
);
});
diff --git a/test/utils.ts b/test/utils.ts
index ebf079f8..b83ee31e 100644
--- a/test/utils.ts
+++ b/test/utils.ts
@@ -61,7 +61,7 @@ function stringifySnapshots(snapshots: eventWithTime[]): string {
s.data.href = 'about:blank';
}
// FIXME: travis coordinates seems different with my laptop
- const coordinatesReg = /(bottom|top|left|right|width|height): \d+(\.\d+)?px/g
+ const coordinatesReg = /(bottom|top|left|right)/;
if (
s.type === EventType.IncrementalSnapshot &&
s.data.source === IncrementalSource.MouseInteraction
@@ -78,7 +78,7 @@ function stringifySnapshots(snapshots: eventWithTime[]): string {
'style' in a.attributes &&
coordinatesReg.test(a.attributes.style!)
) {
- a.attributes.style = a.attributes.style!.replace(coordinatesReg, '$1: Npx');
+ delete a.attributes.style;
}
});
s.data.adds.forEach((add) => {
@@ -88,7 +88,7 @@ function stringifySnapshots(snapshots: eventWithTime[]): string {
typeof add.node.attributes.style === 'string' &&
coordinatesReg.test(add.node.attributes.style)
) {
- add.node.attributes.style = add.node.attributes.style.replace(coordinatesReg, '$1: Npx');
+ delete add.node.attributes.style;
}
});
}
diff --git a/typings/record/iframe-manager.d.ts b/typings/record/iframe-manager.d.ts
deleted file mode 100644
index 4300a7ab..00000000
--- a/typings/record/iframe-manager.d.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-import { serializedNodeWithId, INode } from 'rrweb-snapshot';
-import { mutationCallBack } from '../types';
-export declare class IframeManager {
- private iframes;
- private mutationCb;
- private loadListener?;
- constructor(options: {
- mutationCb: mutationCallBack;
- });
- addIframe(iframeEl: HTMLIFrameElement): void;
- addLoadListener(cb: (iframeEl: HTMLIFrameElement) => unknown): void;
- attachIframe(iframeEl: INode, childSn: serializedNodeWithId): void;
-}
diff --git a/typings/record/mutation.d.ts b/typings/record/mutation.d.ts
index abd3aeb0..3584a0ff 100644
--- a/typings/record/mutation.d.ts
+++ b/typings/record/mutation.d.ts
@@ -1,9 +1,7 @@
import { MaskInputOptions, SlimDOMOptions } from '../snapshot';
import { mutationRecord, blockClass, mutationCallBack } from '../types';
-import { IframeManager } from './iframe-manager';
export default class MutationBuffer {
private frozen;
- private locked;
private texts;
private attributes;
private removes;
@@ -20,14 +18,10 @@ export default class MutationBuffer {
private recordCanvas;
private enableStrictPrivacy;
private slimDOMOptions;
- private doc;
- private iframeManager;
- init(cb: mutationCallBack, blockClass: blockClass, blockSelector: string | null, inlineStylesheet: boolean, maskInputOptions: MaskInputOptions, recordCanvas: boolean, slimDOMOptions: SlimDOMOptions, doc: Document, iframeManager: IframeManager, enableStrictPrivacy: boolean): void;
+ init(cb: mutationCallBack, blockClass: blockClass, blockSelector: string | null, inlineStylesheet: boolean, maskInputOptions: MaskInputOptions, recordCanvas: boolean, slimDOMOptions: SlimDOMOptions, enableStrictPrivacy: boolean): void;
freeze(): void;
unfreeze(): void;
isFrozen(): boolean;
- lock(): void;
- unlock(): void;
processMutations: (mutations: mutationRecord[]) => void;
emit: () => void;
private processMutation;
diff --git a/typings/record/observer.d.ts b/typings/record/observer.d.ts
index 60eb7178..99587378 100644
--- a/typings/record/observer.d.ts
+++ b/typings/record/observer.d.ts
@@ -1,5 +1,5 @@
import { observerParam, listenerHandler, hooksParam } from '../types';
import MutationBuffer from './mutation';
-export declare const mutationBuffers: MutationBuffer[];
+export declare const mutationBuffer: MutationBuffer;
export declare const INPUT_TAGS: string[];
export declare function initObservers(o: observerParam, hooks?: hooksParam): listenerHandler;
diff --git a/typings/replay/index.d.ts b/typings/replay/index.d.ts
index e7fb59a1..696cadfd 100644
--- a/typings/replay/index.d.ts
+++ b/typings/replay/index.d.ts
@@ -20,7 +20,6 @@ export declare class Replayer {
private fragmentParentMap;
private elementStateMap;
private imageMap;
- private newDocumentQueue;
constructor(events: Array, config?: Partial);
on(event: string, handler: Handler): this;
setConfig(config: Partial): void;
@@ -40,9 +39,6 @@ export declare class Replayer {
private getCastFn;
private handleInactivity;
private rebuildFullSnapshot;
- private insertStyleRules;
- private attachDocumentToIframe;
- private collectIframeAndAttachDocument;
private waitForStylesheetLoad;
private preloadAllImages;
private applyIncremental;
diff --git a/typings/types.d.ts b/typings/types.d.ts
index 0b44d0c8..4a0f4cc8 100644
--- a/typings/types.d.ts
+++ b/typings/types.d.ts
@@ -1,503 +1,433 @@
///
-import {
- serializedNodeWithId,
- idNodeMap,
- INode,
- MaskInputOptions,
- SlimDOMOptions,
-} from './snapshot';
+import { serializedNodeWithId, idNodeMap, INode, MaskInputOptions, SlimDOMOptions } from './snapshot';
import { PackFn, UnpackFn } from './packer/base';
import { FontFaceDescriptors } from 'css-font-loading-module';
-import { IframeManager } from './record/iframe-manager';
export declare enum EventType {
- DomContentLoaded = 0,
- Load = 1,
- FullSnapshot = 2,
- IncrementalSnapshot = 3,
- Meta = 4,
- Custom = 5,
+ DomContentLoaded = 0,
+ Load = 1,
+ FullSnapshot = 2,
+ IncrementalSnapshot = 3,
+ Meta = 4,
+ Custom = 5
}
export declare type SessionInterval = {
- startTime: number;
- endTime: number;
- duration: number;
- active: boolean;
+ startTime: number;
+ endTime: number;
+ duration: number;
+ active: boolean;
};
export declare type domContentLoadedEvent = {
- type: EventType.DomContentLoaded;
- data: {};
+ type: EventType.DomContentLoaded;
+ data: {};
};
export declare type loadedEvent = {
- type: EventType.Load;
- data: {};
+ type: EventType.Load;
+ data: {};
};
export declare type fullSnapshotEvent = {
- type: EventType.FullSnapshot;
- data: {
- node: serializedNodeWithId;
- initialOffset: {
- top: number;
- left: number;
+ type: EventType.FullSnapshot;
+ data: {
+ node: serializedNodeWithId;
+ initialOffset: {
+ top: number;
+ left: number;
+ };
};
- };
};
export declare type incrementalSnapshotEvent = {
- type: EventType.IncrementalSnapshot;
- data: incrementalData;
+ type: EventType.IncrementalSnapshot;
+ data: incrementalData;
};
export declare type metaEvent = {
- type: EventType.Meta;
- data: {
- href: string;
- width: number;
- height: number;
- };
+ type: EventType.Meta;
+ data: {
+ href: string;
+ width: number;
+ height: number;
+ };
};
export declare type logEvent = {
- type: EventType.IncrementalSnapshot;
- data: incrementalData;
+ type: EventType.IncrementalSnapshot;
+ data: incrementalData;
};
export declare type customEvent = {
- type: EventType.Custom;
- data: {
- tag: string;
- payload: T;
- };
+ type: EventType.Custom;
+ data: {
+ tag: string;
+ payload: T;
+ };
};
export declare type styleSheetEvent = {};
export declare enum IncrementalSource {
- Mutation = 0,
- MouseMove = 1,
- MouseInteraction = 2,
- Scroll = 3,
- ViewportResize = 4,
- Input = 5,
- TouchMove = 6,
- MediaInteraction = 7,
- StyleSheetRule = 8,
- CanvasMutation = 9,
- Font = 10,
- Log = 11,
+ Mutation = 0,
+ MouseMove = 1,
+ MouseInteraction = 2,
+ Scroll = 3,
+ ViewportResize = 4,
+ Input = 5,
+ TouchMove = 6,
+ MediaInteraction = 7,
+ StyleSheetRule = 8,
+ CanvasMutation = 9,
+ Font = 10,
+ Log = 11
}
export declare type mutationData = {
- source: IncrementalSource.Mutation;
+ source: IncrementalSource.Mutation;
} & mutationCallbackParam;
export declare type mousemoveData = {
- source: IncrementalSource.MouseMove | IncrementalSource.TouchMove;
- positions: mousePosition[];
+ source: IncrementalSource.MouseMove | IncrementalSource.TouchMove;
+ positions: mousePosition[];
};
export declare type mouseInteractionData = {
- source: IncrementalSource.MouseInteraction;
+ source: IncrementalSource.MouseInteraction;
} & mouseInteractionParam;
export declare type scrollData = {
- source: IncrementalSource.Scroll;
+ source: IncrementalSource.Scroll;
} & scrollPosition;
export declare type viewportResizeData = {
- source: IncrementalSource.ViewportResize;
-} & viewportResizeDimension;
+ source: IncrementalSource.ViewportResize;
+} & viewportResizeDimention;
export declare type inputData = {
- source: IncrementalSource.Input;
- id: number;
+ source: IncrementalSource.Input;
+ id: number;
} & inputValue;
export declare type mediaInteractionData = {
- source: IncrementalSource.MediaInteraction;
+ source: IncrementalSource.MediaInteraction;
} & mediaInteractionParam;
export declare type styleSheetRuleData = {
- source: IncrementalSource.StyleSheetRule;
+ source: IncrementalSource.StyleSheetRule;
} & styleSheetRuleParam;
export declare type canvasMutationData = {
- source: IncrementalSource.CanvasMutation;
+ source: IncrementalSource.CanvasMutation;
} & canvasMutationParam;
export declare type fontData = {
- source: IncrementalSource.Font;
+ source: IncrementalSource.Font;
} & fontParam;
export declare type logData = {
- source: IncrementalSource.Log;
+ source: IncrementalSource.Log;
} & LogParam;
-export declare type incrementalData =
- | mutationData
- | mousemoveData
- | mouseInteractionData
- | scrollData
- | viewportResizeData
- | inputData
- | mediaInteractionData
- | styleSheetRuleData
- | canvasMutationData
- | fontData
- | logData;
-export declare type event =
- | domContentLoadedEvent
- | loadedEvent
- | fullSnapshotEvent
- | incrementalSnapshotEvent
- | metaEvent
- | logEvent
- | customEvent;
+export declare type incrementalData = mutationData | mousemoveData | mouseInteractionData | scrollData | viewportResizeData | inputData | mediaInteractionData | styleSheetRuleData | canvasMutationData | fontData | logData;
+export declare type event = domContentLoadedEvent | loadedEvent | fullSnapshotEvent | incrementalSnapshotEvent | metaEvent | logEvent | customEvent;
export declare type eventWithTime = event & {
- timestamp: number;
- delay?: number;
+ timestamp: number;
+ delay?: number;
};
export declare type blockClass = string | RegExp;
export declare type SamplingStrategy = Partial<{
- mousemove: boolean | number;
- mousemoveCallback: number;
- mouseInteraction: boolean | Record;
- scroll: number;
- input: 'all' | 'last';
+ mousemove: boolean | number;
+ mouseInteraction: boolean | Record;
+ scroll: number;
+ input: 'all' | 'last';
}>;
export declare type recordOptions = {
- emit?: (e: T, isCheckout?: boolean) => void;
- checkoutEveryNth?: number;
- checkoutEveryNms?: number;
- blockClass?: blockClass;
- blockSelector?: string;
- ignoreClass?: string;
- maskAllInputs?: boolean;
- maskInputOptions?: MaskInputOptions;
- maskInputFn?: MaskInputFn;
- slimDOMOptions?: SlimDOMOptions | 'all' | true;
- inlineStylesheet?: boolean;
- hooks?: hooksParam;
- packFn?: PackFn;
- sampling?: SamplingStrategy;
- recordCanvas?: boolean;
- collectFonts?: boolean;
- mousemoveWait?: number;
- recordLog?: boolean | LogRecordOptions;
- debug?: boolean;
- enableStrictPrivacy?: boolean;
+ emit?: (e: T, isCheckout?: boolean) => void;
+ checkoutEveryNth?: number;
+ checkoutEveryNms?: number;
+ blockClass?: blockClass;
+ blockSelector?: string;
+ ignoreClass?: string;
+ maskAllInputs?: boolean;
+ maskInputOptions?: MaskInputOptions;
+ maskInputFn?: MaskInputFn;
+ slimDOMOptions?: SlimDOMOptions | 'all' | true;
+ inlineStylesheet?: boolean;
+ hooks?: hooksParam;
+ packFn?: PackFn;
+ sampling?: SamplingStrategy;
+ recordCanvas?: boolean;
+ collectFonts?: boolean;
+ mousemoveWait?: number;
+ recordLog?: boolean | LogRecordOptions;
+ debug?: boolean;
+ enableStrictPrivacy?: boolean;
};
export declare type observerParam = {
- mutationCb: mutationCallBack;
- mousemoveCb: mousemoveCallBack;
- mouseInteractionCb: mouseInteractionCallBack;
- scrollCb: scrollCallback;
- viewportResizeCb: viewportResizeCallback;
- inputCb: inputCallback;
- mediaInteractionCb: mediaInteractionCallback;
- blockClass: blockClass;
- blockSelector: string | null;
- ignoreClass: string;
- maskInputOptions: MaskInputOptions;
- maskInputFn?: MaskInputFn;
- inlineStylesheet: boolean;
- styleSheetRuleCb: styleSheetRuleCallback;
- canvasMutationCb: canvasMutationCallback;
- fontCb: fontCallback;
- logCb: logCallback;
- logOptions: LogRecordOptions;
- sampling: SamplingStrategy;
- recordCanvas: boolean;
- collectFonts: boolean;
- slimDOMOptions: SlimDOMOptions;
- enableStrictPrivacy: boolean;
- doc: Document;
- iframeManager: IframeManager;
+ mutationCb: mutationCallBack;
+ mousemoveCb: mousemoveCallBack;
+ mouseInteractionCb: mouseInteractionCallBack;
+ scrollCb: scrollCallback;
+ viewportResizeCb: viewportResizeCallback;
+ inputCb: inputCallback;
+ mediaInteractionCb: mediaInteractionCallback;
+ blockClass: blockClass;
+ blockSelector: string | null;
+ ignoreClass: string;
+ maskInputOptions: MaskInputOptions;
+ maskInputFn?: MaskInputFn;
+ inlineStylesheet: boolean;
+ styleSheetRuleCb: styleSheetRuleCallback;
+ canvasMutationCb: canvasMutationCallback;
+ fontCb: fontCallback;
+ logCb: logCallback;
+ logOptions: LogRecordOptions;
+ sampling: SamplingStrategy;
+ recordCanvas: boolean;
+ collectFonts: boolean;
+ slimDOMOptions: SlimDOMOptions;
+ enableStrictPrivacy: boolean;
};
export declare type hooksParam = {
- mutation?: mutationCallBack;
- mousemove?: mousemoveCallBack;
- mouseInteraction?: mouseInteractionCallBack;
- scroll?: scrollCallback;
- viewportResize?: viewportResizeCallback;
- input?: inputCallback;
- mediaInteaction?: mediaInteractionCallback;
- styleSheetRule?: styleSheetRuleCallback;
- canvasMutation?: canvasMutationCallback;
- font?: fontCallback;
- log?: logCallback;
+ mutation?: mutationCallBack;
+ mousemove?: mousemoveCallBack;
+ mouseInteraction?: mouseInteractionCallBack;
+ scroll?: scrollCallback;
+ viewportResize?: viewportResizeCallback;
+ input?: inputCallback;
+ mediaInteaction?: mediaInteractionCallback;
+ styleSheetRule?: styleSheetRuleCallback;
+ canvasMutation?: canvasMutationCallback;
+ font?: fontCallback;
+ log?: logCallback;
};
export declare type mutationRecord = {
- type: string;
- target: Node;
- oldValue: string | null;
- addedNodes: NodeList;
- removedNodes: NodeList;
- attributeName: string | null;
+ type: string;
+ target: Node;
+ oldValue: string | null;
+ addedNodes: NodeList;
+ removedNodes: NodeList;
+ attributeName: string | null;
};
export declare type textCursor = {
- node: Node;
- value: string | null;
+ node: Node;
+ value: string | null;
};
export declare type textMutation = {
- id: number;
- value: string | null;
+ id: number;
+ value: string | null;
};
export declare type attributeCursor = {
- node: Node;
- attributes: {
- [key: string]: string | null;
- };
+ node: Node;
+ attributes: {
+ [key: string]: string | null;
+ };
};
export declare type attributeMutation = {
- id: number;
- attributes: {
- [key: string]: string | null;
- };
+ id: number;
+ attributes: {
+ [key: string]: string | null;
+ };
};
export declare type removedNodeMutation = {
- parentId: number;
- id: number;
+ parentId: number;
+ id: number;
};
export declare type addedNodeMutation = {
- parentId: number;
- previousId?: number | null;
- nextId: number | null;
- node: serializedNodeWithId;
+ parentId: number;
+ previousId?: number | null;
+ nextId: number | null;
+ node: serializedNodeWithId;
};
declare type mutationCallbackParam = {
- texts: textMutation[];
- attributes: attributeMutation[];
- removes: removedNodeMutation[];
- adds: addedNodeMutation[];
+ texts: textMutation[];
+ attributes: attributeMutation[];
+ removes: removedNodeMutation[];
+ adds: addedNodeMutation[];
};
export declare type mutationCallBack = (m: mutationCallbackParam) => void;
-export declare type mousemoveCallBack = (
- p: mousePosition[],
- source: IncrementalSource.MouseMove | IncrementalSource.TouchMove,
-) => void;
+export declare type mousemoveCallBack = (p: mousePosition[], source: IncrementalSource.MouseMove | IncrementalSource.TouchMove) => void;
export declare type mousePosition = {
- x: number;
- y: number;
- id: number;
- timeOffset: number;
+ x: number;
+ y: number;
+ id: number;
+ timeOffset: number;
};
export declare enum MouseInteractions {
- MouseUp = 0,
- MouseDown = 1,
- Click = 2,
- ContextMenu = 3,
- DblClick = 4,
- Focus = 5,
- Blur = 6,
- TouchStart = 7,
- TouchMove_Departed = 8,
- TouchEnd = 9,
+ MouseUp = 0,
+ MouseDown = 1,
+ Click = 2,
+ ContextMenu = 3,
+ DblClick = 4,
+ Focus = 5,
+ Blur = 6,
+ TouchStart = 7,
+ TouchMove_Departed = 8,
+ TouchEnd = 9
}
declare type mouseInteractionParam = {
- type: MouseInteractions;
- id: number;
- x: number;
- y: number;
-};
-export declare type mouseInteractionCallBack = (
- d: mouseInteractionParam,
-) => void;
+ type: MouseInteractions;
+ id: number;
+ x: number;
+ y: number;
+};
+export declare type mouseInteractionCallBack = (d: mouseInteractionParam) => void;
export declare type scrollPosition = {
- id: number;
- x: number;
- y: number;
+ id: number;
+ x: number;
+ y: number;
};
export declare type scrollCallback = (p: scrollPosition) => void;
export declare type styleSheetAddRule = {
- rule: string;
- index?: number;
+ rule: string;
+ index?: number;
};
export declare type styleSheetDeleteRule = {
- index: number;
+ index: number;
};
export declare type styleSheetRuleParam = {
- id: number;
- removes?: styleSheetDeleteRule[];
- adds?: styleSheetAddRule[];
+ id: number;
+ removes?: styleSheetDeleteRule[];
+ adds?: styleSheetAddRule[];
};
export declare type styleSheetRuleCallback = (s: styleSheetRuleParam) => void;
export declare type canvasMutationCallback = (p: canvasMutationParam) => void;
export declare type canvasMutationParam = {
- id: number;
- property: string;
- args: Array;
- setter?: true;
+ id: number;
+ property: string;
+ args: Array;
+ setter?: true;
};
export declare type fontParam = {
- family: string;
- fontSource: string;
- buffer: boolean;
- descriptors?: FontFaceDescriptors;
-};
-export declare type LogLevel =
- | 'assert'
- | 'clear'
- | 'count'
- | 'countReset'
- | 'debug'
- | 'dir'
- | 'dirxml'
- | 'error'
- | 'group'
- | 'groupCollapsed'
- | 'groupEnd'
- | 'info'
- | 'log'
- | 'table'
- | 'time'
- | 'timeEnd'
- | 'timeLog'
- | 'trace'
- | 'warn';
+ family: string;
+ fontSource: string;
+ buffer: boolean;
+ descriptors?: FontFaceDescriptors;
+};
+export declare type LogLevel = 'assert' | 'clear' | 'count' | 'countReset' | 'debug' | 'dir' | 'dirxml' | 'error' | 'group' | 'groupCollapsed' | 'groupEnd' | 'info' | 'log' | 'table' | 'time' | 'timeEnd' | 'timeLog' | 'trace' | 'warn';
export declare type Logger = {
- assert?: (value: any, message?: string, ...optionalParams: any[]) => void;
- clear?: () => void;
- count?: (label?: string) => void;
- countReset?: (label?: string) => void;
- debug?: (message?: any, ...optionalParams: any[]) => void;
- dir?: (obj: any, options?: NodeJS.InspectOptions) => void;
- dirxml?: (...data: any[]) => void;
- error?: (message?: any, ...optionalParams: any[]) => void;
- group?: (...label: any[]) => void;
- groupCollapsed?: (label?: any[]) => void;
- groupEnd?: () => void;
- info?: (message?: any, ...optionalParams: any[]) => void;
- log?: (message?: any, ...optionalParams: any[]) => void;
- table?: (tabularData: any, properties?: ReadonlyArray) => void;
- time?: (label?: string) => void;
- timeEnd?: (label?: string) => void;
- timeLog?: (label?: string, ...data: any[]) => void;
- trace?: (message?: any, ...optionalParams: any[]) => void;
- warn?: (message?: any, ...optionalParams: any[]) => void;
-};
-export declare type ReplayLogger = Partial<
- Record void>
->;
+ assert?: (value: any, message?: string, ...optionalParams: any[]) => void;
+ clear?: () => void;
+ count?: (label?: string) => void;
+ countReset?: (label?: string) => void;
+ debug?: (message?: any, ...optionalParams: any[]) => void;
+ dir?: (obj: any, options?: NodeJS.InspectOptions) => void;
+ dirxml?: (...data: any[]) => void;
+ error?: (message?: any, ...optionalParams: any[]) => void;
+ group?: (...label: any[]) => void;
+ groupCollapsed?: (label?: any[]) => void;
+ groupEnd?: () => void;
+ info?: (message?: any, ...optionalParams: any[]) => void;
+ log?: (message?: any, ...optionalParams: any[]) => void;
+ table?: (tabularData: any, properties?: ReadonlyArray) => void;
+ time?: (label?: string) => void;
+ timeEnd?: (label?: string) => void;
+ timeLog?: (label?: string, ...data: any[]) => void;
+ trace?: (message?: any, ...optionalParams: any[]) => void;
+ warn?: (message?: any, ...optionalParams: any[]) => void;
+};
+export declare type ReplayLogger = Partial void>>;
export declare type LogParam = {
- level: LogLevel;
- trace: Array;
- payload: Array;
+ level: LogLevel;
+ trace: Array;
+ payload: Array;
};
export declare type fontCallback = (p: fontParam) => void;
export declare type logCallback = (p: LogParam) => void;
-export declare type viewportResizeDimension = {
- width: number;
- height: number;
+export declare type viewportResizeDimention = {
+ width: number;
+ height: number;
};
-export declare type viewportResizeCallback = (
- d: viewportResizeDimension,
-) => void;
+export declare type viewportResizeCallback = (d: viewportResizeDimention) => void;
export declare type inputValue = {
- text: string;
- isChecked: boolean;
+ text: string;
+ isChecked: boolean;
};
-export declare type inputCallback = (
- v: inputValue & {
+export declare type inputCallback = (v: inputValue & {
id: number;
- },
-) => void;
+}) => void;
export declare const enum MediaInteractions {
- Play = 0,
- Pause = 1,
+ Play = 0,
+ Pause = 1
}
export declare type mediaInteractionParam = {
- type: MediaInteractions;
- id: number;
-};
-export declare type mediaInteractionCallback = (
- p: mediaInteractionParam,
-) => void;
-export declare type DocumentDimension = {
- x: number;
- y: number;
- relativeScale: number;
- absoluteScale: number;
+ type: MediaInteractions;
+ id: number;
};
+export declare type mediaInteractionCallback = (p: mediaInteractionParam) => void;
export declare type Mirror = {
- map: idNodeMap;
- getId: (n: INode) => number;
- getNode: (id: number) => INode | null;
- removeNodeFromMap: (n: INode) => void;
- has: (id: number) => boolean;
+ map: idNodeMap;
+ getId: (n: INode) => number;
+ getNode: (id: number) => INode | null;
+ removeNodeFromMap: (n: INode) => void;
+ has: (id: number) => boolean;
};
export declare type throttleOptions = {
- leading?: boolean;
- trailing?: boolean;
+ leading?: boolean;
+ trailing?: boolean;
};
export declare type listenerHandler = () => void;
export declare type hookResetter = () => void;
export declare type playerConfig = {
- speed: number;
- root: Element;
- loadTimeout: number;
- skipInactive: boolean;
- showWarning: boolean;
- showDebug: boolean;
- blockClass: string;
- liveMode: boolean;
- insertStyleRules: string[];
- triggerFocus: boolean;
- UNSAFE_replayCanvas: boolean;
- pauseAnimation?: boolean;
- mouseTail:
- | boolean
- | {
+ speed: number;
+ root: Element;
+ loadTimeout: number;
+ skipInactive: boolean;
+ showWarning: boolean;
+ showDebug: boolean;
+ blockClass: string;
+ liveMode: boolean;
+ insertStyleRules: string[];
+ triggerFocus: boolean;
+ UNSAFE_replayCanvas: boolean;
+ pauseAnimation?: boolean;
+ mouseTail: boolean | {
duration?: number;
lineCap?: string;
lineWidth?: number;
strokeStyle?: string;
- };
- unpackFn?: UnpackFn;
- logConfig: LogReplayConfig;
- inactiveThreshold: number;
- inactiveSkipTime: number;
- maxSkipSpeed: number;
+ };
+ unpackFn?: UnpackFn;
+ logConfig: LogReplayConfig;
+ inactiveThreshold: number;
+ inactiveSkipTime: number;
+ maxSkipSpeed: number;
};
export declare type LogReplayConfig = {
- level?: Array | undefined;
- replayLogger: ReplayLogger | undefined;
+ level?: Array | undefined;
+ replayLogger: ReplayLogger | undefined;
};
export declare type playerMetaData = {
- startTime: number;
- endTime: number;
- totalTime: number;
+ startTime: number;
+ endTime: number;
+ totalTime: number;
};
export declare type missingNode = {
- node: Node;
- mutation: addedNodeMutation;
+ node: Node;
+ mutation: addedNodeMutation;
};
export declare type missingNodeMap = {
- [id: number]: missingNode;
+ [id: number]: missingNode;
};
export declare type actionWithDelay = {
- doAction: () => void;
- delay: number;
+ doAction: () => void;
+ delay: number;
};
export declare type Handler = (event?: unknown) => void;
export declare type Emitter = {
- on(type: string, handler: Handler): void;
- emit(type: string, event?: unknown): void;
- off(type: string, handler: Handler): void;
+ on(type: string, handler: Handler): void;
+ emit(type: string, event?: unknown): void;
+ off(type: string, handler: Handler): void;
};
-export declare type Arguments = T extends (...payload: infer U) => unknown
- ? U
- : unknown;
+export declare type Arguments = T extends (...payload: infer U) => unknown ? U : unknown;
export declare enum ReplayerEvents {
- Start = 'start',
- Pause = 'pause',
- Resume = 'resume',
- Resize = 'resize',
- Finish = 'finish',
- FullsnapshotRebuilded = 'fullsnapshot-rebuilded',
- LoadStylesheetStart = 'load-stylesheet-start',
- LoadStylesheetEnd = 'load-stylesheet-end',
- SkipStart = 'skip-start',
- SkipEnd = 'skip-end',
- MouseInteraction = 'mouse-interaction',
- EventCast = 'event-cast',
- CustomEvent = 'custom-event',
- Flush = 'flush',
- StateChange = 'state-change',
+ Start = "start",
+ Pause = "pause",
+ Resume = "resume",
+ Resize = "resize",
+ Finish = "finish",
+ FullsnapshotRebuilded = "fullsnapshot-rebuilded",
+ LoadStylesheetStart = "load-stylesheet-start",
+ LoadStylesheetEnd = "load-stylesheet-end",
+ SkipStart = "skip-start",
+ SkipEnd = "skip-end",
+ MouseInteraction = "mouse-interaction",
+ EventCast = "event-cast",
+ CustomEvent = "custom-event",
+ Flush = "flush",
+ StateChange = "state-change"
}
export declare type MaskInputFn = (text: string) => string;
export declare type ElementState = {
- scroll?: [number, number];
+ scroll?: [number, number];
};
export declare type StringifyOptions = {
- stringLengthLimit?: number;
- numOfKeysLimit: number;
+ stringLengthLimit?: number;
+ numOfKeysLimit: number;
};
export declare type LogRecordOptions = {
- level?: Array | undefined;
- lengthThreshold?: number;
- stringifyOptions?: StringifyOptions;
- logger?: Logger;
+ level?: Array | undefined;
+ lengthThreshold?: number;
+ stringifyOptions?: StringifyOptions;
+ logger?: Logger;
};
export {};
diff --git a/typings/utils.d.ts b/typings/utils.d.ts
index 1f6bca5a..3cf6fdc2 100644
--- a/typings/utils.d.ts
+++ b/typings/utils.d.ts
@@ -1,5 +1,5 @@
-import { Mirror, throttleOptions, listenerHandler, hookResetter, blockClass, eventWithTime, addedNodeMutation, removedNodeMutation, textMutation, attributeMutation, mutationData, scrollData, inputData, DocumentDimension } from './types';
-import { INode, serializedNodeWithId } from './snapshot';
+import { Mirror, throttleOptions, listenerHandler, hookResetter, blockClass, eventWithTime, addedNodeMutation, removedNodeMutation, textMutation, attributeMutation, mutationData, scrollData, inputData } from './types';
+import { INode } from './snapshot';
export declare function on(type: string, fn: EventListenerOrEventListenerObject, target?: Document | Window): listenerHandler;
export declare const mirror: Mirror;
export declare function throttle(func: (arg: T) => void, wait: number, options?: throttleOptions): (arg: T) => void;
@@ -53,13 +53,4 @@ declare type ResolveTree = {
};
export declare function queueToResolveTrees(queue: addedNodeMutation[]): ResolveTree[];
export declare function iterateResolveTree(tree: ResolveTree, cb: (mutation: addedNodeMutation) => unknown): void;
-declare type HTMLIFrameINode = HTMLIFrameElement & {
- __sn: serializedNodeWithId;
-};
-export declare type AppendedIframe = {
- mutationInQueue: addedNodeMutation;
- builtNode: HTMLIFrameINode;
-};
-export declare function isIframeINode(node: INode): node is HTMLIFrameINode;
-export declare function getBaseDimension(node: Node, rootIframe: Node): DocumentDimension;
export {};
diff --git a/yarn.lock b/yarn.lock
index fcc9987a..6547317c 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1792,11 +1792,6 @@ estree-walker@^0.6.0, estree-walker@^0.6.1:
resolved "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.1.tgz"
integrity sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==
-estree-walker@^2.0.1:
- version "2.0.2"
- resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-2.0.2.tgz#52f010178c2a4c117a7757cfe942adb7d2da4cac"
- integrity sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==
-
esutils@^2.0.2:
version "2.0.3"
resolved "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz"
@@ -2018,9 +2013,9 @@ fd-slicer@~1.1.0:
pend "~1.2.0"
fflate@^0.4.4:
- version "0.4.4"
- resolved "https://registry.yarnpkg.com/fflate/-/fflate-0.4.4.tgz#b23c3f53a687bbce62a091af98f621ca7f68a191"
- integrity sha512-BBKysCIvETp1l5wTUvjCR+tfFmlvSWtzNZe3SkQN1xDeTD9dscGypw5NZEZIkyPazKGOnpaKFlMwOmuTgApiJQ==
+ version "0.4.8"
+ resolved "https://registry.npmjs.org/fflate/-/fflate-0.4.8.tgz"
+ integrity sha512-FJqqoDBR00Mdj9ppamLa/Y7vxm+PRmNWA67N846RvsoYVMKB4q3y/de5PA7gUmRMYK/8CMz2GDZQmCRN1wBcWA==
figures@^2.0.0:
version "2.0.0"
@@ -2156,10 +2151,10 @@ fsevents@^1.2.7:
bindings "^1.5.0"
nan "^2.12.1"
-fsevents@~2.1.2:
- version "2.1.3"
- resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.1.3.tgz#fb738703ae8d2f9fe900c33836ddebee8b97f23e"
- integrity sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==
+fsevents@~2.3.1:
+ version "2.3.2"
+ resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz"
+ integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==
function-bind@^1.1.1:
version "1.1.1"
@@ -3257,7 +3252,7 @@ lru-cache@^6.0.0:
dependencies:
yallist "^4.0.0"
-magic-string@^0.25.2, magic-string@^0.25.7:
+magic-string@^0.25.2:
version "0.25.7"
resolved "https://registry.npmjs.org/magic-string/-/magic-string-0.25.7.tgz"
integrity sha512-4CrMT5DOHTDk4HYDlzmwu4FVCcIYI8gauveasrdCu2IKIFOJ3f0v/8MDGJCDL9oD2ppz/Av1b0Nj345H9M+XIA==
@@ -4392,11 +4387,6 @@ preserve@^0.2.0:
resolved "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz"
integrity sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=
-prettier@2.2.1:
- version "2.2.1"
- resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5"
- integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==
-
pretty-format@^23.6.0:
version "23.6.0"
resolved "https://registry.npmjs.org/pretty-format/-/pretty-format-23.6.0.tgz"
@@ -4770,14 +4760,6 @@ rollup-plugin-postcss@^3.1.1:
safe-identifier "^0.4.1"
style-inject "^0.3.0"
-rollup-plugin-rename-node-modules@^1.1.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/rollup-plugin-rename-node-modules/-/rollup-plugin-rename-node-modules-1.1.0.tgz#c73de5fed61b997857993813a7053285e2cca2dd"
- integrity sha512-JpfsJ7NYI/4OdqWvZ/BY6fgjZb5j7sRFvHMv8EU0zrFiNUcW4ke9tw7WXImsHnjq7Bp3xv+UILRPpA7plOa38Q==
- dependencies:
- estree-walker "^2.0.1"
- magic-string "^0.25.7"
-
rollup-plugin-terser@^5.3.0:
version "5.3.1"
resolved "https://registry.npmjs.org/rollup-plugin-terser/-/rollup-plugin-terser-5.3.1.tgz"