@finos/legend-application 1.0.0 → 1.0.1

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 CHANGED
@@ -1,5 +1,7 @@
1
1
  # @finos/legend-application
2
2
 
3
+ ## 1.0.1
4
+
3
5
  ## 1.0.0
4
6
 
5
7
  ### Major Changes
@@ -13,15 +13,16 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ /// <reference types="react" />
16
17
  import { ApplicationStore } from '../stores/ApplicationStore';
17
18
  import { WebApplicationNavigator } from '../stores/WebApplicationNavigator';
18
19
  import type { LegendApplicationConfig } from '../stores/ApplicationConfig';
19
20
  import type { LegendApplicationPluginManager } from '../application/LegendApplicationPluginManager';
20
- export declare const TEST__ApplicationStoreProvider: ({ children, config, pluginManager, }: {
21
+ export declare const TEST__ApplicationStoreProvider: React.FC<{
21
22
  children: React.ReactNode;
22
23
  config: LegendApplicationConfig;
23
24
  pluginManager: LegendApplicationPluginManager;
24
- }) => React.ReactElement;
25
+ }>;
25
26
  export declare const TEST__provideMockedApplicationStore: <T extends LegendApplicationConfig>(config: T, pluginManager: LegendApplicationPluginManager, customization?: {
26
27
  mock?: ApplicationStore<T>;
27
28
  navigator?: WebApplicationNavigator;
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicationStoreProviderTestUtils.d.ts","sourceRoot":"","sources":["../../src/components/ApplicationStoreProviderTestUtils.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAE3E,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,+CAA+C,CAAC;AAEpG,eAAO,MAAM,8BAA8B;cAK/B,MAAM,SAAS;YACjB,uBAAuB;mBAChB,8BAA8B;MAC3C,MAAM,YAIT,CAAC;AAEF,eAAO,MAAM,mCAAmC,gEAI/B,8BAA8B;;gBAG/B,uBAAuB;qCAetC,CAAC"}
1
+ {"version":3,"file":"ApplicationStoreProviderTestUtils.d.ts","sourceRoot":"","sources":["../../src/components/ApplicationStoreProviderTestUtils.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAE3E,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,+CAA+C,CAAC;AAEpG,eAAO,MAAM,8BAA8B,EAAE,KAAK,CAAC,EAAE,CAAC;IACpD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,EAAE,uBAAuB,CAAC;IAChC,aAAa,EAAE,8BAA8B,CAAC;CAC/C,CAIA,CAAC;AAEF,eAAO,MAAM,mCAAmC,gEAI/B,8BAA8B;;gBAG/B,uBAAuB;qCAetC,CAAC"}
@@ -18,7 +18,7 @@ import { createMemoryHistory } from 'history';
18
18
  import { ApplicationStore } from '../stores/ApplicationStore';
19
19
  import { WebApplicationNavigator } from '../stores/WebApplicationNavigator';
20
20
  import { ApplicationStoreProvider } from './ApplicationStoreProvider';
21
- export const TEST__ApplicationStoreProvider = ({ children, config, pluginManager, }) => (_jsx(ApplicationStoreProvider, { config: config, pluginManager: pluginManager, children: children }, void 0));
21
+ export const TEST__ApplicationStoreProvider = ({ children, config, pluginManager }) => (_jsx(ApplicationStoreProvider, { config: config, pluginManager: pluginManager, children: children }, void 0));
22
22
  export const TEST__provideMockedApplicationStore = (config, pluginManager, customization) => {
23
23
  const value = customization?.mock ??
24
24
  new ApplicationStore(config, customization?.navigator ??
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicationStoreProviderTestUtils.js","sourceRoot":"","sources":["../../src/components/ApplicationStoreProviderTestUtils.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAE5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAGtE,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,EAC7C,QAAQ,EACR,MAAM,EACN,aAAa,GAKd,EAAsB,EAAE,CAAC,CACxB,KAAC,wBAAwB,IAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,YACnE,QAAQ,WACgB,CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAGjD,MAAS,EACT,aAA6C,EAC7C,aAGC,EACoB,EAAE;IACvB,MAAM,KAAK,GACT,aAAa,EAAE,IAAI;QACnB,IAAI,gBAAgB,CAClB,MAAM,EACN,aAAa,EAAE,SAAS;YACtB,IAAI,uBAAuB,CAAC,mBAAmB,EAAE,CAAC,EACpD,aAAa,CACd,CAAC;IACJ,MAAM,8BAA8B,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC,CAAC,8DAA8D;IAC5I,8BAA8B,CAAC,mBAAmB,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;IAC/D,8BAA8B,CAAC,mBAAmB,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;IAC1E,OAAO,KAAK,CAAC;AACf,CAAC,CAAC"}
1
+ {"version":3,"file":"ApplicationStoreProviderTestUtils.js","sourceRoot":"","sources":["../../src/components/ApplicationStoreProviderTestUtils.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAE5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAGtE,MAAM,CAAC,MAAM,8BAA8B,GAItC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,CAC5C,KAAC,wBAAwB,IAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,YACnE,QAAQ,WACgB,CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAGjD,MAAS,EACT,aAA6C,EAC7C,aAGC,EACoB,EAAE;IACvB,MAAM,KAAK,GACT,aAAa,EAAE,IAAI;QACnB,IAAI,gBAAgB,CAClB,MAAM,EACN,aAAa,EAAE,SAAS;YACtB,IAAI,uBAAuB,CAAC,mBAAmB,EAAE,CAAC,EACpD,aAAa,CACd,CAAC;IACJ,MAAM,8BAA8B,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC,CAAC,8DAA8D;IAC5I,8BAA8B,CAAC,mBAAmB,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;IAC/D,8BAA8B,CAAC,mBAAmB,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;IAC1E,OAAO,KAAK,CAAC;AACf,CAAC,CAAC"}
@@ -13,9 +13,10 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ /// <reference types="react" />
16
17
  import { WebApplicationNavigator } from '../stores/WebApplicationNavigator';
17
- export declare const WebApplicationNavigatorProvider: ({ children, }: {
18
+ export declare const WebApplicationNavigatorProvider: React.FC<{
18
19
  children: React.ReactNode;
19
- }) => React.ReactElement;
20
+ }>;
20
21
  export declare const useWebApplicationNavigator: () => WebApplicationNavigator;
21
22
  //# sourceMappingURL=WebApplicationNavigatorProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WebApplicationNavigatorProvider.d.ts","sourceRoot":"","sources":["../../src/components/WebApplicationNavigatorProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAM5E,eAAO,MAAM,+BAA+B;cAGhC,MAAM,SAAS;MACvB,MAAM,YAUT,CAAC;AAEF,eAAO,MAAM,0BAA0B,QAAO,uBAI3C,CAAC"}
1
+ {"version":3,"file":"WebApplicationNavigatorProvider.d.ts","sourceRoot":"","sources":["../../src/components/WebApplicationNavigatorProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAOH,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAM5E,eAAO,MAAM,+BAA+B,EAAE,KAAK,CAAC,EAAE,CAAC;IACrD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAUA,CAAC;AAEF,eAAO,MAAM,0BAA0B,QAAO,uBAI3C,CAAC"}
@@ -20,7 +20,7 @@ import { createContext, useContext } from 'react';
20
20
  import { useHistory } from 'react-router';
21
21
  import { WebApplicationNavigator } from '../stores/WebApplicationNavigator';
22
22
  const WebApplicationNavigatorContext = createContext(undefined);
23
- export const WebApplicationNavigatorProvider = ({ children, }) => {
23
+ export const WebApplicationNavigatorProvider = ({ children }) => {
24
24
  const history = useHistory();
25
25
  const navigator = useLocalObservable(() => new WebApplicationNavigator(history));
26
26
  return (_jsx(WebApplicationNavigatorContext.Provider, { value: navigator, children: children }, void 0));
@@ -1 +1 @@
1
- {"version":3,"file":"WebApplicationNavigatorProvider.js","sourceRoot":"","sources":["../../src/components/WebApplicationNavigatorProvider.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACr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O,GAAG,UAAU,EAAa,CAAC;IACxC,MAAM,SAAS,GAAG,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,WAC+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.0.0
1
+ /** @license @finos/legend-application v1.0.1
2
2
  * Copyright (c) 2020-present, Goldman Sachs
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -32,8 +32,8 @@ import type { History } from 'history';
32
32
  * As such, instead, we should design a more generic concept `Location` to pass around.
33
33
  * We would need to flesh out the details, but this is the rough idea.
34
34
  *
35
- * Another thought is that we should also genericize Router so it handles more than just
36
- * URLs. If we make `router` and `navigator` work together, we can potentially genericize
35
+ * Another thought is that we should also generalize Router so it handles more than just
36
+ * URLs. If we make `router` and `navigator` work together, we can potentially generalize
37
37
  * application navigation
38
38
  *
39
39
  * However, this depends on how and when we move to another platform, like `electron` for example
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-application",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Legend application core",
5
5
  "keywords": [
6
6
  "legend",
@@ -38,9 +38,9 @@
38
38
  "test:watch": "jest --watch"
39
39
  },
40
40
  "dependencies": {
41
- "@finos/legend-art": "0.2.0",
42
- "@finos/legend-graph": "0.3.0",
43
- "@finos/legend-shared": "1.0.0",
41
+ "@finos/legend-art": "0.2.1",
42
+ "@finos/legend-graph": "0.3.1",
43
+ "@finos/legend-shared": "1.0.1",
44
44
  "@material-ui/core": "4.12.3",
45
45
  "@testing-library/react": "12.1.2",
46
46
  "@types/css-font-loading-module": "0.0.7",
@@ -60,10 +60,10 @@
60
60
  "serializr": "2.0.5"
61
61
  },
62
62
  "devDependencies": {
63
- "@finos/legend-dev-utils": "0.3.0",
63
+ "@finos/legend-dev-utils": "0.3.1",
64
64
  "@testing-library/dom": "8.11.1",
65
65
  "cross-env": "7.0.3",
66
- "eslint": "8.3.0",
66
+ "eslint": "8.4.0",
67
67
  "jest": "27.4.3",
68
68
  "npm-run-all": "4.1.5",
69
69
  "rimraf": "3.0.2",
@@ -21,15 +21,11 @@ import type { LegendApplicationConfig } from '../stores/ApplicationConfig';
21
21
  import { ApplicationStoreProvider } from './ApplicationStoreProvider';
22
22
  import type { LegendApplicationPluginManager } from '../application/LegendApplicationPluginManager';
23
23
 
24
- export const TEST__ApplicationStoreProvider = ({
25
- children,
26
- config,
27
- pluginManager,
28
- }: {
24
+ export const TEST__ApplicationStoreProvider: React.FC<{
29
25
  children: React.ReactNode;
30
26
  config: LegendApplicationConfig;
31
27
  pluginManager: LegendApplicationPluginManager;
32
- }): React.ReactElement => (
28
+ }> = ({ children, config, pluginManager }) => (
33
29
  <ApplicationStoreProvider config={config} pluginManager={pluginManager}>
34
30
  {children}
35
31
  </ApplicationStoreProvider>
@@ -25,11 +25,9 @@ const WebApplicationNavigatorContext = createContext<
25
25
  WebApplicationNavigator | undefined
26
26
  >(undefined);
27
27
 
28
- export const WebApplicationNavigatorProvider = ({
29
- children,
30
- }: {
28
+ export const WebApplicationNavigatorProvider: React.FC<{
31
29
  children: React.ReactNode;
32
- }): React.ReactElement => {
30
+ }> = ({ children }) => {
33
31
  const history = useHistory() as History;
34
32
  const navigator = useLocalObservable(
35
33
  () => new WebApplicationNavigator(history),
@@ -35,8 +35,8 @@ import { guaranteeNonNullable } from '@finos/legend-shared';
35
35
  * As such, instead, we should design a more generic concept `Location` to pass around.
36
36
  * We would need to flesh out the details, but this is the rough idea.
37
37
  *
38
- * Another thought is that we should also genericize Router so it handles more than just
39
- * URLs. If we make `router` and `navigator` work together, we can potentially genericize
38
+ * Another thought is that we should also generalize Router so it handles more than just
39
+ * URLs. If we make `router` and `navigator` work together, we can potentially generalize
40
40
  * application navigation
41
41
  *
42
42
  * However, this depends on how and when we move to another platform, like `electron` for example