@eclipse-glsp-examples/workflow-server-bundled 2.2.0-next.93 → 2.2.0-next.94
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/package.json +2 -2
- package/wf-glsp-server-node.js +502 -264
- package/wf-glsp-server-node.js.map +1 -1
package/wf-glsp-server-node.js
CHANGED
|
@@ -313,7 +313,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
313
313
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
314
314
|
exports.CreateDecisionNodeHandler = void 0;
|
|
315
315
|
/********************************************************************************
|
|
316
|
-
* Copyright (c) 2022-
|
|
316
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
317
317
|
*
|
|
318
318
|
* This program and the accompanying materials are made available under the
|
|
319
319
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -573,7 +573,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
573
573
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
574
574
|
exports.CreateMergeNodeHandler = void 0;
|
|
575
575
|
/********************************************************************************
|
|
576
|
-
* Copyright (c) 2022-
|
|
576
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
577
577
|
*
|
|
578
578
|
* This program and the accompanying materials are made available under the
|
|
579
579
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -1902,7 +1902,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
1902
1902
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1903
1903
|
exports.createDefaultEdgeTypeHint = exports.createDefaultShapeTypeHint = exports.WorkflowDiagramConfiguration = void 0;
|
|
1904
1904
|
/********************************************************************************
|
|
1905
|
-
* Copyright (c) 2022-
|
|
1905
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
1906
1906
|
*
|
|
1907
1907
|
* This program and the accompanying materials are made available under the
|
|
1908
1908
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -2312,7 +2312,7 @@ exports.WorkflowPopupFactory = WorkflowPopupFactory = __decorate([
|
|
|
2312
2312
|
|
|
2313
2313
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2314
2314
|
/********************************************************************************
|
|
2315
|
-
* Copyright (c) 2022-
|
|
2315
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
2316
2316
|
*
|
|
2317
2317
|
* This program and the accompanying materials are made available under the
|
|
2318
2318
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -4704,69 +4704,6 @@ var DeleteMarkersAction;
|
|
|
4704
4704
|
})(DeleteMarkersAction || (exports.DeleteMarkersAction = DeleteMarkersAction = {}));
|
|
4705
4705
|
|
|
4706
4706
|
|
|
4707
|
-
/***/ }),
|
|
4708
|
-
|
|
4709
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/index.js":
|
|
4710
|
-
/*!******************************************************************************!*\
|
|
4711
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/index.js ***!
|
|
4712
|
-
\******************************************************************************/
|
|
4713
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4714
|
-
|
|
4715
|
-
"use strict";
|
|
4716
|
-
|
|
4717
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4718
|
-
if (k2 === undefined) k2 = k;
|
|
4719
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
4720
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
4721
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
4722
|
-
}
|
|
4723
|
-
Object.defineProperty(o, k2, desc);
|
|
4724
|
-
}) : (function(o, m, k, k2) {
|
|
4725
|
-
if (k2 === undefined) k2 = k;
|
|
4726
|
-
o[k2] = m[k];
|
|
4727
|
-
}));
|
|
4728
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
4729
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
4730
|
-
};
|
|
4731
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4732
|
-
/********************************************************************************
|
|
4733
|
-
* Copyright (c) 2021-2023 STMicroelectronics and others.
|
|
4734
|
-
*
|
|
4735
|
-
* This program and the accompanying materials are made available under the
|
|
4736
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
4737
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
4738
|
-
*
|
|
4739
|
-
* This Source Code may also be made available under the following Secondary
|
|
4740
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
4741
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
4742
|
-
* with the GNU Classpath Exception which is available at
|
|
4743
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
4744
|
-
*
|
|
4745
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
4746
|
-
********************************************************************************/
|
|
4747
|
-
__exportStar(__webpack_require__(/*! ./base-protocol */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/base-protocol.js"), exports);
|
|
4748
|
-
__exportStar(__webpack_require__(/*! ./client-notification */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/client-notification.js"), exports);
|
|
4749
|
-
__exportStar(__webpack_require__(/*! ./clipboard */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/clipboard.js"), exports);
|
|
4750
|
-
__exportStar(__webpack_require__(/*! ./contexts */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/contexts.js"), exports);
|
|
4751
|
-
__exportStar(__webpack_require__(/*! ./edge-modification */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/edge-modification.js"), exports);
|
|
4752
|
-
__exportStar(__webpack_require__(/*! ./element-creation */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-creation.js"), exports);
|
|
4753
|
-
__exportStar(__webpack_require__(/*! ./element-hover */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-hover.js"), exports);
|
|
4754
|
-
__exportStar(__webpack_require__(/*! ./element-navigation */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-navigation.js"), exports);
|
|
4755
|
-
__exportStar(__webpack_require__(/*! ./element-selection */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-selection.js"), exports);
|
|
4756
|
-
__exportStar(__webpack_require__(/*! ./element-text-editing */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-text-editing.js"), exports);
|
|
4757
|
-
__exportStar(__webpack_require__(/*! ./element-type-hints */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-type-hints.js"), exports);
|
|
4758
|
-
__exportStar(__webpack_require__(/*! ./element-validation */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-validation.js"), exports);
|
|
4759
|
-
__exportStar(__webpack_require__(/*! ./model-data */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/model-data.js"), exports);
|
|
4760
|
-
__exportStar(__webpack_require__(/*! ./model-edit-mode */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/model-edit-mode.js"), exports);
|
|
4761
|
-
__exportStar(__webpack_require__(/*! ./model-layout */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/model-layout.js"), exports);
|
|
4762
|
-
__exportStar(__webpack_require__(/*! ./model-saving */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/model-saving.js"), exports);
|
|
4763
|
-
__exportStar(__webpack_require__(/*! ./node-modification */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/node-modification.js"), exports);
|
|
4764
|
-
__exportStar(__webpack_require__(/*! ./tool-palette */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/tool-palette.js"), exports);
|
|
4765
|
-
__exportStar(__webpack_require__(/*! ./types */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/types.js"), exports);
|
|
4766
|
-
__exportStar(__webpack_require__(/*! ./undo-redo */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/undo-redo.js"), exports);
|
|
4767
|
-
__exportStar(__webpack_require__(/*! ./viewport */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/viewport.js"), exports);
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
4707
|
/***/ }),
|
|
4771
4708
|
|
|
4772
4709
|
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/model-data.js":
|
|
@@ -5485,7 +5422,7 @@ exports.BaseGLSPClient = BaseGLSPClient;
|
|
|
5485
5422
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5486
5423
|
exports.GLSPClient = exports.ClientState = exports.ApplicationIdProvider = void 0;
|
|
5487
5424
|
/********************************************************************************
|
|
5488
|
-
* Copyright (c) 2020-
|
|
5425
|
+
* Copyright (c) 2020-2024 EclipseSource and others.
|
|
5489
5426
|
*
|
|
5490
5427
|
* This program and the accompanying materials are made available under the
|
|
5491
5428
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -5563,7 +5500,7 @@ var GLSPClient;
|
|
|
5563
5500
|
"use strict";
|
|
5564
5501
|
|
|
5565
5502
|
/********************************************************************************
|
|
5566
|
-
* Copyright (c) 2022-
|
|
5503
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
5567
5504
|
*
|
|
5568
5505
|
* This program and the accompanying materials are made available under the
|
|
5569
5506
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -5584,53 +5521,6 @@ exports.GLSPServerListener = Symbol('GLSPServerListener');
|
|
|
5584
5521
|
exports.GLSPClientProxy = Symbol('GLSPClientProxy');
|
|
5585
5522
|
|
|
5586
5523
|
|
|
5587
|
-
/***/ }),
|
|
5588
|
-
|
|
5589
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/index.js":
|
|
5590
|
-
/*!*************************************************************************************!*\
|
|
5591
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/index.js ***!
|
|
5592
|
-
\*************************************************************************************/
|
|
5593
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
5594
|
-
|
|
5595
|
-
"use strict";
|
|
5596
|
-
|
|
5597
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5598
|
-
if (k2 === undefined) k2 = k;
|
|
5599
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5600
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5601
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
5602
|
-
}
|
|
5603
|
-
Object.defineProperty(o, k2, desc);
|
|
5604
|
-
}) : (function(o, m, k, k2) {
|
|
5605
|
-
if (k2 === undefined) k2 = k;
|
|
5606
|
-
o[k2] = m[k];
|
|
5607
|
-
}));
|
|
5608
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
5609
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
5610
|
-
};
|
|
5611
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5612
|
-
/********************************************************************************
|
|
5613
|
-
* Copyright (c) 2023 EclipseSource and others.
|
|
5614
|
-
*
|
|
5615
|
-
* This program and the accompanying materials are made available under the
|
|
5616
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
5617
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
5618
|
-
*
|
|
5619
|
-
* This Source Code may also be made available under the following Secondary
|
|
5620
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
5621
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
5622
|
-
* with the GNU Classpath Exception which is available at
|
|
5623
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
5624
|
-
*
|
|
5625
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
5626
|
-
********************************************************************************/
|
|
5627
|
-
__exportStar(__webpack_require__(/*! ./base-glsp-client */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/base-glsp-client.js"), exports);
|
|
5628
|
-
__exportStar(__webpack_require__(/*! ./glsp-client */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/glsp-client.js"), exports);
|
|
5629
|
-
__exportStar(__webpack_require__(/*! ./glsp-server */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/glsp-server.js"), exports);
|
|
5630
|
-
__exportStar(__webpack_require__(/*! ./jsonrpc */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/index.js"), exports);
|
|
5631
|
-
__exportStar(__webpack_require__(/*! ./types */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/types.js"), exports);
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
5524
|
/***/ }),
|
|
5635
5525
|
|
|
5636
5526
|
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/base-jsonrpc-glsp-client.js":
|
|
@@ -5650,7 +5540,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5650
5540
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5651
5541
|
exports.JsonrpcClientProxy = exports.BaseJsonrpcGLSPClient = void 0;
|
|
5652
5542
|
/********************************************************************************
|
|
5653
|
-
* Copyright (c) 2019-
|
|
5543
|
+
* Copyright (c) 2019-2024 EclipseSource and others.
|
|
5654
5544
|
*
|
|
5655
5545
|
* This program and the accompanying materials are made available under the
|
|
5656
5546
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -5907,53 +5797,6 @@ function configureClientConnection(clientConnection, glspServer) {
|
|
|
5907
5797
|
exports.configureClientConnection = configureClientConnection;
|
|
5908
5798
|
|
|
5909
5799
|
|
|
5910
|
-
/***/ }),
|
|
5911
|
-
|
|
5912
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/index.js":
|
|
5913
|
-
/*!*********************************************************************************************!*\
|
|
5914
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/index.js ***!
|
|
5915
|
-
\*********************************************************************************************/
|
|
5916
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
5917
|
-
|
|
5918
|
-
"use strict";
|
|
5919
|
-
|
|
5920
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5921
|
-
if (k2 === undefined) k2 = k;
|
|
5922
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5923
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5924
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
5925
|
-
}
|
|
5926
|
-
Object.defineProperty(o, k2, desc);
|
|
5927
|
-
}) : (function(o, m, k, k2) {
|
|
5928
|
-
if (k2 === undefined) k2 = k;
|
|
5929
|
-
o[k2] = m[k];
|
|
5930
|
-
}));
|
|
5931
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
5932
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
5933
|
-
};
|
|
5934
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5935
|
-
/********************************************************************************
|
|
5936
|
-
* Copyright (c) 2023 EclipseSource and others.
|
|
5937
|
-
*
|
|
5938
|
-
* This program and the accompanying materials are made available under the
|
|
5939
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
5940
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
5941
|
-
*
|
|
5942
|
-
* This Source Code may also be made available under the following Secondary
|
|
5943
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
5944
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
5945
|
-
* with the GNU Classpath Exception which is available at
|
|
5946
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
5947
|
-
*
|
|
5948
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
5949
|
-
********************************************************************************/
|
|
5950
|
-
__exportStar(__webpack_require__(/*! ./base-jsonrpc-glsp-client */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/base-jsonrpc-glsp-client.js"), exports);
|
|
5951
|
-
__exportStar(__webpack_require__(/*! ./glsp-jsonrpc-client */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/glsp-jsonrpc-client.js"), exports);
|
|
5952
|
-
__exportStar(__webpack_require__(/*! ./glsp-jsonrpc-server */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/glsp-jsonrpc-server.js"), exports);
|
|
5953
|
-
__exportStar(__webpack_require__(/*! ./websocket-connection */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/websocket-connection.js"), exports);
|
|
5954
|
-
__exportStar(__webpack_require__(/*! ./ws-connection-provider */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/ws-connection-provider.js"), exports);
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
5800
|
/***/ }),
|
|
5958
5801
|
|
|
5959
5802
|
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/websocket-connection.js":
|
|
@@ -6121,6 +5964,53 @@ function listen(webSocket, onConnection, logger) {
|
|
|
6121
5964
|
exports.listen = listen;
|
|
6122
5965
|
|
|
6123
5966
|
|
|
5967
|
+
/***/ }),
|
|
5968
|
+
|
|
5969
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/worker-connection-provider.js":
|
|
5970
|
+
/*!******************************************************************************************************************!*\
|
|
5971
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/worker-connection-provider.js ***!
|
|
5972
|
+
\******************************************************************************************************************/
|
|
5973
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5974
|
+
|
|
5975
|
+
"use strict";
|
|
5976
|
+
|
|
5977
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5978
|
+
exports.GLSPWebWorkerProvider = void 0;
|
|
5979
|
+
/********************************************************************************
|
|
5980
|
+
* Copyright (c) 2023 EclipseSource and others.
|
|
5981
|
+
*
|
|
5982
|
+
* This program and the accompanying materials are made available under the
|
|
5983
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
5984
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
5985
|
+
*
|
|
5986
|
+
* This Source Code may also be made available under the following Secondary
|
|
5987
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
5988
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
5989
|
+
* with the GNU Classpath Exception which is available at
|
|
5990
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
5991
|
+
*
|
|
5992
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
5993
|
+
********************************************************************************/
|
|
5994
|
+
const browser_1 = __webpack_require__(/*! vscode-jsonrpc/browser */ "../../node_modules/vscode-jsonrpc/browser.js");
|
|
5995
|
+
class GLSPWebWorkerProvider {
|
|
5996
|
+
constructor(url) {
|
|
5997
|
+
this.url = url;
|
|
5998
|
+
}
|
|
5999
|
+
createWebWorker(url) {
|
|
6000
|
+
return new Worker(url);
|
|
6001
|
+
}
|
|
6002
|
+
listen(handler) {
|
|
6003
|
+
var _a, _b;
|
|
6004
|
+
this.worker = this.createWebWorker(this.url);
|
|
6005
|
+
const wwConnection = (0, browser_1.createMessageConnection)(new browser_1.BrowserMessageReader(this.worker), new browser_1.BrowserMessageWriter(this.worker));
|
|
6006
|
+
(_a = handler.logger) === null || _a === void 0 ? void 0 : _a.warn('GLSPWebWorkerProvider Initializing!');
|
|
6007
|
+
(_b = handler.onConnection) === null || _b === void 0 ? void 0 : _b.call(handler, wwConnection);
|
|
6008
|
+
return wwConnection;
|
|
6009
|
+
}
|
|
6010
|
+
}
|
|
6011
|
+
exports.GLSPWebWorkerProvider = GLSPWebWorkerProvider;
|
|
6012
|
+
|
|
6013
|
+
|
|
6124
6014
|
/***/ }),
|
|
6125
6015
|
|
|
6126
6016
|
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/ws-connection-provider.js":
|
|
@@ -6227,7 +6117,7 @@ exports.GLSPWebSocketProvider = GLSPWebSocketProvider;
|
|
|
6227
6117
|
"use strict";
|
|
6228
6118
|
|
|
6229
6119
|
/********************************************************************************
|
|
6230
|
-
* Copyright (c) 2023 EclipseSource and others.
|
|
6120
|
+
* Copyright (c) 2023-2024 EclipseSource and others.
|
|
6231
6121
|
*
|
|
6232
6122
|
* This program and the accompanying materials are made available under the
|
|
6233
6123
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -6271,7 +6161,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
6271
6161
|
********************************************************************************/
|
|
6272
6162
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6273
6163
|
exports.resolveContainerConfiguration = exports.initializeContainer = void 0;
|
|
6274
|
-
const
|
|
6164
|
+
const array_util_1 = __webpack_require__(/*! ../utils/array-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/array-util.js");
|
|
6165
|
+
const type_util_1 = __webpack_require__(/*! ../utils/type-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/type-util.js");
|
|
6166
|
+
const feature_module_1 = __webpack_require__(/*! ./feature-module */ "../../node_modules/@eclipse-glsp/protocol/lib/di/feature-module.js");
|
|
6275
6167
|
/**
|
|
6276
6168
|
* Initializes a container with the given {@link ContainerConfiguration}. The container configuration
|
|
6277
6169
|
* consists of the set of {@link ContainerModule}s that should be loaded in the container.
|
|
@@ -6290,25 +6182,57 @@ exports.initializeContainer = initializeContainer;
|
|
|
6290
6182
|
/**
|
|
6291
6183
|
* Processes the given container configurations and returns the corresponding set of {@link ContainerModule}s.
|
|
6292
6184
|
* Container configurations are processed in the order they are passed. If a module is configured to be removed
|
|
6293
|
-
* it can be added again in a later configuration.
|
|
6294
|
-
*
|
|
6185
|
+
* it can be added again in a later configuration. This also means in case of `replace` configurations that affect the same feature id
|
|
6186
|
+
* the last configuration wins.
|
|
6187
|
+
* @param containerConfigurations The container configurations to resolve
|
|
6188
|
+
* @throws An error if featureModule ids are not unique in the resolved module array
|
|
6295
6189
|
* @returns an Array of resolved container modules
|
|
6296
6190
|
*/
|
|
6297
6191
|
function resolveContainerConfiguration(...containerConfigurations) {
|
|
6298
6192
|
const modules = [];
|
|
6299
6193
|
containerConfigurations.forEach(config => {
|
|
6300
6194
|
if (isContainerModule(config)) {
|
|
6301
|
-
(0,
|
|
6195
|
+
(0, array_util_1.distinctAdd)(modules, config);
|
|
6302
6196
|
}
|
|
6303
6197
|
else {
|
|
6304
6198
|
if (config.remove) {
|
|
6305
|
-
(0,
|
|
6199
|
+
(0, array_util_1.remove)(modules, ...(0, array_util_1.asArray)(config.remove));
|
|
6306
6200
|
}
|
|
6307
6201
|
if (config.add) {
|
|
6308
|
-
(0,
|
|
6202
|
+
(0, array_util_1.distinctAdd)(modules, ...(0, array_util_1.asArray)(config.add));
|
|
6203
|
+
}
|
|
6204
|
+
if (config.replace) {
|
|
6205
|
+
(0, array_util_1.asArray)(config.replace).forEach(replace => {
|
|
6206
|
+
const existingIndex = modules.findIndex(m => m instanceof feature_module_1.FeatureModule && m.featureId === replace.featureId);
|
|
6207
|
+
if (existingIndex >= 0) {
|
|
6208
|
+
modules[existingIndex] = replace;
|
|
6209
|
+
}
|
|
6210
|
+
else {
|
|
6211
|
+
console.warn(`Could not find module to replace with feature id ${replace.featureId.toString()}.` +
|
|
6212
|
+
'Adding replacement module to the end of the resolved configurations.');
|
|
6213
|
+
(0, array_util_1.distinctAdd)(modules, replace);
|
|
6214
|
+
}
|
|
6215
|
+
});
|
|
6216
|
+
}
|
|
6217
|
+
}
|
|
6218
|
+
});
|
|
6219
|
+
// Check for duplicate feature ids in resolved modules
|
|
6220
|
+
const featureIds = new Set();
|
|
6221
|
+
const duplicates = [];
|
|
6222
|
+
modules.forEach(module => {
|
|
6223
|
+
if (module instanceof feature_module_1.FeatureModule) {
|
|
6224
|
+
if (featureIds.has(module.featureId)) {
|
|
6225
|
+
duplicates.push(module);
|
|
6226
|
+
}
|
|
6227
|
+
else {
|
|
6228
|
+
featureIds.add(module.featureId);
|
|
6309
6229
|
}
|
|
6310
6230
|
}
|
|
6311
6231
|
});
|
|
6232
|
+
if (duplicates.length > 0) {
|
|
6233
|
+
const culprits = duplicates.map(m => m.featureId).join(', ');
|
|
6234
|
+
throw new Error(`Could not resolve container configuration. Non-unique feature ids found in container configuration: ${culprits}`);
|
|
6235
|
+
}
|
|
6312
6236
|
return modules;
|
|
6313
6237
|
}
|
|
6314
6238
|
exports.resolveContainerConfiguration = resolveContainerConfiguration;
|
|
@@ -6318,7 +6242,7 @@ exports.resolveContainerConfiguration = resolveContainerConfiguration;
|
|
|
6318
6242
|
* => use a simple typeguard instead.
|
|
6319
6243
|
*/
|
|
6320
6244
|
function isContainerModule(config) {
|
|
6321
|
-
return (0,
|
|
6245
|
+
return (0, type_util_1.hasNumberProp)(config, 'id') && (0, type_util_1.hasFunctionProp)(config, 'registry');
|
|
6322
6246
|
}
|
|
6323
6247
|
|
|
6324
6248
|
|
|
@@ -6350,7 +6274,7 @@ function isContainerModule(config) {
|
|
|
6350
6274
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6351
6275
|
exports.FeatureModule = void 0;
|
|
6352
6276
|
const inversify_1 = __webpack_require__(/*! inversify */ "../../node_modules/inversify/es/inversify.js");
|
|
6353
|
-
const
|
|
6277
|
+
const array_util_1 = __webpack_require__(/*! ../utils/array-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/array-util.js");
|
|
6354
6278
|
/**
|
|
6355
6279
|
* A `FeatureModule` is a specialized {@link ContainerModule} that can declare dependencies to other {@link FeatureModule}.
|
|
6356
6280
|
* A feature module will only be loaded into a container if all of its required modules haven been loaded before. T
|
|
@@ -6363,6 +6287,7 @@ class FeatureModule extends inversify_1.ContainerModule {
|
|
|
6363
6287
|
super((bind, unbind, isBound, ...rest) => {
|
|
6364
6288
|
if (this.configure(bind, isBound)) {
|
|
6365
6289
|
registry(bind, unbind, isBound, ...rest);
|
|
6290
|
+
this.debugLog(`Loading of feature module with id '${this.featureId.toString()}' completed`);
|
|
6366
6291
|
}
|
|
6367
6292
|
});
|
|
6368
6293
|
this.featureId = (_a = options.featureId) !== null && _a !== void 0 ? _a : this.createFeatureId();
|
|
@@ -6379,25 +6304,54 @@ class FeatureModule extends inversify_1.ContainerModule {
|
|
|
6379
6304
|
* @returns `true` if all requirements are met and the module is loaded. `false` otherwise
|
|
6380
6305
|
*/
|
|
6381
6306
|
configure(bind, isBound) {
|
|
6307
|
+
this.debugLog(`Trying to load feature module with id '${this.featureId.toString()}'`);
|
|
6308
|
+
if (this.isLoaded({ isBound })) {
|
|
6309
|
+
const message = `Could not load feature module. Another module with id '${this.featureId.toString()}' is already loaded`;
|
|
6310
|
+
this.debugLog(message);
|
|
6311
|
+
throw new Error(message);
|
|
6312
|
+
}
|
|
6382
6313
|
if (this.checkRequirements(isBound)) {
|
|
6314
|
+
this.debugLog(`Requirements are met, continue loading of feature module with id '${this.featureId.toString()}'`);
|
|
6383
6315
|
bind(this.featureId).toConstantValue(this.featureId);
|
|
6384
6316
|
return true;
|
|
6385
6317
|
}
|
|
6386
6318
|
return false;
|
|
6387
6319
|
}
|
|
6320
|
+
debugLog(message, ...optionalParams) {
|
|
6321
|
+
if (FeatureModule.DEBUG_LOG_ENABLED) {
|
|
6322
|
+
console.log(message, ...optionalParams);
|
|
6323
|
+
}
|
|
6324
|
+
}
|
|
6388
6325
|
/**
|
|
6389
6326
|
* Checks if all required {@link FeatureModule}s are already loaded/bound in the container.
|
|
6390
6327
|
* @param isBound The `isBound` property of the module callback. Used to check the required modules.
|
|
6391
6328
|
* @returns `true` if all requirements are met, `false` otherwise
|
|
6392
6329
|
*/
|
|
6393
6330
|
checkRequirements(isBound) {
|
|
6394
|
-
|
|
6331
|
+
var _a;
|
|
6332
|
+
const requires = (0, array_util_1.asArray)((_a = this.requires) !== null && _a !== void 0 ? _a : []);
|
|
6333
|
+
if (requires.length === 0) {
|
|
6334
|
+
return true;
|
|
6335
|
+
}
|
|
6336
|
+
const missing = requires.filter(module => !module.isLoaded({ isBound }));
|
|
6337
|
+
if (missing.length > 0) {
|
|
6338
|
+
this.debugLog(
|
|
6339
|
+
// eslint-disable-next-line max-len
|
|
6340
|
+
`Could not load feature module. Required modules are not loaded. Feature ids: ${missing.map(m => m.featureId.toString()).join(', ')}`);
|
|
6341
|
+
return false;
|
|
6342
|
+
}
|
|
6343
|
+
return true;
|
|
6395
6344
|
}
|
|
6396
6345
|
isLoaded(context) {
|
|
6397
6346
|
return context.isBound(this.featureId);
|
|
6398
6347
|
}
|
|
6399
6348
|
}
|
|
6400
6349
|
exports.FeatureModule = FeatureModule;
|
|
6350
|
+
/**
|
|
6351
|
+
* Global flag to enable/disable additional debug log output when loading feature modules
|
|
6352
|
+
* Default is `false`.
|
|
6353
|
+
*/
|
|
6354
|
+
FeatureModule.DEBUG_LOG_ENABLED = false;
|
|
6401
6355
|
|
|
6402
6356
|
|
|
6403
6357
|
/***/ }),
|
|
@@ -6646,7 +6600,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
6646
6600
|
};
|
|
6647
6601
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6648
6602
|
/********************************************************************************
|
|
6649
|
-
* Copyright (c)
|
|
6603
|
+
* Copyright (c) 2024 EclipseSource and others.
|
|
6650
6604
|
*
|
|
6651
6605
|
* This program and the accompanying materials are made available under the
|
|
6652
6606
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -6660,15 +6614,52 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
6660
6614
|
*
|
|
6661
6615
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
6662
6616
|
********************************************************************************/
|
|
6663
|
-
__exportStar(__webpack_require__(/*! ./action-protocol */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/
|
|
6664
|
-
__exportStar(__webpack_require__(/*! ./client-
|
|
6665
|
-
__exportStar(__webpack_require__(/*! ./
|
|
6617
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/base-protocol */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/base-protocol.js"), exports);
|
|
6618
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/client-notification */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/client-notification.js"), exports);
|
|
6619
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/clipboard */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/clipboard.js"), exports);
|
|
6620
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/contexts */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/contexts.js"), exports);
|
|
6621
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/edge-modification */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/edge-modification.js"), exports);
|
|
6622
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/element-creation */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-creation.js"), exports);
|
|
6623
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/element-hover */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-hover.js"), exports);
|
|
6624
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/element-navigation */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-navigation.js"), exports);
|
|
6625
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/element-selection */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-selection.js"), exports);
|
|
6626
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/element-text-editing */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-text-editing.js"), exports);
|
|
6627
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/element-type-hints */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-type-hints.js"), exports);
|
|
6628
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/element-validation */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-validation.js"), exports);
|
|
6629
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/model-data */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/model-data.js"), exports);
|
|
6630
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/model-edit-mode */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/model-edit-mode.js"), exports);
|
|
6631
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/model-layout */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/model-layout.js"), exports);
|
|
6632
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/model-saving */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/model-saving.js"), exports);
|
|
6633
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/node-modification */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/node-modification.js"), exports);
|
|
6634
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/tool-palette */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/tool-palette.js"), exports);
|
|
6635
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/types */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/types.js"), exports);
|
|
6636
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/undo-redo */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/undo-redo.js"), exports);
|
|
6637
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/viewport */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/viewport.js"), exports);
|
|
6638
|
+
__exportStar(__webpack_require__(/*! ./client-server-protocol/base-glsp-client */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/base-glsp-client.js"), exports);
|
|
6639
|
+
__exportStar(__webpack_require__(/*! ./client-server-protocol/glsp-client */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/glsp-client.js"), exports);
|
|
6640
|
+
__exportStar(__webpack_require__(/*! ./client-server-protocol/glsp-server */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/glsp-server.js"), exports);
|
|
6641
|
+
__exportStar(__webpack_require__(/*! ./client-server-protocol/jsonrpc/base-jsonrpc-glsp-client */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/base-jsonrpc-glsp-client.js"), exports);
|
|
6642
|
+
__exportStar(__webpack_require__(/*! ./client-server-protocol/jsonrpc/glsp-jsonrpc-client */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/glsp-jsonrpc-client.js"), exports);
|
|
6643
|
+
__exportStar(__webpack_require__(/*! ./client-server-protocol/jsonrpc/glsp-jsonrpc-server */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/glsp-jsonrpc-server.js"), exports);
|
|
6644
|
+
__exportStar(__webpack_require__(/*! ./client-server-protocol/jsonrpc/websocket-connection */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/websocket-connection.js"), exports);
|
|
6645
|
+
__exportStar(__webpack_require__(/*! ./client-server-protocol/jsonrpc/worker-connection-provider */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/worker-connection-provider.js"), exports);
|
|
6646
|
+
__exportStar(__webpack_require__(/*! ./client-server-protocol/jsonrpc/ws-connection-provider */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/ws-connection-provider.js"), exports);
|
|
6647
|
+
__exportStar(__webpack_require__(/*! ./client-server-protocol/types */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/types.js"), exports);
|
|
6648
|
+
__exportStar(__webpack_require__(/*! ./model/default-types */ "../../node_modules/@eclipse-glsp/protocol/lib/model/default-types.js"), exports);
|
|
6649
|
+
__exportStar(__webpack_require__(/*! ./model/model-schema */ "../../node_modules/@eclipse-glsp/protocol/lib/model/model-schema.js"), exports);
|
|
6666
6650
|
__exportStar(__webpack_require__(/*! ./re-exports */ "../../node_modules/@eclipse-glsp/protocol/lib/re-exports.js"), exports);
|
|
6667
6651
|
__exportStar(__webpack_require__(/*! ./sprotty-actions */ "../../node_modules/@eclipse-glsp/protocol/lib/sprotty-actions.js"), exports);
|
|
6668
6652
|
__exportStar(__webpack_require__(/*! ./sprotty-geometry-bounds */ "../../node_modules/@eclipse-glsp/protocol/lib/sprotty-geometry-bounds.js"), exports);
|
|
6669
6653
|
__exportStar(__webpack_require__(/*! ./sprotty-geometry-dimension */ "../../node_modules/@eclipse-glsp/protocol/lib/sprotty-geometry-dimension.js"), exports);
|
|
6670
6654
|
__exportStar(__webpack_require__(/*! ./sprotty-geometry-point */ "../../node_modules/@eclipse-glsp/protocol/lib/sprotty-geometry-point.js"), exports);
|
|
6671
|
-
__exportStar(__webpack_require__(/*! ./utils */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/
|
|
6655
|
+
__exportStar(__webpack_require__(/*! ./utils/array-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/array-util.js"), exports);
|
|
6656
|
+
__exportStar(__webpack_require__(/*! ./utils/disposable */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/disposable.js"), exports);
|
|
6657
|
+
__exportStar(__webpack_require__(/*! ./utils/event */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/event.js"), exports);
|
|
6658
|
+
__exportStar(__webpack_require__(/*! ./utils/geometry-movement */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/geometry-movement.js"), exports);
|
|
6659
|
+
__exportStar(__webpack_require__(/*! ./utils/geometry-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/geometry-util.js"), exports);
|
|
6660
|
+
__exportStar(__webpack_require__(/*! ./utils/geometry-vector */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/geometry-vector.js"), exports);
|
|
6661
|
+
__exportStar(__webpack_require__(/*! ./utils/math-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/math-util.js"), exports);
|
|
6662
|
+
__exportStar(__webpack_require__(/*! ./utils/type-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/type-util.js"), exports);
|
|
6672
6663
|
|
|
6673
6664
|
|
|
6674
6665
|
/***/ }),
|
|
@@ -6732,50 +6723,6 @@ var DefaultTypes;
|
|
|
6732
6723
|
})(DefaultTypes || (exports.DefaultTypes = DefaultTypes = {}));
|
|
6733
6724
|
|
|
6734
6725
|
|
|
6735
|
-
/***/ }),
|
|
6736
|
-
|
|
6737
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/model/index.js":
|
|
6738
|
-
/*!********************************************************************!*\
|
|
6739
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/lib/model/index.js ***!
|
|
6740
|
-
\********************************************************************/
|
|
6741
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
6742
|
-
|
|
6743
|
-
"use strict";
|
|
6744
|
-
|
|
6745
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6746
|
-
if (k2 === undefined) k2 = k;
|
|
6747
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6748
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6749
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
6750
|
-
}
|
|
6751
|
-
Object.defineProperty(o, k2, desc);
|
|
6752
|
-
}) : (function(o, m, k, k2) {
|
|
6753
|
-
if (k2 === undefined) k2 = k;
|
|
6754
|
-
o[k2] = m[k];
|
|
6755
|
-
}));
|
|
6756
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
6757
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
6758
|
-
};
|
|
6759
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6760
|
-
/********************************************************************************
|
|
6761
|
-
* Copyright (c) 2023 EclipseSource and others.
|
|
6762
|
-
*
|
|
6763
|
-
* This program and the accompanying materials are made available under the
|
|
6764
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6765
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
6766
|
-
*
|
|
6767
|
-
* This Source Code may also be made available under the following Secondary
|
|
6768
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
6769
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
6770
|
-
* with the GNU Classpath Exception which is available at
|
|
6771
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
6772
|
-
*
|
|
6773
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
6774
|
-
********************************************************************************/
|
|
6775
|
-
__exportStar(__webpack_require__(/*! ./default-types */ "../../node_modules/@eclipse-glsp/protocol/lib/model/default-types.js"), exports);
|
|
6776
|
-
__exportStar(__webpack_require__(/*! ./model-schema */ "../../node_modules/@eclipse-glsp/protocol/lib/model/model-schema.js"), exports);
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
6726
|
/***/ }),
|
|
6780
6727
|
|
|
6781
6728
|
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/model/model-schema.js":
|
|
@@ -6931,6 +6878,21 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
6931
6878
|
exports.Bounds = void 0;
|
|
6932
6879
|
const geometry_1 = __webpack_require__(/*! sprotty-protocol/lib/utils/geometry */ "../../node_modules/sprotty-protocol/lib/utils/geometry.js");
|
|
6933
6880
|
Object.defineProperty(exports, "Bounds", ({ enumerable: true, get: function () { return geometry_1.Bounds; } }));
|
|
6881
|
+
const sprotty_geometry_dimension_1 = __webpack_require__(/*! ./sprotty-geometry-dimension */ "../../node_modules/@eclipse-glsp/protocol/lib/sprotty-geometry-dimension.js");
|
|
6882
|
+
const sprotty_geometry_point_1 = __webpack_require__(/*! ./sprotty-geometry-point */ "../../node_modules/@eclipse-glsp/protocol/lib/sprotty-geometry-point.js");
|
|
6883
|
+
const type_util_1 = __webpack_require__(/*! ./utils/type-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/type-util.js");
|
|
6884
|
+
geometry_1.Bounds.ZERO = Object.freeze({
|
|
6885
|
+
x: 0,
|
|
6886
|
+
y: 0,
|
|
6887
|
+
width: 0,
|
|
6888
|
+
height: 0
|
|
6889
|
+
});
|
|
6890
|
+
geometry_1.Bounds.is = (bounds) => type_util_1.AnyObject.is(bounds) &&
|
|
6891
|
+
(0, type_util_1.hasNumberProp)(bounds, 'x') &&
|
|
6892
|
+
(0, type_util_1.hasNumberProp)(bounds, 'y') &&
|
|
6893
|
+
(0, type_util_1.hasNumberProp)(bounds, 'width') &&
|
|
6894
|
+
(0, type_util_1.hasNumberProp)(bounds, 'height');
|
|
6895
|
+
geometry_1.Bounds.isValid = (bounds) => bounds !== undefined && sprotty_geometry_dimension_1.Dimension.isValid(bounds) && sprotty_geometry_point_1.Point.isValid(bounds);
|
|
6934
6896
|
geometry_1.Bounds.encompasses = (outer, inner) => geometry_1.Bounds.includes(outer, geometry_1.Bounds.topLeft(inner)) && geometry_1.Bounds.includes(outer, geometry_1.Bounds.bottomRight(inner));
|
|
6935
6897
|
geometry_1.Bounds.overlap = (one, other, touch) => {
|
|
6936
6898
|
const oneTopLeft = geometry_1.Bounds.topLeft(one);
|
|
@@ -6947,7 +6909,7 @@ geometry_1.Bounds.overlap = (one, other, touch) => {
|
|
|
6947
6909
|
oneBottomRight.y > otherTopLeft.y &&
|
|
6948
6910
|
otherBottomRight.y > oneTopLeft.y;
|
|
6949
6911
|
};
|
|
6950
|
-
geometry_1.Bounds.equals = (left, right) =>
|
|
6912
|
+
geometry_1.Bounds.equals = (left, right, eps) => sprotty_geometry_point_1.Point.equals(left, right, eps) && sprotty_geometry_dimension_1.Dimension.equals(left, right, eps);
|
|
6951
6913
|
geometry_1.Bounds.left = (bounds) => bounds.x;
|
|
6952
6914
|
geometry_1.Bounds.centerX = (bounds) => bounds.x + (bounds.width >= 0 ? bounds.width * 0.5 : 0);
|
|
6953
6915
|
geometry_1.Bounds.right = (bounds) => bounds.x + bounds.width;
|
|
@@ -6970,6 +6932,10 @@ geometry_1.Bounds.isBefore = (leftBounds, rightBounds) => geometry_1.Bounds.left
|
|
|
6970
6932
|
geometry_1.Bounds.isAfter = (leftBounds, rightBounds) => geometry_1.Bounds.left(leftBounds) >= geometry_1.Bounds.left(rightBounds);
|
|
6971
6933
|
geometry_1.Bounds.sortBy = (rankFunc, ...bounds) => bounds.sort((left, right) => rankFunc(left) - rankFunc(right));
|
|
6972
6934
|
geometry_1.Bounds.from = (topLeft, bottomRight) => (Object.assign(Object.assign({}, topLeft), { width: bottomRight.x - topLeft.x, height: bottomRight.y - topLeft.y }));
|
|
6935
|
+
geometry_1.Bounds.position = geometry_1.Bounds.topLeft;
|
|
6936
|
+
geometry_1.Bounds.dimension = (bounds) => ({ width: bounds.width, height: bounds.height });
|
|
6937
|
+
geometry_1.Bounds.move = geometry_1.Bounds.translate;
|
|
6938
|
+
geometry_1.Bounds.resize = (bounds, delta) => (Object.assign(Object.assign({}, bounds), { width: bounds.width + delta.width, height: bounds.height + delta.height }));
|
|
6973
6939
|
|
|
6974
6940
|
|
|
6975
6941
|
/***/ }),
|
|
@@ -7002,13 +6968,22 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
7002
6968
|
exports.Dimension = void 0;
|
|
7003
6969
|
const geometry_1 = __webpack_require__(/*! sprotty-protocol/lib/utils/geometry */ "../../node_modules/sprotty-protocol/lib/utils/geometry.js");
|
|
7004
6970
|
Object.defineProperty(exports, "Dimension", ({ enumerable: true, get: function () { return geometry_1.Dimension; } }));
|
|
6971
|
+
const math_util_1 = __webpack_require__(/*! ./utils/math-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/math-util.js");
|
|
6972
|
+
const type_util_1 = __webpack_require__(/*! ./utils/type-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/type-util.js");
|
|
6973
|
+
geometry_1.Dimension.ZERO = Object.freeze({
|
|
6974
|
+
width: 0,
|
|
6975
|
+
height: 0
|
|
6976
|
+
});
|
|
6977
|
+
geometry_1.Dimension.is = (dimension) => type_util_1.AnyObject.is(dimension) && (0, type_util_1.hasNumberProp)(dimension, 'width') && (0, type_util_1.hasNumberProp)(dimension, 'height');
|
|
7005
6978
|
geometry_1.Dimension.center = (d) => ({ x: d.width * 0.5, y: d.height * 0.5 });
|
|
7006
6979
|
geometry_1.Dimension.add = (d, a) => ({ width: d.width + a.width, height: d.height + a.height });
|
|
7007
6980
|
geometry_1.Dimension.subtract = (d, a) => ({ width: d.width - a.width, height: d.height - a.height });
|
|
7008
6981
|
geometry_1.Dimension.multiplyMeasure = (d, m) => ({ width: d.width * m, height: d.height * m });
|
|
7009
6982
|
geometry_1.Dimension.divideMeasure = (d, m) => ({ width: d.width / m, height: d.height / m });
|
|
7010
6983
|
geometry_1.Dimension.map = (dimension, callbackfn) => (Object.assign(Object.assign({}, dimension), { width: callbackfn(dimension.width, 'width'), height: callbackfn(dimension.height, 'height') }));
|
|
7011
|
-
geometry_1.Dimension.equals = (left, right) => left.width
|
|
6984
|
+
geometry_1.Dimension.equals = (left, right, eps) => (0, math_util_1.equalUpTo)(left.width, right.width, eps) && (0, math_util_1.equalUpTo)(left.height, right.height, eps);
|
|
6985
|
+
geometry_1.Dimension.fromPoint = (point) => ({ width: point.x, height: point.y });
|
|
6986
|
+
geometry_1.Dimension.area = (dimension) => dimension.width * dimension.height;
|
|
7012
6987
|
|
|
7013
6988
|
|
|
7014
6989
|
/***/ }),
|
|
@@ -7041,8 +7016,10 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
7041
7016
|
exports.Point = void 0;
|
|
7042
7017
|
const geometry_1 = __webpack_require__(/*! sprotty-protocol/lib/utils/geometry */ "../../node_modules/sprotty-protocol/lib/utils/geometry.js");
|
|
7043
7018
|
Object.defineProperty(exports, "Point", ({ enumerable: true, get: function () { return geometry_1.Point; } }));
|
|
7044
|
-
const
|
|
7045
|
-
|
|
7019
|
+
const geometry_vector_1 = __webpack_require__(/*! ./utils/geometry-vector */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/geometry-vector.js");
|
|
7020
|
+
const math_util_1 = __webpack_require__(/*! ./utils/math-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/math-util.js");
|
|
7021
|
+
const type_util_1 = __webpack_require__(/*! ./utils/type-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/type-util.js");
|
|
7022
|
+
geometry_1.Point.is = (point) => type_util_1.AnyObject.is(point) && (0, type_util_1.hasNumberProp)(point, 'x') && (0, type_util_1.hasNumberProp)(point, 'y');
|
|
7046
7023
|
geometry_1.Point.isOrigin = (point) => geometry_1.Point.equals(point, geometry_1.Point.ORIGIN);
|
|
7047
7024
|
geometry_1.Point.isValid = (point) => point !== undefined && !isNaN(point.x) && !isNaN(point.y);
|
|
7048
7025
|
geometry_1.Point.abs = (point) => geometry_1.Point.map(point, Math.abs);
|
|
@@ -7063,14 +7040,15 @@ geometry_1.Point.snapToGrid = (point, grid, gridOrigin) => {
|
|
|
7063
7040
|
geometry_1.Point.vector = (from, to) => geometry_1.Point.subtract(to, from);
|
|
7064
7041
|
geometry_1.Point.move = (from, to) => {
|
|
7065
7042
|
const vector = geometry_1.Point.vector(from, to);
|
|
7066
|
-
const direction =
|
|
7043
|
+
const direction = geometry_vector_1.Vector.direction(vector);
|
|
7067
7044
|
return { from, to, vector, direction };
|
|
7068
7045
|
};
|
|
7069
7046
|
geometry_1.Point.moveTowards = (from, vector) => {
|
|
7070
7047
|
const to = geometry_1.Point.add(from, vector);
|
|
7071
|
-
const dir =
|
|
7048
|
+
const dir = geometry_vector_1.Vector.direction(vector);
|
|
7072
7049
|
return { from, to, vector, direction: dir };
|
|
7073
7050
|
};
|
|
7051
|
+
geometry_1.Point.equals = (one, other, eps) => (0, math_util_1.equalUpTo)(one.x, other.x, eps) && (0, math_util_1.equalUpTo)(one.y, other.y, eps);
|
|
7074
7052
|
|
|
7075
7053
|
|
|
7076
7054
|
/***/ }),
|
|
@@ -7417,7 +7395,7 @@ exports.Emitter = Emitter;
|
|
|
7417
7395
|
********************************************************************************/
|
|
7418
7396
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7419
7397
|
exports.Movement = void 0;
|
|
7420
|
-
const
|
|
7398
|
+
const sprotty_geometry_point_1 = __webpack_require__(/*! ../sprotty-geometry-point */ "../../node_modules/@eclipse-glsp/protocol/lib/sprotty-geometry-point.js");
|
|
7421
7399
|
const geometry_vector_1 = __webpack_require__(/*! ./geometry-vector */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/geometry-vector.js");
|
|
7422
7400
|
const type_util_1 = __webpack_require__(/*! ./type-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/type-util.js");
|
|
7423
7401
|
/**
|
|
@@ -7430,8 +7408,8 @@ var Movement;
|
|
|
7430
7408
|
* The zero movement. It has from and to set to the origin and the vector set to zero.
|
|
7431
7409
|
*/
|
|
7432
7410
|
Movement.ZERO = Object.freeze({
|
|
7433
|
-
from:
|
|
7434
|
-
to:
|
|
7411
|
+
from: sprotty_geometry_point_1.Point.ORIGIN,
|
|
7412
|
+
to: sprotty_geometry_point_1.Point.ORIGIN,
|
|
7435
7413
|
vector: geometry_vector_1.Vector.ZERO,
|
|
7436
7414
|
direction: []
|
|
7437
7415
|
});
|
|
@@ -7443,9 +7421,9 @@ var Movement;
|
|
|
7443
7421
|
function is(obj) {
|
|
7444
7422
|
return (type_util_1.AnyObject.is(obj) &&
|
|
7445
7423
|
(0, type_util_1.hasObjectProp)(obj, 'from') &&
|
|
7446
|
-
|
|
7424
|
+
sprotty_geometry_point_1.Point.is(obj.from) &&
|
|
7447
7425
|
(0, type_util_1.hasObjectProp)(obj, 'to') &&
|
|
7448
|
-
|
|
7426
|
+
sprotty_geometry_point_1.Point.is(obj.to) &&
|
|
7449
7427
|
(0, type_util_1.hasObjectProp)(obj, 'vector') &&
|
|
7450
7428
|
geometry_vector_1.Vector.is(obj.to) &&
|
|
7451
7429
|
(0, type_util_1.hasObjectProp)(obj, 'direction'));
|
|
@@ -7476,7 +7454,7 @@ var Movement;
|
|
|
7476
7454
|
* @returns true if the movements are equal, false otherwise
|
|
7477
7455
|
*/
|
|
7478
7456
|
function equals(left, right) {
|
|
7479
|
-
return
|
|
7457
|
+
return sprotty_geometry_point_1.Point.equals(left.from, right.from) && sprotty_geometry_point_1.Point.equals(left.to, right.to) && geometry_vector_1.Vector.equals(left.vector, right.vector);
|
|
7480
7458
|
}
|
|
7481
7459
|
Movement.equals = equals;
|
|
7482
7460
|
})(Movement || (exports.Movement = Movement = {}));
|
|
@@ -7759,31 +7737,16 @@ var Vector;
|
|
|
7759
7737
|
|
|
7760
7738
|
/***/ }),
|
|
7761
7739
|
|
|
7762
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/utils/
|
|
7763
|
-
|
|
7764
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/lib/utils/
|
|
7765
|
-
|
|
7766
|
-
/***/ (
|
|
7740
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/utils/math-util.js":
|
|
7741
|
+
/*!************************************************************************!*\
|
|
7742
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/lib/utils/math-util.js ***!
|
|
7743
|
+
\************************************************************************/
|
|
7744
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
7767
7745
|
|
|
7768
7746
|
"use strict";
|
|
7769
7747
|
|
|
7770
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7771
|
-
if (k2 === undefined) k2 = k;
|
|
7772
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7773
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7774
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7775
|
-
}
|
|
7776
|
-
Object.defineProperty(o, k2, desc);
|
|
7777
|
-
}) : (function(o, m, k, k2) {
|
|
7778
|
-
if (k2 === undefined) k2 = k;
|
|
7779
|
-
o[k2] = m[k];
|
|
7780
|
-
}));
|
|
7781
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
7782
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
7783
|
-
};
|
|
7784
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7785
7748
|
/********************************************************************************
|
|
7786
|
-
* Copyright (c)
|
|
7749
|
+
* Copyright (c) 2024 Axon Ivy AG and others.
|
|
7787
7750
|
*
|
|
7788
7751
|
* This program and the accompanying materials are made available under the
|
|
7789
7752
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -7797,13 +7760,12 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
7797
7760
|
*
|
|
7798
7761
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
7799
7762
|
********************************************************************************/
|
|
7800
|
-
|
|
7801
|
-
|
|
7802
|
-
|
|
7803
|
-
|
|
7804
|
-
|
|
7805
|
-
|
|
7806
|
-
__exportStar(__webpack_require__(/*! ./type-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/type-util.js"), exports);
|
|
7763
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7764
|
+
exports.equalUpTo = void 0;
|
|
7765
|
+
function equalUpTo(one, other, epsilon = Number.EPSILON) {
|
|
7766
|
+
return Math.abs(one - other) <= epsilon;
|
|
7767
|
+
}
|
|
7768
|
+
exports.equalUpTo = equalUpTo;
|
|
7807
7769
|
|
|
7808
7770
|
|
|
7809
7771
|
/***/ }),
|
|
@@ -7832,7 +7794,7 @@ __exportStar(__webpack_require__(/*! ./type-util */ "../../node_modules/@eclipse
|
|
|
7832
7794
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
7833
7795
|
********************************************************************************/
|
|
7834
7796
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7835
|
-
exports.hasArrayProp = exports.hasFunctionProp = exports.hasObjectProp = exports.hasNumberProp = exports.hasBooleanProp = exports.hasStringProp = exports.call = exports.toTypeGuard = exports.AnyObject = void 0;
|
|
7797
|
+
exports.hasArrayProp = exports.hasFunctionProp = exports.hasObjectProp = exports.hasNumberProp = exports.hasBooleanProp = exports.hasStringProp = exports.call = exports.toTypeGuard = exports.typeGuard = exports.AnyObject = void 0;
|
|
7836
7798
|
var AnyObject;
|
|
7837
7799
|
(function (AnyObject) {
|
|
7838
7800
|
/**
|
|
@@ -7846,6 +7808,11 @@ var AnyObject;
|
|
|
7846
7808
|
}
|
|
7847
7809
|
AnyObject.is = is;
|
|
7848
7810
|
})(AnyObject || (exports.AnyObject = AnyObject = {}));
|
|
7811
|
+
/** Utility function to combine two type guards */
|
|
7812
|
+
function typeGuard(one, other) {
|
|
7813
|
+
return (element) => one(element) && other(element);
|
|
7814
|
+
}
|
|
7815
|
+
exports.typeGuard = typeGuard;
|
|
7849
7816
|
/**
|
|
7850
7817
|
* Utility function that create a typeguard function for a given class constructor.
|
|
7851
7818
|
* Essentially this wraps an instance of check as typeguard function.
|
|
@@ -31856,6 +31823,277 @@ function v4(options, buf, offset) {
|
|
|
31856
31823
|
module.exports = v4;
|
|
31857
31824
|
|
|
31858
31825
|
|
|
31826
|
+
/***/ }),
|
|
31827
|
+
|
|
31828
|
+
/***/ "../../node_modules/vscode-jsonrpc/browser.js":
|
|
31829
|
+
/*!****************************************************!*\
|
|
31830
|
+
!*** ../../node_modules/vscode-jsonrpc/browser.js ***!
|
|
31831
|
+
\****************************************************/
|
|
31832
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
31833
|
+
|
|
31834
|
+
"use strict";
|
|
31835
|
+
/* --------------------------------------------------------------------------------------------
|
|
31836
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
31837
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
31838
|
+
* ----------------------------------------------------------------------------------------- */
|
|
31839
|
+
|
|
31840
|
+
|
|
31841
|
+
module.exports = __webpack_require__(/*! ./lib/browser/main */ "../../node_modules/vscode-jsonrpc/lib/browser/main.js");
|
|
31842
|
+
|
|
31843
|
+
/***/ }),
|
|
31844
|
+
|
|
31845
|
+
/***/ "../../node_modules/vscode-jsonrpc/lib/browser/main.js":
|
|
31846
|
+
/*!*************************************************************!*\
|
|
31847
|
+
!*** ../../node_modules/vscode-jsonrpc/lib/browser/main.js ***!
|
|
31848
|
+
\*************************************************************/
|
|
31849
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
31850
|
+
|
|
31851
|
+
"use strict";
|
|
31852
|
+
|
|
31853
|
+
/* --------------------------------------------------------------------------------------------
|
|
31854
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
31855
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
31856
|
+
* ------------------------------------------------------------------------------------------ */
|
|
31857
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
31858
|
+
if (k2 === undefined) k2 = k;
|
|
31859
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
31860
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
31861
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
31862
|
+
}
|
|
31863
|
+
Object.defineProperty(o, k2, desc);
|
|
31864
|
+
}) : (function(o, m, k, k2) {
|
|
31865
|
+
if (k2 === undefined) k2 = k;
|
|
31866
|
+
o[k2] = m[k];
|
|
31867
|
+
}));
|
|
31868
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
31869
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
31870
|
+
};
|
|
31871
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
31872
|
+
exports.createMessageConnection = exports.BrowserMessageWriter = exports.BrowserMessageReader = void 0;
|
|
31873
|
+
const ril_1 = __webpack_require__(/*! ./ril */ "../../node_modules/vscode-jsonrpc/lib/browser/ril.js");
|
|
31874
|
+
// Install the browser runtime abstract.
|
|
31875
|
+
ril_1.default.install();
|
|
31876
|
+
const api_1 = __webpack_require__(/*! ../common/api */ "../../node_modules/vscode-jsonrpc/lib/common/api.js");
|
|
31877
|
+
__exportStar(__webpack_require__(/*! ../common/api */ "../../node_modules/vscode-jsonrpc/lib/common/api.js"), exports);
|
|
31878
|
+
class BrowserMessageReader extends api_1.AbstractMessageReader {
|
|
31879
|
+
constructor(port) {
|
|
31880
|
+
super();
|
|
31881
|
+
this._onData = new api_1.Emitter();
|
|
31882
|
+
this._messageListener = (event) => {
|
|
31883
|
+
this._onData.fire(event.data);
|
|
31884
|
+
};
|
|
31885
|
+
port.addEventListener('error', (event) => this.fireError(event));
|
|
31886
|
+
port.onmessage = this._messageListener;
|
|
31887
|
+
}
|
|
31888
|
+
listen(callback) {
|
|
31889
|
+
return this._onData.event(callback);
|
|
31890
|
+
}
|
|
31891
|
+
}
|
|
31892
|
+
exports.BrowserMessageReader = BrowserMessageReader;
|
|
31893
|
+
class BrowserMessageWriter extends api_1.AbstractMessageWriter {
|
|
31894
|
+
constructor(port) {
|
|
31895
|
+
super();
|
|
31896
|
+
this.port = port;
|
|
31897
|
+
this.errorCount = 0;
|
|
31898
|
+
port.addEventListener('error', (event) => this.fireError(event));
|
|
31899
|
+
}
|
|
31900
|
+
write(msg) {
|
|
31901
|
+
try {
|
|
31902
|
+
this.port.postMessage(msg);
|
|
31903
|
+
return Promise.resolve();
|
|
31904
|
+
}
|
|
31905
|
+
catch (error) {
|
|
31906
|
+
this.handleError(error, msg);
|
|
31907
|
+
return Promise.reject(error);
|
|
31908
|
+
}
|
|
31909
|
+
}
|
|
31910
|
+
handleError(error, msg) {
|
|
31911
|
+
this.errorCount++;
|
|
31912
|
+
this.fireError(error, msg, this.errorCount);
|
|
31913
|
+
}
|
|
31914
|
+
end() {
|
|
31915
|
+
}
|
|
31916
|
+
}
|
|
31917
|
+
exports.BrowserMessageWriter = BrowserMessageWriter;
|
|
31918
|
+
function createMessageConnection(reader, writer, logger, options) {
|
|
31919
|
+
if (logger === undefined) {
|
|
31920
|
+
logger = api_1.NullLogger;
|
|
31921
|
+
}
|
|
31922
|
+
if (api_1.ConnectionStrategy.is(options)) {
|
|
31923
|
+
options = { connectionStrategy: options };
|
|
31924
|
+
}
|
|
31925
|
+
return (0, api_1.createMessageConnection)(reader, writer, logger, options);
|
|
31926
|
+
}
|
|
31927
|
+
exports.createMessageConnection = createMessageConnection;
|
|
31928
|
+
|
|
31929
|
+
|
|
31930
|
+
/***/ }),
|
|
31931
|
+
|
|
31932
|
+
/***/ "../../node_modules/vscode-jsonrpc/lib/browser/ril.js":
|
|
31933
|
+
/*!************************************************************!*\
|
|
31934
|
+
!*** ../../node_modules/vscode-jsonrpc/lib/browser/ril.js ***!
|
|
31935
|
+
\************************************************************/
|
|
31936
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
31937
|
+
|
|
31938
|
+
"use strict";
|
|
31939
|
+
|
|
31940
|
+
/* --------------------------------------------------------------------------------------------
|
|
31941
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
31942
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
31943
|
+
* ------------------------------------------------------------------------------------------ */
|
|
31944
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
31945
|
+
const api_1 = __webpack_require__(/*! ../common/api */ "../../node_modules/vscode-jsonrpc/lib/common/api.js");
|
|
31946
|
+
class MessageBuffer extends api_1.AbstractMessageBuffer {
|
|
31947
|
+
constructor(encoding = 'utf-8') {
|
|
31948
|
+
super(encoding);
|
|
31949
|
+
this.asciiDecoder = new TextDecoder('ascii');
|
|
31950
|
+
}
|
|
31951
|
+
emptyBuffer() {
|
|
31952
|
+
return MessageBuffer.emptyBuffer;
|
|
31953
|
+
}
|
|
31954
|
+
fromString(value, _encoding) {
|
|
31955
|
+
return (new TextEncoder()).encode(value);
|
|
31956
|
+
}
|
|
31957
|
+
toString(value, encoding) {
|
|
31958
|
+
if (encoding === 'ascii') {
|
|
31959
|
+
return this.asciiDecoder.decode(value);
|
|
31960
|
+
}
|
|
31961
|
+
else {
|
|
31962
|
+
return (new TextDecoder(encoding)).decode(value);
|
|
31963
|
+
}
|
|
31964
|
+
}
|
|
31965
|
+
asNative(buffer, length) {
|
|
31966
|
+
if (length === undefined) {
|
|
31967
|
+
return buffer;
|
|
31968
|
+
}
|
|
31969
|
+
else {
|
|
31970
|
+
return buffer.slice(0, length);
|
|
31971
|
+
}
|
|
31972
|
+
}
|
|
31973
|
+
allocNative(length) {
|
|
31974
|
+
return new Uint8Array(length);
|
|
31975
|
+
}
|
|
31976
|
+
}
|
|
31977
|
+
MessageBuffer.emptyBuffer = new Uint8Array(0);
|
|
31978
|
+
class ReadableStreamWrapper {
|
|
31979
|
+
constructor(socket) {
|
|
31980
|
+
this.socket = socket;
|
|
31981
|
+
this._onData = new api_1.Emitter();
|
|
31982
|
+
this._messageListener = (event) => {
|
|
31983
|
+
const blob = event.data;
|
|
31984
|
+
blob.arrayBuffer().then((buffer) => {
|
|
31985
|
+
this._onData.fire(new Uint8Array(buffer));
|
|
31986
|
+
}, () => {
|
|
31987
|
+
(0, api_1.RAL)().console.error(`Converting blob to array buffer failed.`);
|
|
31988
|
+
});
|
|
31989
|
+
};
|
|
31990
|
+
this.socket.addEventListener('message', this._messageListener);
|
|
31991
|
+
}
|
|
31992
|
+
onClose(listener) {
|
|
31993
|
+
this.socket.addEventListener('close', listener);
|
|
31994
|
+
return api_1.Disposable.create(() => this.socket.removeEventListener('close', listener));
|
|
31995
|
+
}
|
|
31996
|
+
onError(listener) {
|
|
31997
|
+
this.socket.addEventListener('error', listener);
|
|
31998
|
+
return api_1.Disposable.create(() => this.socket.removeEventListener('error', listener));
|
|
31999
|
+
}
|
|
32000
|
+
onEnd(listener) {
|
|
32001
|
+
this.socket.addEventListener('end', listener);
|
|
32002
|
+
return api_1.Disposable.create(() => this.socket.removeEventListener('end', listener));
|
|
32003
|
+
}
|
|
32004
|
+
onData(listener) {
|
|
32005
|
+
return this._onData.event(listener);
|
|
32006
|
+
}
|
|
32007
|
+
}
|
|
32008
|
+
class WritableStreamWrapper {
|
|
32009
|
+
constructor(socket) {
|
|
32010
|
+
this.socket = socket;
|
|
32011
|
+
}
|
|
32012
|
+
onClose(listener) {
|
|
32013
|
+
this.socket.addEventListener('close', listener);
|
|
32014
|
+
return api_1.Disposable.create(() => this.socket.removeEventListener('close', listener));
|
|
32015
|
+
}
|
|
32016
|
+
onError(listener) {
|
|
32017
|
+
this.socket.addEventListener('error', listener);
|
|
32018
|
+
return api_1.Disposable.create(() => this.socket.removeEventListener('error', listener));
|
|
32019
|
+
}
|
|
32020
|
+
onEnd(listener) {
|
|
32021
|
+
this.socket.addEventListener('end', listener);
|
|
32022
|
+
return api_1.Disposable.create(() => this.socket.removeEventListener('end', listener));
|
|
32023
|
+
}
|
|
32024
|
+
write(data, encoding) {
|
|
32025
|
+
if (typeof data === 'string') {
|
|
32026
|
+
if (encoding !== undefined && encoding !== 'utf-8') {
|
|
32027
|
+
throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${encoding}`);
|
|
32028
|
+
}
|
|
32029
|
+
this.socket.send(data);
|
|
32030
|
+
}
|
|
32031
|
+
else {
|
|
32032
|
+
this.socket.send(data);
|
|
32033
|
+
}
|
|
32034
|
+
return Promise.resolve();
|
|
32035
|
+
}
|
|
32036
|
+
end() {
|
|
32037
|
+
this.socket.close();
|
|
32038
|
+
}
|
|
32039
|
+
}
|
|
32040
|
+
const _textEncoder = new TextEncoder();
|
|
32041
|
+
const _ril = Object.freeze({
|
|
32042
|
+
messageBuffer: Object.freeze({
|
|
32043
|
+
create: (encoding) => new MessageBuffer(encoding)
|
|
32044
|
+
}),
|
|
32045
|
+
applicationJson: Object.freeze({
|
|
32046
|
+
encoder: Object.freeze({
|
|
32047
|
+
name: 'application/json',
|
|
32048
|
+
encode: (msg, options) => {
|
|
32049
|
+
if (options.charset !== 'utf-8') {
|
|
32050
|
+
throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${options.charset}`);
|
|
32051
|
+
}
|
|
32052
|
+
return Promise.resolve(_textEncoder.encode(JSON.stringify(msg, undefined, 0)));
|
|
32053
|
+
}
|
|
32054
|
+
}),
|
|
32055
|
+
decoder: Object.freeze({
|
|
32056
|
+
name: 'application/json',
|
|
32057
|
+
decode: (buffer, options) => {
|
|
32058
|
+
if (!(buffer instanceof Uint8Array)) {
|
|
32059
|
+
throw new Error(`In a Browser environments only Uint8Arrays are supported.`);
|
|
32060
|
+
}
|
|
32061
|
+
return Promise.resolve(JSON.parse(new TextDecoder(options.charset).decode(buffer)));
|
|
32062
|
+
}
|
|
32063
|
+
})
|
|
32064
|
+
}),
|
|
32065
|
+
stream: Object.freeze({
|
|
32066
|
+
asReadableStream: (socket) => new ReadableStreamWrapper(socket),
|
|
32067
|
+
asWritableStream: (socket) => new WritableStreamWrapper(socket)
|
|
32068
|
+
}),
|
|
32069
|
+
console: console,
|
|
32070
|
+
timer: Object.freeze({
|
|
32071
|
+
setTimeout(callback, ms, ...args) {
|
|
32072
|
+
const handle = setTimeout(callback, ms, ...args);
|
|
32073
|
+
return { dispose: () => clearTimeout(handle) };
|
|
32074
|
+
},
|
|
32075
|
+
setImmediate(callback, ...args) {
|
|
32076
|
+
const handle = setTimeout(callback, 0, ...args);
|
|
32077
|
+
return { dispose: () => clearTimeout(handle) };
|
|
32078
|
+
},
|
|
32079
|
+
setInterval(callback, ms, ...args) {
|
|
32080
|
+
const handle = setInterval(callback, ms, ...args);
|
|
32081
|
+
return { dispose: () => clearInterval(handle) };
|
|
32082
|
+
},
|
|
32083
|
+
})
|
|
32084
|
+
});
|
|
32085
|
+
function RIL() {
|
|
32086
|
+
return _ril;
|
|
32087
|
+
}
|
|
32088
|
+
(function (RIL) {
|
|
32089
|
+
function install() {
|
|
32090
|
+
api_1.RAL.install(_ril);
|
|
32091
|
+
}
|
|
32092
|
+
RIL.install = install;
|
|
32093
|
+
})(RIL || (RIL = {}));
|
|
32094
|
+
exports["default"] = RIL;
|
|
32095
|
+
|
|
32096
|
+
|
|
31859
32097
|
/***/ }),
|
|
31860
32098
|
|
|
31861
32099
|
/***/ "../../node_modules/vscode-jsonrpc/lib/common/api.js":
|