|
Function |
Description |
|---|---|
|
A component that displays the alternative verticals that have results if a search returns none on the current vertical. | |
|
A higher-order component which provides analytics for its children. | |
|
A component that displays a list of filters applied to the current vertical search, which may include any selected options from facets, NLP filters, and field value static filters. | |
|
Runs a vertical search. By default has | |
|
DirectAnswer({ customCssClasses, UnknownFieldTypeDisplay }, input) |
Renders Direct Answers provided by the Search API. |
|
A wrapper component for specifying a DropdownItemWithIndex. The index will be automatically provided by the Dropdown component instance. | |
|
Executes a universal/vertical autocomplete search and return the corresponding response. | |
|
Executes a generative direct answer and return the corresponding response. | |
|
Executes a universal/vertical search. | |
|
A component that displays all facets applicable to the current vertical search. | |
|
A divider component used to separate NumericalFacets, HierarchicalFacets, StandardFacets, and StaticFilters. | |
|
A component which allows a user to search for filters associated with specific entities and fields. | |
|
Displays the AI generated answer of a generative direct answer. | |
|
A React Component which collects location information to create a location filter and perform a new search. | |
|
Get search intents of the current query stored in headless using autocomplete request. | |
|
Retrieves user's location using navigator.geolocation API. | |
|
A component that displays a single hierarchical facet, in a tree level structure, applicable to the current vertical search. Use this to override the default rendering. | |
|
A component that displays hierarchical facets, in a tree level structure, applicable to the current vertical search. | |
|
Type guard for CtaData. | |
|
LocationBias({ geolocationOptions, customCssClasses }, input) |
A React Component which displays and collects location information in order to bias searches. |
|
A component that renders a map with markers to show result locations using Mapbox GL. | |
|
A component that displays a single numerical facet. Use this to override the default rendering. | |
|
A component that displays numerical facets applicable to the current vertical search. | |
|
Renders a component that divide a series of vertical results into chunks across multiple pages and enable user to navigate between those pages. | |
|
renderHighlightedValue(highlightedValueOrString, customCssClasses) |
Renders a HighlightedValue with highlighting based on its matchedSubstrings. |
|
Renders results count of a universal/vertical search. | |
|
Renders a SearchBar that is hooked up with an InputDropdown component. | |
|
A higher-order component which provides translations for search react components. | |
|
Renders a suggested query if the Search API provides one. | |
|
This Component renders the base result card. | |
|
A component that displays a single standard facet. Use this to override the default rendering. | |
|
A component that displays simple facets applicable to the current vertical search. | |
|
A component that displays all the results for a vertical using a standard section template. | |
|
A component that displays a group of user-configured field value filters that will be applied to the current vertical search. | |
|
Renders a quality feedback widget composed of thumbs up and thumbs down buttons. | |
|
UniversalResults({ verticalConfigMap, showAppliedFilters, customCssClasses }, input) |
Displays the results of a universal search with the results for each vertical separated into sections. |
|
updateLocationIfNeeded(searchActions, intents, geolocationOptions) |
If the provided search intents include a 'NEAR_ME' intent and there's no existing user's location in state, retrieve and store user's location in headless state. |
|
Returns a service that can be used to report analytics events. | |
|
Creates a memoized function for reporting card analytics. | |
|
Creates a memoized function for reporting card feedback analytics. | |
|
useComposedCssClasses(builtInClasses, customClasses, disableBuiltInClasses) |
useComposedCssClasses merges a component's built-in tailwind classes with custom tailwind classes. |
|
A component that renders search results for a vertical page. |
|
Interface |
Description |
|---|---|
|
The parameters that are passed into FilterSearchProps.afterDropdownInputFocus. | |
|
The CSS class interface used for AlternativeVerticals(). | |
|
Props for AlternativeVerticals(). | |
|
The CSS class interface used for AppliedFilters(). | |
|
Properties for AppliedFilters(). | |
|
The CSS class interface for ApplyFiltersButtonProps. | |
|
Props for ApplyFiltersButton() | |
|
The CSS class interface for the Autocomplete Result. | |
|
The props provided to every CardComponent. | |
|
Props for citation card. | |
|
Props for citations component. | |
|
Coordinate use to represent the result's location on a map. | |
|
The shape of a StandardCard CTA field's data. | |
|
The CSS class interface for DirectAnswer(). | |
|
Props for DirectAnswer(). | |
|
The CSS class interface for Facets(). Any FilterGroupCssClasses props will be overridden by the same props from customCssClasses on StandardFacetProps, NumericalFacetProps, or HierarchicalFacetProps. | |
|
Props for the Facets() component. | |
|
The CSS class interface for FilterGroup. | |
|
Props for the FilterGroup component. | |
|
The configuration data for a field value filter option. | |
|
The CSS class interface for FilterSearch(). | |
|
The props for the FilterSearch() component. | |
|
Payload for click events fired on a generative direct answer card. | |
|
The CSS class interface used for GenerativeDirectAnswer(). | |
|
Props for GenerativeDirectAnswer(). | |
|
The CSS class interface for the Geolocation component. | |
|
The props for the Geolocation component. | |
|
The CSS class interface for HierarchicalFacetDisplay. | |
|
Props for the StandardFacet() component. | |
|
The CSS class interface for HierarchicalFacets(). | |
|
Props for the HierarchicalFacets() component. | |
|
The CSS class interface for renderHighlightedValue(). | |
|
The CSS class interface for the LocationBias() component. | |
|
The props for the LocationBias() component. | |
|
A library-owned map bounds interface for drag and zoom callbacks. | |
|
The subset of map configuration supported by this component. | |
|
Props for the MapboxMap() component. The type param "T" represents the type of "rawData" field of the results use in the map. | |
|
A map center coordinate with helper methods that are owned by this library. | |
|
Options used when fitting the map view to a set of bounds. | |
|
A library-owned facade over the backing map implementation. | |
|
Marker options supported by this component. | |
|
Padding around a fit-bounds request. | |
|
Props for the StandardFacet() component. | |
|
The CSS class interface for NumericalFacets(). | |
|
Props for the NumericalFacets() component. | |
|
The parameters that are passed into FilterSearchProps.onDropdownInputChange. | |
|
The parameters that are passed into FilterSearchProps.onSelect. | |
|
The CSS classes used for pagination. | |
|
Props for Pagination() component | |
|
The CSS class interface for RangeInput. | |
|
The CSS class interface for ResultsCount(). | |
|
Props for ResultsCount(). | |
|
An interface representing the configuration for search analytics reporting. | |
|
A service for reporting Yext Search analytics events | |
|
The CSS class interface for the SearchBar(). | |
|
The props for the SearchBar() component. | |
|
The CSS class interface used for the SectionHeader component. | |
|
The configuration of a section template for a vertical's results on a universal page. | |
|
The CSS Class interface for SpellCheck. | |
|
The props for the SpellCheck() component. | |
|
The CSS class interface used for the StandardCardDisplay. | |
|
The data used by the StandardCard() and taken from the original Result. | |
|
Props for a StandardCard. | |
|
Props for the StandardFacet() component. | |
|
The CSS class interface for StandardFacets(). | |
|
Props for the StandardFacets() component. | |
|
The CSS class interface used for StandardSection(). | |
|
The configuration for a StandardSection. | |
|
The CSS class interface for StaticFilters(). | |
|
Props for the StaticFilters() component. | |
|
The CSS class interface used for ThumbsFeedback(). | |
|
Props for ThumbsFeedback(). | |
|
The CSS class interface used for UniversalResults(). | |
|
Props for UniversalResults(). | |
|
Props for UnknownFieldTypeDisplayComponent. | |
|
The configuration for a vertical. | |
|
A map of vertical keys to labels. | |
|
Data needed to create a URL to a vertical search page. | |
|
The CSS class interface used for VerticalResults(). | |
|
Props for the VerticalResults component. | |
|
The configuration options for Visual Autocomplete. |
|
Variable |
Description |
|---|---|
|
Content path to the source files in component library that utilizes Tailwind class names. This is intended to be used in user's custom tailwind config. |
|
Type Alias |
Description |
|---|---|
|
The data types use to construct the payload in the analytics event. | |
|
Analytics event types for interactions on a card. | |
|
A functional component that can be used to render a result card. | |
|
Analytics event types for cta click, title click, and citation click. | |
|
A function use to derive a result's coordinate. | |
|
The default type for "rawData" field of type Result. | |
|
Props for the DropdownItem(). | |
|
Props for a single facet component. | |
|
Analytics event types for quality feedback. | |
|
The data associated with the currently focused item. | |
|
A function which is called when the user changes the map viewport. | |
|
The interface of a function which is called on a search. | |
|
A functional component that can be used to render a custom marker on the map. | |
|
Props for rendering a custom marker on the map. | |
|
The type of a functional React component which renders entity previews using a map of vertical key to the corresponding VerticalResults data. | |
|
SearchI18next translation overrides The key is the locale to override. The value is the translation object that define specific translations override. | |
|
A component that can be used to render a section template for vertical results. | |
|
The configuration data for a field value static filter option. | |
|
A React component interface to render results with "unknown" field type in field value direct answer. | |
|
A map of verticalKey to a VerticalConfig. |