@liveblocks/react 2.25.0-aiprivatebeta10 → 2.25.0-aiprivatebeta12

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 _chunkICBBMT4Ucjs = require('./chunk-ICBBMT4U.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 _chunk7DJASH5Hcjs = require('./chunk-7DJASH5H.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, _chunkICBBMT4Ucjs.PKG_NAME, _chunkICBBMT4Ucjs.PKG_VERSION, _chunkICBBMT4Ucjs.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 = _chunk7DJASH5Hcjs.ClientContext; exports.ClientSideSuspense = _chunkICBBMT4Ucjs.ClientSideSuspense; exports.LiveblocksProvider = _chunk7DJASH5Hcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunk7DJASH5Hcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunk7DJASH5Hcjs.RegisterAiTool; exports.RoomContext = _chunk7DJASH5Hcjs.RoomContext; exports.RoomProvider = _chunk7DJASH5Hcjs._RoomProvider; exports.createLiveblocksContext = _chunk7DJASH5Hcjs.createLiveblocksContext; exports.createRoomContext = _chunk7DJASH5Hcjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunk7DJASH5Hcjs._useAddReaction; exports.useAiChat = _chunk7DJASH5Hcjs._useAiChat; exports.useAiChatMessages = _chunk7DJASH5Hcjs._useAiChatMessages; exports.useAiChats = _chunk7DJASH5Hcjs._useAiChats; exports.useAttachmentUrl = _chunk7DJASH5Hcjs.useAttachmentUrl; exports.useBatch = _chunk7DJASH5Hcjs.useBatch; exports.useBroadcastEvent = _chunk7DJASH5Hcjs._useBroadcastEvent; exports.useCanRedo = _chunk7DJASH5Hcjs.useCanRedo; exports.useCanUndo = _chunk7DJASH5Hcjs.useCanUndo; exports.useClient = _chunk7DJASH5Hcjs.useClient; exports.useCreateAiChat = _chunk7DJASH5Hcjs.useCreateAiChat; exports.useCreateComment = _chunk7DJASH5Hcjs.useCreateComment; exports.useCreateThread = _chunk7DJASH5Hcjs._useCreateThread; exports.useDeleteAiChat = _chunk7DJASH5Hcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunk7DJASH5Hcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunk7DJASH5Hcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunk7DJASH5Hcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunk7DJASH5Hcjs._useDeleteThread; exports.useEditComment = _chunk7DJASH5Hcjs.useEditComment; exports.useEditThreadMetadata = _chunk7DJASH5Hcjs._useEditThreadMetadata; exports.useErrorListener = _chunk7DJASH5Hcjs.useErrorListener; exports.useEventListener = _chunk7DJASH5Hcjs._useEventListener; exports.useHistory = _chunk7DJASH5Hcjs.useHistory; exports.useHistoryVersionData = _chunk7DJASH5Hcjs.useHistoryVersionData; exports.useHistoryVersions = _chunk7DJASH5Hcjs._useHistoryVersions; exports.useInboxNotificationThread = _chunk7DJASH5Hcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunk7DJASH5Hcjs.useInboxNotifications; exports.useIsInsideRoom = _chunk7DJASH5Hcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunk7DJASH5Hcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunk7DJASH5Hcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunk7DJASH5Hcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunk7DJASH5Hcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunk7DJASH5Hcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunk7DJASH5Hcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunk7DJASH5Hcjs._useMutation; exports.useMyPresence = _chunk7DJASH5Hcjs._useMyPresence; exports.useNotificationSettings = _chunk7DJASH5Hcjs.useNotificationSettings; exports.useOther = _chunk7DJASH5Hcjs._useOther; exports.useOthers = _chunk7DJASH5Hcjs._useOthers; exports.useOthersConnectionIds = _chunk7DJASH5Hcjs.useOthersConnectionIds; exports.useOthersListener = _chunk7DJASH5Hcjs._useOthersListener; exports.useOthersMapped = _chunk7DJASH5Hcjs._useOthersMapped; exports.useRedo = _chunk7DJASH5Hcjs.useRedo; exports.useRemoveReaction = _chunk7DJASH5Hcjs.useRemoveReaction; exports.useRoom = _chunk7DJASH5Hcjs._useRoom; exports.useRoomInfo = _chunk7DJASH5Hcjs.useRoomInfo; exports.useRoomNotificationSettings = _chunk7DJASH5Hcjs._useRoomNotificationSettings; exports.useRoomSubscriptionSettings = _chunk7DJASH5Hcjs._useRoomSubscriptionSettings; exports.useSelf = _chunk7DJASH5Hcjs._useSelf; exports.useSendAiMessage = _chunk7DJASH5Hcjs.useSendAiMessage; exports.useStatus = _chunk7DJASH5Hcjs.useStatus; exports.useStorage = _chunk7DJASH5Hcjs._useStorage; exports.useStorageRoot = _chunk7DJASH5Hcjs._useStorageRoot; exports.useStorageStatus = _chunk7DJASH5Hcjs.useStorageStatus; exports.useSubscribeToThread = _chunk7DJASH5Hcjs.useSubscribeToThread; exports.useSyncStatus = _chunk7DJASH5Hcjs.useSyncStatus; exports.useThreadSubscription = _chunk7DJASH5Hcjs.useThreadSubscription; exports.useThreads = _chunk7DJASH5Hcjs._useThreads; exports.useUndo = _chunk7DJASH5Hcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunk7DJASH5Hcjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunk7DJASH5Hcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunk7DJASH5Hcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunk7DJASH5Hcjs.useUpdateNotificationSettings; exports.useUpdateRoomNotificationSettings = _chunk7DJASH5Hcjs.useUpdateRoomNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunk7DJASH5Hcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunk7DJASH5Hcjs._useUser; exports.useUserThreads_experimental = _chunk7DJASH5Hcjs._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 \"./types/ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n 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,10 @@
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
+ import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-qnTepKOd.cjs';
2
+ export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, J as RoomProvider, U as UseStorageStatusOptions, x as UseThreadsOptions, A as createLiveblocksContext, I as createRoomContext, K as useAddReaction, aH as useAiChat, aJ as useAiChatMessages, aI as useAiChats, at as useAttachmentUrl, N as useBatch, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, aA as useCreateAiChat, S as useCreateComment, T as useCreateThread, aB as useDeleteAiChat, B as useDeleteAllInboxNotifications, V as useDeleteComment, D as useDeleteInboxNotification, W as useDeleteThread, X as useEditComment, Y as useEditThreadMetadata, E as useErrorListener, a2 as useEventListener, a3 as useHistory, ak as useHistoryVersionData, au as useHistoryVersions, _ as useInboxNotificationThread, ax as useInboxNotifications, a4 as useIsInsideRoom, a5 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, G as useMarkInboxNotificationAsRead, a6 as useMarkThreadAsRead, Z as useMarkThreadAsResolved, $ as useMarkThreadAsUnresolved, a7 as useMutation, a8 as useMyPresence, ay as useNotificationSettings, al as useOther, am as useOthers, an as useOthersConnectionIds, a9 as useOthersListener, ao as useOthersMapped, aa as useRedo, ab as useRemoveReaction, ac as useRoom, aE as useRoomInfo, av as useRoomNotificationSettings, aw as useRoomSubscriptionSettings, ap as useSelf, aC as useSendAiMessage, ad as useStatus, aq as useStorage, ae as useStorageRoot, ar as useStorageStatus, a0 as useSubscribeToThread, H as useSyncStatus, af as useThreadSubscription, as as useThreads, ag as useUndo, aF as useUnreadInboxNotificationsCount, a1 as useUnsubscribeFromThread, ah as useUpdateMyPresence, az as useUpdateNotificationSettings, ai as useUpdateRoomNotificationSettings, aj as useUpdateRoomSubscriptionSettings, aG as useUser, aD as useUserThreads_experimental } from './room-qnTepKOd.cjs';
2
3
  export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
3
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
5
  import * as react from 'react';
5
6
  import { ReactNode } from 'react';
6
- import { AiKnowledgeSource } from '@liveblocks/core';
7
+ import '@liveblocks/core';
7
8
 
8
9
  type Props = {
9
10
  fallback: ReactNode;
@@ -46,13 +47,33 @@ declare function ClientSideSuspense(props: Props): react_jsx_runtime.JSX.Element
46
47
  * By unmounting this component, the AI will no longer have access to it.
47
48
  * It can choose to use or ignore this knowledge in its responses.
48
49
  */
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
- }>;
50
+ declare const RegisterAiKnowledge: react.NamedExoticComponent<RegisterAiKnowledgeProps>;
51
+ /**
52
+ * Make a tool available to your AI chat or a one-off request.
53
+ * A tool is a piece of functionality that the AI can call to perform an action
54
+ * or look up information on the user's behalf.
55
+ *
56
+ * Also, tools are used to render custom UIs for tool invocations, which are
57
+ * embedded inside the AI chat.
58
+ *
59
+ * For example:
60
+ *
61
+ * <RegisterAiTool
62
+ * name="list-todos"
63
+ * tool={defineAiTool()({ ... })}
64
+ * />
65
+ *
66
+ * Or scoped to a specific chat:
67
+ *
68
+ * <RegisterAiTool
69
+ * name="list-todos"
70
+ * tool={defineAiTool()({ ... })}
71
+ * chatId="chat-1234"
72
+ * />
73
+ *
74
+ * By mounting this component, the tool is made available.
75
+ * By unmounting this component, the tool will no longer be available.
76
+ */
77
+ declare const RegisterAiTool: react.NamedExoticComponent<RegisterAiToolProps>;
57
78
 
58
- export { ClientSideSuspense, RegisterAiKnowledge };
79
+ export { ClientSideSuspense, RegisterAiKnowledge, RegisterAiKnowledgeProps, RegisterAiTool, RegisterAiToolProps };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,10 @@
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
+ import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-qnTepKOd.js';
2
+ export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, J as RoomProvider, U as UseStorageStatusOptions, x as UseThreadsOptions, A as createLiveblocksContext, I as createRoomContext, K as useAddReaction, aH as useAiChat, aJ as useAiChatMessages, aI as useAiChats, at as useAttachmentUrl, N as useBatch, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, aA as useCreateAiChat, S as useCreateComment, T as useCreateThread, aB as useDeleteAiChat, B as useDeleteAllInboxNotifications, V as useDeleteComment, D as useDeleteInboxNotification, W as useDeleteThread, X as useEditComment, Y as useEditThreadMetadata, E as useErrorListener, a2 as useEventListener, a3 as useHistory, ak as useHistoryVersionData, au as useHistoryVersions, _ as useInboxNotificationThread, ax as useInboxNotifications, a4 as useIsInsideRoom, a5 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, G as useMarkInboxNotificationAsRead, a6 as useMarkThreadAsRead, Z as useMarkThreadAsResolved, $ as useMarkThreadAsUnresolved, a7 as useMutation, a8 as useMyPresence, ay as useNotificationSettings, al as useOther, am as useOthers, an as useOthersConnectionIds, a9 as useOthersListener, ao as useOthersMapped, aa as useRedo, ab as useRemoveReaction, ac as useRoom, aE as useRoomInfo, av as useRoomNotificationSettings, aw as useRoomSubscriptionSettings, ap as useSelf, aC as useSendAiMessage, ad as useStatus, aq as useStorage, ae as useStorageRoot, ar as useStorageStatus, a0 as useSubscribeToThread, H as useSyncStatus, af as useThreadSubscription, as as useThreads, ag as useUndo, aF as useUnreadInboxNotificationsCount, a1 as useUnsubscribeFromThread, ah as useUpdateMyPresence, az as useUpdateNotificationSettings, ai as useUpdateRoomNotificationSettings, aj as useUpdateRoomSubscriptionSettings, aG as useUser, aD as useUserThreads_experimental } from './room-qnTepKOd.js';
2
3
  export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
3
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
5
  import * as react from 'react';
5
6
  import { ReactNode } from 'react';
6
- import { AiKnowledgeSource } from '@liveblocks/core';
7
+ import '@liveblocks/core';
7
8
 
8
9
  type Props = {
9
10
  fallback: ReactNode;
@@ -46,13 +47,33 @@ declare function ClientSideSuspense(props: Props): react_jsx_runtime.JSX.Element
46
47
  * By unmounting this component, the AI will no longer have access to it.
47
48
  * It can choose to use or ignore this knowledge in its responses.
48
49
  */
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
- }>;
50
+ declare const RegisterAiKnowledge: react.NamedExoticComponent<RegisterAiKnowledgeProps>;
51
+ /**
52
+ * Make a tool available to your AI chat or a one-off request.
53
+ * A tool is a piece of functionality that the AI can call to perform an action
54
+ * or look up information on the user's behalf.
55
+ *
56
+ * Also, tools are used to render custom UIs for tool invocations, which are
57
+ * embedded inside the AI chat.
58
+ *
59
+ * For example:
60
+ *
61
+ * <RegisterAiTool
62
+ * name="list-todos"
63
+ * tool={defineAiTool()({ ... })}
64
+ * />
65
+ *
66
+ * Or scoped to a specific chat:
67
+ *
68
+ * <RegisterAiTool
69
+ * name="list-todos"
70
+ * tool={defineAiTool()({ ... })}
71
+ * chatId="chat-1234"
72
+ * />
73
+ *
74
+ * By mounting this component, the tool is made available.
75
+ * By unmounting this component, the tool will no longer be available.
76
+ */
77
+ declare const RegisterAiTool: react.NamedExoticComponent<RegisterAiToolProps>;
57
78
 
58
- export { ClientSideSuspense, RegisterAiKnowledge };
79
+ export { ClientSideSuspense, RegisterAiKnowledge, RegisterAiKnowledgeProps, RegisterAiTool, RegisterAiToolProps };
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-HDEQ3QVH.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-KLANVQIZ.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 \"./types/ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n 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, Client as Client$1, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, WithNavigation, AiChatMessage, 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,26 @@ 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
+ type RegisterAiToolProps = {
40
+ name: string;
41
+ tool: AiOpaqueToolDefinition;
42
+ /**
43
+ * When provided, the tool will only be available for this chatId. If not
44
+ * provided, this tool will globally be made available to any AiChat
45
+ * instance.
46
+ */
47
+ chatId?: string;
48
+ };
49
+
50
+ type UiChatMessage = WithNavigation<AiChatMessage>;
31
51
  type UseSyncStatusOptions = {
32
52
  /**
33
53
  * When setting smooth, the hook will not update immediately as status
@@ -263,14 +283,8 @@ type SharedContextBundle<U extends BaseUserMeta> = {
263
283
  * By unmounting this component, the AI will no longer have access to it.
264
284
  * It can choose to use or ignore this knowledge in its responses.
265
285
  */
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
- }>;
286
+ RegisterAiKnowledge: ComponentType<RegisterAiKnowledgeProps>;
287
+ RegisterAiTool: ComponentType<RegisterAiToolProps>;
274
288
  };
275
289
  suspense: {
276
290
  /**
@@ -338,14 +352,8 @@ type SharedContextBundle<U extends BaseUserMeta> = {
338
352
  * By unmounting this component, the AI will no longer have access to it.
339
353
  * It can choose to use or ignore this knowledge in its responses.
340
354
  */
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
- }>;
355
+ RegisterAiKnowledge: ComponentType<RegisterAiKnowledgeProps>;
356
+ RegisterAiTool: ComponentType<RegisterAiToolProps>;
349
357
  };
350
358
  };
351
359
  /**
@@ -2675,4 +2683,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
2675
2683
  */
2676
2684
  declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
