@liveblocks/react 2.17.0-channels1 → 2.17.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.
@@ -1,6 +1,6 @@
1
1
  // src/version.ts
2
2
  var PKG_NAME = "@liveblocks/react";
3
- var PKG_VERSION = "2.17.0-channels1";
3
+ var PKG_VERSION = "2.17.0-rc1";
4
4
  var PKG_FORMAT = "esm";
5
5
 
6
6
  // src/ClientSideSuspense.tsx
@@ -20,4 +20,4 @@ export {
20
20
  PKG_FORMAT,
21
21
  ClientSideSuspense
22
22
  };
23
- //# sourceMappingURL=chunk-KFACA6OH.mjs.map
23
+ //# sourceMappingURL=chunk-XWYTEJGO.mjs.map
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- export { x as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, y as createLiveblocksContext, G as createRoomContext, I as useAddReaction, aq as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, au as useChannelsNotificationSettings, z as useClient, ah as useCommentsErrorListener, P as useCreateComment, Q as useCreateThread, A as useDeleteAllInboxNotifications, S as useDeleteComment, B as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, Z as useErrorListener, $ as useEventListener, a0 as useHistory, ag as useHistoryVersionData, ar as useHistoryVersions, _ as useInboxNotificationThread, at as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, ai as useOther, aj as useOthers, ak as useOthersConnectionIds, a6 as useOthersListener, al as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, ax as useRoomInfo, as as useRoomNotificationSettings, am as useSelf, aa as useStatus, an as useStorage, ab as useStorageRoot, ao as useStorageStatus, F as useSyncStatus, ac as useThreadSubscription, ap as useThreads, ad as useUndo, ay as useUnreadInboxNotificationsCount, av as useUpdateChannelsNotificationSettings, ae as useUpdateMyPresence, af as useUpdateRoomNotificationSettings, az as useUser, aw as useUserThreads_experimental } from './room-C0TyErPq.mjs';
2
- export { Json, JsonObject, isChannelNotificationSettingEnabled, shallow } from '@liveblocks/client';
1
+ export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, x as createLiveblocksContext, G as createRoomContext, I as useAddReaction, ao as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, P as useCreateComment, Q as useCreateThread, z as useDeleteAllInboxNotifications, S as useDeleteComment, A as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, B as useErrorListener, Z as useEventListener, $ as useHistory, af as useHistoryVersionData, ap as useHistoryVersions, _ as useInboxNotificationThread, ar as useInboxNotifications, a0 as useIsInsideRoom, a1 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a2 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a3 as useMutation, a4 as useMyPresence, ag as useOther, ah as useOthers, ai as useOthersConnectionIds, a5 as useOthersListener, aj as useOthersMapped, a6 as useRedo, a7 as useRemoveReaction, a8 as useRoom, at as useRoomInfo, aq as useRoomNotificationSettings, ak as useSelf, a9 as useStatus, al as useStorage, aa as useStorageRoot, am as useStorageStatus, F as useSyncStatus, ab as useThreadSubscription, an as useThreads, ac as useUndo, au as useUnreadInboxNotificationsCount, ad as useUpdateMyPresence, ae as useUpdateRoomNotificationSettings, av as useUser, as as useUserThreads_experimental } from './room-Ce3twcjb.mjs';
2
+ export { Json, JsonObject, shallow } from '@liveblocks/client';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { ReactNode } from 'react';
5
5
  import '@liveblocks/core';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { x as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, y as createLiveblocksContext, G as createRoomContext, I as useAddReaction, aq as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, au as useChannelsNotificationSettings, z as useClient, ah as useCommentsErrorListener, P as useCreateComment, Q as useCreateThread, A as useDeleteAllInboxNotifications, S as useDeleteComment, B as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, Z as useErrorListener, $ as useEventListener, a0 as useHistory, ag as useHistoryVersionData, ar as useHistoryVersions, _ as useInboxNotificationThread, at as useInboxNotifications, a1 as useIsInsideRoom, a2 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a3 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a4 as useMutation, a5 as useMyPresence, ai as useOther, aj as useOthers, ak as useOthersConnectionIds, a6 as useOthersListener, al as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, ax as useRoomInfo, as as useRoomNotificationSettings, am as useSelf, aa as useStatus, an as useStorage, ab as useStorageRoot, ao as useStorageStatus, F as useSyncStatus, ac as useThreadSubscription, ap as useThreads, ad as useUndo, ay as useUnreadInboxNotificationsCount, av as useUpdateChannelsNotificationSettings, ae as useUpdateMyPresence, af as useUpdateRoomNotificationSettings, az as useUser, aw as useUserThreads_experimental } from './room-C0TyErPq.js';
2
- export { Json, JsonObject, isChannelNotificationSettingEnabled, shallow } from '@liveblocks/client';
1
+ export { C as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, x as createLiveblocksContext, G as createRoomContext, I as useAddReaction, ao as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, y as useClient, P as useCreateComment, Q as useCreateThread, z as useDeleteAllInboxNotifications, S as useDeleteComment, A as useDeleteInboxNotification, T as useDeleteThread, V as useEditComment, W as useEditThreadMetadata, B as useErrorListener, Z as useEventListener, $ as useHistory, af as useHistoryVersionData, ap as useHistoryVersions, _ as useInboxNotificationThread, ar as useInboxNotifications, a0 as useIsInsideRoom, a1 as useLostConnectionListener, D as useMarkAllInboxNotificationsAsRead, E as useMarkInboxNotificationAsRead, a2 as useMarkThreadAsRead, X as useMarkThreadAsResolved, Y as useMarkThreadAsUnresolved, a3 as useMutation, a4 as useMyPresence, ag as useOther, ah as useOthers, ai as useOthersConnectionIds, a5 as useOthersListener, aj as useOthersMapped, a6 as useRedo, a7 as useRemoveReaction, a8 as useRoom, at as useRoomInfo, aq as useRoomNotificationSettings, ak as useSelf, a9 as useStatus, al as useStorage, aa as useStorageRoot, am as useStorageStatus, F as useSyncStatus, ab as useThreadSubscription, an as useThreads, ac as useUndo, au as useUnreadInboxNotificationsCount, ad as useUpdateMyPresence, ae as useUpdateRoomNotificationSettings, av as useUser, as as useUserThreads_experimental } from './room-Ce3twcjb.js';
2
+ export { Json, JsonObject, shallow } from '@liveblocks/client';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { ReactNode } from 'react';
5
5
  import '@liveblocks/core';
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkRABQO63Hjs = require('./chunk-RABQO63H.js');
6
+ var _chunkDR4OUZTFjs = require('./chunk-DR4OUZTF.js');
7
7
 
