Releases: aws/mynah-ui
Releases · aws/mynah-ui
v4.7.0
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 anothermarked.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 addedrootFolderTitle
structure back even for single files. As far as you providerootFolderTitle
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
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
andhtml
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
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 thedetails
(info and status color) andactions
parameters for that file. cardTitle
check to FileTreeView. If you provide an empty string (""
) it is not getting rendered anymore.PAPER_CLIP
icononFileClick
event added as a replacement ofonOpenDiff
in the next major version update.onOpenDiff
has the deprecation warning now. Please useonFileClick
instead with the exact same arguments.
Updates
- Replaced internal event name
OPEN_DIFF
toFILE_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
v4.6.2
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 newmessageId
whenupdateLastChatAnswer
called.
v4.6.1
This version includes the addition of style
attribute as an accepted one for customRenderer
s.
Added
style
as an accepted attribute for custom renderers. Please see DATAMODEL documentationcursor: pointer
style for items which hasclick
ordblclick
event in mynah-ui elements.
Updated
- docs to indicate
style
as an accepted attribute.
Demo app
- customRenderer examples are updated
v4.6.0
This version includes endMessageStream
method addition.
Added
endMessageStream
method with a return of details object. Currently only givestotalNumberOfCodeBlocks
. This method only converts the type of the card toChatItemType.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
andcodeCopyToClipboardEnabled
inChatItem
object for specific message or in theconfig
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 bothbody
andcustomRenderer
attributes are provided in aChatItem
- 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
This version includes addition of two new arguments to the code block events.
Added
- Two new arguments to
onCopyCodeToClipboard
andonCodeInsertToCursorPosition
events which arecodeBlockIndex
andtotalCodeBlocks
. 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 theCopy
orInsert at cursor
buttons.
Updated
- Documentation for newly added arguments
Demo app
- Added
codeBlockIndex
andtotalCodeBlocks
to console logger block for copy and insert events.
v4.5.5
v4.5.4
v4.5.3
This version includes the addition of the no tabs open
state.
Added
No tabs open
state to inform the user that there is no open tab to chat and also added a shortcut button to open a new tab with the default data which can be configured with thedefaults
constructor property.- Updated documentation for the no tab open state texts.