@oneschema/filefeeds
v0.5.2
Published
OneSchema FileFeeds embedding library
Downloads
2,022
Keywords
Readme
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.