@eclipse-glsp/client 2.2.0-next.343 → 2.2.0-next.344

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 (171) hide show
  1. package/lib/base/default.module.d.ts.map +1 -1
  2. package/lib/base/default.module.js +2 -0
  3. package/lib/base/default.module.js.map +1 -1
  4. package/lib/features/accessibility/accessibility-module.d.ts.map +1 -1
  5. package/lib/features/accessibility/accessibility-module.js +7 -5
  6. package/lib/features/accessibility/accessibility-module.js.map +1 -1
  7. package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-module.d.ts +1 -1
  8. package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-module.d.ts.map +1 -1
  9. package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-module.js +7 -7
  10. package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-module.js.map +1 -1
  11. package/lib/features/accessibility/keyboard-tool-palette/keyboard-tool-palette-module.d.ts.map +1 -1
  12. package/lib/features/accessibility/keyboard-tool-palette/keyboard-tool-palette-module.js +1 -1
  13. package/lib/features/accessibility/keyboard-tool-palette/keyboard-tool-palette-module.js.map +1 -1
  14. package/lib/features/accessibility/move-zoom/move-zoom-module.d.ts.map +1 -1
  15. package/lib/features/accessibility/move-zoom/move-zoom-module.js +1 -1
  16. package/lib/features/accessibility/move-zoom/move-zoom-module.js.map +1 -1
  17. package/lib/features/accessibility/resize-key-tool/resize-key-module.d.ts.map +1 -1
  18. package/lib/features/accessibility/resize-key-tool/resize-key-module.js +1 -1
  19. package/lib/features/accessibility/resize-key-tool/resize-key-module.js.map +1 -1
  20. package/lib/features/accessibility/search/search-palette-module.d.ts.map +1 -1
  21. package/lib/features/accessibility/search/search-palette-module.js +1 -1
  22. package/lib/features/accessibility/search/search-palette-module.js.map +1 -1
  23. package/lib/features/accessibility/view-key-tools/view-key-tools-module.d.ts.map +1 -1
  24. package/lib/features/accessibility/view-key-tools/view-key-tools-module.js +3 -1
  25. package/lib/features/accessibility/view-key-tools/view-key-tools-module.js.map +1 -1
  26. package/lib/features/bounds/bounds-module.d.ts.map +1 -1
  27. package/lib/features/bounds/bounds-module.js +1 -1
  28. package/lib/features/bounds/bounds-module.js.map +1 -1
  29. package/lib/features/command-palette/command-palette-module.d.ts.map +1 -1
  30. package/lib/features/command-palette/command-palette-module.js +1 -1
  31. package/lib/features/command-palette/command-palette-module.js.map +1 -1
  32. package/lib/features/context-menu/context-menu-module.d.ts.map +1 -1
  33. package/lib/features/context-menu/context-menu-module.js +1 -1
  34. package/lib/features/context-menu/context-menu-module.js.map +1 -1
  35. package/lib/features/copy-paste/copy-paste-modules.d.ts.map +1 -1
  36. package/lib/features/copy-paste/copy-paste-modules.js +5 -2
  37. package/lib/features/copy-paste/copy-paste-modules.js.map +1 -1
  38. package/lib/features/debug/debug-module.d.ts.map +1 -1
  39. package/lib/features/debug/debug-module.js +1 -1
  40. package/lib/features/debug/debug-module.js.map +1 -1
  41. package/lib/features/decoration/decoration-module.d.ts.map +1 -1
  42. package/lib/features/decoration/decoration-module.js +1 -1
  43. package/lib/features/decoration/decoration-module.js.map +1 -1
  44. package/lib/features/element-template/element-template-module.d.ts.map +1 -1
  45. package/lib/features/element-template/element-template-module.js +1 -1
  46. package/lib/features/element-template/element-template-module.js.map +1 -1
  47. package/lib/features/export/export-modules.d.ts.map +1 -1
  48. package/lib/features/export/export-modules.js +2 -2
  49. package/lib/features/export/export-modules.js.map +1 -1
  50. package/lib/features/grid/grid-module.d.ts.map +1 -1
  51. package/lib/features/grid/grid-module.js +1 -1
  52. package/lib/features/grid/grid-module.js.map +1 -1
  53. package/lib/features/helper-lines/helper-line-module.d.ts.map +1 -1
  54. package/lib/features/helper-lines/helper-line-module.js +1 -1
  55. package/lib/features/helper-lines/helper-line-module.js.map +1 -1
  56. package/lib/features/hints/type-hints-module.d.ts.map +1 -1
  57. package/lib/features/hints/type-hints-module.js +1 -1
  58. package/lib/features/hints/type-hints-module.js.map +1 -1
  59. package/lib/features/hover/hover-module.d.ts.map +1 -1
  60. package/lib/features/hover/hover-module.js +1 -1
  61. package/lib/features/hover/hover-module.js.map +1 -1
  62. package/lib/features/label-edit/label-edit-module.d.ts.map +1 -1
  63. package/lib/features/label-edit/label-edit-module.js +1 -1
  64. package/lib/features/label-edit/label-edit-module.js.map +1 -1
  65. package/lib/features/label-edit-ui/label-edit-ui-module.d.ts.map +1 -1
  66. package/lib/features/label-edit-ui/label-edit-ui-module.js +1 -1
  67. package/lib/features/label-edit-ui/label-edit-ui-module.js.map +1 -1
  68. package/lib/features/layout/layout-module.d.ts.map +1 -1
  69. package/lib/features/layout/layout-module.js +1 -1
  70. package/lib/features/layout/layout-module.js.map +1 -1
  71. package/lib/features/navigation/navigation-module.d.ts.map +1 -1
  72. package/lib/features/navigation/navigation-module.js +1 -1
  73. package/lib/features/navigation/navigation-module.js.map +1 -1
  74. package/lib/features/routing/routing-module.d.ts.map +1 -1
  75. package/lib/features/routing/routing-module.js +1 -1
  76. package/lib/features/routing/routing-module.js.map +1 -1
  77. package/lib/features/save/save-module.d.ts.map +1 -1
  78. package/lib/features/save/save-module.js +1 -1
  79. package/lib/features/save/save-module.js.map +1 -1
  80. package/lib/features/select/select-module.d.ts.map +1 -1
  81. package/lib/features/select/select-module.js +2 -2
  82. package/lib/features/select/select-module.js.map +1 -1
  83. package/lib/features/source-model-watcher/source-model-watcher-module.d.ts.map +1 -1
  84. package/lib/features/source-model-watcher/source-model-watcher-module.js +1 -1
  85. package/lib/features/source-model-watcher/source-model-watcher-module.js.map +1 -1
  86. package/lib/features/status/status-module.d.ts.map +1 -1
  87. package/lib/features/status/status-module.js +1 -1
  88. package/lib/features/status/status-module.js.map +1 -1
  89. package/lib/features/svg-metadata/svg-metadata-module.d.ts.map +1 -1
  90. package/lib/features/svg-metadata/svg-metadata-module.js +1 -1
  91. package/lib/features/svg-metadata/svg-metadata-module.js.map +1 -1
  92. package/lib/features/tool-palette/tool-palette-module.d.ts.map +1 -1
  93. package/lib/features/tool-palette/tool-palette-module.js +1 -1
  94. package/lib/features/tool-palette/tool-palette-module.js.map +1 -1
  95. package/lib/features/tools/change-bounds/change-bounds-tool-module.d.ts.map +1 -1
  96. package/lib/features/tools/change-bounds/change-bounds-tool-module.js +1 -1
  97. package/lib/features/tools/change-bounds/change-bounds-tool-module.js.map +1 -1
  98. package/lib/features/tools/deletion/deletion-tool-module.d.ts.map +1 -1
  99. package/lib/features/tools/deletion/deletion-tool-module.js +1 -1
  100. package/lib/features/tools/deletion/deletion-tool-module.js.map +1 -1
  101. package/lib/features/tools/edge-creation/edege-creation-module.d.ts.map +1 -1
  102. package/lib/features/tools/edge-creation/edege-creation-module.js +1 -1
  103. package/lib/features/tools/edge-creation/edege-creation-module.js.map +1 -1
  104. package/lib/features/tools/edge-edit/edge-edit-module.d.ts.map +1 -1
  105. package/lib/features/tools/edge-edit/edge-edit-module.js +1 -1
  106. package/lib/features/tools/edge-edit/edge-edit-module.js.map +1 -1
  107. package/lib/features/tools/marquee-selection/marquee-selection-module.d.ts.map +1 -1
  108. package/lib/features/tools/marquee-selection/marquee-selection-module.js +1 -1
  109. package/lib/features/tools/marquee-selection/marquee-selection-module.js.map +1 -1
  110. package/lib/features/tools/node-creation/node-creation-module.d.ts.map +1 -1
  111. package/lib/features/tools/node-creation/node-creation-module.js +4 -1
  112. package/lib/features/tools/node-creation/node-creation-module.js.map +1 -1
  113. package/lib/features/tools/tool-focus-loss-module.d.ts +15 -0
  114. package/lib/features/tools/tool-focus-loss-module.d.ts.map +1 -1
  115. package/lib/features/tools/tool-focus-loss-module.js +2 -2
  116. package/lib/features/tools/tool-focus-loss-module.js.map +1 -1
  117. package/lib/features/validation/validation-modules.d.ts.map +1 -1
  118. package/lib/features/validation/validation-modules.js +3 -3
  119. package/lib/features/validation/validation-modules.js.map +1 -1
  120. package/lib/features/viewport/viewport-modules.d.ts.map +1 -1
  121. package/lib/features/viewport/viewport-modules.js +2 -2
  122. package/lib/features/viewport/viewport-modules.js.map +1 -1
  123. package/lib/standalone-modules.d.ts.map +1 -1
  124. package/lib/standalone-modules.js +1 -1
  125. package/lib/standalone-modules.js.map +1 -1
  126. package/lib/views/base-view-module.d.ts.map +1 -1
  127. package/lib/views/base-view-module.js +1 -1
  128. package/lib/views/base-view-module.js.map +1 -1
  129. package/package.json +3 -3
  130. package/src/base/default.module.ts +80 -73
  131. package/src/features/accessibility/accessibility-module.ts +23 -18
  132. package/src/features/accessibility/keyboard-pointer/keyboard-pointer-module.ts +18 -15
  133. package/src/features/accessibility/keyboard-tool-palette/keyboard-tool-palette-module.ts +7 -4
  134. package/src/features/accessibility/move-zoom/move-zoom-module.ts +7 -4
  135. package/src/features/accessibility/resize-key-tool/resize-key-module.ts +7 -4
  136. package/src/features/accessibility/search/search-palette-module.ts +7 -4
  137. package/src/features/accessibility/view-key-tools/view-key-tools-module.ts +10 -5
  138. package/src/features/bounds/bounds-module.ts +20 -17
  139. package/src/features/command-palette/command-palette-module.ts +9 -6
  140. package/src/features/context-menu/context-menu-module.ts +16 -13
  141. package/src/features/copy-paste/copy-paste-modules.ts +11 -5
  142. package/src/features/debug/debug-module.ts +10 -7
  143. package/src/features/decoration/decoration-module.ts +6 -3
  144. package/src/features/element-template/element-template-module.ts +8 -5
  145. package/src/features/export/export-modules.ts +10 -7
  146. package/src/features/grid/grid-module.ts +11 -8
  147. package/src/features/helper-lines/helper-line-module.ts +16 -13
  148. package/src/features/hints/type-hints-module.ts +10 -7
  149. package/src/features/hover/hover-module.ts +28 -25
  150. package/src/features/label-edit/label-edit-module.ts +9 -6
  151. package/src/features/label-edit-ui/label-edit-ui-module.ts +9 -6
  152. package/src/features/layout/layout-module.ts +8 -5
  153. package/src/features/navigation/navigation-module.ts +11 -8
  154. package/src/features/routing/routing-module.ts +21 -18
  155. package/src/features/save/save-module.ts +6 -3
  156. package/src/features/select/select-module.ts +11 -8
  157. package/src/features/source-model-watcher/source-model-watcher-module.ts +6 -3
  158. package/src/features/status/status-module.ts +9 -6
  159. package/src/features/svg-metadata/svg-metadata-module.ts +7 -4
  160. package/src/features/tool-palette/tool-palette-module.ts +10 -7
  161. package/src/features/tools/change-bounds/change-bounds-tool-module.ts +11 -8
  162. package/src/features/tools/deletion/deletion-tool-module.ts +8 -5
  163. package/src/features/tools/edge-creation/edege-creation-module.ts +9 -6
  164. package/src/features/tools/edge-edit/edge-edit-module.ts +14 -11
  165. package/src/features/tools/marquee-selection/marquee-selection-module.ts +11 -8
  166. package/src/features/tools/node-creation/node-creation-module.ts +4 -1
  167. package/src/features/tools/tool-focus-loss-module.ts +7 -4
  168. package/src/features/validation/validation-modules.ts +19 -13
  169. package/src/features/viewport/viewport-modules.ts +20 -17
  170. package/src/standalone-modules.ts +12 -9
  171. package/src/views/base-view-module.ts +7 -4
