Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
ebay-items-react-widget
Advanced tools
Lightweight, responsive and fully customizable component for React applications to surface a rich selection of items for buyers.
Lightweight, responsive and fully customizable component for React applications to surface a rich selection of items for buyers.
Note: The item search is powered by eBay Browse API.
eBay Items Widget is a fully customizable React component that allows you to surface a rich collection of eBay items in your React application.
This component provides a responsive UI experience with four different layouts:
It comes with a ready to use example and a NodeJS express server to bootstrap integration with eBay Browse API.
- NodeJS (for the example): v12.16 or higher
- NPM: v7.5.6 or higher/Yarn: v1.22.10 or higher
Using npm:
npm install ebay-items-react-widget
Using yarn:
yarn add ebay-items-react-widget
Before when running the example, make the following updates to the options.js file:
Prop | Description | Type | Default | Required |
---|---|---|---|---|
carouselOptions | Carousel options (only applicable when defaultView is "carousel" or "multi-item-carousel") | Object | { animation: "slide", autoPlay: false, interval: 4000, indicators: false, navButtonsAlwaysInvisible: false, navButtonsAlwaysVisible: false, stopAutoPlayOnHover: false } | N |
charityIds | The Charity ID(s) are used to limit the results to only items associated with the specified charity | String | "" | N |
defaultView | Default view for the widget (carousel/multi-item-carousel/gallery/list) | String | gallery | N |
disableImageSearch | Hides the image search button | Boolean | false | N |
errorMessage | Overrides the error message | String | "" | N |
imageSearchEndpoint | Backend URL for image search | String | "" | Y |
limit | Number of items surfaced (documentation) | Integer | 50 | N |
marketplaceId | Marketplace in which the items would be searched. (supported marketplaces) | String | EBAY_US | N |
searchEndpoint | Backend URL for keyword search | String | "" | Y |
searchKeyword | Default search keyword (Note: Triggers search call on page load) | String | "" | N |
hideErrors | When passed this will hide the error message alerts | Boolean | false | N |
hideSearchBar | Hide the search bar | Boolean | false | N |
hideSortOptions | Hide the sort options button | Boolean | false | N |
hideSettings | Hide the settings button | Boolean | false | N |
hideTotal | Hide the total button | Boolean | false | N |
hideViewOptions | Hide the view options button | Boolean | false | N |
hideWarnings | When passed this will hide the warning message alerts | Boolean | false | N |
warningMessage | Overrides the warning messages | String | "" | N |
import EbayItemsWidget from 'ebay-items-react-widget';
<EbayItemsWidget
carouselOptions={{
animation: 'slide',
autoPlay: true,
interval: 5000,
indicators: false,
stopAutoPlayOnHover: true
}}
defaultView="multi-item-carousel"
imageSearchEndpoint="http://localhost:3001/search_by_image"
searchEndpoint="http://localhost:3001/search"
searchTerm="Sneakers"
/>
Using npm:
npm start
Using yarn:
yarn start
Configuration Sample: options.js.
For production, please host with HTTPS enabled.
Uses standard console logging.
Copyright 2021 eBay Inc. Developer: Lokesh Rishi
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
FAQs
Lightweight, responsive and fully customizable component for React applications to surface a rich selection of items for buyers.
We found that ebay-items-react-widget demonstrated a not healthy version release cadence and project activity because the last version was released 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.