@liveblocks/react 3.7.1-tiptap3 → 3.8.0-next1

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
  // src/version.ts
2
2
  var PKG_NAME = "@liveblocks/react";
3
- var PKG_VERSION = "3.7.1-tiptap3";
3
+ var PKG_VERSION = "3.8.0-next1";
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-6ZXBTPII.js.map
23
+ //# sourceMappingURL=chunk-TMNECRRU.js.map
@@ -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.7.1-tiptap3";
3
+ var PKG_VERSION = "3.8.0-next1";
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-BKAKZTP4.cjs.map
23
+ //# sourceMappingURL=chunk-X3KI55GF.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/chunk-BKAKZTP4.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-BKAKZTP4.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-X3KI55GF.cjs","../src/version.ts","../src/ClientSideSuspense.tsx"],"names":[],"mappings":"AAAA;ACGO,IAAM,SAAA,EAAW,mBAAA;AACjB,IAAM,YAAA,EAAiD,aAAA;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-X3KI55GF.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 _chunkBKAKZTP4cjs = require('./chunk-BKAKZTP4.cjs');
6
+ var _chunkX3KI55GFcjs = require('./chunk-X3KI55GF.cjs');
7
7
 
8
8
 
9
9
 
@@ -77,12 +77,14 @@ var _chunkBKAKZTP4cjs = require('./chunk-BKAKZTP4.cjs');
77
77
 
78
78
 
79
79
 
80
- var _chunkW2H56LB3cjs = require('./chunk-W2H56LB3.cjs');
80
+
81
+ var _chunk45BFK66Kcjs = require('./chunk-45BFK66K.cjs');
81
82
 
82
83
  // src/index.ts
83
84
  var _core = require('@liveblocks/core');
84
85
  var _client = require('@liveblocks/client');
85
- _core.detectDupes.call(void 0, _chunkBKAKZTP4cjs.PKG_NAME, _chunkBKAKZTP4cjs.PKG_VERSION, _chunkBKAKZTP4cjs.PKG_FORMAT);
86
+ _core.detectDupes.call(void 0, _chunkX3KI55GFcjs.PKG_NAME, _chunkX3KI55GFcjs.PKG_VERSION, _chunkX3KI55GFcjs.PKG_FORMAT);
87
+
86
88
 
87
89
 
88
90
 