8
8
 
9
9
 
@@ -66,22 +66,12 @@ var _chunkRABQO63Hjs = require('./chunk-RABQO63H.js');
66
66
 
67
67
 
68
68
 
69
-
70
-
71
-
72
- var _chunk22QRR3GVjs = require('./chunk-22QRR3GV.js');
69
+ var _chunkJ5ZDLMBEjs = require('./chunk-J5ZDLMBE.js');
73
70
 
74
71
  // src/index.ts
75
72
  var _core = require('@liveblocks/core');
76
-
77
-
78
-
79
73
  var _client = require('@liveblocks/client');
80
- _core.detectDupes.call(void 0, _chunkRABQO63Hjs.PKG_NAME, _chunkRABQO63Hjs.PKG_VERSION, _chunkRABQO63Hjs.PKG_FORMAT);
81
-
82
-
83
-
84
-
74
+ _core.detectDupes.call(void 0, _chunkDR4OUZTFjs.PKG_NAME, _chunkDR4OUZTFjs.PKG_VERSION, _chunkDR4OUZTFjs.PKG_FORMAT);
85
75
 
86
76
 
87
77
 
@@ -146,5 +136,5 @@ _core.detectDupes.call(void 0, _chunkRABQO63Hjs.PKG_NAME, _chunkRABQO63Hjs.PKG_V
146
136
 
147
137
 
148
138
 
149
- exports.ClientContext = _chunk22QRR3GVjs.ClientContext; exports.ClientSideSuspense = _chunkRABQO63Hjs.ClientSideSuspense; exports.LiveblocksProvider = _chunk22QRR3GVjs.LiveblocksProvider; exports.RoomContext = _chunk22QRR3GVjs.RoomContext; exports.RoomProvider = _chunk22QRR3GVjs._RoomProvider; exports.createLiveblocksContext = _chunk22QRR3GVjs.createLiveblocksContext; exports.createRoomContext = _chunk22QRR3GVjs.createRoomContext; exports.isChannelNotificationSettingEnabled = _client.isChannelNotificationSettingEnabled; exports.shallow = _client.shallow; exports.useAddReaction = _chunk22QRR3GVjs._useAddReaction; exports.useAttachmentUrl = _chunk22QRR3GVjs.useAttachmentUrl; exports.useBatch = _chunk22QRR3GVjs.useBatch; exports.useBroadcastEvent = _chunk22QRR3GVjs._useBroadcastEvent; exports.useCanRedo = _chunk22QRR3GVjs.useCanRedo; exports.useCanUndo = _chunk22QRR3GVjs.useCanUndo; exports.useChannelsNotificationSettings = _chunk22QRR3GVjs.useChannelsNotificationSettings; exports.useClient = _chunk22QRR3GVjs.useClient; exports.useCommentsErrorListener = _chunk22QRR3GVjs.useCommentsErrorListener; exports.useCreateComment = _chunk22QRR3GVjs.useCreateComment; exports.useCreateThread = _chunk22QRR3GVjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunk22QRR3GVjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunk22QRR3GVjs.useDeleteComment; exports.useDeleteInboxNotification = _chunk22QRR3GVjs.useDeleteInboxNotification; exports.useDeleteThread = _chunk22QRR3GVjs._useDeleteThread; exports.useEditComment = _chunk22QRR3GVjs.useEditComment; exports.useEditThreadMetadata = _chunk22QRR3GVjs._useEditThreadMetadata; exports.useErrorListener = _chunk22QRR3GVjs.useErrorListener; exports.useEventListener = _chunk22QRR3GVjs._useEventListener; exports.useHistory = _chunk22QRR3GVjs.useHistory; exports.useHistoryVersionData = _chunk22QRR3GVjs.useHistoryVersionData; exports.useHistoryVersions = _chunk22QRR3GVjs._useHistoryVersions; exports.useInboxNotificationThread = _chunk22QRR3GVjs._useInboxNotificationThread; exports.useInboxNotifications = _chunk22QRR3GVjs.useInboxNotifications; exports.useIsInsideRoom = _chunk22QRR3GVjs._useIsInsideRoom; exports.useLostConnectionListener = _chunk22QRR3GVjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunk22QRR3GVjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunk22QRR3GVjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunk22QRR3GVjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunk22QRR3GVjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunk22QRR3GVjs.useMarkThreadAsUnresolved; exports.useMutation = _chunk22QRR3GVjs._useMutation; exports.useMyPresence = _chunk22QRR3GVjs._useMyPresence; exports.useOther = _chunk22QRR3GVjs._useOther; exports.useOthers = _chunk22QRR3GVjs._useOthers; exports.useOthersConnectionIds = _chunk22QRR3GVjs.useOthersConnectionIds; exports.useOthersListener = _chunk22QRR3GVjs._useOthersListener; exports.useOthersMapped = _chunk22QRR3GVjs._useOthersMapped; exports.useRedo = _chunk22QRR3GVjs.useRedo; exports.useRemoveReaction = _chunk22QRR3GVjs.useRemoveReaction; exports.useRoom = _chunk22QRR3GVjs._useRoom; exports.useRoomInfo = _chunk22QRR3GVjs.useRoomInfo; exports.useRoomNotificationSettings = _chunk22QRR3GVjs._useRoomNotificationSettings; exports.useSelf = _chunk22QRR3GVjs._useSelf; exports.useStatus = _chunk22QRR3GVjs.useStatus; exports.useStorage = _chunk22QRR3GVjs._useStorage; exports.useStorageRoot = _chunk22QRR3GVjs._useStorageRoot; exports.useStorageStatus = _chunk22QRR3GVjs.useStorageStatus; exports.useSyncStatus = _chunk22QRR3GVjs.useSyncStatus; exports.useThreadSubscription = _chunk22QRR3GVjs.useThreadSubscription; exports.useThreads = _chunk22QRR3GVjs._useThreads; exports.useUndo = _chunk22QRR3GVjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunk22QRR3GVjs.useUnreadInboxNotificationsCount; exports.useUpdateChannelsNotificationSettings = _chunk22QRR3GVjs.useUpdateChannelsNotificationSettings; exports.useUpdateMyPresence = _chunk22QRR3GVjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunk22QRR3GVjs.useUpdateRoomNotificationSettings; exports.useUser = _chunk22QRR3GVjs._useUser; exports.useUserThreads_experimental = _chunk22QRR3GVjs._useUserThreads_experimental;
139
+ exports.ClientContext = _chunkJ5ZDLMBEjs.ClientContext; exports.ClientSideSuspense = _chunkDR4OUZTFjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkJ5ZDLMBEjs.LiveblocksProvider; exports.RoomContext = _chunkJ5ZDLMBEjs.RoomContext; exports.RoomProvider = _chunkJ5ZDLMBEjs._RoomProvider; exports.createLiveblocksContext = _chunkJ5ZDLMBEjs.createLiveblocksContext; exports.createRoomContext = _chunkJ5ZDLMBEjs.createRoomContext; exports.shallow = _client.shallow; exports.useAddReaction = _chunkJ5ZDLMBEjs._useAddReaction; exports.useAttachmentUrl = _chunkJ5ZDLMBEjs.useAttachmentUrl; exports.useBatch = _chunkJ5ZDLMBEjs.useBatch; exports.useBroadcastEvent = _chunkJ5ZDLMBEjs._useBroadcastEvent; exports.useCanRedo = _chunkJ5ZDLMBEjs.useCanRedo; exports.useCanUndo = _chunkJ5ZDLMBEjs.useCanUndo; exports.useClient = _chunkJ5ZDLMBEjs.useClient; exports.useCreateComment = _chunkJ5ZDLMBEjs.useCreateComment; exports.useCreateThread = _chunkJ5ZDLMBEjs._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkJ5ZDLMBEjs.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkJ5ZDLMBEjs.useDeleteComment; exports.useDeleteInboxNotification = _chunkJ5ZDLMBEjs.useDeleteInboxNotification; exports.useDeleteThread = _chunkJ5ZDLMBEjs._useDeleteThread; exports.useEditComment = _chunkJ5ZDLMBEjs.useEditComment; exports.useEditThreadMetadata = _chunkJ5ZDLMBEjs._useEditThreadMetadata; exports.useErrorListener = _chunkJ5ZDLMBEjs.useErrorListener; exports.useEventListener = _chunkJ5ZDLMBEjs._useEventListener; exports.useHistory = _chunkJ5ZDLMBEjs.useHistory; exports.useHistoryVersionData = _chunkJ5ZDLMBEjs.useHistoryVersionData; exports.useHistoryVersions = _chunkJ5ZDLMBEjs._useHistoryVersions; exports.useInboxNotificationThread = _chunkJ5ZDLMBEjs._useInboxNotificationThread; exports.useInboxNotifications = _chunkJ5ZDLMBEjs.useInboxNotifications; exports.useIsInsideRoom = _chunkJ5ZDLMBEjs._useIsInsideRoom; exports.useLostConnectionListener = _chunkJ5ZDLMBEjs.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkJ5ZDLMBEjs.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkJ5ZDLMBEjs.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkJ5ZDLMBEjs.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkJ5ZDLMBEjs.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkJ5ZDLMBEjs.useMarkThreadAsUnresolved; exports.useMutation = _chunkJ5ZDLMBEjs._useMutation; exports.useMyPresence = _chunkJ5ZDLMBEjs._useMyPresence; exports.useOther = _chunkJ5ZDLMBEjs._useOther; exports.useOthers = _chunkJ5ZDLMBEjs._useOthers; exports.useOthersConnectionIds = _chunkJ5ZDLMBEjs.useOthersConnectionIds; exports.useOthersListener = _chunkJ5ZDLMBEjs._useOthersListener; exports.useOthersMapped = _chunkJ5ZDLMBEjs._useOthersMapped; exports.useRedo = _chunkJ5ZDLMBEjs.useRedo; exports.useRemoveReaction = _chunkJ5ZDLMBEjs.useRemoveReaction; exports.useRoom = _chunkJ5ZDLMBEjs._useRoom; exports.useRoomInfo = _chunkJ5ZDLMBEjs.useRoomInfo; exports.useRoomNotificationSettings = _chunkJ5ZDLMBEjs._useRoomNotificationSettings; exports.useSelf = _chunkJ5ZDLMBEjs._useSelf; exports.useStatus = _chunkJ5ZDLMBEjs.useStatus; exports.useStorage = _chunkJ5ZDLMBEjs._useStorage; exports.useStorageRoot = _chunkJ5ZDLMBEjs._useStorageRoot; exports.useStorageStatus = _chunkJ5ZDLMBEjs.useStorageStatus; exports.useSyncStatus = _chunkJ5ZDLMBEjs.useSyncStatus; exports.useThreadSubscription = _chunkJ5ZDLMBEjs.useThreadSubscription; exports.useThreads = _chunkJ5ZDLMBEjs._useThreads; exports.useUndo = _chunkJ5ZDLMBEjs.useUndo; exports.useUnreadInboxNotificationsCount = _chunkJ5ZDLMBEjs.useUnreadInboxNotificationsCount; exports.useUpdateMyPresence = _chunkJ5ZDLMBEjs._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkJ5ZDLMBEjs.useUpdateRoomNotificationSettings; exports.useUser = _chunkJ5ZDLMBEjs._useUser; exports.useUserThreads_experimental = _chunkJ5ZDLMBEjs._useUserThreads_experimental;
150
140
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.js","../src/index.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACA;ACxEA,wCAA4B;AAc5B;AACE;AACA;AAAA,4CACK;AAdP,+BAAA,yBAAY,EAAU,4BAAA,EAAa,2BAAU,CAAA;AD4E7C;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,swIAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.js","sourcesContent":[null,"/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseStorageStatusOptions,\n UseThreadsOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport {\n shallow,\n isChannelNotificationSettingEnabled,\n} from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n createLiveblocksContext,\n LiveblocksProvider,\n useClient,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useErrorListener,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n useHistoryVersionData,\n} from \"./room\";\n\nexport { useCommentsErrorListener } from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useStorageStatus,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomNotificationSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useChannelsNotificationSettings,\n useUpdateChannelsNotificationSettings,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n"]}
1
+ {"version":3,"sources":["/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.js","../src/index.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACA;ACrEA,wCAA4B;AAc5B,4CAAwB;AAXxB,+BAAA,yBAAY,EAAU,4BAAA,EAAa,2BAAU,CAAA;ADsE7C;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,y5HAAC","file":"/home/runner/work/liveblocks/liveblocks/packages/liveblocks-react/dist/index.js","sourcesContent":[null,"/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseStorageStatusOptions,\n UseThreadsOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n createLiveblocksContext,\n LiveblocksProvider,\n useClient,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useStorageStatus,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomNotificationSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n"]}
package/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  PKG_FORMAT,
4
4
  PKG_NAME,
5
5
  PKG_VERSION
6
- } from "./chunk-KFACA6OH.mjs";
6
+ } from "./chunk-XWYTEJGO.mjs";
7
7
  import {
8
8
  ClientContext,
9
9
  LiveblocksProvider,
@@ -39,9 +39,7 @@ import {
39
39
  useBatch,
40
40
  useCanRedo,
41
41
  useCanUndo,
42
- useChannelsNotificationSettings,
43
42
  useClient,
44
- useCommentsErrorListener,
45
43
  useCreateComment,
46
44
  useDeleteAllInboxNotifications,
47
45
  useDeleteComment,
@@ -67,16 +65,12 @@ import {
67
65
  useThreadSubscription,
68
66
  useUndo,
69
67
  useUnreadInboxNotificationsCount,
70
- useUpdateChannelsNotificationSettings,
71
68
  useUpdateRoomNotificationSettings
72
- } from "./chunk-VX6Y3GQO.mjs";
69
+ } from "./chunk-4KNGHD4I.mjs";
73
70
 
74
71
  // src/index.ts
75
72
  import { detectDupes } from "@liveblocks/core";
76
- import {
77
- shallow,
78
- isChannelNotificationSettingEnabled
79
- } from "@liveblocks/client";
73
+ import { shallow } from "@liveblocks/client";
80
74
  detectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);
