@liveblocks/react 2.16.0-toolbars4 → 2.17.0-channels1

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/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, 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, av 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, aw as useUnreadInboxNotificationsCount, ae as useUpdateMyPresence, af as useUpdateRoomNotificationSettings, ax as useUser, au as useUserThreads_experimental } from './room-ne1TCZyH.mjs';
2
- export { Json, JsonObject, shallow } from '@liveblocks/client';
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';
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, 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, av 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, aw as useUnreadInboxNotificationsCount, ae as useUpdateMyPresence, af as useUpdateRoomNotificationSettings, ax as useUser, au as useUserThreads_experimental } from './room-ne1TCZyH.js';
2
- export { Json, JsonObject, shallow } from '@liveblocks/client';
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';
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 _chunkGUS4QAJAjs = require('./chunk-GUS4QAJA.js');
6
+ var _chunkRABQO63Hjs = require('./chunk-RABQO63H.js');
7
7
 
8
8
 
9
9
 
@@ -67,12 +67,20 @@ var _chunkGUS4QAJAjs = require('./chunk-GUS4QAJA.js');
67
67
 
68
68
 
69
69
 
70
- var _chunkVJYVOAD5js = require('./chunk-VJYVOAD5.js');
70
+
71
+
72
+ var _chunk22QRR3GVjs = require('./chunk-22QRR3GV.js');
71
73
 
72
74
  // src/index.ts
73
75
  var _core = require('@liveblocks/core');
76
+
77
+
78
+
74
79
  var _client = require('@liveblocks/client');
75
- _core.detectDupes.call(void 0, _chunkGUS4QAJAjs.PKG_NAME, _chunkGUS4QAJAjs.PKG_VERSION, _chunkGUS4QAJAjs.PKG_FORMAT);
80
+ _core.detectDupes.call(void 0, _chunkRABQO63Hjs.PKG_NAME, _chunkRABQO63Hjs.PKG_VERSION, _chunkRABQO63Hjs.PKG_FORMAT);
81
+
82
+
83
+
76
84
 
77
85
 
78
86
 
@@ -138,5 +146,5 @@ _core.detectDupes.call(void 0, _chunkGUS4QAJAjs.PKG_NAME, _chunkGUS4QAJAjs.PKG_V
138
146
 
139
147
 
140
148
 
141
- exports.ClientContext = _chunkVJYVOAD5js.ClientContext; exports.ClientSideSuspense = _chunkGUS4QAJAjs.ClientSideSuspense; exports.LiveblocksProvider = _chunkVJYVOAD5js.LiveblocksProvider; exports.RoomContext = _chunkVJYVOAD5js.RoomContext; exports.RoomProvider = _chunkVJYVOAD5js._RoomProvider; exports.createLiveblocksContext = _chunkVJYVOAD5js.createLiveblocksContext; exports.createRoomContext = _chunkVJYVOAD5js.createRoomContext; exports.shallow = _client.shallow; exports.useAddReaction = _chunkVJYVOAD5js._useAddReaction; exports.useAttachmentUrl = _chunkVJYVOAD5js.useAttachmentUrl; exports.useBatch = _chunkVJYVOAD5js.useBatch; exports.useBroadcastEvent = _chunkVJYVOAD5js._useBroadcastEvent; exports.useCanRedo = _chunkVJYVOAD5js.useCanRedo; exports.useCanUndo = _chunkVJYVOAD5js.useCanUndo; exports.useClient = _chunkVJYVOAD5js.useClient; exports.useCommentsErrorListener = _chunkVJYVOAD5js.useCommentsErrorListener; exports.useCreateComment = _chunkVJYVOAD5js.useCreateComment; exports.useCreateThread = _chunkVJYVOAD5js._useCreateThread; exports.useDeleteAllInboxNotifications = _chunkVJYVOAD5js.useDeleteAllInboxNotifications; exports.useDeleteComment = _chunkVJYVOAD5js.useDeleteComment; exports.useDeleteInboxNotification = _chunkVJYVOAD5js.useDeleteInboxNotification; exports.useDeleteThread = _chunkVJYVOAD5js._useDeleteThread; exports.useEditComment = _chunkVJYVOAD5js.useEditComment; exports.useEditThreadMetadata = _chunkVJYVOAD5js._useEditThreadMetadata; exports.useErrorListener = _chunkVJYVOAD5js.useErrorListener; exports.useEventListener = _chunkVJYVOAD5js._useEventListener; exports.useHistory = _chunkVJYVOAD5js.useHistory; exports.useHistoryVersionData = _chunkVJYVOAD5js.useHistoryVersionData; exports.useHistoryVersions = _chunkVJYVOAD5js._useHistoryVersions; exports.useInboxNotificationThread = _chunkVJYVOAD5js._useInboxNotificationThread; exports.useInboxNotifications = _chunkVJYVOAD5js.useInboxNotifications; exports.useIsInsideRoom = _chunkVJYVOAD5js._useIsInsideRoom; exports.useLostConnectionListener = _chunkVJYVOAD5js.useLostConnectionListener; exports.useMarkAllInboxNotificationsAsRead = _chunkVJYVOAD5js.useMarkAllInboxNotificationsAsRead; exports.useMarkInboxNotificationAsRead = _chunkVJYVOAD5js.useMarkInboxNotificationAsRead; exports.useMarkThreadAsRead = _chunkVJYVOAD5js.useMarkThreadAsRead; exports.useMarkThreadAsResolved = _chunkVJYVOAD5js.useMarkThreadAsResolved; exports.useMarkThreadAsUnresolved = _chunkVJYVOAD5js.useMarkThreadAsUnresolved; exports.useMutation = _chunkVJYVOAD5js._useMutation; exports.useMyPresence = _chunkVJYVOAD5js._useMyPresence; exports.useOther = _chunkVJYVOAD5js._useOther; exports.useOthers = _chunkVJYVOAD5js._useOthers; exports.useOthersConnectionIds = _chunkVJYVOAD5js.useOthersConnectionIds; exports.useOthersListener = _chunkVJYVOAD5js._useOthersListener; exports.useOthersMapped = _chunkVJYVOAD5js._useOthersMapped; exports.useRedo = _chunkVJYVOAD5js.useRedo; exports.useRemoveReaction = _chunkVJYVOAD5js.useRemoveReaction; exports.useRoom = _chunkVJYVOAD5js._useRoom; exports.useRoomInfo = _chunkVJYVOAD5js.useRoomInfo; exports.useRoomNotificationSettings = _chunkVJYVOAD5js._useRoomNotificationSettings; exports.useSelf = _chunkVJYVOAD5js._useSelf; exports.useStatus = _chunkVJYVOAD5js.useStatus; exports.useStorage = _chunkVJYVOAD5js._useStorage; exports.useStorageRoot = _chunkVJYVOAD5js._useStorageRoot; exports.useStorageStatus = _chunkVJYVOAD5js.useStorageStatus; exports.useSyncStatus = _chunkVJYVOAD5js.useSyncStatus; exports.useThreadSubscription = _chunkVJYVOAD5js.useThreadSubscription; exports.useThreads = _chunkVJYVOAD5js._useThreads; exports.useUndo = _chunkVJYVOAD5js.useUndo; exports.useUnreadInboxNotificationsCount = _chunkVJYVOAD5js.useUnreadInboxNotificationsCount; exports.useUpdateMyPresence = _chunkVJYVOAD5js._useUpdateMyPresence; exports.useUpdateRoomNotificationSettings = _chunkVJYVOAD5js.useUpdateRoomNotificationSettings; exports.useUser = _chunkVJYVOAD5js._useUser; exports.useUserThreads_experimental = _chunkVJYVOAD5js._useUserThreads_experimental;
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;
142
150
  //# 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;AACF,sDAA4B;AAC5B;AACA;ACtEA,wCAA4B;AAc5B,4CAAwB;AAXxB,+BAAA,yBAAY,EAAU,4BAAA,EAAa,2BAAU,CAAA;ADuE7C;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,u+HAAC","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 useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useErrorListener,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n useHistoryVersionData,\n} from \"./room\";\n\nexport { useCommentsErrorListener } from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useStorageStatus,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomNotificationSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n"]}
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"]}
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-V52BQ2MG.mjs";
6
+ } from "./chunk-KFACA6OH.mjs";
7
7
  import {
8
8
  ClientContext,
9
9
  LiveblocksProvider,
@@ -39,6 +39,7 @@ import {
39
39
  useBatch,
40
40
  useCanRedo,
41
41
  useCanUndo,
42
+ useChannelsNotificationSettings,
42
43
  useClient,
43
44
  useCommentsErrorListener,
44
45
  useCreateComment,
@@ -66,12 +67,16 @@ import {
66
67
  useThreadSubscription,
67
68
  useUndo,
68
69
  useUnreadInboxNotificationsCount,
70
+ useUpdateChannelsNotificationSettings,
69
71
  useUpdateRoomNotificationSettings
70
- } from "./chunk-FQKGWA7O.mjs";
72
+ } from "./chunk-VX6Y3GQO.mjs";
71
73
 
72
74
  // src/index.ts
73
75
  import { detectDupes } from "@liveblocks/core";
74
- import { shallow } from "@liveblocks/client";
76
+ import {
77
+ shallow,
78
+ isChannelNotificationSettingEnabled
79
+ } from "@liveblocks/client";
75
80
  detectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);
76
81
  export {
77
82
  ClientContext,
@@ -81,6 +86,7 @@ export {
81
86
  _RoomProvider as RoomProvider,
82
87
  createLiveblocksContext,
83
88
  createRoomContext,
89
+ isChannelNotificationSettingEnabled,
84
90
  shallow,
85
91
  _useAddReaction as useAddReaction,
86
92
  useAttachmentUrl,
@@ -88,6 +94,7 @@ export {
88
94
  _useBroadcastEvent as useBroadcastEvent,
89
95
  useCanRedo,
90
96
  useCanUndo,
97
+ useChannelsNotificationSettings,
91
98
  useClient,
92
99
  useCommentsErrorListener,
93
100
  useCreateComment,
@@ -134,6 +141,7 @@ export {
134
141
  _useThreads as useThreads,
135
142
  useUndo,
136
143
  useUnreadInboxNotificationsCount,
144
+ useUpdateChannelsNotificationSettings,
137
145
  _useUpdateMyPresence as useUpdateMyPresence,
138
146
  useUpdateRoomNotificationSettings,
139
147
  _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 { shallow } from \"@liveblocks/client\";\n\n// Export all the top-level hooks\nexport {\n ClientContext,\n createLiveblocksContext,\n LiveblocksProvider,\n useClient,\n useDeleteAllInboxNotifications,\n useDeleteInboxNotification,\n useInboxNotificationThread,\n useMarkAllInboxNotificationsAsRead,\n useMarkInboxNotificationAsRead,\n useSyncStatus,\n} from \"./liveblocks\";\nexport {\n createRoomContext,\n RoomContext,\n RoomProvider,\n useAddReaction,\n useBatch,\n useBroadcastEvent,\n useCanRedo,\n useCanUndo,\n useCreateComment,\n useCreateThread,\n useDeleteComment,\n useDeleteThread,\n useEditComment,\n useEditThreadMetadata,\n useMarkThreadAsResolved,\n useMarkThreadAsUnresolved,\n useErrorListener,\n useEventListener,\n useHistory,\n useIsInsideRoom,\n useLostConnectionListener,\n useMarkThreadAsRead,\n useMutation,\n useMyPresence,\n useOthersListener,\n useRedo,\n useRemoveReaction,\n useRoom,\n useStatus,\n useStorageRoot,\n useThreadSubscription,\n useUndo,\n useUpdateMyPresence,\n useUpdateRoomNotificationSettings,\n useHistoryVersionData,\n} from \"./room\";\n\nexport { useCommentsErrorListener } from \"./room\";\n\n// Export the classic (non-Suspense) versions of our hooks\n// (This part differs from src/suspense.ts)\nexport {\n useOther,\n useOthers,\n useOthersConnectionIds,\n useOthersMapped,\n useSelf,\n useStorage,\n useStorageStatus,\n useThreads,\n useAttachmentUrl,\n useHistoryVersions,\n useRoomNotificationSettings,\n} from \"./room\";\nexport {\n useInboxNotifications,\n useUserThreads_experimental as useUserThreads_experimental,\n useRoomInfo,\n useUnreadInboxNotificationsCount,\n useUser,\n} from \"./liveblocks\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,mBAAmB;AAc5B,SAAS,eAAe;AAXxB,YAAY,UAAU,aAAa,UAAU;","names":[]}
1
+ {"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":[]}
@@ -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, ToImmutable, 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, 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';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
 
8
8
  /**
@@ -213,12 +213,6 @@ type CommentReactionOptions = {
213
213
  commentId: string;
214
214
  emoji: string;
215
215
  };
216
- type NoPaginationFields = {
217
- hasFetchedAll?: never;
218
- isFetchingMore?: never;
219
- fetchMore?: never;
220
- fetchMoreError?: never;
221
- };
222
216
  type PaginationFields = {
223
217
  hasFetchedAll: boolean;
224
218
  isFetchingMore: boolean;
@@ -226,13 +220,14 @@ type PaginationFields = {
226
220
  fetchMoreError?: Error;
227
221
  };
228
222
  type PagedAsyncSuccess<T, F extends string> = Resolve<AsyncSuccess<T, F> & PaginationFields>;
229
- type PagedAsyncResult<T, F extends string> = Resolve<AsyncLoading<F> & NoPaginationFields> | Resolve<AsyncError<F> & NoPaginationFields> | PagedAsyncSuccess<T, F>;
223
+ type PagedAsyncResult<T, F extends string> = Relax<AsyncLoading<F> | AsyncError<F> | PagedAsyncSuccess<T, F>>;
230
224
  type ThreadsAsyncSuccess<M extends BaseMetadata$1> = PagedAsyncSuccess<ThreadData<M>[], "threads">;
231
225
  type ThreadsAsyncResult<M extends BaseMetadata$1> = PagedAsyncResult<ThreadData<M>[], "threads">;
232
226
  type InboxNotificationsAsyncSuccess = PagedAsyncSuccess<InboxNotificationData[], "inboxNotifications">;
233
227
  type InboxNotificationsAsyncResult = PagedAsyncResult<InboxNotificationData[], "inboxNotifications">;
234
228
  type UnreadInboxNotificationsCountAsyncSuccess = AsyncSuccess<number, "count">;
235
229
  type UnreadInboxNotificationsCountAsyncResult = AsyncResult<number, "count">;
230
+ type ChannelsNotificationSettingsAsyncResult = AsyncResult<ChannelsNotificationSettings, "settings">;
236
231
  type RoomNotificationSettingsAsyncSuccess = AsyncSuccess<RoomNotificationSettings, "settings">;
237
232
  type RoomNotificationSettingsAsyncResult = AsyncResult<RoomNotificationSettings, "settings">;
238
233
  type HistoryVersionDataAsyncResult = AsyncResult<Uint8Array>;
@@ -278,16 +273,15 @@ type MutationContext<P extends JsonObject, S extends LsonObject, U extends BaseU
278
273
  addToHistory: boolean;
279
274
  }) => void;
280
275
  };
281
- type ThreadSubscription = {
276
+ type ThreadSubscription = Relax<{
282
277
  status: "not-subscribed";
283
- unreadSince?: never;
284
278
  } | {
285
279
  status: "subscribed";
286
280
  unreadSince: null;
287
281
  } | {
288
282
  status: "subscribed";
289
283
  unreadSince: Date;
290
- };
284
+ }>;
291
285
  type SharedContextBundle<U extends BaseUserMeta> = {
292
286
  classic: {
293
287
  /**
@@ -1038,6 +1032,24 @@ type LiveblocksContextBundleCommon<M extends BaseMetadata$1> = {
1038
1032
  * const thread = useInboxNotificationThread("in_xxx");
1039
1033
  */
1040
1034
  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;
1041
1053
  /**
1042
1054
  * Returns the current Liveblocks sync status, and triggers a re-render
1043
1055
  * whenever it changes. Can be used to render a "Saving..." indicator, or for
@@ -1087,6 +1099,16 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata$1> =
1087
1099
  * const { count } = useUnreadInboxNotificationsCount();
1088
1100
  */
1089
1101
  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
+ ];
1090
1112
  /**
1091
1113
  * @experimental
1092
1114
  *
@@ -1148,7 +1170,7 @@ declare class ThreadDB<M extends BaseMetadata$1> {
1148
1170
  findMany(roomId: string | undefined, query: ThreadsQuery<M>, direction: "asc" | "desc"): ThreadData<M>[];
1149
1171
  }
1150
1172
 
1151
- type OptimisticUpdate<M extends BaseMetadata$1> = CreateThreadOptimisticUpdate<M> | DeleteThreadOptimisticUpdate | EditThreadMetadataOptimisticUpdate<M> | MarkThreadAsResolvedOptimisticUpdate | MarkThreadAsUnresolvedOptimisticUpdate | CreateCommentOptimisticUpdate | EditCommentOptimisticUpdate | DeleteCommentOptimisticUpdate | AddReactionOptimisticUpdate | RemoveReactionOptimisticUpdate | MarkInboxNotificationAsReadOptimisticUpdate | MarkAllInboxNotificationsAsReadOptimisticUpdate | DeleteInboxNotificationOptimisticUpdate | DeleteAllInboxNotificationsOptimisticUpdate | UpdateNotificationSettingsOptimisticUpdate;
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;
1152
1174
  type CreateThreadOptimisticUpdate<M extends BaseMetadata$1> = {
1153
1175
  type: "create-thread";
1154
1176
  id: string;
@@ -1243,6 +1265,11 @@ type UpdateNotificationSettingsOptimisticUpdate = {
1243
1265
  roomId: string;
1244
1266
  settings: Partial<RoomNotificationSettings$1>;
1245
1267
  };
1268
+ type UpdateChannelsNotificationSettingsOptimisticUpdate = {
1269
+ type: "update-channels-notification-settings";
1270
+ id: string;
1271
+ settings: PartialChannelsNotificationSettings;
1272
+ };
1246
1273
  /**
1247
1274
  * Like Promise<T>, except it will have a synchronously readable `status`
1248
1275
  * field, indicating the status of the promise.
@@ -1323,6 +1350,10 @@ declare function createStore_forPermissionHints(): {
1323
1350
  signal: ISignal<PermissionHintsLUT>;
1324
1351
  update: (newHints: Record<string, Permission[]>) => void;
1325
1352
  };
1353
+ declare function createStore_forChannelsNotificationSettings(updates: ISignal<readonly OptimisticUpdate<BaseMetadata$1>[]>): {
1354
+ signal: DerivedSignal<ChannelsNotificationSettings>;
1355
+ update: (settings: ChannelsNotificationSettings) => void;
1356
+ };
1326
1357
  declare function createStore_forOptimistic<M extends BaseMetadata$1>(client: Client<BaseUserMeta$1, M>): {
1327
1358
  signal: ISignal<readonly OptimisticUpdate<M>[]>;
1328
1359
  add: (optimisticUpdate: DistributiveOmit<OptimisticUpdate<M>, "id">) => string;
@@ -1335,6 +1366,7 @@ declare class UmbrellaStore<M extends BaseMetadata$1> {
1335
1366
  readonly roomNotificationSettings: ReturnType<typeof createStore_forRoomNotificationSettings>;
1336
1367
  readonly historyVersions: ReturnType<typeof createStore_forHistoryVersions>;
1337
1368
  readonly permissionHints: ReturnType<typeof createStore_forPermissionHints>;
1369
+ readonly channelNotificationSettings: ReturnType<typeof createStore_forChannelsNotificationSettings>;
1338
1370
  readonly optimisticUpdates: ReturnType<typeof createStore_forOptimistic<M>>;
1339
1371
  readonly outputs: {
1340
1372
  readonly threadifications: DerivedSignal<CleanThreadifications<M>>;
@@ -1345,6 +1377,7 @@ declare class UmbrellaStore<M extends BaseMetadata$1> {
1345
1377
  readonly loadingNotifications: LoadableResource<InboxNotificationsAsyncResult>;
1346
1378
  readonly settingsByRoomId: DefaultMap<RoomId, LoadableResource<RoomNotificationSettingsAsyncResult>>;
1347
1379
  readonly versionsByRoomId: DefaultMap<RoomId, LoadableResource<HistoryVersionsAsyncResult>>;
1380
+ readonly channelNotificationSettings: LoadableResource<ChannelsNotificationSettingsAsyncResult>;
1348
1381
  };
1349
1382
  constructor(client: OpaqueClient);
1350
1383
  /**
@@ -1402,6 +1435,15 @@ declare class UmbrellaStore<M extends BaseMetadata$1> {
1402
1435
  fetchUserThreadsDeltaUpdate(signal: AbortSignal): Promise<void>;
1403
1436
  fetchRoomVersionsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
1404
1437
  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;
1405
1447
  }
1406
1448
 
1407
1449
  /**
@@ -1512,6 +1554,28 @@ declare function useUnreadInboxNotificationsCountSuspense(): {
1512
1554
  readonly count: number;
1513
1555
  readonly error?: undefined;
1514
1556
  };
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;
1515
1579
  /**
1516
1580
  * Returns room info from a given room ID.
1517
1581
  *
@@ -2351,4 +2415,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
2351
2415
  */
2352
2416
  declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
2353
2417
 
2354
- 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, useOthersConnectionIdsSuspense as aA, _useOthersMappedSuspense as aB, _useSelfSuspense as aC, _useStorageSuspense as aD, useStorageStatusSuspense as aE, _useThreadsSuspense as aF, useAttachmentUrlSuspense as aG, _useHistoryVersionsSuspense as aH, _useRoomNotificationSettingsSuspense as aI, useInboxNotificationsSuspense as aJ, useRoomInfoSuspense as aK, useUnreadInboxNotificationsCountSuspense as aL, _useUserSuspense as aM, _useUserThreadsSuspense_experimental as aN, 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, _useUserThreads_experimental as au, useRoomInfo as av, useUnreadInboxNotificationsCount as aw, _useUser as ax, _useOtherSuspense as ay, _useOthersSuspense 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 };
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 };
@@ -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, ToImmutable, 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, 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';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
 
