Skip to content

Releases: aws-samples/aws-lex-web-ui

0.8.2

27 Jul 16:48
Compare
Choose a tag to compare

Fixed

  • Fixed config initialization issues

0.8.1

25 Jul 22:52
Compare
Choose a tag to compare

Fixed

  • Fixed config initialization and parentOrigin issues

Changed

  • Clarified documentation
  • Exported Vue plugin from library
  • Added deep merge capability to mergeConfig

0.8.0

24 Jul 21:16
Compare
Choose a tag to compare

This release makes it easier to include the chatbot UI into existing
sites. The project now distributes a pre-built library in the dist
directory. This allows to use the chatbot UI without having to build the
application. The root directory of the repo now contains a package.json
file to make it easier to npm install it.

There are a few breaking changes regarding the supported URL parameters
which now use the lexWebUi prefix to avoid conflicts when including
the component in an existing site.

Changed

  • [BREAKING] Changed config passing URL query parameter from config
    to lexWebUiConfig
  • [BREAKING] Changed URL query parameter to run in embedded mode from
    embed to lexWebUiEmbed
  • The parentOrigin config variable now defaults to
    window.location.origin to support single origin iframe setups
    without having to set it in the the JSON config file
  • Restructured Vuex store including:
    • Split state, mutations and actions to individual files
    • Moved audio, recorder, aws credentials/clients out of the state.
      Those now exist as module variables visible from the store actions
    • AWS credentials from parent are now manually recreated to avoid
      including the AWS SDK as part of the store
  • Changed from using vuex mapGetter in components to instead use the
    store state variables. This was done to avoid redistributing vuex
    in the built library and to support vuex being loaded outside of the
    chatbot ui.
  • Moved Vue component initialization from LexApp.vue to LexWeb.vue
  • Moved Page component to LexApp.vue from LexWeb.vue
  • Moved webpack related import config from recorder to the general
    webpack config
  • Commented out webrtc-adapter import in preparation to deprecating it
  • Changed constructor arguments of lex client to accept a
    lexRuntime client instead of AWS credentials or SDK config. This allows
    redistributing without having to include AWS SDK as a direct dependency
  • Changed iframe container class name
  • Rearranged the README files. The main README contains info about the
    npm package and instructions to use the library. The CloudFormation and
    application details where move to different README files.

Added

  • Created a Vue plugin that can be used to instantiate the chatbot ui
    both as an import in a webpack based project or by directly sourcing
    the library in a script tag. The plugin registers itself and adds
    a property named $lexWebUi to the Vue class. It adds a global Vue
    component name LexWebUi
  • Added a distribution build config and related scripts
  • Added an example on how to encode the URL query parameter config
  • Added a new config object key urlQueryParams holding the url query
    parameters

0.7.0

15 Jul 02:18
Compare
Choose a tag to compare

Added

  • Added capability to send messages from parent page to iframe using
    postMessage
  • Added config field to control whether the iframe should automatically
    load
  • Added a ready event sent by chatbot UI when running embedded to signal
    the parent that the component loaded successfully
  • Added capability to programatically post text messages to the
    chatbot UI from a parent page when running embedded as an iframe
  • Added capability to programatically minimize the chatbot UI
    from a parent page when running embedded as an iframe
  • Added Config field to control whether the iframe should load minimized

Changed

  • Major refactoring of the bot loader script to make it more modular
  • Improved the documentation to include more details on embedding as an iframe
  • Bumped dependency versions
  • Changed indentation of various portions of the chatbot UI code to
    conform to the the latest airbnb eslint config
  • Changed vuetify components to work latest version
  • Changed responseCard rendering style
  • Changed bot loader CSS to better adapt to smaller resolutions
  • Changed iframe minimize/expand to use new parent to iframe message passing

Fixed

  • Fixed responseCard parsing when using postContent

0.6.0

07 Jul 21:09
Compare
Choose a tag to compare

Added

  • Added the ability to pass dynamic configuration from parent page to the
    bot loader via an event
  • Added response cards object display to sample parent page

Changed

  • Bot loader script now uses its own credential variable instead of setting
    it into the global AWS object
  • Bumped AWS SDK version in bot loader
  • Added functionality to remove event handlers in bot loader for events that
    only fire once

Fixed

  • Typos, invalid links and display issues in README files