@fe-free/ai 4.1.47 → 4.2.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @fe-free/ai
2
2
 
3
+ ## 4.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - feat: ai
8
+ - @fe-free/core@4.2.1
9
+ - @fe-free/icons@4.2.1
10
+ - @fe-free/tool@4.2.1
11
+
12
+ ## 4.2.0
13
+
14
+ ### minor Changes
15
+
16
+ - Updated dependencies
17
+ - @fe-free/core@4.2.0
18
+ - @fe-free/icons@4.2.0
19
+ - @fe-free/tool@4.2.0
20
+
3
21
  ## 4.1.47
4
22
 
5
23
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fe-free/ai",
3
- "version": "4.1.47",
3
+ "version": "4.2.1",
4
4
  "description": "",
5
5
  "main": "./src/index.ts",
6
6
  "author": "",
@@ -18,7 +18,7 @@
18
18
  "lodash-es": "^4.17.21",
19
19
  "uuid": "^13.0.0",
20
20
  "zustand": "^4.5.7",
21
- "@fe-free/core": "4.1.47"
21
+ "@fe-free/core": "4.2.1"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "antd": "^5.27.1",
@@ -28,8 +28,8 @@
28
28
  "i18next-icu": "^2.4.1",
29
29
  "react": "^19.2.0",
30
30
  "react-i18next": "^16.4.0",
31
- "@fe-free/icons": "4.1.47",
32
- "@fe-free/tool": "4.1.47"
31
+ "@fe-free/icons": "4.2.1",
32
+ "@fe-free/tool": "4.2.1"
33
33
  },
34
34
  "scripts": {
35
35
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -197,12 +197,7 @@ function Sender(originProps: SenderProps) {
197
197
  />
198
198
  )}
199
199
  </div>
200
- <div className="mt-1 text-center text-xs text-03">
201
- {t(
202
- '@fe-free/ai.sender.aiGeneratedDisclaimer',
203
- '内容由 AI 生成,无法确保信息的真实准确,仅供参考',
204
- )}
205
- </div>
200
+ {props.statement && <div className="mt-1 text-center text-xs text-03">{props.statement}</div>}
206
201
  </div>
207
202
  );
208
203
  }
@@ -66,4 +66,11 @@ export const AllowSpeech: Story = {
66
66
  },
67
67
  };
68
68
 
69
+ export const Statement: Story = {
70
+ args: {
71
+ statement: '内容由 AI 生成,无法确保信息的真实准确,仅供参考',
72
+ },
73
+ render: (props) => <Component {...props} />,
74
+ };
75
+
69
76
  export default meta;
@@ -30,6 +30,8 @@ interface SenderProps {
30
30
  /** 录音状态变化时回调 */
31
31
  onRecordingChange?: (recording: boolean) => void;
32
32
  };
33
+
34
+ statement?: string;
33
35
  }
34
36
 
35
37
  export type { SenderProps, SenderRef, SenderValue };