81
75
  export {
82
76
  ClientContext,
@@ -86,7 +80,6 @@ export {
86
80
  _RoomProvider as RoomProvider,
87
81
  createLiveblocksContext,
88
82
  createRoomContext,
89
- isChannelNotificationSettingEnabled,
90
83
  shallow,
91
84
  _useAddReaction as useAddReaction,
92
85
  useAttachmentUrl,
@@ -94,9 +87,7 @@ export {
94
87
  _useBroadcastEvent as useBroadcastEvent,
95
88
  useCanRedo,
96
89
  useCanUndo,
97
- useChannelsNotificationSettings,
98
90
  useClient,
99
- useCommentsErrorListener,
100
91
  useCreateComment,
101
92
  _useCreateThread as useCreateThread,
102
93
  useDeleteAllInboxNotifications,
@@ -141,7 +132,6 @@ export {
141
132
  _useThreads as useThreads,
142
133
  useUndo,
143
134
  useUnreadInboxNotificationsCount,
144
- useUpdateChannelsNotificationSettings,
145
135
  _useUpdateMyPresence as useUpdateMyPresence,
146
136
  useUpdateRoomNotificationSettings,
147
137
  _useUser as useUser,
@@ -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 {\n shallow,\n isChannelNotificationSettingEnabled,\n} from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n createLiveblocksContext,\n LiveblocksProvider,\n useClient,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useErrorListener,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n useHistoryVersionData,\n} from \"./room\";\n\nexport { useCommentsErrorListener } from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useStorageStatus,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomNotificationSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useChannelsNotificationSettings,\n useUpdateChannelsNotificationSettings,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAdP,YAAY,UAAU,aAAa,UAAU;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nimport { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport { ClientSideSuspense } from \"./ClientSideSuspense\";\nexport type {\n MutationContext,\n UseStorageStatusOptions,\n UseThreadsOptions,\n} from \"./types\";\n\n// Re-exports from @liveblocks/client, for convenience\nexport type { Json, JsonObject } from \"@liveblocks/client\";\nexport { shallow } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n createLiveblocksContext,\n LiveblocksProvider,\n useClient,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useErrorListener,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n useHistoryVersionData,\n} from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useStorageStatus,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomNotificationSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,eAAe;AAXxB,YAAY,UAAU,aAAa,UAAU;","names":[]}
@@ -2,7 +2,7 @@ import * as react from 'react';
2
2
  import { Context, PropsWithChildren, ReactNode } from 'react';
3
3
  import { JsonObject, LsonObject, BaseUserMeta, Json, BaseMetadata, Room, LiveObject, User, RoomNotificationSettings, Status, BroadcastOptions, OthersEvent, LostConnectionEvent, History, Client as Client$1, ClientOptions, StorageStatus as StorageStatus$1, ThreadData as ThreadData$1, CommentData as CommentData$1 } from '@liveblocks/client';
4
4
  import * as _liveblocks_core from '@liveblocks/core';
5
- import { OpaqueRoom, BaseMetadata as BaseMetadata$1, CommentBody, Patchable, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentAttachment, PartialUnless, InboxNotificationData, ChannelsNotificationSettings, Relax, ToImmutable, PartialChannelsNotificationSettings, AsyncLoading, AsyncError, ThreadData, HistoryVersion, Client, SyncStatus, LiveblocksError, RoomEventMessage, CommentData, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, OpaqueClient, CommentUserReaction, InboxNotificationDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DM, TextEditorType, IYjsProvider, DP, DS, DE } from '@liveblocks/core';
5
+ import { OpaqueRoom, BaseMetadata as BaseMetadata$1, StorageStatus, QueryMetadata, AsyncResult, DRI, AsyncSuccess, Resolve, CommentBody, CommentAttachment, PartialUnless, Patchable, InboxNotificationData, Relax, ToImmutable, AsyncLoading, AsyncError, ThreadData, HistoryVersion, Client, LiveblocksError, SyncStatus, RoomEventMessage, CommentData, MutableSignal, ThreadDataWithDeleteInfo, ThreadDeleteInfo, DerivedSignal, DefaultMap, OpaqueClient, CommentUserReaction, InboxNotificationDeleteInfo, RoomNotificationSettings as RoomNotificationSettings$1, ISignal, Permission, BaseUserMeta as BaseUserMeta$1, DistributiveOmit, DU, DM, TextEditorType, IYjsProvider, DP, DS, DE } from '@liveblocks/core';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
 
8
8
  /**
@@ -15,123 +15,6 @@ declare const RoomContext: react.Context<OpaqueRoom | null>;
15
15
  /** @private */
16
16
  declare function useRoomOrNull<P extends JsonObject, S extends LsonObject, U extends BaseUserMeta, E extends Json, M extends BaseMetadata>(): Room<P, S, U, E, M> | null;
17
17
 
18
- /**
19
- * @private Internal API, do not rely on it.
20
- */
21
- declare class CreateThreadError<M extends BaseMetadata$1> extends Error {
22
- cause: Error;
23
- context: {
24
- roomId: string;
25
- threadId: string;
26
- commentId: string;
27
- body: CommentBody;
28
- metadata: M;
29
- };
30
- constructor(cause: Error, context: {
31
- roomId: string;
32
- threadId: string;
33
- commentId: string;
34
- body: CommentBody;
35
- metadata: M;
36
- });
37
- }
38
- /**
39
- * @private Internal API, do not rely on it.
40
- */
41
- declare class EditThreadMetadataError<M extends BaseMetadata$1> extends Error {
42
- cause: Error;
43
- context: {
44
- roomId: string;
45
- threadId: string;
46
- metadata: Patchable<M>;
47
- };
48
- constructor(cause: Error, context: {
49
- roomId: string;
50
- threadId: string;
51
- metadata: Patchable<M>;
52
- });
53
- }
54
- /**
55
- * @private Internal API, do not rely on it.
56
- */
57
- declare class CreateCommentError extends Error {
58
- cause: Error;
59
- context: {
60
- roomId: string;
61
- threadId: string;
62
- commentId: string;
63
- body: CommentBody;
64
- };
65
- constructor(cause: Error, context: {
66
- roomId: string;
67
- threadId: string;
68
- commentId: string;
69
- body: CommentBody;
70
- });
71
- }
72
- /**
73
- * @private Internal API, do not rely on it.
74
- */
75
- declare class EditCommentError extends Error {
76
- cause: Error;
77
- context: {
78
- roomId: string;
79
- threadId: string;
80
- commentId: string;
81
- body: CommentBody;
82
- };
83
- constructor(cause: Error, context: {
84
- roomId: string;
85
- threadId: string;
86
- commentId: string;
87
- body: CommentBody;
88
- });
89
- }
90
- /**
91
- * @private Internal API, do not rely on it.
92
- */
93
- declare class DeleteCommentError extends Error {
94
- cause: Error;
95
- context: {
96
- roomId: string;
97
- threadId: string;
98
- commentId: string;
99
- };
100
- constructor(cause: Error, context: {
101
- roomId: string;
102
- threadId: string;
103
- commentId: string;
104
- });
105
- }
106
- /**
107
- * @private Internal API, do not rely on it.
108
- */
109
- declare class MarkInboxNotificationAsReadError extends Error {
110
- cause: Error;
111
- context: {
112
- inboxNotificationId: string;
113
- };
114
- constructor(cause: Error, context: {
115
- inboxNotificationId: string;
116
- });
117
- }
118
- /**
119
- * @private Internal API, do not rely on it.
120
- */
121
- declare class UpdateNotificationSettingsError extends Error {
122
- cause: Error;
123
- context: {
124
- roomId: string;
125
- };
126
- constructor(cause: Error, context: {
127
- roomId: string;
128
- });
129
- }
130
- /**
131
- * @private Internal API, do not rely on it.
132
- */
133
- type CommentsError<M extends BaseMetadata$1> = CreateThreadError<M> | EditThreadMetadataError<M> | CreateCommentError | EditCommentError | DeleteCommentError | MarkInboxNotificationAsReadError | UpdateNotificationSettingsError;
134
-
135
18
  type UseSyncStatusOptions = {
136
19
  /**
137
20
  * When setting smooth, the hook will not update immediately as status
@@ -227,7 +110,6 @@ type InboxNotificationsAsyncSuccess = PagedAsyncSuccess<InboxNotificationData[],
227
110
  type InboxNotificationsAsyncResult = PagedAsyncResult<InboxNotificationData[], "inboxNotifications">;
228
111
  type UnreadInboxNotificationsCountAsyncSuccess = AsyncSuccess<number, "count">;
229
112
  type UnreadInboxNotificationsCountAsyncResult = AsyncResult<number, "count">;
230
- type ChannelsNotificationSettingsAsyncResult = AsyncResult<ChannelsNotificationSettings, "settings">;
231
113
  type RoomNotificationSettingsAsyncSuccess = AsyncSuccess<RoomNotificationSettings, "settings">;
232
114
  type RoomNotificationSettingsAsyncResult = AsyncResult<RoomNotificationSettings, "settings">;
233
115
  type HistoryVersionDataAsyncResult = AsyncResult<Uint8Array>;
@@ -309,6 +191,17 @@ type SharedContextBundle<U extends BaseUserMeta> = {
309
191
  * const isInsideRoom = useIsInsideRoom();
310
192
  */
311
193
  useIsInsideRoom(): boolean;
194
+ /**
195
+ * useErrorListener is a React hook that allows you to respond to any
196
+ * Liveblocks error, for example room connection errors, errors
197
+ * creating/editing/deleting threads, etc.
198
+ *
199
+ * @example
200
+ * useErrorListener(err => {
201
+ * console.error(err);
202
+ * })
203
+ */
204
+ useErrorListener(callback: (err: LiveblocksError) => void): void;
312
205
  /**
313
206
  * Returns the current Liveblocks sync status, and triggers a re-render
314
207
  * whenever it changes. Can be used to render a "Saving..." indicator, or for
@@ -347,6 +240,17 @@ type SharedContextBundle<U extends BaseUserMeta> = {
347
240
  * const isInsideRoom = useIsInsideRoom();
348
241
  */
349
242
  useIsInsideRoom(): boolean;
243
+ /**
244
+ * useErrorListener is a React hook that allows you to respond to any
245
+ * Liveblocks error, for example room connection errors, errors
246
+ * creating/editing/deleting threads, etc.
247
+ *
248
+ * @example
249
+ * useErrorListener(err => {
250
+ * console.error(err);
251
+ * })
252
+ */
253
+ useErrorListener(callback: (err: LiveblocksError) => void): void;
350
254
  /**
351
255
  * Returns the current Liveblocks sync status, and triggers a re-render
352
256
  * whenever it changes. Can be used to render a "Saving..." indicator, or for
@@ -439,16 +343,6 @@ type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U exten
439
343
  * })
440
344
  */
441
345
  useLostConnectionListener(callback: (event: LostConnectionEvent) => void): void;
442
- /**
443
- * useErrorListener is a React hook that allows you to respond to potential room
444
- * connection errors.
445
- *
446
- * @example
447
- * useErrorListener(er => {
448
- * console.error(er);
449
- * })
450
- */
451
- useErrorListener(callback: (err: LiveblocksError) => void): void;
452
346
  /**
453
347
  * useEventListener is a React hook that allows you to respond to events broadcast
454
348
  * by other users in the room.
@@ -772,16 +666,6 @@ type RoomContextBundleCommon<P extends JsonObject, S extends LsonObject, U exten
772
666
  */
773
667
  useThreadSubscription(threadId: string): ThreadSubscription;
774
668
  };
775
- /**
776
- * @private
777
- *
778
- * Private methods and variables used in the core internals, but as a user
779
- * of Liveblocks, NEVER USE ANY OF THESE DIRECTLY, because bad things
780
- * will probably happen if you do.
781
- */
782
- type PrivateRoomContextApi = {
783
- useCommentsErrorListener<M extends BaseMetadata$1>(callback: (err: CommentsError<M>) => void): void;
784
- };
785
669
  type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends BaseUserMeta, E extends Json, M extends BaseMetadata$1> = Resolve<RoomContextBundleCommon<P, S, U, E, M> & SharedContextBundle<U>["classic"] & {
786
670
  /**
787
671
  * Returns the current storage status for the Room, and triggers
@@ -974,7 +858,7 @@ type RoomContextBundle<P extends JsonObject, S extends LsonObject, U extends Bas
974
858
  */
975
859
  useAttachmentUrl(attachmentId: string): AttachmentUrlAsyncSuccess;
976
860
  }>;
977
- } & PrivateRoomContextApi>;
861
+ }>;
978
862
  /**
979
863
  * Properties that are the same in LiveblocksContext and LiveblocksContext["suspense"].
980
864
  */
@@ -1032,24 +916,6 @@ type LiveblocksContextBundleCommon<M extends BaseMetadata$1> = {
1032
916
  * const thread = useInboxNotificationThread("in_xxx");
1033
917
  */
1034
918
  useInboxNotificationThread(inboxNotificationId: string): ThreadData<M>;
1035
- /**
1036
- * Returns the channels notification settings for the current user.
1037
- *
1038
- * @example
1039
- * const [{ settings }, updateChannelsNotificationSettings] = useChannelsNotificationSettings()
1040
- */
1041
- useChannelsNotificationSettings(): [
1042
- ChannelsNotificationSettingsAsyncResult,
1043
- (settings: PartialChannelsNotificationSettings) => void
1044
- ];
1045
- /**
1046
- * Returns a function that updates the user's channels notification
1047
- * settings for a project.
1048
- *
1049
- * @example
1050
- * const updateChannelsNotificationSettings = useUpdateChannelsNotificationSettings()
1051
- */
1052
- useUpdateChannelsNotificationSettings(): (settings: PartialChannelsNotificationSettings) => void;
1053
919
  /**
1054
920
  * Returns the current Liveblocks sync status, and triggers a re-render
1055
921
  * whenever it changes. Can be used to render a "Saving..." indicator, or for
@@ -1099,16 +965,6 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata$1> =
1099
965
  * const { count } = useUnreadInboxNotificationsCount();
1100
966
  */
1101
967
  useUnreadInboxNotificationsCount(): UnreadInboxNotificationsCountAsyncSuccess;
1102
- /**
1103
- * Returns the channels notification settings for the current user.
1104
- *
1105
- * @example
1106
- * const [{ settings }, updateChannelsNotificationSettings] = useChannelsNotificationSettings()
1107
- */
1108
- useChannelsNotificationSettings(): [
1109
- ChannelsNotificationSettingsAsyncResult,
1110
- (settings: PartialChannelsNotificationSettings) => void
1111
- ];
1112
968
  /**
1113
969
  * @experimental
1114
970
  *
@@ -1170,7 +1026,7 @@ declare class ThreadDB<M extends BaseMetadata$1> {
1170
1026
  findMany(roomId: string | undefined, query: ThreadsQuery<M>, direction: "asc" | "desc"): ThreadData<M>[];
1171
1027
  }
1172
1028
 
1173
- type OptimisticUpdate<M extends BaseMetadata$1> = CreateThreadOptimisticUpdate<M> | DeleteThreadOptimisticUpdate | EditThreadMetadataOptimisticUpdate<M> | MarkThreadAsResolvedOptimisticUpdate | MarkThreadAsUnresolvedOptimisticUpdate | CreateCommentOptimisticUpdate | EditCommentOptimisticUpdate | DeleteCommentOptimisticUpdate | AddReactionOptimisticUpdate | RemoveReactionOptimisticUpdate | MarkInboxNotificationAsReadOptimisticUpdate | MarkAllInboxNotificationsAsReadOptimisticUpdate | DeleteInboxNotificationOptimisticUpdate | DeleteAllInboxNotificationsOptimisticUpdate | UpdateNotificationSettingsOptimisticUpdate | UpdateChannelsNotificationSettingsOptimisticUpdate;
1029
+ type OptimisticUpdate<M extends BaseMetadata$1> = CreateThreadOptimisticUpdate<M> | DeleteThreadOptimisticUpdate | EditThreadMetadataOptimisticUpdate<M> | MarkThreadAsResolvedOptimisticUpdate | MarkThreadAsUnresolvedOptimisticUpdate | CreateCommentOptimisticUpdate | EditCommentOptimisticUpdate | DeleteCommentOptimisticUpdate | AddReactionOptimisticUpdate | RemoveReactionOptimisticUpdate | MarkInboxNotificationAsReadOptimisticUpdate | MarkAllInboxNotificationsAsReadOptimisticUpdate | DeleteInboxNotificationOptimisticUpdate | DeleteAllInboxNotificationsOptimisticUpdate | UpdateNotificationSettingsOptimisticUpdate;
1174
1030
  type CreateThreadOptimisticUpdate<M extends BaseMetadata$1> = {
1175
1031
  type: "create-thread";
1176
1032
  id: string;
@@ -1265,11 +1121,6 @@ type UpdateNotificationSettingsOptimisticUpdate = {
1265
1121
  roomId: string;
1266
1122
  settings: Partial<RoomNotificationSettings$1>;
1267
1123
  };
1268
- type UpdateChannelsNotificationSettingsOptimisticUpdate = {
1269
- type: "update-channels-notification-settings";
1270
- id: string;
1271
- settings: PartialChannelsNotificationSettings;
1272
- };
1273
1124
  /**
1274
1125
  * Like Promise<T>, except it will have a synchronously readable `status`
1275
1126
  * field, indicating the status of the promise.
@@ -1350,10 +1201,6 @@ declare function createStore_forPermissionHints(): {
1350
1201
  signal: ISignal<PermissionHintsLUT>;
1351
1202
  update: (newHints: Record<string, Permission[]>) => void;
1352
1203
  };
1353
- declare function createStore_forChannelsNotificationSettings(updates: ISignal<readonly OptimisticUpdate<BaseMetadata$1>[]>): {
1354
- signal: DerivedSignal<ChannelsNotificationSettings>;
1355
- update: (settings: ChannelsNotificationSettings) => void;
1356
- };
1357
1204
  declare function createStore_forOptimistic<M extends BaseMetadata$1>(client: Client<BaseUserMeta$1, M>): {
1358
1205
  signal: ISignal<readonly OptimisticUpdate<M>[]>;
1359
1206
  add: (optimisticUpdate: DistributiveOmit<OptimisticUpdate<M>, "id">) => string;
@@ -1366,7 +1213,6 @@ declare class UmbrellaStore<M extends BaseMetadata$1> {
1366
1213
  readonly roomNotificationSettings: ReturnType<typeof createStore_forRoomNotificationSettings>;
1367
1214
  readonly historyVersions: ReturnType<typeof createStore_forHistoryVersions>;
1368
1215
  readonly permissionHints: ReturnType<typeof createStore_forPermissionHints>;
1369
- readonly channelNotificationSettings: ReturnType<typeof createStore_forChannelsNotificationSettings>;
1370
1216
  readonly optimisticUpdates: ReturnType<typeof createStore_forOptimistic<M>>;
1371
1217
  readonly outputs: {
1372
1218
  readonly threadifications: DerivedSignal<CleanThreadifications<M>>;
@@ -1377,7 +1223,6 @@ declare class UmbrellaStore<M extends BaseMetadata$1> {
1377
1223
  readonly loadingNotifications: LoadableResource<InboxNotificationsAsyncResult>;
1378
1224
  readonly settingsByRoomId: DefaultMap<RoomId, LoadableResource<RoomNotificationSettingsAsyncResult>>;
1379
1225
  readonly versionsByRoomId: DefaultMap<RoomId, LoadableResource<HistoryVersionsAsyncResult>>;
1380
- readonly channelNotificationSettings: LoadableResource<ChannelsNotificationSettingsAsyncResult>;
1381
1226
  };
1382
1227
  constructor(client: OpaqueClient);
1383
1228
  /**
@@ -1435,15 +1280,6 @@ declare class UmbrellaStore<M extends BaseMetadata$1> {
1435
1280
  fetchUserThreadsDeltaUpdate(signal: AbortSignal): Promise<void>;
1436
1281
  fetchRoomVersionsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
1437
1282
  refreshRoomNotificationSettings(roomId: string, signal: AbortSignal): Promise<void>;
1438
- /**
1439
- * Refresh Channels Notification Settings from poller
1440
- */
1441
- refreshChannelsNotificationSettings(signal: AbortSignal): Promise<void>;
1442
- /**
1443
- * Updates channels notification settings with a new value, replacing the
1444
- * corresponding optimistic update.
1445
- */
1446
- updateChannelsNotificationSettings_confirmOptimisticUpdate(settings: ChannelsNotificationSettings, optimisticUpdateId: string): void;
1447
1283
  }
