@aslaluroba/help-center-react 2.1.2 → 2.1.3
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/index.esm.js +0 -15
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +0 -15
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -824,11 +824,6 @@ const ChatWindow = React__default.memo(({ onSendMessage, messages, assistantStat
|
|
|
824
824
|
assistantStatus === 'error' ||
|
|
825
825
|
inputMessage.trim() === '');
|
|
826
826
|
}, [assistantStatus, inputMessage]);
|
|
827
|
-
useEffect(() => {
|
|
828
|
-
if (isSignalRConnected) {
|
|
829
|
-
console.log('🔄 SignalR connection status #chat-window', isSignalRConnected);
|
|
830
|
-
}
|
|
831
|
-
}, [isSignalRConnected]);
|
|
832
827
|
return (React__default.createElement(React__default.Fragment, null,
|
|
833
828
|
React__default.createElement("div", { className: 'babylai-flex-1 babylai-overflow-y-auto babylai-p-4 babylai-h-full' },
|
|
834
829
|
messagesList,
|
|
@@ -1262,11 +1257,6 @@ function HelpPopup({ onClose, helpScreen, status, error, onStartChat, onSendMess
|
|
|
1262
1257
|
scrollToBottom();
|
|
1263
1258
|
}
|
|
1264
1259
|
}, [messages, scrollToBottom]);
|
|
1265
|
-
useEffect(() => {
|
|
1266
|
-
if (isSignalRConnected) {
|
|
1267
|
-
console.log('🔄 SignalR connection status #help-popup', isSignalRConnected);
|
|
1268
|
-
}
|
|
1269
|
-
}, [isSignalRConnected]);
|
|
1270
1260
|
// EARLY RETURNS MUST COME AFTER ALL HOOKS
|
|
1271
1261
|
// Early returns for performance - moved after all hooks
|
|
1272
1262
|
if (status === 'loading' && !helpScreen) {
|
|
@@ -1520,11 +1510,6 @@ function HelpCenter({ helpScreenId, user, showArrow = true, language = 'en', mes
|
|
|
1520
1510
|
});
|
|
1521
1511
|
}
|
|
1522
1512
|
}, [isOpen, helpScreenId]);
|
|
1523
|
-
useEffect(() => {
|
|
1524
|
-
if (isSignalRConnected) {
|
|
1525
|
-
console.log('🔄 SignalR connection status #help-center', isSignalRConnected);
|
|
1526
|
-
}
|
|
1527
|
-
}, [isSignalRConnected]);
|
|
1528
1513
|
return (React__default.createElement("div", { className: 'babylai-help-center-container mb-4' },
|
|
1529
1514
|
showArrowAnimation && !isOpen && (React__default.createElement(FloatingMessage, { onClose: handleCloseArrowAnimation, message: messageLabel || t('homeSdk.needAssistance') })),
|
|
1530
1515
|
React__default.createElement(HelpButton, { onClick: handleTogglePopup }),
|