
Security News
Google’s OSV Fix Just Added 500+ New Advisories — All Thanks to One Small Policy Change
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.
@translated/react-filters-bar
Advanced tools
A module that encloses the UX abstraction to create a dynamic filters bar.
A module that encloses the UX abstraction to create a dynamic filters bar.
yarn add @translated/react-filters-bar
import {FiltersBar, FiltersPicker} from '@translated/react-filters-bar'
export function Anatomy() {
return (
<FiltersBar
filtersDef={{
fruit: (
<UseFilter>
{({data, setValue, setOperator, remove}) => (
<div>
<div>Fruit filter</div>
<select
value={data.operator}
onChange={(e) => {
setOperator(e.currentTarget.value)
}}
>
<option value="eq">is</option>
<option value="neq">is not</option>
</select>
<select
value={data.value}
onChange={(e) => {
setValue(e.currentTarget.value)
}}
>
<option value="apple">Apple</option>
<option value="grape">Grape</option>
<option value="banana">Banana</option>
<option value="ananas">Ananas</option>
</select>
<button onClick={remove}>Remove</button>
</div>
)}
</UseFilter>
),
// ... add as many filter definitions you may need.
}}
>
<FiltersBar.Filters />
<FiltersPicker valuesMap={{fruit: 'Fruit' /* ... */}}>
<FiltersPicker.Trigger />
<FiltersPicker.Popover>
<FiltersPicker.Search />
<FiltersPicker.List>
{(matches) => (
<>
{matches.map((match) => (
<FiltersPicker.Item key={match} value={match} />
))}
</>
)}
</FiltersPicker.List>
</FiltersPicker.Popover>
</FiltersPicker>
</FiltersBar>
)
}
In the future the library will export more convenient primitives for defining Filters, like:
RemoveButton
OperatorPicker
ChoicePicker
SearchPicker
DatePicker
FAQs
A module that encloses the UX abstraction to create a dynamic filters bar.
We found that @translated/react-filters-bar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.
Research
/Security News
175 malicious npm packages (26k+ downloads) used unpkg CDN to host redirect scripts for a credential-phishing campaign targeting 135+ organizations worldwide.
Security News
Python 3.14 adds template strings, deferred annotations, and subinterpreters, plus free-threaded mode, an experimental JIT, and Sigstore verification.