@finos/legend-application 3.0.3 → 4.0.2

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 (176) hide show
  1. package/lib/application/LegendApplication.d.ts +2 -2
  2. package/lib/application/LegendApplication.d.ts.map +1 -1
  3. package/lib/application/LegendApplication.js +4 -4
  4. package/lib/application/LegendApplication.js.map +1 -1
  5. package/lib/application/LegendApplicationPluginManager.d.ts +3 -3
  6. package/lib/application/LegendApplicationPluginManager.d.ts.map +1 -1
  7. package/lib/components/ActionAlert.d.ts +1 -0
  8. package/lib/components/ActionAlert.d.ts.map +1 -1
  9. package/lib/components/ActionAlert.js +2 -2
  10. package/lib/components/ActionAlert.js.map +1 -1
  11. package/lib/components/ApplicationStoreProvider.d.ts +3 -3
  12. package/lib/components/ApplicationStoreProvider.d.ts.map +1 -1
  13. package/lib/components/ApplicationStoreProvider.js +2 -2
  14. package/lib/components/ApplicationStoreProvider.js.map +1 -1
  15. package/lib/components/ApplicationStoreProviderTestUtils.d.ts +5 -5
  16. package/lib/components/ApplicationStoreProviderTestUtils.d.ts.map +1 -1
  17. package/lib/components/ApplicationStoreProviderTestUtils.js +5 -4
  18. package/lib/components/ApplicationStoreProviderTestUtils.js.map +1 -1
  19. package/lib/components/ApplicationTestID.js +1 -1
  20. package/lib/components/ApplicationTestID.js.map +1 -1
  21. package/lib/components/BasicValueSpecificationEditor.d.ts +44 -0
  22. package/lib/components/BasicValueSpecificationEditor.d.ts.map +1 -0
  23. package/lib/components/BasicValueSpecificationEditor.js +276 -0
  24. package/lib/components/BasicValueSpecificationEditor.js.map +1 -0
  25. package/lib/components/BlockingAlert.d.ts +1 -0
  26. package/lib/components/BlockingAlert.d.ts.map +1 -1
  27. package/lib/components/BlockingAlert.js +1 -1
  28. package/lib/components/BlockingAlert.js.map +1 -1
  29. package/lib/components/CustomDatePicker.d.ts +38 -0
  30. package/lib/components/CustomDatePicker.d.ts.map +1 -0
  31. package/lib/components/CustomDatePicker.js +592 -0
  32. package/lib/components/CustomDatePicker.js.map +1 -0
  33. package/lib/components/DocumentationLink.d.ts +1 -1
  34. package/lib/components/DocumentationLink.js +2 -2
  35. package/lib/components/DocumentationLink.js.map +1 -1
  36. package/lib/components/LambdaEditor.d.ts +2 -1
  37. package/lib/components/LambdaEditor.d.ts.map +1 -1
  38. package/lib/components/LambdaEditor.js +3 -3
  39. package/lib/components/LambdaEditor.js.map +1 -1
  40. package/lib/components/LambdaParameterValuesEditor.d.ts +25 -0
  41. package/lib/components/LambdaParameterValuesEditor.d.ts.map +1 -0
  42. package/lib/components/LambdaParameterValuesEditor.js +52 -0
  43. package/lib/components/LambdaParameterValuesEditor.js.map +1 -0
  44. package/lib/components/LegendApplicationComponentFrameworkProvider.d.ts +1 -1
  45. package/lib/components/LegendApplicationComponentFrameworkProvider.js +3 -3
  46. package/lib/components/LegendApplicationComponentFrameworkProvider.js.map +1 -1
  47. package/lib/components/LegendApplicationNavigationContextServiceUtils.d.ts +32 -0
  48. package/lib/components/LegendApplicationNavigationContextServiceUtils.d.ts.map +1 -0
  49. package/lib/components/LegendApplicationNavigationContextServiceUtils.js +57 -0
  50. package/lib/components/LegendApplicationNavigationContextServiceUtils.js.map +1 -0
  51. package/lib/components/NotificationManager.d.ts +1 -0
  52. package/lib/components/NotificationManager.d.ts.map +1 -1
  53. package/lib/components/NotificationManager.js +2 -2
  54. package/lib/components/NotificationManager.js.map +1 -1
  55. package/lib/components/TextInputEditor.d.ts +2 -2
  56. package/lib/components/TextInputEditor.d.ts.map +1 -1
  57. package/lib/components/TextInputEditor.js +2 -2
  58. package/lib/components/TextInputEditor.js.map +1 -1
  59. package/lib/components/{AppHeader.d.ts → VirtualAssistant.d.ts} +5 -5
  60. package/lib/components/VirtualAssistant.d.ts.map +1 -0
  61. package/lib/components/VirtualAssistant.js +171 -0
  62. package/lib/components/VirtualAssistant.js.map +1 -0
  63. package/lib/components/WebApplicationNavigatorProvider.d.ts +2 -2
  64. package/lib/components/WebApplicationNavigatorProvider.d.ts.map +1 -1
  65. package/lib/components/WebApplicationNavigatorProvider.js +1 -1
  66. package/lib/components/WebApplicationNavigatorProvider.js.map +1 -1
  67. package/lib/components/WebApplicationNavigatorProviderTestUtils.d.ts +2 -2
  68. package/lib/components/WebApplicationNavigatorProviderTestUtils.d.ts.map +1 -1
  69. package/lib/components/WebApplicationNavigatorProviderTestUtils.js +3 -2
  70. package/lib/components/WebApplicationNavigatorProviderTestUtils.js.map +1 -1
  71. package/lib/const.js +2 -2
  72. package/lib/const.js.map +1 -1
  73. package/lib/index.css +2 -2
  74. package/lib/index.css.map +1 -1
  75. package/lib/index.d.ts +30 -22
  76. package/lib/index.d.ts.map +1 -1
  77. package/lib/index.js +32 -22
  78. package/lib/index.js.map +1 -1
  79. package/lib/stores/ApplicationEvent.d.ts +9 -7
  80. package/lib/stores/ApplicationEvent.d.ts.map +1 -1
  81. package/lib/stores/ApplicationEvent.js +10 -8
  82. package/lib/stores/ApplicationEvent.js.map +1 -1
  83. package/lib/stores/ApplicationStore.d.ts +15 -9
  84. package/lib/stores/ApplicationStore.d.ts.map +1 -1
  85. package/lib/stores/ApplicationStore.js +26 -21
  86. package/lib/stores/ApplicationStore.js.map +1 -1
  87. package/lib/stores/ApplicationStoreTestUtils.d.ts +3 -3
  88. package/lib/stores/ApplicationStoreTestUtils.d.ts.map +1 -1
  89. package/lib/stores/ApplicationStoreTestUtils.js +2 -2
  90. package/lib/stores/ApplicationStoreTestUtils.js.map +1 -1
  91. package/lib/stores/ApplicationTelemetry.d.ts +1 -1
  92. package/lib/stores/ApplicationTelemetry.d.ts.map +1 -1
  93. package/lib/stores/ApplicationTelemetry.js +2 -2
  94. package/lib/stores/ApplicationTelemetry.js.map +1 -1
  95. package/lib/stores/CJS__Fuse.cjs +35 -0
  96. package/lib/stores/CJS__Fuse.cjs.map +1 -0
  97. package/lib/stores/CJS__Fuse.d.cts +28 -0
  98. package/lib/stores/CJS__Fuse.d.cts.map +1 -0
  99. package/lib/stores/LambdaParameterState.d.ts +59 -0
  100. package/lib/stores/LambdaParameterState.d.ts.map +1 -0
  101. package/lib/stores/LambdaParameterState.js +184 -0
  102. package/lib/stores/LambdaParameterState.js.map +1 -0
  103. package/lib/stores/LegendApplicationAssistantService.d.ts +63 -0
  104. package/lib/stores/LegendApplicationAssistantService.d.ts.map +1 -0
  105. package/lib/stores/LegendApplicationAssistantService.js +167 -0
  106. package/lib/stores/LegendApplicationAssistantService.js.map +1 -0
  107. package/lib/stores/LegendApplicationConfig.d.ts +5 -4
  108. package/lib/stores/LegendApplicationConfig.d.ts.map +1 -1
  109. package/lib/stores/LegendApplicationConfig.js +8 -3
  110. package/lib/stores/LegendApplicationConfig.js.map +1 -1
  111. package/lib/stores/LegendApplicationDocumentationService.d.ts +70 -0
  112. package/lib/stores/LegendApplicationDocumentationService.d.ts.map +1 -0
  113. package/lib/stores/LegendApplicationDocumentationService.js +152 -0
  114. package/lib/stores/LegendApplicationDocumentationService.js.map +1 -0
  115. package/lib/stores/LegendApplicationEventService.d.ts +22 -0
  116. package/lib/stores/LegendApplicationEventService.d.ts.map +1 -0
  117. package/lib/stores/LegendApplicationEventService.js +25 -0
  118. package/lib/stores/LegendApplicationEventService.js.map +1 -0
  119. package/lib/stores/LegendApplicationNavigationContextService.d.ts +74 -0
  120. package/lib/stores/LegendApplicationNavigationContextService.d.ts.map +1 -0
  121. package/lib/stores/LegendApplicationNavigationContextService.js +118 -0
  122. package/lib/stores/LegendApplicationNavigationContextService.js.map +1 -0
  123. package/lib/stores/LegendApplicationPlugin.d.ts +6 -2
  124. package/lib/stores/LegendApplicationPlugin.d.ts.map +1 -1
  125. package/lib/stores/LegendApplicationPlugin.js.map +1 -1
  126. package/lib/stores/PureLanguageSupport.d.ts.map +1 -1
  127. package/lib/stores/PureLanguageSupport.js +8 -2
  128. package/lib/stores/PureLanguageSupport.js.map +1 -1
  129. package/lib/stores/ValueSpecificationModifierHelper.d.ts +27 -0
  130. package/lib/stores/ValueSpecificationModifierHelper.d.ts.map +1 -0
  131. package/lib/stores/ValueSpecificationModifierHelper.js +49 -0
  132. package/lib/stores/ValueSpecificationModifierHelper.js.map +1 -0
  133. package/package.json +24 -18
  134. package/src/application/LegendApplication.tsx +6 -6
  135. package/src/application/LegendApplicationPluginManager.tsx +3 -3
  136. package/src/components/ActionAlert.tsx +2 -2
  137. package/src/components/ApplicationStoreProvider.tsx +4 -4
  138. package/src/components/ApplicationStoreProviderTestUtils.tsx +7 -6
  139. package/src/components/BasicValueSpecificationEditor.tsx +703 -0
  140. package/src/components/BlockingAlert.tsx +1 -1
  141. package/src/components/CustomDatePicker.tsx +1235 -0
  142. package/src/components/DocumentationLink.tsx +2 -2
  143. package/src/components/LambdaEditor.tsx +4 -4
  144. package/src/components/LambdaParameterValuesEditor.tsx +114 -0
  145. package/src/components/LegendApplicationComponentFrameworkProvider.tsx +3 -3
  146. package/src/components/LegendApplicationNavigationContextServiceUtils.tsx +63 -0
  147. package/src/components/NotificationManager.tsx +2 -2
  148. package/src/components/TextInputEditor.tsx +2 -2
  149. package/src/components/VirtualAssistant.tsx +600 -0
  150. package/src/components/WebApplicationNavigatorProvider.tsx +1 -1
  151. package/src/components/WebApplicationNavigatorProviderTestUtils.tsx +3 -2
  152. package/src/index.ts +39 -28
  153. package/src/stores/ApplicationEvent.ts +11 -7
  154. package/src/stores/ApplicationStore.ts +29 -27
  155. package/src/stores/ApplicationStoreTestUtils.ts +4 -4
  156. package/src/stores/ApplicationTelemetry.ts +2 -2
  157. package/src/stores/CJS__Fuse.cts +28 -0
  158. package/src/stores/LambdaParameterState.ts +314 -0
  159. package/src/stores/LegendApplicationAssistantService.ts +218 -0
  160. package/src/stores/LegendApplicationConfig.ts +20 -6
  161. package/src/stores/LegendApplicationDocumentationService.ts +276 -0
  162. package/src/stores/LegendApplicationEventService.ts +32 -0
  163. package/src/stores/LegendApplicationNavigationContextService.ts +131 -0
  164. package/src/stores/LegendApplicationPlugin.ts +10 -2
  165. package/src/stores/PureLanguageSupport.ts +8 -2
  166. package/src/stores/ValueSpecificationModifierHelper.ts +104 -0
  167. package/tsconfig.json +18 -12
  168. package/lib/components/AppHeader.d.ts.map +0 -1
  169. package/lib/components/AppHeader.js +0 -26
  170. package/lib/components/AppHeader.js.map +0 -1
  171. package/lib/stores/LegendApplicationDocumentationRegistry.d.ts +0 -36
  172. package/lib/stores/LegendApplicationDocumentationRegistry.d.ts.map +0 -1
  173. package/lib/stores/LegendApplicationDocumentationRegistry.js +0 -47
  174. package/lib/stores/LegendApplicationDocumentationRegistry.js.map +0 -1
  175. package/src/components/AppHeader.tsx +0 -49
  176. package/src/stores/LegendApplicationDocumentationRegistry.ts +0 -81
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-application",
3
- "version": "3.0.3",
3
+ "version": "4.0.2",
4
4
  "description": "Legend application core",
5
5
  "keywords": [
6
6
  "legend",
@@ -43,33 +43,39 @@
43
43
  "test:watch": "jest --watch"
44
44
  },
45
45
  "dependencies": {
46
- "@finos/legend-art": "1.0.1",
47
- "@finos/legend-graph": "7.0.0",
48
- "@finos/legend-shared": "2.0.1",
46
+ "@finos/legend-art": "2.0.2",
47
+ "@finos/legend-graph": "8.0.2",
48
+ "@finos/legend-shared": "3.0.2",
49
49
  "@types/css-font-loading-module": "0.0.7",
50
- "@types/react": "18.0.9",
51
- "@types/react-dom": "18.0.3",
52
- "@types/react-router-dom": "5.3.2",
50
+ "@types/papaparse": "5.3.2",
51
+ "@types/react": "18.0.14",
52
+ "@types/react-dom": "18.0.5",
53
+ "@types/react-router-dom": "5.3.3",
54
+ "date-fns": "2.28.0",
55
+ "fuse.js": "6.6.2",
53
56
  "history": "5.3.0",
54
- "mobx": "6.5.0",
57
+ "mobx": "6.6.0",
55
58
  "mobx-react-lite": "3.4.0",
56
59
  "monaco-editor": "0.33.0",
57
- "react": "18.1.0",
58
- "react-dom": "18.1.0",
59
- "react-resize-detector": "7.0.0",
60
- "react-router": "5.2.1",
61
- "react-router-dom": "5.3.0",
60
+ "papaparse": "5.3.2",
61
+ "react": "18.2.0",
62
+ "react-dom": "18.2.0",
63
+ "react-draggable": "4.4.5",
64
+ "react-resize-detector": "7.1.2",
65
+ "react-router": "5.3.3",
66
+ "react-router-dom": "5.3.3",
62
67
  "serializr": "2.0.5"
63
68
  },
64
69
  "devDependencies": {
65
- "@finos/legend-dev-utils": "1.0.1",
70
+ "@finos/legend-dev-utils": "2.0.1",
71
+ "@jest/globals": "28.1.1",
66
72
  "cross-env": "7.0.3",
67
- "eslint": "8.15.0",
68
- "jest": "28.1.0",
73
+ "eslint": "8.18.0",
74
+ "jest": "28.1.1",
69
75
  "npm-run-all": "4.1.5",
70
76
  "rimraf": "3.0.2",
71
- "sass": "1.51.0",
72
- "typescript": "4.6.4"
77
+ "sass": "1.52.3",
78
+ "typescript": "4.7.4"
73
79
  },
74
80
  "peerDependencies": {
75
81
  "react": "^18.0.0"
@@ -16,12 +16,12 @@
16
16
 
17
17
  import { configure as configureMobx } from 'mobx';
18
18
  import { editor as monacoEditorAPI } from 'monaco-editor';
19
- import { MONOSPACED_FONT_FAMILY } from '../const';
19
+ import { MONOSPACED_FONT_FAMILY } from '../const.js';
20
20
  import type {
21
21
  LegendApplicationConfig,
22
22
  LegendApplicationConfigurationData,
23
23
  LegendApplicationVersionData,
24
- } from '../stores/LegendApplicationConfig';
24
+ } from '../stores/LegendApplicationConfig.js';
25
25
  import {
26
26
  type AbstractPlugin,
27
27
  type AbstractPreset,
@@ -31,11 +31,11 @@ import {
31
31
  assertNonNullable,
32
32
  NetworkClient,
33
33
  } from '@finos/legend-shared';
34
- import { APPLICATION_EVENT } from '../stores/ApplicationEvent';
34
+ import { APPLICATION_EVENT } from '../stores/ApplicationEvent.js';
35
35
  import { configureComponents } from '@finos/legend-art';
36
36
  import type { GraphPluginManager } from '@finos/legend-graph';
37
- import type { LegendApplicationPluginManager } from './LegendApplicationPluginManager';
38
- import { setupPureLanguageService } from '../stores/PureLanguageSupport';
37
+ import type { LegendApplicationPluginManager } from './LegendApplicationPluginManager.js';
38
+ import { setupPureLanguageService } from '../stores/PureLanguageSupport.js';
39
39
 
40
40
  export abstract class LegendApplicationLogger {
41
41
  abstract debug(event: LogEvent, ...data: unknown[]): void;
@@ -261,7 +261,7 @@ export abstract class LegendApplication {
261
261
  } catch (error) {
262
262
  assertErrorThrown(error);
263
263
  this.logger.error(
264
- LogEvent.create(APPLICATION_EVENT.APPLICATION_FAILURE),
264
+ LogEvent.create(APPLICATION_EVENT.APPLICATION_LOAD_FAILURE),
265
265
  'Failed to load Legend application',
266
266
  );
267
267
  throw error;
@@ -16,7 +16,7 @@
16
16
 
17
17
  import {
18
18
  type EventNotifierPlugin,
19
- type EventNotifierServicePluginManager,
19
+ type EventNotifierPluginManager,
20
20
  type LoggerPlugin,
21
21
  type LoggerPluginManager,
22
22
  type TelemetryServicePlugin,
@@ -25,7 +25,7 @@ import {
25
25
  type TracerServicePluginManager,
26
26
  AbstractPluginManager,
27
27
  } from '@finos/legend-shared';
28
- import type { LegendApplicationPlugin } from '../stores/LegendApplicationPlugin';
28
+ import type { LegendApplicationPlugin } from '../stores/LegendApplicationPlugin.js';
29
29
 
30
30
  export class LegendApplicationPluginManager
31
31
  extends AbstractPluginManager
@@ -33,7 +33,7 @@ export class LegendApplicationPluginManager
33
33
  LoggerPluginManager,
34
34
  TelemetryServicePluginManager,
35
35
  TracerServicePluginManager,
36
- EventNotifierServicePluginManager
36
+ EventNotifierPluginManager
37
37
  {
38
38
  protected loggerPlugins: LoggerPlugin[] = [];
39
39
  protected telemetryServicePlugins: TelemetryServicePlugin[] = [];
@@ -19,10 +19,10 @@ import {
19
19
  ActionAlertActionType,
20
20
  ActionAlertType,
21
21
  type ActionAlertInfo,
22
- } from '../stores/ApplicationStore';
22
+ } from '../stores/ApplicationStore.js';
23
23
  import { observer } from 'mobx-react-lite';
24
24
  import { noop } from '@finos/legend-shared';
25
- import { useApplicationStore } from './ApplicationStoreProvider';
25
+ import { useApplicationStore } from './ApplicationStoreProvider.js';
26
26
 
27
27
  const getActionButtonClassName = (type: ActionAlertActionType): string => {
28
28
  switch (type) {
@@ -16,11 +16,11 @@
16
16
 
17
17
  import { createContext, useContext } from 'react';
18
18
  import { useLocalObservable } from 'mobx-react-lite';
19
- import { ApplicationStore } from '../stores/ApplicationStore';
20
- import type { LegendApplicationConfig } from '../stores/LegendApplicationConfig';
19
+ import { ApplicationStore } from '../stores/ApplicationStore.js';
20
+ import type { LegendApplicationConfig } from '../stores/LegendApplicationConfig.js';
21
21
  import { guaranteeNonNullable } from '@finos/legend-shared';
22
- import { useWebApplicationNavigator } from './WebApplicationNavigatorProvider';
23
- import type { LegendApplicationPluginManager } from '../application/LegendApplicationPluginManager';
22
+ import { useWebApplicationNavigator } from './WebApplicationNavigatorProvider.js';
23
+ import type { LegendApplicationPluginManager } from '../application/LegendApplicationPluginManager.js';
24
24
 
25
25
  const ApplicationStoreContext = createContext<
26
26
  ApplicationStore<LegendApplicationConfig> | undefined
@@ -14,12 +14,13 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
+ import { jest } from '@jest/globals';
17
18
  import { createMemoryHistory } from 'history';
18
- import { ApplicationStore } from '../stores/ApplicationStore';
19
- import { WebApplicationNavigator } from '../stores/WebApplicationNavigator';
20
- import type { LegendApplicationConfig } from '../stores/LegendApplicationConfig';
21
- import { ApplicationStoreProvider } from './ApplicationStoreProvider';
22
- import type { LegendApplicationPluginManager } from '../application/LegendApplicationPluginManager';
19
+ import { ApplicationStore } from '../stores/ApplicationStore.js';
20
+ import { WebApplicationNavigator } from '../stores/WebApplicationNavigator.js';
21
+ import type { LegendApplicationConfig } from '../stores/LegendApplicationConfig.js';
22
+ import { ApplicationStoreProvider } from './ApplicationStoreProvider.js';
23
+ import type { LegendApplicationPluginManager } from '../application/LegendApplicationPluginManager.js';
23
24
 
24
25
  export const TEST__ApplicationStoreProvider: React.FC<{
25
26
  children: React.ReactNode;
@@ -49,7 +50,7 @@ export const TEST__provideMockedApplicationStore = <
49
50
  new WebApplicationNavigator(createMemoryHistory()),
50
51
  pluginManager,
51
52
  );
52
- const MockedApplicationStoreProvider = require('./ApplicationStoreProvider'); // eslint-disable-line @typescript-eslint/no-unsafe-assignment
53
+ const MockedApplicationStoreProvider = require('./ApplicationStoreProvider.js'); // eslint-disable-line @typescript-eslint/no-unsafe-assignment
53
54
  MockedApplicationStoreProvider.useApplicationStore = jest.fn();
54
55
  MockedApplicationStoreProvider.useApplicationStore.mockReturnValue(value);
55
56
  return value;