@finos/legend-extension-dsl-data-space 9.2.0 → 9.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.
Files changed (49) hide show
  1. package/lib/components/DataSpaceDataAccess.d.ts.map +1 -1
  2. package/lib/components/DataSpaceDataAccess.js +71 -3
  3. package/lib/components/DataSpaceDataAccess.js.map +1 -1
  4. package/lib/components/DataSpaceDescription.d.ts.map +1 -1
  5. package/lib/components/DataSpaceDescription.js +6 -1
  6. package/lib/components/DataSpaceDescription.js.map +1 -1
  7. package/lib/components/DataSpaceDiagramViewer.js +3 -3
  8. package/lib/components/DataSpaceDiagramViewer.js.map +1 -1
  9. package/lib/components/DataSpaceViewer.js +2 -2
  10. package/lib/components/DataSpaceViewer.js.map +1 -1
  11. package/lib/components/DataSpaceViewerActivityBar.d.ts.map +1 -1
  12. package/lib/components/DataSpaceViewerActivityBar.js +7 -3
  13. package/lib/components/DataSpaceViewerActivityBar.js.map +1 -1
  14. package/lib/components/DataSpaceWiki.d.ts.map +1 -1
  15. package/lib/components/DataSpaceWiki.js +1 -0
  16. package/lib/components/DataSpaceWiki.js.map +1 -1
  17. package/lib/components/query/DataSpaceQueryCreator.js +1 -1
  18. package/lib/components/query/DataSpaceQueryCreator.js.map +1 -1
  19. package/lib/index.css +2 -2
  20. package/lib/index.css.map +1 -1
  21. package/lib/package.json +2 -2
  22. package/lib/stores/DataSpaceViewerDataAccessState.d.ts +35 -0
  23. package/lib/stores/DataSpaceViewerDataAccessState.d.ts.map +1 -0
  24. package/lib/stores/DataSpaceViewerDataAccessState.js +100 -0
  25. package/lib/stores/DataSpaceViewerDataAccessState.js.map +1 -0
  26. package/lib/stores/DataSpaceViewerState.d.ts +34 -21
  27. package/lib/stores/DataSpaceViewerState.d.ts.map +1 -1
  28. package/lib/stores/DataSpaceViewerState.js +100 -30
  29. package/lib/stores/DataSpaceViewerState.js.map +1 -1
  30. package/lib/stores/query/DataSpaceAdvancedSearchState.d.ts +1 -1
  31. package/lib/stores/query/DataSpaceAdvancedSearchState.d.ts.map +1 -1
  32. package/lib/stores/query/DataSpaceAdvancedSearchState.js +2 -0
  33. package/lib/stores/query/DataSpaceAdvancedSearchState.js.map +1 -1
  34. package/lib/stores/studio/DataSpacePreviewState.d.ts.map +1 -1
  35. package/lib/stores/studio/DataSpacePreviewState.js +2 -0
  36. package/lib/stores/studio/DataSpacePreviewState.js.map +1 -1
  37. package/package.json +12 -12
  38. package/src/components/DataSpaceDataAccess.tsx +116 -2
  39. package/src/components/DataSpaceDescription.tsx +7 -1
  40. package/src/components/DataSpaceDiagramViewer.tsx +3 -3
  41. package/src/components/DataSpaceViewer.tsx +2 -2
  42. package/src/components/DataSpaceViewerActivityBar.tsx +6 -5
  43. package/src/components/DataSpaceWiki.tsx +2 -0
  44. package/src/components/query/DataSpaceQueryCreator.tsx +1 -1
  45. package/src/stores/DataSpaceViewerDataAccessState.ts +146 -0
  46. package/src/stores/DataSpaceViewerState.ts +126 -34
  47. package/src/stores/query/DataSpaceAdvancedSearchState.ts +14 -1
  48. package/src/stores/studio/DataSpacePreviewState.ts +3 -0
  49. package/tsconfig.json +1 -0
