@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.js
CHANGED
|
@@ -854,11 +854,6 @@ const ChatWindow = React__default["default"].memo(({ onSendMessage, messages, as
|
|
|
854
854
|
assistantStatus === 'error' ||
|
|
855
855
|
inputMessage.trim() === '');
|
|
856
856
|
}, [assistantStatus, inputMessage]);
|
|
857
|
-
React.useEffect(() => {
|
|
858
|
-
if (isSignalRConnected) {
|
|
859
|
-
console.log('🔄 SignalR connection status #chat-window', isSignalRConnected);
|
|
860
|
-
}
|
|
861
|
-
}, [isSignalRConnected]);
|
|
862
857
|
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
863
858
|
React__default["default"].createElement("div", { className: 'babylai-flex-1 babylai-overflow-y-auto babylai-p-4 babylai-h-full' },
|
|
864
859
|
messagesList,
|
|
@@ -1292,11 +1287,6 @@ function HelpPopup({ onClose, helpScreen, status, error, onStartChat, onSendMess
|
|
|
1292
1287
|
scrollToBottom();
|
|
1293
1288
|
}
|
|
1294
1289
|
}, [messages, scrollToBottom]);
|
|
1295
|
-
React.useEffect(() => {
|
|
1296
|
-
if (isSignalRConnected) {
|
|
1297
|
-
console.log('🔄 SignalR connection status #help-popup', isSignalRConnected);
|
|
1298
|
-
}
|
|
1299
|
-
}, [isSignalRConnected]);
|
|
1300
1290
|
// EARLY RETURNS MUST COME AFTER ALL HOOKS
|
|
1301
1291
|
// Early returns for performance - moved after all hooks
|
|
1302
1292
|
if (status === 'loading' && !helpScreen) {
|
|
@@ -1550,11 +1540,6 @@ function HelpCenter({ helpScreenId, user, showArrow = true, language = 'en', mes
|
|
|
1550
1540
|
});
|
|
1551
1541
|
}
|
|
1552
1542
|
}, [isOpen, helpScreenId]);
|
|
1553
|
-
React.useEffect(() => {
|
|
1554
|
-
if (isSignalRConnected) {
|
|
1555
|
-
console.log('🔄 SignalR connection status #help-center', isSignalRConnected);
|
|
1556
|
-
}
|
|
1557
|
-
}, [isSignalRConnected]);
|
|
1558
1543
|
return (React__default["default"].createElement("div", { className: 'babylai-help-center-container mb-4' },
|
|
1559
1544
|
showArrowAnimation && !isOpen && (React__default["default"].createElement(FloatingMessage, { onClose: handleCloseArrowAnimation, message: messageLabel || t('homeSdk.needAssistance') })),
|
|
1560
1545
|
React__default["default"].createElement(HelpButton, { onClick: handleTogglePopup }),
|