stream-chat-react 10.4.1 → 10.4.2
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/browser.full-bundle.js +20 -15
- package/dist/browser.full-bundle.js.map +1 -1
- package/dist/browser.full-bundle.min.js +2 -2
- package/dist/browser.full-bundle.min.js.map +1 -1
- package/dist/components/MessageInput/hooks/useCooldownTimer.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useCooldownTimer.js +26 -13
- package/dist/components/MessageInput/hooks/useUserTrigger.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useUserTrigger.js +2 -1
- package/dist/css/v2/index.css +1 -1
- package/dist/css/v2/index.css.map +1 -1
- package/dist/css/v2/index.layout.css +1 -1
- package/dist/css/v2/index.layout.css.map +1 -1
- package/dist/index.cjs.js +20 -15
- package/dist/index.cjs.js.map +1 -1
- package/dist/scss/v2/AttachmentList/AttachmentList-layout.scss +11 -13
- package/dist/scss/v2/Message/Message-theme.scss +4 -0
- package/dist/utils.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -5
|
@@ -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
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
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
|
+
export declare const version = "10.4.2";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export var version = '10.4.
|
|
1
|
+
export var version = '10.4.2';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-react",
|
|
3
|
-
"version": "10.4.
|
|
3
|
+
"version": "10.4.2",
|
|
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.
|
|
33
|
+
"@stream-io/stream-chat-css": "^3.7.1",
|
|
34
34
|
"clsx": "^1.1.1",
|
|
35
35
|
"dayjs": "^1.10.4",
|
|
36
36
|
"emoji-mart": "3.0.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.
|
|
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,7 +168,7 @@
|
|
|
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.
|
|
171
|
+
"semantic-release": "^19.0.5",
|
|
172
172
|
"semantic-release-cli": "^5.4.4",
|
|
173
173
|
"stream-chat": "^7.1.0",
|
|
174
174
|
"style-loader": "^2.0.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 &&
|
|
215
|
+
"docs-run": "yarn docs-copy-css-docs && stream-chat-docusaurus -s"
|
|
216
216
|
},
|
|
217
217
|
"resolutions": {
|
|
218
218
|
"ast-types": "^0.14.0",
|