@liveblocks/react 3.22.0-rc1 → 3.23.0-file1

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 _chunkEEEE2AWIcjs = require('./chunk-EEEE2AWI.cjs');
6
+ var _chunkCACTXCDPcjs = require('./chunk-CACTXCDP.cjs');
7
7
 
8
8
 
9
9
 
@@ -90,12 +90,20 @@ var _chunkEEEE2AWIcjs = require('./chunk-EEEE2AWI.cjs');
90
90
 
91
91
 
92
92
 
93
- var _chunkX6E4Y65Ycjs = require('./chunk-X6E4Y65Y.cjs');
93
+
94
+
95
+
96
+
97
+ var _chunkL5JH73RJcjs = require('./chunk-L5JH73RJ.cjs');
94
98
 
95
99
  // src/index.ts
96
100
  var _core = require('@liveblocks/core');
97
101
  var _client = require('@liveblocks/client');
98
- _core.detectDupes.call(void 0, _chunkEEEE2AWIcjs.PKG_NAME, _chunkEEEE2AWIcjs.PKG_VERSION, _chunkEEEE2AWIcjs.PKG_FORMAT);
102
+ _core.detectDupes.call(void 0, _chunkCACTXCDPcjs.PKG_NAME, _chunkCACTXCDPcjs.PKG_VERSION, _chunkCACTXCDPcjs.PKG_FORMAT);
103
+
104
+
105
+
106
+
99
107
 
100
108
 
101
109
 