1448
1284
 
1449
1285
  /**
@@ -1554,28 +1390,6 @@ declare function useUnreadInboxNotificationsCountSuspense(): {
1554
1390
  readonly count: number;
1555
1391
  readonly error?: undefined;
1556
1392
  };
1557
- /**
1558
- * Returns the channels notification settings for the current user.
1559
- *
1560
- * @example
1561
- * const [{ settings }, updateChannelsNotificationSettings] = useChannelsNotificationSettings()
1562
- */
1563
- declare function useChannelsNotificationSettings(): [ChannelsNotificationSettingsAsyncResult, (settings: PartialChannelsNotificationSettings) => void];
1564
- /**
1565
- * Returns the channels notification settings for the current user.
1566
- *
1567
- * @example
1568
- * const [{ settings }, updateChannelsNotificationSettings] = useChannelsNotificationSettings()
1569
- */
1570
- declare function useChannelsNotificationSettingsSuspense(): [ChannelsNotificationSettingsAsyncResult, (settings: PartialChannelsNotificationSettings) => void];
1571
- /**
1572
- * Returns a function that updates the user's channels notification
1573
- * settings for a project.
1574
- *
1575
- * @example
1576
- * const updateChannelsNotificationSettings = useUpdateChannelsNotificationSettings()
1577
- */
1578
- declare function useUpdateChannelsNotificationSettings(): (settings: PartialChannelsNotificationSettings) => void;
1579
1393
  /**
1580
1394
  * Returns room info from a given room ID.
1581
1395
  *
@@ -1664,6 +1478,17 @@ declare const _useUserThreadsSuspense_experimental: TypedBundle$1["suspense"]["u
1664
1478
  * const syncStatus = useSyncStatus({ smooth: true });
1665
1479
  */
