@liveblocks/react 3.10.0 → 3.11.0

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.
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/version.ts
2
2
  var PKG_NAME = "@liveblocks/react";
3
- var PKG_VERSION = "3.10.0";
3
+ var PKG_VERSION = "3.11.0";
4
4
  var PKG_FORMAT = "cjs";
5
5
 
6
6
  // src/ClientSideSuspense.tsx
@@ -20,4 +20,4 @@ function ClientSideSuspense(props) {
20
20
 
21
21
 
22
22
  exports.PKG_NAME = PKG_NAME; exports.PKG_VERSION = PKG_VERSION; exports.PKG_FORMAT = PKG_FORMAT; exports.ClientSideSuspense = ClientSideSuspense;
23
- //# sourceMappingURL=chunk-6WBZJEKS.cjs.map
23
+ //# sourceMappingURL=chunk-SCA53Q7P.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/chunk-6WBZJEKS.cjs","../src/version.ts","../src/ClientSideSuspense.tsx"],"names":[],"mappings":"AAAA;ACGO,IAAM,SAAA,EAAW,mBAAA;AACjB,IAAM,YAAA,EAAiD,QAAA;AACvD,IAAM,WAAA,EAAgD,KAAA;ADD7D;AACA;AEJA,8BAA8C;AAkC1C,+CAAA;AAVG,SAAS,kBAAA,CAAmB,KAAA,EAAc;AAC/C,EAAA,MAAM,CAAC,OAAA,EAAS,UAAU,EAAA,EAAI,6BAAA,KAAc,CAAA;AAE5C,EAAA,8BAAA,CAAU,EAAA,GAAM;AAGd,IAAA,UAAA,CAAW,IAAI,CAAA;AAAA,EACjB,CAAA,EAAG,CAAC,CAAC,CAAA;AAEL,EAAA,uBACE,6BAAA,eAAC,EAAA,EAAS,QAAA,EAAU,KAAA,CAAM,QAAA,EACvB,QAAA,EAAA,QAAA,EACG,OAAO,KAAA,CAAM,SAAA,IAAa,WAAA,EACxB,KAAA,CAAM,QAAA,CAAS,EAAA,EACf,KAAA,CAAM,SAAA,EACR,KAAA,CAAM,SAAA,CACZ,CAAA;AAEJ;AF5BA;AACA;AACE;AACA;AACA;AACA;AACF,iJAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/chunk-6WBZJEKS.cjs","sourcesContent":[null,"declare const __VERSION__: string;\ndeclare const TSUP_FORMAT: string;\n\nexport const PKG_NAME = \"@liveblocks/react\";\nexport const PKG_VERSION = typeof __VERSION__ === \"string\" && __VERSION__;\nexport const PKG_FORMAT = typeof TSUP_FORMAT === \"string\" && TSUP_FORMAT;\n","import type { ReactNode } from \"react\";\nimport { Suspense, useEffect, useState } from \"react\";\n\ntype Props = {\n fallback: ReactNode;\n children: (() => ReactNode | undefined) | ReactNode | undefined;\n};\n\n/**\n * Almost like a normal <Suspense> component, except that for server-side\n * renders, the fallback will be used.\n *\n * The child props will have to be provided in a function, i.e. change:\n *\n * <Suspense fallback={<Loading />}>\n * <MyRealComponent a={1} />\n * </Suspense>\n *\n * To:\n *\n * <ClientSideSuspense fallback={<Loading />}>\n * <MyRealComponent a={1} />\n * </ClientSideSuspense>\n *\n */\nexport function ClientSideSuspense(props: Props) {\n const [mounted, setMounted] = useState(false);\n\n useEffect(() => {\n // Effects are never executed on the server side. The point of this is to\n // delay the flipping of this boolean until after hydration has happened.\n setMounted(true);\n }, []);\n\n return (\n <Suspense fallback={props.fallback}>\n {mounted\n ? typeof props.children === \"function\"\n ? props.children()\n : props.children\n : props.fallback}\n </Suspense>\n );\n}\n"]}
1
+ {"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/chunk-SCA53Q7P.cjs","../src/version.ts","../src/ClientSideSuspense.tsx"],"names":[],"mappings":"AAAA;ACGO,IAAM,SAAA,EAAW,mBAAA;AACjB,IAAM,YAAA,EAAiD,QAAA;AACvD,IAAM,WAAA,EAAgD,KAAA;ADD7D;AACA;AEJA,8BAA8C;AAkC1C,+CAAA;AAVG,SAAS,kBAAA,CAAmB,KAAA,EAAc;AAC/C,EAAA,MAAM,CAAC,OAAA,EAAS,UAAU,EAAA,EAAI,6BAAA,KAAc,CAAA;AAE5C,EAAA,8BAAA,CAAU,EAAA,GAAM;AAGd,IAAA,UAAA,CAAW,IAAI,CAAA;AAAA,EACjB,CAAA,EAAG,CAAC,CAAC,CAAA;AAEL,EAAA,uBACE,6BAAA,eAAC,EAAA,EAAS,QAAA,EAAU,KAAA,CAAM,QAAA,EACvB,QAAA,EAAA,QAAA,EACG,OAAO,KAAA,CAAM,SAAA,IAAa,WAAA,EACxB,KAAA,CAAM,QAAA,CAAS,EAAA,EACf,KAAA,CAAM,SAAA,EACR,KAAA,CAAM,SAAA,CACZ,CAAA;AAEJ;AF5BA;AACA;AACE;AACA;AACA;AACA;AACF,iJAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/chunk-SCA53Q7P.cjs","sourcesContent":[null,"declare const __VERSION__: string;\ndeclare const TSUP_FORMAT: string;\n\nexport const PKG_NAME = \"@liveblocks/react\";\nexport const PKG_VERSION = typeof __VERSION__ === \"string\" && __VERSION__;\nexport const PKG_FORMAT = typeof TSUP_FORMAT === \"string\" && TSUP_FORMAT;\n","import type { ReactNode } from \"react\";\nimport { Suspense, useEffect, useState } from \"react\";\n\ntype Props = {\n fallback: ReactNode;\n children: (() => ReactNode | undefined) | ReactNode | undefined;\n};\n\n/**\n * Almost like a normal <Suspense> component, except that for server-side\n * renders, the fallback will be used.\n *\n * The child props will have to be provided in a function, i.e. change:\n *\n * <Suspense fallback={<Loading />}>\n * <MyRealComponent a={1} />\n * </Suspense>\n *\n * To:\n *\n * <ClientSideSuspense fallback={<Loading />}>\n * <MyRealComponent a={1} />\n * </ClientSideSuspense>\n *\n */\nexport function ClientSideSuspense(props: Props) {\n const [mounted, setMounted] = useState(false);\n\n useEffect(() => {\n // Effects are never executed on the server side. The point of this is to\n // delay the flipping of this boolean until after hydration has happened.\n setMounted(true);\n }, []);\n\n return (\n <Suspense fallback={props.fallback}>\n {mounted\n ? typeof props.children === \"function\"\n ? props.children()\n : props.children\n : props.fallback}\n </Suspense>\n );\n}\n"]}
package/dist/index.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunk6WBZJEKScjs = require('./chunk-6WBZJEKS.cjs');
6
+ var _chunkSCA53Q7Pcjs = require('./chunk-SCA53Q7P.cjs');
7
7
 
8
8
 
9
9
 
@@ -79,12 +79,14 @@ var _chunk6WBZJEKScjs = require('./chunk-6WBZJEKS.cjs');
79
79
 
80
80
 
81
81
 
