@twilio/conversations 2.0.1-rc.1 → 2.0.1-rc.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -0
- package/README.md +4 -12
- package/dist/browser.js +2 -2
- package/dist/browser.js.map +1 -1
- package/dist/docs/index.html +4 -10
- package/dist/docs/modules.html +4 -10
- package/dist/lib.js +2 -2
- package/dist/lib.js.map +1 -1
- package/dist/react-native.js +2 -2
- package/dist/react-native.js.map +1 -1
- package/dist/twilio-conversations.js +5 -5
- package/dist/twilio-conversations.min.js +2 -2
- package/package.json +10 -10
package/dist/docs/index.html
CHANGED
@@ -2818,7 +2818,7 @@ img {
|
|
2818
2818
|
<a href="#instantiating-and-using" id="instantiating-and-using" style="color: inherit; text-decoration: none;">
|
2819
2819
|
<h2>Instantiating and using</h2>
|
2820
2820
|
</a>
|
2821
|
-
<p>To use the library you need <a href="https://www.twilio.com/docs/conversations/create-tokens">to generate a token</a> and pass it to the
|
2821
|
+
<p>To use the library you need <a href="https://www.twilio.com/docs/conversations/create-tokens">to generate a token</a> and pass it to the Conversations Client constructor.</p>
|
2822
2822
|
<a href="#npm" id="npm" style="color: inherit; text-decoration: none;">
|
2823
2823
|
<h3>NPM</h3>
|
2824
2824
|
</a>
|
@@ -2854,14 +2854,8 @@ img {
|
|
2854
2854
|
directly in your web app using a <code><script></code> tag.</p>
|
2855
2855
|
<pre><code class="language-html"><span style="color: #800000"><script</span><span style="color: #000000FF"> </span><span style="color: #FF0000">src</span><span style="color: #000000FF">=</span><span style="color: #0000FF">"https://media.twiliocdn.com/sdk/js/conversations/v2.0/twilio-conversations.min.js"</span><span style="color: #800000">></script></span>
|
2856
2856
|
</code></pre>
|
2857
|
-
<p>Using this method, <code>twilio-conversations.js</code> will set a browser global <code>Twilio.Conversations</code> through which you can use the client
|
2858
|
-
<pre><code><span style="color: #
|
2859
|
-
<span style="color: #000000"> </span><span style="color: #008000">// Use client</span>
|
2860
|
-
<span style="color: #000000">});</span>
|
2861
|
-
</code></pre>
|
2862
|
-
<p>or, if you prefer <code>async</code>/<code>await</code> syntax:</p>
|
2863
|
-
<pre><code><span style="color: #0000FF">let</span><span style="color: #000000"> </span><span style="color: #001080">client</span><span style="color: #000000"> = </span><span style="color: #AF00DB">await</span><span style="color: #000000"> </span><span style="color: #001080">Twilio</span><span style="color: #000000">.</span><span style="color: #001080">Conversations</span><span style="color: #000000">.</span><span style="color: #001080">Client</span><span style="color: #000000">.</span><span style="color: #795E26">create</span><span style="color: #000000">(</span><span style="color: #001080">token</span><span style="color: #000000">);</span>
|
2864
|
-
<span style="color: #008000">// Use client</span>
|
2857
|
+
<p>Using this method, <code>twilio-conversations.js</code> will set a browser global <code>Twilio.Conversations</code> through which you can use the client:</p>
|
2858
|
+
<pre><code><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">client</span><span style="color: #000000"> = </span><span style="color: #0000FF">new</span><span style="color: #000000"> </span><span style="color: #001080">Twilio</span><span style="color: #000000">.</span><span style="color: #001080">Conversations</span><span style="color: #000000">.</span><span style="color: #795E26">Client</span><span style="color: #000000">(</span><span style="color: #001080">token</span><span style="color: #000000">);</span>
|
2865
2859
|
</code></pre>
|
2866
2860
|
<a href="#security" id="security" style="color: inherit; text-decoration: none;">
|
2867
2861
|
<h3>Security</h3>
|
@@ -2871,7 +2865,7 @@ img {
|
|
2871
2865
|
<p>If you require more security you will have to consume SDK by using <a href="https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity">SRI</a> and using an exact version
|
2872
2866
|
number. While less flexible it is significantly more secure, which is required by some applications.</p>
|
2873
2867
|
<p>To consume securely use the following script snippet format:</p>
|
2874
|
-
<pre><code class="language-html"><span style="color: #800000"><script</span><span style="color: #000000FF"> </span><span style="color: #FF0000">src</span><span style="color: #000000FF">=</span><span style="color: #0000FF">"https://media.twiliocdn.com/sdk/js/conversations/releases/2.0.
|
2868
|
+
<pre><code class="language-html"><span style="color: #800000"><script</span><span style="color: #000000FF"> </span><span style="color: #FF0000">src</span><span style="color: #000000FF">=</span><span style="color: #0000FF">"https://media.twiliocdn.com/sdk/js/conversations/releases/2.0.1/twilio-conversations.min.js"</span>
|
2875
2869
|
<span style="color: #000000FF"> </span><span style="color: #FF0000">integrity</span><span style="color: #000000FF">=</span><span style="color: #0000FF">"sha256-<HASH FROM THE CHANGELOGS PAGE>"</span>
|
2876
2870
|
<span style="color: #000000FF"> </span><span style="color: #FF0000">crossorigin</span><span style="color: #000000FF">=</span><span style="color: #0000FF">"anonymous"</span><span style="color: #800000">></script></span>
|
2877
2871
|
</code></pre>
|
package/dist/docs/modules.html
CHANGED
@@ -2820,7 +2820,7 @@ img {
|
|
2820
2820
|
<a href="#instantiating-and-using" id="instantiating-and-using" style="color: inherit; text-decoration: none;">
|
2821
2821
|
<h2>Instantiating and using</h2>
|
2822
2822
|
</a>
|
2823
|
-
<p>To use the library you need <a href="https://www.twilio.com/docs/conversations/create-tokens">to generate a token</a> and pass it to the
|
2823
|
+
<p>To use the library you need <a href="https://www.twilio.com/docs/conversations/create-tokens">to generate a token</a> and pass it to the Conversations Client constructor.</p>
|
2824
2824
|
<a href="#npm" id="npm" style="color: inherit; text-decoration: none;">
|
2825
2825
|
<h3>NPM</h3>
|
2826
2826
|
</a>
|
@@ -2856,14 +2856,8 @@ img {
|
|
2856
2856
|
directly in your web app using a <code><script></code> tag.</p>
|
2857
2857
|
<pre><code class="language-html"><span style="color: #800000"><script</span><span style="color: #000000FF"> </span><span style="color: #FF0000">src</span><span style="color: #000000FF">=</span><span style="color: #0000FF">"https://media.twiliocdn.com/sdk/js/conversations/v2.0/twilio-conversations.min.js"</span><span style="color: #800000">></script></span>
|
2858
2858
|
</code></pre>
|
2859
|
-
<p>Using this method, <code>twilio-conversations.js</code> will set a browser global <code>Twilio.Conversations</code> through which you can use the client
|
2860
|
-
<pre><code><span style="color: #
|
2861
|
-
<span style="color: #000000"> </span><span style="color: #008000">// Use client</span>
|
2862
|
-
<span style="color: #000000">});</span>
|
2863
|
-
</code></pre>
|
2864
|
-
<p>or, if you prefer <code>async</code>/<code>await</code> syntax:</p>
|
2865
|
-
<pre><code><span style="color: #0000FF">let</span><span style="color: #000000"> </span><span style="color: #001080">client</span><span style="color: #000000"> = </span><span style="color: #AF00DB">await</span><span style="color: #000000"> </span><span style="color: #001080">Twilio</span><span style="color: #000000">.</span><span style="color: #001080">Conversations</span><span style="color: #000000">.</span><span style="color: #001080">Client</span><span style="color: #000000">.</span><span style="color: #795E26">create</span><span style="color: #000000">(</span><span style="color: #001080">token</span><span style="color: #000000">);</span>
|
2866
|
-
<span style="color: #008000">// Use client</span>
|
2859
|
+
<p>Using this method, <code>twilio-conversations.js</code> will set a browser global <code>Twilio.Conversations</code> through which you can use the client:</p>
|
2860
|
+
<pre><code><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">client</span><span style="color: #000000"> = </span><span style="color: #0000FF">new</span><span style="color: #000000"> </span><span style="color: #001080">Twilio</span><span style="color: #000000">.</span><span style="color: #001080">Conversations</span><span style="color: #000000">.</span><span style="color: #795E26">Client</span><span style="color: #000000">(</span><span style="color: #001080">token</span><span style="color: #000000">);</span>
|
2867
2861
|
</code></pre>
|
2868
2862
|
<a href="#security" id="security" style="color: inherit; text-decoration: none;">
|
2869
2863
|
<h3>Security</h3>
|
@@ -2873,7 +2867,7 @@ img {
|
|
2873
2867
|
<p>If you require more security you will have to consume SDK by using <a href="https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity">SRI</a> and using an exact version
|
2874
2868
|
number. While less flexible it is significantly more secure, which is required by some applications.</p>
|
2875
2869
|
<p>To consume securely use the following script snippet format:</p>
|
2876
|
-
<pre><code class="language-html"><span style="color: #800000"><script</span><span style="color: #000000FF"> </span><span style="color: #FF0000">src</span><span style="color: #000000FF">=</span><span style="color: #0000FF">"https://media.twiliocdn.com/sdk/js/conversations/releases/2.0.
|
2870
|
+
<pre><code class="language-html"><span style="color: #800000"><script</span><span style="color: #000000FF"> </span><span style="color: #FF0000">src</span><span style="color: #000000FF">=</span><span style="color: #0000FF">"https://media.twiliocdn.com/sdk/js/conversations/releases/2.0.1/twilio-conversations.min.js"</span>
|
2877
2871
|
<span style="color: #000000FF"> </span><span style="color: #FF0000">integrity</span><span style="color: #000000FF">=</span><span style="color: #0000FF">"sha256-<HASH FROM THE CHANGELOGS PAGE>"</span>
|
2878
2872
|
<span style="color: #000000FF"> </span><span style="color: #FF0000">crossorigin</span><span style="color: #000000FF">=</span><span style="color: #0000FF">"anonymous"</span><span style="color: #800000">></script></span>
|
2879
2873
|
</code></pre>
|
package/dist/lib.js
CHANGED
@@ -5678,7 +5678,7 @@ var Conversations = /*#__PURE__*/function (_ReplayEventEmitter) {
|
|
5678
5678
|
conversationsMap = _context4.sent;
|
5679
5679
|
_context4.next = 5;
|
5680
5680
|
return conversationsMap.getItems({
|
5681
|
-
|
5681
|
+
key: sid
|
5682
5682
|
});
|
5683
5683
|
|
5684
5684
|
case 5:
|
@@ -6599,7 +6599,7 @@ function PushNotification(data) {
|
|
6599
6599
|
this.data = data.data || {};
|
6600
6600
|
};
|
6601
6601
|
|
6602
|
-
var version = "2.0.1-rc.
|
6602
|
+
var version = "2.0.1-rc.5";
|
6603
6603
|
|
6604
6604
|
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
6605
6605
|
|