@liveblocks/react 2.17.0-channels1 → 2.17.0-usrnotsettings1

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, CommentBody, Patchable, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentAttachment, PartialUnless, InboxNotificationData, ChannelsNotificationSettings, Relax, ToImmutable, PartialChannelsNotificationSettings, 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';
5
+ import { OpaqueRoom, BaseMetadata as BaseMetadata$1, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, UserNotificationSettings, Relax, ToImmutable, PartialUserNotificationSettings, 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';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
 
8
8
  /**
@@ -15,123 +15,6 @@ 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
-
135
18
  type UseSyncStatusOptions = {
136
19
  /**
137
20
  * When setting smooth, the hook will not update immediately as status
@@ -227,7 +110,7 @@ type InboxNotificationsAsyncSuccess = PagedAsyncSuccess<InboxNotificationData[],
227
110
  type InboxNotificationsAsyncResult = PagedAsyncResult<InboxNotificationData[], "inboxNotifications">;
228
111
  type UnreadInboxNotificationsCountAsyncSuccess = AsyncSuccess<number, "count">;
229
112
  type UnreadInboxNotificationsCountAsyncResult = AsyncResult<number, "count">;
230
- type ChannelsNotificationSettingsAsyncResult = AsyncResult<ChannelsNotificationSettings, "settings">;
113
+ type UserNotificationSettingsAsyncResult = AsyncResult<UserNotificationSettings, "settings">;
231
114
  type RoomNotificationSettingsAsyncSuccess = AsyncSuccess<RoomNotificationSettings, "settings">;
232
115
  type RoomNotificationSettingsAsyncResult = AsyncResult<RoomNotificationSettings, "settings">;
233
116
  type HistoryVersionDataAsyncResult = AsyncResult<Uint8Array>;
@@ -309,6 +192,17 @@ type SharedContextBundle<U extends BaseUserMeta> = {
309
192
  * const isInsideRoom = useIsInsideRoom();
310
193
  */
311
194
  useIsInsideRoom(): boolean;
195
+ /**
196
+ * useErrorListener is a React hook that allows you to respond to any
197
+ * Liveblocks error, for example room connection errors, errors
198
+ * creating/editing/deleting threads, etc.
199
+ *
200
+ * @example
201
+ * useErrorListener(err => {
202
+ * console.error(err);
203
+ * })
204
+ */
205
+ useErrorListener(callback: (err: LiveblocksError) => void): void;
312
206
  /**
313
207
  * Returns the current Liveblocks sync status, and triggers a re-render
314
208
  * whenever it changes. Can be used to render a "Saving..." indicator, or for
@@ -347,6 +241,17 @@ type SharedContextBundle<U extends BaseUserMeta> = {
347
241
  * const isInsideRoom = useIsInsideRoom();
348
242
  */
349
243
  useIsInsideRoom(): boolean;
244
+ /**
245
+ * useErrorListener is a React hook that allows you to respond to any
246
+ * Liveblocks error, for example room connection errors, errors
247
+ * creating/editing/deleting threads, etc.
248
+ *
249
+ * @example
250
+ * useErrorListener(err => {
251
+ * console.error(err);
252
+ * })
253
+ */
254
+ useErrorListener(callback: (err: LiveblocksError) => void): void;
350
255
  /**
351
256
  * Returns the current Liveblocks sync status, and triggers a re-render
352
257
  * whenever it changes. Can be used to render a "Saving..." indicator, or for
@@ -439,16 +344,6 @@ type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U exten
439
344
  * })
440
345
  */
441
346
  useLostConnectionListener(callback: (event: LostConnectionEvent) => void): void;
442
- /**
443
- * useErrorListener is a React hook that allows you to respond to potential room
444
- * connection errors.
445
- *
446
- * @example
447
- * useErrorListener(er => {
448
- * console.error(er);
449
- * })
450
- */
451
- useErrorListener(callback: (err: LiveblocksError) => void): void;
452
347
  /**
453
348
  * useEventListener is a React hook that allows you to respond to events broadcast
454
349
  * by other users in the room.
@@ -772,16 +667,6 @@ type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U exten
772
667
  */
773
668
  useThreadSubscription(threadId: string): ThreadSubscription;
774
669
  };
775
- /**
776
- * @private
777
- *
778
- * Private methods and variables used in the core internals, but as a user
779
- * of Liveblocks, NEVER USE ANY OF THESE DIRECTLY, because bad things
780
- * will probably happen if you do.
781
- */
782
- type PrivateRoomContextApi = {
783
- useCommentsErrorListener<M extends BaseMetadata$1>(callback: (err: CommentsError<M>) => void): void;
784
- };
785
670
  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"] & {
786
671
  /**
787
672
  * Returns the current storage status for the Room, and triggers
@@ -974,7 +859,7 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
974
859
  */
975
860
  useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncSuccess;
976
861
  }>;
977
- } & PrivateRoomContextApi>;
862
+ }>;
978
863
  /**
979
864
  * Properties that are the same in LiveblocksContext and LiveblocksContext["suspense"].
980
865
  */
