@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.
Files changed (59) hide show
  1. package/README.md +2 -2
  2. package/builds/browser.esm.js +11 -3
  3. package/builds/browser.esm.js.map +1 -1
  4. package/builds/browser.js +11 -3
  5. package/builds/browser.js.map +1 -1
  6. package/builds/lib.esm.js +11 -3
  7. package/builds/lib.js +11 -3
  8. package/builds/lib.js.map +1 -1
  9. package/builds/twilio-conversations.js +65 -1180
  10. package/builds/twilio-conversations.js.map +1 -1
  11. package/builds/twilio-conversations.min.js +1 -1
  12. package/builds/twilio-conversations.min.js.map +1 -1
  13. package/dist/command-executor.js +3 -2
  14. package/dist/command-executor.js.map +1 -1
  15. package/dist/packages/conversations/package.json.js +1 -1
  16. package/dist/utils/uuid.js +145 -0
  17. package/dist/utils/uuid.js.map +1 -0
  18. package/package.json +7 -8
  19. package/docs/assets/css/main.css +0 -2660
  20. package/docs/assets/images/icons.png +0 -0
  21. package/docs/assets/images/icons@2x.png +0 -0
  22. package/docs/assets/images/widgets.png +0 -0
  23. package/docs/assets/images/widgets@2x.png +0 -0
  24. package/docs/assets/js/main.js +0 -248
  25. package/docs/assets/js/search.js +0 -1
  26. package/docs/classes/AggregatedDeliveryReceipt.html +0 -3184
  27. package/docs/classes/CancellablePromise.html +0 -3213
  28. package/docs/classes/ChannelMetadata.html +0 -3050
  29. package/docs/classes/Client.html +0 -4310
  30. package/docs/classes/ContentTemplate.html +0 -3116
  31. package/docs/classes/ContentTemplateVariable.html +0 -3116
  32. package/docs/classes/Conversation.html +0 -4391
  33. package/docs/classes/DetailedDeliveryReceipt.html +0 -3163
  34. package/docs/classes/EmailRecipientDescriptor.html +0 -3098
  35. package/docs/classes/Media.html +0 -3167
  36. package/docs/classes/Message.html +0 -3826
  37. package/docs/classes/MessageBuilder.html +0 -3318
  38. package/docs/classes/Participant.html +0 -3444
  39. package/docs/classes/PushNotification.html +0 -3130
  40. package/docs/classes/RestPaginator.html +0 -3160
  41. package/docs/classes/UnknownRecipientDescriptor.html +0 -3067
  42. package/docs/classes/UnsentMessage.html +0 -3042
  43. package/docs/classes/User.html +0 -3349
  44. package/docs/index.html +0 -4373
  45. package/docs/interfaces/ClientOptions.html +0 -3066
  46. package/docs/interfaces/ConversationBindings.html +0 -3001
  47. package/docs/interfaces/ConversationEmailBinding.html +0 -3001
  48. package/docs/interfaces/ConversationLimits.html +0 -3098
  49. package/docs/interfaces/ConversationState.html +0 -3050
  50. package/docs/interfaces/ConversationUpdatedEventArgs.html +0 -3001
  51. package/docs/interfaces/CreateConversationOptions.html +0 -3083
  52. package/docs/interfaces/LastMessage.html +0 -3050
  53. package/docs/interfaces/Paginator.html +0 -3141
  54. package/docs/interfaces/ParticipantBindings.html +0 -3001
  55. package/docs/interfaces/ParticipantEmailBinding.html +0 -3001
  56. package/docs/interfaces/PushNotificationData.html +0 -3114
  57. package/docs/interfaces/SendEmailOptions.html +0 -3034
  58. package/docs/interfaces/SendMediaOptions.html +0 -3068
  59. 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": uuid.v4()
8415
+ "X-Twilio-Mutation-Id": uuidv4()
8408
8416
  });
8409
8417
 
8410
8418
  case 2: