@liveblocks/react 2.5.2 → 2.7.0-beta1
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-WI26U4YJ.js → chunk-BOXIYIBG.js} +83 -12
- package/dist/chunk-BOXIYIBG.js.map +1 -0
- package/dist/{chunk-3ILDS73B.mjs → chunk-YO5QDPOD.mjs} +81 -10
- package/dist/chunk-YO5QDPOD.mjs.map +1 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/dist/{suspense-i9xgTMdV.d.mts → suspense-JsIIJujn.d.mts} +42 -2
- package/dist/{suspense-i9xgTMdV.d.ts → suspense-JsIIJujn.d.ts} +42 -2
- package/dist/suspense.d.mts +1 -1
- package/dist/suspense.d.ts +1 -1
- package/dist/suspense.js +5 -3
- package/dist/suspense.js.map +1 -1
- package/dist/suspense.mjs +3 -1
- package/dist/suspense.mjs.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-3ILDS73B.mjs.map +0 -1
- package/dist/chunk-WI26U4YJ.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -63,12 +63,14 @@
|
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
|
|
67
|
+
var _chunkBOXIYIBGjs = require('./chunk-BOXIYIBG.js');
|
|
67
68
|
|
|
68
69
|
// src/index.ts
|
|
69
70
|
var _core = require('@liveblocks/core');
|
|
70
71
|
var _client = require('@liveblocks/client');
|
|
71
|
-
_core.detectDupes.call(void 0,
|
|
72
|
+
_core.detectDupes.call(void 0, _chunkBOXIYIBGjs.PKG_NAME, _chunkBOXIYIBGjs.PKG_VERSION, _chunkBOXIYIBGjs.PKG_FORMAT);
|
|
73
|
+
|
|
72
74
|
|
|
73
75
|
|
|
74
76
|
|
|
@@ -132,5 +134,5 @@ _core.detectDupes.call(void 0, _chunkWI26U4YJjs.PKG_NAME, _chunkWI26U4YJjs.PKG_V
|
|
|
132
134
|
|
|
133
135
|
|
|
134
136
|
|
|
135
|
-
exports.ClientContext =
|
|
137
|
+
exports.ClientContext = _chunkBOXIYIBGjs.ClientContext; exports.ClientSideSuspense = _chunkBOXIYIBGjs.ClientSideSuspense; exports.CreateThreadError = _chunkBOXIYIBGjs.CreateThreadError; exports.LiveblocksProvider = _chunkBOXIYIBGjs.LiveblocksProvider; exports.RoomContext = _chunkBOXIYIBGjs.RoomContext; exports.RoomProvider = _chunkBOXIYIBGjs._RoomProvider; exports.createLiveblocksContext = _chunkBOXIYIBGjs.createLiveblocksContext; exports.createRoomContext = _chunkBOXIYIBGjs.createRoomContext; exports.selectedThreads = _chunkBOXIYIBGjs.selectedThreads; exports.shallow = _client.shallow; exports.useAddReaction = _chunkBOXIYIBGjs._useAddReaction; exports.useAttachmentUrl = _chunkBOXIYIBGjs.useAttachmentUrl; exports.useBatch = _chunkBOXIYIBGjs.useBatch; exports.useBroadcastEvent = _chunkBOXIYIBGjs._useBroadcastEvent; exports.useCanRedo = _chunkBOXIYIBGjs.useCanRedo; exports.useCanUndo = _chunkBOXIYIBGjs.useCanUndo; exports.useClient = _chunkBOXIYIBGjs.useClient; exports.useCommentsErrorListener = _chunkBOXIYIBGjs.useCommentsErrorListener; exports.useCreateComment = _chunkBOXIYIBGjs.useCreateComment; exports.useCreateThread = _chunkBOXIYIBGjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkBOXIYIBGjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkBOXIYIBGjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkBOXIYIBGjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkBOXIYIBGjs._useDeleteThread; exports.useEditComment = _chunkBOXIYIBGjs.useEditComment; exports.useEditThreadMetadata = _chunkBOXIYIBGjs._useEditThreadMetadata; exports.useErrorListener = _chunkBOXIYIBGjs.useErrorListener; exports.useEventListener = _chunkBOXIYIBGjs._useEventListener; exports.useHistory = _chunkBOXIYIBGjs.useHistory; exports.useInboxNotificationThread = _chunkBOXIYIBGjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkBOXIYIBGjs.useInboxNotifications; exports.useIsInsideRoom = _chunkBOXIYIBGjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkBOXIYIBGjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkBOXIYIBGjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkBOXIYIBGjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkBOXIYIBGjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkBOXIYIBGjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkBOXIYIBGjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkBOXIYIBGjs._useMutation; exports.useMyPresence = _chunkBOXIYIBGjs._useMyPresence; exports.useOther = _chunkBOXIYIBGjs._useOther; exports.useOthers = _chunkBOXIYIBGjs._useOthers; exports.useOthersConnectionIds = _chunkBOXIYIBGjs.useOthersConnectionIds; exports.useOthersListener = _chunkBOXIYIBGjs._useOthersListener; exports.useOthersMapped = _chunkBOXIYIBGjs._useOthersMapped; exports.useRedo = _chunkBOXIYIBGjs.useRedo; exports.useRemoveReaction = _chunkBOXIYIBGjs.useRemoveReaction; exports.useRoom = _chunkBOXIYIBGjs._useRoom; exports.useRoomInfo = _chunkBOXIYIBGjs.useRoomInfo; exports.useRoomNotificationSettings = _chunkBOXIYIBGjs.useRoomNotificationSettings; exports.useSelf = _chunkBOXIYIBGjs._useSelf; exports.useStatus = _chunkBOXIYIBGjs.useStatus; exports.useStorage = _chunkBOXIYIBGjs._useStorage; exports.useStorageRoot = _chunkBOXIYIBGjs._useStorageRoot; exports.useStorageStatus = _chunkBOXIYIBGjs.useStorageStatus; exports.useThreadSubscription = _chunkBOXIYIBGjs.useThreadSubscription; exports.useThreads = _chunkBOXIYIBGjs._useThreads; exports.useUndo = _chunkBOXIYIBGjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkBOXIYIBGjs.useUnreadInboxNotificationsCount; exports.useUpdateMyPresence = _chunkBOXIYIBGjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkBOXIYIBGjs.useUpdateRoomNotificationSettings; exports.useUser = _chunkBOXIYIBGjs._useUser; exports.useUserThreads_experimental = _chunkBOXIYIBGjs._useUserThreads_experimental;
|
|
136
138
|
//# 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 useAttachmentUrl,\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
|
@@ -33,6 +33,7 @@ import {
|
|
|
33
33
|
createLiveblocksContext,
|
|
34
34
|
createRoomContext,
|
|
35
35
|
selectedThreads,
|
|
36
|
+
useAttachmentUrl,
|
|
36
37
|
useBatch,
|
|
37
38
|
useCanRedo,
|
|
38
39
|
useCanUndo,
|
|
@@ -63,7 +64,7 @@ import {
|
|
|
63
64
|
useUndo,
|
|
64
65
|
useUnreadInboxNotificationsCount,
|
|
65
66
|
useUpdateRoomNotificationSettings
|
|
66
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-YO5QDPOD.mjs";
|
|
67
68
|
|
|
68
69
|
// src/index.ts
|
|
69
70
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -81,6 +82,7 @@ export {
|
|
|
81
82
|
selectedThreads,
|
|
82
83
|
shallow,
|
|
83
84
|
_useAddReaction as useAddReaction,
|
|
85
|
+
useAttachmentUrl,
|
|
84
86
|
useBatch,
|
|
85
87
|
_useBroadcastEvent as useBroadcastEvent,
|
|
86
88
|
useCanRedo,
|
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} from \"./room\";\nexport {\n useInboxNotifications,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseStorageStatusOptions,\n UseThreadsOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n LiveblocksProvider,\n createLiveblocksContext,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useErrorListener,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useRoomNotificationSettings,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n} from \"./room\";\n\nexport { useCommentsErrorListener, CreateThreadError } from \"./room\";\nexport { selectedThreads } from \"./comments/lib/selected-threads\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useStorageStatus,\n useThreads,\n useAttachmentUrl,\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, InboxNotificationData, ToImmutable, ThreadData, Client, LiveblocksError, RoomEventMessage, CommentData, PartialUnless, OpaqueClient, DU, ClientOptions, DM, OpaqueRoom, RoomNotificationSettings as RoomNotificationSettings$1, DP, DS, DE } from '@liveblocks/core';
|
|
4
|
+
import { BaseMetadata, CommentBody, Patchable, QueryMetadata, StorageStatus, AsyncResultWithDataField, DRI, Resolve, CommentAttachment, 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;
|
|
@@ -169,8 +169,14 @@ 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
|
+
}>;
|
|
172
177
|
declare type CreateThreadOptions<M extends BaseMetadata> = Resolve<{
|
|
173
178
|
body: CommentBody;
|
|
179
|
+
attachments?: CommentAttachment[];
|
|
174
180
|
} & PartialUnless<M, {
|
|
175
181
|
metadata: M;
|
|
176
182
|
}>>;
|
|
@@ -181,11 +187,13 @@ declare type EditThreadMetadataOptions<M extends BaseMetadata> = {
|
|
|
181
187
|
declare type CreateCommentOptions = {
|
|
182
188
|
threadId: string;
|
|
183
189
|
body: CommentBody;
|
|
190
|
+
attachments?: CommentAttachment[];
|
|
184
191
|
};
|
|
185
192
|
declare type EditCommentOptions = {
|
|
186
193
|
threadId: string;
|
|
187
194
|
commentId: string;
|
|
188
195
|
body: CommentBody;
|
|
196
|
+
attachments?: CommentAttachment[];
|
|
189
197
|
};
|
|
190
198
|
declare type DeleteCommentOptions = {
|
|
191
199
|
threadId: string;
|
|
@@ -882,6 +890,13 @@ declare type RoomContextBundle<P extends JsonObject, S extends LsonObject, U ext
|
|
|
882
890
|
RoomNotificationSettingsState,
|
|
883
891
|
(settings: Partial<RoomNotificationSettings>) => void
|
|
884
892
|
];
|
|
893
|
+
/**
|
|
894
|
+
* Returns a presigned URL for an attachment by its ID.
|
|
895
|
+
*
|
|
896
|
+
* @example
|
|
897
|
+
* const { url, error, isLoading } = useAttachmentUrl("at_xxx");
|
|
898
|
+
*/
|
|
899
|
+
useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncResult;
|
|
885
900
|
suspense: Resolve<RoomContextBundleCommon<P, S, U, E, M> & SharedContextBundle<U>["suspense"] & {
|
|
886
901
|
/**
|
|
887
902
|
* Returns the current storage status for the Room, and triggers
|
|
@@ -955,6 +970,13 @@ declare type RoomContextBundle<P extends JsonObject, S extends LsonObject, U ext
|
|
|
955
970
|
RoomNotificationSettingsStateSuccess,
|
|
956
971
|
(settings: Partial<RoomNotificationSettings>) => void
|
|
957
972
|
];
|
|
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;
|
|
958
980
|
}>;
|
|
959
981
|
} & PrivateRoomContextApi>;
|
|
960
982
|
/**
|
|
@@ -1413,6 +1435,24 @@ declare function useOthersConnectionIdsSuspense(): readonly number[];
|
|
|
1413
1435
|
* indicator.
|
|
1414
1436
|
*/
|
|
1415
1437
|
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
|
+
};
|
|
1416
1456
|
/**
|
|
1417
1457
|
* Creates a RoomProvider and a set of typed hooks to use in your app. Note
|
|
1418
1458
|
* that any RoomProvider created in this way does not need to be nested in
|
|
@@ -1859,4 +1899,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
1859
1899
|
*/
|
|
1860
1900
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
1861
1901
|
|
|
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,
|
|
1902
|
+
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, useAttachmentUrl as a4, useInboxNotifications as a5, _useUserThreads_experimental as a6, useRoomInfo as a7, useUnreadInboxNotificationsCount as a8, _useUser as a9, _useOtherSuspense as aa, _useOthersSuspense as ab, useOthersConnectionIdsSuspense as ac, _useOthersMappedSuspense as ad, _useSelfSuspense as ae, _useStorageSuspense as af, useStorageStatusSuspense as ag, _useThreadsSuspense as ah, useAttachmentUrlSuspense as ai, useInboxNotificationsSuspense as aj, useRoomInfoSuspense as ak, useUnreadInboxNotificationsCountSuspense as al, _useUserSuspense as am, _useUserThreadsSuspense_experimental as an, 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, InboxNotificationData, ToImmutable, ThreadData, Client, LiveblocksError, RoomEventMessage, CommentData, PartialUnless, OpaqueClient, DU, ClientOptions, DM, OpaqueRoom, RoomNotificationSettings as RoomNotificationSettings$1, DP, DS, DE } from '@liveblocks/core';
|
|
4
|
+
import { BaseMetadata, CommentBody, Patchable, QueryMetadata, StorageStatus, AsyncResultWithDataField, DRI, Resolve, CommentAttachment, 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;
|
|
@@ -169,8 +169,14 @@ 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
|
+
}>;
|
|
172
177
|
declare type CreateThreadOptions<M extends BaseMetadata> = Resolve<{
|
|
173
178
|
body: CommentBody;
|
|
179
|
+
attachments?: CommentAttachment[];
|
|
174
180
|
} & PartialUnless<M, {
|
|
175
181
|
metadata: M;
|
|
176
182
|
}>>;
|
|
@@ -181,11 +187,13 @@ declare type EditThreadMetadataOptions<M extends BaseMetadata> = {
|
|
|
181
187
|
declare type CreateCommentOptions = {
|
|
182
188
|
threadId: string;
|
|
183
189
|
body: CommentBody;
|
|
190
|
+
attachments?: CommentAttachment[];
|
|
184
191
|
};
|
|
185
192
|
declare type EditCommentOptions = {
|
|
186
193
|
threadId: string;
|
|
187
194
|
commentId: string;
|
|
188
195
|
body: CommentBody;
|
|
196
|
+
attachments?: CommentAttachment[];
|
|
189
197
|
};
|
|
190
198
|
declare type DeleteCommentOptions = {
|
|
191
199
|
threadId: string;
|
|
@@ -882,6 +890,13 @@ declare type RoomContextBundle<P extends JsonObject, S extends LsonObject, U ext
|
|
|
882
890
|
RoomNotificationSettingsState,
|
|
883
891
|
(settings: Partial<RoomNotificationSettings>) => void
|
|
884
892
|
];
|
|
893
|
+
/**
|
|
894
|
+
* Returns a presigned URL for an attachment by its ID.
|
|
895
|
+
*
|
|
896
|
+
* @example
|
|
897
|
+
* const { url, error, isLoading } = useAttachmentUrl("at_xxx");
|
|
898
|
+
*/
|
|
899
|
+
useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncResult;
|
|
885
900
|
suspense: Resolve<RoomContextBundleCommon<P, S, U, E, M> & SharedContextBundle<U>["suspense"] & {
|
|
886
901
|
/**
|
|
887
902
|
* Returns the current storage status for the Room, and triggers
|
|
@@ -955,6 +970,13 @@ declare type RoomContextBundle<P extends JsonObject, S extends LsonObject, U ext
|
|
|
955
970
|
RoomNotificationSettingsStateSuccess,
|
|
956
971
|
(settings: Partial<RoomNotificationSettings>) => void
|
|
957
972
|
];
|
|
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;
|
|
958
980
|
}>;
|
|
959
981
|
} & PrivateRoomContextApi>;
|
|
960
982
|
/**
|
|
@@ -1413,6 +1435,24 @@ declare function useOthersConnectionIdsSuspense(): readonly number[];
|
|
|
1413
1435
|
* indicator.
|
|
1414
1436
|
*/
|
|
1415
1437
|
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
|
+
};
|
|
1416
1456
|
/**
|
|
1417
1457
|
* Creates a RoomProvider and a set of typed hooks to use in your app. Note
|
|
1418
1458
|
* that any RoomProvider created in this way does not need to be nested in
|
|
@@ -1859,4 +1899,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
1859
1899
|
*/
|
|
1860
1900
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
1861
1901
|
|
|
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,
|
|
1902
|
+
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, useAttachmentUrl as a4, useInboxNotifications as a5, _useUserThreads_experimental as a6, useRoomInfo as a7, useUnreadInboxNotificationsCount as a8, _useUser as a9, _useOtherSuspense as aa, _useOthersSuspense as ab, useOthersConnectionIdsSuspense as ac, _useOthersMappedSuspense as ad, _useSelfSuspense as ae, _useStorageSuspense as af, useStorageStatusSuspense as ag, _useThreadsSuspense as ah, useAttachmentUrlSuspense as ai, useInboxNotificationsSuspense as aj, useRoomInfoSuspense as ak, useUnreadInboxNotificationsCountSuspense as al, _useUserSuspense as am, _useUserThreadsSuspense_experimental as an, ClientContext as b, createLiveblocksContext as c, useMarkAllInboxNotificationsAsRead as d, useMarkInboxNotificationAsRead as e, useDeleteAllInboxNotifications as f, useDeleteInboxNotification as g, createRoomContext as h, _RoomProvider as i, _useAddReaction as j, useBatch as k, _useBroadcastEvent as l, useCanRedo as m, useCanUndo as n, useCreateComment as o, _useCreateThread as p, useDeleteComment as q, _useDeleteThread as r, useEditComment as s, _useEditThreadMetadata as t, useClient as u, useMarkThreadAsResolved as v, useMarkThreadAsUnresolved as w, useErrorListener as x, _useEventListener as y, useHistory as z };
|
package/dist/suspense.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as ClientContext, C as ClientSideSuspense, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, a as UseStorageStatusOptions, U as UseThreadsOptions, j as useAddReaction, k as useBatch, l as useBroadcastEvent, m as useCanRedo, n as useCanUndo, u as useClient, o as useCreateComment, p as useCreateThread, f as useDeleteAllInboxNotifications, q as useDeleteComment, g as useDeleteInboxNotification, r as useDeleteThread, s as useEditComment, t as useEditThreadMetadata, x as useErrorListener, y as useEventListener, z as useHistory, _ as useInboxNotificationThread,
|
|
1
|
+
export { b as ClientContext, C as ClientSideSuspense, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, a as UseStorageStatusOptions, U as UseThreadsOptions, j as useAddReaction, ai as useAttachmentUrl, 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, aj 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, aa as useOther, ab as useOthers, ac as useOthersConnectionIds, G as useOthersListener, ad as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, ak as useRoomInfo, K as useRoomNotificationSettings, ae as useSelf, N as useStatus, af as useStorage, O as useStorageRoot, ag as useStorageStatus, P as useThreadSubscription, ah as useThreads, Q as useUndo, al as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, am as useUser, an as useUserThreads_experimental } from './suspense-JsIIJujn.mjs';
|
|
2
2
|
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@liveblocks/core';
|
package/dist/suspense.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as ClientContext, C as ClientSideSuspense, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, a as UseStorageStatusOptions, U as UseThreadsOptions, j as useAddReaction, k as useBatch, l as useBroadcastEvent, m as useCanRedo, n as useCanUndo, u as useClient, o as useCreateComment, p as useCreateThread, f as useDeleteAllInboxNotifications, q as useDeleteComment, g as useDeleteInboxNotification, r as useDeleteThread, s as useEditComment, t as useEditThreadMetadata, x as useErrorListener, y as useEventListener, z as useHistory, _ as useInboxNotificationThread,
|
|
1
|
+
export { b as ClientContext, C as ClientSideSuspense, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, a as UseStorageStatusOptions, U as UseThreadsOptions, j as useAddReaction, ai as useAttachmentUrl, 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, aj 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, aa as useOther, ab as useOthers, ac as useOthersConnectionIds, G as useOthersListener, ad as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, ak as useRoomInfo, K as useRoomNotificationSettings, ae as useSelf, N as useStatus, af as useStorage, O as useStorageRoot, ag as useStorageStatus, P as useThreadSubscription, ah as useThreads, Q as useUndo, al as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, am as useUser, an as useUserThreads_experimental } from './suspense-JsIIJujn.js';
|
|
2
2
|
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@liveblocks/core';
|
package/dist/suspense.js
CHANGED
|
@@ -58,12 +58,14 @@
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
|
|
62
|
+
var _chunkBOXIYIBGjs = require('./chunk-BOXIYIBG.js');
|
|
62
63
|
|
|
63
64
|
// src/suspense.ts
|
|
64
65
|
var _core = require('@liveblocks/core');
|
|
65
66
|
var _client = require('@liveblocks/client');
|
|
66
|
-
_core.detectDupes.call(void 0,
|
|
67
|
+
_core.detectDupes.call(void 0, _chunkBOXIYIBGjs.PKG_NAME, _chunkBOXIYIBGjs.PKG_VERSION, _chunkBOXIYIBGjs.PKG_FORMAT);
|
|
68
|
+
|
|
67
69
|
|
|
68
70
|
|
|
69
71
|
|
|
@@ -122,5 +124,5 @@ _core.detectDupes.call(void 0, _chunkWI26U4YJjs.PKG_NAME, _chunkWI26U4YJjs.PKG_V
|
|
|
122
124
|
|
|
123
125
|
|
|
124
126
|
|
|
125
|
-
exports.ClientContext =
|
|
127
|
+
exports.ClientContext = _chunkBOXIYIBGjs.ClientContext; exports.ClientSideSuspense = _chunkBOXIYIBGjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkBOXIYIBGjs.LiveblocksProvider; exports.RoomContext = _chunkBOXIYIBGjs.RoomContext; exports.RoomProvider = _chunkBOXIYIBGjs._RoomProvider; exports.shallow = _client.shallow; exports.useAddReaction = _chunkBOXIYIBGjs._useAddReaction; exports.useAttachmentUrl = _chunkBOXIYIBGjs.useAttachmentUrlSuspense; exports.useBatch = _chunkBOXIYIBGjs.useBatch; exports.useBroadcastEvent = _chunkBOXIYIBGjs._useBroadcastEvent; exports.useCanRedo = _chunkBOXIYIBGjs.useCanRedo; exports.useCanUndo = _chunkBOXIYIBGjs.useCanUndo; exports.useClient = _chunkBOXIYIBGjs.useClient; exports.useCreateComment = _chunkBOXIYIBGjs.useCreateComment; exports.useCreateThread = _chunkBOXIYIBGjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkBOXIYIBGjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkBOXIYIBGjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkBOXIYIBGjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkBOXIYIBGjs._useDeleteThread; exports.useEditComment = _chunkBOXIYIBGjs.useEditComment; exports.useEditThreadMetadata = _chunkBOXIYIBGjs._useEditThreadMetadata; exports.useErrorListener = _chunkBOXIYIBGjs.useErrorListener; exports.useEventListener = _chunkBOXIYIBGjs._useEventListener; exports.useHistory = _chunkBOXIYIBGjs.useHistory; exports.useInboxNotificationThread = _chunkBOXIYIBGjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkBOXIYIBGjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkBOXIYIBGjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkBOXIYIBGjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkBOXIYIBGjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkBOXIYIBGjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkBOXIYIBGjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkBOXIYIBGjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkBOXIYIBGjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkBOXIYIBGjs._useMutation; exports.useMyPresence = _chunkBOXIYIBGjs._useMyPresence; exports.useOther = _chunkBOXIYIBGjs._useOtherSuspense; exports.useOthers = _chunkBOXIYIBGjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkBOXIYIBGjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkBOXIYIBGjs._useOthersListener; exports.useOthersMapped = _chunkBOXIYIBGjs._useOthersMappedSuspense; exports.useRedo = _chunkBOXIYIBGjs.useRedo; exports.useRemoveReaction = _chunkBOXIYIBGjs.useRemoveReaction; exports.useRoom = _chunkBOXIYIBGjs._useRoom; exports.useRoomInfo = _chunkBOXIYIBGjs.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunkBOXIYIBGjs.useRoomNotificationSettings; exports.useSelf = _chunkBOXIYIBGjs._useSelfSuspense; exports.useStatus = _chunkBOXIYIBGjs.useStatus; exports.useStorage = _chunkBOXIYIBGjs._useStorageSuspense; exports.useStorageRoot = _chunkBOXIYIBGjs._useStorageRoot; exports.useStorageStatus = _chunkBOXIYIBGjs.useStorageStatusSuspense; exports.useThreadSubscription = _chunkBOXIYIBGjs.useThreadSubscription; exports.useThreads = _chunkBOXIYIBGjs._useThreadsSuspense; exports.useUndo = _chunkBOXIYIBGjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkBOXIYIBGjs.useUnreadInboxNotificationsCountSuspense; exports.useUpdateMyPresence = _chunkBOXIYIBGjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkBOXIYIBGjs.useUpdateRoomNotificationSettings; exports.useUser = _chunkBOXIYIBGjs._useUserSuspense; exports.useUserThreads_experimental = _chunkBOXIYIBGjs._useUserThreadsSuspense_experimental;
|
|
126
128
|
//# 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 useAttachmentUrlSuspense as useAttachmentUrl,\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
|
@@ -29,6 +29,7 @@ import {
|
|
|
29
29
|
_useUpdateMyPresence,
|
|
30
30
|
_useUserSuspense,
|
|
31
31
|
_useUserThreadsSuspense_experimental,
|
|
32
|
+
useAttachmentUrlSuspense,
|
|
32
33
|
useBatch,
|
|
33
34
|
useCanRedo,
|
|
34
35
|
useCanUndo,
|
|
@@ -58,7 +59,7 @@ import {
|
|
|
58
59
|
useUndo,
|
|
59
60
|
useUnreadInboxNotificationsCountSuspense,
|
|
60
61
|
useUpdateRoomNotificationSettings
|
|
61
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-YO5QDPOD.mjs";
|
|
62
63
|
|
|
63
64
|
// src/suspense.ts
|
|
64
65
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -72,6 +73,7 @@ export {
|
|
|
72
73
|
_RoomProvider as RoomProvider,
|
|
73
74
|
shallow,
|
|
74
75
|
_useAddReaction as useAddReaction,
|
|
76
|
+
useAttachmentUrlSuspense as useAttachmentUrl,
|
|
75
77
|
useBatch,
|
|
76
78
|
_useBroadcastEvent as useBroadcastEvent,
|
|
77
79
|
useCanRedo,
|
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 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":"
|
|
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 useAttachmentUrlSuspense as useAttachmentUrl,\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.7.0-beta1",
|
|
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.7.0-beta1",
|
|
51
|
+
"@liveblocks/core": "2.7.0-beta1",
|
|
52
52
|
"use-sync-external-store": "^1.2.2"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|