@liveblocks/react 3.7.0-preview1 → 3.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/index.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkX5PYKCZBcjs = require('./chunk-X5PYKCZB.cjs');
6
+ var _chunkOXA6JGB4cjs = require('./chunk-OXA6JGB4.cjs');
7
7
 
8
8
 
9
9
 
@@ -77,12 +77,12 @@ var _chunkX5PYKCZBcjs = require('./chunk-X5PYKCZB.cjs');
77
77
 
78
78
 
79
79
 
80
- var _chunk42HXAXEDcjs = require('./chunk-42HXAXED.cjs');
80
+ var _chunkW2H56LB3cjs = require('./chunk-W2H56LB3.cjs');
81
81
 
82
82
  // src/index.ts
83
83
  var _core = require('@liveblocks/core');
84
84
  var _client = require('@liveblocks/client');
85
- _core.detectDupes.call(void 0, _chunkX5PYKCZBcjs.PKG_NAME, _chunkX5PYKCZBcjs.PKG_VERSION, _chunkX5PYKCZBcjs.PKG_FORMAT);
85
+ _core.detectDupes.call(void 0, _chunkOXA6JGB4cjs.PKG_NAME, _chunkOXA6JGB4cjs.PKG_VERSION, _chunkOXA6JGB4cjs.PKG_FORMAT);
86
86
 
87
87
 
88
88
 
