@perses-dev/dashboards 0.53.0-rc.1 → 0.53.0-rc.3

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 (373) hide show
  1. package/dist/cjs/components/AddGroupButton/AddGroupButton.js +1 -1
  2. package/dist/cjs/components/AddGroupButton/index.js +1 -1
  3. package/dist/cjs/components/AddPanelButton/AddPanelButton.js +1 -1
  4. package/dist/cjs/components/AddPanelButton/index.js +1 -1
  5. package/dist/cjs/components/Dashboard/Dashboard.js +1 -1
  6. package/dist/cjs/components/Dashboard/index.js +1 -1
  7. package/dist/cjs/components/DashboardStickyToolbar/DashboardStickyToolbar.js +6 -2
  8. package/dist/cjs/components/DashboardStickyToolbar/index.js +1 -1
  9. package/dist/cjs/components/DashboardToolbar/DashboardToolbar.js +6 -2
  10. package/dist/cjs/components/DashboardToolbar/index.js +1 -1
  11. package/dist/cjs/components/Datasources/DatasourceEditor.js +1 -1
  12. package/dist/cjs/components/Datasources/EditDatasourcesButton.js +1 -1
  13. package/dist/cjs/components/Datasources/index.js +1 -1
  14. package/dist/cjs/components/DeletePanelDialog/DeletePanelDialog.js +1 -1
  15. package/dist/cjs/components/DeletePanelDialog/index.js +1 -1
  16. package/dist/cjs/components/DeletePanelGroupDialog/DeletePanelGroupDialog.js +1 -1
  17. package/dist/cjs/components/DeletePanelGroupDialog/index.js +1 -1
  18. package/dist/cjs/components/DiscardChangesConfirmationDialog/DiscardChangesConfirmationDialog.js +1 -1
  19. package/dist/cjs/components/DiscardChangesConfirmationDialog/index.js +1 -1
  20. package/dist/cjs/components/DownloadButton/DownloadButton.js +8 -4
  21. package/dist/cjs/components/DownloadButton/index.js +1 -1
  22. package/dist/cjs/components/DownloadButton/serializeDashboard.js +22 -2
  23. package/dist/cjs/components/EditButton/EditButton.js +1 -1
  24. package/dist/cjs/components/EditButton/index.js +1 -1
  25. package/dist/cjs/components/EditJsonButton/EditJsonButton.js +1 -1
  26. package/dist/cjs/components/EditJsonButton/index.js +1 -1
  27. package/dist/cjs/components/EditJsonDialog/EditJsonDialog.js +1 -1
  28. package/dist/cjs/components/EditJsonDialog/index.js +1 -1
  29. package/dist/cjs/components/EmptyDashboard/EmptyDashboard.js +1 -1
  30. package/dist/cjs/components/EmptyDashboard/index.js +1 -1
  31. package/dist/cjs/components/GridLayout/GridContainer.js +1 -1
  32. package/dist/cjs/components/GridLayout/GridItemContent.js +1 -1
  33. package/dist/cjs/components/GridLayout/GridLayout.js +1 -1
  34. package/dist/cjs/components/GridLayout/GridTitle.js +1 -1
  35. package/dist/cjs/components/GridLayout/Row.js +1 -1
  36. package/dist/cjs/components/GridLayout/index.js +1 -1
  37. package/dist/cjs/components/LeaveDialog/LeaveDialog.js +1 -1
  38. package/dist/cjs/components/LeaveDialog/index.js +1 -1
  39. package/dist/cjs/components/Panel/HeaderIconButton.js +1 -1
  40. package/dist/cjs/components/Panel/Panel.js +84 -102
  41. package/dist/cjs/components/Panel/PanelActions.js +22 -6
  42. package/dist/cjs/components/Panel/PanelContent.js +1 -1
  43. package/dist/cjs/components/Panel/PanelHeader.js +84 -44
  44. package/dist/cjs/components/Panel/PanelLinks.js +1 -1
  45. package/dist/cjs/components/Panel/PanelPluginLoader.js +1 -1
  46. package/dist/cjs/components/Panel/index.js +2 -1
  47. package/dist/cjs/components/Panel/useSelectionItemActions.js +206 -0
  48. package/dist/cjs/components/PanelDrawer/PanelDrawer.js +21 -4
  49. package/dist/cjs/components/PanelDrawer/PanelEditorForm.js +32 -8
  50. package/dist/cjs/components/PanelDrawer/PanelPreview.js +6 -5
  51. package/dist/cjs/components/PanelDrawer/PanelQueriesSharedControls.js +1 -1
  52. package/dist/cjs/components/PanelDrawer/index.js +1 -1
  53. package/dist/cjs/components/PanelDrawer/usePanelEditor.js +12 -7
  54. package/dist/cjs/components/PanelGroupDialog/PanelGroupDialog.js +1 -1
  55. package/dist/cjs/components/PanelGroupDialog/PanelGroupEditorForm.js +1 -1
  56. package/dist/cjs/components/PanelGroupDialog/index.js +1 -1
  57. package/dist/cjs/components/QuerySummaryTable/QuerySummaryTable.js +1 -1
  58. package/dist/cjs/components/QuerySummaryTable/index.js +1 -1
  59. package/dist/cjs/components/QueryViewerDialog/QueryViewerDialog.js +1 -1
  60. package/dist/cjs/components/QueryViewerDialog/index.js +1 -1
  61. package/dist/cjs/components/SaveChangesConfirmationDialog/SaveChangesConfirmationDialog.js +1 -1
  62. package/dist/cjs/components/SaveChangesConfirmationDialog/index.js +1 -1
  63. package/dist/cjs/components/SaveDashboardButton/SaveDashboardButton.js +1 -1
  64. package/dist/cjs/components/SaveDashboardButton/index.js +1 -1
  65. package/dist/cjs/components/Variables/BuiltinVariableAccordions.js +1 -1
  66. package/dist/cjs/components/Variables/EditVariablesButton.js +1 -1
  67. package/dist/cjs/components/Variables/ListVariableListBox.js +1 -1
  68. package/dist/cjs/components/Variables/Variable.js +1 -1
  69. package/dist/cjs/components/Variables/VariableEditor.js +27 -1
  70. package/dist/cjs/components/Variables/VariableList.js +1 -1
  71. package/dist/cjs/components/Variables/index.js +1 -1
  72. package/dist/cjs/components/index.js +1 -1
  73. package/dist/cjs/constants/grid-layout-config.js +1 -1
  74. package/dist/cjs/constants/index.js +1 -1
  75. package/dist/cjs/constants/styles.js +1 -1
  76. package/dist/cjs/constants/user-interface-text.js +8 -8
  77. package/dist/cjs/context/DashboardProvider/DashboardProvider.js +1 -1
  78. package/dist/cjs/context/DashboardProvider/DashboardProviderWithQueryParams.js +1 -1
  79. package/dist/cjs/context/DashboardProvider/common.js +1 -1
  80. package/dist/cjs/context/DashboardProvider/dashboard-provider-api.js +15 -1
  81. package/dist/cjs/context/DashboardProvider/delete-panel-group-slice.js +1 -1
  82. package/dist/cjs/context/DashboardProvider/delete-panel-slice.js +2 -2
  83. package/dist/cjs/context/DashboardProvider/discard-changes-dialog-slice.js +1 -1
  84. package/dist/cjs/context/DashboardProvider/duplicate-panel-slice.js +1 -1
  85. package/dist/cjs/context/DashboardProvider/edit-json-dialog-slice.js +1 -1
  86. package/dist/cjs/context/DashboardProvider/index.js +1 -1
  87. package/dist/cjs/context/DashboardProvider/panel-editor-slice.js +1 -1
  88. package/dist/cjs/context/DashboardProvider/panel-group-editor-slice.js +1 -1
  89. package/dist/cjs/context/DashboardProvider/panel-group-slice.js +1 -1
  90. package/dist/cjs/context/DashboardProvider/panel-slice.js +1 -1
  91. package/dist/cjs/context/DashboardProvider/save-changes-dialog-slice.js +1 -1
  92. package/dist/cjs/context/DashboardProvider/view-panel-slice.js +1 -1
  93. package/dist/cjs/context/DatasourceStoreProvider.js +1 -1
  94. package/dist/cjs/context/PanelEditorProvider/PanelEditorProvider.js +1 -1
  95. package/dist/cjs/context/PanelEditorProvider/index.js +1 -1
  96. package/dist/cjs/context/VariableProvider/VariableProvider.js +1 -1
  97. package/dist/cjs/context/VariableProvider/hydrationUtils.js +1 -1
  98. package/dist/cjs/context/VariableProvider/index.js +1 -1
  99. package/dist/cjs/context/VariableProvider/query-params.js +1 -1
  100. package/dist/cjs/context/VariableProvider/utils.js +1 -1
  101. package/dist/cjs/context/index.js +1 -1
  102. package/dist/cjs/context/useDashboard.js +1 -1
  103. package/dist/cjs/index.js +1 -1
  104. package/dist/cjs/test/dashboard-provider.js +1 -1
  105. package/dist/cjs/test/datasource-provider.js +1 -1
  106. package/dist/cjs/test/index.js +1 -1
  107. package/dist/cjs/test/plugin-registry.js +1 -1
  108. package/dist/cjs/test/render.js +1 -1
  109. package/dist/cjs/test/setup-tests.js +1 -1
  110. package/dist/cjs/test/testDashboard.js +1 -1
  111. package/dist/cjs/utils/index.js +1 -1
  112. package/dist/cjs/utils/panelUtils.js +1 -1
  113. package/dist/cjs/views/ViewDashboard/DashboardApp.js +1 -1
  114. package/dist/cjs/views/ViewDashboard/ViewDashboard.js +1 -1
  115. package/dist/cjs/views/ViewDashboard/index.js +1 -1
  116. package/dist/cjs/views/index.js +1 -1
  117. package/dist/components/AddGroupButton/AddGroupButton.js +1 -1
  118. package/dist/components/AddGroupButton/AddGroupButton.js.map +1 -1
  119. package/dist/components/AddGroupButton/index.js +1 -1
  120. package/dist/components/AddGroupButton/index.js.map +1 -1
  121. package/dist/components/AddPanelButton/AddPanelButton.js +1 -1
  122. package/dist/components/AddPanelButton/AddPanelButton.js.map +1 -1
  123. package/dist/components/AddPanelButton/index.js +1 -1
  124. package/dist/components/AddPanelButton/index.js.map +1 -1
  125. package/dist/components/Dashboard/Dashboard.js +1 -1
  126. package/dist/components/Dashboard/Dashboard.js.map +1 -1
  127. package/dist/components/Dashboard/index.js +1 -1
  128. package/dist/components/Dashboard/index.js.map +1 -1
  129. package/dist/components/DashboardStickyToolbar/DashboardStickyToolbar.d.ts.map +1 -1
  130. package/dist/components/DashboardStickyToolbar/DashboardStickyToolbar.js +7 -3
  131. package/dist/components/DashboardStickyToolbar/DashboardStickyToolbar.js.map +1 -1
  132. package/dist/components/DashboardStickyToolbar/index.js +1 -1
  133. package/dist/components/DashboardStickyToolbar/index.js.map +1 -1
  134. package/dist/components/DashboardToolbar/DashboardToolbar.d.ts.map +1 -1
  135. package/dist/components/DashboardToolbar/DashboardToolbar.js +7 -3
  136. package/dist/components/DashboardToolbar/DashboardToolbar.js.map +1 -1
  137. package/dist/components/DashboardToolbar/index.js +1 -1
  138. package/dist/components/DashboardToolbar/index.js.map +1 -1
  139. package/dist/components/Datasources/DatasourceEditor.js +1 -1
  140. package/dist/components/Datasources/DatasourceEditor.js.map +1 -1
  141. package/dist/components/Datasources/EditDatasourcesButton.js +1 -1
  142. package/dist/components/Datasources/EditDatasourcesButton.js.map +1 -1
  143. package/dist/components/Datasources/index.js +1 -1
  144. package/dist/components/Datasources/index.js.map +1 -1
  145. package/dist/components/DeletePanelDialog/DeletePanelDialog.js +1 -1
  146. package/dist/components/DeletePanelDialog/DeletePanelDialog.js.map +1 -1
  147. package/dist/components/DeletePanelDialog/index.js +1 -1
  148. package/dist/components/DeletePanelDialog/index.js.map +1 -1
  149. package/dist/components/DeletePanelGroupDialog/DeletePanelGroupDialog.js +1 -1
  150. package/dist/components/DeletePanelGroupDialog/DeletePanelGroupDialog.js.map +1 -1
  151. package/dist/components/DeletePanelGroupDialog/index.js +1 -1
  152. package/dist/components/DeletePanelGroupDialog/index.js.map +1 -1
  153. package/dist/components/DiscardChangesConfirmationDialog/DiscardChangesConfirmationDialog.js +1 -1
  154. package/dist/components/DiscardChangesConfirmationDialog/DiscardChangesConfirmationDialog.js.map +1 -1
  155. package/dist/components/DiscardChangesConfirmationDialog/index.js +1 -1
  156. package/dist/components/DiscardChangesConfirmationDialog/index.js.map +1 -1
  157. package/dist/components/DownloadButton/DownloadButton.d.ts.map +1 -1
  158. package/dist/components/DownloadButton/DownloadButton.js +8 -4
  159. package/dist/components/DownloadButton/DownloadButton.js.map +1 -1
  160. package/dist/components/DownloadButton/index.js +1 -1
  161. package/dist/components/DownloadButton/index.js.map +1 -1
  162. package/dist/components/DownloadButton/serializeDashboard.d.ts +1 -1
  163. package/dist/components/DownloadButton/serializeDashboard.d.ts.map +1 -1
  164. package/dist/components/DownloadButton/serializeDashboard.js +22 -2
  165. package/dist/components/DownloadButton/serializeDashboard.js.map +1 -1
  166. package/dist/components/EditButton/EditButton.js +1 -1
  167. package/dist/components/EditButton/EditButton.js.map +1 -1
  168. package/dist/components/EditButton/index.js +1 -1
  169. package/dist/components/EditButton/index.js.map +1 -1
  170. package/dist/components/EditJsonButton/EditJsonButton.js +1 -1
  171. package/dist/components/EditJsonButton/EditJsonButton.js.map +1 -1
  172. package/dist/components/EditJsonButton/index.js +1 -1
  173. package/dist/components/EditJsonButton/index.js.map +1 -1
  174. package/dist/components/EditJsonDialog/EditJsonDialog.js +1 -1
  175. package/dist/components/EditJsonDialog/EditJsonDialog.js.map +1 -1
  176. package/dist/components/EditJsonDialog/index.js +1 -1
  177. package/dist/components/EditJsonDialog/index.js.map +1 -1
  178. package/dist/components/EmptyDashboard/EmptyDashboard.js +1 -1
  179. package/dist/components/EmptyDashboard/EmptyDashboard.js.map +1 -1
  180. package/dist/components/EmptyDashboard/index.js +1 -1
  181. package/dist/components/EmptyDashboard/index.js.map +1 -1
  182. package/dist/components/GridLayout/GridContainer.js +1 -1
  183. package/dist/components/GridLayout/GridContainer.js.map +1 -1
  184. package/dist/components/GridLayout/GridItemContent.js +1 -1
  185. package/dist/components/GridLayout/GridItemContent.js.map +1 -1
  186. package/dist/components/GridLayout/GridLayout.js +1 -1
  187. package/dist/components/GridLayout/GridLayout.js.map +1 -1
  188. package/dist/components/GridLayout/GridTitle.js +1 -1
  189. package/dist/components/GridLayout/GridTitle.js.map +1 -1
  190. package/dist/components/GridLayout/Row.js +1 -1
  191. package/dist/components/GridLayout/Row.js.map +1 -1
  192. package/dist/components/GridLayout/index.js +1 -1
  193. package/dist/components/GridLayout/index.js.map +1 -1
  194. package/dist/components/LeaveDialog/LeaveDialog.js +1 -1
  195. package/dist/components/LeaveDialog/LeaveDialog.js.map +1 -1
  196. package/dist/components/LeaveDialog/index.js +1 -1
  197. package/dist/components/LeaveDialog/index.js.map +1 -1
  198. package/dist/components/Panel/HeaderIconButton.js +1 -1
  199. package/dist/components/Panel/HeaderIconButton.js.map +1 -1
  200. package/dist/components/Panel/Panel.d.ts.map +1 -1
  201. package/dist/components/Panel/Panel.js +86 -104
  202. package/dist/components/Panel/Panel.js.map +1 -1
  203. package/dist/components/Panel/PanelActions.d.ts +3 -1
  204. package/dist/components/Panel/PanelActions.d.ts.map +1 -1
  205. package/dist/components/Panel/PanelActions.js +22 -6
  206. package/dist/components/Panel/PanelActions.js.map +1 -1
  207. package/dist/components/Panel/PanelContent.js +1 -1
  208. package/dist/components/Panel/PanelContent.js.map +1 -1
  209. package/dist/components/Panel/PanelHeader.d.ts +4 -3
  210. package/dist/components/Panel/PanelHeader.d.ts.map +1 -1
  211. package/dist/components/Panel/PanelHeader.js +86 -46
  212. package/dist/components/Panel/PanelHeader.js.map +1 -1
  213. package/dist/components/Panel/PanelLinks.js +1 -1
  214. package/dist/components/Panel/PanelLinks.js.map +1 -1
  215. package/dist/components/Panel/PanelPluginLoader.js +1 -1
  216. package/dist/components/Panel/PanelPluginLoader.js.map +1 -1
  217. package/dist/components/Panel/index.d.ts +1 -0
  218. package/dist/components/Panel/index.d.ts.map +1 -1
  219. package/dist/components/Panel/index.js +2 -1
  220. package/dist/components/Panel/index.js.map +1 -1
  221. package/dist/components/Panel/useSelectionItemActions.d.ts +22 -0
  222. package/dist/components/Panel/useSelectionItemActions.d.ts.map +1 -0
  223. package/dist/components/Panel/useSelectionItemActions.js +200 -0
  224. package/dist/components/Panel/useSelectionItemActions.js.map +1 -0
  225. package/dist/components/PanelDrawer/PanelDrawer.d.ts.map +1 -1
  226. package/dist/components/PanelDrawer/PanelDrawer.js +22 -5
  227. package/dist/components/PanelDrawer/PanelDrawer.js.map +1 -1
  228. package/dist/components/PanelDrawer/PanelEditorForm.d.ts +1 -0
  229. package/dist/components/PanelDrawer/PanelEditorForm.d.ts.map +1 -1
  230. package/dist/components/PanelDrawer/PanelEditorForm.js +32 -8
  231. package/dist/components/PanelDrawer/PanelEditorForm.js.map +1 -1
  232. package/dist/components/PanelDrawer/PanelPreview.d.ts.map +1 -1
  233. package/dist/components/PanelDrawer/PanelPreview.js +7 -6
  234. package/dist/components/PanelDrawer/PanelPreview.js.map +1 -1
  235. package/dist/components/PanelDrawer/PanelQueriesSharedControls.js +1 -1
  236. package/dist/components/PanelDrawer/PanelQueriesSharedControls.js.map +1 -1
  237. package/dist/components/PanelDrawer/index.js +1 -1
  238. package/dist/components/PanelDrawer/index.js.map +1 -1
  239. package/dist/components/PanelDrawer/usePanelEditor.d.ts.map +1 -1
  240. package/dist/components/PanelDrawer/usePanelEditor.js +12 -7
  241. package/dist/components/PanelDrawer/usePanelEditor.js.map +1 -1
  242. package/dist/components/PanelGroupDialog/PanelGroupDialog.js +1 -1
  243. package/dist/components/PanelGroupDialog/PanelGroupDialog.js.map +1 -1
  244. package/dist/components/PanelGroupDialog/PanelGroupEditorForm.js +1 -1
  245. package/dist/components/PanelGroupDialog/PanelGroupEditorForm.js.map +1 -1
  246. package/dist/components/PanelGroupDialog/index.js +1 -1
  247. package/dist/components/PanelGroupDialog/index.js.map +1 -1
  248. package/dist/components/QuerySummaryTable/QuerySummaryTable.js +1 -1
  249. package/dist/components/QuerySummaryTable/QuerySummaryTable.js.map +1 -1
  250. package/dist/components/QuerySummaryTable/index.js +1 -1
  251. package/dist/components/QuerySummaryTable/index.js.map +1 -1
  252. package/dist/components/QueryViewerDialog/QueryViewerDialog.js +1 -1
  253. package/dist/components/QueryViewerDialog/QueryViewerDialog.js.map +1 -1
  254. package/dist/components/QueryViewerDialog/index.js +1 -1
  255. package/dist/components/QueryViewerDialog/index.js.map +1 -1
  256. package/dist/components/SaveChangesConfirmationDialog/SaveChangesConfirmationDialog.js +1 -1
  257. package/dist/components/SaveChangesConfirmationDialog/SaveChangesConfirmationDialog.js.map +1 -1
  258. package/dist/components/SaveChangesConfirmationDialog/index.js +1 -1
  259. package/dist/components/SaveChangesConfirmationDialog/index.js.map +1 -1
  260. package/dist/components/SaveDashboardButton/SaveDashboardButton.js +1 -1
  261. package/dist/components/SaveDashboardButton/SaveDashboardButton.js.map +1 -1
  262. package/dist/components/SaveDashboardButton/index.js +1 -1
  263. package/dist/components/SaveDashboardButton/index.js.map +1 -1
  264. package/dist/components/Variables/BuiltinVariableAccordions.js +1 -1
  265. package/dist/components/Variables/BuiltinVariableAccordions.js.map +1 -1
  266. package/dist/components/Variables/EditVariablesButton.js +1 -1
  267. package/dist/components/Variables/EditVariablesButton.js.map +1 -1
  268. package/dist/components/Variables/ListVariableListBox.js +1 -1
  269. package/dist/components/Variables/ListVariableListBox.js.map +1 -1
  270. package/dist/components/Variables/Variable.js +1 -1
  271. package/dist/components/Variables/Variable.js.map +1 -1
  272. package/dist/components/Variables/VariableEditor.d.ts.map +1 -1
  273. package/dist/components/Variables/VariableEditor.js +27 -1
  274. package/dist/components/Variables/VariableEditor.js.map +1 -1
  275. package/dist/components/Variables/VariableList.js +1 -1
  276. package/dist/components/Variables/VariableList.js.map +1 -1
  277. package/dist/components/Variables/index.js +1 -1
  278. package/dist/components/Variables/index.js.map +1 -1
  279. package/dist/components/index.js +1 -1
  280. package/dist/components/index.js.map +1 -1
  281. package/dist/constants/grid-layout-config.js +1 -1
  282. package/dist/constants/grid-layout-config.js.map +1 -1
  283. package/dist/constants/index.js +1 -1
  284. package/dist/constants/index.js.map +1 -1
  285. package/dist/constants/styles.js +1 -1
  286. package/dist/constants/styles.js.map +1 -1
  287. package/dist/constants/user-interface-text.d.ts +7 -7
  288. package/dist/constants/user-interface-text.d.ts.map +1 -1
  289. package/dist/constants/user-interface-text.js +8 -8
  290. package/dist/constants/user-interface-text.js.map +1 -1
  291. package/dist/context/DashboardProvider/DashboardProvider.js +1 -1
  292. package/dist/context/DashboardProvider/DashboardProvider.js.map +1 -1
  293. package/dist/context/DashboardProvider/DashboardProviderWithQueryParams.js +1 -1
  294. package/dist/context/DashboardProvider/DashboardProviderWithQueryParams.js.map +1 -1
  295. package/dist/context/DashboardProvider/common.js +1 -1
  296. package/dist/context/DashboardProvider/common.js.map +1 -1
  297. package/dist/context/DashboardProvider/dashboard-provider-api.d.ts +1 -0
  298. package/dist/context/DashboardProvider/dashboard-provider-api.d.ts.map +1 -1
  299. package/dist/context/DashboardProvider/dashboard-provider-api.js +12 -1
  300. package/dist/context/DashboardProvider/dashboard-provider-api.js.map +1 -1
  301. package/dist/context/DashboardProvider/delete-panel-group-slice.js +1 -1
  302. package/dist/context/DashboardProvider/delete-panel-group-slice.js.map +1 -1
  303. package/dist/context/DashboardProvider/delete-panel-slice.js +2 -2
  304. package/dist/context/DashboardProvider/delete-panel-slice.js.map +1 -1
  305. package/dist/context/DashboardProvider/discard-changes-dialog-slice.js +1 -1
  306. package/dist/context/DashboardProvider/discard-changes-dialog-slice.js.map +1 -1
  307. package/dist/context/DashboardProvider/duplicate-panel-slice.js +1 -1
  308. package/dist/context/DashboardProvider/duplicate-panel-slice.js.map +1 -1
  309. package/dist/context/DashboardProvider/edit-json-dialog-slice.js +1 -1
  310. package/dist/context/DashboardProvider/edit-json-dialog-slice.js.map +1 -1
  311. package/dist/context/DashboardProvider/index.js +1 -1
  312. package/dist/context/DashboardProvider/index.js.map +1 -1
  313. package/dist/context/DashboardProvider/panel-editor-slice.js +1 -1
  314. package/dist/context/DashboardProvider/panel-editor-slice.js.map +1 -1
  315. package/dist/context/DashboardProvider/panel-group-editor-slice.js +1 -1
  316. package/dist/context/DashboardProvider/panel-group-editor-slice.js.map +1 -1
  317. package/dist/context/DashboardProvider/panel-group-slice.js +1 -1
  318. package/dist/context/DashboardProvider/panel-group-slice.js.map +1 -1
  319. package/dist/context/DashboardProvider/panel-slice.js +1 -1
  320. package/dist/context/DashboardProvider/panel-slice.js.map +1 -1
  321. package/dist/context/DashboardProvider/save-changes-dialog-slice.js +1 -1
  322. package/dist/context/DashboardProvider/save-changes-dialog-slice.js.map +1 -1
  323. package/dist/context/DashboardProvider/view-panel-slice.js +1 -1
  324. package/dist/context/DashboardProvider/view-panel-slice.js.map +1 -1
  325. package/dist/context/DatasourceStoreProvider.js +1 -1
  326. package/dist/context/DatasourceStoreProvider.js.map +1 -1
  327. package/dist/context/PanelEditorProvider/PanelEditorProvider.js +1 -1
  328. package/dist/context/PanelEditorProvider/PanelEditorProvider.js.map +1 -1
  329. package/dist/context/PanelEditorProvider/index.js +1 -1
  330. package/dist/context/PanelEditorProvider/index.js.map +1 -1
  331. package/dist/context/VariableProvider/VariableProvider.js +1 -1
  332. package/dist/context/VariableProvider/VariableProvider.js.map +1 -1
  333. package/dist/context/VariableProvider/hydrationUtils.js +1 -1
  334. package/dist/context/VariableProvider/hydrationUtils.js.map +1 -1
  335. package/dist/context/VariableProvider/index.js +1 -1
  336. package/dist/context/VariableProvider/index.js.map +1 -1
  337. package/dist/context/VariableProvider/query-params.js +1 -1
  338. package/dist/context/VariableProvider/query-params.js.map +1 -1
  339. package/dist/context/VariableProvider/utils.js +1 -1
  340. package/dist/context/VariableProvider/utils.js.map +1 -1
  341. package/dist/context/index.js +1 -1
  342. package/dist/context/index.js.map +1 -1
  343. package/dist/context/useDashboard.js +1 -1
  344. package/dist/context/useDashboard.js.map +1 -1
  345. package/dist/index.js +1 -1
  346. package/dist/index.js.map +1 -1
  347. package/dist/test/dashboard-provider.js +1 -1
  348. package/dist/test/dashboard-provider.js.map +1 -1
  349. package/dist/test/datasource-provider.js +1 -1
  350. package/dist/test/datasource-provider.js.map +1 -1
  351. package/dist/test/index.js +1 -1
  352. package/dist/test/index.js.map +1 -1
  353. package/dist/test/plugin-registry.js +1 -1
  354. package/dist/test/plugin-registry.js.map +1 -1
  355. package/dist/test/render.js +1 -1
  356. package/dist/test/render.js.map +1 -1
  357. package/dist/test/setup-tests.js +1 -1
  358. package/dist/test/setup-tests.js.map +1 -1
  359. package/dist/test/testDashboard.js +1 -1
  360. package/dist/test/testDashboard.js.map +1 -1
  361. package/dist/utils/index.js +1 -1
  362. package/dist/utils/index.js.map +1 -1
  363. package/dist/utils/panelUtils.js +1 -1
  364. package/dist/utils/panelUtils.js.map +1 -1
  365. package/dist/views/ViewDashboard/DashboardApp.js +1 -1
  366. package/dist/views/ViewDashboard/DashboardApp.js.map +1 -1
  367. package/dist/views/ViewDashboard/ViewDashboard.js +1 -1
  368. package/dist/views/ViewDashboard/ViewDashboard.js.map +1 -1
  369. package/dist/views/ViewDashboard/index.js +1 -1
  370. package/dist/views/ViewDashboard/index.js.map +1 -1
  371. package/dist/views/index.js +1 -1
  372. package/dist/views/index.js.map +1 -1
  373. package/package.json +4 -4
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2024 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -39,6 +39,7 @@ function DashboardStickyToolbar(props) {
39
39
  });
