@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
@@ -15,7 +15,12 @@
15
15
  */
16
16
 
17
17
  import type { ClassView } from '@finos/legend-extension-dsl-diagram';
18
- import type { Class, GraphManagerState } from '@finos/legend-graph';
18
+ import {
19
+ GraphDataWithOrigin,
20
+ type Class,
21
+ type GraphManagerState,
22
+ LegendSDLC,
23
+ } from '@finos/legend-graph';
19
24
  import {
20
25
  type StoredEntity,
21
26
  type DepotServerClient,
@@ -192,6 +197,14 @@ export class DataSpaceAdvancedSearchState {
192
197
  dataSpace.versionId,
193
198
  analysisResult,
194
199
  {
200
+ retriveGraphData: () =>
201
+ new GraphDataWithOrigin(
202
+ new LegendSDLC(
203
+ dataSpace.groupId,
204
+ dataSpace.artifactId,
205
+ dataSpace.versionId,
206
+ ),
207
+ ),
195
208
  viewProject: this.viewProject,
196
209
  viewSDLCProject: this.viewSDLCProject,
197
210
  onDiagramClassDoubleClick: (classView: ClassView): void => {
@@ -31,6 +31,7 @@ import type { DataSpace } from '../../graph/metamodel/pure/model/packageableElem
31
31
  import type { DataSpaceAnalysisResult } from '../../graphManager/action/analytics/DataSpaceAnalysis.js';
32
32
  import { DSL_DataSpace_getGraphManagerExtension } from '../../graphManager/protocol/pure/DSL_DataSpace_PureGraphManagerExtension.js';
33
33
  import { DataSpaceViewerState } from '../DataSpaceViewerState.js';
34
+ import { LiveGraphData } from '@finos/legend-graph';
34
35
 
35
36
  export class DataSpacePreviewState extends EditorExtensionState {
36
37
  readonly editorStore: EditorStore;
@@ -116,6 +117,8 @@ export class DataSpacePreviewState extends EditorExtensionState {
116
117
  versionId,
117
118
  analysisResult,
118
119
  {
120
+ retriveGraphData: () =>
121
+ new LiveGraphData(this.editorStore.graphManagerState.graph),
119
122
  viewProject: () => {
120
123
  this.editorStore.applicationStore.notificationService.notifyWarning(
121
124
  'This feature is not supported in preview mode',
package/tsconfig.json CHANGED
@@ -57,6 +57,7 @@
57
57
  "./src/graphManager/protocol/pure/v1/transformation/pureGraph/V1_DSL_DataSpace_GraphBuilderHelper.ts",
58
58
  "./src/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.ts",
59
59
  "./src/stores/DSL_DataSpace_LegendApplicationPlugin_Extension.ts",
60
+ "./src/stores/DataSpaceViewerDataAccessState.ts",
60
61
  "./src/stores/DataSpaceViewerState.ts",
61
62
  "./src/stores/query/DataSpaceAdvancedSearchState.ts",
62
63
  "./src/stores/query/DataSpaceInfo.ts",