Releases: aws/mynah-ui
v4.15.4
What's Changed
This version includes fixes for the cursor positioning in the prompt text box, the scroll bar and max tabs notification.
Fixes
- Fixing issue with an incorrect input cursor position in the prompt text box
- Showing/hiding the scrollbars is now controlled by the OS settings
- Fixing issue with the max tabs notification not being dismissible.
- Revert the word breaks in card bodies
Full Changelog: v4.15.3...v14.15.4
v4.15.3
What's Changed
This version includes fixes for prompt text wrapping and command selection after focus changes.
Fixes
- Fixing issue with long words causing overflow
- Fixing quick pick overlay not reappearing after blurred then focused
Full Changelog: v4.15.2...v4.15.3
v4.15.2
This version targets two minor bug fixes related with prompt input wrapping and user input content being converted to code blocks.
Fixed
v4.15.1
This version includes Button
component rendering with inline markdown structure instead of block one. Which allows the ellipsis to appear if the text is longer than available space width.
Fixed
Button
component creates ap
tag to wrap the parsed markdown content. Now button directly contains the text even after parsed with markdown parser and the ellipsis are placed properly if the text is longer than button width.
v4.15.0
What's Changed
This version includes several fixes for Button
and PromptInput
components.
Fixes
ChatItemFollowUpOption
component is replaced withButton
componentPromptInput
component- gets invisible if user types special html characters is fixed
- has disappearing texts is fixed
- alignment with selected command field is fixed
- does not remove context as a word if it is at the beginning of end of a line is fixed
Button
component- crops text very short and doesn't show tooltip is fixed
- font size is too big fixed
- hover animations are improved and styles are all aligned with IDE defaults
- got feature addition to show markdown content inside
- got feature addition to show status colors
- got feature update to show borders or not if status is provided
Updates
- Unused styles are removed
- Added types for example app config
- Corrected some typo issues
Full Changelog: v4.14.0...v4.15.0
v4.14.1
v4.14.0
This version targets on adding the footer
option to ChatItem
s and codeBlockActions
to config and ChatItem
. But not limited with that, it also contains several bug fixes.
Added
footer
to ChatItem which can be aChatItemContent
(which is just the content part of a ChatItem, without the requirement ofmessageId
andtype
).codeBlockActions
to ChatItem and global config to allow consumer add their own code block actions/buttons depending or not depending on the code block language.updateLastChatAnswer
function to dumb-check if there is no streaming card as the last card, it adds one.- File and Folder icons to
fileList
items. - Q, File, Folder and Magic icons
- DOCS for newly added features
Fixed
- Prompt input text field scroll doesn't work properly for multiline insertion
- Prompt input removes whole word if it starts with @ character but doesn't have any context picker selection provided.
- Followups appear on top without styling if they come nested with a ChatItem which has content already.
- Missing styles, broken font-sizes, animations and css custom properties.
New Features:
footer
codeBlockActions
v4.13.0
This version includes a change which both fixes the unwanted <span class='typewriter-part>...</span>
additions to the code blocks inside list items and improves the overall smoothness and performance of the typewriter animations.
Updated
- Streaming content component which is now wrapped out from the chat-item-card and builded as a new and separate component.
- Typewriter animation injection which is removed from the markdown parsing process and added to
node
handling process with a check if the node type is TEXT. Which means that if the node is not a text, we're not animating it anymore. - SCSS file imports moved the their corresponding component definitions. With this, we're only adding these styles to the dom render when that component is used. For example if you don't use the fileTree component at all, it will not import the css to the dom tree.
radiogroup
,select
,button
,textinput
,button
and some other component class definitions and globalconfig
options to make them interchangeable by the consumer.- CardItem generation orders to give them fixed orders.
v4.12.0
This version includes the context selection overlay addition to the prompt input field. Use @
to add context items into the prompt text.
MynahUI
Exactly like the quick action commands selector, a context selector is implemented into the prompt input field. But unlike the quick action commands, it can be picked multiple times and can be written inside the prompt text anywhere. It also sends the selected context items in an additional attribute in the prompt
object. Available context items should be provided through the data model like the QuickAction commands but in a new attribute field called contextCommands
.
Added
- A new field in the tabStore data model which is called
contextCommands
and accepts an array ofQuickActionCommandGroup
- Listener to prompt input text field for
@
character insertion and enables the overlay picker for the provided context items if there is any. - Checks to prompt input if user is trying to remove a letter with DEL or BACKSPACE and if the cursor position is in a word which is a mention (starts with
@
), in this case, it removes the whole word/mention.
Updated
- All DOCS with the according information of
contextCommands
addition.
Demo App
- Example app to showcase the context selector functionality.
v4.11.2
This version includes a hot fix for file items don't show actions or trigger onFileClick
events if their path starts with ./
Fixed
- When the given path for a file starts with
./
it doesn't show the file actions and not triggering the file click. Now it uses the original file path check - When there is a long text inside a followup, it should fit until the line ends instead of cropping at fixed 40 chars. Now it keeps it growing until the end of the line. If it has an ellipsis even after the available line space, it shows the tooltip.
Demo app
- File list example updated
- Z-Index fixed for letting the Overlay items show properly