@liveblocks/react 3.15.0-components1 → 3.15.0-feeds1
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/README.md +6 -16
- package/dist/_private.cjs +7 -7
- package/dist/_private.d.cts +2 -2
- package/dist/_private.d.ts +2 -2
- package/dist/_private.js +1 -1
- package/dist/{chunk-Z3NTUAGP.cjs → chunk-FLKIHVRX.cjs} +566 -764
- package/dist/chunk-FLKIHVRX.cjs.map +1 -0
- package/dist/{chunk-B5F24HAT.js → chunk-JQZ4SSGD.js} +530 -728
- package/dist/chunk-JQZ4SSGD.js.map +1 -0
- package/dist/{chunk-Z7VSK4H7.cjs → chunk-PQ62AG2K.cjs} +2 -2
- package/dist/chunk-PQ62AG2K.cjs.map +1 -0
- package/dist/{chunk-VMPATNNT.js → chunk-XMFQTQBJ.js} +2 -2
- package/dist/index.cjs +20 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +20 -4
- package/dist/index.js.map +1 -1
- package/dist/{room-C3ujtNzt.d.cts → room-BFE9TLUA.d.cts} +182 -20
- package/dist/{room-C3ujtNzt.d.ts → room-BFE9TLUA.d.ts} +182 -20
- package/dist/suspense.cjs +20 -4
- package/dist/suspense.cjs.map +1 -1
- package/dist/suspense.d.cts +1 -1
- package/dist/suspense.d.ts +1 -1
- package/dist/suspense.js +20 -4
- package/dist/suspense.js.map +1 -1
- package/package.json +4 -3
- package/dist/chunk-B5F24HAT.js.map +0 -1
- package/dist/chunk-Z3NTUAGP.cjs.map +0 -1
- package/dist/chunk-Z7VSK4H7.cjs.map +0 -1
- /package/dist/{chunk-VMPATNNT.js.map → chunk-XMFQTQBJ.js.map} +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ComponentType, Context, PropsWithChildren, ReactNode } from 'react';
|
|
1
3
|
import { BaseUserMeta, Client, JsonObject, LsonObject, LiveObject, User, Json, RoomSubscriptionSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, ClientOptions, ThreadData as ThreadData$1, CommentData as CommentData$1 } from '@liveblocks/client';
|
|
2
4
|
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, 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';
|
|
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';
|
|
5
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
7
|
|
|
7
8
|
/**
|
|
@@ -10,7 +11,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
10
11
|
*
|
|
11
12
|
* @private This is a private/advanced API. Do not rely on it.
|
|
12
13
|
*/
|
|
13
|
-
declare const ClientContext: Context<OpaqueClient | null>;
|
|
14
|
+
declare const ClientContext: react.Context<OpaqueClient | null>;
|
|
14
15
|
/**
|
|
15
16
|
* @private This is an internal API.
|
|
16
17
|
*/
|
|
@@ -24,11 +25,8 @@ declare function useClient<U extends BaseUserMeta>(): Client<U>;
|
|
|
24
25
|
* room. Exposed for advanced use cases only.
|
|
25
26
|
*
|
|
26
27
|
* @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`.
|
|
30
28
|
*/
|
|
31
|
-
declare const
|
|
29
|
+
declare const RoomContext: react.Context<OpaqueRoom | null>;
|
|
32
30
|
|
|
33
31
|
type RegisterAiKnowledgeProps = AiKnowledgeSource & {
|
|
34
32
|
/**
|
|
@@ -208,6 +206,26 @@ type UseInboxNotificationsOptions = {
|
|
|
208
206
|
*/
|
|
209
207
|
query?: InboxNotificationsQuery;
|
|
210
208
|
};
|
|
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
|
+
};
|
|
211
229
|
type UserAsyncResult<T> = AsyncResult<T, "user">;
|
|
212
230
|
type UserAsyncSuccess<T> = AsyncSuccess<T, "user">;
|
|
213
231
|
type RoomInfoAsyncResult = AsyncResult<DRI, "info">;
|
|
@@ -270,6 +288,10 @@ type ThreadsAsyncResult<TM extends BaseMetadata, CM extends BaseMetadata> = Page
|
|
|
270
288
|
type SearchCommentsAsyncResult = AsyncResult<Array<SearchCommentsResult>, "results">;
|
|
271
289
|
type InboxNotificationsAsyncSuccess = PagedAsyncSuccess<InboxNotificationData[], "inboxNotifications">;
|
|
272
290
|
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">;
|
|
273
295
|
type UnreadInboxNotificationsCountAsyncSuccess = AsyncSuccess<number, "count">;
|
|
274
296
|
type UnreadInboxNotificationsCountAsyncResult = AsyncResult<number, "count">;
|
|
275
297
|
type NotificationSettingsAsyncResult = AsyncResult<NotificationSettings, "settings">;
|
|
@@ -505,13 +527,13 @@ type SharedContextBundle<U extends BaseUserMeta> = {
|
|
|
505
527
|
/**
|
|
506
528
|
* Properties that are the same in RoomContext and RoomContext["suspense"].
|
|
507
529
|
*/
|
|
508
|
-
type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U extends BaseUserMeta, E extends Json, TM extends BaseMetadata, CM extends BaseMetadata> = {
|
|
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> = {
|
|
509
531
|
/**
|
|
510
532
|
* You normally don't need to directly interact with the RoomContext, but
|
|
511
533
|
* it can be necessary if you're building an advanced app where you need to
|
|
512
534
|
* set up a context bridge between two React renderers.
|
|
513
535
|
*/
|
|
514
|
-
RoomContext: Context<Room<P, S, U, E, TM, CM> | null>;
|
|
536
|
+
RoomContext: Context<Room<P, S, U, E, TM, CM, SM, MD> | null>;
|
|
515
537
|
/**
|
|
516
538
|
* Makes a Room available in the component hierarchy below.
|
|
517
539
|
* Joins the room when the component is mounted, and automatically leaves
|
|
@@ -524,10 +546,10 @@ type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U exten
|
|
|
524
546
|
*/
|
|
525
547
|
useRoom(options?: {
|
|
526
548
|
allowOutsideRoom: false;
|
|
527
|
-
}): Room<P, S, U, E, TM, CM>;
|
|
549
|
+
}): Room<P, S, U, E, TM, CM, SM, MD>;
|
|
528
550
|
useRoom(options: {
|
|
529
551
|
allowOutsideRoom: boolean;
|
|
530
|
-
}): Room<P, S, U, E, TM, CM> | null;
|
|
552
|
+
}): Room<P, S, U, E, TM, CM, SM, MD> | null;
|
|
531
553
|
/**
|
|
532
554
|
* Returns the current connection status for the Room, and triggers
|
|
533
555
|
* a re-render whenever it changes. Can be used to render a status badge.
|
|
@@ -925,7 +947,7 @@ type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U exten
|
|
|
925
947
|
*/
|
|
926
948
|
useThreadSubscription(threadId: string): ThreadSubscription;
|
|
927
949
|
};
|
|
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"] & {
|
|
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"] & {
|
|
929
951
|
/**
|
|
930
952
|
* Extract arbitrary data from the Liveblocks Storage state, using an
|
|
931
953
|
* arbitrary selector function.
|
|
@@ -987,6 +1009,74 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
987
1009
|
* const { threads, error, isLoading } = useThreads();
|
|
988
1010
|
*/
|
|
989
1011
|
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;
|
|
990
1080
|
/**
|
|
991
1081
|
* 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.
|
|
992
1082
|
*
|
|
@@ -1026,7 +1116,7 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
1026
1116
|
* const { data, error, isLoading } = useHistoryVersionData(version.id);
|
|
1027
1117
|
*/
|
|
1028
1118
|
useHistoryVersionData(id: string): HistoryVersionDataAsyncResult;
|
|
1029
|
-
suspense: Resolve<RoomContextBundleCommon<P, S, U, E, TM, CM> & SharedContextBundle<U>["suspense"] & {
|
|
1119
|
+
suspense: Resolve<RoomContextBundleCommon<P, S, U, E, TM, CM, SM, MD> & SharedContextBundle<U>["suspense"] & {
|
|
1030
1120
|
/**
|
|
1031
1121
|
* Extract arbitrary data from the Liveblocks Storage state, using an
|
|
1032
1122
|
* arbitrary selector function.
|
|
@@ -1082,6 +1172,32 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
1082
1172
|
* const { threads } = useThreads();
|
|
1083
1173
|
*/
|
|
1084
1174
|
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;
|
|
1085
1201
|
/**
|
|
1086
1202
|
* (Private beta) Returns a history of versions of the current room.
|
|
1087
1203
|
*
|
|
@@ -1789,6 +1905,8 @@ declare class UmbrellaStore<TM extends BaseMetadata, CM extends BaseMetadata> {
|
|
|
1789
1905
|
readonly messagesByChatId: DefaultMap<string, DefaultMap<MessageId | null, LoadableResource<AiChatMessagesAsyncResult>>>;
|
|
1790
1906
|
readonly aiChatById: DefaultMap<string, LoadableResource<AiChatAsyncResult>>;
|
|
1791
1907
|
readonly urlMetadataByUrl: DefaultMap<string, LoadableResource<UrlMetadataAsyncResult>>;
|
|
1908
|
+
readonly loadingFeeds: DefaultMap<string, LoadableResource<FeedsAsyncResult>>;
|
|
1909
|
+
readonly loadingFeedMessages: DefaultMap<string, LoadableResource<FeedMessagesAsyncResult>>;
|
|
1792
1910
|
};
|
|
1793
1911
|
constructor(client: OpaqueClient);
|
|
1794
1912
|
/**
|
|
@@ -1853,6 +1971,22 @@ declare class UmbrellaStore<TM extends BaseMetadata, CM extends BaseMetadata> {
|
|
|
1853
1971
|
*/
|
|
1854
1972
|
updateRoomSubscriptionSettings(roomId: string, optimisticId: string, settings: Readonly<RoomSubscriptionSettings$1>): void;
|
|
1855
1973
|
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;
|
|
1856
1990
|
fetchUnreadNotificationsCount(queryKey: InboxNotificationsQueryKey, signal: AbortSignal): Promise<void>;
|
|
1857
1991
|
fetchRoomThreadsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
|
|
1858
1992
|
fetchUserThreadsDeltaUpdate(signal: AbortSignal): Promise<void>;
|
|
@@ -2320,6 +2454,18 @@ declare function useCanRedo(): boolean;
|
|
|
2320
2454
|
* // [2, 4, 7]
|
|
2321
2455
|
*/
|
|
2322
2456
|
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;
|
|
2323
2469
|
/**
|
|
2324
2470
|
* @private
|
|
2325
2471
|
*/
|
|
@@ -2363,10 +2509,6 @@ declare function useRemoveReaction(): ({ threadId, commentId, emoji }: CommentRe
|
|
|
2363
2509
|
* @private
|
|
2364
2510
|
*/
|
|
2365
2511
|
declare function useRemoveRoomCommentReaction(roomId: string): ({ threadId, commentId, emoji }: CommentReactionOptions) => void;
|
|
2366
|
-
/**
|
|
2367
|
-
* @private
|
|
2368
|
-
*/
|
|
2369
|
-
declare function useMarkRoomThreadAsRead(roomId: string): (threadId: string) => void;
|
|
2370
2512
|
/**
|
|
2371
2513
|
* Returns a function that marks a thread as read.
|
|
2372
2514
|
*
|
|
@@ -2375,6 +2517,10 @@ declare function useMarkRoomThreadAsRead(roomId: string): (threadId: string) =>
|
|
|
2375
2517
|
* markThreadAsRead("th_xxx");
|
|
2376
2518
|
*/
|
|
2377
2519
|
declare function useMarkThreadAsRead(): (threadId: string) => void;
|
|
2520
|
+
/**
|
|
2521
|
+
* @private
|
|
2522
|
+
*/
|
|
2523
|
+
declare function useMarkRoomThreadAsRead(roomId: string): (threadId: string) => void;
|
|
2378
2524
|
/**
|
|
2379
2525
|
* Returns a function that marks a thread as resolved.
|
|
2380
2526
|
*
|
|
@@ -2489,8 +2635,8 @@ declare function useRoomPermissions(roomId: string): Set<_liveblocks_core.Permis
|
|
|
2489
2635
|
* that any RoomProvider created in this way does not need to be nested in
|
|
2490
2636
|
* LiveblocksProvider, as it already has access to the client.
|
|
2491
2637
|
*/
|
|
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>;
|
|
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>;
|
|
2494
2640
|
/**
|
|
2495
2641
|
* Makes a Room available in the component hierarchy below.
|
|
2496
2642
|
* Joins the room when the component is mounted, and automatically leaves
|
|
@@ -2721,6 +2867,22 @@ declare const _useOthersMappedSuspense: TypedBundle["suspense"]["useOthersMapped
|
|
|
2721
2867
|
* const { threads, error, isLoading } = useThreads();
|
|
2722
2868
|
*/
|
|
2723
2869
|
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"];
|
|
2724
2886
|
/**
|
|
2725
2887
|
* 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.
|
|
2726
2888
|
*
|
|
@@ -2992,4 +3154,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
2992
3154
|
*/
|
|
2993
3155
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
2994
3156
|
|
|
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,
|
|
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 };
|
package/dist/suspense.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkPQ62AG2Kcjs = require('./chunk-PQ62AG2K.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -77,12 +77,28 @@ var _chunkZ7VSK4H7cjs = require('./chunk-Z7VSK4H7.cjs');
|
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
var _chunkFLKIHVRXcjs = require('./chunk-FLKIHVRX.cjs');
|
|
81
89
|
|
|
82
90
|
// src/suspense.ts
|
|
83
91
|
var _core = require('@liveblocks/core');
|
|
84
92
|
var _client = require('@liveblocks/client');
|
|
85
|
-
_core.detectDupes.call(void 0,
|
|
93
|
+
_core.detectDupes.call(void 0, _chunkPQ62AG2Kcjs.PKG_NAME, _chunkPQ62AG2Kcjs.PKG_VERSION, _chunkPQ62AG2Kcjs.PKG_FORMAT);
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
86
102
|
|
|
87
103
|
|
|
88
104
|
|
|
@@ -159,5 +175,5 @@ _core.detectDupes.call(void 0, _chunkZ7VSK4H7cjs.PKG_NAME, _chunkZ7VSK4H7cjs.PKG
|
|
|
159
175
|
|
|
160
176
|
|
|
161
177
|
|
|
162
|
-
exports.ClientContext =
|
|
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;
|
|
163
179
|
//# 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;AACF,wDAA6B;AAC7B;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;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"]}
|
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, w as RegisterAiToolProps, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, O as useAddReaction,
|
|
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';
|
|
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, w as RegisterAiToolProps, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, O as useAddReaction,
|
|
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';
|
|
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-
|
|
6
|
+
} from "./chunk-XMFQTQBJ.js";
|
|
7
7
|
import {
|
|
8
8
|
ClientContext,
|
|
9
|
-
GlobalRoomContext,
|
|
10
9
|
LiveblocksProvider,
|
|
11
10
|
RegisterAiKnowledge,
|
|
12
11
|
RegisterAiTool,
|
|
12
|
+
RoomContext,
|
|
13
13
|
_RoomProvider,
|
|
14
14
|
_useAddReaction,
|
|
15
15
|
_useAiChatMessagesSuspense,
|
|
@@ -23,6 +23,8 @@ import {
|
|
|
23
23
|
_useEditCommentMetadata,
|
|
24
24
|
_useEditThreadMetadata,
|
|
25
25
|
_useEventListener,
|
|
26
|
+
_useFeedMessagesSuspense,
|
|
27
|
+
_useFeedsSuspense,
|
|
26
28
|
_useHistoryVersionsSuspense,
|
|
27
29
|
_useInboxNotificationThread,
|
|
28
30
|
_useIsInsideRoom,
|
|
@@ -48,9 +50,13 @@ import {
|
|
|
48
50
|
useCanUndo,
|
|
49
51
|
useClient,
|
|
50
52
|
useCreateAiChat,
|
|
53
|
+
useCreateFeed,
|
|
54
|
+
useCreateFeedMessage,
|
|
51
55
|
useDeleteAiChat,
|
|
52
56
|
useDeleteAllInboxNotifications,
|
|
53
57
|
useDeleteComment,
|
|
58
|
+
useDeleteFeed,
|
|
59
|
+
useDeleteFeedMessage,
|
|
54
60
|
useDeleteInboxNotification,
|
|
55
61
|
useErrorListener,
|
|
56
62
|
useGroupInfoSuspense,
|
|
@@ -75,9 +81,11 @@ import {
|
|
|
75
81
|
useUndo,
|
|
76
82
|
useUnreadInboxNotificationsCountSuspense,
|
|
77
83
|
useUnsubscribeFromThread,
|
|
84
|
+
useUpdateFeedMessage,
|
|
85
|
+
useUpdateFeedMetadata,
|
|
78
86
|
useUpdateNotificationSettings,
|
|
79
87
|
useUpdateRoomSubscriptionSettings
|
|
80
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-JQZ4SSGD.js";
|
|
81
89
|
|
|
82
90
|
// src/suspense.ts
|
|
83
91
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -89,7 +97,7 @@ export {
|
|
|
89
97
|
LiveblocksProvider,
|
|
90
98
|
RegisterAiKnowledge,
|
|
91
99
|
RegisterAiTool,
|
|
92
|
-
|
|
100
|
+
RoomContext,
|
|
93
101
|
_RoomProvider as RoomProvider,
|
|
94
102
|
isNotificationChannelEnabled,
|
|
95
103
|
shallow,
|
|
@@ -105,10 +113,14 @@ export {
|
|
|
105
113
|
useClient,
|
|
106
114
|
useCreateAiChat,
|
|
107
115
|
_useCreateComment as useCreateComment,
|
|
116
|
+
useCreateFeed,
|
|
117
|
+
useCreateFeedMessage,
|
|
108
118
|
_useCreateThread as useCreateThread,
|
|
109
119
|
useDeleteAiChat,
|
|
110
120
|
useDeleteAllInboxNotifications,
|
|
111
121
|
useDeleteComment,
|
|
122
|
+
useDeleteFeed,
|
|
123
|
+
useDeleteFeedMessage,
|
|
112
124
|
useDeleteInboxNotification,
|
|
113
125
|
_useDeleteThread as useDeleteThread,
|
|
114
126
|
_useEditComment as useEditComment,
|
|
@@ -116,6 +128,8 @@ export {
|
|
|
116
128
|
_useEditThreadMetadata as useEditThreadMetadata,
|
|
117
129
|
useErrorListener,
|
|
118
130
|
_useEventListener as useEventListener,
|
|
131
|
+
_useFeedMessagesSuspense as useFeedMessages,
|
|
132
|
+
_useFeedsSuspense as useFeeds,
|
|
119
133
|
useGroupInfoSuspense as useGroupInfo,
|
|
120
134
|
useHistory,
|
|
121
135
|
_useHistoryVersionsSuspense as useHistoryVersions,
|
|
@@ -153,6 +167,8 @@ export {
|
|
|
153
167
|
useUndo,
|
|
154
168
|
useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,
|
|
155
169
|
useUnsubscribeFromThread,
|
|
170
|
+
useUpdateFeedMessage,
|
|
171
|
+
useUpdateFeedMetadata,
|
|
156
172
|
_useUpdateMyPresence as useUpdateMyPresence,
|
|
157
173
|
useUpdateNotificationSettings,
|
|
158
174
|
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 {
|
|
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":[]}
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liveblocks/react",
|
|
3
|
-
"version": "3.15.0-
|
|
3
|
+
"version": "3.15.0-feeds1",
|
|
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
|
+
"author": "Liveblocks Inc.",
|
|
6
7
|
"type": "module",
|
|
7
8
|
"main": "./dist/index.cjs",
|
|
8
9
|
"types": "./dist/index.d.cts",
|
|
@@ -62,8 +63,8 @@
|
|
|
62
63
|
"showdeps": "depcruise src --include-only '^src' --exclude='__tests__' --output-type dot | dot -T svg > /tmp/dependency-graph.svg && open /tmp/dependency-graph.svg"
|
|
63
64
|
},
|
|
64
65
|
"dependencies": {
|
|
65
|
-
"@liveblocks/client": "3.15.0-
|
|
66
|
-
"@liveblocks/core": "3.15.0-
|
|
66
|
+
"@liveblocks/client": "3.15.0-feeds1",
|
|
67
|
+
"@liveblocks/core": "3.15.0-feeds1"
|
|
67
68
|
},
|
|
68
69
|
"peerDependencies": {
|
|
69
70
|
"@types/react": "*",
|