bhd-components 0.10.43 → 0.10.45

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.
@@ -2968,7 +2968,7 @@ var handleRenderSyntaxBlock = function(markdownContent, flag) {
2968
2968
  // 去掉think
2969
2969
  var replaceThinkAndYaml = function() {
2970
2970
  var text = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
2971
- return text.replace(/```(\s)?yaml(?:.|\n)*?```/ig, "").replace(/<thinking>([\s\S]*?)<\/thinking>/g, "").replace(RegExp('<div\\s+class="think-block">.*?<\\/div>', "gs"), "").replace(/^[ \n]+/g, "");
2971
+ return text.replace(/<thinking>([\s\S]*?)<\/thinking>/g, "").replace(RegExp('<div\\s+class="think-block">.*?<\\/div>', "gs"), "").replace(/^[ \n]+/g, "");
2972
2972
  };
2973
2973
 
2974
2974
  var HistoryFun = function(props) {
@@ -10746,8 +10746,8 @@ var CustomerService = function(props) {
10746
10746
  }
10747
10747
  message = handleRenderSyntaxBlock(message, finishedRef.current || i != historyMessageList.length - 1);
10748
10748
  message = message.replace(/<thinking>([\s\S]*?)<\/thinking>/g, '<div class="think-block">$1</div>\n');
10749
- message = message.replace(/```(\s)?yaml(?:.|\n)*?```/ig, "");
10750
- message = message.replace(/```\s*yaml[\s\S]*/, "");
10749
+ // message = message.replace(/```(\s)?yaml(?:.|\n)*?```/ig,"");
10750
+ // message = message.replace(/```\s*yaml[\s\S]*/, '')
10751
10751
  if (lastId == item.id && keyWordProblem != "") {
10752
10752
  //点击历史记录时,找到关键字,防止关键字和标签名重复
10753
10753
  // let key_sign = 'sign_'+new Date().getTime();+'sign';
@@ -14888,7 +14888,7 @@ var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
14888
14888
  var getList = contentConfig.getList, coverRenderText = contentConfig.coverRenderText, _contentConfig_msgAction = contentConfig.msgAction, msgAction = _contentConfig_msgAction === void 0 ? [
14889
14889
  "copy",
14890
14890
  "reference"
14891
- ] : _contentConfig_msgAction, coverRenderReferences = contentConfig.coverRenderReferences, _contentConfig_onRecordMessage = contentConfig.onRecordMessage, onRecordMessage = _contentConfig_onRecordMessage === void 0 ? function() {} : _contentConfig_onRecordMessage, _contentConfig_onVoteChange = contentConfig.onVoteChange, onVoteChange = _contentConfig_onVoteChange === void 0 ? function() {} : _contentConfig_onVoteChange, _contentConfig_onRefresh = contentConfig.onRefresh, onRefresh = _contentConfig_onRefresh === void 0 ? function() {} : _contentConfig_onRefresh, helloMsg = contentConfig.helloMsg, _contentConfig_fileCustomRender = contentConfig.fileCustomRender, fileCustomRender = _contentConfig_fileCustomRender === void 0 ? {} : _contentConfig_fileCustomRender, _contentConfig_onSendedHelloMsg = contentConfig.onSendedHelloMsg, onSendedHelloMsg = _contentConfig_onSendedHelloMsg === void 0 ? function() {} : _contentConfig_onSendedHelloMsg;
14891
+ ] : _contentConfig_msgAction, coverRenderReferences = contentConfig.coverRenderReferences, _contentConfig_onRecordMessage = contentConfig.onRecordMessage, onRecordMessage = _contentConfig_onRecordMessage === void 0 ? function() {} : _contentConfig_onRecordMessage, _contentConfig_onVoteChange = contentConfig.onVoteChange, onVoteChange = _contentConfig_onVoteChange === void 0 ? function() {} : _contentConfig_onVoteChange, _contentConfig_onRefresh = contentConfig.onRefresh, onRefresh = _contentConfig_onRefresh === void 0 ? function() {} : _contentConfig_onRefresh, helloMsg = contentConfig.helloMsg, _contentConfig_fileCustomRender = contentConfig.fileCustomRender, fileCustomRender = _contentConfig_fileCustomRender === void 0 ? {} : _contentConfig_fileCustomRender, _contentConfig_onSendedHelloMsg = contentConfig.onSendedHelloMsg, onSendedHelloMsg = _contentConfig_onSendedHelloMsg === void 0 ? function() {} : _contentConfig_onSendedHelloMsg, _contentConfig_onInit = contentConfig.onInit, onInit = _contentConfig_onInit === void 0 ? function() {} : _contentConfig_onInit;
14892
14892
  var loadMoreProps = contentConfig.loadMore || true;
14893
14893
  var virtuosoRef = useRef(null);
14894
14894
  var _useState = _sliced_to_array(useState(false), 2), loading = _useState[0], setLoading = _useState[1]; // 是否加载中
@@ -14961,6 +14961,7 @@ var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
14961
14961
  });
14962
14962
  useEffect(function() {
14963
14963
  getData(page, pageSize).then(function() {
14964
+ onInit();
14964
14965
  if (helloMsg) {
14965
14966
  addMsg({
14966
14967
  id: "helloMsg",