8
8
  /**
@@ -213,12 +213,6 @@ type CommentReactionOptions = {
213
213
  commentId: string;
214
214
  emoji: string;
215
215
  };
216
- type NoPaginationFields = {
217
- hasFetchedAll?: never;
218
- isFetchingMore?: never;
219
- fetchMore?: never;
220
- fetchMoreError?: never;
221
- };
222
216
  type PaginationFields = {
223
217
  hasFetchedAll: boolean;
224
218
  isFetchingMore: boolean;
@@ -226,13 +220,14 @@ type PaginationFields = {
226
220
  fetchMoreError?: Error;
227
221
  };
228
222
  type PagedAsyncSuccess<T, F extends string> = Resolve<AsyncSuccess<T, F> & PaginationFields>;
229
- type PagedAsyncResult<T, F extends string> = Resolve<AsyncLoading<F> & NoPaginationFields> | Resolve<AsyncError<F> & NoPaginationFields> | PagedAsyncSuccess<T, F>;
223
+ type PagedAsyncResult<T, F extends string> = Relax<AsyncLoading<F> | AsyncError<F> | PagedAsyncSuccess<T, F>>;
230
224
  type ThreadsAsyncSuccess<M extends BaseMetadata$1> = PagedAsyncSuccess<ThreadData<M>[], "threads">;
231
225
  type ThreadsAsyncResult<M extends BaseMetadata$1> = PagedAsyncResult<ThreadData<M>[], "threads">;
232
226
  type InboxNotificationsAsyncSuccess = PagedAsyncSuccess<InboxNotificationData[], "inboxNotifications">;
233
227
  type InboxNotificationsAsyncResult = PagedAsyncResult<InboxNotificationData[], "inboxNotifications">;
234
228
  type UnreadInboxNotificationsCountAsyncSuccess = AsyncSuccess<number, "count">;
235
229
  type UnreadInboxNotificationsCountAsyncResult = AsyncResult<number, "count">;
230
+ type ChannelsNotificationSettingsAsyncResult = AsyncResult<ChannelsNotificationSettings, "settings">;
236
231
  type RoomNotificationSettingsAsyncSuccess = AsyncSuccess<RoomNotificationSettings, "settings">;
237
232
  type RoomNotificationSettingsAsyncResult = AsyncResult<RoomNotificationSettings, "settings">;
238
233
  type HistoryVersionDataAsyncResult = AsyncResult<Uint8Array>;
@@ -278,16 +273,15 @@ type MutationContext<P extends JsonObject, S extends LsonObject, U extends BaseU
278
273
  addToHistory: boolean;
279
274
  }) => void;
280
275
  };
281
- type ThreadSubscription = {
276
+ type ThreadSubscription = Relax<{
282
277
  status: "not-subscribed";
283
- unreadSince?: never;
284
278
  } | {
285
279
  status: "subscribed";
286
280
  unreadSince: null;
287
281
  } | {
288
282
  status: "subscribed";
289
283
  unreadSince: Date;
290
- };
284
+ }>;
291
285
  type SharedContextBundle<U extends BaseUserMeta> = {
292
286
  classic: {
293
287
  /**
@@ -1038,6 +1032,24 @@ type LiveblocksContextBundleCommon<M extends BaseMetadata$1> = {
1038
1032
  * const thread = useInboxNotificationThread("in_xxx");
1039
1033
  */
