@eclipse-glsp/client 2.4.0-next.413 → 2.4.0-next.414
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routing-point-handle-view.d.ts","sourceRoot":"","sources":["../../src/views/routing-point-handle-view.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;
|
|
1
|
+
{"version":3,"file":"routing-point-handle-view.d.ts","sourceRoot":"","sources":["../../src/views/routing-point-handle-view.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,kBAAkB,EAAE,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAAE,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGtC,qBACa,kBAAmB,SAAQ,kBAAkB;IAC7C,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,IAAI,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,WAAW,EAAE,CAAA;KAAE,GAAG,KAAK;CAQxH"}
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.GRoutingHandleView = void 0;
|
|
2
10
|
/********************************************************************************
|
|
3
11
|
* Copyright (c) 2025 EclipseSource and others.
|
|
4
12
|
*
|
|
@@ -14,21 +22,13 @@
|
|
|
14
22
|
*
|
|
15
23
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
16
24
|
********************************************************************************/
|
|
17
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
-
};
|
|
23
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.GRoutingHandleView = void 0;
|
|
25
25
|
const sprotty_1 = require("@eclipse-glsp/sprotty");
|
|
26
26
|
const inversify_1 = require("inversify");
|
|
27
27
|
const model_1 = require("../features/reconnect/model");
|
|
28
28
|
let GRoutingHandleView = class GRoutingHandleView extends sprotty_1.SRoutingHandleView {
|
|
29
29
|
render(handle, context, args) {
|
|
30
30
|
// We have our own handle view for the reconnect handles
|
|
31
|
-
if ((0, model_1.isReconnectHandle)(handle)) {
|
|
31
|
+
if (!(0, model_1.isReconnectHandle)(handle) && (handle.kind === 'source' || handle.kind === 'target')) {
|
|
32
32
|
return undefined;
|
|
33
33
|
}
|
|
34
34
|
return super.render(handle, context, args);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routing-point-handle-view.js","sourceRoot":"","sources":["../../src/views/routing-point-handle-view.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"routing-point-handle-view.js","sourceRoot":"","sources":["../../src/views/routing-point-handle-view.tsx"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,mDAAyH;AACzH,yCAAuC;AAEvC,uDAAgE;AAGzD,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,4BAAkB;IAC7C,MAAM,CAAC,MAAgC,EAAE,OAAyB,EAAE,IAAgC;QACzG,wDAAwD;QACxD,IAAI,CAAC,IAAA,yBAAiB,EAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,QAAQ,IAAI,MAAM,CAAC,IAAI,KAAK,QAAQ,CAAC,EAAE,CAAC;YACvF,OAAO,SAAgB,CAAC;QAC5B,CAAC;QAED,OAAO,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;IAC/C,CAAC;CACJ,CAAA;AATY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,sBAAU,GAAE;GACA,kBAAkB,CAS9B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eclipse-glsp/client",
|
|
3
|
-
"version": "2.4.0-next.
|
|
3
|
+
"version": "2.4.0-next.414+a236f27",
|
|
4
4
|
"description": "A sprotty-based client for GLSP",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eclipse",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"watch": "tsc -w"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@eclipse-glsp/sprotty": "2.4.0-next.
|
|
49
|
+
"@eclipse-glsp/sprotty": "2.4.0-next.414+a236f27",
|
|
50
50
|
"autocompleter": "^9.1.2",
|
|
51
51
|
"file-saver": "^2.0.5",
|
|
52
52
|
"lodash": "4.17.21",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"access": "public"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "a236f274696f0fe8efbfbb00b21401a81b3da183"
|
|
67
67
|
}
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
|
|
17
16
|
import { SRoutingHandleView, type GRoutingHandle, type RenderingContext, type RoutedPoint } from '@eclipse-glsp/sprotty';
|
|
18
17
|
import { injectable } from 'inversify';
|
|
19
18
|
import type { VNode } from 'snabbdom';
|
|
@@ -23,7 +22,7 @@ import { isReconnectHandle } from '../features/reconnect/model';
|
|
|
23
22
|
export class GRoutingHandleView extends SRoutingHandleView {
|
|
24
23
|
override render(handle: Readonly<GRoutingHandle>, context: RenderingContext, args?: { route?: RoutedPoint[] }): VNode {
|
|
25
24
|
// We have our own handle view for the reconnect handles
|
|
26
|
-
if (isReconnectHandle(handle)) {
|
|
25
|
+
if (!isReconnectHandle(handle) && (handle.kind === 'source' || handle.kind === 'target')) {
|
|
27
26
|
return undefined as any;
|
|
28
27
|
}
|
|
29
28
|
|