@finos/legend-application 7.1.7 → 7.2.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.
@@ -13,7 +13,6 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /// <reference types="react" resolution-mode="require"/>
17
16
  export declare const ActionAlert: (() => JSX.Element | null) & {
18
17
  displayName: string;
19
18
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ActionAlert.d.ts","sourceRoot":"","sources":["../../src/components/ActionAlert.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AA2GH,eAAO,MAAM,WAAW;;CAQtB,CAAC"}
1
+ {"version":3,"file":"ActionAlert.d.ts","sourceRoot":"","sources":["../../src/components/ActionAlert.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA2GH,eAAO,MAAM,WAAW;;CAQtB,CAAC"}
@@ -13,7 +13,6 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /// <reference types="react" resolution-mode="require"/>
17
16
  /**
18
17
  * The users of this need to justify their use case because blocking app disrupts the UX flow.
19
18
  * Of course there are legitimate use cases but please consult the team when you do so.
@@ -1 +1 @@
1
- {"version":3,"file":"BlockingAlert.d.ts","sourceRoot":"","sources":["../../src/components/BlockingAlert.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAOH;;;;GAIG;AACH,eAAO,MAAM,aAAa;;CA2BxB,CAAC"}
1
+ {"version":3,"file":"BlockingAlert.d.ts","sourceRoot":"","sources":["../../src/components/BlockingAlert.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH;;;;GAIG;AACH,eAAO,MAAM,aAAa;;CA2BxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"LegendApplicationComponentFrameworkProvider.d.ts","sourceRoot":"","sources":["../../src/components/LegendApplicationComponentFrameworkProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAOH,eAAO,MAAM,2CAA2C,EAAE,KAAK,CAAC,EAAE,CAAC;IACjE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAWA,CAAC"}
1
+ {"version":3,"file":"LegendApplicationComponentFrameworkProvider.d.ts","sourceRoot":"","sources":["../../src/components/LegendApplicationComponentFrameworkProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AASH,eAAO,MAAM,2CAA2C,EAAE,KAAK,CAAC,EAAE,CAAC;IACjE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAWA,CAAC"}
@@ -15,11 +15,13 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
15
  * limitations under the License.
16
16
  */
17
17
  import { LegendStyleProvider } from '@finos/legend-art';
18
+ import { DndProvider } from 'react-dnd';
19
+ import { HTML5Backend } from 'react-dnd-html5-backend';
18
20
  import { ActionAlert } from './ActionAlert.js';
19
21
  import { BlockingAlert } from './BlockingAlert.js';
20
22
  import { NotificationManager } from './NotificationManager.js';
21
23
  export const LegendApplicationComponentFrameworkProvider = (props) => {
22
24
  const { children } = props;
23
- return (_jsxs(LegendStyleProvider, { children: [_jsx(BlockingAlert, {}), _jsx(ActionAlert, {}), _jsx(NotificationManager, {}), children] }));
25
+ return (_jsxs(LegendStyleProvider, { children: [_jsx(BlockingAlert, {}), _jsx(ActionAlert, {}), _jsx(NotificationManager, {}), _jsx(DndProvider, { backend: HTML5Backend, children: children })] }));
24
26
  };
25
27
  //# sourceMappingURL=LegendApplicationComponentFrameworkProvider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LegendApplicationComponentFrameworkProvider.js","sourceRoot":"","sources":["../../src/components/LegendApplicationComponentFrameworkProvider.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,MAAM,CAAC,MAAM,2CAA2C,GAEnD,CAAC,KAAK,EAAE,EAAE;IACb,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAE3B,OAAO,CACL,MAAC,mBAAmB,eAClB,KAAC,aAAa,KAAG,EACjB,KAAC,WAAW,KAAG,EACf,KAAC,mBAAmB,KAAG,EACtB,QAAQ,IACW,CACvB,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"LegendApplicationComponentFrameworkProvider.js","sourceRoot":"","sources":["../../src/components/LegendApplicationComponentFrameworkProvider.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,MAAM,CAAC,MAAM,2CAA2C,GAEnD,CAAC,KAAK,EAAE,EAAE;IACb,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAE3B,OAAO,CACL,MAAC,mBAAmB,eAClB,KAAC,aAAa,KAAG,EACjB,KAAC,WAAW,KAAG,EACf,KAAC,mBAAmB,KAAG,EACvB,KAAC,WAAW,IAAC,OAAO,EAAE,YAAY,YAAG,QAAQ,GAAe,IACxC,CACvB,CAAC;AACJ,CAAC,CAAC"}
@@ -13,7 +13,6 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /// <reference types="react" resolution-mode="require"/>
17
16
  export declare const NotificationManager: (() => JSX.Element) & {
18
17
  displayName: string;
19
18
  };
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationManager.d.ts","sourceRoot":"","sources":["../../src/components/NotificationManager.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAwBH,eAAO,MAAM,mBAAmB;;CAwI9B,CAAC"}
1
+ {"version":3,"file":"NotificationManager.d.ts","sourceRoot":"","sources":["../../src/components/NotificationManager.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAwBH,eAAO,MAAM,mBAAmB;;CAwI9B,CAAC"}
@@ -13,7 +13,6 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /// <reference types="react" resolution-mode="require"/>
17
16
  export declare const VirtualAssistant: (() => JSX.Element) & {
18
17
  displayName: string;
19
18
  };
@@ -1 +1 @@
1
- {"version":3,"file":"VirtualAssistant.d.ts","sourceRoot":"","sources":["../../src/components/VirtualAssistant.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAwjBH,eAAO,MAAM,gBAAgB;;CA8H3B,CAAC"}
1
+ {"version":3,"file":"VirtualAssistant.d.ts","sourceRoot":"","sources":["../../src/components/VirtualAssistant.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAwjBH,eAAO,MAAM,gBAAgB;;CA8H3B,CAAC"}
@@ -13,7 +13,6 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /// <reference types="react" resolution-mode="require"/>
17
16
  import { type IKeyboardEvent } from 'monaco-editor';
18
17
  import type { LambdaEditorState } from '../../stores/shared/LambdaEditorState.js';
19
18
  import { type Type } from '@finos/legend-graph';
@@ -1 +1 @@
1
- {"version":3,"file":"LambdaEditor.d.ts","sourceRoot":"","sources":["../../../src/components/shared/LambdaEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,eAAe,CAAC;AAgBvB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAQlF,OAAO,EAAiC,KAAK,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAK/E,oBAAY,iCAAiC,GAAG;IAC9C,OAAO,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,OAAO,CAAC;IAC5C,MAAM,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;CACzC,CAAC;AA4nBF;;;GAGG;AACH,eAAO,MAAM,YAAY;gBAET,MAAM,GAAG,SAAS;cACpB,OAAO;uBACE,iBAAiB;IACpC;;;;OAIG;mBACY,IAAI,GAAG,SAAS;0BACT,CAAC,MAAM,OAAO,CAAC,GAAG,SAAS;gCACrB,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS;IACpD;;;;;;;;;;;;;OAaG;mBACY,OAAO;IACtB;;;OAGG;4BACqB,OAAO,KAAK,IAAI;IACxC;;OAEG;uBACgB,OAAO,GAAG,SAAS;IACtC;;;;;OAKG;qBACc,OAAO,GAAG,SAAS;IACpC;;OAEG;mBACY,OAAO,GAAG,SAAS;IAClC;;OAEG;gCACyB,OAAO,GAAG,SAAS;IAC/C;;OAEG;mBACY,OAAO,GAAG,SAAS;IAClC;;;OAGG;6BACsB,iCAAiC,EAAE;gCAChC,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS;;;CAmGvD,CAAC"}
1
+ {"version":3,"file":"LambdaEditor.d.ts","sourceRoot":"","sources":["../../../src/components/shared/LambdaEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,eAAe,CAAC;AAgBvB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAQlF,OAAO,EAAiC,KAAK,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAK/E,oBAAY,iCAAiC,GAAG;IAC9C,OAAO,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,OAAO,CAAC;IAC5C,MAAM,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;CACzC,CAAC;AA4nBF;;;GAGG;AACH,eAAO,MAAM,YAAY;gBAET,MAAM,GAAG,SAAS;cACpB,OAAO;uBACE,iBAAiB;IACpC;;;;OAIG;mBACY,IAAI,GAAG,SAAS;0BACT,CAAC,MAAM,OAAO,CAAC,GAAG,SAAS;gCACrB,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS;IACpD;;;;;;;;;;;;;OAaG;mBACY,OAAO;IACtB;;;OAGG;4BACqB,OAAO,KAAK,IAAI;IACxC;;OAEG;uBACgB,OAAO,GAAG,SAAS;IACtC;;;;;OAKG;qBACc,OAAO,GAAG,SAAS;IACpC;;OAEG;mBACY,OAAO,GAAG,SAAS;IAClC;;OAEG;gCACyB,OAAO,GAAG,SAAS;IAC/C;;OAEG;mBACY,OAAO,GAAG,SAAS;IAClC;;;OAGG;6BACsB,iCAAiC,EAAE;gCAChC,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS;;;CAmGvD,CAAC"}
@@ -13,7 +13,6 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /// <reference types="react" resolution-mode="require"/>
17
16
  import { type PureModel } from '@finos/legend-graph';
18
17
  import type { LambdaParametersState } from '../../stores/shared/LambdaParameterState.js';
19
18
  export declare const LambdaParameterValuesEditor: ((props: {
@@ -1 +1 @@
1
- {"version":3,"file":"LambdaParameterValuesEditor.d.ts","sourceRoot":"","sources":["../../../src/components/shared/LambdaParameterValuesEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,EACL,KAAK,SAAS,EAGf,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAKzF,eAAO,MAAM,2BAA2B,WAC9B;IACN,KAAK,EAAE,SAAS,CAAC;IACjB,qBAAqB,EAAE,qBAAqB,CAAC;CAC9C;;CAoFF,CAAC"}
1
+ {"version":3,"file":"LambdaParameterValuesEditor.d.ts","sourceRoot":"","sources":["../../../src/components/shared/LambdaParameterValuesEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,SAAS,EAGf,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAKzF,eAAO,MAAM,2BAA2B,WAC9B;IACN,KAAK,EAAE,SAAS,CAAC;IACjB,qBAAqB,EAAE,qBAAqB,CAAC;CAC9C;;CAoFF,CAAC"}
package/lib/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-application v7.1.7
1
+ /** @license @finos/legend-application v7.2.1
2
2
  * Copyright (c) 2020-present, Goldman Sachs
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,13 +14,28 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ApplicationStore } from './ApplicationStore.js';
17
- import type { LegendApplicationConfig } from '../application/LegendApplicationConfig.js';
18
- import type { LegendApplicationPluginManager } from '../application/LegendApplicationPluginManager.js';
17
+ import { LegendApplicationConfig } from '../application/LegendApplicationConfig.js';
18
+ import { LegendApplicationPluginManager } from '../application/LegendApplicationPluginManager.js';
19
19
  import type { LegendApplicationPlugin } from './LegendApplicationPlugin.js';
20
+ import type { GraphManagerPluginManager, PureGraphManagerPlugin, PureGraphPlugin, PureProtocolProcessorPlugin } from '@finos/legend-graph';
20
21
  export declare const TEST_DATA__applicationVersion: {
21
22
  buildTime: string;
22
23
  version: string;
23
24
  commitSHA: string;
24
25
  };
26
+ export declare const TEST__getGenericApplicationConfig: (extraConfigData?: {}) => LegendApplicationConfig;
25
27
  export declare const TEST__getTestApplicationStore: <T extends LegendApplicationConfig, V extends LegendApplicationPlugin>(config: T, pluginManager: LegendApplicationPluginManager<V>) => ApplicationStore<T, V>;
28
+ export declare class TEST__LegendApplicationPluginManager extends LegendApplicationPluginManager<LegendApplicationPlugin> implements GraphManagerPluginManager {
29
+ private pureProtocolProcessorPlugins;
30
+ private pureGraphManagerPlugins;
31
+ private pureGraphPlugins;
32
+ private constructor();
33
+ static create(): TEST__LegendApplicationPluginManager;
34
+ registerPureProtocolProcessorPlugin(plugin: PureProtocolProcessorPlugin): void;
35
+ registerPureGraphManagerPlugin(plugin: PureGraphManagerPlugin): void;
36
+ registerPureGraphPlugin(plugin: PureGraphPlugin): void;
37
+ getPureGraphManagerPlugins(): PureGraphManagerPlugin[];
38
+ getPureProtocolProcessorPlugins(): PureProtocolProcessorPlugin[];
39
+ getPureGraphPlugins(): PureGraphPlugin[];
40
+ }
26
41
  //# sourceMappingURL=ApplicationStoreTestUtils.d.ts.map
@@ -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,uBAAuB,CAAC;AAGzD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACzF,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,kDAAkD,CAAC;AACvG,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAE5E,eAAO,MAAM,6BAA6B;;;;CAIzC,CAAC;AAEF,eAAO,MAAM,6BAA6B,+JAWvC,CAAC"}
1
+ {"version":3,"file":"ApplicationStoreTestUtils.d.ts","sourceRoot":"","sources":["../../src/stores/ApplicationStoreTestUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAGzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,8BAA8B,EAAE,MAAM,kDAAkD,CAAC;AAClG,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,KAAK,EACV,yBAAyB,EACzB,sBAAsB,EACtB,eAAe,EACf,2BAA2B,EAC5B,MAAM,qBAAqB,CAAC;AAE7B,eAAO,MAAM,6BAA6B;;;;CAIzC,CAAC;AAIF,eAAO,MAAM,iCAAiC,4BAE3C,uBAWF,CAAC;AAEF,eAAO,MAAM,6BAA6B,+JAWvC,CAAC;AAEJ,qBAAa,oCACX,SAAQ,8BAA8B,CAAC,uBAAuB,CAC9D,YAAW,yBAAyB;IAEpC,OAAO,CAAC,4BAA4B,CAAqC;IACzE,OAAO,CAAC,uBAAuB,CAAgC;IAC/D,OAAO,CAAC,gBAAgB,CAAyB;IAEjD,OAAO;IAIP,MAAM,CAAC,MAAM,IAAI,oCAAoC;IAIrD,mCAAmC,CACjC,MAAM,EAAE,2BAA2B,GAClC,IAAI;IAIP,8BAA8B,CAAC,MAAM,EAAE,sBAAsB,GAAG,IAAI;IAIpE,uBAAuB,CAAC,MAAM,EAAE,eAAe,GAAG,IAAI;IAItD,0BAA0B,IAAI,sBAAsB,EAAE;IAItD,+BAA+B,IAAI,2BAA2B,EAAE;IAIhE,mBAAmB,IAAI,eAAe,EAAE;CAGzC"}
@@ -16,10 +16,55 @@
16
16
  import { ApplicationStore } from './ApplicationStore.js';
17
17
  import { createBrowserHistory } from 'history';
18
18
  import { WebApplicationNavigator } from './WebApplicationNavigator.js';
19
+ import { LegendApplicationConfig } from '../application/LegendApplicationConfig.js';
20
+ import { LegendApplicationPluginManager } from '../application/LegendApplicationPluginManager.js';
19
21
  export const TEST_DATA__applicationVersion = {
20
22
  buildTime: '2001-01-01T00:00:00-0000',
21
23
  version: 'test-version',
22
24
  commitSHA: 'test-commit-id',
23
25
  };
26
+ class TEST__LegendApplicationConfig extends LegendApplicationConfig {
27
+ }
28
+ export const TEST__getGenericApplicationConfig = (extraConfigData = {}) => {
29
+ const config = new TEST__LegendApplicationConfig({
30
+ configData: {
31
+ env: 'TEST',
32
+ appName: 'TEST',
33
+ ...extraConfigData,
34
+ },
35
+ versionData: TEST_DATA__applicationVersion,
36
+ baseUrl: '/query/',
37
+ });
38
+ return config;
39
+ };
24
40
  export const TEST__getTestApplicationStore = (config, pluginManager) => new ApplicationStore(config, new WebApplicationNavigator(createBrowserHistory()), pluginManager);
41
+ export class TEST__LegendApplicationPluginManager extends LegendApplicationPluginManager {
42
+ pureProtocolProcessorPlugins = [];
43
+ pureGraphManagerPlugins = [];
44
+ pureGraphPlugins = [];
45
+ constructor() {
46
+ super();
47
+ }
48
+ static create() {
49
+ return new TEST__LegendApplicationPluginManager();
50
+ }
51
+ registerPureProtocolProcessorPlugin(plugin) {
52
+ this.pureProtocolProcessorPlugins.push(plugin);
53
+ }
54
+ registerPureGraphManagerPlugin(plugin) {
55
+ this.pureGraphManagerPlugins.push(plugin);
56
+ }
57
+ registerPureGraphPlugin(plugin) {
58
+ this.pureGraphPlugins.push(plugin);
59
+ }
60
+ getPureGraphManagerPlugins() {
61
+ return [...this.pureGraphManagerPlugins];
62
+ }
63
+ getPureProtocolProcessorPlugins() {
64
+ return [...this.pureProtocolProcessorPlugins];
65
+ }
66
+ getPureGraphPlugins() {
67
+ return [...this.pureGraphPlugins];
68
+ }
69
+ }
25
70
  //# sourceMappingURL=ApplicationStoreTestUtils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicationStoreTestUtils.js","sourceRoot":"","sources":["../../src/stores/ApplicationStoreTestUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAKvE,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,SAAS,EAAE,0BAA0B;IACrC,OAAO,EAAE,cAAc;IACvB,SAAS,EAAE,gBAAgB;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAI3C,MAAS,EACT,aAAgD,EACxB,EAAE,CAC1B,IAAI,gBAAgB,CAClB,MAAM,EACN,IAAI,uBAAuB,CAAC,oBAAoB,EAAE,CAAC,EACnD,aAAa,CACd,CAAC"}
1
+ {"version":3,"file":"ApplicationStoreTestUtils.js","sourceRoot":"","sources":["../../src/stores/ApplicationStoreTestUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,8BAA8B,EAAE,MAAM,kDAAkD,CAAC;AASlG,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,SAAS,EAAE,0BAA0B;IACrC,OAAO,EAAE,cAAc;IACvB,SAAS,EAAE,gBAAgB;CAC5B,CAAC;AAEF,MAAM,6BAA8B,SAAQ,uBAAuB;CAAG;AAEtE,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAC/C,eAAe,GAAG,EAAE,EACK,EAAE;IAC3B,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC;QAC/C,UAAU,EAAE;YACV,GAAG,EAAE,MAAM;YACX,OAAO,EAAE,MAAM;YACf,GAAG,eAAe;SACnB;QACD,WAAW,EAAE,6BAA6B;QAC1C,OAAO,EAAE,SAAS;KACnB,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAI3C,MAAS,EACT,aAAgD,EACxB,EAAE,CAC1B,IAAI,gBAAgB,CAClB,MAAM,EACN,IAAI,uBAAuB,CAAC,oBAAoB,EAAE,CAAC,EACnD,aAAa,CACd,CAAC;AAEJ,MAAM,OAAO,oCACX,SAAQ,8BAAuD;IAGvD,4BAA4B,GAAkC,EAAE,CAAC;IACjE,uBAAuB,GAA6B,EAAE,CAAC;IACvD,gBAAgB,GAAsB,EAAE,CAAC;IAEjD;QACE,KAAK,EAAE,CAAC;IACV,CAAC;IAED,MAAM,CAAC,MAAM;QACX,OAAO,IAAI,oCAAoC,EAAE,CAAC;IACpD,CAAC;IAED,mCAAmC,CACjC,MAAmC;QAEnC,IAAI,CAAC,4BAA4B,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACjD,CAAC;IAED,8BAA8B,CAAC,MAA8B;QAC3D,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC;IAED,uBAAuB,CAAC,MAAuB;QAC7C,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;IAED,0BAA0B;QACxB,OAAO,CAAC,GAAG,IAAI,CAAC,uBAAuB,CAAC,CAAC;IAC3C,CAAC;IAED,+BAA+B;QAC7B,OAAO,CAAC,GAAG,IAAI,CAAC,4BAA4B,CAAC,CAAC;IAChD,CAAC;IAED,mBAAmB;QACjB,OAAO,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACpC,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-application",
3
- "version": "7.1.7",
3
+ "version": "7.2.1",
4
4
  "description": "Legend application core",
5
5
  "keywords": [
6
6
  "legend",
@@ -43,14 +43,14 @@
43
43
  "test:watch": "jest --watch"
44
44
  },
45
45
  "dependencies": {
46
- "@finos/legend-art": "3.1.0",
47
- "@finos/legend-graph": "14.1.0",
48
- "@finos/legend-shared": "6.1.0",
46
+ "@finos/legend-art": "3.2.1",
47
+ "@finos/legend-graph": "15.0.0",
48
+ "@finos/legend-shared": "6.1.1",
49
49
  "@types/css-font-loading-module": "0.0.7",
50
50
  "@types/papaparse": "5.3.5",
51
- "@types/react": "18.0.19",
51
+ "@types/react": "18.0.20",
52
52
  "@types/react-dom": "18.0.6",
53
- "date-fns": "2.29.2",
53
+ "date-fns": "2.29.3",
54
54
  "fuse.js": "6.6.2",
55
55
  "history": "5.3.0",
56
56
  "mobx": "6.6.2",
@@ -58,6 +58,8 @@
58
58
  "monaco-editor": "0.34.0",
59
59
  "papaparse": "5.3.2",
60
60
  "react": "18.2.0",
61
+ "react-dnd": "16.0.1",
62
+ "react-dnd-html5-backend": "16.0.1",
61
63
  "react-dom": "18.2.0",
62
64
  "react-draggable": "4.4.5",
63
65
  "react-resize-detector": "7.1.2",
@@ -66,10 +68,10 @@
66
68
  "sql-formatter": "10.6.0"
67
69
  },
68
70
  "devDependencies": {
69
- "@finos/legend-dev-utils": "2.0.15",
71
+ "@finos/legend-dev-utils": "2.0.16",
70
72
  "@jest/globals": "29.0.3",
71
73
  "cross-env": "7.0.3",
72
- "eslint": "8.23.0",
74
+ "eslint": "8.23.1",
73
75
  "jest": "29.0.3",
74
76
  "npm-run-all": "4.1.5",
75
77
  "rimraf": "3.0.2",
@@ -15,6 +15,8 @@
15
15
  */
16
16
 
17
17
  import { LegendStyleProvider } from '@finos/legend-art';
18
+ import { DndProvider } from 'react-dnd';
19
+ import { HTML5Backend } from 'react-dnd-html5-backend';
18
20
  import { ActionAlert } from './ActionAlert.js';
19
21
  import { BlockingAlert } from './BlockingAlert.js';
20
22
  import { NotificationManager } from './NotificationManager.js';
@@ -29,7 +31,7 @@ export const LegendApplicationComponentFrameworkProvider: React.FC<{
29
31
  <BlockingAlert />
30
32
  <ActionAlert />
31
33
  <NotificationManager />
32
- {children}
34
+ <DndProvider backend={HTML5Backend}>{children}</DndProvider>
33
35
  </LegendStyleProvider>
34
36
  );
35
37
  };
@@ -17,9 +17,15 @@
17
17
  import { ApplicationStore } from './ApplicationStore.js';
18
18
  import { createBrowserHistory } from 'history';
19
19
  import { WebApplicationNavigator } from './WebApplicationNavigator.js';
20
- import type { LegendApplicationConfig } from '../application/LegendApplicationConfig.js';
21
- import type { LegendApplicationPluginManager } from '../application/LegendApplicationPluginManager.js';
20
+ import { LegendApplicationConfig } from '../application/LegendApplicationConfig.js';
21
+ import { LegendApplicationPluginManager } from '../application/LegendApplicationPluginManager.js';
22
22
  import type { LegendApplicationPlugin } from './LegendApplicationPlugin.js';
23
+ import type {
24
+ GraphManagerPluginManager,
25
+ PureGraphManagerPlugin,
26
+ PureGraphPlugin,
27
+ PureProtocolProcessorPlugin,
28
+ } from '@finos/legend-graph';
23
29
 
24
30
  export const TEST_DATA__applicationVersion = {
25
31
  buildTime: '2001-01-01T00:00:00-0000',
@@ -27,6 +33,23 @@ export const TEST_DATA__applicationVersion = {
27
33
  commitSHA: 'test-commit-id',
28
34
  };
29
35
 
36
+ class TEST__LegendApplicationConfig extends LegendApplicationConfig {}
37
+
38
+ export const TEST__getGenericApplicationConfig = (
39
+ extraConfigData = {},
40
+ ): LegendApplicationConfig => {
41
+ const config = new TEST__LegendApplicationConfig({
42
+ configData: {
43
+ env: 'TEST',
44
+ appName: 'TEST',
45
+ ...extraConfigData,
46
+ },
47
+ versionData: TEST_DATA__applicationVersion,
48
+ baseUrl: '/query/',
49
+ });
50
+ return config;
51
+ };
52
+
30
53
  export const TEST__getTestApplicationStore = <
31
54
  T extends LegendApplicationConfig,
32
55
  V extends LegendApplicationPlugin,
@@ -39,3 +62,46 @@ export const TEST__getTestApplicationStore = <
39
62
  new WebApplicationNavigator(createBrowserHistory()),
40
63
  pluginManager,
41
64
  );
65
+
66
+ export class TEST__LegendApplicationPluginManager
67
+ extends LegendApplicationPluginManager<LegendApplicationPlugin>
68
+ implements GraphManagerPluginManager
69
+ {
70
+ private pureProtocolProcessorPlugins: PureProtocolProcessorPlugin[] = [];
71
+ private pureGraphManagerPlugins: PureGraphManagerPlugin[] = [];
72
+ private pureGraphPlugins: PureGraphPlugin[] = [];
73
+
74
+ private constructor() {
75
+ super();
76
+ }
77
+
78
+ static create(): TEST__LegendApplicationPluginManager {
79
+ return new TEST__LegendApplicationPluginManager();
80
+ }
81
+
82
+ registerPureProtocolProcessorPlugin(
83
+ plugin: PureProtocolProcessorPlugin,
84
+ ): void {
85
+ this.pureProtocolProcessorPlugins.push(plugin);
86
+ }
87
+
88
+ registerPureGraphManagerPlugin(plugin: PureGraphManagerPlugin): void {
89
+ this.pureGraphManagerPlugins.push(plugin);
90
+ }
91
+
92
+ registerPureGraphPlugin(plugin: PureGraphPlugin): void {
93
+ this.pureGraphPlugins.push(plugin);
94
+ }
95
+
96
+ getPureGraphManagerPlugins(): PureGraphManagerPlugin[] {
97
+ return [...this.pureGraphManagerPlugins];
98
+ }
99
+
100
+ getPureProtocolProcessorPlugins(): PureProtocolProcessorPlugin[] {
101
+ return [...this.pureProtocolProcessorPlugins];
102
+ }
103
+
104
+ getPureGraphPlugins(): PureGraphPlugin[] {
105
+ return [...this.pureGraphPlugins];
106
+ }
107
+ }