@liveblocks/react 3.7.0 → 3.7.1
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/_private.cjs +7 -7
- package/dist/_private.d.cts +2 -2
- package/dist/_private.d.ts +2 -2
- package/dist/_private.js +1 -1
- package/dist/{chunk-W2H56LB3.cjs → chunk-4GCS3365.cjs} +60 -45
- package/dist/chunk-4GCS3365.cjs.map +1 -0
- package/dist/{chunk-OXA6JGB4.cjs → chunk-MEL5UMNW.cjs} +2 -2
- package/dist/{chunk-OXA6JGB4.cjs.map → chunk-MEL5UMNW.cjs.map} +1 -1
- package/dist/{chunk-WGUV4Z4E.js → chunk-OKYUUXNY.js} +33 -18
- package/dist/chunk-OKYUUXNY.js.map +1 -0
- package/dist/{chunk-KYXF6473.js → chunk-W466HEJW.js} +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/{room-mUz5TTmo.d.cts → room-BtcL74U0.d.cts} +4 -4
- package/dist/{room-mUz5TTmo.d.ts → room-BtcL74U0.d.ts} +4 -4
- package/dist/suspense.cjs +4 -4
- package/dist/suspense.d.cts +1 -1
- package/dist/suspense.d.ts +1 -1
- package/dist/suspense.js +2 -2
- package/package.json +3 -3
- package/dist/chunk-W2H56LB3.cjs.map +0 -1
- package/dist/chunk-WGUV4Z4E.js.map +0 -1
- /package/dist/{chunk-KYXF6473.js.map → chunk-W466HEJW.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/version.ts
|
|
2
2
|
var PKG_NAME = "@liveblocks/react";
|
|
3
|
-
var PKG_VERSION = "3.7.
|
|
3
|
+
var PKG_VERSION = "3.7.1";
|
|
4
4
|
var PKG_FORMAT = "esm";
|
|
5
5
|
|
|
6
6
|
// src/ClientSideSuspense.tsx
|
|
@@ -20,4 +20,4 @@ export {
|
|
|
20
20
|
PKG_FORMAT,
|
|
21
21
|
ClientSideSuspense
|
|
22
22
|
};
|
|
23
|
-
//# sourceMappingURL=chunk-
|
|
23
|
+
//# sourceMappingURL=chunk-W466HEJW.js.map
|
package/dist/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkMEL5UMNWcjs = require('./chunk-MEL5UMNW.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -77,12 +77,12 @@ var _chunkOXA6JGB4cjs = require('./chunk-OXA6JGB4.cjs');
|
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
|
|
80
|
-
var
|
|
80
|
+
var _chunk4GCS3365cjs = require('./chunk-4GCS3365.cjs');
|
|
81
81
|
|
|
82
82
|
// src/index.ts
|
|
83
83
|
var _core = require('@liveblocks/core');
|
|
84
84
|
var _client = require('@liveblocks/client');
|
|
85
|
-
_core.detectDupes.call(void 0,
|
|
85
|
+
_core.detectDupes.call(void 0, _chunkMEL5UMNWcjs.PKG_NAME, _chunkMEL5UMNWcjs.PKG_VERSION, _chunkMEL5UMNWcjs.PKG_FORMAT);
|
|
86
86
|
|
|
87
87
|
|
|
88
88
|
|
|
@@ -159,5 +159,5 @@ _core.detectDupes.call(void 0, _chunkOXA6JGB4cjs.PKG_NAME, _chunkOXA6JGB4cjs.PKG
|
|
|
159
159
|
|
|
160
160
|
|
|
161
161
|
|
|
162
|
-
exports.ClientContext =
|
|
162
|
+
exports.ClientContext = _chunk4GCS3365cjs.ClientContext; exports.ClientSideSuspense = _chunkMEL5UMNWcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunk4GCS3365cjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunk4GCS3365cjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunk4GCS3365cjs.RegisterAiTool; exports.RoomContext = _chunk4GCS3365cjs.RoomContext; exports.RoomProvider = _chunk4GCS3365cjs._RoomProvider; exports.createLiveblocksContext = _chunk4GCS3365cjs.createLiveblocksContext; exports.createRoomContext = _chunk4GCS3365cjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunk4GCS3365cjs._useAddReaction; exports.useAiChat = _chunk4GCS3365cjs._useAiChat; exports.useAiChatMessages = _chunk4GCS3365cjs._useAiChatMessages; exports.useAiChats = _chunk4GCS3365cjs._useAiChats; exports.useAttachmentUrl = _chunk4GCS3365cjs.useAttachmentUrl; exports.useBroadcastEvent = _chunk4GCS3365cjs._useBroadcastEvent; exports.useCanRedo = _chunk4GCS3365cjs.useCanRedo; exports.useCanUndo = _chunk4GCS3365cjs.useCanUndo; exports.useClient = _chunk4GCS3365cjs.useClient; exports.useCreateAiChat = _chunk4GCS3365cjs.useCreateAiChat; exports.useCreateComment = _chunk4GCS3365cjs.useCreateComment; exports.useCreateThread = _chunk4GCS3365cjs._useCreateThread; exports.useDeleteAiChat = _chunk4GCS3365cjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunk4GCS3365cjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunk4GCS3365cjs.useDeleteComment; exports.useDeleteInboxNotification = _chunk4GCS3365cjs.useDeleteInboxNotification; exports.useDeleteThread = _chunk4GCS3365cjs._useDeleteThread; exports.useEditComment = _chunk4GCS3365cjs.useEditComment; exports.useEditThreadMetadata = _chunk4GCS3365cjs._useEditThreadMetadata; exports.useErrorListener = _chunk4GCS3365cjs.useErrorListener; exports.useEventListener = _chunk4GCS3365cjs._useEventListener; exports.useGroupInfo = _chunk4GCS3365cjs.useGroupInfo; exports.useHistory = _chunk4GCS3365cjs.useHistory; exports.useHistoryVersionData = _chunk4GCS3365cjs.useHistoryVersionData; exports.useHistoryVersions = _chunk4GCS3365cjs._useHistoryVersions; exports.useInboxNotificationThread = _chunk4GCS3365cjs._useInboxNotificationThread; exports.useInboxNotifications = _chunk4GCS3365cjs.useInboxNotifications; exports.useIsInsideRoom = _chunk4GCS3365cjs._useIsInsideRoom; exports.useLostConnectionListener = _chunk4GCS3365cjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunk4GCS3365cjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunk4GCS3365cjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunk4GCS3365cjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunk4GCS3365cjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunk4GCS3365cjs.useMarkThreadAsUnresolved; exports.useMutation = _chunk4GCS3365cjs._useMutation; exports.useMyPresence = _chunk4GCS3365cjs._useMyPresence; exports.useNotificationSettings = _chunk4GCS3365cjs.useNotificationSettings; exports.useOther = _chunk4GCS3365cjs._useOther; exports.useOthers = _chunk4GCS3365cjs._useOthers; exports.useOthersConnectionIds = _chunk4GCS3365cjs.useOthersConnectionIds; exports.useOthersListener = _chunk4GCS3365cjs._useOthersListener; exports.useOthersMapped = _chunk4GCS3365cjs._useOthersMapped; exports.useRedo = _chunk4GCS3365cjs.useRedo; exports.useRemoveReaction = _chunk4GCS3365cjs.useRemoveReaction; exports.useRoom = _chunk4GCS3365cjs._useRoom; exports.useRoomInfo = _chunk4GCS3365cjs.useRoomInfo; exports.useRoomSubscriptionSettings = _chunk4GCS3365cjs._useRoomSubscriptionSettings; exports.useSelf = _chunk4GCS3365cjs._useSelf; exports.useSendAiMessage = _chunk4GCS3365cjs.useSendAiMessage; exports.useStatus = _chunk4GCS3365cjs.useStatus; exports.useStorage = _chunk4GCS3365cjs._useStorage; exports.useStorageRoot = _chunk4GCS3365cjs._useStorageRoot; exports.useSubscribeToThread = _chunk4GCS3365cjs.useSubscribeToThread; exports.useSyncStatus = _chunk4GCS3365cjs.useSyncStatus; exports.useThreadSubscription = _chunk4GCS3365cjs.useThreadSubscription; exports.useThreads = _chunk4GCS3365cjs._useThreads; exports.useUndo = _chunk4GCS3365cjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunk4GCS3365cjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunk4GCS3365cjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunk4GCS3365cjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunk4GCS3365cjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunk4GCS3365cjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunk4GCS3365cjs._useUser; exports.useUserThreads_experimental = _chunk4GCS3365cjs._useUserThreads_experimental;
|
|
163
163
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-
|
|
2
|
-
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, K as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, A as createLiveblocksContext, J as createRoomContext, N as useAddReaction, aG as useAiChat, aI as useAiChatMessages, aH as useAiChats, as as useAttachmentUrl, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, ay as useCreateAiChat, T as useCreateComment, V as useCreateThread, az as useDeleteAiChat, B as useDeleteAllInboxNotifications, W as useDeleteComment, D as useDeleteInboxNotification, X as useDeleteThread, Y as useEditComment, Z as useEditThreadMetadata, E as useErrorListener, a3 as useEventListener, aD as useGroupInfo, a4 as useHistory, ak as useHistoryVersionData, at as useHistoryVersions, _ as useInboxNotificationThread, av as useInboxNotifications, a5 as useIsInsideRoom, a6 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, H as useMarkInboxNotificationAsRead, a7 as useMarkThreadAsRead, $ as useMarkThreadAsResolved, a0 as useMarkThreadAsUnresolved, a8 as useMutation, a9 as useMyPresence, aw as useNotificationSettings, al as useOther, am as useOthers, an as useOthersConnectionIds, aa as useOthersListener, ao as useOthersMapped, ab as useRedo, ac as useRemoveReaction, ad as useRoom, aC as useRoomInfo, au as useRoomSubscriptionSettings, ap as useSelf, aA as useSendAiMessage, ae as useStatus, aq as useStorage, af as useStorageRoot, a1 as useSubscribeToThread, I as useSyncStatus, ag as useThreadSubscription, ar as useThreads, ah as useUndo, aE as useUnreadInboxNotificationsCount, a2 as useUnsubscribeFromThread, ai as useUpdateMyPresence, ax as useUpdateNotificationSettings, aj as useUpdateRoomSubscriptionSettings, aF as useUser, aB as useUserThreads_experimental } from './room-
|
|
1
|
+
import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-BtcL74U0.cjs';
|
|
2
|
+
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, K as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, A as createLiveblocksContext, J as createRoomContext, N as useAddReaction, aG as useAiChat, aI as useAiChatMessages, aH as useAiChats, as as useAttachmentUrl, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, ay as useCreateAiChat, T as useCreateComment, V as useCreateThread, az as useDeleteAiChat, B as useDeleteAllInboxNotifications, W as useDeleteComment, D as useDeleteInboxNotification, X as useDeleteThread, Y as useEditComment, Z as useEditThreadMetadata, E as useErrorListener, a3 as useEventListener, aD as useGroupInfo, a4 as useHistory, ak as useHistoryVersionData, at as useHistoryVersions, _ as useInboxNotificationThread, av as useInboxNotifications, a5 as useIsInsideRoom, a6 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, H as useMarkInboxNotificationAsRead, a7 as useMarkThreadAsRead, $ as useMarkThreadAsResolved, a0 as useMarkThreadAsUnresolved, a8 as useMutation, a9 as useMyPresence, aw as useNotificationSettings, al as useOther, am as useOthers, an as useOthersConnectionIds, aa as useOthersListener, ao as useOthersMapped, ab as useRedo, ac as useRemoveReaction, ad as useRoom, aC as useRoomInfo, au as useRoomSubscriptionSettings, ap as useSelf, aA as useSendAiMessage, ae as useStatus, aq as useStorage, af as useStorageRoot, a1 as useSubscribeToThread, I as useSyncStatus, ag as useThreadSubscription, ar as useThreads, ah as useUndo, aE as useUnreadInboxNotificationsCount, a2 as useUnsubscribeFromThread, ai as useUpdateMyPresence, ax as useUpdateNotificationSettings, aj as useUpdateRoomSubscriptionSettings, aF as useUser, aB as useUserThreads_experimental } from './room-BtcL74U0.cjs';
|
|
3
3
|
export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import * as react from 'react';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-
|
|
2
|
-
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, K as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, A as createLiveblocksContext, J as createRoomContext, N as useAddReaction, aG as useAiChat, aI as useAiChatMessages, aH as useAiChats, as as useAttachmentUrl, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, ay as useCreateAiChat, T as useCreateComment, V as useCreateThread, az as useDeleteAiChat, B as useDeleteAllInboxNotifications, W as useDeleteComment, D as useDeleteInboxNotification, X as useDeleteThread, Y as useEditComment, Z as useEditThreadMetadata, E as useErrorListener, a3 as useEventListener, aD as useGroupInfo, a4 as useHistory, ak as useHistoryVersionData, at as useHistoryVersions, _ as useInboxNotificationThread, av as useInboxNotifications, a5 as useIsInsideRoom, a6 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, H as useMarkInboxNotificationAsRead, a7 as useMarkThreadAsRead, $ as useMarkThreadAsResolved, a0 as useMarkThreadAsUnresolved, a8 as useMutation, a9 as useMyPresence, aw as useNotificationSettings, al as useOther, am as useOthers, an as useOthersConnectionIds, aa as useOthersListener, ao as useOthersMapped, ab as useRedo, ac as useRemoveReaction, ad as useRoom, aC as useRoomInfo, au as useRoomSubscriptionSettings, ap as useSelf, aA as useSendAiMessage, ae as useStatus, aq as useStorage, af as useStorageRoot, a1 as useSubscribeToThread, I as useSyncStatus, ag as useThreadSubscription, ar as useThreads, ah as useUndo, aE as useUnreadInboxNotificationsCount, a2 as useUnsubscribeFromThread, ai as useUpdateMyPresence, ax as useUpdateNotificationSettings, aj as useUpdateRoomSubscriptionSettings, aF as useUser, aB as useUserThreads_experimental } from './room-
|
|
1
|
+
import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-BtcL74U0.js';
|
|
2
|
+
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, K as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, A as createLiveblocksContext, J as createRoomContext, N as useAddReaction, aG as useAiChat, aI as useAiChatMessages, aH as useAiChats, as as useAttachmentUrl, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, ay as useCreateAiChat, T as useCreateComment, V as useCreateThread, az as useDeleteAiChat, B as useDeleteAllInboxNotifications, W as useDeleteComment, D as useDeleteInboxNotification, X as useDeleteThread, Y as useEditComment, Z as useEditThreadMetadata, E as useErrorListener, a3 as useEventListener, aD as useGroupInfo, a4 as useHistory, ak as useHistoryVersionData, at as useHistoryVersions, _ as useInboxNotificationThread, av as useInboxNotifications, a5 as useIsInsideRoom, a6 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, H as useMarkInboxNotificationAsRead, a7 as useMarkThreadAsRead, $ as useMarkThreadAsResolved, a0 as useMarkThreadAsUnresolved, a8 as useMutation, a9 as useMyPresence, aw as useNotificationSettings, al as useOther, am as useOthers, an as useOthersConnectionIds, aa as useOthersListener, ao as useOthersMapped, ab as useRedo, ac as useRemoveReaction, ad as useRoom, aC as useRoomInfo, au as useRoomSubscriptionSettings, ap as useSelf, aA as useSendAiMessage, ae as useStatus, aq as useStorage, af as useStorageRoot, a1 as useSubscribeToThread, I as useSyncStatus, ag as useThreadSubscription, ar as useThreads, ah as useUndo, aE as useUnreadInboxNotificationsCount, a2 as useUnsubscribeFromThread, ai as useUpdateMyPresence, ax as useUpdateNotificationSettings, aj as useUpdateRoomSubscriptionSettings, aF as useUser, aB as useUserThreads_experimental } from './room-BtcL74U0.js';
|
|
3
3
|
export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import * as react from 'react';
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
PKG_FORMAT,
|
|
4
4
|
PKG_NAME,
|
|
5
5
|
PKG_VERSION
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-W466HEJW.js";
|
|
7
7
|
import {
|
|
8
8
|
ClientContext,
|
|
9
9
|
LiveblocksProvider,
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
useUnsubscribeFromThread,
|
|
78
78
|
useUpdateNotificationSettings,
|
|
79
79
|
useUpdateRoomSubscriptionSettings
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-OKYUUXNY.js";
|
|
81
81
|
|
|
82
82
|
// src/index.ts
|
|
83
83
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -1207,7 +1207,7 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
|
|
|
1207
1207
|
* @example
|
|
1208
1208
|
* const { count, error, isLoading } = useUnreadInboxNotificationsCount();
|
|
1209
1209
|
*/
|
|
1210
|
-
useUnreadInboxNotificationsCount(): UnreadInboxNotificationsCountAsyncResult;
|
|
1210
|
+
useUnreadInboxNotificationsCount(options?: UseInboxNotificationsOptions): UnreadInboxNotificationsCountAsyncResult;
|
|
1211
1211
|
/**
|
|
1212
1212
|
* @experimental
|
|
1213
1213
|
*
|
|
@@ -1250,7 +1250,7 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
|
|
|
1250
1250
|
* @example
|
|
1251
1251
|
* const { count } = useUnreadInboxNotificationsCount();
|
|
1252
1252
|
*/
|
|
1253
|
-
useUnreadInboxNotificationsCount(): UnreadInboxNotificationsCountAsyncSuccess;
|
|
1253
|
+
useUnreadInboxNotificationsCount(options?: UseInboxNotificationsOptions): UnreadInboxNotificationsCountAsyncSuccess;
|
|
1254
1254
|
/**
|
|
1255
1255
|
* Returns notification settings for the current user.
|
|
1256
1256
|
*
|
|
@@ -1831,14 +1831,14 @@ declare function useDeleteInboxNotification(): (inboxNotificationId: string) =>
|
|
|
1831
1831
|
* @example
|
|
1832
1832
|
* const { count, error, isLoading } = useUnreadInboxNotificationsCount();
|
|
1833
1833
|
*/
|
|
1834
|
-
declare function useUnreadInboxNotificationsCount(): UnreadInboxNotificationsCountAsyncResult;
|
|
1834
|
+
declare function useUnreadInboxNotificationsCount(options?: UseInboxNotificationsOptions): UnreadInboxNotificationsCountAsyncResult;
|
|
1835
1835
|
/**
|
|
1836
1836
|
* Returns the number of unread inbox notifications for the current user.
|
|
1837
1837
|
*
|
|
1838
1838
|
* @example
|
|
1839
1839
|
* const { count } = useUnreadInboxNotificationsCount();
|
|
1840
1840
|
*/
|
|
1841
|
-
declare function useUnreadInboxNotificationsCountSuspense(): {
|
|
1841
|
+
declare function useUnreadInboxNotificationsCountSuspense(options?: UseInboxNotificationsOptions): {
|
|
1842
1842
|
readonly isLoading: false;
|
|
1843
1843
|
readonly count: number;
|
|
1844
1844
|
readonly error?: undefined;
|
|
@@ -1207,7 +1207,7 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
|
|
|
1207
1207
|
* @example
|
|
1208
1208
|
* const { count, error, isLoading } = useUnreadInboxNotificationsCount();
|
|
1209
1209
|
*/
|
|
1210
|
-
useUnreadInboxNotificationsCount(): UnreadInboxNotificationsCountAsyncResult;
|
|
1210
|
+
useUnreadInboxNotificationsCount(options?: UseInboxNotificationsOptions): UnreadInboxNotificationsCountAsyncResult;
|
|
1211
1211
|
/**
|
|
1212
1212
|
* @experimental
|
|
1213
1213
|
*
|
|
@@ -1250,7 +1250,7 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
|
|
|
1250
1250
|
* @example
|
|
1251
1251
|
* const { count } = useUnreadInboxNotificationsCount();
|
|
1252
1252
|
*/
|
|
1253
|
-
useUnreadInboxNotificationsCount(): UnreadInboxNotificationsCountAsyncSuccess;
|
|
1253
|
+
useUnreadInboxNotificationsCount(options?: UseInboxNotificationsOptions): UnreadInboxNotificationsCountAsyncSuccess;
|
|
1254
1254
|
/**
|
|
1255
1255
|
* Returns notification settings for the current user.
|
|
1256
1256
|
*
|
|
@@ -1831,14 +1831,14 @@ declare function useDeleteInboxNotification(): (inboxNotificationId: string) =>
|
|
|
1831
1831
|
* @example
|
|
1832
1832
|
* const { count, error, isLoading } = useUnreadInboxNotificationsCount();
|
|
1833
1833
|
*/
|
|
1834
|
-
declare function useUnreadInboxNotificationsCount(): UnreadInboxNotificationsCountAsyncResult;
|
|
1834
|
+
declare function useUnreadInboxNotificationsCount(options?: UseInboxNotificationsOptions): UnreadInboxNotificationsCountAsyncResult;
|
|
1835
1835
|
/**
|
|
1836
1836
|
* Returns the number of unread inbox notifications for the current user.
|
|
1837
1837
|
*
|
|
1838
1838
|
* @example
|
|
1839
1839
|
* const { count } = useUnreadInboxNotificationsCount();
|
|
1840
1840
|
*/
|
|
1841
|
-
declare function useUnreadInboxNotificationsCountSuspense(): {
|
|
1841
|
+
declare function useUnreadInboxNotificationsCountSuspense(options?: UseInboxNotificationsOptions): {
|
|
1842
1842
|
readonly isLoading: false;
|
|
1843
1843
|
readonly count: number;
|
|
1844
1844
|
readonly error?: undefined;
|
package/dist/suspense.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkMEL5UMNWcjs = require('./chunk-MEL5UMNW.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -74,12 +74,12 @@ var _chunkOXA6JGB4cjs = require('./chunk-OXA6JGB4.cjs');
|
|
|
74
74
|
|
|
75
75
|
|
|
76
76
|
|
|
77
|
-
var
|
|
77
|
+
var _chunk4GCS3365cjs = require('./chunk-4GCS3365.cjs');
|
|
78
78
|
|
|
79
79
|
// src/suspense.ts
|
|
80
80
|
var _core = require('@liveblocks/core');
|
|
81
81
|
var _client = require('@liveblocks/client');
|
|
82
|
-
_core.detectDupes.call(void 0,
|
|
82
|
+
_core.detectDupes.call(void 0, _chunkMEL5UMNWcjs.PKG_NAME, _chunkMEL5UMNWcjs.PKG_VERSION, _chunkMEL5UMNWcjs.PKG_FORMAT);
|
|
83
83
|
|
|
84
84
|
|
|
85
85
|
|
|
@@ -153,5 +153,5 @@ _core.detectDupes.call(void 0, _chunkOXA6JGB4cjs.PKG_NAME, _chunkOXA6JGB4cjs.PKG
|
|
|
153
153
|
|
|
154
154
|
|
|
155
155
|
|
|
156
|
-
exports.ClientContext =
|
|
156
|
+
exports.ClientContext = _chunk4GCS3365cjs.ClientContext; exports.ClientSideSuspense = _chunkMEL5UMNWcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunk4GCS3365cjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunk4GCS3365cjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunk4GCS3365cjs.RegisterAiTool; exports.RoomContext = _chunk4GCS3365cjs.RoomContext; exports.RoomProvider = _chunk4GCS3365cjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunk4GCS3365cjs._useAddReaction; exports.useAiChat = _chunk4GCS3365cjs._useAiChatSuspense; exports.useAiChatMessages = _chunk4GCS3365cjs._useAiChatMessagesSuspense; exports.useAiChats = _chunk4GCS3365cjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunk4GCS3365cjs.useAttachmentUrlSuspense; exports.useBroadcastEvent = _chunk4GCS3365cjs._useBroadcastEvent; exports.useCanRedo = _chunk4GCS3365cjs.useCanRedo; exports.useCanUndo = _chunk4GCS3365cjs.useCanUndo; exports.useClient = _chunk4GCS3365cjs.useClient; exports.useCreateAiChat = _chunk4GCS3365cjs.useCreateAiChat; exports.useCreateComment = _chunk4GCS3365cjs.useCreateComment; exports.useCreateThread = _chunk4GCS3365cjs._useCreateThread; exports.useDeleteAiChat = _chunk4GCS3365cjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunk4GCS3365cjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunk4GCS3365cjs.useDeleteComment; exports.useDeleteInboxNotification = _chunk4GCS3365cjs.useDeleteInboxNotification; exports.useDeleteThread = _chunk4GCS3365cjs._useDeleteThread; exports.useEditComment = _chunk4GCS3365cjs.useEditComment; exports.useEditThreadMetadata = _chunk4GCS3365cjs._useEditThreadMetadata; exports.useErrorListener = _chunk4GCS3365cjs.useErrorListener; exports.useEventListener = _chunk4GCS3365cjs._useEventListener; exports.useGroupInfo = _chunk4GCS3365cjs.useGroupInfoSuspense; exports.useHistory = _chunk4GCS3365cjs.useHistory; exports.useHistoryVersions = _chunk4GCS3365cjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunk4GCS3365cjs._useInboxNotificationThread; exports.useInboxNotifications = _chunk4GCS3365cjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunk4GCS3365cjs._useIsInsideRoom; exports.useLostConnectionListener = _chunk4GCS3365cjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunk4GCS3365cjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunk4GCS3365cjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunk4GCS3365cjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunk4GCS3365cjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunk4GCS3365cjs.useMarkThreadAsUnresolved; exports.useMutation = _chunk4GCS3365cjs._useMutation; exports.useMyPresence = _chunk4GCS3365cjs._useMyPresence; exports.useNotificationSettings = _chunk4GCS3365cjs.useNotificationSettingsSuspense; exports.useOther = _chunk4GCS3365cjs._useOtherSuspense; exports.useOthers = _chunk4GCS3365cjs._useOthersSuspense; exports.useOthersConnectionIds = _chunk4GCS3365cjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunk4GCS3365cjs._useOthersListener; exports.useOthersMapped = _chunk4GCS3365cjs._useOthersMappedSuspense; exports.useRedo = _chunk4GCS3365cjs.useRedo; exports.useRemoveReaction = _chunk4GCS3365cjs.useRemoveReaction; exports.useRoom = _chunk4GCS3365cjs._useRoom; exports.useRoomInfo = _chunk4GCS3365cjs.useRoomInfoSuspense; exports.useRoomSubscriptionSettings = _chunk4GCS3365cjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunk4GCS3365cjs._useSelfSuspense; exports.useSendAiMessage = _chunk4GCS3365cjs.useSendAiMessage; exports.useStatus = _chunk4GCS3365cjs.useStatus; exports.useStorage = _chunk4GCS3365cjs._useStorageSuspense; exports.useStorageRoot = _chunk4GCS3365cjs._useStorageRoot; exports.useSubscribeToThread = _chunk4GCS3365cjs.useSubscribeToThread; exports.useSyncStatus = _chunk4GCS3365cjs.useSyncStatus; exports.useThreadSubscription = _chunk4GCS3365cjs.useThreadSubscription; exports.useThreads = _chunk4GCS3365cjs._useThreadsSuspense; exports.useUndo = _chunk4GCS3365cjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunk4GCS3365cjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunk4GCS3365cjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunk4GCS3365cjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunk4GCS3365cjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunk4GCS3365cjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunk4GCS3365cjs._useUserSuspense; exports.useUserThreads_experimental = _chunk4GCS3365cjs._useUserThreadsSuspense_experimental;
|
|
157
157
|
//# sourceMappingURL=suspense.cjs.map
|
package/dist/suspense.d.cts
CHANGED
|
@@ -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, K as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, N as useAddReaction, b0 as useAiChat, a$ as useAiChatMessages, a_ as useAiChats, aQ as useAttachmentUrl, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, ay as useCreateAiChat, T as useCreateComment, V as useCreateThread, az as useDeleteAiChat, B as useDeleteAllInboxNotifications, W as useDeleteComment, D as useDeleteInboxNotification, X as useDeleteThread, Y as useEditComment, Z as useEditThreadMetadata, E as useErrorListener, a3 as useEventListener, aW as useGroupInfo, a4 as useHistory, aR as useHistoryVersions, _ as useInboxNotificationThread, aT as useInboxNotifications, a5 as useIsInsideRoom, a6 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, H as useMarkInboxNotificationAsRead, a7 as useMarkThreadAsRead, $ as useMarkThreadAsResolved, a0 as useMarkThreadAsUnresolved, a8 as useMutation, a9 as useMyPresence, aU as useNotificationSettings, aJ as useOther, aK as useOthers, aL as useOthersConnectionIds, aa as useOthersListener, aM as useOthersMapped, ab as useRedo, ac as useRemoveReaction, ad as useRoom, aV as useRoomInfo, aS as useRoomSubscriptionSettings, aN as useSelf, aA as useSendAiMessage, ae as useStatus, aO as useStorage, af as useStorageRoot, a1 as useSubscribeToThread, I as useSyncStatus, ag as useThreadSubscription, aP as useThreads, ah as useUndo, aX as useUnreadInboxNotificationsCount, a2 as useUnsubscribeFromThread, ai as useUpdateMyPresence, ax as useUpdateNotificationSettings, aj as useUpdateRoomSubscriptionSettings, aY as useUser, aZ as useUserThreads_experimental } from './room-
|
|
2
|
+
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, K as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, N as useAddReaction, b0 as useAiChat, a$ as useAiChatMessages, a_ as useAiChats, aQ as useAttachmentUrl, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, ay as useCreateAiChat, T as useCreateComment, V as useCreateThread, az as useDeleteAiChat, B as useDeleteAllInboxNotifications, W as useDeleteComment, D as useDeleteInboxNotification, X as useDeleteThread, Y as useEditComment, Z as useEditThreadMetadata, E as useErrorListener, a3 as useEventListener, aW as useGroupInfo, a4 as useHistory, aR as useHistoryVersions, _ as useInboxNotificationThread, aT as useInboxNotifications, a5 as useIsInsideRoom, a6 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, H as useMarkInboxNotificationAsRead, a7 as useMarkThreadAsRead, $ as useMarkThreadAsResolved, a0 as useMarkThreadAsUnresolved, a8 as useMutation, a9 as useMyPresence, aU as useNotificationSettings, aJ as useOther, aK as useOthers, aL as useOthersConnectionIds, aa as useOthersListener, aM as useOthersMapped, ab as useRedo, ac as useRemoveReaction, ad as useRoom, aV as useRoomInfo, aS as useRoomSubscriptionSettings, aN as useSelf, aA as useSendAiMessage, ae as useStatus, aO as useStorage, af as useStorageRoot, a1 as useSubscribeToThread, I as useSyncStatus, ag as useThreadSubscription, aP as useThreads, ah as useUndo, aX as useUnreadInboxNotificationsCount, a2 as useUnsubscribeFromThread, ai as useUpdateMyPresence, ax as useUpdateNotificationSettings, aj as useUpdateRoomSubscriptionSettings, aY as useUser, aZ as useUserThreads_experimental } from './room-BtcL74U0.cjs';
|
|
3
3
|
export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react';
|
package/dist/suspense.d.ts
CHANGED
|
@@ -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, K as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, N as useAddReaction, b0 as useAiChat, a$ as useAiChatMessages, a_ as useAiChats, aQ as useAttachmentUrl, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, ay as useCreateAiChat, T as useCreateComment, V as useCreateThread, az as useDeleteAiChat, B as useDeleteAllInboxNotifications, W as useDeleteComment, D as useDeleteInboxNotification, X as useDeleteThread, Y as useEditComment, Z as useEditThreadMetadata, E as useErrorListener, a3 as useEventListener, aW as useGroupInfo, a4 as useHistory, aR as useHistoryVersions, _ as useInboxNotificationThread, aT as useInboxNotifications, a5 as useIsInsideRoom, a6 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, H as useMarkInboxNotificationAsRead, a7 as useMarkThreadAsRead, $ as useMarkThreadAsResolved, a0 as useMarkThreadAsUnresolved, a8 as useMutation, a9 as useMyPresence, aU as useNotificationSettings, aJ as useOther, aK as useOthers, aL as useOthersConnectionIds, aa as useOthersListener, aM as useOthersMapped, ab as useRedo, ac as useRemoveReaction, ad as useRoom, aV as useRoomInfo, aS as useRoomSubscriptionSettings, aN as useSelf, aA as useSendAiMessage, ae as useStatus, aO as useStorage, af as useStorageRoot, a1 as useSubscribeToThread, I as useSyncStatus, ag as useThreadSubscription, aP as useThreads, ah as useUndo, aX as useUnreadInboxNotificationsCount, a2 as useUnsubscribeFromThread, ai as useUpdateMyPresence, ax as useUpdateNotificationSettings, aj as useUpdateRoomSubscriptionSettings, aY as useUser, aZ as useUserThreads_experimental } from './room-
|
|
2
|
+
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, K as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, N as useAddReaction, b0 as useAiChat, a$ as useAiChatMessages, a_ as useAiChats, aQ as useAttachmentUrl, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, ay as useCreateAiChat, T as useCreateComment, V as useCreateThread, az as useDeleteAiChat, B as useDeleteAllInboxNotifications, W as useDeleteComment, D as useDeleteInboxNotification, X as useDeleteThread, Y as useEditComment, Z as useEditThreadMetadata, E as useErrorListener, a3 as useEventListener, aW as useGroupInfo, a4 as useHistory, aR as useHistoryVersions, _ as useInboxNotificationThread, aT as useInboxNotifications, a5 as useIsInsideRoom, a6 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, H as useMarkInboxNotificationAsRead, a7 as useMarkThreadAsRead, $ as useMarkThreadAsResolved, a0 as useMarkThreadAsUnresolved, a8 as useMutation, a9 as useMyPresence, aU as useNotificationSettings, aJ as useOther, aK as useOthers, aL as useOthersConnectionIds, aa as useOthersListener, aM as useOthersMapped, ab as useRedo, ac as useRemoveReaction, ad as useRoom, aV as useRoomInfo, aS as useRoomSubscriptionSettings, aN as useSelf, aA as useSendAiMessage, ae as useStatus, aO as useStorage, af as useStorageRoot, a1 as useSubscribeToThread, I as useSyncStatus, ag as useThreadSubscription, aP as useThreads, ah as useUndo, aX as useUnreadInboxNotificationsCount, a2 as useUnsubscribeFromThread, ai as useUpdateMyPresence, ax as useUpdateNotificationSettings, aj as useUpdateRoomSubscriptionSettings, aY as useUser, aZ as useUserThreads_experimental } from './room-BtcL74U0.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-
|
|
6
|
+
} from "./chunk-W466HEJW.js";
|
|
7
7
|
import {
|
|
8
8
|
ClientContext,
|
|
9
9
|
LiveblocksProvider,
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
useUnsubscribeFromThread,
|
|
75
75
|
useUpdateNotificationSettings,
|
|
76
76
|
useUpdateRoomSubscriptionSettings
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-OKYUUXNY.js";
|
|
78
78
|
|
|
79
79
|
// src/suspense.ts
|
|
80
80
|
import { detectDupes } from "@liveblocks/core";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liveblocks/react",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.1",
|
|
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": "3.7.
|
|
65
|
-
"@liveblocks/core": "3.7.
|
|
64
|
+
"@liveblocks/client": "3.7.1",
|
|
65
|
+
"@liveblocks/core": "3.7.1"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"@types/react": "*",
|