v0.14.0
0.14.0 - 2020-10-01
Added
- New bot template
dynamo
using Botonic dynamoDB plugin from a JS bot.
- New bot template
- Improved behavior when end user messages are lost due to connection issues. Missed inputs will be resent when connection is regained.
- End user messages will be displayed with less opacity until they are correctly delivered to the server.
- Added classNames to blob messages by default, under the following format:
{type}-{from} {customTypeName}
e.g.: Text messages from user ->text-user
e.g.: Custom messages from bot ->custom-bot my-custom-message-name
- Passing
mobileStyle
inwebchat/index.js
is now allowed. - Added arrow buttons for better interaction with Webchat Carousels. They can be customized.
- Disabling timestamps in the custom Messages using the
enableTimestamps
prop is now allowed. - Defined where to store the botonicState using the variable storage.
- The methods
openCoverComponent
,closeCoverComponent
andtoggleCoverComponent
are available in the browser, through the Botonic object, so that thecoverComponent
can be shown/hidden manually.
- Decorator for Contentful that can distribute the delivery requests amongst different spaces/environments.
- Added a new tool to modify the locales of Contentful spaces exported as json file with "contentful space export". The tool is able to change the name of a locale without altering the contents and to remove unwanted locales.
- Added a tool to duplicate the value of reference fields into a new locale. Reference fields (assets or links to other contents) will typically be the same for all locales, but not always. So we initially link them all to the same target for all locales. The tool is useful to migrate a space where fallback locales are used to another where locales have no fallback.
- The NLP package now supports locales whose name include the country (eg. es_ES).
- Added an option for Contentful plugin to be able to change the name of the locale when sent to Contentful.
- Added
logCall
flag tocontentfulOptions
in order to log creation configuration, as well as all calls performed to the CMS. - Added class ContentsValidator, which validates that all contents of a locale can be correctly delivered.
- Added NLP support for Turkish.
- Added NLP support for Italian.
- Added NLP support for French.
@botonic/plugin-google-analytics
- New Botonic plugin to track user interaction or bot's behaviour in Google Analytics.
Changed
- Upgraded typescript to 4.0.2.
- Upgraded eslint plugins and fixed new warnings.
- Improved documentation and reestructure.
- Improved
index.d.ts
definitions. - Breaking change: Added
/webpack-entries
to every template to ensure that Webpack's tree-shaking is done and modifiedwebpack.config.js
as a consequence. This reduces the bundle sizes of every bot. From developers upgrading their projects from version0.13.0
or below the following changes will be necessary:- Create a new directory called
webpack-entries
under bot project's root folder. Copydev-entry.js
,node-entry.js
,webchat-entry.js
andwebviews-entry.js
inside. You can find them here. - Modify the following lines in
webpack.config.js
:
- In
botonicDevConfig
modify the line forentry
to be:path.resolve('webpack-entries', 'dev-entry.js'),
- In
botonicWebchatConfig
modify the line forentry
to be:path.resolve('webpack-entries', 'webchat-entry.js'),
- In
botonicWebviewsConfig
modify the line forentry
to be:path.resolve('webpack-entries', 'webviews-entry.js'),
- In
botonicServerConfig
modify the line forentry
to be:path.resolve('webpack-entries', 'node-entry.js'),
- Create a new directory called
- Improved
- Improved
index.d.ts
definitions.
- Improved
- Refactored timestamps. They can be enabled by setting
theme.message.timestamps.enable
totrue
. (Default format will be as follows:29 Jun, 12:40:07
). The content can be formatted by defining a function undertheme.message.timestamps.format
which returns a string with the formatted date and their styles undertheme.message.timestamps.style
. - Improved
index.d.ts
definitions.
- Refactored timestamps. They can be enabled by setting
- @botonic/plugin-contentful
- Check empty text in Text contents.
Fixed
- Added the export of
getAvailableAgentsByQueue
, which was not accessible.
- Added the export of
- Removed
moment
dependency to reduce bundle size. - Closed
PersistentMenu
automatically when the end user clicks outside. - Fixed webchat properties not being properly read by deep merging properties.
- Disabled text input when
CoverComponent
is shown. - Added missing
animationsEnabled
prop. - Now Custom Message Types can be used together with the Reply component.
- Deactivated markdown in webchat when viewing messages using WhatsApp provider.
- Sending messages with only spaces is now avoided.
- Renamed theme property
hoverText
tohoverTextColor
in button.jsx so that changing the text color of a button on hover can work.
- Removed
- Fixed bug in Contentful Schedule, where schedule was miscalculating around midnight. It was not taking the timezone offset into account to calculate the weekday.