@groupby/elements-search-driver-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

GroupBy Elements Search Driver Plugin

This package contains the GB Elements Search Driver plugin.

Prerequisites

This plugin depends on the following plugins:

  • dom_events
  • search

These plugins must be registered either before or in the same batch as this plugin.

Usage

To use the plugin, simply instantiate it and register it with Core:

const searchDriverPlugin = new SearchDriverPlugin();
core.register(searchDriverPlugin);

This plugin currently does not accept any options.

Events

This plugin listens for and dispatches a number of events. These events are defined in the @groupby/elements-events package.

Received

  • SEARCH_REQUEST: When received, a search request to the GroupBy API is made. A SEARCH_RESPONSE event is dispatched with the results.

Dispatched

  • SEARCH_RESPONSE: Dispatched when a search request has completed. Its payload is the result of the request.
  • SEARCH_ERROR: Dispatched when an error has occurred during a search request.
  • BEACON_SEARCH: Dispatched when a search is made sucessfully. Its payload contains the search results and the origin of the action that triggered the search. This is listened to by our GbTrackerPlugin and can be listened to by any other custom trackers.

Readme

Keywords

none

Package Sidebar

Install

npm i @groupby/elements-search-driver-plugin

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

44.1 kB

Total Files

25

Last publish

Collaborators

  • mykola_bova
  • adruzhkin-gbi
  • anton.shakhlovich
  • artem_konstantinov
  • andzinchenko
  • yberkut-gbi
  • romangbi
  • francoisvongue
  • gleb.bondarenko.gb
  • pavel-shakhlovich
  • jonapgar-groupby
  • kseniya.kondrashevich
  • owengbi
  • yanishgbi
  • jasonwelsh
  • groupby-ops
  • groupby-ci
  • groupbyops
  • daniel-moniz-gbi
  • johanntutorgbi
  • dmytro-kyiashko
  • roman.lis