@liveblocks/react 2.24.1 → 2.25.0-aiprivatebeta1

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 _chunk2C72TPGIcjs = require('./chunk-2C72TPGI.cjs');
6
+ var _chunkGSA4MPRGcjs = require('./chunk-GSA4MPRG.cjs');
7
7
 
8
8
 
9
9
 
@@ -72,12 +72,20 @@ var _chunk2C72TPGIcjs = require('./chunk-2C72TPGI.cjs');
72
72
 
73
73
 
74
74
 
75
- var _chunk32HQP5F6cjs = require('./chunk-32HQP5F6.cjs');
75
+
76
+
77
+
78
+
79
+ var _chunkZGVKI7OMcjs = require('./chunk-ZGVKI7OM.cjs');
76
80
 
77
81
  // src/index.ts
78
82
  var _core = require('@liveblocks/core');
79
83
  var _client = require('@liveblocks/client');
80
- _core.detectDupes.call(void 0, _chunk2C72TPGIcjs.PKG_NAME, _chunk2C72TPGIcjs.PKG_VERSION, _chunk2C72TPGIcjs.PKG_FORMAT);
84
+ _core.detectDupes.call(void 0, _chunkGSA4MPRGcjs.PKG_NAME, _chunkGSA4MPRGcjs.PKG_VERSION, _chunkGSA4MPRGcjs.PKG_FORMAT);
85
+
86
+
87
+
88
+
81
89
 
82
90
 
83
91
 
@@ -149,5 +157,5 @@ _core.detectDupes.call(void 0, _chunk2C72TPGIcjs.PKG_NAME, _chunk2C72TPGIcjs.PKG
149
157
 
150
158
 
151
159
 
152
- exports.ClientContext = _chunk32HQP5F6cjs.ClientContext; exports.ClientSideSuspense = _chunk2C72TPGIcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunk32HQP5F6cjs.LiveblocksProvider; exports.RoomContext = _chunk32HQP5F6cjs.RoomContext; exports.RoomProvider = _chunk32HQP5F6cjs._RoomProvider; exports.createLiveblocksContext = _chunk32HQP5F6cjs.createLiveblocksContext; exports.createRoomContext = _chunk32HQP5F6cjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunk32HQP5F6cjs._useAddReaction; exports.useAttachmentUrl = _chunk32HQP5F6cjs.useAttachmentUrl; exports.useBatch = _chunk32HQP5F6cjs.useBatch; exports.useBroadcastEvent = _chunk32HQP5F6cjs._useBroadcastEvent; exports.useCanRedo = _chunk32HQP5F6cjs.useCanRedo; exports.useCanUndo = _chunk32HQP5F6cjs.useCanUndo; exports.useClient = _chunk32HQP5F6cjs.useClient; exports.useCreateComment = _chunk32HQP5F6cjs.useCreateComment; exports.useCreateThread = _chunk32HQP5F6cjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunk32HQP5F6cjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunk32HQP5F6cjs.useDeleteComment; exports.useDeleteInboxNotification = _chunk32HQP5F6cjs.useDeleteInboxNotification; exports.useDeleteThread = _chunk32HQP5F6cjs._useDeleteThread; exports.useEditComment = _chunk32HQP5F6cjs.useEditComment; exports.useEditThreadMetadata = _chunk32HQP5F6cjs._useEditThreadMetadata; exports.useErrorListener = _chunk32HQP5F6cjs.useErrorListener; exports.useEventListener = _chunk32HQP5F6cjs._useEventListener; exports.useHistory = _chunk32HQP5F6cjs.useHistory; exports.useHistoryVersionData = _chunk32HQP5F6cjs.useHistoryVersionData; exports.useHistoryVersions = _chunk32HQP5F6cjs._useHistoryVersions; exports.useInboxNotificationThread = _chunk32HQP5F6cjs._useInboxNotificationThread; exports.useInboxNotifications = _chunk32HQP5F6cjs.useInboxNotifications; exports.useIsInsideRoom = _chunk32HQP5F6cjs._useIsInsideRoom; exports.useLostConnectionListener = _chunk32HQP5F6cjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunk32HQP5F6cjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunk32HQP5F6cjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunk32HQP5F6cjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunk32HQP5F6cjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunk32HQP5F6cjs.useMarkThreadAsUnresolved; exports.useMutation = _chunk32HQP5F6cjs._useMutation; exports.useMyPresence = _chunk32HQP5F6cjs._useMyPresence; exports.useNotificationSettings = _chunk32HQP5F6cjs.useNotificationSettings; exports.useOther = _chunk32HQP5F6cjs._useOther; exports.useOthers = _chunk32HQP5F6cjs._useOthers; exports.useOthersConnectionIds = _chunk32HQP5F6cjs.useOthersConnectionIds; exports.useOthersListener = _chunk32HQP5F6cjs._useOthersListener; exports.useOthersMapped = _chunk32HQP5F6cjs._useOthersMapped; exports.useRedo = _chunk32HQP5F6cjs.useRedo; exports.useRemoveReaction = _chunk32HQP5F6cjs.useRemoveReaction; exports.useRoom = _chunk32HQP5F6cjs._useRoom; exports.useRoomInfo = _chunk32HQP5F6cjs.useRoomInfo; exports.useRoomNotificationSettings = _chunk32HQP5F6cjs._useRoomNotificationSettings; exports.useRoomSubscriptionSettings = _chunk32HQP5F6cjs._useRoomSubscriptionSettings; exports.useSelf = _chunk32HQP5F6cjs._useSelf; exports.useStatus = _chunk32HQP5F6cjs.useStatus; exports.useStorage = _chunk32HQP5F6cjs._useStorage; exports.useStorageRoot = _chunk32HQP5F6cjs._useStorageRoot; exports.useStorageStatus = _chunk32HQP5F6cjs.useStorageStatus; exports.useSubscribeToThread = _chunk32HQP5F6cjs.useSubscribeToThread; exports.useSyncStatus = _chunk32HQP5F6cjs.useSyncStatus; exports.useThreadSubscription = _chunk32HQP5F6cjs.useThreadSubscription; exports.useThreads = _chunk32HQP5F6cjs._useThreads; exports.useUndo = _chunk32HQP5F6cjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunk32HQP5F6cjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunk32HQP5F6cjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunk32HQP5F6cjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunk32HQP5F6cjs.useUpdateNotificationSettings; exports.useUpdateRoomNotificationSettings = _chunk32HQP5F6cjs.useUpdateRoomNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunk32HQP5F6cjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunk32HQP5F6cjs._useUser; exports.useUserThreads_experimental = _chunk32HQP5F6cjs._useUserThreads_experimental;
160
+ exports.ClientContext = _chunkZGVKI7OMcjs.ClientContext; exports.ClientSideSuspense = _chunkGSA4MPRGcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkZGVKI7OMcjs.LiveblocksProvider; exports.RoomContext = _chunkZGVKI7OMcjs.RoomContext; exports.RoomProvider = _chunkZGVKI7OMcjs._RoomProvider; exports.createLiveblocksContext = _chunkZGVKI7OMcjs.createLiveblocksContext; exports.createRoomContext = _chunkZGVKI7OMcjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkZGVKI7OMcjs._useAddReaction; exports.useAiChatMessages = _chunkZGVKI7OMcjs._useAiChatMessages; exports.useAiChats = _chunkZGVKI7OMcjs._useAiChats; exports.useAttachmentUrl = _chunkZGVKI7OMcjs.useAttachmentUrl; exports.useBatch = _chunkZGVKI7OMcjs.useBatch; exports.useBroadcastEvent = _chunkZGVKI7OMcjs._useBroadcastEvent; exports.useCanRedo = _chunkZGVKI7OMcjs.useCanRedo; exports.useCanUndo = _chunkZGVKI7OMcjs.useCanUndo; exports.useClient = _chunkZGVKI7OMcjs.useClient; exports.useCreateAiChat = _chunkZGVKI7OMcjs.useCreateAiChat; exports.useCreateComment = _chunkZGVKI7OMcjs.useCreateComment; exports.useCreateThread = _chunkZGVKI7OMcjs._useCreateThread; exports.useDeleteAiChat = _chunkZGVKI7OMcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkZGVKI7OMcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkZGVKI7OMcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkZGVKI7OMcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkZGVKI7OMcjs._useDeleteThread; exports.useEditComment = _chunkZGVKI7OMcjs.useEditComment; exports.useEditThreadMetadata = _chunkZGVKI7OMcjs._useEditThreadMetadata; exports.useErrorListener = _chunkZGVKI7OMcjs.useErrorListener; exports.useEventListener = _chunkZGVKI7OMcjs._useEventListener; exports.useHistory = _chunkZGVKI7OMcjs.useHistory; exports.useHistoryVersionData = _chunkZGVKI7OMcjs.useHistoryVersionData; exports.useHistoryVersions = _chunkZGVKI7OMcjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkZGVKI7OMcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkZGVKI7OMcjs.useInboxNotifications; exports.useIsInsideRoom = _chunkZGVKI7OMcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkZGVKI7OMcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkZGVKI7OMcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkZGVKI7OMcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkZGVKI7OMcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkZGVKI7OMcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkZGVKI7OMcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkZGVKI7OMcjs._useMutation; exports.useMyPresence = _chunkZGVKI7OMcjs._useMyPresence; exports.useNotificationSettings = _chunkZGVKI7OMcjs.useNotificationSettings; exports.useOther = _chunkZGVKI7OMcjs._useOther; exports.useOthers = _chunkZGVKI7OMcjs._useOthers; exports.useOthersConnectionIds = _chunkZGVKI7OMcjs.useOthersConnectionIds; exports.useOthersListener = _chunkZGVKI7OMcjs._useOthersListener; exports.useOthersMapped = _chunkZGVKI7OMcjs._useOthersMapped; exports.useRedo = _chunkZGVKI7OMcjs.useRedo; exports.useRemoveReaction = _chunkZGVKI7OMcjs.useRemoveReaction; exports.useRoom = _chunkZGVKI7OMcjs._useRoom; exports.useRoomInfo = _chunkZGVKI7OMcjs.useRoomInfo; exports.useRoomNotificationSettings = _chunkZGVKI7OMcjs._useRoomNotificationSettings; exports.useRoomSubscriptionSettings = _chunkZGVKI7OMcjs._useRoomSubscriptionSettings; exports.useSelf = _chunkZGVKI7OMcjs._useSelf; exports.useStatus = _chunkZGVKI7OMcjs.useStatus; exports.useStorage = _chunkZGVKI7OMcjs._useStorage; exports.useStorageRoot = _chunkZGVKI7OMcjs._useStorageRoot; exports.useStorageStatus = _chunkZGVKI7OMcjs.useStorageStatus; exports.useSubscribeToThread = _chunkZGVKI7OMcjs.useSubscribeToThread; exports.useSyncStatus = _chunkZGVKI7OMcjs.useSyncStatus; exports.useThreadSubscription = _chunkZGVKI7OMcjs.useThreadSubscription; exports.useThreads = _chunkZGVKI7OMcjs._useThreads; exports.useUndo = _chunkZGVKI7OMcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkZGVKI7OMcjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunkZGVKI7OMcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkZGVKI7OMcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkZGVKI7OMcjs.useUpdateNotificationSettings; exports.useUpdateRoomNotificationSettings = _chunkZGVKI7OMcjs.useUpdateRoomNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkZGVKI7OMcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunkZGVKI7OMcjs._useUser; exports.useUserThreads_experimental = _chunkZGVKI7OMcjs._useUserThreads_experimental;
153
161
  //# 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;AACF,wDAA6B;AAC7B;AACA;AC3EA,wCAA4B;AAc5B,4CAAsD;AAXtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;AD4E7C;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;AACF,uhJAAC","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 UseStorageStatusOptions,\n UseThreadsOptions,\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 {\n ClientContext,\n createLiveblocksContext,\n LiveblocksProvider,\n useClient,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\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 useUpdateRoomNotificationSettings,\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 useStorageStatus,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomNotificationSettings,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\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;AACF,wDAA6B;AAC7B;AACA;AC/EA,wCAA4B;AAc5B,4CAAsD;AAXtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADgF7C;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;AACF,uwJAAC","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 UseStorageStatusOptions,\n UseThreadsOptions,\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 {\n ClientContext,\n createLiveblocksContext,\n LiveblocksProvider,\n useClient,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\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 useUpdateRoomNotificationSettings,\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 useStorageStatus,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomNotificationSettings,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChats,\n useAiChatMessages,\n} from \"./liveblocks\";\n"]}
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, x as createLiveblocksContext, G as createRoomContext, I as useAddReaction, aq as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, P as useCreateComment, Q as useCreateThread, z as useDeleteAllInboxNotifications, R as useDeleteComment, A as useDeleteInboxNotification, S as useDeleteThread, T as useEditComment, V as useEditThreadMetadata, B as useErrorListener, $ as useEventListener, a0 as useHistory, ah as useHistoryVersionData, ar as useHistoryVersions, _ as useInboxNotificationThread, au as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, W as useMarkThreadAsResolved, X as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, av as useNotificationSettings, ai as useOther, aj as useOthers, ak as useOthersConnectionIds, a6 as useOthersListener, al as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, ay as useRoomInfo, as as useRoomNotificationSettings, at as useRoomSubscriptionSettings, am as useSelf, aa as useStatus, an as useStorage, ab as useStorageRoot, ao as useStorageStatus, Y as useSubscribeToThread, F as useSyncStatus, ac as useThreadSubscription, ap as useThreads, ad as useUndo, az as useUnreadInboxNotificationsCount, Z as useUnsubscribeFromThread, ae as useUpdateMyPresence, aw as useUpdateNotificationSettings, af as useUpdateRoomNotificationSettings, ag as useUpdateRoomSubscriptionSettings, aA as useUser, ax as useUserThreads_experimental } from './room-CqT08uWZ.cjs';
1
+ export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, x as createLiveblocksContext, G as createRoomContext, I as useAddReaction, aE as useAiChatMessages, aD as useAiChats, aq as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, ax as useCreateAiChat, P as useCreateComment, Q as useCreateThread, ay as useDeleteAiChat, z as useDeleteAllInboxNotifications, R as useDeleteComment, A as useDeleteInboxNotification, S as useDeleteThread, T as useEditComment, V as useEditThreadMetadata, B as useErrorListener, $ as useEventListener, a0 as useHistory, ah as useHistoryVersionData, ar as useHistoryVersions, _ as useInboxNotificationThread, au as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, W as useMarkThreadAsResolved, X as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, av as useNotificationSettings, ai as useOther, aj as useOthers, ak as useOthersConnectionIds, a6 as useOthersListener, al as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, aA as useRoomInfo, as as useRoomNotificationSettings, at as useRoomSubscriptionSettings, am as useSelf, aa as useStatus, an as useStorage, ab as useStorageRoot, ao as useStorageStatus, Y as useSubscribeToThread, F as useSyncStatus, ac as useThreadSubscription, ap as useThreads, ad as useUndo, aB as useUnreadInboxNotificationsCount, Z as useUnsubscribeFromThread, ae as useUpdateMyPresence, aw as useUpdateNotificationSettings, af as useUpdateRoomNotificationSettings, ag as useUpdateRoomSubscriptionSettings, aC as useUser, az as useUserThreads_experimental } from './room-DmsjrDvP.cjs';
2
2
  export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as react from 'react';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, x as createLiveblocksContext, G as createRoomContext, I as useAddReaction, aq as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, P as useCreateComment, Q as useCreateThread, z as useDeleteAllInboxNotifications, R as useDeleteComment, A as useDeleteInboxNotification, S as useDeleteThread, T as useEditComment, V as useEditThreadMetadata, B as useErrorListener, $ as useEventListener, a0 as useHistory, ah as useHistoryVersionData, ar as useHistoryVersions, _ as useInboxNotificationThread, au as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, W as useMarkThreadAsResolved, X as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, av as useNotificationSettings, ai as useOther, aj as useOthers, ak as useOthersConnectionIds, a6 as useOthersListener, al as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, ay as useRoomInfo, as as useRoomNotificationSettings, at as useRoomSubscriptionSettings, am as useSelf, aa as useStatus, an as useStorage, ab as useStorageRoot, ao as useStorageStatus, Y as useSubscribeToThread, F as useSyncStatus, ac as useThreadSubscription, ap as useThreads, ad as useUndo, az as useUnreadInboxNotificationsCount, Z as useUnsubscribeFromThread, ae as useUpdateMyPresence, aw as useUpdateNotificationSettings, af as useUpdateRoomNotificationSettings, ag as useUpdateRoomSubscriptionSettings, aA as useUser, ax as useUserThreads_experimental } from './room-CqT08uWZ.js';
