@liveblocks/react 3.15.0-components1 → 3.15.0-feeds1

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.15.0-components1";
3
+ var PKG_VERSION = "3.15.0-feeds1";
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-Z7VSK4H7.cjs.map
23
+ //# sourceMappingURL=chunk-PQ62AG2K.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/chunk-PQ62AG2K.cjs","../src/version.ts","../src/ClientSideSuspense.tsx"],"names":[],"mappings":"AAAA;ACGO,IAAM,SAAA,EAAW,mBAAA;AACjB,IAAM,YAAA,EAAiD,eAAA;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-PQ62AG2K.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,6 +1,6 @@
1
1
  // src/version.ts
2
2
  var PKG_NAME = "@liveblocks/react";
3
- var PKG_VERSION = "3.15.0-components1";
3
+ var PKG_VERSION = "3.15.0-feeds1";
4
4
  var PKG_FORMAT = "esm";
5
5
 
6
6
  // src/ClientSideSuspense.tsx
@@ -20,4 +20,4 @@ export {
20
20
  PKG_FORMAT,
21
21
  ClientSideSuspense
22
22
  };
23
- //# sourceMappingURL=chunk-VMPATNNT.js.map
23
+ //# sourceMappingURL=chunk-XMFQTQBJ.js.map
package/dist/index.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkZ7VSK4H7cjs = require('./chunk-Z7VSK4H7.cjs');
6
+ var _chunkPQ62AG2Kcjs = require('./chunk-PQ62AG2K.cjs');
7
7
 
8
8
 
9
9
 
@@ -81,12 +81,28 @@ var _chunkZ7VSK4H7cjs = require('./chunk-Z7VSK4H7.cjs');
81
81
 
82
82
 
83
83
 
84
- var _chunkZ3NTUAGPcjs = require('./chunk-Z3NTUAGP.cjs');
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+ var _chunkFLKIHVRXcjs = require('./chunk-FLKIHVRX.cjs');
85
93
 
86
94
  // src/index.ts
87
95
  var _core = require('@liveblocks/core');
88
96
  var _client = require('@liveblocks/client');
89
- _core.detectDupes.call(void 0, _chunkZ7VSK4H7cjs.PKG_NAME, _chunkZ7VSK4H7cjs.PKG_VERSION, _chunkZ7VSK4H7cjs.PKG_FORMAT);
97
+ _core.detectDupes.call(void 0, _chunkPQ62AG2Kcjs.PKG_NAME, _chunkPQ62AG2Kcjs.PKG_VERSION, _chunkPQ62AG2Kcjs.PKG_FORMAT);
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+
90
106
 
91
107
 
92
108
 
