@eclipse-glsp/vscode-integration-webview 1.1.0-RC08 → 1.1.0-RC10

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 (46) hide show
  1. package/README.md +1 -1
  2. package/lib/copy-paste-handler-provider.d.ts +1 -1
  3. package/lib/copy-paste-handler-provider.d.ts.map +1 -1
  4. package/lib/{diagram-identifer.d.ts → diagram-identifier.d.ts} +8 -2
  5. package/lib/diagram-identifier.d.ts.map +1 -0
  6. package/lib/{diagram-identifer.js → diagram-identifier.js} +11 -5
  7. package/lib/diagram-identifier.js.map +1 -0
  8. package/lib/extension-action-handler.d.ts +5 -5
  9. package/lib/extension-action-handler.d.ts.map +1 -1
  10. package/lib/extension-action-handler.js.map +1 -1
  11. package/lib/glsp-diagram-widget.d.ts +35 -0
  12. package/lib/glsp-diagram-widget.d.ts.map +1 -0
  13. package/lib/glsp-diagram-widget.js +136 -0
  14. package/lib/glsp-diagram-widget.js.map +1 -0
  15. package/lib/glsp-starter.d.ts +9 -4
  16. package/lib/glsp-starter.d.ts.map +1 -1
  17. package/lib/glsp-starter.js +24 -19
  18. package/lib/glsp-starter.js.map +1 -1
  19. package/lib/glsp-vscode-diagramserver.d.ts +10 -4
  20. package/lib/glsp-vscode-diagramserver.d.ts.map +1 -1
  21. package/lib/glsp-vscode-diagramserver.js +22 -4
  22. package/lib/glsp-vscode-diagramserver.js.map +1 -1
  23. package/lib/index.d.ts +6 -1
  24. package/lib/index.d.ts.map +1 -1
  25. package/lib/index.js +6 -1
  26. package/lib/index.js.map +1 -1
  27. package/lib/services.d.ts +24 -0
  28. package/lib/services.d.ts.map +1 -0
  29. package/lib/services.js +5 -0
  30. package/lib/services.js.map +1 -0
  31. package/package.json +14 -15
  32. package/src/copy-paste-handler-provider.ts +1 -1
  33. package/src/{diagram-identifer.ts → diagram-identifier.ts} +16 -4
  34. package/src/extension-action-handler.ts +4 -4
  35. package/src/glsp-diagram-widget.ts +136 -0
  36. package/src/glsp-starter.ts +32 -25
  37. package/src/glsp-vscode-diagramserver.ts +23 -3
  38. package/src/index.ts +6 -1
  39. package/src/services.ts +26 -0
  40. package/lib/diagram-identifer.d.ts.map +0 -1
  41. package/lib/diagram-identifer.js.map +0 -1
  42. package/lib/glsp-vscode-diagram-widget.d.ts +0 -6
  43. package/lib/glsp-vscode-diagram-widget.d.ts.map +0 -1
  44. package/lib/glsp-vscode-diagram-widget.js +0 -51
  45. package/lib/glsp-vscode-diagram-widget.js.map +0 -1
  46. package/src/glsp-vscode-diagram-widget.ts +0 -42
@@ -1,42 +0,0 @@
1
- /********************************************************************************
2
- * Copyright (c) 2020-2022 EclipseSource and others.
3
- *
4
- * This program and the accompanying materials are made available under the
5
- * terms of the Eclipse Public License v. 2.0 which is available at
6
- * http://www.eclipse.org/legal/epl-2.0.
7
- *
8
- * This Source Code may also be made available under the following Secondary
9
- * Licenses when the conditions for such availability set forth in the Eclipse
10
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
- * with the GNU Classpath Exception which is available at
12
- * https://www.gnu.org/software/classpath/license.html.
13
- *
14
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
- ********************************************************************************/
16
- import { DiagramServerProxy, EnableToolPaletteAction, RequestModelAction, RequestTypeHintsAction } from '@eclipse-glsp/client';
17
- import { injectable } from 'inversify';
18
- import { VscodeDiagramWidget } from 'sprotty-vscode-webview';
19
-
20
- @injectable()
21
- export abstract class GLSPVscodeDiagramWidget extends VscodeDiagramWidget {
22
- protected override initializeSprotty(): void {
23
- if (this.modelSource instanceof DiagramServerProxy) {
24
- this.modelSource.clientId = this.diagramIdentifier.clientId;
25
- }
26
- this.actionDispatcher.dispatch(
27
- RequestModelAction.create({
28
- options: {
29
- sourceUri: decodeURI(this.diagramIdentifier.uri),
30
- diagramType: this.diagramIdentifier.diagramType
31
- }
32
- })
33
- );
34
-
35
- this.actionDispatcher.dispatch(RequestTypeHintsAction.create());
36
- this.actionDispatcher.dispatch(EnableToolPaletteAction.create());
37
- }
38
- }
39
-
40
- export function decodeURI(uri: string): string {
41
- return decodeURIComponent(uri.replace(/\+/g, ' '));
42
- }