1040
1034
  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;
1041
1053
  /**
1042
1054
  * Returns the current Liveblocks sync status, and triggers a re-render
1043
1055
  * whenever it changes. Can be used to render a "Saving..." indicator, or for
@@ -1087,6 +1099,16 @@ type LiveblocksContextBundle<U extends BaseUserMeta, M extends BaseMetadata$1> =
1087
1099
  * const { count } = useUnreadInboxNotificationsCount();
1088
1100
  */
1089
1101
  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
+ ];
1090
1112
  /**
1091
1113
  * @experimental
1092
1114
  *
@@ -1148,7 +1170,7 @@ declare class ThreadDB<M extends BaseMetadata$1> {
1148
1170
  findMany(roomId: string | undefined, query: ThreadsQuery<M>, direction: "asc" | "desc"): ThreadData<M>[];
1149
1171
  }
1150
1172
 
1151
- type OptimisticUpdate<M extends BaseMetadata$1> = CreateThreadOptimisticUpdate<M> | DeleteThreadOptimisticUpdate | EditThreadMetadataOptimisticUpdate<M> | MarkThreadAsResolvedOptimisticUpdate | MarkThreadAsUnresolvedOptimisticUpdate | CreateCommentOptimisticUpdate | EditCommentOptimisticUpdate | DeleteCommentOptimisticUpdate | AddReactionOptimisticUpdate | RemoveReactionOptimisticUpdate | MarkInboxNotificationAsReadOptimisticUpdate | MarkAllInboxNotificationsAsReadOptimisticUpdate | DeleteInboxNotificationOptimisticUpdate | DeleteAllInboxNotificationsOptimisticUpdate | UpdateNotificationSettingsOptimisticUpdate;
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;
1152
1174
  type CreateThreadOptimisticUpdate<M extends BaseMetadata$1> = {
1153
1175
  type: "create-thread";
1154
1176
  id: string;
@@ -1243,6 +1265,11 @@ type UpdateNotificationSettingsOptimisticUpdate = {
1243
1265
  roomId: string;
1244
1266
  settings: Partial<RoomNotificationSettings$1>;
1245
1267
  };
1268
+ type UpdateChannelsNotificationSettingsOptimisticUpdate = {
1269
+ type: "update-channels-notification-settings";
1270
+ id: string;
1271
+ settings: PartialChannelsNotificationSettings;
1272
+ };
1246
1273
  /**
1247
1274
  * Like Promise<T>, except it will have a synchronously readable `status`
1248
1275
  * field, indicating the status of the promise.
@@ -1323,6 +1350,10 @@ declare function createStore_forPermissionHints(): {
1323
1350
  signal: ISignal<PermissionHintsLUT>;
1324
1351
  update: (newHints: Record<string, Permission[]>) => void;
1325
1352
  };
1353
+ declare function createStore_forChannelsNotificationSettings(updates: ISignal<readonly OptimisticUpdate<BaseMetadata$1>[]>): {
1354
+ signal: DerivedSignal<ChannelsNotificationSettings>;
1355
+ update: (settings: ChannelsNotificationSettings) => void;
1356
+ };
1326
1357
  declare function createStore_forOptimistic<M extends BaseMetadata$1>(client: Client<BaseUserMeta$1, M>): {
1327
1358
  signal: ISignal<readonly OptimisticUpdate<M>[]>;
1328
1359
  add: (optimisticUpdate: DistributiveOmit<OptimisticUpdate<M>, "id">) => string;
@@ -1335,6 +1366,7 @@ declare class UmbrellaStore<M extends BaseMetadata$1> {
1335
1366
  readonly roomNotificationSettings: ReturnType<typeof createStore_forRoomNotificationSettings>;
1336
1367
  readonly historyVersions: ReturnType<typeof createStore_forHistoryVersions>;
1337
1368
  readonly permissionHints: ReturnType<typeof createStore_forPermissionHints>;
1369
+ readonly channelNotificationSettings: ReturnType<typeof createStore_forChannelsNotificationSettings>;
1338
1370
  readonly optimisticUpdates: ReturnType<typeof createStore_forOptimistic<M>>;
1339
1371
  readonly outputs: {
1340
1372
  readonly threadifications: DerivedSignal<CleanThreadifications<M>>;
@@ -1345,6 +1377,7 @@ declare class UmbrellaStore<M extends BaseMetadata$1> {
1345
1377
  readonly loadingNotifications: LoadableResource<InboxNotificationsAsyncResult>;
1346
1378
  readonly settingsByRoomId: DefaultMap<RoomId, LoadableResource<RoomNotificationSettingsAsyncResult>>;
1347
1379
  readonly versionsByRoomId: DefaultMap<RoomId, LoadableResource<HistoryVersionsAsyncResult>>;
1380
+ readonly channelNotificationSettings: LoadableResource<ChannelsNotificationSettingsAsyncResult>;
1348
1381
  };
1349
1382
  constructor(client: OpaqueClient);
1350
1383
  /**
@@ -1402,6 +1435,15 @@ declare class UmbrellaStore<M extends BaseMetadata$1> {
1402
1435
  fetchUserThreadsDeltaUpdate(signal: AbortSignal): Promise<void>;
1403
1436
  fetchRoomVersionsDeltaUpdate(roomId: string, signal: AbortSignal): Promise<void>;
1404
1437
  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;
1405
1447
  }
1406
1448
 
1407
1449
  /**
@@ -1512,6 +1554,28 @@ declare function useUnreadInboxNotificationsCountSuspense(): {
1512
1554
  readonly count: number;
1513
1555
  readonly error?: undefined;
1514
1556
  };
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;
1515
1579
  /**
1516
1580
  * Returns room info from a given room ID.
1517
1581
  *
@@ -2351,4 +2415,4 @@ declare const _useStorageRoot: TypedBundle["useStorageRoot"];
2351
2415
  */
