@liveblocks/react 2.4.1-test3 → 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-JIDHPULE.js → chunk-NPUJFQTD.js} +154 -142
- package/dist/chunk-NPUJFQTD.js.map +1 -0
- package/dist/{chunk-T6YOAS5Z.mjs → chunk-SIEZLPM7.mjs} +191 -179
- 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 +7 -5
- package/dist/index.mjs.map +1 -1
- package/dist/{suspense-OBA-zP4D.d.mts → suspense-i9xgTMdV.d.mts} +51 -10
- package/dist/{suspense-OBA-zP4D.d.ts → suspense-i9xgTMdV.d.ts} +51 -10
- 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 +7 -5
- package/dist/suspense.mjs.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-JIDHPULE.js.map +0 -1
- package/dist/chunk-T6YOAS5Z.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, _chunkJIDHPULEjs.PKG_NAME, _chunkJIDHPULEjs.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,
|
|
@@ -28,6 +29,7 @@ import {
|
|
|
28
29
|
_useThreads,
|
|
29
30
|
_useUpdateMyPresence,
|
|
30
31
|
_useUser,
|
|
32
|
+
_useUserThreads_experimental,
|
|
31
33
|
createLiveblocksContext,
|
|
32
34
|
createRoomContext,
|
|
33
35
|
selectedThreads,
|
|
@@ -60,9 +62,8 @@ import {
|
|
|
60
62
|
useThreadSubscription,
|
|
61
63
|
useUndo,
|
|
62
64
|
useUnreadInboxNotificationsCount,
|
|
63
|
-
useUpdateRoomNotificationSettings
|
|
64
|
-
|
|
65
|
-
} from "./chunk-T6YOAS5Z.mjs";
|
|
65
|
+
useUpdateRoomNotificationSettings
|
|
66
|
+
} from "./chunk-SIEZLPM7.mjs";
|
|
66
67
|
|
|
67
68
|
// src/index.ts
|
|
68
69
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -77,7 +78,6 @@ export {
|
|
|
77
78
|
_RoomProvider as RoomProvider,
|
|
78
79
|
createLiveblocksContext,
|
|
79
80
|
createRoomContext,
|
|
80
|
-
useUserThreads as experimental_useUserThreads,
|
|
81
81
|
selectedThreads,
|
|
82
82
|
shallow,
|
|
83
83
|
_useAddReaction as useAddReaction,
|
|
@@ -100,6 +100,7 @@ export {
|
|
|
100
100
|
useHistory,
|
|
101
101
|
_useInboxNotificationThread as useInboxNotificationThread,
|
|
102
102
|
useInboxNotifications,
|
|
103
|
+
_useIsInsideRoom as useIsInsideRoom,
|
|
103
104
|
useLostConnectionListener,
|
|
104
105
|
useMarkAllInboxNotificationsAsRead,
|
|
105
106
|
useMarkInboxNotificationAsRead,
|
|
@@ -129,6 +130,7 @@ export {
|
|
|
129
130
|
useUnreadInboxNotificationsCount,
|
|
130
131
|
_useUpdateMyPresence as useUpdateMyPresence,
|
|
131
132
|
useUpdateRoomNotificationSettings,
|
|
132
|
-
_useUser as useUser
|
|
133
|
+
_useUser as useUser,
|
|
134
|
+
_useUserThreads_experimental as useUserThreads_experimental
|
|
133
135
|
};
|
|
134
136
|
//# sourceMappingURL=index.mjs.map
|
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
|
|
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":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import React__default, { ReactNode, PropsWithChildren } from 'react';
|
|
3
3
|
import { JsonObject, LsonObject, BaseUserMeta, LiveObject, User, Json, RoomNotificationSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, Client as Client$1, BaseMetadata as BaseMetadata$1 } from '@liveblocks/client';
|
|
4
|
-
import { BaseMetadata, CommentBody, Patchable, QueryMetadata, StorageStatus, AsyncResultWithDataField, DRI, Resolve,
|
|
4
|
+
import { BaseMetadata, CommentBody, Patchable, QueryMetadata, StorageStatus, AsyncResultWithDataField, DRI, Resolve, InboxNotificationData, ToImmutable, ThreadData, Client, LiveblocksError, RoomEventMessage, CommentData, PartialUnless, OpaqueClient, DU, ClientOptions, DM, OpaqueRoom, RoomNotificationSettings as RoomNotificationSettings$1, DP, DS, DE } from '@liveblocks/core';
|
|
5
5
|
|
|
6
6
|
declare type Props = {
|
|
7
7
|
fallback: ReactNode;
|
|
@@ -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
|
/**
|
|
@@ -1016,6 +1030,13 @@ declare type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetad
|
|
|
1016
1030
|
* const { count, error, isLoading } = useUnreadInboxNotificationsCount();
|
|
1017
1031
|
*/
|
|
1018
1032
|
useUnreadInboxNotificationsCount(): UnreadInboxNotificationsCountState;
|
|
1033
|
+
/**
|
|
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.
|
|
1038
|
+
*/
|
|
1039
|
+
useUserThreads_experimental(): ThreadsState<M>;
|
|
1019
1040
|
suspense: Resolve<LiveblocksContextBundleCommon<M> & SharedContextBundle<U>["suspense"] & {
|
|
1020
1041
|
/**
|
|
1021
1042
|
* Returns the inbox notifications for the current user.
|
|
@@ -1031,6 +1052,13 @@ declare type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetad
|
|
|
1031
1052
|
* const { count } = useUnreadInboxNotificationsCount();
|
|
1032
1053
|
*/
|
|
1033
1054
|
useUnreadInboxNotificationsCount(): UnreadInboxNotificationsCountStateSuccess;
|
|
1055
|
+
/**
|
|
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.
|
|
1060
|
+
*/
|
|
1061
|
+
useUserThreads_experimental(): ThreadsStateSuccess<M>;
|
|
1034
1062
|
}>;
|
|
1035
1063
|
}>;
|
|
1036
1064
|
|
|
@@ -1060,14 +1088,6 @@ declare function LiveblocksProvider<U extends BaseUserMeta = DU>(props: PropsWit
|
|
|
1060
1088
|
* settings from the given client instead.
|
|
1061
1089
|
*/
|
|
1062
1090
|
declare function createLiveblocksContext<U extends BaseUserMeta = DU, M extends BaseMetadata$1 = DM>(client: OpaqueClient): LiveblocksContextBundle<U, M>;
|
|
1063
|
-
/**
|
|
1064
|
-
* Experimental hook that could be removed at any time! Do not use unless explicitely recommended
|
|
1065
|
-
*/
|
|
1066
|
-
declare function useUserThreads(): ThreadsState<BaseMetadata$1>;
|
|
1067
|
-
/**
|
|
1068
|
-
* Experimental hook that could be removed at any time! Do not use unless explicitely recommended
|
|
1069
|
-
*/
|
|
1070
|
-
declare function useUserThreadsSuspense(): ThreadsStateResolved<BaseMetadata$1>;
|
|
1071
1091
|
/**
|
|
1072
1092
|
* Returns the inbox notifications for the current user.
|
|
1073
1093
|
*
|
|
@@ -1173,6 +1193,20 @@ declare const _useUser: TypedBundle$1["useUser"];
|
|
|
1173
1193
|
* const { user } = useUser("user-id");
|
|
1174
1194
|
*/
|
|
1175
1195
|
declare const _useUserSuspense: TypedBundle$1["suspense"]["useUser"];
|
|
1196
|
+
/**
|
|
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.
|
|
1201
|
+
*/
|
|
1202
|
+
declare const _useUserThreads_experimental: TypedBundle$1["useUserThreads_experimental"];
|
|
1203
|
+
/**
|
|
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.
|
|
1208
|
+
*/
|
|
1209
|
+
declare const _useUserThreadsSuspense_experimental: TypedBundle$1["suspense"]["useUserThreads_experimental"];
|
|
1176
1210
|
|
|
1177
1211
|
/**
|
|
1178
1212
|
* Raw access to the React context where the RoomProvider stores the current
|
|
@@ -1419,6 +1453,13 @@ declare const _useOthersListener: TypedBundle["useOthersListener"];
|
|
|
1419
1453
|
* tree.
|
|
1420
1454
|
*/
|
|
1421
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"];
|
|
1422
1463
|
/**
|
|
1423
1464
|
* Returns a function that adds a reaction from a comment.
|
|
1424
1465
|
*
|
|
@@ -1818,4 +1859,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
1818
1859
|
*/
|
|
1819
1860
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
1820
1861
|
|
|
1821
|
-
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 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import React__default, { ReactNode, PropsWithChildren } from 'react';
|
|
3
3
|
import { JsonObject, LsonObject, BaseUserMeta, LiveObject, User, Json, RoomNotificationSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, Client as Client$1, BaseMetadata as BaseMetadata$1 } from '@liveblocks/client';
|
|
4
|
-
import { BaseMetadata, CommentBody, Patchable, QueryMetadata, StorageStatus, AsyncResultWithDataField, DRI, Resolve,
|
|
4
|
+
import { BaseMetadata, CommentBody, Patchable, QueryMetadata, StorageStatus, AsyncResultWithDataField, DRI, Resolve, InboxNotificationData, ToImmutable, ThreadData, Client, LiveblocksError, RoomEventMessage, CommentData, PartialUnless, OpaqueClient, DU, ClientOptions, DM, OpaqueRoom, RoomNotificationSettings as RoomNotificationSettings$1, DP, DS, DE } from '@liveblocks/core';
|
|
5
5
|
|
|
6
6
|
declare type Props = {
|
|
7
7
|
fallback: ReactNode;
|
|
@@ -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
|
/**
|
|
@@ -1016,6 +1030,13 @@ declare type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetad
|
|
|
1016
1030
|
* const { count, error, isLoading } = useUnreadInboxNotificationsCount();
|
|
1017
1031
|
*/
|
|
1018
1032
|
useUnreadInboxNotificationsCount(): UnreadInboxNotificationsCountState;
|
|
1033
|
+
/**
|
|
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.
|
|
1038
|
+
*/
|
|
1039
|
+
useUserThreads_experimental(): ThreadsState<M>;
|
|
1019
1040
|
suspense: Resolve<LiveblocksContextBundleCommon<M> & SharedContextBundle<U>["suspense"] & {
|
|
1020
1041
|
/**
|
|
1021
1042
|
* Returns the inbox notifications for the current user.
|
|
@@ -1031,6 +1052,13 @@ declare type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetad
|
|
|
1031
1052
|
* const { count } = useUnreadInboxNotificationsCount();
|
|
1032
1053
|
*/
|
|
1033
1054
|
useUnreadInboxNotificationsCount(): UnreadInboxNotificationsCountStateSuccess;
|
|
1055
|
+
/**
|
|
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.
|
|
1060
|
+
*/
|
|
1061
|
+
useUserThreads_experimental(): ThreadsStateSuccess<M>;
|
|
1034
1062
|
}>;
|
|
1035
1063
|
}>;
|
|
1036
1064
|
|
|
@@ -1060,14 +1088,6 @@ declare function LiveblocksProvider<U extends BaseUserMeta = DU>(props: PropsWit
|
|
|
1060
1088
|
* settings from the given client instead.
|
|
1061
1089
|
*/
|
|
1062
1090
|
declare function createLiveblocksContext<U extends BaseUserMeta = DU, M extends BaseMetadata$1 = DM>(client: OpaqueClient): LiveblocksContextBundle<U, M>;
|
|
1063
|
-
/**
|
|
1064
|
-
* Experimental hook that could be removed at any time! Do not use unless explicitely recommended
|
|
1065
|
-
*/
|
|
1066
|
-
declare function useUserThreads(): ThreadsState<BaseMetadata$1>;
|
|
1067
|
-
/**
|
|
1068
|
-
* Experimental hook that could be removed at any time! Do not use unless explicitely recommended
|
|
1069
|
-
*/
|
|
1070
|
-
declare function useUserThreadsSuspense(): ThreadsStateResolved<BaseMetadata$1>;
|
|
1071
1091
|
/**
|
|
1072
1092
|
* Returns the inbox notifications for the current user.
|
|
1073
1093
|
*
|
|
@@ -1173,6 +1193,20 @@ declare const _useUser: TypedBundle$1["useUser"];
|
|
|
1173
1193
|
* const { user } = useUser("user-id");
|
|
1174
1194
|
*/
|
|
1175
1195
|
declare const _useUserSuspense: TypedBundle$1["suspense"]["useUser"];
|
|
1196
|
+
/**
|
|
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.
|
|
1201
|
+
*/
|
|
1202
|
+
declare const _useUserThreads_experimental: TypedBundle$1["useUserThreads_experimental"];
|
|
1203
|
+
/**
|
|
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.
|
|
1208
|
+
*/
|
|
1209
|
+
declare const _useUserThreadsSuspense_experimental: TypedBundle$1["suspense"]["useUserThreads_experimental"];
|
|
1176
1210
|
|
|
1177
1211
|
/**
|
|
1178
1212
|
* Raw access to the React context where the RoomProvider stores the current
|
|
@@ -1419,6 +1453,13 @@ declare const _useOthersListener: TypedBundle["useOthersListener"];
|
|
|
1419
1453
|
* tree.
|
|
1420
1454
|
*/
|
|
1421
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"];
|
|
1422
1463
|
/**
|
|
1423
1464
|
* Returns a function that adds a reaction from a comment.
|
|
1424
1465
|
*
|
|
@@ -1818,4 +1859,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
1818
1859
|
*/
|
|
1819
1860
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
1820
1861
|
|
|
1821
|
-
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,
|
|
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,
|
|
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, _chunkJIDHPULEjs.PKG_NAME, _chunkJIDHPULEjs.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,
|
|
@@ -27,6 +28,7 @@ import {
|
|
|
27
28
|
_useThreadsSuspense,
|
|
28
29
|
_useUpdateMyPresence,
|
|
29
30
|
_useUserSuspense,
|
|
31
|
+
_useUserThreadsSuspense_experimental,
|
|
30
32
|
useBatch,
|
|
31
33
|
useCanRedo,
|
|
32
34
|
useCanUndo,
|
|
@@ -55,9 +57,8 @@ import {
|
|
|
55
57
|
useThreadSubscription,
|
|
56
58
|
useUndo,
|
|
57
59
|
useUnreadInboxNotificationsCountSuspense,
|
|
58
|
-
useUpdateRoomNotificationSettings
|
|
59
|
-
|
|
60
|
-
} from "./chunk-T6YOAS5Z.mjs";
|
|
60
|
+
useUpdateRoomNotificationSettings
|
|
61
|
+
} from "./chunk-SIEZLPM7.mjs";
|
|
61
62
|
|
|
62
63
|
// src/suspense.ts
|
|
63
64
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -69,7 +70,6 @@ export {
|
|
|
69
70
|
LiveblocksProvider,
|
|
70
71
|
RoomContext,
|
|
71
72
|
_RoomProvider as RoomProvider,
|
|
72
|
-
useUserThreadsSuspense as experimental_useUserThreads,
|
|
73
73
|
shallow,
|
|
74
74
|
_useAddReaction as useAddReaction,
|
|
75
75
|
useBatch,
|
|
@@ -90,6 +90,7 @@ export {
|
|
|
90
90
|
useHistory,
|
|
91
91
|
_useInboxNotificationThread as useInboxNotificationThread,
|
|
92
92
|
useInboxNotificationsSuspense as useInboxNotifications,
|
|
93
|
+
_useIsInsideRoom as useIsInsideRoom,
|
|
93
94
|
useLostConnectionListener,
|
|
94
95
|
useMarkAllInboxNotificationsAsRead,
|
|
95
96
|
useMarkInboxNotificationAsRead,
|
|
@@ -119,6 +120,7 @@ export {
|
|
|
119
120
|
useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,
|
|
120
121
|
_useUpdateMyPresence as useUpdateMyPresence,
|
|
121
122
|
useUpdateRoomNotificationSettings,
|
|
122
|
-
_useUserSuspense as useUser
|
|
123
|
+
_useUserSuspense as useUser,
|
|
124
|
+
_useUserThreadsSuspense_experimental as useUserThreads_experimental
|
|
123
125
|
};
|
|
124
126
|
//# sourceMappingURL=suspense.mjs.map
|
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
|
|
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": {
|