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.
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>
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.
})
Please see 📚 OneSchema's documentation for