@liveblocks/react 3.8.0-next1 → 3.8.0-next3

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 _chunkX3KI55GFcjs = require('./chunk-X3KI55GF.cjs');
6
+ var _chunk4ZS65AZVcjs = require('./chunk-4ZS65AZV.cjs');
7
7
 
8
8
 
9
9
 
@@ -78,12 +78,12 @@ var _chunkX3KI55GFcjs = require('./chunk-X3KI55GF.cjs');
78
78
 
79
79
 
80
80
 
81
- var _chunk45BFK66Kcjs = require('./chunk-45BFK66K.cjs');
81
+ var _chunkOYVPE6CVcjs = require('./chunk-OYVPE6CV.cjs');
82
82
 
83
83
  // src/index.ts
84
84
  var _core = require('@liveblocks/core');
85
85
  var _client = require('@liveblocks/client');
86
- _core.detectDupes.call(void 0, _chunkX3KI55GFcjs.PKG_NAME, _chunkX3KI55GFcjs.PKG_VERSION, _chunkX3KI55GFcjs.PKG_FORMAT);
86
+ _core.detectDupes.call(void 0, _chunk4ZS65AZVcjs.PKG_NAME, _chunk4ZS65AZVcjs.PKG_VERSION, _chunk4ZS65AZVcjs.PKG_FORMAT);
87
87
 
88
88
 
89
89
 
@@ -161,5 +161,5 @@ _core.detectDupes.call(void 0, _chunkX3KI55GFcjs.PKG_NAME, _chunkX3KI55GFcjs.PKG
161
161
 
162
162
 
163
163
 
164
- exports.ClientContext = _chunk45BFK66Kcjs.ClientContext; exports.ClientSideSuspense = _chunkX3KI55GFcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunk45BFK66Kcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunk45BFK66Kcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunk45BFK66Kcjs.RegisterAiTool; exports.RoomContext = _chunk45BFK66Kcjs.RoomContext; exports.RoomProvider = _chunk45BFK66Kcjs._RoomProvider; exports.createLiveblocksContext = _chunk45BFK66Kcjs.createLiveblocksContext; exports.createRoomContext = _chunk45BFK66Kcjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunk45BFK66Kcjs._useAddReaction; exports.useAiChat = _chunk45BFK66Kcjs._useAiChat; exports.useAiChatMessages = _chunk45BFK66Kcjs._useAiChatMessages; exports.useAiChatStatus = _chunk45BFK66Kcjs.useAiChatStatus; exports.useAiChats = _chunk45BFK66Kcjs._useAiChats; exports.useAttachmentUrl = _chunk45BFK66Kcjs.useAttachmentUrl; exports.useBroadcastEvent = _chunk45BFK66Kcjs._useBroadcastEvent; exports.useCanRedo = _chunk45BFK66Kcjs.useCanRedo; exports.useCanUndo = _chunk45BFK66Kcjs.useCanUndo; exports.useClient = _chunk45BFK66Kcjs.useClient; exports.useCreateAiChat = _chunk45BFK66Kcjs.useCreateAiChat; exports.useCreateComment = _chunk45BFK66Kcjs.useCreateComment; exports.useCreateThread = _chunk45BFK66Kcjs._useCreateThread; exports.useDeleteAiChat = _chunk45BFK66Kcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunk45BFK66Kcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunk45BFK66Kcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunk45BFK66Kcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunk45BFK66Kcjs._useDeleteThread; exports.useEditComment = _chunk45BFK66Kcjs.useEditComment; exports.useEditThreadMetadata = _chunk45BFK66Kcjs._useEditThreadMetadata; exports.useErrorListener = _chunk45BFK66Kcjs.useErrorListener; exports.useEventListener = _chunk45BFK66Kcjs._useEventListener; exports.useGroupInfo = _chunk45BFK66Kcjs.useGroupInfo; exports.useHistory = _chunk45BFK66Kcjs.useHistory; exports.useHistoryVersionData = _chunk45BFK66Kcjs.useHistoryVersionData; exports.useHistoryVersions = _chunk45BFK66Kcjs._useHistoryVersions; exports.useInboxNotificationThread = _chunk45BFK66Kcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunk45BFK66Kcjs.useInboxNotifications; exports.useIsInsideRoom = _chunk45BFK66Kcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunk45BFK66Kcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunk45BFK66Kcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunk45BFK66Kcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunk45BFK66Kcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunk45BFK66Kcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunk45BFK66Kcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunk45BFK66Kcjs._useMutation; exports.useMyPresence = _chunk45BFK66Kcjs._useMyPresence; exports.useNotificationSettings = _chunk45BFK66Kcjs.useNotificationSettings; exports.useOther = _chunk45BFK66Kcjs._useOther; exports.useOthers = _chunk45BFK66Kcjs._useOthers; exports.useOthersConnectionIds = _chunk45BFK66Kcjs.useOthersConnectionIds; exports.useOthersListener = _chunk45BFK66Kcjs._useOthersListener; exports.useOthersMapped = _chunk45BFK66Kcjs._useOthersMapped; exports.useRedo = _chunk45BFK66Kcjs.useRedo; exports.useRemoveReaction = _chunk45BFK66Kcjs.useRemoveReaction; exports.useRoom = _chunk45BFK66Kcjs._useRoom; exports.useRoomInfo = _chunk45BFK66Kcjs.useRoomInfo; exports.useRoomSubscriptionSettings = _chunk45BFK66Kcjs._useRoomSubscriptionSettings; exports.useSelf = _chunk45BFK66Kcjs._useSelf; exports.useSendAiMessage = _chunk45BFK66Kcjs.useSendAiMessage; exports.useStatus = _chunk45BFK66Kcjs.useStatus; exports.useStorage = _chunk45BFK66Kcjs._useStorage; exports.useStorageRoot = _chunk45BFK66Kcjs._useStorageRoot; exports.useSubscribeToThread = _chunk45BFK66Kcjs.useSubscribeToThread; exports.useSyncStatus = _chunk45BFK66Kcjs.useSyncStatus; exports.useThreadSubscription = _chunk45BFK66Kcjs.useThreadSubscription; exports.useThreads = _chunk45BFK66Kcjs._useThreads; exports.useUndo = _chunk45BFK66Kcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunk45BFK66Kcjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunk45BFK66Kcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunk45BFK66Kcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunk45BFK66Kcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunk45BFK66Kcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunk45BFK66Kcjs._useUser; exports.useUserThreads_experimental = _chunk45BFK66Kcjs._useUserThreads_experimental;
164
+ exports.ClientContext = _chunkOYVPE6CVcjs.ClientContext; exports.ClientSideSuspense = _chunk4ZS65AZVcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkOYVPE6CVcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkOYVPE6CVcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkOYVPE6CVcjs.RegisterAiTool; exports.RoomContext = _chunkOYVPE6CVcjs.RoomContext; exports.RoomProvider = _chunkOYVPE6CVcjs._RoomProvider; exports.createLiveblocksContext = _chunkOYVPE6CVcjs.createLiveblocksContext; exports.createRoomContext = _chunkOYVPE6CVcjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkOYVPE6CVcjs._useAddReaction; exports.useAiChat = _chunkOYVPE6CVcjs._useAiChat; exports.useAiChatMessages = _chunkOYVPE6CVcjs._useAiChatMessages; exports.useAiChatStatus = _chunkOYVPE6CVcjs.useAiChatStatus; exports.useAiChats = _chunkOYVPE6CVcjs._useAiChats; exports.useAttachmentUrl = _chunkOYVPE6CVcjs.useAttachmentUrl; exports.useBroadcastEvent = _chunkOYVPE6CVcjs._useBroadcastEvent; exports.useCanRedo = _chunkOYVPE6CVcjs.useCanRedo; exports.useCanUndo = _chunkOYVPE6CVcjs.useCanUndo; exports.useClient = _chunkOYVPE6CVcjs.useClient; exports.useCreateAiChat = _chunkOYVPE6CVcjs.useCreateAiChat; exports.useCreateComment = _chunkOYVPE6CVcjs.useCreateComment; exports.useCreateThread = _chunkOYVPE6CVcjs._useCreateThread; exports.useDeleteAiChat = _chunkOYVPE6CVcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkOYVPE6CVcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkOYVPE6CVcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkOYVPE6CVcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkOYVPE6CVcjs._useDeleteThread; exports.useEditComment = _chunkOYVPE6CVcjs.useEditComment; exports.useEditThreadMetadata = _chunkOYVPE6CVcjs._useEditThreadMetadata; exports.useErrorListener = _chunkOYVPE6CVcjs.useErrorListener; exports.useEventListener = _chunkOYVPE6CVcjs._useEventListener; exports.useGroupInfo = _chunkOYVPE6CVcjs.useGroupInfo; exports.useHistory = _chunkOYVPE6CVcjs.useHistory; exports.useHistoryVersionData = _chunkOYVPE6CVcjs.useHistoryVersionData; exports.useHistoryVersions = _chunkOYVPE6CVcjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkOYVPE6CVcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkOYVPE6CVcjs.useInboxNotifications; exports.useIsInsideRoom = _chunkOYVPE6CVcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkOYVPE6CVcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkOYVPE6CVcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkOYVPE6CVcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkOYVPE6CVcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkOYVPE6CVcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkOYVPE6CVcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkOYVPE6CVcjs._useMutation; exports.useMyPresence = _chunkOYVPE6CVcjs._useMyPresence; exports.useNotificationSettings = _chunkOYVPE6CVcjs.useNotificationSettings; exports.useOther = _chunkOYVPE6CVcjs._useOther; exports.useOthers = _chunkOYVPE6CVcjs._useOthers; exports.useOthersConnectionIds = _chunkOYVPE6CVcjs.useOthersConnectionIds; exports.useOthersListener = _chunkOYVPE6CVcjs._useOthersListener; exports.useOthersMapped = _chunkOYVPE6CVcjs._useOthersMapped; exports.useRedo = _chunkOYVPE6CVcjs.useRedo; exports.useRemoveReaction = _chunkOYVPE6CVcjs.useRemoveReaction; exports.useRoom = _chunkOYVPE6CVcjs._useRoom; exports.useRoomInfo = _chunkOYVPE6CVcjs.useRoomInfo; exports.useRoomSubscriptionSettings = _chunkOYVPE6CVcjs._useRoomSubscriptionSettings; exports.useSelf = _chunkOYVPE6CVcjs._useSelf; exports.useSendAiMessage = _chunkOYVPE6CVcjs.useSendAiMessage; exports.useStatus = _chunkOYVPE6CVcjs.useStatus; exports.useStorage = _chunkOYVPE6CVcjs._useStorage; exports.useStorageRoot = _chunkOYVPE6CVcjs._useStorageRoot; exports.useSubscribeToThread = _chunkOYVPE6CVcjs.useSubscribeToThread; exports.useSyncStatus = _chunkOYVPE6CVcjs.useSyncStatus; exports.useThreadSubscription = _chunkOYVPE6CVcjs.useThreadSubscription; exports.useThreads = _chunkOYVPE6CVcjs._useThreads; exports.useUndo = _chunkOYVPE6CVcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkOYVPE6CVcjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunkOYVPE6CVcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkOYVPE6CVcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkOYVPE6CVcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkOYVPE6CVcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunkOYVPE6CVcjs._useUser; exports.useUserThreads_experimental = _chunkOYVPE6CVcjs._useUserThreads_experimental;
165
165
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","../src/index.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;ACjFA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADkF7C;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,u0JAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","sourcesContent":[null,"/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseSendAiMessageOptions,\n UseThreadsOptions,\n SendAiMessageOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type { RegisterAiKnowledgeProps, RegisterAiToolProps } from \"./types/ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useGroupInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n useAiChatStatus,\n} from \"./liveblocks\";\n\nexport type { AiChatStatus } from \"./types/ai\";\n"]}
1
+ {"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","../src/index.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;ACjFA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADkF7C;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,u0JAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","sourcesContent":[null,"/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseSendAiMessageOptions,\n UseThreadsOptions,\n SendAiMessageOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useGroupInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n useAiChatStatus,\n} from \"./liveblocks\";\n"]}
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-DSJuooXd.cjs';
2
- export { aK as AiChatStatus, 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, aJ as useAiChatStatus, 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-DSJuooXd.cjs';
1
+ import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-C97RX2dB.cjs';
2
+ export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, B as createLiveblocksContext, K as createRoomContext, O as useAddReaction, aH as useAiChat, aJ as useAiChatMessages, aK as useAiChatStatus, aI as useAiChats, at as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, az as useCreateAiChat, V as useCreateComment, W as useCreateThread, aA as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, $ as useEditThreadMetadata, F as useErrorListener, a4 as useEventListener, aE as useGroupInfo, a5 as useHistory, al as useHistoryVersionData, au as useHistoryVersions, _ as useInboxNotificationThread, aw as useInboxNotifications, a6 as useIsInsideRoom, a7 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a8 as useMarkThreadAsRead, a0 as useMarkThreadAsResolved, a1 as useMarkThreadAsUnresolved, a9 as useMutation, aa as useMyPresence, ax as useNotificationSettings, am as useOther, an as useOthers, ao as useOthersConnectionIds, ab as useOthersListener, ap as useOthersMapped, ac as useRedo, ad as useRemoveReaction, ae as useRoom, aD as useRoomInfo, av as useRoomSubscriptionSettings, aq as useSelf, aB as useSendAiMessage, af as useStatus, ar as useStorage, ag as useStorageRoot, a2 as useSubscribeToThread, J as useSyncStatus, ah as useThreadSubscription, as as useThreads, ai as useUndo, aF as useUnreadInboxNotificationsCount, a3 as useUnsubscribeFromThread, aj as useUpdateMyPresence, ay as useUpdateNotificationSettings, ak as useUpdateRoomSubscriptionSettings, aG as useUser, aC as useUserThreads_experimental } from './room-C97RX2dB.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-DSJuooXd.js';
2
- export { aK as AiChatStatus, 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, aJ as useAiChatStatus, 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-DSJuooXd.js';
1
+ import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-C97RX2dB.js';
2
+ export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, B as createLiveblocksContext, K as createRoomContext, O as useAddReaction, aH as useAiChat, aJ as useAiChatMessages, aK as useAiChatStatus, aI as useAiChats, at as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, az as useCreateAiChat, V as useCreateComment, W as useCreateThread, aA as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, $ as useEditThreadMetadata, F as useErrorListener, a4 as useEventListener, aE as useGroupInfo, a5 as useHistory, al as useHistoryVersionData, au as useHistoryVersions, _ as useInboxNotificationThread, aw as useInboxNotifications, a6 as useIsInsideRoom, a7 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a8 as useMarkThreadAsRead, a0 as useMarkThreadAsResolved, a1 as useMarkThreadAsUnresolved, a9 as useMutation, aa as useMyPresence, ax as useNotificationSettings, am as useOther, an as useOthers, ao as useOthersConnectionIds, ab as useOthersListener, ap as useOthersMapped, ac as useRedo, ad as useRemoveReaction, ae as useRoom, aD as useRoomInfo, av as useRoomSubscriptionSettings, aq as useSelf, aB as useSendAiMessage, af as useStatus, ar as useStorage, ag as useStorageRoot, a2 as useSubscribeToThread, J as useSyncStatus, ah as useThreadSubscription, as as useThreads, ai as useUndo, aF as useUnreadInboxNotificationsCount, a3 as useUnsubscribeFromThread, aj as useUpdateMyPresence, ay as useUpdateNotificationSettings, ak as useUpdateRoomSubscriptionSettings, aG as useUser, aC as useUserThreads_experimental } from './room-C97RX2dB.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-TMNECRRU.js";
6
+ } from "./chunk-2A5VCDEZ.js";
7
7
  import {
8
8
  ClientContext,
9
9
  LiveblocksProvider,
@@ -78,7 +78,7 @@ import {
78
78
  useUnsubscribeFromThread,
79
79
  useUpdateNotificationSettings,
80
80
  useUpdateRoomSubscriptionSettings
81
- } from "./chunk-GXPZZIB2.js";
81
+ } from "./chunk-DL5PAL6E.js";
82
82
 
83
83
  // src/index.ts
84
84
  import { detectDupes } from "@liveblocks/core";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseSendAiMessageOptions,\n UseThreadsOptions,\n SendAiMessageOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type { RegisterAiKnowledgeProps, RegisterAiToolProps } from \"./types/ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useGroupInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n useAiChatStatus,\n} from \"./liveblocks\";\n\nexport type { AiChatStatus } from \"./types/ai\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAe5B,SAAS,SAAS,oCAAoC;AAZtD,YAAY,UAAU,aAAa,UAAU;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseSendAiMessageOptions,\n UseThreadsOptions,\n SendAiMessageOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useGroupInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n useAiChatStatus,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAe5B,SAAS,SAAS,oCAAoC;AAZtD,YAAY,UAAU,aAAa,UAAU;","names":[]}
@@ -1257,10 +1257,26 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
1257
1257
  */
1258
1258
  useAiChat(chatId: string): AiChatAsyncResult;
1259
1259
  /**
1260
- * (Private beta) Returns the status of the requested chat.
1260
+ * Returns the status of an AI chat, indicating whether it's idle or actively
1261
+ * generating content. This is a convenience hook that derives its state from
1262
+ * the latest assistant message in the chat.
1263
+ *
1264
+ * Re-renders whenever any of the relevant fields change.
1265
+ *
1266
+ * @param chatId - The ID of the chat to monitor
1267
+ * @returns The current status of the AI chat
1261
1268
  *
1262
1269
  * @example
1263
- * const { status, partType, toolName } = useAiChatStatus("my-chat");
1270
+ * ```tsx
1271
+ * import { useAiChatStatus } from "@liveblocks/react";
1272
+ *
1273
+ * function ChatStatus() {
1274
+ * const { status, partType, toolName } = useAiChatStatus("my-chat");
1275
+ * console.log(status); // "loading" | "idle" | "generating"
1276
+ * console.log(status.partType); // "text" | "tool-invocation" | ...
1277
+ * console.log(status.toolName); // string | undefined
1278
+ * }
1279
+ * ```
1264
1280
  */
1265
1281
  useAiChatStatus(chatId: string, branchId?: MessageId): AiChatStatus;
1266
1282
  suspense: Resolve<LiveblocksContextBundleCommon<M> & SharedContextBundle<U>["suspense"] & {
@@ -1317,10 +1333,26 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
1317
1333
  */
1318
1334
  useAiChat(chatId: string): AiChatAsyncSuccess;
1319
1335
  /**
1320
- * (Private beta) Returns the status of the requested chat.
1336
+ * Returns the status of an AI chat, indicating whether it's idle or actively
1337
+ * generating content. This is a convenience hook that derives its state from
1338
+ * the latest assistant message in the chat.
1339
+ *
1340
+ * Re-renders whenever any of the relevant fields change.
1341
+ *
1342
+ * @param chatId - The ID of the chat to monitor
1343
+ * @returns The current status of the AI chat
1321
1344
  *
1322
1345
  * @example
1323
- * const { status, partType, toolName } = useAiChatStatus("my-chat");
1346
+ * ```tsx
1347
+ * import { useAiChatStatus } from "@liveblocks/react";
1348
+ *
1349
+ * function ChatStatus() {
1350
+ * const { status, partType, toolName } = useAiChatStatus("my-chat");
1351
+ * console.log(status); // "loading" | "idle" | "generating"
1352
+ * console.log(status.partType); // "text" | "tool-invocation" | ...
1353
+ * console.log(status.toolName); // string | undefined
1354
+ * }
1355
+ * ```
1324
1356
  */
1325
1357
  useAiChatStatus(chatId: string, branchId?: MessageId): AiChatStatus;
1326
1358
  }>;
@@ -1571,6 +1603,12 @@ declare function createStore_forNotifications(): {
1571
1603
  updateAssociatedNotification: (newComment: CommentData) => void;
1572
1604
  upsert: (notification: InboxNotificationData) => void;
1573
1605
  };
1606
+ declare function createStore_forUnreadNotificationsCount(): {
1607
+ signal: DerivedSignal<{
1608
+ [k: string]: number;
1609
+ }>;
1610
+ update: (queryKey: InboxNotificationsQueryKey, count: number) => void;
1611
+ };
1574
1612
  declare function createStore_forSubscriptions(updates: ISignal<readonly OptimisticUpdate<BaseMetadata>[]>, threads: ReadonlyThreadDB<BaseMetadata>): {
1575
1613
  signal: DerivedSignal<SubscriptionsByKey>;
1576
1614
  applyDelta: (newSubscriptions: SubscriptionData[], deletedSubscriptions: SubscriptionDeleteInfo[]) => void;
@@ -1627,6 +1665,7 @@ declare class UmbrellaStore<M extends BaseMetadata> {
1627
1665
  readonly subscriptions: ReturnType<typeof createStore_forSubscriptions>;
1628
1666
  readonly roomSubscriptionSettings: ReturnType<typeof createStore_forRoomSubscriptionSettings>;
1629
1667
  readonly historyVersions: ReturnType<typeof createStore_forHistoryVersions>;
1668
+ readonly unreadNotificationsCount: ReturnType<typeof createStore_forUnreadNotificationsCount>;
1630
1669
  readonly permissionHints: ReturnType<typeof createStore_forPermissionHints>;
1631
1670
  readonly notificationSettings: ReturnType<typeof createStore_forNotificationSettings>;
1632
1671
  readonly optimisticUpdates: ReturnType<typeof createStore_forOptimistic<M>>;
@@ -1638,6 +1677,7 @@ declare class UmbrellaStore<M extends BaseMetadata> {
1638
1677
  readonly notifications: DerivedSignal<CleanNotifications>;
1639
1678
  readonly threadSubscriptions: DerivedSignal<CleanThreadSubscriptions>;
1640
1679
  readonly loadingNotifications: DefaultMap<InboxNotificationsQueryKey, LoadableResource<InboxNotificationsAsyncResult>>;
1680
+ readonly unreadNotificationsCount: DefaultMap<InboxNotificationsQueryKey, LoadableResource<UnreadInboxNotificationsCountAsyncResult>>;
1641
1681
  readonly roomSubscriptionSettingsByRoomId: DefaultMap<RoomId, LoadableResource<RoomSubscriptionSettingsAsyncResult>>;
1642
1682
  readonly versionsByRoomId: DefaultMap<RoomId, LoadableResource<HistoryVersionsAsyncResult>>;
1643
1683
  readonly notificationSettings: LoadableResource<NotificationSettingsAsyncResult>;
@@ -1707,6 +1747,7 @@ declare class UmbrellaStore<M extends BaseMetadata> {
1707
1747
  */
1708
1748
  updateRoomSubscriptionSettings(roomId: string, optimisticId: string, settings: Readonly<RoomSubscriptionSettings$1>): void;
1709
1749
  fetchNotificationsDeltaUpdate(signal: AbortSignal): Promise<void>;
1750
+ fetchUnreadNotificationsCount(queryKey: InboxNotificationsQueryKey, signal: AbortSignal): Promise<void>;
1710
1751
  fetchRoomThreadsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
1711
1752
  fetchUserThreadsDeltaUpdate(signal: AbortSignal): Promise<void>;
1712
1753
  fetchRoomVersionsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
@@ -2815,4 +2856,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
2815
2856
  */
2816
2857
  declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
2817
2858
 
2818
- export { useMarkThreadAsResolved as $, createLiveblocksContext as A, useDeleteAllInboxNotifications as B, ClientContext as C, useDeleteInboxNotification as D, useErrorListener as E, useMarkAllInboxNotificationsAsRead as F, type GroupAsyncResult as G, useMarkInboxNotificationAsRead as H, useSyncStatus as I, createRoomContext as J, _RoomProvider as K, LiveblocksProvider as L, type MutationContext as M, _useAddReaction as N, _useBroadcastEvent as O, useCanRedo as P, useCanUndo as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCreateComment as T, type UseSendAiMessageOptions as U, _useCreateThread as V, useDeleteComment as W, _useDeleteThread as X, useEditComment as Y, _useEditThreadMetadata as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, _useUserThreadsSuspense_experimental as a$, useMarkThreadAsUnresolved as a0, useSubscribeToThread as a1, useUnsubscribeFromThread as a2, _useEventListener as a3, useHistory as a4, _useIsInsideRoom as a5, useLostConnectionListener as a6, useMarkThreadAsRead as a7, _useMutation as a8, _useMyPresence as a9, useSendAiMessage as aA, _useUserThreads_experimental as aB, useRoomInfo as aC, useGroupInfo as aD, useUnreadInboxNotificationsCount as aE, _useUser as aF, _useAiChat as aG, _useAiChats as aH, _useAiChatMessages as aI, useAiChatStatus as aJ, type AiChatStatus as aK, _useOtherSuspense as aL, _useOthersSuspense as aM, useOthersConnectionIdsSuspense as aN, _useOthersMappedSuspense as aO, _useSelfSuspense as aP, _useStorageSuspense as aQ, _useThreadsSuspense as aR, useAttachmentUrlSuspense as aS, _useHistoryVersionsSuspense as aT, _useRoomSubscriptionSettingsSuspense as aU, useInboxNotificationsSuspense as aV, useNotificationSettingsSuspense as aW, useRoomInfoSuspense as aX, useGroupInfoSuspense as aY, useUnreadInboxNotificationsCountSuspense as aZ, _useUserSuspense as a_, _useOthersListener as aa, useRedo as ab, useRemoveReaction as ac, _useRoom as ad, useStatus as ae, _useStorageRoot as af, useThreadSubscription as ag, useUndo as ah, _useUpdateMyPresence as ai, useUpdateRoomSubscriptionSettings as aj, useHistoryVersionData as ak, _useOther as al, _useOthers as am, useOthersConnectionIds as an, _useOthersMapped as ao, _useSelf as ap, _useStorage as aq, _useThreads as ar, useAttachmentUrl as as, _useHistoryVersions as at, _useRoomSubscriptionSettings as au, useInboxNotifications as av, useNotificationSettings as aw, useUpdateNotificationSettings as ax, useCreateAiChat as ay, useDeleteAiChat as az, useCreateRoomComment as b, _useAiChatsSuspense as b0, _useAiChatMessagesSuspense as b1, _useAiChatSuspense as b2, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useMarkRoomThreadAsRead as k, useMarkRoomThreadAsResolved as l, useMarkRoomThreadAsUnresolved as m, useMentionSuggestionsCache as n, useRemoveRoomCommentReaction as o, useReportTextEditor as p, useResolveMentionSuggestions as q, useRoomAttachmentUrl as r, useRoomPermissions as s, useRoomThreadSubscription as t, useClientOrNull as u, useYjsProvider as v, type RegisterAiToolProps as w, type UseThreadsOptions as x, RoomContext as y, useClient as z };
2859
+ export { _useEditThreadMetadata as $, type AiChatStatus as A, createLiveblocksContext as B, ClientContext as C, useDeleteAllInboxNotifications as D, useDeleteInboxNotification as E, useErrorListener as F, type GroupAsyncResult as G, useMarkAllInboxNotificationsAsRead as H, useMarkInboxNotificationAsRead as I, useSyncStatus as J, createRoomContext as K, LiveblocksProvider as L, type MutationContext as M, _RoomProvider as N, _useAddReaction as O, _useBroadcastEvent as P, useCanRedo as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCanUndo as T, type UseSendAiMessageOptions as U, useCreateComment as V, _useCreateThread as W, useDeleteComment as X, _useDeleteThread as Y, useEditComment as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, _useUserThreadsSuspense_experimental as a$, useMarkThreadAsResolved as a0, useMarkThreadAsUnresolved as a1, useSubscribeToThread as a2, useUnsubscribeFromThread as a3, _useEventListener as a4, useHistory as a5, _useIsInsideRoom as a6, useLostConnectionListener as a7, useMarkThreadAsRead as a8, _useMutation as a9, useDeleteAiChat as aA, useSendAiMessage as aB, _useUserThreads_experimental as aC, useRoomInfo as aD, useGroupInfo as aE, useUnreadInboxNotificationsCount as aF, _useUser as aG, _useAiChat as aH, _useAiChats as aI, _useAiChatMessages as aJ, useAiChatStatus as aK, _useOtherSuspense as aL, _useOthersSuspense as aM, useOthersConnectionIdsSuspense as aN, _useOthersMappedSuspense as aO, _useSelfSuspense as aP, _useStorageSuspense as aQ, _useThreadsSuspense as aR, useAttachmentUrlSuspense as aS, _useHistoryVersionsSuspense as aT, _useRoomSubscriptionSettingsSuspense as aU, useInboxNotificationsSuspense as aV, useNotificationSettingsSuspense as aW, useRoomInfoSuspense as aX, useGroupInfoSuspense as aY, useUnreadInboxNotificationsCountSuspense as aZ, _useUserSuspense as a_, _useMyPresence as aa, _useOthersListener as ab, useRedo as ac, useRemoveReaction as ad, _useRoom as ae, useStatus as af, _useStorageRoot as ag, useThreadSubscription as ah, useUndo as ai, _useUpdateMyPresence as aj, useUpdateRoomSubscriptionSettings as ak, useHistoryVersionData as al, _useOther as am, _useOthers as an, useOthersConnectionIds as ao, _useOthersMapped as ap, _useSelf as aq, _useStorage as ar, _useThreads as as, useAttachmentUrl as at, _useHistoryVersions as au, _useRoomSubscriptionSettings as av, useInboxNotifications as aw, useNotificationSettings as ax, useUpdateNotificationSettings as ay, useCreateAiChat as az, useCreateRoomComment as b, _useAiChatsSuspense as b0, _useAiChatMessagesSuspense as b1, _useAiChatSuspense as b2, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useMarkRoomThreadAsRead as k, useMarkRoomThreadAsResolved as l, useMarkRoomThreadAsUnresolved as m, useMentionSuggestionsCache as n, useRemoveRoomCommentReaction as o, useReportTextEditor as p, useResolveMentionSuggestions as q, useRoomAttachmentUrl as r, useRoomPermissions as s, useRoomThreadSubscription as t, useClientOrNull as u, useYjsProvider as v, type RegisterAiToolProps as w, type UseThreadsOptions as x, RoomContext as y, useClient as z };
@@ -1257,10 +1257,26 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
1257
1257
  */
1258
1258
  useAiChat(chatId: string): AiChatAsyncResult;
1259
1259
  /**
1260
- * (Private beta) Returns the status of the requested chat.
1260
+ * Returns the status of an AI chat, indicating whether it's idle or actively
1261
+ * generating content. This is a convenience hook that derives its state from
1262
+ * the latest assistant message in the chat.
1263
+ *
1264
+ * Re-renders whenever any of the relevant fields change.
1265
+ *
1266
+ * @param chatId - The ID of the chat to monitor
1267
+ * @returns The current status of the AI chat
1261
1268
  *
1262
1269
  * @example
1263
- * const { status, partType, toolName } = useAiChatStatus("my-chat");
1270
+ * ```tsx
1271
+ * import { useAiChatStatus } from "@liveblocks/react";
1272
+ *
1273
+ * function ChatStatus() {
1274
+ * const { status, partType, toolName } = useAiChatStatus("my-chat");
1275
+ * console.log(status); // "loading" | "idle" | "generating"
1276
+ * console.log(status.partType); // "text" | "tool-invocation" | ...
1277
+ * console.log(status.toolName); // string | undefined
1278
+ * }
1279
+ * ```
1264
1280
  */
1265
1281
  useAiChatStatus(chatId: string, branchId?: MessageId): AiChatStatus;
1266
1282
  suspense: Resolve<LiveblocksContextBundleCommon<M> & SharedContextBundle<U>["suspense"] & {
@@ -1317,10 +1333,26 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
1317
1333
  */
1318
1334
  useAiChat(chatId: string): AiChatAsyncSuccess;
1319
1335
  /**
1320
- * (Private beta) Returns the status of the requested chat.
1336
+ * Returns the status of an AI chat, indicating whether it's idle or actively
1337
+ * generating content. This is a convenience hook that derives its state from
1338
+ * the latest assistant message in the chat.
1339
+ *
1340
+ * Re-renders whenever any of the relevant fields change.
1341
+ *
1342
+ * @param chatId - The ID of the chat to monitor
1343
+ * @returns The current status of the AI chat
1321
1344
  *
1322
1345
  * @example
1323
- * const { status, partType, toolName } = useAiChatStatus("my-chat");
1346
+ * ```tsx
1347
+ * import { useAiChatStatus } from "@liveblocks/react";
1348
+ *
1349
+ * function ChatStatus() {
1350
+ * const { status, partType, toolName } = useAiChatStatus("my-chat");
1351
+ * console.log(status); // "loading" | "idle" | "generating"
1352
+ * console.log(status.partType); // "text" | "tool-invocation" | ...
1353
+ * console.log(status.toolName); // string | undefined
1354
+ * }
1355
+ * ```
1324
1356
  */
1325
1357
  useAiChatStatus(chatId: string, branchId?: MessageId): AiChatStatus;
1326
1358
  }>;
@@ -1571,6 +1603,12 @@ declare function createStore_forNotifications(): {
1571
1603
  updateAssociatedNotification: (newComment: CommentData) => void;
1572
1604
  upsert: (notification: InboxNotificationData) => void;
1573
1605
  };
1606
+ declare function createStore_forUnreadNotificationsCount(): {
1607
+ signal: DerivedSignal<{
1608
+ [k: string]: number;
1609
+ }>;
1610
+ update: (queryKey: InboxNotificationsQueryKey, count: number) => void;
1611
+ };
1574
1612
  declare function createStore_forSubscriptions(updates: ISignal<readonly OptimisticUpdate<BaseMetadata>[]>, threads: ReadonlyThreadDB<BaseMetadata>): {
1575
1613
  signal: DerivedSignal<SubscriptionsByKey>;
1576
1614
  applyDelta: (newSubscriptions: SubscriptionData[], deletedSubscriptions: SubscriptionDeleteInfo[]) => void;
@@ -1627,6 +1665,7 @@ declare class UmbrellaStore<M extends BaseMetadata> {
1627
1665
  readonly subscriptions: ReturnType<typeof createStore_forSubscriptions>;
1628
1666
  readonly roomSubscriptionSettings: ReturnType<typeof createStore_forRoomSubscriptionSettings>;
1629
1667
  readonly historyVersions: ReturnType<typeof createStore_forHistoryVersions>;
1668
+ readonly unreadNotificationsCount: ReturnType<typeof createStore_forUnreadNotificationsCount>;
1630
1669
  readonly permissionHints: ReturnType<typeof createStore_forPermissionHints>;
1631
1670
  readonly notificationSettings: ReturnType<typeof createStore_forNotificationSettings>;
1632
1671
  readonly optimisticUpdates: ReturnType<typeof createStore_forOptimistic<M>>;
@@ -1638,6 +1677,7 @@ declare class UmbrellaStore<M extends BaseMetadata> {
1638
1677
  readonly notifications: DerivedSignal<CleanNotifications>;
1639
1678
  readonly threadSubscriptions: DerivedSignal<CleanThreadSubscriptions>;
1640
1679
  readonly loadingNotifications: DefaultMap<InboxNotificationsQueryKey, LoadableResource<InboxNotificationsAsyncResult>>;
1680
+ readonly unreadNotificationsCount: DefaultMap<InboxNotificationsQueryKey, LoadableResource<UnreadInboxNotificationsCountAsyncResult>>;
1641
1681
  readonly roomSubscriptionSettingsByRoomId: DefaultMap<RoomId, LoadableResource<RoomSubscriptionSettingsAsyncResult>>;
1642
1682
  readonly versionsByRoomId: DefaultMap<RoomId, LoadableResource<HistoryVersionsAsyncResult>>;
1643
1683
  readonly notificationSettings: LoadableResource<NotificationSettingsAsyncResult>;
@@ -1707,6 +1747,7 @@ declare class UmbrellaStore<M extends BaseMetadata> {
1707
1747
  */
1708
1748
  updateRoomSubscriptionSettings(roomId: string, optimisticId: string, settings: Readonly<RoomSubscriptionSettings$1>): void;
1709
1749
  fetchNotificationsDeltaUpdate(signal: AbortSignal): Promise<void>;
1750
+ fetchUnreadNotificationsCount(queryKey: InboxNotificationsQueryKey, signal: AbortSignal): Promise<void>;
1710
1751
  fetchRoomThreadsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
1711
1752
  fetchUserThreadsDeltaUpdate(signal: AbortSignal): Promise<void>;
1712
1753
  fetchRoomVersionsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
@@ -2815,4 +2856,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
2815
2856
  */
2816
2857
  declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
2817
2858
 
2818
- export { useMarkThreadAsResolved as $, createLiveblocksContext as A, useDeleteAllInboxNotifications as B, ClientContext as C, useDeleteInboxNotification as D, useErrorListener as E, useMarkAllInboxNotificationsAsRead as F, type GroupAsyncResult as G, useMarkInboxNotificationAsRead as H, useSyncStatus as I, createRoomContext as J, _RoomProvider as K, LiveblocksProvider as L, type MutationContext as M, _useAddReaction as N, _useBroadcastEvent as O, useCanRedo as P, useCanUndo as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCreateComment as T, type UseSendAiMessageOptions as U, _useCreateThread as V, useDeleteComment as W, _useDeleteThread as X, useEditComment as Y, _useEditThreadMetadata as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, _useUserThreadsSuspense_experimental as a$, useMarkThreadAsUnresolved as a0, useSubscribeToThread as a1, useUnsubscribeFromThread as a2, _useEventListener as a3, useHistory as a4, _useIsInsideRoom as a5, useLostConnectionListener as a6, useMarkThreadAsRead as a7, _useMutation as a8, _useMyPresence as a9, useSendAiMessage as aA, _useUserThreads_experimental as aB, useRoomInfo as aC, useGroupInfo as aD, useUnreadInboxNotificationsCount as aE, _useUser as aF, _useAiChat as aG, _useAiChats as aH, _useAiChatMessages as aI, useAiChatStatus as aJ, type AiChatStatus as aK, _useOtherSuspense as aL, _useOthersSuspense as aM, useOthersConnectionIdsSuspense as aN, _useOthersMappedSuspense as aO, _useSelfSuspense as aP, _useStorageSuspense as aQ, _useThreadsSuspense as aR, useAttachmentUrlSuspense as aS, _useHistoryVersionsSuspense as aT, _useRoomSubscriptionSettingsSuspense as aU, useInboxNotificationsSuspense as aV, useNotificationSettingsSuspense as aW, useRoomInfoSuspense as aX, useGroupInfoSuspense as aY, useUnreadInboxNotificationsCountSuspense as aZ, _useUserSuspense as a_, _useOthersListener as aa, useRedo as ab, useRemoveReaction as ac, _useRoom as ad, useStatus as ae, _useStorageRoot as af, useThreadSubscription as ag, useUndo as ah, _useUpdateMyPresence as ai, useUpdateRoomSubscriptionSettings as aj, useHistoryVersionData as ak, _useOther as al, _useOthers as am, useOthersConnectionIds as an, _useOthersMapped as ao, _useSelf as ap, _useStorage as aq, _useThreads as ar, useAttachmentUrl as as, _useHistoryVersions as at, _useRoomSubscriptionSettings as au, useInboxNotifications as av, useNotificationSettings as aw, useUpdateNotificationSettings as ax, useCreateAiChat as ay, useDeleteAiChat as az, useCreateRoomComment as b, _useAiChatsSuspense as b0, _useAiChatMessagesSuspense as b1, _useAiChatSuspense as b2, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useMarkRoomThreadAsRead as k, useMarkRoomThreadAsResolved as l, useMarkRoomThreadAsUnresolved as m, useMentionSuggestionsCache as n, useRemoveRoomCommentReaction as o, useReportTextEditor as p, useResolveMentionSuggestions as q, useRoomAttachmentUrl as r, useRoomPermissions as s, useRoomThreadSubscription as t, useClientOrNull as u, useYjsProvider as v, type RegisterAiToolProps as w, type UseThreadsOptions as x, RoomContext as y, useClient as z };
2859
+ export { _useEditThreadMetadata as $, type AiChatStatus as A, createLiveblocksContext as B, ClientContext as C, useDeleteAllInboxNotifications as D, useDeleteInboxNotification as E, useErrorListener as F, type GroupAsyncResult as G, useMarkAllInboxNotificationsAsRead as H, useMarkInboxNotificationAsRead as I, useSyncStatus as J, createRoomContext as K, LiveblocksProvider as L, type MutationContext as M, _RoomProvider as N, _useAddReaction as O, _useBroadcastEvent as P, useCanRedo as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCanUndo as T, type UseSendAiMessageOptions as U, useCreateComment as V, _useCreateThread as W, useDeleteComment as X, _useDeleteThread as Y, useEditComment as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, _useUserThreadsSuspense_experimental as a$, useMarkThreadAsResolved as a0, useMarkThreadAsUnresolved as a1, useSubscribeToThread as a2, useUnsubscribeFromThread as a3, _useEventListener as a4, useHistory as a5, _useIsInsideRoom as a6, useLostConnectionListener as a7, useMarkThreadAsRead as a8, _useMutation as a9, useDeleteAiChat as aA, useSendAiMessage as aB, _useUserThreads_experimental as aC, useRoomInfo as aD, useGroupInfo as aE, useUnreadInboxNotificationsCount as aF, _useUser as aG, _useAiChat as aH, _useAiChats as aI, _useAiChatMessages as aJ, useAiChatStatus as aK, _useOtherSuspense as aL, _useOthersSuspense as aM, useOthersConnectionIdsSuspense as aN, _useOthersMappedSuspense as aO, _useSelfSuspense as aP, _useStorageSuspense as aQ, _useThreadsSuspense as aR, useAttachmentUrlSuspense as aS, _useHistoryVersionsSuspense as aT, _useRoomSubscriptionSettingsSuspense as aU, useInboxNotificationsSuspense as aV, useNotificationSettingsSuspense as aW, useRoomInfoSuspense as aX, useGroupInfoSuspense as aY, useUnreadInboxNotificationsCountSuspense as aZ, _useUserSuspense as a_, _useMyPresence as aa, _useOthersListener as ab, useRedo as ac, useRemoveReaction as ad, _useRoom as ae, useStatus as af, _useStorageRoot as ag, useThreadSubscription as ah, useUndo as ai, _useUpdateMyPresence as aj, useUpdateRoomSubscriptionSettings as ak, useHistoryVersionData as al, _useOther as am, _useOthers as an, useOthersConnectionIds as ao, _useOthersMapped as ap, _useSelf as aq, _useStorage as ar, _useThreads as as, useAttachmentUrl as at, _useHistoryVersions as au, _useRoomSubscriptionSettings as av, useInboxNotifications as aw, useNotificationSettings as ax, useUpdateNotificationSettings as ay, useCreateAiChat as az, useCreateRoomComment as b, _useAiChatsSuspense as b0, _useAiChatMessagesSuspense as b1, _useAiChatSuspense as b2, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useMarkRoomThreadAsRead as k, useMarkRoomThreadAsResolved as l, useMarkRoomThreadAsUnresolved as m, useMentionSuggestionsCache as n, useRemoveRoomCommentReaction as o, useReportTextEditor as p, useResolveMentionSuggestions as q, useRoomAttachmentUrl as r, useRoomPermissions as s, useRoomThreadSubscription as t, useClientOrNull as u, useYjsProvider as v, type RegisterAiToolProps as w, type UseThreadsOptions as x, RoomContext as y, useClient as z };
package/dist/suspense.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkX3KI55GFcjs = require('./chunk-X3KI55GF.cjs');
6
+ var _chunk4ZS65AZVcjs = require('./chunk-4ZS65AZV.cjs');
7
7
 
8
8
 
9
9
 
@@ -75,12 +75,12 @@ var _chunkX3KI55GFcjs = require('./chunk-X3KI55GF.cjs');
75
75
 
76
76
 
77
77
 
78
- var _chunk45BFK66Kcjs = require('./chunk-45BFK66K.cjs');
78
+ var _chunkOYVPE6CVcjs = require('./chunk-OYVPE6CV.cjs');
79
79
 
80
80
  // src/suspense.ts
81
81
  var _core = require('@liveblocks/core');
82
82
  var _client = require('@liveblocks/client');
83
- _core.detectDupes.call(void 0, _chunkX3KI55GFcjs.PKG_NAME, _chunkX3KI55GFcjs.PKG_VERSION, _chunkX3KI55GFcjs.PKG_FORMAT);
83
+ _core.detectDupes.call(void 0, _chunk4ZS65AZVcjs.PKG_NAME, _chunk4ZS65AZVcjs.PKG_VERSION, _chunk4ZS65AZVcjs.PKG_FORMAT);
84
84
 
85
85
 
86
86
 
@@ -155,5 +155,5 @@ _core.detectDupes.call(void 0, _chunkX3KI55GFcjs.PKG_NAME, _chunkX3KI55GFcjs.PKG
155
155
 
156
156
 
157
157
 
158
- exports.ClientContext = _chunk45BFK66Kcjs.ClientContext; exports.ClientSideSuspense = _chunkX3KI55GFcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunk45BFK66Kcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunk45BFK66Kcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunk45BFK66Kcjs.RegisterAiTool; exports.RoomContext = _chunk45BFK66Kcjs.RoomContext; exports.RoomProvider = _chunk45BFK66Kcjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunk45BFK66Kcjs._useAddReaction; exports.useAiChat = _chunk45BFK66Kcjs._useAiChatSuspense; exports.useAiChatMessages = _chunk45BFK66Kcjs._useAiChatMessagesSuspense; exports.useAiChatStatus = _chunk45BFK66Kcjs.useAiChatStatus; exports.useAiChats = _chunk45BFK66Kcjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunk45BFK66Kcjs.useAttachmentUrlSuspense; exports.useBroadcastEvent = _chunk45BFK66Kcjs._useBroadcastEvent; exports.useCanRedo = _chunk45BFK66Kcjs.useCanRedo; exports.useCanUndo = _chunk45BFK66Kcjs.useCanUndo; exports.useClient = _chunk45BFK66Kcjs.useClient; exports.useCreateAiChat = _chunk45BFK66Kcjs.useCreateAiChat; exports.useCreateComment = _chunk45BFK66Kcjs.useCreateComment; exports.useCreateThread = _chunk45BFK66Kcjs._useCreateThread; exports.useDeleteAiChat = _chunk45BFK66Kcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunk45BFK66Kcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunk45BFK66Kcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunk45BFK66Kcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunk45BFK66Kcjs._useDeleteThread; exports.useEditComment = _chunk45BFK66Kcjs.useEditComment; exports.useEditThreadMetadata = _chunk45BFK66Kcjs._useEditThreadMetadata; exports.useErrorListener = _chunk45BFK66Kcjs.useErrorListener; exports.useEventListener = _chunk45BFK66Kcjs._useEventListener; exports.useGroupInfo = _chunk45BFK66Kcjs.useGroupInfoSuspense; exports.useHistory = _chunk45BFK66Kcjs.useHistory; exports.useHistoryVersions = _chunk45BFK66Kcjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunk45BFK66Kcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunk45BFK66Kcjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunk45BFK66Kcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunk45BFK66Kcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunk45BFK66Kcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunk45BFK66Kcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunk45BFK66Kcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunk45BFK66Kcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunk45BFK66Kcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunk45BFK66Kcjs._useMutation; exports.useMyPresence = _chunk45BFK66Kcjs._useMyPresence; exports.useNotificationSettings = _chunk45BFK66Kcjs.useNotificationSettingsSuspense; exports.useOther = _chunk45BFK66Kcjs._useOtherSuspense; exports.useOthers = _chunk45BFK66Kcjs._useOthersSuspense; exports.useOthersConnectionIds = _chunk45BFK66Kcjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunk45BFK66Kcjs._useOthersListener; exports.useOthersMapped = _chunk45BFK66Kcjs._useOthersMappedSuspense; exports.useRedo = _chunk45BFK66Kcjs.useRedo; exports.useRemoveReaction = _chunk45BFK66Kcjs.useRemoveReaction; exports.useRoom = _chunk45BFK66Kcjs._useRoom; exports.useRoomInfo = _chunk45BFK66Kcjs.useRoomInfoSuspense; exports.useRoomSubscriptionSettings = _chunk45BFK66Kcjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunk45BFK66Kcjs._useSelfSuspense; exports.useSendAiMessage = _chunk45BFK66Kcjs.useSendAiMessage; exports.useStatus = _chunk45BFK66Kcjs.useStatus; exports.useStorage = _chunk45BFK66Kcjs._useStorageSuspense; exports.useStorageRoot = _chunk45BFK66Kcjs._useStorageRoot; exports.useSubscribeToThread = _chunk45BFK66Kcjs.useSubscribeToThread; exports.useSyncStatus = _chunk45BFK66Kcjs.useSyncStatus; exports.useThreadSubscription = _chunk45BFK66Kcjs.useThreadSubscription; exports.useThreads = _chunk45BFK66Kcjs._useThreadsSuspense; exports.useUndo = _chunk45BFK66Kcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunk45BFK66Kcjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunk45BFK66Kcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunk45BFK66Kcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunk45BFK66Kcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunk45BFK66Kcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunk45BFK66Kcjs._useUserSuspense; exports.useUserThreads_experimental = _chunk45BFK66Kcjs._useUserThreadsSuspense_experimental;
158
+ exports.ClientContext = _chunkOYVPE6CVcjs.ClientContext; exports.ClientSideSuspense = _chunk4ZS65AZVcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkOYVPE6CVcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkOYVPE6CVcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkOYVPE6CVcjs.RegisterAiTool; exports.RoomContext = _chunkOYVPE6CVcjs.RoomContext; exports.RoomProvider = _chunkOYVPE6CVcjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkOYVPE6CVcjs._useAddReaction; exports.useAiChat = _chunkOYVPE6CVcjs._useAiChatSuspense; exports.useAiChatMessages = _chunkOYVPE6CVcjs._useAiChatMessagesSuspense; exports.useAiChatStatus = _chunkOYVPE6CVcjs.useAiChatStatus; exports.useAiChats = _chunkOYVPE6CVcjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunkOYVPE6CVcjs.useAttachmentUrlSuspense; exports.useBroadcastEvent = _chunkOYVPE6CVcjs._useBroadcastEvent; exports.useCanRedo = _chunkOYVPE6CVcjs.useCanRedo; exports.useCanUndo = _chunkOYVPE6CVcjs.useCanUndo; exports.useClient = _chunkOYVPE6CVcjs.useClient; exports.useCreateAiChat = _chunkOYVPE6CVcjs.useCreateAiChat; exports.useCreateComment = _chunkOYVPE6CVcjs.useCreateComment; exports.useCreateThread = _chunkOYVPE6CVcjs._useCreateThread; exports.useDeleteAiChat = _chunkOYVPE6CVcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkOYVPE6CVcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkOYVPE6CVcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkOYVPE6CVcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkOYVPE6CVcjs._useDeleteThread; exports.useEditComment = _chunkOYVPE6CVcjs.useEditComment; exports.useEditThreadMetadata = _chunkOYVPE6CVcjs._useEditThreadMetadata; exports.useErrorListener = _chunkOYVPE6CVcjs.useErrorListener; exports.useEventListener = _chunkOYVPE6CVcjs._useEventListener; exports.useGroupInfo = _chunkOYVPE6CVcjs.useGroupInfoSuspense; exports.useHistory = _chunkOYVPE6CVcjs.useHistory; exports.useHistoryVersions = _chunkOYVPE6CVcjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkOYVPE6CVcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkOYVPE6CVcjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkOYVPE6CVcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkOYVPE6CVcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkOYVPE6CVcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkOYVPE6CVcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkOYVPE6CVcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkOYVPE6CVcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkOYVPE6CVcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkOYVPE6CVcjs._useMutation; exports.useMyPresence = _chunkOYVPE6CVcjs._useMyPresence; exports.useNotificationSettings = _chunkOYVPE6CVcjs.useNotificationSettingsSuspense; exports.useOther = _chunkOYVPE6CVcjs._useOtherSuspense; exports.useOthers = _chunkOYVPE6CVcjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkOYVPE6CVcjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkOYVPE6CVcjs._useOthersListener; exports.useOthersMapped = _chunkOYVPE6CVcjs._useOthersMappedSuspense; exports.useRedo = _chunkOYVPE6CVcjs.useRedo; exports.useRemoveReaction = _chunkOYVPE6CVcjs.useRemoveReaction; exports.useRoom = _chunkOYVPE6CVcjs._useRoom; exports.useRoomInfo = _chunkOYVPE6CVcjs.useRoomInfoSuspense; exports.useRoomSubscriptionSettings = _chunkOYVPE6CVcjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunkOYVPE6CVcjs._useSelfSuspense; exports.useSendAiMessage = _chunkOYVPE6CVcjs.useSendAiMessage; exports.useStatus = _chunkOYVPE6CVcjs.useStatus; exports.useStorage = _chunkOYVPE6CVcjs._useStorageSuspense; exports.useStorageRoot = _chunkOYVPE6CVcjs._useStorageRoot; exports.useSubscribeToThread = _chunkOYVPE6CVcjs.useSubscribeToThread; exports.useSyncStatus = _chunkOYVPE6CVcjs.useSyncStatus; exports.useThreadSubscription = _chunkOYVPE6CVcjs.useThreadSubscription; exports.useThreads = _chunkOYVPE6CVcjs._useThreadsSuspense; exports.useUndo = _chunkOYVPE6CVcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkOYVPE6CVcjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunkOYVPE6CVcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkOYVPE6CVcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkOYVPE6CVcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkOYVPE6CVcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunkOYVPE6CVcjs._useUserSuspense; exports.useUserThreads_experimental = _chunkOYVPE6CVcjs._useUserThreadsSuspense_experimental;
159
159
  //# sourceMappingURL=suspense.cjs.map
@@ -1,5 +1,5 @@
1
1
  export { ClientSideSuspense, RegisterAiKnowledge, RegisterAiTool } from './index.cjs';
2
- export { aK as AiChatStatus, 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, b2 as useAiChat, b1 as useAiChatMessages, aJ as useAiChatStatus, b0 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, aY as useGroupInfo, a4 as useHistory, 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, aX 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, aZ as useUnreadInboxNotificationsCount, a2 as useUnsubscribeFromThread, ai as useUpdateMyPresence, ax as useUpdateNotificationSettings, aj as useUpdateRoomSubscriptionSettings, a_ as useUser, a$ as useUserThreads_experimental } from './room-DSJuooXd.cjs';
2
+ export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, O as useAddReaction, b2 as useAiChat, b1 as useAiChatMessages, aK as useAiChatStatus, b0 as useAiChats, aS as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, az as useCreateAiChat, V as useCreateComment, W as useCreateThread, aA as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, $ as useEditThreadMetadata, F as useErrorListener, a4 as useEventListener, aY as useGroupInfo, a5 as useHistory, aT as useHistoryVersions, _ as useInboxNotificationThread, aV as useInboxNotifications, a6 as useIsInsideRoom, a7 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a8 as useMarkThreadAsRead, a0 as useMarkThreadAsResolved, a1 as useMarkThreadAsUnresolved, a9 as useMutation, aa as useMyPresence, aW as useNotificationSettings, aL as useOther, aM as useOthers, aN as useOthersConnectionIds, ab as useOthersListener, aO as useOthersMapped, ac as useRedo, ad as useRemoveReaction, ae as useRoom, aX as useRoomInfo, aU as useRoomSubscriptionSettings, aP as useSelf, aB as useSendAiMessage, af as useStatus, aQ as useStorage, ag as useStorageRoot, a2 as useSubscribeToThread, J as useSyncStatus, ah as useThreadSubscription, aR as useThreads, ai as useUndo, aZ as useUnreadInboxNotificationsCount, a3 as useUnsubscribeFromThread, aj as useUpdateMyPresence, ay as useUpdateNotificationSettings, ak as useUpdateRoomSubscriptionSettings, a_ as useUser, a$ as useUserThreads_experimental } from './room-C97RX2dB.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 { aK as AiChatStatus, 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, b2 as useAiChat, b1 as useAiChatMessages, aJ as useAiChatStatus, b0 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, aY as useGroupInfo, a4 as useHistory, 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, aX 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, aZ as useUnreadInboxNotificationsCount, a2 as useUnsubscribeFromThread, ai as useUpdateMyPresence, ax as useUpdateNotificationSettings, aj as useUpdateRoomSubscriptionSettings, a_ as useUser, a$ as useUserThreads_experimental } from './room-DSJuooXd.js';
2
+ export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, O as useAddReaction, b2 as useAiChat, b1 as useAiChatMessages, aK as useAiChatStatus, b0 as useAiChats, aS as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, az as useCreateAiChat, V as useCreateComment, W as useCreateThread, aA as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, $ as useEditThreadMetadata, F as useErrorListener, a4 as useEventListener, aY as useGroupInfo, a5 as useHistory, aT as useHistoryVersions, _ as useInboxNotificationThread, aV as useInboxNotifications, a6 as useIsInsideRoom, a7 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a8 as useMarkThreadAsRead, a0 as useMarkThreadAsResolved, a1 as useMarkThreadAsUnresolved, a9 as useMutation, aa as useMyPresence, aW as useNotificationSettings, aL as useOther, aM as useOthers, aN as useOthersConnectionIds, ab as useOthersListener, aO as useOthersMapped, ac as useRedo, ad as useRemoveReaction, ae as useRoom, aX as useRoomInfo, aU as useRoomSubscriptionSettings, aP as useSelf, aB as useSendAiMessage, af as useStatus, aQ as useStorage, ag as useStorageRoot, a2 as useSubscribeToThread, J as useSyncStatus, ah as useThreadSubscription, aR as useThreads, ai as useUndo, aZ as useUnreadInboxNotificationsCount, a3 as useUnsubscribeFromThread, aj as useUpdateMyPresence, ay as useUpdateNotificationSettings, ak as useUpdateRoomSubscriptionSettings, a_ as useUser, a$ as useUserThreads_experimental } from './room-C97RX2dB.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-TMNECRRU.js";
6
+ } from "./chunk-2A5VCDEZ.js";
7
7
  import {
8
8
  ClientContext,
9
9
  LiveblocksProvider,
@@ -75,7 +75,7 @@ import {
75
75
  useUnsubscribeFromThread,
76
76
  useUpdateNotificationSettings,
77
77
  useUpdateRoomSubscriptionSettings
78
- } from "./chunk-GXPZZIB2.js";
78
+ } from "./chunk-DL5PAL6E.js";
79
79
 
80
80
  // src/suspense.ts
81
81
  import { detectDupes } from "@liveblocks/core";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liveblocks/react",
3
- "version": "3.8.0-next1",
3
+ "version": "3.8.0-next3",
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.8.0-next1",
65
- "@liveblocks/core": "3.8.0-next1"
64
+ "@liveblocks/client": "3.8.0-next3",
65
+ "@liveblocks/core": "3.8.0-next3"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "@types/react": "*",