Antoine du Hamel cdeb560de2 add missing entries to changelog for individual packages (#4092) 2 years ago
..
src 4b666a6367 Reset filter input correctly in provider views (#3978) 2 years ago
types 5630f7dc07 tools: enable linter for TypeScript (#2997) 3 years ago
CHANGELOG.md cdeb560de2 add missing entries to changelog for individual packages (#4092) 2 years ago
LICENSE ac07bcf0cb Move `ProviderView` to `@uppy/provider-views`. 6 years ago
README.md 55e0ffd04a Add retext to markdown linter (#3024) 3 years ago
package.json be05bf97df Release: uppy@3.0.0 (#4031) 2 years ago

README.md

@uppy/provider-views

npm version CI status for Uppy tests CI status for Companion tests CI status for browser tests

View library for Uppy remote provider plugins.

Uppy is being developed by the folks at Transloadit, a versatile file encoding service.

Example

import Plugin from '@uppy/core/lib/plugin'
import { ProviderViews } from '@uppy/provider-views'

class GoogleDrive extends UIPlugin {
  install () {
    this.view = new ProviderViews(this)
    // snip
  }

  onFirstRender () {
    return Promise.all([
      this.provider.fetchPreAuthToken(),
      this.view.getFolder('root', '/'),
    ])
  }

  render (state) {
    return this.view.render(state)
  }
}

Installation

Unless you are creating a custom provider plugin, you do not need to install this.

$ npm install @uppy/provider-views

License

The MIT License.