@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.
- package/builds/browser.esm.js +51 -2
- package/builds/browser.esm.js.map +1 -1
- package/builds/browser.js +61 -13
- package/builds/browser.js.map +1 -1
- package/builds/lib.d.ts +0 -1
- package/builds/lib.esm.d.ts +0 -1
- package/builds/lib.esm.js +51 -2
- package/builds/lib.js +61 -13
- package/builds/lib.js.map +1 -1
- package/builds/twilio-conversations.js +14748 -15156
- 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/conversation.js +1 -2
- package/dist/conversation.js.map +1 -1
- package/dist/data/conversations.js +1 -2
- package/dist/data/conversations.js.map +1 -1
- package/dist/message.js +1 -2
- package/dist/message.js.map +1 -1
- package/dist/packages/conversations/package.json.js +1 -1
- package/dist/participant.js +1 -2
- package/dist/participant.js.map +1 -1
- package/dist/user.js +1 -2
- package/dist/user.js.map +1 -1
- package/dist/util/index.js +36 -1
- package/dist/util/index.js.map +1 -1
- package/package.json +5 -6
- 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.esm.js
CHANGED
|
@@ -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.
|
|
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
|
|