@agentscope-ai/chat 1.1.63 → 1.1.64-beta.1779177915492

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.
@@ -56,7 +56,11 @@ export default function Files(props) {
56
56
 
57
57
  {
58
58
  fileInfo.url && <div className={`${prefixCls}-download`} onClick={() => {
59
- window.open(fileInfo.url, '_blank');
59
+ if (props.onClick) {
60
+ props.onClick(fileInfo);
61
+ } else {
62
+ window.open(fileInfo.url, '_blank');
63
+ }
60
64
  }}>
61
65
  <SparkDownloadLine />
62
66
  </div>
@@ -45,7 +45,11 @@ export default function Files(props) {
45
45
  }), fileInfo.url && /*#__PURE__*/_jsx("div", {
46
46
  className: "".concat(prefixCls, "-download"),
47
47
  onClick: function onClick() {
48
- window.open(fileInfo.url, '_blank');
48
+ if (props.onClick) {
49
+ props.onClick(fileInfo);
50
+ } else {
51
+ window.open(fileInfo.url, '_blank');
52
+ }
49
53
  },
50
54
  children: /*#__PURE__*/_jsx(SparkDownloadLine, {})
51
55
  })]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentscope-ai/chat",
3
- "version": "1.1.63",
3
+ "version": "1.1.64-beta.1779177915492",
4
4
  "description": "a free and open-source chat framework for building excellent LLM-powered chat experiences",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": [