@liveblocks/react 2.11.1 → 2.12.0-rc1
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 +8 -3
- package/dist/_private.d.ts +8 -3
- package/dist/_private.js +20 -4
- package/dist/_private.js.map +1 -1
- package/dist/_private.mjs +18 -2
- package/dist/_private.mjs.map +1 -1
- package/dist/{chunk-OVU4MAZA.js → chunk-6ESOPOJR.js} +2 -2
- package/dist/{chunk-A7GJNN4L.mjs → chunk-CX62YECU.mjs} +60 -15
- package/dist/chunk-CX62YECU.mjs.map +1 -0
- package/dist/{chunk-3MM4G6XB.js → chunk-IACZPXTY.js} +68 -23
- package/dist/chunk-IACZPXTY.js.map +1 -0
- package/dist/{chunk-JF4QXLDE.mjs → chunk-MYFO7YF7.mjs} +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{liveblocks-SAVcXwMX.d.mts → liveblocks-1ujmr05d.d.mts} +53 -7
- package/dist/{liveblocks-SAVcXwMX.d.ts → liveblocks-1ujmr05d.d.ts} +53 -7
- package/dist/{suspense-W7Cp9ygn.d.ts → suspense-560_K0iP.d.ts} +5 -1
- package/dist/{suspense-vGJE9Mgq.d.mts → suspense-TeBnnKGw.d.mts} +5 -1
- package/dist/suspense.d.mts +2 -2
- package/dist/suspense.d.ts +2 -2
- package/dist/suspense.js +6 -4
- package/dist/suspense.js.map +1 -1
- package/dist/suspense.mjs +4 -2
- package/dist/suspense.mjs.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-3MM4G6XB.js.map +0 -1
- package/dist/chunk-A7GJNN4L.mjs.map +0 -1
- /package/dist/{chunk-OVU4MAZA.js.map → chunk-6ESOPOJR.js.map} +0 -0
- /package/dist/{chunk-JF4QXLDE.mjs.map → chunk-MYFO7YF7.mjs.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/version.ts
|
|
2
2
|
var PKG_NAME = "@liveblocks/react";
|
|
3
|
-
var PKG_VERSION = "2.
|
|
3
|
+
var PKG_VERSION = "2.12.0-rc1";
|
|
4
4
|
var PKG_FORMAT = "esm";
|
|
5
5
|
|
|
6
6
|
// src/ClientSideSuspense.tsx
|
|
@@ -19,4 +19,4 @@ export {
|
|
|
19
19
|
PKG_FORMAT,
|
|
20
20
|
ClientSideSuspense
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=chunk-
|
|
22
|
+
//# sourceMappingURL=chunk-MYFO7YF7.mjs.map
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { C as ClientSideSuspense, R as RoomContext, _ as RoomProvider, c as createRoomContext, a as useAddReaction, S as useAttachmentUrl, u as useBatch, b as useBroadcastEvent, d as useCanRedo, e as useCanUndo, I as useCommentsErrorListener, f as useCreateComment, g as useCreateThread, h as useDeleteComment, i as useDeleteThread, j as useEditComment, k as useEditThreadMetadata, n as useErrorListener, o as useEventListener, p as useHistory, H as useHistoryVersionData, T as useHistoryVersions, q as useIsInsideRoom, r as useLostConnectionListener, s as useMarkThreadAsRead, l as useMarkThreadAsResolved, m as useMarkThreadAsUnresolved, t as useMutation, v as useMyPresence, J as useOther, K as useOthers, L as useOthersConnectionIds, w as useOthersListener, M as useOthersMapped, x as useRedo, y as useRemoveReaction, z as useRoom, U as useRoomNotificationSettings, N as useSelf, A as useStatus, O as useStorage, B as useStorageRoot, P as useStorageStatus, D as useThreadSubscription, Q as useThreads, E as useUndo, F as useUpdateMyPresence, G as useUpdateRoomNotificationSettings } from './suspense-
|
|
2
|
-
export { e as ClientContext, L as LiveblocksProvider, M as MutationContext, U as UseStorageStatusOptions, d as UseThreadsOptions, f as createLiveblocksContext, u as useClient,
|
|
1
|
+
export { C as ClientSideSuspense, R as RoomContext, _ as RoomProvider, c as createRoomContext, a as useAddReaction, S as useAttachmentUrl, u as useBatch, b as useBroadcastEvent, d as useCanRedo, e as useCanUndo, I as useCommentsErrorListener, f as useCreateComment, g as useCreateThread, h as useDeleteComment, i as useDeleteThread, j as useEditComment, k as useEditThreadMetadata, n as useErrorListener, o as useEventListener, p as useHistory, H as useHistoryVersionData, T as useHistoryVersions, q as useIsInsideRoom, r as useLostConnectionListener, s as useMarkThreadAsRead, l as useMarkThreadAsResolved, m as useMarkThreadAsUnresolved, t as useMutation, v as useMyPresence, J as useOther, K as useOthers, L as useOthersConnectionIds, w as useOthersListener, M as useOthersMapped, x as useRedo, y as useRemoveReaction, z as useRoom, U as useRoomNotificationSettings, N as useSelf, A as useStatus, O as useStorage, B as useStorageRoot, P as useStorageStatus, D as useThreadSubscription, Q as useThreads, E as useUndo, F as useUpdateMyPresence, G as useUpdateRoomNotificationSettings } from './suspense-TeBnnKGw.mjs';
|
|
2
|
+
export { e as ClientContext, L as LiveblocksProvider, M as MutationContext, U as UseStorageStatusOptions, d as UseThreadsOptions, f as createLiveblocksContext, u as useClient, h as useDeleteAllInboxNotifications, i as useDeleteInboxNotification, _ as useInboxNotificationThread, m as useInboxNotifications, j as useMarkAllInboxNotificationsAsRead, k as useMarkInboxNotificationAsRead, o as useRoomInfo, l as useSyncStatus, p as useUnreadInboxNotificationsCount, q as useUser, n as useUserThreads_experimental } from './liveblocks-1ujmr05d.mjs';
|
|
3
3
|
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@liveblocks/core';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { C as ClientSideSuspense, R as RoomContext, _ as RoomProvider, c as createRoomContext, a as useAddReaction, S as useAttachmentUrl, u as useBatch, b as useBroadcastEvent, d as useCanRedo, e as useCanUndo, I as useCommentsErrorListener, f as useCreateComment, g as useCreateThread, h as useDeleteComment, i as useDeleteThread, j as useEditComment, k as useEditThreadMetadata, n as useErrorListener, o as useEventListener, p as useHistory, H as useHistoryVersionData, T as useHistoryVersions, q as useIsInsideRoom, r as useLostConnectionListener, s as useMarkThreadAsRead, l as useMarkThreadAsResolved, m as useMarkThreadAsUnresolved, t as useMutation, v as useMyPresence, J as useOther, K as useOthers, L as useOthersConnectionIds, w as useOthersListener, M as useOthersMapped, x as useRedo, y as useRemoveReaction, z as useRoom, U as useRoomNotificationSettings, N as useSelf, A as useStatus, O as useStorage, B as useStorageRoot, P as useStorageStatus, D as useThreadSubscription, Q as useThreads, E as useUndo, F as useUpdateMyPresence, G as useUpdateRoomNotificationSettings } from './suspense-
|
|
2
|
-
export { e as ClientContext, L as LiveblocksProvider, M as MutationContext, U as UseStorageStatusOptions, d as UseThreadsOptions, f as createLiveblocksContext, u as useClient,
|
|
1
|
+
export { C as ClientSideSuspense, R as RoomContext, _ as RoomProvider, c as createRoomContext, a as useAddReaction, S as useAttachmentUrl, u as useBatch, b as useBroadcastEvent, d as useCanRedo, e as useCanUndo, I as useCommentsErrorListener, f as useCreateComment, g as useCreateThread, h as useDeleteComment, i as useDeleteThread, j as useEditComment, k as useEditThreadMetadata, n as useErrorListener, o as useEventListener, p as useHistory, H as useHistoryVersionData, T as useHistoryVersions, q as useIsInsideRoom, r as useLostConnectionListener, s as useMarkThreadAsRead, l as useMarkThreadAsResolved, m as useMarkThreadAsUnresolved, t as useMutation, v as useMyPresence, J as useOther, K as useOthers, L as useOthersConnectionIds, w as useOthersListener, M as useOthersMapped, x as useRedo, y as useRemoveReaction, z as useRoom, U as useRoomNotificationSettings, N as useSelf, A as useStatus, O as useStorage, B as useStorageRoot, P as useStorageStatus, D as useThreadSubscription, Q as useThreads, E as useUndo, F as useUpdateMyPresence, G as useUpdateRoomNotificationSettings } from './suspense-560_K0iP.js';
|
|
2
|
+
export { e as ClientContext, L as LiveblocksProvider, M as MutationContext, U as UseStorageStatusOptions, d as UseThreadsOptions, f as createLiveblocksContext, u as useClient, h as useDeleteAllInboxNotifications, i as useDeleteInboxNotification, _ as useInboxNotificationThread, m as useInboxNotifications, j as useMarkAllInboxNotificationsAsRead, k as useMarkInboxNotificationAsRead, o as useRoomInfo, l as useSyncStatus, p as useUnreadInboxNotificationsCount, q as useUser, n as useUserThreads_experimental } from './liveblocks-1ujmr05d.js';
|
|
3
3
|
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
4
4
|
import '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 _chunk6ESOPOJRjs = require('./chunk-6ESOPOJR.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -66,12 +66,14 @@ var _chunkOVU4MAZAjs = require('./chunk-OVU4MAZA.js');
|
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
|
|
70
|
+
var _chunkIACZPXTYjs = require('./chunk-IACZPXTY.js');
|
|
70
71
|
|
|
71
72
|
// src/index.ts
|
|
72
73
|
var _core = require('@liveblocks/core');
|
|
73
74
|
var _client = require('@liveblocks/client');
|
|
74
|
-
_core.detectDupes.call(void 0,
|
|
75
|
+
_core.detectDupes.call(void 0, _chunk6ESOPOJRjs.PKG_NAME, _chunk6ESOPOJRjs.PKG_VERSION, _chunk6ESOPOJRjs.PKG_FORMAT);
|
|
76
|
+
|
|
75
77
|
|
|
76
78
|
|
|
77
79
|
|
|
@@ -136,5 +138,5 @@ _core.detectDupes.call(void 0, _chunkOVU4MAZAjs.PKG_NAME, _chunkOVU4MAZAjs.PKG_V
|
|
|
136
138
|
|
|
137
139
|
|
|
138
140
|
|
|
139
|
-
exports.ClientContext =
|
|
141
|
+
exports.ClientContext = _chunkIACZPXTYjs.ClientContext; exports.ClientSideSuspense = _chunk6ESOPOJRjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkIACZPXTYjs.LiveblocksProvider; exports.RoomContext = _chunkIACZPXTYjs.RoomContext; exports.RoomProvider = _chunkIACZPXTYjs._RoomProvider; exports.createLiveblocksContext = _chunkIACZPXTYjs.createLiveblocksContext; exports.createRoomContext = _chunkIACZPXTYjs.createRoomContext; exports.shallow = _client.shallow; exports.useAddReaction = _chunkIACZPXTYjs._useAddReaction; exports.useAttachmentUrl = _chunkIACZPXTYjs.useAttachmentUrl; exports.useBatch = _chunkIACZPXTYjs.useBatch; exports.useBroadcastEvent = _chunkIACZPXTYjs._useBroadcastEvent; exports.useCanRedo = _chunkIACZPXTYjs.useCanRedo; exports.useCanUndo = _chunkIACZPXTYjs.useCanUndo; exports.useClient = _chunkIACZPXTYjs.useClient; exports.useCommentsErrorListener = _chunkIACZPXTYjs.useCommentsErrorListener; exports.useCreateComment = _chunkIACZPXTYjs.useCreateComment; exports.useCreateThread = _chunkIACZPXTYjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkIACZPXTYjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkIACZPXTYjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkIACZPXTYjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkIACZPXTYjs._useDeleteThread; exports.useEditComment = _chunkIACZPXTYjs.useEditComment; exports.useEditThreadMetadata = _chunkIACZPXTYjs._useEditThreadMetadata; exports.useErrorListener = _chunkIACZPXTYjs.useErrorListener; exports.useEventListener = _chunkIACZPXTYjs._useEventListener; exports.useHistory = _chunkIACZPXTYjs.useHistory; exports.useHistoryVersionData = _chunkIACZPXTYjs.useHistoryVersionData; exports.useHistoryVersions = _chunkIACZPXTYjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkIACZPXTYjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkIACZPXTYjs.useInboxNotifications; exports.useIsInsideRoom = _chunkIACZPXTYjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkIACZPXTYjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkIACZPXTYjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkIACZPXTYjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkIACZPXTYjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkIACZPXTYjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkIACZPXTYjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkIACZPXTYjs._useMutation; exports.useMyPresence = _chunkIACZPXTYjs._useMyPresence; exports.useOther = _chunkIACZPXTYjs._useOther; exports.useOthers = _chunkIACZPXTYjs._useOthers; exports.useOthersConnectionIds = _chunkIACZPXTYjs.useOthersConnectionIds; exports.useOthersListener = _chunkIACZPXTYjs._useOthersListener; exports.useOthersMapped = _chunkIACZPXTYjs._useOthersMapped; exports.useRedo = _chunkIACZPXTYjs.useRedo; exports.useRemoveReaction = _chunkIACZPXTYjs.useRemoveReaction; exports.useRoom = _chunkIACZPXTYjs._useRoom; exports.useRoomInfo = _chunkIACZPXTYjs.useRoomInfo; exports.useRoomNotificationSettings = _chunkIACZPXTYjs._useRoomNotificationSettings; exports.useSelf = _chunkIACZPXTYjs._useSelf; exports.useStatus = _chunkIACZPXTYjs.useStatus; exports.useStorage = _chunkIACZPXTYjs._useStorage; exports.useStorageRoot = _chunkIACZPXTYjs._useStorageRoot; exports.useStorageStatus = _chunkIACZPXTYjs.useStorageStatus; exports.useSyncStatus = _chunkIACZPXTYjs.useSyncStatus; exports.useThreadSubscription = _chunkIACZPXTYjs.useThreadSubscription; exports.useThreads = _chunkIACZPXTYjs._useThreads; exports.useUndo = _chunkIACZPXTYjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkIACZPXTYjs.useUnreadInboxNotificationsCount; exports.useUpdateMyPresence = _chunkIACZPXTYjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkIACZPXTYjs.useUpdateRoomNotificationSettings; exports.useUser = _chunkIACZPXTYjs._useUser; exports.useUserThreads_experimental = _chunkIACZPXTYjs._useUserThreads_experimental;
|
|
140
142
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,eAAe;AAXxB,YAAY,UAAU,aAAa,UAAU","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 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 useErrorListener,\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\nexport { useCommentsErrorListener } 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-MYFO7YF7.mjs";
|
|
7
7
|
import {
|
|
8
8
|
ClientContext,
|
|
9
9
|
LiveblocksProvider,
|
|
@@ -62,11 +62,12 @@ import {
|
|
|
62
62
|
useRoomInfo,
|
|
63
63
|
useStatus,
|
|
64
64
|
useStorageStatus,
|
|
65
|
+
useSyncStatus,
|
|
65
66
|
useThreadSubscription,
|
|
66
67
|
useUndo,
|
|
67
68
|
useUnreadInboxNotificationsCount,
|
|
68
69
|
useUpdateRoomNotificationSettings
|
|
69
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-CX62YECU.mjs";
|
|
70
71
|
|
|
71
72
|
// src/index.ts
|
|
72
73
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -128,6 +129,7 @@ export {
|
|
|
128
129
|
_useStorage as useStorage,
|
|
129
130
|
_useStorageRoot as useStorageRoot,
|
|
130
131
|
useStorageStatus,
|
|
132
|
+
useSyncStatus,
|
|
131
133
|
useThreadSubscription,
|
|
132
134
|
_useThreads as useThreads,
|
|
133
135
|
useUndo,
|
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 } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n
|
|
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 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 useErrorListener,\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\nexport { useCommentsErrorListener } 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":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JsonObject, LsonObject, BaseUserMeta, LiveObject, User, Json, RoomNotificationSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, Client as Client$1, ClientOptions } from '@liveblocks/client';
|
|
2
|
-
import { BaseMetadata, CommentBody, Patchable, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, CommentAttachment, InboxNotificationData, Resolve, ToImmutable, AsyncLoading, AsyncError, ThreadData, HistoryVersion, Client, LiveblocksError, RoomEventMessage, CommentData, PartialUnless, ThreadDataWithDeleteInfo, OpaqueClient, CommentUserReaction, ThreadDeleteInfo, InboxNotificationDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, DistributiveOmit, DU, DM } from '@liveblocks/core';
|
|
2
|
+
import { BaseMetadata, CommentBody, Patchable, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, CommentAttachment, InboxNotificationData, Resolve, ToImmutable, AsyncLoading, AsyncError, ThreadData, HistoryVersion, Client, SyncStatus, LiveblocksError, RoomEventMessage, CommentData, PartialUnless, ThreadDataWithDeleteInfo, OpaqueClient, CommentUserReaction, ThreadDeleteInfo, InboxNotificationDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, DistributiveOmit, DU, DM } from '@liveblocks/core';
|
|
3
3
|
import React__default, { PropsWithChildren } from 'react';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -119,7 +119,7 @@ declare class UpdateNotificationSettingsError extends Error {
|
|
|
119
119
|
*/
|
|
120
120
|
declare type CommentsError<M extends BaseMetadata> = CreateThreadError<M> | EditThreadMetadataError<M> | CreateCommentError | EditCommentError | DeleteCommentError | MarkInboxNotificationAsReadError | UpdateNotificationSettingsError;
|
|
121
121
|
|
|
122
|
-
declare type
|
|
122
|
+
declare type UseSyncStatusOptions = {
|
|
123
123
|
/**
|
|
124
124
|
* When setting smooth, the hook will not update immediately as status
|
|
125
125
|
* changes. This is because in typical applications, these states can change
|
|
@@ -128,6 +128,7 @@ declare type UseStorageStatusOptions = {
|
|
|
128
128
|
*/
|
|
129
129
|
smooth?: boolean;
|
|
130
130
|
};
|
|
131
|
+
declare type UseStorageStatusOptions = UseSyncStatusOptions;
|
|
131
132
|
declare type StorageStatusSuccess = Exclude<StorageStatus, "not-loaded" | "loading">;
|
|
132
133
|
declare type ThreadsQuery<M extends BaseMetadata> = {
|
|
133
134
|
/**
|
|
@@ -316,6 +317,17 @@ declare type SharedContextBundle<U extends BaseUserMeta> = {
|
|
|
316
317
|
* const isInsideRoom = useIsInsideRoom();
|
|
317
318
|
*/
|
|
318
319
|
useIsInsideRoom(): boolean;
|
|
320
|
+
/**
|
|
321
|
+
* Returns the current Liveblocks sync status, and triggers a re-render
|
|
322
|
+
* whenever it changes. Can be used to render a "Saving..." indicator, or for
|
|
323
|
+
* preventing that a browser tab can be closed until all changes have been
|
|
324
|
+
* synchronized with the server.
|
|
325
|
+
*
|
|
326
|
+
* @example
|
|
327
|
+
* const syncStatus = useSyncStatus(); // "synchronizing" | "synchronized"
|
|
328
|
+
* const syncStatus = useSyncStatus({ smooth: true });
|
|
329
|
+
*/
|
|
330
|
+
useSyncStatus(options?: UseSyncStatusOptions): SyncStatus;
|
|
319
331
|
};
|
|
320
332
|
suspense: {
|
|
321
333
|
/**
|
|
@@ -343,6 +355,17 @@ declare type SharedContextBundle<U extends BaseUserMeta> = {
|
|
|
343
355
|
* const isInsideRoom = useIsInsideRoom();
|
|
344
356
|
*/
|
|
345
357
|
useIsInsideRoom(): boolean;
|
|
358
|
+
/**
|
|
359
|
+
* Returns the current Liveblocks sync status, and triggers a re-render
|
|
360
|
+
* whenever it changes. Can be used to render a "Saving..." indicator, or for
|
|
361
|
+
* preventing that a browser tab can be closed until all changes have been
|
|
362
|
+
* synchronized with the server.
|
|
363
|
+
*
|
|
364
|
+
* @example
|
|
365
|
+
* const syncStatus = useSyncStatus(); // "synchronizing" | "synchronized"
|
|
366
|
+
* const syncStatus = useSyncStatus({ smooth: true });
|
|
367
|
+
*/
|
|
368
|
+
useSyncStatus(options?: UseSyncStatusOptions): SyncStatus;
|
|
346
369
|
};
|
|
347
370
|
};
|
|
348
371
|
/**
|
|
@@ -772,6 +795,8 @@ declare type RoomContextBundle<P extends JsonObject, S extends LsonObject, U ext
|
|
|
772
795
|
* Returns the current storage status for the Room, and triggers
|
|
773
796
|
* a re-render whenever it changes. Can be used to render a "Saving..."
|
|
774
797
|
* indicator.
|
|
798
|
+
*
|
|
799
|
+
* @deprecated Prefer useSyncStatus()
|
|
775
800
|
*/
|
|
776
801
|
useStorageStatus(options?: UseStorageStatusOptions): StorageStatus;
|
|
777
802
|
/**
|
|
@@ -872,6 +897,8 @@ declare type RoomContextBundle<P extends JsonObject, S extends LsonObject, U ext
|
|
|
872
897
|
* Returns the current storage status for the Room, and triggers
|
|
873
898
|
* a re-render whenever it changes. Can be used to render a "Saving..."
|
|
874
899
|
* indicator.
|
|
900
|
+
*
|
|
901
|
+
* @deprecated Prefer useSyncStatus()
|
|
875
902
|
*/
|
|
876
903
|
useStorageStatus(options?: UseStorageStatusOptions): StorageStatusSuccess;
|
|
877
904
|
/**
|
|
@@ -1013,6 +1040,17 @@ declare type LiveblocksContextBundleCommon<M extends BaseMetadata> = {
|
|
|
1013
1040
|
* const thread = useInboxNotificationThread("in_xxx");
|
|
1014
1041
|
*/
|
|
1015
1042
|
useInboxNotificationThread(inboxNotificationId: string): ThreadData<M>;
|
|
1043
|
+
/**
|
|
1044
|
+
* Returns the current Liveblocks sync status, and triggers a re-render
|
|
1045
|
+
* whenever it changes. Can be used to render a "Saving..." indicator, or for
|
|
1046
|
+
* preventing that a browser tab can be closed until all changes have been
|
|
1047
|
+
* synchronized with the server.
|
|
1048
|
+
*
|
|
1049
|
+
* @example
|
|
1050
|
+
* const syncStatus = useSyncStatus(); // "synchronizing" | "synchronized"
|
|
1051
|
+
* const syncStatus = useSyncStatus({ smooth: true });
|
|
1052
|
+
*/
|
|
1053
|
+
useSyncStatus(options?: UseSyncStatusOptions): SyncStatus;
|
|
1016
1054
|
};
|
|
1017
1055
|
declare type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = Resolve<LiveblocksContextBundleCommon<M> & SharedContextBundle<U>["classic"] & {
|
|
1018
1056
|
/**
|
|
@@ -1262,6 +1300,7 @@ declare type UmbrellaStoreState<M extends BaseMetadata> = {
|
|
|
1262
1300
|
};
|
|
1263
1301
|
declare class UmbrellaStore<M extends BaseMetadata> {
|
|
1264
1302
|
private _client;
|
|
1303
|
+
private _syncSource;
|
|
1265
1304
|
private _rawThreadsDB;
|
|
1266
1305
|
private _prevVersion;
|
|
1267
1306
|
private _store;
|
|
@@ -1290,10 +1329,6 @@ declare class UmbrellaStore<M extends BaseMetadata> {
|
|
|
1290
1329
|
getInboxNotificationsLoadingState(): InboxNotificationsAsyncResult;
|
|
1291
1330
|
getNotificationSettingsLoadingState(roomId: string): RoomNotificationSettingsAsyncResult;
|
|
1292
1331
|
getRoomVersionsLoadingState(roomId: string): AsyncResult<HistoryVersion[], "versions">;
|
|
1293
|
-
/**
|
|
1294
|
-
* @private Only used by the E2E test suite.
|
|
1295
|
-
*/
|
|
1296
|
-
_hasOptimisticUpdates(): boolean;
|
|
1297
1332
|
subscribe(callback: () => void): () => void;
|
|
1298
1333
|
private mutateThreadsDB;
|
|
1299
1334
|
private updateInboxNotificationsCache;
|
|
@@ -1563,5 +1598,16 @@ declare const _useUserThreads_experimental: TypedBundle["useUserThreads_experime
|
|
|
1563
1598
|
* The final API for that is still TBD.
|
|
1564
1599
|
*/
|
|
1565
1600
|
declare const _useUserThreadsSuspense_experimental: TypedBundle["suspense"]["useUserThreads_experimental"];
|
|
1601
|
+
/**
|
|
1602
|
+
* Returns the current Liveblocks sync status, and triggers a re-render
|
|
1603
|
+
* whenever it changes. Can be used to render a "Saving..." indicator, or for
|
|
1604
|
+
* preventing that a browser tab can be closed until all changes have been
|
|
1605
|
+
* synchronized with the server.
|
|
1606
|
+
*
|
|
1607
|
+
* @example
|
|
1608
|
+
* const syncStatus = useSyncStatus(); // "synchronizing" | "synchronized"
|
|
1609
|
+
* const syncStatus = useSyncStatus({ smooth: true });
|
|
1610
|
+
*/
|
|
1611
|
+
declare function useSyncStatus(options?: UseSyncStatusOptions): SyncStatus;
|
|
1566
1612
|
|
|
1567
|
-
export { type AttachmentUrlAsyncResult as A, CreateThreadError as C, type DeleteCommentOptions as D, type EditCommentOptions as E, type HistoryVersionDataAsyncResult as H, LiveblocksProvider as L, type MutationContext as M, type RoomContextBundle as R, type StorageStatusSuccess as S, type ThreadSubscription as T, type UseStorageStatusOptions as U, _useInboxNotificationThread as _, type CommentsError as a, type CreateCommentOptions as b, type CommentReactionOptions as c, type UseThreadsOptions as d, ClientContext as e, createLiveblocksContext as f, getUmbrellaStoreForClient as g,
|
|
1613
|
+
export { type AttachmentUrlAsyncResult as A, CreateThreadError as C, type DeleteCommentOptions as D, type EditCommentOptions as E, type HistoryVersionDataAsyncResult as H, LiveblocksProvider as L, type MutationContext as M, type RoomContextBundle as R, type StorageStatusSuccess as S, type ThreadSubscription as T, type UseStorageStatusOptions as U, _useInboxNotificationThread as _, type CommentsError as a, type CreateCommentOptions as b, type CommentReactionOptions as c, type UseThreadsOptions as d, ClientContext as e, createLiveblocksContext as f, getUmbrellaStoreForClient as g, useDeleteAllInboxNotifications as h, useDeleteInboxNotification as i, useMarkAllInboxNotificationsAsRead as j, useMarkInboxNotificationAsRead as k, useSyncStatus as l, useInboxNotifications as m, _useUserThreads_experimental as n, useRoomInfo as o, useUnreadInboxNotificationsCount as p, _useUser as q, useInboxNotificationsSuspense as r, useRoomInfoSuspense as s, useUnreadInboxNotificationsCountSuspense as t, useClient as u, _useUserSuspense as v, _useUserThreadsSuspense_experimental as w };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JsonObject, LsonObject, BaseUserMeta, LiveObject, User, Json, RoomNotificationSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, Client as Client$1, ClientOptions } from '@liveblocks/client';
|
|
2
|
-
import { BaseMetadata, CommentBody, Patchable, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, CommentAttachment, InboxNotificationData, Resolve, ToImmutable, AsyncLoading, AsyncError, ThreadData, HistoryVersion, Client, LiveblocksError, RoomEventMessage, CommentData, PartialUnless, ThreadDataWithDeleteInfo, OpaqueClient, CommentUserReaction, ThreadDeleteInfo, InboxNotificationDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, DistributiveOmit, DU, DM } from '@liveblocks/core';
|
|
2
|
+
import { BaseMetadata, CommentBody, Patchable, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, CommentAttachment, InboxNotificationData, Resolve, ToImmutable, AsyncLoading, AsyncError, ThreadData, HistoryVersion, Client, SyncStatus, LiveblocksError, RoomEventMessage, CommentData, PartialUnless, ThreadDataWithDeleteInfo, OpaqueClient, CommentUserReaction, ThreadDeleteInfo, InboxNotificationDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, DistributiveOmit, DU, DM } from '@liveblocks/core';
|
|
3
3
|
import React__default, { PropsWithChildren } from 'react';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -119,7 +119,7 @@ declare class UpdateNotificationSettingsError extends Error {
|
|
|
119
119
|
*/
|
|
120
120
|
declare type CommentsError<M extends BaseMetadata> = CreateThreadError<M> | EditThreadMetadataError<M> | CreateCommentError | EditCommentError | DeleteCommentError | MarkInboxNotificationAsReadError | UpdateNotificationSettingsError;
|
|
121
121
|
|
|
122
|
-
declare type
|
|
122
|
+
declare type UseSyncStatusOptions = {
|
|
123
123
|
/**
|
|
124
124
|
* When setting smooth, the hook will not update immediately as status
|
|
125
125
|
* changes. This is because in typical applications, these states can change
|
|
@@ -128,6 +128,7 @@ declare type UseStorageStatusOptions = {
|
|
|
128
128
|
*/
|
|
129
129
|
smooth?: boolean;
|
|
130
130
|
};
|
|
131
|
+
declare type UseStorageStatusOptions = UseSyncStatusOptions;
|
|
131
132
|
declare type StorageStatusSuccess = Exclude<StorageStatus, "not-loaded" | "loading">;
|
|
132
133
|
declare type ThreadsQuery<M extends BaseMetadata> = {
|
|
133
134
|
/**
|
|
@@ -316,6 +317,17 @@ declare type SharedContextBundle<U extends BaseUserMeta> = {
|
|
|
316
317
|
* const isInsideRoom = useIsInsideRoom();
|
|
317
318
|
*/
|
|
318
319
|
useIsInsideRoom(): boolean;
|
|
320
|
+
/**
|
|
321
|
+
* Returns the current Liveblocks sync status, and triggers a re-render
|
|
322
|
+
* whenever it changes. Can be used to render a "Saving..." indicator, or for
|
|
323
|
+
* preventing that a browser tab can be closed until all changes have been
|
|
324
|
+
* synchronized with the server.
|
|
325
|
+
*
|
|
326
|
+
* @example
|
|
327
|
+
* const syncStatus = useSyncStatus(); // "synchronizing" | "synchronized"
|
|
328
|
+
* const syncStatus = useSyncStatus({ smooth: true });
|
|
329
|
+
*/
|
|
330
|
+
useSyncStatus(options?: UseSyncStatusOptions): SyncStatus;
|
|
319
331
|
};
|
|
320
332
|
suspense: {
|
|
321
333
|
/**
|
|
@@ -343,6 +355,17 @@ declare type SharedContextBundle<U extends BaseUserMeta> = {
|
|
|
343
355
|
* const isInsideRoom = useIsInsideRoom();
|
|
344
356
|
*/
|
|
345
357
|
useIsInsideRoom(): boolean;
|
|
358
|
+
/**
|
|
359
|
+
* Returns the current Liveblocks sync status, and triggers a re-render
|
|
360
|
+
* whenever it changes. Can be used to render a "Saving..." indicator, or for
|
|
361
|
+
* preventing that a browser tab can be closed until all changes have been
|
|
362
|
+
* synchronized with the server.
|
|
363
|
+
*
|
|
364
|
+
* @example
|
|
365
|
+
* const syncStatus = useSyncStatus(); // "synchronizing" | "synchronized"
|
|
366
|
+
* const syncStatus = useSyncStatus({ smooth: true });
|
|
367
|
+
*/
|
|
368
|
+
useSyncStatus(options?: UseSyncStatusOptions): SyncStatus;
|
|
346
369
|
};
|
|
347
370
|
};
|
|
348
371
|
/**
|
|
@@ -772,6 +795,8 @@ declare type RoomContextBundle<P extends JsonObject, S extends LsonObject, U ext
|
|
|
772
795
|
* Returns the current storage status for the Room, and triggers
|
|
773
796
|
* a re-render whenever it changes. Can be used to render a "Saving..."
|
|
774
797
|
* indicator.
|
|
798
|
+
*
|
|
799
|
+
* @deprecated Prefer useSyncStatus()
|
|
775
800
|
*/
|
|
776
801
|
useStorageStatus(options?: UseStorageStatusOptions): StorageStatus;
|
|
777
802
|
/**
|
|
@@ -872,6 +897,8 @@ declare type RoomContextBundle<P extends JsonObject, S extends LsonObject, U ext
|
|
|
872
897
|
* Returns the current storage status for the Room, and triggers
|
|
873
898
|
* a re-render whenever it changes. Can be used to render a "Saving..."
|
|
874
899
|
* indicator.
|
|
900
|
+
*
|
|
901
|
+
* @deprecated Prefer useSyncStatus()
|
|
875
902
|
*/
|
|
876
903
|
useStorageStatus(options?: UseStorageStatusOptions): StorageStatusSuccess;
|
|
877
904
|
/**
|
|
@@ -1013,6 +1040,17 @@ declare type LiveblocksContextBundleCommon<M extends BaseMetadata> = {
|
|
|
1013
1040
|
* const thread = useInboxNotificationThread("in_xxx");
|
|
1014
1041
|
*/
|
|
1015
1042
|
useInboxNotificationThread(inboxNotificationId: string): ThreadData<M>;
|
|
1043
|
+
/**
|
|
1044
|
+
* Returns the current Liveblocks sync status, and triggers a re-render
|
|
1045
|
+
* whenever it changes. Can be used to render a "Saving..." indicator, or for
|
|
1046
|
+
* preventing that a browser tab can be closed until all changes have been
|
|
1047
|
+
* synchronized with the server.
|
|
1048
|
+
*
|
|
1049
|
+
* @example
|
|
1050
|
+
* const syncStatus = useSyncStatus(); // "synchronizing" | "synchronized"
|
|
1051
|
+
* const syncStatus = useSyncStatus({ smooth: true });
|
|
1052
|
+
*/
|
|
1053
|
+
useSyncStatus(options?: UseSyncStatusOptions): SyncStatus;
|
|
1016
1054
|
};
|
|
1017
1055
|
declare type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata> = Resolve<LiveblocksContextBundleCommon<M> & SharedContextBundle<U>["classic"] & {
|
|
1018
1056
|
/**
|
|
@@ -1262,6 +1300,7 @@ declare type UmbrellaStoreState<M extends BaseMetadata> = {
|
|
|
1262
1300
|
};
|
|
1263
1301
|
declare class UmbrellaStore<M extends BaseMetadata> {
|
|
1264
1302
|
private _client;
|
|
1303
|
+
private _syncSource;
|
|
1265
1304
|
private _rawThreadsDB;
|
|
1266
1305
|
private _prevVersion;
|
|
1267
1306
|
private _store;
|
|
@@ -1290,10 +1329,6 @@ declare class UmbrellaStore<M extends BaseMetadata> {
|
|
|
1290
1329
|
getInboxNotificationsLoadingState(): InboxNotificationsAsyncResult;
|
|
1291
1330
|
getNotificationSettingsLoadingState(roomId: string): RoomNotificationSettingsAsyncResult;
|
|
1292
1331
|
getRoomVersionsLoadingState(roomId: string): AsyncResult<HistoryVersion[], "versions">;
|
|
1293
|
-
/**
|
|
1294
|
-
* @private Only used by the E2E test suite.
|
|
1295
|
-
*/
|
|
1296
|
-
_hasOptimisticUpdates(): boolean;
|
|
1297
1332
|
subscribe(callback: () => void): () => void;
|
|
1298
1333
|
private mutateThreadsDB;
|
|
1299
1334
|
private updateInboxNotificationsCache;
|
|
@@ -1563,5 +1598,16 @@ declare const _useUserThreads_experimental: TypedBundle["useUserThreads_experime
|
|
|
1563
1598
|
* The final API for that is still TBD.
|
|
1564
1599
|
*/
|
|
1565
1600
|
declare const _useUserThreadsSuspense_experimental: TypedBundle["suspense"]["useUserThreads_experimental"];
|
|
1601
|
+
/**
|
|
1602
|
+
* Returns the current Liveblocks sync status, and triggers a re-render
|
|
1603
|
+
* whenever it changes. Can be used to render a "Saving..." indicator, or for
|
|
1604
|
+
* preventing that a browser tab can be closed until all changes have been
|
|
1605
|
+
* synchronized with the server.
|
|
1606
|
+
*
|
|
1607
|
+
* @example
|
|
1608
|
+
* const syncStatus = useSyncStatus(); // "synchronizing" | "synchronized"
|
|
1609
|
+
* const syncStatus = useSyncStatus({ smooth: true });
|
|
1610
|
+
*/
|
|
1611
|
+
declare function useSyncStatus(options?: UseSyncStatusOptions): SyncStatus;
|
|
1566
1612
|
|
|
1567
|
-
export { type AttachmentUrlAsyncResult as A, CreateThreadError as C, type DeleteCommentOptions as D, type EditCommentOptions as E, type HistoryVersionDataAsyncResult as H, LiveblocksProvider as L, type MutationContext as M, type RoomContextBundle as R, type StorageStatusSuccess as S, type ThreadSubscription as T, type UseStorageStatusOptions as U, _useInboxNotificationThread as _, type CommentsError as a, type CreateCommentOptions as b, type CommentReactionOptions as c, type UseThreadsOptions as d, ClientContext as e, createLiveblocksContext as f, getUmbrellaStoreForClient as g,
|
|
1613
|
+
export { type AttachmentUrlAsyncResult as A, CreateThreadError as C, type DeleteCommentOptions as D, type EditCommentOptions as E, type HistoryVersionDataAsyncResult as H, LiveblocksProvider as L, type MutationContext as M, type RoomContextBundle as R, type StorageStatusSuccess as S, type ThreadSubscription as T, type UseStorageStatusOptions as U, _useInboxNotificationThread as _, type CommentsError as a, type CreateCommentOptions as b, type CommentReactionOptions as c, type UseThreadsOptions as d, ClientContext as e, createLiveblocksContext as f, getUmbrellaStoreForClient as g, useDeleteAllInboxNotifications as h, useDeleteInboxNotification as i, useMarkAllInboxNotificationsAsRead as j, useMarkInboxNotificationAsRead as k, useSyncStatus as l, useInboxNotifications as m, _useUserThreads_experimental as n, useRoomInfo as o, useUnreadInboxNotificationsCount as p, _useUser as q, useInboxNotificationsSuspense as r, useRoomInfoSuspense as s, useUnreadInboxNotificationsCountSuspense as t, useClient as u, _useUserSuspense as v, _useUserThreadsSuspense_experimental as w };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as UseStorageStatusOptions, a as CommentsError, b as CreateCommentOptions, E as EditCommentOptions, D as DeleteCommentOptions, c as CommentReactionOptions, T as ThreadSubscription, H as HistoryVersionDataAsyncResult, S as StorageStatusSuccess, A as AttachmentUrlAsyncResult, R as RoomContextBundle } from './liveblocks-
|
|
1
|
+
import { U as UseStorageStatusOptions, a as CommentsError, b as CreateCommentOptions, E as EditCommentOptions, D as DeleteCommentOptions, c as CommentReactionOptions, T as ThreadSubscription, H as HistoryVersionDataAsyncResult, S as StorageStatusSuccess, A as AttachmentUrlAsyncResult, R as RoomContextBundle } from './liveblocks-1ujmr05d.js';
|
|
2
2
|
import { Status, StorageStatus, LostConnectionEvent, History, BaseMetadata, CommentData, RoomNotificationSettings, JsonObject, LsonObject, BaseUserMeta, Json, User } from '@liveblocks/client';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
@@ -44,6 +44,8 @@ declare function useStatus(): Status;
|
|
|
44
44
|
* Returns the current storage status for the Room, and triggers
|
|
45
45
|
* a re-render whenever it changes. Can be used to render a "Saving..."
|
|
46
46
|
* indicator.
|
|
47
|
+
*
|
|
48
|
+
* @deprecated Prefer useSyncStatus()
|
|
47
49
|
*/
|
|
48
50
|
declare function useStorageStatus(options?: UseStorageStatusOptions): StorageStatus;
|
|
49
51
|
/**
|
|
@@ -227,6 +229,8 @@ declare function useOthersConnectionIdsSuspense(): readonly number[];
|
|
|
227
229
|
* Returns the current storage status for the Room, and triggers
|
|
228
230
|
* a re-render whenever it changes. Can be used to render a "Saving..."
|
|
229
231
|
* indicator.
|
|
232
|
+
*
|
|
233
|
+
* @deprecated Prefer useSyncStatus()
|
|
230
234
|
*/
|
|
231
235
|
declare function useStorageStatusSuspense(options?: UseStorageStatusOptions): StorageStatusSuccess;
|
|
232
236
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as UseStorageStatusOptions, a as CommentsError, b as CreateCommentOptions, E as EditCommentOptions, D as DeleteCommentOptions, c as CommentReactionOptions, T as ThreadSubscription, H as HistoryVersionDataAsyncResult, S as StorageStatusSuccess, A as AttachmentUrlAsyncResult, R as RoomContextBundle } from './liveblocks-
|
|
1
|
+
import { U as UseStorageStatusOptions, a as CommentsError, b as CreateCommentOptions, E as EditCommentOptions, D as DeleteCommentOptions, c as CommentReactionOptions, T as ThreadSubscription, H as HistoryVersionDataAsyncResult, S as StorageStatusSuccess, A as AttachmentUrlAsyncResult, R as RoomContextBundle } from './liveblocks-1ujmr05d.mjs';
|
|
2
2
|
import { Status, StorageStatus, LostConnectionEvent, History, BaseMetadata, CommentData, RoomNotificationSettings, JsonObject, LsonObject, BaseUserMeta, Json, User } from '@liveblocks/client';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
@@ -44,6 +44,8 @@ declare function useStatus(): Status;
|
|
|
44
44
|
* Returns the current storage status for the Room, and triggers
|
|
45
45
|
* a re-render whenever it changes. Can be used to render a "Saving..."
|
|
46
46
|
* indicator.
|
|
47
|
+
*
|
|
48
|
+
* @deprecated Prefer useSyncStatus()
|
|
47
49
|
*/
|
|
48
50
|
declare function useStorageStatus(options?: UseStorageStatusOptions): StorageStatus;
|
|
49
51
|
/**
|
|
@@ -227,6 +229,8 @@ declare function useOthersConnectionIdsSuspense(): readonly number[];
|
|
|
227
229
|
* Returns the current storage status for the Room, and triggers
|
|
228
230
|
* a re-render whenever it changes. Can be used to render a "Saving..."
|
|
229
231
|
* indicator.
|
|
232
|
+
*
|
|
233
|
+
* @deprecated Prefer useSyncStatus()
|
|
230
234
|
*/
|
|
231
235
|
declare function useStorageStatusSuspense(options?: UseStorageStatusOptions): StorageStatusSuccess;
|
|
232
236
|
/**
|
package/dist/suspense.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { C as ClientSideSuspense, R as RoomContext, _ as RoomProvider, a as useAddReaction, a2 as useAttachmentUrl, u as useBatch, b as useBroadcastEvent, d as useCanRedo, e as useCanUndo, f as useCreateComment, g as useCreateThread, h as useDeleteComment, i as useDeleteThread, j as useEditComment, k as useEditThreadMetadata, n as useErrorListener, o as useEventListener, p as useHistory, a3 as useHistoryVersions, q as useIsInsideRoom, r as useLostConnectionListener, s as useMarkThreadAsRead, l as useMarkThreadAsResolved, m as useMarkThreadAsUnresolved, t as useMutation, v as useMyPresence, V as useOther, W as useOthers, X as useOthersConnectionIds, w as useOthersListener, Y as useOthersMapped, x as useRedo, y as useRemoveReaction, z as useRoom, a4 as useRoomNotificationSettings, Z as useSelf, A as useStatus, $ as useStorage, B as useStorageRoot, a0 as useStorageStatus, D as useThreadSubscription, a1 as useThreads, E as useUndo, F as useUpdateMyPresence, G as useUpdateRoomNotificationSettings } from './suspense-
|
|
2
|
-
export { e as ClientContext, L as LiveblocksProvider, M as MutationContext, U as UseStorageStatusOptions, d as UseThreadsOptions, u as useClient,
|
|
1
|
+
export { C as ClientSideSuspense, R as RoomContext, _ as RoomProvider, a as useAddReaction, a2 as useAttachmentUrl, u as useBatch, b as useBroadcastEvent, d as useCanRedo, e as useCanUndo, f as useCreateComment, g as useCreateThread, h as useDeleteComment, i as useDeleteThread, j as useEditComment, k as useEditThreadMetadata, n as useErrorListener, o as useEventListener, p as useHistory, a3 as useHistoryVersions, q as useIsInsideRoom, r as useLostConnectionListener, s as useMarkThreadAsRead, l as useMarkThreadAsResolved, m as useMarkThreadAsUnresolved, t as useMutation, v as useMyPresence, V as useOther, W as useOthers, X as useOthersConnectionIds, w as useOthersListener, Y as useOthersMapped, x as useRedo, y as useRemoveReaction, z as useRoom, a4 as useRoomNotificationSettings, Z as useSelf, A as useStatus, $ as useStorage, B as useStorageRoot, a0 as useStorageStatus, D as useThreadSubscription, a1 as useThreads, E as useUndo, F as useUpdateMyPresence, G as useUpdateRoomNotificationSettings } from './suspense-TeBnnKGw.mjs';
|
|
2
|
+
export { e as ClientContext, L as LiveblocksProvider, M as MutationContext, U as UseStorageStatusOptions, d as UseThreadsOptions, u as useClient, h as useDeleteAllInboxNotifications, i as useDeleteInboxNotification, _ as useInboxNotificationThread, r as useInboxNotifications, j as useMarkAllInboxNotificationsAsRead, k as useMarkInboxNotificationAsRead, s as useRoomInfo, l as useSyncStatus, t as useUnreadInboxNotificationsCount, v as useUser, w as useUserThreads_experimental } from './liveblocks-1ujmr05d.mjs';
|
|
3
3
|
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@liveblocks/core';
|
package/dist/suspense.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { C as ClientSideSuspense, R as RoomContext, _ as RoomProvider, a as useAddReaction, a2 as useAttachmentUrl, u as useBatch, b as useBroadcastEvent, d as useCanRedo, e as useCanUndo, f as useCreateComment, g as useCreateThread, h as useDeleteComment, i as useDeleteThread, j as useEditComment, k as useEditThreadMetadata, n as useErrorListener, o as useEventListener, p as useHistory, a3 as useHistoryVersions, q as useIsInsideRoom, r as useLostConnectionListener, s as useMarkThreadAsRead, l as useMarkThreadAsResolved, m as useMarkThreadAsUnresolved, t as useMutation, v as useMyPresence, V as useOther, W as useOthers, X as useOthersConnectionIds, w as useOthersListener, Y as useOthersMapped, x as useRedo, y as useRemoveReaction, z as useRoom, a4 as useRoomNotificationSettings, Z as useSelf, A as useStatus, $ as useStorage, B as useStorageRoot, a0 as useStorageStatus, D as useThreadSubscription, a1 as useThreads, E as useUndo, F as useUpdateMyPresence, G as useUpdateRoomNotificationSettings } from './suspense-
|
|
2
|
-
export { e as ClientContext, L as LiveblocksProvider, M as MutationContext, U as UseStorageStatusOptions, d as UseThreadsOptions, u as useClient,
|
|
1
|
+
export { C as ClientSideSuspense, R as RoomContext, _ as RoomProvider, a as useAddReaction, a2 as useAttachmentUrl, u as useBatch, b as useBroadcastEvent, d as useCanRedo, e as useCanUndo, f as useCreateComment, g as useCreateThread, h as useDeleteComment, i as useDeleteThread, j as useEditComment, k as useEditThreadMetadata, n as useErrorListener, o as useEventListener, p as useHistory, a3 as useHistoryVersions, q as useIsInsideRoom, r as useLostConnectionListener, s as useMarkThreadAsRead, l as useMarkThreadAsResolved, m as useMarkThreadAsUnresolved, t as useMutation, v as useMyPresence, V as useOther, W as useOthers, X as useOthersConnectionIds, w as useOthersListener, Y as useOthersMapped, x as useRedo, y as useRemoveReaction, z as useRoom, a4 as useRoomNotificationSettings, Z as useSelf, A as useStatus, $ as useStorage, B as useStorageRoot, a0 as useStorageStatus, D as useThreadSubscription, a1 as useThreads, E as useUndo, F as useUpdateMyPresence, G as useUpdateRoomNotificationSettings } from './suspense-560_K0iP.js';
|
|
2
|
+
export { e as ClientContext, L as LiveblocksProvider, M as MutationContext, U as UseStorageStatusOptions, d as UseThreadsOptions, u as useClient, h as useDeleteAllInboxNotifications, i as useDeleteInboxNotification, _ as useInboxNotificationThread, r as useInboxNotifications, j as useMarkAllInboxNotificationsAsRead, k as useMarkInboxNotificationAsRead, s as useRoomInfo, l as useSyncStatus, t as useUnreadInboxNotificationsCount, v as useUser, w as useUserThreads_experimental } from './liveblocks-1ujmr05d.js';
|
|
3
3
|
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@liveblocks/core';
|
package/dist/suspense.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk6ESOPOJRjs = require('./chunk-6ESOPOJR.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -62,12 +62,14 @@ var _chunkOVU4MAZAjs = require('./chunk-OVU4MAZA.js');
|
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
|
|
66
|
+
var _chunkIACZPXTYjs = require('./chunk-IACZPXTY.js');
|
|
66
67
|
|
|
67
68
|
// src/suspense.ts
|
|
68
69
|
var _core = require('@liveblocks/core');
|
|
69
70
|
var _client = require('@liveblocks/client');
|
|
70
|
-
_core.detectDupes.call(void 0,
|
|
71
|
+
_core.detectDupes.call(void 0, _chunk6ESOPOJRjs.PKG_NAME, _chunk6ESOPOJRjs.PKG_VERSION, _chunk6ESOPOJRjs.PKG_FORMAT);
|
|
72
|
+
|
|
71
73
|
|
|
72
74
|
|
|
73
75
|
|
|
@@ -128,5 +130,5 @@ _core.detectDupes.call(void 0, _chunkOVU4MAZAjs.PKG_NAME, _chunkOVU4MAZAjs.PKG_V
|
|
|
128
130
|
|
|
129
131
|
|
|
130
132
|
|
|
131
|
-
exports.ClientContext =
|
|
133
|
+
exports.ClientContext = _chunkIACZPXTYjs.ClientContext; exports.ClientSideSuspense = _chunk6ESOPOJRjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkIACZPXTYjs.LiveblocksProvider; exports.RoomContext = _chunkIACZPXTYjs.RoomContext; exports.RoomProvider = _chunkIACZPXTYjs._RoomProvider; exports.shallow = _client.shallow; exports.useAddReaction = _chunkIACZPXTYjs._useAddReaction; exports.useAttachmentUrl = _chunkIACZPXTYjs.useAttachmentUrlSuspense; exports.useBatch = _chunkIACZPXTYjs.useBatch; exports.useBroadcastEvent = _chunkIACZPXTYjs._useBroadcastEvent; exports.useCanRedo = _chunkIACZPXTYjs.useCanRedo; exports.useCanUndo = _chunkIACZPXTYjs.useCanUndo; exports.useClient = _chunkIACZPXTYjs.useClient; exports.useCreateComment = _chunkIACZPXTYjs.useCreateComment; exports.useCreateThread = _chunkIACZPXTYjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkIACZPXTYjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkIACZPXTYjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkIACZPXTYjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkIACZPXTYjs._useDeleteThread; exports.useEditComment = _chunkIACZPXTYjs.useEditComment; exports.useEditThreadMetadata = _chunkIACZPXTYjs._useEditThreadMetadata; exports.useErrorListener = _chunkIACZPXTYjs.useErrorListener; exports.useEventListener = _chunkIACZPXTYjs._useEventListener; exports.useHistory = _chunkIACZPXTYjs.useHistory; exports.useHistoryVersions = _chunkIACZPXTYjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkIACZPXTYjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkIACZPXTYjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkIACZPXTYjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkIACZPXTYjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkIACZPXTYjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkIACZPXTYjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkIACZPXTYjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkIACZPXTYjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkIACZPXTYjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkIACZPXTYjs._useMutation; exports.useMyPresence = _chunkIACZPXTYjs._useMyPresence; exports.useOther = _chunkIACZPXTYjs._useOtherSuspense; exports.useOthers = _chunkIACZPXTYjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkIACZPXTYjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkIACZPXTYjs._useOthersListener; exports.useOthersMapped = _chunkIACZPXTYjs._useOthersMappedSuspense; exports.useRedo = _chunkIACZPXTYjs.useRedo; exports.useRemoveReaction = _chunkIACZPXTYjs.useRemoveReaction; exports.useRoom = _chunkIACZPXTYjs._useRoom; exports.useRoomInfo = _chunkIACZPXTYjs.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunkIACZPXTYjs._useRoomNotificationSettingsSuspense; exports.useSelf = _chunkIACZPXTYjs._useSelfSuspense; exports.useStatus = _chunkIACZPXTYjs.useStatus; exports.useStorage = _chunkIACZPXTYjs._useStorageSuspense; exports.useStorageRoot = _chunkIACZPXTYjs._useStorageRoot; exports.useStorageStatus = _chunkIACZPXTYjs.useStorageStatusSuspense; exports.useSyncStatus = _chunkIACZPXTYjs.useSyncStatus; exports.useThreadSubscription = _chunkIACZPXTYjs.useThreadSubscription; exports.useThreads = _chunkIACZPXTYjs._useThreadsSuspense; exports.useUndo = _chunkIACZPXTYjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkIACZPXTYjs.useUnreadInboxNotificationsCountSuspense; exports.useUpdateMyPresence = _chunkIACZPXTYjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkIACZPXTYjs.useUpdateRoomNotificationSettings; exports.useUser = _chunkIACZPXTYjs._useUserSuspense; exports.useUserThreads_experimental = _chunkIACZPXTYjs._useUserThreadsSuspense_experimental;
|
|
132
134
|
//# sourceMappingURL=suspense.js.map
|
package/dist/suspense.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/suspense.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/suspense.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,eAAe;AAXxB,YAAY,UAAU,aAAa,UAAU","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 LiveblocksProvider,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\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 useErrorListener,\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} from \"./room\";\n\n// Export the Suspense versions of our hooks\n// (This part differs from src/index.ts)\nexport {\n useOtherSuspense as useOther,\n useOthersSuspense as useOthers,\n useOthersConnectionIdsSuspense as useOthersConnectionIds,\n useOthersMappedSuspense as useOthersMapped,\n useSelfSuspense as useSelf,\n useStorageSuspense as useStorage,\n useStorageStatusSuspense as useStorageStatus,\n useThreadsSuspense as useThreads,\n useAttachmentUrlSuspense as useAttachmentUrl,\n useHistoryVersionsSuspense as useHistoryVersions,\n useRoomNotificationSettingsSuspense as useRoomNotificationSettings,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useRoomInfoSuspense as useRoomInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n} from \"./liveblocks\";\n"]}
|
package/dist/suspense.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-MYFO7YF7.mjs";
|
|
7
7
|
import {
|
|
8
8
|
ClientContext,
|
|
9
9
|
LiveblocksProvider,
|
|
@@ -58,11 +58,12 @@ import {
|
|
|
58
58
|
useRoomInfoSuspense,
|
|
59
59
|
useStatus,
|
|
60
60
|
useStorageStatusSuspense,
|
|
61
|
+
useSyncStatus,
|
|
61
62
|
useThreadSubscription,
|
|
62
63
|
useUndo,
|
|
63
64
|
useUnreadInboxNotificationsCountSuspense,
|
|
64
65
|
useUpdateRoomNotificationSettings
|
|
65
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-CX62YECU.mjs";
|
|
66
67
|
|
|
67
68
|
// src/suspense.ts
|
|
68
69
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -120,6 +121,7 @@ export {
|
|
|
120
121
|
_useStorageSuspense as useStorage,
|
|
121
122
|
_useStorageRoot as useStorageRoot,
|
|
122
123
|
useStorageStatusSuspense as useStorageStatus,
|
|
124
|
+
useSyncStatus,
|
|
123
125
|
useThreadSubscription,
|
|
124
126
|
_useThreadsSuspense as useThreads,
|
|
125
127
|
useUndo,
|
package/dist/suspense.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/suspense.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n 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 LiveblocksProvider,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n} from \"./liveblocks\";\nexport {\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 useErrorListener,\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} from \"./room\";\n\n// Export the Suspense versions of our hooks\n// (This part differs from src/index.ts)\nexport {\n useOtherSuspense as useOther,\n useOthersSuspense as useOthers,\n useOthersConnectionIdsSuspense as useOthersConnectionIds,\n useOthersMappedSuspense as useOthersMapped,\n useSelfSuspense as useSelf,\n useStorageSuspense as useStorage,\n useStorageStatusSuspense as useStorageStatus,\n useThreadsSuspense as useThreads,\n useAttachmentUrlSuspense as useAttachmentUrl,\n useHistoryVersionsSuspense as useHistoryVersions,\n useRoomNotificationSettingsSuspense as useRoomNotificationSettings,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useRoomInfoSuspense as useRoomInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n} from \"./liveblocks\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/suspense.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n 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 LiveblocksProvider,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\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 useErrorListener,\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} from \"./room\";\n\n// Export the Suspense versions of our hooks\n// (This part differs from src/index.ts)\nexport {\n useOtherSuspense as useOther,\n useOthersSuspense as useOthers,\n useOthersConnectionIdsSuspense as useOthersConnectionIds,\n useOthersMappedSuspense as useOthersMapped,\n useSelfSuspense as useSelf,\n useStorageSuspense as useStorage,\n useStorageStatusSuspense as useStorageStatus,\n useThreadsSuspense as useThreads,\n useAttachmentUrlSuspense as useAttachmentUrl,\n useHistoryVersionsSuspense as useHistoryVersions,\n useRoomNotificationSettingsSuspense as useRoomNotificationSettings,\n} from \"./room\";\nexport {\n useInboxNotificationsSuspense as useInboxNotifications,\n useRoomInfoSuspense as useRoomInfo,\n useUnreadInboxNotificationsCountSuspense as useUnreadInboxNotificationsCount,\n useUserSuspense as useUser,\n useUserThreadsSuspense_experimental as useUserThreads_experimental,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,eAAe;AAXxB,YAAY,UAAU,aAAa,UAAU;","names":[]}
|