@algolia/autocomplete-shared 1.15.0 → 1.15.1

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.
@@ -62,6 +62,14 @@ export interface AutocompleteOptions<TItem extends BaseItem> {
62
62
  * @link https://www.algolia.com/doc/ui-libraries/autocomplete/api-reference/autocomplete-js/autocomplete/#param-enterkeyhint
63
63
  */
64
64
  enterKeyHint?: AutocompleteEnterKeyHint;
65
+ /**
66
+ * Whether to update the search input value in the middle of a
67
+ * composition session.
68
+ *
69
+ * @default false
70
+ * @link https://www.algolia.com/doc/ui-libraries/autocomplete/api-reference/autocomplete-js/autocomplete/#param-ignorecompositionevents
71
+ */
72
+ ignoreCompositionEvents?: boolean;
65
73
  /**
66
74
  * The placeholder text to show in the search input when there's no query.
67
75
  *
@@ -173,6 +181,7 @@ export interface InternalAutocompleteOptions<TItem extends BaseItem> extends Aut
173
181
  id: string;
174
182
  onStateChange(props: OnStateChangeProps<TItem>): void;
175
183
  enterKeyHint: AutocompleteEnterKeyHint | undefined;
184
+ ignoreCompositionEvents: boolean;
176
185
  placeholder: string;
177
186
  autoFocus: boolean;
178
187
  defaultActiveItemId: number | null;
@@ -67,6 +67,7 @@ export declare type GetInputProps<TEvent, TMouseEvent, TKeyboardEvent> = (props:
67
67
  'aria-controls': string | undefined;
68
68
  'aria-labelledby': string;
69
69
  onChange(event: TEvent): void;
70
+ onCompositionEnd(event: TEvent): void;
70
71
  onKeyDown(event: TKeyboardEvent): void;
71
72
  onFocus(event: TEvent): void;
72
73
  onBlur(): void;
@@ -1 +1 @@
1
- export declare const version = "1.15.0";
1
+ export declare const version = "1.15.1";
@@ -1 +1 @@
1
- export var version = '1.15.0';
1
+ export var version = '1.15.1';
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.15.0",
4
+ "version": "1.15.1",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/algolia/autocomplete",
7
7
  "repository": "algolia/autocomplete",