@liveblocks/react 3.24.0 → 3.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_private.cjs +7 -7
- package/dist/_private.d.cts +2 -2
- package/dist/_private.d.ts +2 -2
- package/dist/_private.js +1 -1
- package/dist/{chunk-JMMTB4CU.js → chunk-CWB7CP45.js} +35 -7
- package/dist/chunk-CWB7CP45.js.map +1 -0
- package/dist/{chunk-SPZHRPMG.cjs → chunk-FIURWYUG.cjs} +36 -8
- package/dist/chunk-FIURWYUG.cjs.map +1 -0
- package/dist/{chunk-H5CM5HAY.js → chunk-FYR2MRJA.js} +2 -2
- package/dist/{chunk-FMJDYJXK.cjs → chunk-PJLPYU5S.cjs} +2 -2
- package/dist/{chunk-FMJDYJXK.cjs.map → chunk-PJLPYU5S.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-DUr5FIYB.d.cts → room-BegSE2IR.d.cts} +69 -5
- package/dist/{room-DUr5FIYB.d.ts → room-BegSE2IR.d.ts} +69 -5
- 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-JMMTB4CU.js.map +0 -1
- package/dist/chunk-SPZHRPMG.cjs.map +0 -1
- /package/dist/{chunk-H5CM5HAY.js.map → chunk-FYR2MRJA.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/version.ts
|
|
2
2
|
var PKG_NAME = "@liveblocks/react";
|
|
3
|
-
var PKG_VERSION = "3.24.
|
|
3
|
+
var PKG_VERSION = "3.24.1";
|
|
4
4
|
var PKG_FORMAT = "esm";
|
|
5
5
|
|
|
6
6
|
// src/ClientSideSuspense.tsx
|
|
@@ -20,4 +20,4 @@ export {
|
|
|
20
20
|
PKG_FORMAT,
|
|
21
21
|
ClientSideSuspense
|
|
22
22
|
};
|
|
23
|
-
//# sourceMappingURL=chunk-
|
|
23
|
+
//# sourceMappingURL=chunk-FYR2MRJA.js.map
|
|
@@ -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.24.
|
|
3
|
+
var PKG_VERSION = "3.24.1";
|
|
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-PJLPYU5S.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-PJLPYU5S.cjs","../src/version.ts","../src/ClientSideSuspense.tsx"],"names":[],"mappings":"AAAA;ACGO,IAAM,SAAA,EAAW,mBAAA;AACjB,IAAM,YAAA,EAAiD,QAAA;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-PJLPYU5S.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 _chunkPJLPYU5Scjs = require('./chunk-PJLPYU5S.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -95,12 +95,14 @@ var _chunkFMJDYJXKcjs = require('./chunk-FMJDYJXK.cjs');
|
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
|
|
98
|
-
|
|
98
|
+
|
|
99
|
+
var _chunkFIURWYUGcjs = require('./chunk-FIURWYUG.cjs');
|
|
99
100
|
|
|
100
101
|
// src/index.ts
|
|
101
102
|
var _core = require('@liveblocks/core');
|
|
102
103
|
var _client = require('@liveblocks/client');
|
|
103
|
-
_core.detectDupes.call(void 0,
|
|
104
|
+
_core.detectDupes.call(void 0, _chunkPJLPYU5Scjs.PKG_NAME, _chunkPJLPYU5Scjs.PKG_VERSION, _chunkPJLPYU5Scjs.PKG_FORMAT);
|
|
105
|
+
|
|
104
106
|
|
|
105
107
|
|
|
106
108
|
|
|
@@ -195,5 +197,5 @@ _core.detectDupes.call(void 0, _chunkFMJDYJXKcjs.PKG_NAME, _chunkFMJDYJXKcjs.PKG
|
|
|
195
197
|
|
|
196
198
|
|
|
197
199
|
|
|
198
|
-
exports.ClientContext =
|
|
200
|
+
exports.ClientContext = _chunkFIURWYUGcjs.ClientContext; exports.ClientSideSuspense = _chunkPJLPYU5Scjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkFIURWYUGcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkFIURWYUGcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkFIURWYUGcjs.RegisterAiTool; exports.RoomContext = _chunkFIURWYUGcjs.GlobalRoomContext; exports.RoomProvider = _chunkFIURWYUGcjs._RoomProvider; exports.createLiveblocksContext = _chunkFIURWYUGcjs.createLiveblocksContext; exports.createRoomContext = _chunkFIURWYUGcjs.createRoomContext; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkFIURWYUGcjs._useAddReaction; exports.useAiChat = _chunkFIURWYUGcjs._useAiChat; exports.useAiChatMessages = _chunkFIURWYUGcjs._useAiChatMessages; exports.useAiChatStatus = _chunkFIURWYUGcjs.useAiChatStatus; exports.useAiChats = _chunkFIURWYUGcjs._useAiChats; exports.useAttachmentUrl = _chunkFIURWYUGcjs.useAttachmentUrl; exports.useBroadcastEvent = _chunkFIURWYUGcjs._useBroadcastEvent; exports.useCanRedo = _chunkFIURWYUGcjs.useCanRedo; exports.useCanUndo = _chunkFIURWYUGcjs.useCanUndo; exports.useClient = _chunkFIURWYUGcjs.useClient; exports.useCreateAiChat = _chunkFIURWYUGcjs.useCreateAiChat; exports.useCreateComment = _chunkFIURWYUGcjs._useCreateComment; exports.useCreateFeed = _chunkFIURWYUGcjs.useCreateFeed; exports.useCreateFeedMessage = _chunkFIURWYUGcjs.useCreateFeedMessage; exports.useCreateThread = _chunkFIURWYUGcjs._useCreateThread; exports.useDeleteAiChat = _chunkFIURWYUGcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkFIURWYUGcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkFIURWYUGcjs.useDeleteComment; exports.useDeleteFeed = _chunkFIURWYUGcjs.useDeleteFeed; exports.useDeleteFeedMessage = _chunkFIURWYUGcjs.useDeleteFeedMessage; exports.useDeleteHistoryVersion = _chunkFIURWYUGcjs.useDeleteHistoryVersion; exports.useDeleteInboxNotification = _chunkFIURWYUGcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkFIURWYUGcjs._useDeleteThread; exports.useEditComment = _chunkFIURWYUGcjs._useEditComment; exports.useEditCommentMetadata = _chunkFIURWYUGcjs._useEditCommentMetadata; exports.useEditThreadMetadata = _chunkFIURWYUGcjs._useEditThreadMetadata; exports.useErrorListener = _chunkFIURWYUGcjs.useErrorListener; exports.useEventListener = _chunkFIURWYUGcjs._useEventListener; exports.useFeedMessages = _chunkFIURWYUGcjs._useFeedMessages; exports.useFeeds = _chunkFIURWYUGcjs._useFeeds; exports.useFileUrl = _chunkFIURWYUGcjs.useFileUrl; exports.useGroupInfo = _chunkFIURWYUGcjs.useGroupInfo; exports.useHistory = _chunkFIURWYUGcjs.useHistory; exports.useHistoryVersionData = _chunkFIURWYUGcjs.useHistoryVersionData; exports.useHistoryVersionStorageData = _chunkFIURWYUGcjs.useHistoryVersionStorageData; exports.useHistoryVersionYjsData = _chunkFIURWYUGcjs.useHistoryVersionYjsData; exports.useHistoryVersions = _chunkFIURWYUGcjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkFIURWYUGcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkFIURWYUGcjs.useInboxNotifications; exports.useIsInsideRoom = _chunkFIURWYUGcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkFIURWYUGcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkFIURWYUGcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkFIURWYUGcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkFIURWYUGcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkFIURWYUGcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkFIURWYUGcjs.useMarkThreadAsUnresolved; exports.useMutableStorage = _chunkFIURWYUGcjs._useMutableStorage; exports.useMutation = _chunkFIURWYUGcjs._useMutation; exports.useMyPresence = _chunkFIURWYUGcjs._useMyPresence; exports.useNotificationSettings = _chunkFIURWYUGcjs.useNotificationSettings; exports.useOther = _chunkFIURWYUGcjs._useOther; exports.useOthers = _chunkFIURWYUGcjs._useOthers; exports.useOthersConnectionIds = _chunkFIURWYUGcjs.useOthersConnectionIds; exports.useOthersListener = _chunkFIURWYUGcjs._useOthersListener; exports.useOthersMapped = _chunkFIURWYUGcjs._useOthersMapped; exports.useRedo = _chunkFIURWYUGcjs.useRedo; exports.useRemoveReaction = _chunkFIURWYUGcjs.useRemoveReaction; exports.useRestoreToStorageVersion = _chunkFIURWYUGcjs.useRestoreToStorageVersion; exports.useRoom = _chunkFIURWYUGcjs._useRoom; exports.useRoomInfo = _chunkFIURWYUGcjs.useRoomInfo; exports.useRoomSubscriptionSettings = _chunkFIURWYUGcjs._useRoomSubscriptionSettings; exports.useSearchComments = _chunkFIURWYUGcjs._useSearchComments; exports.useSelf = _chunkFIURWYUGcjs._useSelf; exports.useSendAiMessage = _chunkFIURWYUGcjs.useSendAiMessage; exports.useStatus = _chunkFIURWYUGcjs.useStatus; exports.useStorage = _chunkFIURWYUGcjs._useStorage; exports.useStorageRoot = _chunkFIURWYUGcjs._useStorageRoot; exports.useSubscribeToThread = _chunkFIURWYUGcjs.useSubscribeToThread; exports.useSyncStatus = _chunkFIURWYUGcjs.useSyncStatus; exports.useThreadSubscription = _chunkFIURWYUGcjs.useThreadSubscription; exports.useThreads = _chunkFIURWYUGcjs._useThreads; exports.useUndo = _chunkFIURWYUGcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkFIURWYUGcjs.useUnreadInboxNotificationsCount; exports.useUnsubscribeFromThread = _chunkFIURWYUGcjs.useUnsubscribeFromThread; exports.useUpdateFeedMessage = _chunkFIURWYUGcjs.useUpdateFeedMessage; exports.useUpdateFeedMetadata = _chunkFIURWYUGcjs.useUpdateFeedMetadata; exports.useUpdateMyPresence = _chunkFIURWYUGcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkFIURWYUGcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkFIURWYUGcjs.useUpdateRoomSubscriptionSettings; exports.useUploadFile = _chunkFIURWYUGcjs.useUploadFile; exports.useUrlMetadata = _chunkFIURWYUGcjs._useUrlMetadata; exports.useUser = _chunkFIURWYUGcjs._useUser; exports.useUserThreads_experimental = _chunkFIURWYUGcjs._useUserThreads_experimental;
|
|
199
201
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","../src/index.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;ACnGA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;ADoG7C;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,2gMAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.cjs","sourcesContent":[null,"/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseSendAiMessageOptions,\n UseThreadsOptions,\n SendAiMessageOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow, isNotificationChannelEnabled } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport {\n ClientContext,\n GlobalRoomContext as RoomContext,\n useClient,\n} 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 useEditCommentMetadata,\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 useUploadFile,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n useHistoryVersionData,\n useHistoryVersionStorageData,\n useHistoryVersionYjsData,\n useDeleteHistoryVersion,\n useRestoreToStorageVersion,\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 useMutableStorage,\n useStorage,\n useThreads,\n useFeeds,\n useFeedMessages,\n useCreateFeed,\n useDeleteFeed,\n useUpdateFeedMetadata,\n useCreateFeedMessage,\n useDeleteFeedMessage,\n useUpdateFeedMessage,\n useSearchComments,\n useAttachmentUrl,\n useFileUrl,\n useHistoryVersions,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useGroupInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n useAiChatStatus,\n useUrlMetadata,\n} from \"./liveblocks\";\n"]}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RegisterAiKnowledgeProps, A as RegisterAiToolProps } from './room-
|
|
2
|
-
export { B as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, D as RoomContext, _ as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, E as UseThreadsOptions, F as createLiveblocksContext, H as createRoomContext, I as useAddReaction, J as useAiChat, K as useAiChatMessages, N as useAiChatStatus, O as useAiChats, P as useAttachmentUrl, Q as useBroadcastEvent, T as useCanRedo, V as useCanUndo, W as useClient, X as useCreateAiChat, Y as useCreateComment, Z as useCreateFeed, $ as useCreateFeedMessage, a0 as useCreateThread, a1 as useDeleteAiChat, a2 as useDeleteAllInboxNotifications, a3 as useDeleteComment, a4 as useDeleteFeed, a5 as useDeleteFeedMessage, a6 as useDeleteHistoryVersion, a7 as useDeleteInboxNotification, a8 as useDeleteThread, a9 as useEditComment, aa as useEditCommentMetadata, ab as useEditThreadMetadata, ac as useErrorListener, ad as useEventListener, ae as useFeedMessages, af as useFeeds, ag as useFileUrl, ah as useGroupInfo, ai as useHistory, aj as useHistoryVersionData, ak as useHistoryVersionStorageData, al as useHistoryVersionYjsData, am as useHistoryVersions, an as useInboxNotificationThread, ao as useInboxNotifications, ap as useIsInsideRoom, aq as useLostConnectionListener, ar as useMarkAllInboxNotificationsAsRead, as as useMarkInboxNotificationAsRead, at as useMarkThreadAsRead, au as useMarkThreadAsResolved, av as useMarkThreadAsUnresolved, aw as
|
|
1
|
+
import { R as RegisterAiKnowledgeProps, A as RegisterAiToolProps } from './room-BegSE2IR.cjs';
|
|
2
|
+
export { B as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, D as RoomContext, _ as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, E as UseThreadsOptions, F as createLiveblocksContext, H as createRoomContext, I as useAddReaction, J as useAiChat, K as useAiChatMessages, N as useAiChatStatus, O as useAiChats, P as useAttachmentUrl, Q as useBroadcastEvent, T as useCanRedo, V as useCanUndo, W as useClient, X as useCreateAiChat, Y as useCreateComment, Z as useCreateFeed, $ as useCreateFeedMessage, a0 as useCreateThread, a1 as useDeleteAiChat, a2 as useDeleteAllInboxNotifications, a3 as useDeleteComment, a4 as useDeleteFeed, a5 as useDeleteFeedMessage, a6 as useDeleteHistoryVersion, a7 as useDeleteInboxNotification, a8 as useDeleteThread, a9 as useEditComment, aa as useEditCommentMetadata, ab as useEditThreadMetadata, ac as useErrorListener, ad as useEventListener, ae as useFeedMessages, af as useFeeds, ag as useFileUrl, ah as useGroupInfo, ai as useHistory, aj as useHistoryVersionData, ak as useHistoryVersionStorageData, al as useHistoryVersionYjsData, am as useHistoryVersions, an as useInboxNotificationThread, ao as useInboxNotifications, ap as useIsInsideRoom, aq as useLostConnectionListener, ar as useMarkAllInboxNotificationsAsRead, as as useMarkInboxNotificationAsRead, at as useMarkThreadAsRead, au as useMarkThreadAsResolved, av as useMarkThreadAsUnresolved, aw as useMutableStorage, ax as useMutation, ay as useMyPresence, az as useNotificationSettings, aA as useOther, aB as useOthers, aC as useOthersConnectionIds, aD as useOthersListener, aE as useOthersMapped, aF as useRedo, aG as useRemoveReaction, aH as useRestoreToStorageVersion, aI as useRoom, aJ as useRoomInfo, aK as useRoomSubscriptionSettings, aL as useSearchComments, aM as useSelf, aN as useSendAiMessage, aO as useStatus, aP as useStorage, aQ as useStorageRoot, aR as useSubscribeToThread, aS as useSyncStatus, aT as useThreadSubscription, aU as useThreads, aV as useUndo, aW as useUnreadInboxNotificationsCount, aX as useUnsubscribeFromThread, aY as useUpdateFeedMessage, aZ as useUpdateFeedMetadata, a_ as useUpdateMyPresence, a$ as useUpdateNotificationSettings, b0 as useUpdateRoomSubscriptionSettings, b1 as useUploadFile, b2 as useUrlMetadata, b3 as useUser, b4 as useUserThreads_experimental } from './room-BegSE2IR.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, A as RegisterAiToolProps } from './room-
|
|
2
|
-
export { B as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, D as RoomContext, _ as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, E as UseThreadsOptions, F as createLiveblocksContext, H as createRoomContext, I as useAddReaction, J as useAiChat, K as useAiChatMessages, N as useAiChatStatus, O as useAiChats, P as useAttachmentUrl, Q as useBroadcastEvent, T as useCanRedo, V as useCanUndo, W as useClient, X as useCreateAiChat, Y as useCreateComment, Z as useCreateFeed, $ as useCreateFeedMessage, a0 as useCreateThread, a1 as useDeleteAiChat, a2 as useDeleteAllInboxNotifications, a3 as useDeleteComment, a4 as useDeleteFeed, a5 as useDeleteFeedMessage, a6 as useDeleteHistoryVersion, a7 as useDeleteInboxNotification, a8 as useDeleteThread, a9 as useEditComment, aa as useEditCommentMetadata, ab as useEditThreadMetadata, ac as useErrorListener, ad as useEventListener, ae as useFeedMessages, af as useFeeds, ag as useFileUrl, ah as useGroupInfo, ai as useHistory, aj as useHistoryVersionData, ak as useHistoryVersionStorageData, al as useHistoryVersionYjsData, am as useHistoryVersions, an as useInboxNotificationThread, ao as useInboxNotifications, ap as useIsInsideRoom, aq as useLostConnectionListener, ar as useMarkAllInboxNotificationsAsRead, as as useMarkInboxNotificationAsRead, at as useMarkThreadAsRead, au as useMarkThreadAsResolved, av as useMarkThreadAsUnresolved, aw as
|
|
1
|
+
import { R as RegisterAiKnowledgeProps, A as RegisterAiToolProps } from './room-BegSE2IR.js';
|
|
2
|
+
export { B as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, D as RoomContext, _ as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, E as UseThreadsOptions, F as createLiveblocksContext, H as createRoomContext, I as useAddReaction, J as useAiChat, K as useAiChatMessages, N as useAiChatStatus, O as useAiChats, P as useAttachmentUrl, Q as useBroadcastEvent, T as useCanRedo, V as useCanUndo, W as useClient, X as useCreateAiChat, Y as useCreateComment, Z as useCreateFeed, $ as useCreateFeedMessage, a0 as useCreateThread, a1 as useDeleteAiChat, a2 as useDeleteAllInboxNotifications, a3 as useDeleteComment, a4 as useDeleteFeed, a5 as useDeleteFeedMessage, a6 as useDeleteHistoryVersion, a7 as useDeleteInboxNotification, a8 as useDeleteThread, a9 as useEditComment, aa as useEditCommentMetadata, ab as useEditThreadMetadata, ac as useErrorListener, ad as useEventListener, ae as useFeedMessages, af as useFeeds, ag as useFileUrl, ah as useGroupInfo, ai as useHistory, aj as useHistoryVersionData, ak as useHistoryVersionStorageData, al as useHistoryVersionYjsData, am as useHistoryVersions, an as useInboxNotificationThread, ao as useInboxNotifications, ap as useIsInsideRoom, aq as useLostConnectionListener, ar as useMarkAllInboxNotificationsAsRead, as as useMarkInboxNotificationAsRead, at as useMarkThreadAsRead, au as useMarkThreadAsResolved, av as useMarkThreadAsUnresolved, aw as useMutableStorage, ax as useMutation, ay as useMyPresence, az as useNotificationSettings, aA as useOther, aB as useOthers, aC as useOthersConnectionIds, aD as useOthersListener, aE as useOthersMapped, aF as useRedo, aG as useRemoveReaction, aH as useRestoreToStorageVersion, aI as useRoom, aJ as useRoomInfo, aK as useRoomSubscriptionSettings, aL as useSearchComments, aM as useSelf, aN as useSendAiMessage, aO as useStatus, aP as useStorage, aQ as useStorageRoot, aR as useSubscribeToThread, aS as useSyncStatus, aT as useThreadSubscription, aU as useThreads, aV as useUndo, aW as useUnreadInboxNotificationsCount, aX as useUnsubscribeFromThread, aY as useUpdateFeedMessage, aZ as useUpdateFeedMetadata, a_ as useUpdateMyPresence, a$ as useUpdateNotificationSettings, b0 as useUpdateRoomSubscriptionSettings, b1 as useUploadFile, b2 as useUrlMetadata, b3 as useUser, b4 as useUserThreads_experimental } from './room-BegSE2IR.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-FYR2MRJA.js";
|
|
7
7
|
import {
|
|
8
8
|
ClientContext,
|
|
9
9
|
GlobalRoomContext,
|
|
@@ -28,6 +28,7 @@ import {
|
|
|
28
28
|
_useHistoryVersions,
|
|
29
29
|
_useInboxNotificationThread,
|
|
30
30
|
_useIsInsideRoom,
|
|
31
|
+
_useMutableStorage,
|
|
31
32
|
_useMutation,
|
|
32
33
|
_useMyPresence,
|
|
33
34
|
_useOther,
|
|
@@ -95,7 +96,7 @@ import {
|
|
|
95
96
|
useUpdateNotificationSettings,
|
|
96
97
|
useUpdateRoomSubscriptionSettings,
|
|
97
98
|
useUploadFile
|
|
98
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-CWB7CP45.js";
|
|
99
100
|
|
|
100
101
|
// src/index.ts
|
|
101
102
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -159,6 +160,7 @@ export {
|
|
|
159
160
|
useMarkThreadAsRead,
|
|
160
161
|
useMarkThreadAsResolved,
|
|
161
162
|
useMarkThreadAsUnresolved,
|
|
163
|
+
_useMutableStorage as useMutableStorage,
|
|
162
164
|
_useMutation as useMutation,
|
|
163
165
|
_useMyPresence as useMyPresence,
|
|
164
166
|
useNotificationSettings,
|
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 {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport {\n ClientContext,\n GlobalRoomContext as RoomContext,\n useClient,\n} 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 useEditCommentMetadata,\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 useUploadFile,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n useHistoryVersionData,\n useHistoryVersionStorageData,\n useHistoryVersionYjsData,\n useDeleteHistoryVersion,\n useRestoreToStorageVersion,\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 useFeeds,\n useFeedMessages,\n useCreateFeed,\n useDeleteFeed,\n useUpdateFeedMetadata,\n useCreateFeedMessage,\n useDeleteFeedMessage,\n useUpdateFeedMessage,\n useSearchComments,\n useAttachmentUrl,\n useFileUrl,\n useHistoryVersions,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useGroupInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n useAiChatStatus,\n useUrlMetadata,\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 {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} from \"./types/ai\";\nexport {\n ClientContext,\n GlobalRoomContext as RoomContext,\n useClient,\n} 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 useEditCommentMetadata,\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 useUploadFile,\n useUpdateMyPresence,\n useUpdateRoomSubscriptionSettings,\n useHistoryVersionData,\n useHistoryVersionStorageData,\n useHistoryVersionYjsData,\n useDeleteHistoryVersion,\n useRestoreToStorageVersion,\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 useMutableStorage,\n useStorage,\n useThreads,\n useFeeds,\n useFeedMessages,\n useCreateFeed,\n useDeleteFeed,\n useUpdateFeedMetadata,\n useCreateFeedMessage,\n useDeleteFeedMessage,\n useUpdateFeedMessage,\n useSearchComments,\n useAttachmentUrl,\n useFileUrl,\n useHistoryVersions,\n useRoomSubscriptionSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useNotificationSettings,\n useUpdateNotificationSettings,\n useCreateAiChat,\n useDeleteAiChat,\n useSendAiMessage,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useGroupInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n useAiChat,\n useAiChats,\n useAiChatMessages,\n useAiChatStatus,\n useUrlMetadata,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAe5B,SAAS,SAAS,oCAAoC;AAZtD,YAAY,UAAU,aAAa,UAAU;","names":[]}
|
|
@@ -656,8 +656,11 @@ type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U exten
|
|
|
656
656
|
*/
|
|
657
657
|
useCanRedo(): boolean;
|
|
658
658
|
/**
|
|
659
|
-
* Returns the mutable (!) Storage root
|
|
660
|
-
*
|
|
659
|
+
* Returns the mutable (!) Storage root, wrapped in a 1-tuple.
|
|
660
|
+
*
|
|
661
|
+
* @deprecated Use `useMutableStorage()` instead, which returns the root
|
|
662
|
+
* directly instead of wrapping it in a 1-tuple, and which does not return
|
|
663
|
+
* `null` in its Suspense version.
|
|
661
664
|
*
|
|
662
665
|
* @example
|
|
663
666
|
* const [root] = useStorageRoot();
|
|
@@ -995,6 +998,21 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
995
998
|
* those cases, you'll probably want to use a `shallow` comparison check.
|
|
996
999
|
*/
|
|
997
1000
|
useStorage<T>(selector: (root: ToJson<S>) => T, isEqual?: (prev: T | null, curr: T | null) => boolean): T | null;
|
|
1001
|
+
/**
|
|
1002
|
+
* Returns the mutable Storage root, or `null` while Storage is still
|
|
1003
|
+
* loading.
|
|
1004
|
+
*
|
|
1005
|
+
* Unlike `useStorage()`, this hook is not reactive: your component will
|
|
1006
|
+
* re-render only once, when Storage has finished loading. It will not
|
|
1007
|
+
* re-render when the contents of the returned tree change. Use it when
|
|
1008
|
+
* you need direct access to a mutable Live structure, for example to
|
|
1009
|
+
* hand a `LiveText` node to a text editor binding.
|
|
1010
|
+
*
|
|
1011
|
+
* @example
|
|
1012
|
+
* const root = useMutableStorage();
|
|
1013
|
+
* const liveText = root?.get("myLiveText");
|
|
1014
|
+
*/
|
|
1015
|
+
useMutableStorage(): LiveObject<S> | null;
|
|
998
1016
|
/**
|
|
999
1017
|
* Gets the current user once it is connected to the room.
|
|
1000
1018
|
*
|
|
@@ -1210,6 +1228,21 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
1210
1228
|
* those cases, you'll probably want to use a `shallow` comparison check.
|
|
1211
1229
|
*/
|
|
1212
1230
|
useStorage<T>(selector: (root: ToJson<S>) => T, isEqual?: (prev: T, curr: T) => boolean): T;
|
|
1231
|
+
/**
|
|
1232
|
+
* Returns the mutable Storage root, suspending until Storage has
|
|
1233
|
+
* finished loading.
|
|
1234
|
+
*
|
|
1235
|
+
* Unlike `useStorage()`, this hook is not reactive: your component
|
|
1236
|
+
* will not re-render when the contents of the returned tree
|
|
1237
|
+
* change. Use it when you need direct access to a mutable Live
|
|
1238
|
+
* structure, for example to hand a `LiveText` node to a text
|
|
1239
|
+
* editor binding.
|
|
1240
|
+
*
|
|
1241
|
+
* @example
|
|
1242
|
+
* const root = useMutableStorage();
|
|
1243
|
+
* const liveText = root.get("myLiveText");
|
|
1244
|
+
*/
|
|
1245
|
+
useMutableStorage(): LiveObject<S>;
|
|
1213
1246
|
/**
|
|
1214
1247
|
* Gets the current user once it is connected to the room.
|
|
1215
1248
|
*
|
|
@@ -3298,6 +3331,34 @@ declare const _useStorage: TypedBundle["useStorage"];
|
|
|
3298
3331
|
* those cases, you'll probably want to use a `shallow` comparison check.
|
|
3299
3332
|
*/
|
|
3300
3333
|
declare const _useStorageSuspense: TypedBundle["suspense"]["useStorage"];
|
|
3334
|
+
/**
|
|
3335
|
+
* Returns the mutable Storage root, or `null` while Storage is still loading.
|
|
3336
|
+
*
|
|
3337
|
+
* Unlike `useStorage()`, this hook is not reactive: your component will
|
|
3338
|
+
* re-render only once, when Storage has finished loading. It will not
|
|
3339
|
+
* re-render when the contents of the returned tree change. Use it when you
|
|
3340
|
+
* need direct access to a mutable Live structure, for example to hand
|
|
3341
|
+
* a `LiveText` node to a text editor binding.
|
|
3342
|
+
*
|
|
3343
|
+
* @example
|
|
3344
|
+
* const root = useMutableStorage();
|
|
3345
|
+
* const liveText = root?.get("myLiveText");
|
|
3346
|
+
*/
|
|
3347
|
+
declare const _useMutableStorage: TypedBundle["useMutableStorage"];
|
|
3348
|
+
/**
|
|
3349
|
+
* Returns the mutable Storage root, suspending until Storage has finished
|
|
3350
|
+
* loading.
|
|
3351
|
+
*
|
|
3352
|
+
* Unlike `useStorage()`, this hook is not reactive: your component will not
|
|
3353
|
+
* re-render when the contents of the returned tree change. Use it when you
|
|
3354
|
+
* need direct access to a mutable Live structure, for example to hand
|
|
3355
|
+
* a `LiveText` node to a text editor binding.
|
|
3356
|
+
*
|
|
3357
|
+
* @example
|
|
3358
|
+
* const root = useMutableStorage();
|
|
3359
|
+
* const liveText = root.get("myLiveText");
|
|
3360
|
+
*/
|
|
3361
|
+
declare const _useMutableStorageSuspense: TypedBundle["suspense"]["useMutableStorage"];
|
|
3301
3362
|
/**
|
|
3302
3363
|
* Gets the current user once it is connected to the room.
|
|
3303
3364
|
*
|
|
@@ -3361,8 +3422,11 @@ declare function _useSelfSuspense(): User<DP, DU>;
|
|
|
3361
3422
|
*/
|
|
3362
3423
|
declare function _useSelfSuspense<T>(selector: (me: User<DP, DU>) => T, isEqual?: (prev: T, curr: T) => boolean): T;
|
|
3363
3424
|
/**
|
|
3364
|
-
* Returns the mutable (!) Storage root
|
|
3365
|
-
*
|
|
3425
|
+
* Returns the mutable (!) Storage root, wrapped in a 1-tuple.
|
|
3426
|
+
*
|
|
3427
|
+
* @deprecated Use {@link useMutableStorage} instead, which returns the root
|
|
3428
|
+
* directly instead of wrapping it in a 1-tuple, and which does not return
|
|
3429
|
+
* `null` in its Suspense version.
|
|
3366
3430
|
*
|
|
3367
3431
|
* @example
|
|
3368
3432
|
* const [root] = useStorageRoot();
|
|
@@ -3381,4 +3445,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
3381
3445
|
*/
|
|
3382
3446
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
3383
3447
|
|
|
3384
|
-
export { useCreateFeedMessage as $, type RegisterAiToolProps as A, type AiChatStatus as B, ClientContext as C, GlobalRoomContext as D, type UseThreadsOptions as E, createLiveblocksContext as F, type GroupAsyncResult as G, createRoomContext as H, _useAddReaction as I, _useAiChat as J, _useAiChatMessages as K, LiveblocksProvider as L, type MutationContext as M, useAiChatStatus as N, _useAiChats as O, useAttachmentUrl as P, _useBroadcastEvent as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCanRedo as T, type UseSendAiMessageOptions as U, useCanUndo as V, useClient as W, useCreateAiChat as X, _useCreateComment as Y, useCreateFeed as Z, _RoomProvider as _, useClientOrNull as a,
|
|
3448
|
+
export { useCreateFeedMessage as $, type RegisterAiToolProps as A, type AiChatStatus as B, ClientContext as C, GlobalRoomContext as D, type UseThreadsOptions as E, createLiveblocksContext as F, type GroupAsyncResult as G, createRoomContext as H, _useAddReaction as I, _useAiChat as J, _useAiChatMessages as K, LiveblocksProvider as L, type MutationContext as M, useAiChatStatus as N, _useAiChats as O, useAttachmentUrl as P, _useBroadcastEvent as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCanRedo as T, type UseSendAiMessageOptions as U, useCanUndo as V, useClient as W, useCreateAiChat as X, _useCreateComment as Y, useCreateFeed as Z, _RoomProvider as _, useClientOrNull as a, useUpdateNotificationSettings as a$, _useCreateThread as a0, useDeleteAiChat as a1, useDeleteAllInboxNotifications as a2, useDeleteComment as a3, useDeleteFeed as a4, useDeleteFeedMessage as a5, useDeleteHistoryVersion as a6, useDeleteInboxNotification as a7, _useDeleteThread as a8, _useEditComment as a9, _useOther as aA, _useOthers as aB, useOthersConnectionIds as aC, _useOthersListener as aD, _useOthersMapped as aE, useRedo as aF, useRemoveReaction as aG, useRestoreToStorageVersion as aH, _useRoom as aI, useRoomInfo as aJ, _useRoomSubscriptionSettings as aK, _useSearchComments as aL, _useSelf as aM, useSendAiMessage as aN, useStatus as aO, _useStorage as aP, _useStorageRoot as aQ, useSubscribeToThread as aR, useSyncStatus as aS, useThreadSubscription as aT, _useThreads as aU, useUndo as aV, useUnreadInboxNotificationsCount as aW, useUnsubscribeFromThread as aX, useUpdateFeedMessage as aY, useUpdateFeedMetadata as aZ, _useUpdateMyPresence as a_, _useEditCommentMetadata as aa, _useEditThreadMetadata as ab, useErrorListener as ac, _useEventListener as ad, _useFeedMessages as ae, _useFeeds as af, useFileUrl as ag, useGroupInfo as ah, useHistory as ai, useHistoryVersionData as aj, useHistoryVersionStorageData as ak, useHistoryVersionYjsData as al, _useHistoryVersions as am, _useInboxNotificationThread as an, useInboxNotifications as ao, _useIsInsideRoom as ap, useLostConnectionListener as aq, useMarkAllInboxNotificationsAsRead as ar, useMarkInboxNotificationAsRead as as, useMarkThreadAsRead as at, useMarkThreadAsResolved as au, useMarkThreadAsUnresolved as av, _useMutableStorage as aw, _useMutation as ax, _useMyPresence as ay, useNotificationSettings as az, useCreateRoomComment as b, useUpdateRoomSubscriptionSettings as b0, useUploadFile as b1, _useUrlMetadata as b2, _useUser as b3, _useUserThreads_experimental as b4, _useAiChatSuspense as b5, _useAiChatMessagesSuspense as b6, _useAiChatsSuspense as b7, useAttachmentUrlSuspense as b8, _useFeedMessagesSuspense as b9, _useFeedsSuspense as ba, useFileUrlSuspense as bb, useGroupInfoSuspense as bc, _useHistoryVersionsSuspense as bd, useInboxNotificationsSuspense as be, _useMutableStorageSuspense as bf, useNotificationSettingsSuspense as bg, _useOtherSuspense as bh, _useOthersSuspense as bi, useOthersConnectionIdsSuspense as bj, _useOthersMappedSuspense as bk, useRoomInfoSuspense as bl, _useRoomSubscriptionSettingsSuspense as bm, _useSelfSuspense as bn, _useStorageSuspense as bo, _useThreadsSuspense as bp, useUnreadInboxNotificationsCountSuspense as bq, _useUrlMetadataSuspense as br, _useUserSuspense as bs, _useUserThreadsSuspense_experimental as bt, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useHasPermissionAccess as k, useMarkRoomThreadAsRead as l, useMarkRoomThreadAsResolved as m, useMarkRoomThreadAsUnresolved as n, useMentionSuggestionsCache as o, useRemoveRoomCommentReaction as p, useReportTextEditor as q, useResolveMentionSuggestions as r, useRoomAttachmentUrl as s, useRoomFileUrl as t, useAddRoomCommentReaction as u, useRoomPermissions as v, useRoomThreadSubscription as w, useSuspendUntilPresenceReady as x, useSuspendUntilStorageReady as y, useYjsProvider as z };
|
|
@@ -656,8 +656,11 @@ type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U exten
|
|
|
656
656
|
*/
|
|
657
657
|
useCanRedo(): boolean;
|
|
658
658
|
/**
|
|
659
|
-
* Returns the mutable (!) Storage root
|
|
660
|
-
*
|
|
659
|
+
* Returns the mutable (!) Storage root, wrapped in a 1-tuple.
|
|
660
|
+
*
|
|
661
|
+
* @deprecated Use `useMutableStorage()` instead, which returns the root
|
|
662
|
+
* directly instead of wrapping it in a 1-tuple, and which does not return
|
|
663
|
+
* `null` in its Suspense version.
|
|
661
664
|
*
|
|
662
665
|
* @example
|
|
663
666
|
* const [root] = useStorageRoot();
|
|
@@ -995,6 +998,21 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
995
998
|
* those cases, you'll probably want to use a `shallow` comparison check.
|
|
996
999
|
*/
|
|
997
1000
|
useStorage<T>(selector: (root: ToJson<S>) => T, isEqual?: (prev: T | null, curr: T | null) => boolean): T | null;
|
|
1001
|
+
/**
|
|
1002
|
+
* Returns the mutable Storage root, or `null` while Storage is still
|
|
1003
|
+
* loading.
|
|
1004
|
+
*
|
|
1005
|
+
* Unlike `useStorage()`, this hook is not reactive: your component will
|
|
1006
|
+
* re-render only once, when Storage has finished loading. It will not
|
|
1007
|
+
* re-render when the contents of the returned tree change. Use it when
|
|
1008
|
+
* you need direct access to a mutable Live structure, for example to
|
|
1009
|
+
* hand a `LiveText` node to a text editor binding.
|
|
1010
|
+
*
|
|
1011
|
+
* @example
|
|
1012
|
+
* const root = useMutableStorage();
|
|
1013
|
+
* const liveText = root?.get("myLiveText");
|
|
1014
|
+
*/
|
|
1015
|
+
useMutableStorage(): LiveObject<S> | null;
|
|
998
1016
|
/**
|
|
999
1017
|
* Gets the current user once it is connected to the room.
|
|
1000
1018
|
*
|
|
@@ -1210,6 +1228,21 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
|
|
|
1210
1228
|
* those cases, you'll probably want to use a `shallow` comparison check.
|
|
1211
1229
|
*/
|
|
1212
1230
|
useStorage<T>(selector: (root: ToJson<S>) => T, isEqual?: (prev: T, curr: T) => boolean): T;
|
|
1231
|
+
/**
|
|
1232
|
+
* Returns the mutable Storage root, suspending until Storage has
|
|
1233
|
+
* finished loading.
|
|
1234
|
+
*
|
|
1235
|
+
* Unlike `useStorage()`, this hook is not reactive: your component
|
|
1236
|
+
* will not re-render when the contents of the returned tree
|
|
1237
|
+
* change. Use it when you need direct access to a mutable Live
|
|
1238
|
+
* structure, for example to hand a `LiveText` node to a text
|
|
1239
|
+
* editor binding.
|
|
1240
|
+
*
|
|
1241
|
+
* @example
|
|
1242
|
+
* const root = useMutableStorage();
|
|
1243
|
+
* const liveText = root.get("myLiveText");
|
|
1244
|
+
*/
|
|
1245
|
+
useMutableStorage(): LiveObject<S>;
|
|
1213
1246
|
/**
|
|
1214
1247
|
* Gets the current user once it is connected to the room.
|
|
1215
1248
|
*
|
|
@@ -3298,6 +3331,34 @@ declare const _useStorage: TypedBundle["useStorage"];
|
|
|
3298
3331
|
* those cases, you'll probably want to use a `shallow` comparison check.
|
|
3299
3332
|
*/
|
|
3300
3333
|
declare const _useStorageSuspense: TypedBundle["suspense"]["useStorage"];
|
|
3334
|
+
/**
|
|
3335
|
+
* Returns the mutable Storage root, or `null` while Storage is still loading.
|
|
3336
|
+
*
|
|
3337
|
+
* Unlike `useStorage()`, this hook is not reactive: your component will
|
|
3338
|
+
* re-render only once, when Storage has finished loading. It will not
|
|
3339
|
+
* re-render when the contents of the returned tree change. Use it when you
|
|
3340
|
+
* need direct access to a mutable Live structure, for example to hand
|
|
3341
|
+
* a `LiveText` node to a text editor binding.
|
|
3342
|
+
*
|
|
3343
|
+
* @example
|
|
3344
|
+
* const root = useMutableStorage();
|
|
3345
|
+
* const liveText = root?.get("myLiveText");
|
|
3346
|
+
*/
|
|
3347
|
+
declare const _useMutableStorage: TypedBundle["useMutableStorage"];
|
|
3348
|
+
/**
|
|
3349
|
+
* Returns the mutable Storage root, suspending until Storage has finished
|
|
3350
|
+
* loading.
|
|
3351
|
+
*
|
|
3352
|
+
* Unlike `useStorage()`, this hook is not reactive: your component will not
|
|
3353
|
+
* re-render when the contents of the returned tree change. Use it when you
|
|
3354
|
+
* need direct access to a mutable Live structure, for example to hand
|
|
3355
|
+
* a `LiveText` node to a text editor binding.
|
|
3356
|
+
*
|
|
3357
|
+
* @example
|
|
3358
|
+
* const root = useMutableStorage();
|
|
3359
|
+
* const liveText = root.get("myLiveText");
|
|
3360
|
+
*/
|
|
3361
|
+
declare const _useMutableStorageSuspense: TypedBundle["suspense"]["useMutableStorage"];
|
|
3301
3362
|
/**
|
|
3302
3363
|
* Gets the current user once it is connected to the room.
|
|
3303
3364
|
*
|
|
@@ -3361,8 +3422,11 @@ declare function _useSelfSuspense(): User<DP, DU>;
|
|
|
3361
3422
|
*/
|
|
3362
3423
|
declare function _useSelfSuspense<T>(selector: (me: User<DP, DU>) => T, isEqual?: (prev: T, curr: T) => boolean): T;
|
|
3363
3424
|
/**
|
|
3364
|
-
* Returns the mutable (!) Storage root
|
|
3365
|
-
*
|
|
3425
|
+
* Returns the mutable (!) Storage root, wrapped in a 1-tuple.
|
|
3426
|
+
*
|
|
3427
|
+
* @deprecated Use {@link useMutableStorage} instead, which returns the root
|
|
3428
|
+
* directly instead of wrapping it in a 1-tuple, and which does not return
|
|
3429
|
+
* `null` in its Suspense version.
|
|
3366
3430
|
*
|
|
3367
3431
|
* @example
|
|
3368
3432
|
* const [root] = useStorageRoot();
|
|
@@ -3381,4 +3445,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
3381
3445
|
*/
|
|
3382
3446
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
3383
3447
|
|
|
3384
|
-
export { useCreateFeedMessage as $, type RegisterAiToolProps as A, type AiChatStatus as B, ClientContext as C, GlobalRoomContext as D, type UseThreadsOptions as E, createLiveblocksContext as F, type GroupAsyncResult as G, createRoomContext as H, _useAddReaction as I, _useAiChat as J, _useAiChatMessages as K, LiveblocksProvider as L, type MutationContext as M, useAiChatStatus as N, _useAiChats as O, useAttachmentUrl as P, _useBroadcastEvent as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCanRedo as T, type UseSendAiMessageOptions as U, useCanUndo as V, useClient as W, useCreateAiChat as X, _useCreateComment as Y, useCreateFeed as Z, _RoomProvider as _, useClientOrNull as a,
|
|
3448
|
+
export { useCreateFeedMessage as $, type RegisterAiToolProps as A, type AiChatStatus as B, ClientContext as C, GlobalRoomContext as D, type UseThreadsOptions as E, createLiveblocksContext as F, type GroupAsyncResult as G, createRoomContext as H, _useAddReaction as I, _useAiChat as J, _useAiChatMessages as K, LiveblocksProvider as L, type MutationContext as M, useAiChatStatus as N, _useAiChats as O, useAttachmentUrl as P, _useBroadcastEvent as Q, type RegisterAiKnowledgeProps as R, type SendAiMessageOptions as S, useCanRedo as T, type UseSendAiMessageOptions as U, useCanUndo as V, useClient as W, useCreateAiChat as X, _useCreateComment as Y, useCreateFeed as Z, _RoomProvider as _, useClientOrNull as a, useUpdateNotificationSettings as a$, _useCreateThread as a0, useDeleteAiChat as a1, useDeleteAllInboxNotifications as a2, useDeleteComment as a3, useDeleteFeed as a4, useDeleteFeedMessage as a5, useDeleteHistoryVersion as a6, useDeleteInboxNotification as a7, _useDeleteThread as a8, _useEditComment as a9, _useOther as aA, _useOthers as aB, useOthersConnectionIds as aC, _useOthersListener as aD, _useOthersMapped as aE, useRedo as aF, useRemoveReaction as aG, useRestoreToStorageVersion as aH, _useRoom as aI, useRoomInfo as aJ, _useRoomSubscriptionSettings as aK, _useSearchComments as aL, _useSelf as aM, useSendAiMessage as aN, useStatus as aO, _useStorage as aP, _useStorageRoot as aQ, useSubscribeToThread as aR, useSyncStatus as aS, useThreadSubscription as aT, _useThreads as aU, useUndo as aV, useUnreadInboxNotificationsCount as aW, useUnsubscribeFromThread as aX, useUpdateFeedMessage as aY, useUpdateFeedMetadata as aZ, _useUpdateMyPresence as a_, _useEditCommentMetadata as aa, _useEditThreadMetadata as ab, useErrorListener as ac, _useEventListener as ad, _useFeedMessages as ae, _useFeeds as af, useFileUrl as ag, useGroupInfo as ah, useHistory as ai, useHistoryVersionData as aj, useHistoryVersionStorageData as ak, useHistoryVersionYjsData as al, _useHistoryVersions as am, _useInboxNotificationThread as an, useInboxNotifications as ao, _useIsInsideRoom as ap, useLostConnectionListener as aq, useMarkAllInboxNotificationsAsRead as ar, useMarkInboxNotificationAsRead as as, useMarkThreadAsRead as at, useMarkThreadAsResolved as au, useMarkThreadAsUnresolved as av, _useMutableStorage as aw, _useMutation as ax, _useMyPresence as ay, useNotificationSettings as az, useCreateRoomComment as b, useUpdateRoomSubscriptionSettings as b0, useUploadFile as b1, _useUrlMetadata as b2, _useUser as b3, _useUserThreads_experimental as b4, _useAiChatSuspense as b5, _useAiChatMessagesSuspense as b6, _useAiChatsSuspense as b7, useAttachmentUrlSuspense as b8, _useFeedMessagesSuspense as b9, _useFeedsSuspense as ba, useFileUrlSuspense as bb, useGroupInfoSuspense as bc, _useHistoryVersionsSuspense as bd, useInboxNotificationsSuspense as be, _useMutableStorageSuspense as bf, useNotificationSettingsSuspense as bg, _useOtherSuspense as bh, _useOthersSuspense as bi, useOthersConnectionIdsSuspense as bj, _useOthersMappedSuspense as bk, useRoomInfoSuspense as bl, _useRoomSubscriptionSettingsSuspense as bm, _useSelfSuspense as bn, _useStorageSuspense as bo, _useThreadsSuspense as bp, useUnreadInboxNotificationsCountSuspense as bq, _useUrlMetadataSuspense as br, _useUserSuspense as bs, _useUserThreadsSuspense_experimental as bt, useCreateRoomThread as c, useCreateTextMention as d, useDeleteRoomComment as e, useDeleteRoomThread as f, getUmbrellaStoreForClient as g, useDeleteTextMention as h, useEditRoomComment as i, useEditRoomThreadMetadata as j, useHasPermissionAccess as k, useMarkRoomThreadAsRead as l, useMarkRoomThreadAsResolved as m, useMarkRoomThreadAsUnresolved as n, useMentionSuggestionsCache as o, useRemoveRoomCommentReaction as p, useReportTextEditor as q, useResolveMentionSuggestions as r, useRoomAttachmentUrl as s, useRoomFileUrl as t, useAddRoomCommentReaction as u, useRoomPermissions as v, useRoomThreadSubscription as w, useSuspendUntilPresenceReady as x, useSuspendUntilStorageReady as y, useYjsProvider as z };
|
package/dist/suspense.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkPJLPYU5Scjs = require('./chunk-PJLPYU5S.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -87,12 +87,14 @@ var _chunkFMJDYJXKcjs = require('./chunk-FMJDYJXK.cjs');
|
|
|
87
87
|
|
|
88
88
|
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
|
|
91
|
+
var _chunkFIURWYUGcjs = require('./chunk-FIURWYUG.cjs');
|
|
91
92
|
|
|
92
93
|
// src/suspense.ts
|
|
93
94
|
var _core = require('@liveblocks/core');
|
|
94
95
|
var _client = require('@liveblocks/client');
|
|
95
|
-
_core.detectDupes.call(void 0,
|
|
96
|
+
_core.detectDupes.call(void 0, _chunkPJLPYU5Scjs.PKG_NAME, _chunkPJLPYU5Scjs.PKG_VERSION, _chunkPJLPYU5Scjs.PKG_FORMAT);
|
|
97
|
+
|
|
96
98
|
|
|
97
99
|
|
|
98
100
|
|
|
@@ -179,5 +181,5 @@ _core.detectDupes.call(void 0, _chunkFMJDYJXKcjs.PKG_NAME, _chunkFMJDYJXKcjs.PKG
|
|
|
179
181
|
|
|
180
182
|
|
|
181
183
|
|
|
182
|
-
exports.ClientContext =
|
|
184
|
+
exports.ClientContext = _chunkFIURWYUGcjs.ClientContext; exports.ClientSideSuspense = _chunkPJLPYU5Scjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkFIURWYUGcjs.LiveblocksProvider; exports.RegisterAiKnowledge = _chunkFIURWYUGcjs.RegisterAiKnowledge; exports.RegisterAiTool = _chunkFIURWYUGcjs.RegisterAiTool; exports.RoomContext = _chunkFIURWYUGcjs.GlobalRoomContext; exports.RoomProvider = _chunkFIURWYUGcjs._RoomProvider; exports.isNotificationChannelEnabled = _client.isNotificationChannelEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunkFIURWYUGcjs._useAddReaction; exports.useAiChat = _chunkFIURWYUGcjs._useAiChatSuspense; exports.useAiChatMessages = _chunkFIURWYUGcjs._useAiChatMessagesSuspense; exports.useAiChatStatus = _chunkFIURWYUGcjs.useAiChatStatus; exports.useAiChats = _chunkFIURWYUGcjs._useAiChatsSuspense; exports.useAttachmentUrl = _chunkFIURWYUGcjs.useAttachmentUrlSuspense; exports.useBroadcastEvent = _chunkFIURWYUGcjs._useBroadcastEvent; exports.useCanRedo = _chunkFIURWYUGcjs.useCanRedo; exports.useCanUndo = _chunkFIURWYUGcjs.useCanUndo; exports.useClient = _chunkFIURWYUGcjs.useClient; exports.useCreateAiChat = _chunkFIURWYUGcjs.useCreateAiChat; exports.useCreateComment = _chunkFIURWYUGcjs._useCreateComment; exports.useCreateFeed = _chunkFIURWYUGcjs.useCreateFeed; exports.useCreateFeedMessage = _chunkFIURWYUGcjs.useCreateFeedMessage; exports.useCreateThread = _chunkFIURWYUGcjs._useCreateThread; exports.useDeleteAiChat = _chunkFIURWYUGcjs.useDeleteAiChat; exports.useDeleteAllInboxNotifications = _chunkFIURWYUGcjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkFIURWYUGcjs.useDeleteComment; exports.useDeleteFeed = _chunkFIURWYUGcjs.useDeleteFeed; exports.useDeleteFeedMessage = _chunkFIURWYUGcjs.useDeleteFeedMessage; exports.useDeleteInboxNotification = _chunkFIURWYUGcjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkFIURWYUGcjs._useDeleteThread; exports.useEditComment = _chunkFIURWYUGcjs._useEditComment; exports.useEditCommentMetadata = _chunkFIURWYUGcjs._useEditCommentMetadata; exports.useEditThreadMetadata = _chunkFIURWYUGcjs._useEditThreadMetadata; exports.useErrorListener = _chunkFIURWYUGcjs.useErrorListener; exports.useEventListener = _chunkFIURWYUGcjs._useEventListener; exports.useFeedMessages = _chunkFIURWYUGcjs._useFeedMessagesSuspense; exports.useFeeds = _chunkFIURWYUGcjs._useFeedsSuspense; exports.useFileUrl = _chunkFIURWYUGcjs.useFileUrlSuspense; exports.useGroupInfo = _chunkFIURWYUGcjs.useGroupInfoSuspense; exports.useHistory = _chunkFIURWYUGcjs.useHistory; exports.useHistoryVersions = _chunkFIURWYUGcjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkFIURWYUGcjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkFIURWYUGcjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkFIURWYUGcjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkFIURWYUGcjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkFIURWYUGcjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkFIURWYUGcjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkFIURWYUGcjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkFIURWYUGcjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkFIURWYUGcjs.useMarkThreadAsUnresolved; exports.useMutableStorage = _chunkFIURWYUGcjs._useMutableStorageSuspense; exports.useMutation = _chunkFIURWYUGcjs._useMutation; exports.useMyPresence = _chunkFIURWYUGcjs._useMyPresence; exports.useNotificationSettings = _chunkFIURWYUGcjs.useNotificationSettingsSuspense; exports.useOther = _chunkFIURWYUGcjs._useOtherSuspense; exports.useOthers = _chunkFIURWYUGcjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkFIURWYUGcjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkFIURWYUGcjs._useOthersListener; exports.useOthersMapped = _chunkFIURWYUGcjs._useOthersMappedSuspense; exports.useRedo = _chunkFIURWYUGcjs.useRedo; exports.useRemoveReaction = _chunkFIURWYUGcjs.useRemoveReaction; exports.useRoom = _chunkFIURWYUGcjs._useRoom; exports.useRoomInfo = _chunkFIURWYUGcjs.useRoomInfoSuspense; exports.useRoomSubscriptionSettings = _chunkFIURWYUGcjs._useRoomSubscriptionSettingsSuspense; exports.useSelf = _chunkFIURWYUGcjs._useSelfSuspense; exports.useSendAiMessage = _chunkFIURWYUGcjs.useSendAiMessage; exports.useStatus = _chunkFIURWYUGcjs.useStatus; exports.useStorage = _chunkFIURWYUGcjs._useStorageSuspense; exports.useStorageRoot = _chunkFIURWYUGcjs._useStorageRoot; exports.useSubscribeToThread = _chunkFIURWYUGcjs.useSubscribeToThread; exports.useSyncStatus = _chunkFIURWYUGcjs.useSyncStatus; exports.useThreadSubscription = _chunkFIURWYUGcjs.useThreadSubscription; exports.useThreads = _chunkFIURWYUGcjs._useThreadsSuspense; exports.useUndo = _chunkFIURWYUGcjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkFIURWYUGcjs.useUnreadInboxNotificationsCountSuspense; exports.useUnsubscribeFromThread = _chunkFIURWYUGcjs.useUnsubscribeFromThread; exports.useUpdateFeedMessage = _chunkFIURWYUGcjs.useUpdateFeedMessage; exports.useUpdateFeedMetadata = _chunkFIURWYUGcjs.useUpdateFeedMetadata; exports.useUpdateMyPresence = _chunkFIURWYUGcjs._useUpdateMyPresence; exports.useUpdateNotificationSettings = _chunkFIURWYUGcjs.useUpdateNotificationSettings; exports.useUpdateRoomSubscriptionSettings = _chunkFIURWYUGcjs.useUpdateRoomSubscriptionSettings; exports.useUploadFile = _chunkFIURWYUGcjs.useUploadFile; exports.useUrlMetadata = _chunkFIURWYUGcjs._useUrlMetadataSuspense; exports.useUser = _chunkFIURWYUGcjs._useUserSuspense; exports.useUserThreads_experimental = _chunkFIURWYUGcjs._useUserThreadsSuspense_experimental;
|
|
183
185
|
//# 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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;AC3FA,wCAA4B;AAe5B,4CAAsD;AAZtD,+BAAA,0BAAY,EAAU,6BAAA,EAAa,4BAAU,CAAA;AD4F7C;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,onLAAC","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 {\n ClientContext,\n GlobalRoomContext as RoomContext,\n useClient,\n} from \"./contexts\";\nexport { RegisterAiKnowledge, RegisterAiTool } from \"./ai\";\nexport type {\n AiChatStatus,\n RegisterAiKnowledgeProps,\n RegisterAiToolProps,\n} 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 useCreateFeed,\n useCreateFeedMessage,\n useCreateThread,\n useDeleteComment,\n useDeleteFeed,\n useDeleteFeedMessage,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useEditCommentMetadata,\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 useUploadFile,\n useUpdateFeedMetadata,\n useUpdateFeedMessage,\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 useMutableStorageSuspense as useMutableStorage,\n useStorageSuspense as useStorage,\n useThreadsSuspense as useThreads,\n useAttachmentUrlSuspense as useAttachmentUrl,\n useFileUrlSuspense as useFileUrl,\n useHistoryVersionsSuspense as useHistoryVersions,\n useRoomSubscriptionSettingsSuspense as useRoomSubscriptionSettings,\n useFeedsSuspense as useFeeds,\n useFeedMessagesSuspense as useFeedMessages,\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 useAiChatStatus,\n useUrlMetadataSuspense as useUrlMetadata,\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 { B as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, A as RegisterAiToolProps, D as RoomContext, _ as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, E as UseThreadsOptions, I as useAddReaction,
|
|
2
|
+
export { B as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, A as RegisterAiToolProps, D as RoomContext, _ as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, E as UseThreadsOptions, I as useAddReaction, b5 as useAiChat, b6 as useAiChatMessages, N as useAiChatStatus, b7 as useAiChats, b8 as useAttachmentUrl, Q as useBroadcastEvent, T as useCanRedo, V as useCanUndo, W as useClient, X as useCreateAiChat, Y as useCreateComment, Z as useCreateFeed, $ as useCreateFeedMessage, a0 as useCreateThread, a1 as useDeleteAiChat, a2 as useDeleteAllInboxNotifications, a3 as useDeleteComment, a4 as useDeleteFeed, a5 as useDeleteFeedMessage, a7 as useDeleteInboxNotification, a8 as useDeleteThread, a9 as useEditComment, aa as useEditCommentMetadata, ab as useEditThreadMetadata, ac as useErrorListener, ad as useEventListener, b9 as useFeedMessages, ba as useFeeds, bb as useFileUrl, bc as useGroupInfo, ai as useHistory, bd as useHistoryVersions, an as useInboxNotificationThread, be as useInboxNotifications, ap as useIsInsideRoom, aq as useLostConnectionListener, ar as useMarkAllInboxNotificationsAsRead, as as useMarkInboxNotificationAsRead, at as useMarkThreadAsRead, au as useMarkThreadAsResolved, av as useMarkThreadAsUnresolved, bf as useMutableStorage, ax as useMutation, ay as useMyPresence, bg as useNotificationSettings, bh as useOther, bi as useOthers, bj as useOthersConnectionIds, aD as useOthersListener, bk as useOthersMapped, aF as useRedo, aG as useRemoveReaction, aI as useRoom, bl as useRoomInfo, bm as useRoomSubscriptionSettings, bn as useSelf, aN as useSendAiMessage, aO as useStatus, bo as useStorage, aQ as useStorageRoot, aR as useSubscribeToThread, aS as useSyncStatus, aT as useThreadSubscription, bp as useThreads, aV as useUndo, bq as useUnreadInboxNotificationsCount, aX as useUnsubscribeFromThread, aY as useUpdateFeedMessage, aZ as useUpdateFeedMetadata, a_ as useUpdateMyPresence, a$ as useUpdateNotificationSettings, b0 as useUpdateRoomSubscriptionSettings, b1 as useUploadFile, br as useUrlMetadata, bs as useUser, bt as useUserThreads_experimental } from './room-BegSE2IR.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 { B as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, A as RegisterAiToolProps, D as RoomContext, _ as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, E as UseThreadsOptions, I as useAddReaction,
|
|
2
|
+
export { B as AiChatStatus, C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RegisterAiKnowledgeProps, A as RegisterAiToolProps, D as RoomContext, _ as RoomProvider, S as SendAiMessageOptions, U as UseSendAiMessageOptions, E as UseThreadsOptions, I as useAddReaction, b5 as useAiChat, b6 as useAiChatMessages, N as useAiChatStatus, b7 as useAiChats, b8 as useAttachmentUrl, Q as useBroadcastEvent, T as useCanRedo, V as useCanUndo, W as useClient, X as useCreateAiChat, Y as useCreateComment, Z as useCreateFeed, $ as useCreateFeedMessage, a0 as useCreateThread, a1 as useDeleteAiChat, a2 as useDeleteAllInboxNotifications, a3 as useDeleteComment, a4 as useDeleteFeed, a5 as useDeleteFeedMessage, a7 as useDeleteInboxNotification, a8 as useDeleteThread, a9 as useEditComment, aa as useEditCommentMetadata, ab as useEditThreadMetadata, ac as useErrorListener, ad as useEventListener, b9 as useFeedMessages, ba as useFeeds, bb as useFileUrl, bc as useGroupInfo, ai as useHistory, bd as useHistoryVersions, an as useInboxNotificationThread, be as useInboxNotifications, ap as useIsInsideRoom, aq as useLostConnectionListener, ar as useMarkAllInboxNotificationsAsRead, as as useMarkInboxNotificationAsRead, at as useMarkThreadAsRead, au as useMarkThreadAsResolved, av as useMarkThreadAsUnresolved, bf as useMutableStorage, ax as useMutation, ay as useMyPresence, bg as useNotificationSettings, bh as useOther, bi as useOthers, bj as useOthersConnectionIds, aD as useOthersListener, bk as useOthersMapped, aF as useRedo, aG as useRemoveReaction, aI as useRoom, bl as useRoomInfo, bm as useRoomSubscriptionSettings, bn as useSelf, aN as useSendAiMessage, aO as useStatus, bo as useStorage, aQ as useStorageRoot, aR as useSubscribeToThread, aS as useSyncStatus, aT as useThreadSubscription, bp as useThreads, aV as useUndo, bq as useUnreadInboxNotificationsCount, aX as useUnsubscribeFromThread, aY as useUpdateFeedMessage, aZ as useUpdateFeedMetadata, a_ as useUpdateMyPresence, a$ as useUpdateNotificationSettings, b0 as useUpdateRoomSubscriptionSettings, b1 as useUploadFile, br as useUrlMetadata, bs as useUser, bt as useUserThreads_experimental } from './room-BegSE2IR.js';
|
|
3
3
|
export { Json, JsonObject, isNotificationChannelEnabled, shallow } from '@liveblocks/client';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react';
|