@liveblocks/react 2.16.0 → 2.16.1-ai

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ import * as react from 'react';
2
2
  import { Context, PropsWithChildren, ReactNode } from 'react';
3
3
  import { JsonObject, LsonObject, BaseUserMeta, Json, BaseMetadata, Room, LiveObject, User, RoomNotificationSettings, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, Client as Client$1, ClientOptions, StorageStatus as StorageStatus$1, ThreadData as ThreadData$1, CommentData as CommentData$1 } from '@liveblocks/client';
4
4
  import * as _liveblocks_core from '@liveblocks/core';
5
- import { OpaqueRoom, BaseMetadata as BaseMetadata$1, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, Relax, ToImmutable, AsyncLoading, AsyncError, ThreadData, HistoryVersion, Client, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, OpaqueClient, CommentUserReaction, InboxNotificationDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DM, TextEditorType, IYjsProvider, DP, DS, DE } from '@liveblocks/core';
5
+ import { OpaqueRoom, BaseMetadata as BaseMetadata$1, CommentBody, Patchable, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentAttachment, PartialUnless, InboxNotificationData, Relax, ToImmutable, AsyncLoading, AsyncError, ThreadData, HistoryVersion, Client, SyncStatus, LiveblocksError, RoomEventMessage, CommentData, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, OpaqueClient, CommentUserReaction, InboxNotificationDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DM, TextEditorType, IYjsProvider, DP, DS, DE } from '@liveblocks/core';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
 
8
8
  /**
@@ -15,6 +15,123 @@ declare const RoomContext: react.Context<OpaqueRoom | null>;
15
15
  /** @private */
16
16
  declare function useRoomOrNull<P extends JsonObject, S extends LsonObject, U extends BaseUserMeta, E extends Json, M extends BaseMetadata>(): Room<P, S, U, E, M> | null;
17
17
 
18
+ /**
19
+ * @private Internal API, do not rely on it.
20
+ */
21
+ declare class CreateThreadError<M extends BaseMetadata$1> extends Error {
22
+ cause: Error;
23
+ context: {
24
+ roomId: string;
25
+ threadId: string;
26
+ commentId: string;
27
+ body: CommentBody;
28
+ metadata: M;
29
+ };
30
+ constructor(cause: Error, context: {
31
+ roomId: string;
32
+ threadId: string;
33
+ commentId: string;
34
+ body: CommentBody;
35
+ metadata: M;
36
+ });
37
+ }
38
+ /**
39
+ * @private Internal API, do not rely on it.
40
+ */
41
+ declare class EditThreadMetadataError<M extends BaseMetadata$1> extends Error {
42
+ cause: Error;
43
+ context: {
44
+ roomId: string;
45
+ threadId: string;
46
+ metadata: Patchable<M>;
47
+ };
48
+ constructor(cause: Error, context: {
49
+ roomId: string;
50
+ threadId: string;
51
+ metadata: Patchable<M>;
52
+ });
53
+ }
54
+ /**
55
+ * @private Internal API, do not rely on it.
56
+ */
57
+ declare class CreateCommentError extends Error {
58
+ cause: Error;
59
+ context: {
60
+ roomId: string;
61
+ threadId: string;
62
+ commentId: string;
63
+ body: CommentBody;
64
+ };
65
+ constructor(cause: Error, context: {
66
+ roomId: string;
67
+ threadId: string;
68
+ commentId: string;
69
+ body: CommentBody;
70
+ });
71
+ }
72
+ /**
73
+ * @private Internal API, do not rely on it.
74
+ */
75
+ declare class EditCommentError extends Error {
76
+ cause: Error;
77
+ context: {
78
+ roomId: string;
79
+ threadId: string;
80
+ commentId: string;
81
+ body: CommentBody;
82
+ };
83
+ constructor(cause: Error, context: {
84
+ roomId: string;
85
+ threadId: string;
86
+ commentId: string;
87
+ body: CommentBody;
88
+ });
89
+ }
90
+ /**
91
+ * @private Internal API, do not rely on it.
92
+ */
93
+ declare class DeleteCommentError extends Error {
94
+ cause: Error;
95
+ context: {
96
+ roomId: string;
97
+ threadId: string;
98
+ commentId: string;
99
+ };
100
+ constructor(cause: Error, context: {
101
+ roomId: string;
102
+ threadId: string;
103
+ commentId: string;
104
+ });
105
+ }
106
+ /**
107
+ * @private Internal API, do not rely on it.
108
+ */
109
+ declare class MarkInboxNotificationAsReadError extends Error {
110
+ cause: Error;
111
+ context: {
112
+ inboxNotificationId: string;
113
+ };
114
+ constructor(cause: Error, context: {
115
+ inboxNotificationId: string;
116
+ });
117
+ }
118
+ /**
119
+ * @private Internal API, do not rely on it.
120
+ */
121
+ declare class UpdateNotificationSettingsError extends Error {
122
+ cause: Error;
123
+ context: {
124
+ roomId: string;
125
+ };
126
+ constructor(cause: Error, context: {
127
+ roomId: string;
128
+ });
129
+ }
130
+ /**
131
+ * @private Internal API, do not rely on it.
132
+ */
133
+ type CommentsError<M extends BaseMetadata$1> = CreateThreadError<M> | EditThreadMetadataError<M> | CreateCommentError | EditCommentError | DeleteCommentError | MarkInboxNotificationAsReadError | UpdateNotificationSettingsError;
134
+
18
135
  type UseSyncStatusOptions = {
19
136
  /**
20
137
  * When setting smooth, the hook will not update immediately as status
@@ -191,17 +308,6 @@ type SharedContextBundle<U extends BaseUserMeta> = {
191
308
  * const isInsideRoom = useIsInsideRoom();
192
309
  */
193
310
  useIsInsideRoom(): boolean;
194
- /**
195
- * useErrorListener is a React hook that allows you to respond to any
196
- * Liveblocks error, for example room connection errors, errors
197
- * creating/editing/deleting threads, etc.
198
- *
199
- * @example
200
- * useErrorListener(err => {
201
- * console.error(err);
202
- * })
203
- */
204
- useErrorListener(callback: (err: LiveblocksError) => void): void;
205
311
  /**
206
312
  * Returns the current Liveblocks sync status, and triggers a re-render
207
313
  * whenever it changes. Can be used to render a "Saving..." indicator, or for
@@ -240,17 +346,6 @@ type SharedContextBundle<U extends BaseUserMeta> = {
240
346
  * const isInsideRoom = useIsInsideRoom();
241
347
  */
242
348
  useIsInsideRoom(): boolean;
243
- /**
244
- * useErrorListener is a React hook that allows you to respond to any
245
- * Liveblocks error, for example room connection errors, errors
246
- * creating/editing/deleting threads, etc.
247
- *
248
- * @example
249
- * useErrorListener(err => {
250
- * console.error(err);
251
- * })
252
- */
253
- useErrorListener(callback: (err: LiveblocksError) => void): void;
254
349
  /**
255
350
  * Returns the current Liveblocks sync status, and triggers a re-render
256
351
  * whenever it changes. Can be used to render a "Saving..." indicator, or for
@@ -343,6 +438,16 @@ type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U exten
343
438
  * })
344
439
  */
345
440
  useLostConnectionListener(callback: (event: LostConnectionEvent) => void): void;
441
+ /**
442
+ * useErrorListener is a React hook that allows you to respond to potential room
443
+ * connection errors.
444
+ *
445
+ * @example
446
+ * useErrorListener(er => {
447
+ * console.error(er);
448
+ * })
449
+ */
450
+ useErrorListener(callback: (err: LiveblocksError) => void): void;
346
451
  /**
347
452
  * useEventListener is a React hook that allows you to respond to events broadcast
348
453
  * by other users in the room.
@@ -666,6 +771,16 @@ type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U exten
666
771
  */
667
772
  useThreadSubscription(threadId: string): ThreadSubscription;
668
773
  };
774
+ /**
775
+ * @private
776
+ *
777
+ * Private methods and variables used in the core internals, but as a user
778
+ * of Liveblocks, NEVER USE ANY OF THESE DIRECTLY, because bad things
779
+ * will probably happen if you do.
780
+ */
781
+ type PrivateRoomContextApi = {
782
+ useCommentsErrorListener<M extends BaseMetadata$1>(callback: (err: CommentsError<M>) => void): void;
783
+ };
669
784
  type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends BaseUserMeta, E extends Json, M extends BaseMetadata$1> = Resolve<RoomContextBundleCommon<P, S, U, E, M> & SharedContextBundle<U>["classic"] & {
670
785
  /**
671
786
  * Returns the current storage status for the Room, and triggers
@@ -858,7 +973,7 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
858
973
  */
859
974
  useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncSuccess;
860
975
  }>;
861
- }>;
976
+ } & PrivateRoomContextApi>;
862
977
  /**
863
978
  * Properties that are the same in LiveblocksContext and LiveblocksContext["suspense"].
864
979
  */
@@ -1478,17 +1593,6 @@ declare const _useUserThreadsSuspense_experimental: TypedBundle$1["suspense"]["u
1478
1593
  * const syncStatus = useSyncStatus({ smooth: true });
1479
1594
  */
1480
1595
  declare function useSyncStatus(options?: UseSyncStatusOptions): SyncStatus;
1481
- /**
1482
- * useErrorListener is a React hook that allows you to respond to any
1483
- * Liveblocks error, for example room connection errors, errors
1484
- * creating/editing/deleting threads, etc.
1485
- *
1486
- * @example
1487
- * useErrorListener(err => {
1488
- * console.error(err);
1489
- * })
1490
- */
1491
- declare function useErrorListener(callback: (err: LiveblocksError) => void): void;
1492
1596
 
1493
1597
  /**
1494
1598
  * Returns the current connection status for the Room, and triggers
@@ -1546,6 +1650,16 @@ declare function useBatch<T>(): (callback: () => T) => T;
1546
1650
  * })
1547
1651
  */
1548
1652
  declare function useLostConnectionListener(callback: (event: LostConnectionEvent) => void): void;
1653
+ /**
1654
+ * useErrorListener is a React hook that allows you to respond to potential room
1655
+ * connection errors.
1656
+ *
1657
+ * @example
1658
+ * useErrorListener(er => {
1659
+ * console.error(er);
1660
+ * })
1661
+ */
1662
+ declare function useErrorListener(callback: (err: LiveblocksError) => void): void;
1549
1663
  /**
1550
1664
  * Returns the room.history
1551
1665
  */
@@ -1583,6 +1697,10 @@ declare function useCanRedo(): boolean;
1583
1697
  * // [2, 4, 7]
1584
1698
  */
1585
1699
  declare function useOthersConnectionIds(): readonly number[];
1700
+ /**
1701
+ * @private Internal API, do not rely on it.
1702
+ */
1703
+ declare function useCommentsErrorListener<M extends BaseMetadata>(callback: (error: CommentsError<M>) => void): void;
1586
1704
  /**
1587
1705
  * @private
1588
1706
  */
@@ -2226,4 +2344,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
2226
2344
  */
2227
2345
  declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
2228
2346
 
2229
- export { useHistory as $, useDeleteInboxNotification as A, useErrorListener as B, ClientContext as C, useMarkAllInboxNotificationsAsRead as D, useMarkInboxNotificationAsRead as E, useSyncStatus as F, createRoomContext as G, _RoomProvider as H, _useAddReaction as I, useBatch as J, _useBroadcastEvent as K, LiveblocksProvider as L, type MutationContext as M, useCanRedo as N, useCanUndo as O, useCreateComment as P, _useCreateThread as Q, RoomContext as R, useDeleteComment as S, _useDeleteThread as T, type UseStorageStatusOptions as U, useEditComment as V, _useEditThreadMetadata as W, useMarkThreadAsResolved as X, useMarkThreadAsUnresolved as Y, _useEventListener as Z, _useInboxNotificationThread as _, useClientOrNull as a, _useIsInsideRoom as a0, useLostConnectionListener as a1, useMarkThreadAsRead as a2, _useMutation as a3, _useMyPresence as a4, _useOthersListener as a5, useRedo as a6, useRemoveReaction as a7, _useRoom as a8, useStatus as a9, _useSelfSuspense as aA, _useStorageSuspense as aB, useStorageStatusSuspense as aC, _useThreadsSuspense as aD, useAttachmentUrlSuspense as aE, _useHistoryVersionsSuspense as aF, _useRoomNotificationSettingsSuspense as aG, useInboxNotificationsSuspense as aH, useRoomInfoSuspense as aI, useUnreadInboxNotificationsCountSuspense as aJ, _useUserSuspense as aK, _useUserThreadsSuspense_experimental as aL, _useStorageRoot as aa, useThreadSubscription as ab, useUndo as ac, _useUpdateMyPresence as ad, useUpdateRoomNotificationSettings as ae, useHistoryVersionData as af, _useOther as ag, _useOthers as ah, useOthersConnectionIds as ai, _useOthersMapped as aj, _useSelf as ak, _useStorage as al, useStorageStatus as am, _useThreads as an, useAttachmentUrl as ao, _useHistoryVersions as ap, _useRoomNotificationSettings as aq, useInboxNotifications as ar, _useUserThreads_experimental as as, useRoomInfo as at, useUnreadInboxNotificationsCount as au, _useUser as av, _useOtherSuspense as aw, _useOthersSuspense as ax, useOthersConnectionIdsSuspense as ay, _useOthersMappedSuspense as az, useAddRoomCommentReaction as b, useCreateRoomComment as c, useCreateRoomThread as d, useCreateTextMention as e, useDeleteRoomComment as f, getUmbrellaStoreForClient as g, useDeleteRoomThread as h, useDeleteTextMention as i, useEditRoomComment as j, useEditRoomThreadMetadata as k, useMarkRoomThreadAsRead as l, useMarkRoomThreadAsResolved as m, useMarkRoomThreadAsUnresolved as n, useMentionSuggestionsCache as o, useRemoveRoomCommentReaction as p, useReportTextEditor as q, useResolveMentionSuggestions as r, useRoomAttachmentUrl as s, useRoomPermissions as t, useRoomOrNull as u, useYjsProvider as v, type UseThreadsOptions as w, createLiveblocksContext as x, useClient as y, useDeleteAllInboxNotifications as z };
2347
+ export { _useEventListener as $, useDeleteAllInboxNotifications as A, useDeleteInboxNotification as B, CreateThreadError as C, useMarkAllInboxNotificationsAsRead as D, useMarkInboxNotificationAsRead as E, useSyncStatus as F, createRoomContext as G, _RoomProvider as H, _useAddReaction as I, useBatch as J, _useBroadcastEvent as K, LiveblocksProvider as L, type MutationContext as M, useCanRedo as N, useCanUndo as O, useCreateComment as P, _useCreateThread as Q, RoomContext as R, useDeleteComment as S, _useDeleteThread as T, type UseStorageStatusOptions as U, useEditComment as V, _useEditThreadMetadata as W, useMarkThreadAsResolved as X, useMarkThreadAsUnresolved as Y, useErrorListener as Z, _useInboxNotificationThread as _, useClientOrNull as a, useHistory as a0, _useIsInsideRoom as a1, useLostConnectionListener as a2, useMarkThreadAsRead as a3, _useMutation as a4, _useMyPresence as a5, _useOthersListener as a6, useRedo as a7, useRemoveReaction as a8, _useRoom as a9, useOthersConnectionIdsSuspense as aA, _useOthersMappedSuspense as aB, _useSelfSuspense as aC, _useStorageSuspense as aD, useStorageStatusSuspense as aE, _useThreadsSuspense as aF, useAttachmentUrlSuspense as aG, _useHistoryVersionsSuspense as aH, _useRoomNotificationSettingsSuspense as aI, useInboxNotificationsSuspense as aJ, useRoomInfoSuspense as aK, useUnreadInboxNotificationsCountSuspense as aL, _useUserSuspense as aM, _useUserThreadsSuspense_experimental as aN, useStatus as aa, _useStorageRoot as ab, useThreadSubscription as ac, useUndo as ad, _useUpdateMyPresence as ae, useUpdateRoomNotificationSettings as af, useHistoryVersionData as ag, useCommentsErrorListener as ah, _useOther as ai, _useOthers as aj, useOthersConnectionIds as ak, _useOthersMapped as al, _useSelf as am, _useStorage as an, useStorageStatus as ao, _useThreads as ap, useAttachmentUrl as aq, _useHistoryVersions as ar, _useRoomNotificationSettings as as, useInboxNotifications as at, _useUserThreads_experimental as au, useRoomInfo as av, useUnreadInboxNotificationsCount as aw, _useUser as ax, _useOtherSuspense as ay, _useOthersSuspense as az, useAddRoomCommentReaction as b, useCreateRoomComment as c, useCreateRoomThread as d, useCreateTextMention as e, useDeleteRoomComment as f, getUmbrellaStoreForClient as g, useDeleteRoomThread as h, useDeleteTextMention as i, useEditRoomComment as j, useEditRoomThreadMetadata as k, useMarkRoomThreadAsRead as l, useMarkRoomThreadAsResolved as m, useMarkRoomThreadAsUnresolved as n, useMentionSuggestionsCache as o, useRemoveRoomCommentReaction as p, useReportTextEditor as q, useResolveMentionSuggestions as r, useRoomAttachmentUrl as s, useRoomPermissions as t, useRoomOrNull as u, useYjsProvider as v, type UseThreadsOptions as w, ClientContext as x, createLiveblocksContext as y, useClient as z };
@@ -1,5 +1,5 @@
1
1
  export { ClientSideSuspense } from './index.mjs';
2
- export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, I as useAddReaction, aE as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, P as useCreateComment, Q as useCreateThread, z as useDeleteAllInboxNotifications, S as useDeleteComment, A as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, B as useErrorListener, Z as useEventListener, $ as useHistory, aF as useHistoryVersions, _ as useInboxNotificationThread, aH as useInboxNotifications, a0 as useIsInsideRoom, a1 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a2 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a3 as useMutation, a4 as useMyPresence, aw as useOther, ax as useOthers, ay as useOthersConnectionIds, a5 as useOthersListener, az as useOthersMapped, a6 as useRedo, a7 as useRemoveReaction, a8 as useRoom, aI as useRoomInfo, aG as useRoomNotificationSettings, aA as useSelf, a9 as useStatus, aB as useStorage, aa as useStorageRoot, aC as useStorageStatus, F as useSyncStatus, ab as useThreadSubscription, aD as useThreads, ac as useUndo, aJ as useUnreadInboxNotificationsCount, ad as useUpdateMyPresence, ae as useUpdateRoomNotificationSettings, aK as useUser, aL as useUserThreads_experimental } from './room-Ce3twcjb.mjs';
2
+ export { x as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, I as useAddReaction, aG as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, z as useClient, P as useCreateComment, Q as useCreateThread, A as useDeleteAllInboxNotifications, S as useDeleteComment, B as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, Z as useErrorListener, $ as useEventListener, a0 as useHistory, aH as useHistoryVersions, _ as useInboxNotificationThread, aJ as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, ay as useOther, az as useOthers, aA as useOthersConnectionIds, a6 as useOthersListener, aB as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, aK as useRoomInfo, aI as useRoomNotificationSettings, aC as useSelf, aa as useStatus, aD as useStorage, ab as useStorageRoot, aE as useStorageStatus, F as useSyncStatus, ac as useThreadSubscription, aF as useThreads, ad as useUndo, aL as useUnreadInboxNotificationsCount, ae as useUpdateMyPresence, af as useUpdateRoomNotificationSettings, aM as useUser, aN as useUserThreads_experimental } from './room-BjHGIaNf.mjs';
3
3
  export { Json, JsonObject, shallow } from '@liveblocks/client';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react';
@@ -1,5 +1,5 @@
1
1
  export { ClientSideSuspense } from './index.js';
2
- export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, I as useAddReaction, aE as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, P as useCreateComment, Q as useCreateThread, z as useDeleteAllInboxNotifications, S as useDeleteComment, A as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, B as useErrorListener, Z as useEventListener, $ as useHistory, aF as useHistoryVersions, _ as useInboxNotificationThread, aH as useInboxNotifications, a0 as useIsInsideRoom, a1 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a2 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a3 as useMutation, a4 as useMyPresence, aw as useOther, ax as useOthers, ay as useOthersConnectionIds, a5 as useOthersListener, az as useOthersMapped, a6 as useRedo, a7 as useRemoveReaction, a8 as useRoom, aI as useRoomInfo, aG as useRoomNotificationSettings, aA as useSelf, a9 as useStatus, aB as useStorage, aa as useStorageRoot, aC as useStorageStatus, F as useSyncStatus, ab as useThreadSubscription, aD as useThreads, ac as useUndo, aJ as useUnreadInboxNotificationsCount, ad as useUpdateMyPresence, ae as useUpdateRoomNotificationSettings, aK as useUser, aL as useUserThreads_experimental } from './room-Ce3twcjb.js';
2
+ export { x as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, I as useAddReaction, aG as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, z as useClient, P as useCreateComment, Q as useCreateThread, A as useDeleteAllInboxNotifications, S as useDeleteComment, B as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, Z as useErrorListener, $ as useEventListener, a0 as useHistory, aH as useHistoryVersions, _ as useInboxNotificationThread, aJ as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, ay as useOther, az as useOthers, aA as useOthersConnectionIds, a6 as useOthersListener, aB as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, aK as useRoomInfo, aI as useRoomNotificationSettings, aC as useSelf, aa as useStatus, aD as useStorage, ab as useStorageRoot, aE as useStorageStatus, F as useSyncStatus, ac as useThreadSubscription, aF as useThreads, ad as useUndo, aL as useUnreadInboxNotificationsCount, ae as useUpdateMyPresence, af as useUpdateRoomNotificationSettings, aM as useUser, aN as useUserThreads_experimental } from './room-BjHGIaNf.js';
3
3
  export { Json, JsonObject, shallow } from '@liveblocks/client';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react';
