@oneschema/filefeeds
TypeScript icon, indicating that this package has built-in type declarations

0.5.2 • Public • Published

OneSchema FileFeeds

A tool for embedding OneSchema FileFeeds into your application.

This library will give you convenient bindings to add an iframe to your application which can create new OneSchema FileFeeds and edit their transforms.

Getting Started

Installation

You can install this package with npm:

npm i --save @oneschema/filefeeds

or with a script tag:

<script src="https://d3ah8o189k1llu.cloudfront.net/oneschema-filefeeds-0.4.latest.min.js"></script>

Sample usage

import oneschemaFileFeeds from "@oneschema/filefeeds"

const fileFeeds = oneschemaFileFeeds({
  userJwt: "YOUR_USER_JWT",
  devMode: true,
  className: "oneschema-filefeeds",
})

fileFeeds.launch()

fileFeeds.on("init-failed", (data) => {
  // handle failures.
})

fileFeeds.on("init-succeeded", (data) => {
  // handle embedding session updates.
})

fileFeeds.on("saved", (data) => {
  // handle FileFeeds transforms being saved.
})

Documentation

Please see 📚 OneSchema's documentation for ▶️ Getting Started, 📒 API reference and other helpful guides.

/@oneschema/filefeeds/

    Package Sidebar

    Install

    npm i @oneschema/filefeeds

    Weekly Downloads

    433

    Version

    0.5.2

    License

    MIT

    Unpacked Size

    262 kB

    Total Files

    30

    Last publish

    Collaborators

    • brianbrianschema
    • 20michaelz
    • behnam-oneschema
    • andrewjluo