@@ -33,25 +33,28 @@ import { OriginViewportCommand } from './origin-viewport';
33
33
  import { RepositionCommand } from './reposition';
34
34
  import { RestoreViewportHandler } from './viewport-handler';
35
35
 
36
- export const viewportModule = new FeatureModule((bind, _unbind, isBound) => {
37
- const context = { bind, isBound };
38
- configureCommand(context, CenterCommand);
39
- configureCommand(context, FitToScreenCommand);
40
- configureCommand(context, GetViewportCommand);
41
- configureCommand(context, SetViewportCommand);
42
- configureCommand(context, RepositionCommand);
43
- configureCommand(context, OriginViewportCommand);
36
+ export const viewportModule = new FeatureModule(
37
+ (bind, _unbind, isBound) => {
38
+ const context = { bind, isBound };
39
+ configureCommand(context, CenterCommand);
40
+ configureCommand(context, FitToScreenCommand);
41
+ configureCommand(context, GetViewportCommand);
42
+ configureCommand(context, SetViewportCommand);
43
+ configureCommand(context, RepositionCommand);
44
+ configureCommand(context, OriginViewportCommand);
44
45
 
45
- bindAsService(context, TYPES.MouseListener, ZoomMouseListener);
46
- bindAsService(context, TYPES.MouseListener, GLSPScrollMouseListener);
46
+ bindAsService(context, TYPES.MouseListener, ZoomMouseListener);
47
+ bindAsService(context, TYPES.MouseListener, GLSPScrollMouseListener);
47
48
 
48
- configureActionHandler(context, EnableToolsAction.KIND, GLSPScrollMouseListener);
49
- configureActionHandler(context, EnableDefaultToolsAction.KIND, GLSPScrollMouseListener);
49
+ configureActionHandler(context, EnableToolsAction.KIND, GLSPScrollMouseListener);
50
+ configureActionHandler(context, EnableDefaultToolsAction.KIND, GLSPScrollMouseListener);
50
51
 
51
- bindAsService(context, TYPES.IDiagramStartup, RestoreViewportHandler);
52
- configureActionHandler(context, EnableDefaultToolsAction.KIND, RestoreViewportHandler);
53
- configureActionHandler(context, FocusDomAction.KIND, RestoreViewportHandler);
54
- });
52
+ bindAsService(context, TYPES.IDiagramStartup, RestoreViewportHandler);
53
+ configureActionHandler(context, EnableDefaultToolsAction.KIND, RestoreViewportHandler);
54
+ configureActionHandler(context, FocusDomAction.KIND, RestoreViewportHandler);
55
+ },
56
+ { featureId: Symbol('viewport') }
57
+ );
55
58
 
