@liveblocks/react 2.25.0-aiprivatebeta13 → 2.25.0-aiprivatebeta15

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.
@@ -1,8 +1,8 @@
1
1
  import * as react from 'react';
2
2
  import { ComponentType, Context, PropsWithChildren, ReactNode } from 'react';
3
- import { BaseUserMeta, Client, JsonObject, LsonObject, LiveObject, User, Json, RoomSubscriptionSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, ClientOptions, StorageStatus as StorageStatus$1, ThreadData as ThreadData$1, CommentData as CommentData$1 } from '@liveblocks/client';
3
+ import { BaseUserMeta, Client, JsonObject, LsonObject, LiveObject, User, Json, RoomSubscriptionSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, ClientOptions, ThreadData as ThreadData$1, CommentData as CommentData$1 } from '@liveblocks/client';
4
4
  import * as _liveblocks_core from '@liveblocks/core';
5
- import { OpaqueClient, OpaqueRoom, AiKnowledgeSource, AiOpaqueToolDefinition, BaseMetadata, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, Relax, ToImmutable, PartialNotificationSettings, AsyncLoading, AsyncError, ThreadData, HistoryVersion, AiChat, Client as Client$1, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, WithNavigation, AiChatMessage, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, MessageId, SubscriptionData, SubscriptionKey, CommentUserReaction, InboxNotificationDeleteInfo, SubscriptionDeleteInfo, RoomSubscriptionSettings as RoomSubscriptionSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DM, TextEditorType, IYjsProvider, DP, DS, DE } from '@liveblocks/core';
5
+ import { OpaqueClient, OpaqueRoom, AiKnowledgeSource, AiOpaqueToolDefinition, BaseMetadata, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, Relax, ToImmutable, PartialNotificationSettings, AsyncLoading, AsyncError, ThreadData, HistoryVersion, AiChat, Client as Client$1, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, WithNavigation, AiChatMessage, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, MessageId, SubscriptionData, SubscriptionKey, CommentUserReaction, InboxNotificationDeleteInfo, SubscriptionDeleteInfo, RoomSubscriptionSettings as RoomSubscriptionSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DM, TextEditorType, IYjsProvider, DP, DS, DE } from '@liveblocks/core';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
 
8
8
  /**
@@ -63,8 +63,6 @@ type SendAiMessageOptions = {
63
63
  */
64
64
  copilotId?: string;
65
65
  };
