@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.
- package/lib/application/LegendApplication.d.ts +2 -2
- package/lib/application/LegendApplication.d.ts.map +1 -1
- package/lib/application/LegendApplication.js +4 -4
- package/lib/application/LegendApplication.js.map +1 -1
- package/lib/application/LegendApplicationPluginManager.d.ts +3 -3
- package/lib/application/LegendApplicationPluginManager.d.ts.map +1 -1
- package/lib/components/ActionAlert.d.ts +1 -0
- package/lib/components/ActionAlert.d.ts.map +1 -1
- package/lib/components/ActionAlert.js +2 -2
- package/lib/components/ActionAlert.js.map +1 -1
- package/lib/components/ApplicationStoreProvider.d.ts +3 -3
- package/lib/components/ApplicationStoreProvider.d.ts.map +1 -1
- package/lib/components/ApplicationStoreProvider.js +2 -2
- package/lib/components/ApplicationStoreProvider.js.map +1 -1
- package/lib/components/ApplicationStoreProviderTestUtils.d.ts +5 -5
- package/lib/components/ApplicationStoreProviderTestUtils.d.ts.map +1 -1
- package/lib/components/ApplicationStoreProviderTestUtils.js +5 -4
- package/lib/components/ApplicationStoreProviderTestUtils.js.map +1 -1
- package/lib/components/ApplicationTestID.js +1 -1
- package/lib/components/ApplicationTestID.js.map +1 -1
- package/lib/components/BasicValueSpecificationEditor.d.ts +44 -0
- package/lib/components/BasicValueSpecificationEditor.d.ts.map +1 -0
- package/lib/components/BasicValueSpecificationEditor.js +276 -0
- package/lib/components/BasicValueSpecificationEditor.js.map +1 -0
- package/lib/components/BlockingAlert.d.ts +1 -0
- package/lib/components/BlockingAlert.d.ts.map +1 -1
- package/lib/components/BlockingAlert.js +1 -1
- package/lib/components/BlockingAlert.js.map +1 -1
- package/lib/components/CustomDatePicker.d.ts +38 -0
- package/lib/components/CustomDatePicker.d.ts.map +1 -0
- package/lib/components/CustomDatePicker.js +592 -0
- package/lib/components/CustomDatePicker.js.map +1 -0
- package/lib/components/DocumentationLink.d.ts +1 -1
- package/lib/components/DocumentationLink.js +2 -2
- package/lib/components/DocumentationLink.js.map +1 -1
- package/lib/components/LambdaEditor.d.ts +2 -1
- package/lib/components/LambdaEditor.d.ts.map +1 -1
- package/lib/components/LambdaEditor.js +3 -3
- package/lib/components/LambdaEditor.js.map +1 -1
- package/lib/components/LambdaParameterValuesEditor.d.ts +25 -0
- package/lib/components/LambdaParameterValuesEditor.d.ts.map +1 -0
- package/lib/components/LambdaParameterValuesEditor.js +52 -0
- package/lib/components/LambdaParameterValuesEditor.js.map +1 -0
- package/lib/components/LegendApplicationComponentFrameworkProvider.d.ts +1 -1
- package/lib/components/LegendApplicationComponentFrameworkProvider.js +3 -3
- package/lib/components/LegendApplicationComponentFrameworkProvider.js.map +1 -1
- package/lib/components/LegendApplicationNavigationContextServiceUtils.d.ts +32 -0
- package/lib/components/LegendApplicationNavigationContextServiceUtils.d.ts.map +1 -0
- package/lib/components/LegendApplicationNavigationContextServiceUtils.js +57 -0
- package/lib/components/LegendApplicationNavigationContextServiceUtils.js.map +1 -0
- package/lib/components/NotificationManager.d.ts +1 -0
- package/lib/components/NotificationManager.d.ts.map +1 -1
- package/lib/components/NotificationManager.js +2 -2
- package/lib/components/NotificationManager.js.map +1 -1
- package/lib/components/TextInputEditor.d.ts +2 -2
- package/lib/components/TextInputEditor.d.ts.map +1 -1
- package/lib/components/TextInputEditor.js +2 -2
- package/lib/components/TextInputEditor.js.map +1 -1
- package/lib/components/{AppHeader.d.ts → VirtualAssistant.d.ts} +5 -5
- package/lib/components/VirtualAssistant.d.ts.map +1 -0
- package/lib/components/VirtualAssistant.js +171 -0
- package/lib/components/VirtualAssistant.js.map +1 -0
- package/lib/components/WebApplicationNavigatorProvider.d.ts +2 -2
- package/lib/components/WebApplicationNavigatorProvider.d.ts.map +1 -1
- package/lib/components/WebApplicationNavigatorProvider.js +1 -1
- package/lib/components/WebApplicationNavigatorProvider.js.map +1 -1
- package/lib/components/WebApplicationNavigatorProviderTestUtils.d.ts +2 -2
- package/lib/components/WebApplicationNavigatorProviderTestUtils.d.ts.map +1 -1
- package/lib/components/WebApplicationNavigatorProviderTestUtils.js +3 -2
- package/lib/components/WebApplicationNavigatorProviderTestUtils.js.map +1 -1
- package/lib/const.js +2 -2
- package/lib/const.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +30 -22
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +32 -22
- package/lib/index.js.map +1 -1
- package/lib/stores/ApplicationEvent.d.ts +9 -7
- package/lib/stores/ApplicationEvent.d.ts.map +1 -1
- package/lib/stores/ApplicationEvent.js +10 -8
- package/lib/stores/ApplicationEvent.js.map +1 -1
- package/lib/stores/ApplicationStore.d.ts +15 -9
- package/lib/stores/ApplicationStore.d.ts.map +1 -1
- package/lib/stores/ApplicationStore.js +26 -21
- package/lib/stores/ApplicationStore.js.map +1 -1
- package/lib/stores/ApplicationStoreTestUtils.d.ts +3 -3
- package/lib/stores/ApplicationStoreTestUtils.d.ts.map +1 -1
- package/lib/stores/ApplicationStoreTestUtils.js +2 -2
- package/lib/stores/ApplicationStoreTestUtils.js.map +1 -1
- package/lib/stores/ApplicationTelemetry.d.ts +1 -1
- package/lib/stores/ApplicationTelemetry.d.ts.map +1 -1
- package/lib/stores/ApplicationTelemetry.js +2 -2
- package/lib/stores/ApplicationTelemetry.js.map +1 -1
- package/lib/stores/CJS__Fuse.cjs +35 -0
- package/lib/stores/CJS__Fuse.cjs.map +1 -0
- package/lib/stores/CJS__Fuse.d.cts +28 -0
- package/lib/stores/CJS__Fuse.d.cts.map +1 -0
- package/lib/stores/LambdaParameterState.d.ts +59 -0
- package/lib/stores/LambdaParameterState.d.ts.map +1 -0
- package/lib/stores/LambdaParameterState.js +184 -0
- package/lib/stores/LambdaParameterState.js.map +1 -0
- package/lib/stores/LegendApplicationAssistantService.d.ts +63 -0
- package/lib/stores/LegendApplicationAssistantService.d.ts.map +1 -0
- package/lib/stores/LegendApplicationAssistantService.js +167 -0
- package/lib/stores/LegendApplicationAssistantService.js.map +1 -0
- package/lib/stores/LegendApplicationConfig.d.ts +5 -4
- package/lib/stores/LegendApplicationConfig.d.ts.map +1 -1
- package/lib/stores/LegendApplicationConfig.js +8 -3
- package/lib/stores/LegendApplicationConfig.js.map +1 -1
- package/lib/stores/LegendApplicationDocumentationService.d.ts +70 -0
- package/lib/stores/LegendApplicationDocumentationService.d.ts.map +1 -0
- package/lib/stores/LegendApplicationDocumentationService.js +152 -0
- package/lib/stores/LegendApplicationDocumentationService.js.map +1 -0
- package/lib/stores/LegendApplicationEventService.d.ts +22 -0
- package/lib/stores/LegendApplicationEventService.d.ts.map +1 -0
- package/lib/stores/LegendApplicationEventService.js +25 -0
- package/lib/stores/LegendApplicationEventService.js.map +1 -0
- package/lib/stores/LegendApplicationNavigationContextService.d.ts +74 -0
- package/lib/stores/LegendApplicationNavigationContextService.d.ts.map +1 -0
- package/lib/stores/LegendApplicationNavigationContextService.js +118 -0
- package/lib/stores/LegendApplicationNavigationContextService.js.map +1 -0
- package/lib/stores/LegendApplicationPlugin.d.ts +6 -2
- package/lib/stores/LegendApplicationPlugin.d.ts.map +1 -1
- package/lib/stores/LegendApplicationPlugin.js.map +1 -1
- package/lib/stores/PureLanguageSupport.d.ts.map +1 -1
- package/lib/stores/PureLanguageSupport.js +8 -2
- package/lib/stores/PureLanguageSupport.js.map +1 -1
- package/lib/stores/ValueSpecificationModifierHelper.d.ts +27 -0
- package/lib/stores/ValueSpecificationModifierHelper.d.ts.map +1 -0
- package/lib/stores/ValueSpecificationModifierHelper.js +49 -0
- package/lib/stores/ValueSpecificationModifierHelper.js.map +1 -0
- package/package.json +24 -18
- package/src/application/LegendApplication.tsx +6 -6
- package/src/application/LegendApplicationPluginManager.tsx +3 -3
- package/src/components/ActionAlert.tsx +2 -2
- package/src/components/ApplicationStoreProvider.tsx +4 -4
- package/src/components/ApplicationStoreProviderTestUtils.tsx +7 -6
- package/src/components/BasicValueSpecificationEditor.tsx +703 -0
- package/src/components/BlockingAlert.tsx +1 -1
- package/src/components/CustomDatePicker.tsx +1235 -0
- package/src/components/DocumentationLink.tsx +2 -2
- package/src/components/LambdaEditor.tsx +4 -4
- package/src/components/LambdaParameterValuesEditor.tsx +114 -0
- package/src/components/LegendApplicationComponentFrameworkProvider.tsx +3 -3
- package/src/components/LegendApplicationNavigationContextServiceUtils.tsx +63 -0
- package/src/components/NotificationManager.tsx +2 -2
- package/src/components/TextInputEditor.tsx +2 -2
- package/src/components/VirtualAssistant.tsx +600 -0
- package/src/components/WebApplicationNavigatorProvider.tsx +1 -1
- package/src/components/WebApplicationNavigatorProviderTestUtils.tsx +3 -2
- package/src/index.ts +39 -28
- package/src/stores/ApplicationEvent.ts +11 -7
- package/src/stores/ApplicationStore.ts +29 -27
- package/src/stores/ApplicationStoreTestUtils.ts +4 -4
- package/src/stores/ApplicationTelemetry.ts +2 -2
- package/src/stores/CJS__Fuse.cts +28 -0
- package/src/stores/LambdaParameterState.ts +314 -0
- package/src/stores/LegendApplicationAssistantService.ts +218 -0
- package/src/stores/LegendApplicationConfig.ts +20 -6
- package/src/stores/LegendApplicationDocumentationService.ts +276 -0
- package/src/stores/LegendApplicationEventService.ts +32 -0
- package/src/stores/LegendApplicationNavigationContextService.ts +131 -0
- package/src/stores/LegendApplicationPlugin.ts +10 -2
- package/src/stores/PureLanguageSupport.ts +8 -2
- package/src/stores/ValueSpecificationModifierHelper.ts +104 -0
- package/tsconfig.json +18 -12
- package/lib/components/AppHeader.d.ts.map +0 -1
- package/lib/components/AppHeader.js +0 -26
- package/lib/components/AppHeader.js.map +0 -1
- package/lib/stores/LegendApplicationDocumentationRegistry.d.ts +0 -36
- package/lib/stores/LegendApplicationDocumentationRegistry.d.ts.map +0 -1
- package/lib/stores/LegendApplicationDocumentationRegistry.js +0 -47
- package/lib/stores/LegendApplicationDocumentationRegistry.js.map +0 -1
- package/src/components/AppHeader.tsx +0 -49
- 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
|
+
"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": "
|
|
47
|
-
"@finos/legend-graph": "
|
|
48
|
-
"@finos/legend-shared": "
|
|
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/
|
|
51
|
-
"@types/react
|
|
52
|
-
"@types/react-
|
|
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.
|
|
57
|
+
"mobx": "6.6.0",
|
|
55
58
|
"mobx-react-lite": "3.4.0",
|
|
56
59
|
"monaco-editor": "0.33.0",
|
|
57
|
-
"
|
|
58
|
-
"react
|
|
59
|
-
"react-
|
|
60
|
-
"react-
|
|
61
|
-
"react-
|
|
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": "
|
|
70
|
+
"@finos/legend-dev-utils": "2.0.1",
|
|
71
|
+
"@jest/globals": "28.1.1",
|
|
66
72
|
"cross-env": "7.0.3",
|
|
67
|
-
"eslint": "8.
|
|
68
|
-
"jest": "28.1.
|
|
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.
|
|
72
|
-
"typescript": "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.
|
|
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
|
|
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
|
-
|
|
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;
|