Commit Graph

932 Commits

Author SHA1 Message Date
Yun Feng
5ec7d9e740 fix: custom style rules don't get inserted into some iframe elements (#823)
* fix: custom style rules don't get inserted into some iframe elements

* code style tweak
2022-02-03 19:58:01 +08:00
Yun Feng
c1111ed79d disable smooth scroll behavior in sync mode (#824) 2022-02-03 19:53:33 +08:00
Cristi Constantin
b0dc3885d9 Fixes and tweaks (#795)
* Implemented image restore from rr_dataURL

* Implement saving images in the snapshot

* Fixed image saving, added a test

* Rename data-src to data-rrweb-src

* Updated the guide

* Rename recordImages to inlineImages and try catch

* A fix, some tweaks and 2 new log warnings

* Handle CORS errors when reading CSS rules

* Fix after merge

* Improve try catch for the inline image

* PR comments tweaks

* Fix typescript lint

* Small tweaks

* Fix a log warning
2022-01-28 10:26:23 +08:00
Gabriel Stellini
a5d1215bd1 Update css-font-loading-module (#784)
Co-authored-by: Gabriel Stellini <gabriel.stellini@fusonic.net>
2022-01-27 22:55:38 +08:00
Yun Feng
156b760a33 feat: add observer for 'selected' setter of HTMLOptionElement and try to fix issue #746 (#810)
* feat: add observer for 'selected' setter of HTMLOptionElement and try to fix issue #746

* style: add description of mechanism
2022-01-26 13:54:39 +08:00
Yun Feng
0c27ad22b2 improve robustness of inlineImages feature (#812)
* fix: add inlineImages option to rrrweb recorder and try to make the code more robust

* Improve robustness
2022-01-25 09:56:57 +08:00
Yanzhen Yu
ca5ecba4eb chore(release): publish new version
- rrweb@1.1.1
 - rrweb-player@0.7.12
2022-01-24 23:44:16 +08:00
Yanzhen Yu
661c746b14 fix #811 expose inlineImages to record 2022-01-24 23:42:36 +08:00
dependabot[bot]
9ca3fdcd7d Bump node-fetch from 2.6.1 to 2.6.7 (#809)
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/main/docs/CHANGELOG.md)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-23 16:03:54 +08:00
dependabot[bot]
8aa9547577 Bump trim-off-newlines from 1.0.1 to 1.0.3 (#808)
Bumps [trim-off-newlines](https://github.com/stevemao/trim-off-newlines) from 1.0.1 to 1.0.3.
- [Release notes](https://github.com/stevemao/trim-off-newlines/releases)
- [Commits](https://github.com/stevemao/trim-off-newlines/compare/v1.0.1...v1.0.3)

---
updated-dependencies:
- dependency-name: trim-off-newlines
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-23 16:03:30 +08:00
Yanzhen Yu
e9ea287bc5 chore(release): publish new version
- rrdom@0.1.0
 - rrweb@1.1.0
 - rrweb-player@0.7.11
 - rrweb-snapshot@1.1.12
2022-01-23 15:53:54 +08:00
Yanzhen Yu
c788ba66e1 make sure emit EventCast after cast fn 2022-01-18 23:54:28 +08:00
Yanzhen Yu
fb8ea8e657 update plugin docs 2022-01-16 16:01:41 +08:00
yz-yu
a307c5c5bb impl #796 observe media volume change (#798) 2022-01-16 15:39:43 +08:00
Cristi Constantin
69a1b9ffe6 Save images offline, in the snapshot (#770)
* Implemented image restore from rr_dataURL

* Implement saving images in the snapshot

* Fixed image saving, added a test

* Rename data-src to data-rrweb-src

* Updated the guide

* Rename recordImages to inlineImages and try catch
2022-01-11 23:54:58 +08:00
Lucky Feng
320a454c49 rrdom (#613)
* create rrdom package

* test(rrdom): add unit tests for polyfill.ts

* fix(rrweb snapshot): type check errors

Errors are caused by the declaration similarity of @types/mocha and @types/jest if we install both of them in the whole project.

* Set tagNames to upper case by default

This mirrors the `Element.tagName` implementation:

```
For DOM trees which represent HTML documents, the returned tag name is always in the canonical upper-case form. For example, tagName called on a <div> element returns "DIV".
```
https://developer.mozilla.org/en-US/docs/Web/API/Element/tagName

* Add workspace file

* VSCode settings for rrdom tests

* Add basic test for RRDocument

* Only setup jest tests for rrdom

* mock Node type and Event type for nodejs environment

* test(rrdom): add snapshot for document.test.ts

* fix issue of nwsapi import and add unit tests for rrdom

* fix: querySelectorAll returns nothing when querying elements with ids and classNames

* fix: error of unit test for Event polyfill

Since Event class is built in nodejs after v15.0.0

* add a dummy implementation of canvas

* add style element support

* add unit test for style element

Co-authored-by: Justin Halsall <Juice10@users.noreply.github.com>
2022-01-11 23:15:57 +08:00
Justin Halsall
588b3d6f62 Add option to spoof url in repl (#786)
Really helps when experiencing CORS issues or when loading images in webgl
2022-01-04 09:42:19 +08:00
Yanzhen Yu
5a0a1353c5 fix lint 2021-12-26 20:46:17 +08:00
Yanzhen Yu
bdbd204103 chore(release): publish new version
- rrweb@1.0.8
 - rrweb-player@0.7.10
 - rrweb-snapshot@1.1.11
2021-12-23 23:07:03 +08:00
champ
88d3ac152c fix #783 (#785) 2021-12-23 17:40:03 +08:00
Yanzhen Yu
28cdbe7745 ignore invalid error event 2021-12-22 21:25:58 +08:00
Yanzhen Yu
3a6ef74a17 update test snapshot 2021-12-22 21:20:09 +08:00
John Pham
0439967789 Fix animations on pseudo-elements not pausing when replayer is paused (#776) 2021-12-22 21:18:39 +08:00
Michał Zarach
d7c37d9838 Added RemSupp logo (#774) 2021-12-20 10:04:02 +08:00
Yanzhen Yu
a07a97cfb6 close #736 #773
trigger meta update after add events
2021-12-15 15:05:17 +08:00
Eoghan Murray
ac592dc537 Fix bug where style.opacity was incorrectly deleted when style.opacity was set to zero (#765)
- this had the effect of making things visible which should have been invisible
 - not sure what I was thinking with 'potentially non-standard browsers', maybe I thought I was covering return values from getPropertyValue of null or false. Could potentially add explicit tests for null or false, but as there is no evidence for these non-standard browsers, leaving as-is
2021-12-10 01:26:43 +08:00
Cristi Constantin
ce9e97ffd2 Small regex fix for older browsers (#762) 2021-12-02 19:39:53 +08:00
Lucky Feng
f75679015d rrweb: replace onerror with addEventListener('error',handler) in the rrweb console plugin (#761) 2021-11-30 13:18:57 +08:00
Yanzhen Yu
1f267082cb update test snapshots 2021-11-16 02:37:48 +08:00
Yanzhen Yu
7223e929a3 chore(release): publish new version
- rrweb@1.0.7
 - rrweb-player@0.7.9
 - rrweb-snapshot@1.1.10
2021-11-16 02:27:22 +08:00
Yanzhen Yu
a01c97f70d try to read style sheet content from JS API 2021-11-16 02:26:49 +08:00
Yanzhen Yu
5066806e61 fix bundle config 2021-11-16 02:17:19 +08:00
Yanzhen Yu
78526a3aae fix #698, replay scroll on iframe document 2021-11-07 14:39:43 +08:00
Yanzhen Yu
3d5b43890e close #745, keep textarea text node clean 2021-11-07 10:52:46 +08:00
Justin Halsall
a261f3d4de add root scripts and update contribution guide (#750) 2021-11-06 09:00:07 +08:00
Yun Feng
e9c792265f doc: update two outdated links 2021-11-04 14:11:50 +08:00
Yanzhen Yu
18d66dca7c do not transform xlink:href when the value is an id
close #566, #741
2021-10-31 11:24:41 +08:00
Justin Halsall
e039b5ca74 Fix typo 2021-10-29 21:50:46 +08:00
Eoghan Murray
ad2ca9ee55 Don't throw away information about the iframe src (#733)
* Don't throw away information about the iframe src

* contentDocument is the important one as to whether we are recording an iframe directly
2021-10-26 00:04:44 +08:00
Justin Halsall
c021134ae0 Add Record Once (#740) 2021-10-25 19:24:22 +08:00
Kamil Walkowiak
d16bb35a5e added CUX logo (#739) 2021-10-25 19:07:37 +08:00
Eoghan Murray
da63418649 Add Statcounter logo (#738) 2021-10-23 23:06:14 +08:00
Omair Nabiel
e9405c560a fix: if handleProgressClick invoked after finished, start from where user clicked (#727) 2021-10-14 13:40:50 +08:00
Yanzhen Yu
3d378c157b update documentary to readme 2021-10-13 01:11:48 +08:00
Yanzhen Yu
5a2db77fd6 add changelog config 2021-10-13 01:09:14 +08:00
Yanzhen Yu
cabd5eb157 chore(release): publish new version
- rrweb@1.0.6
 - rrweb-player@0.7.8
 - rrweb-snapshot@1.1.9
2021-10-13 00:42:54 +08:00
谭光志
bcadd25f1f docs: 录制与回放时最常用的使用方式 -> 录制与回放是最常用的使用方式 (#729) 2021-10-13 00:22:56 +08:00
Justin Halsall
f410668e3f VSCode Workspace (#718)
* Add workspace file

* Only setup jest tests for rrdom

* Update .vscode/monorepo.code-workspace
2021-10-07 14:15:49 +08:00
yz-yu
6483a594ac update repl tools and script, close #338 (#722) 2021-10-07 14:14:58 +08:00
yz-yu
18e4356be9 migrate to jest (#721)
* migrate rrweb-snapshot tests to jest

* migrate rrweb tests to jest
2021-10-06 15:31:42 +08:00