@algolia/autocomplete-shared 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,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import { VNode } from './AutocompleteRenderer';
2
2
  import { HighlightHitParams } from './HighlightHitParams';
3
- declare type AutocompleteHighlightComponent = <THit>({ hit, attribute, tagName, }: HighlightHitParams<THit>) => JSX.Element;
4
- export declare type PublicAutocompleteComponents = Record<string, (props: any) => JSX.Element>;
3
+ declare type AutocompleteHighlightComponent = <THit>({ hit, attribute, tagName, }: HighlightHitParams<THit>) => VNode<any>;
4
+ export declare type PublicAutocompleteComponents = Record<string, (props: any) => VNode<any>>;
5
5
  export interface AutocompleteComponents extends PublicAutocompleteComponents {
6
6
  /**
7
7
  * Highlight matches in an Algolia hit.
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
- export declare type Pragma = (type: any, props: Record<string, any> | null, ...children: ComponentChildren[]) => JSX.Element;
1
+ export declare type Pragma = (type: any, props: Record<string, any> | null, ...children: ComponentChildren[]) => VNode<any>;
3
2
  export declare type PragmaFrag = any;
4
3
  declare type ComponentChild = VNode<any> | string | number | boolean | null | undefined;
5
4
  declare type ComponentChildren = ComponentChild[] | ComponentChild;
@@ -1 +1 @@
1
- export declare const version = "1.17.8";
1
+ export declare const version = "1.18.0";
@@ -1 +1 @@
1
- export var version = '1.17.8';
1
+ export var version = '1.18.0';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@algolia/autocomplete-shared",
3
3
  "description": "Shared utils for Autocomplete packages.",
4
- "version": "1.17.8",
4
+ "version": "1.18.0",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/algolia/autocomplete",
7
7
  "repository": "algolia/autocomplete",