All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
1.0.1 (2021-04-15)
1.0.1 (2021-04-15)
1.0.0 (2021-02-01)
0.11.12 (2021-01-19)
- expose getSessionId (c8cbda7)
0.11.11 (2020-10-21)
0.11.10 (2020-10-16)
- image size in markdown (990f4bb)
0.11.9 (2020-10-14)
0.11.8 (2020-09-28)
- possibility to send a payload on tooltip close (38cf679)
0.11.7 (2020-09-16)
- colors on buttons using color props (dbfebe6)
0.11.6 (2020-08-27)
0.11.5 (2020-06-24)
- choose tooltip placement (aba68c8)
0.11.4 (2020-06-24)
0.11.3 (2020-06-24)
- sequence with highlights (2c69f08)
0.11.2 (2020-06-23)
- bullet points in tooltips (2c9e92f)
0.11.1 (2020-06-23)
- webchat opening (14f457f)
0.11.0 (2020-06-23)
- auto clear storage on new version to prevent errors (db2df1e)
- placed tooltips (6857448)
- tooltip sequences (80f048f)
0.10.4 (2020-06-06)
- customize colors (b2650b5)
- minor style issue on typing indicator (0b9eb22)
0.10.3 (2020-06-01)
- auto scrolling (9c91876)
0.10.2 (2020-05-28)
- page refresh when pressing enter on firefox (174d9b9)
0.10.1 (2020-05-27)
0.10.0 (2020-05-27)
- markdown lists when embedded mode is active (46427d1)
- styles when widget is in full screen mode (74a95e9)
0.9.1 (2020-05-21)
- allow session re-use by re-reading session_id from local storage (6ea3ffc)
0.9.0 (2020-05-11)
0.8.9 (2020-05-05)
- carousels (98ee08f)
0.8.8 (2020-04-24)
- allow disabling/enabling input (333baea)
- change the color of the send button when input is not empty (#214) (bd75cc5)
0.8.7 (2020-04-16)
- scroll to highlight centered on mobile (560e44b)
0.8.6 (2020-04-16)
- automatically scroll to highlights (47daa28)
- markdown was not working any more (#211) (ba2fe55)
- safari blinking animation (d121a51)
- scrolling to highligh with chat open (a967527)
0.8.5 (2020-04-10)
0.8.4 (2020-04-08)
0.8.3 (2020-04-06)
0.8.2 (2020-04-01)
- subtitles display (3f330f7)
0.8.1 (2020-03-26)
0.8.0 (2020-03-25)
- message duplicate appearing as a tooltip when closing the chat (9586994)
0.7.23 (2020-03-20)
0.7.22 (2020-03-19)
- close button for tooltips (229d90d)
- support images in tooltips (104644d)
- support quick replies in tooltips (09e9f97)
- removed session_confirm race condition (ed16933)
0.7.21 (2020-02-20)
- sockjs transport can receive multiple messages at once (ad108de)
0.7.20 (2020-02-18)
0.7.19 (2020-02-18)
- sockjs: session_confirm can contain props (5f60300)
- sockjs: session_confirm can contain props (0102be5)
- crash when trying to hightlight with bad selector (289b104)
- default css animations (dd365ba)
- quick replies after refresh (2fb4c1d)
0.7.17 (2020-02-03)
- fixed socket update on props update (ccfbb40)
0.7.16 (2020-01-30)
- initial support for pageEventCallbacks (caf129b)
- webchat stuck on typing after refresh (6d6d2f2)
0.7.15 (2020-01-29)
0.7.14 (2020-01-29)
0.7.13 (2020-01-27)
0.7.12 (2020-01-22)
- reverted to opening links in new tab (50b4b63)
0.7.11 (2020-01-22)
- wrong parameters in initStore (75fec82)
0.7.10 (2020-01-17)
- typo in onWidgetEvent (c6d8588)
0.7.9 (2020-01-15)
- add widget even callback (904cdf1)
- allows the use of ref (c8f7688)
- domHightlight metadata support (6a9a8d2)
- forceOpen metadata support (9034e62)
- new launcher icon (4d3675b)
0.7.8 (2019-12-27)
0.7.4 (2019-12-19)
0.7.3 (2019-12-10)
- detect text and qr messages when incoming metadata present (8dcba98)
- use message.content -- limitation from stompjs (32b1e0b)
0.7.2 (2019-12-04)
- add disconnect reason in socketjs LEAVE (290e356)
0.7.1 (2019-11-27)
0.7.0 (2019-11-21)
- init payload is now sent only when opened (efebacb)
- added a prop tooltipDelay (8c8cd95)
- smart typing delay and typing indication (8738c63)
- tooltip popup (04e1279)
0.6.6 (2019-10-30)
- add margin to
to display newline (c7df04b)
0.6.5 (2019-10-25)
- duplicate registration of connect and disconnect event (263b847)
- duplicate user connection and small refactoring (58e8925)
- function binding (0a035c0)
- invalid date if timestamp not present (4c7be48)
- link and add container-class to quickreplies (67f7fcf)
- lost of path in sockjs implementation (46adcab)
- message's date CSS and removed seconds from date (e0fe602)
- sockjs duplicate connection (991cc6a)
- display message's date on chat (3fef7c8)
0.6.4 (2019-10-18)
- added props connectOn and onSocketEvent (667c745)
0.6.3 (2019-10-11)
- displayUnreadCount in index (9d915ad)
- displayUnreadCount props (21ef8c2)
- revert inputTextFieldHint (cb94a5e)
- add unread count pastille on openLauncherMessage (ee37f19), closes #73
- regroup messages in conversation by "sender" (e837844)
0.6.2 (2019-10-11)
0.6.1 (2019-10-11)
- cast messages text into string to prevent crashes (4778ad8)
- experimental sockjs support (b1f7c9d)
0.6.0 (2019-10-03)
- add commitlint and husky (a040aeb)
- add standard version (573b856)
- add test for quick replies linking (f95e8f3)
- support web url in quick replies (ac4b6f1)
0.5.10 (2019-10-02)
- add commitlint and husky (a040aeb)
- add standard version (573b856)
- add test for quick replies linking (f95e8f3)
- support web url in quick replies (ac4b6f1)
0.5.9 (2019-06-06)
- css scope (6c4f7d3)
- it was impossible to click behind the empty space of widget button (8e63321)
- 🎸 Add max-width to images and expose image params (2d3482b)
- \
- testing suite completing appropriately (e89087e)
- Namespaced all css declarations so that they don't affect styles outside of the widget.
- Fixed a bug where the connection would not close down when the component unmounted and continued polling indefinitely in the background.
- Fixed a bug where named links would not render in a received message
- New prop,
docViewer
, if this props is true, this will treat every link in received messages as a document and will open it in a popup using docs.google.com/viewer (note: this is an experimental feature and should be used with caution)
- When reconnecting to an existing chat session, the bot will send a message contained in the localStorage key specified by the
NEXT_MESSAGE
constant. The message should be stringified JSON with amessage
property describing the message and anexpiry
property set to a UNIX timestamp in milliseconds after which this message should not be sent.
- Added the parameter hideWhenNotConnected to not display the widget when the server is not connected (defaults to true)
- Fixed issue where the 'connected' property was being loaded from previous session instead of being triggered on actual connection
- Reduced the size of the widget container on mobile and in fullscreen mode (blocking clicks)
- Added support for custom images for open and close buttons of chatWidget interface
- Fixed size of chatWidget when closed preventing to take more space than the open button so that we can click around the open button with no problem
- Added session persistence with Rasa Core
- Implemented session persistence for chat widget.
- Chat messages and widget state params are stored in storage of the browser.
- Sessions are synchronized with server by a session_id.
- The param
storage
is exposed which allows the user to specify where the session is stored. - In the case of
session
, session storage of the browser is used, and the session persists as long as the browser is open, and is erased after it is closed. - In the case of
local
, local storage of the browser is used and the session persists even after the browser is closed. The session is erased when the browser's cookies are cleared. - Implemented connecting notifier and disabled input field before session_confirm is received from the server and the session is generated and synchronized.
- Separate connecting to server and sending initPayload. Server is connected when the component mounts, while initPayload is sent when the chat is toggled open and the server is connected.
- Added a image size property to widget initialization, in order to crop-scale images returned by bot.
- Images are crop-scaled to the defined size by the CSS property {object-fit: cover}. The content is sized to maintain its aspect ratio while filling the element’s entire content box. If the object's aspect ratio does not match the aspect ratio of its box then the object will be clipped to fit. The clipping will be taken from the center.
WebChat.toggle()
,WebChat.open()
, andWebChat.close
can be used to change the state of the chat box to open or closed.WebChat.show()
andWebChat.hide()
can be used to show or hide the entire chat widget.WebChat.isOpen()
andWebChat.isVisible()
can be used to get the open state of the chat box and the visibility state of the entire widget.
- Removed Linkify, added markdown support for response messages (urls still are detected automatically but not emails, to ensure a link appears use markdown syntax)
- Fixed fullScreenMode prop: now dispatches the initPayload when the component mounts, removed border-radius