Releases: zendesk/sunshine-conversations-web
version 2.0.7
Improvements
- New
message:received
andmessage:sent
events. They will trigger when the user receives a message and sends a message, respectively.
version 2.0.6
Improvements
- Accept user attributes in
login
(was only available oninit
before)
Bugs
- State wasn't cleared correctly on logout and could lead to updating users with wrong attributes on the next login call.
version 2.0.5
Improvements
- Accept signedUpAt user property override via init and updateUser
version 2.0.4
Changes
- Fixed deployment config
version 2.0.1
Bugs
- Fix support for Safari Private Browsing where Smooch wasn't loading because of the lack of write rights on local storage
- Replace a typo in the
urljoin
dependency
version 2.0.0
Smooch 2.0
SupportKit is now Smooch!
With Smooch, the internals of the SDK have changed. It is now using our public API and as such we've bumped the major version to 2.0.
Changes
- The Web SDK API changes for Smooch (please check the upgrade guide)
- The Web SDK is now using the new public API
- Added support for user id with
/
and other URL breaking characters
Upgrade guide
CDN
To get the new version, you should now include this script in your page :
<script src="https://cdn.smooch.io/smooch.min.js"></script>
You can still use the old CDN link, but that package won't get updated. It will stay in v1.0.
Packages
The package is now named smooch
on npm and bower.
$ npm install smooch
$ bower install smooch
API
The most notable change is that you no longer use the SupportKit
global variable, but the new Smooch
global.
var Smooch = require('smooch');
Smooch.init({appToken: 'your_app_token'});
The rest is pretty much the same! We didn't change the CSS classes, so your customization should be safe.
version 1.0.0
Web SDK is now 1.0!
We cooked up a big release for this milestone. We already had cool features like the actions buttons on our mobile SDKs, but now, you can also have them! We also packed this release with a lot of fixes and new things that will surely be useful to a lot of you guys.
Web SDK is seeing some action!
The Web SDK now features Actions!
You can now send Actions along with messages to your users. This makes it easier to direct your users to some part of your website and help them find exactly what they need.
See our docs for all the details.
Login, Logout, JWT and your conversation everywhere
You can now specify a userId
and (optionally) a JSON Web Token (JWT) to securely log users in and out of your application. Every user session will hold its own conversation and properties. That same user is now able to log in into their iOS device, Android device, or on your website and retain their conversation!
As usual, see our docs for the details.
Fixes and improvements
- We rewrote the whole communication layer to not rely on
jQuery.ajax
. This means no more problems with Authorization headers when you are using the JWT in your own app. - You can now send links in your messages. We added a link detection feature that will render them correctly. It's currently pretty basic and will detect anything under the following format:
procotol://uri
so you could send a normal url or even some link to iTunes or the Play store if you wanted to. We are not detecting emails for now, but you could achieve that with action buttons! - We worked hard on building a better experience on mobile. The widget should now use the whole screen when opened.
- A lot of CSS fixes
API Additions
- SupportKit global now has
login
andlogout
. Check out our README for a more complete API description.
version 0.2.31
Improvements
- You can now pass
serviceUrl
at initialization to specify a different server endpoint. - The SDK is now making use of jQuery that is bundle with our package.
version 0.2.30
Improvements
- Changes were made to support the switch of our CDN. We all can enjoy the goodness of gzip!
- The widget is now a simple link when the page is being crawled by a bot.
version 0.2.27
Changes
- Device ID is now issued only once per browser to support new login API.
Improvements
- Right version is shown in the built files banner in bower and npm.