Security News
vlt Debuts New JavaScript Package Manager and Serverless Registry at NodeConf EU
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
sanity-plugin-iframe-pane
Advanced tools
Display any URL in a View Pane, along with helpful buttons to Copy the URL or open in a new tab
This is a Sanity Studio v3 plugin. For the v2 version, please refer to the v2-branch.
Display any URL in a View Pane, along with helpful buttons to Copy the URL or open in a new tab.
Accepts either a string or an async function to resolve a URL based on the current document.
npm install --save sanity-plugin-iframe-pane
or
yarn add sanity-plugin-iframe-pane
This is designed to be used as a Component inside of a View.
// ./src/deskStructure.js
import Iframe from 'sanity-plugin-iframe-pane'
// ...all other list items
S.view
.component(Iframe)
.options({
// Required: Accepts an async function
url: (doc) => resolveProductionUrl(doc),
// OR a string
url: `https://sanity.io`,
// Optional: Set the default size
defaultSize: `mobile`, // default `desktop`
// Optional: Add a reload button, or reload on new document revisions
reload: {
button: true, // default `undefined`
revision: true, // default `undefined`
},
})
.title('Preview')
MIT-licensed. See LICENSE.
This plugin uses @sanity/plugin-kit with default configuration for build & watch scripts.
See Testing a plugin in Sanity Studio on how to run this plugin with hotreload in the studio.
Run "CI & Release" workflow. Make sure to select the studio-v3 branch and check "Release new version".
Semantic release will only release on configured branches, so it is safe to run release on any branch.
FAQs
Display any URL in a View Pane, along with helpful buttons to Copy the URL or open in a new tab
The npm package sanity-plugin-iframe-pane receives a total of 12,611 weekly downloads. As such, sanity-plugin-iframe-pane popularity was classified as popular.
We found that sanity-plugin-iframe-pane demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 47 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
Security News
Research
The Socket Research Team uncovered a malicious Python package typosquatting the popular 'fabric' SSH library, silently exfiltrating AWS credentials from unsuspecting developers.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.