@finos/legend-application 1.0.1 → 1.1.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/CHANGELOG.md +18 -0
- package/lib/application/LegendApplication.d.ts +1 -2
- package/lib/application/LegendApplication.d.ts.map +1 -1
- package/lib/application/LegendApplication.js.map +1 -1
- package/lib/application/LegendApplicationPluginManager.d.ts +1 -2
- package/lib/application/LegendApplicationPluginManager.d.ts.map +1 -1
- package/lib/application/LegendApplicationPluginManager.js +1 -1
- package/lib/application/LegendApplicationPluginManager.js.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 -1
- package/lib/components/ActionAlert.js.map +1 -1
- package/lib/components/BlockingAlert.d.ts +1 -0
- package/lib/components/BlockingAlert.d.ts.map +1 -1
- package/lib/components/BlockingAlert.js +3 -2
- package/lib/components/BlockingAlert.js.map +1 -1
- package/lib/components/LambdaEditor.d.ts +3 -2
- package/lib/components/LambdaEditor.d.ts.map +1 -1
- package/lib/components/LambdaEditor.js +5 -6
- package/lib/components/LambdaEditor.js.map +1 -1
- package/lib/components/{NotificationSnackbar.d.ts → LegendApplicationComponentFrameworkProvider.d.ts} +5 -4
- package/lib/components/LegendApplicationComponentFrameworkProvider.d.ts.map +1 -0
- package/lib/components/LegendApplicationComponentFrameworkProvider.js +25 -0
- package/lib/components/LegendApplicationComponentFrameworkProvider.js.map +1 -0
- package/lib/components/{ApplicationBackdrop.d.ts → NotificationManager.d.ts} +3 -4
- package/lib/components/NotificationManager.d.ts.map +1 -0
- package/lib/components/{NotificationSnackbar.js → NotificationManager.js} +14 -15
- package/lib/components/NotificationManager.js.map +1 -0
- package/lib/components/TextInputEditor.d.ts +2 -3
- package/lib/components/TextInputEditor.d.ts.map +1 -1
- package/lib/components/TextInputEditor.js +1 -1
- package/lib/components/TextInputEditor.js.map +1 -1
- package/lib/components/WebApplicationNavigatorProviderTestUtils.d.ts +1 -1
- package/lib/components/WebApplicationNavigatorProviderTestUtils.d.ts.map +1 -1
- package/lib/components/WebApplicationNavigatorProviderTestUtils.js +1 -1
- package/lib/components/WebApplicationNavigatorProviderTestUtils.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -4
- package/lib/index.js.map +1 -1
- package/lib/stores/ApplicationStore.d.ts +1 -2
- package/lib/stores/ApplicationStore.d.ts.map +1 -1
- package/lib/stores/ApplicationStore.js +1 -1
- package/lib/stores/ApplicationStore.js.map +1 -1
- package/lib/stores/LambdaEditorState.d.ts +2 -3
- package/lib/stores/LambdaEditorState.d.ts.map +1 -1
- package/lib/stores/LambdaEditorState.js +1 -1
- package/lib/stores/LambdaEditorState.js.map +1 -1
- package/package.json +18 -20
- package/src/application/LegendApplication.tsx +2 -1
- package/src/application/LegendApplicationPluginManager.tsx +10 -10
- package/src/components/ActionAlert.tsx +3 -2
- package/src/components/BlockingAlert.tsx +4 -2
- package/src/components/LambdaEditor.tsx +19 -14
- package/src/components/{ApplicationBackdrop.tsx → LegendApplicationComponentFrameworkProvider.tsx} +18 -5
- package/src/components/{NotificationSnackbar.tsx → NotificationManager.tsx} +30 -25
- package/src/components/TextInputEditor.tsx +6 -4
- package/src/components/WebApplicationNavigatorProviderTestUtils.tsx +1 -2
- package/src/index.ts +2 -4
- package/src/stores/ApplicationStore.ts +2 -2
- package/src/stores/LambdaEditorState.ts +6 -4
- package/tsconfig.json +2 -2
- package/lib/components/ApplicationBackdrop.d.ts.map +0 -1
- package/lib/components/ApplicationBackdrop.js +0 -20
- package/lib/components/ApplicationBackdrop.js.map +0 -1
- package/lib/components/NotificationSnackbar.d.ts.map +0 -1
- package/lib/components/NotificationSnackbar.js.map +0 -1
package/lib/index.css
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -18,13 +18,10 @@ export * from './application/LegendApplicationPluginManager';
|
|
|
18
18
|
export * from './application/LegendApplication';
|
|
19
19
|
export * from './components/ApplicationStoreProvider';
|
|
20
20
|
export * from './components/WebApplicationNavigatorProvider';
|
|
21
|
+
export * from './components/LegendApplicationComponentFrameworkProvider';
|
|
21
22
|
export * from './components/ApplicationStoreProviderTestUtils';
|
|
22
23
|
export * from './components/WebApplicationNavigatorProviderTestUtils';
|
|
23
24
|
export { AppHeader } from './components/AppHeader';
|
|
24
|
-
export { BlockingAlert } from './components/BlockingAlert';
|
|
25
|
-
export { ActionAlert } from './components/ActionAlert';
|
|
26
|
-
export { NotificationSnackbar } from './components/NotificationSnackbar';
|
|
27
|
-
export { ApplicationBackdrop } from './components/ApplicationBackdrop';
|
|
28
25
|
export * from './components/TextInputEditor';
|
|
29
26
|
export * from './components/LambdaEditor';
|
|
30
27
|
export * from './stores/ApplicationStore';
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,SAAS,CAAC;AAExB,cAAc,8CAA8C,CAAC;AAC7D,cAAc,iCAAiC,CAAC;AAEhD,cAAc,uCAAuC,CAAC;AACtD,cAAc,8CAA8C,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,SAAS,CAAC;AAExB,cAAc,8CAA8C,CAAC;AAC7D,cAAc,iCAAiC,CAAC;AAEhD,cAAc,uCAAuC,CAAC;AACtD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,0DAA0D,CAAC;AAEzE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,uDAAuD,CAAC;AAEtE,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAE1C,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,cAAc,mCAAmC,CAAC;AAElD,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE1E,cAAc,oCAAoC,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -18,13 +18,10 @@ export * from './application/LegendApplicationPluginManager';
|
|
|
18
18
|
export * from './application/LegendApplication';
|
|
19
19
|
export * from './components/ApplicationStoreProvider';
|
|
20
20
|
export * from './components/WebApplicationNavigatorProvider';
|
|
21
|
+
export * from './components/LegendApplicationComponentFrameworkProvider';
|
|
21
22
|
export * from './components/ApplicationStoreProviderTestUtils';
|
|
22
23
|
export * from './components/WebApplicationNavigatorProviderTestUtils';
|
|
23
24
|
export { AppHeader } from './components/AppHeader';
|
|
24
|
-
export { BlockingAlert } from './components/BlockingAlert';
|
|
25
|
-
export { ActionAlert } from './components/ActionAlert';
|
|
26
|
-
export { NotificationSnackbar } from './components/NotificationSnackbar';
|
|
27
|
-
export { ApplicationBackdrop } from './components/ApplicationBackdrop';
|
|
28
25
|
export * from './components/TextInputEditor';
|
|
29
26
|
export * from './components/LambdaEditor';
|
|
30
27
|
export * from './stores/ApplicationStore';
|
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,SAAS,CAAC;AAExB,cAAc,8CAA8C,CAAC;AAC7D,cAAc,iCAAiC,CAAC;AAEhD,cAAc,uCAAuC,CAAC;AACtD,cAAc,8CAA8C,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,SAAS,CAAC;AAExB,cAAc,8CAA8C,CAAC;AAC7D,cAAc,iCAAiC,CAAC;AAEhD,cAAc,uCAAuC,CAAC;AACtD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,0DAA0D,CAAC;AAEzE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,uDAAuD,CAAC;AAEtE,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAE1C,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,cAAc,mCAAmC,CAAC;AAElD,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE1E,cAAc,oCAAoC,CAAC"}
|
|
@@ -14,8 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
/// <reference types="react" />
|
|
17
|
-
import type
|
|
18
|
-
import { EventNotifierService, TracerService, TelemetryService, Log } from '@finos/legend-shared';
|
|
17
|
+
import { type SuperGenericFunction, EventNotifierService, TracerService, TelemetryService, Log } from '@finos/legend-shared';
|
|
19
18
|
import type { LegendApplicationConfig } from './ApplicationConfig';
|
|
20
19
|
import type { WebApplicationNavigator } from './WebApplicationNavigator';
|
|
21
20
|
import type { LegendApplicationPluginManager } from '../application/LegendApplicationPluginManager';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationStore.d.ts","sourceRoot":"","sources":["../../src/stores/ApplicationStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAEH,OAAO,KAAK,
|
|
1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AE,MAAM,GAAG,IAAI,GAC/B,IAAI;IAaP,aAAa,CACX,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,kBAAkB,EAAE,EAC9B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,GAC/B,IAAI;IAaP,aAAa,CACX,OAAO,EAAE,MAAM,GAAG,KAAK,EACvB,OAAO,CAAC,EAAE,kBAAkB,EAAE,EAC9B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,GAC/B,IAAI;IAaP,kBAAkB,CAChB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,kBAAkB,EAAE,EAC9B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,GAC/B,IAAI;IAaP,WAAW,CAAC,OAAO,EAAE,KAAK,GAAG,MAAM,EAAE,OAAO,CAAC,EAAE,kBAAkB,EAAE,GAAG,IAAI;IAsB1E;;;;;;OAMG;IACH,iCAAiC,oGAW/B;IAEF;;;OAGG;IACH,0BAA0B,UAAW,KAAK,KAAG,IAAI,CAO/C;IAEF;;OAEG;IACH,mBAAmB,aACN,MAAM,QAAQ,IAAI,CAAC,KAAG,CAAC,MAAM,QAAQ,IAAI,CAAC,CAAC,CAEF;IAEhD,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA8BtD,wBAAwB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;CAGpD"}
|
|
@@ -114,7 +114,7 @@ export class ApplicationStore {
|
|
|
114
114
|
notifyError(content, actions) {
|
|
115
115
|
let message;
|
|
116
116
|
if (content instanceof ApplicationError) {
|
|
117
|
-
message = content.
|
|
117
|
+
message = content.detail;
|
|
118
118
|
}
|
|
119
119
|
else if (content instanceof Error) {
|
|
120
120
|
message = content.message;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationStore.js","sourceRoot":"","sources":["../../src/stores/ApplicationStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;G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oBAAS;gBACR,OAAO,CAAC,MAAM,EAAE,CAAC;aAClB;YACD,OAAO;SACR;QACD,IAAI,CAAC,WAAW,CAAC,kDAAkD,CAAC,CAAC;IACvE,CAAC;IAED,wBAAwB,CAAC,WAAmB;QAC1C,IAAI,CAAC,aAAa,CAAC,wBAAwB,WAAW,EAAE,CAAC,CAAC;IAC5D,CAAC;CACF"}
|
|
@@ -13,9 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type
|
|
17
|
-
import type
|
|
18
|
-
import { SourceInformation } from '@finos/legend-graph';
|
|
16
|
+
import { type GeneratorFn } from '@finos/legend-shared';
|
|
17
|
+
import { type ParserError, type CompilationError, SourceInformation } from '@finos/legend-graph';
|
|
19
18
|
/**
|
|
20
19
|
* This is not strictly meant for lambda. The idea is to create an editor that allows
|
|
21
20
|
* editing _something_ but allows user to edit via text.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LambdaEditorState.d.ts","sourceRoot":"","sources":["../../src/stores/LambdaEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"LambdaEditorState.d.ts","sourceRoot":"","sources":["../../src/stores/LambdaEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,KAAK,WAAW,EAAQ,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAE7B;;;GAGG;AACH,8BAAsB,iBAAiB;IACrC,IAAI,SAAU;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IACtC,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;gBAEpC,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM;IAmBtD,QAAQ,KAAK,QAAQ,IAAI,MAAM,CAAC;IAGhC,IAAI,gBAAgB,IAAI,MAAM,CAE7B;IAED,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIlC,WAAW,IAAI,IAAI;IAKnB,mBAAmB,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,SAAS,GAAG,IAAI;IAUzE,cAAc,CAAC,WAAW,EAAE,WAAW,GAAG,SAAS,GAAG,IAAI;IAU1D,wBAAwB,CACtB,iBAAiB,EAAE,iBAAiB,GACnC,iBAAiB;IAcpB,mBAAmB,CAAC,gBAAgB,EAAE,MAAM,GAAG,MAAM;IAOrD,QAAQ,CAAC,kCAAkC,IAAI,WAAW,CAAC,IAAI,CAAC;IAChE,QAAQ,CAAC,kCAAkC,CACzC,MAAM,EAAE,OAAO,GACd,WAAW,CAAC,IAAI,CAAC;CACrB"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { observable, action, computed, makeObservable, flow } from 'mobx';
|
|
17
17
|
import { uuid } from '@finos/legend-shared';
|
|
18
|
-
import { SourceInformation } from '@finos/legend-graph';
|
|
18
|
+
import { SourceInformation, } from '@finos/legend-graph';
|
|
19
19
|
/**
|
|
20
20
|
* This is not strictly meant for lambda. The idea is to create an editor that allows
|
|
21
21
|
* editing _something_ but allows user to edit via text.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LambdaEditorState.js","sourceRoot":"","sources":["../../src/stores/LambdaEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"LambdaEditorState.js","sourceRoot":"","sources":["../../src/stores/LambdaEditorState.ts"],"names":[],"mappings":"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|
{
|
|
2
2
|
"name": "@finos/legend-application",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Legend application core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -27,7 +27,9 @@
|
|
|
27
27
|
"build": "yarn clean && yarn build:sass && yarn build:tsc",
|
|
28
28
|
"build:sass": "cross-env INIT_CWD=$INIT_CWD node ../../scripts/workflow/buildSass.js",
|
|
29
29
|
"build:tsc": "tsc --project ./tsconfig.build.json",
|
|
30
|
-
"clean": "
|
|
30
|
+
"clean": "npm-run-all clean:cache clean:lib",
|
|
31
|
+
"clean:cache": "rimraf \"build\"",
|
|
32
|
+
"clean:lib": "rimraf \"lib\"",
|
|
31
33
|
"dev": "npm-run-all --parallel dev:sass dev:tsc",
|
|
32
34
|
"dev:sass": "sass style lib --watch --load-path=../../node_modules/@finos/legend-art/scss",
|
|
33
35
|
"dev:tsc": "tsc --watch --preserveWatchOutput",
|
|
@@ -38,37 +40,33 @@
|
|
|
38
40
|
"test:watch": "jest --watch"
|
|
39
41
|
},
|
|
40
42
|
"dependencies": {
|
|
41
|
-
"@finos/legend-art": "0.2
|
|
42
|
-
"@finos/legend-graph": "0.
|
|
43
|
-
"@finos/legend-shared": "1.
|
|
44
|
-
"@material-ui/core": "4.12.3",
|
|
45
|
-
"@testing-library/react": "12.1.2",
|
|
43
|
+
"@finos/legend-art": "0.3.2",
|
|
44
|
+
"@finos/legend-graph": "1.0.2",
|
|
45
|
+
"@finos/legend-shared": "1.1.1",
|
|
46
46
|
"@types/css-font-loading-module": "0.0.7",
|
|
47
|
-
"@types/react": "17.0.
|
|
47
|
+
"@types/react": "17.0.38",
|
|
48
48
|
"@types/react-dom": "17.0.11",
|
|
49
49
|
"@types/react-router-dom": "5.3.2",
|
|
50
|
-
"history": "5.
|
|
51
|
-
"mobx": "6.3.
|
|
52
|
-
"mobx-react-lite": "3.2.
|
|
53
|
-
"monaco-editor": "0.
|
|
50
|
+
"history": "5.2.0",
|
|
51
|
+
"mobx": "6.3.13",
|
|
52
|
+
"mobx-react-lite": "3.2.3",
|
|
53
|
+
"monaco-editor": "0.31.1",
|
|
54
54
|
"react": "17.0.2",
|
|
55
55
|
"react-dom": "17.0.2",
|
|
56
|
-
"react-
|
|
57
|
-
"react-resize-detector": "6.7.6",
|
|
56
|
+
"react-resize-detector": "7.0.0",
|
|
58
57
|
"react-router": "5.2.1",
|
|
59
58
|
"react-router-dom": "5.3.0",
|
|
60
59
|
"serializr": "2.0.5"
|
|
61
60
|
},
|
|
62
61
|
"devDependencies": {
|
|
63
|
-
"@finos/legend-dev-utils": "0.3.
|
|
64
|
-
"@testing-library/dom": "8.11.1",
|
|
62
|
+
"@finos/legend-dev-utils": "0.3.7",
|
|
65
63
|
"cross-env": "7.0.3",
|
|
66
|
-
"eslint": "8.
|
|
67
|
-
"jest": "27.4.
|
|
64
|
+
"eslint": "8.7.0",
|
|
65
|
+
"jest": "27.4.7",
|
|
68
66
|
"npm-run-all": "4.1.5",
|
|
69
67
|
"rimraf": "3.0.2",
|
|
70
|
-
"sass": "1.
|
|
71
|
-
"typescript": "4.5.
|
|
68
|
+
"sass": "1.49.0",
|
|
69
|
+
"typescript": "4.5.5"
|
|
72
70
|
},
|
|
73
71
|
"peerDependencies": {
|
|
74
72
|
"react": "^17.0.0"
|
|
@@ -34,8 +34,9 @@ import type {
|
|
|
34
34
|
LegendApplicationConfigurationData,
|
|
35
35
|
LegendApplicationVersionData,
|
|
36
36
|
} from '../stores/ApplicationConfig';
|
|
37
|
-
import type { AbstractPlugin, AbstractPreset } from '@finos/legend-shared';
|
|
38
37
|
import {
|
|
38
|
+
type AbstractPlugin,
|
|
39
|
+
type AbstractPreset,
|
|
39
40
|
assertErrorThrown,
|
|
40
41
|
LogEvent,
|
|
41
42
|
guaranteeNonEmptyString,
|
|
@@ -14,17 +14,17 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import
|
|
18
|
-
EventNotifierPlugin,
|
|
19
|
-
EventNotifierServicePluginManager,
|
|
20
|
-
LoggerPlugin,
|
|
21
|
-
LoggerPluginManager,
|
|
22
|
-
TelemetryServicePlugin,
|
|
23
|
-
TelemetryServicePluginManager,
|
|
24
|
-
TracerServicePlugin,
|
|
25
|
-
TracerServicePluginManager,
|
|
17
|
+
import {
|
|
18
|
+
type EventNotifierPlugin,
|
|
19
|
+
type EventNotifierServicePluginManager,
|
|
20
|
+
type LoggerPlugin,
|
|
21
|
+
type LoggerPluginManager,
|
|
22
|
+
type TelemetryServicePlugin,
|
|
23
|
+
type TelemetryServicePluginManager,
|
|
24
|
+
type TracerServicePlugin,
|
|
25
|
+
type TracerServicePluginManager,
|
|
26
|
+
AbstractPluginManager,
|
|
26
27
|
} from '@finos/legend-shared';
|
|
27
|
-
import { AbstractPluginManager } from '@finos/legend-shared';
|
|
28
28
|
|
|
29
29
|
export class LegendApplicationPluginManager
|
|
30
30
|
extends AbstractPluginManager
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import Dialog from '@
|
|
18
|
-
import type { ActionAlertInfo } from '../stores/ApplicationStore';
|
|
17
|
+
import { Dialog } from '@finos/legend-art';
|
|
19
18
|
import {
|
|
20
19
|
ActionAlertActionType,
|
|
21
20
|
ActionAlertType,
|
|
21
|
+
type ActionAlertInfo,
|
|
22
22
|
} from '../stores/ApplicationStore';
|
|
23
23
|
import { observer } from 'mobx-react-lite';
|
|
24
24
|
import { noop } from '@finos/legend-shared';
|
|
@@ -58,6 +58,7 @@ const ActionAlertInner = observer((props: { info: ActionAlertInfo }) => {
|
|
|
58
58
|
open={Boolean(applicationStore.actionAlertInfo)}
|
|
59
59
|
onClose={noop} // disallow closing dialog by using Esc key or clicking on the backdrop
|
|
60
60
|
TransitionProps={{
|
|
61
|
+
appear: false, // disable transition
|
|
61
62
|
onEnter: handleEnter,
|
|
62
63
|
}}
|
|
63
64
|
>
|
|
@@ -14,9 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import Dialog from '@material-ui/core/Dialog';
|
|
18
17
|
import { observer } from 'mobx-react-lite';
|
|
19
|
-
import { PanelLoadingIndicator } from '@finos/legend-art';
|
|
18
|
+
import { PanelLoadingIndicator, Dialog } from '@finos/legend-art';
|
|
20
19
|
import { noop } from '@finos/legend-shared';
|
|
21
20
|
import { useApplicationStore } from './ApplicationStoreProvider';
|
|
22
21
|
|
|
@@ -40,6 +39,9 @@ export const BlockingAlert = observer(() => {
|
|
|
40
39
|
root: 'blocking-alert__root-container',
|
|
41
40
|
container: 'blocking-alert__container',
|
|
42
41
|
}}
|
|
42
|
+
TransitionProps={{
|
|
43
|
+
appear: false, // disable transition
|
|
44
|
+
}}
|
|
43
45
|
>
|
|
44
46
|
<div className="modal modal--dark blocking-alert">
|
|
45
47
|
<PanelLoadingIndicator isLoading={Boolean(info.showLoading)} />
|
|
@@ -15,8 +15,11 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { useRef, useEffect, useState, useMemo } from 'react';
|
|
18
|
-
import
|
|
19
|
-
|
|
18
|
+
import {
|
|
19
|
+
editor as monacoEditorAPI,
|
|
20
|
+
type IDisposable,
|
|
21
|
+
type IKeyboardEvent,
|
|
22
|
+
} from 'monaco-editor';
|
|
20
23
|
import { observer } from 'mobx-react-lite';
|
|
21
24
|
import { useResizeDetector } from 'react-resize-detector';
|
|
22
25
|
import {
|
|
@@ -27,22 +30,23 @@ import {
|
|
|
27
30
|
baseTextEditorSettings,
|
|
28
31
|
getEditorValue,
|
|
29
32
|
normalizeLineEnding,
|
|
33
|
+
FilledWindowMaximizeIcon,
|
|
34
|
+
LongArrowAltDownIcon,
|
|
35
|
+
LongArrowAltUpIcon,
|
|
36
|
+
Dialog,
|
|
30
37
|
} from '@finos/legend-art';
|
|
31
|
-
import {
|
|
32
|
-
FaLongArrowAltDown,
|
|
33
|
-
FaLongArrowAltUp,
|
|
34
|
-
FaWindowMaximize,
|
|
35
|
-
} from 'react-icons/fa';
|
|
36
38
|
import type { LambdaEditorState } from '../stores/LambdaEditorState';
|
|
37
|
-
import
|
|
38
|
-
|
|
39
|
+
import {
|
|
40
|
+
debounce,
|
|
41
|
+
noop,
|
|
42
|
+
type DebouncedFunc,
|
|
43
|
+
type GeneratorFn,
|
|
44
|
+
} from '@finos/legend-shared';
|
|
39
45
|
import { flowResult } from 'mobx';
|
|
40
|
-
import type
|
|
41
|
-
import { ParserError } from '@finos/legend-graph';
|
|
46
|
+
import { ParserError, type EngineError, type Type } from '@finos/legend-graph';
|
|
42
47
|
import { APPLICATION_TEST_ID } from './ApplicationTestID';
|
|
43
48
|
import { useApplicationStore } from './ApplicationStoreProvider';
|
|
44
49
|
import { EDITOR_LANGUAGE, EDITOR_THEME, TAB_SIZE } from '../const';
|
|
45
|
-
import { Dialog } from '@material-ui/core';
|
|
46
50
|
|
|
47
51
|
export type LambdaEditorOnKeyDownEventHandler = {
|
|
48
52
|
matcher: (event: IKeyboardEvent) => boolean;
|
|
@@ -397,7 +401,7 @@ const LambdaEditorInline = observer(
|
|
|
397
401
|
tabIndex={-1}
|
|
398
402
|
title="Toggle Expand"
|
|
399
403
|
>
|
|
400
|
-
{isExpanded ? <
|
|
404
|
+
{isExpanded ? <LongArrowAltUpIcon /> : <LongArrowAltDownIcon />}
|
|
401
405
|
</button>
|
|
402
406
|
)}
|
|
403
407
|
{!disablePopUp && (
|
|
@@ -408,7 +412,7 @@ const LambdaEditorInline = observer(
|
|
|
408
412
|
tabIndex={-1}
|
|
409
413
|
title="Open..."
|
|
410
414
|
>
|
|
411
|
-
<
|
|
415
|
+
<FilledWindowMaximizeIcon />
|
|
412
416
|
</button>
|
|
413
417
|
)}
|
|
414
418
|
</div>
|
|
@@ -610,6 +614,7 @@ const LambdaEditorPopUp = observer(
|
|
|
610
614
|
<Dialog
|
|
611
615
|
open={true}
|
|
612
616
|
TransitionProps={{
|
|
617
|
+
appear: false, // disable transition
|
|
613
618
|
onEnter,
|
|
614
619
|
}}
|
|
615
620
|
onClose={noop} // disallow closing dialog by using Esc key or clicking on the backdrop
|
package/src/components/{ApplicationBackdrop.tsx → LegendApplicationComponentFrameworkProvider.tsx}
RENAMED
|
@@ -14,9 +14,22 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
17
|
+
import { LegendStyleProvider } from '@finos/legend-art';
|
|
18
|
+
import { ActionAlert } from './ActionAlert';
|
|
19
|
+
import { BlockingAlert } from './BlockingAlert';
|
|
20
|
+
import { NotificationManager } from './NotificationManager';
|
|
19
21
|
|
|
20
|
-
export const
|
|
21
|
-
|
|
22
|
-
)
|
|
22
|
+
export const LegendApplicationComponentFrameworkProvider: React.FC<{
|
|
23
|
+
children: React.ReactNode;
|
|
24
|
+
}> = (props) => {
|
|
25
|
+
const { children } = props;
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<LegendStyleProvider>
|
|
29
|
+
<BlockingAlert />
|
|
30
|
+
<ActionAlert />
|
|
31
|
+
<NotificationManager />
|
|
32
|
+
{children}
|
|
33
|
+
</LegendStyleProvider>
|
|
34
|
+
);
|
|
35
|
+
};
|
|
@@ -15,26 +15,28 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { observer } from 'mobx-react-lite';
|
|
18
|
-
import type { SnackbarCloseReason } from '@material-ui/core/Snackbar';
|
|
19
|
-
import Snackbar from '@material-ui/core/Snackbar';
|
|
20
|
-
import SnackbarContent from '@material-ui/core/SnackbarContent';
|
|
21
18
|
import {
|
|
22
19
|
DEFAULT_NOTIFICATION_HIDE_TIME,
|
|
23
20
|
NOTIFCATION_SEVERITY,
|
|
24
21
|
} from '../stores/ApplicationStore';
|
|
25
|
-
import {
|
|
26
|
-
FaTimes,
|
|
27
|
-
FaCheckCircle,
|
|
28
|
-
FaInfoCircle,
|
|
29
|
-
FaTimesCircle,
|
|
30
|
-
FaExclamationTriangle,
|
|
31
|
-
FaBug,
|
|
32
|
-
} from 'react-icons/fa';
|
|
33
22
|
import { useApplicationStore } from './ApplicationStoreProvider';
|
|
34
|
-
import {
|
|
23
|
+
import {
|
|
24
|
+
Notification,
|
|
25
|
+
NotificationContent,
|
|
26
|
+
type NotificationCloseReason,
|
|
27
|
+
ChevronDownIcon,
|
|
28
|
+
ChevronUpIcon,
|
|
29
|
+
TimesIcon,
|
|
30
|
+
ExclamationTriangleIcon,
|
|
31
|
+
TimesCircleIcon,
|
|
32
|
+
CheckCircleIcon,
|
|
33
|
+
InfoCircleIcon,
|
|
34
|
+
BugIcon,
|
|
35
|
+
clsx,
|
|
36
|
+
} from '@finos/legend-art';
|
|
35
37
|
import { useState } from 'react';
|
|
36
38
|
|
|
37
|
-
export const
|
|
39
|
+
export const NotificationManager = observer(() => {
|
|
38
40
|
const applicationStore = useApplicationStore();
|
|
39
41
|
const notification = applicationStore.notification;
|
|
40
42
|
const isOpen = Boolean(notification);
|
|
@@ -43,35 +45,35 @@ export const NotificationSnackbar = observer(() => {
|
|
|
43
45
|
const [isExpanded, setIsExpanded] = useState(false);
|
|
44
46
|
let notificationIcon = (
|
|
45
47
|
<div className="notification__message__content__icon notification__message__content__icon--info">
|
|
46
|
-
<
|
|
48
|
+
<InfoCircleIcon />
|
|
47
49
|
</div>
|
|
48
50
|
);
|
|
49
51
|
switch (severity) {
|
|
50
52
|
case NOTIFCATION_SEVERITY.ILEGAL_STATE:
|
|
51
53
|
notificationIcon = (
|
|
52
54
|
<div className="notification__message__content__icon notification__message__content__icon--error">
|
|
53
|
-
<
|
|
55
|
+
<BugIcon />
|
|
54
56
|
</div>
|
|
55
57
|
);
|
|
56
58
|
break;
|
|
57
59
|
case NOTIFCATION_SEVERITY.ERROR:
|
|
58
60
|
notificationIcon = (
|
|
59
61
|
<div className="notification__message__content__icon notification__message__content__icon--error">
|
|
60
|
-
<
|
|
62
|
+
<TimesCircleIcon />
|
|
61
63
|
</div>
|
|
62
64
|
);
|
|
63
65
|
break;
|
|
64
66
|
case NOTIFCATION_SEVERITY.WARNING:
|
|
65
67
|
notificationIcon = (
|
|
66
68
|
<div className="notification__message__content__icon notification__message__content__icon--warning">
|
|
67
|
-
<
|
|
69
|
+
<ExclamationTriangleIcon />
|
|
68
70
|
</div>
|
|
69
71
|
);
|
|
70
72
|
break;
|
|
71
73
|
case NOTIFCATION_SEVERITY.SUCCESS:
|
|
72
74
|
notificationIcon = (
|
|
73
75
|
<div className="notification__message__content__icon notification__message__content__icon--success">
|
|
74
|
-
<
|
|
76
|
+
<CheckCircleIcon />
|
|
75
77
|
</div>
|
|
76
78
|
);
|
|
77
79
|
break;
|
|
@@ -87,19 +89,22 @@ export const NotificationSnackbar = observer(() => {
|
|
|
87
89
|
const toggleExpansion = (): void => setIsExpanded(!isExpanded);
|
|
88
90
|
|
|
89
91
|
const onSnackbarAutoHideOrClickAway = (
|
|
90
|
-
event: React.SyntheticEvent<unknown
|
|
91
|
-
reason:
|
|
92
|
+
event: React.SyntheticEvent<unknown> | Event,
|
|
93
|
+
reason: NotificationCloseReason,
|
|
92
94
|
): void => {
|
|
93
95
|
// NOTE: we only should not allow dismissing the notification on click-away. First of call, this might not be desirable
|
|
94
96
|
// second, this clashes with modal that traps focus, e.g. when we have another modal open and want to show a notification
|
|
95
|
-
// the notification focus is stolen by the modal leading to the
|
|
97
|
+
// the notification focus is stolen by the modal leading to the notification immediately gets clicked-away and closed
|
|
96
98
|
if (reason === 'timeout') {
|
|
97
99
|
handleClose();
|
|
98
100
|
}
|
|
99
101
|
};
|
|
100
102
|
|
|
101
103
|
return (
|
|
102
|
-
<
|
|
104
|
+
<Notification
|
|
105
|
+
TransitionProps={{
|
|
106
|
+
appear: false,
|
|
107
|
+
}}
|
|
103
108
|
classes={{
|
|
104
109
|
root: 'notification',
|
|
105
110
|
anchorOriginBottomRight: 'notification__position',
|
|
@@ -125,7 +130,7 @@ export const NotificationSnackbar = observer(() => {
|
|
|
125
130
|
: ''
|
|
126
131
|
}
|
|
127
132
|
>
|
|
128
|
-
<
|
|
133
|
+
<NotificationContent
|
|
129
134
|
classes={{
|
|
130
135
|
root: 'notification__content',
|
|
131
136
|
message: 'notification__message',
|
|
@@ -163,10 +168,10 @@ export const NotificationSnackbar = observer(() => {
|
|
|
163
168
|
tabIndex={-1}
|
|
164
169
|
title={'Dismiss'}
|
|
165
170
|
>
|
|
166
|
-
<
|
|
171
|
+
<TimesIcon />
|
|
167
172
|
</button>,
|
|
168
173
|
]}
|
|
169
174
|
/>
|
|
170
|
-
</
|
|
175
|
+
</Notification>
|
|
171
176
|
);
|
|
172
177
|
});
|
|
@@ -15,8 +15,11 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { useState, useRef, useEffect } from 'react';
|
|
18
|
-
import
|
|
19
|
-
|
|
18
|
+
import {
|
|
19
|
+
type IDisposable,
|
|
20
|
+
type IKeyboardEvent,
|
|
21
|
+
editor as monacoEditorAPI,
|
|
22
|
+
} from 'monaco-editor';
|
|
20
23
|
import { useResizeDetector } from 'react-resize-detector';
|
|
21
24
|
import {
|
|
22
25
|
disposeEditor,
|
|
@@ -26,8 +29,7 @@ import {
|
|
|
26
29
|
getEditorValue,
|
|
27
30
|
normalizeLineEnding,
|
|
28
31
|
} from '@finos/legend-art';
|
|
29
|
-
import type
|
|
30
|
-
import { EDITOR_THEME, TAB_SIZE } from '../const';
|
|
32
|
+
import { type EDITOR_LANGUAGE, EDITOR_THEME, TAB_SIZE } from '../const';
|
|
31
33
|
import { useApplicationStore } from './ApplicationStoreProvider';
|
|
32
34
|
|
|
33
35
|
export type TextInputEditorOnKeyDownEventHandler = {
|
|
@@ -14,9 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { createMemoryHistory } from 'history';
|
|
18
17
|
import { WebApplicationNavigator } from '../stores/WebApplicationNavigator';
|
|
19
|
-
import type
|
|
18
|
+
import { createMemoryHistory, type History } from 'history';
|
|
20
19
|
|
|
21
20
|
export const TEST__provideMockedWebApplicationNavigator = (customization?: {
|
|
22
21
|
mock?: WebApplicationNavigator;
|
package/src/index.ts
CHANGED
|
@@ -21,14 +21,12 @@ export * from './application/LegendApplication';
|
|
|
21
21
|
|
|
22
22
|
export * from './components/ApplicationStoreProvider';
|
|
23
23
|
export * from './components/WebApplicationNavigatorProvider';
|
|
24
|
+
export * from './components/LegendApplicationComponentFrameworkProvider';
|
|
24
25
|
|
|
25
26
|
export * from './components/ApplicationStoreProviderTestUtils';
|
|
26
27
|
export * from './components/WebApplicationNavigatorProviderTestUtils';
|
|
28
|
+
|
|
27
29
|
export { AppHeader } from './components/AppHeader';
|
|
28
|
-
export { BlockingAlert } from './components/BlockingAlert';
|
|
29
|
-
export { ActionAlert } from './components/ActionAlert';
|
|
30
|
-
export { NotificationSnackbar } from './components/NotificationSnackbar';
|
|
31
|
-
export { ApplicationBackdrop } from './components/ApplicationBackdrop';
|
|
32
30
|
export * from './components/TextInputEditor';
|
|
33
31
|
export * from './components/LambdaEditor';
|
|
34
32
|
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import type { SuperGenericFunction } from '@finos/legend-shared';
|
|
18
17
|
import {
|
|
18
|
+
type SuperGenericFunction,
|
|
19
19
|
EventNotifierService,
|
|
20
20
|
TracerService,
|
|
21
21
|
TelemetryService,
|
|
@@ -230,7 +230,7 @@ export class ApplicationStore<T extends LegendApplicationConfig> {
|
|
|
230
230
|
notifyError(content: Error | string, actions?: NotificationAction[]): void {
|
|
231
231
|
let message: string | undefined;
|
|
232
232
|
if (content instanceof ApplicationError) {
|
|
233
|
-
message = content.
|
|
233
|
+
message = content.detail;
|
|
234
234
|
} else if (content instanceof Error) {
|
|
235
235
|
message = content.message;
|
|
236
236
|
} else {
|