Skip to content

Commit d86c4da

Browse files
authored
Merge pull request #590 from GetStream/remove-theme-v1
feat: Remove theme-v1
2 parents 1c85ebb + 03cf541 commit d86c4da

File tree

76 files changed

+303
-1159
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+303
-1159
lines changed

docusaurus/angular_versioned_docs/version-5/basics/upgrade-v4.mdx

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,31 @@ title: Upgrade from v4
99

1010
Angular versions 12-14 are no longer supported. You can use the [Angular update guide](https://update.angular.io/) to update your application.
1111

12+
### Theme v1 is removed
13+
14+
Theme-v1 was deprecated in version 4. Most customers already use theme-v2 which used to be imported from this path:
15+
16+
```scss
17+
@import "stream-chat-angular/src/assets/styles/v2/scss/index.scss";
18+
```
19+
20+
From version 5 this path should be used:
21+
22+
```scss
23+
@import "stream-chat-angular/src/assets/styles/scss/index.scss";
24+
25+
// or if you're using CSS
26+
@import "stream-chat-angular/src/assets/styles/css/index.css";
27+
```
28+
29+
No futher action is required for customers who were already using theme-v2.
30+
31+
Customers who used to use theme-v1 now need to use theme-v2. 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. To help you get started please refer our [theming guide](../theming/introduction.mdx).
32+
33+
### Removed deprecated features
34+
35+
- The [`MessageActionsBoxComponent`](../../components/MessageActionsBoxComponent) no longer accepts the `isOpen` input, the same is true for the [`messageActionsBoxTemplate$`](../../services/CustomTemplatesService/#messageactionsboxtemplate). The `Message` component will take care of hiding/showing the action box component.
36+
1237
### Type changes
1338

1439
- Event handlers with `Function` type are changed to `() => void`

docusaurus/angular_versioned_docs/version-5/code-examples/ionic-guide.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Add this to your `tsconfig.json` file to the `compilerOptions` part:
5252
Import CSS in your `global.scss` file:
5353

5454
```
55-
@import "~stream-chat-angular/src/assets/styles/v2/scss/index.scss";
55+
@import "~stream-chat-angular/src/assets/styles/scss/index.scss";
5656
```
5757

5858
Add the module imports required by `stream-chat-angular` to the `app.module.ts` file:

docusaurus/angular_versioned_docs/version-5/code-examples/responsive-layout.mdx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ title: Responsive layout
66
import ChatUILayoutScreenshot from "../assets/chat-ui-layout-screenshot.png";
77
import ChannelHeaderWithMenu from "../assets/channel-header-with-menu-screenshot.png";
88

9-
:::caution
10-
This example is only applicable if you're using [theme-v2](../theming/introduction.mdx).
11-
:::
12-
139
Our SDK gives you maximum control over the layout of your chat application. This tutorial shows you a simple example of creating a layout.
1410

1511
## Channel list, channel, and thread layout

docusaurus/angular_versioned_docs/version-5/components/AttachmentListComponent.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ The following section details how the width and height of images and videos uplo
6666

6767
#### Maximum size
6868

69-
You can control the maximum size of images and videos with the [`--str-chat__attachment-max-width`](../theming/component-variables.mdx) CSS variable (available only in [theme-v2](../theming/introduction.mdx)). The value of this variable must be a value that can be computed to a valid pixel value using the [`getComputedStyle`](https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle) method (for example: `300px`, `10rem`, `calc(300px - var(--margin))`, but not `100%`). If you provide an invalid value, the image and video sizing can break, which can lead to scrolling issues inside the message list (for example the message list isn't scrolled to the bottom when you open a channel).
69+
You can control the maximum size of images and videos with the [`--str-chat__attachment-max-width`](../theming/component-variables.mdx) CSS variable. The value of this variable must be a value that can be computed to a valid pixel value using the [`getComputedStyle`](https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle) method (for example: `300px`, `10rem`, `calc(300px - var(--margin))`, but not `100%`). If you provide an invalid value, the image and video sizing can break, which can lead to scrolling issues inside the message list (for example the message list isn't scrolled to the bottom when you open a channel).
7070

7171
If you set an invalid value to the variable, you'll see a warning on the browser's console:
7272

@@ -122,7 +122,7 @@ The id of the message the attachments belong to
122122

123123
#### Defined in
124124

125-
[lib/attachment-list/attachment-list.component.ts:40](https://github.com/GetStream/stream-chat-angular/blob/f9a1611/projects/stream-chat-angular/src/lib/attachment-list/attachment-list.component.ts#L40)
125+
[projects/stream-chat-angular/src/lib/attachment-list/attachment-list.component.ts:39](https://github.com/GetStream/stream-chat-angular/blob/540ce0e4b9c0cd9fe86b510c531fb30f34f5bf84/projects/stream-chat-angular/src/lib/attachment-list/attachment-list.component.ts#L39)
126126

127127
---
128128

@@ -134,30 +134,30 @@ The parent id of the message the attachments belong to
134134

135135
#### Defined in
136136

137-
[lib/attachment-list/attachment-list.component.ts:44](https://github.com/GetStream/stream-chat-angular/blob/f9a1611/projects/stream-chat-angular/src/lib/attachment-list/attachment-list.component.ts#L44)
137+
[projects/stream-chat-angular/src/lib/attachment-list/attachment-list.component.ts:43](https://github.com/GetStream/stream-chat-angular/blob/540ce0e4b9c0cd9fe86b510c531fb30f34f5bf84/projects/stream-chat-angular/src/lib/attachment-list/attachment-list.component.ts#L43)
138138

139139
---
140140

141141
### attachments
142142

143-
**attachments**: `Attachment`<`DefaultStreamChatGenerics`\>[] = `[]`
143+
**attachments**: `Attachment`\<`DefaultStreamChatGenerics`\>[] = `[]`
144144

145145
The attachments to display
146146

147147
#### Defined in
148148

149-
[lib/attachment-list/attachment-list.component.ts:48](https://github.com/GetStream/stream-chat-angular/blob/f9a1611/projects/stream-chat-angular/src/lib/attachment-list/attachment-list.component.ts#L48)
149+
[projects/stream-chat-angular/src/lib/attachment-list/attachment-list.component.ts:47](https://github.com/GetStream/stream-chat-angular/blob/540ce0e4b9c0cd9fe86b510c531fb30f34f5bf84/projects/stream-chat-angular/src/lib/attachment-list/attachment-list.component.ts#L47)
150150

151151
---
152152

153153
### imageModalStateChange
154154

155-
`Readonly` **imageModalStateChange**: `EventEmitter`<`"opened"` \| `"closed"`\>
155+
`Readonly` **imageModalStateChange**: `EventEmitter`\<`"closed"` \| `"opened"`\>
156156

157157
Emits the state of the image carousel window
158158

159159
#### Defined in
160160

161-
[lib/attachment-list/attachment-list.component.ts:52](https://github.com/GetStream/stream-chat-angular/blob/f9a1611/projects/stream-chat-angular/src/lib/attachment-list/attachment-list.component.ts#L52)
161+
[projects/stream-chat-angular/src/lib/attachment-list/attachment-list.component.ts:51](https://github.com/GetStream/stream-chat-angular/blob/540ce0e4b9c0cd9fe86b510c531fb30f34f5bf84/projects/stream-chat-angular/src/lib/attachment-list/attachment-list.component.ts#L51)
162162

163163
[//]: # "End of generated content"

docusaurus/angular_versioned_docs/version-5/components/AttachmentPreviewListComponent.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,36 +41,36 @@ You can provide your own attachment preview list component by the [`CustomTempla
4141

4242
### attachmentUploads$
4343

44-
**attachmentUploads$**: `undefined` \| `Observable`<`AttachmentUpload`<`DefaultStreamChatGenerics`\>[]\>
44+
**attachmentUploads$**: `undefined` \| `Observable`\<`AttachmentUpload`\<`DefaultStreamChatGenerics`\>[]\>
4545

4646
A stream that emits the current file uploads and their states
4747

4848
#### Defined in
4949

50-
[lib/attachment-preview-list/attachment-preview-list.component.ts:18](https://github.com/GetStream/stream-chat-angular/blob/f9a1611/projects/stream-chat-angular/src/lib/attachment-preview-list/attachment-preview-list.component.ts#L18)
50+
[projects/stream-chat-angular/src/lib/attachment-preview-list/attachment-preview-list.component.ts:17](https://github.com/GetStream/stream-chat-angular/blob/540ce0e4b9c0cd9fe86b510c531fb30f34f5bf84/projects/stream-chat-angular/src/lib/attachment-preview-list/attachment-preview-list.component.ts#L17)
5151

5252
---
5353

5454
### retryAttachmentUpload
5555

56-
`Readonly` **retryAttachmentUpload**: `EventEmitter`<`File`\>
56+
`Readonly` **retryAttachmentUpload**: `EventEmitter`\<`File`\>
5757

5858
An output to notify the parent component if the user tries to retry a failed upload
5959

6060
#### Defined in
6161

62-
[lib/attachment-preview-list/attachment-preview-list.component.ts:22](https://github.com/GetStream/stream-chat-angular/blob/f9a1611/projects/stream-chat-angular/src/lib/attachment-preview-list/attachment-preview-list.component.ts#L22)
62+
[projects/stream-chat-angular/src/lib/attachment-preview-list/attachment-preview-list.component.ts:21](https://github.com/GetStream/stream-chat-angular/blob/540ce0e4b9c0cd9fe86b510c531fb30f34f5bf84/projects/stream-chat-angular/src/lib/attachment-preview-list/attachment-preview-list.component.ts#L21)
6363

6464
---
6565

6666
### deleteAttachment
6767

68-
`Readonly` **deleteAttachment**: `EventEmitter`<`AttachmentUpload`<`DefaultStreamChatGenerics`\>\>
68+
`Readonly` **deleteAttachment**: `EventEmitter`\<`AttachmentUpload`\<`DefaultStreamChatGenerics`\>\>
6969

7070
An output to notify the parent component if the user wants to delete a file
7171

7272
#### Defined in
7373

74-
[lib/attachment-preview-list/attachment-preview-list.component.ts:26](https://github.com/GetStream/stream-chat-angular/blob/f9a1611/projects/stream-chat-angular/src/lib/attachment-preview-list/attachment-preview-list.component.ts#L26)
74+
[projects/stream-chat-angular/src/lib/attachment-preview-list/attachment-preview-list.component.ts:25](https://github.com/GetStream/stream-chat-angular/blob/540ce0e4b9c0cd9fe86b510c531fb30f34f5bf84/projects/stream-chat-angular/src/lib/attachment-preview-list/attachment-preview-list.component.ts#L25)
7575

7676
[//]: # "End of generated content"

docusaurus/angular_versioned_docs/version-5/components/AutocompleteTextareaComponent.mdx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ TextareaInterface.value
5151

5252
#### Defined in
5353

54-
[lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts:49](https://github.com/GetStream/stream-chat-angular/blob/f9a1611/projects/stream-chat-angular/src/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts#L49)
54+
[projects/stream-chat-angular/src/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts:49](https://github.com/GetStream/stream-chat-angular/blob/540ce0e4b9c0cd9fe86b510c531fb30f34f5bf84/projects/stream-chat-angular/src/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts#L49)
5555

5656
---
5757

@@ -67,7 +67,7 @@ TextareaInterface.placeholder
6767

6868
#### Defined in
6969

70-
[lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts:53](https://github.com/GetStream/stream-chat-angular/blob/f9a1611/projects/stream-chat-angular/src/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts#L53)
70+
[projects/stream-chat-angular/src/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts:53](https://github.com/GetStream/stream-chat-angular/blob/540ce0e4b9c0cd9fe86b510c531fb30f34f5bf84/projects/stream-chat-angular/src/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts#L53)
7171

7272
---
7373

@@ -83,13 +83,13 @@ TextareaInterface.areMentionsEnabled
8383

8484
#### Defined in
8585

86-
[lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts:57](https://github.com/GetStream/stream-chat-angular/blob/f9a1611/projects/stream-chat-angular/src/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts#L57)
86+
[projects/stream-chat-angular/src/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts:57](https://github.com/GetStream/stream-chat-angular/blob/540ce0e4b9c0cd9fe86b510c531fb30f34f5bf84/projects/stream-chat-angular/src/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts#L57)
8787

8888
---
8989

9090
### inputMode
9191

92-
**inputMode**: `"desktop"` \| `"mobile"`
92+
**inputMode**: `"mobile"` \| `"desktop"`
9393

9494
See [`MessageInputConfigService`](../services/MessageInputConfigService.mdx) for more information
9595

@@ -99,7 +99,7 @@ TextareaInterface.inputMode
9999

100100
#### Defined in
101101

102-
[lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts:61](https://github.com/GetStream/stream-chat-angular/blob/f9a1611/projects/stream-chat-angular/src/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts#L61)
102+
[projects/stream-chat-angular/src/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts:61](https://github.com/GetStream/stream-chat-angular/blob/540ce0e4b9c0cd9fe86b510c531fb30f34f5bf84/projects/stream-chat-angular/src/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts#L61)
103103

104104
---
105105

@@ -115,7 +115,7 @@ TextareaInterface.mentionScope
115115

116116
#### Defined in
117117

118-
[lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts:65](https://github.com/GetStream/stream-chat-angular/blob/f9a1611/projects/stream-chat-angular/src/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts#L65)
118+
[projects/stream-chat-angular/src/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts:65](https://github.com/GetStream/stream-chat-angular/blob/540ce0e4b9c0cd9fe86b510c531fb30f34f5bf84/projects/stream-chat-angular/src/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts#L65)
119119

120120
---
121121

@@ -131,13 +131,13 @@ TextareaInterface.autoFocus
131131

132132
#### Defined in
133133

134-
[lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts:69](https://github.com/GetStream/stream-chat-angular/blob/f9a1611/projects/stream-chat-angular/src/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts#L69)
134+
[projects/stream-chat-angular/src/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts:69](https://github.com/GetStream/stream-chat-angular/blob/540ce0e4b9c0cd9fe86b510c531fb30f34f5bf84/projects/stream-chat-angular/src/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts#L69)
135135

136136
---
137137

138138
### valueChange
139139

140-
`Readonly` **valueChange**: `EventEmitter`<`string`\>
140+
`Readonly` **valueChange**: `EventEmitter`\<`string`\>
141141

142142
Emits the current value of the input element when a user types.
143143

@@ -147,13 +147,13 @@ TextareaInterface.valueChange
147147

148148
#### Defined in
149149

150-
[lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts:73](https://github.com/GetStream/stream-chat-angular/blob/f9a1611/projects/stream-chat-angular/src/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts#L73)
150+
[projects/stream-chat-angular/src/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts:73](https://github.com/GetStream/stream-chat-angular/blob/540ce0e4b9c0cd9fe86b510c531fb30f34f5bf84/projects/stream-chat-angular/src/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts#L73)
151151

152152
---
153153

154154
### send
155155

156-
`Readonly` **send**: `EventEmitter`<`void`\>
156+
`Readonly` **send**: `EventEmitter`\<`void`\>
157157

158158
Emits when a user triggers a message send event (this happens when they hit the `Enter` key).
159159

@@ -163,13 +163,13 @@ TextareaInterface.send
163163

164164
#### Defined in
165165

166-
[lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts:77](https://github.com/GetStream/stream-chat-angular/blob/f9a1611/projects/stream-chat-angular/src/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts#L77)
166+
[projects/stream-chat-angular/src/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts:77](https://github.com/GetStream/stream-chat-angular/blob/540ce0e4b9c0cd9fe86b510c531fb30f34f5bf84/projects/stream-chat-angular/src/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts#L77)
167167

168168
---
169169

170170
### userMentions
171171

172-
`Readonly` **userMentions**: `EventEmitter`<`UserResponse`<`DefaultGenerics`\>[]\>
172+
`Readonly` **userMentions**: `EventEmitter`\<`UserResponse`\<`DefaultGenerics`\>[]\>
173173

174174
Emits the array of users that are mentioned in the message, it is updated when a user mentions a new user or deletes a mention.
175175

@@ -179,6 +179,6 @@ TextareaInterface.userMentions
179179

180180
#### Defined in
181181

182-
[lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts:81](https://github.com/GetStream/stream-chat-angular/blob/f9a1611/projects/stream-chat-angular/src/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts#L81)
182+
[projects/stream-chat-angular/src/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts:81](https://github.com/GetStream/stream-chat-angular/blob/540ce0e4b9c0cd9fe86b510c531fb30f34f5bf84/projects/stream-chat-angular/src/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.ts#L81)
183183

184184
[//]: # "End of generated content"

0 commit comments

Comments
 (0)