82
- var _chunkNGMOQDHXcjs = require('./chunk-NGMOQDHX.cjs');
82
+
83
+ var _chunkQT34ZNVCcjs = require('./chunk-QT34ZNVC.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, _chunk6WBZJEKScjs.PKG_NAME, _chunk6WBZJEKScjs.PKG_VERSION, _chunk6WBZJEKScjs.PKG_FORMAT);
88
+ _core.detectDupes.call(void 0, _chunkSCA53Q7Pcjs.PKG_NAME, _chunkSCA53Q7Pcjs.PKG_VERSION, _chunkSCA53Q7Pcjs.PKG_FORMAT);
89
+
88
90
 
89
91
 
90
92
 
@@ -163,5 +165,5 @@ _core.detectDupes.call(void 0, _chunk6WBZJEKScjs.PKG_NAME, _chunk6WBZJEKScjs.PKG
163
165
 
164
166
 
165
167
 
166
- exports.ClientContext = _chunkNGMOQDHXcjs.ClientContext; exports.ClientSideSuspense = _chunk6WBZJEKScjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkNGMOQDHXcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkNGMOQDHXcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkNGMOQDHXcjs.RegisterAiTool; exports.RoomContext = _chunkNGMOQDHXcjs.RoomContext; exports.RoomProvider = _chunkNGMOQDHXcjs._RoomProvider; exports.createLiveblocksContext = _chunkNGMOQDHXcjs.createLiveblocksContext; exports.createRoomContext = _chunkNGMOQDHXcjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkNGMOQDHXcjs._useAddReaction; exports.useAiChat = _chunkNGMOQDHXcjs._useAiChat; exports.useAiChatMessages = _chunkNGMOQDHXcjs._useAiChatMessages; exports.useAiChatStatus = _chunkNGMOQDHXcjs.useAiChatStatus; exports.useAiChats = _chunkNGMOQDHXcjs._useAiChats; exports.useAttachmentUrl = _chunkNGMOQDHXcjs.useAttachmentUrl; exports.useBroadcastEvent = _chunkNGMOQDHXcjs._useBroadcastEvent; exports.useCanRedo = _chunkNGMOQDHXcjs.useCanRedo; exports.useCanUndo = _chunkNGMOQDHXcjs.useCanUndo; exports.useClient = _chunkNGMOQDHXcjs.useClient; exports.useCreateAiChat = _chunkNGMOQDHXcjs.useCreateAiChat; exports.useCreateComment = _chunkNGMOQDHXcjs.useCreateComment; exports.useCreateThread = _chunkNGMOQDHXcjs._useCreateThread; exports.useDeleteAiChat = _chunkNGMOQDHXcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkNGMOQDHXcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkNGMOQDHXcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkNGMOQDHXcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkNGMOQDHXcjs._useDeleteThread; exports.useEditComment = _chunkNGMOQDHXcjs.useEditComment; exports.useEditThreadMetadata = _chunkNGMOQDHXcjs._useEditThreadMetadata; exports.useErrorListener = _chunkNGMOQDHXcjs.useErrorListener; exports.useEventListener = _chunkNGMOQDHXcjs._useEventListener; exports.useGroupInfo = _chunkNGMOQDHXcjs.useGroupInfo; exports.useHistory = _chunkNGMOQDHXcjs.useHistory; exports.useHistoryVersionData = _chunkNGMOQDHXcjs.useHistoryVersionData; exports.useHistoryVersions = _chunkNGMOQDHXcjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkNGMOQDHXcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkNGMOQDHXcjs.useInboxNotifications; exports.useIsInsideRoom = _chunkNGMOQDHXcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkNGMOQDHXcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkNGMOQDHXcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkNGMOQDHXcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkNGMOQDHXcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkNGMOQDHXcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkNGMOQDHXcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkNGMOQDHXcjs._useMutation; exports.useMyPresence = _chunkNGMOQDHXcjs._useMyPresence; exports.useNotificationSettings = _chunkNGMOQDHXcjs.useNotificationSettings; exports.useOther = _chunkNGMOQDHXcjs._useOther; exports.useOthers = _chunkNGMOQDHXcjs._useOthers; exports.useOthersConnectionIds = _chunkNGMOQDHXcjs.useOthersConnectionIds; exports.useOthersListener = _chunkNGMOQDHXcjs._useOthersListener; exports.useOthersMapped = _chunkNGMOQDHXcjs._useOthersMapped; exports.useRedo = _chunkNGMOQDHXcjs.useRedo; exports.useRemoveReaction = _chunkNGMOQDHXcjs.useRemoveReaction; exports.useRoom = _chunkNGMOQDHXcjs._useRoom; exports.useRoomInfo = _chunkNGMOQDHXcjs.useRoomInfo; exports.useRoomSubscriptionSettings = _chunkNGMOQDHXcjs._useRoomSubscriptionSettings; exports.useSelf = _chunkNGMOQDHXcjs._useSelf; exports.useSendAiMessage = _chunkNGMOQDHXcjs.useSendAiMessage; exports.useStatus = _chunkNGMOQDHXcjs.useStatus; exports.useStorage = _chunkNGMOQDHXcjs._useStorage; exports.useStorageRoot = _chunkNGMOQDHXcjs._useStorageRoot; exports.useSubscribeToThread = _chunkNGMOQDHXcjs.useSubscribeToThread; exports.useSyncStatus = _chunkNGMOQDHXcjs.useSyncStatus; exports.useThreadSubscription = _chunkNGMOQDHXcjs.useThreadSubscription; exports.useThreads = _chunkNGMOQDHXcjs._useThreads; exports.useUndo = _chunkNGMOQDHXcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkNGMOQDHXcjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunkNGMOQDHXcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkNGMOQDHXcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkNGMOQDHXcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkNGMOQDHXcjs.useUpdateRoomSubscriptionSettings; exports.useUrlMetadata = _chunkNGMOQDHXcjs._useUrlMetadata; exports.useUser = _chunkNGMOQDHXcjs._useUser; exports.useUserThreads_experimental = _chunkNGMOQDHXcjs._useUserThreads_experimental;
168
+ exports.ClientContext = _chunkQT34ZNVCcjs.ClientContext; exports.ClientSideSuspense = _chunkSCA53Q7Pcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkQT34ZNVCcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkQT34ZNVCcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkQT34ZNVCcjs.RegisterAiTool; exports.RoomContext = _chunkQT34ZNVCcjs.RoomContext; exports.RoomProvider = _chunkQT34ZNVCcjs._RoomProvider; exports.createLiveblocksContext = _chunkQT34ZNVCcjs.createLiveblocksContext; exports.createRoomContext = _chunkQT34ZNVCcjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkQT34ZNVCcjs._useAddReaction; exports.useAiChat = _chunkQT34ZNVCcjs._useAiChat; exports.useAiChatMessages = _chunkQT34ZNVCcjs._useAiChatMessages; exports.useAiChatStatus = _chunkQT34ZNVCcjs.useAiChatStatus; exports.useAiChats = _chunkQT34ZNVCcjs._useAiChats; exports.useAttachmentUrl = _chunkQT34ZNVCcjs.useAttachmentUrl; exports.useBroadcastEvent = _chunkQT34ZNVCcjs._useBroadcastEvent; exports.useCanRedo = _chunkQT34ZNVCcjs.useCanRedo; exports.useCanUndo = _chunkQT34ZNVCcjs.useCanUndo; exports.useClient = _chunkQT34ZNVCcjs.useClient; exports.useCreateAiChat = _chunkQT34ZNVCcjs.useCreateAiChat; exports.useCreateComment = _chunkQT34ZNVCcjs.useCreateComment; exports.useCreateThread = _chunkQT34ZNVCcjs._useCreateThread; exports.useDeleteAiChat = _chunkQT34ZNVCcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkQT34ZNVCcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkQT34ZNVCcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkQT34ZNVCcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkQT34ZNVCcjs._useDeleteThread; exports.useEditComment = _chunkQT34ZNVCcjs.useEditComment; exports.useEditThreadMetadata = _chunkQT34ZNVCcjs._useEditThreadMetadata; exports.useErrorListener = _chunkQT34ZNVCcjs.useErrorListener; exports.useEventListener = _chunkQT34ZNVCcjs._useEventListener; exports.useGroupInfo = _chunkQT34ZNVCcjs.useGroupInfo; exports.useHistory = _chunkQT34ZNVCcjs.useHistory; exports.useHistoryVersionData = _chunkQT34ZNVCcjs.useHistoryVersionData; exports.useHistoryVersions = _chunkQT34ZNVCcjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkQT34ZNVCcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkQT34ZNVCcjs.useInboxNotifications; exports.useIsInsideRoom = _chunkQT34ZNVCcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkQT34ZNVCcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkQT34ZNVCcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkQT34ZNVCcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkQT34ZNVCcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkQT34ZNVCcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkQT34ZNVCcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkQT34ZNVCcjs._useMutation; exports.useMyPresence = _chunkQT34ZNVCcjs._useMyPresence; exports.useNotificationSettings = _chunkQT34ZNVCcjs.useNotificationSettings; exports.useOther = _chunkQT34ZNVCcjs._useOther; exports.useOthers = _chunkQT34ZNVCcjs._useOthers; exports.useOthersConnectionIds = _chunkQT34ZNVCcjs.useOthersConnectionIds; exports.useOthersListener = _chunkQT34ZNVCcjs._useOthersListener; exports.useOthersMapped = _chunkQT34ZNVCcjs._useOthersMapped; exports.useRedo = _chunkQT34ZNVCcjs.useRedo; exports.useRemoveReaction = _chunkQT34ZNVCcjs.useRemoveReaction; exports.useRoom = _chunkQT34ZNVCcjs._useRoom; exports.useRoomInfo = _chunkQT34ZNVCcjs.useRoomInfo; exports.useRoomSubscriptionSettings = _chunkQT34ZNVCcjs._useRoomSubscriptionSettings; exports.useSearchComments = _chunkQT34ZNVCcjs._useSearchComments; exports.useSelf = _chunkQT34ZNVCcjs._useSelf; exports.useSendAiMessage = _chunkQT34ZNVCcjs.useSendAiMessage; exports.useStatus = _chunkQT34ZNVCcjs.useStatus; exports.useStorage = _chunkQT34ZNVCcjs._useStorage; exports.useStorageRoot = _chunkQT34ZNVCcjs._useStorageRoot; exports.useSubscribeToThread = _chunkQT34ZNVCcjs.useSubscribeToThread; exports.useSyncStatus = _chunkQT34ZNVCcjs.useSyncStatus; exports.useThreadSubscription = _chunkQT34ZNVCcjs.useThreadSubscription; exports.useThreads = _chunkQT34ZNVCcjs._useThreads; exports.useUndo = _chunkQT34ZNVCcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkQT34ZNVCcjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunkQT34ZNVCcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkQT34ZNVCcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkQT34ZNVCcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkQT34ZNVCcjs.useUpdateRoomSubscriptionSettings; exports.useUrlMetadata = _chunkQT34ZNVCcjs._useUrlMetadata; exports.useUser = _chunkQT34ZNVCcjs._useUser; exports.useUserThreads_experimental = _chunkQT34ZNVCcjs._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;AAe5B,4CAAsD;AAZtD,+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,m4JAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","sourcesContent":[null,"/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseSendAiMessageOptions,\n UseThreadsOptions,\n SendAiMessageOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useGroupInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n useAiChatStatus,\n useUrlMetadata,\n} from \"./liveblocks\";\n"]}
1
+ {"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","../src/index.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;ACnFA,wCAA4B;AAe5B,4CAAsD;AAZtD,+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,q8JAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","sourcesContent":[null,"/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseSendAiMessageOptions,\n UseThreadsOptions,\n SendAiMessageOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useThreads,\n useSearchComments,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useGroupInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n useAiChatStatus,\n useUrlMetadata,\n} from \"./liveblocks\";\n"]}
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-BZvk8RRP.cjs';
2
- export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, B as createLiveblocksContext, K as createRoomContext, O as useAddReaction, aH as useAiChat, aJ as useAiChatMessages, aK as useAiChatStatus, aI as useAiChats, at as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, az as useCreateAiChat, V as useCreateComment, W as useCreateThread, aA as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, $ as useEditThreadMetadata, F as useErrorListener, a4 as useEventListener, aE as useGroupInfo, a5 as useHistory, al as useHistoryVersionData, au as useHistoryVersions, _ as useInboxNotificationThread, aw as useInboxNotifications, a6 as useIsInsideRoom, a7 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a8 as useMarkThreadAsRead, a0 as useMarkThreadAsResolved, a1 as useMarkThreadAsUnresolved, a9 as useMutation, aa as useMyPresence, ax as useNotificationSettings, am as useOther, an as useOthers, ao as useOthersConnectionIds, ab as useOthersListener, ap as useOthersMapped, ac as useRedo, ad as useRemoveReaction, ae as useRoom, aD as useRoomInfo, av as useRoomSubscriptionSettings, aq as useSelf, aB as useSendAiMessage, af as useStatus, ar as useStorage, ag as useStorageRoot, a2 as useSubscribeToThread, J as useSyncStatus, ah as useThreadSubscription, as as useThreads, ai as useUndo, aF as useUnreadInboxNotificationsCount, a3 as useUnsubscribeFromThread, aj as useUpdateMyPresence, ay as useUpdateNotificationSettings, ak as useUpdateRoomSubscriptionSettings, aL as useUrlMetadata, aG as useUser, aC as useUserThreads_experimental } from './room-BZvk8RRP.cjs';
1
+ import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-Bff8edwh.cjs';
2
+ export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, B as createLiveblocksContext, K as createRoomContext, O as useAddReaction, aI as useAiChat, aK as useAiChatMessages, aL as useAiChatStatus, aJ as useAiChats, au as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, aA as useCreateAiChat, V as useCreateComment, W as useCreateThread, aB as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, $ as useEditThreadMetadata, F as useErrorListener, a4 as useEventListener, aF as useGroupInfo, a5 as useHistory, al as useHistoryVersionData, av as useHistoryVersions, _ as useInboxNotificationThread, ax as useInboxNotifications, a6 as useIsInsideRoom, a7 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a8 as useMarkThreadAsRead, a0 as useMarkThreadAsResolved, a1 as useMarkThreadAsUnresolved, a9 as useMutation, aa as useMyPresence, ay as useNotificationSettings, am as useOther, an as useOthers, ao as useOthersConnectionIds, ab as useOthersListener, ap as useOthersMapped, ac as useRedo, ad as useRemoveReaction, ae as useRoom, aE as useRoomInfo, aw as useRoomSubscriptionSettings, at as useSearchComments, aq as useSelf, aC as useSendAiMessage, af as useStatus, ar as useStorage, ag as useStorageRoot, a2 as useSubscribeToThread, J as useSyncStatus, ah as useThreadSubscription, as as useThreads, ai as useUndo, aG as useUnreadInboxNotificationsCount, a3 as useUnsubscribeFromThread, aj as useUpdateMyPresence, az as useUpdateNotificationSettings, ak as useUpdateRoomSubscriptionSettings, aM as useUrlMetadata, aH as useUser, aD as useUserThreads_experimental } from './room-Bff8edwh.cjs';
3
3
  export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import * as react from 'react';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-BZvk8RRP.js';
