@liveblocks/react 2.7.0 → 2.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { b as ClientContext, C as ClientSideSuspense, X as CreateThreadError, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, U as UseStorageStatusOptions, a as UseThreadsOptions, c as createLiveblocksContext, h as createRoomContext, ab as getUmbrellaStoreForClient, ac as selectRoomThreads, j as useAddReaction, k as useBatch, l as useBroadcastEvent, m as useCanRedo, n as useCanUndo, u as useClient, W as useCommentsErrorListener, o as useCreateComment, p as useCreateThread, f as useDeleteAllInboxNotifications, q as useDeleteComment, g as useDeleteInboxNotification, r as useDeleteThread, s as useEditComment, t as useEditThreadMetadata, x as useErrorListener, y as useEventListener, z as useHistory, V as useHistoryVersionData, a5 as useHistoryVersions, _ as useInboxNotificationThread, a6 as useInboxNotifications, A as useIsInsideRoom, B as useLostConnectionListener, d as useMarkAllInboxNotificationsAsRead, e as useMarkInboxNotificationAsRead, D as useMarkThreadAsRead, v as useMarkThreadAsResolved, w as useMarkThreadAsUnresolved, E as useMutation, F as useMyPresence, Y as useOther, Z as useOthers, $ as useOthersConnectionIds, G as useOthersListener, a0 as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, a8 as useRoomInfo, K as useRoomNotificationSettings, a1 as useSelf, N as useStatus, a2 as useStorage, O as useStorageRoot, a3 as useStorageStatus, P as useThreadSubscription, a4 as useThreads, Q as useUndo, a9 as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, aa as useUser, a7 as useUserThreads_experimental } from './suspense-pL0llH_6.mjs';
1
+ export { b as ClientContext, C as ClientSideSuspense, X as CreateThreadError, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, U as UseStorageStatusOptions, a as UseThreadsOptions, c as createLiveblocksContext, h as createRoomContext, ab as getUmbrellaStoreForClient, ac as selectThreads, j as useAddReaction, k as useBatch, l as useBroadcastEvent, m as useCanRedo, n as useCanUndo, u as useClient, W as useCommentsErrorListener, o as useCreateComment, p as useCreateThread, f as useDeleteAllInboxNotifications, q as useDeleteComment, g as useDeleteInboxNotification, r as useDeleteThread, s as useEditComment, t as useEditThreadMetadata, x as useErrorListener, y as useEventListener, z as useHistory, V as useHistoryVersionData, a5 as useHistoryVersions, _ as useInboxNotificationThread, a6 as useInboxNotifications, A as useIsInsideRoom, B as useLostConnectionListener, d as useMarkAllInboxNotificationsAsRead, e as useMarkInboxNotificationAsRead, D as useMarkThreadAsRead, v as useMarkThreadAsResolved, w as useMarkThreadAsUnresolved, E as useMutation, F as useMyPresence, Y as useOther, Z as useOthers, $ as useOthersConnectionIds, G as useOthersListener, a0 as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, a8 as useRoomInfo, K as useRoomNotificationSettings, a1 as useSelf, N as useStatus, a2 as useStorage, O as useStorageRoot, a3 as useStorageStatus, P as useThreadSubscription, a4 as useThreads, Q as useUndo, a9 as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, aa as useUser, a7 as useUserThreads_experimental } from './suspense-dtola__O.mjs';
2
2
  export { Json, JsonObject, shallow } from '@liveblocks/client';
3
3
  import 'react';
4
4
  import '@liveblocks/core';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { b as ClientContext, C as ClientSideSuspense, X as CreateThreadError, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, U as UseStorageStatusOptions, a as UseThreadsOptions, c as createLiveblocksContext, h as createRoomContext, ab as getUmbrellaStoreForClient, ac as selectRoomThreads, j as useAddReaction, k as useBatch, l as useBroadcastEvent, m as useCanRedo, n as useCanUndo, u as useClient, W as useCommentsErrorListener, o as useCreateComment, p as useCreateThread, f as useDeleteAllInboxNotifications, q as useDeleteComment, g as useDeleteInboxNotification, r as useDeleteThread, s as useEditComment, t as useEditThreadMetadata, x as useErrorListener, y as useEventListener, z as useHistory, V as useHistoryVersionData, a5 as useHistoryVersions, _ as useInboxNotificationThread, a6 as useInboxNotifications, A as useIsInsideRoom, B as useLostConnectionListener, d as useMarkAllInboxNotificationsAsRead, e as useMarkInboxNotificationAsRead, D as useMarkThreadAsRead, v as useMarkThreadAsResolved, w as useMarkThreadAsUnresolved, E as useMutation, F as useMyPresence, Y as useOther, Z as useOthers, $ as useOthersConnectionIds, G as useOthersListener, a0 as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, a8 as useRoomInfo, K as useRoomNotificationSettings, a1 as useSelf, N as useStatus, a2 as useStorage, O as useStorageRoot, a3 as useStorageStatus, P as useThreadSubscription, a4 as useThreads, Q as useUndo, a9 as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, aa as useUser, a7 as useUserThreads_experimental } from './suspense-pL0llH_6.js';
1
+ export { b as ClientContext, C as ClientSideSuspense, X as CreateThreadError, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, U as UseStorageStatusOptions, a as UseThreadsOptions, c as createLiveblocksContext, h as createRoomContext, ab as getUmbrellaStoreForClient, ac as selectThreads, j as useAddReaction, k as useBatch, l as useBroadcastEvent, m as useCanRedo, n as useCanUndo, u as useClient, W as useCommentsErrorListener, o as useCreateComment, p as useCreateThread, f as useDeleteAllInboxNotifications, q as useDeleteComment, g as useDeleteInboxNotification, r as useDeleteThread, s as useEditComment, t as useEditThreadMetadata, x as useErrorListener, y as useEventListener, z as useHistory, V as useHistoryVersionData, a5 as useHistoryVersions, _ as useInboxNotificationThread, a6 as useInboxNotifications, A as useIsInsideRoom, B as useLostConnectionListener, d as useMarkAllInboxNotificationsAsRead, e as useMarkInboxNotificationAsRead, D as useMarkThreadAsRead, v as useMarkThreadAsResolved, w as useMarkThreadAsUnresolved, E as useMutation, F as useMyPresence, Y as useOther, Z as useOthers, $ as useOthersConnectionIds, G as useOthersListener, a0 as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, a8 as useRoomInfo, K as useRoomNotificationSettings, a1 as useSelf, N as useStatus, a2 as useStorage, O as useStorageRoot, a3 as useStorageStatus, P as useThreadSubscription, a4 as useThreads, Q as useUndo, a9 as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, aa as useUser, a7 as useUserThreads_experimental } from './suspense-dtola__O.js';
2
2
  export { Json, JsonObject, shallow } from '@liveblocks/client';
3
3
  import 'react';
4
4
  import '@liveblocks/core';
package/dist/index.js CHANGED
@@ -66,12 +66,12 @@
66
66
 
67
67
 
68
68
 
69
- var _chunkKNPU4P3Yjs = require('./chunk-KNPU4P3Y.js');
69
+ var _chunkTGC7HD5Fjs = require('./chunk-TGC7HD5F.js');
70
70
 
71
71
  // src/index.ts
72
72
  var _core = require('@liveblocks/core');
73
73
  var _client = require('@liveblocks/client');
74
- _core.detectDupes.call(void 0, _chunkKNPU4P3Yjs.PKG_NAME, _chunkKNPU4P3Yjs.PKG_VERSION, _chunkKNPU4P3Yjs.PKG_FORMAT);
74
+ _core.detectDupes.call(void 0, _chunkTGC7HD5Fjs.PKG_NAME, _chunkTGC7HD5Fjs.PKG_VERSION, _chunkTGC7HD5Fjs.PKG_FORMAT);
75
75
 
76
76
 
77
77
 
@@ -138,5 +138,5 @@ _core.detectDupes.call(void 0, _chunkKNPU4P3Yjs.PKG_NAME, _chunkKNPU4P3Yjs.PKG_V
138
138
 
139
139
 
140
140
 
141
- exports.ClientContext = _chunkKNPU4P3Yjs.ClientContext; exports.ClientSideSuspense = _chunkKNPU4P3Yjs.ClientSideSuspense; exports.CreateThreadError = _chunkKNPU4P3Yjs.CreateThreadError; exports.LiveblocksProvider = _chunkKNPU4P3Yjs.LiveblocksProvider; exports.RoomContext = _chunkKNPU4P3Yjs.RoomContext; exports.RoomProvider = _chunkKNPU4P3Yjs._RoomProvider; exports.createLiveblocksContext = _chunkKNPU4P3Yjs.createLiveblocksContext; exports.createRoomContext = _chunkKNPU4P3Yjs.createRoomContext; exports.getUmbrellaStoreForClient = _chunkKNPU4P3Yjs.getUmbrellaStoreForClient; exports.selectRoomThreads = _chunkKNPU4P3Yjs.selectRoomThreads; exports.shallow = _client.shallow; exports.useAddReaction = _chunkKNPU4P3Yjs._useAddReaction; exports.useBatch = _chunkKNPU4P3Yjs.useBatch; exports.useBroadcastEvent = _chunkKNPU4P3Yjs._useBroadcastEvent; exports.useCanRedo = _chunkKNPU4P3Yjs.useCanRedo; exports.useCanUndo = _chunkKNPU4P3Yjs.useCanUndo; exports.useClient = _chunkKNPU4P3Yjs.useClient; exports.useCommentsErrorListener = _chunkKNPU4P3Yjs.useCommentsErrorListener; exports.useCreateComment = _chunkKNPU4P3Yjs.useCreateComment; exports.useCreateThread = _chunkKNPU4P3Yjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkKNPU4P3Yjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkKNPU4P3Yjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkKNPU4P3Yjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkKNPU4P3Yjs._useDeleteThread; exports.useEditComment = _chunkKNPU4P3Yjs.useEditComment; exports.useEditThreadMetadata = _chunkKNPU4P3Yjs._useEditThreadMetadata; exports.useErrorListener = _chunkKNPU4P3Yjs.useErrorListener; exports.useEventListener = _chunkKNPU4P3Yjs._useEventListener; exports.useHistory = _chunkKNPU4P3Yjs.useHistory; exports.useHistoryVersionData = _chunkKNPU4P3Yjs.useHistoryVersionData; exports.useHistoryVersions = _chunkKNPU4P3Yjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkKNPU4P3Yjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkKNPU4P3Yjs.useInboxNotifications; exports.useIsInsideRoom = _chunkKNPU4P3Yjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkKNPU4P3Yjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkKNPU4P3Yjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkKNPU4P3Yjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkKNPU4P3Yjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkKNPU4P3Yjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkKNPU4P3Yjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkKNPU4P3Yjs._useMutation; exports.useMyPresence = _chunkKNPU4P3Yjs._useMyPresence; exports.useOther = _chunkKNPU4P3Yjs._useOther; exports.useOthers = _chunkKNPU4P3Yjs._useOthers; exports.useOthersConnectionIds = _chunkKNPU4P3Yjs.useOthersConnectionIds; exports.useOthersListener = _chunkKNPU4P3Yjs._useOthersListener; exports.useOthersMapped = _chunkKNPU4P3Yjs._useOthersMapped; exports.useRedo = _chunkKNPU4P3Yjs.useRedo; exports.useRemoveReaction = _chunkKNPU4P3Yjs.useRemoveReaction; exports.useRoom = _chunkKNPU4P3Yjs._useRoom; exports.useRoomInfo = _chunkKNPU4P3Yjs.useRoomInfo; exports.useRoomNotificationSettings = _chunkKNPU4P3Yjs.useRoomNotificationSettings; exports.useSelf = _chunkKNPU4P3Yjs._useSelf; exports.useStatus = _chunkKNPU4P3Yjs.useStatus; exports.useStorage = _chunkKNPU4P3Yjs._useStorage; exports.useStorageRoot = _chunkKNPU4P3Yjs._useStorageRoot; exports.useStorageStatus = _chunkKNPU4P3Yjs.useStorageStatus; exports.useThreadSubscription = _chunkKNPU4P3Yjs.useThreadSubscription; exports.useThreads = _chunkKNPU4P3Yjs._useThreads; exports.useUndo = _chunkKNPU4P3Yjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkKNPU4P3Yjs.useUnreadInboxNotificationsCount; exports.useUpdateMyPresence = _chunkKNPU4P3Yjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkKNPU4P3Yjs.useUpdateRoomNotificationSettings; exports.useUser = _chunkKNPU4P3Yjs._useUser; exports.useUserThreads_experimental = _chunkKNPU4P3Yjs._useUserThreads_experimental;
141
+ exports.ClientContext = _chunkTGC7HD5Fjs.ClientContext; exports.ClientSideSuspense = _chunkTGC7HD5Fjs.ClientSideSuspense; exports.CreateThreadError = _chunkTGC7HD5Fjs.CreateThreadError; exports.LiveblocksProvider = _chunkTGC7HD5Fjs.LiveblocksProvider; exports.RoomContext = _chunkTGC7HD5Fjs.RoomContext; exports.RoomProvider = _chunkTGC7HD5Fjs._RoomProvider; exports.createLiveblocksContext = _chunkTGC7HD5Fjs.createLiveblocksContext; exports.createRoomContext = _chunkTGC7HD5Fjs.createRoomContext; exports.getUmbrellaStoreForClient = _chunkTGC7HD5Fjs.getUmbrellaStoreForClient; exports.selectThreads = _chunkTGC7HD5Fjs.selectThreads; exports.shallow = _client.shallow; exports.useAddReaction = _chunkTGC7HD5Fjs._useAddReaction; exports.useBatch = _chunkTGC7HD5Fjs.useBatch; exports.useBroadcastEvent = _chunkTGC7HD5Fjs._useBroadcastEvent; exports.useCanRedo = _chunkTGC7HD5Fjs.useCanRedo; exports.useCanUndo = _chunkTGC7HD5Fjs.useCanUndo; exports.useClient = _chunkTGC7HD5Fjs.useClient; exports.useCommentsErrorListener = _chunkTGC7HD5Fjs.useCommentsErrorListener; exports.useCreateComment = _chunkTGC7HD5Fjs.useCreateComment; exports.useCreateThread = _chunkTGC7HD5Fjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkTGC7HD5Fjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkTGC7HD5Fjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkTGC7HD5Fjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkTGC7HD5Fjs._useDeleteThread; exports.useEditComment = _chunkTGC7HD5Fjs.useEditComment; exports.useEditThreadMetadata = _chunkTGC7HD5Fjs._useEditThreadMetadata; exports.useErrorListener = _chunkTGC7HD5Fjs.useErrorListener; exports.useEventListener = _chunkTGC7HD5Fjs._useEventListener; exports.useHistory = _chunkTGC7HD5Fjs.useHistory; exports.useHistoryVersionData = _chunkTGC7HD5Fjs.useHistoryVersionData; exports.useHistoryVersions = _chunkTGC7HD5Fjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkTGC7HD5Fjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkTGC7HD5Fjs.useInboxNotifications; exports.useIsInsideRoom = _chunkTGC7HD5Fjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkTGC7HD5Fjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkTGC7HD5Fjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkTGC7HD5Fjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkTGC7HD5Fjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkTGC7HD5Fjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkTGC7HD5Fjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkTGC7HD5Fjs._useMutation; exports.useMyPresence = _chunkTGC7HD5Fjs._useMyPresence; exports.useOther = _chunkTGC7HD5Fjs._useOther; exports.useOthers = _chunkTGC7HD5Fjs._useOthers; exports.useOthersConnectionIds = _chunkTGC7HD5Fjs.useOthersConnectionIds; exports.useOthersListener = _chunkTGC7HD5Fjs._useOthersListener; exports.useOthersMapped = _chunkTGC7HD5Fjs._useOthersMapped; exports.useRedo = _chunkTGC7HD5Fjs.useRedo; exports.useRemoveReaction = _chunkTGC7HD5Fjs.useRemoveReaction; exports.useRoom = _chunkTGC7HD5Fjs._useRoom; exports.useRoomInfo = _chunkTGC7HD5Fjs.useRoomInfo; exports.useRoomNotificationSettings = _chunkTGC7HD5Fjs.useRoomNotificationSettings; exports.useSelf = _chunkTGC7HD5Fjs._useSelf; exports.useStatus = _chunkTGC7HD5Fjs.useStatus; exports.useStorage = _chunkTGC7HD5Fjs._useStorage; exports.useStorageRoot = _chunkTGC7HD5Fjs._useStorageRoot; exports.useStorageStatus = _chunkTGC7HD5Fjs.useStorageStatus; exports.useThreadSubscription = _chunkTGC7HD5Fjs.useThreadSubscription; exports.useThreads = _chunkTGC7HD5Fjs._useThreads; exports.useUndo = _chunkTGC7HD5Fjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkTGC7HD5Fjs.useUnreadInboxNotificationsCount; exports.useUpdateMyPresence = _chunkTGC7HD5Fjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkTGC7HD5Fjs.useUpdateRoomNotificationSettings; exports.useUser = _chunkTGC7HD5Fjs._useUser; exports.useUserThreads_experimental = _chunkTGC7HD5Fjs._useUserThreads_experimental;
142
142
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,eAAe;AAXxB,YAAY,UAAU,aAAa,UAAU","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 createLiveblocksContext,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\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 useRoomNotificationSettings,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n useHistoryVersionData,\n} from \"./room\";\n\nexport { useCommentsErrorListener, CreateThreadError } from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useStorageStatus,\n useThreads,\n useHistoryVersions,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n\n// Private APIs (for use in react-lexical only)\nexport { getUmbrellaStoreForClient } from \"./liveblocks\";\nexport { selectRoomThreads } from \"./room\";\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,eAAe;AAXxB,YAAY,UAAU,aAAa,UAAU","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 createLiveblocksContext,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\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 useRoomNotificationSettings,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n useHistoryVersionData,\n} from \"./room\";\n\nexport { useCommentsErrorListener, CreateThreadError } from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useStorageStatus,\n useThreads,\n useHistoryVersions,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n\n// Private APIs (for use in react-lexical only)\nexport { getUmbrellaStoreForClient, selectThreads } from \"./liveblocks\";\n"]}
package/dist/index.mjs CHANGED
@@ -34,7 +34,7 @@ import {
34
34
  createLiveblocksContext,
35
35
  createRoomContext,
36
36
  getUmbrellaStoreForClient,
37
- selectRoomThreads,
37
+ selectThreads,
38
38
  useBatch,
39
39
  useCanRedo,
40
40
  useCanUndo,
@@ -66,7 +66,7 @@ import {
66
66
  useUndo,
67
67
  useUnreadInboxNotificationsCount,
68
68
  useUpdateRoomNotificationSettings
69
- } from "./chunk-OKR7ROQ5.mjs";
69
+ } from "./chunk-QC6HYSYS.mjs";
70
70
 
