@liveblocks/react 2.4.1-test4 → 2.5.0
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/{chunk-BLG6G4JW.js → chunk-NPUJFQTD.js} +145 -139
- package/dist/chunk-NPUJFQTD.js.map +1 -0
- package/dist/{chunk-XPY53VGO.mjs → chunk-SIEZLPM7.mjs} +182 -176
- package/dist/chunk-SIEZLPM7.mjs.map +1 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/dist/{suspense-oIRJdcr2.d.mts → suspense-i9xgTMdV.d.mts} +38 -5
- package/dist/{suspense-oIRJdcr2.d.ts → suspense-i9xgTMdV.d.ts} +38 -5
- package/dist/suspense.d.mts +1 -1
- package/dist/suspense.d.ts +1 -1
- package/dist/suspense.js +5 -3
- package/dist/suspense.js.map +1 -1
- package/dist/suspense.mjs +3 -1
- package/dist/suspense.mjs.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-BLG6G4JW.js.map +0 -1
- package/dist/chunk-XPY53VGO.mjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -62,12 +62,14 @@
|
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
|
|
66
|
+
var _chunkNPUJFQTDjs = require('./chunk-NPUJFQTD.js');
|
|
66
67
|
|
|
67
68
|
// src/index.ts
|
|
68
69
|
var _core = require('@liveblocks/core');
|
|
69
70
|
var _client = require('@liveblocks/client');
|
|
70
|
-
_core.detectDupes.call(void 0,
|
|
71
|
+
_core.detectDupes.call(void 0, _chunkNPUJFQTDjs.PKG_NAME, _chunkNPUJFQTDjs.PKG_VERSION, _chunkNPUJFQTDjs.PKG_FORMAT);
|
|
72
|
+
|
|
71
73
|
|
|
72
74
|
|
|
73
75
|
|
|
@@ -130,5 +132,5 @@ _core.detectDupes.call(void 0, _chunkBLG6G4JWjs.PKG_NAME, _chunkBLG6G4JWjs.PKG_V
|
|
|
130
132
|
|
|
131
133
|
|
|
132
134
|
|
|
133
|
-
exports.ClientContext =
|
|
135
|
+
exports.ClientContext = _chunkNPUJFQTDjs.ClientContext; exports.ClientSideSuspense = _chunkNPUJFQTDjs.ClientSideSuspense; exports.CreateThreadError = _chunkNPUJFQTDjs.CreateThreadError; exports.LiveblocksProvider = _chunkNPUJFQTDjs.LiveblocksProvider; exports.RoomContext = _chunkNPUJFQTDjs.RoomContext; exports.RoomProvider = _chunkNPUJFQTDjs._RoomProvider; exports.createLiveblocksContext = _chunkNPUJFQTDjs.createLiveblocksContext; exports.createRoomContext = _chunkNPUJFQTDjs.createRoomContext; exports.selectedThreads = _chunkNPUJFQTDjs.selectedThreads; exports.shallow = _client.shallow; exports.useAddReaction = _chunkNPUJFQTDjs._useAddReaction; exports.useBatch = _chunkNPUJFQTDjs.useBatch; exports.useBroadcastEvent = _chunkNPUJFQTDjs._useBroadcastEvent; exports.useCanRedo = _chunkNPUJFQTDjs.useCanRedo; exports.useCanUndo = _chunkNPUJFQTDjs.useCanUndo; exports.useClient = _chunkNPUJFQTDjs.useClient; exports.useCommentsErrorListener = _chunkNPUJFQTDjs.useCommentsErrorListener; exports.useCreateComment = _chunkNPUJFQTDjs.useCreateComment; exports.useCreateThread = _chunkNPUJFQTDjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkNPUJFQTDjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkNPUJFQTDjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkNPUJFQTDjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkNPUJFQTDjs._useDeleteThread; exports.useEditComment = _chunkNPUJFQTDjs.useEditComment; exports.useEditThreadMetadata = _chunkNPUJFQTDjs._useEditThreadMetadata; exports.useErrorListener = _chunkNPUJFQTDjs.useErrorListener; exports.useEventListener = _chunkNPUJFQTDjs._useEventListener; exports.useHistory = _chunkNPUJFQTDjs.useHistory; exports.useInboxNotificationThread = _chunkNPUJFQTDjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkNPUJFQTDjs.useInboxNotifications; exports.useIsInsideRoom = _chunkNPUJFQTDjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkNPUJFQTDjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkNPUJFQTDjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkNPUJFQTDjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkNPUJFQTDjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkNPUJFQTDjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkNPUJFQTDjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkNPUJFQTDjs._useMutation; exports.useMyPresence = _chunkNPUJFQTDjs._useMyPresence; exports.useOther = _chunkNPUJFQTDjs._useOther; exports.useOthers = _chunkNPUJFQTDjs._useOthers; exports.useOthersConnectionIds = _chunkNPUJFQTDjs.useOthersConnectionIds; exports.useOthersListener = _chunkNPUJFQTDjs._useOthersListener; exports.useOthersMapped = _chunkNPUJFQTDjs._useOthersMapped; exports.useRedo = _chunkNPUJFQTDjs.useRedo; exports.useRemoveReaction = _chunkNPUJFQTDjs.useRemoveReaction; exports.useRoom = _chunkNPUJFQTDjs._useRoom; exports.useRoomInfo = _chunkNPUJFQTDjs.useRoomInfo; exports.useRoomNotificationSettings = _chunkNPUJFQTDjs.useRoomNotificationSettings; exports.useSelf = _chunkNPUJFQTDjs._useSelf; exports.useStatus = _chunkNPUJFQTDjs.useStatus; exports.useStorage = _chunkNPUJFQTDjs._useStorage; exports.useStorageRoot = _chunkNPUJFQTDjs._useStorageRoot; exports.useStorageStatus = _chunkNPUJFQTDjs.useStorageStatus; exports.useThreadSubscription = _chunkNPUJFQTDjs.useThreadSubscription; exports.useThreads = _chunkNPUJFQTDjs._useThreads; exports.useUndo = _chunkNPUJFQTDjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkNPUJFQTDjs.useUnreadInboxNotificationsCount; exports.useUpdateMyPresence = _chunkNPUJFQTDjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkNPUJFQTDjs.useUpdateRoomNotificationSettings; exports.useUser = _chunkNPUJFQTDjs._useUser; exports.useUserThreads_experimental = _chunkNPUJFQTDjs._useUserThreads_experimental;
|
|
134
136
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,eAAe;AAXxB,YAAY,UAAU,aAAa,UAAU","sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseStorageStatusOptions,\n UseThreadsOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n LiveblocksProvider,\n createLiveblocksContext,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useErrorListener,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useRoomNotificationSettings,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n} from \"./room\";\n\nexport { useCommentsErrorListener, CreateThreadError } from \"./room\";\nexport { selectedThreads } from \"./comments/lib/selected-threads\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useStorageStatus,\n useThreads,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n"]}
|
package/dist/index.mjs
CHANGED
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
_useEditThreadMetadata,
|
|
16
16
|
_useEventListener,
|
|
17
17
|
_useInboxNotificationThread,
|
|
18
|
+
_useIsInsideRoom,
|
|
18
19
|
_useMutation,
|
|
19
20
|
_useMyPresence,
|
|
20
21
|
_useOther,
|
|
@@ -62,7 +63,7 @@ import {
|
|
|
62
63
|
useUndo,
|
|
63
64
|
useUnreadInboxNotificationsCount,
|
|
64
65
|
useUpdateRoomNotificationSettings
|
|
65
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-SIEZLPM7.mjs";
|
|
66
67
|
|
|
67
68
|
// src/index.ts
|
|
68
69
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -99,6 +100,7 @@ export {
|
|
|
99
100
|
useHistory,
|
|
100
101
|
_useInboxNotificationThread as useInboxNotificationThread,
|
|
101
102
|
useInboxNotifications,
|
|
103
|
+
_useIsInsideRoom as useIsInsideRoom,
|
|
102
104
|
useLostConnectionListener,
|
|
103
105
|
useMarkAllInboxNotificationsAsRead,
|
|
104
106
|
useMarkInboxNotificationAsRead,
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseStorageStatusOptions,\n UseThreadsOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n LiveblocksProvider,\n createLiveblocksContext,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useErrorListener,\n useEventListener,\n useHistory,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useRoomNotificationSettings,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n} from \"./room\";\n\nexport { useCommentsErrorListener, CreateThreadError } from \"./room\";\nexport { selectedThreads } from \"./comments/lib/selected-threads\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useStorageStatus,\n useThreads,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseStorageStatusOptions,\n UseThreadsOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n LiveblocksProvider,\n createLiveblocksContext,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useErrorListener,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useRoomNotificationSettings,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n} from \"./room\";\n\nexport { useCommentsErrorListener, CreateThreadError } from \"./room\";\nexport { selectedThreads } from \"./comments/lib/selected-threads\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useStorageStatus,\n useThreads,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,eAAe;AAXxB,YAAY,UAAU,aAAa,UAAU;","names":[]}
|
|
@@ -345,6 +345,13 @@ declare type SharedContextBundle<U extends BaseUserMeta> = {
|
|
|
345
345
|
* const { info, error, isLoading } = useRoomInfo("room-id");
|
|
346
346
|
*/
|
|
347
347
|
useRoomInfo(roomId: string): RoomInfoAsyncResult;
|
|
348
|
+
/**
|
|
349
|
+
* Returns whether the hook is called within a RoomProvider context.
|
|
350
|
+
*
|
|
351
|
+
* @example
|
|
352
|
+
* const isInsideRoom = useIsInsideRoom();
|
|
353
|
+
*/
|
|
354
|
+
useIsInsideRoom(): boolean;
|
|
348
355
|
};
|
|
349
356
|
suspense: {
|
|
350
357
|
/**
|
|
@@ -365,6 +372,13 @@ declare type SharedContextBundle<U extends BaseUserMeta> = {
|
|
|
365
372
|
* const { info } = useRoomInfo("room-id");
|
|
366
373
|
*/
|
|
367
374
|
useRoomInfo(roomId: string): RoomInfoAsyncSuccess;
|
|
375
|
+
/**
|
|
376
|
+
* Returns whether the hook is called within a RoomProvider context.
|
|
377
|
+
*
|
|
378
|
+
* @example
|
|
379
|
+
* const isInsideRoom = useIsInsideRoom();
|
|
380
|
+
*/
|
|
381
|
+
useIsInsideRoom(): boolean;
|
|
368
382
|
};
|
|
369
383
|
};
|
|
370
384
|
/**
|
|
@@ -1017,7 +1031,10 @@ declare type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetad
|
|
|
1017
1031
|
*/
|
|
1018
1032
|
useUnreadInboxNotificationsCount(): UnreadInboxNotificationsCountState;
|
|
1019
1033
|
/**
|
|
1020
|
-
*
|
|
1034
|
+
* @experimental
|
|
1035
|
+
*
|
|
1036
|
+
* This hook is experimental and could be removed or changed at any time!
|
|
1037
|
+
* Do not use unless explicitely recommended by the Liveblocks team.
|
|
1021
1038
|
*/
|
|
1022
1039
|
useUserThreads_experimental(): ThreadsState<M>;
|
|
1023
1040
|
suspense: Resolve<LiveblocksContextBundleCommon<M> & SharedContextBundle<U>["suspense"] & {
|
|
@@ -1036,7 +1053,10 @@ declare type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetad
|
|
|
1036
1053
|
*/
|
|
1037
1054
|
useUnreadInboxNotificationsCount(): UnreadInboxNotificationsCountStateSuccess;
|
|
1038
1055
|
/**
|
|
1039
|
-
*
|
|
1056
|
+
* @experimental
|
|
1057
|
+
*
|
|
1058
|
+
* This hook is experimental and could be removed or changed at any time!
|
|
1059
|
+
* Do not use unless explicitely recommended by the Liveblocks team.
|
|
1040
1060
|
*/
|
|
1041
1061
|
useUserThreads_experimental(): ThreadsStateSuccess<M>;
|
|
1042
1062
|
}>;
|
|
@@ -1174,11 +1194,17 @@ declare const _useUser: TypedBundle$1["useUser"];
|
|
|
1174
1194
|
*/
|
|
1175
1195
|
declare const _useUserSuspense: TypedBundle$1["suspense"]["useUser"];
|
|
1176
1196
|
/**
|
|
1177
|
-
*
|
|
1197
|
+
* @experimental
|
|
1198
|
+
*
|
|
1199
|
+
* This hook is experimental and could be removed or changed at any time!
|
|
1200
|
+
* Do not use unless explicitely recommended by the Liveblocks team.
|
|
1178
1201
|
*/
|
|
1179
1202
|
declare const _useUserThreads_experimental: TypedBundle$1["useUserThreads_experimental"];
|
|
1180
1203
|
/**
|
|
1181
|
-
*
|
|
1204
|
+
* @experimental
|
|
1205
|
+
*
|
|
1206
|
+
* This hook is experimental and could be removed or changed at any time!
|
|
1207
|
+
* Do not use unless explicitely recommended by the Liveblocks team.
|
|
1182
1208
|
*/
|
|
1183
1209
|
declare const _useUserThreadsSuspense_experimental: TypedBundle$1["suspense"]["useUserThreads_experimental"];
|
|
1184
1210
|
|
|
@@ -1427,6 +1453,13 @@ declare const _useOthersListener: TypedBundle["useOthersListener"];
|
|
|
1427
1453
|
* tree.
|
|
1428
1454
|
*/
|
|
1429
1455
|
declare const _useRoom: TypedBundle["useRoom"];
|
|
1456
|
+
/**
|
|
1457
|
+
* Returns whether the hook is called within a RoomProvider context.
|
|
1458
|
+
*
|
|
1459
|
+
* @example
|
|
1460
|
+
* const isInsideRoom = useIsInsideRoom();
|
|
1461
|
+
*/
|
|
1462
|
+
declare const _useIsInsideRoom: TypedBundle["useIsInsideRoom"];
|
|
1430
1463
|
/**
|
|
1431
1464
|
* Returns a function that adds a reaction from a comment.
|
|
1432
1465
|
*
|
|
@@ -1826,4 +1859,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
1826
1859
|
*/
|
|
1827
1860
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
1828
1861
|
|
|
1829
|
-
export {
|
|
1862
|
+
export { _useOthersMapped as $, _useIsInsideRoom as A, useLostConnectionListener as B, ClientSideSuspense as C, useMarkThreadAsRead as D, _useMutation as E, _useMyPresence as F, _useOthersListener as G, useRedo as H, useRemoveReaction as I, _useRoom as J, useRoomNotificationSettings as K, LiveblocksProvider as L, type MutationContext as M, useStatus as N, _useStorageRoot as O, useThreadSubscription as P, useUndo as Q, RoomContext as R, _useUpdateMyPresence as S, useUpdateRoomNotificationSettings as T, type UseThreadsOptions as U, useCommentsErrorListener as V, CreateThreadError as W, _useOther as X, _useOthers as Y, useOthersConnectionIds as Z, _useInboxNotificationThread as _, type UseStorageStatusOptions as a, _useSelf as a0, _useStorage as a1, useStorageStatus as a2, _useThreads as a3, useInboxNotifications as a4, _useUserThreads_experimental as a5, useRoomInfo as a6, useUnreadInboxNotificationsCount as a7, _useUser as a8, _useOtherSuspense as a9, _useOthersSuspense as aa, useOthersConnectionIdsSuspense as ab, _useOthersMappedSuspense as ac, _useSelfSuspense as ad, _useStorageSuspense as ae, useStorageStatusSuspense as af, _useThreadsSuspense as ag, useInboxNotificationsSuspense as ah, useRoomInfoSuspense as ai, useUnreadInboxNotificationsCountSuspense as aj, _useUserSuspense as ak, _useUserThreadsSuspense_experimental as al, ClientContext as b, createLiveblocksContext as c, useMarkAllInboxNotificationsAsRead as d, useMarkInboxNotificationAsRead as e, useDeleteAllInboxNotifications as f, useDeleteInboxNotification as g, createRoomContext as h, _RoomProvider as i, _useAddReaction as j, useBatch as k, _useBroadcastEvent as l, useCanRedo as m, useCanUndo as n, useCreateComment as o, _useCreateThread as p, useDeleteComment as q, _useDeleteThread as r, useEditComment as s, _useEditThreadMetadata as t, useClient as u, useMarkThreadAsResolved as v, useMarkThreadAsUnresolved as w, useErrorListener as x, _useEventListener as y, useHistory as z };
|
|
@@ -345,6 +345,13 @@ declare type SharedContextBundle<U extends BaseUserMeta> = {
|
|
|
345
345
|
* const { info, error, isLoading } = useRoomInfo("room-id");
|
|
346
346
|
*/
|
|
347
347
|
useRoomInfo(roomId: string): RoomInfoAsyncResult;
|
|
348
|
+
/**
|
|
349
|
+
* Returns whether the hook is called within a RoomProvider context.
|
|
350
|
+
*
|
|
351
|
+
* @example
|
|
352
|
+
* const isInsideRoom = useIsInsideRoom();
|
|
353
|
+
*/
|
|
354
|
+
useIsInsideRoom(): boolean;
|
|
348
355
|
};
|
|
349
356
|
suspense: {
|
|
350
357
|
/**
|
|
@@ -365,6 +372,13 @@ declare type SharedContextBundle<U extends BaseUserMeta> = {
|
|
|
365
372
|
* const { info } = useRoomInfo("room-id");
|
|
366
373
|
*/
|
|
367
374
|
useRoomInfo(roomId: string): RoomInfoAsyncSuccess;
|
|
375
|
+
/**
|
|
376
|
+
* Returns whether the hook is called within a RoomProvider context.
|
|
377
|
+
*
|
|
378
|
+
* @example
|
|
379
|
+
* const isInsideRoom = useIsInsideRoom();
|
|
380
|
+
*/
|
|
381
|
+
useIsInsideRoom(): boolean;
|
|
368
382
|
};
|
|
369
383
|
};
|
|
370
384
|
/**
|
|
@@ -1017,7 +1031,10 @@ declare type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetad
|
|
|
1017
1031
|
*/
|
|
1018
1032
|
useUnreadInboxNotificationsCount(): UnreadInboxNotificationsCountState;
|
|
1019
1033
|
/**
|
|
1020
|
-
*
|
|
1034
|
+
* @experimental
|
|
1035
|
+
*
|
|
1036
|
+
* This hook is experimental and could be removed or changed at any time!
|
|
1037
|
+
* Do not use unless explicitely recommended by the Liveblocks team.
|
|
1021
1038
|
*/
|
|
1022
1039
|
useUserThreads_experimental(): ThreadsState<M>;
|
|
1023
1040
|
suspense: Resolve<LiveblocksContextBundleCommon<M> & SharedContextBundle<U>["suspense"] & {
|
|
@@ -1036,7 +1053,10 @@ declare type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetad
|
|
|
1036
1053
|
*/
|
|
1037
1054
|
useUnreadInboxNotificationsCount(): UnreadInboxNotificationsCountStateSuccess;
|
|
1038
1055
|
/**
|
|
1039
|
-
*
|
|
1056
|
+
* @experimental
|
|
1057
|
+
*
|
|
1058
|
+
* This hook is experimental and could be removed or changed at any time!
|
|
1059
|
+
* Do not use unless explicitely recommended by the Liveblocks team.
|
|
1040
1060
|
*/
|
|
1041
1061
|
useUserThreads_experimental(): ThreadsStateSuccess<M>;
|
|
1042
1062
|
}>;
|
|
@@ -1174,11 +1194,17 @@ declare const _useUser: TypedBundle$1["useUser"];
|
|
|
1174
1194
|
*/
|
|
1175
1195
|
declare const _useUserSuspense: TypedBundle$1["suspense"]["useUser"];
|
|
1176
1196
|
/**
|
|
1177
|
-
*
|
|
1197
|
+
* @experimental
|
|
1198
|
+
*
|
|
1199
|
+
* This hook is experimental and could be removed or changed at any time!
|
|
1200
|
+
* Do not use unless explicitely recommended by the Liveblocks team.
|
|
1178
1201
|
*/
|
|
1179
1202
|
declare const _useUserThreads_experimental: TypedBundle$1["useUserThreads_experimental"];
|
|
1180
1203
|
/**
|
|
1181
|
-
*
|
|
1204
|
+
* @experimental
|
|
1205
|
+
*
|
|
1206
|
+
* This hook is experimental and could be removed or changed at any time!
|
|
1207
|
+
* Do not use unless explicitely recommended by the Liveblocks team.
|
|
1182
1208
|
*/
|
|
1183
1209
|
declare const _useUserThreadsSuspense_experimental: TypedBundle$1["suspense"]["useUserThreads_experimental"];
|
|
1184
1210
|
|
|
@@ -1427,6 +1453,13 @@ declare const _useOthersListener: TypedBundle["useOthersListener"];
|
|
|
1427
1453
|
* tree.
|
|
1428
1454
|
*/
|
|
1429
1455
|
declare const _useRoom: TypedBundle["useRoom"];
|
|
1456
|
+
/**
|
|
1457
|
+
* Returns whether the hook is called within a RoomProvider context.
|
|
1458
|
+
*
|
|
1459
|
+
* @example
|
|
1460
|
+
* const isInsideRoom = useIsInsideRoom();
|
|
1461
|
+
*/
|
|
1462
|
+
declare const _useIsInsideRoom: TypedBundle["useIsInsideRoom"];
|
|
1430
1463
|
/**
|
|
1431
1464
|
* Returns a function that adds a reaction from a comment.
|
|
1432
1465
|
*
|
|
@@ -1826,4 +1859,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
1826
1859
|
*/
|
|
1827
1860
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
1828
1861
|
|
|
1829
|
-
export {
|
|
1862
|
+
export { _useOthersMapped as $, _useIsInsideRoom as A, useLostConnectionListener as B, ClientSideSuspense as C, useMarkThreadAsRead as D, _useMutation as E, _useMyPresence as F, _useOthersListener as G, useRedo as H, useRemoveReaction as I, _useRoom as J, useRoomNotificationSettings as K, LiveblocksProvider as L, type MutationContext as M, useStatus as N, _useStorageRoot as O, useThreadSubscription as P, useUndo as Q, RoomContext as R, _useUpdateMyPresence as S, useUpdateRoomNotificationSettings as T, type UseThreadsOptions as U, useCommentsErrorListener as V, CreateThreadError as W, _useOther as X, _useOthers as Y, useOthersConnectionIds as Z, _useInboxNotificationThread as _, type UseStorageStatusOptions as a, _useSelf as a0, _useStorage as a1, useStorageStatus as a2, _useThreads as a3, useInboxNotifications as a4, _useUserThreads_experimental as a5, useRoomInfo as a6, useUnreadInboxNotificationsCount as a7, _useUser as a8, _useOtherSuspense as a9, _useOthersSuspense as aa, useOthersConnectionIdsSuspense as ab, _useOthersMappedSuspense as ac, _useSelfSuspense as ad, _useStorageSuspense as ae, useStorageStatusSuspense as af, _useThreadsSuspense as ag, useInboxNotificationsSuspense as ah, useRoomInfoSuspense as ai, useUnreadInboxNotificationsCountSuspense as aj, _useUserSuspense as ak, _useUserThreadsSuspense_experimental as al, ClientContext as b, createLiveblocksContext as c, useMarkAllInboxNotificationsAsRead as d, useMarkInboxNotificationAsRead as e, useDeleteAllInboxNotifications as f, useDeleteInboxNotification as g, createRoomContext as h, _RoomProvider as i, _useAddReaction as j, useBatch as k, _useBroadcastEvent as l, useCanRedo as m, useCanUndo as n, useCreateComment as o, _useCreateThread as p, useDeleteComment as q, _useDeleteThread as r, useEditComment as s, _useEditThreadMetadata as t, useClient as u, useMarkThreadAsResolved as v, useMarkThreadAsUnresolved as w, useErrorListener as x, _useEventListener as y, useHistory as z };
|
package/dist/suspense.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as ClientContext, C as ClientSideSuspense, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, a as UseStorageStatusOptions, U as UseThreadsOptions, j as useAddReaction, k as useBatch, l as useBroadcastEvent, m as useCanRedo, n as useCanUndo, u as useClient, o as useCreateComment, p as useCreateThread, f as useDeleteAllInboxNotifications, q as useDeleteComment, g as useDeleteInboxNotification, r as useDeleteThread, s as useEditComment, t as useEditThreadMetadata, x as useErrorListener, y as useEventListener, z as useHistory, _ as useInboxNotificationThread,
|
|
1
|
+
export { b as ClientContext, C as ClientSideSuspense, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, a as UseStorageStatusOptions, U as UseThreadsOptions, j as useAddReaction, k as useBatch, l as useBroadcastEvent, m as useCanRedo, n as useCanUndo, u as useClient, o as useCreateComment, p as useCreateThread, f as useDeleteAllInboxNotifications, q as useDeleteComment, g as useDeleteInboxNotification, r as useDeleteThread, s as useEditComment, t as useEditThreadMetadata, x as useErrorListener, y as useEventListener, z as useHistory, _ as useInboxNotificationThread, ah as useInboxNotifications, A as useIsInsideRoom, B as useLostConnectionListener, d as useMarkAllInboxNotificationsAsRead, e as useMarkInboxNotificationAsRead, D as useMarkThreadAsRead, v as useMarkThreadAsResolved, w as useMarkThreadAsUnresolved, E as useMutation, F as useMyPresence, a9 as useOther, aa as useOthers, ab as useOthersConnectionIds, G as useOthersListener, ac as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, ai as useRoomInfo, K as useRoomNotificationSettings, ad as useSelf, N as useStatus, ae as useStorage, O as useStorageRoot, af as useStorageStatus, P as useThreadSubscription, ag as useThreads, Q as useUndo, aj as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, ak as useUser, al as useUserThreads_experimental } from './suspense-i9xgTMdV.mjs';
|
|
2
2
|
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@liveblocks/core';
|
package/dist/suspense.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as ClientContext, C as ClientSideSuspense, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, a as UseStorageStatusOptions, U as UseThreadsOptions, j as useAddReaction, k as useBatch, l as useBroadcastEvent, m as useCanRedo, n as useCanUndo, u as useClient, o as useCreateComment, p as useCreateThread, f as useDeleteAllInboxNotifications, q as useDeleteComment, g as useDeleteInboxNotification, r as useDeleteThread, s as useEditComment, t as useEditThreadMetadata, x as useErrorListener, y as useEventListener, z as useHistory, _ as useInboxNotificationThread,
|
|
1
|
+
export { b as ClientContext, C as ClientSideSuspense, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, a as UseStorageStatusOptions, U as UseThreadsOptions, j as useAddReaction, k as useBatch, l as useBroadcastEvent, m as useCanRedo, n as useCanUndo, u as useClient, o as useCreateComment, p as useCreateThread, f as useDeleteAllInboxNotifications, q as useDeleteComment, g as useDeleteInboxNotification, r as useDeleteThread, s as useEditComment, t as useEditThreadMetadata, x as useErrorListener, y as useEventListener, z as useHistory, _ as useInboxNotificationThread, ah as useInboxNotifications, A as useIsInsideRoom, B as useLostConnectionListener, d as useMarkAllInboxNotificationsAsRead, e as useMarkInboxNotificationAsRead, D as useMarkThreadAsRead, v as useMarkThreadAsResolved, w as useMarkThreadAsUnresolved, E as useMutation, F as useMyPresence, a9 as useOther, aa as useOthers, ab as useOthersConnectionIds, G as useOthersListener, ac as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, ai as useRoomInfo, K as useRoomNotificationSettings, ad as useSelf, N as useStatus, ae as useStorage, O as useStorageRoot, af as useStorageStatus, P as useThreadSubscription, ag as useThreads, Q as useUndo, aj as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, ak as useUser, al as useUserThreads_experimental } from './suspense-i9xgTMdV.js';
|
|
2
2
|
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@liveblocks/core';
|
package/dist/suspense.js
CHANGED
|
@@ -57,12 +57,14 @@
|
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
|
|
61
|
+
var _chunkNPUJFQTDjs = require('./chunk-NPUJFQTD.js');
|
|
61
62
|
|
|
62
63
|
// src/suspense.ts
|
|
63
64
|
var _core = require('@liveblocks/core');
|
|
64
65
|
var _client = require('@liveblocks/client');
|
|
65
|
-
_core.detectDupes.call(void 0,
|
|
66
|
+
_core.detectDupes.call(void 0, _chunkNPUJFQTDjs.PKG_NAME, _chunkNPUJFQTDjs.PKG_VERSION, _chunkNPUJFQTDjs.PKG_FORMAT);
|
|
67
|
+
|
|
66
68
|
|
|
67
69
|
|
|
68
70
|
|
|
@@ -120,5 +122,5 @@ _core.detectDupes.call(void 0, _chunkBLG6G4JWjs.PKG_NAME, _chunkBLG6G4JWjs.PKG_V
|
|
|
120
122
|
|
|
121
123
|
|
|
122
124
|
|
|
123
|
-
exports.ClientContext =
|
|
125
|
+
exports.ClientContext = _chunkNPUJFQTDjs.ClientContext; exports.ClientSideSuspense = _chunkNPUJFQTDjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkNPUJFQTDjs.LiveblocksProvider; exports.RoomContext = _chunkNPUJFQTDjs.RoomContext; exports.RoomProvider = _chunkNPUJFQTDjs._RoomProvider; exports.shallow = _client.shallow; exports.useAddReaction = _chunkNPUJFQTDjs._useAddReaction; exports.useBatch = _chunkNPUJFQTDjs.useBatch; exports.useBroadcastEvent = _chunkNPUJFQTDjs._useBroadcastEvent; exports.useCanRedo = _chunkNPUJFQTDjs.useCanRedo; exports.useCanUndo = _chunkNPUJFQTDjs.useCanUndo; exports.useClient = _chunkNPUJFQTDjs.useClient; exports.useCreateComment = _chunkNPUJFQTDjs.useCreateComment; exports.useCreateThread = _chunkNPUJFQTDjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkNPUJFQTDjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkNPUJFQTDjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkNPUJFQTDjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkNPUJFQTDjs._useDeleteThread; exports.useEditComment = _chunkNPUJFQTDjs.useEditComment; exports.useEditThreadMetadata = _chunkNPUJFQTDjs._useEditThreadMetadata; exports.useErrorListener = _chunkNPUJFQTDjs.useErrorListener; exports.useEventListener = _chunkNPUJFQTDjs._useEventListener; exports.useHistory = _chunkNPUJFQTDjs.useHistory; exports.useInboxNotificationThread = _chunkNPUJFQTDjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkNPUJFQTDjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkNPUJFQTDjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkNPUJFQTDjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkNPUJFQTDjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkNPUJFQTDjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkNPUJFQTDjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkNPUJFQTDjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkNPUJFQTDjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkNPUJFQTDjs._useMutation; exports.useMyPresence = _chunkNPUJFQTDjs._useMyPresence; exports.useOther = _chunkNPUJFQTDjs._useOtherSuspense; exports.useOthers = _chunkNPUJFQTDjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkNPUJFQTDjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkNPUJFQTDjs._useOthersListener; exports.useOthersMapped = _chunkNPUJFQTDjs._useOthersMappedSuspense; exports.useRedo = _chunkNPUJFQTDjs.useRedo; exports.useRemoveReaction = _chunkNPUJFQTDjs.useRemoveReaction; exports.useRoom = _chunkNPUJFQTDjs._useRoom; exports.useRoomInfo = _chunkNPUJFQTDjs.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunkNPUJFQTDjs.useRoomNotificationSettings; exports.useSelf = _chunkNPUJFQTDjs._useSelfSuspense; exports.useStatus = _chunkNPUJFQTDjs.useStatus; exports.useStorage = _chunkNPUJFQTDjs._useStorageSuspense; exports.useStorageRoot = _chunkNPUJFQTDjs._useStorageRoot; exports.useStorageStatus = _chunkNPUJFQTDjs.useStorageStatusSuspense; exports.useThreadSubscription = _chunkNPUJFQTDjs.useThreadSubscription; exports.useThreads = _chunkNPUJFQTDjs._useThreadsSuspense; exports.useUndo = _chunkNPUJFQTDjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkNPUJFQTDjs.useUnreadInboxNotificationsCountSuspense; exports.useUpdateMyPresence = _chunkNPUJFQTDjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkNPUJFQTDjs.useUpdateRoomNotificationSettings; exports.useUser = _chunkNPUJFQTDjs._useUserSuspense; exports.useUserThreads_experimental = _chunkNPUJFQTDjs._useUserThreadsSuspense_experimental;
|
|
124
126
|
//# sourceMappingURL=suspense.js.map
|
package/dist/suspense.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/suspense.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/suspense.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,eAAe;AAXxB,YAAY,UAAU,aAAa,UAAU","sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseStorageStatusOptions,\n UseThreadsOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n LiveblocksProvider,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n} from \"./liveblocks\";\nexport {\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useErrorListener,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useRoomNotificationSettings,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n} from \"./room\";\n\n// Export the Suspense versions of our hooks\n// (This part differs from src/index.ts)\nexport {\n useOtherSuspense as useOther,\n useOthersSuspense as useOthers,\n useOthersConnectionIdsSuspense as useOthersConnectionIds,\n useOthersMappedSuspense as useOthersMapped,\n useSelfSuspense as useSelf,\n useStorageSuspense as useStorage,\n useStorageStatusSuspense as useStorageStatus,\n useThreadsSuspense as useThreads,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useRoomInfoSuspense as useRoomInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n} from \"./liveblocks\";\n"]}
|
package/dist/suspense.mjs
CHANGED
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
_useEditThreadMetadata,
|
|
15
15
|
_useEventListener,
|
|
16
16
|
_useInboxNotificationThread,
|
|
17
|
+
_useIsInsideRoom,
|
|
17
18
|
_useMutation,
|
|
18
19
|
_useMyPresence,
|
|
19
20
|
_useOtherSuspense,
|
|
@@ -57,7 +58,7 @@ import {
|
|
|
57
58
|
useUndo,
|
|
58
59
|
useUnreadInboxNotificationsCountSuspense,
|
|
59
60
|
useUpdateRoomNotificationSettings
|
|
60
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-SIEZLPM7.mjs";
|
|
61
62
|
|
|
62
63
|
// src/suspense.ts
|
|
63
64
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -89,6 +90,7 @@ export {
|
|
|
89
90
|
useHistory,
|
|
90
91
|
_useInboxNotificationThread as useInboxNotificationThread,
|
|
91
92
|
useInboxNotificationsSuspense as useInboxNotifications,
|
|
93
|
+
_useIsInsideRoom as useIsInsideRoom,
|
|
92
94
|
useLostConnectionListener,
|
|
93
95
|
useMarkAllInboxNotificationsAsRead,
|
|
94
96
|
useMarkInboxNotificationAsRead,
|
package/dist/suspense.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/suspense.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseStorageStatusOptions,\n UseThreadsOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n LiveblocksProvider,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n} from \"./liveblocks\";\nexport {\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useErrorListener,\n useEventListener,\n useHistory,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useRoomNotificationSettings,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n} from \"./room\";\n\n// Export the Suspense versions of our hooks\n// (This part differs from src/index.ts)\nexport {\n useOtherSuspense as useOther,\n useOthersSuspense as useOthers,\n useOthersConnectionIdsSuspense as useOthersConnectionIds,\n useOthersMappedSuspense as useOthersMapped,\n useSelfSuspense as useSelf,\n useStorageSuspense as useStorage,\n useStorageStatusSuspense as useStorageStatus,\n useThreadsSuspense as useThreads,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useRoomInfoSuspense as useRoomInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n} from \"./liveblocks\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/suspense.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseStorageStatusOptions,\n UseThreadsOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n LiveblocksProvider,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n} from \"./liveblocks\";\nexport {\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useErrorListener,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useRoomNotificationSettings,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n} from \"./room\";\n\n// Export the Suspense versions of our hooks\n// (This part differs from src/index.ts)\nexport {\n useOtherSuspense as useOther,\n useOthersSuspense as useOthers,\n useOthersConnectionIdsSuspense as useOthersConnectionIds,\n useOthersMappedSuspense as useOthersMapped,\n useSelfSuspense as useSelf,\n useStorageSuspense as useStorage,\n useStorageStatusSuspense as useStorageStatus,\n useThreadsSuspense as useThreads,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useRoomInfoSuspense as useRoomInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,eAAe;AAXxB,YAAY,UAAU,aAAa,UAAU;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liveblocks/react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
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",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"test:watch": "jest --silent --verbose --color=always --watch"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@liveblocks/client": "2.
|
|
51
|
-
"@liveblocks/core": "2.
|
|
50
|
+
"@liveblocks/client": "2.5.0",
|
|
51
|
+
"@liveblocks/core": "2.5.0",
|
|
52
52
|
"use-sync-external-store": "^1.2.2"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|