diff --git a/README.md b/README.md index 32506a85..07cb8ad3 100644 --- a/README.md +++ b/README.md @@ -613,7 +613,7 @@ Smooch.triggerPostback(actionId, ''); Otherwise, you can get the `id` of an action by using `Smooch.getConversationById()`, e.g. ```javascript -Smooch.getConversationById().then((conversation) => console.log(conversation.messages)); +Smooch.getConversationById('62565b5c2b4039adff80b7fd').then((conversation) => console.log(conversation.messages)); // [ // { @@ -677,8 +677,7 @@ user = { #### getConversationById(conversationId) -Returns a `Promise` whose payload is a conversation if it exists. -if **conversationId** is not given, the current loaded conversation will be returned. +Returns a `Promise` whose payload is a conversation if it exists. If **conversationId** is not given, the current loaded conversation will be returned. ```javascript Smooch.getConversationById('62565b5c2b4039adff80b7fd').then((conversation) => { @@ -845,7 +844,7 @@ Smooch.createConversation({ To create more than one conversation using this method, or to allow your user to create more conversations via the conversation list's `New Conversation` button, you must: -- have the [Multi-Party Conversations feature](https://docs.smooch.io/guide/multi-party-conversations/#some-assembly-required) enabled on your account +- have the [Multi-Conversations feature](https://docs.smooch.io/rest/#operation/updateApp) enabled on your account - [update your Web Messenger integration](https://docs.smooch.io/rest/#update-integration) and set `canUserCreateMoreConversations` to `true` Note that this API does not allow creating [`sdkGroup` conversations](https://docs.smooch.io/guide/multi-party-conversations/#new-platform-capabilities). This type of conversation must be created by using the public API. @@ -1378,7 +1377,9 @@ Note that an equivalent configuration can be done [server side](https://develope According to the channels you use, other domains may need to be added (these are used to display QR codes to link the Web Messenger conversation): - LINE: https://qr-official.line.me +- Stripe: https://*.stripe.com - WeChat: https://mp.weixin.qq.com +- WhatsApp: https://wa.me Note that your CSP configuration should also include any domains used to host images or files sent in messages. If you require `blob:` to be excluded for `img-src`, you must disable the image upload feature via the [init settings](#initoptions). diff --git a/smooch.5.1.2.min.js b/smooch.5.1.3.min.js similarity index 96% rename from smooch.5.1.2.min.js rename to smooch.5.1.3.min.js index 9d246f03..8d9b6646 100644 --- a/smooch.5.1.2.min.js +++ b/smooch.5.1.3.min.js @@ -1,3 +1,3 @@ -/*! For license information please see smooch.5.1.2.min.js.LICENSE.txt */ -!function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="https://cdn.smooch.io/",n(n.s=527)}({136:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var o="web-messenger-container"},204:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var o={lg:{minHeight:668,minWidth:1200},md:[{minHeight:508,minWidth:768,maxWidth:1199},{minHeight:508,maxHeight:667,minWidth:768}],sm:{maxHeight:507,minWidth:768},xs:{maxWidth:767}}},245:function(t,e,n){"use strict";n.d(e,"a",(function(){return x})),n.d(e,"b",(function(){return E}));var o=n(461),r=n.n(o);function i(t){"complete"!==document.readyState&&"loaded"!==document.readyState&&"interactive"!==document.readyState||!document.body?document.addEventListener("DOMContentLoaded",(function(){t()})):t()}function a(t){var e=["screen"];return t.minHeight&&e.push("(min-height: ".concat(t.minHeight,"px)")),t.maxHeight&&e.push("(max-height: ".concat(t.maxHeight,"px)")),t.minWidth&&e.push("(min-width: ".concat(t.minWidth,"px)")),t.maxWidth&&e.push("(max-width: ".concat(t.maxWidth,"px)")),e.join(" and ")}var s=n(312),c=n.n(s),u=n(204),d=["lg","md","sm","xs"];function l(t){for(var e=0;et.length)&&(e=t.length);for(var n=0,o=new Array(e);n\n \n \n ".concat("",'\n \n