@liveblocks/react 2.25.0-aiprivatebeta10 → 2.25.0-aiprivatebeta11
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-MSLJX4ZW.cjs → chunk-A4EPET3Z.cjs} +2 -2
- package/dist/{chunk-MSLJX4ZW.cjs.map → chunk-A4EPET3Z.cjs.map} +1 -1
- package/dist/{chunk-Y6Z36KDP.cjs → chunk-CTSFL4KT.cjs} +23 -5
- package/dist/chunk-CTSFL4KT.cjs.map +1 -0
- package/dist/{chunk-Y2RSQZ5R.js → chunk-OWSOT5S6.js} +2 -2
- package/dist/{chunk-Y7BGHNHH.js → chunk-X7TWWGKZ.js} +22 -4
- package/dist/{chunk-Y6Z36KDP.cjs.map → chunk-X7TWWGKZ.js.map} +1 -1
- package/dist/index.cjs +6 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -31
- package/dist/index.d.ts +3 -31
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/{room-BYtyYCxu.d.cts → room-BdfI6Vy7.d.cts} +71 -18
- package/dist/{room-BYtyYCxu.d.ts → room-BdfI6Vy7.d.ts} +71 -18
- package/dist/suspense.cjs +6 -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 +4 -2
- package/dist/suspense.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-Y7BGHNHH.js.map +0 -1
- /package/dist/{chunk-Y2RSQZ5R.js.map → chunk-OWSOT5S6.js.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkA4EPET3Zcjs = require('./chunk-A4EPET3Z.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -79,12 +79,14 @@ var _chunkMSLJX4ZWcjs = require('./chunk-MSLJX4ZW.cjs');
|
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
|
|
83
|
+
var _chunkCTSFL4KTcjs = require('./chunk-CTSFL4KT.cjs');
|
|
83
84
|
|
|
84
85
|
// src/index.ts
|
|
85
86
|
var _core = require('@liveblocks/core');
|
|
86
87
|
var _client = require('@liveblocks/client');
|
|
87
|
-
_core.detectDupes.call(void 0,
|
|
88
|
+
_core.detectDupes.call(void 0, _chunkA4EPET3Zcjs.PKG_NAME, _chunkA4EPET3Zcjs.PKG_VERSION, _chunkA4EPET3Zcjs.PKG_FORMAT);
|
|
89
|
+
|
|
88
90
|
|
|
89
91
|
|
|
90
92
|
|
|
@@ -163,5 +165,5 @@ _core.detectDupes.call(void 0, _chunkMSLJX4ZWcjs.PKG_NAME, _chunkMSLJX4ZWcjs.PKG
|
|
|
163
165
|
|
|
164
166
|
|
|
165
167
|
|
|
166
|
-
exports.ClientContext =
|
|
168
|
+
exports.ClientContext = _chunkCTSFL4KTcjs.ClientContext; exports.ClientSideSuspense = _chunkA4EPET3Zcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkCTSFL4KTcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkCTSFL4KTcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkCTSFL4KTcjs.RegisterAiTool; exports.RoomContext = _chunkCTSFL4KTcjs.RoomContext; exports.RoomProvider = _chunkCTSFL4KTcjs._RoomProvider; exports.createLiveblocksContext = _chunkCTSFL4KTcjs.createLiveblocksContext; exports.createRoomContext = _chunkCTSFL4KTcjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkCTSFL4KTcjs._useAddReaction; exports.useAiChat = _chunkCTSFL4KTcjs._useAiChat; exports.useAiChatMessages = _chunkCTSFL4KTcjs._useAiChatMessages; exports.useAiChats = _chunkCTSFL4KTcjs._useAiChats; exports.useAttachmentUrl = _chunkCTSFL4KTcjs.useAttachmentUrl; exports.useBatch = _chunkCTSFL4KTcjs.useBatch; exports.useBroadcastEvent = _chunkCTSFL4KTcjs._useBroadcastEvent; exports.useCanRedo = _chunkCTSFL4KTcjs.useCanRedo; exports.useCanUndo = _chunkCTSFL4KTcjs.useCanUndo; exports.useClient = _chunkCTSFL4KTcjs.useClient; exports.useCreateAiChat = _chunkCTSFL4KTcjs.useCreateAiChat; exports.useCreateComment = _chunkCTSFL4KTcjs.useCreateComment; exports.useCreateThread = _chunkCTSFL4KTcjs._useCreateThread; exports.useDeleteAiChat = _chunkCTSFL4KTcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkCTSFL4KTcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkCTSFL4KTcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkCTSFL4KTcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkCTSFL4KTcjs._useDeleteThread; exports.useEditComment = _chunkCTSFL4KTcjs.useEditComment; exports.useEditThreadMetadata = _chunkCTSFL4KTcjs._useEditThreadMetadata; exports.useErrorListener = _chunkCTSFL4KTcjs.useErrorListener; exports.useEventListener = _chunkCTSFL4KTcjs._useEventListener; exports.useHistory = _chunkCTSFL4KTcjs.useHistory; exports.useHistoryVersionData = _chunkCTSFL4KTcjs.useHistoryVersionData; exports.useHistoryVersions = _chunkCTSFL4KTcjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkCTSFL4KTcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkCTSFL4KTcjs.useInboxNotifications; exports.useIsInsideRoom = _chunkCTSFL4KTcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkCTSFL4KTcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkCTSFL4KTcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkCTSFL4KTcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkCTSFL4KTcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkCTSFL4KTcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkCTSFL4KTcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkCTSFL4KTcjs._useMutation; exports.useMyPresence = _chunkCTSFL4KTcjs._useMyPresence; exports.useNotificationSettings = _chunkCTSFL4KTcjs.useNotificationSettings; exports.useOther = _chunkCTSFL4KTcjs._useOther; exports.useOthers = _chunkCTSFL4KTcjs._useOthers; exports.useOthersConnectionIds = _chunkCTSFL4KTcjs.useOthersConnectionIds; exports.useOthersListener = _chunkCTSFL4KTcjs._useOthersListener; exports.useOthersMapped = _chunkCTSFL4KTcjs._useOthersMapped; exports.useRedo = _chunkCTSFL4KTcjs.useRedo; exports.useRemoveReaction = _chunkCTSFL4KTcjs.useRemoveReaction; exports.useRoom = _chunkCTSFL4KTcjs._useRoom; exports.useRoomInfo = _chunkCTSFL4KTcjs.useRoomInfo; exports.useRoomNotificationSettings = _chunkCTSFL4KTcjs._useRoomNotificationSettings; exports.useRoomSubscriptionSettings = _chunkCTSFL4KTcjs._useRoomSubscriptionSettings; exports.useSelf = _chunkCTSFL4KTcjs._useSelf; exports.useSendAiMessage = _chunkCTSFL4KTcjs.useSendAiMessage; exports.useStatus = _chunkCTSFL4KTcjs.useStatus; exports.useStorage = _chunkCTSFL4KTcjs._useStorage; exports.useStorageRoot = _chunkCTSFL4KTcjs._useStorageRoot; exports.useStorageStatus = _chunkCTSFL4KTcjs.useStorageStatus; exports.useSubscribeToThread = _chunkCTSFL4KTcjs.useSubscribeToThread; exports.useSyncStatus = _chunkCTSFL4KTcjs.useSyncStatus; exports.useThreadSubscription = _chunkCTSFL4KTcjs.useThreadSubscription; exports.useThreads = _chunkCTSFL4KTcjs._useThreads; exports.useUndo = _chunkCTSFL4KTcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkCTSFL4KTcjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunkCTSFL4KTcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkCTSFL4KTcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkCTSFL4KTcjs.useUpdateNotificationSettings; exports.useUpdateRoomNotificationSettings = _chunkCTSFL4KTcjs.useUpdateRoomNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkCTSFL4KTcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunkCTSFL4KTcjs._useUser; exports.useUserThreads_experimental = _chunkCTSFL4KTcjs._useUserThreads_experimental;
|
|
167
169
|
//# 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;AACF,wDAA6B;AAC7B;AACA;
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","../src/index.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;ACnFA,wCAA4B;AAc5B,4CAAsD;AAXtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADoF7C;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;AACF,w/JAAC","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, RegisterAiTool } from \"./ai\";\nexport type { RegisterAiKnowledgeProps, RegisterAiToolProps } from \"./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 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 useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n} from \"./liveblocks\";\n"]}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext,
|
|
1
|
+
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledge, y as RegisterAiKnowledgeProps, x as RegisterAiTool, z as RegisterAiToolProps, A as RoomContext, N as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, D as createLiveblocksContext, K as createRoomContext, O as useAddReaction, aJ as useAiChat, aL as useAiChatMessages, aK as useAiChats, av as useAttachmentUrl, P as useBatch, Q as useBroadcastEvent, S as useCanRedo, T as useCanUndo, B as useClient, aC as useCreateAiChat, V as useCreateComment, W as useCreateThread, aD as useDeleteAiChat, E as useDeleteAllInboxNotifications, X as useDeleteComment, F as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, $ as useEditThreadMetadata, G as useErrorListener, a4 as useEventListener, a5 as useHistory, am as useHistoryVersionData, aw as useHistoryVersions, _ as useInboxNotificationThread, az as useInboxNotifications, a6 as useIsInsideRoom, a7 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a8 as useMarkThreadAsRead, a0 as useMarkThreadAsResolved, a1 as useMarkThreadAsUnresolved, a9 as useMutation, aa as useMyPresence, aA as useNotificationSettings, an as useOther, ao as useOthers, ap as useOthersConnectionIds, ab as useOthersListener, aq as useOthersMapped, ac as useRedo, ad as useRemoveReaction, ae as useRoom, aG as useRoomInfo, ax as useRoomNotificationSettings, ay as useRoomSubscriptionSettings, ar as useSelf, aE as useSendAiMessage, af as useStatus, as as useStorage, ag as useStorageRoot, at as useStorageStatus, a2 as useSubscribeToThread, J as useSyncStatus, ah as useThreadSubscription, au as useThreads, ai as useUndo, aH as useUnreadInboxNotificationsCount, a3 as useUnsubscribeFromThread, aj as useUpdateMyPresence, aB as useUpdateNotificationSettings, ak as useUpdateRoomNotificationSettings, al as useUpdateRoomSubscriptionSettings, aI as useUser, aF as useUserThreads_experimental } from './room-BdfI6Vy7.cjs';
|
|
2
2
|
export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import * as react from 'react';
|
|
5
4
|
import { ReactNode } from 'react';
|
|
6
|
-
import
|
|
5
|
+
import '@liveblocks/core';
|
|
7
6
|
|
|
8
7
|
type Props = {
|
|
9
8
|
fallback: ReactNode;
|
|
@@ -28,31 +27,4 @@ type Props = {
|
|
|
28
27
|
*/
|
|
29
28
|
declare function ClientSideSuspense(props: Props): react_jsx_runtime.JSX.Element;
|
|
30
29
|
|
|
31
|
-
|
|
32
|
-
* Make knowledge about your application state available to any AI used in
|
|
33
|
-
* a chat or a one-off request.
|
|
34
|
-
*
|
|
35
|
-
* For example:
|
|
36
|
-
*
|
|
37
|
-
* <RegisterAiKnowledge
|
|
38
|
-
* description="The current mode of my application"
|
|
39
|
-
* value="dark" />
|
|
40
|
-
*
|
|
41
|
-
* <RegisterAiKnowledge
|
|
42
|
-
* description="The current list of todos"
|
|
43
|
-
* value={todos} />
|
|
44
|
-
*
|
|
45
|
-
* By mounting this component, the AI will get access to this knwoledge.
|
|
46
|
-
* By unmounting this component, the AI will no longer have access to it.
|
|
47
|
-
* It can choose to use or ignore this knowledge in its responses.
|
|
48
|
-
*/
|
|
49
|
-
declare const RegisterAiKnowledge: react.NamedExoticComponent<AiKnowledgeSource & {
|
|
50
|
-
/**
|
|
51
|
-
* An optional unique key for this knowledge source. If multiple components
|
|
52
|
-
* register knowledge under the same key, the last one to mount takes
|
|
53
|
-
* precedence.
|
|
54
|
-
*/
|
|
55
|
-
id?: string;
|
|
56
|
-
}>;
|
|
57
|
-
|
|
58
|
-
export { ClientSideSuspense, RegisterAiKnowledge };
|
|
30
|
+
export { ClientSideSuspense };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext,
|
|
1
|
+
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledge, y as RegisterAiKnowledgeProps, x as RegisterAiTool, z as RegisterAiToolProps, A as RoomContext, N as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, D as createLiveblocksContext, K as createRoomContext, O as useAddReaction, aJ as useAiChat, aL as useAiChatMessages, aK as useAiChats, av as useAttachmentUrl, P as useBatch, Q as useBroadcastEvent, S as useCanRedo, T as useCanUndo, B as useClient, aC as useCreateAiChat, V as useCreateComment, W as useCreateThread, aD as useDeleteAiChat, E as useDeleteAllInboxNotifications, X as useDeleteComment, F as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, $ as useEditThreadMetadata, G as useErrorListener, a4 as useEventListener, a5 as useHistory, am as useHistoryVersionData, aw as useHistoryVersions, _ as useInboxNotificationThread, az as useInboxNotifications, a6 as useIsInsideRoom, a7 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a8 as useMarkThreadAsRead, a0 as useMarkThreadAsResolved, a1 as useMarkThreadAsUnresolved, a9 as useMutation, aa as useMyPresence, aA as useNotificationSettings, an as useOther, ao as useOthers, ap as useOthersConnectionIds, ab as useOthersListener, aq as useOthersMapped, ac as useRedo, ad as useRemoveReaction, ae as useRoom, aG as useRoomInfo, ax as useRoomNotificationSettings, ay as useRoomSubscriptionSettings, ar as useSelf, aE as useSendAiMessage, af as useStatus, as as useStorage, ag as useStorageRoot, at as useStorageStatus, a2 as useSubscribeToThread, J as useSyncStatus, ah as useThreadSubscription, au as useThreads, ai as useUndo, aH as useUnreadInboxNotificationsCount, a3 as useUnsubscribeFromThread, aj as useUpdateMyPresence, aB as useUpdateNotificationSettings, ak as useUpdateRoomNotificationSettings, al as useUpdateRoomSubscriptionSettings, aI as useUser, aF as useUserThreads_experimental } from './room-BdfI6Vy7.js';
|
|
2
2
|
export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import * as react from 'react';
|
|
5
4
|
import { ReactNode } from 'react';
|
|
6
|
-
import
|
|
5
|
+
import '@liveblocks/core';
|
|
7
6
|
|
|
8
7
|
type Props = {
|
|
9
8
|
fallback: ReactNode;
|
|
@@ -28,31 +27,4 @@ type Props = {
|
|
|
28
27
|
*/
|
|
29
28
|
declare function ClientSideSuspense(props: Props): react_jsx_runtime.JSX.Element;
|
|
30
29
|
|
|
31
|
-
|
|
32
|
-
* Make knowledge about your application state available to any AI used in
|
|
33
|
-
* a chat or a one-off request.
|
|
34
|
-
*
|
|
35
|
-
* For example:
|
|
36
|
-
*
|
|
37
|
-
* <RegisterAiKnowledge
|
|
38
|
-
* description="The current mode of my application"
|
|
39
|
-
* value="dark" />
|
|
40
|
-
*
|
|
41
|
-
* <RegisterAiKnowledge
|
|
42
|
-
* description="The current list of todos"
|
|
43
|
-
* value={todos} />
|
|
44
|
-
*
|
|
45
|
-
* By mounting this component, the AI will get access to this knwoledge.
|
|
46
|
-
* By unmounting this component, the AI will no longer have access to it.
|
|
47
|
-
* It can choose to use or ignore this knowledge in its responses.
|
|
48
|
-
*/
|
|
49
|
-
declare const RegisterAiKnowledge: react.NamedExoticComponent<AiKnowledgeSource & {
|
|
50
|
-
/**
|
|
51
|
-
* An optional unique key for this knowledge source. If multiple components
|
|
52
|
-
* register knowledge under the same key, the last one to mount takes
|
|
53
|
-
* precedence.
|
|
54
|
-
*/
|
|
55
|
-
id?: string;
|
|
56
|
-
}>;
|
|
57
|
-
|
|
58
|
-
export { ClientSideSuspense, RegisterAiKnowledge };
|
|
30
|
+
export { ClientSideSuspense };
|
package/dist/index.js
CHANGED
|
@@ -3,11 +3,12 @@ import {
|
|
|
3
3
|
PKG_FORMAT,
|
|
4
4
|
PKG_NAME,
|
|
5
5
|
PKG_VERSION
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OWSOT5S6.js";
|
|
7
7
|
import {
|
|
8
8
|
ClientContext,
|
|
9
9
|
LiveblocksProvider,
|
|
10
10
|
RegisterAiKnowledge,
|
|
11
|
+
RegisterAiTool,
|
|
11
12
|
RoomContext,
|
|
12
13
|
_RoomProvider,
|
|
13
14
|
_useAddReaction,
|
|
@@ -79,7 +80,7 @@ import {
|
|
|
79
80
|
useUpdateNotificationSettings,
|
|
80
81
|
useUpdateRoomNotificationSettings,
|
|
81
82
|
useUpdateRoomSubscriptionSettings
|
|
82
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-X7TWWGKZ.js";
|
|
83
84
|
|
|
84
85
|
// src/index.ts
|
|
85
86
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -90,6 +91,7 @@ export {
|
|
|
90
91
|
ClientSideSuspense,
|
|
91
92
|
LiveblocksProvider,
|
|
92
93
|
RegisterAiKnowledge,
|
|
94
|
+
RegisterAiTool,
|
|
93
95
|
RoomContext,
|
|
94
96
|
_RoomProvider as RoomProvider,
|
|
95
97
|
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 { RegisterAiKnowledge } from \"./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 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 useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\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, RegisterAiTool } from \"./ai\";\nexport type { RegisterAiKnowledgeProps, RegisterAiToolProps } from \"./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 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 useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,SAAS,oCAAoC;AAXtD,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, StorageStatus as StorageStatus$1, ThreadData as ThreadData$1, CommentData as CommentData$1 } from '@liveblocks/client';
|
|
4
4
|
import * as _liveblocks_core from '@liveblocks/core';
|
|
5
|
-
import { OpaqueClient, OpaqueRoom, BaseMetadata, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, Relax, ToImmutable, PartialNotificationSettings, AsyncLoading, AsyncError, ThreadData, HistoryVersion, AiChat, UiChatMessage, Client as Client$1, LiveblocksError, SyncStatus,
|
|
5
|
+
import { OpaqueClient, OpaqueRoom, AiKnowledgeSource, AiOpaqueToolDefinition, BaseMetadata, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, Relax, ToImmutable, PartialNotificationSettings, AsyncLoading, AsyncError, ThreadData, HistoryVersion, AiChat, UiChatMessage, Client as Client$1, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, MessageId, SubscriptionData, SubscriptionKey, CommentUserReaction, InboxNotificationDeleteInfo, SubscriptionDeleteInfo, RoomSubscriptionSettings as RoomSubscriptionSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DM, TextEditorType, IYjsProvider, DP, DS, DE } from '@liveblocks/core';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -28,6 +28,71 @@ declare function useClient<U extends BaseUserMeta>(): Client<U>;
|
|
|
28
28
|
*/
|
|
29
29
|
declare const RoomContext: react.Context<OpaqueRoom | null>;
|
|
30
30
|
|
|
31
|
+
type RegisterAiKnowledgeProps = AiKnowledgeSource & {
|
|
32
|
+
/**
|
|
33
|
+
* An optional unique key for this knowledge source. If multiple components
|
|
34
|
+
* register knowledge under the same key, the last one to mount takes
|
|
35
|
+
* precedence.
|
|
36
|
+
*/
|
|
37
|
+
id?: string;
|
|
38
|
+
};
|
|
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<RegisterAiKnowledgeProps>;
|
|
58
|
+
type RegisterAiToolProps = {
|
|
59
|
+
name: string;
|
|
60
|
+
tool: AiOpaqueToolDefinition;
|
|
61
|
+
/**
|
|
62
|
+
* When provided, the tool will only be available for this chatId. If not
|
|
63
|
+
* provided, this tool will globally be made available to any AiChat
|
|
64
|
+
* instance.
|
|
65
|
+
*/
|
|
66
|
+
chatId?: string;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Make a tool available to your AI chat or a one-off request.
|
|
70
|
+
* A tool is a piece of functionality that the AI can call to perform an action
|
|
71
|
+
* or look up information on the user's behalf.
|
|
72
|
+
*
|
|
73
|
+
* Also, tools are used to render custom UIs for tool invocations, which are
|
|
74
|
+
* embedded inside the AI chat.
|
|
75
|
+
*
|
|
76
|
+
* For example:
|
|
77
|
+
*
|
|
78
|
+
* <RegisterAiTool
|
|
79
|
+
* name="list-todos"
|
|
80
|
+
* tool={defineAiTool()({ ... })}
|
|
81
|
+
* />
|
|
82
|
+
*
|
|
83
|
+
* Or scoped to a specific chat:
|
|
84
|
+
*
|
|
85
|
+
* <RegisterAiTool
|
|
86
|
+
* name="list-todos"
|
|
87
|
+
* tool={defineAiTool()({ ... })}
|
|
88
|
+
* chatId="chat-1234"
|
|
89
|
+
* />
|
|
90
|
+
*
|
|
91
|
+
* By mounting this component, the tool is made available.
|
|
92
|
+
* By unmounting this component, the tool will no longer be available.
|
|
93
|
+
*/
|
|
94
|
+
declare const RegisterAiTool: react.NamedExoticComponent<RegisterAiToolProps>;
|
|
95
|
+
|
|
31
96
|
type UseSyncStatusOptions = {
|
|
32
97
|
/**
|
|
33
98
|
* When setting smooth, the hook will not update immediately as status
|
|
@@ -263,14 +328,8 @@ type SharedContextBundle<U extends BaseUserMeta> = {
|
|
|
263
328
|
* By unmounting this component, the AI will no longer have access to it.
|
|
264
329
|
* It can choose to use or ignore this knowledge in its responses.
|
|
265
330
|
*/
|
|
266
|
-
RegisterAiKnowledge: ComponentType<
|
|
267
|
-
|
|
268
|
-
* An optional unique key for this knowledge source. If multiple components
|
|
269
|
-
* register knowledge under the same key, the last one to mount takes
|
|
270
|
-
* precedence.
|
|
271
|
-
*/
|
|
272
|
-
id?: string;
|
|
273
|
-
}>;
|
|
331
|
+
RegisterAiKnowledge: ComponentType<RegisterAiKnowledgeProps>;
|
|
332
|
+
RegisterAiTool: ComponentType<RegisterAiToolProps>;
|
|
274
333
|
};
|
|
275
334
|
suspense: {
|
|
276
335
|
/**
|
|
@@ -338,14 +397,8 @@ type SharedContextBundle<U extends BaseUserMeta> = {
|
|
|
338
397
|
* By unmounting this component, the AI will no longer have access to it.
|
|
339
398
|
* It can choose to use or ignore this knowledge in its responses.
|
|
340
399
|
*/
|
|
341
|
-
RegisterAiKnowledge: ComponentType<
|
|
342
|
-
|
|
343
|
-
* An optional unique key for this knowledge source. If multiple components
|
|
344
|
-
* register knowledge under the same key, the last one to mount takes
|
|
345
|
-
* precedence.
|
|
346
|
-
*/
|
|
347
|
-
id?: string;
|
|
348
|
-
}>;
|
|
400
|
+
RegisterAiKnowledge: ComponentType<RegisterAiKnowledgeProps>;
|
|
401
|
+
RegisterAiTool: ComponentType<RegisterAiToolProps>;
|
|
349
402
|
};
|
|
350
403
|
};
|
|
351
404
|
/**
|
|
@@ -2675,4 +2728,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
2675
2728
|
*/
|
|
2676
2729
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
2677
2730
|
|
|
2678
|
-
export {
|
|
2731
|
+
export { _useEditThreadMetadata as $, RoomContext as A, useClient as B, ClientContext as C, createLiveblocksContext as D, useDeleteAllInboxNotifications as E, useDeleteInboxNotification as F, useErrorListener 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, useBatch as P, _useBroadcastEvent as Q, RegisterAiKnowledge as R, useCanRedo as S, useCanUndo as T, type UseStorageStatusOptions as U, useCreateComment as V, _useCreateThread as W, useDeleteComment as X, _useDeleteThread as Y, useEditComment as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, useUnreadInboxNotificationsCountSuspense as a$, useMarkThreadAsResolved as a0, useMarkThreadAsUnresolved as a1, useSubscribeToThread as a2, useUnsubscribeFromThread as a3, _useEventListener as a4, useHistory as a5, _useIsInsideRoom as a6, useLostConnectionListener as a7, useMarkThreadAsRead as a8, _useMutation as a9, useNotificationSettings as aA, useUpdateNotificationSettings as aB, useCreateAiChat as aC, useDeleteAiChat as aD, useSendAiMessage as aE, _useUserThreads_experimental as aF, useRoomInfo as aG, useUnreadInboxNotificationsCount as aH, _useUser as aI, _useAiChat as aJ, _useAiChats as aK, _useAiChatMessages as aL, _useOtherSuspense as aM, _useOthersSuspense as aN, useOthersConnectionIdsSuspense as aO, _useOthersMappedSuspense as aP, _useSelfSuspense as aQ, _useStorageSuspense as aR, useStorageStatusSuspense as aS, _useThreadsSuspense as aT, useAttachmentUrlSuspense as aU, _useHistoryVersionsSuspense as aV, _useRoomNotificationSettingsSuspense as aW, _useRoomSubscriptionSettingsSuspense as aX, useInboxNotificationsSuspense as aY, useNotificationSettingsSuspense as aZ, useRoomInfoSuspense as a_, _useMyPresence as aa, _useOthersListener as ab, useRedo as ac, useRemoveReaction as ad, _useRoom as ae, useStatus as af, _useStorageRoot as ag, useThreadSubscription as ah, useUndo as ai, _useUpdateMyPresence as aj, useUpdateRoomNotificationSettings 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, useStorageStatus as at, _useThreads as au, useAttachmentUrl as av, _useHistoryVersions as aw, _useRoomNotificationSettings as ax, _useRoomSubscriptionSettings as ay, useInboxNotifications as az, useCreateRoomComment as b, _useUserSuspense as b0, _useUserThreadsSuspense_experimental as b1, _useAiChatsSuspense as b2, _useAiChatMessagesSuspense as b3, _useAiChatSuspense as b4, 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, RegisterAiTool as x, type RegisterAiKnowledgeProps as y, type RegisterAiToolProps 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, StorageStatus as StorageStatus$1, ThreadData as ThreadData$1, CommentData as CommentData$1 } from '@liveblocks/client';
|
|
4
4
|
import * as _liveblocks_core from '@liveblocks/core';
|
|
5
|
-
import { OpaqueClient, OpaqueRoom, BaseMetadata, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, Relax, ToImmutable, PartialNotificationSettings, AsyncLoading, AsyncError, ThreadData, HistoryVersion, AiChat, UiChatMessage, Client as Client$1, LiveblocksError, SyncStatus,
|
|
5
|
+
import { OpaqueClient, OpaqueRoom, AiKnowledgeSource, AiOpaqueToolDefinition, BaseMetadata, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, Relax, ToImmutable, PartialNotificationSettings, AsyncLoading, AsyncError, ThreadData, HistoryVersion, AiChat, UiChatMessage, Client as Client$1, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, MessageId, SubscriptionData, SubscriptionKey, CommentUserReaction, InboxNotificationDeleteInfo, SubscriptionDeleteInfo, RoomSubscriptionSettings as RoomSubscriptionSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DM, TextEditorType, IYjsProvider, DP, DS, DE } from '@liveblocks/core';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -28,6 +28,71 @@ declare function useClient<U extends BaseUserMeta>(): Client<U>;
|
|
|
28
28
|
*/
|
|
29
29
|
declare const RoomContext: react.Context<OpaqueRoom | null>;
|
|
30
30
|
|
|
31
|
+
type RegisterAiKnowledgeProps = AiKnowledgeSource & {
|
|
32
|
+
/**
|
|
33
|
+
* An optional unique key for this knowledge source. If multiple components
|
|
34
|
+
* register knowledge under the same key, the last one to mount takes
|
|
35
|
+
* precedence.
|
|
36
|
+
*/
|
|
37
|
+
id?: string;
|
|
38
|
+
};
|
|
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<RegisterAiKnowledgeProps>;
|
|
58
|
+
type RegisterAiToolProps = {
|
|
59
|
+
name: string;
|
|
60
|
+
tool: AiOpaqueToolDefinition;
|
|
61
|
+
/**
|
|
62
|
+
* When provided, the tool will only be available for this chatId. If not
|
|
63
|
+
* provided, this tool will globally be made available to any AiChat
|
|
64
|
+
* instance.
|
|
65
|
+
*/
|
|
66
|
+
chatId?: string;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Make a tool available to your AI chat or a one-off request.
|
|
70
|
+
* A tool is a piece of functionality that the AI can call to perform an action
|
|
71
|
+
* or look up information on the user's behalf.
|
|
72
|
+
*
|
|
73
|
+
* Also, tools are used to render custom UIs for tool invocations, which are
|
|
74
|
+
* embedded inside the AI chat.
|
|
75
|
+
*
|
|
76
|
+
* For example:
|
|
77
|
+
*
|
|
78
|
+
* <RegisterAiTool
|
|
79
|
+
* name="list-todos"
|
|
80
|
+
* tool={defineAiTool()({ ... })}
|
|
81
|
+
* />
|
|
82
|
+
*
|
|
83
|
+
* Or scoped to a specific chat:
|
|
84
|
+
*
|
|
85
|
+
* <RegisterAiTool
|
|
86
|
+
* name="list-todos"
|
|
87
|
+
* tool={defineAiTool()({ ... })}
|
|
88
|
+
* chatId="chat-1234"
|
|
89
|
+
* />
|
|
90
|
+
*
|
|
91
|
+
* By mounting this component, the tool is made available.
|
|
92
|
+
* By unmounting this component, the tool will no longer be available.
|
|
93
|
+
*/
|
|
94
|
+
declare const RegisterAiTool: react.NamedExoticComponent<RegisterAiToolProps>;
|
|
95
|
+
|
|
31
96
|
type UseSyncStatusOptions = {
|
|
32
97
|
/**
|
|
33
98
|
* When setting smooth, the hook will not update immediately as status
|
|
@@ -263,14 +328,8 @@ type SharedContextBundle<U extends BaseUserMeta> = {
|
|
|
263
328
|
* By unmounting this component, the AI will no longer have access to it.
|
|
264
329
|
* It can choose to use or ignore this knowledge in its responses.
|
|
265
330
|
*/
|
|
266
|
-
RegisterAiKnowledge: ComponentType<
|
|
267
|
-
|
|
268
|
-
* An optional unique key for this knowledge source. If multiple components
|
|
269
|
-
* register knowledge under the same key, the last one to mount takes
|
|
270
|
-
* precedence.
|
|
271
|
-
*/
|
|
272
|
-
id?: string;
|
|
273
|
-
}>;
|
|
331
|
+
RegisterAiKnowledge: ComponentType<RegisterAiKnowledgeProps>;
|
|
332
|
+
RegisterAiTool: ComponentType<RegisterAiToolProps>;
|
|
274
333
|
};
|
|
275
334
|
suspense: {
|
|
276
335
|
/**
|
|
@@ -338,14 +397,8 @@ type SharedContextBundle<U extends BaseUserMeta> = {
|
|
|
338
397
|
* By unmounting this component, the AI will no longer have access to it.
|
|
339
398
|
* It can choose to use or ignore this knowledge in its responses.
|
|
340
399
|
*/
|
|
341
|
-
RegisterAiKnowledge: ComponentType<
|
|
342
|
-
|
|
343
|
-
* An optional unique key for this knowledge source. If multiple components
|
|
344
|
-
* register knowledge under the same key, the last one to mount takes
|
|
345
|
-
* precedence.
|
|
346
|
-
*/
|
|
347
|
-
id?: string;
|
|
348
|
-
}>;
|
|
400
|
+
RegisterAiKnowledge: ComponentType<RegisterAiKnowledgeProps>;
|
|
401
|
+
RegisterAiTool: ComponentType<RegisterAiToolProps>;
|
|
349
402
|
};
|
|
350
403
|
};
|
|
351
404
|
/**
|
|
@@ -2675,4 +2728,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
2675
2728
|
*/
|
|
2676
2729
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
2677
2730
|
|
|
2678
|
-
export {
|
|
2731
|
+
export { _useEditThreadMetadata as $, RoomContext as A, useClient as B, ClientContext as C, createLiveblocksContext as D, useDeleteAllInboxNotifications as E, useDeleteInboxNotification as F, useErrorListener 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, useBatch as P, _useBroadcastEvent as Q, RegisterAiKnowledge as R, useCanRedo as S, useCanUndo as T, type UseStorageStatusOptions as U, useCreateComment as V, _useCreateThread as W, useDeleteComment as X, _useDeleteThread as Y, useEditComment as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, useUnreadInboxNotificationsCountSuspense as a$, useMarkThreadAsResolved as a0, useMarkThreadAsUnresolved as a1, useSubscribeToThread as a2, useUnsubscribeFromThread as a3, _useEventListener as a4, useHistory as a5, _useIsInsideRoom as a6, useLostConnectionListener as a7, useMarkThreadAsRead as a8, _useMutation as a9, useNotificationSettings as aA, useUpdateNotificationSettings as aB, useCreateAiChat as aC, useDeleteAiChat as aD, useSendAiMessage as aE, _useUserThreads_experimental as aF, useRoomInfo as aG, useUnreadInboxNotificationsCount as aH, _useUser as aI, _useAiChat as aJ, _useAiChats as aK, _useAiChatMessages as aL, _useOtherSuspense as aM, _useOthersSuspense as aN, useOthersConnectionIdsSuspense as aO, _useOthersMappedSuspense as aP, _useSelfSuspense as aQ, _useStorageSuspense as aR, useStorageStatusSuspense as aS, _useThreadsSuspense as aT, useAttachmentUrlSuspense as aU, _useHistoryVersionsSuspense as aV, _useRoomNotificationSettingsSuspense as aW, _useRoomSubscriptionSettingsSuspense as aX, useInboxNotificationsSuspense as aY, useNotificationSettingsSuspense as aZ, useRoomInfoSuspense as a_, _useMyPresence as aa, _useOthersListener as ab, useRedo as ac, useRemoveReaction as ad, _useRoom as ae, useStatus as af, _useStorageRoot as ag, useThreadSubscription as ah, useUndo as ai, _useUpdateMyPresence as aj, useUpdateRoomNotificationSettings 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, useStorageStatus as at, _useThreads as au, useAttachmentUrl as av, _useHistoryVersions as aw, _useRoomNotificationSettings as ax, _useRoomSubscriptionSettings as ay, useInboxNotifications as az, useCreateRoomComment as b, _useUserSuspense as b0, _useUserThreadsSuspense_experimental as b1, _useAiChatsSuspense as b2, _useAiChatMessagesSuspense as b3, _useAiChatSuspense as b4, 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, RegisterAiTool as x, type RegisterAiKnowledgeProps as y, type RegisterAiToolProps as z };
|
package/dist/suspense.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkA4EPET3Zcjs = require('./chunk-A4EPET3Z.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -76,12 +76,14 @@ var _chunkMSLJX4ZWcjs = require('./chunk-MSLJX4ZW.cjs');
|
|
|
76
76
|
|
|
77
77
|
|
|
78
78
|
|
|
79
|
-
|
|
79
|
+
|
|
80
|
+
var _chunkCTSFL4KTcjs = require('./chunk-CTSFL4KT.cjs');
|
|
80
81
|
|
|
81
82
|
// src/suspense.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, _chunkA4EPET3Zcjs.PKG_NAME, _chunkA4EPET3Zcjs.PKG_VERSION, _chunkA4EPET3Zcjs.PKG_FORMAT);
|
|
86
|
+
|
|
85
87
|
|
|
86
88
|
|
|
87
89
|
|
|
@@ -157,5 +159,5 @@ _core.detectDupes.call(void 0, _chunkMSLJX4ZWcjs.PKG_NAME, _chunkMSLJX4ZWcjs.PKG
|
|
|
157
159
|
|
|
158
160
|
|
|
159
161
|
|
|
160
|
-
exports.ClientContext =
|
|
162
|
+
exports.ClientContext = _chunkCTSFL4KTcjs.ClientContext; exports.ClientSideSuspense = _chunkA4EPET3Zcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkCTSFL4KTcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkCTSFL4KTcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkCTSFL4KTcjs.RegisterAiTool; exports.RoomContext = _chunkCTSFL4KTcjs.RoomContext; exports.RoomProvider = _chunkCTSFL4KTcjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkCTSFL4KTcjs._useAddReaction; exports.useAiChat = _chunkCTSFL4KTcjs._useAiChatSuspense; exports.useAiChatMessages = _chunkCTSFL4KTcjs._useAiChatMessagesSuspense; exports.useAiChats = _chunkCTSFL4KTcjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunkCTSFL4KTcjs.useAttachmentUrlSuspense; exports.useBatch = _chunkCTSFL4KTcjs.useBatch; exports.useBroadcastEvent = _chunkCTSFL4KTcjs._useBroadcastEvent; exports.useCanRedo = _chunkCTSFL4KTcjs.useCanRedo; exports.useCanUndo = _chunkCTSFL4KTcjs.useCanUndo; exports.useClient = _chunkCTSFL4KTcjs.useClient; exports.useCreateAiChat = _chunkCTSFL4KTcjs.useCreateAiChat; exports.useCreateComment = _chunkCTSFL4KTcjs.useCreateComment; exports.useCreateThread = _chunkCTSFL4KTcjs._useCreateThread; exports.useDeleteAiChat = _chunkCTSFL4KTcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkCTSFL4KTcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkCTSFL4KTcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkCTSFL4KTcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkCTSFL4KTcjs._useDeleteThread; exports.useEditComment = _chunkCTSFL4KTcjs.useEditComment; exports.useEditThreadMetadata = _chunkCTSFL4KTcjs._useEditThreadMetadata; exports.useErrorListener = _chunkCTSFL4KTcjs.useErrorListener; exports.useEventListener = _chunkCTSFL4KTcjs._useEventListener; exports.useHistory = _chunkCTSFL4KTcjs.useHistory; exports.useHistoryVersions = _chunkCTSFL4KTcjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkCTSFL4KTcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkCTSFL4KTcjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkCTSFL4KTcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkCTSFL4KTcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkCTSFL4KTcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkCTSFL4KTcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkCTSFL4KTcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkCTSFL4KTcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkCTSFL4KTcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkCTSFL4KTcjs._useMutation; exports.useMyPresence = _chunkCTSFL4KTcjs._useMyPresence; exports.useNotificationSettings = _chunkCTSFL4KTcjs.useNotificationSettingsSuspense; exports.useOther = _chunkCTSFL4KTcjs._useOtherSuspense; exports.useOthers = _chunkCTSFL4KTcjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkCTSFL4KTcjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkCTSFL4KTcjs._useOthersListener; exports.useOthersMapped = _chunkCTSFL4KTcjs._useOthersMappedSuspense; exports.useRedo = _chunkCTSFL4KTcjs.useRedo; exports.useRemoveReaction = _chunkCTSFL4KTcjs.useRemoveReaction; exports.useRoom = _chunkCTSFL4KTcjs._useRoom; exports.useRoomInfo = _chunkCTSFL4KTcjs.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunkCTSFL4KTcjs._useRoomNotificationSettingsSuspense; exports.useRoomSubscriptionSettings = _chunkCTSFL4KTcjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunkCTSFL4KTcjs._useSelfSuspense; exports.useSendAiMessage = _chunkCTSFL4KTcjs.useSendAiMessage; exports.useStatus = _chunkCTSFL4KTcjs.useStatus; exports.useStorage = _chunkCTSFL4KTcjs._useStorageSuspense; exports.useStorageRoot = _chunkCTSFL4KTcjs._useStorageRoot; exports.useStorageStatus = _chunkCTSFL4KTcjs.useStorageStatusSuspense; exports.useSubscribeToThread = _chunkCTSFL4KTcjs.useSubscribeToThread; exports.useSyncStatus = _chunkCTSFL4KTcjs.useSyncStatus; exports.useThreadSubscription = _chunkCTSFL4KTcjs.useThreadSubscription; exports.useThreads = _chunkCTSFL4KTcjs._useThreadsSuspense; exports.useUndo = _chunkCTSFL4KTcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkCTSFL4KTcjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunkCTSFL4KTcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkCTSFL4KTcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkCTSFL4KTcjs.useUpdateNotificationSettings; exports.useUpdateRoomNotificationSettings = _chunkCTSFL4KTcjs.useUpdateRoomNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkCTSFL4KTcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunkCTSFL4KTcjs._useUserSuspense; exports.useUserThreads_experimental = _chunkCTSFL4KTcjs._useUserThreadsSuspense_experimental;
|
|
161
163
|
//# sourceMappingURL=suspense.cjs.map
|
package/dist/suspense.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.cjs","../src/suspense.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.cjs","../src/suspense.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,y8JAAC","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 { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type { RegisterAiKnowledgeProps, RegisterAiToolProps } from \"./ai\";\nexport {\n LiveblocksProvider,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useSyncStatus,\n useErrorListener,\n} from \"./liveblocks\";\nexport {\n RoomProvider,\n useAddReaction,\n 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
|
|
2
|
-
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext,
|
|
1
|
+
export { ClientSideSuspense } from './index.cjs';
|
|
2
|
+
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledge, y as RegisterAiKnowledgeProps, x as RegisterAiTool, z as RegisterAiToolProps, A as RoomContext, N as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, O as useAddReaction, b4 as useAiChat, b3 as useAiChatMessages, b2 as useAiChats, aU as useAttachmentUrl, P as useBatch, Q as useBroadcastEvent, S as useCanRedo, T as useCanUndo, B as useClient, aC as useCreateAiChat, V as useCreateComment, W as useCreateThread, aD as useDeleteAiChat, E as useDeleteAllInboxNotifications, X as useDeleteComment, F as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, $ as useEditThreadMetadata, G as useErrorListener, a4 as useEventListener, a5 as useHistory, aV as useHistoryVersions, _ as useInboxNotificationThread, aY as useInboxNotifications, a6 as useIsInsideRoom, a7 as useLostConnectionListener, H as useMarkAllInboxNotificationsAsRead, I as useMarkInboxNotificationAsRead, a8 as useMarkThreadAsRead, a0 as useMarkThreadAsResolved, a1 as useMarkThreadAsUnresolved, a9 as useMutation, aa as useMyPresence, aZ as useNotificationSettings, aM as useOther, aN as useOthers, aO as useOthersConnectionIds, ab as useOthersListener, aP as useOthersMapped, ac as useRedo, ad as useRemoveReaction, ae as useRoom, a_ as useRoomInfo, aW as useRoomNotificationSettings, aX as useRoomSubscriptionSettings, aQ as useSelf, aE as useSendAiMessage, af as useStatus, aR as useStorage, ag as useStorageRoot, aS as useStorageStatus, a2 as useSubscribeToThread, J as useSyncStatus, ah as useThreadSubscription, aT as useThreads, ai as useUndo, a$ as useUnreadInboxNotificationsCount, a3 as useUnsubscribeFromThread, aj as useUpdateMyPresence, aB as useUpdateNotificationSettings, ak as useUpdateRoomNotificationSettings, al as useUpdateRoomSubscriptionSettings, b0 as useUser, b1 as useUserThreads_experimental } from './room-BdfI6Vy7.cjs';
|
|
3
3
|
export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react';
|