2
- export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, B as createLiveblocksContext, K as createRoomContext, O as useAddReaction, aH as useAiChat, aJ as useAiChatMessages, aK as useAiChatStatus, aI as useAiChats, at as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, az as useCreateAiChat, V as useCreateComment, W as useCreateThread, aA as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, $ as useEditThreadMetadata, F as useErrorListener, a4 as useEventListener, aE as useGroupInfo, a5 as useHistory, al as useHistoryVersionData, au as useHistoryVersions, _ as useInboxNotificationThread, aw as useInboxNotifications, a6 as useIsInsideRoom, a7 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a8 as useMarkThreadAsRead, a0 as useMarkThreadAsResolved, a1 as useMarkThreadAsUnresolved, a9 as useMutation, aa as useMyPresence, ax as useNotificationSettings, am as useOther, an as useOthers, ao as useOthersConnectionIds, ab as useOthersListener, ap as useOthersMapped, ac as useRedo, ad as useRemoveReaction, ae as useRoom, aD as useRoomInfo, av as useRoomSubscriptionSettings, aq as useSelf, aB as useSendAiMessage, af as useStatus, ar as useStorage, ag as useStorageRoot, a2 as useSubscribeToThread, J as useSyncStatus, ah as useThreadSubscription, as as useThreads, ai as useUndo, aF as useUnreadInboxNotificationsCount, a3 as useUnsubscribeFromThread, aj as useUpdateMyPresence, ay as useUpdateNotificationSettings, ak as useUpdateRoomSubscriptionSettings, aL as useUrlMetadata, aG as useUser, aC as useUserThreads_experimental } from './room-BZvk8RRP.js';
1
+ import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-Bff8edwh.js';
2
+ export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, B as createLiveblocksContext, K as createRoomContext, O as useAddReaction, aI as useAiChat, aK as useAiChatMessages, aL as useAiChatStatus, aJ as useAiChats, au as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, aA as useCreateAiChat, V as useCreateComment, W as useCreateThread, aB as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, $ as useEditThreadMetadata, F as useErrorListener, a4 as useEventListener, aF as useGroupInfo, a5 as useHistory, al as useHistoryVersionData, av as useHistoryVersions, _ as useInboxNotificationThread, ax as useInboxNotifications, a6 as useIsInsideRoom, a7 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a8 as useMarkThreadAsRead, a0 as useMarkThreadAsResolved, a1 as useMarkThreadAsUnresolved, a9 as useMutation, aa as useMyPresence, ay as useNotificationSettings, am as useOther, an as useOthers, ao as useOthersConnectionIds, ab as useOthersListener, ap as useOthersMapped, ac as useRedo, ad as useRemoveReaction, ae as useRoom, aE as useRoomInfo, aw as useRoomSubscriptionSettings, at as useSearchComments, aq as useSelf, aC as useSendAiMessage, af as useStatus, ar as useStorage, ag as useStorageRoot, a2 as useSubscribeToThread, J as useSyncStatus, ah as useThreadSubscription, as as useThreads, ai as useUndo, aG as useUnreadInboxNotificationsCount, a3 as useUnsubscribeFromThread, aj as useUpdateMyPresence, az as useUpdateNotificationSettings, ak as useUpdateRoomSubscriptionSettings, aM as useUrlMetadata, aH as useUser, aD as useUserThreads_experimental } from './room-Bff8edwh.js';
3
3
  export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import * as react from 'react';
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  PKG_FORMAT,
4
4
  PKG_NAME,
5
5
  PKG_VERSION
