@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.
- package/dist/_private.d.mts +1 -1
- package/dist/_private.d.ts +1 -1
- package/dist/_private.js +5 -5
- package/dist/_private.mjs +1 -1
- package/dist/{chunk-UJLD6FYC.mjs → chunk-GMKB6I6V.mjs} +395 -368
- package/dist/chunk-GMKB6I6V.mjs.map +1 -0
- package/dist/{chunk-KY7WMVMG.js → chunk-NUDMG62P.js} +364 -337
- package/dist/chunk-NUDMG62P.js.map +1 -0
- package/dist/{chunk-A4ABDZ5E.mjs → chunk-UX3CG7ZS.mjs} +2 -2
- package/dist/{chunk-MI7M3UBZ.js → chunk-WV5AI4AE.js} +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/index.mjs +2 -2
- package/dist/{room-C_NzlTZP.d.mts → room-XbmI0Hoh.d.mts} +74 -35
- package/dist/{room-C_NzlTZP.d.ts → room-XbmI0Hoh.d.ts} +74 -35
- package/dist/suspense.d.mts +1 -1
- package/dist/suspense.d.ts +1 -1
- package/dist/suspense.js +4 -4
- package/dist/suspense.mjs +2 -2
- package/package.json +3 -3
- package/dist/chunk-KY7WMVMG.js.map +0 -1
- package/dist/chunk-UJLD6FYC.mjs.map +0 -1
- /package/dist/{chunk-A4ABDZ5E.mjs.map → chunk-UX3CG7ZS.mjs.map} +0 -0
- /package/dist/{chunk-MI7M3UBZ.js.map → chunk-WV5AI4AE.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/version.ts
|
|
2
2
|
var PKG_NAME = "@liveblocks/react";
|
|
3
|
-
var PKG_VERSION = "2.15.
|
|
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-
|
|
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.
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
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
|
|
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,
|
|
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 =
|
|
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-
|
|
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-
|
|
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,
|
|
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
|
-
|
|
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
|
|
1288
|
-
readonly
|
|
1289
|
-
readonly
|
|
1290
|
-
readonly
|
|
1291
|
-
readonly
|
|
1292
|
-
readonly
|
|
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
|
|
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
|
-
|
|
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,
|
|
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(
|
|
1386
|
+
deleteAllInboxNotifications(optimisticId: string): void;
|
|
1344
1387
|
/**
|
|
1345
1388
|
* Creates an new thread, replacing the corresponding optimistic update.
|
|
1346
1389
|
*/
|
|
1347
|
-
createThread(
|
|
1348
|
-
patchThread(threadId: string,
|
|
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,
|
|
1353
|
-
removeReaction(threadId: string,
|
|
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
|
|
1360
|
-
* - The thread ID was already deleted
|
|
1402
|
+
* - The thread ID isn't found; or
|
|
1403
|
+
* - The thread ID was already deleted
|
|
1361
1404
|
*/
|
|
1362
|
-
deleteThread(threadId: string,
|
|
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,
|
|
1368
|
-
editComment(threadId: string,
|
|
1369
|
-
deleteComment(threadId: string,
|
|
1370
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
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
|
-
|
|
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
|
|
1288
|
-
readonly
|
|
1289
|
-
readonly
|
|
1290
|
-
readonly
|
|
1291
|
-
readonly
|
|
1292
|
-
readonly
|
|
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
|
|
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
|
-
|
|
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,
|
|
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(
|
|
1386
|
+
deleteAllInboxNotifications(optimisticId: string): void;
|
|
1344
1387
|
/**
|
|
1345
1388
|
* Creates an new thread, replacing the corresponding optimistic update.
|
|
1346
1389
|
*/
|
|
1347
|
-
createThread(
|
|
1348
|
-
patchThread(threadId: string,
|
|
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,
|
|
1353
|
-
removeReaction(threadId: string,
|
|
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
|
|
1360
|
-
* - The thread ID was already deleted
|
|
1402
|
+
* - The thread ID isn't found; or
|
|
1403
|
+
* - The thread ID was already deleted
|
|
1361
1404
|
*/
|
|
1362
|
-
deleteThread(threadId: string,
|
|
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,
|
|
1368
|
-
editComment(threadId: string,
|
|
1369
|
-
deleteComment(threadId: string,
|
|
1370
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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>;
|
package/dist/suspense.d.mts
CHANGED
|
@@ -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-
|
|
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';
|
package/dist/suspense.d.ts
CHANGED
|
@@ -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-
|
|
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
|
|
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
|
|
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,
|
|
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 =
|
|
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-
|
|
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-
|
|
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.
|
|
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.
|
|
65
|
-
"@liveblocks/core": "2.15.
|
|
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"
|