@twilio/conversations 2.6.0 → 2.6.1-rc.1
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 +1 -1
- package/builds/browser.esm.js +9 -5
- package/builds/browser.esm.js.map +1 -1
- package/builds/browser.js +9 -5
- package/builds/browser.js.map +1 -1
- package/builds/lib.esm.js +9 -5
- package/builds/lib.js +9 -5
- package/builds/lib.js.map +1 -1
- package/builds/twilio-conversations.js +331 -156
- package/builds/twilio-conversations.js.map +1 -0
- package/builds/twilio-conversations.min.js +2 -1
- package/builds/twilio-conversations.min.js.map +1 -0
- package/dist/aggregated-delivery-receipt.js +0 -2
- package/dist/aggregated-delivery-receipt.js.map +1 -1
- package/dist/channel-metadata-client.js +0 -3
- package/dist/channel-metadata-client.js.map +1 -1
- package/dist/client.js +0 -37
- package/dist/client.js.map +1 -1
- package/dist/command-executor.js +0 -5
- package/dist/command-executor.js.map +1 -1
- package/dist/configuration.js +0 -7
- package/dist/configuration.js.map +1 -1
- package/dist/content-client.js +0 -7
- package/dist/content-client.js.map +1 -1
- package/dist/content-template.js +0 -4
- package/dist/content-template.js.map +1 -1
- package/dist/conversation.js +0 -34
- package/dist/conversation.js.map +1 -1
- package/dist/data/conversations.js +8 -3
- package/dist/data/conversations.js.map +1 -1
- package/dist/data/messages.js +0 -6
- package/dist/data/messages.js.map +1 -1
- package/dist/data/participants.js +0 -6
- package/dist/data/participants.js.map +1 -1
- package/dist/data/users.js +0 -6
- package/dist/data/users.js.map +1 -1
- package/dist/detailed-delivery-receipt.js +0 -2
- package/dist/detailed-delivery-receipt.js.map +1 -1
- package/dist/interfaces/rules.js +0 -9
- package/dist/interfaces/rules.js.map +1 -1
- package/dist/logger.js +0 -23
- package/dist/logger.js.map +1 -1
- package/dist/media.js +0 -7
- package/dist/media.js.map +1 -1
- package/dist/message-builder.js +0 -12
- package/dist/message-builder.js.map +1 -1
- package/dist/message-recipients-client.js +0 -4
- package/dist/message-recipients-client.js.map +1 -1
- package/dist/message.js +0 -21
- package/dist/message.js.map +1 -1
- package/dist/packages/conversations/package.json.js +1 -1
- package/dist/participant.js +0 -13
- package/dist/participant.js.map +1 -1
- package/dist/push-notification.js +0 -5
- package/dist/push-notification.js.map +1 -1
- package/dist/rest-paginator.js +0 -6
- package/dist/rest-paginator.js.map +1 -1
- package/dist/services/network.js +0 -7
- package/dist/services/network.js.map +1 -1
- package/dist/services/typing-indicator.js +2 -1
- package/dist/services/typing-indicator.js.map +1 -1
- package/dist/unsent-message.js +0 -5
- package/dist/unsent-message.js.map +1 -1
- package/dist/user.js +0 -11
- package/dist/user.js.map +1 -1
- package/dist/util/deferred.js +0 -6
- package/dist/util/deferred.js.map +1 -1
- package/docs/assets/js/search.js +1 -1
- package/docs/classes/Client.html +4 -4
- package/docs/classes/Media.html +2 -2
- package/docs/classes/Message.html +8 -8
- package/docs/classes/MessageBuilder.html +2 -2
- package/docs/classes/UnsentMessage.html +2 -2
- package/docs/index.html +2 -6
- package/docs/modules.html +1 -5
- package/package.json +2 -2
- package/docs/classes/CancellablePromise.html +0 -3213
package/README.md
CHANGED
@@ -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/2.6.
|
80
|
+
src="https://sdk.twilio.com/js/conversations/releases/2.6.1/twilio-conversations.min.js"
|
81
81
|
integrity="sha256-<HASH FROM THE CHANGELOGS PAGE>"
|
82
82
|
crossorigin="anonymous"
|
83
83
|
></script>
|
package/builds/browser.esm.js
CHANGED
@@ -7103,6 +7103,8 @@ var Conversations = /*#__PURE__*/function (_ReplayEventEmitter) {
|
|
7103
7103
|
createdBy: body.created_by,
|
7104
7104
|
attributes: body.attributes,
|
7105
7105
|
channel: body.sync_objects.conversation,
|
7106
|
+
roster: body.sync_objects.participants,
|
7107
|
+
messages: body.sync_objects.messages,
|
7106
7108
|
notificationLevel: body === null || body === void 0 ? void 0 : body.notification_level,
|
7107
7109
|
sid: sid
|
7108
7110
|
};
|
@@ -7148,8 +7150,10 @@ var Conversations = /*#__PURE__*/function (_ReplayEventEmitter) {
|
|
7148
7150
|
uniqueName: body.unique_name,
|
7149
7151
|
createdBy: body.created_by,
|
7150
7152
|
attributes: body.attributes,
|
7151
|
-
channel: "".concat(sid, ".channel"),
|
7152
|
-
|
7153
|
+
channel: body.sync_objects.conversation || "".concat(sid, ".channel"),
|
7154
|
+
roster: body.sync_objects.participants,
|
7155
|
+
messages: body.sync_objects.messages,
|
7156
|
+
notificationLevel: body === null || body === void 0 ? void 0 : body.notification_level,
|
7153
7157
|
sid: sid
|
7154
7158
|
};
|
7155
7159
|
return _context6.abrupt("return", this._upsertConversation("sync", sid, data));
|
@@ -7486,7 +7490,7 @@ var Conversations = /*#__PURE__*/function (_ReplayEventEmitter) {
|
|
7486
7490
|
status: conversationDescriptor.status,
|
7487
7491
|
channel: conversationDescriptor.sync_objects.conversation,
|
7488
7492
|
messages: conversationDescriptor.sync_objects.messages,
|
7489
|
-
roster: "".concat(conversationDescriptor.conversation_sid, ".roster"),
|
7493
|
+
roster: conversationDescriptor.sync_objects.participants || "".concat(conversationDescriptor.conversation_sid, ".roster"),
|
7490
7494
|
lastConsumedMessageIndex: conversationDescriptor.last_read_message_index,
|
7491
7495
|
notificationLevel: conversationDescriptor.notification_level
|
7492
7496
|
};
|
@@ -7909,7 +7913,7 @@ var TypingIndicator = /*#__PURE__*/function () {
|
|
7909
7913
|
}
|
7910
7914
|
|
7911
7915
|
conversation._participants.forEach(function (participant) {
|
7912
|
-
if (participant.identity !== message.identity) {
|
7916
|
+
if (participant.identity !== message.identity && participant.type !== "apple") {
|
7913
7917
|
return;
|
7914
7918
|
}
|
7915
7919
|
|
@@ -8025,7 +8029,7 @@ function PushNotification(data) {
|
|
8025
8029
|
this.data = data.data || {};
|
8026
8030
|
});
|
8027
8031
|
|
8028
|
-
var version = "2.6.
|
8032
|
+
var version = "2.6.1-rc.1";
|
8029
8033
|
|
8030
8034
|
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; }
|
8031
8035
|
|