@finos/legend-application-studio 26.1.7 → 26.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (234) hide show
  1. package/lib/__lib__/DSL_ExternalFormat_LegendStudioDocumentation.js +1 -1
  2. package/lib/__lib__/DSL_ExternalFormat_LegendStudioDocumentation.js.map +1 -1
  3. package/lib/__lib__/LegendStudioApplicationNavigationContext.js +1 -1
  4. package/lib/__lib__/LegendStudioApplicationNavigationContext.js.map +1 -1
  5. package/lib/__lib__/LegendStudioCommand.js +1 -1
  6. package/lib/__lib__/LegendStudioCommand.js.map +1 -1
  7. package/lib/__lib__/LegendStudioDocumentation.js +1 -1
  8. package/lib/__lib__/LegendStudioDocumentation.js.map +1 -1
  9. package/lib/__lib__/LegendStudioEvent.js +1 -1
  10. package/lib/__lib__/LegendStudioEvent.js.map +1 -1
  11. package/lib/__lib__/LegendStudioNavigation.js +1 -1
  12. package/lib/__lib__/LegendStudioNavigation.js.map +1 -1
  13. package/lib/__lib__/LegendStudioSetting.js +1 -1
  14. package/lib/__lib__/LegendStudioSetting.js.map +1 -1
  15. package/lib/__lib__/LegendStudioTesting.d.ts +1 -1
  16. package/lib/__lib__/LegendStudioTesting.d.ts.map +1 -1
  17. package/lib/__lib__/LegendStudioTesting.js +2 -2
  18. package/lib/__lib__/LegendStudioTesting.js.map +1 -1
  19. package/lib/__lib__/STO_Relational_LegendStudioCommand.js +1 -1
  20. package/lib/__lib__/STO_Relational_LegendStudioCommand.js.map +1 -1
  21. package/lib/application/LegendStudioApplicationConfig.d.ts.map +1 -1
  22. package/lib/application/LegendStudioApplicationConfig.js +2 -4
  23. package/lib/application/LegendStudioApplicationConfig.js.map +1 -1
  24. package/lib/components/LegendStudioWebApplication.d.ts.map +1 -1
  25. package/lib/components/LegendStudioWebApplication.js +16 -4
  26. package/lib/components/LegendStudioWebApplication.js.map +1 -1
  27. package/lib/components/editor/ActivityBar.js +1 -1
  28. package/lib/components/editor/ActivityBar.js.map +1 -1
  29. package/lib/components/editor/editor-group/GenerationSpecificationEditor.d.ts.map +1 -1
  30. package/lib/components/editor/editor-group/GenerationSpecificationEditor.js +1 -1
  31. package/lib/components/editor/editor-group/GenerationSpecificationEditor.js.map +1 -1
  32. package/lib/components/editor/editor-group/INTERNAL__UnknownFunctionActivatorEdtior.d.ts.map +1 -1
  33. package/lib/components/editor/editor-group/INTERNAL__UnknownFunctionActivatorEdtior.js +2 -2
  34. package/lib/components/editor/editor-group/INTERNAL__UnknownFunctionActivatorEdtior.js.map +1 -1
  35. package/lib/components/editor/editor-group/ModelImporter.d.ts.map +1 -1
  36. package/lib/components/editor/editor-group/ModelImporter.js +5 -5
  37. package/lib/components/editor/editor-group/ModelImporter.js.map +1 -1
  38. package/lib/components/editor/editor-group/RuntimeEditor.d.ts.map +1 -1
  39. package/lib/components/editor/editor-group/RuntimeEditor.js +6 -6
  40. package/lib/components/editor/editor-group/RuntimeEditor.js.map +1 -1
  41. package/lib/components/editor/editor-group/connection-editor/ConnectionEditor.d.ts.map +1 -1
  42. package/lib/components/editor/editor-group/connection-editor/ConnectionEditor.js +2 -2
  43. package/lib/components/editor/editor-group/connection-editor/ConnectionEditor.js.map +1 -1
  44. package/lib/components/editor/editor-group/connection-editor/DatabaseBuilder.d.ts.map +1 -1
  45. package/lib/components/editor/editor-group/connection-editor/DatabaseBuilder.js +2 -2
  46. package/lib/components/editor/editor-group/connection-editor/DatabaseBuilder.js.map +1 -1
  47. package/lib/components/editor/editor-group/data-editor/DataElementEditor.d.ts.map +1 -1
  48. package/lib/components/editor/editor-group/data-editor/DataElementEditor.js +2 -2
  49. package/lib/components/editor/editor-group/data-editor/DataElementEditor.js.map +1 -1
  50. package/lib/components/editor/editor-group/element-generation-editor/ElementXTGenerationEditor.d.ts.map +1 -1
  51. package/lib/components/editor/editor-group/element-generation-editor/ElementXTGenerationEditor.js +3 -3
  52. package/lib/components/editor/editor-group/element-generation-editor/ElementXTGenerationEditor.js.map +1 -1
  53. package/lib/components/editor/editor-group/element-generation-editor/FileSystemViewer.d.ts.map +1 -1
  54. package/lib/components/editor/editor-group/element-generation-editor/FileSystemViewer.js +4 -4
  55. package/lib/components/editor/editor-group/element-generation-editor/FileSystemViewer.js.map +1 -1
  56. package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.d.ts.map +1 -1
  57. package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.js +5 -5
  58. package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.js.map +1 -1
  59. package/lib/components/editor/editor-group/mapping-editor/ClassMappingEditor.js +1 -1
  60. package/lib/components/editor/editor-group/mapping-editor/ClassMappingEditor.js.map +1 -1
  61. package/lib/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.d.ts.map +1 -1
  62. package/lib/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.js +2 -2
  63. package/lib/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.js.map +1 -1
  64. package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationEditor.d.ts.map +1 -1
  65. package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationEditor.js +3 -3
  66. package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationEditor.js.map +1 -1
  67. package/lib/components/editor/editor-group/mapping-editor/MappingExecutionBuilder.d.ts.map +1 -1
  68. package/lib/components/editor/editor-group/mapping-editor/MappingExecutionBuilder.js +7 -7
  69. package/lib/components/editor/editor-group/mapping-editor/MappingExecutionBuilder.js.map +1 -1
  70. package/lib/components/editor/editor-group/mapping-editor/MappingTestsExplorer.d.ts.map +1 -1
  71. package/lib/components/editor/editor-group/mapping-editor/MappingTestsExplorer.js +2 -2
  72. package/lib/components/editor/editor-group/mapping-editor/MappingTestsExplorer.js.map +1 -1
  73. package/lib/components/editor/editor-group/mapping-editor/OperationSetImplementationEditor.d.ts.map +1 -1
  74. package/lib/components/editor/editor-group/mapping-editor/OperationSetImplementationEditor.js +3 -3
  75. package/lib/components/editor/editor-group/mapping-editor/OperationSetImplementationEditor.js.map +1 -1
  76. package/lib/components/editor/editor-group/project-configuration-editor/ProjectConfigurationEditor.d.ts.map +1 -1
  77. package/lib/components/editor/editor-group/project-configuration-editor/ProjectConfigurationEditor.js +5 -5
  78. package/lib/components/editor/editor-group/project-configuration-editor/ProjectConfigurationEditor.js.map +1 -1
  79. package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.d.ts.map +1 -1
  80. package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.js +3 -3
  81. package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.js.map +1 -1
  82. package/lib/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.d.ts.map +1 -1
  83. package/lib/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.js +3 -3
  84. package/lib/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.js.map +1 -1
  85. package/lib/components/editor/editor-group/service-editor/ServiceEditor.d.ts.map +1 -1
  86. package/lib/components/editor/editor-group/service-editor/ServiceEditor.js +2 -2
  87. package/lib/components/editor/editor-group/service-editor/ServiceEditor.js.map +1 -1
  88. package/lib/components/editor/editor-group/service-editor/ServiceExecutionEditor.d.ts.map +1 -1
  89. package/lib/components/editor/editor-group/service-editor/ServiceExecutionEditor.js +2 -2
  90. package/lib/components/editor/editor-group/service-editor/ServiceExecutionEditor.js.map +1 -1
  91. package/lib/components/editor/editor-group/service-editor/testable/ServiceTestableEditor.d.ts.map +1 -1
  92. package/lib/components/editor/editor-group/service-editor/testable/ServiceTestableEditor.js +3 -3
  93. package/lib/components/editor/editor-group/service-editor/testable/ServiceTestableEditor.js.map +1 -1
  94. package/lib/components/editor/editor-group/testable/TestableSharedComponents.d.ts.map +1 -1
  95. package/lib/components/editor/editor-group/testable/TestableSharedComponents.js +2 -2
  96. package/lib/components/editor/editor-group/testable/TestableSharedComponents.js.map +1 -1
  97. package/lib/components/editor/editor-group/uml-editor/AssociationEditor.d.ts.map +1 -1
  98. package/lib/components/editor/editor-group/uml-editor/AssociationEditor.js +2 -2
  99. package/lib/components/editor/editor-group/uml-editor/AssociationEditor.js.map +1 -1
  100. package/lib/components/editor/editor-group/uml-editor/ClassEditor.d.ts.map +1 -1
  101. package/lib/components/editor/editor-group/uml-editor/ClassEditor.js +7 -7
  102. package/lib/components/editor/editor-group/uml-editor/ClassEditor.js.map +1 -1
  103. package/lib/components/editor/editor-group/uml-editor/EnumerationEditor.d.ts.map +1 -1
  104. package/lib/components/editor/editor-group/uml-editor/EnumerationEditor.js +5 -5
  105. package/lib/components/editor/editor-group/uml-editor/EnumerationEditor.js.map +1 -1
  106. package/lib/components/editor/editor-group/uml-editor/ProfileEditor.d.ts.map +1 -1
  107. package/lib/components/editor/editor-group/uml-editor/ProfileEditor.js +2 -2
  108. package/lib/components/editor/editor-group/uml-editor/ProfileEditor.js.map +1 -1
  109. package/lib/components/editor/editor-group/uml-editor/PropertyEditor.d.ts.map +1 -1
  110. package/lib/components/editor/editor-group/uml-editor/PropertyEditor.js +2 -2
  111. package/lib/components/editor/editor-group/uml-editor/PropertyEditor.js.map +1 -1
  112. package/lib/components/editor/side-bar/SideBar.js +1 -1
  113. package/lib/components/editor/side-bar/SideBar.js.map +1 -1
  114. package/lib/components/editor/side-bar/testable/GlobalTestRunner.d.ts.map +1 -1
  115. package/lib/components/editor/side-bar/testable/GlobalTestRunner.js +9 -9
  116. package/lib/components/editor/side-bar/testable/GlobalTestRunner.js.map +1 -1
  117. package/lib/components/extensions/Core_LegendStudioApplicationPlugin.js +1 -2
  118. package/lib/components/extensions/Core_LegendStudioApplicationPlugin.js.map +1 -1
  119. package/lib/index.css +2 -2
  120. package/lib/index.css.map +1 -1
  121. package/lib/package.json +6 -6
  122. package/lib/stores/editor/EditorConfig.d.ts +3 -3
  123. package/lib/stores/editor/EditorConfig.d.ts.map +1 -1
  124. package/lib/stores/editor/EditorConfig.js +10 -10
  125. package/lib/stores/editor/EditorConfig.js.map +1 -1
  126. package/lib/stores/editor/EditorGraphState.js +2 -2
  127. package/lib/stores/editor/EditorGraphState.js.map +1 -1
  128. package/lib/stores/editor/EditorStore.d.ts.map +1 -1
  129. package/lib/stores/editor/EditorStore.js +4 -10
  130. package/lib/stores/editor/EditorStore.js.map +1 -1
  131. package/lib/stores/editor/ExplorerTreeState.js +1 -1
  132. package/lib/stores/editor/ExplorerTreeState.js.map +1 -1
  133. package/lib/stores/editor/NewElementState.js +1 -1
  134. package/lib/stores/editor/NewElementState.js.map +1 -1
  135. package/lib/stores/editor/editor-state/ExternalFormatState.js +1 -1
  136. package/lib/stores/editor/editor-state/ExternalFormatState.js.map +1 -1
  137. package/lib/stores/editor/editor-state/ModelImporterState.js +2 -2
  138. package/lib/stores/editor/editor-state/ModelImporterState.js.map +1 -1
  139. package/lib/stores/editor/editor-state/element-editor-state/ElementEditorState.js +1 -1
  140. package/lib/stores/editor/editor-state/element-editor-state/ElementEditorState.js.map +1 -1
  141. package/lib/stores/editor/editor-state/element-editor-state/FunctionEditorState.js +1 -1
  142. package/lib/stores/editor/editor-state/element-editor-state/FunctionEditorState.js.map +1 -1
  143. package/lib/stores/editor/editor-state/element-editor-state/UMLEditorState.js +1 -1
  144. package/lib/stores/editor/editor-state/element-editor-state/UMLEditorState.js.map +1 -1
  145. package/lib/stores/editor/editor-state/element-editor-state/connection/ConnectionEditorState.js +4 -4
  146. package/lib/stores/editor/editor-state/element-editor-state/connection/ConnectionEditorState.js.map +1 -1
  147. package/lib/stores/editor/editor-state/element-editor-state/data/DataEditorState.js +1 -1
  148. package/lib/stores/editor/editor-state/element-editor-state/data/DataEditorState.js.map +1 -1
  149. package/lib/stores/editor/editor-state/element-editor-state/external-format/DSL_ExternalFormat_BindingEditorState.js +1 -1
  150. package/lib/stores/editor/editor-state/element-editor-state/external-format/DSL_ExternalFormat_BindingEditorState.js.map +1 -1
  151. package/lib/stores/editor/editor-state/element-editor-state/external-format/DSL_ExternalFormat_SchemaSetEditorState.js +1 -1
  152. package/lib/stores/editor/editor-state/element-editor-state/external-format/DSL_ExternalFormat_SchemaSetEditorState.js.map +1 -1
  153. package/lib/stores/editor/editor-state/element-editor-state/mapping/DEPRECATED__MappingTestState.js +2 -2
  154. package/lib/stores/editor/editor-state/element-editor-state/mapping/DEPRECATED__MappingTestState.js.map +1 -1
  155. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.js +3 -3
  156. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.js.map +1 -1
  157. package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.js +1 -1
  158. package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.js.map +1 -1
  159. package/lib/stores/editor/editor-state/element-editor-state/service/ServiceEditorState.js +1 -1
  160. package/lib/stores/editor/editor-state/element-editor-state/service/ServiceEditorState.js.map +1 -1
  161. package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestEditorState.js +3 -3
  162. package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestEditorState.js.map +1 -1
  163. package/lib/stores/editor/editor-state/element-editor-state/testable/TestAssertionState.js +1 -1
  164. package/lib/stores/editor/editor-state/element-editor-state/testable/TestAssertionState.js.map +1 -1
  165. package/lib/stores/editor/editor-state/element-editor-state/testable/TestableEditorState.js +1 -1
  166. package/lib/stores/editor/editor-state/element-editor-state/testable/TestableEditorState.js.map +1 -1
  167. package/lib/stores/editor/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.js +1 -1
  168. package/lib/stores/editor/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.js.map +1 -1
  169. package/lib/stores/editor/editor-state/entity-diff-editor-state/EntityDiffEditorState.js +1 -1
  170. package/lib/stores/editor/editor-state/entity-diff-editor-state/EntityDiffEditorState.js.map +1 -1
  171. package/lib/stores/editor/editor-state/entity-diff-editor-state/EntityDiffViewState.js +1 -1
  172. package/lib/stores/editor/editor-state/entity-diff-editor-state/EntityDiffViewState.js.map +1 -1
  173. package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.js +1 -1
  174. package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.js.map +1 -1
  175. package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectDependencyEditorState.js +1 -1
  176. package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectDependencyEditorState.js.map +1 -1
  177. package/lib/stores/editor/panel-group/DevToolPanelState.d.ts +1 -0
  178. package/lib/stores/editor/panel-group/DevToolPanelState.d.ts.map +1 -1
  179. package/lib/stores/editor/panel-group/DevToolPanelState.js +12 -0
  180. package/lib/stores/editor/panel-group/DevToolPanelState.js.map +1 -1
  181. package/lib/stores/editor/sidebar-state/BulkServiceRegistrationState.js +1 -1
  182. package/lib/stores/editor/sidebar-state/BulkServiceRegistrationState.js.map +1 -1
  183. package/lib/stores/editor/sidebar-state/ProjectOverviewState.js +1 -1
  184. package/lib/stores/editor/sidebar-state/ProjectOverviewState.js.map +1 -1
  185. package/lib/stores/editor/sidebar-state/testable/GlobalTestRunnerState.js +1 -1
  186. package/lib/stores/editor/sidebar-state/testable/GlobalTestRunnerState.js.map +1 -1
  187. package/lib/stores/editor/utils/DnDUtils.js +1 -1
  188. package/lib/stores/editor/utils/DnDUtils.js.map +1 -1
  189. package/lib/stores/editor/utils/MockDataUtils.js +1 -1
  190. package/lib/stores/editor/utils/MockDataUtils.js.map +1 -1
  191. package/lib/stores/editor/utils/ModelClassifierUtils.js +3 -3
  192. package/lib/stores/editor/utils/ModelClassifierUtils.js.map +1 -1
  193. package/lib/stores/project-view/ProjectViewerStore.d.ts.map +1 -1
  194. package/lib/stores/project-view/ProjectViewerStore.js +4 -9
  195. package/lib/stores/project-view/ProjectViewerStore.js.map +1 -1
  196. package/package.json +16 -16
  197. package/src/__lib__/LegendStudioTesting.ts +1 -1
  198. package/src/application/LegendStudioApplicationConfig.ts +1 -2
  199. package/src/components/LegendStudioWebApplication.tsx +25 -6
  200. package/src/components/editor/ActivityBar.tsx +1 -1
  201. package/src/components/editor/editor-group/GenerationSpecificationEditor.tsx +6 -11
  202. package/src/components/editor/editor-group/INTERNAL__UnknownFunctionActivatorEdtior.tsx +10 -10
  203. package/src/components/editor/editor-group/ModelImporter.tsx +17 -15
  204. package/src/components/editor/editor-group/RuntimeEditor.tsx +19 -28
  205. package/src/components/editor/editor-group/connection-editor/ConnectionEditor.tsx +10 -10
  206. package/src/components/editor/editor-group/connection-editor/DatabaseBuilder.tsx +9 -18
  207. package/src/components/editor/editor-group/data-editor/DataElementEditor.tsx +5 -4
  208. package/src/components/editor/editor-group/element-generation-editor/ElementXTGenerationEditor.tsx +10 -11
  209. package/src/components/editor/editor-group/element-generation-editor/FileSystemViewer.tsx +13 -13
  210. package/src/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.tsx +29 -36
  211. package/src/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.tsx +9 -8
  212. package/src/components/editor/editor-group/mapping-editor/InstanceSetImplementationEditor.tsx +13 -12
  213. package/src/components/editor/editor-group/mapping-editor/MappingExecutionBuilder.tsx +27 -37
  214. package/src/components/editor/editor-group/mapping-editor/MappingTestsExplorer.tsx +3 -2
  215. package/src/components/editor/editor-group/mapping-editor/OperationSetImplementationEditor.tsx +9 -8
  216. package/src/components/editor/editor-group/project-configuration-editor/ProjectConfigurationEditor.tsx +17 -14
  217. package/src/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.tsx +17 -21
  218. package/src/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.tsx +18 -19
  219. package/src/components/editor/editor-group/service-editor/ServiceEditor.tsx +3 -2
  220. package/src/components/editor/editor-group/service-editor/ServiceExecutionEditor.tsx +9 -8
  221. package/src/components/editor/editor-group/service-editor/testable/ServiceTestableEditor.tsx +16 -17
  222. package/src/components/editor/editor-group/testable/TestableSharedComponents.tsx +4 -6
  223. package/src/components/editor/editor-group/uml-editor/AssociationEditor.tsx +7 -6
  224. package/src/components/editor/editor-group/uml-editor/ClassEditor.tsx +13 -12
  225. package/src/components/editor/editor-group/uml-editor/EnumerationEditor.tsx +24 -27
  226. package/src/components/editor/editor-group/uml-editor/ProfileEditor.tsx +5 -4
  227. package/src/components/editor/editor-group/uml-editor/PropertyEditor.tsx +5 -4
  228. package/src/components/editor/side-bar/SideBar.tsx +1 -1
  229. package/src/components/editor/side-bar/testable/GlobalTestRunner.tsx +18 -20
  230. package/src/stores/editor/EditorConfig.ts +3 -3
  231. package/src/stores/editor/EditorStore.ts +5 -23
  232. package/src/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestEditorState.ts +1 -1
  233. package/src/stores/editor/panel-group/DevToolPanelState.ts +25 -0
  234. package/src/stores/project-view/ProjectViewerStore.ts +3 -25
