Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make block css class optional & fix test #6

Merged
merged 2 commits into from
Apr 1, 2019

Conversation

sammdec
Copy link
Contributor

@sammdec sammdec commented Dec 30, 2018

This allows a passing of a blockClass parameter to the snapshot function, it will default to rr-block if none is provided.

I have also fixed a broken spec by adding a class in the expected string.

This PR will fail until the above PR is merged. I can then bump the version in this package

Copy link
Member

@Yuyz0112 Yuyz0112 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

index.d.ts also need to be updated

@@ -197,9 +200,10 @@ export function serializeNodeWithId(
n: Node,
doc: Document,
map: idNodeMap,
blockClass: string,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now serializeNodeWithId has 5 params which I think it is a little hard for non-typescript users to use. How about refactoring it to one or two params which use object?

@Yuyz0112 Yuyz0112 mentioned this pull request Jan 3, 2019
@marcospassos
Copy link

We are also interested in this functionality.

@Yuyz0112 how can we help finish it?

@Yuyz0112 Yuyz0112 merged commit 03c9fde into rrweb-io:master Apr 1, 2019
@Yuyz0112
Copy link
Member

Yuyz0112 commented Apr 1, 2019

@marcospassos I just merged @samjbmason 's work and will address some code in the rrweb repo, then this feature will launch!

@marcospassos
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants