CARVIEW |
Navigation Menu
-
Notifications
You must be signed in to change notification settings - Fork 363
Releases: liveblocks/liveblocks
3.1.4
Compare
@liveblocks/react-ui
- Fix copilot id not being passed to
set-tool-call-result
command that is dispatched when a tool call is responded to. Previously, we were using the default copilot to generate messages from the tool call result.
Assets 2
3.1.3
Compare
@liveblocks/react-ui
- Fix
AiChat
component not scrolling instantly to the bottom on render when
messages are already loaded.
Assets 2
3.1.2
Compare
@liveblocks/react-ui
and @liveblocks/emails
- Improve URL sanitization in comments.
Assets 2
3.1.1
Compare
@liveblocks/client
- Adds experimental setting
LiveObject.detectLargeObjects
, which can be
enabled globally usingLiveObject.detectLargeObjects = true
(default is
false). With this setting enabled, calls toLiveObject.set()
or
LiveObject.update()
will throw as soon as you add a value that would make
the total size of the LiveObject exceed the platform limit of 128 kB. The
benefit is that you get an early error instead of a silent failure, but the
downside is that this adds significant runtime overhead if your application
makes many LiveObject mutations. - Fix: also display errors in production builds when they happen in
render
methods defined withdefineAiTool()
. Previously, these errors would only be
shown during development. - Fix an issue with the render component of tool calls not being displayed
correctly when the tool call signal was read before it was registered.
Assets 2
3.1.0
Compare
@liveblocks/client
defineAiTool()()
now takes an optionalenabled
property. When set tofalse
, the tool will not be made available to the AI copilot for new/future chat messages, but still allow existing tool invocations to be rendered that are part of the historic chat record.
@liveblocks/react
RegisterAiTool
now also takes an optionalenabled
prop. This is a convenience prop that can be used to override the tool’senabled
status directly in React.
@liveblocks/react-ui
- Reasoning parts in
AiChat
are now automatically collapsed when the reasoning is done. - Add
collapsible
prop toAiTool
to control whether its content can be collapsed/expanded. - Add
InboxNotification.Inspector
component to help debugging custom inbox notifications.
@liveblocks/redux
- Add support for Redux v5.
@liveblocks/react-lexical
- Fix default
z-index
of collaboration cursors, and make them inherit their font family instead of always using Arial. - Add
lb-lexical-cursors
class to the collaboration cursors’ container. - Improve mentions’ serialization.
@liveblocks/node-lexical
- Improve mentions’ serialization.
Assets 2
✨ 3.0 🎉
Compare
Liveblocks 3.0 is our third major release, focusing on our newest product, AI Copilots. We’ve used this as an opportunity to tidy up some of our existing APIs, ensuring consistency throughout our offering.
For full upgrade instructions and codemods, see the 3.0 upgrade guide.
All packages
- TypeScript 5.0 is now the minimum supported version.
- Remove deprecated APIs, see the deprecated section in the upgrade guide to learn more.
@liveblocks/react
- Introduce hooks and APIs for AI Copilots:
useAiChats
,useAiChat
,useDeleteAiChat
,useSendAiMessage
,RegisterAiTool
,RegisterAiKnowledge
, etc. - Rename
UPDATE_USER_NOTIFICATION_SETTINGS_ERROR
toUPDATE_NOTIFICATION_SETTINGS_ERROR
when usinguseNotificationSettings
oruseUpdateNotificationSettings
.
@liveblocks/react-ui
- Introduce pre-built components for AI Copilots:
AiChat
,AiTool
, etc. - The
onMentionClick
prop onThread
andComment
now receives aMentionData
object instead of auserId
string. - The
Mention
component on theComment.Body
andComposer.Editor
primitives now receives amention
prop instead of auserId
one. - The
MentionSuggestions
component on theComposer.Editor
primitive now receives amentions
prop instead of auserIds
one, and theselectedUserId
prop has been renamed toselectedMentionId
. - Rename
LiveblocksUIConfig
toLiveblocksUiConfig
for consistency with other Liveblocks APIs.
@liveblocks/emails
- Remove deprecated
htmlBody
/reactBody
properties fromprepareThreadNotificationEmailAsHtml
/prepareThreadNotificationEmailAsReact
, usebody
instead. - Remove
htmlContent
/reactContent
properties fromprepareTextMentionNotificationEmailAsHtml
/prepareTextMentionNotificationEmailAsReact
, usecontent
instead. - The
prepareTextMentionNotificationEmailAsReact
andprepareTextMentionNotificationEmailAsHtml
functions’ returned data changed slightly:- The
id
property is now namedtextMentionId
, it refers to the mention’s Text Mention ID, not the user ID used for the mention - The
id
property now refers to the mention’s ID, as in the user ID used for the mention
- The
- The
element
prop received by theMention
component inprepareTextMentionNotificationEmailAsReact
now contains anid
property instead ofuserId
, and a newkind
property to indicate the mention’s kind.
@liveblocks/client
and @liveblocks/node
- The
getMentionedIdsFromCommentBody
utility has been replaced bygetMentionsFromCommentBody
.
Assets 2
2.24.3
Compare
@liveblocks/react
and @liveblocks/react-ui
- Fix an issue with subpath imports (e.g.
@liveblocks/react/suspense
) and CommonJS which could happen with certain bundlers.
Assets 2
2.24.2
Compare
@liveblocks/react-ui
- Disable or hide actions in
Thread
andComment
components for users without permission to perform them, such as adding reactions or (un)resolving threads.
Assets 2
2.24.1
Compare
v2.24.1
@liveblocks/yjs
- Fix for occasional desync issue
Assets 2
2.24.0
eb5c040
Compare
We are introducing thread subscriptions to add more granularity to thread notifications, allowing users to subscribe to threads without participating or unsubscribing from specific ones.
We are also using this opportunity to rename some of the concepts around notifications and notification settings to improve clarity. None of these changes are breaking but you can learn more about them, their rationale, and how to automatically apply them with a codemod in our Upgrade Guide for 2.24.
@liveblocks/react-ui
- Add "Subscribe to thread" and "Unsubscribe from thread" actions to
Thread
and threadInboxNotification
out of the box.
@liveblocks/react
- Add
useSubscribeToThread
anduseUnsubscribeFromThread
hooks. - Add
subscribe
andunsubscribe
methods to the existinguseThreadSubscription
hook. - Add support for
textMentions
in room subscription settings. - Rename
useRoomNotificationSettings
anduseUpdateRoomNotificationSettings
touseRoomSubscriptionSettings
anduseUpdateRoomSubscriptionSettings
.
@liveblocks/node
- Add
subscribeToThread
,unsubscribeFromThread
,getThreadSubscriptions
andgetUserRoomSubscriptionSettings
methods. - Add support for
textMentions
in room subscription settings. - Rename
getRoomNotificationSettings
,updateRoomNotificationSettings
, anddeleteRoomNotificationSettings
togetRoomSubscriptionSettings
,updateRoomSubscriptionSettings
, anddeleteRoomSubscriptionSettings
.
@liveblocks/client
- Add
Room.subscribeToThread
andRoom.unsubscribeFromThread
methods. - Methods which return threads and their associated inbox notifications now also return the thread’s associated subscriptions.
- Add support for
textMentions
in room subscription settings. - Rename
Room.getNotificationSettings
andRoom.updateNotificationSettings
toRoom.getSubscriptionSettings
andRoom.updateSubscriptionSettings
.