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.
Files changed (110) hide show
  1. package/dist/{WithAudioPlayback-TERIQpZ6.js → cjs/WithAudioPlayback.4a84360f.js} +100 -12
  2. package/dist/cjs/WithAudioPlayback.4a84360f.js.map +1 -0
  3. package/dist/{audioProcessing-BbOs2wMd.js → cjs/audioProcessing.56e5db9d.js} +1 -1
  4. package/dist/cjs/audioProcessing.56e5db9d.js.map +1 -0
  5. package/dist/cjs/emojis.js +1 -1
  6. package/dist/cjs/index.js +1366 -1037
  7. package/dist/cjs/index.js.map +1 -1
  8. package/dist/cjs/mp3-encoder.js +1 -1
  9. package/dist/css/index.css +232 -62
  10. package/dist/css/index.css.map +1 -1
  11. package/dist/{WithAudioPlayback-BcKZ5Lbh.mjs → es/WithAudioPlayback.a3d5a2fc.mjs} +348 -260
  12. package/dist/es/WithAudioPlayback.a3d5a2fc.mjs.map +1 -0
  13. package/dist/{audioProcessing-ByEVSjGG.mjs → es/audioProcessing.21cb49e1.mjs} +1 -1
  14. package/dist/es/audioProcessing.21cb49e1.mjs.map +1 -0
  15. package/dist/es/emojis.mjs +1 -1
  16. package/dist/es/index.mjs +1500 -1171
  17. package/dist/es/index.mjs.map +1 -1
  18. package/dist/es/mp3-encoder.mjs +1 -1
  19. package/dist/types/components/Attachment/Giphy.d.ts.map +1 -1
  20. package/dist/types/components/Attachment/VoiceRecording.d.ts.map +1 -1
  21. package/dist/types/components/AudioPlayback/AudioPlayer.d.ts.map +1 -1
  22. package/dist/types/components/Badge/Badge.d.ts +1 -0
  23. package/dist/types/components/Badge/Badge.d.ts.map +1 -1
  24. package/dist/types/components/BaseImage/toBaseImageDescriptors.d.ts +1 -1
  25. package/dist/types/components/BaseImage/toBaseImageDescriptors.d.ts.map +1 -1
  26. package/dist/types/components/Channel/Channel.d.ts.map +1 -1
  27. package/dist/types/components/Channel/utils.d.ts +7 -1
  28. package/dist/types/components/Channel/utils.d.ts.map +1 -1
  29. package/dist/types/components/ChannelList/hooks/useMobileNavigation.d.ts.map +1 -1
  30. package/dist/types/components/ChannelListItem/ChannelListItemActionButtons.d.ts +3 -1
  31. package/dist/types/components/ChannelListItem/ChannelListItemActionButtons.d.ts.map +1 -1
  32. package/dist/types/components/ChannelListItem/ChannelListItemActionButtons.defaults.d.ts +6 -3
  33. package/dist/types/components/ChannelListItem/ChannelListItemActionButtons.defaults.d.ts.map +1 -1
  34. package/dist/types/components/Chat/hooks/useSplitActionSet.d.ts +5 -0
  35. package/dist/types/components/Chat/hooks/useSplitActionSet.d.ts.map +1 -1
  36. package/dist/types/components/ChatView/ChatView.d.ts.map +1 -1
  37. package/dist/types/components/Dialog/components/ContextMenu.d.ts +119 -3
  38. package/dist/types/components/Dialog/components/ContextMenu.d.ts.map +1 -1
  39. package/dist/types/components/Dialog/hooks/useDialog.d.ts +1 -1
  40. package/dist/types/components/Dialog/hooks/useDialog.d.ts.map +1 -1
  41. package/dist/types/components/Dialog/service/DialogAnchor.d.ts +14 -1
  42. package/dist/types/components/Dialog/service/DialogAnchor.d.ts.map +1 -1
  43. package/dist/types/components/Dialog/service/DialogManager.d.ts +14 -3
  44. package/dist/types/components/Dialog/service/DialogManager.d.ts.map +1 -1
  45. package/dist/types/components/Dialog/service/DialogPortal.d.ts.map +1 -1
  46. package/dist/types/components/Gallery/Gallery.d.ts.map +1 -1
  47. package/dist/types/components/Gallery/GalleryContext.d.ts +1 -1
  48. package/dist/types/components/Gallery/GalleryContext.d.ts.map +1 -1
  49. package/dist/types/components/Icons/icons.d.ts +4 -0
  50. package/dist/types/components/Icons/icons.d.ts.map +1 -1
  51. package/dist/types/components/MediaRecorder/AudioRecorder/AudioRecorderRecordingControls.d.ts.map +1 -1
  52. package/dist/types/components/Message/MessageErrorText.d.ts +0 -5
  53. package/dist/types/components/Message/MessageErrorText.d.ts.map +1 -1
  54. package/dist/types/components/Message/MessageText.d.ts.map +1 -1
  55. package/dist/types/components/Message/MessageUI.d.ts.map +1 -1
  56. package/dist/types/components/Message/hooks/useDeleteHandler.d.ts.map +1 -1
  57. package/dist/types/components/Message/index.d.ts +0 -1
  58. package/dist/types/components/Message/index.d.ts.map +1 -1
  59. package/dist/types/components/Message/utils.d.ts +1 -0
  60. package/dist/types/components/Message/utils.d.ts.map +1 -1
  61. package/dist/types/components/MessageActions/MessageActions.d.ts +14 -3
  62. package/dist/types/components/MessageActions/MessageActions.d.ts.map +1 -1
  63. package/dist/types/components/MessageActions/MessageActions.defaults.d.ts +1 -1
  64. package/dist/types/components/MessageActions/MessageActions.defaults.d.ts.map +1 -1
  65. package/dist/types/components/MessageActions/QuickMessageActionButton.d.ts.map +1 -1
  66. package/dist/types/components/MessageActions/hooks/useBaseMessageActionSetFilter.d.ts.map +1 -1
  67. package/dist/types/components/MessageComposer/AttachmentPreviewList/AttachmentPreviewList.d.ts.map +1 -1
  68. package/dist/types/components/MessageComposer/AttachmentPreviewList/ImageAttachmentPreview.d.ts +3 -1
  69. package/dist/types/components/MessageComposer/AttachmentPreviewList/ImageAttachmentPreview.d.ts.map +1 -1
  70. package/dist/types/components/MessageComposer/AttachmentPreviewList/MediaAttachmentPreview.d.ts +4 -2
  71. package/dist/types/components/MessageComposer/AttachmentPreviewList/MediaAttachmentPreview.d.ts.map +1 -1
  72. package/dist/types/components/MessageComposer/AttachmentPreviewList/utils/AttachmentPreviewRoot.d.ts +6 -1
  73. package/dist/types/components/MessageComposer/AttachmentPreviewList/utils/AttachmentPreviewRoot.d.ts.map +1 -1
  74. package/dist/types/components/MessageComposer/AttachmentSelector/AttachmentSelector.d.ts +9 -2
  75. package/dist/types/components/MessageComposer/AttachmentSelector/AttachmentSelector.d.ts.map +1 -1
  76. package/dist/types/components/MessageComposer/CommandChip.d.ts +5 -1
  77. package/dist/types/components/MessageComposer/CommandChip.d.ts.map +1 -1
  78. package/dist/types/components/MessageComposer/MessageComposerUI.d.ts.map +1 -1
  79. package/dist/types/components/MessageList/hooks/MessageList/useScrollLocationLogic.d.ts +18 -0
  80. package/dist/types/components/MessageList/hooks/MessageList/useScrollLocationLogic.d.ts.map +1 -1
  81. package/dist/types/components/Notifications/Notification.d.ts.map +1 -1
  82. package/dist/types/components/Notifications/hooks/useNotificationTarget.d.ts +1 -1
  83. package/dist/types/components/Notifications/hooks/useNotificationTarget.d.ts.map +1 -1
  84. package/dist/types/components/Notifications/notificationTarget.d.ts +1 -1
  85. package/dist/types/components/Notifications/notificationTarget.d.ts.map +1 -1
  86. package/dist/types/components/Poll/PollActions/PollResults/PollOptionWithVotes.d.ts.map +1 -1
  87. package/dist/types/components/Poll/PollOptionSelector.d.ts.map +1 -1
  88. package/dist/types/components/Reactions/MessageReactions.d.ts.map +1 -1
  89. package/dist/types/components/Reactions/MessageReactionsDetail.d.ts +1 -0
  90. package/dist/types/components/Reactions/MessageReactionsDetail.d.ts.map +1 -1
  91. package/dist/types/components/Reactions/ReactionSelector.d.ts +1 -1
  92. package/dist/types/components/Reactions/ReactionSelector.d.ts.map +1 -1
  93. package/dist/types/components/TextareaComposer/SuggestionList/SuggestionList.d.ts.map +1 -1
  94. package/dist/types/components/TextareaComposer/TextareaComposer.d.ts +1 -2
  95. package/dist/types/components/TextareaComposer/TextareaComposer.d.ts.map +1 -1
  96. package/dist/types/context/ChannelListContext.d.ts +1 -1
  97. package/dist/types/context/ChannelListContext.d.ts.map +1 -1
  98. package/dist/types/context/ComponentContext.d.ts +10 -3
  99. package/dist/types/context/ComponentContext.d.ts.map +1 -1
  100. package/dist/types/context/DialogManagerContext.d.ts +11 -7
  101. package/dist/types/context/DialogManagerContext.d.ts.map +1 -1
  102. package/dist/types/i18n/Streami18n.d.ts +11 -6
  103. package/dist/types/i18n/Streami18n.d.ts.map +1 -1
  104. package/package.json +13 -41
  105. package/dist/WithAudioPlayback-BcKZ5Lbh.mjs.map +0 -1
  106. package/dist/WithAudioPlayback-TERIQpZ6.js.map +0 -1
  107. package/dist/audioProcessing-BbOs2wMd.js.map +0 -1
  108. package/dist/audioProcessing-ByEVSjGG.mjs.map +0 -1
  109. package/dist/types/components/Message/icons.d.ts +0 -7
  110. 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, createContext, forwardRef, useRef, useEffect, createElement, useState, useReducer, useLayoutEffect } from "react";
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.state.partialNext({
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) => Array.from(/* @__PURE__ */ new Set([getNotificationTargetTag(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 stringError = JSON.stringify(error);
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
- throw new Error(
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 { activeChatView } = useChatViewContext();
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
- IconMapPin as $,
4357
- IconExclamationCircle as A,
4439
+ IconImages1Alt as $,
4440
+ IconChevronLeft as A,
4358
4441
  BaseIcon as B,
4359
4442
  ComponentContext as C,
4360
- IconCircleBanSign as D,
4361
- isMessageErrorRetryable as E,
4362
- ACTIONS_NOT_WORKING_IN_THREAD as F,
4363
- useNotificationTarget as G,
4364
- IconArrowRightUp as H,
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
- addNotificationTargetTag as J,
4367
- IconPin as K,
4449
+ useNotificationTarget as J,
4450
+ IconArrowRightUp as K,
4368
4451
  LocalizedFormat as L,
4369
- mapToUserNameOrId as M,
4370
- IconClock as N,
4371
- IconCheckmark1Small as O,
4372
- IconDoubleCheckmark1Small as P,
4373
- getReadByTooltipText as Q,
4374
- messageHasAttachments as R,
4375
- messageTextHasEmojisOnly as S,
4376
- isDate as T,
4377
- getDateString as U,
4378
- IconTranslate as V,
4379
- useMessageComposerContext as W,
4380
- useIsCooldownActive as X,
4381
- IconCrossSmall as Y,
4382
- IconImages1Alt as Z,
4383
- IconChart5 as _,
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
- isIntroMessage as a$,
4386
- IconFileBend as a0,
4387
- IconChainLink as a1,
4388
- IconVideo as a2,
4389
- IconVideoSolid as a3,
4390
- IconMicrophone as a4,
4391
- IconBookmark as a5,
4392
- IconBellNotification as a6,
4393
- IconChevronDown as a7,
4394
- IconPlusSmall as a8,
4395
- IconCheckmark2 as a9,
4396
- useChatViewContext as aA,
4397
- MESSAGE_ACTIONS as aB,
4398
- LegacyThreadContext as aC,
4399
- IconPeopleAdded as aD,
4400
- IconBookmarkRemove as aE,
4401
- IconBellOff as aF,
4402
- IconBubbleWideNotificationChatMessage as aG,
4403
- IconEditBig as aH,
4404
- IconSquareBehindSquare2_Copy as aI,
4405
- IconUnpin as aJ,
4406
- IconCloseQuote2 as aK,
4407
- IconBubbleText6ChatMessage as aL,
4408
- areMessageUIPropsEqual as aM,
4409
- isDateSeparatorMessage as aN,
4410
- isMessageBlocked as aO,
4411
- messageHasSingleAttachment as aP,
4412
- messageHasGiphyAttachment as aQ,
4413
- messageHasReactions as aR,
4414
- isMessageEdited as aS,
4415
- countEmojis as aT,
4416
- areMessagePropsEqual as aU,
4417
- getMessageActions as aV,
4418
- processMessages as aW,
4419
- insertIntro as aX,
4420
- getGroupStyles as aY,
4421
- getLastReceived as aZ,
4422
- IconArrowUp as a_,
4423
- DEFAULT_LOAD_PAGE_SCROLL_THRESHOLD as aa,
4424
- IconTrophy as ab,
4425
- IconDotGrid2x3 as ac,
4426
- IconCircleMinus as ad,
4427
- IconPaperPlane as ae,
4428
- IconVolumeFull as af,
4429
- IconPeopleAdd as ag,
4430
- IconMute as ah,
4431
- IconFlag2 as ai,
4432
- IconPeopleRemove as aj,
4433
- IconPaperclip as ak,
4434
- IconRunShortcut as al,
4435
- CHANNEL_CONTAINER_ID as am,
4436
- IconPlusLarge as an,
4437
- IconArrowDownCircle as ao,
4438
- IconExclamationTriangle as ap,
4439
- useAudioPlayer as aq,
4440
- IconArrowRotateClockwise as ar,
4441
- IconThunder as as,
4442
- IconTrashBin as at,
4443
- IconFileArrowLeftIn as au,
4444
- MessageComposerContextProvider as av,
4445
- useTypingContext as aw,
4446
- defaultDateTimeParser as ax,
4447
- isLanguageSupported as ay,
4448
- IconLayoutAlignLeft as az,
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
- IconClockSolid as b$,
4451
- isLocalMessage as b0,
4452
- getIsFirstUnreadMessage as b1,
4453
- IconArrowDown as b2,
4454
- DEFAULT_NEXT_CHANNEL_PAGE_SIZE as b3,
4455
- EmptyStateIndicator as b4,
4456
- getChannel as b5,
4457
- IconMagnifyingGlassSearch as b6,
4458
- IconCircleX as b7,
4459
- DEFAULT_JUMP_TO_PAGE_SIZE as b8,
4460
- IconArchive as b9,
4461
- createIcon as bA,
4462
- IconApiAggregate as bB,
4463
- IconApples as bC,
4464
- IconArrowRight as bD,
4465
- IconArrowShareLeft as bE,
4466
- IconArrowsRepeatLeftRight as bF,
4467
- IconAt as bG,
4468
- IconAtSolid as bH,
4469
- IconBrowserAISparkle as bI,
4470
- IconBubble2ChatMessage as bJ,
4471
- IconBubble2Solid as bK,
4472
- IconBubble3ChatMessage as bL,
4473
- IconBubble3Solid as bM,
4474
- IconBubbleAnnotation2ChatMessage as bN,
4475
- IconBubbleText6SolidChatMessage as bO,
4476
- IconBubbleText6Solid as bP,
4477
- IconBubbleWideSparkleChatMessage as bQ,
4478
- IconCalendar1 as bR,
4479
- IconCallCancel as bS,
4480
- IconCar1 as bT,
4481
- IconCat as bU,
4482
- IconCheckmark2Small as bV,
4483
- IconChevronGrabberVerticalSelector as bW,
4484
- IconChevronTop as bX,
4485
- IconCircleCheck as bY,
4486
- IconCircleQuestionmark as bZ,
4487
- IconCircleQuestionmarkFilled as b_,
4488
- IconArrowBoxLeft as ba,
4489
- IconDotGrid1x3Horizontal as bb,
4490
- IconCamera1 as bc,
4491
- IconExclamationCircle1 as bd,
4492
- ChatProvider as be,
4493
- TranslationProvider as bf,
4494
- useThreadsViewContext as bg,
4495
- IconBubbles as bh,
4496
- IconArrowRotateRightLeftRepeatRefresh as bi,
4497
- IconCircleInfoTooltip as bj,
4498
- IconEyeOpen as bk,
4499
- useActiveAudioPlayer as bl,
4500
- WithAudioPlayback as bm,
4501
- defaultRegisterAudioPlayerError as bn,
4502
- elementIsPlaying as bo,
4503
- AudioPlayer as bp,
4504
- useEditMessageHandler as bq,
4505
- useMentionsHandlers as br,
4506
- Channel as bs,
4507
- ChatViewContext as bt,
4508
- ChatView as bu,
4509
- useActiveThread as bv,
4510
- ChatViewSelectorButton as bw,
4511
- ChatViewChannelsSelectorButton as bx,
4512
- ChatViewThreadsSelectorButton as by,
4513
- defaultChatViewSelectorItemSet as bz,
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
- makeDateMessageId as c$,
4516
- IconCode as c0,
4517
- IconCodeBrackets as c1,
4518
- IconCodeEditorInsert as c2,
4519
- IconCompass as c3,
4520
- IconCreditCard2Billing as c4,
4521
- IconDotsGrid1x3Vertical as c5,
4522
- IconEditBigSolid as c6,
4523
- IconEmojiAddReaction as c7,
4524
- IconEmojiSad as c8,
4525
- IconEmojiSmile as c9,
4526
- IconPeopleEditUserRights as cA,
4527
- IconPersona as cB,
4528
- IconSearchText as cC,
4529
- IconSettingsGear2 as cD,
4530
- IconSettingsSliderVer as cE,
4531
- IconShapesPlusCloseSquareCircle as cF,
4532
- IconShapesTriangleSquareCircle as cG,
4533
- IconShareRedirectLink as cH,
4534
- IconShield as cI,
4535
- IconSquareCircleTopRightFeeds as cJ,
4536
- IconStop as cK,
4537
- IconTable as cL,
4538
- IconTeam as cM,
4539
- IconTennis as cN,
4540
- IconTextToImageURLEnrichment as cO,
4541
- IconTrending4 as cP,
4542
- IconUnlocked as cQ,
4543
- IconUsers as cR,
4544
- IconVoiceAndVideo as cS,
4545
- IconVoiceHigh as cT,
4546
- IconWebhook as cU,
4547
- LoadingChannel as cV,
4548
- LoadingErrorIndicator as cW,
4549
- OPTIONAL_MESSAGE_ACTIONS as cX,
4550
- getImages as cY,
4551
- getNonImageAttachments as cZ,
4552
- makeIntroMessage as c_,
4553
- IconExclamationTriangle1 as ca,
4554
- IconFilledCircleInfoTooltip as cb,
4555
- IconFilter1 as cc,
4556
- IconGauge as cd,
4557
- IconGoogle as ce,
4558
- IconHashtagChannel as cf,
4559
- IconHeart2 as cg,
4560
- IconHistory as ch,
4561
- IconInvite as ci,
4562
- IconLayersBehind as cj,
4563
- IconLayoutGrid1 as ck,
4564
- IconLightBulbSimple as cl,
4565
- IconLimits as cm,
4566
- IconLineChart3 as cn,
4567
- IconLock as co,
4568
- IconMicrophoneSolid as cp,
4569
- IconMinusLarge as cq,
4570
- IconMinusSmall as cr,
4571
- IconNewspaper2 as cs,
4572
- IconOrganization as ct,
4573
- IconPaperPlaneTopRight as cu,
4574
- IconParagraphsText as cv,
4575
- IconPencil as cw,
4576
- IconPeople2 as cx,
4577
- IconPeopleCircle as cy,
4578
- IconPeopleCopy as cz,
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
- hasMoreMessagesProbably as d0,
4581
- hasNotMoreMessages as d1,
4582
- isNotificationTargetPanel as d2,
4583
- getNotificationTargetPanel as d3,
4584
- getNotificationTargetTag as d4,
4585
- useLegacyThreadContext as d5,
4586
- ThreadContext as d6,
4587
- ThreadProvider as d7,
4588
- ChannelActionContext as d8,
4589
- ChannelActionProvider as d9,
4590
- ChannelStateContext as da,
4591
- ChannelStateProvider as db,
4592
- ChatContext as dc,
4593
- ComponentProvider as dd,
4594
- MessageComposerContext as de,
4595
- TranslationContext as df,
4596
- TypingContext as dg,
4597
- TypingProvider as dh,
4598
- isDayOrMoment as di,
4599
- isNumberOrString as dj,
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
- isUserMuted as n,
4610
- defaultPinPermissions as o,
4697
+ isNetworkSendFailure as n,
4698
+ isUserMuted as o,
4611
4699
  predefinedFormatters as p,
4612
- useThreadContext as q,
4613
- usePopoverPosition as r,
4614
- useComponentContext as s,
4615
- IconCrossMedium as t,
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
- IconPeople as w,
4619
- IconChevronRight as x,
4620
- IconChevronLeft as y,
4621
- IconArrowLeft as z
4706
+ IconCrossMedium as w,
4707
+ IconPeople as x,
4708
+ IconExclamation as y,
4709
+ IconChevronRight as z
4622
4710
  };
4623
- //# sourceMappingURL=WithAudioPlayback-BcKZ5Lbh.mjs.map
4711
+ //# sourceMappingURL=WithAudioPlayback.a3d5a2fc.mjs.map