Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 1.3.0 #381

Merged
merged 26 commits into from
Jun 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
ee60b9f
Fix wcag github action mapbox issues (#337)
yen-tt Nov 17, 2022
3748b15
Deprecate LocationBias component (#338)
yen-tt Nov 17, 2022
c7e2d78
Fix visual coverage test in Github Actions (#339)
yen-tt Nov 18, 2022
ff5293e
Add Geolocation component (#336)
yen-tt Nov 18, 2022
2ce727e
Update Geolocation to remove all location fields (#344)
nmanu1 Dec 6, 2022
cc65e8b
add checks to fail combined-coverage tests after each part (#346)
tatimblin Dec 12, 2022
79732b1
Merge main (v1.1.0) into develop (#348)
nmanu1 Dec 15, 2022
3aeb9be
Use reusable workflow in sync_sites_branch (#349)
nmanu1 Dec 21, 2022
cb546c5
Pin react-collapsed to minor version (#350)
nmanu1 Jan 4, 2023
0583f8e
Add compatibility notes to README (#358)
nmanu1 Apr 10, 2023
bbf904b
Create Facets component (#360)
cea2aj May 1, 2023
96468cd
Update @yext/search-headless-react Version (#362)
EmilyZhang777 May 8, 2023
4245636
Prepare version 1.2.0 (#365)
cea2aj May 9, 2023
9597e9a
Add Singular StandardFacet (#370)
EmilyZhang777 May 12, 2023
f936f9b
Add Numerical Facet (#372)
EmilyZhang777 May 16, 2023
e9183f3
Add HierarchicalFacet (#373)
EmilyZhang777 May 23, 2023
0041b9d
Bump Version to 1.3.0-beta.0 (#374)
EmilyZhang777 May 24, 2023
98f98e4
Add Facets Level Css Support for FilterGroup (#375)
EmilyZhang777 May 30, 2023
84306bf
Remove logo searchbar (#376)
saahithjanapati Jun 8, 2023
2c63584
truncate search autcomplete results and prevent resizing (#378)
saahithjanapati Jun 13, 2023
beb792a
add support to display richtextv2 and markdown that has been converte…
saahithjanapati Jun 28, 2023
51763af
fix merge conflict
cea2aj Jun 29, 2023
b52c016
notices file
cea2aj Jun 29, 2023
ffc1ffb
fix test site package-lock
cea2aj Jun 29, 2023
f585cd9
Merge main (v1.2.1) into develop (#369)
cea2aj Jun 29, 2023
22bc73f
Prepare version 1.3.0 (#380)
cea2aj Jun 29, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This workflow will run our tests, generate an lcov code coverage file,
# and send that coverage to Coveralls
# and send that coverage to Coveralls

name: Code Coverage

Expand Down
27 changes: 9 additions & 18 deletions .github/workflows/sync-sites-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,12 @@ on:
- main

jobs:
sync-branches:
runs-on: ubuntu-latest
name: Syncing branches
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: devmasx/merge-branch@v1.4.0
with:
type: now
from_branch: ${{ github.event.repository.default_branch }}
target_branch: storybook-site
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: devmasx/merge-branch@v1.4.0
with:
type: now
from_branch: ${{ github.event.repository.default_branch }}
target_branch: test-site
github_token: ${{ secrets.GITHUB_TOKEN }}
call_sync_branches:
strategy:
matrix:
target_branch: ["storybook-site", "test-site"]
uses: yext/slapshot-reusable-workflows/.github/workflows/sync_default_branch.yml@v1
with:
target_branch: ${{ matrix.target_branch }}
secrets:
caller_github_token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module.exports = {
'../tests/**/*.stories.tsx'
],
addons: [
'@etchteam/storybook-addon-status',
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
Expand Down
5 changes: 5 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ export const parameters = {
'DirectAnswer',
'FilterSearch',
'StaticFilters',
'Facets',
'StandardFacet',
'NumericalFacet',
'HierarchicalFacet',
'StandardFacets',
'NumericalFacets',
'HierarchicalFacets',
Expand All @@ -36,6 +40,7 @@ export const parameters = {
'AlternativeVerticals',
'SpellCheck',
'ResultsCount',
'Geolocation',
'LocationBias',
'Dropdown'
]
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,8 @@ To use the Component Library's Styling without adding Tailwind to your project,

```tsx
import '@yext/search-ui-react/bundle.css'
```
```

## Compatibility Notes

This library and its dependencies use optional chaining and other modern TS syntax that is not inherently supported by Webpack <5 (e.g. via `create-react-app@4`). Additional Babel plugins are needed for transpiling if using legacy versions.
8 changes: 4 additions & 4 deletions THIRD-PARTY-NOTICES
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ These definitions were written by Chi Vinh Le <https://github.com/cvle>.

The following NPM package may be included in this product:

- @yext/analytics@0.2.0-beta.3
- @yext/analytics@0.5.0

This package contains the following license and notice below:

Expand Down Expand Up @@ -1020,7 +1020,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-core@2.3.0
- @yext/search-core@2.4.0

This package contains the following license and notice below:

Expand Down Expand Up @@ -1064,7 +1064,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-react@2.2.0
- @yext/search-headless-react@2.3.0

This package contains the following license and notice below:

Expand Down Expand Up @@ -1108,7 +1108,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.3.0
- @yext/search-headless@2.4.0

This package contains the following license and notice below:

Expand Down
15 changes: 15 additions & 0 deletions docs/search-ui-react.facetprops.md
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) &gt; [@yext/search-ui-react](./search-ui-react.md) &gt; [FacetProps](./search-ui-react.facetprops.md)

## FacetProps type

Props for a single facet component.

<b>Signature:</b>

```typescript
export declare type FacetProps = StandardFacetProps | NumericalFacetProps | HierarchicalFacetProps;
```
<b>References:</b> [StandardFacetProps](./search-ui-react.standardfacetprops.md)<!-- -->, [NumericalFacetProps](./search-ui-react.numericalfacetprops.md)<!-- -->, [HierarchicalFacetProps](./search-ui-react.hierarchicalfacetprops.md)

30 changes: 30 additions & 0 deletions docs/search-ui-react.facets.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@yext/search-ui-react](./search-ui-react.md) &gt; [Facets](./search-ui-react.facets.md)

## Facets() function

A component that displays all facets applicable to the current vertical search.

<b>Signature:</b>

```typescript
export declare function Facets(props: FacetsProps): JSX.Element;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| props | [FacetsProps](./search-ui-react.facetsprops.md) | [FacetsProps](./search-ui-react.facetsprops.md) |

<b>Returns:</b>

JSX.Element

A React component for facets

## Remarks

This component is a quick way of getting facets on the page, and it will render standard facets, numerical facets, and hierarchical facets. The [StandardFacet()](./search-ui-react.standardfacet.md)<!-- -->, [NumericalFacet()](./search-ui-react.numericalfacet.md)<!-- -->, and [HierarchicalFacet()](./search-ui-react.hierarchicalfacet.md) components can be used to override the default facet configuration.

11 changes: 11 additions & 0 deletions docs/search-ui-react.facetscssclasses.divider.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@yext/search-ui-react](./search-ui-react.md) &gt; [FacetsCssClasses](./search-ui-react.facetscssclasses.md) &gt; [divider](./search-ui-react.facetscssclasses.divider.md)

## FacetsCssClasses.divider property

<b>Signature:</b>

```typescript
divider?: string;
```
11 changes: 11 additions & 0 deletions docs/search-ui-react.facetscssclasses.facetscontainer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@yext/search-ui-react](./search-ui-react.md) &gt; [FacetsCssClasses](./search-ui-react.facetscssclasses.md) &gt; [facetsContainer](./search-ui-react.facetscssclasses.facetscontainer.md)

## FacetsCssClasses.facetsContainer property

<b>Signature:</b>

```typescript
facetsContainer?: string;
```
22 changes: 22 additions & 0 deletions docs/search-ui-react.facetscssclasses.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@yext/search-ui-react](./search-ui-react.md) &gt; [FacetsCssClasses](./search-ui-react.facetscssclasses.md)

## FacetsCssClasses interface

The CSS class interface for [Facets()](./search-ui-react.facets.md)<!-- -->. Any [FilterGroupCssClasses](./search-ui-react.filtergroupcssclasses.md) props will be overridden by the same props from customCssClasses on [StandardFacetProps](./search-ui-react.standardfacetprops.md)<!-- -->, [NumericalFacetProps](./search-ui-react.numericalfacetprops.md)<!-- -->, or [HierarchicalFacetProps](./search-ui-react.hierarchicalfacetprops.md)<!-- -->.

<b>Signature:</b>

```typescript
export interface FacetsCssClasses extends FilterGroupCssClasses
```
<b>Extends:</b> [FilterGroupCssClasses](./search-ui-react.filtergroupcssclasses.md)

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [divider?](./search-ui-react.facetscssclasses.divider.md) | string | <i>(Optional)</i> |
| [facetsContainer?](./search-ui-react.facetscssclasses.facetscontainer.md) | string | <i>(Optional)</i> |

18 changes: 18 additions & 0 deletions docs/search-ui-react.facetsprops.children.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@yext/search-ui-react](./search-ui-react.md) &gt; [FacetsProps](./search-ui-react.facetsprops.md) &gt; [children](./search-ui-react.facetsprops.children.md)

## FacetsProps.children property

The custom facet components that will override the default rendering.

<b>Signature:</b>

```typescript
children?: ReactElement[] | ReactElement | undefined | null;
```

## Remarks

Supported components include [StandardFacet()](./search-ui-react.standardfacet.md)<!-- -->, [NumericalFacet()](./search-ui-react.numericalfacet.md)<!-- -->.

13 changes: 13 additions & 0 deletions docs/search-ui-react.facetsprops.customcssclasses.md
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) &gt; [@yext/search-ui-react](./search-ui-react.md) &gt; [FacetsProps](./search-ui-react.facetsprops.md) &gt; [customCssClasses](./search-ui-react.facetsprops.customcssclasses.md)

## FacetsProps.customCssClasses property

CSS classes for customizing the component styling.

<b>Signature:</b>

```typescript
customCssClasses?: FacetsCssClasses;
```
13 changes: 13 additions & 0 deletions docs/search-ui-react.facetsprops.excludedfieldids.md
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) &gt; [@yext/search-ui-react](./search-ui-react.md) &gt; [FacetsProps](./search-ui-react.facetsprops.md) &gt; [excludedFieldIds](./search-ui-react.facetsprops.excludedfieldids.md)

## FacetsProps.excludedFieldIds property

List of field ids that should not be displayed.

<b>Signature:</b>

```typescript
excludedFieldIds?: string[];
```
13 changes: 13 additions & 0 deletions docs/search-ui-react.facetsprops.hierarchicalfieldids.md
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) &gt; [@yext/search-ui-react](./search-ui-react.md) &gt; [FacetsProps](./search-ui-react.facetsprops.md) &gt; [hierarchicalFieldIds](./search-ui-react.facetsprops.hierarchicalfieldids.md)

## FacetsProps.hierarchicalFieldIds property

List of field ids that should be rendered as hierarchical facets.

<b>Signature:</b>

```typescript
hierarchicalFieldIds?: string[];
```
25 changes: 25 additions & 0 deletions docs/search-ui-react.facetsprops.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@yext/search-ui-react](./search-ui-react.md) &gt; [FacetsProps](./search-ui-react.facetsprops.md)

## FacetsProps interface

Props for the [Facets()](./search-ui-react.facets.md) component.

<b>Signature:</b>

```typescript
export interface FacetsProps
```

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [children?](./search-ui-react.facetsprops.children.md) | ReactElement\[\] \| ReactElement \| undefined \| null | <i>(Optional)</i> The custom facet components that will override the default rendering. |
| [customCssClasses?](./search-ui-react.facetsprops.customcssclasses.md) | [FacetsCssClasses](./search-ui-react.facetscssclasses.md) | <i>(Optional)</i> CSS classes for customizing the component styling. |
| [excludedFieldIds?](./search-ui-react.facetsprops.excludedfieldids.md) | string\[\] | <i>(Optional)</i> List of field ids that should not be displayed. |
| [hierarchicalFieldIds?](./search-ui-react.facetsprops.hierarchicalfieldids.md) | string\[\] | <i>(Optional)</i> List of field ids that should be rendered as hierarchical facets. |
| [onlyRenderChildren?](./search-ui-react.facetsprops.onlyrenderchildren.md) | boolean | <i>(Optional)</i> If set to true, only the facets specified in the children are rendered. If set to false, all facets are rendered with the ones specified in the children overridden. Default to false. |
| [searchOnChange?](./search-ui-react.facetsprops.searchonchange.md) | boolean | <i>(Optional)</i> Whether or not a search is automatically run when a filter is selected. Defaults to true. |

13 changes: 13 additions & 0 deletions docs/search-ui-react.facetsprops.onlyrenderchildren.md
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) &gt; [@yext/search-ui-react](./search-ui-react.md) &gt; [FacetsProps](./search-ui-react.facetsprops.md) &gt; [onlyRenderChildren](./search-ui-react.facetsprops.onlyrenderchildren.md)

## FacetsProps.onlyRenderChildren property

If set to true, only the facets specified in the children are rendered. If set to false, all facets are rendered with the ones specified in the children overridden. Default to false.

<b>Signature:</b>

```typescript
onlyRenderChildren?: boolean;
```
13 changes: 13 additions & 0 deletions docs/search-ui-react.facetsprops.searchonchange.md
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) &gt; [@yext/search-ui-react](./search-ui-react.md) &gt; [FacetsProps](./search-ui-react.facetsprops.md) &gt; [searchOnChange](./search-ui-react.facetsprops.searchonchange.md)

## FacetsProps.searchOnChange property

Whether or not a search is automatically run when a filter is selected. Defaults to true.

<b>Signature:</b>

```typescript
searchOnChange?: boolean;
```
26 changes: 26 additions & 0 deletions docs/search-ui-react.geolocation_2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@yext/search-ui-react](./search-ui-react.md) &gt; [Geolocation\_2](./search-ui-react.geolocation_2.md)

## Geolocation\_2() function

A React Component which collects location information to create a location filter and perform a new search.

<b>Signature:</b>

```typescript
export declare function Geolocation({ geolocationOptions, radius, label, GeolocationIcon, handleClick, customCssClasses, }: GeolocationProps): JSX.Element | null;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| { geolocationOptions, radius, label, GeolocationIcon, handleClick, customCssClasses, } | [GeolocationProps](./search-ui-react.geolocationprops.md) | |

<b>Returns:</b>

JSX.Element \| null

A react component for geolocation

11 changes: 11 additions & 0 deletions docs/search-ui-react.geolocationcssclasses.button.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@yext/search-ui-react](./search-ui-react.md) &gt; [GeolocationCssClasses](./search-ui-react.geolocationcssclasses.md) &gt; [button](./search-ui-react.geolocationcssclasses.button.md)

## GeolocationCssClasses.button property

<b>Signature:</b>

```typescript
button?: string;
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@yext/search-ui-react](./search-ui-react.md) &gt; [GeolocationCssClasses](./search-ui-react.geolocationcssclasses.md) &gt; [geolocationContainer](./search-ui-react.geolocationcssclasses.geolocationcontainer.md)

## GeolocationCssClasses.geolocationContainer property

<b>Signature:</b>

```typescript
geolocationContainer?: string;
```
11 changes: 11 additions & 0 deletions docs/search-ui-react.geolocationcssclasses.iconcontainer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@yext/search-ui-react](./search-ui-react.md) &gt; [GeolocationCssClasses](./search-ui-react.geolocationcssclasses.md) &gt; [iconContainer](./search-ui-react.geolocationcssclasses.iconcontainer.md)

## GeolocationCssClasses.iconContainer property

<b>Signature:</b>

```typescript
iconContainer?: string;
```
Loading