Commit Graph

1178 Commits

Author SHA1 Message Date
Yanzhen Yu
b22ccd6bc0 fix #14 fix innerText cap issue 2019-08-04 14:40:54 +08:00
Yanzhen Yu
61a99c642a Use css parser to add hover class name to selectors.
Previously we use a regexp to match all the CSS selectors and add
our hover class name to it, which has been proved not solid and
may be very slow in some situation.
Using a production ready css parser can handle this better and also
provide ability's to do more accurate things to the recorded
stylesheets.
2019-08-04 14:35:35 +08:00
shenchenxh
61a3c9f8f6 fix 100 (#102) 2019-07-26 16:21:02 +08:00
Yanzhen Yu
f78070a824 impl #81 custom event
This is the record side impl of custom event, according to the
issue, we may also add first-class support for the custom event
tag like display color labels in the replayer-ui.
2019-07-24 22:32:11 +08:00
dphuang2
b0ee3f8279 added 'pointer-events: none' for Replayer iframe (#96)
'pointer-events: none' prevents the user from interacting with the DOM
inside of the iframe. This prevents accidental tampering by a user when
watching replays such as link clicks or DOM manipulation.

pointer-events supported by 97.15% usage: https://caniuse.com/#feat=pointer-events
2019-07-19 13:24:55 +08:00
Yanzhen Yu
f620f11cb5 Release 0.7.18 2019-07-10 12:35:55 +08:00
肉肉肉肉
b569b84794 new feature: add custom style in replayer (#87)
* new feature: add custom style in replayer

* concat style rules for loop
2019-07-10 12:33:54 +08:00
Yanzhen Yu
df146eef95 Release 0.3.14 2019-06-23 20:08:41 +08:00
Yanzhen Yu
d172b70638 Release 0.3.12 2019-06-23 20:06:29 +08:00
Yanzhen Yu
682ac0e2b7 fix version number 2019-06-23 20:06:22 +08:00
Yanzhen Yu
a528fb2e46 Release 0.3.12 2019-06-23 20:04:42 +08:00
Yanzhen Yu
a8ee7ea3a2 Release 0.3.13 2019-06-23 20:04:30 +08:00
Yanzhen Yu
f887b1e773 Release 0.3.12 2019-06-23 20:04:30 +08:00
Yanzhen Yu
005bd6f4d1 update dependency 2019-06-23 20:04:30 +08:00
Yanzhen Yu
a255387230 Release 0.7.17 2019-06-22 23:03:49 +08:00
Yanzhen Yu
d43aa974f5 fix#71 fix touch event listener and throttle touch move callback 2019-06-17 18:07:30 +08:00
Yanzhen Yu
52ec5d435b pass mask input option to snapshot 2019-06-15 14:45:42 +08:00
Yanzhen Yu
0865c82948 Release 0.7.12 2019-06-15 14:41:47 +08:00
Yanzhen Yu
77c7053751 add mask all inputs option to snapshot 2019-06-15 14:41:36 +08:00
Yanzhen Yu
a51313d973 tweak some code for mask input option 2019-06-15 14:38:03 +08:00
Sebastian Jakob
189df87b9d Option to mask inputs (#80)
* Option to mask inputs

Added option 'maskAllInputs' to replace all user inputs with an Asterisk.

* Update types.d.ts
2019-06-15 12:52:08 +08:00
肉肉肉肉
63cb0d9592 fix translate second to second problem: formatTime function in utils/index.ts (#6) 2019-06-12 17:51:34 +08:00
Yanzhen Yu
3bd9bcfe73 Release 0.7.16 2019-06-05 17:33:44 +08:00
Yanzhen Yu
d32b31f3e3 remove mitt typings namesapce 2019-06-05 17:33:20 +08:00
Yanzhen Yu
6d3b9c2345 Upgrade the DOM mutation observer
This is an important patch contains some crtical bug fixes for
the DOM mutation observer.
Previously the observer did not handle complex DOM movement very
well. So in this patch we optimized this by distinguishing moved
node better and added a resolving queue to avoid the error caused
by ordering.
2019-06-05 16:39:29 +08:00
Marcos Passos
c1b8651c11 Export useful enums (#77)
Fixes #74
2019-05-31 23:25:44 +08:00
Yanzhen Yu
ac8ec4b24b Release 0.7.15 2019-05-31 15:29:04 +08:00
Yanzhen Yu
627ed9439b emit mouse interaction event during replay 2019-05-31 15:28:45 +08:00
Yanzhen Yu
7292f33767 Release 0.7.14 2019-05-26 16:07:06 +08:00
Yanzhen Yu
560fbea415 update rrweb-snapshot 2019-05-26 16:06:48 +08:00
Yanzhen Yu
df137a8f3b Release 0.7.11 2019-05-26 16:05:57 +08:00
Yanzhen Yu
40da9ffa2f format code 2019-05-26 16:05:47 +08:00
yz-yu
2398f5c0b1 start to support live mode (#73)
1. add a liveMode flag to config, when liveMode is set, the timer
will keep running even though all the actions casted
2. add a public method addEvent, which will cast newly added event
in sync
3. move mouse in sync mode with the latest position info
2019-05-26 16:02:52 +08:00
Razvan Sandu
9b0c92fd67 Allow rendering image tags inside svgs during replay (#13) 2019-05-23 18:18:10 +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
e8de7435eb Release 0.7.13 2019-05-12 21:10:52 +08:00
Yanzhen Yu
107296eee3 add the inline stylesheet option when recording 2019-05-12 21:10:34 +08:00
Yanzhen Yu
bb1fdac86c Release 0.7.10 2019-05-12 21:06:49 +08:00
Yanzhen Yu
0f30dc288c pass inline stylesheet option to iteratly 2019-05-12 21:06:38 +08:00
Yanzhen Yu
adaeed0227 fix #66 update npm files and dependencies 2019-05-12 16:06:43 +08:00
Yanzhen Yu
543cad60e0 Release 0.7.9 2019-05-12 16:04:45 +08:00
Yanzhen Yu
724b67f166 add inline option which can bypass the inline stylesheet 2019-05-12 16:04:14 +08:00
Whalefreezer
78c8c11e6b add support for css @import rules (#11) 2019-05-06 21:56:33 +08:00
Yanzhen Yu
5ccd6d374f Release 0.7.12 2019-04-14 16:12:41 +08:00
Yanzhen Yu
2d8d4b0c19 fix #62 accept RegExp type block class config 2019-04-14 16:11:54 +08:00
Yanzhen Yu
fe6627aed5 Release 0.7.8 2019-04-14 15:59:34 +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
171d7b39b6 accept RegExp type block class config 2019-04-14 15:55:34 +08:00
Yanzhen Yu
7ca1e36fdd Release 0.3.11 2019-04-09 22:11:13 +08:00