@twilio/conversations 2.6.0-rc.1 → 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.
Files changed (66) hide show
  1. package/README.md +1 -1
  2. package/builds/browser.esm.js +9 -5
  3. package/builds/browser.esm.js.map +1 -1
  4. package/builds/browser.js +9 -5
  5. package/builds/browser.js.map +1 -1
  6. package/builds/lib.esm.js +9 -5
  7. package/builds/lib.js +9 -5
  8. package/builds/lib.js.map +1 -1
  9. package/builds/twilio-conversations.js +10 -5
  10. package/builds/twilio-conversations.js.map +1 -0
  11. package/builds/twilio-conversations.min.js +2 -1
  12. package/builds/twilio-conversations.min.js.map +1 -0
  13. package/dist/aggregated-delivery-receipt.js +0 -2
  14. package/dist/aggregated-delivery-receipt.js.map +1 -1
  15. package/dist/channel-metadata-client.js +0 -3
  16. package/dist/channel-metadata-client.js.map +1 -1
  17. package/dist/client.js +0 -37
  18. package/dist/client.js.map +1 -1
  19. package/dist/command-executor.js +0 -5
  20. package/dist/command-executor.js.map +1 -1
  21. package/dist/configuration.js +0 -7
  22. package/dist/configuration.js.map +1 -1
  23. package/dist/content-client.js +0 -7
  24. package/dist/content-client.js.map +1 -1
  25. package/dist/content-template.js +0 -4
  26. package/dist/content-template.js.map +1 -1
  27. package/dist/conversation.js +0 -34
  28. package/dist/conversation.js.map +1 -1
  29. package/dist/data/conversations.js +8 -13
  30. package/dist/data/conversations.js.map +1 -1
  31. package/dist/data/participants.js +0 -6
  32. package/dist/data/participants.js.map +1 -1
  33. package/dist/data/users.js +0 -6
  34. package/dist/data/users.js.map +1 -1
  35. package/dist/detailed-delivery-receipt.js +0 -2
  36. package/dist/detailed-delivery-receipt.js.map +1 -1
  37. package/dist/interfaces/rules.js +0 -9
  38. package/dist/interfaces/rules.js.map +1 -1
  39. package/dist/logger.js +0 -23
  40. package/dist/logger.js.map +1 -1
  41. package/dist/media.js +0 -7
  42. package/dist/media.js.map +1 -1
  43. package/dist/message-builder.js +0 -12
  44. package/dist/message-builder.js.map +1 -1
  45. package/dist/message-recipients-client.js +0 -4
  46. package/dist/message-recipients-client.js.map +1 -1
  47. package/dist/message.js +0 -21
  48. package/dist/message.js.map +1 -1
  49. package/dist/packages/conversations/package.json.js +1 -1
  50. package/dist/participant.js +0 -13
  51. package/dist/participant.js.map +1 -1
  52. package/dist/push-notification.js +0 -5
  53. package/dist/push-notification.js.map +1 -1
  54. package/dist/rest-paginator.js +0 -6
  55. package/dist/rest-paginator.js.map +1 -1
  56. package/dist/services/typing-indicator.js +2 -8
  57. package/dist/services/typing-indicator.js.map +1 -1
  58. package/dist/unsent-message.js +0 -5
  59. package/dist/unsent-message.js.map +1 -1
  60. package/dist/user.js +0 -11
  61. package/dist/user.js.map +1 -1
  62. package/dist/util/deferred.js +0 -6
  63. package/dist/util/deferred.js.map +1 -1
  64. package/docs/index.html +2 -2
  65. package/docs/modules.html +1 -1
  66. package/package.json +2 -2
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.0/twilio-conversations.min.js"
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>
@@ -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
- // notificationLevel: body?.notification_level,
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.0-rc.1";
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