stream-chat-react 12.0.0-rc.2 → 12.0.0-rc.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.
- package/README.md +10 -0
- package/dist/components/Attachment/components/WaveProgressBar.d.ts +3 -1
- package/dist/components/Attachment/components/WaveProgressBar.js +44 -9
- package/dist/components/Channel/channelState.js +1 -0
- package/dist/components/DateSeparator/DateSeparator.js +1 -1
- package/dist/components/EventComponent/EventComponent.js +1 -1
- package/dist/components/InfiniteScrollPaginator/InfiniteScroll.js +9 -3
- package/dist/components/MediaRecorder/classes/MediaRecorderController.d.ts +6 -7
- package/dist/components/MediaRecorder/classes/MediaRecorderController.js +0 -5
- package/dist/components/MediaRecorder/hooks/index.d.ts +1 -1
- package/dist/components/MediaRecorder/hooks/useMediaRecorder.d.ts +1 -2
- package/dist/components/MediaRecorder/hooks/useMediaRecorder.js +1 -1
- package/dist/components/MediaRecorder/index.d.ts +1 -0
- package/dist/components/MediaRecorder/transcode/index.d.ts +6 -5
- package/dist/components/MediaRecorder/transcode/index.js +5 -15
- package/dist/components/Message/MessageSimple.js +1 -1
- package/dist/components/Message/MessageTimestamp.d.ts +0 -1
- package/dist/components/Message/MessageTimestamp.js +0 -1
- package/dist/components/Message/Timestamp.d.ts +0 -1
- package/dist/components/Message/Timestamp.js +2 -3
- package/dist/components/Message/renderText/remarkPlugins/keepLineBreaksPlugin.js +1 -1
- package/dist/components/Message/utils.js +2 -0
- package/dist/components/MessageInput/AttachmentPreviewList/AttachmentPreviewList.js +23 -27
- package/dist/components/MessageInput/AttachmentPreviewList/FileAttachmentPreview.d.ts +1 -0
- package/dist/components/MessageInput/AttachmentPreviewList/FileAttachmentPreview.js +1 -1
- package/dist/components/MessageInput/AttachmentPreviewList/ImageAttachmentPreview.js +2 -1
- package/dist/components/MessageInput/MessageInput.d.ts +4 -6
- package/dist/components/MessageInput/MessageInputFlat.js +4 -7
- package/dist/components/MessageInput/hooks/useAttachments.d.ts +1 -5
- package/dist/components/MessageInput/hooks/useAttachments.js +65 -52
- package/dist/components/MessageInput/hooks/useCreateMessageInputContext.js +2 -19
- package/dist/components/MessageInput/hooks/useMessageInputState.d.ts +2 -35
- package/dist/components/MessageInput/hooks/useMessageInputState.js +2 -107
- package/dist/components/MessageInput/hooks/usePasteHandler.js +1 -3
- package/dist/components/MessageInput/hooks/useSubmitHandler.js +19 -71
- package/dist/components/MessageInput/hooks/utils.d.ts +1 -2
- package/dist/components/MessageInput/icons.d.ts +0 -1
- package/dist/components/MessageInput/icons.js +0 -3
- package/dist/components/MessageInput/types.d.ts +3 -30
- package/dist/components/MessageList/MessageList.d.ts +3 -1
- package/dist/components/MessageList/MessageList.js +2 -1
- package/dist/components/MessageList/VirtualizedMessageList.d.ts +3 -1
- package/dist/components/MessageList/VirtualizedMessageList.js +3 -3
- package/dist/components/MessageList/VirtualizedMessageListComponents.js +3 -2
- package/dist/components/MessageList/hooks/MessageList/useEnrichedMessages.d.ts +2 -1
- package/dist/components/MessageList/hooks/MessageList/useEnrichedMessages.js +3 -3
- package/dist/components/MessageList/utils.d.ts +1 -1
- package/dist/components/MessageList/utils.js +16 -6
- package/dist/components/ReactFileUtilities/types.d.ts +0 -29
- package/dist/components/ReactFileUtilities/utils.d.ts +2 -0
- package/dist/components/ReactFileUtilities/utils.js +2 -0
- package/dist/context/ChannelActionContext.d.ts +2 -2
- package/dist/context/MessageInputContext.d.ts +1 -5
- package/dist/i18n/Streami18n.d.ts +2 -0
- package/dist/i18n/de.json +3 -1
- package/dist/i18n/en.json +3 -1
- package/dist/i18n/es.json +3 -1
- package/dist/i18n/fr.json +3 -1
- package/dist/i18n/hi.json +3 -1
- package/dist/i18n/it.json +3 -1
- package/dist/i18n/ja.json +3 -1
- package/dist/i18n/ko.json +3 -1
- package/dist/i18n/nl.json +3 -1
- package/dist/i18n/pt.json +3 -1
- package/dist/i18n/ru.json +3 -1
- package/dist/i18n/tr.json +3 -1
- package/dist/i18n/utils.d.ts +3 -3
- package/dist/index.cjs.js +1987 -12143
- package/dist/index.cjs.js.map +4 -4
- package/dist/{components → plugins}/Emojis/EmojiPicker.js +1 -1
- package/dist/plugins/Emojis/icons.d.ts +2 -0
- package/dist/plugins/Emojis/icons.js +4 -0
- package/dist/{components → plugins}/Emojis/index.cjs.js +23 -22
- package/dist/plugins/Emojis/index.cjs.js.map +7 -0
- package/dist/plugins/Emojis/index.d.ts +2 -0
- package/dist/plugins/Emojis/index.js +2 -0
- package/dist/plugins/encoders/mp3.cjs.js +111 -0
- package/dist/plugins/encoders/mp3.cjs.js.map +7 -0
- package/dist/{components/MediaRecorder/transcode → plugins/encoders}/mp3.js +3 -3
- package/package.json +16 -6
- package/dist/components/Emojis/index.cjs.js.map +0 -7
- package/dist/components/Emojis/index.d.ts +0 -1
- package/dist/components/Emojis/index.js +0 -1
- package/dist/components/MessageInput/AttachmentPreviewList/UploadPreviewItem.d.ts +0 -11
- package/dist/components/MessageInput/AttachmentPreviewList/UploadPreviewItem.js +0 -51
- package/dist/components/MessageInput/hooks/useFileUploads.d.ts +0 -7
- package/dist/components/MessageInput/hooks/useFileUploads.js +0 -85
- package/dist/components/MessageInput/hooks/useImageUploads.d.ts +0 -8
- package/dist/components/MessageInput/hooks/useImageUploads.js +0 -94
- /package/dist/{components → plugins}/Emojis/EmojiPicker.d.ts +0 -0
- /package/dist/{components/MediaRecorder/transcode → plugins/encoders}/mp3.d.ts +0 -0
package/dist/i18n/nl.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"Connection failure, reconnecting now...": "Probleem met de verbinding, opnieuw verbinding maken...",
|
|
14
14
|
"Delete": "Verwijder",
|
|
15
15
|
"Delivered": "Afgeleverd",
|
|
16
|
+
"Download attachment {{ name }}": "Bijlage {{ name }} downloaden",
|
|
16
17
|
"Drag your files here": "Sleep je bestanden hier naartoe",
|
|
17
18
|
"Drag your files here to add to your post": "Sleep je bestanden hier naartoe om aan je bericht toe te voegen",
|
|
18
19
|
"Edit Message": "Pas bericht aan",
|
|
@@ -97,6 +98,7 @@
|
|
|
97
98
|
"aria/Channel list": "Kanaallijst",
|
|
98
99
|
"aria/Channel search results": "Zoekresultaten voor kanalen",
|
|
99
100
|
"aria/Close thread": "Draad sluiten",
|
|
101
|
+
"aria/Download attachment": "Bijlage downloaden",
|
|
100
102
|
"aria/Emoji picker": "Emoji kiezer",
|
|
101
103
|
"aria/File input": "Bestandsinvoer",
|
|
102
104
|
"aria/File upload": "Bestand uploaden",
|
|
@@ -124,7 +126,7 @@
|
|
|
124
126
|
"searchResultsCount_other": "{{ count }} resultaten",
|
|
125
127
|
"this content could not be displayed": "Deze inhoud kan niet weergegeven worden",
|
|
126
128
|
"timestamp/DateSeparator": "{{ timestamp | timestampFormatter(calendar: true) }}",
|
|
127
|
-
"timestamp/MessageTimestamp": "{{ timestamp | timestampFormatter(calendar: true
|
|
129
|
+
"timestamp/MessageTimestamp": "{{ timestamp | timestampFormatter(calendar: true) }}",
|
|
128
130
|
"timestamp/SystemMessage": "{{ timestamp | timestampFormatter(format: dddd L) }}",
|
|
129
131
|
"unban-command-args": "[@gebruikersnaam]",
|
|
130
132
|
"unban-command-description": "Een gebruiker debannen",
|
package/dist/i18n/pt.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"Connection failure, reconnecting now...": "Falha de conexão, reconectando agora...",
|
|
14
14
|
"Delete": "Excluir",
|
|
15
15
|
"Delivered": "Entregue",
|
|
16
|
+
"Download attachment {{ name }}": "Baixar anexo {{ name }}",
|
|
16
17
|
"Drag your files here": "Arraste seus arquivos aqui",
|
|
17
18
|
"Drag your files here to add to your post": "Arraste seus arquivos aqui para adicionar ao seu post",
|
|
18
19
|
"Edit Message": "Editar Mensagem",
|
|
@@ -97,6 +98,7 @@
|
|
|
97
98
|
"aria/Channel list": "Lista de canais",
|
|
98
99
|
"aria/Channel search results": "Resultados de pesquisa de canais",
|
|
99
100
|
"aria/Close thread": "Fechar tópico",
|
|
101
|
+
"aria/Download attachment": "Baixar anexo",
|
|
100
102
|
"aria/Emoji picker": "Seletor de emojis",
|
|
101
103
|
"aria/File input": "Entrada de arquivo",
|
|
102
104
|
"aria/File upload": "Carregar arquivo",
|
|
@@ -126,7 +128,7 @@
|
|
|
126
128
|
"searchResultsCount_other": "{{ count }} resultados",
|
|
127
129
|
"this content could not be displayed": "este conteúdo não pôde ser exibido",
|
|
128
130
|
"timestamp/DateSeparator": "{{ timestamp | timestampFormatter(calendar: true) }}",
|
|
129
|
-
"timestamp/MessageTimestamp": "{{ timestamp | timestampFormatter(calendar: true
|
|
131
|
+
"timestamp/MessageTimestamp": "{{ timestamp | timestampFormatter(calendar: true) }}",
|
|
130
132
|
"timestamp/SystemMessage": "{{ timestamp | timestampFormatter(format: dddd L) }}",
|
|
131
133
|
"unban-command-args": "[@nomedeusuário]",
|
|
132
134
|
"unban-command-description": "Desbanir um usuário",
|
package/dist/i18n/ru.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"Connection failure, reconnecting now...": "Ошибка соединения, переподключение...",
|
|
14
14
|
"Delete": "Удалить",
|
|
15
15
|
"Delivered": "Отправлено",
|
|
16
|
+
"Download attachment {{ name }}": "Скачать вложение {{ name }}",
|
|
16
17
|
"Drag your files here": "Перетащите ваши файлы сюда",
|
|
17
18
|
"Drag your files here to add to your post": "Перетащите ваши файлы сюда, чтобы добавить их в ваш пост",
|
|
18
19
|
"Edit Message": "Редактировать сообщение",
|
|
@@ -97,6 +98,7 @@
|
|
|
97
98
|
"aria/Channel list": "Список каналов",
|
|
98
99
|
"aria/Channel search results": "Результаты поиска по каналам",
|
|
99
100
|
"aria/Close thread": "Закрыть тему",
|
|
101
|
+
"aria/Download attachment": "Скачать вложение",
|
|
100
102
|
"aria/Emoji picker": "Выбор эмодзи",
|
|
101
103
|
"aria/File input": "Ввод файла",
|
|
102
104
|
"aria/File upload": "Загрузка файла",
|
|
@@ -128,7 +130,7 @@
|
|
|
128
130
|
"searchResultsCount_other": "{{ count }} результатов",
|
|
129
131
|
"this content could not be displayed": "Этот контент не может быть отображен в данный момент",
|
|
130
132
|
"timestamp/DateSeparator": "{{ timestamp | timestampFormatter(calendar: true) }}",
|
|
131
|
-
"timestamp/MessageTimestamp": "{{ timestamp | timestampFormatter(calendar: true
|
|
133
|
+
"timestamp/MessageTimestamp": "{{ timestamp | timestampFormatter(calendar: true) }}",
|
|
132
134
|
"timestamp/SystemMessage": "{{ timestamp | timestampFormatter(format: dddd L) }}",
|
|
133
135
|
"unban-command-args": "[@имяпользователя]",
|
|
134
136
|
"unban-command-description": "Разблокировать пользователя",
|
package/dist/i18n/tr.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"Connection failure, reconnecting now...": "Bağlantı hatası, tekrar bağlanılıyor...",
|
|
14
14
|
"Delete": "Sil",
|
|
15
15
|
"Delivered": "İletildi",
|
|
16
|
+
"Download attachment {{ name }}": "Ek {{ name }}'i indir",
|
|
16
17
|
"Drag your files here": "Dosyalarınızı buraya sürükleyin",
|
|
17
18
|
"Drag your files here to add to your post": "Gönderinize eklemek için dosyalarınızı buraya sürükleyin",
|
|
18
19
|
"Edit Message": "Mesajı Düzenle",
|
|
@@ -97,6 +98,7 @@
|
|
|
97
98
|
"aria/Channel list": "Kanaallijst",
|
|
98
99
|
"aria/Channel search results": "Zoekresultaten voor kanalen",
|
|
99
100
|
"aria/Close thread": "Draad sluiten",
|
|
101
|
+
"aria/Download attachment": "Ek indir",
|
|
100
102
|
"aria/Emoji picker": "Emoji kiezer",
|
|
101
103
|
"aria/File input": "Bestandsinvoer",
|
|
102
104
|
"aria/File upload": "Bestand uploaden",
|
|
@@ -124,7 +126,7 @@
|
|
|
124
126
|
"searchResultsCount_other": "{{ count }} sonuç",
|
|
125
127
|
"this content could not be displayed": "bu içerik gösterilemiyor",
|
|
126
128
|
"timestamp/DateSeparator": "{{ timestamp | timestampFormatter(calendar: true) }}",
|
|
127
|
-
"timestamp/MessageTimestamp": "{{ timestamp | timestampFormatter(calendar: true
|
|
129
|
+
"timestamp/MessageTimestamp": "{{ timestamp | timestampFormatter(calendar: true) }}",
|
|
128
130
|
"timestamp/SystemMessage": "{{ timestamp | timestampFormatter(format: dddd L) }}",
|
|
129
131
|
"unban-command-args": "[@kullanıcıadı]",
|
|
130
132
|
"unban-command-description": "Bir kullanıcının yasağını kaldır",
|
package/dist/i18n/utils.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { MessageContextValue, TDateTimeParser } from '../context';
|
|
|
2
2
|
import type { TFunction } from 'i18next';
|
|
3
3
|
import type { Streami18n } from './Streami18n';
|
|
4
4
|
export type TimestampFormatterOptions = {
|
|
5
|
-
calendar?: boolean
|
|
6
|
-
calendarFormats?: Record<string, string
|
|
7
|
-
format?: string
|
|
5
|
+
calendar?: boolean;
|
|
6
|
+
calendarFormats?: Record<string, string>;
|
|
7
|
+
format?: string;
|
|
8
8
|
};
|
|
9
9
|
type DateFormatterOptions = TimestampFormatterOptions & {
|
|
10
10
|
formatDate?: MessageContextValue['formatDate'];
|