@liveblocks/react 3.6.2 → 3.7.0
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 +46 -8
- package/dist/_private.cjs.map +1 -1
- package/dist/_private.d.cts +8 -7
- package/dist/_private.d.ts +8 -7
- package/dist/_private.js +45 -7
- package/dist/_private.js.map +1 -1
- package/dist/{chunk-GQPV5XSP.js → chunk-KYXF6473.js} +2 -2
- package/dist/{chunk-TCOWBBRU.cjs → chunk-OXA6JGB4.cjs} +2 -2
- package/dist/{chunk-TCOWBBRU.cjs.map → chunk-OXA6JGB4.cjs.map} +1 -1
- package/dist/{chunk-EEINMYNI.cjs → chunk-W2H56LB3.cjs} +199 -108
- package/dist/chunk-W2H56LB3.cjs.map +1 -0
- package/dist/{chunk-I2UW4JM4.js → chunk-WGUV4Z4E.js} +171 -80
- package/dist/chunk-WGUV4Z4E.js.map +1 -0
- package/dist/index.cjs +6 -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 +4 -2
- package/dist/index.js.map +1 -1
- package/dist/{room-BE4TZf40.d.cts → room-mUz5TTmo.d.cts} +59 -13
- package/dist/{room-BE4TZf40.d.ts → room-mUz5TTmo.d.ts} +59 -13
- package/dist/suspense.cjs +6 -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 +4 -2
- package/dist/suspense.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-EEINMYNI.cjs.map +0 -1
- package/dist/chunk-I2UW4JM4.js.map +0 -1
- /package/dist/{chunk-GQPV5XSP.js.map → chunk-KYXF6473.js.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkOXA6JGB4cjs = require('./chunk-OXA6JGB4.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -76,12 +76,14 @@ var _chunkTCOWBBRUcjs = require('./chunk-TCOWBBRU.cjs');
|
|
|
76
76
|
|
|
77
77
|
|
|
78
78
|
|
|
79
|
-
|
|
79
|
+
|
|
80
|
+
var _chunkW2H56LB3cjs = require('./chunk-W2H56LB3.cjs');
|
|
80
81
|
|
|
81
82
|
// src/index.ts
|
|
82
83
|
var _core = require('@liveblocks/core');
|
|
83
84
|
var _client = require('@liveblocks/client');
|
|
84
|
-
_core.detectDupes.call(void 0,
|
|
85
|
+
_core.detectDupes.call(void 0, _chunkOXA6JGB4cjs.PKG_NAME, _chunkOXA6JGB4cjs.PKG_VERSION, _chunkOXA6JGB4cjs.PKG_FORMAT);
|
|
86
|
+
|
|
85
87
|
|
|
86
88
|
|
|
87
89
|
|
|
@@ -157,5 +159,5 @@ _core.detectDupes.call(void 0, _chunkTCOWBBRUcjs.PKG_NAME, _chunkTCOWBBRUcjs.PKG
|
|
|
157
159
|
|
|
158
160
|
|
|
159
161
|
|
|
160
|
-
exports.ClientContext =
|
|
162
|
+
exports.ClientContext = _chunkW2H56LB3cjs.ClientContext; exports.ClientSideSuspense = _chunkOXA6JGB4cjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkW2H56LB3cjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkW2H56LB3cjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkW2H56LB3cjs.RegisterAiTool; exports.RoomContext = _chunkW2H56LB3cjs.RoomContext; exports.RoomProvider = _chunkW2H56LB3cjs._RoomProvider; exports.createLiveblocksContext = _chunkW2H56LB3cjs.createLiveblocksContext; exports.createRoomContext = _chunkW2H56LB3cjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkW2H56LB3cjs._useAddReaction; exports.useAiChat = _chunkW2H56LB3cjs._useAiChat; exports.useAiChatMessages = _chunkW2H56LB3cjs._useAiChatMessages; exports.useAiChats = _chunkW2H56LB3cjs._useAiChats; exports.useAttachmentUrl = _chunkW2H56LB3cjs.useAttachmentUrl; exports.useBroadcastEvent = _chunkW2H56LB3cjs._useBroadcastEvent; exports.useCanRedo = _chunkW2H56LB3cjs.useCanRedo; exports.useCanUndo = _chunkW2H56LB3cjs.useCanUndo; exports.useClient = _chunkW2H56LB3cjs.useClient; exports.useCreateAiChat = _chunkW2H56LB3cjs.useCreateAiChat; exports.useCreateComment = _chunkW2H56LB3cjs.useCreateComment; exports.useCreateThread = _chunkW2H56LB3cjs._useCreateThread; exports.useDeleteAiChat = _chunkW2H56LB3cjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkW2H56LB3cjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkW2H56LB3cjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkW2H56LB3cjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkW2H56LB3cjs._useDeleteThread; exports.useEditComment = _chunkW2H56LB3cjs.useEditComment; exports.useEditThreadMetadata = _chunkW2H56LB3cjs._useEditThreadMetadata; exports.useErrorListener = _chunkW2H56LB3cjs.useErrorListener; exports.useEventListener = _chunkW2H56LB3cjs._useEventListener; exports.useGroupInfo = _chunkW2H56LB3cjs.useGroupInfo; exports.useHistory = _chunkW2H56LB3cjs.useHistory; exports.useHistoryVersionData = _chunkW2H56LB3cjs.useHistoryVersionData; exports.useHistoryVersions = _chunkW2H56LB3cjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkW2H56LB3cjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkW2H56LB3cjs.useInboxNotifications; exports.useIsInsideRoom = _chunkW2H56LB3cjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkW2H56LB3cjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkW2H56LB3cjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkW2H56LB3cjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkW2H56LB3cjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkW2H56LB3cjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkW2H56LB3cjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkW2H56LB3cjs._useMutation; exports.useMyPresence = _chunkW2H56LB3cjs._useMyPresence; exports.useNotificationSettings = _chunkW2H56LB3cjs.useNotificationSettings; exports.useOther = _chunkW2H56LB3cjs._useOther; exports.useOthers = _chunkW2H56LB3cjs._useOthers; exports.useOthersConnectionIds = _chunkW2H56LB3cjs.useOthersConnectionIds; exports.useOthersListener = _chunkW2H56LB3cjs._useOthersListener; exports.useOthersMapped = _chunkW2H56LB3cjs._useOthersMapped; exports.useRedo = _chunkW2H56LB3cjs.useRedo; exports.useRemoveReaction = _chunkW2H56LB3cjs.useRemoveReaction; exports.useRoom = _chunkW2H56LB3cjs._useRoom; exports.useRoomInfo = _chunkW2H56LB3cjs.useRoomInfo; exports.useRoomSubscriptionSettings = _chunkW2H56LB3cjs._useRoomSubscriptionSettings; exports.useSelf = _chunkW2H56LB3cjs._useSelf; exports.useSendAiMessage = _chunkW2H56LB3cjs.useSendAiMessage; exports.useStatus = _chunkW2H56LB3cjs.useStatus; exports.useStorage = _chunkW2H56LB3cjs._useStorage; exports.useStorageRoot = _chunkW2H56LB3cjs._useStorageRoot; exports.useSubscribeToThread = _chunkW2H56LB3cjs.useSubscribeToThread; exports.useSyncStatus = _chunkW2H56LB3cjs.useSyncStatus; exports.useThreadSubscription = _chunkW2H56LB3cjs.useThreadSubscription; exports.useThreads = _chunkW2H56LB3cjs._useThreads; exports.useUndo = _chunkW2H56LB3cjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkW2H56LB3cjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunkW2H56LB3cjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkW2H56LB3cjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkW2H56LB3cjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkW2H56LB3cjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunkW2H56LB3cjs._useUser; exports.useUserThreads_experimental = _chunkW2H56LB3cjs._useUserThreads_experimental;
|
|
161
163
|
//# 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;AACF,wDAA6B;AAC7B;AACA;
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","../src/index.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;AChFA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADiF7C;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,0wJAAC","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 { RegisterAiKnowledgeProps, RegisterAiToolProps } from \"./types/ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n 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} 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 { C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext,
|
|
1
|
+
import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-mUz5TTmo.cjs';
|
|
2
|
+
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, K as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, A as createLiveblocksContext, J as createRoomContext, N as useAddReaction, aG as useAiChat, aI as useAiChatMessages, aH as useAiChats, as as useAttachmentUrl, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, ay as useCreateAiChat, T as useCreateComment, V as useCreateThread, az as useDeleteAiChat, B as useDeleteAllInboxNotifications, W as useDeleteComment, D as useDeleteInboxNotification, X as useDeleteThread, Y as useEditComment, Z as useEditThreadMetadata, E as useErrorListener, a3 as useEventListener, aD as useGroupInfo, a4 as useHistory, ak as useHistoryVersionData, at as useHistoryVersions, _ as useInboxNotificationThread, av as useInboxNotifications, a5 as useIsInsideRoom, a6 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, H as useMarkInboxNotificationAsRead, a7 as useMarkThreadAsRead, $ as useMarkThreadAsResolved, a0 as useMarkThreadAsUnresolved, a8 as useMutation, a9 as useMyPresence, aw as useNotificationSettings, al as useOther, am as useOthers, an as useOthersConnectionIds, aa as useOthersListener, ao as useOthersMapped, ab as useRedo, ac as useRemoveReaction, ad as useRoom, aC as useRoomInfo, au as useRoomSubscriptionSettings, ap as useSelf, aA as useSendAiMessage, ae as useStatus, aq as useStorage, af as useStorageRoot, a1 as useSubscribeToThread, I as useSyncStatus, ag as useThreadSubscription, ar as useThreads, ah as useUndo, aE as useUnreadInboxNotificationsCount, a2 as useUnsubscribeFromThread, ai as useUpdateMyPresence, ax as useUpdateNotificationSettings, aj as useUpdateRoomSubscriptionSettings, aF as useUser, aB as useUserThreads_experimental } from './room-mUz5TTmo.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 { C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext,
|
|
1
|
+
import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-mUz5TTmo.js';
|
|
2
|
+
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, y as RoomContext, K as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, A as createLiveblocksContext, J as createRoomContext, N as useAddReaction, aG as useAiChat, aI as useAiChatMessages, aH as useAiChats, as as useAttachmentUrl, O as useBroadcastEvent, P as useCanRedo, Q as useCanUndo, z as useClient, ay as useCreateAiChat, T as useCreateComment, V as useCreateThread, az as useDeleteAiChat, B as useDeleteAllInboxNotifications, W as useDeleteComment, D as useDeleteInboxNotification, X as useDeleteThread, Y as useEditComment, Z as useEditThreadMetadata, E as useErrorListener, a3 as useEventListener, aD as useGroupInfo, a4 as useHistory, ak as useHistoryVersionData, at as useHistoryVersions, _ as useInboxNotificationThread, av as useInboxNotifications, a5 as useIsInsideRoom, a6 as useLostConnectionListener, F as useMarkAllInboxNotificationsAsRead, H as useMarkInboxNotificationAsRead, a7 as useMarkThreadAsRead, $ as useMarkThreadAsResolved, a0 as useMarkThreadAsUnresolved, a8 as useMutation, a9 as useMyPresence, aw as useNotificationSettings, al as useOther, am as useOthers, an as useOthersConnectionIds, aa as useOthersListener, ao as useOthersMapped, ab as useRedo, ac as useRemoveReaction, ad as useRoom, aC as useRoomInfo, au as useRoomSubscriptionSettings, ap as useSelf, aA as useSendAiMessage, ae as useStatus, aq as useStorage, af as useStorageRoot, a1 as useSubscribeToThread, I as useSyncStatus, ag as useThreadSubscription, ar as useThreads, ah as useUndo, aE as useUnreadInboxNotificationsCount, a2 as useUnsubscribeFromThread, ai as useUpdateMyPresence, ax as useUpdateNotificationSettings, aj as useUpdateRoomSubscriptionSettings, aF as useUser, aB as useUserThreads_experimental } from './room-mUz5TTmo.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-KYXF6473.js";
|
|
7
7
|
import {
|
|
8
8
|
ClientContext,
|
|
9
9
|
LiveblocksProvider,
|
|
@@ -52,6 +52,7 @@ import {
|
|
|
52
52
|
useDeleteInboxNotification,
|
|
53
53
|
useEditComment,
|
|
54
54
|
useErrorListener,
|
|
55
|
+
useGroupInfo,
|
|
55
56
|
useHistory,
|
|
56
57
|
useHistoryVersionData,
|
|
57
58
|
useInboxNotifications,
|
|
@@ -76,7 +77,7 @@ import {
|
|
|
76
77
|
useUnsubscribeFromThread,
|
|
77
78
|
useUpdateNotificationSettings,
|
|
78
79
|
useUpdateRoomSubscriptionSettings
|
|
79
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-WGUV4Z4E.js";
|
|
80
81
|
|
|
81
82
|
// src/index.ts
|
|
82
83
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -115,6 +116,7 @@ export {
|
|
|
115
116
|
_useEditThreadMetadata as useEditThreadMetadata,
|
|
116
117
|
useErrorListener,
|
|
117
118
|
_useEventListener as useEventListener,
|
|
119
|
+
useGroupInfo,
|
|
118
120
|
useHistory,
|
|
119
121
|
useHistoryVersionData,
|
|
120
122
|
_useHistoryVersions as useHistoryVersions,
|
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 { RegisterAiKnowledgeProps, RegisterAiToolProps } from \"./types/ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n 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 useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n} from \"./liveblocks\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n 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 { RegisterAiKnowledgeProps, RegisterAiToolProps } from \"./types/ai\";\nexport { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport {\n createLiveblocksContext,\n LiveblocksProvider,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomProvider,\n useAddReaction,\n 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} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAe5B,SAAS,SAAS,oCAAoC;AAZtD,YAAY,UAAU,aAAa,UAAU;","names":[]}
|
|
@@ -2,7 +2,7 @@ import * as react from 'react';
|
|
|
2
2
|
import { ComponentType, Context, PropsWithChildren, ReactNode } from 'react';
|
|
3
3
|
import { BaseUserMeta, Client, JsonObject, LsonObject, LiveObject, User, Json, RoomSubscriptionSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, ClientOptions, ThreadData as ThreadData$1, CommentData as CommentData$1 } from '@liveblocks/client';
|
|
4
4
|
import * as _liveblocks_core from '@liveblocks/core';
|
|
5
|
-
import { OpaqueClient, OpaqueRoom, AiKnowledgeSource, AiOpaqueToolDefinition, BaseMetadata, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, Relax, ToImmutable, PartialNotificationSettings, AiChatsQuery, AsyncLoading, AsyncError, ThreadData, HistoryVersion, AiChat, Client as Client$1, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, AiUserMessage, WithRequired, AiChatMessage, WithNavigation, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, MessageId, SubscriptionData, SubscriptionKey, CommentUserReaction, InboxNotificationDeleteInfo, SubscriptionDeleteInfo, RoomSubscriptionSettings as RoomSubscriptionSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DM, TextEditorType, IYjsProvider, DP, DS, DE } from '@liveblocks/core';
|
|
5
|
+
import { OpaqueClient, OpaqueRoom, AiKnowledgeSource, AiOpaqueToolDefinition, BaseMetadata, QueryMetadata, AsyncResult, DRI, AsyncSuccess, DGI, GroupData, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, Relax, ToImmutable, PartialNotificationSettings, AiChatsQuery, AsyncLoading, AsyncError, ThreadData, HistoryVersion, AiChat, Client as Client$1, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, AiUserMessage, WithRequired, AiChatMessage, WithNavigation, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, MessageId, SubscriptionData, SubscriptionKey, CommentUserReaction, InboxNotificationDeleteInfo, SubscriptionDeleteInfo, RoomSubscriptionSettings as RoomSubscriptionSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DM, TextEditorType, IYjsProvider, MentionData, DP, DS, DE } from '@liveblocks/core';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -134,12 +134,32 @@ type UseThreadsOptions<M extends BaseMetadata> = {
|
|
|
134
134
|
*/
|
|
135
135
|
scrollOnLoad?: boolean;
|
|
136
136
|
};
|
|
137
|
+
type InboxNotificationsQuery = {
|
|
138
|
+
/**
|
|
139
|
+
* Whether to only return inbox notifications for a specific room.
|
|
140
|
+
*/
|
|
141
|
+
roomId?: string;
|
|
142
|
+
/**
|
|
143
|
+
* Whether to only return inbox notifications for a specific kind.
|
|
144
|
+
*/
|
|
145
|
+
kind?: string;
|
|
146
|
+
};
|
|
147
|
+
type UseInboxNotificationsOptions = {
|
|
148
|
+
/**
|
|
149
|
+
* The query to filter the inbox notifications by. If provided, only inbox notifications
|
|
150
|
+
* that match the query will be returned. If not provided, all inbox notifications will be returned.
|
|
151
|
+
*/
|
|
152
|
+
query?: InboxNotificationsQuery;
|
|
153
|
+
};
|
|
137
154
|
type UserAsyncResult<T> = AsyncResult<T, "user">;
|
|
138
155
|
type UserAsyncSuccess<T> = AsyncSuccess<T, "user">;
|
|
139
156
|
type RoomInfoAsyncResult = AsyncResult<DRI, "info">;
|
|
140
157
|
type RoomInfoAsyncSuccess = AsyncSuccess<DRI, "info">;
|
|
158
|
+
type GroupInfoAsyncResult = AsyncResult<DGI, "info">;
|
|
159
|
+
type GroupInfoAsyncSuccess = AsyncSuccess<DGI, "info">;
|
|
141
160
|
type AttachmentUrlAsyncResult = AsyncResult<string, "url">;
|
|
142
161
|
type AttachmentUrlAsyncSuccess = AsyncSuccess<string, "url">;
|
|
162
|
+
type GroupAsyncResult = AsyncResult<GroupData | undefined, "group">;
|
|
143
163
|
type CreateThreadOptions<M extends BaseMetadata> = Resolve<{
|
|
144
164
|
body: CommentBody;
|
|
145
165
|
attachments?: CommentAttachment[];
|
|
@@ -271,6 +291,13 @@ type SharedContextBundle<U extends BaseUserMeta> = {
|
|
|
271
291
|
* const { info, error, isLoading } = useRoomInfo("room-id");
|
|
272
292
|
*/
|
|
273
293
|
useRoomInfo(roomId: string): RoomInfoAsyncResult;
|
|
294
|
+
/**
|
|
295
|
+
* Returns group info from a given group ID.
|
|
296
|
+
*
|
|
297
|
+
* @example
|
|
298
|
+
* const { info, error, isLoading } = useGroupInfo("group-id");
|
|
299
|
+
*/
|
|
300
|
+
useGroupInfo(groupId: string): GroupInfoAsyncResult;
|
|
274
301
|
/**
|
|
275
302
|
* Returns whether the hook is called within a RoomProvider context.
|
|
276
303
|
*
|
|
@@ -340,6 +367,13 @@ type SharedContextBundle<U extends BaseUserMeta> = {
|
|
|
340
367
|
* const { info } = useRoomInfo("room-id");
|
|
341
368
|
*/
|
|
342
369
|
useRoomInfo(roomId: string): RoomInfoAsyncSuccess;
|
|
370
|
+
/**
|
|
371
|
+
* Returns group info from a given group ID.
|
|
372
|
+
*
|
|
373
|
+
* @example
|
|
374
|
+
* const { info } = useGroupInfo("group-id");
|
|
375
|
+
*/
|
|
376
|
+
useGroupInfo(groupId: string): GroupInfoAsyncSuccess;
|
|
343
377
|
/**
|
|
344
378
|
* Returns whether the hook is called within a RoomProvider context.
|
|
345
379
|
*
|
|
@@ -1166,7 +1200,7 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
|
|
|
1166
1200
|
* @example
|
|
1167
1201
|
* const { inboxNotifications, error, isLoading } = useInboxNotifications();
|
|
1168
1202
|
*/
|
|
1169
|
-
useInboxNotifications(): InboxNotificationsAsyncResult;
|
|
1203
|
+
useInboxNotifications(options?: UseInboxNotificationsOptions): InboxNotificationsAsyncResult;
|
|
1170
1204
|
/**
|
|
1171
1205
|
* Returns the number of unread inbox notifications for the current user.
|
|
1172
1206
|
*
|
|
@@ -1209,7 +1243,7 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
|
|
|
1209
1243
|
* @example
|
|
1210
1244
|
* const { inboxNotifications } = useInboxNotifications();
|
|
1211
1245
|
*/
|
|
1212
|
-
useInboxNotifications(): InboxNotificationsAsyncSuccess;
|
|
1246
|
+
useInboxNotifications(options?: UseInboxNotificationsOptions): InboxNotificationsAsyncSuccess;
|
|
1213
1247
|
/**
|
|
1214
1248
|
* Returns the number of unread inbox notifications for the current user.
|
|
1215
1249
|
*
|
|
@@ -1443,6 +1477,7 @@ type LoadableResource<T> = {
|
|
|
1443
1477
|
type RoomId = string;
|
|
1444
1478
|
type UserQueryKey = string;
|
|
1445
1479
|
type RoomQueryKey = string;
|
|
1480
|
+
type InboxNotificationsQueryKey = string;
|
|
1446
1481
|
type AiChatsQueryKey = string;
|
|
1447
1482
|
/**
|
|
1448
1483
|
* A lookup table (LUT) for all the inbox notifications.
|
|
@@ -1568,7 +1603,7 @@ declare class UmbrellaStore<M extends BaseMetadata> {
|
|
|
1568
1603
|
readonly loadingUserThreads: DefaultMap<UserQueryKey, LoadableResource<ThreadsAsyncResult<M>>>;
|
|
1569
1604
|
readonly notifications: DerivedSignal<CleanNotifications>;
|
|
1570
1605
|
readonly threadSubscriptions: DerivedSignal<CleanThreadSubscriptions>;
|
|
1571
|
-
readonly loadingNotifications: LoadableResource<InboxNotificationsAsyncResult
|
|
1606
|
+
readonly loadingNotifications: DefaultMap<InboxNotificationsQueryKey, LoadableResource<InboxNotificationsAsyncResult>>;
|
|
1572
1607
|
readonly roomSubscriptionSettingsByRoomId: DefaultMap<RoomId, LoadableResource<RoomSubscriptionSettingsAsyncResult>>;
|
|
1573
1608
|
readonly versionsByRoomId: DefaultMap<RoomId, LoadableResource<HistoryVersionsAsyncResult>>;
|
|
1574
1609
|
readonly notificationSettings: LoadableResource<NotificationSettingsAsyncResult>;
|
|
@@ -1742,14 +1777,14 @@ declare function createLiveblocksContext<U extends BaseUserMeta = DU, M extends
|
|
|
1742
1777
|
* @example
|
|
1743
1778
|
* const { inboxNotifications, error, isLoading } = useInboxNotifications();
|
|
1744
1779
|
*/
|
|
1745
|
-
declare function useInboxNotifications(): InboxNotificationsAsyncResult;
|
|
1780
|
+
declare function useInboxNotifications(options?: UseInboxNotificationsOptions): InboxNotificationsAsyncResult;
|
|
1746
1781
|
/**
|
|
1747
1782
|
* Returns the inbox notifications for the current user.
|
|
1748
1783
|
*
|
|
1749
1784
|
* @example
|
|
1750
1785
|
* const { inboxNotifications } = useInboxNotifications();
|
|
1751
1786
|
*/
|
|
1752
|
-
declare function useInboxNotificationsSuspense(): {
|
|
1787
|
+
declare function useInboxNotificationsSuspense(options?: UseInboxNotificationsOptions): {
|
|
1753
1788
|
readonly isLoading: false;
|
|
1754
1789
|
readonly inboxNotifications: _liveblocks_core.InboxNotificationData[];
|
|
1755
1790
|
readonly error?: undefined;
|
|
@@ -1848,6 +1883,20 @@ declare function useRoomInfo(roomId: string): RoomInfoAsyncResult;
|
|
|
1848
1883
|
* const { info } = useRoomInfo("room-id");
|
|
1849
1884
|
*/
|
|
1850
1885
|
declare function useRoomInfoSuspense(roomId: string): RoomInfoAsyncSuccess;
|
|
1886
|
+
/**
|
|
1887
|
+
* Returns group info from a given group ID.
|
|
1888
|
+
*
|
|
1889
|
+
* @example
|
|
1890
|
+
* const { info, error, isLoading } = useGroupInfo("group-id");
|
|
1891
|
+
*/
|
|
1892
|
+
declare function useGroupInfo(groupId: string): GroupInfoAsyncResult;
|
|
1893
|
+
/**
|
|
1894
|
+
* Returns group info from a given group ID.
|
|
1895
|
+
*
|
|
1896
|
+
* @example
|
|
1897
|
+
* const { info } = useGroupInfo("group-id");
|
|
1898
|
+
*/
|
|
1899
|
+
declare function useGroupInfoSuspense(groupId: string): GroupInfoAsyncSuccess;
|
|
1851
1900
|
type TypedBundle$1 = LiveblocksContextBundle<DU, DM>;
|
|
1852
1901
|
/**
|
|
1853
1902
|
* Returns the thread associated with a `"thread"` inbox notification.
|
|
@@ -1986,16 +2035,13 @@ declare function useReportTextEditor(editor: TextEditorType, rootKey: string): v
|
|
|
1986
2035
|
/** @private - Internal API, do not rely on it. */
|
|
1987
2036
|
declare function useYjsProvider(): IYjsProvider | undefined;
|
|
1988
2037
|
/** @private - Internal API, do not rely on it. */
|
|
1989
|
-
declare function useCreateTextMention(): (
|
|
2038
|
+
declare function useCreateTextMention(): (mentionId: string, mention: MentionData) => void;
|
|
1990
2039
|
/** @private - Internal API, do not rely on it. */
|
|
1991
2040
|
declare function useDeleteTextMention(): (mentionId: string) => void;
|
|
1992
2041
|
/** @private - Internal API, do not rely on it. */
|
|
1993
|
-
declare function useResolveMentionSuggestions(): ((args: _liveblocks_core.ResolveMentionSuggestionsArgs) => _liveblocks_core.Awaitable<string[] |
|
|
2042
|
+
declare function useResolveMentionSuggestions(): ((args: _liveblocks_core.ResolveMentionSuggestionsArgs) => _liveblocks_core.Awaitable<string[] | MentionData[]>) | undefined;
|
|
1994
2043
|
/** @private - Internal API, do not rely on it. */
|
|
1995
|
-
declare function useMentionSuggestionsCache(): Map<string,
|
|
1996
|
-
kind: "user";
|
|
1997
|
-
id: string;
|
|
1998
|
-
}[]>;
|
|
2044
|
+
declare function useMentionSuggestionsCache(): Map<string, MentionData[]>;
|
|
1999
2045
|
/**
|
|
2000
2046
|
* Get informed when reconnecting to the Liveblocks servers is taking
|
|
2001
2047
|
* longer than usual. This typically is a sign of a client that has lost
|
|
@@ -2710,4 +2756,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
2710
2756
|
*/
|
|
2711
2757
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
2712
2758
|
|
|
2713
|
-
export {
|
|
2759
|
+
export { useMarkThreadAsResolved as $, createLiveblocksContext as A, useDeleteAllInboxNotifications as B, ClientContext as C, useDeleteInboxNotification as D, useErrorListener as E, useMarkAllInboxNotificationsAsRead as F, type GroupAsyncResult as G, useMarkInboxNotificationAsRead as H, useSyncStatus as I, createRoomContext as J, _RoomProvider as K, LiveblocksProvider as L, type MutationContext as M, _useAddReaction as N, _useBroadcastEvent as O, useCanRedo as P, useCanUndo as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCreateComment as T, type UseSendAiMessageOptions as U, _useCreateThread as V, useDeleteComment as W, _useDeleteThread as X, useEditComment as Y, _useEditThreadMetadata as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, _useAiChatMessagesSuspense as a$, useMarkThreadAsUnresolved as a0, useSubscribeToThread as a1, useUnsubscribeFromThread as a2, _useEventListener as a3, useHistory as a4, _useIsInsideRoom as a5, useLostConnectionListener as a6, useMarkThreadAsRead as a7, _useMutation as a8, _useMyPresence as a9, useSendAiMessage as aA, _useUserThreads_experimental as aB, useRoomInfo as aC, useGroupInfo as aD, useUnreadInboxNotificationsCount as aE, _useUser as aF, _useAiChat as aG, _useAiChats as aH, _useAiChatMessages as aI, _useOtherSuspense as aJ, _useOthersSuspense as aK, useOthersConnectionIdsSuspense as aL, _useOthersMappedSuspense as aM, _useSelfSuspense as aN, _useStorageSuspense as aO, _useThreadsSuspense as aP, useAttachmentUrlSuspense as aQ, _useHistoryVersionsSuspense as aR, _useRoomSubscriptionSettingsSuspense as aS, useInboxNotificationsSuspense as aT, useNotificationSettingsSuspense as aU, useRoomInfoSuspense as aV, useGroupInfoSuspense as aW, useUnreadInboxNotificationsCountSuspense as aX, _useUserSuspense as aY, _useUserThreadsSuspense_experimental as aZ, _useAiChatsSuspense as a_, _useOthersListener as aa, useRedo as ab, useRemoveReaction as ac, _useRoom as ad, useStatus as ae, _useStorageRoot as af, useThreadSubscription as ag, useUndo as ah, _useUpdateMyPresence as ai, useUpdateRoomSubscriptionSettings as aj, useHistoryVersionData as ak, _useOther as al, _useOthers as am, useOthersConnectionIds as an, _useOthersMapped as ao, _useSelf as ap, _useStorage as aq, _useThreads as ar, useAttachmentUrl as as, _useHistoryVersions as at, _useRoomSubscriptionSettings as au, useInboxNotifications as av, useNotificationSettings as aw, useUpdateNotificationSettings as ax, useCreateAiChat as ay, useDeleteAiChat as az, useCreateRoomComment as b, _useAiChatSuspense as b0, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useMarkRoomThreadAsRead as k, useMarkRoomThreadAsResolved as l, useMarkRoomThreadAsUnresolved as m, useMentionSuggestionsCache as n, useRemoveRoomCommentReaction as o, useReportTextEditor as p, useResolveMentionSuggestions as q, useRoomAttachmentUrl as r, useRoomPermissions as s, useRoomThreadSubscription as t, useClientOrNull as u, useYjsProvider as v, type RegisterAiToolProps as w, type UseThreadsOptions as x, RoomContext as y, useClient as z };
|
|
@@ -2,7 +2,7 @@ import * as react from 'react';
|
|
|
2
2
|
import { ComponentType, Context, PropsWithChildren, ReactNode } from 'react';
|
|
3
3
|
import { BaseUserMeta, Client, JsonObject, LsonObject, LiveObject, User, Json, RoomSubscriptionSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, ClientOptions, ThreadData as ThreadData$1, CommentData as CommentData$1 } from '@liveblocks/client';
|
|
4
4
|
import * as _liveblocks_core from '@liveblocks/core';
|
|
5
|
-
import { OpaqueClient, OpaqueRoom, AiKnowledgeSource, AiOpaqueToolDefinition, BaseMetadata, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, Relax, ToImmutable, PartialNotificationSettings, AiChatsQuery, AsyncLoading, AsyncError, ThreadData, HistoryVersion, AiChat, Client as Client$1, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, AiUserMessage, WithRequired, AiChatMessage, WithNavigation, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, MessageId, SubscriptionData, SubscriptionKey, CommentUserReaction, InboxNotificationDeleteInfo, SubscriptionDeleteInfo, RoomSubscriptionSettings as RoomSubscriptionSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DM, TextEditorType, IYjsProvider, DP, DS, DE } from '@liveblocks/core';
|
|
5
|
+
import { OpaqueClient, OpaqueRoom, AiKnowledgeSource, AiOpaqueToolDefinition, BaseMetadata, QueryMetadata, AsyncResult, DRI, AsyncSuccess, DGI, GroupData, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, Relax, ToImmutable, PartialNotificationSettings, AiChatsQuery, AsyncLoading, AsyncError, ThreadData, HistoryVersion, AiChat, Client as Client$1, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, AiUserMessage, WithRequired, AiChatMessage, WithNavigation, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, MessageId, SubscriptionData, SubscriptionKey, CommentUserReaction, InboxNotificationDeleteInfo, SubscriptionDeleteInfo, RoomSubscriptionSettings as RoomSubscriptionSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DM, TextEditorType, IYjsProvider, MentionData, DP, DS, DE } from '@liveblocks/core';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -134,12 +134,32 @@ type UseThreadsOptions<M extends BaseMetadata> = {
|
|
|
134
134
|
*/
|
|
135
135
|
scrollOnLoad?: boolean;
|
|
136
136
|
};
|
|
137
|
+
type InboxNotificationsQuery = {
|
|
138
|
+
/**
|
|
139
|
+
* Whether to only return inbox notifications for a specific room.
|
|
140
|
+
*/
|
|
141
|
+
roomId?: string;
|
|
142
|
+
/**
|
|
143
|
+
* Whether to only return inbox notifications for a specific kind.
|
|
144
|
+
*/
|
|
145
|
+
kind?: string;
|
|
146
|
+
};
|
|
147
|
+
type UseInboxNotificationsOptions = {
|
|
148
|
+
/**
|
|
149
|
+
* The query to filter the inbox notifications by. If provided, only inbox notifications
|
|
150
|
+
* that match the query will be returned. If not provided, all inbox notifications will be returned.
|
|
151
|
+
*/
|
|
152
|
+
query?: InboxNotificationsQuery;
|
|
153
|
+
};
|
|
137
154
|
type UserAsyncResult<T> = AsyncResult<T, "user">;
|
|
138
155
|
type UserAsyncSuccess<T> = AsyncSuccess<T, "user">;
|
|
139
156
|
type RoomInfoAsyncResult = AsyncResult<DRI, "info">;
|
|
140
157
|
type RoomInfoAsyncSuccess = AsyncSuccess<DRI, "info">;
|
|
158
|
+
type GroupInfoAsyncResult = AsyncResult<DGI, "info">;
|
|
159
|
+
type GroupInfoAsyncSuccess = AsyncSuccess<DGI, "info">;
|
|
141
160
|
type AttachmentUrlAsyncResult = AsyncResult<string, "url">;
|
|
142
161
|
type AttachmentUrlAsyncSuccess = AsyncSuccess<string, "url">;
|
|
162
|
+
type GroupAsyncResult = AsyncResult<GroupData | undefined, "group">;
|
|
143
163
|
type CreateThreadOptions<M extends BaseMetadata> = Resolve<{
|
|
144
164
|
body: CommentBody;
|
|
145
165
|
attachments?: CommentAttachment[];
|
|
@@ -271,6 +291,13 @@ type SharedContextBundle<U extends BaseUserMeta> = {
|
|
|
271
291
|
* const { info, error, isLoading } = useRoomInfo("room-id");
|
|
272
292
|
*/
|
|
273
293
|
useRoomInfo(roomId: string): RoomInfoAsyncResult;
|
|
294
|
+
/**
|
|
295
|
+
* Returns group info from a given group ID.
|
|
296
|
+
*
|
|
297
|
+
* @example
|
|
298
|
+
* const { info, error, isLoading } = useGroupInfo("group-id");
|
|
299
|
+
*/
|
|
300
|
+
useGroupInfo(groupId: string): GroupInfoAsyncResult;
|
|
274
301
|
/**
|
|
275
302
|
* Returns whether the hook is called within a RoomProvider context.
|
|
276
303
|
*
|
|
@@ -340,6 +367,13 @@ type SharedContextBundle<U extends BaseUserMeta> = {
|
|
|
340
367
|
* const { info } = useRoomInfo("room-id");
|
|
341
368
|
*/
|
|
342
369
|
useRoomInfo(roomId: string): RoomInfoAsyncSuccess;
|
|
370
|
+
/**
|
|
371
|
+
* Returns group info from a given group ID.
|
|
372
|
+
*
|
|
373
|
+
* @example
|
|
374
|
+
* const { info } = useGroupInfo("group-id");
|
|
375
|
+
*/
|
|
376
|
+
useGroupInfo(groupId: string): GroupInfoAsyncSuccess;
|
|
343
377
|
/**
|
|
344
378
|
* Returns whether the hook is called within a RoomProvider context.
|
|
345
379
|
*
|
|
@@ -1166,7 +1200,7 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
|
|
|
1166
1200
|
* @example
|
|
1167
1201
|
* const { inboxNotifications, error, isLoading } = useInboxNotifications();
|
|
1168
1202
|
*/
|
|
1169
|
-
useInboxNotifications(): InboxNotificationsAsyncResult;
|
|
1203
|
+
useInboxNotifications(options?: UseInboxNotificationsOptions): InboxNotificationsAsyncResult;
|
|
1170
1204
|
/**
|
|
1171
1205
|
* Returns the number of unread inbox notifications for the current user.
|
|
1172
1206
|
*
|
|
@@ -1209,7 +1243,7 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = R
|
|
|
1209
1243
|
* @example
|
|
1210
1244
|
* const { inboxNotifications } = useInboxNotifications();
|
|
1211
1245
|
*/
|
|
1212
|
-
useInboxNotifications(): InboxNotificationsAsyncSuccess;
|
|
1246
|
+
useInboxNotifications(options?: UseInboxNotificationsOptions): InboxNotificationsAsyncSuccess;
|
|
1213
1247
|
/**
|
|
1214
1248
|
* Returns the number of unread inbox notifications for the current user.
|
|
1215
1249
|
*
|
|
@@ -1443,6 +1477,7 @@ type LoadableResource<T> = {
|
|
|
1443
1477
|
type RoomId = string;
|
|
1444
1478
|
type UserQueryKey = string;
|
|
1445
1479
|
type RoomQueryKey = string;
|
|
1480
|
+
type InboxNotificationsQueryKey = string;
|
|
1446
1481
|
type AiChatsQueryKey = string;
|
|
1447
1482
|
/**
|
|
1448
1483
|
* A lookup table (LUT) for all the inbox notifications.
|
|
@@ -1568,7 +1603,7 @@ declare class UmbrellaStore<M extends BaseMetadata> {
|
|
|
1568
1603
|
readonly loadingUserThreads: DefaultMap<UserQueryKey, LoadableResource<ThreadsAsyncResult<M>>>;
|
|
1569
1604
|
readonly notifications: DerivedSignal<CleanNotifications>;
|
|
1570
1605
|
readonly threadSubscriptions: DerivedSignal<CleanThreadSubscriptions>;
|
|
1571
|
-
readonly loadingNotifications: LoadableResource<InboxNotificationsAsyncResult
|
|
1606
|
+
readonly loadingNotifications: DefaultMap<InboxNotificationsQueryKey, LoadableResource<InboxNotificationsAsyncResult>>;
|
|
1572
1607
|
readonly roomSubscriptionSettingsByRoomId: DefaultMap<RoomId, LoadableResource<RoomSubscriptionSettingsAsyncResult>>;
|
|
1573
1608
|
readonly versionsByRoomId: DefaultMap<RoomId, LoadableResource<HistoryVersionsAsyncResult>>;
|
|
1574
1609
|
readonly notificationSettings: LoadableResource<NotificationSettingsAsyncResult>;
|
|
@@ -1742,14 +1777,14 @@ declare function createLiveblocksContext<U extends BaseUserMeta = DU, M extends
|
|
|
1742
1777
|
* @example
|
|
1743
1778
|
* const { inboxNotifications, error, isLoading } = useInboxNotifications();
|
|
1744
1779
|
*/
|
|
1745
|
-
declare function useInboxNotifications(): InboxNotificationsAsyncResult;
|
|
1780
|
+
declare function useInboxNotifications(options?: UseInboxNotificationsOptions): InboxNotificationsAsyncResult;
|
|
1746
1781
|
/**
|
|
1747
1782
|
* Returns the inbox notifications for the current user.
|
|
1748
1783
|
*
|
|
1749
1784
|
* @example
|
|
1750
1785
|
* const { inboxNotifications } = useInboxNotifications();
|
|
1751
1786
|
*/
|
|
1752
|
-
declare function useInboxNotificationsSuspense(): {
|
|
1787
|
+
declare function useInboxNotificationsSuspense(options?: UseInboxNotificationsOptions): {
|
|
1753
1788
|
readonly isLoading: false;
|
|
1754
1789
|
readonly inboxNotifications: _liveblocks_core.InboxNotificationData[];
|
|
1755
1790
|
readonly error?: undefined;
|
|
@@ -1848,6 +1883,20 @@ declare function useRoomInfo(roomId: string): RoomInfoAsyncResult;
|
|
|
1848
1883
|
* const { info } = useRoomInfo("room-id");
|
|
1849
1884
|
*/
|
|
1850
1885
|
declare function useRoomInfoSuspense(roomId: string): RoomInfoAsyncSuccess;
|
|
1886
|
+
/**
|
|
1887
|
+
* Returns group info from a given group ID.
|
|
1888
|
+
*
|
|
1889
|
+
* @example
|
|
1890
|
+
* const { info, error, isLoading } = useGroupInfo("group-id");
|
|
1891
|
+
*/
|
|
1892
|
+
declare function useGroupInfo(groupId: string): GroupInfoAsyncResult;
|
|
1893
|
+
/**
|
|
1894
|
+
* Returns group info from a given group ID.
|
|
1895
|
+
*
|
|
1896
|
+
* @example
|
|
1897
|
+
* const { info } = useGroupInfo("group-id");
|
|
1898
|
+
*/
|
|
1899
|
+
declare function useGroupInfoSuspense(groupId: string): GroupInfoAsyncSuccess;
|
|
1851
1900
|
type TypedBundle$1 = LiveblocksContextBundle<DU, DM>;
|
|
1852
1901
|
/**
|
|
1853
1902
|
* Returns the thread associated with a `"thread"` inbox notification.
|
|
@@ -1986,16 +2035,13 @@ declare function useReportTextEditor(editor: TextEditorType, rootKey: string): v
|
|
|
1986
2035
|
/** @private - Internal API, do not rely on it. */
|
|
1987
2036
|
declare function useYjsProvider(): IYjsProvider | undefined;
|
|
1988
2037
|
/** @private - Internal API, do not rely on it. */
|
|
1989
|
-
declare function useCreateTextMention(): (
|
|
2038
|
+
declare function useCreateTextMention(): (mentionId: string, mention: MentionData) => void;
|
|
1990
2039
|
/** @private - Internal API, do not rely on it. */
|
|
1991
2040
|
declare function useDeleteTextMention(): (mentionId: string) => void;
|
|
1992
2041
|
/** @private - Internal API, do not rely on it. */
|
|
1993
|
-
declare function useResolveMentionSuggestions(): ((args: _liveblocks_core.ResolveMentionSuggestionsArgs) => _liveblocks_core.Awaitable<string[] |
|
|
2042
|
+
declare function useResolveMentionSuggestions(): ((args: _liveblocks_core.ResolveMentionSuggestionsArgs) => _liveblocks_core.Awaitable<string[] | MentionData[]>) | undefined;
|
|
1994
2043
|
/** @private - Internal API, do not rely on it. */
|
|
1995
|
-
declare function useMentionSuggestionsCache(): Map<string,
|
|
1996
|
-
kind: "user";
|
|
1997
|
-
id: string;
|
|
1998
|
-
}[]>;
|
|
2044
|
+
declare function useMentionSuggestionsCache(): Map<string, MentionData[]>;
|
|
1999
2045
|
/**
|
|
2000
2046
|
* Get informed when reconnecting to the Liveblocks servers is taking
|
|
2001
2047
|
* longer than usual. This typically is a sign of a client that has lost
|
|
@@ -2710,4 +2756,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
2710
2756
|
*/
|
|
2711
2757
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
2712
2758
|
|
|
2713
|
-
export {
|
|
2759
|
+
export { useMarkThreadAsResolved as $, createLiveblocksContext as A, useDeleteAllInboxNotifications as B, ClientContext as C, useDeleteInboxNotification as D, useErrorListener as E, useMarkAllInboxNotificationsAsRead as F, type GroupAsyncResult as G, useMarkInboxNotificationAsRead as H, useSyncStatus as I, createRoomContext as J, _RoomProvider as K, LiveblocksProvider as L, type MutationContext as M, _useAddReaction as N, _useBroadcastEvent as O, useCanRedo as P, useCanUndo as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCreateComment as T, type UseSendAiMessageOptions as U, _useCreateThread as V, useDeleteComment as W, _useDeleteThread as X, useEditComment as Y, _useEditThreadMetadata as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, _useAiChatMessagesSuspense as a$, useMarkThreadAsUnresolved as a0, useSubscribeToThread as a1, useUnsubscribeFromThread as a2, _useEventListener as a3, useHistory as a4, _useIsInsideRoom as a5, useLostConnectionListener as a6, useMarkThreadAsRead as a7, _useMutation as a8, _useMyPresence as a9, useSendAiMessage as aA, _useUserThreads_experimental as aB, useRoomInfo as aC, useGroupInfo as aD, useUnreadInboxNotificationsCount as aE, _useUser as aF, _useAiChat as aG, _useAiChats as aH, _useAiChatMessages as aI, _useOtherSuspense as aJ, _useOthersSuspense as aK, useOthersConnectionIdsSuspense as aL, _useOthersMappedSuspense as aM, _useSelfSuspense as aN, _useStorageSuspense as aO, _useThreadsSuspense as aP, useAttachmentUrlSuspense as aQ, _useHistoryVersionsSuspense as aR, _useRoomSubscriptionSettingsSuspense as aS, useInboxNotificationsSuspense as aT, useNotificationSettingsSuspense as aU, useRoomInfoSuspense as aV, useGroupInfoSuspense as aW, useUnreadInboxNotificationsCountSuspense as aX, _useUserSuspense as aY, _useUserThreadsSuspense_experimental as aZ, _useAiChatsSuspense as a_, _useOthersListener as aa, useRedo as ab, useRemoveReaction as ac, _useRoom as ad, useStatus as ae, _useStorageRoot as af, useThreadSubscription as ag, useUndo as ah, _useUpdateMyPresence as ai, useUpdateRoomSubscriptionSettings as aj, useHistoryVersionData as ak, _useOther as al, _useOthers as am, useOthersConnectionIds as an, _useOthersMapped as ao, _useSelf as ap, _useStorage as aq, _useThreads as ar, useAttachmentUrl as as, _useHistoryVersions as at, _useRoomSubscriptionSettings as au, useInboxNotifications as av, useNotificationSettings as aw, useUpdateNotificationSettings as ax, useCreateAiChat as ay, useDeleteAiChat as az, useCreateRoomComment as b, _useAiChatSuspense as b0, 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 _chunkOXA6JGB4cjs = require('./chunk-OXA6JGB4.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -73,12 +73,14 @@ var _chunkTCOWBBRUcjs = require('./chunk-TCOWBBRU.cjs');
|
|
|
73
73
|
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
|
|
77
|
+
var _chunkW2H56LB3cjs = require('./chunk-W2H56LB3.cjs');
|
|
77
78
|
|
|
78
79
|
// src/suspense.ts
|
|
79
80
|
var _core = require('@liveblocks/core');
|
|
80
81
|
var _client = require('@liveblocks/client');
|
|
81
|
-
_core.detectDupes.call(void 0,
|
|
82
|
+
_core.detectDupes.call(void 0, _chunkOXA6JGB4cjs.PKG_NAME, _chunkOXA6JGB4cjs.PKG_VERSION, _chunkOXA6JGB4cjs.PKG_FORMAT);
|
|
83
|
+
|
|
82
84
|
|
|
83
85
|
|
|
84
86
|
|
|
@@ -151,5 +153,5 @@ _core.detectDupes.call(void 0, _chunkTCOWBBRUcjs.PKG_NAME, _chunkTCOWBBRUcjs.PKG
|
|
|
151
153
|
|
|
152
154
|
|
|
153
155
|
|
|
154
|
-
exports.ClientContext =
|
|
156
|
+
exports.ClientContext = _chunkW2H56LB3cjs.ClientContext; exports.ClientSideSuspense = _chunkOXA6JGB4cjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkW2H56LB3cjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkW2H56LB3cjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkW2H56LB3cjs.RegisterAiTool; exports.RoomContext = _chunkW2H56LB3cjs.RoomContext; exports.RoomProvider = _chunkW2H56LB3cjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkW2H56LB3cjs._useAddReaction; exports.useAiChat = _chunkW2H56LB3cjs._useAiChatSuspense; exports.useAiChatMessages = _chunkW2H56LB3cjs._useAiChatMessagesSuspense; exports.useAiChats = _chunkW2H56LB3cjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunkW2H56LB3cjs.useAttachmentUrlSuspense; exports.useBroadcastEvent = _chunkW2H56LB3cjs._useBroadcastEvent; exports.useCanRedo = _chunkW2H56LB3cjs.useCanRedo; exports.useCanUndo = _chunkW2H56LB3cjs.useCanUndo; exports.useClient = _chunkW2H56LB3cjs.useClient; exports.useCreateAiChat = _chunkW2H56LB3cjs.useCreateAiChat; exports.useCreateComment = _chunkW2H56LB3cjs.useCreateComment; exports.useCreateThread = _chunkW2H56LB3cjs._useCreateThread; exports.useDeleteAiChat = _chunkW2H56LB3cjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkW2H56LB3cjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkW2H56LB3cjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkW2H56LB3cjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkW2H56LB3cjs._useDeleteThread; exports.useEditComment = _chunkW2H56LB3cjs.useEditComment; exports.useEditThreadMetadata = _chunkW2H56LB3cjs._useEditThreadMetadata; exports.useErrorListener = _chunkW2H56LB3cjs.useErrorListener; exports.useEventListener = _chunkW2H56LB3cjs._useEventListener; exports.useGroupInfo = _chunkW2H56LB3cjs.useGroupInfoSuspense; exports.useHistory = _chunkW2H56LB3cjs.useHistory; exports.useHistoryVersions = _chunkW2H56LB3cjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkW2H56LB3cjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkW2H56LB3cjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkW2H56LB3cjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkW2H56LB3cjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkW2H56LB3cjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkW2H56LB3cjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkW2H56LB3cjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkW2H56LB3cjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkW2H56LB3cjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkW2H56LB3cjs._useMutation; exports.useMyPresence = _chunkW2H56LB3cjs._useMyPresence; exports.useNotificationSettings = _chunkW2H56LB3cjs.useNotificationSettingsSuspense; exports.useOther = _chunkW2H56LB3cjs._useOtherSuspense; exports.useOthers = _chunkW2H56LB3cjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkW2H56LB3cjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkW2H56LB3cjs._useOthersListener; exports.useOthersMapped = _chunkW2H56LB3cjs._useOthersMappedSuspense; exports.useRedo = _chunkW2H56LB3cjs.useRedo; exports.useRemoveReaction = _chunkW2H56LB3cjs.useRemoveReaction; exports.useRoom = _chunkW2H56LB3cjs._useRoom; exports.useRoomInfo = _chunkW2H56LB3cjs.useRoomInfoSuspense; exports.useRoomSubscriptionSettings = _chunkW2H56LB3cjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunkW2H56LB3cjs._useSelfSuspense; exports.useSendAiMessage = _chunkW2H56LB3cjs.useSendAiMessage; exports.useStatus = _chunkW2H56LB3cjs.useStatus; exports.useStorage = _chunkW2H56LB3cjs._useStorageSuspense; exports.useStorageRoot = _chunkW2H56LB3cjs._useStorageRoot; exports.useSubscribeToThread = _chunkW2H56LB3cjs.useSubscribeToThread; exports.useSyncStatus = _chunkW2H56LB3cjs.useSyncStatus; exports.useThreadSubscription = _chunkW2H56LB3cjs.useThreadSubscription; exports.useThreads = _chunkW2H56LB3cjs._useThreadsSuspense; exports.useUndo = _chunkW2H56LB3cjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkW2H56LB3cjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunkW2H56LB3cjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkW2H56LB3cjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkW2H56LB3cjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkW2H56LB3cjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunkW2H56LB3cjs._useUserSuspense; exports.useUserThreads_experimental = _chunkW2H56LB3cjs._useUserThreadsSuspense_experimental;
|
|
155
157
|
//# sourceMappingURL=suspense.cjs.map
|
package/dist/suspense.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.cjs","../src/suspense.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/suspense.cjs","../src/suspense.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;AC7EA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;AD8E7C;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,mtJAAC","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 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 { ClientContext, RoomContext, useClient } from \"./contexts\";\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type { RegisterAiKnowledgeProps, RegisterAiToolProps } from \"./types/ai\";\nexport {\n LiveblocksProvider,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useSyncStatus,\n useErrorListener,\n} from \"./liveblocks\";\nexport {\n RoomProvider,\n useAddReaction,\n 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} 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 useThreadsSuspense as useThreads,\n useAttachmentUrlSuspense as useAttachmentUrl,\n useHistoryVersionsSuspense as useHistoryVersions,\n useRoomSubscriptionSettingsSuspense as useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useNotificationSettingsSuspense as useNotificationSettings,\n useRoomInfoSuspense as useRoomInfo,\n useGroupInfoSuspense as useGroupInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n useAiChatsSuspense as useAiChats,\n useAiChatMessagesSuspense as useAiChatMessages,\n useAiChatSuspense as useAiChat,\n} from \"./liveblocks\";\n"]}
|