@liveblocks/react 2.25.0-aiprivatebeta13 → 2.25.0-aiprivatebeta15
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/_private/package.json +2 -2
- package/dist/_private.cjs +19 -10
- package/dist/_private.cjs.map +1 -1
- package/dist/_private.d.cts +5 -2
- package/dist/_private.d.ts +5 -2
- package/dist/_private.js +15 -6
- package/dist/_private.js.map +1 -1
- package/dist/{chunk-IKZ3R3Q2.js → chunk-5HFQCHWK.js} +2 -2
- package/dist/{chunk-KLANVQIZ.js → chunk-PJG72DS4.js} +8 -145
- package/dist/chunk-PJG72DS4.js.map +1 -0
- package/dist/{chunk-7DJASH5H.cjs → chunk-QDQQBWCT.cjs} +14 -151
- package/dist/chunk-QDQQBWCT.cjs.map +1 -0
- package/dist/{chunk-KD3B7XF6.cjs → chunk-ZI36JJCM.cjs} +2 -2
- package/dist/{chunk-KD3B7XF6.cjs.map → chunk-ZI36JJCM.cjs.map} +1 -1
- package/dist/index.cjs +4 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -10
- package/dist/index.js.map +1 -1
- package/dist/{room-qnTepKOd.d.cts → room-BzmUELIi.d.cts} +8 -107
- package/dist/{room-qnTepKOd.d.ts → room-BzmUELIi.d.ts} +8 -107
- package/dist/suspense.cjs +4 -12
- 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 +2 -10
- package/dist/suspense.js.map +1 -1
- package/package.json +3 -3
- package/suspense/package.json +2 -2
- package/dist/chunk-7DJASH5H.cjs.map +0 -1
- package/dist/chunk-KLANVQIZ.js.map +0 -1
- /package/dist/{chunk-IKZ3R3Q2.js.map → chunk-5HFQCHWK.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 = "2.25.0-
|
|
3
|
+
var PKG_VERSION = "2.25.0-aiprivatebeta15";
|
|
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-ZI36JJCM.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-ZI36JJCM.cjs","../src/version.ts","../src/ClientSideSuspense.tsx"],"names":[],"mappings":"AAAA;ACGO,IAAM,SAAA,EAAW,mBAAA;AACjB,IAAM,YAAA,EAAiD,wBAAA;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-ZI36JJCM.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 _chunkZI36JJCMcjs = require('./chunk-ZI36JJCM.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -76,20 +76,12 @@ var _chunkKD3B7XF6cjs = require('./chunk-KD3B7XF6.cjs');
|
|
|
76
76
|
|
|
77
77
|
|
|
78
78
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
var _chunk7DJASH5Hcjs = require('./chunk-7DJASH5H.cjs');
|
|
79
|
+
var _chunkQDQQBWCTcjs = require('./chunk-QDQQBWCT.cjs');
|
|
84
80
|
|
|
85
81
|
// src/index.ts
|
|
86
82
|
var _core = require('@liveblocks/core');
|
|
87
83
|
var _client = require('@liveblocks/client');
|
|
88
|
-
_core.detectDupes.call(void 0,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
84
|
+
_core.detectDupes.call(void 0, _chunkZI36JJCMcjs.PKG_NAME, _chunkZI36JJCMcjs.PKG_VERSION, _chunkZI36JJCMcjs.PKG_FORMAT);
|
|
93
85
|
|
|
94
86
|
|
|
95
87
|
|
|
@@ -165,5 +157,5 @@ _core.detectDupes.call(void 0, _chunkKD3B7XF6cjs.PKG_NAME, _chunkKD3B7XF6cjs.PKG
|
|
|
165
157
|
|
|
166
158
|
|
|
167
159
|
|
|
168
|
-
exports.ClientContext =
|
|
160
|
+
exports.ClientContext = _chunkQDQQBWCTcjs.ClientContext; exports.ClientSideSuspense = _chunkZI36JJCMcjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkQDQQBWCTcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkQDQQBWCTcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkQDQQBWCTcjs.RegisterAiTool; exports.RoomContext = _chunkQDQQBWCTcjs.RoomContext; exports.RoomProvider = _chunkQDQQBWCTcjs._RoomProvider; exports.createLiveblocksContext = _chunkQDQQBWCTcjs.createLiveblocksContext; exports.createRoomContext = _chunkQDQQBWCTcjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkQDQQBWCTcjs._useAddReaction; exports.useAiChat = _chunkQDQQBWCTcjs._useAiChat; exports.useAiChatMessages = _chunkQDQQBWCTcjs._useAiChatMessages; exports.useAiChats = _chunkQDQQBWCTcjs._useAiChats; exports.useAttachmentUrl = _chunkQDQQBWCTcjs.useAttachmentUrl; exports.useBroadcastEvent = _chunkQDQQBWCTcjs._useBroadcastEvent; exports.useCanRedo = _chunkQDQQBWCTcjs.useCanRedo; exports.useCanUndo = _chunkQDQQBWCTcjs.useCanUndo; exports.useClient = _chunkQDQQBWCTcjs.useClient; exports.useCreateAiChat = _chunkQDQQBWCTcjs.useCreateAiChat; exports.useCreateComment = _chunkQDQQBWCTcjs.useCreateComment; exports.useCreateThread = _chunkQDQQBWCTcjs._useCreateThread; exports.useDeleteAiChat = _chunkQDQQBWCTcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkQDQQBWCTcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkQDQQBWCTcjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkQDQQBWCTcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkQDQQBWCTcjs._useDeleteThread; exports.useEditComment = _chunkQDQQBWCTcjs.useEditComment; exports.useEditThreadMetadata = _chunkQDQQBWCTcjs._useEditThreadMetadata; exports.useErrorListener = _chunkQDQQBWCTcjs.useErrorListener; exports.useEventListener = _chunkQDQQBWCTcjs._useEventListener; exports.useHistory = _chunkQDQQBWCTcjs.useHistory; exports.useHistoryVersionData = _chunkQDQQBWCTcjs.useHistoryVersionData; exports.useHistoryVersions = _chunkQDQQBWCTcjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkQDQQBWCTcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkQDQQBWCTcjs.useInboxNotifications; exports.useIsInsideRoom = _chunkQDQQBWCTcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkQDQQBWCTcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkQDQQBWCTcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkQDQQBWCTcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkQDQQBWCTcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkQDQQBWCTcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkQDQQBWCTcjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkQDQQBWCTcjs._useMutation; exports.useMyPresence = _chunkQDQQBWCTcjs._useMyPresence; exports.useNotificationSettings = _chunkQDQQBWCTcjs.useNotificationSettings; exports.useOther = _chunkQDQQBWCTcjs._useOther; exports.useOthers = _chunkQDQQBWCTcjs._useOthers; exports.useOthersConnectionIds = _chunkQDQQBWCTcjs.useOthersConnectionIds; exports.useOthersListener = _chunkQDQQBWCTcjs._useOthersListener; exports.useOthersMapped = _chunkQDQQBWCTcjs._useOthersMapped; exports.useRedo = _chunkQDQQBWCTcjs.useRedo; exports.useRemoveReaction = _chunkQDQQBWCTcjs.useRemoveReaction; exports.useRoom = _chunkQDQQBWCTcjs._useRoom; exports.useRoomInfo = _chunkQDQQBWCTcjs.useRoomInfo; exports.useRoomSubscriptionSettings = _chunkQDQQBWCTcjs._useRoomSubscriptionSettings; exports.useSelf = _chunkQDQQBWCTcjs._useSelf; exports.useSendAiMessage = _chunkQDQQBWCTcjs.useSendAiMessage; exports.useStatus = _chunkQDQQBWCTcjs.useStatus; exports.useStorage = _chunkQDQQBWCTcjs._useStorage; exports.useStorageRoot = _chunkQDQQBWCTcjs._useStorageRoot; exports.useSubscribeToThread = _chunkQDQQBWCTcjs.useSubscribeToThread; exports.useSyncStatus = _chunkQDQQBWCTcjs.useSyncStatus; exports.useThreadSubscription = _chunkQDQQBWCTcjs.useThreadSubscription; exports.useThreads = _chunkQDQQBWCTcjs._useThreads; exports.useUndo = _chunkQDQQBWCTcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkQDQQBWCTcjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunkQDQQBWCTcjs.useUnsubscribeFromThread; exports.useUpdateMyPresence = _chunkQDQQBWCTcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkQDQQBWCTcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkQDQQBWCTcjs.useUpdateRoomSubscriptionSettings; exports.useUser = _chunkQDQQBWCTcjs._useUser; exports.useUserThreads_experimental = _chunkQDQQBWCTcjs._useUserThreads_experimental;
|
|
169
161
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","../src/index.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","../src/index.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;AC/EA,wCAA4B;AAU5B,4CAAsD;AAPtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADgF7C;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,mtJAAC","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 { MutationContext, UseThreadsOptions } 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"]}
|
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,
|
|
1
|
+
import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-BzmUELIi.cjs';
|
|
2
|
+
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, x as RoomContext, I as RoomProvider, U as UseThreadsOptions, z as createLiveblocksContext, H as createRoomContext, J as useAddReaction, aC as useAiChat, aE as useAiChatMessages, aD as useAiChats, ap as useAttachmentUrl, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, av as useCreateAiChat, P as useCreateComment, Q as useCreateThread, aw as useDeleteAiChat, A as useDeleteAllInboxNotifications, S as useDeleteComment, B as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, D as useErrorListener, a0 as useEventListener, a1 as useHistory, ah as useHistoryVersionData, aq as useHistoryVersions, _ as useInboxNotificationThread, as as useInboxNotifications, a2 as useIsInsideRoom, a3 as useLostConnectionListener, E as useMarkAllInboxNotificationsAsRead, F as useMarkInboxNotificationAsRead, a4 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a5 as useMutation, a6 as useMyPresence, at as useNotificationSettings, ai as useOther, aj as useOthers, ak as useOthersConnectionIds, a7 as useOthersListener, al as useOthersMapped, a8 as useRedo, a9 as useRemoveReaction, aa as useRoom, az as useRoomInfo, ar as useRoomSubscriptionSettings, am as useSelf, ax as useSendAiMessage, ab as useStatus, an as useStorage, ac as useStorageRoot, Z as useSubscribeToThread, G as useSyncStatus, ad as useThreadSubscription, ao as useThreads, ae as useUndo, aA as useUnreadInboxNotificationsCount, $ as useUnsubscribeFromThread, af as useUpdateMyPresence, au as useUpdateNotificationSettings, ag as useUpdateRoomSubscriptionSettings, aB as useUser, ay as useUserThreads_experimental } from './room-BzmUELIi.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,
|
|
1
|
+
import { R as RegisterAiKnowledgeProps, w as RegisterAiToolProps } from './room-BzmUELIi.js';
|
|
2
|
+
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, x as RoomContext, I as RoomProvider, U as UseThreadsOptions, z as createLiveblocksContext, H as createRoomContext, J as useAddReaction, aC as useAiChat, aE as useAiChatMessages, aD as useAiChats, ap as useAttachmentUrl, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, av as useCreateAiChat, P as useCreateComment, Q as useCreateThread, aw as useDeleteAiChat, A as useDeleteAllInboxNotifications, S as useDeleteComment, B as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, D as useErrorListener, a0 as useEventListener, a1 as useHistory, ah as useHistoryVersionData, aq as useHistoryVersions, _ as useInboxNotificationThread, as as useInboxNotifications, a2 as useIsInsideRoom, a3 as useLostConnectionListener, E as useMarkAllInboxNotificationsAsRead, F as useMarkInboxNotificationAsRead, a4 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a5 as useMutation, a6 as useMyPresence, at as useNotificationSettings, ai as useOther, aj as useOthers, ak as useOthersConnectionIds, a7 as useOthersListener, al as useOthersMapped, a8 as useRedo, a9 as useRemoveReaction, aa as useRoom, az as useRoomInfo, ar as useRoomSubscriptionSettings, am as useSelf, ax as useSendAiMessage, ab as useStatus, an as useStorage, ac as useStorageRoot, Z as useSubscribeToThread, G as useSyncStatus, ad as useThreadSubscription, ao as useThreads, ae as useUndo, aA as useUnreadInboxNotificationsCount, $ as useUnsubscribeFromThread, af as useUpdateMyPresence, au as useUpdateNotificationSettings, ag as useUpdateRoomSubscriptionSettings, aB as useUser, ay as useUserThreads_experimental } from './room-BzmUELIi.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-5HFQCHWK.js";
|
|
7
7
|
import {
|
|
8
8
|
ClientContext,
|
|
9
9
|
LiveblocksProvider,
|
|
@@ -30,7 +30,6 @@ import {
|
|
|
30
30
|
_useOthersListener,
|
|
31
31
|
_useOthersMapped,
|
|
32
32
|
_useRoom,
|
|
33
|
-
_useRoomNotificationSettings,
|
|
34
33
|
_useRoomSubscriptionSettings,
|
|
35
34
|
_useSelf,
|
|
36
35
|
_useStorage,
|
|
@@ -42,7 +41,6 @@ import {
|
|
|
42
41
|
createLiveblocksContext,
|
|
43
42
|
createRoomContext,
|
|
44
43
|
useAttachmentUrl,
|
|
45
|
-
useBatch,
|
|
46
44
|
useCanRedo,
|
|
47
45
|
useCanUndo,
|
|
48
46
|
useClient,
|
|
@@ -70,7 +68,6 @@ import {
|
|
|
70
68
|
useRoomInfo,
|
|
71
69
|
useSendAiMessage,
|
|
72
70
|
useStatus,
|
|
73
|
-
useStorageStatus,
|
|
74
71
|
useSubscribeToThread,
|
|
75
72
|
useSyncStatus,
|
|
76
73
|
useThreadSubscription,
|
|
@@ -78,9 +75,8 @@ import {
|
|
|
78
75
|
useUnreadInboxNotificationsCount,
|
|
79
76
|
useUnsubscribeFromThread,
|
|
80
77
|
useUpdateNotificationSettings,
|
|
81
|
-
useUpdateRoomNotificationSettings,
|
|
82
78
|
useUpdateRoomSubscriptionSettings
|
|
83
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-PJG72DS4.js";
|
|
84
80
|
|
|
85
81
|
// src/index.ts
|
|
86
82
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -103,7 +99,6 @@ export {
|
|
|
103
99
|
_useAiChatMessages as useAiChatMessages,
|
|
104
100
|
_useAiChats as useAiChats,
|
|
105
101
|
useAttachmentUrl,
|
|
106
|
-
useBatch,
|
|
107
102
|
_useBroadcastEvent as useBroadcastEvent,
|
|
108
103
|
useCanRedo,
|
|
109
104
|
useCanUndo,
|
|
@@ -144,14 +139,12 @@ export {
|
|
|
144
139
|
useRemoveReaction,
|
|
145
140
|
_useRoom as useRoom,
|
|
146
141
|
useRoomInfo,
|
|
147
|
-
_useRoomNotificationSettings as useRoomNotificationSettings,
|
|
148
142
|
_useRoomSubscriptionSettings as useRoomSubscriptionSettings,
|
|
149
143
|
_useSelf as useSelf,
|
|
150
144
|
useSendAiMessage,
|
|
151
145
|
useStatus,
|
|
152
146
|
_useStorage as useStorage,
|
|
153
147
|
_useStorageRoot as useStorageRoot,
|
|
154
|
-
useStorageStatus,
|
|
155
148
|
useSubscribeToThread,
|
|
156
149
|
useSyncStatus,
|
|
157
150
|
useThreadSubscription,
|
|
@@ -161,7 +154,6 @@ export {
|
|
|
161
154
|
useUnsubscribeFromThread,
|
|
162
155
|
_useUpdateMyPresence as useUpdateMyPresence,
|
|
163
156
|
useUpdateNotificationSettings,
|
|
164
|
-
useUpdateRoomNotificationSettings,
|
|
165
157
|
useUpdateRoomSubscriptionSettings,
|
|
166
158
|
_useUser as useUser,
|
|
167
159
|
_useUserThreads_experimental as useUserThreads_experimental
|
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 {
|
|
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 { MutationContext, UseThreadsOptions } 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAU5B,SAAS,SAAS,oCAAoC;AAPtD,YAAY,UAAU,aAAa,UAAU;","names":[]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ComponentType, Context, PropsWithChildren, ReactNode } from 'react';
|
|
3
|
-
import { BaseUserMeta, Client, JsonObject, LsonObject, LiveObject, User, Json, RoomSubscriptionSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, ClientOptions,
|
|
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,
|
|
5
|
+
import { OpaqueClient, OpaqueRoom, AiKnowledgeSource, AiOpaqueToolDefinition, BaseMetadata, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, NotificationSettings, Relax, ToImmutable, PartialNotificationSettings, AsyncLoading, AsyncError, ThreadData, HistoryVersion, AiChat, Client as Client$1, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, WithNavigation, AiChatMessage, 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';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -63,8 +63,6 @@ type SendAiMessageOptions = {
|
|
|
63
63
|
*/
|
|
64
64
|
copilotId?: string;
|
|
65
65
|
};
|
|
66
|
-
type UseStorageStatusOptions = UseSyncStatusOptions;
|
|
67
|
-
type StorageStatusSuccess = Exclude<StorageStatus, "not-loaded" | "loading">;
|
|
68
66
|
type ThreadsQuery<M extends BaseMetadata> = {
|
|
69
67
|
/**
|
|
70
68
|
* Whether to only return threads marked as resolved or unresolved. If not provided,
|
|
@@ -387,16 +385,6 @@ type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U exten
|
|
|
387
385
|
* a re-render whenever it changes. Can be used to render a status badge.
|
|
388
386
|
*/
|
|
389
387
|
useStatus(): Status;
|
|
390
|
-
/**
|
|
391
|
-
* @deprecated It's recommended to use `useMutation` for writing to Storage,
|
|
392
|
-
* which will automatically batch all mutations.
|
|
393
|
-
*
|
|
394
|
-
* Returns a function that batches modifications made during the given function.
|
|
395
|
-
* All the modifications are sent to other clients in a single message.
|
|
396
|
-
* All the modifications are merged in a single history item (undo/redo).
|
|
397
|
-
* All the subscribers are called only after the batch is over.
|
|
398
|
-
*/
|
|
399
|
-
useBatch<T>(): (callback: () => T) => T;
|
|
400
388
|
/**
|
|
401
389
|
* Returns a callback that lets you broadcast custom events to other users in the room
|
|
402
390
|
*
|
|
@@ -754,13 +742,6 @@ type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U exten
|
|
|
754
742
|
* removeReaction({ threadId: "th_xxx", commentId: "cm_xxx", emoji: "👍" })
|
|
755
743
|
*/
|
|
756
744
|
useRemoveReaction(): (options: CommentReactionOptions) => void;
|
|
757
|
-
/**
|
|
758
|
-
* @deprecated Renamed to `useUpdateRoomSubscriptionSettings`
|
|
759
|
-
*
|
|
760
|
-
* Returns a function that updates the user's subscription settings
|
|
761
|
-
* for the current room.
|
|
762
|
-
*/
|
|
763
|
-
useUpdateRoomNotificationSettings(): (settings: Partial<RoomSubscriptionSettings>) => void;
|
|
764
745
|
/**
|
|
765
746
|
* Returns a function that updates the user's subscription settings
|
|
766
747
|
* for the current room.
|
|
@@ -788,14 +769,6 @@ type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U exten
|
|
|
788
769
|
useThreadSubscription(threadId: string): ThreadSubscription;
|
|
789
770
|
};
|
|
790
771
|
type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends BaseUserMeta, E extends Json, M extends BaseMetadata> = Resolve<RoomContextBundleCommon<P, S, U, E, M> & SharedContextBundle<U>["classic"] & {
|
|
791
|
-
/**
|
|
792
|
-
* Returns the current storage status for the Room, and triggers
|
|
793
|
-
* a re-render whenever it changes. Can be used to render a "Saving..."
|
|
794
|
-
* indicator.
|
|
795
|
-
*
|
|
796
|
-
* @deprecated Prefer useSyncStatus()
|
|
797
|
-
*/
|
|
798
|
-
useStorageStatus(options?: UseStorageStatusOptions): StorageStatus;
|
|
799
772
|
/**
|
|
800
773
|
* Extract arbitrary data from the Liveblocks Storage state, using an
|
|
801
774
|
* arbitrary selector function.
|
|
@@ -857,16 +830,6 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
857
830
|
* const { threads, error, isLoading } = useThreads();
|
|
858
831
|
*/
|
|
859
832
|
useThreads(options?: UseThreadsOptions<M>): ThreadsAsyncResult<M>;
|
|
860
|
-
/**
|
|
861
|
-
* @deprecated Renamed to `useRoomSubscriptionSettings`
|
|
862
|
-
*
|
|
863
|
-
* Returns the user's notification settings for the current room
|
|
864
|
-
* and a function to update them.
|
|
865
|
-
*/
|
|
866
|
-
useRoomNotificationSettings(): [
|
|
867
|
-
RoomSubscriptionSettingsAsyncResult,
|
|
868
|
-
(settings: Partial<RoomSubscriptionSettings>) => void
|
|
869
|
-
];
|
|
870
833
|
/**
|
|
871
834
|
* Returns the user's subscription settings for the current room
|
|
872
835
|
* and a function to update them.
|
|
@@ -900,14 +863,6 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
900
863
|
*/
|
|
901
864
|
useHistoryVersionData(id: string): HistoryVersionDataAsyncResult;
|
|
902
865
|
suspense: Resolve<RoomContextBundleCommon<P, S, U, E, M> & SharedContextBundle<U>["suspense"] & {
|
|
903
|
-
/**
|
|
904
|
-
* Returns the current storage status for the Room, and triggers
|
|
905
|
-
* a re-render whenever it changes. Can be used to render a "Saving..."
|
|
906
|
-
* indicator.
|
|
907
|
-
*
|
|
908
|
-
* @deprecated Prefer useSyncStatus()
|
|
909
|
-
*/
|
|
910
|
-
useStorageStatus(options?: UseStorageStatusOptions): StorageStatusSuccess;
|
|
911
866
|
/**
|
|
912
867
|
* Extract arbitrary data from the Liveblocks Storage state, using an
|
|
913
868
|
* arbitrary selector function.
|
|
@@ -970,16 +925,6 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
970
925
|
* const { versions } = useHistoryVersions();
|
|
971
926
|
*/
|
|
972
927
|
useHistoryVersions(): HistoryVersionsAsyncSuccess;
|
|
973
|
-
/**
|
|
974
|
-
* @deprecated Renamed to `useRoomSubscriptionSettings`
|
|
975
|
-
*
|
|
976
|
-
* Returns the user's notification settings for the current room
|
|
977
|
-
* and a function to update them.
|
|
978
|
-
*/
|
|
979
|
-
useRoomNotificationSettings(): [
|
|
980
|
-
RoomSubscriptionSettingsAsyncSuccess,
|
|
981
|
-
(settings: Partial<RoomSubscriptionSettings>) => void
|
|
982
|
-
];
|
|
983
928
|
/**
|
|
984
929
|
* Returns the user's subscription settings for the current room
|
|
985
930
|
* and a function to update them.
|
|
@@ -1919,27 +1864,12 @@ declare function useCreateTextMention(): (userId: string, mentionId: string) =>
|
|
|
1919
1864
|
/** @private - Internal API, do not rely on it. */
|
|
1920
1865
|
declare function useDeleteTextMention(): (mentionId: string) => void;
|
|
1921
1866
|
/** @private - Internal API, do not rely on it. */
|
|
1922
|
-
declare function useResolveMentionSuggestions(): ((args: _liveblocks_core.ResolveMentionSuggestionsArgs) => _liveblocks_core.Awaitable<string[]>) | undefined;
|
|
1867
|
+
declare function useResolveMentionSuggestions(): ((args: _liveblocks_core.ResolveMentionSuggestionsArgs) => _liveblocks_core.Awaitable<string[] | _liveblocks_core.MentionData[]>) | undefined;
|
|
1923
1868
|
/** @private - Internal API, do not rely on it. */
|
|
1924
|
-
declare function useMentionSuggestionsCache(): Map<string,
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
* indicator.
|
|
1929
|
-
*
|
|
1930
|
-
* @deprecated Prefer useSyncStatus()
|
|
1931
|
-
*/
|
|
1932
|
-
declare function useStorageStatus(options?: UseStorageStatusOptions): StorageStatus$1;
|
|
1933
|
-
/**
|
|
1934
|
-
* @deprecated It's recommended to use `useMutation` for writing to Storage,
|
|
1935
|
-
* which will automatically batch all mutations.
|
|
1936
|
-
*
|
|
1937
|
-
* Returns a function that batches modifications made during the given function.
|
|
1938
|
-
* All the modifications are sent to other clients in a single message.
|
|
1939
|
-
* All the modifications are merged in a single history item (undo/redo).
|
|
1940
|
-
* All the subscribers are called only after the batch is over.
|
|
1941
|
-
*/
|
|
1942
|
-
declare function useBatch<T>(): (callback: () => T) => T;
|
|
1869
|
+
declare function useMentionSuggestionsCache(): Map<string, {
|
|
1870
|
+
kind: "user";
|
|
1871
|
+
id: string;
|
|
1872
|
+
}[]>;
|
|
1943
1873
|
/**
|
|
1944
1874
|
* Get informed when reconnecting to the Liveblocks servers is taking
|
|
1945
1875
|
* longer than usual. This typically is a sign of a client that has lost
|
|
@@ -2128,13 +2058,6 @@ declare function useRoomThreadSubscription(roomId: string, threadId: string): Th
|
|
|
2128
2058
|
* const {data} = useHistoryVersionData(versionId);
|
|
2129
2059
|
*/
|
|
2130
2060
|
declare function useHistoryVersionData(versionId: string): HistoryVersionDataAsyncResult;
|
|
2131
|
-
/**
|
|
2132
|
-
* @deprecated Renamed to `useUpdateRoomSubscriptionSettings`
|
|
2133
|
-
*
|
|
2134
|
-
* Returns a function that updates the user's subscription settings
|
|
2135
|
-
* for the current room.
|
|
2136
|
-
*/
|
|
2137
|
-
declare function useUpdateRoomNotificationSettings(): (settings: Partial<RoomSubscriptionSettings$1>) => void;
|
|
2138
2061
|
/**
|
|
2139
2062
|
* Returns a function that updates the user's subscription settings
|
|
2140
2063
|
* for the current room.
|
|
@@ -2159,14 +2082,6 @@ declare function useUpdateRoomSubscriptionSettings(): (settings: Partial<RoomSub
|
|
|
2159
2082
|
* // [2, 4, 7]
|
|
2160
2083
|
*/
|
|
2161
2084
|
declare function useOthersConnectionIdsSuspense(): readonly number[];
|
|
2162
|
-
/**
|
|
2163
|
-
* Returns the current storage status for the Room, and triggers
|
|
2164
|
-
* a re-render whenever it changes. Can be used to render a "Saving..."
|
|
2165
|
-
* indicator.
|
|
2166
|
-
*
|
|
2167
|
-
* @deprecated Prefer useSyncStatus()
|
|
2168
|
-
*/
|
|
2169
|
-
declare function useStorageStatusSuspense(options?: UseStorageStatusOptions): StorageStatusSuccess;
|
|
2170
2085
|
/**
|
|
2171
2086
|
* Returns a presigned URL for an attachment by its ID.
|
|
2172
2087
|
*
|
|
@@ -2412,13 +2327,6 @@ declare const _useThreads: TypedBundle["useThreads"];
|
|
|
2412
2327
|
* const { threads } = useThreads();
|
|
2413
2328
|
*/
|
|
2414
2329
|
declare const _useThreadsSuspense: TypedBundle["suspense"]["useThreads"];
|
|
2415
|
-
/**
|
|
2416
|
-
* @deprecated Renamed to `useRoomSubscriptionSettings`
|
|
2417
|
-
*
|
|
2418
|
-
* Returns the user's subscription settings for the current room
|
|
2419
|
-
* and a function to update them.
|
|
2420
|
-
*/
|
|
2421
|
-
declare const _useRoomNotificationSettings: TypedBundle["useRoomNotificationSettings"];
|
|
2422
2330
|
/**
|
|
2423
2331
|
* Returns the user's subscription settings for the current room
|
|
2424
2332
|
* and a function to update them.
|
|
@@ -2427,13 +2335,6 @@ declare const _useRoomNotificationSettings: TypedBundle["useRoomNotificationSett
|
|
|
2427
2335
|
* const [{ settings }, updateSettings] = useRoomSubscriptionSettings();
|
|
2428
2336
|
*/
|
|
2429
2337
|
declare const _useRoomSubscriptionSettings: TypedBundle["useRoomSubscriptionSettings"];
|
|
2430
|
-
/**
|
|
2431
|
-
* @deprecated Renamed to `useRoomSubscriptionSettings`
|
|
2432
|
-
*
|
|
2433
|
-
* Returns the user's subscription settings for the current room
|
|
2434
|
-
* and a function to update them.
|
|
2435
|
-
*/
|
|
2436
|
-
declare const _useRoomNotificationSettingsSuspense: TypedBundle["suspense"]["useRoomNotificationSettings"];
|
|
2437
2338
|
/**
|
|
2438
2339
|
* Returns the user's subscription settings for the current room
|
|
2439
2340
|
* and a function to update them.
|
|
@@ -2683,4 +2584,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
2683
2584
|
*/
|
|
2684
2585
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
2685
2586
|
|
|
2686
|
-
export {
|
|
2587
|
+
export { useUnsubscribeFromThread as $, useDeleteAllInboxNotifications as A, useDeleteInboxNotification as B, ClientContext as C, useErrorListener as D, useMarkAllInboxNotificationsAsRead as E, useMarkInboxNotificationAsRead as F, useSyncStatus as G, createRoomContext as H, _RoomProvider as I, _useAddReaction as J, _useBroadcastEvent as K, LiveblocksProvider as L, type MutationContext as M, useCanRedo as N, useCanUndo as O, useCreateComment as P, _useCreateThread as Q, type RegisterAiKnowledgeProps as R, useDeleteComment as S, _useDeleteThread as T, type UseThreadsOptions as U, useEditComment as V, _useEditThreadMetadata as W, useMarkThreadAsResolved as X, useMarkThreadAsUnresolved as Y, useSubscribeToThread as Z, _useInboxNotificationThread as _, useAddRoomCommentReaction as a, _useEventListener as a0, useHistory as a1, _useIsInsideRoom as a2, useLostConnectionListener as a3, useMarkThreadAsRead as a4, _useMutation as a5, _useMyPresence as a6, _useOthersListener as a7, useRedo as a8, useRemoveReaction as a9, useUnreadInboxNotificationsCount as aA, _useUser as aB, _useAiChat as aC, _useAiChats as aD, _useAiChatMessages as aE, _useOtherSuspense as aF, _useOthersSuspense as aG, useOthersConnectionIdsSuspense as aH, _useOthersMappedSuspense as aI, _useSelfSuspense as aJ, _useStorageSuspense as aK, _useThreadsSuspense as aL, useAttachmentUrlSuspense as aM, _useHistoryVersionsSuspense as aN, _useRoomSubscriptionSettingsSuspense as aO, useInboxNotificationsSuspense as aP, useNotificationSettingsSuspense as aQ, useRoomInfoSuspense as aR, useUnreadInboxNotificationsCountSuspense as aS, _useUserSuspense as aT, _useUserThreadsSuspense_experimental as aU, _useAiChatsSuspense as aV, _useAiChatMessagesSuspense as aW, _useAiChatSuspense as aX, _useRoom as aa, useStatus as ab, _useStorageRoot as ac, useThreadSubscription as ad, useUndo as ae, _useUpdateMyPresence as af, useUpdateRoomSubscriptionSettings as ag, useHistoryVersionData as ah, _useOther as ai, _useOthers as aj, useOthersConnectionIds as ak, _useOthersMapped as al, _useSelf as am, _useStorage as an, _useThreads as ao, useAttachmentUrl as ap, _useHistoryVersions as aq, _useRoomSubscriptionSettings as ar, useInboxNotifications as as, useNotificationSettings as at, useUpdateNotificationSettings as au, useCreateAiChat as av, useDeleteAiChat as aw, useSendAiMessage as ax, _useUserThreads_experimental as ay, useRoomInfo as az, useCreateRoomComment as b, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useMarkRoomThreadAsRead as k, useMarkRoomThreadAsResolved as l, useMarkRoomThreadAsUnresolved as m, useMentionSuggestionsCache as n, useRemoveRoomCommentReaction as o, useReportTextEditor as p, useResolveMentionSuggestions as q, useRoomAttachmentUrl as r, useRoomPermissions as s, useRoomThreadSubscription as t, useClientOrNull as u, useYjsProvider as v, type RegisterAiToolProps as w, RoomContext as x, useClient as y, createLiveblocksContext as z };
|