1
+ export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, x as createLiveblocksContext, G as createRoomContext, I as useAddReaction, aE as useAiChatMessages, aD as useAiChats, aq as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, ax as useCreateAiChat, P as useCreateComment, Q as useCreateThread, ay as useDeleteAiChat, z as useDeleteAllInboxNotifications, R as useDeleteComment, A as useDeleteInboxNotification, S as useDeleteThread, T as useEditComment, V as useEditThreadMetadata, B as useErrorListener, $ as useEventListener, a0 as useHistory, ah as useHistoryVersionData, ar as useHistoryVersions, _ as useInboxNotificationThread, au as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, W as useMarkThreadAsResolved, X as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, av as useNotificationSettings, ai as useOther, aj as useOthers, ak as useOthersConnectionIds, a6 as useOthersListener, al as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, aA as useRoomInfo, as as useRoomNotificationSettings, at as useRoomSubscriptionSettings, am as useSelf, aa as useStatus, an as useStorage, ab as useStorageRoot, ao as useStorageStatus, Y as useSubscribeToThread, F as useSyncStatus, ac as useThreadSubscription, ap as useThreads, ad as useUndo, aB as useUnreadInboxNotificationsCount, Z as useUnsubscribeFromThread, ae as useUpdateMyPresence, aw as useUpdateNotificationSettings, af as useUpdateRoomNotificationSettings, ag as useUpdateRoomSubscriptionSettings, aC as useUser, az as useUserThreads_experimental } from './room-DmsjrDvP.js';
2
2
  export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as react from 'react';
