@liveblocks/react 3.6.1-preview1 → 3.7.0-preview1
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-EEINMYNI.cjs → chunk-42HXAXED.cjs} +128 -62
- package/dist/chunk-42HXAXED.cjs.map +1 -0
- package/dist/{chunk-B5I7RQMM.js → chunk-AUFFB5BH.js} +2 -2
- package/dist/{chunk-I2UW4JM4.js → chunk-LYWCKEAX.js} +100 -34
- package/dist/chunk-LYWCKEAX.js.map +1 -0
- package/dist/{chunk-5WJEEON5.cjs → chunk-X5PYKCZB.cjs} +2 -2
- package/dist/{chunk-5WJEEON5.cjs.map → chunk-X5PYKCZB.cjs.map} +1 -1
- 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-RdHnZMhs.d.cts} +36 -8
- package/dist/{room-BE4TZf40.d.ts → room-RdHnZMhs.d.ts} +36 -8
- 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-B5I7RQMM.js.map → chunk-AUFFB5BH.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/version.ts
|
|
2
2
|
var PKG_NAME = "@liveblocks/react";
|
|
3
|
-
var PKG_VERSION = "3.
|
|
3
|
+
var PKG_VERSION = "3.7.0-preview1";
|
|
4
4
|
var PKG_FORMAT = "cjs";
|
|
5
5
|
|
|
6
6
|
// src/ClientSideSuspense.tsx
|
|
@@ -20,4 +20,4 @@ function ClientSideSuspense(props) {
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
exports.PKG_NAME = PKG_NAME; exports.PKG_VERSION = PKG_VERSION; exports.PKG_FORMAT = PKG_FORMAT; exports.ClientSideSuspense = ClientSideSuspense;
|
|
23
|
-
//# sourceMappingURL=chunk-
|
|
23
|
+
//# sourceMappingURL=chunk-X5PYKCZB.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/chunk-X5PYKCZB.cjs","../src/version.ts","../src/ClientSideSuspense.tsx"],"names":[],"mappings":"AAAA;ACGO,IAAM,SAAA,EAAW,mBAAA;AACjB,IAAM,YAAA,EAAiD,gBAAA;AACvD,IAAM,WAAA,EAAgD,KAAA;ADD7D;AACA;AEJA,8BAA8C;AAkC1C,+CAAA;AAVG,SAAS,kBAAA,CAAmB,KAAA,EAAc;AAC/C,EAAA,MAAM,CAAC,OAAA,EAAS,UAAU,EAAA,EAAI,6BAAA,KAAc,CAAA;AAE5C,EAAA,8BAAA,CAAU,EAAA,GAAM;AAGd,IAAA,UAAA,CAAW,IAAI,CAAA;AAAA,EACjB,CAAA,EAAG,CAAC,CAAC,CAAA;AAEL,EAAA,uBACE,6BAAA,eAAC,EAAA,EAAS,QAAA,EAAU,KAAA,CAAM,QAAA,EACvB,QAAA,EAAA,QAAA,EACG,OAAO,KAAA,CAAM,SAAA,IAAa,WAAA,EACxB,KAAA,CAAM,QAAA,CAAS,EAAA,EACf,KAAA,CAAM,SAAA,EACR,KAAA,CAAM,SAAA,CACZ,CAAA;AAEJ;AF5BA;AACA;AACE;AACA;AACA;AACA;AACF,iJAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/chunk-X5PYKCZB.cjs","sourcesContent":[null,"declare const __VERSION__: string;\ndeclare const TSUP_FORMAT: string;\n\nexport const PKG_NAME = \"@liveblocks/react\";\nexport const PKG_VERSION = typeof __VERSION__ === \"string\" && __VERSION__;\nexport const PKG_FORMAT = typeof TSUP_FORMAT === \"string\" && TSUP_FORMAT;\n","import type { ReactNode } from \"react\";\nimport { Suspense, useEffect, useState } from \"react\";\n\ntype Props = {\n fallback: ReactNode;\n children: (() => ReactNode | undefined) | ReactNode | undefined;\n};\n\n/**\n * Almost like a normal <Suspense> component, except that for server-side\n * renders, the fallback will be used.\n *\n * The child props will have to be provided in a function, i.e. change:\n *\n * <Suspense fallback={<Loading />}>\n * <MyRealComponent a={1} />\n * </Suspense>\n *\n * To:\n *\n * <ClientSideSuspense fallback={<Loading />}>\n * <MyRealComponent a={1} />\n * </ClientSideSuspense>\n *\n */\nexport function ClientSideSuspense(props: Props) {\n const [mounted, setMounted] = useState(false);\n\n useEffect(() => {\n // Effects are never executed on the server side. The point of this is to\n // delay the flipping of this boolean until after hydration has happened.\n setMounted(true);\n }, []);\n\n return (\n <Suspense fallback={props.fallback}>\n {mounted\n ? typeof props.children === \"function\"\n ? props.children()\n : props.children\n : props.fallback}\n </Suspense>\n );\n}\n"]}
|
package/dist/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkX5PYKCZBcjs = require('./chunk-X5PYKCZB.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -76,12 +76,14 @@ var _chunk5WJEEON5cjs = require('./chunk-5WJEEON5.cjs');
|
|
|
76
76
|
|
|
77
77
|
|
|
78
78
|
|
|
79
|
-
|
|
79
|
+
|
|
80
|
+
var _chunk42HXAXEDcjs = require('./chunk-42HXAXED.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, _chunkX5PYKCZBcjs.PKG_NAME, _chunkX5PYKCZBcjs.PKG_VERSION, _chunkX5PYKCZBcjs.PKG_FORMAT);
|
|
86
|
+
|
|
85
87
|
|
|
86
88
|
|
|
87
89
|
|
|
@@ -157,5 +159,5 @@ _core.detectDupes.call(void 0, _chunk5WJEEON5cjs.PKG_NAME, _chunk5WJEEON5cjs.PKG
|
|
|
157
159
|
|
|
158
160
|
|
|
159
161
|
|
|
160
|
-
exports.ClientContext =
|
|
162
|
+
exports.ClientContext = _chunk42HXAXEDcjs.ClientContext; exports.ClientSideSuspense = _chunkX5PYKCZBcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunk42HXAXEDcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunk42HXAXEDcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunk42HXAXEDcjs.RegisterAiTool; exports.RoomContext = _chunk42HXAXEDcjs.RoomContext; exports.RoomProvider = _chunk42HXAXEDcjs._RoomProvider; exports.createLiveblocksContext = _chunk42HXAXEDcjs.createLiveblocksContext; exports.createRoomContext = _chunk42HXAXEDcjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunk42HXAXEDcjs._useAddReaction; exports.useAiChat = _chunk42HXAXEDcjs._useAiChat; exports.useAiChatMessages = _chunk42HXAXEDcjs._useAiChatMessages; exports.useAiChats = _chunk42HXAXEDcjs._useAiChats; exports.useAttachmentUrl = _chunk42HXAXEDcjs.useAttachmentUrl; exports.useBroadcastEvent = _chunk42HXAXEDcjs._useBroadcastEvent; exports.useCanRedo = _chunk42HXAXEDcjs.useCanRedo; exports.useCanUndo = _chunk42HXAXEDcjs.useCanUndo; exports.useClient = _chunk42HXAXEDcjs.useClient; exports.useCreateAiChat = _chunk42HXAXEDcjs.useCreateAiChat; exports.useCreateComment = _chunk42HXAXEDcjs.useCreateComment; exports.useCreateThread = _chunk42HXAXEDcjs._useCreateThread; exports.useDeleteAiChat = _chunk42HXAXEDcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunk42HXAXEDcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunk42HXAXEDcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunk42HXAXEDcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunk42HXAXEDcjs._useDeleteThread; exports.useEditComment = _chunk42HXAXEDcjs.useEditComment; exports.useEditThreadMetadata = _chunk42HXAXEDcjs._useEditThreadMetadata; exports.useErrorListener = _chunk42HXAXEDcjs.useErrorListener; exports.useEventListener = _chunk42HXAXEDcjs._useEventListener; exports.useGroupInfo = _chunk42HXAXEDcjs.useGroupInfo; exports.useHistory = _chunk42HXAXEDcjs.useHistory; exports.useHistoryVersionData = _chunk42HXAXEDcjs.useHistoryVersionData; exports.useHistoryVersions = _chunk42HXAXEDcjs._useHistoryVersions; exports.useInboxNotificationThread = _chunk42HXAXEDcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunk42HXAXEDcjs.useInboxNotifications; exports.useIsInsideRoom = _chunk42HXAXEDcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunk42HXAXEDcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunk42HXAXEDcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunk42HXAXEDcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunk42HXAXEDcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunk42HXAXEDcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunk42HXAXEDcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunk42HXAXEDcjs._useMutation; exports.useMyPresence = _chunk42HXAXEDcjs._useMyPresence; exports.useNotificationSettings = _chunk42HXAXEDcjs.useNotificationSettings; exports.useOther = _chunk42HXAXEDcjs._useOther; exports.useOthers = _chunk42HXAXEDcjs._useOthers; exports.useOthersConnectionIds = _chunk42HXAXEDcjs.useOthersConnectionIds; exports.useOthersListener = _chunk42HXAXEDcjs._useOthersListener; exports.useOthersMapped = _chunk42HXAXEDcjs._useOthersMapped; exports.useRedo = _chunk42HXAXEDcjs.useRedo; exports.useRemoveReaction = _chunk42HXAXEDcjs.useRemoveReaction; exports.useRoom = _chunk42HXAXEDcjs._useRoom; exports.useRoomInfo = _chunk42HXAXEDcjs.useRoomInfo; exports.useRoomSubscriptionSettings = _chunk42HXAXEDcjs._useRoomSubscriptionSettings; exports.useSelf = _chunk42HXAXEDcjs._useSelf; exports.useSendAiMessage = _chunk42HXAXEDcjs.useSendAiMessage; exports.useStatus = _chunk42HXAXEDcjs.useStatus; exports.useStorage = _chunk42HXAXEDcjs._useStorage; exports.useStorageRoot = _chunk42HXAXEDcjs._useStorageRoot; exports.useSubscribeToThread = _chunk42HXAXEDcjs.useSubscribeToThread; exports.useSyncStatus = _chunk42HXAXEDcjs.useSyncStatus; exports.useThreadSubscription = _chunk42HXAXEDcjs.useThreadSubscription; exports.useThreads = _chunk42HXAXEDcjs._useThreads; exports.useUndo = _chunk42HXAXEDcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunk42HXAXEDcjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunk42HXAXEDcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunk42HXAXEDcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunk42HXAXEDcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunk42HXAXEDcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunk42HXAXEDcjs._useUser; exports.useUserThreads_experimental = _chunk42HXAXEDcjs._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-RdHnZMhs.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-RdHnZMhs.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-RdHnZMhs.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-RdHnZMhs.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-AUFFB5BH.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-LYWCKEAX.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
|
/**
|
|
@@ -138,8 +138,11 @@ type UserAsyncResult<T> = AsyncResult<T, "user">;
|
|
|
138
138
|
type UserAsyncSuccess<T> = AsyncSuccess<T, "user">;
|
|
139
139
|
type RoomInfoAsyncResult = AsyncResult<DRI, "info">;
|
|
140
140
|
type RoomInfoAsyncSuccess = AsyncSuccess<DRI, "info">;
|
|
141
|
+
type GroupInfoAsyncResult = AsyncResult<DGI, "info">;
|
|
142
|
+
type GroupInfoAsyncSuccess = AsyncSuccess<DGI, "info">;
|
|
141
143
|
type AttachmentUrlAsyncResult = AsyncResult<string, "url">;
|
|
142
144
|
type AttachmentUrlAsyncSuccess = AsyncSuccess<string, "url">;
|
|
145
|
+
type GroupAsyncResult = AsyncResult<GroupData | undefined, "group">;
|
|
143
146
|
type CreateThreadOptions<M extends BaseMetadata> = Resolve<{
|
|
144
147
|
body: CommentBody;
|
|
145
148
|
attachments?: CommentAttachment[];
|
|
@@ -271,6 +274,13 @@ type SharedContextBundle<U extends BaseUserMeta> = {
|
|
|
271
274
|
* const { info, error, isLoading } = useRoomInfo("room-id");
|
|
272
275
|
*/
|
|
273
276
|
useRoomInfo(roomId: string): RoomInfoAsyncResult;
|
|
277
|
+
/**
|
|
278
|
+
* Returns group info from a given group ID.
|
|
279
|
+
*
|
|
280
|
+
* @example
|
|
281
|
+
* const { info, error, isLoading } = useGroupInfo("group-id");
|
|
282
|
+
*/
|
|
283
|
+
useGroupInfo(groupId: string): GroupInfoAsyncResult;
|
|
274
284
|
/**
|
|
275
285
|
* Returns whether the hook is called within a RoomProvider context.
|
|
276
286
|
*
|
|
@@ -340,6 +350,13 @@ type SharedContextBundle<U extends BaseUserMeta> = {
|
|
|
340
350
|
* const { info } = useRoomInfo("room-id");
|
|
341
351
|
*/
|
|
342
352
|
useRoomInfo(roomId: string): RoomInfoAsyncSuccess;
|
|
353
|
+
/**
|
|
354
|
+
* Returns group info from a given group ID.
|
|
355
|
+
*
|
|
356
|
+
* @example
|
|
357
|
+
* const { info } = useGroupInfo("group-id");
|
|
358
|
+
*/
|
|
359
|
+
useGroupInfo(groupId: string): GroupInfoAsyncSuccess;
|
|
343
360
|
/**
|
|
344
361
|
* Returns whether the hook is called within a RoomProvider context.
|
|
345
362
|
*
|
|
@@ -1848,6 +1865,20 @@ declare function useRoomInfo(roomId: string): RoomInfoAsyncResult;
|
|
|
1848
1865
|
* const { info } = useRoomInfo("room-id");
|
|
1849
1866
|
*/
|
|
1850
1867
|
declare function useRoomInfoSuspense(roomId: string): RoomInfoAsyncSuccess;
|
|
1868
|
+
/**
|
|
1869
|
+
* Returns group info from a given group ID.
|
|
1870
|
+
*
|
|
1871
|
+
* @example
|
|
1872
|
+
* const { info, error, isLoading } = useGroupInfo("group-id");
|
|
1873
|
+
*/
|
|
1874
|
+
declare function useGroupInfo(groupId: string): GroupInfoAsyncResult;
|
|
1875
|
+
/**
|
|
1876
|
+
* Returns group info from a given group ID.
|
|
1877
|
+
*
|
|
1878
|
+
* @example
|
|
1879
|
+
* const { info } = useGroupInfo("group-id");
|
|
1880
|
+
*/
|
|
1881
|
+
declare function useGroupInfoSuspense(groupId: string): GroupInfoAsyncSuccess;
|
|
1851
1882
|
type TypedBundle$1 = LiveblocksContextBundle<DU, DM>;
|
|
1852
1883
|
/**
|
|
1853
1884
|
* Returns the thread associated with a `"thread"` inbox notification.
|
|
@@ -1986,16 +2017,13 @@ declare function useReportTextEditor(editor: TextEditorType, rootKey: string): v
|
|
|
1986
2017
|
/** @private - Internal API, do not rely on it. */
|
|
1987
2018
|
declare function useYjsProvider(): IYjsProvider | undefined;
|
|
1988
2019
|
/** @private - Internal API, do not rely on it. */
|
|
1989
|
-
declare function useCreateTextMention(): (
|
|
2020
|
+
declare function useCreateTextMention(): (mentionId: string, mention: MentionData) => void;
|
|
1990
2021
|
/** @private - Internal API, do not rely on it. */
|
|
1991
2022
|
declare function useDeleteTextMention(): (mentionId: string) => void;
|
|
1992
2023
|
/** @private - Internal API, do not rely on it. */
|
|
1993
|
-
declare function useResolveMentionSuggestions(): ((args: _liveblocks_core.ResolveMentionSuggestionsArgs) => _liveblocks_core.Awaitable<string[] |
|
|
2024
|
+
declare function useResolveMentionSuggestions(): ((args: _liveblocks_core.ResolveMentionSuggestionsArgs) => _liveblocks_core.Awaitable<string[] | MentionData[]>) | undefined;
|
|
1994
2025
|
/** @private - Internal API, do not rely on it. */
|
|
1995
|
-
declare function useMentionSuggestionsCache(): Map<string,
|
|
1996
|
-
kind: "user";
|
|
1997
|
-
id: string;
|
|
1998
|
-
}[]>;
|
|
2026
|
+
declare function useMentionSuggestionsCache(): Map<string, MentionData[]>;
|
|
1999
2027
|
/**
|
|
2000
2028
|
* Get informed when reconnecting to the Liveblocks servers is taking
|
|
2001
2029
|
* longer than usual. This typically is a sign of a client that has lost
|
|
@@ -2710,4 +2738,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
2710
2738
|
*/
|
|
2711
2739
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
2712
2740
|
|
|
2713
|
-
export {
|
|
2741
|
+
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
|
/**
|
|
@@ -138,8 +138,11 @@ type UserAsyncResult<T> = AsyncResult<T, "user">;
|
|
|
138
138
|
type UserAsyncSuccess<T> = AsyncSuccess<T, "user">;
|
|
139
139
|
type RoomInfoAsyncResult = AsyncResult<DRI, "info">;
|
|
140
140
|
type RoomInfoAsyncSuccess = AsyncSuccess<DRI, "info">;
|
|
141
|
+
type GroupInfoAsyncResult = AsyncResult<DGI, "info">;
|
|
142
|
+
type GroupInfoAsyncSuccess = AsyncSuccess<DGI, "info">;
|
|
141
143
|
type AttachmentUrlAsyncResult = AsyncResult<string, "url">;
|
|
142
144
|
type AttachmentUrlAsyncSuccess = AsyncSuccess<string, "url">;
|
|
145
|
+
type GroupAsyncResult = AsyncResult<GroupData | undefined, "group">;
|
|
143
146
|
type CreateThreadOptions<M extends BaseMetadata> = Resolve<{
|
|
144
147
|
body: CommentBody;
|
|
145
148
|
attachments?: CommentAttachment[];
|
|
@@ -271,6 +274,13 @@ type SharedContextBundle<U extends BaseUserMeta> = {
|
|
|
271
274
|
* const { info, error, isLoading } = useRoomInfo("room-id");
|
|
272
275
|
*/
|
|
273
276
|
useRoomInfo(roomId: string): RoomInfoAsyncResult;
|
|
277
|
+
/**
|
|
278
|
+
* Returns group info from a given group ID.
|
|
279
|
+
*
|
|
280
|
+
* @example
|
|
281
|
+
* const { info, error, isLoading } = useGroupInfo("group-id");
|
|
282
|
+
*/
|
|
283
|
+
useGroupInfo(groupId: string): GroupInfoAsyncResult;
|
|
274
284
|
/**
|
|
275
285
|
* Returns whether the hook is called within a RoomProvider context.
|
|
276
286
|
*
|
|
@@ -340,6 +350,13 @@ type SharedContextBundle<U extends BaseUserMeta> = {
|
|
|
340
350
|
* const { info } = useRoomInfo("room-id");
|
|
341
351
|
*/
|
|
342
352
|
useRoomInfo(roomId: string): RoomInfoAsyncSuccess;
|
|
353
|
+
/**
|
|
354
|
+
* Returns group info from a given group ID.
|
|
355
|
+
*
|
|
356
|
+
* @example
|
|
357
|
+
* const { info } = useGroupInfo("group-id");
|
|
358
|
+
*/
|
|
359
|
+
useGroupInfo(groupId: string): GroupInfoAsyncSuccess;
|
|
343
360
|
/**
|
|
344
361
|
* Returns whether the hook is called within a RoomProvider context.
|
|
345
362
|
*
|
|
@@ -1848,6 +1865,20 @@ declare function useRoomInfo(roomId: string): RoomInfoAsyncResult;
|
|
|
1848
1865
|
* const { info } = useRoomInfo("room-id");
|
|
1849
1866
|
*/
|
|
1850
1867
|
declare function useRoomInfoSuspense(roomId: string): RoomInfoAsyncSuccess;
|
|
1868
|
+
/**
|
|
1869
|
+
* Returns group info from a given group ID.
|
|
1870
|
+
*
|
|
1871
|
+
* @example
|
|
1872
|
+
* const { info, error, isLoading } = useGroupInfo("group-id");
|
|
1873
|
+
*/
|
|
1874
|
+
declare function useGroupInfo(groupId: string): GroupInfoAsyncResult;
|
|
1875
|
+
/**
|
|
1876
|
+
* Returns group info from a given group ID.
|
|
1877
|
+
*
|
|
1878
|
+
* @example
|
|
1879
|
+
* const { info } = useGroupInfo("group-id");
|
|
1880
|
+
*/
|
|
1881
|
+
declare function useGroupInfoSuspense(groupId: string): GroupInfoAsyncSuccess;
|
|
1851
1882
|
type TypedBundle$1 = LiveblocksContextBundle<DU, DM>;
|
|
1852
1883
|
/**
|
|
1853
1884
|
* Returns the thread associated with a `"thread"` inbox notification.
|
|
@@ -1986,16 +2017,13 @@ declare function useReportTextEditor(editor: TextEditorType, rootKey: string): v
|
|
|
1986
2017
|
/** @private - Internal API, do not rely on it. */
|
|
1987
2018
|
declare function useYjsProvider(): IYjsProvider | undefined;
|
|
1988
2019
|
/** @private - Internal API, do not rely on it. */
|
|
1989
|
-
declare function useCreateTextMention(): (
|
|
2020
|
+
declare function useCreateTextMention(): (mentionId: string, mention: MentionData) => void;
|
|
1990
2021
|
/** @private - Internal API, do not rely on it. */
|
|
1991
2022
|
declare function useDeleteTextMention(): (mentionId: string) => void;
|
|
1992
2023
|
/** @private - Internal API, do not rely on it. */
|
|
1993
|
-
declare function useResolveMentionSuggestions(): ((args: _liveblocks_core.ResolveMentionSuggestionsArgs) => _liveblocks_core.Awaitable<string[] |
|
|
2024
|
+
declare function useResolveMentionSuggestions(): ((args: _liveblocks_core.ResolveMentionSuggestionsArgs) => _liveblocks_core.Awaitable<string[] | MentionData[]>) | undefined;
|
|
1994
2025
|
/** @private - Internal API, do not rely on it. */
|
|
1995
|
-
declare function useMentionSuggestionsCache(): Map<string,
|
|
1996
|
-
kind: "user";
|
|
1997
|
-
id: string;
|
|
1998
|
-
}[]>;
|
|
2026
|
+
declare function useMentionSuggestionsCache(): Map<string, MentionData[]>;
|
|
1999
2027
|
/**
|
|
2000
2028
|
* Get informed when reconnecting to the Liveblocks servers is taking
|
|
2001
2029
|
* longer than usual. This typically is a sign of a client that has lost
|
|
@@ -2710,4 +2738,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
2710
2738
|
*/
|
|
2711
2739
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
2712
2740
|
|
|
2713
|
-
export {
|
|
2741
|
+
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 _chunkX5PYKCZBcjs = require('./chunk-X5PYKCZB.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -73,12 +73,14 @@ var _chunk5WJEEON5cjs = require('./chunk-5WJEEON5.cjs');
|
|
|
73
73
|
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
|
|
77
|
+
var _chunk42HXAXEDcjs = require('./chunk-42HXAXED.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, _chunkX5PYKCZBcjs.PKG_NAME, _chunkX5PYKCZBcjs.PKG_VERSION, _chunkX5PYKCZBcjs.PKG_FORMAT);
|
|
83
|
+
|
|
82
84
|
|
|
83
85
|
|
|
84
86
|
|
|
@@ -151,5 +153,5 @@ _core.detectDupes.call(void 0, _chunk5WJEEON5cjs.PKG_NAME, _chunk5WJEEON5cjs.PKG
|
|
|
151
153
|
|
|
152
154
|
|
|
153
155
|
|
|
154
|
-
exports.ClientContext =
|
|
156
|
+
exports.ClientContext = _chunk42HXAXEDcjs.ClientContext; exports.ClientSideSuspense = _chunkX5PYKCZBcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunk42HXAXEDcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunk42HXAXEDcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunk42HXAXEDcjs.RegisterAiTool; exports.RoomContext = _chunk42HXAXEDcjs.RoomContext; exports.RoomProvider = _chunk42HXAXEDcjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunk42HXAXEDcjs._useAddReaction; exports.useAiChat = _chunk42HXAXEDcjs._useAiChatSuspense; exports.useAiChatMessages = _chunk42HXAXEDcjs._useAiChatMessagesSuspense; exports.useAiChats = _chunk42HXAXEDcjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunk42HXAXEDcjs.useAttachmentUrlSuspense; exports.useBroadcastEvent = _chunk42HXAXEDcjs._useBroadcastEvent; exports.useCanRedo = _chunk42HXAXEDcjs.useCanRedo; exports.useCanUndo = _chunk42HXAXEDcjs.useCanUndo; exports.useClient = _chunk42HXAXEDcjs.useClient; exports.useCreateAiChat = _chunk42HXAXEDcjs.useCreateAiChat; exports.useCreateComment = _chunk42HXAXEDcjs.useCreateComment; exports.useCreateThread = _chunk42HXAXEDcjs._useCreateThread; exports.useDeleteAiChat = _chunk42HXAXEDcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunk42HXAXEDcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunk42HXAXEDcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunk42HXAXEDcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunk42HXAXEDcjs._useDeleteThread; exports.useEditComment = _chunk42HXAXEDcjs.useEditComment; exports.useEditThreadMetadata = _chunk42HXAXEDcjs._useEditThreadMetadata; exports.useErrorListener = _chunk42HXAXEDcjs.useErrorListener; exports.useEventListener = _chunk42HXAXEDcjs._useEventListener; exports.useGroupInfo = _chunk42HXAXEDcjs.useGroupInfoSuspense; exports.useHistory = _chunk42HXAXEDcjs.useHistory; exports.useHistoryVersions = _chunk42HXAXEDcjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunk42HXAXEDcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunk42HXAXEDcjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunk42HXAXEDcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunk42HXAXEDcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunk42HXAXEDcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunk42HXAXEDcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunk42HXAXEDcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunk42HXAXEDcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunk42HXAXEDcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunk42HXAXEDcjs._useMutation; exports.useMyPresence = _chunk42HXAXEDcjs._useMyPresence; exports.useNotificationSettings = _chunk42HXAXEDcjs.useNotificationSettingsSuspense; exports.useOther = _chunk42HXAXEDcjs._useOtherSuspense; exports.useOthers = _chunk42HXAXEDcjs._useOthersSuspense; exports.useOthersConnectionIds = _chunk42HXAXEDcjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunk42HXAXEDcjs._useOthersListener; exports.useOthersMapped = _chunk42HXAXEDcjs._useOthersMappedSuspense; exports.useRedo = _chunk42HXAXEDcjs.useRedo; exports.useRemoveReaction = _chunk42HXAXEDcjs.useRemoveReaction; exports.useRoom = _chunk42HXAXEDcjs._useRoom; exports.useRoomInfo = _chunk42HXAXEDcjs.useRoomInfoSuspense; exports.useRoomSubscriptionSettings = _chunk42HXAXEDcjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunk42HXAXEDcjs._useSelfSuspense; exports.useSendAiMessage = _chunk42HXAXEDcjs.useSendAiMessage; exports.useStatus = _chunk42HXAXEDcjs.useStatus; exports.useStorage = _chunk42HXAXEDcjs._useStorageSuspense; exports.useStorageRoot = _chunk42HXAXEDcjs._useStorageRoot; exports.useSubscribeToThread = _chunk42HXAXEDcjs.useSubscribeToThread; exports.useSyncStatus = _chunk42HXAXEDcjs.useSyncStatus; exports.useThreadSubscription = _chunk42HXAXEDcjs.useThreadSubscription; exports.useThreads = _chunk42HXAXEDcjs._useThreadsSuspense; exports.useUndo = _chunk42HXAXEDcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunk42HXAXEDcjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunk42HXAXEDcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunk42HXAXEDcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunk42HXAXEDcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunk42HXAXEDcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunk42HXAXEDcjs._useUserSuspense; exports.useUserThreads_experimental = _chunk42HXAXEDcjs._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"]}
|
package/dist/suspense.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ClientSideSuspense, RegisterAiKnowledge, RegisterAiTool } from './index.cjs';
|
|
2
|
-
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext,
|
|
2
|
+
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, K as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, N as useAddReaction, b0 as useAiChat, a$ as useAiChatMessages, a_ as useAiChats, aQ 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, aW as useGroupInfo, a4 as useHistory, aR as useHistoryVersions, _ as useInboxNotificationThread, aT 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, aU as useNotificationSettings, aJ as useOther, aK as useOthers, aL as useOthersConnectionIds, aa as useOthersListener, aM as useOthersMapped, ab as useRedo, ac as useRemoveReaction, ad as useRoom, aV as useRoomInfo, aS as useRoomSubscriptionSettings, aN as useSelf, aA as useSendAiMessage, ae as useStatus, aO as useStorage, af as useStorageRoot, a1 as useSubscribeToThread, I as useSyncStatus, ag as useThreadSubscription, aP as useThreads, ah as useUndo, aX as useUnreadInboxNotificationsCount, a2 as useUnsubscribeFromThread, ai as useUpdateMyPresence, ax as useUpdateNotificationSettings, aj as useUpdateRoomSubscriptionSettings, aY as useUser, aZ as useUserThreads_experimental } from './room-RdHnZMhs.cjs';
|
|
3
3
|
export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react';
|
package/dist/suspense.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ClientSideSuspense, RegisterAiKnowledge, RegisterAiTool } from './index.js';
|
|
2
|
-
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext,
|
|
2
|
+
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, w as RegisterAiToolProps, y as RoomContext, K as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, x as UseThreadsOptions, N as useAddReaction, b0 as useAiChat, a$ as useAiChatMessages, a_ as useAiChats, aQ 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, aW as useGroupInfo, a4 as useHistory, aR as useHistoryVersions, _ as useInboxNotificationThread, aT 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, aU as useNotificationSettings, aJ as useOther, aK as useOthers, aL as useOthersConnectionIds, aa as useOthersListener, aM as useOthersMapped, ab as useRedo, ac as useRemoveReaction, ad as useRoom, aV as useRoomInfo, aS as useRoomSubscriptionSettings, aN as useSelf, aA as useSendAiMessage, ae as useStatus, aO as useStorage, af as useStorageRoot, a1 as useSubscribeToThread, I as useSyncStatus, ag as useThreadSubscription, aP as useThreads, ah as useUndo, aX as useUnreadInboxNotificationsCount, a2 as useUnsubscribeFromThread, ai as useUpdateMyPresence, ax as useUpdateNotificationSettings, aj as useUpdateRoomSubscriptionSettings, aY as useUser, aZ as useUserThreads_experimental } from './room-RdHnZMhs.js';
|
|
3
3
|
export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react';
|
package/dist/suspense.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
PKG_FORMAT,
|
|
4
4
|
PKG_NAME,
|
|
5
5
|
PKG_VERSION
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AUFFB5BH.js";
|
|
7
7
|
import {
|
|
8
8
|
ClientContext,
|
|
9
9
|
LiveblocksProvider,
|
|
@@ -50,6 +50,7 @@ import {
|
|
|
50
50
|
useDeleteInboxNotification,
|
|
51
51
|
useEditComment,
|
|
52
52
|
useErrorListener,
|
|
53
|
+
useGroupInfoSuspense,
|
|
53
54
|
useHistory,
|
|
54
55
|
useInboxNotificationsSuspense,
|
|
55
56
|
useLostConnectionListener,
|
|
@@ -73,7 +74,7 @@ import {
|
|
|
73
74
|
useUnsubscribeFromThread,
|
|
74
75
|
useUpdateNotificationSettings,
|
|
75
76
|
useUpdateRoomSubscriptionSettings
|
|
76
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-LYWCKEAX.js";
|
|
77
78
|
|
|
78
79
|
// src/suspense.ts
|
|
79
80
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -110,6 +111,7 @@ export {
|
|
|
110
111
|
_useEditThreadMetadata as useEditThreadMetadata,
|
|
111
112
|
useErrorListener,
|
|
112
113
|
_useEventListener as useEventListener,
|
|
114
|
+
useGroupInfoSuspense as useGroupInfo,
|
|
113
115
|
useHistory,
|
|
114
116
|
_useHistoryVersionsSuspense as useHistoryVersions,
|
|
115
117
|
_useInboxNotificationThread as useInboxNotificationThread,
|
package/dist/suspense.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/suspense.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n 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 useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n useAiChatsSuspense as useAiChats,\n useAiChatMessagesSuspense as useAiChatMessages,\n useAiChatSuspense as useAiChat,\n} from \"./liveblocks\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/suspense.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n 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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAe5B,SAAS,SAAS,oCAAoC;AAZtD,YAAY,UAAU,aAAa,UAAU;","names":[]}
|