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.