@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/index.js.map CHANGED
@@ -1 +1 @@
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 useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n"]}
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
- } from "./chunk-7KAWYNVI.mjs";
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,
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,eAAe;AAXxB,YAAY,UAAU,aAAa,UAAU;","names":[]}
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, ThreadData, Client, LiveblocksError, RoomEventMessage, CommentData, PartialUnless, OpaqueClient, DU, ClientOptions, DM, OpaqueRoom, RoomNotificationSettings as RoomNotificationSettings$1, DP, DS, DE } from '@liveblocks/core';
4
+ import { BaseMetadata, CommentBody, Patchable, QueryMetadata, StorageStatus, AsyncResultWithDataField, DRI, Resolve, 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, useRoomInfo as a4, useUnreadInboxNotificationsCount as a5, _useUser as a6, _useOtherSuspense as a7, _useOthersSuspense as a8, useOthersConnectionIdsSuspense as a9, _useOthersMappedSuspense as aa, _useSelfSuspense as ab, _useStorageSuspense as ac, useStorageStatusSuspense as ad, _useThreadsSuspense as ae, useInboxNotificationsSuspense as af, useRoomInfoSuspense as ag, useUnreadInboxNotificationsCountSuspense as ah, _useUserSuspense as ai, 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 };
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, ThreadData, Client, LiveblocksError, RoomEventMessage, CommentData, PartialUnless, OpaqueClient, DU, ClientOptions, DM, OpaqueRoom, RoomNotificationSettings as RoomNotificationSettings$1, DP, DS, DE } from '@liveblocks/core';
4
+ import { BaseMetadata, CommentBody, Patchable, QueryMetadata, StorageStatus, AsyncResultWithDataField, DRI, Resolve, 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, useRoomInfo as a4, useUnreadInboxNotificationsCount as a5, _useUser as a6, _useOtherSuspense as a7, _useOthersSuspense as a8, useOthersConnectionIdsSuspense as a9, _useOthersMappedSuspense as aa, _useSelfSuspense as ab, _useStorageSuspense as ac, useStorageStatusSuspense as ad, _useThreadsSuspense as ae, useInboxNotificationsSuspense as af, useRoomInfoSuspense as ag, useUnreadInboxNotificationsCountSuspense as ah, _useUserSuspense as ai, 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 };
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,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, af 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, a7 as useOther, a8 as useOthers, a9 as useOthersConnectionIds, F as useOthersListener, aa as useOthersMapped, G as useRedo, H as useRemoveReaction, I as useRoom, ag as useRoomInfo, J as useRoomNotificationSettings, ab as useSelf, K as useStatus, ac as useStorage, N as useStorageRoot, ad as useStorageStatus, O as useThreadSubscription, ae as useThreads, P as useUndo, ah as useUnreadInboxNotificationsCount, Q as useUpdateMyPresence, S as useUpdateRoomNotificationSettings, ai as useUser } from './suspense-HhfQZzDE.mjs';
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';
@@ -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, af 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, a7 as useOther, a8 as useOthers, a9 as useOthersConnectionIds, F as useOthersListener, aa as useOthersMapped, G as useRedo, H as useRemoveReaction, I as useRoom, ag as useRoomInfo, J as useRoomNotificationSettings, ab as useSelf, K as useStatus, ac as useStorage, N as useStorageRoot, ad as useStorageStatus, O as useThreadSubscription, ae as useThreads, P as useUndo, ah as useUnreadInboxNotificationsCount, Q as useUpdateMyPresence, S as useUpdateRoomNotificationSettings, ai as useUser } from './suspense-HhfQZzDE.js';
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
- var _chunkBO46HBAIjs = require('./chunk-BO46HBAI.js');
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, _chunkBO46HBAIjs.PKG_NAME, _chunkBO46HBAIjs.PKG_VERSION, _chunkBO46HBAIjs.PKG_FORMAT);
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 = _chunkBO46HBAIjs.ClientContext; exports.ClientSideSuspense = _chunkBO46HBAIjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkBO46HBAIjs.LiveblocksProvider; exports.RoomContext = _chunkBO46HBAIjs.RoomContext; exports.RoomProvider = _chunkBO46HBAIjs._RoomProvider; exports.shallow = _client.shallow; exports.useAddReaction = _chunkBO46HBAIjs._useAddReaction; exports.useBatch = _chunkBO46HBAIjs.useBatch; exports.useBroadcastEvent = _chunkBO46HBAIjs._useBroadcastEvent; exports.useCanRedo = _chunkBO46HBAIjs.useCanRedo; exports.useCanUndo = _chunkBO46HBAIjs.useCanUndo; exports.useClient = _chunkBO46HBAIjs.useClient; exports.useCreateComment = _chunkBO46HBAIjs.useCreateComment; exports.useCreateThread = _chunkBO46HBAIjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkBO46HBAIjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkBO46HBAIjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkBO46HBAIjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkBO46HBAIjs._useDeleteThread; exports.useEditComment = _chunkBO46HBAIjs.useEditComment; exports.useEditThreadMetadata = _chunkBO46HBAIjs._useEditThreadMetadata; exports.useErrorListener = _chunkBO46HBAIjs.useErrorListener; exports.useEventListener = _chunkBO46HBAIjs._useEventListener; exports.useHistory = _chunkBO46HBAIjs.useHistory; exports.useInboxNotificationThread = _chunkBO46HBAIjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkBO46HBAIjs.useInboxNotificationsSuspense; exports.useLostConnectionListener = _chunkBO46HBAIjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkBO46HBAIjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkBO46HBAIjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkBO46HBAIjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkBO46HBAIjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkBO46HBAIjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkBO46HBAIjs._useMutation; exports.useMyPresence = _chunkBO46HBAIjs._useMyPresence; exports.useOther = _chunkBO46HBAIjs._useOtherSuspense; exports.useOthers = _chunkBO46HBAIjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkBO46HBAIjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkBO46HBAIjs._useOthersListener; exports.useOthersMapped = _chunkBO46HBAIjs._useOthersMappedSuspense; exports.useRedo = _chunkBO46HBAIjs.useRedo; exports.useRemoveReaction = _chunkBO46HBAIjs.useRemoveReaction; exports.useRoom = _chunkBO46HBAIjs._useRoom; exports.useRoomInfo = _chunkBO46HBAIjs.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunkBO46HBAIjs.useRoomNotificationSettings; exports.useSelf = _chunkBO46HBAIjs._useSelfSuspense; exports.useStatus = _chunkBO46HBAIjs.useStatus; exports.useStorage = _chunkBO46HBAIjs._useStorageSuspense; exports.useStorageRoot = _chunkBO46HBAIjs._useStorageRoot; exports.useStorageStatus = _chunkBO46HBAIjs.useStorageStatusSuspense; exports.useThreadSubscription = _chunkBO46HBAIjs.useThreadSubscription; exports.useThreads = _chunkBO46HBAIjs._useThreadsSuspense; exports.useUndo = _chunkBO46HBAIjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkBO46HBAIjs.useUnreadInboxNotificationsCountSuspense; exports.useUpdateMyPresence = _chunkBO46HBAIjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkBO46HBAIjs.useUpdateRoomNotificationSettings; exports.useUser = _chunkBO46HBAIjs._useUserSuspense;
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
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/suspense.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,eAAe;AAXxB,YAAY,UAAU,aAAa,UAAU","sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseStorageStatusOptions,\n UseThreadsOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n LiveblocksProvider,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n} from \"./liveblocks\";\nexport {\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useErrorListener,\n useEventListener,\n useHistory,\n 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"]}
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
- } from "./chunk-7KAWYNVI.mjs";
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,
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,eAAe;AAXxB,YAAY,UAAU,aAAa,UAAU;","names":[]}
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.0",
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.0",
51
- "@liveblocks/core": "2.4.0",
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": {