instantsearch-ui-components 0.12.0 → 0.14.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.
Files changed (41) hide show
  1. package/dist/cjs/components/autocomplete/AutocompleteIndex.js +6 -1
  2. package/dist/cjs/components/autocomplete/AutocompleteRecentSearch.js +41 -0
  3. package/dist/cjs/components/autocomplete/AutocompleteSearch.js +70 -0
  4. package/dist/cjs/components/autocomplete/AutocompleteSuggestion.js +11 -2
  5. package/dist/cjs/components/autocomplete/createAutocompletePropGetters.js +222 -0
  6. package/dist/cjs/components/autocomplete/createAutocompleteStorage.js +150 -0
  7. package/dist/cjs/components/autocomplete/icons.js +76 -0
  8. package/dist/cjs/components/autocomplete/index.js +44 -0
  9. package/dist/cjs/components/chat/Chat.js +2 -1
  10. package/dist/cjs/components/chat/ChatMessage.js +3 -0
  11. package/dist/cjs/components/chat/ChatMessages.js +14 -5
  12. package/dist/cjs/components/chat/icons.js +36 -36
  13. package/dist/cjs/version.js +1 -1
  14. package/dist/es/components/autocomplete/Autocomplete.d.ts +1 -1
  15. package/dist/es/components/autocomplete/AutocompleteIndex.d.ts +7 -0
  16. package/dist/es/components/autocomplete/AutocompleteIndex.js +6 -1
  17. package/dist/es/components/autocomplete/AutocompletePanel.d.ts +1 -1
  18. package/dist/es/components/autocomplete/AutocompleteRecentSearch.d.ts +37 -0
  19. package/dist/es/components/autocomplete/AutocompleteRecentSearch.js +35 -0
  20. package/dist/es/components/autocomplete/AutocompleteSearch.d.ts +8 -0
  21. package/dist/es/components/autocomplete/AutocompleteSearch.js +63 -0
  22. package/dist/es/components/autocomplete/AutocompleteSuggestion.d.ts +8 -0
  23. package/dist/es/components/autocomplete/AutocompleteSuggestion.js +11 -2
  24. package/dist/es/components/autocomplete/createAutocompletePropGetters.d.ts +49 -0
  25. package/dist/es/components/autocomplete/createAutocompletePropGetters.js +215 -0
  26. package/dist/es/components/autocomplete/createAutocompleteStorage.d.ts +63 -0
  27. package/dist/es/components/autocomplete/createAutocompleteStorage.js +142 -0
  28. package/dist/es/components/autocomplete/icons.d.ts +9 -0
  29. package/dist/es/components/autocomplete/icons.js +66 -0
  30. package/dist/es/components/autocomplete/index.d.ts +4 -0
  31. package/dist/es/components/autocomplete/index.js +5 -1
  32. package/dist/es/components/chat/Chat.d.ts +1 -0
  33. package/dist/es/components/chat/Chat.js +2 -1
  34. package/dist/es/components/chat/ChatMessage.js +3 -0
  35. package/dist/es/components/chat/ChatMessages.d.ts +9 -1
  36. package/dist/es/components/chat/ChatMessages.js +14 -5
  37. package/dist/es/components/chat/icons.js +36 -36
  38. package/dist/es/components/chat/types.d.ts +1 -1
  39. package/dist/es/version.d.ts +1 -1
  40. package/dist/es/version.js +1 -1
  41. package/package.json +2 -2
@@ -208,12 +208,12 @@ export function StopIconComponent(_ref9) {
208
208
  rx: "1"
209
209
  }));
210
210
  }
