Skip to content

Commit

Permalink
Merge pull request #448 from yext/hotfix/v1.6.1
Browse files Browse the repository at this point in the history
Version 1.6.1
  • Loading branch information
Fondryext authored Jul 10, 2024
2 parents 2c1016e + 04d659c commit 4392164
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 10 deletions.
Binary file modified .storybook/snapshots/__snapshots__/mapboxmap--custom-pin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .storybook/snapshots/__snapshots__/mapboxmap--multiple-pins.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .storybook/snapshots/__snapshots__/mapboxmap--primary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion THIRD-PARTY-NOTICES
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

The following NPM package may be included in this product:

- @yext/search-headless@2.5.0
- @yext/search-headless@2.5.1

This package contains the following license and notice below:

Expand Down
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yext/search-ui-react",
"version": "1.6.0",
"version": "1.6.1",
"description": "A library of React Components for powering Yext Search integrations",
"author": "slapshot@yext.com",
"license": "BSD-3-Clause",
Expand Down
1 change: 1 addition & 0 deletions src/components/Pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export function Pagination(props: PaginationProps): JSX.Element | null {
const navigateToPage = useCallback((newPageNumber: number) => {
const newOffset = limit * (newPageNumber - 1);
searchActions.setOffset(newOffset);
searchActions.setIsPagination(true);
executeSearch(searchActions);
reportAnalyticsEvent(newPageNumber, currentPageNumber, maxPageCount);
}, [searchActions, limit, maxPageCount, currentPageNumber, reportAnalyticsEvent]);
Expand Down
2 changes: 2 additions & 0 deletions tests/components/Pagination.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const mockedState: Partial<State> = {

const mockedActions = {
state: mockedState,
setIsPagination: jest.fn(),
setOffset: jest.fn(),
executeVerticalQuery: jest.fn()
};
Expand Down Expand Up @@ -157,6 +158,7 @@ describe('results are returned from search', () => {
// navigate to the last results page
await userEvent.click(screen.getByText(`${mockedResultsCount}`));
expect(actions.setOffset).toHaveBeenCalledWith(mockedResultsCount - 1);
expect(actions.setIsPagination).toHaveBeenCalledWith(true);
expect(actions.executeVerticalQuery).toHaveBeenCalledTimes(1);
});
});
Expand Down

0 comments on commit 4392164

Please sign in to comment.