@twilio/conversations 3.0.0 → 3.0.1-rc.0
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/README.md +2 -2
- package/builds/browser.esm.js +11 -3
- package/builds/browser.esm.js.map +1 -1
- package/builds/browser.js +11 -3
- package/builds/browser.js.map +1 -1
- package/builds/lib.esm.js +11 -3
- package/builds/lib.js +11 -3
- package/builds/lib.js.map +1 -1
- package/builds/twilio-conversations.js +65 -1180
- package/builds/twilio-conversations.js.map +1 -1
- package/builds/twilio-conversations.min.js +1 -1
- package/builds/twilio-conversations.min.js.map +1 -1
- package/dist/command-executor.js +3 -2
- package/dist/command-executor.js.map +1 -1
- package/dist/packages/conversations/package.json.js +1 -1
- package/dist/utils/uuid.js +145 -0
- package/dist/utils/uuid.js.map +1 -0
- package/package.json +7 -8
- package/docs/assets/css/main.css +0 -2660
- package/docs/assets/images/icons.png +0 -0
- package/docs/assets/images/icons@2x.png +0 -0
- package/docs/assets/images/widgets.png +0 -0
- package/docs/assets/images/widgets@2x.png +0 -0
- package/docs/assets/js/main.js +0 -248
- package/docs/assets/js/search.js +0 -1
- package/docs/classes/AggregatedDeliveryReceipt.html +0 -3184
- package/docs/classes/CancellablePromise.html +0 -3213
- package/docs/classes/ChannelMetadata.html +0 -3050
- package/docs/classes/Client.html +0 -4310
- package/docs/classes/ContentTemplate.html +0 -3116
- package/docs/classes/ContentTemplateVariable.html +0 -3116
- package/docs/classes/Conversation.html +0 -4391
- package/docs/classes/DetailedDeliveryReceipt.html +0 -3163
- package/docs/classes/EmailRecipientDescriptor.html +0 -3098
- package/docs/classes/Media.html +0 -3167
- package/docs/classes/Message.html +0 -3826
- package/docs/classes/MessageBuilder.html +0 -3318
- package/docs/classes/Participant.html +0 -3444
- package/docs/classes/PushNotification.html +0 -3130
- package/docs/classes/RestPaginator.html +0 -3160
- package/docs/classes/UnknownRecipientDescriptor.html +0 -3067
- package/docs/classes/UnsentMessage.html +0 -3042
- package/docs/classes/User.html +0 -3349
- package/docs/index.html +0 -4373
- package/docs/interfaces/ClientOptions.html +0 -3066
- package/docs/interfaces/ConversationBindings.html +0 -3001
- package/docs/interfaces/ConversationEmailBinding.html +0 -3001
- package/docs/interfaces/ConversationLimits.html +0 -3098
- package/docs/interfaces/ConversationState.html +0 -3050
- package/docs/interfaces/ConversationUpdatedEventArgs.html +0 -3001
- package/docs/interfaces/CreateConversationOptions.html +0 -3083
- package/docs/interfaces/LastMessage.html +0 -3050
- package/docs/interfaces/Paginator.html +0 -3141
- package/docs/interfaces/ParticipantBindings.html +0 -3001
- package/docs/interfaces/ParticipantEmailBinding.html +0 -3001
- package/docs/interfaces/PushNotificationData.html +0 -3114
- package/docs/interfaces/SendEmailOptions.html +0 -3034
- package/docs/interfaces/SendMediaOptions.html +0 -3068
- package/docs/modules.html +0 -4374
package/README.md
CHANGED
|
@@ -56,7 +56,7 @@ Releases of `twilio-conversations.js` are hosted on a CDN, and you can include t
|
|
|
56
56
|
directly in your web app using a `<script>` tag.
|
|
57
57
|
|
|
58
58
|
```html
|
|
59
|
-
<script src="https://sdk.twilio.com/js/conversations/
|
|
59
|
+
<script src="https://sdk.twilio.com/js/conversations/v4.0/twilio-conversations.min.js"></script>
|
|
60
60
|
```
|
|
61
61
|
|
|
62
62
|
Using this method, `twilio-conversations.js` will set a browser global `Twilio.Conversations` through which you can use the client:
|
|
@@ -77,7 +77,7 @@ To consume securely use the following script snippet format:
|
|
|
77
77
|
|
|
78
78
|
```html
|
|
79
79
|
<script
|
|
80
|
-
src="https://sdk.twilio.com/js/conversations/releases/
|
|
80
|
+
src="https://sdk.twilio.com/js/conversations/releases/4.0.0/twilio-conversations.min.js"
|
|
81
81
|
integrity="sha256-<HASH FROM THE CHANGELOGS PAGE>"
|
|
82
82
|
crossorigin="anonymous"
|
|
83
83
|
></script>
|
package/builds/browser.esm.js
CHANGED
|
@@ -222,7 +222,6 @@ import 'core-js/modules/es.object.entries.js';
|
|
|
222
222
|
import 'core-js/modules/es.array.find.js';
|
|
223
223
|
import 'core-js/modules/es.array.splice.js';
|
|
224
224
|
import _wrapNativeSuper from '@babel/runtime/helpers/esm/wrapNativeSuper';
|
|
225
|
-
import { v4 } from 'uuid';
|
|
226
225
|
import 'core-js/modules/es.object.freeze.js';
|
|
227
226
|
|
|
228
227
|
function __decorate(decorators, target, key, desc) {
|
|
@@ -8133,7 +8132,15 @@ function PushNotification(data) {
|
|
|
8133
8132
|
this.data = data.data || {};
|
|
8134
8133
|
});
|
|
8135
8134
|
|
|
8136
|
-
var version = "3.0.0";
|
|
8135
|
+
var version = "3.0.1-rc.0";
|
|
8136
|
+
|
|
8137
|
+
/**
|
|
8138
|
+
* Generate a random UUID using the Web Crypto API.
|
|
8139
|
+
* Available in Node.js 14.17+, modern browsers, and React Native.
|
|
8140
|
+
*/
|
|
8141
|
+
var randomUUID = function randomUUID() {
|
|
8142
|
+
return crypto.randomUUID();
|
|
8143
|
+
};
|
|
8137
8144
|
|
|
8138
8145
|
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
8139
8146
|
|
|
@@ -8142,6 +8149,7 @@ function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) {
|
|
|
8142
8149
|
function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
8143
8150
|
|
|
8144
8151
|
function _isNativeReflectConstruct$1() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
8152
|
+
var uuidv4 = randomUUID;
|
|
8145
8153
|
|
|
8146
8154
|
var trimSlashes = function trimSlashes(url) {
|
|
8147
8155
|
return url.replace(/(^\/+|\/+$)/g, "");
|
|
@@ -8366,7 +8374,7 @@ var CommandExecutor = /*#__PURE__*/function () {
|
|
|
8366
8374
|
case 0:
|
|
8367
8375
|
_context4.next = 2;
|
|
8368
8376
|
return this._makeRequest(method, url, requestBody, {
|
|
8369
|
-
"X-Twilio-Mutation-Id":
|
|
8377
|
+
"X-Twilio-Mutation-Id": uuidv4()
|
|
8370
8378
|
});
|
|
8371
8379
|
|
|
8372
8380
|
case 2:
|