@liveblocks/react 3.22.0-file1 → 3.22.0
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-CMU4CSPN.js → chunk-AIWIX5H4.js} +2 -2
- package/dist/{chunk-NDJ7FOCQ.cjs → chunk-DAXUX747.cjs} +2 -2
- package/dist/{chunk-NDJ7FOCQ.cjs.map → chunk-DAXUX747.cjs.map} +1 -1
- package/dist/{chunk-L4ZABYCR.js → chunk-HJZWAVCC.js} +81 -89
- package/dist/chunk-HJZWAVCC.js.map +1 -0
- package/dist/{chunk-TWH7P3HK.cjs → chunk-IMWZEHKF.cjs} +81 -89
- package/dist/chunk-IMWZEHKF.cjs.map +1 -0
- package/dist/index.cjs +8 -4
- 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 +8 -4
- package/dist/index.js.map +1 -1
- package/dist/{room-C0arh8HO.d.cts → room-Qo6boT5Q.d.cts} +52 -14
- package/dist/{room-C0arh8HO.d.ts → room-Qo6boT5Q.d.ts} +52 -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-AIWIX5H4.js.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkDAXUX747cjs = require('./chunk-DAXUX747.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -91,12 +91,16 @@ var _chunkNDJ7FOCQcjs = require('./chunk-NDJ7FOCQ.cjs');
|
|
|
91
91
|
|
|
92
92
|
|
|
93
93
|
|
|
94
|
-
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
var _chunkIMWZEHKFcjs = require('./chunk-IMWZEHKF.cjs');
|
|
95
97
|
|
|
96
98
|
// src/index.ts
|
|
97
99
|
var _core = require('@liveblocks/core');
|
|
98
100
|
var _client = require('@liveblocks/client');
|
|
99
|
-
_core.detectDupes.call(void 0,
|
|
101
|
+
_core.detectDupes.call(void 0, _chunkDAXUX747cjs.PKG_NAME, _chunkDAXUX747cjs.PKG_VERSION, _chunkDAXUX747cjs.PKG_FORMAT);
|
|
102
|
+
|
|
103
|
+
|
|
100
104
|
|
|
101
105
|
|
|
102
106
|
|
|
@@ -187,5 +191,5 @@ _core.detectDupes.call(void 0, _chunkNDJ7FOCQcjs.PKG_NAME, _chunkNDJ7FOCQcjs.PKG
|
|
|
187
191
|
|
|
188
192
|
|
|
189
193
|
|
|
190
|
-
exports.ClientContext =
|
|
194
|
+
exports.ClientContext = _chunkIMWZEHKFcjs.ClientContext; exports.ClientSideSuspense = _chunkDAXUX747cjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkIMWZEHKFcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkIMWZEHKFcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkIMWZEHKFcjs.RegisterAiTool; exports.RoomContext = _chunkIMWZEHKFcjs.GlobalRoomContext; exports.RoomProvider = _chunkIMWZEHKFcjs._RoomProvider; exports.createLiveblocksContext = _chunkIMWZEHKFcjs.createLiveblocksContext; exports.createRoomContext = _chunkIMWZEHKFcjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkIMWZEHKFcjs._useAddReaction; exports.useAiChat = _chunkIMWZEHKFcjs._useAiChat; exports.useAiChatMessages = _chunkIMWZEHKFcjs._useAiChatMessages; exports.useAiChatStatus = _chunkIMWZEHKFcjs.useAiChatStatus; exports.useAiChats = _chunkIMWZEHKFcjs._useAiChats; exports.useAttachmentUrl = _chunkIMWZEHKFcjs.useAttachmentUrl; exports.useBroadcastEvent = _chunkIMWZEHKFcjs._useBroadcastEvent; exports.useCanRedo = _chunkIMWZEHKFcjs.useCanRedo; exports.useCanUndo = _chunkIMWZEHKFcjs.useCanUndo; exports.useClient = _chunkIMWZEHKFcjs.useClient; exports.useCreateAiChat = _chunkIMWZEHKFcjs.useCreateAiChat; exports.useCreateComment = _chunkIMWZEHKFcjs._useCreateComment; exports.useCreateFeed = _chunkIMWZEHKFcjs.useCreateFeed; exports.useCreateFeedMessage = _chunkIMWZEHKFcjs.useCreateFeedMessage; exports.useCreateThread = _chunkIMWZEHKFcjs._useCreateThread; exports.useDeleteAiChat = _chunkIMWZEHKFcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkIMWZEHKFcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkIMWZEHKFcjs.useDeleteComment; exports.useDeleteFeed = _chunkIMWZEHKFcjs.useDeleteFeed; exports.useDeleteFeedMessage = _chunkIMWZEHKFcjs.useDeleteFeedMessage; exports.useDeleteHistoryVersion = _chunkIMWZEHKFcjs.useDeleteHistoryVersion; exports.useDeleteInboxNotification = _chunkIMWZEHKFcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkIMWZEHKFcjs._useDeleteThread; exports.useEditComment = _chunkIMWZEHKFcjs._useEditComment; exports.useEditCommentMetadata = _chunkIMWZEHKFcjs._useEditCommentMetadata; exports.useEditThreadMetadata = _chunkIMWZEHKFcjs._useEditThreadMetadata; exports.useErrorListener = _chunkIMWZEHKFcjs.useErrorListener; exports.useEventListener = _chunkIMWZEHKFcjs._useEventListener; exports.useFeedMessages = _chunkIMWZEHKFcjs._useFeedMessages; exports.useFeeds = _chunkIMWZEHKFcjs._useFeeds; exports.useGroupInfo = _chunkIMWZEHKFcjs.useGroupInfo; exports.useHistory = _chunkIMWZEHKFcjs.useHistory; exports.useHistoryVersionData = _chunkIMWZEHKFcjs.useHistoryVersionData; exports.useHistoryVersionStorageData = _chunkIMWZEHKFcjs.useHistoryVersionStorageData; exports.useHistoryVersionYjsData = _chunkIMWZEHKFcjs.useHistoryVersionYjsData; exports.useHistoryVersions = _chunkIMWZEHKFcjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkIMWZEHKFcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkIMWZEHKFcjs.useInboxNotifications; exports.useIsInsideRoom = _chunkIMWZEHKFcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkIMWZEHKFcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkIMWZEHKFcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkIMWZEHKFcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkIMWZEHKFcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkIMWZEHKFcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkIMWZEHKFcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkIMWZEHKFcjs._useMutation; exports.useMyPresence = _chunkIMWZEHKFcjs._useMyPresence; exports.useNotificationSettings = _chunkIMWZEHKFcjs.useNotificationSettings; exports.useOther = _chunkIMWZEHKFcjs._useOther; exports.useOthers = _chunkIMWZEHKFcjs._useOthers; exports.useOthersConnectionIds = _chunkIMWZEHKFcjs.useOthersConnectionIds; exports.useOthersListener = _chunkIMWZEHKFcjs._useOthersListener; exports.useOthersMapped = _chunkIMWZEHKFcjs._useOthersMapped; exports.useRedo = _chunkIMWZEHKFcjs.useRedo; exports.useRemoveReaction = _chunkIMWZEHKFcjs.useRemoveReaction; exports.useRestoreToStorageVersion = _chunkIMWZEHKFcjs.useRestoreToStorageVersion; exports.useRoom = _chunkIMWZEHKFcjs._useRoom; exports.useRoomInfo = _chunkIMWZEHKFcjs.useRoomInfo; exports.useRoomSubscriptionSettings = _chunkIMWZEHKFcjs._useRoomSubscriptionSettings; exports.useSearchComments = _chunkIMWZEHKFcjs._useSearchComments; exports.useSelf = _chunkIMWZEHKFcjs._useSelf; exports.useSendAiMessage = _chunkIMWZEHKFcjs.useSendAiMessage; exports.useStatus = _chunkIMWZEHKFcjs.useStatus; exports.useStorage = _chunkIMWZEHKFcjs._useStorage; exports.useStorageRoot = _chunkIMWZEHKFcjs._useStorageRoot; exports.useSubscribeToThread = _chunkIMWZEHKFcjs.useSubscribeToThread; exports.useSyncStatus = _chunkIMWZEHKFcjs.useSyncStatus; exports.useThreadSubscription = _chunkIMWZEHKFcjs.useThreadSubscription; exports.useThreads = _chunkIMWZEHKFcjs._useThreads; exports.useUndo = _chunkIMWZEHKFcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkIMWZEHKFcjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunkIMWZEHKFcjs.useUnsubscribeFromThread; exports.useUpdateFeedMessage = _chunkIMWZEHKFcjs.useUpdateFeedMessage; exports.useUpdateFeedMetadata = _chunkIMWZEHKFcjs.useUpdateFeedMetadata; exports.useUpdateMyPresence = _chunkIMWZEHKFcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkIMWZEHKFcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkIMWZEHKFcjs.useUpdateRoomSubscriptionSettings; exports.useUrlMetadata = _chunkIMWZEHKFcjs._useUrlMetadata; exports.useUser = _chunkIMWZEHKFcjs._useUser; exports.useUserThreads_experimental = _chunkIMWZEHKFcjs._useUserThreads_experimental;
|
|
191
195
|
//# 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;AACA;AACF,wDAA6B;AAC7B;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;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;AChGA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADiG7C;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;AACA;AACA;AACA;AACF,61LAAC","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 useHistoryVersionStorageData,\n useHistoryVersionYjsData,\n useDeleteHistoryVersion,\n useRestoreToStorageVersion,\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-Qo6boT5Q.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 useDeleteHistoryVersion, a6 as useDeleteInboxNotification, a7 as useDeleteThread, a8 as useEditComment, a9 as useEditCommentMetadata, aa as useEditThreadMetadata, ab as useErrorListener, ac as useEventListener, ad as useFeedMessages, ae as useFeeds, af as useGroupInfo, ag as useHistory, ah as useHistoryVersionData, ai as useHistoryVersionStorageData, aj as useHistoryVersionYjsData, ak as useHistoryVersions, al as useInboxNotificationThread, am as useInboxNotifications, an as useIsInsideRoom, ao as useLostConnectionListener, ap as useMarkAllInboxNotificationsAsRead, aq as useMarkInboxNotificationAsRead, ar as useMarkThreadAsRead, as as useMarkThreadAsResolved, at as useMarkThreadAsUnresolved, au as useMutation, av as useMyPresence, aw as useNotificationSettings, ax as useOther, ay as useOthers, az as useOthersConnectionIds, aA as useOthersListener, aB as useOthersMapped, aC as useRedo, aD as useRemoveReaction, aE as useRestoreToStorageVersion, aF as useRoom, aG as useRoomInfo, aH as useRoomSubscriptionSettings, aI as useSearchComments, aJ as useSelf, aK as useSendAiMessage, aL as useStatus, aM as useStorage, aN as useStorageRoot, aO as useSubscribeToThread, aP as useSyncStatus, aQ as useThreadSubscription, aR as useThreads, aS as useUndo, aT as useUnreadInboxNotificationsCount, aU as useUnsubscribeFromThread, aV as useUpdateFeedMessage, aW as useUpdateFeedMetadata, aX as useUpdateMyPresence, aY as useUpdateNotificationSettings, aZ as useUpdateRoomSubscriptionSettings, a_ as useUrlMetadata, a$ as useUser, b0 as useUserThreads_experimental } from './room-Qo6boT5Q.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-Qo6boT5Q.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 useDeleteHistoryVersion, a6 as useDeleteInboxNotification, a7 as useDeleteThread, a8 as useEditComment, a9 as useEditCommentMetadata, aa as useEditThreadMetadata, ab as useErrorListener, ac as useEventListener, ad as useFeedMessages, ae as useFeeds, af as useGroupInfo, ag as useHistory, ah as useHistoryVersionData, ai as useHistoryVersionStorageData, aj as useHistoryVersionYjsData, ak as useHistoryVersions, al as useInboxNotificationThread, am as useInboxNotifications, an as useIsInsideRoom, ao as useLostConnectionListener, ap as useMarkAllInboxNotificationsAsRead, aq as useMarkInboxNotificationAsRead, ar as useMarkThreadAsRead, as as useMarkThreadAsResolved, at as useMarkThreadAsUnresolved, au as useMutation, av as useMyPresence, aw as useNotificationSettings, ax as useOther, ay as useOthers, az as useOthersConnectionIds, aA as useOthersListener, aB as useOthersMapped, aC as useRedo, aD as useRemoveReaction, aE as useRestoreToStorageVersion, aF as useRoom, aG as useRoomInfo, aH as useRoomSubscriptionSettings, aI as useSearchComments, aJ as useSelf, aK as useSendAiMessage, aL as useStatus, aM as useStorage, aN as useStorageRoot, aO as useSubscribeToThread, aP as useSyncStatus, aQ as useThreadSubscription, aR as useThreads, aS as useUndo, aT as useUnreadInboxNotificationsCount, aU as useUnsubscribeFromThread, aV as useUpdateFeedMessage, aW as useUpdateFeedMetadata, aX as useUpdateMyPresence, aY as useUpdateNotificationSettings, aZ as useUpdateRoomSubscriptionSettings, a_ as useUrlMetadata, a$ as useUser, b0 as useUserThreads_experimental } from './room-Qo6boT5Q.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-AIWIX5H4.js";
|
|
7
7
|
import {
|
|
8
8
|
ClientContext,
|
|
9
9
|
GlobalRoomContext,
|
|
@@ -60,12 +60,13 @@ import {
|
|
|
60
60
|
useDeleteComment,
|
|
61
61
|
useDeleteFeed,
|
|
62
62
|
useDeleteFeedMessage,
|
|
63
|
+
useDeleteHistoryVersion,
|
|
63
64
|
useDeleteInboxNotification,
|
|
64
65
|
useErrorListener,
|
|
65
|
-
useFileUrl,
|
|
66
66
|
useGroupInfo,
|
|
67
67
|
useHistory,
|
|
68
68
|
useHistoryVersionData,
|
|
69
|
+
useHistoryVersionStorageData,
|
|
69
70
|
useHistoryVersionYjsData,
|
|
70
71
|
useInboxNotifications,
|
|
71
72
|
useLostConnectionListener,
|
|
@@ -78,6 +79,7 @@ import {
|
|
|
78
79
|
useOthersConnectionIds,
|
|
79
80
|
useRedo,
|
|
80
81
|
useRemoveReaction,
|
|
82
|
+
useRestoreToStorageVersion,
|
|
81
83
|
useRoomInfo,
|
|
82
84
|
useSendAiMessage,
|
|
83
85
|
useStatus,
|
|
@@ -91,7 +93,7 @@ import {
|
|
|
91
93
|
useUpdateFeedMetadata,
|
|
92
94
|
useUpdateNotificationSettings,
|
|
93
95
|
useUpdateRoomSubscriptionSettings
|
|
94
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-HJZWAVCC.js";
|
|
95
97
|
|
|
96
98
|
// src/index.ts
|
|
97
99
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -129,6 +131,7 @@ export {
|
|
|
129
131
|
useDeleteComment,
|
|
130
132
|
useDeleteFeed,
|
|
131
133
|
useDeleteFeedMessage,
|
|
134
|
+
useDeleteHistoryVersion,
|
|
132
135
|
useDeleteInboxNotification,
|
|
133
136
|
_useDeleteThread as useDeleteThread,
|
|
134
137
|
_useEditComment as useEditComment,
|
|
@@ -138,10 +141,10 @@ export {
|
|
|
138
141
|
_useEventListener as useEventListener,
|
|
139
142
|
_useFeedMessages as useFeedMessages,
|
|
140
143
|
_useFeeds as useFeeds,
|
|
141
|
-
useFileUrl,
|
|
142
144
|
useGroupInfo,
|
|
143
145
|
useHistory,
|
|
144
146
|
useHistoryVersionData,
|
|
147
|
+
useHistoryVersionStorageData,
|
|
145
148
|
useHistoryVersionYjsData,
|
|
146
149
|
_useHistoryVersions as useHistoryVersions,
|
|
147
150
|
_useInboxNotificationThread as useInboxNotificationThread,
|
|
@@ -163,6 +166,7 @@ export {
|
|
|
163
166
|
_useOthersMapped as useOthersMapped,
|
|
164
167
|
useRedo,
|
|
165
168
|
useRemoveReaction,
|
|
169
|
+
useRestoreToStorageVersion,
|
|
166
170
|
_useRoom as useRoom,
|
|
167
171
|
useRoomInfo,
|
|
168
172
|
_useRoomSubscriptionSettings as useRoomSubscriptionSettings,
|
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 useHistoryVersionStorageData,\n useHistoryVersionYjsData,\n useDeleteHistoryVersion,\n useRestoreToStorageVersion,\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;
|
|
@@ -320,6 +318,7 @@ type UnreadInboxNotificationsCountAsyncResult = AsyncResult<number, "count">;
|
|
|
320
318
|
type NotificationSettingsAsyncResult = AsyncResult<NotificationSettings, "settings">;
|
|
321
319
|
type RoomSubscriptionSettingsAsyncSuccess = AsyncSuccess<RoomSubscriptionSettings, "settings">;
|
|
322
320
|
type RoomSubscriptionSettingsAsyncResult = AsyncResult<RoomSubscriptionSettings, "settings">;
|
|
321
|
+
type HistoryVersionStorageDataAsyncResult = AsyncResult<LiveObject<LsonObject>>;
|
|
323
322
|
type HistoryVersionYjsDataAsyncResult = AsyncResult<Uint8Array>;
|
|
324
323
|
type HistoryVersionsAsyncSuccess = AsyncSuccess<HistoryVersion[], "versions">;
|
|
325
324
|
type HistoryVersionsAsyncResult = AsyncResult<HistoryVersion[], "versions">;
|
|
@@ -1121,7 +1120,6 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
1121
1120
|
* const { url, error, isLoading } = useAttachmentUrl("at_xxx");
|
|
1122
1121
|
*/
|
|
1123
1122
|
useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncResult;
|
|
1124
|
-
useFileUrl(file: LiveFile | LiveFileData | string): FileUrlAsyncResult;
|
|
1125
1123
|
/**
|
|
1126
1124
|
* (Private beta) Returns a history of versions of the current room.
|
|
1127
1125
|
*
|
|
@@ -1129,6 +1127,13 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
1129
1127
|
* const { versions, error, isLoading } = useHistoryVersions();
|
|
1130
1128
|
*/
|
|
1131
1129
|
useHistoryVersions(): HistoryVersionsAsyncResult;
|
|
1130
|
+
/**
|
|
1131
|
+
* Returns the Storage data for a given version of the room.
|
|
1132
|
+
*
|
|
1133
|
+
* @example
|
|
1134
|
+
* const { data, error, isLoading } = useHistoryVersionStorageData(version.id);
|
|
1135
|
+
*/
|
|
1136
|
+
useHistoryVersionStorageData(id: string): HistoryVersionStorageDataAsyncResult;
|
|
1132
1137
|
/**
|
|
1133
1138
|
* Returns the Yjs data for a given version of the room.
|
|
1134
1139
|
*
|
|
@@ -1145,6 +1150,24 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
1145
1150
|
* const { data, error, isLoading } = useHistoryVersionData(version.id);
|
|
1146
1151
|
*/
|
|
1147
1152
|
useHistoryVersionData(id: string): HistoryVersionYjsDataAsyncResult;
|
|
1153
|
+
/**
|
|
1154
|
+
* Returns a function that permanently deletes a version from the room's
|
|
1155
|
+
* history.
|
|
1156
|
+
*
|
|
1157
|
+
* @example
|
|
1158
|
+
* const deleteHistoryVersion = useDeleteHistoryVersion();
|
|
1159
|
+
* deleteHistoryVersion(version.id);
|
|
1160
|
+
*/
|
|
1161
|
+
useDeleteHistoryVersion(): (versionId: string) => Promise<void>;
|
|
1162
|
+
/**
|
|
1163
|
+
* Returns a function that restores the room's Storage to the given
|
|
1164
|
+
* historic version, applied as a single undoable change.
|
|
1165
|
+
*
|
|
1166
|
+
* @example
|
|
1167
|
+
* const restore = useRestoreToStorageVersion(version.id);
|
|
1168
|
+
* await restore();
|
|
1169
|
+
*/
|
|
1170
|
+
useRestoreToStorageVersion(versionId: string): () => Promise<void>;
|
|
1148
1171
|
suspense: Resolve<RoomContextBundleCommon<P, S, U, E, TM, CM, FM, FMD> & SharedContextBundle<U>["suspense"] & {
|
|
1149
1172
|
/**
|
|
1150
1173
|
* Extract arbitrary data from the Liveblocks Storage state, using an
|
|
@@ -1254,7 +1277,6 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
1254
1277
|
* const { url } = useAttachmentUrl("at_xxx");
|
|
1255
1278
|
*/
|
|
1256
1279
|
useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncSuccess;
|
|
1257
|
-
useFileUrl(file: LiveFile | LiveFileData | string): FileUrlAsyncSuccess;
|
|
1258
1280
|
}>;
|
|
1259
1281
|
}>;
|
|
1260
1282
|
/**
|
|
@@ -2653,6 +2675,13 @@ declare function useThreadSubscription(threadId: string): ThreadSubscription;
|
|
|
2653
2675
|
* @private
|
|
2654
2676
|
*/
|
|
2655
2677
|
declare function useRoomThreadSubscription(roomId: string, threadId: string): ThreadSubscription;
|
|
2678
|
+
/**
|
|
2679
|
+
* Returns the Storage data for a given version of the room.
|
|
2680
|
+
*
|
|
2681
|
+
* @example
|
|
2682
|
+
* const { data, isLoading, error } = useHistoryVersionStorageData(versionId);
|
|
2683
|
+
*/
|
|
2684
|
+
declare function useHistoryVersionStorageData(versionId: string): HistoryVersionStorageDataAsyncResult;
|
|
2656
2685
|
/**
|
|
2657
2686
|
* @deprecated Use `useHistoryVersionYjsData(versionId)` instead.
|
|
2658
2687
|
*
|
|
@@ -2669,6 +2698,23 @@ declare function useHistoryVersionData(versionId: string): HistoryVersionYjsData
|
|
|
2669
2698
|
* const { data, isLoading, error } = useHistoryVersionYjsData(versionId);
|
|
2670
2699
|
*/
|
|
2671
2700
|
declare function useHistoryVersionYjsData(versionId: string): HistoryVersionYjsDataAsyncResult;
|
|
2701
|
+
/**
|
|
2702
|
+
* Returns a function that permanently deletes a version from the room's history.
|
|
2703
|
+
*
|
|
2704
|
+
* @example
|
|
2705
|
+
* const deleteHistoryVersion = useDeleteHistoryVersion();
|
|
2706
|
+
* deleteHistoryVersion(versionId);
|
|
2707
|
+
*/
|
|
2708
|
+
declare function useDeleteHistoryVersion(): (versionId: string) => Promise<void>;
|
|
2709
|
+
/**
|
|
2710
|
+
* Returns a function that restores the room's Storage to the given historic
|
|
2711
|
+
* version, applied as a single undoable change (broadcast to other clients).
|
|
2712
|
+
*
|
|
2713
|
+
* @example
|
|
2714
|
+
* const restore = useRestoreToStorageVersion(versionId);
|
|
2715
|
+
* await restore();
|
|
2716
|
+
*/
|
|
2717
|
+
declare function useRestoreToStorageVersion(versionId: string): () => Promise<void>;
|
|
2672
2718
|
/**
|
|
2673
2719
|
* Returns a function that updates the user's subscription settings
|
|
2674
2720
|
* for the current room.
|
|
@@ -2701,7 +2747,6 @@ declare function useOthersConnectionIdsSuspense(): readonly number[];
|
|
|
2701
2747
|
* @private For internal use only. Do not rely on this hook.
|
|
2702
2748
|
*/
|
|
2703
2749
|
declare function useSuspendUntilStorageReady(): void;
|
|
2704
|
-
type LiveFileReference = LiveFile | LiveFileData | string;
|
|
2705
2750
|
/**
|
|
2706
2751
|
* Returns a presigned URL for an attachment by its ID.
|
|
2707
2752
|
*
|
|
@@ -2713,8 +2758,6 @@ declare function useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncResul
|
|
|
2713
2758
|
* @private For internal use only. Do not rely on this hook. Use `useAttachmentUrl` instead.
|
|
2714
2759
|
*/
|
|
2715
2760
|
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
2761
|
/**
|
|
2719
2762
|
* Returns a presigned URL for an attachment by its ID.
|
|
2720
2763
|
*
|
|
@@ -2726,11 +2769,6 @@ declare function useAttachmentUrlSuspense(attachmentId: string): {
|
|
|
2726
2769
|
readonly url: string;
|
|
2727
2770
|
readonly error: undefined;
|
|
2728
2771
|
};
|
|
2729
|
-
declare function useFileUrlSuspense(file: LiveFile | LiveFileData | string): {
|
|
2730
|
-
readonly isLoading: false;
|
|
2731
|
-
readonly url: string;
|
|
2732
|
-
readonly error?: undefined;
|
|
2733
|
-
};
|
|
2734
2772
|
/**
|
|
2735
2773
|
* @private For internal use only. Do not rely on this hook.
|
|
2736
2774
|
*/
|
|
@@ -3275,4 +3313,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
3275
3313
|
*/
|
|
3276
3314
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
3277
3315
|
|
|
3278
|
-
export {
|
|
3316
|
+
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, _useUser as a$, useDeleteAiChat as a0, useDeleteAllInboxNotifications as a1, useDeleteComment as a2, useDeleteFeed as a3, useDeleteFeedMessage as a4, useDeleteHistoryVersion as a5, useDeleteInboxNotification as a6, _useDeleteThread as a7, _useEditComment as a8, _useEditCommentMetadata as a9, _useOthersListener as aA, _useOthersMapped as aB, useRedo as aC, useRemoveReaction as aD, useRestoreToStorageVersion as aE, _useRoom as aF, useRoomInfo as aG, _useRoomSubscriptionSettings as aH, _useSearchComments as aI, _useSelf as aJ, useSendAiMessage as aK, useStatus as aL, _useStorage as aM, _useStorageRoot as aN, useSubscribeToThread as aO, useSyncStatus as aP, useThreadSubscription as aQ, _useThreads as aR, useUndo as aS, useUnreadInboxNotificationsCount as aT, useUnsubscribeFromThread as aU, useUpdateFeedMessage as aV, useUpdateFeedMetadata as aW, _useUpdateMyPresence as aX, useUpdateNotificationSettings as aY, useUpdateRoomSubscriptionSettings as aZ, _useUrlMetadata as a_, _useEditThreadMetadata as aa, useErrorListener as ab, _useEventListener as ac, _useFeedMessages as ad, _useFeeds as ae, useGroupInfo as af, useHistory as ag, useHistoryVersionData as ah, useHistoryVersionStorageData as ai, useHistoryVersionYjsData as aj, _useHistoryVersions as ak, _useInboxNotificationThread as al, useInboxNotifications as am, _useIsInsideRoom as an, useLostConnectionListener as ao, useMarkAllInboxNotificationsAsRead as ap, useMarkInboxNotificationAsRead as aq, useMarkThreadAsRead as ar, useMarkThreadAsResolved as as, useMarkThreadAsUnresolved as at, _useMutation as au, _useMyPresence as av, useNotificationSettings as aw, _useOther as ax, _useOthers as ay, useOthersConnectionIds as az, useCreateRoomComment as b, _useUserThreads_experimental as b0, _useAiChatSuspense as b1, _useAiChatMessagesSuspense as b2, _useAiChatsSuspense as b3, useAttachmentUrlSuspense as b4, _useFeedMessagesSuspense as b5, _useFeedsSuspense as b6, useGroupInfoSuspense as b7, _useHistoryVersionsSuspense as b8, useInboxNotificationsSuspense as b9, useNotificationSettingsSuspense as ba, _useOtherSuspense as bb, _useOthersSuspense as bc, useOthersConnectionIdsSuspense as bd, _useOthersMappedSuspense as be, useRoomInfoSuspense as bf, _useRoomSubscriptionSettingsSuspense as bg, _useSelfSuspense as bh, _useStorageSuspense as bi, _useThreadsSuspense as bj, useUnreadInboxNotificationsCountSuspense as bk, _useUrlMetadataSuspense as bl, _useUserSuspense as bm, _useUserThreadsSuspense_experimental as bn, 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;
|
|
@@ -320,6 +318,7 @@ type UnreadInboxNotificationsCountAsyncResult = AsyncResult<number, "count">;
|
|
|
320
318
|
type NotificationSettingsAsyncResult = AsyncResult<NotificationSettings, "settings">;
|
|
321
319
|
type RoomSubscriptionSettingsAsyncSuccess = AsyncSuccess<RoomSubscriptionSettings, "settings">;
|
|
322
320
|
type RoomSubscriptionSettingsAsyncResult = AsyncResult<RoomSubscriptionSettings, "settings">;
|
|
321
|
+
type HistoryVersionStorageDataAsyncResult = AsyncResult<LiveObject<LsonObject>>;
|
|
323
322
|
type HistoryVersionYjsDataAsyncResult = AsyncResult<Uint8Array>;
|
|
324
323
|
type HistoryVersionsAsyncSuccess = AsyncSuccess<HistoryVersion[], "versions">;
|
|
325
324
|
type HistoryVersionsAsyncResult = AsyncResult<HistoryVersion[], "versions">;
|
|
@@ -1121,7 +1120,6 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
1121
1120
|
* const { url, error, isLoading } = useAttachmentUrl("at_xxx");
|
|
1122
1121
|
*/
|
|
1123
1122
|
useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncResult;
|
|
1124
|
-
useFileUrl(file: LiveFile | LiveFileData | string): FileUrlAsyncResult;
|
|
1125
1123
|
/**
|
|
1126
1124
|
* (Private beta) Returns a history of versions of the current room.
|
|
1127
1125
|
*
|
|
@@ -1129,6 +1127,13 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
1129
1127
|
* const { versions, error, isLoading } = useHistoryVersions();
|
|
1130
1128
|
*/
|
|
1131
1129
|
useHistoryVersions(): HistoryVersionsAsyncResult;
|
|
1130
|
+
/**
|
|
1131
|
+
* Returns the Storage data for a given version of the room.
|
|
1132
|
+
*
|
|
1133
|
+
* @example
|
|
1134
|
+
* const { data, error, isLoading } = useHistoryVersionStorageData(version.id);
|
|
1135
|
+
*/
|
|
1136
|
+
useHistoryVersionStorageData(id: string): HistoryVersionStorageDataAsyncResult;
|
|
1132
1137
|
/**
|
|
1133
1138
|
* Returns the Yjs data for a given version of the room.
|
|
1134
1139
|
*
|
|
@@ -1145,6 +1150,24 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
1145
1150
|
* const { data, error, isLoading } = useHistoryVersionData(version.id);
|
|
1146
1151
|
*/
|
|
1147
1152
|
useHistoryVersionData(id: string): HistoryVersionYjsDataAsyncResult;
|
|
1153
|
+
/**
|
|
1154
|
+
* Returns a function that permanently deletes a version from the room's
|
|
1155
|
+
* history.
|
|
1156
|
+
*
|
|
1157
|
+
* @example
|
|
1158
|
+
* const deleteHistoryVersion = useDeleteHistoryVersion();
|
|
1159
|
+
* deleteHistoryVersion(version.id);
|
|
1160
|
+
*/
|
|
1161
|
+
useDeleteHistoryVersion(): (versionId: string) => Promise<void>;
|
|
1162
|
+
/**
|
|
1163
|
+
* Returns a function that restores the room's Storage to the given
|
|
1164
|
+
* historic version, applied as a single undoable change.
|
|
1165
|
+
*
|
|
1166
|
+
* @example
|
|
1167
|
+
* const restore = useRestoreToStorageVersion(version.id);
|
|
1168
|
+
* await restore();
|
|
1169
|
+
*/
|
|
1170
|
+
useRestoreToStorageVersion(versionId: string): () => Promise<void>;
|
|
1148
1171
|
suspense: Resolve<RoomContextBundleCommon<P, S, U, E, TM, CM, FM, FMD> & SharedContextBundle<U>["suspense"] & {
|
|
1149
1172
|
/**
|
|
1150
1173
|
* Extract arbitrary data from the Liveblocks Storage state, using an
|
|
@@ -1254,7 +1277,6 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
1254
1277
|
* const { url } = useAttachmentUrl("at_xxx");
|
|
1255
1278
|
*/
|
|
1256
1279
|
useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncSuccess;
|
|
1257
|
-
useFileUrl(file: LiveFile | LiveFileData | string): FileUrlAsyncSuccess;
|
|
1258
1280
|
}>;
|
|
1259
1281
|
}>;
|
|
1260
1282
|
/**
|
|
@@ -2653,6 +2675,13 @@ declare function useThreadSubscription(threadId: string): ThreadSubscription;
|
|
|
2653
2675
|
* @private
|
|
2654
2676
|
*/
|
|
2655
2677
|
declare function useRoomThreadSubscription(roomId: string, threadId: string): ThreadSubscription;
|
|
2678
|
+
/**
|
|
2679
|
+
* Returns the Storage data for a given version of the room.
|
|
2680
|
+
*
|
|
2681
|
+
* @example
|
|
2682
|
+
* const { data, isLoading, error } = useHistoryVersionStorageData(versionId);
|
|
2683
|
+
*/
|
|
2684
|
+
declare function useHistoryVersionStorageData(versionId: string): HistoryVersionStorageDataAsyncResult;
|
|
2656
2685
|
/**
|
|
2657
2686
|
* @deprecated Use `useHistoryVersionYjsData(versionId)` instead.
|
|
2658
2687
|
*
|
|
@@ -2669,6 +2698,23 @@ declare function useHistoryVersionData(versionId: string): HistoryVersionYjsData
|
|
|
2669
2698
|
* const { data, isLoading, error } = useHistoryVersionYjsData(versionId);
|
|
2670
2699
|
*/
|
|
2671
2700
|
declare function useHistoryVersionYjsData(versionId: string): HistoryVersionYjsDataAsyncResult;
|
|
2701
|
+
/**
|
|
2702
|
+
* Returns a function that permanently deletes a version from the room's history.
|
|
2703
|
+
*
|
|
2704
|
+
* @example
|
|
2705
|
+
* const deleteHistoryVersion = useDeleteHistoryVersion();
|
|
2706
|
+
* deleteHistoryVersion(versionId);
|
|
2707
|
+
*/
|
|
2708
|
+
declare function useDeleteHistoryVersion(): (versionId: string) => Promise<void>;
|
|
2709
|
+
/**
|
|
2710
|
+
* Returns a function that restores the room's Storage to the given historic
|
|
2711
|
+
* version, applied as a single undoable change (broadcast to other clients).
|
|
2712
|
+
*
|
|
2713
|
+
* @example
|
|
2714
|
+
* const restore = useRestoreToStorageVersion(versionId);
|
|
2715
|
+
* await restore();
|
|
2716
|
+
*/
|
|
2717
|
+
declare function useRestoreToStorageVersion(versionId: string): () => Promise<void>;
|
|
2672
2718
|
/**
|
|
2673
2719
|
* Returns a function that updates the user's subscription settings
|
|
2674
2720
|
* for the current room.
|
|
@@ -2701,7 +2747,6 @@ declare function useOthersConnectionIdsSuspense(): readonly number[];
|
|
|
2701
2747
|
* @private For internal use only. Do not rely on this hook.
|
|
2702
2748
|
*/
|
|
2703
2749
|
declare function useSuspendUntilStorageReady(): void;
|
|
2704
|
-
type LiveFileReference = LiveFile | LiveFileData | string;
|
|
2705
2750
|
/**
|
|
2706
2751
|
* Returns a presigned URL for an attachment by its ID.
|
|
2707
2752
|
*
|
|
@@ -2713,8 +2758,6 @@ declare function useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncResul
|
|
|
2713
2758
|
* @private For internal use only. Do not rely on this hook. Use `useAttachmentUrl` instead.
|
|
2714
2759
|
*/
|
|
2715
2760
|
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
2761
|
/**
|
|
2719
2762
|
* Returns a presigned URL for an attachment by its ID.
|
|
2720
2763
|
*
|
|
@@ -2726,11 +2769,6 @@ declare function useAttachmentUrlSuspense(attachmentId: string): {
|
|
|
2726
2769
|
readonly url: string;
|
|
2727
2770
|
readonly error: undefined;
|
|
2728
2771
|
};
|
|
2729
|
-
declare function useFileUrlSuspense(file: LiveFile | LiveFileData | string): {
|
|
2730
|
-
readonly isLoading: false;
|
|
2731
|
-
readonly url: string;
|
|
2732
|
-
readonly error?: undefined;
|
|
2733
|
-
};
|
|
2734
2772
|
/**
|
|
2735
2773
|
* @private For internal use only. Do not rely on this hook.
|
|
2736
2774
|
*/
|
|
@@ -3275,4 +3313,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
3275
3313
|
*/
|
|
3276
3314
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
3277
3315
|
|
|
3278
|
-
export {
|
|
3316
|
+
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, _useUser as a$, useDeleteAiChat as a0, useDeleteAllInboxNotifications as a1, useDeleteComment as a2, useDeleteFeed as a3, useDeleteFeedMessage as a4, useDeleteHistoryVersion as a5, useDeleteInboxNotification as a6, _useDeleteThread as a7, _useEditComment as a8, _useEditCommentMetadata as a9, _useOthersListener as aA, _useOthersMapped as aB, useRedo as aC, useRemoveReaction as aD, useRestoreToStorageVersion as aE, _useRoom as aF, useRoomInfo as aG, _useRoomSubscriptionSettings as aH, _useSearchComments as aI, _useSelf as aJ, useSendAiMessage as aK, useStatus as aL, _useStorage as aM, _useStorageRoot as aN, useSubscribeToThread as aO, useSyncStatus as aP, useThreadSubscription as aQ, _useThreads as aR, useUndo as aS, useUnreadInboxNotificationsCount as aT, useUnsubscribeFromThread as aU, useUpdateFeedMessage as aV, useUpdateFeedMetadata as aW, _useUpdateMyPresence as aX, useUpdateNotificationSettings as aY, useUpdateRoomSubscriptionSettings as aZ, _useUrlMetadata as a_, _useEditThreadMetadata as aa, useErrorListener as ab, _useEventListener as ac, _useFeedMessages as ad, _useFeeds as ae, useGroupInfo as af, useHistory as ag, useHistoryVersionData as ah, useHistoryVersionStorageData as ai, useHistoryVersionYjsData as aj, _useHistoryVersions as ak, _useInboxNotificationThread as al, useInboxNotifications as am, _useIsInsideRoom as an, useLostConnectionListener as ao, useMarkAllInboxNotificationsAsRead as ap, useMarkInboxNotificationAsRead as aq, useMarkThreadAsRead as ar, useMarkThreadAsResolved as as, useMarkThreadAsUnresolved as at, _useMutation as au, _useMyPresence as av, useNotificationSettings as aw, _useOther as ax, _useOthers as ay, useOthersConnectionIds as az, useCreateRoomComment as b, _useUserThreads_experimental as b0, _useAiChatSuspense as b1, _useAiChatMessagesSuspense as b2, _useAiChatsSuspense as b3, useAttachmentUrlSuspense as b4, _useFeedMessagesSuspense as b5, _useFeedsSuspense as b6, useGroupInfoSuspense as b7, _useHistoryVersionsSuspense as b8, useInboxNotificationsSuspense as b9, useNotificationSettingsSuspense as ba, _useOtherSuspense as bb, _useOthersSuspense as bc, useOthersConnectionIdsSuspense as bd, _useOthersMappedSuspense as be, useRoomInfoSuspense as bf, _useRoomSubscriptionSettingsSuspense as bg, _useSelfSuspense as bh, _useStorageSuspense as bi, _useThreadsSuspense as bj, useUnreadInboxNotificationsCountSuspense as bk, _useUrlMetadataSuspense as bl, _useUserSuspense as bm, _useUserThreadsSuspense_experimental as bn, 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 _chunkDAXUX747cjs = require('./chunk-DAXUX747.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 _chunkIMWZEHKFcjs = require('./chunk-IMWZEHKF.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, _chunkDAXUX747cjs.PKG_NAME, _chunkDAXUX747cjs.PKG_VERSION, _chunkDAXUX747cjs.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 = _chunkIMWZEHKFcjs.ClientContext; exports.ClientSideSuspense = _chunkDAXUX747cjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkIMWZEHKFcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkIMWZEHKFcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkIMWZEHKFcjs.RegisterAiTool; exports.RoomContext = _chunkIMWZEHKFcjs.GlobalRoomContext; exports.RoomProvider = _chunkIMWZEHKFcjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkIMWZEHKFcjs._useAddReaction; exports.useAiChat = _chunkIMWZEHKFcjs._useAiChatSuspense; exports.useAiChatMessages = _chunkIMWZEHKFcjs._useAiChatMessagesSuspense; exports.useAiChatStatus = _chunkIMWZEHKFcjs.useAiChatStatus; exports.useAiChats = _chunkIMWZEHKFcjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunkIMWZEHKFcjs.useAttachmentUrlSuspense; exports.useBroadcastEvent = _chunkIMWZEHKFcjs._useBroadcastEvent; exports.useCanRedo = _chunkIMWZEHKFcjs.useCanRedo; exports.useCanUndo = _chunkIMWZEHKFcjs.useCanUndo; exports.useClient = _chunkIMWZEHKFcjs.useClient; exports.useCreateAiChat = _chunkIMWZEHKFcjs.useCreateAiChat; exports.useCreateComment = _chunkIMWZEHKFcjs._useCreateComment; exports.useCreateFeed = _chunkIMWZEHKFcjs.useCreateFeed; exports.useCreateFeedMessage = _chunkIMWZEHKFcjs.useCreateFeedMessage; exports.useCreateThread = _chunkIMWZEHKFcjs._useCreateThread; exports.useDeleteAiChat = _chunkIMWZEHKFcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkIMWZEHKFcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkIMWZEHKFcjs.useDeleteComment; exports.useDeleteFeed = _chunkIMWZEHKFcjs.useDeleteFeed; exports.useDeleteFeedMessage = _chunkIMWZEHKFcjs.useDeleteFeedMessage; exports.useDeleteInboxNotification = _chunkIMWZEHKFcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkIMWZEHKFcjs._useDeleteThread; exports.useEditComment = _chunkIMWZEHKFcjs._useEditComment; exports.useEditCommentMetadata = _chunkIMWZEHKFcjs._useEditCommentMetadata; exports.useEditThreadMetadata = _chunkIMWZEHKFcjs._useEditThreadMetadata; exports.useErrorListener = _chunkIMWZEHKFcjs.useErrorListener; exports.useEventListener = _chunkIMWZEHKFcjs._useEventListener; exports.useFeedMessages = _chunkIMWZEHKFcjs._useFeedMessagesSuspense; exports.useFeeds = _chunkIMWZEHKFcjs._useFeedsSuspense; exports.useGroupInfo = _chunkIMWZEHKFcjs.useGroupInfoSuspense; exports.useHistory = _chunkIMWZEHKFcjs.useHistory; exports.useHistoryVersions = _chunkIMWZEHKFcjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkIMWZEHKFcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkIMWZEHKFcjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkIMWZEHKFcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkIMWZEHKFcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkIMWZEHKFcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkIMWZEHKFcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkIMWZEHKFcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkIMWZEHKFcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkIMWZEHKFcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkIMWZEHKFcjs._useMutation; exports.useMyPresence = _chunkIMWZEHKFcjs._useMyPresence; exports.useNotificationSettings = _chunkIMWZEHKFcjs.useNotificationSettingsSuspense; exports.useOther = _chunkIMWZEHKFcjs._useOtherSuspense; exports.useOthers = _chunkIMWZEHKFcjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkIMWZEHKFcjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkIMWZEHKFcjs._useOthersListener; exports.useOthersMapped = _chunkIMWZEHKFcjs._useOthersMappedSuspense; exports.useRedo = _chunkIMWZEHKFcjs.useRedo; exports.useRemoveReaction = _chunkIMWZEHKFcjs.useRemoveReaction; exports.useRoom = _chunkIMWZEHKFcjs._useRoom; exports.useRoomInfo = _chunkIMWZEHKFcjs.useRoomInfoSuspense; exports.useRoomSubscriptionSettings = _chunkIMWZEHKFcjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunkIMWZEHKFcjs._useSelfSuspense; exports.useSendAiMessage = _chunkIMWZEHKFcjs.useSendAiMessage; exports.useStatus = _chunkIMWZEHKFcjs.useStatus; exports.useStorage = _chunkIMWZEHKFcjs._useStorageSuspense; exports.useStorageRoot = _chunkIMWZEHKFcjs._useStorageRoot; exports.useSubscribeToThread = _chunkIMWZEHKFcjs.useSubscribeToThread; exports.useSyncStatus = _chunkIMWZEHKFcjs.useSyncStatus; exports.useThreadSubscription = _chunkIMWZEHKFcjs.useThreadSubscription; exports.useThreads = _chunkIMWZEHKFcjs._useThreadsSuspense; exports.useUndo = _chunkIMWZEHKFcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkIMWZEHKFcjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunkIMWZEHKFcjs.useUnsubscribeFromThread; exports.useUpdateFeedMessage = _chunkIMWZEHKFcjs.useUpdateFeedMessage; exports.useUpdateFeedMetadata = _chunkIMWZEHKFcjs.useUpdateFeedMetadata; exports.useUpdateMyPresence = _chunkIMWZEHKFcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkIMWZEHKFcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkIMWZEHKFcjs.useUpdateRoomSubscriptionSettings; exports.useUrlMetadata = _chunkIMWZEHKFcjs._useUrlMetadataSuspense; exports.useUser = _chunkIMWZEHKFcjs._useUserSuspense; exports.useUserThreads_experimental = _chunkIMWZEHKFcjs._useUserThreadsSuspense_experimental;
|
|
181
179
|
//# sourceMappingURL=suspense.cjs.map
|