66
- type UseStorageStatusOptions = UseSyncStatusOptions;
67
- type StorageStatusSuccess = Exclude<StorageStatus, "not-loaded" | "loading">;
68
66
  type ThreadsQuery<M extends BaseMetadata> = {
69
67
  /**
70
68
  * Whether to only return threads marked as resolved or unresolved. If not provided,
@@ -387,16 +385,6 @@ type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U exten
387
385
  * a re-render whenever it changes. Can be used to render a status badge.
388
386
  */
389
387
  useStatus(): Status;
390
- /**
391
- * @deprecated It's recommended to use `useMutation` for writing to Storage,
392
- * which will automatically batch all mutations.
393
- *
394
- * Returns a function that batches modifications made during the given function.
395
- * All the modifications are sent to other clients in a single message.
396
- * All the modifications are merged in a single history item (undo/redo).
397
- * All the subscribers are called only after the batch is over.
398
- */
399
- useBatch<T>(): (callback: () => T) => T;
400
388
  /**
401
389
  * Returns a callback that lets you broadcast custom events to other users in the room
402
390
  *
@@ -754,13 +742,6 @@ type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U exten
754
742
  * removeReaction({ threadId: "th_xxx", commentId: "cm_xxx", emoji: "👍" })
755
743
  */
756
744
  useRemoveReaction(): (options: CommentReactionOptions) => void;
757
- /**
758
- * @deprecated Renamed to `useUpdateRoomSubscriptionSettings`
759
- *
760
- * Returns a function that updates the user's subscription settings
761
- * for the current room.
762
- */
763
- useUpdateRoomNotificationSettings(): (settings: Partial<RoomSubscriptionSettings>) => void;
764
745
  /**
765
746
  * Returns a function that updates the user's subscription settings
766
747
  * for the current room.
@@ -788,14 +769,6 @@ type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U exten
788
769
  useThreadSubscription(threadId: string): ThreadSubscription;
789
770
  };
790
771
  type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends BaseUserMeta, E extends Json, M extends BaseMetadata> = Resolve<RoomContextBundleCommon<P, S, U, E, M> & SharedContextBundle<U>["classic"] & {
791
- /**
792
- * Returns the current storage status for the Room, and triggers
793
- * a re-render whenever it changes. Can be used to render a "Saving..."
794
- * indicator.
795
- *
796
- * @deprecated Prefer useSyncStatus()
797
- */
798
- useStorageStatus(options?: UseStorageStatusOptions): StorageStatus;
799
772
  /**
800
773
  * Extract arbitrary data from the Liveblocks Storage state, using an
801
774
  * arbitrary selector function.
@@ -857,16 +830,6 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
857
830
  * const { threads, error, isLoading } = useThreads();
858
831
  */
859
832
  useThreads(options?: UseThreadsOptions<M>): ThreadsAsyncResult<M>;
860
- /**
861
- * @deprecated Renamed to `useRoomSubscriptionSettings`
862
- *
863
- * Returns the user's notification settings for the current room
864
- * and a function to update them.
865
- */
866
- useRoomNotificationSettings(): [
867
- RoomSubscriptionSettingsAsyncResult,
868
- (settings: Partial<RoomSubscriptionSettings>) => void
869
- ];
870
833
  /**
871
834
  * Returns the user's subscription settings for the current room
872
835
  * and a function to update them.
@@ -900,14 +863,6 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
900
863
  */
901
864
  useHistoryVersionData(id: string): HistoryVersionDataAsyncResult;
902
865
  suspense: Resolve<RoomContextBundleCommon<P, S, U, E, M> & SharedContextBundle<U>["suspense"] & {
903
- /**
904
- * Returns the current storage status for the Room, and triggers
905
- * a re-render whenever it changes. Can be used to render a "Saving..."
906
- * indicator.
907
- *
908
- * @deprecated Prefer useSyncStatus()
909
- */
910
- useStorageStatus(options?: UseStorageStatusOptions): StorageStatusSuccess;
911
866
  /**
912
867
  * Extract arbitrary data from the Liveblocks Storage state, using an
913
868
  * arbitrary selector function.
@@ -970,16 +925,6 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
970
925
  * const { versions } = useHistoryVersions();
971
926
  */
972
927
  useHistoryVersions(): HistoryVersionsAsyncSuccess;
973
- /**
974
- * @deprecated Renamed to `useRoomSubscriptionSettings`
975
- *
976
- * Returns the user's notification settings for the current room
977
- * and a function to update them.
978
- */
979
- useRoomNotificationSettings(): [
980
- RoomSubscriptionSettingsAsyncSuccess,
981
- (settings: Partial<RoomSubscriptionSettings>) => void
982
- ];
983
928
  /**
984
929
  * Returns the user's subscription settings for the current room
985
930
  * and a function to update them.
@@ -1919,27 +1864,12 @@ declare function useCreateTextMention(): (userId: string, mentionId: string) =>
1919
1864
  /** @private - Internal API, do not rely on it. */
1920
1865
  declare function useDeleteTextMention(): (mentionId: string) => void;
1921
1866
  /** @private - Internal API, do not rely on it. */
1922
- declare function useResolveMentionSuggestions(): ((args: _liveblocks_core.ResolveMentionSuggestionsArgs) => _liveblocks_core.Awaitable<string[]>) | undefined;
1867
+ declare function useResolveMentionSuggestions(): ((args: _liveblocks_core.ResolveMentionSuggestionsArgs) => _liveblocks_core.Awaitable<string[] | _liveblocks_core.MentionData[]>) | undefined;
1923
1868
  /** @private - Internal API, do not rely on it. */
1924
- declare function useMentionSuggestionsCache(): Map<string, string[]>;
1925
- /**
1926
- * Returns the current storage status for the Room, and triggers
1927
- * a re-render whenever it changes. Can be used to render a "Saving..."
1928
- * indicator.
1929
- *
1930
- * @deprecated Prefer useSyncStatus()
1931
- */
1932
- declare function useStorageStatus(options?: UseStorageStatusOptions): StorageStatus$1;
1933
- /**
1934
- * @deprecated It's recommended to use `useMutation` for writing to Storage,
1935
- * which will automatically batch all mutations.
1936
- *
1937
- * Returns a function that batches modifications made during the given function.
1938
- * All the modifications are sent to other clients in a single message.
1939
- * All the modifications are merged in a single history item (undo/redo).
1940
- * All the subscribers are called only after the batch is over.
1941
- */
1942
- declare function useBatch<T>(): (callback: () => T) => T;
1869
+ declare function useMentionSuggestionsCache(): Map<string, {
1870
+ kind: "user";
1871
+ id: string;
1872
+ }[]>;
1943
1873
  /**
1944
1874
  * Get informed when reconnecting to the Liveblocks servers is taking
1945
1875
  * longer than usual. This typically is a sign of a client that has lost
@@ -2128,13 +2058,6 @@ declare function useRoomThreadSubscription(roomId: string, threadId: string): Th
2128
2058
  * const {data} = useHistoryVersionData(versionId);
2129
2059
  */
2130
2060
  declare function useHistoryVersionData(versionId: string): HistoryVersionDataAsyncResult;
2131
- /**
2132
- * @deprecated Renamed to `useUpdateRoomSubscriptionSettings`
2133
- *
2134
- * Returns a function that updates the user's subscription settings
2135
- * for the current room.
2136
- */
2137
- declare function useUpdateRoomNotificationSettings(): (settings: Partial<RoomSubscriptionSettings$1>) => void;
2138
2061
  /**
2139
2062
  * Returns a function that updates the user's subscription settings
2140
2063
  * for the current room.
@@ -2159,14 +2082,6 @@ declare function useUpdateRoomSubscriptionSettings(): (settings: Partial<RoomSub
2159
2082
  * // [2, 4, 7]
2160
2083
  */
2161
2084
  declare function useOthersConnectionIdsSuspense(): readonly number[];
2162
- /**
2163
- * Returns the current storage status for the Room, and triggers
2164
- * a re-render whenever it changes. Can be used to render a "Saving..."
2165
- * indicator.
2166
- *
2167
- * @deprecated Prefer useSyncStatus()
2168
- */
2169
- declare function useStorageStatusSuspense(options?: UseStorageStatusOptions): StorageStatusSuccess;
2170
2085
  /**
2171
2086
  * Returns a presigned URL for an attachment by its ID.
2172
2087
  *
@@ -2412,13 +2327,6 @@ declare const _useThreads: TypedBundle["useThreads"];
2412
2327
  * const { threads } = useThreads();
2413
2328
  */
2414
2329
  declare const _useThreadsSuspense: TypedBundle["suspense"]["useThreads"];
2415
- /**
2416
- * @deprecated Renamed to `useRoomSubscriptionSettings`
2417
- *
2418
- * Returns the user's subscription settings for the current room
2419
- * and a function to update them.
2420
- */
2421
- declare const _useRoomNotificationSettings: TypedBundle["useRoomNotificationSettings"];
2422
2330
  /**
2423
2331
  * Returns the user's subscription settings for the current room
2424
2332
  * and a function to update them.
@@ -2427,13 +2335,6 @@ declare const _useRoomNotificationSettings: TypedBundle["useRoomNotificationSett
2427
2335
  * const [{ settings }, updateSettings] = useRoomSubscriptionSettings();
2428
2336
  */
2429
2337
  declare const _useRoomSubscriptionSettings: TypedBundle["useRoomSubscriptionSettings"];
2430
- /**
2431
- * @deprecated Renamed to `useRoomSubscriptionSettings`
2432
- *
2433
- * Returns the user's subscription settings for the current room
2434
- * and a function to update them.
2435
- */
2436
- declare const _useRoomNotificationSettingsSuspense: TypedBundle["suspense"]["useRoomNotificationSettings"];
2437
2338
  /**
2438
2339
  * Returns the user's subscription settings for the current room
2439
2340
  * and a function to update them.
@@ -2683,4 +2584,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
2683
2584
  */
2684
2585
  declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
2685
2586
 
2686
- export { useMarkThreadAsUnresolved as $, createLiveblocksContext as A, useDeleteAllInboxNotifications as B, ClientContext as C, useDeleteInboxNotification as D, useErrorListener as E, useMarkAllInboxNotificationsAsRead as F, useMarkInboxNotificationAsRead as G, useSyncStatus as H, createRoomContext as I, _RoomProvider as J, _useAddReaction as K, LiveblocksProvider as L, type MutationContext as M, useBatch as N, _useBroadcastEvent as O, useCanRedo as P, useCanUndo as Q, type RegisterAiKnowledgeProps as R, useCreateComment as S, _useCreateThread as T, type UseStorageStatusOptions as U, useDeleteComment as V, _useDeleteThread as W, useEditComment as X, _useEditThreadMetadata as Y, useMarkThreadAsResolved as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, _useUserThreadsSuspense_experimental as a$, useSubscribeToThread as a0, useUnsubscribeFromThread as a1, _useEventListener as a2, useHistory as a3, _useIsInsideRoom as a4, useLostConnectionListener as a5, useMarkThreadAsRead as a6, _useMutation as a7, _useMyPresence as a8, _useOthersListener as a9, useCreateAiChat as aA, useDeleteAiChat as aB, useSendAiMessage as aC, _useUserThreads_experimental as aD, useRoomInfo as aE, useUnreadInboxNotificationsCount as aF, _useUser as aG, _useAiChat as aH, _useAiChats as aI, _useAiChatMessages as aJ, _useOtherSuspense as aK, _useOthersSuspense as aL, useOthersConnectionIdsSuspense as aM, _useOthersMappedSuspense as aN, _useSelfSuspense as aO, _useStorageSuspense as aP, useStorageStatusSuspense as aQ, _useThreadsSuspense as aR, useAttachmentUrlSuspense as aS, _useHistoryVersionsSuspense as aT, _useRoomNotificationSettingsSuspense as aU, _useRoomSubscriptionSettingsSuspense as aV, useInboxNotificationsSuspense as aW, useNotificationSettingsSuspense as aX, useRoomInfoSuspense as aY, useUnreadInboxNotificationsCountSuspense as aZ, _useUserSuspense as a_, useRedo as aa, useRemoveReaction as ab, _useRoom as ac, useStatus as ad, _useStorageRoot as ae, useThreadSubscription as af, useUndo as ag, _useUpdateMyPresence as ah, useUpdateRoomNotificationSettings as ai, useUpdateRoomSubscriptionSettings as aj, useHistoryVersionData as ak, _useOther as al, _useOthers as am, useOthersConnectionIds as an, _useOthersMapped as ao, _useSelf as ap, _useStorage as aq, useStorageStatus as ar, _useThreads as as, useAttachmentUrl as at, _useHistoryVersions as au, _useRoomNotificationSettings as av, _useRoomSubscriptionSettings as aw, useInboxNotifications as ax, useNotificationSettings as ay, useUpdateNotificationSettings as az, useCreateRoomComment as b, _useAiChatsSuspense as b0, _useAiChatMessagesSuspense as b1, _useAiChatSuspense as b2, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useMarkRoomThreadAsRead as k, useMarkRoomThreadAsResolved as l, useMarkRoomThreadAsUnresolved as m, useMentionSuggestionsCache as n, useRemoveRoomCommentReaction as o, useReportTextEditor as p, useResolveMentionSuggestions as q, useRoomAttachmentUrl as r, useRoomPermissions as s, useRoomThreadSubscription as t, useClientOrNull as u, useYjsProvider as v, type RegisterAiToolProps as w, type UseThreadsOptions as x, RoomContext as y, useClient as z };
2587
+ export { useUnsubscribeFromThread as $, useDeleteAllInboxNotifications as A, useDeleteInboxNotification as B, ClientContext as C, useErrorListener as D, useMarkAllInboxNotificationsAsRead as E, useMarkInboxNotificationAsRead as F, useSyncStatus as G, createRoomContext as H, _RoomProvider as I, _useAddReaction as J, _useBroadcastEvent as K, LiveblocksProvider as L, type MutationContext as M, useCanRedo as N, useCanUndo as O, useCreateComment as P, _useCreateThread as Q, type RegisterAiKnowledgeProps as R, useDeleteComment as S, _useDeleteThread as T, type UseThreadsOptions as U, useEditComment as V, _useEditThreadMetadata as W, useMarkThreadAsResolved as X, useMarkThreadAsUnresolved as Y, useSubscribeToThread as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, _useEventListener as a0, useHistory as a1, _useIsInsideRoom as a2, useLostConnectionListener as a3, useMarkThreadAsRead as a4, _useMutation as a5, _useMyPresence as a6, _useOthersListener as a7, useRedo as a8, useRemoveReaction as a9, useUnreadInboxNotificationsCount as aA, _useUser as aB, _useAiChat as aC, _useAiChats as aD, _useAiChatMessages as aE, _useOtherSuspense as aF, _useOthersSuspense as aG, useOthersConnectionIdsSuspense as aH, _useOthersMappedSuspense as aI, _useSelfSuspense as aJ, _useStorageSuspense as aK, _useThreadsSuspense as aL, useAttachmentUrlSuspense as aM, _useHistoryVersionsSuspense as aN, _useRoomSubscriptionSettingsSuspense as aO, useInboxNotificationsSuspense as aP, useNotificationSettingsSuspense as aQ, useRoomInfoSuspense as aR, useUnreadInboxNotificationsCountSuspense as aS, _useUserSuspense as aT, _useUserThreadsSuspense_experimental as aU, _useAiChatsSuspense as aV, _useAiChatMessagesSuspense as aW, _useAiChatSuspense as aX, _useRoom as aa, useStatus as ab, _useStorageRoot as ac, useThreadSubscription as ad, useUndo as ae, _useUpdateMyPresence as af, useUpdateRoomSubscriptionSettings as ag, useHistoryVersionData as ah, _useOther as ai, _useOthers as aj, useOthersConnectionIds as ak, _useOthersMapped as al, _useSelf as am, _useStorage as an, _useThreads as ao, useAttachmentUrl as ap, _useHistoryVersions as aq, _useRoomSubscriptionSettings as ar, useInboxNotifications as as, useNotificationSettings as at, useUpdateNotificationSettings as au, useCreateAiChat as av, useDeleteAiChat as aw, useSendAiMessage as ax, _useUserThreads_experimental as ay, useRoomInfo as az, useCreateRoomComment as b, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useMarkRoomThreadAsRead as k, useMarkRoomThreadAsResolved as l, useMarkRoomThreadAsUnresolved as m, useMentionSuggestionsCache as n, useRemoveRoomCommentReaction as o, useReportTextEditor as p, useResolveMentionSuggestions as q, useRoomAttachmentUrl as r, useRoomPermissions as s, useRoomThreadSubscription as t, useClientOrNull as u, useYjsProvider as v, type RegisterAiToolProps as w, RoomContext as x, useClient as y, createLiveblocksContext as z };
package/dist/suspense.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkKD3B7XF6cjs = require('./chunk-KD3B7XF6.cjs');
6
+ var _chunkZI36JJCMcjs = require('./chunk-ZI36JJCM.cjs');
7
7
 
8
8
 
9
9
 
@@ -73,20 +73,12 @@ var _chunkKD3B7XF6cjs = require('./chunk-KD3B7XF6.cjs');
73
73
 
74
74
 
75
75
 
76
-
77
-
78
-
79
-
80
- var _chunk7DJASH5Hcjs = require('./chunk-7DJASH5H.cjs');
76
+ var _chunkQDQQBWCTcjs = require('./chunk-QDQQBWCT.cjs');
81
77
 
82
78
  // src/suspense.ts
83
79
  var _core = require('@liveblocks/core');
84
80
  var _client = require('@liveblocks/client');
85
- _core.detectDupes.call(void 0, _chunkKD3B7XF6cjs.PKG_NAME, _chunkKD3B7XF6cjs.PKG_VERSION, _chunkKD3B7XF6cjs.PKG_FORMAT);
86
-
87
-
88
-
89
-
81
+ _core.detectDupes.call(void 0, _chunkZI36JJCMcjs.PKG_NAME, _chunkZI36JJCMcjs.PKG_VERSION, _chunkZI36JJCMcjs.PKG_FORMAT);
90
82
 
91
83
 
92
84
 
@@ -159,5 +151,5 @@ _core.detectDupes.call(void 0, _chunkKD3B7XF6cjs.PKG_NAME, _chunkKD3B7XF6cjs.PKG
159
151
 
160
152
 
161
153
 
162
- exports.ClientContext = _chunk7DJASH5Hcjs.ClientContext; exports.ClientSideSuspense = _chunkKD3B7XF6cjs.ClientSideSuspense; exports.LiveblocksProvider = _chunk7DJASH5Hcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunk7DJASH5Hcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunk7DJASH5Hcjs.RegisterAiTool; exports.RoomContext = _chunk7DJASH5Hcjs.RoomContext; exports.RoomProvider = _chunk7DJASH5Hcjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunk7DJASH5Hcjs._useAddReaction; exports.useAiChat = _chunk7DJASH5Hcjs._useAiChatSuspense; exports.useAiChatMessages = _chunk7DJASH5Hcjs._useAiChatMessagesSuspense; exports.useAiChats = _chunk7DJASH5Hcjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunk7DJASH5Hcjs.useAttachmentUrlSuspense; exports.useBatch = _chunk7DJASH5Hcjs.useBatch; exports.useBroadcastEvent = _chunk7DJASH5Hcjs._useBroadcastEvent; exports.useCanRedo = _chunk7DJASH5Hcjs.useCanRedo; exports.useCanUndo = _chunk7DJASH5Hcjs.useCanUndo; exports.useClient = _chunk7DJASH5Hcjs.useClient; exports.useCreateAiChat = _chunk7DJASH5Hcjs.useCreateAiChat; exports.useCreateComment = _chunk7DJASH5Hcjs.useCreateComment; exports.useCreateThread = _chunk7DJASH5Hcjs._useCreateThread; exports.useDeleteAiChat = _chunk7DJASH5Hcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunk7DJASH5Hcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunk7DJASH5Hcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunk7DJASH5Hcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunk7DJASH5Hcjs._useDeleteThread; exports.useEditComment = _chunk7DJASH5Hcjs.useEditComment; exports.useEditThreadMetadata = _chunk7DJASH5Hcjs._useEditThreadMetadata; exports.useErrorListener = _chunk7DJASH5Hcjs.useErrorListener; exports.useEventListener = _chunk7DJASH5Hcjs._useEventListener; exports.useHistory = _chunk7DJASH5Hcjs.useHistory; exports.useHistoryVersions = _chunk7DJASH5Hcjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunk7DJASH5Hcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunk7DJASH5Hcjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunk7DJASH5Hcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunk7DJASH5Hcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunk7DJASH5Hcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunk7DJASH5Hcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunk7DJASH5Hcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunk7DJASH5Hcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunk7DJASH5Hcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunk7DJASH5Hcjs._useMutation; exports.useMyPresence = _chunk7DJASH5Hcjs._useMyPresence; exports.useNotificationSettings = _chunk7DJASH5Hcjs.useNotificationSettingsSuspense; exports.useOther = _chunk7DJASH5Hcjs._useOtherSuspense; exports.useOthers = _chunk7DJASH5Hcjs._useOthersSuspense; exports.useOthersConnectionIds = _chunk7DJASH5Hcjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunk7DJASH5Hcjs._useOthersListener; exports.useOthersMapped = _chunk7DJASH5Hcjs._useOthersMappedSuspense; exports.useRedo = _chunk7DJASH5Hcjs.useRedo; exports.useRemoveReaction = _chunk7DJASH5Hcjs.useRemoveReaction; exports.useRoom = _chunk7DJASH5Hcjs._useRoom; exports.useRoomInfo = _chunk7DJASH5Hcjs.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunk7DJASH5Hcjs._useRoomNotificationSettingsSuspense; exports.useRoomSubscriptionSettings = _chunk7DJASH5Hcjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunk7DJASH5Hcjs._useSelfSuspense; exports.useSendAiMessage = _chunk7DJASH5Hcjs.useSendAiMessage; exports.useStatus = _chunk7DJASH5Hcjs.useStatus; exports.useStorage = _chunk7DJASH5Hcjs._useStorageSuspense; exports.useStorageRoot = _chunk7DJASH5Hcjs._useStorageRoot; exports.useStorageStatus = _chunk7DJASH5Hcjs.useStorageStatusSuspense; exports.useSubscribeToThread = _chunk7DJASH5Hcjs.useSubscribeToThread; exports.useSyncStatus = _chunk7DJASH5Hcjs.useSyncStatus; exports.useThreadSubscription = _chunk7DJASH5Hcjs.useThreadSubscription; exports.useThreads = _chunk7DJASH5Hcjs._useThreadsSuspense; exports.useUndo = _chunk7DJASH5Hcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunk7DJASH5Hcjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunk7DJASH5Hcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunk7DJASH5Hcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunk7DJASH5Hcjs.useUpdateNotificationSettings; exports.useUpdateRoomNotificationSettings = _chunk7DJASH5Hcjs.useUpdateRoomNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunk7DJASH5Hcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunk7DJASH5Hcjs._useUserSuspense; exports.useUserThreads_experimental = _chunk7DJASH5Hcjs._useUserThreadsSuspense_experimental;
154
+ exports.ClientContext = _chunkQDQQBWCTcjs.ClientContext; exports.ClientSideSuspense = _chunkZI36JJCMcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkQDQQBWCTcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkQDQQBWCTcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkQDQQBWCTcjs.RegisterAiTool; exports.RoomContext = _chunkQDQQBWCTcjs.RoomContext; exports.RoomProvider = _chunkQDQQBWCTcjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkQDQQBWCTcjs._useAddReaction; exports.useAiChat = _chunkQDQQBWCTcjs._useAiChatSuspense; exports.useAiChatMessages = _chunkQDQQBWCTcjs._useAiChatMessagesSuspense; exports.useAiChats = _chunkQDQQBWCTcjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunkQDQQBWCTcjs.useAttachmentUrlSuspense; exports.useBroadcastEvent = _chunkQDQQBWCTcjs._useBroadcastEvent; exports.useCanRedo = _chunkQDQQBWCTcjs.useCanRedo; exports.useCanUndo = _chunkQDQQBWCTcjs.useCanUndo; exports.useClient = _chunkQDQQBWCTcjs.useClient; exports.useCreateAiChat = _chunkQDQQBWCTcjs.useCreateAiChat; exports.useCreateComment = _chunkQDQQBWCTcjs.useCreateComment; exports.useCreateThread = _chunkQDQQBWCTcjs._useCreateThread; exports.useDeleteAiChat = _chunkQDQQBWCTcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkQDQQBWCTcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkQDQQBWCTcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkQDQQBWCTcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkQDQQBWCTcjs._useDeleteThread; exports.useEditComment = _chunkQDQQBWCTcjs.useEditComment; exports.useEditThreadMetadata = _chunkQDQQBWCTcjs._useEditThreadMetadata; exports.useErrorListener = _chunkQDQQBWCTcjs.useErrorListener; exports.useEventListener = _chunkQDQQBWCTcjs._useEventListener; exports.useHistory = _chunkQDQQBWCTcjs.useHistory; exports.useHistoryVersions = _chunkQDQQBWCTcjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkQDQQBWCTcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkQDQQBWCTcjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkQDQQBWCTcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkQDQQBWCTcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkQDQQBWCTcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkQDQQBWCTcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkQDQQBWCTcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkQDQQBWCTcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkQDQQBWCTcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkQDQQBWCTcjs._useMutation; exports.useMyPresence = _chunkQDQQBWCTcjs._useMyPresence; exports.useNotificationSettings = _chunkQDQQBWCTcjs.useNotificationSettingsSuspense; exports.useOther = _chunkQDQQBWCTcjs._useOtherSuspense; exports.useOthers = _chunkQDQQBWCTcjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkQDQQBWCTcjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkQDQQBWCTcjs._useOthersListener; exports.useOthersMapped = _chunkQDQQBWCTcjs._useOthersMappedSuspense; exports.useRedo = _chunkQDQQBWCTcjs.useRedo; exports.useRemoveReaction = _chunkQDQQBWCTcjs.useRemoveReaction; exports.useRoom = _chunkQDQQBWCTcjs._useRoom; exports.useRoomInfo = _chunkQDQQBWCTcjs.useRoomInfoSuspense; exports.useRoomSubscriptionSettings = _chunkQDQQBWCTcjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunkQDQQBWCTcjs._useSelfSuspense; exports.useSendAiMessage = _chunkQDQQBWCTcjs.useSendAiMessage; exports.useStatus = _chunkQDQQBWCTcjs.useStatus; exports.useStorage = _chunkQDQQBWCTcjs._useStorageSuspense; exports.useStorageRoot = _chunkQDQQBWCTcjs._useStorageRoot; exports.useSubscribeToThread = _chunkQDQQBWCTcjs.useSubscribeToThread; exports.useSyncStatus = _chunkQDQQBWCTcjs.useSyncStatus; exports.useThreadSubscription = _chunkQDQQBWCTcjs.useThreadSubscription; exports.useThreads = _chunkQDQQBWCTcjs._useThreadsSuspense; exports.useUndo = _chunkQDQQBWCTcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkQDQQBWCTcjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunkQDQQBWCTcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkQDQQBWCTcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkQDQQBWCTcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkQDQQBWCTcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunkQDQQBWCTcjs._useUserSuspense; exports.useUserThreads_experimental = _chunkQDQQBWCTcjs._useUserThreadsSuspense_experimental;
163
155
  //# sourceMappingURL=suspense.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.cjs","../src/suspense.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;AChFA,wCAA4B;AAc5B,4CAAsD;AAXtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADiF7C;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,y8JAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.cjs","sourcesContent":[null,"/* 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, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type { RegisterAiKnowledgeProps, RegisterAiToolProps } from \"./types/ai\";\nexport {\n LiveblocksProvider,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useSyncStatus,\n useErrorListener,\n} from \"./liveblocks\";\nexport {\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 useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n useUpdateRoomSubscriptionSettings,\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 useRoomNotificationSettingsSuspense as useRoomNotificationSettings,\n useRoomSubscriptionSettingsSuspense as useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useNotificationSettingsSuspense as useNotificationSettings,\n useRoomInfoSuspense as useRoomInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n useAiChatsSuspense as useAiChats,\n useAiChatMessagesSuspense as useAiChatMessages,\n useAiChatSuspense as useAiChat,\n} from \"./liveblocks\";\n"]}
1
+ {"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.cjs","../src/suspense.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;AC5EA,wCAA4B;AAU5B,4CAAsD;AAPtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;AD6E7C;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,opJAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.cjs","sourcesContent":[null,"/* 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 { MutationContext, UseThreadsOptions } from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type { RegisterAiKnowledgeProps, RegisterAiToolProps } from \"./types/ai\";\nexport {\n LiveblocksProvider,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useSyncStatus,\n useErrorListener,\n} from \"./liveblocks\";\nexport {\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\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 useThreadsSuspense as useThreads,\n useAttachmentUrlSuspense as useAttachmentUrl,\n useHistoryVersionsSuspense as useHistoryVersions,\n useRoomSubscriptionSettingsSuspense as useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useNotificationSettingsSuspense as useNotificationSettings,\n useRoomInfoSuspense as useRoomInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n useAiChatsSuspense as useAiChats,\n useAiChatMessagesSuspense as useAiChatMessages,\n useAiChatSuspense as useAiChat,\n} from \"./liveblocks\";\n"]}
@@ -1,5 +1,5 @@
1
1
  export { ClientSideSuspense, RegisterAiKnowledge, RegisterAiTool } from './index.cjs';
2
- export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, J as RoomProvider, U as UseStorageStatusOptions, x as UseThreadsOptions, K as useAddReaction, b2 as useAiChat, b1 as useAiChatMessages, b0 as useAiChats, aS as useAttachmentUrl, N as useBatch, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, aA as useCreateAiChat, S as useCreateComment, T as useCreateThread, aB as useDeleteAiChat, B as useDeleteAllInboxNotifications, V as useDeleteComment, D as useDeleteInboxNotification, W as useDeleteThread, X as useEditComment, Y as useEditThreadMetadata, E as useErrorListener, a2 as useEventListener, a3 as useHistory, aT as useHistoryVersions, _ as useInboxNotificationThread, aW as useInboxNotifications, a4 as useIsInsideRoom, a5 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, G as useMarkInboxNotificationAsRead, a6 as useMarkThreadAsRead, Z as useMarkThreadAsResolved, $ as useMarkThreadAsUnresolved, a7 as useMutation, a8 as useMyPresence, aX as useNotificationSettings, aK as useOther, aL as useOthers, aM as useOthersConnectionIds, a9 as useOthersListener, aN as useOthersMapped, aa as useRedo, ab as useRemoveReaction, ac as useRoom, aY as useRoomInfo, aU as useRoomNotificationSettings, aV as useRoomSubscriptionSettings, aO as useSelf, aC as useSendAiMessage, ad as useStatus, aP as useStorage, ae as useStorageRoot, aQ as useStorageStatus, a0 as useSubscribeToThread, H as useSyncStatus, af as useThreadSubscription, aR as useThreads, ag as useUndo, aZ as useUnreadInboxNotificationsCount, a1 as useUnsubscribeFromThread, ah as useUpdateMyPresence, az as useUpdateNotificationSettings, ai as useUpdateRoomNotificationSettings, aj as useUpdateRoomSubscriptionSettings, a_ as useUser, a$ as useUserThreads_experimental } from './room-qnTepKOd.cjs';
2
+ export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, x as RoomContext, I as RoomProvider, U as UseThreadsOptions, J as useAddReaction, aX as useAiChat, aW as useAiChatMessages, aV as useAiChats, aM as useAttachmentUrl, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, av as useCreateAiChat, P as useCreateComment, Q as useCreateThread, aw as useDeleteAiChat, A as useDeleteAllInboxNotifications, S as useDeleteComment, B as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, D as useErrorListener, a0 as useEventListener, a1 as useHistory, aN as useHistoryVersions, _ as useInboxNotificationThread, aP as useInboxNotifications, a2 as useIsInsideRoom, a3 as useLostConnectionListener, E as useMarkAllInboxNotificationsAsRead, F as useMarkInboxNotificationAsRead, a4 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a5 as useMutation, a6 as useMyPresence, aQ as useNotificationSettings, aF as useOther, aG as useOthers, aH as useOthersConnectionIds, a7 as useOthersListener, aI as useOthersMapped, a8 as useRedo, a9 as useRemoveReaction, aa as useRoom, aR as useRoomInfo, aO as useRoomSubscriptionSettings, aJ as useSelf, ax as useSendAiMessage, ab as useStatus, aK as useStorage, ac as useStorageRoot, Z as useSubscribeToThread, G as useSyncStatus, ad as useThreadSubscription, aL as useThreads, ae as useUndo, aS as useUnreadInboxNotificationsCount, $ as useUnsubscribeFromThread, af as useUpdateMyPresence, au as useUpdateNotificationSettings, ag as useUpdateRoomSubscriptionSettings, aT as useUser, aU as useUserThreads_experimental } from './room-BzmUELIi.cjs';
3
3
  export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react';
@@ -1,5 +1,5 @@
1
1
  export { ClientSideSuspense, RegisterAiKnowledge, RegisterAiTool } from './index.js';
2
- export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, J as RoomProvider, U as UseStorageStatusOptions, x as UseThreadsOptions, K as useAddReaction, b2 as useAiChat, b1 as useAiChatMessages, b0 as useAiChats, aS as useAttachmentUrl, N as useBatch, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, aA as useCreateAiChat, S as useCreateComment, T as useCreateThread, aB as useDeleteAiChat, B as useDeleteAllInboxNotifications, V as useDeleteComment, D as useDeleteInboxNotification, W as useDeleteThread, X as useEditComment, Y as useEditThreadMetadata, E as useErrorListener, a2 as useEventListener, a3 as useHistory, aT as useHistoryVersions, _ as useInboxNotificationThread, aW as useInboxNotifications, a4 as useIsInsideRoom, a5 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, G as useMarkInboxNotificationAsRead, a6 as useMarkThreadAsRead, Z as useMarkThreadAsResolved, $ as useMarkThreadAsUnresolved, a7 as useMutation, a8 as useMyPresence, aX as useNotificationSettings, aK as useOther, aL as useOthers, aM as useOthersConnectionIds, a9 as useOthersListener, aN as useOthersMapped, aa as useRedo, ab as useRemoveReaction, ac as useRoom, aY as useRoomInfo, aU as useRoomNotificationSettings, aV as useRoomSubscriptionSettings, aO as useSelf, aC as useSendAiMessage, ad as useStatus, aP as useStorage, ae as useStorageRoot, aQ as useStorageStatus, a0 as useSubscribeToThread, H as useSyncStatus, af as useThreadSubscription, aR as useThreads, ag as useUndo, aZ as useUnreadInboxNotificationsCount, a1 as useUnsubscribeFromThread, ah as useUpdateMyPresence, az as useUpdateNotificationSettings, ai as useUpdateRoomNotificationSettings, aj as useUpdateRoomSubscriptionSettings, a_ as useUser, a$ as useUserThreads_experimental } from './room-qnTepKOd.js';
2
+ export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, x as RoomContext, I as RoomProvider, U as UseThreadsOptions, J as useAddReaction, aX as useAiChat, aW as useAiChatMessages, aV as useAiChats, aM as useAttachmentUrl, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, av as useCreateAiChat, P as useCreateComment, Q as useCreateThread, aw as useDeleteAiChat, A as useDeleteAllInboxNotifications, S as useDeleteComment, B as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, D as useErrorListener, a0 as useEventListener, a1 as useHistory, aN as useHistoryVersions, _ as useInboxNotificationThread, aP as useInboxNotifications, a2 as useIsInsideRoom, a3 as useLostConnectionListener, E as useMarkAllInboxNotificationsAsRead, F as useMarkInboxNotificationAsRead, a4 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a5 as useMutation, a6 as useMyPresence, aQ as useNotificationSettings, aF as useOther, aG as useOthers, aH as useOthersConnectionIds, a7 as useOthersListener, aI as useOthersMapped, a8 as useRedo, a9 as useRemoveReaction, aa as useRoom, aR as useRoomInfo, aO as useRoomSubscriptionSettings, aJ as useSelf, ax as useSendAiMessage, ab as useStatus, aK as useStorage, ac as useStorageRoot, Z as useSubscribeToThread, G as useSyncStatus, ad as useThreadSubscription, aL as useThreads, ae as useUndo, aS as useUnreadInboxNotificationsCount, $ as useUnsubscribeFromThread, af as useUpdateMyPresence, au as useUpdateNotificationSettings, ag as useUpdateRoomSubscriptionSettings, aT as useUser, aU as useUserThreads_experimental } from './room-BzmUELIi.js';
3
3
  export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react';
