stream-chat-react 14.6.1 → 14.7.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.
package/dist/es/index.mjs CHANGED
@@ -22463,7 +22463,7 @@ var UnMemoizedChannelList = (props) => {
22463
22463
  const { allowNewMessagesFromUnfilteredChannels = true, channelRenderFilterFn, customActiveChannel, customQueryChannels, EmptyStateIndicator: EmptyStateIndicator$1 = EmptyStateIndicator, filters = {}, getLatestMessagePreview, lockChannelOrder = false, onAddedToChannel, onChannelDeleted, onChannelHidden, onChannelTruncated, onChannelUpdated, onChannelVisible, onMessageNew, onMessageNewHandler, onRemovedFromChannel, options, Paginator = LoadMorePaginator, recoveryThrottleIntervalMs, renderChannels, sendChannelsToList = false, setActiveChannelOnMount = true, showChannelSearch = false, sort = DEFAULT_SORT, watchers = {} } = props;
22464
22464
  const stableId = useStableId();
22465
22465
  const { channel, channelsQueryState, client, customClasses, searchController, setActiveChannel, theme, useImageFlagEmojisOnWindows } = useChatContext("ChannelList");
22466
- const { ChannelListUI: ChannelListUI$1 = ChannelListUI, NotificationList: NotificationList$1 = NotificationList, Search: Search$13 = Search } = useComponentContext();
22466
+ const { ChannelListHeader: ChannelListHeader$1 = ChannelListHeader, ChannelListUI: ChannelListUI$1 = ChannelListUI, NotificationList: NotificationList$1 = NotificationList, Search: Search$13 = Search } = useComponentContext();
22467
22467
  const channelListRef = useRef(null);
22468
22468
  const [channelUpdateCount, setChannelUpdateCount] = useState(0);
22469
22469
  const { searchIsActive } = useStateStore(searchController.state, searchControllerStateSelector);
@@ -22549,7 +22549,7 @@ var UnMemoizedChannelList = (props) => {
22549
22549
  children: /* @__PURE__ */ jsxs(DialogManagerProvider, {
22550
22550
  id: `channel-list-dialog-manager-${stableId}`,
22551
22551
  children: [
22552
- /* @__PURE__ */ jsx(ChannelListHeader, {}),
22552
+ /* @__PURE__ */ jsx(ChannelListHeader$1, {}),
22553
22553
  showChannelSearch && /* @__PURE__ */ jsx(Search$13, {}),
22554
22554
  showChannelList && /* @__PURE__ */ jsx(ChannelListUI$1, {
22555
22555
  error: channelsQueryState.error,
@@ -24013,7 +24013,7 @@ var useChat = ({ client, defaultLanguage = "en", i18nInstance }) => {
24013
24013
  };
24014
24014
  useEffect(() => {
24015
24015
  if (!client) return;
24016
- const version = "14.6.1";
24016
+ const version = "14.7.0";
24017
24017
  const userAgent = client.getUserAgent();
24018
24018
  if (!userAgent.includes("stream-chat-react")) client.setUserAgent(`stream-chat-react-${version}-${userAgent}`);
24019
24019
  client.threads.registerSubscriptions();