@@ -0,0 +1,100 @@
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
+ import { ActionState, assertErrorThrown, uuid, } from '@finos/legend-shared';
17
+ import { action, flow, makeObservable, observable } from 'mobx';
18
+ export class DataSpaceDatasetInfo {
19
+ uuid = uuid();
20
+ specification;
21
+ entitlementReport;
22
+ constructor(specification) {
23
+ makeObservable(this, {
24
+ entitlementReport: observable,
25
+ setEntitlementReport: action,
26
+ });
27
+ this.specification = specification;
28
+ }
29
+ setEntitlementReport(val) {
30
+ this.entitlementReport = val;
31
+ }
32
+ }
33
+ export class DataSpaceViewerDataAccessState {
34
+ dataSpaceViewerState;
35
+ fetchDatasetSpecificationsState = ActionState.create();
36
+ fetchDatasetEntitlementReportsState = ActionState.create();
37
+ datasets = [];
38
+ constructor(dataSpaceViewerState) {
39
+ makeObservable(this, {
40
+ datasets: observable,
41
+ fetchDatasetSpecifications: flow,
42
+ fetchDatasetEntitlementReports: flow,
43
+ });
44
+ this.dataSpaceViewerState = dataSpaceViewerState;
45
+ }
46
+ *fetchDatasetSpecifications() {
47
+ this.fetchDatasetSpecificationsState.inProgress();
48
+ try {
49
+ const datasets = (yield this.dataSpaceViewerState.graphManagerState.graphManager.surveyDatasets(this.dataSpaceViewerState.currentExecutionContext.mapping, this.dataSpaceViewerState.currentExecutionContext.defaultRuntime, undefined, this.dataSpaceViewerState.retriveGraphData()));
50
+ this.datasets = datasets.map((dataset) => {
51
+ const existingDataset = this.datasets.find((ds) => ds.specification.hashCode === dataset.hashCode);
52
+ if (existingDataset) {
53
+ return existingDataset;
54
+ }
55
+ return new DataSpaceDatasetInfo(dataset);
56
+ });
57
+ }
58
+ catch (error) {
59
+ assertErrorThrown(error);
60
+ this.dataSpaceViewerState.applicationStore.notificationService.notifyError(error);
61
+ }
62
+ finally {
63
+ this.fetchDatasetSpecificationsState.complete();
64
+ }
65
+ }
66
+ *fetchDatasetEntitlementReports() {
67
+ this.fetchDatasetEntitlementReportsState.inProgress();
68
+ try {
69
+ const reports = (yield this.dataSpaceViewerState.graphManagerState.graphManager.checkEntitlements(this.dataSpaceViewerState.currentExecutionContext.mapping, this.dataSpaceViewerState.currentExecutionContext.defaultRuntime, undefined, this.dataSpaceViewerState.retriveGraphData()));
70
+ this.datasets.forEach((dataset) => {
71
+ const matchingReport = reports.find((report) => report.storeSpecification.hashCode ===
72
+ dataset.specification.hashCode);
73
+ if (matchingReport) {
74
+ dataset.setEntitlementReport(matchingReport);
75
+ return;
76
+ }
77
+ dataset.setEntitlementReport(undefined);
78
+ });
79
+ const newDatasets = [];
80
+ reports.forEach((report) => {
81
+ const matchingDataset = this.datasets.find((dataset) => dataset.specification.hashCode ===
82
+ report.storeSpecification.hashCode);
83
+ if (!matchingDataset) {
84
+ const newDataset = new DataSpaceDatasetInfo(report.storeSpecification);
85
+ newDataset.setEntitlementReport(report);
86
+ newDatasets.push(newDataset);
87
+ }
88
+ });
89
+ this.datasets = this.datasets.concat(newDatasets);
90
+ }
91
+ catch (error) {
92
+ assertErrorThrown(error);
93
+ this.dataSpaceViewerState.applicationStore.notificationService.notifyError(error);
94
+ }
95
+ finally {
96
+ this.fetchDatasetEntitlementReportsState.complete();
97
+ }
98
+ }
99
+ }
100
+ //# sourceMappingURL=DataSpaceViewerDataAccessState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpaceViewerDataAccessState.js","sourceRoot":"","sources":["../../src/stores/DataSpaceViewerDataAccessState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,WAAW,EACX,iBAAiB,EACjB,IAAI,GACL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAOhE,MAAM,OAAO,oBAAoB;IACtB,IAAI,GAAG,IAAI,EAAE,CAAC;IACd,aAAa,CAAwB;IAE9C,iBAAiB,CAAwC;IAEzD,YAAY,aAAmC;QAC7C,cAAc,CAAC,IAAI,EAAE;YACnB,iBAAiB,EAAE,UAAU;YAC7B,oBAAoB,EAAE,MAAM;SAC7B,CAAC,CAAC;QAEH,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;IAED,oBAAoB,CAAC,GAAyC;QAC5D,IAAI,CAAC,iBAAiB,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;oBACpB,MAAM,UAAU,GAAG,IAAI,oBAAoB,CACzC,MAAM,CAAC,kBAAkB,CAC1B,CAAC;oBACF,UAAU,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;oBACxC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;iBAC9B;YACH,CAAC,CAAC,CAAC;YACH,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;SACnD;QAAC,OAAO,KAAK,EAAE;YACd,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,WAAW,CACxE,KAAK,CACN,CAAC;SACH;gBAAS;YACR,IAAI,CAAC,mCAAmC,CAAC,QAAQ,EAAE,CAAC;SACrD;IACH,CAAC;CACF"}
@@ -13,56 +13,69 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { GenericLegendApplicationStore } from '@finos/legend-application';
16
+ import type { GenericLegendApplicationStore, NavigationZone } from '@finos/legend-application';
17
17
  import { type ClassView, type DiagramRenderer } from '@finos/legend-extension-dsl-diagram';
18
- import type { BasicGraphManagerState, PackageableRuntime } from '@finos/legend-graph';
18
+ import type { BasicGraphManagerState, GraphData, PackageableRuntime } from '@finos/legend-graph';
19
19
  import type { DataSpaceAnalysisResult, DataSpaceDiagramAnalysisResult, DataSpaceExecutionContextAnalysisResult } from '../graphManager/action/analytics/DataSpaceAnalysis.js';
