Skip to main content

51 posts tagged with "Web library"

New versions for the web library

View All Tags

Web library v1.2.18

  • Added a new param when doing POST /messages calls to the API that contains the full url of the current page. Normally this information is found in the referer header, but Chrome is changing the content of this header to contain only the domain of the website you are on. (the API doesn't do anything with this new param yet, we are working on this)
  • Fixed a problem where the focus would not automatically go into the chat when reloading the page
  • Fixed a problem where the send button was not showing in the chat conversation screen, even though the inviteNotificationSendButton setting was true (due to the naming of the setting this was expected behaviour, but it wasn't very practical to only allow turning this feature on in the inviteNotification screen)

Web library v1.2.17

Added

Fixed

  • Issue where the same notification would show more than 1x
  • Issue where sometimes the client window won't open when clicking on a notification
  • Issue in IE11 that prevented the chat from starting (document.contains() doesn't exists in IE11, document.body.contains() does)
  • Another issue in IE11; Array.from() doesn't exists so i added the core-js es.array.from module polyfill

Web library v1.2.16

danger

There is an issue in this version which prevents IE 11 to load the chat. This is fixed in v1.2.17

Added

Improved

Fixed

  • Fixed color contrasts of elements to conform to the WCAG level AAA guidelines
  • Fixed problem where some HTML elements had the same ID

Deprecated

  • The sendInitialMessage function since it is now replaced by the sendMessage which is an identical replacement

Web library v1.2.15

Fixed bug where the interval of Polling would be reset every time a INFO message was received by the chat. Now it only resets on all new messages except INFO messages.

Web library v1.2.14

  • Added a core-js-builder that lets us make custom core-js builds (this way we minimize the amount of Polyfills that are
  • bundled with the chat files and thus minimize the chances for conflicting Polyfills)

Web library v1.2.13

  • Added custom proxy for converting Maps to proxies
  • Turned the events object into a Map so it also works on IE11 (the proxy-polyfill for IE seals the objects when creating a Proxy, so we couldn't add any events to the events object. To fix this we made a Map instead of Object for the events)
  • Added core-js polyfills mainly for the Reflect polyfill which is used for the custom proxies for Map objects

Web library v1.2.11

  • Added a prefix setting so you can change the prefix for localStorage items (more info here and here)
  • Fixed an issue that was introduced in v1.2.10 when we added the Proxy library to make the window.parleySettings object send out events whenever a value changes. Our Proxy polyfill was conflicting with other Proxy polyfills on the website our chat was implemented on. Our Proxy polyfill now gets called as ParleyProxy() instead of Proxy().
  • Added a scope setting that restricts the communication the serviceWorker has with different pages. (more info here and here)
  • Improved further serviceWorker initialization

Web library v1.2.10

Added

  • An api unreachable notification (shown when the API returns status 502/3/4 or if the browser blocks the request)
  • Settings to change the text in the api unreachable notification serviceUnreachableNotification and serviceUnreachableNotificationAlert
  • Some more error texts to the settings: imageTooBig, imageFormatIncorrect and messageSendFailed
  • Support for formatted urls, you can now use [Google](www.google.com) in almost all texts inside the conversation window
  • The new settings object events. Here you can create a custom callback for the event events.onAuthorizationExpired. This callback is then called whenever the API returns that the client's authorizationHeader is expired.
  • Agent names to the conversation above the message they have sent. Possible to disable this using window.parleySettings.runOptions.showAgentName = false.
  • userAdditionalInformation, more info on how to use it can be found in the docs

Improved

  • The conversation window layout (small improvements using grids)

Fixed

  • A bug where startTyping event would trigger when you press ENTER to send your message
  • Render emojis with special font so that they are not black/white on IE11 (other browsers ignore this font)
  • A bug where multiple links where not rendered correctly
  • The bug where urls with a : in front would fail, because it sees it as the protocol ex: "check: www.google.com" would fail "check www.google.com" would succeed. Now they both succeed.
  • The conversation is re-rendered completely when calling window.parleySettings.registerNewDevice() so that when you log-in that way, the "anonymous" messages are directly visible in the "non-anonymous" conversation.

Removed

  • An unneeded reference to Messenger that caused an error on IE11

Web library v1.2.9

Improved

  • Images are now retrieved through our new API endpoint that is more secure than our previous solution. The old solution is now deprecated and will be removed in the future.

Fixed

  • Various UI fixes (mainly placement of icons)