@liveblocks/react 2.25.0-aiprivatebeta11 → 2.25.0-aiprivatebeta13
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-CTSFL4KT.cjs → chunk-7DJASH5H.cjs} +1 -1
- package/dist/chunk-7DJASH5H.cjs.map +1 -0
- package/dist/{chunk-OWSOT5S6.js → chunk-IKZ3R3Q2.js} +2 -2
- package/dist/{chunk-A4EPET3Z.cjs → chunk-KD3B7XF6.cjs} +2 -2
- package/dist/{chunk-A4EPET3Z.cjs.map → chunk-KD3B7XF6.cjs.map} +1 -1
- package/dist/{chunk-X7TWWGKZ.js → chunk-KLANVQIZ.js} +1 -1
- package/dist/chunk-KLANVQIZ.js.map +1 -0
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +51 -2
- package/dist/index.d.ts +51 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{room-BdfI6Vy7.d.cts → room-qnTepKOd.d.cts} +3 -48
- package/dist/{room-BdfI6Vy7.d.ts → room-qnTepKOd.d.ts} +3 -48
- package/dist/suspense.cjs +4 -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 +2 -2
- package/dist/suspense.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-CTSFL4KT.cjs.map +0 -1
- package/dist/chunk-X7TWWGKZ.js.map +0 -1
- /package/dist/{chunk-OWSOT5S6.js.map → chunk-IKZ3R3Q2.js.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkKD3B7XF6cjs = require('./chunk-KD3B7XF6.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -80,12 +80,12 @@ var _chunkA4EPET3Zcjs = require('./chunk-A4EPET3Z.cjs');
|
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
|
|
83
|
-
var
|
|
83
|
+
var _chunk7DJASH5Hcjs = require('./chunk-7DJASH5H.cjs');
|
|
84
84
|
|
|
85
85
|
// src/index.ts
|
|
86
86
|
var _core = require('@liveblocks/core');
|
|
87
87
|
var _client = require('@liveblocks/client');
|
|
88
|
-
_core.detectDupes.call(void 0,
|
|
88
|
+
_core.detectDupes.call(void 0, _chunkKD3B7XF6cjs.PKG_NAME, _chunkKD3B7XF6cjs.PKG_VERSION, _chunkKD3B7XF6cjs.PKG_FORMAT);
|
|
89
89
|
|
|
90
90
|
|
|
91
91
|
|
|
@@ -165,5 +165,5 @@ _core.detectDupes.call(void 0, _chunkA4EPET3Zcjs.PKG_NAME, _chunkA4EPET3Zcjs.PKG
|
|
|
165
165
|
|
|
166
166
|
|
|
167
167
|
|
|
168
|
-
exports.ClientContext =
|
|
168
|
+
exports.ClientContext = _chunk7DJASH5Hcjs.ClientContext; exports.ClientSideSuspense = _chunkKD3B7XF6cjs.ClientSideSuspense; exports.LiveblocksProvider = _chunk7DJASH5Hcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunk7DJASH5Hcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunk7DJASH5Hcjs.RegisterAiTool; exports.RoomContext = _chunk7DJASH5Hcjs.RoomContext; exports.RoomProvider = _chunk7DJASH5Hcjs._RoomProvider; exports.createLiveblocksContext = _chunk7DJASH5Hcjs.createLiveblocksContext; exports.createRoomContext = _chunk7DJASH5Hcjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunk7DJASH5Hcjs._useAddReaction; exports.useAiChat = _chunk7DJASH5Hcjs._useAiChat; exports.useAiChatMessages = _chunk7DJASH5Hcjs._useAiChatMessages; exports.useAiChats = _chunk7DJASH5Hcjs._useAiChats; exports.useAttachmentUrl = _chunk7DJASH5Hcjs.useAttachmentUrl; exports.useBatch = _chunk7DJASH5Hcjs.useBatch; exports.useBroadcastEvent = _chunk7DJASH5Hcjs._useBroadcastEvent; exports.useCanRedo = _chunk7DJASH5Hcjs.useCanRedo; exports.useCanUndo = _chunk7DJASH5Hcjs.useCanUndo; exports.useClient = _chunk7DJASH5Hcjs.useClient; exports.useCreateAiChat = _chunk7DJASH5Hcjs.useCreateAiChat; exports.useCreateComment = _chunk7DJASH5Hcjs.useCreateComment; exports.useCreateThread = _chunk7DJASH5Hcjs._useCreateThread; exports.useDeleteAiChat = _chunk7DJASH5Hcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunk7DJASH5Hcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunk7DJASH5Hcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunk7DJASH5Hcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunk7DJASH5Hcjs._useDeleteThread; exports.useEditComment = _chunk7DJASH5Hcjs.useEditComment; exports.useEditThreadMetadata = _chunk7DJASH5Hcjs._useEditThreadMetadata; exports.useErrorListener = _chunk7DJASH5Hcjs.useErrorListener; exports.useEventListener = _chunk7DJASH5Hcjs._useEventListener; exports.useHistory = _chunk7DJASH5Hcjs.useHistory; exports.useHistoryVersionData = _chunk7DJASH5Hcjs.useHistoryVersionData; exports.useHistoryVersions = _chunk7DJASH5Hcjs._useHistoryVersions; exports.useInboxNotificationThread = _chunk7DJASH5Hcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunk7DJASH5Hcjs.useInboxNotifications; exports.useIsInsideRoom = _chunk7DJASH5Hcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunk7DJASH5Hcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunk7DJASH5Hcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunk7DJASH5Hcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunk7DJASH5Hcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunk7DJASH5Hcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunk7DJASH5Hcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunk7DJASH5Hcjs._useMutation; exports.useMyPresence = _chunk7DJASH5Hcjs._useMyPresence; exports.useNotificationSettings = _chunk7DJASH5Hcjs.useNotificationSettings; exports.useOther = _chunk7DJASH5Hcjs._useOther; exports.useOthers = _chunk7DJASH5Hcjs._useOthers; exports.useOthersConnectionIds = _chunk7DJASH5Hcjs.useOthersConnectionIds; exports.useOthersListener = _chunk7DJASH5Hcjs._useOthersListener; exports.useOthersMapped = _chunk7DJASH5Hcjs._useOthersMapped; exports.useRedo = _chunk7DJASH5Hcjs.useRedo; exports.useRemoveReaction = _chunk7DJASH5Hcjs.useRemoveReaction; exports.useRoom = _chunk7DJASH5Hcjs._useRoom; exports.useRoomInfo = _chunk7DJASH5Hcjs.useRoomInfo; exports.useRoomNotificationSettings = _chunk7DJASH5Hcjs._useRoomNotificationSettings; exports.useRoomSubscriptionSettings = _chunk7DJASH5Hcjs._useRoomSubscriptionSettings; exports.useSelf = _chunk7DJASH5Hcjs._useSelf; exports.useSendAiMessage = _chunk7DJASH5Hcjs.useSendAiMessage; exports.useStatus = _chunk7DJASH5Hcjs.useStatus; exports.useStorage = _chunk7DJASH5Hcjs._useStorage; exports.useStorageRoot = _chunk7DJASH5Hcjs._useStorageRoot; exports.useStorageStatus = _chunk7DJASH5Hcjs.useStorageStatus; exports.useSubscribeToThread = _chunk7DJASH5Hcjs.useSubscribeToThread; exports.useSyncStatus = _chunk7DJASH5Hcjs.useSyncStatus; exports.useThreadSubscription = _chunk7DJASH5Hcjs.useThreadSubscription; exports.useThreads = _chunk7DJASH5Hcjs._useThreads; exports.useUndo = _chunk7DJASH5Hcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunk7DJASH5Hcjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunk7DJASH5Hcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunk7DJASH5Hcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunk7DJASH5Hcjs.useUpdateNotificationSettings; exports.useUpdateRoomNotificationSettings = _chunk7DJASH5Hcjs.useUpdateRoomNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunk7DJASH5Hcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunk7DJASH5Hcjs._useUser; exports.useUserThreads_experimental = _chunk7DJASH5Hcjs._useUserThreads_experimental;
|
|
169
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;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"]}
|
|
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 \"./types/ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n 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,6 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-qnTepKOd.cjs';
|
|
2
|
+
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, J as RoomProvider, U as UseStorageStatusOptions, x as UseThreadsOptions, A as createLiveblocksContext, I as createRoomContext, K as useAddReaction, aH as useAiChat, aJ as useAiChatMessages, aI as useAiChats, at as useAttachmentUrl, N as useBatch, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, aA as useCreateAiChat, S as useCreateComment, T as useCreateThread, aB as useDeleteAiChat, B as useDeleteAllInboxNotifications, V as useDeleteComment, D as useDeleteInboxNotification, W as useDeleteThread, X as useEditComment, Y as useEditThreadMetadata, E as useErrorListener, a2 as useEventListener, a3 as useHistory, ak as useHistoryVersionData, au as useHistoryVersions, _ as useInboxNotificationThread, ax as useInboxNotifications, a4 as useIsInsideRoom, a5 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, G as useMarkInboxNotificationAsRead, a6 as useMarkThreadAsRead, Z as useMarkThreadAsResolved, $ as useMarkThreadAsUnresolved, a7 as useMutation, a8 as useMyPresence, ay as useNotificationSettings, al as useOther, am as useOthers, an as useOthersConnectionIds, a9 as useOthersListener, ao as useOthersMapped, aa as useRedo, ab as useRemoveReaction, ac as useRoom, aE as useRoomInfo, av as useRoomNotificationSettings, aw as useRoomSubscriptionSettings, ap as useSelf, aC as useSendAiMessage, ad as useStatus, aq as useStorage, ae as useStorageRoot, ar as useStorageStatus, a0 as useSubscribeToThread, H as useSyncStatus, af as useThreadSubscription, as as useThreads, ag as useUndo, aF as useUnreadInboxNotificationsCount, a1 as useUnsubscribeFromThread, ah as useUpdateMyPresence, az as useUpdateNotificationSettings, ai as useUpdateRoomNotificationSettings, aj as useUpdateRoomSubscriptionSettings, aG as useUser, aD as useUserThreads_experimental } from './room-qnTepKOd.cjs';
|
|
2
3
|
export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
|
|
3
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
+
import * as react from 'react';
|
|
4
6
|
import { ReactNode } from 'react';
|
|
5
7
|
import '@liveblocks/core';
|
|
6
8
|
|
|
@@ -27,4 +29,51 @@ type Props = {
|
|
|
27
29
|
*/
|
|
28
30
|
declare function ClientSideSuspense(props: Props): react_jsx_runtime.JSX.Element;
|
|
29
31
|
|
|
30
|
-
|
|
32
|
+
/**
|
|
33
|
+
* Make knowledge about your application state available to any AI used in
|
|
34
|
+
* a chat or a one-off request.
|
|
35
|
+
*
|
|
36
|
+
* For example:
|
|
37
|
+
*
|
|
38
|
+
* <RegisterAiKnowledge
|
|
39
|
+
* description="The current mode of my application"
|
|
40
|
+
* value="dark" />
|
|
41
|
+
*
|
|
42
|
+
* <RegisterAiKnowledge
|
|
43
|
+
* description="The current list of todos"
|
|
44
|
+
* value={todos} />
|
|
45
|
+
*
|
|
46
|
+
* By mounting this component, the AI will get access to this knwoledge.
|
|
47
|
+
* By unmounting this component, the AI will no longer have access to it.
|
|
48
|
+
* It can choose to use or ignore this knowledge in its responses.
|
|
49
|
+
*/
|
|
50
|
+
declare const RegisterAiKnowledge: react.NamedExoticComponent<RegisterAiKnowledgeProps>;
|
|
51
|
+
/**
|
|
52
|
+
* Make a tool available to your AI chat or a one-off request.
|
|
53
|
+
* A tool is a piece of functionality that the AI can call to perform an action
|
|
54
|
+
* or look up information on the user's behalf.
|
|
55
|
+
*
|
|
56
|
+
* Also, tools are used to render custom UIs for tool invocations, which are
|
|
57
|
+
* embedded inside the AI chat.
|
|
58
|
+
*
|
|
59
|
+
* For example:
|
|
60
|
+
*
|
|
61
|
+
* <RegisterAiTool
|
|
62
|
+
* name="list-todos"
|
|
63
|
+
* tool={defineAiTool()({ ... })}
|
|
64
|
+
* />
|
|
65
|
+
*
|
|
66
|
+
* Or scoped to a specific chat:
|
|
67
|
+
*
|
|
68
|
+
* <RegisterAiTool
|
|
69
|
+
* name="list-todos"
|
|
70
|
+
* tool={defineAiTool()({ ... })}
|
|
71
|
+
* chatId="chat-1234"
|
|
72
|
+
* />
|
|
73
|
+
*
|
|
74
|
+
* By mounting this component, the tool is made available.
|
|
75
|
+
* By unmounting this component, the tool will no longer be available.
|
|
76
|
+
*/
|
|
77
|
+
declare const RegisterAiTool: react.NamedExoticComponent<RegisterAiToolProps>;
|
|
78
|
+
|
|
79
|
+
export { ClientSideSuspense, RegisterAiKnowledge, RegisterAiKnowledgeProps, RegisterAiTool, RegisterAiToolProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-qnTepKOd.js';
|
|
2
|
+
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, J as RoomProvider, U as UseStorageStatusOptions, x as UseThreadsOptions, A as createLiveblocksContext, I as createRoomContext, K as useAddReaction, aH as useAiChat, aJ as useAiChatMessages, aI as useAiChats, at as useAttachmentUrl, N as useBatch, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, aA as useCreateAiChat, S as useCreateComment, T as useCreateThread, aB as useDeleteAiChat, B as useDeleteAllInboxNotifications, V as useDeleteComment, D as useDeleteInboxNotification, W as useDeleteThread, X as useEditComment, Y as useEditThreadMetadata, E as useErrorListener, a2 as useEventListener, a3 as useHistory, ak as useHistoryVersionData, au as useHistoryVersions, _ as useInboxNotificationThread, ax as useInboxNotifications, a4 as useIsInsideRoom, a5 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, G as useMarkInboxNotificationAsRead, a6 as useMarkThreadAsRead, Z as useMarkThreadAsResolved, $ as useMarkThreadAsUnresolved, a7 as useMutation, a8 as useMyPresence, ay as useNotificationSettings, al as useOther, am as useOthers, an as useOthersConnectionIds, a9 as useOthersListener, ao as useOthersMapped, aa as useRedo, ab as useRemoveReaction, ac as useRoom, aE as useRoomInfo, av as useRoomNotificationSettings, aw as useRoomSubscriptionSettings, ap as useSelf, aC as useSendAiMessage, ad as useStatus, aq as useStorage, ae as useStorageRoot, ar as useStorageStatus, a0 as useSubscribeToThread, H as useSyncStatus, af as useThreadSubscription, as as useThreads, ag as useUndo, aF as useUnreadInboxNotificationsCount, a1 as useUnsubscribeFromThread, ah as useUpdateMyPresence, az as useUpdateNotificationSettings, ai as useUpdateRoomNotificationSettings, aj as useUpdateRoomSubscriptionSettings, aG as useUser, aD as useUserThreads_experimental } from './room-qnTepKOd.js';
|
|
2
3
|
export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
|
|
3
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
+
import * as react from 'react';
|
|
4
6
|
import { ReactNode } from 'react';
|
|
5
7
|
import '@liveblocks/core';
|
|
6
8
|
|
|
@@ -27,4 +29,51 @@ type Props = {
|
|
|
27
29
|
*/
|
|
28
30
|
declare function ClientSideSuspense(props: Props): react_jsx_runtime.JSX.Element;
|
|
29
31
|
|
|
30
|
-
|
|
32
|
+
/**
|
|
33
|
+
* Make knowledge about your application state available to any AI used in
|
|
34
|
+
* a chat or a one-off request.
|
|
35
|
+
*
|
|
36
|
+
* For example:
|
|
37
|
+
*
|
|
38
|
+
* <RegisterAiKnowledge
|
|
39
|
+
* description="The current mode of my application"
|
|
40
|
+
* value="dark" />
|
|
41
|
+
*
|
|
42
|
+
* <RegisterAiKnowledge
|
|
43
|
+
* description="The current list of todos"
|
|
44
|
+
* value={todos} />
|
|
45
|
+
*
|
|
46
|
+
* By mounting this component, the AI will get access to this knwoledge.
|
|
47
|
+
* By unmounting this component, the AI will no longer have access to it.
|
|
48
|
+
* It can choose to use or ignore this knowledge in its responses.
|
|
49
|
+
*/
|
|
50
|
+
declare const RegisterAiKnowledge: react.NamedExoticComponent<RegisterAiKnowledgeProps>;
|
|
51
|
+
/**
|
|
52
|
+
* Make a tool available to your AI chat or a one-off request.
|
|
53
|
+
* A tool is a piece of functionality that the AI can call to perform an action
|
|
54
|
+
* or look up information on the user's behalf.
|
|
55
|
+
*
|
|
56
|
+
* Also, tools are used to render custom UIs for tool invocations, which are
|
|
57
|
+
* embedded inside the AI chat.
|
|
58
|
+
*
|
|
59
|
+
* For example:
|
|
60
|
+
*
|
|
61
|
+
* <RegisterAiTool
|
|
62
|
+
* name="list-todos"
|
|
63
|
+
* tool={defineAiTool()({ ... })}
|
|
64
|
+
* />
|
|
65
|
+
*
|
|
66
|
+
* Or scoped to a specific chat:
|
|
67
|
+
*
|
|
68
|
+
* <RegisterAiTool
|
|
69
|
+
* name="list-todos"
|
|
70
|
+
* tool={defineAiTool()({ ... })}
|
|
71
|
+
* chatId="chat-1234"
|
|
72
|
+
* />
|
|
73
|
+
*
|
|
74
|
+
* By mounting this component, the tool is made available.
|
|
75
|
+
* By unmounting this component, the tool will no longer be available.
|
|
76
|
+
*/
|
|
77
|
+
declare const RegisterAiTool: react.NamedExoticComponent<RegisterAiToolProps>;
|
|
78
|
+
|
|
79
|
+
export { ClientSideSuspense, RegisterAiKnowledge, RegisterAiKnowledgeProps, RegisterAiTool, RegisterAiToolProps };
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
PKG_FORMAT,
|
|
4
4
|
PKG_NAME,
|
|
5
5
|
PKG_VERSION
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IKZ3R3Q2.js";
|
|
7
7
|
import {
|
|
8
8
|
ClientContext,
|
|
9
9
|
LiveblocksProvider,
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
useUpdateNotificationSettings,
|
|
81
81
|
useUpdateRoomNotificationSettings,
|
|
82
82
|
useUpdateRoomSubscriptionSettings
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-KLANVQIZ.js";
|
|
84
84
|
|
|
85
85
|
// src/index.ts
|
|
86
86
|
import { detectDupes } from "@liveblocks/core";
|
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, 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":[]}
|
|
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 \"./types/ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n 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, AiKnowledgeSource, AiOpaqueToolDefinition, BaseMetadata, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, Relax, ToImmutable, PartialNotificationSettings, AsyncLoading, AsyncError, ThreadData, HistoryVersion, AiChat,
|
|
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, Client as Client$1, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, WithNavigation, AiChatMessage, 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
|
/**
|
|
@@ -36,25 +36,6 @@ type RegisterAiKnowledgeProps = AiKnowledgeSource & {
|
|
|
36
36
|
*/
|
|
37
37
|
id?: string;
|
|
38
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
39
|
type RegisterAiToolProps = {
|
|
59
40
|
name: string;
|
|
60
41
|
tool: AiOpaqueToolDefinition;
|
|
@@ -65,34 +46,8 @@ type RegisterAiToolProps = {
|
|
|
65
46
|
*/
|
|
66
47
|
chatId?: string;
|
|
67
48
|
};
|
|
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
49
|
|
|
50
|
+
type UiChatMessage = WithNavigation<AiChatMessage>;
|
|
96
51
|
type UseSyncStatusOptions = {
|
|
97
52
|
/**
|
|
98
53
|
* When setting smooth, the hook will not update immediately as status
|
|
@@ -2728,4 +2683,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
2728
2683
|
*/
|
|
2729
2684
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
2730
2685
|
|
|
2731
|
-
export {
|
|
2686
|
+
export { useMarkThreadAsUnresolved as $, createLiveblocksContext as A, useDeleteAllInboxNotifications as B, ClientContext as C, useDeleteInboxNotification as D, useErrorListener as E, useMarkAllInboxNotificationsAsRead as F, useMarkInboxNotificationAsRead as G, useSyncStatus as H, createRoomContext as I, _RoomProvider as J, _useAddReaction as K, LiveblocksProvider as L, type MutationContext as M, useBatch as N, _useBroadcastEvent as O, useCanRedo as P, useCanUndo as Q, type RegisterAiKnowledgeProps as R, useCreateComment as S, _useCreateThread as T, type UseStorageStatusOptions as U, useDeleteComment as V, _useDeleteThread as W, useEditComment as X, _useEditThreadMetadata as Y, useMarkThreadAsResolved as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, _useUserThreadsSuspense_experimental as a$, useSubscribeToThread as a0, useUnsubscribeFromThread as a1, _useEventListener as a2, useHistory as a3, _useIsInsideRoom as a4, useLostConnectionListener as a5, useMarkThreadAsRead as a6, _useMutation as a7, _useMyPresence as a8, _useOthersListener as a9, useCreateAiChat as aA, useDeleteAiChat as aB, useSendAiMessage as aC, _useUserThreads_experimental as aD, useRoomInfo as aE, useUnreadInboxNotificationsCount as aF, _useUser as aG, _useAiChat as aH, _useAiChats as aI, _useAiChatMessages as aJ, _useOtherSuspense as aK, _useOthersSuspense as aL, useOthersConnectionIdsSuspense as aM, _useOthersMappedSuspense as aN, _useSelfSuspense as aO, _useStorageSuspense as aP, useStorageStatusSuspense as aQ, _useThreadsSuspense as aR, useAttachmentUrlSuspense as aS, _useHistoryVersionsSuspense as aT, _useRoomNotificationSettingsSuspense as aU, _useRoomSubscriptionSettingsSuspense as aV, useInboxNotificationsSuspense as aW, useNotificationSettingsSuspense as aX, useRoomInfoSuspense as aY, useUnreadInboxNotificationsCountSuspense as aZ, _useUserSuspense as a_, useRedo as aa, useRemoveReaction as ab, _useRoom as ac, useStatus as ad, _useStorageRoot as ae, useThreadSubscription as af, useUndo as ag, _useUpdateMyPresence as ah, useUpdateRoomNotificationSettings as ai, useUpdateRoomSubscriptionSettings as aj, useHistoryVersionData as ak, _useOther as al, _useOthers as am, useOthersConnectionIds as an, _useOthersMapped as ao, _useSelf as ap, _useStorage as aq, useStorageStatus as ar, _useThreads as as, useAttachmentUrl as at, _useHistoryVersions as au, _useRoomNotificationSettings as av, _useRoomSubscriptionSettings as aw, useInboxNotifications as ax, useNotificationSettings as ay, useUpdateNotificationSettings as az, useCreateRoomComment as b, _useAiChatsSuspense as b0, _useAiChatMessagesSuspense as b1, _useAiChatSuspense as b2, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useMarkRoomThreadAsRead as k, useMarkRoomThreadAsResolved as l, useMarkRoomThreadAsUnresolved as m, useMentionSuggestionsCache as n, useRemoveRoomCommentReaction as o, useReportTextEditor as p, useResolveMentionSuggestions as q, useRoomAttachmentUrl as r, useRoomPermissions as s, useRoomThreadSubscription as t, useClientOrNull as u, useYjsProvider as v, type RegisterAiToolProps as w, type UseThreadsOptions as x, RoomContext as y, useClient as z };
|
|
@@ -2,7 +2,7 @@ import * as react from 'react';
|
|
|
2
2
|
import { ComponentType, Context, PropsWithChildren, ReactNode } from 'react';
|
|
3
3
|
import { BaseUserMeta, Client, JsonObject, LsonObject, LiveObject, User, Json, RoomSubscriptionSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, ClientOptions, 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, AiKnowledgeSource, AiOpaqueToolDefinition, BaseMetadata, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, Relax, ToImmutable, PartialNotificationSettings, AsyncLoading, AsyncError, ThreadData, HistoryVersion, AiChat,
|
|
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, Client as Client$1, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, WithNavigation, AiChatMessage, 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
|
/**
|
|
@@ -36,25 +36,6 @@ type RegisterAiKnowledgeProps = AiKnowledgeSource & {
|
|
|
36
36
|
*/
|
|
37
37
|
id?: string;
|
|
38
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
39
|
type RegisterAiToolProps = {
|
|
59
40
|
name: string;
|
|
60
41
|
tool: AiOpaqueToolDefinition;
|
|
@@ -65,34 +46,8 @@ type RegisterAiToolProps = {
|
|
|
65
46
|
*/
|
|
66
47
|
chatId?: string;
|
|
67
48
|
};
|
|
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
49
|
|
|
50
|
+
type UiChatMessage = WithNavigation<AiChatMessage>;
|
|
96
51
|
type UseSyncStatusOptions = {
|
|
97
52
|
/**
|
|
98
53
|
* When setting smooth, the hook will not update immediately as status
|
|
@@ -2728,4 +2683,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
2728
2683
|
*/
|
|
2729
2684
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
2730
2685
|
|
|
2731
|
-
export {
|
|
2686
|
+
export { useMarkThreadAsUnresolved as $, createLiveblocksContext as A, useDeleteAllInboxNotifications as B, ClientContext as C, useDeleteInboxNotification as D, useErrorListener as E, useMarkAllInboxNotificationsAsRead as F, useMarkInboxNotificationAsRead as G, useSyncStatus as H, createRoomContext as I, _RoomProvider as J, _useAddReaction as K, LiveblocksProvider as L, type MutationContext as M, useBatch as N, _useBroadcastEvent as O, useCanRedo as P, useCanUndo as Q, type RegisterAiKnowledgeProps as R, useCreateComment as S, _useCreateThread as T, type UseStorageStatusOptions as U, useDeleteComment as V, _useDeleteThread as W, useEditComment as X, _useEditThreadMetadata as Y, useMarkThreadAsResolved as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, _useUserThreadsSuspense_experimental as a$, useSubscribeToThread as a0, useUnsubscribeFromThread as a1, _useEventListener as a2, useHistory as a3, _useIsInsideRoom as a4, useLostConnectionListener as a5, useMarkThreadAsRead as a6, _useMutation as a7, _useMyPresence as a8, _useOthersListener as a9, useCreateAiChat as aA, useDeleteAiChat as aB, useSendAiMessage as aC, _useUserThreads_experimental as aD, useRoomInfo as aE, useUnreadInboxNotificationsCount as aF, _useUser as aG, _useAiChat as aH, _useAiChats as aI, _useAiChatMessages as aJ, _useOtherSuspense as aK, _useOthersSuspense as aL, useOthersConnectionIdsSuspense as aM, _useOthersMappedSuspense as aN, _useSelfSuspense as aO, _useStorageSuspense as aP, useStorageStatusSuspense as aQ, _useThreadsSuspense as aR, useAttachmentUrlSuspense as aS, _useHistoryVersionsSuspense as aT, _useRoomNotificationSettingsSuspense as aU, _useRoomSubscriptionSettingsSuspense as aV, useInboxNotificationsSuspense as aW, useNotificationSettingsSuspense as aX, useRoomInfoSuspense as aY, useUnreadInboxNotificationsCountSuspense as aZ, _useUserSuspense as a_, useRedo as aa, useRemoveReaction as ab, _useRoom as ac, useStatus as ad, _useStorageRoot as ae, useThreadSubscription as af, useUndo as ag, _useUpdateMyPresence as ah, useUpdateRoomNotificationSettings as ai, useUpdateRoomSubscriptionSettings as aj, useHistoryVersionData as ak, _useOther as al, _useOthers as am, useOthersConnectionIds as an, _useOthersMapped as ao, _useSelf as ap, _useStorage as aq, useStorageStatus as ar, _useThreads as as, useAttachmentUrl as at, _useHistoryVersions as au, _useRoomNotificationSettings as av, _useRoomSubscriptionSettings as aw, useInboxNotifications as ax, useNotificationSettings as ay, useUpdateNotificationSettings as az, useCreateRoomComment as b, _useAiChatsSuspense as b0, _useAiChatMessagesSuspense as b1, _useAiChatSuspense as b2, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useMarkRoomThreadAsRead as k, useMarkRoomThreadAsResolved as l, useMarkRoomThreadAsUnresolved as m, useMentionSuggestionsCache as n, useRemoveRoomCommentReaction as o, useReportTextEditor as p, useResolveMentionSuggestions as q, useRoomAttachmentUrl as r, useRoomPermissions as s, useRoomThreadSubscription as t, useClientOrNull as u, useYjsProvider as v, type RegisterAiToolProps as w, type UseThreadsOptions as x, RoomContext as y, useClient as z };
|
package/dist/suspense.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkKD3B7XF6cjs = require('./chunk-KD3B7XF6.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -77,12 +77,12 @@ var _chunkA4EPET3Zcjs = require('./chunk-A4EPET3Z.cjs');
|
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
|
|
80
|
-
var
|
|
80
|
+
var _chunk7DJASH5Hcjs = require('./chunk-7DJASH5H.cjs');
|
|
81
81
|
|
|
82
82
|
// src/suspense.ts
|
|
83
83
|
var _core = require('@liveblocks/core');
|
|
84
84
|
var _client = require('@liveblocks/client');
|
|
85
|
-
_core.detectDupes.call(void 0,
|
|
85
|
+
_core.detectDupes.call(void 0, _chunkKD3B7XF6cjs.PKG_NAME, _chunkKD3B7XF6cjs.PKG_VERSION, _chunkKD3B7XF6cjs.PKG_FORMAT);
|
|
86
86
|
|
|
87
87
|
|
|
88
88
|
|
|
@@ -159,5 +159,5 @@ _core.detectDupes.call(void 0, _chunkA4EPET3Zcjs.PKG_NAME, _chunkA4EPET3Zcjs.PKG
|
|
|
159
159
|
|
|
160
160
|
|
|
161
161
|
|
|
162
|
-
exports.ClientContext =
|
|
162
|
+
exports.ClientContext = _chunk7DJASH5Hcjs.ClientContext; exports.ClientSideSuspense = _chunkKD3B7XF6cjs.ClientSideSuspense; exports.LiveblocksProvider = _chunk7DJASH5Hcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunk7DJASH5Hcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunk7DJASH5Hcjs.RegisterAiTool; exports.RoomContext = _chunk7DJASH5Hcjs.RoomContext; exports.RoomProvider = _chunk7DJASH5Hcjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunk7DJASH5Hcjs._useAddReaction; exports.useAiChat = _chunk7DJASH5Hcjs._useAiChatSuspense; exports.useAiChatMessages = _chunk7DJASH5Hcjs._useAiChatMessagesSuspense; exports.useAiChats = _chunk7DJASH5Hcjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunk7DJASH5Hcjs.useAttachmentUrlSuspense; exports.useBatch = _chunk7DJASH5Hcjs.useBatch; exports.useBroadcastEvent = _chunk7DJASH5Hcjs._useBroadcastEvent; exports.useCanRedo = _chunk7DJASH5Hcjs.useCanRedo; exports.useCanUndo = _chunk7DJASH5Hcjs.useCanUndo; exports.useClient = _chunk7DJASH5Hcjs.useClient; exports.useCreateAiChat = _chunk7DJASH5Hcjs.useCreateAiChat; exports.useCreateComment = _chunk7DJASH5Hcjs.useCreateComment; exports.useCreateThread = _chunk7DJASH5Hcjs._useCreateThread; exports.useDeleteAiChat = _chunk7DJASH5Hcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunk7DJASH5Hcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunk7DJASH5Hcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunk7DJASH5Hcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunk7DJASH5Hcjs._useDeleteThread; exports.useEditComment = _chunk7DJASH5Hcjs.useEditComment; exports.useEditThreadMetadata = _chunk7DJASH5Hcjs._useEditThreadMetadata; exports.useErrorListener = _chunk7DJASH5Hcjs.useErrorListener; exports.useEventListener = _chunk7DJASH5Hcjs._useEventListener; exports.useHistory = _chunk7DJASH5Hcjs.useHistory; exports.useHistoryVersions = _chunk7DJASH5Hcjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunk7DJASH5Hcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunk7DJASH5Hcjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunk7DJASH5Hcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunk7DJASH5Hcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunk7DJASH5Hcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunk7DJASH5Hcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunk7DJASH5Hcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunk7DJASH5Hcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunk7DJASH5Hcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunk7DJASH5Hcjs._useMutation; exports.useMyPresence = _chunk7DJASH5Hcjs._useMyPresence; exports.useNotificationSettings = _chunk7DJASH5Hcjs.useNotificationSettingsSuspense; exports.useOther = _chunk7DJASH5Hcjs._useOtherSuspense; exports.useOthers = _chunk7DJASH5Hcjs._useOthersSuspense; exports.useOthersConnectionIds = _chunk7DJASH5Hcjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunk7DJASH5Hcjs._useOthersListener; exports.useOthersMapped = _chunk7DJASH5Hcjs._useOthersMappedSuspense; exports.useRedo = _chunk7DJASH5Hcjs.useRedo; exports.useRemoveReaction = _chunk7DJASH5Hcjs.useRemoveReaction; exports.useRoom = _chunk7DJASH5Hcjs._useRoom; exports.useRoomInfo = _chunk7DJASH5Hcjs.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunk7DJASH5Hcjs._useRoomNotificationSettingsSuspense; exports.useRoomSubscriptionSettings = _chunk7DJASH5Hcjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunk7DJASH5Hcjs._useSelfSuspense; exports.useSendAiMessage = _chunk7DJASH5Hcjs.useSendAiMessage; exports.useStatus = _chunk7DJASH5Hcjs.useStatus; exports.useStorage = _chunk7DJASH5Hcjs._useStorageSuspense; exports.useStorageRoot = _chunk7DJASH5Hcjs._useStorageRoot; exports.useStorageStatus = _chunk7DJASH5Hcjs.useStorageStatusSuspense; exports.useSubscribeToThread = _chunk7DJASH5Hcjs.useSubscribeToThread; exports.useSyncStatus = _chunk7DJASH5Hcjs.useSyncStatus; exports.useThreadSubscription = _chunk7DJASH5Hcjs.useThreadSubscription; exports.useThreads = _chunk7DJASH5Hcjs._useThreadsSuspense; exports.useUndo = _chunk7DJASH5Hcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunk7DJASH5Hcjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunk7DJASH5Hcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunk7DJASH5Hcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunk7DJASH5Hcjs.useUpdateNotificationSettings; exports.useUpdateRoomNotificationSettings = _chunk7DJASH5Hcjs.useUpdateRoomNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunk7DJASH5Hcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunk7DJASH5Hcjs._useUserSuspense; exports.useUserThreads_experimental = _chunk7DJASH5Hcjs._useUserThreadsSuspense_experimental;
|
|
163
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;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"]}
|
|
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 \"./types/ai\";\nexport {\n LiveblocksProvider,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useSyncStatus,\n useErrorListener,\n} from \"./liveblocks\";\nexport {\n RoomProvider,\n useAddReaction,\n 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 } from './index.cjs';
|
|
2
|
-
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as
|
|
1
|
+
export { ClientSideSuspense, RegisterAiKnowledge, RegisterAiTool } from './index.cjs';
|
|
2
|
+
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, J as RoomProvider, U as UseStorageStatusOptions, x as UseThreadsOptions, K as useAddReaction, b2 as useAiChat, b1 as useAiChatMessages, b0 as useAiChats, aS as useAttachmentUrl, N as useBatch, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, aA as useCreateAiChat, S as useCreateComment, T as useCreateThread, aB as useDeleteAiChat, B as useDeleteAllInboxNotifications, V as useDeleteComment, D as useDeleteInboxNotification, W as useDeleteThread, X as useEditComment, Y as useEditThreadMetadata, E as useErrorListener, a2 as useEventListener, a3 as useHistory, aT as useHistoryVersions, _ as useInboxNotificationThread, aW as useInboxNotifications, a4 as useIsInsideRoom, a5 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, G as useMarkInboxNotificationAsRead, a6 as useMarkThreadAsRead, Z as useMarkThreadAsResolved, $ as useMarkThreadAsUnresolved, a7 as useMutation, a8 as useMyPresence, aX as useNotificationSettings, aK as useOther, aL as useOthers, aM as useOthersConnectionIds, a9 as useOthersListener, aN as useOthersMapped, aa as useRedo, ab as useRemoveReaction, ac as useRoom, aY as useRoomInfo, aU as useRoomNotificationSettings, aV as useRoomSubscriptionSettings, aO as useSelf, aC as useSendAiMessage, ad as useStatus, aP as useStorage, ae as useStorageRoot, aQ as useStorageStatus, a0 as useSubscribeToThread, H as useSyncStatus, af as useThreadSubscription, aR as useThreads, ag as useUndo, aZ as useUnreadInboxNotificationsCount, a1 as useUnsubscribeFromThread, ah as useUpdateMyPresence, az as useUpdateNotificationSettings, ai as useUpdateRoomNotificationSettings, aj as useUpdateRoomSubscriptionSettings, a_ as useUser, a$ as useUserThreads_experimental } from './room-qnTepKOd.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 } from './index.js';
|
|
2
|
-
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as
|
|
1
|
+
export { ClientSideSuspense, RegisterAiKnowledge, RegisterAiTool } from './index.js';
|
|
2
|
+
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, J as RoomProvider, U as UseStorageStatusOptions, x as UseThreadsOptions, K as useAddReaction, b2 as useAiChat, b1 as useAiChatMessages, b0 as useAiChats, aS as useAttachmentUrl, N as useBatch, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, aA as useCreateAiChat, S as useCreateComment, T as useCreateThread, aB as useDeleteAiChat, B as useDeleteAllInboxNotifications, V as useDeleteComment, D as useDeleteInboxNotification, W as useDeleteThread, X as useEditComment, Y as useEditThreadMetadata, E as useErrorListener, a2 as useEventListener, a3 as useHistory, aT as useHistoryVersions, _ as useInboxNotificationThread, aW as useInboxNotifications, a4 as useIsInsideRoom, a5 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, G as useMarkInboxNotificationAsRead, a6 as useMarkThreadAsRead, Z as useMarkThreadAsResolved, $ as useMarkThreadAsUnresolved, a7 as useMutation, a8 as useMyPresence, aX as useNotificationSettings, aK as useOther, aL as useOthers, aM as useOthersConnectionIds, a9 as useOthersListener, aN as useOthersMapped, aa as useRedo, ab as useRemoveReaction, ac as useRoom, aY as useRoomInfo, aU as useRoomNotificationSettings, aV as useRoomSubscriptionSettings, aO as useSelf, aC as useSendAiMessage, ad as useStatus, aP as useStorage, ae as useStorageRoot, aQ as useStorageStatus, a0 as useSubscribeToThread, H as useSyncStatus, af as useThreadSubscription, aR as useThreads, ag as useUndo, aZ as useUnreadInboxNotificationsCount, a1 as useUnsubscribeFromThread, ah as useUpdateMyPresence, az as useUpdateNotificationSettings, ai as useUpdateRoomNotificationSettings, aj as useUpdateRoomSubscriptionSettings, a_ as useUser, a$ as useUserThreads_experimental } from './room-qnTepKOd.js';
|
|
3
3
|
export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react';
|
package/dist/suspense.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
PKG_FORMAT,
|
|
4
4
|
PKG_NAME,
|
|
5
5
|
PKG_VERSION
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IKZ3R3Q2.js";
|
|
7
7
|
import {
|
|
8
8
|
ClientContext,
|
|
9
9
|
LiveblocksProvider,
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
useUpdateNotificationSettings,
|
|
78
78
|
useUpdateRoomNotificationSettings,
|
|
79
79
|
useUpdateRoomSubscriptionSettings
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-KLANVQIZ.js";
|
|
81
81
|
|
|
82
82
|
// src/suspense.ts
|
|
83
83
|
import { detectDupes } from "@liveblocks/core";
|
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 { 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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,SAAS,oCAAoC;AAXtD,YAAY,UAAU,aAAa,UAAU;","names":[]}
|
|
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 { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type { RegisterAiKnowledgeProps, RegisterAiToolProps } from \"./types/ai\";\nexport {\n LiveblocksProvider,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useSyncStatus,\n useErrorListener,\n} from \"./liveblocks\";\nexport {\n RoomProvider,\n useAddReaction,\n 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":[]}
|