package/dist/suspense.js CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkYA4OXDFCjs = require('./chunk-YA4OXDFC.js');
6
+ var _chunkANPXBJP5js = require('./chunk-ANPXBJP5.js');
7
7
 
8
8
 
9
9
 
@@ -63,12 +63,12 @@ var _chunkYA4OXDFCjs = require('./chunk-YA4OXDFC.js');
63
63
 
64
64
 
65
65
 
66
- var _chunkNZL5WL5Ojs = require('./chunk-NZL5WL5O.js');
66
+ var _chunkVJYVOAD5js = require('./chunk-VJYVOAD5.js');
67
67
 
68
68
  // src/suspense.ts
69
69
  var _core = require('@liveblocks/core');
70
70
  var _client = require('@liveblocks/client');
71
- _core.detectDupes.call(void 0, _chunkYA4OXDFCjs.PKG_NAME, _chunkYA4OXDFCjs.PKG_VERSION, _chunkYA4OXDFCjs.PKG_FORMAT);
71
+ _core.detectDupes.call(void 0, _chunkANPXBJP5js.PKG_NAME, _chunkANPXBJP5js.PKG_VERSION, _chunkANPXBJP5js.PKG_FORMAT);
72
72
 
73
73
 
74
74
 
@@ -130,5 +130,5 @@ _core.detectDupes.call(void 0, _chunkYA4OXDFCjs.PKG_NAME, _chunkYA4OXDFCjs.PKG_V
130
130
 
131
131
 
132
132
 
133
- exports.ClientContext = _chunkNZL5WL5Ojs.ClientContext; exports.ClientSideSuspense = _chunkYA4OXDFCjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkNZL5WL5Ojs.LiveblocksProvider; exports.RoomContext = _chunkNZL5WL5Ojs.RoomContext; exports.RoomProvider = _chunkNZL5WL5Ojs._RoomProvider; exports.shallow = _client.shallow; exports.useAddReaction = _chunkNZL5WL5Ojs._useAddReaction; exports.useAttachmentUrl = _chunkNZL5WL5Ojs.useAttachmentUrlSuspense; exports.useBatch = _chunkNZL5WL5Ojs.useBatch; exports.useBroadcastEvent = _chunkNZL5WL5Ojs._useBroadcastEvent; exports.useCanRedo = _chunkNZL5WL5Ojs.useCanRedo; exports.useCanUndo = _chunkNZL5WL5Ojs.useCanUndo; exports.useClient = _chunkNZL5WL5Ojs.useClient; exports.useCreateComment = _chunkNZL5WL5Ojs.useCreateComment; exports.useCreateThread = _chunkNZL5WL5Ojs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkNZL5WL5Ojs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkNZL5WL5Ojs.useDeleteComment; exports.useDeleteInboxNotification = _chunkNZL5WL5Ojs.useDeleteInboxNotification; exports.useDeleteThread = _chunkNZL5WL5Ojs._useDeleteThread; exports.useEditComment = _chunkNZL5WL5Ojs.useEditComment; exports.useEditThreadMetadata = _chunkNZL5WL5Ojs._useEditThreadMetadata; exports.useErrorListener = _chunkNZL5WL5Ojs.useErrorListener; exports.useEventListener = _chunkNZL5WL5Ojs._useEventListener; exports.useHistory = _chunkNZL5WL5Ojs.useHistory; exports.useHistoryVersions = _chunkNZL5WL5Ojs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkNZL5WL5Ojs._useInboxNotificationThread; exports.useInboxNotifications = _chunkNZL5WL5Ojs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkNZL5WL5Ojs._useIsInsideRoom; exports.useLostConnectionListener = _chunkNZL5WL5Ojs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkNZL5WL5Ojs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkNZL5WL5Ojs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkNZL5WL5Ojs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkNZL5WL5Ojs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkNZL5WL5Ojs.useMarkThreadAsUnresolved; exports.useMutation = _chunkNZL5WL5Ojs._useMutation; exports.useMyPresence = _chunkNZL5WL5Ojs._useMyPresence; exports.useOther = _chunkNZL5WL5Ojs._useOtherSuspense; exports.useOthers = _chunkNZL5WL5Ojs._useOthersSuspense; exports.useOthersConnectionIds = _chunkNZL5WL5Ojs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkNZL5WL5Ojs._useOthersListener; exports.useOthersMapped = _chunkNZL5WL5Ojs._useOthersMappedSuspense; exports.useRedo = _chunkNZL5WL5Ojs.useRedo; exports.useRemoveReaction = _chunkNZL5WL5Ojs.useRemoveReaction; exports.useRoom = _chunkNZL5WL5Ojs._useRoom; exports.useRoomInfo = _chunkNZL5WL5Ojs.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunkNZL5WL5Ojs._useRoomNotificationSettingsSuspense; exports.useSelf = _chunkNZL5WL5Ojs._useSelfSuspense; exports.useStatus = _chunkNZL5WL5Ojs.useStatus; exports.useStorage = _chunkNZL5WL5Ojs._useStorageSuspense; exports.useStorageRoot = _chunkNZL5WL5Ojs._useStorageRoot; exports.useStorageStatus = _chunkNZL5WL5Ojs.useStorageStatusSuspense; exports.useSyncStatus = _chunkNZL5WL5Ojs.useSyncStatus; exports.useThreadSubscription = _chunkNZL5WL5Ojs.useThreadSubscription; exports.useThreads = _chunkNZL5WL5Ojs._useThreadsSuspense; exports.useUndo = _chunkNZL5WL5Ojs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkNZL5WL5Ojs.useUnreadInboxNotificationsCountSuspense; exports.useUpdateMyPresence = _chunkNZL5WL5Ojs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkNZL5WL5Ojs.useUpdateRoomNotificationSettings; exports.useUser = _chunkNZL5WL5Ojs._useUserSuspense; exports.useUserThreads_experimental = _chunkNZL5WL5Ojs._useUserThreadsSuspense_experimental;
133
+ exports.ClientContext = _chunkVJYVOAD5js.ClientContext; exports.ClientSideSuspense = _chunkANPXBJP5js.ClientSideSuspense; exports.LiveblocksProvider = _chunkVJYVOAD5js.LiveblocksProvider; exports.RoomContext = _chunkVJYVOAD5js.RoomContext; exports.RoomProvider = _chunkVJYVOAD5js._RoomProvider; exports.shallow = _client.shallow; exports.useAddReaction = _chunkVJYVOAD5js._useAddReaction; exports.useAttachmentUrl = _chunkVJYVOAD5js.useAttachmentUrlSuspense; exports.useBatch = _chunkVJYVOAD5js.useBatch; exports.useBroadcastEvent = _chunkVJYVOAD5js._useBroadcastEvent; exports.useCanRedo = _chunkVJYVOAD5js.useCanRedo; exports.useCanUndo = _chunkVJYVOAD5js.useCanUndo; exports.useClient = _chunkVJYVOAD5js.useClient; exports.useCreateComment = _chunkVJYVOAD5js.useCreateComment; exports.useCreateThread = _chunkVJYVOAD5js._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkVJYVOAD5js.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkVJYVOAD5js.useDeleteComment; exports.useDeleteInboxNotification = _chunkVJYVOAD5js.useDeleteInboxNotification; exports.useDeleteThread = _chunkVJYVOAD5js._useDeleteThread; exports.useEditComment = _chunkVJYVOAD5js.useEditComment; exports.useEditThreadMetadata = _chunkVJYVOAD5js._useEditThreadMetadata; exports.useErrorListener = _chunkVJYVOAD5js.useErrorListener; exports.useEventListener = _chunkVJYVOAD5js._useEventListener; exports.useHistory = _chunkVJYVOAD5js.useHistory; exports.useHistoryVersions = _chunkVJYVOAD5js._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkVJYVOAD5js._useInboxNotificationThread; exports.useInboxNotifications = _chunkVJYVOAD5js.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkVJYVOAD5js._useIsInsideRoom; exports.useLostConnectionListener = _chunkVJYVOAD5js.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkVJYVOAD5js.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkVJYVOAD5js.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkVJYVOAD5js.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkVJYVOAD5js.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkVJYVOAD5js.useMarkThreadAsUnresolved; exports.useMutation = _chunkVJYVOAD5js._useMutation; exports.useMyPresence = _chunkVJYVOAD5js._useMyPresence; exports.useOther = _chunkVJYVOAD5js._useOtherSuspense; exports.useOthers = _chunkVJYVOAD5js._useOthersSuspense; exports.useOthersConnectionIds = _chunkVJYVOAD5js.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkVJYVOAD5js._useOthersListener; exports.useOthersMapped = _chunkVJYVOAD5js._useOthersMappedSuspense; exports.useRedo = _chunkVJYVOAD5js.useRedo; exports.useRemoveReaction = _chunkVJYVOAD5js.useRemoveReaction; exports.useRoom = _chunkVJYVOAD5js._useRoom; exports.useRoomInfo = _chunkVJYVOAD5js.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunkVJYVOAD5js._useRoomNotificationSettingsSuspense; exports.useSelf = _chunkVJYVOAD5js._useSelfSuspense; exports.useStatus = _chunkVJYVOAD5js.useStatus; exports.useStorage = _chunkVJYVOAD5js._useStorageSuspense; exports.useStorageRoot = _chunkVJYVOAD5js._useStorageRoot; exports.useStorageStatus = _chunkVJYVOAD5js.useStorageStatusSuspense; exports.useSyncStatus = _chunkVJYVOAD5js.useSyncStatus; exports.useThreadSubscription = _chunkVJYVOAD5js.useThreadSubscription; exports.useThreads = _chunkVJYVOAD5js._useThreadsSuspense; exports.useUndo = _chunkVJYVOAD5js.useUndo; exports.useUnreadInboxNotificationsCount = _chunkVJYVOAD5js.useUnreadInboxNotificationsCountSuspense; exports.useUpdateMyPresence = _chunkVJYVOAD5js._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkVJYVOAD5js.useUpdateRoomNotificationSettings; exports.useUser = _chunkVJYVOAD5js._useUserSuspense; exports.useUserThreads_experimental = _chunkVJYVOAD5js._useUserThreadsSuspense_experimental;
134
134
  //# sourceMappingURL=suspense.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.js","../src/suspense.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;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;AACF,sDAA4B;AAC5B;AACA;AClEA,wCAA4B;AAc5B,4CAAwB;AAXxB,+BAAA,yBAAY,EAAU,4BAAA,EAAa,2BAAU,CAAA;ADmE7C;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;AACF,q0HAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.js","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 UseStorageStatusOptions,\n UseThreadsOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n LiveblocksProvider,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useSyncStatus,\n useErrorListener,\n} from \"./liveblocks\";\nexport {\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\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 useUpdateRoomNotificationSettings,\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 useStorageStatusSuspense as useStorageStatus,\n useThreadsSuspense as useThreads,\n useAttachmentUrlSuspense as useAttachmentUrl,\n useHistoryVersionsSuspense as useHistoryVersions,\n useRoomNotificationSettingsSuspense as useRoomNotificationSettings,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useRoomInfoSuspense as useRoomInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n} from \"./liveblocks\";\n"]}
1
+ {"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.js","../src/suspense.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;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;AACF,sDAA4B;AAC5B;AACA;AClEA,wCAA4B;AAc5B,4CAAwB;AAXxB,+BAAA,yBAAY,EAAU,4BAAA,EAAa,2BAAU,CAAA;ADmE7C;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;AACF,q0HAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.js","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 UseStorageStatusOptions,\n UseThreadsOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n LiveblocksProvider,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useErrorListener,\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 useUpdateRoomNotificationSettings,\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 useStorageStatusSuspense as useStorageStatus,\n useThreadsSuspense as useThreads,\n useAttachmentUrlSuspense as useAttachmentUrl,\n useHistoryVersionsSuspense as useHistoryVersions,\n useRoomNotificationSettingsSuspense as useRoomNotificationSettings,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useRoomInfoSuspense as useRoomInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n} from \"./liveblocks\";\n"]}
package/dist/suspense.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  PKG_FORMAT,
4
4
  PKG_NAME,