package/dist/suspense.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  PKG_FORMAT,
4
4
  PKG_NAME,
5
5
  PKG_VERSION
6
- } from "./chunk-IKZ3R3Q2.js";
6
+ } from "./chunk-5HFQCHWK.js";
7
7
  import {
8
8
  ClientContext,
9
9
  LiveblocksProvider,
@@ -30,7 +30,6 @@ import {
30
30
  _useOthersMappedSuspense,
31
31
  _useOthersSuspense,
32
32
  _useRoom,
33
- _useRoomNotificationSettingsSuspense,
34
33
  _useRoomSubscriptionSettingsSuspense,
35
34
  _useSelfSuspense,
36
35
  _useStorageRoot,
@@ -40,7 +39,6 @@ import {
40
39
  _useUserSuspense,
41
40
  _useUserThreadsSuspense_experimental,
42
41
  useAttachmentUrlSuspense,
43
- useBatch,
44
42
  useCanRedo,
45
43
  useCanUndo,
46
44
  useClient,
@@ -67,7 +65,6 @@ import {
67
65
  useRoomInfoSuspense,
68
66
  useSendAiMessage,
69
67
  useStatus,
70
- useStorageStatusSuspense,
71
68
  useSubscribeToThread,
72
69
  useSyncStatus,
73
70
  useThreadSubscription,
@@ -75,9 +72,8 @@ import {
75
72
  useUnreadInboxNotificationsCountSuspense,
76
73
  useUnsubscribeFromThread,
77
74
  useUpdateNotificationSettings,
78
- useUpdateRoomNotificationSettings,
79
75
  useUpdateRoomSubscriptionSettings
80
- } from "./chunk-KLANVQIZ.js";
76
+ } from "./chunk-PJG72DS4.js";
81
77
 
82
78
  // src/suspense.ts
83
79
  import { detectDupes } from "@liveblocks/core";
@@ -98,7 +94,6 @@ export {
98
94
  _useAiChatMessagesSuspense as useAiChatMessages,
99
95
  _useAiChatsSuspense as useAiChats,
100
96
  useAttachmentUrlSuspense as useAttachmentUrl,
101
- useBatch,
102
97
  _useBroadcastEvent as useBroadcastEvent,
103
98
  useCanRedo,
104
99
  useCanUndo,
@@ -138,14 +133,12 @@ export {
138
133
  useRemoveReaction,
139
134
  _useRoom as useRoom,
140
135
  useRoomInfoSuspense as useRoomInfo,
141
- _useRoomNotificationSettingsSuspense as useRoomNotificationSettings,
142
136
  _useRoomSubscriptionSettingsSuspense as useRoomSubscriptionSettings,
143
137
  _useSelfSuspense as useSelf,
144
138
  useSendAiMessage,
145
139
  useStatus,
146
140
  _useStorageSuspense as useStorage,
147
141
  _useStorageRoot as useStorageRoot,
148
- useStorageStatusSuspense as useStorageStatus,
149
142
  useSubscribeToThread,
150
143
  useSyncStatus,
151
144
  useThreadSubscription,
@@ -155,7 +148,6 @@ export {
155
148
  useUnsubscribeFromThread,
156
149
  _useUpdateMyPresence as useUpdateMyPresence,
157
150
  useUpdateNotificationSettings,
158
- useUpdateRoomNotificationSettings,
159
151
  useUpdateRoomSubscriptionSettings,
160
152
  _useUserSuspense as useUser,
161
153
  _useUserThreadsSuspense_experimental as useUserThreads_experimental
@@ -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, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type { RegisterAiKnowledgeProps, RegisterAiToolProps } from \"./types/ai\";\nexport {\n LiveblocksProvider,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useSyncStatus,\n useErrorListener,\n} from \"./liveblocks\";\nexport {\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 useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n useUpdateRoomSubscriptionSettings,\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 useRoomNotificationSettingsSuspense as useRoomNotificationSettings,\n useRoomSubscriptionSettingsSuspense as useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useNotificationSettingsSuspense as useNotificationSettings,\n useRoomInfoSuspense as useRoomInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n useAiChatsSuspense as useAiChats,\n useAiChatMessagesSuspense as useAiChatMessages,\n useAiChatSuspense as useAiChat,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,SAAS,oCAAoC;AAXtD,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 { MutationContext, UseThreadsOptions } from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type { RegisterAiKnowledgeProps, RegisterAiToolProps } from \"./types/ai\";\nexport {\n LiveblocksProvider,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useSyncStatus,\n useErrorListener,\n} from \"./liveblocks\";\nexport {\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\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 useThreadsSuspense as useThreads,\n useAttachmentUrlSuspense as useAttachmentUrl,\n useHistoryVersionsSuspense as useHistoryVersions,\n useRoomSubscriptionSettingsSuspense as useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useNotificationSettingsSuspense as useNotificationSettings,\n useRoomInfoSuspense as useRoomInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n useAiChatsSuspense as useAiChats,\n useAiChatMessagesSuspense as useAiChatMessages,\n useAiChatSuspense as useAiChat,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAU5B,SAAS,SAAS,oCAAoC;AAPtD,YAAY,UAAU,aAAa,UAAU;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liveblocks/react",
3
- "version": "2.25.0-aiprivatebeta13",
3
+ "version": "2.25.0-aiprivatebeta15",
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": "module",
@@ -61,8 +61,8 @@
61
61
  "showdeps": "depcruise src --include-only '^src' --exclude='__tests__' --output-type dot | dot -T svg > /tmp/dependency-graph.svg && open /tmp/dependency-graph.svg"
62
62
  },
63
63
  "dependencies": {
64
- "@liveblocks/client": "2.25.0-aiprivatebeta13",
65
- "@liveblocks/core": "2.25.0-aiprivatebeta13"
64
+ "@liveblocks/client": "2.25.0-aiprivatebeta15",
65
+ "@liveblocks/core": "2.25.0-aiprivatebeta15"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "@types/react": "*",
@@ -1,4 +1,4 @@
1
1
  {
2
- "main": "../dist/suspense.js",
3
- "types": "../dist/suspense.d.ts"
2
+ "main": "../dist/suspense.cjs",
3
+ "types": "../dist/suspense.d.cts"
4
4
  }