|
| 1 | +diff --git a/dist/esm/components/Highlight.d.ts b/dist/esm/components/Highlight.d.ts |
| 2 | +index 214dbddacc8d343a7eea42f91b4c18a20369bbf5..1b367d17bab5cf0bcf4fbf5d66e40bfc94dcb124 100644 |
| 3 | +--- a/dist/esm/components/Highlight.d.ts |
| 4 | ++++ b/dist/esm/components/Highlight.d.ts |
| 5 | +@@ -1,6 +1,7 @@ |
| 6 | + /// <reference types="react" /> |
| 7 | ++import React from 'react'; |
| 8 | + import { AutocompleteRenderer, HighlightHitParams } from '../types'; |
| 9 | + export declare function createHighlightComponent({ createElement, Fragment, }: AutocompleteRenderer): { |
| 10 | +- <THit>({ hit, attribute, tagName, }: HighlightHitParams<THit>): JSX.Element; |
| 11 | ++ <THit>({ hit, attribute, tagName, }: HighlightHitParams<THit>): React.JSX.Element; |
| 12 | + __autocomplete_componentName: string; |
| 13 | + }; |
| 14 | +diff --git a/dist/esm/components/ReverseHighlight.d.ts b/dist/esm/components/ReverseHighlight.d.ts |
| 15 | +index bb5937f5e56734cf4b18764a9376046239b467e5..c39c4f30073f988528dfa67cb930b5ae3a75d74b 100644 |
| 16 | +--- a/dist/esm/components/ReverseHighlight.d.ts |
| 17 | ++++ b/dist/esm/components/ReverseHighlight.d.ts |
| 18 | +@@ -1,6 +1,7 @@ |
| 19 | + /// <reference types="react" /> |
| 20 | ++import React from 'react'; |
| 21 | + import { AutocompleteRenderer, HighlightHitParams } from '../types'; |
| 22 | + export declare function createReverseHighlightComponent({ createElement, Fragment, }: AutocompleteRenderer): { |
| 23 | +- <THit>({ hit, attribute, tagName, }: HighlightHitParams<THit>): JSX.Element; |
| 24 | ++ <THit>({ hit, attribute, tagName, }: HighlightHitParams<THit>): React.JSX.Element; |
| 25 | + __autocomplete_componentName: string; |
| 26 | + }; |
| 27 | +diff --git a/dist/esm/components/ReverseSnippet.d.ts b/dist/esm/components/ReverseSnippet.d.ts |
| 28 | +index c4bbd50996a9dfb285019a957b381922cf97622b..13c9b2825f7ea7cac78ee897908120e9dbab2c71 100644 |
| 29 | +--- a/dist/esm/components/ReverseSnippet.d.ts |
| 30 | ++++ b/dist/esm/components/ReverseSnippet.d.ts |
| 31 | +@@ -1,6 +1,7 @@ |
| 32 | + /// <reference types="react" /> |
| 33 | ++import React from 'react'; |
| 34 | + import { AutocompleteRenderer, HighlightHitParams } from '../types'; |
| 35 | + export declare function createReverseSnippetComponent({ createElement, Fragment, }: AutocompleteRenderer): { |
| 36 | +- <THit>({ hit, attribute, tagName, }: HighlightHitParams<THit>): JSX.Element; |
| 37 | ++ <THit>({ hit, attribute, tagName, }: HighlightHitParams<THit>): React.JSX.Element; |
| 38 | + __autocomplete_componentName: string; |
| 39 | + }; |
| 40 | +diff --git a/dist/esm/components/Snippet.d.ts b/dist/esm/components/Snippet.d.ts |
| 41 | +index 7b4785836d848abd3415ad489404760c4a3ad529..11f3665497eee4025875005da91e274fa9ebca4c 100644 |
| 42 | +--- a/dist/esm/components/Snippet.d.ts |
| 43 | ++++ b/dist/esm/components/Snippet.d.ts |
| 44 | +@@ -1,6 +1,7 @@ |
| 45 | + /// <reference types="react" /> |
| 46 | ++import React from 'react'; |
| 47 | + import { AutocompleteRenderer, HighlightHitParams } from '../types'; |
| 48 | + export declare function createSnippetComponent({ createElement, Fragment, }: AutocompleteRenderer): { |
| 49 | +- <THit>({ hit, attribute, tagName, }: HighlightHitParams<THit>): JSX.Element; |
| 50 | ++ <THit>({ hit, attribute, tagName, }: HighlightHitParams<THit>): React.JSX.Element; |
| 51 | + __autocomplete_componentName: string; |
| 52 | + }; |
| 53 | +diff --git a/dist/esm/getDefaultOptions.d.ts b/dist/esm/getDefaultOptions.d.ts |
| 54 | +index 6691997c7b0e62605ea6a1fd9b379aab3a33eb5f..1173dfd1a084e847dec8075b9f346c8d2e92a27b 100644 |
| 55 | +--- a/dist/esm/getDefaultOptions.d.ts |
| 56 | ++++ b/dist/esm/getDefaultOptions.d.ts |
| 57 | +@@ -1,4 +1,5 @@ |
| 58 | + /// <reference types="react" /> |
| 59 | ++import React from "react"; |
| 60 | + import { BaseItem } from '@algolia/autocomplete-core'; |
| 61 | + import { AutocompleteClassNames, AutocompleteOptions, AutocompleteRender } from './types'; |
| 62 | + export declare function getDefaultOptions<TItem extends BaseItem>(options: AutocompleteOptions<TItem>): { |
| 63 | +@@ -165,11 +166,11 @@ export declare function getDefaultOptions<TItem extends BaseItem>(options: Autoc |
| 64 | + }; |
| 65 | + detachedMediaQuery: string; |
| 66 | + components: { |
| 67 | +- [x: string]: (props: any) => JSX.Element; |
| 68 | +- Highlight: <THit>({ hit, attribute, tagName, }: import("./types").HighlightHitParams<THit>) => JSX.Element; |
| 69 | +- ReverseHighlight: <THit>({ hit, attribute, tagName, }: import("./types").HighlightHitParams<THit>) => JSX.Element; |
| 70 | +- ReverseSnippet: <THit>({ hit, attribute, tagName, }: import("./types").HighlightHitParams<THit>) => JSX.Element; |
| 71 | +- Snippet: <THit>({ hit, attribute, tagName, }: import("./types").HighlightHitParams<THit>) => JSX.Element; |
| 72 | ++ [x: string]: (props: any) => React.JSX.Element; |
| 73 | ++ Highlight: <THit>({ hit, attribute, tagName, }: import("./types").HighlightHitParams<THit>) => React.JSX.Element; |
| 74 | ++ ReverseHighlight: <THit>({ hit, attribute, tagName, }: import("./types").HighlightHitParams<THit>) => React.JSX.Element; |
| 75 | ++ ReverseSnippet: <THit>({ hit, attribute, tagName, }: import("./types").HighlightHitParams<THit>) => React.JSX.Element; |
| 76 | ++ Snippet: <THit>({ hit, attribute, tagName, }: import("./types").HighlightHitParams<THit>) => React.JSX.Element; |
| 77 | + }; |
| 78 | + translations: { |
| 79 | + detachedCancelButtonText: string; |
| 80 | +diff --git a/dist/esm/types/AutocompleteComponents.d.ts b/dist/esm/types/AutocompleteComponents.d.ts |
| 81 | +index cc1272833b8876769dc85b095beda01b123377ec..6e458f35a5ad85af219bcfa288dd47fbd1917ee8 100644 |
| 82 | +--- a/dist/esm/types/AutocompleteComponents.d.ts |
| 83 | ++++ b/dist/esm/types/AutocompleteComponents.d.ts |
| 84 | +@@ -1,7 +1,8 @@ |
| 85 | + /// <reference types="react" /> |
| 86 | ++import React from "react"; |
| 87 | + import { HighlightHitParams } from '.'; |
| 88 | +-declare type AutocompleteHighlightComponent = <THit>({ hit, attribute, tagName, }: HighlightHitParams<THit>) => JSX.Element; |
| 89 | +-export declare type PublicAutocompleteComponents = Record<string, (props: any) => JSX.Element>; |
| 90 | ++declare type AutocompleteHighlightComponent = <THit>({ hit, attribute, tagName, }: HighlightHitParams<THit>) => React.JSX.Element; |
| 91 | ++export declare type PublicAutocompleteComponents = Record<string, (props: any) => React.JSX.Element>; |
| 92 | + export interface AutocompleteComponents extends PublicAutocompleteComponents { |
| 93 | + /** |
| 94 | + * Highlight matches in an Algolia hit. |
| 95 | +diff --git a/dist/esm/types/AutocompleteRenderer.d.ts b/dist/esm/types/AutocompleteRenderer.d.ts |
| 96 | +index 3ca05d5a52c06d4a23c3227e91af4c5e22853945..58f33910e086f8d3facf2fd611ec27194969d5dd 100644 |
| 97 | +--- a/dist/esm/types/AutocompleteRenderer.d.ts |
| 98 | ++++ b/dist/esm/types/AutocompleteRenderer.d.ts |
| 99 | +@@ -1,5 +1,7 @@ |
| 100 | + /// <reference types="react" /> |
| 101 | +-export declare type Pragma = (type: any, props: Record<string, any> | null, ...children: ComponentChildren[]) => JSX.Element; |
| 102 | ++import React from 'react'; |
| 103 | ++ |
| 104 | ++export declare type Pragma = (type: any, props: Record<string, any> | null, ...children: ComponentChildren[]) => React.JSX.Element; |
| 105 | + export declare type PragmaFrag = any; |
| 106 | + declare type ComponentChild = VNode<any> | string | number | boolean | null | undefined; |
| 107 | + declare type ComponentChildren = ComponentChild[] | ComponentChild; |
0 commit comments