react-instantsearch 7.46.0 → 7.47.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.
|
@@ -46,7 +46,7 @@ function PromptSuggestions(_0) {
|
|
|
46
46
|
transformItems: transformItems
|
|
47
47
|
}), {
|
|
48
48
|
$$widgetType: 'ais.promptSuggestions'
|
|
49
|
-
}), suggestions = _usePromptSuggestions.suggestions, isLoading = _usePromptSuggestions.isLoading, onSuggestionClick = _usePromptSuggestions.onSuggestionClick, isChatBusy = _usePromptSuggestions.isChatBusy, sendToChat = _usePromptSuggestions.sendToChat;
|
|
49
|
+
}), suggestions = _usePromptSuggestions.suggestions, isLoading = _usePromptSuggestions.isLoading, error = _usePromptSuggestions.error, onSuggestionClick = _usePromptSuggestions.onSuggestionClick, isChatBusy = _usePromptSuggestions.isChatBusy, sendToChat = _usePromptSuggestions.sendToChat;
|
|
50
50
|
var handleClick = onSuggestionClickOverride ? function(prompt) {
|
|
51
51
|
return onSuggestionClickOverride(prompt, {
|
|
52
52
|
sendToChat: sendToChat
|
|
@@ -56,6 +56,7 @@ function PromptSuggestions(_0) {
|
|
|
56
56
|
return /*#__PURE__*/ _react.default.createElement(LayoutComponent, {
|
|
57
57
|
suggestions: suggestions,
|
|
58
58
|
isLoading: isLoading,
|
|
59
|
+
error: error,
|
|
59
60
|
onSuggestionClick: handleClick,
|
|
60
61
|
isChatBusy: isChatBusy
|
|
61
62
|
});
|
|
@@ -8,6 +8,7 @@ import type { UsePromptSuggestionsProps } from 'react-instantsearch-core';
|
|
|
8
8
|
export type PromptSuggestionsLayoutComponentProps = {
|
|
9
9
|
suggestions: string[];
|
|
10
10
|
isLoading: boolean;
|
|
11
|
+
error: Error | undefined;
|
|
11
12
|
onSuggestionClick: (prompt: string) => void;
|
|
12
13
|
isChatBusy: boolean;
|
|
13
14
|
};
|
|
@@ -35,7 +35,7 @@ function PromptSuggestions(_0) {
|
|
|
35
35
|
transformItems: transformItems
|
|
36
36
|
}), {
|
|
37
37
|
$$widgetType: 'ais.promptSuggestions'
|
|
38
|
-
}), suggestions = _usePromptSuggestions.suggestions, isLoading = _usePromptSuggestions.isLoading, onSuggestionClick = _usePromptSuggestions.onSuggestionClick, isChatBusy = _usePromptSuggestions.isChatBusy, sendToChat = _usePromptSuggestions.sendToChat;
|
|
38
|
+
}), suggestions = _usePromptSuggestions.suggestions, isLoading = _usePromptSuggestions.isLoading, error = _usePromptSuggestions.error, onSuggestionClick = _usePromptSuggestions.onSuggestionClick, isChatBusy = _usePromptSuggestions.isChatBusy, sendToChat = _usePromptSuggestions.sendToChat;
|
|
39
39
|
var handleClick = onSuggestionClickOverride ? function(prompt) {
|
|
40
40
|
return onSuggestionClickOverride(prompt, {
|
|
41
41
|
sendToChat: sendToChat
|
|
@@ -45,6 +45,7 @@ function PromptSuggestions(_0) {
|
|
|
45
45
|
return /*#__PURE__*/ React.createElement(LayoutComponent, {
|
|
46
46
|
suggestions: suggestions,
|
|
47
47
|
isLoading: isLoading,
|
|
48
|
+
error: error,
|
|
48
49
|
onSuggestionClick: handleClick,
|
|
49
50
|
isChatBusy: isChatBusy
|
|
50
51
|
});
|