@finos/legend-application-studio 22.6.0 → 23.0.0

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 (450) hide show
  1. package/lib/application/LegendStudio.d.ts.map +1 -1
  2. package/lib/application/LegendStudio.js +8 -5
  3. package/lib/application/LegendStudio.js.map +1 -1
  4. package/lib/application/LegendStudioApplicationConfig.d.ts +4 -0
  5. package/lib/application/LegendStudioApplicationConfig.d.ts.map +1 -1
  6. package/lib/application/LegendStudioApplicationConfig.js +7 -1
  7. package/lib/application/LegendStudioApplicationConfig.js.map +1 -1
  8. package/lib/application/LegendStudioApplicationNavigationContext.d.ts.map +1 -0
  9. package/lib/application/LegendStudioApplicationNavigationContext.js.map +1 -0
  10. package/lib/application/LegendStudioCommand.d.ts.map +1 -0
  11. package/lib/application/LegendStudioCommand.js.map +1 -0
  12. package/lib/application/LegendStudioDocumentation.d.ts.map +1 -0
  13. package/lib/application/LegendStudioDocumentation.js.map +1 -0
  14. package/lib/{stores/LegendStudioAppEvent.d.ts → application/LegendStudioEvent.d.ts} +1 -1
  15. package/lib/application/LegendStudioEvent.d.ts.map +1 -0
  16. package/lib/{stores/LegendStudioAppEvent.js → application/LegendStudioEvent.js} +1 -1
  17. package/lib/application/LegendStudioEvent.js.map +1 -0
  18. package/{src/stores/LegendStudioStorage.ts → lib/application/LegendStudioEventHelper.d.ts} +4 -4
  19. package/lib/application/LegendStudioEventHelper.d.ts.map +1 -0
  20. package/lib/{stores/LegendStudioEventService.d.ts → application/LegendStudioEventHelper.js} +6 -7
  21. package/lib/application/LegendStudioEventHelper.js.map +1 -0
  22. package/lib/{stores/LegendStudioRouter.d.ts → application/LegendStudioNavigation.d.ts} +24 -24
  23. package/lib/application/LegendStudioNavigation.d.ts.map +1 -0
  24. package/lib/{stores/LegendStudioRouter.js → application/LegendStudioNavigation.js} +28 -28
  25. package/lib/application/LegendStudioNavigation.js.map +1 -0
  26. package/lib/{stores/LegendStudioStorage.d.ts → application/LegendStudioSetting.d.ts} +4 -2
  27. package/lib/application/LegendStudioSetting.d.ts.map +1 -0
  28. package/lib/{stores/LegendStudioEventService.js → application/LegendStudioSetting.js} +14 -14
  29. package/lib/application/LegendStudioSetting.js.map +1 -0
  30. package/lib/{stores/LegendStudioTelemetry.d.ts → application/LegendStudioTelemetryHelper.d.ts} +8 -8
  31. package/lib/application/LegendStudioTelemetryHelper.d.ts.map +1 -0
  32. package/lib/application/LegendStudioTelemetryHelper.js +37 -0
  33. package/lib/application/LegendStudioTelemetryHelper.js.map +1 -0
  34. package/lib/components/Core_LegendStudioApplicationPlugin.d.ts +2 -1
  35. package/lib/components/Core_LegendStudioApplicationPlugin.d.ts.map +1 -1
  36. package/lib/components/Core_LegendStudioApplicationPlugin.js +11 -6
  37. package/lib/components/Core_LegendStudioApplicationPlugin.js.map +1 -1
  38. package/lib/components/EditorComponentTestUtils.d.ts.map +1 -1
  39. package/lib/components/EditorComponentTestUtils.js +4 -5
  40. package/lib/components/EditorComponentTestUtils.js.map +1 -1
  41. package/lib/components/EmbeddedQueryBuilder.js +1 -1
  42. package/lib/components/EmbeddedQueryBuilder.js.map +1 -1
  43. package/lib/components/LegendStudioAppInfo.d.ts.map +1 -1
  44. package/lib/components/LegendStudioAppInfo.js +0 -1
  45. package/lib/components/LegendStudioAppInfo.js.map +1 -1
  46. package/lib/components/LegendStudioApplication.d.ts +0 -2
  47. package/lib/components/LegendStudioApplication.d.ts.map +1 -1
  48. package/lib/components/LegendStudioApplication.js +8 -8
  49. package/lib/components/LegendStudioApplication.js.map +1 -1
  50. package/lib/components/editor/ActivityBar.js +6 -6
  51. package/lib/components/editor/ActivityBar.js.map +1 -1
  52. package/lib/components/editor/Editor.d.ts.map +1 -1
  53. package/lib/components/editor/Editor.js +6 -2
  54. package/lib/components/editor/Editor.js.map +1 -1
  55. package/lib/components/editor/EditorStoreProvider.d.ts.map +1 -1
  56. package/lib/components/editor/EditorStoreProvider.js +1 -3
  57. package/lib/components/editor/EditorStoreProvider.js.map +1 -1
  58. package/lib/components/editor/StatusBar.d.ts.map +1 -1
  59. package/lib/components/editor/StatusBar.js +5 -8
  60. package/lib/components/editor/StatusBar.js.map +1 -1
  61. package/lib/components/editor/aux-panel/DevTool.js +2 -2
  62. package/lib/components/editor/aux-panel/DevTool.js.map +1 -1
  63. package/lib/components/editor/aux-panel/Problems.d.ts.map +1 -1
  64. package/lib/components/editor/aux-panel/Problems.js +4 -10
  65. package/lib/components/editor/aux-panel/Problems.js.map +1 -1
  66. package/lib/components/editor/command-center/ProjectSearchCommand.d.ts.map +1 -1
  67. package/lib/components/editor/command-center/ProjectSearchCommand.js +1 -1
  68. package/lib/components/editor/command-center/ProjectSearchCommand.js.map +1 -1
  69. package/lib/components/editor/edit-panel/FileGenerationViewer.js +1 -1
  70. package/lib/components/editor/edit-panel/FileGenerationViewer.js.map +1 -1
  71. package/lib/components/editor/edit-panel/FunctionEditor.js +3 -3
  72. package/lib/components/editor/edit-panel/FunctionEditor.js.map +1 -1
  73. package/lib/components/editor/edit-panel/GenerationSpecificationEditor.js +2 -2
  74. package/lib/components/editor/edit-panel/GenerationSpecificationEditor.js.map +1 -1
  75. package/lib/components/editor/edit-panel/GrammarTextEditor.d.ts.map +1 -1
  76. package/lib/components/editor/edit-panel/GrammarTextEditor.js +8 -7
  77. package/lib/components/editor/edit-panel/GrammarTextEditor.js.map +1 -1
  78. package/lib/components/editor/edit-panel/ModelImporter.js +1 -1
  79. package/lib/components/editor/edit-panel/ModelImporter.js.map +1 -1
  80. package/lib/components/editor/edit-panel/RuntimeEditor.js +3 -3
  81. package/lib/components/editor/edit-panel/RuntimeEditor.js.map +1 -1
  82. package/lib/components/editor/edit-panel/connection-editor/ConnectionEditor.js +1 -1
  83. package/lib/components/editor/edit-panel/connection-editor/ConnectionEditor.js.map +1 -1
  84. package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.js +1 -1
  85. package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.js.map +1 -1
  86. package/lib/components/editor/edit-panel/data-editor/DataElementEditor.js +1 -1
  87. package/lib/components/editor/edit-panel/data-editor/DataElementEditor.js.map +1 -1
  88. package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.js +1 -1
  89. package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.js.map +1 -1
  90. package/lib/components/editor/edit-panel/diff-editor/EntityDiffView.js +1 -1
  91. package/lib/components/editor/edit-panel/diff-editor/EntityDiffView.js.map +1 -1
  92. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.d.ts.map +1 -1
  93. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js +1 -1
  94. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js.map +1 -1
  95. package/lib/components/editor/edit-panel/mapping-editor/MappingEditor.js +1 -1
  96. package/lib/components/editor/edit-panel/mapping-editor/MappingEditor.js.map +1 -1
  97. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.d.ts.map +1 -1
  98. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js +1 -3
  99. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js.map +1 -1
  100. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.d.ts.map +1 -1
  101. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.js +3 -2
  102. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.js.map +1 -1
  103. package/lib/components/editor/edit-panel/mapping-editor/MappingExplorer.js +1 -1
  104. package/lib/components/editor/edit-panel/mapping-editor/MappingExplorer.js.map +1 -1
  105. package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.d.ts.map +1 -1
  106. package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js +1 -3
  107. package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js.map +1 -1
  108. package/lib/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.js +1 -1
  109. package/lib/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.js.map +1 -1
  110. package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.js +1 -1
  111. package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.js.map +1 -1
  112. package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js +2 -2
  113. package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js.map +1 -1
  114. package/lib/components/editor/edit-panel/project-configuration-editor/ProjectDependencyEditor.js +2 -2
  115. package/lib/components/editor/edit-panel/project-configuration-editor/ProjectDependencyEditor.js.map +1 -1
  116. package/lib/components/editor/edit-panel/service-editor/ServiceEditor.js +2 -2
  117. package/lib/components/editor/edit-panel/service-editor/ServiceEditor.js.map +1 -1
  118. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.js +2 -2
  119. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.js.map +1 -1
  120. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.d.ts.map +1 -1
  121. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js +0 -2
  122. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js.map +1 -1
  123. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.js +1 -1
  124. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.js.map +1 -1
  125. package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js +2 -2
  126. package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js.map +1 -1
  127. package/lib/components/editor/edit-panel/uml-editor/ClassEditor.js +8 -8
  128. package/lib/components/editor/edit-panel/uml-editor/ClassEditor.js.map +1 -1
  129. package/lib/components/editor/edit-panel/uml-editor/ClassQueryBuilder.d.ts.map +1 -1
  130. package/lib/components/editor/edit-panel/uml-editor/ClassQueryBuilder.js +1 -3
  131. package/lib/components/editor/edit-panel/uml-editor/ClassQueryBuilder.js.map +1 -1
  132. package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.js +2 -2
  133. package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.js.map +1 -1
  134. package/lib/components/editor/edit-panel/uml-editor/ProfileEditor.js +1 -1
  135. package/lib/components/editor/edit-panel/uml-editor/ProfileEditor.js.map +1 -1
  136. package/lib/components/editor/edit-panel/uml-editor/StereotypeSelector.js +1 -1
  137. package/lib/components/editor/edit-panel/uml-editor/StereotypeSelector.js.map +1 -1
  138. package/lib/components/editor/edit-panel/uml-editor/TaggedValueEditor.js +1 -1
  139. package/lib/components/editor/edit-panel/uml-editor/TaggedValueEditor.js.map +1 -1
  140. package/lib/components/editor/side-bar/CreateNewElementModal.d.ts.map +1 -1
  141. package/lib/components/editor/side-bar/CreateNewElementModal.js +4 -0
  142. package/lib/components/editor/side-bar/CreateNewElementModal.js.map +1 -1
  143. package/lib/components/editor/side-bar/Explorer.d.ts.map +1 -1
  144. package/lib/components/editor/side-bar/Explorer.js +18 -10
  145. package/lib/components/editor/side-bar/Explorer.js.map +1 -1
  146. package/lib/components/editor/side-bar/LocalChanges.d.ts.map +1 -1
  147. package/lib/components/editor/side-bar/LocalChanges.js +4 -3
  148. package/lib/components/editor/side-bar/LocalChanges.js.map +1 -1
  149. package/lib/components/editor/side-bar/ProjectDependantsEditor.js +1 -1
  150. package/lib/components/editor/side-bar/ProjectDependantsEditor.js.map +1 -1
  151. package/lib/components/editor/side-bar/ProjectOverview.js +1 -1
  152. package/lib/components/editor/side-bar/ProjectOverview.js.map +1 -1
  153. package/lib/components/editor/side-bar/WorkspaceReview.js +1 -1
  154. package/lib/components/editor/side-bar/WorkspaceReview.js.map +1 -1
  155. package/lib/components/editor/side-bar/WorkspaceUpdater.js +1 -1
  156. package/lib/components/editor/side-bar/WorkspaceUpdater.js.map +1 -1
  157. package/lib/components/project-viewer/ProjectViewer.d.ts.map +1 -1
  158. package/lib/components/project-viewer/ProjectViewer.js +7 -4
  159. package/lib/components/project-viewer/ProjectViewer.js.map +1 -1
  160. package/lib/components/shared/ProjectSelectorUtils.js +1 -1
  161. package/lib/components/shared/ProjectSelectorUtils.js.map +1 -1
  162. package/lib/components/workspace-review/WorkspaceReview.js +1 -1
  163. package/lib/components/workspace-review/WorkspaceReview.js.map +1 -1
  164. package/lib/components/workspace-setup/CreateProjectModal.js +2 -2
  165. package/lib/components/workspace-setup/CreateProjectModal.js.map +1 -1
  166. package/lib/components/workspace-setup/CreateWorkspaceModal.js +1 -1
  167. package/lib/components/workspace-setup/CreateWorkspaceModal.js.map +1 -1
  168. package/lib/components/workspace-setup/WorkspaceSetup.js +6 -6
  169. package/lib/components/workspace-setup/WorkspaceSetup.js.map +1 -1
  170. package/lib/index.css +2 -2
  171. package/lib/index.css.map +1 -1
  172. package/lib/index.d.ts +6 -5
  173. package/lib/index.d.ts.map +1 -1
  174. package/lib/index.js +5 -5
  175. package/lib/index.js.map +1 -1
  176. package/lib/package.json +4 -4
  177. package/lib/stores/{LegendStudioCodeSnippets.d.ts → Core_CodeSnippets.d.ts} +1 -1
  178. package/lib/stores/Core_CodeSnippets.d.ts.map +1 -0
  179. package/lib/stores/{LegendStudioCodeSnippets.js → Core_CodeSnippets.js} +1 -1
  180. package/lib/stores/Core_CodeSnippets.js.map +1 -0
  181. package/lib/stores/DependencyProjectViewerHelper.js +1 -1
  182. package/lib/stores/DependencyProjectViewerHelper.js.map +1 -1
  183. package/lib/stores/EditorGraphState.d.ts +10 -71
  184. package/lib/stores/EditorGraphState.d.ts.map +1 -1
  185. package/lib/stores/EditorGraphState.js +46 -540
  186. package/lib/stores/EditorGraphState.js.map +1 -1
  187. package/lib/stores/EditorSDLCState.js +1 -1
  188. package/lib/stores/EditorSDLCState.js.map +1 -1
  189. package/lib/stores/EditorStore.d.ts +11 -16
  190. package/lib/stores/EditorStore.d.ts.map +1 -1
  191. package/lib/stores/EditorStore.js +73 -215
  192. package/lib/stores/EditorStore.js.map +1 -1
  193. package/lib/stores/EditorStoreTestUtils.d.ts.map +1 -1
  194. package/lib/stores/EditorStoreTestUtils.js +1 -2
  195. package/lib/stores/EditorStoreTestUtils.js.map +1 -1
  196. package/lib/stores/EditorTabManagerState.d.ts +2 -1
  197. package/lib/stores/EditorTabManagerState.d.ts.map +1 -1
  198. package/lib/stores/EditorTabManagerState.js +63 -19
  199. package/lib/stores/EditorTabManagerState.js.map +1 -1
  200. package/lib/stores/EmbeddedQueryBuilderState.d.ts +0 -1
  201. package/lib/stores/EmbeddedQueryBuilderState.d.ts.map +1 -1
  202. package/lib/stores/EmbeddedQueryBuilderState.js +10 -9
  203. package/lib/stores/EmbeddedQueryBuilderState.js.map +1 -1
  204. package/lib/stores/ExplorerTreeState.d.ts.map +1 -1
  205. package/lib/stores/ExplorerTreeState.js +2 -2
  206. package/lib/stores/ExplorerTreeState.js.map +1 -1
  207. package/lib/stores/GraphEditFormModeState.d.ts +81 -0
  208. package/lib/stores/GraphEditFormModeState.d.ts.map +1 -0
  209. package/lib/stores/GraphEditFormModeState.js +370 -0
  210. package/lib/stores/GraphEditFormModeState.js.map +1 -0
  211. package/lib/stores/GraphEditGrammarModeState.d.ts +65 -0
  212. package/lib/stores/GraphEditGrammarModeState.d.ts.map +1 -0
  213. package/lib/stores/GraphEditGrammarModeState.js +315 -0
  214. package/lib/stores/GraphEditGrammarModeState.js.map +1 -0
  215. package/lib/stores/GraphEditorMode.d.ts +51 -0
  216. package/lib/stores/GraphEditorMode.d.ts.map +1 -0
  217. package/lib/stores/GraphEditorMode.js +35 -0
  218. package/lib/stores/GraphEditorMode.js.map +1 -0
  219. package/lib/stores/LegendStudioApplicationPlugin.d.ts +12 -5
  220. package/lib/stores/LegendStudioApplicationPlugin.d.ts.map +1 -1
  221. package/lib/stores/LegendStudioApplicationPlugin.js.map +1 -1
  222. package/lib/stores/LegendStudioBaseStore.d.ts.map +1 -1
  223. package/lib/stores/LegendStudioBaseStore.js +25 -9
  224. package/lib/stores/LegendStudioBaseStore.js.map +1 -1
  225. package/lib/stores/editor/NewElementState.d.ts +2 -2
  226. package/lib/stores/editor/NewElementState.d.ts.map +1 -1
  227. package/lib/stores/editor/NewElementState.js +19 -10
  228. package/lib/stores/editor/NewElementState.js.map +1 -1
  229. package/lib/stores/editor/StandardEditorMode.js +1 -1
  230. package/lib/stores/editor/StandardEditorMode.js.map +1 -1
  231. package/lib/stores/editor-state/ExternalFormatState.js +1 -1
  232. package/lib/stores/editor-state/ExternalFormatState.js.map +1 -1
  233. package/lib/stores/editor-state/FileGenerationState.js +1 -1
  234. package/lib/stores/editor-state/FileGenerationState.js.map +1 -1
  235. package/lib/stores/editor-state/GrammarTextEditorState.d.ts.map +1 -1
  236. package/lib/stores/editor-state/GrammarTextEditorState.js +2 -2
  237. package/lib/stores/editor-state/GrammarTextEditorState.js.map +1 -1
  238. package/lib/stores/editor-state/GraphGenerationState.d.ts.map +1 -1
  239. package/lib/stores/editor-state/GraphGenerationState.js +2 -2
  240. package/lib/stores/editor-state/GraphGenerationState.js.map +1 -1
  241. package/lib/stores/editor-state/ModelImporterState.js +1 -1
  242. package/lib/stores/editor-state/ModelImporterState.js.map +1 -1
  243. package/lib/stores/editor-state/element-editor-state/ElementExternalFormatGenerationState.js +1 -1
  244. package/lib/stores/editor-state/element-editor-state/ElementExternalFormatGenerationState.js.map +1 -1
  245. package/lib/stores/editor-state/element-editor-state/ElementFileGenerationState.d.ts.map +1 -1
  246. package/lib/stores/editor-state/element-editor-state/ElementFileGenerationState.js +1 -1
  247. package/lib/stores/editor-state/element-editor-state/ElementFileGenerationState.js.map +1 -1
  248. package/lib/stores/editor-state/element-editor-state/connection/DatabaseBuilderState.d.ts.map +1 -1
  249. package/lib/stores/editor-state/element-editor-state/connection/DatabaseBuilderState.js +6 -3
  250. package/lib/stores/editor-state/element-editor-state/connection/DatabaseBuilderState.js.map +1 -1
  251. package/lib/stores/editor-state/element-editor-state/external-format/DSL_ExternalFormat_SchemaSetEditorState.js +1 -1
  252. package/lib/stores/editor-state/element-editor-state/external-format/DSL_ExternalFormat_SchemaSetEditorState.js.map +1 -1
  253. package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.d.ts.map +1 -1
  254. package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.js +1 -1
  255. package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.js.map +1 -1
  256. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.d.ts +1 -1
  257. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.d.ts.map +1 -1
  258. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.js +1 -1
  259. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.js.map +1 -1
  260. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.d.ts.map +1 -1
  261. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.js +8 -15
  262. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.js.map +1 -1
  263. package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.d.ts.map +1 -1
  264. package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.js +6 -11
  265. package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.js.map +1 -1
  266. package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.d.ts.map +1 -1
  267. package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.js +7 -14
  268. package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.js.map +1 -1
  269. package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.js +1 -1
  270. package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.js.map +1 -1
  271. package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.js +3 -3
  272. package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.js.map +1 -1
  273. package/lib/stores/editor-state/entity-diff-editor-state/EntityDiffViewState.js +1 -1
  274. package/lib/stores/editor-state/entity-diff-editor-state/EntityDiffViewState.js.map +1 -1
  275. package/lib/stores/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.js +1 -1
  276. package/lib/stores/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.js.map +1 -1
  277. package/lib/stores/editor-state/project-configuration-editor-state/ProjectDependencyEditorState.js +1 -1
  278. package/lib/stores/editor-state/project-configuration-editor-state/ProjectDependencyEditorState.js.map +1 -1
  279. package/lib/stores/project-viewer/ProjectViewerEditorMode.js +1 -1
  280. package/lib/stores/project-viewer/ProjectViewerEditorMode.js.map +1 -1
  281. package/lib/stores/project-viewer/ProjectViewerStore.d.ts +1 -1
  282. package/lib/stores/project-viewer/ProjectViewerStore.d.ts.map +1 -1
  283. package/lib/stores/project-viewer/ProjectViewerStore.js +9 -15
  284. package/lib/stores/project-viewer/ProjectViewerStore.js.map +1 -1
  285. package/lib/stores/sidebar-state/BulkServiceRegistrationState.js +1 -1
  286. package/lib/stores/sidebar-state/BulkServiceRegistrationState.js.map +1 -1
  287. package/lib/stores/sidebar-state/LocalChangesState.d.ts +6 -3
  288. package/lib/stores/sidebar-state/LocalChangesState.d.ts.map +1 -1
  289. package/lib/stores/sidebar-state/LocalChangesState.js +45 -12
  290. package/lib/stores/sidebar-state/LocalChangesState.js.map +1 -1
  291. package/lib/stores/sidebar-state/ProjectOverviewState.js +2 -2
  292. package/lib/stores/sidebar-state/ProjectOverviewState.js.map +1 -1
  293. package/lib/stores/sidebar-state/WorkflowManagerState.js +1 -1
  294. package/lib/stores/sidebar-state/WorkflowManagerState.js.map +1 -1
  295. package/lib/stores/sidebar-state/WorkspaceReviewState.js +2 -2
  296. package/lib/stores/sidebar-state/WorkspaceReviewState.js.map +1 -1
  297. package/lib/stores/sidebar-state/WorkspaceSyncState.d.ts.map +1 -1
  298. package/lib/stores/sidebar-state/WorkspaceSyncState.js +2 -2
  299. package/lib/stores/sidebar-state/WorkspaceSyncState.js.map +1 -1
  300. package/lib/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.js +2 -2
  301. package/lib/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.js.map +1 -1
  302. package/lib/stores/sidebar-state/WorkspaceUpdaterState.js +1 -1
  303. package/lib/stores/sidebar-state/WorkspaceUpdaterState.js.map +1 -1
  304. package/lib/stores/workspace-review/WorkspaceReviewStore.js +1 -1
  305. package/lib/stores/workspace-review/WorkspaceReviewStore.js.map +1 -1
  306. package/lib/stores/workspace-setup/WorkspaceSetupStore.js +2 -2
  307. package/lib/stores/workspace-setup/WorkspaceSetupStore.js.map +1 -1
  308. package/package.json +13 -13
  309. package/src/application/LegendStudio.tsx +8 -7
  310. package/src/application/LegendStudioApplicationConfig.ts +7 -0
  311. package/src/{stores/LegendStudioEventService.ts → application/LegendStudioEventHelper.ts} +3 -13
  312. package/src/{stores/LegendStudioRouter.ts → application/LegendStudioNavigation.ts} +40 -39
  313. package/{lib/stores/LegendStudioStorage.js → src/application/LegendStudioSetting.ts} +16 -6
  314. package/src/{stores/LegendStudioTelemetry.ts → application/LegendStudioTelemetryHelper.ts} +14 -26
  315. package/src/components/Core_LegendStudioApplicationPlugin.tsx +14 -5
  316. package/src/components/EditorComponentTestUtils.tsx +8 -14
  317. package/src/components/EmbeddedQueryBuilder.tsx +1 -1
  318. package/src/components/LegendStudioAppInfo.tsx +0 -1
  319. package/src/components/LegendStudioApplication.tsx +24 -21
  320. package/src/components/editor/ActivityBar.tsx +6 -6
  321. package/src/components/editor/Editor.tsx +10 -6
  322. package/src/components/editor/EditorStoreProvider.tsx +1 -8
  323. package/src/components/editor/StatusBar.tsx +10 -9
  324. package/src/components/editor/aux-panel/DevTool.tsx +3 -3
  325. package/src/components/editor/aux-panel/Problems.tsx +5 -10
  326. package/src/components/editor/command-center/ProjectSearchCommand.tsx +1 -4
  327. package/src/components/editor/edit-panel/FileGenerationViewer.tsx +1 -1
  328. package/src/components/editor/edit-panel/FunctionEditor.tsx +3 -3
  329. package/src/components/editor/edit-panel/GenerationSpecificationEditor.tsx +2 -2
  330. package/src/components/editor/edit-panel/GrammarTextEditor.tsx +13 -8
  331. package/src/components/editor/edit-panel/ModelImporter.tsx +1 -1
  332. package/src/components/editor/edit-panel/RuntimeEditor.tsx +3 -3
  333. package/src/components/editor/edit-panel/connection-editor/ConnectionEditor.tsx +1 -1
  334. package/src/components/editor/edit-panel/connection-editor/DatabaseBuilder.tsx +1 -1
  335. package/src/components/editor/edit-panel/data-editor/DataElementEditor.tsx +1 -1
  336. package/src/components/editor/edit-panel/data-editor/EmbeddedDataEditor.tsx +1 -1
  337. package/src/components/editor/edit-panel/diff-editor/EntityDiffView.tsx +1 -1
  338. package/src/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.tsx +0 -1
  339. package/src/components/editor/edit-panel/mapping-editor/MappingEditor.tsx +1 -1
  340. package/src/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.tsx +1 -4
  341. package/src/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.tsx +3 -2
  342. package/src/components/editor/edit-panel/mapping-editor/MappingExplorer.tsx +1 -1
  343. package/src/components/editor/edit-panel/mapping-editor/MappingTestEditor.tsx +1 -4
  344. package/src/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.tsx +1 -1
  345. package/src/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.tsx +1 -1
  346. package/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx +3 -3
  347. package/src/components/editor/edit-panel/project-configuration-editor/ProjectDependencyEditor.tsx +2 -2
  348. package/src/components/editor/edit-panel/service-editor/ServiceEditor.tsx +2 -2
  349. package/src/components/editor/edit-panel/service-editor/ServiceExecutionEditor.tsx +2 -2
  350. package/src/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.tsx +0 -3
  351. package/src/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.tsx +1 -1
  352. package/src/components/editor/edit-panel/uml-editor/AssociationEditor.tsx +2 -2
  353. package/src/components/editor/edit-panel/uml-editor/ClassEditor.tsx +8 -8
  354. package/src/components/editor/edit-panel/uml-editor/ClassQueryBuilder.tsx +3 -4
  355. package/src/components/editor/edit-panel/uml-editor/EnumerationEditor.tsx +2 -2
  356. package/src/components/editor/edit-panel/uml-editor/ProfileEditor.tsx +1 -1
  357. package/src/components/editor/edit-panel/uml-editor/StereotypeSelector.tsx +1 -1
  358. package/src/components/editor/edit-panel/uml-editor/TaggedValueEditor.tsx +1 -1
  359. package/src/components/editor/side-bar/CreateNewElementModal.tsx +4 -0
  360. package/src/components/editor/side-bar/Explorer.tsx +25 -15
  361. package/src/components/editor/side-bar/LocalChanges.tsx +4 -8
  362. package/src/components/editor/side-bar/ProjectDependantsEditor.tsx +1 -1
  363. package/src/components/editor/side-bar/ProjectOverview.tsx +1 -1
  364. package/src/components/editor/side-bar/WorkspaceReview.tsx +1 -1
  365. package/src/components/editor/side-bar/WorkspaceUpdater.tsx +1 -1
  366. package/src/components/project-viewer/ProjectViewer.tsx +8 -5
  367. package/src/components/shared/ProjectSelectorUtils.tsx +1 -1
  368. package/src/components/workspace-review/WorkspaceReview.tsx +1 -1
  369. package/src/components/workspace-setup/CreateProjectModal.tsx +2 -2
  370. package/src/components/workspace-setup/CreateWorkspaceModal.tsx +1 -1
  371. package/src/components/workspace-setup/WorkspaceSetup.tsx +7 -7
  372. package/src/index.ts +9 -5
  373. package/src/stores/DependencyProjectViewerHelper.ts +1 -1
  374. package/src/stores/EditorGraphState.ts +49 -798
  375. package/src/stores/EditorSDLCState.ts +1 -1
  376. package/src/stores/EditorStore.ts +98 -323
  377. package/src/stores/EditorStoreTestUtils.ts +0 -2
  378. package/src/stores/EditorTabManagerState.ts +90 -25
  379. package/src/stores/EmbeddedQueryBuilderState.ts +11 -11
  380. package/src/stores/ExplorerTreeState.ts +2 -4
  381. package/src/stores/GraphEditFormModeState.ts +605 -0
  382. package/src/stores/GraphEditGrammarModeState.ts +512 -0
  383. package/src/stores/GraphEditorMode.ts +77 -0
  384. package/src/stores/LegendStudioApplicationPlugin.ts +14 -4
  385. package/src/stores/LegendStudioBaseStore.ts +35 -11
  386. package/src/stores/editor/NewElementState.ts +36 -20
  387. package/src/stores/editor/StandardEditorMode.ts +1 -1
  388. package/src/stores/editor-state/ExternalFormatState.ts +1 -1
  389. package/src/stores/editor-state/FileGenerationState.ts +1 -1
  390. package/src/stores/editor-state/GrammarTextEditorState.ts +4 -5
  391. package/src/stores/editor-state/GraphGenerationState.ts +6 -2
  392. package/src/stores/editor-state/ModelImporterState.ts +1 -1
  393. package/src/stores/editor-state/element-editor-state/ElementExternalFormatGenerationState.ts +1 -1
  394. package/src/stores/editor-state/element-editor-state/ElementFileGenerationState.ts +5 -1
  395. package/src/stores/editor-state/element-editor-state/connection/DatabaseBuilderState.ts +12 -5
  396. package/src/stores/editor-state/element-editor-state/external-format/DSL_ExternalFormat_SchemaSetEditorState.ts +1 -1
  397. package/src/stores/editor-state/element-editor-state/mapping/MappingEditorState.ts +1 -3
  398. package/src/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.ts +1 -1
  399. package/src/stores/editor-state/element-editor-state/mapping/MappingExecutionState.ts +12 -21
  400. package/src/stores/editor-state/element-editor-state/mapping/MappingTestState.ts +6 -15
  401. package/src/stores/editor-state/element-editor-state/service/ServiceExecutionState.ts +7 -20
  402. package/src/stores/editor-state/element-editor-state/service/ServiceRegistrationState.ts +1 -1
  403. package/src/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.ts +3 -3
  404. package/src/stores/editor-state/entity-diff-editor-state/EntityDiffViewState.ts +1 -1
  405. package/src/stores/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.ts +1 -1
  406. package/src/stores/editor-state/project-configuration-editor-state/ProjectDependencyEditorState.ts +1 -1
  407. package/src/stores/project-viewer/ProjectViewerEditorMode.ts +1 -1
  408. package/src/stores/project-viewer/ProjectViewerStore.ts +14 -25
  409. package/src/stores/sidebar-state/BulkServiceRegistrationState.ts +1 -1
  410. package/src/stores/sidebar-state/LocalChangesState.ts +57 -16
  411. package/src/stores/sidebar-state/ProjectOverviewState.ts +2 -2
  412. package/src/stores/sidebar-state/WorkflowManagerState.ts +1 -1
  413. package/src/stores/sidebar-state/WorkspaceReviewState.ts +2 -2
  414. package/src/stores/sidebar-state/WorkspaceSyncState.ts +3 -2
  415. package/src/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.ts +2 -2
  416. package/src/stores/sidebar-state/WorkspaceUpdaterState.ts +1 -1
  417. package/src/stores/workspace-review/WorkspaceReviewStore.ts +1 -1
  418. package/src/stores/workspace-setup/WorkspaceSetupStore.ts +2 -2
  419. package/tsconfig.json +13 -11
  420. package/tsconfig.package.json +1 -2
  421. package/lib/stores/LegendStudioAppEvent.d.ts.map +0 -1
  422. package/lib/stores/LegendStudioAppEvent.js.map +0 -1
  423. package/lib/stores/LegendStudioApplicationNavigationContext.d.ts.map +0 -1
  424. package/lib/stores/LegendStudioApplicationNavigationContext.js.map +0 -1
  425. package/lib/stores/LegendStudioCodeSnippets.d.ts.map +0 -1
  426. package/lib/stores/LegendStudioCodeSnippets.js.map +0 -1
  427. package/lib/stores/LegendStudioCommand.d.ts.map +0 -1
  428. package/lib/stores/LegendStudioCommand.js.map +0 -1
  429. package/lib/stores/LegendStudioDocumentation.d.ts.map +0 -1
  430. package/lib/stores/LegendStudioDocumentation.js.map +0 -1
  431. package/lib/stores/LegendStudioEventService.d.ts.map +0 -1
  432. package/lib/stores/LegendStudioEventService.js.map +0 -1
  433. package/lib/stores/LegendStudioRouter.d.ts.map +0 -1
  434. package/lib/stores/LegendStudioRouter.js.map +0 -1
  435. package/lib/stores/LegendStudioStorage.d.ts.map +0 -1
  436. package/lib/stores/LegendStudioStorage.js.map +0 -1
  437. package/lib/stores/LegendStudioTelemetry.d.ts.map +0 -1
  438. package/lib/stores/LegendStudioTelemetry.js +0 -37
  439. package/lib/stores/LegendStudioTelemetry.js.map +0 -1
  440. /package/lib/{stores → application}/LegendStudioApplicationNavigationContext.d.ts +0 -0
  441. /package/lib/{stores → application}/LegendStudioApplicationNavigationContext.js +0 -0
  442. /package/lib/{stores → application}/LegendStudioCommand.d.ts +0 -0
  443. /package/lib/{stores → application}/LegendStudioCommand.js +0 -0
  444. /package/lib/{stores → application}/LegendStudioDocumentation.d.ts +0 -0
  445. /package/lib/{stores → application}/LegendStudioDocumentation.js +0 -0
  446. /package/src/{stores → application}/LegendStudioApplicationNavigationContext.ts +0 -0
  447. /package/src/{stores → application}/LegendStudioCommand.ts +0 -0
  448. /package/src/{stores → application}/LegendStudioDocumentation.ts +0 -0
  449. /package/src/{stores/LegendStudioAppEvent.ts → application/LegendStudioEvent.ts} +0 -0
  450. /package/src/stores/{LegendStudioCodeSnippets.ts → Core_CodeSnippets.ts} +0 -0
@@ -14,17 +14,27 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { TabManagerState } from '@finos/legend-application';
17
- import { Package } from '@finos/legend-graph';
18
- import { guaranteeType, isNonNullable } from '@finos/legend-shared';
17
+ import { Association, Class, ConcreteFunctionDefinition, Database, DataElement, Enumeration, FileGenerationSpecification, FlatData, GenerationSpecification, Mapping, Measure, PackageableConnection, PackageableRuntime, PrimitiveType, Profile, Service, } from '@finos/legend-graph';
18
+ import { guaranteeType, isNonNullable, UnsupportedOperationError, } from '@finos/legend-shared';
19
19
  import { makeObservable, action } from 'mobx';
20
+ import { ClassEditorState } from './editor-state/element-editor-state/ClassEditorState.js';
21
+ import { PackageableConnectionEditorState } from './editor-state/element-editor-state/connection/ConnectionEditorState.js';
22
+ import { PackageableDataEditorState } from './editor-state/element-editor-state/data/DataEditorState.js';
20
23
  import { ElementEditorState } from './editor-state/element-editor-state/ElementEditorState.js';
24
+ import { FileGenerationEditorState } from './editor-state/element-editor-state/FileGenerationEditorState.js';
25
+ import { FunctionEditorState } from './editor-state/element-editor-state/FunctionEditorState.js';
26
+ import { MappingEditorState } from './editor-state/element-editor-state/mapping/MappingEditorState.js';
27
+ import { PackageableRuntimeEditorState } from './editor-state/element-editor-state/RuntimeEditorState.js';
28
+ import { ServiceEditorState } from './editor-state/element-editor-state/service/ServiceEditorState.js';
29
+ import { UMLEditorState } from './editor-state/element-editor-state/UMLEditorState.js';
21
30
  import { EntityDiffViewerState } from './editor-state/entity-diff-editor-state/EntityDiffEditorState.js';
31
+ import { GenerationSpecificationEditorState } from './editor-state/GenerationSpecificationEditorState.js';
32
+ import { UnsupportedElementEditorState } from './editor-state/UnsupportedElementEditorState.js';
22
33
  export class EditorTabManagerState extends TabManagerState {
23
34
  editorStore;
24
35
  constructor(editorStore) {
25
36
  super();
26
37
  makeObservable(this, {
27
- openElementEditor: action,
28
38
  refreshCurrentEntityDiffViewer: action,
29
39
  recoverTabs: action,
30
40
  });
@@ -36,23 +46,57 @@ export class EditorTabManagerState extends TabManagerState {
36
46
  getCurrentEditorState(clazz) {
37
47
  return guaranteeType(this.currentTab, clazz, `Current editor state is not of the specified type (this is likely caused by calling this method at the wrong place)`);
38
48
  }
39
- openElementEditor(element) {
40
- if (this.editorStore.isInGrammarTextMode) {
41
- // in text mode, we want to select the block of code that corresponds to the element if possible
42
- // the cheap way to do this is to search by element label text, e.g. `Mapping some::package::someMapping`
43
- this.editorStore.grammarTextEditorState.setCurrentElementLabelRegexString(element);
44
- }
45
- else if (!(element instanceof Package)) {
46
- const existingElementState = this.tabs.find((state) => state instanceof ElementEditorState && state.element === element);
47
- const newTab = existingElementState ??
48
- this.editorStore.createElementEditorState(element);
49
- if (newTab) {
50
- this.openTab(newTab);
51
- }
52
- else {
53
- this.editorStore.applicationStore.notificationService.notifyWarning(`Can't open editor for element '${element.path}'`);
49
+ createElementEditorState(element) {
50
+ if (element instanceof PrimitiveType) {
51
+ throw new UnsupportedOperationError(`Can't create element state for primitive type`);
52
+ }
53
+ else if (element instanceof Class) {
54
+ return new ClassEditorState(this.editorStore, element);
55
+ }
56
+ else if (element instanceof Association ||
57
+ element instanceof Enumeration ||
58
+ element instanceof Profile) {
59
+ return new UMLEditorState(this.editorStore, element);
60
+ }
61
+ else if (element instanceof ConcreteFunctionDefinition) {
62
+ return new FunctionEditorState(this.editorStore, element);
63
+ }
64
+ else if (element instanceof Measure ||
65
+ element instanceof Database ||
66
+ element instanceof FlatData) {
67
+ return new UnsupportedElementEditorState(this.editorStore, element);
68
+ }
69
+ else if (element instanceof PackageableRuntime) {
70
+ return new PackageableRuntimeEditorState(this.editorStore, element);
71
+ }
72
+ else if (element instanceof PackageableConnection) {
73
+ return new PackageableConnectionEditorState(this.editorStore, element);
74
+ }
75
+ else if (element instanceof Mapping) {
76
+ return new MappingEditorState(this.editorStore, element);
77
+ }
78
+ else if (element instanceof Service) {
79
+ return new ServiceEditorState(this.editorStore, element);
80
+ }
81
+ else if (element instanceof GenerationSpecification) {
82
+ return new GenerationSpecificationEditorState(this.editorStore, element);
83
+ }
84
+ else if (element instanceof FileGenerationSpecification) {
85
+ return new FileGenerationEditorState(this.editorStore, element);
86
+ }
87
+ else if (element instanceof DataElement) {
88
+ return new PackageableDataEditorState(this.editorStore, element);
89
+ }
90
+ const extraElementEditorStateCreators = this.editorStore.pluginManager
91
+ .getApplicationPlugins()
92
+ .flatMap((plugin) => plugin.getExtraElementEditorStateCreators?.() ?? []);
93
+ for (const creator of extraElementEditorStateCreators) {
94
+ const elementEditorState = creator(this.editorStore, element);
95
+ if (elementEditorState) {
96
+ return elementEditorState;
54
97
  }
55
98
  }
99
+ throw new UnsupportedOperationError(`Can't create editor state for element: no compatible editor state creator available from plugins`, element);
56
100
  }
57
101
  refreshCurrentEntityDiffViewer() {
58
102
  if (this.currentTab instanceof EntityDiffViewerState) {
@@ -77,7 +121,7 @@ export class EditorTabManagerState extends TabManagerState {
77
121
  .map((editorPath) => {
78
122
  const correspondingElement = this.editorStore.graphManagerState.graph.getNullableElement(editorPath);
79
123
  if (correspondingElement) {
80
- return this.editorStore.createElementEditorState(correspondingElement);
124
+ return this.createElementEditorState(correspondingElement);
81
125
  }
82
126
  return undefined;
83
127
  })
@@ -1 +1 @@
1
- {"version":3,"file":"EditorTabManagerState.js","sourceRoot":"","sources":["../../src/stores/EditorTabManagerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,OAAO,EAA2B,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAAc,aAAa,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,2DAA2D,CAAC;AAC/F,OAAO,EAAE,qBAAqB,EAAE,MAAM,kEAAkE,CAAC;AAGzG,MAAM,OAAO,qBAAsB,SAAQ,eAAe;IAC/C,WAAW,CAAc;IAKlC,YAAY,WAAwB;QAClC,KAAK,EAAE,CAAC;QAER,cAAc,CAAC,IAAI,EAAE;YACnB,iBAAiB,EAAE,MAAM;YACzB,8BAA8B,EAAE,MAAM;YACtC,WAAW,EAAE,MAAM;SACpB,CAAC,CAAC;QAEH,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAED,IAAI,OAAO;QACT,OAAO,wBAAwB,CAAC;IAClC,CAAC;IAED,qBAAqB,CAAwB,KAAe;QAC1D,OAAO,aAAa,CAClB,IAAI,CAAC,UAAU,EACf,KAAK,EACL,qHAAqH,CACtH,CAAC;IACJ,CAAC;IAED,iBAAiB,CAAC,OAA2B;QAC3C,IAAI,IAAI,CAAC,WAAW,CAAC,mBAAmB,EAAE;YACxC,gGAAgG;YAChG,yGAAyG;YACzG,IAAI,CAAC,WAAW,CAAC,sBAAsB,CAAC,iCAAiC,CACvE,OAAO,CACR,CAAC;SACH;aAAM,IAAI,CAAC,CAAC,OAAO,YAAY,OAAO,CAAC,EAAE;YACxC,MAAM,oBAAoB,GAAG,IAAI,CAAC,I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AI,kBAAkB,EAAE;gBACtB,OAAO,kBAAkB,CAAC;aAC3B;SACF;QACD,MAAM,IAAI,yBAAyB,CACjC,kGAAkG,EAClG,OAAO,CACR,CAAC;IACJ,CAAC;IAED,8BAA8B;QAC5B,IAAI,IAAI,CAAC,UAAU,YAAY,qBAAqB,EAAE;YACpD,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC;SAC3B;IACH,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,WAAW,GAAG,CACZ,oBAA8B,EAC9B,eAAwC,EACxC,qBAAyC,EACnC,EAAE;QACR,IAAI,CAAC,IAAI,GAAG,oBAAoB;aAC7B,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE;YAClB,MAAM,oBAAoB,GACxB,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,KAAK,CAAC,kBAAkB,CACzD,UAAU,CACX,CAAC;YACJ,IAAI,oBAAoB,EAAE;gBACxB,OAAO,IAAI,CAAC,wBAAwB,CAAC,oBAAoB,CAAC,CAAC;aAC5D;YACD,OAAO,SAAS,CAAC;QACnB,CAAC,CAAC;aACD,MAAM,CAAC,aAAa,CAAC,CAAC;QACzB,IAAI,CAAC,aAAa,CAChB,IAAI,CAAC,cAAc,CAAC,eAAe,EAAE,qBAAqB,CAAC,CAC5D,CAAC;IACJ,CAAC,CAAC;IAEF,cAAc,GAAG,CACf,GAA4B,EAC5B,cAAkC,EACT,EAAE;QAC3B,IAAI,GAAG,EAAE;YACP,OAAO,GAAG,CAAC;SACZ;aAAM;YACL,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CACnB,CAAC,WAAW,EAAE,EAAE,CACd,WAAW,YAAY,kBAAkB;gBACzC,WAAW,CAAC,WAAW,KAAK,cAAc,CAC7C,CAAC;SACH;IACH,CAAC,CAAC;CACH"}
@@ -25,7 +25,6 @@ type EmbeddedQueryBuilderConfiguration = {
25
25
  setupQueryBuilderState: () => QueryBuilderState;
26
26
  disableCompile?: boolean | undefined;
27
27
  actionConfigs: EmbeddedQueryBuilderActionConfiguration[];
28
- applicationContext: string;
29
28
  };
30
29
  export declare class EmbeddedQueryBuilderState {
31
30
  editorStore: EditorStore;
@@ -1 +1 @@
1
- {"version":3,"file":"EmbeddedQueryBuilderState.d.ts","sourceRoot":"","sources":["../../src/stores/EmbeddedQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAEH,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,KAAK,uCAAuC,GAAG;IAC7C,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,KAAK,KAAK,CAAC,SAAS,CAAC;CACrE,CAAC;AAEF,KAAK,iCAAiC,GAAG;IACvC,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;IAChD,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACrC,aAAa,EAAE,uCAAuC,EAAE,CAAC;IACzD,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,qBAAa,yBAAyB;IACpC,WAAW,EAAE,WAAW,CAAC;IACzB,iBAAiB,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAClD,aAAa,EAAE,uCAAuC,EAAE,CAAM;gBAElD,WAAW,EAAE,WAAW;IAUpC;;OAEG;IACF,oCAAoC,CACnC,MAAM,EAAE,iCAAiC,GAAG,SAAS,GACpD,WAAW,CAAC,IAAI,CAAC;CA2DrB"}
1
+ {"version":3,"file":"EmbeddedQueryBuilderState.d.ts","sourceRoot":"","sources":["../../src/stores/EmbeddedQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAEH,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAIxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,KAAK,uCAAuC,GAAG;IAC7C,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,KAAK,KAAK,CAAC,SAAS,CAAC;CACrE,CAAC;AAEF,KAAK,iCAAiC,GAAG;IACvC,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;IAChD,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACrC,aAAa,EAAE,uCAAuC,EAAE,CAAC;CAC1D,CAAC;AAEF,qBAAa,yBAAyB;IACpC,WAAW,EAAE,WAAW,CAAC;IACzB,iBAAiB,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAClD,aAAa,EAAE,uCAAuC,EAAE,CAAM;gBAElD,WAAW,EAAE,WAAW;IAUpC;;OAEG;IACF,oCAAoC,CACnC,MAAM,EAAE,iCAAiC,GAAG,SAAS,GACpD,WAAW,CAAC,IAAI,CAAC;CA2DrB"}
@@ -13,9 +13,10 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { QUERY_BUILDER_BACKDROP_CONTAINER_ID, } from '@finos/legend-query-builder';
16
+ import { QUERY_BUILDER_COMPONENT_ELEMENT_ID, } from '@finos/legend-query-builder';
17
17
  import { flow, flowResult, makeObservable, observable } from 'mobx';
18
- import { FormModeCompilationOutcome } from './EditorGraphState.js';
18
+ import { GRAPH_EDITOR_MODE } from './EditorConfig.js';
19
+ import { GraphCompilationOutcome } from './EditorGraphState.js';
19
20
  export class EmbeddedQueryBuilderState {
20
21
  editorStore;
21
22
  queryBuilderState;
@@ -33,7 +34,7 @@ export class EmbeddedQueryBuilderState {
33
34
  */
34
35
  *setEmbeddedQueryBuilderConfiguration(config) {
35
36
  if (config) {
36
- if (!this.editorStore.isInFormMode) {
37
+ if (this.editorStore.graphEditorMode.mode !== GRAPH_EDITOR_MODE.FORM) {
37
38
  return;
38
39
  }
39
40
  if (!config.disableCompile) {
@@ -41,18 +42,18 @@ export class EmbeddedQueryBuilderState {
41
42
  message: 'Compiling graph before building query...',
42
43
  showLoading: true,
43
44
  });
44
- const compilationOutcome = (yield flowResult(this.editorStore.graphState.globalCompileInFormMode({
45
+ yield flowResult(this.editorStore.graphEditorMode.globalCompile({
45
46
  // we don't want to notify about compilation success since this is just a simple check
46
47
  // in order to be able to open query builder
47
48
  disableNotificationOnSuccess: true,
48
- })));
49
- switch (compilationOutcome) {
50
- case FormModeCompilationOutcome.SKIPPED: {
49
+ }));
50
+ switch (this.editorStore.graphState.mostRecentCompilationOutcome) {
51
+ case GraphCompilationOutcome.SKIPPED: {
51
52
  this.editorStore.applicationStore.alertService.setBlockingAlert(undefined);
52
53
  this.editorStore.applicationStore.notificationService.notifyWarning(`Can't open query builder: Can't compile at this time, please try again later`);
53
54
  return;
54
55
  }
55
- case FormModeCompilationOutcome.SUCCEEDED: {
56
+ case GraphCompilationOutcome.SUCCEEDED: {
56
57
  this.editorStore.applicationStore.alertService.setBlockingAlert(undefined);
57
58
  break;
58
59
  }
@@ -66,7 +67,7 @@ export class EmbeddedQueryBuilderState {
66
67
  if (!this.editorStore.graphState.error) {
67
68
  this.queryBuilderState = config.setupQueryBuilderState();
68
69
  this.actionConfigs = config.actionConfigs;
69
- this.editorStore.applicationStore.layoutService.setBackdropContainerElementID(QUERY_BUILDER_BACKDROP_CONTAINER_ID);
70
+ this.editorStore.applicationStore.layoutService.setBackdropContainerElementID(QUERY_BUILDER_COMPONENT_ELEMENT_ID.BACKDROP_CONTAINER);
70
71
  }
71
72
  }
72
73
  else {
@@ -1 +1 @@
1
- {"version":3,"file":"EmbeddedQueryBuilderState.js","sourceRoot":"","sources":["../../src/stores/EmbeddedQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAA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CACjE,8EAA8E,CAC/E,CAAC;wBACF,OAAO;qBACR;oBACD,KAAK,0BAA0B,CAAC,SAAS,CAAC,CAAC;wBACzC,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,YAAY,CAAC,gBAAgB,CAC7D,SAAS,CACV,CAAC;wBACF,MAAM;qBACP;oBACD,OAAO,CAAC,CAAC;wBACP,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,aAAa,CACjE,8FAA8F,CAC/F,CAAC;wBACF,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,YAAY,CAAC,gBAAgB,CAC7D,SAAS,CACV,CAAC;wBACF,OAAO;qBACR;iBACF;aACF;YACD,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,KAAK,EAAE;gBACtC,IAAI,CAAC,iBAAiB,GAAG,MAAM,CAAC,sBAAsB,EAAE,CAAC;gBACzD,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC;gBAC1C,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,aAAa,CAAC,6BAA6B,CAC3E,mCAAmC,CACpC,CAAC;aACH;SACF;aAAM;YACL,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,aAAa,CAAC,6BAA6B,CAC3E,SAAS,CACV,CAAC;YACF,IAAI,CAAC,iBAAiB,GAAG,SAAS,CAAC;YACnC,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC;SACzB;IACH,CAAC;CACF"}
1
+ {"version":3,"file":"EmbeddedQueryBuilderState.js","sourceRoot":"","sources":["../../src/stores/EmbeddedQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,kCAAkC,GACnC,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBA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G,IAAI;IAGhE,iBAAiB,CAAC,IAAI,EAAE,QAAQ,CAAC,mBAAmB,CAAC,GAAG,IAAI;IAG5D,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,mBAAmB,CAAC,GAAG,IAAI;IAG3D,qBAAqB,CAAC,IAAI,EAAE,QAAQ,CAAC,mBAAmB,CAAC,GAAG,IAAI;IAGhE,yBAAyB,CAAC,IAAI,EAAE,QAAQ,CAAC,sBAAsB,CAAC,GAAG,IAAI;IAGvE,kBAAkB,CAAC,GAAG,EAAE,kBAAkB,GAAG,SAAS,GAAG,IAAI;IAG7D,4BAA4B,CAAC,GAAG,EAAE,KAAK,GAAG,SAAS,GAAG,IAAI;IAI1D,eAAe,CAAC,IAAI,EAAE,mBAAmB,GAAG,SAAS,GAAG,IAAI;IAU5D,KAAK,IAAI,IAAI;IAoBb,mBAAmB,IAAI,IAAI;IAkC3B,wBAAwB,IAAI,IAAI;IAahC,qBAAqB,CACnB,qBAAqB,EAAE,MAAM,EAAE,EAC/B,2BAA2B,EAAE,MAAM,EAAE,EACrC,cAAc,EAAE,MAAM,GAAG,SAAS,GACjC,IAAI;IA4EP;;;;;;OAMG;IACH,SAAS,IAAI,IAAI;IA4GjB,gBAAgB,SACR,mBAAmB,YACf,SAAS,mBAAmB,CAAC,0CAEtC,IAAI,CA+BL;IAEF;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,kBAAkB,GAAG,IAAI;IAyD3C,yBAAyB,IAAI,QAAQ,CAAC,sBAAsB,CAAC;CAM9D"}
@@ -16,7 +16,7 @@
16
16
  import { action, observable, makeObservable } from 'mobx';
17
17
  import { LogEvent, IllegalStateError, isNonNullable, UnsupportedOperationError, guaranteeNonNullable, ActionState, } from '@finos/legend-shared';
18
18
  import { getDependenciesPackableElementTreeData, getPackableElementTreeData, openNode, openNodeById, openNodes, populatePackageTreeNodeChildren, } from './shared/PackageTreeUtils.js';
19
- import { LEGEND_STUDIO_APP_EVENT } from './LegendStudioAppEvent.js';
19
+ import { LEGEND_STUDIO_APP_EVENT } from '../application/LegendStudioEvent.js';
20
20
  import { getFileSystemTreeData, } from './shared/FileSystemTreeUtils.js';
21
21
  import { ROOT_PACKAGE_NAME, Package, Unit, PrimitiveType, getElementRootPackage, isDependencyElement, } from '@finos/legend-graph';
22
22
  import { APPLICATION_EVENT } from '@finos/legend-application';
@@ -261,7 +261,7 @@ export class ExplorerTreeState {
261
261
  onTreeNodeSelect = (node, treeData, rootPackageName = ROOT_PACKAGE_NAME.MAIN) => {
262
262
  // Open non-package element
263
263
  if (!(node.packageableElement instanceof Package)) {
264
- this.editorStore.tabManagerState.openElementEditor(node.packageableElement);
264
+ this.editorStore.graphEditorMode.openElement(node.packageableElement);
265
265
  }
266
266
  // Expand package element
267
267
  if (node.childrenIds?.length) {
@@ -1 +1 @@
1
- {"version":3,"file":"ExplorerTreeState.js","sourceRoot":"","sources":["../../src/stores/ExplorerTreeState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAE1D,OAAO,EACL,QAAQ,EACR,iBAAiB,EACjB,aAAa,EACb,yBAAyB,EACzB,oBAAoB,EACpB,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,sCAAsC,EACtC,0BAA0B,EAC1B,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,+BAA+B,GAChC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAGpE,OAAO,EAEL,qBAAqB,GACtB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAEL,iBAAiB,EACjB,OAAO,EACP,IAAI,EACJ,aAAa,EACb,qBAAqB,EACrB,mBAAmB,GAEpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,MAAM,CAAN,IAAY,4B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SAAS,EACT,IAAI,CACL,CAAC;YACF,IAAI,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC;YAClC,MAAM,GAAG,IAAI,CAAC;SACf;QACD,IAAI,CAAC,MAAM,EAAE;YACX,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,UAAU,CAAC,KAAK,CAChD,QAAQ,CAAC,MAAM,CAAC,uBAAuB,CAAC,4BAA4B,CAAC,EACrE,6CAA6C,OAAO,CAAC,IAAI,wBAAwB,eAAe,GAAG,CACpG,CAAC;SACH;IACH,CAAC;IAED,yBAAyB;QACvB,OAAO,oBAAoB,CACzB,IAAI,CAAC,sBAAsB,EAC3B,oDAAoD,CACrD,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,81 @@
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 { type PackageableElement } from '@finos/legend-graph';
17
+ import { type GeneratorFn } from '@finos/legend-shared';
18
+ import type { Entity } from '@finos/legend-storage';
19
+ import { type Problem } from './EditorGraphState.js';
20
+ import { GRAPH_EDITOR_MODE } from './EditorConfig.js';
21
+ import { GraphEditorMode } from './GraphEditorMode.js';
22
+ export declare class GraphEditFormModeState extends GraphEditorMode {
23
+ initialize(): GeneratorFn<void>;
24
+ addElement(element: PackageableElement, packagePath: string | undefined, openAfterCreate: boolean): GeneratorFn<void>;
25
+ deleteElement(element: PackageableElement): GeneratorFn<void>;
26
+ renameElement(element: PackageableElement, newPath: string): GeneratorFn<void>;
27
+ getCurrentGraphHash(): string | undefined;
28
+ get mode(): GRAPH_EDITOR_MODE;
29
+ /**
30
+ * NOTE: IMPORTANT! This method is both a savior and a sinner. It helps reprocessing the graph state to use a new graph
31
+ * built from the new model context data, it resets the graph properly. The bane here is that resetting the graph properly is
32
+ * not trivial, for example, in the cleanup phase, there are things we want to re-use, such as the one-time processed system
33
+ * metamodels or the `reusable` metamodels from project dependencies. There are also explorer states like the package tree,
34
+ * opened tabs, change detection, etc. to take care of. There are a lot of potential pitfalls. For these, we will add the
35
+ * marker:
36
+ *
37
+ * @risk memory-leak
38
+ *
39
+ * to indicate we should check carefully these pieces when we detect memory issue as it might still
40
+ * be referring to the old graph
41
+ *
42
+ * In the past, we have found that there are a few potential root causes for memory leak:
43
+ * 1. State management Mobx allows references, as such, it is sometimes hard to trace down which references can cause problem
44
+ * We have to understand that the behind this updater is very simple (replace), yet to do it cleanly is not easy, since
45
+ * so far it is tempting to refer to elements in the graph from various editor state. On top of that, change detection
46
+ * sometimes obfuscate the investigation but we have cleared it out with explicit disposing of reaction
47
+ * 2. Reusable models, at this point in time, we haven't completed stabilize the logic for handling generated models, as well
48
+ * as dependencies, we intended to save computation time by reusing these while updating the graph. This can pose potential
49
+ * danger as well. Beware the way when we start to make system/project dependencies references elements of current graph
50
+ * e.g. when we have a computed value in a immutable class that get all subclasses, etc.
51
+ * 3. We reprocess editor states to ensure good UX, e.g. find tabs to keep open, find tree nodes to expand, etc.
52
+ * after updating the graph. These in our experience is the **MOST COMMON** source of memory leak. It is actually
53
+ * quite predictable since structures like tabs and tree node embeds graph data, which are references to the old graph
54
+ *
55
+ * NOTE: One big obfuscating factor is overlapping graph refresh. Sometimes, we observed that calling this update graph
56
+ * method multiple times can throws Mobx off and causes reusing change detection state to cause memory-leak. As such,
57
+ * we have blocked the possibility of calling compilation/graph-update/generation simultaneously
58
+ *
59
+ * A note on how to debug memory-leak issue:
60
+ * 1. Open browser Memory monitor
61
+ * 2. Go to text mode and compile multiple times (triggering graph update)
62
+ * 3. Try to force garbage collection, if we see memory goes up after while, it's pretty clear that this is memory-leak
63
+ * (note that since we disallow stacking multiple compilation and graph update, we have simplify the detection a lot)
64
+ * See https://auth0.com/blog/four-types-of-leaks-in-your-javascript-code-and-how-to-get-rid-of-them/
65
+ */
66
+ updateGraphAndApplication(entities: Entity[]): GeneratorFn<void>;
67
+ globalCompile(options?: {
68
+ message?: string;
69
+ disableNotificationOnSuccess?: boolean;
70
+ openConsole?: boolean;
71
+ }): GeneratorFn<void>;
72
+ goToProblem(problem: Problem): void;
73
+ onLeave(): GeneratorFn<void>;
74
+ cleanupBeforeEntering(fallbackOptions?: {
75
+ isCompilationFailure?: boolean;
76
+ isGraphBuildFailure?: boolean;
77
+ }): GeneratorFn<void>;
78
+ handleCleanupFailure(error: unknown): GeneratorFn<void>;
79
+ openElement(element: PackageableElement): void;
80
+ }
81
+ //# sourceMappingURL=GraphEditFormModeState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GraphEditFormModeState.d.ts","sourceRoot":"","sources":["../../src/stores/GraphEditFormModeState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,kBAAkB,EAUxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,WAAW,EAQjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAMpD,OAAO,EAA2B,KAAK,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAkB,MAAM,mBAAmB,CAAC;AAUtE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,qBAAa,sBAAuB,SAAQ,eAAe;IACxD,UAAU,IAAI,WAAW,CAAC,IAAI,CAAC;IA2B/B,UAAU,CACT,OAAO,EAAE,kBAAkB,EAC3B,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,eAAe,EAAE,OAAO,GACvB,WAAW,CA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