stream-chat-react 12.5.2 → 12.6.1
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/dist/assets/icons/stream-chat-icons.eot +0 -0
- package/dist/assets/icons/stream-chat-icons.svg +2 -2
- package/dist/assets/icons/stream-chat-icons.ttf +0 -0
- package/dist/assets/icons/stream-chat-icons.woff +0 -0
- package/dist/assets/icons/stream-chat-icons.woff2 +0 -0
- package/dist/components/Avatar/Avatar.d.ts +3 -3
- package/dist/components/Avatar/ChannelAvatar.d.ts +5 -0
- package/dist/components/Avatar/ChannelAvatar.js +8 -0
- package/dist/components/Avatar/GroupAvatar.d.ts +8 -0
- package/dist/components/Avatar/GroupAvatar.js +6 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Avatar/index.js +2 -0
- package/dist/components/ChannelHeader/ChannelHeader.d.ts +3 -3
- package/dist/components/ChannelHeader/ChannelHeader.js +2 -2
- package/dist/components/ChannelList/ChannelList.d.ts +3 -3
- package/dist/components/ChannelList/ChannelList.js +1 -1
- package/dist/components/ChannelPreview/ChannelPreview.d.ts +6 -3
- package/dist/components/ChannelPreview/ChannelPreview.js +4 -2
- package/dist/components/ChannelPreview/ChannelPreviewMessenger.js +2 -2
- package/dist/components/ChannelPreview/hooks/useChannelPreviewInfo.d.ts +1 -0
- package/dist/components/ChannelPreview/hooks/useChannelPreviewInfo.js +10 -6
- package/dist/components/ChannelPreview/utils.d.ts +5 -0
- package/dist/components/ChannelPreview/utils.js +15 -0
- package/dist/components/Chat/hooks/useChat.js +2 -2
- package/dist/components/Message/utils.d.ts +1 -1
- package/dist/components/Message/utils.js +2 -1
- package/dist/css/v2/index.css +2 -2
- package/dist/css/v2/index.layout.css +2 -2
- package/dist/experimental/index.browser.cjs.map +1 -1
- package/dist/experimental/index.node.cjs.map +1 -1
- package/dist/index.browser.cjs +1454 -1384
- package/dist/index.browser.cjs.map +4 -4
- package/dist/index.node.cjs +1370 -1297
- package/dist/index.node.cjs.map +4 -4
- package/dist/scss/v2/AttachmentList/AttachmentList-layout.scss +28 -2
- package/dist/scss/v2/AttachmentList/AttachmentList-theme.scss +9 -1
- package/dist/scss/v2/Avatar/Avatar-layout.scss +48 -0
- package/dist/scss/v2/Avatar/Avatar-theme.scss +5 -0
- package/dist/scss/v2/Icon/Icon-layout.scss +1 -1
- package/dist/types/types.d.ts +1 -0
- package/package.json +7 -5
- package/dist/version.d.ts +0 -1
- package/dist/version.js +0 -1
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
margin: var(--str-chat__attachment-margin);
|
|
261
261
|
|
|
262
262
|
.str-chat__file-icon {
|
|
263
|
-
width: calc(var(--str-chat__spacing-px)* 30);
|
|
263
|
+
width: calc(var(--str-chat__spacing-px) * 30);
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
.str-chat__message-attachment-unsupported__metadata {
|
|
@@ -270,7 +270,6 @@
|
|
|
270
270
|
flex-direction: column;
|
|
271
271
|
align-items: flex-start;
|
|
272
272
|
justify-content: center;
|
|
273
|
-
|
|
274
273
|
}
|
|
275
274
|
|
|
276
275
|
.str-chat__message-attachment-unsupported__title {
|
|
@@ -622,4 +621,31 @@
|
|
|
622
621
|
|
|
623
622
|
.str-chat__attachment-list-angular-host {
|
|
624
623
|
min-width: 0;
|
|
624
|
+
|
|
625
|
+
.str-chat__message-attachment-card--video {
|
|
626
|
+
width: 100%;
|
|
627
|
+
|
|
628
|
+
a {
|
|
629
|
+
display: block;
|
|
630
|
+
width: 100%;
|
|
631
|
+
height: 100%;
|
|
632
|
+
position: relative;
|
|
633
|
+
|
|
634
|
+
.str-chat__message-attachment-card--video-play,
|
|
635
|
+
stream-icon-placeholder {
|
|
636
|
+
position: absolute;
|
|
637
|
+
top: 50%;
|
|
638
|
+
left: 0;
|
|
639
|
+
right: 0;
|
|
640
|
+
margin: auto;
|
|
641
|
+
transform: translateY(-50%);
|
|
642
|
+
width: calc(var(--str-chat__spacing-px) * 36);
|
|
643
|
+
height: calc(var(--str-chat__spacing-px) * 36);
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
img {
|
|
647
|
+
cursor: pointer;
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
}
|
|
625
651
|
}
|
|
@@ -534,8 +534,16 @@
|
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
|
|
537
|
-
|
|
538
537
|
.str-chat-angular__message-attachment-file-single
|
|
539
538
|
.str-chat__message-attachment-file--item-first-row {
|
|
540
539
|
color: var(--str-chat__attachment-list-color);
|
|
541
540
|
}
|
|
541
|
+
|
|
542
|
+
.str-chat__attachment-list-angular-host {
|
|
543
|
+
.str-chat__message-attachment-card--video-play {
|
|
544
|
+
--str-chat-icon-color: var(--str-chat__text-color);
|
|
545
|
+
|
|
546
|
+
background-color: var(--str-chat__secondary-background-color);
|
|
547
|
+
border-radius: var(--str-chat__border-radius-circle);
|
|
548
|
+
}
|
|
549
|
+
}
|
|
@@ -87,3 +87,51 @@
|
|
|
87
87
|
width: calc(var(--str-chat__spacing-px) * 49);
|
|
88
88
|
height: calc(var(--str-chat__spacing-px) * 49);
|
|
89
89
|
}
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
.str-chat__avatar-group {
|
|
93
|
+
display: grid;
|
|
94
|
+
grid-template-columns: repeat(2, 1fr);
|
|
95
|
+
grid-template-rows: repeat(2, 1fr);
|
|
96
|
+
height: var(--str-chat__avatar-size);
|
|
97
|
+
line-height: var(--str-chat__avatar-size);
|
|
98
|
+
width: var(--str-chat__avatar-size);
|
|
99
|
+
min-width: var(--str-chat__avatar-size);
|
|
100
|
+
overflow: hidden;
|
|
101
|
+
|
|
102
|
+
&.str-chat__avatar-group--three-part {
|
|
103
|
+
.str-chat__avatar:nth-child(1) {
|
|
104
|
+
grid-area: 1 / 1 / 3 / 2;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.str-chat__avatar:nth-child(2) {
|
|
108
|
+
grid-area: 1 / 2 / 2 / 3;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.str-chat__avatar:nth-child(3) {
|
|
112
|
+
grid-area: 2 / 2 / 3 / 3;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.str-chat__avatar {
|
|
117
|
+
height: 100%;
|
|
118
|
+
line-height: 100%;
|
|
119
|
+
width: 100%;
|
|
120
|
+
min-width: 100%;
|
|
121
|
+
|
|
122
|
+
.str-chat__avatar-fallback, img {
|
|
123
|
+
border-radius: 0;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&.str-chat__avatar--single .str-chat__avatar-fallback {
|
|
127
|
+
display: flex;
|
|
128
|
+
align-items: center;
|
|
129
|
+
justify-content: center;
|
|
130
|
+
font-size: calc(var(--str-chat__avatar-size) * 0.5);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.str-chat__avatar-fallback {
|
|
134
|
+
font-size: calc(var(--str-chat__avatar-size) * 0.33);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ export type DefaultStreamChatGenerics = ExtendableGenerics & {
|
|
|
45
45
|
channelType: DefaultChannelType;
|
|
46
46
|
commandType: LiteralStringForUnion;
|
|
47
47
|
eventType: UnknownType;
|
|
48
|
+
memberType: UnknownType;
|
|
48
49
|
messageType: DefaultMessageType;
|
|
49
50
|
pollOptionType: UnknownType;
|
|
50
51
|
pollType: UnknownType;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-react",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.6.1",
|
|
4
4
|
"description": "React components to create chat conversations or livestream style chat",
|
|
5
5
|
"author": "GetStream",
|
|
6
6
|
"homepage": "https://getstream.io/chat/",
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
"emoji-mart": "^5.4.0",
|
|
146
146
|
"react": "^18.0.0 || ^17.0.0 || ^16.8.0",
|
|
147
147
|
"react-dom": "^18.0.0 || ^17.0.0 || ^16.8.0",
|
|
148
|
-
"stream-chat": "^8.
|
|
148
|
+
"stream-chat": "^8.45.0"
|
|
149
149
|
},
|
|
150
150
|
"peerDependenciesMeta": {
|
|
151
151
|
"@breezystack/lamejs": {
|
|
@@ -184,9 +184,10 @@
|
|
|
184
184
|
"@ladle/react": "^0.16.0",
|
|
185
185
|
"@playwright/test": "^1.42.1",
|
|
186
186
|
"@semantic-release/changelog": "^6.0.2",
|
|
187
|
+
"@semantic-release/exec": "^6.0.3",
|
|
187
188
|
"@semantic-release/git": "^10.0.1",
|
|
188
189
|
"@stream-io/rollup-plugin-node-builtins": "^2.1.5",
|
|
189
|
-
"@stream-io/stream-chat-css": "^5.
|
|
190
|
+
"@stream-io/stream-chat-css": "^5.4.0",
|
|
190
191
|
"@testing-library/jest-dom": "^6.1.4",
|
|
191
192
|
"@testing-library/react": "^13.1.1",
|
|
192
193
|
"@testing-library/react-hooks": "^8.0.0",
|
|
@@ -221,6 +222,7 @@
|
|
|
221
222
|
"dotenv": "^8.6.0",
|
|
222
223
|
"emoji-mart": "^5.5.2",
|
|
223
224
|
"esbuild": "^0.23.1",
|
|
225
|
+
"esbuild-plugin-replace": "^1.4.0",
|
|
224
226
|
"eslint": "7.14.0",
|
|
225
227
|
"eslint-config-airbnb": "^18.2.1",
|
|
226
228
|
"eslint-config-prettier": "^6.15.0",
|
|
@@ -255,12 +257,12 @@
|
|
|
255
257
|
"react-dom": "^18.1.0",
|
|
256
258
|
"react-test-renderer": "^18.1.0",
|
|
257
259
|
"semantic-release": "^19.0.5",
|
|
258
|
-
"stream-chat": "^8.
|
|
260
|
+
"stream-chat": "^8.45.0",
|
|
259
261
|
"ts-jest": "^29.1.4",
|
|
260
262
|
"typescript": "^5.4.5"
|
|
261
263
|
},
|
|
262
264
|
"scripts": {
|
|
263
|
-
"build": "rm -rf dist &&
|
|
265
|
+
"build": "rm -rf dist && yarn build-translations && yarn bundle",
|
|
264
266
|
"bundle": "concurrently tsc ./scripts/copy-css.sh ./scripts/bundle.mjs",
|
|
265
267
|
"build-translations": "i18next",
|
|
266
268
|
"coverage": "jest --collectCoverage && codecov",
|
package/dist/version.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const version = "0.0.0-development";
|
package/dist/version.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const version = '0.0.0-development';
|