@liveblocks/react 3.8.0-next3 → 3.8.0-tiptap1

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.8.0-next3";
3
+ var PKG_VERSION = "3.8.0-tiptap1";
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-2A5VCDEZ.js.map
23
+ //# sourceMappingURL=chunk-RCYYHORY.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.8.0-next3";
3
+ var PKG_VERSION = "3.8.0-tiptap1";
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-4ZS65AZV.cjs.map
23
+ //# sourceMappingURL=chunk-ZU7C6DJE.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/chunk-4ZS65AZV.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-4ZS65AZV.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-ZU7C6DJE.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-ZU7C6DJE.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 _chunk4ZS65AZVcjs = require('./chunk-4ZS65AZV.cjs');
6
+ var _chunkZU7C6DJEcjs = require('./chunk-ZU7C6DJE.cjs');
7
7
 
8
8
 
9
9
 
@@ -77,14 +77,12 @@ var _chunk4ZS65AZVcjs = require('./chunk-4ZS65AZV.cjs');
77
77
 
78
78
 
79
79
 
80
-
81
- var _chunkOYVPE6CVcjs = require('./chunk-OYVPE6CV.cjs');
80
+ var _chunk4GCS3365cjs = require('./chunk-4GCS3365.cjs');
82
81
 
83
82
  // src/index.ts
84
83
  var _core = require('@liveblocks/core');
85
84
  var _client = require('@liveblocks/client');
86
- _core.detectDupes.call(void 0, _chunk4ZS65AZVcjs.PKG_NAME, _chunk4ZS65AZVcjs.PKG_VERSION, _chunk4ZS65AZVcjs.PKG_FORMAT);
87
-
85
+ _core.detectDupes.call(void 0, _chunkZU7C6DJEcjs.PKG_NAME, _chunkZU7C6DJEcjs.PKG_VERSION, _chunkZU7C6DJEcjs.PKG_FORMAT);
88
86
 
89
87
 
90
88
 
@@ -161,5 +159,5 @@ _core.detectDupes.call(void 0, _chunk4ZS65AZVcjs.PKG_NAME, _chunk4ZS65AZVcjs.PKG
161
159
 
162
160
 
163
161
 
164
- exports.ClientContext = _chunkOYVPE6CVcjs.ClientContext; exports.ClientSideSuspense = _chunk4ZS65AZVcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkOYVPE6CVcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkOYVPE6CVcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkOYVPE6CVcjs.RegisterAiTool; exports.RoomContext = _chunkOYVPE6CVcjs.RoomContext; exports.RoomProvider = _chunkOYVPE6CVcjs._RoomProvider; exports.createLiveblocksContext = _chunkOYVPE6CVcjs.createLiveblocksContext; exports.createRoomContext = _chunkOYVPE6CVcjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkOYVPE6CVcjs._useAddReaction; exports.useAiChat = _chunkOYVPE6CVcjs._useAiChat; exports.useAiChatMessages = _chunkOYVPE6CVcjs._useAiChatMessages; exports.useAiChatStatus = _chunkOYVPE6CVcjs.useAiChatStatus; exports.useAiChats = _chunkOYVPE6CVcjs._useAiChats; exports.useAttachmentUrl = _chunkOYVPE6CVcjs.useAttachmentUrl; exports.useBroadcastEvent = _chunkOYVPE6CVcjs._useBroadcastEvent; exports.useCanRedo = _chunkOYVPE6CVcjs.useCanRedo; exports.useCanUndo = _chunkOYVPE6CVcjs.useCanUndo; exports.useClient = _chunkOYVPE6CVcjs.useClient; exports.useCreateAiChat = _chunkOYVPE6CVcjs.useCreateAiChat; exports.useCreateComment = _chunkOYVPE6CVcjs.useCreateComment; exports.useCreateThread = _chunkOYVPE6CVcjs._useCreateThread; exports.useDeleteAiChat = _chunkOYVPE6CVcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkOYVPE6CVcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkOYVPE6CVcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkOYVPE6CVcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkOYVPE6CVcjs._useDeleteThread; exports.useEditComment = _chunkOYVPE6CVcjs.useEditComment; exports.useEditThreadMetadata = _chunkOYVPE6CVcjs._useEditThreadMetadata; exports.useErrorListener = _chunkOYVPE6CVcjs.useErrorListener; exports.useEventListener = _chunkOYVPE6CVcjs._useEventListener; exports.useGroupInfo = _chunkOYVPE6CVcjs.useGroupInfo; exports.useHistory = _chunkOYVPE6CVcjs.useHistory; exports.useHistoryVersionData = _chunkOYVPE6CVcjs.useHistoryVersionData; exports.useHistoryVersions = _chunkOYVPE6CVcjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkOYVPE6CVcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkOYVPE6CVcjs.useInboxNotifications; exports.useIsInsideRoom = _chunkOYVPE6CVcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkOYVPE6CVcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkOYVPE6CVcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkOYVPE6CVcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkOYVPE6CVcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkOYVPE6CVcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkOYVPE6CVcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkOYVPE6CVcjs._useMutation; exports.useMyPresence = _chunkOYVPE6CVcjs._useMyPresence; exports.useNotificationSettings = _chunkOYVPE6CVcjs.useNotificationSettings; exports.useOther = _chunkOYVPE6CVcjs._useOther; exports.useOthers = _chunkOYVPE6CVcjs._useOthers; exports.useOthersConnectionIds = _chunkOYVPE6CVcjs.useOthersConnectionIds; exports.useOthersListener = _chunkOYVPE6CVcjs._useOthersListener; exports.useOthersMapped = _chunkOYVPE6CVcjs._useOthersMapped; exports.useRedo = _chunkOYVPE6CVcjs.useRedo; exports.useRemoveReaction = _chunkOYVPE6CVcjs.useRemoveReaction; exports.useRoom = _chunkOYVPE6CVcjs._useRoom; exports.useRoomInfo = _chunkOYVPE6CVcjs.useRoomInfo; exports.useRoomSubscriptionSettings = _chunkOYVPE6CVcjs._useRoomSubscriptionSettings; exports.useSelf = _chunkOYVPE6CVcjs._useSelf; exports.useSendAiMessage = _chunkOYVPE6CVcjs.useSendAiMessage; exports.useStatus = _chunkOYVPE6CVcjs.useStatus; exports.useStorage = _chunkOYVPE6CVcjs._useStorage; exports.useStorageRoot = _chunkOYVPE6CVcjs._useStorageRoot; exports.useSubscribeToThread = _chunkOYVPE6CVcjs.useSubscribeToThread; exports.useSyncStatus = _chunkOYVPE6CVcjs.useSyncStatus; exports.useThreadSubscription = _chunkOYVPE6CVcjs.useThreadSubscription; exports.useThreads = _chunkOYVPE6CVcjs._useThreads; exports.useUndo = _chunkOYVPE6CVcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkOYVPE6CVcjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunkOYVPE6CVcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkOYVPE6CVcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkOYVPE6CVcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkOYVPE6CVcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunkOYVPE6CVcjs._useUser; exports.useUserThreads_experimental = _chunkOYVPE6CVcjs._useUserThreads_experimental;
162
+ exports.ClientContext = _chunk4GCS3365cjs.ClientContext; exports.ClientSideSuspense = _chunkZU7C6DJEcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunk4GCS3365cjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunk4GCS3365cjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunk4GCS3365cjs.RegisterAiTool; exports.RoomContext = _chunk4GCS3365cjs.RoomContext; exports.RoomProvider = _chunk4GCS3365cjs._RoomProvider; exports.createLiveblocksContext = _chunk4GCS3365cjs.createLiveblocksContext; exports.createRoomContext = _chunk4GCS3365cjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunk4GCS3365cjs._useAddReaction; exports.useAiChat = _chunk4GCS3365cjs._useAiChat; exports.useAiChatMessages = _chunk4GCS3365cjs._useAiChatMessages; exports.useAiChats = _chunk4GCS3365cjs._useAiChats; exports.useAttachmentUrl = _chunk4GCS3365cjs.useAttachmentUrl; exports.useBroadcastEvent = _chunk4GCS3365cjs._useBroadcastEvent; exports.useCanRedo = _chunk4GCS3365cjs.useCanRedo; exports.useCanUndo = _chunk4GCS3365cjs.useCanUndo; exports.useClient = _chunk4GCS3365cjs.useClient; exports.useCreateAiChat = _chunk4GCS3365cjs.useCreateAiChat; exports.useCreateComment = _chunk4GCS3365cjs.useCreateComment; exports.useCreateThread = _chunk4GCS3365cjs._useCreateThread; exports.useDeleteAiChat = _chunk4GCS3365cjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunk4GCS3365cjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunk4GCS3365cjs.useDeleteComment; exports.useDeleteInboxNotification = _chunk4GCS3365cjs.useDeleteInboxNotification; exports.useDeleteThread = _chunk4GCS3365cjs._useDeleteThread; exports.useEditComment = _chunk4GCS3365cjs.useEditComment; exports.useEditThreadMetadata = _chunk4GCS3365cjs._useEditThreadMetadata; exports.useErrorListener = _chunk4GCS3365cjs.useErrorListener; exports.useEventListener = _chunk4GCS3365cjs._useEventListener; exports.useGroupInfo = _chunk4GCS3365cjs.useGroupInfo; exports.useHistory = _chunk4GCS3365cjs.useHistory; exports.useHistoryVersionData = _chunk4GCS3365cjs.useHistoryVersionData; exports.useHistoryVersions = _chunk4GCS3365cjs._useHistoryVersions; exports.useInboxNotificationThread = _chunk4GCS3365cjs._useInboxNotificationThread; exports.useInboxNotifications = _chunk4GCS3365cjs.useInboxNotifications; exports.useIsInsideRoom = _chunk4GCS3365cjs._useIsInsideRoom; exports.useLostConnectionListener = _chunk4GCS3365cjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunk4GCS3365cjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunk4GCS3365cjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunk4GCS3365cjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunk4GCS3365cjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunk4GCS3365cjs.useMarkThreadAsUnresolved; exports.useMutation = _chunk4GCS3365cjs._useMutation; exports.useMyPresence = _chunk4GCS3365cjs._useMyPresence; exports.useNotificationSettings = _chunk4GCS3365cjs.useNotificationSettings; exports.useOther = _chunk4GCS3365cjs._useOther; exports.useOthers = _chunk4GCS3365cjs._useOthers; exports.useOthersConnectionIds = _chunk4GCS3365cjs.useOthersConnectionIds; exports.useOthersListener = _chunk4GCS3365cjs._useOthersListener; exports.useOthersMapped = _chunk4GCS3365cjs._useOthersMapped; exports.useRedo = _chunk4GCS3365cjs.useRedo; exports.useRemoveReaction = _chunk4GCS3365cjs.useRemoveReaction; exports.useRoom = _chunk4GCS3365cjs._useRoom; exports.useRoomInfo = _chunk4GCS3365cjs.useRoomInfo; exports.useRoomSubscriptionSettings = _chunk4GCS3365cjs._useRoomSubscriptionSettings; exports.useSelf = _chunk4GCS3365cjs._useSelf; exports.useSendAiMessage = _chunk4GCS3365cjs.useSendAiMessage; exports.useStatus = _chunk4GCS3365cjs.useStatus; exports.useStorage = _chunk4GCS3365cjs._useStorage; exports.useStorageRoot = _chunk4GCS3365cjs._useStorageRoot; exports.useSubscribeToThread = _chunk4GCS3365cjs.useSubscribeToThread; exports.useSyncStatus = _chunk4GCS3365cjs.useSyncStatus; exports.useThreadSubscription = _chunk4GCS3365cjs.useThreadSubscription; exports.useThreads = _chunk4GCS3365cjs._useThreads; exports.useUndo = _chunk4GCS3365cjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunk4GCS3365cjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunk4GCS3365cjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunk4GCS3365cjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunk4GCS3365cjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunk4GCS3365cjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunk4GCS3365cjs._useUser; exports.useUserThreads_experimental = _chunk4GCS3365cjs._useUserThreads_experimental;
165
163
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","../src/index.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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 {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useGroupInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n useAiChatStatus,\n} 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;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"]}
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-C97RX2dB.cjs';
2
- export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, B as createLiveblocksContext, K as createRoomContext, O as useAddReaction, aH as useAiChat, aJ as useAiChatMessages, aK as useAiChatStatus, aI as useAiChats, at as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, az as useCreateAiChat, V as useCreateComment, W as useCreateThread, aA as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, $ as useEditThreadMetadata, F as useErrorListener, a4 as useEventListener, aE as useGroupInfo, a5 as useHistory, al as useHistoryVersionData, au as useHistoryVersions, _ as useInboxNotificationThread, aw as useInboxNotifications, a6 as useIsInsideRoom, a7 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a8 as useMarkThreadAsRead, a0 as useMarkThreadAsResolved, a1 as useMarkThreadAsUnresolved, a9 as useMutation, aa as useMyPresence, ax as useNotificationSettings, am as useOther, an as useOthers, ao as useOthersConnectionIds, ab as useOthersListener, ap as useOthersMapped, ac as useRedo, ad as useRemoveReaction, ae as useRoom, aD as useRoomInfo, av as useRoomSubscriptionSettings, aq as useSelf, aB as useSendAiMessage, af as useStatus, ar as useStorage, ag as useStorageRoot, a2 as useSubscribeToThread, J as useSyncStatus, ah as useThreadSubscription, as as useThreads, ai as useUndo, aF as useUnreadInboxNotificationsCount, a3 as useUnsubscribeFromThread, aj as useUpdateMyPresence, ay as useUpdateNotificationSettings, ak as useUpdateRoomSubscriptionSettings, aG as useUser, aC as useUserThreads_experimental } from './room-C97RX2dB.cjs';
1
+ import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-BtcL74U0.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-BtcL74U0.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-C97RX2dB.js';
2
- export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, B as createLiveblocksContext, K as createRoomContext, O as useAddReaction, aH as useAiChat, aJ as useAiChatMessages, aK as useAiChatStatus, aI as useAiChats, at as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, az as useCreateAiChat, V as useCreateComment, W as useCreateThread, aA as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, $ as useEditThreadMetadata, F as useErrorListener, a4 as useEventListener, aE as useGroupInfo, a5 as useHistory, al as useHistoryVersionData, au as useHistoryVersions, _ as useInboxNotificationThread, aw as useInboxNotifications, a6 as useIsInsideRoom, a7 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a8 as useMarkThreadAsRead, a0 as useMarkThreadAsResolved, a1 as useMarkThreadAsUnresolved, a9 as useMutation, aa as useMyPresence, ax as useNotificationSettings, am as useOther, an as useOthers, ao as useOthersConnectionIds, ab as useOthersListener, ap as useOthersMapped, ac as useRedo, ad as useRemoveReaction, ae as useRoom, aD as useRoomInfo, av as useRoomSubscriptionSettings, aq as useSelf, aB as useSendAiMessage, af as useStatus, ar as useStorage, ag as useStorageRoot, a2 as useSubscribeToThread, J as useSyncStatus, ah as useThreadSubscription, as as useThreads, ai as useUndo, aF as useUnreadInboxNotificationsCount, a3 as useUnsubscribeFromThread, aj as useUpdateMyPresence, ay as useUpdateNotificationSettings, ak as useUpdateRoomSubscriptionSettings, aG as useUser, aC as useUserThreads_experimental } from './room-C97RX2dB.js';
1
+ import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-BtcL74U0.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-BtcL74U0.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-2A5VCDEZ.js";
6
+ } from "./chunk-RCYYHORY.js";
7
7
  import {
8
8
  ClientContext,
9
9
  LiveblocksProvider,
@@ -40,7 +40,6 @@ import {
40
40
  _useUserThreads_experimental,
41
41
  createLiveblocksContext,
42
42
  createRoomContext,
43
- useAiChatStatus,
44
43
  useAttachmentUrl,
45
44
  useCanRedo,
46
45
  useCanUndo,
@@ -78,7 +77,7 @@ import {
78
77
  useUnsubscribeFromThread,
79
78
  useUpdateNotificationSettings,
80
79
  useUpdateRoomSubscriptionSettings
81
- } from "./chunk-DL5PAL6E.js";
80
+ } from "./chunk-OKYUUXNY.js";
82
81
 
83
82
  // src/index.ts
84
83
  import { detectDupes } from "@liveblocks/core";
@@ -99,7 +98,6 @@ export {
99
98
  _useAddReaction as useAddReaction,
100
99
  _useAiChat as useAiChat,
101
100
  _useAiChatMessages as useAiChatMessages,
102
- useAiChatStatus,
103
101
  _useAiChats as useAiChats,
104
102
  useAttachmentUrl,
105
103
  _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 {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useGroupInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n useAiChatStatus,\n} 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} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAe5B,SAAS,SAAS,oCAAoC;AAZtD,YAAY,UAAU,aAAa,UAAU;","names":[]}
@@ -2,7 +2,7 @@ import * as react from 'react';
2
2
  import { ComponentType, Context, PropsWithChildren, ReactNode } from 'react';
3
3
  import { BaseUserMeta, Client, JsonObject, LsonObject, LiveObject, User, Json, RoomSubscriptionSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, ClientOptions, ThreadData as ThreadData$1, CommentData as CommentData$1 } from '@liveblocks/client';
4
4
  import * as _liveblocks_core from '@liveblocks/core';
5
- import { OpaqueClient, OpaqueRoom, AiKnowledgeSource, AiOpaqueToolDefinition, Relax, AiAssistantContentPart, BaseMetadata, QueryMetadata, AsyncResult, DRI, AsyncSuccess, DGI, GroupData, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, ToImmutable, MessageId, PartialNotificationSettings, AiChatsQuery, AsyncLoading, AsyncError, ThreadData, HistoryVersion, AiChat, 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';
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';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
 
8
8
  /**
@@ -53,25 +53,6 @@ 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
- }>;
75
56
 
76
57
  type UiChatMessage = WithNavigation<AiChatMessage>;
77
58
  type UseSyncStatusOptions = {
@@ -235,7 +216,6 @@ type AiChatAsyncSuccess = AsyncSuccess<AiChat, "chat">;
235
216
  type AiChatAsyncResult = AsyncResult<AiChat, "chat">;
236
217
  type AiChatMessagesAsyncSuccess = AsyncSuccess<readonly UiChatMessage[], "messages">;
237
218
  type AiChatMessagesAsyncResult = AsyncResult<readonly UiChatMessage[], "messages">;
238
-
239
219
  type RoomProviderProps<P extends JsonObject, S extends LsonObject> = Resolve<{
240
220
  /**
241
221
  * The id of the room you want to connect to
@@ -1256,29 +1236,6 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
1256
1236
  * const { chat, error, isLoading } = useAiChat("my-chat");
1257
1237
  */
1258
1238
  useAiChat(chatId: string): AiChatAsyncResult;
1259
- /**
1260
- * Returns the status of an AI chat, indicating whether it's idle or actively
1261
- * generating content. This is a convenience hook that derives its state from
1262
- * the latest assistant message in the chat.
1263
- *
1264
- * Re-renders whenever any of the relevant fields change.
1265
- *
1266
- * @param chatId - The ID of the chat to monitor
1267
- * @returns The current status of the AI chat
1268
- *
1269
- * @example
1270
- * ```tsx
1271
- * import { useAiChatStatus } from "@liveblocks/react";
1272
- *
1273
- * function ChatStatus() {
1274
- * const { status, partType, toolName } = useAiChatStatus("my-chat");
1275
- * console.log(status); // "loading" | "idle" | "generating"
1276
- * console.log(status.partType); // "text" | "tool-invocation" | ...
1277
- * console.log(status.toolName); // string | undefined
1278
- * }
1279
- * ```
1280
- */
1281
- useAiChatStatus(chatId: string, branchId?: MessageId): AiChatStatus;
1282
1239
  suspense: Resolve<LiveblocksContextBundleCommon<M> & SharedContextBundle<U>["suspense"] & {
1283
1240
  /**
1284
1241
  * Returns the inbox notifications for the current user.
@@ -1332,29 +1289,6 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
1332
1289
  * const { chat, error, isLoading } = useAiChat("my-chat");
1333
1290
  */
1334
1291
  useAiChat(chatId: string): AiChatAsyncSuccess;
1335
- /**
1336
- * Returns the status of an AI chat, indicating whether it's idle or actively
1337
- * generating content. This is a convenience hook that derives its state from
1338
- * the latest assistant message in the chat.
1339
- *
1340
- * Re-renders whenever any of the relevant fields change.
1341
- *
1342
- * @param chatId - The ID of the chat to monitor
1343
- * @returns The current status of the AI chat
1344
- *
1345
- * @example
1346
- * ```tsx
1347
- * import { useAiChatStatus } from "@liveblocks/react";
1348
- *
1349
- * function ChatStatus() {
1350
- * const { status, partType, toolName } = useAiChatStatus("my-chat");
1351
- * console.log(status); // "loading" | "idle" | "generating"
1352
- * console.log(status.partType); // "text" | "tool-invocation" | ...
1353
- * console.log(status.toolName); // string | undefined
1354
- * }
1355
- * ```
1356
- */
1357
- useAiChatStatus(chatId: string, branchId?: MessageId): AiChatStatus;
1358
1292
  }>;
1359
1293
  }>;
1360
1294
 
@@ -1603,12 +1537,6 @@ declare function createStore_forNotifications(): {
1603
1537
  updateAssociatedNotification: (newComment: CommentData) => void;
1604
1538
  upsert: (notification: InboxNotificationData) => void;
1605
1539
  };
1606
- declare function createStore_forUnreadNotificationsCount(): {
1607
- signal: DerivedSignal<{
1608
- [k: string]: number;
1609
- }>;
1610
- update: (queryKey: InboxNotificationsQueryKey, count: number) => void;
1611
- };
1612
1540
  declare function createStore_forSubscriptions(updates: ISignal<readonly OptimisticUpdate<BaseMetadata>[]>, threads: ReadonlyThreadDB<BaseMetadata>): {
1613
1541
  signal: DerivedSignal<SubscriptionsByKey>;
1614
1542
  applyDelta: (newSubscriptions: SubscriptionData[], deletedSubscriptions: SubscriptionDeleteInfo[]) => void;
@@ -1665,7 +1593,6 @@ declare class UmbrellaStore<M extends BaseMetadata> {
1665
1593
  readonly subscriptions: ReturnType<typeof createStore_forSubscriptions>;
1666
1594
  readonly roomSubscriptionSettings: ReturnType<typeof createStore_forRoomSubscriptionSettings>;
1667
1595
  readonly historyVersions: ReturnType<typeof createStore_forHistoryVersions>;
1668
- readonly unreadNotificationsCount: ReturnType<typeof createStore_forUnreadNotificationsCount>;
1669
1596
  readonly permissionHints: ReturnType<typeof createStore_forPermissionHints>;
1670
1597
  readonly notificationSettings: ReturnType<typeof createStore_forNotificationSettings>;
1671
1598
  readonly optimisticUpdates: ReturnType<typeof createStore_forOptimistic<M>>;
@@ -1677,7 +1604,6 @@ declare class UmbrellaStore<M extends BaseMetadata> {
1677
1604
  readonly notifications: DerivedSignal<CleanNotifications>;
1678
1605
  readonly threadSubscriptions: DerivedSignal<CleanThreadSubscriptions>;
1679
1606
  readonly loadingNotifications: DefaultMap<InboxNotificationsQueryKey, LoadableResource<InboxNotificationsAsyncResult>>;
1680
- readonly unreadNotificationsCount: DefaultMap<InboxNotificationsQueryKey, LoadableResource<UnreadInboxNotificationsCountAsyncResult>>;
1681
1607
  readonly roomSubscriptionSettingsByRoomId: DefaultMap<RoomId, LoadableResource<RoomSubscriptionSettingsAsyncResult>>;
1682
1608
  readonly versionsByRoomId: DefaultMap<RoomId, LoadableResource<HistoryVersionsAsyncResult>>;
1683
1609
  readonly notificationSettings: LoadableResource<NotificationSettingsAsyncResult>;
@@ -1747,7 +1673,6 @@ declare class UmbrellaStore<M extends BaseMetadata> {
1747
1673
  */
1748
1674
  updateRoomSubscriptionSettings(roomId: string, optimisticId: string, settings: Readonly<RoomSubscriptionSettings$1>): void;
1749
1675
  fetchNotificationsDeltaUpdate(signal: AbortSignal): Promise<void>;
1750
- fetchUnreadNotificationsCount(queryKey: InboxNotificationsQueryKey, signal: AbortSignal): Promise<void>;
1751
1676
  fetchRoomThreadsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
1752
1677
  fetchUserThreadsDeltaUpdate(signal: AbortSignal): Promise<void>;
1753
1678
  fetchRoomVersionsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
@@ -1796,31 +1721,6 @@ declare function useCreateAiChat(): {
1796
1721
  * deleteAiChat("ai-chat-id");
1797
1722
  */
1798
1723
  declare function useDeleteAiChat(): (chatId: string) => void;
1799
- /**
1800
- * Returns the status of an AI chat, indicating whether it's idle or actively
1801
- * generating content. This is a convenience hook that derives its state from
1802
- * the latest assistant message in the chat.
1803
- *
1804
- * Re-renders whenever any of the relevant fields change.
1805
- *
1806
- * @param chatId - The ID of the chat to monitor
1807
- * @returns The current status of the AI chat
1808
- *
1809
- * @example
1810
- * ```tsx
1811
- * import { useAiChatStatus } from "@liveblocks/react";
1812
- *
1813
- * function ChatStatus() {
1814
- * const { status, partType, toolName } = useAiChatStatus("my-chat");
1815
- * console.log(status); // "loading" | "idle" | "generating"
1816
- * console.log(status.partType); // "text" | "tool-invocation" | ...
1817
- * console.log(status.toolName); // string | undefined
1818
- * }
1819
- * ```
1820
- */
1821
- declare function useAiChatStatus(chatId: string,
1822
- /** @internal */
1823
- branchId?: MessageId): AiChatStatus;
1824
1724
  /**
1825
1725
  * Returns a function to send a message in an AI chat.
1826
1726
  *
@@ -2856,4 +2756,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
2856
2756
  */
2857
2757
  declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
2858
2758
 
2859
- export { _useEditThreadMetadata as $, type AiChatStatus as A, createLiveblocksContext as B, ClientContext as C, useDeleteAllInboxNotifications as D, useDeleteInboxNotification as E, useErrorListener as F, type GroupAsyncResult as G, useMarkAllInboxNotificationsAsRead as H, useMarkInboxNotificationAsRead as I, useSyncStatus as J, createRoomContext as K, LiveblocksProvider as L, type MutationContext as M, _RoomProvider as N, _useAddReaction as O, _useBroadcastEvent as P, useCanRedo as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCanUndo as T, type UseSendAiMessageOptions as U, useCreateComment as V, _useCreateThread as W, useDeleteComment as X, _useDeleteThread as Y, useEditComment as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, _useUserThreadsSuspense_experimental as a$, useMarkThreadAsResolved as a0, useMarkThreadAsUnresolved as a1, useSubscribeToThread as a2, useUnsubscribeFromThread as a3, _useEventListener as a4, useHistory as a5, _useIsInsideRoom as a6, useLostConnectionListener as a7, useMarkThreadAsRead as a8, _useMutation as a9, useDeleteAiChat as aA, useSendAiMessage as aB, _useUserThreads_experimental as aC, useRoomInfo as aD, useGroupInfo as aE, useUnreadInboxNotificationsCount as aF, _useUser as aG, _useAiChat as aH, _useAiChats as aI, _useAiChatMessages as aJ, useAiChatStatus as aK, _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_, _useMyPresence as aa, _useOthersListener as ab, useRedo as ac, useRemoveReaction as ad, _useRoom as ae, useStatus as af, _useStorageRoot as ag, useThreadSubscription as ah, useUndo as ai, _useUpdateMyPresence as aj, useUpdateRoomSubscriptionSettings as ak, useHistoryVersionData as al, _useOther as am, _useOthers as an, useOthersConnectionIds as ao, _useOthersMapped as ap, _useSelf as aq, _useStorage as ar, _useThreads as as, useAttachmentUrl as at, _useHistoryVersions as au, _useRoomSubscriptionSettings as av, useInboxNotifications as aw, useNotificationSettings as ax, useUpdateNotificationSettings as ay, useCreateAiChat as az, useCreateRoomComment as b, _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 };
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 };
@@ -2,7 +2,7 @@ import * as react from 'react';
2
2
  import { ComponentType, Context, PropsWithChildren, ReactNode } from 'react';
3
3
  import { BaseUserMeta, Client, JsonObject, LsonObject, LiveObject, User, Json, RoomSubscriptionSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, ClientOptions, ThreadData as ThreadData$1, CommentData as CommentData$1 } from '@liveblocks/client';
4
4
  import * as _liveblocks_core from '@liveblocks/core';
5
- import { OpaqueClient, OpaqueRoom, AiKnowledgeSource, AiOpaqueToolDefinition, Relax, AiAssistantContentPart, BaseMetadata, QueryMetadata, AsyncResult, DRI, AsyncSuccess, DGI, GroupData, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, ToImmutable, MessageId, PartialNotificationSettings, AiChatsQuery, AsyncLoading, AsyncError, ThreadData, HistoryVersion, AiChat, 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';
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';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
 
8
8
  /**
@@ -53,25 +53,6 @@ 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
- }>;
75
56
 
76
57
  type UiChatMessage = WithNavigation<AiChatMessage>;
77
58
  type UseSyncStatusOptions = {
@@ -235,7 +216,6 @@ type AiChatAsyncSuccess = AsyncSuccess<AiChat, "chat">;
235
216
  type AiChatAsyncResult = AsyncResult<AiChat, "chat">;
236
217
  type AiChatMessagesAsyncSuccess = AsyncSuccess<readonly UiChatMessage[], "messages">;
237
218
  type AiChatMessagesAsyncResult = AsyncResult<readonly UiChatMessage[], "messages">;
238
-
239
219
  type RoomProviderProps<P extends JsonObject, S extends LsonObject> = Resolve<{
240
220
  /**
241
221
  * The id of the room you want to connect to
@@ -1256,29 +1236,6 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
1256
1236
  * const { chat, error, isLoading } = useAiChat("my-chat");
1257
1237
  */
1258
1238
  useAiChat(chatId: string): AiChatAsyncResult;
1259
- /**
1260
- * Returns the status of an AI chat, indicating whether it's idle or actively
1261
- * generating content. This is a convenience hook that derives its state from
1262
- * the latest assistant message in the chat.
1263
- *
1264
- * Re-renders whenever any of the relevant fields change.
1265
- *
1266
- * @param chatId - The ID of the chat to monitor
1267
- * @returns The current status of the AI chat
1268
- *
1269
- * @example
1270
- * ```tsx
1271
- * import { useAiChatStatus } from "@liveblocks/react";
1272
- *
1273
- * function ChatStatus() {
1274
- * const { status, partType, toolName } = useAiChatStatus("my-chat");
1275
- * console.log(status); // "loading" | "idle" | "generating"
1276
- * console.log(status.partType); // "text" | "tool-invocation" | ...
1277
- * console.log(status.toolName); // string | undefined
1278
- * }
1279
- * ```
1280
- */
1281
- useAiChatStatus(chatId: string, branchId?: MessageId): AiChatStatus;
1282
1239
  suspense: Resolve<LiveblocksContextBundleCommon<M> & SharedContextBundle<U>["suspense"] & {
1283
1240
  /**
1284
1241
  * Returns the inbox notifications for the current user.
@@ -1332,29 +1289,6 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
1332
1289
  * const { chat, error, isLoading } = useAiChat("my-chat");
1333
1290
  */
1334
1291
  useAiChat(chatId: string): AiChatAsyncSuccess;
1335
- /**
1336
- * Returns the status of an AI chat, indicating whether it's idle or actively
1337
- * generating content. This is a convenience hook that derives its state from
1338
- * the latest assistant message in the chat.
1339
- *
1340
- * Re-renders whenever any of the relevant fields change.
1341
- *
1342
- * @param chatId - The ID of the chat to monitor
1343
- * @returns The current status of the AI chat
1344
- *
1345
- * @example
1346
- * ```tsx
1347
- * import { useAiChatStatus } from "@liveblocks/react";
1348
- *
1349
- * function ChatStatus() {
1350
- * const { status, partType, toolName } = useAiChatStatus("my-chat");
1351
- * console.log(status); // "loading" | "idle" | "generating"
1352
- * console.log(status.partType); // "text" | "tool-invocation" | ...
1353
- * console.log(status.toolName); // string | undefined
1354
- * }
1355
- * ```
1356
- */
1357
- useAiChatStatus(chatId: string, branchId?: MessageId): AiChatStatus;
1358
1292
  }>;
1359
1293
  }>;
1360
1294
 
@@ -1603,12 +1537,6 @@ declare function createStore_forNotifications(): {
1603
1537
  updateAssociatedNotification: (newComment: CommentData) => void;
1604
1538
  upsert: (notification: InboxNotificationData) => void;
1605
1539
  };
1606
- declare function createStore_forUnreadNotificationsCount(): {
1607
- signal: DerivedSignal<{
1608
- [k: string]: number;
1609
- }>;
1610
- update: (queryKey: InboxNotificationsQueryKey, count: number) => void;
1611
- };
1612
1540
  declare function createStore_forSubscriptions(updates: ISignal<readonly OptimisticUpdate<BaseMetadata>[]>, threads: ReadonlyThreadDB<BaseMetadata>): {
1613
1541
  signal: DerivedSignal<SubscriptionsByKey>;
1614
1542
  applyDelta: (newSubscriptions: SubscriptionData[], deletedSubscriptions: SubscriptionDeleteInfo[]) => void;
@@ -1665,7 +1593,6 @@ declare class UmbrellaStore<M extends BaseMetadata> {
1665
1593
  readonly subscriptions: ReturnType<typeof createStore_forSubscriptions>;
1666
1594
  readonly roomSubscriptionSettings: ReturnType<typeof createStore_forRoomSubscriptionSettings>;
1667
1595
  readonly historyVersions: ReturnType<typeof createStore_forHistoryVersions>;
1668
- readonly unreadNotificationsCount: ReturnType<typeof createStore_forUnreadNotificationsCount>;
1669
1596
  readonly permissionHints: ReturnType<typeof createStore_forPermissionHints>;
1670
1597
  readonly notificationSettings: ReturnType<typeof createStore_forNotificationSettings>;
1671
1598
  readonly optimisticUpdates: ReturnType<typeof createStore_forOptimistic<M>>;
@@ -1677,7 +1604,6 @@ declare class UmbrellaStore<M extends BaseMetadata> {
1677
1604
  readonly notifications: DerivedSignal<CleanNotifications>;
1678
1605
  readonly threadSubscriptions: DerivedSignal<CleanThreadSubscriptions>;
1679
1606
  readonly loadingNotifications: DefaultMap<InboxNotificationsQueryKey, LoadableResource<InboxNotificationsAsyncResult>>;
1680
- readonly unreadNotificationsCount: DefaultMap<InboxNotificationsQueryKey, LoadableResource<UnreadInboxNotificationsCountAsyncResult>>;
1681
1607
  readonly roomSubscriptionSettingsByRoomId: DefaultMap<RoomId, LoadableResource<RoomSubscriptionSettingsAsyncResult>>;
1682
1608
  readonly versionsByRoomId: DefaultMap<RoomId, LoadableResource<HistoryVersionsAsyncResult>>;
1683
1609
  readonly notificationSettings: LoadableResource<NotificationSettingsAsyncResult>;
@@ -1747,7 +1673,6 @@ declare class UmbrellaStore<M extends BaseMetadata> {
1747
1673
  */
1748
1674
  updateRoomSubscriptionSettings(roomId: string, optimisticId: string, settings: Readonly<RoomSubscriptionSettings$1>): void;
1749
1675
  fetchNotificationsDeltaUpdate(signal: AbortSignal): Promise<void>;
1750
- fetchUnreadNotificationsCount(queryKey: InboxNotificationsQueryKey, signal: AbortSignal): Promise<void>;
1751
1676
  fetchRoomThreadsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
1752
1677
  fetchUserThreadsDeltaUpdate(signal: AbortSignal): Promise<void>;
1753
1678
  fetchRoomVersionsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
@@ -1796,31 +1721,6 @@ declare function useCreateAiChat(): {
1796
1721
  * deleteAiChat("ai-chat-id");
1797
1722
  */
1798
1723
  declare function useDeleteAiChat(): (chatId: string) => void;
1799
- /**
1800
- * Returns the status of an AI chat, indicating whether it's idle or actively
1801
- * generating content. This is a convenience hook that derives its state from
1802
- * the latest assistant message in the chat.
1803
- *
1804
- * Re-renders whenever any of the relevant fields change.
1805
- *
1806
- * @param chatId - The ID of the chat to monitor
1807
- * @returns The current status of the AI chat
1808
- *
1809
- * @example
1810
- * ```tsx
1811
- * import { useAiChatStatus } from "@liveblocks/react";
1812
- *
1813
- * function ChatStatus() {
1814
- * const { status, partType, toolName } = useAiChatStatus("my-chat");
1815
- * console.log(status); // "loading" | "idle" | "generating"
1816
- * console.log(status.partType); // "text" | "tool-invocation" | ...
1817
- * console.log(status.toolName); // string | undefined
1818
- * }
1819
- * ```
1820
- */
1821
- declare function useAiChatStatus(chatId: string,
1822
- /** @internal */
1823
- branchId?: MessageId): AiChatStatus;
1824
1724
  /**
1825
1725
  * Returns a function to send a message in an AI chat.
1826
1726
  *
@@ -2856,4 +2756,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
2856
2756
  */
2857
2757
  declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
2858
2758
 
2859
- export { _useEditThreadMetadata as $, type AiChatStatus as A, createLiveblocksContext as B, ClientContext as C, useDeleteAllInboxNotifications as D, useDeleteInboxNotification as E, useErrorListener as F, type GroupAsyncResult as G, useMarkAllInboxNotificationsAsRead as H, useMarkInboxNotificationAsRead as I, useSyncStatus as J, createRoomContext as K, LiveblocksProvider as L, type MutationContext as M, _RoomProvider as N, _useAddReaction as O, _useBroadcastEvent as P, useCanRedo as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCanUndo as T, type UseSendAiMessageOptions as U, useCreateComment as V, _useCreateThread as W, useDeleteComment as X, _useDeleteThread as Y, useEditComment as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, _useUserThreadsSuspense_experimental as a$, useMarkThreadAsResolved as a0, useMarkThreadAsUnresolved as a1, useSubscribeToThread as a2, useUnsubscribeFromThread as a3, _useEventListener as a4, useHistory as a5, _useIsInsideRoom as a6, useLostConnectionListener as a7, useMarkThreadAsRead as a8, _useMutation as a9, useDeleteAiChat as aA, useSendAiMessage as aB, _useUserThreads_experimental as aC, useRoomInfo as aD, useGroupInfo as aE, useUnreadInboxNotificationsCount as aF, _useUser as aG, _useAiChat as aH, _useAiChats as aI, _useAiChatMessages as aJ, useAiChatStatus as aK, _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_, _useMyPresence as aa, _useOthersListener as ab, useRedo as ac, useRemoveReaction as ad, _useRoom as ae, useStatus as af, _useStorageRoot as ag, useThreadSubscription as ah, useUndo as ai, _useUpdateMyPresence as aj, useUpdateRoomSubscriptionSettings as ak, useHistoryVersionData as al, _useOther as am, _useOthers as an, useOthersConnectionIds as ao, _useOthersMapped as ap, _useSelf as aq, _useStorage as ar, _useThreads as as, useAttachmentUrl as at, _useHistoryVersions as au, _useRoomSubscriptionSettings as av, useInboxNotifications as aw, useNotificationSettings as ax, useUpdateNotificationSettings as ay, useCreateAiChat as az, useCreateRoomComment as b, _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 };
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 };