github transloadit/uppy @uppy/dashboard@5.0.0

latest releases: @uppy/drag-drop@5.0.1, @uppy/provider-views@5.0.1, @uppy/core@5.0.1...
11 days ago

Major Changes

  • e869243: ### Merge @uppy/status-bar into @uppy/dashboard

    The @uppy/status-bar package has been merged into @uppy/dashboard. The plugin gave a false promise of flexibility as a standalone plugin but was always built tightly coupled for @uppy/dashboard. With the new headless components and hooks, we want go all in those components and remove the confusing, inflexible ones.

    StatusBar is now rendered as an integrated component within Dashboard rather than as a separate plugin. The standalone @uppy/status-bar package is no longer maintained and should be removed from your dependencies.

    Migration from standalone StatusBar to Dashboard

    If you were using StatusBar as a separate plugin, you'll need to migrate to using Dashboard with the equivalent options.

    Before:

    import StatusBar from "@uppy/status-bar";
    
    uppy.use(StatusBar, {
      target: "#status-bar",
      showProgressDetails: true,
      hideUploadButton: false,
      hideAfterFinish: true,
    });

    Now:

    import Dashboard from "@uppy/dashboard";
    
    uppy.use(Dashboard, {
      target: "#dashboard",
      hideProgressDetails: false,
      hideUploadButton: false,
      hideAfterFinish: true,
    });

    All StatusBar configuration options are now available directly as Dashboard options:

    • hideProgressDetails - Hide detailed progress information (previously showProgressDetails with inverted logic)
    • hideUploadButton - Hide the upload button
    • hideAfterFinish - Hide status bar after upload completion
    • hideRetryButton - Hide the retry button
    • hidePauseResumeButton - Hide pause/resume controls
    • hideCancelButton - Hide the cancel button
    • doneButtonHandler - Custom handler for the done button
  • c5b51f6: ### Export maps for all packages

    All packages now have export maps. This is a breaking change in two cases:

    1. The css imports have changed from @uppy[package]/dist/styles.min.css to @uppy[package]/css/styles.min.css
    2. You were importing something that wasn't exported from the root, for instance @uppy/core/lib/foo.js. You can now only import things we explicitly exported.

    Changed imports for @uppy/react, @uppy/vue, and @uppy/svelte

    Some components, like Dashboard, require a peer dependency to work but since all components were exported from a single file you were forced to install all peer dependencies. Even if you never imported, for instance, the status bar component.

    Every component that requires a peer dependency has now been moved to a subpath, such as @uppy/react/dashboard, so you only need to install the peer dependencies you need.

    Example for @uppy/react:

    Before:

    import { Dashboard, StatusBar } from "@uppy/react";

    Now:

    import Dashboard from "@uppy/react/dashboard";
    import StatusBar from "@uppy/react/status-bar";

Patch Changes

  • Updated dependencies [d301c01]
  • Updated dependencies [c5b51f6]
    • @uppy/utils@7.0.0
    • @uppy/thumbnail-generator@5.0.0
    • @uppy/provider-views@5.0.0
    • @uppy/core@5.0.0

Don't miss a new uppy release

NewReleases is sending notifications on new releases.