@dao42/d42paas-front 0.9.194 → 0.9.195

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,50 @@
1
1
  # 更新日志
2
+ ## v0.9.195
3
+ ### 新增
4
+ + 支持动态配置是否显示Editor Tooltips配置
5
+ ```ts
6
+ daoPaasObj?.updateGlobalBaseConfig({
7
+ hideEditorToolTip: true/false,
8
+ });
9
+ ```
10
+ + 支持动态配置是否显示Editor 右键菜单配置
11
+ ```ts
12
+ daoPaasObj?.updateGlobalBaseConfig({
13
+ hideEditorContextMenu: true/false,
14
+ });
15
+ ```
16
+ + 支持配置特殊语言不支持远程LSP,但是只用CodeMirror内置LSP,默认支持是`['html', 'css', 'less', 'sass']`,业务方也可以进行配置
17
+ ```ts
18
+ const dao = new DaoPaaS({
19
+ paasDomain:
20
+ process.env.PAAS_MANAGER_API_ORIGIN + (mockSdkInitFail ? '1' : ''),
21
+ tenantId: '3',
22
+ ticket: dataRes?.ticket,
23
+ defaultLspLang: ['html', 'css', 'less', 'sass'], // 会直接覆盖默认配置
24
+ ```
25
+ + 支持Editor fileHeader 通过配置,显示Tooltips, 显示时间3S
26
+ ```ts
27
+ fileHeader[0].showTips = true; // 对应时机设置对应的showTips=true,
28
+ dao?.updateFileHeader([...fileHeader]);
29
+ ```
30
+ + 支持Editor fileHeader 通过配置,显示Tooltips配置消失时常参数`tipsDuration`
31
+ ```ts
32
+ {
33
+ icon: {
34
+ className: 'dao42__icon--layout2',
35
+ tips: {
36
+ [I18nLanguageType.ZH]: '预览Markdown',
37
+ [I18nLanguageType.EN]: 'Preview Markdown',
38
+ },
39
+ action: () => {
40
+ messageBox.success('预览Markdown');
41
+ },
42
+ },
43
+ tipsDuration: 1000 * 4, // 不配置默认为: 100ms
44
+ },
45
+ ```
46
+ ### 优化
47
+ + 优化AI标识的内容,能够复制,并且复制的内容不包括AI标识
2
48
  ## v0.9.194
3
49
  + 支持自定义编辑器右键菜单配置`aiCodeMenu`
4
50
  > 1. 新增内置菜单行为`cut`, ` copy`, `paste`,`removeAllFlags`(删除所有AI标识),`removeFlag`(删除AI标识),`remove`(删除代码块)