@finos/legend-application 11.0.3 → 12.0.0

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 (178) hide show
  1. package/lib/application/LegendApplication.js +1 -1
  2. package/lib/application/LegendApplication.js.map +1 -1
  3. package/lib/application/LegendApplicationPluginManager.d.ts +1 -1
  4. package/lib/application/LegendApplicationPluginManager.d.ts.map +1 -1
  5. package/lib/components/ActionAlert.d.ts.map +1 -1
  6. package/lib/components/ActionAlert.js +5 -5
  7. package/lib/components/ActionAlert.js.map +1 -1
  8. package/lib/components/ApplicationStoreProviderTestUtils.d.ts +1 -1
  9. package/lib/components/ApplicationStoreProviderTestUtils.d.ts.map +1 -1
  10. package/lib/components/ApplicationStoreProviderTestUtils.js +1 -1
  11. package/lib/components/ApplicationStoreProviderTestUtils.js.map +1 -1
  12. package/lib/components/BlockingAlert.js +1 -1
  13. package/lib/components/BlockingAlert.js.map +1 -1
  14. package/lib/components/LegendApplicationComponentFrameworkProvider.d.ts.map +1 -1
  15. package/lib/components/LegendApplicationComponentFrameworkProvider.js +5 -5
  16. package/lib/components/LegendApplicationComponentFrameworkProvider.js.map +1 -1
  17. package/lib/components/NotificationManager.js +5 -5
  18. package/lib/components/NotificationManager.js.map +1 -1
  19. package/lib/components/VirtualAssistant.d.ts.map +1 -1
  20. package/lib/components/VirtualAssistant.js +4 -4
  21. package/lib/components/VirtualAssistant.js.map +1 -1
  22. package/lib/components/WebApplicationNavigatorProvider.d.ts +1 -1
  23. package/lib/components/WebApplicationNavigatorProvider.d.ts.map +1 -1
  24. package/lib/components/WebApplicationNavigatorProvider.js +1 -1
  25. package/lib/components/WebApplicationNavigatorProvider.js.map +1 -1
  26. package/lib/components/WebApplicationNavigatorProviderTestUtils.d.ts +1 -1
  27. package/lib/components/WebApplicationNavigatorProviderTestUtils.d.ts.map +1 -1
  28. package/lib/components/WebApplicationNavigatorProviderTestUtils.js +1 -1
  29. package/lib/components/WebApplicationNavigatorProviderTestUtils.js.map +1 -1
  30. package/lib/components/shared/DocumentationLink.d.ts.map +1 -1
  31. package/lib/components/shared/DocumentationLink.js +5 -3
  32. package/lib/components/shared/DocumentationLink.js.map +1 -1
  33. package/lib/components/shared/TextInputEditor.js +1 -1
  34. package/lib/components/shared/TextInputEditor.js.map +1 -1
  35. package/lib/components/useCommands.d.ts +1 -1
  36. package/lib/components/useCommands.d.ts.map +1 -1
  37. package/lib/index.css +1 -1
  38. package/lib/index.d.ts +10 -7
  39. package/lib/index.d.ts.map +1 -1
  40. package/lib/index.js +10 -7
  41. package/lib/index.js.map +1 -1
  42. package/lib/package.json +3 -3
  43. package/lib/stores/AlertService.d.ts +13 -3
  44. package/lib/stores/AlertService.d.ts.map +1 -1
  45. package/lib/stores/AlertService.js +36 -0
  46. package/lib/stores/AlertService.js.map +1 -1
  47. package/lib/stores/ApplicationEvent.d.ts +0 -1
  48. package/lib/stores/ApplicationEvent.d.ts.map +1 -1
  49. package/lib/stores/ApplicationEvent.js +0 -1
  50. package/lib/stores/ApplicationEvent.js.map +1 -1
  51. package/lib/stores/ApplicationStore.d.ts +27 -51
  52. package/lib/stores/ApplicationStore.d.ts.map +1 -1
  53. package/lib/stores/ApplicationStore.js +51 -182
  54. package/lib/stores/ApplicationStore.js.map +1 -1
  55. package/lib/stores/ApplicationStoreTestUtils.js +1 -1
  56. package/lib/stores/ApplicationStoreTestUtils.js.map +1 -1
  57. package/lib/stores/ClipboardService.d.ts +22 -0
  58. package/lib/stores/ClipboardService.d.ts.map +1 -0
  59. package/lib/stores/ClipboardService.js +29 -0
  60. package/lib/stores/ClipboardService.js.map +1 -0
  61. package/lib/stores/{CommandCenter.d.ts → CommandService.d.ts} +2 -2
  62. package/lib/stores/CommandService.d.ts.map +1 -0
  63. package/lib/stores/{CommandCenter.js → CommandService.js} +3 -3
  64. package/lib/stores/CommandService.js.map +1 -0
  65. package/lib/stores/DocumentationService.js +3 -3
  66. package/lib/stores/DocumentationService.js.map +1 -1
  67. package/lib/stores/IdentityService.d.ts +7 -1
  68. package/lib/stores/IdentityService.d.ts.map +1 -1
  69. package/lib/stores/IdentityService.js +16 -1
  70. package/lib/stores/IdentityService.js.map +1 -1
  71. package/lib/stores/KeyboardShortcutsService.d.ts.map +1 -1
  72. package/lib/stores/KeyboardShortcutsService.js +2 -9
  73. package/lib/stores/KeyboardShortcutsService.js.map +1 -1
  74. package/lib/stores/LayoutService.d.ts +35 -0
  75. package/lib/stores/LayoutService.d.ts.map +1 -0
  76. package/lib/stores/LayoutService.js +53 -0
  77. package/lib/stores/LayoutService.js.map +1 -0
  78. package/lib/stores/LegendApplicationPlugin.d.ts +2 -2
  79. package/lib/stores/LegendApplicationPlugin.d.ts.map +1 -1
  80. package/lib/stores/NotificationService.d.ts +20 -0
  81. package/lib/stores/NotificationService.d.ts.map +1 -1
  82. package/lib/stores/NotificationService.js +75 -0
  83. package/lib/stores/NotificationService.js.map +1 -1
  84. package/lib/stores/TelemetryService.d.ts +4 -1
  85. package/lib/stores/TelemetryService.d.ts.map +1 -1
  86. package/lib/stores/TelemetryService.js +13 -1
  87. package/lib/stores/TelemetryService.js.map +1 -1
  88. package/lib/stores/event/EventService.d.ts.map +1 -0
  89. package/lib/stores/event/EventService.js.map +1 -0
  90. package/lib/stores/event/IframeEventNotifierPlugin.d.ts.map +1 -0
  91. package/lib/stores/{IframeEventNotifierPlugin.js → event/IframeEventNotifierPlugin.js} +1 -1
  92. package/lib/stores/event/IframeEventNotifierPlugin.js.map +1 -0
  93. package/lib/stores/{WebApplicationNavigator.d.ts → navigation/NavigationService.d.ts} +11 -35
  94. package/lib/stores/navigation/NavigationService.d.ts.map +1 -0
  95. package/lib/stores/navigation/NavigationService.js +22 -0
  96. package/lib/stores/navigation/NavigationService.js.map +1 -0
  97. package/lib/stores/navigation/WebApplicationNavigator.d.ts +46 -0
  98. package/lib/stores/navigation/WebApplicationNavigator.d.ts.map +1 -0
  99. package/lib/stores/navigation/WebApplicationNavigator.js.map +1 -0
  100. package/lib/stores/navigation/WebApplicationRouter.d.ts.map +1 -0
  101. package/lib/stores/navigation/WebApplicationRouter.js.map +1 -0
  102. package/lib/stores/pure-language/PureLanguageSupport.d.ts.map +1 -0
  103. package/lib/stores/{PureLanguageSupport.js → pure-language/PureLanguageSupport.js} +1 -1
  104. package/lib/stores/pure-language/PureLanguageSupport.js.map +1 -0
  105. package/lib/stores/{PureLanguageTextEditorSupport.d.ts → pure-language/PureLanguageTextEditorSupport.d.ts} +1 -1
  106. package/lib/stores/pure-language/PureLanguageTextEditorSupport.d.ts.map +1 -0
  107. package/lib/stores/pure-language/PureLanguageTextEditorSupport.js.map +1 -0
  108. package/lib/stores/storage/ApplicationStorage.d.ts +52 -0
  109. package/lib/stores/storage/ApplicationStorage.d.ts.map +1 -0
  110. package/lib/stores/storage/ApplicationStorage.js +37 -0
  111. package/lib/stores/storage/ApplicationStorage.js.map +1 -0
  112. package/lib/stores/storage/StorageService.d.ts +38 -0
  113. package/lib/stores/storage/StorageService.d.ts.map +1 -0
  114. package/lib/stores/storage/StorageService.js +65 -0
  115. package/lib/stores/storage/StorageService.js.map +1 -0
  116. package/lib/stores/terminal/XTerm.js +4 -4
  117. package/lib/stores/terminal/XTerm.js.map +1 -1
  118. package/package.json +7 -7
  119. package/src/application/LegendApplication.tsx +1 -1
  120. package/src/application/LegendApplicationPluginManager.tsx +1 -1
  121. package/src/components/ActionAlert.tsx +7 -5
  122. package/src/components/ApplicationStoreProviderTestUtils.tsx +1 -1
  123. package/src/components/BlockingAlert.tsx +1 -1
  124. package/src/components/LegendApplicationComponentFrameworkProvider.tsx +7 -5
  125. package/src/components/NotificationManager.tsx +5 -5
  126. package/src/components/VirtualAssistant.tsx +8 -4
  127. package/src/components/WebApplicationNavigatorProvider.tsx +1 -1
  128. package/src/components/WebApplicationNavigatorProviderTestUtils.tsx +1 -1
  129. package/src/components/shared/DocumentationLink.tsx +13 -5
  130. package/src/components/shared/TextInputEditor.tsx +1 -1
  131. package/src/components/useCommands.tsx +1 -1
  132. package/src/index.ts +10 -7
  133. package/src/stores/AlertService.ts +47 -3
  134. package/src/stores/ApplicationEvent.ts +0 -1
  135. package/src/stores/ApplicationStore.ts +64 -275
  136. package/src/stores/ApplicationStoreTestUtils.ts +1 -1
  137. package/src/stores/ClipboardService.ts +33 -0
  138. package/src/stores/{CommandCenter.ts → CommandService.ts} +2 -2
  139. package/src/stores/DocumentationService.ts +3 -3
  140. package/src/stores/IdentityService.ts +23 -1
  141. package/src/stores/KeyboardShortcutsService.ts +2 -15
  142. package/src/stores/LayoutService.ts +59 -0
  143. package/src/stores/LegendApplicationPlugin.ts +2 -2
  144. package/src/stores/NotificationService.ts +143 -0
  145. package/src/stores/TelemetryService.ts +15 -1
  146. package/src/stores/{IframeEventNotifierPlugin.ts → event/IframeEventNotifierPlugin.ts} +1 -1
  147. package/src/stores/navigation/NavigationService.ts +98 -0
  148. package/src/stores/{WebApplicationNavigator.ts → navigation/WebApplicationNavigator.ts} +5 -74
  149. package/src/stores/{PureLanguageSupport.ts → pure-language/PureLanguageSupport.ts} +1 -1
  150. package/src/stores/{PureLanguageTextEditorSupport.ts → pure-language/PureLanguageTextEditorSupport.ts} +1 -1
  151. package/src/stores/storage/ApplicationStorage.ts +78 -0
  152. package/src/stores/storage/StorageService.ts +90 -0
  153. package/src/stores/terminal/XTerm.ts +4 -4
  154. package/tsconfig.json +12 -7
  155. package/lib/stores/CommandCenter.d.ts.map +0 -1
  156. package/lib/stores/CommandCenter.js.map +0 -1
  157. package/lib/stores/EventService.d.ts.map +0 -1
  158. package/lib/stores/EventService.js.map +0 -1
  159. package/lib/stores/IframeEventNotifierPlugin.d.ts.map +0 -1
  160. package/lib/stores/IframeEventNotifierPlugin.js.map +0 -1
  161. package/lib/stores/PureLanguageSupport.d.ts.map +0 -1
  162. package/lib/stores/PureLanguageSupport.js.map +0 -1
  163. package/lib/stores/PureLanguageTextEditorSupport.d.ts.map +0 -1
  164. package/lib/stores/PureLanguageTextEditorSupport.js.map +0 -1
  165. package/lib/stores/WebApplicationNavigator.d.ts.map +0 -1
  166. package/lib/stores/WebApplicationNavigator.js.map +0 -1
  167. package/lib/stores/WebApplicationRouter.d.ts.map +0 -1
  168. package/lib/stores/WebApplicationRouter.js.map +0 -1
  169. /package/lib/stores/{EventService.d.ts → event/EventService.d.ts} +0 -0
  170. /package/lib/stores/{EventService.js → event/EventService.js} +0 -0
  171. /package/lib/stores/{IframeEventNotifierPlugin.d.ts → event/IframeEventNotifierPlugin.d.ts} +0 -0
  172. /package/lib/stores/{WebApplicationNavigator.js → navigation/WebApplicationNavigator.js} +0 -0
  173. /package/lib/stores/{WebApplicationRouter.d.ts → navigation/WebApplicationRouter.d.ts} +0 -0
  174. /package/lib/stores/{WebApplicationRouter.js → navigation/WebApplicationRouter.js} +0 -0
  175. /package/lib/stores/{PureLanguageSupport.d.ts → pure-language/PureLanguageSupport.d.ts} +0 -0
  176. /package/lib/stores/{PureLanguageTextEditorSupport.js → pure-language/PureLanguageTextEditorSupport.js} +0 -0
  177. /package/src/stores/{EventService.ts → event/EventService.ts} +0 -0
  178. /package/src/stores/{WebApplicationRouter.ts → navigation/WebApplicationRouter.ts} +0 -0
package/lib/index.d.ts CHANGED
@@ -27,12 +27,15 @@ export * from './stores/ApplicationStore.js';
27
27
  export * from './stores/ApplicationTelemetry.js';
28
28
  export * from './stores/ApplicationEvent.js';
29
29
  export * from './application/LegendApplicationConfig.js';
30
- export { WebApplicationNavigator } from './stores/WebApplicationNavigator.js';
30
+ export { WebApplicationNavigator } from './stores/navigation/WebApplicationNavigator.js';
31
+ export { NavigationService } from './stores/navigation/NavigationService.js';
32
+ export { LocalStorage } from './stores/storage/ApplicationStorage.js';
33
+ export * from './stores/storage/StorageService.js';
31
34
  export * from './stores/DocumentationService.js';
32
- export * from './stores/CommandCenter.js';
33
- export * from './stores/EventService.js';
35
+ export * from './stores/CommandService.js';
36
+ export * from './stores/event/EventService.js';
37
+ export * from './stores/event/IframeEventNotifierPlugin.js';
34
38
  export * from './stores/TelemetryService.js';
35
- export * from './stores/IframeEventNotifierPlugin.js';
36
39
  export * from './stores/NotificationService.js';
37
40
  export * from './stores/AlertService.js';
38
41
  export * from './stores/AssistantService.js';
@@ -42,9 +45,9 @@ export * from './components/shared/TextSearchAdvancedConfigMenu.js';
42
45
  export * from './stores/shared/TextSearchAdvancedConfigState.js';
43
46
  export * from './stores/LegendApplicationDocumentation.js';
44
47
  export * from './stores/ApplicationStoreTestUtils.js';
45
- export * from './stores/WebApplicationRouter.js';
46
- export { PURE_GRAMMAR_TOKEN } from './stores/PureLanguageSupport.js';
47
- export * from './stores/PureLanguageTextEditorSupport.js';
48
+ export * from './stores/navigation/WebApplicationRouter.js';
49
+ export { PURE_GRAMMAR_TOKEN } from './stores/pure-language/PureLanguageSupport.js';
50
+ export * from './stores/pure-language/PureLanguageTextEditorSupport.js';
48
51
  export { DISPLAY_ANSI_ESCAPE } from './stores/terminal/Terminal.js';
49
52
  export * from './components/shared/DocumentationLink.js';
50
53
  export * from './components/shared/TextInputEditor.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,YAAY,CAAC;AAE3B,cAAc,iDAAiD,CAAC;AAChE,cAAc,oCAAoC,CAAC;AACnD,cAAc,0CAA0C,CAAC;AACzD,cAAc,iDAAiD,CAAC;AAChE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,iDAAiD,CAAC;AAChE,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mDAAmD,CAAC;AAClE,cAAc,0DAA0D,CAAC;AAEzE,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0CAA0C,CAAC;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;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AC;AACzF,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iDAAiD,CAAC;AAChE,cAAc,qCAAqC,CAAC;AAEpD,cAAc,qDAAqD,CAAC;AACpE,cAAc,kDAAkD,CAAC;AACjE,cAAc,4CAA4C,CAAC;AAE3D,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACnF,cAAc,yDAAyD,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAIpE,cAAc,0CAA0C,CAAC;AACzD,cAAc,wCAAwC,CAAC;AACvD,cAAc,sDAAsD,CAAC;AACrE,cAAc,mCAAmC,CAAC;AAElD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,oCAAoC,CAAC;AAEnD;;GAEG;AACH,cAAc,2DAA2D,CAAC;AAC1E,cAAc,gCAAgC,CAAC"}
package/lib/index.js CHANGED
@@ -27,12 +27,15 @@ export * from './stores/ApplicationStore.js';
27
27
  export * from './stores/ApplicationTelemetry.js';
28
28
  export * from './stores/ApplicationEvent.js';
29
29
  export * from './application/LegendApplicationConfig.js';
30
- export { WebApplicationNavigator } from './stores/WebApplicationNavigator.js';
30
+ export { WebApplicationNavigator } from './stores/navigation/WebApplicationNavigator.js';
31
+ export { NavigationService } from './stores/navigation/NavigationService.js';
32
+ export { LocalStorage } from './stores/storage/ApplicationStorage.js';
33
+ export * from './stores/storage/StorageService.js';
31
34
  export * from './stores/DocumentationService.js';
32
- export * from './stores/CommandCenter.js';
33
- export * from './stores/EventService.js';
35
+ export * from './stores/CommandService.js';
36
+ export * from './stores/event/EventService.js';
37
+ export * from './stores/event/IframeEventNotifierPlugin.js';
34
38
  export * from './stores/TelemetryService.js';
35
- export * from './stores/IframeEventNotifierPlugin.js';
36
39
  export * from './stores/NotificationService.js';
37
40
  export * from './stores/AlertService.js';
38
41
  export * from './stores/AssistantService.js';
@@ -42,9 +45,9 @@ export * from './components/shared/TextSearchAdvancedConfigMenu.js';
42
45
  export * from './stores/shared/TextSearchAdvancedConfigState.js';
43
46
  export * from './stores/LegendApplicationDocumentation.js';
44
47
  export * from './stores/ApplicationStoreTestUtils.js';
45
- export * from './stores/WebApplicationRouter.js';
46
- export { PURE_GRAMMAR_TOKEN } from './stores/PureLanguageSupport.js';
47
- export * from './stores/PureLanguageTextEditorSupport.js';
48
+ export * from './stores/navigation/WebApplicationRouter.js';
49
+ export { PURE_GRAMMAR_TOKEN } from './stores/pure-language/PureLanguageSupport.js';
50
+ export * from './stores/pure-language/PureLanguageTextEditorSupport.js';
48
51
  export { DISPLAY_ANSI_ESCAPE } from './stores/terminal/Terminal.js';
49
52
  // ------------------------------------------- Shared components -------------------------------------------
50
53
  export * from './components/shared/DocumentationLink.js';
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,YAAY,CAAC;AAE3B,cAAc,iDAAiD,CAAC;AAChE,cAAc,oCAAoC,CAAC;AACnD,cAAc,0CAA0C,CAAC;AACzD,cAAc,iDAAiD,CAAC;AAChE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,iDAAiD,CAAC;AAChE,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mDAAmD,CAAC;AAClE,cAAc,0DAA0D,CAAC;AAEzE,cAAc,8BAA8B,CA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  "description": "Legend application core",
5
5
  "keywords": [
6
6
  "legend",
@@ -52,7 +52,7 @@
52
52
  "@types/react-router-dom": "5.3.3",
53
53
  "history": "5.3.0",
54
54
  "mobx": "6.8.0",
55
- "mobx-react-lite": "3.4.2",
55
+ "mobx-react-lite": "3.4.3",
56
56
  "monaco-editor": "0.36.1",
57
57
  "react": "18.2.0",
58
58
  "react-dnd": "16.0.1",
@@ -77,7 +77,7 @@
77
77
  "eslint": "8.35.0",
78
78
  "jest": "29.5.0",
79
79
  "npm-run-all": "4.1.5",
80
- "rimraf": "4.3.1",
80
+ "rimraf": "4.4.0",
81
81
  "sass": "1.58.3",
82
82
  "typescript": "4.9.5"
83
83
  },
