Commit Graph

24 Commits

Author SHA1 Message Date
Yanzhen Yu
d7668efbcf add iframe load timeout 2021-02-10 21:26:07 +08:00
yz-yu
98aa732d17 nested record iframe (#63)
* pick nested branch

* iframe snapshot

* temp: add bundle file to git

* revert ignore file

* refactor iframe impl
1. do callback one iframe is loaded, let rrweb handle the rest
2. handle iframe as normal element in rebuild

* rename hook function
2021-02-07 14:00:22 +08:00
Yanzhen Yu
852632656f refactoring public API 2020-11-29 13:22:01 +08:00
Yanzhen Yu
c489e06acf Release 0.8.4 2020-10-24 16:13:58 +08:00
Karl-Aksel Puulmann
036d3df692 Allow blocking elements by selector (#50)
* Extract method (isElementBlocked) and add tests

* Add blockSelector argument to snapshot

If blockSelector is passed, it will be matched against the element.

Reasoning: Mutating class names can get messy, so providing another hook
helps keep code clean by using data-attributes instead.
2020-10-24 16:11:39 +08:00
Eoghan Murray
14bdd67459 Add ability to reset the mapping id, to facilitate destructor in rrweb (rrwebRecord.stop) (#49) 2020-10-24 16:10:51 +08:00
Yanzhen Yu
57a124ff74 update typings 2020-10-04 20:48:51 +08:00
Yanzhen Yu
9d58205bf8 Release 0.8.1 2020-08-22 15:50:28 +08:00
Yanzhen Yu
3c406bd49f rename visit to visitSnapshot 2020-08-22 15:43:50 +08:00
吴泽康
f7d43f5fee Add nested scroll support (#31) 2020-07-25 15:05:45 +08:00
Yanzhen Yu
4199e55da1 Release 0.8.0 2020-07-18 13:58:27 +08:00
Yanzhen Yu
f6781fda04 Release 0.7.29 2020-07-18 13:52:42 +08:00
Yanzhen Yu
c206e100f1 Release 0.7.28 2020-07-18 13:32:36 +08:00
Yanzhen Yu
4118d32601 Release 0.7.25 2020-02-26 09:56:49 +08:00
Yanzhen Yu
a0dc9481b2 Release 0.7.21 2019-11-09 15:28:17 +08:00
Yanzhen Yu
7203517d15 Release 0.7.19 2019-09-19 12:41:12 +08:00
yz-yu
215aeeb6b1 add the HACK_CSS flag to bypass css parsing (#16) 2019-08-27 13:42:07 +08:00
Yanzhen Yu
e48d50a718 update typings 2019-08-04 14:48:22 +08:00
Yanzhen Yu
0865c82948 Release 0.7.12 2019-06-15 14:41:47 +08:00
Benoît Zugmeyer
5697c689d9 reuse serialized nodes ids (#12)
* reuse serialized nodes ids

With this patch, each DOM node keeps its id during its existence. This
allows to apply RRWeb events to previous snapshots if needed.

`resetId` has been removed because it loses its meaning: calling it
would not reset the existing nodes ids anymore, only the new ones.

Since we don't reset the id anymore, we may exhaust the available ids
quicker, but Number.MAX_SAFE_INTEGER (2 ** 53 - 1) is pretty large, so I
doubt this'll cause any problem.

* improv TS typing

The `nAsINode` variable was not very elegant.  Simplify this by removing
the cast, and make the INode interface compatible with Node.

* update typings
2019-05-21 17:55:43 +08:00
Yanzhen Yu
724b67f166 add inline option which can bypass the inline stylesheet 2019-05-12 16:04:14 +08:00
Yanzhen Yu
6218745a75 update typings 2019-04-14 15:59:22 +08:00
Yanzhen Yu
ea59841415 Release 0.7.7 2019-04-14 15:55:51 +08:00
Yanzhen Yu
f4ebd6b731 add typings autogen command 2019-04-01 11:47:49 +08:00