Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V5 #617

Merged
merged 124 commits into from
Jul 9, 2024
Merged

V5 #617

Show file tree
Hide file tree
Changes from 83 commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
d81abd2
chore: create v5 branch
szuperaz Apr 9, 2024
78275ef
chore(release): 4.66.0-v5.1 [skip ci]
semantic-release-bot Apr 9, 2024
1abb764
chore: change channel to beta
szuperaz Apr 9, 2024
47195ba
Merge branch 'master' into v5
szuperaz Apr 10, 2024
70f20e4
feat: Update Angular to 15
szuperaz Apr 9, 2024
bd6e3ef
chore: remove unused e2e tests
szuperaz Apr 10, 2024
8f217ee
feat: Update dependecy versions
szuperaz Apr 11, 2024
7505645
docs: Add update guide
szuperaz Apr 11, 2024
b53c5fc
chore: Make sure we use Angular 15.0.x
szuperaz Apr 11, 2024
41e03fd
Merge pull request #588 from GetStream/v5-update-angular
szuperaz Apr 11, 2024
c7e7f2a
chore(release): 5.0.0-v5.1 [skip ci]
semantic-release-bot Apr 11, 2024
cd1a8e3
feat: replace ngx-popperjs with ngx-float-ui
szuperaz Apr 11, 2024
22b23a5
docs: small fixes
szuperaz Apr 11, 2024
4a59eb4
docs: small changes
szuperaz Apr 11, 2024
393db76
feat: add all Angular library dependencies as peer dependencies
szuperaz Apr 11, 2024
ae8905b
Merge pull request #589 from GetStream/v5-peer-dependencies
szuperaz Apr 11, 2024
5c4e8fb
chore(release): 5.0.0-v5.2 [skip ci]
semantic-release-bot Apr 11, 2024
1c85ebb
docs: Update update guide
szuperaz Apr 11, 2024
03cf541
feat: Remove theme-v1
szuperaz Apr 11, 2024
d86c4da
Merge pull request #590 from GetStream/remove-theme-v1
szuperaz Apr 12, 2024
a59f8fc
chore(release): 5.0.0-v5.3 [skip ci]
semantic-release-bot Apr 12, 2024
82227d5
docs: improve upgrade guide
szuperaz Apr 15, 2024
24b0277
fix: typing issue with [email protected] #592
szuperaz Apr 15, 2024
d0e948f
Merge pull request #594 from GetStream/fix-stream-chat-type-issue
szuperaz Apr 15, 2024
f020f94
chore(release): 5.0.0-v5.4 [skip ci]
semantic-release-bot Apr 15, 2024
de6d252
Merge branch 'master' into v5
szuperaz Apr 15, 2024
8fdac8f
chore(release): 5.0.0-v5.5 [skip ci]
semantic-release-bot Apr 15, 2024
4494ed9
feat: remove all deprecated code
szuperaz Apr 15, 2024
51170b4
Merge pull request #596 from GetStream/v5-remove-deprecated-code
szuperaz Apr 17, 2024
1780eb2
chore(release): 5.0.0-v5.6 [skip ci]
semantic-release-bot Apr 17, 2024
a5136b5
feat: make sure `channels$` stream never closes
szuperaz Apr 17, 2024
c9b6ba8
Merge pull request #597 from GetStream/v5-fix-channel-query-error-han…
szuperaz Apr 17, 2024
877d279
chore(release): 5.0.0-v5.7 [skip ci]
semantic-release-bot Apr 17, 2024
ca7877c
fix: message status tooltip trigger
szuperaz Apr 18, 2024
c57586e
Merge pull request #598 from GetStream/v5-context-menu-placement
szuperaz Apr 18, 2024
c935667
chore(release): 5.0.0-v5.8 [skip ci]
semantic-release-bot Apr 18, 2024
bad989d
feat: align the default reaction set with other SDKs #310
szuperaz Apr 18, 2024
b0722ab
Merge pull request #599 from GetStream/v5-reactions-consolidation
szuperaz Apr 18, 2024
a51664d
chore(release): 5.0.0-v5.9 [skip ci]
semantic-release-bot Apr 18, 2024
7cbc6d4
fix: message actions box not displayed
szuperaz Apr 18, 2024
43e9716
chore(release): 5.0.0-v5.10 [skip ci]
semantic-release-bot Apr 18, 2024
cbbf1cd
feat: allow customizing avatar size from CSS #84 #569
szuperaz Apr 18, 2024
55bec1e
feat: Allow customizing icons from CSS #84 #575
szuperaz Apr 23, 2024
1d78bf1
feat: remove size attributom from loading indicator
szuperaz Apr 24, 2024
7ba8a82
Merge branch 'master' into v5
szuperaz Apr 25, 2024
1fe7d28
Merge branch 'v5' into v5-avatar-icon-sizing
szuperaz Apr 25, 2024
d34b7a1
chore(release): 5.0.0-v5.11 [skip ci]
semantic-release-bot Apr 25, 2024
bc85a6f
Merge branch 'master' into v5
szuperaz Apr 25, 2024
985e8f0
Merge branch 'v5' into v5-avatar-icon-sizing
szuperaz Apr 25, 2024
aef2de0
chore(release): 5.0.0-v5.12 [skip ci]
semantic-release-bot Apr 25, 2024
e768f2e
Merge pull request #600 from GetStream/v5-avatar-icon-sizing
szuperaz Apr 26, 2024
9b8480b
chore(release): 5.0.0-v5.13 [skip ci]
semantic-release-bot Apr 26, 2024
0a61d13
fix: apply tooltip positioning to v5 release
szuperaz Apr 26, 2024
a3cc49f
chore(release): 5.0.0-v5.14 [skip ci]
semantic-release-bot Apr 26, 2024
6c0c0eb
Merge branch 'master' into v5
szuperaz May 16, 2024
05d8427
chore(release): 5.0.0-v5.15 [skip ci]
semantic-release-bot May 16, 2024
e173deb
feat: fix message menu positions
szuperaz May 16, 2024
f481505
Merge pull request #608 from GetStream/v5-message-menu-position
szuperaz May 16, 2024
f082459
chore(release): 5.0.0-v5.16 [skip ci]
semantic-release-bot May 16, 2024
c358d91
Merge branch 'master' into v5
szuperaz May 27, 2024
5533e74
chore(release): 5.0.0-v5.17 [skip ci]
semantic-release-bot May 27, 2024
ea6ebb3
Merge branch 'master' into v5
szuperaz Jun 13, 2024
f3840b1
chore(release): 5.0.0-v5.18 [skip ci]
semantic-release-bot Jun 13, 2024
2906138
Merge branch 'master' into v5
szuperaz Jun 17, 2024
1f905c7
chore: fix lint error
szuperaz Jun 17, 2024
f79becb
chore(release): 5.0.0-v5.19 [skip ci]
semantic-release-bot Jun 17, 2024
85a44fe
feat: Keeping track of channel invite now requires opt-in
szuperaz Jun 17, 2024
e1e81b4
Merge pull request #618 from GetStream/v5-disable-channel-invites
szuperaz Jun 17, 2024
4dc5f09
chore(release): 5.0.0-v5.20 [skip ci]
semantic-release-bot Jun 17, 2024
0706f72
feat: refactor message menu UI
szuperaz May 16, 2024
59c6fb6
Merge pull request #615 from GetStream/v5-message-menu-trigger
szuperaz Jun 18, 2024
babc0eb
chore(release): 5.0.0-v5.21 [skip ci]
semantic-release-bot Jun 18, 2024
5d5ee65
feat: change edit message UI
szuperaz Jun 18, 2024
644fe55
Merge pull request #619 from GetStream/v5-edit-message-ui
szuperaz Jun 18, 2024
3b61f75
chore(release): 5.0.0-v5.22 [skip ci]
semantic-release-bot Jun 18, 2024
5fc7b26
docs: small fixes in update guide
szuperaz Jun 18, 2024
3d44ec9
docs: docs and examle update
szuperaz Jun 19, 2024
2f5e592
fix: don't open menu while user is scrolling
szuperaz Jun 19, 2024
53fd897
chore(release): 5.0.0-v5.23 [skip ci]
semantic-release-bot Jun 19, 2024
002755c
docs: Update readme
szuperaz Jun 20, 2024
95733f8
docs: update readme
szuperaz Jun 20, 2024
7c3b740
fix: set SDK header before sending first request
szuperaz Jun 21, 2024
8ff1709
chore(release): 5.0.0-v5.24 [skip ci]
semantic-release-bot Jun 21, 2024
91204fe
feat: check file size before attempting to upload attachment
szuperaz Jun 21, 2024
bce34e6
fix: preserve app settings between user changes (unless API key is ch…
szuperaz Jun 24, 2024
ed749e1
Merge pull request #620 from GetStream/v5-attachment-size-check
szuperaz Jun 24, 2024
6174c6f
chore(release): 5.0.0-v5.25 [skip ci]
semantic-release-bot Jun 24, 2024
c8a8be8
fix: make sure that `channelListSetter` respects the order of channel…
szuperaz Jun 25, 2024
244f279
refactor: channel query extracted into
szuperaz Jun 25, 2024
78b35a5
feat: allow providing custom channel list query
szuperaz Jun 26, 2024
138e06f
Merge pull request #621 from GetStream/v5-custom-channel-query
szuperaz Jun 26, 2024
d4c454b
chore(release): 5.0.0-v5.26 [skip ci]
semantic-release-bot Jun 26, 2024
95048e9
feat: update ngx-float-ui version
szuperaz Jun 26, 2024
c363c55
chore(release): 5.0.0-v5.27 [skip ci]
semantic-release-bot Jun 26, 2024
14adfd7
fix: small CSS fixes
szuperaz Jun 27, 2024
091a670
chore(release): 5.0.0-v5.28 [skip ci]
semantic-release-bot Jun 27, 2024
1bb7819
docs: document multiple channel list
szuperaz Jun 27, 2024
40c9ba2
fix: message to edit wasn't always properly unselected
szuperaz Jun 27, 2024
df933fe
chore(release): 5.0.0-v5.29 [skip ci]
semantic-release-bot Jun 27, 2024
7717df8
fix: thread small UI fixes
szuperaz Jun 27, 2024
63607fd
chore(release): 5.0.0-v5.30 [skip ci]
semantic-release-bot Jun 27, 2024
b9990b8
fix: message status tooltip on iOS
szuperaz Jun 27, 2024
9aa987f
chore(release): 5.0.0-v5.31 [skip ci]
semantic-release-bot Jun 27, 2024
30000ef
fix: only disable user-select for the message bubble, not the whole m…
szuperaz Jun 28, 2024
66b0caa
chore(release): 5.0.0-v5.32 [skip ci]
semantic-release-bot Jun 28, 2024
a6f0f08
fix: desktop message menu is opened even if we have a custom event ha…
szuperaz Jul 1, 2024
8e11a97
fix: update stream-chat-css version
szuperaz Jul 1, 2024
51c198f
chore(release): 5.0.0-v5.33 [skip ci]
semantic-release-bot Jul 1, 2024
d6eabc3
docs: update upgrade guide
szuperaz Jul 1, 2024
2e17132
fix: add space after mentioned user's name
szuperaz Jul 2, 2024
9071a22
chore(release): 5.0.0-v5.34 [skip ci]
semantic-release-bot Jul 3, 2024
67a5bb8
fix: Update ngx-float-ui version
szuperaz Jul 9, 2024
8f8db43
chore(release): 5.0.0-v5.35 [skip ci]
semantic-release-bot Jul 9, 2024
ac00e5c
chore: fix node version
szuperaz Jul 3, 2024
11eff40
fix: ngx-float-ui version
szuperaz Jul 9, 2024
b0c8a2f
chore(release): 5.0.0-v5.36 [skip ci]
semantic-release-bot Jul 9, 2024
73c1969
docs: promote v5 to latest stable in docusaurus
szuperaz Jul 9, 2024
5d2efed
docs: Update docs
szuperaz Jul 9, 2024
b9c14f5
Merge pull request #623 from GetStream/v5-docs
szuperaz Jul 9, 2024
0fdb024
chore: update workflow
szuperaz Jul 2, 2024
304c6ea
chore: fix node version
szuperaz Jul 3, 2024
bced8d0
Merge branch 'master' into v5
szuperaz Jul 9, 2024
90b2c25
chore: use node 18
szuperaz Jul 9, 2024
a77641d
chore(release): 5.0.0-v5.37 [skip ci]
semantic-release-bot Jul 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 29 additions & 8 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{
"root": true,
"ignorePatterns": ["projects/**/*"],
"plugins": ["unused-imports", "cypress", "jasmine"],
"env": {
"jasmine": true
},
"plugins": ["unused-imports"],
"overrides": [
{
"files": ["*.ts"],
Expand All @@ -16,19 +13,38 @@
"eslint:recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@angular-eslint/all",
"plugin:cypress/recommended",
"plugin:jasmine/recommended",
"plugin:prettier/recommended" // This should always be the last in the extends array
],
"rules": {
"@angular-eslint/sort-ngmodule-metadata-arrays": "off",
"@angular-eslint/prefer-on-push-component-change-detection": "off",
"unused-imports/no-unused-imports": "error",
"no-console": ["error", { "allow": ["warn", "error"] }],
"jasmine/no-spec-dupes": [1, "branch"],
"@typescript-eslint/unbound-method": "off"
}
},
{
"files": ["*.spec.ts", "**/mocks/*.ts"],
"parserOptions": {
"project": ["tsconfig.json"],
"createDefaultProgram": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@angular-eslint/all",
"plugin:prettier/recommended" // This should always be the last in the extends array
],
"rules": {
"@angular-eslint/sort-ngmodule-metadata-arrays": "off",
"@angular-eslint/prefer-on-push-component-change-detection": "off",
"unused-imports/no-unused-imports": "error",
"no-console": ["error", { "allow": ["warn", "error"] }],
"@typescript-eslint/unbound-method": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-types": "off"
}
},
{
"files": ["*.html"],
"extends": [
Expand All @@ -39,7 +55,12 @@
"@angular-eslint/template/i18n": "off",
"@angular-eslint/template/cyclomatic-complexity": "off",
"@angular-eslint/template/no-call-expression": "off",
"@angular-eslint/template/no-autofocus": "off"
"@angular-eslint/template/no-autofocus": "off",
"@angular-eslint/template/no-interpolation-in-attributes": "off",
"@angular-eslint/template/button-has-type": "off",
"@angular-eslint/template/no-inline-styles": "off",
"@angular-eslint/template/accessibility-interactive-supports-focus": "off",
"@angular-eslint/template/attributes-order": "off"
}
}
]
Expand Down
19 changes: 6 additions & 13 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ on:
branches:
- master
- beta
- angular-18
- v5
pull_request:
branches:
- master
- beta
- angular-18
- v5
jobs:
workflow:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -45,13 +45,6 @@ jobs:
- name: Unit tests
run: |
npm run test:ci
# - name: E2e tests
# env:
# STREAM_API_KEY: ${{ secrets.API_KEY }}
# STREAM_USER_ID: ${{ secrets.USER_ID }}
# STREAM_USER_TOKEN: ${{ secrets.USER_TOKEN }}
# run: |
# npm run e2e:ci
- name: Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -70,13 +63,13 @@ jobs:
yarn vercel build ${{ github.ref == 'refs/heads/master' && '--prod' || '' }} --token=${{ secrets.VERCEL_TOKEN }} &&
yarn vercel deploy ${{ github.ref == 'refs/heads/master' && '--prod' || '' }} --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
- name: Copy docs from stream-chat-css
run: npm run ${{ (github.ref == 'refs/heads/beta' || contains(github.head_ref, 'beta')) && 'copy-css-docs:v5' || 'copy-css-docs' }}
run: npm run ${{ (github.ref == 'refs/heads/v5' || contains(github.head_ref, 'v5')) && 'copy-css-docs:v5' || 'copy-css-docs' }}
- name: Generate docs
run: |
npm run ${{ (github.ref == 'refs/heads/beta' || contains(github.head_ref, 'beta')) && 'generate-docs:v5' || 'generate-docs' }}
npm run ${{ (github.ref == 'refs/heads/v5' || contains(github.head_ref, 'v5')) && 'generate-docs:v5' || 'generate-docs' }}
- name: Push to docusaurus
uses: GetStream/push-stream-chat-docusaurus-action@main
with:
target-branch: ${{ (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/beta') && 'production' || 'staging' }}
target-branch: ${{ (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/v5') && 'production' || 'staging' }}
env:
DOCUSAURUS_GH_TOKEN: ${{ secrets.DOCUSAURUS_GH_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ chrome-profiler-events*.json
.history/*

# misc
/.angular/cache
/.sass-cache
/connect.lock
/coverage
Expand All @@ -56,3 +57,4 @@ Thumbs.db

# Encapsulated stream-chat-css
projects/stream-chat-angular/src/assets/styles
projects/stream-chat-angular/src/assets/assets
42 changes: 4 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

- [Register](https://getstream.io/chat/trial/) to get an API key for Stream Chat
- [Angular Chat Tutorial](https://getstream.io/chat/angular/tutorial/)
- [Demo Apps](https://getstream.io/chat/demos/)
- [Docs](https://getstream.io/chat/docs/sdk/angular/)
- [Chat UI Kit](https://getstream.io/chat/ui-kit/)
- [Demo application](https://angular-chat-demo-getstreamio.vercel.app/)
- [Codesandbox](https://codesandbox.io/p/devbox/stream-chat-angular-sample-app-gkczc5?file=%2Fsrc%2Fapp%2Fapp.component.ts%3A11%2C32)

With our component library, you can build a variety of chat use cases, including:

Expand Down Expand Up @@ -52,41 +52,13 @@ Check out our current openings and apply via [Stream's website](https://getstrea

### Install with NPM

Run the following command if you are using **Angular 17**
Supported Angular versions: **Angular 15-18**

```shell
npm install stream-chat-angular stream-chat @ngx-translate/core
npm install stream-chat-angular
```

Run the following command if you are using **Angular 16**:

```shell
npm install stream-chat-angular stream-chat @ngx-translate/core
```

Run the following command if you are using **Angular 15**:

```shell
npm install stream-chat-angular stream-chat @ngx-translate/core@14 ngx-popperjs@15
```

Run the following command if you are using **Angular 14**:

```shell
npm install stream-chat-angular stream-chat @ngx-translate/core@14 ngx-popperjs@14
```

Run the following command if you are using **Angular 13**:

```shell
npm install stream-chat-angular stream-chat @ngx-translate/core@14 [email protected] ngx-popperjs@13 --legacy-peer-deps
```

Run this command if you are using **Angular 12**:

```shell
npm install stream-chat-angular stream-chat @ngx-translate/core@14 [email protected] ngx-popperjs@12 --legacy-peer-deps
```
Supported node verison: 18+

## Sample App

Expand All @@ -108,8 +80,6 @@ Run `npm install` to install dependencies.

Run `npm start` and navigate to `http://localhost:4200/`.

Preferred Node version: v16.

## Customization examples

This repository includes a sample app that showcases how you can provide your own template for different components within the SDK:
Expand All @@ -128,8 +98,6 @@ Run `npm install` to install dependencies.

Run `npm run start:customizations-example` and navigate to `http://localhost:4200/`.

Preferred Node version: v16.

## Local development

This repository includes a sample app to test our library.
Expand All @@ -151,5 +119,3 @@ A note about the documentation:
- Documentations for Angular services are generated from doc comments in the source files (not under source control)
- Documentations for inputs and outputs of Angular components are generated from doc comments in the source files (not under source control)
- Everything else in the documentation is written in `mdx` files located in the `docusaurus` folder

Preferred Node version: v16.
12 changes: 10 additions & 2 deletions angular.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"cli": {
"defaultCollection": "@angular-eslint/schematics"
"schematicCollections": ["@angular-eslint/schematics"],
"analytics": false
},
"version": 1,
"newProjectRoot": "projects",
Expand Down Expand Up @@ -323,5 +324,12 @@
}
}
},
"defaultProject": "stream-chat-angular"
"schematics": {
"@angular-eslint/schematics:application": {
"setParserOptionsProject": true
},
"@angular-eslint/schematics:library": {
"setParserOptionsProject": true
}
}
}
5 changes: 4 additions & 1 deletion copy-generated-service-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ fs.readdir(sourcePath, (err: any, files: string[]) => {
}

// Remove the thre prefix from the title
const result = data.replace(/# Class:/g, '#').replace('<T\\>', '');
const result = data
.replace(/# Class:/g, '#')
.replace('<T\\>', '')
.replace('\\', '');

fs.writeFile(`${sourcePath}/${file}`, result, 'utf8', (err: any) => {
if (err) {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading