@liveblocks/react 2.4.0 → 2.4.1-test2
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-BO46HBAI.js → chunk-MUOCWN6E.js} +192 -50
- package/dist/chunk-MUOCWN6E.js.map +1 -0
- package/dist/{chunk-7KAWYNVI.mjs → chunk-U4TTA3CR.mjs} +193 -51
- package/dist/chunk-U4TTA3CR.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 +4 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{suspense-HhfQZzDE.d.mts → suspense-OBA-zP4D.d.mts} +10 -2
- package/dist/{suspense-HhfQZzDE.d.ts → suspense-OBA-zP4D.d.ts} +10 -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 +4 -2
- package/dist/suspense.mjs.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-7KAWYNVI.mjs.map +0 -1
- package/dist/chunk-BO46HBAI.js.map +0 -1
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 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 as experimental_useUserThreads,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n"]}
|
package/dist/index.mjs
CHANGED
|
@@ -60,8 +60,9 @@ import {
|
|
|
60
60
|
useThreadSubscription,
|
|
61
61
|
useUndo,
|
|
62
62
|
useUnreadInboxNotificationsCount,
|
|
63
|
-
useUpdateRoomNotificationSettings
|
|
64
|
-
|
|
63
|
+
useUpdateRoomNotificationSettings,
|
|
64
|
+
useUserThreads
|
|
65
|
+
} from "./chunk-U4TTA3CR.mjs";
|
|
65
66
|
|
|
66
67
|
// src/index.ts
|
|
67
68
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -76,6 +77,7 @@ export {
|
|
|
76
77
|
_RoomProvider as RoomProvider,
|
|
77
78
|
createLiveblocksContext,
|
|
78
79
|
createRoomContext,
|
|
80
|
+
useUserThreads as experimental_useUserThreads,
|
|
79
81
|
selectedThreads,
|
|
80
82
|
shallow,
|
|
81
83
|
_useAddReaction as useAddReaction,
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseStorageStatusOptions,\n UseThreadsOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n LiveblocksProvider,\n createLiveblocksContext,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useErrorListener,\n useEventListener,\n useHistory,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useRoomNotificationSettings,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n} from \"./room\";\n\nexport { useCommentsErrorListener, CreateThreadError } from \"./room\";\nexport { selectedThreads } from \"./comments/lib/selected-threads\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useStorageStatus,\n useThreads,\n} from \"./room\";\nexport {\n useInboxNotifications,\n 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 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 as experimental_useUserThreads,\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,
|
|
4
|
+
import { BaseMetadata, CommentBody, Patchable, QueryMetadata, StorageStatus, AsyncResultWithDataField, DRI, Resolve, ThreadData, InboxNotificationData, ToImmutable, 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;
|
|
@@ -1060,6 +1060,14 @@ declare function LiveblocksProvider<U extends BaseUserMeta = DU>(props: PropsWit
|
|
|
1060
1060
|
* settings from the given client instead.
|
|
1061
1061
|
*/
|
|
1062
1062
|
declare function createLiveblocksContext<U extends BaseUserMeta = DU, M extends BaseMetadata$1 = DM>(client: OpaqueClient): LiveblocksContextBundle<U, M>;
|
|
1063
|
+
/**
|
|
1064
|
+
* Experimental hook that could be removed at any time! Do not use unless explicitely recommended
|
|
1065
|
+
*/
|
|
1066
|
+
declare function useUserThreads(): ThreadsState<BaseMetadata$1>;
|
|
1067
|
+
/**
|
|
1068
|
+
* Experimental hook that could be removed at any time! Do not use unless explicitely recommended
|
|
1069
|
+
*/
|
|
1070
|
+
declare function useUserThreadsSuspense(): ThreadsStateResolved<BaseMetadata$1>;
|
|
1063
1071
|
/**
|
|
1064
1072
|
* Returns the inbox notifications for the current user.
|
|
1065
1073
|
*
|
|
@@ -1810,4 +1818,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
1810
1818
|
*/
|
|
1811
1819
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
1812
1820
|
|
|
1813
|
-
export { _useSelf as $, useLostConnectionListener as A, useMarkThreadAsRead as B, ClientSideSuspense as C, _useMutation as D, _useMyPresence as E, _useOthersListener as F, useRedo as G, useRemoveReaction as H, _useRoom as I, useRoomNotificationSettings as J, useStatus as K, LiveblocksProvider as L, type MutationContext as M, _useStorageRoot as N, useThreadSubscription as O, useUndo as P, _useUpdateMyPresence as Q, RoomContext as R, useUpdateRoomNotificationSettings as S, useCommentsErrorListener as T, type UseThreadsOptions as U, CreateThreadError as V, _useOther as W, _useOthers as X, useOthersConnectionIds as Y, _useOthersMapped as Z, _useInboxNotificationThread as _, type UseStorageStatusOptions as a, _useStorage as a0, useStorageStatus as a1, _useThreads as a2, useInboxNotifications as a3,
|
|
1821
|
+
export { _useSelf as $, useLostConnectionListener as A, useMarkThreadAsRead as B, ClientSideSuspense as C, _useMutation as D, _useMyPresence as E, _useOthersListener as F, useRedo as G, useRemoveReaction as H, _useRoom as I, useRoomNotificationSettings as J, useStatus as K, LiveblocksProvider as L, type MutationContext as M, _useStorageRoot as N, useThreadSubscription as O, useUndo as P, _useUpdateMyPresence as Q, RoomContext as R, useUpdateRoomNotificationSettings as S, useCommentsErrorListener as T, type UseThreadsOptions as U, CreateThreadError as V, _useOther as W, _useOthers as X, useOthersConnectionIds as Y, _useOthersMapped as Z, _useInboxNotificationThread as _, type UseStorageStatusOptions as a, _useStorage as a0, useStorageStatus as a1, _useThreads as a2, useInboxNotifications as a3, useUserThreads as a4, useRoomInfo as a5, useUnreadInboxNotificationsCount as a6, _useUser as a7, _useOtherSuspense as a8, _useOthersSuspense as a9, useOthersConnectionIdsSuspense as aa, _useOthersMappedSuspense as ab, _useSelfSuspense as ac, _useStorageSuspense as ad, useStorageStatusSuspense as ae, _useThreadsSuspense as af, useInboxNotificationsSuspense as ag, useRoomInfoSuspense as ah, useUnreadInboxNotificationsCountSuspense as ai, _useUserSuspense as aj, useUserThreadsSuspense as ak, 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,
|
|
4
|
+
import { BaseMetadata, CommentBody, Patchable, QueryMetadata, StorageStatus, AsyncResultWithDataField, DRI, Resolve, ThreadData, InboxNotificationData, ToImmutable, 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;
|
|
@@ -1060,6 +1060,14 @@ declare function LiveblocksProvider<U extends BaseUserMeta = DU>(props: PropsWit
|
|
|
1060
1060
|
* settings from the given client instead.
|
|
1061
1061
|
*/
|
|
1062
1062
|
declare function createLiveblocksContext<U extends BaseUserMeta = DU, M extends BaseMetadata$1 = DM>(client: OpaqueClient): LiveblocksContextBundle<U, M>;
|
|
1063
|
+
/**
|
|
1064
|
+
* Experimental hook that could be removed at any time! Do not use unless explicitely recommended
|
|
1065
|
+
*/
|
|
1066
|
+
declare function useUserThreads(): ThreadsState<BaseMetadata$1>;
|
|
1067
|
+
/**
|
|
1068
|
+
* Experimental hook that could be removed at any time! Do not use unless explicitely recommended
|
|
1069
|
+
*/
|
|
1070
|
+
declare function useUserThreadsSuspense(): ThreadsStateResolved<BaseMetadata$1>;
|
|
1063
1071
|
/**
|
|
1064
1072
|
* Returns the inbox notifications for the current user.
|
|
1065
1073
|
*
|
|
@@ -1810,4 +1818,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
1810
1818
|
*/
|
|
1811
1819
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
1812
1820
|
|
|
1813
|
-
export { _useSelf as $, useLostConnectionListener as A, useMarkThreadAsRead as B, ClientSideSuspense as C, _useMutation as D, _useMyPresence as E, _useOthersListener as F, useRedo as G, useRemoveReaction as H, _useRoom as I, useRoomNotificationSettings as J, useStatus as K, LiveblocksProvider as L, type MutationContext as M, _useStorageRoot as N, useThreadSubscription as O, useUndo as P, _useUpdateMyPresence as Q, RoomContext as R, useUpdateRoomNotificationSettings as S, useCommentsErrorListener as T, type UseThreadsOptions as U, CreateThreadError as V, _useOther as W, _useOthers as X, useOthersConnectionIds as Y, _useOthersMapped as Z, _useInboxNotificationThread as _, type UseStorageStatusOptions as a, _useStorage as a0, useStorageStatus as a1, _useThreads as a2, useInboxNotifications as a3,
|
|
1821
|
+
export { _useSelf as $, useLostConnectionListener as A, useMarkThreadAsRead as B, ClientSideSuspense as C, _useMutation as D, _useMyPresence as E, _useOthersListener as F, useRedo as G, useRemoveReaction as H, _useRoom as I, useRoomNotificationSettings as J, useStatus as K, LiveblocksProvider as L, type MutationContext as M, _useStorageRoot as N, useThreadSubscription as O, useUndo as P, _useUpdateMyPresence as Q, RoomContext as R, useUpdateRoomNotificationSettings as S, useCommentsErrorListener as T, type UseThreadsOptions as U, CreateThreadError as V, _useOther as W, _useOthers as X, useOthersConnectionIds as Y, _useOthersMapped as Z, _useInboxNotificationThread as _, type UseStorageStatusOptions as a, _useStorage as a0, useStorageStatus as a1, _useThreads as a2, useInboxNotifications as a3, useUserThreads as a4, useRoomInfo as a5, useUnreadInboxNotificationsCount as a6, _useUser as a7, _useOtherSuspense as a8, _useOthersSuspense as a9, useOthersConnectionIdsSuspense as aa, _useOthersMappedSuspense as ab, _useSelfSuspense as ac, _useStorageSuspense as ad, useStorageStatusSuspense as ae, _useThreadsSuspense as af, useInboxNotificationsSuspense as ag, useRoomInfoSuspense as ah, useUnreadInboxNotificationsCountSuspense as ai, _useUserSuspense as aj, useUserThreadsSuspense as ak, 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, ak as experimental_useUserThreads, 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, ag as useInboxNotifications, A as useLostConnectionListener, d as useMarkAllInboxNotificationsAsRead, e as useMarkInboxNotificationAsRead, B as useMarkThreadAsRead, v as useMarkThreadAsResolved, w as useMarkThreadAsUnresolved, D as useMutation, E as useMyPresence, a8 as useOther, a9 as useOthers, aa as useOthersConnectionIds, F as useOthersListener, ab as useOthersMapped, G as useRedo, H as useRemoveReaction, I as useRoom, ah as useRoomInfo, J as useRoomNotificationSettings, ac as useSelf, K as useStatus, ad as useStorage, N as useStorageRoot, ae as useStorageStatus, O as useThreadSubscription, af as useThreads, P as useUndo, ai as useUnreadInboxNotificationsCount, Q as useUpdateMyPresence, S as useUpdateRoomNotificationSettings, aj as useUser } from './suspense-OBA-zP4D.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, ak as experimental_useUserThreads, 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, ag as useInboxNotifications, A as useLostConnectionListener, d as useMarkAllInboxNotificationsAsRead, e as useMarkInboxNotificationAsRead, B as useMarkThreadAsRead, v as useMarkThreadAsResolved, w as useMarkThreadAsUnresolved, D as useMutation, E as useMyPresence, a8 as useOther, a9 as useOthers, aa as useOthersConnectionIds, F as useOthersListener, ab as useOthersMapped, G as useRedo, H as useRemoveReaction, I as useRoom, ah as useRoomInfo, J as useRoomNotificationSettings, ac as useSelf, K as useStatus, ad as useStorage, N as useStorageRoot, ae as useStorageStatus, O as useThreadSubscription, af as useThreads, P as useUndo, ai as useUnreadInboxNotificationsCount, Q as useUpdateMyPresence, S as useUpdateRoomNotificationSettings, aj as useUser } from './suspense-OBA-zP4D.js';
|
|
2
2
|
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@liveblocks/core';
|
package/dist/suspense.js
CHANGED
|
@@ -56,12 +56,14 @@
|
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
|
|
60
|
+
var _chunkMUOCWN6Ejs = require('./chunk-MUOCWN6E.js');
|
|
60
61
|
|
|
61
62
|
// src/suspense.ts
|
|
62
63
|
var _core = require('@liveblocks/core');
|
|
63
64
|
var _client = require('@liveblocks/client');
|
|
64
|
-
_core.detectDupes.call(void 0,
|
|
65
|
+
_core.detectDupes.call(void 0, _chunkMUOCWN6Ejs.PKG_NAME, _chunkMUOCWN6Ejs.PKG_VERSION, _chunkMUOCWN6Ejs.PKG_FORMAT);
|
|
66
|
+
|
|
65
67
|
|
|
66
68
|
|
|
67
69
|
|
|
@@ -118,5 +120,5 @@ _core.detectDupes.call(void 0, _chunkBO46HBAIjs.PKG_NAME, _chunkBO46HBAIjs.PKG_V
|
|
|
118
120
|
|
|
119
121
|
|
|
120
122
|
|
|
121
|
-
exports.ClientContext =
|
|
123
|
+
exports.ClientContext = _chunkMUOCWN6Ejs.ClientContext; exports.ClientSideSuspense = _chunkMUOCWN6Ejs.ClientSideSuspense; exports.LiveblocksProvider = _chunkMUOCWN6Ejs.LiveblocksProvider; exports.RoomContext = _chunkMUOCWN6Ejs.RoomContext; exports.RoomProvider = _chunkMUOCWN6Ejs._RoomProvider; exports.experimental_useUserThreads = _chunkMUOCWN6Ejs.useUserThreadsSuspense; exports.shallow = _client.shallow; exports.useAddReaction = _chunkMUOCWN6Ejs._useAddReaction; exports.useBatch = _chunkMUOCWN6Ejs.useBatch; exports.useBroadcastEvent = _chunkMUOCWN6Ejs._useBroadcastEvent; exports.useCanRedo = _chunkMUOCWN6Ejs.useCanRedo; exports.useCanUndo = _chunkMUOCWN6Ejs.useCanUndo; exports.useClient = _chunkMUOCWN6Ejs.useClient; exports.useCreateComment = _chunkMUOCWN6Ejs.useCreateComment; exports.useCreateThread = _chunkMUOCWN6Ejs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkMUOCWN6Ejs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkMUOCWN6Ejs.useDeleteComment; exports.useDeleteInboxNotification = _chunkMUOCWN6Ejs.useDeleteInboxNotification; exports.useDeleteThread = _chunkMUOCWN6Ejs._useDeleteThread; exports.useEditComment = _chunkMUOCWN6Ejs.useEditComment; exports.useEditThreadMetadata = _chunkMUOCWN6Ejs._useEditThreadMetadata; exports.useErrorListener = _chunkMUOCWN6Ejs.useErrorListener; exports.useEventListener = _chunkMUOCWN6Ejs._useEventListener; exports.useHistory = _chunkMUOCWN6Ejs.useHistory; exports.useInboxNotificationThread = _chunkMUOCWN6Ejs._useInboxNotificationThread; exports.useInboxNotifications = _chunkMUOCWN6Ejs.useInboxNotificationsSuspense; exports.useLostConnectionListener = _chunkMUOCWN6Ejs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkMUOCWN6Ejs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkMUOCWN6Ejs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkMUOCWN6Ejs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkMUOCWN6Ejs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkMUOCWN6Ejs.useMarkThreadAsUnresolved; exports.useMutation = _chunkMUOCWN6Ejs._useMutation; exports.useMyPresence = _chunkMUOCWN6Ejs._useMyPresence; exports.useOther = _chunkMUOCWN6Ejs._useOtherSuspense; exports.useOthers = _chunkMUOCWN6Ejs._useOthersSuspense; exports.useOthersConnectionIds = _chunkMUOCWN6Ejs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkMUOCWN6Ejs._useOthersListener; exports.useOthersMapped = _chunkMUOCWN6Ejs._useOthersMappedSuspense; exports.useRedo = _chunkMUOCWN6Ejs.useRedo; exports.useRemoveReaction = _chunkMUOCWN6Ejs.useRemoveReaction; exports.useRoom = _chunkMUOCWN6Ejs._useRoom; exports.useRoomInfo = _chunkMUOCWN6Ejs.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunkMUOCWN6Ejs.useRoomNotificationSettings; exports.useSelf = _chunkMUOCWN6Ejs._useSelfSuspense; exports.useStatus = _chunkMUOCWN6Ejs.useStatus; exports.useStorage = _chunkMUOCWN6Ejs._useStorageSuspense; exports.useStorageRoot = _chunkMUOCWN6Ejs._useStorageRoot; exports.useStorageStatus = _chunkMUOCWN6Ejs.useStorageStatusSuspense; exports.useThreadSubscription = _chunkMUOCWN6Ejs.useThreadSubscription; exports.useThreads = _chunkMUOCWN6Ejs._useThreadsSuspense; exports.useUndo = _chunkMUOCWN6Ejs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkMUOCWN6Ejs.useUnreadInboxNotificationsCountSuspense; exports.useUpdateMyPresence = _chunkMUOCWN6Ejs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkMUOCWN6Ejs.useUpdateRoomNotificationSettings; exports.useUser = _chunkMUOCWN6Ejs._useUserSuspense;
|
|
122
124
|
//# 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 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 as experimental_useUserThreads,\n} from \"./liveblocks\";\n"]}
|
package/dist/suspense.mjs
CHANGED
|
@@ -55,8 +55,9 @@ import {
|
|
|
55
55
|
useThreadSubscription,
|
|
56
56
|
useUndo,
|
|
57
57
|
useUnreadInboxNotificationsCountSuspense,
|
|
58
|
-
useUpdateRoomNotificationSettings
|
|
59
|
-
|
|
58
|
+
useUpdateRoomNotificationSettings,
|
|
59
|
+
useUserThreadsSuspense
|
|
60
|
+
} from "./chunk-U4TTA3CR.mjs";
|
|
60
61
|
|
|
61
62
|
// src/suspense.ts
|
|
62
63
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -68,6 +69,7 @@ export {
|
|
|
68
69
|
LiveblocksProvider,
|
|
69
70
|
RoomContext,
|
|
70
71
|
_RoomProvider as RoomProvider,
|
|
72
|
+
useUserThreadsSuspense as experimental_useUserThreads,
|
|
71
73
|
shallow,
|
|
72
74
|
_useAddReaction as useAddReaction,
|
|
73
75
|
useBatch,
|
package/dist/suspense.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/suspense.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseStorageStatusOptions,\n UseThreadsOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n LiveblocksProvider,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n} from \"./liveblocks\";\nexport {\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useErrorListener,\n useEventListener,\n useHistory,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useRoomNotificationSettings,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n} from \"./room\";\n\n// Export the Suspense versions of our hooks\n// (This part differs from src/index.ts)\nexport {\n useOtherSuspense as useOther,\n useOthersSuspense as useOthers,\n useOthersConnectionIdsSuspense as useOthersConnectionIds,\n useOthersMappedSuspense as useOthersMapped,\n useSelfSuspense as useSelf,\n useStorageSuspense as useStorage,\n useStorageStatusSuspense as useStorageStatus,\n useThreadsSuspense as useThreads,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useRoomInfoSuspense as useRoomInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n} 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 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 as experimental_useUserThreads,\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.4.
|
|
3
|
+
"version": "2.4.1-test2",
|
|
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.4.
|
|
51
|
-
"@liveblocks/core": "2.4.
|
|
50
|
+
"@liveblocks/client": "2.4.1-test2",
|
|
51
|
+
"@liveblocks/core": "2.4.1-test2",
|
|
52
52
|
"use-sync-external-store": "^1.2.2"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|