Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
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
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.
sanity install 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 © Simeon Griggs See LICENSE
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 7,744 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.