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

change reactrenderer component type definition #2327

Merged

Conversation

lukesmurray
Copy link
Contributor

This PR modifies the ReactRenderer types so that they are no longer tied to the mention example.

#2011 makes the ComponentType require items[] and a command in the props, but the ReactRenderer does not make the same assumption.

I think this should also make it possible to change the type of props in the ReactRenderer class to P, and similarly in the function definition for ReactRenderer.updateProps. But I wanted this to be a minimal change so I just fixed the issue in the ComponentType type definition.

@netlify
Copy link

netlify bot commented Dec 29, 2021

✔️ Deploy Preview for tiptap-embed ready!

🔨 Explore the source changes: 2534f54

🔍 Inspect the deploy log: https://app.netlify.com/sites/tiptap-embed/deploys/61cc85f43811e50007892da8

😎 Browse the preview: https://deploy-preview-2327--tiptap-embed.netlify.app

@philippkuehn
Copy link
Contributor

Looks good. Thanks!

@philippkuehn philippkuehn merged commit 64dfae8 into ueberdosis:main Jan 3, 2022
andrewlu0 pushed a commit to trybaseplate/tiptap that referenced this pull request Oct 20, 2023
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.

2 participants