@@ -185,5 +193,5 @@ _core.detectDupes.call(void 0, _chunkEEEE2AWIcjs.PKG_NAME, _chunkEEEE2AWIcjs.PKG
185
193
 
186
194
 
187
195
 
188
- exports.ClientContext = _chunkX6E4Y65Ycjs.ClientContext; exports.ClientSideSuspense = _chunkEEEE2AWIcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkX6E4Y65Ycjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkX6E4Y65Ycjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkX6E4Y65Ycjs.RegisterAiTool; exports.RoomContext = _chunkX6E4Y65Ycjs.GlobalRoomContext; exports.RoomProvider = _chunkX6E4Y65Ycjs._RoomProvider; exports.createLiveblocksContext = _chunkX6E4Y65Ycjs.createLiveblocksContext; exports.createRoomContext = _chunkX6E4Y65Ycjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkX6E4Y65Ycjs._useAddReaction; exports.useAiChat = _chunkX6E4Y65Ycjs._useAiChat; exports.useAiChatMessages = _chunkX6E4Y65Ycjs._useAiChatMessages; exports.useAiChatStatus = _chunkX6E4Y65Ycjs.useAiChatStatus; exports.useAiChats = _chunkX6E4Y65Ycjs._useAiChats; exports.useAttachmentUrl = _chunkX6E4Y65Ycjs.useAttachmentUrl; exports.useBroadcastEvent = _chunkX6E4Y65Ycjs._useBroadcastEvent; exports.useCanRedo = _chunkX6E4Y65Ycjs.useCanRedo; exports.useCanUndo = _chunkX6E4Y65Ycjs.useCanUndo; exports.useClient = _chunkX6E4Y65Ycjs.useClient; exports.useCreateAiChat = _chunkX6E4Y65Ycjs.useCreateAiChat; exports.useCreateComment = _chunkX6E4Y65Ycjs._useCreateComment; exports.useCreateFeed = _chunkX6E4Y65Ycjs.useCreateFeed; exports.useCreateFeedMessage = _chunkX6E4Y65Ycjs.useCreateFeedMessage; exports.useCreateThread = _chunkX6E4Y65Ycjs._useCreateThread; exports.useDeleteAiChat = _chunkX6E4Y65Ycjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkX6E4Y65Ycjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkX6E4Y65Ycjs.useDeleteComment; exports.useDeleteFeed = _chunkX6E4Y65Ycjs.useDeleteFeed; exports.useDeleteFeedMessage = _chunkX6E4Y65Ycjs.useDeleteFeedMessage; exports.useDeleteInboxNotification = _chunkX6E4Y65Ycjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkX6E4Y65Ycjs._useDeleteThread; exports.useEditComment = _chunkX6E4Y65Ycjs._useEditComment; exports.useEditCommentMetadata = _chunkX6E4Y65Ycjs._useEditCommentMetadata; exports.useEditThreadMetadata = _chunkX6E4Y65Ycjs._useEditThreadMetadata; exports.useErrorListener = _chunkX6E4Y65Ycjs.useErrorListener; exports.useEventListener = _chunkX6E4Y65Ycjs._useEventListener; exports.useFeedMessages = _chunkX6E4Y65Ycjs._useFeedMessages; exports.useFeeds = _chunkX6E4Y65Ycjs._useFeeds; exports.useGroupInfo = _chunkX6E4Y65Ycjs.useGroupInfo; exports.useHistory = _chunkX6E4Y65Ycjs.useHistory; exports.useHistoryVersionData = _chunkX6E4Y65Ycjs.useHistoryVersionData; exports.useHistoryVersionYjsData = _chunkX6E4Y65Ycjs.useHistoryVersionYjsData; exports.useHistoryVersions = _chunkX6E4Y65Ycjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkX6E4Y65Ycjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkX6E4Y65Ycjs.useInboxNotifications; exports.useIsInsideRoom = _chunkX6E4Y65Ycjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkX6E4Y65Ycjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkX6E4Y65Ycjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkX6E4Y65Ycjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkX6E4Y65Ycjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkX6E4Y65Ycjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkX6E4Y65Ycjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkX6E4Y65Ycjs._useMutation; exports.useMyPresence = _chunkX6E4Y65Ycjs._useMyPresence; exports.useNotificationSettings = _chunkX6E4Y65Ycjs.useNotificationSettings; exports.useOther = _chunkX6E4Y65Ycjs._useOther; exports.useOthers = _chunkX6E4Y65Ycjs._useOthers; exports.useOthersConnectionIds = _chunkX6E4Y65Ycjs.useOthersConnectionIds; exports.useOthersListener = _chunkX6E4Y65Ycjs._useOthersListener; exports.useOthersMapped = _chunkX6E4Y65Ycjs._useOthersMapped; exports.useRedo = _chunkX6E4Y65Ycjs.useRedo; exports.useRemoveReaction = _chunkX6E4Y65Ycjs.useRemoveReaction; exports.useRoom = _chunkX6E4Y65Ycjs._useRoom; exports.useRoomInfo = _chunkX6E4Y65Ycjs.useRoomInfo; exports.useRoomSubscriptionSettings = _chunkX6E4Y65Ycjs._useRoomSubscriptionSettings; exports.useSearchComments = _chunkX6E4Y65Ycjs._useSearchComments; exports.useSelf = _chunkX6E4Y65Ycjs._useSelf; exports.useSendAiMessage = _chunkX6E4Y65Ycjs.useSendAiMessage; exports.useStatus = _chunkX6E4Y65Ycjs.useStatus; exports.useStorage = _chunkX6E4Y65Ycjs._useStorage; exports.useStorageRoot = _chunkX6E4Y65Ycjs._useStorageRoot; exports.useSubscribeToThread = _chunkX6E4Y65Ycjs.useSubscribeToThread; exports.useSyncStatus = _chunkX6E4Y65Ycjs.useSyncStatus; exports.useThreadSubscription = _chunkX6E4Y65Ycjs.useThreadSubscription; exports.useThreads = _chunkX6E4Y65Ycjs._useThreads; exports.useUndo = _chunkX6E4Y65Ycjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkX6E4Y65Ycjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunkX6E4Y65Ycjs.useUnsubscribeFromThread; exports.useUpdateFeedMessage = _chunkX6E4Y65Ycjs.useUpdateFeedMessage; exports.useUpdateFeedMetadata = _chunkX6E4Y65Ycjs.useUpdateFeedMetadata; exports.useUpdateMyPresence = _chunkX6E4Y65Ycjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkX6E4Y65Ycjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkX6E4Y65Ycjs.useUpdateRoomSubscriptionSettings; exports.useUrlMetadata = _chunkX6E4Y65Ycjs._useUrlMetadata; exports.useUser = _chunkX6E4Y65Ycjs._useUser; exports.useUserThreads_experimental = _chunkX6E4Y65Ycjs._useUserThreads_experimental;
196
+ exports.ClientContext = _chunkL5JH73RJcjs.ClientContext; exports.ClientSideSuspense = _chunkCACTXCDPcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkL5JH73RJcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkL5JH73RJcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkL5JH73RJcjs.RegisterAiTool; exports.RoomContext = _chunkL5JH73RJcjs.GlobalRoomContext; exports.RoomProvider = _chunkL5JH73RJcjs._RoomProvider; exports.createLiveblocksContext = _chunkL5JH73RJcjs.createLiveblocksContext; exports.createRoomContext = _chunkL5JH73RJcjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkL5JH73RJcjs._useAddReaction; exports.useAiChat = _chunkL5JH73RJcjs._useAiChat; exports.useAiChatMessages = _chunkL5JH73RJcjs._useAiChatMessages; exports.useAiChatStatus = _chunkL5JH73RJcjs.useAiChatStatus; exports.useAiChats = _chunkL5JH73RJcjs._useAiChats; exports.useAttachmentUrl = _chunkL5JH73RJcjs.useAttachmentUrl; exports.useBroadcastEvent = _chunkL5JH73RJcjs._useBroadcastEvent; exports.useCanRedo = _chunkL5JH73RJcjs.useCanRedo; exports.useCanUndo = _chunkL5JH73RJcjs.useCanUndo; exports.useClient = _chunkL5JH73RJcjs.useClient; exports.useCreateAiChat = _chunkL5JH73RJcjs.useCreateAiChat; exports.useCreateComment = _chunkL5JH73RJcjs._useCreateComment; exports.useCreateFeed = _chunkL5JH73RJcjs.useCreateFeed; exports.useCreateFeedMessage = _chunkL5JH73RJcjs.useCreateFeedMessage; exports.useCreateThread = _chunkL5JH73RJcjs._useCreateThread; exports.useDeleteAiChat = _chunkL5JH73RJcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkL5JH73RJcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkL5JH73RJcjs.useDeleteComment; exports.useDeleteFeed = _chunkL5JH73RJcjs.useDeleteFeed; exports.useDeleteFeedMessage = _chunkL5JH73RJcjs.useDeleteFeedMessage; exports.useDeleteHistoryVersion = _chunkL5JH73RJcjs.useDeleteHistoryVersion; exports.useDeleteInboxNotification = _chunkL5JH73RJcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkL5JH73RJcjs._useDeleteThread; exports.useEditComment = _chunkL5JH73RJcjs._useEditComment; exports.useEditCommentMetadata = _chunkL5JH73RJcjs._useEditCommentMetadata; exports.useEditThreadMetadata = _chunkL5JH73RJcjs._useEditThreadMetadata; exports.useErrorListener = _chunkL5JH73RJcjs.useErrorListener; exports.useEventListener = _chunkL5JH73RJcjs._useEventListener; exports.useFeedMessages = _chunkL5JH73RJcjs._useFeedMessages; exports.useFeeds = _chunkL5JH73RJcjs._useFeeds; exports.useFileUrl = _chunkL5JH73RJcjs.useFileUrl; exports.useGroupInfo = _chunkL5JH73RJcjs.useGroupInfo; exports.useHistory = _chunkL5JH73RJcjs.useHistory; exports.useHistoryVersionData = _chunkL5JH73RJcjs.useHistoryVersionData; exports.useHistoryVersionStorageData = _chunkL5JH73RJcjs.useHistoryVersionStorageData; exports.useHistoryVersionYjsData = _chunkL5JH73RJcjs.useHistoryVersionYjsData; exports.useHistoryVersions = _chunkL5JH73RJcjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkL5JH73RJcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkL5JH73RJcjs.useInboxNotifications; exports.useIsInsideRoom = _chunkL5JH73RJcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkL5JH73RJcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkL5JH73RJcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkL5JH73RJcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkL5JH73RJcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkL5JH73RJcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkL5JH73RJcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkL5JH73RJcjs._useMutation; exports.useMyPresence = _chunkL5JH73RJcjs._useMyPresence; exports.useNotificationSettings = _chunkL5JH73RJcjs.useNotificationSettings; exports.useOther = _chunkL5JH73RJcjs._useOther; exports.useOthers = _chunkL5JH73RJcjs._useOthers; exports.useOthersConnectionIds = _chunkL5JH73RJcjs.useOthersConnectionIds; exports.useOthersListener = _chunkL5JH73RJcjs._useOthersListener; exports.useOthersMapped = _chunkL5JH73RJcjs._useOthersMapped; exports.useRedo = _chunkL5JH73RJcjs.useRedo; exports.useRemoveReaction = _chunkL5JH73RJcjs.useRemoveReaction; exports.useRestoreToStorageVersion = _chunkL5JH73RJcjs.useRestoreToStorageVersion; exports.useRoom = _chunkL5JH73RJcjs._useRoom; exports.useRoomInfo = _chunkL5JH73RJcjs.useRoomInfo; exports.useRoomSubscriptionSettings = _chunkL5JH73RJcjs._useRoomSubscriptionSettings; exports.useSearchComments = _chunkL5JH73RJcjs._useSearchComments; exports.useSelf = _chunkL5JH73RJcjs._useSelf; exports.useSendAiMessage = _chunkL5JH73RJcjs.useSendAiMessage; exports.useStatus = _chunkL5JH73RJcjs.useStatus; exports.useStorage = _chunkL5JH73RJcjs._useStorage; exports.useStorageRoot = _chunkL5JH73RJcjs._useStorageRoot; exports.useSubscribeToThread = _chunkL5JH73RJcjs.useSubscribeToThread; exports.useSyncStatus = _chunkL5JH73RJcjs.useSyncStatus; exports.useThreadSubscription = _chunkL5JH73RJcjs.useThreadSubscription; exports.useThreads = _chunkL5JH73RJcjs._useThreads; exports.useUndo = _chunkL5JH73RJcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkL5JH73RJcjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunkL5JH73RJcjs.useUnsubscribeFromThread; exports.useUpdateFeedMessage = _chunkL5JH73RJcjs.useUpdateFeedMessage; exports.useUpdateFeedMetadata = _chunkL5JH73RJcjs.useUpdateFeedMetadata; exports.useUpdateMyPresence = _chunkL5JH73RJcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkL5JH73RJcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkL5JH73RJcjs.useUpdateRoomSubscriptionSettings; exports.useUrlMetadata = _chunkL5JH73RJcjs._useUrlMetadata; exports.useUser = _chunkL5JH73RJcjs._useUser; exports.useUserThreads_experimental = _chunkL5JH73RJcjs._useUserThreads_experimental;
189
197
  //# 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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;AC7FA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;AD8F7C;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,smLAAC","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 {\n ClientContext,\n GlobalRoomContext as RoomContext,\n useClient,\n} 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 useEditCommentMetadata,\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 useHistoryVersionYjsData,\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 useFeeds,\n useFeedMessages,\n useCreateFeed,\n useDeleteFeed,\n useUpdateFeedMetadata,\n useCreateFeedMessage,\n useDeleteFeedMessage,\n useUpdateFeedMessage,\n useSearchComments,\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 useUrlMetadata,\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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;ACjGA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADkG7C;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,g5LAAC","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 {\n ClientContext,\n GlobalRoomContext as RoomContext,\n useClient,\n} 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 useEditCommentMetadata,\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 useHistoryVersionStorageData,\n useHistoryVersionYjsData,\n useDeleteHistoryVersion,\n useRestoreToStorageVersion,\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 useFeeds,\n useFeedMessages,\n useCreateFeed,\n useDeleteFeed,\n useUpdateFeedMetadata,\n useCreateFeedMessage,\n useDeleteFeedMessage,\n useUpdateFeedMessage,\n useSearchComments,\n useAttachmentUrl,\n useFileUrl,\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 useUrlMetadata,\n} from \"./liveblocks\";\n"]}
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as RegisterAiKnowledgeProps, z as RegisterAiToolProps } from './room-C5ak1P_z.cjs';
2
- export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, B as RoomContext, _ as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, D as UseThreadsOptions, E as createLiveblocksContext, F as createRoomContext, H as useAddReaction, I as useAiChat, J as useAiChatMessages, K as useAiChatStatus, N as useAiChats, O as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, V as useClient, W as useCreateAiChat, X as useCreateComment, Y as useCreateFeed, Z as useCreateFeedMessage, $ as useCreateThread, a0 as useDeleteAiChat, a1 as useDeleteAllInboxNotifications, a2 as useDeleteComment, a3 as useDeleteFeed, a4 as useDeleteFeedMessage, a5 as useDeleteInboxNotification, a6 as useDeleteThread, a7 as useEditComment, a8 as useEditCommentMetadata, a9 as useEditThreadMetadata, aa as useErrorListener, ab as useEventListener, ac as useFeedMessages, ad as useFeeds, ae as useGroupInfo, af as useHistory, ag as useHistoryVersionData, ah as useHistoryVersionYjsData, ai as useHistoryVersions, aj as useInboxNotificationThread, ak as useInboxNotifications, al as useIsInsideRoom, am as useLostConnectionListener, an as useMarkAllInboxNotificationsAsRead, ao as useMarkInboxNotificationAsRead, ap as useMarkThreadAsRead, aq as useMarkThreadAsResolved, ar as useMarkThreadAsUnresolved, as as useMutation, at as useMyPresence, au as useNotificationSettings, av as useOther, aw as useOthers, ax as useOthersConnectionIds, ay as useOthersListener, az as useOthersMapped, aA as useRedo, aB as useRemoveReaction, aC as useRoom, aD as useRoomInfo, aE as useRoomSubscriptionSettings, aF as useSearchComments, aG as useSelf, aH as useSendAiMessage, aI as useStatus, aJ as useStorage, aK as useStorageRoot, aL as useSubscribeToThread, aM as useSyncStatus, aN as useThreadSubscription, aO as useThreads, aP as useUndo, aQ as useUnreadInboxNotificationsCount, aR as useUnsubscribeFromThread, aS as useUpdateFeedMessage, aT as useUpdateFeedMetadata, aU as useUpdateMyPresence, aV as useUpdateNotificationSettings, aW as useUpdateRoomSubscriptionSettings, aX as useUrlMetadata, aY as useUser, aZ as useUserThreads_experimental } from './room-C5ak1P_z.cjs';
1
+ import { R as RegisterAiKnowledgeProps, A as RegisterAiToolProps } from './room-BRD10hWb.cjs';
2
+ export { B as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, D as RoomContext, _ as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, E as UseThreadsOptions, F as createLiveblocksContext, H as createRoomContext, I as useAddReaction, J as useAiChat, K as useAiChatMessages, N as useAiChatStatus, O as useAiChats, P as useAttachmentUrl, Q as useBroadcastEvent, T as useCanRedo, V as useCanUndo, W as useClient, X as useCreateAiChat, Y as useCreateComment, Z as useCreateFeed, $ as useCreateFeedMessage, a0 as useCreateThread, a1 as useDeleteAiChat, a2 as useDeleteAllInboxNotifications, a3 as useDeleteComment, a4 as useDeleteFeed, a5 as useDeleteFeedMessage, a6 as useDeleteHistoryVersion, a7 as useDeleteInboxNotification, a8 as useDeleteThread, a9 as useEditComment, aa as useEditCommentMetadata, ab as useEditThreadMetadata, ac as useErrorListener, ad as useEventListener, ae as useFeedMessages, af as useFeeds, ag as useFileUrl, ah as useGroupInfo, ai as useHistory, aj as useHistoryVersionData, ak as useHistoryVersionStorageData, al as useHistoryVersionYjsData, am as useHistoryVersions, an as useInboxNotificationThread, ao as useInboxNotifications, ap as useIsInsideRoom, aq as useLostConnectionListener, ar as useMarkAllInboxNotificationsAsRead, as as useMarkInboxNotificationAsRead, at as useMarkThreadAsRead, au as useMarkThreadAsResolved, av as useMarkThreadAsUnresolved, aw as useMutation, ax as useMyPresence, ay as useNotificationSettings, az as useOther, aA as useOthers, aB as useOthersConnectionIds, aC as useOthersListener, aD as useOthersMapped, aE as useRedo, aF as useRemoveReaction, aG as useRestoreToStorageVersion, aH as useRoom, aI as useRoomInfo, aJ as useRoomSubscriptionSettings, aK as useSearchComments, aL as useSelf, aM as useSendAiMessage, aN as useStatus, aO as useStorage, aP as useStorageRoot, aQ as useSubscribeToThread, aR as useSyncStatus, aS as useThreadSubscription, aT as useThreads, aU as useUndo, aV as useUnreadInboxNotificationsCount, aW as useUnsubscribeFromThread, aX as useUpdateFeedMessage, aY as useUpdateFeedMetadata, aZ as useUpdateMyPresence, a_ as useUpdateNotificationSettings, a$ as useUpdateRoomSubscriptionSettings, b0 as useUrlMetadata, b1 as useUser, b2 as useUserThreads_experimental } from './room-BRD10hWb.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, z as RegisterAiToolProps } from './room-C5ak1P_z.js';
2
- export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, B as RoomContext, _ as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, D as UseThreadsOptions, E as createLiveblocksContext, F as createRoomContext, H as useAddReaction, I as useAiChat, J as useAiChatMessages, K as useAiChatStatus, N as useAiChats, O as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, V as useClient, W as useCreateAiChat, X as useCreateComment, Y as useCreateFeed, Z as useCreateFeedMessage, $ as useCreateThread, a0 as useDeleteAiChat, a1 as useDeleteAllInboxNotifications, a2 as useDeleteComment, a3 as useDeleteFeed, a4 as useDeleteFeedMessage, a5 as useDeleteInboxNotification, a6 as useDeleteThread, a7 as useEditComment, a8 as useEditCommentMetadata, a9 as useEditThreadMetadata, aa as useErrorListener, ab as useEventListener, ac as useFeedMessages, ad as useFeeds, ae as useGroupInfo, af as useHistory, ag as useHistoryVersionData, ah as useHistoryVersionYjsData, ai as useHistoryVersions, aj as useInboxNotificationThread, ak as useInboxNotifications, al as useIsInsideRoom, am as useLostConnectionListener, an as useMarkAllInboxNotificationsAsRead, ao as useMarkInboxNotificationAsRead, ap as useMarkThreadAsRead, aq as useMarkThreadAsResolved, ar as useMarkThreadAsUnresolved, as as useMutation, at as useMyPresence, au as useNotificationSettings, av as useOther, aw as useOthers, ax as useOthersConnectionIds, ay as useOthersListener, az as useOthersMapped, aA as useRedo, aB as useRemoveReaction, aC as useRoom, aD as useRoomInfo, aE as useRoomSubscriptionSettings, aF as useSearchComments, aG as useSelf, aH as useSendAiMessage, aI as useStatus, aJ as useStorage, aK as useStorageRoot, aL as useSubscribeToThread, aM as useSyncStatus, aN as useThreadSubscription, aO as useThreads, aP as useUndo, aQ as useUnreadInboxNotificationsCount, aR as useUnsubscribeFromThread, aS as useUpdateFeedMessage, aT as useUpdateFeedMetadata, aU as useUpdateMyPresence, aV as useUpdateNotificationSettings, aW as useUpdateRoomSubscriptionSettings, aX as useUrlMetadata, aY as useUser, aZ as useUserThreads_experimental } from './room-C5ak1P_z.js';
1
+ import { R as RegisterAiKnowledgeProps, A as RegisterAiToolProps } from './room-BRD10hWb.js';
2
+ export { B as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, D as RoomContext, _ as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, E as UseThreadsOptions, F as createLiveblocksContext, H as createRoomContext, I as useAddReaction, J as useAiChat, K as useAiChatMessages, N as useAiChatStatus, O as useAiChats, P as useAttachmentUrl, Q as useBroadcastEvent, T as useCanRedo, V as useCanUndo, W as useClient, X as useCreateAiChat, Y as useCreateComment, Z as useCreateFeed, $ as useCreateFeedMessage, a0 as useCreateThread, a1 as useDeleteAiChat, a2 as useDeleteAllInboxNotifications, a3 as useDeleteComment, a4 as useDeleteFeed, a5 as useDeleteFeedMessage, a6 as useDeleteHistoryVersion, a7 as useDeleteInboxNotification, a8 as useDeleteThread, a9 as useEditComment, aa as useEditCommentMetadata, ab as useEditThreadMetadata, ac as useErrorListener, ad as useEventListener, ae as useFeedMessages, af as useFeeds, ag as useFileUrl, ah as useGroupInfo, ai as useHistory, aj as useHistoryVersionData, ak as useHistoryVersionStorageData, al as useHistoryVersionYjsData, am as useHistoryVersions, an as useInboxNotificationThread, ao as useInboxNotifications, ap as useIsInsideRoom, aq as useLostConnectionListener, ar as useMarkAllInboxNotificationsAsRead, as as useMarkInboxNotificationAsRead, at as useMarkThreadAsRead, au as useMarkThreadAsResolved, av as useMarkThreadAsUnresolved, aw as useMutation, ax as useMyPresence, ay as useNotificationSettings, az as useOther, aA as useOthers, aB as useOthersConnectionIds, aC as useOthersListener, aD as useOthersMapped, aE as useRedo, aF as useRemoveReaction, aG as useRestoreToStorageVersion, aH as useRoom, aI as useRoomInfo, aJ as useRoomSubscriptionSettings, aK as useSearchComments, aL as useSelf, aM as useSendAiMessage, aN as useStatus, aO as useStorage, aP as useStorageRoot, aQ as useSubscribeToThread, aR as useSyncStatus, aS as useThreadSubscription, aT as useThreads, aU as useUndo, aV as useUnreadInboxNotificationsCount, aW as useUnsubscribeFromThread, aX as useUpdateFeedMessage, aY as useUpdateFeedMetadata, aZ as useUpdateMyPresence, a_ as useUpdateNotificationSettings, a$ as useUpdateRoomSubscriptionSettings, b0 as useUrlMetadata, b1 as useUser, b2 as useUserThreads_experimental } from './room-BRD10hWb.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-YJ3VWMRC.js";
6
+ } from "./chunk-B63FZ2MX.js";
7
7
  import {
8
8
  ClientContext,
9
9
  GlobalRoomContext,
@@ -60,11 +60,14 @@ import {
60
60
  useDeleteComment,
61
61
  useDeleteFeed,
62
62
  useDeleteFeedMessage,
63
+ useDeleteHistoryVersion,
63
64
  useDeleteInboxNotification,
64
65
  useErrorListener,
66
+ useFileUrl,
65
67
  useGroupInfo,
66
68
  useHistory,
67
69
  useHistoryVersionData,
70
+ useHistoryVersionStorageData,
68
71
  useHistoryVersionYjsData,
69
72
  useInboxNotifications,
70
73
  useLostConnectionListener,
@@ -77,6 +80,7 @@ import {
77
80
  useOthersConnectionIds,
78
81
  useRedo,
79
82
  useRemoveReaction,
83
+ useRestoreToStorageVersion,
80
84
  useRoomInfo,
81
85
  useSendAiMessage,
82
86
  useStatus,
@@ -90,7 +94,7 @@ import {
90
94
  useUpdateFeedMetadata,
91
95
  useUpdateNotificationSettings,
92
96
  useUpdateRoomSubscriptionSettings
93
- } from "./chunk-BTNBUDWN.js";
97
+ } from "./chunk-CTG3FMRO.js";
94
98
 
95
99
  // src/index.ts
96
100
  import { detectDupes } from "@liveblocks/core";
@@ -128,6 +132,7 @@ export {
128
132
  useDeleteComment,
129
133
  useDeleteFeed,
130
134
  useDeleteFeedMessage,
135
+ useDeleteHistoryVersion,
131
136
  useDeleteInboxNotification,
132
137
  _useDeleteThread as useDeleteThread,
133
138
  _useEditComment as useEditComment,
@@ -137,9 +142,11 @@ export {
137
142
  _useEventListener as useEventListener,
138
143
  _useFeedMessages as useFeedMessages,
139
144
  _useFeeds as useFeeds,
145
+ useFileUrl,
140
146
  useGroupInfo,
141
147
  useHistory,
142
148
  useHistoryVersionData,
149
+ useHistoryVersionStorageData,
143
150
  useHistoryVersionYjsData,
144
151
  _useHistoryVersions as useHistoryVersions,
145
152
  _useInboxNotificationThread as useInboxNotificationThread,
@@ -161,6 +168,7 @@ export {
161
168
  _useOthersMapped as useOthersMapped,
162
169
  useRedo,
163
170
  useRemoveReaction,
171
+ useRestoreToStorageVersion,
164
172
  _useRoom as useRoom,
165
173
  useRoomInfo,
166
174
  _useRoomSubscriptionSettings as useRoomSubscriptionSettings,
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 {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport {\n ClientContext,\n GlobalRoomContext as RoomContext,\n useClient,\n} 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 useEditCommentMetadata,\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 useHistoryVersionYjsData,\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 useFeeds,\n useFeedMessages,\n useCreateFeed,\n useDeleteFeed,\n useUpdateFeedMetadata,\n useCreateFeedMessage,\n useDeleteFeedMessage,\n useUpdateFeedMessage,\n useSearchComments,\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 useUrlMetadata,\n} from \"./liveblocks\";\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 {\n ClientContext,\n GlobalRoomContext as RoomContext,\n useClient,\n} 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 useEditCommentMetadata,\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 useHistoryVersionStorageData,\n useHistoryVersionYjsData,\n useDeleteHistoryVersion,\n useRestoreToStorageVersion,\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 useFeeds,\n useFeedMessages,\n useCreateFeed,\n useDeleteFeed,\n useUpdateFeedMetadata,\n useCreateFeedMessage,\n useDeleteFeedMessage,\n useUpdateFeedMessage,\n useSearchComments,\n useAttachmentUrl,\n useFileUrl,\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 useUrlMetadata,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAe5B,SAAS,SAAS,oCAAoC;AAZtD,YAAY,UAAU,aAAa,UAAU;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import { BaseUserMeta, Client, RoomSubscriptionSettings, Json, JsonObject, LsonObject, LiveObject, User, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, ClientOptions, CommentData as CommentData$1, ThreadData as ThreadData$1, FeedCreateMetadata as FeedCreateMetadata$1, FeedUpdateMetadata as FeedUpdateMetadata$1 } from '@liveblocks/client';
2
2
  import * as _liveblocks_core from '@liveblocks/core';
3
- import { OpaqueClient, OpaqueRoom, Relax, AiAssistantContentPart, AiKnowledgeSource, AiOpaqueToolDefinition, BaseMetadata, ThreadVisibility, QueryMetadata, AsyncLoading, AsyncError, Resolve, AsyncSuccess, ThreadData, InboxNotificationData, AsyncResult, HistoryVersion, NotificationSettings, AiChat, WithNavigation, AiChatMessage, UrlMetadata, Feed, FeedMessage, CommentBody, CommentAttachment, PartialUnless, Patchable, GroupData, RoomEventMessage, CommentData, Client as Client$1, DRI, DGI, LiveblocksError, SyncStatus, ToJson, FeedFetchMetadataFilter, FeedCreateMetadata, FeedUpdateMetadata, SearchCommentsResult, PartialNotificationSettings, AiUserMessage, WithRequired, AiChatsQuery, MessageId, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, SubscriptionKey, SubscriptionData, ISignal, InboxNotificationDeleteInfo, CommentUserReaction, RoomSubscriptionSettings as RoomSubscriptionSettings$1, DerivedSignal, SubscriptionDeleteInfo, PermissionMatrix, RoomPermissions, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DefaultMap, DU, DTM, DCM, MentionData, PermissionResources, RequiredAccessLevel, TextEditorType, IYjsProvider, DP, DS, DE, DFM, DFMD } from '@liveblocks/core';
3
+ import { OpaqueClient, OpaqueRoom, Relax, AiAssistantContentPart, AiKnowledgeSource, AiOpaqueToolDefinition, BaseMetadata, ThreadVisibility, QueryMetadata, AsyncLoading, AsyncError, Resolve, AsyncSuccess, ThreadData, InboxNotificationData, AsyncResult, HistoryVersion, NotificationSettings, AiChat, WithNavigation, AiChatMessage, UrlMetadata, Feed, FeedMessage, CommentBody, CommentAttachment, PartialUnless, Patchable, GroupData, RoomEventMessage, CommentData, Client as Client$1, DRI, DGI, LiveblocksError, SyncStatus, ToJson, FeedFetchMetadataFilter, FeedCreateMetadata, FeedUpdateMetadata, SearchCommentsResult, LiveFileReference, PartialNotificationSettings, AiUserMessage, WithRequired, AiChatsQuery, MessageId, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, SubscriptionKey, SubscriptionData, ISignal, InboxNotificationDeleteInfo, CommentUserReaction, RoomSubscriptionSettings as RoomSubscriptionSettings$1, DerivedSignal, SubscriptionDeleteInfo, PermissionMatrix, RoomPermissions, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DefaultMap, DU, DTM, DCM, MentionData, PermissionResources, RequiredAccessLevel, TextEditorType, IYjsProvider, DP, DS, DE, DFM, DFMD } from '@liveblocks/core';
4
4
  import { Context, ReactNode, ComponentType, PropsWithChildren } from 'react';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
 
@@ -254,6 +254,8 @@ type GroupInfoAsyncResult = AsyncResult<DGI, "info">;
254
254
  type GroupInfoAsyncSuccess = AsyncSuccess<DGI, "info">;
255
255
  type AttachmentUrlAsyncResult = AsyncResult<string, "url">;
256
256
  type AttachmentUrlAsyncSuccess = AsyncSuccess<string, "url">;
257
+ type FileUrlAsyncResult = AsyncResult<string, "url">;
258
+ type FileUrlAsyncSuccess = AsyncSuccess<string, "url">;
257
259
  type GroupAsyncResult = AsyncResult<GroupData | undefined, "group">;
258
260
  type CreateThreadOptions<TM extends BaseMetadata, CM extends BaseMetadata> = Resolve<{
259
261
  body: CommentBody;
@@ -318,6 +320,7 @@ type UnreadInboxNotificationsCountAsyncResult = AsyncResult<number, "count">;
318
320
  type NotificationSettingsAsyncResult = AsyncResult<NotificationSettings, "settings">;
319
321
  type RoomSubscriptionSettingsAsyncSuccess = AsyncSuccess<RoomSubscriptionSettings, "settings">;
320
322
  type RoomSubscriptionSettingsAsyncResult = AsyncResult<RoomSubscriptionSettings, "settings">;
323
+ type HistoryVersionStorageDataAsyncResult = AsyncResult<LiveObject<LsonObject>>;
321
324
  type HistoryVersionYjsDataAsyncResult = AsyncResult<Uint8Array>;
322
325
  type HistoryVersionsAsyncSuccess = AsyncSuccess<HistoryVersion[], "versions">;
323
326
  type HistoryVersionsAsyncResult = AsyncResult<HistoryVersion[], "versions">;
@@ -1119,6 +1122,16 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
1119
1122
  * const { url, error, isLoading } = useAttachmentUrl("at_xxx");
1120
1123
  */
1121
1124
  useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncResult;
1125
+ /**
1126
+ * Returns a presigned URL for a `LiveFile`.
1127
+ *
1128
+ * @example
1129
+ * const { url, error, isLoading } = useFileUrl("fl_xxx");
1130
+ *
1131
+ * @example
1132
+ * const { url, error, isLoading } = useFileUrl(liveFile);
1133
+ */
1134
+ useFileUrl(file: LiveFileReference): FileUrlAsyncResult;
1122
1135
  /**
1123
1136
  * (Private beta) Returns a history of versions of the current room.
1124
1137
  *
@@ -1126,6 +1139,13 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
1126
1139
  * const { versions, error, isLoading } = useHistoryVersions();
1127
1140
  */
1128
1141
  useHistoryVersions(): HistoryVersionsAsyncResult;
1142
+ /**
1143
+ * Returns the Storage data for a given version of the room.
1144
+ *
1145
+ * @example
1146
+ * const { data, error, isLoading } = useHistoryVersionStorageData(version.id);
1147
+ */
1148
+ useHistoryVersionStorageData(id: string): HistoryVersionStorageDataAsyncResult;
1129
1149
  /**
1130
1150
  * Returns the Yjs data for a given version of the room.
1131
1151
  *
@@ -1142,6 +1162,24 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
1142
1162
  * const { data, error, isLoading } = useHistoryVersionData(version.id);
1143
1163
  */
1144
1164
  useHistoryVersionData(id: string): HistoryVersionYjsDataAsyncResult;
1165
+ /**
1166
+ * Returns a function that permanently deletes a version from the room's
1167
+ * history.
1168
+ *
1169
+ * @example
1170
+ * const deleteHistoryVersion = useDeleteHistoryVersion();
1171
+ * deleteHistoryVersion(version.id);
1172
+ */
1173
+ useDeleteHistoryVersion(): (versionId: string) => Promise<void>;
1174
+ /**
1175
+ * Returns a function that restores the room's Storage to the given
1176
+ * historic version, applied as a single undoable change.
1177
+ *
1178
+ * @example
1179
+ * const restore = useRestoreToStorageVersion(version.id);
1180
+ * await restore();
1181
+ */
1182
+ useRestoreToStorageVersion(versionId: string): () => Promise<void>;
1145
1183
  suspense: Resolve<RoomContextBundleCommon<P, S, U, E, TM, CM, FM, FMD> & SharedContextBundle<U>["suspense"] & {
1146
1184
  /**
1147
1185
  * Extract arbitrary data from the Liveblocks Storage state, using an
@@ -1251,6 +1289,16 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
1251
1289
  * const { url } = useAttachmentUrl("at_xxx");
1252
1290
  */
1253
1291
  useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncSuccess;
1292
+ /**
1293
+ * Returns a presigned URL for a `LiveFile`.
1294
+ *
1295
+ * @example
1296
+ * const { url } = useFileUrl("fl_xxx");
1297
+ *
1298
+ * @example
1299
+ * const { url } = useFileUrl(liveFile);
1300
+ */
1301
+ useFileUrl(file: LiveFileReference): FileUrlAsyncSuccess;
1254
1302
  }>;
1255
1303
  }>;
1256
1304
  /**
@@ -2649,6 +2697,13 @@ declare function useThreadSubscription(threadId: string): ThreadSubscription;
2649
2697
  * @private
2650
2698
  */
2651
2699
  declare function useRoomThreadSubscription(roomId: string, threadId: string): ThreadSubscription;
2700
+ /**
2701
+ * Returns the Storage data for a given version of the room.
2702
+ *
2703
+ * @example
2704
+ * const { data, isLoading, error } = useHistoryVersionStorageData(versionId);
2705
+ */
2706
+ declare function useHistoryVersionStorageData(versionId: string): HistoryVersionStorageDataAsyncResult;
2652
2707
  /**
2653
2708
  * @deprecated Use `useHistoryVersionYjsData(versionId)` instead.
2654
2709
  *
@@ -2665,6 +2720,23 @@ declare function useHistoryVersionData(versionId: string): HistoryVersionYjsData
2665
2720
  * const { data, isLoading, error } = useHistoryVersionYjsData(versionId);
2666
2721
  */
2667
2722
  declare function useHistoryVersionYjsData(versionId: string): HistoryVersionYjsDataAsyncResult;
2723
+ /**
2724
+ * Returns a function that permanently deletes a version from the room's history.
2725
+ *
2726
+ * @example
2727
+ * const deleteHistoryVersion = useDeleteHistoryVersion();
2728
+ * deleteHistoryVersion(versionId);
2729
+ */
2730
+ declare function useDeleteHistoryVersion(): (versionId: string) => Promise<void>;
2731
+ /**
2732
+ * Returns a function that restores the room's Storage to the given historic
2733
+ * version, applied as a single undoable change (broadcast to other clients).
2734
+ *
2735
+ * @example
2736
+ * const restore = useRestoreToStorageVersion(versionId);
2737
+ * await restore();
2738
+ */
2739
+ declare function useRestoreToStorageVersion(versionId: string): () => Promise<void>;
2668
2740
  /**
2669
2741
  * Returns a function that updates the user's subscription settings
2670
2742
  * for the current room.
@@ -2708,6 +2780,20 @@ declare function useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncResul
2708
2780
  * @private For internal use only. Do not rely on this hook. Use `useAttachmentUrl` instead.
2709
2781
  */
2710
2782
  declare function useRoomAttachmentUrl(attachmentId: string, roomId: string): AttachmentUrlAsyncResult;
2783
+ /**
2784
+ * Returns a presigned URL for a `LiveFile`.
2785
+ *
2786
+ * @example
2787
+ * const { url, error, isLoading } = useFileUrl("fl_xxx");
2788
+ *
2789
+ * @example
2790
+ * const { url, error, isLoading } = useFileUrl(liveFile);
2791
+ */
2792
+ declare function useFileUrl(file: LiveFileReference): FileUrlAsyncResult;
2793
+ /**
2794
+ * @private For internal use only. Do not rely on this hook. Use `useFileUrl` instead.
2795
+ */
2796
+ declare function useRoomFileUrl(file: LiveFileReference, roomId: string): FileUrlAsyncResult;
2711
2797
  /**
2712
2798
  * Returns a presigned URL for an attachment by its ID.
2713
2799
  *
@@ -2719,6 +2805,20 @@ declare function useAttachmentUrlSuspense(attachmentId: string): {
2719
2805
  readonly url: string;
2720
2806
  readonly error: undefined;
2721
2807
  };
2808
+ /**
2809
+ * Returns a presigned URL for a `LiveFile`.
2810
+ *
2811
+ * @example
2812
+ * const { url } = useFileUrl("fl_xxx");
2813
+ *
2814
+ * @example
2815
+ * const { url } = useFileUrl(liveFile);
2816
+ */
2817
+ declare function useFileUrlSuspense(file: LiveFileReference): {
2818
+ readonly isLoading: false;
2819
+ readonly url: string;
2820
+ readonly error?: undefined;
2821
+ };
2722
2822
  /**
2723
2823
  * @private For internal use only. Do not rely on this hook.
2724
2824
  */
@@ -3263,4 +3363,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
3263
3363
  */
3264
3364
  declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
3265
3365
 
3266
- export { _useCreateThread as $, type AiChatStatus as A, GlobalRoomContext as B, ClientContext as C, type UseThreadsOptions as D, createLiveblocksContext as E, createRoomContext as F, type GroupAsyncResult as G, _useAddReaction as H, _useAiChat as I, _useAiChatMessages as J, useAiChatStatus as K, LiveblocksProvider as L, type MutationContext as M, _useAiChats as N, useAttachmentUrl as O, _useBroadcastEvent as P, useCanRedo as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCanUndo as T, type UseSendAiMessageOptions as U, useClient as V, useCreateAiChat as W, _useCreateComment as X, useCreateFeed as Y, useCreateFeedMessage as Z, _RoomProvider as _, useClientOrNull as a, _useAiChatMessagesSuspense as a$, useDeleteAiChat as a0, useDeleteAllInboxNotifications as a1, useDeleteComment as a2, useDeleteFeed as a3, useDeleteFeedMessage as a4, useDeleteInboxNotification as a5, _useDeleteThread as a6, _useEditComment as a7, _useEditCommentMetadata as a8, _useEditThreadMetadata as a9, useRedo as aA, useRemoveReaction as aB, _useRoom as aC, useRoomInfo as aD, _useRoomSubscriptionSettings as aE, _useSearchComments as aF, _useSelf as aG, useSendAiMessage as aH, useStatus as aI, _useStorage as aJ, _useStorageRoot as aK, useSubscribeToThread as aL, useSyncStatus as aM, useThreadSubscription as aN, _useThreads as aO, useUndo as aP, useUnreadInboxNotificationsCount as aQ, useUnsubscribeFromThread as aR, useUpdateFeedMessage as aS, useUpdateFeedMetadata as aT, _useUpdateMyPresence as aU, useUpdateNotificationSettings as aV, useUpdateRoomSubscriptionSettings as aW, _useUrlMetadata as aX, _useUser as aY, _useUserThreads_experimental as aZ, _useAiChatSuspense as a_, useErrorListener as aa, _useEventListener as ab, _useFeedMessages as ac, _useFeeds as ad, useGroupInfo as ae, useHistory as af, useHistoryVersionData as ag, useHistoryVersionYjsData as ah, _useHistoryVersions as ai, _useInboxNotificationThread as aj, useInboxNotifications as ak, _useIsInsideRoom as al, useLostConnectionListener as am, useMarkAllInboxNotificationsAsRead as an, useMarkInboxNotificationAsRead as ao, useMarkThreadAsRead as ap, useMarkThreadAsResolved as aq, useMarkThreadAsUnresolved as ar, _useMutation as as, _useMyPresence as at, useNotificationSettings as au, _useOther as av, _useOthers as aw, useOthersConnectionIds as ax, _useOthersListener as ay, _useOthersMapped as az, useCreateRoomComment as b, _useAiChatsSuspense as b0, useAttachmentUrlSuspense as b1, _useFeedMessagesSuspense as b2, _useFeedsSuspense as b3, useGroupInfoSuspense as b4, _useHistoryVersionsSuspense as b5, useInboxNotificationsSuspense as b6, useNotificationSettingsSuspense as b7, _useOtherSuspense as b8, _useOthersSuspense as b9, useOthersConnectionIdsSuspense as ba, _useOthersMappedSuspense as bb, useRoomInfoSuspense as bc, _useRoomSubscriptionSettingsSuspense as bd, _useSelfSuspense as be, _useStorageSuspense as bf, _useThreadsSuspense as bg, useUnreadInboxNotificationsCountSuspense as bh, _useUrlMetadataSuspense as bi, _useUserSuspense as bj, _useUserThreadsSuspense_experimental as bk, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useHasPermissionAccess as k, useMarkRoomThreadAsRead as l, useMarkRoomThreadAsResolved as m, useMarkRoomThreadAsUnresolved as n, useMentionSuggestionsCache as o, useRemoveRoomCommentReaction as p, useReportTextEditor as q, useResolveMentionSuggestions as r, useRoomAttachmentUrl as s, useRoomPermissions as t, useAddRoomCommentReaction as u, useRoomThreadSubscription as v, useSuspendUntilPresenceReady as w, useSuspendUntilStorageReady as x, useYjsProvider as y, type RegisterAiToolProps as z };
3366
+ export { useCreateFeedMessage as $, type RegisterAiToolProps as A, type AiChatStatus as B, ClientContext as C, GlobalRoomContext as D, type UseThreadsOptions as E, createLiveblocksContext as F, type GroupAsyncResult as G, createRoomContext as H, _useAddReaction as I, _useAiChat as J, _useAiChatMessages as K, LiveblocksProvider as L, type MutationContext as M, useAiChatStatus as N, _useAiChats as O, useAttachmentUrl as P, _useBroadcastEvent as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCanRedo as T, type UseSendAiMessageOptions as U, useCanUndo as V, useClient as W, useCreateAiChat as X, _useCreateComment as Y, useCreateFeed as Z, _RoomProvider as _, useClientOrNull as a, useUpdateRoomSubscriptionSettings as a$, _useCreateThread as a0, useDeleteAiChat as a1, useDeleteAllInboxNotifications as a2, useDeleteComment as a3, useDeleteFeed as a4, useDeleteFeedMessage as a5, useDeleteHistoryVersion as a6, useDeleteInboxNotification as a7, _useDeleteThread as a8, _useEditComment as a9, _useOthers as aA, useOthersConnectionIds as aB, _useOthersListener as aC, _useOthersMapped as aD, useRedo as aE, useRemoveReaction as aF, useRestoreToStorageVersion as aG, _useRoom as aH, useRoomInfo as aI, _useRoomSubscriptionSettings as aJ, _useSearchComments as aK, _useSelf as aL, useSendAiMessage as aM, useStatus as aN, _useStorage as aO, _useStorageRoot as aP, useSubscribeToThread as aQ, useSyncStatus as aR, useThreadSubscription as aS, _useThreads as aT, useUndo as aU, useUnreadInboxNotificationsCount as aV, useUnsubscribeFromThread as aW, useUpdateFeedMessage as aX, useUpdateFeedMetadata as aY, _useUpdateMyPresence as aZ, useUpdateNotificationSettings as a_, _useEditCommentMetadata as aa, _useEditThreadMetadata as ab, useErrorListener as ac, _useEventListener as ad, _useFeedMessages as ae, _useFeeds as af, useFileUrl as ag, useGroupInfo as ah, useHistory as ai, useHistoryVersionData as aj, useHistoryVersionStorageData as ak, useHistoryVersionYjsData as al, _useHistoryVersions as am, _useInboxNotificationThread as an, useInboxNotifications as ao, _useIsInsideRoom as ap, useLostConnectionListener as aq, useMarkAllInboxNotificationsAsRead as ar, useMarkInboxNotificationAsRead as as, useMarkThreadAsRead as at, useMarkThreadAsResolved as au, useMarkThreadAsUnresolved as av, _useMutation as aw, _useMyPresence as ax, useNotificationSettings as ay, _useOther as az, useCreateRoomComment as b, _useUrlMetadata as b0, _useUser as b1, _useUserThreads_experimental as b2, _useAiChatSuspense as b3, _useAiChatMessagesSuspense as b4, _useAiChatsSuspense as b5, useAttachmentUrlSuspense as b6, _useFeedMessagesSuspense as b7, _useFeedsSuspense as b8, useFileUrlSuspense as b9, useGroupInfoSuspense as ba, _useHistoryVersionsSuspense as bb, useInboxNotificationsSuspense as bc, useNotificationSettingsSuspense as bd, _useOtherSuspense as be, _useOthersSuspense as bf, useOthersConnectionIdsSuspense as bg, _useOthersMappedSuspense as bh, useRoomInfoSuspense as bi, _useRoomSubscriptionSettingsSuspense as bj, _useSelfSuspense as bk, _useStorageSuspense as bl, _useThreadsSuspense as bm, useUnreadInboxNotificationsCountSuspense as bn, _useUrlMetadataSuspense as bo, _useUserSuspense as bp, _useUserThreadsSuspense_experimental as bq, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useHasPermissionAccess as k, useMarkRoomThreadAsRead as l, useMarkRoomThreadAsResolved as m, useMarkRoomThreadAsUnresolved as n, useMentionSuggestionsCache as o, useRemoveRoomCommentReaction as p, useReportTextEditor as q, useResolveMentionSuggestions as r, useRoomAttachmentUrl as s, useRoomFileUrl as t, useAddRoomCommentReaction as u, useRoomPermissions as v, useRoomThreadSubscription as w, useSuspendUntilPresenceReady as x, useSuspendUntilStorageReady as y, useYjsProvider as z };
@@ -1,6 +1,6 @@
1
1
  import { BaseUserMeta, Client, RoomSubscriptionSettings, Json, JsonObject, LsonObject, LiveObject, User, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, ClientOptions, CommentData as CommentData$1, ThreadData as ThreadData$1, FeedCreateMetadata as FeedCreateMetadata$1, FeedUpdateMetadata as FeedUpdateMetadata$1 } from '@liveblocks/client';
2
2
  import * as _liveblocks_core from '@liveblocks/core';
3
- import { OpaqueClient, OpaqueRoom, Relax, AiAssistantContentPart, AiKnowledgeSource, AiOpaqueToolDefinition, BaseMetadata, ThreadVisibility, QueryMetadata, AsyncLoading, AsyncError, Resolve, AsyncSuccess, ThreadData, InboxNotificationData, AsyncResult, HistoryVersion, NotificationSettings, AiChat, WithNavigation, AiChatMessage, UrlMetadata, Feed, FeedMessage, CommentBody, CommentAttachment, PartialUnless, Patchable, GroupData, RoomEventMessage, CommentData, Client as Client$1, DRI, DGI, LiveblocksError, SyncStatus, ToJson, FeedFetchMetadataFilter, FeedCreateMetadata, FeedUpdateMetadata, SearchCommentsResult, PartialNotificationSettings, AiUserMessage, WithRequired, AiChatsQuery, MessageId, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, SubscriptionKey, SubscriptionData, ISignal, InboxNotificationDeleteInfo, CommentUserReaction, RoomSubscriptionSettings as RoomSubscriptionSettings$1, DerivedSignal, SubscriptionDeleteInfo, PermissionMatrix, RoomPermissions, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DefaultMap, DU, DTM, DCM, MentionData, PermissionResources, RequiredAccessLevel, TextEditorType, IYjsProvider, DP, DS, DE, DFM, DFMD } from '@liveblocks/core';
3
+ import { OpaqueClient, OpaqueRoom, Relax, AiAssistantContentPart, AiKnowledgeSource, AiOpaqueToolDefinition, BaseMetadata, ThreadVisibility, QueryMetadata, AsyncLoading, AsyncError, Resolve, AsyncSuccess, ThreadData, InboxNotificationData, AsyncResult, HistoryVersion, NotificationSettings, AiChat, WithNavigation, AiChatMessage, UrlMetadata, Feed, FeedMessage, CommentBody, CommentAttachment, PartialUnless, Patchable, GroupData, RoomEventMessage, CommentData, Client as Client$1, DRI, DGI, LiveblocksError, SyncStatus, ToJson, FeedFetchMetadataFilter, FeedCreateMetadata, FeedUpdateMetadata, SearchCommentsResult, LiveFileReference, PartialNotificationSettings, AiUserMessage, WithRequired, AiChatsQuery, MessageId, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, SubscriptionKey, SubscriptionData, ISignal, InboxNotificationDeleteInfo, CommentUserReaction, RoomSubscriptionSettings as RoomSubscriptionSettings$1, DerivedSignal, SubscriptionDeleteInfo, PermissionMatrix, RoomPermissions, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DefaultMap, DU, DTM, DCM, MentionData, PermissionResources, RequiredAccessLevel, TextEditorType, IYjsProvider, DP, DS, DE, DFM, DFMD } from '@liveblocks/core';
4
4
  import { Context, ReactNode, ComponentType, PropsWithChildren } from 'react';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
 
@@ -254,6 +254,8 @@ type GroupInfoAsyncResult = AsyncResult<DGI, "info">;
254
254
  type GroupInfoAsyncSuccess = AsyncSuccess<DGI, "info">;
255
255
  type AttachmentUrlAsyncResult = AsyncResult<string, "url">;
256
256
  type AttachmentUrlAsyncSuccess = AsyncSuccess<string, "url">;
257
+ type FileUrlAsyncResult = AsyncResult<string, "url">;
258
+ type FileUrlAsyncSuccess = AsyncSuccess<string, "url">;
257
259
  type GroupAsyncResult = AsyncResult<GroupData | undefined, "group">;
258
260
  type CreateThreadOptions<TM extends BaseMetadata, CM extends BaseMetadata> = Resolve<{
259
261
  body: CommentBody;
@@ -318,6 +320,7 @@ type UnreadInboxNotificationsCountAsyncResult = AsyncResult<number, "count">;
318
320
  type NotificationSettingsAsyncResult = AsyncResult<NotificationSettings, "settings">;
319
321
  type RoomSubscriptionSettingsAsyncSuccess = AsyncSuccess<RoomSubscriptionSettings, "settings">;
320
322
  type RoomSubscriptionSettingsAsyncResult = AsyncResult<RoomSubscriptionSettings, "settings">;
323
+ type HistoryVersionStorageDataAsyncResult = AsyncResult<LiveObject<LsonObject>>;
321
324
  type HistoryVersionYjsDataAsyncResult = AsyncResult<Uint8Array>;
322
325
  type HistoryVersionsAsyncSuccess = AsyncSuccess<HistoryVersion[], "versions">;
323
326
  type HistoryVersionsAsyncResult = AsyncResult<HistoryVersion[], "versions">;
@@ -1119,6 +1122,16 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
1119
1122
  * const { url, error, isLoading } = useAttachmentUrl("at_xxx");
1120
1123
  */
1121
1124
  useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncResult;
1125
+ /**
1126
+ * Returns a presigned URL for a `LiveFile`.
1127
+ *
1128
+ * @example
1129
+ * const { url, error, isLoading } = useFileUrl("fl_xxx");
1130
+ *
1131
+ * @example
1132
+ * const { url, error, isLoading } = useFileUrl(liveFile);
1133
+ */
1134
+ useFileUrl(file: LiveFileReference): FileUrlAsyncResult;
1122
1135
  /**
1123
1136
  * (Private beta) Returns a history of versions of the current room.
1124
1137
  *
@@ -1126,6 +1139,13 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
1126
1139
  * const { versions, error, isLoading } = useHistoryVersions();
1127
1140
  */
1128
1141
  useHistoryVersions(): HistoryVersionsAsyncResult;
1142
+ /**
1143
+ * Returns the Storage data for a given version of the room.
1144
+ *
1145
+ * @example
1146
+ * const { data, error, isLoading } = useHistoryVersionStorageData(version.id);
1147
+ */
1148
+ useHistoryVersionStorageData(id: string): HistoryVersionStorageDataAsyncResult;
1129
1149
  /**
1130
1150
  * Returns the Yjs data for a given version of the room.
1131
1151
  *
@@ -1142,6 +1162,24 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
1142
1162
  * const { data, error, isLoading } = useHistoryVersionData(version.id);
1143
1163
  */
1144
1164
  useHistoryVersionData(id: string): HistoryVersionYjsDataAsyncResult;
1165
+ /**
1166
+ * Returns a function that permanently deletes a version from the room's
1167
+ * history.
1168
+ *
1169
+ * @example
1170
+ * const deleteHistoryVersion = useDeleteHistoryVersion();
1171
+ * deleteHistoryVersion(version.id);
1172
+ */
1173
+ useDeleteHistoryVersion(): (versionId: string) => Promise<void>;
1174
+ /**
1175
+ * Returns a function that restores the room's Storage to the given
1176
+ * historic version, applied as a single undoable change.
1177
+ *
1178
+ * @example
1179
+ * const restore = useRestoreToStorageVersion(version.id);
1180
+ * await restore();
1181
+ */
1182
+ useRestoreToStorageVersion(versionId: string): () => Promise<void>;
1145
1183
  suspense: Resolve<RoomContextBundleCommon<P, S, U, E, TM, CM, FM, FMD> & SharedContextBundle<U>["suspense"] & {
1146
1184
  /**
1147
1185
  * Extract arbitrary data from the Liveblocks Storage state, using an
@@ -1251,6 +1289,16 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
1251
1289
  * const { url } = useAttachmentUrl("at_xxx");
1252
1290
  */
1253
1291
  useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncSuccess;
1292
+ /**
1293
+ * Returns a presigned URL for a `LiveFile`.
1294
+ *
1295
+ * @example
1296
+ * const { url } = useFileUrl("fl_xxx");
1297
+ *
1298
+ * @example
1299
+ * const { url } = useFileUrl(liveFile);
1300
+ */
1301
+ useFileUrl(file: LiveFileReference): FileUrlAsyncSuccess;
1254
1302
  }>;
1255
1303
  }>;
1256
1304
  /**
@@ -2649,6 +2697,13 @@ declare function useThreadSubscription(threadId: string): ThreadSubscription;
2649
2697
  * @private
2650
2698
  */
2651
2699
  declare function useRoomThreadSubscription(roomId: string, threadId: string): ThreadSubscription;
2700
+ /**
2701
+ * Returns the Storage data for a given version of the room.
2702
+ *
2703
+ * @example
2704
+ * const { data, isLoading, error } = useHistoryVersionStorageData(versionId);
2705
+ */
2706
+ declare function useHistoryVersionStorageData(versionId: string): HistoryVersionStorageDataAsyncResult;
2652
2707
  /**
2653
2708
  * @deprecated Use `useHistoryVersionYjsData(versionId)` instead.
2654
2709
  *
@@ -2665,6 +2720,23 @@ declare function useHistoryVersionData(versionId: string): HistoryVersionYjsData
2665
2720
  * const { data, isLoading, error } = useHistoryVersionYjsData(versionId);
2666
2721
  */
2667
2722
  declare function useHistoryVersionYjsData(versionId: string): HistoryVersionYjsDataAsyncResult;
2723
+ /**
2724
+ * Returns a function that permanently deletes a version from the room's history.
2725
+ *
2726
+ * @example
2727
+ * const deleteHistoryVersion = useDeleteHistoryVersion();
2728
+ * deleteHistoryVersion(versionId);
2729
+ */
2730
+ declare function useDeleteHistoryVersion(): (versionId: string) => Promise<void>;
2731
+ /**
2732
+ * Returns a function that restores the room's Storage to the given historic
2733
+ * version, applied as a single undoable change (broadcast to other clients).
2734
+ *
2735
+ * @example
2736
+ * const restore = useRestoreToStorageVersion(versionId);
2737
+ * await restore();
2738
+ */
2739
+ declare function useRestoreToStorageVersion(versionId: string): () => Promise<void>;
2668
2740
  /**
2669
2741
  * Returns a function that updates the user's subscription settings
2670
2742
  * for the current room.
@@ -2708,6 +2780,20 @@ declare function useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncResul
2708
2780
  * @private For internal use only. Do not rely on this hook. Use `useAttachmentUrl` instead.
2709
2781
  */
2710
2782
  declare function useRoomAttachmentUrl(attachmentId: string, roomId: string): AttachmentUrlAsyncResult;
2783
+ /**
2784
+ * Returns a presigned URL for a `LiveFile`.
2785
+ *
2786
+ * @example
2787
+ * const { url, error, isLoading } = useFileUrl("fl_xxx");
2788
+ *
2789
+ * @example
2790
+ * const { url, error, isLoading } = useFileUrl(liveFile);
2791
+ */
2792
+ declare function useFileUrl(file: LiveFileReference): FileUrlAsyncResult;
2793
+ /**
2794
+ * @private For internal use only. Do not rely on this hook. Use `useFileUrl` instead.
2795
+ */
2796
+ declare function useRoomFileUrl(file: LiveFileReference, roomId: string): FileUrlAsyncResult;
2711
2797
  /**
2712
2798
  * Returns a presigned URL for an attachment by its ID.
2713
2799
  *
@@ -2719,6 +2805,20 @@ declare function useAttachmentUrlSuspense(attachmentId: string): {
2719
2805
  readonly url: string;
2720
2806
  readonly error: undefined;
2721
2807
  };
2808
+ /**
2809
+ * Returns a presigned URL for a `LiveFile`.
2810
+ *
2811
+ * @example
2812
+ * const { url } = useFileUrl("fl_xxx");
2813
+ *
2814
+ * @example
2815
+ * const { url } = useFileUrl(liveFile);
2816
+ */
2817
+ declare function useFileUrlSuspense(file: LiveFileReference): {
2818
+ readonly isLoading: false;
2819
+ readonly url: string;
2820
+ readonly error?: undefined;
2821
+ };
2722
2822
  /**
2723
2823
  * @private For internal use only. Do not rely on this hook.
2724
2824
  */
@@ -3263,4 +3363,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
3263
3363
  */
3264
3364
  declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
3265
3365
 
3266
- export { _useCreateThread as $, type AiChatStatus as A, GlobalRoomContext as B, ClientContext as C, type UseThreadsOptions as D, createLiveblocksContext as E, createRoomContext as F, type GroupAsyncResult as G, _useAddReaction as H, _useAiChat as I, _useAiChatMessages as J, useAiChatStatus as K, LiveblocksProvider as L, type MutationContext as M, _useAiChats as N, useAttachmentUrl as O, _useBroadcastEvent as P, useCanRedo as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCanUndo as T, type UseSendAiMessageOptions as U, useClient as V, useCreateAiChat as W, _useCreateComment as X, useCreateFeed as Y, useCreateFeedMessage as Z, _RoomProvider as _, useClientOrNull as a, _useAiChatMessagesSuspense as a$, useDeleteAiChat as a0, useDeleteAllInboxNotifications as a1, useDeleteComment as a2, useDeleteFeed as a3, useDeleteFeedMessage as a4, useDeleteInboxNotification as a5, _useDeleteThread as a6, _useEditComment as a7, _useEditCommentMetadata as a8, _useEditThreadMetadata as a9, useRedo as aA, useRemoveReaction as aB, _useRoom as aC, useRoomInfo as aD, _useRoomSubscriptionSettings as aE, _useSearchComments as aF, _useSelf as aG, useSendAiMessage as aH, useStatus as aI, _useStorage as aJ, _useStorageRoot as aK, useSubscribeToThread as aL, useSyncStatus as aM, useThreadSubscription as aN, _useThreads as aO, useUndo as aP, useUnreadInboxNotificationsCount as aQ, useUnsubscribeFromThread as aR, useUpdateFeedMessage as aS, useUpdateFeedMetadata as aT, _useUpdateMyPresence as aU, useUpdateNotificationSettings as aV, useUpdateRoomSubscriptionSettings as aW, _useUrlMetadata as aX, _useUser as aY, _useUserThreads_experimental as aZ, _useAiChatSuspense as a_, useErrorListener as aa, _useEventListener as ab, _useFeedMessages as ac, _useFeeds as ad, useGroupInfo as ae, useHistory as af, useHistoryVersionData as ag, useHistoryVersionYjsData as ah, _useHistoryVersions as ai, _useInboxNotificationThread as aj, useInboxNotifications as ak, _useIsInsideRoom as al, useLostConnectionListener as am, useMarkAllInboxNotificationsAsRead as an, useMarkInboxNotificationAsRead as ao, useMarkThreadAsRead as ap, useMarkThreadAsResolved as aq, useMarkThreadAsUnresolved as ar, _useMutation as as, _useMyPresence as at, useNotificationSettings as au, _useOther as av, _useOthers as aw, useOthersConnectionIds as ax, _useOthersListener as ay, _useOthersMapped as az, useCreateRoomComment as b, _useAiChatsSuspense as b0, useAttachmentUrlSuspense as b1, _useFeedMessagesSuspense as b2, _useFeedsSuspense as b3, useGroupInfoSuspense as b4, _useHistoryVersionsSuspense as b5, useInboxNotificationsSuspense as b6, useNotificationSettingsSuspense as b7, _useOtherSuspense as b8, _useOthersSuspense as b9, useOthersConnectionIdsSuspense as ba, _useOthersMappedSuspense as bb, useRoomInfoSuspense as bc, _useRoomSubscriptionSettingsSuspense as bd, _useSelfSuspense as be, _useStorageSuspense as bf, _useThreadsSuspense as bg, useUnreadInboxNotificationsCountSuspense as bh, _useUrlMetadataSuspense as bi, _useUserSuspense as bj, _useUserThreadsSuspense_experimental as bk, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useHasPermissionAccess as k, useMarkRoomThreadAsRead as l, useMarkRoomThreadAsResolved as m, useMarkRoomThreadAsUnresolved as n, useMentionSuggestionsCache as o, useRemoveRoomCommentReaction as p, useReportTextEditor as q, useResolveMentionSuggestions as r, useRoomAttachmentUrl as s, useRoomPermissions as t, useAddRoomCommentReaction as u, useRoomThreadSubscription as v, useSuspendUntilPresenceReady as w, useSuspendUntilStorageReady as x, useYjsProvider as y, type RegisterAiToolProps as z };
3366
+ export { useCreateFeedMessage as $, type RegisterAiToolProps as A, type AiChatStatus as B, ClientContext as C, GlobalRoomContext as D, type UseThreadsOptions as E, createLiveblocksContext as F, type GroupAsyncResult as G, createRoomContext as H, _useAddReaction as I, _useAiChat as J, _useAiChatMessages as K, LiveblocksProvider as L, type MutationContext as M, useAiChatStatus as N, _useAiChats as O, useAttachmentUrl as P, _useBroadcastEvent as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCanRedo as T, type UseSendAiMessageOptions as U, useCanUndo as V, useClient as W, useCreateAiChat as X, _useCreateComment as Y, useCreateFeed as Z, _RoomProvider as _, useClientOrNull as a, useUpdateRoomSubscriptionSettings as a$, _useCreateThread as a0, useDeleteAiChat as a1, useDeleteAllInboxNotifications as a2, useDeleteComment as a3, useDeleteFeed as a4, useDeleteFeedMessage as a5, useDeleteHistoryVersion as a6, useDeleteInboxNotification as a7, _useDeleteThread as a8, _useEditComment as a9, _useOthers as aA, useOthersConnectionIds as aB, _useOthersListener as aC, _useOthersMapped as aD, useRedo as aE, useRemoveReaction as aF, useRestoreToStorageVersion as aG, _useRoom as aH, useRoomInfo as aI, _useRoomSubscriptionSettings as aJ, _useSearchComments as aK, _useSelf as aL, useSendAiMessage as aM, useStatus as aN, _useStorage as aO, _useStorageRoot as aP, useSubscribeToThread as aQ, useSyncStatus as aR, useThreadSubscription as aS, _useThreads as aT, useUndo as aU, useUnreadInboxNotificationsCount as aV, useUnsubscribeFromThread as aW, useUpdateFeedMessage as aX, useUpdateFeedMetadata as aY, _useUpdateMyPresence as aZ, useUpdateNotificationSettings as a_, _useEditCommentMetadata as aa, _useEditThreadMetadata as ab, useErrorListener as ac, _useEventListener as ad, _useFeedMessages as ae, _useFeeds as af, useFileUrl as ag, useGroupInfo as ah, useHistory as ai, useHistoryVersionData as aj, useHistoryVersionStorageData as ak, useHistoryVersionYjsData as al, _useHistoryVersions as am, _useInboxNotificationThread as an, useInboxNotifications as ao, _useIsInsideRoom as ap, useLostConnectionListener as aq, useMarkAllInboxNotificationsAsRead as ar, useMarkInboxNotificationAsRead as as, useMarkThreadAsRead as at, useMarkThreadAsResolved as au, useMarkThreadAsUnresolved as av, _useMutation as aw, _useMyPresence as ax, useNotificationSettings as ay, _useOther as az, useCreateRoomComment as b, _useUrlMetadata as b0, _useUser as b1, _useUserThreads_experimental as b2, _useAiChatSuspense as b3, _useAiChatMessagesSuspense as b4, _useAiChatsSuspense as b5, useAttachmentUrlSuspense as b6, _useFeedMessagesSuspense as b7, _useFeedsSuspense as b8, useFileUrlSuspense as b9, useGroupInfoSuspense as ba, _useHistoryVersionsSuspense as bb, useInboxNotificationsSuspense as bc, useNotificationSettingsSuspense as bd, _useOtherSuspense as be, _useOthersSuspense as bf, useOthersConnectionIdsSuspense as bg, _useOthersMappedSuspense as bh, useRoomInfoSuspense as bi, _useRoomSubscriptionSettingsSuspense as bj, _useSelfSuspense as bk, _useStorageSuspense as bl, _useThreadsSuspense as bm, useUnreadInboxNotificationsCountSuspense as bn, _useUrlMetadataSuspense as bo, _useUserSuspense as bp, _useUserThreadsSuspense_experimental as bq, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useHasPermissionAccess as k, useMarkRoomThreadAsRead as l, useMarkRoomThreadAsResolved as m, useMarkRoomThreadAsUnresolved as n, useMentionSuggestionsCache as o, useRemoveRoomCommentReaction as p, useReportTextEditor as q, useResolveMentionSuggestions as r, useRoomAttachmentUrl as s, useRoomFileUrl as t, useAddRoomCommentReaction as u, useRoomPermissions as v, useRoomThreadSubscription as w, useSuspendUntilPresenceReady as x, useSuspendUntilStorageReady as y, useYjsProvider as z };