@liveblocks/react 2.24.1 → 2.25.0-aiprivatebeta1
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-N6OQQVYV.js → chunk-E6PCFJWE.js} +169 -10
- package/dist/chunk-E6PCFJWE.js.map +1 -0
- package/dist/{chunk-RPHUEUUE.js → chunk-EDEUY3EM.js} +2 -2
- package/dist/{chunk-2C72TPGI.cjs → chunk-GSA4MPRG.cjs} +2 -2
- package/dist/chunk-GSA4MPRG.cjs.map +1 -0
- package/dist/{chunk-32HQP5F6.cjs → chunk-ZGVKI7OM.cjs} +163 -4
- package/dist/chunk-ZGVKI7OM.cjs.map +1 -0
- package/dist/index.cjs +12 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/dist/{room-CqT08uWZ.d.cts → room-DmsjrDvP.d.cts} +86 -2
- package/dist/{room-CqT08uWZ.d.ts → room-DmsjrDvP.d.ts} +86 -2
- package/dist/suspense.cjs +12 -4
- package/dist/suspense.cjs.map +1 -1
- package/dist/suspense.d.cts +1 -1
- package/dist/suspense.d.ts +1 -1
- package/dist/suspense.js +10 -2
- package/dist/suspense.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-2C72TPGI.cjs.map +0 -1
- package/dist/chunk-32HQP5F6.cjs.map +0 -1
- package/dist/chunk-N6OQQVYV.js.map +0 -1
- /package/dist/{chunk-RPHUEUUE.js.map → chunk-EDEUY3EM.js.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkGSA4MPRGcjs = require('./chunk-GSA4MPRG.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -72,12 +72,20 @@ var _chunk2C72TPGIcjs = require('./chunk-2C72TPGI.cjs');
|
|
|
72
72
|
|
|
73
73
|
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
var _chunkZGVKI7OMcjs = require('./chunk-ZGVKI7OM.cjs');
|
|
76
80
|
|
|
77
81
|
// src/index.ts
|
|
78
82
|
var _core = require('@liveblocks/core');
|
|
79
83
|
var _client = require('@liveblocks/client');
|
|
80
|
-
_core.detectDupes.call(void 0,
|
|
84
|
+
_core.detectDupes.call(void 0, _chunkGSA4MPRGcjs.PKG_NAME, _chunkGSA4MPRGcjs.PKG_VERSION, _chunkGSA4MPRGcjs.PKG_FORMAT);
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
81
89
|
|
|
82
90
|
|
|
83
91
|
|
|
@@ -149,5 +157,5 @@ _core.detectDupes.call(void 0, _chunk2C72TPGIcjs.PKG_NAME, _chunk2C72TPGIcjs.PKG
|
|
|
149
157
|
|
|
150
158
|
|
|
151
159
|
|
|
152
|
-
exports.ClientContext =
|
|
160
|
+
exports.ClientContext = _chunkZGVKI7OMcjs.ClientContext; exports.ClientSideSuspense = _chunkGSA4MPRGcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkZGVKI7OMcjs.LiveblocksProvider; exports.RoomContext = _chunkZGVKI7OMcjs.RoomContext; exports.RoomProvider = _chunkZGVKI7OMcjs._RoomProvider; exports.createLiveblocksContext = _chunkZGVKI7OMcjs.createLiveblocksContext; exports.createRoomContext = _chunkZGVKI7OMcjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkZGVKI7OMcjs._useAddReaction; exports.useAiChatMessages = _chunkZGVKI7OMcjs._useAiChatMessages; exports.useAiChats = _chunkZGVKI7OMcjs._useAiChats; exports.useAttachmentUrl = _chunkZGVKI7OMcjs.useAttachmentUrl; exports.useBatch = _chunkZGVKI7OMcjs.useBatch; exports.useBroadcastEvent = _chunkZGVKI7OMcjs._useBroadcastEvent; exports.useCanRedo = _chunkZGVKI7OMcjs.useCanRedo; exports.useCanUndo = _chunkZGVKI7OMcjs.useCanUndo; exports.useClient = _chunkZGVKI7OMcjs.useClient; exports.useCreateAiChat = _chunkZGVKI7OMcjs.useCreateAiChat; exports.useCreateComment = _chunkZGVKI7OMcjs.useCreateComment; exports.useCreateThread = _chunkZGVKI7OMcjs._useCreateThread; exports.useDeleteAiChat = _chunkZGVKI7OMcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkZGVKI7OMcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkZGVKI7OMcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkZGVKI7OMcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkZGVKI7OMcjs._useDeleteThread; exports.useEditComment = _chunkZGVKI7OMcjs.useEditComment; exports.useEditThreadMetadata = _chunkZGVKI7OMcjs._useEditThreadMetadata; exports.useErrorListener = _chunkZGVKI7OMcjs.useErrorListener; exports.useEventListener = _chunkZGVKI7OMcjs._useEventListener; exports.useHistory = _chunkZGVKI7OMcjs.useHistory; exports.useHistoryVersionData = _chunkZGVKI7OMcjs.useHistoryVersionData; exports.useHistoryVersions = _chunkZGVKI7OMcjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkZGVKI7OMcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkZGVKI7OMcjs.useInboxNotifications; exports.useIsInsideRoom = _chunkZGVKI7OMcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkZGVKI7OMcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkZGVKI7OMcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkZGVKI7OMcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkZGVKI7OMcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkZGVKI7OMcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkZGVKI7OMcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkZGVKI7OMcjs._useMutation; exports.useMyPresence = _chunkZGVKI7OMcjs._useMyPresence; exports.useNotificationSettings = _chunkZGVKI7OMcjs.useNotificationSettings; exports.useOther = _chunkZGVKI7OMcjs._useOther; exports.useOthers = _chunkZGVKI7OMcjs._useOthers; exports.useOthersConnectionIds = _chunkZGVKI7OMcjs.useOthersConnectionIds; exports.useOthersListener = _chunkZGVKI7OMcjs._useOthersListener; exports.useOthersMapped = _chunkZGVKI7OMcjs._useOthersMapped; exports.useRedo = _chunkZGVKI7OMcjs.useRedo; exports.useRemoveReaction = _chunkZGVKI7OMcjs.useRemoveReaction; exports.useRoom = _chunkZGVKI7OMcjs._useRoom; exports.useRoomInfo = _chunkZGVKI7OMcjs.useRoomInfo; exports.useRoomNotificationSettings = _chunkZGVKI7OMcjs._useRoomNotificationSettings; exports.useRoomSubscriptionSettings = _chunkZGVKI7OMcjs._useRoomSubscriptionSettings; exports.useSelf = _chunkZGVKI7OMcjs._useSelf; exports.useStatus = _chunkZGVKI7OMcjs.useStatus; exports.useStorage = _chunkZGVKI7OMcjs._useStorage; exports.useStorageRoot = _chunkZGVKI7OMcjs._useStorageRoot; exports.useStorageStatus = _chunkZGVKI7OMcjs.useStorageStatus; exports.useSubscribeToThread = _chunkZGVKI7OMcjs.useSubscribeToThread; exports.useSyncStatus = _chunkZGVKI7OMcjs.useSyncStatus; exports.useThreadSubscription = _chunkZGVKI7OMcjs.useThreadSubscription; exports.useThreads = _chunkZGVKI7OMcjs._useThreads; exports.useUndo = _chunkZGVKI7OMcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkZGVKI7OMcjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunkZGVKI7OMcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkZGVKI7OMcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkZGVKI7OMcjs.useUpdateNotificationSettings; exports.useUpdateRoomNotificationSettings = _chunkZGVKI7OMcjs.useUpdateRoomNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkZGVKI7OMcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunkZGVKI7OMcjs._useUser; exports.useUserThreads_experimental = _chunkZGVKI7OMcjs._useUserThreads_experimental;
|
|
153
161
|
//# 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;AACF,wDAA6B;AAC7B;AACA;
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","../src/index.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;AC/EA,wCAA4B;AAc5B,4CAAsD;AAXtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADgF7C;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uwJAAC","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 {\n ClientContext,\n createLiveblocksContext,\n LiveblocksProvider,\n useClient,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n useUpdateRoomSubscriptionSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useStorageStatus,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomNotificationSettings,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChats,\n useAiChatMessages,\n} from \"./liveblocks\";\n"]}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, x as createLiveblocksContext, G as createRoomContext, I as useAddReaction, aq as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, P as useCreateComment, Q as useCreateThread, z as useDeleteAllInboxNotifications, R as useDeleteComment, A as useDeleteInboxNotification, S as useDeleteThread, T as useEditComment, V as useEditThreadMetadata, B as useErrorListener, $ as useEventListener, a0 as useHistory, ah as useHistoryVersionData, ar as useHistoryVersions, _ as useInboxNotificationThread, au as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, W as useMarkThreadAsResolved, X as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, av as useNotificationSettings, ai as useOther, aj as useOthers, ak as useOthersConnectionIds, a6 as useOthersListener, al as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom,
|
|
1
|
+
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, x as createLiveblocksContext, G as createRoomContext, I as useAddReaction, aE as useAiChatMessages, aD as useAiChats, aq as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, ax as useCreateAiChat, P as useCreateComment, Q as useCreateThread, ay as useDeleteAiChat, z as useDeleteAllInboxNotifications, R as useDeleteComment, A as useDeleteInboxNotification, S as useDeleteThread, T as useEditComment, V as useEditThreadMetadata, B as useErrorListener, $ as useEventListener, a0 as useHistory, ah as useHistoryVersionData, ar as useHistoryVersions, _ as useInboxNotificationThread, au as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, W as useMarkThreadAsResolved, X as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, av as useNotificationSettings, ai as useOther, aj as useOthers, ak as useOthersConnectionIds, a6 as useOthersListener, al as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, aA as useRoomInfo, as as useRoomNotificationSettings, at as useRoomSubscriptionSettings, am as useSelf, aa as useStatus, an as useStorage, ab as useStorageRoot, ao as useStorageStatus, Y as useSubscribeToThread, F as useSyncStatus, ac as useThreadSubscription, ap as useThreads, ad as useUndo, aB as useUnreadInboxNotificationsCount, Z as useUnsubscribeFromThread, ae as useUpdateMyPresence, aw as useUpdateNotificationSettings, af as useUpdateRoomNotificationSettings, ag as useUpdateRoomSubscriptionSettings, aC as useUser, az as useUserThreads_experimental } from './room-DmsjrDvP.cjs';
|
|
2
2
|
export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as react from 'react';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, x as createLiveblocksContext, G as createRoomContext, I as useAddReaction, aq as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, P as useCreateComment, Q as useCreateThread, z as useDeleteAllInboxNotifications, R as useDeleteComment, A as useDeleteInboxNotification, S as useDeleteThread, T as useEditComment, V as useEditThreadMetadata, B as useErrorListener, $ as useEventListener, a0 as useHistory, ah as useHistoryVersionData, ar as useHistoryVersions, _ as useInboxNotificationThread, au as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, W as useMarkThreadAsResolved, X as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, av as useNotificationSettings, ai as useOther, aj as useOthers, ak as useOthersConnectionIds, a6 as useOthersListener, al as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom,
|
|
1
|
+
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, x as createLiveblocksContext, G as createRoomContext, I as useAddReaction, aE as useAiChatMessages, aD as useAiChats, aq as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, ax as useCreateAiChat, P as useCreateComment, Q as useCreateThread, ay as useDeleteAiChat, z as useDeleteAllInboxNotifications, R as useDeleteComment, A as useDeleteInboxNotification, S as useDeleteThread, T as useEditComment, V as useEditThreadMetadata, B as useErrorListener, $ as useEventListener, a0 as useHistory, ah as useHistoryVersionData, ar as useHistoryVersions, _ as useInboxNotificationThread, au as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, W as useMarkThreadAsResolved, X as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, av as useNotificationSettings, ai as useOther, aj as useOthers, ak as useOthersConnectionIds, a6 as useOthersListener, al as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, aA as useRoomInfo, as as useRoomNotificationSettings, at as useRoomSubscriptionSettings, am as useSelf, aa as useStatus, an as useStorage, ab as useStorageRoot, ao as useStorageStatus, Y as useSubscribeToThread, F as useSyncStatus, ac as useThreadSubscription, ap as useThreads, ad as useUndo, aB as useUnreadInboxNotificationsCount, Z as useUnsubscribeFromThread, ae as useUpdateMyPresence, aw as useUpdateNotificationSettings, af as useUpdateRoomNotificationSettings, ag as useUpdateRoomSubscriptionSettings, aC as useUser, az as useUserThreads_experimental } from './room-DmsjrDvP.js';
|
|
2
2
|
export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as react from 'react';
|
package/dist/index.js
CHANGED
|
@@ -3,13 +3,15 @@ import {
|
|
|
3
3
|
PKG_FORMAT,
|
|
4
4
|
PKG_NAME,
|
|
5
5
|
PKG_VERSION
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EDEUY3EM.js";
|
|
7
7
|
import {
|
|
8
8
|
ClientContext,
|
|
9
9
|
LiveblocksProvider,
|
|
10
10
|
RoomContext,
|
|
11
11
|
_RoomProvider,
|
|
12
12
|
_useAddReaction,
|
|
13
|
+
_useAiChatMessages,
|
|
14
|
+
_useAiChats,
|
|
13
15
|
_useBroadcastEvent,
|
|
14
16
|
_useCreateThread,
|
|
15
17
|
_useDeleteThread,
|
|
@@ -41,7 +43,9 @@ import {
|
|
|
41
43
|
useCanRedo,
|
|
42
44
|
useCanUndo,
|
|
43
45
|
useClient,
|
|
46
|
+
useCreateAiChat,
|
|
44
47
|
useCreateComment,
|
|
48
|
+
useDeleteAiChat,
|
|
45
49
|
useDeleteAllInboxNotifications,
|
|
46
50
|
useDeleteComment,
|
|
47
51
|
useDeleteInboxNotification,
|
|
@@ -72,7 +76,7 @@ import {
|
|
|
72
76
|
useUpdateNotificationSettings,
|
|
73
77
|
useUpdateRoomNotificationSettings,
|
|
74
78
|
useUpdateRoomSubscriptionSettings
|
|
75
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-E6PCFJWE.js";
|
|
76
80
|
|
|
77
81
|
// src/index.ts
|
|
78
82
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -89,14 +93,18 @@ export {
|
|
|
89
93
|
isNotificationChannelEnabled,
|
|
90
94
|
shallow,
|
|
91
95
|
_useAddReaction as useAddReaction,
|
|
96
|
+
_useAiChatMessages as useAiChatMessages,
|
|
97
|
+
_useAiChats as useAiChats,
|
|
92
98
|
useAttachmentUrl,
|
|
93
99
|
useBatch,
|
|
94
100
|
_useBroadcastEvent as useBroadcastEvent,
|
|
95
101
|
useCanRedo,
|
|
96
102
|
useCanUndo,
|
|
97
103
|
useClient,
|
|
104
|
+
useCreateAiChat,
|
|
98
105
|
useCreateComment,
|
|
99
106
|
_useCreateThread as useCreateThread,
|
|
107
|
+
useDeleteAiChat,
|
|
100
108
|
useDeleteAllInboxNotifications,
|
|
101
109
|
useDeleteComment,
|
|
102
110
|
useDeleteInboxNotification,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseStorageStatusOptions,\n UseThreadsOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n createLiveblocksContext,\n LiveblocksProvider,\n useClient,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n useUpdateRoomSubscriptionSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useStorageStatus,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomNotificationSettings,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseStorageStatusOptions,\n UseThreadsOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n createLiveblocksContext,\n LiveblocksProvider,\n useClient,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n useUpdateRoomSubscriptionSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useStorageStatus,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomNotificationSettings,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChats,\n useAiChatMessages,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,SAAS,oCAAoC;AAXtD,YAAY,UAAU,aAAa,UAAU;","names":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _liveblocks_core from '@liveblocks/core';
|
|
2
|
-
import { BaseMetadata, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, Relax, ToImmutable, PartialNotificationSettings, AsyncLoading, AsyncError, ThreadData, HistoryVersion, Client, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, OpaqueClient, 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';
|
|
2
|
+
import { BaseMetadata, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, Relax, ToImmutable, PartialNotificationSettings, AsyncLoading, AsyncError, ThreadData, HistoryVersion, AiChat, UiChatMessage, Client, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, MessageId, OpaqueClient, 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';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
import { Context, PropsWithChildren, ReactNode } from 'react';
|
|
@@ -106,6 +106,10 @@ type RoomSubscriptionSettingsAsyncResult = AsyncResult<RoomSubscriptionSettings,
|
|
|
106
106
|
type HistoryVersionDataAsyncResult = AsyncResult<Uint8Array>;
|
|
107
107
|
type HistoryVersionsAsyncSuccess = AsyncSuccess<HistoryVersion[], "versions">;
|
|
108
108
|
type HistoryVersionsAsyncResult = AsyncResult<HistoryVersion[], "versions">;
|
|
109
|
+
type AiChatsAsyncSuccess = PagedAsyncSuccess<AiChat[], "chats">;
|
|
110
|
+
type AiChatsAsyncResult = PagedAsyncResult<AiChat[], "chats">;
|
|
111
|
+
type AiChatMessagesAsyncSuccess = AsyncSuccess<readonly UiChatMessage[], "messages">;
|
|
112
|
+
type AiChatMessagesAsyncResult = AsyncResult<readonly UiChatMessage[], "messages">;
|
|
109
113
|
type RoomProviderProps<P extends JsonObject, S extends LsonObject> = Resolve<{
|
|
110
114
|
/**
|
|
111
115
|
* The id of the room you want to connect to
|
|
@@ -991,6 +995,24 @@ type LiveblocksContextBundleCommon<M extends BaseMetadata> = {
|
|
|
991
995
|
* const syncStatus = useSyncStatus({ smooth: true });
|
|
992
996
|
*/
|
|
993
997
|
useSyncStatus(options?: UseSyncStatusOptions): SyncStatus;
|
|
998
|
+
/**
|
|
999
|
+
* Returns a function that creates an AI chat.
|
|
1000
|
+
*
|
|
1001
|
+
* @example
|
|
1002
|
+
* const createAiChat = useCreateAiChat();
|
|
1003
|
+
* createAiChat({ id: "ai-chat-id" });
|
|
1004
|
+
*/
|
|
1005
|
+
useCreateAiChat(): (options: {
|
|
1006
|
+
id: string;
|
|
1007
|
+
}) => void;
|
|
1008
|
+
/**
|
|
1009
|
+
* Returns a function that deletes the AI chat with the specified id.
|
|
1010
|
+
*
|
|
1011
|
+
* @example
|
|
1012
|
+
* const deleteAiChat = useDeleteAiChat();
|
|
1013
|
+
* deleteAiChat("ai-chat-id");
|
|
1014
|
+
*/
|
|
1015
|
+
useDeleteAiChat(): (chatId: string) => void;
|
|
994
1016
|
};
|
|
995
1017
|
type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = Resolve<LiveblocksContextBundleCommon<M> & SharedContextBundle<U>["classic"] & {
|
|
996
1018
|
/**
|
|
@@ -1014,6 +1036,20 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
|
|
|
1014
1036
|
* Do not use unless explicitly recommended by the Liveblocks team.
|
|
1015
1037
|
*/
|
|
1016
1038
|
useUserThreads_experimental(options?: UseUserThreadsOptions<M>): ThreadsAsyncResult<M>;
|
|
1039
|
+
/**
|
|
1040
|
+
* (Private beta) Returns the chats for the current user.
|
|
1041
|
+
*
|
|
1042
|
+
* @example
|
|
1043
|
+
* const { chats, error, isLoading } = useAiChats();
|
|
1044
|
+
*/
|
|
1045
|
+
useAiChats(): AiChatsAsyncResult;
|
|
1046
|
+
/**
|
|
1047
|
+
* (Private beta) Returns the messages in the given chat.
|
|
1048
|
+
*
|
|
1049
|
+
* @example
|
|
1050
|
+
* const { messages, error, isLoading } = useAiChatMessages("my-chat");
|
|
1051
|
+
*/
|
|
1052
|
+
useAiChatMessages(chatId: string): AiChatMessagesAsyncResult;
|
|
1017
1053
|
suspense: Resolve<LiveblocksContextBundleCommon<M> & SharedContextBundle<U>["suspense"] & {
|
|
1018
1054
|
/**
|
|
1019
1055
|
* Returns the inbox notifications for the current user.
|
|
@@ -1046,6 +1082,20 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
|
|
|
1046
1082
|
* Do not use unless explicitly recommended by the Liveblocks team.
|
|
1047
1083
|
*/
|
|
1048
1084
|
useUserThreads_experimental(options?: UseUserThreadsOptions<M>): ThreadsAsyncSuccess<M>;
|
|
1085
|
+
/**
|
|
1086
|
+
* (Private beta) Returns the chats for the current user.
|
|
1087
|
+
*
|
|
1088
|
+
* @example
|
|
1089
|
+
* const { chats } = useAiChats();
|
|
1090
|
+
*/
|
|
1091
|
+
useAiChats(): AiChatsAsyncSuccess;
|
|
1092
|
+
/**
|
|
1093
|
+
* (Private beta) Returns the messages in the given chat.
|
|
1094
|
+
*
|
|
1095
|
+
* @example
|
|
1096
|
+
* const { messages } = useAiChatMessages("my-chat");
|
|
1097
|
+
*/
|
|
1098
|
+
useAiChatMessages(chatId: string): AiChatMessagesAsyncSuccess;
|
|
1049
1099
|
}>;
|
|
1050
1100
|
}>;
|
|
1051
1101
|
|
|
@@ -1363,6 +1413,8 @@ declare class UmbrellaStore<M extends BaseMetadata> {
|
|
|
1363
1413
|
readonly roomSubscriptionSettingsByRoomId: DefaultMap<RoomId, LoadableResource<RoomSubscriptionSettingsAsyncResult>>;
|
|
1364
1414
|
readonly versionsByRoomId: DefaultMap<RoomId, LoadableResource<HistoryVersionsAsyncResult>>;
|
|
1365
1415
|
readonly notificationSettings: LoadableResource<NotificationSettingsAsyncResult>;
|
|
1416
|
+
readonly aiChats: LoadableResource<AiChatsAsyncResult>;
|
|
1417
|
+
readonly messagesByChatId: DefaultMap<string, DefaultMap<MessageId | null, LoadableResource<AiChatMessagesAsyncResult>>>;
|
|
1366
1418
|
};
|
|
1367
1419
|
constructor(client: OpaqueClient);
|
|
1368
1420
|
/**
|
|
@@ -1454,6 +1506,10 @@ declare const ClientContext: react.Context<OpaqueClient | null>;
|
|
|
1454
1506
|
* @private
|
|
1455
1507
|
*/
|
|
1456
1508
|
declare function getUmbrellaStoreForClient<M extends BaseMetadata$1>(client: OpaqueClient): UmbrellaStore<M>;
|
|
1509
|
+
declare function useCreateAiChat(): (options: {
|
|
1510
|
+
id: string;
|
|
1511
|
+
}) => void;
|
|
1512
|
+
declare function useDeleteAiChat(): (chatId: string) => void;
|
|
1457
1513
|
/**
|
|
1458
1514
|
* @private This is an internal API.
|
|
1459
1515
|
*/
|
|
@@ -1652,6 +1708,34 @@ declare const _useUserThreads_experimental: TypedBundle$1["useUserThreads_experi
|
|
|
1652
1708
|
* The final API for that is still TBD.
|
|
1653
1709
|
*/
|
|
1654
1710
|
declare const _useUserThreadsSuspense_experimental: TypedBundle$1["suspense"]["useUserThreads_experimental"];
|
|
1711
|
+
/**
|
|
1712
|
+
* (Private beta) Returns the chats for the current user.
|
|
1713
|
+
*
|
|
1714
|
+
* @example
|
|
1715
|
+
* const { chats, error, isLoading } = useAiChats();
|
|
1716
|
+
*/
|
|
1717
|
+
declare const _useAiChats: TypedBundle$1["useAiChats"];
|
|
1718
|
+
/**
|
|
1719
|
+
* (Private beta) Returns the chats for the current user.
|
|
1720
|
+
*
|
|
1721
|
+
* @example
|
|
1722
|
+
* const { chats, error, isLoading } = useAiChats();
|
|
1723
|
+
*/
|
|
1724
|
+
declare const _useAiChatsSuspense: TypedBundle$1["suspense"]["useAiChats"];
|
|
1725
|
+
/**
|
|
1726
|
+
* (Private beta) Returns the messages in the given chat.
|
|
1727
|
+
*
|
|
1728
|
+
* @example
|
|
1729
|
+
* const { messages, error, isLoading } = useAiChatMessages("my-chat");
|
|
1730
|
+
*/
|
|
1731
|
+
declare const _useAiChatMessages: TypedBundle$1["useAiChatMessages"];
|
|
1732
|
+
/**
|
|
1733
|
+
* (Private beta) Returns the messages in the given chat.
|
|
1734
|
+
*
|
|
1735
|
+
* @example
|
|
1736
|
+
* const { messages, error, isLoading } = useAiChatMessages("my-chat");
|
|
1737
|
+
*/
|
|
1738
|
+
declare const _useAiChatMessagesSuspense: TypedBundle$1["suspense"]["useAiChatMessages"];
|
|
1655
1739
|
/**
|
|
1656
1740
|
* Returns the current Liveblocks sync status, and triggers a re-render
|
|
1657
1741
|
* whenever it changes. Can be used to render a "Saving..." indicator, or for
|
|
@@ -2453,4 +2537,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
2453
2537
|
*/
|
|
2454
2538
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
2455
2539
|
|
|
2456
|
-
export { _useEventListener as $, useDeleteInboxNotification as A, useErrorListener as B, ClientContext as C, useMarkAllInboxNotificationsAsRead as D, useMarkInboxNotificationAsRead as E, useSyncStatus as F, createRoomContext as G, _RoomProvider as H, _useAddReaction as I, useBatch as J, _useBroadcastEvent as K, LiveblocksProvider as L, type MutationContext as M, useCanRedo as N, useCanUndo as O, useCreateComment as P, _useCreateThread as Q, useDeleteComment as R, _useDeleteThread as S, useEditComment as T, type UseStorageStatusOptions as U, _useEditThreadMetadata as V, useMarkThreadAsResolved as W, useMarkThreadAsUnresolved as X, useSubscribeToThread as Y, useUnsubscribeFromThread as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, useHistory as a0, _useIsInsideRoom as a1, useLostConnectionListener as a2, useMarkThreadAsRead as a3, _useMutation as a4, _useMyPresence as a5, _useOthersListener as a6, useRedo as a7, useRemoveReaction as a8, _useRoom as a9,
|
|
2540
|
+
export { _useEventListener as $, useDeleteInboxNotification as A, useErrorListener as B, ClientContext as C, useMarkAllInboxNotificationsAsRead as D, useMarkInboxNotificationAsRead as E, useSyncStatus as F, createRoomContext as G, _RoomProvider as H, _useAddReaction as I, useBatch as J, _useBroadcastEvent as K, LiveblocksProvider as L, type MutationContext as M, useCanRedo as N, useCanUndo as O, useCreateComment as P, _useCreateThread as Q, useDeleteComment as R, _useDeleteThread as S, useEditComment as T, type UseStorageStatusOptions as U, _useEditThreadMetadata as V, useMarkThreadAsResolved as W, useMarkThreadAsUnresolved as X, useSubscribeToThread as Y, useUnsubscribeFromThread as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, useHistory as a0, _useIsInsideRoom as a1, useLostConnectionListener as a2, useMarkThreadAsRead as a3, _useMutation as a4, _useMyPresence as a5, _useOthersListener as a6, useRedo as a7, useRemoveReaction as a8, _useRoom as a9, useRoomInfo as aA, useUnreadInboxNotificationsCount as aB, _useUser as aC, _useAiChats as aD, _useAiChatMessages as aE, _useOtherSuspense as aF, _useOthersSuspense as aG, useOthersConnectionIdsSuspense as aH, _useOthersMappedSuspense as aI, _useSelfSuspense as aJ, _useStorageSuspense as aK, useStorageStatusSuspense as aL, _useThreadsSuspense as aM, useAttachmentUrlSuspense as aN, _useHistoryVersionsSuspense as aO, _useRoomNotificationSettingsSuspense as aP, _useRoomSubscriptionSettingsSuspense as aQ, useInboxNotificationsSuspense as aR, useNotificationSettingsSuspense as aS, useRoomInfoSuspense as aT, useUnreadInboxNotificationsCountSuspense as aU, _useUserSuspense as aV, _useUserThreadsSuspense_experimental as aW, _useAiChatsSuspense as aX, _useAiChatMessagesSuspense as aY, useStatus as aa, _useStorageRoot as ab, useThreadSubscription as ac, useUndo as ad, _useUpdateMyPresence as ae, useUpdateRoomNotificationSettings as af, useUpdateRoomSubscriptionSettings as ag, useHistoryVersionData as ah, _useOther as ai, _useOthers as aj, useOthersConnectionIds as ak, _useOthersMapped as al, _useSelf as am, _useStorage as an, useStorageStatus as ao, _useThreads as ap, useAttachmentUrl as aq, _useHistoryVersions as ar, _useRoomNotificationSettings as as, _useRoomSubscriptionSettings as at, useInboxNotifications as au, useNotificationSettings as av, useUpdateNotificationSettings as aw, useCreateAiChat as ax, useDeleteAiChat as ay, _useUserThreads_experimental as az, useCreateRoomComment as b, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useMarkRoomThreadAsRead as k, useMarkRoomThreadAsResolved as l, useMarkRoomThreadAsUnresolved as m, useMentionSuggestionsCache as n, useRemoveRoomCommentReaction as o, useReportTextEditor as p, useResolveMentionSuggestions as q, useRoomAttachmentUrl as r, useRoomPermissions as s, useRoomThreadSubscription as t, useClientOrNull as u, useYjsProvider as v, type UseThreadsOptions as w, createLiveblocksContext as x, useClient as y, useDeleteAllInboxNotifications as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _liveblocks_core from '@liveblocks/core';
|
|
2
|
-
import { BaseMetadata, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, Relax, ToImmutable, PartialNotificationSettings, AsyncLoading, AsyncError, ThreadData, HistoryVersion, Client, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, OpaqueClient, 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';
|
|
2
|
+
import { BaseMetadata, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, Relax, ToImmutable, PartialNotificationSettings, AsyncLoading, AsyncError, ThreadData, HistoryVersion, AiChat, UiChatMessage, Client, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, MessageId, OpaqueClient, 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';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
import { Context, PropsWithChildren, ReactNode } from 'react';
|
|
@@ -106,6 +106,10 @@ type RoomSubscriptionSettingsAsyncResult = AsyncResult<RoomSubscriptionSettings,
|
|
|
106
106
|
type HistoryVersionDataAsyncResult = AsyncResult<Uint8Array>;
|
|
107
107
|
type HistoryVersionsAsyncSuccess = AsyncSuccess<HistoryVersion[], "versions">;
|
|
108
108
|
type HistoryVersionsAsyncResult = AsyncResult<HistoryVersion[], "versions">;
|
|
109
|
+
type AiChatsAsyncSuccess = PagedAsyncSuccess<AiChat[], "chats">;
|
|
110
|
+
type AiChatsAsyncResult = PagedAsyncResult<AiChat[], "chats">;
|
|
111
|
+
type AiChatMessagesAsyncSuccess = AsyncSuccess<readonly UiChatMessage[], "messages">;
|
|
112
|
+
type AiChatMessagesAsyncResult = AsyncResult<readonly UiChatMessage[], "messages">;
|
|
109
113
|
type RoomProviderProps<P extends JsonObject, S extends LsonObject> = Resolve<{
|
|
110
114
|
/**
|
|
111
115
|
* The id of the room you want to connect to
|
|
@@ -991,6 +995,24 @@ type LiveblocksContextBundleCommon<M extends BaseMetadata> = {
|
|
|
991
995
|
* const syncStatus = useSyncStatus({ smooth: true });
|
|
992
996
|
*/
|
|
993
997
|
useSyncStatus(options?: UseSyncStatusOptions): SyncStatus;
|
|
998
|
+
/**
|
|
999
|
+
* Returns a function that creates an AI chat.
|
|
1000
|
+
*
|
|
1001
|
+
* @example
|
|
1002
|
+
* const createAiChat = useCreateAiChat();
|
|
1003
|
+
* createAiChat({ id: "ai-chat-id" });
|
|
1004
|
+
*/
|
|
1005
|
+
useCreateAiChat(): (options: {
|
|
1006
|
+
id: string;
|
|
1007
|
+
}) => void;
|
|
1008
|
+
/**
|
|
1009
|
+
* Returns a function that deletes the AI chat with the specified id.
|
|
1010
|
+
*
|
|
1011
|
+
* @example
|
|
1012
|
+
* const deleteAiChat = useDeleteAiChat();
|
|
1013
|
+
* deleteAiChat("ai-chat-id");
|
|
1014
|
+
*/
|
|
1015
|
+
useDeleteAiChat(): (chatId: string) => void;
|
|
994
1016
|
};
|
|
995
1017
|
type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = Resolve<LiveblocksContextBundleCommon<M> & SharedContextBundle<U>["classic"] & {
|
|
996
1018
|
/**
|
|
@@ -1014,6 +1036,20 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
|
|
|
1014
1036
|
* Do not use unless explicitly recommended by the Liveblocks team.
|
|
1015
1037
|
*/
|
|
1016
1038
|
useUserThreads_experimental(options?: UseUserThreadsOptions<M>): ThreadsAsyncResult<M>;
|
|
1039
|
+
/**
|
|
1040
|
+
* (Private beta) Returns the chats for the current user.
|
|
1041
|
+
*
|
|
1042
|
+
* @example
|
|
1043
|
+
* const { chats, error, isLoading } = useAiChats();
|
|
1044
|
+
*/
|
|
1045
|
+
useAiChats(): AiChatsAsyncResult;
|
|
1046
|
+
/**
|
|
1047
|
+
* (Private beta) Returns the messages in the given chat.
|
|
1048
|
+
*
|
|
1049
|
+
* @example
|
|
1050
|
+
* const { messages, error, isLoading } = useAiChatMessages("my-chat");
|
|
1051
|
+
*/
|
|
1052
|
+
useAiChatMessages(chatId: string): AiChatMessagesAsyncResult;
|
|
1017
1053
|
suspense: Resolve<LiveblocksContextBundleCommon<M> & SharedContextBundle<U>["suspense"] & {
|
|
1018
1054
|
/**
|
|
1019
1055
|
* Returns the inbox notifications for the current user.
|
|
@@ -1046,6 +1082,20 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
|
|
|
1046
1082
|
* Do not use unless explicitly recommended by the Liveblocks team.
|
|
1047
1083
|
*/
|
|
1048
1084
|
useUserThreads_experimental(options?: UseUserThreadsOptions<M>): ThreadsAsyncSuccess<M>;
|
|
1085
|
+
/**
|
|
1086
|
+
* (Private beta) Returns the chats for the current user.
|
|
1087
|
+
*
|
|
1088
|
+
* @example
|
|
1089
|
+
* const { chats } = useAiChats();
|
|
1090
|
+
*/
|
|
1091
|
+
useAiChats(): AiChatsAsyncSuccess;
|
|
1092
|
+
/**
|
|
1093
|
+
* (Private beta) Returns the messages in the given chat.
|
|
1094
|
+
*
|
|
1095
|
+
* @example
|
|
1096
|
+
* const { messages } = useAiChatMessages("my-chat");
|
|
1097
|
+
*/
|
|
1098
|
+
useAiChatMessages(chatId: string): AiChatMessagesAsyncSuccess;
|
|
1049
1099
|
}>;
|
|
1050
1100
|
}>;
|
|
1051
1101
|
|
|
@@ -1363,6 +1413,8 @@ declare class UmbrellaStore<M extends BaseMetadata> {
|
|
|
1363
1413
|
readonly roomSubscriptionSettingsByRoomId: DefaultMap<RoomId, LoadableResource<RoomSubscriptionSettingsAsyncResult>>;
|
|
1364
1414
|
readonly versionsByRoomId: DefaultMap<RoomId, LoadableResource<HistoryVersionsAsyncResult>>;
|
|
1365
1415
|
readonly notificationSettings: LoadableResource<NotificationSettingsAsyncResult>;
|
|
1416
|
+
readonly aiChats: LoadableResource<AiChatsAsyncResult>;
|
|
1417
|
+
readonly messagesByChatId: DefaultMap<string, DefaultMap<MessageId | null, LoadableResource<AiChatMessagesAsyncResult>>>;
|
|
1366
1418
|
};
|
|
1367
1419
|
constructor(client: OpaqueClient);
|
|
1368
1420
|
/**
|
|
@@ -1454,6 +1506,10 @@ declare const ClientContext: react.Context<OpaqueClient | null>;
|
|
|
1454
1506
|
* @private
|
|
1455
1507
|
*/
|
|
1456
1508
|
declare function getUmbrellaStoreForClient<M extends BaseMetadata$1>(client: OpaqueClient): UmbrellaStore<M>;
|
|
1509
|
+
declare function useCreateAiChat(): (options: {
|
|
1510
|
+
id: string;
|
|
1511
|
+
}) => void;
|
|
1512
|
+
declare function useDeleteAiChat(): (chatId: string) => void;
|
|
1457
1513
|
/**
|
|
1458
1514
|
* @private This is an internal API.
|
|
1459
1515
|
*/
|
|
@@ -1652,6 +1708,34 @@ declare const _useUserThreads_experimental: TypedBundle$1["useUserThreads_experi
|
|
|
1652
1708
|
* The final API for that is still TBD.
|
|
1653
1709
|
*/
|
|
1654
1710
|
declare const _useUserThreadsSuspense_experimental: TypedBundle$1["suspense"]["useUserThreads_experimental"];
|
|
1711
|
+
/**
|
|
1712
|
+
* (Private beta) Returns the chats for the current user.
|
|
1713
|
+
*
|
|
1714
|
+
* @example
|
|
1715
|
+
* const { chats, error, isLoading } = useAiChats();
|
|
1716
|
+
*/
|
|
1717
|
+
declare const _useAiChats: TypedBundle$1["useAiChats"];
|
|
1718
|
+
/**
|
|
1719
|
+
* (Private beta) Returns the chats for the current user.
|
|
1720
|
+
*
|
|
1721
|
+
* @example
|
|
1722
|
+
* const { chats, error, isLoading } = useAiChats();
|
|
1723
|
+
*/
|
|
1724
|
+
declare const _useAiChatsSuspense: TypedBundle$1["suspense"]["useAiChats"];
|
|
1725
|
+
/**
|
|
1726
|
+
* (Private beta) Returns the messages in the given chat.
|
|
1727
|
+
*
|
|
1728
|
+
* @example
|
|
1729
|
+
* const { messages, error, isLoading } = useAiChatMessages("my-chat");
|
|
1730
|
+
*/
|
|
1731
|
+
declare const _useAiChatMessages: TypedBundle$1["useAiChatMessages"];
|
|
1732
|
+
/**
|
|
1733
|
+
* (Private beta) Returns the messages in the given chat.
|
|
1734
|
+
*
|
|
1735
|
+
* @example
|
|
1736
|
+
* const { messages, error, isLoading } = useAiChatMessages("my-chat");
|
|
1737
|
+
*/
|
|
1738
|
+
declare const _useAiChatMessagesSuspense: TypedBundle$1["suspense"]["useAiChatMessages"];
|
|
1655
1739
|
/**
|
|
1656
1740
|
* Returns the current Liveblocks sync status, and triggers a re-render
|
|
1657
1741
|
* whenever it changes. Can be used to render a "Saving..." indicator, or for
|
|
@@ -2453,4 +2537,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
2453
2537
|
*/
|
|
2454
2538
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
2455
2539
|
|
|
2456
|
-
export { _useEventListener as $, useDeleteInboxNotification as A, useErrorListener as B, ClientContext as C, useMarkAllInboxNotificationsAsRead as D, useMarkInboxNotificationAsRead as E, useSyncStatus as F, createRoomContext as G, _RoomProvider as H, _useAddReaction as I, useBatch as J, _useBroadcastEvent as K, LiveblocksProvider as L, type MutationContext as M, useCanRedo as N, useCanUndo as O, useCreateComment as P, _useCreateThread as Q, useDeleteComment as R, _useDeleteThread as S, useEditComment as T, type UseStorageStatusOptions as U, _useEditThreadMetadata as V, useMarkThreadAsResolved as W, useMarkThreadAsUnresolved as X, useSubscribeToThread as Y, useUnsubscribeFromThread as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, useHistory as a0, _useIsInsideRoom as a1, useLostConnectionListener as a2, useMarkThreadAsRead as a3, _useMutation as a4, _useMyPresence as a5, _useOthersListener as a6, useRedo as a7, useRemoveReaction as a8, _useRoom as a9,
|
|
2540
|
+
export { _useEventListener as $, useDeleteInboxNotification as A, useErrorListener as B, ClientContext as C, useMarkAllInboxNotificationsAsRead as D, useMarkInboxNotificationAsRead as E, useSyncStatus as F, createRoomContext as G, _RoomProvider as H, _useAddReaction as I, useBatch as J, _useBroadcastEvent as K, LiveblocksProvider as L, type MutationContext as M, useCanRedo as N, useCanUndo as O, useCreateComment as P, _useCreateThread as Q, useDeleteComment as R, _useDeleteThread as S, useEditComment as T, type UseStorageStatusOptions as U, _useEditThreadMetadata as V, useMarkThreadAsResolved as W, useMarkThreadAsUnresolved as X, useSubscribeToThread as Y, useUnsubscribeFromThread as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, useHistory as a0, _useIsInsideRoom as a1, useLostConnectionListener as a2, useMarkThreadAsRead as a3, _useMutation as a4, _useMyPresence as a5, _useOthersListener as a6, useRedo as a7, useRemoveReaction as a8, _useRoom as a9, useRoomInfo as aA, useUnreadInboxNotificationsCount as aB, _useUser as aC, _useAiChats as aD, _useAiChatMessages as aE, _useOtherSuspense as aF, _useOthersSuspense as aG, useOthersConnectionIdsSuspense as aH, _useOthersMappedSuspense as aI, _useSelfSuspense as aJ, _useStorageSuspense as aK, useStorageStatusSuspense as aL, _useThreadsSuspense as aM, useAttachmentUrlSuspense as aN, _useHistoryVersionsSuspense as aO, _useRoomNotificationSettingsSuspense as aP, _useRoomSubscriptionSettingsSuspense as aQ, useInboxNotificationsSuspense as aR, useNotificationSettingsSuspense as aS, useRoomInfoSuspense as aT, useUnreadInboxNotificationsCountSuspense as aU, _useUserSuspense as aV, _useUserThreadsSuspense_experimental as aW, _useAiChatsSuspense as aX, _useAiChatMessagesSuspense as aY, useStatus as aa, _useStorageRoot as ab, useThreadSubscription as ac, useUndo as ad, _useUpdateMyPresence as ae, useUpdateRoomNotificationSettings as af, useUpdateRoomSubscriptionSettings as ag, useHistoryVersionData as ah, _useOther as ai, _useOthers as aj, useOthersConnectionIds as ak, _useOthersMapped as al, _useSelf as am, _useStorage as an, useStorageStatus as ao, _useThreads as ap, useAttachmentUrl as aq, _useHistoryVersions as ar, _useRoomNotificationSettings as as, _useRoomSubscriptionSettings as at, useInboxNotifications as au, useNotificationSettings as av, useUpdateNotificationSettings as aw, useCreateAiChat as ax, useDeleteAiChat as ay, _useUserThreads_experimental as az, useCreateRoomComment as b, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useMarkRoomThreadAsRead as k, useMarkRoomThreadAsResolved as l, useMarkRoomThreadAsUnresolved as m, useMentionSuggestionsCache as n, useRemoveRoomCommentReaction as o, useReportTextEditor as p, useResolveMentionSuggestions as q, useRoomAttachmentUrl as r, useRoomPermissions as s, useRoomThreadSubscription as t, useClientOrNull as u, useYjsProvider as v, type UseThreadsOptions as w, createLiveblocksContext as x, useClient as y, useDeleteAllInboxNotifications as z };
|
package/dist/suspense.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkGSA4MPRGcjs = require('./chunk-GSA4MPRG.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -69,12 +69,20 @@ var _chunk2C72TPGIcjs = require('./chunk-2C72TPGI.cjs');
|
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
var _chunkZGVKI7OMcjs = require('./chunk-ZGVKI7OM.cjs');
|
|
73
77
|
|
|
74
78
|
// src/suspense.ts
|
|
75
79
|
var _core = require('@liveblocks/core');
|
|
76
80
|
var _client = require('@liveblocks/client');
|
|
77
|
-
_core.detectDupes.call(void 0,
|
|
81
|
+
_core.detectDupes.call(void 0, _chunkGSA4MPRGcjs.PKG_NAME, _chunkGSA4MPRGcjs.PKG_VERSION, _chunkGSA4MPRGcjs.PKG_FORMAT);
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
78
86
|
|
|
79
87
|
|
|
80
88
|
|
|
@@ -143,5 +151,5 @@ _core.detectDupes.call(void 0, _chunk2C72TPGIcjs.PKG_NAME, _chunk2C72TPGIcjs.PKG
|
|
|
143
151
|
|
|
144
152
|
|
|
145
153
|
|
|
146
|
-
exports.ClientContext =
|
|
154
|
+
exports.ClientContext = _chunkZGVKI7OMcjs.ClientContext; exports.ClientSideSuspense = _chunkGSA4MPRGcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkZGVKI7OMcjs.LiveblocksProvider; exports.RoomContext = _chunkZGVKI7OMcjs.RoomContext; exports.RoomProvider = _chunkZGVKI7OMcjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkZGVKI7OMcjs._useAddReaction; exports.useAiChatMessages = _chunkZGVKI7OMcjs._useAiChatMessagesSuspense; exports.useAiChats = _chunkZGVKI7OMcjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunkZGVKI7OMcjs.useAttachmentUrlSuspense; exports.useBatch = _chunkZGVKI7OMcjs.useBatch; exports.useBroadcastEvent = _chunkZGVKI7OMcjs._useBroadcastEvent; exports.useCanRedo = _chunkZGVKI7OMcjs.useCanRedo; exports.useCanUndo = _chunkZGVKI7OMcjs.useCanUndo; exports.useClient = _chunkZGVKI7OMcjs.useClient; exports.useCreateAiChat = _chunkZGVKI7OMcjs.useCreateAiChat; exports.useCreateComment = _chunkZGVKI7OMcjs.useCreateComment; exports.useCreateThread = _chunkZGVKI7OMcjs._useCreateThread; exports.useDeleteAiChat = _chunkZGVKI7OMcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkZGVKI7OMcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkZGVKI7OMcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkZGVKI7OMcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkZGVKI7OMcjs._useDeleteThread; exports.useEditComment = _chunkZGVKI7OMcjs.useEditComment; exports.useEditThreadMetadata = _chunkZGVKI7OMcjs._useEditThreadMetadata; exports.useErrorListener = _chunkZGVKI7OMcjs.useErrorListener; exports.useEventListener = _chunkZGVKI7OMcjs._useEventListener; exports.useHistory = _chunkZGVKI7OMcjs.useHistory; exports.useHistoryVersions = _chunkZGVKI7OMcjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkZGVKI7OMcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkZGVKI7OMcjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkZGVKI7OMcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkZGVKI7OMcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkZGVKI7OMcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkZGVKI7OMcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkZGVKI7OMcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkZGVKI7OMcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkZGVKI7OMcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkZGVKI7OMcjs._useMutation; exports.useMyPresence = _chunkZGVKI7OMcjs._useMyPresence; exports.useNotificationSettings = _chunkZGVKI7OMcjs.useNotificationSettingsSuspense; exports.useOther = _chunkZGVKI7OMcjs._useOtherSuspense; exports.useOthers = _chunkZGVKI7OMcjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkZGVKI7OMcjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkZGVKI7OMcjs._useOthersListener; exports.useOthersMapped = _chunkZGVKI7OMcjs._useOthersMappedSuspense; exports.useRedo = _chunkZGVKI7OMcjs.useRedo; exports.useRemoveReaction = _chunkZGVKI7OMcjs.useRemoveReaction; exports.useRoom = _chunkZGVKI7OMcjs._useRoom; exports.useRoomInfo = _chunkZGVKI7OMcjs.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunkZGVKI7OMcjs._useRoomNotificationSettingsSuspense; exports.useRoomSubscriptionSettings = _chunkZGVKI7OMcjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunkZGVKI7OMcjs._useSelfSuspense; exports.useStatus = _chunkZGVKI7OMcjs.useStatus; exports.useStorage = _chunkZGVKI7OMcjs._useStorageSuspense; exports.useStorageRoot = _chunkZGVKI7OMcjs._useStorageRoot; exports.useStorageStatus = _chunkZGVKI7OMcjs.useStorageStatusSuspense; exports.useSubscribeToThread = _chunkZGVKI7OMcjs.useSubscribeToThread; exports.useSyncStatus = _chunkZGVKI7OMcjs.useSyncStatus; exports.useThreadSubscription = _chunkZGVKI7OMcjs.useThreadSubscription; exports.useThreads = _chunkZGVKI7OMcjs._useThreadsSuspense; exports.useUndo = _chunkZGVKI7OMcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkZGVKI7OMcjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunkZGVKI7OMcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkZGVKI7OMcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkZGVKI7OMcjs.useUpdateNotificationSettings; exports.useUpdateRoomNotificationSettings = _chunkZGVKI7OMcjs.useUpdateRoomNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkZGVKI7OMcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunkZGVKI7OMcjs._useUserSuspense; exports.useUserThreads_experimental = _chunkZGVKI7OMcjs._useUserThreadsSuspense_experimental;
|
|
147
155
|
//# 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;AACF,wDAA6B;AAC7B;AACA;
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.cjs","../src/suspense.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;AC5EA,wCAA4B;AAc5B,4CAAsD;AAXtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;AD6E7C;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,gtJAAC","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 {\n ClientContext,\n LiveblocksProvider,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSyncStatus,\n useErrorListener,\n} from \"./liveblocks\";\nexport {\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useSubscribeToThread,\n useUnsubscribeFromThread,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n useUpdateRoomSubscriptionSettings,\n} from \"./room\";\n\n// Export the Suspense versions of our hooks\n// (This part differs from src/index.ts)\nexport {\n useOtherSuspense as useOther,\n useOthersSuspense as useOthers,\n useOthersConnectionIdsSuspense as useOthersConnectionIds,\n useOthersMappedSuspense as useOthersMapped,\n useSelfSuspense as useSelf,\n useStorageSuspense as useStorage,\n useStorageStatusSuspense as useStorageStatus,\n useThreadsSuspense as useThreads,\n useAttachmentUrlSuspense as useAttachmentUrl,\n useHistoryVersionsSuspense as useHistoryVersions,\n useRoomNotificationSettingsSuspense as useRoomNotificationSettings,\n useRoomSubscriptionSettingsSuspense as useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useNotificationSettingsSuspense as useNotificationSettings,\n useRoomInfoSuspense as useRoomInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n useAiChatsSuspense as useAiChats,\n useAiChatMessagesSuspense as useAiChatMessages,\n} from \"./liveblocks\";\n"]}
|
package/dist/suspense.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ClientSideSuspense, RoomContext } from './index.cjs';
|
|
2
|
-
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, I as useAddReaction,
|
|
2
|
+
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, I as useAddReaction, aY as useAiChatMessages, aX as useAiChats, aN as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, ax as useCreateAiChat, P as useCreateComment, Q as useCreateThread, ay as useDeleteAiChat, z as useDeleteAllInboxNotifications, R as useDeleteComment, A as useDeleteInboxNotification, S as useDeleteThread, T as useEditComment, V as useEditThreadMetadata, B as useErrorListener, $ as useEventListener, a0 as useHistory, aO as useHistoryVersions, _ as useInboxNotificationThread, aR as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, W as useMarkThreadAsResolved, X as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, aS as useNotificationSettings, aF as useOther, aG as useOthers, aH as useOthersConnectionIds, a6 as useOthersListener, aI as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, aT as useRoomInfo, aP as useRoomNotificationSettings, aQ as useRoomSubscriptionSettings, aJ as useSelf, aa as useStatus, aK as useStorage, ab as useStorageRoot, aL as useStorageStatus, Y as useSubscribeToThread, F as useSyncStatus, ac as useThreadSubscription, aM as useThreads, ad as useUndo, aU as useUnreadInboxNotificationsCount, Z as useUnsubscribeFromThread, ae as useUpdateMyPresence, aw as useUpdateNotificationSettings, af as useUpdateRoomNotificationSettings, ag as useUpdateRoomSubscriptionSettings, aV as useUser, aW as useUserThreads_experimental } from './room-DmsjrDvP.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, RoomContext } from './index.js';
|
|
2
|
-
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, I as useAddReaction,
|
|
2
|
+
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, I as useAddReaction, aY as useAiChatMessages, aX as useAiChats, aN as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, ax as useCreateAiChat, P as useCreateComment, Q as useCreateThread, ay as useDeleteAiChat, z as useDeleteAllInboxNotifications, R as useDeleteComment, A as useDeleteInboxNotification, S as useDeleteThread, T as useEditComment, V as useEditThreadMetadata, B as useErrorListener, $ as useEventListener, a0 as useHistory, aO as useHistoryVersions, _ as useInboxNotificationThread, aR as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, W as useMarkThreadAsResolved, X as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, aS as useNotificationSettings, aF as useOther, aG as useOthers, aH as useOthersConnectionIds, a6 as useOthersListener, aI as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, aT as useRoomInfo, aP as useRoomNotificationSettings, aQ as useRoomSubscriptionSettings, aJ as useSelf, aa as useStatus, aK as useStorage, ab as useStorageRoot, aL as useStorageStatus, Y as useSubscribeToThread, F as useSyncStatus, ac as useThreadSubscription, aM as useThreads, ad as useUndo, aU as useUnreadInboxNotificationsCount, Z as useUnsubscribeFromThread, ae as useUpdateMyPresence, aw as useUpdateNotificationSettings, af as useUpdateRoomNotificationSettings, ag as useUpdateRoomSubscriptionSettings, aV as useUser, aW as useUserThreads_experimental } from './room-DmsjrDvP.js';
|
|
3
3
|
export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react';
|