stream-chat-angular 3.0.0-beta.9 → 3.1.0

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 (35) hide show
  1. package/README.md +44 -12
  2. package/assets/version.d.ts +1 -1
  3. package/bundles/stream-chat-angular.umd.js +188 -96
  4. package/bundles/stream-chat-angular.umd.js.map +1 -1
  5. package/esm2015/assets/version.js +2 -2
  6. package/esm2015/lib/attachment-list/attachment-list.component.js +9 -2
  7. package/esm2015/lib/attachment-preview-list/attachment-preview-list.component.js +2 -2
  8. package/esm2015/lib/attachment.service.js +10 -1
  9. package/esm2015/lib/channel.service.js +42 -17
  10. package/esm2015/lib/icon/icon.component.js +2 -2
  11. package/esm2015/lib/message/message.component.js +7 -2
  12. package/esm2015/lib/message-input/message-input.component.js +8 -3
  13. package/esm2015/lib/message-list/message-list.component.js +87 -43
  14. package/esm2015/lib/types.js +1 -1
  15. package/fesm2015/stream-chat-angular.js +169 -75
  16. package/fesm2015/stream-chat-angular.js.map +1 -1
  17. package/lib/attachment-list/attachment-list.component.d.ts +1 -0
  18. package/lib/channel.service.d.ts +28 -2
  19. package/lib/icon/icon.component.d.ts +1 -1
  20. package/lib/message-list/message-list.component.d.ts +9 -2
  21. package/lib/types.d.ts +1 -1
  22. package/package.json +2 -2
  23. package/src/assets/styles/css/index.css +1 -1
  24. package/src/assets/styles/css/index.css.map +1 -1
  25. package/src/assets/styles/scss/ActionsBox.scss +2 -2
  26. package/src/assets/styles/scss/ChannelList.scss +6 -0
  27. package/src/assets/styles/scss/ChannelSearch.scss +12 -1
  28. package/src/assets/styles/scss/Message.scss +104 -93
  29. package/src/assets/styles/scss/MessageInput.scss +8 -2
  30. package/src/assets/styles/scss/MessageInputFlat.scss +6 -0
  31. package/src/assets/styles/scss/MessageNotification.scss +6 -18
  32. package/src/assets/styles/scss/Thread.scss +25 -5
  33. package/src/assets/styles/scss/VirtualMessage.scss +1 -0
  34. package/src/assets/styles/scss/_base.scss +4 -0
  35. package/src/assets/version.ts +1 -1
