Skip to content

v4.23.0

Compare
Choose a tag to compare
@dogusata dogusata released this 03 Mar 16:07
· 16 commits to main since this release

In this version, we've added and updated several features mostly targeting on the @ context and / command selectors.

Added/Updated

  • Prompt input field
    • Increased min-height to 3 lines if the screen height is equal to or more than 450px, otherwise keeps 1 line.
  • Context item and Quick action commands
    • Added nested list functionality, now a command or context can have children which will have an indication of right arrow when user focuses/hovers to that item
    • Improved filtering through nested items and highlight matching
    • Added actions option for the group, which is being placed on top of the group title
    • Selected context items are now being sent as an array of context item objects with the onChatPrompt event, in the ChatPrompt object.
    • Added a new event called onContextSelected which uses the return of the handler as a condition to trigger the default behavior or not. Added to make context/command items as an actionable item like a button.
    • Added icon (if available) to the selected context items
    • Added tooltip to the selected context items
    • Added autoscroll to element while navigating with up and down arrows in the list if the item is not in the visible scroll area.
  • Chat item and chat card
    • Added header option to chat item, works similar with footer, however to avoid re-rendering, it requires a undefined as a value at least once while updating the chat item.
  • File list/tree
    • Added collapsed option to collapse all folders
    • Added option to hide file count
    • Added option to make the file list flat instead of a tree (which hides folders except the root)
    • Added vertical scroll instead of truncation.
    • Added folder icon option. If null is given no folder icons will be showed.
  • Forms (both in ChatItem and custom form field)
  • Chat export
    • A new method is added to main class instance called seralizeChat which can be used to get an export of a tab as markdown or HTML with some stylings.