@liveblocks/react 2.8.2 → 2.9.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/{chunk-HPI4YG7I.js → chunk-7P6EIISH.js} +742 -692
- package/dist/chunk-7P6EIISH.js.map +1 -0
- package/dist/{chunk-TVXLSXTU.mjs → chunk-MOW22HED.mjs} +741 -691
- package/dist/chunk-MOW22HED.mjs.map +1 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/{suspense-DJOhRXB2.d.mts → suspense-fYGGJ3D9.d.mts} +71 -33
- package/dist/{suspense-DJOhRXB2.d.ts → suspense-fYGGJ3D9.d.ts} +71 -33
- package/dist/suspense.d.mts +1 -1
- package/dist/suspense.d.ts +1 -1
- package/dist/suspense.js +3 -3
- package/dist/suspense.mjs +1 -1
- package/package.json +3 -3
- package/dist/chunk-HPI4YG7I.js.map +0 -1
- package/dist/chunk-TVXLSXTU.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as ClientContext, C as ClientSideSuspense, X as CreateThreadError, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, U as UseStorageStatusOptions, a as UseThreadsOptions, c as createLiveblocksContext, h as createRoomContext, ac as getUmbrellaStoreForClient, ad as selectThreads, j as useAddReaction, a5 as useAttachmentUrl, k as useBatch, l as useBroadcastEvent, m as useCanRedo, n as useCanUndo, u as useClient, W as useCommentsErrorListener, o as useCreateComment, p as useCreateThread, f as useDeleteAllInboxNotifications, q as useDeleteComment, g as useDeleteInboxNotification, r as useDeleteThread, s as useEditComment, t as useEditThreadMetadata, x as useErrorListener, y as useEventListener, z as useHistory, V as useHistoryVersionData, a6 as useHistoryVersions, _ as useInboxNotificationThread, a7 as useInboxNotifications, A as useIsInsideRoom, B as useLostConnectionListener, d as useMarkAllInboxNotificationsAsRead, e as useMarkInboxNotificationAsRead, D as useMarkThreadAsRead, v as useMarkThreadAsResolved, w as useMarkThreadAsUnresolved, E as useMutation, F as useMyPresence, Y as useOther, Z as useOthers, $ as useOthersConnectionIds, G as useOthersListener, a0 as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, a9 as useRoomInfo, K as useRoomNotificationSettings, a1 as useSelf, N as useStatus, a2 as useStorage, O as useStorageRoot, a3 as useStorageStatus, P as useThreadSubscription, a4 as useThreads, Q as useUndo, aa as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, ab as useUser, a8 as useUserThreads_experimental } from './suspense-
|
|
1
|
+
export { b as ClientContext, C as ClientSideSuspense, X as CreateThreadError, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, U as UseStorageStatusOptions, a as UseThreadsOptions, c as createLiveblocksContext, h as createRoomContext, ac as getUmbrellaStoreForClient, ad as selectThreads, j as useAddReaction, a5 as useAttachmentUrl, k as useBatch, l as useBroadcastEvent, m as useCanRedo, n as useCanUndo, u as useClient, W as useCommentsErrorListener, o as useCreateComment, p as useCreateThread, f as useDeleteAllInboxNotifications, q as useDeleteComment, g as useDeleteInboxNotification, r as useDeleteThread, s as useEditComment, t as useEditThreadMetadata, x as useErrorListener, y as useEventListener, z as useHistory, V as useHistoryVersionData, a6 as useHistoryVersions, _ as useInboxNotificationThread, a7 as useInboxNotifications, A as useIsInsideRoom, B as useLostConnectionListener, d as useMarkAllInboxNotificationsAsRead, e as useMarkInboxNotificationAsRead, D as useMarkThreadAsRead, v as useMarkThreadAsResolved, w as useMarkThreadAsUnresolved, E as useMutation, F as useMyPresence, Y as useOther, Z as useOthers, $ as useOthersConnectionIds, G as useOthersListener, a0 as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, a9 as useRoomInfo, K as useRoomNotificationSettings, a1 as useSelf, N as useStatus, a2 as useStorage, O as useStorageRoot, a3 as useStorageStatus, P as useThreadSubscription, a4 as useThreads, Q as useUndo, aa as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, ab as useUser, a8 as useUserThreads_experimental } from './suspense-fYGGJ3D9.mjs';
|
|
2
2
|
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@liveblocks/core';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as ClientContext, C as ClientSideSuspense, X as CreateThreadError, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, U as UseStorageStatusOptions, a as UseThreadsOptions, c as createLiveblocksContext, h as createRoomContext, ac as getUmbrellaStoreForClient, ad as selectThreads, j as useAddReaction, a5 as useAttachmentUrl, k as useBatch, l as useBroadcastEvent, m as useCanRedo, n as useCanUndo, u as useClient, W as useCommentsErrorListener, o as useCreateComment, p as useCreateThread, f as useDeleteAllInboxNotifications, q as useDeleteComment, g as useDeleteInboxNotification, r as useDeleteThread, s as useEditComment, t as useEditThreadMetadata, x as useErrorListener, y as useEventListener, z as useHistory, V as useHistoryVersionData, a6 as useHistoryVersions, _ as useInboxNotificationThread, a7 as useInboxNotifications, A as useIsInsideRoom, B as useLostConnectionListener, d as useMarkAllInboxNotificationsAsRead, e as useMarkInboxNotificationAsRead, D as useMarkThreadAsRead, v as useMarkThreadAsResolved, w as useMarkThreadAsUnresolved, E as useMutation, F as useMyPresence, Y as useOther, Z as useOthers, $ as useOthersConnectionIds, G as useOthersListener, a0 as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, a9 as useRoomInfo, K as useRoomNotificationSettings, a1 as useSelf, N as useStatus, a2 as useStorage, O as useStorageRoot, a3 as useStorageStatus, P as useThreadSubscription, a4 as useThreads, Q as useUndo, aa as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, ab as useUser, a8 as useUserThreads_experimental } from './suspense-
|
|
1
|
+
export { b as ClientContext, C as ClientSideSuspense, X as CreateThreadError, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, U as UseStorageStatusOptions, a as UseThreadsOptions, c as createLiveblocksContext, h as createRoomContext, ac as getUmbrellaStoreForClient, ad as selectThreads, j as useAddReaction, a5 as useAttachmentUrl, k as useBatch, l as useBroadcastEvent, m as useCanRedo, n as useCanUndo, u as useClient, W as useCommentsErrorListener, o as useCreateComment, p as useCreateThread, f as useDeleteAllInboxNotifications, q as useDeleteComment, g as useDeleteInboxNotification, r as useDeleteThread, s as useEditComment, t as useEditThreadMetadata, x as useErrorListener, y as useEventListener, z as useHistory, V as useHistoryVersionData, a6 as useHistoryVersions, _ as useInboxNotificationThread, a7 as useInboxNotifications, A as useIsInsideRoom, B as useLostConnectionListener, d as useMarkAllInboxNotificationsAsRead, e as useMarkInboxNotificationAsRead, D as useMarkThreadAsRead, v as useMarkThreadAsResolved, w as useMarkThreadAsUnresolved, E as useMutation, F as useMyPresence, Y as useOther, Z as useOthers, $ as useOthersConnectionIds, G as useOthersListener, a0 as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, a9 as useRoomInfo, K as useRoomNotificationSettings, a1 as useSelf, N as useStatus, a2 as useStorage, O as useStorageRoot, a3 as useStorageStatus, P as useThreadSubscription, a4 as useThreads, Q as useUndo, aa as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, ab as useUser, a8 as useUserThreads_experimental } from './suspense-fYGGJ3D9.js';
|
|
2
2
|
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@liveblocks/core';
|
package/dist/index.js
CHANGED
|
@@ -67,12 +67,12 @@
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var _chunk7P6EIISHjs = require('./chunk-7P6EIISH.js');
|
|
71
71
|
|
|
72
72
|
// src/index.ts
|
|
73
73
|
var _core = require('@liveblocks/core');
|
|
74
74
|
var _client = require('@liveblocks/client');
|
|
75
|
-
_core.detectDupes.call(void 0,
|
|
75
|
+
_core.detectDupes.call(void 0, _chunk7P6EIISHjs.PKG_NAME, _chunk7P6EIISHjs.PKG_VERSION, _chunk7P6EIISHjs.PKG_FORMAT);
|
|
76
76
|
|
|
77
77
|
|
|
78
78
|
|
|
@@ -140,5 +140,5 @@ _core.detectDupes.call(void 0, _chunkHPI4YG7Ijs.PKG_NAME, _chunkHPI4YG7Ijs.PKG_V
|
|
|
140
140
|
|
|
141
141
|
|
|
142
142
|
|
|
143
|
-
exports.ClientContext =
|
|
143
|
+
exports.ClientContext = _chunk7P6EIISHjs.ClientContext; exports.ClientSideSuspense = _chunk7P6EIISHjs.ClientSideSuspense; exports.CreateThreadError = _chunk7P6EIISHjs.CreateThreadError; exports.LiveblocksProvider = _chunk7P6EIISHjs.LiveblocksProvider; exports.RoomContext = _chunk7P6EIISHjs.RoomContext; exports.RoomProvider = _chunk7P6EIISHjs._RoomProvider; exports.createLiveblocksContext = _chunk7P6EIISHjs.createLiveblocksContext; exports.createRoomContext = _chunk7P6EIISHjs.createRoomContext; exports.getUmbrellaStoreForClient = _chunk7P6EIISHjs.getUmbrellaStoreForClient; exports.selectThreads = _chunk7P6EIISHjs.selectThreads; exports.shallow = _client.shallow; exports.useAddReaction = _chunk7P6EIISHjs._useAddReaction; exports.useAttachmentUrl = _chunk7P6EIISHjs.useAttachmentUrl; exports.useBatch = _chunk7P6EIISHjs.useBatch; exports.useBroadcastEvent = _chunk7P6EIISHjs._useBroadcastEvent; exports.useCanRedo = _chunk7P6EIISHjs.useCanRedo; exports.useCanUndo = _chunk7P6EIISHjs.useCanUndo; exports.useClient = _chunk7P6EIISHjs.useClient; exports.useCommentsErrorListener = _chunk7P6EIISHjs.useCommentsErrorListener; exports.useCreateComment = _chunk7P6EIISHjs.useCreateComment; exports.useCreateThread = _chunk7P6EIISHjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunk7P6EIISHjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunk7P6EIISHjs.useDeleteComment; exports.useDeleteInboxNotification = _chunk7P6EIISHjs.useDeleteInboxNotification; exports.useDeleteThread = _chunk7P6EIISHjs._useDeleteThread; exports.useEditComment = _chunk7P6EIISHjs.useEditComment; exports.useEditThreadMetadata = _chunk7P6EIISHjs._useEditThreadMetadata; exports.useErrorListener = _chunk7P6EIISHjs.useErrorListener; exports.useEventListener = _chunk7P6EIISHjs._useEventListener; exports.useHistory = _chunk7P6EIISHjs.useHistory; exports.useHistoryVersionData = _chunk7P6EIISHjs.useHistoryVersionData; exports.useHistoryVersions = _chunk7P6EIISHjs._useHistoryVersions; exports.useInboxNotificationThread = _chunk7P6EIISHjs._useInboxNotificationThread; exports.useInboxNotifications = _chunk7P6EIISHjs.useInboxNotifications; exports.useIsInsideRoom = _chunk7P6EIISHjs._useIsInsideRoom; exports.useLostConnectionListener = _chunk7P6EIISHjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunk7P6EIISHjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunk7P6EIISHjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunk7P6EIISHjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunk7P6EIISHjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunk7P6EIISHjs.useMarkThreadAsUnresolved; exports.useMutation = _chunk7P6EIISHjs._useMutation; exports.useMyPresence = _chunk7P6EIISHjs._useMyPresence; exports.useOther = _chunk7P6EIISHjs._useOther; exports.useOthers = _chunk7P6EIISHjs._useOthers; exports.useOthersConnectionIds = _chunk7P6EIISHjs.useOthersConnectionIds; exports.useOthersListener = _chunk7P6EIISHjs._useOthersListener; exports.useOthersMapped = _chunk7P6EIISHjs._useOthersMapped; exports.useRedo = _chunk7P6EIISHjs.useRedo; exports.useRemoveReaction = _chunk7P6EIISHjs.useRemoveReaction; exports.useRoom = _chunk7P6EIISHjs._useRoom; exports.useRoomInfo = _chunk7P6EIISHjs.useRoomInfo; exports.useRoomNotificationSettings = _chunk7P6EIISHjs.useRoomNotificationSettings; exports.useSelf = _chunk7P6EIISHjs._useSelf; exports.useStatus = _chunk7P6EIISHjs.useStatus; exports.useStorage = _chunk7P6EIISHjs._useStorage; exports.useStorageRoot = _chunk7P6EIISHjs._useStorageRoot; exports.useStorageStatus = _chunk7P6EIISHjs.useStorageStatus; exports.useThreadSubscription = _chunk7P6EIISHjs.useThreadSubscription; exports.useThreads = _chunk7P6EIISHjs._useThreads; exports.useUndo = _chunk7P6EIISHjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunk7P6EIISHjs.useUnreadInboxNotificationsCount; exports.useUpdateMyPresence = _chunk7P6EIISHjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunk7P6EIISHjs.useUpdateRoomNotificationSettings; exports.useUser = _chunk7P6EIISHjs._useUser; exports.useUserThreads_experimental = _chunk7P6EIISHjs._useUserThreads_experimental;
|
|
144
144
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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 LiveblocksProvider,\n createLiveblocksContext,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\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 useRoomNotificationSettings,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n useHistoryVersionData,\n} from \"./room\";\n\nexport { useCommentsErrorListener, CreateThreadError } 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} from \"./room\";\nexport {\n useInboxNotifications,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n\n// Private APIs (for use in react-lexical only)\nexport { getUmbrellaStoreForClient
|
|
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 LiveblocksProvider,\n createLiveblocksContext,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\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 useRoomNotificationSettings,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n useHistoryVersionData,\n} from \"./room\";\n\nexport { useCommentsErrorListener, CreateThreadError } 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} from \"./room\";\nexport {\n useInboxNotifications,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n\n// Private APIs (for use in react-lexical only)\nexport { getUmbrellaStoreForClient } from \"./liveblocks\";\nexport { selectThreads } from \"./umbrella-store\";\n"]}
|
package/dist/index.mjs
CHANGED
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 LiveblocksProvider,\n createLiveblocksContext,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\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 useRoomNotificationSettings,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n useHistoryVersionData,\n} from \"./room\";\n\nexport { useCommentsErrorListener, CreateThreadError } 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} from \"./room\";\nexport {\n useInboxNotifications,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n\n// Private APIs (for use in react-lexical only)\nexport { getUmbrellaStoreForClient
|
|
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 LiveblocksProvider,\n createLiveblocksContext,\n useClient,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\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 useRoomNotificationSettings,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n useHistoryVersionData,\n} from \"./room\";\n\nexport { useCommentsErrorListener, CreateThreadError } 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} from \"./room\";\nexport {\n useInboxNotifications,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n\n// Private APIs (for use in react-lexical only)\nexport { getUmbrellaStoreForClient } from \"./liveblocks\";\nexport { selectThreads } from \"./umbrella-store\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,eAAe;AAXxB,YAAY,UAAU,aAAa,UAAU;","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { JsonObject, LsonObject, BaseUserMeta, LiveObject, User, RoomNotificationSettings, Json, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1,
|
|
1
|
+
import { JsonObject, LsonObject, BaseUserMeta, LiveObject, User, RoomNotificationSettings, Json, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, Client as Client$1, ClientOptions, StorageStatus as StorageStatus$1, CommentData as CommentData$1 } from '@liveblocks/client';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
3
|
import React__default, { ReactNode, PropsWithChildren } from 'react';
|
|
4
|
-
import { BaseMetadata, CommentBody, Patchable, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, CommentAttachment, Resolve, ToImmutable,
|
|
4
|
+
import { BaseMetadata, CommentBody, Patchable, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, CommentAttachment, InboxNotificationData, Resolve, ToImmutable, AsyncLoading, AsyncError, ThreadData, HistoryVersion, Client, LiveblocksError, RoomEventMessage, CommentData, PartialUnless, ThreadDataWithDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, OpaqueClient, CommentUserReaction, ThreadDeleteInfo, InboxNotificationDeleteInfo, DistributiveOmit, DU, DM, OpaqueRoom, DP, DS, DE } from '@liveblocks/core';
|
|
5
5
|
|
|
6
6
|
declare type Props = {
|
|
7
7
|
fallback: ReactNode;
|
|
@@ -202,10 +202,24 @@ declare type CommentReactionOptions = {
|
|
|
202
202
|
commentId: string;
|
|
203
203
|
emoji: string;
|
|
204
204
|
};
|
|
205
|
-
declare type
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
205
|
+
declare type NoPaginationFields = {
|
|
206
|
+
hasFetchedAll?: never;
|
|
207
|
+
isFetchingMore?: never;
|
|
208
|
+
fetchMore?: never;
|
|
209
|
+
fetchMoreError?: never;
|
|
210
|
+
};
|
|
211
|
+
declare type PaginationFields = {
|
|
212
|
+
hasFetchedAll: boolean;
|
|
213
|
+
isFetchingMore: boolean;
|
|
214
|
+
fetchMore: () => void;
|
|
215
|
+
fetchMoreError?: Error;
|
|
216
|
+
};
|
|
217
|
+
declare type PagedAsyncSuccess<T, F extends string> = Resolve<AsyncSuccess<T, F> & PaginationFields>;
|
|
218
|
+
declare type PagedAsyncResult<T, F extends string> = Resolve<AsyncLoading<F> & NoPaginationFields> | Resolve<AsyncError<F> & NoPaginationFields> | PagedAsyncSuccess<T, F>;
|
|
219
|
+
declare type ThreadsAsyncSuccess<M extends BaseMetadata> = PagedAsyncSuccess<ThreadData<M>[], "threads">;
|
|
220
|
+
declare type ThreadsAsyncResult<M extends BaseMetadata> = PagedAsyncResult<ThreadData<M>[], "threads">;
|
|
221
|
+
declare type InboxNotificationsAsyncSuccess = PagedAsyncSuccess<InboxNotificationData[], "inboxNotifications">;
|
|
222
|
+
declare type InboxNotificationsAsyncResult = PagedAsyncResult<InboxNotificationData[], "inboxNotifications">;
|
|
209
223
|
declare type UnreadInboxNotificationsCountAsyncSuccess = AsyncSuccess<number, "count">;
|
|
210
224
|
declare type UnreadInboxNotificationsCountAsyncResult = AsyncResult<number, "count">;
|
|
211
225
|
declare type RoomNotificationSettingsAsyncSuccess = AsyncSuccess<RoomNotificationSettings, "settings">;
|
|
@@ -1146,6 +1160,28 @@ declare type UpdateNotificationSettingsOptimisticUpdate = {
|
|
|
1146
1160
|
settings: Partial<RoomNotificationSettings$1>;
|
|
1147
1161
|
};
|
|
1148
1162
|
declare type QueryAsyncResult = AsyncResult<undefined>;
|
|
1163
|
+
/**
|
|
1164
|
+
* @private Do not rely on this internal API.
|
|
1165
|
+
*/
|
|
1166
|
+
declare function selectThreads<M extends BaseMetadata>(state: UmbrellaStoreState<M>, options: {
|
|
1167
|
+
roomId: string | null;
|
|
1168
|
+
query?: ThreadsQuery<M>;
|
|
1169
|
+
orderBy: "age" | "last-update";
|
|
1170
|
+
}): ThreadData<M>[];
|
|
1171
|
+
/**
|
|
1172
|
+
* Like Promise<T>, except it will have a synchronously readable `status`
|
|
1173
|
+
* field, indicating the status of the promise.
|
|
1174
|
+
* This is compatible with React's `use()` promises, hence the name.
|
|
1175
|
+
*/
|
|
1176
|
+
declare type UsablePromise<T> = Promise<T> & ({
|
|
1177
|
+
status: "pending";
|
|
1178
|
+
} | {
|
|
1179
|
+
status: "rejected";
|
|
1180
|
+
reason: Error;
|
|
1181
|
+
} | {
|
|
1182
|
+
status: "fulfilled";
|
|
1183
|
+
value: T;
|
|
1184
|
+
});
|
|
1149
1185
|
/**
|
|
1150
1186
|
* Externally observable state of the store, which will have:
|
|
1151
1187
|
* - Optimistic updates applied
|
|
@@ -1157,7 +1193,6 @@ declare type UmbrellaStoreState<M extends BaseMetadata> = {
|
|
|
1157
1193
|
* e.g. 'room-abc-{"color":"red"}' - ok
|
|
1158
1194
|
* e.g. 'room-abc-{}' - loading
|
|
1159
1195
|
*/
|
|
1160
|
-
queries2: Record<string, QueryAsyncResult>;
|
|
1161
1196
|
queries3: Record<string, QueryAsyncResult>;
|
|
1162
1197
|
queries4: Record<string, QueryAsyncResult>;
|
|
1163
1198
|
/**
|
|
@@ -1174,12 +1209,12 @@ declare type UmbrellaStoreState<M extends BaseMetadata> = {
|
|
|
1174
1209
|
/**
|
|
1175
1210
|
* All inbox notifications in a sorted array, optimistic updates applied.
|
|
1176
1211
|
*/
|
|
1177
|
-
|
|
1212
|
+
notifications: InboxNotificationData[];
|
|
1178
1213
|
/**
|
|
1179
1214
|
* Inbox notifications by ID.
|
|
1180
1215
|
* e.g. `in_${string}`
|
|
1181
1216
|
*/
|
|
1182
|
-
|
|
1217
|
+
notificationsById: Record<string, InboxNotificationData>;
|
|
1183
1218
|
/**
|
|
1184
1219
|
* Notification settings by room ID.
|
|
1185
1220
|
* e.g. { 'room-abc': { threads: "all" },
|
|
@@ -1187,7 +1222,7 @@ declare type UmbrellaStoreState<M extends BaseMetadata> = {
|
|
|
1187
1222
|
* 'room-xyz': { threads: "none" },
|
|
1188
1223
|
* }
|
|
1189
1224
|
*/
|
|
1190
|
-
|
|
1225
|
+
settingsByRoomId: Record<string, RoomNotificationSettings$1>;
|
|
1191
1226
|
/**
|
|
1192
1227
|
* Versions by roomId
|
|
1193
1228
|
* e.g. { 'room-abc': {versions: "all versions"}}
|
|
@@ -1195,20 +1230,28 @@ declare type UmbrellaStoreState<M extends BaseMetadata> = {
|
|
|
1195
1230
|
versionsByRoomId: Record<string, HistoryVersion[]>;
|
|
1196
1231
|
};
|
|
1197
1232
|
declare class UmbrellaStore<M extends BaseMetadata> {
|
|
1233
|
+
private _client?;
|
|
1198
1234
|
private _store;
|
|
1199
1235
|
private _prevState;
|
|
1200
1236
|
private _stateCached;
|
|
1201
|
-
|
|
1237
|
+
private _notificationsLastRequestedAt;
|
|
1238
|
+
private _notifications;
|
|
1239
|
+
private _roomThreadsLastRequestedAtByRoom;
|
|
1240
|
+
private _roomThreads;
|
|
1241
|
+
private _userThreadsLastRequestedAt;
|
|
1242
|
+
private _userThreads;
|
|
1243
|
+
constructor(client?: OpaqueClient);
|
|
1202
1244
|
private get;
|
|
1203
1245
|
batch(callback: () => void): void;
|
|
1204
1246
|
getFullState(): UmbrellaStoreState<M>;
|
|
1205
1247
|
/**
|
|
1206
|
-
* Returns the async result of the given
|
|
1207
|
-
* then it will return the
|
|
1248
|
+
* Returns the async result of the given query and room id. If the query is success,
|
|
1249
|
+
* then it will return the threads that match that provided query and room id.
|
|
1250
|
+
*
|
|
1208
1251
|
*/
|
|
1209
|
-
|
|
1210
|
-
getUserThreadsAsync(
|
|
1211
|
-
getInboxNotificationsAsync():
|
|
1252
|
+
getRoomThreadsAsync(roomId: string, query: ThreadsQuery<M> | undefined): ThreadsAsyncResult<M>;
|
|
1253
|
+
getUserThreadsAsync(query: ThreadsQuery<M> | undefined): ThreadsAsyncResult<M>;
|
|
1254
|
+
getInboxNotificationsAsync(): InboxNotificationsAsyncResult;
|
|
1212
1255
|
getNotificationSettingsAsync(roomId: string): RoomNotificationSettingsAsyncResult;
|
|
1213
1256
|
getVersionsAsync(roomId: string): AsyncResult<HistoryVersion[], "versions">;
|
|
1214
1257
|
/**
|
|
@@ -1229,8 +1272,6 @@ declare class UmbrellaStore<M extends BaseMetadata> {
|
|
|
1229
1272
|
private updateInboxNotificationsCache;
|
|
1230
1273
|
private setNotificationSettings;
|
|
1231
1274
|
private setVersions;
|
|
1232
|
-
private setQuery1State;
|
|
1233
|
-
private setQuery2State;
|
|
1234
1275
|
private setQuery3State;
|
|
1235
1276
|
private setQuery4State;
|
|
1236
1277
|
private updateOptimisticUpdatesCache;
|
|
@@ -1295,6 +1336,7 @@ declare class UmbrellaStore<M extends BaseMetadata> {
|
|
|
1295
1336
|
editComment(threadId: string, optimisticUpdateId: string, editedComment: CommentData): void;
|
|
1296
1337
|
deleteComment(threadId: string, optimisticUpdateId: string, commentId: string, deletedAt: Date): void;
|
|
1297
1338
|
updateThreadAndNotification(thread: ThreadData<M>, inboxNotification?: InboxNotificationData): void;
|
|
1339
|
+
updateThreadsAndNotifications(threads: ThreadData<M>[], inboxNotifications: InboxNotificationData[]): void;
|
|
1298
1340
|
updateThreadsAndNotifications(threads: ThreadData<M>[], inboxNotifications: InboxNotificationData[], deletedThreads: ThreadDeleteInfo[], deletedInboxNotifications: InboxNotificationDeleteInfo[]): void;
|
|
1299
1341
|
/**
|
|
1300
1342
|
* Updates existing notification setting for a room with a new value,
|
|
@@ -1305,18 +1347,18 @@ declare class UmbrellaStore<M extends BaseMetadata> {
|
|
|
1305
1347
|
updateRoomVersions(roomId: string, versions: HistoryVersion[], queryKey?: string): void;
|
|
1306
1348
|
addOptimisticUpdate(optimisticUpdate: DistributiveOmit<OptimisticUpdate<M>, "id">): string;
|
|
1307
1349
|
removeOptimisticUpdate(optimisticUpdateId: string): void;
|
|
1308
|
-
setQuery1Loading(): void;
|
|
1309
|
-
setQuery1OK(): void;
|
|
1310
|
-
setQuery1Error(error: Error): void;
|
|
1311
|
-
setQuery2Loading(queryKey: string): void;
|
|
1312
|
-
setQuery2OK(queryKey: string): void;
|
|
1313
|
-
setQuery2Error(queryKey: string, error: Error): void;
|
|
1314
1350
|
setQuery3Loading(queryKey: string): void;
|
|
1315
1351
|
private setQuery3OK;
|
|
1316
1352
|
setQuery3Error(queryKey: string, error: Error): void;
|
|
1317
1353
|
setQuery4Loading(queryKey: string): void;
|
|
1318
1354
|
private setQuery4OK;
|
|
1319
1355
|
setQuery4Error(queryKey: string, error: Error): void;
|
|
1356
|
+
fetchNotificationsDeltaUpdate(): Promise<void>;
|
|
1357
|
+
waitUntilNotificationsLoaded(): UsablePromise<void>;
|
|
1358
|
+
waitUntilRoomThreadsLoaded(roomId: string, query: ThreadsQuery<M> | undefined): UsablePromise<void>;
|
|
1359
|
+
fetchRoomThreadsDeltaUpdate(roomId: string): Promise<void>;
|
|
1360
|
+
waitUntilUserThreadsLoaded(query: ThreadsQuery<M> | undefined): UsablePromise<void>;
|
|
1361
|
+
fetchUserThreadsDeltaUpdate(): Promise<void>;
|
|
1320
1362
|
}
|
|
1321
1363
|
|
|
1322
1364
|
/**
|
|
@@ -1326,14 +1368,6 @@ declare class UmbrellaStore<M extends BaseMetadata> {
|
|
|
1326
1368
|
* @private This is a private/advanced API. Do not rely on it.
|
|
1327
1369
|
*/
|
|
1328
1370
|
declare const ClientContext: React__default.Context<OpaqueClient | null>;
|
|
1329
|
-
/**
|
|
1330
|
-
* @private Do not rely on this internal API.
|
|
1331
|
-
*/
|
|
1332
|
-
declare function selectThreads<M extends BaseMetadata$1>(state: UmbrellaStoreState<M>, options: {
|
|
1333
|
-
roomId: string | null;
|
|
1334
|
-
query?: ThreadsQuery<M>;
|
|
1335
|
-
orderBy: "age" | "last-update";
|
|
1336
|
-
}): ThreadData$1<M>[];
|
|
1337
1371
|
/**
|
|
1338
1372
|
* Gets or creates a unique Umbrella store for each unique client instance.
|
|
1339
1373
|
*
|
|
@@ -1365,7 +1399,7 @@ declare function createLiveblocksContext<U extends BaseUserMeta = DU, M extends
|
|
|
1365
1399
|
* @example
|
|
1366
1400
|
* const { inboxNotifications, error, isLoading } = useInboxNotifications();
|
|
1367
1401
|
*/
|
|
1368
|
-
declare function useInboxNotifications():
|
|
1402
|
+
declare function useInboxNotifications(): InboxNotificationsAsyncResult;
|
|
1369
1403
|
/**
|
|
1370
1404
|
* Returns the inbox notifications for the current user.
|
|
1371
1405
|
*
|
|
@@ -1376,6 +1410,10 @@ declare function useInboxNotificationsSuspense(): {
|
|
|
1376
1410
|
readonly isLoading: false;
|
|
1377
1411
|
readonly inboxNotifications: InboxNotificationData[];
|
|
1378
1412
|
readonly error?: undefined;
|
|
1413
|
+
hasFetchedAll: boolean;
|
|
1414
|
+
isFetchingMore: boolean;
|
|
1415
|
+
fetchMore: () => void;
|
|
1416
|
+
fetchMoreError?: Error | undefined;
|
|
1379
1417
|
};
|
|
1380
1418
|
/**
|
|
1381
1419
|
* Returns a function that marks all of the current user's inbox notifications as read.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { JsonObject, LsonObject, BaseUserMeta, LiveObject, User, RoomNotificationSettings, Json, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1,
|
|
1
|
+
import { JsonObject, LsonObject, BaseUserMeta, LiveObject, User, RoomNotificationSettings, Json, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, Client as Client$1, ClientOptions, StorageStatus as StorageStatus$1, CommentData as CommentData$1 } from '@liveblocks/client';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
3
|
import React__default, { ReactNode, PropsWithChildren } from 'react';
|
|
4
|
-
import { BaseMetadata, CommentBody, Patchable, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, CommentAttachment, Resolve, ToImmutable,
|
|
4
|
+
import { BaseMetadata, CommentBody, Patchable, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, CommentAttachment, InboxNotificationData, Resolve, ToImmutable, AsyncLoading, AsyncError, ThreadData, HistoryVersion, Client, LiveblocksError, RoomEventMessage, CommentData, PartialUnless, ThreadDataWithDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, OpaqueClient, CommentUserReaction, ThreadDeleteInfo, InboxNotificationDeleteInfo, DistributiveOmit, DU, DM, OpaqueRoom, DP, DS, DE } from '@liveblocks/core';
|
|
5
5
|
|
|
6
6
|
declare type Props = {
|
|
7
7
|
fallback: ReactNode;
|
|
@@ -202,10 +202,24 @@ declare type CommentReactionOptions = {
|
|
|
202
202
|
commentId: string;
|
|
203
203
|
emoji: string;
|
|
204
204
|
};
|
|
205
|
-
declare type
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
205
|
+
declare type NoPaginationFields = {
|
|
206
|
+
hasFetchedAll?: never;
|
|
207
|
+
isFetchingMore?: never;
|
|
208
|
+
fetchMore?: never;
|
|
209
|
+
fetchMoreError?: never;
|
|
210
|
+
};
|
|
211
|
+
declare type PaginationFields = {
|
|
212
|
+
hasFetchedAll: boolean;
|
|
213
|
+
isFetchingMore: boolean;
|
|
214
|
+
fetchMore: () => void;
|
|
215
|
+
fetchMoreError?: Error;
|
|
216
|
+
};
|
|
217
|
+
declare type PagedAsyncSuccess<T, F extends string> = Resolve<AsyncSuccess<T, F> & PaginationFields>;
|
|
218
|
+
declare type PagedAsyncResult<T, F extends string> = Resolve<AsyncLoading<F> & NoPaginationFields> | Resolve<AsyncError<F> & NoPaginationFields> | PagedAsyncSuccess<T, F>;
|
|
219
|
+
declare type ThreadsAsyncSuccess<M extends BaseMetadata> = PagedAsyncSuccess<ThreadData<M>[], "threads">;
|
|
220
|
+
declare type ThreadsAsyncResult<M extends BaseMetadata> = PagedAsyncResult<ThreadData<M>[], "threads">;
|
|
221
|
+
declare type InboxNotificationsAsyncSuccess = PagedAsyncSuccess<InboxNotificationData[], "inboxNotifications">;
|
|
222
|
+
declare type InboxNotificationsAsyncResult = PagedAsyncResult<InboxNotificationData[], "inboxNotifications">;
|
|
209
223
|
declare type UnreadInboxNotificationsCountAsyncSuccess = AsyncSuccess<number, "count">;
|
|
210
224
|
declare type UnreadInboxNotificationsCountAsyncResult = AsyncResult<number, "count">;
|
|
211
225
|
declare type RoomNotificationSettingsAsyncSuccess = AsyncSuccess<RoomNotificationSettings, "settings">;
|
|
@@ -1146,6 +1160,28 @@ declare type UpdateNotificationSettingsOptimisticUpdate = {
|
|
|
1146
1160
|
settings: Partial<RoomNotificationSettings$1>;
|
|
1147
1161
|
};
|
|
1148
1162
|
declare type QueryAsyncResult = AsyncResult<undefined>;
|
|
1163
|
+
/**
|
|
1164
|
+
* @private Do not rely on this internal API.
|
|
1165
|
+
*/
|
|
1166
|
+
declare function selectThreads<M extends BaseMetadata>(state: UmbrellaStoreState<M>, options: {
|
|
1167
|
+
roomId: string | null;
|
|
1168
|
+
query?: ThreadsQuery<M>;
|
|
1169
|
+
orderBy: "age" | "last-update";
|
|
1170
|
+
}): ThreadData<M>[];
|
|
1171
|
+
/**
|
|
1172
|
+
* Like Promise<T>, except it will have a synchronously readable `status`
|
|
1173
|
+
* field, indicating the status of the promise.
|
|
1174
|
+
* This is compatible with React's `use()` promises, hence the name.
|
|
1175
|
+
*/
|
|
1176
|
+
declare type UsablePromise<T> = Promise<T> & ({
|
|
1177
|
+
status: "pending";
|
|
1178
|
+
} | {
|
|
1179
|
+
status: "rejected";
|
|
1180
|
+
reason: Error;
|
|
1181
|
+
} | {
|
|
1182
|
+
status: "fulfilled";
|
|
1183
|
+
value: T;
|
|
1184
|
+
});
|
|
1149
1185
|
/**
|
|
1150
1186
|
* Externally observable state of the store, which will have:
|
|
1151
1187
|
* - Optimistic updates applied
|
|
@@ -1157,7 +1193,6 @@ declare type UmbrellaStoreState<M extends BaseMetadata> = {
|
|
|
1157
1193
|
* e.g. 'room-abc-{"color":"red"}' - ok
|
|
1158
1194
|
* e.g. 'room-abc-{}' - loading
|
|
1159
1195
|
*/
|
|
1160
|
-
queries2: Record<string, QueryAsyncResult>;
|
|
1161
1196
|
queries3: Record<string, QueryAsyncResult>;
|
|
1162
1197
|
queries4: Record<string, QueryAsyncResult>;
|
|
1163
1198
|
/**
|
|
@@ -1174,12 +1209,12 @@ declare type UmbrellaStoreState<M extends BaseMetadata> = {
|
|
|
1174
1209
|
/**
|
|
1175
1210
|
* All inbox notifications in a sorted array, optimistic updates applied.
|
|
1176
1211
|
*/
|
|
1177
|
-
|
|
1212
|
+
notifications: InboxNotificationData[];
|
|
1178
1213
|
/**
|
|
1179
1214
|
* Inbox notifications by ID.
|
|
1180
1215
|
* e.g. `in_${string}`
|
|
1181
1216
|
*/
|
|
1182
|
-
|
|
1217
|
+
notificationsById: Record<string, InboxNotificationData>;
|
|
1183
1218
|
/**
|
|
1184
1219
|
* Notification settings by room ID.
|
|
1185
1220
|
* e.g. { 'room-abc': { threads: "all" },
|
|
@@ -1187,7 +1222,7 @@ declare type UmbrellaStoreState<M extends BaseMetadata> = {
|
|
|
1187
1222
|
* 'room-xyz': { threads: "none" },
|
|
1188
1223
|
* }
|
|
1189
1224
|
*/
|
|
1190
|
-
|
|
1225
|
+
settingsByRoomId: Record<string, RoomNotificationSettings$1>;
|
|
1191
1226
|
/**
|
|
1192
1227
|
* Versions by roomId
|
|
1193
1228
|
* e.g. { 'room-abc': {versions: "all versions"}}
|
|
@@ -1195,20 +1230,28 @@ declare type UmbrellaStoreState<M extends BaseMetadata> = {
|
|
|
1195
1230
|
versionsByRoomId: Record<string, HistoryVersion[]>;
|
|
1196
1231
|
};
|
|
1197
1232
|
declare class UmbrellaStore<M extends BaseMetadata> {
|
|
1233
|
+
private _client?;
|
|
1198
1234
|
private _store;
|
|
1199
1235
|
private _prevState;
|
|
1200
1236
|
private _stateCached;
|
|
1201
|
-
|
|
1237
|
+
private _notificationsLastRequestedAt;
|
|
1238
|
+
private _notifications;
|
|
1239
|
+
private _roomThreadsLastRequestedAtByRoom;
|
|
1240
|
+
private _roomThreads;
|
|
1241
|
+
private _userThreadsLastRequestedAt;
|
|
1242
|
+
private _userThreads;
|
|
1243
|
+
constructor(client?: OpaqueClient);
|
|
1202
1244
|
private get;
|
|
1203
1245
|
batch(callback: () => void): void;
|
|
1204
1246
|
getFullState(): UmbrellaStoreState<M>;
|
|
1205
1247
|
/**
|
|
1206
|
-
* Returns the async result of the given
|
|
1207
|
-
* then it will return the
|
|
1248
|
+
* Returns the async result of the given query and room id. If the query is success,
|
|
1249
|
+
* then it will return the threads that match that provided query and room id.
|
|
1250
|
+
*
|
|
1208
1251
|
*/
|
|
1209
|
-
|
|
1210
|
-
getUserThreadsAsync(
|
|
1211
|
-
getInboxNotificationsAsync():
|
|
1252
|
+
getRoomThreadsAsync(roomId: string, query: ThreadsQuery<M> | undefined): ThreadsAsyncResult<M>;
|
|
1253
|
+
getUserThreadsAsync(query: ThreadsQuery<M> | undefined): ThreadsAsyncResult<M>;
|
|
1254
|
+
getInboxNotificationsAsync(): InboxNotificationsAsyncResult;
|
|
1212
1255
|
getNotificationSettingsAsync(roomId: string): RoomNotificationSettingsAsyncResult;
|
|
1213
1256
|
getVersionsAsync(roomId: string): AsyncResult<HistoryVersion[], "versions">;
|
|
1214
1257
|
/**
|
|
@@ -1229,8 +1272,6 @@ declare class UmbrellaStore<M extends BaseMetadata> {
|
|
|
1229
1272
|
private updateInboxNotificationsCache;
|
|
1230
1273
|
private setNotificationSettings;
|
|
1231
1274
|
private setVersions;
|
|
1232
|
-
private setQuery1State;
|
|
1233
|
-
private setQuery2State;
|
|
1234
1275
|
private setQuery3State;
|
|
1235
1276
|
private setQuery4State;
|
|
1236
1277
|
private updateOptimisticUpdatesCache;
|
|
@@ -1295,6 +1336,7 @@ declare class UmbrellaStore<M extends BaseMetadata> {
|
|
|
1295
1336
|
editComment(threadId: string, optimisticUpdateId: string, editedComment: CommentData): void;
|
|
1296
1337
|
deleteComment(threadId: string, optimisticUpdateId: string, commentId: string, deletedAt: Date): void;
|
|
1297
1338
|
updateThreadAndNotification(thread: ThreadData<M>, inboxNotification?: InboxNotificationData): void;
|
|
1339
|
+
updateThreadsAndNotifications(threads: ThreadData<M>[], inboxNotifications: InboxNotificationData[]): void;
|
|
1298
1340
|
updateThreadsAndNotifications(threads: ThreadData<M>[], inboxNotifications: InboxNotificationData[], deletedThreads: ThreadDeleteInfo[], deletedInboxNotifications: InboxNotificationDeleteInfo[]): void;
|
|
1299
1341
|
/**
|
|
1300
1342
|
* Updates existing notification setting for a room with a new value,
|
|
@@ -1305,18 +1347,18 @@ declare class UmbrellaStore<M extends BaseMetadata> {
|
|
|
1305
1347
|
updateRoomVersions(roomId: string, versions: HistoryVersion[], queryKey?: string): void;
|
|
1306
1348
|
addOptimisticUpdate(optimisticUpdate: DistributiveOmit<OptimisticUpdate<M>, "id">): string;
|
|
1307
1349
|
removeOptimisticUpdate(optimisticUpdateId: string): void;
|
|
1308
|
-
setQuery1Loading(): void;
|
|
1309
|
-
setQuery1OK(): void;
|
|
1310
|
-
setQuery1Error(error: Error): void;
|
|
1311
|
-
setQuery2Loading(queryKey: string): void;
|
|
1312
|
-
setQuery2OK(queryKey: string): void;
|
|
1313
|
-
setQuery2Error(queryKey: string, error: Error): void;
|
|
1314
1350
|
setQuery3Loading(queryKey: string): void;
|
|
1315
1351
|
private setQuery3OK;
|
|
1316
1352
|
setQuery3Error(queryKey: string, error: Error): void;
|
|
1317
1353
|
setQuery4Loading(queryKey: string): void;
|
|
1318
1354
|
private setQuery4OK;
|
|
1319
1355
|
setQuery4Error(queryKey: string, error: Error): void;
|
|
1356
|
+
fetchNotificationsDeltaUpdate(): Promise<void>;
|
|
1357
|
+
waitUntilNotificationsLoaded(): UsablePromise<void>;
|
|
1358
|
+
waitUntilRoomThreadsLoaded(roomId: string, query: ThreadsQuery<M> | undefined): UsablePromise<void>;
|
|
1359
|
+
fetchRoomThreadsDeltaUpdate(roomId: string): Promise<void>;
|
|
1360
|
+
waitUntilUserThreadsLoaded(query: ThreadsQuery<M> | undefined): UsablePromise<void>;
|
|
1361
|
+
fetchUserThreadsDeltaUpdate(): Promise<void>;
|
|
1320
1362
|
}
|
|
1321
1363
|
|
|
1322
1364
|
/**
|
|
@@ -1326,14 +1368,6 @@ declare class UmbrellaStore<M extends BaseMetadata> {
|
|
|
1326
1368
|
* @private This is a private/advanced API. Do not rely on it.
|
|
1327
1369
|
*/
|
|
1328
1370
|
declare const ClientContext: React__default.Context<OpaqueClient | null>;
|
|
1329
|
-
/**
|
|
1330
|
-
* @private Do not rely on this internal API.
|
|
1331
|
-
*/
|
|
1332
|
-
declare function selectThreads<M extends BaseMetadata$1>(state: UmbrellaStoreState<M>, options: {
|
|
1333
|
-
roomId: string | null;
|
|
1334
|
-
query?: ThreadsQuery<M>;
|
|
1335
|
-
orderBy: "age" | "last-update";
|
|
1336
|
-
}): ThreadData$1<M>[];
|
|
1337
1371
|
/**
|
|
1338
1372
|
* Gets or creates a unique Umbrella store for each unique client instance.
|
|
1339
1373
|
*
|
|
@@ -1365,7 +1399,7 @@ declare function createLiveblocksContext<U extends BaseUserMeta = DU, M extends
|
|
|
1365
1399
|
* @example
|
|
1366
1400
|
* const { inboxNotifications, error, isLoading } = useInboxNotifications();
|
|
1367
1401
|
*/
|
|
1368
|
-
declare function useInboxNotifications():
|
|
1402
|
+
declare function useInboxNotifications(): InboxNotificationsAsyncResult;
|
|
1369
1403
|
/**
|
|
1370
1404
|
* Returns the inbox notifications for the current user.
|
|
1371
1405
|
*
|
|
@@ -1376,6 +1410,10 @@ declare function useInboxNotificationsSuspense(): {
|
|
|
1376
1410
|
readonly isLoading: false;
|
|
1377
1411
|
readonly inboxNotifications: InboxNotificationData[];
|
|
1378
1412
|
readonly error?: undefined;
|
|
1413
|
+
hasFetchedAll: boolean;
|
|
1414
|
+
isFetchingMore: boolean;
|
|
1415
|
+
fetchMore: () => void;
|
|
1416
|
+
fetchMoreError?: Error | undefined;
|
|
1379
1417
|
};
|
|
1380
1418
|
/**
|
|
1381
1419
|
* Returns a function that marks all of the current user's inbox notifications as read.
|
package/dist/suspense.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as ClientContext, C as ClientSideSuspense, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, U as UseStorageStatusOptions, a as UseThreadsOptions, j as useAddReaction, am as useAttachmentUrl, k as useBatch, l as useBroadcastEvent, m as useCanRedo, n as useCanUndo, u as useClient, o as useCreateComment, p as useCreateThread, f as useDeleteAllInboxNotifications, q as useDeleteComment, g as useDeleteInboxNotification, r as useDeleteThread, s as useEditComment, t as useEditThreadMetadata, x as useErrorListener, y as useEventListener, z as useHistory, an as useHistoryVersions, _ as useInboxNotificationThread, ao as useInboxNotifications, A as useIsInsideRoom, B as useLostConnectionListener, d as useMarkAllInboxNotificationsAsRead, e as useMarkInboxNotificationAsRead, D as useMarkThreadAsRead, v as useMarkThreadAsResolved, w as useMarkThreadAsUnresolved, E as useMutation, F as useMyPresence, ae as useOther, af as useOthers, ag as useOthersConnectionIds, G as useOthersListener, ah as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, ap as useRoomInfo, K as useRoomNotificationSettings, ai as useSelf, N as useStatus, aj as useStorage, O as useStorageRoot, ak as useStorageStatus, P as useThreadSubscription, al as useThreads, Q as useUndo, aq as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, ar as useUser, as as useUserThreads_experimental } from './suspense-
|
|
1
|
+
export { b as ClientContext, C as ClientSideSuspense, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, U as UseStorageStatusOptions, a as UseThreadsOptions, j as useAddReaction, am as useAttachmentUrl, k as useBatch, l as useBroadcastEvent, m as useCanRedo, n as useCanUndo, u as useClient, o as useCreateComment, p as useCreateThread, f as useDeleteAllInboxNotifications, q as useDeleteComment, g as useDeleteInboxNotification, r as useDeleteThread, s as useEditComment, t as useEditThreadMetadata, x as useErrorListener, y as useEventListener, z as useHistory, an as useHistoryVersions, _ as useInboxNotificationThread, ao as useInboxNotifications, A as useIsInsideRoom, B as useLostConnectionListener, d as useMarkAllInboxNotificationsAsRead, e as useMarkInboxNotificationAsRead, D as useMarkThreadAsRead, v as useMarkThreadAsResolved, w as useMarkThreadAsUnresolved, E as useMutation, F as useMyPresence, ae as useOther, af as useOthers, ag as useOthersConnectionIds, G as useOthersListener, ah as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, ap as useRoomInfo, K as useRoomNotificationSettings, ai as useSelf, N as useStatus, aj as useStorage, O as useStorageRoot, ak as useStorageStatus, P as useThreadSubscription, al as useThreads, Q as useUndo, aq as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, ar as useUser, as as useUserThreads_experimental } from './suspense-fYGGJ3D9.mjs';
|
|
2
2
|
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@liveblocks/core';
|
package/dist/suspense.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as ClientContext, C as ClientSideSuspense, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, U as UseStorageStatusOptions, a as UseThreadsOptions, j as useAddReaction, am as useAttachmentUrl, k as useBatch, l as useBroadcastEvent, m as useCanRedo, n as useCanUndo, u as useClient, o as useCreateComment, p as useCreateThread, f as useDeleteAllInboxNotifications, q as useDeleteComment, g as useDeleteInboxNotification, r as useDeleteThread, s as useEditComment, t as useEditThreadMetadata, x as useErrorListener, y as useEventListener, z as useHistory, an as useHistoryVersions, _ as useInboxNotificationThread, ao as useInboxNotifications, A as useIsInsideRoom, B as useLostConnectionListener, d as useMarkAllInboxNotificationsAsRead, e as useMarkInboxNotificationAsRead, D as useMarkThreadAsRead, v as useMarkThreadAsResolved, w as useMarkThreadAsUnresolved, E as useMutation, F as useMyPresence, ae as useOther, af as useOthers, ag as useOthersConnectionIds, G as useOthersListener, ah as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, ap as useRoomInfo, K as useRoomNotificationSettings, ai as useSelf, N as useStatus, aj as useStorage, O as useStorageRoot, ak as useStorageStatus, P as useThreadSubscription, al as useThreads, Q as useUndo, aq as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, ar as useUser, as as useUserThreads_experimental } from './suspense-
|
|
1
|
+
export { b as ClientContext, C as ClientSideSuspense, L as LiveblocksProvider, M as MutationContext, R as RoomContext, i as RoomProvider, U as UseStorageStatusOptions, a as UseThreadsOptions, j as useAddReaction, am as useAttachmentUrl, k as useBatch, l as useBroadcastEvent, m as useCanRedo, n as useCanUndo, u as useClient, o as useCreateComment, p as useCreateThread, f as useDeleteAllInboxNotifications, q as useDeleteComment, g as useDeleteInboxNotification, r as useDeleteThread, s as useEditComment, t as useEditThreadMetadata, x as useErrorListener, y as useEventListener, z as useHistory, an as useHistoryVersions, _ as useInboxNotificationThread, ao as useInboxNotifications, A as useIsInsideRoom, B as useLostConnectionListener, d as useMarkAllInboxNotificationsAsRead, e as useMarkInboxNotificationAsRead, D as useMarkThreadAsRead, v as useMarkThreadAsResolved, w as useMarkThreadAsUnresolved, E as useMutation, F as useMyPresence, ae as useOther, af as useOthers, ag as useOthersConnectionIds, G as useOthersListener, ah as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, ap as useRoomInfo, K as useRoomNotificationSettings, ai as useSelf, N as useStatus, aj as useStorage, O as useStorageRoot, ak as useStorageStatus, P as useThreadSubscription, al as useThreads, Q as useUndo, aq as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, ar as useUser, as as useUserThreads_experimental } from './suspense-fYGGJ3D9.js';
|
|
2
2
|
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@liveblocks/core';
|
package/dist/suspense.js
CHANGED
|
@@ -60,12 +60,12 @@
|
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
|
|
63
|
-
var
|
|
63
|
+
var _chunk7P6EIISHjs = require('./chunk-7P6EIISH.js');
|
|
64
64
|
|
|
65
65
|
// src/suspense.ts
|
|
66
66
|
var _core = require('@liveblocks/core');
|
|
67
67
|
var _client = require('@liveblocks/client');
|
|
68
|
-
_core.detectDupes.call(void 0,
|
|
68
|
+
_core.detectDupes.call(void 0, _chunk7P6EIISHjs.PKG_NAME, _chunk7P6EIISHjs.PKG_VERSION, _chunk7P6EIISHjs.PKG_FORMAT);
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
|
|
@@ -126,5 +126,5 @@ _core.detectDupes.call(void 0, _chunkHPI4YG7Ijs.PKG_NAME, _chunkHPI4YG7Ijs.PKG_V
|
|
|
126
126
|
|
|
127
127
|
|
|
128
128
|
|
|
129
|
-
exports.ClientContext =
|
|
129
|
+
exports.ClientContext = _chunk7P6EIISHjs.ClientContext; exports.ClientSideSuspense = _chunk7P6EIISHjs.ClientSideSuspense; exports.LiveblocksProvider = _chunk7P6EIISHjs.LiveblocksProvider; exports.RoomContext = _chunk7P6EIISHjs.RoomContext; exports.RoomProvider = _chunk7P6EIISHjs._RoomProvider; exports.shallow = _client.shallow; exports.useAddReaction = _chunk7P6EIISHjs._useAddReaction; exports.useAttachmentUrl = _chunk7P6EIISHjs.useAttachmentUrlSuspense; exports.useBatch = _chunk7P6EIISHjs.useBatch; exports.useBroadcastEvent = _chunk7P6EIISHjs._useBroadcastEvent; exports.useCanRedo = _chunk7P6EIISHjs.useCanRedo; exports.useCanUndo = _chunk7P6EIISHjs.useCanUndo; exports.useClient = _chunk7P6EIISHjs.useClient; exports.useCreateComment = _chunk7P6EIISHjs.useCreateComment; exports.useCreateThread = _chunk7P6EIISHjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunk7P6EIISHjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunk7P6EIISHjs.useDeleteComment; exports.useDeleteInboxNotification = _chunk7P6EIISHjs.useDeleteInboxNotification; exports.useDeleteThread = _chunk7P6EIISHjs._useDeleteThread; exports.useEditComment = _chunk7P6EIISHjs.useEditComment; exports.useEditThreadMetadata = _chunk7P6EIISHjs._useEditThreadMetadata; exports.useErrorListener = _chunk7P6EIISHjs.useErrorListener; exports.useEventListener = _chunk7P6EIISHjs._useEventListener; exports.useHistory = _chunk7P6EIISHjs.useHistory; exports.useHistoryVersions = _chunk7P6EIISHjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunk7P6EIISHjs._useInboxNotificationThread; exports.useInboxNotifications = _chunk7P6EIISHjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunk7P6EIISHjs._useIsInsideRoom; exports.useLostConnectionListener = _chunk7P6EIISHjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunk7P6EIISHjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunk7P6EIISHjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunk7P6EIISHjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunk7P6EIISHjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunk7P6EIISHjs.useMarkThreadAsUnresolved; exports.useMutation = _chunk7P6EIISHjs._useMutation; exports.useMyPresence = _chunk7P6EIISHjs._useMyPresence; exports.useOther = _chunk7P6EIISHjs._useOtherSuspense; exports.useOthers = _chunk7P6EIISHjs._useOthersSuspense; exports.useOthersConnectionIds = _chunk7P6EIISHjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunk7P6EIISHjs._useOthersListener; exports.useOthersMapped = _chunk7P6EIISHjs._useOthersMappedSuspense; exports.useRedo = _chunk7P6EIISHjs.useRedo; exports.useRemoveReaction = _chunk7P6EIISHjs.useRemoveReaction; exports.useRoom = _chunk7P6EIISHjs._useRoom; exports.useRoomInfo = _chunk7P6EIISHjs.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunk7P6EIISHjs.useRoomNotificationSettings; exports.useSelf = _chunk7P6EIISHjs._useSelfSuspense; exports.useStatus = _chunk7P6EIISHjs.useStatus; exports.useStorage = _chunk7P6EIISHjs._useStorageSuspense; exports.useStorageRoot = _chunk7P6EIISHjs._useStorageRoot; exports.useStorageStatus = _chunk7P6EIISHjs.useStorageStatusSuspense; exports.useThreadSubscription = _chunk7P6EIISHjs.useThreadSubscription; exports.useThreads = _chunk7P6EIISHjs._useThreadsSuspense; exports.useUndo = _chunk7P6EIISHjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunk7P6EIISHjs.useUnreadInboxNotificationsCountSuspense; exports.useUpdateMyPresence = _chunk7P6EIISHjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunk7P6EIISHjs.useUpdateRoomNotificationSettings; exports.useUser = _chunk7P6EIISHjs._useUserSuspense; exports.useUserThreads_experimental = _chunk7P6EIISHjs._useUserThreadsSuspense_experimental;
|
|
130
130
|
//# sourceMappingURL=suspense.js.map
|
package/dist/suspense.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liveblocks/react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0-rc1",
|
|
4
4
|
"description": "A set of React hooks and providers to use Liveblocks declaratively. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"showdeps": "depcruise src --include-only '^src' --exclude='__tests__' --output-type dot | dot -T svg > /tmp/dependency-graph.svg && open /tmp/dependency-graph.svg"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@liveblocks/client": "2.
|
|
53
|
-
"@liveblocks/core": "2.
|
|
52
|
+
"@liveblocks/client": "2.9.0-rc1",
|
|
53
|
+
"@liveblocks/core": "2.9.0-rc1",
|
|
54
54
|
"use-sync-external-store": "^1.2.2"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|