40
40
  const isSticky = scrollTrigger && props.initialVariableIsSticky && isPin;
41
41
  const isBiggerThanMd = (0, _material.useMediaQuery)((0, _material.useTheme)().breakpoints.up('md'));
42
+ const { timeZone, setTimeZone } = (0, _pluginsystem.useTimeZoneParams)('local');
42
43
  return(// marginBottom={-1} counteracts the marginBottom={1} on every variable input.
43
44
  // The margin on the inputs is for spacing between inputs, but is not meant to add space to bottom of the container.
44
45
  /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
@@ -99,7 +100,10 @@ function DashboardStickyToolbar(props) {
99
100
  ml: isBiggerThanMd ? 1.5 : 'auto',
100
101
  direction: "row",
101
102
  justifyContent: "end",
102
- children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_pluginsystem.TimeRangeControls, {})
103
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_pluginsystem.TimeRangeControls, {
104
+ timeZone: timeZone,
105
+ onTimeZoneChange: (tz)=>setTimeZone(tz.value)
106
+ })
103
107
  })
104
108
  ]
105
109
  })
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -37,6 +37,7 @@ const _DashboardStickyToolbar = require("../DashboardStickyToolbar");
37
37
  const DashboardToolbar = (props)=>{
38
38
  const { dashboardName, dashboardTitleComponent, initialVariableIsSticky, isReadonly, isVariableEnabled, isDatasourceEnabled, onEditButtonClick, onCancelButtonClick, onSave } = props;
39
39
  const { isEditMode } = (0, _context.useEditMode)();
40
+ const { timeZone, setTimeZone } = (0, _pluginsystem.useTimeZoneParams)('local');
40
41
  const isBiggerThanSm = (0, _material.useMediaQuery)((0, _material.useTheme)().breakpoints.up('sm'));
41
42
  const isBiggerThanMd = (0, _material.useMediaQuery)((0, _material.useTheme)().breakpoints.up('md'));
42
43
  const dashboardTitle = dashboardTitleComponent ? dashboardTitleComponent : /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
@@ -138,7 +139,10 @@ const DashboardToolbar = (props)=>{
138
139
  mt: 1,
139
140
  ml: 1,
140
141
  children: [
141
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_pluginsystem.TimeRangeControls, {}),
142
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_pluginsystem.TimeRangeControls, {
143
+ timeZone: timeZone,
144
+ onTimeZoneChange: (tz)=>setTimeZone(tz.value)
145
+ }),
142
146
  /*#__PURE__*/ (0, _jsxruntime.jsx)(_DownloadButton.DownloadButton, {}),
143
147
  /*#__PURE__*/ (0, _jsxruntime.jsx)(_EditJsonButton.EditJsonButton, {
144
148
  isReadonly: !isEditMode
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -92,7 +92,7 @@ function DownloadButton() {
92
92
  type: contentType
93
93
  }));
94
94
  // Simulate click
95
- hiddenLinkRef.current.download = `${dashboard.metadata.name}${shape === 'cr' ? '-cr' : ''}.${format}`;
95
+ hiddenLinkRef.current.download = `${dashboard.metadata.name}${shape ? `-${shape}` : ''}.${format}`;
96
96
  hiddenLinkRef.current.href = hiddenLinkUrl;
97
97
  hiddenLinkRef.current.click();
98
98
  // Remove blob URL (for memory management)
@@ -131,8 +131,12 @@ function DownloadButton() {
131
131
  children: "YAML"
132
132
  }),
