@liveblocks/react 2.15.0-debug1 → 2.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  // src/version.ts
2
2
  var PKG_NAME = "@liveblocks/react";
3
- var PKG_VERSION = "2.15.0-debug1";
3
+ var PKG_VERSION = "2.15.1";
4
4
  var PKG_FORMAT = "esm";
5
5
 
6
6
  // src/ClientSideSuspense.tsx
@@ -20,4 +20,4 @@ export {
20
20
  PKG_FORMAT,
21
21
  ClientSideSuspense
22
22
  };
23
- //# sourceMappingURL=chunk-A4ABDZ5E.mjs.map
23
+ //# sourceMappingURL=chunk-UX3CG7ZS.mjs.map
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/version.ts
2
2
  var PKG_NAME = "@liveblocks/react";
3
- var PKG_VERSION = "2.15.0-debug1";
3
+ var PKG_VERSION = "2.15.1";
4
4
  var PKG_FORMAT = "cjs";
5
5
 
6
6
  // src/ClientSideSuspense.tsx
@@ -20,4 +20,4 @@ function ClientSideSuspense(props) {
20
20
 
21
21
 
22
22
  exports.PKG_NAME = PKG_NAME; exports.PKG_VERSION = PKG_VERSION; exports.PKG_FORMAT = PKG_FORMAT; exports.ClientSideSuspense = ClientSideSuspense;
23
- //# sourceMappingURL=chunk-MI7M3UBZ.js.map
23
+ //# sourceMappingURL=chunk-WV5AI4AE.js.map
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { x as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, y as createLiveblocksContext, G as createRoomContext, I as useAddReaction, aq as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, z as useClient, ah as useCommentsErrorListener, 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, ag as useHistoryVersionData, ar as useHistoryVersions, _ as useInboxNotificationThread, at 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, ai as useOther, aj as useOthers, ak as useOthersConnectionIds, a6 as useOthersListener, al as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, av as useRoomInfo, as as useRoomNotificationSettings, am as useSelf, aa as useStatus, an as useStorage, ab as useStorageRoot, ao as useStorageStatus, F as useSyncStatus, ac as useThreadSubscription, ap as useThreads, ad as useUndo, aw as useUnreadInboxNotificationsCount, ae as useUpdateMyPresence, af as useUpdateRoomNotificationSettings, ax as useUser, au as useUserThreads_experimental } from './room-C_NzlTZP.mjs';
1
+ export { x as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, y as createLiveblocksContext, G as createRoomContext, I as useAddReaction, aq as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, z as useClient, ah as useCommentsErrorListener, 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, ag as useHistoryVersionData, ar as useHistoryVersions, _ as useInboxNotificationThread, at 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, ai as useOther, aj as useOthers, ak as useOthersConnectionIds, a6 as useOthersListener, al as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, av as useRoomInfo, as as useRoomNotificationSettings, am as useSelf, aa as useStatus, an as useStorage, ab as useStorageRoot, ao as useStorageStatus, F as useSyncStatus, ac as useThreadSubscription, ap as useThreads, ad as useUndo, aw as useUnreadInboxNotificationsCount, ae as useUpdateMyPresence, af as useUpdateRoomNotificationSettings, ax as useUser, au as useUserThreads_experimental } from './room-XbmI0Hoh.mjs';
2
2
  export { Json, JsonObject, shallow } from '@liveblocks/client';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { ReactNode } from 'react';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { x as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, y as createLiveblocksContext, G as createRoomContext, I as useAddReaction, aq as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, z as useClient, ah as useCommentsErrorListener, 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, ag as useHistoryVersionData, ar as useHistoryVersions, _ as useInboxNotificationThread, at 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, ai as useOther, aj as useOthers, ak as useOthersConnectionIds, a6 as useOthersListener, al as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, av as useRoomInfo, as as useRoomNotificationSettings, am as useSelf, aa as useStatus, an as useStorage, ab as useStorageRoot, ao as useStorageStatus, F as useSyncStatus, ac as useThreadSubscription, ap as useThreads, ad as useUndo, aw as useUnreadInboxNotificationsCount, ae as useUpdateMyPresence, af as useUpdateRoomNotificationSettings, ax as useUser, au as useUserThreads_experimental } from './room-C_NzlTZP.js';
1
+ export { x as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, y as createLiveblocksContext, G as createRoomContext, I as useAddReaction, aq as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, z as useClient, ah as useCommentsErrorListener, 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, ag as useHistoryVersionData, ar as useHistoryVersions, _ as useInboxNotificationThread, at 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, ai as useOther, aj as useOthers, ak as useOthersConnectionIds, a6 as useOthersListener, al as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, av as useRoomInfo, as as useRoomNotificationSettings, am as useSelf, aa as useStatus, an as useStorage, ab as useStorageRoot, ao as useStorageStatus, F as useSyncStatus, ac as useThreadSubscription, ap as useThreads, ad as useUndo, aw as useUnreadInboxNotificationsCount, ae as useUpdateMyPresence, af as useUpdateRoomNotificationSettings, ax as useUser, au as useUserThreads_experimental } from './room-XbmI0Hoh.js';
2
2
  export { Json, JsonObject, shallow } from '@liveblocks/client';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { ReactNode } from 'react';
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkMI7M3UBZjs = require('./chunk-MI7M3UBZ.js');
6
+ var _chunkWV5AI4AEjs = require('./chunk-WV5AI4AE.js');
7
7
 
8
8
 
9
9
 
@@ -67,12 +67,12 @@ var _chunkMI7M3UBZjs = require('./chunk-MI7M3UBZ.js');
67
67
 
68
68
 
69
69
 
70
- var _chunkKY7WMVMGjs = require('./chunk-KY7WMVMG.js');
70
+ var _chunkNUDMG62Pjs = require('./chunk-NUDMG62P.js');
71
71
 
72
72
  // src/index.ts
73
73
  var _core = require('@liveblocks/core');
74
74
  var _client = require('@liveblocks/client');
75
- _core.detectDupes.call(void 0, _chunkMI7M3UBZjs.PKG_NAME, _chunkMI7M3UBZjs.PKG_VERSION, _chunkMI7M3UBZjs.PKG_FORMAT);
75
+ _core.detectDupes.call(void 0, _chunkWV5AI4AEjs.PKG_NAME, _chunkWV5AI4AEjs.PKG_VERSION, _chunkWV5AI4AEjs.PKG_FORMAT);
76
76
 
77
77
 
78
78
 
@@ -138,5 +138,5 @@ _core.detectDupes.call(void 0, _chunkMI7M3UBZjs.PKG_NAME, _chunkMI7M3UBZjs.PKG_V
138
138
 
139
139
 
140
140
 
141
- exports.ClientContext = _chunkKY7WMVMGjs.ClientContext; exports.ClientSideSuspense = _chunkMI7M3UBZjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkKY7WMVMGjs.LiveblocksProvider; exports.RoomContext = _chunkKY7WMVMGjs.RoomContext; exports.RoomProvider = _chunkKY7WMVMGjs._RoomProvider; exports.createLiveblocksContext = _chunkKY7WMVMGjs.createLiveblocksContext; exports.createRoomContext = _chunkKY7WMVMGjs.createRoomContext; exports.shallow = _client.shallow; exports.useAddReaction = _chunkKY7WMVMGjs._useAddReaction; exports.useAttachmentUrl = _chunkKY7WMVMGjs.useAttachmentUrl; exports.useBatch = _chunkKY7WMVMGjs.useBatch; exports.useBroadcastEvent = _chunkKY7WMVMGjs._useBroadcastEvent; exports.useCanRedo = _chunkKY7WMVMGjs.useCanRedo; exports.useCanUndo = _chunkKY7WMVMGjs.useCanUndo; exports.useClient = _chunkKY7WMVMGjs.useClient; exports.useCommentsErrorListener = _chunkKY7WMVMGjs.useCommentsErrorListener; exports.useCreateComment = _chunkKY7WMVMGjs.useCreateComment; exports.useCreateThread = _chunkKY7WMVMGjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkKY7WMVMGjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkKY7WMVMGjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkKY7WMVMGjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkKY7WMVMGjs._useDeleteThread; exports.useEditComment = _chunkKY7WMVMGjs.useEditComment; exports.useEditThreadMetadata = _chunkKY7WMVMGjs._useEditThreadMetadata; exports.useErrorListener = _chunkKY7WMVMGjs.useErrorListener; exports.useEventListener = _chunkKY7WMVMGjs._useEventListener; exports.useHistory = _chunkKY7WMVMGjs.useHistory; exports.useHistoryVersionData = _chunkKY7WMVMGjs.useHistoryVersionData; exports.useHistoryVersions = _chunkKY7WMVMGjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkKY7WMVMGjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkKY7WMVMGjs.useInboxNotifications; exports.useIsInsideRoom = _chunkKY7WMVMGjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkKY7WMVMGjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkKY7WMVMGjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkKY7WMVMGjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkKY7WMVMGjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkKY7WMVMGjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkKY7WMVMGjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkKY7WMVMGjs._useMutation; exports.useMyPresence = _chunkKY7WMVMGjs._useMyPresence; exports.useOther = _chunkKY7WMVMGjs._useOther; exports.useOthers = _chunkKY7WMVMGjs._useOthers; exports.useOthersConnectionIds = _chunkKY7WMVMGjs.useOthersConnectionIds; exports.useOthersListener = _chunkKY7WMVMGjs._useOthersListener; exports.useOthersMapped = _chunkKY7WMVMGjs._useOthersMapped; exports.useRedo = _chunkKY7WMVMGjs.useRedo; exports.useRemoveReaction = _chunkKY7WMVMGjs.useRemoveReaction; exports.useRoom = _chunkKY7WMVMGjs._useRoom; exports.useRoomInfo = _chunkKY7WMVMGjs.useRoomInfo; exports.useRoomNotificationSettings = _chunkKY7WMVMGjs._useRoomNotificationSettings; exports.useSelf = _chunkKY7WMVMGjs._useSelf; exports.useStatus = _chunkKY7WMVMGjs.useStatus; exports.useStorage = _chunkKY7WMVMGjs._useStorage; exports.useStorageRoot = _chunkKY7WMVMGjs._useStorageRoot; exports.useStorageStatus = _chunkKY7WMVMGjs.useStorageStatus; exports.useSyncStatus = _chunkKY7WMVMGjs.useSyncStatus; exports.useThreadSubscription = _chunkKY7WMVMGjs.useThreadSubscription; exports.useThreads = _chunkKY7WMVMGjs._useThreads; exports.useUndo = _chunkKY7WMVMGjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkKY7WMVMGjs.useUnreadInboxNotificationsCount; exports.useUpdateMyPresence = _chunkKY7WMVMGjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkKY7WMVMGjs.useUpdateRoomNotificationSettings; exports.useUser = _chunkKY7WMVMGjs._useUser; exports.useUserThreads_experimental = _chunkKY7WMVMGjs._useUserThreads_experimental;
141
+ exports.ClientContext = _chunkNUDMG62Pjs.ClientContext; exports.ClientSideSuspense = _chunkWV5AI4AEjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkNUDMG62Pjs.LiveblocksProvider; exports.RoomContext = _chunkNUDMG62Pjs.RoomContext; exports.RoomProvider = _chunkNUDMG62Pjs._RoomProvider; exports.createLiveblocksContext = _chunkNUDMG62Pjs.createLiveblocksContext; exports.createRoomContext = _chunkNUDMG62Pjs.createRoomContext; exports.shallow = _client.shallow; exports.useAddReaction = _chunkNUDMG62Pjs._useAddReaction; exports.useAttachmentUrl = _chunkNUDMG62Pjs.useAttachmentUrl; exports.useBatch = _chunkNUDMG62Pjs.useBatch; exports.useBroadcastEvent = _chunkNUDMG62Pjs._useBroadcastEvent; exports.useCanRedo = _chunkNUDMG62Pjs.useCanRedo; exports.useCanUndo = _chunkNUDMG62Pjs.useCanUndo; exports.useClient = _chunkNUDMG62Pjs.useClient; exports.useCommentsErrorListener = _chunkNUDMG62Pjs.useCommentsErrorListener; exports.useCreateComment = _chunkNUDMG62Pjs.useCreateComment; exports.useCreateThread = _chunkNUDMG62Pjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkNUDMG62Pjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkNUDMG62Pjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkNUDMG62Pjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkNUDMG62Pjs._useDeleteThread; exports.useEditComment = _chunkNUDMG62Pjs.useEditComment; exports.useEditThreadMetadata = _chunkNUDMG62Pjs._useEditThreadMetadata; exports.useErrorListener = _chunkNUDMG62Pjs.useErrorListener; exports.useEventListener = _chunkNUDMG62Pjs._useEventListener; exports.useHistory = _chunkNUDMG62Pjs.useHistory; exports.useHistoryVersionData = _chunkNUDMG62Pjs.useHistoryVersionData; exports.useHistoryVersions = _chunkNUDMG62Pjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkNUDMG62Pjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkNUDMG62Pjs.useInboxNotifications; exports.useIsInsideRoom = _chunkNUDMG62Pjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkNUDMG62Pjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkNUDMG62Pjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkNUDMG62Pjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkNUDMG62Pjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkNUDMG62Pjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkNUDMG62Pjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkNUDMG62Pjs._useMutation; exports.useMyPresence = _chunkNUDMG62Pjs._useMyPresence; exports.useOther = _chunkNUDMG62Pjs._useOther; exports.useOthers = _chunkNUDMG62Pjs._useOthers; exports.useOthersConnectionIds = _chunkNUDMG62Pjs.useOthersConnectionIds; exports.useOthersListener = _chunkNUDMG62Pjs._useOthersListener; exports.useOthersMapped = _chunkNUDMG62Pjs._useOthersMapped; exports.useRedo = _chunkNUDMG62Pjs.useRedo; exports.useRemoveReaction = _chunkNUDMG62Pjs.useRemoveReaction; exports.useRoom = _chunkNUDMG62Pjs._useRoom; exports.useRoomInfo = _chunkNUDMG62Pjs.useRoomInfo; exports.useRoomNotificationSettings = _chunkNUDMG62Pjs._useRoomNotificationSettings; exports.useSelf = _chunkNUDMG62Pjs._useSelf; exports.useStatus = _chunkNUDMG62Pjs.useStatus; exports.useStorage = _chunkNUDMG62Pjs._useStorage; exports.useStorageRoot = _chunkNUDMG62Pjs._useStorageRoot; exports.useStorageStatus = _chunkNUDMG62Pjs.useStorageStatus; exports.useSyncStatus = _chunkNUDMG62Pjs.useSyncStatus; exports.useThreadSubscription = _chunkNUDMG62Pjs.useThreadSubscription; exports.useThreads = _chunkNUDMG62Pjs._useThreads; exports.useUndo = _chunkNUDMG62Pjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkNUDMG62Pjs.useUnreadInboxNotificationsCount; exports.useUpdateMyPresence = _chunkNUDMG62Pjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkNUDMG62Pjs.useUpdateRoomNotificationSettings; exports.useUser = _chunkNUDMG62Pjs._useUser; exports.useUserThreads_experimental = _chunkNUDMG62Pjs._useUserThreads_experimental;
142
142
  //# sourceMappingURL=index.js.map
package/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  PKG_FORMAT,
4
4
  PKG_NAME,
5
5
  PKG_VERSION
6
- } from "./chunk-A4ABDZ5E.mjs";
6
+ } from "./chunk-UX3CG7ZS.mjs";
7
7
  import {
8
8
  ClientContext,
9
9
  LiveblocksProvider,
@@ -67,7 +67,7 @@ import {
67
67
  useUndo,
68
68
  useUnreadInboxNotificationsCount,
69
69
  useUpdateRoomNotificationSettings
70
- } from "./chunk-UJLD6FYC.mjs";
70
+ } from "./chunk-GMKB6I6V.mjs";
71
71
 
72
72
  // src/index.ts
73
73
  import { detectDupes } from "@liveblocks/core";
@@ -3,7 +3,7 @@ import * as react from 'react';
3
3
  import { Context, PropsWithChildren, ReactNode } from 'react';
4
4
  import { JsonObject, LsonObject, BaseUserMeta, LiveObject, User, Json, RoomNotificationSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, Client as Client$1, ClientOptions, StorageStatus as StorageStatus$1, ThreadData as ThreadData$1, CommentData as CommentData$1 } from '@liveblocks/client';
5
5
  import * as _liveblocks_core from '@liveblocks/core';
6
- import { BaseMetadata, CommentBody, Patchable, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentAttachment, PartialUnless, InboxNotificationData, ToImmutable, AsyncLoading, AsyncError, ThreadData, HistoryVersion, Client, SyncStatus, LiveblocksError, RoomEventMessage, CommentData, MutableSignal, ThreadDataWithDeleteInfo, Signal, DerivedSignal, OpaqueClient, CommentUserReaction, ThreadDeleteInfo, InboxNotificationDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, DistributiveOmit, Permission, DU, DM, OpaqueRoom, TextEditorType, IYjsProvider, DP, DS, DE } from '@liveblocks/core';
6
+ import { BaseMetadata, CommentBody, Patchable, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentAttachment, PartialUnless, InboxNotificationData, ToImmutable, AsyncLoading, AsyncError, ThreadData, HistoryVersion, Client, SyncStatus, LiveblocksError, RoomEventMessage, CommentData, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, OpaqueClient, CommentUserReaction, InboxNotificationDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DM, OpaqueRoom, TextEditorType, IYjsProvider, DP, DS, DE } from '@liveblocks/core';
7
7
 
