@liveblocks/emails
Advanced tools
Changelog
v3.3.4
@liveblocks/client
useSendAiMessage
first and then immediately opening the
<AiChat />
afterwards.@liveblocks/react-tiptap
AnchoredThreads
is
selected, similarly to @liveblocks/react-lexical
.Changelog
v3.3.1
@liveblocks/react-ui
Composer
uploading attachments on drop when showAttachments
is set to
false
.Changelog
v3.3.0
@liveblocks/react-ui
maxVisibleComments
prop to Thread
to control the maximum number of
comments to show. When comments are hidden, a "Show more replies" button is
shown to allow users to expand the thread.onComposerSubmit
callback to AiChat
triggered when a new message is
sent. It can also be used to customize message submission by calling
useSendAiMessage
yourself.AiChat
's composer have been renamed:
AI_CHAT_COMPOSER_SEND
→ AI_COMPOSER_PLACEHOLDER
.lb-ai-chat-composer-form
→ .lb-ai-composer-form
AiChat
no longer leaks that knowledge to
other instances of AiChat
that are currently mounted on screen.@liveblocks/react
query
option to useAiChats
to filter the current user’s AI chats by
metadata. Supports exact matches for string values, "contains all" for string
arrays, and filtering by absence using null
(e.g.
{ metadata: { archived: null } }
).useSendAiMessage
now accepts passing the chat ID and/or options to the
function rather than the hook. This can be useful in dynamic scenarios where
the chat ID might not be known when calling the hook for example.useCreateAiChat
now accepts a chat ID as a string instead of
{ id: "chat-id" }
.@liveblocks/react-tiptap
and @liveblocks/react-lexical
FloatingComposer
via the
components={{ Composer }}
prop.@liveblocks/react-lexical
ATTACH_THREAD_COMMAND
command to manually create a thread attached to
the current selection.Changelog
v3.2.1
@liveblocks/react-ui
AiChat
: better spacing and support for arbitrary
starting numbers in ordered lists. (e.g. 3.
instead of 1.
)@liveblocks/react
useSyncStatus
returning incorrect synchronization status for Y.js
provider. We now compare the hash of local and remote snapshot to check for
synchronization differences between local and remote Y.js document.@liveblocks/yjs
LiveblocksYjsProvider.getStatus()
returning incorrect synchronization
status for Y.js provider.Changelog
v3.2.0
@liveblocks/react-ui
AiChat
's scroll behavior when sending new messages: the chat will
now scroll new messages to the top and leave enough space for responses.AiChat
’s components
prop to customize the
rendering of Markdown content.blurOnSubmit
prop to Composer
(also available on the Composer.Form
primitive and as blurComposerOnSubmit
on Thread
) to control whether a
composer should lose focus after being submitted.@liveblocks/react
useErrorListener
now receives "LARGE_MESSAGE_ERROR"
errors when the
largeMessageStrategy
option isn’t configured and a message couldn’t be sent
because it was too large for WebSocket.@liveblocks/node
tenantId
to identifyUser
method as an optional parameter.Changelog
v3.1.4
@liveblocks/react-ui
Changelog
v3.1.3
@liveblocks/react-ui
AiChat
component not scrolling instantly to the bottom on render when
messages are already loaded.