Skip to content

Releases: tjtanjin/react-chatbotify

v2.0.0-beta.1

25 Jul 09:12
Compare
Choose a tag to compare

Note:
v2.0.0-beta.1 is a major release with breaking changes. All details are available in the migration guide.

v1.7.0

09 Jun 17:45
Compare
Choose a tag to compare

Added:

  • Added a new language property to the voice section for managing voice input language
  • Added a new flowStartTrigger property to the theme section for managing when flow starts

Fixed:

  • Fixed an issue where embedded chatbot notifications are played while chatbot is visible

Note:

This release has a minor breaking change for developers who are using advance custom paths. If you are currently initializing paths with ["start"], note that specifying the start block is no longer needed. This means you can simply use [] as shown in the updated custom paths example here.

v1.6.3

05 Jun 12:53
Compare
Choose a tag to compare

Fixed:

  • Fixed a rare issue where streaming of messages can sometimes cause undefined to appear.

v1.6.2

24 May 16:52
Compare
Choose a tag to compare

Added:

  • Added a new allowNewline property to the chatInput section which determines if user input can contain newline (\n)
  • The notifications feature is now properly supported for embedded chatbots and will chime only if the chatbot is scrolled out of view

Fixed:

  • Fixed an issue where voice detection may not be properly disabled while the chatbot is still streaming messages
  • Fixed an issue where shift + enter submits user input instead of attempting to add newline
  • Fixed an issue where newline is automatically converted to whitespace in user and bot bubbles

v1.6.1

19 May 12:20
Compare
Choose a tag to compare

Added:

  • Added a new showCount property to the notification section which allows showing/hiding of unread message count on the top right corner of chatbot button

Fixed:

  • Improved performance for streaming messages
  • Fixed an issue where streaming messages while dangerouslySetInnerHtml is set to true will pause briefly on encountering html tags
  • Fixed an issue where notification sound may occasionally chime when chatbot is embedded
  • Fixed an issue where textarea styles may be inconsistent when disabled/focused
  • Fixed an issue where the bot may crash on rare occasions when users spam the voice button
  • Fixed an issue where embedded chatbot will force input focus on new messages even when scrolled out of page view

v1.6.0

11 May 08:11
Compare
Choose a tag to compare

Added:

  • Added a new sensitiveInput configuration section to cater for sensitive information (refer to API documentation)
  • Added a new autoLoad property to the chatHistory section which allows chat history messages to be automatically loaded on start
  • Added a new dangerouslySetInnerHtml property to both userBubble and botBubble which allows setting of raw HTML content (use with caution)

Fixed:

  • Fixed several type definitions within the library itself
  • Fixed an issue where the load chat history button can appear distorted if given a long text string
  • Fixed an issue where some chat history messages may not be saved when using real-time stream
  • Fixed an issue where chat input textarea may resize when focused on some occasions
  • Fixed selection of emoji causing textarea to lose focus
  • Improved performance for saving chat history
  • Further reduced assets file size

Note:
This update contains significant additions which have been documented on the API documentation. You will also find new live examples for Sensitive Input and Markup Message. This will be one of the last few (if not the last) release before v2.0.0 arrives. Feel free to join discord to stay up to date!

v1.5.2

10 Apr 09:20
4ca546b
Compare
Choose a tag to compare

Added:

  • Added 2 new style props for chatInputAreaFocusedStyle and chatInputAreaDisabledStyle

Fixed:

  • Fixed a few instances where chat history options/checkboxes are not rendered correctly
  • Reduced notification sound file size

v1.5.1

30 Mar 09:01
Compare
Choose a tag to compare

Fixed:

  • Fixed an issue where library css file is not injected for commonjs users
  • Fixed an issue where tooltip mode may not be respected
  • Fixed an issue where option boxes do not stretch on much larger chatbot window width
  • Fixed an issue where overflowing text are not hidden for checkboxes/option boxes
  • Fixed an issue where if header section is used, then showAvatar is a required property
  • Fixed usage of oversized images (improves default chatbot load time!)

v1.5.0

28 Mar 18:59
Compare
Choose a tag to compare

Added:

  • Added a new animate option to both userBubble and botBubble to easily toggle animations on and off for them

Fixed:

  • Fixed an issue where empty chat bubbles from stream messages are being saved to chat history

Miscellaneous:

  • As of this version (1.5.0), it is no longer necessary to import react-chatbotify.css file in your projects (injected implicitly). Keeping the import statement will not cause any issues currently but this will be a breaking change in version 2.0.0. It is recommended to remove the import statement as soon as possible and the documentation website has also been updated to reflect this change.

v1.4.0

21 Mar 18:13
Compare
Choose a tag to compare

Added:

  • A new chatWindow section has been added into the Configurations category with the following default values:
    chatWindow: {
      showScrollbar: false,
      autoJumpToBottom: false,
      showMessagePrompt: true,
      messagePromptText: "New Messages ↓",
      messagePromptOffset: 30,
    }
    
    Explanations for what each property does can be found on the documentation website.

Fixed:

  • Fixed an occasional issue where stream messages do not autoscroll when user is at the bottom of the chat
  • Fixed an issue where users can interrupt the start block if it is streaming
  • Fixed a bug where users can pinch-zoom the chat window on mobile devices to cause it to be distorted
  • Fixed a rare bug where the chat window could be scrolled out of view
  • Fixed a longstanding issue where playing notification sounds on mobile devices causes media controls to appear in notifications tray

Note:

Initially planned for only bug fixes, I eventually added a whole new chatWindow section simply because I felt there were many small areas that could use enhancements (hiding the scrollbar, showing new message prompts instead of forcing users to the bottom etc). This led to version 1.4.0 which was entirely focused on cleaning up the imperfections from the several changes that have been made in the last few releases.