@@ -1033,23 +918,23 @@ type LiveblocksContextBundleCommon<M extends BaseMetadata$1> = {
1033
918
  */
1034
919
  useInboxNotificationThread(inboxNotificationId: string): ThreadData<M>;
1035
920
  /**
1036
- * Returns the channels notification settings for the current user.
921
+ * Returns notification settings for the current user.
1037
922
  *
1038
923
  * @example
1039
- * const [{ settings }, updateChannelsNotificationSettings] = useChannelsNotificationSettings()
924
+ * const [{ settings }, updateNotificationSettings] = useNotificationSettings()
1040
925
  */
1041
- useChannelsNotificationSettings(): [
1042
- ChannelsNotificationSettingsAsyncResult,
1043
- (settings: PartialChannelsNotificationSettings) => void
926
+ useNotificationSettings(): [
927
+ UserNotificationSettingsAsyncResult,
928
+ (settings: PartialUserNotificationSettings) => void
1044
929
  ];
1045
930
  /**
1046
- * Returns a function that updates the user's channels notification
931
+ * Returns a function that updates the user's notification
1047
932
  * settings for a project.
1048
933
  *
1049
934
  * @example
1050
- * const updateChannelsNotificationSettings = useUpdateChannelsNotificationSettings()
935
+ * const updateNotificationSettings = useUpdateNotificationSettings()
1051
936
  */
1052
- useUpdateChannelsNotificationSettings(): (settings: PartialChannelsNotificationSettings) => void;
937
+ useUpdateNotificationSettings(): (settings: PartialUserNotificationSettings) => void;
1053
938
  /**
1054
939
  * Returns the current Liveblocks sync status, and triggers a re-render
1055
940
  * whenever it changes. Can be used to render a "Saving..." indicator, or for
@@ -1100,14 +985,14 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata$1> =
1100
985
  */
1101
986
  useUnreadInboxNotificationsCount(): UnreadInboxNotificationsCountAsyncSuccess;
1102
987
  /**
1103
- * Returns the channels notification settings for the current user.
988
+ * Returns notification settings for the current user.
1104
989
  *
1105
990
  * @example
1106
- * const [{ settings }, updateChannelsNotificationSettings] = useChannelsNotificationSettings()
991
+ * const [{ settings }, updateNotificationSettings] = useNotificationSettings()
1107
992
  */
1108
- useChannelsNotificationSettings(): [
1109
- ChannelsNotificationSettingsAsyncResult,
1110
- (settings: PartialChannelsNotificationSettings) => void
993
+ useNotificationSettings(): [
994
+ UserNotificationSettingsAsyncResult,
995
+ (settings: PartialUserNotificationSettings) => void
1111
996
  ];
1112
997
  /**
1113
998
  * @experimental
@@ -1170,7 +1055,7 @@ declare class ThreadDB<M extends BaseMetadata$1> {
1170
1055
  findMany(roomId: string | undefined, query: ThreadsQuery<M>, direction: "asc" | "desc"): ThreadData<M>[];
1171
1056
  }
1172
1057
 
1173
- type OptimisticUpdate<M extends BaseMetadata$1> = CreateThreadOptimisticUpdate<M> | DeleteThreadOptimisticUpdate | EditThreadMetadataOptimisticUpdate<M> | MarkThreadAsResolvedOptimisticUpdate | MarkThreadAsUnresolvedOptimisticUpdate | CreateCommentOptimisticUpdate | EditCommentOptimisticUpdate | DeleteCommentOptimisticUpdate | AddReactionOptimisticUpdate | RemoveReactionOptimisticUpdate | MarkInboxNotificationAsReadOptimisticUpdate | MarkAllInboxNotificationsAsReadOptimisticUpdate | DeleteInboxNotificationOptimisticUpdate | DeleteAllInboxNotificationsOptimisticUpdate | UpdateNotificationSettingsOptimisticUpdate | UpdateChannelsNotificationSettingsOptimisticUpdate;
1058
+ type OptimisticUpdate<M extends BaseMetadata$1> = CreateThreadOptimisticUpdate<M> | DeleteThreadOptimisticUpdate | EditThreadMetadataOptimisticUpdate<M> | MarkThreadAsResolvedOptimisticUpdate | MarkThreadAsUnresolvedOptimisticUpdate | CreateCommentOptimisticUpdate | EditCommentOptimisticUpdate | DeleteCommentOptimisticUpdate | AddReactionOptimisticUpdate | RemoveReactionOptimisticUpdate | MarkInboxNotificationAsReadOptimisticUpdate | MarkAllInboxNotificationsAsReadOptimisticUpdate | DeleteInboxNotificationOptimisticUpdate | DeleteAllInboxNotificationsOptimisticUpdate | UpdateNotificationSettingsOptimisticUpdate | UpdateUserNotificationSettingsOptimisticUpdate;
1174
1059
  type CreateThreadOptimisticUpdate<M extends BaseMetadata$1> = {
1175
1060
  type: "create-thread";
1176
1061
  id: string;
@@ -1265,10 +1150,10 @@ type UpdateNotificationSettingsOptimisticUpdate = {
1265
1150
  roomId: string;
1266
1151
  settings: Partial<RoomNotificationSettings$1>;
1267
1152
  };
1268
- type UpdateChannelsNotificationSettingsOptimisticUpdate = {
1269
- type: "update-channels-notification-settings";
1153
+ type UpdateUserNotificationSettingsOptimisticUpdate = {
1154
+ type: "update-user-notification-settings";
1270
1155
  id: string;
1271
- settings: PartialChannelsNotificationSettings;
1156
+ settings: PartialUserNotificationSettings;
1272
1157
  };
1273
1158
  /**
1274
1159
  * Like Promise<T>, except it will have a synchronously readable `status`
@@ -1350,9 +1235,9 @@ declare function createStore_forPermissionHints(): {
1350
1235
  signal: ISignal<PermissionHintsLUT>;
1351
1236
  update: (newHints: Record<string, Permission[]>) => void;
1352
1237
  };
1353
- declare function createStore_forChannelsNotificationSettings(updates: ISignal<readonly OptimisticUpdate<BaseMetadata$1>[]>): {
1354
- signal: DerivedSignal<ChannelsNotificationSettings>;
1355
- update: (settings: ChannelsNotificationSettings) => void;
1238
+ declare function createStore_forUserNotificationSettings(updates: ISignal<readonly OptimisticUpdate<BaseMetadata$1>[]>): {
1239
+ signal: DerivedSignal<UserNotificationSettings>;
1240
+ update: (settings: UserNotificationSettings) => void;
1356
1241
  };
1357
1242
  declare function createStore_forOptimistic<M extends BaseMetadata$1>(client: Client<BaseUserMeta$1, M>): {
1358
1243
  signal: ISignal<readonly OptimisticUpdate<M>[]>;
@@ -1366,7 +1251,7 @@ declare class UmbrellaStore<M extends BaseMetadata$1> {
1366
1251
  readonly roomNotificationSettings: ReturnType<typeof createStore_forRoomNotificationSettings>;
1367
1252
  readonly historyVersions: ReturnType<typeof createStore_forHistoryVersions>;
1368
1253
  readonly permissionHints: ReturnType<typeof createStore_forPermissionHints>;
1369
- readonly channelNotificationSettings: ReturnType<typeof createStore_forChannelsNotificationSettings>;
1254
+ readonly userNotificationSettings: ReturnType<typeof createStore_forUserNotificationSettings>;
1370
1255
  readonly optimisticUpdates: ReturnType<typeof createStore_forOptimistic<M>>;
1371
1256
  readonly outputs: {
1372
1257
  readonly threadifications: DerivedSignal<CleanThreadifications<M>>;
@@ -1377,7 +1262,7 @@ declare class UmbrellaStore<M extends BaseMetadata$1> {
1377
1262
  readonly loadingNotifications: LoadableResource<InboxNotificationsAsyncResult>;
1378
1263
  readonly settingsByRoomId: DefaultMap<RoomId, LoadableResource<RoomNotificationSettingsAsyncResult>>;
1379
1264
  readonly versionsByRoomId: DefaultMap<RoomId, LoadableResource<HistoryVersionsAsyncResult>>;
1380
- readonly channelNotificationSettings: LoadableResource<ChannelsNotificationSettingsAsyncResult>;
1265
+ readonly userNotificationSettings: LoadableResource<UserNotificationSettingsAsyncResult>;
1381
1266
  };
1382
1267
  constructor(client: OpaqueClient);
1383
1268
  /**
@@ -1436,14 +1321,14 @@ declare class UmbrellaStore<M extends BaseMetadata$1> {
1436
1321
  fetchRoomVersionsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
1437
1322
  refreshRoomNotificationSettings(roomId: string, signal: AbortSignal): Promise<void>;
1438
1323
  /**
1439
- * Refresh Channels Notification Settings from poller
1324
+ * Refresh User Notification Settings from poller
1440
1325
  */
1441
- refreshChannelsNotificationSettings(signal: AbortSignal): Promise<void>;
1326
+ refreshUserNotificationSettings(signal: AbortSignal): Promise<void>;
1442
1327
  /**
1443
- * Updates channels notification settings with a new value, replacing the
1328
+ * Updates user notification settings with a new value, replacing the
1444
1329
  * corresponding optimistic update.
1445
1330
  */
1446
- updateChannelsNotificationSettings_confirmOptimisticUpdate(settings: ChannelsNotificationSettings, optimisticUpdateId: string): void;
1331
+ updateUserNotificationSettings_confirmOptimisticUpdate(settings: UserNotificationSettings, optimisticUpdateId: string): void;
1447
1332
  }
1448
1333
 
1449
1334
  /**
@@ -1555,27 +1440,27 @@ declare function useUnreadInboxNotificationsCountSuspense(): {
1555
1440
  readonly error?: undefined;
1556
1441
  };
1557
1442
  /**
1558
- * Returns the channels notification settings for the current user.
1443
+ * Returns notification settings for the current user.
1559
1444
  *
1560
1445
  * @example
1561
- * const [{ settings }, updateChannelsNotificationSettings] = useChannelsNotificationSettings()
1446
+ * const [{ settings }, updateNotificationSettings] = useNotificationSettings()
1562
1447
  */
1563
- declare function useChannelsNotificationSettings(): [ChannelsNotificationSettingsAsyncResult, (settings: PartialChannelsNotificationSettings) => void];
1448
+ declare function useNotificationSettings(): [UserNotificationSettingsAsyncResult, (settings: PartialUserNotificationSettings) => void];
1564
1449
  /**
1565
- * Returns the channels notification settings for the current user.
1450
+ * Returns notification settings for the current user.
1566
1451
  *
1567
1452
  * @example
1568
- * const [{ settings }, updateChannelsNotificationSettings] = useChannelsNotificationSettings()
1453
+ * const [{ settings }, updateNotificationSettings] = useNotificationSettings()
1569
1454
  */
1570
- declare function useChannelsNotificationSettingsSuspense(): [ChannelsNotificationSettingsAsyncResult, (settings: PartialChannelsNotificationSettings) => void];
1455
+ declare function useNotificationSettingsSuspense(): [UserNotificationSettingsAsyncResult, (settings: PartialUserNotificationSettings) => void];
1571
1456
  /**
1572
- * Returns a function that updates the user's channels notification
1457
+ * Returns a function that updates the user's notification
1573
1458
  * settings for a project.
1574
1459
  *
1575
1460
  * @example
1576
- * const updateChannelsNotificationSettings = useUpdateChannelsNotificationSettings()
1461
+ * const updateNotificationSettings = useUpdateNotificationSettings()
1577
1462
  */
1578
- declare function useUpdateChannelsNotificationSettings(): (settings: PartialChannelsNotificationSettings) => void;
1463
+ declare function useUpdateNotificationSettings(): (settings: PartialUserNotificationSettings) => void;
1579
1464
  /**
1580
1465
  * Returns room info from a given room ID.
1581
1466
  *
@@ -1664,6 +1549,17 @@ declare const _useUserThreadsSuspense_experimental: TypedBundle$1["suspense"]["u
1664
1549
  * const syncStatus = useSyncStatus({ smooth: true });
1665
1550
  */
1666
1551
  declare function useSyncStatus(options?: UseSyncStatusOptions): SyncStatus;
1552
+ /**
1553
+ * useErrorListener is a React hook that allows you to respond to any
1554
+ * Liveblocks error, for example room connection errors, errors
1555
+ * creating/editing/deleting threads, etc.
1556
+ *
1557
+ * @example
1558
+ * useErrorListener(err => {
1559
+ * console.error(err);
1560
+ * })
1561
+ */
1562
+ declare function useErrorListener(callback: (err: LiveblocksError) => void): void;
1667
1563
 
1668
1564
  /**
1669
1565
  * Returns the current connection status for the Room, and triggers
@@ -1721,16 +1617,6 @@ declare function useBatch<T>(): (callback: () => T) => T;
1721
1617
  * })
1722
1618
  */
1723
1619
  declare function useLostConnectionListener(callback: (event: LostConnectionEvent) => void): void;
1724
- /**
1725
- * useErrorListener is a React hook that allows you to respond to potential room
1726
- * connection errors.
1727
- *
1728
- * @example
1729
- * useErrorListener(er => {
1730
- * console.error(er);
1731
- * })
1732
- */
1733
- declare function useErrorListener(callback: (err: LiveblocksError) => void): void;
1734
1620
  /**
1735
1621
  * Returns the room.history
1736
1622
  */
@@ -1768,10 +1654,6 @@ declare function useCanRedo(): boolean;
1768
1654
  * // [2, 4, 7]
1769
1655
  */
1770
1656
  declare function useOthersConnectionIds(): readonly number[];
1771
- /**
1772
- * @private Internal API, do not rely on it.
1773
- */
1774
- declare function useCommentsErrorListener<M extends BaseMetadata>(callback: (error: CommentsError<M>) => void): void;
1775
1657
  /**
1776
1658
  * @private
1777
1659
  */
@@ -2415,4 +2297,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
2415
2297
  */
2416
2298
  declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
2417
2299
 
2418
- 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, _useOtherSuspense as aA, _useOthersSuspense as aB, useOthersConnectionIdsSuspense as aC, _useOthersMappedSuspense as aD, _useSelfSuspense as aE, _useStorageSuspense as aF, useStorageStatusSuspense as aG, _useThreadsSuspense as aH, useAttachmentUrlSuspense as aI, _useHistoryVersionsSuspense as aJ, _useRoomNotificationSettingsSuspense as aK, useInboxNotificationsSuspense as aL, useChannelsNotificationSettingsSuspense as aM, useRoomInfoSuspense as aN, useUnreadInboxNotificationsCountSuspense as aO, _useUserSuspense as aP, _useUserThreadsSuspense_experimental as aQ, 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, useChannelsNotificationSettings as au, useUpdateChannelsNotificationSettings as av, _useUserThreads_experimental as aw, useRoomInfo as ax, useUnreadInboxNotificationsCount as ay, _useUser 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 };
2300
+ 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, 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, useNotificationSettingsSuspense as aK, useRoomInfoSuspense as aL, useUnreadInboxNotificationsCountSuspense as aM, _useUserSuspense as aN, _useUserThreadsSuspense_experimental as aO, _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, useNotificationSettings as as, useUpdateNotificationSettings 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, createLiveblocksContext as x, useClient as y, useDeleteAllInboxNotifications as z };
@@ -1,6 +1,6 @@
1
1
  export { ClientSideSuspense } from './index.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, aI as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, aM as useChannelsNotificationSettings, 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, aJ as useHistoryVersions, _ as useInboxNotificationThread, aL 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, aA as useOther, aB as useOthers, aC as useOthersConnectionIds, a6 as useOthersListener, aD as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, aN as useRoomInfo, aK as useRoomNotificationSettings, aE as useSelf, aa as useStatus, aF as useStorage, ab as useStorageRoot, aG as useStorageStatus, F as useSyncStatus, ac as useThreadSubscription, aH as useThreads, ad as useUndo, aO as useUnreadInboxNotificationsCount, av as useUpdateChannelsNotificationSettings, ae as useUpdateMyPresence, af as useUpdateRoomNotificationSettings, aP as useUser, aQ as useUserThreads_experimental } from './room-C0TyErPq.mjs';
3
- export { Json, JsonObject, isChannelNotificationSettingEnabled, shallow } from '@liveblocks/client';
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, aG 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, aH as useHistoryVersions, _ as useInboxNotificationThread, aJ 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, aK as useNotificationSettings, ay as useOther, az as useOthers, aA as useOthersConnectionIds, a5 as useOthersListener, aB as useOthersMapped, a6 as useRedo, a7 as useRemoveReaction, a8 as useRoom, aL as useRoomInfo, aI as useRoomNotificationSettings, aC as useSelf, a9 as useStatus, aD as useStorage, aa as useStorageRoot, aE as useStorageStatus, F as useSyncStatus, ab as useThreadSubscription, aF as useThreads, ac as useUndo, aM as useUnreadInboxNotificationsCount, ad as useUpdateMyPresence, at as useUpdateNotificationSettings, ae as useUpdateRoomNotificationSettings, aN as useUser, aO as useUserThreads_experimental } from './room-DlI0Yrzf.mjs';
3
+ export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react';
6
6
  import '@liveblocks/core';
@@ -1,6 +1,6 @@
1
1
  export { ClientSideSuspense } from './index.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, aI as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, aM as useChannelsNotificationSettings, 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, aJ as useHistoryVersions, _ as useInboxNotificationThread, aL 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, aA as useOther, aB as useOthers, aC as useOthersConnectionIds, a6 as useOthersListener, aD as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, aN as useRoomInfo, aK as useRoomNotificationSettings, aE as useSelf, aa as useStatus, aF as useStorage, ab as useStorageRoot, aG as useStorageStatus, F as useSyncStatus, ac as useThreadSubscription, aH as useThreads, ad as useUndo, aO as useUnreadInboxNotificationsCount, av as useUpdateChannelsNotificationSettings, ae as useUpdateMyPresence, af as useUpdateRoomNotificationSettings, aP as useUser, aQ as useUserThreads_experimental } from './room-C0TyErPq.js';
