@algolia/autocomplete-js 1.17.8 → 1.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
- import { AutocompleteRenderer, HighlightHitParams } from '../types';
1
+ import { AutocompleteRenderer, HighlightHitParams, VNode } from '../types';
3
2
  export declare function createHighlightComponent({ createElement, Fragment, }: AutocompleteRenderer): {
4
- <THit>({ hit, attribute, tagName, }: HighlightHitParams<THit>): JSX.Element;
3
+ <THit>({ hit, attribute, tagName, }: HighlightHitParams<THit>): VNode<any>;
5
4
  __autocomplete_componentName: string;
6
5
  };
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
- import { AutocompleteRenderer, HighlightHitParams } from '../types';
1
+ import { AutocompleteRenderer, HighlightHitParams, VNode } from '../types';
3
2
  export declare function createReverseHighlightComponent({ createElement, Fragment, }: AutocompleteRenderer): {
4
- <THit>({ hit, attribute, tagName, }: HighlightHitParams<THit>): JSX.Element;
3
+ <THit>({ hit, attribute, tagName, }: HighlightHitParams<THit>): VNode<any>;
5
4
  __autocomplete_componentName: string;
6
5
  };
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
- import { AutocompleteRenderer, HighlightHitParams } from '../types';
1
+ import { AutocompleteRenderer, HighlightHitParams, VNode } from '../types';
3
2
  export declare function createReverseSnippetComponent({ createElement, Fragment, }: AutocompleteRenderer): {
4
- <THit>({ hit, attribute, tagName, }: HighlightHitParams<THit>): JSX.Element;
3
+ <THit>({ hit, attribute, tagName, }: HighlightHitParams<THit>): VNode<any>;
5
4
  __autocomplete_componentName: string;
6
5
  };
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
- import { AutocompleteRenderer, HighlightHitParams } from '../types';
1
+ import { AutocompleteRenderer, HighlightHitParams, VNode } from '../types';
3
2
  export declare function createSnippetComponent({ createElement, Fragment, }: AutocompleteRenderer): {
4
- <THit>({ hit, attribute, tagName, }: HighlightHitParams<THit>): JSX.Element;
3
+ <THit>({ hit, attribute, tagName, }: HighlightHitParams<THit>): VNode<any>;
5
4
  __autocomplete_componentName: string;
6
5
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BaseItem } from '@algolia/autocomplete-core';
3
2
  import { AutocompleteClassNames, AutocompleteOptions, AutocompleteRender } from './types';
4
3
  export declare function getDefaultOptions<TItem extends BaseItem>(options: AutocompleteOptions<TItem>): {
@@ -167,11 +166,11 @@ export declare function getDefaultOptions<TItem extends BaseItem>(options: Autoc
167
166
  };
168
167
  detachedMediaQuery: string;
169
168
  components: {
170
- [x: string]: (props: any) => JSX.Element;
171
- Highlight: <THit>({ hit, attribute, tagName, }: import("@algolia/autocomplete-shared").HighlightHitParams<THit>) => JSX.Element;
172
- ReverseHighlight: <THit>({ hit, attribute, tagName, }: import("@algolia/autocomplete-shared").HighlightHitParams<THit>) => JSX.Element;
173
- ReverseSnippet: <THit>({ hit, attribute, tagName, }: import("@algolia/autocomplete-shared").HighlightHitParams<THit>) => JSX.Element;
174
- Snippet: <THit>({ hit, attribute, tagName, }: import("@algolia/autocomplete-shared").HighlightHitParams<THit>) => JSX.Element;
169
+ [x: string]: (props: any) => import("@algolia/autocomplete-shared").VNode<any>;
170
+ Highlight: <THit>({ hit, attribute, tagName, }: import("@algolia/autocomplete-shared").HighlightHitParams<THit>) => import("@algolia/autocomplete-shared").VNode<any>;
171
+ ReverseHighlight: <THit>({ hit, attribute, tagName, }: import("@algolia/autocomplete-shared").HighlightHitParams<THit>) => import("@algolia/autocomplete-shared").VNode<any>;
172
+ ReverseSnippet: <THit>({ hit, attribute, tagName, }: import("@algolia/autocomplete-shared").HighlightHitParams<THit>) => import("@algolia/autocomplete-shared").VNode<any>;
173
+ Snippet: <THit>({ hit, attribute, tagName, }: import("@algolia/autocomplete-shared").HighlightHitParams<THit>) => import("@algolia/autocomplete-shared").VNode<any>;
175
174
  };
176
175
  translations: {
177
176
  detachedCancelButtonText: string;
@@ -1,4 +1,4 @@
1
- /*! @algolia/autocomplete-js 1.17.8 | MIT License | © Algolia, Inc. and contributors | https://github.com/algolia/autocomplete */
1
+ /*! @algolia/autocomplete-js 1.18.0 | MIT License | © Algolia, Inc. and contributors | https://github.com/algolia/autocomplete */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
4
4
  typeof define === 'function' && define.amd ? define(['exports'], factory) :
@@ -347,7 +347,7 @@
347
347
  return undefined;
348
348
  }
349
349
 
350
- var version = '1.17.8';
350
+ var version = '1.18.0';
351
351
 
352
352
  var userAgents$1 = [{
353
353
  segment: 'autocomplete-core',