2677
2685
 
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 };
2686
+ export { useMarkThreadAsUnresolved as $, createLiveblocksContext as A, useDeleteAllInboxNotifications as B, ClientContext as C, useDeleteInboxNotification as D, useErrorListener as E, useMarkAllInboxNotificationsAsRead as F, useMarkInboxNotificationAsRead as G, useSyncStatus as H, createRoomContext as I, _RoomProvider as J, _useAddReaction as K, LiveblocksProvider as L, type MutationContext as M, useBatch as N, _useBroadcastEvent as O, useCanRedo as P, useCanUndo as Q, type RegisterAiKnowledgeProps as R, useCreateComment as S, _useCreateThread as T, type UseStorageStatusOptions as U, useDeleteComment as V, _useDeleteThread as W, useEditComment as X, _useEditThreadMetadata as Y, useMarkThreadAsResolved as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, _useUserThreadsSuspense_experimental as a$, useSubscribeToThread as a0, useUnsubscribeFromThread as a1, _useEventListener as a2, useHistory as a3, _useIsInsideRoom as a4, useLostConnectionListener as a5, useMarkThreadAsRead as a6, _useMutation as a7, _useMyPresence as a8, _useOthersListener as a9, useCreateAiChat as aA, useDeleteAiChat as aB, useSendAiMessage as aC, _useUserThreads_experimental as aD, useRoomInfo as aE, useUnreadInboxNotificationsCount as aF, _useUser as aG, _useAiChat as aH, _useAiChats as aI, _useAiChatMessages as aJ, _useOtherSuspense as aK, _useOthersSuspense as aL, useOthersConnectionIdsSuspense as aM, _useOthersMappedSuspense as aN, _useSelfSuspense as aO, _useStorageSuspense as aP, useStorageStatusSuspense as aQ, _useThreadsSuspense as aR, useAttachmentUrlSuspense as aS, _useHistoryVersionsSuspense as aT, _useRoomNotificationSettingsSuspense as aU, _useRoomSubscriptionSettingsSuspense as aV, useInboxNotificationsSuspense as aW, useNotificationSettingsSuspense as aX, useRoomInfoSuspense as aY, useUnreadInboxNotificationsCountSuspense as aZ, _useUserSuspense as a_, useRedo as aa, useRemoveReaction as ab, _useRoom as ac, useStatus as ad, _useStorageRoot as ae, useThreadSubscription as af, useUndo as ag, _useUpdateMyPresence as ah, useUpdateRoomNotificationSettings as ai, useUpdateRoomSubscriptionSettings as aj, useHistoryVersionData as ak, _useOther as al, _useOthers as am, useOthersConnectionIds as an, _useOthersMapped as ao, _useSelf as ap, _useStorage as aq, useStorageStatus as ar, _useThreads as as, useAttachmentUrl as at, _useHistoryVersions as au, _useRoomNotificationSettings as av, _useRoomSubscriptionSettings as aw, useInboxNotifications as ax, useNotificationSettings as ay, useUpdateNotificationSettings as az, useCreateRoomComment as b, _useAiChatsSuspense as b0, _useAiChatMessagesSuspense as b1, _useAiChatSuspense as b2, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useMarkRoomThreadAsRead as k, useMarkRoomThreadAsResolved as l, useMarkRoomThreadAsUnresolved as m, useMentionSuggestionsCache as n, useRemoveRoomCommentReaction as o, useReportTextEditor as p, useResolveMentionSuggestions as q, useRoomAttachmentUrl as r, useRoomPermissions as s, useRoomThreadSubscription as t, useClientOrNull as u, useYjsProvider as v, type RegisterAiToolProps as w, type UseThreadsOptions as x, RoomContext as y, useClient as z };
@@ -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, Client as Client$1, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, WithNavigation, AiChatMessage, 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,26 @@ 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
+ type RegisterAiToolProps = {
40
+ name: string;
41
+ tool: AiOpaqueToolDefinition;
42
+ /**
43
+ * When provided, the tool will only be available for this chatId. If not
44
+ * provided, this tool will globally be made available to any AiChat
45
+ * instance.
46
+ */
47
+ chatId?: string;
48
+ };
49
+
50
+ type UiChatMessage = WithNavigation<AiChatMessage>;
31
51
  type UseSyncStatusOptions = {
32
52
  /**
33
53
  * When setting smooth, the hook will not update immediately as status
@@ -263,14 +283,8 @@ type SharedContextBundle<U extends BaseUserMeta> = {
263
283
  * By unmounting this component, the AI will no longer have access to it.
264
284
  * It can choose to use or ignore this knowledge in its responses.
265
285
  */
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
- }>;
286
+ RegisterAiKnowledge: ComponentType<RegisterAiKnowledgeProps>;
287
+ RegisterAiTool: ComponentType<RegisterAiToolProps>;
274
288
  };
275
289
  suspense: {
276
290
  /**
@@ -338,14 +352,8 @@ type SharedContextBundle<U extends BaseUserMeta> = {
338
352
  * By unmounting this component, the AI will no longer have access to it.
339
353
  * It can choose to use or ignore this knowledge in its responses.
340
354
  */
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
- }>;
355
+ RegisterAiKnowledge: ComponentType<RegisterAiKnowledgeProps>;
356
+ RegisterAiTool: ComponentType<RegisterAiToolProps>;
349
357
  };
350
358
  };
351
359
  /**
@@ -2675,4 +2683,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
2675
2683
  */
2676
2684
  declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
2677
2685
 
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 };
2686
+ export { useMarkThreadAsUnresolved as $, createLiveblocksContext as A, useDeleteAllInboxNotifications as B, ClientContext as C, useDeleteInboxNotification as D, useErrorListener as E, useMarkAllInboxNotificationsAsRead as F, useMarkInboxNotificationAsRead as G, useSyncStatus as H, createRoomContext as I, _RoomProvider as J, _useAddReaction as K, LiveblocksProvider as L, type MutationContext as M, useBatch as N, _useBroadcastEvent as O, useCanRedo as P, useCanUndo as Q, type RegisterAiKnowledgeProps as R, useCreateComment as S, _useCreateThread as T, type UseStorageStatusOptions as U, useDeleteComment as V, _useDeleteThread as W, useEditComment as X, _useEditThreadMetadata as Y, useMarkThreadAsResolved as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, _useUserThreadsSuspense_experimental as a$, useSubscribeToThread as a0, useUnsubscribeFromThread as a1, _useEventListener as a2, useHistory as a3, _useIsInsideRoom as a4, useLostConnectionListener as a5, useMarkThreadAsRead as a6, _useMutation as a7, _useMyPresence as a8, _useOthersListener as a9, useCreateAiChat as aA, useDeleteAiChat as aB, useSendAiMessage as aC, _useUserThreads_experimental as aD, useRoomInfo as aE, useUnreadInboxNotificationsCount as aF, _useUser as aG, _useAiChat as aH, _useAiChats as aI, _useAiChatMessages as aJ, _useOtherSuspense as aK, _useOthersSuspense as aL, useOthersConnectionIdsSuspense as aM, _useOthersMappedSuspense as aN, _useSelfSuspense as aO, _useStorageSuspense as aP, useStorageStatusSuspense as aQ, _useThreadsSuspense as aR, useAttachmentUrlSuspense as aS, _useHistoryVersionsSuspense as aT, _useRoomNotificationSettingsSuspense as aU, _useRoomSubscriptionSettingsSuspense as aV, useInboxNotificationsSuspense as aW, useNotificationSettingsSuspense as aX, useRoomInfoSuspense as aY, useUnreadInboxNotificationsCountSuspense as aZ, _useUserSuspense as a_, useRedo as aa, useRemoveReaction as ab, _useRoom as ac, useStatus as ad, _useStorageRoot as ae, useThreadSubscription as af, useUndo as ag, _useUpdateMyPresence as ah, useUpdateRoomNotificationSettings as ai, useUpdateRoomSubscriptionSettings as aj, useHistoryVersionData as ak, _useOther as al, _useOthers as am, useOthersConnectionIds as an, _useOthersMapped as ao, _useSelf as ap, _useStorage as aq, useStorageStatus as ar, _useThreads as as, useAttachmentUrl as at, _useHistoryVersions as au, _useRoomNotificationSettings as av, _useRoomSubscriptionSettings as aw, useInboxNotifications as ax, useNotificationSettings as ay, useUpdateNotificationSettings as az, useCreateRoomComment as b, _useAiChatsSuspense as b0, _useAiChatMessagesSuspense as b1, _useAiChatSuspense as b2, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useMarkRoomThreadAsRead as k, useMarkRoomThreadAsResolved as l, useMarkRoomThreadAsUnresolved as m, useMentionSuggestionsCache as n, useRemoveRoomCommentReaction as o, useReportTextEditor as p, useResolveMentionSuggestions as q, useRoomAttachmentUrl as r, useRoomPermissions as s, useRoomThreadSubscription as t, useClientOrNull as u, useYjsProvider as v, type RegisterAiToolProps as w, type UseThreadsOptions as x, RoomContext as y, useClient as z };
package/dist/suspense.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkMSLJX4ZWcjs = require('./chunk-MSLJX4ZW.cjs');
6
+ var _chunkICBBMT4Ucjs = require('./chunk-ICBBMT4U.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 _chunk7DJASH5Hcjs = require('./chunk-7DJASH5H.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, _chunkICBBMT4Ucjs.PKG_NAME, _chunkICBBMT4Ucjs.PKG_VERSION, _chunkICBBMT4Ucjs.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 = _chunk7DJASH5Hcjs.ClientContext; exports.ClientSideSuspense = _chunkICBBMT4Ucjs.ClientSideSuspense; exports.LiveblocksProvider = _chunk7DJASH5Hcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunk7DJASH5Hcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunk7DJASH5Hcjs.RegisterAiTool; exports.RoomContext = _chunk7DJASH5Hcjs.RoomContext; exports.RoomProvider = _chunk7DJASH5Hcjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunk7DJASH5Hcjs._useAddReaction; exports.useAiChat = _chunk7DJASH5Hcjs._useAiChatSuspense; exports.useAiChatMessages = _chunk7DJASH5Hcjs._useAiChatMessagesSuspense; exports.useAiChats = _chunk7DJASH5Hcjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunk7DJASH5Hcjs.useAttachmentUrlSuspense; exports.useBatch = _chunk7DJASH5Hcjs.useBatch; exports.useBroadcastEvent = _chunk7DJASH5Hcjs._useBroadcastEvent; exports.useCanRedo = _chunk7DJASH5Hcjs.useCanRedo; exports.useCanUndo = _chunk7DJASH5Hcjs.useCanUndo; exports.useClient = _chunk7DJASH5Hcjs.useClient; exports.useCreateAiChat = _chunk7DJASH5Hcjs.useCreateAiChat; exports.useCreateComment = _chunk7DJASH5Hcjs.useCreateComment; exports.useCreateThread = _chunk7DJASH5Hcjs._useCreateThread; exports.useDeleteAiChat = _chunk7DJASH5Hcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunk7DJASH5Hcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunk7DJASH5Hcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunk7DJASH5Hcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunk7DJASH5Hcjs._useDeleteThread; exports.useEditComment = _chunk7DJASH5Hcjs.useEditComment; exports.useEditThreadMetadata = _chunk7DJASH5Hcjs._useEditThreadMetadata; exports.useErrorListener = _chunk7DJASH5Hcjs.useErrorListener; exports.useEventListener = _chunk7DJASH5Hcjs._useEventListener; exports.useHistory = _chunk7DJASH5Hcjs.useHistory; exports.useHistoryVersions = _chunk7DJASH5Hcjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunk7DJASH5Hcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunk7DJASH5Hcjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunk7DJASH5Hcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunk7DJASH5Hcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunk7DJASH5Hcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunk7DJASH5Hcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunk7DJASH5Hcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunk7DJASH5Hcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunk7DJASH5Hcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunk7DJASH5Hcjs._useMutation; exports.useMyPresence = _chunk7DJASH5Hcjs._useMyPresence; exports.useNotificationSettings = _chunk7DJASH5Hcjs.useNotificationSettingsSuspense; exports.useOther = _chunk7DJASH5Hcjs._useOtherSuspense; exports.useOthers = _chunk7DJASH5Hcjs._useOthersSuspense; exports.useOthersConnectionIds = _chunk7DJASH5Hcjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunk7DJASH5Hcjs._useOthersListener; exports.useOthersMapped = _chunk7DJASH5Hcjs._useOthersMappedSuspense; exports.useRedo = _chunk7DJASH5Hcjs.useRedo; exports.useRemoveReaction = _chunk7DJASH5Hcjs.useRemoveReaction; exports.useRoom = _chunk7DJASH5Hcjs._useRoom; exports.useRoomInfo = _chunk7DJASH5Hcjs.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunk7DJASH5Hcjs._useRoomNotificationSettingsSuspense; exports.useRoomSubscriptionSettings = _chunk7DJASH5Hcjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunk7DJASH5Hcjs._useSelfSuspense; exports.useSendAiMessage = _chunk7DJASH5Hcjs.useSendAiMessage; exports.useStatus = _chunk7DJASH5Hcjs.useStatus; exports.useStorage = _chunk7DJASH5Hcjs._useStorageSuspense; exports.useStorageRoot = _chunk7DJASH5Hcjs._useStorageRoot; exports.useStorageStatus = _chunk7DJASH5Hcjs.useStorageStatusSuspense; exports.useSubscribeToThread = _chunk7DJASH5Hcjs.useSubscribeToThread; exports.useSyncStatus = _chunk7DJASH5Hcjs.useSyncStatus; exports.useThreadSubscription = _chunk7DJASH5Hcjs.useThreadSubscription; exports.useThreads = _chunk7DJASH5Hcjs._useThreadsSuspense; exports.useUndo = _chunk7DJASH5Hcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunk7DJASH5Hcjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunk7DJASH5Hcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunk7DJASH5Hcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunk7DJASH5Hcjs.useUpdateNotificationSettings; exports.useUpdateRoomNotificationSettings = _chunk7DJASH5Hcjs.useUpdateRoomNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunk7DJASH5Hcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunk7DJASH5Hcjs._useUserSuspense; exports.useUserThreads_experimental = _chunk7DJASH5Hcjs._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 \"./types/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, RegisterAiKnowledge, RegisterAiTool } from './index.cjs';
2
+ export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, J as RoomProvider, U as UseStorageStatusOptions, x as UseThreadsOptions, K as useAddReaction, b2 as useAiChat, b1 as useAiChatMessages, b0 as useAiChats, aS as useAttachmentUrl, N as useBatch, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, aA as useCreateAiChat, S as useCreateComment, T as useCreateThread, aB as useDeleteAiChat, B as useDeleteAllInboxNotifications, V as useDeleteComment, D as useDeleteInboxNotification, W as useDeleteThread, X as useEditComment, Y as useEditThreadMetadata, E as useErrorListener, a2 as useEventListener, a3 as useHistory, aT as useHistoryVersions, _ as useInboxNotificationThread, aW as useInboxNotifications, a4 as useIsInsideRoom, a5 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, G as useMarkInboxNotificationAsRead, a6 as useMarkThreadAsRead, Z as useMarkThreadAsResolved, $ as useMarkThreadAsUnresolved, a7 as useMutation, a8 as useMyPresence, aX as useNotificationSettings, aK as useOther, aL as useOthers, aM as useOthersConnectionIds, a9 as useOthersListener, aN as useOthersMapped, aa as useRedo, ab as useRemoveReaction, ac as useRoom, aY as useRoomInfo, aU as useRoomNotificationSettings, aV as useRoomSubscriptionSettings, aO as useSelf, aC as useSendAiMessage, ad as useStatus, aP as useStorage, ae as useStorageRoot, aQ as useStorageStatus, a0 as useSubscribeToThread, H as useSyncStatus, af as useThreadSubscription, aR as useThreads, ag as useUndo, aZ as useUnreadInboxNotificationsCount, a1 as useUnsubscribeFromThread, ah as useUpdateMyPresence, az as useUpdateNotificationSettings, ai as useUpdateRoomNotificationSettings, aj as useUpdateRoomSubscriptionSettings, a_ as useUser, a$ as useUserThreads_experimental } from './room-qnTepKOd.cjs';
3
3
  export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react';
@@ -1,5 +1,5 @@
1
- export { ClientSideSuspense, RegisterAiKnowledge } from './index.js';
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.js';
1
+ export { ClientSideSuspense, RegisterAiKnowledge, RegisterAiTool } from './index.js';
2
+ export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, J as RoomProvider, U as UseStorageStatusOptions, x as UseThreadsOptions, K as useAddReaction, b2 as useAiChat, b1 as useAiChatMessages, b0 as useAiChats, aS as useAttachmentUrl, N as useBatch, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, aA as useCreateAiChat, S as useCreateComment, T as useCreateThread, aB as useDeleteAiChat, B as useDeleteAllInboxNotifications, V as useDeleteComment, D as useDeleteInboxNotification, W as useDeleteThread, X as useEditComment, Y as useEditThreadMetadata, E as useErrorListener, a2 as useEventListener, a3 as useHistory, aT as useHistoryVersions, _ as useInboxNotificationThread, aW as useInboxNotifications, a4 as useIsInsideRoom, a5 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, G as useMarkInboxNotificationAsRead, a6 as useMarkThreadAsRead, Z as useMarkThreadAsResolved, $ as useMarkThreadAsUnresolved, a7 as useMutation, a8 as useMyPresence, aX as useNotificationSettings, aK as useOther, aL as useOthers, aM as useOthersConnectionIds, a9 as useOthersListener, aN as useOthersMapped, aa as useRedo, ab as useRemoveReaction, ac as useRoom, aY as useRoomInfo, aU as useRoomNotificationSettings, aV as useRoomSubscriptionSettings, aO as useSelf, aC as useSendAiMessage, ad as useStatus, aP as useStorage, ae as useStorageRoot, aQ as useStorageStatus, a0 as useSubscribeToThread, H as useSyncStatus, af as useThreadSubscription, aR as useThreads, ag as useUndo, aZ as useUnreadInboxNotificationsCount, a1 as useUnsubscribeFromThread, ah as useUpdateMyPresence, az as useUpdateNotificationSettings, ai as useUpdateRoomNotificationSettings, aj as useUpdateRoomSubscriptionSettings, a_ as useUser, a$ as useUserThreads_experimental } from './room-qnTepKOd.js';
3
3
  export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react';