5
5
  PKG_VERSION
6
- } from "./chunk-GMP4DSRI.mjs";
6
+ } from "./chunk-XBBRJ42N.mjs";
7
7
  import {
8
8
  ClientContext,
9
9
  LiveblocksProvider,
@@ -63,7 +63,7 @@ import {
63
63
  useUndo,
64
64
  useUnreadInboxNotificationsCountSuspense,
65
65
  useUpdateRoomNotificationSettings
66
- } from "./chunk-JZBPCFEX.mjs";
66
+ } from "./chunk-FQKGWA7O.mjs";
67
67
 
68
68
  // src/suspense.ts
69
69
  import { detectDupes } from "@liveblocks/core";
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/suspense.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseStorageStatusOptions,\n UseThreadsOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n LiveblocksProvider,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useSyncStatus,\n useErrorListener,\n} from \"./liveblocks\";\nexport {\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\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 useUpdateRoomNotificationSettings,\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 useStorageStatusSuspense as useStorageStatus,\n useThreadsSuspense as useThreads,\n useAttachmentUrlSuspense as useAttachmentUrl,\n useHistoryVersionsSuspense as useHistoryVersions,\n useRoomNotificationSettingsSuspense as useRoomNotificationSettings,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useRoomInfoSuspense as useRoomInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,eAAe;AAXxB,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 UseStorageStatusOptions,\n UseThreadsOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n LiveblocksProvider,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useErrorListener,\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 useUpdateRoomNotificationSettings,\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 useStorageStatusSuspense as useStorageStatus,\n useThreadsSuspense as useThreads,\n useAttachmentUrlSuspense as useAttachmentUrl,\n useHistoryVersionsSuspense as useHistoryVersions,\n useRoomNotificationSettingsSuspense as useRoomNotificationSettings,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useRoomInfoSuspense as useRoomInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,eAAe;AAXxB,YAAY,UAAU,aAAa,UAAU;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liveblocks/react",
3
- "version": "2.16.0",
3
+ "version": "2.16.1-ai",
4
4
  "description": "A set of React hooks and providers to use Liveblocks declaratively. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "commonjs",
@@ -61,8 +61,8 @@
61
61
  "showdeps": "depcruise src --include-only '^src' --exclude='__tests__' --output-type dot | dot -T svg > /tmp/dependency-graph.svg && open /tmp/dependency-graph.svg"
62
62
  },
63
63
  "dependencies": {
64
- "@liveblocks/client": "2.16.0",
65
- "@liveblocks/core": "2.16.0"
64
+ "@liveblocks/client": "2.16.1-ai",
65
+ "@liveblocks/core": "2.16.1-ai"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18 || ^19 || ^19.0.0-rc"
@@ -70,7 +70,7 @@
70
70
  "devDependencies": {
71
71
  "@liveblocks/eslint-config": "*",
72
72
  "@liveblocks/jest-config": "*",
73
- "@liveblocks/query-parser": "^0.1.1",
73
+ "@liveblocks/query-parser": "^0.0.4",
74
74
  "@testing-library/jest-dom": "6.4.6",
75
75
  "@testing-library/react": "14.1.2",
76
76
  "date-fns": "^3.6.0",