@@ -46,6 +46,7 @@ import {
46
46
  PanelDropZone,
47
47
  Panel,
48
48
  PanelDnDEntry,
49
+ PanelContentLists,
49
50
  } from '@finos/legend-art';
50
51
  import { LEGEND_STUDIO_TEST_ID } from '../../../../__lib__/LegendStudioTesting.js';
51
52
  import { PropertyEditor } from './PropertyEditor.js';
@@ -1216,7 +1217,7 @@ const PropertiesEditor = observer(
1216
1217
  isDragOver={isPropertyDragOver && !isReadOnly}
1217
1218
  dropTargetConnector={dropPropertyRef}
1218
1219
  >
1219
- <div className="panel__content__lists">
1220
+ <PanelContentLists>
1220
1221
  <DragPreviewLayer
1221
1222
  labelGetter={(item: ClassPropertyDragSource): string =>
1222
1223
  item.property.name === '' ? '(unknown)' : item.property.name
@@ -1233,7 +1234,7 @@ const PropertiesEditor = observer(
1233
1234
  isReadOnly={isReadOnly}
1234
1235
  />
1235
1236
  ))}
1236
- </div>
1237
+ </PanelContentLists>
1237
1238
  </PanelDropZone>
1238
1239
  );
1239
1240
  },
@@ -1299,7 +1300,7 @@ const DerviedPropertiesEditor = observer(
1299
1300
  isDragOver={isDerivedPropertyDragOver && !isReadOnly}
1300
1301
  dropTargetConnector={dropDerivedPropertyRef}
1301
1302
  >
1302
- <div className="panel__content__lists">
1303
+ <PanelContentLists>
1303
1304
  <DragPreviewLayer
1304
1305
  labelGetter={(item: ClassDerivedPropertyDragSource): string =>
1305
1306
  item.derivedProperty.name === ''
@@ -1323,7 +1324,7 @@ const DerviedPropertiesEditor = observer(
1323
1324
  isReadOnly={isReadOnly}
1324
1325
  />
1325
1326
  ))}
1326
- </div>
1327
+ </PanelContentLists>
1327
1328
  </PanelDropZone>
1328
1329
  );
1329
1330
  },
@@ -1350,7 +1351,7 @@ const ConstraintsEditor = observer(
1350
1351
  );
1351
1352
 
1352
1353
  return (
1353
- <div className="panel__content__lists">
1354
+ <PanelContentLists>
1354
1355
  <DragPreviewLayer
1355
1356
  labelGetter={(item: ClassConstraintDragSource): string =>
1356
1357
  item.constraint.name === '' ? '(unknown)' : item.constraint.name
@@ -1372,7 +1373,7 @@ const ConstraintsEditor = observer(
1372
1373
  isReadOnly={isReadOnly}
1373
1374
  />
1374
1375
  ))}