211
- export function ReloadIconComponent(_ref10) {
212
- var createElement = _ref10.createElement,
213
- _ref10$width = _ref10.width,
214
- width = _ref10$width === void 0 ? 16 : _ref10$width,
215
- _ref10$height = _ref10.height,
216
- height = _ref10$height === void 0 ? 16 : _ref10$height;
211
+ export function ReloadIconComponent(_ref0) {
212
+ var createElement = _ref0.createElement,
213
+ _ref0$width = _ref0.width,
214
+ width = _ref0$width === void 0 ? 16 : _ref0$width,
215
+ _ref0$height = _ref0.height,
216
+ height = _ref0$height === void 0 ? 16 : _ref0$height;
217
217
  return createElement("svg", {
218
218
  xmlns: "http://www.w3.org/2000/svg",
219
219
  width: width,
@@ -234,12 +234,12 @@ export function ReloadIconComponent(_ref10) {
234
234
  d: "M3 21v-5h5"
235
235
  }));
236
236
  }
237
- export function CopyIconComponent(_ref11) {
238
- var createElement = _ref11.createElement,
239
- _ref11$width = _ref11.width,
240
- width = _ref11$width === void 0 ? 16 : _ref11$width,
241
- _ref11$height = _ref11.height,
242
- height = _ref11$height === void 0 ? 16 : _ref11$height;
237
+ export function CopyIconComponent(_ref1) {
238
+ var createElement = _ref1.createElement,
239
+ _ref1$width = _ref1.width,
240
+ width = _ref1$width === void 0 ? 16 : _ref1$width,
241
+ _ref1$height = _ref1.height,
242
+ height = _ref1$height === void 0 ? 16 : _ref1$height;
243
243
  return createElement("svg", {
244
244
  xmlns: "http://www.w3.org/2000/svg",
245
245
  width: width,
@@ -261,12 +261,12 @@ export function CopyIconComponent(_ref11) {
261
261
  d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"
262
262
  }));
263
263
  }
264
- export function MenuIconComponent(_ref12) {
265
- var createElement = _ref12.createElement,
266
- _ref12$width = _ref12.width,
267
- width = _ref12$width === void 0 ? 16 : _ref12$width,
268
- _ref12$height = _ref12.height,
269
- height = _ref12$height === void 0 ? 16 : _ref12$height;
264
+ export function MenuIconComponent(_ref10) {
265
+ var createElement = _ref10.createElement,
266
+ _ref10$width = _ref10.width,
267
+ width = _ref10$width === void 0 ? 16 : _ref10$width,
268
+ _ref10$height = _ref10.height,
269
+ height = _ref10$height === void 0 ? 16 : _ref10$height;
270
270
  return createElement("svg", {
271
271
  xmlns: "http://www.w3.org/2000/svg",
272
272
  width: width,
@@ -291,12 +291,12 @@ export function MenuIconComponent(_ref12) {
291
291
  r: "1"
292
292
  }));
293
293
  }
294
- export function LoadingSpinnerIconComponent(_ref13) {
295
- var createElement = _ref13.createElement,
296
- _ref13$width = _ref13.width,
297
- width = _ref13$width === void 0 ? 24 : _ref13$width,
298
- _ref13$height = _ref13.height,
299
- height = _ref13$height === void 0 ? 24 : _ref13$height;
294
+ export function LoadingSpinnerIconComponent(_ref11) {
295
+ var createElement = _ref11.createElement,
296
+ _ref11$width = _ref11.width,
297
+ width = _ref11$width === void 0 ? 24 : _ref11$width,
298
+ _ref11$height = _ref11.height,
299
+ height = _ref11$height === void 0 ? 24 : _ref11$height;
300
300
  return createElement("svg", {
301
301
  viewBox: "12 12 24 24",
302
302
  width: width,
@@ -313,12 +313,12 @@ export function LoadingSpinnerIconComponent(_ref13) {
313
313
  stroke: "currentColor"
314
314
  }));
315
315
  }
316
- export function ChevronLeftIconComponent(_ref14) {
317
- var createElement = _ref14.createElement,
318
- _ref14$width = _ref14.width,
319
- width = _ref14$width === void 0 ? 16 : _ref14$width,
320
- _ref14$height = _ref14.height,
321
- height = _ref14$height === void 0 ? 16 : _ref14$height;
316
+ export function ChevronLeftIconComponent(_ref12) {
317
+ var createElement = _ref12.createElement,
318
+ _ref12$width = _ref12.width,
319
+ width = _ref12$width === void 0 ? 16 : _ref12$width,
320
+ _ref12$height = _ref12.height,
321
+ height = _ref12$height === void 0 ? 16 : _ref12$height;
322
322
  return createElement("svg", {
323
323
  xmlns: "http://www.w3.org/2000/svg",
324
324
  width: width,
@@ -333,12 +333,12 @@ export function ChevronLeftIconComponent(_ref14) {
333
333
  d: "m15 18-6-6 6-6"
334
334
  }));
335
335
  }
336
- export function ChevronRightIconComponent(_ref15) {
337
- var createElement = _ref15.createElement,
338
- _ref15$width = _ref15.width,
339
- width = _ref15$width === void 0 ? 16 : _ref15$width,
340
- _ref15$height = _ref15.height,
341
- height = _ref15$height === void 0 ? 16 : _ref15$height;
336
+ export function ChevronRightIconComponent(_ref13) {
337
+ var createElement = _ref13.createElement,
338
+ _ref13$width = _ref13.width,
339
+ width = _ref13$width === void 0 ? 16 : _ref13$width,
340
+ _ref13$height = _ref13.height,
341
+ height = _ref13$height === void 0 ? 16 : _ref13$height;
342
342
  return createElement("svg", {
343
343
  xmlns: "http://www.w3.org/2000/svg",
344
344
  width: width,
@@ -18,7 +18,7 @@ export type ClientSideToolComponentProps = {
18
18
  };
19
19
  export type ClientSideToolComponent = (props: ClientSideToolComponentProps) => JSX.Element;
20
20
  export type ClientSideTool = {
21
- layoutComponent: ClientSideToolComponent;
21
+ layoutComponent?: ClientSideToolComponent;
22
22
  addToolResult: AddToolResult;
23
23
  onToolCall?: (params: Parameters<NonNullable<ChatInit<UIMessage>['onToolCall']>>[0]['toolCall'] & {
24
24
  addToolResult: AddToolResultWithOutput;
@@ -1,2 +1,2 @@
1
- declare const _default: "0.12.0";
1
+ declare const _default: "0.14.0";
2
2
  export default _default;
@@ -1 +1 @@
1
- export default '0.12.0';
1
+ export default '0.14.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "instantsearch-ui-components",
3
- "version": "0.12.0",
3
+ "version": "0.14.0",
4
4
  "description": "Common UI components for InstantSearch.",
5
5
  "types": "dist/es/index.d.ts",
6
6
  "main": "dist/cjs/index.js",
@@ -53,5 +53,5 @@
53
53
  "zod": "^3.25.76 || ^4",
54
54
  "zod-to-json-schema": "3.24.6"
55
55
  },
56
- "gitHead": "7cc565086f06a9ec74155002c26596b68efc53bc"
56
+ "gitHead": "6e4bcd74b92f96761f514bee14824537ba36adf2"
57
57
  }