All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
2.19.2 (2024-10-28)
2.19.1 (2024-10-24)
- dispatch openchat when startfullscreen is true (bd327ec)
2.19.0 (2024-10-24)
- audio-recorder: adds audio recorder (402a658)
- sender: fixes responsivity bugs (dc466a8)
- webcam-capture: adds responsability (d5d54ec)
- webcam-capture: adds webcam capture (21a4756)
- webcam-capture: fixes camera width (9210ea6)
- camera: adds attribute to iOS Safari (15f5934)
- camera: height (a305bad)
- date align (c93d14e)
- node-sass: fixes node sass package version (fbb58f3)
- pdf viewer (77f5847)
- remove html changes (a20f9d9)
- start fullscreen (5ef4e8d)
2.18.0 (2024-10-11)
- audio-recorder: adds audio recorder (402a658)
- webcam-capture: adds responsability (d5d54ec)
- webcam-capture: adds webcam capture (21a4756)
- webcam-capture: fixes camera width (9210ea6)
- date align (c93d14e)
- node-sass: fixes node sass package version (fbb58f3)
- pdf viewer (77f5847)
- remove html changes (a20f9d9)
2.17.1 (2024-10-11)
- Fixes node-sass package version.
2.17.0 (2024-10-11)
- Adds Webcam and Audio captures.
2.15.26 (2024-08-02)
- timestamp nanoseconds conversion (78a21c0)
2.15.25 (2024-08-02)
- date conversion (1c6fde6)
2.15.24 (2024-08-02)
- date conversion (df885eb)
2.15.23 (2024-08-01)
2.15.22 (2024-08-01)
- formatDate (e3f6a22)
2.15.21 (2024-08-01)
- cloudbuild (295ed2f)
2.15.20 (2024-07-31)
- update dependencies (f32d45b)
2.15.19 (2024-07-31)
2.15.18 (2024-07-31)
- add message ids (d55e44b)
- add position (efdacf7)
- add timestamp to all messages (43d2685)
- drop messages (a89ddae)
- remove console log (2792ef2)
- timestamp (dcd1cd0)
- update history (8c30737)
2.15.17 (2024-07-25)
- current version (7ebfb0d)
2.14.0 (2024-04-11)
- youtube video rendering and typing indication fullscreen overflow (9ec8fdd)
2.13.0 (2023-05-23)
- new close session method based on session_token prop (02fbe74)
2.12.0 (2022-10-28)
- add i18next packages (072eec5)
- i18n translations into openSession based on browser language (e70229d)
- remove unused openSessionMessageFields prop (61657b7)
2.11.0 (2022-08-26)
- add customPayload option into open action (b7492d9)
2.10.2 (2022-07-21)
- added z-index into unread-count (43fdd1e)
2.10.1 (2022-07-16)
- textarea style and behavior issues (8fb661d)
2.10.0 (2022-07-15)
- multiline input and preview (128cc4d)
2.9.0 (2022-06-23)
- build history from socket (d8f9b69)
- call getHistory after initialization (d0f4bbb)
- fetch history based on scroll (55ebde8)
- insert messages actions (e3d8fec)
- prevent localStorage history from being loaded (9434b83)
- send session type on register (a9bfa77)
2.8.2 (2022-05-30)
- open chat action (89f97cd)
2.8.1 (2022-05-28)
- closing socket connection while connecting (b2cc04e)
2.8.0 (2022-05-27)
- setSessionId widget method (5e01474)
2.7.1 (2022-04-19)
- init payload not being sent when sessionId is set (15434ed)
2.7.0 (2022-03-28)
- async dispatcher middleware (eb03e85)
- new initPayload trigger logic (a54ab09)
- sendInitPayload helper (8a7035e)
- setInitPayload reducer (da4b5b2)
2.6.0 (2022-03-16)
- alert circle asset (1792077)
- open session component and props (a8b70df)
- open session socket event handler (0bd6cc9)
- open session store actions and reducers (78d413a)
- message type to warning (670db13)
2.5.3 (2022-01-31)
- script tag name and uuid (8025f76)
2.5.2 (2022-01-17)
- overwrite box-sizing for all webchat classes (044fbbc)
2.5.1 (2021-12-14)
- remove trigger of register if attempting reconnection (bc328e0)
2.5.0 (2021-12-07)
- audio upload (92f8e25)
- basic file selector handling (c11fd3f)
- change powered by to weni (541dfd5)
- check history for delayed trigger (c8e2ad9)
- client id attribute (305ddab)
- document upload (90fb97c)
- dropzone (abad7fc)
- first weni websocket support, applied lint on modified files (f86c460)
- get attachments url from acknowledgment message (fdd4f72)
- image upload (a8f3e7a)
- incoming attachments handling (efd5609)
- new attachment icon (a29ea87)
- new audio reply component (a8565b5)
- new custom auto complete attribute (043da74)
- reconnect socket on error/closure (4089df6)
- socket ping (ec81773)
- sound notification (16b981e)
- video upload (531283e)
- basic text message sending (2049f44)
- doc handle url without file extension (e280337)
- doc viewer accept only files (1a0d0df)
- dropzone click behavior (82d8c6a)
- incorrect send action payload (d82276f)
- lint (a9f5c0e)
- multiple connections being opened (4d6de75)
- powered by (108e6f4)
- quick_replies handling (400c6d9)
- remove unused imports (a6aa16c)
- removed channel id from uniqueFrom and let it be more random (cea6b1d)
- removed logs (d55e683)
- removed unnecessary logs (b298ef7)
- responsive image size (fc25277)
- sessionId not working (82323e0)
- tooltip format (1d97830)
1.8.0 (2020-12-23)
- new custom auto complete attribute (043da74)
1.7.2 (2020-10-13)
- suggestions display after selection (00e48c7)
1.7.1 (2020-10-06)
- image click opens a new tab (e776e64)
1.7.0 (2020-10-05)
- automatic send for suggestions (edd136a)
1.6.0 (2020-09-24)
- added exluded parameter (66fa3d4)
- added suggestions on frontend (ade40d1)
- modified style and props format (45190cc)
- support to suggestions (522185a)
1.5.1 (2020-08-18)
- initPayload not being sent when the chat was manually opened (88525dd)
1.5.0 (2020-08-06)
- startFullScreen param added (9a027f2)
1.4.1 (2020-07-22)
- header padding now not using a height dependent unit (c3d1eb2)
1.4.0 (2020-07-20)
- header image support (1f8604d)
1.3.0 (2020-07-14)
- new attribute showHeaderAvatar and fullScreenMessageBubbleColor (4298c2c)
- new method clear() and new attribute sessionId (ecb9fc6)
- tooltip message can be defined as a string (b258564)
- laucher image size (5e4dbac)
- merge error (88f59ef)
- modified name to fullScreenBotMessageBubbleColor (800542f)
- profile avatar with a better size, reduced input size on fullscreen (9a36cc4)
- removed log and unused variable (126da36)
1.2.0 (2020-07-10)
- new attribute showHeaderAvatar and fullScreenMessageBubbleColor (4298c2c)
- tooltip message can be defined as a string (b258564)
- laucher image size (5e4dbac)
- merge error (88f59ef)
- modified name to fullScreenBotMessageBubbleColor (800542f)
- profile avatar with a better size, reduced input size on fullscreen (9a36cc4)
1.1.3 (2020-07-09)
- tooltip message can be defined as a string (b258564)
- laucher image size (5e4dbac)
- merge error (88f59ef)
- profile avatar with a better size, reduced input size on fullscreen (9a36cc4)
1.0.1 (2020-07-03)
- tooltip message can be defined as a string (b258564)
1.0.0 (2020-07-02)
- more custom fields added (6891f59)
- new method to force reload the widget - WebChat.reload() (aa8ca1e)
- subtitle color and default customizeWidget params (7a827fa)
- close button not showing on fullscreen mode (001bd74)
- fixed tests (9d83b44)
- fixed title color (575cddd)
- fixed wrong property name (e38df92)
- removed extra
#
(d479c25)
0.7.37 (2020-07-01)
0.7.36 (2020-06-30)
- error after merge (cbb51e6)
- inputTextFieldHint prop added to missing places (de00559)
- removed line (0121fc1)
0.7.35 (2020-06-30)
0.7.34 (2020-06-26)
0.7.33 (2020-04-14)
0.7.32 (2020-04-08)
0.7.31 (2020-04-01)
0.7.30 (2020-04-01)
0.7.29 (2020-03-28)
0.7.28 (2020-03-17)
0.7.27 (2020-03-17)
0.7.26 (2020-03-17)
0.7.25 (2020-03-15)
0.7.24 (2020-03-15)
0.7.23 (2020-03-15)
0.7.22 (2020-03-15)
- close button for tooltips (229d90d)
- support images in tooltips (104644d)
- support quick replies in tooltips (09e9f97)
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