@mxmweb/aichat 1.3.2 → 1.3.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.
Files changed (2) hide show
  1. package/index.js +13 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -44978,7 +44978,7 @@ function F2({
44978
44978
  const ne = {};
44979
44979
  C.forEach((fe) => {
44980
44980
  fe.type === "form" && (ne[fe.key] = S.current[fe.key] ?? fe.initialValues ?? {});
44981
- }), console.log("sender:send_recommandQuestion``````````", X), n == null || n("sender:send", {
44981
+ }), n == null || n("sender:send", {
44982
44982
  content: X.content,
44983
44983
  files: p,
44984
44984
  status: r,
@@ -44987,7 +44987,12 @@ function F2({
44987
44987
  formData: ne,
44988
44988
  // sessionId: currentSessionId,
44989
44989
  clearFn: I
44990
- });
44990
+ }), setTimeout(() => {
44991
+ f.current && f.current.scrollTo && f.current.scrollTo({
44992
+ top: 0,
44993
+ behavior: "smooth"
44994
+ });
44995
+ }, 120);
44991
44996
  break;
44992
44997
  }
44993
44998
  case "sender:send": {
@@ -45003,7 +45008,12 @@ function F2({
45003
45008
  formData: ne,
45004
45009
  // sessionId: currentSessionId,
45005
45010
  clearFn: I
45006
- });
45011
+ }), setTimeout(() => {
45012
+ f.current && f.current.scrollTo && f.current.scrollTo({
45013
+ top: 0,
45014
+ behavior: "smooth"
45015
+ });
45016
+ }, 120);
45007
45017
  break;
45008
45018
  }
45009
45019
  default:
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "style": "assets/style.css",
6
6
  "types": "index.d.ts",
7
7
  "private": false,
8
- "version": "1.3.2",
8
+ "version": "1.3.3",
9
9
  "author": "hanfeng_Zhang",
10
10
  "type": "module",
11
11
  "scripts": {