56
59
  /**
57
60
  * Feature module that is intended for the standalone deployment of GLSP (i.e. plain webapp)
@@ -63,5 +66,5 @@ export const standaloneViewportModule = new FeatureModule(
63
66
  const context = { bind, isBound };
64
67
  bindAsService(context, TYPES.KeyListener, CenterKeyboardListener);
65
68
  },
66
- { requires: viewportModule }
69
+ { featureId: Symbol('standaloneViewport'), requires: viewportModule }
67
70
  );
@@ -42,15 +42,18 @@ import { undoRedoModule } from './features/undo-redo/undo-redo-module';
42
42
  import { standaloneMarkerNavigatorModule } from './features/validation/validation-modules';
43
43
  import { standaloneViewportModule } from './features/viewport/viewport-modules';
44
44
 
45
- export const standaloneDefaultModule = new FeatureModule((bind, unbind, isBound, rebind) => {
46
- const context = { bind, unbind, isBound, rebind };
47
- bind(FallbackActionHandler).toSelf().inSingletonScope();
48
- configureActionHandler(context, MessageAction.KIND, FallbackActionHandler);
49
- configureActionHandler(context, StartProgressAction.KIND, FallbackActionHandler);
50
- configureActionHandler(context, UpdateProgressAction.KIND, FallbackActionHandler);
51
- configureActionHandler(context, EndProgressAction.KIND, FallbackActionHandler);
52
- bindAsService(context, TYPES.KeyListener, LayoutKeyListener);
53
- });
45
+ export const standaloneDefaultModule = new FeatureModule(
46
+ (bind, unbind, isBound, rebind) => {
47
+ const context = { bind, unbind, isBound, rebind };
48
+ bind(FallbackActionHandler).toSelf().inSingletonScope();
49
+ configureActionHandler(context, MessageAction.KIND, FallbackActionHandler);
50
+ configureActionHandler(context, StartProgressAction.KIND, FallbackActionHandler);
51
+ configureActionHandler(context, UpdateProgressAction.KIND, FallbackActionHandler);
52
+ configureActionHandler(context, EndProgressAction.KIND, FallbackActionHandler);
53
+ bindAsService(context, TYPES.KeyListener, LayoutKeyListener);
54
+ },
55
+ { featureId: Symbol('standaloneDefault') }
56
+ );
54
57
 
55
58
  /**
56
59
  * A fallback action handler for actions sent by features that are currently not supported by
@@ -53,10 +53,13 @@ import { GGraphView } from './ggraph-view';
53
53
  import { GIssueMarkerView } from './issue-marker-view';
54
54
  import { RoundedCornerNodeView } from './rounded-corner-view';
55
55
 
56
- export const baseViewModule = new FeatureModule((bind, unbind, isBound, rebind) => {
57
- const context = { bind, unbind, isBound, rebind };
58
- configureDefaultModelElements(context);
59
- });
56
+ export const baseViewModule = new FeatureModule(
57
+ (bind, unbind, isBound, rebind) => {
58
+ const context = { bind, unbind, isBound, rebind };
59
+ configureDefaultModelElements(context);
60
+ },
61
+ { featureId: Symbol('baseView') }
62
+ );
60
63
 
61
64
  export function configureDefaultModelElements(context: Pick<BindingContext, 'bind' | 'isBound'>): void {
62
65
  // HTML elements