Skip to content

Releases: aws/mynah-ui

v4.15.4

31 Jul 12:39
13d9a90
Compare
Choose a tag to compare

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
    QChatIssueWindows
  • Showing/hiding the scrollbars is now controlled by the OS settings
    image
  • Fixing issue with the max tabs notification not being dismissible.
    350022198-c736e164-f232-43d8-8291-c4d9b9e3e118
  • Revert the word breaks in card bodies

Full Changelog: v4.15.3...v14.15.4

v4.15.3

19 Jul 14:47
c41b0d5
Compare
Choose a tag to compare

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
Screenshot 2024-07-16 at 16 30 10
  • Fixing quick pick overlay not reappearing after blurred then focused

restoreCommandsOnFocus

Full Changelog: v4.15.2...v4.15.3

v4.15.2

10 Jul 07:08
d39f8c0
Compare
Choose a tag to compare

This version targets two minor bug fixes related with prompt input wrapping and user input content being converted to code blocks.

Fixed

  • When user input contains 4 or more spaces at the beginning of the line for multiline inputs, that line appears like a code block instead of a paragraph
    • bug-in-example
  • When the prompt input exceeds the width of the chat box it's not always wrapped correctly.
    • image

v4.15.1

28 Jun 08:59
Compare
Choose a tag to compare

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 a p 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.
image

v4.15.0

27 Jun 23:55
Compare
Choose a tag to compare

What's Changed

This version includes several fixes for Button and PromptInput components.

Fixes

  • ChatItemFollowUpOption component is replaced with Button component
  • PromptInput 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

26 Jun 13:38
Compare
Choose a tag to compare

This version includes focus event addition with name onFocusStateChanged.

Fixed

  • inline button styles (with borders)
image

Added

  • onFocusStateChanged event

v4.14.0

25 Jun 10:38
51799ce
Compare
Choose a tag to compare

This version targets on adding the footer option to ChatItems and codeBlockActions to config and ChatItem. But not limited with that, it also contains several bug fixes.

Added

  • footer to ChatItem which can be a ChatItemContent (which is just the content part of a ChatItem, without the requirement of messageId and type).
  • 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

footer2

codeBlockActions

codeBlockActions

v4.13.0

21 Jun 13:39
a3799f4
Compare
Choose a tag to compare

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 global config options to make them interchangeable by the consumer.
  • CardItem generation orders to give them fixed orders.

v4.12.0

20 Jun 15:18
f0d8173
Compare
Choose a tag to compare

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.
contextCommands

Added

  • A new field in the tabStore data model which is called contextCommands and accepts an array of QuickActionCommandGroup
  • 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

19 Jun 13:29
Compare
Choose a tag to compare

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