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/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/useNotificationApi.87ba0b39.js.map +1 -1
- package/dist/es/index.mjs +3 -3
- package/dist/es/index.mjs.map +1 -1
- package/dist/es/useNotificationApi.eff88f29.mjs.map +1 -1
- package/dist/types/components/ChannelList/ChannelList.d.ts.map +1 -1
- package/dist/types/context/ComponentContext.d.ts +2 -0
- package/dist/types/context/ComponentContext.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -22484,7 +22484,7 @@ var UnMemoizedChannelList = (props) => {
|
|
|
22484
22484
|
const { allowNewMessagesFromUnfilteredChannels = true, channelRenderFilterFn, customActiveChannel, customQueryChannels, EmptyStateIndicator: EmptyStateIndicator$1 = require_useNotificationApi.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;
|
|
22485
22485
|
const stableId = require_useNotificationApi.useStableId();
|
|
22486
22486
|
const { channel, channelsQueryState, client, customClasses, searchController, setActiveChannel, theme, useImageFlagEmojisOnWindows } = require_useNotificationApi.useChatContext("ChannelList");
|
|
22487
|
-
const { ChannelListUI: ChannelListUI$1 = ChannelListUI, NotificationList: NotificationList$1 = require_useChannelHeaderOnlineStatus.NotificationList, Search: Search$13 = Search } = require_useNotificationApi.useComponentContext();
|
|
22487
|
+
const { ChannelListHeader: ChannelListHeader$1 = ChannelListHeader, ChannelListUI: ChannelListUI$1 = ChannelListUI, NotificationList: NotificationList$1 = require_useChannelHeaderOnlineStatus.NotificationList, Search: Search$13 = Search } = require_useNotificationApi.useComponentContext();
|
|
22488
22488
|
const channelListRef = (0, react.useRef)(null);
|
|
22489
22489
|
const [channelUpdateCount, setChannelUpdateCount] = (0, react.useState)(0);
|
|
22490
22490
|
const { searchIsActive } = require_useNotificationApi.useStateStore(searchController.state, searchControllerStateSelector);
|
|
@@ -22570,7 +22570,7 @@ var UnMemoizedChannelList = (props) => {
|
|
|
22570
22570
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_useNotificationApi.DialogManagerProvider, {
|
|
22571
22571
|
id: `channel-list-dialog-manager-${stableId}`,
|
|
22572
22572
|
children: [
|
|
22573
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ChannelListHeader, {}),
|
|
22573
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ChannelListHeader$1, {}),
|
|
22574
22574
|
showChannelSearch && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Search$13, {}),
|
|
22575
22575
|
showChannelList && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ChannelListUI$1, {
|
|
22576
22576
|
error: channelsQueryState.error,
|
|
@@ -24034,7 +24034,7 @@ var useChat = ({ client, defaultLanguage = "en", i18nInstance }) => {
|
|
|
24034
24034
|
};
|
|
24035
24035
|
(0, react.useEffect)(() => {
|
|
24036
24036
|
if (!client) return;
|
|
24037
|
-
const version = "14.
|
|
24037
|
+
const version = "14.7.0";
|
|
24038
24038
|
const userAgent = client.getUserAgent();
|
|
24039
24039
|
if (!userAgent.includes("stream-chat-react")) client.setUserAgent(`stream-chat-react-${version}-${userAgent}`);
|
|
24040
24040
|
client.threads.registerSubscriptions();
|