@twilio/conversations 2.0.0-rc.1 → 2.0.0-rc.3
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/CHANGELOG.md +33 -0
- package/README.md +3 -3
- package/dist/browser.js +2338 -2672
- package/dist/browser.js.map +1 -1
- package/dist/docs/assets/js/search.js +1 -1
- package/dist/docs/classes/AggregatedDeliveryReceipt.html +22 -6
- package/dist/docs/classes/Client.html +78 -33
- package/dist/docs/classes/Conversation.html +33 -17
- package/dist/docs/classes/DetailedDeliveryReceipt.html +22 -6
- package/dist/docs/classes/Media.html +23 -7
- package/dist/docs/classes/Message.html +23 -7
- package/dist/docs/classes/MessageBuilder.html +3280 -0
- package/dist/docs/classes/Participant.html +23 -7
- package/dist/docs/classes/PushNotification.html +24 -8
- package/dist/docs/classes/RestPaginator.html +28 -9
- package/dist/docs/classes/UnsentMessage.html +3144 -0
- package/dist/docs/classes/User.html +25 -9
- package/dist/docs/index.html +67 -26
- package/dist/docs/interfaces/ClientOptions.html +22 -6
- package/dist/docs/interfaces/ConversationState.html +22 -6
- package/dist/docs/interfaces/CreateConversationOptions.html +22 -6
- package/dist/docs/interfaces/LastMessage.html +22 -6
- package/dist/docs/interfaces/Paginator.html +3243 -0
- package/dist/docs/interfaces/PushNotificationData.html +3168 -0
- package/dist/docs/interfaces/SendEmailOptions.html +22 -6
- package/dist/docs/interfaces/SendMediaOptions.html +22 -6
- package/dist/docs/modules.html +66 -25
- package/dist/lib.d.ts +232 -57
- package/dist/lib.js +2263 -2126
- package/dist/lib.js.map +1 -1
- package/dist/react-native.js +487 -868
- package/dist/react-native.js.map +1 -1
- package/dist/twilio-conversations.js +23616 -23207
- package/dist/twilio-conversations.min.js +14 -2
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,39 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [2.0.0-rc.3](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.0-rc.2...@twilio/conversations@2.0.0-rc.3) (2021-10-13)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @twilio/conversations
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
## [2.0.0-rc.2](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.0-rc.1...@twilio/conversations@2.0.0-rc.2) (2021-10-13)
|
15
|
+
|
16
|
+
|
17
|
+
### ⚠ BREAKING CHANGES
|
18
|
+
|
19
|
+
* Disallow null Conversation.updateFriendlyName
|
20
|
+
* Disallow null for client options
|
21
|
+
* Remove default exports from Conversations
|
22
|
+
* Client.reachabilityEnabled can now throw an error.
|
23
|
+
|
24
|
+
### Bug Fixes
|
25
|
+
|
26
|
+
* Add missing exports ([74d08ce](https://github.com/twilio/rtd-sdk-monorepo-js/commit/74d08ce00a8a4cf0b961dde3570f5c7bd7a1e1f9))
|
27
|
+
* Allow all JSON values as properties in addNonChatParticipant ([ddbea1c](https://github.com/twilio/rtd-sdk-monorepo-js/commit/ddbea1c0d0d26b488661ef123883316f7926b456))
|
28
|
+
* Disallow null Conversation.updateFriendlyName ([7e4b556](https://github.com/twilio/rtd-sdk-monorepo-js/commit/7e4b5563e2a016f1904d9b37cfc063592712f0a6))
|
29
|
+
* Disallow null for client options ([c5435f9](https://github.com/twilio/rtd-sdk-monorepo-js/commit/c5435f9fb9dadf11483e2c7884c334a040c06330))
|
30
|
+
* Fix client user initialization problem ([043546d](https://github.com/twilio/rtd-sdk-monorepo-js/commit/043546d872300fda4db70d9c04461f944dfa5936))
|
31
|
+
* Remove default exports from Conversations ([38e2e24](https://github.com/twilio/rtd-sdk-monorepo-js/commit/38e2e24512425da4ba0f1670dcf37d8ccf1ac67e))
|
32
|
+
* Reset currentState on push unregister ([590991c](https://github.com/twilio/rtd-sdk-monorepo-js/commit/590991c841a78b3c7e88a05629090a2de5a8f9da))
|
33
|
+
* Resubscribe to push notification on re-register ([709847f](https://github.com/twilio/rtd-sdk-monorepo-js/commit/709847f8462890214197cf1af769f41b56bfbccc))
|
34
|
+
* Throw an error if reachabilityEnabled was accessed before client init ([3fd3293](https://github.com/twilio/rtd-sdk-monorepo-js/commit/3fd32937d7e42d6df815efab35ded3b93a671556))
|
35
|
+
* UnsentMessage.send now returns a proper value ([c71a0a9](https://github.com/twilio/rtd-sdk-monorepo-js/commit/c71a0a9a9618c09f5d02dbee6bc2d122d9008383))
|
36
|
+
|
37
|
+
|
38
|
+
|
6
39
|
## [2.0.0-rc.1](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.0-rc.0...@twilio/conversations@2.0.0-rc.1) (2021-10-04)
|
7
40
|
|
8
41
|
|
package/README.md
CHANGED
@@ -31,7 +31,7 @@ const client = await Conversations.Client.create(token);
|
|
31
31
|
|
32
32
|
The SDK could also be imported using the ES module syntax:
|
33
33
|
```
|
34
|
-
import Conversations from '@twilio/conversations';
|
34
|
+
import { Conversations } from '@twilio/conversations';
|
35
35
|
const client = await Conversations.Client.create(token);
|
36
36
|
// Use client
|
37
37
|
```
|
@@ -41,7 +41,7 @@ const client = await Conversations.Client.create(token);
|
|
41
41
|
Releases of `twilio-conversations.js` are hosted on a CDN, and you can include these
|
42
42
|
directly in your web app using a `<script>` tag.
|
43
43
|
```html
|
44
|
-
<script src="https://media.twiliocdn.com/sdk/js/conversations/
|
44
|
+
<script src="https://media.twiliocdn.com/sdk/js/conversations/v2.0/twilio-conversations.min.js"></script>
|
45
45
|
```
|
46
46
|
Using this method, `twilio-conversations.js` will set a browser global `Twilio.Conversations` through which you can use the client :
|
47
47
|
```
|
@@ -67,7 +67,7 @@ number. While less flexible it is significantly more secure, which is required b
|
|
67
67
|
To consume securely use the following script snippet format:
|
68
68
|
|
69
69
|
```html
|
70
|
-
<script src="https://media.twiliocdn.com/sdk/js/conversations/releases/
|
70
|
+
<script src="https://media.twiliocdn.com/sdk/js/conversations/releases/2.0.0/twilio-conversations.min.js"
|
71
71
|
integrity="sha256-<HASH FROM THE CHANGELOGS PAGE>"
|
72
72
|
crossorigin="anonymous"></script>
|
73
73
|
```
|