@@ -159,5 +159,5 @@ _core.detectDupes.call(void 0, _chunkX5PYKCZBcjs.PKG_NAME, _chunkX5PYKCZBcjs.PKG
159
159
 
160
160
 
161
161
 
162
- exports.ClientContext = _chunk42HXAXEDcjs.ClientContext; exports.ClientSideSuspense = _chunkX5PYKCZBcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunk42HXAXEDcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunk42HXAXEDcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunk42HXAXEDcjs.RegisterAiTool; exports.RoomContext = _chunk42HXAXEDcjs.RoomContext; exports.RoomProvider = _chunk42HXAXEDcjs._RoomProvider; exports.createLiveblocksContext = _chunk42HXAXEDcjs.createLiveblocksContext; exports.createRoomContext = _chunk42HXAXEDcjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunk42HXAXEDcjs._useAddReaction; exports.useAiChat = _chunk42HXAXEDcjs._useAiChat; exports.useAiChatMessages = _chunk42HXAXEDcjs._useAiChatMessages; exports.useAiChats = _chunk42HXAXEDcjs._useAiChats; exports.useAttachmentUrl = _chunk42HXAXEDcjs.useAttachmentUrl; exports.useBroadcastEvent = _chunk42HXAXEDcjs._useBroadcastEvent; exports.useCanRedo = _chunk42HXAXEDcjs.useCanRedo; exports.useCanUndo = _chunk42HXAXEDcjs.useCanUndo; exports.useClient = _chunk42HXAXEDcjs.useClient; exports.useCreateAiChat = _chunk42HXAXEDcjs.useCreateAiChat; exports.useCreateComment = _chunk42HXAXEDcjs.useCreateComment; exports.useCreateThread = _chunk42HXAXEDcjs._useCreateThread; exports.useDeleteAiChat = _chunk42HXAXEDcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunk42HXAXEDcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunk42HXAXEDcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunk42HXAXEDcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunk42HXAXEDcjs._useDeleteThread; exports.useEditComment = _chunk42HXAXEDcjs.useEditComment; exports.useEditThreadMetadata = _chunk42HXAXEDcjs._useEditThreadMetadata; exports.useErrorListener = _chunk42HXAXEDcjs.useErrorListener; exports.useEventListener = _chunk42HXAXEDcjs._useEventListener; exports.useGroupInfo = _chunk42HXAXEDcjs.useGroupInfo; exports.useHistory = _chunk42HXAXEDcjs.useHistory; exports.useHistoryVersionData = _chunk42HXAXEDcjs.useHistoryVersionData; exports.useHistoryVersions = _chunk42HXAXEDcjs._useHistoryVersions; exports.useInboxNotificationThread = _chunk42HXAXEDcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunk42HXAXEDcjs.useInboxNotifications; exports.useIsInsideRoom = _chunk42HXAXEDcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunk42HXAXEDcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunk42HXAXEDcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunk42HXAXEDcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunk42HXAXEDcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunk42HXAXEDcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunk42HXAXEDcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunk42HXAXEDcjs._useMutation; exports.useMyPresence = _chunk42HXAXEDcjs._useMyPresence; exports.useNotificationSettings = _chunk42HXAXEDcjs.useNotificationSettings; exports.useOther = _chunk42HXAXEDcjs._useOther; exports.useOthers = _chunk42HXAXEDcjs._useOthers; exports.useOthersConnectionIds = _chunk42HXAXEDcjs.useOthersConnectionIds; exports.useOthersListener = _chunk42HXAXEDcjs._useOthersListener; exports.useOthersMapped = _chunk42HXAXEDcjs._useOthersMapped; exports.useRedo = _chunk42HXAXEDcjs.useRedo; exports.useRemoveReaction = _chunk42HXAXEDcjs.useRemoveReaction; exports.useRoom = _chunk42HXAXEDcjs._useRoom; exports.useRoomInfo = _chunk42HXAXEDcjs.useRoomInfo; exports.useRoomSubscriptionSettings = _chunk42HXAXEDcjs._useRoomSubscriptionSettings; exports.useSelf = _chunk42HXAXEDcjs._useSelf; exports.useSendAiMessage = _chunk42HXAXEDcjs.useSendAiMessage; exports.useStatus = _chunk42HXAXEDcjs.useStatus; exports.useStorage = _chunk42HXAXEDcjs._useStorage; exports.useStorageRoot = _chunk42HXAXEDcjs._useStorageRoot; exports.useSubscribeToThread = _chunk42HXAXEDcjs.useSubscribeToThread; exports.useSyncStatus = _chunk42HXAXEDcjs.useSyncStatus; exports.useThreadSubscription = _chunk42HXAXEDcjs.useThreadSubscription; exports.useThreads = _chunk42HXAXEDcjs._useThreads; exports.useUndo = _chunk42HXAXEDcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunk42HXAXEDcjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunk42HXAXEDcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunk42HXAXEDcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunk42HXAXEDcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunk42HXAXEDcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunk42HXAXEDcjs._useUser; exports.useUserThreads_experimental = _chunk42HXAXEDcjs._useUserThreads_experimental;
162
+ exports.ClientContext = _chunkW2H56LB3cjs.ClientContext; exports.ClientSideSuspense = _chunkOXA6JGB4cjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkW2H56LB3cjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkW2H56LB3cjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkW2H56LB3cjs.RegisterAiTool; exports.RoomContext = _chunkW2H56LB3cjs.RoomContext; exports.RoomProvider = _chunkW2H56LB3cjs._RoomProvider; exports.createLiveblocksContext = _chunkW2H56LB3cjs.createLiveblocksContext; exports.createRoomContext = _chunkW2H56LB3cjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkW2H56LB3cjs._useAddReaction; exports.useAiChat = _chunkW2H56LB3cjs._useAiChat; exports.useAiChatMessages = _chunkW2H56LB3cjs._useAiChatMessages; exports.useAiChats = _chunkW2H56LB3cjs._useAiChats; exports.useAttachmentUrl = _chunkW2H56LB3cjs.useAttachmentUrl; exports.useBroadcastEvent = _chunkW2H56LB3cjs._useBroadcastEvent; exports.useCanRedo = _chunkW2H56LB3cjs.useCanRedo; exports.useCanUndo = _chunkW2H56LB3cjs.useCanUndo; exports.useClient = _chunkW2H56LB3cjs.useClient; exports.useCreateAiChat = _chunkW2H56LB3cjs.useCreateAiChat; exports.useCreateComment = _chunkW2H56LB3cjs.useCreateComment; exports.useCreateThread = _chunkW2H56LB3cjs._useCreateThread; exports.useDeleteAiChat = _chunkW2H56LB3cjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkW2H56LB3cjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkW2H56LB3cjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkW2H56LB3cjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkW2H56LB3cjs._useDeleteThread; exports.useEditComment = _chunkW2H56LB3cjs.useEditComment; exports.useEditThreadMetadata = _chunkW2H56LB3cjs._useEditThreadMetadata; exports.useErrorListener = _chunkW2H56LB3cjs.useErrorListener; exports.useEventListener = _chunkW2H56LB3cjs._useEventListener; exports.useGroupInfo = _chunkW2H56LB3cjs.useGroupInfo; exports.useHistory = _chunkW2H56LB3cjs.useHistory; exports.useHistoryVersionData = _chunkW2H56LB3cjs.useHistoryVersionData; exports.useHistoryVersions = _chunkW2H56LB3cjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkW2H56LB3cjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkW2H56LB3cjs.useInboxNotifications; exports.useIsInsideRoom = _chunkW2H56LB3cjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkW2H56LB3cjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkW2H56LB3cjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkW2H56LB3cjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkW2H56LB3cjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkW2H56LB3cjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkW2H56LB3cjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkW2H56LB3cjs._useMutation; exports.useMyPresence = _chunkW2H56LB3cjs._useMyPresence; exports.useNotificationSettings = _chunkW2H56LB3cjs.useNotificationSettings; exports.useOther = _chunkW2H56LB3cjs._useOther; exports.useOthers = _chunkW2H56LB3cjs._useOthers; exports.useOthersConnectionIds = _chunkW2H56LB3cjs.useOthersConnectionIds; exports.useOthersListener = _chunkW2H56LB3cjs._useOthersListener; exports.useOthersMapped = _chunkW2H56LB3cjs._useOthersMapped; exports.useRedo = _chunkW2H56LB3cjs.useRedo; exports.useRemoveReaction = _chunkW2H56LB3cjs.useRemoveReaction; exports.useRoom = _chunkW2H56LB3cjs._useRoom; exports.useRoomInfo = _chunkW2H56LB3cjs.useRoomInfo; exports.useRoomSubscriptionSettings = _chunkW2H56LB3cjs._useRoomSubscriptionSettings; exports.useSelf = _chunkW2H56LB3cjs._useSelf; exports.useSendAiMessage = _chunkW2H56LB3cjs.useSendAiMessage; exports.useStatus = _chunkW2H56LB3cjs.useStatus; exports.useStorage = _chunkW2H56LB3cjs._useStorage; exports.useStorageRoot = _chunkW2H56LB3cjs._useStorageRoot; exports.useSubscribeToThread = _chunkW2H56LB3cjs.useSubscribeToThread; exports.useSyncStatus = _chunkW2H56LB3cjs.useSyncStatus; exports.useThreadSubscription = _chunkW2H56LB3cjs.useThreadSubscription; exports.useThreads = _chunkW2H56LB3cjs._useThreads; exports.useUndo = _chunkW2H56LB3cjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkW2H56LB3cjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunkW2H56LB3cjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkW2H56LB3cjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkW2H56LB3cjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkW2H56LB3cjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunkW2H56LB3cjs._useUser; exports.useUserThreads_experimental = _chunkW2H56LB3cjs._useUserThreads_experimental;
163
163
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-RdHnZMhs.cjs';
2
- export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, K as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, A as createLiveblocksContext, J as createRoomContext, N as useAddReaction, aG as useAiChat, aI as useAiChatMessages, aH as useAiChats, as as useAttachmentUrl, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, ay as useCreateAiChat, T as useCreateComment, V as useCreateThread, az as useDeleteAiChat, B as useDeleteAllInboxNotifications, W as useDeleteComment, D as useDeleteInboxNotification, X as useDeleteThread, Y as useEditComment, Z as useEditThreadMetadata, E as useErrorListener, a3 as useEventListener, aD as useGroupInfo, a4 as useHistory, ak as useHistoryVersionData, at as useHistoryVersions, _ as useInboxNotificationThread, av as useInboxNotifications, a5 as useIsInsideRoom, a6 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, H as useMarkInboxNotificationAsRead, a7 as useMarkThreadAsRead, $ as useMarkThreadAsResolved, a0 as useMarkThreadAsUnresolved, a8 as useMutation, a9 as useMyPresence, aw as useNotificationSettings, al as useOther, am as useOthers, an as useOthersConnectionIds, aa as useOthersListener, ao as useOthersMapped, ab as useRedo, ac as useRemoveReaction, ad as useRoom, aC as useRoomInfo, au as useRoomSubscriptionSettings, ap as useSelf, aA as useSendAiMessage, ae as useStatus, aq as useStorage, af as useStorageRoot, a1 as useSubscribeToThread, I as useSyncStatus, ag as useThreadSubscription, ar as useThreads, ah as useUndo, aE as useUnreadInboxNotificationsCount, a2 as useUnsubscribeFromThread, ai as useUpdateMyPresence, ax as useUpdateNotificationSettings, aj as useUpdateRoomSubscriptionSettings, aF as useUser, aB as useUserThreads_experimental } from './room-RdHnZMhs.cjs';
1
+ import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-mUz5TTmo.cjs';
2
+ export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, K as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, A as createLiveblocksContext, J as createRoomContext, N as useAddReaction, aG as useAiChat, aI as useAiChatMessages, aH as useAiChats, as as useAttachmentUrl, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, ay as useCreateAiChat, T as useCreateComment, V as useCreateThread, az as useDeleteAiChat, B as useDeleteAllInboxNotifications, W as useDeleteComment, D as useDeleteInboxNotification, X as useDeleteThread, Y as useEditComment, Z as useEditThreadMetadata, E as useErrorListener, a3 as useEventListener, aD as useGroupInfo, a4 as useHistory, ak as useHistoryVersionData, at as useHistoryVersions, _ as useInboxNotificationThread, av as useInboxNotifications, a5 as useIsInsideRoom, a6 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, H as useMarkInboxNotificationAsRead, a7 as useMarkThreadAsRead, $ as useMarkThreadAsResolved, a0 as useMarkThreadAsUnresolved, a8 as useMutation, a9 as useMyPresence, aw as useNotificationSettings, al as useOther, am as useOthers, an as useOthersConnectionIds, aa as useOthersListener, ao as useOthersMapped, ab as useRedo, ac as useRemoveReaction, ad as useRoom, aC as useRoomInfo, au as useRoomSubscriptionSettings, ap as useSelf, aA as useSendAiMessage, ae as useStatus, aq as useStorage, af as useStorageRoot, a1 as useSubscribeToThread, I as useSyncStatus, ag as useThreadSubscription, ar as useThreads, ah as useUndo, aE as useUnreadInboxNotificationsCount, a2 as useUnsubscribeFromThread, ai as useUpdateMyPresence, ax as useUpdateNotificationSettings, aj as useUpdateRoomSubscriptionSettings, aF as useUser, aB as useUserThreads_experimental } from './room-mUz5TTmo.cjs';
3
3
  export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import * as react from 'react';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-RdHnZMhs.js';
