Socket
Socket
Sign inDemoInstall

@search-api-decoupled/ui

Package Overview
Dependencies
29
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @search-api-decoupled/ui

UI elements for the drupal search-api-decoupled ecosystem


Version published
Weekly downloads
356
increased by6.27%
Maintainers
3
Created
Weekly downloads
 

Readme

Source

Search API decoupled / ui

This is a UI component library for the Search API decoupled client.

It's built with CSS and Typescript.

The components expect to find a specific id attribute on divs, then they will use those divs as entrypoints, getting the rest of attributes as data and rendering the component. Those components are expected to throw events in order to interact with the client.

The client @search-api-decoupled/client will provide the data and the entrypoints, it will follow specific interfaces for each type of element and widget. All the components should follow those interfaces in order to work with the client.

These components will be consumed as libraries in the search api decoupled ui drupal module in order to provide ui elements to the client.

Local Setup

  1. Cloning the monorepo:
    • git clone git@git.drupal.org:project/search_api_decoupled_client_ui.git
  2. Install app dependencies:
    • nvm use && npm i
  3. Development:
    • use npm run dev to run the dev env with the elements introduced in a simple html file
    • you can adapt the index.html in order to add or remove attributes to the mocked elements
    • it's recommended to actually test changes on this package using the client dev env
      • check the client repository
      • clone it next to this repository
      • on package.json change the dependency to use the local version of this package using file:../search_api_decoupled_client_ui

FAQs

Last updated on 19 Feb 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc