
Security News
/Research
npm Phishing Email Targets Developers with Typosquatted Domain
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.
@contentful/field-editor-shared
Advanced tools
This package contains shared code (components, utilities, test utilities) that is used by all other field editor packages.
This package contains shared code (components, utilities, test utilities) that is used by all other field editor packages.
The most useful component for developing any kind of apps is FieldConnector
that helps you to subscribe to field changes in a convenient way.
Checkout a simple implementation of an app for Boolean
field:
import { FieldConnector } from '@contentful/field-editor-shared';
<FieldConnector<boolean> field={sdk.field}>
{({ disabled, value, setValue }) => {
return (
<div>
<div>{value ? 'I am true' : 'I am false'}</div>
<button onClick={() => {
setValue(!value)
}}>
toggle
</button>
</div>
)
}}
</FieldConnector>
FAQs
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
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.
Security News
Knip hits 500 releases with v5.62.0, refining TypeScript config detection and updating plugins as monthly npm downloads approach 12M.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.