Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@search-api-decoupled/client
Advanced tools
Readme
This app is meant to be UI agnostic search client for Search API decoupled module.
It's built with React and Typescript. And it expects to get layouts, regions, config, custom elements and results from the backend.
The app expects 3 interfaces:
window.drupalSettings.search_api_endpoint
: for the ui and app configThe rendering of elements is done using the tags provided by the backend or divs, on production, this app is totally independent and only expects the config, the backend responses and the layout markup.
The app will be used in the search api decoupled ui
drupal module in order to consume the search api decoupled backend module, anyhow, it could also be used in decoupled websites as a static asset, config should still be provided via window variable.
More documentation can be found in the wiki for the project: https://git.drupalcode.org/project/search_api_decoupled_client/-/wikis/home
You only need to follow these steps to get the app running in your local machine.
git clone git@git.drupal.org:project/search_api_decoupled_client.git
@search-api-decoupled/ui
is used@search-api-decoupled/wc-ui
as a default custom element librarypackage.json
and ensure you add the required js and css files in public/index.html
so they are available during developmentelements.ts
or use the decoupled
layout on the development server settingsnvm use && npm i
npm run dev
to mock the config (RECOMMENDED) (you can adapt it in elements.ts
and layouts.ts
)npm run start
to run the app without mocked config, you will need to set the window variable drupalSettings.search_api_endpoint
with the config you want to useFAQs
UI client for the drupal search-api-decoupled ecosystem
The npm package @search-api-decoupled/client receives a total of 310 weekly downloads. As such, @search-api-decoupled/client popularity was classified as not popular.
We found that @search-api-decoupled/client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.