stream-chat-react 12.3.0 → 12.4.1
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 +1 -1
- package/dist/components/Channel/Channel.js +2 -0
- package/dist/components/ChatAutoComplete/ChatAutoComplete.d.ts +1 -1
- package/dist/components/Message/MessageOptions.js +1 -1
- package/dist/components/Message/MessageSimple.js +5 -2
- package/dist/components/Message/utils.d.ts +1 -1
- package/dist/components/MessageActions/MessageActions.d.ts +2 -1
- package/dist/components/MessageActions/MessageActions.js +1 -1
- package/dist/components/Reactions/ReactionSelectorWithButton.d.ts +1 -2
- package/dist/components/Reactions/ReactionSelectorWithButton.js +2 -2
- package/dist/components/Threads/hooks/useThreadManagerState.js +1 -1
- package/dist/context/ComponentContext.d.ts +7 -1
- package/dist/experimental/MessageActions/MessageActions.d.ts +17 -0
- package/dist/experimental/MessageActions/MessageActions.js +48 -0
- package/dist/experimental/MessageActions/defaults.d.ts +5 -0
- package/dist/experimental/MessageActions/defaults.js +93 -0
- package/dist/experimental/MessageActions/hooks/index.d.ts +2 -0
- package/dist/experimental/MessageActions/hooks/index.js +2 -0
- package/dist/experimental/MessageActions/hooks/useBaseMessageActionSetFilter.d.ts +8 -0
- package/dist/experimental/MessageActions/hooks/useBaseMessageActionSetFilter.js +57 -0
- package/dist/experimental/MessageActions/hooks/useSplitMessageActionSet.d.ts +5 -0
- package/dist/experimental/MessageActions/hooks/useSplitMessageActionSet.js +12 -0
- package/dist/experimental/MessageActions/index.d.ts +3 -0
- package/dist/experimental/MessageActions/index.js +3 -0
- package/dist/experimental/index.browser.cjs +1091 -0
- package/dist/experimental/index.browser.cjs.map +7 -0
- package/dist/experimental/index.d.ts +1 -0
- package/dist/experimental/index.js +1 -0
- package/dist/experimental/index.node.cjs +1099 -0
- package/dist/experimental/index.node.cjs.map +7 -0
- package/dist/i18n/Streami18n.d.ts +1 -0
- package/dist/i18n/de.json +1 -0
- package/dist/i18n/en.json +1 -0
- package/dist/i18n/es.json +1 -0
- package/dist/i18n/fr.json +1 -0
- package/dist/i18n/hi.json +1 -0
- package/dist/i18n/it.json +1 -0
- package/dist/i18n/ja.json +1 -0
- package/dist/i18n/ko.json +1 -0
- package/dist/i18n/nl.json +1 -0
- package/dist/i18n/pt.json +1 -0
- package/dist/i18n/ru.json +1 -0
- package/dist/i18n/tr.json +1 -0
- package/dist/index.browser.cjs +29 -9
- package/dist/index.browser.cjs.map +3 -3
- package/dist/index.node.cjs +30 -9
- package/dist/index.node.cjs.map +3 -3
- package/dist/utils/getChannel.js +7 -3
- package/package.json +16 -1
package/dist/index.browser.cjs
CHANGED
|
@@ -17487,6 +17487,7 @@ __export(src_exports, {
|
|
|
17487
17487
|
Message: () => Message,
|
|
17488
17488
|
MessageActions: () => MessageActions,
|
|
17489
17489
|
MessageActionsBox: () => MessageActionsBox,
|
|
17490
|
+
MessageActionsWrapper: () => MessageActionsWrapper,
|
|
17490
17491
|
MessageBounceProvider: () => MessageBounceProvider,
|
|
17491
17492
|
MessageContext: () => MessageContext,
|
|
17492
17493
|
MessageDeleted: () => MessageDeleted,
|
|
@@ -33191,9 +33192,12 @@ var getChannel = async ({
|
|
|
33191
33192
|
if (queryPromise) {
|
|
33192
33193
|
await queryPromise;
|
|
33193
33194
|
} else {
|
|
33194
|
-
|
|
33195
|
-
|
|
33196
|
-
|
|
33195
|
+
try {
|
|
33196
|
+
WATCH_QUERY_IN_PROGRESS_FOR_CHANNEL[originalCid] = theChannel.watch(options);
|
|
33197
|
+
await WATCH_QUERY_IN_PROGRESS_FOR_CHANNEL[originalCid];
|
|
33198
|
+
} finally {
|
|
33199
|
+
delete WATCH_QUERY_IN_PROGRESS_FOR_CHANNEL[originalCid];
|
|
33200
|
+
}
|
|
33197
33201
|
}
|
|
33198
33202
|
return theChannel;
|
|
33199
33203
|
};
|
|
@@ -34175,6 +34179,7 @@ var de_default = {
|
|
|
34175
34179
|
"People matching": "Passende Personen",
|
|
34176
34180
|
Pin: "Pin",
|
|
34177
34181
|
"Pinned by": "Gepinnt von",
|
|
34182
|
+
Quote: "Quote",
|
|
34178
34183
|
"Recording format is not supported and cannot be reproduced": "Aufnahmeformat wird nicht unterst\xFCtzt und kann nicht wiedergegeben werden",
|
|
34179
34184
|
Reply: "Antworten",
|
|
34180
34185
|
"Reply to Message": "Auf Nachricht antworten",
|
|
@@ -34328,6 +34333,7 @@ var en_default = {
|
|
|
34328
34333
|
"People matching": "People matching",
|
|
34329
34334
|
Pin: "Pin",
|
|
34330
34335
|
"Pinned by": "Pinned by",
|
|
34336
|
+
Quote: "Quote",
|
|
34331
34337
|
"Recording format is not supported and cannot be reproduced": "Recording format is not supported and cannot be reproduced",
|
|
34332
34338
|
Reply: "Reply",
|
|
34333
34339
|
"Reply to Message": "Reply to Message",
|
|
@@ -34471,6 +34477,7 @@ var es_default = {
|
|
|
34471
34477
|
"People matching": "Personas que coinciden",
|
|
34472
34478
|
Pin: "Alfiler",
|
|
34473
34479
|
"Pinned by": "Fijado por",
|
|
34480
|
+
Quote: "Quote",
|
|
34474
34481
|
"Recording format is not supported and cannot be reproduced": "El formato de grabaci\xF3n no es compatible y no se puede reproducir",
|
|
34475
34482
|
Reply: "Respuesta",
|
|
34476
34483
|
"Reply to Message": "Responder al mensaje",
|
|
@@ -34628,6 +34635,7 @@ var fr_default = {
|
|
|
34628
34635
|
"People matching": "Correspondance de personnes",
|
|
34629
34636
|
Pin: "\xC9pingle",
|
|
34630
34637
|
"Pinned by": "\xC9pingl\xE9 par",
|
|
34638
|
+
Quote: "Quote",
|
|
34631
34639
|
"Recording format is not supported and cannot be reproduced": "Le format d'enregistrement n'est pas pris en charge et ne peut pas \xEAtre reproduit",
|
|
34632
34640
|
Reply: "R\xE9ponse",
|
|
34633
34641
|
"Reply to Message": "R\xE9pondre au message",
|
|
@@ -34786,6 +34794,7 @@ var hi_default = {
|
|
|
34786
34794
|
"People matching": "\u092E\u0947\u0932 \u0916\u093E\u0924\u0947 \u0932\u094B\u0917",
|
|
34787
34795
|
Pin: "\u092A\u093F\u0928",
|
|
34788
34796
|
"Pinned by": "\u0926\u094D\u0935\u093E\u0930\u093E \u092A\u093F\u0928 \u0915\u093F\u092F\u093E \u0917\u092F\u093E",
|
|
34797
|
+
Quote: "Quote",
|
|
34789
34798
|
"Recording format is not supported and cannot be reproduced": "\u0930\u0947\u0915\u0949\u0930\u094D\u0921\u093F\u0902\u0917 \u092B\u093C\u0949\u0930\u094D\u092E\u0947\u091F \u0938\u092E\u0930\u094D\u0925\u093F\u0924 \u0928\u0939\u0940\u0902 \u0939\u0948 \u0914\u0930 \u092A\u0941\u0928\u0903 \u0909\u0924\u094D\u092A\u0928\u094D\u0928 \u0928\u0939\u0940\u0902 \u0915\u093F\u092F\u093E \u091C\u093E \u0938\u0915\u0924\u093E",
|
|
34790
34799
|
Reply: "\u091C\u0935\u093E\u092C \u0926\u0947 \u0926\u094B",
|
|
34791
34800
|
"Reply to Message": "\u0938\u0902\u0926\u0947\u0936 \u0915\u093E \u091C\u0935\u093E\u092C \u0926\u0947\u0902",
|
|
@@ -34939,6 +34948,7 @@ var it_default = {
|
|
|
34939
34948
|
"People matching": "Persone che corrispondono",
|
|
34940
34949
|
Pin: "Pin",
|
|
34941
34950
|
"Pinned by": "Appuntato da",
|
|
34951
|
+
Quote: "Quote",
|
|
34942
34952
|
"Recording format is not supported and cannot be reproduced": "Il formato di registrazione non \xE8 supportato e non pu\xF2 essere riprodotto",
|
|
34943
34953
|
Reply: "Rispondere",
|
|
34944
34954
|
"Reply to Message": "Rispondi al messaggio",
|
|
@@ -35096,6 +35106,7 @@ var ja_default = {
|
|
|
35096
35106
|
"People matching": "\u4E00\u81F4\u3059\u308B\u4EBA",
|
|
35097
35107
|
Pin: "\u30D4\u30F3",
|
|
35098
35108
|
"Pinned by": "\u30D4\u30F3\u3057\u305F\u65B9",
|
|
35109
|
+
Quote: "Quote",
|
|
35099
35110
|
"Recording format is not supported and cannot be reproduced": "\u9332\u97F3\u5F62\u5F0F\u306F\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u304A\u3089\u305A\u3001\u518D\u751F\u3067\u304D\u307E\u305B\u3093",
|
|
35100
35111
|
Reply: "\u8FD4\u4E8B",
|
|
35101
35112
|
"Reply to Message": "\u30E1\u30C3\u30BB\u30FC\u30B8\u306B\u8FD4\u4FE1",
|
|
@@ -35247,6 +35258,7 @@ var ko_default = {
|
|
|
35247
35258
|
"People matching": "\uC77C\uCE58\uD558\uB294 \uC0AC\uB78C",
|
|
35248
35259
|
Pin: "\uD540",
|
|
35249
35260
|
"Pinned by": "\uD540\uD588\uB358 \uBD84:",
|
|
35261
|
+
Quote: "Quote",
|
|
35250
35262
|
"Recording format is not supported and cannot be reproduced": "\uB179\uC74C \uD615\uC2DD\uC774 \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uC73C\uBBC0\uB85C \uC7AC\uC0DD\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4",
|
|
35251
35263
|
Reply: "\uB2F5\uC7A5",
|
|
35252
35264
|
"Reply to Message": "\uBA54\uC2DC\uC9C0\uC5D0 \uB2F5\uC7A5",
|
|
@@ -35398,6 +35410,7 @@ var nl_default = {
|
|
|
35398
35410
|
"People matching": "Mensen die matchen",
|
|
35399
35411
|
Pin: "Pin",
|
|
35400
35412
|
"Pinned by": "Vastgemaakt door",
|
|
35413
|
+
Quote: "Quote",
|
|
35401
35414
|
"Recording format is not supported and cannot be reproduced": "Opnameformaat wordt niet ondersteund en kan niet worden gereproduceerd",
|
|
35402
35415
|
Reply: "Antwoord",
|
|
35403
35416
|
"Reply to Message": "Antwoord op bericht",
|
|
@@ -35551,6 +35564,7 @@ var pt_default = {
|
|
|
35551
35564
|
"People matching": "Pessoas correspondentes",
|
|
35552
35565
|
Pin: "Fixar",
|
|
35553
35566
|
"Pinned by": "Fixado por",
|
|
35567
|
+
Quote: "Quote",
|
|
35554
35568
|
"Recording format is not supported and cannot be reproduced": "Formato de grava\xE7\xE3o n\xE3o \xE9 suportado e n\xE3o pode ser reproduzido",
|
|
35555
35569
|
Reply: "Responder",
|
|
35556
35570
|
"Reply to Message": "Responder a mensagem",
|
|
@@ -35708,6 +35722,7 @@ var ru_default = {
|
|
|
35708
35722
|
"People matching": "\u0421\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0435 \u043B\u044E\u0434\u0438",
|
|
35709
35723
|
Pin: "\u0428\u0442\u044B\u0440\u044C",
|
|
35710
35724
|
"Pinned by": "\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E",
|
|
35725
|
+
Quote: "Quote",
|
|
35711
35726
|
"Recording format is not supported and cannot be reproduced": "\u0424\u043E\u0440\u043C\u0430\u0442 \u0437\u0430\u043F\u0438\u0441\u0438 \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044F \u0438 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D",
|
|
35712
35727
|
Reply: "\u041E\u0442\u0432\u0435\u0447\u0430\u0442\u044C",
|
|
35713
35728
|
"Reply to Message": "\u041E\u0442\u0432\u0435\u0442\u0438\u0442\u044C \u043D\u0430 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435",
|
|
@@ -35869,6 +35884,7 @@ var tr_default = {
|
|
|
35869
35884
|
"People matching": "E\u015Fle\u015Fen ki\u015Filer",
|
|
35870
35885
|
Pin: "Toplu i\u011Fne",
|
|
35871
35886
|
"Pinned by": "Sabitleyen",
|
|
35887
|
+
Quote: "Quote",
|
|
35872
35888
|
"Recording format is not supported and cannot be reproduced": "Kay\u0131t format\u0131 desteklenmiyor ve \xE7o\u011Falt\u0131lam\u0131yor",
|
|
35873
35889
|
Reply: "Cevapla",
|
|
35874
35890
|
"Reply to Message": "Mesaj\u0131 Cevapla",
|
|
@@ -40535,8 +40551,7 @@ var ReactionSelector = import_react108.default.memo(
|
|
|
40535
40551
|
|
|
40536
40552
|
// src/components/Reactions/ReactionSelectorWithButton.tsx
|
|
40537
40553
|
var ReactionSelectorWithButton = ({
|
|
40538
|
-
ReactionIcon: ReactionIcon2
|
|
40539
|
-
theme
|
|
40554
|
+
ReactionIcon: ReactionIcon2
|
|
40540
40555
|
}) => {
|
|
40541
40556
|
const { t: t2 } = useTranslationContext("ReactionSelectorWithButton");
|
|
40542
40557
|
const { isMyMessage, message } = useMessageContext("MessageOptions");
|
|
@@ -40559,7 +40574,7 @@ var ReactionSelectorWithButton = ({
|
|
|
40559
40574
|
{
|
|
40560
40575
|
"aria-expanded": dialogIsOpen,
|
|
40561
40576
|
"aria-label": t2("aria/Open Reaction Selector"),
|
|
40562
|
-
className:
|
|
40577
|
+
className: "str-chat__message-reactions-button",
|
|
40563
40578
|
"data-testid": "message-reaction-action",
|
|
40564
40579
|
onClick: () => dialog?.toggle(),
|
|
40565
40580
|
ref: buttonRef
|
|
@@ -40614,7 +40629,7 @@ var UnMemoizedMessageOptions = (props) => {
|
|
|
40614
40629
|
},
|
|
40615
40630
|
/* @__PURE__ */ import_react110.default.createElement(ThreadIcon2, { className: "str-chat__message-action-icon" })
|
|
40616
40631
|
),
|
|
40617
|
-
shouldShowReactions && /* @__PURE__ */ import_react110.default.createElement(ReactionSelectorWithButton, { ReactionIcon: ReactionIcon2
|
|
40632
|
+
shouldShowReactions && /* @__PURE__ */ import_react110.default.createElement(ReactionSelectorWithButton, { ReactionIcon: ReactionIcon2 })
|
|
40618
40633
|
);
|
|
40619
40634
|
};
|
|
40620
40635
|
var MessageOptions = import_react110.default.memo(
|
|
@@ -42686,9 +42701,12 @@ var MessageSimpleWithContext = (props) => {
|
|
|
42686
42701
|
Attachment: Attachment2 = Attachment,
|
|
42687
42702
|
Avatar: Avatar2 = Avatar,
|
|
42688
42703
|
EditMessageInput = EditMessageForm,
|
|
42704
|
+
MessageOptions: MessageOptions2 = MessageOptions,
|
|
42705
|
+
// TODO: remove this "passthrough" in the next
|
|
42706
|
+
// major release and use the new default instead
|
|
42707
|
+
MessageActions: MessageActions2 = MessageOptions2,
|
|
42689
42708
|
MessageDeleted: MessageDeleted2 = MessageDeleted,
|
|
42690
42709
|
MessageBouncePrompt: MessageBouncePrompt2 = MessageBouncePrompt,
|
|
42691
|
-
MessageOptions: MessageOptions2 = MessageOptions,
|
|
42692
42710
|
MessageRepliesCountButton: MessageRepliesCountButton2 = MessageRepliesCountButton,
|
|
42693
42711
|
MessageStatus: MessageStatus2 = MessageStatus,
|
|
42694
42712
|
MessageTimestamp: MessageTimestamp2 = MessageTimestamp,
|
|
@@ -42770,7 +42788,7 @@ var MessageSimpleWithContext = (props) => {
|
|
|
42770
42788
|
onClick: handleClick,
|
|
42771
42789
|
onKeyUp: handleClick
|
|
42772
42790
|
},
|
|
42773
|
-
/* @__PURE__ */ import_react152.default.createElement(
|
|
42791
|
+
/* @__PURE__ */ import_react152.default.createElement(MessageActions2, null),
|
|
42774
42792
|
/* @__PURE__ */ import_react152.default.createElement("div", { className: "str-chat__message-reactions-host" }, hasReactions && /* @__PURE__ */ import_react152.default.createElement(ReactionsList2, { reverse: true })),
|
|
42775
42793
|
/* @__PURE__ */ import_react152.default.createElement("div", { className: "str-chat__message-bubble" }, message.attachments?.length && !message.quoted_message ? /* @__PURE__ */ import_react152.default.createElement(Attachment2, { actionHandler: handleAction, attachments: message.attachments }) : null, /* @__PURE__ */ import_react152.default.createElement(MessageText, { message, renderText: renderText2 }), message.mml && /* @__PURE__ */ import_react152.default.createElement(
|
|
42776
42794
|
MML3,
|
|
@@ -46010,6 +46028,7 @@ var ChannelInner = (props) => {
|
|
|
46010
46028
|
LinkPreviewList: props.LinkPreviewList,
|
|
46011
46029
|
LoadingIndicator: props.LoadingIndicator,
|
|
46012
46030
|
Message: props.Message,
|
|
46031
|
+
MessageActions: props.MessageActions,
|
|
46013
46032
|
MessageBouncePrompt: props.MessageBouncePrompt,
|
|
46014
46033
|
MessageDeleted: props.MessageDeleted,
|
|
46015
46034
|
MessageListNotifications: props.MessageListNotifications,
|
|
@@ -46059,6 +46078,7 @@ var ChannelInner = (props) => {
|
|
|
46059
46078
|
props.LinkPreviewList,
|
|
46060
46079
|
props.LoadingIndicator,
|
|
46061
46080
|
props.Message,
|
|
46081
|
+
props.MessageActions,
|
|
46062
46082
|
props.MessageBouncePrompt,
|
|
46063
46083
|
props.MessageDeleted,
|
|
46064
46084
|
props.MessageListNotifications,
|