This release introduces Notifications (and unread indicators) for Comments.
@liveblocks/client
- Add options to
createClient:resolveUsers,resolveMentionSuggestions
(both were previously defined oncreateRoomContextfrom
@liveblocks/react), and the newresolveRoomsInfo.
@liveblocks/react
- Add new
LiveblocksContextaccessible 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
createLiveblocksContextand
createRoomContext:useUser, anduseRoomInfo.
@liveblocks/react-comments
- Add new default components:
InboxNotificationandInboxNotificationList. - Add unread indicators to the default
Threadcomponent.
@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.