@liveblocks/react 3.15.0-feeds1 → 3.15.0-rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,7 @@
1
- import * as react from 'react';
2
- import { ComponentType, Context, PropsWithChildren, ReactNode } from 'react';
3
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';
4
2
  import * as _liveblocks_core from '@liveblocks/core';
5
- import { OpaqueClient, OpaqueRoom, AiKnowledgeSource, AiOpaqueToolDefinition, Relax, AiAssistantContentPart, BaseMetadata, QueryMetadata, AsyncResult, DRI, AsyncSuccess, DGI, GroupData, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, ToImmutable, MessageId, PartialNotificationSettings, AiChatsQuery, AsyncLoading, AsyncError, ThreadData, SearchCommentsResult, Feed, FeedMessage, 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, DSM, DMD } 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, 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
+ import { Context, ComponentType, PropsWithChildren, ReactNode } from 'react';
6
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
6
 
8
7
  /**
@@ -11,7 +10,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
11
10
  *
12
11
  * @private This is a private/advanced API. Do not rely on it.
13
12
  */
14
- declare const ClientContext: react.Context<OpaqueClient | null>;
13
+ declare const ClientContext: Context<OpaqueClient | null>;
15
14
  /**
16
15
  * @private This is an internal API.
17
16
  */
@@ -25,8 +24,11 @@ declare function useClient<U extends BaseUserMeta>(): Client<U>;
25
24
  * room. Exposed for advanced use cases only.
26
25
  *
27
26
  * @private This is a private/advanced API. Do not rely on it.
27
+ *
28
+ * This context is exported publicly as `import { RoomContext } from "@liveblocks/react"`,
29
+ * not `GlobalRoomContext`.
28
30
  */
29
- declare const RoomContext: react.Context<OpaqueRoom | null>;
31
+ declare const GlobalRoomContext: Context<OpaqueRoom | null>;
30
32
 
31
33
  type RegisterAiKnowledgeProps = AiKnowledgeSource & {
32
34
  /**
@@ -206,26 +208,6 @@ type UseInboxNotificationsOptions = {
206
208
  */
207
209
  query?: InboxNotificationsQuery;
208
210
  };
209
- type UseFeedsOptions = {
210
- /**
211
- * Optional timestamp filter. Only feeds created or updated after this timestamp will be returned.
212
- */
213
- since?: number;
214
- /**
215
- * Optional metadata filter. Only feeds with matching metadata will be returned.
216
- */
217
- metadata?: Record<string, string>;
218
- };
219
- type UseFeedMessagesOptions = {
220
- /**
221
- * Optional cursor for pagination.
222
- */
223
- cursor?: string;
224
- /**
225
- * Optional limit for the number of messages to fetch.
226
- */
227
- limit?: number;
228
- };
229
211
  type UserAsyncResult<T> = AsyncResult<T, "user">;
230
212
  type UserAsyncSuccess<T> = AsyncSuccess<T, "user">;
231
213
  type RoomInfoAsyncResult = AsyncResult<DRI, "info">;
@@ -288,10 +270,6 @@ type ThreadsAsyncResult<TM extends BaseMetadata, CM extends BaseMetadata> = Page
288
270
  type SearchCommentsAsyncResult = AsyncResult<Array<SearchCommentsResult>, "results">;
289
271
  type InboxNotificationsAsyncSuccess = PagedAsyncSuccess<InboxNotificationData[], "inboxNotifications">;
290
272
  type InboxNotificationsAsyncResult = PagedAsyncResult<InboxNotificationData[], "inboxNotifications">;
291
- type FeedsAsyncSuccess<FM extends Json = Json> = PagedAsyncSuccess<Feed<FM>[], "feeds">;
292
- type FeedsAsyncResult<FM extends Json = Json> = PagedAsyncResult<Feed<FM>[], "feeds">;
293
- type FeedMessagesAsyncSuccess<FMD extends Json = Json> = PagedAsyncSuccess<FeedMessage<FMD>[], "messages">;
294
- type FeedMessagesAsyncResult<FMD extends Json = Json> = PagedAsyncResult<FeedMessage<FMD>[], "messages">;
295
273
  type UnreadInboxNotificationsCountAsyncSuccess = AsyncSuccess<number, "count">;
296
274
  type UnreadInboxNotificationsCountAsyncResult = AsyncResult<number, "count">;
297
275
  type NotificationSettingsAsyncResult = AsyncResult<NotificationSettings, "settings">;
@@ -527,13 +505,13 @@ type SharedContextBundle<U extends BaseUserMeta> = {
527
505
  /**
528
506
  * Properties that are the same in RoomContext and RoomContext["suspense"].
529
507
  */
530
- type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U extends BaseUserMeta, E extends Json, TM extends BaseMetadata, CM extends BaseMetadata, SM extends Json = Json, MD extends Json = Json> = {
508
+ type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U extends BaseUserMeta, E extends Json, TM extends BaseMetadata, CM extends BaseMetadata> = {
531
509
  /**
532
510
  * You normally don't need to directly interact with the RoomContext, but
533
511
  * it can be necessary if you're building an advanced app where you need to
534
512
  * set up a context bridge between two React renderers.
535
513
  */
536
- RoomContext: Context<Room<P, S, U, E, TM, CM, SM, MD> | null>;
514
+ RoomContext: Context<Room<P, S, U, E, TM, CM> | null>;
537
515
  /**
538
516
  * Makes a Room available in the component hierarchy below.
539
517
  * Joins the room when the component is mounted, and automatically leaves
@@ -546,10 +524,10 @@ type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U exten
546
524
  */
547
525
  useRoom(options?: {
548
526
  allowOutsideRoom: false;
549
- }): Room<P, S, U, E, TM, CM, SM, MD>;
527
+ }): Room<P, S, U, E, TM, CM>;
550
528
  useRoom(options: {
551
529
  allowOutsideRoom: boolean;
552
- }): Room<P, S, U, E, TM, CM, SM, MD> | null;
530
+ }): Room<P, S, U, E, TM, CM> | null;
553
531
  /**
554
532
  * Returns the current connection status for the Room, and triggers
555
533
  * a re-render whenever it changes. Can be used to render a status badge.
@@ -947,7 +925,7 @@ type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U exten
947
925
  */