3
- export { Json, JsonObject, isChannelNotificationSettingEnabled, shallow } from '@liveblocks/client';
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, aG 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, aH as useHistoryVersions, _ as useInboxNotificationThread, aJ 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, aK as useNotificationSettings, ay as useOther, az as useOthers, aA as useOthersConnectionIds, a5 as useOthersListener, aB as useOthersMapped, a6 as useRedo, a7 as useRemoveReaction, a8 as useRoom, aL as useRoomInfo, aI as useRoomNotificationSettings, aC as useSelf, a9 as useStatus, aD as useStorage, aa as useStorageRoot, aE as useStorageStatus, F as useSyncStatus, ab as useThreadSubscription, aF as useThreads, ac as useUndo, aM as useUnreadInboxNotificationsCount, ad as useUpdateMyPresence, at as useUpdateNotificationSettings, ae as useUpdateRoomNotificationSettings, aN as useUser, aO as useUserThreads_experimental } from './room-DlI0Yrzf.js';
3
+ export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react';
6
6
  import '@liveblocks/core';
package/dist/suspense.js CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkRABQO63Hjs = require('./chunk-RABQO63H.js');
6
+ var _chunkDT3BO7N5js = require('./chunk-DT3BO7N5.js');
7
7
 
8
8
 
9
9
 
