@fe-free/ai 4.2.4 → 6.0.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,15 @@
1
1
  # @fe-free/ai
2
2
 
3
+ ## 6.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - feat: tailwindcss4
8
+ - Updated dependencies
9
+ - @fe-free/icons@6.0.1
10
+ - @fe-free/core@6.0.1
11
+ - @fe-free/tool@6.0.1
12
+
3
13
  ## 4.2.4
4
14
 
5
15
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fe-free/ai",
3
- "version": "4.2.4",
3
+ "version": "6.0.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.2.4"
21
+ "@fe-free/core": "6.0.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.2.4",
32
- "@fe-free/tool": "4.2.4"
31
+ "@fe-free/icons": "6.0.1",
32
+ "@fe-free/tool": "6.0.1"
33
33
  },
34
34
  "scripts": {
35
35
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -44,7 +44,7 @@ function Actions(
44
44
  <Button
45
45
  type="primary"
46
46
  shape="circle"
47
- icon={<Icons component={IconRecord} className="!text-lg" />}
47
+ icon={<Icons component={IconRecord} className="h-[28px]! text-lg!" />}
48
48
  onClick={() => {
49
49
  setType('record');
50
50
  }}
@@ -53,7 +53,7 @@ function Actions(
53
53
  <Button
54
54
  type="primary"
55
55
  shape="circle"
56
- icon={<Icons component={SendIcon} className="!text-lg" />}
56
+ icon={<Icons component={SendIcon} className="h-[28px]! text-lg!" />}
57
57
  loading={isLoading}
58
58
  onClick={handleSubmit}
59
59
  />
@@ -144,7 +144,7 @@ function RecordAction(
144
144
  {isRecording ? (
145
145
  <>
146
146
  <RecordLoading count={30} gap={4} />
147
- <div className="absolute left-0 right-0 top-0 -mt-[50px] flex h-[50px] items-end justify-center bg-white pb-2 text-03">
147
+ <div className="text-03 absolute top-0 right-0 left-0 -mt-[50px] flex h-[50px] items-end justify-center bg-white pb-2">
148
148
  {isCancel && <div className="text-red08">松开取消</div>}
149
149
  {!isCancel && <div className="text-03">松开发送&nbsp;&nbsp;上移取消</div>}
150
150
  </div>
@@ -157,13 +157,13 @@ function RecordAction(
157
157
  <Button
158
158
  type="text"
159
159
  shape="circle"
160
- icon={<Icons component={IconKeyboard} className="!text-xl text-white" />}
160
+ icon={<Icons component={IconKeyboard} className="h-[28px]! text-xl! text-white!" />}
161
161
  onClick={() => {
162
162
  setType('input');
163
163
 
164
164
  refText.current?.focus();
165
165
  }}
166
- className="absolute right-4"
166
+ className="absolute! right-4!"
167
167
  />
168
168
  )}
169
169
  </div>
@@ -117,7 +117,7 @@ function Messages<UserData, AIData>(props: MessagesProps<UserData, AIData>) {
117
117
  <PageLayout>
118
118
  <ScrollFixed
119
119
  refScroll={ref}
120
- className="fea-messages-scroll relative flex h-full flex-col overflow-y-auto overflow-x-hidden"
120
+ className="fea-messages-scroll relative flex h-full flex-col overflow-x-hidden overflow-y-auto"
121
121
  style={{
122
122
  transform: `translateZ(0)`,
123
123
  }}
@@ -152,7 +152,7 @@ function Messages<UserData, AIData>(props: MessagesProps<UserData, AIData>) {
152
152
  onClick={() => {
153
153
  scrollToBottom();
154
154
  }}
155
- className="pointer-events-auto bg-white text-2xl shadow-[0px_1px_12px_0px_#2921391F]"
155
+ className="pointer-events-auto! bg-white! text-2xl! shadow-[0px_1px_12px_0px_#2921391F]!"
156
156
  style={{
157
157
  transform: `translateY(${showScrollBottom ? 0 : 30}px) scale(${showScrollBottom ? 1 : 0})`,
158
158
  width: 44,
@@ -50,7 +50,7 @@ function Actions(
50
50
  <Button
51
51
  type="primary"
52
52
  shape="circle"
53
- icon={<Icons component={SendIcon} className="!text-lg" />}
53
+ icon={<Icons component={SendIcon} className="h-[28px]! text-lg!" />}
54
54
  loading={isLoading}
55
55
  // disabled={loading}
56
56
  onClick={onSubmit}
@@ -19,7 +19,7 @@ function RecordAction(props: SenderProps) {
19
19
  <Button
20
20
  type="text"
21
21
  shape="circle"
22
- icon={<AudioOutlined className="!text-lg" />}
22
+ icon={<AudioOutlined className="text-lg!" />}
23
23
  onClick={() => onRecordingChange?.(true)}
24
24
  />
25
25
  );
package/src/style.scss CHANGED
@@ -54,7 +54,7 @@
54
54
  z-index: 10;
55
55
 
56
56
  .ant-upload-drag {
57
- border-color: theme('colors.primary');
57
+ border-color: var(--color-primary);
58
58
  }
59
59
  }
60
60
  }
@@ -65,12 +65,12 @@
65
65
  80%,
66
66
  100% {
67
67
  height: 4px;
68
- box-shadow: 0 0 theme('colors.white');
68
+ box-shadow: 0 0 var(--color-white);
69
69
  }
70
70
 
71
71
  40% {
72
72
  height: 8px;
73
- box-shadow: 0 -8px theme('colors.white');
73
+ box-shadow: 0 -8px var(--color-white);
74
74
  }
75
75
  }
76
76
 
@@ -79,12 +79,12 @@
79
79
  80%,
80
80
  100% {
81
81
  height: 4px;
82
- box-shadow: 0 0 theme('colors.primary');
82
+ box-shadow: 0 0 var(--color-primary);
83
83
  }
84
84
 
85
85
  40% {
86
86
  height: 8px;
87
- box-shadow: 0 -8px theme('colors.primary');
87
+ box-shadow: 0 -8px var(--color-primary);
88
88
  }
89
89
  }
90
90
 
@@ -92,7 +92,7 @@
92
92
  &:not(.fea-message-think-deep-seek) {
93
93
  .ant-think-content {
94
94
  border-inline-start: none;
95
- background-color: theme('backgroundColor.01');
95
+ background-color: var(--background-color-01);
96
96
  padding: 12px 16px;
97
97
  border-radius: 8px;
98
98
  }