package/dist/suspense.js CHANGED
@@ -3,11 +3,12 @@ import {
3
3
  PKG_FORMAT,
4
4
  PKG_NAME,
5
5
  PKG_VERSION
6
- } from "./chunk-Y2RSQZ5R.js";
6
+ } from "./chunk-HDEQ3QVH.js";
7
7
  import {
8
8
  ClientContext,
9
9
  LiveblocksProvider,
10
10
  RegisterAiKnowledge,
11
+ RegisterAiTool,
11
12
  RoomContext,
12
13
  _RoomProvider,
13
14
  _useAddReaction,
@@ -76,7 +77,7 @@ import {
76
77
  useUpdateNotificationSettings,
77
78
  useUpdateRoomNotificationSettings,
78
79
  useUpdateRoomSubscriptionSettings
79
- } from "./chunk-Y7BGHNHH.js";
80
+ } from "./chunk-KLANVQIZ.js";
80
81
 
81
82
  // src/suspense.ts
82
83
  import { detectDupes } from "@liveblocks/core";
@@ -87,6 +88,7 @@ export {
87
88
  ClientSideSuspense,
88
89
  LiveblocksProvider,
89
90
  RegisterAiKnowledge,
91
+ RegisterAiTool,
90
92
  RoomContext,
91
93
  _RoomProvider as RoomProvider,
92
94
  isNotificationChannelEnabled,
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/suspense.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 { 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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,SAAS,oCAAoC;AAXtD,YAAY,UAAU,aAAa,UAAU;","names":[]}
1
+ {"version":3,"sources":["../src/suspense.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 { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type { RegisterAiKnowledgeProps, RegisterAiToolProps } from \"./types/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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,SAAS,oCAAoC;AAXtD,YAAY,UAAU,aAAa,UAAU;","names":[]}