uppy/packages/@uppy/provider-views
2021-10-27 17:53:11 +02:00
..
src Make @uppy/unsplash production ready (#3196) 2021-10-01 16:31:58 +02:00
types tools: enable linter for TypeScript (#2997) 2021-07-13 14:28:14 +02:00
LICENSE Move ProviderView to @uppy/provider-views. 2018-06-14 16:31:19 +02:00
package.json meta: use workspace:^ instead of workspace:* (#3278) 2021-10-27 17:53:11 +02:00
README.md Add retext to markdown linter (#3024) 2021-10-14 16:10:45 +02:00

@uppy/provider-views

Uppy logo: a superman puppy in a pink suit

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.