1375
- </div>
1376
+ </PanelContentLists>
1376
1377
  );
1377
1378
  },
1378
1379
  );
@@ -1441,7 +1442,7 @@ const SupertypesEditor = observer(
1441
1442
  isDragOver={isSuperTypeDragOver && !isReadOnly}
1442
1443
  dropTargetConnector={dropSuperTypeRef}
1443
1444
  >
1444
- <div className="panel__content__lists">
1445
+ <PanelContentLists>
1445
1446
  <DragPreviewLayer
1446
1447
  labelGetter={(item: ClassSuperTypeDragSource): string =>
1447
1448
  item.superType.value.rawType.name
@@ -1457,7 +1458,7 @@ const SupertypesEditor = observer(
1457
1458
  isReadOnly={isReadOnly}
1458
1459
  />
1459
1460
  ))}
1460
- </div>
1461
+ </PanelContentLists>
1461
1462
  </PanelDropZone>
1462
1463
  );
1463
1464
  },
@@ -1504,7 +1505,7 @@ const TaggedValuesEditor = observer(
1504
1505
  isDragOver={isTaggedValueDragOver && !isReadOnly}
1505
1506
  dropTargetConnector={dropTaggedValueRef}
1506
1507
  >
1507
- <div className="panel__content__lists">
1508
+ <PanelContentLists>
1508
1509
  <TaggedValueDragPreviewLayer />
1509
1510
  {_class.taggedValues.map((taggedValue) => (
1510
1511
  <TaggedValueEditor
@@ -1515,7 +1516,7 @@ const TaggedValuesEditor = observer(
1515
1516
  isReadOnly={isReadOnly}
1516
1517
  />
1517
1518
  ))}
1518
- </div>
1519
+ </PanelContentLists>
1519
1520
  </PanelDropZone>
1520
1521
  );
1521
1522
  },
@@ -1564,7 +1565,7 @@ const StereotypesEditor = observer(
1564
1565
  isDragOver={isStereotypeDragOver && !isReadOnly}
1565
1566
  dropTargetConnector={dropStereotypeRef}
1566
1567
  >
1567
- <div className="panel__content__lists">
1568
+ <PanelContentLists>
1568
1569
  <StereotypeDragPreviewLayer />
1569
1570
  {_class.stereotypes.map((stereotype) => (
1570
1571
  <StereotypeSelector
@@ -1575,7 +1576,7 @@ const StereotypesEditor = observer(
1575
1576
  isReadOnly={isReadOnly}
1576
1577
  />
1577
1578
  ))}
1578
- </div>
1579
+ </PanelContentLists>
1579
1580
  </PanelDropZone>
1580
1581
  );
1581
1582
  },
@@ -49,6 +49,10 @@ import {
49
49
  Panel,
50
50
  PanelContent,
51
51
  PanelDnDEntry,
52
+ PanelHeader,
53
+ PanelHeaderActionItem,
54
+ PanelHeaderActions,
55
+ PanelContentLists,
52
56
  } from '@finos/legend-art';
53
57
  import { LEGEND_STUDIO_TEST_ID } from '../../../../__lib__/LegendStudioTesting.js';
