stream-chat-react 13.8.1 → 13.10.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.
- package/dist/components/Channel/Channel.d.ts +2 -2
- package/dist/components/Channel/Channel.js +3 -3
- package/dist/components/Channel/hooks/useCreateChannelStateContext.js +3 -1
- package/dist/components/ChannelPreview/hooks/useMessageDeliveryStatus.d.ts +1 -0
- package/dist/components/ChannelPreview/hooks/useMessageDeliveryStatus.js +31 -14
- package/dist/components/Chat/hooks/useChat.js +1 -1
- package/dist/components/Dialog/ButtonWithSubmenu.d.ts +2 -2
- package/dist/components/Dialog/ButtonWithSubmenu.js +6 -6
- package/dist/components/Dialog/DialogAnchor.d.ts +5 -11
- package/dist/components/Dialog/DialogAnchor.js +22 -26
- package/dist/components/Dialog/DialogPortal.d.ts +2 -1
- package/dist/components/Dialog/DialogPortal.js +23 -7
- package/dist/components/Dialog/hooks/index.d.ts +1 -0
- package/dist/components/Dialog/hooks/useDialog.d.ts +4 -0
- package/dist/components/Dialog/hooks/useDialog.js +9 -1
- package/dist/components/Dialog/hooks/usePopoverPosition.d.ts +68 -0
- package/dist/components/Dialog/hooks/usePopoverPosition.js +54 -0
- package/dist/components/Form/Dropdown.d.ts +2 -2
- package/dist/components/Message/Message.js +1 -1
- package/dist/components/Message/MessageRepliesCountButton.js +3 -1
- package/dist/components/Message/MessageStatus.d.ts +1 -0
- package/dist/components/Message/MessageStatus.js +22 -12
- package/dist/components/Message/hooks/useDeleteHandler.js +2 -2
- package/dist/components/Message/icons.d.ts +1 -0
- package/dist/components/Message/icons.js +6 -2
- package/dist/components/Message/renderText/remarkPlugins/index.d.ts +1 -0
- package/dist/components/Message/renderText/remarkPlugins/index.js +1 -0
- package/dist/components/Message/renderText/remarkPlugins/keepLineBreaksPlugin.d.ts +10 -2
- package/dist/components/Message/renderText/remarkPlugins/keepLineBreaksPlugin.js +46 -26
- package/dist/components/Message/renderText/remarkPlugins/remarkIgnoreMarkdown.d.ts +8 -0
- package/dist/components/Message/renderText/remarkPlugins/remarkIgnoreMarkdown.js +11 -0
- package/dist/components/Message/types.d.ts +2 -0
- package/dist/components/Message/utils.d.ts +4 -1
- package/dist/components/Message/utils.js +9 -0
- package/dist/components/MessageActions/MessageActions.js +4 -4
- package/dist/components/MessageActions/MessageActionsBox.js +3 -1
- package/dist/components/MessageInput/AttachmentSelector.d.ts +1 -1
- package/dist/components/MessageInput/AttachmentSelector.js +9 -4
- package/dist/components/MessageList/MessageList.js +2 -2
- package/dist/components/MessageList/VirtualizedMessageList.d.ts +2 -0
- package/dist/components/MessageList/VirtualizedMessageList.js +10 -4
- package/dist/components/MessageList/VirtualizedMessageListComponents.js +2 -2
- package/dist/components/MessageList/hooks/MessageList/useMessageListElements.d.ts +2 -2
- package/dist/components/MessageList/hooks/MessageList/useMessageListElements.js +13 -5
- package/dist/components/MessageList/hooks/useLastDeliveredData.d.ts +8 -0
- package/dist/components/MessageList/hooks/useLastDeliveredData.js +16 -0
- package/dist/components/MessageList/hooks/useLastReadData.d.ts +3 -8
- package/dist/components/MessageList/hooks/useLastReadData.js +10 -7
- package/dist/components/MessageList/renderMessages.d.ts +5 -4
- package/dist/components/MessageList/renderMessages.js +2 -2
- package/dist/components/MessageList/utils.d.ts +1 -5
- package/dist/components/MessageList/utils.js +0 -30
- package/dist/components/Modal/GlobalModal.js +2 -2
- package/dist/components/Reactions/ReactionSelectorWithButton.js +4 -4
- package/dist/components/Tooltip/Tooltip.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.js +11 -12
- package/dist/context/ChannelActionContext.d.ts +2 -2
- package/dist/context/DialogManagerContext.d.ts +1 -0
- package/dist/context/DialogManagerContext.js +1 -0
- package/dist/context/MessageContext.d.ts +5 -3
- package/dist/css/v2/index.css +1 -1
- package/dist/css/v2/index.layout.css +1 -1
- package/dist/experimental/MessageActions/MessageActions.js +5 -5
- package/dist/experimental/index.browser.cjs +324 -249
- package/dist/experimental/index.browser.cjs.map +4 -4
- package/dist/experimental/index.node.cjs +324 -249
- package/dist/experimental/index.node.cjs.map +4 -4
- package/dist/i18n/Streami18n.d.ts +2 -0
- package/dist/i18n/de.json +2 -0
- package/dist/i18n/en.json +2 -0
- package/dist/i18n/es.json +2 -0
- package/dist/i18n/fr.json +2 -0
- package/dist/i18n/hi.json +2 -0
- package/dist/i18n/it.json +2 -0
- package/dist/i18n/ja.json +2 -0
- package/dist/i18n/ko.json +2 -0
- package/dist/i18n/nl.json +2 -0
- package/dist/i18n/pt.json +2 -0
- package/dist/i18n/ru.json +2 -0
- package/dist/i18n/tr.json +2 -0
- package/dist/index.browser.cjs +1587 -1380
- package/dist/index.browser.cjs.map +4 -4
- package/dist/index.node.cjs +1592 -1381
- package/dist/index.node.cjs.map +4 -4
- package/dist/plugins/Emojis/EmojiPicker.d.ts +9 -4
- package/dist/plugins/Emojis/EmojiPicker.js +10 -5
- package/dist/plugins/Emojis/index.browser.cjs +89 -29
- package/dist/plugins/Emojis/index.browser.cjs.map +4 -4
- package/dist/plugins/Emojis/index.node.cjs +89 -29
- package/dist/plugins/Emojis/index.node.cjs.map +4 -4
- package/dist/scss/v2/Dialog/Dialog-layout.scss +12 -3
- package/dist/scss/v2/Icon/Icon-layout.scss +6 -0
- package/dist/scss/v2/Icon/Icon-theme.scss +4 -0
- package/dist/scss/v2/Message/Message-layout.scss +34 -3
- package/dist/scss/v2/Message/Message-theme.scss +9 -0
- package/dist/scss/v2/MessageActionsBox/MessageActionsBox-layout.scss +1 -0
- package/dist/scss/v2/MessageInput/MessageInput-layout.scss +8 -0
- package/dist/scss/v2/MessageInput/MessageInput-theme.scss +2 -1
- package/dist/scss/v2/Poll/Poll-layout.scss +29 -7
- package/package.json +7 -8
- package/dist/components/MessageActions/hooks/index.d.ts +0 -1
- package/dist/components/MessageActions/hooks/index.js +0 -1
- package/dist/components/MessageActions/hooks/useMessageActionsBoxPopper.d.ts +0 -18
- package/dist/components/MessageActions/hooks/useMessageActionsBoxPopper.js +0 -31
|
@@ -178,7 +178,8 @@
|
|
|
178
178
|
.str-chat__message-input {
|
|
179
179
|
@include utils.component-layer-overrides('message-input');
|
|
180
180
|
|
|
181
|
-
.str-chat__file-input-container
|
|
181
|
+
.str-chat__file-input-container,
|
|
182
|
+
.str-chat-angular__create-poll {
|
|
182
183
|
--str-chat-icon-color: var(--str-chat__message-input-tools-color);
|
|
183
184
|
@include utils.component-layer-overrides('message-input-tools');
|
|
184
185
|
|
|
@@ -45,7 +45,6 @@
|
|
|
45
45
|
display: flex;
|
|
46
46
|
flex-direction: column;
|
|
47
47
|
align-items: center;
|
|
48
|
-
|
|
49
48
|
}
|
|
50
49
|
}
|
|
51
50
|
|
|
@@ -66,8 +65,6 @@
|
|
|
66
65
|
}
|
|
67
66
|
}
|
|
68
67
|
|
|
69
|
-
|
|
70
|
-
|
|
71
68
|
.str-chat__poll-option-list--full,
|
|
72
69
|
.str-chat__modal__poll-results {
|
|
73
70
|
.str-chat__amount-bar {
|
|
@@ -103,7 +100,6 @@
|
|
|
103
100
|
}
|
|
104
101
|
}
|
|
105
102
|
|
|
106
|
-
|
|
107
103
|
.str-chat__poll-option-list--full {
|
|
108
104
|
.str-chat__poll-option {
|
|
109
105
|
display: flex;
|
|
@@ -151,7 +147,6 @@
|
|
|
151
147
|
}
|
|
152
148
|
}
|
|
153
149
|
|
|
154
|
-
|
|
155
150
|
.str-chat__modal__poll-results {
|
|
156
151
|
.str-chat__poll-option {
|
|
157
152
|
display: flex;
|
|
@@ -159,11 +154,15 @@
|
|
|
159
154
|
}
|
|
160
155
|
}
|
|
161
156
|
|
|
162
|
-
.str-chat-react__modal.str-chat__poll-action-modal,
|
|
157
|
+
.str-chat-react__modal.str-chat__poll-action-modal,
|
|
158
|
+
.str-chat__poll-actions:not(.str-chat-angular__poll-actions) .str-chat__modal {
|
|
163
159
|
.str-chat__modal__close-button {
|
|
164
160
|
display: none;
|
|
165
161
|
}
|
|
162
|
+
}
|
|
166
163
|
|
|
164
|
+
.str-chat-react__modal.str-chat__poll-action-modal,
|
|
165
|
+
.str-chat__poll-actions .str-chat__modal {
|
|
167
166
|
.str-chat__modal__inner {
|
|
168
167
|
$content-offset-inline: 1rem;
|
|
169
168
|
padding: 0 0 0.5rem;
|
|
@@ -334,6 +333,7 @@
|
|
|
334
333
|
align-items: flex-start;
|
|
335
334
|
}
|
|
336
335
|
|
|
336
|
+
.str-chat-angular__create-poll-modal .str-chat__modal,
|
|
337
337
|
.str-chat__modal.str-chat__create-poll-modal {
|
|
338
338
|
.str-chat__modal__close-button {
|
|
339
339
|
display: none;
|
|
@@ -415,7 +415,7 @@
|
|
|
415
415
|
}
|
|
416
416
|
|
|
417
417
|
.str-chat__form__input-field {
|
|
418
|
-
|
|
418
|
+
width: 100%;
|
|
419
419
|
|
|
420
420
|
.str-chat__form__input-field__value {
|
|
421
421
|
padding: 0;
|
|
@@ -465,3 +465,25 @@
|
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
+
|
|
469
|
+
.str-chat-angular__poll-actions {
|
|
470
|
+
.str-chat__modal__poll-option-list {
|
|
471
|
+
max-height: 100%;
|
|
472
|
+
min-height: 0;
|
|
473
|
+
display: flex;
|
|
474
|
+
flex-direction: column;
|
|
475
|
+
|
|
476
|
+
.str-chat__modal__poll-option-list__body {
|
|
477
|
+
max-height: 100%;
|
|
478
|
+
min-height: 0;
|
|
479
|
+
display: flex;
|
|
480
|
+
flex-direction: column;
|
|
481
|
+
|
|
482
|
+
stream-poll-options-list {
|
|
483
|
+
height: 100%;
|
|
484
|
+
overflow-y: auto;
|
|
485
|
+
overflow-x: hidden;
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-react",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.10.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/",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
],
|
|
103
103
|
"dependencies": {
|
|
104
104
|
"@braintree/sanitize-url": "^6.0.4",
|
|
105
|
-
"@
|
|
105
|
+
"@floating-ui/react": "^0.27.2",
|
|
106
106
|
"@react-aria/focus": "^3",
|
|
107
107
|
"clsx": "^2.0.0",
|
|
108
108
|
"dayjs": "^1.10.4",
|
|
@@ -122,7 +122,6 @@
|
|
|
122
122
|
"react-image-gallery": "1.2.12",
|
|
123
123
|
"react-markdown": "^9.0.3",
|
|
124
124
|
"react-player": "2.10.1",
|
|
125
|
-
"react-popper": "^2.3.0",
|
|
126
125
|
"react-textarea-autosize": "^8.3.0",
|
|
127
126
|
"react-virtuoso": "^2.16.5",
|
|
128
127
|
"remark-gfm": "^4.0.1",
|
|
@@ -139,9 +138,9 @@
|
|
|
139
138
|
"@emoji-mart/data": "^1.1.0",
|
|
140
139
|
"@emoji-mart/react": "^1.1.0",
|
|
141
140
|
"emoji-mart": "^5.4.0",
|
|
142
|
-
"react": "^19.0.0 || ^18.0.0 || ^17.0.0
|
|
143
|
-
"react-dom": "^19.0.0 || ^18.0.0 || ^17.0.0
|
|
144
|
-
"stream-chat": "^9.
|
|
141
|
+
"react": "^19.0.0 || ^18.0.0 || ^17.0.0",
|
|
142
|
+
"react-dom": "^19.0.0 || ^18.0.0 || ^17.0.0",
|
|
143
|
+
"stream-chat": "^9.25.0"
|
|
145
144
|
},
|
|
146
145
|
"peerDependenciesMeta": {
|
|
147
146
|
"@breezystack/lamejs": {
|
|
@@ -182,7 +181,7 @@
|
|
|
182
181
|
"@playwright/test": "^1.42.1",
|
|
183
182
|
"@semantic-release/changelog": "^6.0.3",
|
|
184
183
|
"@semantic-release/git": "^10.0.1",
|
|
185
|
-
"@stream-io/stream-chat-css": "^5.
|
|
184
|
+
"@stream-io/stream-chat-css": "^5.16.0",
|
|
186
185
|
"@testing-library/dom": "^10.4.0",
|
|
187
186
|
"@testing-library/jest-dom": "^6.6.3",
|
|
188
187
|
"@testing-library/react": "^16.2.0",
|
|
@@ -235,7 +234,7 @@
|
|
|
235
234
|
"react": "^19.0.0",
|
|
236
235
|
"react-dom": "^19.0.0",
|
|
237
236
|
"semantic-release": "^24.2.3",
|
|
238
|
-
"stream-chat": "^9.
|
|
237
|
+
"stream-chat": "^9.25.0",
|
|
239
238
|
"ts-jest": "^29.2.5",
|
|
240
239
|
"typescript": "^5.4.5",
|
|
241
240
|
"typescript-eslint": "^8.17.0"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './useMessageActionsBoxPopper';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './useMessageActionsBoxPopper';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { Placement } from '@popperjs/core';
|
|
3
|
-
export interface MessageActionsBoxPopperOptions {
|
|
4
|
-
open: boolean;
|
|
5
|
-
placement: Placement;
|
|
6
|
-
referenceElement: HTMLElement | null;
|
|
7
|
-
}
|
|
8
|
-
export declare function useMessageActionsBoxPopper<T extends HTMLElement>({ open, placement, referenceElement, }: MessageActionsBoxPopperOptions): {
|
|
9
|
-
attributes: {
|
|
10
|
-
[key: string]: {
|
|
11
|
-
[key: string]: string;
|
|
12
|
-
} | undefined;
|
|
13
|
-
};
|
|
14
|
-
popperElementRef: import("react").RefObject<T | null>;
|
|
15
|
-
styles: {
|
|
16
|
-
[key: string]: import("react").CSSProperties;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { useEffect, useRef } from 'react';
|
|
2
|
-
import { usePopper } from 'react-popper';
|
|
3
|
-
export function useMessageActionsBoxPopper({ open, placement, referenceElement, }) {
|
|
4
|
-
const popperElementRef = useRef(null);
|
|
5
|
-
const { attributes, styles, update } = usePopper(referenceElement, popperElementRef.current, {
|
|
6
|
-
modifiers: [
|
|
7
|
-
{
|
|
8
|
-
name: 'eventListeners',
|
|
9
|
-
options: {
|
|
10
|
-
// It's not safe to update popper position on resize and scroll, since popper's
|
|
11
|
-
// reference element might not be visible at the time.
|
|
12
|
-
resize: false,
|
|
13
|
-
scroll: false,
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
],
|
|
17
|
-
placement,
|
|
18
|
-
});
|
|
19
|
-
useEffect(() => {
|
|
20
|
-
if (open) {
|
|
21
|
-
// Since the popper's reference element might not be (and usually is not) visible
|
|
22
|
-
// all the time, it's safer to force popper update before showing it.
|
|
23
|
-
update?.();
|
|
24
|
-
}
|
|
25
|
-
}, [open, update]);
|
|
26
|
-
return {
|
|
27
|
-
attributes,
|
|
28
|
-
popperElementRef,
|
|
29
|
-
styles,
|
|
30
|
-
};
|
|
31
|
-
}
|