v0.15.0
0.15.0 - 2020-10-27
Added
New webchat features:
- Added new
target
prop toButton
component to define the behavior to open links. - Added new
WhatsappTemplate
component for Webchat. - New
getBotonicApp()
to accessBotonic
methods. - Added a new webchat setting
storageKey
that indicates the key name to use in order to store the webchat state inlocalStorage
(orsessionStorage
).
- Added new
Improvements in Content.validate of text & shortText fields
- Validate text.text also if content has no keywords (it could be accessed through a button)
- Before, when shortText was empty, the contentful driver set it with the value of the name field (to ensure buttons did not show blank texts). Now this is managed by the Button model, so that MessageContent.validate() can report it.
- Improved ContentsValidator. Now it's possible to report the detected errors into a callback.
New CMS method to deliver content by id when the content type is unknown.
Added NLP support for German.
Changed
- Improved script to automatically bump versions for Botonic packages (it also updates references to other Botonic dependencies).
- Improved documentation
- Refactored and migrated NLU engine to Typescript. Read the new docs here.
- Allow passing properties to CoverComponent.
- Remove Webchat
user
references in favor ofsession.user
. - Improved types for Webchat and Webchat Context.
- Refactored and migrated plugin to Typescript. Read the new docs here.
Fixed
- Fixed imports in templates which were broken after 0.14.0 change in entry files.
- Added validation of templates and examples in CI
session
properties now are merged and updated correctly.- Avoid customMessage to crash if they have bad children. Some bots may store no-react objects in children.
- Fixed error appearing in some tests:
Received true for a non-boolean attribute markdown
. Caused by styled-components.