package/dist/index.js CHANGED
@@ -3,13 +3,15 @@ import {
3
3
  PKG_FORMAT,
4
4
  PKG_NAME,
5
5
  PKG_VERSION
6
- } from "./chunk-RPHUEUUE.js";
6
+ } from "./chunk-EDEUY3EM.js";
7
7
  import {
8
8
  ClientContext,
9
9
  LiveblocksProvider,
10
10
  RoomContext,
11
11
  _RoomProvider,
12
12
  _useAddReaction,
13
+ _useAiChatMessages,
14
+ _useAiChats,
13
15
  _useBroadcastEvent,
14
16
  _useCreateThread,
15
17
  _useDeleteThread,
@@ -41,7 +43,9 @@ import {
41
43
  useCanRedo,
42
44
  useCanUndo,
43
45
  useClient,
46
+ useCreateAiChat,
44
47
  useCreateComment,
48
+ useDeleteAiChat,
45
49
  useDeleteAllInboxNotifications,
46
50
  useDeleteComment,
47
51
  useDeleteInboxNotification,
@@ -72,7 +76,7 @@ import {
72
76
  useUpdateNotificationSettings,
73
77
  useUpdateRoomNotificationSettings,
74
78
  useUpdateRoomSubscriptionSettings
75
- } from "./chunk-N6OQQVYV.js";
79
+ } from "./chunk-E6PCFJWE.js";
76
80
 
77
81
  // src/index.ts
78
82
  import { detectDupes } from "@liveblocks/core";
@@ -89,14 +93,18 @@ export {
89
93
  isNotificationChannelEnabled,
90
94
  shallow,
91
95
  _useAddReaction as useAddReaction,
96
+ _useAiChatMessages as useAiChatMessages,
97
+ _useAiChats as useAiChats,
92
98
  useAttachmentUrl,
93
99
  useBatch,
94
100
  _useBroadcastEvent as useBroadcastEvent,
95
101
  useCanRedo,
96
102
  useCanUndo,
97
103
  useClient,
104
+ useCreateAiChat,
98
105
  useCreateComment,
99
106
  _useCreateThread as useCreateThread,
107
+ useDeleteAiChat,
100
108
  useDeleteAllInboxNotifications,
101
109
  useDeleteComment,
102
110
  useDeleteInboxNotification,
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 UseStorageStatusOptions,\n UseThreadsOptions,\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 {\n ClientContext,\n createLiveblocksContext,\n LiveblocksProvider,\n useClient,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\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 useUpdateRoomNotificationSettings,\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 useStorageStatus,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomNotificationSettings,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,SAAS,oCAAoC;AAXtD,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 UseStorageStatusOptions,\n UseThreadsOptions,\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 {\n ClientContext,\n createLiveblocksContext,\n LiveblocksProvider,\n useClient,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\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 useUpdateRoomNotificationSettings,\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 useStorageStatus,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomNotificationSettings,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChats,\n useAiChatMessages,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,SAAS,oCAAoC;AAXtD,YAAY,UAAU,aAAa,UAAU;","names":[]}
@@ -1,5 +1,5 @@
1
1
  import * as _liveblocks_core from '@liveblocks/core';
2
- import { BaseMetadata, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, Relax, ToImmutable, PartialNotificationSettings, AsyncLoading, AsyncError, ThreadData, HistoryVersion, Client, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, OpaqueClient, SubscriptionData, SubscriptionKey, CommentUserReaction, InboxNotificationDeleteInfo, SubscriptionDeleteInfo, RoomSubscriptionSettings as RoomSubscriptionSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DM, TextEditorType, IYjsProvider, DP, DS, DE } from '@liveblocks/core';
2
+ import { BaseMetadata, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, Relax, ToImmutable, PartialNotificationSettings, AsyncLoading, AsyncError, ThreadData, HistoryVersion, AiChat, UiChatMessage, Client, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, MessageId, OpaqueClient, SubscriptionData, SubscriptionKey, CommentUserReaction, InboxNotificationDeleteInfo, SubscriptionDeleteInfo, RoomSubscriptionSettings as RoomSubscriptionSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DM, TextEditorType, IYjsProvider, DP, DS, DE } from '@liveblocks/core';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as react from 'react';
5
5
  import { Context, PropsWithChildren, ReactNode } from 'react';
@@ -106,6 +106,10 @@ type RoomSubscriptionSettingsAsyncResult = AsyncResult<RoomSubscriptionSettings,
106
106
  type HistoryVersionDataAsyncResult = AsyncResult<Uint8Array>;
107
107
  type HistoryVersionsAsyncSuccess = AsyncSuccess<HistoryVersion[], "versions">;
108
108
  type HistoryVersionsAsyncResult = AsyncResult<HistoryVersion[], "versions">;
109
+ type AiChatsAsyncSuccess = PagedAsyncSuccess<AiChat[], "chats">;
110
+ type AiChatsAsyncResult = PagedAsyncResult<AiChat[], "chats">;
111
+ type AiChatMessagesAsyncSuccess = AsyncSuccess<readonly UiChatMessage[], "messages">;
112
+ type AiChatMessagesAsyncResult = AsyncResult<readonly UiChatMessage[], "messages">;
109
113
  type RoomProviderProps<P extends JsonObject, S extends LsonObject> = Resolve<{
110
114
  /**
111
115
  * The id of the room you want to connect to
@@ -991,6 +995,24 @@ type LiveblocksContextBundleCommon<M extends BaseMetadata> = {
991
995
  * const syncStatus = useSyncStatus({ smooth: true });
992
996
  */
993
997
  useSyncStatus(options?: UseSyncStatusOptions): SyncStatus;
998
+ /**
999
+ * Returns a function that creates an AI chat.
1000
+ *
1001
+ * @example
1002
+ * const createAiChat = useCreateAiChat();
1003
+ * createAiChat({ id: "ai-chat-id" });
1004
+ */
1005
+ useCreateAiChat(): (options: {
1006
+ id: string;
1007
+ }) => void;
1008
+ /**
1009
+ * Returns a function that deletes the AI chat with the specified id.
1010
+ *
1011
+ * @example
1012
+ * const deleteAiChat = useDeleteAiChat();
1013
+ * deleteAiChat("ai-chat-id");
1014
+ */
1015
+ useDeleteAiChat(): (chatId: string) => void;
994
1016
  };
995
1017
  type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = Resolve<LiveblocksContextBundleCommon<M> & SharedContextBundle<U>["classic"] & {
996
1018
  /**
@@ -1014,6 +1036,20 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
1014
1036
  * Do not use unless explicitly recommended by the Liveblocks team.
1015
1037
  */
1016
1038
  useUserThreads_experimental(options?: UseUserThreadsOptions<M>): ThreadsAsyncResult<M>;
1039
+ /**
1040
+ * (Private beta) Returns the chats for the current user.
1041
+ *
1042
+ * @example
1043
+ * const { chats, error, isLoading } = useAiChats();
1044
+ */
1045
+ useAiChats(): AiChatsAsyncResult;
1046
+ /**
1047
+ * (Private beta) Returns the messages in the given chat.
1048
+ *
1049
+ * @example
1050
+ * const { messages, error, isLoading } = useAiChatMessages("my-chat");
1051
+ */
1052
+ useAiChatMessages(chatId: string): AiChatMessagesAsyncResult;
1017
1053
  suspense: Resolve<LiveblocksContextBundleCommon<M> & SharedContextBundle<U>["suspense"] & {
1018
1054
  /**
1019
1055
  * Returns the inbox notifications for the current user.
@@ -1046,6 +1082,20 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
1046
1082
  * Do not use unless explicitly recommended by the Liveblocks team.
1047
1083
  */
1048
1084
  useUserThreads_experimental(options?: UseUserThreadsOptions<M>): ThreadsAsyncSuccess<M>;
1085
+ /**
1086
+ * (Private beta) Returns the chats for the current user.
1087
+ *
1088
+ * @example
1089
+ * const { chats } = useAiChats();
1090
+ */
1091
+ useAiChats(): AiChatsAsyncSuccess;
1092
+ /**
1093
+ * (Private beta) Returns the messages in the given chat.
1094
+ *
1095
+ * @example
1096
+ * const { messages } = useAiChatMessages("my-chat");
1097
+ */
1098
+ useAiChatMessages(chatId: string): AiChatMessagesAsyncSuccess;
1049
1099
  }>;
1050
1100
  }>;
1051
1101
 
@@ -1363,6 +1413,8 @@ declare class UmbrellaStore<M extends BaseMetadata> {
1363
1413
  readonly roomSubscriptionSettingsByRoomId: DefaultMap<RoomId, LoadableResource<RoomSubscriptionSettingsAsyncResult>>;
1364
1414
  readonly versionsByRoomId: DefaultMap<RoomId, LoadableResource<HistoryVersionsAsyncResult>>;
1365
1415
  readonly notificationSettings: LoadableResource<NotificationSettingsAsyncResult>;
1416
+ readonly aiChats: LoadableResource<AiChatsAsyncResult>;
1417
+ readonly messagesByChatId: DefaultMap<string, DefaultMap<MessageId | null, LoadableResource<AiChatMessagesAsyncResult>>>;
1366
1418
  };
1367
1419
  constructor(client: OpaqueClient);
1368
1420
  /**
@@ -1454,6 +1506,10 @@ declare const ClientContext: react.Context<OpaqueClient | null>;
1454
1506
  * @private
1455
1507
  */
1456
1508
  declare function getUmbrellaStoreForClient<M extends BaseMetadata$1>(client: OpaqueClient): UmbrellaStore<M>;
1509
+ declare function useCreateAiChat(): (options: {
1510
+ id: string;
1511
+ }) => void;
1512
+ declare function useDeleteAiChat(): (chatId: string) => void;
1457
1513
  /**
1458
1514
  * @private This is an internal API.
1459
1515
  */
@@ -1652,6 +1708,34 @@ declare const _useUserThreads_experimental: TypedBundle$1["useUserThreads_experi
1652
1708
  * The final API for that is still TBD.
1653
1709
  */
1654
1710
  declare const _useUserThreadsSuspense_experimental: TypedBundle$1["suspense"]["useUserThreads_experimental"];
1711
+ /**
1712
+ * (Private beta) Returns the chats for the current user.
1713
+ *
1714
+ * @example
1715
+ * const { chats, error, isLoading } = useAiChats();
1716
+ */
1717
+ declare const _useAiChats: TypedBundle$1["useAiChats"];
1718
+ /**
1719
+ * (Private beta) Returns the chats for the current user.
1720
+ *
1721
+ * @example
1722
+ * const { chats, error, isLoading } = useAiChats();
1723
+ */
1724
+ declare const _useAiChatsSuspense: TypedBundle$1["suspense"]["useAiChats"];
1725
+ /**
1726
+ * (Private beta) Returns the messages in the given chat.
1727
+ *
1728
+ * @example
1729
+ * const { messages, error, isLoading } = useAiChatMessages("my-chat");
1730
+ */
1731
+ declare const _useAiChatMessages: TypedBundle$1["useAiChatMessages"];
1732
+ /**
1733
+ * (Private beta) Returns the messages in the given chat.
1734
+ *
1735
+ * @example
1736
+ * const { messages, error, isLoading } = useAiChatMessages("my-chat");
1737
+ */
1738
+ declare const _useAiChatMessagesSuspense: TypedBundle$1["suspense"]["useAiChatMessages"];
1655
1739
  /**
1656
1740
  * Returns the current Liveblocks sync status, and triggers a re-render
1657
1741
  * whenever it changes. Can be used to render a "Saving..." indicator, or for
@@ -2453,4 +2537,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
2453
2537
  */
2454
2538
  declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
2455
2539
 
2456
- export { _useEventListener as $, useDeleteInboxNotification as A, useErrorListener as B, ClientContext as C, useMarkAllInboxNotificationsAsRead as D, useMarkInboxNotificationAsRead as E, useSyncStatus as F, createRoomContext as G, _RoomProvider as H, _useAddReaction as I, useBatch as J, _useBroadcastEvent as K, LiveblocksProvider as L, type MutationContext as M, useCanRedo as N, useCanUndo as O, useCreateComment as P, _useCreateThread as Q, useDeleteComment as R, _useDeleteThread as S, useEditComment as T, type UseStorageStatusOptions as U, _useEditThreadMetadata as V, useMarkThreadAsResolved as W, useMarkThreadAsUnresolved as X, useSubscribeToThread as Y, useUnsubscribeFromThread as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, useHistory as a0, _useIsInsideRoom as a1, useLostConnectionListener as a2, useMarkThreadAsRead as a3, _useMutation as a4, _useMyPresence as a5, _useOthersListener as a6, useRedo as a7, useRemoveReaction as a8, _useRoom as a9, _useUser as aA, _useOtherSuspense as aB, _useOthersSuspense as aC, useOthersConnectionIdsSuspense as aD, _useOthersMappedSuspense as aE, _useSelfSuspense as aF, _useStorageSuspense as aG, useStorageStatusSuspense as aH, _useThreadsSuspense as aI, useAttachmentUrlSuspense as aJ, _useHistoryVersionsSuspense as aK, _useRoomNotificationSettingsSuspense as aL, _useRoomSubscriptionSettingsSuspense as aM, useInboxNotificationsSuspense as aN, useNotificationSettingsSuspense as aO, useRoomInfoSuspense as aP, useUnreadInboxNotificationsCountSuspense as aQ, _useUserSuspense as aR, _useUserThreadsSuspense_experimental as aS, useStatus as aa, _useStorageRoot as ab, useThreadSubscription as ac, useUndo as ad, _useUpdateMyPresence as ae, useUpdateRoomNotificationSettings as af, useUpdateRoomSubscriptionSettings as ag, useHistoryVersionData as ah, _useOther as ai, _useOthers as aj, useOthersConnectionIds as ak, _useOthersMapped as al, _useSelf as am, _useStorage as an, useStorageStatus as ao, _useThreads as ap, useAttachmentUrl as aq, _useHistoryVersions as ar, _useRoomNotificationSettings as as, _useRoomSubscriptionSettings as at, useInboxNotifications as au, useNotificationSettings as av, useUpdateNotificationSettings as aw, _useUserThreads_experimental as ax, useRoomInfo as ay, useUnreadInboxNotificationsCount as az, useCreateRoomComment as b, 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 UseThreadsOptions as w, createLiveblocksContext as x, useClient as y, useDeleteAllInboxNotifications as z };
2540
+ export { _useEventListener as $, useDeleteInboxNotification as A, useErrorListener as B, ClientContext as C, useMarkAllInboxNotificationsAsRead as D, useMarkInboxNotificationAsRead as E, useSyncStatus as F, createRoomContext as G, _RoomProvider as H, _useAddReaction as I, useBatch as J, _useBroadcastEvent as K, LiveblocksProvider as L, type MutationContext as M, useCanRedo as N, useCanUndo as O, useCreateComment as P, _useCreateThread as Q, useDeleteComment as R, _useDeleteThread as S, useEditComment as T, type UseStorageStatusOptions as U, _useEditThreadMetadata as V, useMarkThreadAsResolved as W, useMarkThreadAsUnresolved as X, useSubscribeToThread as Y, useUnsubscribeFromThread as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, useHistory as a0, _useIsInsideRoom as a1, useLostConnectionListener as a2, useMarkThreadAsRead as a3, _useMutation as a4, _useMyPresence as a5, _useOthersListener as a6, useRedo as a7, useRemoveReaction as a8, _useRoom as a9, useRoomInfo as aA, useUnreadInboxNotificationsCount as aB, _useUser as aC, _useAiChats as aD, _useAiChatMessages as aE, _useOtherSuspense as aF, _useOthersSuspense as aG, useOthersConnectionIdsSuspense as aH, _useOthersMappedSuspense as aI, _useSelfSuspense as aJ, _useStorageSuspense as aK, useStorageStatusSuspense as aL, _useThreadsSuspense as aM, useAttachmentUrlSuspense as aN, _useHistoryVersionsSuspense as aO, _useRoomNotificationSettingsSuspense as aP, _useRoomSubscriptionSettingsSuspense as aQ, useInboxNotificationsSuspense as aR, useNotificationSettingsSuspense as aS, useRoomInfoSuspense as aT, useUnreadInboxNotificationsCountSuspense as aU, _useUserSuspense as aV, _useUserThreadsSuspense_experimental as aW, _useAiChatsSuspense as aX, _useAiChatMessagesSuspense as aY, useStatus as aa, _useStorageRoot as ab, useThreadSubscription as ac, useUndo as ad, _useUpdateMyPresence as ae, useUpdateRoomNotificationSettings as af, useUpdateRoomSubscriptionSettings as ag, useHistoryVersionData as ah, _useOther as ai, _useOthers as aj, useOthersConnectionIds as ak, _useOthersMapped as al, _useSelf as am, _useStorage as an, useStorageStatus as ao, _useThreads as ap, useAttachmentUrl as aq, _useHistoryVersions as ar, _useRoomNotificationSettings as as, _useRoomSubscriptionSettings as at, useInboxNotifications as au, useNotificationSettings as av, useUpdateNotificationSettings as aw, useCreateAiChat as ax, useDeleteAiChat as ay, _useUserThreads_experimental as az, useCreateRoomComment as b, 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 UseThreadsOptions as w, createLiveblocksContext as x, useClient as y, useDeleteAllInboxNotifications as z };
@@ -1,5 +1,5 @@
1
1
  import * as _liveblocks_core from '@liveblocks/core';
2
- import { BaseMetadata, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, Relax, ToImmutable, PartialNotificationSettings, AsyncLoading, AsyncError, ThreadData, HistoryVersion, Client, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, OpaqueClient, SubscriptionData, SubscriptionKey, CommentUserReaction, InboxNotificationDeleteInfo, SubscriptionDeleteInfo, RoomSubscriptionSettings as RoomSubscriptionSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DM, TextEditorType, IYjsProvider, DP, DS, DE } from '@liveblocks/core';
2
+ import { BaseMetadata, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, Relax, ToImmutable, PartialNotificationSettings, AsyncLoading, AsyncError, ThreadData, HistoryVersion, AiChat, UiChatMessage, Client, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, MessageId, OpaqueClient, SubscriptionData, SubscriptionKey, CommentUserReaction, InboxNotificationDeleteInfo, SubscriptionDeleteInfo, RoomSubscriptionSettings as RoomSubscriptionSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DM, TextEditorType, IYjsProvider, DP, DS, DE } from '@liveblocks/core';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as react from 'react';
5
5
  import { Context, PropsWithChildren, ReactNode } from 'react';
@@ -106,6 +106,10 @@ type RoomSubscriptionSettingsAsyncResult = AsyncResult<RoomSubscriptionSettings,
106
106
  type HistoryVersionDataAsyncResult = AsyncResult<Uint8Array>;
107
107
  type HistoryVersionsAsyncSuccess = AsyncSuccess<HistoryVersion[], "versions">;
108
108
  type HistoryVersionsAsyncResult = AsyncResult<HistoryVersion[], "versions">;
109
+ type AiChatsAsyncSuccess = PagedAsyncSuccess<AiChat[], "chats">;
110
+ type AiChatsAsyncResult = PagedAsyncResult<AiChat[], "chats">;
111
+ type AiChatMessagesAsyncSuccess = AsyncSuccess<readonly UiChatMessage[], "messages">;
112
+ type AiChatMessagesAsyncResult = AsyncResult<readonly UiChatMessage[], "messages">;
109
113
  type RoomProviderProps<P extends JsonObject, S extends LsonObject> = Resolve<{
110
114
  /**
111
115
  * The id of the room you want to connect to
@@ -991,6 +995,24 @@ type LiveblocksContextBundleCommon<M extends BaseMetadata> = {
991
995
  * const syncStatus = useSyncStatus({ smooth: true });
992
996
  */
993
997
  useSyncStatus(options?: UseSyncStatusOptions): SyncStatus;
998
+ /**
999
+ * Returns a function that creates an AI chat.
1000
+ *
1001
+ * @example
1002
+ * const createAiChat = useCreateAiChat();
1003
+ * createAiChat({ id: "ai-chat-id" });
1004
+ */
1005
+ useCreateAiChat(): (options: {
1006
+ id: string;
1007
+ }) => void;
1008
+ /**
1009
+ * Returns a function that deletes the AI chat with the specified id.
1010
+ *
1011
+ * @example
1012
+ * const deleteAiChat = useDeleteAiChat();
1013
+ * deleteAiChat("ai-chat-id");
1014
+ */
1015
+ useDeleteAiChat(): (chatId: string) => void;
994
1016
  };
995
1017
  type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = Resolve<LiveblocksContextBundleCommon<M> & SharedContextBundle<U>["classic"] & {
996
1018
  /**
@@ -1014,6 +1036,20 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
1014
1036
  * Do not use unless explicitly recommended by the Liveblocks team.
1015
1037
  */
1016
1038
  useUserThreads_experimental(options?: UseUserThreadsOptions<M>): ThreadsAsyncResult<M>;
1039
+ /**
1040
+ * (Private beta) Returns the chats for the current user.
1041
+ *
1042
+ * @example
1043
+ * const { chats, error, isLoading } = useAiChats();
1044
+ */
1045
+ useAiChats(): AiChatsAsyncResult;
1046
+ /**
1047
+ * (Private beta) Returns the messages in the given chat.
1048
+ *
1049
+ * @example
1050
+ * const { messages, error, isLoading } = useAiChatMessages("my-chat");
1051
+ */
1052
+ useAiChatMessages(chatId: string): AiChatMessagesAsyncResult;
1017
1053
  suspense: Resolve<LiveblocksContextBundleCommon<M> & SharedContextBundle<U>["suspense"] & {
1018
1054
  /**
1019
1055
  * Returns the inbox notifications for the current user.
@@ -1046,6 +1082,20 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
1046
1082
  * Do not use unless explicitly recommended by the Liveblocks team.
1047
1083
  */
1048
1084
  useUserThreads_experimental(options?: UseUserThreadsOptions<M>): ThreadsAsyncSuccess<M>;
1085
+ /**
1086
+ * (Private beta) Returns the chats for the current user.
1087
+ *
1088
+ * @example
1089
+ * const { chats } = useAiChats();
1090
+ */
1091
+ useAiChats(): AiChatsAsyncSuccess;
1092
+ /**
1093
+ * (Private beta) Returns the messages in the given chat.
1094
+ *
1095
+ * @example
1096
+ * const { messages } = useAiChatMessages("my-chat");
1097
+ */
1098
+ useAiChatMessages(chatId: string): AiChatMessagesAsyncSuccess;
1049
1099
  }>;
1050
1100
  }>;
1051
1101
 
@@ -1363,6 +1413,8 @@ declare class UmbrellaStore<M extends BaseMetadata> {
1363
1413
  readonly roomSubscriptionSettingsByRoomId: DefaultMap<RoomId, LoadableResource<RoomSubscriptionSettingsAsyncResult>>;
1364
1414
  readonly versionsByRoomId: DefaultMap<RoomId, LoadableResource<HistoryVersionsAsyncResult>>;
1365
1415
  readonly notificationSettings: LoadableResource<NotificationSettingsAsyncResult>;
1416
+ readonly aiChats: LoadableResource<AiChatsAsyncResult>;
1417
+ readonly messagesByChatId: DefaultMap<string, DefaultMap<MessageId | null, LoadableResource<AiChatMessagesAsyncResult>>>;
1366
1418
  };
1367
1419
  constructor(client: OpaqueClient);
1368
1420
  /**
@@ -1454,6 +1506,10 @@ declare const ClientContext: react.Context<OpaqueClient | null>;
1454
1506
  * @private
1455
1507
  */
1456
1508
  declare function getUmbrellaStoreForClient<M extends BaseMetadata$1>(client: OpaqueClient): UmbrellaStore<M>;
1509
+ declare function useCreateAiChat(): (options: {
1510
+ id: string;
1511
+ }) => void;
1512
+ declare function useDeleteAiChat(): (chatId: string) => void;
1457
1513
  /**
1458
1514
  * @private This is an internal API.
1459
1515
  */
@@ -1652,6 +1708,34 @@ declare const _useUserThreads_experimental: TypedBundle$1["useUserThreads_experi
1652
1708
  * The final API for that is still TBD.
1653
1709
  */
1654
1710
  declare const _useUserThreadsSuspense_experimental: TypedBundle$1["suspense"]["useUserThreads_experimental"];
1711
+ /**
1712
+ * (Private beta) Returns the chats for the current user.
1713
+ *
1714
+ * @example
1715
+ * const { chats, error, isLoading } = useAiChats();
1716
+ */
1717
+ declare const _useAiChats: TypedBundle$1["useAiChats"];
1718
+ /**
1719
+ * (Private beta) Returns the chats for the current user.
1720
+ *
1721
+ * @example
1722
+ * const { chats, error, isLoading } = useAiChats();
1723
+ */
1724
+ declare const _useAiChatsSuspense: TypedBundle$1["suspense"]["useAiChats"];
1725
+ /**
1726
+ * (Private beta) Returns the messages in the given chat.
1727
+ *
1728
+ * @example
1729
+ * const { messages, error, isLoading } = useAiChatMessages("my-chat");
1730
+ */
1731
+ declare const _useAiChatMessages: TypedBundle$1["useAiChatMessages"];
1732
+ /**
1733
+ * (Private beta) Returns the messages in the given chat.
1734
+ *
1735
+ * @example
1736
+ * const { messages, error, isLoading } = useAiChatMessages("my-chat");
1737
+ */
1738
+ declare const _useAiChatMessagesSuspense: TypedBundle$1["suspense"]["useAiChatMessages"];
1655
1739
  /**
1656
1740
  * Returns the current Liveblocks sync status, and triggers a re-render
1657
1741
  * whenever it changes. Can be used to render a "Saving..." indicator, or for
@@ -2453,4 +2537,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
2453
2537
  */
2454
2538
  declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
2455
2539
 
2456
- export { _useEventListener as $, useDeleteInboxNotification as A, useErrorListener as B, ClientContext as C, useMarkAllInboxNotificationsAsRead as D, useMarkInboxNotificationAsRead as E, useSyncStatus as F, createRoomContext as G, _RoomProvider as H, _useAddReaction as I, useBatch as J, _useBroadcastEvent as K, LiveblocksProvider as L, type MutationContext as M, useCanRedo as N, useCanUndo as O, useCreateComment as P, _useCreateThread as Q, useDeleteComment as R, _useDeleteThread as S, useEditComment as T, type UseStorageStatusOptions as U, _useEditThreadMetadata as V, useMarkThreadAsResolved as W, useMarkThreadAsUnresolved as X, useSubscribeToThread as Y, useUnsubscribeFromThread as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, useHistory as a0, _useIsInsideRoom as a1, useLostConnectionListener as a2, useMarkThreadAsRead as a3, _useMutation as a4, _useMyPresence as a5, _useOthersListener as a6, useRedo as a7, useRemoveReaction as a8, _useRoom as a9, _useUser as aA, _useOtherSuspense as aB, _useOthersSuspense as aC, useOthersConnectionIdsSuspense as aD, _useOthersMappedSuspense as aE, _useSelfSuspense as aF, _useStorageSuspense as aG, useStorageStatusSuspense as aH, _useThreadsSuspense as aI, useAttachmentUrlSuspense as aJ, _useHistoryVersionsSuspense as aK, _useRoomNotificationSettingsSuspense as aL, _useRoomSubscriptionSettingsSuspense as aM, useInboxNotificationsSuspense as aN, useNotificationSettingsSuspense as aO, useRoomInfoSuspense as aP, useUnreadInboxNotificationsCountSuspense as aQ, _useUserSuspense as aR, _useUserThreadsSuspense_experimental as aS, useStatus as aa, _useStorageRoot as ab, useThreadSubscription as ac, useUndo as ad, _useUpdateMyPresence as ae, useUpdateRoomNotificationSettings as af, useUpdateRoomSubscriptionSettings as ag, useHistoryVersionData as ah, _useOther as ai, _useOthers as aj, useOthersConnectionIds as ak, _useOthersMapped as al, _useSelf as am, _useStorage as an, useStorageStatus as ao, _useThreads as ap, useAttachmentUrl as aq, _useHistoryVersions as ar, _useRoomNotificationSettings as as, _useRoomSubscriptionSettings as at, useInboxNotifications as au, useNotificationSettings as av, useUpdateNotificationSettings as aw, _useUserThreads_experimental as ax, useRoomInfo as ay, useUnreadInboxNotificationsCount as az, useCreateRoomComment as b, 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 UseThreadsOptions as w, createLiveblocksContext as x, useClient as y, useDeleteAllInboxNotifications as z };
2540
+ export { _useEventListener as $, useDeleteInboxNotification as A, useErrorListener as B, ClientContext as C, useMarkAllInboxNotificationsAsRead as D, useMarkInboxNotificationAsRead as E, useSyncStatus as F, createRoomContext as G, _RoomProvider as H, _useAddReaction as I, useBatch as J, _useBroadcastEvent as K, LiveblocksProvider as L, type MutationContext as M, useCanRedo as N, useCanUndo as O, useCreateComment as P, _useCreateThread as Q, useDeleteComment as R, _useDeleteThread as S, useEditComment as T, type UseStorageStatusOptions as U, _useEditThreadMetadata as V, useMarkThreadAsResolved as W, useMarkThreadAsUnresolved as X, useSubscribeToThread as Y, useUnsubscribeFromThread as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, useHistory as a0, _useIsInsideRoom as a1, useLostConnectionListener as a2, useMarkThreadAsRead as a3, _useMutation as a4, _useMyPresence as a5, _useOthersListener as a6, useRedo as a7, useRemoveReaction as a8, _useRoom as a9, useRoomInfo as aA, useUnreadInboxNotificationsCount as aB, _useUser as aC, _useAiChats as aD, _useAiChatMessages as aE, _useOtherSuspense as aF, _useOthersSuspense as aG, useOthersConnectionIdsSuspense as aH, _useOthersMappedSuspense as aI, _useSelfSuspense as aJ, _useStorageSuspense as aK, useStorageStatusSuspense as aL, _useThreadsSuspense as aM, useAttachmentUrlSuspense as aN, _useHistoryVersionsSuspense as aO, _useRoomNotificationSettingsSuspense as aP, _useRoomSubscriptionSettingsSuspense as aQ, useInboxNotificationsSuspense as aR, useNotificationSettingsSuspense as aS, useRoomInfoSuspense as aT, useUnreadInboxNotificationsCountSuspense as aU, _useUserSuspense as aV, _useUserThreadsSuspense_experimental as aW, _useAiChatsSuspense as aX, _useAiChatMessagesSuspense as aY, useStatus as aa, _useStorageRoot as ab, useThreadSubscription as ac, useUndo as ad, _useUpdateMyPresence as ae, useUpdateRoomNotificationSettings as af, useUpdateRoomSubscriptionSettings as ag, useHistoryVersionData as ah, _useOther as ai, _useOthers as aj, useOthersConnectionIds as ak, _useOthersMapped as al, _useSelf as am, _useStorage as an, useStorageStatus as ao, _useThreads as ap, useAttachmentUrl as aq, _useHistoryVersions as ar, _useRoomNotificationSettings as as, _useRoomSubscriptionSettings as at, useInboxNotifications as au, useNotificationSettings as av, useUpdateNotificationSettings as aw, useCreateAiChat as ax, useDeleteAiChat as ay, _useUserThreads_experimental as az, useCreateRoomComment as b, 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 UseThreadsOptions as w, createLiveblocksContext as x, useClient as y, useDeleteAllInboxNotifications as z };
package/dist/suspense.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunk2C72TPGIcjs = require('./chunk-2C72TPGI.cjs');
6
+ var _chunkGSA4MPRGcjs = require('./chunk-GSA4MPRG.cjs');
7
7
 
8
8
 
9
9
 
@@ -69,12 +69,20 @@ var _chunk2C72TPGIcjs = require('./chunk-2C72TPGI.cjs');
69
69
 
70
70
 
71
71
 
72
- var _chunk32HQP5F6cjs = require('./chunk-32HQP5F6.cjs');
72
+
73
+
74
+
75
+
76
+ var _chunkZGVKI7OMcjs = require('./chunk-ZGVKI7OM.cjs');
73
77
 
74
78
  // src/suspense.ts
75
79
  var _core = require('@liveblocks/core');
76
80
  var _client = require('@liveblocks/client');
77
- _core.detectDupes.call(void 0, _chunk2C72TPGIcjs.PKG_NAME, _chunk2C72TPGIcjs.PKG_VERSION, _chunk2C72TPGIcjs.PKG_FORMAT);
81
+ _core.detectDupes.call(void 0, _chunkGSA4MPRGcjs.PKG_NAME, _chunkGSA4MPRGcjs.PKG_VERSION, _chunkGSA4MPRGcjs.PKG_FORMAT);
82
+
83
+
84
+
85
+
78
86
 
79
87
 
80
88
 
@@ -143,5 +151,5 @@ _core.detectDupes.call(void 0, _chunk2C72TPGIcjs.PKG_NAME, _chunk2C72TPGIcjs.PKG
143
151
 
144
152
 
145
153
 
146
- exports.ClientContext = _chunk32HQP5F6cjs.ClientContext; exports.ClientSideSuspense = _chunk2C72TPGIcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunk32HQP5F6cjs.LiveblocksProvider; exports.RoomContext = _chunk32HQP5F6cjs.RoomContext; exports.RoomProvider = _chunk32HQP5F6cjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunk32HQP5F6cjs._useAddReaction; exports.useAttachmentUrl = _chunk32HQP5F6cjs.useAttachmentUrlSuspense; exports.useBatch = _chunk32HQP5F6cjs.useBatch; exports.useBroadcastEvent = _chunk32HQP5F6cjs._useBroadcastEvent; exports.useCanRedo = _chunk32HQP5F6cjs.useCanRedo; exports.useCanUndo = _chunk32HQP5F6cjs.useCanUndo; exports.useClient = _chunk32HQP5F6cjs.useClient; exports.useCreateComment = _chunk32HQP5F6cjs.useCreateComment; exports.useCreateThread = _chunk32HQP5F6cjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunk32HQP5F6cjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunk32HQP5F6cjs.useDeleteComment; exports.useDeleteInboxNotification = _chunk32HQP5F6cjs.useDeleteInboxNotification; exports.useDeleteThread = _chunk32HQP5F6cjs._useDeleteThread; exports.useEditComment = _chunk32HQP5F6cjs.useEditComment; exports.useEditThreadMetadata = _chunk32HQP5F6cjs._useEditThreadMetadata; exports.useErrorListener = _chunk32HQP5F6cjs.useErrorListener; exports.useEventListener = _chunk32HQP5F6cjs._useEventListener; exports.useHistory = _chunk32HQP5F6cjs.useHistory; exports.useHistoryVersions = _chunk32HQP5F6cjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunk32HQP5F6cjs._useInboxNotificationThread; exports.useInboxNotifications = _chunk32HQP5F6cjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunk32HQP5F6cjs._useIsInsideRoom; exports.useLostConnectionListener = _chunk32HQP5F6cjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunk32HQP5F6cjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunk32HQP5F6cjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunk32HQP5F6cjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunk32HQP5F6cjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunk32HQP5F6cjs.useMarkThreadAsUnresolved; exports.useMutation = _chunk32HQP5F6cjs._useMutation; exports.useMyPresence = _chunk32HQP5F6cjs._useMyPresence; exports.useNotificationSettings = _chunk32HQP5F6cjs.useNotificationSettingsSuspense; exports.useOther = _chunk32HQP5F6cjs._useOtherSuspense; exports.useOthers = _chunk32HQP5F6cjs._useOthersSuspense; exports.useOthersConnectionIds = _chunk32HQP5F6cjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunk32HQP5F6cjs._useOthersListener; exports.useOthersMapped = _chunk32HQP5F6cjs._useOthersMappedSuspense; exports.useRedo = _chunk32HQP5F6cjs.useRedo; exports.useRemoveReaction = _chunk32HQP5F6cjs.useRemoveReaction; exports.useRoom = _chunk32HQP5F6cjs._useRoom; exports.useRoomInfo = _chunk32HQP5F6cjs.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunk32HQP5F6cjs._useRoomNotificationSettingsSuspense; exports.useRoomSubscriptionSettings = _chunk32HQP5F6cjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunk32HQP5F6cjs._useSelfSuspense; exports.useStatus = _chunk32HQP5F6cjs.useStatus; exports.useStorage = _chunk32HQP5F6cjs._useStorageSuspense; exports.useStorageRoot = _chunk32HQP5F6cjs._useStorageRoot; exports.useStorageStatus = _chunk32HQP5F6cjs.useStorageStatusSuspense; exports.useSubscribeToThread = _chunk32HQP5F6cjs.useSubscribeToThread; exports.useSyncStatus = _chunk32HQP5F6cjs.useSyncStatus; exports.useThreadSubscription = _chunk32HQP5F6cjs.useThreadSubscription; exports.useThreads = _chunk32HQP5F6cjs._useThreadsSuspense; exports.useUndo = _chunk32HQP5F6cjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunk32HQP5F6cjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunk32HQP5F6cjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunk32HQP5F6cjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunk32HQP5F6cjs.useUpdateNotificationSettings; exports.useUpdateRoomNotificationSettings = _chunk32HQP5F6cjs.useUpdateRoomNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunk32HQP5F6cjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunk32HQP5F6cjs._useUserSuspense; exports.useUserThreads_experimental = _chunk32HQP5F6cjs._useUserThreadsSuspense_experimental;
154
+ exports.ClientContext = _chunkZGVKI7OMcjs.ClientContext; exports.ClientSideSuspense = _chunkGSA4MPRGcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkZGVKI7OMcjs.LiveblocksProvider; exports.RoomContext = _chunkZGVKI7OMcjs.RoomContext; exports.RoomProvider = _chunkZGVKI7OMcjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkZGVKI7OMcjs._useAddReaction; exports.useAiChatMessages = _chunkZGVKI7OMcjs._useAiChatMessagesSuspense; exports.useAiChats = _chunkZGVKI7OMcjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunkZGVKI7OMcjs.useAttachmentUrlSuspense; exports.useBatch = _chunkZGVKI7OMcjs.useBatch; exports.useBroadcastEvent = _chunkZGVKI7OMcjs._useBroadcastEvent; exports.useCanRedo = _chunkZGVKI7OMcjs.useCanRedo; exports.useCanUndo = _chunkZGVKI7OMcjs.useCanUndo; exports.useClient = _chunkZGVKI7OMcjs.useClient; exports.useCreateAiChat = _chunkZGVKI7OMcjs.useCreateAiChat; exports.useCreateComment = _chunkZGVKI7OMcjs.useCreateComment; exports.useCreateThread = _chunkZGVKI7OMcjs._useCreateThread; exports.useDeleteAiChat = _chunkZGVKI7OMcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkZGVKI7OMcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkZGVKI7OMcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkZGVKI7OMcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkZGVKI7OMcjs._useDeleteThread; exports.useEditComment = _chunkZGVKI7OMcjs.useEditComment; exports.useEditThreadMetadata = _chunkZGVKI7OMcjs._useEditThreadMetadata; exports.useErrorListener = _chunkZGVKI7OMcjs.useErrorListener; exports.useEventListener = _chunkZGVKI7OMcjs._useEventListener; exports.useHistory = _chunkZGVKI7OMcjs.useHistory; exports.useHistoryVersions = _chunkZGVKI7OMcjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkZGVKI7OMcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkZGVKI7OMcjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkZGVKI7OMcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkZGVKI7OMcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkZGVKI7OMcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkZGVKI7OMcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkZGVKI7OMcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkZGVKI7OMcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkZGVKI7OMcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkZGVKI7OMcjs._useMutation; exports.useMyPresence = _chunkZGVKI7OMcjs._useMyPresence; exports.useNotificationSettings = _chunkZGVKI7OMcjs.useNotificationSettingsSuspense; exports.useOther = _chunkZGVKI7OMcjs._useOtherSuspense; exports.useOthers = _chunkZGVKI7OMcjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkZGVKI7OMcjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkZGVKI7OMcjs._useOthersListener; exports.useOthersMapped = _chunkZGVKI7OMcjs._useOthersMappedSuspense; exports.useRedo = _chunkZGVKI7OMcjs.useRedo; exports.useRemoveReaction = _chunkZGVKI7OMcjs.useRemoveReaction; exports.useRoom = _chunkZGVKI7OMcjs._useRoom; exports.useRoomInfo = _chunkZGVKI7OMcjs.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunkZGVKI7OMcjs._useRoomNotificationSettingsSuspense; exports.useRoomSubscriptionSettings = _chunkZGVKI7OMcjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunkZGVKI7OMcjs._useSelfSuspense; exports.useStatus = _chunkZGVKI7OMcjs.useStatus; exports.useStorage = _chunkZGVKI7OMcjs._useStorageSuspense; exports.useStorageRoot = _chunkZGVKI7OMcjs._useStorageRoot; exports.useStorageStatus = _chunkZGVKI7OMcjs.useStorageStatusSuspense; exports.useSubscribeToThread = _chunkZGVKI7OMcjs.useSubscribeToThread; exports.useSyncStatus = _chunkZGVKI7OMcjs.useSyncStatus; exports.useThreadSubscription = _chunkZGVKI7OMcjs.useThreadSubscription; exports.useThreads = _chunkZGVKI7OMcjs._useThreadsSuspense; exports.useUndo = _chunkZGVKI7OMcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkZGVKI7OMcjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunkZGVKI7OMcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkZGVKI7OMcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkZGVKI7OMcjs.useUpdateNotificationSettings; exports.useUpdateRoomNotificationSettings = _chunkZGVKI7OMcjs.useUpdateRoomNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkZGVKI7OMcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunkZGVKI7OMcjs._useUserSuspense; exports.useUserThreads_experimental = _chunkZGVKI7OMcjs._useUserThreadsSuspense_experimental;
147
155
  //# sourceMappingURL=suspense.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.cjs","../src/suspense.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;AACF,wDAA6B;AAC7B;AACA;ACxEA,wCAA4B;AAc5B,4CAAsD;AAXtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADyE7C;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;AACF,g9IAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.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 UseStorageStatusOptions,\n UseThreadsOptions,\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 {\n ClientContext,\n LiveblocksProvider,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useUpdateNotificationSettings,\n useSyncStatus,\n useErrorListener,\n} from \"./liveblocks\";\nexport {\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\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 useUpdateRoomNotificationSettings,\n useUpdateRoomSubscriptionSettings,\n} from \"./room\";\n\n// Export the Suspense versions of our hooks\n// (This part differs from src/index.ts)\nexport {\n useOtherSuspense as useOther,\n useOthersSuspense as useOthers,\n useOthersConnectionIdsSuspense as useOthersConnectionIds,\n useOthersMappedSuspense as useOthersMapped,\n useSelfSuspense as useSelf,\n useStorageSuspense as useStorage,\n useStorageStatusSuspense as useStorageStatus,\n useThreadsSuspense as useThreads,\n useAttachmentUrlSuspense as useAttachmentUrl,\n useHistoryVersionsSuspense as useHistoryVersions,\n useRoomNotificationSettingsSuspense as useRoomNotificationSettings,\n useRoomSubscriptionSettingsSuspense as useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useNotificationSettingsSuspense as useNotificationSettings,\n useRoomInfoSuspense as useRoomInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n} from \"./liveblocks\";\n"]}
1
+ {"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.cjs","../src/suspense.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;AACF,wDAA6B;AAC7B;AACA;AC5EA,wCAA4B;AAc5B,4CAAsD;AAXtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;AD6E7C;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;AACF,gtJAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.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 UseStorageStatusOptions,\n UseThreadsOptions,\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 {\n ClientContext,\n LiveblocksProvider,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSyncStatus,\n useErrorListener,\n} from \"./liveblocks\";\nexport {\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\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 useUpdateRoomNotificationSettings,\n useUpdateRoomSubscriptionSettings,\n} from \"./room\";\n\n// Export the Suspense versions of our hooks\n// (This part differs from src/index.ts)\nexport {\n useOtherSuspense as useOther,\n useOthersSuspense as useOthers,\n useOthersConnectionIdsSuspense as useOthersConnectionIds,\n useOthersMappedSuspense as useOthersMapped,\n useSelfSuspense as useSelf,\n useStorageSuspense as useStorage,\n useStorageStatusSuspense as useStorageStatus,\n useThreadsSuspense as useThreads,\n useAttachmentUrlSuspense as useAttachmentUrl,\n useHistoryVersionsSuspense as useHistoryVersions,\n useRoomNotificationSettingsSuspense as useRoomNotificationSettings,\n useRoomSubscriptionSettingsSuspense as useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useNotificationSettingsSuspense as useNotificationSettings,\n useRoomInfoSuspense as useRoomInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n useAiChatsSuspense as useAiChats,\n useAiChatMessagesSuspense as useAiChatMessages,\n} from \"./liveblocks\";\n"]}
@@ -1,5 +1,5 @@
1
1
  export { ClientSideSuspense, RoomContext } from './index.cjs';
2
- export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, I as useAddReaction, aJ as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, P as useCreateComment, Q as useCreateThread, z as useDeleteAllInboxNotifications, R as useDeleteComment, A as useDeleteInboxNotification, S as useDeleteThread, T as useEditComment, V as useEditThreadMetadata, B as useErrorListener, $ as useEventListener, a0 as useHistory, aK as useHistoryVersions, _ as useInboxNotificationThread, aN as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, W as useMarkThreadAsResolved, X as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, aO as useNotificationSettings, aB as useOther, aC as useOthers, aD as useOthersConnectionIds, a6 as useOthersListener, aE as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, aP as useRoomInfo, aL as useRoomNotificationSettings, aM as useRoomSubscriptionSettings, aF as useSelf, aa as useStatus, aG as useStorage, ab as useStorageRoot, aH as useStorageStatus, Y as useSubscribeToThread, F as useSyncStatus, ac as useThreadSubscription, aI as useThreads, ad as useUndo, aQ as useUnreadInboxNotificationsCount, Z as useUnsubscribeFromThread, ae as useUpdateMyPresence, aw as useUpdateNotificationSettings, af as useUpdateRoomNotificationSettings, ag as useUpdateRoomSubscriptionSettings, aR as useUser, aS as useUserThreads_experimental } from './room-CqT08uWZ.cjs';
2
+ export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, I as useAddReaction, aY as useAiChatMessages, aX as useAiChats, aN as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, ax as useCreateAiChat, P as useCreateComment, Q as useCreateThread, ay as useDeleteAiChat, z as useDeleteAllInboxNotifications, R as useDeleteComment, A as useDeleteInboxNotification, S as useDeleteThread, T as useEditComment, V as useEditThreadMetadata, B as useErrorListener, $ as useEventListener, a0 as useHistory, aO as useHistoryVersions, _ as useInboxNotificationThread, aR as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, W as useMarkThreadAsResolved, X as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, aS as useNotificationSettings, aF as useOther, aG as useOthers, aH as useOthersConnectionIds, a6 as useOthersListener, aI as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, aT as useRoomInfo, aP as useRoomNotificationSettings, aQ as useRoomSubscriptionSettings, aJ as useSelf, aa as useStatus, aK as useStorage, ab as useStorageRoot, aL as useStorageStatus, Y as useSubscribeToThread, F as useSyncStatus, ac as useThreadSubscription, aM as useThreads, ad as useUndo, aU as useUnreadInboxNotificationsCount, Z as useUnsubscribeFromThread, ae as useUpdateMyPresence, aw as useUpdateNotificationSettings, af as useUpdateRoomNotificationSettings, ag as useUpdateRoomSubscriptionSettings, aV as useUser, aW as useUserThreads_experimental } from './room-DmsjrDvP.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, RoomContext } from './index.js';
2
- export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, I as useAddReaction, aJ as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, P as useCreateComment, Q as useCreateThread, z as useDeleteAllInboxNotifications, R as useDeleteComment, A as useDeleteInboxNotification, S as useDeleteThread, T as useEditComment, V as useEditThreadMetadata, B as useErrorListener, $ as useEventListener, a0 as useHistory, aK as useHistoryVersions, _ as useInboxNotificationThread, aN as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, W as useMarkThreadAsResolved, X as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, aO as useNotificationSettings, aB as useOther, aC as useOthers, aD as useOthersConnectionIds, a6 as useOthersListener, aE as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, aP as useRoomInfo, aL as useRoomNotificationSettings, aM as useRoomSubscriptionSettings, aF as useSelf, aa as useStatus, aG as useStorage, ab as useStorageRoot, aH as useStorageStatus, Y as useSubscribeToThread, F as useSyncStatus, ac as useThreadSubscription, aI as useThreads, ad as useUndo, aQ as useUnreadInboxNotificationsCount, Z as useUnsubscribeFromThread, ae as useUpdateMyPresence, aw as useUpdateNotificationSettings, af as useUpdateRoomNotificationSettings, ag as useUpdateRoomSubscriptionSettings, aR as useUser, aS as useUserThreads_experimental } from './room-CqT08uWZ.js';
2
+ export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, I as useAddReaction, aY as useAiChatMessages, aX as useAiChats, aN as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, ax as useCreateAiChat, P as useCreateComment, Q as useCreateThread, ay as useDeleteAiChat, z as useDeleteAllInboxNotifications, R as useDeleteComment, A as useDeleteInboxNotification, S as useDeleteThread, T as useEditComment, V as useEditThreadMetadata, B as useErrorListener, $ as useEventListener, a0 as useHistory, aO as useHistoryVersions, _ as useInboxNotificationThread, aR as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, W as useMarkThreadAsResolved, X as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, aS as useNotificationSettings, aF as useOther, aG as useOthers, aH as useOthersConnectionIds, a6 as useOthersListener, aI as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, aT as useRoomInfo, aP as useRoomNotificationSettings, aQ as useRoomSubscriptionSettings, aJ as useSelf, aa as useStatus, aK as useStorage, ab as useStorageRoot, aL as useStorageStatus, Y as useSubscribeToThread, F as useSyncStatus, ac as useThreadSubscription, aM as useThreads, ad as useUndo, aU as useUnreadInboxNotificationsCount, Z as useUnsubscribeFromThread, ae as useUpdateMyPresence, aw as useUpdateNotificationSettings, af as useUpdateRoomNotificationSettings, ag as useUpdateRoomSubscriptionSettings, aV as useUser, aW as useUserThreads_experimental } from './room-DmsjrDvP.js';
3
3
  export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react';