stream-chat-react 14.0.0-beta.1 → 14.0.0-beta.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/dist/{WithAudioPlayback-TERIQpZ6.js → cjs/WithAudioPlayback.4a84360f.js} +100 -12
- package/dist/cjs/WithAudioPlayback.4a84360f.js.map +1 -0
- package/dist/{audioProcessing-BbOs2wMd.js → cjs/audioProcessing.56e5db9d.js} +1 -1
- package/dist/cjs/audioProcessing.56e5db9d.js.map +1 -0
- package/dist/cjs/emojis.js +1 -1
- package/dist/cjs/index.js +1366 -1037
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/mp3-encoder.js +1 -1
- package/dist/css/index.css +232 -62
- package/dist/css/index.css.map +1 -1
- package/dist/{WithAudioPlayback-BcKZ5Lbh.mjs → es/WithAudioPlayback.a3d5a2fc.mjs} +348 -260
- package/dist/es/WithAudioPlayback.a3d5a2fc.mjs.map +1 -0
- package/dist/{audioProcessing-ByEVSjGG.mjs → es/audioProcessing.21cb49e1.mjs} +1 -1
- package/dist/es/audioProcessing.21cb49e1.mjs.map +1 -0
- package/dist/es/emojis.mjs +1 -1
- package/dist/es/index.mjs +1500 -1171
- package/dist/es/index.mjs.map +1 -1
- package/dist/es/mp3-encoder.mjs +1 -1
- package/dist/types/components/Attachment/Giphy.d.ts.map +1 -1
- package/dist/types/components/Attachment/VoiceRecording.d.ts.map +1 -1
- package/dist/types/components/AudioPlayback/AudioPlayer.d.ts.map +1 -1
- package/dist/types/components/Badge/Badge.d.ts +1 -0
- package/dist/types/components/Badge/Badge.d.ts.map +1 -1
- package/dist/types/components/BaseImage/toBaseImageDescriptors.d.ts +1 -1
- package/dist/types/components/BaseImage/toBaseImageDescriptors.d.ts.map +1 -1
- package/dist/types/components/Channel/Channel.d.ts.map +1 -1
- package/dist/types/components/Channel/utils.d.ts +7 -1
- package/dist/types/components/Channel/utils.d.ts.map +1 -1
- package/dist/types/components/ChannelList/hooks/useMobileNavigation.d.ts.map +1 -1
- package/dist/types/components/ChannelListItem/ChannelListItemActionButtons.d.ts +3 -1
- package/dist/types/components/ChannelListItem/ChannelListItemActionButtons.d.ts.map +1 -1
- package/dist/types/components/ChannelListItem/ChannelListItemActionButtons.defaults.d.ts +6 -3
- package/dist/types/components/ChannelListItem/ChannelListItemActionButtons.defaults.d.ts.map +1 -1
- package/dist/types/components/Chat/hooks/useSplitActionSet.d.ts +5 -0
- package/dist/types/components/Chat/hooks/useSplitActionSet.d.ts.map +1 -1
- package/dist/types/components/ChatView/ChatView.d.ts.map +1 -1
- package/dist/types/components/Dialog/components/ContextMenu.d.ts +119 -3
- package/dist/types/components/Dialog/components/ContextMenu.d.ts.map +1 -1
- package/dist/types/components/Dialog/hooks/useDialog.d.ts +1 -1
- package/dist/types/components/Dialog/hooks/useDialog.d.ts.map +1 -1
- package/dist/types/components/Dialog/service/DialogAnchor.d.ts +14 -1
- package/dist/types/components/Dialog/service/DialogAnchor.d.ts.map +1 -1
- package/dist/types/components/Dialog/service/DialogManager.d.ts +14 -3
- package/dist/types/components/Dialog/service/DialogManager.d.ts.map +1 -1
- package/dist/types/components/Dialog/service/DialogPortal.d.ts.map +1 -1
- package/dist/types/components/Gallery/Gallery.d.ts.map +1 -1
- package/dist/types/components/Gallery/GalleryContext.d.ts +1 -1
- package/dist/types/components/Gallery/GalleryContext.d.ts.map +1 -1
- package/dist/types/components/Icons/icons.d.ts +4 -0
- package/dist/types/components/Icons/icons.d.ts.map +1 -1
- package/dist/types/components/MediaRecorder/AudioRecorder/AudioRecorderRecordingControls.d.ts.map +1 -1
- package/dist/types/components/Message/MessageErrorText.d.ts +0 -5
- package/dist/types/components/Message/MessageErrorText.d.ts.map +1 -1
- package/dist/types/components/Message/MessageText.d.ts.map +1 -1
- package/dist/types/components/Message/MessageUI.d.ts.map +1 -1
- package/dist/types/components/Message/hooks/useDeleteHandler.d.ts.map +1 -1
- package/dist/types/components/Message/index.d.ts +0 -1
- package/dist/types/components/Message/index.d.ts.map +1 -1
- package/dist/types/components/Message/utils.d.ts +1 -0
- package/dist/types/components/Message/utils.d.ts.map +1 -1
- package/dist/types/components/MessageActions/MessageActions.d.ts +14 -3
- package/dist/types/components/MessageActions/MessageActions.d.ts.map +1 -1
- package/dist/types/components/MessageActions/MessageActions.defaults.d.ts +1 -1
- package/dist/types/components/MessageActions/MessageActions.defaults.d.ts.map +1 -1
- package/dist/types/components/MessageActions/QuickMessageActionButton.d.ts.map +1 -1
- package/dist/types/components/MessageActions/hooks/useBaseMessageActionSetFilter.d.ts.map +1 -1
- package/dist/types/components/MessageComposer/AttachmentPreviewList/AttachmentPreviewList.d.ts.map +1 -1
- package/dist/types/components/MessageComposer/AttachmentPreviewList/ImageAttachmentPreview.d.ts +3 -1
- package/dist/types/components/MessageComposer/AttachmentPreviewList/ImageAttachmentPreview.d.ts.map +1 -1
- package/dist/types/components/MessageComposer/AttachmentPreviewList/MediaAttachmentPreview.d.ts +4 -2
- package/dist/types/components/MessageComposer/AttachmentPreviewList/MediaAttachmentPreview.d.ts.map +1 -1
- package/dist/types/components/MessageComposer/AttachmentPreviewList/utils/AttachmentPreviewRoot.d.ts +6 -1
- package/dist/types/components/MessageComposer/AttachmentPreviewList/utils/AttachmentPreviewRoot.d.ts.map +1 -1
- package/dist/types/components/MessageComposer/AttachmentSelector/AttachmentSelector.d.ts +9 -2
- package/dist/types/components/MessageComposer/AttachmentSelector/AttachmentSelector.d.ts.map +1 -1
- package/dist/types/components/MessageComposer/CommandChip.d.ts +5 -1
- package/dist/types/components/MessageComposer/CommandChip.d.ts.map +1 -1
- package/dist/types/components/MessageComposer/MessageComposerUI.d.ts.map +1 -1
- package/dist/types/components/MessageList/hooks/MessageList/useScrollLocationLogic.d.ts +18 -0
- package/dist/types/components/MessageList/hooks/MessageList/useScrollLocationLogic.d.ts.map +1 -1
- package/dist/types/components/Notifications/Notification.d.ts.map +1 -1
- package/dist/types/components/Notifications/hooks/useNotificationTarget.d.ts +1 -1
- package/dist/types/components/Notifications/hooks/useNotificationTarget.d.ts.map +1 -1
- package/dist/types/components/Notifications/notificationTarget.d.ts +1 -1
- package/dist/types/components/Notifications/notificationTarget.d.ts.map +1 -1
- package/dist/types/components/Poll/PollActions/PollResults/PollOptionWithVotes.d.ts.map +1 -1
- package/dist/types/components/Poll/PollOptionSelector.d.ts.map +1 -1
- package/dist/types/components/Reactions/MessageReactions.d.ts.map +1 -1
- package/dist/types/components/Reactions/MessageReactionsDetail.d.ts +1 -0
- package/dist/types/components/Reactions/MessageReactionsDetail.d.ts.map +1 -1
- package/dist/types/components/Reactions/ReactionSelector.d.ts +1 -1
- package/dist/types/components/Reactions/ReactionSelector.d.ts.map +1 -1
- package/dist/types/components/TextareaComposer/SuggestionList/SuggestionList.d.ts.map +1 -1
- package/dist/types/components/TextareaComposer/TextareaComposer.d.ts +1 -2
- package/dist/types/components/TextareaComposer/TextareaComposer.d.ts.map +1 -1
- package/dist/types/context/ChannelListContext.d.ts +1 -1
- package/dist/types/context/ChannelListContext.d.ts.map +1 -1
- package/dist/types/context/ComponentContext.d.ts +10 -3
- package/dist/types/context/ComponentContext.d.ts.map +1 -1
- package/dist/types/context/DialogManagerContext.d.ts +11 -7
- package/dist/types/context/DialogManagerContext.d.ts.map +1 -1
- package/dist/types/i18n/Streami18n.d.ts +11 -6
- package/dist/types/i18n/Streami18n.d.ts.map +1 -1
- package/package.json +13 -41
- package/dist/WithAudioPlayback-BcKZ5Lbh.mjs.map +0 -1
- package/dist/WithAudioPlayback-TERIQpZ6.js.map +0 -1
- package/dist/audioProcessing-BbOs2wMd.js.map +0 -1
- package/dist/audioProcessing-ByEVSjGG.mjs.map +0 -1
- package/dist/types/components/Message/icons.d.ts +0 -7
- package/dist/types/components/Message/icons.d.ts.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import React, { useContext, useCallback, useMemo,
|
|
2
|
+
import React, { useContext, createContext, useCallback, useMemo, forwardRef, useRef, useEffect, createElement, useState, useReducer, useLayoutEffect } from "react";
|
|
3
3
|
import { flip, shift, size, useFloating, autoUpdate, autoPlacement, offset } from "@floating-ui/react";
|
|
4
|
-
import { StateStore, MessageComposer, FixedSizeQueueCache, localMessageToNewMessagePayload } from "stream-chat";
|
|
4
|
+
import { StateStore, MessageComposer, FixedSizeQueueCache, ErrorFromResponse, localMessageToNewMessagePayload } from "stream-chat";
|
|
5
5
|
import throttle from "lodash.throttle";
|
|
6
6
|
import { useSyncExternalStore } from "use-sync-external-store/shim";
|
|
7
7
|
import clsx from "clsx";
|
|
@@ -26,6 +26,20 @@ const useChannelActionContext = (componentName) => {
|
|
|
26
26
|
}
|
|
27
27
|
return contextValue;
|
|
28
28
|
};
|
|
29
|
+
const ChannelListContext = createContext(
|
|
30
|
+
void 0
|
|
31
|
+
);
|
|
32
|
+
const ChannelListContextProvider = ({
|
|
33
|
+
children,
|
|
34
|
+
value
|
|
35
|
+
}) => /* @__PURE__ */ jsx(ChannelListContext.Provider, { value, children });
|
|
36
|
+
const useChannelListContext = () => {
|
|
37
|
+
const contextValue = useContext(ChannelListContext);
|
|
38
|
+
if (!contextValue) {
|
|
39
|
+
return {};
|
|
40
|
+
}
|
|
41
|
+
return contextValue;
|
|
42
|
+
};
|
|
29
43
|
const ChannelStateContext = React.createContext(void 0);
|
|
30
44
|
const ChannelStateProvider = ({
|
|
31
45
|
children,
|
|
@@ -587,6 +601,7 @@ class AudioPlayer {
|
|
|
587
601
|
};
|
|
588
602
|
this.stop = () => {
|
|
589
603
|
this.pause();
|
|
604
|
+
this.state.partialNext({ isPlaying: false });
|
|
590
605
|
this.setSecondsElapsed(0);
|
|
591
606
|
if (this.elementRef) this.elementRef.currentTime = 0;
|
|
592
607
|
};
|
|
@@ -663,10 +678,7 @@ class AudioPlayer {
|
|
|
663
678
|
if (audioElement) {
|
|
664
679
|
this.updateDurationFromElement(audioElement);
|
|
665
680
|
}
|
|
666
|
-
this.
|
|
667
|
-
isPlaying: false,
|
|
668
|
-
secondsElapsed: audioElement?.duration ?? this.durationSeconds ?? 0
|
|
669
|
-
});
|
|
681
|
+
this.stop();
|
|
670
682
|
};
|
|
671
683
|
const handleError = (e) => {
|
|
672
684
|
const audio = e.currentTarget;
|
|
@@ -984,7 +996,10 @@ const getNotificationTargetPanel = (notification) => {
|
|
|
984
996
|
return isNotificationTargetPanel(panel) ? panel : void 0;
|
|
985
997
|
};
|
|
986
998
|
const getNotificationTargetTag = (panel) => `target:${panel}`;
|
|
987
|
-
const addNotificationTargetTag = (panel, tags) =>
|
|
999
|
+
const addNotificationTargetTag = (panel, tags) => {
|
|
1000
|
+
if (!panel) return tags ?? [];
|
|
1001
|
+
return Array.from(/* @__PURE__ */ new Set([getNotificationTargetTag(panel), ...tags ?? []]));
|
|
1002
|
+
};
|
|
988
1003
|
const isNotificationForPanel = (notification, panel, options) => {
|
|
989
1004
|
const fallbackPanel = options?.fallbackPanel ?? "channel";
|
|
990
1005
|
const resolvedPanel = getNotificationTargetPanel(notification) ?? fallbackPanel;
|
|
@@ -1562,6 +1577,13 @@ const IconEmojiSmile = createIcon(
|
|
|
1562
1577
|
/* @__PURE__ */ jsx("path", { d: "M10.8333 6.59998C10.8333 7.33638 10.3856 7.83331 9.83334 7.83331C9.28108 7.83331 8.83334 7.33638 8.83334 6.59998C8.83334 5.8636 9.28108 5.33331 9.83334 5.33331C10.3856 5.33331 10.8333 5.8636 10.8333 6.59998Z" })
|
|
1563
1578
|
] })
|
|
1564
1579
|
);
|
|
1580
|
+
const IconExclamation = createIcon(
|
|
1581
|
+
"IconExclamation",
|
|
1582
|
+
/* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("g", { transform: "translate(6.2222 0) scale(1.7778)", children: [
|
|
1583
|
+
/* @__PURE__ */ jsx("path", { d: "M0 7.5C0 6.9477 0.4477 6.5 1 6.5C1.5523 6.5 2 6.9477 2 7.5C1.99989 8.05211 1.55223 8.5 1 8.5C0.447768 8.5 0.000110293 8.05211 0 7.5Z" }),
|
|
1584
|
+
/* @__PURE__ */ jsx("path", { d: "M0.25 0.75C0.25 0.33578 0.5858 0 1 0C1.4142 0 1.75 0.33578 1.75 0.75V4.75C1.74989 5.16411 1.41413 5.5 1 5.5C0.585868 5.5 0.25011 5.16411 0.25 4.75V0.75Z" })
|
|
1585
|
+
] }) })
|
|
1586
|
+
);
|
|
1565
1587
|
const IconExclamationCircle1 = createIcon(
|
|
1566
1588
|
"IconExclamationCircle1",
|
|
1567
1589
|
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -2817,6 +2839,7 @@ const messageTextHasEmojisOnly = (message) => {
|
|
|
2817
2839
|
return !noSpace;
|
|
2818
2840
|
};
|
|
2819
2841
|
const isMessageErrorRetryable = (message) => message.status === "failed" && message.error?.status !== 403;
|
|
2842
|
+
const isNetworkSendFailure = (message) => message.status === "failed" && message.error?.status === 0;
|
|
2820
2843
|
const isMessageBounced = (message) => message.type === "error" && (message.moderation_details?.action === "MESSAGE_RESPONSE_ACTION_BOUNCE" || message.moderation?.action === "bounce");
|
|
2821
2844
|
const isMessageBlocked = (message) => message.type === "error" && (message.moderation_details?.action === "MESSAGE_RESPONSE_ACTION_REMOVE" || message.moderation?.action === "remove");
|
|
2822
2845
|
const isMessageEdited = (message) => !!message.message_text_updated_at;
|
|
@@ -3149,6 +3172,64 @@ const findInMsgSetByDate = (targetDate, msgSet, exact = false) => {
|
|
|
3149
3172
|
}
|
|
3150
3173
|
return { index: -1 };
|
|
3151
3174
|
};
|
|
3175
|
+
const adaptMessageSendErrorToErrorFromResponse = (error) => {
|
|
3176
|
+
if (error instanceof ErrorFromResponse) {
|
|
3177
|
+
return error;
|
|
3178
|
+
}
|
|
3179
|
+
const fallbackMessage = error instanceof Error ? error.message : "Message send failed";
|
|
3180
|
+
let message = fallbackMessage;
|
|
3181
|
+
let status = 0;
|
|
3182
|
+
let code = null;
|
|
3183
|
+
if (typeof error === "object" && error !== null) {
|
|
3184
|
+
const maybeAxiosError = error;
|
|
3185
|
+
if (maybeAxiosError.name === "AxiosError" && maybeAxiosError.code === "ERR_NETWORK") {
|
|
3186
|
+
message = typeof maybeAxiosError.message === "string" ? maybeAxiosError.message : "Network Error";
|
|
3187
|
+
status = maybeAxiosError.response?.status ?? 0;
|
|
3188
|
+
return new ErrorFromResponse(message, {
|
|
3189
|
+
code: null,
|
|
3190
|
+
response: maybeAxiosError.response ?? {
|
|
3191
|
+
// Compatibility shim: this is an intentionally incomplete AxiosResponse-like object.
|
|
3192
|
+
data: {
|
|
3193
|
+
duration: "",
|
|
3194
|
+
message,
|
|
3195
|
+
more_info: "",
|
|
3196
|
+
StatusCode: status
|
|
3197
|
+
},
|
|
3198
|
+
status
|
|
3199
|
+
},
|
|
3200
|
+
status
|
|
3201
|
+
});
|
|
3202
|
+
}
|
|
3203
|
+
try {
|
|
3204
|
+
const stringError = JSON.stringify(error);
|
|
3205
|
+
const parsedError = stringError ? JSON.parse(stringError) : {};
|
|
3206
|
+
if (typeof parsedError.message === "string") {
|
|
3207
|
+
message = parsedError.message;
|
|
3208
|
+
}
|
|
3209
|
+
if (typeof parsedError.status === "number") {
|
|
3210
|
+
status = parsedError.status;
|
|
3211
|
+
}
|
|
3212
|
+
if (typeof parsedError.code === "number") {
|
|
3213
|
+
code = parsedError.code;
|
|
3214
|
+
}
|
|
3215
|
+
} catch {
|
|
3216
|
+
}
|
|
3217
|
+
}
|
|
3218
|
+
return new ErrorFromResponse(message, {
|
|
3219
|
+
code,
|
|
3220
|
+
response: {
|
|
3221
|
+
// Compatibility shim: this is an intentionally incomplete AxiosResponse-like object.
|
|
3222
|
+
data: {
|
|
3223
|
+
duration: "",
|
|
3224
|
+
message,
|
|
3225
|
+
more_info: "",
|
|
3226
|
+
StatusCode: status
|
|
3227
|
+
},
|
|
3228
|
+
status
|
|
3229
|
+
},
|
|
3230
|
+
status
|
|
3231
|
+
});
|
|
3232
|
+
};
|
|
3152
3233
|
const WATCH_QUERY_IN_PROGRESS_FOR_CHANNEL = {};
|
|
3153
3234
|
const getChannel = async ({
|
|
3154
3235
|
channel,
|
|
@@ -3878,8 +3959,7 @@ const ChannelInner = (props) => {
|
|
|
3878
3959
|
});
|
|
3879
3960
|
}
|
|
3880
3961
|
} catch (error) {
|
|
3881
|
-
const
|
|
3882
|
-
const parsedError = stringError ? JSON.parse(stringError) : {};
|
|
3962
|
+
const parsedError = adaptMessageSendErrorToErrorFromResponse(error);
|
|
3883
3963
|
if (parsedError.code === 4 && error instanceof Error && error.message.includes("already exists")) {
|
|
3884
3964
|
updateMessage({
|
|
3885
3965
|
...localMessage,
|
|
@@ -4075,9 +4155,10 @@ const ChatViewContext = createContext(void 0);
|
|
|
4075
4155
|
const useChatViewContext = () => {
|
|
4076
4156
|
const value = useContext(ChatViewContext);
|
|
4077
4157
|
if (!value) {
|
|
4078
|
-
|
|
4158
|
+
console.warn(
|
|
4079
4159
|
"The useChatViewContext hook was called outside of the ChatView provider."
|
|
4080
4160
|
);
|
|
4161
|
+
return {};
|
|
4081
4162
|
}
|
|
4082
4163
|
return value;
|
|
4083
4164
|
};
|
|
@@ -4278,14 +4359,16 @@ ChatView.Threads = ThreadsView;
|
|
|
4278
4359
|
ChatView.ThreadAdapter = ThreadAdapter;
|
|
4279
4360
|
ChatView.Selector = ChatViewSelector;
|
|
4280
4361
|
const useNotificationTarget = () => {
|
|
4281
|
-
const
|
|
4362
|
+
const chatViewContext = useContext(ChatViewContext);
|
|
4363
|
+
const { channels } = useChannelListContext();
|
|
4282
4364
|
const { channel } = useChannelStateContext();
|
|
4283
4365
|
const threadInstance = useThreadContext();
|
|
4284
4366
|
const { legacyThread } = useLegacyThreadContext();
|
|
4285
4367
|
if (threadInstance || legacyThread) return "thread";
|
|
4286
4368
|
if (channel) return "channel";
|
|
4287
|
-
if (activeChatView === "threads") return "thread-list";
|
|
4288
|
-
return "channel-list";
|
|
4369
|
+
if (chatViewContext?.activeChatView === "threads") return "thread-list";
|
|
4370
|
+
if (channels) return "channel-list";
|
|
4371
|
+
return void 0;
|
|
4289
4372
|
};
|
|
4290
4373
|
const AudioPlayerContext = React.createContext({
|
|
4291
4374
|
audioPlayers: null
|
|
@@ -4353,250 +4436,255 @@ const useActiveAudioPlayer = () => {
|
|
|
4353
4436
|
return activeAudioPlayer;
|
|
4354
4437
|
};
|
|
4355
4438
|
export {
|
|
4356
|
-
|
|
4357
|
-
|
|
4439
|
+
IconImages1Alt as $,
|
|
4440
|
+
IconChevronLeft as A,
|
|
4358
4441
|
BaseIcon as B,
|
|
4359
4442
|
ComponentContext as C,
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4443
|
+
IconArrowLeft as D,
|
|
4444
|
+
IconExclamationCircle as E,
|
|
4445
|
+
IconCircleBanSign as F,
|
|
4446
|
+
isMessageErrorRetryable as G,
|
|
4447
|
+
ACTIONS_NOT_WORKING_IN_THREAD as H,
|
|
4365
4448
|
IconPause as I,
|
|
4366
|
-
|
|
4367
|
-
|
|
4449
|
+
useNotificationTarget as J,
|
|
4450
|
+
IconArrowRightUp as K,
|
|
4368
4451
|
LocalizedFormat as L,
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4452
|
+
addNotificationTargetTag as M,
|
|
4453
|
+
IconPin as N,
|
|
4454
|
+
mapToUserNameOrId as O,
|
|
4455
|
+
IconClock as P,
|
|
4456
|
+
IconCheckmark1Small as Q,
|
|
4457
|
+
IconDoubleCheckmark1Small as R,
|
|
4458
|
+
getReadByTooltipText as S,
|
|
4459
|
+
messageHasAttachments as T,
|
|
4460
|
+
messageTextHasEmojisOnly as U,
|
|
4461
|
+
isDate as V,
|
|
4462
|
+
getDateString as W,
|
|
4463
|
+
IconTranslate as X,
|
|
4464
|
+
useMessageComposerContext as Y,
|
|
4465
|
+
useIsCooldownActive as Z,
|
|
4466
|
+
IconCrossSmall as _,
|
|
4384
4467
|
useMessageComposerController as a,
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4468
|
+
processMessages as a$,
|
|
4469
|
+
IconChart5 as a0,
|
|
4470
|
+
IconMapPin as a1,
|
|
4471
|
+
IconFileBend as a2,
|
|
4472
|
+
IconChainLink as a3,
|
|
4473
|
+
IconVideo as a4,
|
|
4474
|
+
IconVideoSolid as a5,
|
|
4475
|
+
IconMicrophone as a6,
|
|
4476
|
+
IconBookmark as a7,
|
|
4477
|
+
IconBellNotification as a8,
|
|
4478
|
+
IconChevronDown as a9,
|
|
4479
|
+
isLanguageSupported as aA,
|
|
4480
|
+
IconLayoutAlignLeft as aB,
|
|
4481
|
+
useChatViewContext as aC,
|
|
4482
|
+
MESSAGE_ACTIONS as aD,
|
|
4483
|
+
LegacyThreadContext as aE,
|
|
4484
|
+
IconArrowShareLeft as aF,
|
|
4485
|
+
IconEmojiSmile as aG,
|
|
4486
|
+
IconDotGrid1x3Horizontal as aH,
|
|
4487
|
+
IconPeopleAdded as aI,
|
|
4488
|
+
IconBookmarkRemove as aJ,
|
|
4489
|
+
IconBellOff as aK,
|
|
4490
|
+
IconBubbleWideNotificationChatMessage as aL,
|
|
4491
|
+
IconEditBig as aM,
|
|
4492
|
+
IconSquareBehindSquare2_Copy as aN,
|
|
4493
|
+
IconUnpin as aO,
|
|
4494
|
+
IconCloseQuote2 as aP,
|
|
4495
|
+
IconBubbleText6ChatMessage as aQ,
|
|
4496
|
+
areMessageUIPropsEqual as aR,
|
|
4497
|
+
isDateSeparatorMessage as aS,
|
|
4498
|
+
isMessageBlocked as aT,
|
|
4499
|
+
messageHasSingleAttachment as aU,
|
|
4500
|
+
messageHasGiphyAttachment as aV,
|
|
4501
|
+
messageHasReactions as aW,
|
|
4502
|
+
isMessageEdited as aX,
|
|
4503
|
+
countEmojis as aY,
|
|
4504
|
+
areMessagePropsEqual as aZ,
|
|
4505
|
+
getMessageActions as a_,
|
|
4506
|
+
IconPlusSmall as aa,
|
|
4507
|
+
IconCheckmark2 as ab,
|
|
4508
|
+
DEFAULT_LOAD_PAGE_SCROLL_THRESHOLD as ac,
|
|
4509
|
+
IconTrophy as ad,
|
|
4510
|
+
IconDotGrid2x3 as ae,
|
|
4511
|
+
IconCircleMinus as af,
|
|
4512
|
+
IconPaperPlane as ag,
|
|
4513
|
+
IconVolumeFull as ah,
|
|
4514
|
+
IconPeopleAdd as ai,
|
|
4515
|
+
IconMute as aj,
|
|
4516
|
+
IconFlag2 as ak,
|
|
4517
|
+
IconPeopleRemove as al,
|
|
4518
|
+
IconPaperclip as am,
|
|
4519
|
+
IconRunShortcut as an,
|
|
4520
|
+
CHANNEL_CONTAINER_ID as ao,
|
|
4521
|
+
IconPlusLarge as ap,
|
|
4522
|
+
IconExclamationTriangle as aq,
|
|
4523
|
+
useAudioPlayer as ar,
|
|
4524
|
+
IconArrowRotateClockwise as as,
|
|
4525
|
+
IconArrowDownCircle as at,
|
|
4526
|
+
IconThunder as au,
|
|
4527
|
+
IconTrashBin as av,
|
|
4528
|
+
IconFileArrowLeftIn as aw,
|
|
4529
|
+
MessageComposerContextProvider as ax,
|
|
4530
|
+
useTypingContext as ay,
|
|
4531
|
+
defaultDateTimeParser as az,
|
|
4449
4532
|
useChannelActionContext as b,
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4533
|
+
IconChevronTop as b$,
|
|
4534
|
+
insertIntro as b0,
|
|
4535
|
+
getGroupStyles as b1,
|
|
4536
|
+
getLastReceived as b2,
|
|
4537
|
+
IconArrowUp as b3,
|
|
4538
|
+
isIntroMessage as b4,
|
|
4539
|
+
isLocalMessage as b5,
|
|
4540
|
+
getIsFirstUnreadMessage as b6,
|
|
4541
|
+
IconArrowDown as b7,
|
|
4542
|
+
DEFAULT_NEXT_CHANNEL_PAGE_SIZE as b8,
|
|
4543
|
+
EmptyStateIndicator as b9,
|
|
4544
|
+
useActiveThread as bA,
|
|
4545
|
+
ChatViewSelectorButton as bB,
|
|
4546
|
+
ChatViewChannelsSelectorButton as bC,
|
|
4547
|
+
ChatViewThreadsSelectorButton as bD,
|
|
4548
|
+
defaultChatViewSelectorItemSet as bE,
|
|
4549
|
+
createIcon as bF,
|
|
4550
|
+
IconApiAggregate as bG,
|
|
4551
|
+
IconApples as bH,
|
|
4552
|
+
IconArrowRight as bI,
|
|
4553
|
+
IconArrowsRepeatLeftRight as bJ,
|
|
4554
|
+
IconAt as bK,
|
|
4555
|
+
IconAtSolid as bL,
|
|
4556
|
+
IconBrowserAISparkle as bM,
|
|
4557
|
+
IconBubble2ChatMessage as bN,
|
|
4558
|
+
IconBubble2Solid as bO,
|
|
4559
|
+
IconBubble3ChatMessage as bP,
|
|
4560
|
+
IconBubble3Solid as bQ,
|
|
4561
|
+
IconBubbleAnnotation2ChatMessage as bR,
|
|
4562
|
+
IconBubbleText6SolidChatMessage as bS,
|
|
4563
|
+
IconBubbleText6Solid as bT,
|
|
4564
|
+
IconBubbleWideSparkleChatMessage as bU,
|
|
4565
|
+
IconCalendar1 as bV,
|
|
4566
|
+
IconCallCancel as bW,
|
|
4567
|
+
IconCar1 as bX,
|
|
4568
|
+
IconCat as bY,
|
|
4569
|
+
IconCheckmark2Small as bZ,
|
|
4570
|
+
IconChevronGrabberVerticalSelector as b_,
|
|
4571
|
+
getChannel as ba,
|
|
4572
|
+
IconMagnifyingGlassSearch as bb,
|
|
4573
|
+
IconCircleX as bc,
|
|
4574
|
+
useChannelListContext as bd,
|
|
4575
|
+
DEFAULT_JUMP_TO_PAGE_SIZE as be,
|
|
4576
|
+
ChannelListContextProvider as bf,
|
|
4577
|
+
IconArchive as bg,
|
|
4578
|
+
IconArrowBoxLeft as bh,
|
|
4579
|
+
IconCamera1 as bi,
|
|
4580
|
+
IconExclamationCircle1 as bj,
|
|
4581
|
+
ChatProvider as bk,
|
|
4582
|
+
TranslationProvider as bl,
|
|
4583
|
+
useThreadsViewContext as bm,
|
|
4584
|
+
IconBubbles as bn,
|
|
4585
|
+
IconArrowRotateRightLeftRepeatRefresh as bo,
|
|
4586
|
+
IconEyeOpen as bp,
|
|
4587
|
+
useActiveAudioPlayer as bq,
|
|
4588
|
+
WithAudioPlayback as br,
|
|
4589
|
+
defaultRegisterAudioPlayerError as bs,
|
|
4590
|
+
elementIsPlaying as bt,
|
|
4591
|
+
AudioPlayer as bu,
|
|
4592
|
+
useEditMessageHandler as bv,
|
|
4593
|
+
useMentionsHandlers as bw,
|
|
4594
|
+
Channel as bx,
|
|
4595
|
+
ChatViewContext as by,
|
|
4596
|
+
ChatView as bz,
|
|
4514
4597
|
useTranslationContext as c,
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4598
|
+
OPTIONAL_MESSAGE_ACTIONS as c$,
|
|
4599
|
+
IconCircleCheck as c0,
|
|
4600
|
+
IconCircleInfoTooltip as c1,
|
|
4601
|
+
IconCircleQuestionmark as c2,
|
|
4602
|
+
IconCircleQuestionmarkFilled as c3,
|
|
4603
|
+
IconClockSolid as c4,
|
|
4604
|
+
IconCode as c5,
|
|
4605
|
+
IconCodeBrackets as c6,
|
|
4606
|
+
IconCodeEditorInsert as c7,
|
|
4607
|
+
IconCompass as c8,
|
|
4608
|
+
IconCreditCard2Billing as c9,
|
|
4609
|
+
IconPencil as cA,
|
|
4610
|
+
IconPeople2 as cB,
|
|
4611
|
+
IconPeopleCircle as cC,
|
|
4612
|
+
IconPeopleCopy as cD,
|
|
4613
|
+
IconPeopleEditUserRights as cE,
|
|
4614
|
+
IconPersona as cF,
|
|
4615
|
+
IconSearchText as cG,
|
|
4616
|
+
IconSettingsGear2 as cH,
|
|
4617
|
+
IconSettingsSliderVer as cI,
|
|
4618
|
+
IconShapesPlusCloseSquareCircle as cJ,
|
|
4619
|
+
IconShapesTriangleSquareCircle as cK,
|
|
4620
|
+
IconShareRedirectLink as cL,
|
|
4621
|
+
IconShield as cM,
|
|
4622
|
+
IconSquareCircleTopRightFeeds as cN,
|
|
4623
|
+
IconStop as cO,
|
|
4624
|
+
IconTable as cP,
|
|
4625
|
+
IconTeam as cQ,
|
|
4626
|
+
IconTennis as cR,
|
|
4627
|
+
IconTextToImageURLEnrichment as cS,
|
|
4628
|
+
IconTrending4 as cT,
|
|
4629
|
+
IconUnlocked as cU,
|
|
4630
|
+
IconUsers as cV,
|
|
4631
|
+
IconVoiceAndVideo as cW,
|
|
4632
|
+
IconVoiceHigh as cX,
|
|
4633
|
+
IconWebhook as cY,
|
|
4634
|
+
LoadingChannel as cZ,
|
|
4635
|
+
LoadingErrorIndicator as c_,
|
|
4636
|
+
IconDotsGrid1x3Vertical as ca,
|
|
4637
|
+
IconEditBigSolid as cb,
|
|
4638
|
+
IconEmojiAddReaction as cc,
|
|
4639
|
+
IconEmojiSad as cd,
|
|
4640
|
+
IconExclamationTriangle1 as ce,
|
|
4641
|
+
IconFilledCircleInfoTooltip as cf,
|
|
4642
|
+
IconFilter1 as cg,
|
|
4643
|
+
IconGauge as ch,
|
|
4644
|
+
IconGoogle as ci,
|
|
4645
|
+
IconHashtagChannel as cj,
|
|
4646
|
+
IconHeart2 as ck,
|
|
4647
|
+
IconHistory as cl,
|
|
4648
|
+
IconInvite as cm,
|
|
4649
|
+
IconLayersBehind as cn,
|
|
4650
|
+
IconLayoutGrid1 as co,
|
|
4651
|
+
IconLightBulbSimple as cp,
|
|
4652
|
+
IconLimits as cq,
|
|
4653
|
+
IconLineChart3 as cr,
|
|
4654
|
+
IconLock as cs,
|
|
4655
|
+
IconMicrophoneSolid as ct,
|
|
4656
|
+
IconMinusLarge as cu,
|
|
4657
|
+
IconMinusSmall as cv,
|
|
4658
|
+
IconNewspaper2 as cw,
|
|
4659
|
+
IconOrganization as cx,
|
|
4660
|
+
IconPaperPlaneTopRight as cy,
|
|
4661
|
+
IconParagraphsText as cz,
|
|
4579
4662
|
useChannelStateContext as d,
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4663
|
+
getImages as d0,
|
|
4664
|
+
getNonImageAttachments as d1,
|
|
4665
|
+
makeIntroMessage as d2,
|
|
4666
|
+
makeDateMessageId as d3,
|
|
4667
|
+
hasMoreMessagesProbably as d4,
|
|
4668
|
+
hasNotMoreMessages as d5,
|
|
4669
|
+
isNotificationTargetPanel as d6,
|
|
4670
|
+
getNotificationTargetPanel as d7,
|
|
4671
|
+
getNotificationTargetTag as d8,
|
|
4672
|
+
useLegacyThreadContext as d9,
|
|
4673
|
+
ThreadContext as da,
|
|
4674
|
+
ThreadProvider as db,
|
|
4675
|
+
ChannelActionContext as dc,
|
|
4676
|
+
ChannelActionProvider as dd,
|
|
4677
|
+
ChannelListContext as de,
|
|
4678
|
+
ChannelStateContext as df,
|
|
4679
|
+
ChannelStateProvider as dg,
|
|
4680
|
+
ChatContext as dh,
|
|
4681
|
+
ComponentProvider as di,
|
|
4682
|
+
MessageComposerContext as dj,
|
|
4683
|
+
TranslationContext as dk,
|
|
4684
|
+
TypingContext as dl,
|
|
4685
|
+
TypingProvider as dm,
|
|
4686
|
+
isDayOrMoment as dn,
|
|
4687
|
+
isNumberOrString as dp,
|
|
4600
4688
|
useChatContext as e,
|
|
4601
4689
|
isNotificationForPanel as f,
|
|
4602
4690
|
Button as g,
|
|
@@ -4606,18 +4694,18 @@ export {
|
|
|
4606
4694
|
defaultTranslatorFunction as k,
|
|
4607
4695
|
calendar as l,
|
|
4608
4696
|
IconLoadingCircle as m,
|
|
4609
|
-
|
|
4610
|
-
|
|
4697
|
+
isNetworkSendFailure as n,
|
|
4698
|
+
isUserMuted as o,
|
|
4611
4699
|
predefinedFormatters as p,
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4700
|
+
defaultPinPermissions as q,
|
|
4701
|
+
useThreadContext as r,
|
|
4702
|
+
usePopoverPosition as s,
|
|
4703
|
+
useComponentContext as t,
|
|
4616
4704
|
useStateStore as u,
|
|
4617
4705
|
validateAndGetMessage as v,
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4706
|
+
IconCrossMedium as w,
|
|
4707
|
+
IconPeople as x,
|
|
4708
|
+
IconExclamation as y,
|
|
4709
|
+
IconChevronRight as z
|
|
4622
4710
|
};
|
|
4623
|
-
//# sourceMappingURL=WithAudioPlayback
|
|
4711
|
+
//# sourceMappingURL=WithAudioPlayback.a3d5a2fc.mjs.map
|