@@ -65,15 +65,12 @@ var _chunkRABQO63Hjs = require('./chunk-RABQO63H.js');
65
65
 
66
66
 
67
67
 
68
- var _chunk22QRR3GVjs = require('./chunk-22QRR3GV.js');
68
+ var _chunk4F7C4HN7js = require('./chunk-4F7C4HN7.js');
69
69
 
70
70
  // src/suspense.ts
71
71
  var _core = require('@liveblocks/core');
72
-
73
-
74
-
75
72
  var _client = require('@liveblocks/client');
76
- _core.detectDupes.call(void 0, _chunkRABQO63Hjs.PKG_NAME, _chunkRABQO63Hjs.PKG_VERSION, _chunkRABQO63Hjs.PKG_FORMAT);
73
+ _core.detectDupes.call(void 0, _chunkDT3BO7N5js.PKG_NAME, _chunkDT3BO7N5js.PKG_VERSION, _chunkDT3BO7N5js.PKG_FORMAT);
77
74
 
78
75
 
79
76
 
@@ -138,5 +135,5 @@ _core.detectDupes.call(void 0, _chunkRABQO63Hjs.PKG_NAME, _chunkRABQO63Hjs.PKG_V
138
135
 
139
136
 
140
137
 
141
- exports.ClientContext = _chunk22QRR3GVjs.ClientContext; exports.ClientSideSuspense = _chunkRABQO63Hjs.ClientSideSuspense; exports.LiveblocksProvider = _chunk22QRR3GVjs.LiveblocksProvider; exports.RoomContext = _chunk22QRR3GVjs.RoomContext; exports.RoomProvider = _chunk22QRR3GVjs._RoomProvider; exports.isChannelNotificationSettingEnabled = _client.isChannelNotificationSettingEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunk22QRR3GVjs._useAddReaction; exports.useAttachmentUrl = _chunk22QRR3GVjs.useAttachmentUrlSuspense; exports.useBatch = _chunk22QRR3GVjs.useBatch; exports.useBroadcastEvent = _chunk22QRR3GVjs._useBroadcastEvent; exports.useCanRedo = _chunk22QRR3GVjs.useCanRedo; exports.useCanUndo = _chunk22QRR3GVjs.useCanUndo; exports.useChannelsNotificationSettings = _chunk22QRR3GVjs.useChannelsNotificationSettingsSuspense; exports.useClient = _chunk22QRR3GVjs.useClient; exports.useCreateComment = _chunk22QRR3GVjs.useCreateComment; exports.useCreateThread = _chunk22QRR3GVjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunk22QRR3GVjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunk22QRR3GVjs.useDeleteComment; exports.useDeleteInboxNotification = _chunk22QRR3GVjs.useDeleteInboxNotification; exports.useDeleteThread = _chunk22QRR3GVjs._useDeleteThread; exports.useEditComment = _chunk22QRR3GVjs.useEditComment; exports.useEditThreadMetadata = _chunk22QRR3GVjs._useEditThreadMetadata; exports.useErrorListener = _chunk22QRR3GVjs.useErrorListener; exports.useEventListener = _chunk22QRR3GVjs._useEventListener; exports.useHistory = _chunk22QRR3GVjs.useHistory; exports.useHistoryVersions = _chunk22QRR3GVjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunk22QRR3GVjs._useInboxNotificationThread; exports.useInboxNotifications = _chunk22QRR3GVjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunk22QRR3GVjs._useIsInsideRoom; exports.useLostConnectionListener = _chunk22QRR3GVjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunk22QRR3GVjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunk22QRR3GVjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunk22QRR3GVjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunk22QRR3GVjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunk22QRR3GVjs.useMarkThreadAsUnresolved; exports.useMutation = _chunk22QRR3GVjs._useMutation; exports.useMyPresence = _chunk22QRR3GVjs._useMyPresence; exports.useOther = _chunk22QRR3GVjs._useOtherSuspense; exports.useOthers = _chunk22QRR3GVjs._useOthersSuspense; exports.useOthersConnectionIds = _chunk22QRR3GVjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunk22QRR3GVjs._useOthersListener; exports.useOthersMapped = _chunk22QRR3GVjs._useOthersMappedSuspense; exports.useRedo = _chunk22QRR3GVjs.useRedo; exports.useRemoveReaction = _chunk22QRR3GVjs.useRemoveReaction; exports.useRoom = _chunk22QRR3GVjs._useRoom; exports.useRoomInfo = _chunk22QRR3GVjs.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunk22QRR3GVjs._useRoomNotificationSettingsSuspense; exports.useSelf = _chunk22QRR3GVjs._useSelfSuspense; exports.useStatus = _chunk22QRR3GVjs.useStatus; exports.useStorage = _chunk22QRR3GVjs._useStorageSuspense; exports.useStorageRoot = _chunk22QRR3GVjs._useStorageRoot; exports.useStorageStatus = _chunk22QRR3GVjs.useStorageStatusSuspense; exports.useSyncStatus = _chunk22QRR3GVjs.useSyncStatus; exports.useThreadSubscription = _chunk22QRR3GVjs.useThreadSubscription; exports.useThreads = _chunk22QRR3GVjs._useThreadsSuspense; exports.useUndo = _chunk22QRR3GVjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunk22QRR3GVjs.useUnreadInboxNotificationsCountSuspense; exports.useUpdateChannelsNotificationSettings = _chunk22QRR3GVjs.useUpdateChannelsNotificationSettings; exports.useUpdateMyPresence = _chunk22QRR3GVjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunk22QRR3GVjs.useUpdateRoomNotificationSettings; exports.useUser = _chunk22QRR3GVjs._useUserSuspense; exports.useUserThreads_experimental = _chunk22QRR3GVjs._useUserThreadsSuspense_experimental;
138
+ exports.ClientContext = _chunk4F7C4HN7js.ClientContext; exports.ClientSideSuspense = _chunkDT3BO7N5js.ClientSideSuspense; exports.LiveblocksProvider = _chunk4F7C4HN7js.LiveblocksProvider; exports.RoomContext = _chunk4F7C4HN7js.RoomContext; exports.RoomProvider = _chunk4F7C4HN7js._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunk4F7C4HN7js._useAddReaction; exports.useAttachmentUrl = _chunk4F7C4HN7js.useAttachmentUrlSuspense; exports.useBatch = _chunk4F7C4HN7js.useBatch; exports.useBroadcastEvent = _chunk4F7C4HN7js._useBroadcastEvent; exports.useCanRedo = _chunk4F7C4HN7js.useCanRedo; exports.useCanUndo = _chunk4F7C4HN7js.useCanUndo; exports.useClient = _chunk4F7C4HN7js.useClient; exports.useCreateComment = _chunk4F7C4HN7js.useCreateComment; exports.useCreateThread = _chunk4F7C4HN7js._useCreateThread; exports.useDeleteAllInboxNotifications = _chunk4F7C4HN7js.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunk4F7C4HN7js.useDeleteComment; exports.useDeleteInboxNotification = _chunk4F7C4HN7js.useDeleteInboxNotification; exports.useDeleteThread = _chunk4F7C4HN7js._useDeleteThread; exports.useEditComment = _chunk4F7C4HN7js.useEditComment; exports.useEditThreadMetadata = _chunk4F7C4HN7js._useEditThreadMetadata; exports.useErrorListener = _chunk4F7C4HN7js.useErrorListener; exports.useEventListener = _chunk4F7C4HN7js._useEventListener; exports.useHistory = _chunk4F7C4HN7js.useHistory; exports.useHistoryVersions = _chunk4F7C4HN7js._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunk4F7C4HN7js._useInboxNotificationThread; exports.useInboxNotifications = _chunk4F7C4HN7js.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunk4F7C4HN7js._useIsInsideRoom; exports.useLostConnectionListener = _chunk4F7C4HN7js.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunk4F7C4HN7js.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunk4F7C4HN7js.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunk4F7C4HN7js.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunk4F7C4HN7js.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunk4F7C4HN7js.useMarkThreadAsUnresolved; exports.useMutation = _chunk4F7C4HN7js._useMutation; exports.useMyPresence = _chunk4F7C4HN7js._useMyPresence; exports.useNotificationSettings = _chunk4F7C4HN7js.useNotificationSettingsSuspense; exports.useOther = _chunk4F7C4HN7js._useOtherSuspense; exports.useOthers = _chunk4F7C4HN7js._useOthersSuspense; exports.useOthersConnectionIds = _chunk4F7C4HN7js.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunk4F7C4HN7js._useOthersListener; exports.useOthersMapped = _chunk4F7C4HN7js._useOthersMappedSuspense; exports.useRedo = _chunk4F7C4HN7js.useRedo; exports.useRemoveReaction = _chunk4F7C4HN7js.useRemoveReaction; exports.useRoom = _chunk4F7C4HN7js._useRoom; exports.useRoomInfo = _chunk4F7C4HN7js.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunk4F7C4HN7js._useRoomNotificationSettingsSuspense; exports.useSelf = _chunk4F7C4HN7js._useSelfSuspense; exports.useStatus = _chunk4F7C4HN7js.useStatus; exports.useStorage = _chunk4F7C4HN7js._useStorageSuspense; exports.useStorageRoot = _chunk4F7C4HN7js._useStorageRoot; exports.useStorageStatus = _chunk4F7C4HN7js.useStorageStatusSuspense; exports.useSyncStatus = _chunk4F7C4HN7js.useSyncStatus; exports.useThreadSubscription = _chunk4F7C4HN7js.useThreadSubscription; exports.useThreads = _chunk4F7C4HN7js._useThreadsSuspense; exports.useUndo = _chunk4F7C4HN7js.useUndo; exports.useUnreadInboxNotificationsCount = _chunk4F7C4HN7js.useUnreadInboxNotificationsCountSuspense; exports.useUpdateMyPresence = _chunk4F7C4HN7js._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunk4F7C4HN7js.useUpdateNotificationSettings; exports.useUpdateRoomNotificationSettings = _chunk4F7C4HN7js.useUpdateRoomNotificationSettings; exports.useUser = _chunk4F7C4HN7js._useUserSuspense; exports.useUserThreads_experimental = _chunk4F7C4HN7js._useUserThreadsSuspense_experimental;
142
139
  //# 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;AACA;AACA;AACF,sDAA4B;AAC5B;AACA;ACpEA,wCAA4B;AAc5B;AACE;AACA;AAAA,4CACK;AAdP,+BAAA,yBAAY,EAAU,4BAAA,EAAa,2BAAU,CAAA;ADwE7C;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;AACF,4mIAAC","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 {\n shallow,\n isChannelNotificationSettingEnabled,\n} 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 useUpdateChannelsNotificationSettings,\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 useChannelsNotificationSettingsSuspense as useChannelsNotificationSettings,\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;AACA;AACA;AACF,sDAA4B;AAC5B;AACA;ACpEA,wCAA4B;AAc5B,4CAAsD;AAXtD,+BAAA,yBAAY,EAAU,4BAAA,EAAa,2BAAU,CAAA;ADqE7C;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;AACF,8jIAAC","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, isNotificationChannelEnabled } 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 useUpdateNotificationSettings,\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 useNotificationSettingsSuspense as useNotificationSettings,\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-KFACA6OH.mjs";
6
+ } from "./chunk-KAFU5ZQA.mjs";
7
7
  import {
8
8
  ClientContext,
9
9
  LiveblocksProvider,
@@ -37,7 +37,6 @@ import {
37
37
  useBatch,
38
38
  useCanRedo,
39
39
  useCanUndo,
40
- useChannelsNotificationSettingsSuspense,
41
40
  useClient,
42
41
  useCreateComment,
43
42
  useDeleteAllInboxNotifications,
@@ -53,6 +52,7 @@ import {
53
52
  useMarkThreadAsRead,
54
53
  useMarkThreadAsResolved,
55
54
  useMarkThreadAsUnresolved,
55
+ useNotificationSettingsSuspense,
56
56
  useOthersConnectionIdsSuspense,
57
57
  useRedo,
58
58
  useRemoveReaction,
@@ -63,16 +63,13 @@ import {
63
63
  useThreadSubscription,
64
64
  useUndo,
65
65
  useUnreadInboxNotificationsCountSuspense,
66
- useUpdateChannelsNotificationSettings,
66
+ useUpdateNotificationSettings,
67
67
  useUpdateRoomNotificationSettings
68
- } from "./chunk-VX6Y3GQO.mjs";
68
+ } from "./chunk-LOPNJCSB.mjs";
69
69
 
70
70
  // src/suspense.ts
71
71
  import { detectDupes } from "@liveblocks/core";
72
- import {
73
- shallow,
74
- isChannelNotificationSettingEnabled
75
- } from "@liveblocks/client";
72
+ import { shallow, isNotificationChannelEnabled } from "@liveblocks/client";
76
73
  detectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);
77
74
  export {
78
75
  ClientContext,
@@ -80,7 +77,7 @@ export {
80
77
  LiveblocksProvider,
81
78
  RoomContext,
82
79
  _RoomProvider as RoomProvider,
83
- isChannelNotificationSettingEnabled,
80
+ isNotificationChannelEnabled,
84
81
  shallow,
85
82
  _useAddReaction as useAddReaction,
86
83
  useAttachmentUrlSuspense as useAttachmentUrl,
@@ -88,7 +85,6 @@ export {
88
85
  _useBroadcastEvent as useBroadcastEvent,
89
86
  useCanRedo,
90
87
  useCanUndo,
91
- useChannelsNotificationSettingsSuspense as useChannelsNotificationSettings,
92
88
  useClient,
93
89
  useCreateComment,
94
90
  _useCreateThread as useCreateThread,
@@ -113,6 +109,7 @@ export {
113
109
  useMarkThreadAsUnresolved,
114
110
  _useMutation as useMutation,
115
111
  _useMyPresence as useMyPresence,
112
+ useNotificationSettingsSuspense as useNotificationSettings,
116
113
  _useOtherSuspense as useOther,
117
114
  _useOthersSuspense as useOthers,
118
115
  useOthersConnectionIdsSuspense as useOthersConnectionIds,
@@ -133,8 +130,8 @@ export {
133
130
  _useThreadsSuspense as useThreads,
134
131
  useUndo,
135
132
  useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,
136
- useUpdateChannelsNotificationSettings,
137
133
  _useUpdateMyPresence as useUpdateMyPresence,
134
+ useUpdateNotificationSettings,
138
135
  useUpdateRoomNotificationSettings,
139
136
  _useUserSuspense as useUser,
140
137
  _useUserThreadsSuspense_experimental as useUserThreads_experimental
@@ -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 {\n shallow,\n isChannelNotificationSettingEnabled,\n} 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 useUpdateChannelsNotificationSettings,\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 useChannelsNotificationSettingsSuspense as useChannelsNotificationSettings,\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;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAdP,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, isNotificationChannelEnabled } 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 useUpdateNotificationSettings,\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 useNotificationSettingsSuspense as useNotificationSettings,\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,SAAS,oCAAoC;AAXtD,YAAY,UAAU,aAAa,UAAU;","names":[]}