Releases: cozimacode/react-bot
Releases · cozimacode/react-bot
v2.1.0
v2.0.1
Minor bug fixes
v2.0.0
This version contains breaking changes. Please be advised...
Highlights:
- ReactBot is now completely rewritten in typescript. Enjoy better type checking and catch errors before they happen. All the dependency vulnerabilities are addressed.
- Support for multiple bots now enabled.
- The bot now accepts a new
className
prop for better control over styling. - The methods
displayTypingEffect
andhideTypingEffect
are now passed as arguments tohandleUserInput
method and can be called as and when needed.
import React from "react";
import { ReactBot, addBotMessage } from "@cozimacode/react-bot";
import "@cozimacode/react-bot/dist/styles.css";
function Demo() {
const handleUserInput = (input, displayTypingEffect, hideTypingEffect) => {
displayTypingEffect();
addBotMessage('response from backend server')
hideTypingEffect();
}
return <ReactBot handleUserInput={handleUserInput} />;
}
export default Demo;
What's next?
- I am working on making the library more light in weight by code splitting and other necessary optimizations. You can expect lesser bundle sizes in the next release.
- I welcome all suggestions for improvements and feature requests. Please do let me know if you need something which this library doesn't have and I'll try my best to get it done.
v1.3.0
fixing dependency vulnerabilities
v1.2.2
- Minor npm audit fixes