@liveblocks/react 2.15.1 → 2.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_private.d.mts +5 -3
- package/dist/_private.d.ts +5 -3
- package/dist/_private.js +11 -6
- package/dist/_private.js.map +1 -1
- package/dist/_private.mjs +10 -5
- package/dist/_private.mjs.map +1 -1
- package/dist/{chunk-WV5AI4AE.js → chunk-3KHBALYA.js} +2 -2
- package/dist/{chunk-NUDMG62P.js → chunk-DEAPV4GE.js} +488 -681
- package/dist/chunk-DEAPV4GE.js.map +1 -0
- package/dist/{chunk-GMKB6I6V.mjs → chunk-EEYUKRIA.mjs} +482 -675
- package/dist/chunk-EEYUKRIA.mjs.map +1 -0
- package/dist/{chunk-UX3CG7ZS.mjs → chunk-Z5VZOX7K.mjs} +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-XbmI0Hoh.d.mts → room-0rxzsE_0.d.mts} +29 -64
- package/dist/{room-XbmI0Hoh.d.ts → room-0rxzsE_0.d.ts} +29 -64
- 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-GMKB6I6V.mjs.map +0 -1
- package/dist/chunk-NUDMG62P.js.map +0 -1
- /package/dist/{chunk-WV5AI4AE.js.map → chunk-3KHBALYA.js.map} +0 -0
- /package/dist/{chunk-UX3CG7ZS.mjs.map → chunk-Z5VZOX7K.mjs.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.2";
|
|
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-Z5VZOX7K.mjs.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-0rxzsE_0.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-0rxzsE_0.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 _chunk3KHBALYAjs = require('./chunk-3KHBALYA.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -67,12 +67,12 @@ var _chunkWV5AI4AEjs = require('./chunk-WV5AI4AE.js');
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var _chunkDEAPV4GEjs = require('./chunk-DEAPV4GE.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, _chunk3KHBALYAjs.PKG_NAME, _chunk3KHBALYAjs.PKG_VERSION, _chunk3KHBALYAjs.PKG_FORMAT);
|
|
76
76
|
|
|
77
77
|
|
|
78
78
|
|
|
@@ -138,5 +138,5 @@ _core.detectDupes.call(void 0, _chunkWV5AI4AEjs.PKG_NAME, _chunkWV5AI4AEjs.PKG_V
|
|
|
138
138
|
|
|
139
139
|
|
|
140
140
|
|
|
141
|
-
exports.ClientContext =
|
|
141
|
+
exports.ClientContext = _chunkDEAPV4GEjs.ClientContext; exports.ClientSideSuspense = _chunk3KHBALYAjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkDEAPV4GEjs.LiveblocksProvider; exports.RoomContext = _chunkDEAPV4GEjs.RoomContext; exports.RoomProvider = _chunkDEAPV4GEjs._RoomProvider; exports.createLiveblocksContext = _chunkDEAPV4GEjs.createLiveblocksContext; exports.createRoomContext = _chunkDEAPV4GEjs.createRoomContext; exports.shallow = _client.shallow; exports.useAddReaction = _chunkDEAPV4GEjs._useAddReaction; exports.useAttachmentUrl = _chunkDEAPV4GEjs.useAttachmentUrl; exports.useBatch = _chunkDEAPV4GEjs.useBatch; exports.useBroadcastEvent = _chunkDEAPV4GEjs._useBroadcastEvent; exports.useCanRedo = _chunkDEAPV4GEjs.useCanRedo; exports.useCanUndo = _chunkDEAPV4GEjs.useCanUndo; exports.useClient = _chunkDEAPV4GEjs.useClient; exports.useCommentsErrorListener = _chunkDEAPV4GEjs.useCommentsErrorListener; exports.useCreateComment = _chunkDEAPV4GEjs.useCreateComment; exports.useCreateThread = _chunkDEAPV4GEjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkDEAPV4GEjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkDEAPV4GEjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkDEAPV4GEjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkDEAPV4GEjs._useDeleteThread; exports.useEditComment = _chunkDEAPV4GEjs.useEditComment; exports.useEditThreadMetadata = _chunkDEAPV4GEjs._useEditThreadMetadata; exports.useErrorListener = _chunkDEAPV4GEjs.useErrorListener; exports.useEventListener = _chunkDEAPV4GEjs._useEventListener; exports.useHistory = _chunkDEAPV4GEjs.useHistory; exports.useHistoryVersionData = _chunkDEAPV4GEjs.useHistoryVersionData; exports.useHistoryVersions = _chunkDEAPV4GEjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkDEAPV4GEjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkDEAPV4GEjs.useInboxNotifications; exports.useIsInsideRoom = _chunkDEAPV4GEjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkDEAPV4GEjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkDEAPV4GEjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkDEAPV4GEjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkDEAPV4GEjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkDEAPV4GEjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkDEAPV4GEjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkDEAPV4GEjs._useMutation; exports.useMyPresence = _chunkDEAPV4GEjs._useMyPresence; exports.useOther = _chunkDEAPV4GEjs._useOther; exports.useOthers = _chunkDEAPV4GEjs._useOthers; exports.useOthersConnectionIds = _chunkDEAPV4GEjs.useOthersConnectionIds; exports.useOthersListener = _chunkDEAPV4GEjs._useOthersListener; exports.useOthersMapped = _chunkDEAPV4GEjs._useOthersMapped; exports.useRedo = _chunkDEAPV4GEjs.useRedo; exports.useRemoveReaction = _chunkDEAPV4GEjs.useRemoveReaction; exports.useRoom = _chunkDEAPV4GEjs._useRoom; exports.useRoomInfo = _chunkDEAPV4GEjs.useRoomInfo; exports.useRoomNotificationSettings = _chunkDEAPV4GEjs._useRoomNotificationSettings; exports.useSelf = _chunkDEAPV4GEjs._useSelf; exports.useStatus = _chunkDEAPV4GEjs.useStatus; exports.useStorage = _chunkDEAPV4GEjs._useStorage; exports.useStorageRoot = _chunkDEAPV4GEjs._useStorageRoot; exports.useStorageStatus = _chunkDEAPV4GEjs.useStorageStatus; exports.useSyncStatus = _chunkDEAPV4GEjs.useSyncStatus; exports.useThreadSubscription = _chunkDEAPV4GEjs.useThreadSubscription; exports.useThreads = _chunkDEAPV4GEjs._useThreads; exports.useUndo = _chunkDEAPV4GEjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkDEAPV4GEjs.useUnreadInboxNotificationsCount; exports.useUpdateMyPresence = _chunkDEAPV4GEjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkDEAPV4GEjs.useUpdateRoomNotificationSettings; exports.useUser = _chunkDEAPV4GEjs._useUser; exports.useUserThreads_experimental = _chunkDEAPV4GEjs._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-Z5VZOX7K.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-EEYUKRIA.mjs";
|
|
71
71
|
|
|
72
72
|
// src/index.ts
|
|
73
73
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import * as _liveblocks_core from '@liveblocks/core';
|
|
2
|
+
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, DefaultMap, OpaqueClient, CommentUserReaction, InboxNotificationDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DM, OpaqueRoom, TextEditorType, IYjsProvider, DP, DS, DE } from '@liveblocks/core';
|
|
1
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
4
|
import * as react from 'react';
|
|
3
5
|
import { Context, PropsWithChildren, ReactNode } from 'react';
|
|
4
6
|
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
|
-
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, 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,10 +1118,7 @@ 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(
|
|
1122
|
-
newThreads: ThreadData<M>[];
|
|
1123
|
-
deletedThreads: ThreadDeleteInfo[];
|
|
1124
|
-
}): void;
|
|
1121
|
+
applyDelta(newThreads: ThreadData<M>[], deletedThreads: ThreadDeleteInfo[]): void;
|
|
1125
1122
|
/**
|
|
1126
1123
|
* Marks a thread as deleted. It will no longer pop up in .findMany()
|
|
1127
1124
|
* queries, but it can still be accessed via `.getEvenIfDeleted()`.
|
|
@@ -1250,24 +1247,17 @@ declare type UsablePromise<T> = Promise<T> & ({
|
|
|
1250
1247
|
status: "fulfilled";
|
|
1251
1248
|
value: T;
|
|
1252
1249
|
});
|
|
1250
|
+
declare type LoadableResource<T> = {
|
|
1251
|
+
signal: ISignal<T>;
|
|
1252
|
+
waitUntilLoaded: () => UsablePromise<void>;
|
|
1253
|
+
};
|
|
1253
1254
|
declare type RoomId = string;
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
*/
|
|
1257
|
-
declare type VersionsLUT = Map<RoomId, Map<string, HistoryVersion>>;
|
|
1258
|
-
/**
|
|
1259
|
-
* Versions by roomId
|
|
1260
|
-
* e.g. { 'room-abc': {versions: "all versions"}}
|
|
1261
|
-
*/
|
|
1262
|
-
declare type VersionsByRoomId = Record<RoomId, Record<string, HistoryVersion>>;
|
|
1255
|
+
declare type UserQueryKey = string;
|
|
1256
|
+
declare type RoomQueryKey = string;
|
|
1263
1257
|
/**
|
|
1264
1258
|
* A lookup table (LUT) for all the inbox notifications.
|
|
1265
1259
|
*/
|
|
1266
1260
|
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>;
|
|
1271
1261
|
/**
|
|
1272
1262
|
* Notification settings by room ID.
|
|
1273
1263
|
* e.g. { 'room-abc': { threads: "all" },
|
|
@@ -1276,7 +1266,7 @@ declare type SettingsLUT = Map<RoomId, RoomNotificationSettings$1>;
|
|
|
1276
1266
|
* }
|
|
1277
1267
|
*/
|
|
1278
1268
|
declare type SettingsByRoomId = Record<RoomId, RoomNotificationSettings$1>;
|
|
1279
|
-
declare type
|
|
1269
|
+
declare type PermissionHintsLUT = DefaultMap<RoomId, Set<Permission>>;
|
|
1280
1270
|
declare type CleanThreadifications<M extends BaseMetadata> = CleanThreads<M> & CleanNotifications;
|
|
1281
1271
|
declare type CleanThreads<M extends BaseMetadata> = {
|
|
1282
1272
|
/**
|
|
@@ -1298,37 +1288,35 @@ declare type CleanNotifications = {
|
|
|
1298
1288
|
notificationsById: Record<string, InboxNotificationData>;
|
|
1299
1289
|
};
|
|
1300
1290
|
declare function createStore_forNotifications(): {
|
|
1301
|
-
signal:
|
|
1291
|
+
signal: ISignal<NotificationsLUT>;
|
|
1302
1292
|
markAllRead: (readAt: Date) => void;
|
|
1303
1293
|
markRead: (notificationId: string, readAt: Date) => void;
|
|
1304
1294
|
delete: (inboxNotificationId: string) => void;
|
|
1305
|
-
applyDelta: (
|
|
1295
|
+
applyDelta: (newNotifications: InboxNotificationData[], deletedNotifications: InboxNotificationDeleteInfo[]) => void;
|
|
1306
1296
|
clear: () => void;
|
|
1307
1297
|
updateAssociatedNotification: (newComment: CommentData) => void;
|
|
1308
|
-
|
|
1309
|
-
invalidate: () => void;
|
|
1298
|
+
upsert: (notification: InboxNotificationData) => void;
|
|
1310
1299
|
};
|
|
1311
|
-
declare function createStore_forRoomNotificationSettings(): {
|
|
1312
|
-
signal:
|
|
1300
|
+
declare function createStore_forRoomNotificationSettings(updates: ISignal<readonly OptimisticUpdate<BaseMetadata>[]>): {
|
|
1301
|
+
signal: DerivedSignal<SettingsByRoomId>;
|
|
1313
1302
|
update: (roomId: string, settings: RoomNotificationSettings$1) => void;
|
|
1314
|
-
invalidate: () => void;
|
|
1315
1303
|
};
|
|
1316
1304
|
declare function createStore_forHistoryVersions(): {
|
|
1317
|
-
signal:
|
|
1305
|
+
signal: DerivedSignal<{
|
|
1306
|
+
[k: string]: {
|
|
1307
|
+
[k: string]: HistoryVersion;
|
|
1308
|
+
};
|
|
1309
|
+
}>;
|
|
1318
1310
|
update: (roomId: string, versions: HistoryVersion[]) => void;
|
|
1319
|
-
force_set: (callback: (lut: VersionsLUT) => void | boolean) => void;
|
|
1320
|
-
invalidate: () => void;
|
|
1321
1311
|
};
|
|
1322
1312
|
declare function createStore_forPermissionHints(): {
|
|
1323
|
-
signal:
|
|
1313
|
+
signal: ISignal<PermissionHintsLUT>;
|
|
1324
1314
|
update: (newHints: Record<string, Permission[]>) => void;
|
|
1325
|
-
invalidate: () => void;
|
|
1326
1315
|
};
|
|
1327
1316
|
declare function createStore_forOptimistic<M extends BaseMetadata>(client: Client<BaseUserMeta$1, M>): {
|
|
1328
|
-
signal:
|
|
1317
|
+
signal: ISignal<readonly OptimisticUpdate<M>[]>;
|
|
1329
1318
|
add: (optimisticUpdate: DistributiveOmit<OptimisticUpdate<M>, "id">) => string;
|
|
1330
1319
|
remove: (optimisticId: string) => void;
|
|
1331
|
-
invalidate: () => void;
|
|
1332
1320
|
};
|
|
1333
1321
|
declare class UmbrellaStore<M extends BaseMetadata> {
|
|
1334
1322
|
#private;
|
|
@@ -1340,32 +1328,15 @@ declare class UmbrellaStore<M extends BaseMetadata> {
|
|
|
1340
1328
|
readonly optimisticUpdates: ReturnType<typeof createStore_forOptimistic<M>>;
|
|
1341
1329
|
readonly outputs: {
|
|
1342
1330
|
readonly threadifications: DerivedSignal<CleanThreadifications<M>>;
|
|
1343
|
-
readonly threads: DerivedSignal<
|
|
1331
|
+
readonly threads: DerivedSignal<ReadonlyThreadDB<M>>;
|
|
1332
|
+
readonly loadingRoomThreads: DefaultMap<RoomQueryKey, LoadableResource<ThreadsAsyncResult<M>>>;
|
|
1333
|
+
readonly loadingUserThreads: DefaultMap<UserQueryKey, LoadableResource<ThreadsAsyncResult<M>>>;
|
|
1344
1334
|
readonly notifications: DerivedSignal<CleanNotifications>;
|
|
1345
|
-
readonly
|
|
1346
|
-
readonly
|
|
1335
|
+
readonly loadingNotifications: LoadableResource<InboxNotificationsAsyncResult>;
|
|
1336
|
+
readonly settingsByRoomId: DefaultMap<RoomId, LoadableResource<RoomNotificationSettingsAsyncResult>>;
|
|
1337
|
+
readonly versionsByRoomId: DefaultMap<RoomId, LoadableResource<HistoryVersionsAsyncResult>>;
|
|
1347
1338
|
};
|
|
1348
1339
|
constructor(client: OpaqueClient);
|
|
1349
|
-
get1_both(): CleanThreadifications<M>;
|
|
1350
|
-
subscribe1_both(callback: () => void): () => void;
|
|
1351
|
-
get1_threads(): CleanThreads<M>;
|
|
1352
|
-
subscribe1_threads(callback: () => void): () => void;
|
|
1353
|
-
get1_notifications(): CleanNotifications;
|
|
1354
|
-
subscribe1_notifications(callback: () => void): () => void;
|
|
1355
|
-
get2(): SettingsByRoomId;
|
|
1356
|
-
subscribe2(callback: () => void): () => void;
|
|
1357
|
-
get3(): VersionsByRoomId;
|
|
1358
|
-
subscribe3(callback: () => void): () => void;
|
|
1359
|
-
/**
|
|
1360
|
-
* Returns the async result of the given query and room id. If the query is success,
|
|
1361
|
-
* then it will return the threads that match that provided query and room id.
|
|
1362
|
-
*
|
|
1363
|
-
*/
|
|
1364
|
-
getRoomThreadsLoadingState(roomId: string, query: ThreadsQuery<M> | undefined): ThreadsAsyncResult<M>;
|
|
1365
|
-
getUserThreadsLoadingState(query: ThreadsQuery<M> | undefined): ThreadsAsyncResult<M>;
|
|
1366
|
-
getInboxNotificationsLoadingState(): InboxNotificationsAsyncResult;
|
|
1367
|
-
getNotificationSettingsLoadingState(roomId: string): RoomNotificationSettingsAsyncResult;
|
|
1368
|
-
getRoomVersionsLoadingState(roomId: string): AsyncResult<HistoryVersion[], "versions">;
|
|
1369
1340
|
/**
|
|
1370
1341
|
* Updates an existing inbox notification with a new value, replacing the
|
|
1371
1342
|
* corresponding optimistic update.
|
|
@@ -1417,15 +1388,9 @@ declare class UmbrellaStore<M extends BaseMetadata> {
|
|
|
1417
1388
|
*/
|
|
1418
1389
|
updateRoomNotificationSettings(roomId: string, optimisticId: string, settings: Readonly<RoomNotificationSettings$1>): void;
|
|
1419
1390
|
fetchNotificationsDeltaUpdate(signal: AbortSignal): Promise<void>;
|
|
1420
|
-
waitUntilNotificationsLoaded(): UsablePromise<void>;
|
|
1421
|
-
waitUntilRoomThreadsLoaded(roomId: string, query: ThreadsQuery<M> | undefined): UsablePromise<void>;
|
|
1422
1391
|
fetchRoomThreadsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
|
|
1423
|
-
waitUntilUserThreadsLoaded(query: ThreadsQuery<M> | undefined): UsablePromise<void>;
|
|
1424
|
-
invalidateEntireStore(): void;
|
|
1425
1392
|
fetchUserThreadsDeltaUpdate(signal: AbortSignal): Promise<void>;
|
|
1426
|
-
waitUntilRoomVersionsLoaded(roomId: string): UsablePromise<void>;
|
|
1427
1393
|
fetchRoomVersionsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
|
|
1428
|
-
waitUntilRoomNotificationSettingsLoaded(roomId: string): UsablePromise<void>;
|
|
1429
1394
|
refreshRoomNotificationSettings(roomId: string, signal: AbortSignal): Promise<void>;
|
|
1430
1395
|
}
|
|
1431
1396
|
|
|
@@ -1480,7 +1445,7 @@ declare function useInboxNotifications(): InboxNotificationsAsyncResult;
|
|
|
1480
1445
|
*/
|
|
1481
1446
|
declare function useInboxNotificationsSuspense(): {
|
|
1482
1447
|
readonly isLoading: false;
|
|
1483
|
-
readonly inboxNotifications: InboxNotificationData[];
|
|
1448
|
+
readonly inboxNotifications: _liveblocks_core.InboxNotificationData[];
|
|
1484
1449
|
readonly error?: undefined;
|
|
1485
1450
|
hasFetchedAll: boolean;
|
|
1486
1451
|
isFetchingMore: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import * as _liveblocks_core from '@liveblocks/core';
|
|
2
|
+
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, DefaultMap, OpaqueClient, CommentUserReaction, InboxNotificationDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DM, OpaqueRoom, TextEditorType, IYjsProvider, DP, DS, DE } from '@liveblocks/core';
|
|
1
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
4
|
import * as react from 'react';
|
|
3
5
|
import { Context, PropsWithChildren, ReactNode } from 'react';
|
|
4
6
|
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
|
-
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, 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,10 +1118,7 @@ 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(
|
|
1122
|
-
newThreads: ThreadData<M>[];
|
|
1123
|
-
deletedThreads: ThreadDeleteInfo[];
|
|
1124
|
-
}): void;
|
|
1121
|
+
applyDelta(newThreads: ThreadData<M>[], deletedThreads: ThreadDeleteInfo[]): void;
|
|
1125
1122
|
/**
|
|
1126
1123
|
* Marks a thread as deleted. It will no longer pop up in .findMany()
|
|
1127
1124
|
* queries, but it can still be accessed via `.getEvenIfDeleted()`.
|
|
@@ -1250,24 +1247,17 @@ declare type UsablePromise<T> = Promise<T> & ({
|
|
|
1250
1247
|
status: "fulfilled";
|
|
1251
1248
|
value: T;
|
|
1252
1249
|
});
|
|
1250
|
+
declare type LoadableResource<T> = {
|
|
1251
|
+
signal: ISignal<T>;
|
|
1252
|
+
waitUntilLoaded: () => UsablePromise<void>;
|
|
1253
|
+
};
|
|
1253
1254
|
declare type RoomId = string;
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
*/
|
|
1257
|
-
declare type VersionsLUT = Map<RoomId, Map<string, HistoryVersion>>;
|
|
1258
|
-
/**
|
|
1259
|
-
* Versions by roomId
|
|
1260
|
-
* e.g. { 'room-abc': {versions: "all versions"}}
|
|
1261
|
-
*/
|
|
1262
|
-
declare type VersionsByRoomId = Record<RoomId, Record<string, HistoryVersion>>;
|
|
1255
|
+
declare type UserQueryKey = string;
|
|
1256
|
+
declare type RoomQueryKey = string;
|
|
1263
1257
|
/**
|
|
1264
1258
|
* A lookup table (LUT) for all the inbox notifications.
|
|
1265
1259
|
*/
|
|
1266
1260
|
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>;
|
|
1271
1261
|
/**
|
|
1272
1262
|
* Notification settings by room ID.
|
|
1273
1263
|
* e.g. { 'room-abc': { threads: "all" },
|
|
@@ -1276,7 +1266,7 @@ declare type SettingsLUT = Map<RoomId, RoomNotificationSettings$1>;
|
|
|
1276
1266
|
* }
|
|
1277
1267
|
*/
|
|
1278
1268
|
declare type SettingsByRoomId = Record<RoomId, RoomNotificationSettings$1>;
|
|
1279
|
-
declare type
|
|
1269
|
+
declare type PermissionHintsLUT = DefaultMap<RoomId, Set<Permission>>;
|
|
1280
1270
|
declare type CleanThreadifications<M extends BaseMetadata> = CleanThreads<M> & CleanNotifications;
|
|
1281
1271
|
declare type CleanThreads<M extends BaseMetadata> = {
|
|
1282
1272
|
/**
|
|
@@ -1298,37 +1288,35 @@ declare type CleanNotifications = {
|
|
|
1298
1288
|
notificationsById: Record<string, InboxNotificationData>;
|
|
1299
1289
|
};
|
|
1300
1290
|
declare function createStore_forNotifications(): {
|
|
1301
|
-
signal:
|
|
1291
|
+
signal: ISignal<NotificationsLUT>;
|
|
1302
1292
|
markAllRead: (readAt: Date) => void;
|
|
1303
1293
|
markRead: (notificationId: string, readAt: Date) => void;
|
|
1304
1294
|
delete: (inboxNotificationId: string) => void;
|
|
1305
|
-
applyDelta: (
|
|
1295
|
+
applyDelta: (newNotifications: InboxNotificationData[], deletedNotifications: InboxNotificationDeleteInfo[]) => void;
|
|
1306
1296
|
clear: () => void;
|
|
1307
1297
|
updateAssociatedNotification: (newComment: CommentData) => void;
|
|
1308
|
-
|
|
1309
|
-
invalidate: () => void;
|
|
1298
|
+
upsert: (notification: InboxNotificationData) => void;
|
|
1310
1299
|
};
|
|
1311
|
-
declare function createStore_forRoomNotificationSettings(): {
|
|
1312
|
-
signal:
|
|
1300
|
+
declare function createStore_forRoomNotificationSettings(updates: ISignal<readonly OptimisticUpdate<BaseMetadata>[]>): {
|
|
1301
|
+
signal: DerivedSignal<SettingsByRoomId>;
|
|
1313
1302
|
update: (roomId: string, settings: RoomNotificationSettings$1) => void;
|
|
1314
|
-
invalidate: () => void;
|
|
1315
1303
|
};
|
|
1316
1304
|
declare function createStore_forHistoryVersions(): {
|
|
1317
|
-
signal:
|
|
1305
|
+
signal: DerivedSignal<{
|
|
1306
|
+
[k: string]: {
|
|
1307
|
+
[k: string]: HistoryVersion;
|
|
1308
|
+
};
|
|
1309
|
+
}>;
|
|
1318
1310
|
update: (roomId: string, versions: HistoryVersion[]) => void;
|
|
1319
|
-
force_set: (callback: (lut: VersionsLUT) => void | boolean) => void;
|
|
1320
|
-
invalidate: () => void;
|
|
1321
1311
|
};
|
|
1322
1312
|
declare function createStore_forPermissionHints(): {
|
|
1323
|
-
signal:
|
|
1313
|
+
signal: ISignal<PermissionHintsLUT>;
|
|
1324
1314
|
update: (newHints: Record<string, Permission[]>) => void;
|
|
1325
|
-
invalidate: () => void;
|
|
1326
1315
|
};
|
|
1327
1316
|
declare function createStore_forOptimistic<M extends BaseMetadata>(client: Client<BaseUserMeta$1, M>): {
|
|
1328
|
-
signal:
|
|
1317
|
+
signal: ISignal<readonly OptimisticUpdate<M>[]>;
|
|
1329
1318
|
add: (optimisticUpdate: DistributiveOmit<OptimisticUpdate<M>, "id">) => string;
|
|
1330
1319
|
remove: (optimisticId: string) => void;
|
|
1331
|
-
invalidate: () => void;
|
|
1332
1320
|
};
|
|
1333
1321
|
declare class UmbrellaStore<M extends BaseMetadata> {
|
|
1334
1322
|
#private;
|
|
@@ -1340,32 +1328,15 @@ declare class UmbrellaStore<M extends BaseMetadata> {
|
|
|
1340
1328
|
readonly optimisticUpdates: ReturnType<typeof createStore_forOptimistic<M>>;
|
|
1341
1329
|
readonly outputs: {
|
|
1342
1330
|
readonly threadifications: DerivedSignal<CleanThreadifications<M>>;
|
|
1343
|
-
readonly threads: DerivedSignal<
|
|
1331
|
+
readonly threads: DerivedSignal<ReadonlyThreadDB<M>>;
|
|
1332
|
+
readonly loadingRoomThreads: DefaultMap<RoomQueryKey, LoadableResource<ThreadsAsyncResult<M>>>;
|
|
1333
|
+
readonly loadingUserThreads: DefaultMap<UserQueryKey, LoadableResource<ThreadsAsyncResult<M>>>;
|
|
1344
1334
|
readonly notifications: DerivedSignal<CleanNotifications>;
|
|
1345
|
-
readonly
|
|
1346
|
-
readonly
|
|
1335
|
+
readonly loadingNotifications: LoadableResource<InboxNotificationsAsyncResult>;
|
|
1336
|
+
readonly settingsByRoomId: DefaultMap<RoomId, LoadableResource<RoomNotificationSettingsAsyncResult>>;
|
|
1337
|
+
readonly versionsByRoomId: DefaultMap<RoomId, LoadableResource<HistoryVersionsAsyncResult>>;
|
|
1347
1338
|
};
|
|
1348
1339
|
constructor(client: OpaqueClient);
|
|
1349
|
-
get1_both(): CleanThreadifications<M>;
|
|
1350
|
-
subscribe1_both(callback: () => void): () => void;
|
|
1351
|
-
get1_threads(): CleanThreads<M>;
|
|
1352
|
-
subscribe1_threads(callback: () => void): () => void;
|
|
1353
|
-
get1_notifications(): CleanNotifications;
|
|
1354
|
-
subscribe1_notifications(callback: () => void): () => void;
|
|
1355
|
-
get2(): SettingsByRoomId;
|
|
1356
|
-
subscribe2(callback: () => void): () => void;
|
|
1357
|
-
get3(): VersionsByRoomId;
|
|
1358
|
-
subscribe3(callback: () => void): () => void;
|
|
1359
|
-
/**
|
|
1360
|
-
* Returns the async result of the given query and room id. If the query is success,
|
|
1361
|
-
* then it will return the threads that match that provided query and room id.
|
|
1362
|
-
*
|
|
1363
|
-
*/
|
|
1364
|
-
getRoomThreadsLoadingState(roomId: string, query: ThreadsQuery<M> | undefined): ThreadsAsyncResult<M>;
|
|
1365
|
-
getUserThreadsLoadingState(query: ThreadsQuery<M> | undefined): ThreadsAsyncResult<M>;
|
|
1366
|
-
getInboxNotificationsLoadingState(): InboxNotificationsAsyncResult;
|
|
1367
|
-
getNotificationSettingsLoadingState(roomId: string): RoomNotificationSettingsAsyncResult;
|
|
1368
|
-
getRoomVersionsLoadingState(roomId: string): AsyncResult<HistoryVersion[], "versions">;
|
|
1369
1340
|
/**
|
|
1370
1341
|
* Updates an existing inbox notification with a new value, replacing the
|
|
1371
1342
|
* corresponding optimistic update.
|
|
@@ -1417,15 +1388,9 @@ declare class UmbrellaStore<M extends BaseMetadata> {
|
|
|
1417
1388
|
*/
|
|
1418
1389
|
updateRoomNotificationSettings(roomId: string, optimisticId: string, settings: Readonly<RoomNotificationSettings$1>): void;
|
|
1419
1390
|
fetchNotificationsDeltaUpdate(signal: AbortSignal): Promise<void>;
|
|
1420
|
-
waitUntilNotificationsLoaded(): UsablePromise<void>;
|
|
1421
|
-
waitUntilRoomThreadsLoaded(roomId: string, query: ThreadsQuery<M> | undefined): UsablePromise<void>;
|
|
1422
1391
|
fetchRoomThreadsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
|
|
1423
|
-
waitUntilUserThreadsLoaded(query: ThreadsQuery<M> | undefined): UsablePromise<void>;
|
|
1424
|
-
invalidateEntireStore(): void;
|
|
1425
1392
|
fetchUserThreadsDeltaUpdate(signal: AbortSignal): Promise<void>;
|
|
1426
|
-
waitUntilRoomVersionsLoaded(roomId: string): UsablePromise<void>;
|
|
1427
1393
|
fetchRoomVersionsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
|
|
1428
|
-
waitUntilRoomNotificationSettingsLoaded(roomId: string): UsablePromise<void>;
|
|
1429
1394
|
refreshRoomNotificationSettings(roomId: string, signal: AbortSignal): Promise<void>;
|
|
1430
1395
|
}
|
|
1431
1396
|
|
|
@@ -1480,7 +1445,7 @@ declare function useInboxNotifications(): InboxNotificationsAsyncResult;
|
|
|
1480
1445
|
*/
|
|
1481
1446
|
declare function useInboxNotificationsSuspense(): {
|
|
1482
1447
|
readonly isLoading: false;
|
|
1483
|
-
readonly inboxNotifications: InboxNotificationData[];
|
|
1448
|
+
readonly inboxNotifications: _liveblocks_core.InboxNotificationData[];
|
|
1484
1449
|
readonly error?: undefined;
|
|
1485
1450
|
hasFetchedAll: boolean;
|
|
1486
1451
|
isFetchingMore: boolean;
|
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-0rxzsE_0.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-0rxzsE_0.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 _chunk3KHBALYAjs = require('./chunk-3KHBALYA.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -63,12 +63,12 @@ var _chunkWV5AI4AEjs = require('./chunk-WV5AI4AE.js');
|
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
var
|
|
66
|
+
var _chunkDEAPV4GEjs = require('./chunk-DEAPV4GE.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, _chunk3KHBALYAjs.PKG_NAME, _chunk3KHBALYAjs.PKG_VERSION, _chunk3KHBALYAjs.PKG_FORMAT);
|
|
72
72
|
|
|
73
73
|
|
|
74
74
|
|
|
@@ -130,5 +130,5 @@ _core.detectDupes.call(void 0, _chunkWV5AI4AEjs.PKG_NAME, _chunkWV5AI4AEjs.PKG_V
|
|
|
130
130
|
|
|
131
131
|
|
|
132
132
|
|
|
133
|
-
exports.ClientContext =
|
|
133
|
+
exports.ClientContext = _chunkDEAPV4GEjs.ClientContext; exports.ClientSideSuspense = _chunk3KHBALYAjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkDEAPV4GEjs.LiveblocksProvider; exports.RoomContext = _chunkDEAPV4GEjs.RoomContext; exports.RoomProvider = _chunkDEAPV4GEjs._RoomProvider; exports.shallow = _client.shallow; exports.useAddReaction = _chunkDEAPV4GEjs._useAddReaction; exports.useAttachmentUrl = _chunkDEAPV4GEjs.useAttachmentUrlSuspense; exports.useBatch = _chunkDEAPV4GEjs.useBatch; exports.useBroadcastEvent = _chunkDEAPV4GEjs._useBroadcastEvent; exports.useCanRedo = _chunkDEAPV4GEjs.useCanRedo; exports.useCanUndo = _chunkDEAPV4GEjs.useCanUndo; exports.useClient = _chunkDEAPV4GEjs.useClient; exports.useCreateComment = _chunkDEAPV4GEjs.useCreateComment; exports.useCreateThread = _chunkDEAPV4GEjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkDEAPV4GEjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkDEAPV4GEjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkDEAPV4GEjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkDEAPV4GEjs._useDeleteThread; exports.useEditComment = _chunkDEAPV4GEjs.useEditComment; exports.useEditThreadMetadata = _chunkDEAPV4GEjs._useEditThreadMetadata; exports.useErrorListener = _chunkDEAPV4GEjs.useErrorListener; exports.useEventListener = _chunkDEAPV4GEjs._useEventListener; exports.useHistory = _chunkDEAPV4GEjs.useHistory; exports.useHistoryVersions = _chunkDEAPV4GEjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkDEAPV4GEjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkDEAPV4GEjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkDEAPV4GEjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkDEAPV4GEjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkDEAPV4GEjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkDEAPV4GEjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkDEAPV4GEjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkDEAPV4GEjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkDEAPV4GEjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkDEAPV4GEjs._useMutation; exports.useMyPresence = _chunkDEAPV4GEjs._useMyPresence; exports.useOther = _chunkDEAPV4GEjs._useOtherSuspense; exports.useOthers = _chunkDEAPV4GEjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkDEAPV4GEjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkDEAPV4GEjs._useOthersListener; exports.useOthersMapped = _chunkDEAPV4GEjs._useOthersMappedSuspense; exports.useRedo = _chunkDEAPV4GEjs.useRedo; exports.useRemoveReaction = _chunkDEAPV4GEjs.useRemoveReaction; exports.useRoom = _chunkDEAPV4GEjs._useRoom; exports.useRoomInfo = _chunkDEAPV4GEjs.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunkDEAPV4GEjs._useRoomNotificationSettingsSuspense; exports.useSelf = _chunkDEAPV4GEjs._useSelfSuspense; exports.useStatus = _chunkDEAPV4GEjs.useStatus; exports.useStorage = _chunkDEAPV4GEjs._useStorageSuspense; exports.useStorageRoot = _chunkDEAPV4GEjs._useStorageRoot; exports.useStorageStatus = _chunkDEAPV4GEjs.useStorageStatusSuspense; exports.useSyncStatus = _chunkDEAPV4GEjs.useSyncStatus; exports.useThreadSubscription = _chunkDEAPV4GEjs.useThreadSubscription; exports.useThreads = _chunkDEAPV4GEjs._useThreadsSuspense; exports.useUndo = _chunkDEAPV4GEjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkDEAPV4GEjs.useUnreadInboxNotificationsCountSuspense; exports.useUpdateMyPresence = _chunkDEAPV4GEjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkDEAPV4GEjs.useUpdateRoomNotificationSettings; exports.useUser = _chunkDEAPV4GEjs._useUserSuspense; exports.useUserThreads_experimental = _chunkDEAPV4GEjs._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-Z5VZOX7K.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-EEYUKRIA.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.2",
|
|
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.2",
|
|
65
|
+
"@liveblocks/core": "2.15.2"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"react": "^18 || ^19 || ^19.0.0-rc"
|