package/README.md CHANGED
@@ -30,15 +30,38 @@ The best way to get started is to follow the [Angular Chat Tutorial](https://get
30
30
  Stream is free for most side and hobby projects. To qualify, your project/company must have no more than 5 team members and earn less than $10k in monthly revenue.
31
31
  For complete pricing and details visit our [Chat Pricing Page](https://getstream.io/chat/pricing/).
32
32
 
33
+ ## Docs
34
+
35
+ The [docs](https://getstream.io/chat/docs/sdk/angular/) provide a brief description about the components and services in the library.
36
+
37
+ The Angular library is created using the [stream-chat-js](https://github.com/getstream/stream-chat-js) library. For the most common use cases our services should give a nice abstraction over this library, however you might need it for more advanced customization, the [documentation](https://getstream.io/chat/docs/js/) is on our website.
38
+
39
+ ## Contributing
40
+
41
+ We welcome code changes that improve this library or fix a problem. Please make sure to follow all best practices and add tests, if applicable, before submitting a pull request on GitHub. We are pleased to merge your code into the official repository if it meets a need. Make sure to sign our [Contributor License Agreement (CLA)](https://docs.google.com/forms/d/e/1FAIpQLScFKsKkAJI7mhCr7K9rEIOpqIDThrWxuvxnwUq2XkHyG154vQ/viewform) first. See our license file for more details.
42
+
43
+ ## We are hiring!
44
+
45
+ We recently closed a [$38 million Series B funding round](https://techcrunch.com/2021/03/04/stream-raises-38m-as-its-chat-and-activity-feed-apis-power-communications-for-1b-users/) and are actively growing.
46
+ Our APIs are used by more than a billion end-users, and by working at Stream, you have the chance to make a huge impact on a team of very strong engineers.
47
+
48
+ Check out our current openings and apply via [Stream's website](https://getstream.io/team/#jobs).
49
+
33
50
  ## Installation
34
51
 
35
52
  ### Install with NPM
36
53
 
37
- ```
38
- npm install stream-chat-angular @stream-io/stream-chat-css stream-chat @ngx-translate/core
54
+ Run the following command if you are using **Angular 13**:
55
+
56
+ ```shell
57
+ npm install stream-chat-angular stream-chat @ngx-translate/core
39
58
  ```
40
59
 
41
- **Important note** If you are using **Angular 12** you will need to add `--legacy-peer-deps` flag as `@ngx-translate/core`'s newest version only supports Angular 13.
60
+ Run this command if you are using **Angular 12**:
61
+
62
+ ```shell
63
+ npm install stream-chat-angular stream-chat@5 @ngx-translate/core --legacy-peer-deps
64
+ ```
42
65
 
43
66
  ## Sample App
44
67
 
@@ -56,19 +79,28 @@ STREAM_USER_TOKEN=<Your user token>
56
79
 
57
80
  Run `npm start` and navigate to `http://localhost:4200/`.
58
81
 
59
- ## Docs
82
+ ## Customization examples
60
83
 
61
- The [docs](https://getstream.io/chat/docs/sdk/angular/) provide a brief description about the components and services in the library.
84
+ This repository includes a sample app that showcases how you can provide your own template for different components within the SDK:
62
85
 
63
- The Angular library is created using the [stream-chat-js](https://github.com/getstream/stream-chat-js) library. For the most common use cases our services should give a nice abstraction over this library, however you might need it for more advanced customization, the [documentation](https://getstream.io/chat/docs/js/) is on our website.
86
+ To run the app:
64
87
 
65
- ## Contributing
88
+ Create a file named `.env` in the root directory with the following content:
66
89
 
67
- We welcome code changes that improve this library or fix a problem. Please make sure to follow all best practices and add tests, if applicable, before submitting a pull request on GitHub. We are pleased to merge your code into the official repository if it meets a need. Make sure to sign our [Contributor License Agreement (CLA)](https://docs.google.com/forms/d/e/1FAIpQLScFKsKkAJI7mhCr7K9rEIOpqIDThrWxuvxnwUq2XkHyG154vQ/viewform) first. See our license file for more details.
90
+ ```
91
+ STREAM_API_KEY=<Your API key>
92
+ STREAM_USER_ID=<Your user ID>
93
+ STREAM_USER_TOKEN=<Your user token>
94
+ ```
68
95
 
69
- ## We are hiring!
96
+ Run `npm start:customizations-example` and navigate to `http://localhost:4200/`.
70
97
 
71
- We recently closed a [$38 million Series B funding round](https://techcrunch.com/2021/03/04/stream-raises-38m-as-its-chat-and-activity-feed-apis-power-communications-for-1b-users/) and are actively growing.
72
- Our APIs are used by more than a billion end-users, and by working at Stream, you have the chance to make a huge impact on a team of very strong engineers.
98
+ ## Local development
73
99
 
74
- Check out our current openings and apply via [Stream's website](https://getstream.io/team/#jobs).
100
+ Run `npm install` in the root of the project. You can use the `npm run start:dev` command to start the SampleApp with automatic reloading.
101
+
102
+ A note about the documentation:
103
+
104
+ - Documentations for Angular services are generated from doc comments in the source files (not under source control)
105
+ - Documentations for inputs and outputs of Angular components are generated from doc comments in the source files (not under source control)
106
+ - Everything else in the documentation is written in `mdx` files located in the `docusaurus` folder
@@ -1 +1 @@
1
- export declare const version = "3.0.0-beta.9";
1
+ export declare const version = "3.1.0";