20
+ import { DataSpaceViewerDataAccessState } from './DataSpaceViewerDataAccessState.js';
20
21
  export declare enum DATA_SPACE_VIEWER_ACTIVITY_MODE {
21
- DESCRIPTION = "DESCRIPTION",
22
- DIAGRAM_VIEWER = "DIAGRAM_VIEWER",
23
- MODELS_DOCUMENTATION = "MODELS_DOCUMENTATION",
24
- QUICK_START = "QUICK_START",
25
- EXECUTION_CONTEXT = "EXECUTION_CONTEXT",
26
- DATA_ACCESS = "DATA_ACCESS",
27
- DATA_STORES = "DATA_STORES",
28
- DATA_AVAILABILITY = "DATA_AVAILABILITY",
29
- DATA_READINESS = "DATA_READINESS",
30
- DATA_COST = "DATA_COST",
31
- DATA_GOVERNANCE = "DATA_GOVERNANCE",
32
- INFO = "INFO",
33
- SUPPORT = "SUPPORT"
22
+ DESCRIPTION = "description",
23
+ DIAGRAM_VIEWER = "diagram_viewer",
24
+ MODELS_DOCUMENTATION = "models_documentation",
25
+ QUICK_START = "quick_start",
26
+ EXECUTION_CONTEXT = "execution_context",
27
+ DATA_ACCESS = "data_access",
28
+ DATA_STORES = "data_stores",
29
+ DATA_AVAILABILITY = "data_availability",
30
+ DATA_READINESS = "data_readiness",
31
+ DATA_COST = "data_cost",
32
+ DATA_GOVERNANCE = "data_governance",
33
+ INFO = "info",
34
+ SUPPORT = "support"
35
+ }
36
+ declare class DataSpaceLayoutState {
37
+ readonly dataSpaceViewerState: DataSpaceViewerState;
38
+ isExpandedModeEnabled: boolean;
39
+ constructor(dataSpaceViewerState: DataSpaceViewerState);
40
+ enableExpandedMode(val: boolean): void;
34
41
  }
35
42
  export declare class DataSpaceViewerState {
36
43
  readonly applicationStore: GenericLegendApplicationStore;
37
44
  readonly graphManagerState: BasicGraphManagerState;
45
+ readonly layoutState: DataSpaceLayoutState;
46
+ readonly dataSpaceAnalysisResult: DataSpaceAnalysisResult;
38
47
  readonly groupId: string;
39
48
  readonly artifactId: string;
40
49
  readonly versionId: string;
41
- readonly dataSpaceAnalysisResult: DataSpaceAnalysisResult;
50
+ readonly retriveGraphData: () => GraphData;
42
51
  readonly viewProject: (groupId: string, artifactId: string, versionId: string, entityPath: string | undefined) => void;
43
52
  readonly viewSDLCProject: (groupId: string, artifactId: string, entityPath: string | undefined) => Promise<void>;
44
53
  readonly onDiagramClassDoubleClick: (classView: ClassView) => void;
54
+ readonly onZoneChange?: ((zone: NavigationZone | undefined) => void) | undefined;
55
+ readonly dataAccessState: DataSpaceViewerDataAccessState;
45
56
  _renderer?: DiagramRenderer | undefined;
46
57
  currentDiagram?: DataSpaceDiagramAnalysisResult | undefined;
47
58
  currentActivity: DATA_SPACE_VIEWER_ACTIVITY_MODE;
48
59
  currentExecutionContext: DataSpaceExecutionContextAnalysisResult;
49
60
  currentRuntime: PackageableRuntime;
50
- isExpandedModeEnabled: boolean;
51
61
  constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: BasicGraphManagerState, groupId: string, artifactId: string, versionId: string, dataSpaceAnalysisResult: DataSpaceAnalysisResult, actions: {
62
+ retriveGraphData: () => GraphData;
52
63
  viewProject: (groupId: string, artifactId: string, versionId: string, entityPath: string | undefined) => void;
53
64
  viewSDLCProject: (groupId: string, artifactId: string, entityPath: string | undefined) => Promise<void>;
54
65
  onDiagramClassDoubleClick: (classView: ClassView) => void;
66
+ onZoneChange?: ((zone: NavigationZone | undefined) => void) | undefined;
55
67
  });
56
- get renderer(): DiagramRenderer;
68
+ get diagramRenderer(): DiagramRenderer;
57
69
  get isDiagramRendererInitialized(): boolean;
58
70
  get diagramCursorClass(): string;
59
71
  get isVerified(): boolean;
60
- setRenderer(val: DiagramRenderer): void;
72
+ setDiagramRenderer(val: DiagramRenderer): void;
61
73
  setCurrentDiagram(val: DataSpaceDiagramAnalysisResult): void;
62
74
  setCurrentActivity(val: DATA_SPACE_VIEWER_ACTIVITY_MODE): void;
63
75
  setCurrentExecutionContext(val: DataSpaceExecutionContextAnalysisResult): void;
64
76
  setCurrentRuntime(val: PackageableRuntime): void;
65
- setupRenderer(): void;
66
- enableExpandedMode(val: boolean): void;
77
+ setupDiagramRenderer(): void;
78
+ changeZone(zone: NavigationZone): void;
67
79
  }
80
+ export {};
68
81
  //# sourceMappingURL=DataSpaceViewerState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceViewerState.d.ts","sourceRoot":"","sources":["../../src/stores/DataSpaceViewerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,K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AE,MAAM,GAAG,SAAS,KAC3B,IAAI,CAAC;QACV,eAAe,EAAE,CACf,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,GAAG,SAAS,KAC3B,OAAO,CAAC,IAAI,CAAC,CAAC;QACnB,yBAAyB,EAAE,CAAC,SAAS,EAAE,SAAS,KAAK,IAAI,CAAC;QAC1D,YAAY,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;KACzE;IAwCH,IAAI,eAAe,IAAI,eAAe,CAKrC;IAED,IAAI,4BAA4B,IAAI,OAAO,CAE1C;IAMD,IAAI,kBAAkB,IAAI,MAAM,CAiB/B;IAED,IAAI,UAAU,IAAI,OAAO,CAQxB;IAED,kBAAkB,CAAC,GAAG,EAAE,eAAe,GAAG,IAAI;IAI9C,iBAAiB,CAAC,GAAG,EAAE,8BAA8B,GAAG,IAAI;IAI5D,kBAAkB,CAAC,GAAG,EAAE,+BAA+B,GAAG,IAAI;IAI9D,0BAA0B,CACxB,GAAG,EAAE,uCAAuC,GAC3C,IAAI;IAKP,iBAAiB,CAAC,GAAG,EAAE,kBAAkB,GAAG,IAAI;IAIhD,oBAAoB,IAAI,IAAI;IAQ5B,UAAU,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI;CA2DvC"}
@@ -17,38 +17,56 @@ import { DIAGRAM_INTERACTION_MODE, } from '@finos/legend-extension-dsl-diagram';
17
17
  import { getNullableFirstElement, guaranteeNonNullable, } from '@finos/legend-shared';
18
18
  import { action, computed, makeObservable, observable } from 'mobx';
19
19
  import { PURE_DATA_SPACE_INFO_PROFILE_PATH, PURE_DATA_SPACE_INFO_PROFILE_VERIFIED_STEREOTYPE, } from '../graphManager/DSL_DataSpace_PureGraphManagerPlugin.js';
20
+ import { DataSpaceViewerDataAccessState } from './DataSpaceViewerDataAccessState.js';
20
21
  export var DATA_SPACE_VIEWER_ACTIVITY_MODE;
21
22
  (function (DATA_SPACE_VIEWER_ACTIVITY_MODE) {
22
- DATA_SPACE_VIEWER_ACTIVITY_MODE["DESCRIPTION"] = "DESCRIPTION";
23
- DATA_SPACE_VIEWER_ACTIVITY_MODE["DIAGRAM_VIEWER"] = "DIAGRAM_VIEWER";
24
- DATA_SPACE_VIEWER_ACTIVITY_MODE["MODELS_DOCUMENTATION"] = "MODELS_DOCUMENTATION";
25
- DATA_SPACE_VIEWER_ACTIVITY_MODE["QUICK_START"] = "QUICK_START";
26
- DATA_SPACE_VIEWER_ACTIVITY_MODE["EXECUTION_CONTEXT"] = "EXECUTION_CONTEXT";
27
- DATA_SPACE_VIEWER_ACTIVITY_MODE["DATA_ACCESS"] = "DATA_ACCESS";
28
- DATA_SPACE_VIEWER_ACTIVITY_MODE["DATA_STORES"] = "DATA_STORES";
29
- DATA_SPACE_VIEWER_ACTIVITY_MODE["DATA_AVAILABILITY"] = "DATA_AVAILABILITY";
30
- DATA_SPACE_VIEWER_ACTIVITY_MODE["DATA_READINESS"] = "DATA_READINESS";
31
- DATA_SPACE_VIEWER_ACTIVITY_MODE["DATA_COST"] = "DATA_COST";
32
- DATA_SPACE_VIEWER_ACTIVITY_MODE["DATA_GOVERNANCE"] = "DATA_GOVERNANCE";
33
- DATA_SPACE_VIEWER_ACTIVITY_MODE["INFO"] = "INFO";
34
- DATA_SPACE_VIEWER_ACTIVITY_MODE["SUPPORT"] = "SUPPORT";
23
+ DATA_SPACE_VIEWER_ACTIVITY_MODE["DESCRIPTION"] = "description";
24
+ DATA_SPACE_VIEWER_ACTIVITY_MODE["DIAGRAM_VIEWER"] = "diagram_viewer";
25
+ DATA_SPACE_VIEWER_ACTIVITY_MODE["MODELS_DOCUMENTATION"] = "models_documentation";
26
+ DATA_SPACE_VIEWER_ACTIVITY_MODE["QUICK_START"] = "quick_start";
27
+ DATA_SPACE_VIEWER_ACTIVITY_MODE["EXECUTION_CONTEXT"] = "execution_context";
28
+ DATA_SPACE_VIEWER_ACTIVITY_MODE["DATA_ACCESS"] = "data_access";
29
+ DATA_SPACE_VIEWER_ACTIVITY_MODE["DATA_STORES"] = "data_stores";
30
+ DATA_SPACE_VIEWER_ACTIVITY_MODE["DATA_AVAILABILITY"] = "data_availability";
31
+ DATA_SPACE_VIEWER_ACTIVITY_MODE["DATA_READINESS"] = "data_readiness";
32
+ DATA_SPACE_VIEWER_ACTIVITY_MODE["DATA_COST"] = "data_cost";
33
+ DATA_SPACE_VIEWER_ACTIVITY_MODE["DATA_GOVERNANCE"] = "data_governance";
34
+ DATA_SPACE_VIEWER_ACTIVITY_MODE["INFO"] = "info";
35
+ DATA_SPACE_VIEWER_ACTIVITY_MODE["SUPPORT"] = "support";
35
36
  })(DATA_SPACE_VIEWER_ACTIVITY_MODE = DATA_SPACE_VIEWER_ACTIVITY_MODE || (DATA_SPACE_VIEWER_ACTIVITY_MODE = {}));
