Skip to content

Commit

Permalink
Merge 85959cd into 22960c4
Browse files Browse the repository at this point in the history
  • Loading branch information
nmanu1 committed Jul 20, 2022
2 parents 22960c4 + 85959cd commit b059ca7
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 42 deletions.
6 changes: 3 additions & 3 deletions THIRD-PARTY-NOTICES
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,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@1.8.1
- @yext/search-core@1.9.0-alpha.188

This package contains the following license and notice below:

Expand Down Expand Up @@ -802,7 +802,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@1.3.0
- @yext/search-headless-react@1.4.0-alpha.147

This package contains the following license and notice below:

Expand Down Expand Up @@ -846,7 +846,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@1.3.0
- @yext/search-headless@1.4.0-alpha.120

This package contains the following license and notice below:

Expand Down
2 changes: 1 addition & 1 deletion docs/search-ui-react.cardcomponent.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ A functional component that can be used to render a result card.
<b>Signature:</b>

```typescript
export declare type CardComponent = (props: CardProps) => JSX.Element;
export declare type CardComponent<T = Record<string, unknown>> = (props: CardProps<T>) => JSX.Element;
```
<b>References:</b> [CardProps](./search-ui-react.cardprops.md)

4 changes: 2 additions & 2 deletions docs/search-ui-react.cardprops.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ The props provided to every [CardComponent](./search-ui-react.cardcomponent.md)<
<b>Signature:</b>

```typescript
export interface CardProps
export interface CardProps<T = Record<string, unknown>>
```

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [result](./search-ui-react.cardprops.result.md) | Result | The result data provided to the card for rendering. |
| [result](./search-ui-react.cardprops.result.md) | Result&lt;T&gt; | The result data provided to the card for rendering. |

2 changes: 1 addition & 1 deletion docs/search-ui-react.cardprops.result.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ The result data provided to the card for rendering.
<b>Signature:</b>

```typescript
result: Result;
result: Result<T>;
```
6 changes: 3 additions & 3 deletions etc/search-ui-react.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,14 @@ export interface AutocompleteResultCssClasses {
export type CardAnalyticsType = CardCtaEventType | FeedbackType;

// @public
export type CardComponent = (props: CardProps) => JSX.Element;
export type CardComponent<T = Record<string, unknown>> = (props: CardProps<T>) => JSX.Element;

// @public
export type CardCtaEventType = 'CTA_CLICK' | 'TITLE_CLICK';

// @public
export interface CardProps {
result: Result;
export interface CardProps<T = Record<string, unknown>> {
result: Result<T>;
}

// @public
Expand Down
48 changes: 24 additions & 24 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"@typescript-eslint/eslint-plugin": "^5.16.0",
"@typescript-eslint/parser": "^5.16.0",
"@yext/eslint-config-slapshot": "^0.4.0",
"@yext/search-headless-react": "^1.3.0",
"@yext/search-headless-react": "^1.4.0-alpha.147",
"babel-jest": "^27.0.6",
"babel-loader": "^8.2.3",
"eslint": "^8.11.0",
Expand All @@ -86,7 +86,7 @@
"typescript": "~4.4.3"
},
"peerDependencies": {
"@yext/search-headless-react": "^1.3.0",
"@yext/search-headless-react": "^1.4.0-alpha.147",
"react": "^16.14 || ^17 || ^18"
},
"jest": {
Expand Down
6 changes: 3 additions & 3 deletions src/models/cardComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import { Result } from '@yext/search-headless-react';
*
* @public
*/
export interface CardProps {
export interface CardProps<T = Record<string, unknown>> {
/** The result data provided to the card for rendering. */
result: Result
result: Result<T>
}

/**
* A functional component that can be used to render a result card.
*
* @public
*/
export type CardComponent = (props: CardProps) => JSX.Element;
export type CardComponent<T = Record<string, unknown>> = (props: CardProps<T>) => JSX.Element;
6 changes: 3 additions & 3 deletions test-site/package-lock.json

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

0 comments on commit b059ca7

Please sign in to comment.