@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.
- package/dist/esm/components/Highlight.d.ts +2 -3
- package/dist/esm/components/ReverseHighlight.d.ts +2 -3
- package/dist/esm/components/ReverseSnippet.d.ts +2 -3
- package/dist/esm/components/Snippet.d.ts +2 -3
- package/dist/esm/getDefaultOptions.d.ts +5 -6
- package/dist/umd/index.development.js +2 -2
- package/dist/umd/index.development.js.map +1 -1
- package/dist/umd/index.production.js +2 -2
- package/dist/umd/index.production.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
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>):
|
|
3
|
+
<THit>({ hit, attribute, tagName, }: HighlightHitParams<THit>): VNode<any>;
|
|
5
4
|
__autocomplete_componentName: string;
|
|
6
5
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
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>):
|
|
3
|
+
<THit>({ hit, attribute, tagName, }: HighlightHitParams<THit>): VNode<any>;
|
|
5
4
|
__autocomplete_componentName: string;
|
|
6
5
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
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>):
|
|
3
|
+
<THit>({ hit, attribute, tagName, }: HighlightHitParams<THit>): VNode<any>;
|
|
5
4
|
__autocomplete_componentName: string;
|
|
6
5
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
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>):
|
|
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) =>
|
|
171
|
-
Highlight: <THit>({ hit, attribute, tagName, }: import("@algolia/autocomplete-shared").HighlightHitParams<THit>) =>
|
|
172
|
-
ReverseHighlight: <THit>({ hit, attribute, tagName, }: import("@algolia/autocomplete-shared").HighlightHitParams<THit>) =>
|
|
173
|
-
ReverseSnippet: <THit>({ hit, attribute, tagName, }: import("@algolia/autocomplete-shared").HighlightHitParams<THit>) =>
|
|
174
|
-
Snippet: <THit>({ hit, attribute, tagName, }: import("@algolia/autocomplete-shared").HighlightHitParams<THit>) =>
|
|
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.
|
|
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.
|
|
350
|
+
var version = '1.18.0';
|
|
351
351
|
|
|
352
352
|
var userAgents$1 = [{
|
|
353
353
|
segment: 'autocomplete-core',
|