37
+ class DataSpaceLayoutState {
38
+ dataSpaceViewerState;
39
+ isExpandedModeEnabled = false;
40
+ constructor(dataSpaceViewerState) {
41
+ makeObservable(this, {
42
+ isExpandedModeEnabled: observable,
43
+ enableExpandedMode: action,
44
+ });
45
+ this.dataSpaceViewerState = dataSpaceViewerState;
46
+ }
47
+ enableExpandedMode(val) {
48
+ this.isExpandedModeEnabled = val;
49
+ }
50
+ }
36
51
  export class DataSpaceViewerState {
37
52
  applicationStore;
38
53
  graphManagerState;
54
+ layoutState;
55
+ dataSpaceAnalysisResult;
39
56
  groupId;
40
57
  artifactId;
41
58
  versionId;
42
- dataSpaceAnalysisResult;
59
+ retriveGraphData;
43
60
  viewProject;
44
61
  viewSDLCProject;
45
62
  onDiagramClassDoubleClick;
63
+ onZoneChange;
64
+ dataAccessState;
46
65
  _renderer;
47
66
  currentDiagram;
48
67
  currentActivity = DATA_SPACE_VIEWER_ACTIVITY_MODE.DESCRIPTION;
49
68
  currentExecutionContext;
50
69
  currentRuntime;
51
- isExpandedModeEnabled = false;
52
70
  constructor(applicationStore, graphManagerState, groupId, artifactId, versionId, dataSpaceAnalysisResult, actions) {
53
71
  makeObservable(this, {
54
72
  _renderer: observable,
@@ -56,18 +74,17 @@ export class DataSpaceViewerState {
56
74
  currentActivity: observable,
57
75
  currentExecutionContext: observable,
58
76
  currentRuntime: observable,
59
- isExpandedModeEnabled: observable,
60
77
  isVerified: computed,
61
- renderer: computed,
62
- setRenderer: action,
78
+ diagramRenderer: computed,
79
+ setDiagramRenderer: action,
63
80
  setCurrentDiagram: action,
64
81
  setCurrentActivity: action,
65
82
  setCurrentExecutionContext: action,
66
83
  setCurrentRuntime: action,
67
- enableExpandedMode: action,
68
84
  });
69
85
  this.applicationStore = applicationStore;
70
86
  this.graphManagerState = graphManagerState;
87
+ this.layoutState = new DataSpaceLayoutState(this);
71
88
  this.dataSpaceAnalysisResult = dataSpaceAnalysisResult;
72
89
  this.groupId = groupId;
73
90
  this.artifactId = artifactId;
@@ -76,11 +93,14 @@ export class DataSpaceViewerState {
76
93
  dataSpaceAnalysisResult.defaultExecutionContext;
77
94
  this.currentRuntime = this.currentExecutionContext.defaultRuntime;
78
95
  this.currentDiagram = getNullableFirstElement(this.dataSpaceAnalysisResult.diagrams);
96
+ this.retriveGraphData = actions.retriveGraphData;
79
97
  this.viewProject = actions.viewProject;
80
98
  this.viewSDLCProject = actions.viewSDLCProject;
81
99
  this.onDiagramClassDoubleClick = actions.onDiagramClassDoubleClick;
100
+ this.onZoneChange = actions.onZoneChange;
101
+ this.dataAccessState = new DataSpaceViewerDataAccessState(this);
82
102
  }
83
- get renderer() {
103
+ get diagramRenderer() {
84
104
  return guaranteeNonNullable(this._renderer, `Diagram renderer must be initialized (this is likely caused by calling this method at the wrong place)`);
85
105
  }
86
106
  get isDiagramRendererInitialized() {
@@ -94,12 +114,12 @@ export class DataSpaceViewerState {
94
114
  if (!this.isDiagramRendererInitialized) {
95
115
  return '';
96
116
  }
97
- if (this.renderer.middleClick || this.renderer.rightClick) {
117
+ if (this.diagramRenderer.middleClick || this.diagramRenderer.rightClick) {
98
118
  return 'diagram-editor__cursor--grabbing';
99
119
  }
100
- switch (this.renderer.interactionMode) {
120
+ switch (this.diagramRenderer.interactionMode) {
101
121
  case DIAGRAM_INTERACTION_MODE.LAYOUT: {
102
- if (this.renderer.mouseOverClassView) {
122
+ if (this.diagramRenderer.mouseOverClassView) {
103
123
  return 'diagram-editor__cursor--pointer';
104
124
  }
105
125
  return '';
@@ -112,7 +132,7 @@ export class DataSpaceViewerState {
112
132
  return Boolean(this.dataSpaceAnalysisResult.stereotypes.find((stereotype) => stereotype.profile === PURE_DATA_SPACE_INFO_PROFILE_PATH &&
113
133
  stereotype.value === PURE_DATA_SPACE_INFO_PROFILE_VERIFIED_STEREOTYPE));
114
134
  }
115
- setRenderer(val) {
135
+ setDiagramRenderer(val) {
116
136
  this._renderer = val;
117
137
  }
118
138
  setCurrentDiagram(val) {
@@ -128,13 +148,63 @@ export class DataSpaceViewerState {
128
148
  setCurrentRuntime(val) {
129
149
  this.currentRuntime = val;
130
150
  }
131
- setupRenderer() {
132
- this.renderer.setIsReadOnly(true);
133
- this.renderer.setEnableLayoutAutoAdjustment(true);
134
- this.renderer.onClassViewDoubleClick = (classView) => this.onDiagramClassDoubleClick(classView);
151
+ setupDiagramRenderer() {
152
+ this.diagramRenderer.setIsReadOnly(true);
153
+ this.diagramRenderer.setEnableLayoutAutoAdjustment(true);
154
+ this.diagramRenderer.onClassViewDoubleClick = (classView) => this.onDiagramClassDoubleClick(classView);
135
155
  }
136
- enableExpandedMode(val) {
137
- this.isExpandedModeEnabled = val;
156
+ changeZone(zone) {
157
+ switch (zone) {
158
+ case DATA_SPACE_VIEWER_ACTIVITY_MODE.DESCRIPTION:
159
+ case DATA_SPACE_VIEWER_ACTIVITY_MODE.DIAGRAM_VIEWER:
160
+ case DATA_SPACE_VIEWER_ACTIVITY_MODE.MODELS_DOCUMENTATION:
161
+ case DATA_SPACE_VIEWER_ACTIVITY_MODE.QUICK_START: {
162
+ this.setCurrentActivity(DATA_SPACE_VIEWER_ACTIVITY_MODE.DESCRIPTION);
163
+ break;
164
+ }
165
+ case DATA_SPACE_VIEWER_ACTIVITY_MODE.EXECUTION_CONTEXT: {
166
+ this.setCurrentActivity(DATA_SPACE_VIEWER_ACTIVITY_MODE.EXECUTION_CONTEXT);
167
+ break;
168
+ }
169
+ case DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_ACCESS: {
170
+ this.setCurrentActivity(DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_ACCESS);
171
+ break;
172
+ }
173
+ case DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_STORES: {
174
+ this.setCurrentActivity(DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_STORES);
175
+ break;
176
+ }
177
+ case DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_AVAILABILITY: {
178
+ this.setCurrentActivity(DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_AVAILABILITY);
179
+ break;
180
+ }
181
+ case DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_READINESS: {
182
+ this.setCurrentActivity(DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_READINESS);
183
+ break;
184
+ }
185
+ case DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_COST: {
186
+ this.setCurrentActivity(DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_COST);
187
+ break;
188
+ }
189
+ case DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_GOVERNANCE: {
190
+ this.setCurrentActivity(DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_GOVERNANCE);
191
+ break;
192
+ }
193
+ case DATA_SPACE_VIEWER_ACTIVITY_MODE.INFO: {
194
+ this.setCurrentActivity(DATA_SPACE_VIEWER_ACTIVITY_MODE.INFO);
195
+ break;
196
+ }
197
+ case DATA_SPACE_VIEWER_ACTIVITY_MODE.SUPPORT: {
198
+ this.setCurrentActivity(DATA_SPACE_VIEWER_ACTIVITY_MODE.SUPPORT);
199
+ break;
200
+ }
201
+ default: {
202
+ // unknown
203
+ this.setCurrentActivity(DATA_SPACE_VIEWER_ACTIVITY_MODE.DESCRIPTION);
204
+ this.onZoneChange?.(undefined);
205
+ break;
206
+ }
207
+ }
138
208
  }
139
209
  }
140
210
  //# sourceMappingURL=DataSpaceViewerState.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceViewerState.js","sourceRoot":"","sources":["../../src/stores/DataSpaceViewerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAGL,wBAAwB,GACzB,MAAM,qCAAqC,CAAC;AAK7C,OAAO,EACL,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAMpE,OAAO,EACL,iCAAiC,EACjC,gDAAgD,GACjD,MAAM,yDAAyD,CAAC;AAEjE,MAAM,CAAN,IAAY,+BAeX;AAfD,WAAY,+BAA+B;IACzC,8DAA2B,CAAA;IAC3B,oEAAiC,CAAA;IACjC,gFAA6C,CAAA;IAC7C,8DAA2B,CAAA;IAC3B,0EAAuC,CAAA;IACvC,8DAA2B,CAAA;IAE3B,8DAA2B,CAAA;IAC3B,0EAAuC,CAAA;IACvC,oEAAiC,CAAA;IACjC,0DAAuB,CAAA;IACvB,sEAAmC,CAAA;IACnC,gDAAa,CAAA;IACb,sDAAmB,CAAA;AACrB,CAAC,EAfW,+BAA+B,GAA/B,+BAA+B,KAA/B,+BAA+B,QAe1C;AAED,MAAM,OAAO,oBAAoB;IACtB,gBAAgB,CAAgC;IAChD,iBAAiB,CAAyB;IAE1C,OAAO,CAAS;IAChB,UAAU,CAAS;IACnB,SAAS,CAAS;IAClB,uBAAuB,CAA0B;IACjD,WAAW,CAKV;IACD,eAAe,CAIL;IACV,yBAAyB,CAAiC;IAEnE,SAAS,CAA+B;IACxC,cAAc,CAA8C;IAC5D,eAAe,GAAG,+BAA+B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BAA+B,CAAC,SAAS,CAAC,CAAC;gBAC9C,IAAI,CAAC,kBAAkB,CAAC,+BAA+B,CAAC,SAAS,CAAC,CAAC;gBACnE,MAAM;aACP;YACD,KAAK,+BAA+B,CAAC,eAAe,CAAC,CAAC;gBACpD,IAAI,CAAC,kBAAkB,CACrB,+BAA+B,CAAC,eAAe,CAChD,CAAC;gBACF,MAAM;aACP;YACD,KAAK,+BAA+B,CAAC,IAAI,CAAC,CAAC;gBACzC,IAAI,CAAC,kBAAkB,CAAC,+BAA+B,CAAC,IAAI,CAAC,CAAC;gBAC9D,MAAM;aACP;YACD,KAAK,+BAA+B,CAAC,OAAO,CAAC,CAAC;gBAC5C,IAAI,CAAC,kBAAkB,CAAC,+BAA+B,CAAC,OAAO,CAAC,CAAC;gBACjE,MAAM;aACP;YACD,OAAO,CAAC,CAAC;gBACP,UAAU;gBACV,IAAI,CAAC,kBAAkB,CAAC,+BAA+B,CAAC,WAAW,CAAC,CAAC;gBACrE,IAAI,CAAC,YAAY,EAAE,CAAC,SAAS,CAAC,CAAC;gBAC/B,MAAM;aACP;SACF;IACH,CAAC;CACF"}
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { Class, GraphManagerState } from '@finos/legend-graph';
16
+ import { type Class, type GraphManagerState } from '@finos/legend-graph';
17
17
  import { type DepotServerClient } from '@finos/legend-server-depot';
18
18
  import { type GeneratorFn, ActionState } from '@finos/legend-shared';
19
19
  import { DataSpaceViewerState } from '../DataSpaceViewerState.js';
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceAdvancedSearchState.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceAdvancedSearchState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAEL,KAAK,iBAAiB,EAIvB,MAAM,4BAA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AAG,EAAE,OAAO,GAAG,IAAI;IAInC,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC;IA2BrD,aAAa,CAAC,SAAS,EAAE,aAAa,GAAG,WAAW,CAAC,IAAI,CAAC;IAoE1D,oBAAoB,CAAC,MAAM,CAAC,EAAE,KAAK,GAAG,WAAW,CAAC,IAAI,CAAC;CAkBzD"}
@@ -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 { GraphDataWithOrigin, LegendSDLC, } from '@finos/legend-graph';
16
17
  import { DepotScope, ProjectData, retrieveProjectEntitiesWithDependencies, } from '@finos/legend-server-depot';
17
18
  import { ActionState, assertErrorThrown, } from '@finos/legend-shared';
18
19
  import { action, flow, flowResult, makeObservable, observable } from 'mobx';
@@ -96,6 +97,7 @@ export class DataSpaceAdvancedSearchState {
96
97
  // analyze data space
97
98
  const analysisResult = (yield DSL_DataSpace_getGraphManagerExtension(this.graphManagerState.graphManager).analyzeDataSpace(dataSpace.path, () => retrieveProjectEntitiesWithDependencies(project, dataSpace.versionId, this.depotServerClient), () => retrieveAnalyticsResultCache(project, dataSpace.versionId, dataSpace.path, this.depotServerClient), this.loadDataSpaceState));
98
99
  this.dataSpaceViewerState = new DataSpaceViewerState(this.applicationStore, this.graphManagerState, dataSpace.groupId, dataSpace.artifactId, dataSpace.versionId, analysisResult, {
100
+ retriveGraphData: () => new GraphDataWithOrigin(new LegendSDLC(dataSpace.groupId, dataSpace.artifactId, dataSpace.versionId)),
99
101
  viewProject: this.viewProject,
100
102
  viewSDLCProject: this.viewSDLCProject,
101
103
  onDiagramClassDoubleClick: (classView) => {
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceAdvancedSearchState.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceAdvancedSearchState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAGL,UAAU,EACV,WAAW,EACX,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ACX,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,cAAc,CAAC,IAAI,EACjD,MAAM,EAAE,IAAI,CACb,CACF,CAAC;SACH;IACH,CAAC;CACF"}
1
+ {"version":3,"file":"DataSpaceAdvancedSearchState.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceAdvancedSearchState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,mBAAmB,EAGnB,UAAU,GACX,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,UAAU,EACV,WAAW,EACX,uCAAuC,GACxC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAGL,WAAW,EACX,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC5E,OAAO,EAAE,sCAAsC,EAAE,MAAM,6EAA6E,CAAC;AACrI,OAAO,EAAE,kCAAkC,EAAE,MAAM,+EAA+E,CAAC;AACnI,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,kCAAkC,EAAE,MAAM,gEAAgE,CAAC;AACpH,OAAO,EAAsB,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EACL,8BAA8B,EAC9B,8CAA8C,GAE/C,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,4BAA4B,EAAE,MAAM,gEAAgE,CAAC;AAG9G,MAAM,OAAO,4BAA4B;IAC9B,gBAAgB,CAAgC;IAChD,iBAAiB,CAAoB;IACrC,iBAAiB,CAAoB;IACrC,WAAW,CAKV;IACD,eAAe,CAIL;IAEnB,UAAU,GAAoB,EAAE,CAAC;IACxB,mBAAmB,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC;IAC3C,kBAAkB,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC;IACnD,gBAAgB,CAA6B;IA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,SAAS,CAAC;gBAE5C,WAAW,EAAE,WAAW;IAapC,MAAM,CAAC,aAAa,CAAC,WAAW,EAAE,WAAW,GAAG,qBAAqB;IAUrE,YAAY,CAAC,GAAG,EAAE,SAAS,GAAG,SAAS,GAAG,IAAI;IAO7C,gBAAgB,CAAC,SAAS,EAAE,SAAS,GAAG,WAAW,CAAC,IAAI,CAAC;CAwE3D"}
1
+ {"version":3,"file":"DataSpacePreviewState.d.ts","sourceRoot":"","sources":["../../../src/stores/studio/DataSpacePreviewState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,oBAAoB,EAEpB,KAAK,WAAW,EACjB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EACL,KAAK,WAAW,EAEhB,WAAW,EAEZ,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2FAA2F,CAAC;AAG3H,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAGlE,qBAAa,qBAAsB,SAAQ,oBAAoB;IAC7D,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAElC,QAAQ,CAAC,kBAAkB,cAAwB;IAEnD,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAClC,oBAAoB,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;gBAE5C,WAAW,EAAE,WAAW;IAapC,MAAM,CAAC,aAAa,CAAC,WAAW,EAAE,WAAW,GAAG,qBAAqB;IAUrE,YAAY,CAAC,GAAG,EAAE,SAAS,GAAG,SAAS,GAAG,IAAI;IAO7C,gBAAgB,CAAC,SAAS,EAAE,SAAS,GAAG,WAAW,CAAC,IAAI,CAAC;CA0E3D"}
@@ -18,6 +18,7 @@ import { guaranteeNonNullable, ActionState, assertErrorThrown, } from '@finos/le
18
18
  import { action, flow, makeObservable, observable } from 'mobx';
19
19
  import { DSL_DataSpace_getGraphManagerExtension } from '../../graphManager/protocol/pure/DSL_DataSpace_PureGraphManagerExtension.js';
20
20
  import { DataSpaceViewerState } from '../DataSpaceViewerState.js';
21
+ import { LiveGraphData } from '@finos/legend-graph';
21
22
  export class DataSpacePreviewState extends EditorExtensionState {
22
23
  editorStore;
23
24
  loadDataSpaceState = ActionState.create();
@@ -57,6 +58,7 @@ export class DataSpacePreviewState extends EditorExtensionState {
57
58
  .map((element) => this.editorStore.graphManagerState.graphManager.elementToEntity(element))
58
59
  .concat(this.editorStore.graphManagerState.graph.dependencyManager.allOwnElements.map((element) => this.editorStore.graphManagerState.graphManager.elementToEntity(element))), undefined, this.loadDataSpaceState));
59
60
  this.dataSpaceViewerState = new DataSpaceViewerState(this.editorStore.applicationStore, this.editorStore.graphManagerState, groupId, artifactId, versionId, analysisResult, {
61
+ retriveGraphData: () => new LiveGraphData(this.editorStore.graphManagerState.graph),
60
62
  viewProject: () => {
61
63
  this.editorStore.applicationStore.notificationService.notifyWarning('This feature is not supported in preview mode');
62
64
  },
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpacePreviewState.js","sourceRoot":"","sources":["../../../src/stores/studio/DataSpacePreviewState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,oBAAoB,EACpB,UAAU,GAEX,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAEL,oBAAoB,EACpB,WAAW,EACX,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGhE,OAAO,EAAE,sCAAsC,EAAE,MAAM,6EAA6E,CAAC;AACrI,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,MAAM,OAAO,qBAAsB,SAAQ,oBAAoB;IACpD,WAAW,CAAc;IAEzB,kBAAkB,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC;IAEnD,SAAS,CAAyB;IAClC,oBAAoB,CAAoC;IAExD,YAA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CAAC,SAAS,CAAC,CAAC;SAC/C;IACH,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-extension-dsl-data-space",
3
- "version": "9.2.0",
3
+ "version": "9.2.1",
4
4
  "description": "Legend extension for Data Space DSL",
5
5
  "keywords": [
6
6
  "legend",
@@ -47,17 +47,17 @@
47
47
  "@ag-grid-community/core": "29.2.0",
48
48
  "@ag-grid-community/react": "29.2.0",
49
49
  "@ag-grid-community/styles": "29.2.0",
50
- "@finos/legend-application": "13.0.7",
51
- "@finos/legend-application-query": "11.0.7",
52
- "@finos/legend-application-studio": "23.1.3",
53
- "@finos/legend-art": "5.0.40",
54
- "@finos/legend-extension-dsl-diagram": "7.1.47",
55
- "@finos/legend-graph": "26.0.0",
56
- "@finos/legend-query-builder": "2.0.0",
57
- "@finos/legend-server-depot": "4.4.10",
50
+ "@finos/legend-application": "13.0.8",
51
+ "@finos/legend-application-query": "11.0.8",
52
+ "@finos/legend-application-studio": "23.1.4",
53
+ "@finos/legend-art": "5.0.41",
54
+ "@finos/legend-extension-dsl-diagram": "7.1.48",
55
+ "@finos/legend-graph": "26.0.1",
56
+ "@finos/legend-query-builder": "2.0.1",
57
+ "@finos/legend-server-depot": "4.4.11",
58
58
  "@finos/legend-shared": "8.0.4",
59
- "@finos/legend-storage": "3.0.44",
60
- "@types/react": "18.0.32",
59
+ "@finos/legend-storage": "3.0.45",
60
+ "@types/react": "18.0.33",
61
61
  "mobx": "6.9.0",
62
62
  "mobx-react-lite": "3.4.3",
63
63
  "react": "18.2.0",
@@ -65,7 +65,7 @@
65
65
  "serializr": "3.0.2"
66
66
  },
67
67
  "devDependencies": {
68
- "@finos/legend-dev-utils": "2.0.49",
68
+ "@finos/legend-dev-utils": "2.0.50",
69
69
  "@jest/globals": "29.5.0",
70
70
  "cross-env": "7.0.3",
71
71
  "eslint": "8.37.0",