@dao42/d42paas-front 0.9.191 → 0.9.193

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 CHANGED
@@ -1,4 +1,56 @@
1
1
  # 更新日志
2
+ ## v0.9.193
3
+ ### 新增
4
+ + 新增支持**AI**编程代码块功能(AI编程用`replayCodeByRange` 方法进行代码的操作)
5
+ + 新增初始化配置参数`isSplitCode`,用于控制是否进行代码块的拆分
6
+ ```ts
7
+ const dao = new DaoPaaS({
8
+ ...
9
+ isSplitCode: true, // 用于控制是否判断进行代码块的拆分: 1024 配置true, 其他可以不用配置
10
+ ...
11
+ });
12
+ ```
13
+ + 新增`isEnableEditCode` 方法用于**AI**编程判断是否可以修改对应的代码块
14
+ ```ts
15
+ const res = await daoPaasObj?.daoEditor.isEnableEditCode({
16
+ path: path, // 修改的文件路径
17
+ selection: { start, end }, // 需要修改的范围
18
+ });
19
+ if (res.status) {
20
+ modifyCode();
21
+ } else {
22
+ confirm({
23
+ title:
24
+ '当前需要修改的代码是【用户】创建的,是否运行【AI导师】执行修改任务如下所示?',
25
+ icon: <ExclamationCircleFilled />,
26
+ content: <div>任务进度1/3: 子弹的移动</div>,
27
+ okText: '允许修改',
28
+ cancelText: '停止修改',
29
+ onOk() {
30
+ modifyCode();
31
+ },
32
+ onCancel() {},
33
+ });
34
+ }
35
+
36
+ ```
37
+ + 新增`stopInputCode` 方法用于**AI**模式编程,主动告知AI结束编程
38
+ ```ts
39
+ daoPaasObj.daoEditor.stopInputCode();
40
+ ```
41
+ ### 优化
42
+ + 优化**AI**模式下编程, 不能打开其他文件, 不能创建文件,关闭文件等行为
43
+ +
44
+
45
+ ## v0.9.192
46
+ ### 优化
47
+ + 文件树按住 shift 键时阻止一些默认事件
48
+ + MarkDownPreview 组件预览排版样式(代码关键字高亮,分割线等)
49
+
50
+ ### 新增
51
+ + 消息 Messages.CloseRunLoading: 运行 Web 环境时关闭 loading
52
+ + 方法 isShowPreviewMDIframe(value: boolean): 设置 MarkDownPreview 预览窗口是否显示
53
+
2
54
  ## v0.9.191
3
55
  ### 新增
4
56
  + 新增配置参数`customImagePreview` 参数, 业务方可控制MD图片预览的操作行为