54
58
  import {
@@ -307,7 +311,7 @@ const EnumEditor = observer(
307
311
  return (
308
312
  <div className="uml-element-editor enum-editor">
309
313
  <div data-testid={LEGEND_STUDIO_TEST_ID.PANEL} className="panel">
310
- <div className="panel__header">
314
+ <PanelHeader>
311
315
  <div className="panel__header__title">
312
316
  {isReadOnly && (
313
317
  <div className="uml-element-editor__header__lock">
@@ -317,17 +321,12 @@ const EnumEditor = observer(
317
321
  <div className="panel__header__title__label">enum</div>
318
322
  <div className="panel__header__title__content">{_enum.name}</div>
319
323
  </div>
320
- <div className="panel__header__actions">
321
- <button
322
- className="panel__header__action"
323
- onClick={deselectValue}
324
- tabIndex={-1}
325
- title="Close"
326
- >
324
+ <PanelHeaderActions>
325
+ <PanelHeaderActionItem onClick={deselectValue} title="Close">
327
326
  <TimesIcon />
328
- </button>
329
- </div>
330
- </div>
327
+ </PanelHeaderActionItem>
328
+ </PanelHeaderActions>
329
+ </PanelHeader>
331
330
  <div
332
331
  data-testid={LEGEND_STUDIO_TEST_ID.UML_ELEMENT_EDITOR__TABS_HEADER}
333
332
  className="panel__header uml-element-editor__tabs__header"
@@ -345,17 +344,15 @@ const EnumEditor = observer(
345
344
  </div>
346
345
  ))}
347
346
  </div>
348
- <div className="panel__header__actions">
349
- <button
350
- className="panel__header__action"
347
+ <PanelHeaderActions>
348
+ <PanelHeaderActionItem
351
349
  disabled={isReadOnly}
352
350
  onClick={addValue}
353
- tabIndex={-1}
354
351
  title={addButtonTitle}
355
352
  >
356
353
  <PlusIcon />
357
- </button>
358
- </div>
354
+ </PanelHeaderActionItem>
355
+ </PanelHeaderActions>
359
356
  </div>
360
357
  <PanelContent>
361
358
  {selectedTab === UML_EDITOR_TAB.TAGGED_VALUES && (
@@ -363,7 +360,7 @@ const EnumEditor = observer(
363
360
  isDragOver={isTaggedValueDragOver && !isReadOnly}
364
361
  dropTargetConnector={dropTaggedValueRef}
365
362
  >
366
- <div className="panel__content__lists">
363
+ <PanelContentLists>
367
364
  <TaggedValueDragPreviewLayer />
368
365
  {_enum.taggedValues.map((taggedValue) => (
369
366
  <TaggedValueEditor
@@ -374,7 +371,7 @@ const EnumEditor = observer(
374
371
  isReadOnly={isReadOnly}
375
372
  />
376
373
  ))}
377
- </div>
374
+ </PanelContentLists>
378
375
  </PanelDropZone>
379
376
  )}
380
377
  {selectedTab === UML_EDITOR_TAB.STEREOTYPES && (
@@ -382,7 +379,7 @@ const EnumEditor = observer(
382
379
  isDragOver={isStereotypeDragOver && !isReadOnly}
383
380
  dropTargetConnector={dropStereotypeRef}
384
381
  >
385
- <div className="panel__content__lists">
382
+ <PanelContentLists>
386
383
  <StereotypeDragPreviewLayer />
387
384
  {_enum.stereotypes.map((stereotype) => (
388
385
  <StereotypeSelector
@@ -393,7 +390,7 @@ const EnumEditor = observer(
393
390
  isReadOnly={isReadOnly}
394
391
  />
395
392
  ))}
396
- </div>
393
+ </PanelContentLists>
397
394
  </PanelDropZone>
398
395
  )}
399
396
  </PanelContent>
@@ -631,7 +628,7 @@ export const EnumerationEditor = observer(
631
628
  </div>
632
629
  <PanelContent>
633
630
  {selectedTab === UML_EDITOR_TAB.ENUM_VALUES && (
634
- <div className="panel__content__lists">
631
+ <PanelContentLists>
635
632
  <DragPreviewLayer
636
633
  labelGetter={(item: EnumValueDragSource): string =>
637
634
  item.enumValue.name === ''
@@ -649,14 +646,14 @@ export const EnumerationEditor = observer(
649
646
  isReadOnly={isReadOnly}
650
647
  />
651
648
  ))}
652
- </div>
649
+ </PanelContentLists>
653
650
  )}
654
651
  {selectedTab === UML_EDITOR_TAB.TAGGED_VALUES && (
655
652
  <PanelDropZone
656
653
  isDragOver={isTaggedValueDragOver && !isReadOnly}
657
654
  dropTargetConnector={dropTaggedValueRef}
658
655
  >
659
- <div className="panel__content__lists">
656
+ <PanelContentLists>
660
657
  <TaggedValueDragPreviewLayer />
661
658
  {enumeration.taggedValues.map((taggedValue) => (
662
659
  <TaggedValueEditor
@@ -667,7 +664,7 @@ export const EnumerationEditor = observer(
667
664
  isReadOnly={isReadOnly}
668
665
  />
669
666
  ))}
670
- </div>
667
+ </PanelContentLists>
671
668
  </PanelDropZone>
672
669
  )}
673
670
  {selectedTab === UML_EDITOR_TAB.STEREOTYPES && (
@@ -675,7 +672,7 @@ export const EnumerationEditor = observer(
675
672
  isDragOver={isStereotypeDragOver && !isReadOnly}
676
673
  dropTargetConnector={dropStereotypeRef}
677
674
  >
678
- <div className="panel__content__lists">
675
+ <PanelContentLists>
679
676
  <StereotypeDragPreviewLayer />
680
677
  {enumeration.stereotypes.map((stereotype) => (
681
678
  <StereotypeSelector
@@ -686,7 +683,7 @@ export const EnumerationEditor = observer(
686
683
  isReadOnly={isReadOnly}
687
684
  />
688
685
  ))}
689
- </div>
686
+ </PanelContentLists>
690
687
  </PanelDropZone>
691
688
  )}
692
689
  </PanelContent>
@@ -32,6 +32,7 @@ import {
32
32
  Panel,
33
33
  PanelContent,
34
34
  PanelDnDEntry,
35
+ PanelContentLists,
35
36
  } from '@finos/legend-art';
36
37
  import { LEGEND_STUDIO_TEST_ID } from '../../../../__lib__/LegendStudioTesting.js';
37
38
  import { useEditorStore } from '../../EditorStoreProvider.js';
@@ -355,7 +356,7 @@ export const ProfileEditor = observer((props: { profile: Profile }) => {
355
356
  </div>
356
357
  <PanelContent>
357
358
  {selectedTab === UML_EDITOR_TAB.TAGS && (
358
- <div className="panel__content__lists">
359
+ <PanelContentLists>
359
360
  <DragPreviewLayer
360
361
  labelGetter={(item: TagDragSource): string =>
361
362
  item.tag.value === '' ? '(unknown)' : item.tag.value
@@ -371,10 +372,10 @@ export const ProfileEditor = observer((props: { profile: Profile }) => {
371
372
  isReadOnly={isReadOnly}
372
373
  />
373
374
  ))}
374
- </div>
375
+ </PanelContentLists>
375
376
  )}
376
377
  {selectedTab === UML_EDITOR_TAB.STEREOTYPES && (
377
- <div className="panel__content__lists">
378
+ <PanelContentLists>
378
379
  <DragPreviewLayer
379
380
  labelGetter={(item: StereotypeDragSource): string =>
380
381
  item.stereotype.value === ''
@@ -392,7 +393,7 @@ export const ProfileEditor = observer((props: { profile: Profile }) => {
392
393
  isReadOnly={isReadOnly}
393
394
  />
394
395
  ))}
395
- </div>
396
+ </PanelContentLists>
396
397
  )}
397
398
  </PanelContent>
398
399
  </Panel>
@@ -27,6 +27,7 @@ import {
27
27
  CustomSelectorInput,
28
28
  LockIcon,
29
29
  PanelContent,
30
+ PanelContentLists,
30
31
  PanelDropZone,
31
32
  PanelForm,
32
33
  PanelFormSection,
@@ -280,7 +281,7 @@ export const PropertyEditor = observer(
280
281
  isDragOver={isTaggedValueDragOver && !isReadOnly}
281
282
  dropTargetConnector={dropTaggedValueRef}
282
283
  >
283
- <div className="panel__content__lists">
284
+ <PanelContentLists>
284
285
  <TaggedValueDragPreviewLayer />
285
286
  {property.taggedValues.map((taggedValue) => (
286
287
  <TaggedValueEditor
@@ -291,7 +292,7 @@ export const PropertyEditor = observer(
291
292
  isReadOnly={isReadOnly}
292
293
  />
293
294
  ))}
294
- </div>
295
+ </PanelContentLists>
295
296
  </PanelDropZone>
296
297
  )}
297
298
  {selectedTab === UML_EDITOR_TAB.STEREOTYPES && (
@@ -299,7 +300,7 @@ export const PropertyEditor = observer(
299
300
  isDragOver={isStereotypeDragOver && !isReadOnly}
300
301
  dropTargetConnector={dropStereotypeRef}
301
302
  >
302
- <div className="panel__content__lists">
303
+ <PanelContentLists>
303
304
  <StereotypeDragPreviewLayer />
304
305
  {property.stereotypes.map((stereotype) => (
305
306
  <StereotypeSelector
@@ -310,7 +311,7 @@ export const PropertyEditor = observer(
310
311
  isReadOnly={isReadOnly}
311
312
  />
312
313
  ))}
313
- </div>
314
+ </PanelContentLists>
314
315
  </PanelDropZone>
315
316
  )}
316
317
  </PanelContent>
@@ -53,7 +53,7 @@ export const SideBar = observer(() => {
53
53
  workflowManagerState={editorStore.workspaceWorkflowManagerState}
54
54
  />
55
55
  );
56
- case ACTIVITY_MODE.GLOBAL_TEST_RUNNER:
56
+ case ACTIVITY_MODE.TEST_RUNNER:
57
57
  return (
58
58
  <GlobalTestRunner
59
59
  globalTestRunnerState={editorStore.globalTestRunnerState}
@@ -58,7 +58,7 @@ import {
58
58
  } from '@finos/legend-shared';
59
59
  import { observer } from 'mobx-react-lite';
60
60
  import { forwardRef, useEffect, useState } from 'react';
61
- import { GLOBAL_TEST_RUNNER_TABS } from '../../../../stores/editor/EditorConfig.js';
61
+ import { TEST_RUNNER_TABS } from '../../../../stores/editor/EditorConfig.js';
62
62
  import {
63
63
  type TestableExplorerTreeNodeData,
64
64
  type GlobalTestRunnerState,
@@ -429,7 +429,7 @@ export const GlobalTestRunner = observer(
429
429
  const editorStore = useEditorStore();
430
430
  const globalTestRunnerState = props.globalTestRunnerState;
431
431
  const isDispatchingAction = globalTestRunnerState.isDispatchingAction;
432
- const testRunnerTabs = (Object.values(GLOBAL_TEST_RUNNER_TABS) as string[])
432
+ const testRunnerTabs = (Object.values(TEST_RUNNER_TABS) as string[])
433
433
  .concat(
434
434
  editorStore.pluginManager
435
435
  .getApplicationPlugins()
@@ -443,7 +443,7 @@ export const GlobalTestRunner = observer(
443
443
  }));
444
444
 
445
445
  const [selectedTab, setSelectedTab] = useState(
446
- GLOBAL_TEST_RUNNER_TABS.GLOBAL_TEST_RUNNER.valueOf(),
446
+ TEST_RUNNER_TABS.TEST_RUNNER.valueOf(),
447
447
  );
448
448
 
449
449
  const changeTab = (tab: string): void => {
@@ -496,10 +496,10 @@ export const GlobalTestRunner = observer(
496
496
  const reset = (): void => globalTestRunnerState.init(true);
497
497
 
498
498
  const renderTestRunnerTab = (): React.ReactNode => {
499
- if (selectedTab === GLOBAL_TEST_RUNNER_TABS.GLOBAL_TEST_RUNNER) {
499
+ if (selectedTab === TEST_RUNNER_TABS.TEST_RUNNER) {
500
500
  return (
501
501
  <div
502
- data-testid={LEGEND_STUDIO_TEST_ID.GLOBAL_TEST_RUNNER}
502
+ data-testid={LEGEND_STUDIO_TEST_ID.TEST_RUNNER}
503
503
  className="panel global-test-runner"
504
504
  >
505
505
  <PanelHeader className="panel__header side-bar__header">
@@ -535,6 +535,19 @@ export const GlobalTestRunner = observer(
535
535
  </button>
536
536
  </div>
537
537
  </PanelHeader>
538
+ <div className="panel__header__tabs panel__header__test__runner__tabs">
539
+ {testRunnerTabs.map((tab) => (
540
+ <div
541
+ key={tab.value}
542
+ onClick={() => changeTab(tab.value)}
543
+ className={clsx('panel__header__tab', {
544
+ ['panel__header__tab--active']: tab.value === selectedTab,
545
+ })}
546
+ >
547
+ {toTitleCase(prettyCONSTName(tab.value))}
548
+ </div>
549
+ ))}
550
+ </div>
538
551
  <PanelContent className="side-bar__content">
539
552
  <PanelLoadingIndicator isLoading={isDispatchingAction} />
540
553
  <Panel className="side-bar__panel">
@@ -587,21 +600,6 @@ export const GlobalTestRunner = observer(
587
600
 
588
601
  return (
589
602
  <Panel>
590
- <div className="panel__header panel__header--dark">
591
- <div className="panel__header__tabs">
592
- {testRunnerTabs.map((tab) => (
593
- <div
594
- key={tab.value}
595
- onClick={() => changeTab(tab.value)}
596
- className={clsx('panel__header__tab', {
597
- ['panel__header__tab--active']: tab.value === selectedTab,
598
- })}
599
- >
600
- {toTitleCase(prettyCONSTName(tab.value))}
601
- </div>
602
- ))}
603
- </div>
604
- </div>
605
603
  <PanelContent>{renderTestRunnerTab()}</PanelContent>
606
604
  </Panel>
607
605
  );
@@ -21,8 +21,8 @@ export enum EDITOR_MODE {
21
21
  VIEWER = 'VIEWER',
22
22
  }
23
23
 
24
- export enum GLOBAL_TEST_RUNNER_TABS {
25
- GLOBAL_TEST_RUNNER = 'Global Test Runner',
24
+ export enum TEST_RUNNER_TABS {
25
+ TEST_RUNNER = 'Test Runner',
26
26
  }
27
27
 
28
28
  export enum ACTIVITY_MODE {
@@ -35,7 +35,7 @@ export enum ACTIVITY_MODE {
35
35
  REVIEW = 'REVIEW',
36
36
  PROJECT_OVERVIEW = 'PROJECT_OVERVIEW',
37
37
  WORKFLOW_MANAGER = 'WORKFLOW_MANAGER',
38
- GLOBAL_TEST_RUNNER = 'GLOBAL_TEST_RUNNER',
38
+ TEST_RUNNER = 'TEST_RUNNER',
39
39
  REGISTER_SERVICES = 'REGISTER_SERVICES',
40
40
  }
41
41
 
@@ -56,16 +56,15 @@ import {
56
56
  AssertionError,
57
57
  guaranteeType,
58
58
  type Clazz,
59
- returnUndefOnError,
60
- downloadFileUsingDataURI,
61
- formatDate,
62
- ContentType,
63
59
  } from '@finos/legend-shared';
64
60
  import { EditorSDLCState } from './EditorSDLCState.js';
65
61
  import { ModelImporterState } from './editor-state/ModelImporterState.js';
66
62
  import { ProjectConfigurationEditorState } from './editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.js';
67
63
  import type { ElementFileGenerationState } from './editor-state/element-editor-state/ElementFileGenerationState.js';
68
- import { DevToolPanelState } from './panel-group/DevToolPanelState.js';
64
+ import {
65
+ DevToolPanelState,
66
+ payloadDebugger,
67
+ } from './panel-group/DevToolPanelState.js';
69
68
  import {
70
69
  generateEditorRoute,
71
70
  generateSetupRoute,
@@ -89,7 +88,6 @@ import {
89
88
  ActionAlertType,
90
89
  APPLICATION_EVENT,
91
90
  DEFAULT_TAB_SIZE,
92
- DEFAULT_DATE_TIME_FORMAT,
93
91
  } from '@finos/legend-application';
94
92
  import { LEGEND_STUDIO_APP_EVENT } from '../../__lib__/LegendStudioEvent.js';
95
93
  import type { EditorMode } from './EditorMode.js';
@@ -668,23 +666,7 @@ export class EditorStore implements CommandRegistrar {
668
666
  baseUrl: this.applicationStore.config.engineServerUrl,
669
667
  queryBaseUrl: this.applicationStore.config.engineQueryServerUrl,
670
668
  enableCompression: true,
671
- payloadDebugger: (payload: unknown, identifier: string) => {
672
- const content =
673
- returnUndefOnError(() =>
674
- JSON.stringify(payload, undefined, 2),
675
- ) ??
676
- returnUndefOnError(() => `${payload}`) ??
677
- '';
678
- // TODO: we can also copy the debug content to clipboard
679
- downloadFileUsingDataURI(
680
- `PAYLOAD_DEBUG__${identifier}__${formatDate(
681
- new Date(Date.now()),
682
- DEFAULT_DATE_TIME_FORMAT,
683
- )}.json`,
684
- content,
685
- ContentType.TEXT_PLAIN,
686
- );
687
- },
669
+ payloadDebugger,
688
670
  },
689
671
  },
690
672
  {
@@ -292,7 +292,7 @@ export class ServiceTestSetupState {
292
292
  if (currentExpression.parametersValues[1] instanceof InstanceValue) {
293
293
  if (
294
294
  currentExpression.parametersValues[1].values[0] instanceof
295
- PackageableElementImplicitReference<Binding> &&
295
+ PackageableElementImplicitReference &&
296
296
  currentExpression.parametersValues[2] instanceof VariableExpression
297
297
  ) {
298
298
  res.push({
@@ -14,7 +14,14 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
+ import {
18
+ ContentType,
19
+ downloadFileUsingDataURI,
20
+ formatDate,
21
+ returnUndefOnError,
22
+ } from '@finos/legend-shared';
17
23
  import type { EditorStore } from '../EditorStore.js';
24
+ import { DEFAULT_DATE_TIME_FORMAT } from '@finos/legend-application';
18
25
 
19
26
  // TODO: We might potentially make this persisting data to local storage
20
27
  // as such the logic in this state might get a little more complicated, so we just leave it like this for now
@@ -25,3 +32,21 @@ export class DevToolPanelState {
25
32
  this.editorStore = editorStore;
26
33
  }
27
34
  }
35
+
36
+ export const payloadDebugger = (payload: unknown, identifier: string): void => {
37
+ let isJSON = false;
38
+ let content = returnUndefOnError(() => JSON.stringify(payload, undefined, 2));
39
+ if (content) {
40
+ isJSON = true;
41
+ }
42
+ content = content ?? returnUndefOnError(() => `${payload}`) ?? '';
43
+ // TODO: we can also copy the debug content to clipboard
44
+ downloadFileUsingDataURI(
45
+ `PAYLOAD_DEBUG__${identifier}__${formatDate(
46
+ new Date(Date.now()),
47
+ DEFAULT_DATE_TIME_FORMAT,
48
+ )}${isJSON ? '.json' : '.txt'}`,
49
+ content,
50
+ isJSON ? ContentType.APPLICATION_JSON : ContentType.TEXT_PLAIN,
51
+ );
52
+ };
@@ -24,10 +24,6 @@ import {
24
24
  LogEvent,
25
25
  IllegalStateError,
26
26
  StopWatch,
27
- returnUndefOnError,
28
- downloadFileUsingDataURI,
29
- formatDate,
30
- ContentType,
31
27
  } from '@finos/legend-shared';
32
28
  import {
33
29
  type ProjectViewerPathParams,
@@ -50,10 +46,7 @@ import {
50
46
  Workspace,
51
47
  } from '@finos/legend-server-sdlc';
52
48
  import { LEGEND_STUDIO_APP_EVENT } from '../../__lib__/LegendStudioEvent.js';
53
- import {
54
- DEFAULT_DATE_TIME_FORMAT,
55
- DEFAULT_TAB_SIZE,
56
- } from '@finos/legend-application';
49
+ import { DEFAULT_TAB_SIZE } from '@finos/legend-application';
57
50
  import { resolveVersion, StoreProjectData } from '@finos/legend-server-depot';
58
51
  import {
59
52
  type WorkflowManagerState,
@@ -70,6 +63,7 @@ import {
70
63
  } from '@finos/legend-graph';
71
64
  import { GRAPH_EDITOR_MODE } from '../editor/EditorConfig.js';
72
65
  import { LegendStudioTelemetryHelper } from '../../__lib__/LegendStudioTelemetryHelper.js';
66
+ import { payloadDebugger } from '../editor/panel-group/DevToolPanelState.js';
73
67
 
74
68
  interface ProjectViewerGraphBuilderMaterial {
75
69
  entities: Entity[];
@@ -372,23 +366,7 @@ export class ProjectViewerStore {
372
366
  queryBaseUrl:
373
367
  this.editorStore.applicationStore.config.engineQueryServerUrl,
374
368
  enableCompression: true,
375
- payloadDebugger: (payload: unknown, identifier: string) => {
376
- const content =
377
- returnUndefOnError(() =>
378
- JSON.stringify(payload, undefined, 2),
379
- ) ??
380
- returnUndefOnError(() => `${payload}`) ??
381
- '';
382
- // TODO: we can also copy the debug content to clipboard
383
- downloadFileUsingDataURI(
384
- `PAYLOAD_DEBUG__${identifier}__${formatDate(
385
- new Date(Date.now()),
386
- DEFAULT_DATE_TIME_FORMAT,
387
- )}.json`,
388
- content,
389
- ContentType.TEXT_PLAIN,
390
- );
391
- },
369
+ payloadDebugger,
392
370
  },
393
371
  },
394
372
  {