@finos/legend-application 1.1.9 → 1.2.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 +1 -1
- package/lib/application/LegendApplication.d.ts.map +1 -1
- package/lib/application/LegendApplication.js +8 -5
- package/lib/application/LegendApplication.js.map +1 -1
- package/lib/components/ActionAlert.js +3 -3
- package/lib/components/ActionAlert.js.map +1 -1
- package/lib/components/AppHeader.d.ts.map +1 -1
- package/lib/components/AppHeader.js +1 -1
- package/lib/components/AppHeader.js.map +1 -1
- package/lib/components/ApplicationStoreProvider.d.ts +1 -1
- package/lib/components/ApplicationStoreProvider.d.ts.map +1 -1
- package/lib/components/ApplicationStoreProvider.js +1 -1
- package/lib/components/ApplicationStoreProvider.js.map +1 -1
- package/lib/components/ApplicationStoreProviderTestUtils.d.ts +1 -1
- package/lib/components/ApplicationStoreProviderTestUtils.d.ts.map +1 -1
- package/lib/components/ApplicationStoreProviderTestUtils.js +1 -1
- package/lib/components/ApplicationStoreProviderTestUtils.js.map +1 -1
- package/lib/components/BlockingAlert.js +1 -1
- package/lib/components/BlockingAlert.js.map +1 -1
- package/lib/components/DocumentationLink.d.ts +21 -0
- package/lib/components/DocumentationLink.d.ts.map +1 -0
- package/lib/components/DocumentationLink.js +33 -0
- package/lib/components/DocumentationLink.js.map +1 -0
- package/lib/components/LambdaEditor.js +14 -14
- package/lib/components/LambdaEditor.js.map +1 -1
- package/lib/components/LegendApplicationComponentFrameworkProvider.js +1 -1
- package/lib/components/LegendApplicationComponentFrameworkProvider.js.map +1 -1
- package/lib/components/NotificationManager.d.ts.map +1 -1
- package/lib/components/NotificationManager.js +10 -10
- package/lib/components/NotificationManager.js.map +1 -1
- package/lib/components/TextInputEditor.js +1 -1
- package/lib/components/TextInputEditor.js.map +1 -1
- package/lib/components/WebApplicationNavigatorProvider.js +1 -1
- package/lib/components/WebApplicationNavigatorProvider.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/lib/stores/ApplicationStore.d.ts +6 -4
- package/lib/stores/ApplicationStore.d.ts.map +1 -1
- package/lib/stores/ApplicationStore.js +7 -3
- package/lib/stores/ApplicationStore.js.map +1 -1
- package/lib/stores/ApplicationStoreTestUtils.d.ts +1 -1
- package/lib/stores/ApplicationStoreTestUtils.d.ts.map +1 -1
- package/lib/stores/{ApplicationConfig.d.ts → LegendApplicationConfig.d.ts} +7 -1
- package/lib/stores/LegendApplicationConfig.d.ts.map +1 -0
- package/lib/stores/{ApplicationConfig.js → LegendApplicationConfig.js} +7 -1
- package/lib/stores/LegendApplicationConfig.js.map +1 -0
- package/lib/stores/LegendApplicationDocumentationRegistry.d.ts +22 -0
- package/lib/stores/LegendApplicationDocumentationRegistry.d.ts.map +1 -0
- package/lib/stores/LegendApplicationDocumentationRegistry.js +26 -0
- package/lib/stores/LegendApplicationDocumentationRegistry.js.map +1 -0
- package/package.json +15 -15
- package/src/application/LegendApplication.tsx +9 -7
- package/src/components/AppHeader.tsx +5 -3
- package/src/components/ApplicationStoreProvider.tsx +1 -1
- package/src/components/ApplicationStoreProviderTestUtils.tsx +1 -1
- package/src/components/DocumentationLink.tsx +44 -0
- package/src/components/LambdaEditor.tsx +11 -11
- package/src/components/NotificationManager.tsx +3 -2
- package/src/index.ts +2 -1
- package/src/stores/ApplicationStore.ts +14 -10
- package/src/stores/ApplicationStoreTestUtils.ts +1 -1
- package/src/stores/{ApplicationConfig.ts → LegendApplicationConfig.ts} +14 -0
- package/src/stores/LegendApplicationDocumentationRegistry.ts +29 -0
- package/tsconfig.json +3 -1
- package/CHANGELOG.md +0 -102
- package/lib/stores/ApplicationConfig.d.ts.map +0 -1
- package/lib/stores/ApplicationConfig.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInputEditor.js","s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ACd,WAAW,EAAE,KAAK;oBAClB,oBAAoB,EAAE,EAAE;oBACxB,mBAAmB,EAAE,CAAC;iBACvB;gBACH,CAAC,CAAC,EAAE,CAAC;YACP,GAAG,CAAC,kBAAkB,IAAI,EAAE,CAAC;SAC9B,CAAC,CAAC;QACH,MAAM,KAAK,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;QAChC,KAAK,EAAE,aAAa,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC;KAC7C;IAED,SAAS,CACP,GAAG,EAAE,CAAC,GAAS,EAAE;QACf,IAAI,MAAM,EAAE;YACV,aAAa,CAAC,MAAM,CAAC,CAAC;SACvB;IACH,CAAC,EACD,CAAC,MAAM,CAAC,CACT,CAAC,CAAC,iBAAiB;IAEpB,OAAO,CACL,cAAK,GAAG,EAAE,GAAG,EAAE,SAAS,EAAC,wBAAwB,YAC/C,cAAK,SAAS,EAAC,mBAAmB,EAAC,GAAG,EAAE,YAAY,GAAI,GACpD,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -23,7 +23,7 @@ const WebApplicationNavigatorContext = createContext(undefined);
|
|
|
23
23
|
export const WebApplicationNavigatorProvider = ({ children }) => {
|
|
24
24
|
const history = useHistory();
|
|
25
25
|
const navigator = useLocalObservable(() => new WebApplicationNavigator(history));
|
|
26
|
-
return (_jsx(WebApplicationNavigatorContext.Provider, { value: navigator, children: children }
|
|
26
|
+
return (_jsx(WebApplicationNavigatorContext.Provider, { value: navigator, children: children }));
|
|
27
27
|
};
|
|
28
28
|
export const useWebApplicationNavigator = () => guaranteeNonNullable(useContext(WebApplicationNavigatorContext), `Can't find web application navigator in context`);
|
|
29
29
|
//# sourceMappingURL=WebApplicationNavigatorProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebApplicationNavigatorProvider.js","sourceRoot":"","sources":["../../src/components/WebApplicationNavigatorProvider.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAc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AG,kBAAkB,CAClC,GAAG,EAAE,CAAC,IAAI,uBAAuB,CAAC,OAAO,CAAC,CAC3C,CAAC;IACF,OAAO,CACL,KAAC,8BAA8B,CAAC,QAAQ,IAAC,KAAK,EAAE,SAAS,YACtD,QAAQ,GAC+B,CAC3C,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAA4B,EAAE,CACtE,oBAAoB,CAClB,UAAU,CAAC,8BAA8B,CAAC,EAC1C,iDAAiD,CAClD,CAAC"}
|
package/lib/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license @finos/legend-application v1.
|
|
1
|
+
/** @license @finos/legend-application v1.2.2
|
|
2
2
|
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
:root{--color-primitive: var(--color-light-blue-200);--color-enum-value: var(--color-green-100);--color-enumeration: var(--color-medium-green-100);--color-measure: var(--color-medium-green-100);--color-unit: var(--color-medium-green-100);--color-class: var(--color-purple-100);--color-mapping: var(--color-teal-50);--color-function: var(--color-light-blue-20);--color-profile: var(--color-lime-75);--color-generated: var(--color-pink-200);--color-system: var(--color-light-blue-50);--color-dependency: var(--color-lime-50);--color-config: var(--color-orange-100);--color-flat-data: var(--color-orange-100);--color-relational: var(--color-blue-500);--color-file-generation: var(--color-blue-50);--color-database: var(--color-orange-100);--color-schema: var(--color-medium-green-500);--color-table: var(--color-light-blue-200);--color-association: var(--color-light-grey-400);--color-service: var(--color-blue-40);--color-runtime: var(--color-red-180);--color-connection: var(--color-yellow-100)}.color--class{color:var(--color-class)}.color--enumeration{color:var(--color-enumeration)}.color--unit{color:var(--color-unit)}.color--measure{color:var(--color-measure)}.color--association{color:var(--color-association)}.color--primitive{color:var(--color-primitive)}.color--enum-value{color:var(--color-enum-value)}.color--mapping{color:var(--color-mapping)}.color--function{color:var(--color-function)}.color--file-generation{color:var(--color-file-generation)}.color--profile{color:var(--color-profile)}.color--generated{color:var(--color-generated)}.color--system{color:var(--color-system)}.color--dependency{color:var(--color-dependency)}.color--config{color:var(--color-config)}.color--flat-data{color:var(--color-flat-data)}.color--database{color:var(--color-database)}.color--table{color:var(--color-table)}.color--schema{color:var(--color-schema)}.color--service{color:var(--color-service)}.color--connection{color:var(--color-connection)}.color--runtime{color:var(--color-runtime)}.background--pureinstance,.background--class{background:var(--color-class)}.background--enumeration{background:var(--color-enumeration)}.background--unit{background:var(--color-unit)}.background--measure{background:var(--color-measure)}.background--association{background:var(--color-association)}.background--primitive{background:var(--color-primitive)}.background--enum-value{background:var(--color-enum-value)}.background--mapping{background:var(--color-mapping)}.background--profile{background:var(--color-profile)}.background--flat-data{background:var(--color-flat-data)}.background--database{background:var(--color-database)}.background--service{background:var(--color-service)}.background--connection{background:var(--color-connection)}.background--runtime{background:var(--color-runtime)}.background--relational{background:var(--color-relational)}.app{height:100%}.app__page{height:100%}.app__header{display:flex;justify-content:space-between;width:100%;background:var(--color-dark-grey-200);height:4.8rem}.app__header__content{display:flex;justify-content:space-between;width:100%;left:0;right:0;margin:0 auto;height:4.8rem;padding:0}.app__header__title{display:flex;align-items:center;justify-content:left;flex-direction:row;font-weight:300;font-size:1.3rem;padding-right:1rem;white-space:nowrap;overflow:hidden !important;text-overflow:ellipsis}.app__header__logo{display:flex;align-items:center;justify-content:center;fill:var(--color-text-label);width:4.8rem;height:4.8rem;cursor:pointer}.app__header__logo svg{display:none;font-size:2rem;color:var(--color-light-grey-100)}.app__header__tag{display:inline-flex;align-items:center;margin-left:1rem;background:var(--color-dark-grey-300);padding:0 .5rem;border-radius:.3rem;height:2.4rem;font-size:1.8rem;font-family:"Roboto Condensed",sans-serif;font-weight:400;color:var(--color-text-label);cursor:default}.app__header__tag__name{padding:0 .7rem;font-size:1.6rem;background:var(--color-dark-grey-300);color:var(--color-light-grey-200);font-weight:400;border-radius:.3rem 0 0 .3rem}.app__header__tag__value{padding:0 .7rem;font-size:1.6rem;margin-left:0;color:var(--color-light-grey-100);font-weight:400;background:var(--color-blue-200);border-radius:0 .3rem .3rem 0}.app__header__actions{display:flex;align-items:center}.app__header__action{display:flex;align-items:center;justify-content:center;width:4.8rem;height:100%}.app__header__action svg{color:var(--color-light-grey-400);cursor:pointer}.app__header__menu{width:15rem}.app__header__menu__item{display:flex;align-items:center;justify-content:center}.app__header__menu-btn svg{font-size:2rem}.app__content{background:var(--color-dark-grey-50);height:calc(100% - 4.8rem)}.blocking-alert{padding:0}.blocking-alert__root-container{margin-top:0 !important}.blocking-alert__container{align-items:center !important}.blocking-alert .btn{display:flex;align-items:center;justify-content:center;height:2.8rem;border-radius:.1rem;border:none;color:var(--color-light-grey-50)}.blocking-alert .modal__body{line-height:2.2rem;cursor:default;text-align:justify}.blocking-alert__message{text-align:center}.blocking-alert__message__prompt{text-align:center;font-size:1.2rem;color:var(--color-blue-150);font-weight:500}.blocking-alert__summary-text{color:var(--color-light-grey-400);font-weight:500}.blocking-alert__prompt-text{color:var(--color-blue-50);font-size:1.3rem;margin-top:1rem;font-weight:500}.blocking-alert--standard{border:.1rem solid var(--color-blue-200)}.blocking-alert--caution{border:.1rem solid var(--color-pink-400)}.blocking-alert--caution .mode__header{background:var(--color-pink-400)}.blocking-alert--caution .blocking-alert__prompt-text{color:var(--color-pink-300)}.backdrop{background:var(--color-dark-shade-230) !important;z-index:100 !important}.backdrop__element{z-index:100;position:relative;box-shadow:var(--color-dark-shade-280) 0 .1rem .3rem .1rem}.lambda-editor{display:flex;align-items:center;height:2.8rem;flex:1 0 auto;min-width:0;border-radius:.2rem;background:var(--color-dark-grey-300)}.lambda-editor .monaco-editor .margin,.lambda-editor .monaco-editor .monaco-editor-background{background:var(--color-dark-grey-300) !important}.lambda-editor .monaco-editor .decorationsOverviewRuler{display:none}.lambda-editor__editor__input{position:relative;height:100%;width:100%}.lambda-editor__editor__input__compressed .scroll-decoration{box-shadow:none}.lambda-editor__editor__input__compressed .selected-text,.lambda-editor__editor__input__compressed .selectionHighlight{height:2.6rem !important}.lambda-editor__editor__input__compressed .cursors-layer .cursor{top:.3rem !important;height:2rem !important}.lambda-editor__editor__input__compressed .view-line{display:flex;align-items:center;height:2.6rem !important}.lambda-editor__editor__info{display:flex;align-items:center;height:100%;padding:0 .5rem;border:.1rem solid var(--color-dark-grey-300);border-right:none;border-left:none;background:var(--color-dark-grey-300)}.lambda-editor__editor__expected-return-type{display:flex;align-items:center;justify-content:center;height:100%;height:1.8rem;border-radius:.2rem;padding:0 .5rem;color:var(--color-dark-grey-400);background:var(--color-light-grey-0);border:.1rem solid var(--color-light-grey-0);font-size:1.1rem;cursor:default}.lambda-editor__editor__expected-return-type--clickable{cursor:pointer}.lambda-editor__editor__expected-return-type--highlighted{border-color:var(--color-yellow-0);background:var(--color-yellow-0);color:var(--color-dark-grey-0)}.lambda-editor__editor__expand-btn{display:flex;align-items:center;justify-content:center;height:100%;width:1.6rem;background:var(--color-dark-grey-280);border:.1rem solid var(--color-dark-grey-280);color:var(--color-light-grey-100);border-radius:0 .2rem .2rem 0;cursor:pointer}.lambda-editor__editor__expand-btn[disabled]{color:var(--color-dark-grey-400);cursor:not-allowed}.lambda-editor__expanded{height:28rem !important}.lambda-editor__expanded .lambda-editor__editor__info{align-items:flex-start;padding:.4rem .5rem}.lambda-editor__expanded .lambda-editor__editor__expand-btn{background:var(--color-dark-grey-280);border-color:var(--color-dark-grey-280)}.lambda-editor--dnd-match .lambda-editor__editor__expected-return-type{background:var(--color-yellow-0);border-color:var(--color-yellow-0);color:var(--color-dark-grey-0)}.lambda-editor__action{width:2.8rem;min-width:2.8rem;background:var(--color-dark-grey-250);height:100%;border-left:.1rem solid var(--color-dark-shade-300)}.lambda-editor__action svg{color:var(--color-light-grey-200)}.lambda-editor__error-feedback{width:100%;margin-top:.5rem;background:var(--color-red-100);color:var(--color-light-grey-0);border-radius:.2rem;cursor:default}.lambda-editor__error-feedback__error__message{display:inline-flex;line-height:1.6rem;padding:.5rem}.lambda-editor__error-feedback__parsing-error__content{display:flex;justify-content:space-between;border-top:.1rem solid var(--color-dark-shade-230);padding:.5rem}.lambda-editor__error-feedback__parsing-error__discard-changes-btn{cursor:pointer;font-size:1.2rem;height:1.8rem;background:var(--color-dark-shade-230);white-space:nowrap;border-radius:.2rem;padding:0 .5rem;color:var(--color-light-grey-50)}.lambda-editor__popup__modal__content{width:100%;height:100%;background:var(--color-dark-grey-50)}.lambda-editor__popup__modal--has-error{border:.1rem solid var(--color-red-200) !important}.lambda-editor__popup__modal--has-error .modal__header{background:var(--color-red-200)}.lambda-editor__popup__modal--has-error .modal__title__error-badge{display:flex;align-items:center;justify-content:center;margin-right:1rem;background:var(--color-red-400);height:2.2rem;border-radius:.2rem;padding:.5rem;font-size:1.2rem;user-select:none}.lambda-editor__popup__content{height:100% !important;background:var(--color-dark-grey-50);padding-top:1rem}.lambda-editor__popup__content .monaco-editor .margin,.lambda-editor__popup__content .monaco-editor .monaco-editor-background{background:var(--color-dark-grey-50) !important}.notification__position{bottom:3rem !important;right:1rem !important}.notification__content{background-color:var(--color-dark-grey-200) !important;color:var(--color-light-grey-150) !important;border-radius:.3rem !important;align-items:flex-start !important}.notification__message__content{display:flex;align-items:flex-start;cursor:pointer}.notification__message__content:active{background:var(--color-dark-grey-100)}.notification__message__content__icon{padding-top:.2rem;padding-right:1rem}.notification__message__content__icon svg{font-size:1.6rem}.notification__message__content__icon--info{color:var(--color-light-grey-200)}.notification__message__content__icon--error{color:var(--color-red-100)}.notification__message__content__icon--warning{color:var(--color-yellow-200)}.notification__message__content__icon--success{color:var(--color-green-100)}.notification__message__content__text{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-word;text-align:left;max-height:20rem;max-width:60rem}.notification__message__content__text--expanded{overflow:auto;white-space:pre-line;width:60rem}.notification__actions{padding:.8rem 0 .8rem 1rem !important}.notification__action{display:flex;align-items:center;justify-content:center;width:2rem;color:var(--color-dark-grey-400) !important}.notification__action:hover{color:var(--color-light-grey-400) !important}.text-editor__container{height:100%;width:100%;background:var(--color-dark-grey-50)}.text-editor__body{height:100%;width:100%;position:absolute;top:0;left:0}/*# sourceMappingURL=index.css.map */
|
|
17
|
+
:root{--color-primitive: var(--color-light-blue-200);--color-enum-value: var(--color-green-100);--color-enumeration: var(--color-medium-green-100);--color-measure: var(--color-medium-green-100);--color-unit: var(--color-medium-green-100);--color-class: var(--color-purple-100);--color-mapping: var(--color-teal-50);--color-function: var(--color-light-blue-20);--color-profile: var(--color-lime-75);--color-generated: var(--color-pink-200);--color-system: var(--color-light-blue-50);--color-dependency: var(--color-lime-50);--color-config: var(--color-orange-100);--color-flat-data: var(--color-orange-100);--color-relational: var(--color-blue-500);--color-file-generation: var(--color-blue-50);--color-database: var(--color-orange-100);--color-schema: var(--color-medium-green-500);--color-table: var(--color-light-blue-200);--color-association: var(--color-light-grey-400);--color-service: var(--color-blue-40);--color-runtime: var(--color-red-180);--color-connection: var(--color-yellow-100)}.color--class{color:var(--color-class)}.color--enumeration{color:var(--color-enumeration)}.color--unit{color:var(--color-unit)}.color--measure{color:var(--color-measure)}.color--association{color:var(--color-association)}.color--primitive{color:var(--color-primitive)}.color--enum-value{color:var(--color-enum-value)}.color--mapping{color:var(--color-mapping)}.color--function{color:var(--color-function)}.color--file-generation{color:var(--color-file-generation)}.color--profile{color:var(--color-profile)}.color--generated{color:var(--color-generated)}.color--system{color:var(--color-system)}.color--dependency{color:var(--color-dependency)}.color--config{color:var(--color-config)}.color--flat-data{color:var(--color-flat-data)}.color--database{color:var(--color-database)}.color--table{color:var(--color-table)}.color--schema{color:var(--color-schema)}.color--service{color:var(--color-service)}.color--connection{color:var(--color-connection)}.color--runtime{color:var(--color-runtime)}.background--pureinstance,.background--class{background:var(--color-class)}.background--enumeration{background:var(--color-enumeration)}.background--unit{background:var(--color-unit)}.background--measure{background:var(--color-measure)}.background--association{background:var(--color-association)}.background--primitive{background:var(--color-primitive)}.background--enum-value{background:var(--color-enum-value)}.background--mapping{background:var(--color-mapping)}.background--profile{background:var(--color-profile)}.background--flat-data{background:var(--color-flat-data)}.background--database{background:var(--color-database)}.background--service{background:var(--color-service)}.background--connection{background:var(--color-connection)}.background--runtime{background:var(--color-runtime)}.background--relational{background:var(--color-relational)}.app{height:100%}.app__page{height:100%}.app a{text-decoration:none}.app__header{display:flex;justify-content:space-between;width:100%;background:var(--color-dark-grey-200);height:4.8rem}.app__header__content{display:flex;justify-content:space-between;width:100%;left:0;right:0;margin:0 auto;height:4.8rem;padding:0}.app__header__title{display:flex;align-items:center;justify-content:left;flex-direction:row;font-weight:300;font-size:1.3rem;padding-right:1rem;white-space:nowrap;overflow:hidden !important;text-overflow:ellipsis}.app__header__logo{display:flex;align-items:center;justify-content:center;fill:var(--color-text-label);width:4.8rem;height:4.8rem;cursor:pointer}.app__header__logo svg{display:none;font-size:2rem;color:var(--color-light-grey-100)}.app__header__tag{display:inline-flex;align-items:center;margin-left:1rem;background:var(--color-dark-grey-300);padding:0 .5rem;border-radius:.3rem;height:2.4rem;font-size:1.8rem;font-family:"Roboto Condensed",sans-serif;font-weight:400;color:var(--color-text-label);cursor:default}.app__header__tag__name{padding:0 .7rem;font-size:1.6rem;background:var(--color-dark-grey-300);color:var(--color-light-grey-200);font-weight:400;border-radius:.3rem 0 0 .3rem}.app__header__tag__value{padding:0 .7rem;font-size:1.6rem;margin-left:0;color:var(--color-light-grey-100);font-weight:400;background:var(--color-blue-200);border-radius:0 .3rem .3rem 0}.app__header__app-name{cursor:pointer}.app__header__actions{display:flex;align-items:center}.app__header__action{display:flex;align-items:center;justify-content:center;width:4.8rem;height:100%}.app__header__action svg{color:var(--color-light-grey-400);cursor:pointer}.app__header__menu{width:15rem}.app__header__menu__item{display:flex;align-items:center;justify-content:center}.app__header__menu-btn svg{font-size:2rem}.app__content{background:var(--color-dark-grey-50);height:calc(100% - 4.8rem)}.blocking-alert{padding:0}.blocking-alert__root-container{margin-top:0 !important}.blocking-alert__container{align-items:center !important}.blocking-alert .btn{display:flex;align-items:center;justify-content:center;height:2.8rem;border-radius:.1rem;border:none;color:var(--color-light-grey-50)}.blocking-alert .modal__body{line-height:2.2rem;cursor:default;text-align:justify}.blocking-alert__message{text-align:center}.blocking-alert__message__prompt{text-align:center;font-size:1.2rem;color:var(--color-blue-150);font-weight:500}.blocking-alert__summary-text{color:var(--color-light-grey-400);font-weight:500}.blocking-alert__prompt-text{color:var(--color-blue-50);font-size:1.3rem;margin-top:1rem;font-weight:500}.blocking-alert--standard{border:.1rem solid var(--color-blue-200)}.blocking-alert--caution{border:.1rem solid var(--color-pink-400)}.blocking-alert--caution .mode__header{background:var(--color-pink-400)}.blocking-alert--caution .blocking-alert__prompt-text{color:var(--color-pink-300)}.documentation-link{cursor:pointer}.backdrop{background:var(--color-dark-shade-230) !important;z-index:100 !important}.backdrop__element{z-index:100;position:relative;box-shadow:var(--color-dark-shade-280) 0 .1rem .3rem .1rem}.lambda-editor{display:flex;align-items:center;height:2.8rem;flex:1 0 auto;min-width:0;border-radius:.2rem;background:var(--color-dark-grey-300)}.lambda-editor .monaco-editor .margin,.lambda-editor .monaco-editor .monaco-editor-background{background:var(--color-dark-grey-300) !important}.lambda-editor .monaco-editor .decorationsOverviewRuler{display:none}.lambda-editor__editor__input{position:relative;height:100%;width:100%}.lambda-editor__editor__input__compressed .scroll-decoration{box-shadow:none}.lambda-editor__editor__input__compressed .selected-text,.lambda-editor__editor__input__compressed .selectionHighlight{height:2.6rem !important}.lambda-editor__editor__input__compressed .cursors-layer .cursor{top:.3rem !important;height:2rem !important}.lambda-editor__editor__input__compressed .view-line{display:flex;align-items:center;height:2.6rem !important}.lambda-editor__editor__info{display:flex;align-items:center;height:100%;padding:0 .5rem;border:.1rem solid var(--color-dark-grey-300);border-right:none;border-left:none;background:var(--color-dark-grey-300)}.lambda-editor__editor__expected-return-type{display:flex;align-items:center;justify-content:center;height:100%;height:1.8rem;border-radius:.2rem;padding:0 .5rem;color:var(--color-dark-grey-400);background:var(--color-light-grey-0);border:.1rem solid var(--color-light-grey-0);font-size:1.1rem;cursor:default}.lambda-editor__editor__expected-return-type--clickable{cursor:pointer}.lambda-editor__editor__expected-return-type--highlighted{border-color:var(--color-yellow-0);background:var(--color-yellow-0);color:var(--color-dark-grey-0)}.lambda-editor__editor__expand-btn{display:flex;align-items:center;justify-content:center;height:100%;width:1.6rem;background:var(--color-dark-grey-280);border:.1rem solid var(--color-dark-grey-280);color:var(--color-light-grey-100);border-radius:0 .2rem .2rem 0;cursor:pointer}.lambda-editor__editor__expand-btn[disabled]{color:var(--color-dark-grey-400);cursor:not-allowed}.lambda-editor__expanded{height:28rem !important}.lambda-editor__expanded .lambda-editor__editor__info{align-items:flex-start;padding:.4rem .5rem}.lambda-editor__expanded .lambda-editor__editor__expand-btn{background:var(--color-dark-grey-280);border-color:var(--color-dark-grey-280)}.lambda-editor--dnd-match .lambda-editor__editor__expected-return-type{background:var(--color-yellow-0);border-color:var(--color-yellow-0);color:var(--color-dark-grey-0)}.lambda-editor__action{width:2.8rem;min-width:2.8rem;background:var(--color-dark-grey-250);height:100%;border-left:.1rem solid var(--color-dark-shade-300)}.lambda-editor__action svg{color:var(--color-light-grey-200)}.lambda-editor__error-feedback{width:100%;margin-top:.5rem;background:var(--color-red-100);color:var(--color-light-grey-0);border-radius:.2rem;cursor:default}.lambda-editor__error-feedback__error__message{display:inline-flex;line-height:1.6rem;padding:.5rem}.lambda-editor__error-feedback__parsing-error__content{display:flex;justify-content:space-between;border-top:.1rem solid var(--color-dark-shade-230);padding:.5rem}.lambda-editor__error-feedback__parsing-error__discard-changes-btn{cursor:pointer;font-size:1.2rem;height:1.8rem;background:var(--color-dark-shade-230);white-space:nowrap;border-radius:.2rem;padding:0 .5rem;color:var(--color-light-grey-50)}.lambda-editor__popup__modal__content{width:100%;height:100%;background:var(--color-dark-grey-50)}.lambda-editor__popup__modal--has-error{border:.1rem solid var(--color-red-200) !important}.lambda-editor__popup__modal--has-error .modal__header{background:var(--color-red-200)}.lambda-editor__popup__modal--has-error .modal__title__error-badge{display:flex;align-items:center;justify-content:center;margin-right:1rem;background:var(--color-red-400);height:2.2rem;border-radius:.2rem;padding:.5rem;font-size:1.2rem;user-select:none}.lambda-editor__popup__content{height:100% !important;background:var(--color-dark-grey-50);padding-top:1rem}.lambda-editor__popup__content .monaco-editor .margin,.lambda-editor__popup__content .monaco-editor .monaco-editor-background{background:var(--color-dark-grey-50) !important}.notification__position{bottom:3rem !important;right:1rem !important}.notification__content{background-color:var(--color-dark-grey-200) !important;color:var(--color-light-grey-150) !important;border-radius:.3rem !important;align-items:flex-start !important}.notification__message__content{display:flex;align-items:flex-start;cursor:pointer}.notification__message__content:active{background:var(--color-dark-grey-100)}.notification__message__content__icon{padding-top:.2rem;padding-right:1rem}.notification__message__content__icon svg{font-size:1.6rem}.notification__message__content__icon--info{color:var(--color-light-grey-200)}.notification__message__content__icon--error{color:var(--color-red-100)}.notification__message__content__icon--warning{color:var(--color-yellow-200)}.notification__message__content__icon--success{color:var(--color-green-100)}.notification__message__content__text{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-word;text-align:left;max-height:20rem;max-width:60rem}.notification__message__content__text--expanded{overflow:auto;white-space:pre-line;width:60rem}.notification__actions{padding:.8rem 0 .8rem 1rem !important}.notification__action{display:flex;align-items:center;justify-content:center;width:2rem;color:var(--color-dark-grey-400) !important}.notification__action:hover{color:var(--color-light-grey-400) !important}.text-editor__container{height:100%;width:100%;background:var(--color-dark-grey-50)}.text-editor__body{height:100%;width:100%;position:absolute;top:0;left:0}/*# sourceMappingURL=index.css.map */
|
package/lib/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../style/_extensions.scss","../style/components/_app.scss","../../../node_modules/@finos/legend-art/scss/_mixins.scss","../style/components/_blocking-alert.scss","../style/components/_backdrop.scss","../style/components/_lambda-editor.scss","../style/components/_notification.scss","../style/components/_text-editor.scss"],"names":[],"mappings":"AAgBA,MACE,+CACA,2CAEA,mDACA,+CACA,4CACA,uCACA,sCACA,6CACA,sCACA,yCACA,2CACA,yCACA,wCACA,2CACA,0CACA,8CACA,0CACA,8CACA,2CACA,iDACA,sCACA,sCACA,4CAIA,cACE,yBAGF,oBACE,+BAGF,aACE,wBAGF,gBACE,2BAGF,oBACE,+BAGF,kBACE,6BAGF,mBACE,8BAGF,gBACE,2BAGF,iBACE,4BAGF,wBACE,mCAGF,gBACE,2BAGF,kBACE,6BAGF,eACE,0BAGF,mBACE,8BAGF,eACE,0BAGF,kBACE,6BAGF,iBACE,4BAGF,cACE,yBAGF,eACE,0BAGF,gBACE,2BAGF,mBACE,8BAGF,gBACE,2BAKF,6CAEE,8BAGF,yBACE,oCAGF,kBACE,6BAGF,qBACE,gCAGF,yBACE,oCAGF,uBACE,kCAGF,wBACE,mCAGF,qBACE,gCAGF,qBACE,gCAGF,uBACE,kCAGF,sBACE,iCAGF,qBACE,gCAGF,wBACE,mCAGF,qBACE,gCAGF,wBACE,mCC9KJ,KACE,YAEA,WACE,YAGF,
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../style/_extensions.scss","../style/components/_app.scss","../../../node_modules/@finos/legend-art/scss/_mixins.scss","../style/components/_blocking-alert.scss","../style/components/_documentation-link.scss","../style/components/_backdrop.scss","../style/components/_lambda-editor.scss","../style/components/_notification.scss","../style/components/_text-editor.scss"],"names":[],"mappings":"AAgBA,MACE,+CACA,2CAEA,mDACA,+CACA,4CACA,uCACA,sCACA,6CACA,sCACA,yCACA,2CACA,yCACA,wCACA,2CACA,0CACA,8CACA,0CACA,8CACA,2CACA,iDACA,sCACA,sCACA,4CAIA,cACE,yBAGF,oBACE,+BAGF,aACE,wBAGF,gBACE,2BAGF,oBACE,+BAGF,kBACE,6BAGF,mBACE,8BAGF,gBACE,2BAGF,iBACE,4BAGF,wBACE,mCAGF,gBACE,2BAGF,kBACE,6BAGF,eACE,0BAGF,mBACE,8BAGF,eACE,0BAGF,kBACE,6BAGF,iBACE,4BAGF,cACE,yBAGF,eACE,0BAGF,gBACE,2BAGF,mBACE,8BAGF,gBACE,2BAKF,6CAEE,8BAGF,yBACE,oCAGF,kBACE,6BAGF,qBACE,gCAGF,yBACE,oCAGF,uBACE,kCAGF,wBACE,mCAGF,qBACE,gCAGF,qBACE,gCAGF,uBACE,kCAGF,sBACE,iCAGF,qBACE,gCAGF,wBACE,mCAGF,qBACE,gCAGF,wBACE,mCC9KJ,KACE,YAEA,WACE,YAGF,OACE,qBAGF,aCmBA,aACA,8BDjBE,WACA,sCACA,cAEA,sBCYF,aACA,8BDVI,WACA,OACA,QACA,cACA,cACA,UAGF,oBCjBF,aACA,mBDmBI,qBACA,mBACA,gBACA,iBACA,mBACA,mBACA,2BACA,uBAGF,mBCpCF,aACA,mBACA,uBDqCI,6BACA,aACA,cACA,eAEA,uBACE,aACA,eACA,kCAIJ,kBACE,oBACA,mBACA,iBACA,sCACA,gBACA,oBACA,cACA,iBACA,0CACA,gBACA,8BACA,eAGF,wBACE,gBACA,iBACA,sCACA,kCACA,gBACA,8BAGF,yBACE,gBACA,iBACA,cACA,kCACA,gBACA,iCACA,8BAGF,uBACE,eAGF,sBCnFF,aACA,mBDsFE,qBC7FF,aACA,mBACA,uBD8FI,aACA,YAEA,yBACE,kCACA,eAIJ,mBACE,YAGF,yBC7GF,aACA,mBACA,uBD+GE,2BACE,eAIJ,cACE,qCACA,2BE9HJ,gBACE,UAEA,gCACE,wBAGF,2BACE,8BAGF,qBDLA,aACA,mBACA,uBCME,cACA,oBACA,YACA,iCAGF,6BACE,mBACA,eACA,mBAGF,yBACE,kBAGF,iCACE,kBACA,iBACA,4BACA,gBAGF,8BACE,kCACA,gBAGF,6BACE,2BACA,iBACA,gBACA,gBAGF,0BACE,yCAGF,yBACE,yCAEA,uCACE,iCAGF,sDACE,4BC/DN,oBACE,eCDF,UACE,kDACA,uBAEA,mBACE,YACA,kBACA,2DCLJ,eJYE,aACA,mBIVA,cACA,cACA,YACA,oBACA,sCAKE,8FAEE,iDAGF,wDACE,aAIJ,8BACE,kBACA,YACA,WAIA,6DACE,gBAIF,uHAEE,yBAGF,iEACE,qBACA,uBAGF,qDJhCF,aACA,mBIkCI,yBAIJ,6BJvCA,aACA,mBIyCE,YACA,gBACA,8CACA,kBACA,iBACA,sCAGF,6CJxDA,aACA,mBACA,uBIyDE,YACA,cACA,oBACA,gBACA,iCACA,qCACA,6CACA,iBACA,eAGF,wDACE,eAGF,0DACE,mCACA,iCACA,+BAGF,mCJhFA,aACA,mBACA,uBIiFE,YACA,aACA,sCACA,8CACA,kCACA,8BACA,eAGF,6CACE,iCACA,mBAGF,yBACE,wBAGF,sDACE,uBACA,oBAGF,4DACE,sCACA,wCAGF,uEACE,iCACA,mCACA,+BAGF,uBACE,aACA,iBACA,sCACA,YACA,oDAEA,2BACE,kCAKN,+BACE,WACA,iBACA,gCACA,gCACA,oBACA,eAEA,+CACE,oBACA,mBACA,cAGF,uDJxHA,aACA,8BI0HE,mDACA,cAGF,mEACE,eACA,iBACA,cACA,uCACA,mBACA,oBACA,gBACA,iCAMA,sCACE,WACA,YACA,qCAIJ,wCACE,mDAEA,uDACE,gCAGF,mEJnLF,aACA,mBACA,uBIoLI,kBACA,gCACA,cACA,oBACA,cACA,iBACA,iBAIJ,+BACE,uBACA,qCACA,iBAGE,8HAEE,gDC7MN,wBACE,uBACA,sBAGF,uBACE,uDACA,6CACA,+BACA,kCAGF,gCACE,aACA,uBACA,eAEA,uCACE,sCAIJ,sCACE,kBACA,mBAGF,0CACE,iBAGF,4CACE,kCAGF,6CACE,2BAGF,+CACE,8BAGF,+CACE,6BAGF,sCL1BA,mBACA,uBACA,gBACA,sBACA,gBKyBE,iBACA,gBAEA,gDACE,cAIA,qBACA,YAIJ,uBACE,sCAGF,sBL9DA,aACA,mBACA,uBK+DE,WACA,4CAGF,4BACE,6CC7EF,wBACE,YACA,WACA,qCAGF,mBACE,YACA,WACA,kBACA,MACA","file":"index.css"}
|
package/lib/index.d.ts
CHANGED
|
@@ -22,11 +22,12 @@ export * from './components/LegendApplicationComponentFrameworkProvider';
|
|
|
22
22
|
export * from './components/ApplicationStoreProviderTestUtils';
|
|
23
23
|
export * from './components/WebApplicationNavigatorProviderTestUtils';
|
|
24
24
|
export { AppHeader } from './components/AppHeader';
|
|
25
|
+
export { DocumentationLink } from './components/DocumentationLink';
|
|
25
26
|
export * from './components/TextInputEditor';
|
|
26
27
|
export * from './components/LambdaEditor';
|
|
27
28
|
export * from './stores/ApplicationStore';
|
|
28
29
|
export { APPLICATION_LOG_EVENT } from './stores/ApplicationLogEvent';
|
|
29
|
-
export * from './stores/
|
|
30
|
+
export * from './stores/LegendApplicationConfig';
|
|
30
31
|
export { WebApplicationNavigator } from './stores/WebApplicationNavigator';
|
|
31
32
|
export { LambdaEditorState } from './stores/LambdaEditorState';
|
|
32
33
|
export * from './stores/PackageableElementOption';
|
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;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,
|
|
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,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAE1C,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,cAAc,kCAAkC,CAAC;AACjD,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
|
@@ -22,11 +22,12 @@ export * from './components/LegendApplicationComponentFrameworkProvider';
|
|
|
22
22
|
export * from './components/ApplicationStoreProviderTestUtils';
|
|
23
23
|
export * from './components/WebApplicationNavigatorProviderTestUtils';
|
|
24
24
|
export { AppHeader } from './components/AppHeader';
|
|
25
|
+
export { DocumentationLink } from './components/DocumentationLink';
|
|
25
26
|
export * from './components/TextInputEditor';
|
|
26
27
|
export * from './components/LambdaEditor';
|
|
27
28
|
export * from './stores/ApplicationStore';
|
|
28
29
|
export { APPLICATION_LOG_EVENT } from './stores/ApplicationLogEvent';
|
|
29
|
-
export * from './stores/
|
|
30
|
+
export * from './stores/LegendApplicationConfig';
|
|
30
31
|
export { WebApplicationNavigator } from './stores/WebApplicationNavigator';
|
|
31
32
|
export { LambdaEditorState } from './stores/LambdaEditorState';
|
|
32
33
|
export * from './stores/PackageableElementOption';
|
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;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,
|
|
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,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAE1C,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,cAAc,kCAAkC,CAAC;AACjD,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"}
|
|
@@ -15,9 +15,10 @@
|
|
|
15
15
|
*/
|
|
16
16
|
/// <reference types="react" />
|
|
17
17
|
import { type SuperGenericFunction, EventNotifierService, TracerService, TelemetryService, Log } from '@finos/legend-shared';
|
|
18
|
-
import type { LegendApplicationConfig } from './
|
|
18
|
+
import type { LegendApplicationConfig } from './LegendApplicationConfig';
|
|
19
19
|
import type { WebApplicationNavigator } from './WebApplicationNavigator';
|
|
20
20
|
import type { LegendApplicationPluginManager } from '../application/LegendApplicationPluginManager';
|
|
21
|
+
import type { LegendApplicationDocumentationRegistry } from './LegendApplicationDocumentationRegistry';
|
|
21
22
|
export declare enum ActionAlertType {
|
|
22
23
|
STANDARD = "STANDARD",
|
|
23
24
|
CAUTION = "CAUTION"
|
|
@@ -72,6 +73,7 @@ export declare class ApplicationStore<T extends LegendApplicationConfig> {
|
|
|
72
73
|
blockingAlertInfo?: BlockingAlertInfo | undefined;
|
|
73
74
|
actionAlertInfo?: ActionAlertInfo | undefined;
|
|
74
75
|
config: T;
|
|
76
|
+
docRegistry: LegendApplicationDocumentationRegistry;
|
|
75
77
|
log: Log;
|
|
76
78
|
telemetryService: TelemetryService;
|
|
77
79
|
tracerService: TracerService;
|
|
@@ -92,16 +94,16 @@ export declare class ApplicationStore<T extends LegendApplicationConfig> {
|
|
|
92
94
|
* ever occurs, it still shows very apparently in the UI, as such, printing out in the console is not good enough,
|
|
93
95
|
* but crashing the app is bad too, so this is a good balance.
|
|
94
96
|
*/
|
|
95
|
-
notifyAndReturnAlternativeOnError: <
|
|
97
|
+
notifyAndReturnAlternativeOnError: <U extends SuperGenericFunction, W>(fn: U, alternative: W) => W | ReturnType<U> | undefined;
|
|
96
98
|
/**
|
|
97
99
|
* When we call store/state functions from the component, we should handle error thrown at these functions instead
|
|
98
100
|
* of throwing them to the UI. This enforces that by throwing `IllegalStateError`
|
|
99
101
|
*/
|
|
100
|
-
|
|
102
|
+
alertUnhandledError: (error: Error) => void;
|
|
101
103
|
/**
|
|
102
104
|
* Guarantee that the action being used by the component does not throw unhandled errors
|
|
103
105
|
*/
|
|
104
|
-
|
|
106
|
+
guardUnhandledError: (actionFn: () => Promise<void>) => (() => void);
|
|
105
107
|
copyTextToClipboard(text: string): Promise<void>;
|
|
106
108
|
notifyUnsupportedFeature(featureName: string): void;
|
|
107
109
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationStore.d.ts","sourceRoot":"","sources":["../../src/stores/ApplicationStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAEH,OAAO,EACL,KAAK,oBAAoB,EACzB,oBAAoB,EACpB,aAAa,EACb,gBAAgB,EAEhB,GAAG,EAKJ,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ApplicationStore.d.ts","sourceRoot":"","sources":["../../src/stores/ApplicationStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAEH,OAAO,EACL,KAAK,oBAAoB,EACzB,oBAAoB,EACpB,aAAa,EACb,gBAAgB,EAEhB,GAAG,EAKJ,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,+CAA+C,CAAC;AACpG,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,0CAA0C,CAAC;AAEvG,oBAAY,eAAe;IACzB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB;AAED,oBAAY,qBAAqB;IAC/B,QAAQ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EAAE,KAAK,GAAG,MAAM,EAAE,OAAO,CAAC,EAAE,kBAAkB,EAAE,GAAG,IAAI;IAsB1E;;;;;;OAMG;IACH,iCAAiC,8FAW/B;IAEF;;;OAGG;IACH,mBAAmB,UAAW,KAAK,KAAG,IAAI,CAOxC;IAEF;;OAEG;IACH,mBAAmB,aACN,MAAM,QAAQ,IAAI,CAAC,KAAG,CAAC,MAAM,IAAI,CAAC,CAG3C;IAEE,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA8BtD,wBAAwB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;CAGpD"}
|
|
@@ -55,6 +55,7 @@ export class ApplicationStore {
|
|
|
55
55
|
blockingAlertInfo;
|
|
56
56
|
actionAlertInfo;
|
|
57
57
|
config;
|
|
58
|
+
docRegistry;
|
|
58
59
|
log = new Log();
|
|
59
60
|
telemetryService = new TelemetryService();
|
|
60
61
|
tracerService = new TracerService();
|
|
@@ -72,6 +73,7 @@ export class ApplicationStore {
|
|
|
72
73
|
notifyError: action,
|
|
73
74
|
});
|
|
74
75
|
this.config = config;
|
|
76
|
+
this.docRegistry = config.docRegistry;
|
|
75
77
|
this.navigator = navigator;
|
|
76
78
|
// Register plugins
|
|
77
79
|
this.log.registerPlugins(pluginManager.getLoggerPlugins());
|
|
@@ -148,14 +150,16 @@ export class ApplicationStore {
|
|
|
148
150
|
* When we call store/state functions from the component, we should handle error thrown at these functions instead
|
|
149
151
|
* of throwing them to the UI. This enforces that by throwing `IllegalStateError`
|
|
150
152
|
*/
|
|
151
|
-
|
|
152
|
-
this.log.error(LogEvent.create(APPLICATION_LOG_EVENT.ILLEGAL_APPLICATION_STATE_OCCURRED), 'Encountered unhandled
|
|
153
|
+
alertUnhandledError = (error) => {
|
|
154
|
+
this.log.error(LogEvent.create(APPLICATION_LOG_EVENT.ILLEGAL_APPLICATION_STATE_OCCURRED), 'Encountered unhandled error in component tree', error);
|
|
153
155
|
this.notifyIllegalState(error.message);
|
|
154
156
|
};
|
|
155
157
|
/**
|
|
156
158
|
* Guarantee that the action being used by the component does not throw unhandled errors
|
|
157
159
|
*/
|
|
158
|
-
|
|
160
|
+
guardUnhandledError = (actionFn) => () => {
|
|
161
|
+
actionFn().catch(this.alertUnhandledError);
|
|
162
|
+
};
|
|
159
163
|
async copyTextToClipboard(text) {
|
|
160
164
|
if (typeof navigator.clipboard.writeText === 'function') {
|
|
161
165
|
// This is a much cleaner way which requires HTTPS
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationStore.js","sourceRoot":"","sources":["../../src/stores/ApplicationStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,oBAAoB,EACpB,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,GAAG,EACH,QAAQ,EACR,iBAAiB,EACjB,QAAQ,EACR,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"ApplicationStore.js","sourceRoot":"","sources":["../../src/stores/ApplicationStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,oBAAoB,EACpB,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,GAAG,EACH,QAAQ,EACR,iBAAiB,EACjB,QAAQ,EACR,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAM9D,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,wCAAqB,CAAA;IACrB,sCAAmB,CAAA;AACrB,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B;AAED,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D,kDAAkD;YAClD,qEAAqE;YACrE,MAAM,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;gBACxD,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;YAC1B,CAAC,CAAC,CAAC;YACH,OAAO;SACR;QACD,oFAAoF;QACpF,IAAI,QAAQ,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE;YAC1C,MAAM,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;YACnD,OAAO,CAAC,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC;YAChC,OAAO,CAAC,KAAK,CAAC,OAAO,GAAG,GAAG,CAAC;YAC5B,QAAQ,CAAC,eAAe,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;YAC9C,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;YACrB,OAAO,CAAC,MAAM,EAAE,CAAC;YACjB,IAAI;gBACF,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;aAC9B;YAAC,OAAO,KAAK,EAAE;gBACd,iBAAiB,CAAC,KAAK,CAAC,CAAC;gBACzB,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;aACzB;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"}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { ApplicationStore } from './ApplicationStore';
|
|
17
|
-
import type { LegendApplicationConfig } from './
|
|
17
|
+
import type { LegendApplicationConfig } from './LegendApplicationConfig';
|
|
18
18
|
import type { LegendApplicationPluginManager } from '../application/LegendApplicationPluginManager';
|
|
19
19
|
export declare const TEST_DATA__applicationVersion: {
|
|
20
20
|
buildTime: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationStoreTestUtils.d.ts","sourceRoot":"","sources":["../../src/stores/ApplicationStoreTestUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ApplicationStoreTestUtils.d.ts","sourceRoot":"","sources":["../../src/stores/ApplicationStoreTestUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,+CAA+C,CAAC;AAEpG,eAAO,MAAM,6BAA6B;;;;CAIzC,CAAC;AAEF,eAAO,MAAM,6BAA6B,gEAIzB,8BAA8B,wBAM5C,CAAC"}
|
|
@@ -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 { LegendApplicationDocumentationRegistry } from './LegendApplicationDocumentationRegistry';
|
|
16
17
|
export interface LegendApplicationVersionData {
|
|
17
18
|
buildTime: string;
|
|
18
19
|
version: string;
|
|
@@ -21,15 +22,20 @@ export interface LegendApplicationVersionData {
|
|
|
21
22
|
export interface LegendApplicationConfigurationData {
|
|
22
23
|
appName: string;
|
|
23
24
|
env: string;
|
|
25
|
+
documentation?: {
|
|
26
|
+
url: string;
|
|
27
|
+
entries?: Record<string, string>;
|
|
28
|
+
};
|
|
24
29
|
extensions?: Record<PropertyKey, unknown>;
|
|
25
30
|
}
|
|
26
31
|
export declare abstract class LegendApplicationConfig {
|
|
27
32
|
readonly appName: string;
|
|
28
33
|
readonly baseUrl: string;
|
|
29
34
|
readonly env: string;
|
|
35
|
+
readonly docRegistry: LegendApplicationDocumentationRegistry;
|
|
30
36
|
readonly appVersion: string;
|
|
31
37
|
readonly appVersionBuildTime: string;
|
|
32
38
|
readonly appVersionCommitId: string;
|
|
33
39
|
constructor(configData: LegendApplicationConfigurationData, versionData: LegendApplicationVersionData, baseUrl: string);
|
|
34
40
|
}
|
|
35
|
-
//# sourceMappingURL=
|
|
41
|
+
//# sourceMappingURL=LegendApplicationConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendApplicationConfig.d.ts","sourceRoot":"","sources":["../../src/stores/LegendApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EAAE,sCAAsC,EAAE,MAAM,0CAA0C,CAAC;AAElG,MAAM,WAAW,4BAA4B;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kCAAkC;IACjD,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,CAAC,EAAE;QACd,GAAG,EAAE,MAAM,CAAC;QACZ,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAClC,CAAC;IAIF,UAAU,CAAC,EAAE,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;CAC3C;AAED,8BAAsB,uBAAuB;IAC3C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,WAAW,EAAE,sCAAsC,CAAC;IAE7D,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;gBAGlC,UAAU,EAAE,kCAAkC,EAC9C,WAAW,EAAE,4BAA4B,EACzC,OAAO,EAAE,MAAM;CAiClB"}
|
|
@@ -14,10 +14,12 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { guaranteeNonEmptyString, guaranteeNonNullable, } from '@finos/legend-shared';
|
|
17
|
+
import { LegendApplicationDocumentationRegistry } from './LegendApplicationDocumentationRegistry';
|
|
17
18
|
export class LegendApplicationConfig {
|
|
18
19
|
appName;
|
|
19
20
|
baseUrl;
|
|
20
21
|
env;
|
|
22
|
+
docRegistry;
|
|
21
23
|
appVersion;
|
|
22
24
|
appVersionBuildTime;
|
|
23
25
|
appVersionCommitId;
|
|
@@ -25,10 +27,14 @@ export class LegendApplicationConfig {
|
|
|
25
27
|
this.baseUrl = baseUrl;
|
|
26
28
|
this.appName = guaranteeNonEmptyString(configData.appName, `Can't configure application: 'appName' field is missing or empty`);
|
|
27
29
|
this.env = guaranteeNonEmptyString(configData.env, `Can't configure application: 'env' field is missing or empty`);
|
|
30
|
+
// Documentation
|
|
31
|
+
this.docRegistry = new LegendApplicationDocumentationRegistry();
|
|
32
|
+
this.docRegistry.url = configData.documentation?.url;
|
|
33
|
+
Object.entries(configData.documentation?.entries ?? []).forEach((entry) => this.docRegistry.registerEntry(entry[0], entry[1]));
|
|
28
34
|
// Version
|
|
29
35
|
this.appVersion = guaranteeNonNullable(versionData.version, `Can't collect application version: 'version' field is missing`);
|
|
30
36
|
this.appVersionBuildTime = guaranteeNonNullable(versionData.buildTime, `Can't collect application version: 'buildTime' field is missing`);
|
|
31
37
|
this.appVersionCommitId = guaranteeNonNullable(versionData.commitSHA, `Can't collect application version: 'commitSHA' field is missing`);
|
|
32
38
|
}
|
|
33
39
|
}
|
|
34
|
-
//# sourceMappingURL=
|
|
40
|
+
//# sourceMappingURL=LegendApplicationConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendApplicationConfig.js","sourceRoot":"","sources":["../../src/stores/LegendApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,sCAAsC,EAAE,MAAM,0CAA0C,CAAC;AAqBlG,MAAM,OAAgB,uBAAuB;IAClC,OAAO,CAAS;IAChB,OAAO,CAAS;IAChB,GAAG,CAAS;IAEZ,WAAW,CAAyC;IAEpD,UAAU,CAAS;IACnB,mBAAmB,CAAS;IAC5B,kBAAkB,CAAS;IAEpC,YACE,UAA8C,EAC9C,WAAyC,EACzC,OAAe;QAEf,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,uBAAuB,CACpC,UAAU,CAAC,OAAO,EAClB,kEAAkE,CACnE,CAAC;QACF,IAAI,CAAC,GAAG,GAAG,uBAAuB,CAChC,UAAU,CAAC,GAAG,EACd,8DAA8D,CAC/D,CAAC;QAEF,gBAAgB;QAChB,IAAI,CAAC,WAAW,GAAG,IAAI,sCAAsC,EAAE,CAAC;QAChE,IAAI,CAAC,WAAW,CAAC,GAAG,GAAG,UAAU,CAAC,aAAa,EAAE,GAAG,CAAC;QACrD,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,aAAa,EAAE,OAAO,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CACxE,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CACnD,CAAC;QAEF,UAAU;QACV,IAAI,CAAC,UAAU,GAAG,oBAAoB,CACpC,WAAW,CAAC,OAAO,EACnB,+DAA+D,CAChE,CAAC;QACF,IAAI,CAAC,mBAAmB,GAAG,oBAAoB,CAC7C,WAAW,CAAC,SAAS,EACrB,iEAAiE,CAClE,CAAC;QACF,IAAI,CAAC,kBAAkB,GAAG,oBAAoB,CAC5C,WAAW,CAAC,SAAS,EACrB,iEAAiE,CAClE,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export declare class LegendApplicationDocumentationRegistry {
|
|
17
|
+
url?: string | undefined;
|
|
18
|
+
private registry;
|
|
19
|
+
registerEntry(key: string, value: string): void;
|
|
20
|
+
getEntry(key: string): string | undefined;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=LegendApplicationDocumentationRegistry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendApplicationDocumentationRegistry.d.ts","sourceRoot":"","sources":["../../src/stores/LegendApplicationDocumentationRegistry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,qBAAa,sCAAsC;IACjD,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEzB,OAAO,CAAC,QAAQ,CAA6B;IAE7C,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAI/C,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;CAG1C"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export class LegendApplicationDocumentationRegistry {
|
|
17
|
+
url;
|
|
18
|
+
registry = new Map();
|
|
19
|
+
registerEntry(key, value) {
|
|
20
|
+
this.registry.set(key, value);
|
|
21
|
+
}
|
|
22
|
+
getEntry(key) {
|
|
23
|
+
return this.registry.get(key);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=LegendApplicationDocumentationRegistry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendApplicationDocumentationRegistry.js","sourceRoot":"","sources":["../../src/stores/LegendApplicationDocumentationRegistry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,OAAO,sCAAsC;IACjD,GAAG,CAAsB;IAEjB,QAAQ,GAAG,IAAI,GAAG,EAAkB,CAAC;IAE7C,aAAa,CAAC,GAAW,EAAE,KAAa;QACtC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IAChC,CAAC;IAED,QAAQ,CAAC,GAAW;QAClB,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos/legend-application",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Legend application core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
"module": "lib/index.js",
|
|
25
25
|
"types": "lib/index.d.ts",
|
|
26
26
|
"scripts": {
|
|
27
|
-
"build": "yarn clean && yarn build:sass && yarn build:
|
|
27
|
+
"build": "yarn clean && yarn build:sass && yarn build:ts",
|
|
28
28
|
"build:sass": "cross-env INIT_CWD=$INIT_CWD node ../../scripts/workflow/buildSass.js",
|
|
29
|
-
"build:
|
|
29
|
+
"build:ts": "tsc --project ./tsconfig.build.json",
|
|
30
30
|
"clean": "npm-run-all clean:cache clean:lib",
|
|
31
31
|
"clean:cache": "rimraf \"build\"",
|
|
32
32
|
"clean:lib": "rimraf \"lib\"",
|
|
33
|
-
"dev": "npm-run-all --parallel dev:sass dev:
|
|
33
|
+
"dev": "npm-run-all --parallel dev:sass dev:ts",
|
|
34
34
|
"dev:sass": "sass style lib --watch --load-path=../../node_modules/@finos/legend-art/scss",
|
|
35
|
-
"dev:
|
|
35
|
+
"dev:ts": "tsc --watch --preserveWatchOutput",
|
|
36
36
|
"lint:js": "cross-env NODE_ENV=production eslint --cache --cache-location ./build/.eslintcache --report-unused-disable-directives --parser-options=project:\"./tsconfig.json\" \"./src/**/*.{js,ts,tsx}\"",
|
|
37
37
|
"publish:prepare": "node ../../scripts/release/preparePublishContent.js",
|
|
38
38
|
"publish:snapshot": "node ../../scripts/release/publishDevSnapshot.js",
|
|
@@ -40,17 +40,17 @@
|
|
|
40
40
|
"test:watch": "jest --watch"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@finos/legend-art": "0.3.
|
|
44
|
-
"@finos/legend-graph": "1.
|
|
45
|
-
"@finos/legend-shared": "1.2.
|
|
43
|
+
"@finos/legend-art": "0.3.9",
|
|
44
|
+
"@finos/legend-graph": "1.3.0",
|
|
45
|
+
"@finos/legend-shared": "1.2.4",
|
|
46
46
|
"@types/css-font-loading-module": "0.0.7",
|
|
47
|
-
"@types/react": "17.0.
|
|
48
|
-
"@types/react-dom": "17.0.
|
|
47
|
+
"@types/react": "17.0.41",
|
|
48
|
+
"@types/react-dom": "17.0.14",
|
|
49
49
|
"@types/react-router-dom": "5.3.2",
|
|
50
50
|
"history": "5.3.0",
|
|
51
|
-
"mobx": "6.
|
|
51
|
+
"mobx": "6.5.0",
|
|
52
52
|
"mobx-react-lite": "3.3.0",
|
|
53
|
-
"monaco-editor": "0.
|
|
53
|
+
"monaco-editor": "0.33.0",
|
|
54
54
|
"react": "17.0.2",
|
|
55
55
|
"react-dom": "17.0.2",
|
|
56
56
|
"react-resize-detector": "7.0.0",
|
|
@@ -59,14 +59,14 @@
|
|
|
59
59
|
"serializr": "2.0.5"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@finos/legend-dev-utils": "0.3.
|
|
62
|
+
"@finos/legend-dev-utils": "0.3.13",
|
|
63
63
|
"cross-env": "7.0.3",
|
|
64
|
-
"eslint": "8.
|
|
64
|
+
"eslint": "8.11.0",
|
|
65
65
|
"jest": "27.5.1",
|
|
66
66
|
"npm-run-all": "4.1.5",
|
|
67
67
|
"rimraf": "3.0.2",
|
|
68
68
|
"sass": "1.49.9",
|
|
69
|
-
"typescript": "4.
|
|
69
|
+
"typescript": "4.6.2"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"react": "^17.0.0"
|
|
@@ -33,7 +33,7 @@ import type {
|
|
|
33
33
|
LegendApplicationConfig,
|
|
34
34
|
LegendApplicationConfigurationData,
|
|
35
35
|
LegendApplicationVersionData,
|
|
36
|
-
} from '../stores/
|
|
36
|
+
} from '../stores/LegendApplicationConfig';
|
|
37
37
|
import {
|
|
38
38
|
type AbstractPlugin,
|
|
39
39
|
type AbstractPreset,
|
|
@@ -55,32 +55,34 @@ export abstract class LegendApplicationLogger {
|
|
|
55
55
|
abstract error(event: LogEvent, ...data: unknown[]): void;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
const { debug, info, warn, error } = console;
|
|
59
|
-
|
|
60
58
|
export class LegendApplicationWebConsole extends LegendApplicationLogger {
|
|
61
59
|
debug(event: LogEvent, ...data: unknown[]): void {
|
|
62
|
-
|
|
60
|
+
// eslint-disable-next-line no-console
|
|
61
|
+
console.debug(
|
|
63
62
|
`[${event.timestamp}] ${event.name} ${data.length ? ':' : ''}`,
|
|
64
63
|
...data,
|
|
65
64
|
);
|
|
66
65
|
}
|
|
67
66
|
|
|
68
67
|
info(event: LogEvent, ...data: unknown[]): void {
|
|
69
|
-
|
|
68
|
+
// eslint-disable-next-line no-console
|
|
69
|
+
console.info(
|
|
70
70
|
`[${event.timestamp}] ${event.name} ${data.length ? ':' : ''}`,
|
|
71
71
|
...data,
|
|
72
72
|
);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
warn(event: LogEvent, ...data: unknown[]): void {
|
|
76
|
-
|
|
76
|
+
// eslint-disable-next-line no-console
|
|
77
|
+
console.warn(
|
|
77
78
|
`[${event.timestamp}] ${event.name} ${data.length ? ':' : ''}`,
|
|
78
79
|
...data,
|
|
79
80
|
);
|
|
80
81
|
}
|
|
81
82
|
|
|
82
83
|
error(event: LogEvent, ...data: unknown[]): void {
|
|
83
|
-
|
|
84
|
+
// eslint-disable-next-line no-console
|
|
85
|
+
console.error(
|
|
84
86
|
`[${event.timestamp}] ${event.name} ${data.length ? ':' : ''}`,
|
|
85
87
|
...data,
|
|
86
88
|
);
|
|
@@ -32,9 +32,11 @@ export const AppHeader: React.FC<{
|
|
|
32
32
|
<Link to="/">
|
|
33
33
|
<LegendLogo className="app__header__logo" />
|
|
34
34
|
</Link>
|
|
35
|
-
<
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
<Link to="/">
|
|
36
|
+
<div className="app__header__tag app__header__app-name">
|
|
37
|
+
{config.appName.toUpperCase()}
|
|
38
|
+
</div>
|
|
39
|
+
</Link>
|
|
38
40
|
<div className="app__header__tag app__header__tag__name">env</div>
|
|
39
41
|
<div className="app__header__tag app__header__tag__value app__header__env">
|
|
40
42
|
{config.env ? config.env.toUpperCase() : 'UNKNOWN'}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import { createContext, useContext } from 'react';
|
|
18
18
|
import { useLocalObservable } from 'mobx-react-lite';
|
|
19
19
|
import { ApplicationStore } from '../stores/ApplicationStore';
|
|
20
|
-
import type { LegendApplicationConfig } from '../stores/
|
|
20
|
+
import type { LegendApplicationConfig } from '../stores/LegendApplicationConfig';
|
|
21
21
|
import { guaranteeNonNullable } from '@finos/legend-shared';
|
|
22
22
|
import { useWebApplicationNavigator } from './WebApplicationNavigatorProvider';
|
|
23
23
|
import type { LegendApplicationPluginManager } from '../application/LegendApplicationPluginManager';
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import { createMemoryHistory } from 'history';
|
|
18
18
|
import { ApplicationStore } from '../stores/ApplicationStore';
|
|
19
19
|
import { WebApplicationNavigator } from '../stores/WebApplicationNavigator';
|
|
20
|
-
import type { LegendApplicationConfig } from '../stores/
|
|
20
|
+
import type { LegendApplicationConfig } from '../stores/LegendApplicationConfig';
|
|
21
21
|
import { ApplicationStoreProvider } from './ApplicationStoreProvider';
|
|
22
22
|
import type { LegendApplicationPluginManager } from '../application/LegendApplicationPluginManager';
|
|
23
23
|
|