133
133
  /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.MenuItem, {
134
- onClick: handleItemClick('yaml', 'cr'),
135
- children: "YAML (CR)"
134
+ onClick: handleItemClick('yaml', 'cr-v1alpha2'),
135
+ children: "YAML (CR v1alpha2)"
136
+ }),
137
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.MenuItem, {
138
+ onClick: handleItemClick('yaml', 'cr-v1alpha1'),
139
+ children: "YAML (CR v1alpha1)"
136
140
  })
137
141
  ]
138
142
  })
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -23,7 +23,7 @@ Object.defineProperty(exports, "serializeDashboard", {
23
23
  const _yaml = require("yaml");
24
24
  function serializeYaml(dashboard, shape) {
25
25
  let content;
26
- if (shape === 'cr') {
26
+ if (shape === 'cr-v1alpha1') {
27
27
  const name = dashboard.metadata.name.toLowerCase().replace(/[^a-z0-9-]/g, '-');
28
28
  content = (0, _yaml.stringify)({
29
29
  apiVersion: 'perses.dev/v1alpha1',
@@ -41,6 +41,26 @@ function serializeYaml(dashboard, shape) {
41
41
  }, {
42
42
  schema: 'yaml-1.1'
43
43
  });
44
+ } else if (shape === 'cr-v1alpha2') {
45
+ const name = dashboard.metadata.name.toLowerCase().replace(/[^a-z0-9-]/g, '-');
46
+ content = (0, _yaml.stringify)({
47
+ apiVersion: 'perses.dev/v1alpha2',
48
+ kind: 'PersesDashboard',
49
+ metadata: {
50
+ labels: {
51
+ 'app.kubernetes.io/name': 'perses-dashboard',
52
+ 'app.kubernetes.io/instance': name,
53
+ 'app.kubernetes.io/part-of': 'perses-operator'
54
+ },
55
+ name,
56
+ namespace: dashboard.metadata.project
57
+ },
58
+ spec: {
59
+ config: dashboard.spec
60
+ }
61
+ }, {
62
+ schema: 'yaml-1.1'
63
+ });
44
64
  } else {
45
65
  content = (0, _yaml.stringify)(dashboard, {
46
66
  schema: 'yaml-1.1'
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2025 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2025 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2025 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2023 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2025 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2025 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2025 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -1,4 +1,4 @@
1
- // Copyright 2025 The Perses Authors
1
+ // Copyright The Perses Authors
2
2
  // Licensed under the Apache License, Version 2.0 (the "License");
3
3
  // you may not use this file except in compliance with the License.
4
4
  // You may obtain a copy of the License at
@@ -72,31 +72,17 @@ const Panel = /*#__PURE__*/ (0, _react.memo)(function Panel(props) {
72
72
  // Load plugin actions from the plugin
73
73
  const [pluginActions, setPluginActions] = (0, _react.useState)([]);
74
74
  (0, _react.useEffect)(()=>{
75
- let cancelled = false;
76
75
  const loadPluginActions = async ()=>{
77
76
  const panelPluginKind = definition.spec.plugin.kind;
78
- const panelProps = panelPropsForActions;
79
- if (!panelPluginKind || !panelProps) {
80
- if (!cancelled) {
81
- setPluginActions([]);
82
- }
77
+ if (!panelPluginKind || !panelPropsForActions || !getPlugin || typeof getPlugin !== 'function') {
78
+ setPluginActions([]);
83
79
  return;
84
80
  }
85
81
  try {
86
- // Add defensive check for getPlugin availability
87
- if (!getPlugin || typeof getPlugin !== 'function') {
88
- if (!cancelled) {
89
- setPluginActions([]);
90
- }
91
- return;
92
- }
93
82
  const plugin = await getPlugin('Panel', panelPluginKind);
94
- if (cancelled) return;
95
83
  // More defensive checking for plugin and actions
96
84
  if (!plugin || typeof plugin !== 'object' || !plugin.actions || !Array.isArray(plugin.actions) || plugin.actions.length === 0) {
97
- if (!cancelled) {
98
- setPluginActions([]);
99
- }
85
+ setPluginActions([]);
100
86
  return;
101
87
  }
102
88
  // Render plugin actions in header location
@@ -105,31 +91,20 @@ const Panel = /*#__PURE__*/ (0, _react.memo)(function Panel(props) {
105
91
  try {
106
92
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
107
93
  return /*#__PURE__*/ (0, _jsxruntime.jsx)(ActionComponent, {
108
- ...panelProps
94
+ ...panelPropsForActions
109
95
  }, `plugin-action-${index}`);
110
96
  } catch (error) {
111
97
  console.warn(`Failed to render plugin action ${index}:`, error);
112
98
  return null;
113
99
  }
114
100
  }).filter((item)=>Boolean(item));
115
- if (!cancelled) {
116
- setPluginActions(headerActions);
117
- }
101
+ setPluginActions(headerActions);
118
102
  } catch (error) {
119
- if (!cancelled) {
120
- console.warn('Failed to load plugin actions:', error);
121
- setPluginActions([]);
122
- }
103
+ console.warn('Failed to load plugin actions:', error);
104
+ setPluginActions([]);
123
105
  }
124
106
  };
125
- // Use setTimeout to defer the async operation to the next tick
126
- const timeoutId = setTimeout(()=>{
127
- loadPluginActions();
128
- }, 0);
129
- return ()=>{
130
- cancelled = true;
131
- clearTimeout(timeoutId);
132
- };
107
+ loadPluginActions();
133
108
  }, [
134
109
  definition.spec.plugin.kind,
135
110
  panelPropsForActions,
@@ -143,76 +118,83 @@ const Panel = /*#__PURE__*/ (0, _react.memo)(function Panel(props) {
143
118
  };
144
119
  // default value for showIcons: if the dashboard is in editing mode or the panel is in fullscreen mode: 'always', otherwise 'hover'
145
120
  const showIcons = panelOptions?.showIcons ?? (editHandlers || readHandlers?.isPanelViewed ? 'always' : 'hover');
146
- return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Card, {
147
- component: "section",
148
- sx: (0, _components.combineSx)({
149
- width: '100%',
150
- height: '100%',
151
- display: 'flex',
152
- flexFlow: 'column nowrap',
153
- ':hover': {
154
- '--panel-hover': 'block'
155
- }
156
- }, sx),
157
- variant: "outlined",
158
- onMouseEnter: handleMouseEnter,
159
- onMouseLeave: handleMouseLeave,
160
- "aria-labelledby": headerId,
161
- "aria-describedby": headerId,
162
- "data-testid": "panel",
163
- ...others,
164
- children: [
165
- !panelOptions?.hideHeader && /*#__PURE__*/ (0, _jsxruntime.jsx)(_PanelHeader.PanelHeader, {
166
- extra: panelOptions?.extra?.({
167
- panelDefinition: definition,
168
- panelGroupItemId
169
- }),
170
- id: headerId,
171
- title: definition.spec.display.name,
172
- description: definition.spec.display.description,
173
- queryResults: queryResults,
174
- readHandlers: readHandlers,
175
- editHandlers: editHandlers,
176
- viewQueriesHandler: viewQueriesHandler,
177
- links: definition.spec.links,
178
- pluginActions: pluginActions,
179
- showIcons: showIcons,
180
- sx: {
181
- py: '2px',
182
- pl: '8px',
183
- pr: '2px'
184
- },
185
- dimension: contentDimensions
186
- }),
187
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.CardContent, {
188
- component: "figure",
189
- sx: {
190
- position: 'relative',
191
- overflow: 'hidden',
192
- flexGrow: 1,
193
- margin: 0,
194
- padding: 0,
195
- // Override MUI default style for last-child
196
- ':last-child': {
197
- padding: 0
121
+ const itemActionsConfig = definition.spec.plugin.spec?.actions ? definition.spec.plugin.spec.actions : undefined;
122
+ const itemActionsListConfig = itemActionsConfig?.enabled && itemActionsConfig.displayInHeader ? itemActionsConfig.actionsList : [];
123
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_components.SelectionProvider, {
124
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_components.ItemActionsProvider, {
125
+ children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Card, {
126
+ component: "section",
127
+ sx: (0, _components.combineSx)({
128
+ width: '100%',
129
+ height: '100%',
130
+ display: 'flex',
131
+ flexFlow: 'column nowrap',
132
+ ':hover': {
133
+ '--panel-hover': 'block'
198
134
  }
199
- },
200
- ref: setContentElement,
201
- children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_components.ErrorBoundary, {
202
- FallbackComponent: _components.ErrorAlert,
203
- resetKeys: [
204
- definition.spec,
205
- queryResults
206
- ],
207
- children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_PanelContent.PanelContent, {
208
- definition: definition,
209
- panelPluginKind: definition.spec.plugin.kind,
210
- spec: definition.spec.plugin.spec,
211
- contentDimensions: contentDimensions,
212
- queryResults: queryResults
135
+ }, sx),
136
+ variant: "outlined",
137
+ onMouseEnter: handleMouseEnter,
138
+ onMouseLeave: handleMouseLeave,
139
+ "aria-labelledby": headerId,
140
+ "aria-describedby": headerId,
141
+ "data-testid": "panel",
142
+ ...others,
143
+ children: [
144
+ !panelOptions?.hideHeader && /*#__PURE__*/ (0, _jsxruntime.jsx)(_PanelHeader.PanelHeader, {
145
+ extra: panelOptions?.extra?.({
146
+ panelDefinition: definition,
147
+ panelGroupItemId
148
+ }),
149
+ id: headerId,
150
+ title: definition.spec.display?.name ?? '',
151
+ description: definition.spec.display?.description,
152
+ queryResults: queryResults,
153
+ readHandlers: readHandlers,
154
+ editHandlers: editHandlers,
155
+ viewQueriesHandler: viewQueriesHandler,
156
+ links: definition.spec.links,
157
+ pluginActions: pluginActions,
158
+ itemActionsListConfig: itemActionsListConfig,
159
+ showIcons: showIcons,
160
+ sx: {
161
+ py: '2px',
162
+ pl: '8px',
163
+ pr: '2px'
164
+ },
165
+ dimension: contentDimensions
166
+ }),
167
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.CardContent, {
168
+ component: "figure",
169
+ sx: {
170
+ position: 'relative',
171
+ overflow: 'hidden',
172
+ flexGrow: 1,
173
+ margin: 0,
174
+ padding: 0,
175
+ // Override MUI default style for last-child
176
+ ':last-child': {
177
+ padding: 0
178
+ }
179
+ },
180
+ ref: setContentElement,
181
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_components.ErrorBoundary, {
182
+ FallbackComponent: _components.ErrorAlert,
183
+ resetKeys: [
184
+ definition.spec,
185
+ queryResults
186
+ ],
187
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_PanelContent.PanelContent, {
188
+ definition: definition,
189
+ panelPluginKind: definition.spec.plugin.kind,
190
+ spec: definition.spec.plugin.spec,
191
+ contentDimensions: contentDimensions,
192
+ queryResults: queryResults
193
+ })
194
+ })
213
195
  })
214
- })
196
+ ]
215
197
  })
216
- ]
198
+ })
217
199
  });
218
200
  });