948
926
  useThreadSubscription(threadId: string): ThreadSubscription;
949
927
  };
950
- type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends BaseUserMeta, E extends Json, TM extends BaseMetadata, CM extends BaseMetadata, SM extends Json = Json, MD extends Json = Json> = Resolve<RoomContextBundleCommon<P, S, U, E, TM, CM, SM, MD> & SharedContextBundle<U>["classic"] & {
928
+ 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"] & {
951
929
  /**
952
930
  * Extract arbitrary data from the Liveblocks Storage state, using an
953
931
  * arbitrary selector function.
@@ -1009,74 +987,6 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
1009
987
  * const { threads, error, isLoading } = useThreads();
1010
988
  */
1011
989
  useThreads(options?: UseThreadsOptions<TM>): ThreadsAsyncResult<TM, CM>;
1012
- /**
1013
- * Returns feeds for the current room.
1014
- *
1015
- * @example
1016
- * const { feeds, error, isLoading } = useFeeds();
1017
- */
1018
- useFeeds(options?: UseFeedsOptions): FeedsAsyncResult<SM>;
1019
- /**
1020
- * Returns messages for a specific feed in the current room.
1021
- *
1022
- * @example
1023
- * const { messages, error, isLoading } = useFeedMessages("feed-id");
1024
- */
1025
- useFeedMessages(feedId: string, options?: UseFeedMessagesOptions): FeedMessagesAsyncResult<MD>;
1026
- /**
1027
- * Returns a function that creates a new feed in the current room.
1028
- *
1029
- * @example
1030
- * const createFeed = useCreateFeed();
1031
- * createFeed("feed-id", { metadata: { name: "My Feed" } });
1032
- */
1033
- useCreateFeed(): (feedId: string, options?: {
1034
- metadata?: JsonObject;
1035
- timestamp?: number;
1036
- }) => void;
1037
- /**
1038
- * Returns a function that deletes a feed from the current room.
1039
- *
1040
- * @example
1041
- * const deleteFeed = useDeleteFeed();
1042
- * deleteFeed("feed-id");
1043
- */
1044
- useDeleteFeed(): (feedId: string) => void;
1045
- /**
1046
- * Returns a function that updates a feed's metadata in the current room.
1047
- *
1048
- * @example
1049
- * const updateFeedMetadata = useUpdateFeedMetadata();
1050
- * updateFeedMetadata("feed-id", { name: "Updated Name" });
1051
- */
1052
- useUpdateFeedMetadata(): (feedId: string, metadata: JsonObject) => void;
1053
- /**
1054
- * Returns a function that adds a message to a feed in the current room.
1055
- *
1056
- * @example
1057
- * const createFeedMessage = useCreateFeedMessage();
1058
- * createFeedMessage("feed-id", { text: "Hello" });
1059
- */
1060
- useCreateFeedMessage(): (feedId: string, data: JsonObject, options?: {
1061
- id?: string;
1062
- timestamp?: number;
1063
- }) => void;
1064
- /**
1065
- * Returns a function that deletes a message from a feed in the current room.
1066
- *
1067
- * @example
1068
- * const deleteFeedMessage = useDeleteFeedMessage();
1069
- * deleteFeedMessage("feed-id", "message-id");
1070
- */
1071
- useDeleteFeedMessage(): (feedId: string, messageId: string) => void;
1072
- /**
1073
- * Returns a function that updates a feed message in the current room.
1074
- *
1075
- * @example
1076
- * const updateFeedMessage = useUpdateFeedMessage();
1077
- * updateFeedMessage("feed-id", "message-id", { text: "Updated" });
1078
- */
1079
- useUpdateFeedMessage(): (feedId: string, messageId: string, data: JsonObject) => void;
1080
990
  /**
1081
991
  * 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.
1082
992
  *
@@ -1116,7 +1026,7 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
1116
1026
  * const { data, error, isLoading } = useHistoryVersionData(version.id);
1117
1027
  */
1118
1028
  useHistoryVersionData(id: string): HistoryVersionDataAsyncResult;
1119
- suspense: Resolve<RoomContextBundleCommon<P, S, U, E, TM, CM, SM, MD> & SharedContextBundle<U>["suspense"] & {
1029
+ suspense: Resolve<RoomContextBundleCommon<P, S, U, E, TM, CM> & SharedContextBundle<U>["suspense"] & {
1120
1030
  /**
1121
1031
  * Extract arbitrary data from the Liveblocks Storage state, using an
1122
1032
  * arbitrary selector function.
@@ -1172,32 +1082,6 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
1172
1082
  * const { threads } = useThreads();
1173
1083
  */
1174
1084
  useThreads(options?: UseThreadsOptions<TM>): ThreadsAsyncSuccess<TM, CM>;
1175
- /**
1176
- * Returns feeds for the current room.
1177
- *
1178
- * @example
1179
- * const { feeds } = useFeeds();
1180
- */
1181
- useFeeds(options?: UseFeedsOptions): FeedsAsyncSuccess<SM>;
1182
- /**
1183
- * Returns messages for a specific feed in the current room.
1184
- *
1185
- * @example
1186
- * const { messages } = useFeedMessages("feed-id");
1187
- */
1188
- useFeedMessages(feedId: string, options?: UseFeedMessagesOptions): FeedMessagesAsyncSuccess<MD>;
1189
- useCreateFeed(): (feedId: string, options?: {
1190
- metadata?: JsonObject;
1191
- timestamp?: number;
1192
- }) => void;
1193
- useDeleteFeed(): (feedId: string) => void;
1194
- useUpdateFeedMetadata(): (feedId: string, metadata: JsonObject) => void;
1195
- useCreateFeedMessage(): (feedId: string, data: JsonObject, options?: {
1196
- id?: string;
1197
- timestamp?: number;
1198
- }) => void;
1199
- useDeleteFeedMessage(): (feedId: string, messageId: string) => void;
1200
- useUpdateFeedMessage(): (feedId: string, messageId: string, data: JsonObject) => void;
1201
1085
  /**
1202
1086
  * (Private beta) Returns a history of versions of the current room.
1203
1087
  *
@@ -1905,8 +1789,6 @@ declare class UmbrellaStore<TM extends BaseMetadata, CM extends BaseMetadata> {
1905
1789
  readonly messagesByChatId: DefaultMap<string, DefaultMap<MessageId | null, LoadableResource<AiChatMessagesAsyncResult>>>;
1906
1790
  readonly aiChatById: DefaultMap<string, LoadableResource<AiChatAsyncResult>>;
1907
1791
  readonly urlMetadataByUrl: DefaultMap<string, LoadableResource<UrlMetadataAsyncResult>>;
1908
- readonly loadingFeeds: DefaultMap<string, LoadableResource<FeedsAsyncResult>>;
1909
- readonly loadingFeedMessages: DefaultMap<string, LoadableResource<FeedMessagesAsyncResult>>;
1910
1792
  };
1911
1793
  constructor(client: OpaqueClient);
1912
1794
  /**
@@ -1971,22 +1853,6 @@ declare class UmbrellaStore<TM extends BaseMetadata, CM extends BaseMetadata> {
1971
1853
  */
1972
1854
  updateRoomSubscriptionSettings(roomId: string, optimisticId: string, settings: Readonly<RoomSubscriptionSettings$1>): void;
1973
1855
  fetchNotificationsDeltaUpdate(signal: AbortSignal): Promise<void>;
1974
- /**
1975
- * Upserts feeds in the cache (for list/added/updated operations).
1976
- */
1977
- upsertFeeds(roomId: RoomId, feeds: readonly Feed[]): void;
1978
- /**
1979
- * Removes feeds from the cache (for deleted operations).
1980
- */
1981
- deleteFeeds(roomId: RoomId, feeds: readonly Feed[]): void;
1982
- /**
1983
- * Upserts feed messages in the cache (for list/added/updated operations).
1984
- */
1985
- upsertFeedMessages(_roomId: RoomId, feedId: string, messages: readonly FeedMessage[]): void;
1986
- /**
1987
- * Removes feed messages from the cache (for deleted operations).
1988
- */
1989
- deleteFeedMessages(_roomId: RoomId, feedId: string, messages: readonly FeedMessage[]): void;
1990
1856
  fetchUnreadNotificationsCount(queryKey: InboxNotificationsQueryKey, signal: AbortSignal): Promise<void>;
1991
1857
  fetchRoomThreadsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
1992
1858
  fetchUserThreadsDeltaUpdate(signal: AbortSignal): Promise<void>;
@@ -2454,18 +2320,6 @@ declare function useCanRedo(): boolean;
2454
2320
  * // [2, 4, 7]
2455
2321
  */
2456
2322
  declare function useOthersConnectionIds(): readonly number[];
2457
- declare function useCreateFeed(): (feedId: string, options?: {
2458
- metadata?: JsonObject;
2459
- timestamp?: number;
2460
- }) => void;
2461
- declare function useDeleteFeed(): (feedId: string) => void;
2462
- declare function useUpdateFeedMetadata(): (feedId: string, metadata: JsonObject) => void;
2463
- declare function useCreateFeedMessage(): (feedId: string, data: JsonObject, options?: {
2464
- id?: string;
2465
- timestamp?: number;
2466
- }) => void;
2467
- declare function useDeleteFeedMessage(): (feedId: string, messageId: string) => void;
2468
- declare function useUpdateFeedMessage(): (feedId: string, messageId: string, data: JsonObject) => void;
2469
2323
  /**
2470
2324
  * @private
2471
2325
  */
@@ -2509,6 +2363,10 @@ declare function useRemoveReaction(): ({ threadId, commentId, emoji }: CommentRe
2509
2363
  * @private
2510
2364
  */
2511
2365
  declare function useRemoveRoomCommentReaction(roomId: string): ({ threadId, commentId, emoji }: CommentReactionOptions) => void;
2366
+ /**
2367
+ * @private
2368
+ */
2369
+ declare function useMarkRoomThreadAsRead(roomId: string): (threadId: string) => void;
2512
2370
  /**
2513
2371
  * Returns a function that marks a thread as read.
2514
2372
  *
@@ -2517,10 +2375,6 @@ declare function useRemoveRoomCommentReaction(roomId: string): ({ threadId, comm
2517
2375
  * markThreadAsRead("th_xxx");
2518
2376
  */
2519
2377
  declare function useMarkThreadAsRead(): (threadId: string) => void;
2520
- /**
2521
- * @private
2522
- */
2523
- declare function useMarkRoomThreadAsRead(roomId: string): (threadId: string) => void;
2524
2378
  /**
2525
2379
  * Returns a function that marks a thread as resolved.
2526
2380
  *
@@ -2635,8 +2489,8 @@ declare function useRoomPermissions(roomId: string): Set<_liveblocks_core.Permis
2635
2489
  * that any RoomProvider created in this way does not need to be nested in
2636
2490
  * LiveblocksProvider, as it already has access to the client.
2637
2491
  */
2638
- 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, SM extends Json = Json, MD extends Json = Json>(client: OpaqueClient): RoomContextBundle<P, S, U, E, TM, CM, SM, MD>;
2639
- type TypedBundle = RoomContextBundle<DP, DS, DU, DE, DTM, DCM, DSM, DMD>;
2492
+ 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>;
2493
+ type TypedBundle = RoomContextBundle<DP, DS, DU, DE, DTM, DCM>;
2640
2494
  /**
2641
2495
  * Makes a Room available in the component hierarchy below.
2642
2496
  * Joins the room when the component is mounted, and automatically leaves
@@ -2867,22 +2721,6 @@ declare const _useOthersMappedSuspense: TypedBundle["suspense"]["useOthersMapped
2867
2721
  * const { threads, error, isLoading } = useThreads();
2868
2722
  */
2869
2723
  declare const _useThreads: TypedBundle["useThreads"];
2870
- /**
2871
- * Returns feeds for the current room.
2872
- *
2873
- * @example
2874
- * const { feeds, error, isLoading } = useFeeds();
2875
- */
2876
- declare const _useFeeds: TypedBundle["useFeeds"];
2877
- /**
2878
- * Returns messages for a specific feed in the current room.
2879
- *
2880
- * @example
2881
- * const { messages, error, isLoading } = useFeedMessages("feed-id");
2882
- */
2883
- declare const _useFeedMessages: TypedBundle["useFeedMessages"];
2884
- declare const _useFeedsSuspense: TypedBundle["suspense"]["useFeeds"];
2885
- declare const _useFeedMessagesSuspense: TypedBundle["suspense"]["useFeedMessages"];
2886
2724
  /**
2887
2725
  * 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.
2888
2726
  *
@@ -3154,4 +2992,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
3154
2992
  */
3155
2993
  declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
3156
2994
 
3157
- export { _useEditThreadMetadata as $, type AiChatStatus as A, createLiveblocksContext as B, ClientContext as C, useDeleteAllInboxNotifications as D, useDeleteInboxNotification as E, useErrorListener as F, type GroupAsyncResult as G, useMarkAllInboxNotificationsAsRead as H, useMarkInboxNotificationAsRead as I, useSyncStatus as J, createRoomContext as K, LiveblocksProvider as L, type MutationContext as M, _RoomProvider as N, _useAddReaction as O, _useBroadcastEvent as P, useCanRedo as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCanUndo as T, type UseSendAiMessageOptions as U, _useCreateComment as V, _useCreateThread as W, useDeleteComment as X, _useDeleteThread as Y, _useEditComment as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, _useStorageSuspense as a$, _useEditCommentMetadata as a0, useMarkThreadAsResolved as a1, useMarkThreadAsUnresolved as a2, useSubscribeToThread as a3, useUnsubscribeFromThread as a4, _useEventListener as a5, useHistory as a6, _useIsInsideRoom as a7, useLostConnectionListener as a8, useMarkThreadAsRead as a9, useDeleteFeedMessage as aA, useUpdateFeedMessage as aB, _useSearchComments as aC, useAttachmentUrl as aD, _useHistoryVersions as aE, _useRoomSubscriptionSettings as aF, useInboxNotifications as aG, useNotificationSettings as aH, useUpdateNotificationSettings as aI, useCreateAiChat as aJ, useDeleteAiChat as aK, useSendAiMessage as aL, _useUserThreads_experimental as aM, useRoomInfo as aN, useGroupInfo as aO, useUnreadInboxNotificationsCount as aP, _useUser as aQ, _useAiChat as aR, _useAiChats as aS, _useAiChatMessages as aT, useAiChatStatus as aU, _useUrlMetadata as aV, _useOtherSuspense as aW, _useOthersSuspense as aX, useOthersConnectionIdsSuspense as aY, _useOthersMappedSuspense as aZ, _useSelfSuspense as a_, _useMutation as aa, _useMyPresence as ab, _useOthersListener as ac, useRedo as ad, useRemoveReaction as ae, _useRoom as af, useStatus as ag, _useStorageRoot as ah, useThreadSubscription as ai, useUndo as aj, _useUpdateMyPresence as ak, useUpdateRoomSubscriptionSettings as al, useHistoryVersionData as am, _useOther as an, _useOthers as ao, useOthersConnectionIds as ap, _useOthersMapped as aq, _useSelf as ar, _useStorage as as, _useThreads as at, _useFeeds as au, _useFeedMessages as av, useCreateFeed as aw, useDeleteFeed as ax, useUpdateFeedMetadata as ay, useCreateFeedMessage as az, useCreateRoomComment as b, _useThreadsSuspense as b0, useAttachmentUrlSuspense as b1, _useHistoryVersionsSuspense as b2, _useRoomSubscriptionSettingsSuspense as b3, _useFeedsSuspense as b4, _useFeedMessagesSuspense as b5, useInboxNotificationsSuspense as b6, useNotificationSettingsSuspense as b7, useRoomInfoSuspense as b8, useGroupInfoSuspense as b9, useUnreadInboxNotificationsCountSuspense as ba, _useUserSuspense as bb, _useUserThreadsSuspense_experimental as bc, _useAiChatsSuspense as bd, _useAiChatMessagesSuspense as be, _useAiChatSuspense as bf, _useUrlMetadataSuspense as bg, 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 };
2995
+ export { _useEditThreadMetadata as $, type AiChatStatus as A, createLiveblocksContext as B, ClientContext as C, useDeleteAllInboxNotifications as D, useDeleteInboxNotification as E, useErrorListener as F, type GroupAsyncResult as G, useMarkAllInboxNotificationsAsRead as H, useMarkInboxNotificationAsRead as I, useSyncStatus as J, createRoomContext as K, LiveblocksProvider as L, type MutationContext as M, _RoomProvider as N, _useAddReaction as O, _useBroadcastEvent as P, useCanRedo as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCanUndo as T, type UseSendAiMessageOptions as U, _useCreateComment as V, _useCreateThread as W, useDeleteComment as X, _useDeleteThread as Y, _useEditComment as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, useGroupInfoSuspense as a$, _useEditCommentMetadata as a0, useMarkThreadAsResolved as a1, useMarkThreadAsUnresolved as a2, useSubscribeToThread as a3, useUnsubscribeFromThread as a4, _useEventListener as a5, useHistory as a6, _useIsInsideRoom as a7, useLostConnectionListener as a8, useMarkThreadAsRead as a9, useUpdateNotificationSettings as aA, useCreateAiChat as aB, useDeleteAiChat as aC, useSendAiMessage as aD, _useUserThreads_experimental as aE, useRoomInfo as aF, useGroupInfo as aG, useUnreadInboxNotificationsCount as aH, _useUser as aI, _useAiChat as aJ, _useAiChats as aK, _useAiChatMessages as aL, useAiChatStatus as aM, _useUrlMetadata as aN, _useOtherSuspense as aO, _useOthersSuspense as aP, useOthersConnectionIdsSuspense as aQ, _useOthersMappedSuspense as aR, _useSelfSuspense as aS, _useStorageSuspense as aT, _useThreadsSuspense as aU, useAttachmentUrlSuspense as aV, _useHistoryVersionsSuspense as aW, _useRoomSubscriptionSettingsSuspense as aX, useInboxNotificationsSuspense as aY, useNotificationSettingsSuspense as aZ, useRoomInfoSuspense as a_, _useMutation as aa, _useMyPresence as ab, _useOthersListener as ac, useRedo as ad, useRemoveReaction as ae, _useRoom as af, useStatus as ag, _useStorageRoot as ah, useThreadSubscription as ai, useUndo as aj, _useUpdateMyPresence as ak, useUpdateRoomSubscriptionSettings as al, useHistoryVersionData as am, _useOther as an, _useOthers as ao, useOthersConnectionIds as ap, _useOthersMapped as aq, _useSelf as ar, _useStorage as as, _useThreads as at, _useSearchComments as au, useAttachmentUrl as av, _useHistoryVersions as aw, _useRoomSubscriptionSettings as ax, useInboxNotifications as ay, useNotificationSettings as az, useCreateRoomComment as b, useUnreadInboxNotificationsCountSuspense as b0, _useUserSuspense as b1, _useUserThreadsSuspense_experimental as b2, _useAiChatsSuspense as b3, _useAiChatMessagesSuspense as b4, _useAiChatSuspense as b5, _useUrlMetadataSuspense as b6, 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, GlobalRoomContext as y, useClient as z };
package/dist/suspense.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkPQ62AG2Kcjs = require('./chunk-PQ62AG2K.cjs');
6
+ var _chunkSBRWCEYIcjs = require('./chunk-SBRWCEYI.cjs');
7
7
 
8
8
 
9
9
 
@@ -77,28 +77,12 @@ var _chunkPQ62AG2Kcjs = require('./chunk-PQ62AG2K.cjs');
77
77
 
78
78
 
79
79
 
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
- var _chunkFLKIHVRXcjs = require('./chunk-FLKIHVRX.cjs');
80
+ var _chunkL3D3UECFcjs = require('./chunk-L3D3UECF.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, _chunkPQ62AG2Kcjs.PKG_NAME, _chunkPQ62AG2Kcjs.PKG_VERSION, _chunkPQ62AG2Kcjs.PKG_FORMAT);
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
85
+ _core.detectDupes.call(void 0, _chunkSBRWCEYIcjs.PKG_NAME, _chunkSBRWCEYIcjs.PKG_VERSION, _chunkSBRWCEYIcjs.PKG_FORMAT);
102
86
 
103
87
 
104
88
 
@@ -175,5 +159,5 @@ _core.detectDupes.call(void 0, _chunkPQ62AG2Kcjs.PKG_NAME, _chunkPQ62AG2Kcjs.PKG
175
159
 
176
160
 
177
161
 
178
- exports.ClientContext = _chunkFLKIHVRXcjs.ClientContext; exports.ClientSideSuspense = _chunkPQ62AG2Kcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkFLKIHVRXcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkFLKIHVRXcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkFLKIHVRXcjs.RegisterAiTool; exports.RoomContext = _chunkFLKIHVRXcjs.RoomContext; exports.RoomProvider = _chunkFLKIHVRXcjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkFLKIHVRXcjs._useAddReaction; exports.useAiChat = _chunkFLKIHVRXcjs._useAiChatSuspense; exports.useAiChatMessages = _chunkFLKIHVRXcjs._useAiChatMessagesSuspense; exports.useAiChatStatus = _chunkFLKIHVRXcjs.useAiChatStatus; exports.useAiChats = _chunkFLKIHVRXcjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunkFLKIHVRXcjs.useAttachmentUrlSuspense; exports.useBroadcastEvent = _chunkFLKIHVRXcjs._useBroadcastEvent; exports.useCanRedo = _chunkFLKIHVRXcjs.useCanRedo; exports.useCanUndo = _chunkFLKIHVRXcjs.useCanUndo; exports.useClient = _chunkFLKIHVRXcjs.useClient; exports.useCreateAiChat = _chunkFLKIHVRXcjs.useCreateAiChat; exports.useCreateComment = _chunkFLKIHVRXcjs._useCreateComment; exports.useCreateFeed = _chunkFLKIHVRXcjs.useCreateFeed; exports.useCreateFeedMessage = _chunkFLKIHVRXcjs.useCreateFeedMessage; exports.useCreateThread = _chunkFLKIHVRXcjs._useCreateThread; exports.useDeleteAiChat = _chunkFLKIHVRXcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkFLKIHVRXcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkFLKIHVRXcjs.useDeleteComment; exports.useDeleteFeed = _chunkFLKIHVRXcjs.useDeleteFeed; exports.useDeleteFeedMessage = _chunkFLKIHVRXcjs.useDeleteFeedMessage; exports.useDeleteInboxNotification = _chunkFLKIHVRXcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkFLKIHVRXcjs._useDeleteThread; exports.useEditComment = _chunkFLKIHVRXcjs._useEditComment; exports.useEditCommentMetadata = _chunkFLKIHVRXcjs._useEditCommentMetadata; exports.useEditThreadMetadata = _chunkFLKIHVRXcjs._useEditThreadMetadata; exports.useErrorListener = _chunkFLKIHVRXcjs.useErrorListener; exports.useEventListener = _chunkFLKIHVRXcjs._useEventListener; exports.useFeedMessages = _chunkFLKIHVRXcjs._useFeedMessagesSuspense; exports.useFeeds = _chunkFLKIHVRXcjs._useFeedsSuspense; exports.useGroupInfo = _chunkFLKIHVRXcjs.useGroupInfoSuspense; exports.useHistory = _chunkFLKIHVRXcjs.useHistory; exports.useHistoryVersions = _chunkFLKIHVRXcjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkFLKIHVRXcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkFLKIHVRXcjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkFLKIHVRXcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkFLKIHVRXcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkFLKIHVRXcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkFLKIHVRXcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkFLKIHVRXcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkFLKIHVRXcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkFLKIHVRXcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkFLKIHVRXcjs._useMutation; exports.useMyPresence = _chunkFLKIHVRXcjs._useMyPresence; exports.useNotificationSettings = _chunkFLKIHVRXcjs.useNotificationSettingsSuspense; exports.useOther = _chunkFLKIHVRXcjs._useOtherSuspense; exports.useOthers = _chunkFLKIHVRXcjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkFLKIHVRXcjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkFLKIHVRXcjs._useOthersListener; exports.useOthersMapped = _chunkFLKIHVRXcjs._useOthersMappedSuspense; exports.useRedo = _chunkFLKIHVRXcjs.useRedo; exports.useRemoveReaction = _chunkFLKIHVRXcjs.useRemoveReaction; exports.useRoom = _chunkFLKIHVRXcjs._useRoom; exports.useRoomInfo = _chunkFLKIHVRXcjs.useRoomInfoSuspense; exports.useRoomSubscriptionSettings = _chunkFLKIHVRXcjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunkFLKIHVRXcjs._useSelfSuspense; exports.useSendAiMessage = _chunkFLKIHVRXcjs.useSendAiMessage; exports.useStatus = _chunkFLKIHVRXcjs.useStatus; exports.useStorage = _chunkFLKIHVRXcjs._useStorageSuspense; exports.useStorageRoot = _chunkFLKIHVRXcjs._useStorageRoot; exports.useSubscribeToThread = _chunkFLKIHVRXcjs.useSubscribeToThread; exports.useSyncStatus = _chunkFLKIHVRXcjs.useSyncStatus; exports.useThreadSubscription = _chunkFLKIHVRXcjs.useThreadSubscription; exports.useThreads = _chunkFLKIHVRXcjs._useThreadsSuspense; exports.useUndo = _chunkFLKIHVRXcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkFLKIHVRXcjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunkFLKIHVRXcjs.useUnsubscribeFromThread; exports.useUpdateFeedMessage = _chunkFLKIHVRXcjs.useUpdateFeedMessage; exports.useUpdateFeedMetadata = _chunkFLKIHVRXcjs.useUpdateFeedMetadata; exports.useUpdateMyPresence = _chunkFLKIHVRXcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkFLKIHVRXcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkFLKIHVRXcjs.useUpdateRoomSubscriptionSettings; exports.useUrlMetadata = _chunkFLKIHVRXcjs._useUrlMetadataSuspense; exports.useUser = _chunkFLKIHVRXcjs._useUserSuspense; exports.useUserThreads_experimental = _chunkFLKIHVRXcjs._useUserThreadsSuspense_experimental;
162
+ exports.ClientContext = _chunkL3D3UECFcjs.ClientContext; exports.ClientSideSuspense = _chunkSBRWCEYIcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkL3D3UECFcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkL3D3UECFcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkL3D3UECFcjs.RegisterAiTool; exports.RoomContext = _chunkL3D3UECFcjs.GlobalRoomContext; exports.RoomProvider = _chunkL3D3UECFcjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkL3D3UECFcjs._useAddReaction; exports.useAiChat = _chunkL3D3UECFcjs._useAiChatSuspense; exports.useAiChatMessages = _chunkL3D3UECFcjs._useAiChatMessagesSuspense; exports.useAiChatStatus = _chunkL3D3UECFcjs.useAiChatStatus; exports.useAiChats = _chunkL3D3UECFcjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunkL3D3UECFcjs.useAttachmentUrlSuspense; exports.useBroadcastEvent = _chunkL3D3UECFcjs._useBroadcastEvent; exports.useCanRedo = _chunkL3D3UECFcjs.useCanRedo; exports.useCanUndo = _chunkL3D3UECFcjs.useCanUndo; exports.useClient = _chunkL3D3UECFcjs.useClient; exports.useCreateAiChat = _chunkL3D3UECFcjs.useCreateAiChat; exports.useCreateComment = _chunkL3D3UECFcjs._useCreateComment; exports.useCreateThread = _chunkL3D3UECFcjs._useCreateThread; exports.useDeleteAiChat = _chunkL3D3UECFcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkL3D3UECFcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkL3D3UECFcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkL3D3UECFcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkL3D3UECFcjs._useDeleteThread; exports.useEditComment = _chunkL3D3UECFcjs._useEditComment; exports.useEditCommentMetadata = _chunkL3D3UECFcjs._useEditCommentMetadata; exports.useEditThreadMetadata = _chunkL3D3UECFcjs._useEditThreadMetadata; exports.useErrorListener = _chunkL3D3UECFcjs.useErrorListener; exports.useEventListener = _chunkL3D3UECFcjs._useEventListener; exports.useGroupInfo = _chunkL3D3UECFcjs.useGroupInfoSuspense; exports.useHistory = _chunkL3D3UECFcjs.useHistory; exports.useHistoryVersions = _chunkL3D3UECFcjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkL3D3UECFcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkL3D3UECFcjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkL3D3UECFcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkL3D3UECFcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkL3D3UECFcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkL3D3UECFcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkL3D3UECFcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkL3D3UECFcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkL3D3UECFcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkL3D3UECFcjs._useMutation; exports.useMyPresence = _chunkL3D3UECFcjs._useMyPresence; exports.useNotificationSettings = _chunkL3D3UECFcjs.useNotificationSettingsSuspense; exports.useOther = _chunkL3D3UECFcjs._useOtherSuspense; exports.useOthers = _chunkL3D3UECFcjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkL3D3UECFcjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkL3D3UECFcjs._useOthersListener; exports.useOthersMapped = _chunkL3D3UECFcjs._useOthersMappedSuspense; exports.useRedo = _chunkL3D3UECFcjs.useRedo; exports.useRemoveReaction = _chunkL3D3UECFcjs.useRemoveReaction; exports.useRoom = _chunkL3D3UECFcjs._useRoom; exports.useRoomInfo = _chunkL3D3UECFcjs.useRoomInfoSuspense; exports.useRoomSubscriptionSettings = _chunkL3D3UECFcjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunkL3D3UECFcjs._useSelfSuspense; exports.useSendAiMessage = _chunkL3D3UECFcjs.useSendAiMessage; exports.useStatus = _chunkL3D3UECFcjs.useStatus; exports.useStorage = _chunkL3D3UECFcjs._useStorageSuspense; exports.useStorageRoot = _chunkL3D3UECFcjs._useStorageRoot; exports.useSubscribeToThread = _chunkL3D3UECFcjs.useSubscribeToThread; exports.useSyncStatus = _chunkL3D3UECFcjs.useSyncStatus; exports.useThreadSubscription = _chunkL3D3UECFcjs.useThreadSubscription; exports.useThreads = _chunkL3D3UECFcjs._useThreadsSuspense; exports.useUndo = _chunkL3D3UECFcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkL3D3UECFcjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunkL3D3UECFcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkL3D3UECFcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkL3D3UECFcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkL3D3UECFcjs.useUpdateRoomSubscriptionSettings; exports.useUrlMetadata = _chunkL3D3UECFcjs._useUrlMetadataSuspense; exports.useUser = _chunkL3D3UECFcjs._useUserSuspense; exports.useUserThreads_experimental = _chunkL3D3UECFcjs._useUserThreadsSuspense_experimental;
179
163
  //# 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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;ACxFA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADyF7C;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,g7KAAC","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 {\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 useCreateFeed,\n useCreateFeedMessage,\n useCreateThread,\n useDeleteComment,\n useDeleteFeed,\n useDeleteFeedMessage,\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 useUpdateFeedMetadata,\n useUpdateFeedMessage,\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 useFeedsSuspense as useFeeds,\n useFeedMessagesSuspense as useFeedMessages,\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"]}
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"]}
@@ -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, w as RegisterAiToolProps, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, O as useAddReaction, bf as useAiChat, be as useAiChatMessages, aU as useAiChatStatus, bd as useAiChats, b1 as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, aJ as useCreateAiChat, V as useCreateComment, aw as useCreateFeed, az as useCreateFeedMessage, W as useCreateThread, aK as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, ax as useDeleteFeed, aA as useDeleteFeedMessage, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, a0 as useEditCommentMetadata, $ as useEditThreadMetadata, F as useErrorListener, a5 as useEventListener, b5 as useFeedMessages, b4 as useFeeds, b9 as useGroupInfo, a6 as useHistory, b2 as useHistoryVersions, _ as useInboxNotificationThread, b6 as useInboxNotifications, a7 as useIsInsideRoom, a8 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a9 as useMarkThreadAsRead, a1 as useMarkThreadAsResolved, a2 as useMarkThreadAsUnresolved, aa as useMutation, ab as useMyPresence, b7 as useNotificationSettings, aW as useOther, aX as useOthers, aY as useOthersConnectionIds, ac as useOthersListener, aZ as useOthersMapped, ad as useRedo, ae as useRemoveReaction, af as useRoom, b8 as useRoomInfo, b3 as useRoomSubscriptionSettings, a_ as useSelf, aL as useSendAiMessage, ag as useStatus, a$ as useStorage, ah as useStorageRoot, a3 as useSubscribeToThread, J as useSyncStatus, ai as useThreadSubscription, b0 as useThreads, aj as useUndo, ba as useUnreadInboxNotificationsCount, a4 as useUnsubscribeFromThread, aB as useUpdateFeedMessage, ay as useUpdateFeedMetadata, ak as useUpdateMyPresence, aI as useUpdateNotificationSettings, al as useUpdateRoomSubscriptionSettings, bg as useUrlMetadata, bb as useUser, bc as useUserThreads_experimental } from './room-BFE9TLUA.cjs';
2
+ export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, O as useAddReaction, b5 as useAiChat, b4 as useAiChatMessages, aM as useAiChatStatus, b3 as useAiChats, aV as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, aB as useCreateAiChat, V as useCreateComment, W as useCreateThread, aC as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, a0 as useEditCommentMetadata, $ as useEditThreadMetadata, F as useErrorListener, a5 as useEventListener, a$ as useGroupInfo, a6 as useHistory, aW as useHistoryVersions, _ as useInboxNotificationThread, aY as useInboxNotifications, a7 as useIsInsideRoom, a8 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a9 as useMarkThreadAsRead, a1 as useMarkThreadAsResolved, a2 as useMarkThreadAsUnresolved, aa as useMutation, ab as useMyPresence, aZ as useNotificationSettings, aO as useOther, aP as useOthers, aQ as useOthersConnectionIds, ac as useOthersListener, aR as useOthersMapped, ad as useRedo, ae as useRemoveReaction, af as useRoom, a_ as useRoomInfo, aX as useRoomSubscriptionSettings, aS as useSelf, aD as useSendAiMessage, ag as useStatus, aT as useStorage, ah as useStorageRoot, a3 as useSubscribeToThread, J as useSyncStatus, ai as useThreadSubscription, aU as useThreads, aj as useUndo, b0 as useUnreadInboxNotificationsCount, a4 as useUnsubscribeFromThread, ak as useUpdateMyPresence, aA as useUpdateNotificationSettings, al as useUpdateRoomSubscriptionSettings, b6 as useUrlMetadata, b1 as useUser, b2 as useUserThreads_experimental } from './room-C3ujtNzt.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 { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, O as useAddReaction, bf as useAiChat, be as useAiChatMessages, aU as useAiChatStatus, bd as useAiChats, b1 as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, aJ as useCreateAiChat, V as useCreateComment, aw as useCreateFeed, az as useCreateFeedMessage, W as useCreateThread, aK as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, ax as useDeleteFeed, aA as useDeleteFeedMessage, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, a0 as useEditCommentMetadata, $ as useEditThreadMetadata, F as useErrorListener, a5 as useEventListener, b5 as useFeedMessages, b4 as useFeeds, b9 as useGroupInfo, a6 as useHistory, b2 as useHistoryVersions, _ as useInboxNotificationThread, b6 as useInboxNotifications, a7 as useIsInsideRoom, a8 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a9 as useMarkThreadAsRead, a1 as useMarkThreadAsResolved, a2 as useMarkThreadAsUnresolved, aa as useMutation, ab as useMyPresence, b7 as useNotificationSettings, aW as useOther, aX as useOthers, aY as useOthersConnectionIds, ac as useOthersListener, aZ as useOthersMapped, ad as useRedo, ae as useRemoveReaction, af as useRoom, b8 as useRoomInfo, b3 as useRoomSubscriptionSettings, a_ as useSelf, aL as useSendAiMessage, ag as useStatus, a$ as useStorage, ah as useStorageRoot, a3 as useSubscribeToThread, J as useSyncStatus, ai as useThreadSubscription, b0 as useThreads, aj as useUndo, ba as useUnreadInboxNotificationsCount, a4 as useUnsubscribeFromThread, aB as useUpdateFeedMessage, ay as useUpdateFeedMetadata, ak as useUpdateMyPresence, aI as useUpdateNotificationSettings, al as useUpdateRoomSubscriptionSettings, bg as useUrlMetadata, bb as useUser, bc as useUserThreads_experimental } from './room-BFE9TLUA.js';
2
+ export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, O as useAddReaction, b5 as useAiChat, b4 as useAiChatMessages, aM as useAiChatStatus, b3 as useAiChats, aV as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, aB as useCreateAiChat, V as useCreateComment, W as useCreateThread, aC as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, a0 as useEditCommentMetadata, $ as useEditThreadMetadata, F as useErrorListener, a5 as useEventListener, a$ as useGroupInfo, a6 as useHistory, aW as useHistoryVersions, _ as useInboxNotificationThread, aY as useInboxNotifications, a7 as useIsInsideRoom, a8 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a9 as useMarkThreadAsRead, a1 as useMarkThreadAsResolved, a2 as useMarkThreadAsUnresolved, aa as useMutation, ab as useMyPresence, aZ as useNotificationSettings, aO as useOther, aP as useOthers, aQ as useOthersConnectionIds, ac as useOthersListener, aR as useOthersMapped, ad as useRedo, ae as useRemoveReaction, af as useRoom, a_ as useRoomInfo, aX as useRoomSubscriptionSettings, aS as useSelf, aD as useSendAiMessage, ag as useStatus, aT as useStorage, ah as useStorageRoot, a3 as useSubscribeToThread, J as useSyncStatus, ai as useThreadSubscription, aU as useThreads, aj as useUndo, b0 as useUnreadInboxNotificationsCount, a4 as useUnsubscribeFromThread, ak as useUpdateMyPresence, aA as useUpdateNotificationSettings, al as useUpdateRoomSubscriptionSettings, b6 as useUrlMetadata, b1 as useUser, b2 as useUserThreads_experimental } from './room-C3ujtNzt.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,13 +3,13 @@ import {
3
3
  PKG_FORMAT,
4
4
  PKG_NAME,
5
5
  PKG_VERSION
6
- } from "./chunk-XMFQTQBJ.js";
6
+ } from "./chunk-XWDDGVZ4.js";
7
7
  import {
8
8
  ClientContext,
9
+ GlobalRoomContext,
9
10
  LiveblocksProvider,
10
11
  RegisterAiKnowledge,
11
12
  RegisterAiTool,
12
- RoomContext,
13
13
  _RoomProvider,
14
14
  _useAddReaction,
15
15
  _useAiChatMessagesSuspense,
@@ -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-JQZ4SSGD.js";
80
+ } from "./chunk-7TVEKSIE.js";
89
81
 
90
82
  // src/suspense.ts
91
83
  import { detectDupes } from "@liveblocks/core";
@@ -97,7 +89,7 @@ export {
97
89
  LiveblocksProvider,
98
90
  RegisterAiKnowledge,
99
91
  RegisterAiTool,
100
- RoomContext,
92
+ GlobalRoomContext as RoomContext,
101
93
  _RoomProvider as RoomProvider,
102
94
  isNotificationChannelEnabled,
103
95
  shallow,
@@ -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,
@@ -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 { ClientContext, RoomContext, useClient } 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 useCreateFeed,\n useCreateFeedMessage,\n useCreateThread,\n useDeleteComment,\n useDeleteFeed,\n useDeleteFeedMessage,\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 useUpdateFeedMetadata,\n useUpdateFeedMessage,\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 useFeedsSuspense as useFeeds,\n useFeedMessagesSuspense as useFeedMessages,\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":[]}
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.15.0-feeds1",
3
+ "version": "3.15.0-rc1",
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.15.0-feeds1",
67
- "@liveblocks/core": "3.15.0-feeds1"
66
+ "@liveblocks/client": "3.15.0-rc1",
67
+ "@liveblocks/core": "3.15.0-rc1"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "@types/react": "*",