@gamelearn/arcade-components 1.35.1 → 1.35.2
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/components/conversational-pro-component/components/ConversationalProComponent.js
CHANGED
|
@@ -357,7 +357,9 @@ var ConversationProViewer = function ConversationProViewer(_ref) {
|
|
|
357
357
|
}
|
|
358
358
|
});
|
|
359
359
|
(0, _react.useEffect)(function () {
|
|
360
|
-
|
|
360
|
+
var _currentMessage$emoti;
|
|
361
|
+
|
|
362
|
+
if ((currentLineData === null || currentLineData === void 0 ? void 0 : currentLineData.audioType) === 'none' && !((_currentMessage$emoti = currentMessage.emotion) !== null && _currentMessage$emoti !== void 0 && _currentMessage$emoti.includes('think'))) {
|
|
361
363
|
setTTsStart(true);
|
|
362
364
|
}
|
|
363
365
|
}, [currentLineData, currentMessage.emotion]); // Autoplay logic
|