Skip to content

0.3.0

Choose a tag to compare

@github-actions github-actions released this 08 Oct 18:37
· 35 commits to development since this release

Features

  • [Breaking] Peer dependency @epam/ai-dial-ui-kit raised from ^0.14.0 to ^0.15.0 — consumers must install the stable 0.15 kit (hosts on a 0.15.0-dev build move to 0.15.0), which carries the 2.0 FilterChips, Breadcrumbs, InlineSelectTrigger, and ButtonDropdown.dropdownProps this release is built on (#42, #43, #47, #52, #60)
  • [Breaking] Storage tabs moved from the toolbar into the folders panel and are drawn as FilterChips, a named role="group" of aria-pressed toggles instead of a tablist — migrate toolbarOptions.tabs / activeTab / onTabChange to treeOptions.tabs / activeTab / onTabChange, pass items as { value, label } instead of { id, label } (count and disabled are gone), and type activeTab as DialFileManagerTabs; useDialFileManagerTabs returns the new shape (#42)
  • [Breaking] DialFileManagerTabs.All added as the first enum member for a combined My files / Shared / Organization view, and useDialFileManagerTabs lists it first — Record<DialFileManagerTabs, …> literals such as tab labels must add an all key; filter it out of tabs if the host does not offer it (#51)
  • [Breaking] The folders panel is fixed at 360px and truncates long names — it no longer resizes or collapses, so treeOptions.width and the built-in "collapse all" button are removed; a host that wants collapse-all renders its own button in treeOptions.additionalButtons and drives it from treeOptions.onExpandedPathsChange (#42, #56)
  • [Breaking] The bulk actions bar floats over the bottom of the grid instead of replacing the header, so the breadcrumbs and Add button stay reachable mid-selection — bulkActionsToolbarOptions.getSelectionLabel must now return only the wording ("items selected", not "4 items selected") because the bar draws the count as a badge, and the new clearSelectionLabel names its close button; actions run Download, Move to, Copy to, Duplicate, Delete, with Delete in the danger colour (#42)
  • [Breaking] The breadcrumb trail is the 2.0 Breadcrumbs, drawn as the content column's heading and collapsing long paths behind an ellipsis menu instead of scrolling — in navigationPanelOptions rename labelClassName to itemClassName and drop onBeforeNavigate (the 2.0 trail has no navigation guard); size, maxVisibleItems (default 4), and overflowAriaLabel are new (#43)
  • [Breaking] Props removed along with the old toolbar row and the collapsible compact search — managerLabel (title the manager with treeOptions.header, now shown while the panel is expanded), toolbarOptions.hiddenFilesSwitcherLabel (move the translation onto showHiddenFilesLabel / hideHiddenFilesLabel), and navigationPanelOptions.isCompactView / backButtonLabel; navigationPanelOptions also accepts only the eight search props it actually forwards, so readOnly, name, and focus handlers stop type-checking (#42)
  • [Breaking] gridOptions.wrapperBorder removed — the grid panel draws rounded corners and a small shadow instead of a border, and the drag-over outline follows its radius; restyle it through the new gridOptions.containerClassName (#55)
  • File Manager layout rebuilt to the 2.0 design — the hidden-files switch and Add button sit in the content header beside the breadcrumbs, the search field spans the head of the grid card with a new placeholder, and the section chips stay reachable at the top of the content column in compact view (#42, #53, 4e5b5b2)
  • DialFileManagerSortDropdown added — a Sort menu (Name / Modified date / Size, then Ascending / Descending) at the trailing edge of the search row, configured through the new sortOptions (sort / defaultSort / onSortChange plus localizable labels) and exported with the SortOptions and FileManagerSort* types; rows now default to folders first, then name ascending — pass sortOptions={{ sortable: false }} to keep source order and hide the menu (#47)
  • DialFoldersTree is now a keyboard-accessible ARIA tree — role="tree" / treeitem rows with roving focus, Arrow / Home / End navigation mirrored under RTL, and Enter/Space activation, plus new ariaLabel (default "Folders"), autoFocus, and onEscape props for hosting the tree in a dismissible overlay; the old aria-label="folders-tree" / "folder" attributes are gone, so update any test selectors that relied on them (#50)
  • Folders tree and empty states restyled to 2.0 — pill-shaped rows with a tighter per-level indent, names drawn by the kit's FileName / FolderName, and an empty folder or no-results search showing only the empty state with the grid and bulk-actions bar hidden; the no-results title is set by the new searchEmptyStateTitle (default "No data") (#47, 4b104a6, b2bb4c1)
  • The delete confirmation follows the DIAL delete design — ghost Cancel, a DangerButton Delete led by a trash icon, and a header close control named by the new deleteConfirmationOptions.closeLabel (default "Close dialog"); titleRenderer / contentRenderer now receive the items as a second argument so a host can title it "Delete folder" or "Delete file" by nodeType (#59)
  • Layout class hooks added — contentClassName and contentHeaderClassName on DialFileManager plus gridOptions.containerClassName merge extra classes onto the content column, its header, and the grid panel, so a class like pb-0 or shadow-none overrides the matching default (#55, #57)
  • skipForbiddenSymbolsCheckForActions added to DialFileManager — keeps actions such as Duplicate, Copy, Move, and Download in the tree and grid menus of items whose names match forbiddenSymbolsRegExp, which otherwise hides them (#49)
  • gridOptions.additionalGridOptions can now set rowHeight and headerHeight — the File Manager's built-in 44px values previously overwrote them (#46)

Fixes

  • A file found by search can now be selected — selection falls back to searchResults when the hit lives in a folder the tree has not loaded, instead of pruning the row as stale on the same render (#42)
  • In compact view, several roots (such as the new All tab) open on a list of the roots instead of showing only the first root's contents — selecting one browses it, and a leading breadcrumb named after the active tab returns to the list (#58)
  • Delete is painted in the danger colour and moved to the end of the folders-tree and grid context menus, matching the bulk actions bar (#48, #54)
  • The Add and Sort menus open at their design widths (108px / 240px) instead of the width of their trigger button (#52)
  • The Copy/Move destination popup matches the design — its grid gets spacing, its tree sits in a 360px card like the main folders panel, and its tree header is always hidden rather than repeating the main tree's header (#57)

Other

  • classnames dropped from dependencies — replaced by the UI Kit's mergeClasses, so one less package is installed alongside the File Manager (#43)
  • Security-relevant dev dependency upgrades: postcss-selector-parser overridden to ^7.1.6 (GHSA-rj75-hqrm-r3gf), vitest / @vitest/coverage-v8 to ^4.1.11 (GHSA-82fw-gwwq-j7x9), and Storybook's esbuild to ^0.28.1 (GHSA-g7r4-m6w7-qqqr) — all build/test-time only, none reach consumer runtime (#60)