-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Features - Added support for React 18 (#423) - Added an optional `onDropdownInputChange` prop to `FilterSearch` (#421) ### Fixes - Addressed vulnerabilities (#422)
- Loading branch information
Showing
73 changed files
with
5,863 additions
and
2,479 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,36 @@ name: Run Tests | |
on: [push, pull_request] | ||
|
||
jobs: | ||
call_run_tests-react-18: | ||
uses: yext/slapshot-reusable-workflows/.github/workflows/run_tests.yml@v1 | ||
with: | ||
node_matrix: '["16.x", "18.x"]' | ||
secrets: | ||
MAPBOX_API_KEY: ${{ secrets.MAPBOX_API_KEY }} | ||
|
||
call_run_tests-react-17: | ||
uses: yext/slapshot-reusable-workflows/.github/workflows/run_tests.yml@v1 | ||
with: | ||
# We have to install these swc libraries manually because | ||
# the post install script doesn't seem to run properly | ||
# after we install specific versions of packages. | ||
# More info at https://github.com/swc-project/swc/issues/5616#issuecomment-1651214641 | ||
build_script: | | ||
npm i \ | ||
react@^17.0.2 \ | ||
react-dom@^17.0.2 \ | ||
@testing-library/react@^12.1.3 \ | ||
@testing-library/react-hooks@^8.0.0 | ||
npm install --save-optional \ | ||
"@swc/core-linux-arm-gnueabihf" \ | ||
"@swc/core-linux-arm64-gnu" \ | ||
"@swc/core-linux-arm64-musl" \ | ||
"@swc/core-linux-x64-gnu" \ | ||
"@swc/core-linux-x64-musl" \ | ||
"@swc/core-win32-arm64-msvc" \ | ||
"@swc/core-win32-ia32-msvc" \ | ||
"@swc/core-win32-x64-msvc" | ||
npm run build | ||
node_matrix: '["16.x", "18.x"]' | ||
secrets: | ||
MAPBOX_API_KEY: ${{ secrets.MAPBOX_API_KEY }} | ||
|
@@ -17,7 +44,20 @@ jobs: | |
uses: yext/slapshot-reusable-workflows/.github/workflows/run_tests.yml@v1 | ||
with: | ||
build_script: | | ||
npm i -D [email protected] [email protected] | ||
npm i \ | ||
react@^16.14 \ | ||
react-dom@^16.14 \ | ||
@testing-library/react@^12.1.3 \ | ||
@testing-library/react-hooks@^8.0.0 | ||
npm install --save-optional \ | ||
"@swc/core-linux-arm-gnueabihf" \ | ||
"@swc/core-linux-arm64-gnu" \ | ||
"@swc/core-linux-arm64-musl" \ | ||
"@swc/core-linux-x64-gnu" \ | ||
"@swc/core-linux-x64-musl" \ | ||
"@swc/core-win32-arm64-msvc" \ | ||
"@swc/core-win32-ia32-msvc" \ | ||
"@swc/core-win32-x64-msvc" | ||
npm run build | ||
node_matrix: '["16.x", "18.x"]' | ||
secrets: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-1.49 KB
(100%)
.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
BIN
+12.4 KB
(100%)
.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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -328,36 +328,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
|
||
----------- | ||
|
||
The following NPM packages may be included in this product: | ||
|
||
- @reach/[email protected] | ||
- @reach/[email protected] | ||
|
||
These packages each contain the following license and notice below: | ||
|
||
The MIT License (MIT) | ||
|
||
Copyright (c) 2018-2022, React Training LLC | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the "Software"), to deal in | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | ||
the Software, and to permit persons to whom the Software is furnished to do so, | ||
subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
----------- | ||
|
||
The following NPM package may be included in this product: | ||
|
||
- @react-aria/[email protected] | ||
|
@@ -2777,7 +2747,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI | |
|
||
The following NPM package may be included in this product: | ||
|
||
- [email protected].6 | ||
- [email protected].7 | ||
|
||
This package contains the following license and notice below: | ||
|
||
|
@@ -3195,7 +3165,7 @@ OTHER DEALINGS IN THE SOFTWARE. | |
|
||
The following NPM package may be included in this product: | ||
|
||
- [email protected].30 | ||
- [email protected].35 | ||
|
||
This package contains the following license and notice below: | ||
|
||
|
@@ -3357,40 +3327,39 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI | |
|
||
The following NPM package may be included in this product: | ||
|
||
- react-collapsed@3.6.0 | ||
- react-collapsed@4.1.2 | ||
|
||
This package contains the following license and notice below: | ||
|
||
MIT License | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2019-2020 Rogin Farrer | ||
Copyright (c) 2019-2023, Rogin Farrer | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the "Software"), to deal in | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | ||
the Software, and to permit persons to whom the Software is furnished to do so, | ||
subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
----------- | ||
|
||
The following NPM packages may be included in this product: | ||
|
||
- react-dom@17.0.2 | ||
- react-dom@18.2.0 | ||
- [email protected] | ||
- react@17.0.2 | ||
- scheduler@0.20.2 | ||
- react@18.2.0 | ||
- scheduler@0.23.0 | ||
- [email protected] | ||
|
||
These packages each contain the following license and notice below: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
docs/search-ui-react.filtersearchprops.ondropdowninputchange.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/search-ui-react](./search-ui-react.md) > [FilterSearchProps](./search-ui-react.filtersearchprops.md) > [onDropdownInputChange](./search-ui-react.filtersearchprops.ondropdowninputchange.md) | ||
|
||
## FilterSearchProps.onDropdownInputChange property | ||
|
||
A function which is called when the input element's value changes. Replaces the default behavior. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
onDropdownInputChange?: (params: OnDropdownInputChangeProps) => void; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/search-ui-react](./search-ui-react.md) > [MapboxMapProps](./search-ui-react.mapboxmapprops.md) > [renderPin](./search-ui-react.mapboxmapprops.renderpin.md) | ||
|
||
## MapboxMapProps.renderPin property | ||
|
||
Render function for a custom marker on the map. This function takes in an HTML element and is responible for rendering the pin into that element, which will be used as the marker. By default, the built-in marker image from Mapbox GL is used. This prop should not be used with [PinComponent](./search-ui-react.mapboxmapprops.pincomponent.md)<!-- -->. If both are provided, only PinComponent will be used. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
renderPin?: (props: PinComponentProps<T> & { | ||
container: HTMLElement; | ||
}) => void; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.