2
- export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, K as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, A as createLiveblocksContext, J as createRoomContext, N as useAddReaction, aG as useAiChat, aI as useAiChatMessages, aH as useAiChats, as as useAttachmentUrl, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, ay as useCreateAiChat, T as useCreateComment, V as useCreateThread, az as useDeleteAiChat, B as useDeleteAllInboxNotifications, W as useDeleteComment, D as useDeleteInboxNotification, X as useDeleteThread, Y as useEditComment, Z as useEditThreadMetadata, E as useErrorListener, a3 as useEventListener, aD as useGroupInfo, a4 as useHistory, ak as useHistoryVersionData, at as useHistoryVersions, _ as useInboxNotificationThread, av as useInboxNotifications, a5 as useIsInsideRoom, a6 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, H as useMarkInboxNotificationAsRead, a7 as useMarkThreadAsRead, $ as useMarkThreadAsResolved, a0 as useMarkThreadAsUnresolved, a8 as useMutation, a9 as useMyPresence, aw as useNotificationSettings, al as useOther, am as useOthers, an as useOthersConnectionIds, aa as useOthersListener, ao as useOthersMapped, ab as useRedo, ac as useRemoveReaction, ad as useRoom, aC as useRoomInfo, au as useRoomSubscriptionSettings, ap as useSelf, aA as useSendAiMessage, ae as useStatus, aq as useStorage, af as useStorageRoot, a1 as useSubscribeToThread, I as useSyncStatus, ag as useThreadSubscription, ar as useThreads, ah as useUndo, aE as useUnreadInboxNotificationsCount, a2 as useUnsubscribeFromThread, ai as useUpdateMyPresence, ax as useUpdateNotificationSettings, aj as useUpdateRoomSubscriptionSettings, aF as useUser, aB as useUserThreads_experimental } from './room-RdHnZMhs.js';
1
+ import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-mUz5TTmo.js';
2
+ export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, K as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, A as createLiveblocksContext, J as createRoomContext, N as useAddReaction, aG as useAiChat, aI as useAiChatMessages, aH as useAiChats, as as useAttachmentUrl, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, ay as useCreateAiChat, T as useCreateComment, V as useCreateThread, az as useDeleteAiChat, B as useDeleteAllInboxNotifications, W as useDeleteComment, D as useDeleteInboxNotification, X as useDeleteThread, Y as useEditComment, Z as useEditThreadMetadata, E as useErrorListener, a3 as useEventListener, aD as useGroupInfo, a4 as useHistory, ak as useHistoryVersionData, at as useHistoryVersions, _ as useInboxNotificationThread, av as useInboxNotifications, a5 as useIsInsideRoom, a6 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, H as useMarkInboxNotificationAsRead, a7 as useMarkThreadAsRead, $ as useMarkThreadAsResolved, a0 as useMarkThreadAsUnresolved, a8 as useMutation, a9 as useMyPresence, aw as useNotificationSettings, al as useOther, am as useOthers, an as useOthersConnectionIds, aa as useOthersListener, ao as useOthersMapped, ab as useRedo, ac as useRemoveReaction, ad as useRoom, aC as useRoomInfo, au as useRoomSubscriptionSettings, ap as useSelf, aA as useSendAiMessage, ae as useStatus, aq as useStorage, af as useStorageRoot, a1 as useSubscribeToThread, I as useSyncStatus, ag as useThreadSubscription, ar as useThreads, ah as useUndo, aE as useUnreadInboxNotificationsCount, a2 as useUnsubscribeFromThread, ai as useUpdateMyPresence, ax as useUpdateNotificationSettings, aj as useUpdateRoomSubscriptionSettings, aF as useUser, aB as useUserThreads_experimental } from './room-mUz5TTmo.js';
3
3
  export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import * as react from 'react';
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  PKG_FORMAT,
4
4
  PKG_NAME,