@@ -167,5 +183,5 @@ _core.detectDupes.call(void 0, _chunkZ7VSK4H7cjs.PKG_NAME, _chunkZ7VSK4H7cjs.PKG
167
183
 
168
184
 
169
185
 
170
- exports.ClientContext = _chunkZ3NTUAGPcjs.ClientContext; exports.ClientSideSuspense = _chunkZ7VSK4H7cjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkZ3NTUAGPcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkZ3NTUAGPcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkZ3NTUAGPcjs.RegisterAiTool; exports.RoomContext = _chunkZ3NTUAGPcjs.GlobalRoomContext; exports.RoomProvider = _chunkZ3NTUAGPcjs._RoomProvider; exports.createLiveblocksContext = _chunkZ3NTUAGPcjs.createLiveblocksContext; exports.createRoomContext = _chunkZ3NTUAGPcjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkZ3NTUAGPcjs._useAddReaction; exports.useAiChat = _chunkZ3NTUAGPcjs._useAiChat; exports.useAiChatMessages = _chunkZ3NTUAGPcjs._useAiChatMessages; exports.useAiChatStatus = _chunkZ3NTUAGPcjs.useAiChatStatus; exports.useAiChats = _chunkZ3NTUAGPcjs._useAiChats; exports.useAttachmentUrl = _chunkZ3NTUAGPcjs.useAttachmentUrl; exports.useBroadcastEvent = _chunkZ3NTUAGPcjs._useBroadcastEvent; exports.useCanRedo = _chunkZ3NTUAGPcjs.useCanRedo; exports.useCanUndo = _chunkZ3NTUAGPcjs.useCanUndo; exports.useClient = _chunkZ3NTUAGPcjs.useClient; exports.useCreateAiChat = _chunkZ3NTUAGPcjs.useCreateAiChat; exports.useCreateComment = _chunkZ3NTUAGPcjs._useCreateComment; exports.useCreateThread = _chunkZ3NTUAGPcjs._useCreateThread; exports.useDeleteAiChat = _chunkZ3NTUAGPcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkZ3NTUAGPcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkZ3NTUAGPcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkZ3NTUAGPcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkZ3NTUAGPcjs._useDeleteThread; exports.useEditComment = _chunkZ3NTUAGPcjs._useEditComment; exports.useEditCommentMetadata = _chunkZ3NTUAGPcjs._useEditCommentMetadata; exports.useEditThreadMetadata = _chunkZ3NTUAGPcjs._useEditThreadMetadata; exports.useErrorListener = _chunkZ3NTUAGPcjs.useErrorListener; exports.useEventListener = _chunkZ3NTUAGPcjs._useEventListener; exports.useGroupInfo = _chunkZ3NTUAGPcjs.useGroupInfo; exports.useHistory = _chunkZ3NTUAGPcjs.useHistory; exports.useHistoryVersionData = _chunkZ3NTUAGPcjs.useHistoryVersionData; exports.useHistoryVersions = _chunkZ3NTUAGPcjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkZ3NTUAGPcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkZ3NTUAGPcjs.useInboxNotifications; exports.useIsInsideRoom = _chunkZ3NTUAGPcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkZ3NTUAGPcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkZ3NTUAGPcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkZ3NTUAGPcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkZ3NTUAGPcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkZ3NTUAGPcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkZ3NTUAGPcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkZ3NTUAGPcjs._useMutation; exports.useMyPresence = _chunkZ3NTUAGPcjs._useMyPresence; exports.useNotificationSettings = _chunkZ3NTUAGPcjs.useNotificationSettings; exports.useOther = _chunkZ3NTUAGPcjs._useOther; exports.useOthers = _chunkZ3NTUAGPcjs._useOthers; exports.useOthersConnectionIds = _chunkZ3NTUAGPcjs.useOthersConnectionIds; exports.useOthersListener = _chunkZ3NTUAGPcjs._useOthersListener; exports.useOthersMapped = _chunkZ3NTUAGPcjs._useOthersMapped; exports.useRedo = _chunkZ3NTUAGPcjs.useRedo; exports.useRemoveReaction = _chunkZ3NTUAGPcjs.useRemoveReaction; exports.useRoom = _chunkZ3NTUAGPcjs._useRoom; exports.useRoomInfo = _chunkZ3NTUAGPcjs.useRoomInfo; exports.useRoomSubscriptionSettings = _chunkZ3NTUAGPcjs._useRoomSubscriptionSettings; exports.useSearchComments = _chunkZ3NTUAGPcjs._useSearchComments; exports.useSelf = _chunkZ3NTUAGPcjs._useSelf; exports.useSendAiMessage = _chunkZ3NTUAGPcjs.useSendAiMessage; exports.useStatus = _chunkZ3NTUAGPcjs.useStatus; exports.useStorage = _chunkZ3NTUAGPcjs._useStorage; exports.useStorageRoot = _chunkZ3NTUAGPcjs._useStorageRoot; exports.useSubscribeToThread = _chunkZ3NTUAGPcjs.useSubscribeToThread; exports.useSyncStatus = _chunkZ3NTUAGPcjs.useSyncStatus; exports.useThreadSubscription = _chunkZ3NTUAGPcjs.useThreadSubscription; exports.useThreads = _chunkZ3NTUAGPcjs._useThreads; exports.useUndo = _chunkZ3NTUAGPcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkZ3NTUAGPcjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunkZ3NTUAGPcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkZ3NTUAGPcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkZ3NTUAGPcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkZ3NTUAGPcjs.useUpdateRoomSubscriptionSettings; exports.useUrlMetadata = _chunkZ3NTUAGPcjs._useUrlMetadata; exports.useUser = _chunkZ3NTUAGPcjs._useUser; exports.useUserThreads_experimental = _chunkZ3NTUAGPcjs._useUserThreads_experimental;
186
+ exports.ClientContext = _chunkFLKIHVRXcjs.ClientContext; exports.ClientSideSuspense = _chunkPQ62AG2Kcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkFLKIHVRXcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkFLKIHVRXcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkFLKIHVRXcjs.RegisterAiTool; exports.RoomContext = _chunkFLKIHVRXcjs.RoomContext; exports.RoomProvider = _chunkFLKIHVRXcjs._RoomProvider; exports.createLiveblocksContext = _chunkFLKIHVRXcjs.createLiveblocksContext; exports.createRoomContext = _chunkFLKIHVRXcjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkFLKIHVRXcjs._useAddReaction; exports.useAiChat = _chunkFLKIHVRXcjs._useAiChat; exports.useAiChatMessages = _chunkFLKIHVRXcjs._useAiChatMessages; exports.useAiChatStatus = _chunkFLKIHVRXcjs.useAiChatStatus; exports.useAiChats = _chunkFLKIHVRXcjs._useAiChats; exports.useAttachmentUrl = _chunkFLKIHVRXcjs.useAttachmentUrl; exports.useBroadcastEvent = _chunkFLKIHVRXcjs._useBroadcastEvent; exports.useCanRedo = _chunkFLKIHVRXcjs.useCanRedo; exports.useCanUndo = _chunkFLKIHVRXcjs.useCanUndo; exports.useClient = _chunkFLKIHVRXcjs.useClient; exports.useCreateAiChat = _chunkFLKIHVRXcjs.useCreateAiChat; exports.useCreateComment = _chunkFLKIHVRXcjs._useCreateComment; exports.useCreateFeed = _chunkFLKIHVRXcjs.useCreateFeed; exports.useCreateFeedMessage = _chunkFLKIHVRXcjs.useCreateFeedMessage; exports.useCreateThread = _chunkFLKIHVRXcjs._useCreateThread; exports.useDeleteAiChat = _chunkFLKIHVRXcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkFLKIHVRXcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkFLKIHVRXcjs.useDeleteComment; exports.useDeleteFeed = _chunkFLKIHVRXcjs.useDeleteFeed; exports.useDeleteFeedMessage = _chunkFLKIHVRXcjs.useDeleteFeedMessage; exports.useDeleteInboxNotification = _chunkFLKIHVRXcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkFLKIHVRXcjs._useDeleteThread; exports.useEditComment = _chunkFLKIHVRXcjs._useEditComment; exports.useEditCommentMetadata = _chunkFLKIHVRXcjs._useEditCommentMetadata; exports.useEditThreadMetadata = _chunkFLKIHVRXcjs._useEditThreadMetadata; exports.useErrorListener = _chunkFLKIHVRXcjs.useErrorListener; exports.useEventListener = _chunkFLKIHVRXcjs._useEventListener; exports.useFeedMessages = _chunkFLKIHVRXcjs._useFeedMessages; exports.useFeeds = _chunkFLKIHVRXcjs._useFeeds; exports.useGroupInfo = _chunkFLKIHVRXcjs.useGroupInfo; exports.useHistory = _chunkFLKIHVRXcjs.useHistory; exports.useHistoryVersionData = _chunkFLKIHVRXcjs.useHistoryVersionData; exports.useHistoryVersions = _chunkFLKIHVRXcjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkFLKIHVRXcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkFLKIHVRXcjs.useInboxNotifications; exports.useIsInsideRoom = _chunkFLKIHVRXcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkFLKIHVRXcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkFLKIHVRXcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkFLKIHVRXcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkFLKIHVRXcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkFLKIHVRXcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkFLKIHVRXcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkFLKIHVRXcjs._useMutation; exports.useMyPresence = _chunkFLKIHVRXcjs._useMyPresence; exports.useNotificationSettings = _chunkFLKIHVRXcjs.useNotificationSettings; exports.useOther = _chunkFLKIHVRXcjs._useOther; exports.useOthers = _chunkFLKIHVRXcjs._useOthers; exports.useOthersConnectionIds = _chunkFLKIHVRXcjs.useOthersConnectionIds; exports.useOthersListener = _chunkFLKIHVRXcjs._useOthersListener; exports.useOthersMapped = _chunkFLKIHVRXcjs._useOthersMapped; exports.useRedo = _chunkFLKIHVRXcjs.useRedo; exports.useRemoveReaction = _chunkFLKIHVRXcjs.useRemoveReaction; exports.useRoom = _chunkFLKIHVRXcjs._useRoom; exports.useRoomInfo = _chunkFLKIHVRXcjs.useRoomInfo; exports.useRoomSubscriptionSettings = _chunkFLKIHVRXcjs._useRoomSubscriptionSettings; exports.useSearchComments = _chunkFLKIHVRXcjs._useSearchComments; exports.useSelf = _chunkFLKIHVRXcjs._useSelf; exports.useSendAiMessage = _chunkFLKIHVRXcjs.useSendAiMessage; exports.useStatus = _chunkFLKIHVRXcjs.useStatus; exports.useStorage = _chunkFLKIHVRXcjs._useStorage; exports.useStorageRoot = _chunkFLKIHVRXcjs._useStorageRoot; exports.useSubscribeToThread = _chunkFLKIHVRXcjs.useSubscribeToThread; exports.useSyncStatus = _chunkFLKIHVRXcjs.useSyncStatus; exports.useThreadSubscription = _chunkFLKIHVRXcjs.useThreadSubscription; exports.useThreads = _chunkFLKIHVRXcjs._useThreads; exports.useUndo = _chunkFLKIHVRXcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkFLKIHVRXcjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunkFLKIHVRXcjs.useUnsubscribeFromThread; exports.useUpdateFeedMessage = _chunkFLKIHVRXcjs.useUpdateFeedMessage; exports.useUpdateFeedMetadata = _chunkFLKIHVRXcjs.useUpdateFeedMetadata; exports.useUpdateMyPresence = _chunkFLKIHVRXcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkFLKIHVRXcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkFLKIHVRXcjs.useUpdateRoomSubscriptionSettings; exports.useUrlMetadata = _chunkFLKIHVRXcjs._useUrlMetadata; exports.useUser = _chunkFLKIHVRXcjs._useUser; exports.useUserThreads_experimental = _chunkFLKIHVRXcjs._useUserThreads_experimental;
171
187
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","../src/index.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;ACpFA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADqF7C;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yhKAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","sourcesContent":[null,"/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseSendAiMessageOptions,\n UseThreadsOptions,\n SendAiMessageOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport {\n ClientContext,\n GlobalRoomContext as RoomContext,\n useClient,\n} from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useEditCommentMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n useHistoryVersionData,\n} 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"]}
1
+ {"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","../src/index.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;AC5FA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;AD6F7C;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,ihLAAC","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 useEditCommentMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useThreads,\n useFeeds,\n useFeedMessages,\n useCreateFeed,\n useDeleteFeed,\n useUpdateFeedMetadata,\n useCreateFeedMessage,\n useDeleteFeedMessage,\n useUpdateFeedMessage,\n useSearchComments,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useGroupInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n useAiChatStatus,\n useUrlMetadata,\n} from \"./liveblocks\";\n"]}
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-C3ujtNzt.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, aJ as useAiChat, aL as useAiChatMessages, aM as useAiChatStatus, aK as useAiChats, av as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, aB as useCreateAiChat, V as useCreateComment, W as useCreateThread, aC as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, a0 as useEditCommentMetadata, $ as useEditThreadMetadata, F as useErrorListener, a5 as useEventListener, aG as useGroupInfo, a6 as useHistory, am as useHistoryVersionData, aw as useHistoryVersions, _ as useInboxNotificationThread, ay as useInboxNotifications, a7 as useIsInsideRoom, a8 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a9 as useMarkThreadAsRead, a1 as useMarkThreadAsResolved, a2 as useMarkThreadAsUnresolved, aa as useMutation, ab as useMyPresence, az as useNotificationSettings, an as useOther, ao as useOthers, ap as useOthersConnectionIds, ac as useOthersListener, aq as useOthersMapped, ad as useRedo, ae as useRemoveReaction, af as useRoom, aF as useRoomInfo, ax as useRoomSubscriptionSettings, au as useSearchComments, ar as useSelf, aD as useSendAiMessage, ag as useStatus, as as useStorage, ah as useStorageRoot, a3 as useSubscribeToThread, J as useSyncStatus, ai as useThreadSubscription, at as useThreads, aj as useUndo, aH as useUnreadInboxNotificationsCount, a4 as useUnsubscribeFromThread, ak as useUpdateMyPresence, aA as useUpdateNotificationSettings, al as useUpdateRoomSubscriptionSettings, aN as useUrlMetadata, aI as useUser, aE as useUserThreads_experimental } from './room-C3ujtNzt.cjs';
1
+ import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-BFE9TLUA.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, aR as useAiChat, aT as useAiChatMessages, aU as useAiChatStatus, aS as useAiChats, aD as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, aJ as useCreateAiChat, V as useCreateComment, aw as useCreateFeed, az as useCreateFeedMessage, W as useCreateThread, aK as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, ax as useDeleteFeed, aA as useDeleteFeedMessage, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, a0 as useEditCommentMetadata, $ as useEditThreadMetadata, F as useErrorListener, a5 as useEventListener, av as useFeedMessages, au as useFeeds, aO as useGroupInfo, a6 as useHistory, am as useHistoryVersionData, aE as useHistoryVersions, _ as useInboxNotificationThread, aG as useInboxNotifications, a7 as useIsInsideRoom, a8 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a9 as useMarkThreadAsRead, a1 as useMarkThreadAsResolved, a2 as useMarkThreadAsUnresolved, aa as useMutation, ab as useMyPresence, aH as useNotificationSettings, an as useOther, ao as useOthers, ap as useOthersConnectionIds, ac as useOthersListener, aq as useOthersMapped, ad as useRedo, ae as useRemoveReaction, af as useRoom, aN as useRoomInfo, aF as useRoomSubscriptionSettings, aC as useSearchComments, ar as useSelf, aL as useSendAiMessage, ag as useStatus, as as useStorage, ah as useStorageRoot, a3 as useSubscribeToThread, J as useSyncStatus, ai as useThreadSubscription, at as useThreads, aj as useUndo, aP as useUnreadInboxNotificationsCount, a4 as useUnsubscribeFromThread, aB as useUpdateFeedMessage, ay as useUpdateFeedMetadata, ak as useUpdateMyPresence, aI as useUpdateNotificationSettings, al as useUpdateRoomSubscriptionSettings, aV as useUrlMetadata, aQ as useUser, aM as useUserThreads_experimental } from './room-BFE9TLUA.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-C3ujtNzt.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, aJ as useAiChat, aL as useAiChatMessages, aM as useAiChatStatus, aK as useAiChats, av as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, aB as useCreateAiChat, V as useCreateComment, W as useCreateThread, aC as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, a0 as useEditCommentMetadata, $ as useEditThreadMetadata, F as useErrorListener, a5 as useEventListener, aG as useGroupInfo, a6 as useHistory, am as useHistoryVersionData, aw as useHistoryVersions, _ as useInboxNotificationThread, ay as useInboxNotifications, a7 as useIsInsideRoom, a8 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a9 as useMarkThreadAsRead, a1 as useMarkThreadAsResolved, a2 as useMarkThreadAsUnresolved, aa as useMutation, ab as useMyPresence, az as useNotificationSettings, an as useOther, ao as useOthers, ap as useOthersConnectionIds, ac as useOthersListener, aq as useOthersMapped, ad as useRedo, ae as useRemoveReaction, af as useRoom, aF as useRoomInfo, ax as useRoomSubscriptionSettings, au as useSearchComments, ar as useSelf, aD as useSendAiMessage, ag as useStatus, as as useStorage, ah as useStorageRoot, a3 as useSubscribeToThread, J as useSyncStatus, ai as useThreadSubscription, at as useThreads, aj as useUndo, aH as useUnreadInboxNotificationsCount, a4 as useUnsubscribeFromThread, ak as useUpdateMyPresence, aA as useUpdateNotificationSettings, al as useUpdateRoomSubscriptionSettings, aN as useUrlMetadata, aI as useUser, aE as useUserThreads_experimental } from './room-C3ujtNzt.js';
1
+ import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-BFE9TLUA.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, aR as useAiChat, aT as useAiChatMessages, aU as useAiChatStatus, aS as useAiChats, aD as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, aJ as useCreateAiChat, V as useCreateComment, aw as useCreateFeed, az as useCreateFeedMessage, W as useCreateThread, aK as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, ax as useDeleteFeed, aA as useDeleteFeedMessage, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, a0 as useEditCommentMetadata, $ as useEditThreadMetadata, F as useErrorListener, a5 as useEventListener, av as useFeedMessages, au as useFeeds, aO as useGroupInfo, a6 as useHistory, am as useHistoryVersionData, aE as useHistoryVersions, _ as useInboxNotificationThread, aG as useInboxNotifications, a7 as useIsInsideRoom, a8 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a9 as useMarkThreadAsRead, a1 as useMarkThreadAsResolved, a2 as useMarkThreadAsUnresolved, aa as useMutation, ab as useMyPresence, aH as useNotificationSettings, an as useOther, ao as useOthers, ap as useOthersConnectionIds, ac as useOthersListener, aq as useOthersMapped, ad as useRedo, ae as useRemoveReaction, af as useRoom, aN as useRoomInfo, aF as useRoomSubscriptionSettings, aC as useSearchComments, ar as useSelf, aL as useSendAiMessage, ag as useStatus, as as useStorage, ah as useStorageRoot, a3 as useSubscribeToThread, J as useSyncStatus, ai as useThreadSubscription, at as useThreads, aj as useUndo, aP as useUnreadInboxNotificationsCount, a4 as useUnsubscribeFromThread, aB as useUpdateFeedMessage, ay as useUpdateFeedMetadata, ak as useUpdateMyPresence, aI as useUpdateNotificationSettings, al as useUpdateRoomSubscriptionSettings, aV as useUrlMetadata, aQ as useUser, aM as useUserThreads_experimental } from './room-BFE9TLUA.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,13 +3,13 @@ import {
3
3
  PKG_FORMAT,
