Skip to content

Releases: aws/mynah-ui

v4.7.0

30 Apr 06:55
Compare
Choose a tag to compare

This version includes a hotfix for markedjs which is not parsing the inner content of the list items.

Fixed

  • markedjs doesn't parse inside list items. We've applied another marked.parse for the inner content of the markedjs.

Updated

  • fileListTree title removal updated with empty string check. So to not show the file list tree card title, you need to provide an empty string ''. Also added rootFolderTitle structure back even for single files. As far as you provide rootFolderTitle it will show the root folder on top of the file.

Demo app

  • Added another sample card with markdown content which contains list items with other elements like inline codes, bold texts and links.

v4.6.4

24 Apr 11:05
Compare
Choose a tag to compare

This version mainly includes style updates on quick command selector component.

Added

  • A check for No tabs view rendering. If maxTabs is set to 1 we're not rendering the NoTabs view anymore.
  • Post install deprecation notices.
  • Documentation of onFileClick event.

Updates

  • Moved body and html style overrides to main wrapper of mynah-ui.
  • Quick action command selector title styles are updated as requested by design team.
  • Quick action command groups now have a separator between them.
  • Removed unused duplicate eslint config

Demo app

  • Styles to have its own body and html element sizings.
  • Updated base light theme

v4.6.3

23 Apr 09:33
0823440
Compare
Choose a tag to compare

This version includes a proper single file view for fileList parameter if it only has one filePath string.

Added

  • Single file view to FileTreeView. If you provide only one file path string in the fileList parameter of ChatItem, it will fit the file row to the parent wrapper and make it look like a standalone attachment with a paper clip icon as appears in the UI/UX design docs. However, you can still use the details (info and status color) and actions parameters for that file.
  • cardTitle check to FileTreeView. If you provide an empty string ("") it is not getting rendered anymore.
  • PAPER_CLIP icon
  • onFileClick event added as a replacement of onOpenDiff in the next major version update. onOpenDiff has the deprecation warning now. Please use onFileClick instead with the exact same arguments.

Updates

  • Replaced internal event name OPEN_DIFF to FILE_CLICK
  • Moved FileNode from FileTreeView to a separate component for reusability.
  • Clickable item style hierarchy from .card-body to .card

Demo App

  • Updated the Progressive example with better check icons ([ ] and [x]) and adding a single file view example when the progress finishes.

Change visuals

Screenshot 2024-04-22 at 13 24 37

v4.6.2

22 Apr 17:55
Compare
Choose a tag to compare

This version includes an additional check for streaming cards without an initial messageId.

Added

  • Temporary ID to be replaced with an upcoming message update. By this we can keep track of unknown message ids when they got an update with a new messageId when updateLastChatAnswer called.

v4.6.1

19 Apr 15:10
Compare
Choose a tag to compare

This version includes the addition of style attribute as an accepted one for customRenderers.

Added

  • style as an accepted attribute for custom renderers. Please see DATAMODEL documentation
  • cursor: pointer style for items which has click or dblclick event in mynah-ui elements.

Updated

  • docs to indicate style as an accepted attribute.

Demo app

  • customRenderer examples are updated

v4.6.0

18 Apr 13:48
Compare
Choose a tag to compare

This version includes endMessageStream method addition.

Added

  • endMessageStream method with a return of details object. Currently only gives totalNumberOfCodeBlocks. This method only converts the type of the card to ChatItemType.ANSWER. It will not stop the stream itself. See details
  • Option to disable code block buttons for message specific or system wide. You can use codeInsertToCursorEnabled and codeCopyToClipboardEnabled in ChatItem object for specific message or in the config property of the main class for disabling/enabling them globally. See CONFIG Doc for global and ChatItem Datamodel for message specific settings.
  • New css custom properties for user prompt card type. (Their defaults are the button background and text colors as we map them previously, it is backwards compatible.)

Fixed

  • Missing codeBlockIndex if both body and customRenderer attributes are provided in a ChatItem
  • If no tabs available, there is a programmatic error on tab bar buttons assignment
  • Minor styling issues to match UI/UX designs and IDE look&feel better including Stop Generating button.

Demo App

  • The new prompt card color values are added with --mynah-ui-card-bg-alternate and --mynah-ui-color-text-alternate custom property configs
  • You can now stop streaming of a card with Stop generating button (only available for the general card stream simulation)

v4.5.6

15 Apr 07:57
Compare
Choose a tag to compare

This version includes addition of two new arguments to the code block events.

Added

  • Two new arguments to onCopyCodeToClipboard and onCodeInsertToCursorPosition events which are codeBlockIndex and totalCodeBlocks. With this addition, you can now understand that what is the order of the code block inside that message and how many code blocks that message contains when user clicks one of the Copy or Insert at cursor buttons.

Updated

  • Documentation for newly added arguments

Demo app

  • Added codeBlockIndex and totalCodeBlocks to console logger block for copy and insert events.

v4.5.5

12 Apr 18:10
Compare
Choose a tag to compare

This version includes an updated no-content card check with addition of empty string values on body attribute.

Updated

  • no-content card check including the empty string body attribute values.

v4.5.4

10 Apr 13:40
Compare
Choose a tag to compare

This version includes the following;

Added

  • disabled option for quick action commands
  • Auto focus to prompt input when code is attached

Demo App

  • Added tab bar menu option to attach code block

v4.5.3

08 Apr 10:22
Compare
Choose a tag to compare

This version includes the addition of the no tabs open state.
No tabs open

Added