1666
1480
  declare function useSyncStatus(options?: UseSyncStatusOptions): SyncStatus;
1481
+ /**
1482
+ * useErrorListener is a React hook that allows you to respond to any
1483
+ * Liveblocks error, for example room connection errors, errors
1484
+ * creating/editing/deleting threads, etc.
1485
+ *
1486
+ * @example
1487
+ * useErrorListener(err => {
1488
+ * console.error(err);
1489
+ * })
1490
+ */
1491
+ declare function useErrorListener(callback: (err: LiveblocksError) => void): void;
1667
1492
 
1668
1493
  /**
1669
1494
  * Returns the current connection status for the Room, and triggers
@@ -1721,16 +1546,6 @@ declare function useBatch<T>(): (callback: () => T) => T;
1721
1546
  * })
1722
1547
  */
1723
1548
  declare function useLostConnectionListener(callback: (event: LostConnectionEvent) => void): void;
1724
- /**
1725
- * useErrorListener is a React hook that allows you to respond to potential room
1726
- * connection errors.
1727
- *
1728
- * @example
1729
- * useErrorListener(er => {
1730
- * console.error(er);
1731
- * })
1732
- */
1733
- declare function useErrorListener(callback: (err: LiveblocksError) => void): void;
1734
1549
  /**
1735
1550
  * Returns the room.history
1736
1551
  */
