stream-chat-react 12.5.2 → 12.6.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 (40) hide show
  1. package/dist/assets/icons/stream-chat-icons.eot +0 -0
  2. package/dist/assets/icons/stream-chat-icons.svg +2 -2
  3. package/dist/assets/icons/stream-chat-icons.ttf +0 -0
  4. package/dist/assets/icons/stream-chat-icons.woff +0 -0
  5. package/dist/assets/icons/stream-chat-icons.woff2 +0 -0
  6. package/dist/components/Avatar/Avatar.d.ts +3 -3
  7. package/dist/components/Avatar/ChannelAvatar.d.ts +5 -0
  8. package/dist/components/Avatar/ChannelAvatar.js +8 -0
  9. package/dist/components/Avatar/GroupAvatar.d.ts +8 -0
  10. package/dist/components/Avatar/GroupAvatar.js +6 -0
  11. package/dist/components/Avatar/index.d.ts +2 -0
  12. package/dist/components/Avatar/index.js +2 -0
  13. package/dist/components/ChannelHeader/ChannelHeader.d.ts +3 -3
  14. package/dist/components/ChannelHeader/ChannelHeader.js +2 -2
  15. package/dist/components/ChannelList/ChannelList.d.ts +3 -3
  16. package/dist/components/ChannelList/ChannelList.js +1 -1
  17. package/dist/components/ChannelPreview/ChannelPreview.d.ts +6 -3
  18. package/dist/components/ChannelPreview/ChannelPreview.js +4 -2
  19. package/dist/components/ChannelPreview/ChannelPreviewMessenger.js +2 -2
  20. package/dist/components/ChannelPreview/hooks/useChannelPreviewInfo.d.ts +1 -0
  21. package/dist/components/ChannelPreview/hooks/useChannelPreviewInfo.js +10 -6
  22. package/dist/components/ChannelPreview/utils.d.ts +5 -0
  23. package/dist/components/ChannelPreview/utils.js +15 -0
  24. package/dist/components/Message/utils.d.ts +1 -1
  25. package/dist/components/Message/utils.js +2 -1
  26. package/dist/css/v2/index.css +2 -2
  27. package/dist/css/v2/index.layout.css +2 -2
  28. package/dist/experimental/index.browser.cjs.map +1 -1
  29. package/dist/experimental/index.node.cjs.map +1 -1
  30. package/dist/index.browser.cjs +1450 -1375
  31. package/dist/index.browser.cjs.map +4 -4
  32. package/dist/index.node.cjs +1366 -1288
  33. package/dist/index.node.cjs.map +4 -4
  34. package/dist/scss/v2/AttachmentList/AttachmentList-layout.scss +28 -2
  35. package/dist/scss/v2/AttachmentList/AttachmentList-theme.scss +9 -1
  36. package/dist/scss/v2/Avatar/Avatar-layout.scss +48 -0
  37. package/dist/scss/v2/Avatar/Avatar-theme.scss +5 -0
  38. package/dist/scss/v2/Icon/Icon-layout.scss +1 -1
  39. package/dist/types/types.d.ts +1 -0
  40. package/package.json +4 -4
@@ -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
+ }
@@ -57,3 +57,8 @@
57
57
  .str-chat__loading-channels-avatar {
58
58
  border-radius: var(--str-chat__avatar-border-radius);
59
59
  }
60
+
61
+
62
+ .str-chat__avatar-group {
63
+ border-radius: var(--str-chat__avatar-border-radius);
64
+ }
@@ -61,7 +61,7 @@
61
61
  content: '\e809';
62
62
  } /* '' */
63
63
  .str-chat__icon--play::before {
64
- content: '\e80a';
64
+ content: '\e814';
65
65
  } /* '' */
66
66
  .str-chat__icon--reaction::before {
67
67
  content: '\e80b';
@@ -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.5.2",
3
+ "version": "12.6.0",
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.42.0"
148
+ "stream-chat": "^8.45.0"
149
149
  },
150
150
  "peerDependenciesMeta": {
151
151
  "@breezystack/lamejs": {
@@ -186,7 +186,7 @@
186
186
  "@semantic-release/changelog": "^6.0.2",
187
187
  "@semantic-release/git": "^10.0.1",
188
188
  "@stream-io/rollup-plugin-node-builtins": "^2.1.5",
189
- "@stream-io/stream-chat-css": "^5.2.0",
189
+ "@stream-io/stream-chat-css": "^5.4.0",
190
190
  "@testing-library/jest-dom": "^6.1.4",
191
191
  "@testing-library/react": "^13.1.1",
192
192
  "@testing-library/react-hooks": "^8.0.0",
@@ -255,7 +255,7 @@
255
255
  "react-dom": "^18.1.0",
256
256
  "react-test-renderer": "^18.1.0",
257
257
  "semantic-release": "^19.0.5",
258
- "stream-chat": "^8.42.0",
258
+ "stream-chat": "^8.45.0",
259
259
  "ts-jest": "^29.1.4",
260
260
  "typescript": "^5.4.5"
261
261
  },