Skip to content

Commit 7439d47

Browse files
authored
Merge pull request #356 from GetStream/update-stream-chat-css
Update stream chat css
2 parents da8d83d + a57f38b commit 7439d47

File tree

5 files changed

+20
-35
lines changed

5 files changed

+20
-35
lines changed

.github/workflows/workflow.yml

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -45,35 +45,19 @@ jobs:
4545
- name: Unit tests
4646
run: |
4747
npm run test:ci
48-
# Turned off until we have a (pre)release for theming-v2
49-
# - name: E2e tests
50-
# env:
51-
# STREAM_API_KEY: ${{ secrets.API_KEY }}
52-
# STREAM_USER_ID: ${{ secrets.USER_ID }}
53-
# STREAM_USER_TOKEN: ${{ secrets.USER_TOKEN }}
54-
# run: |
55-
# npm run e2e:ci
48+
- name: E2e tests
49+
env:
50+
STREAM_API_KEY: ${{ secrets.API_KEY }}
51+
STREAM_USER_ID: ${{ secrets.USER_ID }}
52+
STREAM_USER_TOKEN: ${{ secrets.USER_TOKEN }}
53+
run: |
54+
npm run e2e:ci
5655
- name: Release
5756
env:
5857
GH_TOKEN: ${{ secrets.GH_TOKEN }}
5958
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
6059
run: npx semantic-release
61-
- name: Get stream-chat-css version
62-
id: stream-chat-css-version
63-
uses: notiz-dev/github-action-json-property@release
64-
with:
65-
path: "package.json"
66-
prop_path: "dependencies.@stream-io/stream-chat-css"
67-
- name: Pull stream-chat-css
68-
uses: actions/checkout@v3
69-
with:
70-
fetch-depth: "0"
71-
repository: GetStream/stream-chat-css
72-
path: stream-chat-css
73-
ref: theming2
7460
- name: Copy docs from stream-chat-css
75-
env:
76-
DOCS_SOURCE: stream-chat-css/docs
7761
run: npm run copy-css-docs
7862
- name: Generate docs
7963
run: |

docusaurus/docs/Angular/basics/upgrade-v3.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Version 4 of stream-chat-angular brings a new and improved theming system. To us
1111

1212
The old theme can still be used with the latest SDK versions however, you might need to update your custom CSS as some changes were introduced to theme-v1.
1313

14+
Updating from theme-v1 to theme-v2 will require to rewrite your custom CSS code as the new theme has a new variable system, and all the components were restructured.
15+
1416
Theme-v1 is now deprecated and will be removed in a future release.
1517

1618
## Theard layout

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@
2626
"e2e:ci": "ng run sample-app:cypress-run --configuration production",
2727
"config:dev": "ANGULAR_ENV=development ts-node set-env.ts",
2828
"config:prod": "ANGULAR_ENV=production ts-node set-env.ts",
29-
"start-docs": "DOCS_SOURCE=node_modules/@stream-io/stream-chat-css/docs npm run generate-docs && npx stream-chat-docusaurus -s",
29+
"start-docs": "npm run generate-docs && npx stream-chat-docusaurus -s",
3030
"build:sample-app": "ng build --stats-json --project sample-app",
3131
"preanalyze:sample-app": "npm run build:sample-app",
3232
"analyze:sample-app": "webpack-bundle-analyzer dist/sample-app/stats.json",
33-
"generate-docs": "npm run typedoc:services && npm run typedoc:components && npm run copy-docs && npm run copy-css-docs $DOCS_SOURCE",
33+
"generate-docs": "npm run typedoc:services && npm run typedoc:components && npm run copy-docs && npm run copy-css-docs",
3434
"typedoc:services": "typedoc --cleanOutputDir true --excludeConstructors true --hideBreadcrumbs true --hideInPageTOC true --excludePrivate true --out temp-service-docs --exclude '!**/*service.ts' --excludeNotDocumented --tsconfig projects/stream-chat-angular/tsconfig.lib.json projects/stream-chat-angular/src/public-api.ts",
3535
"typedoc:components": "typedoc --cleanOutputDir true --excludeConstructors true --sort source-order --hideBreadcrumbs true --hideInPageTOC true --excludePrivate true --excludeNotDocumented --out temp-component-docs --exclude '!**/*component.ts' --tsconfig projects/stream-chat-angular/tsconfig.lib.json projects/stream-chat-angular/src/public-api.ts",
3636
"copy-docs": "ts-node copy-generated-service-docs.ts & (ts-node remove-generated-component-docs-content && ts-node copy-generated-component-docs.ts)",
3737
"copy-css": "rm -rf projects/stream-chat-angular/src/assets/styles && copyfiles --up 4 \"node_modules/@stream-io/stream-chat-css/dist/**/*\" projects/stream-chat-angular/src/assets/styles",
38-
"copy-css-docs": "./copy-css-docs.sh $DOCS_SOURCE"
38+
"copy-css-docs": "./copy-css-docs.sh node_modules/@stream-io/stream-chat-css/docs"
3939
},
4040
"lint-staged": {
4141
"**/*": [
@@ -117,7 +117,7 @@
117117
"@ngx-translate/core": "^13.0.0",
118118
"@ngx-translate/http-loader": "^6.0.0",
119119
"@popperjs/core": "^2.11.5",
120-
"@stream-io/stream-chat-css": "2.9.0",
120+
"@stream-io/stream-chat-css": "3.0.0-theming2.1",
121121
"@stream-io/transliterate": "^1.5.2",
122122
"angular-mentions": "^1.4.0",
123123
"dayjs": "^1.10.7",

projects/sample-app/src/app/app.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ export class AppComponent implements AfterViewInit {
5151
.subscribe((isThreadOpen) => (this.isThreadOpen = isThreadOpen));
5252
this.themeVersion = themeService.themeVersion;
5353
this.theme$ = themeService.theme$;
54-
themeService.theme$.next('dark');
5554
}
5655

5756
ngAfterViewInit(): void {

0 commit comments

Comments
 (0)