@liveblocks/react 2.7.0-beta2 → 2.7.0-versions
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-ZEN5B7DF.mjs → chunk-EDJS5J5R.mjs} +145 -76
- package/dist/chunk-EDJS5J5R.mjs.map +1 -0
- package/dist/{chunk-MREN32VN.js → chunk-GN5SQAIY.js} +145 -76
- package/dist/chunk-GN5SQAIY.js.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 +5 -3
- package/dist/index.mjs.map +1 -1
- package/dist/{suspense-JsIIJujn.d.mts → suspense-2UL0jBvg.d.mts} +66 -38
- package/dist/{suspense-JsIIJujn.d.ts → suspense-2UL0jBvg.d.ts} +66 -38
- package/dist/suspense.d.mts +1 -1
- package/dist/suspense.d.ts +1 -1
- package/dist/suspense.js +3 -3
- package/dist/suspense.js.map +1 -1
- package/dist/suspense.mjs +3 -3
- package/dist/suspense.mjs.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-MREN32VN.js.map +0 -1
- package/dist/chunk-ZEN5B7DF.mjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -64,12 +64,14 @@
|
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
|
|
68
|
+
var _chunkGN5SQAIYjs = require('./chunk-GN5SQAIY.js');
|
|
68
69
|
|
|
69
70
|
// src/index.ts
|
|
70
71
|
var _core = require('@liveblocks/core');
|
|
71
72
|
var _client = require('@liveblocks/client');
|
|
72
|
-
_core.detectDupes.call(void 0,
|
|
73
|
+
_core.detectDupes.call(void 0, _chunkGN5SQAIYjs.PKG_NAME, _chunkGN5SQAIYjs.PKG_VERSION, _chunkGN5SQAIYjs.PKG_FORMAT);
|
|
74
|
+
|
|
73
75
|
|
|
74
76
|
|
|
75
77
|
|
|
@@ -134,5 +136,5 @@ _core.detectDupes.call(void 0, _chunkMREN32VNjs.PKG_NAME, _chunkMREN32VNjs.PKG_V
|
|
|
134
136
|
|
|
135
137
|
|
|
136
138
|
|
|
137
|
-
exports.ClientContext =
|
|
139
|
+
exports.ClientContext = _chunkGN5SQAIYjs.ClientContext; exports.ClientSideSuspense = _chunkGN5SQAIYjs.ClientSideSuspense; exports.CreateThreadError = _chunkGN5SQAIYjs.CreateThreadError; exports.LiveblocksProvider = _chunkGN5SQAIYjs.LiveblocksProvider; exports.RoomContext = _chunkGN5SQAIYjs.RoomContext; exports.RoomProvider = _chunkGN5SQAIYjs._RoomProvider; exports.createLiveblocksContext = _chunkGN5SQAIYjs.createLiveblocksContext; exports.createRoomContext = _chunkGN5SQAIYjs.createRoomContext; exports.selectedThreads = _chunkGN5SQAIYjs.selectedThreads; exports.shallow = _client.shallow; exports.useAddReaction = _chunkGN5SQAIYjs._useAddReaction; exports.useBatch = _chunkGN5SQAIYjs.useBatch; exports.useBroadcastEvent = _chunkGN5SQAIYjs._useBroadcastEvent; exports.useCanRedo = _chunkGN5SQAIYjs.useCanRedo; exports.useCanUndo = _chunkGN5SQAIYjs.useCanUndo; exports.useClient = _chunkGN5SQAIYjs.useClient; exports.useCommentsErrorListener = _chunkGN5SQAIYjs.useCommentsErrorListener; exports.useCreateComment = _chunkGN5SQAIYjs.useCreateComment; exports.useCreateThread = _chunkGN5SQAIYjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkGN5SQAIYjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkGN5SQAIYjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkGN5SQAIYjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkGN5SQAIYjs._useDeleteThread; exports.useEditComment = _chunkGN5SQAIYjs.useEditComment; exports.useEditThreadMetadata = _chunkGN5SQAIYjs._useEditThreadMetadata; exports.useErrorListener = _chunkGN5SQAIYjs.useErrorListener; exports.useEventListener = _chunkGN5SQAIYjs._useEventListener; exports.useHistory = _chunkGN5SQAIYjs.useHistory; exports.useHistoryVersionData = _chunkGN5SQAIYjs.useHistoryVersionData; exports.useHistoryVersions = _chunkGN5SQAIYjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkGN5SQAIYjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkGN5SQAIYjs.useInboxNotifications; exports.useIsInsideRoom = _chunkGN5SQAIYjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkGN5SQAIYjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkGN5SQAIYjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkGN5SQAIYjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkGN5SQAIYjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkGN5SQAIYjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkGN5SQAIYjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkGN5SQAIYjs._useMutation; exports.useMyPresence = _chunkGN5SQAIYjs._useMyPresence; exports.useOther = _chunkGN5SQAIYjs._useOther; exports.useOthers = _chunkGN5SQAIYjs._useOthers; exports.useOthersConnectionIds = _chunkGN5SQAIYjs.useOthersConnectionIds; exports.useOthersListener = _chunkGN5SQAIYjs._useOthersListener; exports.useOthersMapped = _chunkGN5SQAIYjs._useOthersMapped; exports.useRedo = _chunkGN5SQAIYjs.useRedo; exports.useRemoveReaction = _chunkGN5SQAIYjs.useRemoveReaction; exports.useRoom = _chunkGN5SQAIYjs._useRoom; exports.useRoomInfo = _chunkGN5SQAIYjs.useRoomInfo; exports.useRoomNotificationSettings = _chunkGN5SQAIYjs.useRoomNotificationSettings; exports.useSelf = _chunkGN5SQAIYjs._useSelf; exports.useStatus = _chunkGN5SQAIYjs.useStatus; exports.useStorage = _chunkGN5SQAIYjs._useStorage; exports.useStorageRoot = _chunkGN5SQAIYjs._useStorageRoot; exports.useStorageStatus = _chunkGN5SQAIYjs.useStorageStatus; exports.useThreadSubscription = _chunkGN5SQAIYjs.useThreadSubscription; exports.useThreads = _chunkGN5SQAIYjs._useThreads; exports.useUndo = _chunkGN5SQAIYjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkGN5SQAIYjs.useUnreadInboxNotificationsCount; exports.useUpdateMyPresence = _chunkGN5SQAIYjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkGN5SQAIYjs.useUpdateRoomNotificationSettings; exports.useUser = _chunkGN5SQAIYjs._useUser; exports.useUserThreads_experimental = _chunkGN5SQAIYjs._useUserThreads_experimental;
|
|
138
140
|
//# 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 useHistoryVersionData,\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 useHistoryVersions,\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
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
_useDeleteThread,
|
|
15
15
|
_useEditThreadMetadata,
|
|
16
16
|
_useEventListener,
|
|
17
|
+
_useHistoryVersions,
|
|
17
18
|
_useInboxNotificationThread,
|
|
18
19
|
_useIsInsideRoom,
|
|
19
20
|
_useMutation,
|
|
@@ -33,7 +34,6 @@ import {
|
|
|
33
34
|
createLiveblocksContext,
|
|
34
35
|
createRoomContext,
|
|
35
36
|
selectedThreads,
|
|
36
|
-
useAttachmentUrl,
|
|
37
37
|
useBatch,
|
|
38
38
|
useCanRedo,
|
|
39
39
|
useCanUndo,
|
|
@@ -46,6 +46,7 @@ import {
|
|
|
46
46
|
useEditComment,
|
|
47
47
|
useErrorListener,
|
|
48
48
|
useHistory,
|
|
49
|
+
useHistoryVersionData,
|
|
49
50
|
useInboxNotifications,
|
|
50
51
|
useLostConnectionListener,
|
|
51
52
|
useMarkAllInboxNotificationsAsRead,
|
|
@@ -64,7 +65,7 @@ import {
|
|
|
64
65
|
useUndo,
|
|
65
66
|
useUnreadInboxNotificationsCount,
|
|
66
67
|
useUpdateRoomNotificationSettings
|
|
67
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-EDJS5J5R.mjs";
|
|
68
69
|
|
|
69
70
|
// src/index.ts
|
|
70
71
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -82,7 +83,6 @@ export {
|
|
|
82
83
|
selectedThreads,
|
|
83
84
|
shallow,
|
|
84
85
|
_useAddReaction as useAddReaction,
|
|
85
|
-
useAttachmentUrl,
|
|
86
86
|
useBatch,
|
|
87
87
|
_useBroadcastEvent as useBroadcastEvent,
|
|
88
88
|
useCanRedo,
|
|
@@ -100,6 +100,8 @@ export {
|
|
|
100
100
|
useErrorListener,
|
|
101
101
|
_useEventListener as useEventListener,
|
|
102
102
|
useHistory,
|
|
103
|
+
useHistoryVersionData,
|
|
104
|
+
_useHistoryVersions as useHistoryVersions,
|
|
103
105
|
_useInboxNotificationThread as useInboxNotificationThread,
|
|
104
106
|
useInboxNotifications,
|
|
105
107
|
_useIsInsideRoom as useIsInsideRoom,
|
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 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
|
|
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 useHistoryVersionData,\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 useHistoryVersions,\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, HistoryVersion, 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;
|
|
@@ -169,14 +169,8 @@ declare type RoomInfoAsyncSuccess = Resolve<RoomInfoAsyncResult & {
|
|
|
169
169
|
readonly isLoading: false;
|
|
170
170
|
readonly error?: undefined;
|
|
171
171
|
}>;
|
|
172
|
-
declare type AttachmentUrlAsyncResult = AsyncResultWithDataField<string, "url">;
|
|
173
|
-
declare type AttachmentUrlAsyncSuccess = Resolve<AttachmentUrlAsyncResult & {
|
|
174
|
-
readonly isLoading: false;
|
|
175
|
-
readonly error?: undefined;
|
|
176
|
-
}>;
|
|
177
172
|
declare type CreateThreadOptions<M extends BaseMetadata> = Resolve<{
|
|
178
173
|
body: CommentBody;
|
|
179
|
-
attachments?: CommentAttachment[];
|
|
180
174
|
} & PartialUnless<M, {
|
|
181
175
|
metadata: M;
|
|
182
176
|
}>>;
|
|
@@ -187,13 +181,11 @@ declare type EditThreadMetadataOptions<M extends BaseMetadata> = {
|
|
|
187
181
|
declare type CreateCommentOptions = {
|
|
188
182
|
threadId: string;
|
|
189
183
|
body: CommentBody;
|
|
190
|
-
attachments?: CommentAttachment[];
|
|
191
184
|
};
|
|
192
185
|
declare type EditCommentOptions = {
|
|
193
186
|
threadId: string;
|
|
194
187
|
commentId: string;
|
|
195
188
|
body: CommentBody;
|
|
196
|
-
attachments?: CommentAttachment[];
|
|
197
189
|
};
|
|
198
190
|
declare type DeleteCommentOptions = {
|
|
199
191
|
threadId: string;
|
|
@@ -268,6 +260,38 @@ declare type RoomNotificationSettingsStateSuccess = {
|
|
|
268
260
|
error?: never;
|
|
269
261
|
};
|
|
270
262
|
declare type RoomNotificationSettingsState = RoomNotificationSettingsStateLoading | RoomNotificationSettingsStateError | RoomNotificationSettingsStateSuccess;
|
|
263
|
+
declare type HistoryVersionDataStateLoading = {
|
|
264
|
+
isLoading: true;
|
|
265
|
+
data?: never;
|
|
266
|
+
error?: never;
|
|
267
|
+
};
|
|
268
|
+
declare type HistoryVersionDataStateResolved = {
|
|
269
|
+
isLoading: false;
|
|
270
|
+
data: Uint8Array;
|
|
271
|
+
error?: Error;
|
|
272
|
+
};
|
|
273
|
+
declare type HistoryVersionDataStateError = {
|
|
274
|
+
isLoading: false;
|
|
275
|
+
data?: never;
|
|
276
|
+
error: Error;
|
|
277
|
+
};
|
|
278
|
+
declare type HistoryVersionDataState = HistoryVersionDataStateLoading | HistoryVersionDataStateResolved | HistoryVersionDataStateError;
|
|
279
|
+
declare type HistoryVersionsStateLoading = {
|
|
280
|
+
isLoading: true;
|
|
281
|
+
versions?: never;
|
|
282
|
+
error?: never;
|
|
283
|
+
};
|
|
284
|
+
declare type HistoryVersionsStateResolved = {
|
|
285
|
+
isLoading: false;
|
|
286
|
+
versions: HistoryVersion[];
|
|
287
|
+
error?: Error;
|
|
288
|
+
};
|
|
289
|
+
declare type HistoryVersionsStateError = {
|
|
290
|
+
isLoading: false;
|
|
291
|
+
versions?: never;
|
|
292
|
+
error: Error;
|
|
293
|
+
};
|
|
294
|
+
declare type HistoryVersionsState = HistoryVersionsStateLoading | HistoryVersionsStateResolved | HistoryVersionsStateError;
|
|
271
295
|
declare type RoomProviderProps<P extends JsonObject, S extends LsonObject> = Resolve<{
|
|
272
296
|
/**
|
|
273
297
|
* The id of the room you want to connect to
|
|
@@ -891,12 +915,19 @@ declare type RoomContextBundle<P extends JsonObject, S extends LsonObject, U ext
|
|
|
891
915
|
(settings: Partial<RoomNotificationSettings>) => void
|
|
892
916
|
];
|
|
893
917
|
/**
|
|
894
|
-
* Returns a
|
|
918
|
+
* Returns a history of versions of the current room.
|
|
919
|
+
*
|
|
920
|
+
* @example
|
|
921
|
+
* const { versions, error, isLoading } = useHistoryVersions();
|
|
922
|
+
*/
|
|
923
|
+
useHistoryVersions(): HistoryVersionsState;
|
|
924
|
+
/**
|
|
925
|
+
* Returns the data of a specific version of the current room.
|
|
895
926
|
*
|
|
896
927
|
* @example
|
|
897
|
-
* const {
|
|
928
|
+
* const { data, error, isLoading } = useHistoryVersionData(version.id);
|
|
898
929
|
*/
|
|
899
|
-
|
|
930
|
+
useHistoryVersionData(id: string): HistoryVersionDataState;
|
|
900
931
|
suspense: Resolve<RoomContextBundleCommon<P, S, U, E, M> & SharedContextBundle<U>["suspense"] & {
|
|
901
932
|
/**
|
|
902
933
|
* Returns the current storage status for the Room, and triggers
|
|
@@ -959,6 +990,13 @@ declare type RoomContextBundle<P extends JsonObject, S extends LsonObject, U ext
|
|
|
959
990
|
* const { threads } = useThreads();
|
|
960
991
|
*/
|
|
961
992
|
useThreads(options?: UseThreadsOptions<M>): ThreadsStateSuccess<M>;
|
|
993
|
+
/**
|
|
994
|
+
* Returns a history of versions of the current room.
|
|
995
|
+
*
|
|
996
|
+
* @example
|
|
997
|
+
* const { versions } = useHistoryVersions();
|
|
998
|
+
*/
|
|
999
|
+
useHistoryVersions(): HistoryVersionsStateResolved;
|
|
962
1000
|
/**
|
|
963
1001
|
* Returns the user's notification settings for the current room
|
|
964
1002
|
* and a function to update them.
|
|
@@ -970,13 +1008,6 @@ declare type RoomContextBundle<P extends JsonObject, S extends LsonObject, U ext
|
|
|
970
1008
|
RoomNotificationSettingsStateSuccess,
|
|
971
1009
|
(settings: Partial<RoomNotificationSettings>) => void
|
|
972
1010
|
];
|
|
973
|
-
/**
|
|
974
|
-
* Returns a presigned URL for an attachment by its ID.
|
|
975
|
-
*
|
|
976
|
-
* @example
|
|
977
|
-
* const { url } = useAttachmentUrl("at_xxx");
|
|
978
|
-
*/
|
|
979
|
-
useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncSuccess;
|
|
980
1011
|
}>;
|
|
981
1012
|
} & PrivateRoomContextApi>;
|
|
982
1013
|
/**
|
|
@@ -1405,6 +1436,7 @@ declare function useRoomNotificationSettings(): [
|
|
|
1405
1436
|
RoomNotificationSettingsState,
|
|
1406
1437
|
(settings: Partial<RoomNotificationSettings$1>) => void
|
|
1407
1438
|
];
|
|
1439
|
+
declare function useHistoryVersionData(versionId: string): HistoryVersionDataState;
|
|
1408
1440
|
/**
|
|
1409
1441
|
* Returns a function that updates the user's notification settings
|
|
1410
1442
|
* for the current room.
|
|
@@ -1435,24 +1467,6 @@ declare function useOthersConnectionIdsSuspense(): readonly number[];
|
|
|
1435
1467
|
* indicator.
|
|
1436
1468
|
*/
|
|
1437
1469
|
declare function useStorageStatusSuspense(options?: UseStorageStatusOptions): StorageStatusSuccess;
|
|
1438
|
-
/**
|
|
1439
|
-
* Returns a presigned URL for an attachment by its ID.
|
|
1440
|
-
*
|
|
1441
|
-
* @example
|
|
1442
|
-
* const { url, error, isLoading } = useAttachmentUrl("at_xxx");
|
|
1443
|
-
*/
|
|
1444
|
-
declare function useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncResult;
|
|
1445
|
-
/**
|
|
1446
|
-
* Returns a presigned URL for an attachment by its ID.
|
|
1447
|
-
*
|
|
1448
|
-
* @example
|
|
1449
|
-
* const { url } = useAttachmentUrl("at_xxx");
|
|
1450
|
-
*/
|
|
1451
|
-
declare function useAttachmentUrlSuspense(attachmentId: string): {
|
|
1452
|
-
readonly isLoading: false;
|
|
1453
|
-
readonly url: string;
|
|
1454
|
-
readonly error: undefined;
|
|
1455
|
-
};
|
|
1456
1470
|
/**
|
|
1457
1471
|
* Creates a RoomProvider and a set of typed hooks to use in your app. Note
|
|
1458
1472
|
* that any RoomProvider created in this way does not need to be nested in
|
|
@@ -1672,6 +1686,20 @@ declare const _useThreads: TypedBundle["useThreads"];
|
|
|
1672
1686
|
* const { threads } = useThreads();
|
|
1673
1687
|
*/
|
|
1674
1688
|
declare const _useThreadsSuspense: TypedBundle["suspense"]["useThreads"];
|
|
1689
|
+
/**
|
|
1690
|
+
* Returns a history of versions of the current room.
|
|
1691
|
+
*
|
|
1692
|
+
* @example
|
|
1693
|
+
* const { versions, error, isLoading } = useHistoryVersions();
|
|
1694
|
+
*/
|
|
1695
|
+
declare const _useHistoryVersions: TypedBundle["useHistoryVersions"];
|
|
1696
|
+
/**
|
|
1697
|
+
* Returns a history of versions of the current room.
|
|
1698
|
+
*
|
|
1699
|
+
* @example
|
|
1700
|
+
* const { versions } = useHistoryVersions();
|
|
1701
|
+
*/
|
|
1702
|
+
declare const _useHistoryVersionsSuspense: TypedBundle["suspense"]["useHistoryVersions"];
|
|
1675
1703
|
/**
|
|
1676
1704
|
* Given a connection ID (as obtained by using `useOthersConnectionIds`), you
|
|
1677
1705
|
* can call this selector deep down in your component stack to only have the
|
|
@@ -1899,4 +1927,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
1899
1927
|
*/
|
|
1900
1928
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
1901
1929
|
|
|
1902
|
-
export {
|
|
1930
|
+
export { useOthersConnectionIds 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, useHistoryVersionData as V, useCommentsErrorListener as W, CreateThreadError as X, _useOther as Y, _useOthers as Z, _useInboxNotificationThread as _, type UseStorageStatusOptions as a, _useOthersMapped as a0, _useSelf as a1, _useStorage as a2, useStorageStatus as a3, _useThreads as a4, _useHistoryVersions as a5, useInboxNotifications as a6, _useUserThreads_experimental as a7, useRoomInfo as a8, useUnreadInboxNotificationsCount as a9, _useUser as aa, _useOtherSuspense as ab, _useOthersSuspense as ac, useOthersConnectionIdsSuspense as ad, _useOthersMappedSuspense as ae, _useSelfSuspense as af, _useStorageSuspense as ag, useStorageStatusSuspense as ah, _useThreadsSuspense as ai, _useHistoryVersionsSuspense as aj, useInboxNotificationsSuspense as ak, useRoomInfoSuspense as al, useUnreadInboxNotificationsCountSuspense as am, _useUserSuspense as an, _useUserThreadsSuspense_experimental as ao, 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, HistoryVersion, 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;
|
|
@@ -169,14 +169,8 @@ declare type RoomInfoAsyncSuccess = Resolve<RoomInfoAsyncResult & {
|
|
|
169
169
|
readonly isLoading: false;
|
|
170
170
|
readonly error?: undefined;
|
|
171
171
|
}>;
|
|
172
|
-
declare type AttachmentUrlAsyncResult = AsyncResultWithDataField<string, "url">;
|
|
173
|
-
declare type AttachmentUrlAsyncSuccess = Resolve<AttachmentUrlAsyncResult & {
|
|
174
|
-
readonly isLoading: false;
|
|
175
|
-
readonly error?: undefined;
|
|
176
|
-
}>;
|
|
177
172
|
declare type CreateThreadOptions<M extends BaseMetadata> = Resolve<{
|
|
178
173
|
body: CommentBody;
|
|
179
|
-
attachments?: CommentAttachment[];
|
|
180
174
|
} & PartialUnless<M, {
|
|
181
175
|
metadata: M;
|
|
182
176
|
}>>;
|
|
@@ -187,13 +181,11 @@ declare type EditThreadMetadataOptions<M extends BaseMetadata> = {
|
|
|
187
181
|
declare type CreateCommentOptions = {
|
|
188
182
|
threadId: string;
|
|
189
183
|
body: CommentBody;
|
|
190
|
-
attachments?: CommentAttachment[];
|
|
191
184
|
};
|
|
192
185
|
declare type EditCommentOptions = {
|
|
193
186
|
threadId: string;
|
|
194
187
|
commentId: string;
|
|
195
188
|
body: CommentBody;
|
|
196
|
-
attachments?: CommentAttachment[];
|
|
197
189
|
};
|
|
198
190
|
declare type DeleteCommentOptions = {
|
|
199
191
|
threadId: string;
|
|
@@ -268,6 +260,38 @@ declare type RoomNotificationSettingsStateSuccess = {
|
|
|
268
260
|
error?: never;
|
|
269
261
|
};
|
|
270
262
|
declare type RoomNotificationSettingsState = RoomNotificationSettingsStateLoading | RoomNotificationSettingsStateError | RoomNotificationSettingsStateSuccess;
|
|
263
|
+
declare type HistoryVersionDataStateLoading = {
|
|
264
|
+
isLoading: true;
|
|
265
|
+
data?: never;
|
|
266
|
+
error?: never;
|
|
267
|
+
};
|
|
268
|
+
declare type HistoryVersionDataStateResolved = {
|
|
269
|
+
isLoading: false;
|
|
270
|
+
data: Uint8Array;
|
|
271
|
+
error?: Error;
|
|
272
|
+
};
|
|
273
|
+
declare type HistoryVersionDataStateError = {
|
|
274
|
+
isLoading: false;
|
|
275
|
+
data?: never;
|
|
276
|
+
error: Error;
|
|
277
|
+
};
|
|
278
|
+
declare type HistoryVersionDataState = HistoryVersionDataStateLoading | HistoryVersionDataStateResolved | HistoryVersionDataStateError;
|
|
279
|
+
declare type HistoryVersionsStateLoading = {
|
|
280
|
+
isLoading: true;
|
|
281
|
+
versions?: never;
|
|
282
|
+
error?: never;
|
|
283
|
+
};
|
|
284
|
+
declare type HistoryVersionsStateResolved = {
|
|
285
|
+
isLoading: false;
|
|
286
|
+
versions: HistoryVersion[];
|
|
287
|
+
error?: Error;
|
|
288
|
+
};
|
|
289
|
+
declare type HistoryVersionsStateError = {
|
|
290
|
+
isLoading: false;
|
|
291
|
+
versions?: never;
|
|
292
|
+
error: Error;
|
|
293
|
+
};
|
|
294
|
+
declare type HistoryVersionsState = HistoryVersionsStateLoading | HistoryVersionsStateResolved | HistoryVersionsStateError;
|
|
271
295
|
declare type RoomProviderProps<P extends JsonObject, S extends LsonObject> = Resolve<{
|
|
272
296
|
/**
|
|
273
297
|
* The id of the room you want to connect to
|
|
@@ -891,12 +915,19 @@ declare type RoomContextBundle<P extends JsonObject, S extends LsonObject, U ext
|
|
|
891
915
|
(settings: Partial<RoomNotificationSettings>) => void
|
|
892
916
|
];
|
|
893
917
|
/**
|
|
894
|
-
* Returns a
|
|
918
|
+
* Returns a history of versions of the current room.
|
|
919
|
+
*
|
|
920
|
+
* @example
|
|
921
|
+
* const { versions, error, isLoading } = useHistoryVersions();
|
|
922
|
+
*/
|
|
923
|
+
useHistoryVersions(): HistoryVersionsState;
|
|
924
|
+
/**
|
|
925
|
+
* Returns the data of a specific version of the current room.
|
|
895
926
|
*
|
|
896
927
|
* @example
|
|
897
|
-
* const {
|
|
928
|
+
* const { data, error, isLoading } = useHistoryVersionData(version.id);
|
|
898
929
|
*/
|
|
899
|
-
|
|
930
|
+
useHistoryVersionData(id: string): HistoryVersionDataState;
|
|
900
931
|
suspense: Resolve<RoomContextBundleCommon<P, S, U, E, M> & SharedContextBundle<U>["suspense"] & {
|
|
901
932
|
/**
|
|
902
933
|
* Returns the current storage status for the Room, and triggers
|
|
@@ -959,6 +990,13 @@ declare type RoomContextBundle<P extends JsonObject, S extends LsonObject, U ext
|
|
|
959
990
|
* const { threads } = useThreads();
|
|
960
991
|
*/
|
|
961
992
|
useThreads(options?: UseThreadsOptions<M>): ThreadsStateSuccess<M>;
|
|
993
|
+
/**
|
|
994
|
+
* Returns a history of versions of the current room.
|
|
995
|
+
*
|
|
996
|
+
* @example
|
|
997
|
+
* const { versions } = useHistoryVersions();
|
|
998
|
+
*/
|
|
999
|
+
useHistoryVersions(): HistoryVersionsStateResolved;
|
|
962
1000
|
/**
|
|
963
1001
|
* Returns the user's notification settings for the current room
|
|
964
1002
|
* and a function to update them.
|
|
@@ -970,13 +1008,6 @@ declare type RoomContextBundle<P extends JsonObject, S extends LsonObject, U ext
|
|
|
970
1008
|
RoomNotificationSettingsStateSuccess,
|
|
971
1009
|
(settings: Partial<RoomNotificationSettings>) => void
|
|
972
1010
|
];
|
|
973
|
-
/**
|
|
974
|
-
* Returns a presigned URL for an attachment by its ID.
|
|
975
|
-
*
|
|
976
|
-
* @example
|
|
977
|
-
* const { url } = useAttachmentUrl("at_xxx");
|
|
978
|
-
*/
|
|
979
|
-
useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncSuccess;
|
|
980
1011
|
}>;
|
|
981
1012
|
} & PrivateRoomContextApi>;
|
|
982
1013
|
/**
|
|
@@ -1405,6 +1436,7 @@ declare function useRoomNotificationSettings(): [
|
|
|
1405
1436
|
RoomNotificationSettingsState,
|
|
1406
1437
|
(settings: Partial<RoomNotificationSettings$1>) => void
|
|
1407
1438
|
];
|
|
1439
|
+
declare function useHistoryVersionData(versionId: string): HistoryVersionDataState;
|
|
1408
1440
|
/**
|
|
1409
1441
|
* Returns a function that updates the user's notification settings
|
|
1410
1442
|
* for the current room.
|
|
@@ -1435,24 +1467,6 @@ declare function useOthersConnectionIdsSuspense(): readonly number[];
|
|
|
1435
1467
|
* indicator.
|
|
1436
1468
|
*/
|
|
1437
1469
|
declare function useStorageStatusSuspense(options?: UseStorageStatusOptions): StorageStatusSuccess;
|
|
1438
|
-
/**
|
|
1439
|
-
* Returns a presigned URL for an attachment by its ID.
|
|
1440
|
-
*
|
|
1441
|
-
* @example
|
|
1442
|
-
* const { url, error, isLoading } = useAttachmentUrl("at_xxx");
|
|
1443
|
-
*/
|
|
1444
|
-
declare function useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncResult;
|
|
1445
|
-
/**
|
|
1446
|
-
* Returns a presigned URL for an attachment by its ID.
|
|
1447
|
-
*
|
|
1448
|
-
* @example
|
|
1449
|
-
* const { url } = useAttachmentUrl("at_xxx");
|
|
1450
|
-
*/
|
|
1451
|
-
declare function useAttachmentUrlSuspense(attachmentId: string): {
|
|
1452
|
-
readonly isLoading: false;
|
|
1453
|
-
readonly url: string;
|
|
1454
|
-
readonly error: undefined;
|
|
1455
|
-
};
|
|
1456
1470
|
/**
|
|
1457
1471
|
* Creates a RoomProvider and a set of typed hooks to use in your app. Note
|
|
1458
1472
|
* that any RoomProvider created in this way does not need to be nested in
|
|
@@ -1672,6 +1686,20 @@ declare const _useThreads: TypedBundle["useThreads"];
|
|
|
1672
1686
|
* const { threads } = useThreads();
|
|
1673
1687
|
*/
|
|
1674
1688
|
declare const _useThreadsSuspense: TypedBundle["suspense"]["useThreads"];
|
|
1689
|
+
/**
|
|
1690
|
+
* Returns a history of versions of the current room.
|
|
1691
|
+
*
|
|
1692
|
+
* @example
|
|
1693
|
+
* const { versions, error, isLoading } = useHistoryVersions();
|
|
1694
|
+
*/
|
|
1695
|
+
declare const _useHistoryVersions: TypedBundle["useHistoryVersions"];
|
|
1696
|
+
/**
|
|
1697
|
+
* Returns a history of versions of the current room.
|
|
1698
|
+
*
|
|
1699
|
+
* @example
|
|
1700
|
+
* const { versions } = useHistoryVersions();
|
|
1701
|
+
*/
|
|
1702
|
+
declare const _useHistoryVersionsSuspense: TypedBundle["suspense"]["useHistoryVersions"];
|
|
1675
1703
|
/**
|
|
1676
1704
|
* Given a connection ID (as obtained by using `useOthersConnectionIds`), you
|
|
1677
1705
|
* can call this selector deep down in your component stack to only have the
|
|
@@ -1899,4 +1927,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
1899
1927
|
*/
|
|
1900
1928
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
1901
1929
|
|
|
1902
|
-
export {
|
|
1930
|
+
export { useOthersConnectionIds 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, useHistoryVersionData as V, useCommentsErrorListener as W, CreateThreadError as X, _useOther as Y, _useOthers as Z, _useInboxNotificationThread as _, type UseStorageStatusOptions as a, _useOthersMapped as a0, _useSelf as a1, _useStorage as a2, useStorageStatus as a3, _useThreads as a4, _useHistoryVersions as a5, useInboxNotifications as a6, _useUserThreads_experimental as a7, useRoomInfo as a8, useUnreadInboxNotificationsCount as a9, _useUser as aa, _useOtherSuspense as ab, _useOthersSuspense as ac, useOthersConnectionIdsSuspense as ad, _useOthersMappedSuspense as ae, _useSelfSuspense as af, _useStorageSuspense as ag, useStorageStatusSuspense as ah, _useThreadsSuspense as ai, _useHistoryVersionsSuspense as aj, useInboxNotificationsSuspense as ak, useRoomInfoSuspense as al, useUnreadInboxNotificationsCountSuspense as am, _useUserSuspense as an, _useUserThreadsSuspense_experimental as ao, 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,
|
|
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, aj as useHistoryVersions, _ as useInboxNotificationThread, ak 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, ab as useOther, ac as useOthers, ad as useOthersConnectionIds, G as useOthersListener, ae as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, al as useRoomInfo, K as useRoomNotificationSettings, af as useSelf, N as useStatus, ag as useStorage, O as useStorageRoot, ah as useStorageStatus, P as useThreadSubscription, ai as useThreads, Q as useUndo, am as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, an as useUser, ao as useUserThreads_experimental } from './suspense-2UL0jBvg.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,
|
|
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, aj as useHistoryVersions, _ as useInboxNotificationThread, ak 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, ab as useOther, ac as useOthers, ad as useOthersConnectionIds, G as useOthersListener, ae as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, al as useRoomInfo, K as useRoomNotificationSettings, af as useSelf, N as useStatus, ag as useStorage, O as useStorageRoot, ah as useStorageStatus, P as useThreadSubscription, ai as useThreads, Q as useUndo, am as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, an as useUser, ao as useUserThreads_experimental } from './suspense-2UL0jBvg.js';
|
|
2
2
|
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@liveblocks/core';
|
package/dist/suspense.js
CHANGED
|
@@ -59,12 +59,12 @@
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _chunkGN5SQAIYjs = require('./chunk-GN5SQAIY.js');
|
|
63
63
|
|
|
64
64
|
// src/suspense.ts
|
|
65
65
|
var _core = require('@liveblocks/core');
|
|
66
66
|
var _client = require('@liveblocks/client');
|
|
67
|
-
_core.detectDupes.call(void 0,
|
|
67
|
+
_core.detectDupes.call(void 0, _chunkGN5SQAIYjs.PKG_NAME, _chunkGN5SQAIYjs.PKG_VERSION, _chunkGN5SQAIYjs.PKG_FORMAT);
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
|
|
@@ -124,5 +124,5 @@ _core.detectDupes.call(void 0, _chunkMREN32VNjs.PKG_NAME, _chunkMREN32VNjs.PKG_V
|
|
|
124
124
|
|
|
125
125
|
|
|
126
126
|
|
|
127
|
-
exports.ClientContext =
|
|
127
|
+
exports.ClientContext = _chunkGN5SQAIYjs.ClientContext; exports.ClientSideSuspense = _chunkGN5SQAIYjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkGN5SQAIYjs.LiveblocksProvider; exports.RoomContext = _chunkGN5SQAIYjs.RoomContext; exports.RoomProvider = _chunkGN5SQAIYjs._RoomProvider; exports.shallow = _client.shallow; exports.useAddReaction = _chunkGN5SQAIYjs._useAddReaction; exports.useBatch = _chunkGN5SQAIYjs.useBatch; exports.useBroadcastEvent = _chunkGN5SQAIYjs._useBroadcastEvent; exports.useCanRedo = _chunkGN5SQAIYjs.useCanRedo; exports.useCanUndo = _chunkGN5SQAIYjs.useCanUndo; exports.useClient = _chunkGN5SQAIYjs.useClient; exports.useCreateComment = _chunkGN5SQAIYjs.useCreateComment; exports.useCreateThread = _chunkGN5SQAIYjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkGN5SQAIYjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkGN5SQAIYjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkGN5SQAIYjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkGN5SQAIYjs._useDeleteThread; exports.useEditComment = _chunkGN5SQAIYjs.useEditComment; exports.useEditThreadMetadata = _chunkGN5SQAIYjs._useEditThreadMetadata; exports.useErrorListener = _chunkGN5SQAIYjs.useErrorListener; exports.useEventListener = _chunkGN5SQAIYjs._useEventListener; exports.useHistory = _chunkGN5SQAIYjs.useHistory; exports.useHistoryVersions = _chunkGN5SQAIYjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkGN5SQAIYjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkGN5SQAIYjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkGN5SQAIYjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkGN5SQAIYjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkGN5SQAIYjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkGN5SQAIYjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkGN5SQAIYjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkGN5SQAIYjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkGN5SQAIYjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkGN5SQAIYjs._useMutation; exports.useMyPresence = _chunkGN5SQAIYjs._useMyPresence; exports.useOther = _chunkGN5SQAIYjs._useOtherSuspense; exports.useOthers = _chunkGN5SQAIYjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkGN5SQAIYjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkGN5SQAIYjs._useOthersListener; exports.useOthersMapped = _chunkGN5SQAIYjs._useOthersMappedSuspense; exports.useRedo = _chunkGN5SQAIYjs.useRedo; exports.useRemoveReaction = _chunkGN5SQAIYjs.useRemoveReaction; exports.useRoom = _chunkGN5SQAIYjs._useRoom; exports.useRoomInfo = _chunkGN5SQAIYjs.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunkGN5SQAIYjs.useRoomNotificationSettings; exports.useSelf = _chunkGN5SQAIYjs._useSelfSuspense; exports.useStatus = _chunkGN5SQAIYjs.useStatus; exports.useStorage = _chunkGN5SQAIYjs._useStorageSuspense; exports.useStorageRoot = _chunkGN5SQAIYjs._useStorageRoot; exports.useStorageStatus = _chunkGN5SQAIYjs.useStorageStatusSuspense; exports.useThreadSubscription = _chunkGN5SQAIYjs.useThreadSubscription; exports.useThreads = _chunkGN5SQAIYjs._useThreadsSuspense; exports.useUndo = _chunkGN5SQAIYjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkGN5SQAIYjs.useUnreadInboxNotificationsCountSuspense; exports.useUpdateMyPresence = _chunkGN5SQAIYjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkGN5SQAIYjs.useUpdateRoomNotificationSettings; exports.useUser = _chunkGN5SQAIYjs._useUserSuspense; exports.useUserThreads_experimental = _chunkGN5SQAIYjs._useUserThreadsSuspense_experimental;
|
|
128
128
|
//# sourceMappingURL=suspense.js.map
|
package/dist/suspense.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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
|
|
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 useHistoryVersionsSuspense as useHistoryVersions,\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
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
_useDeleteThread,
|
|
14
14
|
_useEditThreadMetadata,
|
|
15
15
|
_useEventListener,
|
|
16
|
+
_useHistoryVersionsSuspense,
|
|
16
17
|
_useInboxNotificationThread,
|
|
17
18
|
_useIsInsideRoom,
|
|
18
19
|
_useMutation,
|
|
@@ -29,7 +30,6 @@ import {
|
|
|
29
30
|
_useUpdateMyPresence,
|
|
30
31
|
_useUserSuspense,
|
|
31
32
|
_useUserThreadsSuspense_experimental,
|
|
32
|
-
useAttachmentUrlSuspense,
|
|
33
33
|
useBatch,
|
|
34
34
|
useCanRedo,
|
|
35
35
|
useCanUndo,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
useUndo,
|
|
60
60
|
useUnreadInboxNotificationsCountSuspense,
|
|
61
61
|
useUpdateRoomNotificationSettings
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-EDJS5J5R.mjs";
|
|
63
63
|
|
|
64
64
|
// src/suspense.ts
|
|
65
65
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -73,7 +73,6 @@ export {
|
|
|
73
73
|
_RoomProvider as RoomProvider,
|
|
74
74
|
shallow,
|
|
75
75
|
_useAddReaction as useAddReaction,
|
|
76
|
-
useAttachmentUrlSuspense as useAttachmentUrl,
|
|
77
76
|
useBatch,
|
|
78
77
|
_useBroadcastEvent as useBroadcastEvent,
|
|
79
78
|
useCanRedo,
|
|
@@ -90,6 +89,7 @@ export {
|
|
|
90
89
|
useErrorListener,
|
|
91
90
|
_useEventListener as useEventListener,
|
|
92
91
|
useHistory,
|
|
92
|
+
_useHistoryVersionsSuspense as useHistoryVersions,
|
|
93
93
|
_useInboxNotificationThread as useInboxNotificationThread,
|
|
94
94
|
useInboxNotificationsSuspense as useInboxNotifications,
|
|
95
95
|
_useIsInsideRoom as useIsInsideRoom,
|