6
- } from "./chunk-B2NBIOX3.js";
6
+ } from "./chunk-32VPOOHH.js";
7
7
  import {
8
8
  ClientContext,
9
9
  LiveblocksProvider,
@@ -31,6 +31,7 @@ import {
31
31
  _useOthersMapped,
32
32
  _useRoom,
33
33
  _useRoomSubscriptionSettings,
34
+ _useSearchComments,
34
35
  _useSelf,
35
36
  _useStorage,
36
37
  _useStorageRoot,
@@ -79,7 +80,7 @@ import {
79
80
  useUnsubscribeFromThread,
80
81
  useUpdateNotificationSettings,
81
82
  useUpdateRoomSubscriptionSettings
82
- } from "./chunk-J2LMX3A6.js";
83
+ } from "./chunk-JOZ4BQWH.js";
83
84
 
84
85
  // src/index.ts
85
86
  import { detectDupes } from "@liveblocks/core";
@@ -145,6 +146,7 @@ export {
145
146
  _useRoom as useRoom,
146
147
  useRoomInfo,
147
148
  _useRoomSubscriptionSettings as useRoomSubscriptionSettings,
149
+ _useSearchComments as useSearchComments,
148
150
  _useSelf as useSelf,
149
151
  useSendAiMessage,
150
152
  useStatus,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseSendAiMessageOptions,\n UseThreadsOptions,\n SendAiMessageOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useGroupInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n useAiChatStatus,\n useUrlMetadata,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAe5B,SAAS,SAAS,oCAAoC;AAZtD,YAAY,UAAU,aAAa,UAAU;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseSendAiMessageOptions,\n UseThreadsOptions,\n SendAiMessageOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useThreads,\n useSearchComments,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useGroupInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n useAiChatStatus,\n useUrlMetadata,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAe5B,SAAS,SAAS,oCAAoC;AAZtD,YAAY,UAAU,aAAa,UAAU;","names":[]}
@@ -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, ThreadData as ThreadData$1, CommentData as CommentData$1 } from '@liveblocks/client';
4
4
  import * as _liveblocks_core from '@liveblocks/core';
5
- import { OpaqueClient, OpaqueRoom, AiKnowledgeSource, AiOpaqueToolDefinition, Relax, AiAssistantContentPart, BaseMetadata, QueryMetadata, AsyncResult, DRI, AsyncSuccess, DGI, GroupData, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, ToImmutable, MessageId, PartialNotificationSettings, AiChatsQuery, AsyncLoading, AsyncError, ThreadData, HistoryVersion, AiChat, UrlMetadata, Client as Client$1, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, AiUserMessage, WithRequired, AiChatMessage, WithNavigation, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, SubscriptionKey, SubscriptionData, DerivedSignal, DefaultMap, CommentUserReaction, InboxNotificationDeleteInfo, SubscriptionDeleteInfo, RoomSubscriptionSettings as RoomSubscriptionSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DM, TextEditorType, IYjsProvider, MentionData, DP, DS, DE } from '@liveblocks/core';
5
+ import { OpaqueClient, OpaqueRoom, AiKnowledgeSource, AiOpaqueToolDefinition, Relax, AiAssistantContentPart, BaseMetadata, QueryMetadata, AsyncResult, DRI, AsyncSuccess, DGI, GroupData, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, ToImmutable, MessageId, PartialNotificationSettings, AiChatsQuery, AsyncLoading, AsyncError, ThreadData, SearchCommentsResult, HistoryVersion, AiChat, UrlMetadata, Client as Client$1, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, AiUserMessage, WithRequired, AiChatMessage, WithNavigation, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, SubscriptionKey, SubscriptionData, DerivedSignal, DefaultMap, CommentUserReaction, InboxNotificationDeleteInfo, SubscriptionDeleteInfo, RoomSubscriptionSettings as RoomSubscriptionSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DM, TextEditorType, IYjsProvider, MentionData, DP, DS, DE } from '@liveblocks/core';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
 
8
8
  /**
@@ -164,6 +164,31 @@ type UseThreadsOptions<M extends BaseMetadata> = {
164
164
  */
165
165
  scrollOnLoad?: boolean;
166
166
  };
