stream-chat-react 14.7.0 → 14.8.0

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 (150) hide show
  1. package/dist/cjs/{ReactPlayerWrapper.c340ab05.js → ReactPlayerWrapper.60a93742.js} +2 -2
  2. package/dist/cjs/{ReactPlayerWrapper.c340ab05.js.map → ReactPlayerWrapper.60a93742.js.map} +1 -1
  3. package/dist/cjs/channel-detail.js +2 -2
  4. package/dist/cjs/emojis.js +2 -2
  5. package/dist/cjs/index.js +2888 -730
  6. package/dist/cjs/index.js.map +1 -1
  7. package/dist/cjs/{useChannelHeaderOnlineStatus.d39ede24.js → useChannelHeaderOnlineStatus.72753090.js} +373 -63
  8. package/dist/cjs/useChannelHeaderOnlineStatus.72753090.js.map +1 -0
  9. package/dist/cjs/{useMessageComposerController.f1a3d182.js → useMessageComposerController.f8f20e3d.js} +2 -2
  10. package/dist/cjs/{useMessageComposerController.f1a3d182.js.map → useMessageComposerController.f8f20e3d.js.map} +1 -1
  11. package/dist/cjs/{useNotificationApi.87ba0b39.js → useNotificationApi.bf76a16b.js} +294 -42
  12. package/dist/cjs/useNotificationApi.bf76a16b.js.map +1 -0
  13. package/dist/css/index.css +34 -7
  14. package/dist/css/index.css.map +1 -1
  15. package/dist/es/channel-detail.mjs +2 -2
  16. package/dist/es/emojis.mjs +2 -2
  17. package/dist/es/index.mjs +2868 -728
  18. package/dist/es/index.mjs.map +1 -1
  19. package/dist/es/{useChannelHeaderOnlineStatus.b3a51ca7.mjs → useChannelHeaderOnlineStatus.c86db868.mjs} +337 -64
  20. package/dist/es/useChannelHeaderOnlineStatus.c86db868.mjs.map +1 -0
  21. package/dist/es/{useMessageComposerController.2309f433.mjs → useMessageComposerController.d50f6168.mjs} +2 -2
  22. package/dist/es/{useMessageComposerController.2309f433.mjs.map → useMessageComposerController.d50f6168.mjs.map} +1 -1
  23. package/dist/es/{useNotificationApi.eff88f29.mjs → useNotificationApi.ed6bff88.mjs} +271 -43
  24. package/dist/es/useNotificationApi.ed6bff88.mjs.map +1 -0
  25. package/dist/types/a11y/accessibleLabel.d.ts +38 -0
  26. package/dist/types/a11y/accessibleLabel.d.ts.map +1 -0
  27. package/dist/types/a11y/hooks/useListboxKeyboardNavigation.d.ts +73 -0
  28. package/dist/types/a11y/hooks/useListboxKeyboardNavigation.d.ts.map +1 -0
  29. package/dist/types/a11y/hooks/useVirtualizedListboxKeyboardNavigation.d.ts +41 -0
  30. package/dist/types/a11y/hooks/useVirtualizedListboxKeyboardNavigation.d.ts.map +1 -0
  31. package/dist/types/components/Accessibility/AriaLiveAnnouncerProvider.d.ts +13 -0
  32. package/dist/types/components/Accessibility/AriaLiveAnnouncerProvider.d.ts.map +1 -0
  33. package/dist/types/components/Accessibility/AriaLiveOutlet.d.ts +24 -0
  34. package/dist/types/components/Accessibility/AriaLiveOutlet.d.ts.map +1 -0
  35. package/dist/types/components/Accessibility/AriaLiveOutletContext.d.ts +25 -0
  36. package/dist/types/components/Accessibility/AriaLiveOutletContext.d.ts.map +1 -0
  37. package/dist/types/components/Accessibility/NotificationAnnouncer.d.ts +21 -1
  38. package/dist/types/components/Accessibility/NotificationAnnouncer.d.ts.map +1 -1
  39. package/dist/types/components/Accessibility/hooks/useAudioPlaybackChangeAnnouncements.d.ts +3 -0
  40. package/dist/types/components/Accessibility/hooks/useAudioPlaybackChangeAnnouncements.d.ts.map +1 -0
  41. package/dist/types/components/Accessibility/hooks/useFocusReturn.d.ts +44 -0
  42. package/dist/types/components/Accessibility/hooks/useFocusReturn.d.ts.map +1 -0
  43. package/dist/types/components/Accessibility/hooks/useInertWhenHidden.d.ts +88 -0
  44. package/dist/types/components/Accessibility/hooks/useInertWhenHidden.d.ts.map +1 -0
  45. package/dist/types/components/Accessibility/hooks/useInteractionAnnouncements.d.ts +114 -0
  46. package/dist/types/components/Accessibility/hooks/useInteractionAnnouncements.d.ts.map +1 -0
  47. package/dist/types/components/Accessibility/index.d.ts +7 -1
  48. package/dist/types/components/Accessibility/index.d.ts.map +1 -1
  49. package/dist/types/components/Accessibility/scheduling/index.d.ts +4 -0
  50. package/dist/types/components/Accessibility/scheduling/index.d.ts.map +1 -0
  51. package/dist/types/components/Accessibility/scheduling/useAnnouncementQueue.d.ts +25 -0
  52. package/dist/types/components/Accessibility/scheduling/useAnnouncementQueue.d.ts.map +1 -0
  53. package/dist/types/components/Accessibility/scheduling/useDebouncedAnnounce.d.ts +54 -0
  54. package/dist/types/components/Accessibility/scheduling/useDebouncedAnnounce.d.ts.map +1 -0
  55. package/dist/types/components/Accessibility/scheduling/useSettledAnnouncement.d.ts +74 -0
  56. package/dist/types/components/Accessibility/scheduling/useSettledAnnouncement.d.ts.map +1 -0
  57. package/dist/types/components/Accessibility/useAriaLiveAnnouncer.d.ts +24 -1
  58. package/dist/types/components/Accessibility/useAriaLiveAnnouncer.d.ts.map +1 -1
  59. package/dist/types/components/Attachment/AttachmentActions.d.ts.map +1 -1
  60. package/dist/types/components/Attachment/Giphy.d.ts.map +1 -1
  61. package/dist/types/components/Attachment/giphyAccessibility.d.ts +11 -0
  62. package/dist/types/components/Attachment/giphyAccessibility.d.ts.map +1 -0
  63. package/dist/types/components/AudioPlayback/WithAudioPlayback.d.ts.map +1 -1
  64. package/dist/types/components/ChannelList/ChannelListUI.d.ts.map +1 -1
  65. package/dist/types/components/ChannelList/hooks/index.d.ts +1 -0
  66. package/dist/types/components/ChannelList/hooks/index.d.ts.map +1 -1
  67. package/dist/types/components/ChannelList/hooks/useChannelListKeyboardNavigation.d.ts +17 -0
  68. package/dist/types/components/ChannelList/hooks/useChannelListKeyboardNavigation.d.ts.map +1 -0
  69. package/dist/types/components/ChannelListItem/ChannelListItem.d.ts +7 -0
  70. package/dist/types/components/ChannelListItem/ChannelListItem.d.ts.map +1 -1
  71. package/dist/types/components/ChannelListItem/ChannelListItemActionButtons.defaults.d.ts.map +1 -1
  72. package/dist/types/components/ChannelListItem/ChannelListItemUI.d.ts.map +1 -1
  73. package/dist/types/components/ChannelListItem/index.d.ts +1 -0
  74. package/dist/types/components/ChannelListItem/index.d.ts.map +1 -1
  75. package/dist/types/components/ChannelListItem/utils.a11y.d.ts +112 -0
  76. package/dist/types/components/ChannelListItem/utils.a11y.d.ts.map +1 -0
  77. package/dist/types/components/ChannelListItem/utils.d.ts +10 -2
  78. package/dist/types/components/ChannelListItem/utils.d.ts.map +1 -1
  79. package/dist/types/components/Chat/Chat.d.ts.map +1 -1
  80. package/dist/types/components/ChatView/ChatView.a11y.utility.d.ts +9 -17
  81. package/dist/types/components/ChatView/ChatView.a11y.utility.d.ts.map +1 -1
  82. package/dist/types/components/ChatView/ChatView.d.ts +7 -7
  83. package/dist/types/components/ChatView/ChatView.d.ts.map +1 -1
  84. package/dist/types/components/Dialog/components/ContextMenu.d.ts +17 -2
  85. package/dist/types/components/Dialog/components/ContextMenu.d.ts.map +1 -1
  86. package/dist/types/components/Dialog/components/Prompt.d.ts.map +1 -1
  87. package/dist/types/components/Dialog/service/DialogAnchor.d.ts.map +1 -1
  88. package/dist/types/components/Form/SwitchField.d.ts.map +1 -1
  89. package/dist/types/components/Form/TextInput.d.ts.map +1 -1
  90. package/dist/types/components/InfiniteScrollPaginator/InfiniteScrollPaginator.d.ts +7 -0
  91. package/dist/types/components/InfiniteScrollPaginator/InfiniteScrollPaginator.d.ts.map +1 -1
  92. package/dist/types/components/MediaRecorder/hooks/useMediaRecorder.d.ts +2 -2
  93. package/dist/types/components/MediaRecorder/hooks/useMediaRecorder.d.ts.map +1 -1
  94. package/dist/types/components/MessageActions/DownloadSubmenu.d.ts.map +1 -1
  95. package/dist/types/components/MessageActions/RemindMeSubmenu.d.ts.map +1 -1
  96. package/dist/types/components/MessageComposer/AttachmentSelector/AttachmentSelector.d.ts +8 -2
  97. package/dist/types/components/MessageComposer/AttachmentSelector/AttachmentSelector.d.ts.map +1 -1
  98. package/dist/types/components/MessageComposer/AttachmentSelector/CommandsMenu.d.ts.map +1 -1
  99. package/dist/types/components/MessageComposer/CommandChip.d.ts.map +1 -1
  100. package/dist/types/components/MessageComposer/MessageComposerActions.d.ts.map +1 -1
  101. package/dist/types/components/MessageList/MessageList.d.ts.map +1 -1
  102. package/dist/types/components/MessageList/VirtualizedMessageList.d.ts.map +1 -1
  103. package/dist/types/components/Modal/GlobalModal.d.ts +6 -1
  104. package/dist/types/components/Modal/GlobalModal.d.ts.map +1 -1
  105. package/dist/types/components/Notifications/Notification.d.ts.map +1 -1
  106. package/dist/types/components/Notifications/hooks/useNotificationApi.d.ts +7 -0
  107. package/dist/types/components/Notifications/hooks/useNotificationApi.d.ts.map +1 -1
  108. package/dist/types/components/Poll/PollCreationDialog/NameField.d.ts.map +1 -1
  109. package/dist/types/components/Poll/PollCreationDialog/OptionFieldSet.d.ts.map +1 -1
  110. package/dist/types/components/Poll/PollCreationDialog/PollCreationDialog.d.ts.map +1 -1
  111. package/dist/types/components/Poll/PollCreationDialog/PollCreationDialogControls.d.ts.map +1 -1
  112. package/dist/types/components/Poll/PollCreationDialog/PollOptionReorderHandle.d.ts +17 -0
  113. package/dist/types/components/Poll/PollCreationDialog/PollOptionReorderHandle.d.ts.map +1 -0
  114. package/dist/types/components/Search/Search.d.ts +9 -1
  115. package/dist/types/components/Search/Search.d.ts.map +1 -1
  116. package/dist/types/components/Search/SearchBar/SearchBar.d.ts.map +1 -1
  117. package/dist/types/components/Search/SearchContext.d.ts +1 -1
  118. package/dist/types/components/Search/SearchContext.d.ts.map +1 -1
  119. package/dist/types/components/Search/SearchResults/SearchResults.d.ts.map +1 -1
  120. package/dist/types/components/Search/SearchResults/SearchSourceResultListFooter.d.ts.map +1 -1
  121. package/dist/types/components/Search/hooks/index.d.ts +2 -0
  122. package/dist/types/components/Search/hooks/index.d.ts.map +1 -1
  123. package/dist/types/components/Search/hooks/useAnnounceSearchResultCount.d.ts +27 -0
  124. package/dist/types/components/Search/hooks/useAnnounceSearchResultCount.d.ts.map +1 -0
  125. package/dist/types/components/Search/hooks/useSearchResultsKeyboardNavigation.d.ts +13 -0
  126. package/dist/types/components/Search/hooks/useSearchResultsKeyboardNavigation.d.ts.map +1 -0
  127. package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/UserItem.d.ts.map +1 -1
  128. package/dist/types/components/TextareaComposer/SuggestionList/SuggestionList.d.ts +21 -1
  129. package/dist/types/components/TextareaComposer/SuggestionList/SuggestionList.d.ts.map +1 -1
  130. package/dist/types/components/TextareaComposer/TextareaComposer.d.ts +9 -1
  131. package/dist/types/components/TextareaComposer/TextareaComposer.d.ts.map +1 -1
  132. package/dist/types/components/Threads/ThreadList/ThreadList.d.ts.map +1 -1
  133. package/dist/types/components/Threads/ThreadList/ThreadListItemUI.d.ts +7 -1
  134. package/dist/types/components/Threads/ThreadList/ThreadListItemUI.d.ts.map +1 -1
  135. package/dist/types/components/Threads/ThreadList/index.d.ts +1 -0
  136. package/dist/types/components/Threads/ThreadList/index.d.ts.map +1 -1
  137. package/dist/types/components/Threads/ThreadList/utils.a11y.d.ts +111 -0
  138. package/dist/types/components/Threads/ThreadList/utils.a11y.d.ts.map +1 -0
  139. package/dist/types/components/Threads/UnreadCountBadge.d.ts.map +1 -1
  140. package/dist/types/components/UtilityComponents/hooks/useMutationObserver.d.ts +23 -0
  141. package/dist/types/components/UtilityComponents/hooks/useMutationObserver.d.ts.map +1 -0
  142. package/dist/types/i18n/Streami18n.d.ts +79 -13
  143. package/dist/types/i18n/Streami18n.d.ts.map +1 -1
  144. package/package.json +4 -1
  145. package/dist/cjs/useChannelHeaderOnlineStatus.d39ede24.js.map +0 -1
  146. package/dist/cjs/useNotificationApi.87ba0b39.js.map +0 -1
  147. package/dist/es/useChannelHeaderOnlineStatus.b3a51ca7.mjs.map +0 -1
  148. package/dist/es/useNotificationApi.eff88f29.mjs.map +0 -1
  149. package/dist/types/components/Accessibility/AriaLiveRegion.d.ts +0 -3
  150. package/dist/types/components/Accessibility/AriaLiveRegion.d.ts.map +0 -1
@@ -0,0 +1,111 @@
1
+ import type { Channel, LocalMessage, StreamChat } from 'stream-chat';
2
+ import type { ChatContextValue } from '../../../context';
3
+ import type { TranslationContextValue } from '../../../context/TranslationContext';
4
+ import { type AccessibleLabelConfig, type AccessibleLabelPart } from '../../../a11y/accessibleLabel';
5
+ /**
6
+ * Everything a label part needs. Gathered by `ThreadListItemUI` from the thread state + contexts and
7
+ * handed to each {@link ThreadListItemLabelPart}.
8
+ */
9
+ export type ThreadListItemLabelData = {
10
+ /** Whether the row is the active (currently open) thread. */
11
+ active?: boolean;
12
+ /** The channel the thread belongs to. */
13
+ channel?: Channel;
14
+ /** Client, used to detect whether a message is the current user's own. */
15
+ client: StreamChat;
16
+ /** The channel's display name (the thread row's title). */
17
+ displayTitle?: string;
18
+ isMessageAIGenerated?: ChatContextValue['isMessageAIGenerated'];
19
+ /** The most recent reply in the thread. */
20
+ latestReply?: LocalMessage;
21
+ /** The message the thread is attached to (its subject); available for custom parts. */
22
+ parentMessage?: LocalMessage;
23
+ /**
24
+ * The parent message's display preview text — the SAME string the visible subtitle shows (from
25
+ * `useLatestMessagePreview`, covering text/attachment/poll/etc.). Used by the default
26
+ * `parentMessage` part so the announcement matches what is shown.
27
+ */
28
+ parentMessagePreview?: string;
29
+ /** The parent message's sender prefix, when the visible preview shows one (e.g. "You", a name). */
30
+ parentMessageSender?: string;
31
+ /** Number of participants in the thread. */
32
+ participantCount?: number;
33
+ /** Number of replies in the thread. */
34
+ replyCount?: number;
35
+ t: TranslationContextValue['t'];
36
+ tDateTimeParser: TranslationContextValue['tDateTimeParser'];
37
+ /** The current user's unread reply count for the thread. */
38
+ unreadCount?: number;
39
+ userLanguage?: TranslationContextValue['userLanguage'];
40
+ };
41
+ /** Produces one segment of the accessible name; return `undefined`/empty to omit it. */
42
+ export type ThreadListItemLabelPart = AccessibleLabelPart<ThreadListItemLabelData>;
43
+ /**
44
+ * The default, named label parts. Each is independently overridable via
45
+ * {@link ThreadListItemLabelConfig.parts}. The active (currently open) state is announced here (not
46
+ * left to the row's `aria-selected` alone, which is not reliably spoken across screen readers for an
47
+ * option with a custom name); `aria-selected` is kept on the active row for listbox semantics.
48
+ */
49
+ export declare const defaultThreadListItemLabelParts: {
50
+ active: AccessibleLabelPart<{
51
+ t: TranslationContextValue["t"];
52
+ } & {
53
+ active?: boolean;
54
+ }>;
55
+ name: ({ displayTitle, t }: ThreadListItemLabelData) => string | undefined;
56
+ parentMessage: ({ parentMessagePreview, parentMessageSender, t }: ThreadListItemLabelData) => string | undefined;
57
+ replyCount: ({ replyCount, t }: ThreadListItemLabelData) => string | undefined;
58
+ time: ({ latestReply, t, tDateTimeParser }: ThreadListItemLabelData) => string | undefined;
59
+ unreadCount: AccessibleLabelPart<{
60
+ t: TranslationContextValue["t"];
61
+ } & {
62
+ unreadCount?: number;
63
+ }>;
64
+ };
65
+ /** Default order the parts are assembled in (reading order). */
66
+ export declare const DEFAULT_THREAD_LIST_ITEM_LABEL_ORDER: readonly ["name", "active", "unreadCount", "parentMessage", "replyCount", "time"];
67
+ export type ThreadListItemLabelConfig = AccessibleLabelConfig<ThreadListItemLabelData>;
68
+ /**
69
+ * Composes a single, coherent accessible name for a thread list row from named parts. The default
70
+ * reading order is name (channel) → active → unread → parent message → reply count → last activity.
71
+ *
72
+ * ## Customizing the label
73
+ *
74
+ * The label is generated by `ThreadListItemUI`, which accepts an `accessibleLabelConfig` prop. To
75
+ * customize it, supply your own `ThreadListItemUI` through `ComponentContext` (the same way the
76
+ * component is overridden) and forward the config — no new plumbing:
77
+ *
78
+ * ```tsx
79
+ * const MyThreadListItemUI = (props) => (
80
+ * <DefaultThreadListItemUI {...props} accessibleLabelConfig={accessibleLabelConfig} />
81
+ * );
82
+ * // <ComponentProvider value={{ ThreadListItemUI: MyThreadListItemUI }}> … </ComponentProvider>
83
+ * ```
84
+ *
85
+ * ### Adding custom parts
86
+ *
87
+ * - {@link ThreadListItemLabelConfig.parts} is merged over {@link defaultThreadListItemLabelParts},
88
+ * so a new key is *added* and a same-named key *overrides* the default.
89
+ * - A part returns its segment string, or `undefined`/`''` to be omitted.
90
+ * - {@link ThreadListItemLabelConfig.order} decides which parts are included AND their sequence —
91
+ * **a part not listed in `order` is never rendered**. Spread
92
+ * {@link DEFAULT_THREAD_LIST_ITEM_LABEL_ORDER} to keep the defaults and insert your own.
93
+ * - Each part receives {@link ThreadListItemLabelData}. Parts call `t`, so provide your own i18n keys
94
+ * (or return plain strings).
95
+ *
96
+ * ```tsx
97
+ * const accessibleLabelConfig: ThreadListItemLabelConfig = {
98
+ * parts: {
99
+ * participants: ({ participantCount, t }) =>
100
+ * participantCount ? t('{{ count }} participants', { count: participantCount }) : undefined,
101
+ * },
102
+ * order: ['name', 'participants', ...DEFAULT_THREAD_LIST_ITEM_LABEL_ORDER.slice(1)],
103
+ * };
104
+ * ```
105
+ *
106
+ * For full control, set {@link ThreadListItemLabelConfig.build} (return the entire string), or write
107
+ * a custom `ThreadListItemUI` that calls this function directly — importing
108
+ * {@link defaultThreadListItemLabelParts} to reuse the built-ins.
109
+ */
110
+ export declare const composeThreadListItemAccessibleLabel: (data: ThreadListItemLabelData, config?: ThreadListItemLabelConfig) => string;
111
+ //# sourceMappingURL=utils.a11y.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.a11y.d.ts","sourceRoot":"","sources":["../../../../../src/components/Threads/ThreadList/utils.a11y.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAErE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EAIzB,MAAM,+BAA+B,CAAC;AAGvC;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,6DAA6D;IAC7D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,yCAAyC;IACzC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../../src/components/Threads/UnreadCountBadge.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,eAAO,MAAM,gBAAgB,GAAI,gCAI9B,iBAAiB,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,WAAW,GAAG,cAAc,GAAG,aAAa,GAAG,UAAU,CAAC;CACtE,CAAC,4CAcD,CAAC"}
1
+ {"version":3,"file":"UnreadCountBadge.d.ts","sourceRoot":"","sources":["../../../../src/components/Threads/UnreadCountBadge.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,eAAO,MAAM,gBAAgB,GAAI,gCAI9B,iBAAiB,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,WAAW,GAAG,cAAc,GAAG,aAAa,GAAG,UAAU,CAAC;CACtE,CAAC,4CAmBD,CAAC"}
@@ -0,0 +1,23 @@
1
+ import type { RefObject } from 'react';
2
+ export type UseMutationObserverOptions = {
3
+ /** When `false`, the observer is not connected (and `onDisconnect` runs if it was). Default `true`. */
4
+ enabled?: boolean;
5
+ /** `MutationObserver` init, read when (re)connecting. Default `{ childList: true, subtree: true }`. */
6
+ init?: MutationObserverInit;
7
+ /** Runs when observation stops — target/`enabled` change or unmount. Use to clean up side effects
8
+ * started in `onMutation` (e.g. cancel a pending announcement). */
9
+ onDisconnect?: () => void;
10
+ /** Also invoke `onMutation` once right after connecting, to react to the current DOM. Default `true`. */
11
+ runOnConnect?: boolean;
12
+ };
13
+ /**
14
+ * Runs `onMutation` whenever the observed subtree of `ref` changes (and, by default, once on
15
+ * connect). A thin, generic wrapper around `MutationObserver`: toggle with `enabled`, react to the
16
+ * initial state with `runOnConnect`, and clean up side effects via `onDisconnect`. The latest
17
+ * `onMutation`/`onDisconnect` are always used without reconnecting the observer.
18
+ *
19
+ * Note: like any `useEffect`-based hook, it (re)connects on `enabled` change or remount — not on a
20
+ * silent `ref.current` swap. Drive remounts with a `key` or toggle `enabled` if the target changes.
21
+ */
22
+ export declare const useMutationObserver: (ref: RefObject<HTMLElement | null>, onMutation: () => void, { enabled, init, onDisconnect, runOnConnect, }?: UseMutationObserverOptions) => void;
23
+ //# sourceMappingURL=useMutationObserver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useMutationObserver.d.ts","sourceRoot":"","sources":["../../../../../src/components/UtilityComponents/hooks/useMutationObserver.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOvC,MAAM,MAAM,0BAA0B,GAAG;IACvC,uGAAuG;IACvG,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,uGAAuG;IACvG,IAAI,CAAC,EAAE,oBAAoB,CAAC;IAC5B;uEACmE;IACnE,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,yGAAyG;IACzG,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,GAC9B,KAAK,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,EAClC,YAAY,MAAM,IAAI,EACtB,iDAKG,0BAA+B,SA+BnC,CAAC"}
@@ -206,99 +206,163 @@ export declare class Streami18n {
206
206
  Archive: string;
207
207
  "Are you sure you want to delete this message?": string;
208
208
  "Are you sure you want to leave this channel?": string;
209
+ "aria/{{ count }} {{ suggestionsLabel }}_one": string;
210
+ "aria/{{ count }} {{ suggestionsLabel }}_other": string;
211
+ "aria/{{ count }} attachment_one": string;
212
+ "aria/{{ count }} attachment_other": string;
213
+ "aria/{{ count }} search results_one": string;
214
+ "aria/{{ count }} search results_other": string;
215
+ "aria/{{ count }} suggestions_one": string;
216
+ "aria/{{ count }} suggestions_other": string;
217
+ "aria/{{ count }} unread message_one": string;
218
+ "aria/{{ count }} unread message_other": string;
219
+ "aria/{{ setting }} disabled": string;
220
+ "aria/{{ setting }} enabled": string;
221
+ "aria/Active": string;
222
+ "aria/Animated GIF": string;
223
+ "aria/Animated GIF: {{ title }}": string;
209
224
  "aria/Attachment": string;
225
+ "aria/Attachment {{ attachmentType }}": string;
210
226
  "aria/Attachment Actions": string;
227
+ "aria/audio": string;
211
228
  "aria/Audio position {{ elapsed }} of {{ duration }}": string;
212
229
  "aria/Audio position {{ progress }} percent": string;
230
+ "aria/Back to attachments": string;
231
+ "aria/Back to parent menu button": string;
213
232
  "aria/Block User": string;
214
233
  "aria/Bookmark Message": string;
215
234
  "aria/Cancel recording": string;
216
235
  "aria/Cancel Reply": string;
217
- "aria/Cancel upload": string;
218
236
  "aria/Channel Actions": string;
219
237
  "aria/Channel details": string;
220
238
  "aria/Channel list": string;
221
- "aria/Channel search results": string;
222
- "aria/Chat view tabs": string;
239
+ "aria/Chat view controls": string;
240
+ "aria/Chat: {{ channelName }}": string;
223
241
  "aria/Clear search": string;
224
242
  "aria/Close callout dialog": string;
225
243
  "aria/Close thread": string;
226
244
  "aria/Collapse sidebar": string;
245
+ "aria/Command activated: {{ command }}": string;
227
246
  "aria/Command Suggestions": string;
228
247
  "aria/Complete recording": string;
229
248
  "aria/Copy Message Text": string;
230
249
  "aria/Decrease value": string;
231
250
  "aria/Delete Message": string;
251
+ "aria/Delivered": string;
252
+ "aria/Delivery status: {{ deliveryStatus }}": string;
232
253
  "aria/Dismiss notification": string;
233
254
  "aria/Download attachment": string;
255
+ "aria/Dropped \"{{ option }}\" at position {{ position }}.": string;
234
256
  "aria/Edit Message": string;
235
257
  "aria/Emoji picker": string;
236
258
  "aria/Emoji Suggestions": string;
237
259
  "aria/Exit search": string;
238
260
  "aria/Expand sidebar": string;
239
- "aria/File input": string;
261
+ "aria/file": string;
240
262
  "aria/File upload": string;
241
263
  "aria/Flag Message": string;
264
+ "aria/GIF": string;
265
+ "aria/Giphy actions": string;
266
+ "aria/Giphy canceled": string;
267
+ "aria/Giphy image changed": string;
268
+ "aria/Giphy image changed: {{ title }}": string;
269
+ "aria/Giphy preview, only visible to you. Use the Send, Shuffle, or Cancel actions.": string;
270
+ "aria/Giphy sent": string;
271
+ "aria/image": string;
242
272
  "aria/Image failed to load": string;
243
- "aria/Image input": string;
244
273
  "aria/Increase value": string;
245
274
  "aria/Jump to latest message": string;
246
275
  "aria/Jump to quoted message": string;
247
- "aria/Load More Channels": string;
276
+ "aria/Last activity: {{ time }}": string;
277
+ "aria/Last message from {{ sender }}: {{ messagePreview }}": string;
278
+ "aria/Last message: {{ messagePreview }}": string;
248
279
  "aria/Mark Message Unread": string;
249
280
  "aria/Mark messages as read": string;
250
281
  "aria/Mention Suggestions": string;
251
- "aria/Menu": string;
252
282
  "aria/Message Actions": string;
253
283
  "aria/Message from {{ user }},": string;
254
- "aria/Message Options": string;
284
+ "aria/Message input": string;
285
+ "aria/Message with attachments": string;
255
286
  "aria/Message,": string;
256
287
  "aria/Mute User": string;
257
288
  "aria/Next page": string;
289
+ "aria/No search results found": string;
258
290
  "aria/Notifications": string;
259
291
  "aria/Open Attachment Selector": string;
260
292
  "aria/Open Channel Actions Menu": string;
261
293
  "aria/Open channel details": string;
294
+ "aria/Open channels view": string;
262
295
  "aria/Open image shared by {{ name }}": string;
263
- "aria/Open Menu": string;
264
296
  "aria/Open Message Actions Menu": string;
265
297
  "aria/Open Reaction Selector": string;
266
298
  "aria/Open Thread": string;
299
+ "aria/Open threads view": string;
300
+ "aria/Open threads view with unread threads_one": string;
301
+ "aria/Open threads view with unread threads_other": string;
267
302
  "aria/Open video shared by {{ name }}": string;
303
+ "aria/Opened channel: {{ name }}": string;
304
+ "aria/Opened thread in {{ name }}": string;
305
+ "aria/Option {{ position }}": string;
306
+ "aria/Options can now be reordered and removed.": string;
268
307
  "aria/Pause": string;
269
308
  "aria/Pause recording": string;
270
309
  "aria/Percent complete": string;
310
+ "aria/Picked up \"{{ option }}\". Use arrow keys to reorder. Press Space or Tab to drop.": string;
271
311
  "aria/Pin Message": string;
272
312
  "aria/Play": string;
313
+ "aria/Poll dialog opened": string;
314
+ "aria/Poll sent": string;
315
+ "aria/Poll: {{ pollName }}": string;
316
+ "aria/Press Enter to start typing": string;
317
+ "aria/Press Space to select this option, use the Up and Down arrow keys to move it, then press Space again to deselect it.": string;
273
318
  "aria/Previous page": string;
274
319
  "aria/Quote Message": string;
275
320
  "aria/Reaction list": string;
321
+ "aria/Read": string;
322
+ "aria/Recording paused": string;
323
+ "aria/Recording resumed": string;
324
+ "aria/Recording started": string;
276
325
  "aria/Remind Me Message": string;
277
- "aria/Remind Me Options": string;
278
326
  "aria/Remove attachment": string;
279
327
  "aria/Remove location attachment": string;
280
- "aria/Remove option": string;
328
+ "aria/Remove option: {{ option }}": string;
281
329
  "aria/Remove Reminder": string;
282
330
  "aria/Remove Save For Later": string;
331
+ "aria/Removed option {{ option }}": string;
332
+ "aria/Reorder \"{{ option }}\" at position {{ position }} of {{ total }}": string;
333
+ "aria/Reorder option {{ position }}": string;
283
334
  "aria/Resend Message": string;
284
335
  "aria/Resume recording": string;
285
336
  "aria/Retry upload": string;
286
337
  "aria/Review bounced message": string;
338
+ "aria/Search cleared": string;
287
339
  "aria/Search results": string;
288
340
  "aria/Search results header filter button for: {{ source }}": string;
289
341
  "aria/Seek audio position": string;
290
- "aria/Select Channel: {{ channelName }}": string;
291
342
  "aria/Select Reaction: {{ reactionName }}": string;
292
343
  "aria/Select User Channel: {{ name }}": string;
293
344
  "aria/Send": string;
345
+ "aria/Sent": string;
346
+ "aria/Shared a link": string;
347
+ "aria/Shared a link with title: {{ linkTitle }}": string;
348
+ "aria/Shared location": string;
294
349
  "aria/Show preview": string;
295
350
  "aria/Start recording audio": string;
296
351
  "aria/Stop AI Generation": string;
352
+ "aria/Submenu": string;
297
353
  "aria/Suggestions": string;
354
+ "aria/There are no messages in this chat.": string;
355
+ "aria/This option can be reordered and removed.": string;
298
356
  "aria/Thread list": string;
357
+ "aria/Thread: {{ messagePreview }}": string;
299
358
  "aria/Unblock User": string;
300
359
  "aria/Unmute User": string;
301
360
  "aria/Unpin Message": string;
361
+ "aria/User selected: {{ user }}": string;
362
+ "aria/video": string;
363
+ "aria/voice message": string;
364
+ "aria/Voice message sent": string;
365
+ "aria/Voice recording attached": string;
302
366
  "Ask a question": string;
303
367
  Attach: string;
304
368
  "Attach files": string;
@@ -330,7 +394,6 @@ export declare class Streami18n {
330
394
  Close: string;
331
395
  "Close dialog": string;
332
396
  "Close emoji picker": string;
333
- "Close prompt: {{ title }}": string;
334
397
  "Command not available while editing": string;
335
398
  "Command not available while replying": string;
336
399
  Commands: string;
@@ -350,9 +413,11 @@ export declare class Streami18n {
350
413
  Delivered: string;
351
414
  "Direct message": string;
352
415
  "Do you want to end this poll now? Nobody will be able to vote in this poll anymore.": string;
416
+ "Download {{ fileName }}": string;
353
417
  "Download All": string;
354
418
  "Download Attachment": string;
355
419
  "Download attachment {{ name }}": string;
420
+ "Download attachment {{ number }}": string;
356
421
  "Drag your files here": string;
357
422
  "Drag your files here to add to your post": string;
358
423
  "Due {{ timeLeft }}": string;
@@ -594,6 +659,7 @@ export declare class Streami18n {
594
659
  "Poll ended": string;
595
660
  "Poll options": string;
596
661
  "Poll results": string;
662
+ "Poll sent": string;
597
663
  Previous: string;
598
664
  "Previous image": string;
599
665
  Question: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Streami18n.d.ts","sourceRoot":"","sources":["../../../src/i18n/Streami18n.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,EAAgC,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAGxF,OAAO,KAAK,EAAE,IAAI,IAAI,IAAI,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,KAAK,cAAc,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAC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,CAAC,GAAG,EAAE,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC;IAS/D,WAAW,CAAC,QAAQ,EAAE,oBAAoB;IAsBhD,2BAA2B,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,SAAS,KAAK,IAAI;CAG7D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-react",
3
- "version": "14.7.0",
3
+ "version": "14.8.0",
4
4
  "description": "React components to create chat conversations or livestream style chat",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {
@@ -88,6 +88,7 @@
88
88
  "lodash.mergewith": "^4.6.2",
89
89
  "lodash.throttle": "^4.1.1",
90
90
  "lodash.uniqby": "^4.7.0",
91
+ "mdast-util-to-string": "^4.0.0",
91
92
  "nanoid": "^3.3.12",
92
93
  "react-dropzone": "^14.4.1",
93
94
  "react-fast-compare": "^3.2.2",
@@ -96,6 +97,8 @@
96
97
  "react-textarea-autosize": "^8.5.9",
97
98
  "react-virtuoso": "^2.19.1",
98
99
  "remark-gfm": "^4.0.1",
100
+ "remark-parse": "^11.0.0",
101
+ "unified": "^11.0.5",
99
102
  "unist-builder": "^4.0.0",
100
103
  "unist-util-visit": "^5.1.0",
101
104
  "use-sync-external-store": "^1.6.0"