stream-chat-react 14.0.0-beta.1 → 14.0.0-beta.2

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 (63) hide show
  1. package/dist/{WithAudioPlayback-BcKZ5Lbh.mjs → WithAudioPlayback-C1hfFIcu.mjs} +349 -256
  2. package/dist/WithAudioPlayback-C1hfFIcu.mjs.map +1 -0
  3. package/dist/{WithAudioPlayback-TERIQpZ6.js → WithAudioPlayback-myzUS2m6.js} +101 -8
  4. package/dist/WithAudioPlayback-myzUS2m6.js.map +1 -0
  5. package/dist/cjs/emojis.js +1 -1
  6. package/dist/cjs/index.js +703 -769
  7. package/dist/cjs/index.js.map +1 -1
  8. package/dist/css/index.css +51 -36
  9. package/dist/css/index.css.map +1 -1
  10. package/dist/es/emojis.mjs +1 -1
  11. package/dist/es/index.mjs +827 -893
  12. package/dist/es/index.mjs.map +1 -1
  13. package/dist/types/components/Badge/Badge.d.ts +1 -0
  14. package/dist/types/components/Badge/Badge.d.ts.map +1 -1
  15. package/dist/types/components/Channel/Channel.d.ts.map +1 -1
  16. package/dist/types/components/Channel/utils.d.ts +7 -1
  17. package/dist/types/components/Channel/utils.d.ts.map +1 -1
  18. package/dist/types/components/ChatView/ChatView.d.ts.map +1 -1
  19. package/dist/types/components/Gallery/Gallery.d.ts.map +1 -1
  20. package/dist/types/components/Icons/icons.d.ts +4 -0
  21. package/dist/types/components/Icons/icons.d.ts.map +1 -1
  22. package/dist/types/components/MediaRecorder/AudioRecorder/AudioRecorderRecordingControls.d.ts.map +1 -1
  23. package/dist/types/components/Message/MessageErrorText.d.ts +0 -5
  24. package/dist/types/components/Message/MessageErrorText.d.ts.map +1 -1
  25. package/dist/types/components/Message/MessageText.d.ts.map +1 -1
  26. package/dist/types/components/Message/MessageUI.d.ts.map +1 -1
  27. package/dist/types/components/Message/hooks/useDeleteHandler.d.ts.map +1 -1
  28. package/dist/types/components/Message/index.d.ts +0 -1
  29. package/dist/types/components/Message/index.d.ts.map +1 -1
  30. package/dist/types/components/Message/utils.d.ts +1 -0
  31. package/dist/types/components/Message/utils.d.ts.map +1 -1
  32. package/dist/types/components/MessageActions/MessageActions.d.ts.map +1 -1
  33. package/dist/types/components/MessageActions/MessageActions.defaults.d.ts.map +1 -1
  34. package/dist/types/components/MessageActions/hooks/useBaseMessageActionSetFilter.d.ts.map +1 -1
  35. package/dist/types/components/MessageComposer/AttachmentPreviewList/AttachmentPreviewList.d.ts.map +1 -1
  36. package/dist/types/components/MessageComposer/AttachmentPreviewList/ImageAttachmentPreview.d.ts +3 -1
  37. package/dist/types/components/MessageComposer/AttachmentPreviewList/ImageAttachmentPreview.d.ts.map +1 -1
  38. package/dist/types/components/MessageComposer/AttachmentPreviewList/MediaAttachmentPreview.d.ts +4 -2
  39. package/dist/types/components/MessageComposer/AttachmentPreviewList/MediaAttachmentPreview.d.ts.map +1 -1
  40. package/dist/types/components/MessageComposer/AttachmentPreviewList/utils/AttachmentPreviewRoot.d.ts +6 -1
  41. package/dist/types/components/MessageComposer/AttachmentPreviewList/utils/AttachmentPreviewRoot.d.ts.map +1 -1
  42. package/dist/types/components/MessageComposer/AttachmentSelector/AttachmentSelector.d.ts +9 -2
  43. package/dist/types/components/MessageComposer/AttachmentSelector/AttachmentSelector.d.ts.map +1 -1
  44. package/dist/types/components/MessageComposer/CommandChip.d.ts +5 -1
  45. package/dist/types/components/MessageComposer/CommandChip.d.ts.map +1 -1
  46. package/dist/types/components/MessageComposer/MessageComposerUI.d.ts.map +1 -1
  47. package/dist/types/components/Notifications/Notification.d.ts.map +1 -1
  48. package/dist/types/components/Notifications/hooks/useNotificationTarget.d.ts +1 -1
  49. package/dist/types/components/Notifications/hooks/useNotificationTarget.d.ts.map +1 -1
  50. package/dist/types/components/Notifications/notificationTarget.d.ts +1 -1
  51. package/dist/types/components/Notifications/notificationTarget.d.ts.map +1 -1
  52. package/dist/types/components/Poll/PollOptionSelector.d.ts.map +1 -1
  53. package/dist/types/components/TextareaComposer/TextareaComposer.d.ts +1 -2
  54. package/dist/types/components/TextareaComposer/TextareaComposer.d.ts.map +1 -1
  55. package/dist/types/context/ComponentContext.d.ts +5 -2
  56. package/dist/types/context/ComponentContext.d.ts.map +1 -1
  57. package/dist/types/i18n/Streami18n.d.ts +11 -6
  58. package/dist/types/i18n/Streami18n.d.ts.map +1 -1
  59. package/package.json +11 -41
  60. package/dist/WithAudioPlayback-BcKZ5Lbh.mjs.map +0 -1
  61. package/dist/WithAudioPlayback-TERIQpZ6.js.map +0 -1
  62. package/dist/types/components/Message/icons.d.ts +0 -7
  63. 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,23 @@ 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 = (componentName) => {
37
+ const contextValue = useContext(ChannelListContext);
38
+ if (!contextValue) {
39
+ console.warn(
40
+ `The useChannelListContext hook was called outside of the ChannelListContext provider. Make sure this hook is called within the ChannelList component. The errored call is located in the ${componentName} component.`
41
+ );
42
+ return {};
43
+ }
44
+ return contextValue;
45
+ };
29
46
  const ChannelStateContext = React.createContext(void 0);
30
47
  const ChannelStateProvider = ({
31
48
  children,
@@ -984,7 +1001,10 @@ const getNotificationTargetPanel = (notification) => {
984
1001
  return isNotificationTargetPanel(panel) ? panel : void 0;
985
1002
  };
986
1003
  const getNotificationTargetTag = (panel) => `target:${panel}`;
987
- const addNotificationTargetTag = (panel, tags) => Array.from(/* @__PURE__ */ new Set([getNotificationTargetTag(panel), ...tags ?? []]));
1004
+ const addNotificationTargetTag = (panel, tags) => {
1005
+ if (!panel) return tags ?? [];
1006
+ return Array.from(/* @__PURE__ */ new Set([getNotificationTargetTag(panel), ...tags ?? []]));
1007
+ };
988
1008
  const isNotificationForPanel = (notification, panel, options) => {
989
1009
  const fallbackPanel = options?.fallbackPanel ?? "channel";
990
1010
  const resolvedPanel = getNotificationTargetPanel(notification) ?? fallbackPanel;
@@ -1562,6 +1582,13 @@ const IconEmojiSmile = createIcon(
1562
1582
  /* @__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
1583
  ] })
1564
1584
  );
1585
+ const IconExclamation = createIcon(
1586
+ "IconExclamation",
1587
+ /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("g", { transform: "translate(6.2222 0) scale(1.7778)", children: [
1588
+ /* @__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" }),
1589
+ /* @__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" })
1590
+ ] }) })
1591
+ );
1565
1592
  const IconExclamationCircle1 = createIcon(
1566
1593
  "IconExclamationCircle1",
1567
1594
  /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -2817,6 +2844,7 @@ const messageTextHasEmojisOnly = (message) => {
2817
2844
  return !noSpace;
2818
2845
  };
2819
2846
  const isMessageErrorRetryable = (message) => message.status === "failed" && message.error?.status !== 403;
2847
+ const isNetworkSendFailure = (message) => message.status === "failed" && message.error?.status === 0;
2820
2848
  const isMessageBounced = (message) => message.type === "error" && (message.moderation_details?.action === "MESSAGE_RESPONSE_ACTION_BOUNCE" || message.moderation?.action === "bounce");
2821
2849
  const isMessageBlocked = (message) => message.type === "error" && (message.moderation_details?.action === "MESSAGE_RESPONSE_ACTION_REMOVE" || message.moderation?.action === "remove");
2822
2850
  const isMessageEdited = (message) => !!message.message_text_updated_at;
@@ -3149,6 +3177,64 @@ const findInMsgSetByDate = (targetDate, msgSet, exact = false) => {
3149
3177
  }
3150
3178
  return { index: -1 };
3151
3179
  };
3180
+ const adaptMessageSendErrorToErrorFromResponse = (error) => {
3181
+ if (error instanceof ErrorFromResponse) {
3182
+ return error;
3183
+ }
3184
+ const fallbackMessage = error instanceof Error ? error.message : "Message send failed";
3185
+ let message = fallbackMessage;
3186
+ let status = 0;
3187
+ let code = null;
3188
+ if (typeof error === "object" && error !== null) {
3189
+ const maybeAxiosError = error;
3190
+ if (maybeAxiosError.name === "AxiosError" && maybeAxiosError.code === "ERR_NETWORK") {
3191
+ message = typeof maybeAxiosError.message === "string" ? maybeAxiosError.message : "Network Error";
3192
+ status = maybeAxiosError.response?.status ?? 0;
3193
+ return new ErrorFromResponse(message, {
3194
+ code: null,
3195
+ response: maybeAxiosError.response ?? {
3196
+ // Compatibility shim: this is an intentionally incomplete AxiosResponse-like object.
3197
+ data: {
3198
+ duration: "",
3199
+ message,
3200
+ more_info: "",
3201
+ StatusCode: status
3202
+ },
3203
+ status
3204
+ },
3205
+ status
3206
+ });
3207
+ }
3208
+ try {
3209
+ const stringError = JSON.stringify(error);
3210
+ const parsedError = stringError ? JSON.parse(stringError) : {};
3211
+ if (typeof parsedError.message === "string") {
3212
+ message = parsedError.message;
3213
+ }
3214
+ if (typeof parsedError.status === "number") {
3215
+ status = parsedError.status;
3216
+ }
3217
+ if (typeof parsedError.code === "number") {
3218
+ code = parsedError.code;
3219
+ }
3220
+ } catch {
3221
+ }
3222
+ }
3223
+ return new ErrorFromResponse(message, {
3224
+ code,
3225
+ response: {
3226
+ // Compatibility shim: this is an intentionally incomplete AxiosResponse-like object.
3227
+ data: {
3228
+ duration: "",
3229
+ message,
3230
+ more_info: "",
3231
+ StatusCode: status
3232
+ },
3233
+ status
3234
+ },
3235
+ status
3236
+ });
3237
+ };
3152
3238
  const WATCH_QUERY_IN_PROGRESS_FOR_CHANNEL = {};
3153
3239
  const getChannel = async ({
3154
3240
  channel,
@@ -3878,8 +3964,7 @@ const ChannelInner = (props) => {
3878
3964
  });
3879
3965
  }
3880
3966
  } catch (error) {
3881
- const stringError = JSON.stringify(error);
3882
- const parsedError = stringError ? JSON.parse(stringError) : {};
3967
+ const parsedError = adaptMessageSendErrorToErrorFromResponse(error);
3883
3968
  if (parsedError.code === 4 && error instanceof Error && error.message.includes("already exists")) {
3884
3969
  updateMessage({
3885
3970
  ...localMessage,
@@ -4075,9 +4160,10 @@ const ChatViewContext = createContext(void 0);
4075
4160
  const useChatViewContext = () => {
4076
4161
  const value = useContext(ChatViewContext);
4077
4162
  if (!value) {
4078
- throw new Error(
4163
+ console.warn(
4079
4164
  "The useChatViewContext hook was called outside of the ChatView provider."
4080
4165
  );
4166
+ return {};
4081
4167
  }
4082
4168
  return value;
4083
4169
  };
@@ -4278,14 +4364,16 @@ ChatView.Threads = ThreadsView;
4278
4364
  ChatView.ThreadAdapter = ThreadAdapter;
4279
4365
  ChatView.Selector = ChatViewSelector;
4280
4366
  const useNotificationTarget = () => {
4281
- const { activeChatView } = useChatViewContext();
4367
+ const chatViewContext = useContext(ChatViewContext);
4368
+ const { channels } = useChannelListContext();
4282
4369
  const { channel } = useChannelStateContext();
4283
4370
  const threadInstance = useThreadContext();
4284
4371
  const { legacyThread } = useLegacyThreadContext();
4285
4372
  if (threadInstance || legacyThread) return "thread";
4286
4373
  if (channel) return "channel";
4287
- if (activeChatView === "threads") return "thread-list";
4288
- return "channel-list";
4374
+ if (chatViewContext?.activeChatView === "threads") return "thread-list";
4375
+ if (channels) return "channel-list";
4376
+ return void 0;
4289
4377
  };
4290
4378
  const AudioPlayerContext = React.createContext({
4291
4379
  audioPlayers: null
@@ -4353,250 +4441,255 @@ const useActiveAudioPlayer = () => {
4353
4441
  return activeAudioPlayer;
4354
4442
  };
4355
4443
  export {
4356
- IconMapPin as $,
4357
- IconExclamationCircle as A,
4444
+ IconImages1Alt as $,
4445
+ IconChevronLeft as A,
4358
4446
  BaseIcon as B,
4359
4447
  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,
4448
+ IconArrowLeft as D,
4449
+ IconExclamationCircle as E,
4450
+ IconCircleBanSign as F,
4451
+ isMessageErrorRetryable as G,
4452
+ ACTIONS_NOT_WORKING_IN_THREAD as H,
4365
4453
  IconPause as I,
4366
- addNotificationTargetTag as J,
4367
- IconPin as K,
4454
+ useNotificationTarget as J,
4455
+ IconArrowRightUp as K,
4368
4456
  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 _,
4457
+ addNotificationTargetTag as M,
4458
+ IconPin as N,
4459
+ mapToUserNameOrId as O,
4460
+ IconClock as P,
4461
+ IconCheckmark1Small as Q,
4462
+ IconDoubleCheckmark1Small as R,
4463
+ getReadByTooltipText as S,
4464
+ messageHasAttachments as T,
4465
+ messageTextHasEmojisOnly as U,
4466
+ isDate as V,
4467
+ getDateString as W,
4468
+ IconTranslate as X,
4469
+ useMessageComposerContext as Y,
4470
+ useIsCooldownActive as Z,
4471
+ IconCrossSmall as _,
4384
4472
  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,
4473
+ processMessages as a$,
4474
+ IconChart5 as a0,
4475
+ IconMapPin as a1,
4476
+ IconFileBend as a2,
4477
+ IconChainLink as a3,
4478
+ IconVideo as a4,
4479
+ IconVideoSolid as a5,
4480
+ IconMicrophone as a6,
4481
+ IconBookmark as a7,
4482
+ IconBellNotification as a8,
4483
+ IconChevronDown as a9,
4484
+ isLanguageSupported as aA,
4485
+ IconLayoutAlignLeft as aB,
4486
+ useChatViewContext as aC,
4487
+ MESSAGE_ACTIONS as aD,
4488
+ LegacyThreadContext as aE,
4489
+ IconArrowShareLeft as aF,
4490
+ IconEmojiSmile as aG,
4491
+ IconPeopleAdded as aH,
4492
+ IconBookmarkRemove as aI,
4493
+ IconBellOff as aJ,
4494
+ IconBubbleWideNotificationChatMessage as aK,
4495
+ IconEditBig as aL,
4496
+ IconSquareBehindSquare2_Copy as aM,
4497
+ IconUnpin as aN,
4498
+ IconCloseQuote2 as aO,
4499
+ IconBubbleText6ChatMessage as aP,
4500
+ IconDotGrid1x3Horizontal as aQ,
4501
+ areMessageUIPropsEqual as aR,
4502
+ isDateSeparatorMessage as aS,
4503
+ isMessageBlocked as aT,
4504
+ messageHasSingleAttachment as aU,
4505
+ messageHasGiphyAttachment as aV,
4506
+ messageHasReactions as aW,
4507
+ isMessageEdited as aX,
4508
+ countEmojis as aY,
4509
+ areMessagePropsEqual as aZ,
4510
+ getMessageActions as a_,
4511
+ IconPlusSmall as aa,
4512
+ IconCheckmark2 as ab,
4513
+ DEFAULT_LOAD_PAGE_SCROLL_THRESHOLD as ac,
4514
+ IconTrophy as ad,
4515
+ IconDotGrid2x3 as ae,
4516
+ IconCircleMinus as af,
4517
+ IconPaperPlane as ag,
4518
+ IconVolumeFull as ah,
4519
+ IconPeopleAdd as ai,
4520
+ IconMute as aj,
4521
+ IconFlag2 as ak,
4522
+ IconPeopleRemove as al,
4523
+ IconPaperclip as am,
4524
+ IconRunShortcut as an,
4525
+ CHANNEL_CONTAINER_ID as ao,
4526
+ IconPlusLarge as ap,
4527
+ IconExclamationTriangle as aq,
4528
+ useAudioPlayer as ar,
4529
+ IconArrowRotateClockwise as as,
4530
+ IconArrowDownCircle as at,
4531
+ IconThunder as au,
4532
+ IconTrashBin as av,
4533
+ IconFileArrowLeftIn as aw,
4534
+ MessageComposerContextProvider as ax,
4535
+ useTypingContext as ay,
4536
+ defaultDateTimeParser as az,
4449
4537
  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,
4538
+ IconChevronTop as b$,
4539
+ insertIntro as b0,
4540
+ getGroupStyles as b1,
4541
+ getLastReceived as b2,
4542
+ IconArrowUp as b3,
4543
+ isIntroMessage as b4,
4544
+ isLocalMessage as b5,
4545
+ getIsFirstUnreadMessage as b6,
4546
+ IconArrowDown as b7,
4547
+ DEFAULT_NEXT_CHANNEL_PAGE_SIZE as b8,
4548
+ EmptyStateIndicator as b9,
4549
+ useActiveThread as bA,
4550
+ ChatViewSelectorButton as bB,
4551
+ ChatViewChannelsSelectorButton as bC,
4552
+ ChatViewThreadsSelectorButton as bD,
4553
+ defaultChatViewSelectorItemSet as bE,
4554
+ createIcon as bF,
4555
+ IconApiAggregate as bG,
4556
+ IconApples as bH,
4557
+ IconArrowRight as bI,
4558
+ IconArrowsRepeatLeftRight as bJ,
4559
+ IconAt as bK,
4560
+ IconAtSolid as bL,
4561
+ IconBrowserAISparkle as bM,
4562
+ IconBubble2ChatMessage as bN,
4563
+ IconBubble2Solid as bO,
4564
+ IconBubble3ChatMessage as bP,
4565
+ IconBubble3Solid as bQ,
4566
+ IconBubbleAnnotation2ChatMessage as bR,
4567
+ IconBubbleText6SolidChatMessage as bS,
4568
+ IconBubbleText6Solid as bT,
4569
+ IconBubbleWideSparkleChatMessage as bU,
4570
+ IconCalendar1 as bV,
4571
+ IconCallCancel as bW,
4572
+ IconCar1 as bX,
4573
+ IconCat as bY,
4574
+ IconCheckmark2Small as bZ,
4575
+ IconChevronGrabberVerticalSelector as b_,
4576
+ getChannel as ba,
4577
+ IconMagnifyingGlassSearch as bb,
4578
+ IconCircleX as bc,
4579
+ useChannelListContext as bd,
4580
+ DEFAULT_JUMP_TO_PAGE_SIZE as be,
4581
+ ChannelListContextProvider as bf,
4582
+ IconArchive as bg,
4583
+ IconArrowBoxLeft as bh,
4584
+ IconCamera1 as bi,
4585
+ IconExclamationCircle1 as bj,
4586
+ ChatProvider as bk,
4587
+ TranslationProvider as bl,
4588
+ useThreadsViewContext as bm,
4589
+ IconBubbles as bn,
4590
+ IconArrowRotateRightLeftRepeatRefresh as bo,
4591
+ IconEyeOpen as bp,
4592
+ useActiveAudioPlayer as bq,
4593
+ WithAudioPlayback as br,
4594
+ defaultRegisterAudioPlayerError as bs,
4595
+ elementIsPlaying as bt,
4596
+ AudioPlayer as bu,
4597
+ useEditMessageHandler as bv,
4598
+ useMentionsHandlers as bw,
4599
+ Channel as bx,
4600
+ ChatViewContext as by,
4601
+ ChatView as bz,
4514
4602
  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,
4603
+ OPTIONAL_MESSAGE_ACTIONS as c$,
4604
+ IconCircleCheck as c0,
4605
+ IconCircleInfoTooltip as c1,
4606
+ IconCircleQuestionmark as c2,
4607
+ IconCircleQuestionmarkFilled as c3,
4608
+ IconClockSolid as c4,
4609
+ IconCode as c5,
4610
+ IconCodeBrackets as c6,
4611
+ IconCodeEditorInsert as c7,
4612
+ IconCompass as c8,
4613
+ IconCreditCard2Billing as c9,
4614
+ IconPencil as cA,
4615
+ IconPeople2 as cB,
4616
+ IconPeopleCircle as cC,
4617
+ IconPeopleCopy as cD,
4618
+ IconPeopleEditUserRights as cE,
4619
+ IconPersona as cF,
4620
+ IconSearchText as cG,
4621
+ IconSettingsGear2 as cH,
4622
+ IconSettingsSliderVer as cI,
4623
+ IconShapesPlusCloseSquareCircle as cJ,
4624
+ IconShapesTriangleSquareCircle as cK,
4625
+ IconShareRedirectLink as cL,
4626
+ IconShield as cM,
4627
+ IconSquareCircleTopRightFeeds as cN,
4628
+ IconStop as cO,
4629
+ IconTable as cP,
4630
+ IconTeam as cQ,
4631
+ IconTennis as cR,
4632
+ IconTextToImageURLEnrichment as cS,
4633
+ IconTrending4 as cT,
4634
+ IconUnlocked as cU,
4635
+ IconUsers as cV,
4636
+ IconVoiceAndVideo as cW,
4637
+ IconVoiceHigh as cX,
4638
+ IconWebhook as cY,
4639
+ LoadingChannel as cZ,
4640
+ LoadingErrorIndicator as c_,
4641
+ IconDotsGrid1x3Vertical as ca,
4642
+ IconEditBigSolid as cb,
4643
+ IconEmojiAddReaction as cc,
4644
+ IconEmojiSad as cd,
4645
+ IconExclamationTriangle1 as ce,
4646
+ IconFilledCircleInfoTooltip as cf,
4647
+ IconFilter1 as cg,
4648
+ IconGauge as ch,
4649
+ IconGoogle as ci,
4650
+ IconHashtagChannel as cj,
4651
+ IconHeart2 as ck,
4652
+ IconHistory as cl,
4653
+ IconInvite as cm,
4654
+ IconLayersBehind as cn,
4655
+ IconLayoutGrid1 as co,
4656
+ IconLightBulbSimple as cp,
4657
+ IconLimits as cq,
4658
+ IconLineChart3 as cr,
4659
+ IconLock as cs,
4660
+ IconMicrophoneSolid as ct,
4661
+ IconMinusLarge as cu,
4662
+ IconMinusSmall as cv,
4663
+ IconNewspaper2 as cw,
4664
+ IconOrganization as cx,
4665
+ IconPaperPlaneTopRight as cy,
4666
+ IconParagraphsText as cz,
4579
4667
  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,
4668
+ getImages as d0,
4669
+ getNonImageAttachments as d1,
4670
+ makeIntroMessage as d2,
4671
+ makeDateMessageId as d3,
4672
+ hasMoreMessagesProbably as d4,
4673
+ hasNotMoreMessages as d5,
4674
+ isNotificationTargetPanel as d6,
4675
+ getNotificationTargetPanel as d7,
4676
+ getNotificationTargetTag as d8,
4677
+ useLegacyThreadContext as d9,
4678
+ ThreadContext as da,
4679
+ ThreadProvider as db,
4680
+ ChannelActionContext as dc,
4681
+ ChannelActionProvider as dd,
4682
+ ChannelListContext as de,
4683
+ ChannelStateContext as df,
4684
+ ChannelStateProvider as dg,
4685
+ ChatContext as dh,
4686
+ ComponentProvider as di,
4687
+ MessageComposerContext as dj,
4688
+ TranslationContext as dk,
4689
+ TypingContext as dl,
4690
+ TypingProvider as dm,
4691
+ isDayOrMoment as dn,
4692
+ isNumberOrString as dp,
4600
4693
  useChatContext as e,
4601
4694
  isNotificationForPanel as f,
4602
4695
  Button as g,
@@ -4606,18 +4699,18 @@ export {
4606
4699
  defaultTranslatorFunction as k,
4607
4700
  calendar as l,
4608
4701
  IconLoadingCircle as m,
4609
- isUserMuted as n,
4610
- defaultPinPermissions as o,
4702
+ isNetworkSendFailure as n,
4703
+ isUserMuted as o,
4611
4704
  predefinedFormatters as p,
4612
- useThreadContext as q,
4613
- usePopoverPosition as r,
4614
- useComponentContext as s,
4615
- IconCrossMedium as t,
4705
+ defaultPinPermissions as q,
4706
+ useThreadContext as r,
4707
+ usePopoverPosition as s,
4708
+ useComponentContext as t,
4616
4709
  useStateStore as u,
4617
4710
  validateAndGetMessage as v,
4618
- IconPeople as w,
4619
- IconChevronRight as x,
4620
- IconChevronLeft as y,
4621
- IconArrowLeft as z
4711
+ IconCrossMedium as w,
4712
+ IconPeople as x,
4713
+ IconExclamation as y,
4714
+ IconChevronRight as z
4622
4715
  };
4623
- //# sourceMappingURL=WithAudioPlayback-BcKZ5Lbh.mjs.map
4716
+ //# sourceMappingURL=WithAudioPlayback-C1hfFIcu.mjs.map