@liveblocks/react 3.8.0-next1 → 3.8.0-next3
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-TMNECRRU.js → chunk-2A5VCDEZ.js} +2 -2
- package/dist/{chunk-X3KI55GF.cjs → chunk-4ZS65AZV.cjs} +2 -2
- package/dist/{chunk-X3KI55GF.cjs.map → chunk-4ZS65AZV.cjs.map} +1 -1
- package/dist/{chunk-GXPZZIB2.js → chunk-DL5PAL6E.js} +134 -38
- package/dist/chunk-DL5PAL6E.js.map +1 -0
- package/dist/{chunk-45BFK66K.cjs → chunk-OYVPE6CV.cjs} +161 -65
- package/dist/chunk-OYVPE6CV.cjs.map +1 -0
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{room-DSJuooXd.d.cts → room-C97RX2dB.d.cts} +46 -5
- package/dist/{room-DSJuooXd.d.ts → room-C97RX2dB.d.ts} +46 -5
- 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-45BFK66K.cjs.map +0 -1
- package/dist/chunk-GXPZZIB2.js.map +0 -1
- /package/dist/{chunk-TMNECRRU.js.map → chunk-2A5VCDEZ.js.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk4ZS65AZVcjs = require('./chunk-4ZS65AZV.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -78,12 +78,12 @@ var _chunkX3KI55GFcjs = require('./chunk-X3KI55GF.cjs');
|
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
|
|
81
|
-
var
|
|
81
|
+
var _chunkOYVPE6CVcjs = require('./chunk-OYVPE6CV.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, _chunk4ZS65AZVcjs.PKG_NAME, _chunk4ZS65AZVcjs.PKG_VERSION, _chunk4ZS65AZVcjs.PKG_FORMAT);
|
|
87
87
|
|
|
88
88
|
|
|
89
89
|
|
|
@@ -161,5 +161,5 @@ _core.detectDupes.call(void 0, _chunkX3KI55GFcjs.PKG_NAME, _chunkX3KI55GFcjs.PKG
|
|
|
161
161
|
|
|
162
162
|
|
|
163
163
|
|
|
164
|
-
exports.ClientContext =
|
|
164
|
+
exports.ClientContext = _chunkOYVPE6CVcjs.ClientContext; exports.ClientSideSuspense = _chunk4ZS65AZVcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkOYVPE6CVcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkOYVPE6CVcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkOYVPE6CVcjs.RegisterAiTool; exports.RoomContext = _chunkOYVPE6CVcjs.RoomContext; exports.RoomProvider = _chunkOYVPE6CVcjs._RoomProvider; exports.createLiveblocksContext = _chunkOYVPE6CVcjs.createLiveblocksContext; exports.createRoomContext = _chunkOYVPE6CVcjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkOYVPE6CVcjs._useAddReaction; exports.useAiChat = _chunkOYVPE6CVcjs._useAiChat; exports.useAiChatMessages = _chunkOYVPE6CVcjs._useAiChatMessages; exports.useAiChatStatus = _chunkOYVPE6CVcjs.useAiChatStatus; exports.useAiChats = _chunkOYVPE6CVcjs._useAiChats; exports.useAttachmentUrl = _chunkOYVPE6CVcjs.useAttachmentUrl; exports.useBroadcastEvent = _chunkOYVPE6CVcjs._useBroadcastEvent; exports.useCanRedo = _chunkOYVPE6CVcjs.useCanRedo; exports.useCanUndo = _chunkOYVPE6CVcjs.useCanUndo; exports.useClient = _chunkOYVPE6CVcjs.useClient; exports.useCreateAiChat = _chunkOYVPE6CVcjs.useCreateAiChat; exports.useCreateComment = _chunkOYVPE6CVcjs.useCreateComment; exports.useCreateThread = _chunkOYVPE6CVcjs._useCreateThread; exports.useDeleteAiChat = _chunkOYVPE6CVcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkOYVPE6CVcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkOYVPE6CVcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkOYVPE6CVcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkOYVPE6CVcjs._useDeleteThread; exports.useEditComment = _chunkOYVPE6CVcjs.useEditComment; exports.useEditThreadMetadata = _chunkOYVPE6CVcjs._useEditThreadMetadata; exports.useErrorListener = _chunkOYVPE6CVcjs.useErrorListener; exports.useEventListener = _chunkOYVPE6CVcjs._useEventListener; exports.useGroupInfo = _chunkOYVPE6CVcjs.useGroupInfo; exports.useHistory = _chunkOYVPE6CVcjs.useHistory; exports.useHistoryVersionData = _chunkOYVPE6CVcjs.useHistoryVersionData; exports.useHistoryVersions = _chunkOYVPE6CVcjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkOYVPE6CVcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkOYVPE6CVcjs.useInboxNotifications; exports.useIsInsideRoom = _chunkOYVPE6CVcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkOYVPE6CVcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkOYVPE6CVcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkOYVPE6CVcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkOYVPE6CVcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkOYVPE6CVcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkOYVPE6CVcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkOYVPE6CVcjs._useMutation; exports.useMyPresence = _chunkOYVPE6CVcjs._useMyPresence; exports.useNotificationSettings = _chunkOYVPE6CVcjs.useNotificationSettings; exports.useOther = _chunkOYVPE6CVcjs._useOther; exports.useOthers = _chunkOYVPE6CVcjs._useOthers; exports.useOthersConnectionIds = _chunkOYVPE6CVcjs.useOthersConnectionIds; exports.useOthersListener = _chunkOYVPE6CVcjs._useOthersListener; exports.useOthersMapped = _chunkOYVPE6CVcjs._useOthersMapped; exports.useRedo = _chunkOYVPE6CVcjs.useRedo; exports.useRemoveReaction = _chunkOYVPE6CVcjs.useRemoveReaction; exports.useRoom = _chunkOYVPE6CVcjs._useRoom; exports.useRoomInfo = _chunkOYVPE6CVcjs.useRoomInfo; exports.useRoomSubscriptionSettings = _chunkOYVPE6CVcjs._useRoomSubscriptionSettings; exports.useSelf = _chunkOYVPE6CVcjs._useSelf; exports.useSendAiMessage = _chunkOYVPE6CVcjs.useSendAiMessage; exports.useStatus = _chunkOYVPE6CVcjs.useStatus; exports.useStorage = _chunkOYVPE6CVcjs._useStorage; exports.useStorageRoot = _chunkOYVPE6CVcjs._useStorageRoot; exports.useSubscribeToThread = _chunkOYVPE6CVcjs.useSubscribeToThread; exports.useSyncStatus = _chunkOYVPE6CVcjs.useSyncStatus; exports.useThreadSubscription = _chunkOYVPE6CVcjs.useThreadSubscription; exports.useThreads = _chunkOYVPE6CVcjs._useThreads; exports.useUndo = _chunkOYVPE6CVcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkOYVPE6CVcjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunkOYVPE6CVcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkOYVPE6CVcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkOYVPE6CVcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkOYVPE6CVcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunkOYVPE6CVcjs._useUser; exports.useUserThreads_experimental = _chunkOYVPE6CVcjs._useUserThreads_experimental;
|
|
165
165
|
//# 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;AACF,wDAA6B;AAC7B;AACA;ACjFA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADkF7C;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,u0JAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","sourcesContent":[null,"/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseSendAiMessageOptions,\n UseThreadsOptions,\n SendAiMessageOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {
|
|
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;AACF,wDAA6B;AAC7B;AACA;ACjFA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADkF7C;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,u0JAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","sourcesContent":[null,"/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseSendAiMessageOptions,\n UseThreadsOptions,\n SendAiMessageOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useGroupInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n useAiChatStatus,\n} from \"./liveblocks\";\n"]}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-
|
|
2
|
-
export {
|
|
1
|
+
import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-C97RX2dB.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-C97RX2dB.cjs';
|
|
3
3
|
export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import * as react from 'react';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-
|
|
2
|
-
export {
|
|
1
|
+
import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-C97RX2dB.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-C97RX2dB.js';
|
|
3
3
|
export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import * as react from 'react';
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
PKG_FORMAT,
|
|
4
4
|
PKG_NAME,
|
|
5
5
|
PKG_VERSION
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2A5VCDEZ.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-DL5PAL6E.js";
|
|
82
82
|
|
|
83
83
|
// src/index.ts
|
|
84
84
|
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 UseSendAiMessageOptions,\n UseThreadsOptions,\n SendAiMessageOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseSendAiMessageOptions,\n UseThreadsOptions,\n SendAiMessageOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useGroupInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n useAiChatStatus,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAe5B,SAAS,SAAS,oCAAoC;AAZtD,YAAY,UAAU,aAAa,UAAU;","names":[]}
|
|
@@ -1257,10 +1257,26 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
|
|
|
1257
1257
|
*/
|
|
1258
1258
|
useAiChat(chatId: string): AiChatAsyncResult;
|
|
1259
1259
|
/**
|
|
1260
|
-
*
|
|
1260
|
+
* Returns the status of an AI chat, indicating whether it's idle or actively
|
|
1261
|
+
* generating content. This is a convenience hook that derives its state from
|
|
1262
|
+
* the latest assistant message in the chat.
|
|
1263
|
+
*
|
|
1264
|
+
* Re-renders whenever any of the relevant fields change.
|
|
1265
|
+
*
|
|
1266
|
+
* @param chatId - The ID of the chat to monitor
|
|
1267
|
+
* @returns The current status of the AI chat
|
|
1261
1268
|
*
|
|
1262
1269
|
* @example
|
|
1263
|
-
*
|
|
1270
|
+
* ```tsx
|
|
1271
|
+
* import { useAiChatStatus } from "@liveblocks/react";
|
|
1272
|
+
*
|
|
1273
|
+
* function ChatStatus() {
|
|
1274
|
+
* const { status, partType, toolName } = useAiChatStatus("my-chat");
|
|
1275
|
+
* console.log(status); // "loading" | "idle" | "generating"
|
|
1276
|
+
* console.log(status.partType); // "text" | "tool-invocation" | ...
|
|
1277
|
+
* console.log(status.toolName); // string | undefined
|
|
1278
|
+
* }
|
|
1279
|
+
* ```
|
|
1264
1280
|
*/
|
|
1265
1281
|
useAiChatStatus(chatId: string, branchId?: MessageId): AiChatStatus;
|
|
1266
1282
|
suspense: Resolve<LiveblocksContextBundleCommon<M> & SharedContextBundle<U>["suspense"] & {
|
|
@@ -1317,10 +1333,26 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
|
|
|
1317
1333
|
*/
|
|
1318
1334
|
useAiChat(chatId: string): AiChatAsyncSuccess;
|
|
1319
1335
|
/**
|
|
1320
|
-
*
|
|
1336
|
+
* Returns the status of an AI chat, indicating whether it's idle or actively
|
|
1337
|
+
* generating content. This is a convenience hook that derives its state from
|
|
1338
|
+
* the latest assistant message in the chat.
|
|
1339
|
+
*
|
|
1340
|
+
* Re-renders whenever any of the relevant fields change.
|
|
1341
|
+
*
|
|
1342
|
+
* @param chatId - The ID of the chat to monitor
|
|
1343
|
+
* @returns The current status of the AI chat
|
|
1321
1344
|
*
|
|
1322
1345
|
* @example
|
|
1323
|
-
*
|
|
1346
|
+
* ```tsx
|
|
1347
|
+
* import { useAiChatStatus } from "@liveblocks/react";
|
|
1348
|
+
*
|
|
1349
|
+
* function ChatStatus() {
|
|
1350
|
+
* const { status, partType, toolName } = useAiChatStatus("my-chat");
|
|
1351
|
+
* console.log(status); // "loading" | "idle" | "generating"
|
|
1352
|
+
* console.log(status.partType); // "text" | "tool-invocation" | ...
|
|
1353
|
+
* console.log(status.toolName); // string | undefined
|
|
1354
|
+
* }
|
|
1355
|
+
* ```
|
|
1324
1356
|
*/
|
|
1325
1357
|
useAiChatStatus(chatId: string, branchId?: MessageId): AiChatStatus;
|
|
1326
1358
|
}>;
|
|
@@ -1571,6 +1603,12 @@ declare function createStore_forNotifications(): {
|
|
|
1571
1603
|
updateAssociatedNotification: (newComment: CommentData) => void;
|
|
1572
1604
|
upsert: (notification: InboxNotificationData) => void;
|
|
1573
1605
|
};
|
|
1606
|
+
declare function createStore_forUnreadNotificationsCount(): {
|
|
1607
|
+
signal: DerivedSignal<{
|
|
1608
|
+
[k: string]: number;
|
|
1609
|
+
}>;
|
|
1610
|
+
update: (queryKey: InboxNotificationsQueryKey, count: number) => void;
|
|
1611
|
+
};
|
|
1574
1612
|
declare function createStore_forSubscriptions(updates: ISignal<readonly OptimisticUpdate<BaseMetadata>[]>, threads: ReadonlyThreadDB<BaseMetadata>): {
|
|
1575
1613
|
signal: DerivedSignal<SubscriptionsByKey>;
|
|
1576
1614
|
applyDelta: (newSubscriptions: SubscriptionData[], deletedSubscriptions: SubscriptionDeleteInfo[]) => void;
|
|
@@ -1627,6 +1665,7 @@ declare class UmbrellaStore<M extends BaseMetadata> {
|
|
|
1627
1665
|
readonly subscriptions: ReturnType<typeof createStore_forSubscriptions>;
|
|
1628
1666
|
readonly roomSubscriptionSettings: ReturnType<typeof createStore_forRoomSubscriptionSettings>;
|
|
1629
1667
|
readonly historyVersions: ReturnType<typeof createStore_forHistoryVersions>;
|
|
1668
|
+
readonly unreadNotificationsCount: ReturnType<typeof createStore_forUnreadNotificationsCount>;
|
|
1630
1669
|
readonly permissionHints: ReturnType<typeof createStore_forPermissionHints>;
|
|
1631
1670
|
readonly notificationSettings: ReturnType<typeof createStore_forNotificationSettings>;
|
|
1632
1671
|
readonly optimisticUpdates: ReturnType<typeof createStore_forOptimistic<M>>;
|
|
@@ -1638,6 +1677,7 @@ declare class UmbrellaStore<M extends BaseMetadata> {
|
|
|
1638
1677
|
readonly notifications: DerivedSignal<CleanNotifications>;
|
|
1639
1678
|
readonly threadSubscriptions: DerivedSignal<CleanThreadSubscriptions>;
|
|
1640
1679
|
readonly loadingNotifications: DefaultMap<InboxNotificationsQueryKey, LoadableResource<InboxNotificationsAsyncResult>>;
|
|
1680
|
+
readonly unreadNotificationsCount: DefaultMap<InboxNotificationsQueryKey, LoadableResource<UnreadInboxNotificationsCountAsyncResult>>;
|
|
1641
1681
|
readonly roomSubscriptionSettingsByRoomId: DefaultMap<RoomId, LoadableResource<RoomSubscriptionSettingsAsyncResult>>;
|
|
1642
1682
|
readonly versionsByRoomId: DefaultMap<RoomId, LoadableResource<HistoryVersionsAsyncResult>>;
|
|
1643
1683
|
readonly notificationSettings: LoadableResource<NotificationSettingsAsyncResult>;
|
|
@@ -1707,6 +1747,7 @@ declare class UmbrellaStore<M extends BaseMetadata> {
|
|
|
1707
1747
|
*/
|
|
1708
1748
|
updateRoomSubscriptionSettings(roomId: string, optimisticId: string, settings: Readonly<RoomSubscriptionSettings$1>): void;
|
|
1709
1749
|
fetchNotificationsDeltaUpdate(signal: AbortSignal): Promise<void>;
|
|
1750
|
+
fetchUnreadNotificationsCount(queryKey: InboxNotificationsQueryKey, signal: AbortSignal): Promise<void>;
|
|
1710
1751
|
fetchRoomThreadsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
|
|
1711
1752
|
fetchUserThreadsDeltaUpdate(signal: AbortSignal): Promise<void>;
|
|
1712
1753
|
fetchRoomVersionsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
|
|
@@ -2815,4 +2856,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
2815
2856
|
*/
|
|
2816
2857
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
2817
2858
|
|
|
2818
|
-
export {
|
|
2859
|
+
export { _useEditThreadMetadata as $, type AiChatStatus as A, createLiveblocksContext as B, ClientContext as C, useDeleteAllInboxNotifications as D, useDeleteInboxNotification as E, useErrorListener as F, type GroupAsyncResult as G, useMarkAllInboxNotificationsAsRead as H, useMarkInboxNotificationAsRead as I, useSyncStatus as J, createRoomContext as K, LiveblocksProvider as L, type MutationContext as M, _RoomProvider as N, _useAddReaction as O, _useBroadcastEvent as P, useCanRedo as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCanUndo as T, type UseSendAiMessageOptions as U, useCreateComment as V, _useCreateThread as W, useDeleteComment as X, _useDeleteThread as Y, useEditComment as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, _useUserThreadsSuspense_experimental as a$, useMarkThreadAsResolved as a0, useMarkThreadAsUnresolved as a1, useSubscribeToThread as a2, useUnsubscribeFromThread as a3, _useEventListener as a4, useHistory as a5, _useIsInsideRoom as a6, useLostConnectionListener as a7, useMarkThreadAsRead as a8, _useMutation as a9, useDeleteAiChat as aA, useSendAiMessage as aB, _useUserThreads_experimental as aC, useRoomInfo as aD, useGroupInfo as aE, useUnreadInboxNotificationsCount as aF, _useUser as aG, _useAiChat as aH, _useAiChats as aI, _useAiChatMessages as aJ, useAiChatStatus as aK, _useOtherSuspense as aL, _useOthersSuspense as aM, useOthersConnectionIdsSuspense as aN, _useOthersMappedSuspense as aO, _useSelfSuspense as aP, _useStorageSuspense as aQ, _useThreadsSuspense as aR, useAttachmentUrlSuspense as aS, _useHistoryVersionsSuspense as aT, _useRoomSubscriptionSettingsSuspense as aU, useInboxNotificationsSuspense as aV, useNotificationSettingsSuspense as aW, useRoomInfoSuspense as aX, useGroupInfoSuspense as aY, useUnreadInboxNotificationsCountSuspense as aZ, _useUserSuspense as a_, _useMyPresence as aa, _useOthersListener as ab, useRedo as ac, useRemoveReaction as ad, _useRoom as ae, useStatus as af, _useStorageRoot as ag, useThreadSubscription as ah, useUndo as ai, _useUpdateMyPresence as aj, useUpdateRoomSubscriptionSettings as ak, useHistoryVersionData as al, _useOther as am, _useOthers as an, useOthersConnectionIds as ao, _useOthersMapped as ap, _useSelf as aq, _useStorage as ar, _useThreads as as, useAttachmentUrl as at, _useHistoryVersions as au, _useRoomSubscriptionSettings as av, useInboxNotifications as aw, useNotificationSettings as ax, useUpdateNotificationSettings as ay, useCreateAiChat 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 };
|
|
@@ -1257,10 +1257,26 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
|
|
|
1257
1257
|
*/
|
|
1258
1258
|
useAiChat(chatId: string): AiChatAsyncResult;
|
|
1259
1259
|
/**
|
|
1260
|
-
*
|
|
1260
|
+
* Returns the status of an AI chat, indicating whether it's idle or actively
|
|
1261
|
+
* generating content. This is a convenience hook that derives its state from
|
|
1262
|
+
* the latest assistant message in the chat.
|
|
1263
|
+
*
|
|
1264
|
+
* Re-renders whenever any of the relevant fields change.
|
|
1265
|
+
*
|
|
1266
|
+
* @param chatId - The ID of the chat to monitor
|
|
1267
|
+
* @returns The current status of the AI chat
|
|
1261
1268
|
*
|
|
1262
1269
|
* @example
|
|
1263
|
-
*
|
|
1270
|
+
* ```tsx
|
|
1271
|
+
* import { useAiChatStatus } from "@liveblocks/react";
|
|
1272
|
+
*
|
|
1273
|
+
* function ChatStatus() {
|
|
1274
|
+
* const { status, partType, toolName } = useAiChatStatus("my-chat");
|
|
1275
|
+
* console.log(status); // "loading" | "idle" | "generating"
|
|
1276
|
+
* console.log(status.partType); // "text" | "tool-invocation" | ...
|
|
1277
|
+
* console.log(status.toolName); // string | undefined
|
|
1278
|
+
* }
|
|
1279
|
+
* ```
|
|
1264
1280
|
*/
|
|
1265
1281
|
useAiChatStatus(chatId: string, branchId?: MessageId): AiChatStatus;
|
|
1266
1282
|
suspense: Resolve<LiveblocksContextBundleCommon<M> & SharedContextBundle<U>["suspense"] & {
|
|
@@ -1317,10 +1333,26 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
|
|
|
1317
1333
|
*/
|
|
1318
1334
|
useAiChat(chatId: string): AiChatAsyncSuccess;
|
|
1319
1335
|
/**
|
|
1320
|
-
*
|
|
1336
|
+
* Returns the status of an AI chat, indicating whether it's idle or actively
|
|
1337
|
+
* generating content. This is a convenience hook that derives its state from
|
|
1338
|
+
* the latest assistant message in the chat.
|
|
1339
|
+
*
|
|
1340
|
+
* Re-renders whenever any of the relevant fields change.
|
|
1341
|
+
*
|
|
1342
|
+
* @param chatId - The ID of the chat to monitor
|
|
1343
|
+
* @returns The current status of the AI chat
|
|
1321
1344
|
*
|
|
1322
1345
|
* @example
|
|
1323
|
-
*
|
|
1346
|
+
* ```tsx
|
|
1347
|
+
* import { useAiChatStatus } from "@liveblocks/react";
|
|
1348
|
+
*
|
|
1349
|
+
* function ChatStatus() {
|
|
1350
|
+
* const { status, partType, toolName } = useAiChatStatus("my-chat");
|
|
1351
|
+
* console.log(status); // "loading" | "idle" | "generating"
|
|
1352
|
+
* console.log(status.partType); // "text" | "tool-invocation" | ...
|
|
1353
|
+
* console.log(status.toolName); // string | undefined
|
|
1354
|
+
* }
|
|
1355
|
+
* ```
|
|
1324
1356
|
*/
|
|
1325
1357
|
useAiChatStatus(chatId: string, branchId?: MessageId): AiChatStatus;
|
|
1326
1358
|
}>;
|
|
@@ -1571,6 +1603,12 @@ declare function createStore_forNotifications(): {
|
|
|
1571
1603
|
updateAssociatedNotification: (newComment: CommentData) => void;
|
|
1572
1604
|
upsert: (notification: InboxNotificationData) => void;
|
|
1573
1605
|
};
|
|
1606
|
+
declare function createStore_forUnreadNotificationsCount(): {
|
|
1607
|
+
signal: DerivedSignal<{
|
|
1608
|
+
[k: string]: number;
|
|
1609
|
+
}>;
|
|
1610
|
+
update: (queryKey: InboxNotificationsQueryKey, count: number) => void;
|
|
1611
|
+
};
|
|
1574
1612
|
declare function createStore_forSubscriptions(updates: ISignal<readonly OptimisticUpdate<BaseMetadata>[]>, threads: ReadonlyThreadDB<BaseMetadata>): {
|
|
1575
1613
|
signal: DerivedSignal<SubscriptionsByKey>;
|
|
1576
1614
|
applyDelta: (newSubscriptions: SubscriptionData[], deletedSubscriptions: SubscriptionDeleteInfo[]) => void;
|
|
@@ -1627,6 +1665,7 @@ declare class UmbrellaStore<M extends BaseMetadata> {
|
|
|
1627
1665
|
readonly subscriptions: ReturnType<typeof createStore_forSubscriptions>;
|
|
1628
1666
|
readonly roomSubscriptionSettings: ReturnType<typeof createStore_forRoomSubscriptionSettings>;
|
|
1629
1667
|
readonly historyVersions: ReturnType<typeof createStore_forHistoryVersions>;
|
|
1668
|
+
readonly unreadNotificationsCount: ReturnType<typeof createStore_forUnreadNotificationsCount>;
|
|
1630
1669
|
readonly permissionHints: ReturnType<typeof createStore_forPermissionHints>;
|
|
1631
1670
|
readonly notificationSettings: ReturnType<typeof createStore_forNotificationSettings>;
|
|
1632
1671
|
readonly optimisticUpdates: ReturnType<typeof createStore_forOptimistic<M>>;
|
|
@@ -1638,6 +1677,7 @@ declare class UmbrellaStore<M extends BaseMetadata> {
|
|
|
1638
1677
|
readonly notifications: DerivedSignal<CleanNotifications>;
|
|
1639
1678
|
readonly threadSubscriptions: DerivedSignal<CleanThreadSubscriptions>;
|
|
1640
1679
|
readonly loadingNotifications: DefaultMap<InboxNotificationsQueryKey, LoadableResource<InboxNotificationsAsyncResult>>;
|
|
1680
|
+
readonly unreadNotificationsCount: DefaultMap<InboxNotificationsQueryKey, LoadableResource<UnreadInboxNotificationsCountAsyncResult>>;
|
|
1641
1681
|
readonly roomSubscriptionSettingsByRoomId: DefaultMap<RoomId, LoadableResource<RoomSubscriptionSettingsAsyncResult>>;
|
|
1642
1682
|
readonly versionsByRoomId: DefaultMap<RoomId, LoadableResource<HistoryVersionsAsyncResult>>;
|
|
1643
1683
|
readonly notificationSettings: LoadableResource<NotificationSettingsAsyncResult>;
|
|
@@ -1707,6 +1747,7 @@ declare class UmbrellaStore<M extends BaseMetadata> {
|
|
|
1707
1747
|
*/
|
|
1708
1748
|
updateRoomSubscriptionSettings(roomId: string, optimisticId: string, settings: Readonly<RoomSubscriptionSettings$1>): void;
|
|
1709
1749
|
fetchNotificationsDeltaUpdate(signal: AbortSignal): Promise<void>;
|
|
1750
|
+
fetchUnreadNotificationsCount(queryKey: InboxNotificationsQueryKey, signal: AbortSignal): Promise<void>;
|
|
1710
1751
|
fetchRoomThreadsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
|
|
1711
1752
|
fetchUserThreadsDeltaUpdate(signal: AbortSignal): Promise<void>;
|
|
1712
1753
|
fetchRoomVersionsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
|
|
@@ -2815,4 +2856,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
2815
2856
|
*/
|
|
2816
2857
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
2817
2858
|
|
|
2818
|
-
export {
|
|
2859
|
+
export { _useEditThreadMetadata as $, type AiChatStatus as A, createLiveblocksContext as B, ClientContext as C, useDeleteAllInboxNotifications as D, useDeleteInboxNotification as E, useErrorListener as F, type GroupAsyncResult as G, useMarkAllInboxNotificationsAsRead as H, useMarkInboxNotificationAsRead as I, useSyncStatus as J, createRoomContext as K, LiveblocksProvider as L, type MutationContext as M, _RoomProvider as N, _useAddReaction as O, _useBroadcastEvent as P, useCanRedo as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCanUndo as T, type UseSendAiMessageOptions as U, useCreateComment as V, _useCreateThread as W, useDeleteComment as X, _useDeleteThread as Y, useEditComment as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, _useUserThreadsSuspense_experimental as a$, useMarkThreadAsResolved as a0, useMarkThreadAsUnresolved as a1, useSubscribeToThread as a2, useUnsubscribeFromThread as a3, _useEventListener as a4, useHistory as a5, _useIsInsideRoom as a6, useLostConnectionListener as a7, useMarkThreadAsRead as a8, _useMutation as a9, useDeleteAiChat as aA, useSendAiMessage as aB, _useUserThreads_experimental as aC, useRoomInfo as aD, useGroupInfo as aE, useUnreadInboxNotificationsCount as aF, _useUser as aG, _useAiChat as aH, _useAiChats as aI, _useAiChatMessages as aJ, useAiChatStatus as aK, _useOtherSuspense as aL, _useOthersSuspense as aM, useOthersConnectionIdsSuspense as aN, _useOthersMappedSuspense as aO, _useSelfSuspense as aP, _useStorageSuspense as aQ, _useThreadsSuspense as aR, useAttachmentUrlSuspense as aS, _useHistoryVersionsSuspense as aT, _useRoomSubscriptionSettingsSuspense as aU, useInboxNotificationsSuspense as aV, useNotificationSettingsSuspense as aW, useRoomInfoSuspense as aX, useGroupInfoSuspense as aY, useUnreadInboxNotificationsCountSuspense as aZ, _useUserSuspense as a_, _useMyPresence as aa, _useOthersListener as ab, useRedo as ac, useRemoveReaction as ad, _useRoom as ae, useStatus as af, _useStorageRoot as ag, useThreadSubscription as ah, useUndo as ai, _useUpdateMyPresence as aj, useUpdateRoomSubscriptionSettings as ak, useHistoryVersionData as al, _useOther as am, _useOthers as an, useOthersConnectionIds as ao, _useOthersMapped as ap, _useSelf as aq, _useStorage as ar, _useThreads as as, useAttachmentUrl as at, _useHistoryVersions as au, _useRoomSubscriptionSettings as av, useInboxNotifications as aw, useNotificationSettings as ax, useUpdateNotificationSettings as ay, useCreateAiChat 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 _chunk4ZS65AZVcjs = require('./chunk-4ZS65AZV.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -75,12 +75,12 @@ var _chunkX3KI55GFcjs = require('./chunk-X3KI55GF.cjs');
|
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
var
|
|
78
|
+
var _chunkOYVPE6CVcjs = require('./chunk-OYVPE6CV.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, _chunk4ZS65AZVcjs.PKG_NAME, _chunk4ZS65AZVcjs.PKG_VERSION, _chunk4ZS65AZVcjs.PKG_FORMAT);
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
|
|
@@ -155,5 +155,5 @@ _core.detectDupes.call(void 0, _chunkX3KI55GFcjs.PKG_NAME, _chunkX3KI55GFcjs.PKG
|
|
|
155
155
|
|
|
156
156
|
|
|
157
157
|
|
|
158
|
-
exports.ClientContext =
|
|
158
|
+
exports.ClientContext = _chunkOYVPE6CVcjs.ClientContext; exports.ClientSideSuspense = _chunk4ZS65AZVcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkOYVPE6CVcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkOYVPE6CVcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkOYVPE6CVcjs.RegisterAiTool; exports.RoomContext = _chunkOYVPE6CVcjs.RoomContext; exports.RoomProvider = _chunkOYVPE6CVcjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkOYVPE6CVcjs._useAddReaction; exports.useAiChat = _chunkOYVPE6CVcjs._useAiChatSuspense; exports.useAiChatMessages = _chunkOYVPE6CVcjs._useAiChatMessagesSuspense; exports.useAiChatStatus = _chunkOYVPE6CVcjs.useAiChatStatus; exports.useAiChats = _chunkOYVPE6CVcjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunkOYVPE6CVcjs.useAttachmentUrlSuspense; exports.useBroadcastEvent = _chunkOYVPE6CVcjs._useBroadcastEvent; exports.useCanRedo = _chunkOYVPE6CVcjs.useCanRedo; exports.useCanUndo = _chunkOYVPE6CVcjs.useCanUndo; exports.useClient = _chunkOYVPE6CVcjs.useClient; exports.useCreateAiChat = _chunkOYVPE6CVcjs.useCreateAiChat; exports.useCreateComment = _chunkOYVPE6CVcjs.useCreateComment; exports.useCreateThread = _chunkOYVPE6CVcjs._useCreateThread; exports.useDeleteAiChat = _chunkOYVPE6CVcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkOYVPE6CVcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkOYVPE6CVcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkOYVPE6CVcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkOYVPE6CVcjs._useDeleteThread; exports.useEditComment = _chunkOYVPE6CVcjs.useEditComment; exports.useEditThreadMetadata = _chunkOYVPE6CVcjs._useEditThreadMetadata; exports.useErrorListener = _chunkOYVPE6CVcjs.useErrorListener; exports.useEventListener = _chunkOYVPE6CVcjs._useEventListener; exports.useGroupInfo = _chunkOYVPE6CVcjs.useGroupInfoSuspense; exports.useHistory = _chunkOYVPE6CVcjs.useHistory; exports.useHistoryVersions = _chunkOYVPE6CVcjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkOYVPE6CVcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkOYVPE6CVcjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkOYVPE6CVcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkOYVPE6CVcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkOYVPE6CVcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkOYVPE6CVcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkOYVPE6CVcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkOYVPE6CVcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkOYVPE6CVcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkOYVPE6CVcjs._useMutation; exports.useMyPresence = _chunkOYVPE6CVcjs._useMyPresence; exports.useNotificationSettings = _chunkOYVPE6CVcjs.useNotificationSettingsSuspense; exports.useOther = _chunkOYVPE6CVcjs._useOtherSuspense; exports.useOthers = _chunkOYVPE6CVcjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkOYVPE6CVcjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkOYVPE6CVcjs._useOthersListener; exports.useOthersMapped = _chunkOYVPE6CVcjs._useOthersMappedSuspense; exports.useRedo = _chunkOYVPE6CVcjs.useRedo; exports.useRemoveReaction = _chunkOYVPE6CVcjs.useRemoveReaction; exports.useRoom = _chunkOYVPE6CVcjs._useRoom; exports.useRoomInfo = _chunkOYVPE6CVcjs.useRoomInfoSuspense; exports.useRoomSubscriptionSettings = _chunkOYVPE6CVcjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunkOYVPE6CVcjs._useSelfSuspense; exports.useSendAiMessage = _chunkOYVPE6CVcjs.useSendAiMessage; exports.useStatus = _chunkOYVPE6CVcjs.useStatus; exports.useStorage = _chunkOYVPE6CVcjs._useStorageSuspense; exports.useStorageRoot = _chunkOYVPE6CVcjs._useStorageRoot; exports.useSubscribeToThread = _chunkOYVPE6CVcjs.useSubscribeToThread; exports.useSyncStatus = _chunkOYVPE6CVcjs.useSyncStatus; exports.useThreadSubscription = _chunkOYVPE6CVcjs.useThreadSubscription; exports.useThreads = _chunkOYVPE6CVcjs._useThreadsSuspense; exports.useUndo = _chunkOYVPE6CVcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkOYVPE6CVcjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunkOYVPE6CVcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkOYVPE6CVcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkOYVPE6CVcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkOYVPE6CVcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunkOYVPE6CVcjs._useUserSuspense; exports.useUserThreads_experimental = _chunkOYVPE6CVcjs._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 {
|
|
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-C97RX2dB.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 {
|
|
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-C97RX2dB.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-2A5VCDEZ.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-DL5PAL6E.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.0-
|
|
3
|
+
"version": "3.8.0-next3",
|
|
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.0-
|
|
65
|
-
"@liveblocks/core": "3.8.0-
|
|
64
|
+
"@liveblocks/client": "3.8.0-next3",
|
|
65
|
+
"@liveblocks/core": "3.8.0-next3"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"@types/react": "*",
|