167
+ type SearchCommentsQuery<M extends BaseMetadata> = {
168
+ /**
169
+ * (Optional) Metadata to filter the threads by.
170
+ */
171
+ threadMetadata?: Partial<QueryMetadata<M>>;
172
+ /**
173
+ * (Optional) Whether to only return comments from threads marked as resolved or unresolved.
174
+ */
175
+ threadResolved?: boolean;
176
+ /**
177
+ * (Optional) Whether to only return comments that have attachments.
178
+ */
179
+ hasAttachments?: boolean;
180
+ /**
181
+ * (Optional) Whether to only return comments that have mentions.
182
+ */
183
+ hasMentions?: boolean;
184
+ /**
185
+ * (Required) Text to search within comment content. Uses rich text and vector search for relevance.
186
+ */
187
+ text: string;
188
+ };
189
+ type UseSearchCommentsOptions<M extends BaseMetadata> = {
190
+ query: SearchCommentsQuery<M>;
191
+ };
167
192
  type InboxNotificationsQuery = {
168
193
  /**
169
194
  * Whether to only return inbox notifications for a specific room.
@@ -230,6 +255,7 @@ type PagedAsyncSuccess<T, F extends string> = Resolve<AsyncSuccess<T, F> & Pagin
230
255
  type PagedAsyncResult<T, F extends string> = Relax<AsyncLoading<F> | AsyncError<F> | PagedAsyncSuccess<T, F>>;
231
256
  type ThreadsAsyncSuccess<M extends BaseMetadata> = PagedAsyncSuccess<ThreadData<M>[], "threads">;
232
257
  type ThreadsAsyncResult<M extends BaseMetadata> = PagedAsyncResult<ThreadData<M>[], "threads">;
258
+ type SearchCommentsAsyncResult = AsyncResult<Array<SearchCommentsResult>, "results">;
233
259
  type InboxNotificationsAsyncSuccess = PagedAsyncSuccess<InboxNotificationData[], "inboxNotifications">;
234
260
  type InboxNotificationsAsyncResult = PagedAsyncResult<InboxNotificationData[], "inboxNotifications">;
235
261
  type UnreadInboxNotificationsCountAsyncSuccess = AsyncSuccess<number, "count">;
@@ -934,6 +960,13 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
934
960
  * const { threads, error, isLoading } = useThreads();
935
961
  */
936
962
  useThreads(options?: UseThreadsOptions<M>): ThreadsAsyncResult<M>;
963
+ /**
964
+ * Returns the result of searching comments by text in the current room. The result includes the id and the plain text content of the matched comments along with the parent thread id of the comment.
965
+ *
966
+ * @example
967
+ * const { results, error, isLoading } = useSearchComments({ query: { text: "hello"} });
968
+ */
969
+ useSearchComments(options: UseSearchCommentsOptions<M>): SearchCommentsAsyncResult;
937
970
  /**
938
971
  * Returns the user's subscription settings for the current room
939
972
  * and a function to update them.
@@ -2643,6 +2676,13 @@ declare const _useOthersMappedSuspense: TypedBundle["suspense"]["useOthersMapped
2643
2676
  * const { threads, error, isLoading } = useThreads();
2644
2677
  */
2645
2678
  declare const _useThreads: TypedBundle["useThreads"];
2679
+ /**
2680
+ * Returns the result of searching comments by text in the current room. The result includes the id and the plain text content of the matched comments along with the parent thread id of the comment.
2681
+ *
2682
+ * @example
2683
+ * const { results, error, isLoading } = useSearchComments({ query: { text: "hello"} });
2684
+ */
2685
+ declare const _useSearchComments: TypedBundle["useSearchComments"];
2646
2686
  /**
2647
2687
  * Returns the threads within the current room.
2648
2688
  *
@@ -2907,4 +2947,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
2907
2947
  */
2908
2948
  declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
2909
2949
 
2910
- export { _useEditThreadMetadata as $, type AiChatStatus as A, createLiveblocksContext as B, ClientContext as C, useDeleteAllInboxNotifications as D, useDeleteInboxNotification as E, useErrorListener as F, type GroupAsyncResult as G, useMarkAllInboxNotificationsAsRead as H, useMarkInboxNotificationAsRead as I, useSyncStatus as J, createRoomContext as K, LiveblocksProvider as L, type MutationContext as M, _RoomProvider as N, _useAddReaction as O, _useBroadcastEvent as P, useCanRedo as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCanUndo as T, type UseSendAiMessageOptions as U, useCreateComment as V, _useCreateThread as W, useDeleteComment as X, _useDeleteThread as Y, useEditComment as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, _useUserSuspense as a$, useMarkThreadAsResolved as a0, useMarkThreadAsUnresolved as a1, useSubscribeToThread as a2, useUnsubscribeFromThread as a3, _useEventListener as a4, useHistory as a5, _useIsInsideRoom as a6, useLostConnectionListener as a7, useMarkThreadAsRead as a8, _useMutation as a9, useDeleteAiChat as aA, useSendAiMessage as aB, _useUserThreads_experimental as aC, useRoomInfo as aD, useGroupInfo as aE, useUnreadInboxNotificationsCount as aF, _useUser as aG, _useAiChat as aH, _useAiChats as aI, _useAiChatMessages as aJ, useAiChatStatus as aK, _useUrlMetadata as aL, _useOtherSuspense as aM, _useOthersSuspense as aN, useOthersConnectionIdsSuspense as aO, _useOthersMappedSuspense as aP, _useSelfSuspense as aQ, _useStorageSuspense as aR, _useThreadsSuspense as aS, useAttachmentUrlSuspense as aT, _useHistoryVersionsSuspense as aU, _useRoomSubscriptionSettingsSuspense as aV, useInboxNotificationsSuspense as aW, useNotificationSettingsSuspense as aX, useRoomInfoSuspense as aY, useGroupInfoSuspense as aZ, useUnreadInboxNotificationsCountSuspense as a_, _useMyPresence as aa, _useOthersListener as ab, useRedo as ac, useRemoveReaction as ad, _useRoom as ae, useStatus as af, _useStorageRoot as ag, useThreadSubscription as ah, useUndo as ai, _useUpdateMyPresence as aj, useUpdateRoomSubscriptionSettings as ak, useHistoryVersionData as al, _useOther as am, _useOthers as an, useOthersConnectionIds as ao, _useOthersMapped as ap, _useSelf as aq, _useStorage as ar, _useThreads as as, useAttachmentUrl as at, _useHistoryVersions as au, _useRoomSubscriptionSettings as av, useInboxNotifications as aw, useNotificationSettings as ax, useUpdateNotificationSettings as ay, useCreateAiChat as az, useCreateRoomComment as b, _useUserThreadsSuspense_experimental as b0, _useAiChatsSuspense as b1, _useAiChatMessagesSuspense as b2, _useAiChatSuspense as b3, _useUrlMetadataSuspense as b4, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useMarkRoomThreadAsRead as k, useMarkRoomThreadAsResolved as l, useMarkRoomThreadAsUnresolved as m, useMentionSuggestionsCache as n, useRemoveRoomCommentReaction as o, useReportTextEditor as p, useResolveMentionSuggestions as q, useRoomAttachmentUrl as r, useRoomPermissions as s, useRoomThreadSubscription as t, useClientOrNull as u, useYjsProvider as v, type RegisterAiToolProps as w, type UseThreadsOptions as x, RoomContext as y, useClient as z };
2950
+ export { _useEditThreadMetadata as $, type AiChatStatus as A, createLiveblocksContext as B, ClientContext as C, useDeleteAllInboxNotifications as D, useDeleteInboxNotification as E, useErrorListener as F, type GroupAsyncResult as G, useMarkAllInboxNotificationsAsRead as H, useMarkInboxNotificationAsRead as I, useSyncStatus as J, createRoomContext as K, LiveblocksProvider as L, type MutationContext as M, _RoomProvider as N, _useAddReaction as O, _useBroadcastEvent as P, useCanRedo as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCanUndo as T, type UseSendAiMessageOptions as U, useCreateComment as V, _useCreateThread as W, useDeleteComment as X, _useDeleteThread as Y, useEditComment as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, useUnreadInboxNotificationsCountSuspense as a$, useMarkThreadAsResolved as a0, useMarkThreadAsUnresolved as a1, useSubscribeToThread as a2, useUnsubscribeFromThread as a3, _useEventListener as a4, useHistory as a5, _useIsInsideRoom as a6, useLostConnectionListener as a7, useMarkThreadAsRead as a8, _useMutation as a9, useCreateAiChat as aA, useDeleteAiChat as aB, useSendAiMessage as aC, _useUserThreads_experimental as aD, useRoomInfo as aE, useGroupInfo as aF, useUnreadInboxNotificationsCount as aG, _useUser as aH, _useAiChat as aI, _useAiChats as aJ, _useAiChatMessages as aK, useAiChatStatus as aL, _useUrlMetadata as aM, _useOtherSuspense as aN, _useOthersSuspense as aO, useOthersConnectionIdsSuspense as aP, _useOthersMappedSuspense as aQ, _useSelfSuspense as aR, _useStorageSuspense as aS, _useThreadsSuspense as aT, useAttachmentUrlSuspense as aU, _useHistoryVersionsSuspense as aV, _useRoomSubscriptionSettingsSuspense as aW, useInboxNotificationsSuspense as aX, useNotificationSettingsSuspense as aY, useRoomInfoSuspense as aZ, useGroupInfoSuspense as a_, _useMyPresence as aa, _useOthersListener as ab, useRedo as ac, useRemoveReaction as ad, _useRoom as ae, useStatus as af, _useStorageRoot as ag, useThreadSubscription as ah, useUndo as ai, _useUpdateMyPresence as aj, useUpdateRoomSubscriptionSettings as ak, useHistoryVersionData as al, _useOther as am, _useOthers as an, useOthersConnectionIds as ao, _useOthersMapped as ap, _useSelf as aq, _useStorage as ar, _useThreads as as, _useSearchComments as at, useAttachmentUrl as au, _useHistoryVersions as av, _useRoomSubscriptionSettings as aw, useInboxNotifications as ax, useNotificationSettings as ay, useUpdateNotificationSettings as az, useCreateRoomComment as b, _useUserSuspense as b0, _useUserThreadsSuspense_experimental as b1, _useAiChatsSuspense as b2, _useAiChatMessagesSuspense as b3, _useAiChatSuspense as b4, _useUrlMetadataSuspense as b5, 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, ThreadData as ThreadData$1, CommentData as CommentData$1 } from '@liveblocks/client';
4
4
  import * as _liveblocks_core from '@liveblocks/core';
5
- import { OpaqueClient, OpaqueRoom, AiKnowledgeSource, AiOpaqueToolDefinition, Relax, AiAssistantContentPart, BaseMetadata, QueryMetadata, AsyncResult, DRI, AsyncSuccess, DGI, GroupData, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, ToImmutable, MessageId, PartialNotificationSettings, AiChatsQuery, AsyncLoading, AsyncError, ThreadData, HistoryVersion, AiChat, UrlMetadata, Client as Client$1, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, AiUserMessage, WithRequired, AiChatMessage, WithNavigation, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, SubscriptionKey, SubscriptionData, DerivedSignal, DefaultMap, CommentUserReaction, InboxNotificationDeleteInfo, SubscriptionDeleteInfo, RoomSubscriptionSettings as RoomSubscriptionSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DM, TextEditorType, IYjsProvider, MentionData, DP, DS, DE } from '@liveblocks/core';
5
+ import { OpaqueClient, OpaqueRoom, AiKnowledgeSource, AiOpaqueToolDefinition, Relax, AiAssistantContentPart, BaseMetadata, QueryMetadata, AsyncResult, DRI, AsyncSuccess, DGI, GroupData, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, ToImmutable, MessageId, PartialNotificationSettings, AiChatsQuery, AsyncLoading, AsyncError, ThreadData, SearchCommentsResult, HistoryVersion, AiChat, UrlMetadata, Client as Client$1, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, AiUserMessage, WithRequired, AiChatMessage, WithNavigation, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, SubscriptionKey, SubscriptionData, DerivedSignal, DefaultMap, CommentUserReaction, InboxNotificationDeleteInfo, SubscriptionDeleteInfo, RoomSubscriptionSettings as RoomSubscriptionSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DM, TextEditorType, IYjsProvider, MentionData, DP, DS, DE } from '@liveblocks/core';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
 
8
8
  /**
@@ -164,6 +164,31 @@ type UseThreadsOptions<M extends BaseMetadata> = {
164
164
  */
165
165
  scrollOnLoad?: boolean;
166
166
  };
167
+ type SearchCommentsQuery<M extends BaseMetadata> = {
168
+ /**
169
+ * (Optional) Metadata to filter the threads by.
170
+ */
171
+ threadMetadata?: Partial<QueryMetadata<M>>;
172
+ /**
173
+ * (Optional) Whether to only return comments from threads marked as resolved or unresolved.
174
+ */
175
+ threadResolved?: boolean;
176
+ /**
177
+ * (Optional) Whether to only return comments that have attachments.
178
+ */
179
+ hasAttachments?: boolean;
180
+ /**
181
+ * (Optional) Whether to only return comments that have mentions.
182
+ */
183
+ hasMentions?: boolean;
184
+ /**
185
+ * (Required) Text to search within comment content. Uses rich text and vector search for relevance.
186
+ */
187
+ text: string;
188
+ };
189
+ type UseSearchCommentsOptions<M extends BaseMetadata> = {
190
+ query: SearchCommentsQuery<M>;
191
+ };
167
192
  type InboxNotificationsQuery = {
168
193
  /**
169
194
  * Whether to only return inbox notifications for a specific room.
@@ -230,6 +255,7 @@ type PagedAsyncSuccess<T, F extends string> = Resolve<AsyncSuccess<T, F> & Pagin
230
255
  type PagedAsyncResult<T, F extends string> = Relax<AsyncLoading<F> | AsyncError<F> | PagedAsyncSuccess<T, F>>;
231
256
  type ThreadsAsyncSuccess<M extends BaseMetadata> = PagedAsyncSuccess<ThreadData<M>[], "threads">;
232
257
  type ThreadsAsyncResult<M extends BaseMetadata> = PagedAsyncResult<ThreadData<M>[], "threads">;
258
+ type SearchCommentsAsyncResult = AsyncResult<Array<SearchCommentsResult>, "results">;
233
259
  type InboxNotificationsAsyncSuccess = PagedAsyncSuccess<InboxNotificationData[], "inboxNotifications">;
234
260
  type InboxNotificationsAsyncResult = PagedAsyncResult<InboxNotificationData[], "inboxNotifications">;
235
261
  type UnreadInboxNotificationsCountAsyncSuccess = AsyncSuccess<number, "count">;
@@ -934,6 +960,13 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
934
960
  * const { threads, error, isLoading } = useThreads();
935
961
  */
936
962
  useThreads(options?: UseThreadsOptions<M>): ThreadsAsyncResult<M>;
963
+ /**
964
+ * Returns the result of searching comments by text in the current room. The result includes the id and the plain text content of the matched comments along with the parent thread id of the comment.
965
+ *
966
+ * @example
967
+ * const { results, error, isLoading } = useSearchComments({ query: { text: "hello"} });
968
+ */
969
+ useSearchComments(options: UseSearchCommentsOptions<M>): SearchCommentsAsyncResult;
937
970
  /**
938
971
  * Returns the user's subscription settings for the current room
939
972
  * and a function to update them.
@@ -2643,6 +2676,13 @@ declare const _useOthersMappedSuspense: TypedBundle["suspense"]["useOthersMapped
2643
2676
  * const { threads, error, isLoading } = useThreads();
2644
2677
  */
2645
2678
  declare const _useThreads: TypedBundle["useThreads"];
2679
+ /**
2680
+ * Returns the result of searching comments by text in the current room. The result includes the id and the plain text content of the matched comments along with the parent thread id of the comment.
2681
+ *
2682
+ * @example
2683
+ * const { results, error, isLoading } = useSearchComments({ query: { text: "hello"} });
2684
+ */
2685
+ declare const _useSearchComments: TypedBundle["useSearchComments"];
2646
2686
  /**
2647
2687
  * Returns the threads within the current room.
2648
2688
  *
@@ -2907,4 +2947,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
2907
2947
  */
2908
2948
  declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
2909
2949
 
2910
- export { _useEditThreadMetadata as $, type AiChatStatus as A, createLiveblocksContext as B, ClientContext as C, useDeleteAllInboxNotifications as D, useDeleteInboxNotification as E, useErrorListener as F, type GroupAsyncResult as G, useMarkAllInboxNotificationsAsRead as H, useMarkInboxNotificationAsRead as I, useSyncStatus as J, createRoomContext as K, LiveblocksProvider as L, type MutationContext as M, _RoomProvider as N, _useAddReaction as O, _useBroadcastEvent as P, useCanRedo as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCanUndo as T, type UseSendAiMessageOptions as U, useCreateComment as V, _useCreateThread as W, useDeleteComment as X, _useDeleteThread as Y, useEditComment as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, _useUserSuspense as a$, useMarkThreadAsResolved as a0, useMarkThreadAsUnresolved as a1, useSubscribeToThread as a2, useUnsubscribeFromThread as a3, _useEventListener as a4, useHistory as a5, _useIsInsideRoom as a6, useLostConnectionListener as a7, useMarkThreadAsRead as a8, _useMutation as a9, useDeleteAiChat as aA, useSendAiMessage as aB, _useUserThreads_experimental as aC, useRoomInfo as aD, useGroupInfo as aE, useUnreadInboxNotificationsCount as aF, _useUser as aG, _useAiChat as aH, _useAiChats as aI, _useAiChatMessages as aJ, useAiChatStatus as aK, _useUrlMetadata as aL, _useOtherSuspense as aM, _useOthersSuspense as aN, useOthersConnectionIdsSuspense as aO, _useOthersMappedSuspense as aP, _useSelfSuspense as aQ, _useStorageSuspense as aR, _useThreadsSuspense as aS, useAttachmentUrlSuspense as aT, _useHistoryVersionsSuspense as aU, _useRoomSubscriptionSettingsSuspense as aV, useInboxNotificationsSuspense as aW, useNotificationSettingsSuspense as aX, useRoomInfoSuspense as aY, useGroupInfoSuspense as aZ, useUnreadInboxNotificationsCountSuspense as a_, _useMyPresence as aa, _useOthersListener as ab, useRedo as ac, useRemoveReaction as ad, _useRoom as ae, useStatus as af, _useStorageRoot as ag, useThreadSubscription as ah, useUndo as ai, _useUpdateMyPresence as aj, useUpdateRoomSubscriptionSettings as ak, useHistoryVersionData as al, _useOther as am, _useOthers as an, useOthersConnectionIds as ao, _useOthersMapped as ap, _useSelf as aq, _useStorage as ar, _useThreads as as, useAttachmentUrl as at, _useHistoryVersions as au, _useRoomSubscriptionSettings as av, useInboxNotifications as aw, useNotificationSettings as ax, useUpdateNotificationSettings as ay, useCreateAiChat as az, useCreateRoomComment as b, _useUserThreadsSuspense_experimental as b0, _useAiChatsSuspense as b1, _useAiChatMessagesSuspense as b2, _useAiChatSuspense as b3, _useUrlMetadataSuspense as b4, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useMarkRoomThreadAsRead as k, useMarkRoomThreadAsResolved as l, useMarkRoomThreadAsUnresolved as m, useMentionSuggestionsCache as n, useRemoveRoomCommentReaction as o, useReportTextEditor as p, useResolveMentionSuggestions as q, useRoomAttachmentUrl as r, useRoomPermissions as s, useRoomThreadSubscription as t, useClientOrNull as u, useYjsProvider as v, type RegisterAiToolProps as w, type UseThreadsOptions as x, RoomContext as y, useClient as z };
2950
+ export { _useEditThreadMetadata as $, type AiChatStatus as A, createLiveblocksContext as B, ClientContext as C, useDeleteAllInboxNotifications as D, useDeleteInboxNotification as E, useErrorListener as F, type GroupAsyncResult as G, useMarkAllInboxNotificationsAsRead as H, useMarkInboxNotificationAsRead as I, useSyncStatus as J, createRoomContext as K, LiveblocksProvider as L, type MutationContext as M, _RoomProvider as N, _useAddReaction as O, _useBroadcastEvent as P, useCanRedo as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCanUndo as T, type UseSendAiMessageOptions as U, useCreateComment as V, _useCreateThread as W, useDeleteComment as X, _useDeleteThread as Y, useEditComment as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, useUnreadInboxNotificationsCountSuspense as a$, useMarkThreadAsResolved as a0, useMarkThreadAsUnresolved as a1, useSubscribeToThread as a2, useUnsubscribeFromThread as a3, _useEventListener as a4, useHistory as a5, _useIsInsideRoom as a6, useLostConnectionListener as a7, useMarkThreadAsRead as a8, _useMutation as a9, useCreateAiChat as aA, useDeleteAiChat as aB, useSendAiMessage as aC, _useUserThreads_experimental as aD, useRoomInfo as aE, useGroupInfo as aF, useUnreadInboxNotificationsCount as aG, _useUser as aH, _useAiChat as aI, _useAiChats as aJ, _useAiChatMessages as aK, useAiChatStatus as aL, _useUrlMetadata as aM, _useOtherSuspense as aN, _useOthersSuspense as aO, useOthersConnectionIdsSuspense as aP, _useOthersMappedSuspense as aQ, _useSelfSuspense as aR, _useStorageSuspense as aS, _useThreadsSuspense as aT, useAttachmentUrlSuspense as aU, _useHistoryVersionsSuspense as aV, _useRoomSubscriptionSettingsSuspense as aW, useInboxNotificationsSuspense as aX, useNotificationSettingsSuspense as aY, useRoomInfoSuspense as aZ, useGroupInfoSuspense as a_, _useMyPresence as aa, _useOthersListener as ab, useRedo as ac, useRemoveReaction as ad, _useRoom as ae, useStatus as af, _useStorageRoot as ag, useThreadSubscription as ah, useUndo as ai, _useUpdateMyPresence as aj, useUpdateRoomSubscriptionSettings as ak, useHistoryVersionData as al, _useOther as am, _useOthers as an, useOthersConnectionIds as ao, _useOthersMapped as ap, _useSelf as aq, _useStorage as ar, _useThreads as as, _useSearchComments as at, useAttachmentUrl as au, _useHistoryVersions as av, _useRoomSubscriptionSettings as aw, useInboxNotifications as ax, useNotificationSettings as ay, useUpdateNotificationSettings as az, useCreateRoomComment as b, _useUserSuspense as b0, _useUserThreadsSuspense_experimental as b1, _useAiChatsSuspense as b2, _useAiChatMessagesSuspense as b3, _useAiChatSuspense as b4, _useUrlMetadataSuspense as b5, 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 _chunk6WBZJEKScjs = require('./chunk-6WBZJEKS.cjs');
6
+ var _chunkSCA53Q7Pcjs = require('./chunk-SCA53Q7P.cjs');
7
7
 
8
8
 
9
9
 
@@ -76,12 +76,12 @@ var _chunk6WBZJEKScjs = require('./chunk-6WBZJEKS.cjs');
76
76
 
77
77
 
78
78
 
79
- var _chunkNGMOQDHXcjs = require('./chunk-NGMOQDHX.cjs');
79
+ var _chunkQT34ZNVCcjs = require('./chunk-QT34ZNVC.cjs');
80
80
 
81
81
  // src/suspense.ts
82
82
  var _core = require('@liveblocks/core');
83
83
  var _client = require('@liveblocks/client');
84
- _core.detectDupes.call(void 0, _chunk6WBZJEKScjs.PKG_NAME, _chunk6WBZJEKScjs.PKG_VERSION, _chunk6WBZJEKScjs.PKG_FORMAT);
84
+ _core.detectDupes.call(void 0, _chunkSCA53Q7Pcjs.PKG_NAME, _chunkSCA53Q7Pcjs.PKG_VERSION, _chunkSCA53Q7Pcjs.PKG_FORMAT);
85
85
 
86
86
 
87
87
 
@@ -157,5 +157,5 @@ _core.detectDupes.call(void 0, _chunk6WBZJEKScjs.PKG_NAME, _chunk6WBZJEKScjs.PKG
157
157
 
158
158
 
159
159
 
160
- exports.ClientContext = _chunkNGMOQDHXcjs.ClientContext; exports.ClientSideSuspense = _chunk6WBZJEKScjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkNGMOQDHXcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkNGMOQDHXcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkNGMOQDHXcjs.RegisterAiTool; exports.RoomContext = _chunkNGMOQDHXcjs.RoomContext; exports.RoomProvider = _chunkNGMOQDHXcjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkNGMOQDHXcjs._useAddReaction; exports.useAiChat = _chunkNGMOQDHXcjs._useAiChatSuspense; exports.useAiChatMessages = _chunkNGMOQDHXcjs._useAiChatMessagesSuspense; exports.useAiChatStatus = _chunkNGMOQDHXcjs.useAiChatStatus; exports.useAiChats = _chunkNGMOQDHXcjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunkNGMOQDHXcjs.useAttachmentUrlSuspense; exports.useBroadcastEvent = _chunkNGMOQDHXcjs._useBroadcastEvent; exports.useCanRedo = _chunkNGMOQDHXcjs.useCanRedo; exports.useCanUndo = _chunkNGMOQDHXcjs.useCanUndo; exports.useClient = _chunkNGMOQDHXcjs.useClient; exports.useCreateAiChat = _chunkNGMOQDHXcjs.useCreateAiChat; exports.useCreateComment = _chunkNGMOQDHXcjs.useCreateComment; exports.useCreateThread = _chunkNGMOQDHXcjs._useCreateThread; exports.useDeleteAiChat = _chunkNGMOQDHXcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkNGMOQDHXcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkNGMOQDHXcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkNGMOQDHXcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkNGMOQDHXcjs._useDeleteThread; exports.useEditComment = _chunkNGMOQDHXcjs.useEditComment; exports.useEditThreadMetadata = _chunkNGMOQDHXcjs._useEditThreadMetadata; exports.useErrorListener = _chunkNGMOQDHXcjs.useErrorListener; exports.useEventListener = _chunkNGMOQDHXcjs._useEventListener; exports.useGroupInfo = _chunkNGMOQDHXcjs.useGroupInfoSuspense; exports.useHistory = _chunkNGMOQDHXcjs.useHistory; exports.useHistoryVersions = _chunkNGMOQDHXcjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkNGMOQDHXcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkNGMOQDHXcjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkNGMOQDHXcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkNGMOQDHXcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkNGMOQDHXcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkNGMOQDHXcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkNGMOQDHXcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkNGMOQDHXcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkNGMOQDHXcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkNGMOQDHXcjs._useMutation; exports.useMyPresence = _chunkNGMOQDHXcjs._useMyPresence; exports.useNotificationSettings = _chunkNGMOQDHXcjs.useNotificationSettingsSuspense; exports.useOther = _chunkNGMOQDHXcjs._useOtherSuspense; exports.useOthers = _chunkNGMOQDHXcjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkNGMOQDHXcjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkNGMOQDHXcjs._useOthersListener; exports.useOthersMapped = _chunkNGMOQDHXcjs._useOthersMappedSuspense; exports.useRedo = _chunkNGMOQDHXcjs.useRedo; exports.useRemoveReaction = _chunkNGMOQDHXcjs.useRemoveReaction; exports.useRoom = _chunkNGMOQDHXcjs._useRoom; exports.useRoomInfo = _chunkNGMOQDHXcjs.useRoomInfoSuspense; exports.useRoomSubscriptionSettings = _chunkNGMOQDHXcjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunkNGMOQDHXcjs._useSelfSuspense; exports.useSendAiMessage = _chunkNGMOQDHXcjs.useSendAiMessage; exports.useStatus = _chunkNGMOQDHXcjs.useStatus; exports.useStorage = _chunkNGMOQDHXcjs._useStorageSuspense; exports.useStorageRoot = _chunkNGMOQDHXcjs._useStorageRoot; exports.useSubscribeToThread = _chunkNGMOQDHXcjs.useSubscribeToThread; exports.useSyncStatus = _chunkNGMOQDHXcjs.useSyncStatus; exports.useThreadSubscription = _chunkNGMOQDHXcjs.useThreadSubscription; exports.useThreads = _chunkNGMOQDHXcjs._useThreadsSuspense; exports.useUndo = _chunkNGMOQDHXcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkNGMOQDHXcjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunkNGMOQDHXcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkNGMOQDHXcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkNGMOQDHXcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkNGMOQDHXcjs.useUpdateRoomSubscriptionSettings; exports.useUrlMetadata = _chunkNGMOQDHXcjs._useUrlMetadataSuspense; exports.useUser = _chunkNGMOQDHXcjs._useUserSuspense; exports.useUserThreads_experimental = _chunkNGMOQDHXcjs._useUserThreadsSuspense_experimental;
160
+ exports.ClientContext = _chunkQT34ZNVCcjs.ClientContext; exports.ClientSideSuspense = _chunkSCA53Q7Pcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkQT34ZNVCcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkQT34ZNVCcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkQT34ZNVCcjs.RegisterAiTool; exports.RoomContext = _chunkQT34ZNVCcjs.RoomContext; exports.RoomProvider = _chunkQT34ZNVCcjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkQT34ZNVCcjs._useAddReaction; exports.useAiChat = _chunkQT34ZNVCcjs._useAiChatSuspense; exports.useAiChatMessages = _chunkQT34ZNVCcjs._useAiChatMessagesSuspense; exports.useAiChatStatus = _chunkQT34ZNVCcjs.useAiChatStatus; exports.useAiChats = _chunkQT34ZNVCcjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunkQT34ZNVCcjs.useAttachmentUrlSuspense; exports.useBroadcastEvent = _chunkQT34ZNVCcjs._useBroadcastEvent; exports.useCanRedo = _chunkQT34ZNVCcjs.useCanRedo; exports.useCanUndo = _chunkQT34ZNVCcjs.useCanUndo; exports.useClient = _chunkQT34ZNVCcjs.useClient; exports.useCreateAiChat = _chunkQT34ZNVCcjs.useCreateAiChat; exports.useCreateComment = _chunkQT34ZNVCcjs.useCreateComment; exports.useCreateThread = _chunkQT34ZNVCcjs._useCreateThread; exports.useDeleteAiChat = _chunkQT34ZNVCcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkQT34ZNVCcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkQT34ZNVCcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkQT34ZNVCcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkQT34ZNVCcjs._useDeleteThread; exports.useEditComment = _chunkQT34ZNVCcjs.useEditComment; exports.useEditThreadMetadata = _chunkQT34ZNVCcjs._useEditThreadMetadata; exports.useErrorListener = _chunkQT34ZNVCcjs.useErrorListener; exports.useEventListener = _chunkQT34ZNVCcjs._useEventListener; exports.useGroupInfo = _chunkQT34ZNVCcjs.useGroupInfoSuspense; exports.useHistory = _chunkQT34ZNVCcjs.useHistory; exports.useHistoryVersions = _chunkQT34ZNVCcjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkQT34ZNVCcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkQT34ZNVCcjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkQT34ZNVCcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkQT34ZNVCcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkQT34ZNVCcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkQT34ZNVCcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkQT34ZNVCcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkQT34ZNVCcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkQT34ZNVCcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkQT34ZNVCcjs._useMutation; exports.useMyPresence = _chunkQT34ZNVCcjs._useMyPresence; exports.useNotificationSettings = _chunkQT34ZNVCcjs.useNotificationSettingsSuspense; exports.useOther = _chunkQT34ZNVCcjs._useOtherSuspense; exports.useOthers = _chunkQT34ZNVCcjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkQT34ZNVCcjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkQT34ZNVCcjs._useOthersListener; exports.useOthersMapped = _chunkQT34ZNVCcjs._useOthersMappedSuspense; exports.useRedo = _chunkQT34ZNVCcjs.useRedo; exports.useRemoveReaction = _chunkQT34ZNVCcjs.useRemoveReaction; exports.useRoom = _chunkQT34ZNVCcjs._useRoom; exports.useRoomInfo = _chunkQT34ZNVCcjs.useRoomInfoSuspense; exports.useRoomSubscriptionSettings = _chunkQT34ZNVCcjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunkQT34ZNVCcjs._useSelfSuspense; exports.useSendAiMessage = _chunkQT34ZNVCcjs.useSendAiMessage; exports.useStatus = _chunkQT34ZNVCcjs.useStatus; exports.useStorage = _chunkQT34ZNVCcjs._useStorageSuspense; exports.useStorageRoot = _chunkQT34ZNVCcjs._useStorageRoot; exports.useSubscribeToThread = _chunkQT34ZNVCcjs.useSubscribeToThread; exports.useSyncStatus = _chunkQT34ZNVCcjs.useSyncStatus; exports.useThreadSubscription = _chunkQT34ZNVCcjs.useThreadSubscription; exports.useThreads = _chunkQT34ZNVCcjs._useThreadsSuspense; exports.useUndo = _chunkQT34ZNVCcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkQT34ZNVCcjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunkQT34ZNVCcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkQT34ZNVCcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkQT34ZNVCcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkQT34ZNVCcjs.useUpdateRoomSubscriptionSettings; exports.useUrlMetadata = _chunkQT34ZNVCcjs._useUrlMetadataSuspense; exports.useUser = _chunkQT34ZNVCcjs._useUserSuspense; exports.useUserThreads_experimental = _chunkQT34ZNVCcjs._useUserThreadsSuspense_experimental;
161
161
  //# sourceMappingURL=suspense.cjs.map
@@ -1,5 +1,5 @@
1
1
  export { ClientSideSuspense, RegisterAiKnowledge, RegisterAiTool } from './index.cjs';
2
- export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, O as useAddReaction, b3 as useAiChat, b2 as useAiChatMessages, aK as useAiChatStatus, b1 as useAiChats, aT as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, az as useCreateAiChat, V as useCreateComment, W as useCreateThread, aA as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, $ as useEditThreadMetadata, F as useErrorListener, a4 as useEventListener, aZ as useGroupInfo, a5 as useHistory, aU as useHistoryVersions, _ as useInboxNotificationThread, aW as useInboxNotifications, a6 as useIsInsideRoom, a7 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a8 as useMarkThreadAsRead, a0 as useMarkThreadAsResolved, a1 as useMarkThreadAsUnresolved, a9 as useMutation, aa as useMyPresence, aX as useNotificationSettings, aM as useOther, aN as useOthers, aO as useOthersConnectionIds, ab as useOthersListener, aP as useOthersMapped, ac as useRedo, ad as useRemoveReaction, ae as useRoom, aY as useRoomInfo, aV as useRoomSubscriptionSettings, aQ as useSelf, aB as useSendAiMessage, af as useStatus, aR as useStorage, ag as useStorageRoot, a2 as useSubscribeToThread, J as useSyncStatus, ah as useThreadSubscription, aS as useThreads, ai as useUndo, a_ as useUnreadInboxNotificationsCount, a3 as useUnsubscribeFromThread, aj as useUpdateMyPresence, ay as useUpdateNotificationSettings, ak as useUpdateRoomSubscriptionSettings, b4 as useUrlMetadata, a$ as useUser, b0 as useUserThreads_experimental } from './room-BZvk8RRP.cjs';
2
+ export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, O as useAddReaction, b4 as useAiChat, b3 as useAiChatMessages, aL as useAiChatStatus, b2 as useAiChats, aU as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, aA as useCreateAiChat, V as useCreateComment, W as useCreateThread, aB as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, $ as useEditThreadMetadata, F as useErrorListener, a4 as useEventListener, a_ as useGroupInfo, a5 as useHistory, aV as useHistoryVersions, _ as useInboxNotificationThread, aX as useInboxNotifications, a6 as useIsInsideRoom, a7 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a8 as useMarkThreadAsRead, a0 as useMarkThreadAsResolved, a1 as useMarkThreadAsUnresolved, a9 as useMutation, aa as useMyPresence, aY as useNotificationSettings, aN as useOther, aO as useOthers, aP as useOthersConnectionIds, ab as useOthersListener, aQ as useOthersMapped, ac as useRedo, ad as useRemoveReaction, ae as useRoom, aZ as useRoomInfo, aW as useRoomSubscriptionSettings, aR as useSelf, aC as useSendAiMessage, af as useStatus, aS as useStorage, ag as useStorageRoot, a2 as useSubscribeToThread, J as useSyncStatus, ah as useThreadSubscription, aT as useThreads, ai as useUndo, a$ as useUnreadInboxNotificationsCount, a3 as useUnsubscribeFromThread, aj as useUpdateMyPresence, az as useUpdateNotificationSettings, ak as useUpdateRoomSubscriptionSettings, b5 as useUrlMetadata, b0 as useUser, b1 as useUserThreads_experimental } from './room-Bff8edwh.cjs';
3
3
  export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react';
@@ -1,5 +1,5 @@
1
1
  export { ClientSideSuspense, RegisterAiKnowledge, RegisterAiTool } from './index.js';
2
- export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, O as useAddReaction, b3 as useAiChat, b2 as useAiChatMessages, aK as useAiChatStatus, b1 as useAiChats, aT as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, az as useCreateAiChat, V as useCreateComment, W as useCreateThread, aA as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, $ as useEditThreadMetadata, F as useErrorListener, a4 as useEventListener, aZ as useGroupInfo, a5 as useHistory, aU as useHistoryVersions, _ as useInboxNotificationThread, aW as useInboxNotifications, a6 as useIsInsideRoom, a7 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a8 as useMarkThreadAsRead, a0 as useMarkThreadAsResolved, a1 as useMarkThreadAsUnresolved, a9 as useMutation, aa as useMyPresence, aX as useNotificationSettings, aM as useOther, aN as useOthers, aO as useOthersConnectionIds, ab as useOthersListener, aP as useOthersMapped, ac as useRedo, ad as useRemoveReaction, ae as useRoom, aY as useRoomInfo, aV as useRoomSubscriptionSettings, aQ as useSelf, aB as useSendAiMessage, af as useStatus, aR as useStorage, ag as useStorageRoot, a2 as useSubscribeToThread, J as useSyncStatus, ah as useThreadSubscription, aS as useThreads, ai as useUndo, a_ as useUnreadInboxNotificationsCount, a3 as useUnsubscribeFromThread, aj as useUpdateMyPresence, ay as useUpdateNotificationSettings, ak as useUpdateRoomSubscriptionSettings, b4 as useUrlMetadata, a$ as useUser, b0 as useUserThreads_experimental } from './room-BZvk8RRP.js';
2
+ export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, O as useAddReaction, b4 as useAiChat, b3 as useAiChatMessages, aL as useAiChatStatus, b2 as useAiChats, aU as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, aA as useCreateAiChat, V as useCreateComment, W as useCreateThread, aB as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, $ as useEditThreadMetadata, F as useErrorListener, a4 as useEventListener, a_ as useGroupInfo, a5 as useHistory, aV as useHistoryVersions, _ as useInboxNotificationThread, aX as useInboxNotifications, a6 as useIsInsideRoom, a7 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a8 as useMarkThreadAsRead, a0 as useMarkThreadAsResolved, a1 as useMarkThreadAsUnresolved, a9 as useMutation, aa as useMyPresence, aY as useNotificationSettings, aN as useOther, aO as useOthers, aP as useOthersConnectionIds, ab as useOthersListener, aQ as useOthersMapped, ac as useRedo, ad as useRemoveReaction, ae as useRoom, aZ as useRoomInfo, aW as useRoomSubscriptionSettings, aR as useSelf, aC as useSendAiMessage, af as useStatus, aS as useStorage, ag as useStorageRoot, a2 as useSubscribeToThread, J as useSyncStatus, ah as useThreadSubscription, aT as useThreads, ai as useUndo, a$ as useUnreadInboxNotificationsCount, a3 as useUnsubscribeFromThread, aj as useUpdateMyPresence, az as useUpdateNotificationSettings, ak as useUpdateRoomSubscriptionSettings, b5 as useUrlMetadata, b0 as useUser, b1 as useUserThreads_experimental } from './room-Bff8edwh.js';
3
3
  export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react';
