@liveblocks/react 3.13.0-rc2 → 3.13.0-rc3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/version.ts
2
2
  var PKG_NAME = "@liveblocks/react";
3
- var PKG_VERSION = "3.13.0-rc2";
3
+ var PKG_VERSION = "3.13.0-rc3";
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-WEWZ7TLA.cjs.map
23
+ //# sourceMappingURL=chunk-VYRWQTZF.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/chunk-WEWZ7TLA.cjs","../src/version.ts","../src/ClientSideSuspense.tsx"],"names":[],"mappings":"AAAA;ACGO,IAAM,SAAA,EAAW,mBAAA;AACjB,IAAM,YAAA,EAAiD,YAAA;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-WEWZ7TLA.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-VYRWQTZF.cjs","../src/version.ts","../src/ClientSideSuspense.tsx"],"names":[],"mappings":"AAAA;ACGO,IAAM,SAAA,EAAW,mBAAA;AACjB,IAAM,YAAA,EAAiD,YAAA;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-VYRWQTZF.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 _chunkWEWZ7TLAcjs = require('./chunk-WEWZ7TLA.cjs');
6
+ var _chunkVYRWQTZFcjs = require('./chunk-VYRWQTZF.cjs');
7
7
 
8
8
 
9
9
 
@@ -80,12 +80,14 @@ var _chunkWEWZ7TLAcjs = require('./chunk-WEWZ7TLA.cjs');
80
80
 
81
81
 
82
82
 
83
- var _chunk26OA537Pcjs = require('./chunk-26OA537P.cjs');
83
+
84
+ var _chunkQFAOGFJKcjs = require('./chunk-QFAOGFJK.cjs');
84
85
 
85
86
  // src/index.ts
86
87
  var _core = require('@liveblocks/core');
87
88
  var _client = require('@liveblocks/client');
88
- _core.detectDupes.call(void 0, _chunkWEWZ7TLAcjs.PKG_NAME, _chunkWEWZ7TLAcjs.PKG_VERSION, _chunkWEWZ7TLAcjs.PKG_FORMAT);
89
+ _core.detectDupes.call(void 0, _chunkVYRWQTZFcjs.PKG_NAME, _chunkVYRWQTZFcjs.PKG_VERSION, _chunkVYRWQTZFcjs.PKG_FORMAT);
90
+
89
91
 
90
92
 
91
93
 
@@ -165,5 +167,5 @@ _core.detectDupes.call(void 0, _chunkWEWZ7TLAcjs.PKG_NAME, _chunkWEWZ7TLAcjs.PKG
165
167
 
166
168
 
167
169
 
168
- exports.ClientContext = _chunk26OA537Pcjs.ClientContext; exports.ClientSideSuspense = _chunkWEWZ7TLAcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunk26OA537Pcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunk26OA537Pcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunk26OA537Pcjs.RegisterAiTool; exports.RoomContext = _chunk26OA537Pcjs.RoomContext; exports.RoomProvider = _chunk26OA537Pcjs._RoomProvider; exports.createLiveblocksContext = _chunk26OA537Pcjs.createLiveblocksContext; exports.createRoomContext = _chunk26OA537Pcjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunk26OA537Pcjs._useAddReaction; exports.useAiChat = _chunk26OA537Pcjs._useAiChat; exports.useAiChatMessages = _chunk26OA537Pcjs._useAiChatMessages; exports.useAiChatStatus = _chunk26OA537Pcjs.useAiChatStatus; exports.useAiChats = _chunk26OA537Pcjs._useAiChats; exports.useAttachmentUrl = _chunk26OA537Pcjs.useAttachmentUrl; exports.useBroadcastEvent = _chunk26OA537Pcjs._useBroadcastEvent; exports.useCanRedo = _chunk26OA537Pcjs.useCanRedo; exports.useCanUndo = _chunk26OA537Pcjs.useCanUndo; exports.useClient = _chunk26OA537Pcjs.useClient; exports.useCreateAiChat = _chunk26OA537Pcjs.useCreateAiChat; exports.useCreateComment = _chunk26OA537Pcjs.useCreateComment; exports.useCreateThread = _chunk26OA537Pcjs._useCreateThread; exports.useDeleteAiChat = _chunk26OA537Pcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunk26OA537Pcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunk26OA537Pcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunk26OA537Pcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunk26OA537Pcjs._useDeleteThread; exports.useEditComment = _chunk26OA537Pcjs.useEditComment; exports.useEditThreadMetadata = _chunk26OA537Pcjs._useEditThreadMetadata; exports.useErrorListener = _chunk26OA537Pcjs.useErrorListener; exports.useEventListener = _chunk26OA537Pcjs._useEventListener; exports.useGroupInfo = _chunk26OA537Pcjs.useGroupInfo; exports.useHistory = _chunk26OA537Pcjs.useHistory; exports.useHistoryVersionData = _chunk26OA537Pcjs.useHistoryVersionData; exports.useHistoryVersions = _chunk26OA537Pcjs._useHistoryVersions; exports.useInboxNotificationThread = _chunk26OA537Pcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunk26OA537Pcjs.useInboxNotifications; exports.useIsInsideRoom = _chunk26OA537Pcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunk26OA537Pcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunk26OA537Pcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunk26OA537Pcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunk26OA537Pcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunk26OA537Pcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunk26OA537Pcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunk26OA537Pcjs._useMutation; exports.useMyPresence = _chunk26OA537Pcjs._useMyPresence; exports.useNotificationSettings = _chunk26OA537Pcjs.useNotificationSettings; exports.useOther = _chunk26OA537Pcjs._useOther; exports.useOthers = _chunk26OA537Pcjs._useOthers; exports.useOthersConnectionIds = _chunk26OA537Pcjs.useOthersConnectionIds; exports.useOthersListener = _chunk26OA537Pcjs._useOthersListener; exports.useOthersMapped = _chunk26OA537Pcjs._useOthersMapped; exports.useRedo = _chunk26OA537Pcjs.useRedo; exports.useRemoveReaction = _chunk26OA537Pcjs.useRemoveReaction; exports.useRoom = _chunk26OA537Pcjs._useRoom; exports.useRoomInfo = _chunk26OA537Pcjs.useRoomInfo; exports.useRoomSubscriptionSettings = _chunk26OA537Pcjs._useRoomSubscriptionSettings; exports.useSearchComments = _chunk26OA537Pcjs._useSearchComments; exports.useSelf = _chunk26OA537Pcjs._useSelf; exports.useSendAiMessage = _chunk26OA537Pcjs.useSendAiMessage; exports.useStatus = _chunk26OA537Pcjs.useStatus; exports.useStorage = _chunk26OA537Pcjs._useStorage; exports.useStorageRoot = _chunk26OA537Pcjs._useStorageRoot; exports.useSubscribeToThread = _chunk26OA537Pcjs.useSubscribeToThread; exports.useSyncStatus = _chunk26OA537Pcjs.useSyncStatus; exports.useThreadSubscription = _chunk26OA537Pcjs.useThreadSubscription; exports.useThreads = _chunk26OA537Pcjs._useThreads; exports.useUndo = _chunk26OA537Pcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunk26OA537Pcjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunk26OA537Pcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunk26OA537Pcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunk26OA537Pcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunk26OA537Pcjs.useUpdateRoomSubscriptionSettings; exports.useUrlMetadata = _chunk26OA537Pcjs._useUrlMetadata; exports.useUser = _chunk26OA537Pcjs._useUser; exports.useUserThreads_experimental = _chunk26OA537Pcjs._useUserThreads_experimental;
170
+ exports.ClientContext = _chunkQFAOGFJKcjs.ClientContext; exports.ClientSideSuspense = _chunkVYRWQTZFcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkQFAOGFJKcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkQFAOGFJKcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkQFAOGFJKcjs.RegisterAiTool; exports.RoomContext = _chunkQFAOGFJKcjs.RoomContext; exports.RoomProvider = _chunkQFAOGFJKcjs._RoomProvider; exports.createLiveblocksContext = _chunkQFAOGFJKcjs.createLiveblocksContext; exports.createRoomContext = _chunkQFAOGFJKcjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkQFAOGFJKcjs._useAddReaction; exports.useAiChat = _chunkQFAOGFJKcjs._useAiChat; exports.useAiChatMessages = _chunkQFAOGFJKcjs._useAiChatMessages; exports.useAiChatStatus = _chunkQFAOGFJKcjs.useAiChatStatus; exports.useAiChats = _chunkQFAOGFJKcjs._useAiChats; exports.useAttachmentUrl = _chunkQFAOGFJKcjs.useAttachmentUrl; exports.useBroadcastEvent = _chunkQFAOGFJKcjs._useBroadcastEvent; exports.useCanRedo = _chunkQFAOGFJKcjs.useCanRedo; exports.useCanUndo = _chunkQFAOGFJKcjs.useCanUndo; exports.useClient = _chunkQFAOGFJKcjs.useClient; exports.useCreateAiChat = _chunkQFAOGFJKcjs.useCreateAiChat; exports.useCreateComment = _chunkQFAOGFJKcjs._useCreateComment; exports.useCreateThread = _chunkQFAOGFJKcjs._useCreateThread; exports.useDeleteAiChat = _chunkQFAOGFJKcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkQFAOGFJKcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkQFAOGFJKcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkQFAOGFJKcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkQFAOGFJKcjs._useDeleteThread; exports.useEditComment = _chunkQFAOGFJKcjs._useEditComment; exports.useEditCommentMetadata = _chunkQFAOGFJKcjs._useEditCommentMetadata; exports.useEditThreadMetadata = _chunkQFAOGFJKcjs._useEditThreadMetadata; exports.useErrorListener = _chunkQFAOGFJKcjs.useErrorListener; exports.useEventListener = _chunkQFAOGFJKcjs._useEventListener; exports.useGroupInfo = _chunkQFAOGFJKcjs.useGroupInfo; exports.useHistory = _chunkQFAOGFJKcjs.useHistory; exports.useHistoryVersionData = _chunkQFAOGFJKcjs.useHistoryVersionData; exports.useHistoryVersions = _chunkQFAOGFJKcjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkQFAOGFJKcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkQFAOGFJKcjs.useInboxNotifications; exports.useIsInsideRoom = _chunkQFAOGFJKcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkQFAOGFJKcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkQFAOGFJKcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkQFAOGFJKcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkQFAOGFJKcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkQFAOGFJKcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkQFAOGFJKcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkQFAOGFJKcjs._useMutation; exports.useMyPresence = _chunkQFAOGFJKcjs._useMyPresence; exports.useNotificationSettings = _chunkQFAOGFJKcjs.useNotificationSettings; exports.useOther = _chunkQFAOGFJKcjs._useOther; exports.useOthers = _chunkQFAOGFJKcjs._useOthers; exports.useOthersConnectionIds = _chunkQFAOGFJKcjs.useOthersConnectionIds; exports.useOthersListener = _chunkQFAOGFJKcjs._useOthersListener; exports.useOthersMapped = _chunkQFAOGFJKcjs._useOthersMapped; exports.useRedo = _chunkQFAOGFJKcjs.useRedo; exports.useRemoveReaction = _chunkQFAOGFJKcjs.useRemoveReaction; exports.useRoom = _chunkQFAOGFJKcjs._useRoom; exports.useRoomInfo = _chunkQFAOGFJKcjs.useRoomInfo; exports.useRoomSubscriptionSettings = _chunkQFAOGFJKcjs._useRoomSubscriptionSettings; exports.useSearchComments = _chunkQFAOGFJKcjs._useSearchComments; exports.useSelf = _chunkQFAOGFJKcjs._useSelf; exports.useSendAiMessage = _chunkQFAOGFJKcjs.useSendAiMessage; exports.useStatus = _chunkQFAOGFJKcjs.useStatus; exports.useStorage = _chunkQFAOGFJKcjs._useStorage; exports.useStorageRoot = _chunkQFAOGFJKcjs._useStorageRoot; exports.useSubscribeToThread = _chunkQFAOGFJKcjs.useSubscribeToThread; exports.useSyncStatus = _chunkQFAOGFJKcjs.useSyncStatus; exports.useThreadSubscription = _chunkQFAOGFJKcjs.useThreadSubscription; exports.useThreads = _chunkQFAOGFJKcjs._useThreads; exports.useUndo = _chunkQFAOGFJKcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkQFAOGFJKcjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunkQFAOGFJKcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkQFAOGFJKcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkQFAOGFJKcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkQFAOGFJKcjs.useUpdateRoomSubscriptionSettings; exports.useUrlMetadata = _chunkQFAOGFJKcjs._useUrlMetadata; exports.useUser = _chunkQFAOGFJKcjs._useUser; exports.useUserThreads_experimental = _chunkQFAOGFJKcjs._useUserThreads_experimental;
169
171
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","../src/index.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;ACnFA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADoF7C;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,q8JAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","sourcesContent":[null,"/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseSendAiMessageOptions,\n UseThreadsOptions,\n SendAiMessageOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useThreads,\n useSearchComments,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useGroupInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n useAiChatStatus,\n useUrlMetadata,\n} from \"./liveblocks\";\n"]}
1
+ {"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","../src/index.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;ACpFA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADqF7C;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,mhKAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","sourcesContent":[null,"/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseSendAiMessageOptions,\n UseThreadsOptions,\n SendAiMessageOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useEditCommentMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useThreads,\n useSearchComments,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useGroupInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n useAiChatStatus,\n useUrlMetadata,\n} from \"./liveblocks\";\n"]}
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-BadENFHi.cjs';
2
- export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, B as createLiveblocksContext, K as createRoomContext, O as useAddReaction, aI as useAiChat, aK as useAiChatMessages, aL as useAiChatStatus, aJ as useAiChats, au as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, aA as useCreateAiChat, V as useCreateComment, W as useCreateThread, aB as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, $ as useEditThreadMetadata, F as useErrorListener, a4 as useEventListener, aF as useGroupInfo, a5 as useHistory, al as useHistoryVersionData, av as useHistoryVersions, _ as useInboxNotificationThread, ax as useInboxNotifications, a6 as useIsInsideRoom, a7 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a8 as useMarkThreadAsRead, a0 as useMarkThreadAsResolved, a1 as useMarkThreadAsUnresolved, a9 as useMutation, aa as useMyPresence, ay as useNotificationSettings, am as useOther, an as useOthers, ao as useOthersConnectionIds, ab as useOthersListener, ap as useOthersMapped, ac as useRedo, ad as useRemoveReaction, ae as useRoom, aE as useRoomInfo, aw as useRoomSubscriptionSettings, at as useSearchComments, aq as useSelf, aC as useSendAiMessage, af as useStatus, ar as useStorage, ag as useStorageRoot, a2 as useSubscribeToThread, J as useSyncStatus, ah as useThreadSubscription, as as useThreads, ai as useUndo, aG as useUnreadInboxNotificationsCount, a3 as useUnsubscribeFromThread, aj as useUpdateMyPresence, az as useUpdateNotificationSettings, ak as useUpdateRoomSubscriptionSettings, aM as useUrlMetadata, aH as useUser, aD as useUserThreads_experimental } from './room-BadENFHi.cjs';
1
+ import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-CEMGQ1Mj.cjs';
2
+ export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, B as createLiveblocksContext, K as createRoomContext, O as useAddReaction, aJ as useAiChat, aL as useAiChatMessages, aM as useAiChatStatus, aK as useAiChats, av as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, aB as useCreateAiChat, V as useCreateComment, W as useCreateThread, aC as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, a0 as useEditCommentMetadata, $ as useEditThreadMetadata, F as useErrorListener, a5 as useEventListener, aG as useGroupInfo, a6 as useHistory, am as useHistoryVersionData, aw as useHistoryVersions, _ as useInboxNotificationThread, ay as useInboxNotifications, a7 as useIsInsideRoom, a8 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a9 as useMarkThreadAsRead, a1 as useMarkThreadAsResolved, a2 as useMarkThreadAsUnresolved, aa as useMutation, ab as useMyPresence, az as useNotificationSettings, an as useOther, ao as useOthers, ap as useOthersConnectionIds, ac as useOthersListener, aq as useOthersMapped, ad as useRedo, ae as useRemoveReaction, af as useRoom, aF as useRoomInfo, ax as useRoomSubscriptionSettings, au as useSearchComments, ar as useSelf, aD as useSendAiMessage, ag as useStatus, as as useStorage, ah as useStorageRoot, a3 as useSubscribeToThread, J as useSyncStatus, ai as useThreadSubscription, at as useThreads, aj as useUndo, aH as useUnreadInboxNotificationsCount, a4 as useUnsubscribeFromThread, ak as useUpdateMyPresence, aA as useUpdateNotificationSettings, al as useUpdateRoomSubscriptionSettings, aN as useUrlMetadata, aI as useUser, aE as useUserThreads_experimental } from './room-CEMGQ1Mj.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-BadENFHi.js';
2
- export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, B as createLiveblocksContext, K as createRoomContext, O as useAddReaction, aI as useAiChat, aK as useAiChatMessages, aL as useAiChatStatus, aJ as useAiChats, au as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, aA as useCreateAiChat, V as useCreateComment, W as useCreateThread, aB as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, $ as useEditThreadMetadata, F as useErrorListener, a4 as useEventListener, aF as useGroupInfo, a5 as useHistory, al as useHistoryVersionData, av as useHistoryVersions, _ as useInboxNotificationThread, ax as useInboxNotifications, a6 as useIsInsideRoom, a7 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a8 as useMarkThreadAsRead, a0 as useMarkThreadAsResolved, a1 as useMarkThreadAsUnresolved, a9 as useMutation, aa as useMyPresence, ay as useNotificationSettings, am as useOther, an as useOthers, ao as useOthersConnectionIds, ab as useOthersListener, ap as useOthersMapped, ac as useRedo, ad as useRemoveReaction, ae as useRoom, aE as useRoomInfo, aw as useRoomSubscriptionSettings, at as useSearchComments, aq as useSelf, aC as useSendAiMessage, af as useStatus, ar as useStorage, ag as useStorageRoot, a2 as useSubscribeToThread, J as useSyncStatus, ah as useThreadSubscription, as as useThreads, ai as useUndo, aG as useUnreadInboxNotificationsCount, a3 as useUnsubscribeFromThread, aj as useUpdateMyPresence, az as useUpdateNotificationSettings, ak as useUpdateRoomSubscriptionSettings, aM as useUrlMetadata, aH as useUser, aD as useUserThreads_experimental } from './room-BadENFHi.js';
1
+ import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-CEMGQ1Mj.js';
2
+ export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, B as createLiveblocksContext, K as createRoomContext, O as useAddReaction, aJ as useAiChat, aL as useAiChatMessages, aM as useAiChatStatus, aK as useAiChats, av as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, aB as useCreateAiChat, V as useCreateComment, W as useCreateThread, aC as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, a0 as useEditCommentMetadata, $ as useEditThreadMetadata, F as useErrorListener, a5 as useEventListener, aG as useGroupInfo, a6 as useHistory, am as useHistoryVersionData, aw as useHistoryVersions, _ as useInboxNotificationThread, ay as useInboxNotifications, a7 as useIsInsideRoom, a8 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a9 as useMarkThreadAsRead, a1 as useMarkThreadAsResolved, a2 as useMarkThreadAsUnresolved, aa as useMutation, ab as useMyPresence, az as useNotificationSettings, an as useOther, ao as useOthers, ap as useOthersConnectionIds, ac as useOthersListener, aq as useOthersMapped, ad as useRedo, ae as useRemoveReaction, af as useRoom, aF as useRoomInfo, ax as useRoomSubscriptionSettings, au as useSearchComments, ar as useSelf, aD as useSendAiMessage, ag as useStatus, as as useStorage, ah as useStorageRoot, a3 as useSubscribeToThread, J as useSyncStatus, ai as useThreadSubscription, at as useThreads, aj as useUndo, aH as useUnreadInboxNotificationsCount, a4 as useUnsubscribeFromThread, ak as useUpdateMyPresence, aA as useUpdateNotificationSettings, al as useUpdateRoomSubscriptionSettings, aN as useUrlMetadata, aI as useUser, aE as useUserThreads_experimental } from './room-CEMGQ1Mj.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-XU7FO2TU.js";
6
+ } from "./chunk-KCLBMGZZ.js";
7
7
  import {
8
8
  ClientContext,
9
9
  LiveblocksProvider,
@@ -16,8 +16,11 @@ import {
16
16
  _useAiChatMessages,
17
17
  _useAiChats,
18
18
  _useBroadcastEvent,
19
+ _useCreateComment,
19
20
  _useCreateThread,
20
21
  _useDeleteThread,
22
+ _useEditComment,
23
+ _useEditCommentMetadata,
21
24
  _useEditThreadMetadata,
22
25
  _useEventListener,
23
26
  _useHistoryVersions,
@@ -48,12 +51,10 @@ import {
48
51
  useCanUndo,
49
52
  useClient,
50
53
  useCreateAiChat,
51
- useCreateComment,
52
54
  useDeleteAiChat,
53
55
  useDeleteAllInboxNotifications,
54
56
  useDeleteComment,
55
57
  useDeleteInboxNotification,
56
- useEditComment,
57
58
  useErrorListener,
58
59
  useGroupInfo,
59
60
  useHistory,
@@ -80,7 +81,7 @@ import {
80
81
  useUnsubscribeFromThread,
81
82
  useUpdateNotificationSettings,
82
83
  useUpdateRoomSubscriptionSettings
83
- } from "./chunk-ZAB3RDMV.js";
84
+ } from "./chunk-ERRJHA6O.js";
84
85
 
85
86
  // src/index.ts
86
87
  import { detectDupes } from "@liveblocks/core";
@@ -109,14 +110,15 @@ export {
109
110
  useCanUndo,
110
111
  useClient,
111
112
  useCreateAiChat,
112
- useCreateComment,
113
+ _useCreateComment as useCreateComment,
113
114
  _useCreateThread as useCreateThread,
114
115
  useDeleteAiChat,
115
116
  useDeleteAllInboxNotifications,
116
117
  useDeleteComment,
117
118
  useDeleteInboxNotification,
118
119
  _useDeleteThread as useDeleteThread,
119
- useEditComment,
120
+ _useEditComment as useEditComment,
121
+ _useEditCommentMetadata as useEditCommentMetadata,
120
122
  _useEditThreadMetadata as useEditThreadMetadata,
121
123
  useErrorListener,
122
124
  _useEventListener as useEventListener,
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 useSearchComments,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useGroupInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n useAiChatStatus,\n useUrlMetadata,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAe5B,SAAS,SAAS,oCAAoC;AAZtD,YAAY,UAAU,aAAa,UAAU;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseSendAiMessageOptions,\n UseThreadsOptions,\n SendAiMessageOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useEditCommentMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useThreads,\n useSearchComments,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useGroupInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n useAiChatStatus,\n useUrlMetadata,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAe5B,SAAS,SAAS,oCAAoC;AAZtD,YAAY,UAAU,aAAa,UAAU;","names":[]}