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.
- package/dist/cjs/components/autocomplete/AutocompleteIndex.js +6 -1
- package/dist/cjs/components/autocomplete/AutocompleteRecentSearch.js +41 -0
- package/dist/cjs/components/autocomplete/AutocompleteSearch.js +70 -0
- package/dist/cjs/components/autocomplete/AutocompleteSuggestion.js +11 -2
- package/dist/cjs/components/autocomplete/createAutocompletePropGetters.js +222 -0
- package/dist/cjs/components/autocomplete/createAutocompleteStorage.js +150 -0
- package/dist/cjs/components/autocomplete/icons.js +76 -0
- package/dist/cjs/components/autocomplete/index.js +44 -0
- package/dist/cjs/components/chat/Chat.js +2 -1
- package/dist/cjs/components/chat/ChatMessage.js +3 -0
- package/dist/cjs/components/chat/ChatMessages.js +14 -5
- package/dist/cjs/components/chat/icons.js +36 -36
- package/dist/cjs/version.js +1 -1
- package/dist/es/components/autocomplete/Autocomplete.d.ts +1 -1
- package/dist/es/components/autocomplete/AutocompleteIndex.d.ts +7 -0
- package/dist/es/components/autocomplete/AutocompleteIndex.js +6 -1
- package/dist/es/components/autocomplete/AutocompletePanel.d.ts +1 -1
- package/dist/es/components/autocomplete/AutocompleteRecentSearch.d.ts +37 -0
- package/dist/es/components/autocomplete/AutocompleteRecentSearch.js +35 -0
- package/dist/es/components/autocomplete/AutocompleteSearch.d.ts +8 -0
- package/dist/es/components/autocomplete/AutocompleteSearch.js +63 -0
- package/dist/es/components/autocomplete/AutocompleteSuggestion.d.ts +8 -0
- package/dist/es/components/autocomplete/AutocompleteSuggestion.js +11 -2
- package/dist/es/components/autocomplete/createAutocompletePropGetters.d.ts +49 -0
- package/dist/es/components/autocomplete/createAutocompletePropGetters.js +215 -0
- package/dist/es/components/autocomplete/createAutocompleteStorage.d.ts +63 -0
- package/dist/es/components/autocomplete/createAutocompleteStorage.js +142 -0
- package/dist/es/components/autocomplete/icons.d.ts +9 -0
- package/dist/es/components/autocomplete/icons.js +66 -0
- package/dist/es/components/autocomplete/index.d.ts +4 -0
- package/dist/es/components/autocomplete/index.js +5 -1
- package/dist/es/components/chat/Chat.d.ts +1 -0
- package/dist/es/components/chat/Chat.js +2 -1
- package/dist/es/components/chat/ChatMessage.js +3 -0
- package/dist/es/components/chat/ChatMessages.d.ts +9 -1
- package/dist/es/components/chat/ChatMessages.js +14 -5
- package/dist/es/components/chat/icons.js +36 -36
- package/dist/es/components/chat/types.d.ts +1 -1
- package/dist/es/version.d.ts +1 -1
- package/dist/es/version.js +1 -1
- 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(
|
|
212
|
-
var createElement =
|
|
213
|
-
|
|
214
|
-
width =
|
|
215
|
-
|
|
216
|
-
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(
|
|
238
|
-
var createElement =
|
|
239
|
-
|
|
240
|
-
width =
|
|
241
|
-
|
|
242
|
-
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(
|
|
265
|
-
var createElement =
|
|
266
|
-
|
|
267
|
-
width =
|
|
268
|
-
|
|
269
|
-
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(
|
|
295
|
-
var createElement =
|
|
296
|
-
|
|
297
|
-
width =
|
|
298
|
-
|
|
299
|
-
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(
|
|
317
|
-
var createElement =
|
|
318
|
-
|
|
319
|
-
width =
|
|
320
|
-
|
|
321
|
-
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(
|
|
337
|
-
var createElement =
|
|
338
|
-
|
|
339
|
-
width =
|
|
340
|
-
|
|
341
|
-
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
|
|
21
|
+
layoutComponent?: ClientSideToolComponent;
|
|
22
22
|
addToolResult: AddToolResult;
|
|
23
23
|
onToolCall?: (params: Parameters<NonNullable<ChatInit<UIMessage>['onToolCall']>>[0]['toolCall'] & {
|
|
24
24
|
addToolResult: AddToolResultWithOutput;
|
package/dist/es/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.
|
|
1
|
+
declare const _default: "0.14.0";
|
|
2
2
|
export default _default;
|
package/dist/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '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.
|
|
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": "
|
|
56
|
+
"gitHead": "6e4bcd74b92f96761f514bee14824537ba36adf2"
|
|
57
57
|
}
|