2352
2416
  declare const _useUpdateMyPresence: TypedBundle["useUpdateMyPresence"];
2353
2417
 
2354
- 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, useOthersConnectionIdsSuspense as aA, _useOthersMappedSuspense as aB, _useSelfSuspense as aC, _useStorageSuspense as aD, useStorageStatusSuspense as aE, _useThreadsSuspense as aF, useAttachmentUrlSuspense as aG, _useHistoryVersionsSuspense as aH, _useRoomNotificationSettingsSuspense as aI, useInboxNotificationsSuspense as aJ, useRoomInfoSuspense as aK, useUnreadInboxNotificationsCountSuspense as aL, _useUserSuspense as aM, _useUserThreadsSuspense_experimental as aN, 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, _useUserThreads_experimental as au, useRoomInfo as av, useUnreadInboxNotificationsCount as aw, _useUser as ax, _useOtherSuspense as ay, _useOthersSuspense 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 };
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 };
@@ -1,6 +1,6 @@
1
1
  export { ClientSideSuspense } from './index.mjs';
2
- export { x as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, I as useAddReaction, aG as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, z as useClient, 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, aH as useHistoryVersions, _ as useInboxNotificationThread, aJ 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, ay as useOther, az as useOthers, aA as useOthersConnectionIds, a6 as useOthersListener, aB as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, aK as useRoomInfo, aI as useRoomNotificationSettings, aC as useSelf, aa as useStatus, aD as useStorage, ab as useStorageRoot, aE as useStorageStatus, F as useSyncStatus, ac as useThreadSubscription, aF as useThreads, ad as useUndo, aL as useUnreadInboxNotificationsCount, ae as useUpdateMyPresence, af as useUpdateRoomNotificationSettings, aM as useUser, aN as useUserThreads_experimental } from './room-ne1TCZyH.mjs';
3
- export { Json, JsonObject, shallow } from '@liveblocks/client';
2
+ export { x as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, I as useAddReaction, aI as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, aM as useChannelsNotificationSettings, z as useClient, 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, aJ as useHistoryVersions, _ as useInboxNotificationThread, aL 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, aA as useOther, aB as useOthers, aC as useOthersConnectionIds, a6 as useOthersListener, aD as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, aN as useRoomInfo, aK as useRoomNotificationSettings, aE as useSelf, aa as useStatus, aF as useStorage, ab as useStorageRoot, aG as useStorageStatus, F as useSyncStatus, ac as useThreadSubscription, aH as useThreads, ad as useUndo, aO as useUnreadInboxNotificationsCount, av as useUpdateChannelsNotificationSettings, ae as useUpdateMyPresence, af as useUpdateRoomNotificationSettings, aP as useUser, aQ as useUserThreads_experimental } from './room-C0TyErPq.mjs';
3
+ export { Json, JsonObject, isChannelNotificationSettingEnabled, shallow } from '@liveblocks/client';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react';
6
6
  import '@liveblocks/core';