@@ -159,5 +161,5 @@ _core.detectDupes.call(void 0, _chunkBKAKZTP4cjs.PKG_NAME, _chunkBKAKZTP4cjs.PKG
159
161
 
160
162
 
161
163
 
162
- exports.ClientContext = _chunkW2H56LB3cjs.ClientContext; exports.ClientSideSuspense = _chunkBKAKZTP4cjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkW2H56LB3cjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkW2H56LB3cjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkW2H56LB3cjs.RegisterAiTool; exports.RoomContext = _chunkW2H56LB3cjs.RoomContext; exports.RoomProvider = _chunkW2H56LB3cjs._RoomProvider; exports.createLiveblocksContext = _chunkW2H56LB3cjs.createLiveblocksContext; exports.createRoomContext = _chunkW2H56LB3cjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkW2H56LB3cjs._useAddReaction; exports.useAiChat = _chunkW2H56LB3cjs._useAiChat; exports.useAiChatMessages = _chunkW2H56LB3cjs._useAiChatMessages; exports.useAiChats = _chunkW2H56LB3cjs._useAiChats; exports.useAttachmentUrl = _chunkW2H56LB3cjs.useAttachmentUrl; exports.useBroadcastEvent = _chunkW2H56LB3cjs._useBroadcastEvent; exports.useCanRedo = _chunkW2H56LB3cjs.useCanRedo; exports.useCanUndo = _chunkW2H56LB3cjs.useCanUndo; exports.useClient = _chunkW2H56LB3cjs.useClient; exports.useCreateAiChat = _chunkW2H56LB3cjs.useCreateAiChat; exports.useCreateComment = _chunkW2H56LB3cjs.useCreateComment; exports.useCreateThread = _chunkW2H56LB3cjs._useCreateThread; exports.useDeleteAiChat = _chunkW2H56LB3cjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkW2H56LB3cjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkW2H56LB3cjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkW2H56LB3cjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkW2H56LB3cjs._useDeleteThread; exports.useEditComment = _chunkW2H56LB3cjs.useEditComment; exports.useEditThreadMetadata = _chunkW2H56LB3cjs._useEditThreadMetadata; exports.useErrorListener = _chunkW2H56LB3cjs.useErrorListener; exports.useEventListener = _chunkW2H56LB3cjs._useEventListener; exports.useGroupInfo = _chunkW2H56LB3cjs.useGroupInfo; exports.useHistory = _chunkW2H56LB3cjs.useHistory; exports.useHistoryVersionData = _chunkW2H56LB3cjs.useHistoryVersionData; exports.useHistoryVersions = _chunkW2H56LB3cjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkW2H56LB3cjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkW2H56LB3cjs.useInboxNotifications; exports.useIsInsideRoom = _chunkW2H56LB3cjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkW2H56LB3cjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkW2H56LB3cjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkW2H56LB3cjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkW2H56LB3cjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkW2H56LB3cjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkW2H56LB3cjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkW2H56LB3cjs._useMutation; exports.useMyPresence = _chunkW2H56LB3cjs._useMyPresence; exports.useNotificationSettings = _chunkW2H56LB3cjs.useNotificationSettings; exports.useOther = _chunkW2H56LB3cjs._useOther; exports.useOthers = _chunkW2H56LB3cjs._useOthers; exports.useOthersConnectionIds = _chunkW2H56LB3cjs.useOthersConnectionIds; exports.useOthersListener = _chunkW2H56LB3cjs._useOthersListener; exports.useOthersMapped = _chunkW2H56LB3cjs._useOthersMapped; exports.useRedo = _chunkW2H56LB3cjs.useRedo; exports.useRemoveReaction = _chunkW2H56LB3cjs.useRemoveReaction; exports.useRoom = _chunkW2H56LB3cjs._useRoom; exports.useRoomInfo = _chunkW2H56LB3cjs.useRoomInfo; exports.useRoomSubscriptionSettings = _chunkW2H56LB3cjs._useRoomSubscriptionSettings; exports.useSelf = _chunkW2H56LB3cjs._useSelf; exports.useSendAiMessage = _chunkW2H56LB3cjs.useSendAiMessage; exports.useStatus = _chunkW2H56LB3cjs.useStatus; exports.useStorage = _chunkW2H56LB3cjs._useStorage; exports.useStorageRoot = _chunkW2H56LB3cjs._useStorageRoot; exports.useSubscribeToThread = _chunkW2H56LB3cjs.useSubscribeToThread; exports.useSyncStatus = _chunkW2H56LB3cjs.useSyncStatus; exports.useThreadSubscription = _chunkW2H56LB3cjs.useThreadSubscription; exports.useThreads = _chunkW2H56LB3cjs._useThreads; exports.useUndo = _chunkW2H56LB3cjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkW2H56LB3cjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunkW2H56LB3cjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkW2H56LB3cjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkW2H56LB3cjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkW2H56LB3cjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunkW2H56LB3cjs._useUser; exports.useUserThreads_experimental = _chunkW2H56LB3cjs._useUserThreads_experimental;
164
+ exports.ClientContext = _chunk45BFK66Kcjs.ClientContext; exports.ClientSideSuspense = _chunkX3KI55GFcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunk45BFK66Kcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunk45BFK66Kcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunk45BFK66Kcjs.RegisterAiTool; exports.RoomContext = _chunk45BFK66Kcjs.RoomContext; exports.RoomProvider = _chunk45BFK66Kcjs._RoomProvider; exports.createLiveblocksContext = _chunk45BFK66Kcjs.createLiveblocksContext; exports.createRoomContext = _chunk45BFK66Kcjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunk45BFK66Kcjs._useAddReaction; exports.useAiChat = _chunk45BFK66Kcjs._useAiChat; exports.useAiChatMessages = _chunk45BFK66Kcjs._useAiChatMessages; exports.useAiChatStatus = _chunk45BFK66Kcjs.useAiChatStatus; exports.useAiChats = _chunk45BFK66Kcjs._useAiChats; exports.useAttachmentUrl = _chunk45BFK66Kcjs.useAttachmentUrl; exports.useBroadcastEvent = _chunk45BFK66Kcjs._useBroadcastEvent; exports.useCanRedo = _chunk45BFK66Kcjs.useCanRedo; exports.useCanUndo = _chunk45BFK66Kcjs.useCanUndo; exports.useClient = _chunk45BFK66Kcjs.useClient; exports.useCreateAiChat = _chunk45BFK66Kcjs.useCreateAiChat; exports.useCreateComment = _chunk45BFK66Kcjs.useCreateComment; exports.useCreateThread = _chunk45BFK66Kcjs._useCreateThread; exports.useDeleteAiChat = _chunk45BFK66Kcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunk45BFK66Kcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunk45BFK66Kcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunk45BFK66Kcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunk45BFK66Kcjs._useDeleteThread; exports.useEditComment = _chunk45BFK66Kcjs.useEditComment; exports.useEditThreadMetadata = _chunk45BFK66Kcjs._useEditThreadMetadata; exports.useErrorListener = _chunk45BFK66Kcjs.useErrorListener; exports.useEventListener = _chunk45BFK66Kcjs._useEventListener; exports.useGroupInfo = _chunk45BFK66Kcjs.useGroupInfo; exports.useHistory = _chunk45BFK66Kcjs.useHistory; exports.useHistoryVersionData = _chunk45BFK66Kcjs.useHistoryVersionData; exports.useHistoryVersions = _chunk45BFK66Kcjs._useHistoryVersions; exports.useInboxNotificationThread = _chunk45BFK66Kcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunk45BFK66Kcjs.useInboxNotifications; exports.useIsInsideRoom = _chunk45BFK66Kcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunk45BFK66Kcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunk45BFK66Kcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunk45BFK66Kcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunk45BFK66Kcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunk45BFK66Kcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunk45BFK66Kcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunk45BFK66Kcjs._useMutation; exports.useMyPresence = _chunk45BFK66Kcjs._useMyPresence; exports.useNotificationSettings = _chunk45BFK66Kcjs.useNotificationSettings; exports.useOther = _chunk45BFK66Kcjs._useOther; exports.useOthers = _chunk45BFK66Kcjs._useOthers; exports.useOthersConnectionIds = _chunk45BFK66Kcjs.useOthersConnectionIds; exports.useOthersListener = _chunk45BFK66Kcjs._useOthersListener; exports.useOthersMapped = _chunk45BFK66Kcjs._useOthersMapped; exports.useRedo = _chunk45BFK66Kcjs.useRedo; exports.useRemoveReaction = _chunk45BFK66Kcjs.useRemoveReaction; exports.useRoom = _chunk45BFK66Kcjs._useRoom; exports.useRoomInfo = _chunk45BFK66Kcjs.useRoomInfo; exports.useRoomSubscriptionSettings = _chunk45BFK66Kcjs._useRoomSubscriptionSettings; exports.useSelf = _chunk45BFK66Kcjs._useSelf; exports.useSendAiMessage = _chunk45BFK66Kcjs.useSendAiMessage; exports.useStatus = _chunk45BFK66Kcjs.useStatus; exports.useStorage = _chunk45BFK66Kcjs._useStorage; exports.useStorageRoot = _chunk45BFK66Kcjs._useStorageRoot; exports.useSubscribeToThread = _chunk45BFK66Kcjs.useSubscribeToThread; exports.useSyncStatus = _chunk45BFK66Kcjs.useSyncStatus; exports.useThreadSubscription = _chunk45BFK66Kcjs.useThreadSubscription; exports.useThreads = _chunk45BFK66Kcjs._useThreads; exports.useUndo = _chunk45BFK66Kcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunk45BFK66Kcjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunk45BFK66Kcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunk45BFK66Kcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunk45BFK66Kcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunk45BFK66Kcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunk45BFK66Kcjs._useUser; exports.useUserThreads_experimental = _chunk45BFK66Kcjs._useUserThreads_experimental;
163
165
  //# 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;AACF,wDAA6B;AAC7B;AACA;AChFA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADiF7C;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,0wJAAC","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 { RegisterAiKnowledgeProps, RegisterAiToolProps } from \"./types/ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n 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} 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;AACF,wDAA6B;AAC7B;AACA;ACjFA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADkF7C;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,u0JAAC","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 { RegisterAiKnowledgeProps, RegisterAiToolProps } from \"./types/ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n 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} from \"./liveblocks\";\n\nexport type { AiChatStatus } from \"./types/ai\";\n"]}
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-mUz5TTmo.cjs';
2
- export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, K as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, A as createLiveblocksContext, J as createRoomContext, N as useAddReaction, aG as useAiChat, aI as useAiChatMessages, aH as useAiChats, as as useAttachmentUrl, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, ay as useCreateAiChat, T as useCreateComment, V as useCreateThread, az as useDeleteAiChat, B as useDeleteAllInboxNotifications, W as useDeleteComment, D as useDeleteInboxNotification, X as useDeleteThread, Y as useEditComment, Z as useEditThreadMetadata, E as useErrorListener, a3 as useEventListener, aD as useGroupInfo, a4 as useHistory, ak as useHistoryVersionData, at as useHistoryVersions, _ as useInboxNotificationThread, av as useInboxNotifications, a5 as useIsInsideRoom, a6 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, H as useMarkInboxNotificationAsRead, a7 as useMarkThreadAsRead, $ as useMarkThreadAsResolved, a0 as useMarkThreadAsUnresolved, a8 as useMutation, a9 as useMyPresence, aw as useNotificationSettings, al as useOther, am as useOthers, an as useOthersConnectionIds, aa as useOthersListener, ao as useOthersMapped, ab as useRedo, ac as useRemoveReaction, ad as useRoom, aC as useRoomInfo, au as useRoomSubscriptionSettings, ap as useSelf, aA as useSendAiMessage, ae as useStatus, aq as useStorage, af as useStorageRoot, a1 as useSubscribeToThread, I as useSyncStatus, ag as useThreadSubscription, ar as useThreads, ah as useUndo, aE as useUnreadInboxNotificationsCount, a2 as useUnsubscribeFromThread, ai as useUpdateMyPresence, ax as useUpdateNotificationSettings, aj as useUpdateRoomSubscriptionSettings, aF as useUser, aB as useUserThreads_experimental } from './room-mUz5TTmo.cjs';
1
+ import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-DSJuooXd.cjs';
2
+ export { aK as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, K as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, A as createLiveblocksContext, J as createRoomContext, N as useAddReaction, aG as useAiChat, aI as useAiChatMessages, aJ as useAiChatStatus, aH as useAiChats, as as useAttachmentUrl, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, ay as useCreateAiChat, T as useCreateComment, V as useCreateThread, az as useDeleteAiChat, B as useDeleteAllInboxNotifications, W as useDeleteComment, D as useDeleteInboxNotification, X as useDeleteThread, Y as useEditComment, Z as useEditThreadMetadata, E as useErrorListener, a3 as useEventListener, aD as useGroupInfo, a4 as useHistory, ak as useHistoryVersionData, at as useHistoryVersions, _ as useInboxNotificationThread, av as useInboxNotifications, a5 as useIsInsideRoom, a6 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, H as useMarkInboxNotificationAsRead, a7 as useMarkThreadAsRead, $ as useMarkThreadAsResolved, a0 as useMarkThreadAsUnresolved, a8 as useMutation, a9 as useMyPresence, aw as useNotificationSettings, al as useOther, am as useOthers, an as useOthersConnectionIds, aa as useOthersListener, ao as useOthersMapped, ab as useRedo, ac as useRemoveReaction, ad as useRoom, aC as useRoomInfo, au as useRoomSubscriptionSettings, ap as useSelf, aA as useSendAiMessage, ae as useStatus, aq as useStorage, af as useStorageRoot, a1 as useSubscribeToThread, I as useSyncStatus, ag as useThreadSubscription, ar as useThreads, ah as useUndo, aE as useUnreadInboxNotificationsCount, a2 as useUnsubscribeFromThread, ai as useUpdateMyPresence, ax as useUpdateNotificationSettings, aj as useUpdateRoomSubscriptionSettings, aF as useUser, aB as useUserThreads_experimental } from './room-DSJuooXd.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-mUz5TTmo.js';
2
- export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, K as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, A as createLiveblocksContext, J as createRoomContext, N as useAddReaction, aG as useAiChat, aI as useAiChatMessages, aH as useAiChats, as as useAttachmentUrl, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, ay as useCreateAiChat, T as useCreateComment, V as useCreateThread, az as useDeleteAiChat, B as useDeleteAllInboxNotifications, W as useDeleteComment, D as useDeleteInboxNotification, X as useDeleteThread, Y as useEditComment, Z as useEditThreadMetadata, E as useErrorListener, a3 as useEventListener, aD as useGroupInfo, a4 as useHistory, ak as useHistoryVersionData, at as useHistoryVersions, _ as useInboxNotificationThread, av as useInboxNotifications, a5 as useIsInsideRoom, a6 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, H as useMarkInboxNotificationAsRead, a7 as useMarkThreadAsRead, $ as useMarkThreadAsResolved, a0 as useMarkThreadAsUnresolved, a8 as useMutation, a9 as useMyPresence, aw as useNotificationSettings, al as useOther, am as useOthers, an as useOthersConnectionIds, aa as useOthersListener, ao as useOthersMapped, ab as useRedo, ac as useRemoveReaction, ad as useRoom, aC as useRoomInfo, au as useRoomSubscriptionSettings, ap as useSelf, aA as useSendAiMessage, ae as useStatus, aq as useStorage, af as useStorageRoot, a1 as useSubscribeToThread, I as useSyncStatus, ag as useThreadSubscription, ar as useThreads, ah as useUndo, aE as useUnreadInboxNotificationsCount, a2 as useUnsubscribeFromThread, ai as useUpdateMyPresence, ax as useUpdateNotificationSettings, aj as useUpdateRoomSubscriptionSettings, aF as useUser, aB as useUserThreads_experimental } from './room-mUz5TTmo.js';
1
+ import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-DSJuooXd.js';
2
+ export { aK as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, K as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, A as createLiveblocksContext, J as createRoomContext, N as useAddReaction, aG as useAiChat, aI as useAiChatMessages, aJ as useAiChatStatus, aH as useAiChats, as as useAttachmentUrl, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, ay as useCreateAiChat, T as useCreateComment, V as useCreateThread, az as useDeleteAiChat, B as useDeleteAllInboxNotifications, W as useDeleteComment, D as useDeleteInboxNotification, X as useDeleteThread, Y as useEditComment, Z as useEditThreadMetadata, E as useErrorListener, a3 as useEventListener, aD as useGroupInfo, a4 as useHistory, ak as useHistoryVersionData, at as useHistoryVersions, _ as useInboxNotificationThread, av as useInboxNotifications, a5 as useIsInsideRoom, a6 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, H as useMarkInboxNotificationAsRead, a7 as useMarkThreadAsRead, $ as useMarkThreadAsResolved, a0 as useMarkThreadAsUnresolved, a8 as useMutation, a9 as useMyPresence, aw as useNotificationSettings, al as useOther, am as useOthers, an as useOthersConnectionIds, aa as useOthersListener, ao as useOthersMapped, ab as useRedo, ac as useRemoveReaction, ad as useRoom, aC as useRoomInfo, au as useRoomSubscriptionSettings, ap as useSelf, aA as useSendAiMessage, ae as useStatus, aq as useStorage, af as useStorageRoot, a1 as useSubscribeToThread, I as useSyncStatus, ag as useThreadSubscription, ar as useThreads, ah as useUndo, aE as useUnreadInboxNotificationsCount, a2 as useUnsubscribeFromThread, ai as useUpdateMyPresence, ax as useUpdateNotificationSettings, aj as useUpdateRoomSubscriptionSettings, aF as useUser, aB as useUserThreads_experimental } from './room-DSJuooXd.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-6ZXBTPII.js";
6
+ } from "./chunk-TMNECRRU.js";
7
7
  import {
8
8
  ClientContext,
9
9
  LiveblocksProvider,
@@ -40,6 +40,7 @@ import {
40
40
  _useUserThreads_experimental,
41
41
  createLiveblocksContext,
42
42
  createRoomContext,
43
+ useAiChatStatus,
43
44
  useAttachmentUrl,
44
45
  useCanRedo,
45
46
  useCanUndo,
@@ -77,7 +78,7 @@ import {
77
78
  useUnsubscribeFromThread,
78
79
  useUpdateNotificationSettings,
79
80
  useUpdateRoomSubscriptionSettings
80
- } from "./chunk-WGUV4Z4E.js";
81
+ } from "./chunk-GXPZZIB2.js";
81
82
 
82
83
  // src/index.ts
83
84
  import { detectDupes } from "@liveblocks/core";
@@ -98,6 +99,7 @@ export {
98
99
  _useAddReaction as useAddReaction,
99
100
  _useAiChat as useAiChat,
100
101
  _useAiChatMessages as useAiChatMessages,
102
+ useAiChatStatus,
101
103
  _useAiChats as useAiChats,
102
104
  useAttachmentUrl,
103
105
  _useBroadcastEvent as useBroadcastEvent,
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 { RegisterAiKnowledgeProps, RegisterAiToolProps } from \"./types/ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n 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} 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 { RegisterAiKnowledgeProps, RegisterAiToolProps } from \"./types/ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n 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} from \"./liveblocks\";\n\nexport type { AiChatStatus } from \"./types/ai\";\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, BaseMetadata, QueryMetadata, AsyncResult, DRI, AsyncSuccess, DGI, GroupData, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, Relax, ToImmutable, PartialNotificationSettings, AiChatsQuery, AsyncLoading, AsyncError, ThreadData, HistoryVersion, AiChat, Client as Client$1, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, AiUserMessage, WithRequired, AiChatMessage, WithNavigation, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, MessageId, SubscriptionData, SubscriptionKey, CommentUserReaction, InboxNotificationDeleteInfo, SubscriptionDeleteInfo, RoomSubscriptionSettings as RoomSubscriptionSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DM, TextEditorType, IYjsProvider, 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, HistoryVersion, AiChat, Client as Client$1, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, AiUserMessage, WithRequired, AiChatMessage, WithNavigation, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, SubscriptionData, SubscriptionKey, 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
  /**
@@ -53,6 +53,25 @@ type RegisterAiToolProps = {
53
53
  */
54
54
  enabled?: boolean;
55
55
  };
56
+ /**
57
+ * Simplified status for the requested chat.
58
+ * This hook offers a convenient way to update the UI while an AI chat
59
+ * generation is in progress.
60
+ */
61
+ type AiChatStatus = Relax<{
62
+ status: "loading";
63
+ } | {
64
+ status: "idle";
65
+ } | {
66
+ status: "generating";
67
+ } | {
68
+ status: "generating";
69
+ partType: Exclude<AiAssistantContentPart["type"], "tool-invocation">;
70
+ } | {
71
+ status: "generating";
72
+ partType: "tool-invocation";
73
+ toolName: string;
74
+ }>;
56
75
 
57
76
  type UiChatMessage = WithNavigation<AiChatMessage>;
58
77
  type UseSyncStatusOptions = {
@@ -216,6 +235,7 @@ type AiChatAsyncSuccess = AsyncSuccess<AiChat, "chat">;
216
235
  type AiChatAsyncResult = AsyncResult<AiChat, "chat">;
217
236
  type AiChatMessagesAsyncSuccess = AsyncSuccess<readonly UiChatMessage[], "messages">;
218
237
  type AiChatMessagesAsyncResult = AsyncResult<readonly UiChatMessage[], "messages">;
238
+
219
239
  type RoomProviderProps<P extends JsonObject, S extends LsonObject> = Resolve<{
220
240
  /**
221
241
  * The id of the room you want to connect to
@@ -1207,7 +1227,7 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
1207
1227
  * @example
1208
1228
  * const { count, error, isLoading } = useUnreadInboxNotificationsCount();
1209
1229
  */
1210
- useUnreadInboxNotificationsCount(): UnreadInboxNotificationsCountAsyncResult;
1230
+ useUnreadInboxNotificationsCount(options?: UseInboxNotificationsOptions): UnreadInboxNotificationsCountAsyncResult;
1211
1231
  /**
1212
1232
  * @experimental
1213
1233
  *
@@ -1236,6 +1256,13 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
1236
1256
  * const { chat, error, isLoading } = useAiChat("my-chat");
1237
1257
  */
1238
1258
  useAiChat(chatId: string): AiChatAsyncResult;
1259
+ /**
1260
+ * (Private beta) Returns the status of the requested chat.
1261
+ *
1262
+ * @example
1263
+ * const { status, partType, toolName } = useAiChatStatus("my-chat");
1264
+ */
1265
+ useAiChatStatus(chatId: string, branchId?: MessageId): AiChatStatus;
1239
1266
  suspense: Resolve<LiveblocksContextBundleCommon<M> & SharedContextBundle<U>["suspense"] & {
1240
1267
  /**
1241
1268
  * Returns the inbox notifications for the current user.
@@ -1250,7 +1277,7 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
1250
1277
  * @example
1251
1278
  * const { count } = useUnreadInboxNotificationsCount();
1252
1279
  */
1253
- useUnreadInboxNotificationsCount(): UnreadInboxNotificationsCountAsyncSuccess;
1280
+ useUnreadInboxNotificationsCount(options?: UseInboxNotificationsOptions): UnreadInboxNotificationsCountAsyncSuccess;
1254
1281
  /**
1255
1282
  * Returns notification settings for the current user.
1256
1283
  *
@@ -1289,6 +1316,13 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
1289
1316
  * const { chat, error, isLoading } = useAiChat("my-chat");
1290
1317
  */
1291
1318
  useAiChat(chatId: string): AiChatAsyncSuccess;
1319
+ /**
1320
+ * (Private beta) Returns the status of the requested chat.
1321
+ *
1322
+ * @example
1323
+ * const { status, partType, toolName } = useAiChatStatus("my-chat");
1324
+ */
1325
+ useAiChatStatus(chatId: string, branchId?: MessageId): AiChatStatus;
1292
1326
  }>;
1293
1327
  }>;
1294
1328
 
@@ -1721,6 +1755,31 @@ declare function useCreateAiChat(): {
1721
1755
  * deleteAiChat("ai-chat-id");
1722
1756
  */
1723
1757
  declare function useDeleteAiChat(): (chatId: string) => void;
1758
+ /**
1759
+ * Returns the status of an AI chat, indicating whether it's idle or actively
1760
+ * generating content. This is a convenience hook that derives its state from
1761
+ * the latest assistant message in the chat.
1762
+ *
1763
+ * Re-renders whenever any of the relevant fields change.
1764
+ *
1765
+ * @param chatId - The ID of the chat to monitor
1766
+ * @returns The current status of the AI chat
1767
+ *
1768
+ * @example
1769
+ * ```tsx
1770
+ * import { useAiChatStatus } from "@liveblocks/react";
1771
+ *
1772
+ * function ChatStatus() {
1773
+ * const { status, partType, toolName } = useAiChatStatus("my-chat");
1774
+ * console.log(status); // "loading" | "idle" | "generating"
1775
+ * console.log(status.partType); // "text" | "tool-invocation" | ...
1776
+ * console.log(status.toolName); // string | undefined
1777
+ * }
1778
+ * ```
1779
+ */
1780
+ declare function useAiChatStatus(chatId: string,
1781
+ /** @internal */
1782
+ branchId?: MessageId): AiChatStatus;
1724
1783
  /**
1725
1784
  * Returns a function to send a message in an AI chat.
1726
1785
  *
@@ -1831,14 +1890,14 @@ declare function useDeleteInboxNotification(): (inboxNotificationId: string) =>
1831
1890
  * @example
1832
1891
  * const { count, error, isLoading } = useUnreadInboxNotificationsCount();
1833
1892
  */
1834
- declare function useUnreadInboxNotificationsCount(): UnreadInboxNotificationsCountAsyncResult;
1893
+ declare function useUnreadInboxNotificationsCount(options?: UseInboxNotificationsOptions): UnreadInboxNotificationsCountAsyncResult;
1835
1894
  /**
1836
1895
  * Returns the number of unread inbox notifications for the current user.
1837
1896
  *
1838
1897
  * @example
1839
1898
  * const { count } = useUnreadInboxNotificationsCount();
1840
1899
  */
1841
- declare function useUnreadInboxNotificationsCountSuspense(): {
1900
+ declare function useUnreadInboxNotificationsCountSuspense(options?: UseInboxNotificationsOptions): {
1842
1901
  readonly isLoading: false;
1843
1902
  readonly count: number;
1844
1903
  readonly error?: undefined;
@@ -2756,4 +2815,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
2756
2815
  */
2757
2816
  declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
2758
2817
 
2759
- export { useMarkThreadAsResolved as $, createLiveblocksContext as A, useDeleteAllInboxNotifications as B, ClientContext as C, useDeleteInboxNotification as D, useErrorListener as E, useMarkAllInboxNotificationsAsRead as F, type GroupAsyncResult as G, useMarkInboxNotificationAsRead as H, useSyncStatus as I, createRoomContext as J, _RoomProvider as K, LiveblocksProvider as L, type MutationContext as M, _useAddReaction as N, _useBroadcastEvent as O, useCanRedo as P, useCanUndo as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCreateComment as T, type UseSendAiMessageOptions as U, _useCreateThread as V, useDeleteComment as W, _useDeleteThread as X, useEditComment as Y, _useEditThreadMetadata as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, _useAiChatMessagesSuspense as a$, useMarkThreadAsUnresolved as a0, useSubscribeToThread as a1, useUnsubscribeFromThread as a2, _useEventListener as a3, useHistory as a4, _useIsInsideRoom as a5, useLostConnectionListener as a6, useMarkThreadAsRead as a7, _useMutation as a8, _useMyPresence as a9, useSendAiMessage as aA, _useUserThreads_experimental as aB, useRoomInfo as aC, useGroupInfo as aD, useUnreadInboxNotificationsCount as aE, _useUser as aF, _useAiChat as aG, _useAiChats as aH, _useAiChatMessages as aI, _useOtherSuspense as aJ, _useOthersSuspense as aK, useOthersConnectionIdsSuspense as aL, _useOthersMappedSuspense as aM, _useSelfSuspense as aN, _useStorageSuspense as aO, _useThreadsSuspense as aP, useAttachmentUrlSuspense as aQ, _useHistoryVersionsSuspense as aR, _useRoomSubscriptionSettingsSuspense as aS, useInboxNotificationsSuspense as aT, useNotificationSettingsSuspense as aU, useRoomInfoSuspense as aV, useGroupInfoSuspense as aW, useUnreadInboxNotificationsCountSuspense as aX, _useUserSuspense as aY, _useUserThreadsSuspense_experimental as aZ, _useAiChatsSuspense as a_, _useOthersListener as aa, useRedo as ab, useRemoveReaction as ac, _useRoom as ad, useStatus as ae, _useStorageRoot as af, useThreadSubscription as ag, useUndo as ah, _useUpdateMyPresence as ai, useUpdateRoomSubscriptionSettings as aj, useHistoryVersionData as ak, _useOther as al, _useOthers as am, useOthersConnectionIds as an, _useOthersMapped as ao, _useSelf as ap, _useStorage as aq, _useThreads as ar, useAttachmentUrl as as, _useHistoryVersions as at, _useRoomSubscriptionSettings as au, useInboxNotifications as av, useNotificationSettings as aw, useUpdateNotificationSettings as ax, useCreateAiChat as ay, useDeleteAiChat as az, useCreateRoomComment as b, _useAiChatSuspense as b0, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useMarkRoomThreadAsRead as k, useMarkRoomThreadAsResolved as l, useMarkRoomThreadAsUnresolved as m, useMentionSuggestionsCache as n, useRemoveRoomCommentReaction as o, useReportTextEditor as p, useResolveMentionSuggestions as q, useRoomAttachmentUrl as r, useRoomPermissions as s, useRoomThreadSubscription as t, useClientOrNull as u, useYjsProvider as v, type RegisterAiToolProps as w, type UseThreadsOptions as x, RoomContext as y, useClient as z };
2818
+ export { useMarkThreadAsResolved as $, createLiveblocksContext as A, useDeleteAllInboxNotifications as B, ClientContext as C, useDeleteInboxNotification as D, useErrorListener as E, useMarkAllInboxNotificationsAsRead as F, type GroupAsyncResult as G, useMarkInboxNotificationAsRead as H, useSyncStatus as I, createRoomContext as J, _RoomProvider as K, LiveblocksProvider as L, type MutationContext as M, _useAddReaction as N, _useBroadcastEvent as O, useCanRedo as P, useCanUndo as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCreateComment as T, type UseSendAiMessageOptions as U, _useCreateThread as V, useDeleteComment as W, _useDeleteThread as X, useEditComment as Y, _useEditThreadMetadata as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, _useUserThreadsSuspense_experimental as a$, useMarkThreadAsUnresolved as a0, useSubscribeToThread as a1, useUnsubscribeFromThread as a2, _useEventListener as a3, useHistory as a4, _useIsInsideRoom as a5, useLostConnectionListener as a6, useMarkThreadAsRead as a7, _useMutation as a8, _useMyPresence as a9, useSendAiMessage as aA, _useUserThreads_experimental as aB, useRoomInfo as aC, useGroupInfo as aD, useUnreadInboxNotificationsCount as aE, _useUser as aF, _useAiChat as aG, _useAiChats as aH, _useAiChatMessages as aI, useAiChatStatus as aJ, type AiChatStatus as aK, _useOtherSuspense as aL, _useOthersSuspense as aM, useOthersConnectionIdsSuspense as aN, _useOthersMappedSuspense as aO, _useSelfSuspense as aP, _useStorageSuspense as aQ, _useThreadsSuspense as aR, useAttachmentUrlSuspense as aS, _useHistoryVersionsSuspense as aT, _useRoomSubscriptionSettingsSuspense as aU, useInboxNotificationsSuspense as aV, useNotificationSettingsSuspense as aW, useRoomInfoSuspense as aX, useGroupInfoSuspense as aY, useUnreadInboxNotificationsCountSuspense as aZ, _useUserSuspense as a_, _useOthersListener as aa, useRedo as ab, useRemoveReaction as ac, _useRoom as ad, useStatus as ae, _useStorageRoot as af, useThreadSubscription as ag, useUndo as ah, _useUpdateMyPresence as ai, useUpdateRoomSubscriptionSettings as aj, useHistoryVersionData as ak, _useOther as al, _useOthers as am, useOthersConnectionIds as an, _useOthersMapped as ao, _useSelf as ap, _useStorage as aq, _useThreads as ar, useAttachmentUrl as as, _useHistoryVersions as at, _useRoomSubscriptionSettings as au, useInboxNotifications as av, useNotificationSettings as aw, useUpdateNotificationSettings as ax, useCreateAiChat as ay, useDeleteAiChat as az, useCreateRoomComment as b, _useAiChatsSuspense as b0, _useAiChatMessagesSuspense as b1, _useAiChatSuspense as b2, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useMarkRoomThreadAsRead as k, useMarkRoomThreadAsResolved as l, useMarkRoomThreadAsUnresolved as m, useMentionSuggestionsCache as n, useRemoveRoomCommentReaction as o, useReportTextEditor as p, useResolveMentionSuggestions as q, useRoomAttachmentUrl as r, useRoomPermissions as s, useRoomThreadSubscription as t, useClientOrNull as u, useYjsProvider as v, type RegisterAiToolProps as w, type UseThreadsOptions as x, RoomContext as y, useClient as z };
@@ -2,7 +2,7 @@ import * as react from 'react';
2
2
  import { ComponentType, Context, PropsWithChildren, ReactNode } from 'react';
3
3
  import { BaseUserMeta, Client, JsonObject, LsonObject, LiveObject, User, Json, RoomSubscriptionSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, ClientOptions, 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, BaseMetadata, QueryMetadata, AsyncResult, DRI, AsyncSuccess, DGI, GroupData, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, Relax, ToImmutable, PartialNotificationSettings, AiChatsQuery, AsyncLoading, AsyncError, ThreadData, HistoryVersion, AiChat, Client as Client$1, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, AiUserMessage, WithRequired, AiChatMessage, WithNavigation, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, MessageId, SubscriptionData, SubscriptionKey, CommentUserReaction, InboxNotificationDeleteInfo, SubscriptionDeleteInfo, RoomSubscriptionSettings as RoomSubscriptionSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DM, TextEditorType, IYjsProvider, 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, HistoryVersion, AiChat, Client as Client$1, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, AiUserMessage, WithRequired, AiChatMessage, WithNavigation, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, SubscriptionData, SubscriptionKey, 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
  /**
@@ -53,6 +53,25 @@ type RegisterAiToolProps = {
53
53
  */
54
54
  enabled?: boolean;
55
55
  };
56
+ /**
57
+ * Simplified status for the requested chat.
58
+ * This hook offers a convenient way to update the UI while an AI chat
59
+ * generation is in progress.
60
+ */
61
+ type AiChatStatus = Relax<{
62
+ status: "loading";
63
+ } | {
64
+ status: "idle";
65
+ } | {
66
+ status: "generating";
67
+ } | {
68
+ status: "generating";
69
+ partType: Exclude<AiAssistantContentPart["type"], "tool-invocation">;
70
+ } | {
71
+ status: "generating";
72
+ partType: "tool-invocation";
73
+ toolName: string;
74
+ }>;
56
75
 
57
76
  type UiChatMessage = WithNavigation<AiChatMessage>;
58
77
  type UseSyncStatusOptions = {
@@ -216,6 +235,7 @@ type AiChatAsyncSuccess = AsyncSuccess<AiChat, "chat">;
216
235
  type AiChatAsyncResult = AsyncResult<AiChat, "chat">;
217
236
  type AiChatMessagesAsyncSuccess = AsyncSuccess<readonly UiChatMessage[], "messages">;
218
237
  type AiChatMessagesAsyncResult = AsyncResult<readonly UiChatMessage[], "messages">;
238
+
219
239
  type RoomProviderProps<P extends JsonObject, S extends LsonObject> = Resolve<{
220
240
  /**
221
241
  * The id of the room you want to connect to
@@ -1207,7 +1227,7 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
1207
1227
  * @example
1208
1228
  * const { count, error, isLoading } = useUnreadInboxNotificationsCount();
1209
1229
  */
1210
- useUnreadInboxNotificationsCount(): UnreadInboxNotificationsCountAsyncResult;
1230
+ useUnreadInboxNotificationsCount(options?: UseInboxNotificationsOptions): UnreadInboxNotificationsCountAsyncResult;
1211
1231
  /**
1212
1232
  * @experimental
1213
1233
  *
@@ -1236,6 +1256,13 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
1236
1256
  * const { chat, error, isLoading } = useAiChat("my-chat");
1237
1257
  */
1238
1258
  useAiChat(chatId: string): AiChatAsyncResult;
1259
+ /**
1260
+ * (Private beta) Returns the status of the requested chat.
1261
+ *
1262
+ * @example
1263
+ * const { status, partType, toolName } = useAiChatStatus("my-chat");
1264
+ */
1265
+ useAiChatStatus(chatId: string, branchId?: MessageId): AiChatStatus;
1239
1266
  suspense: Resolve<LiveblocksContextBundleCommon<M> & SharedContextBundle<U>["suspense"] & {
1240
1267
  /**
1241
1268
  * Returns the inbox notifications for the current user.
@@ -1250,7 +1277,7 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
1250
1277
  * @example
1251
1278
  * const { count } = useUnreadInboxNotificationsCount();
1252
1279
  */
1253
- useUnreadInboxNotificationsCount(): UnreadInboxNotificationsCountAsyncSuccess;
1280
+ useUnreadInboxNotificationsCount(options?: UseInboxNotificationsOptions): UnreadInboxNotificationsCountAsyncSuccess;
1254
1281
  /**
1255
1282
  * Returns notification settings for the current user.
1256
1283
  *
@@ -1289,6 +1316,13 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
1289
1316
  * const { chat, error, isLoading } = useAiChat("my-chat");
1290
1317
  */
1291
1318
  useAiChat(chatId: string): AiChatAsyncSuccess;
1319
+ /**
1320
+ * (Private beta) Returns the status of the requested chat.
1321
+ *
1322
+ * @example
1323
+ * const { status, partType, toolName } = useAiChatStatus("my-chat");
1324
+ */
1325
+ useAiChatStatus(chatId: string, branchId?: MessageId): AiChatStatus;
1292
1326
  }>;
1293
1327
  }>;
1294
1328
 
@@ -1721,6 +1755,31 @@ declare function useCreateAiChat(): {
1721
1755
  * deleteAiChat("ai-chat-id");
1722
1756
  */
1723
1757
  declare function useDeleteAiChat(): (chatId: string) => void;
1758
+ /**
1759
+ * Returns the status of an AI chat, indicating whether it's idle or actively
1760
+ * generating content. This is a convenience hook that derives its state from
1761
+ * the latest assistant message in the chat.
1762
+ *
1763
+ * Re-renders whenever any of the relevant fields change.
1764
+ *
1765
+ * @param chatId - The ID of the chat to monitor
1766
+ * @returns The current status of the AI chat
1767
+ *
1768
+ * @example
1769
+ * ```tsx
1770
+ * import { useAiChatStatus } from "@liveblocks/react";
1771
+ *
1772
+ * function ChatStatus() {
1773
+ * const { status, partType, toolName } = useAiChatStatus("my-chat");
1774
+ * console.log(status); // "loading" | "idle" | "generating"
1775
+ * console.log(status.partType); // "text" | "tool-invocation" | ...
1776
+ * console.log(status.toolName); // string | undefined
1777
+ * }
1778
+ * ```
1779
+ */
1780
+ declare function useAiChatStatus(chatId: string,
1781
+ /** @internal */
1782
+ branchId?: MessageId): AiChatStatus;
1724
1783
  /**
1725
1784
  * Returns a function to send a message in an AI chat.
1726
1785
  *
@@ -1831,14 +1890,14 @@ declare function useDeleteInboxNotification(): (inboxNotificationId: string) =>
1831
1890
  * @example
1832
1891
  * const { count, error, isLoading } = useUnreadInboxNotificationsCount();
1833
1892
  */
1834
- declare function useUnreadInboxNotificationsCount(): UnreadInboxNotificationsCountAsyncResult;
1893
+ declare function useUnreadInboxNotificationsCount(options?: UseInboxNotificationsOptions): UnreadInboxNotificationsCountAsyncResult;
1835
1894
  /**
1836
1895
  * Returns the number of unread inbox notifications for the current user.
1837
1896
  *
1838
1897
  * @example
1839
1898
  * const { count } = useUnreadInboxNotificationsCount();
1840
1899
  */
1841
- declare function useUnreadInboxNotificationsCountSuspense(): {
1900
+ declare function useUnreadInboxNotificationsCountSuspense(options?: UseInboxNotificationsOptions): {
1842
1901
  readonly isLoading: false;
1843
1902
  readonly count: number;
1844
1903
  readonly error?: undefined;
@@ -2756,4 +2815,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
2756
2815
  */
2757
2816
  declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
2758
2817
 
2759
- export { useMarkThreadAsResolved as $, createLiveblocksContext as A, useDeleteAllInboxNotifications as B, ClientContext as C, useDeleteInboxNotification as D, useErrorListener as E, useMarkAllInboxNotificationsAsRead as F, type GroupAsyncResult as G, useMarkInboxNotificationAsRead as H, useSyncStatus as I, createRoomContext as J, _RoomProvider as K, LiveblocksProvider as L, type MutationContext as M, _useAddReaction as N, _useBroadcastEvent as O, useCanRedo as P, useCanUndo as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCreateComment as T, type UseSendAiMessageOptions as U, _useCreateThread as V, useDeleteComment as W, _useDeleteThread as X, useEditComment as Y, _useEditThreadMetadata as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, _useAiChatMessagesSuspense as a$, useMarkThreadAsUnresolved as a0, useSubscribeToThread as a1, useUnsubscribeFromThread as a2, _useEventListener as a3, useHistory as a4, _useIsInsideRoom as a5, useLostConnectionListener as a6, useMarkThreadAsRead as a7, _useMutation as a8, _useMyPresence as a9, useSendAiMessage as aA, _useUserThreads_experimental as aB, useRoomInfo as aC, useGroupInfo as aD, useUnreadInboxNotificationsCount as aE, _useUser as aF, _useAiChat as aG, _useAiChats as aH, _useAiChatMessages as aI, _useOtherSuspense as aJ, _useOthersSuspense as aK, useOthersConnectionIdsSuspense as aL, _useOthersMappedSuspense as aM, _useSelfSuspense as aN, _useStorageSuspense as aO, _useThreadsSuspense as aP, useAttachmentUrlSuspense as aQ, _useHistoryVersionsSuspense as aR, _useRoomSubscriptionSettingsSuspense as aS, useInboxNotificationsSuspense as aT, useNotificationSettingsSuspense as aU, useRoomInfoSuspense as aV, useGroupInfoSuspense as aW, useUnreadInboxNotificationsCountSuspense as aX, _useUserSuspense as aY, _useUserThreadsSuspense_experimental as aZ, _useAiChatsSuspense as a_, _useOthersListener as aa, useRedo as ab, useRemoveReaction as ac, _useRoom as ad, useStatus as ae, _useStorageRoot as af, useThreadSubscription as ag, useUndo as ah, _useUpdateMyPresence as ai, useUpdateRoomSubscriptionSettings as aj, useHistoryVersionData as ak, _useOther as al, _useOthers as am, useOthersConnectionIds as an, _useOthersMapped as ao, _useSelf as ap, _useStorage as aq, _useThreads as ar, useAttachmentUrl as as, _useHistoryVersions as at, _useRoomSubscriptionSettings as au, useInboxNotifications as av, useNotificationSettings as aw, useUpdateNotificationSettings as ax, useCreateAiChat as ay, useDeleteAiChat as az, useCreateRoomComment as b, _useAiChatSuspense as b0, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useMarkRoomThreadAsRead as k, useMarkRoomThreadAsResolved as l, useMarkRoomThreadAsUnresolved as m, useMentionSuggestionsCache as n, useRemoveRoomCommentReaction as o, useReportTextEditor as p, useResolveMentionSuggestions as q, useRoomAttachmentUrl as r, useRoomPermissions as s, useRoomThreadSubscription as t, useClientOrNull as u, useYjsProvider as v, type RegisterAiToolProps as w, type UseThreadsOptions as x, RoomContext as y, useClient as z };
2818
+ export { useMarkThreadAsResolved as $, createLiveblocksContext as A, useDeleteAllInboxNotifications as B, ClientContext as C, useDeleteInboxNotification as D, useErrorListener as E, useMarkAllInboxNotificationsAsRead as F, type GroupAsyncResult as G, useMarkInboxNotificationAsRead as H, useSyncStatus as I, createRoomContext as J, _RoomProvider as K, LiveblocksProvider as L, type MutationContext as M, _useAddReaction as N, _useBroadcastEvent as O, useCanRedo as P, useCanUndo as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCreateComment as T, type UseSendAiMessageOptions as U, _useCreateThread as V, useDeleteComment as W, _useDeleteThread as X, useEditComment as Y, _useEditThreadMetadata as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, _useUserThreadsSuspense_experimental as a$, useMarkThreadAsUnresolved as a0, useSubscribeToThread as a1, useUnsubscribeFromThread as a2, _useEventListener as a3, useHistory as a4, _useIsInsideRoom as a5, useLostConnectionListener as a6, useMarkThreadAsRead as a7, _useMutation as a8, _useMyPresence as a9, useSendAiMessage as aA, _useUserThreads_experimental as aB, useRoomInfo as aC, useGroupInfo as aD, useUnreadInboxNotificationsCount as aE, _useUser as aF, _useAiChat as aG, _useAiChats as aH, _useAiChatMessages as aI, useAiChatStatus as aJ, type AiChatStatus as aK, _useOtherSuspense as aL, _useOthersSuspense as aM, useOthersConnectionIdsSuspense as aN, _useOthersMappedSuspense as aO, _useSelfSuspense as aP, _useStorageSuspense as aQ, _useThreadsSuspense as aR, useAttachmentUrlSuspense as aS, _useHistoryVersionsSuspense as aT, _useRoomSubscriptionSettingsSuspense as aU, useInboxNotificationsSuspense as aV, useNotificationSettingsSuspense as aW, useRoomInfoSuspense as aX, useGroupInfoSuspense as aY, useUnreadInboxNotificationsCountSuspense as aZ, _useUserSuspense as a_, _useOthersListener as aa, useRedo as ab, useRemoveReaction as ac, _useRoom as ad, useStatus as ae, _useStorageRoot as af, useThreadSubscription as ag, useUndo as ah, _useUpdateMyPresence as ai, useUpdateRoomSubscriptionSettings as aj, useHistoryVersionData as ak, _useOther as al, _useOthers as am, useOthersConnectionIds as an, _useOthersMapped as ao, _useSelf as ap, _useStorage as aq, _useThreads as ar, useAttachmentUrl as as, _useHistoryVersions as at, _useRoomSubscriptionSettings as au, useInboxNotifications as av, useNotificationSettings as aw, useUpdateNotificationSettings as ax, useCreateAiChat as ay, useDeleteAiChat as az, useCreateRoomComment as b, _useAiChatsSuspense as b0, _useAiChatMessagesSuspense as b1, _useAiChatSuspense as b2, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useMarkRoomThreadAsRead as k, useMarkRoomThreadAsResolved as l, useMarkRoomThreadAsUnresolved as m, useMentionSuggestionsCache as n, useRemoveRoomCommentReaction as o, useReportTextEditor as p, useResolveMentionSuggestions as q, useRoomAttachmentUrl as r, useRoomPermissions as s, useRoomThreadSubscription as t, useClientOrNull as u, useYjsProvider as v, type RegisterAiToolProps as w, type UseThreadsOptions as x, RoomContext as y, useClient as z };
package/dist/suspense.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkBKAKZTP4cjs = require('./chunk-BKAKZTP4.cjs');
6
+ var _chunkX3KI55GFcjs = require('./chunk-X3KI55GF.cjs');
7
7
 
8
8
 
9
9
 
@@ -74,12 +74,14 @@ var _chunkBKAKZTP4cjs = require('./chunk-BKAKZTP4.cjs');
74
74
 
75
75
 
76
76
 
77
- var _chunkW2H56LB3cjs = require('./chunk-W2H56LB3.cjs');
77
+
78
+ var _chunk45BFK66Kcjs = require('./chunk-45BFK66K.cjs');
78
79
 
79
80
  // src/suspense.ts
80
81
  var _core = require('@liveblocks/core');
81
82
  var _client = require('@liveblocks/client');
82
- _core.detectDupes.call(void 0, _chunkBKAKZTP4cjs.PKG_NAME, _chunkBKAKZTP4cjs.PKG_VERSION, _chunkBKAKZTP4cjs.PKG_FORMAT);
83
+ _core.detectDupes.call(void 0, _chunkX3KI55GFcjs.PKG_NAME, _chunkX3KI55GFcjs.PKG_VERSION, _chunkX3KI55GFcjs.PKG_FORMAT);
84
+
83
85
 
84
86
 
85
87
 
@@ -153,5 +155,5 @@ _core.detectDupes.call(void 0, _chunkBKAKZTP4cjs.PKG_NAME, _chunkBKAKZTP4cjs.PKG
153
155
 
154
156
 
155
157
 
156
- exports.ClientContext = _chunkW2H56LB3cjs.ClientContext; exports.ClientSideSuspense = _chunkBKAKZTP4cjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkW2H56LB3cjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkW2H56LB3cjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkW2H56LB3cjs.RegisterAiTool; exports.RoomContext = _chunkW2H56LB3cjs.RoomContext; exports.RoomProvider = _chunkW2H56LB3cjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkW2H56LB3cjs._useAddReaction; exports.useAiChat = _chunkW2H56LB3cjs._useAiChatSuspense; exports.useAiChatMessages = _chunkW2H56LB3cjs._useAiChatMessagesSuspense; exports.useAiChats = _chunkW2H56LB3cjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunkW2H56LB3cjs.useAttachmentUrlSuspense; exports.useBroadcastEvent = _chunkW2H56LB3cjs._useBroadcastEvent; exports.useCanRedo = _chunkW2H56LB3cjs.useCanRedo; exports.useCanUndo = _chunkW2H56LB3cjs.useCanUndo; exports.useClient = _chunkW2H56LB3cjs.useClient; exports.useCreateAiChat = _chunkW2H56LB3cjs.useCreateAiChat; exports.useCreateComment = _chunkW2H56LB3cjs.useCreateComment; exports.useCreateThread = _chunkW2H56LB3cjs._useCreateThread; exports.useDeleteAiChat = _chunkW2H56LB3cjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkW2H56LB3cjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkW2H56LB3cjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkW2H56LB3cjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkW2H56LB3cjs._useDeleteThread; exports.useEditComment = _chunkW2H56LB3cjs.useEditComment; exports.useEditThreadMetadata = _chunkW2H56LB3cjs._useEditThreadMetadata; exports.useErrorListener = _chunkW2H56LB3cjs.useErrorListener; exports.useEventListener = _chunkW2H56LB3cjs._useEventListener; exports.useGroupInfo = _chunkW2H56LB3cjs.useGroupInfoSuspense; exports.useHistory = _chunkW2H56LB3cjs.useHistory; exports.useHistoryVersions = _chunkW2H56LB3cjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkW2H56LB3cjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkW2H56LB3cjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkW2H56LB3cjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkW2H56LB3cjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkW2H56LB3cjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkW2H56LB3cjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkW2H56LB3cjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkW2H56LB3cjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkW2H56LB3cjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkW2H56LB3cjs._useMutation; exports.useMyPresence = _chunkW2H56LB3cjs._useMyPresence; exports.useNotificationSettings = _chunkW2H56LB3cjs.useNotificationSettingsSuspense; exports.useOther = _chunkW2H56LB3cjs._useOtherSuspense; exports.useOthers = _chunkW2H56LB3cjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkW2H56LB3cjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkW2H56LB3cjs._useOthersListener; exports.useOthersMapped = _chunkW2H56LB3cjs._useOthersMappedSuspense; exports.useRedo = _chunkW2H56LB3cjs.useRedo; exports.useRemoveReaction = _chunkW2H56LB3cjs.useRemoveReaction; exports.useRoom = _chunkW2H56LB3cjs._useRoom; exports.useRoomInfo = _chunkW2H56LB3cjs.useRoomInfoSuspense; exports.useRoomSubscriptionSettings = _chunkW2H56LB3cjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunkW2H56LB3cjs._useSelfSuspense; exports.useSendAiMessage = _chunkW2H56LB3cjs.useSendAiMessage; exports.useStatus = _chunkW2H56LB3cjs.useStatus; exports.useStorage = _chunkW2H56LB3cjs._useStorageSuspense; exports.useStorageRoot = _chunkW2H56LB3cjs._useStorageRoot; exports.useSubscribeToThread = _chunkW2H56LB3cjs.useSubscribeToThread; exports.useSyncStatus = _chunkW2H56LB3cjs.useSyncStatus; exports.useThreadSubscription = _chunkW2H56LB3cjs.useThreadSubscription; exports.useThreads = _chunkW2H56LB3cjs._useThreadsSuspense; exports.useUndo = _chunkW2H56LB3cjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkW2H56LB3cjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunkW2H56LB3cjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkW2H56LB3cjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkW2H56LB3cjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkW2H56LB3cjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunkW2H56LB3cjs._useUserSuspense; exports.useUserThreads_experimental = _chunkW2H56LB3cjs._useUserThreadsSuspense_experimental;
158
+ exports.ClientContext = _chunk45BFK66Kcjs.ClientContext; exports.ClientSideSuspense = _chunkX3KI55GFcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunk45BFK66Kcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunk45BFK66Kcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunk45BFK66Kcjs.RegisterAiTool; exports.RoomContext = _chunk45BFK66Kcjs.RoomContext; exports.RoomProvider = _chunk45BFK66Kcjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunk45BFK66Kcjs._useAddReaction; exports.useAiChat = _chunk45BFK66Kcjs._useAiChatSuspense; exports.useAiChatMessages = _chunk45BFK66Kcjs._useAiChatMessagesSuspense; exports.useAiChatStatus = _chunk45BFK66Kcjs.useAiChatStatus; exports.useAiChats = _chunk45BFK66Kcjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunk45BFK66Kcjs.useAttachmentUrlSuspense; exports.useBroadcastEvent = _chunk45BFK66Kcjs._useBroadcastEvent; exports.useCanRedo = _chunk45BFK66Kcjs.useCanRedo; exports.useCanUndo = _chunk45BFK66Kcjs.useCanUndo; exports.useClient = _chunk45BFK66Kcjs.useClient; exports.useCreateAiChat = _chunk45BFK66Kcjs.useCreateAiChat; exports.useCreateComment = _chunk45BFK66Kcjs.useCreateComment; exports.useCreateThread = _chunk45BFK66Kcjs._useCreateThread; exports.useDeleteAiChat = _chunk45BFK66Kcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunk45BFK66Kcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunk45BFK66Kcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunk45BFK66Kcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunk45BFK66Kcjs._useDeleteThread; exports.useEditComment = _chunk45BFK66Kcjs.useEditComment; exports.useEditThreadMetadata = _chunk45BFK66Kcjs._useEditThreadMetadata; exports.useErrorListener = _chunk45BFK66Kcjs.useErrorListener; exports.useEventListener = _chunk45BFK66Kcjs._useEventListener; exports.useGroupInfo = _chunk45BFK66Kcjs.useGroupInfoSuspense; exports.useHistory = _chunk45BFK66Kcjs.useHistory; exports.useHistoryVersions = _chunk45BFK66Kcjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunk45BFK66Kcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunk45BFK66Kcjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunk45BFK66Kcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunk45BFK66Kcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunk45BFK66Kcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunk45BFK66Kcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunk45BFK66Kcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunk45BFK66Kcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunk45BFK66Kcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunk45BFK66Kcjs._useMutation; exports.useMyPresence = _chunk45BFK66Kcjs._useMyPresence; exports.useNotificationSettings = _chunk45BFK66Kcjs.useNotificationSettingsSuspense; exports.useOther = _chunk45BFK66Kcjs._useOtherSuspense; exports.useOthers = _chunk45BFK66Kcjs._useOthersSuspense; exports.useOthersConnectionIds = _chunk45BFK66Kcjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunk45BFK66Kcjs._useOthersListener; exports.useOthersMapped = _chunk45BFK66Kcjs._useOthersMappedSuspense; exports.useRedo = _chunk45BFK66Kcjs.useRedo; exports.useRemoveReaction = _chunk45BFK66Kcjs.useRemoveReaction; exports.useRoom = _chunk45BFK66Kcjs._useRoom; exports.useRoomInfo = _chunk45BFK66Kcjs.useRoomInfoSuspense; exports.useRoomSubscriptionSettings = _chunk45BFK66Kcjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunk45BFK66Kcjs._useSelfSuspense; exports.useSendAiMessage = _chunk45BFK66Kcjs.useSendAiMessage; exports.useStatus = _chunk45BFK66Kcjs.useStatus; exports.useStorage = _chunk45BFK66Kcjs._useStorageSuspense; exports.useStorageRoot = _chunk45BFK66Kcjs._useStorageRoot; exports.useSubscribeToThread = _chunk45BFK66Kcjs.useSubscribeToThread; exports.useSyncStatus = _chunk45BFK66Kcjs.useSyncStatus; exports.useThreadSubscription = _chunk45BFK66Kcjs.useThreadSubscription; exports.useThreads = _chunk45BFK66Kcjs._useThreadsSuspense; exports.useUndo = _chunk45BFK66Kcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunk45BFK66Kcjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunk45BFK66Kcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunk45BFK66Kcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunk45BFK66Kcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunk45BFK66Kcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunk45BFK66Kcjs._useUserSuspense; exports.useUserThreads_experimental = _chunk45BFK66Kcjs._useUserThreadsSuspense_experimental;
157
159
  //# sourceMappingURL=suspense.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.cjs","../src/suspense.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;AC7EA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;AD8E7C;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,mtJAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.cjs","sourcesContent":[null,"/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n 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 { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type { RegisterAiKnowledgeProps, RegisterAiToolProps } from \"./types/ai\";\nexport {\n LiveblocksProvider,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useSyncStatus,\n useErrorListener,\n} from \"./liveblocks\";\nexport {\n RoomProvider,\n useAddReaction,\n 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} from \"./room\";\n\n// Export the Suspense versions of our hooks\n// (This part differs from src/index.ts)\nexport {\n useOtherSuspense as useOther,\n useOthersSuspense as useOthers,\n useOthersConnectionIdsSuspense as useOthersConnectionIds,\n useOthersMappedSuspense as useOthersMapped,\n useSelfSuspense as useSelf,\n useStorageSuspense as useStorage,\n useThreadsSuspense as useThreads,\n useAttachmentUrlSuspense as useAttachmentUrl,\n useHistoryVersionsSuspense as useHistoryVersions,\n useRoomSubscriptionSettingsSuspense as useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useNotificationSettingsSuspense as useNotificationSettings,\n useRoomInfoSuspense as useRoomInfo,\n useGroupInfoSuspense as useGroupInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n useAiChatsSuspense as useAiChats,\n useAiChatMessagesSuspense as useAiChatMessages,\n useAiChatSuspense as useAiChat,\n} from \"./liveblocks\";\n"]}
1
+ {"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.cjs","../src/suspense.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;AC9EA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;AD+E7C;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;AACF,gxJAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.cjs","sourcesContent":[null,"/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n 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 { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type { AiChatStatus, RegisterAiKnowledgeProps, RegisterAiToolProps } from \"./types/ai\";\nexport {\n LiveblocksProvider,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useSyncStatus,\n useErrorListener,\n} from \"./liveblocks\";\nexport {\n RoomProvider,\n useAddReaction,\n 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} from \"./room\";\n\n// Export the Suspense versions of our hooks\n// (This part differs from src/index.ts)\nexport {\n useOtherSuspense as useOther,\n useOthersSuspense as useOthers,\n useOthersConnectionIdsSuspense as useOthersConnectionIds,\n useOthersMappedSuspense as useOthersMapped,\n useSelfSuspense as useSelf,\n useStorageSuspense as useStorage,\n useThreadsSuspense as useThreads,\n useAttachmentUrlSuspense as useAttachmentUrl,\n useHistoryVersionsSuspense as useHistoryVersions,\n useRoomSubscriptionSettingsSuspense as useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useNotificationSettingsSuspense as useNotificationSettings,\n useRoomInfoSuspense as useRoomInfo,\n useGroupInfoSuspense as useGroupInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n useAiChatsSuspense as useAiChats,\n useAiChatMessagesSuspense as useAiChatMessages,\n useAiChatSuspense as useAiChat,\n useAiChatStatus,\n} from \"./liveblocks\";\n"]}
@@ -1,5 +1,5 @@
1
1
  export { ClientSideSuspense, RegisterAiKnowledge, RegisterAiTool } from './index.cjs';
2
- export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, K as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, N as useAddReaction, b0 as useAiChat, a$ as useAiChatMessages, a_ as useAiChats, aQ as useAttachmentUrl, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, ay as useCreateAiChat, T as useCreateComment, V as useCreateThread, az as useDeleteAiChat, B as useDeleteAllInboxNotifications, W as useDeleteComment, D as useDeleteInboxNotification, X as useDeleteThread, Y as useEditComment, Z as useEditThreadMetadata, E as useErrorListener, a3 as useEventListener, aW as useGroupInfo, a4 as useHistory, aR as useHistoryVersions, _ as useInboxNotificationThread, aT as useInboxNotifications, a5 as useIsInsideRoom, a6 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, H as useMarkInboxNotificationAsRead, a7 as useMarkThreadAsRead, $ as useMarkThreadAsResolved, a0 as useMarkThreadAsUnresolved, a8 as useMutation, a9 as useMyPresence, aU as useNotificationSettings, aJ as useOther, aK as useOthers, aL as useOthersConnectionIds, aa as useOthersListener, aM as useOthersMapped, ab as useRedo, ac as useRemoveReaction, ad as useRoom, aV as useRoomInfo, aS as useRoomSubscriptionSettings, aN as useSelf, aA as useSendAiMessage, ae as useStatus, aO as useStorage, af as useStorageRoot, a1 as useSubscribeToThread, I as useSyncStatus, ag as useThreadSubscription, aP as useThreads, ah as useUndo, aX as useUnreadInboxNotificationsCount, a2 as useUnsubscribeFromThread, ai as useUpdateMyPresence, ax as useUpdateNotificationSettings, aj as useUpdateRoomSubscriptionSettings, aY as useUser, aZ as useUserThreads_experimental } from './room-mUz5TTmo.cjs';
2
+ export { aK as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, K as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, N as useAddReaction, b2 as useAiChat, b1 as useAiChatMessages, aJ as useAiChatStatus, b0 as useAiChats, aS as useAttachmentUrl, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, ay as useCreateAiChat, T as useCreateComment, V as useCreateThread, az as useDeleteAiChat, B as useDeleteAllInboxNotifications, W as useDeleteComment, D as useDeleteInboxNotification, X as useDeleteThread, Y as useEditComment, Z as useEditThreadMetadata, E as useErrorListener, a3 as useEventListener, aY as useGroupInfo, a4 as useHistory, aT as useHistoryVersions, _ as useInboxNotificationThread, aV as useInboxNotifications, a5 as useIsInsideRoom, a6 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, H as useMarkInboxNotificationAsRead, a7 as useMarkThreadAsRead, $ as useMarkThreadAsResolved, a0 as useMarkThreadAsUnresolved, a8 as useMutation, a9 as useMyPresence, aW as useNotificationSettings, aL as useOther, aM as useOthers, aN as useOthersConnectionIds, aa as useOthersListener, aO as useOthersMapped, ab as useRedo, ac as useRemoveReaction, ad as useRoom, aX as useRoomInfo, aU as useRoomSubscriptionSettings, aP as useSelf, aA as useSendAiMessage, ae as useStatus, aQ as useStorage, af as useStorageRoot, a1 as useSubscribeToThread, I as useSyncStatus, ag as useThreadSubscription, aR as useThreads, ah as useUndo, aZ as useUnreadInboxNotificationsCount, a2 as useUnsubscribeFromThread, ai as useUpdateMyPresence, ax as useUpdateNotificationSettings, aj as useUpdateRoomSubscriptionSettings, a_ as useUser, a$ as useUserThreads_experimental } from './room-DSJuooXd.cjs';
3
3
  export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react';