@@ -13,6 +13,8 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ /// <reference types="react" resolution-mode="require"/>
17
+ import type { GenericLegendApplicationStore } from './ApplicationStore.js';
16
18
  export declare enum ActionAlertType {
17
19
  STANDARD = "STANDARD",
18
20
  CAUTION = "CAUTION"
@@ -23,14 +25,14 @@ export declare enum ActionAlertActionType {
23
25
  PROCEED = "PROCEED"
24
26
  }
25
27
  export interface ActionAlertInfo {
26
- title?: string;
28
+ title?: string | undefined;
27
29
  message: string;
28
- prompt?: string;
30
+ prompt?: string | undefined;
29
31
  type?: ActionAlertType;
30
32
  onClose?: () => void;
31
33
  onEnter?: () => void;
32
34
  actions: {
33
- label: string;
35
+ label: React.ReactNode;
34
36
  default?: boolean;
35
37
  handler?: () => void;
36
38
  type?: ActionAlertActionType;
@@ -41,4 +43,12 @@ export interface BlockingAlertInfo {
41
43
  prompt?: string;
42
44
  showLoading?: boolean;
43
45
  }
46
+ export declare class AlertService {
47
+ readonly applicationStore: GenericLegendApplicationStore;
48
+ blockingAlertInfo?: BlockingAlertInfo | undefined;
49
+ actionAlertInfo?: ActionAlertInfo | undefined;
50
+ constructor(applicationStore: GenericLegendApplicationStore);
51
+ setBlockingAlert(alertInfo: BlockingAlertInfo | undefined): void;
52
+ setActionAlertInfo(alertInfo: ActionAlertInfo | undefined): void;
53
+ }
44
54
  //# sourceMappingURL=AlertService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AlertService.d.ts","sourceRoot":"","sources":["../../src/stores/AlertService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,eAAe;IACzB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB;AAED,oBAAY,qBAAqB;IAC/B,QAAQ,aAAa;IACrB,oBAAoB,yBAAyB;IAC7C,OAAO,YAAY;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;QACrB,IAAI,CAAC,EAAE,qBAAqB,CAAC;KAC9B,EAAE,CAAC;CACL;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB"}
1
+ {"version":3,"file":"AlertService.d.ts","sourceRoot":"","sources":["../../src/stores/AlertService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAE3E,oBAAY,eAAe;IACzB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB;AAED,oBAAY,qBAAqB;IAC/B,QAAQ,aAAa;IACrB,oBAAoB,yBAAyB;IAC7C,OAAO,YAAY;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,EAAE;QACP,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;QACvB,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;QACrB,IAAI,CAAC,EAAE,qBAAqB,CAAC;KAC9B,EAAE,CAAC;CACL;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,qBAAa,YAAY;IACvB,QAAQ,CAAC,gBAAgB,EAAE,6BAA6B,CAAC;IAEzD,iBAAiB,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAClD,eAAe,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;gBAElC,gBAAgB,EAAE,6BAA6B;IAW3D,gBAAgB,CAAC,SAAS,EAAE,iBAAiB,GAAG,SAAS,GAAG,IAAI;IAShE,kBAAkB,CAAC,SAAS,EAAE,eAAe,GAAG,SAAS,GAAG,IAAI;CAajE"}
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import { action, makeObservable, observable } from 'mobx';
16
17
  export var ActionAlertType;
17
18
  (function (ActionAlertType) {
18
19
  ActionAlertType["STANDARD"] = "STANDARD";
@@ -24,4 +25,39 @@ export var ActionAlertActionType;
24
25
  ActionAlertActionType["PROCEED_WITH_CAUTION"] = "PROCEED_WITH_CAUTION";
25
26
  ActionAlertActionType["PROCEED"] = "PROCEED";
26
27
  })(ActionAlertActionType = ActionAlertActionType || (ActionAlertActionType = {}));
28
+ export class AlertService {
29
+ applicationStore;
30
+ blockingAlertInfo;
31
+ actionAlertInfo;
32
+ constructor(applicationStore) {
33
+ makeObservable(this, {
34
+ blockingAlertInfo: observable,
35
+ actionAlertInfo: observable,
36
+ setBlockingAlert: action,
37
+ setActionAlertInfo: action,
38
+ });
39
+ this.applicationStore = applicationStore;
40
+ }
41
+ setBlockingAlert(alertInfo) {
42
+ if (alertInfo) {
43
+ this.applicationStore.keyboardShortcutsService.blockGlobalHotkeys();
44
+ }
45
+ else {
46
+ this.applicationStore.keyboardShortcutsService.unblockGlobalHotkeys();
47
+ }
48
+ this.blockingAlertInfo = alertInfo;
49
+ }
50
+ setActionAlertInfo(alertInfo) {
51
+ if (this.actionAlertInfo && alertInfo) {
52
+ this.applicationStore.notificationService.notifyIllegalState('Action alert is stacked: new alert is invoked while another one is being displayed');
53
+ }
54
+ if (alertInfo) {
55
+ this.applicationStore.keyboardShortcutsService.blockGlobalHotkeys();
56
+ }
57
+ else {
58
+ this.applicationStore.keyboardShortcutsService.unblockGlobalHotkeys();
59
+ }
60
+ this.actionAlertInfo = alertInfo;
61
+ }
62
+ }
27
63
  //# sourceMappingURL=AlertService.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AlertService.js","sourceRoot":"","sources":["../../src/stores/AlertService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,wCAAqB,CAAA;IACrB,sCAAmB,CAAA;AACrB,CAAC,EAHW,eAAe,GAAf,eAAe,KAAf,eAAe,QAG1B;AAED,MAAM,CAAN,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,8CAAqB,CAAA;IACrB,sEAA6C,CAAA;IAC7C,4CAAmB,CAAA;AACrB,CAAC,EAJW,qBAAqB,GAArB,qBAAqB,KAArB,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oFAAoF,CACrF,CAAC;SACH;QACD,IAAI,SAAS,EAAE;YACb,IAAI,CAAC,gBAAgB,CAAC,wBAAwB,CAAC,kBAAkB,EAAE,CAAC;SACrE;aAAM;YACL,IAAI,CAAC,gBAAgB,CAAC,wBAAwB,CAAC,oBAAoB,EAAE,CAAC;SACvE;QACD,IAAI,CAAC,eAAe,GAAG,SAAS,CAAC;IACnC,CAAC;CACF"}
@@ -22,7 +22,6 @@ export declare enum APPLICATION_EVENT {
22
22
  APPLICATION_DOCUMENTATION_FETCH__FAILURE = "application.fetch.documentation.failure",
23
23
  APPLICATION_DOCUMENTATION_LOAD__SKIP = "application.load.documentation.skip",
24
24
  APPLICATION_DOCUMENTATION_REQUIREMENT_CHECK__FAILURE = "application.load.documentation.requirement-check.failure",
25
- APPLICATION_KEYBOARD_SHORTCUTS_CONFIGURATION_CHECK__FAILURE = "application.load.keyboard-shortcuts.configuration-check.failure",
26
25
  APPLICATION_TERMINAL_COMMAND_CONFIGURATION_CHECK__FAILURE = "application.load.terminal-command.configuration-check.failure",
27
26
  APPLICATION_CONTEXTUAL_DOCUMENTATION_LOAD__SKIP = "application.load.contextual-documentation.skip",
28
27
  APPLICATION_COMMAND_CENTER_REGISTRATION__FAILURE = "application.command-center.registration.failure",
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicationEvent.d.ts","sourceRoot":"","sources":["../../src/stores/ApplicationEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,iBAAiB;IAC3B,8BAA8B,kCAAkC;IAChE,0BAA0B,8BAA8B;IAExD,kCAAkC,oCAAoC;IACtE,kCAAkC,sCAAsC;IAExE,wCAAwC,4CAA4C;IAEpF,wCAAwC,4CAA4C;IACpF,oCAAoC,wCAAwC;IAC5E,oDAAoD,6DAA6D;IACjH,2DAA2D,oEAAoE;IAC/H,yDAAyD,kEAAkE;IAC3H,+CAA+C,mDAAmD;IAElG,gDAAgD,oDAAoD;IAEpG,yBAAyB,6BAA6B;IACtD,yBAAyB,6BAA6B;IAEtD,iBAAiB,sBAAsB;IAEvC,2BAA2B,+BAA+B;IAE1D,4BAA4B,gCAAgC;IAE5D,6CAA6C,6DAA6D;CAC3G"}
1
+ {"version":3,"file":"ApplicationEvent.d.ts","sourceRoot":"","sources":["../../src/stores/ApplicationEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,iBAAiB;IAC3B,8BAA8B,kCAAkC;IAChE,0BAA0B,8BAA8B;IAExD,kCAAkC,oCAAoC;IACtE,kCAAkC,sCAAsC;IAExE,wCAAwC,4CAA4C;IAEpF,wCAAwC,4CAA4C;IACpF,oCAAoC,wCAAwC;IAC5E,oDAAoD,6DAA6D;IACjH,yDAAyD,kEAAkE;IAC3H,+CAA+C,mDAAmD;IAElG,gDAAgD,oDAAoD;IAEpG,yBAAyB,6BAA6B;IACtD,yBAAyB,6BAA6B;IAEtD,iBAAiB,sBAAsB;IAEvC,2BAA2B,+BAA+B;IAE1D,4BAA4B,gCAAgC;IAE5D,6CAA6C,6DAA6D;CAC3G"}
@@ -23,7 +23,6 @@ export var APPLICATION_EVENT;
23
23
  APPLICATION_EVENT["APPLICATION_DOCUMENTATION_FETCH__FAILURE"] = "application.fetch.documentation.failure";
24
24
  APPLICATION_EVENT["APPLICATION_DOCUMENTATION_LOAD__SKIP"] = "application.load.documentation.skip";
25
25
  APPLICATION_EVENT["APPLICATION_DOCUMENTATION_REQUIREMENT_CHECK__FAILURE"] = "application.load.documentation.requirement-check.failure";
26
- APPLICATION_EVENT["APPLICATION_KEYBOARD_SHORTCUTS_CONFIGURATION_CHECK__FAILURE"] = "application.load.keyboard-shortcuts.configuration-check.failure";
27
26
  APPLICATION_EVENT["APPLICATION_TERMINAL_COMMAND_CONFIGURATION_CHECK__FAILURE"] = "application.load.terminal-command.configuration-check.failure";
28
27
  APPLICATION_EVENT["APPLICATION_CONTEXTUAL_DOCUMENTATION_LOAD__SKIP"] = "application.load.contextual-documentation.skip";
29
28
  APPLICATION_EVENT["APPLICATION_COMMAND_CENTER_REGISTRATION__FAILURE"] = "application.command-center.registration.failure";
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicationEvent.js","sourceRoot":"","sources":["../../src/stores/ApplicationEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,iBA4BX;AA5BD,WAAY,iBAAiB;IAC3B,qFAAgE,CAAA;IAChE,6EAAwD,CAAA;IAExD,2FAAsE,CAAA;IACtE,6FAAwE,CAAA;IAExE,yGAAoF,CAAA;IAEpF,yGAAoF,CAAA;IACpF,iGAA4E,CAAA;IAC5E,sIAAiH,CAAA;IACjH,oJAA+H,CAAA;IAC/H,gJAA2H,CAAA;IAC3H,uHAAkG,CAAA;IAElG,yHAAoG,CAAA;IAEpG,2EAAsD,CAAA;IACtD,2EAAsD,CAAA;IAEtD,4DAAuC,CAAA;IAEvC,+EAA0D,CAAA;IAE1D,iFAA4D,CAAA;IAE5D,+HAA0G,CAAA;AAC5G,CAAC,EA5BW,iBAAiB,GAAjB,iBAAiB,KAAjB,iBAAiB,QA4B5B"}
1
+ {"version":3,"file":"ApplicationEvent.js","sourceRoot":"","sources":["../../src/stores/ApplicationEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,iBA2BX;AA3BD,WAAY,iBAAiB;IAC3B,qFAAgE,CAAA;IAChE,6EAAwD,CAAA;IAExD,2FAAsE,CAAA;IACtE,6FAAwE,CAAA;IAExE,yGAAoF,CAAA;IAEpF,yGAAoF,CAAA;IACpF,iGAA4E,CAAA;IAC5E,sIAAiH,CAAA;IACjH,gJAA2H,CAAA;IAC3H,uHAAkG,CAAA;IAElG,yHAAoG,CAAA;IAEpG,2EAAsD,CAAA;IACtD,2EAAsD,CAAA;IAEtD,4DAAuC,CAAA;IAEvC,+EAA0D,CAAA;IAE1D,iFAA4D,CAAA;IAE5D,+HAA0G,CAAA;AAC5G,CAAC,EA3BW,iBAAiB,GAAjB,iBAAiB,KAAjB,iBAAiB,QA2B5B"}
@@ -13,78 +13,56 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { type SuperGenericFunction, TracerService, Log } from '@finos/legend-shared';
16
+ import { TracerService, LogService } from '@finos/legend-shared';
17
17
  import type { LegendApplicationConfig } from '../application/LegendApplicationConfig.js';
18
- import type { WebApplicationNavigator } from './WebApplicationNavigator.js';
18
+ import type { WebApplicationNavigator } from './navigation/WebApplicationNavigator.js';
19
19
  import type { LegendApplicationPluginManager } from '../application/LegendApplicationPluginManager.js';
20
20
  import { DocumentationService } from './DocumentationService.js';
21
21
  import { AssistantService } from './AssistantService.js';
22
- import { EventService } from './EventService.js';
22
+ import { EventService } from './event/EventService.js';
23
23
  import { ApplicationNavigationContextService } from './ApplicationNavigationContextService.js';
24
24
  import type { LegendApplicationPlugin } from './LegendApplicationPlugin.js';
25
- import { CommandCenter } from './CommandCenter.js';
25
+ import { CommandService } from './CommandService.js';
26
26
  import { KeyboardShortcutsService } from './KeyboardShortcutsService.js';
27
27
  import { TerminalService } from './TerminalService.js';
28
- import type { ActionAlertInfo, BlockingAlertInfo } from './AlertService.js';
29
- import { Notification, type NotificationAction } from './NotificationService.js';
28
+ import { AlertService } from './AlertService.js';
29
+ import { NotificationService } from './NotificationService.js';
30
+ import { IdentityService } from './IdentityService.js';
31
+ import { StorageService } from './storage/StorageService.js';
30
32
  import { TelemetryService } from './TelemetryService.js';
31
33
  import { TimeService } from './TimeService.js';
34
+ import { LayoutService } from './LayoutService.js';
35
+ import { ClipboardService } from './ClipboardService.js';
36
+ import { NavigationService } from './navigation/NavigationService.js';
32
37
  export type GenericLegendApplicationStore = ApplicationStore<LegendApplicationConfig, LegendApplicationPluginManager<LegendApplicationPlugin>>;
33
38
  export declare class ApplicationStore<T extends LegendApplicationConfig, V extends LegendApplicationPluginManager<LegendApplicationPlugin>> {
34
39
  readonly uuid: string;
35
40
  readonly config: T;
36
41
  readonly pluginManager: V;
37
- currentUser: string;
38
- readonly navigator: WebApplicationNavigator;
39
- readonly navigationContextService: ApplicationNavigationContextService;
40
- notification?: Notification | undefined;
41
- blockingAlertInfo?: BlockingAlertInfo | undefined;
42
- actionAlertInfo?: ActionAlertInfo | undefined;
43
- readonly log: Log;
42
+ readonly identityService: IdentityService;
43
+ readonly storageService: StorageService;
44
+ readonly timeService: TimeService;
45
+ readonly commandService: CommandService;
46
+ readonly keyboardShortcutsService: KeyboardShortcutsService;
47
+ readonly layoutService: LayoutService;
48
+ readonly clipboardService: ClipboardService;
44
49
  readonly terminalService: TerminalService;
50
+ readonly logService: LogService;
51
+ readonly navigationService: NavigationService;
52
+ readonly navigationContextService: ApplicationNavigationContextService;
45
53
  readonly documentationService: DocumentationService;
46
54
  readonly assistantService: AssistantService;
47
- readonly timeService: TimeService;
55
+ readonly alertService: AlertService;
56
+ readonly notificationService: NotificationService;
48
57
  readonly eventService: EventService;
49
58
  readonly telemetryService: TelemetryService;
50
59
  readonly tracerService: TracerService;
51
- readonly commandCenter: CommandCenter;
52
- readonly keyboardShortcutsService: KeyboardShortcutsService;
53
- backdropContainerElementID?: string | undefined;
54
- showBackdrop: boolean;
55
- /**
56
- * NOTE: this is the poor man way of doing theming
57
- * we would need to revise this flag later
58
- * See https://github.com/finos/legend-studio/issues/264
59
- */
60
- TEMPORARY__isLightThemeEnabled: boolean;
61
- constructor(config: T, navigator: WebApplicationNavigator, pluginManager: V);
62
- TEMPORARY__setIsLightThemeEnabled(val: boolean): void;
63
- setupTelemetryService(): void;
64
- /**
65
- * Change the ID used to find the base element to mount the backdrop on.
66
- * This is useful when we want to use backdrop with embedded application which
67
- * requires its own backdrop usage.
68
- */
69
- setBackdropContainerElementID(val: string | undefined): void;
70
- setShowBackdrop(val: boolean): void;
71
- setBlockingAlert(alertInfo: BlockingAlertInfo | undefined): void;
72
- setActionAlertInfo(alertInfo: ActionAlertInfo | undefined): void;
73
- setCurrentUser(val: string): void;
74
- setNotification(notification: Notification | undefined): void;
75
- notify(message: string, actions?: NotificationAction[], autoHideDuration?: number | null): void;
76
- notifySuccess(message: string, actions?: NotificationAction[], autoHideDuration?: number | null): void;
77
- notifyWarning(content: string | Error, actions?: NotificationAction[], autoHideDuration?: number | null): void;
78
- notifyIllegalState(message: string, actions?: NotificationAction[], autoHideDuration?: number | null): void;
79
- notifyError(content: Error | string, actions?: NotificationAction[]): void;
60
+ constructor(config: T,
80
61
  /**
81
- * This function creates a more user-friendly way to throw error in the UI. Rather than crashing the whole app, we will
82
- * just notify and replacing the value should get with an alternative (e.g. `undefined`). A good use-case for this
83
- * is where we would not expect an error to throw (i.e. `IllegalStateError`), but we want to be sure that if the error
84
- * ever occurs, it still shows very apparently in the UI, as such, printing out in the console is not good enough,
85
- * but crashing the app is bad too, so this is a good balance.
62
+ * NOTE: as of now, we only support web environment, we will not provide a generic `ApplicationNavigator`
63
+ * This is something we need to think about when we potentially move to another platform
86
64
  */
87
- notifyAndReturnAlternativeOnError: <U extends SuperGenericFunction, W>(fn: U, alternative: W) => W | ReturnType<U> | undefined;
65
+ navigator: WebApplicationNavigator, pluginManager: V);
88
66
  /**
89
67
  * When we call store/state functions from the component, we should handle error thrown at these functions instead
90
68
  * of throwing them to the UI. This enforces that by throwing `IllegalStateError`
@@ -94,7 +72,5 @@ export declare class ApplicationStore<T extends LegendApplicationConfig, V exten
94
72
  * Guarantee that the action being used by the component does not throw unhandled errors
95
73
  */
96
74
  guardUnhandledError: (actionFn: () => Promise<void>) => (() => void);
97
- copyTextToClipboard(text: string): Promise<void>;
98
- notifyUnsupportedFeature(featureName: string): void;
99
75
  }
100
76
  //# sourceMappingURL=ApplicationStore.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicationStore.d.ts","sourceRoot":"","sources":["../../src/stores/ApplicationStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,oBAAoB,E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