@finos/legend-extension-dsl-data-space 9.1.4 → 9.1.6

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 (168) hide show
  1. package/lib/application/studio/DSL_DataSpace_LegendStudioCodeSnippet.d.ts +1 -1
  2. package/lib/application/studio/DSL_DataSpace_LegendStudioCodeSnippet.d.ts.map +1 -1
  3. package/lib/application/studio/DSL_DataSpace_LegendStudioCodeSnippet.js +15 -2
  4. package/lib/application/studio/DSL_DataSpace_LegendStudioCodeSnippet.js.map +1 -1
  5. package/lib/components/DSL_DataSpace_LegendApplicationPlugin.d.ts +0 -4
  6. package/lib/components/DSL_DataSpace_LegendApplicationPlugin.d.ts.map +1 -1
  7. package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js +0 -3
  8. package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js.map +1 -1
  9. package/lib/components/DataSpaceDataAccess.d.ts +23 -0
  10. package/lib/components/DataSpaceDataAccess.d.ts.map +1 -0
  11. package/lib/components/DataSpaceDataAccess.js +34 -0
  12. package/lib/components/DataSpaceDataAccess.js.map +1 -0
  13. package/lib/components/DataSpaceDescription.d.ts +23 -0
  14. package/lib/components/DataSpaceDescription.d.ts.map +1 -0
  15. package/lib/components/DataSpaceDescription.js +26 -0
  16. package/lib/components/DataSpaceDescription.js.map +1 -0
  17. package/lib/components/DataSpaceDiagramViewer.d.ts +23 -0
  18. package/lib/components/DataSpaceDiagramViewer.d.ts.map +1 -0
  19. package/lib/components/DataSpaceDiagramViewer.js +75 -0
  20. package/lib/components/DataSpaceDiagramViewer.js.map +1 -0
  21. package/lib/components/DataSpaceExecutionContextViewer.d.ts +23 -0
  22. package/lib/components/DataSpaceExecutionContextViewer.d.ts.map +1 -0
  23. package/lib/components/DataSpaceExecutionContextViewer.js +58 -0
  24. package/lib/components/DataSpaceExecutionContextViewer.js.map +1 -0
  25. package/lib/components/DataSpaceInfoPanel.d.ts +23 -0
  26. package/lib/components/DataSpaceInfoPanel.d.ts.map +1 -0
  27. package/lib/components/DataSpaceInfoPanel.js +38 -0
  28. package/lib/components/DataSpaceInfoPanel.js.map +1 -0
  29. package/lib/components/DataSpaceMarkdownTextViewer.d.ts +20 -0
  30. package/lib/components/DataSpaceMarkdownTextViewer.d.ts.map +1 -0
  31. package/lib/components/DataSpaceMarkdownTextViewer.js +25 -0
  32. package/lib/components/DataSpaceMarkdownTextViewer.js.map +1 -0
  33. package/lib/components/DataSpaceModelsDocumentation.d.ts +23 -0
  34. package/lib/components/DataSpaceModelsDocumentation.d.ts.map +1 -0
  35. package/lib/components/DataSpaceModelsDocumentation.js +58 -0
  36. package/lib/components/DataSpaceModelsDocumentation.js.map +1 -0
  37. package/lib/components/{studio/DataSpacePreview.d.ts → DataSpacePlaceholder.d.ts} +4 -4
  38. package/lib/components/DataSpacePlaceholder.d.ts.map +1 -0
  39. package/lib/components/DataSpacePlaceholder.js +18 -0
  40. package/lib/components/DataSpacePlaceholder.js.map +1 -0
  41. package/lib/components/DataSpaceQuickStart.d.ts +23 -0
  42. package/lib/components/DataSpaceQuickStart.d.ts.map +1 -0
  43. package/lib/components/DataSpaceQuickStart.js +108 -0
  44. package/lib/components/DataSpaceQuickStart.js.map +1 -0
  45. package/lib/components/DataSpaceSupportPanel.d.ts +23 -0
  46. package/lib/components/DataSpaceSupportPanel.d.ts.map +1 -0
  47. package/lib/components/DataSpaceSupportPanel.js +40 -0
  48. package/lib/components/DataSpaceSupportPanel.js.map +1 -0
  49. package/lib/components/DataSpaceViewer.d.ts.map +1 -1
  50. package/lib/components/DataSpaceViewer.js +40 -276
  51. package/lib/components/DataSpaceViewer.js.map +1 -1
  52. package/lib/components/DataSpaceViewerActivityBar.d.ts +23 -0
  53. package/lib/components/DataSpaceViewerActivityBar.d.ts.map +1 -0
  54. package/lib/components/DataSpaceViewerActivityBar.js +105 -0
  55. package/lib/components/DataSpaceViewerActivityBar.js.map +1 -0
  56. package/lib/components/DataSpaceWiki.d.ts +23 -0
  57. package/lib/components/DataSpaceWiki.d.ts.map +1 -0
  58. package/lib/components/DataSpaceWiki.js +12 -0
  59. package/lib/components/DataSpaceWiki.js.map +1 -0
  60. package/lib/components/query/DataSpaceAdvancedSearchModal.js +1 -1
  61. package/lib/components/query/DataSpaceAdvancedSearchModal.js.map +1 -1
  62. package/lib/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.d.ts +1 -2
  63. package/lib/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.d.ts.map +1 -1
  64. package/lib/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.js +0 -13
  65. package/lib/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.js.map +1 -1
  66. package/lib/components/studio/DataSpacePreviewAction.js +1 -1
  67. package/lib/components/studio/DataSpacePreviewAction.js.map +1 -1
  68. package/lib/graph/DSL_DataSpace_HashUtils.d.ts +3 -2
  69. package/lib/graph/DSL_DataSpace_HashUtils.d.ts.map +1 -1
  70. package/lib/graph/DSL_DataSpace_HashUtils.js +3 -2
  71. package/lib/graph/DSL_DataSpace_HashUtils.js.map +1 -1
  72. package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.d.ts +23 -0
  73. package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.d.ts.map +1 -1
  74. package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js +50 -0
  75. package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js.map +1 -1
  76. package/lib/graphManager/DSL_DataSpace_PureGraphManagerPlugin.d.ts +5 -0
  77. package/lib/graphManager/DSL_DataSpace_PureGraphManagerPlugin.d.ts.map +1 -1
  78. package/lib/graphManager/DSL_DataSpace_PureGraphManagerPlugin.js +7 -0
  79. package/lib/graphManager/DSL_DataSpace_PureGraphManagerPlugin.js.map +1 -1
  80. package/lib/graphManager/action/analytics/DataSpaceAnalysis.d.ts +39 -5
  81. package/lib/graphManager/action/analytics/DataSpaceAnalysis.d.ts.map +1 -1
  82. package/lib/graphManager/action/analytics/DataSpaceAnalysis.js +40 -8
  83. package/lib/graphManager/action/analytics/DataSpaceAnalysis.js.map +1 -1
  84. package/lib/graphManager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.d.ts.map +1 -1
  85. package/lib/graphManager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.js +70 -11
  86. package/lib/graphManager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.js.map +1 -1
  87. package/lib/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.d.ts.map +1 -1
  88. package/lib/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js +62 -10
  89. package/lib/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js.map +1 -1
  90. package/lib/graphManager/protocol/pure/v1/V1_DSL_DataSpace_SystemModels.json +7 -0
  91. package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.d.ts +39 -0
  92. package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.d.ts.map +1 -1
  93. package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.js +92 -3
  94. package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.js.map +1 -1
  95. package/lib/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSL_DataSpace_DataSpace.d.ts +23 -0
  96. package/lib/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSL_DataSpace_DataSpace.d.ts.map +1 -1
  97. package/lib/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSL_DataSpace_DataSpace.js +50 -0
  98. package/lib/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSL_DataSpace_DataSpace.js.map +1 -1
  99. package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.d.ts +0 -1
  100. package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.d.ts.map +1 -1
  101. package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.js +33 -5
  102. package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.js.map +1 -1
  103. package/lib/index.css +2 -2
  104. package/lib/index.css.map +1 -1
  105. package/lib/index.d.ts +2 -1
  106. package/lib/index.d.ts.map +1 -1
  107. package/lib/index.js +2 -1
  108. package/lib/index.js.map +1 -1
  109. package/lib/package.json +10 -6
  110. package/lib/stores/DSL_DataSpace_LegendApplicationPlugin_Extension.d.ts +32 -0
  111. package/lib/stores/DSL_DataSpace_LegendApplicationPlugin_Extension.d.ts.map +1 -0
  112. package/lib/stores/DSL_DataSpace_LegendApplicationPlugin_Extension.js +17 -0
  113. package/lib/stores/DSL_DataSpace_LegendApplicationPlugin_Extension.js.map +1 -0
  114. package/lib/stores/DataSpaceViewerState.d.ts +17 -14
  115. package/lib/stores/DataSpaceViewerState.d.ts.map +1 -1
  116. package/lib/stores/DataSpaceViewerState.js +25 -12
  117. package/lib/stores/DataSpaceViewerState.js.map +1 -1
  118. package/lib/stores/studio/DataSpacePreviewState.d.ts.map +1 -1
  119. package/lib/stores/studio/DataSpacePreviewState.js +0 -3
  120. package/lib/stores/studio/DataSpacePreviewState.js.map +1 -1
  121. package/package.json +21 -17
  122. package/src/application/studio/DSL_DataSpace_LegendStudioCodeSnippet.ts +15 -2
  123. package/src/components/DSL_DataSpace_LegendApplicationPlugin.ts +0 -9
  124. package/src/components/DataSpaceDataAccess.tsx +66 -0
  125. package/src/components/DataSpaceDescription.tsx +55 -0
  126. package/src/components/DataSpaceDiagramViewer.tsx +199 -0
  127. package/src/components/DataSpaceExecutionContextViewer.tsx +167 -0
  128. package/src/components/DataSpaceInfoPanel.tsx +170 -0
  129. package/src/components/DataSpaceMarkdownTextViewer.tsx +33 -0
  130. package/src/components/DataSpaceModelsDocumentation.tsx +99 -0
  131. package/src/components/DataSpacePlaceholder.tsx +21 -0
  132. package/src/components/DataSpaceQuickStart.tsx +381 -0
  133. package/src/components/DataSpaceSupportPanel.tsx +80 -0
  134. package/src/components/DataSpaceViewer.tsx +88 -1052
  135. package/src/components/DataSpaceViewerActivityBar.tsx +215 -0
  136. package/src/components/DataSpaceWiki.tsx +41 -0
  137. package/src/components/query/DataSpaceAdvancedSearchModal.tsx +1 -1
  138. package/src/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.tsx +0 -15
  139. package/src/components/studio/DataSpacePreviewAction.tsx +1 -1
  140. package/src/graph/DSL_DataSpace_HashUtils.ts +3 -2
  141. package/src/graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.ts +60 -0
  142. package/src/graphManager/DSL_DataSpace_PureGraphManagerPlugin.ts +9 -0
  143. package/src/graphManager/action/analytics/DataSpaceAnalysis.ts +54 -15
  144. package/src/graphManager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.ts +99 -14
  145. package/src/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.ts +86 -17
  146. package/src/graphManager/protocol/pure/v1/V1_DSL_DataSpace_SystemModels.json +7 -0
  147. package/src/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.ts +140 -2
  148. package/src/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSL_DataSpace_DataSpace.ts +60 -0
  149. package/src/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.ts +51 -7
  150. package/src/index.ts +2 -4
  151. package/src/stores/DSL_DataSpace_LegendApplicationPlugin_Extension.ts +41 -0
  152. package/src/stores/DataSpaceViewerState.ts +39 -20
  153. package/src/stores/studio/DataSpacePreviewState.ts +0 -5
  154. package/tsconfig.json +13 -3
  155. package/lib/application/studio/DSL_DataSpace_LegendStudioNavigation.d.ts +0 -28
  156. package/lib/application/studio/DSL_DataSpace_LegendStudioNavigation.d.ts.map +0 -1
  157. package/lib/application/studio/DSL_DataSpace_LegendStudioNavigation.js +0 -30
  158. package/lib/application/studio/DSL_DataSpace_LegendStudioNavigation.js.map +0 -1
  159. package/lib/components/studio/DataSpacePreview.d.ts.map +0 -1
  160. package/lib/components/studio/DataSpacePreview.js +0 -52
  161. package/lib/components/studio/DataSpacePreview.js.map +0 -1
  162. package/lib/stores/studio/DataSpacePreviewStore.d.ts +0 -34
  163. package/lib/stores/studio/DataSpacePreviewStore.d.ts.map +0 -1
  164. package/lib/stores/studio/DataSpacePreviewStore.js +0 -98
  165. package/lib/stores/studio/DataSpacePreviewStore.js.map +0 -1
  166. package/src/application/studio/DSL_DataSpace_LegendStudioNavigation.ts +0 -53
  167. package/src/components/studio/DataSpacePreview.tsx +0 -129
  168. package/src/stores/studio/DataSpacePreviewStore.ts +0 -172
@@ -0,0 +1,58 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ * Copyright (c) 2020-present, Goldman Sachs
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { observer } from 'mobx-react-lite';
18
+ import { AnchorLinkIcon, SearchIcon } from '@finos/legend-art';
19
+ import {} from '../stores/DataSpaceViewerState.js';
20
+ import { AgGridReact } from '@ag-grid-community/react';
21
+ import { ClientSideRowModelModule } from '@ag-grid-community/client-side-row-model';
22
+ import { DataSpaceWikiPlaceholder } from './DataSpacePlaceholder.js';
23
+ export const DataSpaceModelsDocumentation = observer((props) => {
24
+ const { dataSpaceViewerState } = props;
25
+ const documentationEntries = dataSpaceViewerState.dataSpaceAnalysisResult.elementDocs;
26
+ return (_jsxs("div", { className: "data-space__viewer__wiki__section", children: [_jsx("div", { className: "data-space__viewer__wiki__section__header", children: _jsxs("div", { className: "data-space__viewer__wiki__section__header__label", children: ["Models Documentation", _jsx("div", { className: "data-space__viewer__wiki__section__header__anchor", children: _jsx(AnchorLinkIcon, {}) })] }) }), _jsxs("div", { className: "data-space__viewer__wiki__section__content", children: [documentationEntries.length > 0 && (_jsxs("div", { className: "data-space__viewer__models-documentation", children: [_jsx("div", { className: "data-space__viewer__models-documentation__search", children: _jsxs("div", { className: "data-space__viewer__models-documentation__search__input-group", children: [_jsx("input", { className: "data-space__viewer__models-documentation__search__input-group__input input" }), _jsx("div", { className: "data-space__viewer__models-documentation__search__input-group__icon", children: _jsx(SearchIcon, {}) })] }) }), _jsx("div", { className: "data-space__viewer__models-documentation__grid data-space__viewer__grid ag-theme-balham-dark", children: _jsx(AgGridReact, { rowData: documentationEntries, gridOptions: {
27
+ suppressScrollOnNewData: true,
28
+ getRowId: (rowData) => rowData.data.uuid,
29
+ }, modules: [ClientSideRowModelModule], suppressFieldDotNotation: true, columnDefs: [
30
+ {
31
+ minWidth: 50,
32
+ sortable: true,
33
+ resizable: true,
34
+ field: 'elementPath',
35
+ headerName: 'Model',
36
+ flex: 1,
37
+ },
38
+ {
39
+ minWidth: 50,
40
+ sortable: false,
41
+ resizable: true,
42
+ field: 'subElementText',
43
+ headerName: '',
44
+ flex: 1,
45
+ },
46
+ {
47
+ minWidth: 50,
48
+ sortable: false,
49
+ resizable: true,
50
+ field: 'doc',
51
+ headerName: 'Documentation',
52
+ flex: 1,
53
+ wrapText: true,
54
+ autoHeight: true,
55
+ },
56
+ ] }) })] })), documentationEntries.length === 0 && (_jsx(DataSpaceWikiPlaceholder, { message: "No documentation provided" }))] })] }));
57
+ });
58
+ //# sourceMappingURL=DataSpaceModelsDocumentation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpaceModelsDocumentation.js","sourceRoot":"","sources":["../../src/components/DataSpaceModelsDocumentation.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAA6B,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAErE,MAAM,CAAC,MAAM,4BAA4B,GAAG,QAAQ,CAClD,CAAC,KAAqD,EAAE,EAAE;IACxD,MAAM,EAAE,oBAAoB,EAAE,GAAG,KAAK,CAAC;IACvC,MAAM,oBAAoB,GACxB,oBAAoB,CAAC,uBAAuB,CAAC,WAAW,CAAC;IAE3D,OAAO,CACL,eAAK,SAAS,EAAC,mCAAmC,aAChD,cAAK,SAAS,EAAC,2CAA2C,YACxD,eAAK,SAAS,EAAC,kDAAkD,qCAE/D,cAAK,SAAS,EAAC,mDAAmD,YAChE,KAAC,cAAc,KAAG,GACd,IACF,GACF,EACN,eAAK,SAAS,EAAC,4CAA4C,aACxD,oBAAoB,CAAC,MAAM,GAAG,CAAC,IAAI,CAClC,eAAK,SAAS,EAAC,0CAA0C,aACvD,cAAK,SAAS,EAAC,kDAAkD,YAC/D,eAAK,SAAS,EAAC,+DAA+D,aAC5E,gBAAO,SAAS,EAAC,4EAA4E,GAAG,EAChG,cAAK,SAAS,EAAC,qEAAqE,YAClF,KAAC,UAAU,KAAG,GACV,IACF,GACF,EACN,cAAK,SAAS,EAAC,8FAA8F,YAC3G,KAAC,WAAW,IACV,OAAO,EAAE,oBAAoB,EAC7B,WAAW,EAAE;wCACX,uBAAuB,EAAE,IAAI;wCAC7B,QAAQ,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI;qCACzC,EACD,OAAO,EAAE,CAAC,wBAAwB,CAAC,EACnC,wBAAwB,EAAE,IAAI,EAC9B,UAAU,EAAE;wCACV;4CACE,QAAQ,EAAE,EAAE;4CACZ,QAAQ,EAAE,IAAI;4CACd,SAAS,EAAE,IAAI;4CACf,KAAK,EAAE,aAAa;4CACpB,UAAU,EAAE,OAAO;4CACnB,IAAI,EAAE,CAAC;yCACR;wCACD;4CACE,QAAQ,EAAE,EAAE;4CACZ,QAAQ,EAAE,KAAK;4CACf,SAAS,EAAE,IAAI;4CACf,KAAK,EAAE,gBAAgB;4CACvB,UAAU,EAAE,EAAE;4CACd,IAAI,EAAE,CAAC;yCACR;wCACD;4CACE,QAAQ,EAAE,EAAE;4CACZ,QAAQ,EAAE,KAAK;4CACf,SAAS,EAAE,IAAI;4CACf,KAAK,EAAE,KAAK;4CACZ,UAAU,EAAE,eAAe;4CAC3B,IAAI,EAAE,CAAC;4CACP,QAAQ,EAAE,IAAI;4CACd,UAAU,EAAE,IAAI;yCACjB;qCACF,GACD,GACE,IACF,CACP,EACA,oBAAoB,CAAC,MAAM,KAAK,CAAC,IAAI,CACpC,KAAC,wBAAwB,IAAC,OAAO,EAAC,2BAA2B,GAAG,CACjE,IACG,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  /// <reference types="react" resolution-mode="require"/>
17
- export declare const DataSpacePreview: (() => JSX.Element) & {
18
- displayName: string;
19
- };
20
- //# sourceMappingURL=DataSpacePreview.d.ts.map
17
+ export declare const DataSpaceWikiPlaceholder: React.FC<{
18
+ message: string;
19
+ }>;
20
+ //# sourceMappingURL=DataSpacePlaceholder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpacePlaceholder.d.ts","sourceRoot":"","sources":["../../src/components/DataSpacePlaceholder.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAEH,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAIlE,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * Copyright (c) 2020-present, Goldman Sachs
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ export const DataSpaceWikiPlaceholder = (props) => (_jsx("div", { className: "data-space__viewer__wiki__placeholder", children: props.message }));
18
+ //# sourceMappingURL=DataSpacePlaceholder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpacePlaceholder.js","sourceRoot":"","sources":["../../src/components/DataSpacePlaceholder.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAkC,CACrE,KAAK,EACL,EAAE,CAAC,CACH,cAAK,SAAS,EAAC,uCAAuC,YAAE,KAAK,CAAC,OAAO,GAAO,CAC7E,CAAC"}
@@ -0,0 +1,23 @@
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
+ /// <reference types="react" resolution-mode="require"/>
17
+ import { type DataSpaceViewerState } from '../stores/DataSpaceViewerState.js';
18
+ export declare const DataSpaceQuickStart: ((props: {
19
+ dataSpaceViewerState: DataSpaceViewerState;
20
+ }) => JSX.Element) & {
21
+ displayName: string;
22
+ };
23
+ //# sourceMappingURL=DataSpaceQuickStart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpaceQuickStart.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceQuickStart.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAYH,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAiT9E,eAAO,MAAM,mBAAmB,WACtB;IAAE,oBAAoB,EAAE,oBAAoB,CAAA;CAAE;;CAgDvD,CAAC"}
@@ -0,0 +1,108 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ * Copyright (c) 2020-present, Goldman Sachs
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { observer } from 'mobx-react-lite';
18
+ import { AnchorLinkIcon, CodeIcon, CopyIcon, MoreVerticalIcon, QueryIcon, QuestionCircleIcon, clsx, } from '@finos/legend-art';
19
+ import {} from '../stores/DataSpaceViewerState.js';
20
+ import { AgGridReact } from '@ag-grid-community/react';
21
+ import { ClientSideRowModelModule } from '@ag-grid-community/client-side-row-model';
22
+ import { EDITOR_LANGUAGE, TextInputEditor, useApplicationStore, } from '@finos/legend-application';
23
+ import { DataSpaceExecutableTDSResult, } from '../graphManager/action/analytics/DataSpaceAnalysis.js';
24
+ import { DataSpaceMarkdownTextViewer } from './DataSpaceMarkdownTextViewer.js';
25
+ import { useState } from 'react';
26
+ var TDS_EXECUTABLE_ACTION_TAB;
27
+ (function (TDS_EXECUTABLE_ACTION_TAB) {
28
+ TDS_EXECUTABLE_ACTION_TAB["COLUMN_SPECS"] = "COLUMN_SPECS";
29
+ TDS_EXECUTABLE_ACTION_TAB["QUERY"] = "QUERY";
30
+ TDS_EXECUTABLE_ACTION_TAB["QUERY_TEXT"] = "QUERY_TEXT";
31
+ })(TDS_EXECUTABLE_ACTION_TAB || (TDS_EXECUTABLE_ACTION_TAB = {}));
32
+ const DataSpaceExecutableTDSResultView = observer((props) => {
33
+ const { dataSpaceViewerState, executableAnalysisResult, tdsResult } = props;
34
+ const applicationStore = useApplicationStore();
35
+ const [selectedTab, setSelectedTab] = useState(TDS_EXECUTABLE_ACTION_TAB.COLUMN_SPECS);
36
+ const queryText = executableAnalysisResult.info?.query;
37
+ const columnSpecifications = tdsResult.columns;
38
+ const extractTDSExecutableActionConfigurations = applicationStore.pluginManager
39
+ .getApplicationPlugins()
40
+ .flatMap((plugin) => plugin.getExtraDataSpaceTDSExecutableActionConfigurations?.() ?? []);
41
+ const currentTabExtensionConfig = extractTDSExecutableActionConfigurations.find((config) => config.key === selectedTab);
42
+ return (_jsxs("div", { className: "data-space__viewer__quickstart__item", children: [_jsxs("div", { className: "data-space__viewer__quickstart__item__header", children: [_jsx("div", { className: "data-space__viewer__quickstart__item__header__title", children: executableAnalysisResult.title }), _jsx("div", { className: "data-space__viewer__quickstart__item__header__type data-space__viewer__quickstart__item__header__type--tds", children: "TDS" }), _jsx("div", { className: "data-space__viewer__quickstart__item__header__anchor", children: _jsx(AnchorLinkIcon, {}) })] }), executableAnalysisResult.description !== undefined && (_jsx("div", { className: "data-space__viewer__quickstart__item__description", children: _jsx(DataSpaceMarkdownTextViewer, { value: executableAnalysisResult.description }) })), _jsxs("div", { className: "data-space__viewer__quickstart__item__content", children: [_jsxs("div", { className: "data-space__viewer__quickstart__item__content__tab__header", children: [_jsxs("div", { className: "data-space__viewer__quickstart__item__content__tabs", children: [_jsx("button", { className: clsx('data-space__viewer__quickstart__item__content__tab', {
43
+ 'data-space__viewer__quickstart__item__content__tab--active': selectedTab === TDS_EXECUTABLE_ACTION_TAB.COLUMN_SPECS,
44
+ }), tabIndex: -1, onClick: () => setSelectedTab(TDS_EXECUTABLE_ACTION_TAB.COLUMN_SPECS), children: _jsx("div", { className: "data-space__viewer__quickstart__item__content__tab__label", children: "Column Specifications" }) }), _jsxs("button", { className: clsx('data-space__viewer__quickstart__item__content__tab', {
45
+ 'data-space__viewer__quickstart__item__content__tab--active': selectedTab === TDS_EXECUTABLE_ACTION_TAB.QUERY,
46
+ }), tabIndex: -1, onClick: () => setSelectedTab(TDS_EXECUTABLE_ACTION_TAB.QUERY), children: [_jsx("div", { className: "data-space__viewer__quickstart__item__content__tab__icon", children: _jsx(QueryIcon, { className: "data-space__viewer__quickstart__item__content__tab__icon--query" }) }), _jsx("div", { className: "data-space__viewer__quickstart__item__content__tab__label", children: "Query" })] }), extractTDSExecutableActionConfigurations.map((config) => (_jsxs("button", { className: clsx('data-space__viewer__quickstart__item__content__tab', {
47
+ 'data-space__viewer__quickstart__item__content__tab--active': selectedTab === config.key,
48
+ }), tabIndex: -1, onClick: () => setSelectedTab(config.key), children: [config.icon !== undefined && (_jsx("div", { className: "data-space__viewer__quickstart__item__content__tab__icon", children: config.icon })), _jsx("div", { className: "data-space__viewer__quickstart__item__content__tab__label", children: config.title })] }, config.key)))] }), queryText !== undefined && (_jsx("button", { className: clsx('data-space__viewer__quickstart__item__content__tab', {
49
+ 'data-space__viewer__quickstart__item__content__tab--active': selectedTab === TDS_EXECUTABLE_ACTION_TAB.QUERY_TEXT,
50
+ }), tabIndex: -1, onClick: () => setSelectedTab(TDS_EXECUTABLE_ACTION_TAB.QUERY_TEXT), children: _jsx("div", { className: "data-space__viewer__quickstart__item__content__tab__icon", children: _jsx(CodeIcon, { className: "data-space__viewer__quickstart__item__content__tab__icon--query" }) }) }))] }), _jsxs("div", { className: "data-space__viewer__quickstart__item__content__tab__content", children: [selectedTab === TDS_EXECUTABLE_ACTION_TAB.COLUMN_SPECS && (_jsx("div", { className: "data-space__viewer__quickstart__tds__column-specs data-space__viewer__grid ag-theme-balham-dark", children: _jsx(AgGridReact, { rowData: columnSpecifications, gridOptions: {
51
+ suppressScrollOnNewData: true,
52
+ getRowId: (rowData) => rowData.data.uuid,
53
+ }, modules: [ClientSideRowModelModule], suppressFieldDotNotation: true, columnDefs: [
54
+ {
55
+ minWidth: 50,
56
+ sortable: true,
57
+ resizable: true,
58
+ field: 'name',
59
+ headerName: `Column (${columnSpecifications.length})`,
60
+ flex: 1,
61
+ },
62
+ {
63
+ minWidth: 50,
64
+ sortable: false,
65
+ resizable: true,
66
+ field: 'documentation',
67
+ headerName: 'Documentation',
68
+ flex: 1,
69
+ wrapText: true,
70
+ autoHeight: true,
71
+ },
72
+ {
73
+ minWidth: 50,
74
+ sortable: false,
75
+ resizable: true,
76
+ field: 'sample_values',
77
+ headerName: 'Sample Values',
78
+ flex: 1,
79
+ },
80
+ ] }) })), selectedTab === TDS_EXECUTABLE_ACTION_TAB.QUERY && (_jsx("div", { className: "data-space__viewer__quickstart__tds__query", children: _jsxs("div", { className: "data-space__viewer__quickstart__tds__query__actions", children: [_jsx("button", { className: "data-space__viewer__quickstart__tds__query__action btn--dark", tabIndex: -1, onClick: () => {
81
+ // TODO: wire this so we can go to the query for the service
82
+ }, children: "Open in Query" }), _jsx("button", { className: "data-space__viewer__quickstart__tds__query__action btn--dark", tabIndex: -1, disabled: true, children: "Open in Query with Test Data" })] }) })), selectedTab === TDS_EXECUTABLE_ACTION_TAB.QUERY_TEXT &&
83
+ queryText !== undefined && (_jsxs("div", { className: "data-space__viewer__quickstart__tds__query-text", children: [_jsx("div", { className: "data-space__viewer__quickstart__tds__query-text__content", children: _jsx(TextInputEditor, { inputValue: queryText, isReadOnly: true, language: EDITOR_LANGUAGE.PURE, showMiniMap: false, hideGutter: true }) }), _jsxs("div", { className: "data-space__viewer__quickstart__tds__query-text__actions", children: [_jsx("button", { className: "data-space__viewer__quickstart__tds__query-text__action", tabIndex: -1, title: "Copy", onClick: () => {
84
+ applicationStore.clipboardService
85
+ .copyTextToClipboard(queryText)
86
+ .catch(applicationStore.alertUnhandledError);
87
+ }, children: _jsx(CopyIcon, {}) }), _jsx("button", { className: "data-space__viewer__quickstart__tds__query-text__action", tabIndex: -1, children: _jsx(MoreVerticalIcon, {}) })] })] })), currentTabExtensionConfig?.renderer(dataSpaceViewerState, executableAnalysisResult, tdsResult)] })] })] }));
88
+ });
89
+ const DataSpaceExecutableAnalysisResultView = observer((props) => {
90
+ const { dataSpaceViewerState, executableAnalysisResult } = props;
91
+ if (executableAnalysisResult.result instanceof DataSpaceExecutableTDSResult) {
92
+ return (_jsx(DataSpaceExecutableTDSResultView, { dataSpaceViewerState: dataSpaceViewerState, executableAnalysisResult: executableAnalysisResult, tdsResult: executableAnalysisResult.result }));
93
+ }
94
+ return (_jsxs("div", { className: "data-space__viewer__quickstart__item", children: [_jsxs("div", { className: "data-space__viewer__quickstart__item__header", children: [_jsx("div", { className: "data-space__viewer__quickstart__item__header__title", children: executableAnalysisResult.title }), _jsx("div", { className: "data-space__viewer__quickstart__item__header__type", children: "UNKNOWN" }), _jsx("div", { className: "data-space__viewer__quickstart__item__header__anchor", children: _jsx(AnchorLinkIcon, {}) })] }), executableAnalysisResult.description !== undefined && (_jsx("div", { className: "data-space__viewer__quickstart__item__description", children: _jsx(DataSpaceMarkdownTextViewer, { value: executableAnalysisResult.description }) }))] }));
95
+ });
96
+ export const DataSpaceQuickStart = observer((props) => {
97
+ const { dataSpaceViewerState } = props;
98
+ const applicationStore = useApplicationStore();
99
+ const analysisResult = dataSpaceViewerState.dataSpaceAnalysisResult;
100
+ const documentationUrl = analysisResult.supportInfo?.documentationUrl;
101
+ const seeDocumentation = () => {
102
+ if (documentationUrl) {
103
+ applicationStore.navigationService.navigator.visitAddress(documentationUrl);
104
+ }
105
+ };
106
+ return (_jsxs("div", { className: "data-space__viewer__wiki__section", children: [_jsxs("div", { className: "data-space__viewer__wiki__section__header", children: [_jsxs("div", { className: "data-space__viewer__wiki__section__header__label", children: ["Quick Start", _jsx("div", { className: "data-space__viewer__wiki__section__header__anchor", children: _jsx(AnchorLinkIcon, {}) })] }), Boolean(documentationUrl) && (_jsx("button", { className: "data-space__viewer__wiki__section__header__documentation", tabIndex: -1, onClick: seeDocumentation, title: "See Documentation", children: _jsx(QuestionCircleIcon, {}) }))] }), _jsx("div", { className: "data-space__viewer__wiki__section__content", children: _jsx("div", { className: "data-space__viewer__quickstart", children: analysisResult.executables.map((executable) => (_jsx(DataSpaceExecutableAnalysisResultView, { dataSpaceViewerState: dataSpaceViewerState, executableAnalysisResult: executable }, executable.uuid))) }) })] }));
107
+ });
108
+ //# sourceMappingURL=DataSpaceQuickStart.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpaceQuickStart.js","sourceRoot":"","sources":["../../src/components/DataSpaceQuickStart.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,gBAAgB,EAChB,SAAS,EACT,kBAAkB,EAClB,IAAI,GACL,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAA6B,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EACL,eAAe,EACf,eA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CAAC;IACpE,MAAM,gBAAgB,GAAG,cAAc,CAAC,WAAW,EAAE,gBAAgB,CAAC;IAEtE,MAAM,gBAAgB,GAAG,GAAS,EAAE;QAClC,IAAI,gBAAgB,EAAE;YACpB,gBAAgB,CAAC,iBAAiB,CAAC,SAAS,CAAC,YAAY,CACvD,gBAAgB,CACjB,CAAC;SACH;IACH,CAAC,CAAC;IAEF,OAAO,CACL,eAAK,SAAS,EAAC,mCAAmC,aAChD,eAAK,SAAS,EAAC,2CAA2C,aACxD,eAAK,SAAS,EAAC,kDAAkD,4BAE/D,cAAK,SAAS,EAAC,mDAAmD,YAChE,KAAC,cAAc,KAAG,GACd,IACF,EACL,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAC5B,iBACE,SAAS,EAAC,0DAA0D,EACpE,QAAQ,EAAE,CAAC,CAAC,EACZ,OAAO,EAAE,gBAAgB,EACzB,KAAK,EAAC,mBAAmB,YAEzB,KAAC,kBAAkB,KAAG,GACf,CACV,IACG,EACN,cAAK,SAAS,EAAC,4CAA4C,YACzD,cAAK,SAAS,EAAC,gCAAgC,YAC5C,cAAc,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,CAC9C,KAAC,qCAAqC,IAEpC,oBAAoB,EAAE,oBAAoB,EAC1C,wBAAwB,EAAE,UAAU,IAF/B,UAAU,CAAC,IAAI,CAGpB,CACH,CAAC,GACE,GACF,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -0,0 +1,23 @@
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
+ /// <reference types="react" resolution-mode="require"/>
17
+ import { type DataSpaceViewerState } from '../stores/DataSpaceViewerState.js';
18
+ export declare const DataSpaceSupportPanel: ((props: {
19
+ dataSpaceViewerState: DataSpaceViewerState;
20
+ }) => JSX.Element) & {
21
+ displayName: string;
22
+ };
23
+ //# sourceMappingURL=DataSpaceSupportPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpaceSupportPanel.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceSupportPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAKH,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAiD9E,eAAO,MAAM,qBAAqB,WACxB;IAAE,oBAAoB,EAAE,oBAAoB,CAAA;CAAE;;CAUvD,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ * Copyright (c) 2020-present, Goldman Sachs
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { observer } from 'mobx-react-lite';
18
+ import { BlankPanelContent, EnvelopIcon } from '@finos/legend-art';
19
+ import { DataSpaceSupportEmail } from '../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
20
+ import {} from '../stores/DataSpaceViewerState.js';
21
+ const DataSpaceSupportEmailViewer = observer((props) => {
22
+ const { dataSpaceSupportEmail } = props;
23
+ return (_jsx("div", { className: "data-space__viewer__support__email", children: _jsxs("div", { className: "data-space__viewer__support__email__entry", children: [_jsx("div", { className: "data-space__viewer__support__email__entry__icon", children: _jsx(EnvelopIcon, {}) }), _jsx("a", { href: `mailto:${dataSpaceSupportEmail.address}`, className: "data-space__viewer__support__email__entry__content", children: dataSpaceSupportEmail.address })] }) }));
24
+ });
25
+ const DataSpaceSupport = observer((props) => {
26
+ const { dataSpaceViewerState } = props;
27
+ const supportInfo = dataSpaceViewerState.dataSpaceAnalysisResult.supportInfo;
28
+ if (supportInfo === undefined) {
29
+ return _jsx(BlankPanelContent, { children: "No support info available" });
30
+ }
31
+ else if (supportInfo instanceof DataSpaceSupportEmail) {
32
+ return (_jsx(DataSpaceSupportEmailViewer, { dataSpaceViewerState: dataSpaceViewerState, dataSpaceSupportEmail: supportInfo }));
33
+ }
34
+ return (_jsx(BlankPanelContent, { children: `Can't display support info` }));
35
+ });
36
+ export const DataSpaceSupportPanel = observer((props) => {
37
+ const { dataSpaceViewerState } = props;
38
+ return (_jsx("div", { className: "data-space__viewer__panel", children: _jsx("div", { className: "data-space__viewer__support-info", children: _jsx(DataSpaceSupport, { dataSpaceViewerState: dataSpaceViewerState }) }) }));
39
+ });
40
+ //# sourceMappingURL=DataSpaceSupportPanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpaceSupportPanel.js","sourceRoot":"","sources":["../../src/components/DataSpaceSupportPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wFAAwF,CAAC;AAC/H,OAAO,EAA6B,MAAM,mCAAmC,CAAC;AAE9E,MAAM,2BAA2B,GAAG,QAAQ,CAC1C,CAAC,KAGA,EAAE,EAAE;IACH,MAAM,EAAE,qBAAqB,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ings":"AAAA;;;;;;;;;;;;;;GAcG;;AA8CH,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,mCAAmC,CAAC;AAq3B3C,eAAO,MAAM,eAAe,WAClB;IAAE,oBAAoB,EAAE,oBAAoB,CAAA;CAAE;;CAmLvD,CAAC"}
1
+ {"version":3,"file":"DataSpaceViewer.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAIH,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,mCAAmC,CAAC;AA4D3C,eAAO,MAAM,eAAe,WAClB;IAAE,oBAAoB,EAAE,oBAAoB,CAAA;CAAE;;CAkFvD,CAAC"}