Releases: sajari/sdk-react
v2.0.0
v1.5.1
Result summary now uses commas (or periods etc depending on locale) to split large numbers for readability.
When the response is cleared all current inflight search requests are discarded. Fixes a bug where results would show up after a user had cleared the search box.
v1.5.0
URLs are now decoded before being rendered.
PDF, DOC, DOCX, XML urls now show a filetype icon in results.
The <input>
element in AutocompleteDropdown
is now wrapped to allow further UI customisation through pseudo elements.
Error messages from the Sajari JS SDK are now logged to the console and presented to the user instead of a generic "An error has occurred" message. 403s are handled separately and show a friendly message to help devs/integrators.
Query time summary is now truncated to 1 significant decimal figure.
Upgraded dependencies
- Update Sajari JS SDK version to
0.20.0
.
v1.4.0
Added autocomplete-dropdown example.
Added components:
AutocompleteDropdown
AutocompleteDropdownBase
AutocompleteDropdownRenderer
AutocompleteSuggestion
AutocompleteSuggestions
Added classnames internal helper.
Renamed css classes:
sj-search-input-holder-outer
->sj-search-holder-outer
sj-search-input-holder-inner
->sj-search-holder-inner
Changed search box style to have rounded corners and be full width instead of fixed.
Fixed bug in Input
component causing it to always search on keypress.
v1.3.6
Renamed NoneTracking
to NoTracking
.
v1.3.5
Added NoneTracking
type.
v1.3.4
Fixed a bug in analytics caused by empty q value.
Fixed analytics using a string method not available in older browsers.
Fixed a spelling mistake in the Results component when displaying an error status.
v1.3.3
v1.3.0
Refactored Pipeline.search
:
- Changed type of first argument from
Values
to plainObject
(key-value pairs). - Removed
tracking
argument.
Added new Tracking
and ClickTracking
classes to setup click-tracking in requests and handle tracking/click-tracking events.
Added Analytics
adaptor which listens for Tracking
and Pipeline
events and consolidates them into analytics events which can be used to directly report behaviour to analytics systems.
Added GoogleAnalytics
class which converts Analytics
events into calls to Google Analytics, now enabled by default, but will only send events if GA is enabled on the page hosting your app.
Added DebugAnalytics
class which logs analytics events to the console.
Added preliminary tests for all components.
Added eslint
to build.