@huawei-ide/codearts 1.0.23 → 1.0.24

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.
Files changed (3) hide show
  1. package/README.md +1 -0
  2. package/index.js +1 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -27,6 +27,7 @@
27
27
  name: 'README.md'
28
28
  });
29
29
  ```
30
+ 如果需要传入pdf文件,content需要设置为空,path为pdf资源链接,name为pdf文件名。
30
31
 
31
32
  6. 设置文件是否为预览(只读)状态
32
33
  `ide.setPreview(preview: boolean)`
package/index.js CHANGED
@@ -8,7 +8,7 @@ if (window.location.origin.endsWith('.net')) {
8
8
  }
9
9
  const iframe = document.createElement('iframe');
10
10
  iframe.id = 'codeartside';
11
- iframe.src = hcOrigin + '/codearts-core-web-static/1.0.38/resources/server/gitcode.html';
11
+ iframe.src = hcOrigin + '/codearts-core-web-static/1.0.40/resources/server/gitcode.html';
12
12
 
13
13
  const ON_DID_CHANGE = 'onDidChange';
14
14
  const eventEmitter = new EventEmitter();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huawei-ide/codearts",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {