@liveblocks/react 3.16.0-feeds1 → 3.16.0-flow2
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 +13 -7
- package/dist/_private.cjs.map +1 -1
- package/dist/_private.d.cts +11 -3
- package/dist/_private.d.ts +11 -3
- package/dist/_private.js +7 -1
- package/dist/_private.js.map +1 -1
- package/dist/{chunk-LYXD3YYH.js → chunk-2AIWAOIV.js} +2 -2
- package/dist/{chunk-2HO3EZRC.js → chunk-2VF57BZV.js} +39 -462
- package/dist/chunk-2VF57BZV.js.map +1 -0
- package/dist/{chunk-6D2LQWB5.cjs → chunk-6JXSC2A6.cjs} +2 -2
- package/dist/{chunk-6D2LQWB5.cjs.map → chunk-6JXSC2A6.cjs.map} +1 -1
- package/dist/{chunk-6VGVFTSY.cjs → chunk-QEGVIJNN.cjs} +74 -497
- package/dist/chunk-QEGVIJNN.cjs.map +1 -0
- package/dist/index.cjs +4 -20
- 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 -18
- package/dist/index.js.map +1 -1
- package/dist/{room-C2TwdMi3.d.cts → room-BvPZu216.d.cts} +19 -195
- package/dist/{room-C2TwdMi3.d.ts → room-BvPZu216.d.ts} +19 -195
- package/dist/suspense.cjs +4 -20
- 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 -18
- package/dist/suspense.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-2HO3EZRC.js.map +0 -1
- package/dist/chunk-6VGVFTSY.cjs.map +0 -1
- /package/dist/{chunk-LYXD3YYH.js.map → chunk-2AIWAOIV.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BaseUserMeta, Client, JsonObject, LsonObject, LiveObject, User, Json, RoomSubscriptionSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, ClientOptions,
|
|
1
|
+
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';
|
|
2
2
|
import * as _liveblocks_core from '@liveblocks/core';
|
|
3
|
-
import { OpaqueClient, OpaqueRoom, AiKnowledgeSource, AiOpaqueToolDefinition, Relax, AiAssistantContentPart, BaseMetadata, QueryMetadata, AsyncResult, DRI, AsyncSuccess, DGI, GroupData, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, ToImmutable,
|
|
3
|
+
import { OpaqueClient, OpaqueRoom, AiKnowledgeSource, AiOpaqueToolDefinition, Relax, AiAssistantContentPart, BaseMetadata, QueryMetadata, AsyncResult, DRI, AsyncSuccess, DGI, GroupData, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, ToImmutable, MessageId, PartialNotificationSettings, AiChatsQuery, AsyncLoading, AsyncError, ThreadData, SearchCommentsResult, HistoryVersion, AiChat, UrlMetadata, Client as Client$1, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, AiUserMessage, WithRequired, AiChatMessage, WithNavigation, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, SubscriptionKey, SubscriptionData, DerivedSignal, DefaultMap, CommentUserReaction, InboxNotificationDeleteInfo, SubscriptionDeleteInfo, RoomSubscriptionSettings as RoomSubscriptionSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DTM, DCM, TextEditorType, IYjsProvider, MentionData, DP, DS, DE } from '@liveblocks/core';
|
|
4
4
|
import { Context, ComponentType, PropsWithChildren, ReactNode } from 'react';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
|
|
@@ -208,40 +208,6 @@ type UseInboxNotificationsOptions = {
|
|
|
208
208
|
*/
|
|
209
209
|
query?: InboxNotificationsQuery;
|
|
210
210
|
};
|
|
211
|
-
type UseFeedsOptions = {
|
|
212
|
-
/**
|
|
213
|
-
* Optional timestamp filter. Applied to the client-side cache for this hook’s
|
|
214
|
-
* options: only feeds whose `createdAt` or `updatedAt` is at or after this
|
|
215
|
-
* timestamp (ms) are included in `feeds`.
|
|
216
|
-
*/
|
|
217
|
-
since?: number;
|
|
218
|
-
/**
|
|
219
|
-
* Optional metadata filter (`Record<string, string>`). Applied to the
|
|
220
|
-
* client-side cache: only feeds whose metadata matches every key/value pair
|
|
221
|
-
* are included in `feeds`.
|
|
222
|
-
*/
|
|
223
|
-
metadata?: FeedFetchMetadataFilter;
|
|
224
|
-
/**
|
|
225
|
-
* Page size for each server request when loading or loading more feeds. This
|
|
226
|
-
* does **not** cap the length of `feeds`—use pagination (`fetchMore`,
|
|
227
|
-
* `hasFetchedAll`) until you have loaded every page. Different hooks with
|
|
228
|
-
* different `limit` values still share one cache per room; each hook’s
|
|
229
|
-
* `feeds` array is filtered and sorted independently.
|
|
230
|
-
*/
|
|
231
|
-
limit?: number;
|
|
232
|
-
};
|
|
233
|
-
type UseFeedMessagesOptions = {
|
|
234
|
-
/**
|
|
235
|
-
* Optional cursor for pagination.
|
|
236
|
-
*/
|
|
237
|
-
cursor?: string;
|
|
238
|
-
/**
|
|
239
|
-
* Page size for each server request when loading or loading more messages.
|
|
240
|
-
* Does **not** cap the length of `messages`—pagination loads additional pages
|
|
241
|
-
* until `hasFetchedAll` is true.
|
|
242
|
-
*/
|
|
243
|
-
limit?: number;
|
|
244
|
-
};
|
|
245
211
|
type UserAsyncResult<T> = AsyncResult<T, "user">;
|
|
246
212
|
type UserAsyncSuccess<T> = AsyncSuccess<T, "user">;
|
|
247
213
|
type RoomInfoAsyncResult = AsyncResult<DRI, "info">;
|
|
@@ -304,10 +270,6 @@ type ThreadsAsyncResult<TM extends BaseMetadata, CM extends BaseMetadata> = Page
|
|
|
304
270
|
type SearchCommentsAsyncResult = AsyncResult<Array<SearchCommentsResult>, "results">;
|
|
305
271
|
type InboxNotificationsAsyncSuccess = PagedAsyncSuccess<InboxNotificationData[], "inboxNotifications">;
|
|
306
272
|
type InboxNotificationsAsyncResult = PagedAsyncResult<InboxNotificationData[], "inboxNotifications">;
|
|
307
|
-
type FeedsAsyncSuccess<FM extends Json = Json> = PagedAsyncSuccess<Feed<FM>[], "feeds">;
|
|
308
|
-
type FeedsAsyncResult<FM extends Json = Json> = PagedAsyncResult<Feed<FM>[], "feeds">;
|
|
309
|
-
type FeedMessagesAsyncSuccess<FMD extends Json = Json> = PagedAsyncSuccess<FeedMessage<FMD>[], "messages">;
|
|
310
|
-
type FeedMessagesAsyncResult<FMD extends Json = Json> = PagedAsyncResult<FeedMessage<FMD>[], "messages">;
|
|
311
273
|
type UnreadInboxNotificationsCountAsyncSuccess = AsyncSuccess<number, "count">;
|
|
312
274
|
type UnreadInboxNotificationsCountAsyncResult = AsyncResult<number, "count">;
|
|
313
275
|
type NotificationSettingsAsyncResult = AsyncResult<NotificationSettings, "settings">;
|
|
@@ -542,13 +504,13 @@ type SharedContextBundle<U extends BaseUserMeta> = {
|
|
|
542
504
|
/**
|
|
543
505
|
* Properties that are the same in RoomContext and RoomContext["suspense"].
|
|
544
506
|
*/
|
|
545
|
-
type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U extends BaseUserMeta, E extends Json, TM extends BaseMetadata, CM extends BaseMetadata
|
|
507
|
+
type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U extends BaseUserMeta, E extends Json, TM extends BaseMetadata, CM extends BaseMetadata> = {
|
|
546
508
|
/**
|
|
547
509
|
* You normally don't need to directly interact with the RoomContext, but
|
|
548
510
|
* it can be necessary if you're building an advanced app where you need to
|
|
549
511
|
* set up a context bridge between two React renderers.
|
|
550
512
|
*/
|
|
551
|
-
RoomContext: Context<Room<P, S, U, E, TM, CM
|
|
513
|
+
RoomContext: Context<Room<P, S, U, E, TM, CM> | null>;
|
|
552
514
|
/**
|
|
553
515
|
* Makes a Room available in the component hierarchy below.
|
|
554
516
|
* Joins the room when the component is mounted, and automatically leaves
|
|
@@ -561,10 +523,10 @@ type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U exten
|
|
|
561
523
|
*/
|
|
562
524
|
useRoom(options?: {
|
|
563
525
|
allowOutsideRoom: false;
|
|
564
|
-
}): Room<P, S, U, E, TM, CM
|
|
526
|
+
}): Room<P, S, U, E, TM, CM>;
|
|
565
527
|
useRoom(options: {
|
|
566
528
|
allowOutsideRoom: boolean;
|
|
567
|
-
}): Room<P, S, U, E, TM, CM
|
|
529
|
+
}): Room<P, S, U, E, TM, CM> | null;
|
|
568
530
|
/**
|
|
569
531
|
* Returns the current connection status for the Room, and triggers
|
|
570
532
|
* a re-render whenever it changes. Can be used to render a status badge.
|
|
@@ -962,7 +924,7 @@ type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U exten
|
|
|
962
924
|
*/
|
|
963
925
|
useThreadSubscription(threadId: string): ThreadSubscription;
|
|
964
926
|
};
|
|
965
|
-
type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends BaseUserMeta, E extends Json, TM extends BaseMetadata, CM extends BaseMetadata
|
|
927
|
+
type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends BaseUserMeta, E extends Json, TM extends BaseMetadata, CM extends BaseMetadata> = Resolve<RoomContextBundleCommon<P, S, U, E, TM, CM> & SharedContextBundle<U>["classic"] & {
|
|
966
928
|
/**
|
|
967
929
|
* Extract arbitrary data from the Liveblocks Storage state, using an
|
|
968
930
|
* arbitrary selector function.
|
|
@@ -1024,76 +986,6 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
1024
986
|
* const { threads, error, isLoading } = useThreads();
|
|
1025
987
|
*/
|
|
1026
988
|
useThreads(options?: UseThreadsOptions<TM>): ThreadsAsyncResult<TM, CM>;
|
|
1027
|
-
/**
|
|
1028
|
-
* Returns feeds for the current room.
|
|
1029
|
-
*
|
|
1030
|
-
* @example
|
|
1031
|
-
* const { feeds, error, isLoading } = useFeeds();
|
|
1032
|
-
*/
|
|
1033
|
-
useFeeds(options?: UseFeedsOptions): FeedsAsyncResult<FM>;
|
|
1034
|
-
/**
|
|
1035
|
-
* Returns messages for a specific feed in the current room.
|
|
1036
|
-
*
|
|
1037
|
-
* @example
|
|
1038
|
-
* const { messages, error, isLoading } = useFeedMessages("feed-id");
|
|
1039
|
-
*/
|
|
1040
|
-
useFeedMessages(feedId: string, options?: UseFeedMessagesOptions): FeedMessagesAsyncResult<FMD>;
|
|
1041
|
-
/**
|
|
1042
|
-
* Returns a function that creates a new feed in the current room.
|
|
1043
|
-
*
|
|
1044
|
-
* @example
|
|
1045
|
-
* const createFeed = useCreateFeed();
|
|
1046
|
-
* createFeed("feed-id", { metadata: { name: "My Feed" } });
|
|
1047
|
-
*/
|
|
1048
|
-
useCreateFeed(): (feedId: string, options?: {
|
|
1049
|
-
metadata?: FeedCreateMetadata;
|
|
1050
|
-
createdAt?: number;
|
|
1051
|
-
}) => Promise<void>;
|
|
1052
|
-
/**
|
|
1053
|
-
* Returns a function that deletes a feed from the current room.
|
|
1054
|
-
*
|
|
1055
|
-
* @example
|
|
1056
|
-
* const deleteFeed = useDeleteFeed();
|
|
1057
|
-
* deleteFeed("feed-id");
|
|
1058
|
-
*/
|
|
1059
|
-
useDeleteFeed(): (feedId: string) => Promise<void>;
|
|
1060
|
-
/**
|
|
1061
|
-
* Returns a function that updates a feed's metadata in the current room.
|
|
1062
|
-
*
|
|
1063
|
-
* @example
|
|
1064
|
-
* const updateFeedMetadata = useUpdateFeedMetadata();
|
|
1065
|
-
* updateFeedMetadata("feed-id", { name: "Updated Name" });
|
|
1066
|
-
*/
|
|
1067
|
-
useUpdateFeedMetadata(): (feedId: string, metadata: FeedUpdateMetadata) => Promise<void>;
|
|
1068
|
-
/**
|
|
1069
|
-
* Returns a function that adds a message to a feed in the current room.
|
|
1070
|
-
*
|
|
1071
|
-
* @example
|
|
1072
|
-
* const createFeedMessage = useCreateFeedMessage();
|
|
1073
|
-
* createFeedMessage("feed-id", { text: "Hello" });
|
|
1074
|
-
*/
|
|
1075
|
-
useCreateFeedMessage(): (feedId: string, data: JsonObject, options?: {
|
|
1076
|
-
id?: string;
|
|
1077
|
-
createdAt?: number;
|
|
1078
|
-
}) => Promise<void>;
|
|
1079
|
-
/**
|
|
1080
|
-
* Returns a function that deletes a message from a feed in the current room.
|
|
1081
|
-
*
|
|
1082
|
-
* @example
|
|
1083
|
-
* const deleteFeedMessage = useDeleteFeedMessage();
|
|
1084
|
-
* deleteFeedMessage("feed-id", "message-id");
|
|
1085
|
-
*/
|
|
1086
|
-
useDeleteFeedMessage(): (feedId: string, messageId: string) => Promise<void>;
|
|
1087
|
-
/**
|
|
1088
|
-
* Returns a function that updates a feed message in the current room.
|
|
1089
|
-
*
|
|
1090
|
-
* @example
|
|
1091
|
-
* const updateFeedMessage = useUpdateFeedMessage();
|
|
1092
|
-
* updateFeedMessage("feed-id", "message-id", { text: "Updated" });
|
|
1093
|
-
*/
|
|
1094
|
-
useUpdateFeedMessage(): (feedId: string, messageId: string, data: JsonObject, options?: {
|
|
1095
|
-
updatedAt?: number;
|
|
1096
|
-
}) => Promise<void>;
|
|
1097
989
|
/**
|
|
1098
990
|
* Returns the result of searching comments by text in the current room. The result includes the id and the plain text content of the matched comments along with the parent thread id of the comment.
|
|
1099
991
|
*
|
|
@@ -1133,7 +1025,7 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
1133
1025
|
* const { data, error, isLoading } = useHistoryVersionData(version.id);
|
|
1134
1026
|
*/
|
|
1135
1027
|
useHistoryVersionData(id: string): HistoryVersionDataAsyncResult;
|
|
1136
|
-
suspense: Resolve<RoomContextBundleCommon<P, S, U, E, TM, CM
|
|
1028
|
+
suspense: Resolve<RoomContextBundleCommon<P, S, U, E, TM, CM> & SharedContextBundle<U>["suspense"] & {
|
|
1137
1029
|
/**
|
|
1138
1030
|
* Extract arbitrary data from the Liveblocks Storage state, using an
|
|
1139
1031
|
* arbitrary selector function.
|
|
@@ -1189,34 +1081,6 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
1189
1081
|
* const { threads } = useThreads();
|
|
1190
1082
|
*/
|
|
1191
1083
|
useThreads(options?: UseThreadsOptions<TM>): ThreadsAsyncSuccess<TM, CM>;
|
|
1192
|
-
/**
|
|
1193
|
-
* Returns feeds for the current room.
|
|
1194
|
-
*
|
|
1195
|
-
* @example
|
|
1196
|
-
* const { feeds } = useFeeds();
|
|
1197
|
-
*/
|
|
1198
|
-
useFeeds(options?: UseFeedsOptions): FeedsAsyncSuccess<FM>;
|
|
1199
|
-
/**
|
|
1200
|
-
* Returns messages for a specific feed in the current room.
|
|
1201
|
-
*
|
|
1202
|
-
* @example
|
|
1203
|
-
* const { messages } = useFeedMessages("feed-id");
|
|
1204
|
-
*/
|
|
1205
|
-
useFeedMessages(feedId: string, options?: UseFeedMessagesOptions): FeedMessagesAsyncSuccess<FMD>;
|
|
1206
|
-
useCreateFeed(): (feedId: string, options?: {
|
|
1207
|
-
metadata?: FeedCreateMetadata;
|
|
1208
|
-
createdAt?: number;
|
|
1209
|
-
}) => Promise<void>;
|
|
1210
|
-
useDeleteFeed(): (feedId: string) => Promise<void>;
|
|
1211
|
-
useUpdateFeedMetadata(): (feedId: string, metadata: FeedUpdateMetadata) => Promise<void>;
|
|
1212
|
-
useCreateFeedMessage(): (feedId: string, data: JsonObject, options?: {
|
|
1213
|
-
id?: string;
|
|
1214
|
-
createdAt?: number;
|
|
1215
|
-
}) => Promise<void>;
|
|
1216
|
-
useDeleteFeedMessage(): (feedId: string, messageId: string) => Promise<void>;
|
|
1217
|
-
useUpdateFeedMessage(): (feedId: string, messageId: string, data: JsonObject, options?: {
|
|
1218
|
-
updatedAt?: number;
|
|
1219
|
-
}) => Promise<void>;
|
|
1220
1084
|
/**
|
|
1221
1085
|
* (Private beta) Returns a history of versions of the current room.
|
|
1222
1086
|
*
|
|
@@ -1924,8 +1788,6 @@ declare class UmbrellaStore<TM extends BaseMetadata, CM extends BaseMetadata> {
|
|
|
1924
1788
|
readonly messagesByChatId: DefaultMap<string, DefaultMap<MessageId | null, LoadableResource<AiChatMessagesAsyncResult>>>;
|
|
1925
1789
|
readonly aiChatById: DefaultMap<string, LoadableResource<AiChatAsyncResult>>;
|
|
1926
1790
|
readonly urlMetadataByUrl: DefaultMap<string, LoadableResource<UrlMetadataAsyncResult>>;
|
|
1927
|
-
readonly loadingFeeds: DefaultMap<string, LoadableResource<FeedsAsyncResult>>;
|
|
1928
|
-
readonly loadingFeedMessages: DefaultMap<string, LoadableResource<FeedMessagesAsyncResult>>;
|
|
1929
1791
|
};
|
|
1930
1792
|
constructor(client: OpaqueClient);
|
|
1931
1793
|
/**
|
|
@@ -1990,22 +1852,6 @@ declare class UmbrellaStore<TM extends BaseMetadata, CM extends BaseMetadata> {
|
|
|
1990
1852
|
*/
|
|
1991
1853
|
updateRoomSubscriptionSettings(roomId: string, optimisticId: string, settings: Readonly<RoomSubscriptionSettings$1>): void;
|
|
1992
1854
|
fetchNotificationsDeltaUpdate(signal: AbortSignal): Promise<void>;
|
|
1993
|
-
/**
|
|
1994
|
-
* Upserts feeds in the cache (for list/added/updated operations).
|
|
1995
|
-
*/
|
|
1996
|
-
upsertFeeds(roomId: RoomId, feeds: readonly Feed[]): void;
|
|
1997
|
-
/**
|
|
1998
|
-
* Removes a feed from the cache (for deleted operations).
|
|
1999
|
-
*/
|
|
2000
|
-
deleteFeed(roomId: RoomId, feedId: string): void;
|
|
2001
|
-
/**
|
|
2002
|
-
* Upserts feed messages in the cache (for list/added/updated operations).
|
|
2003
|
-
*/
|
|
2004
|
-
upsertFeedMessages(_roomId: RoomId, feedId: string, messages: readonly FeedMessage[]): void;
|
|
2005
|
-
/**
|
|
2006
|
-
* Removes feed messages from the cache (for deleted operations).
|
|
2007
|
-
*/
|
|
2008
|
-
deleteFeedMessages(_roomId: RoomId, feedId: string, messageIds: readonly string[]): void;
|
|
2009
1855
|
fetchUnreadNotificationsCount(queryKey: InboxNotificationsQueryKey, signal: AbortSignal): Promise<void>;
|
|
2010
1856
|
fetchRoomThreadsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
|
|
2011
1857
|
fetchUserThreadsDeltaUpdate(signal: AbortSignal): Promise<void>;
|
|
@@ -2473,20 +2319,6 @@ declare function useCanRedo(): boolean;
|
|
|
2473
2319
|
* // [2, 4, 7]
|
|
2474
2320
|
*/
|
|
2475
2321
|
declare function useOthersConnectionIds(): readonly number[];
|
|
2476
|
-
declare function useCreateFeed(): (feedId: string, options?: {
|
|
2477
|
-
metadata?: FeedCreateMetadata$1;
|
|
2478
|
-
createdAt?: number;
|
|
2479
|
-
}) => Promise<void>;
|
|
2480
|
-
declare function useDeleteFeed(): (feedId: string) => Promise<void>;
|
|
2481
|
-
declare function useUpdateFeedMetadata(): (feedId: string, metadata: FeedUpdateMetadata$1) => Promise<void>;
|
|
2482
|
-
declare function useCreateFeedMessage(): (feedId: string, data: JsonObject, options?: {
|
|
2483
|
-
id?: string;
|
|
2484
|
-
createdAt?: number;
|
|
2485
|
-
}) => Promise<void>;
|
|
2486
|
-
declare function useDeleteFeedMessage(): (feedId: string, messageId: string) => Promise<void>;
|
|
2487
|
-
declare function useUpdateFeedMessage(): (feedId: string, messageId: string, data: JsonObject, options?: {
|
|
2488
|
-
updatedAt?: number;
|
|
2489
|
-
}) => Promise<void>;
|
|
2490
2322
|
/**
|
|
2491
2323
|
* @private
|
|
2492
2324
|
*/
|
|
@@ -2610,6 +2442,10 @@ declare function useHistoryVersionData(versionId: string): HistoryVersionDataAsy
|
|
|
2610
2442
|
* updateRoomSubscriptionSettings({ threads: "all" });
|
|
2611
2443
|
*/
|
|
2612
2444
|
declare function useUpdateRoomSubscriptionSettings(): (settings: Partial<RoomSubscriptionSettings$1>) => void;
|
|
2445
|
+
/**
|
|
2446
|
+
* @private For internal use only. Do not rely on this hook.
|
|
2447
|
+
*/
|
|
2448
|
+
declare function useSuspendUntilPresenceReady(): void;
|
|
2613
2449
|
/**
|
|
2614
2450
|
* Returns an array of connection IDs. This matches the values you'll get by
|
|
2615
2451
|
* using the `useOthers()` hook.
|
|
@@ -2625,6 +2461,10 @@ declare function useUpdateRoomSubscriptionSettings(): (settings: Partial<RoomSub
|
|
|
2625
2461
|
* // [2, 4, 7]
|
|
2626
2462
|
*/
|
|
2627
2463
|
declare function useOthersConnectionIdsSuspense(): readonly number[];
|
|
2464
|
+
/**
|
|
2465
|
+
* @private For internal use only. Do not rely on this hook.
|
|
2466
|
+
*/
|
|
2467
|
+
declare function useSuspendUntilStorageReady(): void;
|
|
2628
2468
|
/**
|
|
2629
2469
|
* Returns a presigned URL for an attachment by its ID.
|
|
2630
2470
|
*
|
|
@@ -2656,8 +2496,8 @@ declare function useRoomPermissions(roomId: string): Set<_liveblocks_core.Permis
|
|
|
2656
2496
|
* that any RoomProvider created in this way does not need to be nested in
|
|
2657
2497
|
* LiveblocksProvider, as it already has access to the client.
|
|
2658
2498
|
*/
|
|
2659
|
-
declare function createRoomContext<P extends JsonObject = DP, S extends LsonObject = DS, U extends BaseUserMeta = DU, E extends Json = DE, TM extends BaseMetadata$1 = DTM, CM extends BaseMetadata$1 = DCM
|
|
2660
|
-
type TypedBundle = RoomContextBundle<DP, DS, DU, DE, DTM, DCM
|
|
2499
|
+
declare function createRoomContext<P extends JsonObject = DP, S extends LsonObject = DS, U extends BaseUserMeta = DU, E extends Json = DE, TM extends BaseMetadata$1 = DTM, CM extends BaseMetadata$1 = DCM>(client: OpaqueClient): RoomContextBundle<P, S, U, E, TM, CM>;
|
|
2500
|
+
type TypedBundle = RoomContextBundle<DP, DS, DU, DE, DTM, DCM>;
|
|
2661
2501
|
/**
|
|
2662
2502
|
* Makes a Room available in the component hierarchy below.
|
|
2663
2503
|
* Joins the room when the component is mounted, and automatically leaves
|
|
@@ -2888,22 +2728,6 @@ declare const _useOthersMappedSuspense: TypedBundle["suspense"]["useOthersMapped
|
|
|
2888
2728
|
* const { threads, error, isLoading } = useThreads();
|
|
2889
2729
|
*/
|
|
2890
2730
|
declare const _useThreads: TypedBundle["useThreads"];
|
|
2891
|
-
/**
|
|
2892
|
-
* Returns feeds for the current room.
|
|
2893
|
-
*
|
|
2894
|
-
* @example
|
|
2895
|
-
* const { feeds, error, isLoading } = useFeeds();
|
|
2896
|
-
*/
|
|
2897
|
-
declare const _useFeeds: TypedBundle["useFeeds"];
|
|
2898
|
-
/**
|
|
2899
|
-
* Returns messages for a specific feed in the current room.
|
|
2900
|
-
*
|
|
2901
|
-
* @example
|
|
2902
|
-
* const { messages, error, isLoading } = useFeedMessages("feed-id");
|
|
2903
|
-
*/
|
|
2904
|
-
declare const _useFeedMessages: TypedBundle["useFeedMessages"];
|
|
2905
|
-
declare const _useFeedsSuspense: TypedBundle["suspense"]["useFeeds"];
|
|
2906
|
-
declare const _useFeedMessagesSuspense: TypedBundle["suspense"]["useFeedMessages"];
|
|
2907
2731
|
/**
|
|
2908
2732
|
* Returns the result of searching comments by text in the current room. The result includes the id and the plain text content of the matched comments along with the parent thread id of the comment.
|
|
2909
2733
|
*
|
|
@@ -3175,4 +2999,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
3175
2999
|
*/
|
|
3176
3000
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
3177
3001
|
|
|
3178
|
-
export {
|
|
3002
|
+
export { _useDeleteThread as $, type AiChatStatus as A, GlobalRoomContext as B, ClientContext as C, useClient as D, createLiveblocksContext as E, useDeleteAllInboxNotifications as F, type GroupAsyncResult as G, useDeleteInboxNotification as H, useErrorListener as I, useMarkAllInboxNotificationsAsRead as J, useMarkInboxNotificationAsRead as K, LiveblocksProvider as L, type MutationContext as M, useSyncStatus as N, createRoomContext as O, _RoomProvider as P, _useAddReaction as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, _useBroadcastEvent as T, type UseSendAiMessageOptions as U, useCanRedo as V, useCanUndo as W, _useCreateComment as X, _useCreateThread as Y, useDeleteComment as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, useNotificationSettingsSuspense as a$, _useEditComment as a0, _useEditThreadMetadata as a1, _useEditCommentMetadata as a2, useMarkThreadAsResolved as a3, useMarkThreadAsUnresolved as a4, useSubscribeToThread as a5, useUnsubscribeFromThread as a6, _useEventListener as a7, useHistory as a8, _useIsInsideRoom as a9, useInboxNotifications as aA, useNotificationSettings as aB, useUpdateNotificationSettings as aC, useCreateAiChat as aD, useDeleteAiChat as aE, useSendAiMessage as aF, _useUserThreads_experimental as aG, useRoomInfo as aH, useGroupInfo as aI, useUnreadInboxNotificationsCount as aJ, _useUser as aK, _useAiChat as aL, _useAiChats as aM, _useAiChatMessages as aN, useAiChatStatus as aO, _useUrlMetadata as aP, _useOtherSuspense as aQ, _useOthersSuspense as aR, useOthersConnectionIdsSuspense as aS, _useOthersMappedSuspense as aT, _useSelfSuspense as aU, _useStorageSuspense as aV, _useThreadsSuspense as aW, useAttachmentUrlSuspense as aX, _useHistoryVersionsSuspense as aY, _useRoomSubscriptionSettingsSuspense as aZ, useInboxNotificationsSuspense as a_, useLostConnectionListener as aa, useMarkThreadAsRead as ab, _useMutation as ac, _useMyPresence as ad, _useOthersListener as ae, useRedo as af, useRemoveReaction as ag, _useRoom as ah, useStatus as ai, _useStorageRoot as aj, useThreadSubscription as ak, useUndo as al, _useUpdateMyPresence as am, useUpdateRoomSubscriptionSettings as an, useHistoryVersionData as ao, _useOther as ap, _useOthers as aq, useOthersConnectionIds as ar, _useOthersMapped as as, _useSelf as at, _useStorage as au, _useThreads as av, _useSearchComments as aw, useAttachmentUrl as ax, _useHistoryVersions as ay, _useRoomSubscriptionSettings as az, useCreateRoomComment as b, useRoomInfoSuspense as b0, useGroupInfoSuspense as b1, useUnreadInboxNotificationsCountSuspense as b2, _useUserSuspense as b3, _useUserThreadsSuspense_experimental as b4, _useAiChatsSuspense as b5, _useAiChatMessagesSuspense as b6, _useAiChatSuspense as b7, _useUrlMetadataSuspense as b8, 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, useSuspendUntilPresenceReady as v, useSuspendUntilStorageReady as w, useYjsProvider as x, type RegisterAiToolProps as y, type UseThreadsOptions as z };
|
package/dist/suspense.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk6JXSC2A6cjs = require('./chunk-6JXSC2A6.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -77,28 +77,12 @@ var _chunk6D2LQWB5cjs = require('./chunk-6D2LQWB5.cjs');
|
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
var _chunk6VGVFTSYcjs = require('./chunk-6VGVFTSY.cjs');
|
|
80
|
+
var _chunkQEGVIJNNcjs = require('./chunk-QEGVIJNN.cjs');
|
|
89
81
|
|
|
90
82
|
// src/suspense.ts
|
|
91
83
|
var _core = require('@liveblocks/core');
|
|
92
84
|
var _client = require('@liveblocks/client');
|
|
93
|
-
_core.detectDupes.call(void 0,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
85
|
+
_core.detectDupes.call(void 0, _chunk6JXSC2A6cjs.PKG_NAME, _chunk6JXSC2A6cjs.PKG_VERSION, _chunk6JXSC2A6cjs.PKG_FORMAT);
|
|
102
86
|
|
|
103
87
|
|
|
104
88
|
|
|
@@ -175,5 +159,5 @@ _core.detectDupes.call(void 0, _chunk6D2LQWB5cjs.PKG_NAME, _chunk6D2LQWB5cjs.PKG
|
|
|
175
159
|
|
|
176
160
|
|
|
177
161
|
|
|
178
|
-
exports.ClientContext =
|
|
162
|
+
exports.ClientContext = _chunkQEGVIJNNcjs.ClientContext; exports.ClientSideSuspense = _chunk6JXSC2A6cjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkQEGVIJNNcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkQEGVIJNNcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkQEGVIJNNcjs.RegisterAiTool; exports.RoomContext = _chunkQEGVIJNNcjs.GlobalRoomContext; exports.RoomProvider = _chunkQEGVIJNNcjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkQEGVIJNNcjs._useAddReaction; exports.useAiChat = _chunkQEGVIJNNcjs._useAiChatSuspense; exports.useAiChatMessages = _chunkQEGVIJNNcjs._useAiChatMessagesSuspense; exports.useAiChatStatus = _chunkQEGVIJNNcjs.useAiChatStatus; exports.useAiChats = _chunkQEGVIJNNcjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunkQEGVIJNNcjs.useAttachmentUrlSuspense; exports.useBroadcastEvent = _chunkQEGVIJNNcjs._useBroadcastEvent; exports.useCanRedo = _chunkQEGVIJNNcjs.useCanRedo; exports.useCanUndo = _chunkQEGVIJNNcjs.useCanUndo; exports.useClient = _chunkQEGVIJNNcjs.useClient; exports.useCreateAiChat = _chunkQEGVIJNNcjs.useCreateAiChat; exports.useCreateComment = _chunkQEGVIJNNcjs._useCreateComment; exports.useCreateThread = _chunkQEGVIJNNcjs._useCreateThread; exports.useDeleteAiChat = _chunkQEGVIJNNcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkQEGVIJNNcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkQEGVIJNNcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkQEGVIJNNcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkQEGVIJNNcjs._useDeleteThread; exports.useEditComment = _chunkQEGVIJNNcjs._useEditComment; exports.useEditCommentMetadata = _chunkQEGVIJNNcjs._useEditCommentMetadata; exports.useEditThreadMetadata = _chunkQEGVIJNNcjs._useEditThreadMetadata; exports.useErrorListener = _chunkQEGVIJNNcjs.useErrorListener; exports.useEventListener = _chunkQEGVIJNNcjs._useEventListener; exports.useGroupInfo = _chunkQEGVIJNNcjs.useGroupInfoSuspense; exports.useHistory = _chunkQEGVIJNNcjs.useHistory; exports.useHistoryVersions = _chunkQEGVIJNNcjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkQEGVIJNNcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkQEGVIJNNcjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkQEGVIJNNcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkQEGVIJNNcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkQEGVIJNNcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkQEGVIJNNcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkQEGVIJNNcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkQEGVIJNNcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkQEGVIJNNcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkQEGVIJNNcjs._useMutation; exports.useMyPresence = _chunkQEGVIJNNcjs._useMyPresence; exports.useNotificationSettings = _chunkQEGVIJNNcjs.useNotificationSettingsSuspense; exports.useOther = _chunkQEGVIJNNcjs._useOtherSuspense; exports.useOthers = _chunkQEGVIJNNcjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkQEGVIJNNcjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkQEGVIJNNcjs._useOthersListener; exports.useOthersMapped = _chunkQEGVIJNNcjs._useOthersMappedSuspense; exports.useRedo = _chunkQEGVIJNNcjs.useRedo; exports.useRemoveReaction = _chunkQEGVIJNNcjs.useRemoveReaction; exports.useRoom = _chunkQEGVIJNNcjs._useRoom; exports.useRoomInfo = _chunkQEGVIJNNcjs.useRoomInfoSuspense; exports.useRoomSubscriptionSettings = _chunkQEGVIJNNcjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunkQEGVIJNNcjs._useSelfSuspense; exports.useSendAiMessage = _chunkQEGVIJNNcjs.useSendAiMessage; exports.useStatus = _chunkQEGVIJNNcjs.useStatus; exports.useStorage = _chunkQEGVIJNNcjs._useStorageSuspense; exports.useStorageRoot = _chunkQEGVIJNNcjs._useStorageRoot; exports.useSubscribeToThread = _chunkQEGVIJNNcjs.useSubscribeToThread; exports.useSyncStatus = _chunkQEGVIJNNcjs.useSyncStatus; exports.useThreadSubscription = _chunkQEGVIJNNcjs.useThreadSubscription; exports.useThreads = _chunkQEGVIJNNcjs._useThreadsSuspense; exports.useUndo = _chunkQEGVIJNNcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkQEGVIJNNcjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunkQEGVIJNNcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkQEGVIJNNcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkQEGVIJNNcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkQEGVIJNNcjs.useUpdateRoomSubscriptionSettings; exports.useUrlMetadata = _chunkQEGVIJNNcjs._useUrlMetadataSuspense; exports.useUser = _chunkQEGVIJNNcjs._useUserSuspense; exports.useUserThreads_experimental = _chunkQEGVIJNNcjs._useUserThreadsSuspense_experimental;
|
|
179
163
|
//# 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;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.cjs","../src/suspense.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;AChFA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADiF7C;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,w6JAAC","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 {\n ClientContext,\n GlobalRoomContext as RoomContext,\n useClient,\n} from \"./contexts\";\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} 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 useEditCommentMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n} from \"./room\";\n\n// Export the Suspense versions of our hooks\n// (This part differs from src/index.ts)\nexport {\n useOtherSuspense as useOther,\n useOthersSuspense as useOthers,\n useOthersConnectionIdsSuspense as useOthersConnectionIds,\n useOthersMappedSuspense as useOthersMapped,\n useSelfSuspense as useSelf,\n useStorageSuspense as useStorage,\n useThreadsSuspense as useThreads,\n useAttachmentUrlSuspense as useAttachmentUrl,\n useHistoryVersionsSuspense as useHistoryVersions,\n useRoomSubscriptionSettingsSuspense as useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useNotificationSettingsSuspense as useNotificationSettings,\n useRoomInfoSuspense as useRoomInfo,\n useGroupInfoSuspense as useGroupInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n useAiChatsSuspense as useAiChats,\n useAiChatMessagesSuspense as useAiChatMessages,\n useAiChatSuspense as useAiChat,\n useAiChatStatus,\n useUrlMetadataSuspense as useUrlMetadata,\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 { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps,
|
|
2
|
+
export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, y as RegisterAiToolProps, B as RoomContext, P as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, z as UseThreadsOptions, Q as useAddReaction, b7 as useAiChat, b6 as useAiChatMessages, aO as useAiChatStatus, b5 as useAiChats, aX as useAttachmentUrl, T as useBroadcastEvent, V as useCanRedo, W as useCanUndo, D as useClient, aD as useCreateAiChat, X as useCreateComment, Y as useCreateThread, aE as useDeleteAiChat, F as useDeleteAllInboxNotifications, Z as useDeleteComment, H as useDeleteInboxNotification, $ as useDeleteThread, a0 as useEditComment, a2 as useEditCommentMetadata, a1 as useEditThreadMetadata, I as useErrorListener, a7 as useEventListener, b1 as useGroupInfo, a8 as useHistory, aY as useHistoryVersions, _ as useInboxNotificationThread, a_ as useInboxNotifications, a9 as useIsInsideRoom, aa as useLostConnectionListener, J as useMarkAllInboxNotificationsAsRead, K as useMarkInboxNotificationAsRead, ab as useMarkThreadAsRead, a3 as useMarkThreadAsResolved, a4 as useMarkThreadAsUnresolved, ac as useMutation, ad as useMyPresence, a$ as useNotificationSettings, aQ as useOther, aR as useOthers, aS as useOthersConnectionIds, ae as useOthersListener, aT as useOthersMapped, af as useRedo, ag as useRemoveReaction, ah as useRoom, b0 as useRoomInfo, aZ as useRoomSubscriptionSettings, aU as useSelf, aF as useSendAiMessage, ai as useStatus, aV as useStorage, aj as useStorageRoot, a5 as useSubscribeToThread, N as useSyncStatus, ak as useThreadSubscription, aW as useThreads, al as useUndo, b2 as useUnreadInboxNotificationsCount, a6 as useUnsubscribeFromThread, am as useUpdateMyPresence, aC as useUpdateNotificationSettings, an as useUpdateRoomSubscriptionSettings, b8 as useUrlMetadata, b3 as useUser, b4 as useUserThreads_experimental } from './room-BvPZu216.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 { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps,
|
|
2
|
+
export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, y as RegisterAiToolProps, B as RoomContext, P as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, z as UseThreadsOptions, Q as useAddReaction, b7 as useAiChat, b6 as useAiChatMessages, aO as useAiChatStatus, b5 as useAiChats, aX as useAttachmentUrl, T as useBroadcastEvent, V as useCanRedo, W as useCanUndo, D as useClient, aD as useCreateAiChat, X as useCreateComment, Y as useCreateThread, aE as useDeleteAiChat, F as useDeleteAllInboxNotifications, Z as useDeleteComment, H as useDeleteInboxNotification, $ as useDeleteThread, a0 as useEditComment, a2 as useEditCommentMetadata, a1 as useEditThreadMetadata, I as useErrorListener, a7 as useEventListener, b1 as useGroupInfo, a8 as useHistory, aY as useHistoryVersions, _ as useInboxNotificationThread, a_ as useInboxNotifications, a9 as useIsInsideRoom, aa as useLostConnectionListener, J as useMarkAllInboxNotificationsAsRead, K as useMarkInboxNotificationAsRead, ab as useMarkThreadAsRead, a3 as useMarkThreadAsResolved, a4 as useMarkThreadAsUnresolved, ac as useMutation, ad as useMyPresence, a$ as useNotificationSettings, aQ as useOther, aR as useOthers, aS as useOthersConnectionIds, ae as useOthersListener, aT as useOthersMapped, af as useRedo, ag as useRemoveReaction, ah as useRoom, b0 as useRoomInfo, aZ as useRoomSubscriptionSettings, aU as useSelf, aF as useSendAiMessage, ai as useStatus, aV as useStorage, aj as useStorageRoot, a5 as useSubscribeToThread, N as useSyncStatus, ak as useThreadSubscription, aW as useThreads, al as useUndo, b2 as useUnreadInboxNotificationsCount, a6 as useUnsubscribeFromThread, am as useUpdateMyPresence, aC as useUpdateNotificationSettings, an as useUpdateRoomSubscriptionSettings, b8 as useUrlMetadata, b3 as useUser, b4 as useUserThreads_experimental } from './room-BvPZu216.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-2AIWAOIV.js";
|
|
7
7
|
import {
|
|
8
8
|
ClientContext,
|
|
9
9
|
GlobalRoomContext,
|
|
@@ -23,8 +23,6 @@ import {
|
|
|
23
23
|
_useEditCommentMetadata,
|
|
24
24
|
_useEditThreadMetadata,
|
|
25
25
|
_useEventListener,
|
|
26
|
-
_useFeedMessagesSuspense,
|
|
27
|
-
_useFeedsSuspense,
|
|
28
26
|
_useHistoryVersionsSuspense,
|
|
29
27
|
_useInboxNotificationThread,
|
|
30
28
|
_useIsInsideRoom,
|
|
@@ -50,13 +48,9 @@ import {
|
|
|
50
48
|
useCanUndo,
|
|
51
49
|
useClient,
|
|
52
50
|
useCreateAiChat,
|
|
53
|
-
useCreateFeed,
|
|
54
|
-
useCreateFeedMessage,
|
|
55
51
|
useDeleteAiChat,
|
|
56
52
|
useDeleteAllInboxNotifications,
|
|
57
53
|
useDeleteComment,
|
|
58
|
-
useDeleteFeed,
|
|
59
|
-
useDeleteFeedMessage,
|
|
60
54
|
useDeleteInboxNotification,
|
|
61
55
|
useErrorListener,
|
|
62
56
|
useGroupInfoSuspense,
|
|
@@ -81,11 +75,9 @@ import {
|
|
|
81
75
|
useUndo,
|
|
82
76
|
useUnreadInboxNotificationsCountSuspense,
|
|
83
77
|
useUnsubscribeFromThread,
|
|
84
|
-
useUpdateFeedMessage,
|
|
85
|
-
useUpdateFeedMetadata,
|
|
86
78
|
useUpdateNotificationSettings,
|
|
87
79
|
useUpdateRoomSubscriptionSettings
|
|
88
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-2VF57BZV.js";
|
|
89
81
|
|
|
90
82
|
// src/suspense.ts
|
|
91
83
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -113,14 +105,10 @@ export {
|
|
|
113
105
|
useClient,
|
|
114
106
|
useCreateAiChat,
|
|
115
107
|
_useCreateComment as useCreateComment,
|
|
116
|
-
useCreateFeed,
|
|
117
|
-
useCreateFeedMessage,
|
|
118
108
|
_useCreateThread as useCreateThread,
|
|
119
109
|
useDeleteAiChat,
|
|
120
110
|
useDeleteAllInboxNotifications,
|
|
121
111
|
useDeleteComment,
|
|
122
|
-
useDeleteFeed,
|
|
123
|
-
useDeleteFeedMessage,
|
|
124
112
|
useDeleteInboxNotification,
|
|
125
113
|
_useDeleteThread as useDeleteThread,
|
|
126
114
|
_useEditComment as useEditComment,
|
|
@@ -128,8 +116,6 @@ export {
|
|
|
128
116
|
_useEditThreadMetadata as useEditThreadMetadata,
|
|
129
117
|
useErrorListener,
|
|
130
118
|
_useEventListener as useEventListener,
|
|
131
|
-
_useFeedMessagesSuspense as useFeedMessages,
|
|
132
|
-
_useFeedsSuspense as useFeeds,
|
|
133
119
|
useGroupInfoSuspense as useGroupInfo,
|
|
134
120
|
useHistory,
|
|
135
121
|
_useHistoryVersionsSuspense as useHistoryVersions,
|
|
@@ -167,8 +153,6 @@ export {
|
|
|
167
153
|
useUndo,
|
|
168
154
|
useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,
|
|
169
155
|
useUnsubscribeFromThread,
|
|
170
|
-
useUpdateFeedMessage,
|
|
171
|
-
useUpdateFeedMetadata,
|
|
172
156
|
_useUpdateMyPresence as useUpdateMyPresence,
|
|
173
157
|
useUpdateNotificationSettings,
|
|
174
158
|
useUpdateRoomSubscriptionSettings,
|
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 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 {\n ClientContext,\n GlobalRoomContext as RoomContext,\n useClient,\n} from \"./contexts\";\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} 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
|
|
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 {\n ClientContext,\n GlobalRoomContext as RoomContext,\n useClient,\n} from \"./contexts\";\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} 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 useEditCommentMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n} from \"./room\";\n\n// Export the Suspense versions of our hooks\n// (This part differs from src/index.ts)\nexport {\n useOtherSuspense as useOther,\n useOthersSuspense as useOthers,\n useOthersConnectionIdsSuspense as useOthersConnectionIds,\n useOthersMappedSuspense as useOthersMapped,\n useSelfSuspense as useSelf,\n useStorageSuspense as useStorage,\n useThreadsSuspense as useThreads,\n useAttachmentUrlSuspense as useAttachmentUrl,\n useHistoryVersionsSuspense as useHistoryVersions,\n useRoomSubscriptionSettingsSuspense as useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useNotificationSettingsSuspense as useNotificationSettings,\n useRoomInfoSuspense as useRoomInfo,\n useGroupInfoSuspense as useGroupInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n useAiChatsSuspense as useAiChats,\n useAiChatMessagesSuspense as useAiChatMessages,\n useAiChatSuspense as useAiChat,\n useAiChatStatus,\n useUrlMetadataSuspense as useUrlMetadata,\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.16.0-
|
|
3
|
+
"version": "3.16.0-flow2",
|
|
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
|
"author": "Liveblocks Inc.",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"showdeps": "depcruise src --include-only '^src' --exclude='__tests__' --output-type dot | dot -T svg > /tmp/dependency-graph.svg && open /tmp/dependency-graph.svg"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@liveblocks/client": "3.16.0-
|
|
67
|
-
"@liveblocks/core": "3.16.0-
|
|
66
|
+
"@liveblocks/client": "3.16.0-flow2",
|
|
67
|
+
"@liveblocks/core": "3.16.0-flow2"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"@types/react": "*",
|