Minor Changes
-
54d543c: Experimental manager mode is now headless: a file library renders it with
useS3Manager. In manager mode the plugin no longer mounts into the Dashboard (no tab, no file drops, noreopenAfterUploadpanel), and closing a Dashboard panel no longer resets its state or aborts its requests.useS3Managerwarns when given a plugin in picker mode. Removed: the item detail dialog (opened by a click on a file) and S3'sgetPreviewUrl; the "Select multiple" toggle and the bulk-actions footer, with theselectionActiveplugin state andProviderView.toggleSelectionMode(); the core stringsopenFileNamed,itemsSelected,selectMultiple,cancelSelection,close,detailSize,detailTypeanddetailModified; and the--uppy-color-secondarytheming variable.useS3ManagerandcreateS3ManagerControllerno longer havestate.selectionActiveortoggleSelectionMode(): a headless UI keeps its own selection mode and clears the selection withcancelSelection().The
standaloneoption is removed: the Dashboard shows its "Import from …" bar with Cancel, and the panel its Log out row, again. TransloaditStorage plugins that relied onstandalonefor manager mode now start in picker mode: passmode: 'manager'.With the panel gone, so is what only it needed: the progress screen's Stop button (and the
stopOperationstring), and the busy state that disabled the header, filter and breadcrumbs during a long operation. Long operations, their progress text andcancelLongOperation()remain foruseS3Manager. Picker mode is unchanged, including the item menu, toolbar actions and dialogs that Transloadit Storage's picker actions use.If an app runs manager mode inside a Dashboard with
@uppy/s30.1.x or@uppy/transloadit-storage0.1.x, the panel will be empty once its^6.2.0range picks up@uppy/core6.3. Those plugins stay on 0.1.x, because a caret range on a 0.x version doesn't cross minors. Nothing throws. Render manager mode withuseS3Manager, or keep@uppy/coreon 6.2 until then. Picker mode is unaffected. -
a7a7997: Add an experimental
useS3Managerhook andcreateS3ManagerControllerfor@uppy/s3(and@uppy/transloadit-storage) in manager mode, so apps can render their own file manager instead of the ProviderView UI. ProviderView now exposessubmitDialog,cancelDialog,cancelLongOperation,canCancelOperationandgetDetailItemfor headless UIs, andtoggleCheckboxtakes the rows in the order the UI shows them for shift-click ranges. A range can span folders: each folder's checked state is recomputed.The hook and the controller are experimental: they can change incompatibly in a minor release of
@uppy/reactor@uppy/components. Pin them with~if you depend on them.In manager mode, selecting every loaded item of a folder no longer marks the folder as fully selected while it has more pages, so the next page doesn't come in selected and a bulk action can't reach files nobody saw.
Patch Changes
- 715eb80: Move the source map of the minified CSS into a separate file. The
.min.cssfiles, andimage-editor.cssin@uppy/components,@uppy/react,@uppy/vueand@uppy/svelte, embedded it inline and were larger than the unminified CSS. They now link to an external.css.mapinstead, at about half the gzipped size. - 78970b1: Add a README, so the npm page is no longer empty.