Releases: alexmacarthur/typeit-react
Update TypeIt, Add TypeScript Support
- Updates TypeIt to v8 under the hood.
- Includes TypeScript types.
Fix Cursor Deletion Issue
This release address a bug causing cursor children to be deleted unexpected. It properly ignores these children, preventing the issue.
Fix <br> Deletion Bug
This release fixes a bug involving break tags being unexpectedly deleted when they shouldn't have been.
Update TypeIt
This version updates the TypeIt dependency to v7:
Properly Handle Void Elements
When elements were specified that are not allowed to have children (like input elements), an error was being thrown because the component assumed it was always possible for children to exist. This release checks if a provided element is void. If it is, render as though children can never exist.
Type Fully Rendered Children + More
This release allows children to fully render before initializing TypeIt, so the generated HTML can then be used in the instance. Additionally, props are introduced that provide you access to the instance before and after it's initialized.
Pretty Straightforward
A pretty straightforward React component wrapper for TypeIt.