Skip to content

Releases: hubtype/botonic

v0.26.0

v0.25.0

27 Mar 12:03
fad4514
Compare
Choose a tag to compare

v0.21.0

23 Mar 12:09
Compare
Choose a tag to compare

0.21.0 - 2023-03-09

Added

  • Project

    • Added @botonic/plugin-hubtype-babel: This plugin allows you to integrate Hubtype Babel in your Botonic project. It works like any other AI/NLU services plugin, like Dialogflow, Watson, etc.

Changed

Fixed

v0.20.0

28 Oct 14:04
5f6527e
Compare
Choose a tag to compare

0.20.0 - 2021-10-28

NOTE: At this moment, Botonic v0.20.0 will be in Mainteinance LTS status and will be maintained in master-lts branch until further notice.
Currently we are working on Botonic 1.0 which will come with several improvements and hence all its commits from now on will reside in master.

Added

Changed

  • @botonic/core

    • Distribute @botonic/core library with CJS and ESM versions to improve tree-shaking functionalities. #1826
    • Refactored @botonic/core from JS to TS. Reviewed and improved functionalities like retries, redirects, dynamic routes and empty actions. #1937 Feel free to check tests for further information.

Fixed

v0.19.0

29 Jul 14:43
d5a3c68
Compare
Choose a tag to compare

0.19.0 - 2021-07-29

Added

  • Project

    • Added @botonic/plugin-google-translation: Translating user inputs text and detect its languages.
    • Added new packages with common configurations for bot development encapsulating logic that may be not relevant to the developer but keeping them extendable.
    • Added new NLP packages with improved training scripts, improved intent classification and new entities detection feature:
    • Added new packages for incoming Botonic 1.0:
  • @botonic/react

    • Added onConnectionChange event listener that will be triggered when connection status of websocket changes.
    • Added new Raw component to directly send JSON payloads to connected messaging APIs and allow access to all of their features.
    • Improved buttons support in Multichannel components and allow displaying them in Whatsapp. #1699
    • Added experimental directory for Botonic 1.0. #1701

Changed

  • @botonic/cli

    • Improved telemetry. #1305, #1307, #1342
    • Removed force flag (default behavior is to always deploy your bot bundle), improved error handling and minor refactor. #1321

Fixed

v0.18.0

02 Feb 13:11
Compare
Choose a tag to compare

0.18.0 - 2021-02-02

Added

  • Project

    • Added configuration to measure code coverage with LCOV #1232 and #1233.
    • Updated documentation for Shadow DOM, Webchat Storage and Handoff functionalities, #1246.
  • @botonic/react

    • New webchat features:
      • Added disabling buttons. Configurable at:
        • Theme level: theme.button.autodisable and theme.button.disabledstyle.
        • Component level: by passing the props autodisable and disabledstyle to Button components.

Changed

Fixed

v0.17.0

18 Dec 16:41
Compare
Choose a tag to compare

0.17.0 - 2020-12-18

Added

Changed

Fixed

v0.16.0

20 Nov 15:01
Compare
Choose a tag to compare

0.16.0 - 2020-11-20

Added

  • @botonic/core

    • Added new matcher request matcher and pass lastRoutePath to current bot context. #1086

Changed

Fixed

  • @botonic/react

    • Added missing storage key in constructor, now storageKey works as expected.
    • Automatically call onMessage when receiveng messages coming from server-side.
    • Added missing call to stringifyWithRegexs causing some regexes not being updated in local/session storages. Fixed react warnings (produced by npm run test), log deprecated props in custom messages. #1063
      Deprecated props:
      • enableTimestamps => enabletimestamps
      • imagesStyle => imagestyle
    • Fixed sending of unsent inputs to be more consistent.
    • Fixed onClose being called on the very first render of the app.
    • Fixed WebchatSettings component not updating settings correctly.
    • Set ack to 1 for custom user messages by default.

v0.15.0

27 Oct 16:18
Compare
Choose a tag to compare

0.15.0 - 2020-10-27

Added

  • @botonic/react

    • New webchat features:

      • Added new target prop to Button component to define the behavior to open links.
      • Added new WhatsappTemplate component for Webchat.
      • New getBotonicApp() to access Botonic methods.
      • Added a new webchat setting storageKey that indicates the key name to use in order to store the webchat state in localStorage (or sessionStorage).
  • @botonic/plugin-contentful

    • 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

  • Project

    • Improved script to automatically bump versions for Botonic packages (it also updates references to other Botonic dependencies).
    • Improved documentation
  • @botonic/nlu

    • Refactored and migrated NLU engine to Typescript. Read the new docs here.

Fixed

  • @botonic/cli

    • Fixed imports in templates which were broken after 0.14.0 change in entry files.
    • Added validation of templates and examples in CI
  • @botonic/react

    • 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.

v0.14.0

01 Oct 15:26
Compare
Choose a tag to compare

0.14.0 - 2020-10-01

Added

  • @botonic/cli

    • New bot template dynamo using Botonic dynamoDB plugin from a JS bot.
  • @botonic/react

    • 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 in webchat/index.jsis 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 and toggleCoverComponent are available in the browser, through the Botonic object, so that the coverComponent can be shown/hidden manually.
  • @botonic/plugin-contentful

    • 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 to contentfulOptions 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.

Changed

  • Project

    • Upgraded typescript to 4.0.2.
    • Upgraded eslint plugins and fixed new warnings.
    • Improved documentation and reestructure.
  • @botonic/cli

    • Improved index.d.ts definitions.
    • Breaking change: Added /webpack-entries to every template to ensure that Webpack's tree-shaking is done and modified webpack.config.js as a consequence. This reduces the bundle sizes of every bot. From developers upgrading their projects from version 0.13.0 or below the following changes will be necessary:
      1. Create a new directory called webpack-entries under bot project's root folder. Copy dev-entry.js, node-entry.js, webchat-entry.js and webviews-entry.js inside. You can find them here.
      2. Modify the following lines in webpack.config.js:
      • In botonicDevConfig modify the line for entry to be: path.resolve('webpack-entries', 'dev-entry.js'),
      • In botonicWebchatConfig modify the line for entry to be: path.resolve('webpack-entries', 'webchat-entry.js'),
      • In botonicWebviewsConfig modify the line for entry to be: path.resolve('webpack-entries', 'webviews-entry.js'),
      • In botonicServerConfig modify the line for entry to be: path.resolve('webpack-entries', 'node-entry.js'),
  • @botonic/react

    • Refactored timestamps. They can be enabled by setting theme.message.timestamps.enable to true. (Default format will be as follows: 29 Jun, 12:40:07). The content can be formatted by defining a function under theme.message.timestamps.format which returns a string with the formatted date and their styles under theme.message.timestamps.style.
    • Improved index.d.ts definitions.

Fixed

  • @botonic/core

    • Added the export of getAvailableAgentsByQueue, which was not accessible.
  • @botonic/react

    • 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 CoverComponentis 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 to hoverTextColor in button.jsx so that changing the text color of a button on hover can work.
  • @botonic/plugin-contentful

    • Fixed bug in Contentful Schedule, where schedule was miscalculating around midnight. It was not taking the timezone offset into account to calculate the weekday.