@finos/legend-extension-dsl-data-space 10.0.6 → 10.0.8

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 (67) hide show
  1. package/lib/components/DataSpaceDataAccess.d.ts +0 -1
  2. package/lib/components/DataSpaceDataAccess.d.ts.map +1 -1
  3. package/lib/components/DataSpaceDescription.d.ts +0 -1
  4. package/lib/components/DataSpaceDescription.d.ts.map +1 -1
  5. package/lib/components/DataSpaceDescription.js +1 -1
  6. package/lib/components/DataSpaceDescription.js.map +1 -1
  7. package/lib/components/DataSpaceDiagramViewer.d.ts +0 -1
  8. package/lib/components/DataSpaceDiagramViewer.d.ts.map +1 -1
  9. package/lib/components/DataSpaceDiagramViewer.js +1 -1
  10. package/lib/components/DataSpaceDiagramViewer.js.map +1 -1
  11. package/lib/components/DataSpaceExecutionContextViewer.d.ts +0 -1
  12. package/lib/components/DataSpaceExecutionContextViewer.d.ts.map +1 -1
  13. package/lib/components/DataSpaceInfoPanel.d.ts +0 -1
  14. package/lib/components/DataSpaceInfoPanel.d.ts.map +1 -1
  15. package/lib/components/DataSpaceModelsDocumentation.d.ts +0 -1
  16. package/lib/components/DataSpaceModelsDocumentation.d.ts.map +1 -1
  17. package/lib/components/DataSpaceModelsDocumentation.js +1 -1
  18. package/lib/components/DataSpaceModelsDocumentation.js.map +1 -1
  19. package/lib/components/DataSpaceQuickStart.d.ts +0 -1
  20. package/lib/components/DataSpaceQuickStart.d.ts.map +1 -1
  21. package/lib/components/DataSpaceQuickStart.js +1 -1
  22. package/lib/components/DataSpaceQuickStart.js.map +1 -1
  23. package/lib/components/DataSpaceSupportPanel.d.ts +0 -1
  24. package/lib/components/DataSpaceSupportPanel.d.ts.map +1 -1
  25. package/lib/components/DataSpaceViewer.d.ts +0 -1
  26. package/lib/components/DataSpaceViewer.d.ts.map +1 -1
  27. package/lib/components/DataSpaceViewerActivityBar.d.ts +0 -1
  28. package/lib/components/DataSpaceViewerActivityBar.d.ts.map +1 -1
  29. package/lib/components/DataSpaceWiki.d.ts +0 -1
  30. package/lib/components/DataSpaceWiki.d.ts.map +1 -1
  31. package/lib/components/DataSpaceWiki.js +14 -5
  32. package/lib/components/DataSpaceWiki.js.map +1 -1
  33. package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.js +2 -2
  34. package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.js.map +1 -1
  35. package/lib/components/query/DataSpaceAdvancedSearchModal.d.ts +0 -1
  36. package/lib/components/query/DataSpaceAdvancedSearchModal.d.ts.map +1 -1
  37. package/lib/components/query/DataSpaceQueryCreator.d.ts +0 -1
  38. package/lib/components/query/DataSpaceQueryCreator.d.ts.map +1 -1
  39. package/lib/components/query/DataSpaceQuerySetup.d.ts +0 -1
  40. package/lib/components/query/DataSpaceQuerySetup.d.ts.map +1 -1
  41. package/lib/components/studio/DataSpacePreviewAction.d.ts +0 -1
  42. package/lib/components/studio/DataSpacePreviewAction.d.ts.map +1 -1
  43. package/lib/index.css +2 -2
  44. package/lib/index.css.map +1 -1
  45. package/lib/package.json +4 -4
  46. package/lib/stores/DataSpaceViewerState.d.ts +11 -6
  47. package/lib/stores/DataSpaceViewerState.d.ts.map +1 -1
  48. package/lib/stores/DataSpaceViewerState.js +96 -24
  49. package/lib/stores/DataSpaceViewerState.js.map +1 -1
  50. package/lib/stores/query/DataSpaceQueryCreatorStore.d.ts +5 -3
  51. package/lib/stores/query/DataSpaceQueryCreatorStore.d.ts.map +1 -1
  52. package/lib/stores/query/DataSpaceQueryCreatorStore.js +4 -2
  53. package/lib/stores/query/DataSpaceQueryCreatorStore.js.map +1 -1
  54. package/lib/stores/query/DataSpaceQuerySetupStore.d.ts +4 -2
  55. package/lib/stores/query/DataSpaceQuerySetupStore.d.ts.map +1 -1
  56. package/lib/stores/query/DataSpaceQuerySetupStore.js +1 -1
  57. package/lib/stores/query/DataSpaceQuerySetupStore.js.map +1 -1
  58. package/package.json +16 -16
  59. package/src/components/DataSpaceDescription.tsx +1 -1
  60. package/src/components/DataSpaceDiagramViewer.tsx +1 -1
  61. package/src/components/DataSpaceModelsDocumentation.tsx +1 -1
  62. package/src/components/DataSpaceQuickStart.tsx +14 -12
  63. package/src/components/DataSpaceWiki.tsx +16 -5
  64. package/src/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.tsx +2 -2
  65. package/src/stores/DataSpaceViewerState.ts +135 -28
  66. package/src/stores/query/DataSpaceQueryCreatorStore.ts +11 -5
  67. package/src/stores/query/DataSpaceQuerySetupStore.ts +5 -2
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceQueryCreatorStore.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQueryCreatorStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,0BAA0B,EAC1B,gBAAgB,EAChB,cAAc,EACd,mCAAmC,GAGpC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAGhB,wBAAwB,EACxB,4BAA4B,GAC7B,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,IAAI,GACL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,4BAA4B,GAC7B,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,yDAAyD,CAAC;AACvF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E,OAAO,EAAE,kCAAkC,EAAE,MAAM,4DAA4D,CAAC;AAKhH,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAC7C,aAAqB,EACH,EAAE;IACpB,MAAM,WAAW,GAAG,IAAI,gBAAgB,EAAE,CAAC;IAC3C,WAAW,CAAC,OAAO,GAAG,kBAAkB,CAAC;IACzC,WAAW,CAAC,GAAG,GAAG,4BAA4B,CAAC;IAC/C,WAAW,CAAC,KAAK,GAAG,aAAa,CAAC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AAU,CAAC;gBACnC,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;gBACjC,KAAK,CAAC,YAAY,GAAG;oBACnB,+BAA+B,CAAC,IAAI,CAAC,aAAa,CAAC;oBACnD,2BAA2B,CACzB,oBAAoB,CAAC,IAAI,CAAC,iBAAiB,EAAE,KAAK,EAAE,IAAI,CAAC,CAC1D;iBACF,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"DataSpaceQueryCreatorStore.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQueryCreatorStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,0BAA0B,EAC1B,gBAAgB,EAChB,cAAc,EACd,mCAAmC,GAIpC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAGhB,wBAAwB,EACxB,4BAA4B,GAC7B,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,IAAI,GACL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,4BAA4B,GAC7B,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,yDAAyD,CAAC;AACvF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E,OAAO,EAAE,kCAAkC,EAAE,MAAM,4DAA4D,CAAC;AAKhH,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAC7C,aAAqB,EACH,EAAE;IACpB,MAAM,WAAW,GAAG,IAAI,gBAAgB,EAAE,CAAC;IAC3C,WAAW,CAAC,OAAO,GAAG,kBAAkB,CAAC;IACzC,WAAW,CAAC,GAAG,GAAG,4BAA4B,CAAC;IAC/C,WAAW,CAAC,KAAK,GAAG,aAAa,CAAC;IAClC,OAAO,WAAW,CAAC;AACrB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,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,CAAC,OAAO,CAAC;gBAC7B,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;gBACnC,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;gBACjC,KAAK,CAAC,YAAY,GAAG;oBACnB,+BAA+B,CAAC,IAAI,CAAC,aAAa,CAAC;oBACnD,2BAA2B,CACzB,oBAAoB,CAAC,IAAI,CAAC,iBAAiB,EAAE,KAAK,EAAE,IAAI,CAAC,CAC1D;iBACF,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,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 { QueryEditorStore, type QueryExportConfiguration } from '@finos/legend-application-query';
16
+ import { QueryEditorStore, type QueryPersistConfiguration } from '@finos/legend-application-query';
17
17
  import { type DepotServerClient } from '@finos/legend-server-depot';
