@acvl/frontend-components 0.0.31 → 0.0.32

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.
package/dist/cjs/index.js CHANGED
@@ -28514,7 +28514,8 @@ function DetailPage(props) {
28514
28514
  if (props.pageType == "detail") {
28515
28515
  if (!canEdit && !canDelete)
28516
28516
  return null;
28517
- return (jsxRuntime.jsxs(material.Stack, { direction: "row", spacing: 1, children: [canDelete && props.api.delete && (jsxRuntime.jsx(DeleteButton, { mutation: props.api.delete.mutation, disableNavBack: props.slotProps?.deleteButton?.disableNavBack })), canEdit && jsxRuntime.jsx(EditButton, {})] }));
28517
+ return (jsxRuntime.jsxs(material.Stack, { direction: "row", spacing: 1, children: [canDelete && props.api.delete && (jsxRuntime.jsx(DeleteButton, { mutation: props.api.delete.mutation, disableNavBack: props.slotProps?.deleteButton?.disableNavBack })), canEdit && jsxRuntime.jsx(EditButton, {}), props.slots?.extraButtons &&
28518
+ lodash.map(props.slots.extraButtons, (btn) => btn(data?.id))] }));
28518
28519
  }
28519
28520
  else {
28520
28521
  return (jsxRuntime.jsx(SaveCancelButton, { slotProps: {