@liveblocks/react 3.2.1 → 3.3.0
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.
- package/dist/_private.cjs +5 -5
- package/dist/_private.d.cts +1 -1
- package/dist/_private.d.ts +1 -1
- package/dist/_private.js +1 -1
- package/dist/{chunk-G4GBR6VV.js → chunk-2A27UCH4.js} +2 -2
- package/dist/{chunk-YZRXMG3Z.js → chunk-UHR5FZDL.js} +95 -66
- package/dist/chunk-UHR5FZDL.js.map +1 -0
- package/dist/{chunk-LJQILG65.cjs → chunk-V36VCKRB.cjs} +112 -83
- package/dist/chunk-V36VCKRB.cjs.map +1 -0
- package/dist/{chunk-VARKVHO4.cjs → chunk-YXNWSNHJ.cjs} +2 -2
- package/dist/{chunk-VARKVHO4.cjs.map → chunk-YXNWSNHJ.cjs.map} +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{room-DRYXmQT5.d.cts → room-BE4TZf40.d.cts} +141 -24
- package/dist/{room-DRYXmQT5.d.ts → room-BE4TZf40.d.ts} +141 -24
- package/dist/suspense.cjs +4 -4
- package/dist/suspense.cjs.map +1 -1
- package/dist/suspense.d.cts +1 -1
- package/dist/suspense.d.ts +1 -1
- package/dist/suspense.js +2 -2
- package/dist/suspense.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-LJQILG65.cjs.map +0 -1
- package/dist/chunk-YZRXMG3Z.js.map +0 -1
- /package/dist/{chunk-G4GBR6VV.js.map → chunk-2A27UCH4.js.map} +0 -0
|
@@ -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,
|
|
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
|
|
69
|
+
* The ID of the copilot to use to send the message.
|
|
70
70
|
*/
|
|
71
71
|
copilotId?: string;
|
|
72
|
-
/**
|
|
72
|
+
/**
|
|
73
|
+
* Stream the response as it is being generated. Defaults to true.
|
|
74
|
+
*/
|
|
73
75
|
stream?: boolean;
|
|
74
|
-
/**
|
|
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():
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
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
|
|
1073
|
-
*
|
|
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(
|
|
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():
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
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
|
|
1604
|
-
*
|
|
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(
|
|
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 {
|
|
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
|
|
6
|
+
var _chunkYXNWSNHJcjs = require('./chunk-YXNWSNHJ.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
|
|
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,
|
|
81
|
+
_core.detectDupes.call(void 0, _chunkYXNWSNHJcjs.PKG_NAME, _chunkYXNWSNHJcjs.PKG_VERSION, _chunkYXNWSNHJcjs.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 =
|
|
154
|
+
exports.ClientContext = _chunkV36VCKRBcjs.ClientContext; exports.ClientSideSuspense = _chunkYXNWSNHJcjs.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
|
package/dist/suspense.cjs.map
CHANGED
|
@@ -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;
|
|
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"]}
|
package/dist/suspense.d.cts
CHANGED
|
@@ -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,
|
|
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';
|
package/dist/suspense.d.ts
CHANGED
|
@@ -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,
|
|
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-
|
|
6
|
+
} from "./chunk-2A27UCH4.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-
|
|
76
|
+
} from "./chunk-UHR5FZDL.js";
|
|
77
77
|
|
|
78
78
|
// src/suspense.ts
|
|
79
79
|
import { detectDupes } from "@liveblocks/core";
|
package/dist/suspense.js.map
CHANGED
|
@@ -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;
|
|
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.
|
|
3
|
+
"version": "3.3.0",
|
|
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.
|
|
65
|
-
"@liveblocks/core": "3.
|
|
64
|
+
"@liveblocks/client": "3.3.0",
|
|
65
|
+
"@liveblocks/core": "3.3.0"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"@types/react": "*",
|