@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/builds/browser.js
CHANGED
|
@@ -225,7 +225,6 @@ require('core-js/modules/es.object.entries.js');
|
|
|
225
225
|
require('core-js/modules/es.array.find.js');
|
|
226
226
|
require('core-js/modules/es.array.splice.js');
|
|
227
227
|
var _wrapNativeSuper = require('@babel/runtime/helpers/wrapNativeSuper');
|
|
228
|
-
var uuid = require('uuid');
|
|
229
228
|
require('core-js/modules/es.object.freeze.js');
|
|
230
229
|
|
|
231
230
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -8171,7 +8170,15 @@ function PushNotification(data) {
|
|
|
8171
8170
|
this.data = data.data || {};
|
|
8172
8171
|
});
|
|
8173
8172
|
|
|
8174
|
-
var version = "3.0.0";
|
|
8173
|
+
var version = "3.0.1-rc.0";
|
|
8174
|
+
|
|
8175
|
+
/**
|
|
8176
|
+
* Generate a random UUID using the Web Crypto API.
|
|
8177
|
+
* Available in Node.js 14.17+, modern browsers, and React Native.
|
|
8178
|
+
*/
|
|
8179
|
+
var randomUUID = function randomUUID() {
|
|
8180
|
+
return crypto.randomUUID();
|
|
8181
|
+
};
|
|
8175
8182
|
|
|
8176
8183
|
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; }
|
|
8177
8184
|
|
|
@@ -8180,6 +8187,7 @@ function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) {
|
|
|
8180
8187
|
function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf__default["default"](Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf__default["default"](this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn__default["default"](this, result); }; }
|
|
8181
8188
|
|
|
8182
8189
|
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; } }
|
|
8190
|
+
var uuidv4 = randomUUID;
|
|
8183
8191
|
|
|
8184
8192
|
var trimSlashes = function trimSlashes(url) {
|
|
8185
8193
|
return url.replace(/(^\/+|\/+$)/g, "");
|
|
@@ -8404,7 +8412,7 @@ var CommandExecutor = /*#__PURE__*/function () {
|
|
|
8404
8412
|
case 0:
|
|
8405
8413
|
_context4.next = 2;
|
|
8406
8414
|
return this._makeRequest(method, url, requestBody, {
|
|
8407
|
-
"X-Twilio-Mutation-Id":
|
|
8415
|
+
"X-Twilio-Mutation-Id": uuidv4()
|
|
8408
8416
|
});
|
|
8409
8417
|
|
|
8410
8418
|
case 2:
|