@liveblocks/react 2.17.0-usrnotsettings2 → 2.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_private.d.mts +1 -1
- package/dist/_private.d.ts +1 -1
- package/dist/_private.js +5 -5
- package/dist/_private.mjs +1 -1
- package/dist/{chunk-X2FQ2FNK.mjs → chunk-4KNGHD4I.mjs} +11 -193
- package/dist/chunk-4KNGHD4I.mjs.map +1 -0
- package/dist/{chunk-CTSQGLA4.js → chunk-J5ZDLMBE.js} +29 -211
- package/dist/chunk-J5ZDLMBE.js.map +1 -0
- package/dist/{chunk-QJATV7TB.js → chunk-K7QFAI6G.js} +2 -2
- package/dist/chunk-K7QFAI6G.js.map +1 -0
- package/dist/{chunk-D5P6PENM.mjs → chunk-XHQ4VJ7B.mjs} +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -8
- package/dist/index.mjs.map +1 -1
- package/dist/{room-DlI0Yrzf.d.mts → room-DVbQkoj3.d.mts} +4 -75
- package/dist/{room-DlI0Yrzf.d.ts → room-DVbQkoj3.d.ts} +4 -75
- package/dist/suspense.d.mts +2 -2
- package/dist/suspense.d.ts +2 -2
- package/dist/suspense.js +4 -9
- package/dist/suspense.js.map +1 -1
- package/dist/suspense.mjs +3 -8
- package/dist/suspense.mjs.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-CTSQGLA4.js.map +0 -1
- package/dist/chunk-QJATV7TB.js.map +0 -1
- package/dist/chunk-X2FQ2FNK.mjs.map +0 -1
- /package/dist/{chunk-D5P6PENM.mjs.map → chunk-XHQ4VJ7B.mjs.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.17.0
|
|
3
|
+
var PKG_VERSION = "2.17.0";
|
|
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-K7QFAI6G.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/chunk-K7QFAI6G.js","../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-K7QFAI6G.js","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"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/version.ts
|
|
2
2
|
var PKG_NAME = "@liveblocks/react";
|
|
3
|
-
var PKG_VERSION = "2.17.0
|
|
3
|
+
var PKG_VERSION = "2.17.0";
|
|
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-XHQ4VJ7B.mjs.map
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, x as createLiveblocksContext, G as createRoomContext, I as useAddReaction, ao as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, P as useCreateComment, Q as useCreateThread, z as useDeleteAllInboxNotifications, S as useDeleteComment, A as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, B as useErrorListener, Z as useEventListener, $ as useHistory, af as useHistoryVersionData, ap as useHistoryVersions, _ as useInboxNotificationThread, ar as useInboxNotifications, a0 as useIsInsideRoom, a1 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a2 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a3 as useMutation, a4 as useMyPresence,
|
|
2
|
-
export { Json, JsonObject,
|
|
1
|
+
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, x as createLiveblocksContext, G as createRoomContext, I as useAddReaction, ao as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, P as useCreateComment, Q as useCreateThread, z as useDeleteAllInboxNotifications, S as useDeleteComment, A as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, B as useErrorListener, Z as useEventListener, $ as useHistory, af as useHistoryVersionData, ap as useHistoryVersions, _ as useInboxNotificationThread, ar as useInboxNotifications, a0 as useIsInsideRoom, a1 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a2 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a3 as useMutation, a4 as useMyPresence, ag as useOther, ah as useOthers, ai as useOthersConnectionIds, a5 as useOthersListener, aj as useOthersMapped, a6 as useRedo, a7 as useRemoveReaction, a8 as useRoom, at as useRoomInfo, aq as useRoomNotificationSettings, ak as useSelf, a9 as useStatus, al as useStorage, aa as useStorageRoot, am as useStorageStatus, F as useSyncStatus, ab as useThreadSubscription, an as useThreads, ac as useUndo, au as useUnreadInboxNotificationsCount, ad as useUpdateMyPresence, ae as useUpdateRoomNotificationSettings, av as useUser, as as useUserThreads_experimental } from './room-DVbQkoj3.mjs';
|
|
2
|
+
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
import '@liveblocks/core';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, x as createLiveblocksContext, G as createRoomContext, I as useAddReaction, ao as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, P as useCreateComment, Q as useCreateThread, z as useDeleteAllInboxNotifications, S as useDeleteComment, A as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, B as useErrorListener, Z as useEventListener, $ as useHistory, af as useHistoryVersionData, ap as useHistoryVersions, _ as useInboxNotificationThread, ar as useInboxNotifications, a0 as useIsInsideRoom, a1 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a2 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a3 as useMutation, a4 as useMyPresence,
|
|
2
|
-
export { Json, JsonObject,
|
|
1
|
+
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, x as createLiveblocksContext, G as createRoomContext, I as useAddReaction, ao as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, P as useCreateComment, Q as useCreateThread, z as useDeleteAllInboxNotifications, S as useDeleteComment, A as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, B as useErrorListener, Z as useEventListener, $ as useHistory, af as useHistoryVersionData, ap as useHistoryVersions, _ as useInboxNotificationThread, ar as useInboxNotifications, a0 as useIsInsideRoom, a1 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a2 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a3 as useMutation, a4 as useMyPresence, ag as useOther, ah as useOthers, ai as useOthersConnectionIds, a5 as useOthersListener, aj as useOthersMapped, a6 as useRedo, a7 as useRemoveReaction, a8 as useRoom, at as useRoomInfo, aq as useRoomNotificationSettings, ak as useSelf, a9 as useStatus, al as useStorage, aa as useStorageRoot, am as useStorageStatus, F as useSyncStatus, ab as useThreadSubscription, an as useThreads, ac as useUndo, au as useUnreadInboxNotificationsCount, ad as useUpdateMyPresence, ae as useUpdateRoomNotificationSettings, av as useUser, as as useUserThreads_experimental } from './room-DVbQkoj3.js';
|
|
2
|
+
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
import '@liveblocks/core';
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkK7QFAI6Gjs = require('./chunk-K7QFAI6G.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -66,17 +66,12 @@ var _chunkQJATV7TBjs = require('./chunk-QJATV7TB.js');
|
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
var _chunkCTSQGLA4js = require('./chunk-CTSQGLA4.js');
|
|
69
|
+
var _chunkJ5ZDLMBEjs = require('./chunk-J5ZDLMBE.js');
|
|
72
70
|
|
|
73
71
|
// src/index.ts
|
|
74
72
|
var _core = require('@liveblocks/core');
|
|
75
73
|
var _client = require('@liveblocks/client');
|
|
76
|
-
_core.detectDupes.call(void 0,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
74
|
+
_core.detectDupes.call(void 0, _chunkK7QFAI6Gjs.PKG_NAME, _chunkK7QFAI6Gjs.PKG_VERSION, _chunkK7QFAI6Gjs.PKG_FORMAT);
|
|
80
75
|
|
|
81
76
|
|
|
82
77
|
|
|
@@ -141,5 +136,5 @@ _core.detectDupes.call(void 0, _chunkQJATV7TBjs.PKG_NAME, _chunkQJATV7TBjs.PKG_V
|
|
|
141
136
|
|
|
142
137
|
|
|
143
138
|
|
|
144
|
-
exports.ClientContext =
|
|
139
|
+
exports.ClientContext = _chunkJ5ZDLMBEjs.ClientContext; exports.ClientSideSuspense = _chunkK7QFAI6Gjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkJ5ZDLMBEjs.LiveblocksProvider; exports.RoomContext = _chunkJ5ZDLMBEjs.RoomContext; exports.RoomProvider = _chunkJ5ZDLMBEjs._RoomProvider; exports.createLiveblocksContext = _chunkJ5ZDLMBEjs.createLiveblocksContext; exports.createRoomContext = _chunkJ5ZDLMBEjs.createRoomContext; exports.shallow = _client.shallow; exports.useAddReaction = _chunkJ5ZDLMBEjs._useAddReaction; exports.useAttachmentUrl = _chunkJ5ZDLMBEjs.useAttachmentUrl; exports.useBatch = _chunkJ5ZDLMBEjs.useBatch; exports.useBroadcastEvent = _chunkJ5ZDLMBEjs._useBroadcastEvent; exports.useCanRedo = _chunkJ5ZDLMBEjs.useCanRedo; exports.useCanUndo = _chunkJ5ZDLMBEjs.useCanUndo; exports.useClient = _chunkJ5ZDLMBEjs.useClient; exports.useCreateComment = _chunkJ5ZDLMBEjs.useCreateComment; exports.useCreateThread = _chunkJ5ZDLMBEjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkJ5ZDLMBEjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkJ5ZDLMBEjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkJ5ZDLMBEjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkJ5ZDLMBEjs._useDeleteThread; exports.useEditComment = _chunkJ5ZDLMBEjs.useEditComment; exports.useEditThreadMetadata = _chunkJ5ZDLMBEjs._useEditThreadMetadata; exports.useErrorListener = _chunkJ5ZDLMBEjs.useErrorListener; exports.useEventListener = _chunkJ5ZDLMBEjs._useEventListener; exports.useHistory = _chunkJ5ZDLMBEjs.useHistory; exports.useHistoryVersionData = _chunkJ5ZDLMBEjs.useHistoryVersionData; exports.useHistoryVersions = _chunkJ5ZDLMBEjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkJ5ZDLMBEjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkJ5ZDLMBEjs.useInboxNotifications; exports.useIsInsideRoom = _chunkJ5ZDLMBEjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkJ5ZDLMBEjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkJ5ZDLMBEjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkJ5ZDLMBEjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkJ5ZDLMBEjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkJ5ZDLMBEjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkJ5ZDLMBEjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkJ5ZDLMBEjs._useMutation; exports.useMyPresence = _chunkJ5ZDLMBEjs._useMyPresence; exports.useOther = _chunkJ5ZDLMBEjs._useOther; exports.useOthers = _chunkJ5ZDLMBEjs._useOthers; exports.useOthersConnectionIds = _chunkJ5ZDLMBEjs.useOthersConnectionIds; exports.useOthersListener = _chunkJ5ZDLMBEjs._useOthersListener; exports.useOthersMapped = _chunkJ5ZDLMBEjs._useOthersMapped; exports.useRedo = _chunkJ5ZDLMBEjs.useRedo; exports.useRemoveReaction = _chunkJ5ZDLMBEjs.useRemoveReaction; exports.useRoom = _chunkJ5ZDLMBEjs._useRoom; exports.useRoomInfo = _chunkJ5ZDLMBEjs.useRoomInfo; exports.useRoomNotificationSettings = _chunkJ5ZDLMBEjs._useRoomNotificationSettings; exports.useSelf = _chunkJ5ZDLMBEjs._useSelf; exports.useStatus = _chunkJ5ZDLMBEjs.useStatus; exports.useStorage = _chunkJ5ZDLMBEjs._useStorage; exports.useStorageRoot = _chunkJ5ZDLMBEjs._useStorageRoot; exports.useStorageStatus = _chunkJ5ZDLMBEjs.useStorageStatus; exports.useSyncStatus = _chunkJ5ZDLMBEjs.useSyncStatus; exports.useThreadSubscription = _chunkJ5ZDLMBEjs.useThreadSubscription; exports.useThreads = _chunkJ5ZDLMBEjs._useThreads; exports.useUndo = _chunkJ5ZDLMBEjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkJ5ZDLMBEjs.useUnreadInboxNotificationsCount; exports.useUpdateMyPresence = _chunkJ5ZDLMBEjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkJ5ZDLMBEjs.useUpdateRoomNotificationSettings; exports.useUser = _chunkJ5ZDLMBEjs._useUser; exports.useUserThreads_experimental = _chunkJ5ZDLMBEjs._useUserThreads_experimental;
|
|
145
140
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.js","../src/index.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;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;
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.js","../src/index.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;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;AACF,sDAA4B;AAC5B;AACA;ACrEA,wCAA4B;AAc5B,4CAAwB;AAXxB,+BAAA,yBAAY,EAAU,4BAAA,EAAa,2BAAU,CAAA;ADsE7C;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;AACF,y5HAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.js","sourcesContent":[null,"/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseStorageStatusOptions,\n UseThreadsOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n createLiveblocksContext,\n LiveblocksProvider,\n useClient,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useStorageStatus,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomNotificationSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n"]}
|
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
PKG_FORMAT,
|
|
4
4
|
PKG_NAME,
|
|
5
5
|
PKG_VERSION
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XHQ4VJ7B.mjs";
|
|
7
7
|
import {
|
|
8
8
|
ClientContext,
|
|
9
9
|
LiveblocksProvider,
|
|
@@ -55,7 +55,6 @@ import {
|
|
|
55
55
|
useMarkThreadAsRead,
|
|
56
56
|
useMarkThreadAsResolved,
|
|
57
57
|
useMarkThreadAsUnresolved,
|
|
58
|
-
useNotificationSettings,
|
|
59
58
|
useOthersConnectionIds,
|
|
60
59
|
useRedo,
|
|
61
60
|
useRemoveReaction,
|
|
@@ -66,13 +65,12 @@ import {
|
|
|
66
65
|
useThreadSubscription,
|
|
67
66
|
useUndo,
|
|
68
67
|
useUnreadInboxNotificationsCount,
|
|
69
|
-
useUpdateNotificationSettings,
|
|
70
68
|
useUpdateRoomNotificationSettings
|
|
71
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-4KNGHD4I.mjs";
|
|
72
70
|
|
|
73
71
|
// src/index.ts
|
|
74
72
|
import { detectDupes } from "@liveblocks/core";
|
|
75
|
-
import { shallow
|
|
73
|
+
import { shallow } from "@liveblocks/client";
|
|
76
74
|
detectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);
|
|
77
75
|
export {
|
|
78
76
|
ClientContext,
|
|
@@ -82,7 +80,6 @@ export {
|
|
|
82
80
|
_RoomProvider as RoomProvider,
|
|
83
81
|
createLiveblocksContext,
|
|
84
82
|
createRoomContext,
|
|
85
|
-
isNotificationChannelEnabled,
|
|
86
83
|
shallow,
|
|
87
84
|
_useAddReaction as useAddReaction,
|
|
88
85
|
useAttachmentUrl,
|
|
@@ -115,7 +112,6 @@ export {
|
|
|
115
112
|
useMarkThreadAsUnresolved,
|
|
116
113
|
_useMutation as useMutation,
|
|
117
114
|
_useMyPresence as useMyPresence,
|
|
118
|
-
useNotificationSettings,
|
|
119
115
|
_useOther as useOther,
|
|
120
116
|
_useOthers as useOthers,
|
|
121
117
|
useOthersConnectionIds,
|
|
@@ -137,7 +133,6 @@ export {
|
|
|
137
133
|
useUndo,
|
|
138
134
|
useUnreadInboxNotificationsCount,
|
|
139
135
|
_useUpdateMyPresence as useUpdateMyPresence,
|
|
140
|
-
useUpdateNotificationSettings,
|
|
141
136
|
useUpdateRoomNotificationSettings,
|
|
142
137
|
_useUser as useUser,
|
|
143
138
|
_useUserThreads_experimental as useUserThreads_experimental
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseStorageStatusOptions,\n UseThreadsOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseStorageStatusOptions,\n UseThreadsOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n createLiveblocksContext,\n LiveblocksProvider,\n useClient,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useStorageStatus,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomNotificationSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,eAAe;AAXxB,YAAY,UAAU,aAAa,UAAU;","names":[]}
|
|
@@ -2,7 +2,7 @@ import * as react from 'react';
|
|
|
2
2
|
import { Context, PropsWithChildren, ReactNode } from 'react';
|
|
3
3
|
import { JsonObject, LsonObject, BaseUserMeta, Json, BaseMetadata, Room, LiveObject, User, RoomNotificationSettings, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, Client as Client$1, ClientOptions, StorageStatus as StorageStatus$1, ThreadData as ThreadData$1, CommentData as CommentData$1 } from '@liveblocks/client';
|
|
4
4
|
import * as _liveblocks_core from '@liveblocks/core';
|
|
5
|
-
import { OpaqueRoom, BaseMetadata as BaseMetadata$1, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData,
|
|
5
|
+
import { OpaqueRoom, BaseMetadata as BaseMetadata$1, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, Relax, ToImmutable, AsyncLoading, AsyncError, ThreadData, HistoryVersion, Client, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, OpaqueClient, CommentUserReaction, InboxNotificationDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$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
|
/**
|
|
@@ -110,7 +110,6 @@ type InboxNotificationsAsyncSuccess = PagedAsyncSuccess<InboxNotificationData[],
|
|
|
110
110
|
type InboxNotificationsAsyncResult = PagedAsyncResult<InboxNotificationData[], "inboxNotifications">;
|
|
111
111
|
type UnreadInboxNotificationsCountAsyncSuccess = AsyncSuccess<number, "count">;
|
|
112
112
|
type UnreadInboxNotificationsCountAsyncResult = AsyncResult<number, "count">;
|
|
113
|
-
type UserNotificationSettingsAsyncResult = AsyncResult<UserNotificationSettings, "settings">;
|
|
114
113
|
type RoomNotificationSettingsAsyncSuccess = AsyncSuccess<RoomNotificationSettings, "settings">;
|
|
115
114
|
type RoomNotificationSettingsAsyncResult = AsyncResult<RoomNotificationSettings, "settings">;
|
|
116
115
|
type HistoryVersionDataAsyncResult = AsyncResult<Uint8Array>;
|
|
@@ -917,24 +916,6 @@ type LiveblocksContextBundleCommon<M extends BaseMetadata$1> = {
|
|
|
917
916
|
* const thread = useInboxNotificationThread("in_xxx");
|
|
918
917
|
*/
|
|
919
918
|
useInboxNotificationThread(inboxNotificationId: string): ThreadData<M>;
|
|
920
|
-
/**
|
|
921
|
-
* Returns notification settings for the current user.
|
|
922
|
-
*
|
|
923
|
-
* @example
|
|
924
|
-
* const [{ settings }, updateNotificationSettings] = useNotificationSettings()
|
|
925
|
-
*/
|
|
926
|
-
useNotificationSettings(): [
|
|
927
|
-
UserNotificationSettingsAsyncResult,
|
|
928
|
-
(settings: PartialUserNotificationSettings) => void
|
|
929
|
-
];
|
|
930
|
-
/**
|
|
931
|
-
* Returns a function that updates the user's notification
|
|
932
|
-
* settings for a project.
|
|
933
|
-
*
|
|
934
|
-
* @example
|
|
935
|
-
* const updateNotificationSettings = useUpdateNotificationSettings()
|
|
936
|
-
*/
|
|
937
|
-
useUpdateNotificationSettings(): (settings: PartialUserNotificationSettings) => void;
|
|
938
919
|
/**
|
|
939
920
|
* Returns the current Liveblocks sync status, and triggers a re-render
|
|
940
921
|
* whenever it changes. Can be used to render a "Saving..." indicator, or for
|
|
@@ -984,16 +965,6 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata$1> =
|
|
|
984
965
|
* const { count } = useUnreadInboxNotificationsCount();
|
|
985
966
|
*/
|
|
986
967
|
useUnreadInboxNotificationsCount(): UnreadInboxNotificationsCountAsyncSuccess;
|
|
987
|
-
/**
|
|
988
|
-
* Returns notification settings for the current user.
|
|
989
|
-
*
|
|
990
|
-
* @example
|
|
991
|
-
* const [{ settings }, updateNotificationSettings] = useNotificationSettings()
|
|
992
|
-
*/
|
|
993
|
-
useNotificationSettings(): [
|
|
994
|
-
UserNotificationSettingsAsyncResult,
|
|
995
|
-
(settings: PartialUserNotificationSettings) => void
|
|
996
|
-
];
|
|
997
968
|
/**
|
|
998
969
|
* @experimental
|
|
999
970
|
*
|
|
@@ -1055,7 +1026,7 @@ declare class ThreadDB<M extends BaseMetadata$1> {
|
|
|
1055
1026
|
findMany(roomId: string | undefined, query: ThreadsQuery<M>, direction: "asc" | "desc"): ThreadData<M>[];
|
|
1056
1027
|
}
|
|
1057
1028
|
|
|
1058
|
-
type OptimisticUpdate<M extends BaseMetadata$1> = CreateThreadOptimisticUpdate<M> | DeleteThreadOptimisticUpdate | EditThreadMetadataOptimisticUpdate<M> | MarkThreadAsResolvedOptimisticUpdate | MarkThreadAsUnresolvedOptimisticUpdate | CreateCommentOptimisticUpdate | EditCommentOptimisticUpdate | DeleteCommentOptimisticUpdate | AddReactionOptimisticUpdate | RemoveReactionOptimisticUpdate | MarkInboxNotificationAsReadOptimisticUpdate | MarkAllInboxNotificationsAsReadOptimisticUpdate | DeleteInboxNotificationOptimisticUpdate | DeleteAllInboxNotificationsOptimisticUpdate | UpdateNotificationSettingsOptimisticUpdate
|
|
1029
|
+
type OptimisticUpdate<M extends BaseMetadata$1> = CreateThreadOptimisticUpdate<M> | DeleteThreadOptimisticUpdate | EditThreadMetadataOptimisticUpdate<M> | MarkThreadAsResolvedOptimisticUpdate | MarkThreadAsUnresolvedOptimisticUpdate | CreateCommentOptimisticUpdate | EditCommentOptimisticUpdate | DeleteCommentOptimisticUpdate | AddReactionOptimisticUpdate | RemoveReactionOptimisticUpdate | MarkInboxNotificationAsReadOptimisticUpdate | MarkAllInboxNotificationsAsReadOptimisticUpdate | DeleteInboxNotificationOptimisticUpdate | DeleteAllInboxNotificationsOptimisticUpdate | UpdateNotificationSettingsOptimisticUpdate;
|
|
1059
1030
|
type CreateThreadOptimisticUpdate<M extends BaseMetadata$1> = {
|
|
1060
1031
|
type: "create-thread";
|
|
1061
1032
|
id: string;
|
|
@@ -1150,11 +1121,6 @@ type UpdateNotificationSettingsOptimisticUpdate = {
|
|
|
1150
1121
|
roomId: string;
|
|
1151
1122
|
settings: Partial<RoomNotificationSettings$1>;
|
|
1152
1123
|
};
|
|
1153
|
-
type UpdateUserNotificationSettingsOptimisticUpdate = {
|
|
1154
|
-
type: "update-user-notification-settings";
|
|
1155
|
-
id: string;
|
|
1156
|
-
settings: PartialUserNotificationSettings;
|
|
1157
|
-
};
|
|
1158
1124
|
/**
|
|
1159
1125
|
* Like Promise<T>, except it will have a synchronously readable `status`
|
|
1160
1126
|
* field, indicating the status of the promise.
|
|
@@ -1235,10 +1201,6 @@ declare function createStore_forPermissionHints(): {
|
|
|
1235
1201
|
signal: ISignal<PermissionHintsLUT>;
|
|
1236
1202
|
update: (newHints: Record<string, Permission[]>) => void;
|
|
1237
1203
|
};
|
|
1238
|
-
declare function createStore_forUserNotificationSettings(updates: ISignal<readonly OptimisticUpdate<BaseMetadata$1>[]>): {
|
|
1239
|
-
signal: DerivedSignal<UserNotificationSettings>;
|
|
1240
|
-
update: (settings: UserNotificationSettings) => void;
|
|
1241
|
-
};
|
|
1242
1204
|
declare function createStore_forOptimistic<M extends BaseMetadata$1>(client: Client<BaseUserMeta$1, M>): {
|
|
1243
1205
|
signal: ISignal<readonly OptimisticUpdate<M>[]>;
|
|
1244
1206
|
add: (optimisticUpdate: DistributiveOmit<OptimisticUpdate<M>, "id">) => string;
|
|
@@ -1251,7 +1213,6 @@ declare class UmbrellaStore<M extends BaseMetadata$1> {
|
|
|
1251
1213
|
readonly roomNotificationSettings: ReturnType<typeof createStore_forRoomNotificationSettings>;
|
|
1252
1214
|
readonly historyVersions: ReturnType<typeof createStore_forHistoryVersions>;
|
|
1253
1215
|
readonly permissionHints: ReturnType<typeof createStore_forPermissionHints>;
|
|
1254
|
-
readonly userNotificationSettings: ReturnType<typeof createStore_forUserNotificationSettings>;
|
|
1255
1216
|
readonly optimisticUpdates: ReturnType<typeof createStore_forOptimistic<M>>;
|
|
1256
1217
|
readonly outputs: {
|
|
1257
1218
|
readonly threadifications: DerivedSignal<CleanThreadifications<M>>;
|
|
@@ -1262,7 +1223,6 @@ declare class UmbrellaStore<M extends BaseMetadata$1> {
|
|
|
1262
1223
|
readonly loadingNotifications: LoadableResource<InboxNotificationsAsyncResult>;
|
|
1263
1224
|
readonly settingsByRoomId: DefaultMap<RoomId, LoadableResource<RoomNotificationSettingsAsyncResult>>;
|
|
1264
1225
|
readonly versionsByRoomId: DefaultMap<RoomId, LoadableResource<HistoryVersionsAsyncResult>>;
|
|
1265
|
-
readonly userNotificationSettings: LoadableResource<UserNotificationSettingsAsyncResult>;
|
|
1266
1226
|
};
|
|
1267
1227
|
constructor(client: OpaqueClient);
|
|
1268
1228
|
/**
|
|
@@ -1320,15 +1280,6 @@ declare class UmbrellaStore<M extends BaseMetadata$1> {
|
|
|
1320
1280
|
fetchUserThreadsDeltaUpdate(signal: AbortSignal): Promise<void>;
|
|
1321
1281
|
fetchRoomVersionsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
|
|
1322
1282
|
refreshRoomNotificationSettings(roomId: string, signal: AbortSignal): Promise<void>;
|
|
1323
|
-
/**
|
|
1324
|
-
* Refresh User Notification Settings from poller
|
|
1325
|
-
*/
|
|
1326
|
-
refreshUserNotificationSettings(signal: AbortSignal): Promise<void>;
|
|
1327
|
-
/**
|
|
1328
|
-
* Updates user notification settings with a new value, replacing the
|
|
1329
|
-
* corresponding optimistic update.
|
|
1330
|
-
*/
|
|
1331
|
-
updateUserNotificationSettings_confirmOptimisticUpdate(settings: UserNotificationSettings, optimisticUpdateId: string): void;
|
|
1332
1283
|
}
|
|
1333
1284
|
|
|
1334
1285
|
/**
|
|
@@ -1439,28 +1390,6 @@ declare function useUnreadInboxNotificationsCountSuspense(): {
|
|
|
1439
1390
|
readonly count: number;
|
|
1440
1391
|
readonly error?: undefined;
|
|
1441
1392
|
};
|
|
1442
|
-
/**
|
|
1443
|
-
* Returns notification settings for the current user.
|
|
1444
|
-
*
|
|
1445
|
-
* @example
|
|
1446
|
-
* const [{ settings }, updateNotificationSettings] = useNotificationSettings()
|
|
1447
|
-
*/
|
|
1448
|
-
declare function useNotificationSettings(): [UserNotificationSettingsAsyncResult, (settings: PartialUserNotificationSettings) => void];
|
|
1449
|
-
/**
|
|
1450
|
-
* Returns notification settings for the current user.
|
|
1451
|
-
*
|
|
1452
|
-
* @example
|
|
1453
|
-
* const [{ settings }, updateNotificationSettings] = useNotificationSettings()
|
|
1454
|
-
*/
|
|
1455
|
-
declare function useNotificationSettingsSuspense(): [UserNotificationSettingsAsyncResult, (settings: PartialUserNotificationSettings) => void];
|
|
1456
|
-
/**
|
|
1457
|
-
* Returns a function that updates the user's notification
|
|
1458
|
-
* settings for a project.
|
|
1459
|
-
*
|
|
1460
|
-
* @example
|
|
1461
|
-
* const updateNotificationSettings = useUpdateNotificationSettings()
|
|
1462
|
-
*/
|
|
1463
|
-
declare function useUpdateNotificationSettings(): (settings: PartialUserNotificationSettings) => void;
|
|
1464
1393
|
/**
|
|
1465
1394
|
* Returns room info from a given room ID.
|
|
1466
1395
|
*
|
|
@@ -1575,7 +1504,7 @@ declare function useCreateTextMention(): (userId: string, mentionId: string) =>
|
|
|
1575
1504
|
/** @private - Internal API, do not rely on it. */
|
|
1576
1505
|
declare function useDeleteTextMention(): (mentionId: string) => void;
|
|
1577
1506
|
/** @private - Internal API, do not rely on it. */
|
|
1578
|
-
declare function useResolveMentionSuggestions(): ((args: _liveblocks_core.ResolveMentionSuggestionsArgs) => _liveblocks_core.
|
|
1507
|
+
declare function useResolveMentionSuggestions(): ((args: _liveblocks_core.ResolveMentionSuggestionsArgs) => _liveblocks_core.Awaitable<string[]>) | undefined;
|
|
1579
1508
|
/** @private - Internal API, do not rely on it. */
|
|
1580
1509
|
declare function useMentionSuggestionsCache(): Map<string, string[]>;
|
|
1581
1510
|
/**
|
|
@@ -2297,4 +2226,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
2297
2226
|
*/
|
|
2298
2227
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
2299
2228
|
|
|
2300
|
-
export { useHistory as $, useDeleteInboxNotification as A, useErrorListener as B, ClientContext as C, useMarkAllInboxNotificationsAsRead as D, useMarkInboxNotificationAsRead as E, useSyncStatus as F, createRoomContext as G, _RoomProvider as H, _useAddReaction as I, useBatch as J, _useBroadcastEvent as K, LiveblocksProvider as L, type MutationContext as M, useCanRedo as N, useCanUndo as O, useCreateComment as P, _useCreateThread as Q, RoomContext as R, useDeleteComment as S, _useDeleteThread as T, type UseStorageStatusOptions as U, useEditComment as V, _useEditThreadMetadata as W, useMarkThreadAsResolved as X, useMarkThreadAsUnresolved as Y, _useEventListener as Z, _useInboxNotificationThread as _, useClientOrNull as a, _useIsInsideRoom as a0, useLostConnectionListener as a1, useMarkThreadAsRead as a2, _useMutation as a3, _useMyPresence as a4, _useOthersListener as a5, useRedo as a6, useRemoveReaction as a7, _useRoom as a8, useStatus as a9,
|
|
2229
|
+
export { useHistory as $, useDeleteInboxNotification as A, useErrorListener as B, ClientContext as C, useMarkAllInboxNotificationsAsRead as D, useMarkInboxNotificationAsRead as E, useSyncStatus as F, createRoomContext as G, _RoomProvider as H, _useAddReaction as I, useBatch as J, _useBroadcastEvent as K, LiveblocksProvider as L, type MutationContext as M, useCanRedo as N, useCanUndo as O, useCreateComment as P, _useCreateThread as Q, RoomContext as R, useDeleteComment as S, _useDeleteThread as T, type UseStorageStatusOptions as U, useEditComment as V, _useEditThreadMetadata as W, useMarkThreadAsResolved as X, useMarkThreadAsUnresolved as Y, _useEventListener as Z, _useInboxNotificationThread as _, useClientOrNull as a, _useIsInsideRoom as a0, useLostConnectionListener as a1, useMarkThreadAsRead as a2, _useMutation as a3, _useMyPresence as a4, _useOthersListener as a5, useRedo as a6, useRemoveReaction as a7, _useRoom as a8, useStatus as a9, _useSelfSuspense as aA, _useStorageSuspense as aB, useStorageStatusSuspense as aC, _useThreadsSuspense as aD, useAttachmentUrlSuspense as aE, _useHistoryVersionsSuspense as aF, _useRoomNotificationSettingsSuspense as aG, useInboxNotificationsSuspense as aH, useRoomInfoSuspense as aI, useUnreadInboxNotificationsCountSuspense as aJ, _useUserSuspense as aK, _useUserThreadsSuspense_experimental as aL, _useStorageRoot as aa, useThreadSubscription as ab, useUndo as ac, _useUpdateMyPresence as ad, useUpdateRoomNotificationSettings as ae, useHistoryVersionData as af, _useOther as ag, _useOthers as ah, useOthersConnectionIds as ai, _useOthersMapped as aj, _useSelf as ak, _useStorage as al, useStorageStatus as am, _useThreads as an, useAttachmentUrl as ao, _useHistoryVersions as ap, _useRoomNotificationSettings as aq, useInboxNotifications as ar, _useUserThreads_experimental as as, useRoomInfo as at, useUnreadInboxNotificationsCount as au, _useUser as av, _useOtherSuspense as aw, _useOthersSuspense as ax, useOthersConnectionIdsSuspense as ay, _useOthersMappedSuspense as az, useAddRoomCommentReaction as b, useCreateRoomComment as c, useCreateRoomThread as d, useCreateTextMention as e, useDeleteRoomComment as f, getUmbrellaStoreForClient as g, useDeleteRoomThread as h, useDeleteTextMention as i, useEditRoomComment as j, useEditRoomThreadMetadata 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, useRoomPermissions as t, useRoomOrNull as u, useYjsProvider as v, type UseThreadsOptions as w, createLiveblocksContext as x, useClient as y, useDeleteAllInboxNotifications as z };
|
|
@@ -2,7 +2,7 @@ import * as react from 'react';
|
|
|
2
2
|
import { Context, PropsWithChildren, ReactNode } from 'react';
|
|
3
3
|
import { JsonObject, LsonObject, BaseUserMeta, Json, BaseMetadata, Room, LiveObject, User, RoomNotificationSettings, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, Client as Client$1, ClientOptions, StorageStatus as StorageStatus$1, ThreadData as ThreadData$1, CommentData as CommentData$1 } from '@liveblocks/client';
|
|
4
4
|
import * as _liveblocks_core from '@liveblocks/core';
|
|
5
|
-
import { OpaqueRoom, BaseMetadata as BaseMetadata$1, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData,
|
|
5
|
+
import { OpaqueRoom, BaseMetadata as BaseMetadata$1, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, Relax, ToImmutable, AsyncLoading, AsyncError, ThreadData, HistoryVersion, Client, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, OpaqueClient, CommentUserReaction, InboxNotificationDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$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
|
/**
|
|
@@ -110,7 +110,6 @@ type InboxNotificationsAsyncSuccess = PagedAsyncSuccess<InboxNotificationData[],
|
|
|
110
110
|
type InboxNotificationsAsyncResult = PagedAsyncResult<InboxNotificationData[], "inboxNotifications">;
|
|
111
111
|
type UnreadInboxNotificationsCountAsyncSuccess = AsyncSuccess<number, "count">;
|
|
112
112
|
type UnreadInboxNotificationsCountAsyncResult = AsyncResult<number, "count">;
|
|
113
|
-
type UserNotificationSettingsAsyncResult = AsyncResult<UserNotificationSettings, "settings">;
|
|
114
113
|
type RoomNotificationSettingsAsyncSuccess = AsyncSuccess<RoomNotificationSettings, "settings">;
|
|
115
114
|
type RoomNotificationSettingsAsyncResult = AsyncResult<RoomNotificationSettings, "settings">;
|
|
116
115
|
type HistoryVersionDataAsyncResult = AsyncResult<Uint8Array>;
|
|
@@ -917,24 +916,6 @@ type LiveblocksContextBundleCommon<M extends BaseMetadata$1> = {
|
|
|
917
916
|
* const thread = useInboxNotificationThread("in_xxx");
|
|
918
917
|
*/
|
|
919
918
|
useInboxNotificationThread(inboxNotificationId: string): ThreadData<M>;
|
|
920
|
-
/**
|
|
921
|
-
* Returns notification settings for the current user.
|
|
922
|
-
*
|
|
923
|
-
* @example
|
|
924
|
-
* const [{ settings }, updateNotificationSettings] = useNotificationSettings()
|
|
925
|
-
*/
|
|
926
|
-
useNotificationSettings(): [
|
|
927
|
-
UserNotificationSettingsAsyncResult,
|
|
928
|
-
(settings: PartialUserNotificationSettings) => void
|
|
929
|
-
];
|
|
930
|
-
/**
|
|
931
|
-
* Returns a function that updates the user's notification
|
|
932
|
-
* settings for a project.
|
|
933
|
-
*
|
|
934
|
-
* @example
|
|
935
|
-
* const updateNotificationSettings = useUpdateNotificationSettings()
|
|
936
|
-
*/
|
|
937
|
-
useUpdateNotificationSettings(): (settings: PartialUserNotificationSettings) => void;
|
|
938
919
|
/**
|
|
939
920
|
* Returns the current Liveblocks sync status, and triggers a re-render
|
|
940
921
|
* whenever it changes. Can be used to render a "Saving..." indicator, or for
|
|
@@ -984,16 +965,6 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata$1> =
|
|
|
984
965
|
* const { count } = useUnreadInboxNotificationsCount();
|
|
985
966
|
*/
|
|
986
967
|
useUnreadInboxNotificationsCount(): UnreadInboxNotificationsCountAsyncSuccess;
|
|
987
|
-
/**
|
|
988
|
-
* Returns notification settings for the current user.
|
|
989
|
-
*
|
|
990
|
-
* @example
|
|
991
|
-
* const [{ settings }, updateNotificationSettings] = useNotificationSettings()
|
|
992
|
-
*/
|
|
993
|
-
useNotificationSettings(): [
|
|
994
|
-
UserNotificationSettingsAsyncResult,
|
|
995
|
-
(settings: PartialUserNotificationSettings) => void
|
|
996
|
-
];
|
|
997
968
|
/**
|
|
998
969
|
* @experimental
|
|
999
970
|
*
|
|
@@ -1055,7 +1026,7 @@ declare class ThreadDB<M extends BaseMetadata$1> {
|
|
|
1055
1026
|
findMany(roomId: string | undefined, query: ThreadsQuery<M>, direction: "asc" | "desc"): ThreadData<M>[];
|
|
1056
1027
|
}
|
|
1057
1028
|
|
|
1058
|
-
type OptimisticUpdate<M extends BaseMetadata$1> = CreateThreadOptimisticUpdate<M> | DeleteThreadOptimisticUpdate | EditThreadMetadataOptimisticUpdate<M> | MarkThreadAsResolvedOptimisticUpdate | MarkThreadAsUnresolvedOptimisticUpdate | CreateCommentOptimisticUpdate | EditCommentOptimisticUpdate | DeleteCommentOptimisticUpdate | AddReactionOptimisticUpdate | RemoveReactionOptimisticUpdate | MarkInboxNotificationAsReadOptimisticUpdate | MarkAllInboxNotificationsAsReadOptimisticUpdate | DeleteInboxNotificationOptimisticUpdate | DeleteAllInboxNotificationsOptimisticUpdate | UpdateNotificationSettingsOptimisticUpdate
|
|
1029
|
+
type OptimisticUpdate<M extends BaseMetadata$1> = CreateThreadOptimisticUpdate<M> | DeleteThreadOptimisticUpdate | EditThreadMetadataOptimisticUpdate<M> | MarkThreadAsResolvedOptimisticUpdate | MarkThreadAsUnresolvedOptimisticUpdate | CreateCommentOptimisticUpdate | EditCommentOptimisticUpdate | DeleteCommentOptimisticUpdate | AddReactionOptimisticUpdate | RemoveReactionOptimisticUpdate | MarkInboxNotificationAsReadOptimisticUpdate | MarkAllInboxNotificationsAsReadOptimisticUpdate | DeleteInboxNotificationOptimisticUpdate | DeleteAllInboxNotificationsOptimisticUpdate | UpdateNotificationSettingsOptimisticUpdate;
|
|
1059
1030
|
type CreateThreadOptimisticUpdate<M extends BaseMetadata$1> = {
|
|
1060
1031
|
type: "create-thread";
|
|
1061
1032
|
id: string;
|
|
@@ -1150,11 +1121,6 @@ type UpdateNotificationSettingsOptimisticUpdate = {
|
|
|
1150
1121
|
roomId: string;
|
|
1151
1122
|
settings: Partial<RoomNotificationSettings$1>;
|
|
1152
1123
|
};
|
|
1153
|
-
type UpdateUserNotificationSettingsOptimisticUpdate = {
|
|
1154
|
-
type: "update-user-notification-settings";
|
|
1155
|
-
id: string;
|
|
1156
|
-
settings: PartialUserNotificationSettings;
|
|
1157
|
-
};
|
|
1158
1124
|
/**
|
|
1159
1125
|
* Like Promise<T>, except it will have a synchronously readable `status`
|
|
1160
1126
|
* field, indicating the status of the promise.
|
|
@@ -1235,10 +1201,6 @@ declare function createStore_forPermissionHints(): {
|
|
|
1235
1201
|
signal: ISignal<PermissionHintsLUT>;
|
|
1236
1202
|
update: (newHints: Record<string, Permission[]>) => void;
|
|
1237
1203
|
};
|
|
1238
|
-
declare function createStore_forUserNotificationSettings(updates: ISignal<readonly OptimisticUpdate<BaseMetadata$1>[]>): {
|
|
1239
|
-
signal: DerivedSignal<UserNotificationSettings>;
|
|
1240
|
-
update: (settings: UserNotificationSettings) => void;
|
|
1241
|
-
};
|
|
1242
1204
|
declare function createStore_forOptimistic<M extends BaseMetadata$1>(client: Client<BaseUserMeta$1, M>): {
|
|
1243
1205
|
signal: ISignal<readonly OptimisticUpdate<M>[]>;
|
|
1244
1206
|
add: (optimisticUpdate: DistributiveOmit<OptimisticUpdate<M>, "id">) => string;
|
|
@@ -1251,7 +1213,6 @@ declare class UmbrellaStore<M extends BaseMetadata$1> {
|
|
|
1251
1213
|
readonly roomNotificationSettings: ReturnType<typeof createStore_forRoomNotificationSettings>;
|
|
1252
1214
|
readonly historyVersions: ReturnType<typeof createStore_forHistoryVersions>;
|
|
1253
1215
|
readonly permissionHints: ReturnType<typeof createStore_forPermissionHints>;
|
|
1254
|
-
readonly userNotificationSettings: ReturnType<typeof createStore_forUserNotificationSettings>;
|
|
1255
1216
|
readonly optimisticUpdates: ReturnType<typeof createStore_forOptimistic<M>>;
|
|
1256
1217
|
readonly outputs: {
|
|
1257
1218
|
readonly threadifications: DerivedSignal<CleanThreadifications<M>>;
|
|
@@ -1262,7 +1223,6 @@ declare class UmbrellaStore<M extends BaseMetadata$1> {
|
|
|
1262
1223
|
readonly loadingNotifications: LoadableResource<InboxNotificationsAsyncResult>;
|
|
1263
1224
|
readonly settingsByRoomId: DefaultMap<RoomId, LoadableResource<RoomNotificationSettingsAsyncResult>>;
|
|
1264
1225
|
readonly versionsByRoomId: DefaultMap<RoomId, LoadableResource<HistoryVersionsAsyncResult>>;
|
|
1265
|
-
readonly userNotificationSettings: LoadableResource<UserNotificationSettingsAsyncResult>;
|
|
1266
1226
|
};
|
|
1267
1227
|
constructor(client: OpaqueClient);
|
|
1268
1228
|
/**
|
|
@@ -1320,15 +1280,6 @@ declare class UmbrellaStore<M extends BaseMetadata$1> {
|
|
|
1320
1280
|
fetchUserThreadsDeltaUpdate(signal: AbortSignal): Promise<void>;
|
|
1321
1281
|
fetchRoomVersionsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
|
|
1322
1282
|
refreshRoomNotificationSettings(roomId: string, signal: AbortSignal): Promise<void>;
|
|
1323
|
-
/**
|
|
1324
|
-
* Refresh User Notification Settings from poller
|
|
1325
|
-
*/
|
|
1326
|
-
refreshUserNotificationSettings(signal: AbortSignal): Promise<void>;
|
|
1327
|
-
/**
|
|
1328
|
-
* Updates user notification settings with a new value, replacing the
|
|
1329
|
-
* corresponding optimistic update.
|
|
1330
|
-
*/
|
|
1331
|
-
updateUserNotificationSettings_confirmOptimisticUpdate(settings: UserNotificationSettings, optimisticUpdateId: string): void;
|
|
1332
1283
|
}
|
|
1333
1284
|
|
|
1334
1285
|
/**
|
|
@@ -1439,28 +1390,6 @@ declare function useUnreadInboxNotificationsCountSuspense(): {
|
|
|
1439
1390
|
readonly count: number;
|
|
1440
1391
|
readonly error?: undefined;
|
|
1441
1392
|
};
|
|
1442
|
-
/**
|
|
1443
|
-
* Returns notification settings for the current user.
|
|
1444
|
-
*
|
|
1445
|
-
* @example
|
|
1446
|
-
* const [{ settings }, updateNotificationSettings] = useNotificationSettings()
|
|
1447
|
-
*/
|
|
1448
|
-
declare function useNotificationSettings(): [UserNotificationSettingsAsyncResult, (settings: PartialUserNotificationSettings) => void];
|
|
1449
|
-
/**
|
|
1450
|
-
* Returns notification settings for the current user.
|
|
1451
|
-
*
|
|
1452
|
-
* @example
|
|
1453
|
-
* const [{ settings }, updateNotificationSettings] = useNotificationSettings()
|
|
1454
|
-
*/
|
|
1455
|
-
declare function useNotificationSettingsSuspense(): [UserNotificationSettingsAsyncResult, (settings: PartialUserNotificationSettings) => void];
|
|
1456
|
-
/**
|
|
1457
|
-
* Returns a function that updates the user's notification
|
|
1458
|
-
* settings for a project.
|
|
1459
|
-
*
|
|
1460
|
-
* @example
|
|
1461
|
-
* const updateNotificationSettings = useUpdateNotificationSettings()
|
|
1462
|
-
*/
|
|
1463
|
-
declare function useUpdateNotificationSettings(): (settings: PartialUserNotificationSettings) => void;
|
|
1464
1393
|
/**
|
|
1465
1394
|
* Returns room info from a given room ID.
|
|
1466
1395
|
*
|
|
@@ -1575,7 +1504,7 @@ declare function useCreateTextMention(): (userId: string, mentionId: string) =>
|
|
|
1575
1504
|
/** @private - Internal API, do not rely on it. */
|
|
1576
1505
|
declare function useDeleteTextMention(): (mentionId: string) => void;
|
|
1577
1506
|
/** @private - Internal API, do not rely on it. */
|
|
1578
|
-
declare function useResolveMentionSuggestions(): ((args: _liveblocks_core.ResolveMentionSuggestionsArgs) => _liveblocks_core.
|
|
1507
|
+
declare function useResolveMentionSuggestions(): ((args: _liveblocks_core.ResolveMentionSuggestionsArgs) => _liveblocks_core.Awaitable<string[]>) | undefined;
|
|
1579
1508
|
/** @private - Internal API, do not rely on it. */
|
|
1580
1509
|
declare function useMentionSuggestionsCache(): Map<string, string[]>;
|
|
1581
1510
|
/**
|
|
@@ -2297,4 +2226,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
2297
2226
|
*/
|
|
2298
2227
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
2299
2228
|
|
|
2300
|
-
export { useHistory as $, useDeleteInboxNotification as A, useErrorListener as B, ClientContext as C, useMarkAllInboxNotificationsAsRead as D, useMarkInboxNotificationAsRead as E, useSyncStatus as F, createRoomContext as G, _RoomProvider as H, _useAddReaction as I, useBatch as J, _useBroadcastEvent as K, LiveblocksProvider as L, type MutationContext as M, useCanRedo as N, useCanUndo as O, useCreateComment as P, _useCreateThread as Q, RoomContext as R, useDeleteComment as S, _useDeleteThread as T, type UseStorageStatusOptions as U, useEditComment as V, _useEditThreadMetadata as W, useMarkThreadAsResolved as X, useMarkThreadAsUnresolved as Y, _useEventListener as Z, _useInboxNotificationThread as _, useClientOrNull as a, _useIsInsideRoom as a0, useLostConnectionListener as a1, useMarkThreadAsRead as a2, _useMutation as a3, _useMyPresence as a4, _useOthersListener as a5, useRedo as a6, useRemoveReaction as a7, _useRoom as a8, useStatus as a9,
|
|
2229
|
+
export { useHistory as $, useDeleteInboxNotification as A, useErrorListener as B, ClientContext as C, useMarkAllInboxNotificationsAsRead as D, useMarkInboxNotificationAsRead as E, useSyncStatus as F, createRoomContext as G, _RoomProvider as H, _useAddReaction as I, useBatch as J, _useBroadcastEvent as K, LiveblocksProvider as L, type MutationContext as M, useCanRedo as N, useCanUndo as O, useCreateComment as P, _useCreateThread as Q, RoomContext as R, useDeleteComment as S, _useDeleteThread as T, type UseStorageStatusOptions as U, useEditComment as V, _useEditThreadMetadata as W, useMarkThreadAsResolved as X, useMarkThreadAsUnresolved as Y, _useEventListener as Z, _useInboxNotificationThread as _, useClientOrNull as a, _useIsInsideRoom as a0, useLostConnectionListener as a1, useMarkThreadAsRead as a2, _useMutation as a3, _useMyPresence as a4, _useOthersListener as a5, useRedo as a6, useRemoveReaction as a7, _useRoom as a8, useStatus as a9, _useSelfSuspense as aA, _useStorageSuspense as aB, useStorageStatusSuspense as aC, _useThreadsSuspense as aD, useAttachmentUrlSuspense as aE, _useHistoryVersionsSuspense as aF, _useRoomNotificationSettingsSuspense as aG, useInboxNotificationsSuspense as aH, useRoomInfoSuspense as aI, useUnreadInboxNotificationsCountSuspense as aJ, _useUserSuspense as aK, _useUserThreadsSuspense_experimental as aL, _useStorageRoot as aa, useThreadSubscription as ab, useUndo as ac, _useUpdateMyPresence as ad, useUpdateRoomNotificationSettings as ae, useHistoryVersionData as af, _useOther as ag, _useOthers as ah, useOthersConnectionIds as ai, _useOthersMapped as aj, _useSelf as ak, _useStorage as al, useStorageStatus as am, _useThreads as an, useAttachmentUrl as ao, _useHistoryVersions as ap, _useRoomNotificationSettings as aq, useInboxNotifications as ar, _useUserThreads_experimental as as, useRoomInfo as at, useUnreadInboxNotificationsCount as au, _useUser as av, _useOtherSuspense as aw, _useOthersSuspense as ax, useOthersConnectionIdsSuspense as ay, _useOthersMappedSuspense as az, useAddRoomCommentReaction as b, useCreateRoomComment as c, useCreateRoomThread as d, useCreateTextMention as e, useDeleteRoomComment as f, getUmbrellaStoreForClient as g, useDeleteRoomThread as h, useDeleteTextMention as i, useEditRoomComment as j, useEditRoomThreadMetadata 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, useRoomPermissions as t, useRoomOrNull as u, useYjsProvider as v, type UseThreadsOptions as w, createLiveblocksContext as x, useClient as y, useDeleteAllInboxNotifications as z };
|
package/dist/suspense.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { ClientSideSuspense } from './index.mjs';
|
|
2
|
-
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, I as useAddReaction,
|
|
3
|
-
export { Json, JsonObject,
|
|
2
|
+
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, I as useAddReaction, aE as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, P as useCreateComment, Q as useCreateThread, z as useDeleteAllInboxNotifications, S as useDeleteComment, A as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, B as useErrorListener, Z as useEventListener, $ as useHistory, aF as useHistoryVersions, _ as useInboxNotificationThread, aH as useInboxNotifications, a0 as useIsInsideRoom, a1 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a2 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a3 as useMutation, a4 as useMyPresence, aw as useOther, ax as useOthers, ay as useOthersConnectionIds, a5 as useOthersListener, az as useOthersMapped, a6 as useRedo, a7 as useRemoveReaction, a8 as useRoom, aI as useRoomInfo, aG as useRoomNotificationSettings, aA as useSelf, a9 as useStatus, aB as useStorage, aa as useStorageRoot, aC as useStorageStatus, F as useSyncStatus, ab as useThreadSubscription, aD as useThreads, ac as useUndo, aJ as useUnreadInboxNotificationsCount, ad as useUpdateMyPresence, ae as useUpdateRoomNotificationSettings, aK as useUser, aL as useUserThreads_experimental } from './room-DVbQkoj3.mjs';
|
|
3
|
+
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '@liveblocks/core';
|
package/dist/suspense.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { ClientSideSuspense } from './index.js';
|
|
2
|
-
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, I as useAddReaction,
|
|
3
|
-
export { Json, JsonObject,
|
|
2
|
+
export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, I as useAddReaction, aE as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, P as useCreateComment, Q as useCreateThread, z as useDeleteAllInboxNotifications, S as useDeleteComment, A as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, B as useErrorListener, Z as useEventListener, $ as useHistory, aF as useHistoryVersions, _ as useInboxNotificationThread, aH as useInboxNotifications, a0 as useIsInsideRoom, a1 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a2 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a3 as useMutation, a4 as useMyPresence, aw as useOther, ax as useOthers, ay as useOthersConnectionIds, a5 as useOthersListener, az as useOthersMapped, a6 as useRedo, a7 as useRemoveReaction, a8 as useRoom, aI as useRoomInfo, aG as useRoomNotificationSettings, aA as useSelf, a9 as useStatus, aB as useStorage, aa as useStorageRoot, aC as useStorageStatus, F as useSyncStatus, ab as useThreadSubscription, aD as useThreads, ac as useUndo, aJ as useUnreadInboxNotificationsCount, ad as useUpdateMyPresence, ae as useUpdateRoomNotificationSettings, aK as useUser, aL as useUserThreads_experimental } from './room-DVbQkoj3.js';
|
|
3
|
+
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '@liveblocks/core';
|