@@ -1768,10 +1583,6 @@ declare function useCanRedo(): boolean;
1768
1583
  * // [2, 4, 7]
1769
1584
  */
1770
1585
  declare function useOthersConnectionIds(): readonly number[];
1771
- /**
1772
- * @private Internal API, do not rely on it.
1773
- */
1774
- declare function useCommentsErrorListener<M extends BaseMetadata>(callback: (error: CommentsError<M>) => void): void;
1775
1586
  /**
1776
1587
  * @private
1777
1588
  */
@@ -2415,4 +2226,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
2415
2226
  */
2416
2227
  declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
2417
2228
 
2418
- export { _useEventListener as $, useDeleteAllInboxNotifications as A, useDeleteInboxNotification as B, CreateThreadError as C, useMarkAllInboxNotificationsAsRead as D, useMarkInboxNotificationAsRead as E, useSyncStatus as F, createRoomContext as G, _RoomProvider as H, _useAddReaction as I, useBatch as J, _useBroadcastEvent as K, LiveblocksProvider as L, type MutationContext as M, useCanRedo as N, useCanUndo as O, useCreateComment as P, _useCreateThread as Q, RoomContext as R, useDeleteComment as S, _useDeleteThread as T, type UseStorageStatusOptions as U, useEditComment as V, _useEditThreadMetadata as W, useMarkThreadAsResolved as X, useMarkThreadAsUnresolved as Y, useErrorListener as Z, _useInboxNotificationThread as _, useClientOrNull as a, useHistory as a0, _useIsInsideRoom as a1, useLostConnectionListener as a2, useMarkThreadAsRead as a3, _useMutation as a4, _useMyPresence as a5, _useOthersListener as a6, useRedo as a7, useRemoveReaction as a8, _useRoom as a9, _useOtherSuspense as aA, _useOthersSuspense as aB, useOthersConnectionIdsSuspense as aC, _useOthersMappedSuspense as aD, _useSelfSuspense as aE, _useStorageSuspense as aF, useStorageStatusSuspense as aG, _useThreadsSuspense as aH, useAttachmentUrlSuspense as aI, _useHistoryVersionsSuspense as aJ, _useRoomNotificationSettingsSuspense as aK, useInboxNotificationsSuspense as aL, useChannelsNotificationSettingsSuspense as aM, useRoomInfoSuspense as aN, useUnreadInboxNotificationsCountSuspense as aO, _useUserSuspense as aP, _useUserThreadsSuspense_experimental as aQ, useStatus as aa, _useStorageRoot as ab, useThreadSubscription as ac, useUndo as ad, _useUpdateMyPresence as ae, useUpdateRoomNotificationSettings as af, useHistoryVersionData as ag, useCommentsErrorListener as ah, _useOther as ai, _useOthers as aj, useOthersConnectionIds as ak, _useOthersMapped as al, _useSelf as am, _useStorage as an, useStorageStatus as ao, _useThreads as ap, useAttachmentUrl as aq, _useHistoryVersions as ar, _useRoomNotificationSettings as as, useInboxNotifications as at, useChannelsNotificationSettings as au, useUpdateChannelsNotificationSettings as av, _useUserThreads_experimental as aw, useRoomInfo as ax, useUnreadInboxNotificationsCount as ay, _useUser as az, useAddRoomCommentReaction as b, useCreateRoomComment as c, useCreateRoomThread as d, useCreateTextMention as e, useDeleteRoomComment as f, getUmbrellaStoreForClient as g, useDeleteRoomThread as h, useDeleteTextMention as i, useEditRoomComment as j, useEditRoomThreadMetadata as k, useMarkRoomThreadAsRead as l, useMarkRoomThreadAsResolved as m, useMarkRoomThreadAsUnresolved as n, useMentionSuggestionsCache as o, useRemoveRoomCommentReaction as p, useReportTextEditor as q, useResolveMentionSuggestions as r, useRoomAttachmentUrl as s, useRoomPermissions as t, useRoomOrNull as u, useYjsProvider as v, type UseThreadsOptions as w, ClientContext as x, createLiveblocksContext as y, useClient as z };
2229
+ export { useHistory as $, useDeleteInboxNotification as A, useErrorListener as B, ClientContext as C, useMarkAllInboxNotificationsAsRead as D, useMarkInboxNotificationAsRead as E, useSyncStatus as F, createRoomContext as G, _RoomProvider as H, _useAddReaction as I, useBatch as J, _useBroadcastEvent as K, LiveblocksProvider as L, type MutationContext as M, useCanRedo as N, useCanUndo as O, useCreateComment as P, _useCreateThread as Q, RoomContext as R, useDeleteComment as S, _useDeleteThread as T, type UseStorageStatusOptions as U, useEditComment as V, _useEditThreadMetadata as W, useMarkThreadAsResolved as X, useMarkThreadAsUnresolved as Y, _useEventListener as Z, _useInboxNotificationThread as _, useClientOrNull as a, _useIsInsideRoom as a0, useLostConnectionListener as a1, useMarkThreadAsRead as a2, _useMutation as a3, _useMyPresence as a4, _useOthersListener as a5, useRedo as a6, useRemoveReaction as a7, _useRoom as a8, useStatus as a9, _useSelfSuspense as aA, _useStorageSuspense as aB, useStorageStatusSuspense as aC, _useThreadsSuspense as aD, useAttachmentUrlSuspense as aE, _useHistoryVersionsSuspense as aF, _useRoomNotificationSettingsSuspense as aG, useInboxNotificationsSuspense as aH, useRoomInfoSuspense as aI, useUnreadInboxNotificationsCountSuspense as aJ, _useUserSuspense as aK, _useUserThreadsSuspense_experimental as aL, _useStorageRoot as aa, useThreadSubscription as ab, useUndo as ac, _useUpdateMyPresence as ad, useUpdateRoomNotificationSettings as ae, useHistoryVersionData as af, _useOther as ag, _useOthers as ah, useOthersConnectionIds as ai, _useOthersMapped as aj, _useSelf as ak, _useStorage as al, useStorageStatus as am, _useThreads as an, useAttachmentUrl as ao, _useHistoryVersions as ap, _useRoomNotificationSettings as aq, useInboxNotifications as ar, _useUserThreads_experimental as as, useRoomInfo as at, useUnreadInboxNotificationsCount as au, _useUser as av, _useOtherSuspense as aw, _useOthersSuspense as ax, useOthersConnectionIdsSuspense as ay, _useOthersMappedSuspense as az, useAddRoomCommentReaction as b, useCreateRoomComment as c, useCreateRoomThread as d, useCreateTextMention as e, useDeleteRoomComment as f, getUmbrellaStoreForClient as g, useDeleteRoomThread as h, useDeleteTextMention as i, useEditRoomComment as j, useEditRoomThreadMetadata as k, useMarkRoomThreadAsRead as l, useMarkRoomThreadAsResolved as m, useMarkRoomThreadAsUnresolved as n, useMentionSuggestionsCache as o, useRemoveRoomCommentReaction as p, useReportTextEditor as q, useResolveMentionSuggestions as r, useRoomAttachmentUrl as s, useRoomPermissions as t, useRoomOrNull as u, useYjsProvider as v, type UseThreadsOptions as w, createLiveblocksContext as x, useClient as y, useDeleteAllInboxNotifications as z };