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

0.4.0 • 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.1.latest.min.js"></script>

Sample usage

import oneschemaFileFeeds from "@oneschema/filefeeds"

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

osff.launch()

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

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

osff.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

    41

    Version

    0.4.0

    License

    MIT

    Unpacked Size

    701 kB

    Total Files

    27

    Last publish

    Collaborators

    • 20michaelz
    • behnam-oneschema
    • andrewjluo