@liveblocks/react 3.8.0 → 3.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_private.cjs +7 -7
- package/dist/_private.d.cts +2 -2
- package/dist/_private.d.ts +2 -2
- package/dist/_private.js +1 -1
- package/dist/{chunk-IQBSX6NS.cjs → chunk-2YWY7TUQ.cjs} +25 -28
- package/dist/chunk-2YWY7TUQ.cjs.map +1 -0
- package/dist/{chunk-6MZ5AS3V.cjs → chunk-BXCA7DCZ.cjs} +2 -2
- package/dist/{chunk-6MZ5AS3V.cjs.map → chunk-BXCA7DCZ.cjs.map} +1 -1
- package/dist/{chunk-2R44HQCN.js → chunk-QY4EJ7GZ.js} +14 -17
- package/dist/chunk-QY4EJ7GZ.js.map +1 -0
- package/dist/{chunk-C65QJNZB.js → chunk-WMCNV6XL.js} +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +2 -2
- package/dist/{room-C97RX2dB.d.cts → room-DkyB1sbB.d.cts} +6 -2
- package/dist/{room-C97RX2dB.d.ts → room-DkyB1sbB.d.ts} +6 -2
- package/dist/suspense.cjs +4 -4
- package/dist/suspense.d.cts +1 -1
- package/dist/suspense.d.ts +1 -1
- package/dist/suspense.js +2 -2
- package/package.json +3 -3
- package/dist/chunk-2R44HQCN.js.map +0 -1
- package/dist/chunk-IQBSX6NS.cjs.map +0 -1
- /package/dist/{chunk-C65QJNZB.js.map → chunk-WMCNV6XL.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/version.ts
|
|
2
2
|
var PKG_NAME = "@liveblocks/react";
|
|
3
|
-
var PKG_VERSION = "3.8.
|
|
3
|
+
var PKG_VERSION = "3.8.1";
|
|
4
4
|
var PKG_FORMAT = "esm";
|
|
5
5
|
|
|
6
6
|
// src/ClientSideSuspense.tsx
|
|
@@ -20,4 +20,4 @@ export {
|
|
|
20
20
|
PKG_FORMAT,
|
|
21
21
|
ClientSideSuspense
|
|
22
22
|
};
|
|
23
|
-
//# sourceMappingURL=chunk-
|
|
23
|
+
//# sourceMappingURL=chunk-WMCNV6XL.js.map
|
package/dist/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkBXCA7DCZcjs = require('./chunk-BXCA7DCZ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -78,12 +78,12 @@ var _chunk6MZ5AS3Vcjs = require('./chunk-6MZ5AS3V.cjs');
|
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
|
|
81
|
-
var
|
|
81
|
+
var _chunk2YWY7TUQcjs = require('./chunk-2YWY7TUQ.cjs');
|
|
82
82
|
|
|
83
83
|
// src/index.ts
|
|
84
84
|
var _core = require('@liveblocks/core');
|
|
85
85
|
var _client = require('@liveblocks/client');
|
|
86
|
-
_core.detectDupes.call(void 0,
|
|
86
|
+
_core.detectDupes.call(void 0, _chunkBXCA7DCZcjs.PKG_NAME, _chunkBXCA7DCZcjs.PKG_VERSION, _chunkBXCA7DCZcjs.PKG_FORMAT);
|
|
87
87
|
|
|
88
88
|
|
|
89
89
|
|
|
@@ -161,5 +161,5 @@ _core.detectDupes.call(void 0, _chunk6MZ5AS3Vcjs.PKG_NAME, _chunk6MZ5AS3Vcjs.PKG
|
|
|
161
161
|
|
|
162
162
|
|
|
163
163
|
|
|
164
|
-
exports.ClientContext =
|
|
164
|
+
exports.ClientContext = _chunk2YWY7TUQcjs.ClientContext; exports.ClientSideSuspense = _chunkBXCA7DCZcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunk2YWY7TUQcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunk2YWY7TUQcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunk2YWY7TUQcjs.RegisterAiTool; exports.RoomContext = _chunk2YWY7TUQcjs.RoomContext; exports.RoomProvider = _chunk2YWY7TUQcjs._RoomProvider; exports.createLiveblocksContext = _chunk2YWY7TUQcjs.createLiveblocksContext; exports.createRoomContext = _chunk2YWY7TUQcjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunk2YWY7TUQcjs._useAddReaction; exports.useAiChat = _chunk2YWY7TUQcjs._useAiChat; exports.useAiChatMessages = _chunk2YWY7TUQcjs._useAiChatMessages; exports.useAiChatStatus = _chunk2YWY7TUQcjs.useAiChatStatus; exports.useAiChats = _chunk2YWY7TUQcjs._useAiChats; exports.useAttachmentUrl = _chunk2YWY7TUQcjs.useAttachmentUrl; exports.useBroadcastEvent = _chunk2YWY7TUQcjs._useBroadcastEvent; exports.useCanRedo = _chunk2YWY7TUQcjs.useCanRedo; exports.useCanUndo = _chunk2YWY7TUQcjs.useCanUndo; exports.useClient = _chunk2YWY7TUQcjs.useClient; exports.useCreateAiChat = _chunk2YWY7TUQcjs.useCreateAiChat; exports.useCreateComment = _chunk2YWY7TUQcjs.useCreateComment; exports.useCreateThread = _chunk2YWY7TUQcjs._useCreateThread; exports.useDeleteAiChat = _chunk2YWY7TUQcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunk2YWY7TUQcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunk2YWY7TUQcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunk2YWY7TUQcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunk2YWY7TUQcjs._useDeleteThread; exports.useEditComment = _chunk2YWY7TUQcjs.useEditComment; exports.useEditThreadMetadata = _chunk2YWY7TUQcjs._useEditThreadMetadata; exports.useErrorListener = _chunk2YWY7TUQcjs.useErrorListener; exports.useEventListener = _chunk2YWY7TUQcjs._useEventListener; exports.useGroupInfo = _chunk2YWY7TUQcjs.useGroupInfo; exports.useHistory = _chunk2YWY7TUQcjs.useHistory; exports.useHistoryVersionData = _chunk2YWY7TUQcjs.useHistoryVersionData; exports.useHistoryVersions = _chunk2YWY7TUQcjs._useHistoryVersions; exports.useInboxNotificationThread = _chunk2YWY7TUQcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunk2YWY7TUQcjs.useInboxNotifications; exports.useIsInsideRoom = _chunk2YWY7TUQcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunk2YWY7TUQcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunk2YWY7TUQcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunk2YWY7TUQcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunk2YWY7TUQcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunk2YWY7TUQcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunk2YWY7TUQcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunk2YWY7TUQcjs._useMutation; exports.useMyPresence = _chunk2YWY7TUQcjs._useMyPresence; exports.useNotificationSettings = _chunk2YWY7TUQcjs.useNotificationSettings; exports.useOther = _chunk2YWY7TUQcjs._useOther; exports.useOthers = _chunk2YWY7TUQcjs._useOthers; exports.useOthersConnectionIds = _chunk2YWY7TUQcjs.useOthersConnectionIds; exports.useOthersListener = _chunk2YWY7TUQcjs._useOthersListener; exports.useOthersMapped = _chunk2YWY7TUQcjs._useOthersMapped; exports.useRedo = _chunk2YWY7TUQcjs.useRedo; exports.useRemoveReaction = _chunk2YWY7TUQcjs.useRemoveReaction; exports.useRoom = _chunk2YWY7TUQcjs._useRoom; exports.useRoomInfo = _chunk2YWY7TUQcjs.useRoomInfo; exports.useRoomSubscriptionSettings = _chunk2YWY7TUQcjs._useRoomSubscriptionSettings; exports.useSelf = _chunk2YWY7TUQcjs._useSelf; exports.useSendAiMessage = _chunk2YWY7TUQcjs.useSendAiMessage; exports.useStatus = _chunk2YWY7TUQcjs.useStatus; exports.useStorage = _chunk2YWY7TUQcjs._useStorage; exports.useStorageRoot = _chunk2YWY7TUQcjs._useStorageRoot; exports.useSubscribeToThread = _chunk2YWY7TUQcjs.useSubscribeToThread; exports.useSyncStatus = _chunk2YWY7TUQcjs.useSyncStatus; exports.useThreadSubscription = _chunk2YWY7TUQcjs.useThreadSubscription; exports.useThreads = _chunk2YWY7TUQcjs._useThreads; exports.useUndo = _chunk2YWY7TUQcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunk2YWY7TUQcjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunk2YWY7TUQcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunk2YWY7TUQcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunk2YWY7TUQcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunk2YWY7TUQcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunk2YWY7TUQcjs._useUser; exports.useUserThreads_experimental = _chunk2YWY7TUQcjs._useUserThreads_experimental;
|
|
165
165
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-
|
|
2
|
-
export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, B as createLiveblocksContext, K as createRoomContext, O as useAddReaction, aH as useAiChat, aJ as useAiChatMessages, aK as useAiChatStatus, aI as useAiChats, at as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, az as useCreateAiChat, V as useCreateComment, W as useCreateThread, aA as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, $ as useEditThreadMetadata, F as useErrorListener, a4 as useEventListener, aE as useGroupInfo, a5 as useHistory, al as useHistoryVersionData, au as useHistoryVersions, _ as useInboxNotificationThread, aw 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, ax 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, aD as useRoomInfo, av as useRoomSubscriptionSettings, aq as useSelf, aB as useSendAiMessage, af as useStatus, ar as useStorage, ag as useStorageRoot, a2 as useSubscribeToThread, J as useSyncStatus, ah as useThreadSubscription, as as useThreads, ai as useUndo, aF as useUnreadInboxNotificationsCount, a3 as useUnsubscribeFromThread, aj as useUpdateMyPresence, ay as useUpdateNotificationSettings, ak as useUpdateRoomSubscriptionSettings, aG as useUser, aC as useUserThreads_experimental } from './room-
|
|
1
|
+
import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-DkyB1sbB.cjs';
|
|
2
|
+
export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, B as createLiveblocksContext, K as createRoomContext, O as useAddReaction, aH as useAiChat, aJ as useAiChatMessages, aK as useAiChatStatus, aI as useAiChats, at as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, az as useCreateAiChat, V as useCreateComment, W as useCreateThread, aA as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, $ as useEditThreadMetadata, F as useErrorListener, a4 as useEventListener, aE as useGroupInfo, a5 as useHistory, al as useHistoryVersionData, au as useHistoryVersions, _ as useInboxNotificationThread, aw 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, ax 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, aD as useRoomInfo, av as useRoomSubscriptionSettings, aq as useSelf, aB as useSendAiMessage, af as useStatus, ar as useStorage, ag as useStorageRoot, a2 as useSubscribeToThread, J as useSyncStatus, ah as useThreadSubscription, as as useThreads, ai as useUndo, aF as useUnreadInboxNotificationsCount, a3 as useUnsubscribeFromThread, aj as useUpdateMyPresence, ay as useUpdateNotificationSettings, ak as useUpdateRoomSubscriptionSettings, aG as useUser, aC as useUserThreads_experimental } from './room-DkyB1sbB.cjs';
|
|
3
3
|
export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import * as react from 'react';
|
|
@@ -39,9 +39,12 @@ declare function ClientSideSuspense(props: Props): react_jsx_runtime.JSX.Element
|
|
|
39
39
|
* description="The current mode of my application"
|
|
40
40
|
* value="dark" />
|
|
41
41
|
*
|
|
42
|
+
* Or scoped to a specific chat:
|
|
43
|
+
*
|
|
42
44
|
* <RegisterAiKnowledge
|
|
43
45
|
* description="The current list of todos"
|
|
44
|
-
* value={todos}
|
|
46
|
+
* value={todos}
|
|
47
|
+
* chatId="chat-1234" />
|
|
45
48
|
*
|
|
46
49
|
* By mounting this component, the AI will get access to this knwoledge.
|
|
47
50
|
* By unmounting this component, the AI will no longer have access to it.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-
|
|
2
|
-
export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, B as createLiveblocksContext, K as createRoomContext, O as useAddReaction, aH as useAiChat, aJ as useAiChatMessages, aK as useAiChatStatus, aI as useAiChats, at as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, az as useCreateAiChat, V as useCreateComment, W as useCreateThread, aA as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, $ as useEditThreadMetadata, F as useErrorListener, a4 as useEventListener, aE as useGroupInfo, a5 as useHistory, al as useHistoryVersionData, au as useHistoryVersions, _ as useInboxNotificationThread, aw 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, ax 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, aD as useRoomInfo, av as useRoomSubscriptionSettings, aq as useSelf, aB as useSendAiMessage, af as useStatus, ar as useStorage, ag as useStorageRoot, a2 as useSubscribeToThread, J as useSyncStatus, ah as useThreadSubscription, as as useThreads, ai as useUndo, aF as useUnreadInboxNotificationsCount, a3 as useUnsubscribeFromThread, aj as useUpdateMyPresence, ay as useUpdateNotificationSettings, ak as useUpdateRoomSubscriptionSettings, aG as useUser, aC as useUserThreads_experimental } from './room-
|
|
1
|
+
import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-DkyB1sbB.js';
|
|
2
|
+
export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, B as createLiveblocksContext, K as createRoomContext, O as useAddReaction, aH as useAiChat, aJ as useAiChatMessages, aK as useAiChatStatus, aI as useAiChats, at as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, az as useCreateAiChat, V as useCreateComment, W as useCreateThread, aA as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, $ as useEditThreadMetadata, F as useErrorListener, a4 as useEventListener, aE as useGroupInfo, a5 as useHistory, al as useHistoryVersionData, au as useHistoryVersions, _ as useInboxNotificationThread, aw 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, ax 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, aD as useRoomInfo, av as useRoomSubscriptionSettings, aq as useSelf, aB as useSendAiMessage, af as useStatus, ar as useStorage, ag as useStorageRoot, a2 as useSubscribeToThread, J as useSyncStatus, ah as useThreadSubscription, as as useThreads, ai as useUndo, aF as useUnreadInboxNotificationsCount, a3 as useUnsubscribeFromThread, aj as useUpdateMyPresence, ay as useUpdateNotificationSettings, ak as useUpdateRoomSubscriptionSettings, aG as useUser, aC as useUserThreads_experimental } from './room-DkyB1sbB.js';
|
|
3
3
|
export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import * as react from 'react';
|
|
@@ -39,9 +39,12 @@ declare function ClientSideSuspense(props: Props): react_jsx_runtime.JSX.Element
|
|
|
39
39
|
* description="The current mode of my application"
|
|
40
40
|
* value="dark" />
|
|
41
41
|
*
|
|
42
|
+
* Or scoped to a specific chat:
|
|
43
|
+
*
|
|
42
44
|
* <RegisterAiKnowledge
|
|
43
45
|
* description="The current list of todos"
|
|
44
|
-
* value={todos}
|
|
46
|
+
* value={todos}
|
|
47
|
+
* chatId="chat-1234" />
|
|
45
48
|
*
|
|
46
49
|
* By mounting this component, the AI will get access to this knwoledge.
|
|
47
50
|
* By unmounting this component, the AI will no longer have access to it.
|
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-WMCNV6XL.js";
|
|
7
7
|
import {
|
|
8
8
|
ClientContext,
|
|
9
9
|
LiveblocksProvider,
|
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
useUnsubscribeFromThread,
|
|
79
79
|
useUpdateNotificationSettings,
|
|
80
80
|
useUpdateRoomSubscriptionSettings
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-QY4EJ7GZ.js";
|
|
82
82
|
|
|
83
83
|
// src/index.ts
|
|
84
84
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -35,14 +35,18 @@ type RegisterAiKnowledgeProps = AiKnowledgeSource & {
|
|
|
35
35
|
* precedence.
|
|
36
36
|
*/
|
|
37
37
|
id?: string;
|
|
38
|
+
/**
|
|
39
|
+
* When provided, the knowledge source will only be available for this chatId.
|
|
40
|
+
* If not provided, this knowledge source will be available globally.
|
|
41
|
+
*/
|
|
42
|
+
chatId?: string;
|
|
38
43
|
};
|
|
39
44
|
type RegisterAiToolProps = {
|
|
40
45
|
name: string;
|
|
41
46
|
tool: AiOpaqueToolDefinition;
|
|
42
47
|
/**
|
|
43
48
|
* When provided, the tool will only be available for this chatId. If not
|
|
44
|
-
* provided, this tool will
|
|
45
|
-
* instance.
|
|
49
|
+
* provided, this tool will be available globally.
|
|
46
50
|
*/
|
|
47
51
|
chatId?: string;
|
|
48
52
|
/**
|
|
@@ -35,14 +35,18 @@ type RegisterAiKnowledgeProps = AiKnowledgeSource & {
|
|
|
35
35
|
* precedence.
|
|
36
36
|
*/
|
|
37
37
|
id?: string;
|
|
38
|
+
/**
|
|
39
|
+
* When provided, the knowledge source will only be available for this chatId.
|
|
40
|
+
* If not provided, this knowledge source will be available globally.
|
|
41
|
+
*/
|
|
42
|
+
chatId?: string;
|
|
38
43
|
};
|
|
39
44
|
type RegisterAiToolProps = {
|
|
40
45
|
name: string;
|
|
41
46
|
tool: AiOpaqueToolDefinition;
|
|
42
47
|
/**
|
|
43
48
|
* When provided, the tool will only be available for this chatId. If not
|
|
44
|
-
* provided, this tool will
|
|
45
|
-
* instance.
|
|
49
|
+
* provided, this tool will be available globally.
|
|
46
50
|
*/
|
|
47
51
|
chatId?: string;
|
|
48
52
|
/**
|
package/dist/suspense.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkBXCA7DCZcjs = require('./chunk-BXCA7DCZ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -75,12 +75,12 @@ var _chunk6MZ5AS3Vcjs = require('./chunk-6MZ5AS3V.cjs');
|
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
var
|
|
78
|
+
var _chunk2YWY7TUQcjs = require('./chunk-2YWY7TUQ.cjs');
|
|
79
79
|
|
|
80
80
|
// src/suspense.ts
|
|
81
81
|
var _core = require('@liveblocks/core');
|
|
82
82
|
var _client = require('@liveblocks/client');
|
|
83
|
-
_core.detectDupes.call(void 0,
|
|
83
|
+
_core.detectDupes.call(void 0, _chunkBXCA7DCZcjs.PKG_NAME, _chunkBXCA7DCZcjs.PKG_VERSION, _chunkBXCA7DCZcjs.PKG_FORMAT);
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
|
|
@@ -155,5 +155,5 @@ _core.detectDupes.call(void 0, _chunk6MZ5AS3Vcjs.PKG_NAME, _chunk6MZ5AS3Vcjs.PKG
|
|
|
155
155
|
|
|
156
156
|
|
|
157
157
|
|
|
158
|
-
exports.ClientContext =
|
|
158
|
+
exports.ClientContext = _chunk2YWY7TUQcjs.ClientContext; exports.ClientSideSuspense = _chunkBXCA7DCZcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunk2YWY7TUQcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunk2YWY7TUQcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunk2YWY7TUQcjs.RegisterAiTool; exports.RoomContext = _chunk2YWY7TUQcjs.RoomContext; exports.RoomProvider = _chunk2YWY7TUQcjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunk2YWY7TUQcjs._useAddReaction; exports.useAiChat = _chunk2YWY7TUQcjs._useAiChatSuspense; exports.useAiChatMessages = _chunk2YWY7TUQcjs._useAiChatMessagesSuspense; exports.useAiChatStatus = _chunk2YWY7TUQcjs.useAiChatStatus; exports.useAiChats = _chunk2YWY7TUQcjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunk2YWY7TUQcjs.useAttachmentUrlSuspense; exports.useBroadcastEvent = _chunk2YWY7TUQcjs._useBroadcastEvent; exports.useCanRedo = _chunk2YWY7TUQcjs.useCanRedo; exports.useCanUndo = _chunk2YWY7TUQcjs.useCanUndo; exports.useClient = _chunk2YWY7TUQcjs.useClient; exports.useCreateAiChat = _chunk2YWY7TUQcjs.useCreateAiChat; exports.useCreateComment = _chunk2YWY7TUQcjs.useCreateComment; exports.useCreateThread = _chunk2YWY7TUQcjs._useCreateThread; exports.useDeleteAiChat = _chunk2YWY7TUQcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunk2YWY7TUQcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunk2YWY7TUQcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunk2YWY7TUQcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunk2YWY7TUQcjs._useDeleteThread; exports.useEditComment = _chunk2YWY7TUQcjs.useEditComment; exports.useEditThreadMetadata = _chunk2YWY7TUQcjs._useEditThreadMetadata; exports.useErrorListener = _chunk2YWY7TUQcjs.useErrorListener; exports.useEventListener = _chunk2YWY7TUQcjs._useEventListener; exports.useGroupInfo = _chunk2YWY7TUQcjs.useGroupInfoSuspense; exports.useHistory = _chunk2YWY7TUQcjs.useHistory; exports.useHistoryVersions = _chunk2YWY7TUQcjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunk2YWY7TUQcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunk2YWY7TUQcjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunk2YWY7TUQcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunk2YWY7TUQcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunk2YWY7TUQcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunk2YWY7TUQcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunk2YWY7TUQcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunk2YWY7TUQcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunk2YWY7TUQcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunk2YWY7TUQcjs._useMutation; exports.useMyPresence = _chunk2YWY7TUQcjs._useMyPresence; exports.useNotificationSettings = _chunk2YWY7TUQcjs.useNotificationSettingsSuspense; exports.useOther = _chunk2YWY7TUQcjs._useOtherSuspense; exports.useOthers = _chunk2YWY7TUQcjs._useOthersSuspense; exports.useOthersConnectionIds = _chunk2YWY7TUQcjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunk2YWY7TUQcjs._useOthersListener; exports.useOthersMapped = _chunk2YWY7TUQcjs._useOthersMappedSuspense; exports.useRedo = _chunk2YWY7TUQcjs.useRedo; exports.useRemoveReaction = _chunk2YWY7TUQcjs.useRemoveReaction; exports.useRoom = _chunk2YWY7TUQcjs._useRoom; exports.useRoomInfo = _chunk2YWY7TUQcjs.useRoomInfoSuspense; exports.useRoomSubscriptionSettings = _chunk2YWY7TUQcjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunk2YWY7TUQcjs._useSelfSuspense; exports.useSendAiMessage = _chunk2YWY7TUQcjs.useSendAiMessage; exports.useStatus = _chunk2YWY7TUQcjs.useStatus; exports.useStorage = _chunk2YWY7TUQcjs._useStorageSuspense; exports.useStorageRoot = _chunk2YWY7TUQcjs._useStorageRoot; exports.useSubscribeToThread = _chunk2YWY7TUQcjs.useSubscribeToThread; exports.useSyncStatus = _chunk2YWY7TUQcjs.useSyncStatus; exports.useThreadSubscription = _chunk2YWY7TUQcjs.useThreadSubscription; exports.useThreads = _chunk2YWY7TUQcjs._useThreadsSuspense; exports.useUndo = _chunk2YWY7TUQcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunk2YWY7TUQcjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunk2YWY7TUQcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunk2YWY7TUQcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunk2YWY7TUQcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunk2YWY7TUQcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunk2YWY7TUQcjs._useUserSuspense; exports.useUserThreads_experimental = _chunk2YWY7TUQcjs._useUserThreadsSuspense_experimental;
|
|
159
159
|
//# sourceMappingURL=suspense.cjs.map
|
package/dist/suspense.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ClientSideSuspense, RegisterAiKnowledge, RegisterAiTool } from './index.cjs';
|
|
2
|
-
export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, O as useAddReaction, b2 as useAiChat, b1 as useAiChatMessages, aK as useAiChatStatus, b0 as useAiChats, aS as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, az as useCreateAiChat, V as useCreateComment, W as useCreateThread, aA as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, $ as useEditThreadMetadata, F as useErrorListener, a4 as useEventListener, aY as useGroupInfo, a5 as useHistory, aT as useHistoryVersions, _ as useInboxNotificationThread, aV 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, aW as useNotificationSettings, aL as useOther, aM as useOthers, aN as useOthersConnectionIds, ab as useOthersListener, aO as useOthersMapped, ac as useRedo, ad as useRemoveReaction, ae as useRoom, aX as useRoomInfo, aU as useRoomSubscriptionSettings, aP as useSelf, aB as useSendAiMessage, af as useStatus, aQ as useStorage, ag as useStorageRoot, a2 as useSubscribeToThread, J as useSyncStatus, ah as useThreadSubscription, aR as useThreads, ai as useUndo, aZ as useUnreadInboxNotificationsCount, a3 as useUnsubscribeFromThread, aj as useUpdateMyPresence, ay as useUpdateNotificationSettings, ak as useUpdateRoomSubscriptionSettings, a_ as useUser, a$ as useUserThreads_experimental } from './room-
|
|
2
|
+
export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, O as useAddReaction, b2 as useAiChat, b1 as useAiChatMessages, aK as useAiChatStatus, b0 as useAiChats, aS as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, az as useCreateAiChat, V as useCreateComment, W as useCreateThread, aA as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, $ as useEditThreadMetadata, F as useErrorListener, a4 as useEventListener, aY as useGroupInfo, a5 as useHistory, aT as useHistoryVersions, _ as useInboxNotificationThread, aV 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, aW as useNotificationSettings, aL as useOther, aM as useOthers, aN as useOthersConnectionIds, ab as useOthersListener, aO as useOthersMapped, ac as useRedo, ad as useRemoveReaction, ae as useRoom, aX as useRoomInfo, aU as useRoomSubscriptionSettings, aP as useSelf, aB as useSendAiMessage, af as useStatus, aQ as useStorage, ag as useStorageRoot, a2 as useSubscribeToThread, J as useSyncStatus, ah as useThreadSubscription, aR as useThreads, ai as useUndo, aZ as useUnreadInboxNotificationsCount, a3 as useUnsubscribeFromThread, aj as useUpdateMyPresence, ay as useUpdateNotificationSettings, ak as useUpdateRoomSubscriptionSettings, a_ as useUser, a$ as useUserThreads_experimental } from './room-DkyB1sbB.cjs';
|
|
3
3
|
export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react';
|
package/dist/suspense.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ClientSideSuspense, RegisterAiKnowledge, RegisterAiTool } from './index.js';
|
|
2
|
-
export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, O as useAddReaction, b2 as useAiChat, b1 as useAiChatMessages, aK as useAiChatStatus, b0 as useAiChats, aS as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, az as useCreateAiChat, V as useCreateComment, W as useCreateThread, aA as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, $ as useEditThreadMetadata, F as useErrorListener, a4 as useEventListener, aY as useGroupInfo, a5 as useHistory, aT as useHistoryVersions, _ as useInboxNotificationThread, aV 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, aW as useNotificationSettings, aL as useOther, aM as useOthers, aN as useOthersConnectionIds, ab as useOthersListener, aO as useOthersMapped, ac as useRedo, ad as useRemoveReaction, ae as useRoom, aX as useRoomInfo, aU as useRoomSubscriptionSettings, aP as useSelf, aB as useSendAiMessage, af as useStatus, aQ as useStorage, ag as useStorageRoot, a2 as useSubscribeToThread, J as useSyncStatus, ah as useThreadSubscription, aR as useThreads, ai as useUndo, aZ as useUnreadInboxNotificationsCount, a3 as useUnsubscribeFromThread, aj as useUpdateMyPresence, ay as useUpdateNotificationSettings, ak as useUpdateRoomSubscriptionSettings, a_ as useUser, a$ as useUserThreads_experimental } from './room-
|
|
2
|
+
export { A as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, N as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, O as useAddReaction, b2 as useAiChat, b1 as useAiChatMessages, aK as useAiChatStatus, b0 as useAiChats, aS as useAttachmentUrl, P as useBroadcastEvent, Q as useCanRedo, T as useCanUndo, z as useClient, az as useCreateAiChat, V as useCreateComment, W as useCreateThread, aA as useDeleteAiChat, D as useDeleteAllInboxNotifications, X as useDeleteComment, E as useDeleteInboxNotification, Y as useDeleteThread, Z as useEditComment, $ as useEditThreadMetadata, F as useErrorListener, a4 as useEventListener, aY as useGroupInfo, a5 as useHistory, aT as useHistoryVersions, _ as useInboxNotificationThread, aV 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, aW as useNotificationSettings, aL as useOther, aM as useOthers, aN as useOthersConnectionIds, ab as useOthersListener, aO as useOthersMapped, ac as useRedo, ad as useRemoveReaction, ae as useRoom, aX as useRoomInfo, aU as useRoomSubscriptionSettings, aP as useSelf, aB as useSendAiMessage, af as useStatus, aQ as useStorage, ag as useStorageRoot, a2 as useSubscribeToThread, J as useSyncStatus, ah as useThreadSubscription, aR as useThreads, ai as useUndo, aZ as useUnreadInboxNotificationsCount, a3 as useUnsubscribeFromThread, aj as useUpdateMyPresence, ay as useUpdateNotificationSettings, ak as useUpdateRoomSubscriptionSettings, a_ as useUser, a$ as useUserThreads_experimental } from './room-DkyB1sbB.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-WMCNV6XL.js";
|
|
7
7
|
import {
|
|
8
8
|
ClientContext,
|
|
9
9
|
LiveblocksProvider,
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
useUnsubscribeFromThread,
|
|
76
76
|
useUpdateNotificationSettings,
|
|
77
77
|
useUpdateRoomSubscriptionSettings
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-QY4EJ7GZ.js";
|
|
79
79
|
|
|
80
80
|
// src/suspense.ts
|
|
81
81
|
import { detectDupes } from "@liveblocks/core";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liveblocks/react",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.1",
|
|
4
4
|
"description": "A set of React hooks and providers to use Liveblocks declaratively. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"showdeps": "depcruise src --include-only '^src' --exclude='__tests__' --output-type dot | dot -T svg > /tmp/dependency-graph.svg && open /tmp/dependency-graph.svg"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@liveblocks/client": "3.8.
|
|
65
|
-
"@liveblocks/core": "3.8.
|
|
64
|
+
"@liveblocks/client": "3.8.1",
|
|
65
|
+
"@liveblocks/core": "3.8.1"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"@types/react": "*",
|