stream-chat-react 10.4.1 → 10.4.3

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/browser.full-bundle.js +46 -32
  2. package/dist/browser.full-bundle.js.map +1 -1
  3. package/dist/browser.full-bundle.min.js +3 -3
  4. package/dist/browser.full-bundle.min.js.map +1 -1
  5. package/dist/components/Chat/Chat.d.ts.map +1 -1
  6. package/dist/components/Chat/Chat.js +6 -3
  7. package/dist/components/InfiniteScrollPaginator/InfiniteScroll.d.ts +0 -1
  8. package/dist/components/InfiniteScrollPaginator/InfiniteScroll.d.ts.map +1 -1
  9. package/dist/components/InfiniteScrollPaginator/InfiniteScroll.js +9 -7
  10. package/dist/components/MessageInput/hooks/useCooldownTimer.d.ts.map +1 -1
  11. package/dist/components/MessageInput/hooks/useCooldownTimer.js +26 -13
  12. package/dist/components/MessageInput/hooks/useUserTrigger.d.ts.map +1 -1
  13. package/dist/components/MessageInput/hooks/useUserTrigger.js +2 -1
  14. package/dist/components/MessageList/MessageList.d.ts +5 -1
  15. package/dist/components/MessageList/MessageList.d.ts.map +1 -1
  16. package/dist/components/MessageList/MessageList.js +4 -2
  17. package/dist/components/MessageList/hooks/useMessageListScrollManager.d.ts +1 -0
  18. package/dist/components/MessageList/hooks/useMessageListScrollManager.d.ts.map +1 -1
  19. package/dist/components/MessageList/hooks/useMessageListScrollManager.js +6 -5
  20. package/dist/components/MessageList/hooks/useScrollLocationLogic.d.ts +1 -1
  21. package/dist/components/MessageList/hooks/useScrollLocationLogic.d.ts.map +1 -1
  22. package/dist/components/MessageList/hooks/useScrollLocationLogic.js +2 -1
  23. package/dist/css/index.css +1 -1
  24. package/dist/css/v2/index.css +1 -1
  25. package/dist/css/v2/index.css.map +1 -1
  26. package/dist/css/v2/index.layout.css +1 -1
  27. package/dist/css/v2/index.layout.css.map +1 -1
  28. package/dist/index.cjs.js +45 -31
  29. package/dist/index.cjs.js.map +1 -1
  30. package/dist/scss/Card.scss +1 -1
  31. package/dist/scss/ChannelHeader.scss +1 -1
  32. package/dist/scss/MessageInput.scss +1 -1
  33. package/dist/scss/TypingIndicator.scss +1 -1
  34. package/dist/scss/_variables.scss +1 -1
  35. package/dist/scss/v2/AttachmentList/AttachmentList-layout.scss +11 -13
  36. package/dist/scss/v2/Message/Message-theme.scss +4 -0
  37. package/dist/utils.js +1 -1
  38. package/dist/version.d.ts +1 -1
  39. package/dist/version.js +1 -1
  40. package/package.json +8 -8
@@ -35,7 +35,7 @@
35
35
 