18
18
  import type { GraphManagerState, RawLambda } from '@finos/legend-graph';
19
19
  import { type GenericLegendApplicationStore } from '@finos/legend-application';
@@ -43,7 +43,9 @@ export declare class DataSpaceQuerySetupStore extends QueryEditorStore {
43
43
  get isViewProjectActionDisabled(): boolean;
44
44
  get isSaveActionDisabled(): boolean;
45
45
  getProjectInfo(): ProjectGAVCoordinates;
46
- getExportConfiguration(lambda: RawLambda): Promise<QueryExportConfiguration>;
46
+ getExportConfiguration(lambda: RawLambda, options?: {
47
+ update?: boolean | undefined;
48
+ }): Promise<QueryPersistConfiguration>;
47
49
  initializeQueryBuilderState(): Promise<QueryBuilderState>;
48
50
  buildGraph(): GeneratorFn<void>;
49
51
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceQuerySetupStore.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQuerySetupStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,gBAAgB,EAChB,KAAK,wBAAwB,EAC9B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAE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AC3B,IAAI,EACT,eAAe,EAAE,CACf,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,GAAG,SAAS,KAC3B,OAAO,CAAC,IAAI,CAAC;IAkBpB,IAAa,mBAAmB,IAAI,OAAO,CAE1C;IAED,IAAa,gBAAgB,IAAI,MAAM,GAAG,SAAS,CAElD;IAED,uBAAuB,IAAI,IAAI;IAY/B,uBAAuB,IAAI,IAAI;IAI9B,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC;CAsBvD;AAED,qBAAa,wBAAyB,SAAQ,gBAAgB;IAC5D,IAAa,2BAA2B,IAAI,OAAO,CAElD;IAED,IAAa,oBAAoB,IAAI,OAAO,CAE3C;IAED,cAAc,IAAI,qBAAqB;IAIvC,sBAAsB,CACpB,MAAM,EAAE,SAAS,EACjB,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;KAAE,GACzC,OAAO,CAAC,yBAAyB,CAAC;IAI/B,2BAA2B,IAAI,OAAO,CAAC,iBAAiB,CAAC;IAkCrD,UAAU,IAAI,WAAW,CAAC,IAAI,CAAC;CAG1C"}
@@ -91,7 +91,7 @@ export class DataSpaceQuerySetupStore extends QueryEditorStore {
91
91
  getProjectInfo() {
92
92
  throw new UnsupportedOperationError();
93
93
  }
94
- getExportConfiguration(lambda) {
94
+ getExportConfiguration(lambda, options) {
95
95
  throw new UnsupportedOperationError();
96
96
  }
97
97
  async initializeQueryBuilderState() {
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceQuerySetupStore.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQuerySetupStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,gBAAgB,GAEjB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,UAAU,GAGX,MAAM,4BAA4B,CA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,CAAC,aAAa,CACrD,kEAAkE,CACnE,CAAC;aACH;QACH,CAAC,EACD,wBAAwB,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAC/C,4BAA4B,CAC1B,IAAI,CAAC,gBAAgB,EACrB,IAAI,CAAC,iBAAiB,CACvB,CACF,CAAC;QAEF,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAEQ,CAAC,UAAU;QAClB,aAAa;IACf,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-extension-dsl-data-space",
3
- "version": "10.0.6",
3
+ "version": "10.0.8",
4
4
  "description": "Legend extension for Data Space DSL",
5
5
  "keywords": [
6
6
  "legend",
@@ -44,18 +44,18 @@
44
44
  "test:watch": "jest --watch"
45
45
  },
46
46
  "dependencies": {
47
- "@finos/legend-application": "15.0.3",
48
- "@finos/legend-application-query": "12.0.6",
49
- "@finos/legend-application-studio": "24.1.0",
50
- "@finos/legend-art": "7.0.4",
51
- "@finos/legend-extension-dsl-diagram": "8.0.6",
52
- "@finos/legend-graph": "28.1.0",
53
- "@finos/legend-lego": "0.1.9",
54
- "@finos/legend-query-builder": "3.0.6",
55
- "@finos/legend-server-depot": "6.0.1",
56
- "@finos/legend-shared": "10.0.1",
57
- "@finos/legend-storage": "3.0.51",
58
- "@types/react": "18.0.37",
47
+ "@finos/legend-application": "15.0.5",
48
+ "@finos/legend-application-query": "12.0.8",
49
+ "@finos/legend-application-studio": "24.1.2",
50
+ "@finos/legend-art": "7.0.6",
51
+ "@finos/legend-extension-dsl-diagram": "8.0.8",
52
+ "@finos/legend-graph": "28.1.2",
53
+ "@finos/legend-lego": "0.1.11",
54
+ "@finos/legend-query-builder": "3.0.8",
55
+ "@finos/legend-server-depot": "6.0.3",
56
+ "@finos/legend-shared": "10.0.2",
57
+ "@finos/legend-storage": "3.0.52",
58
+ "@types/react": "18.2.0",
59
59
  "mobx": "6.9.0",
60
60
  "mobx-react-lite": "3.4.3",
61
61
  "react": "18.2.0",
@@ -63,14 +63,14 @@
63
63
  "serializr": "3.0.2"
64
64
  },
65
65
  "devDependencies": {
66
- "@finos/legend-dev-utils": "2.0.55",
66
+ "@finos/legend-dev-utils": "2.0.57",
67
67
  "@jest/globals": "29.5.0",
68
68
  "cross-env": "7.0.3",
69
- "eslint": "8.38.0",
69
+ "eslint": "8.39.0",
70
70
  "jest": "29.5.0",
71
71
  "npm-run-all": "4.1.5",
72
72
  "rimraf": "5.0.0",
73
- "sass": "1.62.0",
73
+ "sass": "1.62.1",
74
74
  "typescript": "5.0.4"
75
75
  },
76
76
  "peerDependencies": {
@@ -69,7 +69,7 @@ export const DataSpaceDescription = observer(
69
69
  </div>
70
70
  )}
71
71
  {analysisResult.description === undefined && (
72
- <DataSpaceWikiPlaceholder message="No description provided" />
72
+ <DataSpaceWikiPlaceholder message="(not specified)" />
73
73
  )}
74
74
  </div>
75
75
  </div>
@@ -222,7 +222,7 @@ export const DataSpaceDiagramViewer = observer(
222
222
  </div>
223
223
  )}
224
224
  {analysisResult.diagrams.length <= 0 && (
225
- <DataSpaceWikiPlaceholder message="No diagrams provided" />
225
+ <DataSpaceWikiPlaceholder message="(not specified)" />
226
226
  )}
227
227
  </div>
228
228
  </div>
@@ -1111,7 +1111,7 @@ export const DataSpaceModelsDocumentation = observer(
1111
1111
  </div>
1112
1112
  )}
1113
1113
  {documentationEntries.length === 0 && (
1114
- <DataSpaceWikiPlaceholder message="No documentation provided" />
1114
+ <DataSpaceWikiPlaceholder message="(not specified)" />
1115
1115
  )}
1116
1116
  </div>
1117
1117
  </div>
@@ -432,19 +432,21 @@ export const DataSpaceQuickStart = observer(
432
432
  )}
433
433
  </div>
434
434
  <div className="data-space__viewer__wiki__section__content">
435
- <div className="data-space__viewer__quickstart">
436
- {analysisResult.executables.map((executable) => (
437
- <DataSpaceExecutableAnalysisResultView
438
- key={executable.uuid}
439
- dataSpaceViewerState={dataSpaceViewerState}
440
- executableAnalysisResult={executable}
441
- />
442
- ))}
443
- </div>
435
+ {analysisResult.executables.length !== 0 && (
436
+ <div className="data-space__viewer__quickstart">
437
+ {analysisResult.executables.map((executable) => (
438
+ <DataSpaceExecutableAnalysisResultView
439
+ key={executable.uuid}
440
+ dataSpaceViewerState={dataSpaceViewerState}
441
+ executableAnalysisResult={executable}
442
+ />
443
+ ))}
444
+ </div>
445
+ )}
446
+ {analysisResult.executables.length === 0 && (
447
+ <DataSpaceWikiPlaceholder message="(not specified)" />
448
+ )}
444
449
  </div>
445
- {analysisResult.executables.length === 0 && (
446
- <DataSpaceWikiPlaceholder message="No quick start provided" />
447
- )}
448
450
  </div>
449
451
  );
450
452
  },
@@ -29,15 +29,26 @@ export const DataSpaceWiki = observer(
29
29
 
30
30
  useEffect(() => {
31
31
  if (
32
- dataSpaceViewerState.layoutState.wikiNavigationCommand &&
33
- dataSpaceViewerState.layoutState.isAllWikiPageFullyRendered
32
+ dataSpaceViewerState.layoutState.wikiPageNavigationCommand &&
33
+ dataSpaceViewerState.layoutState.isWikiPageFullyRendered
34
34
  ) {
35
- dataSpaceViewerState.layoutState.navigateWikiAnchor();
35
+ dataSpaceViewerState.layoutState.navigateWikiPageAnchor();
36
36
  }
37
37
  }, [
38
38
  dataSpaceViewerState,
39
- dataSpaceViewerState.layoutState.wikiNavigationCommand,
40
- dataSpaceViewerState.layoutState.isAllWikiPageFullyRendered,
39
+ dataSpaceViewerState.layoutState.wikiPageNavigationCommand,
40
+ dataSpaceViewerState.layoutState.isWikiPageFullyRendered,
41
+ ]);
42
+
43
+ useEffect(() => {
44
+ if (dataSpaceViewerState.layoutState.isWikiPageFullyRendered) {
45
+ dataSpaceViewerState.layoutState.registerWikiPageScrollObserver();
46
+ }
47
+ return () =>
48
+ dataSpaceViewerState.layoutState.unregisterWikiPageScrollObserver();
49
+ }, [
50
+ dataSpaceViewerState,
51
+ dataSpaceViewerState.layoutState.isWikiPageFullyRendered,
41
52
  ]);
42
53
 
43
54
  return (
@@ -136,7 +136,7 @@ export class DSL_DataSpace_LegendQueryApplicationPlugin extends LegendQueryAppli
136
136
  ),
137
137
  (dataSpaceInfo: DataSpaceInfo) => {
138
138
  if (dataSpaceInfo.defaultExecutionContext) {
139
- const persistQuery = async (): Promise<void> => {
139
+ const createQuery = async (): Promise<void> => {
140
140
  // prepare the new query to save
141
141
  const _query = new Query();
142
142
  _query.name = query.name;
@@ -211,7 +211,7 @@ export class DSL_DataSpace_LegendQueryApplicationPlugin extends LegendQueryAppli
211
211
  : 'Create new query',
212
212
  type: ActionAlertActionType.PROCEED_WITH_CAUTION,
213
213
  handler: () => {
214
- persistQuery().catch(
214
+ createQuery().catch(
215
215
  editorStore.applicationStore.alertUnhandledError,
216
216
  );
217
217
  },
@@ -30,6 +30,7 @@ import type {
30
30
  PackageableRuntime,
31
31
  } from '@finos/legend-graph';
32
32
  import {
33
+ getNonNullableEnry,
33
34
  getNullableEntry,
34
35
  getNullableFirstEntry,
35
36
  guaranteeNonNullable,
@@ -75,6 +76,8 @@ const generateAnchorChunk = (text: string): string =>
75
76
  );
76
77
  export const generateAnchorForActivity = (activity: string): string =>
77
78
  generateAnchorChunk(activity);
79
+ export const extractActivityFromAnchor = (anchor: string): string =>
80
+ decodeURIComponent(anchor);
78
81
  export const generateAnchorForQuickStart = (
79
82
  quickStart: DataSpaceExecutableAnalysisResult,
80
83
  ): string =>
@@ -104,7 +107,6 @@ const DATA_SPACE_WIKI_PAGE_ANCHORS = DATA_SPACE_WIKI_PAGE_SECTIONS.map(
104
107
 
105
108
  type DataSpacePageNavigationCommand = {
106
109
  anchor: string;
107
- useSmoothScroll?: boolean;
108
110
  };
109
111
 
110
112
  class DataSpaceLayoutState {
@@ -117,25 +119,35 @@ class DataSpaceLayoutState {
117
119
  header?: HTMLElement | undefined;
118
120
  isTopScrollerVisible = false;
119
121
 
120
- wikiPageAnchorIndex = new Map<string, HTMLElement>();
121
- wikiNavigationCommand?: DataSpacePageNavigationCommand | undefined;
122
+ private wikiPageAnchorIndex = new Map<string, HTMLElement>();
123
+ wikiPageNavigationCommand?: DataSpacePageNavigationCommand | undefined;
124
+ private wikiPageVisibleAnchors: string[] = [];
125
+ private wikiPageScrollIntersectionObserver?: IntersectionObserver | undefined;
122
126
 
123
127
  constructor(dataSpaceViewerState: DataSpaceViewerState) {
124
- makeObservable(this, {
128
+ makeObservable<
129
+ DataSpaceLayoutState,
130
+ | 'wikiPageAnchorIndex'
131
+ | 'wikiPageVisibleAnchors'
132
+ | 'updatePageVisibleAnchors'
133
+ >(this, {
125
134
  currentNavigationZone: observable,
126
135
  isExpandedModeEnabled: observable,
127
136
  isTopScrollerVisible: observable,
128
137
  wikiPageAnchorIndex: observable,
138
+ wikiPageVisibleAnchors: observable,
129
139
  frame: observable.ref,
130
- wikiNavigationCommand: observable.ref,
131
- isAllWikiPageFullyRendered: computed,
140
+ wikiPageNavigationCommand: observable.ref,
141
+ isWikiPageFullyRendered: computed,
142
+ registerWikiPageScrollObserver: action,
132
143
  setCurrentNavigationZone: action,
133
144
  enableExpandedMode: action,
134
145
  setFrame: action,
135
146
  setTopScrollerVisible: action,
136
147
  setWikiPageAnchor: action,
137
148
  unsetWikiPageAnchor: action,
138
- setWikiAnchorToNavigate: action,
149
+ setWikiPageAnchorToNavigate: action,
150
+ updatePageVisibleAnchors: action,
139
151
  });
140
152
 
141
153
  this.dataSpaceViewerState = dataSpaceViewerState;
@@ -145,8 +157,9 @@ class DataSpaceLayoutState {
145
157
  this.currentNavigationZone = val;
146
158
  }
147
159
 
148
- get isAllWikiPageFullyRendered(): boolean {
160
+ get isWikiPageFullyRendered(): boolean {
149
161
  return (
162
+ Boolean(this.frame) &&
150
163
  DATA_SPACE_WIKI_PAGE_SECTIONS.includes(
151
164
  this.dataSpaceViewerState.currentActivity,
152
165
  ) &&
@@ -157,6 +170,98 @@ class DataSpaceLayoutState {
157
170
  );
158
171
  }
159
172
 
173
+ registerWikiPageScrollObserver(): void {
174
+ if (this.frame && this.isWikiPageFullyRendered) {
175
+ const wikiPageIntersectionObserver = new IntersectionObserver(
176
+ (entries, observer) => {
177
+ const anchorsWithVisibilityChanged = entries
178
+ .map((entry) => {
179
+ for (const [key, element] of this.wikiPageAnchorIndex.entries()) {
180
+ if (element === entry.target) {
181
+ return { key, isIntersecting: entry.isIntersecting };
182
+ }
183
+ }
184
+ return undefined;
185
+ })
186
+ .filter(isNonNullable);
187
+ anchorsWithVisibilityChanged.forEach((entry) => {
188
+ this.updatePageVisibleAnchors(entry.key, entry.isIntersecting);
189
+ });
190
+ // NOTE: sync scroll with menu/address is quite a delicate piece of work
191
+ // as it interferes with programatic scroll operations we do elsewhere.
192
+ // This is particularly bad when we do a programatic `smooth` scroll, which
193
+ // mimic user scrolling behavior and would tangle up with this observer
194
+ // Since currently, there's no good mechanism to detect scroll end event, and as such,
195
+ // there is no good way to temporarily disable this logic while doing the programmatic
196
+ // smooth scroll as such, we avoid supporting programatic smooth scrolling for now
197
+ // See https://github.com/w3c/csswg-drafts/issues/3744
198
+ // See https://developer.mozilla.org/en-US/docs/Web/API/Document/scrollend_event
199
+ if (
200
+ // if current navigation zone is not set, do not update zone
201
+ this.currentNavigationZone === '' ||
202
+ // if there is no visible anchors, do not update zone
203
+ !this.wikiPageVisibleAnchors.length ||
204
+ // if some of the current visible anchors match or is parent section of the current
205
+ // navigation zone, do not update zone
206
+ this.wikiPageVisibleAnchors.some(
207
+ (visibleAnchor) =>
208
+ this.currentNavigationZone === visibleAnchor ||
209
+ this.currentNavigationZone.startsWith(
210
+ `${visibleAnchor}${NAVIGATION_ZONE_SEPARATOR}`,
211
+ ),
212
+ )
213
+ ) {
214
+ return;
215
+ }
216
+ const anchor = getNonNullableEnry(this.wikiPageVisibleAnchors, 0);
217
+ this.dataSpaceViewerState.syncZoneWithNavigation(anchor);
218
+ const anchorChunks = anchor.split(NAVIGATION_ZONE_SEPARATOR);
219
+ const activity = getNullableFirstEntry(anchorChunks);
220
+ if (activity) {
221
+ this.dataSpaceViewerState.setCurrentActivity(
222
+ extractActivityFromAnchor(
223
+ activity,
224
+ ) as DATA_SPACE_VIEWER_ACTIVITY_MODE,
225
+ );
226
+ }
227
+ },
228
+ {
229
+ root: this.frame,
230
+ threshold: 0.5,
231
+ },
232
+ );
233
+ Array.from(this.wikiPageAnchorIndex.values()).forEach((el) =>
234
+ wikiPageIntersectionObserver.observe(el),
235
+ );
236
+ this.wikiPageScrollIntersectionObserver = wikiPageIntersectionObserver;
237
+ }
238
+ }
239
+
240
+ unregisterWikiPageScrollObserver(): void {
241
+ this.wikiPageScrollIntersectionObserver?.disconnect();
242
+ this.wikiPageScrollIntersectionObserver = undefined;
243
+ this.wikiPageVisibleAnchors = [];
244
+ }
245
+
246
+ private updatePageVisibleAnchors(
247
+ changedAnchor: string,
248
+ isIntersecting: boolean,
249
+ ): void {
250
+ if (isIntersecting) {
251
+ const anchors = this.wikiPageVisibleAnchors.filter(
252
+ (anchor) => changedAnchor !== anchor,
253
+ );
254
+ // NOTE: the newly visible anchors should be the furthest one in
255
+ // the direction of scroll
256
+ anchors.push(changedAnchor);
257
+ this.wikiPageVisibleAnchors = anchors;
258
+ } else {
259
+ this.wikiPageVisibleAnchors = this.wikiPageVisibleAnchors.filter(
260
+ (anchor) => changedAnchor !== anchor,
261
+ );
262
+ }
263
+ }
264
+
160
265
  enableExpandedMode(val: boolean): void {
161
266
  this.isExpandedModeEnabled = val;
162
267
  }
@@ -180,32 +285,39 @@ class DataSpaceLayoutState {
180
285
  this.wikiPageAnchorIndex.delete(anchorKey);
181
286
  }
182
287
 
183
- setWikiAnchorToNavigate(
288
+ setWikiPageAnchorToNavigate(
184
289
  val: DataSpacePageNavigationCommand | undefined,
185
290
  ): void {
186
- this.wikiNavigationCommand = val;
291
+ this.wikiPageNavigationCommand = val;
187
292
  }
188
293
 
189
- navigateWikiAnchor(): void {
190
- if (this.wikiNavigationCommand && this.isAllWikiPageFullyRendered) {
191
- const anchor = this.wikiNavigationCommand.anchor;
294
+ navigateWikiPageAnchor(): void {
295
+ if (
296
+ this.frame &&
297
+ this.wikiPageNavigationCommand &&
298
+ this.isWikiPageFullyRendered
299
+ ) {
300
+ const anchor = this.wikiPageNavigationCommand.anchor;
192
301
  const matchingWikiPageSection = this.wikiPageAnchorIndex.get(anchor);
193
302
  const anchorChunks = anchor.split(NAVIGATION_ZONE_SEPARATOR);
194
303
  if (matchingWikiPageSection) {
195
- this.frame?.scrollTo({
196
- top:
197
- matchingWikiPageSection.offsetTop -
198
- (this.header?.getBoundingClientRect().height ?? 0),
199
- behavior: this.wikiNavigationCommand.useSmoothScroll
200
- ? 'smooth'
201
- : 'auto',
202
- });
304
+ this.frame.scrollTop =
305
+ matchingWikiPageSection.offsetTop -
306
+ (this.header?.getBoundingClientRect().height ?? 0);
203
307
  } else if (
204
308
  getNullableFirstEntry(anchorChunks) ===
205
309
  generateAnchorForActivity(
206
310
  DATA_SPACE_VIEWER_ACTIVITY_MODE.DIAGRAM_VIEWER,
207
311
  )
208
312
  ) {
313
+ this.frame.scrollTop =
314
+ guaranteeNonNullable(
315
+ this.wikiPageAnchorIndex.get(
316
+ generateAnchorForActivity(
317
+ DATA_SPACE_VIEWER_ACTIVITY_MODE.DIAGRAM_VIEWER,
318
+ ),
319
+ ),
320
+ ).offsetTop - (this.header?.getBoundingClientRect().height ?? 0);
209
321
  const matchingDiagram =
210
322
  this.dataSpaceViewerState.dataSpaceAnalysisResult.diagrams.find(
211
323
  (diagram) => generateAnchorForDiagram(diagram) === anchor,
@@ -215,7 +327,7 @@ class DataSpaceLayoutState {
215
327
  }
216
328
  }
217
329
 
218
- this.setWikiAnchorToNavigate(undefined);
330
+ this.setWikiPageAnchorToNavigate(undefined);
219
331
  }
220
332
  }
221
333
  }
@@ -426,13 +538,8 @@ export class DataSpaceViewerState {
426
538
  );
427
539
  if (activityChunk && matchingActivity) {
428
540
  if (DATA_SPACE_WIKI_PAGE_SECTIONS.includes(matchingActivity)) {
429
- this.layoutState.setWikiAnchorToNavigate({
541
+ this.layoutState.setWikiPageAnchorToNavigate({
430
542
  anchor: zone,
431
- // NOTE: if we are already on the wiki page, use smooth scroll to suggest the scrollability of the page
432
- // if we are navigating from a different section, go directly to the section within the page to avoid the wait
433
- useSmoothScroll: DATA_SPACE_WIKI_PAGE_SECTIONS.includes(
434
- this.currentActivity,
435
- ),
436
543
  });
437
544
  }
438
545
  this.setCurrentActivity(matchingActivity);
@@ -22,10 +22,11 @@ import {
22
22
  PackageableElementExplicitReference,
23
23
  type Runtime,
24
24
  type Class,
25
+ type RawLambda,
25
26
  } from '@finos/legend-graph';
26
27
  import {
27
28
  QueryEditorStore,
28
- type QueryExportConfiguration,
29
+ type QueryPersistConfiguration,
29
30
  type LegendQueryApplicationStore,
30
31
  createViewProjectHandler,
31
32
  createViewSDLCProjectHandler,
@@ -236,11 +237,16 @@ export class DataSpaceQueryCreatorStore extends QueryEditorStore {
236
237
  return queryBuilderState;
237
238
  }
238
239
 
239
- async getExportConfiguration(): Promise<QueryExportConfiguration> {
240
+ async getExportConfiguration(
241
+ lambda: RawLambda,
242
+ options?: { update?: boolean | undefined },
243
+ ): Promise<QueryPersistConfiguration> {
240
244
  return {
241
- defaultName: `New Query for ${extractElementNameFromPath(
242
- this.dataSpacePath,
243
- )}[${this.executionContext}]`,
245
+ defaultName: options?.update
246
+ ? `${extractElementNameFromPath(this.dataSpacePath)}`
247
+ : `New Query for ${extractElementNameFromPath(this.dataSpacePath)}[${
248
+ this.executionContext
249
+ }]`,
244
250
  decorator: (query: Query): void => {
245
251
  query.id = uuid();
246
252
  query.groupId = this.groupId;
@@ -18,7 +18,7 @@ import {
18
18
  createViewProjectHandler,
19
19
  createViewSDLCProjectHandler,
20
20
  QueryEditorStore,
21
- type QueryExportConfiguration,
21
+ type QueryPersistConfiguration,
22
22
  } from '@finos/legend-application-query';
23
23
  import {
24
24
  DepotScope,
@@ -163,7 +163,10 @@ export class DataSpaceQuerySetupStore extends QueryEditorStore {
163
163
  throw new UnsupportedOperationError();
164
164
  }
165
165
 
166
- getExportConfiguration(lambda: RawLambda): Promise<QueryExportConfiguration> {
166
+ getExportConfiguration(
167
+ lambda: RawLambda,
168
+ options?: { update?: boolean | undefined },
169
+ ): Promise<QueryPersistConfiguration> {
167
170
  throw new UnsupportedOperationError();
168
171
  }
169
172