@liveblocks/react 3.13.1-hackathon → 3.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_private.cjs +7 -7
- package/dist/_private.d.cts +2 -2
- package/dist/_private.d.ts +2 -2
- package/dist/_private.js +1 -1
- package/dist/{chunk-73OAUQFM.cjs → chunk-2KKSJSO6.cjs} +2 -2
- package/dist/chunk-2KKSJSO6.cjs.map +1 -0
- package/dist/{chunk-VSUKKNOK.js → chunk-ERRJHA6O.js} +2 -256
- package/dist/chunk-ERRJHA6O.js.map +1 -0
- package/dist/{chunk-JXNC4PPG.cjs → chunk-QFAOGFJK.cjs} +40 -294
- package/dist/chunk-QFAOGFJK.cjs.map +1 -0
- package/dist/{chunk-A3DIFDDH.js → chunk-SRBVM766.js} +2 -2
- package/dist/index.cjs +4 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -6
- package/dist/index.js.map +1 -1
- package/dist/{room-CVCL9bCW.d.cts → room-CEMGQ1Mj.d.cts} +2 -88
- package/dist/{room-CVCL9bCW.d.ts → room-CEMGQ1Mj.d.ts} +2 -88
- package/dist/suspense.cjs +4 -4
- package/dist/suspense.d.cts +1 -1
- package/dist/suspense.d.ts +1 -1
- package/dist/suspense.js +2 -2
- package/package.json +3 -3
- package/dist/chunk-73OAUQFM.cjs.map +0 -1
- package/dist/chunk-JXNC4PPG.cjs.map +0 -1
- package/dist/chunk-VSUKKNOK.js.map +0 -1
- /package/dist/{chunk-A3DIFDDH.js.map → chunk-SRBVM766.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/version.ts
|
|
2
2
|
var PKG_NAME = "@liveblocks/react";
|
|
3
|
-
var PKG_VERSION = "3.13.
|
|
3
|
+
var PKG_VERSION = "3.13.2";
|
|
4
4
|
var PKG_FORMAT = "esm";
|
|
5
5
|
|
|
6
6
|
// src/ClientSideSuspense.tsx
|
|
@@ -20,4 +20,4 @@ export {
|
|
|
20
20
|
PKG_FORMAT,
|
|
21
21
|
ClientSideSuspense
|
|
22
22
|
};
|
|
23
|
-
//# sourceMappingURL=chunk-
|
|
23
|
+
//# sourceMappingURL=chunk-SRBVM766.js.map
|
package/dist/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk2KKSJSO6cjs = require('./chunk-2KKSJSO6.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -81,16 +81,12 @@ var _chunk73OAUQFMcjs = require('./chunk-73OAUQFM.cjs');
|
|
|
81
81
|
|
|
82
82
|
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
var _chunkJXNC4PPGcjs = require('./chunk-JXNC4PPG.cjs');
|
|
84
|
+
var _chunkQFAOGFJKcjs = require('./chunk-QFAOGFJK.cjs');
|
|
87
85
|
|
|
88
86
|
// src/index.ts
|
|
89
87
|
var _core = require('@liveblocks/core');
|
|
90
88
|
var _client = require('@liveblocks/client');
|
|
91
|
-
_core.detectDupes.call(void 0,
|
|
92
|
-
|
|
93
|
-
|
|
89
|
+
_core.detectDupes.call(void 0, _chunk2KKSJSO6cjs.PKG_NAME, _chunk2KKSJSO6cjs.PKG_VERSION, _chunk2KKSJSO6cjs.PKG_FORMAT);
|
|
94
90
|
|
|
95
91
|
|
|
96
92
|
|
|
@@ -171,5 +167,5 @@ _core.detectDupes.call(void 0, _chunk73OAUQFMcjs.PKG_NAME, _chunk73OAUQFMcjs.PKG
|
|
|
171
167
|
|
|
172
168
|
|
|
173
169
|
|
|
174
|
-
exports.ClientContext =
|
|
170
|
+
exports.ClientContext = _chunkQFAOGFJKcjs.ClientContext; exports.ClientSideSuspense = _chunk2KKSJSO6cjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkQFAOGFJKcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkQFAOGFJKcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkQFAOGFJKcjs.RegisterAiTool; exports.RoomContext = _chunkQFAOGFJKcjs.RoomContext; exports.RoomProvider = _chunkQFAOGFJKcjs._RoomProvider; exports.createLiveblocksContext = _chunkQFAOGFJKcjs.createLiveblocksContext; exports.createRoomContext = _chunkQFAOGFJKcjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkQFAOGFJKcjs._useAddReaction; exports.useAiChat = _chunkQFAOGFJKcjs._useAiChat; exports.useAiChatMessages = _chunkQFAOGFJKcjs._useAiChatMessages; exports.useAiChatStatus = _chunkQFAOGFJKcjs.useAiChatStatus; exports.useAiChats = _chunkQFAOGFJKcjs._useAiChats; exports.useAttachmentUrl = _chunkQFAOGFJKcjs.useAttachmentUrl; exports.useBroadcastEvent = _chunkQFAOGFJKcjs._useBroadcastEvent; exports.useCanRedo = _chunkQFAOGFJKcjs.useCanRedo; exports.useCanUndo = _chunkQFAOGFJKcjs.useCanUndo; exports.useClient = _chunkQFAOGFJKcjs.useClient; exports.useCreateAiChat = _chunkQFAOGFJKcjs.useCreateAiChat; exports.useCreateComment = _chunkQFAOGFJKcjs._useCreateComment; exports.useCreateThread = _chunkQFAOGFJKcjs._useCreateThread; exports.useDeleteAiChat = _chunkQFAOGFJKcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkQFAOGFJKcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkQFAOGFJKcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkQFAOGFJKcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkQFAOGFJKcjs._useDeleteThread; exports.useEditComment = _chunkQFAOGFJKcjs._useEditComment; exports.useEditCommentMetadata = _chunkQFAOGFJKcjs._useEditCommentMetadata; exports.useEditThreadMetadata = _chunkQFAOGFJKcjs._useEditThreadMetadata; exports.useErrorListener = _chunkQFAOGFJKcjs.useErrorListener; exports.useEventListener = _chunkQFAOGFJKcjs._useEventListener; exports.useGroupInfo = _chunkQFAOGFJKcjs.useGroupInfo; exports.useHistory = _chunkQFAOGFJKcjs.useHistory; exports.useHistoryVersionData = _chunkQFAOGFJKcjs.useHistoryVersionData; exports.useHistoryVersions = _chunkQFAOGFJKcjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkQFAOGFJKcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkQFAOGFJKcjs.useInboxNotifications; exports.useIsInsideRoom = _chunkQFAOGFJKcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkQFAOGFJKcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkQFAOGFJKcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkQFAOGFJKcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkQFAOGFJKcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkQFAOGFJKcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkQFAOGFJKcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkQFAOGFJKcjs._useMutation; exports.useMyPresence = _chunkQFAOGFJKcjs._useMyPresence; exports.useNotificationSettings = _chunkQFAOGFJKcjs.useNotificationSettings; exports.useOther = _chunkQFAOGFJKcjs._useOther; exports.useOthers = _chunkQFAOGFJKcjs._useOthers; exports.useOthersConnectionIds = _chunkQFAOGFJKcjs.useOthersConnectionIds; exports.useOthersListener = _chunkQFAOGFJKcjs._useOthersListener; exports.useOthersMapped = _chunkQFAOGFJKcjs._useOthersMapped; exports.useRedo = _chunkQFAOGFJKcjs.useRedo; exports.useRemoveReaction = _chunkQFAOGFJKcjs.useRemoveReaction; exports.useRoom = _chunkQFAOGFJKcjs._useRoom; exports.useRoomInfo = _chunkQFAOGFJKcjs.useRoomInfo; exports.useRoomSubscriptionSettings = _chunkQFAOGFJKcjs._useRoomSubscriptionSettings; exports.useSearchComments = _chunkQFAOGFJKcjs._useSearchComments; exports.useSelf = _chunkQFAOGFJKcjs._useSelf; exports.useSendAiMessage = _chunkQFAOGFJKcjs.useSendAiMessage; exports.useStatus = _chunkQFAOGFJKcjs.useStatus; exports.useStorage = _chunkQFAOGFJKcjs._useStorage; exports.useStorageRoot = _chunkQFAOGFJKcjs._useStorageRoot; exports.useSubscribeToThread = _chunkQFAOGFJKcjs.useSubscribeToThread; exports.useSyncStatus = _chunkQFAOGFJKcjs.useSyncStatus; exports.useThreadSubscription = _chunkQFAOGFJKcjs.useThreadSubscription; exports.useThreads = _chunkQFAOGFJKcjs._useThreads; exports.useUndo = _chunkQFAOGFJKcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkQFAOGFJKcjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunkQFAOGFJKcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkQFAOGFJKcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkQFAOGFJKcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkQFAOGFJKcjs.useUpdateRoomSubscriptionSettings; exports.useUrlMetadata = _chunkQFAOGFJKcjs._useUrlMetadata; exports.useUser = _chunkQFAOGFJKcjs._useUser; exports.useUserThreads_experimental = _chunkQFAOGFJKcjs._useUserThreads_experimental;
|
|
175
171
|
//# 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;
|
|
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;AACF,wDAA6B;AAC7B;AACA;ACpFA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADqF7C;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;AACF,mhKAAC","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 { ClientContext, RoomContext, useClient } 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} 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 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, w as RegisterAiToolProps } from './room-
|
|
2
|
-
export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, B as createLiveblocksContext, K as createRoomContext, O as useAddReaction,
|
|
1
|
+
import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-CEMGQ1Mj.cjs';
|
|
2
|
+
export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, B as createLiveblocksContext, K as createRoomContext, O as useAddReaction, aJ as useAiChat, aL as useAiChatMessages, aM as useAiChatStatus, aK as useAiChats, av as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, aB as useCreateAiChat, V as useCreateComment, W as useCreateThread, aC as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, a0 as useEditCommentMetadata, $ as useEditThreadMetadata, F as useErrorListener, a5 as useEventListener, aG as useGroupInfo, a6 as useHistory, am as useHistoryVersionData, aw as useHistoryVersions, _ as useInboxNotificationThread, ay as useInboxNotifications, a7 as useIsInsideRoom, a8 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a9 as useMarkThreadAsRead, a1 as useMarkThreadAsResolved, a2 as useMarkThreadAsUnresolved, aa as useMutation, ab as useMyPresence, az as useNotificationSettings, an as useOther, ao as useOthers, ap as useOthersConnectionIds, ac as useOthersListener, aq as useOthersMapped, ad as useRedo, ae as useRemoveReaction, af as useRoom, aF as useRoomInfo, ax as useRoomSubscriptionSettings, au as useSearchComments, ar as useSelf, aD as useSendAiMessage, ag as useStatus, as as useStorage, ah as useStorageRoot, a3 as useSubscribeToThread, J as useSyncStatus, ai as useThreadSubscription, at as useThreads, aj as useUndo, aH as useUnreadInboxNotificationsCount, a4 as useUnsubscribeFromThread, ak as useUpdateMyPresence, aA as useUpdateNotificationSettings, al as useUpdateRoomSubscriptionSettings, aN as useUrlMetadata, aI as useUser, aE as useUserThreads_experimental } from './room-CEMGQ1Mj.cjs';
|
|
3
3
|
export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import * as react from 'react';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-
|
|
2
|
-
export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, B as createLiveblocksContext, K as createRoomContext, O as useAddReaction,
|
|
1
|
+
import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-CEMGQ1Mj.js';
|
|
2
|
+
export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, B as createLiveblocksContext, K as createRoomContext, O as useAddReaction, aJ as useAiChat, aL as useAiChatMessages, aM as useAiChatStatus, aK as useAiChats, av as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, aB as useCreateAiChat, V as useCreateComment, W as useCreateThread, aC as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, a0 as useEditCommentMetadata, $ as useEditThreadMetadata, F as useErrorListener, a5 as useEventListener, aG as useGroupInfo, a6 as useHistory, am as useHistoryVersionData, aw as useHistoryVersions, _ as useInboxNotificationThread, ay as useInboxNotifications, a7 as useIsInsideRoom, a8 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a9 as useMarkThreadAsRead, a1 as useMarkThreadAsResolved, a2 as useMarkThreadAsUnresolved, aa as useMutation, ab as useMyPresence, az as useNotificationSettings, an as useOther, ao as useOthers, ap as useOthersConnectionIds, ac as useOthersListener, aq as useOthersMapped, ad as useRedo, ae as useRemoveReaction, af as useRoom, aF as useRoomInfo, ax as useRoomSubscriptionSettings, au as useSearchComments, ar as useSelf, aD as useSendAiMessage, ag as useStatus, as as useStorage, ah as useStorageRoot, a3 as useSubscribeToThread, J as useSyncStatus, ai as useThreadSubscription, at as useThreads, aj as useUndo, aH as useUnreadInboxNotificationsCount, a4 as useUnsubscribeFromThread, ak as useUpdateMyPresence, aA as useUpdateNotificationSettings, al as useUpdateRoomSubscriptionSettings, aN as useUrlMetadata, aI as useUser, aE as useUserThreads_experimental } from './room-CEMGQ1Mj.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-SRBVM766.js";
|
|
7
7
|
import {
|
|
8
8
|
ClientContext,
|
|
9
9
|
LiveblocksProvider,
|
|
@@ -12,8 +12,6 @@ import {
|
|
|
12
12
|
RoomContext,
|
|
13
13
|
_RoomProvider,
|
|
14
14
|
_useAddReaction,
|
|
15
|
-
_useAgentSession,
|
|
16
|
-
_useAgentSessions,
|
|
17
15
|
_useAiChat,
|
|
18
16
|
_useAiChatMessages,
|
|
19
17
|
_useAiChats,
|
|
@@ -83,7 +81,7 @@ import {
|
|
|
83
81
|
useUnsubscribeFromThread,
|
|
84
82
|
useUpdateNotificationSettings,
|
|
85
83
|
useUpdateRoomSubscriptionSettings
|
|
86
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-ERRJHA6O.js";
|
|
87
85
|
|
|
88
86
|
// src/index.ts
|
|
89
87
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -102,8 +100,6 @@ export {
|
|
|
102
100
|
isNotificationChannelEnabled,
|
|
103
101
|
shallow,
|
|
104
102
|
_useAddReaction as useAddReaction,
|
|
105
|
-
_useAgentSession as useAgentSession,
|
|
106
|
-
_useAgentSessions as useAgentSessions,
|
|
107
103
|
_useAiChat as useAiChat,
|
|
108
104
|
_useAiChatMessages as useAiChatMessages,
|
|
109
105
|
useAiChatStatus,
|
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 { ClientContext, RoomContext, useClient } 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} 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
|
|
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 { ClientContext, RoomContext, useClient } 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} 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 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":[]}
|
|
@@ -2,7 +2,7 @@ import * as react from 'react';
|
|
|
2
2
|
import { ComponentType, Context, PropsWithChildren, ReactNode } from 'react';
|
|
3
3
|
import { BaseUserMeta, Client, JsonObject, LsonObject, LiveObject, User, Json, RoomSubscriptionSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, ClientOptions, ThreadData as ThreadData$1, CommentData as CommentData$1 } from '@liveblocks/client';
|
|
4
4
|
import * as _liveblocks_core from '@liveblocks/core';
|
|
5
|
-
import { OpaqueClient, OpaqueRoom, AiKnowledgeSource, AiOpaqueToolDefinition, Relax, AiAssistantContentPart, BaseMetadata, QueryMetadata, AsyncResult, DRI, AsyncSuccess, DGI, GroupData, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, ToImmutable, MessageId, PartialNotificationSettings, AiChatsQuery, AsyncLoading, AsyncError, ThreadData, SearchCommentsResult,
|
|
5
|
+
import { OpaqueClient, OpaqueRoom, AiKnowledgeSource, AiOpaqueToolDefinition, Relax, AiAssistantContentPart, BaseMetadata, QueryMetadata, AsyncResult, DRI, AsyncSuccess, DGI, GroupData, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, ToImmutable, MessageId, PartialNotificationSettings, AiChatsQuery, AsyncLoading, AsyncError, ThreadData, SearchCommentsResult, HistoryVersion, AiChat, UrlMetadata, Client as Client$1, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, AiUserMessage, WithRequired, AiChatMessage, WithNavigation, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, SubscriptionKey, SubscriptionData, DerivedSignal, DefaultMap, CommentUserReaction, InboxNotificationDeleteInfo, SubscriptionDeleteInfo, RoomSubscriptionSettings as RoomSubscriptionSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DTM, DCM, TextEditorType, IYjsProvider, MentionData, DP, DS, DE } from '@liveblocks/core';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -206,26 +206,6 @@ type UseInboxNotificationsOptions = {
|
|
|
206
206
|
*/
|
|
207
207
|
query?: InboxNotificationsQuery;
|
|
208
208
|
};
|
|
209
|
-
type UseAgentSessionsOptions = {
|
|
210
|
-
/**
|
|
211
|
-
* Optional timestamp filter. Only sessions created or updated after this timestamp will be returned.
|
|
212
|
-
*/
|
|
213
|
-
since?: number;
|
|
214
|
-
/**
|
|
215
|
-
* Optional metadata filter. Only sessions with matching metadata will be returned.
|
|
216
|
-
*/
|
|
217
|
-
metadata?: Record<string, string>;
|
|
218
|
-
};
|
|
219
|
-
type UseAgentSessionOptions = {
|
|
220
|
-
/**
|
|
221
|
-
* Optional cursor for pagination.
|
|
222
|
-
*/
|
|
223
|
-
cursor?: string;
|
|
224
|
-
/**
|
|
225
|
-
* Optional limit for the number of messages to fetch.
|
|
226
|
-
*/
|
|
227
|
-
limit?: number;
|
|
228
|
-
};
|
|
229
209
|
type UserAsyncResult<T> = AsyncResult<T, "user">;
|
|
230
210
|
type UserAsyncSuccess<T> = AsyncSuccess<T, "user">;
|
|
231
211
|
type RoomInfoAsyncResult = AsyncResult<DRI, "info">;
|
|
@@ -288,10 +268,6 @@ type ThreadsAsyncResult<TM extends BaseMetadata, CM extends BaseMetadata> = Page
|
|
|
288
268
|
type SearchCommentsAsyncResult = AsyncResult<Array<SearchCommentsResult>, "results">;
|
|
289
269
|
type InboxNotificationsAsyncSuccess = PagedAsyncSuccess<InboxNotificationData[], "inboxNotifications">;
|
|
290
270
|
type InboxNotificationsAsyncResult = PagedAsyncResult<InboxNotificationData[], "inboxNotifications">;
|
|
291
|
-
type AgentSessionsAsyncSuccess = PagedAsyncSuccess<AgentSession[], "sessions">;
|
|
292
|
-
type AgentSessionsAsyncResult = PagedAsyncResult<AgentSession[], "sessions">;
|
|
293
|
-
type AgentSessionAsyncSuccess = PagedAsyncSuccess<AgentMessage[], "messages">;
|
|
294
|
-
type AgentSessionAsyncResult = PagedAsyncResult<AgentMessage[], "messages">;
|
|
295
271
|
type UnreadInboxNotificationsCountAsyncSuccess = AsyncSuccess<number, "count">;
|
|
296
272
|
type UnreadInboxNotificationsCountAsyncResult = AsyncResult<number, "count">;
|
|
297
273
|
type NotificationSettingsAsyncResult = AsyncResult<NotificationSettings, "settings">;
|
|
@@ -1009,20 +985,6 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
1009
985
|
* const { threads, error, isLoading } = useThreads();
|
|
1010
986
|
*/
|
|
1011
987
|
useThreads(options?: UseThreadsOptions<TM>): ThreadsAsyncResult<TM, CM>;
|
|
1012
|
-
/**
|
|
1013
|
-
* Returns agent sessions for the current room.
|
|
1014
|
-
*
|
|
1015
|
-
* @example
|
|
1016
|
-
* const { sessions, error, isLoading } = useAgentSessions();
|
|
1017
|
-
*/
|
|
1018
|
-
useAgentSessions(options?: UseAgentSessionsOptions): AgentSessionsAsyncResult;
|
|
1019
|
-
/**
|
|
1020
|
-
* Returns agent messages for a specific session in the current room.
|
|
1021
|
-
*
|
|
1022
|
-
* @example
|
|
1023
|
-
* const { messages, error, isLoading } = useAgentSession("session-id");
|
|
1024
|
-
*/
|
|
1025
|
-
useAgentSession(sessionId: string, options?: UseAgentSessionOptions): AgentSessionAsyncResult;
|
|
1026
988
|
/**
|
|
1027
989
|
* Returns the result of searching comments by text in the current room. The result includes the id and the plain text content of the matched comments along with the parent thread id of the comment.
|
|
1028
990
|
*
|
|
@@ -1118,20 +1080,6 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
1118
1080
|
* const { threads } = useThreads();
|
|
1119
1081
|
*/
|
|
1120
1082
|
useThreads(options?: UseThreadsOptions<TM>): ThreadsAsyncSuccess<TM, CM>;
|
|
1121
|
-
/**
|
|
1122
|
-
* Returns agent sessions for the current room.
|
|
1123
|
-
*
|
|
1124
|
-
* @example
|
|
1125
|
-
* const { sessions } = useAgentSessions();
|
|
1126
|
-
*/
|
|
1127
|
-
useAgentSessions(options?: UseAgentSessionsOptions): AgentSessionsAsyncSuccess;
|
|
1128
|
-
/**
|
|
1129
|
-
* Returns agent messages for a specific session in the current room.
|
|
1130
|
-
*
|
|
1131
|
-
* @example
|
|
1132
|
-
* const { messages } = useAgentSession("session-id");
|
|
1133
|
-
*/
|
|
1134
|
-
useAgentSession(sessionId: string, options?: UseAgentSessionOptions): AgentSessionAsyncSuccess;
|
|
1135
1083
|
/**
|
|
1136
1084
|
* (Private beta) Returns a history of versions of the current room.
|
|
1137
1085
|
*
|
|
@@ -1839,8 +1787,6 @@ declare class UmbrellaStore<TM extends BaseMetadata, CM extends BaseMetadata> {
|
|
|
1839
1787
|
readonly messagesByChatId: DefaultMap<string, DefaultMap<MessageId | null, LoadableResource<AiChatMessagesAsyncResult>>>;
|
|
1840
1788
|
readonly aiChatById: DefaultMap<string, LoadableResource<AiChatAsyncResult>>;
|
|
1841
1789
|
readonly urlMetadataByUrl: DefaultMap<string, LoadableResource<UrlMetadataAsyncResult>>;
|
|
1842
|
-
readonly loadingAgentSessions: DefaultMap<string, LoadableResource<AgentSessionsAsyncResult>>;
|
|
1843
|
-
readonly loadingAgentMessages: DefaultMap<string, LoadableResource<AgentSessionAsyncResult>>;
|
|
1844
1790
|
};
|
|
1845
1791
|
constructor(client: OpaqueClient);
|
|
1846
1792
|
/**
|
|
@@ -1905,24 +1851,6 @@ declare class UmbrellaStore<TM extends BaseMetadata, CM extends BaseMetadata> {
|
|
|
1905
1851
|
*/
|
|
1906
1852
|
updateRoomSubscriptionSettings(roomId: string, optimisticId: string, settings: Readonly<RoomSubscriptionSettings$1>): void;
|
|
1907
1853
|
fetchNotificationsDeltaUpdate(signal: AbortSignal): Promise<void>;
|
|
1908
|
-
/**
|
|
1909
|
-
* Registers a room instance for agent session fetching.
|
|
1910
|
-
* Called by RoomProvider when it mounts.
|
|
1911
|
-
*/
|
|
1912
|
-
registerRoom(roomId: RoomId, room: OpaqueRoom): void;
|
|
1913
|
-
/**
|
|
1914
|
-
* Unregisters a room instance.
|
|
1915
|
-
* Called by RoomProvider when it unmounts.
|
|
1916
|
-
*/
|
|
1917
|
-
unregisterRoom(roomId: RoomId): void;
|
|
1918
|
-
/**
|
|
1919
|
-
* Updates the agent sessions cache based on WebSocket events.
|
|
1920
|
-
*/
|
|
1921
|
-
updateAgentSessions(roomId: RoomId, sessions: readonly AgentSession[], operation: "list" | "added" | "updated" | "deleted"): void;
|
|
1922
|
-
/**
|
|
1923
|
-
* Updates the agent messages cache based on WebSocket events.
|
|
1924
|
-
*/
|
|
1925
|
-
updateAgentMessages(_roomId: RoomId, sessionId: string, messages: readonly AgentMessage[], operation: "list" | "added" | "updated" | "deleted"): void;
|
|
1926
1854
|
fetchUnreadNotificationsCount(queryKey: InboxNotificationsQueryKey, signal: AbortSignal): Promise<void>;
|
|
1927
1855
|
fetchRoomThreadsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
|
|
1928
1856
|
fetchUserThreadsDeltaUpdate(signal: AbortSignal): Promise<void>;
|
|
@@ -2791,20 +2719,6 @@ declare const _useOthersMappedSuspense: TypedBundle["suspense"]["useOthersMapped
|
|
|
2791
2719
|
* const { threads, error, isLoading } = useThreads();
|
|
2792
2720
|
*/
|
|
2793
2721
|
declare const _useThreads: TypedBundle["useThreads"];
|
|
2794
|
-
/**
|
|
2795
|
-
* Returns agent sessions for the current room.
|
|
2796
|
-
*
|
|
2797
|
-
* @example
|
|
2798
|
-
* const { sessions, error, isLoading } = useAgentSessions();
|
|
2799
|
-
*/
|
|
2800
|
-
declare const _useAgentSessions: TypedBundle["useAgentSessions"];
|
|
2801
|
-
/**
|
|
2802
|
-
* Returns agent messages for a specific session in the current room.
|
|
2803
|
-
*
|
|
2804
|
-
* @example
|
|
2805
|
-
* const { messages, error, isLoading } = useAgentSession("session-id");
|
|
2806
|
-
*/
|
|
2807
|
-
declare const _useAgentSession: TypedBundle["useAgentSession"];
|
|
2808
2722
|
/**
|
|
2809
2723
|
* Returns the result of searching comments by text in the current room. The result includes the id and the plain text content of the matched comments along with the parent thread id of the comment.
|
|
2810
2724
|
*
|
|
@@ -3076,4 +2990,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
3076
2990
|
*/
|
|
3077
2991
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
3078
2992
|
|
|
3079
|
-
export { _useEditThreadMetadata as $, type AiChatStatus as A, createLiveblocksContext as B, ClientContext as C, useDeleteAllInboxNotifications as D, useDeleteInboxNotification as E, useErrorListener as F, type GroupAsyncResult as G, useMarkAllInboxNotificationsAsRead as H, useMarkInboxNotificationAsRead as I, useSyncStatus as J, createRoomContext as K, LiveblocksProvider as L, type MutationContext as M, _RoomProvider as N, _useAddReaction as O, _useBroadcastEvent as P, useCanRedo as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCanUndo as T, type UseSendAiMessageOptions as U, _useCreateComment as V, _useCreateThread as W, useDeleteComment as X, _useDeleteThread as Y, _useEditComment as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a,
|
|
2993
|
+
export { _useEditThreadMetadata as $, type AiChatStatus as A, createLiveblocksContext as B, ClientContext as C, useDeleteAllInboxNotifications as D, useDeleteInboxNotification as E, useErrorListener as F, type GroupAsyncResult as G, useMarkAllInboxNotificationsAsRead as H, useMarkInboxNotificationAsRead as I, useSyncStatus as J, createRoomContext as K, LiveblocksProvider as L, type MutationContext as M, _RoomProvider as N, _useAddReaction as O, _useBroadcastEvent as P, useCanRedo as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCanUndo as T, type UseSendAiMessageOptions as U, _useCreateComment as V, _useCreateThread as W, useDeleteComment as X, _useDeleteThread as Y, _useEditComment as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, useGroupInfoSuspense as a$, _useEditCommentMetadata as a0, useMarkThreadAsResolved as a1, useMarkThreadAsUnresolved as a2, useSubscribeToThread as a3, useUnsubscribeFromThread as a4, _useEventListener as a5, useHistory as a6, _useIsInsideRoom as a7, useLostConnectionListener as a8, useMarkThreadAsRead as a9, useUpdateNotificationSettings as aA, useCreateAiChat as aB, useDeleteAiChat as aC, useSendAiMessage as aD, _useUserThreads_experimental as aE, useRoomInfo as aF, useGroupInfo as aG, useUnreadInboxNotificationsCount as aH, _useUser as aI, _useAiChat as aJ, _useAiChats as aK, _useAiChatMessages as aL, useAiChatStatus as aM, _useUrlMetadata as aN, _useOtherSuspense as aO, _useOthersSuspense as aP, useOthersConnectionIdsSuspense as aQ, _useOthersMappedSuspense as aR, _useSelfSuspense as aS, _useStorageSuspense as aT, _useThreadsSuspense as aU, useAttachmentUrlSuspense as aV, _useHistoryVersionsSuspense as aW, _useRoomSubscriptionSettingsSuspense as aX, useInboxNotificationsSuspense as aY, useNotificationSettingsSuspense as aZ, useRoomInfoSuspense as a_, _useMutation as aa, _useMyPresence as ab, _useOthersListener as ac, useRedo as ad, useRemoveReaction as ae, _useRoom as af, useStatus as ag, _useStorageRoot as ah, useThreadSubscription as ai, useUndo as aj, _useUpdateMyPresence as ak, useUpdateRoomSubscriptionSettings as al, useHistoryVersionData as am, _useOther as an, _useOthers as ao, useOthersConnectionIds as ap, _useOthersMapped as aq, _useSelf as ar, _useStorage as as, _useThreads as at, _useSearchComments as au, useAttachmentUrl as av, _useHistoryVersions as aw, _useRoomSubscriptionSettings as ax, useInboxNotifications as ay, useNotificationSettings as az, useCreateRoomComment as b, useUnreadInboxNotificationsCountSuspense as b0, _useUserSuspense as b1, _useUserThreadsSuspense_experimental as b2, _useAiChatsSuspense as b3, _useAiChatMessagesSuspense as b4, _useAiChatSuspense as b5, _useUrlMetadataSuspense as b6, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useMarkRoomThreadAsRead as k, useMarkRoomThreadAsResolved as l, useMarkRoomThreadAsUnresolved as m, useMentionSuggestionsCache as n, useRemoveRoomCommentReaction as o, useReportTextEditor as p, useResolveMentionSuggestions as q, useRoomAttachmentUrl as r, useRoomPermissions as s, useRoomThreadSubscription as t, useClientOrNull as u, useYjsProvider as v, type RegisterAiToolProps as w, type UseThreadsOptions as x, RoomContext as y, useClient as z };
|
|
@@ -2,7 +2,7 @@ import * as react from 'react';
|
|
|
2
2
|
import { ComponentType, Context, PropsWithChildren, ReactNode } from 'react';
|
|
3
3
|
import { BaseUserMeta, Client, JsonObject, LsonObject, LiveObject, User, Json, RoomSubscriptionSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, ClientOptions, ThreadData as ThreadData$1, CommentData as CommentData$1 } from '@liveblocks/client';
|
|
4
4
|
import * as _liveblocks_core from '@liveblocks/core';
|
|
5
|
-
import { OpaqueClient, OpaqueRoom, AiKnowledgeSource, AiOpaqueToolDefinition, Relax, AiAssistantContentPart, BaseMetadata, QueryMetadata, AsyncResult, DRI, AsyncSuccess, DGI, GroupData, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, ToImmutable, MessageId, PartialNotificationSettings, AiChatsQuery, AsyncLoading, AsyncError, ThreadData, SearchCommentsResult,
|
|
5
|
+
import { OpaqueClient, OpaqueRoom, AiKnowledgeSource, AiOpaqueToolDefinition, Relax, AiAssistantContentPart, BaseMetadata, QueryMetadata, AsyncResult, DRI, AsyncSuccess, DGI, GroupData, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, ToImmutable, MessageId, PartialNotificationSettings, AiChatsQuery, AsyncLoading, AsyncError, ThreadData, SearchCommentsResult, HistoryVersion, AiChat, UrlMetadata, Client as Client$1, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, AiUserMessage, WithRequired, AiChatMessage, WithNavigation, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, SubscriptionKey, SubscriptionData, DerivedSignal, DefaultMap, CommentUserReaction, InboxNotificationDeleteInfo, SubscriptionDeleteInfo, RoomSubscriptionSettings as RoomSubscriptionSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DTM, DCM, TextEditorType, IYjsProvider, MentionData, DP, DS, DE } from '@liveblocks/core';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -206,26 +206,6 @@ type UseInboxNotificationsOptions = {
|
|
|
206
206
|
*/
|
|
207
207
|
query?: InboxNotificationsQuery;
|
|
208
208
|
};
|
|
209
|
-
type UseAgentSessionsOptions = {
|
|
210
|
-
/**
|
|
211
|
-
* Optional timestamp filter. Only sessions created or updated after this timestamp will be returned.
|
|
212
|
-
*/
|
|
213
|
-
since?: number;
|
|
214
|
-
/**
|
|
215
|
-
* Optional metadata filter. Only sessions with matching metadata will be returned.
|
|
216
|
-
*/
|
|
217
|
-
metadata?: Record<string, string>;
|
|
218
|
-
};
|
|
219
|
-
type UseAgentSessionOptions = {
|
|
220
|
-
/**
|
|
221
|
-
* Optional cursor for pagination.
|
|
222
|
-
*/
|
|
223
|
-
cursor?: string;
|
|
224
|
-
/**
|
|
225
|
-
* Optional limit for the number of messages to fetch.
|
|
226
|
-
*/
|
|
227
|
-
limit?: number;
|
|
228
|
-
};
|
|
229
209
|
type UserAsyncResult<T> = AsyncResult<T, "user">;
|
|
230
210
|
type UserAsyncSuccess<T> = AsyncSuccess<T, "user">;
|
|
231
211
|
type RoomInfoAsyncResult = AsyncResult<DRI, "info">;
|
|
@@ -288,10 +268,6 @@ type ThreadsAsyncResult<TM extends BaseMetadata, CM extends BaseMetadata> = Page
|
|
|
288
268
|
type SearchCommentsAsyncResult = AsyncResult<Array<SearchCommentsResult>, "results">;
|
|
289
269
|
type InboxNotificationsAsyncSuccess = PagedAsyncSuccess<InboxNotificationData[], "inboxNotifications">;
|
|
290
270
|
type InboxNotificationsAsyncResult = PagedAsyncResult<InboxNotificationData[], "inboxNotifications">;
|
|
291
|
-
type AgentSessionsAsyncSuccess = PagedAsyncSuccess<AgentSession[], "sessions">;
|
|
292
|
-
type AgentSessionsAsyncResult = PagedAsyncResult<AgentSession[], "sessions">;
|
|
293
|
-
type AgentSessionAsyncSuccess = PagedAsyncSuccess<AgentMessage[], "messages">;
|
|
294
|
-
type AgentSessionAsyncResult = PagedAsyncResult<AgentMessage[], "messages">;
|
|
295
271
|
type UnreadInboxNotificationsCountAsyncSuccess = AsyncSuccess<number, "count">;
|
|
296
272
|
type UnreadInboxNotificationsCountAsyncResult = AsyncResult<number, "count">;
|
|
297
273
|
type NotificationSettingsAsyncResult = AsyncResult<NotificationSettings, "settings">;
|
|
@@ -1009,20 +985,6 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
1009
985
|
* const { threads, error, isLoading } = useThreads();
|
|
1010
986
|
*/
|
|
1011
987
|
useThreads(options?: UseThreadsOptions<TM>): ThreadsAsyncResult<TM, CM>;
|
|
1012
|
-
/**
|
|
1013
|
-
* Returns agent sessions for the current room.
|
|
1014
|
-
*
|
|
1015
|
-
* @example
|
|
1016
|
-
* const { sessions, error, isLoading } = useAgentSessions();
|
|
1017
|
-
*/
|
|
1018
|
-
useAgentSessions(options?: UseAgentSessionsOptions): AgentSessionsAsyncResult;
|
|
1019
|
-
/**
|
|
1020
|
-
* Returns agent messages for a specific session in the current room.
|
|
1021
|
-
*
|
|
1022
|
-
* @example
|
|
1023
|
-
* const { messages, error, isLoading } = useAgentSession("session-id");
|
|
1024
|
-
*/
|
|
1025
|
-
useAgentSession(sessionId: string, options?: UseAgentSessionOptions): AgentSessionAsyncResult;
|
|
1026
988
|
/**
|
|
1027
989
|
* Returns the result of searching comments by text in the current room. The result includes the id and the plain text content of the matched comments along with the parent thread id of the comment.
|
|
1028
990
|
*
|
|
@@ -1118,20 +1080,6 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
1118
1080
|
* const { threads } = useThreads();
|
|
1119
1081
|
*/
|
|
1120
1082
|
useThreads(options?: UseThreadsOptions<TM>): ThreadsAsyncSuccess<TM, CM>;
|
|
1121
|
-
/**
|
|
1122
|
-
* Returns agent sessions for the current room.
|
|
1123
|
-
*
|
|
1124
|
-
* @example
|
|
1125
|
-
* const { sessions } = useAgentSessions();
|
|
1126
|
-
*/
|
|
1127
|
-
useAgentSessions(options?: UseAgentSessionsOptions): AgentSessionsAsyncSuccess;
|
|
1128
|
-
/**
|
|
1129
|
-
* Returns agent messages for a specific session in the current room.
|
|
1130
|
-
*
|
|
1131
|
-
* @example
|
|
1132
|
-
* const { messages } = useAgentSession("session-id");
|
|
1133
|
-
*/
|
|
1134
|
-
useAgentSession(sessionId: string, options?: UseAgentSessionOptions): AgentSessionAsyncSuccess;
|
|
1135
1083
|
/**
|
|
1136
1084
|
* (Private beta) Returns a history of versions of the current room.
|
|
1137
1085
|
*
|
|
@@ -1839,8 +1787,6 @@ declare class UmbrellaStore<TM extends BaseMetadata, CM extends BaseMetadata> {
|
|
|
1839
1787
|
readonly messagesByChatId: DefaultMap<string, DefaultMap<MessageId | null, LoadableResource<AiChatMessagesAsyncResult>>>;
|
|
1840
1788
|
readonly aiChatById: DefaultMap<string, LoadableResource<AiChatAsyncResult>>;
|
|
1841
1789
|
readonly urlMetadataByUrl: DefaultMap<string, LoadableResource<UrlMetadataAsyncResult>>;
|
|
1842
|
-
readonly loadingAgentSessions: DefaultMap<string, LoadableResource<AgentSessionsAsyncResult>>;
|
|
1843
|
-
readonly loadingAgentMessages: DefaultMap<string, LoadableResource<AgentSessionAsyncResult>>;
|
|
1844
1790
|
};
|
|
1845
1791
|
constructor(client: OpaqueClient);
|
|
1846
1792
|
/**
|
|
@@ -1905,24 +1851,6 @@ declare class UmbrellaStore<TM extends BaseMetadata, CM extends BaseMetadata> {
|
|
|
1905
1851
|
*/
|
|
1906
1852
|
updateRoomSubscriptionSettings(roomId: string, optimisticId: string, settings: Readonly<RoomSubscriptionSettings$1>): void;
|
|
1907
1853
|
fetchNotificationsDeltaUpdate(signal: AbortSignal): Promise<void>;
|
|
1908
|
-
/**
|
|
1909
|
-
* Registers a room instance for agent session fetching.
|
|
1910
|
-
* Called by RoomProvider when it mounts.
|
|
1911
|
-
*/
|
|
1912
|
-
registerRoom(roomId: RoomId, room: OpaqueRoom): void;
|
|
1913
|
-
/**
|
|
1914
|
-
* Unregisters a room instance.
|
|
1915
|
-
* Called by RoomProvider when it unmounts.
|
|
1916
|
-
*/
|
|
1917
|
-
unregisterRoom(roomId: RoomId): void;
|
|
1918
|
-
/**
|
|
1919
|
-
* Updates the agent sessions cache based on WebSocket events.
|
|
1920
|
-
*/
|
|
1921
|
-
updateAgentSessions(roomId: RoomId, sessions: readonly AgentSession[], operation: "list" | "added" | "updated" | "deleted"): void;
|
|
1922
|
-
/**
|
|
1923
|
-
* Updates the agent messages cache based on WebSocket events.
|
|
1924
|
-
*/
|
|
1925
|
-
updateAgentMessages(_roomId: RoomId, sessionId: string, messages: readonly AgentMessage[], operation: "list" | "added" | "updated" | "deleted"): void;
|
|
1926
1854
|
fetchUnreadNotificationsCount(queryKey: InboxNotificationsQueryKey, signal: AbortSignal): Promise<void>;
|
|
1927
1855
|
fetchRoomThreadsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
|
|
1928
1856
|
fetchUserThreadsDeltaUpdate(signal: AbortSignal): Promise<void>;
|
|
@@ -2791,20 +2719,6 @@ declare const _useOthersMappedSuspense: TypedBundle["suspense"]["useOthersMapped
|
|
|
2791
2719
|
* const { threads, error, isLoading } = useThreads();
|
|
2792
2720
|
*/
|
|
2793
2721
|
declare const _useThreads: TypedBundle["useThreads"];
|
|
2794
|
-
/**
|
|
2795
|
-
* Returns agent sessions for the current room.
|
|
2796
|
-
*
|
|
2797
|
-
* @example
|
|
2798
|
-
* const { sessions, error, isLoading } = useAgentSessions();
|
|
2799
|
-
*/
|
|
2800
|
-
declare const _useAgentSessions: TypedBundle["useAgentSessions"];
|
|
2801
|
-
/**
|
|
2802
|
-
* Returns agent messages for a specific session in the current room.
|
|
2803
|
-
*
|
|
2804
|
-
* @example
|
|
2805
|
-
* const { messages, error, isLoading } = useAgentSession("session-id");
|
|
2806
|
-
*/
|
|
2807
|
-
declare const _useAgentSession: TypedBundle["useAgentSession"];
|
|
2808
2722
|
/**
|
|
2809
2723
|
* Returns the result of searching comments by text in the current room. The result includes the id and the plain text content of the matched comments along with the parent thread id of the comment.
|
|
2810
2724
|
*
|
|
@@ -3076,4 +2990,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
3076
2990
|
*/
|
|
3077
2991
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
3078
2992
|
|
|
3079
|
-
export { _useEditThreadMetadata as $, type AiChatStatus as A, createLiveblocksContext as B, ClientContext as C, useDeleteAllInboxNotifications as D, useDeleteInboxNotification as E, useErrorListener as F, type GroupAsyncResult as G, useMarkAllInboxNotificationsAsRead as H, useMarkInboxNotificationAsRead as I, useSyncStatus as J, createRoomContext as K, LiveblocksProvider as L, type MutationContext as M, _RoomProvider as N, _useAddReaction as O, _useBroadcastEvent as P, useCanRedo as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCanUndo as T, type UseSendAiMessageOptions as U, _useCreateComment as V, _useCreateThread as W, useDeleteComment as X, _useDeleteThread as Y, _useEditComment as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a,
|
|
2993
|
+
export { _useEditThreadMetadata as $, type AiChatStatus as A, createLiveblocksContext as B, ClientContext as C, useDeleteAllInboxNotifications as D, useDeleteInboxNotification as E, useErrorListener as F, type GroupAsyncResult as G, useMarkAllInboxNotificationsAsRead as H, useMarkInboxNotificationAsRead as I, useSyncStatus as J, createRoomContext as K, LiveblocksProvider as L, type MutationContext as M, _RoomProvider as N, _useAddReaction as O, _useBroadcastEvent as P, useCanRedo as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCanUndo as T, type UseSendAiMessageOptions as U, _useCreateComment as V, _useCreateThread as W, useDeleteComment as X, _useDeleteThread as Y, _useEditComment as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, useGroupInfoSuspense as a$, _useEditCommentMetadata as a0, useMarkThreadAsResolved as a1, useMarkThreadAsUnresolved as a2, useSubscribeToThread as a3, useUnsubscribeFromThread as a4, _useEventListener as a5, useHistory as a6, _useIsInsideRoom as a7, useLostConnectionListener as a8, useMarkThreadAsRead as a9, useUpdateNotificationSettings as aA, useCreateAiChat as aB, useDeleteAiChat as aC, useSendAiMessage as aD, _useUserThreads_experimental as aE, useRoomInfo as aF, useGroupInfo as aG, useUnreadInboxNotificationsCount as aH, _useUser as aI, _useAiChat as aJ, _useAiChats as aK, _useAiChatMessages as aL, useAiChatStatus as aM, _useUrlMetadata as aN, _useOtherSuspense as aO, _useOthersSuspense as aP, useOthersConnectionIdsSuspense as aQ, _useOthersMappedSuspense as aR, _useSelfSuspense as aS, _useStorageSuspense as aT, _useThreadsSuspense as aU, useAttachmentUrlSuspense as aV, _useHistoryVersionsSuspense as aW, _useRoomSubscriptionSettingsSuspense as aX, useInboxNotificationsSuspense as aY, useNotificationSettingsSuspense as aZ, useRoomInfoSuspense as a_, _useMutation as aa, _useMyPresence as ab, _useOthersListener as ac, useRedo as ad, useRemoveReaction as ae, _useRoom as af, useStatus as ag, _useStorageRoot as ah, useThreadSubscription as ai, useUndo as aj, _useUpdateMyPresence as ak, useUpdateRoomSubscriptionSettings as al, useHistoryVersionData as am, _useOther as an, _useOthers as ao, useOthersConnectionIds as ap, _useOthersMapped as aq, _useSelf as ar, _useStorage as as, _useThreads as at, _useSearchComments as au, useAttachmentUrl as av, _useHistoryVersions as aw, _useRoomSubscriptionSettings as ax, useInboxNotifications as ay, useNotificationSettings as az, useCreateRoomComment as b, useUnreadInboxNotificationsCountSuspense as b0, _useUserSuspense as b1, _useUserThreadsSuspense_experimental as b2, _useAiChatsSuspense as b3, _useAiChatMessagesSuspense as b4, _useAiChatSuspense as b5, _useUrlMetadataSuspense as b6, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useMarkRoomThreadAsRead as k, useMarkRoomThreadAsResolved as l, useMarkRoomThreadAsUnresolved as m, useMentionSuggestionsCache as n, useRemoveRoomCommentReaction as o, useReportTextEditor as p, useResolveMentionSuggestions as q, useRoomAttachmentUrl as r, useRoomPermissions as s, useRoomThreadSubscription as t, useClientOrNull as u, useYjsProvider as v, type RegisterAiToolProps as w, type UseThreadsOptions as x, RoomContext as y, useClient as z };
|
package/dist/suspense.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk2KKSJSO6cjs = require('./chunk-2KKSJSO6.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -77,12 +77,12 @@ var _chunk73OAUQFMcjs = require('./chunk-73OAUQFM.cjs');
|
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
|
|
80
|
-
var
|
|
80
|
+
var _chunkQFAOGFJKcjs = require('./chunk-QFAOGFJK.cjs');
|
|
81
81
|
|
|
82
82
|
// src/suspense.ts
|
|
83
83
|
var _core = require('@liveblocks/core');
|
|
84
84
|
var _client = require('@liveblocks/client');
|
|
85
|
-
_core.detectDupes.call(void 0,
|
|
85
|
+
_core.detectDupes.call(void 0, _chunk2KKSJSO6cjs.PKG_NAME, _chunk2KKSJSO6cjs.PKG_VERSION, _chunk2KKSJSO6cjs.PKG_FORMAT);
|
|
86
86
|
|
|
87
87
|
|
|
88
88
|
|
|
@@ -159,5 +159,5 @@ _core.detectDupes.call(void 0, _chunk73OAUQFMcjs.PKG_NAME, _chunk73OAUQFMcjs.PKG
|
|
|
159
159
|
|
|
160
160
|
|
|
161
161
|
|
|
162
|
-
exports.ClientContext =
|
|
162
|
+
exports.ClientContext = _chunkQFAOGFJKcjs.ClientContext; exports.ClientSideSuspense = _chunk2KKSJSO6cjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkQFAOGFJKcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkQFAOGFJKcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkQFAOGFJKcjs.RegisterAiTool; exports.RoomContext = _chunkQFAOGFJKcjs.RoomContext; exports.RoomProvider = _chunkQFAOGFJKcjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkQFAOGFJKcjs._useAddReaction; exports.useAiChat = _chunkQFAOGFJKcjs._useAiChatSuspense; exports.useAiChatMessages = _chunkQFAOGFJKcjs._useAiChatMessagesSuspense; exports.useAiChatStatus = _chunkQFAOGFJKcjs.useAiChatStatus; exports.useAiChats = _chunkQFAOGFJKcjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunkQFAOGFJKcjs.useAttachmentUrlSuspense; exports.useBroadcastEvent = _chunkQFAOGFJKcjs._useBroadcastEvent; exports.useCanRedo = _chunkQFAOGFJKcjs.useCanRedo; exports.useCanUndo = _chunkQFAOGFJKcjs.useCanUndo; exports.useClient = _chunkQFAOGFJKcjs.useClient; exports.useCreateAiChat = _chunkQFAOGFJKcjs.useCreateAiChat; exports.useCreateComment = _chunkQFAOGFJKcjs._useCreateComment; exports.useCreateThread = _chunkQFAOGFJKcjs._useCreateThread; exports.useDeleteAiChat = _chunkQFAOGFJKcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkQFAOGFJKcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkQFAOGFJKcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkQFAOGFJKcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkQFAOGFJKcjs._useDeleteThread; exports.useEditComment = _chunkQFAOGFJKcjs._useEditComment; exports.useEditCommentMetadata = _chunkQFAOGFJKcjs._useEditCommentMetadata; exports.useEditThreadMetadata = _chunkQFAOGFJKcjs._useEditThreadMetadata; exports.useErrorListener = _chunkQFAOGFJKcjs.useErrorListener; exports.useEventListener = _chunkQFAOGFJKcjs._useEventListener; exports.useGroupInfo = _chunkQFAOGFJKcjs.useGroupInfoSuspense; exports.useHistory = _chunkQFAOGFJKcjs.useHistory; exports.useHistoryVersions = _chunkQFAOGFJKcjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkQFAOGFJKcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkQFAOGFJKcjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkQFAOGFJKcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkQFAOGFJKcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkQFAOGFJKcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkQFAOGFJKcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkQFAOGFJKcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkQFAOGFJKcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkQFAOGFJKcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkQFAOGFJKcjs._useMutation; exports.useMyPresence = _chunkQFAOGFJKcjs._useMyPresence; exports.useNotificationSettings = _chunkQFAOGFJKcjs.useNotificationSettingsSuspense; exports.useOther = _chunkQFAOGFJKcjs._useOtherSuspense; exports.useOthers = _chunkQFAOGFJKcjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkQFAOGFJKcjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkQFAOGFJKcjs._useOthersListener; exports.useOthersMapped = _chunkQFAOGFJKcjs._useOthersMappedSuspense; exports.useRedo = _chunkQFAOGFJKcjs.useRedo; exports.useRemoveReaction = _chunkQFAOGFJKcjs.useRemoveReaction; exports.useRoom = _chunkQFAOGFJKcjs._useRoom; exports.useRoomInfo = _chunkQFAOGFJKcjs.useRoomInfoSuspense; exports.useRoomSubscriptionSettings = _chunkQFAOGFJKcjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunkQFAOGFJKcjs._useSelfSuspense; exports.useSendAiMessage = _chunkQFAOGFJKcjs.useSendAiMessage; exports.useStatus = _chunkQFAOGFJKcjs.useStatus; exports.useStorage = _chunkQFAOGFJKcjs._useStorageSuspense; exports.useStorageRoot = _chunkQFAOGFJKcjs._useStorageRoot; exports.useSubscribeToThread = _chunkQFAOGFJKcjs.useSubscribeToThread; exports.useSyncStatus = _chunkQFAOGFJKcjs.useSyncStatus; exports.useThreadSubscription = _chunkQFAOGFJKcjs.useThreadSubscription; exports.useThreads = _chunkQFAOGFJKcjs._useThreadsSuspense; exports.useUndo = _chunkQFAOGFJKcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkQFAOGFJKcjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunkQFAOGFJKcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkQFAOGFJKcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkQFAOGFJKcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkQFAOGFJKcjs.useUpdateRoomSubscriptionSettings; exports.useUrlMetadata = _chunkQFAOGFJKcjs._useUrlMetadataSuspense; exports.useUser = _chunkQFAOGFJKcjs._useUserSuspense; exports.useUserThreads_experimental = _chunkQFAOGFJKcjs._useUserThreadsSuspense_experimental;
|
|
163
163
|
//# sourceMappingURL=suspense.cjs.map
|
package/dist/suspense.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ClientSideSuspense, RegisterAiKnowledge, RegisterAiTool } from './index.cjs';
|
|
2
|
-
export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, O as useAddReaction,
|
|
2
|
+
export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, O as useAddReaction, b5 as useAiChat, b4 as useAiChatMessages, aM as useAiChatStatus, b3 as useAiChats, aV as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, aB as useCreateAiChat, V as useCreateComment, W as useCreateThread, aC as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, a0 as useEditCommentMetadata, $ as useEditThreadMetadata, F as useErrorListener, a5 as useEventListener, a$ as useGroupInfo, a6 as useHistory, aW as useHistoryVersions, _ as useInboxNotificationThread, aY as useInboxNotifications, a7 as useIsInsideRoom, a8 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a9 as useMarkThreadAsRead, a1 as useMarkThreadAsResolved, a2 as useMarkThreadAsUnresolved, aa as useMutation, ab as useMyPresence, aZ as useNotificationSettings, aO as useOther, aP as useOthers, aQ as useOthersConnectionIds, ac as useOthersListener, aR as useOthersMapped, ad as useRedo, ae as useRemoveReaction, af as useRoom, a_ as useRoomInfo, aX as useRoomSubscriptionSettings, aS as useSelf, aD as useSendAiMessage, ag as useStatus, aT as useStorage, ah as useStorageRoot, a3 as useSubscribeToThread, J as useSyncStatus, ai as useThreadSubscription, aU as useThreads, aj as useUndo, b0 as useUnreadInboxNotificationsCount, a4 as useUnsubscribeFromThread, ak as useUpdateMyPresence, aA as useUpdateNotificationSettings, al as useUpdateRoomSubscriptionSettings, b6 as useUrlMetadata, b1 as useUser, b2 as useUserThreads_experimental } from './room-CEMGQ1Mj.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 { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, O as useAddReaction,
|
|
2
|
+
export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, O as useAddReaction, b5 as useAiChat, b4 as useAiChatMessages, aM as useAiChatStatus, b3 as useAiChats, aV as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, aB as useCreateAiChat, V as useCreateComment, W as useCreateThread, aC as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, a0 as useEditCommentMetadata, $ as useEditThreadMetadata, F as useErrorListener, a5 as useEventListener, a$ as useGroupInfo, a6 as useHistory, aW as useHistoryVersions, _ as useInboxNotificationThread, aY as useInboxNotifications, a7 as useIsInsideRoom, a8 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a9 as useMarkThreadAsRead, a1 as useMarkThreadAsResolved, a2 as useMarkThreadAsUnresolved, aa as useMutation, ab as useMyPresence, aZ as useNotificationSettings, aO as useOther, aP as useOthers, aQ as useOthersConnectionIds, ac as useOthersListener, aR as useOthersMapped, ad as useRedo, ae as useRemoveReaction, af as useRoom, a_ as useRoomInfo, aX as useRoomSubscriptionSettings, aS as useSelf, aD as useSendAiMessage, ag as useStatus, aT as useStorage, ah as useStorageRoot, a3 as useSubscribeToThread, J as useSyncStatus, ai as useThreadSubscription, aU as useThreads, aj as useUndo, b0 as useUnreadInboxNotificationsCount, a4 as useUnsubscribeFromThread, ak as useUpdateMyPresence, aA as useUpdateNotificationSettings, al as useUpdateRoomSubscriptionSettings, b6 as useUrlMetadata, b1 as useUser, b2 as useUserThreads_experimental } from './room-CEMGQ1Mj.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-SRBVM766.js";
|
|
7
7
|
import {
|
|
8
8
|
ClientContext,
|
|
9
9
|
LiveblocksProvider,
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
useUnsubscribeFromThread,
|
|
78
78
|
useUpdateNotificationSettings,
|
|
79
79
|
useUpdateRoomSubscriptionSettings
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-ERRJHA6O.js";
|
|
81
81
|
|
|
82
82
|
// src/suspense.ts
|
|
83
83
|
import { detectDupes } from "@liveblocks/core";
|