@liveblocks/react 2.25.0-aiprivatebeta10 → 2.25.0-aiprivatebeta11

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 _chunkMSLJX4ZWcjs = require('./chunk-MSLJX4ZW.cjs');
6
+ var _chunkA4EPET3Zcjs = require('./chunk-A4EPET3Z.cjs');
7
7
 
8
8
 
9
9
 
@@ -79,12 +79,14 @@ var _chunkMSLJX4ZWcjs = require('./chunk-MSLJX4ZW.cjs');
79
79
 
80
80
 
81
81
 
82
- var _chunkY6Z36KDPcjs = require('./chunk-Y6Z36KDP.cjs');
82
+
83
+ var _chunkCTSFL4KTcjs = require('./chunk-CTSFL4KT.cjs');
83
84
 
84
85
  // src/index.ts
85
86
  var _core = require('@liveblocks/core');
86
87
  var _client = require('@liveblocks/client');
87
- _core.detectDupes.call(void 0, _chunkMSLJX4ZWcjs.PKG_NAME, _chunkMSLJX4ZWcjs.PKG_VERSION, _chunkMSLJX4ZWcjs.PKG_FORMAT);
88
+ _core.detectDupes.call(void 0, _chunkA4EPET3Zcjs.PKG_NAME, _chunkA4EPET3Zcjs.PKG_VERSION, _chunkA4EPET3Zcjs.PKG_FORMAT);
89
+
88
90
 
89
91
 
90
92
 
