@liveblocks/react 2.25.0-aiprivatebeta7 → 2.25.0-aiprivatebeta8
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 +5 -5
- package/dist/_private.d.cts +1 -1
- package/dist/_private.d.ts +1 -1
- package/dist/_private.js +1 -1
- package/dist/chunk-CP5NPU7C.cjs +60 -0
- package/dist/chunk-CP5NPU7C.cjs.map +1 -0
- package/dist/chunk-EAKXSMWI.js +60 -0
- package/dist/chunk-EAKXSMWI.js.map +1 -0
- package/dist/{chunk-4DYOIL3C.cjs → chunk-G2EOFP6S.cjs} +60 -4
- package/dist/chunk-G2EOFP6S.cjs.map +1 -0
- package/dist/{chunk-S4TM7L5S.js → chunk-MT7DJTSL.js} +59 -3
- package/dist/chunk-MT7DJTSL.js.map +1 -0
- package/dist/index.cjs +6 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +30 -3
- package/dist/index.d.ts +30 -3
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/{room-DnGQ1o0B.d.cts → room-BSt58hY4.d.cts} +33 -2
- package/dist/{room-DnGQ1o0B.d.ts → room-BSt58hY4.d.ts} +33 -2
- package/dist/suspense.cjs +8 -4
- package/dist/suspense.cjs.map +1 -1
- package/dist/suspense.d.cts +2 -2
- package/dist/suspense.d.ts +2 -2
- package/dist/suspense.js +7 -3
- package/dist/suspense.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-4DYOIL3C.cjs.map +0 -1
- package/dist/chunk-BJ6T5M3P.cjs +0 -23
- package/dist/chunk-BJ6T5M3P.cjs.map +0 -1
- package/dist/chunk-IXWATLVF.js +0 -23
- package/dist/chunk-IXWATLVF.js.map +0 -1
- package/dist/chunk-S4TM7L5S.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var _chunkBJ6T5M3Pcjs = require('./chunk-BJ6T5M3P.cjs');
|
|
7
6
|
|
|
7
|
+
var _chunkCP5NPU7Ccjs = require('./chunk-CP5NPU7C.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -76,12 +76,14 @@ var _chunkBJ6T5M3Pcjs = require('./chunk-BJ6T5M3P.cjs');
|
|
|
76
76
|
|
|
77
77
|
|
|
78
78
|
|
|
79
|
-
|
|
79
|
+
|
|
80
|
+
var _chunkG2EOFP6Scjs = require('./chunk-G2EOFP6S.cjs');
|
|
80
81
|
|
|
81
82
|
// src/index.ts
|
|
82
83
|
var _core = require('@liveblocks/core');
|
|
83
84
|
var _client = require('@liveblocks/client');
|
|
84
|
-
_core.detectDupes.call(void 0,
|
|
85
|
+
_core.detectDupes.call(void 0, _chunkCP5NPU7Ccjs.PKG_NAME, _chunkCP5NPU7Ccjs.PKG_VERSION, _chunkCP5NPU7Ccjs.PKG_FORMAT);
|
|
86
|
+
|
|
85
87
|
|
|
86
88
|
|
|
87
89
|
|
|
@@ -157,5 +159,5 @@ _core.detectDupes.call(void 0, _chunkBJ6T5M3Pcjs.PKG_NAME, _chunkBJ6T5M3Pcjs.PKG
|
|
|
157
159
|
|
|
158
160
|
|
|
159
161
|
|
|
160
|
-
exports.ClientContext =
|
|
162
|
+
exports.ClientContext = _chunkG2EOFP6Scjs.ClientContext; exports.ClientSideSuspense = _chunkCP5NPU7Ccjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkG2EOFP6Scjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkCP5NPU7Ccjs.RegisterAiKnowledge; exports.RoomContext = _chunkG2EOFP6Scjs.RoomContext; exports.RoomProvider = _chunkG2EOFP6Scjs._RoomProvider; exports.createLiveblocksContext = _chunkG2EOFP6Scjs.createLiveblocksContext; exports.createRoomContext = _chunkG2EOFP6Scjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkG2EOFP6Scjs._useAddReaction; exports.useAiChatMessages = _chunkG2EOFP6Scjs._useAiChatMessages; exports.useAiChats = _chunkG2EOFP6Scjs._useAiChats; exports.useAttachmentUrl = _chunkG2EOFP6Scjs.useAttachmentUrl; exports.useBatch = _chunkG2EOFP6Scjs.useBatch; exports.useBroadcastEvent = _chunkG2EOFP6Scjs._useBroadcastEvent; exports.useCanRedo = _chunkG2EOFP6Scjs.useCanRedo; exports.useCanUndo = _chunkG2EOFP6Scjs.useCanUndo; exports.useClient = _chunkG2EOFP6Scjs.useClient; exports.useCreateAiChat = _chunkG2EOFP6Scjs.useCreateAiChat; exports.useCreateComment = _chunkG2EOFP6Scjs.useCreateComment; exports.useCreateThread = _chunkG2EOFP6Scjs._useCreateThread; exports.useDeleteAiChat = _chunkG2EOFP6Scjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkG2EOFP6Scjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkG2EOFP6Scjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkG2EOFP6Scjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkG2EOFP6Scjs._useDeleteThread; exports.useEditComment = _chunkG2EOFP6Scjs.useEditComment; exports.useEditThreadMetadata = _chunkG2EOFP6Scjs._useEditThreadMetadata; exports.useErrorListener = _chunkG2EOFP6Scjs.useErrorListener; exports.useEventListener = _chunkG2EOFP6Scjs._useEventListener; exports.useHistory = _chunkG2EOFP6Scjs.useHistory; exports.useHistoryVersionData = _chunkG2EOFP6Scjs.useHistoryVersionData; exports.useHistoryVersions = _chunkG2EOFP6Scjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkG2EOFP6Scjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkG2EOFP6Scjs.useInboxNotifications; exports.useIsInsideRoom = _chunkG2EOFP6Scjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkG2EOFP6Scjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkG2EOFP6Scjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkG2EOFP6Scjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkG2EOFP6Scjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkG2EOFP6Scjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkG2EOFP6Scjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkG2EOFP6Scjs._useMutation; exports.useMyPresence = _chunkG2EOFP6Scjs._useMyPresence; exports.useNotificationSettings = _chunkG2EOFP6Scjs.useNotificationSettings; exports.useOther = _chunkG2EOFP6Scjs._useOther; exports.useOthers = _chunkG2EOFP6Scjs._useOthers; exports.useOthersConnectionIds = _chunkG2EOFP6Scjs.useOthersConnectionIds; exports.useOthersListener = _chunkG2EOFP6Scjs._useOthersListener; exports.useOthersMapped = _chunkG2EOFP6Scjs._useOthersMapped; exports.useRedo = _chunkG2EOFP6Scjs.useRedo; exports.useRemoveReaction = _chunkG2EOFP6Scjs.useRemoveReaction; exports.useRoom = _chunkG2EOFP6Scjs._useRoom; exports.useRoomInfo = _chunkG2EOFP6Scjs.useRoomInfo; exports.useRoomNotificationSettings = _chunkG2EOFP6Scjs._useRoomNotificationSettings; exports.useRoomSubscriptionSettings = _chunkG2EOFP6Scjs._useRoomSubscriptionSettings; exports.useSelf = _chunkG2EOFP6Scjs._useSelf; exports.useStatus = _chunkG2EOFP6Scjs.useStatus; exports.useStorage = _chunkG2EOFP6Scjs._useStorage; exports.useStorageRoot = _chunkG2EOFP6Scjs._useStorageRoot; exports.useStorageStatus = _chunkG2EOFP6Scjs.useStorageStatus; exports.useSubscribeToThread = _chunkG2EOFP6Scjs.useSubscribeToThread; exports.useSyncStatus = _chunkG2EOFP6Scjs.useSyncStatus; exports.useThreadSubscription = _chunkG2EOFP6Scjs.useThreadSubscription; exports.useThreads = _chunkG2EOFP6Scjs._useThreads; exports.useUndo = _chunkG2EOFP6Scjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkG2EOFP6Scjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunkG2EOFP6Scjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkG2EOFP6Scjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkG2EOFP6Scjs.useUpdateNotificationSettings; exports.useUpdateRoomNotificationSettings = _chunkG2EOFP6Scjs.useUpdateRoomNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkG2EOFP6Scjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunkG2EOFP6Scjs._useUser; exports.useUserThreads_experimental = _chunkG2EOFP6Scjs._useUserThreads_experimental;
|
|
161
163
|
//# 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;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;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;AACF,wDAA6B;AAC7B;AACA;AChFA,wCAA4B;AAc5B,4CAAsD;AAXtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADiF7C;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;AACF,40JAAC","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 UseStorageStatusOptions,\n UseThreadsOptions,\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 } from \"./ai\";\nexport {\n ClientContext,\n createLiveblocksContext,\n LiveblocksProvider,\n useClient,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\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 useUpdateRoomNotificationSettings,\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 useStorageStatus,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomNotificationSettings,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChats,\n useAiChatMessages,\n} from \"./liveblocks\";\n"]}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, x as createLiveblocksContext, G as createRoomContext, I as useAddReaction, aE as useAiChatMessages, aD as useAiChats, aq as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, ax as useCreateAiChat, P as useCreateComment, Q as useCreateThread, ay as useDeleteAiChat, z as useDeleteAllInboxNotifications, R as useDeleteComment, A as useDeleteInboxNotification, S as useDeleteThread, T as useEditComment, V as useEditThreadMetadata, B as useErrorListener, $ as useEventListener, a0 as useHistory, ah as useHistoryVersionData, ar as useHistoryVersions, _ as useInboxNotificationThread, au as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, W as useMarkThreadAsResolved, X as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, av as useNotificationSettings, ai as useOther, aj as useOthers, ak as useOthersConnectionIds, a6 as useOthersListener, al as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, aA as useRoomInfo, as as useRoomNotificationSettings, at as useRoomSubscriptionSettings, am as useSelf, aa as useStatus, an as useStorage, ab as useStorageRoot, ao as useStorageStatus, Y as useSubscribeToThread, F as useSyncStatus, ac as useThreadSubscription, ap as useThreads, ad as useUndo, aB as useUnreadInboxNotificationsCount, Z as useUnsubscribeFromThread, ae as useUpdateMyPresence, aw as useUpdateNotificationSettings, af as useUpdateRoomNotificationSettings, ag as useUpdateRoomSubscriptionSettings, aC as useUser, az as useUserThreads_experimental } from './room-
|
|
1
|
+
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, x as createLiveblocksContext, G as createRoomContext, I as useAddReaction, aE as useAiChatMessages, aD as useAiChats, aq as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, ax as useCreateAiChat, P as useCreateComment, Q as useCreateThread, ay as useDeleteAiChat, z as useDeleteAllInboxNotifications, R as useDeleteComment, A as useDeleteInboxNotification, S as useDeleteThread, T as useEditComment, V as useEditThreadMetadata, B as useErrorListener, $ as useEventListener, a0 as useHistory, ah as useHistoryVersionData, ar as useHistoryVersions, _ as useInboxNotificationThread, au as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, W as useMarkThreadAsResolved, X as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, av as useNotificationSettings, ai as useOther, aj as useOthers, ak as useOthersConnectionIds, a6 as useOthersListener, al as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, aA as useRoomInfo, as as useRoomNotificationSettings, at as useRoomSubscriptionSettings, am as useSelf, aa as useStatus, an as useStorage, ab as useStorageRoot, ao as useStorageStatus, Y as useSubscribeToThread, F as useSyncStatus, ac as useThreadSubscription, ap as useThreads, ad as useUndo, aB as useUnreadInboxNotificationsCount, Z as useUnsubscribeFromThread, ae as useUpdateMyPresence, aw as useUpdateNotificationSettings, af as useUpdateRoomNotificationSettings, ag as useUpdateRoomSubscriptionSettings, aC as useUser, az as useUserThreads_experimental } from './room-BSt58hY4.cjs';
|
|
2
2
|
export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
import { ReactNode } from 'react';
|
|
6
|
-
import { OpaqueRoom } from '@liveblocks/core';
|
|
6
|
+
import { OpaqueRoom, AiKnowledgeSource } from '@liveblocks/core';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Raw access to the React context where the RoomProvider stores the current
|
|
@@ -36,4 +36,31 @@ type Props = {
|
|
|
36
36
|
*/
|
|
37
37
|
declare function ClientSideSuspense(props: Props): react_jsx_runtime.JSX.Element;
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
/**
|
|
40
|
+
* Make knowledge about your application state available to any AI used in
|
|
41
|
+
* a chat or a one-off request.
|
|
42
|
+
*
|
|
43
|
+
* For example:
|
|
44
|
+
*
|
|
45
|
+
* <RegisterAiKnowledge
|
|
46
|
+
* description="The current mode of my application"
|
|
47
|
+
* value="dark" />
|
|
48
|
+
*
|
|
49
|
+
* <RegisterAiKnowledge
|
|
50
|
+
* description="The current list of todos"
|
|
51
|
+
* value={todos} />
|
|
52
|
+
*
|
|
53
|
+
* By mounting this component, the AI will get access to this knwoledge.
|
|
54
|
+
* By unmounting this component, the AI will no longer have access to it.
|
|
55
|
+
* It can choose to use or ignore this knowledge in its responses.
|
|
56
|
+
*/
|
|
57
|
+
declare const RegisterAiKnowledge: react.NamedExoticComponent<AiKnowledgeSource & {
|
|
58
|
+
/**
|
|
59
|
+
* An optional unique key for this knowledge source. If multiple components
|
|
60
|
+
* register knowledge under the same key, the last one to mount takes
|
|
61
|
+
* precedence.
|
|
62
|
+
*/
|
|
63
|
+
id?: string;
|
|
64
|
+
}>;
|
|
65
|
+
|
|
66
|
+
export { ClientSideSuspense, RegisterAiKnowledge, RoomContext };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, x as createLiveblocksContext, G as createRoomContext, I as useAddReaction, aE as useAiChatMessages, aD as useAiChats, aq as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, ax as useCreateAiChat, P as useCreateComment, Q as useCreateThread, ay as useDeleteAiChat, z as useDeleteAllInboxNotifications, R as useDeleteComment, A as useDeleteInboxNotification, S as useDeleteThread, T as useEditComment, V as useEditThreadMetadata, B as useErrorListener, $ as useEventListener, a0 as useHistory, ah as useHistoryVersionData, ar as useHistoryVersions, _ as useInboxNotificationThread, au as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, W as useMarkThreadAsResolved, X as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, av as useNotificationSettings, ai as useOther, aj as useOthers, ak as useOthersConnectionIds, a6 as useOthersListener, al as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, aA as useRoomInfo, as as useRoomNotificationSettings, at as useRoomSubscriptionSettings, am as useSelf, aa as useStatus, an as useStorage, ab as useStorageRoot, ao as useStorageStatus, Y as useSubscribeToThread, F as useSyncStatus, ac as useThreadSubscription, ap as useThreads, ad as useUndo, aB as useUnreadInboxNotificationsCount, Z as useUnsubscribeFromThread, ae as useUpdateMyPresence, aw as useUpdateNotificationSettings, af as useUpdateRoomNotificationSettings, ag as useUpdateRoomSubscriptionSettings, aC as useUser, az as useUserThreads_experimental } from './room-
|
|
1
|
+
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, x as createLiveblocksContext, G as createRoomContext, I as useAddReaction, aE as useAiChatMessages, aD as useAiChats, aq as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, ax as useCreateAiChat, P as useCreateComment, Q as useCreateThread, ay as useDeleteAiChat, z as useDeleteAllInboxNotifications, R as useDeleteComment, A as useDeleteInboxNotification, S as useDeleteThread, T as useEditComment, V as useEditThreadMetadata, B as useErrorListener, $ as useEventListener, a0 as useHistory, ah as useHistoryVersionData, ar as useHistoryVersions, _ as useInboxNotificationThread, au as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, W as useMarkThreadAsResolved, X as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, av as useNotificationSettings, ai as useOther, aj as useOthers, ak as useOthersConnectionIds, a6 as useOthersListener, al as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, aA as useRoomInfo, as as useRoomNotificationSettings, at as useRoomSubscriptionSettings, am as useSelf, aa as useStatus, an as useStorage, ab as useStorageRoot, ao as useStorageStatus, Y as useSubscribeToThread, F as useSyncStatus, ac as useThreadSubscription, ap as useThreads, ad as useUndo, aB as useUnreadInboxNotificationsCount, Z as useUnsubscribeFromThread, ae as useUpdateMyPresence, aw as useUpdateNotificationSettings, af as useUpdateRoomNotificationSettings, ag as useUpdateRoomSubscriptionSettings, aC as useUser, az as useUserThreads_experimental } from './room-BSt58hY4.js';
|
|
2
2
|
export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
import { ReactNode } from 'react';
|
|
6
|
-
import { OpaqueRoom } from '@liveblocks/core';
|
|
6
|
+
import { OpaqueRoom, AiKnowledgeSource } from '@liveblocks/core';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Raw access to the React context where the RoomProvider stores the current
|
|
@@ -36,4 +36,31 @@ type Props = {
|
|
|
36
36
|
*/
|
|
37
37
|
declare function ClientSideSuspense(props: Props): react_jsx_runtime.JSX.Element;
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
/**
|
|
40
|
+
* Make knowledge about your application state available to any AI used in
|
|
41
|
+
* a chat or a one-off request.
|
|
42
|
+
*
|
|
43
|
+
* For example:
|
|
44
|
+
*
|
|
45
|
+
* <RegisterAiKnowledge
|
|
46
|
+
* description="The current mode of my application"
|
|
47
|
+
* value="dark" />
|
|
48
|
+
*
|
|
49
|
+
* <RegisterAiKnowledge
|
|
50
|
+
* description="The current list of todos"
|
|
51
|
+
* value={todos} />
|
|
52
|
+
*
|
|
53
|
+
* By mounting this component, the AI will get access to this knwoledge.
|
|
54
|
+
* By unmounting this component, the AI will no longer have access to it.
|
|
55
|
+
* It can choose to use or ignore this knowledge in its responses.
|
|
56
|
+
*/
|
|
57
|
+
declare const RegisterAiKnowledge: react.NamedExoticComponent<AiKnowledgeSource & {
|
|
58
|
+
/**
|
|
59
|
+
* An optional unique key for this knowledge source. If multiple components
|
|
60
|
+
* register knowledge under the same key, the last one to mount takes
|
|
61
|
+
* precedence.
|
|
62
|
+
*/
|
|
63
|
+
id?: string;
|
|
64
|
+
}>;
|
|
65
|
+
|
|
66
|
+
export { ClientSideSuspense, RegisterAiKnowledge, RoomContext };
|
package/dist/index.js
CHANGED
|
@@ -2,8 +2,9 @@ import {
|
|
|
2
2
|
ClientSideSuspense,
|
|
3
3
|
PKG_FORMAT,
|
|
4
4
|
PKG_NAME,
|
|
5
|
-
PKG_VERSION
|
|
6
|
-
|
|
5
|
+
PKG_VERSION,
|
|
6
|
+
RegisterAiKnowledge
|
|
7
|
+
} from "./chunk-EAKXSMWI.js";
|
|
7
8
|
import {
|
|
8
9
|
ClientContext,
|
|
9
10
|
LiveblocksProvider,
|
|
@@ -76,7 +77,7 @@ import {
|
|
|
76
77
|
useUpdateNotificationSettings,
|
|
77
78
|
useUpdateRoomNotificationSettings,
|
|
78
79
|
useUpdateRoomSubscriptionSettings
|
|
79
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-MT7DJTSL.js";
|
|
80
81
|
|
|
81
82
|
// src/index.ts
|
|
82
83
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -86,6 +87,7 @@ export {
|
|
|
86
87
|
ClientContext,
|
|
87
88
|
ClientSideSuspense,
|
|
88
89
|
LiveblocksProvider,
|
|
90
|
+
RegisterAiKnowledge,
|
|
89
91
|
RoomContext,
|
|
90
92
|
_RoomProvider as RoomProvider,
|
|
91
93
|
createLiveblocksContext,
|
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 UseStorageStatusOptions,\n UseThreadsOptions,\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 createLiveblocksContext,\n LiveblocksProvider,\n useClient,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\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 useUpdateRoomNotificationSettings,\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 useStorageStatus,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomNotificationSettings,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChats,\n useAiChatMessages,\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 UseStorageStatusOptions,\n UseThreadsOptions,\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 } from \"./ai\";\nexport {\n ClientContext,\n createLiveblocksContext,\n LiveblocksProvider,\n useClient,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\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 useUpdateRoomNotificationSettings,\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 useStorageStatus,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomNotificationSettings,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChats,\n useAiChatMessages,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,SAAS,oCAAoC;AAXtD,YAAY,UAAU,aAAa,UAAU;","names":[]}
|
|
@@ -108,6 +108,8 @@ type HistoryVersionsAsyncSuccess = AsyncSuccess<HistoryVersion[], "versions">;
|
|
|
108
108
|
type HistoryVersionsAsyncResult = AsyncResult<HistoryVersion[], "versions">;
|
|
109
109
|
type AiChatsAsyncSuccess = PagedAsyncSuccess<AiChat[], "chats">;
|
|
110
110
|
type AiChatsAsyncResult = PagedAsyncResult<AiChat[], "chats">;
|
|
111
|
+
type AiChatAsyncSuccess = AsyncSuccess<AiChat, "chat">;
|
|
112
|
+
type AiChatAsyncResult = AsyncResult<AiChat, "chat">;
|
|
111
113
|
type AiChatMessagesAsyncSuccess = AsyncSuccess<readonly UiChatMessage[], "messages">;
|
|
112
114
|
type AiChatMessagesAsyncResult = AsyncResult<readonly UiChatMessage[], "messages">;
|
|
113
115
|
type RoomProviderProps<P extends JsonObject, S extends LsonObject> = Resolve<{
|
|
@@ -998,12 +1000,17 @@ type LiveblocksContextBundleCommon<M extends BaseMetadata> = {
|
|
|
998
1000
|
/**
|
|
999
1001
|
* Returns a function that creates an AI chat.
|
|
1000
1002
|
*
|
|
1003
|
+
* If you do not pass a title for the chat, it will be automatically computed
|
|
1004
|
+
* after the first AI response.
|
|
1005
|
+
*
|
|
1001
1006
|
* @example
|
|
1002
1007
|
* const createAiChat = useCreateAiChat();
|
|
1003
|
-
* createAiChat({ id: "ai-chat-id" });
|
|
1008
|
+
* createAiChat({ id: "ai-chat-id", title: "My AI chat" });
|
|
1004
1009
|
*/
|
|
1005
1010
|
useCreateAiChat(): (options: {
|
|
1006
1011
|
id: string;
|
|
1012
|
+
title?: string;
|
|
1013
|
+
metadata?: Record<string, string | string[]>;
|
|
1007
1014
|
}) => void;
|
|
1008
1015
|
/**
|
|
1009
1016
|
* Returns a function that deletes the AI chat with the specified id.
|
|
@@ -1050,6 +1057,13 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
|
|
|
1050
1057
|
* const { messages, error, isLoading } = useAiChatMessages("my-chat");
|
|
1051
1058
|
*/
|
|
1052
1059
|
useAiChatMessages(chatId: string): AiChatMessagesAsyncResult;
|
|
1060
|
+
/**
|
|
1061
|
+
* (Private beta) Returns the information of the given chat.
|
|
1062
|
+
*
|
|
1063
|
+
* @example
|
|
1064
|
+
* const { chat, error, isLoading } = useAiChat("my-chat");
|
|
1065
|
+
*/
|
|
1066
|
+
useAiChat(chatId: string): AiChatAsyncResult;
|
|
1053
1067
|
suspense: Resolve<LiveblocksContextBundleCommon<M> & SharedContextBundle<U>["suspense"] & {
|
|
1054
1068
|
/**
|
|
1055
1069
|
* Returns the inbox notifications for the current user.
|
|
@@ -1096,6 +1110,13 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
|
|
|
1096
1110
|
* const { messages } = useAiChatMessages("my-chat");
|
|
1097
1111
|
*/
|
|
1098
1112
|
useAiChatMessages(chatId: string): AiChatMessagesAsyncSuccess;
|
|
1113
|
+
/**
|
|
1114
|
+
* (Private beta) Returns the information of the given chat.
|
|
1115
|
+
*
|
|
1116
|
+
* @example
|
|
1117
|
+
* const { chat, error, isLoading } = useAiChat("my-chat");
|
|
1118
|
+
*/
|
|
1119
|
+
useAiChat(chatId: string): AiChatAsyncSuccess;
|
|
1099
1120
|
}>;
|
|
1100
1121
|
}>;
|
|
1101
1122
|
|
|
@@ -1414,6 +1435,7 @@ declare class UmbrellaStore<M extends BaseMetadata> {
|
|
|
1414
1435
|
readonly notificationSettings: LoadableResource<NotificationSettingsAsyncResult>;
|
|
1415
1436
|
readonly aiChats: LoadableResource<AiChatsAsyncResult>;
|
|
1416
1437
|
readonly messagesByChatId: DefaultMap<string, DefaultMap<MessageId | null, LoadableResource<AiChatMessagesAsyncResult>>>;
|
|
1438
|
+
readonly aiChatById: DefaultMap<string, LoadableResource<AiChatAsyncResult>>;
|
|
1417
1439
|
};
|
|
1418
1440
|
constructor(client: OpaqueClient);
|
|
1419
1441
|
/**
|
|
@@ -1507,6 +1529,8 @@ declare const ClientContext: react.Context<OpaqueClient | null>;
|
|
|
1507
1529
|
declare function getUmbrellaStoreForClient<M extends BaseMetadata$1>(client: OpaqueClient): UmbrellaStore<M>;
|
|
1508
1530
|
declare function useCreateAiChat(): (options: {
|
|
1509
1531
|
id: string;
|
|
1532
|
+
title?: string;
|
|
1533
|
+
metadata?: Record<string, string | string[]>;
|
|
1510
1534
|
}) => void;
|
|
1511
1535
|
declare function useDeleteAiChat(): (chatId: string) => void;
|
|
1512
1536
|
/**
|
|
@@ -1721,6 +1745,13 @@ declare const _useAiChats: TypedBundle$1["useAiChats"];
|
|
|
1721
1745
|
* const { chats, error, isLoading } = useAiChats();
|
|
1722
1746
|
*/
|
|
1723
1747
|
declare const _useAiChatsSuspense: TypedBundle$1["suspense"]["useAiChats"];
|
|
1748
|
+
/**
|
|
1749
|
+
* (Private beta) Returns the information of the given chat.
|
|
1750
|
+
*
|
|
1751
|
+
* @example
|
|
1752
|
+
* const { chat, error, isLoading } = useAiChat("my-chat");
|
|
1753
|
+
*/
|
|
1754
|
+
declare const _useAiChatSuspense: TypedBundle$1["suspense"]["useAiChat"];
|
|
1724
1755
|
/**
|
|
1725
1756
|
* (Private beta) Returns the messages in the given chat.
|
|
1726
1757
|
*
|
|
@@ -2536,4 +2567,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
2536
2567
|
*/
|
|
2537
2568
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
2538
2569
|
|
|
2539
|
-
export { _useEventListener as $, useDeleteInboxNotification as A, useErrorListener as B, ClientContext as C, useMarkAllInboxNotificationsAsRead as D, useMarkInboxNotificationAsRead as E, useSyncStatus as F, createRoomContext as G, _RoomProvider as H, _useAddReaction as I, useBatch as J, _useBroadcastEvent as K, LiveblocksProvider as L, type MutationContext as M, useCanRedo as N, useCanUndo as O, useCreateComment as P, _useCreateThread as Q, useDeleteComment as R, _useDeleteThread as S, useEditComment as T, type UseStorageStatusOptions as U, _useEditThreadMetadata as V, useMarkThreadAsResolved as W, useMarkThreadAsUnresolved as X, useSubscribeToThread as Y, useUnsubscribeFromThread as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, useHistory as a0, _useIsInsideRoom as a1, useLostConnectionListener as a2, useMarkThreadAsRead as a3, _useMutation as a4, _useMyPresence as a5, _useOthersListener as a6, useRedo as a7, useRemoveReaction as a8, _useRoom as a9, useRoomInfo as aA, useUnreadInboxNotificationsCount as aB, _useUser as aC, _useAiChats as aD, _useAiChatMessages as aE, _useOtherSuspense as aF, _useOthersSuspense as aG, useOthersConnectionIdsSuspense as aH, _useOthersMappedSuspense as aI, _useSelfSuspense as aJ, _useStorageSuspense as aK, useStorageStatusSuspense as aL, _useThreadsSuspense as aM, useAttachmentUrlSuspense as aN, _useHistoryVersionsSuspense as aO, _useRoomNotificationSettingsSuspense as aP, _useRoomSubscriptionSettingsSuspense as aQ, useInboxNotificationsSuspense as aR, useNotificationSettingsSuspense as aS, useRoomInfoSuspense as aT, useUnreadInboxNotificationsCountSuspense as aU, _useUserSuspense as aV, _useUserThreadsSuspense_experimental as aW, _useAiChatsSuspense as aX, _useAiChatMessagesSuspense as aY, useStatus as aa, _useStorageRoot as ab, useThreadSubscription as ac, useUndo as ad, _useUpdateMyPresence as ae, useUpdateRoomNotificationSettings as af, useUpdateRoomSubscriptionSettings as ag, useHistoryVersionData as ah, _useOther as ai, _useOthers as aj, useOthersConnectionIds as ak, _useOthersMapped as al, _useSelf as am, _useStorage as an, useStorageStatus as ao, _useThreads as ap, useAttachmentUrl as aq, _useHistoryVersions as ar, _useRoomNotificationSettings as as, _useRoomSubscriptionSettings as at, useInboxNotifications as au, useNotificationSettings as av, useUpdateNotificationSettings as aw, useCreateAiChat as ax, useDeleteAiChat as ay, _useUserThreads_experimental as az, useCreateRoomComment as b, 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 UseThreadsOptions as w, createLiveblocksContext as x, useClient as y, useDeleteAllInboxNotifications as z };
|
|
2570
|
+
export { _useEventListener as $, useDeleteInboxNotification as A, useErrorListener as B, ClientContext as C, useMarkAllInboxNotificationsAsRead as D, useMarkInboxNotificationAsRead as E, useSyncStatus as F, createRoomContext as G, _RoomProvider as H, _useAddReaction as I, useBatch as J, _useBroadcastEvent as K, LiveblocksProvider as L, type MutationContext as M, useCanRedo as N, useCanUndo as O, useCreateComment as P, _useCreateThread as Q, useDeleteComment as R, _useDeleteThread as S, useEditComment as T, type UseStorageStatusOptions as U, _useEditThreadMetadata as V, useMarkThreadAsResolved as W, useMarkThreadAsUnresolved as X, useSubscribeToThread as Y, useUnsubscribeFromThread as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, useHistory as a0, _useIsInsideRoom as a1, useLostConnectionListener as a2, useMarkThreadAsRead as a3, _useMutation as a4, _useMyPresence as a5, _useOthersListener as a6, useRedo as a7, useRemoveReaction as a8, _useRoom as a9, useRoomInfo as aA, useUnreadInboxNotificationsCount as aB, _useUser as aC, _useAiChats as aD, _useAiChatMessages as aE, _useOtherSuspense as aF, _useOthersSuspense as aG, useOthersConnectionIdsSuspense as aH, _useOthersMappedSuspense as aI, _useSelfSuspense as aJ, _useStorageSuspense as aK, useStorageStatusSuspense as aL, _useThreadsSuspense as aM, useAttachmentUrlSuspense as aN, _useHistoryVersionsSuspense as aO, _useRoomNotificationSettingsSuspense as aP, _useRoomSubscriptionSettingsSuspense as aQ, useInboxNotificationsSuspense as aR, useNotificationSettingsSuspense as aS, useRoomInfoSuspense as aT, useUnreadInboxNotificationsCountSuspense as aU, _useUserSuspense as aV, _useUserThreadsSuspense_experimental as aW, _useAiChatsSuspense as aX, _useAiChatMessagesSuspense as aY, _useAiChatSuspense as aZ, useStatus as aa, _useStorageRoot as ab, useThreadSubscription as ac, useUndo as ad, _useUpdateMyPresence as ae, useUpdateRoomNotificationSettings as af, useUpdateRoomSubscriptionSettings as ag, useHistoryVersionData as ah, _useOther as ai, _useOthers as aj, useOthersConnectionIds as ak, _useOthersMapped as al, _useSelf as am, _useStorage as an, useStorageStatus as ao, _useThreads as ap, useAttachmentUrl as aq, _useHistoryVersions as ar, _useRoomNotificationSettings as as, _useRoomSubscriptionSettings as at, useInboxNotifications as au, useNotificationSettings as av, useUpdateNotificationSettings as aw, useCreateAiChat as ax, useDeleteAiChat as ay, _useUserThreads_experimental as az, useCreateRoomComment as b, 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 UseThreadsOptions as w, createLiveblocksContext as x, useClient as y, useDeleteAllInboxNotifications as z };
|
|
@@ -108,6 +108,8 @@ type HistoryVersionsAsyncSuccess = AsyncSuccess<HistoryVersion[], "versions">;
|
|
|
108
108
|
type HistoryVersionsAsyncResult = AsyncResult<HistoryVersion[], "versions">;
|
|
109
109
|
type AiChatsAsyncSuccess = PagedAsyncSuccess<AiChat[], "chats">;
|
|
110
110
|
type AiChatsAsyncResult = PagedAsyncResult<AiChat[], "chats">;
|
|
111
|
+
type AiChatAsyncSuccess = AsyncSuccess<AiChat, "chat">;
|
|
112
|
+
type AiChatAsyncResult = AsyncResult<AiChat, "chat">;
|
|
111
113
|
type AiChatMessagesAsyncSuccess = AsyncSuccess<readonly UiChatMessage[], "messages">;
|
|
112
114
|
type AiChatMessagesAsyncResult = AsyncResult<readonly UiChatMessage[], "messages">;
|
|
113
115
|
type RoomProviderProps<P extends JsonObject, S extends LsonObject> = Resolve<{
|
|
@@ -998,12 +1000,17 @@ type LiveblocksContextBundleCommon<M extends BaseMetadata> = {
|
|
|
998
1000
|
/**
|
|
999
1001
|
* Returns a function that creates an AI chat.
|
|
1000
1002
|
*
|
|
1003
|
+
* If you do not pass a title for the chat, it will be automatically computed
|
|
1004
|
+
* after the first AI response.
|
|
1005
|
+
*
|
|
1001
1006
|
* @example
|
|
1002
1007
|
* const createAiChat = useCreateAiChat();
|
|
1003
|
-
* createAiChat({ id: "ai-chat-id" });
|
|
1008
|
+
* createAiChat({ id: "ai-chat-id", title: "My AI chat" });
|
|
1004
1009
|
*/
|
|
1005
1010
|
useCreateAiChat(): (options: {
|
|
1006
1011
|
id: string;
|
|
1012
|
+
title?: string;
|
|
1013
|
+
metadata?: Record<string, string | string[]>;
|
|
1007
1014
|
}) => void;
|
|
1008
1015
|
/**
|
|
1009
1016
|
* Returns a function that deletes the AI chat with the specified id.
|
|
@@ -1050,6 +1057,13 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
|
|
|
1050
1057
|
* const { messages, error, isLoading } = useAiChatMessages("my-chat");
|
|
1051
1058
|
*/
|
|
1052
1059
|
useAiChatMessages(chatId: string): AiChatMessagesAsyncResult;
|
|
1060
|
+
/**
|
|
1061
|
+
* (Private beta) Returns the information of the given chat.
|
|
1062
|
+
*
|
|
1063
|
+
* @example
|
|
1064
|
+
* const { chat, error, isLoading } = useAiChat("my-chat");
|
|
1065
|
+
*/
|
|
1066
|
+
useAiChat(chatId: string): AiChatAsyncResult;
|
|
1053
1067
|
suspense: Resolve<LiveblocksContextBundleCommon<M> & SharedContextBundle<U>["suspense"] & {
|
|
1054
1068
|
/**
|
|
1055
1069
|
* Returns the inbox notifications for the current user.
|
|
@@ -1096,6 +1110,13 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
|
|
|
1096
1110
|
* const { messages } = useAiChatMessages("my-chat");
|
|
1097
1111
|
*/
|
|
1098
1112
|
useAiChatMessages(chatId: string): AiChatMessagesAsyncSuccess;
|
|
1113
|
+
/**
|
|
1114
|
+
* (Private beta) Returns the information of the given chat.
|
|
1115
|
+
*
|
|
1116
|
+
* @example
|
|
1117
|
+
* const { chat, error, isLoading } = useAiChat("my-chat");
|
|
1118
|
+
*/
|
|
1119
|
+
useAiChat(chatId: string): AiChatAsyncSuccess;
|
|
1099
1120
|
}>;
|
|
1100
1121
|
}>;
|
|
1101
1122
|
|
|
@@ -1414,6 +1435,7 @@ declare class UmbrellaStore<M extends BaseMetadata> {
|
|
|
1414
1435
|
readonly notificationSettings: LoadableResource<NotificationSettingsAsyncResult>;
|
|
1415
1436
|
readonly aiChats: LoadableResource<AiChatsAsyncResult>;
|
|
1416
1437
|
readonly messagesByChatId: DefaultMap<string, DefaultMap<MessageId | null, LoadableResource<AiChatMessagesAsyncResult>>>;
|
|
1438
|
+
readonly aiChatById: DefaultMap<string, LoadableResource<AiChatAsyncResult>>;
|
|
1417
1439
|
};
|
|
1418
1440
|
constructor(client: OpaqueClient);
|
|
1419
1441
|
/**
|
|
@@ -1507,6 +1529,8 @@ declare const ClientContext: react.Context<OpaqueClient | null>;
|
|
|
1507
1529
|
declare function getUmbrellaStoreForClient<M extends BaseMetadata$1>(client: OpaqueClient): UmbrellaStore<M>;
|
|
1508
1530
|
declare function useCreateAiChat(): (options: {
|
|
1509
1531
|
id: string;
|
|
1532
|
+
title?: string;
|
|
1533
|
+
metadata?: Record<string, string | string[]>;
|
|
1510
1534
|
}) => void;
|
|
1511
1535
|
declare function useDeleteAiChat(): (chatId: string) => void;
|
|
1512
1536
|
/**
|
|
@@ -1721,6 +1745,13 @@ declare const _useAiChats: TypedBundle$1["useAiChats"];
|
|
|
1721
1745
|
* const { chats, error, isLoading } = useAiChats();
|
|
1722
1746
|
*/
|
|
1723
1747
|
declare const _useAiChatsSuspense: TypedBundle$1["suspense"]["useAiChats"];
|
|
1748
|
+
/**
|
|
1749
|
+
* (Private beta) Returns the information of the given chat.
|
|
1750
|
+
*
|
|
1751
|
+
* @example
|
|
1752
|
+
* const { chat, error, isLoading } = useAiChat("my-chat");
|
|
1753
|
+
*/
|
|
1754
|
+
declare const _useAiChatSuspense: TypedBundle$1["suspense"]["useAiChat"];
|
|
1724
1755
|
/**
|
|
1725
1756
|
* (Private beta) Returns the messages in the given chat.
|
|
1726
1757
|
*
|
|
@@ -2536,4 +2567,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
2536
2567
|
*/
|
|
2537
2568
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
2538
2569
|
|
|
2539
|
-
export { _useEventListener as $, useDeleteInboxNotification as A, useErrorListener as B, ClientContext as C, useMarkAllInboxNotificationsAsRead as D, useMarkInboxNotificationAsRead as E, useSyncStatus as F, createRoomContext as G, _RoomProvider as H, _useAddReaction as I, useBatch as J, _useBroadcastEvent as K, LiveblocksProvider as L, type MutationContext as M, useCanRedo as N, useCanUndo as O, useCreateComment as P, _useCreateThread as Q, useDeleteComment as R, _useDeleteThread as S, useEditComment as T, type UseStorageStatusOptions as U, _useEditThreadMetadata as V, useMarkThreadAsResolved as W, useMarkThreadAsUnresolved as X, useSubscribeToThread as Y, useUnsubscribeFromThread as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, useHistory as a0, _useIsInsideRoom as a1, useLostConnectionListener as a2, useMarkThreadAsRead as a3, _useMutation as a4, _useMyPresence as a5, _useOthersListener as a6, useRedo as a7, useRemoveReaction as a8, _useRoom as a9, useRoomInfo as aA, useUnreadInboxNotificationsCount as aB, _useUser as aC, _useAiChats as aD, _useAiChatMessages as aE, _useOtherSuspense as aF, _useOthersSuspense as aG, useOthersConnectionIdsSuspense as aH, _useOthersMappedSuspense as aI, _useSelfSuspense as aJ, _useStorageSuspense as aK, useStorageStatusSuspense as aL, _useThreadsSuspense as aM, useAttachmentUrlSuspense as aN, _useHistoryVersionsSuspense as aO, _useRoomNotificationSettingsSuspense as aP, _useRoomSubscriptionSettingsSuspense as aQ, useInboxNotificationsSuspense as aR, useNotificationSettingsSuspense as aS, useRoomInfoSuspense as aT, useUnreadInboxNotificationsCountSuspense as aU, _useUserSuspense as aV, _useUserThreadsSuspense_experimental as aW, _useAiChatsSuspense as aX, _useAiChatMessagesSuspense as aY, useStatus as aa, _useStorageRoot as ab, useThreadSubscription as ac, useUndo as ad, _useUpdateMyPresence as ae, useUpdateRoomNotificationSettings as af, useUpdateRoomSubscriptionSettings as ag, useHistoryVersionData as ah, _useOther as ai, _useOthers as aj, useOthersConnectionIds as ak, _useOthersMapped as al, _useSelf as am, _useStorage as an, useStorageStatus as ao, _useThreads as ap, useAttachmentUrl as aq, _useHistoryVersions as ar, _useRoomNotificationSettings as as, _useRoomSubscriptionSettings as at, useInboxNotifications as au, useNotificationSettings as av, useUpdateNotificationSettings as aw, useCreateAiChat as ax, useDeleteAiChat as ay, _useUserThreads_experimental as az, useCreateRoomComment as b, 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 UseThreadsOptions as w, createLiveblocksContext as x, useClient as y, useDeleteAllInboxNotifications as z };
|
|
2570
|
+
export { _useEventListener as $, useDeleteInboxNotification as A, useErrorListener as B, ClientContext as C, useMarkAllInboxNotificationsAsRead as D, useMarkInboxNotificationAsRead as E, useSyncStatus as F, createRoomContext as G, _RoomProvider as H, _useAddReaction as I, useBatch as J, _useBroadcastEvent as K, LiveblocksProvider as L, type MutationContext as M, useCanRedo as N, useCanUndo as O, useCreateComment as P, _useCreateThread as Q, useDeleteComment as R, _useDeleteThread as S, useEditComment as T, type UseStorageStatusOptions as U, _useEditThreadMetadata as V, useMarkThreadAsResolved as W, useMarkThreadAsUnresolved as X, useSubscribeToThread as Y, useUnsubscribeFromThread as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, useHistory as a0, _useIsInsideRoom as a1, useLostConnectionListener as a2, useMarkThreadAsRead as a3, _useMutation as a4, _useMyPresence as a5, _useOthersListener as a6, useRedo as a7, useRemoveReaction as a8, _useRoom as a9, useRoomInfo as aA, useUnreadInboxNotificationsCount as aB, _useUser as aC, _useAiChats as aD, _useAiChatMessages as aE, _useOtherSuspense as aF, _useOthersSuspense as aG, useOthersConnectionIdsSuspense as aH, _useOthersMappedSuspense as aI, _useSelfSuspense as aJ, _useStorageSuspense as aK, useStorageStatusSuspense as aL, _useThreadsSuspense as aM, useAttachmentUrlSuspense as aN, _useHistoryVersionsSuspense as aO, _useRoomNotificationSettingsSuspense as aP, _useRoomSubscriptionSettingsSuspense as aQ, useInboxNotificationsSuspense as aR, useNotificationSettingsSuspense as aS, useRoomInfoSuspense as aT, useUnreadInboxNotificationsCountSuspense as aU, _useUserSuspense as aV, _useUserThreadsSuspense_experimental as aW, _useAiChatsSuspense as aX, _useAiChatMessagesSuspense as aY, _useAiChatSuspense as aZ, useStatus as aa, _useStorageRoot as ab, useThreadSubscription as ac, useUndo as ad, _useUpdateMyPresence as ae, useUpdateRoomNotificationSettings as af, useUpdateRoomSubscriptionSettings as ag, useHistoryVersionData as ah, _useOther as ai, _useOthers as aj, useOthersConnectionIds as ak, _useOthersMapped as al, _useSelf as am, _useStorage as an, useStorageStatus as ao, _useThreads as ap, useAttachmentUrl as aq, _useHistoryVersions as ar, _useRoomNotificationSettings as as, _useRoomSubscriptionSettings as at, useInboxNotifications as au, useNotificationSettings as av, useUpdateNotificationSettings as aw, useCreateAiChat as ax, useDeleteAiChat as ay, _useUserThreads_experimental as az, useCreateRoomComment as b, 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 UseThreadsOptions as w, createLiveblocksContext as x, useClient as y, useDeleteAllInboxNotifications as z };
|
package/dist/suspense.cjs
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var _chunkBJ6T5M3Pcjs = require('./chunk-BJ6T5M3P.cjs');
|
|
7
6
|
|
|
7
|
+
var _chunkCP5NPU7Ccjs = require('./chunk-CP5NPU7C.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -73,12 +73,16 @@ var _chunkBJ6T5M3Pcjs = require('./chunk-BJ6T5M3P.cjs');
|
|
|
73
73
|
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
var _chunkG2EOFP6Scjs = require('./chunk-G2EOFP6S.cjs');
|
|
77
79
|
|
|
78
80
|
// src/suspense.ts
|
|
79
81
|
var _core = require('@liveblocks/core');
|
|
80
82
|
var _client = require('@liveblocks/client');
|
|
81
|
-
_core.detectDupes.call(void 0,
|
|
83
|
+
_core.detectDupes.call(void 0, _chunkCP5NPU7Ccjs.PKG_NAME, _chunkCP5NPU7Ccjs.PKG_VERSION, _chunkCP5NPU7Ccjs.PKG_FORMAT);
|
|
84
|
+
|
|
85
|
+
|
|
82
86
|
|
|
83
87
|
|
|
84
88
|
|
|
@@ -151,5 +155,5 @@ _core.detectDupes.call(void 0, _chunkBJ6T5M3Pcjs.PKG_NAME, _chunkBJ6T5M3Pcjs.PKG
|
|
|
151
155
|
|
|
152
156
|
|
|
153
157
|
|
|
154
|
-
exports.ClientContext =
|
|
158
|
+
exports.ClientContext = _chunkG2EOFP6Scjs.ClientContext; exports.ClientSideSuspense = _chunkCP5NPU7Ccjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkG2EOFP6Scjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkCP5NPU7Ccjs.RegisterAiKnowledge; exports.RoomContext = _chunkG2EOFP6Scjs.RoomContext; exports.RoomProvider = _chunkG2EOFP6Scjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkG2EOFP6Scjs._useAddReaction; exports.useAiChat = _chunkG2EOFP6Scjs._useAiChatSuspense; exports.useAiChatMessages = _chunkG2EOFP6Scjs._useAiChatMessagesSuspense; exports.useAiChats = _chunkG2EOFP6Scjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunkG2EOFP6Scjs.useAttachmentUrlSuspense; exports.useBatch = _chunkG2EOFP6Scjs.useBatch; exports.useBroadcastEvent = _chunkG2EOFP6Scjs._useBroadcastEvent; exports.useCanRedo = _chunkG2EOFP6Scjs.useCanRedo; exports.useCanUndo = _chunkG2EOFP6Scjs.useCanUndo; exports.useClient = _chunkG2EOFP6Scjs.useClient; exports.useCreateAiChat = _chunkG2EOFP6Scjs.useCreateAiChat; exports.useCreateComment = _chunkG2EOFP6Scjs.useCreateComment; exports.useCreateThread = _chunkG2EOFP6Scjs._useCreateThread; exports.useDeleteAiChat = _chunkG2EOFP6Scjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkG2EOFP6Scjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkG2EOFP6Scjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkG2EOFP6Scjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkG2EOFP6Scjs._useDeleteThread; exports.useEditComment = _chunkG2EOFP6Scjs.useEditComment; exports.useEditThreadMetadata = _chunkG2EOFP6Scjs._useEditThreadMetadata; exports.useErrorListener = _chunkG2EOFP6Scjs.useErrorListener; exports.useEventListener = _chunkG2EOFP6Scjs._useEventListener; exports.useHistory = _chunkG2EOFP6Scjs.useHistory; exports.useHistoryVersions = _chunkG2EOFP6Scjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkG2EOFP6Scjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkG2EOFP6Scjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkG2EOFP6Scjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkG2EOFP6Scjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkG2EOFP6Scjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkG2EOFP6Scjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkG2EOFP6Scjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkG2EOFP6Scjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkG2EOFP6Scjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkG2EOFP6Scjs._useMutation; exports.useMyPresence = _chunkG2EOFP6Scjs._useMyPresence; exports.useNotificationSettings = _chunkG2EOFP6Scjs.useNotificationSettingsSuspense; exports.useOther = _chunkG2EOFP6Scjs._useOtherSuspense; exports.useOthers = _chunkG2EOFP6Scjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkG2EOFP6Scjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkG2EOFP6Scjs._useOthersListener; exports.useOthersMapped = _chunkG2EOFP6Scjs._useOthersMappedSuspense; exports.useRedo = _chunkG2EOFP6Scjs.useRedo; exports.useRemoveReaction = _chunkG2EOFP6Scjs.useRemoveReaction; exports.useRoom = _chunkG2EOFP6Scjs._useRoom; exports.useRoomInfo = _chunkG2EOFP6Scjs.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunkG2EOFP6Scjs._useRoomNotificationSettingsSuspense; exports.useRoomSubscriptionSettings = _chunkG2EOFP6Scjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunkG2EOFP6Scjs._useSelfSuspense; exports.useStatus = _chunkG2EOFP6Scjs.useStatus; exports.useStorage = _chunkG2EOFP6Scjs._useStorageSuspense; exports.useStorageRoot = _chunkG2EOFP6Scjs._useStorageRoot; exports.useStorageStatus = _chunkG2EOFP6Scjs.useStorageStatusSuspense; exports.useSubscribeToThread = _chunkG2EOFP6Scjs.useSubscribeToThread; exports.useSyncStatus = _chunkG2EOFP6Scjs.useSyncStatus; exports.useThreadSubscription = _chunkG2EOFP6Scjs.useThreadSubscription; exports.useThreads = _chunkG2EOFP6Scjs._useThreadsSuspense; exports.useUndo = _chunkG2EOFP6Scjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkG2EOFP6Scjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunkG2EOFP6Scjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkG2EOFP6Scjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkG2EOFP6Scjs.useUpdateNotificationSettings; exports.useUpdateRoomNotificationSettings = _chunkG2EOFP6Scjs.useUpdateRoomNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkG2EOFP6Scjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunkG2EOFP6Scjs._useUserSuspense; exports.useUserThreads_experimental = _chunkG2EOFP6Scjs._useUserThreadsSuspense_experimental;
|
|
155
159
|
//# 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;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;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;AACF,wDAA6B;AAC7B;AACA;AC9EA,wCAA4B;AAc5B,4CAAsD;AAXtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;AD+E7C;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;AACF,+0JAAC","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 UseStorageStatusOptions,\n UseThreadsOptions,\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 } from \"./ai\";\nexport {\n ClientContext,\n LiveblocksProvider,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSyncStatus,\n useErrorListener,\n} from \"./liveblocks\";\nexport {\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\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 useUpdateRoomNotificationSettings,\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 useStorageStatusSuspense as useStorageStatus,\n useThreadsSuspense as useThreads,\n useAttachmentUrlSuspense as useAttachmentUrl,\n useHistoryVersionsSuspense as useHistoryVersions,\n useRoomNotificationSettingsSuspense as useRoomNotificationSettings,\n useRoomSubscriptionSettingsSuspense as useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useNotificationSettingsSuspense as useNotificationSettings,\n useRoomInfoSuspense as useRoomInfo,\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} from \"./liveblocks\";\n"]}
|
package/dist/suspense.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ClientSideSuspense, RoomContext } from './index.cjs';
|
|
2
|
-
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, I as useAddReaction, aY as useAiChatMessages, aX as useAiChats, aN as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, ax as useCreateAiChat, P as useCreateComment, Q as useCreateThread, ay as useDeleteAiChat, z as useDeleteAllInboxNotifications, R as useDeleteComment, A as useDeleteInboxNotification, S as useDeleteThread, T as useEditComment, V as useEditThreadMetadata, B as useErrorListener, $ as useEventListener, a0 as useHistory, aO as useHistoryVersions, _ as useInboxNotificationThread, aR as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, W as useMarkThreadAsResolved, X as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, aS as useNotificationSettings, aF as useOther, aG as useOthers, aH as useOthersConnectionIds, a6 as useOthersListener, aI as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, aT as useRoomInfo, aP as useRoomNotificationSettings, aQ as useRoomSubscriptionSettings, aJ as useSelf, aa as useStatus, aK as useStorage, ab as useStorageRoot, aL as useStorageStatus, Y as useSubscribeToThread, F as useSyncStatus, ac as useThreadSubscription, aM as useThreads, ad as useUndo, aU as useUnreadInboxNotificationsCount, Z as useUnsubscribeFromThread, ae as useUpdateMyPresence, aw as useUpdateNotificationSettings, af as useUpdateRoomNotificationSettings, ag as useUpdateRoomSubscriptionSettings, aV as useUser, aW as useUserThreads_experimental } from './room-
|
|
1
|
+
export { ClientSideSuspense, RegisterAiKnowledge, RoomContext } from './index.cjs';
|
|
2
|
+
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, I as useAddReaction, aZ as useAiChat, aY as useAiChatMessages, aX as useAiChats, aN as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, ax as useCreateAiChat, P as useCreateComment, Q as useCreateThread, ay as useDeleteAiChat, z as useDeleteAllInboxNotifications, R as useDeleteComment, A as useDeleteInboxNotification, S as useDeleteThread, T as useEditComment, V as useEditThreadMetadata, B as useErrorListener, $ as useEventListener, a0 as useHistory, aO as useHistoryVersions, _ as useInboxNotificationThread, aR as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, W as useMarkThreadAsResolved, X as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, aS as useNotificationSettings, aF as useOther, aG as useOthers, aH as useOthersConnectionIds, a6 as useOthersListener, aI as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, aT as useRoomInfo, aP as useRoomNotificationSettings, aQ as useRoomSubscriptionSettings, aJ as useSelf, aa as useStatus, aK as useStorage, ab as useStorageRoot, aL as useStorageStatus, Y as useSubscribeToThread, F as useSyncStatus, ac as useThreadSubscription, aM as useThreads, ad as useUndo, aU as useUnreadInboxNotificationsCount, Z as useUnsubscribeFromThread, ae as useUpdateMyPresence, aw as useUpdateNotificationSettings, af as useUpdateRoomNotificationSettings, ag as useUpdateRoomSubscriptionSettings, aV as useUser, aW as useUserThreads_experimental } from './room-BSt58hY4.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
|
-
export { ClientSideSuspense, RoomContext } from './index.js';
|
|
2
|
-
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, I as useAddReaction, aY as useAiChatMessages, aX as useAiChats, aN as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, ax as useCreateAiChat, P as useCreateComment, Q as useCreateThread, ay as useDeleteAiChat, z as useDeleteAllInboxNotifications, R as useDeleteComment, A as useDeleteInboxNotification, S as useDeleteThread, T as useEditComment, V as useEditThreadMetadata, B as useErrorListener, $ as useEventListener, a0 as useHistory, aO as useHistoryVersions, _ as useInboxNotificationThread, aR as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, W as useMarkThreadAsResolved, X as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, aS as useNotificationSettings, aF as useOther, aG as useOthers, aH as useOthersConnectionIds, a6 as useOthersListener, aI as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, aT as useRoomInfo, aP as useRoomNotificationSettings, aQ as useRoomSubscriptionSettings, aJ as useSelf, aa as useStatus, aK as useStorage, ab as useStorageRoot, aL as useStorageStatus, Y as useSubscribeToThread, F as useSyncStatus, ac as useThreadSubscription, aM as useThreads, ad as useUndo, aU as useUnreadInboxNotificationsCount, Z as useUnsubscribeFromThread, ae as useUpdateMyPresence, aw as useUpdateNotificationSettings, af as useUpdateRoomNotificationSettings, ag as useUpdateRoomSubscriptionSettings, aV as useUser, aW as useUserThreads_experimental } from './room-
|
|
1
|
+
export { ClientSideSuspense, RegisterAiKnowledge, RoomContext } from './index.js';
|
|
2
|
+
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, I as useAddReaction, aZ as useAiChat, aY as useAiChatMessages, aX as useAiChats, aN as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, ax as useCreateAiChat, P as useCreateComment, Q as useCreateThread, ay as useDeleteAiChat, z as useDeleteAllInboxNotifications, R as useDeleteComment, A as useDeleteInboxNotification, S as useDeleteThread, T as useEditComment, V as useEditThreadMetadata, B as useErrorListener, $ as useEventListener, a0 as useHistory, aO as useHistoryVersions, _ as useInboxNotificationThread, aR as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, W as useMarkThreadAsResolved, X as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, aS as useNotificationSettings, aF as useOther, aG as useOthers, aH as useOthersConnectionIds, a6 as useOthersListener, aI as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, aT as useRoomInfo, aP as useRoomNotificationSettings, aQ as useRoomSubscriptionSettings, aJ as useSelf, aa as useStatus, aK as useStorage, ab as useStorageRoot, aL as useStorageStatus, Y as useSubscribeToThread, F as useSyncStatus, ac as useThreadSubscription, aM as useThreads, ad as useUndo, aU as useUnreadInboxNotificationsCount, Z as useUnsubscribeFromThread, ae as useUpdateMyPresence, aw as useUpdateNotificationSettings, af as useUpdateRoomNotificationSettings, ag as useUpdateRoomSubscriptionSettings, aV as useUser, aW as useUserThreads_experimental } from './room-BSt58hY4.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
|
@@ -2,8 +2,9 @@ import {
|
|
|
2
2
|
ClientSideSuspense,
|
|
3
3
|
PKG_FORMAT,
|
|
4
4
|
PKG_NAME,
|
|
5
|
-
PKG_VERSION
|
|
6
|
-
|
|
5
|
+
PKG_VERSION,
|
|
6
|
+
RegisterAiKnowledge
|
|
7
|
+
} from "./chunk-EAKXSMWI.js";
|
|
7
8
|
import {
|
|
8
9
|
ClientContext,
|
|
9
10
|
LiveblocksProvider,
|
|
@@ -11,6 +12,7 @@ import {
|
|
|
11
12
|
_RoomProvider,
|
|
12
13
|
_useAddReaction,
|
|
13
14
|
_useAiChatMessagesSuspense,
|
|
15
|
+
_useAiChatSuspense,
|
|
14
16
|
_useAiChatsSuspense,
|
|
15
17
|
_useBroadcastEvent,
|
|
16
18
|
_useCreateThread,
|
|
@@ -73,7 +75,7 @@ import {
|
|
|
73
75
|
useUpdateNotificationSettings,
|
|
74
76
|
useUpdateRoomNotificationSettings,
|
|
75
77
|
useUpdateRoomSubscriptionSettings
|
|
76
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-MT7DJTSL.js";
|
|
77
79
|
|
|
78
80
|
// src/suspense.ts
|
|
79
81
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -83,11 +85,13 @@ export {
|
|
|
83
85
|
ClientContext,
|
|
84
86
|
ClientSideSuspense,
|
|
85
87
|
LiveblocksProvider,
|
|
88
|
+
RegisterAiKnowledge,
|
|
86
89
|
RoomContext,
|
|
87
90
|
_RoomProvider as RoomProvider,
|
|
88
91
|
isNotificationChannelEnabled,
|
|
89
92
|
shallow,
|
|
90
93
|
_useAddReaction as useAddReaction,
|
|
94
|
+
_useAiChatSuspense as useAiChat,
|
|
91
95
|
_useAiChatMessagesSuspense as useAiChatMessages,
|
|
92
96
|
_useAiChatsSuspense as useAiChats,
|
|
93
97
|
useAttachmentUrlSuspense as useAttachmentUrl,
|
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 UseStorageStatusOptions,\n UseThreadsOptions,\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 LiveblocksProvider,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSyncStatus,\n useErrorListener,\n} from \"./liveblocks\";\nexport {\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\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 useUpdateRoomNotificationSettings,\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 useStorageStatusSuspense as useStorageStatus,\n useThreadsSuspense as useThreads,\n useAttachmentUrlSuspense as useAttachmentUrl,\n useHistoryVersionsSuspense as useHistoryVersions,\n useRoomNotificationSettingsSuspense as useRoomNotificationSettings,\n useRoomSubscriptionSettingsSuspense as useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useNotificationSettingsSuspense as useNotificationSettings,\n useRoomInfoSuspense as useRoomInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n useAiChatsSuspense as useAiChats,\n useAiChatMessagesSuspense as useAiChatMessages,\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 UseStorageStatusOptions,\n UseThreadsOptions,\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 } from \"./ai\";\nexport {\n ClientContext,\n LiveblocksProvider,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSyncStatus,\n useErrorListener,\n} from \"./liveblocks\";\nexport {\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\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 useUpdateRoomNotificationSettings,\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 useStorageStatusSuspense as useStorageStatus,\n useThreadsSuspense as useThreads,\n useAttachmentUrlSuspense as useAttachmentUrl,\n useHistoryVersionsSuspense as useHistoryVersions,\n useRoomNotificationSettingsSuspense as useRoomNotificationSettings,\n useRoomSubscriptionSettingsSuspense as useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useNotificationSettingsSuspense as useNotificationSettings,\n useRoomInfoSuspense as useRoomInfo,\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} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,SAAS,oCAAoC;AAXtD,YAAY,UAAU,aAAa,UAAU;","names":[]}
|