From 982f9beb797fd6a7434ab7e4240cb612440bbdfe Mon Sep 17 00:00:00 2001 From: tjtanjin Date: Fri, 6 Sep 2024 01:55:40 +0800 Subject: [PATCH] docs: Update version and changelog --- CHANGELOG.md | 16 ++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b8b48938..8adf23d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # CHANGELOG.md +## v2.0.0-beta.8 (06-09-2024) + +**Fixed:** +- Fixed an issue where bot typing indicator is not shown when `params.goToPath` is used + +**Added:** +- A new `params.setTextAreaValue` has been added for users to directly set the text area value +- A new `params.injectToast` has been added for users to show toasts within the chatbot +- A new `toast` section has been added to `settings` which contains 3 properties (`maxCount`, `forbidOnMax` and `dismissOnClick`) along with 3 new additions to `styles` (`toastPromptContainerStyle`, `toastPromptStyle`, `toastPromptHoveredStyle`) +- The `checkboxes` block attribute now accepts an **array** of strings as well, and will populate `items` property with it (all other values defaulted) +- The `checkboxes` block attribute has 2 new properties `sendOutput` and `reusable`, which determines whether the selected checkboxes should be sent in chat and whether the checkboxes can be reused +- The `options` block attribute now accepts an **object** as well, accepting 3 properties which are `items`, `sendOutput` and `reusable` (current array input still works) + +**Note:** +This update adds on to and expands the `checkboxes` and `options` block attributes. There are **no breaking changes** but if users are keen to leverage on the new features, do refer to the [**attributes documentation**](https://react-chatbotify.com/docs/api/attributes). In addition, **2 new parameters** (`params.setTextAreaValue` and `params.injectToast`) have also been added which greatly enhances the capabilities of the chatbot and sets the groundwork for the impending events/plugins update. Details of their usage can be found in [**params documentation**](https://react-chatbotify.com/docs/api/params). + ## v2.0.0-beta.7 (01-09-2024) **Added:** diff --git a/package-lock.json b/package-lock.json index ff6d7670..3b7f4f3b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "react-chatbotify", - "version": "2.0.0-beta.7", + "version": "2.0.0-beta.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "react-chatbotify", - "version": "2.0.0-beta.7", + "version": "2.0.0-beta.8", "license": "MIT", "devDependencies": { "@types/dom-speech-recognition": "^0.0.4", diff --git a/package.json b/package.json index 0458fd5e..34c2d16c 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "files": [ "./dist" ], - "version": "2.0.0-beta.7", + "version": "2.0.0-beta.8", "description": "A modern React library for creating a flexible and extensible chatbot.", "type": "module", "main": "./dist/index.cjs",