paul-ai-assistant 0.1.16 → 1.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/README.md +10 -55
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
#
|
|
1
|
+
# paul-ai-assistant
|
|
2
2
|
|
|
3
3
|
Paul AI 智能辅助组件
|
|
4
4
|
|
|
5
5
|
## 简介
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
`paul-ai-assistant` 是一个基于 React 16.14.0 的智能辅助组件库,提供完整的 AI 对话和交互能力。
|
|
8
8
|
|
|
9
9
|
## 特性
|
|
10
10
|
|
|
@@ -17,13 +17,13 @@ Paul AI 智能辅助组件
|
|
|
17
17
|
## 安装
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
tnpm install
|
|
20
|
+
tnpm install paul-ai-assistant --save
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
或者使用 yarn:
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
|
-
yarn add
|
|
26
|
+
yarn add paul-ai-assistant
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
## 使用
|
|
@@ -31,13 +31,13 @@ yarn add @alife/paul-ai-assistant
|
|
|
31
31
|
### 基础用法
|
|
32
32
|
|
|
33
33
|
```tsx
|
|
34
|
-
import { PaulAiAssistant } from '
|
|
35
|
-
import '
|
|
34
|
+
import { PaulAiAssistant } from 'paul-ai-assistant';
|
|
35
|
+
import 'paul-ai-assistant/es/index.css';
|
|
36
36
|
|
|
37
37
|
function App() {
|
|
38
38
|
return (
|
|
39
39
|
<PaulAiAssistant
|
|
40
|
-
|
|
40
|
+
// 你的配置项
|
|
41
41
|
/>
|
|
42
42
|
);
|
|
43
43
|
}
|
|
@@ -127,30 +127,6 @@ yarn start
|
|
|
127
127
|
yarn build:docs
|
|
128
128
|
```
|
|
129
129
|
|
|
130
|
-
## 发布
|
|
131
|
-
|
|
132
|
-
### Beta 版本发布
|
|
133
|
-
|
|
134
|
-
1. 修改 `package.json` 中的版本号(例如:`0.0.1-beta.99`)
|
|
135
|
-
2. 运行发布命令:
|
|
136
|
-
|
|
137
|
-
```bash
|
|
138
|
-
yarn publish:beta
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
该命令会自动执行构建并发布到 Alibaba 内网 npm registry。
|
|
142
|
-
|
|
143
|
-
### 正式版本发布
|
|
144
|
-
|
|
145
|
-
```bash
|
|
146
|
-
yarn publish:prod
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
注意:正式版本发布前请确保:
|
|
150
|
-
- 代码已经过充分测试
|
|
151
|
-
- 版本号遵循语义化版本规范
|
|
152
|
-
- 更新日志已更新
|
|
153
|
-
|
|
154
130
|
## 浏览器支持
|
|
155
131
|
|
|
156
132
|
- Chrome (最新两个版本)
|
|
@@ -189,15 +165,7 @@ yarn publish:prod
|
|
|
189
165
|
|
|
190
166
|
## 常见问题
|
|
191
167
|
|
|
192
|
-
### 1.
|
|
193
|
-
|
|
194
|
-
请确保使用 Alibaba 内网 npm registry:
|
|
195
|
-
|
|
196
|
-
```bash
|
|
197
|
-
yarn config set registry https://registry.anpm.alibaba-inc.com
|
|
198
|
-
```
|
|
199
|
-
|
|
200
|
-
### 2. 构建失败
|
|
168
|
+
### 1. 构建失败
|
|
201
169
|
|
|
202
170
|
请检查 Node.js 版本是否为 16.x:
|
|
203
171
|
|
|
@@ -205,12 +173,12 @@ yarn config set registry https://registry.anpm.alibaba-inc.com
|
|
|
205
173
|
node -v
|
|
206
174
|
```
|
|
207
175
|
|
|
208
|
-
###
|
|
176
|
+
### 2. 样式不生效
|
|
209
177
|
|
|
210
178
|
请确保在项目中引入了样式文件:
|
|
211
179
|
|
|
212
180
|
```tsx
|
|
213
|
-
import '
|
|
181
|
+
import 'paul-ai-assistant/es/index.css';
|
|
214
182
|
```
|
|
215
183
|
|
|
216
184
|
## 贡献指南
|
|
@@ -234,16 +202,3 @@ import '@alife/paul-ai-assistant/es/index.css';
|
|
|
234
202
|
- `refactor`: 代码重构
|
|
235
203
|
- `test`: 测试相关
|
|
236
204
|
- `chore`: 构建/工具相关
|
|
237
|
-
|
|
238
|
-
## License
|
|
239
|
-
|
|
240
|
-
MIT
|
|
241
|
-
|
|
242
|
-
## 联系方式
|
|
243
|
-
|
|
244
|
-
- Issues: [项目 Issues](https://code.alibaba-inc.com/gts-fe/magic-intelligent-assistance/issues)
|
|
245
|
-
- 仓库: [GitLab](https://code.alibaba-inc.com/gts-fe/magic-intelligent-assistance)
|
|
246
|
-
|
|
247
|
-
---
|
|
248
|
-
|
|
249
|
-
**注意**: 本项目仅供 Alibaba 内部使用。
|