@liveblocks/react 2.7.1 → 2.8.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-TNEGW2UU.js → chunk-BYZWUB6M.js} +85 -13
- package/dist/chunk-BYZWUB6M.js.map +1 -0
- package/dist/{chunk-XK5NTOJJ.mjs → chunk-WVLHQ6LC.mjs} +83 -11
- package/dist/chunk-WVLHQ6LC.mjs.map +1 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- 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-ZevLSpFZ.d.mts → suspense-j9RIyQIe.d.mts} +42 -2
- package/dist/{suspense-ZevLSpFZ.d.ts → suspense-j9RIyQIe.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-TNEGW2UU.js.map +0 -1
- package/dist/chunk-XK5NTOJJ.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as ClientContext, C as ClientSideSuspense, X as CreateThreadError, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, U as UseStorageStatusOptions, a as UseThreadsOptions, c as createLiveblocksContext, h as createRoomContext,
|
|
1
|
+
export { b as ClientContext, C as ClientSideSuspense, X as CreateThreadError, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, U as UseStorageStatusOptions, a as UseThreadsOptions, c as createLiveblocksContext, h as createRoomContext, ac as getUmbrellaStoreForClient, ad as selectThreads, j as useAddReaction, a5 as useAttachmentUrl, k as useBatch, l as useBroadcastEvent, m as useCanRedo, n as useCanUndo, u as useClient, W as useCommentsErrorListener, 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, V as useHistoryVersionData, a6 as useHistoryVersions, _ as useInboxNotificationThread, a7 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, Y as useOther, Z as useOthers, $ as useOthersConnectionIds, G as useOthersListener, a0 as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, a9 as useRoomInfo, K as useRoomNotificationSettings, a1 as useSelf, N as useStatus, a2 as useStorage, O as useStorageRoot, a3 as useStorageStatus, P as useThreadSubscription, a4 as useThreads, Q as useUndo, aa as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, ab as useUser, a8 as useUserThreads_experimental } from './suspense-j9RIyQIe.mjs';
|
|
2
2
|
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@liveblocks/core';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as ClientContext, C as ClientSideSuspense, X as CreateThreadError, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, U as UseStorageStatusOptions, a as UseThreadsOptions, c as createLiveblocksContext, h as createRoomContext,
|
|
1
|
+
export { b as ClientContext, C as ClientSideSuspense, X as CreateThreadError, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, U as UseStorageStatusOptions, a as UseThreadsOptions, c as createLiveblocksContext, h as createRoomContext, ac as getUmbrellaStoreForClient, ad as selectThreads, j as useAddReaction, a5 as useAttachmentUrl, k as useBatch, l as useBroadcastEvent, m as useCanRedo, n as useCanUndo, u as useClient, W as useCommentsErrorListener, 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, V as useHistoryVersionData, a6 as useHistoryVersions, _ as useInboxNotificationThread, a7 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, Y as useOther, Z as useOthers, $ as useOthersConnectionIds, G as useOthersListener, a0 as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, a9 as useRoomInfo, K as useRoomNotificationSettings, a1 as useSelf, N as useStatus, a2 as useStorage, O as useStorageRoot, a3 as useStorageStatus, P as useThreadSubscription, a4 as useThreads, Q as useUndo, aa as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, ab as useUser, a8 as useUserThreads_experimental } from './suspense-j9RIyQIe.js';
|
|
2
2
|
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@liveblocks/core';
|
package/dist/index.js
CHANGED
|
@@ -66,12 +66,14 @@
|
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
|
|
70
|
+
var _chunkBYZWUB6Mjs = require('./chunk-BYZWUB6M.js');
|
|
70
71
|
|
|
71
72
|
// src/index.ts
|
|
72
73
|
var _core = require('@liveblocks/core');
|
|
73
74
|
var _client = require('@liveblocks/client');
|
|
74
|
-
_core.detectDupes.call(void 0,
|
|
75
|
+
_core.detectDupes.call(void 0, _chunkBYZWUB6Mjs.PKG_NAME, _chunkBYZWUB6Mjs.PKG_VERSION, _chunkBYZWUB6Mjs.PKG_FORMAT);
|
|
76
|
+
|
|
75
77
|
|
|
76
78
|
|
|
77
79
|
|
|
@@ -138,5 +140,5 @@ _core.detectDupes.call(void 0, _chunkTNEGW2UUjs.PKG_NAME, _chunkTNEGW2UUjs.PKG_V
|
|
|
138
140
|
|
|
139
141
|
|
|
140
142
|
|
|
141
|
-
exports.ClientContext =
|
|
143
|
+
exports.ClientContext = _chunkBYZWUB6Mjs.ClientContext; exports.ClientSideSuspense = _chunkBYZWUB6Mjs.ClientSideSuspense; exports.CreateThreadError = _chunkBYZWUB6Mjs.CreateThreadError; exports.LiveblocksProvider = _chunkBYZWUB6Mjs.LiveblocksProvider; exports.RoomContext = _chunkBYZWUB6Mjs.RoomContext; exports.RoomProvider = _chunkBYZWUB6Mjs._RoomProvider; exports.createLiveblocksContext = _chunkBYZWUB6Mjs.createLiveblocksContext; exports.createRoomContext = _chunkBYZWUB6Mjs.createRoomContext; exports.getUmbrellaStoreForClient = _chunkBYZWUB6Mjs.getUmbrellaStoreForClient; exports.selectThreads = _chunkBYZWUB6Mjs.selectThreads; exports.shallow = _client.shallow; exports.useAddReaction = _chunkBYZWUB6Mjs._useAddReaction; exports.useAttachmentUrl = _chunkBYZWUB6Mjs.useAttachmentUrl; exports.useBatch = _chunkBYZWUB6Mjs.useBatch; exports.useBroadcastEvent = _chunkBYZWUB6Mjs._useBroadcastEvent; exports.useCanRedo = _chunkBYZWUB6Mjs.useCanRedo; exports.useCanUndo = _chunkBYZWUB6Mjs.useCanUndo; exports.useClient = _chunkBYZWUB6Mjs.useClient; exports.useCommentsErrorListener = _chunkBYZWUB6Mjs.useCommentsErrorListener; exports.useCreateComment = _chunkBYZWUB6Mjs.useCreateComment; exports.useCreateThread = _chunkBYZWUB6Mjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkBYZWUB6Mjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkBYZWUB6Mjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkBYZWUB6Mjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkBYZWUB6Mjs._useDeleteThread; exports.useEditComment = _chunkBYZWUB6Mjs.useEditComment; exports.useEditThreadMetadata = _chunkBYZWUB6Mjs._useEditThreadMetadata; exports.useErrorListener = _chunkBYZWUB6Mjs.useErrorListener; exports.useEventListener = _chunkBYZWUB6Mjs._useEventListener; exports.useHistory = _chunkBYZWUB6Mjs.useHistory; exports.useHistoryVersionData = _chunkBYZWUB6Mjs.useHistoryVersionData; exports.useHistoryVersions = _chunkBYZWUB6Mjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkBYZWUB6Mjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkBYZWUB6Mjs.useInboxNotifications; exports.useIsInsideRoom = _chunkBYZWUB6Mjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkBYZWUB6Mjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkBYZWUB6Mjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkBYZWUB6Mjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkBYZWUB6Mjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkBYZWUB6Mjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkBYZWUB6Mjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkBYZWUB6Mjs._useMutation; exports.useMyPresence = _chunkBYZWUB6Mjs._useMyPresence; exports.useOther = _chunkBYZWUB6Mjs._useOther; exports.useOthers = _chunkBYZWUB6Mjs._useOthers; exports.useOthersConnectionIds = _chunkBYZWUB6Mjs.useOthersConnectionIds; exports.useOthersListener = _chunkBYZWUB6Mjs._useOthersListener; exports.useOthersMapped = _chunkBYZWUB6Mjs._useOthersMapped; exports.useRedo = _chunkBYZWUB6Mjs.useRedo; exports.useRemoveReaction = _chunkBYZWUB6Mjs.useRemoveReaction; exports.useRoom = _chunkBYZWUB6Mjs._useRoom; exports.useRoomInfo = _chunkBYZWUB6Mjs.useRoomInfo; exports.useRoomNotificationSettings = _chunkBYZWUB6Mjs.useRoomNotificationSettings; exports.useSelf = _chunkBYZWUB6Mjs._useSelf; exports.useStatus = _chunkBYZWUB6Mjs.useStatus; exports.useStorage = _chunkBYZWUB6Mjs._useStorage; exports.useStorageRoot = _chunkBYZWUB6Mjs._useStorageRoot; exports.useStorageStatus = _chunkBYZWUB6Mjs.useStorageStatus; exports.useThreadSubscription = _chunkBYZWUB6Mjs.useThreadSubscription; exports.useThreads = _chunkBYZWUB6Mjs._useThreads; exports.useUndo = _chunkBYZWUB6Mjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkBYZWUB6Mjs.useUnreadInboxNotificationsCount; exports.useUpdateMyPresence = _chunkBYZWUB6Mjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkBYZWUB6Mjs.useUpdateRoomNotificationSettings; exports.useUser = _chunkBYZWUB6Mjs._useUser; exports.useUserThreads_experimental = _chunkBYZWUB6Mjs._useUserThreads_experimental;
|
|
142
144
|
//# 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\";\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 useHistoryVersions,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n\n// Private APIs (for use in react-lexical only)\nexport { getUmbrellaStoreForClient, selectThreads } from \"./liveblocks\";\n"]}
|
package/dist/index.mjs
CHANGED
|
@@ -35,6 +35,7 @@ import {
|
|
|
35
35
|
createRoomContext,
|
|
36
36
|
getUmbrellaStoreForClient,
|
|
37
37
|
selectThreads,
|
|
38
|
+
useAttachmentUrl,
|
|
38
39
|
useBatch,
|
|
39
40
|
useCanRedo,
|
|
40
41
|
useCanUndo,
|
|
@@ -66,7 +67,7 @@ import {
|
|
|
66
67
|
useUndo,
|
|
67
68
|
useUnreadInboxNotificationsCount,
|
|
68
69
|
useUpdateRoomNotificationSettings
|
|
69
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-WVLHQ6LC.mjs";
|
|
70
71
|
|
|
71
72
|
// src/index.ts
|
|
72
73
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -85,6 +86,7 @@ export {
|
|
|
85
86
|
selectThreads,
|
|
86
87
|
shallow,
|
|
87
88
|
_useAddReaction as useAddReaction,
|
|
89
|
+
useAttachmentUrl,
|
|
88
90
|
useBatch,
|
|
89
91
|
_useBroadcastEvent as useBroadcastEvent,
|
|
90
92
|
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 useHistoryVersionData,\n} from \"./room\";\n\nexport { useCommentsErrorListener, CreateThreadError } from \"./room\";\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\n// Private APIs (for use in react-lexical only)\nexport { getUmbrellaStoreForClient, selectThreads } 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 useHistoryVersionData,\n} from \"./room\";\n\nexport { useCommentsErrorListener, CreateThreadError } from \"./room\";\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 useHistoryVersions,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n\n// Private APIs (for use in react-lexical only)\nexport { getUmbrellaStoreForClient, selectThreads } from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,eAAe;AAXxB,YAAY,UAAU,aAAa,UAAU;","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JsonObject, LsonObject, BaseUserMeta, LiveObject, User, Json, RoomNotificationSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, ThreadData as ThreadData$1, Client as Client$1, ClientOptions, StorageStatus as StorageStatus$1, CommentData as CommentData$1 } from '@liveblocks/client';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
3
|
import React__default, { ReactNode, PropsWithChildren } from 'react';
|
|
4
|
-
import { BaseMetadata, CommentBody, Patchable, StorageStatus, QueryMetadata, AsyncResultWithDataField, DRI, Resolve, InboxNotificationData, ToImmutable, ThreadData, HistoryVersion, Client, LiveblocksError, RoomEventMessage, CommentData, PartialUnless, ThreadDataWithDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, CommentUserReaction, ThreadDeleteInfo, InboxNotificationDeleteInfo, DistributiveOmit, AsyncResult, OpaqueClient, DU, DM, OpaqueRoom, DP, DS, DE } from '@liveblocks/core';
|
|
4
|
+
import { BaseMetadata, CommentBody, Patchable, StorageStatus, QueryMetadata, AsyncResultWithDataField, DRI, Resolve, CommentAttachment, InboxNotificationData, ToImmutable, ThreadData, HistoryVersion, Client, LiveblocksError, RoomEventMessage, CommentData, PartialUnless, ThreadDataWithDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, CommentUserReaction, ThreadDeleteInfo, InboxNotificationDeleteInfo, DistributiveOmit, AsyncResult, OpaqueClient, DU, DM, OpaqueRoom, DP, DS, DE } from '@liveblocks/core';
|
|
5
5
|
|
|
6
6
|
declare type Props = {
|
|
7
7
|
fallback: ReactNode;
|
|
@@ -176,8 +176,14 @@ declare type RoomInfoAsyncSuccess = Resolve<RoomInfoAsyncResult & {
|
|
|
176
176
|
readonly isLoading: false;
|
|
177
177
|
readonly error?: undefined;
|
|
178
178
|
}>;
|
|
179
|
+
declare type AttachmentUrlAsyncResult = AsyncResultWithDataField<string, "url">;
|
|
180
|
+
declare type AttachmentUrlAsyncSuccess = Resolve<AttachmentUrlAsyncResult & {
|
|
181
|
+
readonly isLoading: false;
|
|
182
|
+
readonly error?: undefined;
|
|
183
|
+
}>;
|
|
179
184
|
declare type CreateThreadOptions<M extends BaseMetadata> = Resolve<{
|
|
180
185
|
body: CommentBody;
|
|
186
|
+
attachments?: CommentAttachment[];
|
|
181
187
|
} & PartialUnless<M, {
|
|
182
188
|
metadata: M;
|
|
183
189
|
}>>;
|
|
@@ -188,11 +194,13 @@ declare type EditThreadMetadataOptions<M extends BaseMetadata> = {
|
|
|
188
194
|
declare type CreateCommentOptions = {
|
|
189
195
|
threadId: string;
|
|
190
196
|
body: CommentBody;
|
|
197
|
+
attachments?: CommentAttachment[];
|
|
191
198
|
};
|
|
192
199
|
declare type EditCommentOptions = {
|
|
193
200
|
threadId: string;
|
|
194
201
|
commentId: string;
|
|
195
202
|
body: CommentBody;
|
|
203
|
+
attachments?: CommentAttachment[];
|
|
196
204
|
};
|
|
197
205
|
declare type DeleteCommentOptions = {
|
|
198
206
|
threadId: string;
|
|
@@ -921,6 +929,13 @@ declare type RoomContextBundle<P extends JsonObject, S extends LsonObject, U ext
|
|
|
921
929
|
RoomNotificationSettingsState,
|
|
922
930
|
(settings: Partial<RoomNotificationSettings>) => void
|
|
923
931
|
];
|
|
932
|
+
/**
|
|
933
|
+
* Returns a presigned URL for an attachment by its ID.
|
|
934
|
+
*
|
|
935
|
+
* @example
|
|
936
|
+
* const { url, error, isLoading } = useAttachmentUrl("at_xxx");
|
|
937
|
+
*/
|
|
938
|
+
useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncResult;
|
|
924
939
|
/**
|
|
925
940
|
* (Private beta) Returns a history of versions of the current room.
|
|
926
941
|
*
|
|
@@ -1015,6 +1030,13 @@ declare type RoomContextBundle<P extends JsonObject, S extends LsonObject, U ext
|
|
|
1015
1030
|
RoomNotificationSettingsStateSuccess,
|
|
1016
1031
|
(settings: Partial<RoomNotificationSettings>) => void
|
|
1017
1032
|
];
|
|
1033
|
+
/**
|
|
1034
|
+
* Returns a presigned URL for an attachment by its ID.
|
|
1035
|
+
*
|
|
1036
|
+
* @example
|
|
1037
|
+
* const { url } = useAttachmentUrl("at_xxx");
|
|
1038
|
+
*/
|
|
1039
|
+
useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncSuccess;
|
|
1018
1040
|
}>;
|
|
1019
1041
|
} & PrivateRoomContextApi>;
|
|
1020
1042
|
/**
|
|
@@ -1760,6 +1782,24 @@ declare function useOthersConnectionIdsSuspense(): readonly number[];
|
|
|
1760
1782
|
* indicator.
|
|
1761
1783
|
*/
|
|
1762
1784
|
declare function useStorageStatusSuspense(options?: UseStorageStatusOptions): StorageStatusSuccess;
|
|
1785
|
+
/**
|
|
1786
|
+
* Returns a presigned URL for an attachment by its ID.
|
|
1787
|
+
*
|
|
1788
|
+
* @example
|
|
1789
|
+
* const { url, error, isLoading } = useAttachmentUrl("at_xxx");
|
|
1790
|
+
*/
|
|
1791
|
+
declare function useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncResult;
|
|
1792
|
+
/**
|
|
1793
|
+
* Returns a presigned URL for an attachment by its ID.
|
|
1794
|
+
*
|
|
1795
|
+
* @example
|
|
1796
|
+
* const { url } = useAttachmentUrl("at_xxx");
|
|
1797
|
+
*/
|
|
1798
|
+
declare function useAttachmentUrlSuspense(attachmentId: string): {
|
|
1799
|
+
readonly isLoading: false;
|
|
1800
|
+
readonly url: string;
|
|
1801
|
+
readonly error: undefined;
|
|
1802
|
+
};
|
|
1763
1803
|
/**
|
|
1764
1804
|
* Creates a RoomProvider and a set of typed hooks to use in your app. Note
|
|
1765
1805
|
* that any RoomProvider created in this way does not need to be nested in
|
|
@@ -2220,4 +2260,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
2220
2260
|
*/
|
|
2221
2261
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
2222
2262
|
|
|
2223
|
-
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 UseStorageStatusOptions as U, useHistoryVersionData as V, useCommentsErrorListener as W, CreateThreadError as X, _useOther as Y, _useOthers as Z, _useInboxNotificationThread as _, type UseThreadsOptions as a, _useOthersMapped as a0, _useSelf as a1, _useStorage as a2, useStorageStatus as a3, _useThreads as a4,
|
|
2263
|
+
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 UseStorageStatusOptions as U, useHistoryVersionData as V, useCommentsErrorListener as W, CreateThreadError as X, _useOther as Y, _useOthers as Z, _useInboxNotificationThread as _, type UseThreadsOptions as a, _useOthersMapped as a0, _useSelf as a1, _useStorage as a2, useStorageStatus as a3, _useThreads as a4, useAttachmentUrl as a5, _useHistoryVersions as a6, useInboxNotifications as a7, _useUserThreads_experimental as a8, useRoomInfo as a9, useUnreadInboxNotificationsCount as aa, _useUser as ab, getUmbrellaStoreForClient as ac, selectThreads as ad, _useOtherSuspense as ae, _useOthersSuspense as af, useOthersConnectionIdsSuspense as ag, _useOthersMappedSuspense as ah, _useSelfSuspense as ai, _useStorageSuspense as aj, useStorageStatusSuspense as ak, _useThreadsSuspense as al, useAttachmentUrlSuspense as am, _useHistoryVersionsSuspense as an, useInboxNotificationsSuspense as ao, useRoomInfoSuspense as ap, useUnreadInboxNotificationsCountSuspense as aq, _useUserSuspense as ar, _useUserThreadsSuspense_experimental as as, 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 { JsonObject, LsonObject, BaseUserMeta, LiveObject, User, Json, RoomNotificationSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, ThreadData as ThreadData$1, Client as Client$1, ClientOptions, StorageStatus as StorageStatus$1, CommentData as CommentData$1 } from '@liveblocks/client';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
3
|
import React__default, { ReactNode, PropsWithChildren } from 'react';
|
|
4
|
-
import { BaseMetadata, CommentBody, Patchable, StorageStatus, QueryMetadata, AsyncResultWithDataField, DRI, Resolve, InboxNotificationData, ToImmutable, ThreadData, HistoryVersion, Client, LiveblocksError, RoomEventMessage, CommentData, PartialUnless, ThreadDataWithDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, CommentUserReaction, ThreadDeleteInfo, InboxNotificationDeleteInfo, DistributiveOmit, AsyncResult, OpaqueClient, DU, DM, OpaqueRoom, DP, DS, DE } from '@liveblocks/core';
|
|
4
|
+
import { BaseMetadata, CommentBody, Patchable, StorageStatus, QueryMetadata, AsyncResultWithDataField, DRI, Resolve, CommentAttachment, InboxNotificationData, ToImmutable, ThreadData, HistoryVersion, Client, LiveblocksError, RoomEventMessage, CommentData, PartialUnless, ThreadDataWithDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, CommentUserReaction, ThreadDeleteInfo, InboxNotificationDeleteInfo, DistributiveOmit, AsyncResult, OpaqueClient, DU, DM, OpaqueRoom, DP, DS, DE } from '@liveblocks/core';
|
|
5
5
|
|
|
6
6
|
declare type Props = {
|
|
7
7
|
fallback: ReactNode;
|
|
@@ -176,8 +176,14 @@ declare type RoomInfoAsyncSuccess = Resolve<RoomInfoAsyncResult & {
|
|
|
176
176
|
readonly isLoading: false;
|
|
177
177
|
readonly error?: undefined;
|
|
178
178
|
}>;
|
|
179
|
+
declare type AttachmentUrlAsyncResult = AsyncResultWithDataField<string, "url">;
|
|
180
|
+
declare type AttachmentUrlAsyncSuccess = Resolve<AttachmentUrlAsyncResult & {
|
|
181
|
+
readonly isLoading: false;
|
|
182
|
+
readonly error?: undefined;
|
|
183
|
+
}>;
|
|
179
184
|
declare type CreateThreadOptions<M extends BaseMetadata> = Resolve<{
|
|
180
185
|
body: CommentBody;
|
|
186
|
+
attachments?: CommentAttachment[];
|
|
181
187
|
} & PartialUnless<M, {
|
|
182
188
|
metadata: M;
|
|
183
189
|
}>>;
|
|
@@ -188,11 +194,13 @@ declare type EditThreadMetadataOptions<M extends BaseMetadata> = {
|
|
|
188
194
|
declare type CreateCommentOptions = {
|
|
189
195
|
threadId: string;
|
|
190
196
|
body: CommentBody;
|
|
197
|
+
attachments?: CommentAttachment[];
|
|
191
198
|
};
|
|
192
199
|
declare type EditCommentOptions = {
|
|
193
200
|
threadId: string;
|
|
194
201
|
commentId: string;
|
|
195
202
|
body: CommentBody;
|
|
203
|
+
attachments?: CommentAttachment[];
|
|
196
204
|
};
|
|
197
205
|
declare type DeleteCommentOptions = {
|
|
198
206
|
threadId: string;
|
|
@@ -921,6 +929,13 @@ declare type RoomContextBundle<P extends JsonObject, S extends LsonObject, U ext
|
|
|
921
929
|
RoomNotificationSettingsState,
|
|
922
930
|
(settings: Partial<RoomNotificationSettings>) => void
|
|
923
931
|
];
|
|
932
|
+
/**
|
|
933
|
+
* Returns a presigned URL for an attachment by its ID.
|
|
934
|
+
*
|
|
935
|
+
* @example
|
|
936
|
+
* const { url, error, isLoading } = useAttachmentUrl("at_xxx");
|
|
937
|
+
*/
|
|
938
|
+
useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncResult;
|
|
924
939
|
/**
|
|
925
940
|
* (Private beta) Returns a history of versions of the current room.
|
|
926
941
|
*
|
|
@@ -1015,6 +1030,13 @@ declare type RoomContextBundle<P extends JsonObject, S extends LsonObject, U ext
|
|
|
1015
1030
|
RoomNotificationSettingsStateSuccess,
|
|
1016
1031
|
(settings: Partial<RoomNotificationSettings>) => void
|
|
1017
1032
|
];
|
|
1033
|
+
/**
|
|
1034
|
+
* Returns a presigned URL for an attachment by its ID.
|
|
1035
|
+
*
|
|
1036
|
+
* @example
|
|
1037
|
+
* const { url } = useAttachmentUrl("at_xxx");
|
|
1038
|
+
*/
|
|
1039
|
+
useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncSuccess;
|
|
1018
1040
|
}>;
|
|
1019
1041
|
} & PrivateRoomContextApi>;
|
|
1020
1042
|
/**
|
|
@@ -1760,6 +1782,24 @@ declare function useOthersConnectionIdsSuspense(): readonly number[];
|
|
|
1760
1782
|
* indicator.
|
|
1761
1783
|
*/
|
|
1762
1784
|
declare function useStorageStatusSuspense(options?: UseStorageStatusOptions): StorageStatusSuccess;
|
|
1785
|
+
/**
|
|
1786
|
+
* Returns a presigned URL for an attachment by its ID.
|
|
1787
|
+
*
|
|
1788
|
+
* @example
|
|
1789
|
+
* const { url, error, isLoading } = useAttachmentUrl("at_xxx");
|
|
1790
|
+
*/
|
|
1791
|
+
declare function useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncResult;
|
|
1792
|
+
/**
|
|
1793
|
+
* Returns a presigned URL for an attachment by its ID.
|
|
1794
|
+
*
|
|
1795
|
+
* @example
|
|
1796
|
+
* const { url } = useAttachmentUrl("at_xxx");
|
|
1797
|
+
*/
|
|
1798
|
+
declare function useAttachmentUrlSuspense(attachmentId: string): {
|
|
1799
|
+
readonly isLoading: false;
|
|
1800
|
+
readonly url: string;
|
|
1801
|
+
readonly error: undefined;
|
|
1802
|
+
};
|
|
1763
1803
|
/**
|
|
1764
1804
|
* Creates a RoomProvider and a set of typed hooks to use in your app. Note
|
|
1765
1805
|
* that any RoomProvider created in this way does not need to be nested in
|
|
@@ -2220,4 +2260,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
2220
2260
|
*/
|
|
2221
2261
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
2222
2262
|
|
|
2223
|
-
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 UseStorageStatusOptions as U, useHistoryVersionData as V, useCommentsErrorListener as W, CreateThreadError as X, _useOther as Y, _useOthers as Z, _useInboxNotificationThread as _, type UseThreadsOptions as a, _useOthersMapped as a0, _useSelf as a1, _useStorage as a2, useStorageStatus as a3, _useThreads as a4,
|
|
2263
|
+
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 UseStorageStatusOptions as U, useHistoryVersionData as V, useCommentsErrorListener as W, CreateThreadError as X, _useOther as Y, _useOthers as Z, _useInboxNotificationThread as _, type UseThreadsOptions as a, _useOthersMapped as a0, _useSelf as a1, _useStorage as a2, useStorageStatus as a3, _useThreads as a4, useAttachmentUrl as a5, _useHistoryVersions as a6, useInboxNotifications as a7, _useUserThreads_experimental as a8, useRoomInfo as a9, useUnreadInboxNotificationsCount as aa, _useUser as ab, getUmbrellaStoreForClient as ac, selectThreads as ad, _useOtherSuspense as ae, _useOthersSuspense as af, useOthersConnectionIdsSuspense as ag, _useOthersMappedSuspense as ah, _useSelfSuspense as ai, _useStorageSuspense as aj, useStorageStatusSuspense as ak, _useThreadsSuspense as al, useAttachmentUrlSuspense as am, _useHistoryVersionsSuspense as an, useInboxNotificationsSuspense as ao, useRoomInfoSuspense as ap, useUnreadInboxNotificationsCountSuspense as aq, _useUserSuspense as ar, _useUserThreadsSuspense_experimental as as, 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, U as UseStorageStatusOptions, a 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,
|
|
1
|
+
export { b as ClientContext, C as ClientSideSuspense, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, U as UseStorageStatusOptions, a as UseThreadsOptions, j as useAddReaction, am 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, an as useHistoryVersions, _ as useInboxNotificationThread, ao 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, ae as useOther, af as useOthers, ag as useOthersConnectionIds, G as useOthersListener, ah as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, ap as useRoomInfo, K as useRoomNotificationSettings, ai as useSelf, N as useStatus, aj as useStorage, O as useStorageRoot, ak as useStorageStatus, P as useThreadSubscription, al as useThreads, Q as useUndo, aq as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, ar as useUser, as as useUserThreads_experimental } from './suspense-j9RIyQIe.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, U as UseStorageStatusOptions, a 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,
|
|
1
|
+
export { b as ClientContext, C as ClientSideSuspense, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, U as UseStorageStatusOptions, a as UseThreadsOptions, j as useAddReaction, am 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, an as useHistoryVersions, _ as useInboxNotificationThread, ao 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, ae as useOther, af as useOthers, ag as useOthersConnectionIds, G as useOthersListener, ah as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, ap as useRoomInfo, K as useRoomNotificationSettings, ai as useSelf, N as useStatus, aj as useStorage, O as useStorageRoot, ak as useStorageStatus, P as useThreadSubscription, al as useThreads, Q as useUndo, aq as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, ar as useUser, as as useUserThreads_experimental } from './suspense-j9RIyQIe.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,14 @@
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
|
|
63
|
+
var _chunkBYZWUB6Mjs = require('./chunk-BYZWUB6M.js');
|
|
63
64
|
|
|
64
65
|
// src/suspense.ts
|
|
65
66
|
var _core = require('@liveblocks/core');
|
|
66
67
|
var _client = require('@liveblocks/client');
|
|
67
|
-
_core.detectDupes.call(void 0,
|
|
68
|
+
_core.detectDupes.call(void 0, _chunkBYZWUB6Mjs.PKG_NAME, _chunkBYZWUB6Mjs.PKG_VERSION, _chunkBYZWUB6Mjs.PKG_FORMAT);
|
|
69
|
+
|
|
68
70
|
|
|
69
71
|
|
|
70
72
|
|
|
@@ -124,5 +126,5 @@ _core.detectDupes.call(void 0, _chunkTNEGW2UUjs.PKG_NAME, _chunkTNEGW2UUjs.PKG_V
|
|
|
124
126
|
|
|
125
127
|
|
|
126
128
|
|
|
127
|
-
exports.ClientContext =
|
|
129
|
+
exports.ClientContext = _chunkBYZWUB6Mjs.ClientContext; exports.ClientSideSuspense = _chunkBYZWUB6Mjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkBYZWUB6Mjs.LiveblocksProvider; exports.RoomContext = _chunkBYZWUB6Mjs.RoomContext; exports.RoomProvider = _chunkBYZWUB6Mjs._RoomProvider; exports.shallow = _client.shallow; exports.useAddReaction = _chunkBYZWUB6Mjs._useAddReaction; exports.useAttachmentUrl = _chunkBYZWUB6Mjs.useAttachmentUrlSuspense; exports.useBatch = _chunkBYZWUB6Mjs.useBatch; exports.useBroadcastEvent = _chunkBYZWUB6Mjs._useBroadcastEvent; exports.useCanRedo = _chunkBYZWUB6Mjs.useCanRedo; exports.useCanUndo = _chunkBYZWUB6Mjs.useCanUndo; exports.useClient = _chunkBYZWUB6Mjs.useClient; exports.useCreateComment = _chunkBYZWUB6Mjs.useCreateComment; exports.useCreateThread = _chunkBYZWUB6Mjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkBYZWUB6Mjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkBYZWUB6Mjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkBYZWUB6Mjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkBYZWUB6Mjs._useDeleteThread; exports.useEditComment = _chunkBYZWUB6Mjs.useEditComment; exports.useEditThreadMetadata = _chunkBYZWUB6Mjs._useEditThreadMetadata; exports.useErrorListener = _chunkBYZWUB6Mjs.useErrorListener; exports.useEventListener = _chunkBYZWUB6Mjs._useEventListener; exports.useHistory = _chunkBYZWUB6Mjs.useHistory; exports.useHistoryVersions = _chunkBYZWUB6Mjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkBYZWUB6Mjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkBYZWUB6Mjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkBYZWUB6Mjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkBYZWUB6Mjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkBYZWUB6Mjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkBYZWUB6Mjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkBYZWUB6Mjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkBYZWUB6Mjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkBYZWUB6Mjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkBYZWUB6Mjs._useMutation; exports.useMyPresence = _chunkBYZWUB6Mjs._useMyPresence; exports.useOther = _chunkBYZWUB6Mjs._useOtherSuspense; exports.useOthers = _chunkBYZWUB6Mjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkBYZWUB6Mjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkBYZWUB6Mjs._useOthersListener; exports.useOthersMapped = _chunkBYZWUB6Mjs._useOthersMappedSuspense; exports.useRedo = _chunkBYZWUB6Mjs.useRedo; exports.useRemoveReaction = _chunkBYZWUB6Mjs.useRemoveReaction; exports.useRoom = _chunkBYZWUB6Mjs._useRoom; exports.useRoomInfo = _chunkBYZWUB6Mjs.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunkBYZWUB6Mjs.useRoomNotificationSettings; exports.useSelf = _chunkBYZWUB6Mjs._useSelfSuspense; exports.useStatus = _chunkBYZWUB6Mjs.useStatus; exports.useStorage = _chunkBYZWUB6Mjs._useStorageSuspense; exports.useStorageRoot = _chunkBYZWUB6Mjs._useStorageRoot; exports.useStorageStatus = _chunkBYZWUB6Mjs.useStorageStatusSuspense; exports.useThreadSubscription = _chunkBYZWUB6Mjs.useThreadSubscription; exports.useThreads = _chunkBYZWUB6Mjs._useThreadsSuspense; exports.useUndo = _chunkBYZWUB6Mjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkBYZWUB6Mjs.useUnreadInboxNotificationsCountSuspense; exports.useUpdateMyPresence = _chunkBYZWUB6Mjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkBYZWUB6Mjs.useUpdateRoomNotificationSettings; exports.useUser = _chunkBYZWUB6Mjs._useUserSuspense; exports.useUserThreads_experimental = _chunkBYZWUB6Mjs._useUserThreadsSuspense_experimental;
|
|
128
130
|
//# 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 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
|
@@ -30,6 +30,7 @@ import {
|
|
|
30
30
|
_useUpdateMyPresence,
|
|
31
31
|
_useUserSuspense,
|
|
32
32
|
_useUserThreadsSuspense_experimental,
|
|
33
|
+
useAttachmentUrlSuspense,
|
|
33
34
|
useBatch,
|
|
34
35
|
useCanRedo,
|
|
35
36
|
useCanUndo,
|
|
@@ -59,7 +60,7 @@ import {
|
|
|
59
60
|
useUndo,
|
|
60
61
|
useUnreadInboxNotificationsCountSuspense,
|
|
61
62
|
useUpdateRoomNotificationSettings
|
|
62
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-WVLHQ6LC.mjs";
|
|
63
64
|
|
|
64
65
|
// src/suspense.ts
|
|
65
66
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -73,6 +74,7 @@ export {
|
|
|
73
74
|
_RoomProvider as RoomProvider,
|
|
74
75
|
shallow,
|
|
75
76
|
_useAddReaction as useAddReaction,
|
|
77
|
+
useAttachmentUrlSuspense as useAttachmentUrl,
|
|
76
78
|
useBatch,
|
|
77
79
|
_useBroadcastEvent as useBroadcastEvent,
|
|
78
80
|
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 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"],"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 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"],"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.8.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",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"showdeps": "depcruise src --include-only '^src' --exclude='__tests__' --output-type dot | dot -T svg > /tmp/dependency-graph.svg && open /tmp/dependency-graph.svg"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@liveblocks/client": "2.
|
|
53
|
-
"@liveblocks/core": "2.
|
|
52
|
+
"@liveblocks/client": "2.8.0-beta1",
|
|
53
|
+
"@liveblocks/core": "2.8.0-beta1",
|
|
54
54
|
"use-sync-external-store": "^1.2.2"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|