@liveblocks/react 3.2.1 → 3.3.1

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.
@@ -2,7 +2,7 @@ import * as react from 'react';
2
2
  import { ComponentType, Context, PropsWithChildren, ReactNode } from 'react';
3
3
  import { BaseUserMeta, Client, JsonObject, LsonObject, LiveObject, User, Json, RoomSubscriptionSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, ClientOptions, ThreadData as ThreadData$1, CommentData as CommentData$1 } from '@liveblocks/client';
4
4
  import * as _liveblocks_core from '@liveblocks/core';
5
- import { OpaqueClient, OpaqueRoom, AiKnowledgeSource, AiOpaqueToolDefinition, BaseMetadata, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, Relax, ToImmutable, PartialNotificationSettings, AsyncLoading, AsyncError, ThreadData, HistoryVersion, AiChat, Client as Client$1, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, WithNavigation, AiChatMessage, 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, DP, DS, DE } from '@liveblocks/core';
5
+ import { OpaqueClient, OpaqueRoom, AiKnowledgeSource, AiOpaqueToolDefinition, BaseMetadata, QueryMetadata, AsyncResult, DRI, AsyncSuccess, 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, DP, DS, DE } from '@liveblocks/core';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
 
8
8
  /**
@@ -66,14 +66,40 @@ type UseSyncStatusOptions = {
66
66
  };
67
67
  type UseSendAiMessageOptions = {
68
68
  /**
69
- * The id of the copilot to use to send the message.
69
+ * The ID of the copilot to use to send the message.
70
70
  */
71
71
  copilotId?: string;
72
- /** Stream the response as it is being generated. Defaults to true. */
72
+ /**
73
+ * Stream the response as it is being generated. Defaults to true.
74
+ */
73
75
  stream?: boolean;
74
- /** The maximum timeout for the answer to be generated. */
76
+ /**
77
+ * The maximum timeout for the answer to be generated.
78
+ */
75
79
  timeout?: number;
76
80
  };
81
+ type SendAiMessageOptions = UseSendAiMessageOptions & {
82
+ /**
83
+ * The ID of the chat to send the message to.
84
+ */
85
+ chatId?: string;
86
+ /**
87
+ * The text of the message to send.
88
+ */
89
+ text: string;
90
+ };
91
+ type CreateAiChatOptions = {
92
+ id: string;
93
+ title?: string;
94
+ metadata?: Record<string, string | string[]>;
95
+ };
96
+ type UseAiChatsOptions = {
97
+ /**
98
+ * The query (including metadata) to filter the chats by. If provided, only chats
99
+ * that match the query will be returned. If not provided, all chats will be returned.
100
+ */
101
+ query?: AiChatsQuery;
102
+ };
77
103
  type ThreadsQuery<M extends BaseMetadata> = {
78
104
  /**
79
105
  * Whether to only return threads marked as resolved or unresolved. If not provided,
@@ -1050,13 +1076,17 @@ type LiveblocksContextBundleCommon<M extends BaseMetadata> = {
1050
1076
  *
1051
1077
  * @example
1052
1078
  * const createAiChat = useCreateAiChat();
1079
+ *
1080
+ * // Create a chat with an automatically generated title
1081
+ * createAiChat("ai-chat-id");
1082
+ *
1083
+ * // Create a chat with a custom title
1053
1084
  * createAiChat({ id: "ai-chat-id", title: "My AI chat" });
1054
1085
  */
1055
- useCreateAiChat(): (options: {
1056
- id: string;
1057
- title?: string;
1058
- metadata?: Record<string, string | string[]>;
1059
- }) => void;
1086
+ useCreateAiChat(): {
1087
+ (chatId: string): void;
1088
+ (options: CreateAiChatOptions): void;
1089
+ };
1060
1090
  /**
1061
1091
  * Returns a function that deletes the AI chat with the specified id.
1062
1092
  *
@@ -1069,10 +1099,65 @@ type LiveblocksContextBundleCommon<M extends BaseMetadata> = {
1069
1099
  * Returns a function to send a message in an AI chat.
1070
1100
  *
1071
1101
  * @example
1072
- * const sendMessage = useSendAiMessage(chatId);
1073
- * sendMessage("Hello, Liveblocks AI!");
1102
+ * const sendAiMessage = useSendAiMessage("chat-id");
1103
+ * sendAiMessage("Hello, Liveblocks AI!");
1104
+ *
1105
+ * You can set options related to the message being sent, such as the copilot ID to use.
1106
+ *
1107
+ * @example
1108
+ * const sendAiMessage = useSendAiMessage("chat-id", { copilotId: "co_xxx" });
1109
+ * sendAiMessage("Hello, Liveblocks AI!");
1110
+ *
1111
+ * @example
1112
+ * const sendAiMessage = useSendAiMessage("chat-id", { copilotId: "co_xxx" });
1113
+ * sendAiMessage({ text: "Hello, Liveblocks AI!", copilotId: "co_yyy" });
1114
+ */
1115
+ useSendAiMessage(chatId: string, options?: UseSendAiMessageOptions): {
1116
+ (text: string): AiUserMessage;
1117
+ (options: SendAiMessageOptions): AiUserMessage;
1118
+ };
1119
+ /**
1120
+ * Returns a function to send a message in an AI chat.
1121
+ *
1122
+ * @example
1123
+ * const sendAiMessage = useSendAiMessage();
1124
+ * sendAiMessage({ chatId: "chat-id", text: "Hello, Liveblocks AI!" });
1125
+ *
1126
+ * You can set options related to the message being sent, such as the copilot ID to use.
1127
+ *
1128
+ * @example
1129
+ * const sendAiMessage = useSendAiMessage();
1130
+ * sendAiMessage({ chatId: "chat-id", text: "Hello, Liveblocks AI!", copilotId: "co_xxx" });
1074
1131
  */
1075
- useSendAiMessage(chatId: string, options?: UseSendAiMessageOptions): (message: string) => void;
1132
+ useSendAiMessage(): (message: WithRequired<SendAiMessageOptions, "chatId">) => AiChatMessage;
1133
+ /**
1134
+ * Returns a function to send a message in an AI chat.
1135
+ *
1136
+ * @example
1137
+ * const sendAiMessage = useSendAiMessage(chatId);
1138
+ * sendAiMessage("Hello, Liveblocks AI!");
1139
+ *
1140
+ * You can set options related to the message being sent, such as the copilot ID to use.
1141
+ *
1142
+ * @example
1143
+ * const sendAiMessage = useSendAiMessage(chatId, { copilotId: "co_xxx" });
1144
+ * sendAiMessage("Hello, Liveblocks AI!");
1145
+ *
1146
+ * You can also pass the chat ID dynamically if it's not known when calling the hook.
1147
+ *
1148
+ * @example
1149
+ * const sendAiMessage = useSendAiMessage();
1150
+ * sendAiMessage({ chatId: "chat-id", text: "Hello, Liveblocks AI!" });
1151
+ *
1152
+ * @example
1153
+ * const sendAiMessage = useSendAiMessage();
1154
+ * sendAiMessage({ chatId: "chat-id", text: "Hello, Liveblocks AI!", copilotId: "co_xxx" });
1155
+ */
1156
+ useSendAiMessage(chatId?: string, options?: UseSendAiMessageOptions): {
1157
+ (text: string): AiUserMessage;
1158
+ (options: SendAiMessageOptions): AiUserMessage;
1159
+ (options: WithRequired<SendAiMessageOptions, "chatId">): AiUserMessage;
1160
+ };
1076
1161
  };
1077
1162
  type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = Resolve<LiveblocksContextBundleCommon<M> & SharedContextBundle<U>["classic"] & {
1078
1163
  /**
@@ -1102,7 +1187,7 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
1102
1187
  * @example
1103
1188
  * const { chats, error, isLoading } = useAiChats();
1104
1189
  */
1105
- useAiChats(): AiChatsAsyncResult;
1190
+ useAiChats(options?: UseAiChatsOptions): AiChatsAsyncResult;
1106
1191
  /**
1107
1192
  * (Private beta) Returns the messages in the given chat.
1108
1193
  *
@@ -1155,7 +1240,7 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
1155
1240
  * @example
1156
1241
  * const { chats } = useAiChats();
1157
1242
  */
1158
- useAiChats(): AiChatsAsyncSuccess;
1243
+ useAiChats(options?: UseAiChatsOptions): AiChatsAsyncSuccess;
1159
1244
  /**
1160
1245
  * (Private beta) Returns the messages in the given chat.
1161
1246
  *
@@ -1358,6 +1443,7 @@ type LoadableResource<T> = {
1358
1443
  type RoomId = string;
1359
1444
  type UserQueryKey = string;
1360
1445
  type RoomQueryKey = string;
1446
+ type AiChatsQueryKey = string;
1361
1447
  /**
1362
1448
  * A lookup table (LUT) for all the inbox notifications.
1363
1449
  */
@@ -1486,7 +1572,7 @@ declare class UmbrellaStore<M extends BaseMetadata> {
1486
1572
  readonly roomSubscriptionSettingsByRoomId: DefaultMap<RoomId, LoadableResource<RoomSubscriptionSettingsAsyncResult>>;
1487
1573
  readonly versionsByRoomId: DefaultMap<RoomId, LoadableResource<HistoryVersionsAsyncResult>>;
1488
1574
  readonly notificationSettings: LoadableResource<NotificationSettingsAsyncResult>;
1489
- readonly aiChats: LoadableResource<AiChatsAsyncResult>;
1575
+ readonly aiChats: DefaultMap<AiChatsQueryKey, LoadableResource<AiChatsAsyncResult>>;
1490
1576
  readonly messagesByChatId: DefaultMap<string, DefaultMap<MessageId | null, LoadableResource<AiChatMessagesAsyncResult>>>;
1491
1577
  readonly aiChatById: DefaultMap<string, LoadableResource<AiChatAsyncResult>>;
1492
1578
  };
@@ -1581,13 +1667,17 @@ declare function getUmbrellaStoreForClient<M extends BaseMetadata$1>(client: Opa
1581
1667
  *
1582
1668
  * @example
1583
1669
  * const createAiChat = useCreateAiChat();
1670
+ *
1671
+ * // Create a chat with an automatically generated title
1672
+ * createAiChat("ai-chat-id");
1673
+ *
1674
+ * // Create a chat with a custom title
1584
1675
  * createAiChat({ id: "ai-chat-id", title: "My AI chat" });
1585
1676
  */
1586
- declare function useCreateAiChat(): (options: {
1587
- id: string;
1588
- title?: string;
1589
- metadata?: Record<string, string | string[]>;
1590
- }) => void;
1677
+ declare function useCreateAiChat(): {
1678
+ (chatId: string): void;
1679
+ (options: CreateAiChatOptions): void;
1680
+ };
1591
1681
  /**
1592
1682
  * Returns a function that deletes the AI chat with the specified id.
1593
1683
  *
@@ -1600,10 +1690,37 @@ declare function useDeleteAiChat(): (chatId: string) => void;
1600
1690
  * Returns a function to send a message in an AI chat.
1601
1691
  *
1602
1692
  * @example
1603
- * const sendMessage = useSendAiMessage(chatId);
1604
- * sendMessage("Hello, Liveblocks AI!");
1693
+ * const sendAiMessage = useSendAiMessage("chat-id");
1694
+ * sendAiMessage("Hello, Liveblocks AI!");
1695
+ *
1696
+ * You can set options related to the message being sent, such as the copilot ID to use.
1697
+ *
1698
+ * @example
1699
+ * const sendAiMessage = useSendAiMessage("chat-id", { copilotId: "co_xxx" });
1700
+ * sendAiMessage("Hello, Liveblocks AI!");
1701
+ *
1702
+ * @example
1703
+ * const sendAiMessage = useSendAiMessage("chat-id", { copilotId: "co_xxx" });
1704
+ * sendAiMessage({ text: "Hello, Liveblocks AI!", copilotId: "co_yyy" });
1705
+ */
1706
+ declare function useSendAiMessage(chatId: string, options?: UseSendAiMessageOptions): {
1707
+ (text: string): AiUserMessage;
1708
+ (options: SendAiMessageOptions): AiUserMessage;
1709
+ };
1710
+ /**
1711
+ * Returns a function to send a message in an AI chat.
1712
+ *
1713
+ * @example
1714
+ * const sendAiMessage = useSendAiMessage();
1715
+ * sendAiMessage({ chatId: "chat-id", text: "Hello, Liveblocks AI!" });
1716
+ *
1717
+ * You can set options related to the message being sent, such as the copilot ID to use.
1718
+ *
1719
+ * @example
1720
+ * const sendAiMessage = useSendAiMessage();
1721
+ * sendAiMessage({ chatId: "chat-id", text: "Hello, Liveblocks AI!", copilotId: "co_xxx" });
1605
1722
  */
1606
- declare function useSendAiMessage(chatId: string, options?: UseSendAiMessageOptions): (message: string) => void;
1723
+ declare function useSendAiMessage(): (options: WithRequired<SendAiMessageOptions, "chatId">) => AiUserMessage;
1607
1724
  /**
1608
1725
  * Sets up a client for connecting to Liveblocks, and is the recommended way to do
1609
1726
  * this for React apps. You must define either `authEndpoint` or `publicApiKey`.
@@ -2593,4 +2710,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
2593
2710
  */
2594
2711
  declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
2595
2712
 
2596
- export { useSubscribeToThread as $, createLiveblocksContext as A, useDeleteAllInboxNotifications as B, ClientContext as C, useDeleteInboxNotification as D, useErrorListener as E, useMarkAllInboxNotificationsAsRead as F, useMarkInboxNotificationAsRead as G, useSyncStatus as H, createRoomContext as I, _RoomProvider as J, _useAddReaction as K, LiveblocksProvider as L, type MutationContext as M, _useBroadcastEvent as N, useCanRedo as O, useCanUndo as P, useCreateComment as Q, type RegisterAiKnowledgeProps as R, _useCreateThread as S, useDeleteComment as T, type UseSendAiMessageOptions as U, _useDeleteThread as V, useEditComment as W, _useEditThreadMetadata as X, useMarkThreadAsResolved as Y, useMarkThreadAsUnresolved as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, useUnsubscribeFromThread as a0, _useEventListener as a1, useHistory as a2, _useIsInsideRoom as a3, useLostConnectionListener as a4, useMarkThreadAsRead as a5, _useMutation as a6, _useMyPresence as a7, _useOthersListener as a8, useRedo as a9, useRoomInfo as aA, useUnreadInboxNotificationsCount as aB, _useUser as aC, _useAiChat as aD, _useAiChats as aE, _useAiChatMessages as aF, _useOtherSuspense as aG, _useOthersSuspense as aH, useOthersConnectionIdsSuspense as aI, _useOthersMappedSuspense as aJ, _useSelfSuspense as aK, _useStorageSuspense as aL, _useThreadsSuspense as aM, useAttachmentUrlSuspense as aN, _useHistoryVersionsSuspense as aO, _useRoomSubscriptionSettingsSuspense as aP, useInboxNotificationsSuspense as aQ, useNotificationSettingsSuspense as aR, useRoomInfoSuspense as aS, useUnreadInboxNotificationsCountSuspense as aT, _useUserSuspense as aU, _useUserThreadsSuspense_experimental as aV, _useAiChatsSuspense as aW, _useAiChatMessagesSuspense as aX, _useAiChatSuspense as aY, useRemoveReaction as aa, _useRoom as ab, useStatus as ac, _useStorageRoot as ad, useThreadSubscription as ae, useUndo as af, _useUpdateMyPresence as ag, useUpdateRoomSubscriptionSettings as ah, useHistoryVersionData as ai, _useOther as aj, _useOthers as ak, useOthersConnectionIds as al, _useOthersMapped as am, _useSelf as an, _useStorage as ao, _useThreads as ap, useAttachmentUrl as aq, _useHistoryVersions as ar, _useRoomSubscriptionSettings as as, useInboxNotifications as at, useNotificationSettings as au, useUpdateNotificationSettings as av, useCreateAiChat as aw, useDeleteAiChat as ax, useSendAiMessage as ay, _useUserThreads_experimental as az, useCreateRoomComment as b, 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 };
2713
+ export { useMarkThreadAsUnresolved as $, createLiveblocksContext as A, useDeleteAllInboxNotifications as B, ClientContext as C, useDeleteInboxNotification as D, useErrorListener as E, useMarkAllInboxNotificationsAsRead as F, useMarkInboxNotificationAsRead as G, useSyncStatus as H, createRoomContext as I, _RoomProvider as J, _useAddReaction as K, LiveblocksProvider as L, type MutationContext as M, _useBroadcastEvent as N, useCanRedo as O, useCanUndo as P, useCreateComment as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, _useCreateThread as T, type UseSendAiMessageOptions as U, useDeleteComment as V, _useDeleteThread as W, useEditComment as X, _useEditThreadMetadata as Y, useMarkThreadAsResolved as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, useSubscribeToThread as a0, useUnsubscribeFromThread as a1, _useEventListener as a2, useHistory as a3, _useIsInsideRoom as a4, useLostConnectionListener as a5, useMarkThreadAsRead as a6, _useMutation as a7, _useMyPresence as a8, _useOthersListener as a9, _useUserThreads_experimental as aA, useRoomInfo as aB, useUnreadInboxNotificationsCount as aC, _useUser as aD, _useAiChat as aE, _useAiChats as aF, _useAiChatMessages as aG, _useOtherSuspense as aH, _useOthersSuspense as aI, useOthersConnectionIdsSuspense as aJ, _useOthersMappedSuspense as aK, _useSelfSuspense as aL, _useStorageSuspense as aM, _useThreadsSuspense as aN, useAttachmentUrlSuspense as aO, _useHistoryVersionsSuspense as aP, _useRoomSubscriptionSettingsSuspense as aQ, useInboxNotificationsSuspense as aR, useNotificationSettingsSuspense as aS, useRoomInfoSuspense as aT, useUnreadInboxNotificationsCountSuspense as aU, _useUserSuspense as aV, _useUserThreadsSuspense_experimental as aW, _useAiChatsSuspense as aX, _useAiChatMessagesSuspense as aY, _useAiChatSuspense as aZ, useRedo as aa, useRemoveReaction as ab, _useRoom as ac, useStatus as ad, _useStorageRoot as ae, useThreadSubscription as af, useUndo as ag, _useUpdateMyPresence as ah, useUpdateRoomSubscriptionSettings as ai, useHistoryVersionData as aj, _useOther as ak, _useOthers as al, useOthersConnectionIds as am, _useOthersMapped as an, _useSelf as ao, _useStorage as ap, _useThreads as aq, useAttachmentUrl as ar, _useHistoryVersions as as, _useRoomSubscriptionSettings as at, useInboxNotifications as au, useNotificationSettings as av, useUpdateNotificationSettings as aw, useCreateAiChat as ax, useDeleteAiChat as ay, useSendAiMessage as az, useCreateRoomComment as b, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useMarkRoomThreadAsRead as k, useMarkRoomThreadAsResolved as l, useMarkRoomThreadAsUnresolved as m, useMentionSuggestionsCache as n, useRemoveRoomCommentReaction as o, useReportTextEditor as p, useResolveMentionSuggestions as q, useRoomAttachmentUrl as r, useRoomPermissions as s, useRoomThreadSubscription as t, useClientOrNull as u, useYjsProvider as v, type RegisterAiToolProps as w, type UseThreadsOptions as x, RoomContext as y, useClient as z };
package/dist/suspense.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkVARKVHO4cjs = require('./chunk-VARKVHO4.cjs');
6
+ var _chunkS7XMPZC4cjs = require('./chunk-S7XMPZC4.cjs');
7
7
 
8
8
 
9
9
 
@@ -73,12 +73,12 @@ var _chunkVARKVHO4cjs = require('./chunk-VARKVHO4.cjs');
73
73
 
74
74
 
75
75
 
76
- var _chunkLJQILG65cjs = require('./chunk-LJQILG65.cjs');
76
+ var _chunkV36VCKRBcjs = require('./chunk-V36VCKRB.cjs');
77
77
 
78
78
  // src/suspense.ts
79
79
  var _core = require('@liveblocks/core');
80
80
  var _client = require('@liveblocks/client');
81
- _core.detectDupes.call(void 0, _chunkVARKVHO4cjs.PKG_NAME, _chunkVARKVHO4cjs.PKG_VERSION, _chunkVARKVHO4cjs.PKG_FORMAT);
81
+ _core.detectDupes.call(void 0, _chunkS7XMPZC4cjs.PKG_NAME, _chunkS7XMPZC4cjs.PKG_VERSION, _chunkS7XMPZC4cjs.PKG_FORMAT);
82
82
 
83
83
 
84
84
 
@@ -151,5 +151,5 @@ _core.detectDupes.call(void 0, _chunkVARKVHO4cjs.PKG_NAME, _chunkVARKVHO4cjs.PKG
151
151
 
152
152
 
153
153
 
154
- exports.ClientContext = _chunkLJQILG65cjs.ClientContext; exports.ClientSideSuspense = _chunkVARKVHO4cjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkLJQILG65cjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkLJQILG65cjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkLJQILG65cjs.RegisterAiTool; exports.RoomContext = _chunkLJQILG65cjs.RoomContext; exports.RoomProvider = _chunkLJQILG65cjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkLJQILG65cjs._useAddReaction; exports.useAiChat = _chunkLJQILG65cjs._useAiChatSuspense; exports.useAiChatMessages = _chunkLJQILG65cjs._useAiChatMessagesSuspense; exports.useAiChats = _chunkLJQILG65cjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunkLJQILG65cjs.useAttachmentUrlSuspense; exports.useBroadcastEvent = _chunkLJQILG65cjs._useBroadcastEvent; exports.useCanRedo = _chunkLJQILG65cjs.useCanRedo; exports.useCanUndo = _chunkLJQILG65cjs.useCanUndo; exports.useClient = _chunkLJQILG65cjs.useClient; exports.useCreateAiChat = _chunkLJQILG65cjs.useCreateAiChat; exports.useCreateComment = _chunkLJQILG65cjs.useCreateComment; exports.useCreateThread = _chunkLJQILG65cjs._useCreateThread; exports.useDeleteAiChat = _chunkLJQILG65cjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkLJQILG65cjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkLJQILG65cjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkLJQILG65cjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkLJQILG65cjs._useDeleteThread; exports.useEditComment = _chunkLJQILG65cjs.useEditComment; exports.useEditThreadMetadata = _chunkLJQILG65cjs._useEditThreadMetadata; exports.useErrorListener = _chunkLJQILG65cjs.useErrorListener; exports.useEventListener = _chunkLJQILG65cjs._useEventListener; exports.useHistory = _chunkLJQILG65cjs.useHistory; exports.useHistoryVersions = _chunkLJQILG65cjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkLJQILG65cjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkLJQILG65cjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkLJQILG65cjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkLJQILG65cjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkLJQILG65cjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkLJQILG65cjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkLJQILG65cjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkLJQILG65cjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkLJQILG65cjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkLJQILG65cjs._useMutation; exports.useMyPresence = _chunkLJQILG65cjs._useMyPresence; exports.useNotificationSettings = _chunkLJQILG65cjs.useNotificationSettingsSuspense; exports.useOther = _chunkLJQILG65cjs._useOtherSuspense; exports.useOthers = _chunkLJQILG65cjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkLJQILG65cjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkLJQILG65cjs._useOthersListener; exports.useOthersMapped = _chunkLJQILG65cjs._useOthersMappedSuspense; exports.useRedo = _chunkLJQILG65cjs.useRedo; exports.useRemoveReaction = _chunkLJQILG65cjs.useRemoveReaction; exports.useRoom = _chunkLJQILG65cjs._useRoom; exports.useRoomInfo = _chunkLJQILG65cjs.useRoomInfoSuspense; exports.useRoomSubscriptionSettings = _chunkLJQILG65cjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunkLJQILG65cjs._useSelfSuspense; exports.useSendAiMessage = _chunkLJQILG65cjs.useSendAiMessage; exports.useStatus = _chunkLJQILG65cjs.useStatus; exports.useStorage = _chunkLJQILG65cjs._useStorageSuspense; exports.useStorageRoot = _chunkLJQILG65cjs._useStorageRoot; exports.useSubscribeToThread = _chunkLJQILG65cjs.useSubscribeToThread; exports.useSyncStatus = _chunkLJQILG65cjs.useSyncStatus; exports.useThreadSubscription = _chunkLJQILG65cjs.useThreadSubscription; exports.useThreads = _chunkLJQILG65cjs._useThreadsSuspense; exports.useUndo = _chunkLJQILG65cjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkLJQILG65cjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunkLJQILG65cjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkLJQILG65cjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkLJQILG65cjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkLJQILG65cjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunkLJQILG65cjs._useUserSuspense; exports.useUserThreads_experimental = _chunkLJQILG65cjs._useUserThreadsSuspense_experimental;
154
+ exports.ClientContext = _chunkV36VCKRBcjs.ClientContext; exports.ClientSideSuspense = _chunkS7XMPZC4cjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkV36VCKRBcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkV36VCKRBcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkV36VCKRBcjs.RegisterAiTool; exports.RoomContext = _chunkV36VCKRBcjs.RoomContext; exports.RoomProvider = _chunkV36VCKRBcjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkV36VCKRBcjs._useAddReaction; exports.useAiChat = _chunkV36VCKRBcjs._useAiChatSuspense; exports.useAiChatMessages = _chunkV36VCKRBcjs._useAiChatMessagesSuspense; exports.useAiChats = _chunkV36VCKRBcjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunkV36VCKRBcjs.useAttachmentUrlSuspense; exports.useBroadcastEvent = _chunkV36VCKRBcjs._useBroadcastEvent; exports.useCanRedo = _chunkV36VCKRBcjs.useCanRedo; exports.useCanUndo = _chunkV36VCKRBcjs.useCanUndo; exports.useClient = _chunkV36VCKRBcjs.useClient; exports.useCreateAiChat = _chunkV36VCKRBcjs.useCreateAiChat; exports.useCreateComment = _chunkV36VCKRBcjs.useCreateComment; exports.useCreateThread = _chunkV36VCKRBcjs._useCreateThread; exports.useDeleteAiChat = _chunkV36VCKRBcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkV36VCKRBcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkV36VCKRBcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkV36VCKRBcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkV36VCKRBcjs._useDeleteThread; exports.useEditComment = _chunkV36VCKRBcjs.useEditComment; exports.useEditThreadMetadata = _chunkV36VCKRBcjs._useEditThreadMetadata; exports.useErrorListener = _chunkV36VCKRBcjs.useErrorListener; exports.useEventListener = _chunkV36VCKRBcjs._useEventListener; exports.useHistory = _chunkV36VCKRBcjs.useHistory; exports.useHistoryVersions = _chunkV36VCKRBcjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkV36VCKRBcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkV36VCKRBcjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkV36VCKRBcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkV36VCKRBcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkV36VCKRBcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkV36VCKRBcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkV36VCKRBcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkV36VCKRBcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkV36VCKRBcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkV36VCKRBcjs._useMutation; exports.useMyPresence = _chunkV36VCKRBcjs._useMyPresence; exports.useNotificationSettings = _chunkV36VCKRBcjs.useNotificationSettingsSuspense; exports.useOther = _chunkV36VCKRBcjs._useOtherSuspense; exports.useOthers = _chunkV36VCKRBcjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkV36VCKRBcjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkV36VCKRBcjs._useOthersListener; exports.useOthersMapped = _chunkV36VCKRBcjs._useOthersMappedSuspense; exports.useRedo = _chunkV36VCKRBcjs.useRedo; exports.useRemoveReaction = _chunkV36VCKRBcjs.useRemoveReaction; exports.useRoom = _chunkV36VCKRBcjs._useRoom; exports.useRoomInfo = _chunkV36VCKRBcjs.useRoomInfoSuspense; exports.useRoomSubscriptionSettings = _chunkV36VCKRBcjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunkV36VCKRBcjs._useSelfSuspense; exports.useSendAiMessage = _chunkV36VCKRBcjs.useSendAiMessage; exports.useStatus = _chunkV36VCKRBcjs.useStatus; exports.useStorage = _chunkV36VCKRBcjs._useStorageSuspense; exports.useStorageRoot = _chunkV36VCKRBcjs._useStorageRoot; exports.useSubscribeToThread = _chunkV36VCKRBcjs.useSubscribeToThread; exports.useSyncStatus = _chunkV36VCKRBcjs.useSyncStatus; exports.useThreadSubscription = _chunkV36VCKRBcjs.useThreadSubscription; exports.useThreads = _chunkV36VCKRBcjs._useThreadsSuspense; exports.useUndo = _chunkV36VCKRBcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkV36VCKRBcjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunkV36VCKRBcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkV36VCKRBcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkV36VCKRBcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkV36VCKRBcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunkV36VCKRBcjs._useUserSuspense; exports.useUserThreads_experimental = _chunkV36VCKRBcjs._useUserThreadsSuspense_experimental;
155
155
  //# sourceMappingURL=suspense.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.cjs","../src/suspense.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;AC5EA,wCAA4B;AAc5B,4CAAsD;AAXtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;AD6E7C;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;AACF,opJAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.cjs","sourcesContent":[null,"/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseSendAiMessageOptions,\n UseThreadsOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type { RegisterAiKnowledgeProps, RegisterAiToolProps } from \"./types/ai\";\nexport {\n LiveblocksProvider,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useSyncStatus,\n useErrorListener,\n} from \"./liveblocks\";\nexport {\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n} from \"./room\";\n\n// Export the Suspense versions of our hooks\n// (This part differs from src/index.ts)\nexport {\n useOtherSuspense as useOther,\n useOthersSuspense as useOthers,\n useOthersConnectionIdsSuspense as useOthersConnectionIds,\n useOthersMappedSuspense as useOthersMapped,\n useSelfSuspense as useSelf,\n useStorageSuspense as useStorage,\n useThreadsSuspense as useThreads,\n useAttachmentUrlSuspense as useAttachmentUrl,\n useHistoryVersionsSuspense as useHistoryVersions,\n useRoomSubscriptionSettingsSuspense as useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useNotificationSettingsSuspense as useNotificationSettings,\n useRoomInfoSuspense as useRoomInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n useAiChatsSuspense as useAiChats,\n useAiChatMessagesSuspense as useAiChatMessages,\n useAiChatSuspense as useAiChat,\n} from \"./liveblocks\";\n"]}
1
+ {"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.cjs","../src/suspense.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;AC5EA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;AD6E7C;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;AACF,opJAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.cjs","sourcesContent":[null,"/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseSendAiMessageOptions,\n UseThreadsOptions,\n SendAiMessageOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type { RegisterAiKnowledgeProps, RegisterAiToolProps } from \"./types/ai\";\nexport {\n LiveblocksProvider,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useSyncStatus,\n useErrorListener,\n} from \"./liveblocks\";\nexport {\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n} from \"./room\";\n\n// Export the Suspense versions of our hooks\n// (This part differs from src/index.ts)\nexport {\n useOtherSuspense as useOther,\n useOthersSuspense as useOthers,\n useOthersConnectionIdsSuspense as useOthersConnectionIds,\n useOthersMappedSuspense as useOthersMapped,\n useSelfSuspense as useSelf,\n useStorageSuspense as useStorage,\n useThreadsSuspense as useThreads,\n useAttachmentUrlSuspense as useAttachmentUrl,\n useHistoryVersionsSuspense as useHistoryVersions,\n useRoomSubscriptionSettingsSuspense as useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useNotificationSettingsSuspense as useNotificationSettings,\n useRoomInfoSuspense as useRoomInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n useAiChatsSuspense as useAiChats,\n useAiChatMessagesSuspense as useAiChatMessages,\n useAiChatSuspense as useAiChat,\n} from \"./liveblocks\";\n"]}
@@ -1,5 +1,5 @@
1
1
  export { ClientSideSuspense, RegisterAiKnowledge, RegisterAiTool } from './index.cjs';
2
- export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, J as RoomProvider, U as UseSendAiMessageOptions, x as UseThreadsOptions, K as useAddReaction, aY as useAiChat, aX as useAiChatMessages, aW as useAiChats, aN as useAttachmentUrl, N as useBroadcastEvent, O as useCanRedo, P as useCanUndo, z as useClient, aw as useCreateAiChat, Q as useCreateComment, S as useCreateThread, ax as useDeleteAiChat, B as useDeleteAllInboxNotifications, T as useDeleteComment, D as useDeleteInboxNotification, V as useDeleteThread, W as useEditComment, X as useEditThreadMetadata, E as useErrorListener, a1 as useEventListener, a2 as useHistory, aO as useHistoryVersions, _ as useInboxNotificationThread, aQ as useInboxNotifications, a3 as useIsInsideRoom, a4 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, G as useMarkInboxNotificationAsRead, a5 as useMarkThreadAsRead, Y as useMarkThreadAsResolved, Z as useMarkThreadAsUnresolved, a6 as useMutation, a7 as useMyPresence, aR as useNotificationSettings, aG as useOther, aH as useOthers, aI as useOthersConnectionIds, a8 as useOthersListener, aJ as useOthersMapped, a9 as useRedo, aa as useRemoveReaction, ab as useRoom, aS as useRoomInfo, aP as useRoomSubscriptionSettings, aK as useSelf, ay as useSendAiMessage, ac as useStatus, aL as useStorage, ad as useStorageRoot, $ as useSubscribeToThread, H as useSyncStatus, ae as useThreadSubscription, aM as useThreads, af as useUndo, aT as useUnreadInboxNotificationsCount, a0 as useUnsubscribeFromThread, ag as useUpdateMyPresence, av as useUpdateNotificationSettings, ah as useUpdateRoomSubscriptionSettings, aU as useUser, aV as useUserThreads_experimental } from './room-DRYXmQT5.cjs';
2
+ export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, J as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, K as useAddReaction, aZ as useAiChat, aY as useAiChatMessages, aX as useAiChats, aO as useAttachmentUrl, N as useBroadcastEvent, O as useCanRedo, P as useCanUndo, z as useClient, ax as useCreateAiChat, Q as useCreateComment, T as useCreateThread, ay as useDeleteAiChat, B as useDeleteAllInboxNotifications, V as useDeleteComment, D as useDeleteInboxNotification, W as useDeleteThread, X as useEditComment, Y as useEditThreadMetadata, E as useErrorListener, a2 as useEventListener, a3 as useHistory, aP as useHistoryVersions, _ as useInboxNotificationThread, aR as useInboxNotifications, a4 as useIsInsideRoom, a5 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, G as useMarkInboxNotificationAsRead, a6 as useMarkThreadAsRead, Z as useMarkThreadAsResolved, $ as useMarkThreadAsUnresolved, a7 as useMutation, a8 as useMyPresence, aS as useNotificationSettings, aH as useOther, aI as useOthers, aJ as useOthersConnectionIds, a9 as useOthersListener, aK as useOthersMapped, aa as useRedo, ab as useRemoveReaction, ac as useRoom, aT as useRoomInfo, aQ as useRoomSubscriptionSettings, aL as useSelf, az as useSendAiMessage, ad as useStatus, aM as useStorage, ae as useStorageRoot, a0 as useSubscribeToThread, H as useSyncStatus, af as useThreadSubscription, aN as useThreads, ag as useUndo, aU as useUnreadInboxNotificationsCount, a1 as useUnsubscribeFromThread, ah as useUpdateMyPresence, aw as useUpdateNotificationSettings, ai as useUpdateRoomSubscriptionSettings, aV as useUser, aW as useUserThreads_experimental } from './room-BE4TZf40.cjs';
3
3
  export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react';
@@ -1,5 +1,5 @@
1
1
  export { ClientSideSuspense, RegisterAiKnowledge, RegisterAiTool } from './index.js';
2
- export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, J as RoomProvider, U as UseSendAiMessageOptions, x as UseThreadsOptions, K as useAddReaction, aY as useAiChat, aX as useAiChatMessages, aW as useAiChats, aN as useAttachmentUrl, N as useBroadcastEvent, O as useCanRedo, P as useCanUndo, z as useClient, aw as useCreateAiChat, Q as useCreateComment, S as useCreateThread, ax as useDeleteAiChat, B as useDeleteAllInboxNotifications, T as useDeleteComment, D as useDeleteInboxNotification, V as useDeleteThread, W as useEditComment, X as useEditThreadMetadata, E as useErrorListener, a1 as useEventListener, a2 as useHistory, aO as useHistoryVersions, _ as useInboxNotificationThread, aQ as useInboxNotifications, a3 as useIsInsideRoom, a4 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, G as useMarkInboxNotificationAsRead, a5 as useMarkThreadAsRead, Y as useMarkThreadAsResolved, Z as useMarkThreadAsUnresolved, a6 as useMutation, a7 as useMyPresence, aR as useNotificationSettings, aG as useOther, aH as useOthers, aI as useOthersConnectionIds, a8 as useOthersListener, aJ as useOthersMapped, a9 as useRedo, aa as useRemoveReaction, ab as useRoom, aS as useRoomInfo, aP as useRoomSubscriptionSettings, aK as useSelf, ay as useSendAiMessage, ac as useStatus, aL as useStorage, ad as useStorageRoot, $ as useSubscribeToThread, H as useSyncStatus, ae as useThreadSubscription, aM as useThreads, af as useUndo, aT as useUnreadInboxNotificationsCount, a0 as useUnsubscribeFromThread, ag as useUpdateMyPresence, av as useUpdateNotificationSettings, ah as useUpdateRoomSubscriptionSettings, aU as useUser, aV as useUserThreads_experimental } from './room-DRYXmQT5.js';
2
+ export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, J as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, K as useAddReaction, aZ as useAiChat, aY as useAiChatMessages, aX as useAiChats, aO as useAttachmentUrl, N as useBroadcastEvent, O as useCanRedo, P as useCanUndo, z as useClient, ax as useCreateAiChat, Q as useCreateComment, T as useCreateThread, ay as useDeleteAiChat, B as useDeleteAllInboxNotifications, V as useDeleteComment, D as useDeleteInboxNotification, W as useDeleteThread, X as useEditComment, Y as useEditThreadMetadata, E as useErrorListener, a2 as useEventListener, a3 as useHistory, aP as useHistoryVersions, _ as useInboxNotificationThread, aR as useInboxNotifications, a4 as useIsInsideRoom, a5 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, G as useMarkInboxNotificationAsRead, a6 as useMarkThreadAsRead, Z as useMarkThreadAsResolved, $ as useMarkThreadAsUnresolved, a7 as useMutation, a8 as useMyPresence, aS as useNotificationSettings, aH as useOther, aI as useOthers, aJ as useOthersConnectionIds, a9 as useOthersListener, aK as useOthersMapped, aa as useRedo, ab as useRemoveReaction, ac as useRoom, aT as useRoomInfo, aQ as useRoomSubscriptionSettings, aL as useSelf, az as useSendAiMessage, ad as useStatus, aM as useStorage, ae as useStorageRoot, a0 as useSubscribeToThread, H as useSyncStatus, af as useThreadSubscription, aN as useThreads, ag as useUndo, aU as useUnreadInboxNotificationsCount, a1 as useUnsubscribeFromThread, ah as useUpdateMyPresence, aw as useUpdateNotificationSettings, ai as useUpdateRoomSubscriptionSettings, aV as useUser, aW as useUserThreads_experimental } from './room-BE4TZf40.js';
3
3
  export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react';
package/dist/suspense.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  PKG_FORMAT,
4
4
  PKG_NAME,
5
5
  PKG_VERSION
6
- } from "./chunk-G4GBR6VV.js";
6
+ } from "./chunk-45ZT2X3R.js";
7
7
  import {
8
8
  ClientContext,
9
9
  LiveblocksProvider,
@@ -73,7 +73,7 @@ import {
73
73
  useUnsubscribeFromThread,
74
74
  useUpdateNotificationSettings,
75
75
  useUpdateRoomSubscriptionSettings
76
- } from "./chunk-YZRXMG3Z.js";
76
+ } from "./chunk-UHR5FZDL.js";
77
77
 
78
78
  // src/suspense.ts
79
79
  import { detectDupes } from "@liveblocks/core";
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/suspense.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} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type { RegisterAiKnowledgeProps, RegisterAiToolProps } from \"./types/ai\";\nexport {\n LiveblocksProvider,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useSyncStatus,\n useErrorListener,\n} from \"./liveblocks\";\nexport {\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n} from \"./room\";\n\n// Export the Suspense versions of our hooks\n// (This part differs from src/index.ts)\nexport {\n useOtherSuspense as useOther,\n useOthersSuspense as useOthers,\n useOthersConnectionIdsSuspense as useOthersConnectionIds,\n useOthersMappedSuspense as useOthersMapped,\n useSelfSuspense as useSelf,\n useStorageSuspense as useStorage,\n useThreadsSuspense as useThreads,\n useAttachmentUrlSuspense as useAttachmentUrl,\n useHistoryVersionsSuspense as useHistoryVersions,\n useRoomSubscriptionSettingsSuspense as useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useNotificationSettingsSuspense as useNotificationSettings,\n useRoomInfoSuspense as useRoomInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n useAiChatsSuspense as useAiChats,\n useAiChatMessagesSuspense as useAiChatMessages,\n useAiChatSuspense as useAiChat,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,SAAS,oCAAoC;AAXtD,YAAY,UAAU,aAAa,UAAU;","names":[]}
1
+ {"version":3,"sources":["../src/suspense.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 { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type { RegisterAiKnowledgeProps, RegisterAiToolProps } from \"./types/ai\";\nexport {\n LiveblocksProvider,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useSyncStatus,\n useErrorListener,\n} from \"./liveblocks\";\nexport {\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n} from \"./room\";\n\n// Export the Suspense versions of our hooks\n// (This part differs from src/index.ts)\nexport {\n useOtherSuspense as useOther,\n useOthersSuspense as useOthers,\n useOthersConnectionIdsSuspense as useOthersConnectionIds,\n useOthersMappedSuspense as useOthersMapped,\n useSelfSuspense as useSelf,\n useStorageSuspense as useStorage,\n useThreadsSuspense as useThreads,\n useAttachmentUrlSuspense as useAttachmentUrl,\n useHistoryVersionsSuspense as useHistoryVersions,\n useRoomSubscriptionSettingsSuspense as useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useNotificationSettingsSuspense as useNotificationSettings,\n useRoomInfoSuspense as useRoomInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n useAiChatsSuspense as useAiChats,\n useAiChatMessagesSuspense as useAiChatMessages,\n useAiChatSuspense as useAiChat,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAe5B,SAAS,SAAS,oCAAoC;AAZtD,YAAY,UAAU,aAAa,UAAU;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liveblocks/react",
3
- "version": "3.2.1",
3
+ "version": "3.3.1",
4
4
  "description": "A set of React hooks and providers to use Liveblocks declaratively. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -61,8 +61,8 @@
61
61
  "showdeps": "depcruise src --include-only '^src' --exclude='__tests__' --output-type dot | dot -T svg > /tmp/dependency-graph.svg && open /tmp/dependency-graph.svg"
62
62
  },
63
63
  "dependencies": {
64
- "@liveblocks/client": "3.2.1",
65
- "@liveblocks/core": "3.2.1"
64
+ "@liveblocks/client": "3.3.1",
65
+ "@liveblocks/core": "3.3.1"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "@types/react": "*",