@@ -1,6 +1,6 @@
1
1
  export { ClientSideSuspense } from './index.js';
2
- export { x as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, I as useAddReaction, aG as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, z as useClient, 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, aH as useHistoryVersions, _ as useInboxNotificationThread, aJ 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, ay as useOther, az as useOthers, aA as useOthersConnectionIds, a6 as useOthersListener, aB as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, aK as useRoomInfo, aI as useRoomNotificationSettings, aC as useSelf, aa as useStatus, aD as useStorage, ab as useStorageRoot, aE as useStorageStatus, F as useSyncStatus, ac as useThreadSubscription, aF as useThreads, ad as useUndo, aL as useUnreadInboxNotificationsCount, ae as useUpdateMyPresence, af as useUpdateRoomNotificationSettings, aM as useUser, aN as useUserThreads_experimental } from './room-ne1TCZyH.js';
3
- export { Json, JsonObject, shallow } from '@liveblocks/client';
2
+ export { x as ClientContext, L as LiveblocksProvider, M as MutationContext, R as RoomContext, H as RoomProvider, U as UseStorageStatusOptions, w as UseThreadsOptions, I as useAddReaction, aI as useAttachmentUrl, J as useBatch, K as useBroadcastEvent, N as useCanRedo, O as useCanUndo, aM as useChannelsNotificationSettings, z as useClient, 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, aJ as useHistoryVersions, _ as useInboxNotificationThread, aL 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, aA as useOther, aB as useOthers, aC as useOthersConnectionIds, a6 as useOthersListener, aD as useOthersMapped, a7 as useRedo, a8 as useRemoveReaction, a9 as useRoom, aN as useRoomInfo, aK as useRoomNotificationSettings, aE as useSelf, aa as useStatus, aF as useStorage, ab as useStorageRoot, aG as useStorageStatus, F as useSyncStatus, ac as useThreadSubscription, aH as useThreads, ad as useUndo, aO as useUnreadInboxNotificationsCount, av as useUpdateChannelsNotificationSettings, ae as useUpdateMyPresence, af as useUpdateRoomNotificationSettings, aP as useUser, aQ as useUserThreads_experimental } from './room-C0TyErPq.js';
3
+ export { Json, JsonObject, isChannelNotificationSettingEnabled, shallow } from '@liveblocks/client';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react';
6
6
  import '@liveblocks/core';