8
8
  /**
9
9
  * @private Internal API, do not rely on it.
@@ -1118,6 +1118,10 @@ declare class ThreadDB<M extends BaseMetadata> {
1118
1118
  upsert(thread: ThreadDataWithDeleteInfo<M>): void;
1119
1119
  /** Like .upsert(), except it won't update if a thread by this ID already exists. */
1120
1120
  upsertIfNewer(thread: ThreadDataWithDeleteInfo<M>): void;
1121
+ applyDelta(updates: {
1122
+ newThreads: ThreadData<M>[];
1123
+ deletedThreads: ThreadDeleteInfo[];
1124
+ }): void;
1121
1125
  /**
1122
1126
  * Marks a thread as deleted. It will no longer pop up in .findMany()
1123
1127
  * queries, but it can still be accessed via `.getEvenIfDeleted()`.
@@ -1247,12 +1251,23 @@ declare type UsablePromise<T> = Promise<T> & ({
1247
1251
  value: T;
1248
1252
  });
1249
1253
  declare type RoomId = string;
1254
+ /**
1255
+ * A lookup table (LUT) for all the history versions.
1256
+ */
1257
+ declare type VersionsLUT = Map<RoomId, Map<string, HistoryVersion>>;
1250
1258
  /**
1251
1259
  * Versions by roomId
1252
1260
  * e.g. { 'room-abc': {versions: "all versions"}}
1253
1261
  */
1254
1262
  declare type VersionsByRoomId = Record<RoomId, Record<string, HistoryVersion>>;
1255
- declare type NotificationsById = Record<string, InboxNotificationData>;
1263
+ /**
1264
+ * A lookup table (LUT) for all the inbox notifications.
1265
+ */
1266
+ declare type NotificationsLUT = Map<string, InboxNotificationData>;
1267
+ /**
1268
+ * A lookup table (LUT) for all the room notification settings.
1269
+ */
1270
+ declare type SettingsLUT = Map<RoomId, RoomNotificationSettings$1>;
1256
1271
  /**
1257
1272
  * Notification settings by room ID.
1258
1273
  * e.g. { 'room-abc': { threads: "all" },
@@ -1282,14 +1297,47 @@ declare type CleanNotifications = {
1282
1297
  */
1283
1298
  notificationsById: Record<string, InboxNotificationData>;
1284
1299
  };
1300
+ declare function createStore_forNotifications(): {
1301
+ signal: _liveblocks_core.ISignal<NotificationsLUT>;
1302
+ markAllRead: (readAt: Date) => void;
1303
+ markRead: (notificationId: string, readAt: Date) => void;
1304
+ delete: (inboxNotificationId: string) => void;
1305
+ applyDelta: (newInboxNotifications: InboxNotificationData[], deletedNotifications: InboxNotificationDeleteInfo[]) => void;
1306
+ clear: () => void;
1307
+ updateAssociatedNotification: (newComment: CommentData) => void;
1308
+ force_set: (mutationCallback: (lut: NotificationsLUT) => void | undefined | boolean) => void;
1309
+ invalidate: () => void;
1310
+ };
1311
+ declare function createStore_forRoomNotificationSettings(): {
1312
+ signal: _liveblocks_core.ISignal<SettingsLUT>;
1313
+ update: (roomId: string, settings: RoomNotificationSettings$1) => void;
1314
+ invalidate: () => void;
1315
+ };
1316
+ declare function createStore_forHistoryVersions(): {
1317
+ signal: _liveblocks_core.ISignal<VersionsLUT>;
1318
+ update: (roomId: string, versions: HistoryVersion[]) => void;
1319
+ force_set: (callback: (lut: VersionsLUT) => void | boolean) => void;
1320
+ invalidate: () => void;
1321
+ };
1322
+ declare function createStore_forPermissionHints(): {
1323
+ signal: _liveblocks_core.ISignal<PermissionHintsByRoomId>;
1324
+ update: (newHints: Record<string, Permission[]>) => void;
1325
+ invalidate: () => void;
1326
+ };
1327
+ declare function createStore_forOptimistic<M extends BaseMetadata>(client: Client<BaseUserMeta$1, M>): {
1328
+ signal: _liveblocks_core.ISignal<readonly OptimisticUpdate<M>[]>;
1329
+ add: (optimisticUpdate: DistributiveOmit<OptimisticUpdate<M>, "id">) => string;
1330
+ remove: (optimisticId: string) => void;
1331
+ invalidate: () => void;
1332
+ };
1285
1333
  declare class UmbrellaStore<M extends BaseMetadata> {
1286
1334
  #private;
1287
- readonly baseThreadsDB: ThreadDB<M>;
1288
- readonly baseNotificationsById: Signal<NotificationsById>;
1289
- readonly baseSettingsByRoomId: Signal<SettingsByRoomId>;
1290
- readonly optimisticUpdates: Signal<readonly OptimisticUpdate<M>[]>;
1291
- readonly baseVersionsByRoomId: Signal<VersionsByRoomId>;
1292
- readonly permissionHintsByRoomId: Signal<PermissionHintsByRoomId>;
1335
+ readonly threads: ThreadDB<M>;
1336
+ readonly notifications: ReturnType<typeof createStore_forNotifications>;
1337
+ readonly roomNotificationSettings: ReturnType<typeof createStore_forRoomNotificationSettings>;
1338
+ readonly historyVersions: ReturnType<typeof createStore_forHistoryVersions>;
1339
+ readonly permissionHints: ReturnType<typeof createStore_forPermissionHints>;
1340
+ readonly optimisticUpdates: ReturnType<typeof createStore_forOptimistic<M>>;
1293
1341
  readonly outputs: {
1294
1342
  readonly threadifications: DerivedSignal<CleanThreadifications<M>>;
1295
1343
  readonly threads: DerivedSignal<CleanThreads<M>>;
@@ -1322,67 +1370,58 @@ declare class UmbrellaStore<M extends BaseMetadata> {
1322
1370
  * Updates an existing inbox notification with a new value, replacing the
1323
1371
  * corresponding optimistic update.
1324
1372
  *
1325
- * This will not update anything if the inbox notification ID isn't found in
1326
- * the cache.
1327
- */
1328
- updateInboxNotification(inboxNotificationId: string, optimisticUpdateId: string, callback: (notification: Readonly<InboxNotificationData>) => Readonly<InboxNotificationData>): void;
1329
- /**
1330
- * Updates *all* inbox notifications by running a mapper function over all of
1331
- * them, replacing the corresponding optimistic update.
1373
+ * This will not update anything if the inbox notification ID isn't found.
1332
1374
  */
1333
- updateAllInboxNotifications(optimisticUpdateId: string, mapFn: (notification: Readonly<InboxNotificationData>) => Readonly<InboxNotificationData>): void;
1375
+ markInboxNotificationRead(inboxNotificationId: string, readAt: Date, optimisticId: string): void;
1376
+ markAllInboxNotificationsRead(optimisticId: string, readAt: Date): void;
1334
1377
  /**
1335
1378
  * Deletes an existing inbox notification, replacing the corresponding
1336
1379
  * optimistic update.
1337
1380
  */
1338
- deleteInboxNotification(inboxNotificationId: string, optimisticUpdateId: string): void;
1381
+ deleteInboxNotification(inboxNotificationId: string, optimisticId: string): void;
1339
1382
  /**
1340
1383
  * Deletes *all* inbox notifications, replacing the corresponding optimistic
1341
1384
  * update.
1342
1385
  */
1343
- deleteAllInboxNotifications(optimisticUpdateId: string): void;
1386
+ deleteAllInboxNotifications(optimisticId: string): void;
1344
1387
  /**
1345
1388
  * Creates an new thread, replacing the corresponding optimistic update.
1346
1389
  */
1347
- createThread(optimisticUpdateId: string, thread: Readonly<ThreadDataWithDeleteInfo<M>>): void;
1348
- patchThread(threadId: string, optimisticUpdateId: string | null, patch: {
1390
+ createThread(optimisticId: string, thread: Readonly<ThreadDataWithDeleteInfo<M>>): void;
1391
+ patchThread(threadId: string, optimisticId: string | null, patch: {
1349
1392
  metadata?: M;
1350
1393
  resolved?: boolean;
1351
1394
  }, updatedAt: Date): void;
1352
- addReaction(threadId: string, optimisticUpdateId: string | null, commentId: string, reaction: CommentUserReaction, createdAt: Date): void;
1353
- removeReaction(threadId: string, optimisticUpdateId: string | null, commentId: string, emoji: string, userId: string, removedAt: Date): void;
1395
+ addReaction(threadId: string, optimisticId: string | null, commentId: string, reaction: CommentUserReaction, createdAt: Date): void;
1396
+ removeReaction(threadId: string, optimisticId: string | null, commentId: string, emoji: string, userId: string, removedAt: Date): void;
1354
1397
  /**
1355
1398
  * Soft-deletes an existing thread by setting its `deletedAt` value,
1356
1399
  * replacing the corresponding optimistic update.
1357
1400
  *
1358
1401
  * This will not update anything if:
1359
- * - The thread ID isn't found in the cache; or
1360
- * - The thread ID was already deleted from the cache
1402
+ * - The thread ID isn't found; or
1403
+ * - The thread ID was already deleted
1361
1404
  */
1362
- deleteThread(threadId: string, optimisticUpdateId: string | null): void;
1405
+ deleteThread(threadId: string, optimisticId: string | null): void;
1363
1406
  /**
1364
1407
  * Creates an existing comment and ensures the associated notification is
1365
1408
  * updated correctly, replacing the corresponding optimistic update.
1366
1409
  */
1367
- createComment(newComment: CommentData, optimisticUpdateId: string): void;
1368
- editComment(threadId: string, optimisticUpdateId: string, editedComment: CommentData): void;
1369
- deleteComment(threadId: string, optimisticUpdateId: string, commentId: string, deletedAt: Date): void;
1370
- updateThreadAndNotification(thread: ThreadData<M>, inboxNotification?: InboxNotificationData): void;
1371
- updateThreadsAndNotifications(threads: ThreadData<M>[], inboxNotifications: InboxNotificationData[]): void;
1372
- updateThreadsAndNotifications(threads: ThreadData<M>[], inboxNotifications: InboxNotificationData[], deletedThreads: ThreadDeleteInfo[], deletedInboxNotifications: InboxNotificationDeleteInfo[]): void;
1410
+ createComment(newComment: CommentData, optimisticId: string): void;
1411
+ editComment(threadId: string, optimisticId: string, editedComment: CommentData): void;
1412
+ deleteComment(threadId: string, optimisticId: string, commentId: string, deletedAt: Date): void;
1413
+ updateThreadifications(threads: ThreadData<M>[], notifications: InboxNotificationData[], deletedThreads?: ThreadDeleteInfo[], deletedNotifications?: InboxNotificationDeleteInfo[]): void;
1373
1414
  /**
1374
1415
  * Updates existing notification setting for a room with a new value,
1375
1416
  * replacing the corresponding optimistic update.
1376
1417
  */
1377
- updateRoomNotificationSettings_confirmOptimisticUpdate(roomId: string, optimisticUpdateId: string, settings: Readonly<RoomNotificationSettings$1>): void;
1378
- addOptimisticUpdate(optimisticUpdate: DistributiveOmit<OptimisticUpdate<M>, "id">): string;
1379
- removeOptimisticUpdate(optimisticUpdateId: string): void;
1418
+ updateRoomNotificationSettings(roomId: string, optimisticId: string, settings: Readonly<RoomNotificationSettings$1>): void;
1380
1419
  fetchNotificationsDeltaUpdate(signal: AbortSignal): Promise<void>;
1381
1420
  waitUntilNotificationsLoaded(): UsablePromise<void>;
1382
1421
  waitUntilRoomThreadsLoaded(roomId: string, query: ThreadsQuery<M> | undefined): UsablePromise<void>;
1383
1422
  fetchRoomThreadsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
1384
1423
  waitUntilUserThreadsLoaded(query: ThreadsQuery<M> | undefined): UsablePromise<void>;
1385
- private invalidateEntireStore;
1424
+ invalidateEntireStore(): void;
1386
1425
  fetchUserThreadsDeltaUpdate(signal: AbortSignal): Promise<void>;
1387
1426
  waitUntilRoomVersionsLoaded(roomId: string): UsablePromise<void>;
1388
1427
  fetchRoomVersionsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
@@ -3,7 +3,7 @@ import * as react from 'react';
3
3
  import { Context, PropsWithChildren, ReactNode } from 'react';
4
4
  import { JsonObject, LsonObject, BaseUserMeta, LiveObject, User, Json, RoomNotificationSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, Client as Client$1, ClientOptions, StorageStatus as StorageStatus$1, ThreadData as ThreadData$1, CommentData as CommentData$1 } from '@liveblocks/client';
5
5
  import * as _liveblocks_core from '@liveblocks/core';
6
- import { BaseMetadata, CommentBody, Patchable, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentAttachment, PartialUnless, InboxNotificationData, ToImmutable, AsyncLoading, AsyncError, ThreadData, HistoryVersion, Client, SyncStatus, LiveblocksError, RoomEventMessage, CommentData, MutableSignal, ThreadDataWithDeleteInfo, Signal, DerivedSignal, OpaqueClient, CommentUserReaction, ThreadDeleteInfo, InboxNotificationDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, DistributiveOmit, Permission, DU, DM, OpaqueRoom, TextEditorType, IYjsProvider, DP, DS, DE } from '@liveblocks/core';
6
+ import { BaseMetadata, CommentBody, Patchable, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentAttachment, PartialUnless, InboxNotificationData, ToImmutable, AsyncLoading, AsyncError, ThreadData, HistoryVersion, Client, SyncStatus, LiveblocksError, RoomEventMessage, CommentData, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, OpaqueClient, CommentUserReaction, InboxNotificationDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DM, OpaqueRoom, TextEditorType, IYjsProvider, DP, DS, DE } from '@liveblocks/core';
7
7
 
8
8
  /**
9
9
  * @private Internal API, do not rely on it.
@@ -1118,6 +1118,10 @@ declare class ThreadDB<M extends BaseMetadata> {
1118
1118
  upsert(thread: ThreadDataWithDeleteInfo<M>): void;
1119
1119
  /** Like .upsert(), except it won't update if a thread by this ID already exists. */
1120
1120
  upsertIfNewer(thread: ThreadDataWithDeleteInfo<M>): void;
1121
+ applyDelta(updates: {
1122
+ newThreads: ThreadData<M>[];
1123
+ deletedThreads: ThreadDeleteInfo[];
1124
+ }): void;
1121
1125
  /**
1122
1126
  * Marks a thread as deleted. It will no longer pop up in .findMany()
1123
1127
  * queries, but it can still be accessed via `.getEvenIfDeleted()`.
@@ -1247,12 +1251,23 @@ declare type UsablePromise<T> = Promise<T> & ({
1247
1251
  value: T;
1248
1252
  });
1249
1253
  declare type RoomId = string;
1254
+ /**
1255
+ * A lookup table (LUT) for all the history versions.
1256
+ */
1257
+ declare type VersionsLUT = Map<RoomId, Map<string, HistoryVersion>>;
1250
1258
  /**
1251
1259
  * Versions by roomId
1252
1260
  * e.g. { 'room-abc': {versions: "all versions"}}
1253
1261
  */
1254
1262
  declare type VersionsByRoomId = Record<RoomId, Record<string, HistoryVersion>>;
1255
- declare type NotificationsById = Record<string, InboxNotificationData>;
1263
+ /**
1264
+ * A lookup table (LUT) for all the inbox notifications.
1265
+ */
1266
+ declare type NotificationsLUT = Map<string, InboxNotificationData>;
1267
+ /**
1268
+ * A lookup table (LUT) for all the room notification settings.
1269
+ */
1270
+ declare type SettingsLUT = Map<RoomId, RoomNotificationSettings$1>;
1256
1271
  /**
1257
1272
  * Notification settings by room ID.
1258
1273
  * e.g. { 'room-abc': { threads: "all" },
@@ -1282,14 +1297,47 @@ declare type CleanNotifications = {
1282
1297
  */
1283
1298
  notificationsById: Record<string, InboxNotificationData>;
1284
1299
  };
1300
+ declare function createStore_forNotifications(): {
1301
+ signal: _liveblocks_core.ISignal<NotificationsLUT>;
1302
+ markAllRead: (readAt: Date) => void;
1303
+ markRead: (notificationId: string, readAt: Date) => void;
1304
+ delete: (inboxNotificationId: string) => void;
1305
+ applyDelta: (newInboxNotifications: InboxNotificationData[], deletedNotifications: InboxNotificationDeleteInfo[]) => void;
1306
+ clear: () => void;
1307
+ updateAssociatedNotification: (newComment: CommentData) => void;
1308
+ force_set: (mutationCallback: (lut: NotificationsLUT) => void | undefined | boolean) => void;
1309
+ invalidate: () => void;
1310
+ };
1311
+ declare function createStore_forRoomNotificationSettings(): {
1312
+ signal: _liveblocks_core.ISignal<SettingsLUT>;
1313
+ update: (roomId: string, settings: RoomNotificationSettings$1) => void;
1314
+ invalidate: () => void;
1315
+ };
1316
+ declare function createStore_forHistoryVersions(): {
1317
+ signal: _liveblocks_core.ISignal<VersionsLUT>;
1318
+ update: (roomId: string, versions: HistoryVersion[]) => void;
1319
+ force_set: (callback: (lut: VersionsLUT) => void | boolean) => void;
1320
+ invalidate: () => void;
1321
+ };
1322
+ declare function createStore_forPermissionHints(): {
1323
+ signal: _liveblocks_core.ISignal<PermissionHintsByRoomId>;
1324
+ update: (newHints: Record<string, Permission[]>) => void;
1325
+ invalidate: () => void;
1326
+ };
1327
+ declare function createStore_forOptimistic<M extends BaseMetadata>(client: Client<BaseUserMeta$1, M>): {
1328
+ signal: _liveblocks_core.ISignal<readonly OptimisticUpdate<M>[]>;
1329
+ add: (optimisticUpdate: DistributiveOmit<OptimisticUpdate<M>, "id">) => string;
1330
+ remove: (optimisticId: string) => void;
1331
+ invalidate: () => void;
1332
+ };
1285
1333
  declare class UmbrellaStore<M extends BaseMetadata> {
1286
1334
  #private;
1287
- readonly baseThreadsDB: ThreadDB<M>;
1288
- readonly baseNotificationsById: Signal<NotificationsById>;
1289
- readonly baseSettingsByRoomId: Signal<SettingsByRoomId>;
1290
- readonly optimisticUpdates: Signal<readonly OptimisticUpdate<M>[]>;
1291
- readonly baseVersionsByRoomId: Signal<VersionsByRoomId>;
1292
- readonly permissionHintsByRoomId: Signal<PermissionHintsByRoomId>;
1335
+ readonly threads: ThreadDB<M>;
1336
+ readonly notifications: ReturnType<typeof createStore_forNotifications>;
1337
+ readonly roomNotificationSettings: ReturnType<typeof createStore_forRoomNotificationSettings>;
1338
+ readonly historyVersions: ReturnType<typeof createStore_forHistoryVersions>;
1339
+ readonly permissionHints: ReturnType<typeof createStore_forPermissionHints>;
1340
+ readonly optimisticUpdates: ReturnType<typeof createStore_forOptimistic<M>>;
1293
1341
  readonly outputs: {
1294
1342
  readonly threadifications: DerivedSignal<CleanThreadifications<M>>;
1295
1343
  readonly threads: DerivedSignal<CleanThreads<M>>;
@@ -1322,67 +1370,58 @@ declare class UmbrellaStore<M extends BaseMetadata> {
1322
1370
  * Updates an existing inbox notification with a new value, replacing the
1323
1371
  * corresponding optimistic update.
1324
1372
  *
1325
- * This will not update anything if the inbox notification ID isn't found in
1326
- * the cache.
1327
- */
1328
- updateInboxNotification(inboxNotificationId: string, optimisticUpdateId: string, callback: (notification: Readonly<InboxNotificationData>) => Readonly<InboxNotificationData>): void;
1329
- /**
1330
- * Updates *all* inbox notifications by running a mapper function over all of
1331
- * them, replacing the corresponding optimistic update.
1373
+ * This will not update anything if the inbox notification ID isn't found.
1332
1374
  */
1333
- updateAllInboxNotifications(optimisticUpdateId: string, mapFn: (notification: Readonly<InboxNotificationData>) => Readonly<InboxNotificationData>): void;
1375
+ markInboxNotificationRead(inboxNotificationId: string, readAt: Date, optimisticId: string): void;
1376
+ markAllInboxNotificationsRead(optimisticId: string, readAt: Date): void;
1334
1377
  /**
1335
1378
  * Deletes an existing inbox notification, replacing the corresponding
1336
1379
  * optimistic update.
1337
1380
  */
1338
- deleteInboxNotification(inboxNotificationId: string, optimisticUpdateId: string): void;
1381
+ deleteInboxNotification(inboxNotificationId: string, optimisticId: string): void;
1339
1382
  /**
1340
1383
  * Deletes *all* inbox notifications, replacing the corresponding optimistic
1341
1384
  * update.
1342
1385
  */
1343
- deleteAllInboxNotifications(optimisticUpdateId: string): void;
1386
+ deleteAllInboxNotifications(optimisticId: string): void;
1344
1387
  /**
1345
1388
  * Creates an new thread, replacing the corresponding optimistic update.
1346
1389
  */
1347
- createThread(optimisticUpdateId: string, thread: Readonly<ThreadDataWithDeleteInfo<M>>): void;
1348
- patchThread(threadId: string, optimisticUpdateId: string | null, patch: {
1390
+ createThread(optimisticId: string, thread: Readonly<ThreadDataWithDeleteInfo<M>>): void;
1391
+ patchThread(threadId: string, optimisticId: string | null, patch: {
1349
1392
  metadata?: M;
1350
1393
  resolved?: boolean;
1351
1394
  }, updatedAt: Date): void;
1352
- addReaction(threadId: string, optimisticUpdateId: string | null, commentId: string, reaction: CommentUserReaction, createdAt: Date): void;
1353
- removeReaction(threadId: string, optimisticUpdateId: string | null, commentId: string, emoji: string, userId: string, removedAt: Date): void;
1395
+ addReaction(threadId: string, optimisticId: string | null, commentId: string, reaction: CommentUserReaction, createdAt: Date): void;
1396
+ removeReaction(threadId: string, optimisticId: string | null, commentId: string, emoji: string, userId: string, removedAt: Date): void;
1354
1397
  /**
1355
1398
  * Soft-deletes an existing thread by setting its `deletedAt` value,
1356
1399
  * replacing the corresponding optimistic update.
1357
1400
  *
1358
1401
  * This will not update anything if:
1359
- * - The thread ID isn't found in the cache; or
1360
- * - The thread ID was already deleted from the cache
1402
+ * - The thread ID isn't found; or
1403
+ * - The thread ID was already deleted
1361
1404
  */
1362
- deleteThread(threadId: string, optimisticUpdateId: string | null): void;
1405
+ deleteThread(threadId: string, optimisticId: string | null): void;
1363
1406
  /**
1364
1407
  * Creates an existing comment and ensures the associated notification is
1365
1408
  * updated correctly, replacing the corresponding optimistic update.
1366
1409
  */
1367
- createComment(newComment: CommentData, optimisticUpdateId: string): void;
1368
- editComment(threadId: string, optimisticUpdateId: string, editedComment: CommentData): void;
1369
- deleteComment(threadId: string, optimisticUpdateId: string, commentId: string, deletedAt: Date): void;
1370
- updateThreadAndNotification(thread: ThreadData<M>, inboxNotification?: InboxNotificationData): void;
1371
- updateThreadsAndNotifications(threads: ThreadData<M>[], inboxNotifications: InboxNotificationData[]): void;
1372
- updateThreadsAndNotifications(threads: ThreadData<M>[], inboxNotifications: InboxNotificationData[], deletedThreads: ThreadDeleteInfo[], deletedInboxNotifications: InboxNotificationDeleteInfo[]): void;
1410
+ createComment(newComment: CommentData, optimisticId: string): void;
1411
+ editComment(threadId: string, optimisticId: string, editedComment: CommentData): void;
1412
+ deleteComment(threadId: string, optimisticId: string, commentId: string, deletedAt: Date): void;
1413
+ updateThreadifications(threads: ThreadData<M>[], notifications: InboxNotificationData[], deletedThreads?: ThreadDeleteInfo[], deletedNotifications?: InboxNotificationDeleteInfo[]): void;
1373
1414
  /**
1374
1415
  * Updates existing notification setting for a room with a new value,
1375
1416
  * replacing the corresponding optimistic update.
1376
1417
  */
1377
- updateRoomNotificationSettings_confirmOptimisticUpdate(roomId: string, optimisticUpdateId: string, settings: Readonly<RoomNotificationSettings$1>): void;
1378
- addOptimisticUpdate(optimisticUpdate: DistributiveOmit<OptimisticUpdate<M>, "id">): string;
1379
- removeOptimisticUpdate(optimisticUpdateId: string): void;
1418
+ updateRoomNotificationSettings(roomId: string, optimisticId: string, settings: Readonly<RoomNotificationSettings$1>): void;
1380
1419
  fetchNotificationsDeltaUpdate(signal: AbortSignal): Promise<void>;
1381
1420
  waitUntilNotificationsLoaded(): UsablePromise<void>;
1382
1421
  waitUntilRoomThreadsLoaded(roomId: string, query: ThreadsQuery<M> | undefined): UsablePromise<void>;
1383
1422
  fetchRoomThreadsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
1384
1423
  waitUntilUserThreadsLoaded(query: ThreadsQuery<M> | undefined): UsablePromise<void>;
1385
- private invalidateEntireStore;
1424
+ invalidateEntireStore(): void;
1386
1425
  fetchUserThreadsDeltaUpdate(signal: AbortSignal): Promise<void>;
1387
1426
  waitUntilRoomVersionsLoaded(roomId: string): UsablePromise<void>;
1388
1427
  fetchRoomVersionsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
@@ -1,5 +1,5 @@
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, aG as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, z as useClient, P as useCreateComment, Q as useCreateThread, A as useDeleteAllInboxNotifications, S as useDeleteComment, B as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, Z as useErrorListener, $ as useEventListener, a0 as useHistory, aH as useHistoryVersions, _ as useInboxNotificationThread, aJ as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, ay as useOther, az as useOthers, aA as useOthersConnectionIds, a6 as useOthersListener, aB as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, aK as useRoomInfo, aI as useRoomNotificationSettings, aC as useSelf, aa as useStatus, aD as useStorage, ab as useStorageRoot, aE as useStorageStatus, F as useSyncStatus, ac as useThreadSubscription, aF as useThreads, ad as useUndo, aL as useUnreadInboxNotificationsCount, ae as useUpdateMyPresence, af as useUpdateRoomNotificationSettings, aM as useUser, aN as useUserThreads_experimental } from './room-C_NzlTZP.mjs';
2
+ export { x as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, I as useAddReaction, aG as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, z as useClient, P as useCreateComment, Q as useCreateThread, A as useDeleteAllInboxNotifications, S as useDeleteComment, B as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, Z as useErrorListener, $ as useEventListener, a0 as useHistory, aH as useHistoryVersions, _ as useInboxNotificationThread, aJ as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, ay as useOther, az as useOthers, aA as useOthersConnectionIds, a6 as useOthersListener, aB as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, aK as useRoomInfo, aI as useRoomNotificationSettings, aC as useSelf, aa as useStatus, aD as useStorage, ab as useStorageRoot, aE as useStorageStatus, F as useSyncStatus, ac as useThreadSubscription, aF as useThreads, ad as useUndo, aL as useUnreadInboxNotificationsCount, ae as useUpdateMyPresence, af as useUpdateRoomNotificationSettings, aM as useUser, aN as useUserThreads_experimental } from './room-XbmI0Hoh.mjs';
3
3
  export { Json, JsonObject, shallow } from '@liveblocks/client';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react';
@@ -1,5 +1,5 @@
1
1
  export { ClientSideSuspense } from './index.js';
2
- export { x as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, I as useAddReaction, aG as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, z as useClient, P as useCreateComment, Q as useCreateThread, A as useDeleteAllInboxNotifications, S as useDeleteComment, B as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, Z as useErrorListener, $ as useEventListener, a0 as useHistory, aH as useHistoryVersions, _ as useInboxNotificationThread, aJ as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, ay as useOther, az as useOthers, aA as useOthersConnectionIds, a6 as useOthersListener, aB as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, aK as useRoomInfo, aI as useRoomNotificationSettings, aC as useSelf, aa as useStatus, aD as useStorage, ab as useStorageRoot, aE as useStorageStatus, F as useSyncStatus, ac as useThreadSubscription, aF as useThreads, ad as useUndo, aL as useUnreadInboxNotificationsCount, ae as useUpdateMyPresence, af as useUpdateRoomNotificationSettings, aM as useUser, aN as useUserThreads_experimental } from './room-C_NzlTZP.js';
2
+ export { x as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, I as useAddReaction, aG as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, z as useClient, P as useCreateComment, Q as useCreateThread, A as useDeleteAllInboxNotifications, S as useDeleteComment, B as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, Z as useErrorListener, $ as useEventListener, a0 as useHistory, aH as useHistoryVersions, _ as useInboxNotificationThread, aJ as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, ay as useOther, az as useOthers, aA as useOthersConnectionIds, a6 as useOthersListener, aB as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, aK as useRoomInfo, aI as useRoomNotificationSettings, aC as useSelf, aa as useStatus, aD as useStorage, ab as useStorageRoot, aE as useStorageStatus, F as useSyncStatus, ac as useThreadSubscription, aF as useThreads, ad as useUndo, aL as useUnreadInboxNotificationsCount, ae as useUpdateMyPresence, af as useUpdateRoomNotificationSettings, aM as useUser, aN as useUserThreads_experimental } from './room-XbmI0Hoh.js';
3
3
  export { Json, JsonObject, shallow } from '@liveblocks/client';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react';
package/dist/suspense.js CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkMI7M3UBZjs = require('./chunk-MI7M3UBZ.js');
6
+ var _chunkWV5AI4AEjs = require('./chunk-WV5AI4AE.js');
7
7
 
8
8
 
9
9
 
@@ -63,12 +63,12 @@ var _chunkMI7M3UBZjs = require('./chunk-MI7M3UBZ.js');
63
63
 
64
64
 
65
65
 
66
- var _chunkKY7WMVMGjs = require('./chunk-KY7WMVMG.js');
66
+ var _chunkNUDMG62Pjs = require('./chunk-NUDMG62P.js');
67
67
 
68
68
  // src/suspense.ts
69
69
  var _core = require('@liveblocks/core');
70
70
  var _client = require('@liveblocks/client');
71
- _core.detectDupes.call(void 0, _chunkMI7M3UBZjs.PKG_NAME, _chunkMI7M3UBZjs.PKG_VERSION, _chunkMI7M3UBZjs.PKG_FORMAT);
71
+ _core.detectDupes.call(void 0, _chunkWV5AI4AEjs.PKG_NAME, _chunkWV5AI4AEjs.PKG_VERSION, _chunkWV5AI4AEjs.PKG_FORMAT);
72
72
 
73
73
 
74
74
 
@@ -130,5 +130,5 @@ _core.detectDupes.call(void 0, _chunkMI7M3UBZjs.PKG_NAME, _chunkMI7M3UBZjs.PKG_V
130
130
 
131
131
 
132
132
 
133
- exports.ClientContext = _chunkKY7WMVMGjs.ClientContext; exports.ClientSideSuspense = _chunkMI7M3UBZjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkKY7WMVMGjs.LiveblocksProvider; exports.RoomContext = _chunkKY7WMVMGjs.RoomContext; exports.RoomProvider = _chunkKY7WMVMGjs._RoomProvider; exports.shallow = _client.shallow; exports.useAddReaction = _chunkKY7WMVMGjs._useAddReaction; exports.useAttachmentUrl = _chunkKY7WMVMGjs.useAttachmentUrlSuspense; exports.useBatch = _chunkKY7WMVMGjs.useBatch; exports.useBroadcastEvent = _chunkKY7WMVMGjs._useBroadcastEvent; exports.useCanRedo = _chunkKY7WMVMGjs.useCanRedo; exports.useCanUndo = _chunkKY7WMVMGjs.useCanUndo; exports.useClient = _chunkKY7WMVMGjs.useClient; exports.useCreateComment = _chunkKY7WMVMGjs.useCreateComment; exports.useCreateThread = _chunkKY7WMVMGjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkKY7WMVMGjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkKY7WMVMGjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkKY7WMVMGjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkKY7WMVMGjs._useDeleteThread; exports.useEditComment = _chunkKY7WMVMGjs.useEditComment; exports.useEditThreadMetadata = _chunkKY7WMVMGjs._useEditThreadMetadata; exports.useErrorListener = _chunkKY7WMVMGjs.useErrorListener; exports.useEventListener = _chunkKY7WMVMGjs._useEventListener; exports.useHistory = _chunkKY7WMVMGjs.useHistory; exports.useHistoryVersions = _chunkKY7WMVMGjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkKY7WMVMGjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkKY7WMVMGjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkKY7WMVMGjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkKY7WMVMGjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkKY7WMVMGjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkKY7WMVMGjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkKY7WMVMGjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkKY7WMVMGjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkKY7WMVMGjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkKY7WMVMGjs._useMutation; exports.useMyPresence = _chunkKY7WMVMGjs._useMyPresence; exports.useOther = _chunkKY7WMVMGjs._useOtherSuspense; exports.useOthers = _chunkKY7WMVMGjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkKY7WMVMGjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkKY7WMVMGjs._useOthersListener; exports.useOthersMapped = _chunkKY7WMVMGjs._useOthersMappedSuspense; exports.useRedo = _chunkKY7WMVMGjs.useRedo; exports.useRemoveReaction = _chunkKY7WMVMGjs.useRemoveReaction; exports.useRoom = _chunkKY7WMVMGjs._useRoom; exports.useRoomInfo = _chunkKY7WMVMGjs.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunkKY7WMVMGjs._useRoomNotificationSettingsSuspense; exports.useSelf = _chunkKY7WMVMGjs._useSelfSuspense; exports.useStatus = _chunkKY7WMVMGjs.useStatus; exports.useStorage = _chunkKY7WMVMGjs._useStorageSuspense; exports.useStorageRoot = _chunkKY7WMVMGjs._useStorageRoot; exports.useStorageStatus = _chunkKY7WMVMGjs.useStorageStatusSuspense; exports.useSyncStatus = _chunkKY7WMVMGjs.useSyncStatus; exports.useThreadSubscription = _chunkKY7WMVMGjs.useThreadSubscription; exports.useThreads = _chunkKY7WMVMGjs._useThreadsSuspense; exports.useUndo = _chunkKY7WMVMGjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkKY7WMVMGjs.useUnreadInboxNotificationsCountSuspense; exports.useUpdateMyPresence = _chunkKY7WMVMGjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkKY7WMVMGjs.useUpdateRoomNotificationSettings; exports.useUser = _chunkKY7WMVMGjs._useUserSuspense; exports.useUserThreads_experimental = _chunkKY7WMVMGjs._useUserThreadsSuspense_experimental;
133
+ exports.ClientContext = _chunkNUDMG62Pjs.ClientContext; exports.ClientSideSuspense = _chunkWV5AI4AEjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkNUDMG62Pjs.LiveblocksProvider; exports.RoomContext = _chunkNUDMG62Pjs.RoomContext; exports.RoomProvider = _chunkNUDMG62Pjs._RoomProvider; exports.shallow = _client.shallow; exports.useAddReaction = _chunkNUDMG62Pjs._useAddReaction; exports.useAttachmentUrl = _chunkNUDMG62Pjs.useAttachmentUrlSuspense; exports.useBatch = _chunkNUDMG62Pjs.useBatch; exports.useBroadcastEvent = _chunkNUDMG62Pjs._useBroadcastEvent; exports.useCanRedo = _chunkNUDMG62Pjs.useCanRedo; exports.useCanUndo = _chunkNUDMG62Pjs.useCanUndo; exports.useClient = _chunkNUDMG62Pjs.useClient; exports.useCreateComment = _chunkNUDMG62Pjs.useCreateComment; exports.useCreateThread = _chunkNUDMG62Pjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkNUDMG62Pjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkNUDMG62Pjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkNUDMG62Pjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkNUDMG62Pjs._useDeleteThread; exports.useEditComment = _chunkNUDMG62Pjs.useEditComment; exports.useEditThreadMetadata = _chunkNUDMG62Pjs._useEditThreadMetadata; exports.useErrorListener = _chunkNUDMG62Pjs.useErrorListener; exports.useEventListener = _chunkNUDMG62Pjs._useEventListener; exports.useHistory = _chunkNUDMG62Pjs.useHistory; exports.useHistoryVersions = _chunkNUDMG62Pjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkNUDMG62Pjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkNUDMG62Pjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkNUDMG62Pjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkNUDMG62Pjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkNUDMG62Pjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkNUDMG62Pjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkNUDMG62Pjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkNUDMG62Pjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkNUDMG62Pjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkNUDMG62Pjs._useMutation; exports.useMyPresence = _chunkNUDMG62Pjs._useMyPresence; exports.useOther = _chunkNUDMG62Pjs._useOtherSuspense; exports.useOthers = _chunkNUDMG62Pjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkNUDMG62Pjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkNUDMG62Pjs._useOthersListener; exports.useOthersMapped = _chunkNUDMG62Pjs._useOthersMappedSuspense; exports.useRedo = _chunkNUDMG62Pjs.useRedo; exports.useRemoveReaction = _chunkNUDMG62Pjs.useRemoveReaction; exports.useRoom = _chunkNUDMG62Pjs._useRoom; exports.useRoomInfo = _chunkNUDMG62Pjs.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunkNUDMG62Pjs._useRoomNotificationSettingsSuspense; exports.useSelf = _chunkNUDMG62Pjs._useSelfSuspense; exports.useStatus = _chunkNUDMG62Pjs.useStatus; exports.useStorage = _chunkNUDMG62Pjs._useStorageSuspense; exports.useStorageRoot = _chunkNUDMG62Pjs._useStorageRoot; exports.useStorageStatus = _chunkNUDMG62Pjs.useStorageStatusSuspense; exports.useSyncStatus = _chunkNUDMG62Pjs.useSyncStatus; exports.useThreadSubscription = _chunkNUDMG62Pjs.useThreadSubscription; exports.useThreads = _chunkNUDMG62Pjs._useThreadsSuspense; exports.useUndo = _chunkNUDMG62Pjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkNUDMG62Pjs.useUnreadInboxNotificationsCountSuspense; exports.useUpdateMyPresence = _chunkNUDMG62Pjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkNUDMG62Pjs.useUpdateRoomNotificationSettings; exports.useUser = _chunkNUDMG62Pjs._useUserSuspense; exports.useUserThreads_experimental = _chunkNUDMG62Pjs._useUserThreadsSuspense_experimental;
134
134
  //# sourceMappingURL=suspense.js.map
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-A4ABDZ5E.mjs";
6
+ } from "./chunk-UX3CG7ZS.mjs";
7
7
  import {
8
8
  ClientContext,
9
9
  LiveblocksProvider,
@@ -63,7 +63,7 @@ import {
63
63
  useUndo,
64
64
  useUnreadInboxNotificationsCountSuspense,
65
65
  useUpdateRoomNotificationSettings
66
- } from "./chunk-UJLD6FYC.mjs";
66
+ } from "./chunk-GMKB6I6V.mjs";
67
67
 
68
68
  // src/suspense.ts
69
69
  import { detectDupes } from "@liveblocks/core";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liveblocks/react",
3
- "version": "2.15.0-debug1",
3
+ "version": "2.15.1",
4
4
  "description": "A set of React hooks and providers to use Liveblocks declaratively. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "commonjs",
@@ -61,8 +61,8 @@
61
61
  "showdeps": "depcruise src --include-only '^src' --exclude='__tests__' --output-type dot | dot -T svg > /tmp/dependency-graph.svg && open /tmp/dependency-graph.svg"
62
62
  },
63
63
  "dependencies": {
64
- "@liveblocks/client": "2.15.0-debug1",
65
- "@liveblocks/core": "2.15.0-debug1"
64
+ "@liveblocks/client": "2.15.1",
65
+ "@liveblocks/core": "2.15.1"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18 || ^19 || ^19.0.0-rc"