@@ -163,5 +165,5 @@ _core.detectDupes.call(void 0, _chunkMSLJX4ZWcjs.PKG_NAME, _chunkMSLJX4ZWcjs.PKG
163
165
 
164
166
 
165
167
 
166
- exports.ClientContext = _chunkY6Z36KDPcjs.ClientContext; exports.ClientSideSuspense = _chunkMSLJX4ZWcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkY6Z36KDPcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkY6Z36KDPcjs.RegisterAiKnowledge; exports.RoomContext = _chunkY6Z36KDPcjs.RoomContext; exports.RoomProvider = _chunkY6Z36KDPcjs._RoomProvider; exports.createLiveblocksContext = _chunkY6Z36KDPcjs.createLiveblocksContext; exports.createRoomContext = _chunkY6Z36KDPcjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkY6Z36KDPcjs._useAddReaction; exports.useAiChat = _chunkY6Z36KDPcjs._useAiChat; exports.useAiChatMessages = _chunkY6Z36KDPcjs._useAiChatMessages; exports.useAiChats = _chunkY6Z36KDPcjs._useAiChats; exports.useAttachmentUrl = _chunkY6Z36KDPcjs.useAttachmentUrl; exports.useBatch = _chunkY6Z36KDPcjs.useBatch; exports.useBroadcastEvent = _chunkY6Z36KDPcjs._useBroadcastEvent; exports.useCanRedo = _chunkY6Z36KDPcjs.useCanRedo; exports.useCanUndo = _chunkY6Z36KDPcjs.useCanUndo; exports.useClient = _chunkY6Z36KDPcjs.useClient; exports.useCreateAiChat = _chunkY6Z36KDPcjs.useCreateAiChat; exports.useCreateComment = _chunkY6Z36KDPcjs.useCreateComment; exports.useCreateThread = _chunkY6Z36KDPcjs._useCreateThread; exports.useDeleteAiChat = _chunkY6Z36KDPcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkY6Z36KDPcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkY6Z36KDPcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkY6Z36KDPcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkY6Z36KDPcjs._useDeleteThread; exports.useEditComment = _chunkY6Z36KDPcjs.useEditComment; exports.useEditThreadMetadata = _chunkY6Z36KDPcjs._useEditThreadMetadata; exports.useErrorListener = _chunkY6Z36KDPcjs.useErrorListener; exports.useEventListener = _chunkY6Z36KDPcjs._useEventListener; exports.useHistory = _chunkY6Z36KDPcjs.useHistory; exports.useHistoryVersionData = _chunkY6Z36KDPcjs.useHistoryVersionData; exports.useHistoryVersions = _chunkY6Z36KDPcjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkY6Z36KDPcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkY6Z36KDPcjs.useInboxNotifications; exports.useIsInsideRoom = _chunkY6Z36KDPcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkY6Z36KDPcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkY6Z36KDPcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkY6Z36KDPcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkY6Z36KDPcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkY6Z36KDPcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkY6Z36KDPcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkY6Z36KDPcjs._useMutation; exports.useMyPresence = _chunkY6Z36KDPcjs._useMyPresence; exports.useNotificationSettings = _chunkY6Z36KDPcjs.useNotificationSettings; exports.useOther = _chunkY6Z36KDPcjs._useOther; exports.useOthers = _chunkY6Z36KDPcjs._useOthers; exports.useOthersConnectionIds = _chunkY6Z36KDPcjs.useOthersConnectionIds; exports.useOthersListener = _chunkY6Z36KDPcjs._useOthersListener; exports.useOthersMapped = _chunkY6Z36KDPcjs._useOthersMapped; exports.useRedo = _chunkY6Z36KDPcjs.useRedo; exports.useRemoveReaction = _chunkY6Z36KDPcjs.useRemoveReaction; exports.useRoom = _chunkY6Z36KDPcjs._useRoom; exports.useRoomInfo = _chunkY6Z36KDPcjs.useRoomInfo; exports.useRoomNotificationSettings = _chunkY6Z36KDPcjs._useRoomNotificationSettings; exports.useRoomSubscriptionSettings = _chunkY6Z36KDPcjs._useRoomSubscriptionSettings; exports.useSelf = _chunkY6Z36KDPcjs._useSelf; exports.useSendAiMessage = _chunkY6Z36KDPcjs.useSendAiMessage; exports.useStatus = _chunkY6Z36KDPcjs.useStatus; exports.useStorage = _chunkY6Z36KDPcjs._useStorage; exports.useStorageRoot = _chunkY6Z36KDPcjs._useStorageRoot; exports.useStorageStatus = _chunkY6Z36KDPcjs.useStorageStatus; exports.useSubscribeToThread = _chunkY6Z36KDPcjs.useSubscribeToThread; exports.useSyncStatus = _chunkY6Z36KDPcjs.useSyncStatus; exports.useThreadSubscription = _chunkY6Z36KDPcjs.useThreadSubscription; exports.useThreads = _chunkY6Z36KDPcjs._useThreads; exports.useUndo = _chunkY6Z36KDPcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkY6Z36KDPcjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunkY6Z36KDPcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkY6Z36KDPcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkY6Z36KDPcjs.useUpdateNotificationSettings; exports.useUpdateRoomNotificationSettings = _chunkY6Z36KDPcjs.useUpdateRoomNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkY6Z36KDPcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunkY6Z36KDPcjs._useUser; exports.useUserThreads_experimental = _chunkY6Z36KDPcjs._useUserThreads_experimental;
168
+ exports.ClientContext = _chunkCTSFL4KTcjs.ClientContext; exports.ClientSideSuspense = _chunkA4EPET3Zcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkCTSFL4KTcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkCTSFL4KTcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkCTSFL4KTcjs.RegisterAiTool; exports.RoomContext = _chunkCTSFL4KTcjs.RoomContext; exports.RoomProvider = _chunkCTSFL4KTcjs._RoomProvider; exports.createLiveblocksContext = _chunkCTSFL4KTcjs.createLiveblocksContext; exports.createRoomContext = _chunkCTSFL4KTcjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkCTSFL4KTcjs._useAddReaction; exports.useAiChat = _chunkCTSFL4KTcjs._useAiChat; exports.useAiChatMessages = _chunkCTSFL4KTcjs._useAiChatMessages; exports.useAiChats = _chunkCTSFL4KTcjs._useAiChats; exports.useAttachmentUrl = _chunkCTSFL4KTcjs.useAttachmentUrl; exports.useBatch = _chunkCTSFL4KTcjs.useBatch; exports.useBroadcastEvent = _chunkCTSFL4KTcjs._useBroadcastEvent; exports.useCanRedo = _chunkCTSFL4KTcjs.useCanRedo; exports.useCanUndo = _chunkCTSFL4KTcjs.useCanUndo; exports.useClient = _chunkCTSFL4KTcjs.useClient; exports.useCreateAiChat = _chunkCTSFL4KTcjs.useCreateAiChat; exports.useCreateComment = _chunkCTSFL4KTcjs.useCreateComment; exports.useCreateThread = _chunkCTSFL4KTcjs._useCreateThread; exports.useDeleteAiChat = _chunkCTSFL4KTcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkCTSFL4KTcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkCTSFL4KTcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkCTSFL4KTcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkCTSFL4KTcjs._useDeleteThread; exports.useEditComment = _chunkCTSFL4KTcjs.useEditComment; exports.useEditThreadMetadata = _chunkCTSFL4KTcjs._useEditThreadMetadata; exports.useErrorListener = _chunkCTSFL4KTcjs.useErrorListener; exports.useEventListener = _chunkCTSFL4KTcjs._useEventListener; exports.useHistory = _chunkCTSFL4KTcjs.useHistory; exports.useHistoryVersionData = _chunkCTSFL4KTcjs.useHistoryVersionData; exports.useHistoryVersions = _chunkCTSFL4KTcjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkCTSFL4KTcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkCTSFL4KTcjs.useInboxNotifications; exports.useIsInsideRoom = _chunkCTSFL4KTcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkCTSFL4KTcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkCTSFL4KTcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkCTSFL4KTcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkCTSFL4KTcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkCTSFL4KTcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkCTSFL4KTcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkCTSFL4KTcjs._useMutation; exports.useMyPresence = _chunkCTSFL4KTcjs._useMyPresence; exports.useNotificationSettings = _chunkCTSFL4KTcjs.useNotificationSettings; exports.useOther = _chunkCTSFL4KTcjs._useOther; exports.useOthers = _chunkCTSFL4KTcjs._useOthers; exports.useOthersConnectionIds = _chunkCTSFL4KTcjs.useOthersConnectionIds; exports.useOthersListener = _chunkCTSFL4KTcjs._useOthersListener; exports.useOthersMapped = _chunkCTSFL4KTcjs._useOthersMapped; exports.useRedo = _chunkCTSFL4KTcjs.useRedo; exports.useRemoveReaction = _chunkCTSFL4KTcjs.useRemoveReaction; exports.useRoom = _chunkCTSFL4KTcjs._useRoom; exports.useRoomInfo = _chunkCTSFL4KTcjs.useRoomInfo; exports.useRoomNotificationSettings = _chunkCTSFL4KTcjs._useRoomNotificationSettings; exports.useRoomSubscriptionSettings = _chunkCTSFL4KTcjs._useRoomSubscriptionSettings; exports.useSelf = _chunkCTSFL4KTcjs._useSelf; exports.useSendAiMessage = _chunkCTSFL4KTcjs.useSendAiMessage; exports.useStatus = _chunkCTSFL4KTcjs.useStatus; exports.useStorage = _chunkCTSFL4KTcjs._useStorage; exports.useStorageRoot = _chunkCTSFL4KTcjs._useStorageRoot; exports.useStorageStatus = _chunkCTSFL4KTcjs.useStorageStatus; exports.useSubscribeToThread = _chunkCTSFL4KTcjs.useSubscribeToThread; exports.useSyncStatus = _chunkCTSFL4KTcjs.useSyncStatus; exports.useThreadSubscription = _chunkCTSFL4KTcjs.useThreadSubscription; exports.useThreads = _chunkCTSFL4KTcjs._useThreads; exports.useUndo = _chunkCTSFL4KTcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkCTSFL4KTcjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunkCTSFL4KTcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkCTSFL4KTcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkCTSFL4KTcjs.useUpdateNotificationSettings; exports.useUpdateRoomNotificationSettings = _chunkCTSFL4KTcjs.useUpdateRoomNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkCTSFL4KTcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunkCTSFL4KTcjs._useUser; exports.useUserThreads_experimental = _chunkCTSFL4KTcjs._useUserThreads_experimental;
167
169
  //# 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;AACF,wDAA6B;AAC7B;AACA;AClFA,wCAA4B;AAc5B,4CAAsD;AAXtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADmF7C;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;AACF,67JAAC","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 { RegisterAiKnowledge } from \"./ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n 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 useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\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;AACF,wDAA6B;AAC7B;AACA;ACnFA,wCAA4B;AAc5B,4CAAsD;AAXtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADoF7C;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;AACF,w/JAAC","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 { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type { RegisterAiKnowledgeProps, RegisterAiToolProps } from \"./ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n 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 useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n} from \"./liveblocks\";\n"]}
package/dist/index.d.cts CHANGED
@@ -1,9 +1,8 @@
1
- export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, y as createLiveblocksContext, G as createRoomContext, I as useAddReaction, aF as useAiChat, aH as useAiChatMessages, aG as useAiChats, ar as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, x as useClient, ay as useCreateAiChat, P as useCreateComment, Q as useCreateThread, az as useDeleteAiChat, z as useDeleteAllInboxNotifications, S as useDeleteComment, A as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, B as useErrorListener, a0 as useEventListener, a1 as useHistory, ai as useHistoryVersionData, as as useHistoryVersions, _ as useInboxNotificationThread, av as useInboxNotifications, a2 as useIsInsideRoom, a3 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a4 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a5 as useMutation, a6 as useMyPresence, aw as useNotificationSettings, aj as useOther, ak as useOthers, al as useOthersConnectionIds, a7 as useOthersListener, am as useOthersMapped, a8 as useRedo, a9 as useRemoveReaction, aa as useRoom, aC as useRoomInfo, at as useRoomNotificationSettings, au as useRoomSubscriptionSettings, an as useSelf, aA as useSendAiMessage, ab as useStatus, ao as useStorage, ac as useStorageRoot, ap as useStorageStatus, Z as useSubscribeToThread, F as useSyncStatus, ad as useThreadSubscription, aq as useThreads, ae as useUndo, aD as useUnreadInboxNotificationsCount, $ as useUnsubscribeFromThread, af as useUpdateMyPresence, ax as useUpdateNotificationSettings, ag as useUpdateRoomNotificationSettings, ah as useUpdateRoomSubscriptionSettings, aE as useUser, aB as useUserThreads_experimental } from './room-BYtyYCxu.cjs';
1
+ export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledge, y as RegisterAiKnowledgeProps, x as RegisterAiTool, z as RegisterAiToolProps, A as RoomContext, N as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, D as createLiveblocksContext, K as createRoomContext, O as useAddReaction, aJ as useAiChat, aL as useAiChatMessages, aK as useAiChats, av as useAttachmentUrl, P as useBatch, Q as useBroadcastEvent, S as useCanRedo, T as useCanUndo, B as useClient, aC as useCreateAiChat, V as useCreateComment, W as useCreateThread, aD as useDeleteAiChat, E as useDeleteAllInboxNotifications, X as useDeleteComment, F as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, $ as useEditThreadMetadata, G as useErrorListener, a4 as useEventListener, a5 as useHistory, am as useHistoryVersionData, aw as useHistoryVersions, _ as useInboxNotificationThread, az as useInboxNotifications, a6 as useIsInsideRoom, a7 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a8 as useMarkThreadAsRead, a0 as useMarkThreadAsResolved, a1 as useMarkThreadAsUnresolved, a9 as useMutation, aa as useMyPresence, aA as useNotificationSettings, an as useOther, ao as useOthers, ap as useOthersConnectionIds, ab as useOthersListener, aq as useOthersMapped, ac as useRedo, ad as useRemoveReaction, ae as useRoom, aG as useRoomInfo, ax as useRoomNotificationSettings, ay as useRoomSubscriptionSettings, ar as useSelf, aE as useSendAiMessage, af as useStatus, as as useStorage, ag as useStorageRoot, at as useStorageStatus, a2 as useSubscribeToThread, J as useSyncStatus, ah as useThreadSubscription, au as useThreads, ai as useUndo, aH as useUnreadInboxNotificationsCount, a3 as useUnsubscribeFromThread, aj as useUpdateMyPresence, aB as useUpdateNotificationSettings, ak as useUpdateRoomNotificationSettings, al as useUpdateRoomSubscriptionSettings, aI as useUser, aF as useUserThreads_experimental } from './room-BdfI6Vy7.cjs';
2
2
  export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import * as react from 'react';
