Gathering detailed insights and metrics for select-posts-dropdown
Gathering detailed insights and metrics for select-posts-dropdown
Gathering detailed insights and metrics for select-posts-dropdown
Gathering detailed insights and metrics for select-posts-dropdown
A react component for listing and selecting wordpress posts using wp-api
npm install select-posts-dropdown
Typescript
Module System
Node Version
NPM Version
37.8
Supply Chain
52.6
Quality
66
Maintenance
50
Vulnerability
73.3
License
JavaScript (100%)
Total Downloads
3,405
Last Day
1
Last Week
3
Last Month
39
Last Year
575
GPL-3.0 License
34 Commits
2 Watchers
11 Branches
1 Contributors
Updated on Feb 08, 2023
Minified
Minified + Gzipped
Latest Version
0.0.15
Package Id
select-posts-dropdown@0.0.15
Unpacked Size
198.84 kB
Size
73.16 kB
File Count
8
NPM Version
6.4.1
Node Version
10.14.1
Cumulative downloads
Total Downloads
Last Day
-93.8%
1
Compared to previous day
Last Week
-81.3%
3
Compared to previous week
Last Month
-58.9%
39
Compared to previous month
Last Year
64.8%
575
Compared to previous year
A react component for listing and selecting wordpress posts using wp-api
SelectPostsDropdown is a React component to render a dropdown that will be populated with the posts, of the type specificed, and allows the user to search through items. This components takes care of updating the state of the dropdown menu and uses render props to fetch and then load the posts listed by title.
1 yarn install select-posts-dropdown
1import SelectPostsDropdown from 'select-posts-dropdown'; 2 3const PostDropdown = () => ( 4 <SelectPostsDropdown 5 onChange={ ( { id, title } ) => { 6 console.log( 'post selected', { id, title } ) 7 } } 8 /> 9);
The component accepts the following props. Props not included in this set will be applied to the element wrapping Popover content.
className of the outermost container
String
A callback invoked when a selection is made on the dropdown menu.
Function
The first argument of the callback is an object containing the following properties:
title
: The title of the postid
: The ID of the postThe values to load on initial render. These options will be replaced when the api call returns with data.
Array
The text to place into the dropdown on it's initial state when no selection is active
String
If Boolean
:: true, whenever a request is made from the wp-api the resulting posts are saving in a window object window.wpData.[postType]
If string
:: !empty, resulting posts data is saved to the window under this name (eg: data
== window.data)
Boolean
or string
true
The value to set the dropdown to after render.
String
Some text to place above the dropdown, if left empty no text will appear.
string
Limit to only this number of selected posts
number
GPL3 © Ken Eucker.
This project is inspired by the hard work of everyone at Auttomatic and their dedication to open source software.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/22 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
34 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More