@uppy/provider-views
TypeScript icon, indicating that this package has built-in type declarations

3.11.0 • Public • Published

@uppy/provider-views

Uppy logo: a smiling puppy above a pink upwards arrow

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.

/@uppy/provider-views/

    Package Sidebar

    Install

    npm i @uppy/provider-views

    Homepage

    uppy.io

    Weekly Downloads

    170,294

    Version

    3.11.0

    License

    MIT

    Unpacked Size

    301 kB

    Total Files

    69

    Last publish

    Collaborators

    • mifi
    • aduh95
    • kvz
    • tim-kos
    • murderlon