71
71
  // src/index.ts
72
72
  import { detectDupes } from "@liveblocks/core";
@@ -82,7 +82,7 @@ export {
82
82
  createLiveblocksContext,
83
83
  createRoomContext,
84
84
  getUmbrellaStoreForClient,
85
- selectRoomThreads,
85
+ selectThreads,
86
86
  shallow,
87
87
  _useAddReaction as useAddReaction,
88
88
  useBatch,
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.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 createLiveblocksContext,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\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 useRoomNotificationSettings,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n useHistoryVersionData,\n} from \"./room\";\n\nexport { useCommentsErrorListener, CreateThreadError } from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useStorageStatus,\n useThreads,\n useHistoryVersions,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n\n// Private APIs (for use in react-lexical only)\nexport { getUmbrellaStoreForClient } from \"./liveblocks\";\nexport { selectRoomThreads } from \"./room\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,eAAe;AAXxB,YAAY,UAAU,aAAa,UAAU;","names":[]}
1
+ {"version":3,"sources":["../src/index.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 createLiveblocksContext,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\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 useRoomNotificationSettings,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n useHistoryVersionData,\n} from \"./room\";\n\nexport { useCommentsErrorListener, CreateThreadError } from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useStorageStatus,\n useThreads,\n useHistoryVersions,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n\n// Private APIs (for use in react-lexical only)\nexport { getUmbrellaStoreForClient, selectThreads } from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,eAAe;AAXxB,YAAY,UAAU,aAAa,UAAU;","names":[]}
@@ -1,7 +1,7 @@
1
- import { JsonObject, LsonObject, BaseUserMeta, LiveObject, User, Json, RoomNotificationSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, Client as Client$1, ClientOptions, ThreadData as ThreadData$1, StorageStatus as StorageStatus$1, CommentData as CommentData$1 } from '@liveblocks/client';
1
+ import { JsonObject, LsonObject, BaseUserMeta, LiveObject, User, Json, RoomNotificationSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, ThreadData as ThreadData$1, Client as Client$1, ClientOptions, StorageStatus as StorageStatus$1, CommentData as CommentData$1 } from '@liveblocks/client';
2
2
  import * as React$1 from 'react';
3
3
  import React__default, { ReactNode, PropsWithChildren } from 'react';
4
- import { BaseMetadata, CommentBody, Patchable, StorageStatus, QueryMetadata, AsyncResultWithDataField, DRI, Resolve, InboxNotificationData, ToImmutable, ThreadData, HistoryVersion, Client, LiveblocksError, RoomEventMessage, CommentData, PartialUnless, ThreadDataWithDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, ThreadDeleteInfo, InboxNotificationDeleteInfo, DistributiveOmit, CommentUserReaction, AsyncResult, OpaqueClient, DU, DM, OpaqueRoom, DP, DS, DE } from '@liveblocks/core';
4
+ import { BaseMetadata, CommentBody, Patchable, StorageStatus, QueryMetadata, AsyncResultWithDataField, DRI, Resolve, ToImmutable, ThreadData, InboxNotificationData, HistoryVersion, Client, LiveblocksError, RoomEventMessage, CommentData, PartialUnless, ThreadDataWithDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, CommentUserReaction, ThreadDeleteInfo, InboxNotificationDeleteInfo, DistributiveOmit, AsyncResult, OpaqueClient, DU, DM, OpaqueRoom, DP, DS, DE } from '@liveblocks/core';
5
5
 
6
6
  declare type Props = {
7
7
  fallback: ReactNode;
@@ -166,7 +166,6 @@ declare type UseThreadsOptions<M extends BaseMetadata> = {
166
166
  */
167
167
  scrollOnLoad?: boolean;
168
168
  };
169
-
170
169
  declare type UserAsyncResult<T> = AsyncResultWithDataField<T, "user">;
171
170
  declare type UserAsyncSuccess<T> = Resolve<UserAsyncResult<T> & {
172
171
  readonly isLoading: false;
@@ -1219,7 +1218,12 @@ declare type UpdateNotificationSettingsOptimisticUpdate = {
1219
1218
  settings: Partial<RoomNotificationSettings$1>;
1220
1219
  };
1221
1220
  declare type QueryState = AsyncResult<undefined>;
1222
- declare type UmbrellaStoreState<M extends BaseMetadata> = Readonly<{
1221
+ /**
1222
+ * Externally observable state of the store, which will have:
1223
+ * - Optimistic updates applied
1224
+ * - All deleted threads removed from the threads list
1225
+ */
1226
+ declare type UmbrellaStoreState<M extends BaseMetadata> = {
1223
1227
  /**
1224
1228
  * Keep track of loading and error status of all the queries made by the client.
1225
1229
  * e.g. 'room-abc-{"color":"red"}' - ok
@@ -1227,20 +1231,25 @@ declare type UmbrellaStoreState<M extends BaseMetadata> = Readonly<{
1227
1231
  */
1228
1232
  queries: Record<string, QueryState>;
1229
1233
  /**
1230
- * Optimistic updates that have not been acknowledged by the server yet.
1231
- * They are applied on top of the threads in selectors.
1234
+ * All threads in a sorted array, optimistic updates applied, without deleted
1235
+ * threads.
1232
1236
  */
1233
- optimisticUpdates: readonly OptimisticUpdate<M>[];
1237
+ threads: ThreadData<M>[];
1234
1238
  /**
1235
- * Threads by ID
1236
- * e.g. `th_${string}`
1239
+ * All threads in a map, keyed by thread ID, with all optimistic updates
1240
+ * applied. Deleted threads are still in this mapping, and will have
1241
+ * a deletedAt field if so.
1237
1242
  */
1238
- threads: Record<string, ThreadDataWithDeleteInfo<M>>;
1243
+ threadsById: Record<string, ThreadDataWithDeleteInfo<M>>;
1244
+ /**
1245
+ * All inbox notifications in a sorted array, optimistic updates applied.
1246
+ */
1247
+ inboxNotifications: InboxNotificationData[];
1239
1248
  /**
1240
1249
  * Inbox notifications by ID.
1241
1250
  * e.g. `in_${string}`
1242
1251
  */
1243
- inboxNotifications: Record<string, InboxNotificationData>;
1252
+ inboxNotificationsById: Record<string, InboxNotificationData>;
1244
1253
  /**
1245
1254
  * Notification settings by room ID.
1246
1255
  * e.g. { 'room-abc': { threads: "all" },
@@ -1248,18 +1257,37 @@ declare type UmbrellaStoreState<M extends BaseMetadata> = Readonly<{
1248
1257
  * 'room-xyz': { threads: "none" },
1249
1258
  * }
1250
1259
  */
1251
- notificationSettings: Record<string, RoomNotificationSettings$1>;
1260
+ notificationSettingsByRoomId: Record<string, RoomNotificationSettings$1>;
1252
1261
  /**
1253
- * Versions per roomId
1262
+ * Versions by roomId
1254
1263
  * e.g. { 'room-abc': {versions: "all versions"}}
1255
1264
  */
1256
- versions: Record<string, HistoryVersion[]>;
1257
- }>;
1265
+ versionsByRoomId: Record<string, HistoryVersion[]>;
1266
+ };
1258
1267
  declare class UmbrellaStore<M extends BaseMetadata> {
1259
1268
  private _store;
1269
+ private _prevState;
1270
+ private _stateCached;
1260
1271
  constructor();
1261
- get(): Readonly<UmbrellaStoreState<M>>;
1262
- subscribe(callback: (state: Readonly<UmbrellaStoreState<M>>) => void): () => void;
1272
+ private get;
1273
+ getThreads(): UmbrellaStoreState<M>;
1274
+ getInboxNotifications(): UmbrellaStoreState<M>;
1275
+ getInboxNotificationsAsync(): AsyncResultWithDataField<InboxNotificationData[], "inboxNotifications">;
1276
+ getNotificationSettingsAsync(roomId: string): AsyncResultWithDataField<RoomNotificationSettings$1, "settings">;
1277
+ getVersionsAsync(roomId: string): AsyncResultWithDataField<HistoryVersion[], "versions">;
1278
+ /**
1279
+ * @private Only used by the E2E test suite.
1280
+ */
1281
+ _hasOptimisticUpdates(): boolean;
1282
+ private subscribe;
1283
+ /**
1284
+ * @private Only used by the E2E test suite.
1285
+ */
1286
+ _subscribeOptimisticUpdates(callback: () => void): () => void;
1287
+ subscribeThreads(callback: () => void): () => void;
1288
+ subscribeInboxNotifications(callback: () => void): () => void;
1289
+ subscribeNotificationSettings(callback: () => void): () => void;
1290
+ subscribeVersions(callback: () => void): () => void;
1263
1291
  private updateThreadsCache;
1264
1292
  private updateInboxNotificationsCache;
1265
1293
  private setNotificationSettings;
@@ -1303,7 +1331,13 @@ declare class UmbrellaStore<M extends BaseMetadata> {
1303
1331
  * - The thread ID in the cache was updated more recently than the optimistic
1304
1332
  * update's timestamp (if given)
1305
1333
  */
1306
- updateThread(threadId: string, optimisticUpdateId: string | null, callback: (thread: Readonly<ThreadDataWithDeleteInfo<M>>) => Readonly<ThreadDataWithDeleteInfo<M>>, updatedAt?: Date): void;
1334
+ private updateThread;
1335
+ patchThread(threadId: string, optimisticUpdateId: string | null, patch: {
1336
+ metadata?: M;
1337
+ resolved?: boolean;
1338
+ }, updatedAt: Date): void;
1339
+ addReaction(threadId: string, optimisticUpdateId: string | null, commentId: string, reaction: CommentUserReaction, createdAt: Date): void;
1340
+ removeReaction(threadId: string, optimisticUpdateId: string | null, commentId: string, emoji: string, userId: string, removedAt: Date): void;
1307
1341
  /**
1308
1342
  * Soft-deletes an existing thread by setting its `deletedAt` value,
1309
1343
  * replacing the corresponding optimistic update.
@@ -1318,6 +1352,8 @@ declare class UmbrellaStore<M extends BaseMetadata> {
1318
1352
  * updated correctly, replacing the corresponding optimistic update.
1319
1353
  */
1320
1354
  createComment(newComment: CommentData, optimisticUpdateId: string): void;
1355
+ editComment(threadId: string, optimisticUpdateId: string, editedComment: CommentData): void;
1356
+ deleteComment(threadId: string, optimisticUpdateId: string, commentId: string, deletedAt: Date): void;
1321
1357
  updateThreadAndNotification(thread: ThreadData<M>, inboxNotification?: InboxNotificationData): void;
1322
1358
  updateThreadsAndNotifications(threads: ThreadData<M>[], inboxNotifications: InboxNotificationData[], deletedThreads: ThreadDeleteInfo[], deletedInboxNotifications: InboxNotificationDeleteInfo[], queryKey?: string): void;
1323
1359
  /**
@@ -1341,6 +1377,14 @@ declare class UmbrellaStore<M extends BaseMetadata> {
1341
1377
  * @private This is a private/advanced API. Do not rely on it.
1342
1378
  */
1343
1379
  declare const ClientContext: React__default.Context<OpaqueClient | null>;
1380
+ /**
1381
+ * @private Do not rely on this internal API.
1382
+ */
1383
+ declare function selectThreads<M extends BaseMetadata$1>(state: UmbrellaStoreState<M>, options: {
1384
+ roomId: string | null;
1385
+ query?: ThreadsQuery<M>;
1386
+ orderBy: "age" | "last-update";
1387
+ }): ThreadData$1<M>[];
1344
1388
  /**
1345
1389
  * Gets or creates a unique Umbrella store for each unique client instance.
1346
1390
  *
@@ -1372,14 +1416,18 @@ declare function createLiveblocksContext<U extends BaseUserMeta = DU, M extends
1372
1416
  * @example
1373
1417
  * const { inboxNotifications, error, isLoading } = useInboxNotifications();
1374
1418
  */
1375
- declare function useInboxNotifications(): InboxNotificationsState;
1419
+ declare function useInboxNotifications(): AsyncResultWithDataField<InboxNotificationData[], "inboxNotifications">;
1376
1420
  /**
1377
1421
  * Returns the inbox notifications for the current user.
1378
1422
  *
1379
1423
  * @example
1380
1424
  * const { inboxNotifications } = useInboxNotifications();
1381
1425
  */
1382
- declare function useInboxNotificationsSuspense(): InboxNotificationsStateSuccess;
1426
+ declare function useInboxNotificationsSuspense(): {
1427
+ readonly isLoading: false;
1428
+ readonly inboxNotifications: InboxNotificationData[];
1429
+ readonly error?: undefined;
1430
+ };
1383
1431
  /**
1384
1432
  * Returns a function that marks all of the current user's inbox notifications as read.
1385
1433
  *
@@ -1418,14 +1466,18 @@ declare function useDeleteInboxNotification(): (inboxNotificationId: string) =>
1418
1466
  * @example
1419
1467
  * const { count, error, isLoading } = useUnreadInboxNotificationsCount();
1420
1468
  */
1421
- declare function useUnreadInboxNotificationsCount(): UnreadInboxNotificationsCountState;
1469
+ declare function useUnreadInboxNotificationsCount(): AsyncResultWithDataField<number, "count">;
1422
1470
  /**
1423
1471
  * Returns the number of unread inbox notifications for the current user.
1424
1472
  *
1425
1473
  * @example
1426
1474
  * const { count } = useUnreadInboxNotificationsCount();
1427
1475
  */
1428
- declare function useUnreadInboxNotificationsCountSuspense(): UnreadInboxNotificationsCountStateSuccess;
1476
+ declare function useUnreadInboxNotificationsCountSuspense(): {
1477
+ readonly isLoading: false;
1478
+ readonly count: number;
1479
+ readonly error?: undefined;
1480
+ };
1429
1481
  /**
1430
1482
  * Returns room info from a given room ID.
1431
1483
  *
@@ -1504,10 +1556,6 @@ declare const _useUserThreads_experimental: TypedBundle$1["useUserThreads_experi
1504
1556
  */
1505
1557
  declare const _useUserThreadsSuspense_experimental: TypedBundle$1["suspense"]["useUserThreads_experimental"];
1506
1558
 
1507
- /**
1508
- * @private Do not rely on this internal API.
1509
- */
1510
- declare function selectRoomThreads<M extends BaseMetadata$1>(roomId: string, state: UmbrellaStoreState<M>, options: UseThreadsOptions<M>): ThreadData$1<M>[];
1511
1559
  /**
1512
1560
  * Raw access to the React context where the RoomProvider stores the current
1513
1561
  * room. Exposed for advanced use cases only.
@@ -1515,6 +1563,7 @@ declare function selectRoomThreads<M extends BaseMetadata$1>(roomId: string, sta
1515
1563
  * @private This is a private/advanced API. Do not rely on it.
1516
1564
  */
1517
1565
  declare const RoomContext: React$1.Context<OpaqueRoom | null>;
1566
+
1518
1567
  /**
1519
1568
  * Returns the current connection status for the Room, and triggers
1520
1569
  * a re-render whenever it changes. Can be used to render a status badge.
@@ -2180,4 +2229,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
2180
2229
  */
2181
2230
  declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
2182
2231
 
2183
- export { useOthersConnectionIds as $, _useIsInsideRoom as A, useLostConnectionListener as B, ClientSideSuspense as C, useMarkThreadAsRead as D, _useMutation as E, _useMyPresence as F, _useOthersListener as G, useRedo as H, useRemoveReaction as I, _useRoom as J, useRoomNotificationSettings as K, LiveblocksProvider as L, type MutationContext as M, useStatus as N, _useStorageRoot as O, useThreadSubscription as P, useUndo as Q, RoomContext as R, _useUpdateMyPresence as S, useUpdateRoomNotificationSettings as T, type UseStorageStatusOptions as U, useHistoryVersionData as V, useCommentsErrorListener as W, CreateThreadError as X, _useOther as Y, _useOthers as Z, _useInboxNotificationThread as _, type UseThreadsOptions as a, _useOthersMapped as a0, _useSelf as a1, _useStorage as a2, useStorageStatus as a3, _useThreads as a4, _useHistoryVersions as a5, useInboxNotifications as a6, _useUserThreads_experimental as a7, useRoomInfo as a8, useUnreadInboxNotificationsCount as a9, _useUser as aa, getUmbrellaStoreForClient as ab, selectRoomThreads as ac, _useOtherSuspense as ad, _useOthersSuspense as ae, useOthersConnectionIdsSuspense as af, _useOthersMappedSuspense as ag, _useSelfSuspense as ah, _useStorageSuspense as ai, useStorageStatusSuspense as aj, _useThreadsSuspense as ak, _useHistoryVersionsSuspense as al, useInboxNotificationsSuspense as am, useRoomInfoSuspense as an, useUnreadInboxNotificationsCountSuspense as ao, _useUserSuspense as ap, _useUserThreadsSuspense_experimental as aq, ClientContext as b, createLiveblocksContext as c, useMarkAllInboxNotificationsAsRead as d, useMarkInboxNotificationAsRead as e, useDeleteAllInboxNotifications as f, useDeleteInboxNotification as g, createRoomContext as h, _RoomProvider as i, _useAddReaction as j, useBatch as k, _useBroadcastEvent as l, useCanRedo as m, useCanUndo as n, useCreateComment as o, _useCreateThread as p, useDeleteComment as q, _useDeleteThread as r, useEditComment as s, _useEditThreadMetadata as t, useClient as u, useMarkThreadAsResolved as v, useMarkThreadAsUnresolved as w, useErrorListener as x, _useEventListener as y, useHistory as z };
2232
+ export { useOthersConnectionIds as $, _useIsInsideRoom as A, useLostConnectionListener as B, ClientSideSuspense as C, useMarkThreadAsRead as D, _useMutation as E, _useMyPresence as F, _useOthersListener as G, useRedo as H, useRemoveReaction as I, _useRoom as J, useRoomNotificationSettings as K, LiveblocksProvider as L, type MutationContext as M, useStatus as N, _useStorageRoot as O, useThreadSubscription as P, useUndo as Q, RoomContext as R, _useUpdateMyPresence as S, useUpdateRoomNotificationSettings as T, type UseStorageStatusOptions as U, useHistoryVersionData as V, useCommentsErrorListener as W, CreateThreadError as X, _useOther as Y, _useOthers as Z, _useInboxNotificationThread as _, type UseThreadsOptions as a, _useOthersMapped as a0, _useSelf as a1, _useStorage as a2, useStorageStatus as a3, _useThreads as a4, _useHistoryVersions as a5, useInboxNotifications as a6, _useUserThreads_experimental as a7, useRoomInfo as a8, useUnreadInboxNotificationsCount as a9, _useUser as aa, getUmbrellaStoreForClient as ab, selectThreads as ac, _useOtherSuspense as ad, _useOthersSuspense as ae, useOthersConnectionIdsSuspense as af, _useOthersMappedSuspense as ag, _useSelfSuspense as ah, _useStorageSuspense as ai, useStorageStatusSuspense as aj, _useThreadsSuspense as ak, _useHistoryVersionsSuspense as al, useInboxNotificationsSuspense as am, useRoomInfoSuspense as an, useUnreadInboxNotificationsCountSuspense as ao, _useUserSuspense as ap, _useUserThreadsSuspense_experimental as aq, ClientContext as b, createLiveblocksContext as c, useMarkAllInboxNotificationsAsRead as d, useMarkInboxNotificationAsRead as e, useDeleteAllInboxNotifications as f, useDeleteInboxNotification as g, createRoomContext as h, _RoomProvider as i, _useAddReaction as j, useBatch as k, _useBroadcastEvent as l, useCanRedo as m, useCanUndo as n, useCreateComment as o, _useCreateThread as p, useDeleteComment as q, _useDeleteThread as r, useEditComment as s, _useEditThreadMetadata as t, useClient as u, useMarkThreadAsResolved as v, useMarkThreadAsUnresolved as w, useErrorListener as x, _useEventListener as y, useHistory as z };
@@ -1,7 +1,7 @@
1
- import { JsonObject, LsonObject, BaseUserMeta, LiveObject, User, Json, RoomNotificationSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, Client as Client$1, ClientOptions, ThreadData as ThreadData$1, StorageStatus as StorageStatus$1, CommentData as CommentData$1 } from '@liveblocks/client';
1
+ import { JsonObject, LsonObject, BaseUserMeta, LiveObject, User, Json, RoomNotificationSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, ThreadData as ThreadData$1, Client as Client$1, ClientOptions, StorageStatus as StorageStatus$1, CommentData as CommentData$1 } from '@liveblocks/client';
2
2
  import * as React$1 from 'react';
3
3
  import React__default, { ReactNode, PropsWithChildren } from 'react';
4
- import { BaseMetadata, CommentBody, Patchable, StorageStatus, QueryMetadata, AsyncResultWithDataField, DRI, Resolve, InboxNotificationData, ToImmutable, ThreadData, HistoryVersion, Client, LiveblocksError, RoomEventMessage, CommentData, PartialUnless, ThreadDataWithDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, ThreadDeleteInfo, InboxNotificationDeleteInfo, DistributiveOmit, CommentUserReaction, AsyncResult, OpaqueClient, DU, DM, OpaqueRoom, DP, DS, DE } from '@liveblocks/core';
4
+ import { BaseMetadata, CommentBody, Patchable, StorageStatus, QueryMetadata, AsyncResultWithDataField, DRI, Resolve, ToImmutable, ThreadData, InboxNotificationData, HistoryVersion, Client, LiveblocksError, RoomEventMessage, CommentData, PartialUnless, ThreadDataWithDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, CommentUserReaction, ThreadDeleteInfo, InboxNotificationDeleteInfo, DistributiveOmit, AsyncResult, OpaqueClient, DU, DM, OpaqueRoom, DP, DS, DE } from '@liveblocks/core';
5
5
 
6
6
  declare type Props = {
7
7
  fallback: ReactNode;
@@ -166,7 +166,6 @@ declare type UseThreadsOptions<M extends BaseMetadata> = {
166
166
  */
167
167
  scrollOnLoad?: boolean;
168
168
  };
169
-
170
169
  declare type UserAsyncResult<T> = AsyncResultWithDataField<T, "user">;
171
170
  declare type UserAsyncSuccess<T> = Resolve<UserAsyncResult<T> & {
172
171
  readonly isLoading: false;
@@ -1219,7 +1218,12 @@ declare type UpdateNotificationSettingsOptimisticUpdate = {
1219
1218
  settings: Partial<RoomNotificationSettings$1>;
1220
1219
  };
1221
1220
  declare type QueryState = AsyncResult<undefined>;
1222
- declare type UmbrellaStoreState<M extends BaseMetadata> = Readonly<{
1221
+ /**
1222
+ * Externally observable state of the store, which will have:
1223
+ * - Optimistic updates applied
1224
+ * - All deleted threads removed from the threads list
1225
+ */
1226
+ declare type UmbrellaStoreState<M extends BaseMetadata> = {
1223
1227
  /**
1224
1228
  * Keep track of loading and error status of all the queries made by the client.
1225
1229
  * e.g. 'room-abc-{"color":"red"}' - ok
@@ -1227,20 +1231,25 @@ declare type UmbrellaStoreState<M extends BaseMetadata> = Readonly<{
1227
1231
  */
1228
1232
  queries: Record<string, QueryState>;
1229
1233
  /**
1230
- * Optimistic updates that have not been acknowledged by the server yet.
1231
- * They are applied on top of the threads in selectors.
1234
+ * All threads in a sorted array, optimistic updates applied, without deleted
1235
+ * threads.
1232
1236
  */
1233
- optimisticUpdates: readonly OptimisticUpdate<M>[];
1237
+ threads: ThreadData<M>[];
1234
1238
  /**
1235
- * Threads by ID
1236
- * e.g. `th_${string}`
1239
+ * All threads in a map, keyed by thread ID, with all optimistic updates
1240
+ * applied. Deleted threads are still in this mapping, and will have
1241
+ * a deletedAt field if so.
1237
1242
  */
1238
- threads: Record<string, ThreadDataWithDeleteInfo<M>>;
1243
+ threadsById: Record<string, ThreadDataWithDeleteInfo<M>>;
1244
+ /**
1245
+ * All inbox notifications in a sorted array, optimistic updates applied.
1246
+ */
1247
+ inboxNotifications: InboxNotificationData[];
1239
1248
  /**
1240
1249
  * Inbox notifications by ID.
1241
1250
  * e.g. `in_${string}`
1242
1251
  */
1243
- inboxNotifications: Record<string, InboxNotificationData>;
1252
+ inboxNotificationsById: Record<string, InboxNotificationData>;
1244
1253
  /**
1245
1254
  * Notification settings by room ID.
1246
1255
  * e.g. { 'room-abc': { threads: "all" },
@@ -1248,18 +1257,37 @@ declare type UmbrellaStoreState<M extends BaseMetadata> = Readonly<{
1248
1257
  * 'room-xyz': { threads: "none" },
1249
1258
  * }
1250
1259
  */
1251
- notificationSettings: Record<string, RoomNotificationSettings$1>;
1260
+ notificationSettingsByRoomId: Record<string, RoomNotificationSettings$1>;
1252
1261
  /**
1253
- * Versions per roomId
1262
+ * Versions by roomId
1254
1263
  * e.g. { 'room-abc': {versions: "all versions"}}
1255
1264
  */
1256
- versions: Record<string, HistoryVersion[]>;
1257
- }>;
1265
+ versionsByRoomId: Record<string, HistoryVersion[]>;
1266
+ };
1258
1267
  declare class UmbrellaStore<M extends BaseMetadata> {
1259
1268
  private _store;
1269
+ private _prevState;
1270
+ private _stateCached;
1260
1271
  constructor();
1261
- get(): Readonly<UmbrellaStoreState<M>>;
1262
- subscribe(callback: (state: Readonly<UmbrellaStoreState<M>>) => void): () => void;
1272
+ private get;
1273
+ getThreads(): UmbrellaStoreState<M>;
1274
+ getInboxNotifications(): UmbrellaStoreState<M>;
1275
+ getInboxNotificationsAsync(): AsyncResultWithDataField<InboxNotificationData[], "inboxNotifications">;
1276
+ getNotificationSettingsAsync(roomId: string): AsyncResultWithDataField<RoomNotificationSettings$1, "settings">;
1277
+ getVersionsAsync(roomId: string): AsyncResultWithDataField<HistoryVersion[], "versions">;
1278
+ /**
1279
+ * @private Only used by the E2E test suite.
1280
+ */
1281
+ _hasOptimisticUpdates(): boolean;
1282
+ private subscribe;
1283
+ /**
1284
+ * @private Only used by the E2E test suite.
1285
+ */
1286
+ _subscribeOptimisticUpdates(callback: () => void): () => void;
1287
+ subscribeThreads(callback: () => void): () => void;
1288
+ subscribeInboxNotifications(callback: () => void): () => void;
1289
+ subscribeNotificationSettings(callback: () => void): () => void;
1290
+ subscribeVersions(callback: () => void): () => void;
1263
1291
  private updateThreadsCache;
1264
1292
  private updateInboxNotificationsCache;
1265
1293
  private setNotificationSettings;
@@ -1303,7 +1331,13 @@ declare class UmbrellaStore<M extends BaseMetadata> {
1303
1331
  * - The thread ID in the cache was updated more recently than the optimistic
1304
1332
  * update's timestamp (if given)
1305
1333
  */
1306
- updateThread(threadId: string, optimisticUpdateId: string | null, callback: (thread: Readonly<ThreadDataWithDeleteInfo<M>>) => Readonly<ThreadDataWithDeleteInfo<M>>, updatedAt?: Date): void;
1334
+ private updateThread;
1335
+ patchThread(threadId: string, optimisticUpdateId: string | null, patch: {
1336
+ metadata?: M;
1337
+ resolved?: boolean;
1338
+ }, updatedAt: Date): void;
1339
+ addReaction(threadId: string, optimisticUpdateId: string | null, commentId: string, reaction: CommentUserReaction, createdAt: Date): void;
1340
+ removeReaction(threadId: string, optimisticUpdateId: string | null, commentId: string, emoji: string, userId: string, removedAt: Date): void;
1307
1341
  /**
1308
1342
  * Soft-deletes an existing thread by setting its `deletedAt` value,
1309
1343
  * replacing the corresponding optimistic update.
@@ -1318,6 +1352,8 @@ declare class UmbrellaStore<M extends BaseMetadata> {
1318
1352
  * updated correctly, replacing the corresponding optimistic update.
1319
1353
  */
1320
1354
  createComment(newComment: CommentData, optimisticUpdateId: string): void;
1355
+ editComment(threadId: string, optimisticUpdateId: string, editedComment: CommentData): void;
1356
+ deleteComment(threadId: string, optimisticUpdateId: string, commentId: string, deletedAt: Date): void;
1321
1357
  updateThreadAndNotification(thread: ThreadData<M>, inboxNotification?: InboxNotificationData): void;
1322
1358
  updateThreadsAndNotifications(threads: ThreadData<M>[], inboxNotifications: InboxNotificationData[], deletedThreads: ThreadDeleteInfo[], deletedInboxNotifications: InboxNotificationDeleteInfo[], queryKey?: string): void;
1323
1359
  /**
@@ -1341,6 +1377,14 @@ declare class UmbrellaStore<M extends BaseMetadata> {
1341
1377
  * @private This is a private/advanced API. Do not rely on it.
1342
1378
  */
1343
1379
  declare const ClientContext: React__default.Context<OpaqueClient | null>;
1380
+ /**
1381
+ * @private Do not rely on this internal API.
1382
+ */
1383
+ declare function selectThreads<M extends BaseMetadata$1>(state: UmbrellaStoreState<M>, options: {
1384
+ roomId: string | null;
1385
+ query?: ThreadsQuery<M>;
1386
+ orderBy: "age" | "last-update";
1387
+ }): ThreadData$1<M>[];
1344
1388
  /**
1345
1389
  * Gets or creates a unique Umbrella store for each unique client instance.
1346
1390
  *
@@ -1372,14 +1416,18 @@ declare function createLiveblocksContext<U extends BaseUserMeta = DU, M extends
1372
1416
  * @example
1373
1417
  * const { inboxNotifications, error, isLoading } = useInboxNotifications();
1374
1418
  */
1375
- declare function useInboxNotifications(): InboxNotificationsState;
1419
+ declare function useInboxNotifications(): AsyncResultWithDataField<InboxNotificationData[], "inboxNotifications">;
1376
1420
  /**
1377
1421
  * Returns the inbox notifications for the current user.
1378
1422
  *
1379
1423
  * @example
1380
1424
  * const { inboxNotifications } = useInboxNotifications();
1381
1425
  */
1382
- declare function useInboxNotificationsSuspense(): InboxNotificationsStateSuccess;
1426
+ declare function useInboxNotificationsSuspense(): {
1427
+ readonly isLoading: false;
1428
+ readonly inboxNotifications: InboxNotificationData[];
1429
+ readonly error?: undefined;
1430
+ };
1383
1431
  /**
1384
1432
  * Returns a function that marks all of the current user's inbox notifications as read.
1385
1433
  *
@@ -1418,14 +1466,18 @@ declare function useDeleteInboxNotification(): (inboxNotificationId: string) =>
1418
1466
  * @example
1419
1467
  * const { count, error, isLoading } = useUnreadInboxNotificationsCount();
1420
1468
  */
1421
- declare function useUnreadInboxNotificationsCount(): UnreadInboxNotificationsCountState;
1469
+ declare function useUnreadInboxNotificationsCount(): AsyncResultWithDataField<number, "count">;
1422
1470
  /**
1423
1471
  * Returns the number of unread inbox notifications for the current user.
1424
1472
  *
1425
1473
  * @example
1426
1474
  * const { count } = useUnreadInboxNotificationsCount();
1427
1475
  */
1428
- declare function useUnreadInboxNotificationsCountSuspense(): UnreadInboxNotificationsCountStateSuccess;
1476
+ declare function useUnreadInboxNotificationsCountSuspense(): {
1477
+ readonly isLoading: false;
1478
+ readonly count: number;
1479
+ readonly error?: undefined;
1480
+ };
1429
1481
  /**
1430
1482
  * Returns room info from a given room ID.
1431
1483
  *
@@ -1504,10 +1556,6 @@ declare const _useUserThreads_experimental: TypedBundle$1["useUserThreads_experi
1504
1556
  */
1505
1557
  declare const _useUserThreadsSuspense_experimental: TypedBundle$1["suspense"]["useUserThreads_experimental"];
1506
1558
 
1507
- /**
1508
- * @private Do not rely on this internal API.
1509
- */
1510
- declare function selectRoomThreads<M extends BaseMetadata$1>(roomId: string, state: UmbrellaStoreState<M>, options: UseThreadsOptions<M>): ThreadData$1<M>[];
1511
1559
  /**
1512
1560
  * Raw access to the React context where the RoomProvider stores the current
1513
1561
  * room. Exposed for advanced use cases only.
@@ -1515,6 +1563,7 @@ declare function selectRoomThreads<M extends BaseMetadata$1>(roomId: string, sta
1515
1563
  * @private This is a private/advanced API. Do not rely on it.
1516
1564
  */
1517
1565
  declare const RoomContext: React$1.Context<OpaqueRoom | null>;
1566
+
1518
1567
  /**
1519
1568
  * Returns the current connection status for the Room, and triggers
1520
1569
  * a re-render whenever it changes. Can be used to render a status badge.
@@ -2180,4 +2229,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
2180
2229
  */
2181
2230
  declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
2182
2231
 
2183
- export { useOthersConnectionIds as $, _useIsInsideRoom as A, useLostConnectionListener as B, ClientSideSuspense as C, useMarkThreadAsRead as D, _useMutation as E, _useMyPresence as F, _useOthersListener as G, useRedo as H, useRemoveReaction as I, _useRoom as J, useRoomNotificationSettings as K, LiveblocksProvider as L, type MutationContext as M, useStatus as N, _useStorageRoot as O, useThreadSubscription as P, useUndo as Q, RoomContext as R, _useUpdateMyPresence as S, useUpdateRoomNotificationSettings as T, type UseStorageStatusOptions as U, useHistoryVersionData as V, useCommentsErrorListener as W, CreateThreadError as X, _useOther as Y, _useOthers as Z, _useInboxNotificationThread as _, type UseThreadsOptions as a, _useOthersMapped as a0, _useSelf as a1, _useStorage as a2, useStorageStatus as a3, _useThreads as a4, _useHistoryVersions as a5, useInboxNotifications as a6, _useUserThreads_experimental as a7, useRoomInfo as a8, useUnreadInboxNotificationsCount as a9, _useUser as aa, getUmbrellaStoreForClient as ab, selectRoomThreads as ac, _useOtherSuspense as ad, _useOthersSuspense as ae, useOthersConnectionIdsSuspense as af, _useOthersMappedSuspense as ag, _useSelfSuspense as ah, _useStorageSuspense as ai, useStorageStatusSuspense as aj, _useThreadsSuspense as ak, _useHistoryVersionsSuspense as al, useInboxNotificationsSuspense as am, useRoomInfoSuspense as an, useUnreadInboxNotificationsCountSuspense as ao, _useUserSuspense as ap, _useUserThreadsSuspense_experimental as aq, ClientContext as b, createLiveblocksContext as c, useMarkAllInboxNotificationsAsRead as d, useMarkInboxNotificationAsRead as e, useDeleteAllInboxNotifications as f, useDeleteInboxNotification as g, createRoomContext as h, _RoomProvider as i, _useAddReaction as j, useBatch as k, _useBroadcastEvent as l, useCanRedo as m, useCanUndo as n, useCreateComment as o, _useCreateThread as p, useDeleteComment as q, _useDeleteThread as r, useEditComment as s, _useEditThreadMetadata as t, useClient as u, useMarkThreadAsResolved as v, useMarkThreadAsUnresolved as w, useErrorListener as x, _useEventListener as y, useHistory as z };
2232
+ export { useOthersConnectionIds as $, _useIsInsideRoom as A, useLostConnectionListener as B, ClientSideSuspense as C, useMarkThreadAsRead as D, _useMutation as E, _useMyPresence as F, _useOthersListener as G, useRedo as H, useRemoveReaction as I, _useRoom as J, useRoomNotificationSettings as K, LiveblocksProvider as L, type MutationContext as M, useStatus as N, _useStorageRoot as O, useThreadSubscription as P, useUndo as Q, RoomContext as R, _useUpdateMyPresence as S, useUpdateRoomNotificationSettings as T, type UseStorageStatusOptions as U, useHistoryVersionData as V, useCommentsErrorListener as W, CreateThreadError as X, _useOther as Y, _useOthers as Z, _useInboxNotificationThread as _, type UseThreadsOptions as a, _useOthersMapped as a0, _useSelf as a1, _useStorage as a2, useStorageStatus as a3, _useThreads as a4, _useHistoryVersions as a5, useInboxNotifications as a6, _useUserThreads_experimental as a7, useRoomInfo as a8, useUnreadInboxNotificationsCount as a9, _useUser as aa, getUmbrellaStoreForClient as ab, selectThreads as ac, _useOtherSuspense as ad, _useOthersSuspense as ae, useOthersConnectionIdsSuspense as af, _useOthersMappedSuspense as ag, _useSelfSuspense as ah, _useStorageSuspense as ai, useStorageStatusSuspense as aj, _useThreadsSuspense as ak, _useHistoryVersionsSuspense as al, useInboxNotificationsSuspense as am, useRoomInfoSuspense as an, useUnreadInboxNotificationsCountSuspense as ao, _useUserSuspense as ap, _useUserThreadsSuspense_experimental as aq, ClientContext as b, createLiveblocksContext as c, useMarkAllInboxNotificationsAsRead as d, useMarkInboxNotificationAsRead as e, useDeleteAllInboxNotifications as f, useDeleteInboxNotification as g, createRoomContext as h, _RoomProvider as i, _useAddReaction as j, useBatch as k, _useBroadcastEvent as l, useCanRedo as m, useCanUndo as n, useCreateComment as o, _useCreateThread as p, useDeleteComment as q, _useDeleteThread as r, useEditComment as s, _useEditThreadMetadata as t, useClient as u, useMarkThreadAsResolved as v, useMarkThreadAsUnresolved as w, useErrorListener as x, _useEventListener as y, useHistory as z };
@@ -1,4 +1,4 @@
1
- export { b as ClientContext, C as ClientSideSuspense, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, U as UseStorageStatusOptions, a as UseThreadsOptions, j as useAddReaction, k as useBatch, l as useBroadcastEvent, m as useCanRedo, n as useCanUndo, u as useClient, o as useCreateComment, p as useCreateThread, f as useDeleteAllInboxNotifications, q as useDeleteComment, g as useDeleteInboxNotification, r as useDeleteThread, s as useEditComment, t as useEditThreadMetadata, x as useErrorListener, y as useEventListener, z as useHistory, al as useHistoryVersions, _ as useInboxNotificationThread, am as useInboxNotifications, A as useIsInsideRoom, B as useLostConnectionListener, d as useMarkAllInboxNotificationsAsRead, e as useMarkInboxNotificationAsRead, D as useMarkThreadAsRead, v as useMarkThreadAsResolved, w as useMarkThreadAsUnresolved, E as useMutation, F as useMyPresence, ad as useOther, ae as useOthers, af as useOthersConnectionIds, G as useOthersListener, ag as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, an as useRoomInfo, K as useRoomNotificationSettings, ah as useSelf, N as useStatus, ai as useStorage, O as useStorageRoot, aj as useStorageStatus, P as useThreadSubscription, ak as useThreads, Q as useUndo, ao as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, ap as useUser, aq as useUserThreads_experimental } from './suspense-pL0llH_6.mjs';
1
+ export { b as ClientContext, C as ClientSideSuspense, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, U as UseStorageStatusOptions, a as UseThreadsOptions, j as useAddReaction, k as useBatch, l as useBroadcastEvent, m as useCanRedo, n as useCanUndo, u as useClient, o as useCreateComment, p as useCreateThread, f as useDeleteAllInboxNotifications, q as useDeleteComment, g as useDeleteInboxNotification, r as useDeleteThread, s as useEditComment, t as useEditThreadMetadata, x as useErrorListener, y as useEventListener, z as useHistory, al as useHistoryVersions, _ as useInboxNotificationThread, am as useInboxNotifications, A as useIsInsideRoom, B as useLostConnectionListener, d as useMarkAllInboxNotificationsAsRead, e as useMarkInboxNotificationAsRead, D as useMarkThreadAsRead, v as useMarkThreadAsResolved, w as useMarkThreadAsUnresolved, E as useMutation, F as useMyPresence, ad as useOther, ae as useOthers, af as useOthersConnectionIds, G as useOthersListener, ag as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, an as useRoomInfo, K as useRoomNotificationSettings, ah as useSelf, N as useStatus, ai as useStorage, O as useStorageRoot, aj as useStorageStatus, P as useThreadSubscription, ak as useThreads, Q as useUndo, ao as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, ap as useUser, aq as useUserThreads_experimental } from './suspense-dtola__O.mjs';
2
2
  export { Json, JsonObject, shallow } from '@liveblocks/client';
3
3
  import 'react';
4
4
  import '@liveblocks/core';
@@ -1,4 +1,4 @@
1
- export { b as ClientContext, C as ClientSideSuspense, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, U as UseStorageStatusOptions, a as UseThreadsOptions, j as useAddReaction, k as useBatch, l as useBroadcastEvent, m as useCanRedo, n as useCanUndo, u as useClient, o as useCreateComment, p as useCreateThread, f as useDeleteAllInboxNotifications, q as useDeleteComment, g as useDeleteInboxNotification, r as useDeleteThread, s as useEditComment, t as useEditThreadMetadata, x as useErrorListener, y as useEventListener, z as useHistory, al as useHistoryVersions, _ as useInboxNotificationThread, am as useInboxNotifications, A as useIsInsideRoom, B as useLostConnectionListener, d as useMarkAllInboxNotificationsAsRead, e as useMarkInboxNotificationAsRead, D as useMarkThreadAsRead, v as useMarkThreadAsResolved, w as useMarkThreadAsUnresolved, E as useMutation, F as useMyPresence, ad as useOther, ae as useOthers, af as useOthersConnectionIds, G as useOthersListener, ag as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, an as useRoomInfo, K as useRoomNotificationSettings, ah as useSelf, N as useStatus, ai as useStorage, O as useStorageRoot, aj as useStorageStatus, P as useThreadSubscription, ak as useThreads, Q as useUndo, ao as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, ap as useUser, aq as useUserThreads_experimental } from './suspense-pL0llH_6.js';
1
+ export { b as ClientContext, C as ClientSideSuspense, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, U as UseStorageStatusOptions, a as UseThreadsOptions, j as useAddReaction, k as useBatch, l as useBroadcastEvent, m as useCanRedo, n as useCanUndo, u as useClient, o as useCreateComment, p as useCreateThread, f as useDeleteAllInboxNotifications, q as useDeleteComment, g as useDeleteInboxNotification, r as useDeleteThread, s as useEditComment, t as useEditThreadMetadata, x as useErrorListener, y as useEventListener, z as useHistory, al as useHistoryVersions, _ as useInboxNotificationThread, am as useInboxNotifications, A as useIsInsideRoom, B as useLostConnectionListener, d as useMarkAllInboxNotificationsAsRead, e as useMarkInboxNotificationAsRead, D as useMarkThreadAsRead, v as useMarkThreadAsResolved, w as useMarkThreadAsUnresolved, E as useMutation, F as useMyPresence, ad as useOther, ae as useOthers, af as useOthersConnectionIds, G as useOthersListener, ag as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, an as useRoomInfo, K as useRoomNotificationSettings, ah as useSelf, N as useStatus, ai as useStorage, O as useStorageRoot, aj as useStorageStatus, P as useThreadSubscription, ak as useThreads, Q as useUndo, ao as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, ap as useUser, aq as useUserThreads_experimental } from './suspense-dtola__O.js';
2
2
  export { Json, JsonObject, shallow } from '@liveblocks/client';
3
3
  import 'react';
4
4
  import '@liveblocks/core';