![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@magento/ds-livesearch-storefront-utils
Advanced tools
The purpose of this project is to provide a dev-ready starting point for developers to implent the search popover. A user of this library should have a magento store instance.
The purpose of this project is to provide a dev-ready starting point for developers to implement the search popover. A user of this library should have a Commerce store instance.
const storeDetails: StoreDetailsProps = {
environmentId: <Storefront_ID>,
websiteCode: "base",
storeCode: "main_website_store",
storeViewCode: "default",
searchUnitId: searchUnitId,
config: {
minQueryLength: 5,
pageSize: 8,
currencySymbol: "$",
},
};
const searchApi = new LiveSearch(storeDetails);
const { performSearch, pageSize, minQueryLength, currencySymbol } = searchApi;
<FormWithPopover
performSearch={performSearch}
submitSearchRedirect={submitSearchRedirect}
pageSize={pageSize}
minQueryLength={minQueryLength}
currencySymbol={currencySymbol}
/>
const container = document.getElementById(selectorDetails.resultsSelector);
ReactDOM.render(
<AttachedPopover
performSearch={performSearch}
pageSize={pageSize}
minQueryLength={minQueryLength}
currencySymbol={currencySymbol}
formSelector={selectorDetails.resultsSelector}
inputSelector={selectorDetails.inputSelector}
/>,
container,
);
const {
active,
formProps,
formRef,
inputProps,
inputRef,
loading,
searchTerm,
results,
resultsRef,
setActive,
setLoading,
setResults,
setSearchTerm,
} = useAutocomplete(performSearch, minQueryLength);
You can run a local demo. In the project directory, you can run:
yarn dev
Runs the app in the development mode.
Open http://localhost:3000/v1/index.html to view it in the browser.
yarn test
Launches the test runner in the interactive watch mode.
See the section about
running tests for more
information.
yarn run build
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
This repo supports .story.mdx
and .story.tsx
stories!
MDX
stories allow you to create documentation for your component while also generating individual stories for each of the component's states that are mentioned within the documentation!
TSX
stories allows you to create stories for different states of your component but no documentation for it.
Feel free to file an issue or send me an email
FAQs
The purpose of this project is to provide a dev-ready starting point for developers to implent the search popover. A user of this library should have a magento store instance.
The npm package @magento/ds-livesearch-storefront-utils receives a total of 0 weekly downloads. As such, @magento/ds-livesearch-storefront-utils popularity was classified as not popular.
We found that @magento/ds-livesearch-storefront-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 13 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.