This release introduces Notifications (and unread indicators) for Comments.
@liveblocks/client
- Add options to
createClient
:resolveUsers
,resolveMentionSuggestions
(both were previously defined oncreateRoomContext
from
@liveblocks/react
), and the newresolveRoomsInfo
.
@liveblocks/react
- Add new
LiveblocksContext
accessible withcreateLiveblocksContext
,
similarly tocreateRoomContext
. This context is meant to live at the root
since it handles things outside of rooms, like notifications. It contains
LiveblocksProvider
,useUser
,useRoomInfo
,useInboxNotifications
,
useUnreadInboxNotificationsCount
,useMarkInboxNotificationAsRead
, and
useMarkAllInboxNotificationsAsRead
. - Add new hooks to
createRoomContext
:useMarkThreadAsRead
,
useThreadSubscription
,useRoomInfo
,useRoomNotificationSettings
, and
useUpdateRoomNotificationSettings
. - Make some hooks usable interchangeably between
createLiveblocksContext
and
createRoomContext
:useUser
, anduseRoomInfo
.
@liveblocks/react-comments
- Add new default components:
InboxNotification
andInboxNotificationList
. - Add unread indicators to the default
Thread
component.
@liveblocks/node
- Add the Notifications REST APIs as fully typed methods. (includes
getInboxNotification
,getRoomNotificationSettings
,
updateRoomNotificationSettings
, anddeleteRoomNotificationSettings
methods) - Add email notification webhook event for threads:
ThreadEmailNotificationEvent
.