5
4
  import { ReactNode } from 'react';
6
- import { AiKnowledgeSource } from '@liveblocks/core';
5
+ import '@liveblocks/core';
7
6
 
8
7
  type Props = {
9
8
  fallback: ReactNode;
@@ -28,31 +27,4 @@ type Props = {
28
27
  */
29
28
  declare function ClientSideSuspense(props: Props): react_jsx_runtime.JSX.Element;
30
29
 
31
- /**
32
- * Make knowledge about your application state available to any AI used in
33
- * a chat or a one-off request.
34
- *
35
- * For example:
36
- *
37
- * <RegisterAiKnowledge
38
- * description="The current mode of my application"
39
- * value="dark" />
40
- *
41
- * <RegisterAiKnowledge
42
- * description="The current list of todos"
43
- * value={todos} />
44
- *
45
- * By mounting this component, the AI will get access to this knwoledge.
46
- * By unmounting this component, the AI will no longer have access to it.
47
- * It can choose to use or ignore this knowledge in its responses.
48
- */
49
- declare const RegisterAiKnowledge: react.NamedExoticComponent<AiKnowledgeSource & {
50
- /**
51
- * An optional unique key for this knowledge source. If multiple components
52
- * register knowledge under the same key, the last one to mount takes
53
- * precedence.
54
- */
55
- id?: string;
56
- }>;
57
-
58
- export { ClientSideSuspense, RegisterAiKnowledge };
30
+ export { ClientSideSuspense };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,8 @@
1
- export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, y as createLiveblocksContext, G as createRoomContext, I as useAddReaction, aF as useAiChat, aH as useAiChatMessages, aG as useAiChats, ar as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, x as useClient, ay as useCreateAiChat, P as useCreateComment, Q as useCreateThread, az as useDeleteAiChat, z as useDeleteAllInboxNotifications, S as useDeleteComment, A as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, B as useErrorListener, a0 as useEventListener, a1 as useHistory, ai as useHistoryVersionData, as as useHistoryVersions, _ as useInboxNotificationThread, av as useInboxNotifications, a2 as useIsInsideRoom, a3 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a4 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a5 as useMutation, a6 as useMyPresence, aw as useNotificationSettings, aj as useOther, ak as useOthers, al as useOthersConnectionIds, a7 as useOthersListener, am as useOthersMapped, a8 as useRedo, a9 as useRemoveReaction, aa as useRoom, aC as useRoomInfo, at as useRoomNotificationSettings, au as useRoomSubscriptionSettings, an as useSelf, aA as useSendAiMessage, ab as useStatus, ao as useStorage, ac as useStorageRoot, ap as useStorageStatus, Z as useSubscribeToThread, F as useSyncStatus, ad as useThreadSubscription, aq as useThreads, ae as useUndo, aD as useUnreadInboxNotificationsCount, $ as useUnsubscribeFromThread, af as useUpdateMyPresence, ax as useUpdateNotificationSettings, ag as useUpdateRoomNotificationSettings, ah as useUpdateRoomSubscriptionSettings, aE as useUser, aB as useUserThreads_experimental } from './room-BYtyYCxu.js';
1
+ export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledge, y as RegisterAiKnowledgeProps, x as RegisterAiTool, z as RegisterAiToolProps, A as RoomContext, N as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, D as createLiveblocksContext, K as createRoomContext, O as useAddReaction, aJ as useAiChat, aL as useAiChatMessages, aK as useAiChats, av as useAttachmentUrl, P as useBatch, Q as useBroadcastEvent, S as useCanRedo, T as useCanUndo, B as useClient, aC as useCreateAiChat, V as useCreateComment, W as useCreateThread, aD as useDeleteAiChat, E as useDeleteAllInboxNotifications, X as useDeleteComment, F as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, $ as useEditThreadMetadata, G as useErrorListener, a4 as useEventListener, a5 as useHistory, am as useHistoryVersionData, aw as useHistoryVersions, _ as useInboxNotificationThread, az as useInboxNotifications, a6 as useIsInsideRoom, a7 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a8 as useMarkThreadAsRead, a0 as useMarkThreadAsResolved, a1 as useMarkThreadAsUnresolved, a9 as useMutation, aa as useMyPresence, aA as useNotificationSettings, an as useOther, ao as useOthers, ap as useOthersConnectionIds, ab as useOthersListener, aq as useOthersMapped, ac as useRedo, ad as useRemoveReaction, ae as useRoom, aG as useRoomInfo, ax as useRoomNotificationSettings, ay as useRoomSubscriptionSettings, ar as useSelf, aE as useSendAiMessage, af as useStatus, as as useStorage, ag as useStorageRoot, at as useStorageStatus, a2 as useSubscribeToThread, J as useSyncStatus, ah as useThreadSubscription, au as useThreads, ai as useUndo, aH as useUnreadInboxNotificationsCount, a3 as useUnsubscribeFromThread, aj as useUpdateMyPresence, aB as useUpdateNotificationSettings, ak as useUpdateRoomNotificationSettings, al as useUpdateRoomSubscriptionSettings, aI as useUser, aF as useUserThreads_experimental } from './room-BdfI6Vy7.js';
2
2
  export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import * as react from 'react';
5
4
  import { ReactNode } from 'react';
6
- import { AiKnowledgeSource } from '@liveblocks/core';
5
+ import '@liveblocks/core';
7
6
 
