All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
2.2.0 - 2020-03-13
- The
limit
prop to support setting how many results to return.
2.1.1 - 2019-09-23
- Correctly pass down the
searchPlaceholder
prop.
2.1.0 - 2019-09-19
- The
searchPlaceholder
prop for configuring the placeholder on the search input.
2.0.0 - 2019-09-13
- Renamed the
safesearch
param on the component tocontentFilter
.
1.5.0 - 2019-09-12
- The
locale
,mediaFilter
, andsafesearch
props.
- Switch to TypeScript for development.
- Do not fire off autocomplete and suggestion requests when the search is blank but you have
defaultResults
selected.
1.4.0 - 2019-08-09
- The
autoFocus
prop to focus on the input when the component mounts. - The
defaultResults
prop to display trending results in empty search.
- No longer rely on
fetch
being available. - [INTERNAL] Refactor Client.js to be simpler.
- Ensure
pointer
cursor on pagination controls. - Align typeahead text with current text.
1.3.2 - 2019-06-07
- Use the
prepublishOnly
npm script so that thedist
directory does not need to be checked into the repository.
1.3.1 - 2019-06-07
- Properly rebuild dist.
1.3.0 - 2019-06-06
- The
initialSearch
prop.
1.2.1 - 2019-06-05
- Rebuilt dist with correct capitalization of file names.
1.2.0 - 2019-05-22
- Switched to using
@culturehq/scripts
for development. - Added
:focus
styles for relevant components for better keyboard support.
1.1.0 - 2018-10-03
- Type ahead through the use of Tenor's autocomplete feature.
- Suggestions are now rendered through the user of Tenor's suggestions feature.
- Pagination is now supported. Additionally you can use the meta-key plus left arrow and right arrow to go between pages.
- Now encoding the URI being sent to tenor to ensure it's a valid URL.
- If you click outside the component, the component now knows about that click and closes the selector.
- The search bar is now of type "search" which builds in some nicities from the browsers that support it.
- Added better accessibility support by properly naming the GIF buttons.
- Load preview GIFs in the background and then set them to fade in once they are loaded.
1.0.0 - 2018-09-26
- The optional
contentRef
prop to get access to the actual div that is being rendered. - The optional
base
prop that will specify the base of the API for the search URLs that are generated. - The
focus()
function on the main component to allow consumers to focus into the input field.
- Removed the style import by default. It's now up to the consumers of this package to import
react-tenor/dist/styles.css
into their applications. This avoids a lot of weird webpack bugs.
0.2.0 - 2018-07-18
- Don't build the final distribution with
webpack
, just usebabel
. - Rename
example
todocs
so we can publish to github pages.