January 2020 Release (v2.7968)

This page summarizes the improvements, new features, and bug fixes introduced in the January 2020 Release (initially released as v2.7968.7).

You can get the latest version of this release (v2.7968.18):

  • From Github (2.7968.18)
  • From npm (npm install coveo-search-ui@2.7968.18)
  • From the Coveo CDN:
Resource1 Script to include
CSS (minified)

With SRI:

<link rel="stylesheet" href="https://static.cloud.coveo.com/searchui/v2.7968/18/css/CoveoFullSearch.min.css" integrity="sha512-tfvkdC1he/nwwFbCfPfFYa7PlN9aX+CEmmceZIQ8MHhgKAaW+CNnNaVSLTGc+Wsxmcz8Rj1vbLWguGG4JCuPGw==" crossorigin="anonymous" />

Without SRI:

<link rel="stylesheet" href="https://static.cloud.coveo.com/searchui/v2.7968/css/CoveoFullSearch.min.css" />
Framework (lazy loading, minified)

With SRI:2

<script class="coveo-script" src="https://static.cloud.coveo.com/searchui/v2.7968/18/js/CoveoJsSearch.Lazy.min.js" integrity="sha512-0q4jAyKUF9gV5Y6VoKHMjimfINgHT7ZHW2wgoqPdIRlQuOf36z8ySKwRV6vh3W+LbwRZ3nsfeCWAyWH1anNh1A==" crossorigin="anonymous"></script>

Without SRI:

<script class="coveo-script" src="https://static.cloud.coveo.com/searchui/v2.7968/js/CoveoJsSearch.Lazy.min.js"></script>
Templates

With SRI:

<script src="https://static.cloud.coveo.com/searchui/v2.7968/18/js/templates/templates.js" integrity="sha512-uW3NknXMN/BgHpDIGvg5cLvAN5ExL+hsyIz4o7q9oJtnIPZlG0rg5QM+YruoDwJx4P2jpV9vDyZpMJz2iLCs6w==" crossorigin="anonymous"></script>

Without SRI:

<script src="https://static.cloud.coveo.com/searchui/v2.7968/js/templates/templates.js"></script>

1: For additional resources, see CDN Links.

2: See Subresource Integrity.

Release Highlights

New Component: DynamicHierarchicalFacet

Issue numbers: JSUI-2519, JSUI-2807

The new DynamicHierarchicalFacet component works in a similar fashion to the CategoryFacet component, but also supports the Coveo Machine Learning (Coveo ML) Dynamic Navigation Experience (DNE) feature.

See Using Hierarchical Facets.

DynamicHierarchicalFacet Demo

New Component: StarRating

Issue number: SFINT-2649

The new StarRating result template component renders a five-star widget for use in commerce result templates.

<div class="CoveoResultList">
  <script class="result-template" type="text/html">
    <div class="coveo-result-frame">
      <div class="coveo-result-row">
        <div class="coveo-result-cell">
          <a class="CoveoResultLink"></a>
        </div>
        <div class="coveo-result-cell">
          <div class="CoveoFieldValue" data-field="@ccpricesale"></div>
        </div>
      </div>
      <div class="coveo-result-row">
        <div class="coveo-result-cell">
          <div class="CoveoImageFieldValue" data-field="@ccimage"
               data-height="75px">
        </div>
      </div>
      <div class="coveo-result-row">
        <div class="coveo-result-cell">
          <div class="CoveoFieldValue" data-field="@ccdescription"></div>
        </div>
      </div>
      <div class="coveo-result-row">
        <div class="coveo-result-cell">
          <div class="CoveoStarRating"
               data-rating-field="@ccratingaverage"></div>
        </div>
      </div>
    </div>
  </script>
</div>

StarRating Demo

CDN: Support Subresource Integrity

Issue number: JSUI-2783

From this version on, each hotfix release will be uploaded to a distinct CDN folder, and links to those resources will include the integrity and crossorigin attributes to support the Subresource Integrity (SRI) security feature.

CDN links without hotfix folders nor SRI will remain available.

See JavaScript Search Framework CDN Links.

New DynamicFacet Option: injectionDepth

Issue number: JSUI-2752

The DynamicFacet, DynamicFacetRange, and DynamicHierarchicalFacet components now have an injectionDepth option, allowing you to specify the number of items to scan for facet values.

See Using Dynamic Facets.

DynamicFacetRange: Support Currency Value Format

Issue number: JSUI-2656

The valueFormat option of the DynamicFacetRange component now supports the currency value, allowing you to display price ranges in commerce search interfaces.

By default, the component renders currency range values using the currency symbol associated with the currently loaded culture file. You can also specify the desired currencySymbol if needed.

Other Changes

Issue number Enhancement
JSUI-2359 [Analytics] Updated logCustomEvent method signature to support optional result parameter.
JSUI-2724 Use dynamic facets in default JavaScript Search Framework pages.
JSUI-2777 [Logo] Add target option.
JSUI-2781 [DynamicFacetManager] Take collapsedByDefault dynamic facet option into account.
Issue number Case Maintenance case
JSUI-2710 00057245 Fixed issue where “No Results” string localization was not applied when using eager component loading.
JSUI-2776 00057774 [Pager] Fixed issue where component would request more results than maximum allowed by index.
Issue number Bug fix
JSUI-2742 [DynamicFacetManager] Fixed issue where component would interact with incompatible embedded components.
JSUI-2788 [DynamicFacetManager] Fixed issue where component would consider values of non-embedded facets.

Additional Changes in Maintenance Versions

v2.7968.18

Issue number Case Maintenance case
JSUI-2863 00058762 Fixed issue where configuring history and using local storage was impossible in a standalone search interface.
Recommended Articles