Skip to content

Releases: yext/search-ui-react

v1.4.0

08 Dec 23:29
Compare
Choose a tag to compare

Version 1.4.0

Changes

  • Added compatibility with PagesJS v1 (#400, #402, #404). As part of this change, support for Node 14 is dropped.

Fixes

  • Upgraded @babel/traverse version to address a vulnerability in the package (#409)

v1.4.0-beta.3

15 Nov 21:27
2d875e2
Compare
Choose a tag to compare
v1.4.0-beta.3 Pre-release
Pre-release

Features

  • PagesJS Compatibility (#400)

v1.3.4

13 Sep 18:06
bab403a
Compare
Choose a tag to compare

Bug fixes

  • Revert the introduction of "type": "module" from the package.json file due to issues with various integrations

v1.3.0

29 Jun 16:20
805f7fc
Compare
Choose a tag to compare

Version 1.3.0

Features

  • Introduce new Facet components including the new Facets (#360), StandardFacet (#370), NumericalFacet (#375), and HierarchicalFacet (#373) components which support more customizability than the previous Facet components.
  • Support the new RichTextV2 (Lexical) and Markdown fields which have been converted to HTML as FeaturedSnippetDirectAnswers (#379)
  • Remove the Yext logo from the search bar (#376)
  • Deprecate LocationBias (#338) component in favor of the new Geolocation component (#336)

Bug fixes

  • Improve the UX of the search bar when long autocomplete text is returned which includes the truncation of long text (#378)

v1.2.1

10 May 17:57
0e422b0
Compare
Choose a tag to compare

Changes

  • Drop React 18 support
  • Pin react-collapsed to v3.6.0 which doesn't support React 18

v1.2.0

10 May 15:45
5deaae3
Compare
Choose a tag to compare

Changes

Update the search-headless-react version to v2.2.0 which supports the environment and cloudRegion config options

v1.1.0

15 Dec 14:30
65ae41d
Compare
Choose a tag to compare

Features

  • Default behavior of FilterSearch was changed to better support Locators and Doctor Finders. Additionally, a new onSelect prop was added to the Component. The searchOnSelect prop is now deprecated. (#323, #343, #333)
  • A new CSS bundle without the Tailwind resets is exported. (#322)
  • We've added a MapboxMap Component, powered by v2 of their JavaScript API. (#332)

Changes

  • Assorted updates to improve our GH Actions.
  • Styling of Facet Headers is now exposed in FilterGroupCssClasses. (#321)

Bug Fixes

  • Vulnerabilities were addressed for the repo and its test-site.
  • Fixed the Dropdown Component to invoke preventDefault only when it is active. (#307)
  • Corrected a small error in the generation of SSR Hydration IDs. (#315)

v1.0.2

09 Nov 14:08
3976b59
Compare
Choose a tag to compare

Version 1.0.2

Bug Fixes

  • Address security vulnerabilities in ejs, async, and terser (#308)
  • Address security vulnerabilities in @xmldom/xmldom and loader-utils (#320, #326)

v1.0.1

18 Oct 16:28
64ea8d7
Compare
Choose a tag to compare

Fixes

  • This hot-fix resolves #294.

v1.0.0

08 Sep 21:29
7a139fb
Compare
Choose a tag to compare

Library Overview

This library provides a set of React Components to integrate Yext Search onto your site. These Components are easily incorporated into a new or existing React application. They are powered by an instance of Search Headless, provided to them via the SearchHeadlessProvider:

import { SearchHeadlessProvider, provideHeadless } from '@yext/search-headless-react';
import { SearchBar, UniversalResults } from '@yext/search-ui-react';

const config = {
  apiKey: '<apiKey>',
  experienceKey: '<experienceKey>',
  locale: 'en',
  experienceVersion: 'PRODUCTION',
}
const searcher = provideHeadless(config);

function App() {
  return (
    <SearchHeadlessProvider searcher={searcher}>
      <SearchBar />
      <UniversalResults />
    </SearchHeadlessProvider>
  );
}

export default App;

Using this Headless instance, Components perform actions such as setting a filter or executing a search. Component State is also connected to the relevant portions of Headless State.

Included Components

The following Components are made available by the library:

To explore these Components individually, you can access our Component Sandbox.

Using the Library

If you are using NPM 7+, you can install the components with the following command:

npm install @yext/search-ui-react

The @yext/search-headless-react peer dependency will be automatically installed.

If you are using NPM 6 or Yarn, you can install the library and its peer dependencies with this command:

npx install-peerdeps @yext/search-ui-react

The command will work with Yarn so long as NPM 6+ is installed on the machine.

Tailwind

The library uses Tailwind to provide minimal, out-of-the-box styling of the Components.

To use the Component Library's Styling without adding Tailwind to your project, add the following import:

import '@yext/search-ui-react/bundle.css'

If you have Tailwind already, you can add our styles to your tailwind.config.js:

const { ComponentsContentPath } = require('@yext/search-ui-react');
module.exports = {
  content: [ ComponentsContentPath ],
  // ... the rest of your tailwind config
};