package/dist/suspense.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  PKG_FORMAT,
4
4
  PKG_NAME,
5
5
  PKG_VERSION
6
- } from "./chunk-B2NBIOX3.js";
6
+ } from "./chunk-32VPOOHH.js";
7
7
  import {
8
8
  ClientContext,
9
9
  LiveblocksProvider,
@@ -76,7 +76,7 @@ import {
76
76
  useUnsubscribeFromThread,
77
77
  useUpdateNotificationSettings,
78
78
  useUpdateRoomSubscriptionSettings
79
- } from "./chunk-J2LMX3A6.js";
79
+ } from "./chunk-JOZ4BQWH.js";
80
80
 
81
81
  // src/suspense.ts
82
82
  import { detectDupes } from "@liveblocks/core";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liveblocks/react",
3
- "version": "3.10.0",
3
+ "version": "3.11.0",
4
4
  "description": "A set of React hooks and providers to use Liveblocks declaratively. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -61,8 +61,8 @@
61
61
  "showdeps": "depcruise src --include-only '^src' --exclude='__tests__' --output-type dot | dot -T svg > /tmp/dependency-graph.svg && open /tmp/dependency-graph.svg"
62
62
  },
63
63
  "dependencies": {
64
- "@liveblocks/client": "3.10.0",
65
- "@liveblocks/core": "3.10.0"
64
+ "@liveblocks/client": "3.11.0",
65
+ "@liveblocks/core": "3.11.0"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "@types/react": "*",