react-instantsearch 7.30.0 → 7.31.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/AutocompleteSearch.js +4 -1
- package/dist/cjs/components/ChatMessageLoader.js +16 -0
- package/dist/cjs/components/index.js +1 -0
- package/dist/cjs/widgets/Autocomplete.js +19 -11
- package/dist/cjs/widgets/Chat.js +3 -3
- package/dist/es/components/AutocompleteSearch.d.ts +4 -1
- package/dist/es/components/AutocompleteSearch.js +4 -1
- package/dist/es/components/ChatMessageLoader.d.ts +1 -0
- package/dist/es/components/ChatMessageLoader.js +8 -0
- package/dist/es/components/index.d.ts +1 -0
- package/dist/es/components/index.js +1 -0
- package/dist/es/index.js +1 -0
- package/dist/es/widgets/Autocomplete.js +19 -11
- package/dist/es/widgets/Chat.d.ts +1 -1
- package/dist/es/widgets/Chat.js +3 -3
- package/dist/umd/ReactInstantSearch.js +320 -104
- package/dist/umd/ReactInstantSearch.min.js +3 -3
- package/package.json +5 -5
|
@@ -19,7 +19,7 @@ var AutocompleteSearchComponent = (0, _instantsearchuicomponents.createAutocompl
|
|
|
19
19
|
Fragment: _react.Fragment
|
|
20
20
|
});
|
|
21
21
|
function AutocompleteSearch(param) {
|
|
22
|
-
var inputProps = param.inputProps, clearQuery = param.clearQuery, onQueryChange = param.onQueryChange, query = param.query, isSearchStalled = param.isSearchStalled, onAiModeClick = param.onAiModeClick;
|
|
22
|
+
var inputProps = param.inputProps, clearQuery = param.clearQuery, onQueryChange = param.onQueryChange, query = param.query, isSearchStalled = param.isSearchStalled, onCancel = param.onCancel, isDetached = param.isDetached, submitTitle = param.submitTitle, onAiModeClick = param.onAiModeClick;
|
|
23
23
|
return /*#__PURE__*/ _react.default.createElement(AutocompleteSearchComponent, {
|
|
24
24
|
inputProps: _object_spread_props._(_object_spread._({}, inputProps), {
|
|
25
25
|
onChange: function onChange(event) {
|
|
@@ -30,6 +30,9 @@ function AutocompleteSearch(param) {
|
|
|
30
30
|
onClear: clearQuery,
|
|
31
31
|
query: query,
|
|
32
32
|
isSearchStalled: isSearchStalled,
|
|
33
|
+
onCancel: onCancel,
|
|
34
|
+
isDetached: isDetached,
|
|
35
|
+
submitTitle: submitTitle,
|
|
33
36
|
onAiModeClick: onAiModeClick
|
|
34
37
|
});
|
|
35
38
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "ChatMessageLoader", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function() {
|
|
9
|
+
return ChatMessageLoader;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _instantsearchuicomponents = require("instantsearch-ui-components");
|
|
13
|
+
var _react = require("react");
|
|
14
|
+
var ChatMessageLoader = (0, _instantsearchuicomponents.createChatMessageLoaderComponent)({
|
|
15
|
+
createElement: _react.createElement
|
|
16
|
+
});
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
var _export_star = require("@swc/helpers/_/_export_star");
|
|
7
7
|
_export_star._(require("./Carousel"), exports);
|
|
8
|
+
_export_star._(require("./ChatMessageLoader"), exports);
|
|
8
9
|
_export_star._(require("./ChatOverlayLayout"), exports);
|
|
9
10
|
_export_star._(require("./ChatInlineLayout"), exports);
|
|
10
11
|
_export_star._(require("./ChatSidePanelLayout"), exports);
|
|
@@ -515,7 +515,7 @@ function InnerAutocomplete(_0) {
|
|
|
515
515
|
});
|
|
516
516
|
}
|
|
517
517
|
indicesForPanel.forEach(function(param) {
|
|
518
|
-
var indexId = param.indexId, indexName = param.indexName, hits = param.hits;
|
|
518
|
+
var indexId = param.indexId, indexName = param.indexName, hits = param.hits, sendEvent = param.sendEvent;
|
|
519
519
|
var elementId = indexName;
|
|
520
520
|
if (indexName === (showQuerySuggestions === null || showQuerySuggestions === void 0 ? void 0 : showQuerySuggestions.indexName)) {
|
|
521
521
|
elementId = 'suggestions';
|
|
@@ -541,9 +541,14 @@ function InnerAutocomplete(_0) {
|
|
|
541
541
|
});
|
|
542
542
|
}),
|
|
543
543
|
getItemProps: getItemProps,
|
|
544
|
+
sendEvent: sendEvent,
|
|
544
545
|
classNames: currentIndexConfig.classNames
|
|
545
546
|
});
|
|
546
547
|
});
|
|
548
|
+
var handleCancel = function handleCancel() {
|
|
549
|
+
setIsModalOpen(false);
|
|
550
|
+
setIsOpen(false);
|
|
551
|
+
};
|
|
547
552
|
var searchBoxContent = /*#__PURE__*/ _react.default.createElement(_AutocompleteSearch.AutocompleteSearch, {
|
|
548
553
|
inputProps: getInputProps(),
|
|
549
554
|
clearQuery: function clearQuery() {
|
|
@@ -555,7 +560,18 @@ function InnerAutocomplete(_0) {
|
|
|
555
560
|
},
|
|
556
561
|
query: resolvedQuery,
|
|
557
562
|
isSearchStalled: isSearchStalled,
|
|
563
|
+
onCancel: function onCancel() {
|
|
564
|
+
if (isDetached) {
|
|
565
|
+
handleCancel();
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
isDetached: isDetached,
|
|
569
|
+
submitTitle: isDetached ? translations.detachedCancelButtonText : undefined,
|
|
558
570
|
onAiModeClick: aiMode ? function() {
|
|
571
|
+
setIsOpen(false);
|
|
572
|
+
if (isDetached) {
|
|
573
|
+
setIsModalOpen(false);
|
|
574
|
+
}
|
|
559
575
|
if (chatRenderState) {
|
|
560
576
|
var _chatRenderState_setOpen;
|
|
561
577
|
(_chatRenderState_setOpen = chatRenderState.setOpen) === null || _chatRenderState_setOpen === void 0 ? void 0 : _chatRenderState_setOpen.call(chatRenderState, true);
|
|
@@ -599,19 +615,11 @@ function InnerAutocomplete(_0) {
|
|
|
599
615
|
translations: translations
|
|
600
616
|
}), isModalOpen && /*#__PURE__*/ _react.default.createElement(AutocompleteDetachedOverlay, {
|
|
601
617
|
classNames: classNames,
|
|
602
|
-
onClose:
|
|
603
|
-
setIsModalOpen(false);
|
|
604
|
-
setIsOpen(false);
|
|
605
|
-
}
|
|
618
|
+
onClose: handleCancel
|
|
606
619
|
}, /*#__PURE__*/ _react.default.createElement(AutocompleteDetachedContainer, {
|
|
607
620
|
classNames: detachedContainerClassNames
|
|
608
621
|
}, /*#__PURE__*/ _react.default.createElement(AutocompleteDetachedFormContainer, {
|
|
609
|
-
classNames: classNames
|
|
610
|
-
onCancel: function onCancel() {
|
|
611
|
-
setIsModalOpen(false);
|
|
612
|
-
setIsOpen(false);
|
|
613
|
-
},
|
|
614
|
-
translations: translations
|
|
622
|
+
classNames: classNames
|
|
615
623
|
}, searchBoxContent), panelContent)));
|
|
616
624
|
}
|
|
617
625
|
// Normal (non-detached) rendering
|
package/dist/cjs/widgets/Chat.js
CHANGED
|
@@ -57,7 +57,7 @@ function ChatInner(_0, _1) {
|
|
|
57
57
|
var _ref = [
|
|
58
58
|
_0,
|
|
59
59
|
_1
|
|
60
|
-
], _ref1 = _to_array._(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), userTools = _ref2.tools, toggleButtonProps = _ref2.toggleButtonProps, headerProps = _ref2.headerProps, messagesProps = _ref2.messagesProps, promptProps = _ref2.promptProps, itemComponent = _ref2.itemComponent, layoutComponent = _ref2.layoutComponent, toggleButtonComponent = _ref2.toggleButtonComponent, toggleButtonIconComponent = _ref2.toggleButtonIconComponent, headerComponent = _ref2.headerComponent, headerTitleIconComponent = _ref2.headerTitleIconComponent, headerCloseIconComponent = _ref2.headerCloseIconComponent, headerMinimizeIconComponent = _ref2.headerMinimizeIconComponent, headerMaximizeIconComponent = _ref2.headerMaximizeIconComponent,
|
|
60
|
+
], _ref1 = _to_array._(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), userTools = _ref2.tools, toggleButtonProps = _ref2.toggleButtonProps, headerProps = _ref2.headerProps, messagesProps = _ref2.messagesProps, promptProps = _ref2.promptProps, itemComponent = _ref2.itemComponent, layoutComponent = _ref2.layoutComponent, toggleButtonComponent = _ref2.toggleButtonComponent, toggleButtonIconComponent = _ref2.toggleButtonIconComponent, headerComponent = _ref2.headerComponent, headerTitleIconComponent = _ref2.headerTitleIconComponent, headerCloseIconComponent = _ref2.headerCloseIconComponent, headerMinimizeIconComponent = _ref2.headerMinimizeIconComponent, headerMaximizeIconComponent = _ref2.headerMaximizeIconComponent, loaderComponent = _ref2.loaderComponent, messagesErrorComponent = _ref2.messagesErrorComponent, promptComponent = _ref2.promptComponent, promptHeaderComponent = _ref2.promptHeaderComponent, promptFooterComponent = _ref2.promptFooterComponent, assistantMessageLeadingComponent = _ref2.assistantMessageLeadingComponent, assistantMessageFooterComponent = _ref2.assistantMessageFooterComponent, userMessageLeadingComponent = _ref2.userMessageLeadingComponent, userMessageFooterComponent = _ref2.userMessageFooterComponent, emptyComponent = _ref2.emptyComponent, actionsComponent = _ref2.actionsComponent, suggestionsComponent = _ref2.suggestionsComponent, classNames = _ref2.classNames, _ref_translations = _ref2.translations, translations = _ref_translations === void 0 ? {} : _ref_translations, title = _ref2.title, getSearchPageURL = _ref2.getSearchPageURL, props = _object_without_properties._(_ref2, [
|
|
61
61
|
"tools",
|
|
62
62
|
"toggleButtonProps",
|
|
63
63
|
"headerProps",
|
|
@@ -72,7 +72,7 @@ function ChatInner(_0, _1) {
|
|
|
72
72
|
"headerCloseIconComponent",
|
|
73
73
|
"headerMinimizeIconComponent",
|
|
74
74
|
"headerMaximizeIconComponent",
|
|
75
|
-
"
|
|
75
|
+
"loaderComponent",
|
|
76
76
|
"messagesErrorComponent",
|
|
77
77
|
"promptComponent",
|
|
78
78
|
"promptHeaderComponent",
|
|
@@ -191,7 +191,7 @@ function ChatInner(_0, _1) {
|
|
|
191
191
|
scrollRef: scrollRef,
|
|
192
192
|
contentRef: contentRef,
|
|
193
193
|
onScrollToBottom: scrollToBottom,
|
|
194
|
-
loaderComponent:
|
|
194
|
+
loaderComponent: loaderComponent,
|
|
195
195
|
errorComponent: messagesErrorComponent,
|
|
196
196
|
emptyComponent: emptyComponent,
|
|
197
197
|
actionsComponent: actionsComponent,
|
|
@@ -6,6 +6,9 @@ export type AutocompleteSearchProps = {
|
|
|
6
6
|
onQueryChange?: (query: string) => void;
|
|
7
7
|
query: string;
|
|
8
8
|
isSearchStalled: boolean;
|
|
9
|
+
onCancel?: () => void;
|
|
10
|
+
isDetached?: boolean;
|
|
11
|
+
submitTitle?: string;
|
|
9
12
|
onAiModeClick?: () => void;
|
|
10
13
|
};
|
|
11
|
-
export declare function AutocompleteSearch({ inputProps, clearQuery, onQueryChange, query, isSearchStalled, onAiModeClick, }: AutocompleteSearchProps): React.JSX.Element;
|
|
14
|
+
export declare function AutocompleteSearch({ inputProps, clearQuery, onQueryChange, query, isSearchStalled, onCancel, isDetached, submitTitle, onAiModeClick, }: AutocompleteSearchProps): React.JSX.Element;
|
|
@@ -8,7 +8,7 @@ var AutocompleteSearchComponent = createAutocompleteSearchComponent({
|
|
|
8
8
|
Fragment: Fragment
|
|
9
9
|
});
|
|
10
10
|
function AutocompleteSearch(param) {
|
|
11
|
-
var inputProps = param.inputProps, clearQuery = param.clearQuery, onQueryChange = param.onQueryChange, query = param.query, isSearchStalled = param.isSearchStalled, onAiModeClick = param.onAiModeClick;
|
|
11
|
+
var inputProps = param.inputProps, clearQuery = param.clearQuery, onQueryChange = param.onQueryChange, query = param.query, isSearchStalled = param.isSearchStalled, onCancel = param.onCancel, isDetached = param.isDetached, submitTitle = param.submitTitle, onAiModeClick = param.onAiModeClick;
|
|
12
12
|
return /*#__PURE__*/ React.createElement(AutocompleteSearchComponent, {
|
|
13
13
|
inputProps: _(_$1({}, inputProps), {
|
|
14
14
|
onChange: function onChange(event) {
|
|
@@ -19,6 +19,9 @@ function AutocompleteSearch(param) {
|
|
|
19
19
|
onClear: clearQuery,
|
|
20
20
|
query: query,
|
|
21
21
|
isSearchStalled: isSearchStalled,
|
|
22
|
+
onCancel: onCancel,
|
|
23
|
+
isDetached: isDetached,
|
|
24
|
+
submitTitle: submitTitle,
|
|
22
25
|
onAiModeClick: onAiModeClick
|
|
23
26
|
});
|
|
24
27
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ChatMessageLoader: (userProps: import("instantsearch-ui-components").ChatMessageLoaderProps) => JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { Carousel } from './Carousel.js';
|
|
2
|
+
export { ChatMessageLoader } from './ChatMessageLoader.js';
|
|
2
3
|
export { ChatOverlayLayout } from './ChatOverlayLayout.js';
|
|
3
4
|
export { ChatInlineLayout } from './ChatInlineLayout.js';
|
|
4
5
|
export { ChatSidePanelLayout } from './ChatSidePanelLayout.js';
|
package/dist/es/index.js
CHANGED
|
@@ -29,6 +29,7 @@ export { TrendingItems } from './widgets/TrendingItems.js';
|
|
|
29
29
|
export { TrendingFacets } from './widgets/TrendingFacets.js';
|
|
30
30
|
export { FilterSuggestions } from './widgets/FilterSuggestions.js';
|
|
31
31
|
export { Carousel } from './components/Carousel.js';
|
|
32
|
+
export { ChatMessageLoader } from './components/ChatMessageLoader.js';
|
|
32
33
|
export { ChatOverlayLayout } from './components/ChatOverlayLayout.js';
|
|
33
34
|
export { ChatInlineLayout } from './components/ChatInlineLayout.js';
|
|
34
35
|
export { ChatSidePanelLayout } from './components/ChatSidePanelLayout.js';
|
|
@@ -504,7 +504,7 @@ function InnerAutocomplete(_0) {
|
|
|
504
504
|
});
|
|
505
505
|
}
|
|
506
506
|
indicesForPanel.forEach(function(param) {
|
|
507
|
-
var indexId = param.indexId, indexName = param.indexName, hits = param.hits;
|
|
507
|
+
var indexId = param.indexId, indexName = param.indexName, hits = param.hits, sendEvent = param.sendEvent;
|
|
508
508
|
var elementId = indexName;
|
|
509
509
|
if (indexName === (showQuerySuggestions === null || showQuerySuggestions === void 0 ? void 0 : showQuerySuggestions.indexName)) {
|
|
510
510
|
elementId = 'suggestions';
|
|
@@ -530,9 +530,14 @@ function InnerAutocomplete(_0) {
|
|
|
530
530
|
});
|
|
531
531
|
}),
|
|
532
532
|
getItemProps: getItemProps,
|
|
533
|
+
sendEvent: sendEvent,
|
|
533
534
|
classNames: currentIndexConfig.classNames
|
|
534
535
|
});
|
|
535
536
|
});
|
|
537
|
+
var handleCancel = function handleCancel() {
|
|
538
|
+
setIsModalOpen(false);
|
|
539
|
+
setIsOpen(false);
|
|
540
|
+
};
|
|
536
541
|
var searchBoxContent = /*#__PURE__*/ React.createElement(AutocompleteSearch, {
|
|
537
542
|
inputProps: getInputProps(),
|
|
538
543
|
clearQuery: function clearQuery() {
|
|
@@ -544,7 +549,18 @@ function InnerAutocomplete(_0) {
|
|
|
544
549
|
},
|
|
545
550
|
query: resolvedQuery,
|
|
546
551
|
isSearchStalled: isSearchStalled,
|
|
552
|
+
onCancel: function onCancel() {
|
|
553
|
+
if (isDetached) {
|
|
554
|
+
handleCancel();
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
isDetached: isDetached,
|
|
558
|
+
submitTitle: isDetached ? translations.detachedCancelButtonText : undefined,
|
|
547
559
|
onAiModeClick: aiMode ? function() {
|
|
560
|
+
setIsOpen(false);
|
|
561
|
+
if (isDetached) {
|
|
562
|
+
setIsModalOpen(false);
|
|
563
|
+
}
|
|
548
564
|
if (chatRenderState) {
|
|
549
565
|
var _chatRenderState_setOpen;
|
|
550
566
|
(_chatRenderState_setOpen = chatRenderState.setOpen) === null || _chatRenderState_setOpen === void 0 ? void 0 : _chatRenderState_setOpen.call(chatRenderState, true);
|
|
@@ -588,19 +604,11 @@ function InnerAutocomplete(_0) {
|
|
|
588
604
|
translations: translations
|
|
589
605
|
}), isModalOpen && /*#__PURE__*/ React.createElement(AutocompleteDetachedOverlay, {
|
|
590
606
|
classNames: classNames,
|
|
591
|
-
onClose:
|
|
592
|
-
setIsModalOpen(false);
|
|
593
|
-
setIsOpen(false);
|
|
594
|
-
}
|
|
607
|
+
onClose: handleCancel
|
|
595
608
|
}, /*#__PURE__*/ React.createElement(AutocompleteDetachedContainer, {
|
|
596
609
|
classNames: detachedContainerClassNames
|
|
597
610
|
}, /*#__PURE__*/ React.createElement(AutocompleteDetachedFormContainer, {
|
|
598
|
-
classNames: classNames
|
|
599
|
-
onCancel: function onCancel() {
|
|
600
|
-
setIsModalOpen(false);
|
|
601
|
-
setIsOpen(false);
|
|
602
|
-
},
|
|
603
|
-
translations: translations
|
|
611
|
+
classNames: classNames
|
|
604
612
|
}, searchBoxContent), panelContent)));
|
|
605
613
|
}
|
|
606
614
|
// Normal (non-detached) rendering
|
|
@@ -30,11 +30,11 @@ export type ChatProps<TObject, TUiMessage extends UIMessage = UIMessage> = Omit<
|
|
|
30
30
|
headerCloseIconComponent?: ChatUiProps['headerProps']['closeIconComponent'];
|
|
31
31
|
headerMinimizeIconComponent?: ChatUiProps['headerProps']['minimizeIconComponent'];
|
|
32
32
|
headerMaximizeIconComponent?: ChatUiProps['headerProps']['maximizeIconComponent'];
|
|
33
|
-
messagesLoaderComponent?: ChatUiProps['messagesProps']['loaderComponent'];
|
|
34
33
|
messagesErrorComponent?: ChatUiProps['messagesProps']['errorComponent'];
|
|
35
34
|
promptComponent?: ChatUiProps['promptComponent'];
|
|
36
35
|
promptHeaderComponent?: ChatUiProps['promptProps']['headerComponent'];
|
|
37
36
|
promptFooterComponent?: ChatUiProps['promptProps']['footerComponent'];
|
|
37
|
+
loaderComponent?: ChatUiProps['messagesProps']['loaderComponent'];
|
|
38
38
|
emptyComponent?: ChatUiProps['messagesProps']['emptyComponent'];
|
|
39
39
|
actionsComponent?: ChatUiProps['messagesProps']['actionsComponent'];
|
|
40
40
|
assistantMessageLeadingComponent?: ChatMessageProps['leadingComponent'];
|
package/dist/es/widgets/Chat.js
CHANGED
|
@@ -24,7 +24,7 @@ function ChatInner(_0, _1) {
|
|
|
24
24
|
var _ref = [
|
|
25
25
|
_0,
|
|
26
26
|
_1
|
|
27
|
-
], _ref1 = _$1(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), userTools = _ref2.tools, toggleButtonProps = _ref2.toggleButtonProps, headerProps = _ref2.headerProps, messagesProps = _ref2.messagesProps, promptProps = _ref2.promptProps, itemComponent = _ref2.itemComponent, layoutComponent = _ref2.layoutComponent, toggleButtonComponent = _ref2.toggleButtonComponent, toggleButtonIconComponent = _ref2.toggleButtonIconComponent, headerComponent = _ref2.headerComponent, headerTitleIconComponent = _ref2.headerTitleIconComponent, headerCloseIconComponent = _ref2.headerCloseIconComponent, headerMinimizeIconComponent = _ref2.headerMinimizeIconComponent, headerMaximizeIconComponent = _ref2.headerMaximizeIconComponent,
|
|
27
|
+
], _ref1 = _$1(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), userTools = _ref2.tools, toggleButtonProps = _ref2.toggleButtonProps, headerProps = _ref2.headerProps, messagesProps = _ref2.messagesProps, promptProps = _ref2.promptProps, itemComponent = _ref2.itemComponent, layoutComponent = _ref2.layoutComponent, toggleButtonComponent = _ref2.toggleButtonComponent, toggleButtonIconComponent = _ref2.toggleButtonIconComponent, headerComponent = _ref2.headerComponent, headerTitleIconComponent = _ref2.headerTitleIconComponent, headerCloseIconComponent = _ref2.headerCloseIconComponent, headerMinimizeIconComponent = _ref2.headerMinimizeIconComponent, headerMaximizeIconComponent = _ref2.headerMaximizeIconComponent, loaderComponent = _ref2.loaderComponent, messagesErrorComponent = _ref2.messagesErrorComponent, promptComponent = _ref2.promptComponent, promptHeaderComponent = _ref2.promptHeaderComponent, promptFooterComponent = _ref2.promptFooterComponent, assistantMessageLeadingComponent = _ref2.assistantMessageLeadingComponent, assistantMessageFooterComponent = _ref2.assistantMessageFooterComponent, userMessageLeadingComponent = _ref2.userMessageLeadingComponent, userMessageFooterComponent = _ref2.userMessageFooterComponent, emptyComponent = _ref2.emptyComponent, actionsComponent = _ref2.actionsComponent, suggestionsComponent = _ref2.suggestionsComponent, classNames = _ref2.classNames, _ref_translations = _ref2.translations, translations = _ref_translations === void 0 ? {} : _ref_translations, title = _ref2.title, getSearchPageURL = _ref2.getSearchPageURL, props = _$2(_ref2, [
|
|
28
28
|
"tools",
|
|
29
29
|
"toggleButtonProps",
|
|
30
30
|
"headerProps",
|
|
@@ -39,7 +39,7 @@ function ChatInner(_0, _1) {
|
|
|
39
39
|
"headerCloseIconComponent",
|
|
40
40
|
"headerMinimizeIconComponent",
|
|
41
41
|
"headerMaximizeIconComponent",
|
|
42
|
-
"
|
|
42
|
+
"loaderComponent",
|
|
43
43
|
"messagesErrorComponent",
|
|
44
44
|
"promptComponent",
|
|
45
45
|
"promptHeaderComponent",
|
|
@@ -158,7 +158,7 @@ function ChatInner(_0, _1) {
|
|
|
158
158
|
scrollRef: scrollRef,
|
|
159
159
|
contentRef: contentRef,
|
|
160
160
|
onScrollToBottom: scrollToBottom,
|
|
161
|
-
loaderComponent:
|
|
161
|
+
loaderComponent: loaderComponent,
|
|
162
162
|
errorComponent: messagesErrorComponent,
|
|
163
163
|
emptyComponent: emptyComponent,
|
|
164
164
|
actionsComponent: actionsComponent,
|