8
7
  type Props = {
9
8
  fallback: ReactNode;
@@ -28,31 +27,4 @@ type Props = {
28
27
  */
29
28
  declare function ClientSideSuspense(props: Props): react_jsx_runtime.JSX.Element;
30
29
 
31
- /**
32
- * Make knowledge about your application state available to any AI used in
33
- * a chat or a one-off request.
34
- *
35
- * For example:
36
- *
37
- * <RegisterAiKnowledge
38
- * description="The current mode of my application"
39
- * value="dark" />
40
- *
41
- * <RegisterAiKnowledge
42
- * description="The current list of todos"
43
- * value={todos} />
44
- *
45
- * By mounting this component, the AI will get access to this knwoledge.
46
- * By unmounting this component, the AI will no longer have access to it.
47
- * It can choose to use or ignore this knowledge in its responses.
48
- */
49
- declare const RegisterAiKnowledge: react.NamedExoticComponent<AiKnowledgeSource & {
50
- /**
51
- * An optional unique key for this knowledge source. If multiple components
52
- * register knowledge under the same key, the last one to mount takes
53
- * precedence.
54
- */
55
- id?: string;
56
- }>;
57
-
58
- export { ClientSideSuspense, RegisterAiKnowledge };
30
+ export { ClientSideSuspense };
package/dist/index.js CHANGED
@@ -3,11 +3,12 @@ import {
3
3
  PKG_FORMAT,
4
4
  PKG_NAME,
5
5
  PKG_VERSION
6
- } from "./chunk-Y2RSQZ5R.js";
6
+ } from "./chunk-OWSOT5S6.js";
7
7
  import {
8
8
  ClientContext,
9
9
  LiveblocksProvider,
10
10
  RegisterAiKnowledge,
11
+ RegisterAiTool,
11
12
  RoomContext,
12
13
  _RoomProvider,
13
14
  _useAddReaction,
@@ -79,7 +80,7 @@ import {
79
80
  useUpdateNotificationSettings,
80
81
  useUpdateRoomNotificationSettings,
81
82
  useUpdateRoomSubscriptionSettings
82
- } from "./chunk-Y7BGHNHH.js";
83
+ } from "./chunk-X7TWWGKZ.js";
83
84
 
84
85
  // src/index.ts
85
86
  import { detectDupes } from "@liveblocks/core";
@@ -90,6 +91,7 @@ export {
90
91
  ClientSideSuspense,
91
92
  LiveblocksProvider,
92
93
  RegisterAiKnowledge,
94
+ RegisterAiTool,
93
95
  RoomContext,
94
96
  _RoomProvider as RoomProvider,
95
97
  createLiveblocksContext,
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 { RegisterAiKnowledge } from \"./ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n 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 useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\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 { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type { RegisterAiKnowledgeProps, RegisterAiToolProps } from \"./ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n 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 useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,SAAS,oCAAoC;AAXtD,YAAY,UAAU,aAAa,UAAU;","names":[]}
@@ -2,7 +2,7 @@ import * as react from 'react';
2
2
  import { ComponentType, Context, PropsWithChildren, ReactNode } from 'react';
3
3
  import { BaseUserMeta, Client, JsonObject, LsonObject, LiveObject, User, Json, RoomSubscriptionSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, ClientOptions, StorageStatus as StorageStatus$1, ThreadData as ThreadData$1, CommentData as CommentData$1 } from '@liveblocks/client';
4
4
  import * as _liveblocks_core from '@liveblocks/core';
5
- import { OpaqueClient, OpaqueRoom, BaseMetadata, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, Relax, ToImmutable, PartialNotificationSettings, AsyncLoading, AsyncError, ThreadData, HistoryVersion, AiChat, UiChatMessage, Client as Client$1, LiveblocksError, SyncStatus, AiKnowledgeSource, RoomEventMessage, CommentData, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, MessageId, 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';
5
+ import { OpaqueClient, OpaqueRoom, AiKnowledgeSource, AiOpaqueToolDefinition, BaseMetadata, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, Relax, ToImmutable, PartialNotificationSettings, AsyncLoading, AsyncError, ThreadData, HistoryVersion, AiChat, UiChatMessage, Client as Client$1, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, MessageId, 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';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
 
8
8
  /**
@@ -28,6 +28,71 @@ declare function useClient<U extends BaseUserMeta>(): Client<U>;
28
28
  */
29
29
  declare const RoomContext: react.Context<OpaqueRoom | null>;
30
30
 
31
+ type RegisterAiKnowledgeProps = AiKnowledgeSource & {
32
+ /**
33
+ * An optional unique key for this knowledge source. If multiple components
34
+ * register knowledge under the same key, the last one to mount takes
35
+ * precedence.
36
+ */
37
+ id?: string;
38
+ };
39
+ /**
40
+ * Make knowledge about your application state available to any AI used in
41
+ * a chat or a one-off request.
42
+ *
43
+ * For example:
44
+ *
45
+ * <RegisterAiKnowledge
46
+ * description="The current mode of my application"
47
+ * value="dark" />
48
+ *
49
+ * <RegisterAiKnowledge
50
+ * description="The current list of todos"
51
+ * value={todos} />
52
+ *
53
+ * By mounting this component, the AI will get access to this knwoledge.
54
+ * By unmounting this component, the AI will no longer have access to it.
55
+ * It can choose to use or ignore this knowledge in its responses.
56
+ */
57
+ declare const RegisterAiKnowledge: react.NamedExoticComponent<RegisterAiKnowledgeProps>;
58
+ type RegisterAiToolProps = {
59
+ name: string;
60
+ tool: AiOpaqueToolDefinition;
61
+ /**
62
+ * When provided, the tool will only be available for this chatId. If not
63
+ * provided, this tool will globally be made available to any AiChat
64
+ * instance.
65
+ */
66
+ chatId?: string;
67
+ };
68
+ /**
69
+ * Make a tool available to your AI chat or a one-off request.
70
+ * A tool is a piece of functionality that the AI can call to perform an action
71
+ * or look up information on the user's behalf.
72
+ *
73
+ * Also, tools are used to render custom UIs for tool invocations, which are
74
+ * embedded inside the AI chat.
75
+ *
76
+ * For example:
77
+ *
78
+ * <RegisterAiTool
79
+ * name="list-todos"
80
+ * tool={defineAiTool()({ ... })}
81
+ * />
82
+ *
83
+ * Or scoped to a specific chat:
84
+ *
85
+ * <RegisterAiTool
86
+ * name="list-todos"
87
+ * tool={defineAiTool()({ ... })}
88
+ * chatId="chat-1234"
89
+ * />
90
+ *
91
+ * By mounting this component, the tool is made available.
92
+ * By unmounting this component, the tool will no longer be available.
93
+ */
94
+ declare const RegisterAiTool: react.NamedExoticComponent<RegisterAiToolProps>;
95
+
31
96
  type UseSyncStatusOptions = {
32
97
  /**
33
98
  * When setting smooth, the hook will not update immediately as status
@@ -263,14 +328,8 @@ type SharedContextBundle<U extends BaseUserMeta> = {
263
328
  * By unmounting this component, the AI will no longer have access to it.
264
329
  * It can choose to use or ignore this knowledge in its responses.
265
330
  */
266
- RegisterAiKnowledge: ComponentType<AiKnowledgeSource & {
267
- /**
268
- * An optional unique key for this knowledge source. If multiple components
269
- * register knowledge under the same key, the last one to mount takes
270
- * precedence.
271
- */
272
- id?: string;
273
- }>;
331
+ RegisterAiKnowledge: ComponentType<RegisterAiKnowledgeProps>;
332
+ RegisterAiTool: ComponentType<RegisterAiToolProps>;
274
333
  };
275
334
  suspense: {
276
335
  /**
@@ -338,14 +397,8 @@ type SharedContextBundle<U extends BaseUserMeta> = {
338
397
  * By unmounting this component, the AI will no longer have access to it.
339
398
  * It can choose to use or ignore this knowledge in its responses.
340
399
  */
341
- RegisterAiKnowledge: ComponentType<AiKnowledgeSource & {
342
- /**
343
- * An optional unique key for this knowledge source. If multiple components
344
- * register knowledge under the same key, the last one to mount takes
345
- * precedence.
346
- */
347
- id?: string;
348
- }>;
400
+ RegisterAiKnowledge: ComponentType<RegisterAiKnowledgeProps>;
401
+ RegisterAiTool: ComponentType<RegisterAiToolProps>;
349
402
  };
350
403
  };
351
404
  /**
@@ -2675,4 +2728,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
2675
2728
  */
2676
2729
  declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
2677
2730
 
2678
- export { useUnsubscribeFromThread 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, RoomContext as R, useDeleteComment as S, _useDeleteThread as T, type UseStorageStatusOptions as U, useEditComment as V, _useEditThreadMetadata as W, useMarkThreadAsResolved as X, useMarkThreadAsUnresolved as Y, useSubscribeToThread as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, _useAiChatMessagesSuspense as a$, _useEventListener as a0, useHistory as a1, _useIsInsideRoom as a2, useLostConnectionListener as a3, useMarkThreadAsRead as a4, _useMutation as a5, _useMyPresence as a6, _useOthersListener as a7, useRedo as a8, useRemoveReaction as a9, useSendAiMessage as aA, _useUserThreads_experimental as aB, useRoomInfo as aC, useUnreadInboxNotificationsCount as aD, _useUser as aE, _useAiChat as aF, _useAiChats as aG, _useAiChatMessages as aH, _useOtherSuspense as aI, _useOthersSuspense as aJ, useOthersConnectionIdsSuspense as aK, _useOthersMappedSuspense as aL, _useSelfSuspense as aM, _useStorageSuspense as aN, useStorageStatusSuspense as aO, _useThreadsSuspense as aP, useAttachmentUrlSuspense as aQ, _useHistoryVersionsSuspense as aR, _useRoomNotificationSettingsSuspense as aS, _useRoomSubscriptionSettingsSuspense as aT, useInboxNotificationsSuspense as aU, useNotificationSettingsSuspense as aV, useRoomInfoSuspense as aW, useUnreadInboxNotificationsCountSuspense as aX, _useUserSuspense as aY, _useUserThreadsSuspense_experimental as aZ, _useAiChatsSuspense as a_, _useRoom as aa, useStatus as ab, _useStorageRoot as ac, useThreadSubscription as ad, useUndo as ae, _useUpdateMyPresence as af, useUpdateRoomNotificationSettings as ag, useUpdateRoomSubscriptionSettings as ah, useHistoryVersionData as ai, _useOther as aj, _useOthers as ak, useOthersConnectionIds as al, _useOthersMapped as am, _useSelf as an, _useStorage as ao, useStorageStatus as ap, _useThreads as aq, useAttachmentUrl as ar, _useHistoryVersions as as, _useRoomNotificationSettings as at, _useRoomSubscriptionSettings as au, useInboxNotifications as av, useNotificationSettings as aw, useUpdateNotificationSettings as ax, useCreateAiChat as ay, useDeleteAiChat as az, useCreateRoomComment as b, _useAiChatSuspense as b0, 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, useClient as x, createLiveblocksContext as y, useDeleteAllInboxNotifications as z };
2731
+ export { _useEditThreadMetadata as $, RoomContext as A, useClient as B, ClientContext as C, createLiveblocksContext as D, useDeleteAllInboxNotifications as E, useDeleteInboxNotification as F, useErrorListener as G, useMarkAllInboxNotificationsAsRead as H, useMarkInboxNotificationAsRead as I, useSyncStatus as J, createRoomContext as K, LiveblocksProvider as L, type MutationContext as M, _RoomProvider as N, _useAddReaction as O, useBatch as P, _useBroadcastEvent as Q, RegisterAiKnowledge as R, useCanRedo as S, useCanUndo as T, type UseStorageStatusOptions as U, useCreateComment as V, _useCreateThread as W, useDeleteComment as X, _useDeleteThread as Y, useEditComment as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, useUnreadInboxNotificationsCountSuspense as a$, useMarkThreadAsResolved as a0, useMarkThreadAsUnresolved as a1, useSubscribeToThread as a2, useUnsubscribeFromThread as a3, _useEventListener as a4, useHistory as a5, _useIsInsideRoom as a6, useLostConnectionListener as a7, useMarkThreadAsRead as a8, _useMutation as a9, useNotificationSettings as aA, useUpdateNotificationSettings as aB, useCreateAiChat as aC, useDeleteAiChat as aD, useSendAiMessage as aE, _useUserThreads_experimental as aF, useRoomInfo as aG, useUnreadInboxNotificationsCount as aH, _useUser as aI, _useAiChat as aJ, _useAiChats as aK, _useAiChatMessages as aL, _useOtherSuspense as aM, _useOthersSuspense as aN, useOthersConnectionIdsSuspense as aO, _useOthersMappedSuspense as aP, _useSelfSuspense as aQ, _useStorageSuspense as aR, useStorageStatusSuspense as aS, _useThreadsSuspense as aT, useAttachmentUrlSuspense as aU, _useHistoryVersionsSuspense as aV, _useRoomNotificationSettingsSuspense as aW, _useRoomSubscriptionSettingsSuspense as aX, useInboxNotificationsSuspense as aY, useNotificationSettingsSuspense as aZ, useRoomInfoSuspense as a_, _useMyPresence as aa, _useOthersListener as ab, useRedo as ac, useRemoveReaction as ad, _useRoom as ae, useStatus as af, _useStorageRoot as ag, useThreadSubscription as ah, useUndo as ai, _useUpdateMyPresence as aj, useUpdateRoomNotificationSettings as ak, useUpdateRoomSubscriptionSettings as al, useHistoryVersionData as am, _useOther as an, _useOthers as ao, useOthersConnectionIds as ap, _useOthersMapped as aq, _useSelf as ar, _useStorage as as, useStorageStatus as at, _useThreads as au, useAttachmentUrl as av, _useHistoryVersions as aw, _useRoomNotificationSettings as ax, _useRoomSubscriptionSettings as ay, useInboxNotifications as az, useCreateRoomComment as b, _useUserSuspense as b0, _useUserThreadsSuspense_experimental as b1, _useAiChatsSuspense as b2, _useAiChatMessagesSuspense as b3, _useAiChatSuspense as b4, 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, RegisterAiTool as x, type RegisterAiKnowledgeProps as y, type RegisterAiToolProps as z };
@@ -2,7 +2,7 @@ import * as react from 'react';
2
2
  import { ComponentType, Context, PropsWithChildren, ReactNode } from 'react';
3
3
  import { BaseUserMeta, Client, JsonObject, LsonObject, LiveObject, User, Json, RoomSubscriptionSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, ClientOptions, StorageStatus as StorageStatus$1, ThreadData as ThreadData$1, CommentData as CommentData$1 } from '@liveblocks/client';
4
4
  import * as _liveblocks_core from '@liveblocks/core';
5
- import { OpaqueClient, OpaqueRoom, BaseMetadata, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, Relax, ToImmutable, PartialNotificationSettings, AsyncLoading, AsyncError, ThreadData, HistoryVersion, AiChat, UiChatMessage, Client as Client$1, LiveblocksError, SyncStatus, AiKnowledgeSource, RoomEventMessage, CommentData, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, MessageId, 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';
5
+ import { OpaqueClient, OpaqueRoom, AiKnowledgeSource, AiOpaqueToolDefinition, BaseMetadata, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, Relax, ToImmutable, PartialNotificationSettings, AsyncLoading, AsyncError, ThreadData, HistoryVersion, AiChat, UiChatMessage, Client as Client$1, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, MessageId, 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';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
 
8
8
  /**
@@ -28,6 +28,71 @@ declare function useClient<U extends BaseUserMeta>(): Client<U>;
28
28
  */
29
29
  declare const RoomContext: react.Context<OpaqueRoom | null>;
30
30
 
31
+ type RegisterAiKnowledgeProps = AiKnowledgeSource & {
32
+ /**
33
+ * An optional unique key for this knowledge source. If multiple components
34
+ * register knowledge under the same key, the last one to mount takes
35
+ * precedence.
36
+ */
37
+ id?: string;
38
+ };
39
+ /**
40
+ * Make knowledge about your application state available to any AI used in
41
+ * a chat or a one-off request.
42
+ *
43
+ * For example:
44
+ *
45
+ * <RegisterAiKnowledge
46
+ * description="The current mode of my application"
47
+ * value="dark" />
48
+ *
49
+ * <RegisterAiKnowledge
50
+ * description="The current list of todos"
51
+ * value={todos} />
52
+ *
53
+ * By mounting this component, the AI will get access to this knwoledge.
54
+ * By unmounting this component, the AI will no longer have access to it.
55
+ * It can choose to use or ignore this knowledge in its responses.
56
+ */
57
+ declare const RegisterAiKnowledge: react.NamedExoticComponent<RegisterAiKnowledgeProps>;
58
+ type RegisterAiToolProps = {
59
+ name: string;
60
+ tool: AiOpaqueToolDefinition;
61
+ /**
62
+ * When provided, the tool will only be available for this chatId. If not
63
+ * provided, this tool will globally be made available to any AiChat
64
+ * instance.
65
+ */
66
+ chatId?: string;
67
+ };
68
+ /**
69
+ * Make a tool available to your AI chat or a one-off request.
70
+ * A tool is a piece of functionality that the AI can call to perform an action
71
+ * or look up information on the user's behalf.
72
+ *
73
+ * Also, tools are used to render custom UIs for tool invocations, which are
74
+ * embedded inside the AI chat.
75
+ *
76
+ * For example:
77
+ *
78
+ * <RegisterAiTool
79
+ * name="list-todos"
80
+ * tool={defineAiTool()({ ... })}
81
+ * />
82
+ *
83
+ * Or scoped to a specific chat:
84
+ *
85
+ * <RegisterAiTool
86
+ * name="list-todos"
87
+ * tool={defineAiTool()({ ... })}
88
+ * chatId="chat-1234"
89
+ * />
90
+ *
91
+ * By mounting this component, the tool is made available.
92
+ * By unmounting this component, the tool will no longer be available.
93
+ */
94
+ declare const RegisterAiTool: react.NamedExoticComponent<RegisterAiToolProps>;
95
+
31
96
  type UseSyncStatusOptions = {
32
97
  /**
33
98
  * When setting smooth, the hook will not update immediately as status
@@ -263,14 +328,8 @@ type SharedContextBundle<U extends BaseUserMeta> = {
263
328
  * By unmounting this component, the AI will no longer have access to it.
264
329
  * It can choose to use or ignore this knowledge in its responses.
265
330
  */
266
- RegisterAiKnowledge: ComponentType<AiKnowledgeSource & {
267
- /**
268
- * An optional unique key for this knowledge source. If multiple components
269
- * register knowledge under the same key, the last one to mount takes
270
- * precedence.
271
- */
272
- id?: string;
273
- }>;
331
+ RegisterAiKnowledge: ComponentType<RegisterAiKnowledgeProps>;
332
+ RegisterAiTool: ComponentType<RegisterAiToolProps>;
274
333
  };
275
334
  suspense: {
276
335
  /**
@@ -338,14 +397,8 @@ type SharedContextBundle<U extends BaseUserMeta> = {
338
397
  * By unmounting this component, the AI will no longer have access to it.
339
398
  * It can choose to use or ignore this knowledge in its responses.
340
399
  */
341
- RegisterAiKnowledge: ComponentType<AiKnowledgeSource & {
342
- /**
343
- * An optional unique key for this knowledge source. If multiple components
344
- * register knowledge under the same key, the last one to mount takes
345
- * precedence.
346
- */
347
- id?: string;
348
- }>;
400
+ RegisterAiKnowledge: ComponentType<RegisterAiKnowledgeProps>;
401
+ RegisterAiTool: ComponentType<RegisterAiToolProps>;
349
402
  };
350
403
  };
351
404
  /**
@@ -2675,4 +2728,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
2675
2728
  */
2676
2729
  declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
2677
2730
 
2678
- export { useUnsubscribeFromThread 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, RoomContext as R, useDeleteComment as S, _useDeleteThread as T, type UseStorageStatusOptions as U, useEditComment as V, _useEditThreadMetadata as W, useMarkThreadAsResolved as X, useMarkThreadAsUnresolved as Y, useSubscribeToThread as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, _useAiChatMessagesSuspense as a$, _useEventListener as a0, useHistory as a1, _useIsInsideRoom as a2, useLostConnectionListener as a3, useMarkThreadAsRead as a4, _useMutation as a5, _useMyPresence as a6, _useOthersListener as a7, useRedo as a8, useRemoveReaction as a9, useSendAiMessage as aA, _useUserThreads_experimental as aB, useRoomInfo as aC, useUnreadInboxNotificationsCount as aD, _useUser as aE, _useAiChat as aF, _useAiChats as aG, _useAiChatMessages as aH, _useOtherSuspense as aI, _useOthersSuspense as aJ, useOthersConnectionIdsSuspense as aK, _useOthersMappedSuspense as aL, _useSelfSuspense as aM, _useStorageSuspense as aN, useStorageStatusSuspense as aO, _useThreadsSuspense as aP, useAttachmentUrlSuspense as aQ, _useHistoryVersionsSuspense as aR, _useRoomNotificationSettingsSuspense as aS, _useRoomSubscriptionSettingsSuspense as aT, useInboxNotificationsSuspense as aU, useNotificationSettingsSuspense as aV, useRoomInfoSuspense as aW, useUnreadInboxNotificationsCountSuspense as aX, _useUserSuspense as aY, _useUserThreadsSuspense_experimental as aZ, _useAiChatsSuspense as a_, _useRoom as aa, useStatus as ab, _useStorageRoot as ac, useThreadSubscription as ad, useUndo as ae, _useUpdateMyPresence as af, useUpdateRoomNotificationSettings as ag, useUpdateRoomSubscriptionSettings as ah, useHistoryVersionData as ai, _useOther as aj, _useOthers as ak, useOthersConnectionIds as al, _useOthersMapped as am, _useSelf as an, _useStorage as ao, useStorageStatus as ap, _useThreads as aq, useAttachmentUrl as ar, _useHistoryVersions as as, _useRoomNotificationSettings as at, _useRoomSubscriptionSettings as au, useInboxNotifications as av, useNotificationSettings as aw, useUpdateNotificationSettings as ax, useCreateAiChat as ay, useDeleteAiChat as az, useCreateRoomComment as b, _useAiChatSuspense as b0, 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, useClient as x, createLiveblocksContext as y, useDeleteAllInboxNotifications as z };
2731
+ export { _useEditThreadMetadata as $, RoomContext as A, useClient as B, ClientContext as C, createLiveblocksContext as D, useDeleteAllInboxNotifications as E, useDeleteInboxNotification as F, useErrorListener as G, useMarkAllInboxNotificationsAsRead as H, useMarkInboxNotificationAsRead as I, useSyncStatus as J, createRoomContext as K, LiveblocksProvider as L, type MutationContext as M, _RoomProvider as N, _useAddReaction as O, useBatch as P, _useBroadcastEvent as Q, RegisterAiKnowledge as R, useCanRedo as S, useCanUndo as T, type UseStorageStatusOptions as U, useCreateComment as V, _useCreateThread as W, useDeleteComment as X, _useDeleteThread as Y, useEditComment as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, useUnreadInboxNotificationsCountSuspense as a$, useMarkThreadAsResolved as a0, useMarkThreadAsUnresolved as a1, useSubscribeToThread as a2, useUnsubscribeFromThread as a3, _useEventListener as a4, useHistory as a5, _useIsInsideRoom as a6, useLostConnectionListener as a7, useMarkThreadAsRead as a8, _useMutation as a9, useNotificationSettings as aA, useUpdateNotificationSettings as aB, useCreateAiChat as aC, useDeleteAiChat as aD, useSendAiMessage as aE, _useUserThreads_experimental as aF, useRoomInfo as aG, useUnreadInboxNotificationsCount as aH, _useUser as aI, _useAiChat as aJ, _useAiChats as aK, _useAiChatMessages as aL, _useOtherSuspense as aM, _useOthersSuspense as aN, useOthersConnectionIdsSuspense as aO, _useOthersMappedSuspense as aP, _useSelfSuspense as aQ, _useStorageSuspense as aR, useStorageStatusSuspense as aS, _useThreadsSuspense as aT, useAttachmentUrlSuspense as aU, _useHistoryVersionsSuspense as aV, _useRoomNotificationSettingsSuspense as aW, _useRoomSubscriptionSettingsSuspense as aX, useInboxNotificationsSuspense as aY, useNotificationSettingsSuspense as aZ, useRoomInfoSuspense as a_, _useMyPresence as aa, _useOthersListener as ab, useRedo as ac, useRemoveReaction as ad, _useRoom as ae, useStatus as af, _useStorageRoot as ag, useThreadSubscription as ah, useUndo as ai, _useUpdateMyPresence as aj, useUpdateRoomNotificationSettings as ak, useUpdateRoomSubscriptionSettings as al, useHistoryVersionData as am, _useOther as an, _useOthers as ao, useOthersConnectionIds as ap, _useOthersMapped as aq, _useSelf as ar, _useStorage as as, useStorageStatus as at, _useThreads as au, useAttachmentUrl as av, _useHistoryVersions as aw, _useRoomNotificationSettings as ax, _useRoomSubscriptionSettings as ay, useInboxNotifications as az, useCreateRoomComment as b, _useUserSuspense as b0, _useUserThreadsSuspense_experimental as b1, _useAiChatsSuspense as b2, _useAiChatMessagesSuspense as b3, _useAiChatSuspense as b4, 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, RegisterAiTool as x, type RegisterAiKnowledgeProps as y, type RegisterAiToolProps as z };
package/dist/suspense.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkMSLJX4ZWcjs = require('./chunk-MSLJX4ZW.cjs');
6
+ var _chunkA4EPET3Zcjs = require('./chunk-A4EPET3Z.cjs');
7
7
 
8
8
 
9
9
 
@@ -76,12 +76,14 @@ var _chunkMSLJX4ZWcjs = require('./chunk-MSLJX4ZW.cjs');
76
76
 
77
77
 
78
78
 
79
- var _chunkY6Z36KDPcjs = require('./chunk-Y6Z36KDP.cjs');
79
+
80
+ var _chunkCTSFL4KTcjs = require('./chunk-CTSFL4KT.cjs');
80
81
 
81
82
  // src/suspense.ts
82
83
  var _core = require('@liveblocks/core');
83
84
  var _client = require('@liveblocks/client');
84
- _core.detectDupes.call(void 0, _chunkMSLJX4ZWcjs.PKG_NAME, _chunkMSLJX4ZWcjs.PKG_VERSION, _chunkMSLJX4ZWcjs.PKG_FORMAT);
85
+ _core.detectDupes.call(void 0, _chunkA4EPET3Zcjs.PKG_NAME, _chunkA4EPET3Zcjs.PKG_VERSION, _chunkA4EPET3Zcjs.PKG_FORMAT);
86
+
85
87
 
86
88
 
87
89
 
@@ -157,5 +159,5 @@ _core.detectDupes.call(void 0, _chunkMSLJX4ZWcjs.PKG_NAME, _chunkMSLJX4ZWcjs.PKG
157
159
 
158
160
 
159
161
 
160
- exports.ClientContext = _chunkY6Z36KDPcjs.ClientContext; exports.ClientSideSuspense = _chunkMSLJX4ZWcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkY6Z36KDPcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkY6Z36KDPcjs.RegisterAiKnowledge; exports.RoomContext = _chunkY6Z36KDPcjs.RoomContext; exports.RoomProvider = _chunkY6Z36KDPcjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkY6Z36KDPcjs._useAddReaction; exports.useAiChat = _chunkY6Z36KDPcjs._useAiChatSuspense; exports.useAiChatMessages = _chunkY6Z36KDPcjs._useAiChatMessagesSuspense; exports.useAiChats = _chunkY6Z36KDPcjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunkY6Z36KDPcjs.useAttachmentUrlSuspense; exports.useBatch = _chunkY6Z36KDPcjs.useBatch; exports.useBroadcastEvent = _chunkY6Z36KDPcjs._useBroadcastEvent; exports.useCanRedo = _chunkY6Z36KDPcjs.useCanRedo; exports.useCanUndo = _chunkY6Z36KDPcjs.useCanUndo; exports.useClient = _chunkY6Z36KDPcjs.useClient; exports.useCreateAiChat = _chunkY6Z36KDPcjs.useCreateAiChat; exports.useCreateComment = _chunkY6Z36KDPcjs.useCreateComment; exports.useCreateThread = _chunkY6Z36KDPcjs._useCreateThread; exports.useDeleteAiChat = _chunkY6Z36KDPcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkY6Z36KDPcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkY6Z36KDPcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkY6Z36KDPcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkY6Z36KDPcjs._useDeleteThread; exports.useEditComment = _chunkY6Z36KDPcjs.useEditComment; exports.useEditThreadMetadata = _chunkY6Z36KDPcjs._useEditThreadMetadata; exports.useErrorListener = _chunkY6Z36KDPcjs.useErrorListener; exports.useEventListener = _chunkY6Z36KDPcjs._useEventListener; exports.useHistory = _chunkY6Z36KDPcjs.useHistory; exports.useHistoryVersions = _chunkY6Z36KDPcjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkY6Z36KDPcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkY6Z36KDPcjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkY6Z36KDPcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkY6Z36KDPcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkY6Z36KDPcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkY6Z36KDPcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkY6Z36KDPcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkY6Z36KDPcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkY6Z36KDPcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkY6Z36KDPcjs._useMutation; exports.useMyPresence = _chunkY6Z36KDPcjs._useMyPresence; exports.useNotificationSettings = _chunkY6Z36KDPcjs.useNotificationSettingsSuspense; exports.useOther = _chunkY6Z36KDPcjs._useOtherSuspense; exports.useOthers = _chunkY6Z36KDPcjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkY6Z36KDPcjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkY6Z36KDPcjs._useOthersListener; exports.useOthersMapped = _chunkY6Z36KDPcjs._useOthersMappedSuspense; exports.useRedo = _chunkY6Z36KDPcjs.useRedo; exports.useRemoveReaction = _chunkY6Z36KDPcjs.useRemoveReaction; exports.useRoom = _chunkY6Z36KDPcjs._useRoom; exports.useRoomInfo = _chunkY6Z36KDPcjs.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunkY6Z36KDPcjs._useRoomNotificationSettingsSuspense; exports.useRoomSubscriptionSettings = _chunkY6Z36KDPcjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunkY6Z36KDPcjs._useSelfSuspense; exports.useSendAiMessage = _chunkY6Z36KDPcjs.useSendAiMessage; exports.useStatus = _chunkY6Z36KDPcjs.useStatus; exports.useStorage = _chunkY6Z36KDPcjs._useStorageSuspense; exports.useStorageRoot = _chunkY6Z36KDPcjs._useStorageRoot; exports.useStorageStatus = _chunkY6Z36KDPcjs.useStorageStatusSuspense; exports.useSubscribeToThread = _chunkY6Z36KDPcjs.useSubscribeToThread; exports.useSyncStatus = _chunkY6Z36KDPcjs.useSyncStatus; exports.useThreadSubscription = _chunkY6Z36KDPcjs.useThreadSubscription; exports.useThreads = _chunkY6Z36KDPcjs._useThreadsSuspense; exports.useUndo = _chunkY6Z36KDPcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkY6Z36KDPcjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunkY6Z36KDPcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkY6Z36KDPcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkY6Z36KDPcjs.useUpdateNotificationSettings; exports.useUpdateRoomNotificationSettings = _chunkY6Z36KDPcjs.useUpdateRoomNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkY6Z36KDPcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunkY6Z36KDPcjs._useUserSuspense; exports.useUserThreads_experimental = _chunkY6Z36KDPcjs._useUserThreadsSuspense_experimental;
162
+ exports.ClientContext = _chunkCTSFL4KTcjs.ClientContext; exports.ClientSideSuspense = _chunkA4EPET3Zcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkCTSFL4KTcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkCTSFL4KTcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkCTSFL4KTcjs.RegisterAiTool; exports.RoomContext = _chunkCTSFL4KTcjs.RoomContext; exports.RoomProvider = _chunkCTSFL4KTcjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkCTSFL4KTcjs._useAddReaction; exports.useAiChat = _chunkCTSFL4KTcjs._useAiChatSuspense; exports.useAiChatMessages = _chunkCTSFL4KTcjs._useAiChatMessagesSuspense; exports.useAiChats = _chunkCTSFL4KTcjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunkCTSFL4KTcjs.useAttachmentUrlSuspense; exports.useBatch = _chunkCTSFL4KTcjs.useBatch; exports.useBroadcastEvent = _chunkCTSFL4KTcjs._useBroadcastEvent; exports.useCanRedo = _chunkCTSFL4KTcjs.useCanRedo; exports.useCanUndo = _chunkCTSFL4KTcjs.useCanUndo; exports.useClient = _chunkCTSFL4KTcjs.useClient; exports.useCreateAiChat = _chunkCTSFL4KTcjs.useCreateAiChat; exports.useCreateComment = _chunkCTSFL4KTcjs.useCreateComment; exports.useCreateThread = _chunkCTSFL4KTcjs._useCreateThread; exports.useDeleteAiChat = _chunkCTSFL4KTcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkCTSFL4KTcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkCTSFL4KTcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkCTSFL4KTcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkCTSFL4KTcjs._useDeleteThread; exports.useEditComment = _chunkCTSFL4KTcjs.useEditComment; exports.useEditThreadMetadata = _chunkCTSFL4KTcjs._useEditThreadMetadata; exports.useErrorListener = _chunkCTSFL4KTcjs.useErrorListener; exports.useEventListener = _chunkCTSFL4KTcjs._useEventListener; exports.useHistory = _chunkCTSFL4KTcjs.useHistory; exports.useHistoryVersions = _chunkCTSFL4KTcjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkCTSFL4KTcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkCTSFL4KTcjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkCTSFL4KTcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkCTSFL4KTcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkCTSFL4KTcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkCTSFL4KTcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkCTSFL4KTcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkCTSFL4KTcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkCTSFL4KTcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkCTSFL4KTcjs._useMutation; exports.useMyPresence = _chunkCTSFL4KTcjs._useMyPresence; exports.useNotificationSettings = _chunkCTSFL4KTcjs.useNotificationSettingsSuspense; exports.useOther = _chunkCTSFL4KTcjs._useOtherSuspense; exports.useOthers = _chunkCTSFL4KTcjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkCTSFL4KTcjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkCTSFL4KTcjs._useOthersListener; exports.useOthersMapped = _chunkCTSFL4KTcjs._useOthersMappedSuspense; exports.useRedo = _chunkCTSFL4KTcjs.useRedo; exports.useRemoveReaction = _chunkCTSFL4KTcjs.useRemoveReaction; exports.useRoom = _chunkCTSFL4KTcjs._useRoom; exports.useRoomInfo = _chunkCTSFL4KTcjs.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunkCTSFL4KTcjs._useRoomNotificationSettingsSuspense; exports.useRoomSubscriptionSettings = _chunkCTSFL4KTcjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunkCTSFL4KTcjs._useSelfSuspense; exports.useSendAiMessage = _chunkCTSFL4KTcjs.useSendAiMessage; exports.useStatus = _chunkCTSFL4KTcjs.useStatus; exports.useStorage = _chunkCTSFL4KTcjs._useStorageSuspense; exports.useStorageRoot = _chunkCTSFL4KTcjs._useStorageRoot; exports.useStorageStatus = _chunkCTSFL4KTcjs.useStorageStatusSuspense; exports.useSubscribeToThread = _chunkCTSFL4KTcjs.useSubscribeToThread; exports.useSyncStatus = _chunkCTSFL4KTcjs.useSyncStatus; exports.useThreadSubscription = _chunkCTSFL4KTcjs.useThreadSubscription; exports.useThreads = _chunkCTSFL4KTcjs._useThreadsSuspense; exports.useUndo = _chunkCTSFL4KTcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkCTSFL4KTcjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunkCTSFL4KTcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkCTSFL4KTcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkCTSFL4KTcjs.useUpdateNotificationSettings; exports.useUpdateRoomNotificationSettings = _chunkCTSFL4KTcjs.useUpdateRoomNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkCTSFL4KTcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunkCTSFL4KTcjs._useUserSuspense; exports.useUserThreads_experimental = _chunkCTSFL4KTcjs._useUserThreadsSuspense_experimental;
161
163
  //# 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;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,84JAAC","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 { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport { RegisterAiKnowledge } from \"./ai\";\nexport {\n LiveblocksProvider,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useSyncStatus,\n useErrorListener,\n} from \"./liveblocks\";\nexport {\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 useAiChatSuspense as useAiChat,\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;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;AChFA,wCAA4B;AAc5B,4CAAsD;AAXtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADiF7C;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;AACF,y8JAAC","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 { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type { RegisterAiKnowledgeProps, RegisterAiToolProps } from \"./ai\";\nexport {\n LiveblocksProvider,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useSyncStatus,\n useErrorListener,\n} from \"./liveblocks\";\nexport {\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 useAiChatSuspense as useAiChat,\n} from \"./liveblocks\";\n"]}
@@ -1,5 +1,5 @@
1
- export { ClientSideSuspense, RegisterAiKnowledge } from './index.cjs';
2
- export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, I as useAddReaction, b0 as useAiChat, a$ as useAiChatMessages, a_ as useAiChats, aQ as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, x as useClient, ay as useCreateAiChat, P as useCreateComment, Q as useCreateThread, az as useDeleteAiChat, z as useDeleteAllInboxNotifications, S as useDeleteComment, A as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, B as useErrorListener, a0 as useEventListener, a1 as useHistory, aR as useHistoryVersions, _ as useInboxNotificationThread, aU as useInboxNotifications, a2 as useIsInsideRoom, a3 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a4 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a5 as useMutation, a6 as useMyPresence, aV as useNotificationSettings, aI as useOther, aJ as useOthers, aK as useOthersConnectionIds, a7 as useOthersListener, aL as useOthersMapped, a8 as useRedo, a9 as useRemoveReaction, aa as useRoom, aW as useRoomInfo, aS as useRoomNotificationSettings, aT as useRoomSubscriptionSettings, aM as useSelf, aA as useSendAiMessage, ab as useStatus, aN as useStorage, ac as useStorageRoot, aO as useStorageStatus, Z as useSubscribeToThread, F as useSyncStatus, ad as useThreadSubscription, aP as useThreads, ae as useUndo, aX as useUnreadInboxNotificationsCount, $ as useUnsubscribeFromThread, af as useUpdateMyPresence, ax as useUpdateNotificationSettings, ag as useUpdateRoomNotificationSettings, ah as useUpdateRoomSubscriptionSettings, aY as useUser, aZ as useUserThreads_experimental } from './room-BYtyYCxu.cjs';
1
+ export { ClientSideSuspense } from './index.cjs';
2
+ export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledge, y as RegisterAiKnowledgeProps, x as RegisterAiTool, z as RegisterAiToolProps, A as RoomContext, N as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, O as useAddReaction, b4 as useAiChat, b3 as useAiChatMessages, b2 as useAiChats, aU as useAttachmentUrl, P as useBatch, Q as useBroadcastEvent, S as useCanRedo, T as useCanUndo, B as useClient, aC as useCreateAiChat, V as useCreateComment, W as useCreateThread, aD as useDeleteAiChat, E as useDeleteAllInboxNotifications, X as useDeleteComment, F as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, $ as useEditThreadMetadata, G as useErrorListener, a4 as useEventListener, a5 as useHistory, aV as useHistoryVersions, _ as useInboxNotificationThread, aY as useInboxNotifications, a6 as useIsInsideRoom, a7 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a8 as useMarkThreadAsRead, a0 as useMarkThreadAsResolved, a1 as useMarkThreadAsUnresolved, a9 as useMutation, aa as useMyPresence, aZ as useNotificationSettings, aM as useOther, aN as useOthers, aO as useOthersConnectionIds, ab as useOthersListener, aP as useOthersMapped, ac as useRedo, ad as useRemoveReaction, ae as useRoom, a_ as useRoomInfo, aW as useRoomNotificationSettings, aX as useRoomSubscriptionSettings, aQ as useSelf, aE as useSendAiMessage, af as useStatus, aR as useStorage, ag as useStorageRoot, aS as useStorageStatus, a2 as useSubscribeToThread, J as useSyncStatus, ah as useThreadSubscription, aT as useThreads, ai as useUndo, a$ as useUnreadInboxNotificationsCount, a3 as useUnsubscribeFromThread, aj as useUpdateMyPresence, aB as useUpdateNotificationSettings, ak as useUpdateRoomNotificationSettings, al as useUpdateRoomSubscriptionSettings, b0 as useUser, b1 as useUserThreads_experimental } from './room-BdfI6Vy7.cjs';
3
3
  export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react';