@liveblocks/react 3.22.0-file1 → 3.22.0-rc1
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 -9
- package/dist/_private.cjs.map +1 -1
- package/dist/_private.d.cts +2 -2
- package/dist/_private.d.ts +2 -2
- package/dist/_private.js +1 -3
- package/dist/_private.js.map +1 -1
- package/dist/{chunk-L4ZABYCR.js → chunk-BTNBUDWN.js} +1 -88
- package/dist/chunk-BTNBUDWN.js.map +1 -0
- package/dist/{chunk-NDJ7FOCQ.cjs → chunk-EEEE2AWI.cjs} +2 -2
- package/dist/{chunk-NDJ7FOCQ.cjs.map → chunk-EEEE2AWI.cjs.map} +1 -1
- package/dist/{chunk-TWH7P3HK.cjs → chunk-X6E4Y65Y.cjs} +4 -91
- package/dist/chunk-X6E4Y65Y.cjs.map +1 -0
- package/dist/{chunk-CMU4CSPN.js → chunk-YJ3VWMRC.js} +2 -2
- package/dist/index.cjs +4 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/dist/{room-C0arh8HO.d.cts → room-C5ak1P_z.d.cts} +2 -14
- package/dist/{room-C0arh8HO.d.ts → room-C5ak1P_z.d.ts} +2 -14
- package/dist/suspense.cjs +4 -6
- package/dist/suspense.cjs.map +1 -1
- package/dist/suspense.d.cts +1 -1
- package/dist/suspense.d.ts +1 -1
- package/dist/suspense.js +2 -4
- package/dist/suspense.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-L4ZABYCR.js.map +0 -1
- package/dist/chunk-TWH7P3HK.cjs.map +0 -1
- /package/dist/{chunk-CMU4CSPN.js.map → chunk-YJ3VWMRC.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.22.0-
|
|
3
|
+
var PKG_VERSION = "3.22.0-rc1";
|
|
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-YJ3VWMRC.js.map
|
package/dist/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkEEEE2AWIcjs = require('./chunk-EEEE2AWI.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -90,14 +90,12 @@ var _chunkNDJ7FOCQcjs = require('./chunk-NDJ7FOCQ.cjs');
|
|
|
90
90
|
|
|
91
91
|
|
|
92
92
|
|
|
93
|
-
|
|
94
|
-
var _chunkTWH7P3HKcjs = require('./chunk-TWH7P3HK.cjs');
|
|
93
|
+
var _chunkX6E4Y65Ycjs = require('./chunk-X6E4Y65Y.cjs');
|
|
95
94
|
|
|
96
95
|
// src/index.ts
|
|
97
96
|
var _core = require('@liveblocks/core');
|
|
98
97
|
var _client = require('@liveblocks/client');
|
|
99
|
-
_core.detectDupes.call(void 0,
|
|
100
|
-
|
|
98
|
+
_core.detectDupes.call(void 0, _chunkEEEE2AWIcjs.PKG_NAME, _chunkEEEE2AWIcjs.PKG_VERSION, _chunkEEEE2AWIcjs.PKG_FORMAT);
|
|
101
99
|
|
|
102
100
|
|
|
103
101
|
|
|
@@ -187,5 +185,5 @@ _core.detectDupes.call(void 0, _chunkNDJ7FOCQcjs.PKG_NAME, _chunkNDJ7FOCQcjs.PKG
|
|
|
187
185
|
|
|
188
186
|
|
|
189
187
|
|
|
190
|
-
exports.ClientContext =
|
|
188
|
+
exports.ClientContext = _chunkX6E4Y65Ycjs.ClientContext; exports.ClientSideSuspense = _chunkEEEE2AWIcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkX6E4Y65Ycjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkX6E4Y65Ycjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkX6E4Y65Ycjs.RegisterAiTool; exports.RoomContext = _chunkX6E4Y65Ycjs.GlobalRoomContext; exports.RoomProvider = _chunkX6E4Y65Ycjs._RoomProvider; exports.createLiveblocksContext = _chunkX6E4Y65Ycjs.createLiveblocksContext; exports.createRoomContext = _chunkX6E4Y65Ycjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkX6E4Y65Ycjs._useAddReaction; exports.useAiChat = _chunkX6E4Y65Ycjs._useAiChat; exports.useAiChatMessages = _chunkX6E4Y65Ycjs._useAiChatMessages; exports.useAiChatStatus = _chunkX6E4Y65Ycjs.useAiChatStatus; exports.useAiChats = _chunkX6E4Y65Ycjs._useAiChats; exports.useAttachmentUrl = _chunkX6E4Y65Ycjs.useAttachmentUrl; exports.useBroadcastEvent = _chunkX6E4Y65Ycjs._useBroadcastEvent; exports.useCanRedo = _chunkX6E4Y65Ycjs.useCanRedo; exports.useCanUndo = _chunkX6E4Y65Ycjs.useCanUndo; exports.useClient = _chunkX6E4Y65Ycjs.useClient; exports.useCreateAiChat = _chunkX6E4Y65Ycjs.useCreateAiChat; exports.useCreateComment = _chunkX6E4Y65Ycjs._useCreateComment; exports.useCreateFeed = _chunkX6E4Y65Ycjs.useCreateFeed; exports.useCreateFeedMessage = _chunkX6E4Y65Ycjs.useCreateFeedMessage; exports.useCreateThread = _chunkX6E4Y65Ycjs._useCreateThread; exports.useDeleteAiChat = _chunkX6E4Y65Ycjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkX6E4Y65Ycjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkX6E4Y65Ycjs.useDeleteComment; exports.useDeleteFeed = _chunkX6E4Y65Ycjs.useDeleteFeed; exports.useDeleteFeedMessage = _chunkX6E4Y65Ycjs.useDeleteFeedMessage; exports.useDeleteInboxNotification = _chunkX6E4Y65Ycjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkX6E4Y65Ycjs._useDeleteThread; exports.useEditComment = _chunkX6E4Y65Ycjs._useEditComment; exports.useEditCommentMetadata = _chunkX6E4Y65Ycjs._useEditCommentMetadata; exports.useEditThreadMetadata = _chunkX6E4Y65Ycjs._useEditThreadMetadata; exports.useErrorListener = _chunkX6E4Y65Ycjs.useErrorListener; exports.useEventListener = _chunkX6E4Y65Ycjs._useEventListener; exports.useFeedMessages = _chunkX6E4Y65Ycjs._useFeedMessages; exports.useFeeds = _chunkX6E4Y65Ycjs._useFeeds; exports.useGroupInfo = _chunkX6E4Y65Ycjs.useGroupInfo; exports.useHistory = _chunkX6E4Y65Ycjs.useHistory; exports.useHistoryVersionData = _chunkX6E4Y65Ycjs.useHistoryVersionData; exports.useHistoryVersionYjsData = _chunkX6E4Y65Ycjs.useHistoryVersionYjsData; exports.useHistoryVersions = _chunkX6E4Y65Ycjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkX6E4Y65Ycjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkX6E4Y65Ycjs.useInboxNotifications; exports.useIsInsideRoom = _chunkX6E4Y65Ycjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkX6E4Y65Ycjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkX6E4Y65Ycjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkX6E4Y65Ycjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkX6E4Y65Ycjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkX6E4Y65Ycjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkX6E4Y65Ycjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkX6E4Y65Ycjs._useMutation; exports.useMyPresence = _chunkX6E4Y65Ycjs._useMyPresence; exports.useNotificationSettings = _chunkX6E4Y65Ycjs.useNotificationSettings; exports.useOther = _chunkX6E4Y65Ycjs._useOther; exports.useOthers = _chunkX6E4Y65Ycjs._useOthers; exports.useOthersConnectionIds = _chunkX6E4Y65Ycjs.useOthersConnectionIds; exports.useOthersListener = _chunkX6E4Y65Ycjs._useOthersListener; exports.useOthersMapped = _chunkX6E4Y65Ycjs._useOthersMapped; exports.useRedo = _chunkX6E4Y65Ycjs.useRedo; exports.useRemoveReaction = _chunkX6E4Y65Ycjs.useRemoveReaction; exports.useRoom = _chunkX6E4Y65Ycjs._useRoom; exports.useRoomInfo = _chunkX6E4Y65Ycjs.useRoomInfo; exports.useRoomSubscriptionSettings = _chunkX6E4Y65Ycjs._useRoomSubscriptionSettings; exports.useSearchComments = _chunkX6E4Y65Ycjs._useSearchComments; exports.useSelf = _chunkX6E4Y65Ycjs._useSelf; exports.useSendAiMessage = _chunkX6E4Y65Ycjs.useSendAiMessage; exports.useStatus = _chunkX6E4Y65Ycjs.useStatus; exports.useStorage = _chunkX6E4Y65Ycjs._useStorage; exports.useStorageRoot = _chunkX6E4Y65Ycjs._useStorageRoot; exports.useSubscribeToThread = _chunkX6E4Y65Ycjs.useSubscribeToThread; exports.useSyncStatus = _chunkX6E4Y65Ycjs.useSyncStatus; exports.useThreadSubscription = _chunkX6E4Y65Ycjs.useThreadSubscription; exports.useThreads = _chunkX6E4Y65Ycjs._useThreads; exports.useUndo = _chunkX6E4Y65Ycjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkX6E4Y65Ycjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunkX6E4Y65Ycjs.useUnsubscribeFromThread; exports.useUpdateFeedMessage = _chunkX6E4Y65Ycjs.useUpdateFeedMessage; exports.useUpdateFeedMetadata = _chunkX6E4Y65Ycjs.useUpdateFeedMetadata; exports.useUpdateMyPresence = _chunkX6E4Y65Ycjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkX6E4Y65Ycjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkX6E4Y65Ycjs.useUpdateRoomSubscriptionSettings; exports.useUrlMetadata = _chunkX6E4Y65Ycjs._useUrlMetadata; exports.useUser = _chunkX6E4Y65Ycjs._useUser; exports.useUserThreads_experimental = _chunkX6E4Y65Ycjs._useUserThreads_experimental;
|
|
191
189
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","../src/index.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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","../src/index.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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;AC7FA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;AD8F7C;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,smLAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.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 UseSendAiMessageOptions,\n UseThreadsOptions,\n SendAiMessageOptions,\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 { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport {\n ClientContext,\n GlobalRoomContext as RoomContext,\n useClient,\n} from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useEditCommentMetadata,\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 useHistoryVersionData,\n useHistoryVersionYjsData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useThreads,\n useFeeds,\n useFeedMessages,\n useCreateFeed,\n useDeleteFeed,\n useUpdateFeedMetadata,\n useCreateFeedMessage,\n useDeleteFeedMessage,\n useUpdateFeedMessage,\n useSearchComments,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useGroupInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n useAiChatStatus,\n useUrlMetadata,\n} from \"./liveblocks\";\n"]}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RegisterAiKnowledgeProps,
|
|
2
|
-
export {
|
|
1
|
+
import { R as RegisterAiKnowledgeProps, z as RegisterAiToolProps } from './room-C5ak1P_z.cjs';
|
|
2
|
+
export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, B as RoomContext, _ as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, D as UseThreadsOptions, E as createLiveblocksContext, F as createRoomContext, H as useAddReaction, I as useAiChat, J as useAiChatMessages, K as useAiChatStatus, N as useAiChats, O as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, V as useClient, W as useCreateAiChat, X as useCreateComment, Y as useCreateFeed, Z as useCreateFeedMessage, $ as useCreateThread, a0 as useDeleteAiChat, a1 as useDeleteAllInboxNotifications, a2 as useDeleteComment, a3 as useDeleteFeed, a4 as useDeleteFeedMessage, a5 as useDeleteInboxNotification, a6 as useDeleteThread, a7 as useEditComment, a8 as useEditCommentMetadata, a9 as useEditThreadMetadata, aa as useErrorListener, ab as useEventListener, ac as useFeedMessages, ad as useFeeds, ae as useGroupInfo, af as useHistory, ag as useHistoryVersionData, ah as useHistoryVersionYjsData, ai as useHistoryVersions, aj as useInboxNotificationThread, ak as useInboxNotifications, al as useIsInsideRoom, am as useLostConnectionListener, an as useMarkAllInboxNotificationsAsRead, ao as useMarkInboxNotificationAsRead, ap as useMarkThreadAsRead, aq as useMarkThreadAsResolved, ar as useMarkThreadAsUnresolved, as as useMutation, at as useMyPresence, au as useNotificationSettings, av as useOther, aw as useOthers, ax as useOthersConnectionIds, ay as useOthersListener, az as useOthersMapped, aA as useRedo, aB as useRemoveReaction, aC as useRoom, aD as useRoomInfo, aE as useRoomSubscriptionSettings, aF as useSearchComments, aG as useSelf, aH as useSendAiMessage, aI as useStatus, aJ as useStorage, aK as useStorageRoot, aL as useSubscribeToThread, aM as useSyncStatus, aN as useThreadSubscription, aO as useThreads, aP as useUndo, aQ as useUnreadInboxNotificationsCount, aR as useUnsubscribeFromThread, aS as useUpdateFeedMessage, aT as useUpdateFeedMetadata, aU as useUpdateMyPresence, aV as useUpdateNotificationSettings, aW as useUpdateRoomSubscriptionSettings, aX as useUrlMetadata, aY as useUser, aZ as useUserThreads_experimental } from './room-C5ak1P_z.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,
|
|
2
|
-
export {
|
|
1
|
+
import { R as RegisterAiKnowledgeProps, z as RegisterAiToolProps } from './room-C5ak1P_z.js';
|
|
2
|
+
export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, B as RoomContext, _ as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, D as UseThreadsOptions, E as createLiveblocksContext, F as createRoomContext, H as useAddReaction, I as useAiChat, J as useAiChatMessages, K as useAiChatStatus, N as useAiChats, O as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, V as useClient, W as useCreateAiChat, X as useCreateComment, Y as useCreateFeed, Z as useCreateFeedMessage, $ as useCreateThread, a0 as useDeleteAiChat, a1 as useDeleteAllInboxNotifications, a2 as useDeleteComment, a3 as useDeleteFeed, a4 as useDeleteFeedMessage, a5 as useDeleteInboxNotification, a6 as useDeleteThread, a7 as useEditComment, a8 as useEditCommentMetadata, a9 as useEditThreadMetadata, aa as useErrorListener, ab as useEventListener, ac as useFeedMessages, ad as useFeeds, ae as useGroupInfo, af as useHistory, ag as useHistoryVersionData, ah as useHistoryVersionYjsData, ai as useHistoryVersions, aj as useInboxNotificationThread, ak as useInboxNotifications, al as useIsInsideRoom, am as useLostConnectionListener, an as useMarkAllInboxNotificationsAsRead, ao as useMarkInboxNotificationAsRead, ap as useMarkThreadAsRead, aq as useMarkThreadAsResolved, ar as useMarkThreadAsUnresolved, as as useMutation, at as useMyPresence, au as useNotificationSettings, av as useOther, aw as useOthers, ax as useOthersConnectionIds, ay as useOthersListener, az as useOthersMapped, aA as useRedo, aB as useRemoveReaction, aC as useRoom, aD as useRoomInfo, aE as useRoomSubscriptionSettings, aF as useSearchComments, aG as useSelf, aH as useSendAiMessage, aI as useStatus, aJ as useStorage, aK as useStorageRoot, aL as useSubscribeToThread, aM as useSyncStatus, aN as useThreadSubscription, aO as useThreads, aP as useUndo, aQ as useUnreadInboxNotificationsCount, aR as useUnsubscribeFromThread, aS as useUpdateFeedMessage, aT as useUpdateFeedMetadata, aU as useUpdateMyPresence, aV as useUpdateNotificationSettings, aW as useUpdateRoomSubscriptionSettings, aX as useUrlMetadata, aY as useUser, aZ as useUserThreads_experimental } from './room-C5ak1P_z.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-YJ3VWMRC.js";
|
|
7
7
|
import {
|
|
8
8
|
ClientContext,
|
|
9
9
|
GlobalRoomContext,
|
|
@@ -62,7 +62,6 @@ import {
|
|
|
62
62
|
useDeleteFeedMessage,
|
|
63
63
|
useDeleteInboxNotification,
|
|
64
64
|
useErrorListener,
|
|
65
|
-
useFileUrl,
|
|
66
65
|
useGroupInfo,
|
|
67
66
|
useHistory,
|
|
68
67
|
useHistoryVersionData,
|
|
@@ -91,7 +90,7 @@ import {
|
|
|
91
90
|
useUpdateFeedMetadata,
|
|
92
91
|
useUpdateNotificationSettings,
|
|
93
92
|
useUpdateRoomSubscriptionSettings
|
|
94
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-BTNBUDWN.js";
|
|
95
94
|
|
|
96
95
|
// src/index.ts
|
|
97
96
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -138,7 +137,6 @@ export {
|
|
|
138
137
|
_useEventListener as useEventListener,
|
|
139
138
|
_useFeedMessages as useFeedMessages,
|
|
140
139
|
_useFeeds as useFeeds,
|
|
141
|
-
useFileUrl,
|
|
142
140
|
useGroupInfo,
|
|
143
141
|
useHistory,
|
|
144
142
|
useHistoryVersionData,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseSendAiMessageOptions,\n UseThreadsOptions,\n SendAiMessageOptions,\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 { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport {\n ClientContext,\n GlobalRoomContext as RoomContext,\n useClient,\n} from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useEditCommentMetadata,\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 useHistoryVersionData,\n useHistoryVersionYjsData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useThreads,\n useFeeds,\n useFeedMessages,\n useCreateFeed,\n useDeleteFeed,\n useUpdateFeedMetadata,\n useCreateFeedMessage,\n useDeleteFeedMessage,\n useUpdateFeedMessage,\n useSearchComments,\n useAttachmentUrl,\n
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseSendAiMessageOptions,\n UseThreadsOptions,\n SendAiMessageOptions,\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 { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport {\n ClientContext,\n GlobalRoomContext as RoomContext,\n useClient,\n} from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useEditCommentMetadata,\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 useHistoryVersionData,\n useHistoryVersionYjsData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useThreads,\n useFeeds,\n useFeedMessages,\n useCreateFeed,\n useDeleteFeed,\n useUpdateFeedMetadata,\n useCreateFeedMessage,\n useDeleteFeedMessage,\n useUpdateFeedMessage,\n useSearchComments,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useGroupInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n useAiChatStatus,\n useUrlMetadata,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAe5B,SAAS,SAAS,oCAAoC;AAZtD,YAAY,UAAU,aAAa,UAAU;","names":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseUserMeta, Client, RoomSubscriptionSettings, Json, JsonObject, LsonObject, LiveObject, User, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History,
|
|
1
|
+
import { BaseUserMeta, Client, RoomSubscriptionSettings, Json, JsonObject, LsonObject, LiveObject, User, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, ClientOptions, CommentData as CommentData$1, ThreadData as ThreadData$1, FeedCreateMetadata as FeedCreateMetadata$1, FeedUpdateMetadata as FeedUpdateMetadata$1 } from '@liveblocks/client';
|
|
2
2
|
import * as _liveblocks_core from '@liveblocks/core';
|
|
3
3
|
import { OpaqueClient, OpaqueRoom, Relax, AiAssistantContentPart, AiKnowledgeSource, AiOpaqueToolDefinition, BaseMetadata, ThreadVisibility, QueryMetadata, AsyncLoading, AsyncError, Resolve, AsyncSuccess, ThreadData, InboxNotificationData, AsyncResult, HistoryVersion, NotificationSettings, AiChat, WithNavigation, AiChatMessage, UrlMetadata, Feed, FeedMessage, CommentBody, CommentAttachment, PartialUnless, Patchable, GroupData, RoomEventMessage, CommentData, Client as Client$1, DRI, DGI, LiveblocksError, SyncStatus, ToJson, FeedFetchMetadataFilter, FeedCreateMetadata, FeedUpdateMetadata, SearchCommentsResult, PartialNotificationSettings, AiUserMessage, WithRequired, AiChatsQuery, MessageId, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, SubscriptionKey, SubscriptionData, ISignal, InboxNotificationDeleteInfo, CommentUserReaction, RoomSubscriptionSettings as RoomSubscriptionSettings$1, DerivedSignal, SubscriptionDeleteInfo, PermissionMatrix, RoomPermissions, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DefaultMap, DU, DTM, DCM, MentionData, PermissionResources, RequiredAccessLevel, TextEditorType, IYjsProvider, DP, DS, DE, DFM, DFMD } from '@liveblocks/core';
|
|
4
4
|
import { Context, ReactNode, ComponentType, PropsWithChildren } from 'react';
|
|
@@ -254,8 +254,6 @@ type GroupInfoAsyncResult = AsyncResult<DGI, "info">;
|
|
|
254
254
|
type GroupInfoAsyncSuccess = AsyncSuccess<DGI, "info">;
|
|
255
255
|
type AttachmentUrlAsyncResult = AsyncResult<string, "url">;
|
|
256
256
|
type AttachmentUrlAsyncSuccess = AsyncSuccess<string, "url">;
|
|
257
|
-
type FileUrlAsyncResult = AsyncResult<string, "url">;
|
|
258
|
-
type FileUrlAsyncSuccess = AsyncSuccess<string, "url">;
|
|
259
257
|
type GroupAsyncResult = AsyncResult<GroupData | undefined, "group">;
|
|
260
258
|
type CreateThreadOptions<TM extends BaseMetadata, CM extends BaseMetadata> = Resolve<{
|
|
261
259
|
body: CommentBody;
|
|
@@ -1121,7 +1119,6 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
1121
1119
|
* const { url, error, isLoading } = useAttachmentUrl("at_xxx");
|
|
1122
1120
|
*/
|
|
1123
1121
|
useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncResult;
|
|
1124
|
-
useFileUrl(file: LiveFile | LiveFileData | string): FileUrlAsyncResult;
|
|
1125
1122
|
/**
|
|
1126
1123
|
* (Private beta) Returns a history of versions of the current room.
|
|
1127
1124
|
*
|
|
@@ -1254,7 +1251,6 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
1254
1251
|
* const { url } = useAttachmentUrl("at_xxx");
|
|
1255
1252
|
*/
|
|
1256
1253
|
useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncSuccess;
|
|
1257
|
-
useFileUrl(file: LiveFile | LiveFileData | string): FileUrlAsyncSuccess;
|
|
1258
1254
|
}>;
|
|
1259
1255
|
}>;
|
|
1260
1256
|
/**
|
|
@@ -2701,7 +2697,6 @@ declare function useOthersConnectionIdsSuspense(): readonly number[];
|
|
|
2701
2697
|
* @private For internal use only. Do not rely on this hook.
|
|
2702
2698
|
*/
|
|
2703
2699
|
declare function useSuspendUntilStorageReady(): void;
|
|
2704
|
-
type LiveFileReference = LiveFile | LiveFileData | string;
|
|
2705
2700
|
/**
|
|
2706
2701
|
* Returns a presigned URL for an attachment by its ID.
|
|
2707
2702
|
*
|
|
@@ -2713,8 +2708,6 @@ declare function useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncResul
|
|
|
2713
2708
|
* @private For internal use only. Do not rely on this hook. Use `useAttachmentUrl` instead.
|
|
2714
2709
|
*/
|
|
2715
2710
|
declare function useRoomAttachmentUrl(attachmentId: string, roomId: string): AttachmentUrlAsyncResult;
|
|
2716
|
-
declare function useFileUrl(file: LiveFile | LiveFileData | string): FileUrlAsyncResult;
|
|
2717
|
-
declare function useRoomFileUrl(file: LiveFileReference, roomId: string): FileUrlAsyncResult;
|
|
2718
2711
|
/**
|
|
2719
2712
|
* Returns a presigned URL for an attachment by its ID.
|
|
2720
2713
|
*
|
|
@@ -2726,11 +2719,6 @@ declare function useAttachmentUrlSuspense(attachmentId: string): {
|
|
|
2726
2719
|
readonly url: string;
|
|
2727
2720
|
readonly error: undefined;
|
|
2728
2721
|
};
|
|
2729
|
-
declare function useFileUrlSuspense(file: LiveFile | LiveFileData | string): {
|
|
2730
|
-
readonly isLoading: false;
|
|
2731
|
-
readonly url: string;
|
|
2732
|
-
readonly error?: undefined;
|
|
2733
|
-
};
|
|
2734
2722
|
/**
|
|
2735
2723
|
* @private For internal use only. Do not rely on this hook.
|
|
2736
2724
|
*/
|
|
@@ -3275,4 +3263,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
3275
3263
|
*/
|
|
3276
3264
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
3277
3265
|
|
|
3278
|
-
export {
|
|
3266
|
+
export { _useCreateThread as $, type AiChatStatus as A, GlobalRoomContext as B, ClientContext as C, type UseThreadsOptions as D, createLiveblocksContext as E, createRoomContext as F, type GroupAsyncResult as G, _useAddReaction as H, _useAiChat as I, _useAiChatMessages as J, useAiChatStatus as K, LiveblocksProvider as L, type MutationContext as M, _useAiChats as N, useAttachmentUrl as O, _useBroadcastEvent as P, useCanRedo as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCanUndo as T, type UseSendAiMessageOptions as U, useClient as V, useCreateAiChat as W, _useCreateComment as X, useCreateFeed as Y, useCreateFeedMessage as Z, _RoomProvider as _, useClientOrNull as a, _useAiChatMessagesSuspense as a$, useDeleteAiChat as a0, useDeleteAllInboxNotifications as a1, useDeleteComment as a2, useDeleteFeed as a3, useDeleteFeedMessage as a4, useDeleteInboxNotification as a5, _useDeleteThread as a6, _useEditComment as a7, _useEditCommentMetadata as a8, _useEditThreadMetadata as a9, useRedo as aA, useRemoveReaction as aB, _useRoom as aC, useRoomInfo as aD, _useRoomSubscriptionSettings as aE, _useSearchComments as aF, _useSelf as aG, useSendAiMessage as aH, useStatus as aI, _useStorage as aJ, _useStorageRoot as aK, useSubscribeToThread as aL, useSyncStatus as aM, useThreadSubscription as aN, _useThreads as aO, useUndo as aP, useUnreadInboxNotificationsCount as aQ, useUnsubscribeFromThread as aR, useUpdateFeedMessage as aS, useUpdateFeedMetadata as aT, _useUpdateMyPresence as aU, useUpdateNotificationSettings as aV, useUpdateRoomSubscriptionSettings as aW, _useUrlMetadata as aX, _useUser as aY, _useUserThreads_experimental as aZ, _useAiChatSuspense as a_, useErrorListener as aa, _useEventListener as ab, _useFeedMessages as ac, _useFeeds as ad, useGroupInfo as ae, useHistory as af, useHistoryVersionData as ag, useHistoryVersionYjsData as ah, _useHistoryVersions as ai, _useInboxNotificationThread as aj, useInboxNotifications as ak, _useIsInsideRoom as al, useLostConnectionListener as am, useMarkAllInboxNotificationsAsRead as an, useMarkInboxNotificationAsRead as ao, useMarkThreadAsRead as ap, useMarkThreadAsResolved as aq, useMarkThreadAsUnresolved as ar, _useMutation as as, _useMyPresence as at, useNotificationSettings as au, _useOther as av, _useOthers as aw, useOthersConnectionIds as ax, _useOthersListener as ay, _useOthersMapped as az, useCreateRoomComment as b, _useAiChatsSuspense as b0, useAttachmentUrlSuspense as b1, _useFeedMessagesSuspense as b2, _useFeedsSuspense as b3, useGroupInfoSuspense as b4, _useHistoryVersionsSuspense as b5, useInboxNotificationsSuspense as b6, useNotificationSettingsSuspense as b7, _useOtherSuspense as b8, _useOthersSuspense as b9, useOthersConnectionIdsSuspense as ba, _useOthersMappedSuspense as bb, useRoomInfoSuspense as bc, _useRoomSubscriptionSettingsSuspense as bd, _useSelfSuspense as be, _useStorageSuspense as bf, _useThreadsSuspense as bg, useUnreadInboxNotificationsCountSuspense as bh, _useUrlMetadataSuspense as bi, _useUserSuspense as bj, _useUserThreadsSuspense_experimental as bk, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useHasPermissionAccess as k, useMarkRoomThreadAsRead as l, useMarkRoomThreadAsResolved as m, useMarkRoomThreadAsUnresolved as n, useMentionSuggestionsCache as o, useRemoveRoomCommentReaction as p, useReportTextEditor as q, useResolveMentionSuggestions as r, useRoomAttachmentUrl as s, useRoomPermissions as t, useAddRoomCommentReaction as u, useRoomThreadSubscription as v, useSuspendUntilPresenceReady as w, useSuspendUntilStorageReady as x, useYjsProvider as y, type RegisterAiToolProps as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseUserMeta, Client, RoomSubscriptionSettings, Json, JsonObject, LsonObject, LiveObject, User, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History,
|
|
1
|
+
import { BaseUserMeta, Client, RoomSubscriptionSettings, Json, JsonObject, LsonObject, LiveObject, User, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, ClientOptions, CommentData as CommentData$1, ThreadData as ThreadData$1, FeedCreateMetadata as FeedCreateMetadata$1, FeedUpdateMetadata as FeedUpdateMetadata$1 } from '@liveblocks/client';
|
|
2
2
|
import * as _liveblocks_core from '@liveblocks/core';
|
|
3
3
|
import { OpaqueClient, OpaqueRoom, Relax, AiAssistantContentPart, AiKnowledgeSource, AiOpaqueToolDefinition, BaseMetadata, ThreadVisibility, QueryMetadata, AsyncLoading, AsyncError, Resolve, AsyncSuccess, ThreadData, InboxNotificationData, AsyncResult, HistoryVersion, NotificationSettings, AiChat, WithNavigation, AiChatMessage, UrlMetadata, Feed, FeedMessage, CommentBody, CommentAttachment, PartialUnless, Patchable, GroupData, RoomEventMessage, CommentData, Client as Client$1, DRI, DGI, LiveblocksError, SyncStatus, ToJson, FeedFetchMetadataFilter, FeedCreateMetadata, FeedUpdateMetadata, SearchCommentsResult, PartialNotificationSettings, AiUserMessage, WithRequired, AiChatsQuery, MessageId, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, SubscriptionKey, SubscriptionData, ISignal, InboxNotificationDeleteInfo, CommentUserReaction, RoomSubscriptionSettings as RoomSubscriptionSettings$1, DerivedSignal, SubscriptionDeleteInfo, PermissionMatrix, RoomPermissions, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DefaultMap, DU, DTM, DCM, MentionData, PermissionResources, RequiredAccessLevel, TextEditorType, IYjsProvider, DP, DS, DE, DFM, DFMD } from '@liveblocks/core';
|
|
4
4
|
import { Context, ReactNode, ComponentType, PropsWithChildren } from 'react';
|
|
@@ -254,8 +254,6 @@ type GroupInfoAsyncResult = AsyncResult<DGI, "info">;
|
|
|
254
254
|
type GroupInfoAsyncSuccess = AsyncSuccess<DGI, "info">;
|
|
255
255
|
type AttachmentUrlAsyncResult = AsyncResult<string, "url">;
|
|
256
256
|
type AttachmentUrlAsyncSuccess = AsyncSuccess<string, "url">;
|
|
257
|
-
type FileUrlAsyncResult = AsyncResult<string, "url">;
|
|
258
|
-
type FileUrlAsyncSuccess = AsyncSuccess<string, "url">;
|
|
259
257
|
type GroupAsyncResult = AsyncResult<GroupData | undefined, "group">;
|
|
260
258
|
type CreateThreadOptions<TM extends BaseMetadata, CM extends BaseMetadata> = Resolve<{
|
|
261
259
|
body: CommentBody;
|
|
@@ -1121,7 +1119,6 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
1121
1119
|
* const { url, error, isLoading } = useAttachmentUrl("at_xxx");
|
|
1122
1120
|
*/
|
|
1123
1121
|
useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncResult;
|
|
1124
|
-
useFileUrl(file: LiveFile | LiveFileData | string): FileUrlAsyncResult;
|
|
1125
1122
|
/**
|
|
1126
1123
|
* (Private beta) Returns a history of versions of the current room.
|
|
1127
1124
|
*
|
|
@@ -1254,7 +1251,6 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
1254
1251
|
* const { url } = useAttachmentUrl("at_xxx");
|
|
1255
1252
|
*/
|
|
1256
1253
|
useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncSuccess;
|
|
1257
|
-
useFileUrl(file: LiveFile | LiveFileData | string): FileUrlAsyncSuccess;
|
|
1258
1254
|
}>;
|
|
1259
1255
|
}>;
|
|
1260
1256
|
/**
|
|
@@ -2701,7 +2697,6 @@ declare function useOthersConnectionIdsSuspense(): readonly number[];
|
|
|
2701
2697
|
* @private For internal use only. Do not rely on this hook.
|
|
2702
2698
|
*/
|
|
2703
2699
|
declare function useSuspendUntilStorageReady(): void;
|
|
2704
|
-
type LiveFileReference = LiveFile | LiveFileData | string;
|
|
2705
2700
|
/**
|
|
2706
2701
|
* Returns a presigned URL for an attachment by its ID.
|
|
2707
2702
|
*
|
|
@@ -2713,8 +2708,6 @@ declare function useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncResul
|
|
|
2713
2708
|
* @private For internal use only. Do not rely on this hook. Use `useAttachmentUrl` instead.
|
|
2714
2709
|
*/
|
|
2715
2710
|
declare function useRoomAttachmentUrl(attachmentId: string, roomId: string): AttachmentUrlAsyncResult;
|
|
2716
|
-
declare function useFileUrl(file: LiveFile | LiveFileData | string): FileUrlAsyncResult;
|
|
2717
|
-
declare function useRoomFileUrl(file: LiveFileReference, roomId: string): FileUrlAsyncResult;
|
|
2718
2711
|
/**
|
|
2719
2712
|
* Returns a presigned URL for an attachment by its ID.
|
|
2720
2713
|
*
|
|
@@ -2726,11 +2719,6 @@ declare function useAttachmentUrlSuspense(attachmentId: string): {
|
|
|
2726
2719
|
readonly url: string;
|
|
2727
2720
|
readonly error: undefined;
|
|
2728
2721
|
};
|
|
2729
|
-
declare function useFileUrlSuspense(file: LiveFile | LiveFileData | string): {
|
|
2730
|
-
readonly isLoading: false;
|
|
2731
|
-
readonly url: string;
|
|
2732
|
-
readonly error?: undefined;
|
|
2733
|
-
};
|
|
2734
2722
|
/**
|
|
2735
2723
|
* @private For internal use only. Do not rely on this hook.
|
|
2736
2724
|
*/
|
|
@@ -3275,4 +3263,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
3275
3263
|
*/
|
|
3276
3264
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
3277
3265
|
|
|
3278
|
-
export {
|
|
3266
|
+
export { _useCreateThread as $, type AiChatStatus as A, GlobalRoomContext as B, ClientContext as C, type UseThreadsOptions as D, createLiveblocksContext as E, createRoomContext as F, type GroupAsyncResult as G, _useAddReaction as H, _useAiChat as I, _useAiChatMessages as J, useAiChatStatus as K, LiveblocksProvider as L, type MutationContext as M, _useAiChats as N, useAttachmentUrl as O, _useBroadcastEvent as P, useCanRedo as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCanUndo as T, type UseSendAiMessageOptions as U, useClient as V, useCreateAiChat as W, _useCreateComment as X, useCreateFeed as Y, useCreateFeedMessage as Z, _RoomProvider as _, useClientOrNull as a, _useAiChatMessagesSuspense as a$, useDeleteAiChat as a0, useDeleteAllInboxNotifications as a1, useDeleteComment as a2, useDeleteFeed as a3, useDeleteFeedMessage as a4, useDeleteInboxNotification as a5, _useDeleteThread as a6, _useEditComment as a7, _useEditCommentMetadata as a8, _useEditThreadMetadata as a9, useRedo as aA, useRemoveReaction as aB, _useRoom as aC, useRoomInfo as aD, _useRoomSubscriptionSettings as aE, _useSearchComments as aF, _useSelf as aG, useSendAiMessage as aH, useStatus as aI, _useStorage as aJ, _useStorageRoot as aK, useSubscribeToThread as aL, useSyncStatus as aM, useThreadSubscription as aN, _useThreads as aO, useUndo as aP, useUnreadInboxNotificationsCount as aQ, useUnsubscribeFromThread as aR, useUpdateFeedMessage as aS, useUpdateFeedMetadata as aT, _useUpdateMyPresence as aU, useUpdateNotificationSettings as aV, useUpdateRoomSubscriptionSettings as aW, _useUrlMetadata as aX, _useUser as aY, _useUserThreads_experimental as aZ, _useAiChatSuspense as a_, useErrorListener as aa, _useEventListener as ab, _useFeedMessages as ac, _useFeeds as ad, useGroupInfo as ae, useHistory as af, useHistoryVersionData as ag, useHistoryVersionYjsData as ah, _useHistoryVersions as ai, _useInboxNotificationThread as aj, useInboxNotifications as ak, _useIsInsideRoom as al, useLostConnectionListener as am, useMarkAllInboxNotificationsAsRead as an, useMarkInboxNotificationAsRead as ao, useMarkThreadAsRead as ap, useMarkThreadAsResolved as aq, useMarkThreadAsUnresolved as ar, _useMutation as as, _useMyPresence as at, useNotificationSettings as au, _useOther as av, _useOthers as aw, useOthersConnectionIds as ax, _useOthersListener as ay, _useOthersMapped as az, useCreateRoomComment as b, _useAiChatsSuspense as b0, useAttachmentUrlSuspense as b1, _useFeedMessagesSuspense as b2, _useFeedsSuspense as b3, useGroupInfoSuspense as b4, _useHistoryVersionsSuspense as b5, useInboxNotificationsSuspense as b6, useNotificationSettingsSuspense as b7, _useOtherSuspense as b8, _useOthersSuspense as b9, useOthersConnectionIdsSuspense as ba, _useOthersMappedSuspense as bb, useRoomInfoSuspense as bc, _useRoomSubscriptionSettingsSuspense as bd, _useSelfSuspense as be, _useStorageSuspense as bf, _useThreadsSuspense as bg, useUnreadInboxNotificationsCountSuspense as bh, _useUrlMetadataSuspense as bi, _useUserSuspense as bj, _useUserThreadsSuspense_experimental as bk, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useHasPermissionAccess as k, useMarkRoomThreadAsRead as l, useMarkRoomThreadAsResolved as m, useMarkRoomThreadAsUnresolved as n, useMentionSuggestionsCache as o, useRemoveRoomCommentReaction as p, useReportTextEditor as q, useResolveMentionSuggestions as r, useRoomAttachmentUrl as s, useRoomPermissions as t, useAddRoomCommentReaction as u, useRoomThreadSubscription as v, useSuspendUntilPresenceReady as w, useSuspendUntilStorageReady as x, useYjsProvider as y, type RegisterAiToolProps as z };
|
package/dist/suspense.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkEEEE2AWIcjs = require('./chunk-EEEE2AWI.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -85,14 +85,12 @@ var _chunkNDJ7FOCQcjs = require('./chunk-NDJ7FOCQ.cjs');
|
|
|
85
85
|
|
|
86
86
|
|
|
87
87
|
|
|
88
|
-
|
|
89
|
-
var _chunkTWH7P3HKcjs = require('./chunk-TWH7P3HK.cjs');
|
|
88
|
+
var _chunkX6E4Y65Ycjs = require('./chunk-X6E4Y65Y.cjs');
|
|
90
89
|
|
|
91
90
|
// src/suspense.ts
|
|
92
91
|
var _core = require('@liveblocks/core');
|
|
93
92
|
var _client = require('@liveblocks/client');
|
|
94
|
-
_core.detectDupes.call(void 0,
|
|
95
|
-
|
|
93
|
+
_core.detectDupes.call(void 0, _chunkEEEE2AWIcjs.PKG_NAME, _chunkEEEE2AWIcjs.PKG_VERSION, _chunkEEEE2AWIcjs.PKG_FORMAT);
|
|
96
94
|
|
|
97
95
|
|
|
98
96
|
|
|
@@ -177,5 +175,5 @@ _core.detectDupes.call(void 0, _chunkNDJ7FOCQcjs.PKG_NAME, _chunkNDJ7FOCQcjs.PKG
|
|
|
177
175
|
|
|
178
176
|
|
|
179
177
|
|
|
180
|
-
exports.ClientContext =
|
|
178
|
+
exports.ClientContext = _chunkX6E4Y65Ycjs.ClientContext; exports.ClientSideSuspense = _chunkEEEE2AWIcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkX6E4Y65Ycjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkX6E4Y65Ycjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkX6E4Y65Ycjs.RegisterAiTool; exports.RoomContext = _chunkX6E4Y65Ycjs.GlobalRoomContext; exports.RoomProvider = _chunkX6E4Y65Ycjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkX6E4Y65Ycjs._useAddReaction; exports.useAiChat = _chunkX6E4Y65Ycjs._useAiChatSuspense; exports.useAiChatMessages = _chunkX6E4Y65Ycjs._useAiChatMessagesSuspense; exports.useAiChatStatus = _chunkX6E4Y65Ycjs.useAiChatStatus; exports.useAiChats = _chunkX6E4Y65Ycjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunkX6E4Y65Ycjs.useAttachmentUrlSuspense; exports.useBroadcastEvent = _chunkX6E4Y65Ycjs._useBroadcastEvent; exports.useCanRedo = _chunkX6E4Y65Ycjs.useCanRedo; exports.useCanUndo = _chunkX6E4Y65Ycjs.useCanUndo; exports.useClient = _chunkX6E4Y65Ycjs.useClient; exports.useCreateAiChat = _chunkX6E4Y65Ycjs.useCreateAiChat; exports.useCreateComment = _chunkX6E4Y65Ycjs._useCreateComment; exports.useCreateFeed = _chunkX6E4Y65Ycjs.useCreateFeed; exports.useCreateFeedMessage = _chunkX6E4Y65Ycjs.useCreateFeedMessage; exports.useCreateThread = _chunkX6E4Y65Ycjs._useCreateThread; exports.useDeleteAiChat = _chunkX6E4Y65Ycjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkX6E4Y65Ycjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkX6E4Y65Ycjs.useDeleteComment; exports.useDeleteFeed = _chunkX6E4Y65Ycjs.useDeleteFeed; exports.useDeleteFeedMessage = _chunkX6E4Y65Ycjs.useDeleteFeedMessage; exports.useDeleteInboxNotification = _chunkX6E4Y65Ycjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkX6E4Y65Ycjs._useDeleteThread; exports.useEditComment = _chunkX6E4Y65Ycjs._useEditComment; exports.useEditCommentMetadata = _chunkX6E4Y65Ycjs._useEditCommentMetadata; exports.useEditThreadMetadata = _chunkX6E4Y65Ycjs._useEditThreadMetadata; exports.useErrorListener = _chunkX6E4Y65Ycjs.useErrorListener; exports.useEventListener = _chunkX6E4Y65Ycjs._useEventListener; exports.useFeedMessages = _chunkX6E4Y65Ycjs._useFeedMessagesSuspense; exports.useFeeds = _chunkX6E4Y65Ycjs._useFeedsSuspense; exports.useGroupInfo = _chunkX6E4Y65Ycjs.useGroupInfoSuspense; exports.useHistory = _chunkX6E4Y65Ycjs.useHistory; exports.useHistoryVersions = _chunkX6E4Y65Ycjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkX6E4Y65Ycjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkX6E4Y65Ycjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkX6E4Y65Ycjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkX6E4Y65Ycjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkX6E4Y65Ycjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkX6E4Y65Ycjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkX6E4Y65Ycjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkX6E4Y65Ycjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkX6E4Y65Ycjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkX6E4Y65Ycjs._useMutation; exports.useMyPresence = _chunkX6E4Y65Ycjs._useMyPresence; exports.useNotificationSettings = _chunkX6E4Y65Ycjs.useNotificationSettingsSuspense; exports.useOther = _chunkX6E4Y65Ycjs._useOtherSuspense; exports.useOthers = _chunkX6E4Y65Ycjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkX6E4Y65Ycjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkX6E4Y65Ycjs._useOthersListener; exports.useOthersMapped = _chunkX6E4Y65Ycjs._useOthersMappedSuspense; exports.useRedo = _chunkX6E4Y65Ycjs.useRedo; exports.useRemoveReaction = _chunkX6E4Y65Ycjs.useRemoveReaction; exports.useRoom = _chunkX6E4Y65Ycjs._useRoom; exports.useRoomInfo = _chunkX6E4Y65Ycjs.useRoomInfoSuspense; exports.useRoomSubscriptionSettings = _chunkX6E4Y65Ycjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunkX6E4Y65Ycjs._useSelfSuspense; exports.useSendAiMessage = _chunkX6E4Y65Ycjs.useSendAiMessage; exports.useStatus = _chunkX6E4Y65Ycjs.useStatus; exports.useStorage = _chunkX6E4Y65Ycjs._useStorageSuspense; exports.useStorageRoot = _chunkX6E4Y65Ycjs._useStorageRoot; exports.useSubscribeToThread = _chunkX6E4Y65Ycjs.useSubscribeToThread; exports.useSyncStatus = _chunkX6E4Y65Ycjs.useSyncStatus; exports.useThreadSubscription = _chunkX6E4Y65Ycjs.useThreadSubscription; exports.useThreads = _chunkX6E4Y65Ycjs._useThreadsSuspense; exports.useUndo = _chunkX6E4Y65Ycjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkX6E4Y65Ycjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunkX6E4Y65Ycjs.useUnsubscribeFromThread; exports.useUpdateFeedMessage = _chunkX6E4Y65Ycjs.useUpdateFeedMessage; exports.useUpdateFeedMetadata = _chunkX6E4Y65Ycjs.useUpdateFeedMetadata; exports.useUpdateMyPresence = _chunkX6E4Y65Ycjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkX6E4Y65Ycjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkX6E4Y65Ycjs.useUpdateRoomSubscriptionSettings; exports.useUrlMetadata = _chunkX6E4Y65Ycjs._useUrlMetadataSuspense; exports.useUser = _chunkX6E4Y65Ycjs._useUserSuspense; exports.useUserThreads_experimental = _chunkX6E4Y65Ycjs._useUserThreadsSuspense_experimental;
|
|
181
179
|
//# sourceMappingURL=suspense.cjs.map
|
package/dist/suspense.cjs.map
CHANGED
|
@@ -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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;ACxFA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADyF7C;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,s7KAAC","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 UseSendAiMessageOptions,\n UseThreadsOptions,\n SendAiMessageOptions,\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 {\n ClientContext,\n GlobalRoomContext as RoomContext,\n useClient,\n} from \"./contexts\";\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} 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 useCreateFeed,\n useCreateFeedMessage,\n useCreateThread,\n useDeleteComment,\n useDeleteFeed,\n useDeleteFeedMessage,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useEditCommentMetadata,\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 useUpdateFeedMetadata,\n useUpdateFeedMessage,\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 useFeedsSuspense as useFeeds,\n useFeedMessagesSuspense as useFeedMessages,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useNotificationSettingsSuspense as useNotificationSettings,\n useRoomInfoSuspense as useRoomInfo,\n useGroupInfoSuspense as useGroupInfo,\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 useAiChatStatus,\n useUrlMetadataSuspense as useUrlMetadata,\n} from \"./liveblocks\";\n"]}
|
package/dist/suspense.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ClientSideSuspense, RegisterAiKnowledge, RegisterAiTool } from './index.cjs';
|
|
2
|
-
export {
|
|
2
|
+
export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, z as RegisterAiToolProps, B as RoomContext, _ as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, D as UseThreadsOptions, H as useAddReaction, a_ as useAiChat, a$ as useAiChatMessages, K as useAiChatStatus, b0 as useAiChats, b1 as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, V as useClient, W as useCreateAiChat, X as useCreateComment, Y as useCreateFeed, Z as useCreateFeedMessage, $ as useCreateThread, a0 as useDeleteAiChat, a1 as useDeleteAllInboxNotifications, a2 as useDeleteComment, a3 as useDeleteFeed, a4 as useDeleteFeedMessage, a5 as useDeleteInboxNotification, a6 as useDeleteThread, a7 as useEditComment, a8 as useEditCommentMetadata, a9 as useEditThreadMetadata, aa as useErrorListener, ab as useEventListener, b2 as useFeedMessages, b3 as useFeeds, b4 as useGroupInfo, af as useHistory, b5 as useHistoryVersions, aj as useInboxNotificationThread, b6 as useInboxNotifications, al as useIsInsideRoom, am as useLostConnectionListener, an as useMarkAllInboxNotificationsAsRead, ao as useMarkInboxNotificationAsRead, ap as useMarkThreadAsRead, aq as useMarkThreadAsResolved, ar as useMarkThreadAsUnresolved, as as useMutation, at as useMyPresence, b7 as useNotificationSettings, b8 as useOther, b9 as useOthers, ba as useOthersConnectionIds, ay as useOthersListener, bb as useOthersMapped, aA as useRedo, aB as useRemoveReaction, aC as useRoom, bc as useRoomInfo, bd as useRoomSubscriptionSettings, be as useSelf, aH as useSendAiMessage, aI as useStatus, bf as useStorage, aK as useStorageRoot, aL as useSubscribeToThread, aM as useSyncStatus, aN as useThreadSubscription, bg as useThreads, aP as useUndo, bh as useUnreadInboxNotificationsCount, aR as useUnsubscribeFromThread, aS as useUpdateFeedMessage, aT as useUpdateFeedMetadata, aU as useUpdateMyPresence, aV as useUpdateNotificationSettings, aW as useUpdateRoomSubscriptionSettings, bi as useUrlMetadata, bj as useUser, bk as useUserThreads_experimental } from './room-C5ak1P_z.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 {
|
|
2
|
+
export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, z as RegisterAiToolProps, B as RoomContext, _ as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, D as UseThreadsOptions, H as useAddReaction, a_ as useAiChat, a$ as useAiChatMessages, K as useAiChatStatus, b0 as useAiChats, b1 as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, V as useClient, W as useCreateAiChat, X as useCreateComment, Y as useCreateFeed, Z as useCreateFeedMessage, $ as useCreateThread, a0 as useDeleteAiChat, a1 as useDeleteAllInboxNotifications, a2 as useDeleteComment, a3 as useDeleteFeed, a4 as useDeleteFeedMessage, a5 as useDeleteInboxNotification, a6 as useDeleteThread, a7 as useEditComment, a8 as useEditCommentMetadata, a9 as useEditThreadMetadata, aa as useErrorListener, ab as useEventListener, b2 as useFeedMessages, b3 as useFeeds, b4 as useGroupInfo, af as useHistory, b5 as useHistoryVersions, aj as useInboxNotificationThread, b6 as useInboxNotifications, al as useIsInsideRoom, am as useLostConnectionListener, an as useMarkAllInboxNotificationsAsRead, ao as useMarkInboxNotificationAsRead, ap as useMarkThreadAsRead, aq as useMarkThreadAsResolved, ar as useMarkThreadAsUnresolved, as as useMutation, at as useMyPresence, b7 as useNotificationSettings, b8 as useOther, b9 as useOthers, ba as useOthersConnectionIds, ay as useOthersListener, bb as useOthersMapped, aA as useRedo, aB as useRemoveReaction, aC as useRoom, bc as useRoomInfo, bd as useRoomSubscriptionSettings, be as useSelf, aH as useSendAiMessage, aI as useStatus, bf as useStorage, aK as useStorageRoot, aL as useSubscribeToThread, aM as useSyncStatus, aN as useThreadSubscription, bg as useThreads, aP as useUndo, bh as useUnreadInboxNotificationsCount, aR as useUnsubscribeFromThread, aS as useUpdateFeedMessage, aT as useUpdateFeedMetadata, aU as useUpdateMyPresence, aV as useUpdateNotificationSettings, aW as useUpdateRoomSubscriptionSettings, bi as useUrlMetadata, bj as useUser, bk as useUserThreads_experimental } from './room-C5ak1P_z.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-YJ3VWMRC.js";
|
|
7
7
|
import {
|
|
8
8
|
ClientContext,
|
|
9
9
|
GlobalRoomContext,
|
|
@@ -59,7 +59,6 @@ import {
|
|
|
59
59
|
useDeleteFeedMessage,
|
|
60
60
|
useDeleteInboxNotification,
|
|
61
61
|
useErrorListener,
|
|
62
|
-
useFileUrlSuspense,
|
|
63
62
|
useGroupInfoSuspense,
|
|
64
63
|
useHistory,
|
|
65
64
|
useInboxNotificationsSuspense,
|
|
@@ -86,7 +85,7 @@ import {
|
|
|
86
85
|
useUpdateFeedMetadata,
|
|
87
86
|
useUpdateNotificationSettings,
|
|
88
87
|
useUpdateRoomSubscriptionSettings
|
|
89
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-BTNBUDWN.js";
|
|
90
89
|
|
|
91
90
|
// src/suspense.ts
|
|
92
91
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -131,7 +130,6 @@ export {
|
|
|
131
130
|
_useEventListener as useEventListener,
|
|
132
131
|
_useFeedMessagesSuspense as useFeedMessages,
|
|
133
132
|
_useFeedsSuspense as useFeeds,
|
|
134
|
-
useFileUrlSuspense as useFileUrl,
|
|
135
133
|
useGroupInfoSuspense as useGroupInfo,
|
|
136
134
|
useHistory,
|
|
137
135
|
_useHistoryVersionsSuspense as useHistoryVersions,
|
package/dist/suspense.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/suspense.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseSendAiMessageOptions,\n UseThreadsOptions,\n SendAiMessageOptions,\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 {\n ClientContext,\n GlobalRoomContext as RoomContext,\n useClient,\n} from \"./contexts\";\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} 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 useCreateFeed,\n useCreateFeedMessage,\n useCreateThread,\n useDeleteComment,\n useDeleteFeed,\n useDeleteFeedMessage,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useEditCommentMetadata,\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 useUpdateFeedMetadata,\n useUpdateFeedMessage,\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
|
|
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 UseSendAiMessageOptions,\n UseThreadsOptions,\n SendAiMessageOptions,\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 {\n ClientContext,\n GlobalRoomContext as RoomContext,\n useClient,\n} from \"./contexts\";\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} 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 useCreateFeed,\n useCreateFeedMessage,\n useCreateThread,\n useDeleteComment,\n useDeleteFeed,\n useDeleteFeedMessage,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useEditCommentMetadata,\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 useUpdateFeedMetadata,\n useUpdateFeedMessage,\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 useFeedsSuspense as useFeeds,\n useFeedMessagesSuspense as useFeedMessages,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useNotificationSettingsSuspense as useNotificationSettings,\n useRoomInfoSuspense as useRoomInfo,\n useGroupInfoSuspense as useGroupInfo,\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 useAiChatStatus,\n useUrlMetadataSuspense as useUrlMetadata,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAe5B,SAAS,SAAS,oCAAoC;AAZtD,YAAY,UAAU,aAAa,UAAU;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liveblocks/react",
|
|
3
|
-
"version": "3.22.0-
|
|
3
|
+
"version": "3.22.0-rc1",
|
|
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
|
"author": "Liveblocks Inc.",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"README.md"
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@liveblocks/
|
|
53
|
-
"@liveblocks/
|
|
52
|
+
"@liveblocks/client": "3.22.0-rc1",
|
|
53
|
+
"@liveblocks/core": "3.22.0-rc1"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@types/react": "^18 || ^19",
|