4
4
  PKG_NAME,
5
5
  PKG_VERSION
6
- } from "./chunk-VMPATNNT.js";
6
+ } from "./chunk-XMFQTQBJ.js";
7
7
  import {
8
8
  ClientContext,
9
- GlobalRoomContext,
10
9
  LiveblocksProvider,
11
10
  RegisterAiKnowledge,
12
11
  RegisterAiTool,
12
+ RoomContext,
13
13
  _RoomProvider,
14
14
  _useAddReaction,
15
15
  _useAiChat,
@@ -23,6 +23,8 @@ import {
23
23
  _useEditCommentMetadata,
24
24
  _useEditThreadMetadata,
25
25
  _useEventListener,
26
+ _useFeedMessages,
27
+ _useFeeds,
26
28
  _useHistoryVersions,
27
29
  _useInboxNotificationThread,
28
30
  _useIsInsideRoom,
@@ -51,9 +53,13 @@ import {
51
53
  useCanUndo,
52
54
  useClient,
53
55
  useCreateAiChat,
56
+ useCreateFeed,
57
+ useCreateFeedMessage,
54
58
  useDeleteAiChat,
55
59
  useDeleteAllInboxNotifications,
56
60
  useDeleteComment,
61
+ useDeleteFeed,
62
+ useDeleteFeedMessage,
57
63
  useDeleteInboxNotification,
58
64
  useErrorListener,
59
65
  useGroupInfo,
@@ -79,9 +85,11 @@ import {
79
85
  useUndo,
80
86
  useUnreadInboxNotificationsCount,
81
87
  useUnsubscribeFromThread,
88
+ useUpdateFeedMessage,
89
+ useUpdateFeedMetadata,
82
90
  useUpdateNotificationSettings,
83
91
  useUpdateRoomSubscriptionSettings
84
- } from "./chunk-B5F24HAT.js";
92
+ } from "./chunk-JQZ4SSGD.js";
85
93
 
86
94
  // src/index.ts
87
95
  import { detectDupes } from "@liveblocks/core";
@@ -93,7 +101,7 @@ export {
93
101
  LiveblocksProvider,
94
102
  RegisterAiKnowledge,
95
103
  RegisterAiTool,
96
- GlobalRoomContext as RoomContext,
104
+ RoomContext,
97
105
  _RoomProvider as RoomProvider,
98
106
  createLiveblocksContext,
99
107
  createRoomContext,
@@ -111,10 +119,14 @@ export {
111
119
  useClient,
112
120
  useCreateAiChat,
113
121
  _useCreateComment as useCreateComment,
122
+ useCreateFeed,
123
+ useCreateFeedMessage,
114
124
  _useCreateThread as useCreateThread,
115
125
  useDeleteAiChat,
116
126
  useDeleteAllInboxNotifications,
117
127
  useDeleteComment,
128
+ useDeleteFeed,
129
+ useDeleteFeedMessage,
118
130
  useDeleteInboxNotification,
119
131
  _useDeleteThread as useDeleteThread,
120
132
  _useEditComment as useEditComment,
@@ -122,6 +134,8 @@ export {
122
134
  _useEditThreadMetadata as useEditThreadMetadata,
123
135
  useErrorListener,
124
136
  _useEventListener as useEventListener,
137
+ _useFeedMessages as useFeedMessages,
138
+ _useFeeds as useFeeds,
125
139
  useGroupInfo,
126
140
  useHistory,
127
141
  useHistoryVersionData,
@@ -161,6 +175,8 @@ export {
161
175
  useUndo,
162
176
  useUnreadInboxNotificationsCount,
163
177
  useUnsubscribeFromThread,
178
+ useUpdateFeedMessage,
179
+ useUpdateFeedMetadata,
164
180
  _useUpdateMyPresence as useUpdateMyPresence,
165
181
  useUpdateNotificationSettings,
166
182
  useUpdateRoomSubscriptionSettings,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseSendAiMessageOptions,\n UseThreadsOptions,\n SendAiMessageOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport {\n ClientContext,\n GlobalRoomContext as RoomContext,\n useClient,\n} from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useEditCommentMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n useHistoryVersionData,\n} 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":[]}
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 useEditCommentMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useThreads,\n useFeeds,\n useFeedMessages,\n useCreateFeed,\n useDeleteFeed,\n useUpdateFeedMetadata,\n useCreateFeedMessage,\n useDeleteFeedMessage,\n useUpdateFeedMessage,\n useSearchComments,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useGroupInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n useAiChatStatus,\n useUrlMetadata,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAe5B,SAAS,SAAS,oCAAoC;AAZtD,YAAY,UAAU,aAAa,UAAU;","names":[]}
@@ -1,7 +1,8 @@
1
+ import * as react from 'react';
2
+ import { ComponentType, Context, PropsWithChildren, ReactNode } from 'react';
1
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';
2
4
  import * as _liveblocks_core from '@liveblocks/core';
3
- 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, DTM, DCM, TextEditorType, IYjsProvider, MentionData, DP, DS, DE } from '@liveblocks/core';
4
- import { Context, ComponentType, PropsWithChildren, ReactNode } from 'react';
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, Feed, FeedMessage, 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, DTM, DCM, TextEditorType, IYjsProvider, MentionData, DP, DS, DE, DSM, DMD } from '@liveblocks/core';
5
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
7
 
7
8
  /**
@@ -10,7 +11,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
10
11
  *
11
12
  * @private This is a private/advanced API. Do not rely on it.
12
13
  */
13
- declare const ClientContext: Context<OpaqueClient | null>;
14
+ declare const ClientContext: react.Context<OpaqueClient | null>;
14
15
  /**
15
16
  * @private This is an internal API.
16
17
  */
@@ -24,11 +25,8 @@ declare function useClient<U extends BaseUserMeta>(): Client<U>;
24
25
  * room. Exposed for advanced use cases only.
25
26
  *
26
27
  * @private This is a private/advanced API. Do not rely on it.
27
- *
28
- * This context is exported publicly as `import { RoomContext } from "@liveblocks/react"`,
29
- * not `GlobalRoomContext`.
30
28
  */
31
- declare const GlobalRoomContext: Context<OpaqueRoom | null>;
29
+ declare const RoomContext: react.Context<OpaqueRoom | null>;
32
30
 
33
31
  type RegisterAiKnowledgeProps = AiKnowledgeSource & {
34
32
  /**
@@ -208,6 +206,26 @@ type UseInboxNotificationsOptions = {
208
206
  */
209
207
  query?: InboxNotificationsQuery;
210
208
  };
209
+ type UseFeedsOptions = {
210
+ /**
211
+ * Optional timestamp filter. Only feeds created or updated after this timestamp will be returned.
212
+ */
213
+ since?: number;
214
+ /**
215
+ * Optional metadata filter. Only feeds with matching metadata will be returned.
216
+ */
217
+ metadata?: Record<string, string>;
218
+ };
219
+ type UseFeedMessagesOptions = {
220
+ /**
221
+ * Optional cursor for pagination.
222
+ */
223
+ cursor?: string;
224
+ /**
225
+ * Optional limit for the number of messages to fetch.
226
+ */
227
+ limit?: number;
228
+ };
211
229
  type UserAsyncResult<T> = AsyncResult<T, "user">;
212
230
  type UserAsyncSuccess<T> = AsyncSuccess<T, "user">;
213
231
  type RoomInfoAsyncResult = AsyncResult<DRI, "info">;
@@ -270,6 +288,10 @@ type ThreadsAsyncResult<TM extends BaseMetadata, CM extends BaseMetadata> = Page
270
288
  type SearchCommentsAsyncResult = AsyncResult<Array<SearchCommentsResult>, "results">;
271
289
  type InboxNotificationsAsyncSuccess = PagedAsyncSuccess<InboxNotificationData[], "inboxNotifications">;
272
290
  type InboxNotificationsAsyncResult = PagedAsyncResult<InboxNotificationData[], "inboxNotifications">;
291
+ type FeedsAsyncSuccess<FM extends Json = Json> = PagedAsyncSuccess<Feed<FM>[], "feeds">;
292
+ type FeedsAsyncResult<FM extends Json = Json> = PagedAsyncResult<Feed<FM>[], "feeds">;
293
+ type FeedMessagesAsyncSuccess<FMD extends Json = Json> = PagedAsyncSuccess<FeedMessage<FMD>[], "messages">;
294
+ type FeedMessagesAsyncResult<FMD extends Json = Json> = PagedAsyncResult<FeedMessage<FMD>[], "messages">;
273
295
  type UnreadInboxNotificationsCountAsyncSuccess = AsyncSuccess<number, "count">;
274
296
  type UnreadInboxNotificationsCountAsyncResult = AsyncResult<number, "count">;
275
297
  type NotificationSettingsAsyncResult = AsyncResult<NotificationSettings, "settings">;
@@ -505,13 +527,13 @@ type SharedContextBundle<U extends BaseUserMeta> = {
505
527
  /**
506
528
  * Properties that are the same in RoomContext and RoomContext["suspense"].
507
529
  */
508
- type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U extends BaseUserMeta, E extends Json, TM extends BaseMetadata, CM extends BaseMetadata> = {
530
+ type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U extends BaseUserMeta, E extends Json, TM extends BaseMetadata, CM extends BaseMetadata, SM extends Json = Json, MD extends Json = Json> = {
509
531
  /**
510
532
  * You normally don't need to directly interact with the RoomContext, but
511
533
  * it can be necessary if you're building an advanced app where you need to
512
534
  * set up a context bridge between two React renderers.
513
535
  */
514
- RoomContext: Context<Room<P, S, U, E, TM, CM> | null>;
536
+ RoomContext: Context<Room<P, S, U, E, TM, CM, SM, MD> | null>;
515
537
  /**
516
538
  * Makes a Room available in the component hierarchy below.
517
539
  * Joins the room when the component is mounted, and automatically leaves
@@ -524,10 +546,10 @@ type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U exten
524
546
  */
525
547
  useRoom(options?: {
526
548
  allowOutsideRoom: false;
527
- }): Room<P, S, U, E, TM, CM>;
549
+ }): Room<P, S, U, E, TM, CM, SM, MD>;
528
550
  useRoom(options: {
529
551
  allowOutsideRoom: boolean;
530
- }): Room<P, S, U, E, TM, CM> | null;
552
+ }): Room<P, S, U, E, TM, CM, SM, MD> | null;
531
553
  /**
532
554
  * Returns the current connection status for the Room, and triggers
533
555
  * a re-render whenever it changes. Can be used to render a status badge.
@@ -925,7 +947,7 @@ type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U exten
925
947
  */
926
948
  useThreadSubscription(threadId: string): ThreadSubscription;
927
949
  };
928
- type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends BaseUserMeta, E extends Json, TM extends BaseMetadata, CM extends BaseMetadata> = Resolve<RoomContextBundleCommon<P, S, U, E, TM, CM> & SharedContextBundle<U>["classic"] & {
950
+ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends BaseUserMeta, E extends Json, TM extends BaseMetadata, CM extends BaseMetadata, SM extends Json = Json, MD extends Json = Json> = Resolve<RoomContextBundleCommon<P, S, U, E, TM, CM, SM, MD> & SharedContextBundle<U>["classic"] & {
929
951
  /**
930
952
  * Extract arbitrary data from the Liveblocks Storage state, using an
931
953
  * arbitrary selector function.
@@ -987,6 +1009,74 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
987
1009
  * const { threads, error, isLoading } = useThreads();
988
1010
  */
989
1011
  useThreads(options?: UseThreadsOptions<TM>): ThreadsAsyncResult<TM, CM>;
1012
+ /**
1013
+ * Returns feeds for the current room.
1014
+ *
1015
+ * @example
1016
+ * const { feeds, error, isLoading } = useFeeds();
1017
+ */
1018
+ useFeeds(options?: UseFeedsOptions): FeedsAsyncResult<SM>;
1019
+ /**
1020
+ * Returns messages for a specific feed in the current room.
1021
+ *
1022
+ * @example
1023
+ * const { messages, error, isLoading } = useFeedMessages("feed-id");
1024
+ */
1025
+ useFeedMessages(feedId: string, options?: UseFeedMessagesOptions): FeedMessagesAsyncResult<MD>;
1026
+ /**
1027
+ * Returns a function that creates a new feed in the current room.
1028
+ *
1029
+ * @example
1030
+ * const createFeed = useCreateFeed();
1031
+ * createFeed("feed-id", { metadata: { name: "My Feed" } });
1032
+ */
1033
+ useCreateFeed(): (feedId: string, options?: {
1034
+ metadata?: JsonObject;
1035
+ timestamp?: number;
1036
+ }) => void;
1037
+ /**
1038
+ * Returns a function that deletes a feed from the current room.
1039
+ *
1040
+ * @example
1041
+ * const deleteFeed = useDeleteFeed();
1042
+ * deleteFeed("feed-id");
1043
+ */
1044
+ useDeleteFeed(): (feedId: string) => void;
1045
+ /**
1046
+ * Returns a function that updates a feed's metadata in the current room.
1047
+ *
1048
+ * @example
1049
+ * const updateFeedMetadata = useUpdateFeedMetadata();
1050
+ * updateFeedMetadata("feed-id", { name: "Updated Name" });
1051
+ */
1052
+ useUpdateFeedMetadata(): (feedId: string, metadata: JsonObject) => void;
1053
+ /**
1054
+ * Returns a function that adds a message to a feed in the current room.
1055
+ *
1056
+ * @example
1057
+ * const createFeedMessage = useCreateFeedMessage();
1058
+ * createFeedMessage("feed-id", { text: "Hello" });
1059
+ */
1060
+ useCreateFeedMessage(): (feedId: string, data: JsonObject, options?: {
1061
+ id?: string;
1062
+ timestamp?: number;
1063
+ }) => void;
1064
+ /**
1065
+ * Returns a function that deletes a message from a feed in the current room.
1066
+ *
1067
+ * @example
1068
+ * const deleteFeedMessage = useDeleteFeedMessage();
1069
+ * deleteFeedMessage("feed-id", "message-id");
1070
+ */
1071
+ useDeleteFeedMessage(): (feedId: string, messageId: string) => void;
1072
+ /**
1073
+ * Returns a function that updates a feed message in the current room.
1074
+ *
1075
+ * @example
1076
+ * const updateFeedMessage = useUpdateFeedMessage();
1077
+ * updateFeedMessage("feed-id", "message-id", { text: "Updated" });
1078
+ */
1079
+ useUpdateFeedMessage(): (feedId: string, messageId: string, data: JsonObject) => void;
990
1080
  /**
991
1081
  * 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.
992
1082
  *
@@ -1026,7 +1116,7 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
1026
1116
  * const { data, error, isLoading } = useHistoryVersionData(version.id);
1027
1117
  */
1028
1118
  useHistoryVersionData(id: string): HistoryVersionDataAsyncResult;
1029
- suspense: Resolve<RoomContextBundleCommon<P, S, U, E, TM, CM> & SharedContextBundle<U>["suspense"] & {
1119
+ suspense: Resolve<RoomContextBundleCommon<P, S, U, E, TM, CM, SM, MD> & SharedContextBundle<U>["suspense"] & {
1030
1120
  /**
1031
1121
  * Extract arbitrary data from the Liveblocks Storage state, using an
1032
1122
  * arbitrary selector function.
@@ -1082,6 +1172,32 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
1082
1172
  * const { threads } = useThreads();
1083
1173
  */
1084
1174
  useThreads(options?: UseThreadsOptions<TM>): ThreadsAsyncSuccess<TM, CM>;
1175
+ /**
1176
+ * Returns feeds for the current room.
1177
+ *
1178
+ * @example
1179
+ * const { feeds } = useFeeds();
1180
+ */
1181
+ useFeeds(options?: UseFeedsOptions): FeedsAsyncSuccess<SM>;
1182
+ /**
1183
+ * Returns messages for a specific feed in the current room.
1184
+ *
1185
+ * @example
1186
+ * const { messages } = useFeedMessages("feed-id");
1187
+ */
1188
+ useFeedMessages(feedId: string, options?: UseFeedMessagesOptions): FeedMessagesAsyncSuccess<MD>;
1189
+ useCreateFeed(): (feedId: string, options?: {
1190
+ metadata?: JsonObject;
1191
+ timestamp?: number;
1192
+ }) => void;
1193
+ useDeleteFeed(): (feedId: string) => void;
1194
+ useUpdateFeedMetadata(): (feedId: string, metadata: JsonObject) => void;
1195
+ useCreateFeedMessage(): (feedId: string, data: JsonObject, options?: {
1196
+ id?: string;
1197
+ timestamp?: number;
1198
+ }) => void;
1199
+ useDeleteFeedMessage(): (feedId: string, messageId: string) => void;
1200
+ useUpdateFeedMessage(): (feedId: string, messageId: string, data: JsonObject) => void;
1085
1201
  /**
1086
1202
  * (Private beta) Returns a history of versions of the current room.
1087
1203
  *
@@ -1789,6 +1905,8 @@ declare class UmbrellaStore<TM extends BaseMetadata, CM extends BaseMetadata> {
1789
1905
  readonly messagesByChatId: DefaultMap<string, DefaultMap<MessageId | null, LoadableResource<AiChatMessagesAsyncResult>>>;
1790
1906
  readonly aiChatById: DefaultMap<string, LoadableResource<AiChatAsyncResult>>;
1791
1907
  readonly urlMetadataByUrl: DefaultMap<string, LoadableResource<UrlMetadataAsyncResult>>;
1908
+ readonly loadingFeeds: DefaultMap<string, LoadableResource<FeedsAsyncResult>>;
1909
+ readonly loadingFeedMessages: DefaultMap<string, LoadableResource<FeedMessagesAsyncResult>>;
1792
1910
  };
1793
1911
  constructor(client: OpaqueClient);
1794
1912
  /**
@@ -1853,6 +1971,22 @@ declare class UmbrellaStore<TM extends BaseMetadata, CM extends BaseMetadata> {
1853
1971
  */
1854
1972
  updateRoomSubscriptionSettings(roomId: string, optimisticId: string, settings: Readonly<RoomSubscriptionSettings$1>): void;
1855
1973
  fetchNotificationsDeltaUpdate(signal: AbortSignal): Promise<void>;
1974
+ /**
1975
+ * Upserts feeds in the cache (for list/added/updated operations).
1976
+ */
1977
+ upsertFeeds(roomId: RoomId, feeds: readonly Feed[]): void;
1978
+ /**
1979
+ * Removes feeds from the cache (for deleted operations).
1980
+ */
1981
+ deleteFeeds(roomId: RoomId, feeds: readonly Feed[]): void;
1982
+ /**
1983
+ * Upserts feed messages in the cache (for list/added/updated operations).
1984
+ */
1985
+ upsertFeedMessages(_roomId: RoomId, feedId: string, messages: readonly FeedMessage[]): void;
1986
+ /**
1987
+ * Removes feed messages from the cache (for deleted operations).
1988
+ */
1989
+ deleteFeedMessages(_roomId: RoomId, feedId: string, messages: readonly FeedMessage[]): void;
1856
1990
  fetchUnreadNotificationsCount(queryKey: InboxNotificationsQueryKey, signal: AbortSignal): Promise<void>;
1857
1991
  fetchRoomThreadsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
1858
1992
  fetchUserThreadsDeltaUpdate(signal: AbortSignal): Promise<void>;
@@ -2320,6 +2454,18 @@ declare function useCanRedo(): boolean;
2320
2454
  * // [2, 4, 7]
2321
2455
  */
2322
2456
  declare function useOthersConnectionIds(): readonly number[];
2457
+ declare function useCreateFeed(): (feedId: string, options?: {
2458
+ metadata?: JsonObject;
2459
+ timestamp?: number;
2460
+ }) => void;
2461
+ declare function useDeleteFeed(): (feedId: string) => void;
2462
+ declare function useUpdateFeedMetadata(): (feedId: string, metadata: JsonObject) => void;
2463
+ declare function useCreateFeedMessage(): (feedId: string, data: JsonObject, options?: {
2464
+ id?: string;
2465
+ timestamp?: number;
2466
+ }) => void;
2467
+ declare function useDeleteFeedMessage(): (feedId: string, messageId: string) => void;
2468
+ declare function useUpdateFeedMessage(): (feedId: string, messageId: string, data: JsonObject) => void;
2323
2469
  /**
2324
2470
  * @private
2325
2471
  */
@@ -2363,10 +2509,6 @@ declare function useRemoveReaction(): ({ threadId, commentId, emoji }: CommentRe
2363
2509
  * @private
2364
2510
  */
2365
2511
  declare function useRemoveRoomCommentReaction(roomId: string): ({ threadId, commentId, emoji }: CommentReactionOptions) => void;
2366
- /**
2367
- * @private
2368
- */
2369
- declare function useMarkRoomThreadAsRead(roomId: string): (threadId: string) => void;
2370
2512
  /**
2371
2513
  * Returns a function that marks a thread as read.
2372
2514
  *
@@ -2375,6 +2517,10 @@ declare function useMarkRoomThreadAsRead(roomId: string): (threadId: string) =>
2375
2517
  * markThreadAsRead("th_xxx");
2376
2518
  */
2377
2519
  declare function useMarkThreadAsRead(): (threadId: string) => void;
2520
+ /**
2521
+ * @private
2522
+ */
2523
+ declare function useMarkRoomThreadAsRead(roomId: string): (threadId: string) => void;
2378
2524
  /**
2379
2525
  * Returns a function that marks a thread as resolved.
2380
2526
  *
@@ -2489,8 +2635,8 @@ declare function useRoomPermissions(roomId: string): Set<_liveblocks_core.Permis
2489
2635
  * that any RoomProvider created in this way does not need to be nested in
2490
2636
  * LiveblocksProvider, as it already has access to the client.
2491
2637
  */
2492
- declare function createRoomContext<P extends JsonObject = DP, S extends LsonObject = DS, U extends BaseUserMeta = DU, E extends Json = DE, TM extends BaseMetadata$1 = DTM, CM extends BaseMetadata$1 = DCM>(client: OpaqueClient): RoomContextBundle<P, S, U, E, TM, CM>;
2493
- type TypedBundle = RoomContextBundle<DP, DS, DU, DE, DTM, DCM>;
2638
+ declare function createRoomContext<P extends JsonObject = DP, S extends LsonObject = DS, U extends BaseUserMeta = DU, E extends Json = DE, TM extends BaseMetadata$1 = DTM, CM extends BaseMetadata$1 = DCM, SM extends Json = Json, MD extends Json = Json>(client: OpaqueClient): RoomContextBundle<P, S, U, E, TM, CM, SM, MD>;
2639
+ type TypedBundle = RoomContextBundle<DP, DS, DU, DE, DTM, DCM, DSM, DMD>;
2494
2640
  /**
2495
2641
  * Makes a Room available in the component hierarchy below.
2496
2642
  * Joins the room when the component is mounted, and automatically leaves
@@ -2721,6 +2867,22 @@ declare const _useOthersMappedSuspense: TypedBundle["suspense"]["useOthersMapped
2721
2867
  * const { threads, error, isLoading } = useThreads();
2722
2868
  */
2723
2869
  declare const _useThreads: TypedBundle["useThreads"];
2870
+ /**
2871
+ * Returns feeds for the current room.
2872
+ *
2873
+ * @example
2874
+ * const { feeds, error, isLoading } = useFeeds();
2875
+ */
2876
+ declare const _useFeeds: TypedBundle["useFeeds"];
2877
+ /**
2878
+ * Returns messages for a specific feed in the current room.
2879
+ *
2880
+ * @example
2881
+ * const { messages, error, isLoading } = useFeedMessages("feed-id");
2882
+ */
2883
+ declare const _useFeedMessages: TypedBundle["useFeedMessages"];
2884
+ declare const _useFeedsSuspense: TypedBundle["suspense"]["useFeeds"];
2885
+ declare const _useFeedMessagesSuspense: TypedBundle["suspense"]["useFeedMessages"];
2724
2886
  /**
2725
2887
  * 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.
2726
2888
  *
@@ -2992,4 +3154,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
2992
3154
  */
2993
3155
  declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
2994
3156
 
2995
- 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, useGroupInfoSuspense as a$, _useEditCommentMetadata as a0, useMarkThreadAsResolved as a1, useMarkThreadAsUnresolved as a2, useSubscribeToThread as a3, useUnsubscribeFromThread as a4, _useEventListener as a5, useHistory as a6, _useIsInsideRoom as a7, useLostConnectionListener as a8, useMarkThreadAsRead as a9, useUpdateNotificationSettings as aA, useCreateAiChat as aB, useDeleteAiChat as aC, useSendAiMessage as aD, _useUserThreads_experimental as aE, useRoomInfo as aF, useGroupInfo as aG, useUnreadInboxNotificationsCount as aH, _useUser as aI, _useAiChat as aJ, _useAiChats as aK, _useAiChatMessages as aL, useAiChatStatus as aM, _useUrlMetadata as aN, _useOtherSuspense as aO, _useOthersSuspense as aP, useOthersConnectionIdsSuspense as aQ, _useOthersMappedSuspense as aR, _useSelfSuspense as aS, _useStorageSuspense as aT, _useThreadsSuspense as aU, useAttachmentUrlSuspense as aV, _useHistoryVersionsSuspense as aW, _useRoomSubscriptionSettingsSuspense as aX, useInboxNotificationsSuspense as aY, useNotificationSettingsSuspense as aZ, useRoomInfoSuspense as a_, _useMutation as aa, _useMyPresence as ab, _useOthersListener as ac, useRedo as ad, useRemoveReaction as ae, _useRoom as af, useStatus as ag, _useStorageRoot as ah, useThreadSubscription as ai, useUndo as aj, _useUpdateMyPresence as ak, useUpdateRoomSubscriptionSettings as al, useHistoryVersionData as am, _useOther as an, _useOthers as ao, useOthersConnectionIds as ap, _useOthersMapped as aq, _useSelf as ar, _useStorage as as, _useThreads as at, _useSearchComments as au, useAttachmentUrl as av, _useHistoryVersions as aw, _useRoomSubscriptionSettings as ax, useInboxNotifications as ay, useNotificationSettings as az, useCreateRoomComment as b, useUnreadInboxNotificationsCountSuspense as b0, _useUserSuspense as b1, _useUserThreadsSuspense_experimental as b2, _useAiChatsSuspense as b3, _useAiChatMessagesSuspense as b4, _useAiChatSuspense as b5, _useUrlMetadataSuspense as b6, 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, GlobalRoomContext as y, useClient as z };
3157
+ 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, _useStorageSuspense as a$, _useEditCommentMetadata as a0, useMarkThreadAsResolved as a1, useMarkThreadAsUnresolved as a2, useSubscribeToThread as a3, useUnsubscribeFromThread as a4, _useEventListener as a5, useHistory as a6, _useIsInsideRoom as a7, useLostConnectionListener as a8, useMarkThreadAsRead as a9, useDeleteFeedMessage as aA, useUpdateFeedMessage as aB, _useSearchComments as aC, useAttachmentUrl as aD, _useHistoryVersions as aE, _useRoomSubscriptionSettings as aF, useInboxNotifications as aG, useNotificationSettings as aH, useUpdateNotificationSettings as aI, useCreateAiChat as aJ, useDeleteAiChat as aK, useSendAiMessage as aL, _useUserThreads_experimental as aM, useRoomInfo as aN, useGroupInfo as aO, useUnreadInboxNotificationsCount as aP, _useUser as aQ, _useAiChat as aR, _useAiChats as aS, _useAiChatMessages as aT, useAiChatStatus as aU, _useUrlMetadata as aV, _useOtherSuspense as aW, _useOthersSuspense as aX, useOthersConnectionIdsSuspense as aY, _useOthersMappedSuspense as aZ, _useSelfSuspense as a_, _useMutation as aa, _useMyPresence as ab, _useOthersListener as ac, useRedo as ad, useRemoveReaction as ae, _useRoom as af, useStatus as ag, _useStorageRoot as ah, useThreadSubscription as ai, useUndo as aj, _useUpdateMyPresence as ak, useUpdateRoomSubscriptionSettings as al, useHistoryVersionData as am, _useOther as an, _useOthers as ao, useOthersConnectionIds as ap, _useOthersMapped as aq, _useSelf as ar, _useStorage as as, _useThreads as at, _useFeeds as au, _useFeedMessages as av, useCreateFeed as aw, useDeleteFeed as ax, useUpdateFeedMetadata as ay, useCreateFeedMessage as az, useCreateRoomComment as b, _useThreadsSuspense as b0, useAttachmentUrlSuspense as b1, _useHistoryVersionsSuspense as b2, _useRoomSubscriptionSettingsSuspense as b3, _useFeedsSuspense as b4, _useFeedMessagesSuspense as b5, useInboxNotificationsSuspense as b6, useNotificationSettingsSuspense as b7, useRoomInfoSuspense as b8, useGroupInfoSuspense as b9, useUnreadInboxNotificationsCountSuspense as ba, _useUserSuspense as bb, _useUserThreadsSuspense_experimental as bc, _useAiChatsSuspense as bd, _useAiChatMessagesSuspense as be, _useAiChatSuspense as bf, _useUrlMetadataSuspense as bg, 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 };