@liveblocks/react 3.22.0 → 3.23.0-file1
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 +9 -7
- 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 +3 -1
- package/dist/_private.js.map +1 -1
- package/dist/{chunk-AIWIX5H4.js → chunk-B63FZ2MX.js} +2 -2
- package/dist/{chunk-DAXUX747.cjs → chunk-CACTXCDP.cjs} +2 -2
- package/dist/{chunk-DAXUX747.cjs.map → chunk-CACTXCDP.cjs.map} +1 -1
- package/dist/{chunk-HJZWAVCC.js → chunk-CTG3FMRO.js} +90 -2
- package/dist/chunk-CTG3FMRO.js.map +1 -0
- package/dist/{chunk-IMWZEHKF.cjs → chunk-L5JH73RJ.cjs} +93 -5
- package/dist/chunk-L5JH73RJ.cjs.map +1 -0
- package/dist/index.cjs +6 -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 +4 -2
- package/dist/index.js.map +1 -1
- package/dist/{room-Qo6boT5Q.d.cts → room-BRD10hWb.d.cts} +52 -2
- package/dist/{room-Qo6boT5Q.d.ts → room-BRD10hWb.d.ts} +52 -2
- package/dist/suspense.cjs +6 -4
- 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 +4 -2
- package/dist/suspense.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-HJZWAVCC.js.map +0 -1
- package/dist/chunk-IMWZEHKF.cjs.map +0 -1
- /package/dist/{chunk-AIWIX5H4.js.map → chunk-B63FZ2MX.js.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkCACTXCDPcjs = require('./chunk-CACTXCDP.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -93,12 +93,14 @@ var _chunkDAXUX747cjs = require('./chunk-DAXUX747.cjs');
|
|
|
93
93
|
|
|
94
94
|
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
|
|
97
|
+
var _chunkL5JH73RJcjs = require('./chunk-L5JH73RJ.cjs');
|
|
97
98
|
|
|
98
99
|
// src/index.ts
|
|
99
100
|
var _core = require('@liveblocks/core');
|
|
100
101
|
var _client = require('@liveblocks/client');
|
|
101
|
-
_core.detectDupes.call(void 0,
|
|
102
|
+
_core.detectDupes.call(void 0, _chunkCACTXCDPcjs.PKG_NAME, _chunkCACTXCDPcjs.PKG_VERSION, _chunkCACTXCDPcjs.PKG_FORMAT);
|
|
103
|
+
|
|
102
104
|
|
|
103
105
|
|
|
104
106
|
|
|
@@ -191,5 +193,5 @@ _core.detectDupes.call(void 0, _chunkDAXUX747cjs.PKG_NAME, _chunkDAXUX747cjs.PKG
|
|
|
191
193
|
|
|
192
194
|
|
|
193
195
|
|
|
194
|
-
exports.ClientContext =
|
|
196
|
+
exports.ClientContext = _chunkL5JH73RJcjs.ClientContext; exports.ClientSideSuspense = _chunkCACTXCDPcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkL5JH73RJcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkL5JH73RJcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkL5JH73RJcjs.RegisterAiTool; exports.RoomContext = _chunkL5JH73RJcjs.GlobalRoomContext; exports.RoomProvider = _chunkL5JH73RJcjs._RoomProvider; exports.createLiveblocksContext = _chunkL5JH73RJcjs.createLiveblocksContext; exports.createRoomContext = _chunkL5JH73RJcjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkL5JH73RJcjs._useAddReaction; exports.useAiChat = _chunkL5JH73RJcjs._useAiChat; exports.useAiChatMessages = _chunkL5JH73RJcjs._useAiChatMessages; exports.useAiChatStatus = _chunkL5JH73RJcjs.useAiChatStatus; exports.useAiChats = _chunkL5JH73RJcjs._useAiChats; exports.useAttachmentUrl = _chunkL5JH73RJcjs.useAttachmentUrl; exports.useBroadcastEvent = _chunkL5JH73RJcjs._useBroadcastEvent; exports.useCanRedo = _chunkL5JH73RJcjs.useCanRedo; exports.useCanUndo = _chunkL5JH73RJcjs.useCanUndo; exports.useClient = _chunkL5JH73RJcjs.useClient; exports.useCreateAiChat = _chunkL5JH73RJcjs.useCreateAiChat; exports.useCreateComment = _chunkL5JH73RJcjs._useCreateComment; exports.useCreateFeed = _chunkL5JH73RJcjs.useCreateFeed; exports.useCreateFeedMessage = _chunkL5JH73RJcjs.useCreateFeedMessage; exports.useCreateThread = _chunkL5JH73RJcjs._useCreateThread; exports.useDeleteAiChat = _chunkL5JH73RJcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkL5JH73RJcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkL5JH73RJcjs.useDeleteComment; exports.useDeleteFeed = _chunkL5JH73RJcjs.useDeleteFeed; exports.useDeleteFeedMessage = _chunkL5JH73RJcjs.useDeleteFeedMessage; exports.useDeleteHistoryVersion = _chunkL5JH73RJcjs.useDeleteHistoryVersion; exports.useDeleteInboxNotification = _chunkL5JH73RJcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkL5JH73RJcjs._useDeleteThread; exports.useEditComment = _chunkL5JH73RJcjs._useEditComment; exports.useEditCommentMetadata = _chunkL5JH73RJcjs._useEditCommentMetadata; exports.useEditThreadMetadata = _chunkL5JH73RJcjs._useEditThreadMetadata; exports.useErrorListener = _chunkL5JH73RJcjs.useErrorListener; exports.useEventListener = _chunkL5JH73RJcjs._useEventListener; exports.useFeedMessages = _chunkL5JH73RJcjs._useFeedMessages; exports.useFeeds = _chunkL5JH73RJcjs._useFeeds; exports.useFileUrl = _chunkL5JH73RJcjs.useFileUrl; exports.useGroupInfo = _chunkL5JH73RJcjs.useGroupInfo; exports.useHistory = _chunkL5JH73RJcjs.useHistory; exports.useHistoryVersionData = _chunkL5JH73RJcjs.useHistoryVersionData; exports.useHistoryVersionStorageData = _chunkL5JH73RJcjs.useHistoryVersionStorageData; exports.useHistoryVersionYjsData = _chunkL5JH73RJcjs.useHistoryVersionYjsData; exports.useHistoryVersions = _chunkL5JH73RJcjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkL5JH73RJcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkL5JH73RJcjs.useInboxNotifications; exports.useIsInsideRoom = _chunkL5JH73RJcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkL5JH73RJcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkL5JH73RJcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkL5JH73RJcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkL5JH73RJcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkL5JH73RJcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkL5JH73RJcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkL5JH73RJcjs._useMutation; exports.useMyPresence = _chunkL5JH73RJcjs._useMyPresence; exports.useNotificationSettings = _chunkL5JH73RJcjs.useNotificationSettings; exports.useOther = _chunkL5JH73RJcjs._useOther; exports.useOthers = _chunkL5JH73RJcjs._useOthers; exports.useOthersConnectionIds = _chunkL5JH73RJcjs.useOthersConnectionIds; exports.useOthersListener = _chunkL5JH73RJcjs._useOthersListener; exports.useOthersMapped = _chunkL5JH73RJcjs._useOthersMapped; exports.useRedo = _chunkL5JH73RJcjs.useRedo; exports.useRemoveReaction = _chunkL5JH73RJcjs.useRemoveReaction; exports.useRestoreToStorageVersion = _chunkL5JH73RJcjs.useRestoreToStorageVersion; exports.useRoom = _chunkL5JH73RJcjs._useRoom; exports.useRoomInfo = _chunkL5JH73RJcjs.useRoomInfo; exports.useRoomSubscriptionSettings = _chunkL5JH73RJcjs._useRoomSubscriptionSettings; exports.useSearchComments = _chunkL5JH73RJcjs._useSearchComments; exports.useSelf = _chunkL5JH73RJcjs._useSelf; exports.useSendAiMessage = _chunkL5JH73RJcjs.useSendAiMessage; exports.useStatus = _chunkL5JH73RJcjs.useStatus; exports.useStorage = _chunkL5JH73RJcjs._useStorage; exports.useStorageRoot = _chunkL5JH73RJcjs._useStorageRoot; exports.useSubscribeToThread = _chunkL5JH73RJcjs.useSubscribeToThread; exports.useSyncStatus = _chunkL5JH73RJcjs.useSyncStatus; exports.useThreadSubscription = _chunkL5JH73RJcjs.useThreadSubscription; exports.useThreads = _chunkL5JH73RJcjs._useThreads; exports.useUndo = _chunkL5JH73RJcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkL5JH73RJcjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunkL5JH73RJcjs.useUnsubscribeFromThread; exports.useUpdateFeedMessage = _chunkL5JH73RJcjs.useUpdateFeedMessage; exports.useUpdateFeedMetadata = _chunkL5JH73RJcjs.useUpdateFeedMetadata; exports.useUpdateMyPresence = _chunkL5JH73RJcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkL5JH73RJcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkL5JH73RJcjs.useUpdateRoomSubscriptionSettings; exports.useUrlMetadata = _chunkL5JH73RJcjs._useUrlMetadata; exports.useUser = _chunkL5JH73RJcjs._useUser; exports.useUserThreads_experimental = _chunkL5JH73RJcjs._useUserThreads_experimental;
|
|
195
197
|
//# 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;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;AACA;AACF,wDAA6B;AAC7B;AACA;ACjGA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADkG7C;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;AACA;AACF,g5LAAC","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 useFileUrl,\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, A as RegisterAiToolProps } from './room-BRD10hWb.cjs';
|
|
2
|
+
export { B as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, D as RoomContext, _ as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, E as UseThreadsOptions, F as createLiveblocksContext, H as createRoomContext, I as useAddReaction, J as useAiChat, K as useAiChatMessages, N as useAiChatStatus, O as useAiChats, P as useAttachmentUrl, Q as useBroadcastEvent, T as useCanRedo, V as useCanUndo, W as useClient, X as useCreateAiChat, Y as useCreateComment, Z as useCreateFeed, $ as useCreateFeedMessage, a0 as useCreateThread, a1 as useDeleteAiChat, a2 as useDeleteAllInboxNotifications, a3 as useDeleteComment, a4 as useDeleteFeed, a5 as useDeleteFeedMessage, a6 as useDeleteHistoryVersion, a7 as useDeleteInboxNotification, a8 as useDeleteThread, a9 as useEditComment, aa as useEditCommentMetadata, ab as useEditThreadMetadata, ac as useErrorListener, ad as useEventListener, ae as useFeedMessages, af as useFeeds, ag as useFileUrl, ah as useGroupInfo, ai as useHistory, aj as useHistoryVersionData, ak as useHistoryVersionStorageData, al as useHistoryVersionYjsData, am as useHistoryVersions, an as useInboxNotificationThread, ao as useInboxNotifications, ap as useIsInsideRoom, aq as useLostConnectionListener, ar as useMarkAllInboxNotificationsAsRead, as as useMarkInboxNotificationAsRead, at as useMarkThreadAsRead, au as useMarkThreadAsResolved, av as useMarkThreadAsUnresolved, aw as useMutation, ax as useMyPresence, ay as useNotificationSettings, az as useOther, aA as useOthers, aB as useOthersConnectionIds, aC as useOthersListener, aD as useOthersMapped, aE as useRedo, aF as useRemoveReaction, aG as useRestoreToStorageVersion, aH as useRoom, aI as useRoomInfo, aJ as useRoomSubscriptionSettings, aK as useSearchComments, aL as useSelf, aM as useSendAiMessage, aN as useStatus, aO as useStorage, aP as useStorageRoot, aQ as useSubscribeToThread, aR as useSyncStatus, aS as useThreadSubscription, aT as useThreads, aU as useUndo, aV as useUnreadInboxNotificationsCount, aW as useUnsubscribeFromThread, aX as useUpdateFeedMessage, aY as useUpdateFeedMetadata, aZ as useUpdateMyPresence, a_ as useUpdateNotificationSettings, a$ as useUpdateRoomSubscriptionSettings, b0 as useUrlMetadata, b1 as useUser, b2 as useUserThreads_experimental } from './room-BRD10hWb.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, A as RegisterAiToolProps } from './room-BRD10hWb.js';
|
|
2
|
+
export { B as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, D as RoomContext, _ as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, E as UseThreadsOptions, F as createLiveblocksContext, H as createRoomContext, I as useAddReaction, J as useAiChat, K as useAiChatMessages, N as useAiChatStatus, O as useAiChats, P as useAttachmentUrl, Q as useBroadcastEvent, T as useCanRedo, V as useCanUndo, W as useClient, X as useCreateAiChat, Y as useCreateComment, Z as useCreateFeed, $ as useCreateFeedMessage, a0 as useCreateThread, a1 as useDeleteAiChat, a2 as useDeleteAllInboxNotifications, a3 as useDeleteComment, a4 as useDeleteFeed, a5 as useDeleteFeedMessage, a6 as useDeleteHistoryVersion, a7 as useDeleteInboxNotification, a8 as useDeleteThread, a9 as useEditComment, aa as useEditCommentMetadata, ab as useEditThreadMetadata, ac as useErrorListener, ad as useEventListener, ae as useFeedMessages, af as useFeeds, ag as useFileUrl, ah as useGroupInfo, ai as useHistory, aj as useHistoryVersionData, ak as useHistoryVersionStorageData, al as useHistoryVersionYjsData, am as useHistoryVersions, an as useInboxNotificationThread, ao as useInboxNotifications, ap as useIsInsideRoom, aq as useLostConnectionListener, ar as useMarkAllInboxNotificationsAsRead, as as useMarkInboxNotificationAsRead, at as useMarkThreadAsRead, au as useMarkThreadAsResolved, av as useMarkThreadAsUnresolved, aw as useMutation, ax as useMyPresence, ay as useNotificationSettings, az as useOther, aA as useOthers, aB as useOthersConnectionIds, aC as useOthersListener, aD as useOthersMapped, aE as useRedo, aF as useRemoveReaction, aG as useRestoreToStorageVersion, aH as useRoom, aI as useRoomInfo, aJ as useRoomSubscriptionSettings, aK as useSearchComments, aL as useSelf, aM as useSendAiMessage, aN as useStatus, aO as useStorage, aP as useStorageRoot, aQ as useSubscribeToThread, aR as useSyncStatus, aS as useThreadSubscription, aT as useThreads, aU as useUndo, aV as useUnreadInboxNotificationsCount, aW as useUnsubscribeFromThread, aX as useUpdateFeedMessage, aY as useUpdateFeedMetadata, aZ as useUpdateMyPresence, a_ as useUpdateNotificationSettings, a$ as useUpdateRoomSubscriptionSettings, b0 as useUrlMetadata, b1 as useUser, b2 as useUserThreads_experimental } from './room-BRD10hWb.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-B63FZ2MX.js";
|
|
7
7
|
import {
|
|
8
8
|
ClientContext,
|
|
9
9
|
GlobalRoomContext,
|
|
@@ -63,6 +63,7 @@ import {
|
|
|
63
63
|
useDeleteHistoryVersion,
|
|
64
64
|
useDeleteInboxNotification,
|
|
65
65
|
useErrorListener,
|
|
66
|
+
useFileUrl,
|
|
66
67
|
useGroupInfo,
|
|
67
68
|
useHistory,
|
|
68
69
|
useHistoryVersionData,
|
|
@@ -93,7 +94,7 @@ import {
|
|
|
93
94
|
useUpdateFeedMetadata,
|
|
94
95
|
useUpdateNotificationSettings,
|
|
95
96
|
useUpdateRoomSubscriptionSettings
|
|
96
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-CTG3FMRO.js";
|
|
97
98
|
|
|
98
99
|
// src/index.ts
|
|
99
100
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -141,6 +142,7 @@ export {
|
|
|
141
142
|
_useEventListener as useEventListener,
|
|
142
143
|
_useFeedMessages as useFeedMessages,
|
|
143
144
|
_useFeeds as useFeeds,
|
|
145
|
+
useFileUrl,
|
|
144
146
|
useGroupInfo,
|
|
145
147
|
useHistory,
|
|
146
148
|
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 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":"
|
|
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 useFileUrl,\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,6 +1,6 @@
|
|
|
1
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
|
-
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';
|
|
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, LiveFileReference, 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';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
|
|
@@ -254,6 +254,8 @@ 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">;
|
|
257
259
|
type GroupAsyncResult = AsyncResult<GroupData | undefined, "group">;
|
|
258
260
|
type CreateThreadOptions<TM extends BaseMetadata, CM extends BaseMetadata> = Resolve<{
|
|
259
261
|
body: CommentBody;
|
|
@@ -1120,6 +1122,16 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
1120
1122
|
* const { url, error, isLoading } = useAttachmentUrl("at_xxx");
|
|
1121
1123
|
*/
|
|
1122
1124
|
useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncResult;
|
|
1125
|
+
/**
|
|
1126
|
+
* Returns a presigned URL for a `LiveFile`.
|
|
1127
|
+
*
|
|
1128
|
+
* @example
|
|
1129
|
+
* const { url, error, isLoading } = useFileUrl("fl_xxx");
|
|
1130
|
+
*
|
|
1131
|
+
* @example
|
|
1132
|
+
* const { url, error, isLoading } = useFileUrl(liveFile);
|
|
1133
|
+
*/
|
|
1134
|
+
useFileUrl(file: LiveFileReference): FileUrlAsyncResult;
|
|
1123
1135
|
/**
|
|
1124
1136
|
* (Private beta) Returns a history of versions of the current room.
|
|
1125
1137
|
*
|
|
@@ -1277,6 +1289,16 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
1277
1289
|
* const { url } = useAttachmentUrl("at_xxx");
|
|
1278
1290
|
*/
|
|
1279
1291
|
useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncSuccess;
|
|
1292
|
+
/**
|
|
1293
|
+
* Returns a presigned URL for a `LiveFile`.
|
|
1294
|
+
*
|
|
1295
|
+
* @example
|
|
1296
|
+
* const { url } = useFileUrl("fl_xxx");
|
|
1297
|
+
*
|
|
1298
|
+
* @example
|
|
1299
|
+
* const { url } = useFileUrl(liveFile);
|
|
1300
|
+
*/
|
|
1301
|
+
useFileUrl(file: LiveFileReference): FileUrlAsyncSuccess;
|
|
1280
1302
|
}>;
|
|
1281
1303
|
}>;
|
|
1282
1304
|
/**
|
|
@@ -2758,6 +2780,20 @@ declare function useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncResul
|
|
|
2758
2780
|
* @private For internal use only. Do not rely on this hook. Use `useAttachmentUrl` instead.
|
|
2759
2781
|
*/
|
|
2760
2782
|
declare function useRoomAttachmentUrl(attachmentId: string, roomId: string): AttachmentUrlAsyncResult;
|
|
2783
|
+
/**
|
|
2784
|
+
* Returns a presigned URL for a `LiveFile`.
|
|
2785
|
+
*
|
|
2786
|
+
* @example
|
|
2787
|
+
* const { url, error, isLoading } = useFileUrl("fl_xxx");
|
|
2788
|
+
*
|
|
2789
|
+
* @example
|
|
2790
|
+
* const { url, error, isLoading } = useFileUrl(liveFile);
|
|
2791
|
+
*/
|
|
2792
|
+
declare function useFileUrl(file: LiveFileReference): FileUrlAsyncResult;
|
|
2793
|
+
/**
|
|
2794
|
+
* @private For internal use only. Do not rely on this hook. Use `useFileUrl` instead.
|
|
2795
|
+
*/
|
|
2796
|
+
declare function useRoomFileUrl(file: LiveFileReference, roomId: string): FileUrlAsyncResult;
|
|
2761
2797
|
/**
|
|
2762
2798
|
* Returns a presigned URL for an attachment by its ID.
|
|
2763
2799
|
*
|
|
@@ -2769,6 +2805,20 @@ declare function useAttachmentUrlSuspense(attachmentId: string): {
|
|
|
2769
2805
|
readonly url: string;
|
|
2770
2806
|
readonly error: undefined;
|
|
2771
2807
|
};
|
|
2808
|
+
/**
|
|
2809
|
+
* Returns a presigned URL for a `LiveFile`.
|
|
2810
|
+
*
|
|
2811
|
+
* @example
|
|
2812
|
+
* const { url } = useFileUrl("fl_xxx");
|
|
2813
|
+
*
|
|
2814
|
+
* @example
|
|
2815
|
+
* const { url } = useFileUrl(liveFile);
|
|
2816
|
+
*/
|
|
2817
|
+
declare function useFileUrlSuspense(file: LiveFileReference): {
|
|
2818
|
+
readonly isLoading: false;
|
|
2819
|
+
readonly url: string;
|
|
2820
|
+
readonly error?: undefined;
|
|
2821
|
+
};
|
|
2772
2822
|
/**
|
|
2773
2823
|
* @private For internal use only. Do not rely on this hook.
|
|
2774
2824
|
*/
|
|
@@ -3313,4 +3363,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
3313
3363
|
*/
|
|
3314
3364
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
3315
3365
|
|
|
3316
|
-
export {
|
|
3366
|
+
export { useCreateFeedMessage as $, type RegisterAiToolProps as A, type AiChatStatus as B, ClientContext as C, GlobalRoomContext as D, type UseThreadsOptions as E, createLiveblocksContext as F, type GroupAsyncResult as G, createRoomContext as H, _useAddReaction as I, _useAiChat as J, _useAiChatMessages as K, LiveblocksProvider as L, type MutationContext as M, useAiChatStatus as N, _useAiChats as O, useAttachmentUrl as P, _useBroadcastEvent as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCanRedo as T, type UseSendAiMessageOptions as U, useCanUndo as V, useClient as W, useCreateAiChat as X, _useCreateComment as Y, useCreateFeed as Z, _RoomProvider as _, useClientOrNull as a, useUpdateRoomSubscriptionSettings as a$, _useCreateThread as a0, useDeleteAiChat as a1, useDeleteAllInboxNotifications as a2, useDeleteComment as a3, useDeleteFeed as a4, useDeleteFeedMessage as a5, useDeleteHistoryVersion as a6, useDeleteInboxNotification as a7, _useDeleteThread as a8, _useEditComment as a9, _useOthers as aA, useOthersConnectionIds as aB, _useOthersListener as aC, _useOthersMapped as aD, useRedo as aE, useRemoveReaction as aF, useRestoreToStorageVersion as aG, _useRoom as aH, useRoomInfo as aI, _useRoomSubscriptionSettings as aJ, _useSearchComments as aK, _useSelf as aL, useSendAiMessage as aM, useStatus as aN, _useStorage as aO, _useStorageRoot as aP, useSubscribeToThread as aQ, useSyncStatus as aR, useThreadSubscription as aS, _useThreads as aT, useUndo as aU, useUnreadInboxNotificationsCount as aV, useUnsubscribeFromThread as aW, useUpdateFeedMessage as aX, useUpdateFeedMetadata as aY, _useUpdateMyPresence as aZ, useUpdateNotificationSettings as a_, _useEditCommentMetadata as aa, _useEditThreadMetadata as ab, useErrorListener as ac, _useEventListener as ad, _useFeedMessages as ae, _useFeeds as af, useFileUrl as ag, useGroupInfo as ah, useHistory as ai, useHistoryVersionData as aj, useHistoryVersionStorageData as ak, useHistoryVersionYjsData as al, _useHistoryVersions as am, _useInboxNotificationThread as an, useInboxNotifications as ao, _useIsInsideRoom as ap, useLostConnectionListener as aq, useMarkAllInboxNotificationsAsRead as ar, useMarkInboxNotificationAsRead as as, useMarkThreadAsRead as at, useMarkThreadAsResolved as au, useMarkThreadAsUnresolved as av, _useMutation as aw, _useMyPresence as ax, useNotificationSettings as ay, _useOther as az, useCreateRoomComment as b, _useUrlMetadata as b0, _useUser as b1, _useUserThreads_experimental as b2, _useAiChatSuspense as b3, _useAiChatMessagesSuspense as b4, _useAiChatsSuspense as b5, useAttachmentUrlSuspense as b6, _useFeedMessagesSuspense as b7, _useFeedsSuspense as b8, useFileUrlSuspense as b9, useGroupInfoSuspense as ba, _useHistoryVersionsSuspense as bb, useInboxNotificationsSuspense as bc, useNotificationSettingsSuspense as bd, _useOtherSuspense as be, _useOthersSuspense as bf, useOthersConnectionIdsSuspense as bg, _useOthersMappedSuspense as bh, useRoomInfoSuspense as bi, _useRoomSubscriptionSettingsSuspense as bj, _useSelfSuspense as bk, _useStorageSuspense as bl, _useThreadsSuspense as bm, useUnreadInboxNotificationsCountSuspense as bn, _useUrlMetadataSuspense as bo, _useUserSuspense as bp, _useUserThreadsSuspense_experimental as bq, 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, useRoomFileUrl as t, useAddRoomCommentReaction as u, useRoomPermissions as v, useRoomThreadSubscription as w, useSuspendUntilPresenceReady as x, useSuspendUntilStorageReady as y, useYjsProvider as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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
|
-
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';
|
|
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, LiveFileReference, 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';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
|
|
@@ -254,6 +254,8 @@ 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">;
|
|
257
259
|
type GroupAsyncResult = AsyncResult<GroupData | undefined, "group">;
|
|
258
260
|
type CreateThreadOptions<TM extends BaseMetadata, CM extends BaseMetadata> = Resolve<{
|
|
259
261
|
body: CommentBody;
|
|
@@ -1120,6 +1122,16 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
1120
1122
|
* const { url, error, isLoading } = useAttachmentUrl("at_xxx");
|
|
1121
1123
|
*/
|
|
1122
1124
|
useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncResult;
|
|
1125
|
+
/**
|
|
1126
|
+
* Returns a presigned URL for a `LiveFile`.
|
|
1127
|
+
*
|
|
1128
|
+
* @example
|
|
1129
|
+
* const { url, error, isLoading } = useFileUrl("fl_xxx");
|
|
1130
|
+
*
|
|
1131
|
+
* @example
|
|
1132
|
+
* const { url, error, isLoading } = useFileUrl(liveFile);
|
|
1133
|
+
*/
|
|
1134
|
+
useFileUrl(file: LiveFileReference): FileUrlAsyncResult;
|
|
1123
1135
|
/**
|
|
1124
1136
|
* (Private beta) Returns a history of versions of the current room.
|
|
1125
1137
|
*
|
|
@@ -1277,6 +1289,16 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
1277
1289
|
* const { url } = useAttachmentUrl("at_xxx");
|
|
1278
1290
|
*/
|
|
1279
1291
|
useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncSuccess;
|
|
1292
|
+
/**
|
|
1293
|
+
* Returns a presigned URL for a `LiveFile`.
|
|
1294
|
+
*
|
|
1295
|
+
* @example
|
|
1296
|
+
* const { url } = useFileUrl("fl_xxx");
|
|
1297
|
+
*
|
|
1298
|
+
* @example
|
|
1299
|
+
* const { url } = useFileUrl(liveFile);
|
|
1300
|
+
*/
|
|
1301
|
+
useFileUrl(file: LiveFileReference): FileUrlAsyncSuccess;
|
|
1280
1302
|
}>;
|
|
1281
1303
|
}>;
|
|
1282
1304
|
/**
|
|
@@ -2758,6 +2780,20 @@ declare function useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncResul
|
|
|
2758
2780
|
* @private For internal use only. Do not rely on this hook. Use `useAttachmentUrl` instead.
|
|
2759
2781
|
*/
|
|
2760
2782
|
declare function useRoomAttachmentUrl(attachmentId: string, roomId: string): AttachmentUrlAsyncResult;
|
|
2783
|
+
/**
|
|
2784
|
+
* Returns a presigned URL for a `LiveFile`.
|
|
2785
|
+
*
|
|
2786
|
+
* @example
|
|
2787
|
+
* const { url, error, isLoading } = useFileUrl("fl_xxx");
|
|
2788
|
+
*
|
|
2789
|
+
* @example
|
|
2790
|
+
* const { url, error, isLoading } = useFileUrl(liveFile);
|
|
2791
|
+
*/
|
|
2792
|
+
declare function useFileUrl(file: LiveFileReference): FileUrlAsyncResult;
|
|
2793
|
+
/**
|
|
2794
|
+
* @private For internal use only. Do not rely on this hook. Use `useFileUrl` instead.
|
|
2795
|
+
*/
|
|
2796
|
+
declare function useRoomFileUrl(file: LiveFileReference, roomId: string): FileUrlAsyncResult;
|
|
2761
2797
|
/**
|
|
2762
2798
|
* Returns a presigned URL for an attachment by its ID.
|
|
2763
2799
|
*
|
|
@@ -2769,6 +2805,20 @@ declare function useAttachmentUrlSuspense(attachmentId: string): {
|
|
|
2769
2805
|
readonly url: string;
|
|
2770
2806
|
readonly error: undefined;
|
|
2771
2807
|
};
|
|
2808
|
+
/**
|
|
2809
|
+
* Returns a presigned URL for a `LiveFile`.
|
|
2810
|
+
*
|
|
2811
|
+
* @example
|
|
2812
|
+
* const { url } = useFileUrl("fl_xxx");
|
|
2813
|
+
*
|
|
2814
|
+
* @example
|
|
2815
|
+
* const { url } = useFileUrl(liveFile);
|
|
2816
|
+
*/
|
|
2817
|
+
declare function useFileUrlSuspense(file: LiveFileReference): {
|
|
2818
|
+
readonly isLoading: false;
|
|
2819
|
+
readonly url: string;
|
|
2820
|
+
readonly error?: undefined;
|
|
2821
|
+
};
|
|
2772
2822
|
/**
|
|
2773
2823
|
* @private For internal use only. Do not rely on this hook.
|
|
2774
2824
|
*/
|
|
@@ -3313,4 +3363,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
3313
3363
|
*/
|
|
3314
3364
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
3315
3365
|
|
|
3316
|
-
export {
|
|
3366
|
+
export { useCreateFeedMessage as $, type RegisterAiToolProps as A, type AiChatStatus as B, ClientContext as C, GlobalRoomContext as D, type UseThreadsOptions as E, createLiveblocksContext as F, type GroupAsyncResult as G, createRoomContext as H, _useAddReaction as I, _useAiChat as J, _useAiChatMessages as K, LiveblocksProvider as L, type MutationContext as M, useAiChatStatus as N, _useAiChats as O, useAttachmentUrl as P, _useBroadcastEvent as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCanRedo as T, type UseSendAiMessageOptions as U, useCanUndo as V, useClient as W, useCreateAiChat as X, _useCreateComment as Y, useCreateFeed as Z, _RoomProvider as _, useClientOrNull as a, useUpdateRoomSubscriptionSettings as a$, _useCreateThread as a0, useDeleteAiChat as a1, useDeleteAllInboxNotifications as a2, useDeleteComment as a3, useDeleteFeed as a4, useDeleteFeedMessage as a5, useDeleteHistoryVersion as a6, useDeleteInboxNotification as a7, _useDeleteThread as a8, _useEditComment as a9, _useOthers as aA, useOthersConnectionIds as aB, _useOthersListener as aC, _useOthersMapped as aD, useRedo as aE, useRemoveReaction as aF, useRestoreToStorageVersion as aG, _useRoom as aH, useRoomInfo as aI, _useRoomSubscriptionSettings as aJ, _useSearchComments as aK, _useSelf as aL, useSendAiMessage as aM, useStatus as aN, _useStorage as aO, _useStorageRoot as aP, useSubscribeToThread as aQ, useSyncStatus as aR, useThreadSubscription as aS, _useThreads as aT, useUndo as aU, useUnreadInboxNotificationsCount as aV, useUnsubscribeFromThread as aW, useUpdateFeedMessage as aX, useUpdateFeedMetadata as aY, _useUpdateMyPresence as aZ, useUpdateNotificationSettings as a_, _useEditCommentMetadata as aa, _useEditThreadMetadata as ab, useErrorListener as ac, _useEventListener as ad, _useFeedMessages as ae, _useFeeds as af, useFileUrl as ag, useGroupInfo as ah, useHistory as ai, useHistoryVersionData as aj, useHistoryVersionStorageData as ak, useHistoryVersionYjsData as al, _useHistoryVersions as am, _useInboxNotificationThread as an, useInboxNotifications as ao, _useIsInsideRoom as ap, useLostConnectionListener as aq, useMarkAllInboxNotificationsAsRead as ar, useMarkInboxNotificationAsRead as as, useMarkThreadAsRead as at, useMarkThreadAsResolved as au, useMarkThreadAsUnresolved as av, _useMutation as aw, _useMyPresence as ax, useNotificationSettings as ay, _useOther as az, useCreateRoomComment as b, _useUrlMetadata as b0, _useUser as b1, _useUserThreads_experimental as b2, _useAiChatSuspense as b3, _useAiChatMessagesSuspense as b4, _useAiChatsSuspense as b5, useAttachmentUrlSuspense as b6, _useFeedMessagesSuspense as b7, _useFeedsSuspense as b8, useFileUrlSuspense as b9, useGroupInfoSuspense as ba, _useHistoryVersionsSuspense as bb, useInboxNotificationsSuspense as bc, useNotificationSettingsSuspense as bd, _useOtherSuspense as be, _useOthersSuspense as bf, useOthersConnectionIdsSuspense as bg, _useOthersMappedSuspense as bh, useRoomInfoSuspense as bi, _useRoomSubscriptionSettingsSuspense as bj, _useSelfSuspense as bk, _useStorageSuspense as bl, _useThreadsSuspense as bm, useUnreadInboxNotificationsCountSuspense as bn, _useUrlMetadataSuspense as bo, _useUserSuspense as bp, _useUserThreadsSuspense_experimental as bq, 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, useRoomFileUrl as t, useAddRoomCommentReaction as u, useRoomPermissions as v, useRoomThreadSubscription as w, useSuspendUntilPresenceReady as x, useSuspendUntilStorageReady as y, useYjsProvider as z };
|
package/dist/suspense.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkCACTXCDPcjs = require('./chunk-CACTXCDP.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -85,12 +85,14 @@ var _chunkDAXUX747cjs = require('./chunk-DAXUX747.cjs');
|
|
|
85
85
|
|
|
86
86
|
|
|
87
87
|
|
|
88
|
-
|
|
88
|
+
|
|
89
|
+
var _chunkL5JH73RJcjs = require('./chunk-L5JH73RJ.cjs');
|
|
89
90
|
|
|
90
91
|
// src/suspense.ts
|
|
91
92
|
var _core = require('@liveblocks/core');
|
|
92
93
|
var _client = require('@liveblocks/client');
|
|
93
|
-
_core.detectDupes.call(void 0,
|
|
94
|
+
_core.detectDupes.call(void 0, _chunkCACTXCDPcjs.PKG_NAME, _chunkCACTXCDPcjs.PKG_VERSION, _chunkCACTXCDPcjs.PKG_FORMAT);
|
|
95
|
+
|
|
94
96
|
|
|
95
97
|
|
|
96
98
|
|
|
@@ -175,5 +177,5 @@ _core.detectDupes.call(void 0, _chunkDAXUX747cjs.PKG_NAME, _chunkDAXUX747cjs.PKG
|
|
|
175
177
|
|
|
176
178
|
|
|
177
179
|
|
|
178
|
-
exports.ClientContext =
|
|
180
|
+
exports.ClientContext = _chunkL5JH73RJcjs.ClientContext; exports.ClientSideSuspense = _chunkCACTXCDPcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkL5JH73RJcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkL5JH73RJcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkL5JH73RJcjs.RegisterAiTool; exports.RoomContext = _chunkL5JH73RJcjs.GlobalRoomContext; exports.RoomProvider = _chunkL5JH73RJcjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkL5JH73RJcjs._useAddReaction; exports.useAiChat = _chunkL5JH73RJcjs._useAiChatSuspense; exports.useAiChatMessages = _chunkL5JH73RJcjs._useAiChatMessagesSuspense; exports.useAiChatStatus = _chunkL5JH73RJcjs.useAiChatStatus; exports.useAiChats = _chunkL5JH73RJcjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunkL5JH73RJcjs.useAttachmentUrlSuspense; exports.useBroadcastEvent = _chunkL5JH73RJcjs._useBroadcastEvent; exports.useCanRedo = _chunkL5JH73RJcjs.useCanRedo; exports.useCanUndo = _chunkL5JH73RJcjs.useCanUndo; exports.useClient = _chunkL5JH73RJcjs.useClient; exports.useCreateAiChat = _chunkL5JH73RJcjs.useCreateAiChat; exports.useCreateComment = _chunkL5JH73RJcjs._useCreateComment; exports.useCreateFeed = _chunkL5JH73RJcjs.useCreateFeed; exports.useCreateFeedMessage = _chunkL5JH73RJcjs.useCreateFeedMessage; exports.useCreateThread = _chunkL5JH73RJcjs._useCreateThread; exports.useDeleteAiChat = _chunkL5JH73RJcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkL5JH73RJcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkL5JH73RJcjs.useDeleteComment; exports.useDeleteFeed = _chunkL5JH73RJcjs.useDeleteFeed; exports.useDeleteFeedMessage = _chunkL5JH73RJcjs.useDeleteFeedMessage; exports.useDeleteInboxNotification = _chunkL5JH73RJcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkL5JH73RJcjs._useDeleteThread; exports.useEditComment = _chunkL5JH73RJcjs._useEditComment; exports.useEditCommentMetadata = _chunkL5JH73RJcjs._useEditCommentMetadata; exports.useEditThreadMetadata = _chunkL5JH73RJcjs._useEditThreadMetadata; exports.useErrorListener = _chunkL5JH73RJcjs.useErrorListener; exports.useEventListener = _chunkL5JH73RJcjs._useEventListener; exports.useFeedMessages = _chunkL5JH73RJcjs._useFeedMessagesSuspense; exports.useFeeds = _chunkL5JH73RJcjs._useFeedsSuspense; exports.useFileUrl = _chunkL5JH73RJcjs.useFileUrlSuspense; exports.useGroupInfo = _chunkL5JH73RJcjs.useGroupInfoSuspense; exports.useHistory = _chunkL5JH73RJcjs.useHistory; exports.useHistoryVersions = _chunkL5JH73RJcjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkL5JH73RJcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkL5JH73RJcjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkL5JH73RJcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkL5JH73RJcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkL5JH73RJcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkL5JH73RJcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkL5JH73RJcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkL5JH73RJcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkL5JH73RJcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkL5JH73RJcjs._useMutation; exports.useMyPresence = _chunkL5JH73RJcjs._useMyPresence; exports.useNotificationSettings = _chunkL5JH73RJcjs.useNotificationSettingsSuspense; exports.useOther = _chunkL5JH73RJcjs._useOtherSuspense; exports.useOthers = _chunkL5JH73RJcjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkL5JH73RJcjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkL5JH73RJcjs._useOthersListener; exports.useOthersMapped = _chunkL5JH73RJcjs._useOthersMappedSuspense; exports.useRedo = _chunkL5JH73RJcjs.useRedo; exports.useRemoveReaction = _chunkL5JH73RJcjs.useRemoveReaction; exports.useRoom = _chunkL5JH73RJcjs._useRoom; exports.useRoomInfo = _chunkL5JH73RJcjs.useRoomInfoSuspense; exports.useRoomSubscriptionSettings = _chunkL5JH73RJcjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunkL5JH73RJcjs._useSelfSuspense; exports.useSendAiMessage = _chunkL5JH73RJcjs.useSendAiMessage; exports.useStatus = _chunkL5JH73RJcjs.useStatus; exports.useStorage = _chunkL5JH73RJcjs._useStorageSuspense; exports.useStorageRoot = _chunkL5JH73RJcjs._useStorageRoot; exports.useSubscribeToThread = _chunkL5JH73RJcjs.useSubscribeToThread; exports.useSyncStatus = _chunkL5JH73RJcjs.useSyncStatus; exports.useThreadSubscription = _chunkL5JH73RJcjs.useThreadSubscription; exports.useThreads = _chunkL5JH73RJcjs._useThreadsSuspense; exports.useUndo = _chunkL5JH73RJcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkL5JH73RJcjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunkL5JH73RJcjs.useUnsubscribeFromThread; exports.useUpdateFeedMessage = _chunkL5JH73RJcjs.useUpdateFeedMessage; exports.useUpdateFeedMetadata = _chunkL5JH73RJcjs.useUpdateFeedMetadata; exports.useUpdateMyPresence = _chunkL5JH73RJcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkL5JH73RJcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkL5JH73RJcjs.useUpdateRoomSubscriptionSettings; exports.useUrlMetadata = _chunkL5JH73RJcjs._useUrlMetadataSuspense; exports.useUser = _chunkL5JH73RJcjs._useUserSuspense; exports.useUserThreads_experimental = _chunkL5JH73RJcjs._useUserThreadsSuspense_experimental;
|
|
179
181
|
//# 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;AACF,wDAA6B;AAC7B;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;AACA;AACF,wDAA6B;AAC7B;AACA;ACzFA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;AD0F7C;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;AACF,i/KAAC","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 useFileUrlSuspense as useFileUrl,\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 { B as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, A as RegisterAiToolProps, D as RoomContext, _ as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, E as UseThreadsOptions, I as useAddReaction, b3 as useAiChat, b4 as useAiChatMessages, N as useAiChatStatus, b5 as useAiChats, b6 as useAttachmentUrl, Q as useBroadcastEvent, T as useCanRedo, V as useCanUndo, W as useClient, X as useCreateAiChat, Y as useCreateComment, Z as useCreateFeed, $ as useCreateFeedMessage, a0 as useCreateThread, a1 as useDeleteAiChat, a2 as useDeleteAllInboxNotifications, a3 as useDeleteComment, a4 as useDeleteFeed, a5 as useDeleteFeedMessage, a7 as useDeleteInboxNotification, a8 as useDeleteThread, a9 as useEditComment, aa as useEditCommentMetadata, ab as useEditThreadMetadata, ac as useErrorListener, ad as useEventListener, b7 as useFeedMessages, b8 as useFeeds, b9 as useFileUrl, ba as useGroupInfo, ai as useHistory, bb as useHistoryVersions, an as useInboxNotificationThread, bc as useInboxNotifications, ap as useIsInsideRoom, aq as useLostConnectionListener, ar as useMarkAllInboxNotificationsAsRead, as as useMarkInboxNotificationAsRead, at as useMarkThreadAsRead, au as useMarkThreadAsResolved, av as useMarkThreadAsUnresolved, aw as useMutation, ax as useMyPresence, bd as useNotificationSettings, be as useOther, bf as useOthers, bg as useOthersConnectionIds, aC as useOthersListener, bh as useOthersMapped, aE as useRedo, aF as useRemoveReaction, aH as useRoom, bi as useRoomInfo, bj as useRoomSubscriptionSettings, bk as useSelf, aM as useSendAiMessage, aN as useStatus, bl as useStorage, aP as useStorageRoot, aQ as useSubscribeToThread, aR as useSyncStatus, aS as useThreadSubscription, bm as useThreads, aU as useUndo, bn as useUnreadInboxNotificationsCount, aW as useUnsubscribeFromThread, aX as useUpdateFeedMessage, aY as useUpdateFeedMetadata, aZ as useUpdateMyPresence, a_ as useUpdateNotificationSettings, a$ as useUpdateRoomSubscriptionSettings, bo as useUrlMetadata, bp as useUser, bq as useUserThreads_experimental } from './room-BRD10hWb.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 { B as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, A as RegisterAiToolProps, D as RoomContext, _ as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, E as UseThreadsOptions, I as useAddReaction, b3 as useAiChat, b4 as useAiChatMessages, N as useAiChatStatus, b5 as useAiChats, b6 as useAttachmentUrl, Q as useBroadcastEvent, T as useCanRedo, V as useCanUndo, W as useClient, X as useCreateAiChat, Y as useCreateComment, Z as useCreateFeed, $ as useCreateFeedMessage, a0 as useCreateThread, a1 as useDeleteAiChat, a2 as useDeleteAllInboxNotifications, a3 as useDeleteComment, a4 as useDeleteFeed, a5 as useDeleteFeedMessage, a7 as useDeleteInboxNotification, a8 as useDeleteThread, a9 as useEditComment, aa as useEditCommentMetadata, ab as useEditThreadMetadata, ac as useErrorListener, ad as useEventListener, b7 as useFeedMessages, b8 as useFeeds, b9 as useFileUrl, ba as useGroupInfo, ai as useHistory, bb as useHistoryVersions, an as useInboxNotificationThread, bc as useInboxNotifications, ap as useIsInsideRoom, aq as useLostConnectionListener, ar as useMarkAllInboxNotificationsAsRead, as as useMarkInboxNotificationAsRead, at as useMarkThreadAsRead, au as useMarkThreadAsResolved, av as useMarkThreadAsUnresolved, aw as useMutation, ax as useMyPresence, bd as useNotificationSettings, be as useOther, bf as useOthers, bg as useOthersConnectionIds, aC as useOthersListener, bh as useOthersMapped, aE as useRedo, aF as useRemoveReaction, aH as useRoom, bi as useRoomInfo, bj as useRoomSubscriptionSettings, bk as useSelf, aM as useSendAiMessage, aN as useStatus, bl as useStorage, aP as useStorageRoot, aQ as useSubscribeToThread, aR as useSyncStatus, aS as useThreadSubscription, bm as useThreads, aU as useUndo, bn as useUnreadInboxNotificationsCount, aW as useUnsubscribeFromThread, aX as useUpdateFeedMessage, aY as useUpdateFeedMetadata, aZ as useUpdateMyPresence, a_ as useUpdateNotificationSettings, a$ as useUpdateRoomSubscriptionSettings, bo as useUrlMetadata, bp as useUser, bq as useUserThreads_experimental } from './room-BRD10hWb.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-B63FZ2MX.js";
|
|
7
7
|
import {
|
|
8
8
|
ClientContext,
|
|
9
9
|
GlobalRoomContext,
|
|
@@ -59,6 +59,7 @@ import {
|
|
|
59
59
|
useDeleteFeedMessage,
|
|
60
60
|
useDeleteInboxNotification,
|
|
61
61
|
useErrorListener,
|
|
62
|
+
useFileUrlSuspense,
|
|
62
63
|
useGroupInfoSuspense,
|
|
63
64
|
useHistory,
|
|
64
65
|
useInboxNotificationsSuspense,
|
|
@@ -85,7 +86,7 @@ import {
|
|
|
85
86
|
useUpdateFeedMetadata,
|
|
86
87
|
useUpdateNotificationSettings,
|
|
87
88
|
useUpdateRoomSubscriptionSettings
|
|
88
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-CTG3FMRO.js";
|
|
89
90
|
|
|
90
91
|
// src/suspense.ts
|
|
91
92
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -130,6 +131,7 @@ export {
|
|
|
130
131
|
_useEventListener as useEventListener,
|
|
131
132
|
_useFeedMessagesSuspense as useFeedMessages,
|
|
132
133
|
_useFeedsSuspense as useFeeds,
|
|
134
|
+
useFileUrlSuspense as useFileUrl,
|
|
133
135
|
useGroupInfoSuspense as useGroupInfo,
|
|
134
136
|
useHistory,
|
|
135
137
|
_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 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":"
|
|
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 useFileUrlSuspense as useFileUrl,\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":[]}
|