@huawei-ide/codearts 1.0.46 → 1.0.48

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 +2 -2
  2. package/index.js +4 -4
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -127,8 +127,8 @@
127
127
  event.dispose();
128
128
  ```
129
129
 
130
- 16. 设置编辑器点击链接后进入的中转网页:
131
- `ide.setLinkTransitSite(url: string);`
130
+ 16. 设置编辑器点击链接后是否拦截进入网页:
131
+ `ide.blockClickedLink(block: boolean);`
132
132
 
133
133
  17. 监听当前点击以http和https开头的链接
134
134
 
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.78/resources/server/gitcode.html';
11
+ iframe.src = hcOrigin + '/codearts-core-web-static/1.0.80/resources/server/gitcode.html';
12
12
 
13
13
  const OS = getOS();
14
14
  const ON_DID_CHANGE = 'onDidChange';
@@ -191,10 +191,10 @@ export function registerCodeOperation(options) {
191
191
  postMessage(message);
192
192
  }
193
193
 
194
- export function setLinkTransitSite(url) {
194
+ export function blockClickedLink(block) {
195
195
  const message = {
196
- type: 'setLinkTransitSite',
197
- data: url
196
+ type: 'blockClickedLink',
197
+ data: block
198
198
  };
199
199
  postMessage(message);
200
200
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huawei-ide/codearts",
3
- "version": "1.0.46",
3
+ "version": "1.0.48",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {