@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/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/v3.0/twilio-conversations.min.js"></script>
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/3.0.0/twilio-conversations.min.js"
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>
@@ -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": v4()
8377
+ "X-Twilio-Mutation-Id": uuidv4()
8370
8378
  });
8371
8379
 
8372
8380
  case 2: