@twilio/conversations 2.6.5 → 2.6.6-canary.13

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 (68) hide show
  1. package/builds/browser.esm.js +51 -2
  2. package/builds/browser.esm.js.map +1 -1
  3. package/builds/browser.js +61 -13
  4. package/builds/browser.js.map +1 -1
  5. package/builds/lib.d.ts +0 -1
  6. package/builds/lib.esm.d.ts +0 -1
  7. package/builds/lib.esm.js +51 -2
  8. package/builds/lib.js +61 -13
  9. package/builds/lib.js.map +1 -1
  10. package/builds/twilio-conversations.js +14748 -15156
  11. package/builds/twilio-conversations.js.map +1 -1
  12. package/builds/twilio-conversations.min.js +1 -1
  13. package/builds/twilio-conversations.min.js.map +1 -1
  14. package/dist/conversation.js +1 -2
  15. package/dist/conversation.js.map +1 -1
  16. package/dist/data/conversations.js +1 -2
  17. package/dist/data/conversations.js.map +1 -1
  18. package/dist/message.js +1 -2
  19. package/dist/message.js.map +1 -1
  20. package/dist/packages/conversations/package.json.js +1 -1
  21. package/dist/participant.js +1 -2
  22. package/dist/participant.js.map +1 -1
  23. package/dist/user.js +1 -2
  24. package/dist/user.js.map +1 -1
  25. package/dist/util/index.js +36 -1
  26. package/dist/util/index.js.map +1 -1
  27. package/package.json +5 -6
  28. package/docs/assets/css/main.css +0 -2660
  29. package/docs/assets/images/icons.png +0 -0
  30. package/docs/assets/images/icons@2x.png +0 -0
  31. package/docs/assets/images/widgets.png +0 -0
  32. package/docs/assets/images/widgets@2x.png +0 -0
  33. package/docs/assets/js/main.js +0 -248
  34. package/docs/assets/js/search.js +0 -1
  35. package/docs/classes/AggregatedDeliveryReceipt.html +0 -3184
  36. package/docs/classes/CancellablePromise.html +0 -3213
  37. package/docs/classes/ChannelMetadata.html +0 -3050
  38. package/docs/classes/Client.html +0 -4310
  39. package/docs/classes/ContentTemplate.html +0 -3116
  40. package/docs/classes/ContentTemplateVariable.html +0 -3116
  41. package/docs/classes/Conversation.html +0 -4391
  42. package/docs/classes/DetailedDeliveryReceipt.html +0 -3163
  43. package/docs/classes/EmailRecipientDescriptor.html +0 -3098
  44. package/docs/classes/Media.html +0 -3167
  45. package/docs/classes/Message.html +0 -3826
  46. package/docs/classes/MessageBuilder.html +0 -3318
  47. package/docs/classes/Participant.html +0 -3444
  48. package/docs/classes/PushNotification.html +0 -3130
  49. package/docs/classes/RestPaginator.html +0 -3160
  50. package/docs/classes/UnknownRecipientDescriptor.html +0 -3067
  51. package/docs/classes/UnsentMessage.html +0 -3042
  52. package/docs/classes/User.html +0 -3349
  53. package/docs/index.html +0 -4373
  54. package/docs/interfaces/ClientOptions.html +0 -3066
  55. package/docs/interfaces/ConversationBindings.html +0 -3001
  56. package/docs/interfaces/ConversationEmailBinding.html +0 -3001
  57. package/docs/interfaces/ConversationLimits.html +0 -3098
  58. package/docs/interfaces/ConversationState.html +0 -3050
  59. package/docs/interfaces/ConversationUpdatedEventArgs.html +0 -3001
  60. package/docs/interfaces/CreateConversationOptions.html +0 -3083
  61. package/docs/interfaces/LastMessage.html +0 -3050
  62. package/docs/interfaces/Paginator.html +0 -3141
  63. package/docs/interfaces/ParticipantBindings.html +0 -3001
  64. package/docs/interfaces/ParticipantEmailBinding.html +0 -3001
  65. package/docs/interfaces/PushNotificationData.html +0 -3114
  66. package/docs/interfaces/SendEmailOptions.html +0 -3034
  67. package/docs/interfaces/SendMediaOptions.html +0 -3068
  68. package/docs/modules.html +0 -4374
@@ -172,7 +172,6 @@ import { custom, objectSchema, literal, validateTypesAsync, validateTypes, nonEm
172
172
  import _toConsumableArray from '@babel/runtime/helpers/esm/toConsumableArray';
173
173
  import 'core-js/modules/es.array.includes.js';
174
174
  import { ReplayEventEmitter } from '@twilio/replay-event-emitter';
175
- import isEqual from 'lodash.isequal';
176
175
  import 'core-js/modules/es.array.slice.js';
177
176
  import 'core-js/modules/es.function.name.js';
178
177
  import 'core-js/modules/es.regexp.test.js';
@@ -536,6 +535,56 @@ var UriBuilder = /*#__PURE__*/function () {
536
535
 
537
536
  return UriBuilder;
538
537
  }();
538
+ /**
539
+ * Deep equality check for objects
540
+ * @param a - first value to compare
541
+ * @param b - second value to compare
542
+ * @returns true if values are deeply equal
543
+ */
544
+
545
+
546
+ function isEqual(a, b) {
547
+ if (a === b) {
548
+ return true;
549
+ }
550
+
551
+ if (a === null || b === null || a === undefined || b === undefined) {
552
+ return a === b;
553
+ }
554
+
555
+ if (_typeof(a) !== _typeof(b)) {
556
+ return false;
557
+ }
558
+
559
+ if (_typeof(a) !== "object") {
560
+ return a === b;
561
+ }
562
+
563
+ if (Array.isArray(a) && Array.isArray(b)) {
564
+ if (a.length !== b.length) {
565
+ return false;
566
+ }
567
+
568
+ return a.every(function (item, index) {
569
+ return isEqual(item, b[index]);
570
+ });
571
+ }
572
+
573
+ if (Array.isArray(a) || Array.isArray(b)) {
574
+ return false;
575
+ }
576
+
577
+ var aKeys = Object.keys(a);
578
+ var bKeys = Object.keys(b);
579
+
580
+ if (aKeys.length !== bKeys.length) {
581
+ return false;
582
+ }
583
+
584
+ return aKeys.every(function (key) {
585
+ return isEqual(a[key], b[key]);
586
+ });
587
+ }
539
588
 
540
589
  var json = custom(function (value) {
541
590
  return [["string", "number", "boolean", "object"].includes(_typeof(value)), "a JSON type"];
@@ -8085,7 +8134,7 @@ function PushNotification(data) {
8085
8134
  this.data = data.data || {};
8086
8135
  });
8087
8136
 
8088
- var version = "2.6.5";
8137
+ var version = "2.7.0";
8089
8138
 
8090
8139
  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; }
8091
8140