@liveblocks/react 2.7.0 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-KNPU4P3Y.js → chunk-TNEGW2UU.js} +486 -356
- package/dist/chunk-TNEGW2UU.js.map +1 -0
- package/dist/{chunk-OKR7ROQ5.mjs → chunk-XK5NTOJJ.mjs} +540 -410
- package/dist/chunk-XK5NTOJJ.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 +3 -3
- package/dist/index.mjs.map +1 -1
- package/dist/{suspense-pL0llH_6.d.mts → suspense-ZevLSpFZ.d.mts} +63 -23
- package/dist/{suspense-pL0llH_6.d.ts → suspense-ZevLSpFZ.d.ts} +63 -23
- 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 +6 -4
- package/dist/chunk-KNPU4P3Y.js.map +0 -1
- package/dist/chunk-OKR7ROQ5.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, ab as getUmbrellaStoreForClient, ac as
|
|
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, ab as getUmbrellaStoreForClient, ac as selectThreads, j as useAddReaction, 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, a5 as useHistoryVersions, _ as useInboxNotificationThread, a6 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, a8 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, a9 as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, aa as useUser, a7 as useUserThreads_experimental } from './suspense-ZevLSpFZ.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, ab as getUmbrellaStoreForClient, ac as
|
|
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, ab as getUmbrellaStoreForClient, ac as selectThreads, j as useAddReaction, 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, a5 as useHistoryVersions, _ as useInboxNotificationThread, a6 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, a8 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, a9 as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, aa as useUser, a7 as useUserThreads_experimental } from './suspense-ZevLSpFZ.js';
|
|
2
2
|
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@liveblocks/core';
|
package/dist/index.js
CHANGED
|
@@ -66,12 +66,12 @@
|
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
var
|
|
69
|
+
var _chunkTNEGW2UUjs = require('./chunk-TNEGW2UU.js');
|
|
70
70
|
|
|
71
71
|
// src/index.ts
|
|
72
72
|
var _core = require('@liveblocks/core');
|
|
73
73
|
var _client = require('@liveblocks/client');
|
|
74
|
-
_core.detectDupes.call(void 0,
|
|
74
|
+
_core.detectDupes.call(void 0, _chunkTNEGW2UUjs.PKG_NAME, _chunkTNEGW2UUjs.PKG_VERSION, _chunkTNEGW2UUjs.PKG_FORMAT);
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
|
|
@@ -138,5 +138,5 @@ _core.detectDupes.call(void 0, _chunkKNPU4P3Yjs.PKG_NAME, _chunkKNPU4P3Yjs.PKG_V
|
|
|
138
138
|
|
|
139
139
|
|
|
140
140
|
|
|
141
|
-
exports.ClientContext =
|
|
141
|
+
exports.ClientContext = _chunkTNEGW2UUjs.ClientContext; exports.ClientSideSuspense = _chunkTNEGW2UUjs.ClientSideSuspense; exports.CreateThreadError = _chunkTNEGW2UUjs.CreateThreadError; exports.LiveblocksProvider = _chunkTNEGW2UUjs.LiveblocksProvider; exports.RoomContext = _chunkTNEGW2UUjs.RoomContext; exports.RoomProvider = _chunkTNEGW2UUjs._RoomProvider; exports.createLiveblocksContext = _chunkTNEGW2UUjs.createLiveblocksContext; exports.createRoomContext = _chunkTNEGW2UUjs.createRoomContext; exports.getUmbrellaStoreForClient = _chunkTNEGW2UUjs.getUmbrellaStoreForClient; exports.selectThreads = _chunkTNEGW2UUjs.selectThreads; exports.shallow = _client.shallow; exports.useAddReaction = _chunkTNEGW2UUjs._useAddReaction; exports.useBatch = _chunkTNEGW2UUjs.useBatch; exports.useBroadcastEvent = _chunkTNEGW2UUjs._useBroadcastEvent; exports.useCanRedo = _chunkTNEGW2UUjs.useCanRedo; exports.useCanUndo = _chunkTNEGW2UUjs.useCanUndo; exports.useClient = _chunkTNEGW2UUjs.useClient; exports.useCommentsErrorListener = _chunkTNEGW2UUjs.useCommentsErrorListener; exports.useCreateComment = _chunkTNEGW2UUjs.useCreateComment; exports.useCreateThread = _chunkTNEGW2UUjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkTNEGW2UUjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkTNEGW2UUjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkTNEGW2UUjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkTNEGW2UUjs._useDeleteThread; exports.useEditComment = _chunkTNEGW2UUjs.useEditComment; exports.useEditThreadMetadata = _chunkTNEGW2UUjs._useEditThreadMetadata; exports.useErrorListener = _chunkTNEGW2UUjs.useErrorListener; exports.useEventListener = _chunkTNEGW2UUjs._useEventListener; exports.useHistory = _chunkTNEGW2UUjs.useHistory; exports.useHistoryVersionData = _chunkTNEGW2UUjs.useHistoryVersionData; exports.useHistoryVersions = _chunkTNEGW2UUjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkTNEGW2UUjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkTNEGW2UUjs.useInboxNotifications; exports.useIsInsideRoom = _chunkTNEGW2UUjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkTNEGW2UUjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkTNEGW2UUjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkTNEGW2UUjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkTNEGW2UUjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkTNEGW2UUjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkTNEGW2UUjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkTNEGW2UUjs._useMutation; exports.useMyPresence = _chunkTNEGW2UUjs._useMyPresence; exports.useOther = _chunkTNEGW2UUjs._useOther; exports.useOthers = _chunkTNEGW2UUjs._useOthers; exports.useOthersConnectionIds = _chunkTNEGW2UUjs.useOthersConnectionIds; exports.useOthersListener = _chunkTNEGW2UUjs._useOthersListener; exports.useOthersMapped = _chunkTNEGW2UUjs._useOthersMapped; exports.useRedo = _chunkTNEGW2UUjs.useRedo; exports.useRemoveReaction = _chunkTNEGW2UUjs.useRemoveReaction; exports.useRoom = _chunkTNEGW2UUjs._useRoom; exports.useRoomInfo = _chunkTNEGW2UUjs.useRoomInfo; exports.useRoomNotificationSettings = _chunkTNEGW2UUjs.useRoomNotificationSettings; exports.useSelf = _chunkTNEGW2UUjs._useSelf; exports.useStatus = _chunkTNEGW2UUjs.useStatus; exports.useStorage = _chunkTNEGW2UUjs._useStorage; exports.useStorageRoot = _chunkTNEGW2UUjs._useStorageRoot; exports.useStorageStatus = _chunkTNEGW2UUjs.useStorageStatus; exports.useThreadSubscription = _chunkTNEGW2UUjs.useThreadSubscription; exports.useThreads = _chunkTNEGW2UUjs._useThreads; exports.useUndo = _chunkTNEGW2UUjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkTNEGW2UUjs.useUnreadInboxNotificationsCount; exports.useUpdateMyPresence = _chunkTNEGW2UUjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkTNEGW2UUjs.useUpdateRoomNotificationSettings; exports.useUser = _chunkTNEGW2UUjs._useUser; exports.useUserThreads_experimental = _chunkTNEGW2UUjs._useUserThreads_experimental;
|
|
142
142
|
//# 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 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\";\
|
|
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 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, selectThreads } from \"./liveblocks\";\n"]}
|
package/dist/index.mjs
CHANGED
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
createLiveblocksContext,
|
|
35
35
|
createRoomContext,
|
|
36
36
|
getUmbrellaStoreForClient,
|
|
37
|
-
|
|
37
|
+
selectThreads,
|
|
38
38
|
useBatch,
|
|
39
39
|
useCanRedo,
|
|
40
40
|
useCanUndo,
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
useUndo,
|
|
67
67
|
useUnreadInboxNotificationsCount,
|
|
68
68
|
useUpdateRoomNotificationSettings
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-XK5NTOJJ.mjs";
|
|
70
70
|
|
|
71
71
|
// src/index.ts
|
|
72
72
|
import { detectDupes } from "@liveblocks/core";
|
|
@@ -82,7 +82,7 @@ export {
|
|
|
82
82
|
createLiveblocksContext,
|
|
83
83
|
createRoomContext,
|
|
84
84
|
getUmbrellaStoreForClient,
|
|
85
|
-
|
|
85
|
+
selectThreads,
|
|
86
86
|
shallow,
|
|
87
87
|
_useAddReaction as useAddReaction,
|
|
88
88
|
useBatch,
|
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 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\";\
|
|
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 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, selectThreads } from \"./liveblocks\";\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, Json, RoomNotificationSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1,
|
|
1
|
+
import { JsonObject, LsonObject, BaseUserMeta, LiveObject, User, Json, RoomNotificationSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, ThreadData as ThreadData$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, AsyncResultWithDataField, DRI, Resolve, InboxNotificationData, ToImmutable, ThreadData, HistoryVersion, Client, LiveblocksError, RoomEventMessage, CommentData, PartialUnless, ThreadDataWithDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, ThreadDeleteInfo, InboxNotificationDeleteInfo, DistributiveOmit,
|
|
4
|
+
import { BaseMetadata, CommentBody, Patchable, StorageStatus, QueryMetadata, AsyncResultWithDataField, DRI, Resolve, InboxNotificationData, ToImmutable, ThreadData, HistoryVersion, Client, LiveblocksError, RoomEventMessage, CommentData, PartialUnless, ThreadDataWithDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, CommentUserReaction, ThreadDeleteInfo, InboxNotificationDeleteInfo, DistributiveOmit, AsyncResult, OpaqueClient, DU, DM, OpaqueRoom, DP, DS, DE } from '@liveblocks/core';
|
|
5
5
|
|
|
6
6
|
declare type Props = {
|
|
7
7
|
fallback: ReactNode;
|
|
@@ -166,7 +166,6 @@ declare type UseThreadsOptions<M extends BaseMetadata> = {
|
|
|
166
166
|
*/
|
|
167
167
|
scrollOnLoad?: boolean;
|
|
168
168
|
};
|
|
169
|
-
|
|
170
169
|
declare type UserAsyncResult<T> = AsyncResultWithDataField<T, "user">;
|
|
171
170
|
declare type UserAsyncSuccess<T> = Resolve<UserAsyncResult<T> & {
|
|
172
171
|
readonly isLoading: false;
|
|
@@ -1219,7 +1218,12 @@ declare type UpdateNotificationSettingsOptimisticUpdate = {
|
|
|
1219
1218
|
settings: Partial<RoomNotificationSettings$1>;
|
|
1220
1219
|
};
|
|
1221
1220
|
declare type QueryState = AsyncResult<undefined>;
|
|
1222
|
-
|
|
1221
|
+
/**
|
|
1222
|
+
* Externally observable state of the store, which will have:
|
|
1223
|
+
* - Optimistic updates applied
|
|
1224
|
+
* - All deleted threads removed from the threads list
|
|
1225
|
+
*/
|
|
1226
|
+
declare type UmbrellaStoreState<M extends BaseMetadata> = {
|
|
1223
1227
|
/**
|
|
1224
1228
|
* Keep track of loading and error status of all the queries made by the client.
|
|
1225
1229
|
* e.g. 'room-abc-{"color":"red"}' - ok
|
|
@@ -1227,20 +1231,25 @@ declare type UmbrellaStoreState<M extends BaseMetadata> = Readonly<{
|
|
|
1227
1231
|
*/
|
|
1228
1232
|
queries: Record<string, QueryState>;
|
|
1229
1233
|
/**
|
|
1230
|
-
*
|
|
1231
|
-
*
|
|
1234
|
+
* All threads in a sorted array, optimistic updates applied, without deleted
|
|
1235
|
+
* threads.
|
|
1232
1236
|
*/
|
|
1233
|
-
|
|
1237
|
+
threads: ThreadData<M>[];
|
|
1234
1238
|
/**
|
|
1235
|
-
*
|
|
1236
|
-
*
|
|
1239
|
+
* All threads in a map, keyed by thread ID, with all optimistic updates
|
|
1240
|
+
* applied. Deleted threads are still in this mapping, and will have
|
|
1241
|
+
* a deletedAt field if so.
|
|
1237
1242
|
*/
|
|
1238
|
-
|
|
1243
|
+
threadsById: Record<string, ThreadDataWithDeleteInfo<M>>;
|
|
1244
|
+
/**
|
|
1245
|
+
* All inbox notifications in a sorted array, optimistic updates applied.
|
|
1246
|
+
*/
|
|
1247
|
+
inboxNotifications: InboxNotificationData[];
|
|
1239
1248
|
/**
|
|
1240
1249
|
* Inbox notifications by ID.
|
|
1241
1250
|
* e.g. `in_${string}`
|
|
1242
1251
|
*/
|
|
1243
|
-
|
|
1252
|
+
inboxNotificationsById: Record<string, InboxNotificationData>;
|
|
1244
1253
|
/**
|
|
1245
1254
|
* Notification settings by room ID.
|
|
1246
1255
|
* e.g. { 'room-abc': { threads: "all" },
|
|
@@ -1248,18 +1257,36 @@ declare type UmbrellaStoreState<M extends BaseMetadata> = Readonly<{
|
|
|
1248
1257
|
* 'room-xyz': { threads: "none" },
|
|
1249
1258
|
* }
|
|
1250
1259
|
*/
|
|
1251
|
-
|
|
1260
|
+
notificationSettingsByRoomId: Record<string, RoomNotificationSettings$1>;
|
|
1252
1261
|
/**
|
|
1253
|
-
* Versions
|
|
1262
|
+
* Versions by roomId
|
|
1254
1263
|
* e.g. { 'room-abc': {versions: "all versions"}}
|
|
1255
1264
|
*/
|
|
1256
|
-
|
|
1257
|
-
}
|
|
1265
|
+
versionsByRoomId: Record<string, HistoryVersion[]>;
|
|
1266
|
+
};
|
|
1258
1267
|
declare class UmbrellaStore<M extends BaseMetadata> {
|
|
1259
1268
|
private _store;
|
|
1269
|
+
private _prevState;
|
|
1270
|
+
private _stateCached;
|
|
1260
1271
|
constructor();
|
|
1261
|
-
get
|
|
1262
|
-
|
|
1272
|
+
private get;
|
|
1273
|
+
getThreads(): UmbrellaStoreState<M>;
|
|
1274
|
+
getInboxNotifications(): UmbrellaStoreState<M>;
|
|
1275
|
+
getNotificationSettings(): UmbrellaStoreState<M>;
|
|
1276
|
+
getVersions(): UmbrellaStoreState<M>;
|
|
1277
|
+
/**
|
|
1278
|
+
* @private Only used by the E2E test suite.
|
|
1279
|
+
*/
|
|
1280
|
+
_hasOptimisticUpdates(): boolean;
|
|
1281
|
+
private subscribe;
|
|
1282
|
+
/**
|
|
1283
|
+
* @private Only used by the E2E test suite.
|
|
1284
|
+
*/
|
|
1285
|
+
_subscribeOptimisticUpdates(callback: () => void): () => void;
|
|
1286
|
+
subscribeThreads(callback: () => void): () => void;
|
|
1287
|
+
subscribeInboxNotifications(callback: () => void): () => void;
|
|
1288
|
+
subscribeNotificationSettings(callback: () => void): () => void;
|
|
1289
|
+
subscribeVersions(callback: () => void): () => void;
|
|
1263
1290
|
private updateThreadsCache;
|
|
1264
1291
|
private updateInboxNotificationsCache;
|
|
1265
1292
|
private setNotificationSettings;
|
|
@@ -1303,7 +1330,13 @@ declare class UmbrellaStore<M extends BaseMetadata> {
|
|
|
1303
1330
|
* - The thread ID in the cache was updated more recently than the optimistic
|
|
1304
1331
|
* update's timestamp (if given)
|
|
1305
1332
|
*/
|
|
1306
|
-
updateThread
|
|
1333
|
+
private updateThread;
|
|
1334
|
+
patchThread(threadId: string, optimisticUpdateId: string | null, patch: {
|
|
1335
|
+
metadata?: M;
|
|
1336
|
+
resolved?: boolean;
|
|
1337
|
+
}, updatedAt: Date): void;
|
|
1338
|
+
addReaction(threadId: string, optimisticUpdateId: string | null, commentId: string, reaction: CommentUserReaction, createdAt: Date): void;
|
|
1339
|
+
removeReaction(threadId: string, optimisticUpdateId: string | null, commentId: string, emoji: string, userId: string, removedAt: Date): void;
|
|
1307
1340
|
/**
|
|
1308
1341
|
* Soft-deletes an existing thread by setting its `deletedAt` value,
|
|
1309
1342
|
* replacing the corresponding optimistic update.
|
|
@@ -1318,6 +1351,8 @@ declare class UmbrellaStore<M extends BaseMetadata> {
|
|
|
1318
1351
|
* updated correctly, replacing the corresponding optimistic update.
|
|
1319
1352
|
*/
|
|
1320
1353
|
createComment(newComment: CommentData, optimisticUpdateId: string): void;
|
|
1354
|
+
editComment(threadId: string, optimisticUpdateId: string, editedComment: CommentData): void;
|
|
1355
|
+
deleteComment(threadId: string, optimisticUpdateId: string, commentId: string, deletedAt: Date): void;
|
|
1321
1356
|
updateThreadAndNotification(thread: ThreadData<M>, inboxNotification?: InboxNotificationData): void;
|
|
1322
1357
|
updateThreadsAndNotifications(threads: ThreadData<M>[], inboxNotifications: InboxNotificationData[], deletedThreads: ThreadDeleteInfo[], deletedInboxNotifications: InboxNotificationDeleteInfo[], queryKey?: string): void;
|
|
1323
1358
|
/**
|
|
@@ -1341,6 +1376,14 @@ declare class UmbrellaStore<M extends BaseMetadata> {
|
|
|
1341
1376
|
* @private This is a private/advanced API. Do not rely on it.
|
|
1342
1377
|
*/
|
|
1343
1378
|
declare const ClientContext: React__default.Context<OpaqueClient | null>;
|
|
1379
|
+
/**
|
|
1380
|
+
* @private Do not rely on this internal API.
|
|
1381
|
+
*/
|
|
1382
|
+
declare function selectThreads<M extends BaseMetadata$1>(state: UmbrellaStoreState<M>, options: {
|
|
1383
|
+
roomId: string | null;
|
|
1384
|
+
query?: ThreadsQuery<M>;
|
|
1385
|
+
orderBy: "age" | "last-update";
|
|
1386
|
+
}): ThreadData$1<M>[];
|
|
1344
1387
|
/**
|
|
1345
1388
|
* Gets or creates a unique Umbrella store for each unique client instance.
|
|
1346
1389
|
*
|
|
@@ -1504,10 +1547,6 @@ declare const _useUserThreads_experimental: TypedBundle$1["useUserThreads_experi
|
|
|
1504
1547
|
*/
|
|
1505
1548
|
declare const _useUserThreadsSuspense_experimental: TypedBundle$1["suspense"]["useUserThreads_experimental"];
|
|
1506
1549
|
|
|
1507
|
-
/**
|
|
1508
|
-
* @private Do not rely on this internal API.
|
|
1509
|
-
*/
|
|
1510
|
-
declare function selectRoomThreads<M extends BaseMetadata$1>(roomId: string, state: UmbrellaStoreState<M>, options: UseThreadsOptions<M>): ThreadData$1<M>[];
|
|
1511
1550
|
/**
|
|
1512
1551
|
* Raw access to the React context where the RoomProvider stores the current
|
|
1513
1552
|
* room. Exposed for advanced use cases only.
|
|
@@ -1515,6 +1554,7 @@ declare function selectRoomThreads<M extends BaseMetadata$1>(roomId: string, sta
|
|
|
1515
1554
|
* @private This is a private/advanced API. Do not rely on it.
|
|
1516
1555
|
*/
|
|
1517
1556
|
declare const RoomContext: React$1.Context<OpaqueRoom | null>;
|
|
1557
|
+
|
|
1518
1558
|
/**
|
|
1519
1559
|
* Returns the current connection status for the Room, and triggers
|
|
1520
1560
|
* a re-render whenever it changes. Can be used to render a status badge.
|
|
@@ -2180,4 +2220,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
2180
2220
|
*/
|
|
2181
2221
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
2182
2222
|
|
|
2183
|
-
export { useOthersConnectionIds as $, _useIsInsideRoom as A, useLostConnectionListener as B, ClientSideSuspense as C, useMarkThreadAsRead as D, _useMutation as E, _useMyPresence as F, _useOthersListener as G, useRedo as H, useRemoveReaction as I, _useRoom as J, useRoomNotificationSettings as K, LiveblocksProvider as L, type MutationContext as M, useStatus as N, _useStorageRoot as O, useThreadSubscription as P, useUndo as Q, RoomContext as R, _useUpdateMyPresence as S, useUpdateRoomNotificationSettings as T, type UseStorageStatusOptions as U, useHistoryVersionData as V, useCommentsErrorListener as W, CreateThreadError as X, _useOther as Y, _useOthers as Z, _useInboxNotificationThread as _, type UseThreadsOptions as a, _useOthersMapped as a0, _useSelf as a1, _useStorage as a2, useStorageStatus as a3, _useThreads as a4, _useHistoryVersions as a5, useInboxNotifications as a6, _useUserThreads_experimental as a7, useRoomInfo as a8, useUnreadInboxNotificationsCount as a9, _useUser as aa, getUmbrellaStoreForClient as ab,
|
|
2223
|
+
export { useOthersConnectionIds as $, _useIsInsideRoom as A, useLostConnectionListener as B, ClientSideSuspense as C, useMarkThreadAsRead as D, _useMutation as E, _useMyPresence as F, _useOthersListener as G, useRedo as H, useRemoveReaction as I, _useRoom as J, useRoomNotificationSettings as K, LiveblocksProvider as L, type MutationContext as M, useStatus as N, _useStorageRoot as O, useThreadSubscription as P, useUndo as Q, RoomContext as R, _useUpdateMyPresence as S, useUpdateRoomNotificationSettings as T, type UseStorageStatusOptions as U, useHistoryVersionData as V, useCommentsErrorListener as W, CreateThreadError as X, _useOther as Y, _useOthers as Z, _useInboxNotificationThread as _, type UseThreadsOptions as a, _useOthersMapped as a0, _useSelf as a1, _useStorage as a2, useStorageStatus as a3, _useThreads as a4, _useHistoryVersions as a5, useInboxNotifications as a6, _useUserThreads_experimental as a7, useRoomInfo as a8, useUnreadInboxNotificationsCount as a9, _useUser as aa, getUmbrellaStoreForClient as ab, selectThreads as ac, _useOtherSuspense as ad, _useOthersSuspense as ae, useOthersConnectionIdsSuspense as af, _useOthersMappedSuspense as ag, _useSelfSuspense as ah, _useStorageSuspense as ai, useStorageStatusSuspense as aj, _useThreadsSuspense as ak, _useHistoryVersionsSuspense as al, useInboxNotificationsSuspense as am, useRoomInfoSuspense as an, useUnreadInboxNotificationsCountSuspense as ao, _useUserSuspense as ap, _useUserThreadsSuspense_experimental as aq, ClientContext as b, createLiveblocksContext as c, useMarkAllInboxNotificationsAsRead as d, useMarkInboxNotificationAsRead as e, useDeleteAllInboxNotifications as f, useDeleteInboxNotification as g, createRoomContext as h, _RoomProvider as i, _useAddReaction as j, useBatch as k, _useBroadcastEvent as l, useCanRedo as m, useCanUndo as n, useCreateComment as o, _useCreateThread as p, useDeleteComment as q, _useDeleteThread as r, useEditComment as s, _useEditThreadMetadata as t, useClient as u, useMarkThreadAsResolved as v, useMarkThreadAsUnresolved as w, useErrorListener as x, _useEventListener as y, useHistory as z };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { JsonObject, LsonObject, BaseUserMeta, LiveObject, User, Json, RoomNotificationSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1,
|
|
1
|
+
import { JsonObject, LsonObject, BaseUserMeta, LiveObject, User, Json, RoomNotificationSettings, Room, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, BaseMetadata as BaseMetadata$1, ThreadData as ThreadData$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, AsyncResultWithDataField, DRI, Resolve, InboxNotificationData, ToImmutable, ThreadData, HistoryVersion, Client, LiveblocksError, RoomEventMessage, CommentData, PartialUnless, ThreadDataWithDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, ThreadDeleteInfo, InboxNotificationDeleteInfo, DistributiveOmit,
|
|
4
|
+
import { BaseMetadata, CommentBody, Patchable, StorageStatus, QueryMetadata, AsyncResultWithDataField, DRI, Resolve, InboxNotificationData, ToImmutable, ThreadData, HistoryVersion, Client, LiveblocksError, RoomEventMessage, CommentData, PartialUnless, ThreadDataWithDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, CommentUserReaction, ThreadDeleteInfo, InboxNotificationDeleteInfo, DistributiveOmit, AsyncResult, OpaqueClient, DU, DM, OpaqueRoom, DP, DS, DE } from '@liveblocks/core';
|
|
5
5
|
|
|
6
6
|
declare type Props = {
|
|
7
7
|
fallback: ReactNode;
|
|
@@ -166,7 +166,6 @@ declare type UseThreadsOptions<M extends BaseMetadata> = {
|
|
|
166
166
|
*/
|
|
167
167
|
scrollOnLoad?: boolean;
|
|
168
168
|
};
|
|
169
|
-
|
|
170
169
|
declare type UserAsyncResult<T> = AsyncResultWithDataField<T, "user">;
|
|
171
170
|
declare type UserAsyncSuccess<T> = Resolve<UserAsyncResult<T> & {
|
|
172
171
|
readonly isLoading: false;
|
|
@@ -1219,7 +1218,12 @@ declare type UpdateNotificationSettingsOptimisticUpdate = {
|
|
|
1219
1218
|
settings: Partial<RoomNotificationSettings$1>;
|
|
1220
1219
|
};
|
|
1221
1220
|
declare type QueryState = AsyncResult<undefined>;
|
|
1222
|
-
|
|
1221
|
+
/**
|
|
1222
|
+
* Externally observable state of the store, which will have:
|
|
1223
|
+
* - Optimistic updates applied
|
|
1224
|
+
* - All deleted threads removed from the threads list
|
|
1225
|
+
*/
|
|
1226
|
+
declare type UmbrellaStoreState<M extends BaseMetadata> = {
|
|
1223
1227
|
/**
|
|
1224
1228
|
* Keep track of loading and error status of all the queries made by the client.
|
|
1225
1229
|
* e.g. 'room-abc-{"color":"red"}' - ok
|
|
@@ -1227,20 +1231,25 @@ declare type UmbrellaStoreState<M extends BaseMetadata> = Readonly<{
|
|
|
1227
1231
|
*/
|
|
1228
1232
|
queries: Record<string, QueryState>;
|
|
1229
1233
|
/**
|
|
1230
|
-
*
|
|
1231
|
-
*
|
|
1234
|
+
* All threads in a sorted array, optimistic updates applied, without deleted
|
|
1235
|
+
* threads.
|
|
1232
1236
|
*/
|
|
1233
|
-
|
|
1237
|
+
threads: ThreadData<M>[];
|
|
1234
1238
|
/**
|
|
1235
|
-
*
|
|
1236
|
-
*
|
|
1239
|
+
* All threads in a map, keyed by thread ID, with all optimistic updates
|
|
1240
|
+
* applied. Deleted threads are still in this mapping, and will have
|
|
1241
|
+
* a deletedAt field if so.
|
|
1237
1242
|
*/
|
|
1238
|
-
|
|
1243
|
+
threadsById: Record<string, ThreadDataWithDeleteInfo<M>>;
|
|
1244
|
+
/**
|
|
1245
|
+
* All inbox notifications in a sorted array, optimistic updates applied.
|
|
1246
|
+
*/
|
|
1247
|
+
inboxNotifications: InboxNotificationData[];
|
|
1239
1248
|
/**
|
|
1240
1249
|
* Inbox notifications by ID.
|
|
1241
1250
|
* e.g. `in_${string}`
|
|
1242
1251
|
*/
|
|
1243
|
-
|
|
1252
|
+
inboxNotificationsById: Record<string, InboxNotificationData>;
|
|
1244
1253
|
/**
|
|
1245
1254
|
* Notification settings by room ID.
|
|
1246
1255
|
* e.g. { 'room-abc': { threads: "all" },
|
|
@@ -1248,18 +1257,36 @@ declare type UmbrellaStoreState<M extends BaseMetadata> = Readonly<{
|
|
|
1248
1257
|
* 'room-xyz': { threads: "none" },
|
|
1249
1258
|
* }
|
|
1250
1259
|
*/
|
|
1251
|
-
|
|
1260
|
+
notificationSettingsByRoomId: Record<string, RoomNotificationSettings$1>;
|
|
1252
1261
|
/**
|
|
1253
|
-
* Versions
|
|
1262
|
+
* Versions by roomId
|
|
1254
1263
|
* e.g. { 'room-abc': {versions: "all versions"}}
|
|
1255
1264
|
*/
|
|
1256
|
-
|
|
1257
|
-
}
|
|
1265
|
+
versionsByRoomId: Record<string, HistoryVersion[]>;
|
|
1266
|
+
};
|
|
1258
1267
|
declare class UmbrellaStore<M extends BaseMetadata> {
|
|
1259
1268
|
private _store;
|
|
1269
|
+
private _prevState;
|
|
1270
|
+
private _stateCached;
|
|
1260
1271
|
constructor();
|
|
1261
|
-
get
|
|
1262
|
-
|
|
1272
|
+
private get;
|
|
1273
|
+
getThreads(): UmbrellaStoreState<M>;
|
|
1274
|
+
getInboxNotifications(): UmbrellaStoreState<M>;
|
|
1275
|
+
getNotificationSettings(): UmbrellaStoreState<M>;
|
|
1276
|
+
getVersions(): UmbrellaStoreState<M>;
|
|
1277
|
+
/**
|
|
1278
|
+
* @private Only used by the E2E test suite.
|
|
1279
|
+
*/
|
|
1280
|
+
_hasOptimisticUpdates(): boolean;
|
|
1281
|
+
private subscribe;
|
|
1282
|
+
/**
|
|
1283
|
+
* @private Only used by the E2E test suite.
|
|
1284
|
+
*/
|
|
1285
|
+
_subscribeOptimisticUpdates(callback: () => void): () => void;
|
|
1286
|
+
subscribeThreads(callback: () => void): () => void;
|
|
1287
|
+
subscribeInboxNotifications(callback: () => void): () => void;
|
|
1288
|
+
subscribeNotificationSettings(callback: () => void): () => void;
|
|
1289
|
+
subscribeVersions(callback: () => void): () => void;
|
|
1263
1290
|
private updateThreadsCache;
|
|
1264
1291
|
private updateInboxNotificationsCache;
|
|
1265
1292
|
private setNotificationSettings;
|
|
@@ -1303,7 +1330,13 @@ declare class UmbrellaStore<M extends BaseMetadata> {
|
|
|
1303
1330
|
* - The thread ID in the cache was updated more recently than the optimistic
|
|
1304
1331
|
* update's timestamp (if given)
|
|
1305
1332
|
*/
|
|
1306
|
-
updateThread
|
|
1333
|
+
private updateThread;
|
|
1334
|
+
patchThread(threadId: string, optimisticUpdateId: string | null, patch: {
|
|
1335
|
+
metadata?: M;
|
|
1336
|
+
resolved?: boolean;
|
|
1337
|
+
}, updatedAt: Date): void;
|
|
1338
|
+
addReaction(threadId: string, optimisticUpdateId: string | null, commentId: string, reaction: CommentUserReaction, createdAt: Date): void;
|
|
1339
|
+
removeReaction(threadId: string, optimisticUpdateId: string | null, commentId: string, emoji: string, userId: string, removedAt: Date): void;
|
|
1307
1340
|
/**
|
|
1308
1341
|
* Soft-deletes an existing thread by setting its `deletedAt` value,
|
|
1309
1342
|
* replacing the corresponding optimistic update.
|
|
@@ -1318,6 +1351,8 @@ declare class UmbrellaStore<M extends BaseMetadata> {
|
|
|
1318
1351
|
* updated correctly, replacing the corresponding optimistic update.
|
|
1319
1352
|
*/
|
|
1320
1353
|
createComment(newComment: CommentData, optimisticUpdateId: string): void;
|
|
1354
|
+
editComment(threadId: string, optimisticUpdateId: string, editedComment: CommentData): void;
|
|
1355
|
+
deleteComment(threadId: string, optimisticUpdateId: string, commentId: string, deletedAt: Date): void;
|
|
1321
1356
|
updateThreadAndNotification(thread: ThreadData<M>, inboxNotification?: InboxNotificationData): void;
|
|
1322
1357
|
updateThreadsAndNotifications(threads: ThreadData<M>[], inboxNotifications: InboxNotificationData[], deletedThreads: ThreadDeleteInfo[], deletedInboxNotifications: InboxNotificationDeleteInfo[], queryKey?: string): void;
|
|
1323
1358
|
/**
|
|
@@ -1341,6 +1376,14 @@ declare class UmbrellaStore<M extends BaseMetadata> {
|
|
|
1341
1376
|
* @private This is a private/advanced API. Do not rely on it.
|
|
1342
1377
|
*/
|
|
1343
1378
|
declare const ClientContext: React__default.Context<OpaqueClient | null>;
|
|
1379
|
+
/**
|
|
1380
|
+
* @private Do not rely on this internal API.
|
|
1381
|
+
*/
|
|
1382
|
+
declare function selectThreads<M extends BaseMetadata$1>(state: UmbrellaStoreState<M>, options: {
|
|
1383
|
+
roomId: string | null;
|
|
1384
|
+
query?: ThreadsQuery<M>;
|
|
1385
|
+
orderBy: "age" | "last-update";
|
|
1386
|
+
}): ThreadData$1<M>[];
|
|
1344
1387
|
/**
|
|
1345
1388
|
* Gets or creates a unique Umbrella store for each unique client instance.
|
|
1346
1389
|
*
|
|
@@ -1504,10 +1547,6 @@ declare const _useUserThreads_experimental: TypedBundle$1["useUserThreads_experi
|
|
|
1504
1547
|
*/
|
|
1505
1548
|
declare const _useUserThreadsSuspense_experimental: TypedBundle$1["suspense"]["useUserThreads_experimental"];
|
|
1506
1549
|
|
|
1507
|
-
/**
|
|
1508
|
-
* @private Do not rely on this internal API.
|
|
1509
|
-
*/
|
|
1510
|
-
declare function selectRoomThreads<M extends BaseMetadata$1>(roomId: string, state: UmbrellaStoreState<M>, options: UseThreadsOptions<M>): ThreadData$1<M>[];
|
|
1511
1550
|
/**
|
|
1512
1551
|
* Raw access to the React context where the RoomProvider stores the current
|
|
1513
1552
|
* room. Exposed for advanced use cases only.
|
|
@@ -1515,6 +1554,7 @@ declare function selectRoomThreads<M extends BaseMetadata$1>(roomId: string, sta
|
|
|
1515
1554
|
* @private This is a private/advanced API. Do not rely on it.
|
|
1516
1555
|
*/
|
|
1517
1556
|
declare const RoomContext: React$1.Context<OpaqueRoom | null>;
|
|
1557
|
+
|
|
1518
1558
|
/**
|
|
1519
1559
|
* Returns the current connection status for the Room, and triggers
|
|
1520
1560
|
* a re-render whenever it changes. Can be used to render a status badge.
|
|
@@ -2180,4 +2220,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
|
|
|
2180
2220
|
*/
|
|
2181
2221
|
declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
|
|
2182
2222
|
|
|
2183
|
-
export { useOthersConnectionIds as $, _useIsInsideRoom as A, useLostConnectionListener as B, ClientSideSuspense as C, useMarkThreadAsRead as D, _useMutation as E, _useMyPresence as F, _useOthersListener as G, useRedo as H, useRemoveReaction as I, _useRoom as J, useRoomNotificationSettings as K, LiveblocksProvider as L, type MutationContext as M, useStatus as N, _useStorageRoot as O, useThreadSubscription as P, useUndo as Q, RoomContext as R, _useUpdateMyPresence as S, useUpdateRoomNotificationSettings as T, type UseStorageStatusOptions as U, useHistoryVersionData as V, useCommentsErrorListener as W, CreateThreadError as X, _useOther as Y, _useOthers as Z, _useInboxNotificationThread as _, type UseThreadsOptions as a, _useOthersMapped as a0, _useSelf as a1, _useStorage as a2, useStorageStatus as a3, _useThreads as a4, _useHistoryVersions as a5, useInboxNotifications as a6, _useUserThreads_experimental as a7, useRoomInfo as a8, useUnreadInboxNotificationsCount as a9, _useUser as aa, getUmbrellaStoreForClient as ab,
|
|
2223
|
+
export { useOthersConnectionIds as $, _useIsInsideRoom as A, useLostConnectionListener as B, ClientSideSuspense as C, useMarkThreadAsRead as D, _useMutation as E, _useMyPresence as F, _useOthersListener as G, useRedo as H, useRemoveReaction as I, _useRoom as J, useRoomNotificationSettings as K, LiveblocksProvider as L, type MutationContext as M, useStatus as N, _useStorageRoot as O, useThreadSubscription as P, useUndo as Q, RoomContext as R, _useUpdateMyPresence as S, useUpdateRoomNotificationSettings as T, type UseStorageStatusOptions as U, useHistoryVersionData as V, useCommentsErrorListener as W, CreateThreadError as X, _useOther as Y, _useOthers as Z, _useInboxNotificationThread as _, type UseThreadsOptions as a, _useOthersMapped as a0, _useSelf as a1, _useStorage as a2, useStorageStatus as a3, _useThreads as a4, _useHistoryVersions as a5, useInboxNotifications as a6, _useUserThreads_experimental as a7, useRoomInfo as a8, useUnreadInboxNotificationsCount as a9, _useUser as aa, getUmbrellaStoreForClient as ab, selectThreads as ac, _useOtherSuspense as ad, _useOthersSuspense as ae, useOthersConnectionIdsSuspense as af, _useOthersMappedSuspense as ag, _useSelfSuspense as ah, _useStorageSuspense as ai, useStorageStatusSuspense as aj, _useThreadsSuspense as ak, _useHistoryVersionsSuspense as al, useInboxNotificationsSuspense as am, useRoomInfoSuspense as an, useUnreadInboxNotificationsCountSuspense as ao, _useUserSuspense as ap, _useUserThreadsSuspense_experimental as aq, ClientContext as b, createLiveblocksContext as c, useMarkAllInboxNotificationsAsRead as d, useMarkInboxNotificationAsRead as e, useDeleteAllInboxNotifications as f, useDeleteInboxNotification as g, createRoomContext as h, _RoomProvider as i, _useAddReaction as j, useBatch as k, _useBroadcastEvent as l, useCanRedo as m, useCanUndo as n, useCreateComment as o, _useCreateThread as p, useDeleteComment as q, _useDeleteThread as r, useEditComment as s, _useEditThreadMetadata as t, useClient as u, useMarkThreadAsResolved as v, useMarkThreadAsUnresolved as w, useErrorListener as x, _useEventListener as y, useHistory as z };
|
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, 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, al as useHistoryVersions, _ as useInboxNotificationThread, am 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, ad as useOther, ae as useOthers, af as useOthersConnectionIds, G as useOthersListener, ag as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, an as useRoomInfo, K as useRoomNotificationSettings, ah as useSelf, N as useStatus, ai as useStorage, O as useStorageRoot, aj as useStorageStatus, P as useThreadSubscription, ak as useThreads, Q as useUndo, ao as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, ap as useUser, aq 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, 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, al as useHistoryVersions, _ as useInboxNotificationThread, am 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, ad as useOther, ae as useOthers, af as useOthersConnectionIds, G as useOthersListener, ag as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, an as useRoomInfo, K as useRoomNotificationSettings, ah as useSelf, N as useStatus, ai as useStorage, O as useStorageRoot, aj as useStorageStatus, P as useThreadSubscription, ak as useThreads, Q as useUndo, ao as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, ap as useUser, aq as useUserThreads_experimental } from './suspense-ZevLSpFZ.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, 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, al as useHistoryVersions, _ as useInboxNotificationThread, am 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, ad as useOther, ae as useOthers, af as useOthersConnectionIds, G as useOthersListener, ag as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, an as useRoomInfo, K as useRoomNotificationSettings, ah as useSelf, N as useStatus, ai as useStorage, O as useStorageRoot, aj as useStorageStatus, P as useThreadSubscription, ak as useThreads, Q as useUndo, ao as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, ap as useUser, aq 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, 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, al as useHistoryVersions, _ as useInboxNotificationThread, am 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, ad as useOther, ae as useOthers, af as useOthersConnectionIds, G as useOthersListener, ag as useOthersMapped, H as useRedo, I as useRemoveReaction, J as useRoom, an as useRoomInfo, K as useRoomNotificationSettings, ah as useSelf, N as useStatus, ai as useStorage, O as useStorageRoot, aj as useStorageStatus, P as useThreadSubscription, ak as useThreads, Q as useUndo, ao as useUnreadInboxNotificationsCount, S as useUpdateMyPresence, T as useUpdateRoomNotificationSettings, ap as useUser, aq as useUserThreads_experimental } from './suspense-ZevLSpFZ.js';
|
|
2
2
|
export { Json, JsonObject, shallow } from '@liveblocks/client';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@liveblocks/core';
|
package/dist/suspense.js
CHANGED
|
@@ -59,12 +59,12 @@
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _chunkTNEGW2UUjs = require('./chunk-TNEGW2UU.js');
|
|
63
63
|
|
|
64
64
|
// src/suspense.ts
|
|
65
65
|
var _core = require('@liveblocks/core');
|
|
66
66
|
var _client = require('@liveblocks/client');
|
|
67
|
-
_core.detectDupes.call(void 0,
|
|
67
|
+
_core.detectDupes.call(void 0, _chunkTNEGW2UUjs.PKG_NAME, _chunkTNEGW2UUjs.PKG_VERSION, _chunkTNEGW2UUjs.PKG_FORMAT);
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
|
|
@@ -124,5 +124,5 @@ _core.detectDupes.call(void 0, _chunkKNPU4P3Yjs.PKG_NAME, _chunkKNPU4P3Yjs.PKG_V
|
|
|
124
124
|
|
|
125
125
|
|
|
126
126
|
|
|
127
|
-
exports.ClientContext =
|
|
127
|
+
exports.ClientContext = _chunkTNEGW2UUjs.ClientContext; exports.ClientSideSuspense = _chunkTNEGW2UUjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkTNEGW2UUjs.LiveblocksProvider; exports.RoomContext = _chunkTNEGW2UUjs.RoomContext; exports.RoomProvider = _chunkTNEGW2UUjs._RoomProvider; exports.shallow = _client.shallow; exports.useAddReaction = _chunkTNEGW2UUjs._useAddReaction; exports.useBatch = _chunkTNEGW2UUjs.useBatch; exports.useBroadcastEvent = _chunkTNEGW2UUjs._useBroadcastEvent; exports.useCanRedo = _chunkTNEGW2UUjs.useCanRedo; exports.useCanUndo = _chunkTNEGW2UUjs.useCanUndo; exports.useClient = _chunkTNEGW2UUjs.useClient; exports.useCreateComment = _chunkTNEGW2UUjs.useCreateComment; exports.useCreateThread = _chunkTNEGW2UUjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkTNEGW2UUjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkTNEGW2UUjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkTNEGW2UUjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkTNEGW2UUjs._useDeleteThread; exports.useEditComment = _chunkTNEGW2UUjs.useEditComment; exports.useEditThreadMetadata = _chunkTNEGW2UUjs._useEditThreadMetadata; exports.useErrorListener = _chunkTNEGW2UUjs.useErrorListener; exports.useEventListener = _chunkTNEGW2UUjs._useEventListener; exports.useHistory = _chunkTNEGW2UUjs.useHistory; exports.useHistoryVersions = _chunkTNEGW2UUjs._useHistoryVersionsSuspense; exports.useInboxNotificationThread = _chunkTNEGW2UUjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkTNEGW2UUjs.useInboxNotificationsSuspense; exports.useIsInsideRoom = _chunkTNEGW2UUjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkTNEGW2UUjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkTNEGW2UUjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkTNEGW2UUjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkTNEGW2UUjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkTNEGW2UUjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkTNEGW2UUjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkTNEGW2UUjs._useMutation; exports.useMyPresence = _chunkTNEGW2UUjs._useMyPresence; exports.useOther = _chunkTNEGW2UUjs._useOtherSuspense; exports.useOthers = _chunkTNEGW2UUjs._useOthersSuspense; exports.useOthersConnectionIds = _chunkTNEGW2UUjs.useOthersConnectionIdsSuspense; exports.useOthersListener = _chunkTNEGW2UUjs._useOthersListener; exports.useOthersMapped = _chunkTNEGW2UUjs._useOthersMappedSuspense; exports.useRedo = _chunkTNEGW2UUjs.useRedo; exports.useRemoveReaction = _chunkTNEGW2UUjs.useRemoveReaction; exports.useRoom = _chunkTNEGW2UUjs._useRoom; exports.useRoomInfo = _chunkTNEGW2UUjs.useRoomInfoSuspense; exports.useRoomNotificationSettings = _chunkTNEGW2UUjs.useRoomNotificationSettings; exports.useSelf = _chunkTNEGW2UUjs._useSelfSuspense; exports.useStatus = _chunkTNEGW2UUjs.useStatus; exports.useStorage = _chunkTNEGW2UUjs._useStorageSuspense; exports.useStorageRoot = _chunkTNEGW2UUjs._useStorageRoot; exports.useStorageStatus = _chunkTNEGW2UUjs.useStorageStatusSuspense; exports.useThreadSubscription = _chunkTNEGW2UUjs.useThreadSubscription; exports.useThreads = _chunkTNEGW2UUjs._useThreadsSuspense; exports.useUndo = _chunkTNEGW2UUjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkTNEGW2UUjs.useUnreadInboxNotificationsCountSuspense; exports.useUpdateMyPresence = _chunkTNEGW2UUjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkTNEGW2UUjs.useUpdateRoomNotificationSettings; exports.useUser = _chunkTNEGW2UUjs._useUserSuspense; exports.useUserThreads_experimental = _chunkTNEGW2UUjs._useUserThreadsSuspense_experimental;
|
|
128
128
|
//# 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.7.
|
|
3
|
+
"version": "2.7.1",
|
|
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",
|
|
@@ -44,11 +44,13 @@
|
|
|
44
44
|
"lint:package": "publint --strict && attw --pack && bun scripts/check-exports.ts",
|
|
45
45
|
"test": "jest --silent --verbose --color=always",
|
|
46
46
|
"test:types": "ls test-d/* | xargs -n1 tsd --files",
|
|
47
|
-
"test:watch": "jest --silent --verbose --color=always --watch"
|
|
47
|
+
"test:watch": "jest --silent --verbose --color=always --watch",
|
|
48
|
+
"test:deps": "depcruise src --exclude __tests__",
|
|
49
|
+
"showdeps": "depcruise src --include-only '^src' --exclude='__tests__' --output-type dot | dot -T svg > /tmp/dependency-graph.svg && open /tmp/dependency-graph.svg"
|
|
48
50
|
},
|
|
49
51
|
"dependencies": {
|
|
50
|
-
"@liveblocks/client": "2.7.
|
|
51
|
-
"@liveblocks/core": "2.7.
|
|
52
|
+
"@liveblocks/client": "2.7.1",
|
|
53
|
+
"@liveblocks/core": "2.7.1",
|
|
52
54
|
"use-sync-external-store": "^1.2.2"
|
|
53
55
|
},
|
|
54
56
|
"peerDependencies": {
|