5
5
  PKG_VERSION
6
- } from "./chunk-AUFFB5BH.js";
6
+ } from "./chunk-KYXF6473.js";
7
7
  import {
8
8
  ClientContext,
9
9
  LiveblocksProvider,
@@ -77,7 +77,7 @@ import {
77
77
  useUnsubscribeFromThread,
78
78
  useUpdateNotificationSettings,
79
79
  useUpdateRoomSubscriptionSettings
80
- } from "./chunk-LYWCKEAX.js";
80
+ } from "./chunk-WGUV4Z4E.js";
81
81
 
82
82
  // src/index.ts
83
83
  import { detectDupes } from "@liveblocks/core";
@@ -134,6 +134,23 @@ type UseThreadsOptions<M extends BaseMetadata> = {
134
134
  */
135
135
  scrollOnLoad?: boolean;
136
136
  };
137
+ type InboxNotificationsQuery = {
138
+ /**
139
+ * Whether to only return inbox notifications for a specific room.
140
+ */
141
+ roomId?: string;
142
+ /**
143
+ * Whether to only return inbox notifications for a specific kind.
144
+ */
145
+ kind?: string;
146
+ };
147
+ type UseInboxNotificationsOptions = {
148
+ /**
149
+ * The query to filter the inbox notifications by. If provided, only inbox notifications
150
+ * that match the query will be returned. If not provided, all inbox notifications will be returned.
151
+ */
152
+ query?: InboxNotificationsQuery;
153
+ };
137
154
  type UserAsyncResult<T> = AsyncResult<T, "user">;
138
155
  type UserAsyncSuccess<T> = AsyncSuccess<T, "user">;
139
156
  type RoomInfoAsyncResult = AsyncResult<DRI, "info">;
@@ -1183,7 +1200,7 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
1183
1200
  * @example
1184
1201
  * const { inboxNotifications, error, isLoading } = useInboxNotifications();
1185
1202
  */
1186
- useInboxNotifications(): InboxNotificationsAsyncResult;
1203
+ useInboxNotifications(options?: UseInboxNotificationsOptions): InboxNotificationsAsyncResult;
1187
1204
  /**
1188
1205
  * Returns the number of unread inbox notifications for the current user.
1189
1206
  *
@@ -1226,7 +1243,7 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
1226
1243
  * @example
1227
1244
  * const { inboxNotifications } = useInboxNotifications();
1228
1245
  */
1229
- useInboxNotifications(): InboxNotificationsAsyncSuccess;
1246
+ useInboxNotifications(options?: UseInboxNotificationsOptions): InboxNotificationsAsyncSuccess;
1230
1247
  /**
1231
1248
  * Returns the number of unread inbox notifications for the current user.
1232
1249
  *
@@ -1460,6 +1477,7 @@ type LoadableResource<T> = {
1460
1477
  type RoomId = string;
1461
1478
  type UserQueryKey = string;
1462
1479
  type RoomQueryKey = string;
1480
+ type InboxNotificationsQueryKey = string;
1463
1481
  type AiChatsQueryKey = string;
1464
1482
  /**
1465
1483
  * A lookup table (LUT) for all the inbox notifications.
@@ -1585,7 +1603,7 @@ declare class UmbrellaStore<M extends BaseMetadata> {
1585
1603
  readonly loadingUserThreads: DefaultMap<UserQueryKey, LoadableResource<ThreadsAsyncResult<M>>>;
1586
1604
  readonly notifications: DerivedSignal<CleanNotifications>;
1587
1605
  readonly threadSubscriptions: DerivedSignal<CleanThreadSubscriptions>;
1588
- readonly loadingNotifications: LoadableResource<InboxNotificationsAsyncResult>;
1606
+ readonly loadingNotifications: DefaultMap<InboxNotificationsQueryKey, LoadableResource<InboxNotificationsAsyncResult>>;
1589
1607
  readonly roomSubscriptionSettingsByRoomId: DefaultMap<RoomId, LoadableResource<RoomSubscriptionSettingsAsyncResult>>;
1590
1608
  readonly versionsByRoomId: DefaultMap<RoomId, LoadableResource<HistoryVersionsAsyncResult>>;
1591
1609
  readonly notificationSettings: LoadableResource<NotificationSettingsAsyncResult>;
@@ -1759,14 +1777,14 @@ declare function createLiveblocksContext<U extends BaseUserMeta = DU, M extends
1759
1777
  * @example
1760
1778
  * const { inboxNotifications, error, isLoading } = useInboxNotifications();
1761
1779
  */
1762
- declare function useInboxNotifications(): InboxNotificationsAsyncResult;
1780
+ declare function useInboxNotifications(options?: UseInboxNotificationsOptions): InboxNotificationsAsyncResult;
1763
1781
  /**
1764
1782
  * Returns the inbox notifications for the current user.
1765
1783
  *
1766
1784
  * @example
1767
1785
  * const { inboxNotifications } = useInboxNotifications();
1768
1786
  */
1769
- declare function useInboxNotificationsSuspense(): {
1787
+ declare function useInboxNotificationsSuspense(options?: UseInboxNotificationsOptions): {
1770
1788
  readonly isLoading: false;
1771
1789
  readonly inboxNotifications: _liveblocks_core.InboxNotificationData[];
1772
1790
  readonly error?: undefined;
@@ -134,6 +134,23 @@ type UseThreadsOptions<M extends BaseMetadata> = {
134
134
  */
135
135
  scrollOnLoad?: boolean;
136
136
  };
137
+ type InboxNotificationsQuery = {
138
+ /**
139
+ * Whether to only return inbox notifications for a specific room.
140
+ */
141
+ roomId?: string;
142
+ /**
143
+ * Whether to only return inbox notifications for a specific kind.
144
+ */
145
+ kind?: string;
146
+ };
147
+ type UseInboxNotificationsOptions = {
148
+ /**
149
+ * The query to filter the inbox notifications by. If provided, only inbox notifications
150
+ * that match the query will be returned. If not provided, all inbox notifications will be returned.
151
+ */
152
+ query?: InboxNotificationsQuery;
153
+ };
137
154
  type UserAsyncResult<T> = AsyncResult<T, "user">;
138
155
  type UserAsyncSuccess<T> = AsyncSuccess<T, "user">;
139
156
  type RoomInfoAsyncResult = AsyncResult<DRI, "info">;
@@ -1183,7 +1200,7 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
1183
1200
  * @example
1184
1201
  * const { inboxNotifications, error, isLoading } = useInboxNotifications();
1185
1202
  */
1186
- useInboxNotifications(): InboxNotificationsAsyncResult;
1203
+ useInboxNotifications(options?: UseInboxNotificationsOptions): InboxNotificationsAsyncResult;
1187
1204
  /**
1188
1205
  * Returns the number of unread inbox notifications for the current user.
1189
1206
  *
@@ -1226,7 +1243,7 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
1226
1243
  * @example
1227
1244
  * const { inboxNotifications } = useInboxNotifications();
1228
1245
  */
1229
- useInboxNotifications(): InboxNotificationsAsyncSuccess;
1246
+ useInboxNotifications(options?: UseInboxNotificationsOptions): InboxNotificationsAsyncSuccess;
1230
1247
  /**
1231
1248
  * Returns the number of unread inbox notifications for the current user.
1232
1249
  *
@@ -1460,6 +1477,7 @@ type LoadableResource<T> = {
1460
1477
  type RoomId = string;
1461
1478
  type UserQueryKey = string;
1462
1479
  type RoomQueryKey = string;
1480
+ type InboxNotificationsQueryKey = string;
1463
1481
  type AiChatsQueryKey = string;
1464
1482
  /**
1465
1483
  * A lookup table (LUT) for all the inbox notifications.
@@ -1585,7 +1603,7 @@ declare class UmbrellaStore<M extends BaseMetadata> {
1585
1603
  readonly loadingUserThreads: DefaultMap<UserQueryKey, LoadableResource<ThreadsAsyncResult<M>>>;
1586
1604
  readonly notifications: DerivedSignal<CleanNotifications>;
1587
1605
  readonly threadSubscriptions: DerivedSignal<CleanThreadSubscriptions>;
1588
- readonly loadingNotifications: LoadableResource<InboxNotificationsAsyncResult>;
1606
+ readonly loadingNotifications: DefaultMap<InboxNotificationsQueryKey, LoadableResource<InboxNotificationsAsyncResult>>;
1589
1607
  readonly roomSubscriptionSettingsByRoomId: DefaultMap<RoomId, LoadableResource<RoomSubscriptionSettingsAsyncResult>>;
1590
1608
  readonly versionsByRoomId: DefaultMap<RoomId, LoadableResource<HistoryVersionsAsyncResult>>;
1591
1609
  readonly notificationSettings: LoadableResource<NotificationSettingsAsyncResult>;
@@ -1759,14 +1777,14 @@ declare function createLiveblocksContext<U extends BaseUserMeta = DU, M extends
1759
1777
  * @example
1760
1778
  * const { inboxNotifications, error, isLoading } = useInboxNotifications();
1761
1779
  */
1762
- declare function useInboxNotifications(): InboxNotificationsAsyncResult;
1780
+ declare function useInboxNotifications(options?: UseInboxNotificationsOptions): InboxNotificationsAsyncResult;
1763
1781
  /**
1764
1782
  * Returns the inbox notifications for the current user.
1765
1783
  *
1766
1784
  * @example
1767
1785
  * const { inboxNotifications } = useInboxNotifications();
1768
1786
  */
1769
- declare function useInboxNotificationsSuspense(): {
1787
+ declare function useInboxNotificationsSuspense(options?: UseInboxNotificationsOptions): {
1770
1788
  readonly isLoading: false;
1771
1789
  readonly inboxNotifications: _liveblocks_core.InboxNotificationData[];
1772
1790
  readonly error?: undefined;
package/dist/suspense.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkX5PYKCZBcjs = require('./chunk-X5PYKCZB.cjs');
6
+ var _chunkOXA6JGB4cjs = require('./chunk-OXA6JGB4.cjs');
7
7
 
8
8
 
9
9
 
@@ -74,12 +74,12 @@ var _chunkX5PYKCZBcjs = require('./chunk-X5PYKCZB.cjs');
74
74
 
75
75
 
76
76
 
77
- var _chunk42HXAXEDcjs = require('./chunk-42HXAXED.cjs');
77
+ var _chunkW2H56LB3cjs = require('./chunk-W2H56LB3.cjs');
78
78
 
79
79
  // src/suspense.ts
80
80
  var _core = require('@liveblocks/core');
81
81
  var _client = require('@liveblocks/client');
82
- _core.detectDupes.call(void 0, _chunkX5PYKCZBcjs.PKG_NAME, _chunkX5PYKCZBcjs.PKG_VERSION, _chunkX5PYKCZBcjs.PKG_FORMAT);
82
+ _core.detectDupes.call(void 0, _chunkOXA6JGB4cjs.PKG_NAME, _chunkOXA6JGB4cjs.PKG_VERSION, _chunkOXA6JGB4cjs.PKG_FORMAT);
83
83
 
84
84
 
85
85
 
@@ -153,5 +153,5 @@ _core.detectDupes.call(void 0, _chunkX5PYKCZBcjs.PKG_NAME, _chunkX5PYKCZBcjs.PKG
153
153
 
154
154
 
155
155
 
156
- exports.ClientContext = _chunk42HXAXEDcjs.ClientContext; exports.ClientSideSuspense = _chunkX5PYKCZBcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunk42HXAXEDcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunk42HXAXEDcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunk42HXAXEDcjs.RegisterAiTool; exports.RoomContext = _chunk42HXAXEDcjs.RoomContext; exports.RoomProvider = _chunk42HXAXEDcjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunk42HXAXEDcjs._useAddReaction; exports.useAiChat = _chunk42HXAXEDcjs._useAiChatSuspense; exports.useAiChatMessages = _chunk42HXAXEDcjs._useAiChatMessagesSuspense; exports.useAiChats = _chunk42HXAXEDcjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunk42HXAXEDcjs.useAttachmentUrlSuspense; exports.useBroadcastEvent = _chunk42HXAXEDcjs._useBroadcastEvent; exports.useCanRedo = _chunk42HXAXEDcjs.useCanRedo; exports.useCanUndo = _chunk42HXAXEDcjs.useCanUndo; exports.useClient = _chunk42HXAXEDcjs.useClient; exports.useCreateAiChat = _chunk42HXAXEDcjs.useCreateAiChat; exports.useCreateComment = _chunk42HXAXEDcjs.useCreateComment; exports.useCreateThread = _chunk42HXAXEDcjs._useCreateThread; exports.useDeleteAiChat = _chunk42HXAXEDcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunk42HXAXEDcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunk42HXAXEDcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunk42HXAXEDcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunk42HXAXEDcjs._useDeleteThread; exports.useEditComment = _chunk42HXAXEDcjs.useEditComment; exports.useEditThreadMetadata = _chunk42HXAXEDcjs._useEditThreadMetadata; exports.useErrorListener = _chunk42HXAXEDcjs.useErrorListener; exports.useEventListener = _chunk42HXAXEDcjs._useEventListener; exports.useGroupInfo = _chunk42HXAXEDcjs.useGroupInfoSuspense; exports.useHistory = _chunk42HXAXEDcjs.useHistory; exports.useHistoryVersions = _chunk42HXAXEDcjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunk42HXAXEDcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunk42HXAXEDcjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunk42HXAXEDcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunk42HXAXEDcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunk42HXAXEDcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunk42HXAXEDcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunk42HXAXEDcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunk42HXAXEDcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunk42HXAXEDcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunk42HXAXEDcjs._useMutation; exports.useMyPresence = _chunk42HXAXEDcjs._useMyPresence; exports.useNotificationSettings = _chunk42HXAXEDcjs.useNotificationSettingsSuspense; exports.useOther = _chunk42HXAXEDcjs._useOtherSuspense; exports.useOthers = _chunk42HXAXEDcjs._useOthersSuspense; exports.useOthersConnectionIds = _chunk42HXAXEDcjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunk42HXAXEDcjs._useOthersListener; exports.useOthersMapped = _chunk42HXAXEDcjs._useOthersMappedSuspense; exports.useRedo = _chunk42HXAXEDcjs.useRedo; exports.useRemoveReaction = _chunk42HXAXEDcjs.useRemoveReaction; exports.useRoom = _chunk42HXAXEDcjs._useRoom; exports.useRoomInfo = _chunk42HXAXEDcjs.useRoomInfoSuspense; exports.useRoomSubscriptionSettings = _chunk42HXAXEDcjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunk42HXAXEDcjs._useSelfSuspense; exports.useSendAiMessage = _chunk42HXAXEDcjs.useSendAiMessage; exports.useStatus = _chunk42HXAXEDcjs.useStatus; exports.useStorage = _chunk42HXAXEDcjs._useStorageSuspense; exports.useStorageRoot = _chunk42HXAXEDcjs._useStorageRoot; exports.useSubscribeToThread = _chunk42HXAXEDcjs.useSubscribeToThread; exports.useSyncStatus = _chunk42HXAXEDcjs.useSyncStatus; exports.useThreadSubscription = _chunk42HXAXEDcjs.useThreadSubscription; exports.useThreads = _chunk42HXAXEDcjs._useThreadsSuspense; exports.useUndo = _chunk42HXAXEDcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunk42HXAXEDcjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunk42HXAXEDcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunk42HXAXEDcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunk42HXAXEDcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunk42HXAXEDcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunk42HXAXEDcjs._useUserSuspense; exports.useUserThreads_experimental = _chunk42HXAXEDcjs._useUserThreadsSuspense_experimental;
156
+ exports.ClientContext = _chunkW2H56LB3cjs.ClientContext; exports.ClientSideSuspense = _chunkOXA6JGB4cjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkW2H56LB3cjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkW2H56LB3cjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkW2H56LB3cjs.RegisterAiTool; exports.RoomContext = _chunkW2H56LB3cjs.RoomContext; exports.RoomProvider = _chunkW2H56LB3cjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkW2H56LB3cjs._useAddReaction; exports.useAiChat = _chunkW2H56LB3cjs._useAiChatSuspense; exports.useAiChatMessages = _chunkW2H56LB3cjs._useAiChatMessagesSuspense; exports.useAiChats = _chunkW2H56LB3cjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunkW2H56LB3cjs.useAttachmentUrlSuspense; exports.useBroadcastEvent = _chunkW2H56LB3cjs._useBroadcastEvent; exports.useCanRedo = _chunkW2H56LB3cjs.useCanRedo; exports.useCanUndo = _chunkW2H56LB3cjs.useCanUndo; exports.useClient = _chunkW2H56LB3cjs.useClient; exports.useCreateAiChat = _chunkW2H56LB3cjs.useCreateAiChat; exports.useCreateComment = _chunkW2H56LB3cjs.useCreateComment; exports.useCreateThread = _chunkW2H56LB3cjs._useCreateThread; exports.useDeleteAiChat = _chunkW2H56LB3cjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkW2H56LB3cjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkW2H56LB3cjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkW2H56LB3cjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkW2H56LB3cjs._useDeleteThread; exports.useEditComment = _chunkW2H56LB3cjs.useEditComment; exports.useEditThreadMetadata = _chunkW2H56LB3cjs._useEditThreadMetadata; exports.useErrorListener = _chunkW2H56LB3cjs.useErrorListener; exports.useEventListener = _chunkW2H56LB3cjs._useEventListener; exports.useGroupInfo = _chunkW2H56LB3cjs.useGroupInfoSuspense; exports.useHistory = _chunkW2H56LB3cjs.useHistory; exports.useHistoryVersions = _chunkW2H56LB3cjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkW2H56LB3cjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkW2H56LB3cjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkW2H56LB3cjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkW2H56LB3cjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkW2H56LB3cjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkW2H56LB3cjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkW2H56LB3cjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkW2H56LB3cjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkW2H56LB3cjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkW2H56LB3cjs._useMutation; exports.useMyPresence = _chunkW2H56LB3cjs._useMyPresence; exports.useNotificationSettings = _chunkW2H56LB3cjs.useNotificationSettingsSuspense; exports.useOther = _chunkW2H56LB3cjs._useOtherSuspense; exports.useOthers = _chunkW2H56LB3cjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkW2H56LB3cjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkW2H56LB3cjs._useOthersListener; exports.useOthersMapped = _chunkW2H56LB3cjs._useOthersMappedSuspense; exports.useRedo = _chunkW2H56LB3cjs.useRedo; exports.useRemoveReaction = _chunkW2H56LB3cjs.useRemoveReaction; exports.useRoom = _chunkW2H56LB3cjs._useRoom; exports.useRoomInfo = _chunkW2H56LB3cjs.useRoomInfoSuspense; exports.useRoomSubscriptionSettings = _chunkW2H56LB3cjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunkW2H56LB3cjs._useSelfSuspense; exports.useSendAiMessage = _chunkW2H56LB3cjs.useSendAiMessage; exports.useStatus = _chunkW2H56LB3cjs.useStatus; exports.useStorage = _chunkW2H56LB3cjs._useStorageSuspense; exports.useStorageRoot = _chunkW2H56LB3cjs._useStorageRoot; exports.useSubscribeToThread = _chunkW2H56LB3cjs.useSubscribeToThread; exports.useSyncStatus = _chunkW2H56LB3cjs.useSyncStatus; exports.useThreadSubscription = _chunkW2H56LB3cjs.useThreadSubscription; exports.useThreads = _chunkW2H56LB3cjs._useThreadsSuspense; exports.useUndo = _chunkW2H56LB3cjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkW2H56LB3cjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunkW2H56LB3cjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkW2H56LB3cjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkW2H56LB3cjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkW2H56LB3cjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunkW2H56LB3cjs._useUserSuspense; exports.useUserThreads_experimental = _chunkW2H56LB3cjs._useUserThreadsSuspense_experimental;
157
157
  //# sourceMappingURL=suspense.cjs.map
@@ -1,5 +1,5 @@
1
1
  export { ClientSideSuspense, RegisterAiKnowledge, RegisterAiTool } from './index.cjs';
2
- export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, K as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, N as useAddReaction, b0 as useAiChat, a$ as useAiChatMessages, a_ as useAiChats, aQ as useAttachmentUrl, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, ay as useCreateAiChat, T as useCreateComment, V as useCreateThread, az as useDeleteAiChat, B as useDeleteAllInboxNotifications, W as useDeleteComment, D as useDeleteInboxNotification, X as useDeleteThread, Y as useEditComment, Z as useEditThreadMetadata, E as useErrorListener, a3 as useEventListener, aW as useGroupInfo, a4 as useHistory, aR as useHistoryVersions, _ as useInboxNotificationThread, aT as useInboxNotifications, a5 as useIsInsideRoom, a6 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, H as useMarkInboxNotificationAsRead, a7 as useMarkThreadAsRead, $ as useMarkThreadAsResolved, a0 as useMarkThreadAsUnresolved, a8 as useMutation, a9 as useMyPresence, aU as useNotificationSettings, aJ as useOther, aK as useOthers, aL as useOthersConnectionIds, aa as useOthersListener, aM as useOthersMapped, ab as useRedo, ac as useRemoveReaction, ad as useRoom, aV as useRoomInfo, aS as useRoomSubscriptionSettings, aN as useSelf, aA as useSendAiMessage, ae as useStatus, aO as useStorage, af as useStorageRoot, a1 as useSubscribeToThread, I as useSyncStatus, ag as useThreadSubscription, aP as useThreads, ah as useUndo, aX as useUnreadInboxNotificationsCount, a2 as useUnsubscribeFromThread, ai as useUpdateMyPresence, ax as useUpdateNotificationSettings, aj as useUpdateRoomSubscriptionSettings, aY as useUser, aZ as useUserThreads_experimental } from './room-RdHnZMhs.cjs';
2
+ export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, K as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, N as useAddReaction, b0 as useAiChat, a$ as useAiChatMessages, a_ as useAiChats, aQ as useAttachmentUrl, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, ay as useCreateAiChat, T as useCreateComment, V as useCreateThread, az as useDeleteAiChat, B as useDeleteAllInboxNotifications, W as useDeleteComment, D as useDeleteInboxNotification, X as useDeleteThread, Y as useEditComment, Z as useEditThreadMetadata, E as useErrorListener, a3 as useEventListener, aW as useGroupInfo, a4 as useHistory, aR as useHistoryVersions, _ as useInboxNotificationThread, aT as useInboxNotifications, a5 as useIsInsideRoom, a6 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, H as useMarkInboxNotificationAsRead, a7 as useMarkThreadAsRead, $ as useMarkThreadAsResolved, a0 as useMarkThreadAsUnresolved, a8 as useMutation, a9 as useMyPresence, aU as useNotificationSettings, aJ as useOther, aK as useOthers, aL as useOthersConnectionIds, aa as useOthersListener, aM as useOthersMapped, ab as useRedo, ac as useRemoveReaction, ad as useRoom, aV as useRoomInfo, aS as useRoomSubscriptionSettings, aN as useSelf, aA as useSendAiMessage, ae as useStatus, aO as useStorage, af as useStorageRoot, a1 as useSubscribeToThread, I as useSyncStatus, ag as useThreadSubscription, aP as useThreads, ah as useUndo, aX as useUnreadInboxNotificationsCount, a2 as useUnsubscribeFromThread, ai as useUpdateMyPresence, ax as useUpdateNotificationSettings, aj as useUpdateRoomSubscriptionSettings, aY as useUser, aZ as useUserThreads_experimental } from './room-mUz5TTmo.cjs';
3
3
  export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react';
@@ -1,5 +1,5 @@
1
1
  export { ClientSideSuspense, RegisterAiKnowledge, RegisterAiTool } from './index.js';
2
- export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, K as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, N as useAddReaction, b0 as useAiChat, a$ as useAiChatMessages, a_ as useAiChats, aQ as useAttachmentUrl, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, ay as useCreateAiChat, T as useCreateComment, V as useCreateThread, az as useDeleteAiChat, B as useDeleteAllInboxNotifications, W as useDeleteComment, D as useDeleteInboxNotification, X as useDeleteThread, Y as useEditComment, Z as useEditThreadMetadata, E as useErrorListener, a3 as useEventListener, aW as useGroupInfo, a4 as useHistory, aR as useHistoryVersions, _ as useInboxNotificationThread, aT as useInboxNotifications, a5 as useIsInsideRoom, a6 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, H as useMarkInboxNotificationAsRead, a7 as useMarkThreadAsRead, $ as useMarkThreadAsResolved, a0 as useMarkThreadAsUnresolved, a8 as useMutation, a9 as useMyPresence, aU as useNotificationSettings, aJ as useOther, aK as useOthers, aL as useOthersConnectionIds, aa as useOthersListener, aM as useOthersMapped, ab as useRedo, ac as useRemoveReaction, ad as useRoom, aV as useRoomInfo, aS as useRoomSubscriptionSettings, aN as useSelf, aA as useSendAiMessage, ae as useStatus, aO as useStorage, af as useStorageRoot, a1 as useSubscribeToThread, I as useSyncStatus, ag as useThreadSubscription, aP as useThreads, ah as useUndo, aX as useUnreadInboxNotificationsCount, a2 as useUnsubscribeFromThread, ai as useUpdateMyPresence, ax as useUpdateNotificationSettings, aj as useUpdateRoomSubscriptionSettings, aY as useUser, aZ as useUserThreads_experimental } from './room-RdHnZMhs.js';
2
+ export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, K as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, N as useAddReaction, b0 as useAiChat, a$ as useAiChatMessages, a_ as useAiChats, aQ as useAttachmentUrl, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, ay as useCreateAiChat, T as useCreateComment, V as useCreateThread, az as useDeleteAiChat, B as useDeleteAllInboxNotifications, W as useDeleteComment, D as useDeleteInboxNotification, X as useDeleteThread, Y as useEditComment, Z as useEditThreadMetadata, E as useErrorListener, a3 as useEventListener, aW as useGroupInfo, a4 as useHistory, aR as useHistoryVersions, _ as useInboxNotificationThread, aT as useInboxNotifications, a5 as useIsInsideRoom, a6 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, H as useMarkInboxNotificationAsRead, a7 as useMarkThreadAsRead, $ as useMarkThreadAsResolved, a0 as useMarkThreadAsUnresolved, a8 as useMutation, a9 as useMyPresence, aU as useNotificationSettings, aJ as useOther, aK as useOthers, aL as useOthersConnectionIds, aa as useOthersListener, aM as useOthersMapped, ab as useRedo, ac as useRemoveReaction, ad as useRoom, aV as useRoomInfo, aS as useRoomSubscriptionSettings, aN as useSelf, aA as useSendAiMessage, ae as useStatus, aO as useStorage, af as useStorageRoot, a1 as useSubscribeToThread, I as useSyncStatus, ag as useThreadSubscription, aP as useThreads, ah as useUndo, aX as useUnreadInboxNotificationsCount, a2 as useUnsubscribeFromThread, ai as useUpdateMyPresence, ax as useUpdateNotificationSettings, aj as useUpdateRoomSubscriptionSettings, aY as useUser, aZ as useUserThreads_experimental } from './room-mUz5TTmo.js';
3
3
  export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react';
package/dist/suspense.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  PKG_FORMAT,
4
4
  PKG_NAME,
5
5
  PKG_VERSION
6
- } from "./chunk-AUFFB5BH.js";
6
+ } from "./chunk-KYXF6473.js";
7
7
  import {
8
8
  ClientContext,
9
9
  LiveblocksProvider,
@@ -74,7 +74,7 @@ import {
74
74
  useUnsubscribeFromThread,
75
75
  useUpdateNotificationSettings,
76
76
  useUpdateRoomSubscriptionSettings
77
- } from "./chunk-LYWCKEAX.js";
77
+ } from "./chunk-WGUV4Z4E.js";
78
78
 
79
79
  // src/suspense.ts
80
80
  import { detectDupes } from "@liveblocks/core";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liveblocks/react",
3
- "version": "3.7.0-preview1",
3
+ "version": "3.7.0",
4
4
  "description": "A set of React hooks and providers to use Liveblocks declaratively. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -61,8 +61,8 @@
61
61
  "showdeps": "depcruise src --include-only '^src' --exclude='__tests__' --output-type dot | dot -T svg > /tmp/dependency-graph.svg && open /tmp/dependency-graph.svg"
62
62
  },
63
63
  "dependencies": {
64
- "@liveblocks/client": "3.7.0-preview1",
65
- "@liveblocks/core": "3.7.0-preview1"
64
+ "@liveblocks/client": "3.7.0",
65
+ "@liveblocks/core": "3.7.0"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "@types/react": "*",