Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
behold-preact
Advanced tools
This package contains a Preact version of the Behold embedded widget. It is a lightweight convenience wrapper around the core Behold widget web component, and allows easy integration into your Preact projects.
Start by installing with your package manager of choice:
npm install @behold/preact
// or
pnpm add @behold/preact
// or
yarn add @behold/preact
import BeholdWidget from "@behold/preact"
Use it like you would any other Preact component:
<BeholdWidget feedId="YOUR_FEED_ID" />
The Behold widget component accepts a single property: feedId
, which can be found by opening your feed in the Behold dashboard and clicking on "Embed Code".
All configuration and customization is handled in the Behold admin. When you make changes there it will automatically update your widget, no code modifications required. Because of browser caching, changes can take a minute or two to show up. Clearing your cache and incognito/private windows will help.
This component emits a load event after its initial render. It can be used as follows:
<BeholdWidget onLoad={() => console.log("Loaded!")} feedId="YOUR_FEED_ID" />
Because these widgets are inherantly dynamic in nature, they are client-side only, and won't be pre-rendered by SSR or SSG. That means there will be a moment before they render that their height will be 0px. You can prevent layout shifts this may cause by applying dimensions to a container element with CSS.
FAQs
The official Behold Widget for Preact
The npm package behold-preact receives a total of 0 weekly downloads. As such, behold-preact popularity was classified as not popular.
We found that behold-preact demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.