36
36
  &--content {
37
37
  padding: var(--xs-p) var(--sm-p);
38
- margin: calc(var(--xs-m) * -1);
38
+ margin: calc(-1 * var(--xs-m));
39
39
  display: flex;
40
40
  flex-direction: row;
41
41
  align-items: center;
@@ -65,7 +65,7 @@
65
65
 
66
66
  &-right {
67
67
  display: flex;
68
- margin: 0 calc(var(--xxs-m) * -1);
68
+ margin: 0 calc(-1 * var(--xxs-m));
69
69
 
70
70
  &-button-wrapper {
71
71
  position: relative;
@@ -207,7 +207,7 @@
207
207
  padding: 0 var(--md-p);
208
208
  display: flex;
209
209
  align-items: center;
210
- margin: 0 calc(var(--xs-m) * -1);
210
+ margin: 0 calc(-1 * var(--xs-m));
211
211
 
212
212
  &--entity {
213
213
  min-width: 24px;
@@ -11,7 +11,7 @@
11
11
  display: flex;
12
12
 
13
13
  .str-chat__avatar {
14
- margin-right: calc(var(--xs-m) * -1);
14
+ margin-right: calc(-1 * var(--xs-m));
15
15
 
16
16
  &:last-of-type {
17
17
  margin-right: var(--xs-m);
@@ -127,7 +127,7 @@ $border-radius: 16px;
127
127
  --xxl-m: calc(var(--spacing-unit) * 8); // 64px
128
128
 
129
129
  /* miscellaneous */
130
- --assetsPath: $assetsPath;
130
+ --assetsPath: '#{$assetsPath}';
131
131
 
132
132
  /* accent colors */
133
133
  --accent_blue: #005fff;
@@ -94,20 +94,18 @@
94
94
  }
95
95
 
96
96
  // Images uploaded from files
97
- .str-chat__message-attachment--image:not(.str-chat__message-attachment--card) {
98
- img {
99
- @include utils.clamped-height-from-original-image-dimensions(
100
- '--str-chat__attachment-max-width',
101
- '--str-chat__attachment-max-width'
102
- );
97
+ .str-chat__message-attachment--image:not(.str-chat__message-attachment--card) > img {
98
+ @include utils.clamped-height-from-original-image-dimensions(
99
+ '--str-chat__attachment-max-width',
100
+ '--str-chat__attachment-max-width'
101
+ );
103
102
 
104
- // CDN resize requires max-width and height/max-height to be present on this element
105
- max-width: var(--str-chat__attachment-max-width);
106
- max-height: var(--str-chat__attachment-max-width);
107
- object-fit: cover;
108
- width: 100%;
109
- cursor: zoom-in;
110
- }
103
+ // CDN resize requires max-width and height/max-height to be present on this element
104
+ max-width: var(--str-chat__attachment-max-width);
105
+ max-height: var(--str-chat__attachment-max-width);
106
+ object-fit: cover;
107
+ width: 100%;
108
+ cursor: zoom-in;
111
109
  }
112
110
 
113
111
  // Video files: uploaded from files and scraped
@@ -70,6 +70,9 @@
70
70
  /* The background of the message bubble */
71
71
  --str-chat__message-bubble-background-color: var(--str-chat__secondary-surface-color);
72
72
 
73
+ /* The text/icon of the message bubble, if the message was sent by the user */
74
+ --str-chat__own-message-bubble-color: var(--str-chat__message-bubble-color);
75
+
73
76
  /* The background of the message bubble, if the message was sent by the user */
74
77
  --str-chat__own-message-bubble-background-color: var(--str-chat__primary-surface-color);
75
78
 
@@ -212,6 +215,7 @@
212
215
  }
213
216
 
214
217
  &.str-chat__message--me .str-chat__message-bubble {
218
+ color: var(--str-chat__own-message-bubble-color);
215
219
  background-color: var(--str-chat__own-message-bubble-background-color);
216
220
  }
217
221
 
package/dist/utils.js CHANGED
@@ -156,7 +156,7 @@ export var mentionsMarkdownPlugin = function (mentioned_users) { return function
156
156
  // valid cases: "text @", "@", " @"
157
157
  // invalid cases: "text@", "@text",
158
158
  /.?\s?@$|^@$/.test(node.value) &&
159
- nextChildHref.startsWith('mailto:')) {
159
+ (nextChildHref === null || nextChildHref === void 0 ? void 0 : nextChildHref.startsWith('mailto:'))) {
160
160
  var newTextValue = node.value.replace(/@$/, '');
161
161
  var username = nextChildHref.replace('mailto:', '');
162
162
  parent.children[index] = u('text', newTextValue);
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const version = "10.4.1";
1
+ export declare const version = "10.4.3";
2
2
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export var version = '10.4.1';
1
+ export var version = '10.4.3';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-react",
3
- "version": "10.4.1",
3
+ "version": "10.4.3",
4
4
  "description": "React components to create chat conversations or livestream style chat",
5
5
  "author": "GetStream",
6
6
  "homepage": "https://getstream.io/chat/",
@@ -30,7 +30,7 @@
30
30
  "dependencies": {
31
31
  "@braintree/sanitize-url": "6.0.0",
32
32
  "@popperjs/core": "^2.11.5",
33
- "@stream-io/stream-chat-css": "^3.6.0",
33
+ "@stream-io/stream-chat-css": "^3.7.2",
34
34
  "clsx": "^1.1.1",
35
35
  "dayjs": "^1.10.4",
36
36
  "emoji-mart": "3.0.1",
@@ -67,7 +67,7 @@
67
67
  "peerDependencies": {
68
68
  "react": "^18.0.0 || ^17.0.0 || ^16.8.0",
69
69
  "react-dom": "^18.0.0 || ^17.0.0 || ^16.8.0",
70
- "stream-chat": "^8.0.0 || ^7.1.0"
70
+ "stream-chat": "^8.0.0"
71
71
  },
72
72
  "files": [
73
73
  "dist",
@@ -87,7 +87,7 @@
87
87
  "@commitlint/cli": "^16.2.3",
88
88
  "@commitlint/config-conventional": "^16.2.1",
89
89
  "@ladle/react": "^0.16.0",
90
- "@playwright/test": "^1.22.0",
90
+ "@playwright/test": "^1.29.1",
91
91
  "@rollup/plugin-babel": "^5.2.1",
92
92
  "@rollup/plugin-commonjs": "^23.0.2",
93
93
  "@rollup/plugin-image": "^2.1.1",
@@ -95,7 +95,7 @@
95
95
  "@rollup/plugin-node-resolve": "^15.0.1",
96
96
  "@rollup/plugin-replace": "^2.3.4",
97
97
  "@rollup/plugin-typescript": "8.2.1",
98
- "@semantic-release/changelog": "^6.0.1",
98
+ "@semantic-release/changelog": "^6.0.2",
99
99
  "@semantic-release/git": "^10.0.1",
100
100
  "@stream-io/rollup-plugin-node-builtins": "^2.1.5",
101
101
  "@testing-library/jest-dom": "^5.16.4",
@@ -168,9 +168,9 @@
168
168
  "rollup-plugin-terser": "^7.0.2",
169
169
  "rollup-plugin-url": "^3.0.1",
170
170
  "rollup-plugin-visualizer": "^4.2.0",
171
- "semantic-release": "^19.0.2",
171
+ "semantic-release": "^19.0.5",
172
172
  "semantic-release-cli": "^5.4.4",
173
- "stream-chat": "^7.1.0",
173
+ "stream-chat": "^8.2.1",
174
174
  "style-loader": "^2.0.0",
175
175
  "ts-jest": "^26.5.1",
176
176
  "tslib": "2.3.0",
@@ -212,7 +212,7 @@
212
212
  "e2e-fixtures": "node e2e/fixtures/fixtures.mjs",
213
213
  "e2e-container": "./e2e/scripts/run_in_container.sh",
214
214
  "docs-copy-css-docs": "scripts/merge-stream-chat-css-docs.sh node_modules/@stream-io/stream-chat-css/docs",
215
- "docs-run": "yarn docs-copy-css-docs && npx stream-chat-docusaurus -s"
215
+ "docs-run": "yarn docs-copy-css-docs && stream-chat-docusaurus -s"
216
216
  },
217
217
  "resolutions": {
218
218
  "ast-types": "^0.14.0",