synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
18 lines • 1.05 kB
TypeScript
export type EntityAclEditorProps = {
/** The ID of the entity on which to view/edit the ACL. Note that the ACL may actually belong to an entity ancestor (benefactor). */
entityId: string;
/** Invoked when the user can/cannot save the pending changes. */
onCanSaveChange: (canSaveChanges: boolean) => void;
/** Invoked when changes are successfully made. */
onUpdateSuccess: () => void;
/** Special case to show specific copy and allow changes to an inherited ACL immediately after a file is uploaded.
* Note that if this is true, the entityId should be the ID of the folder or project that is the benefactor of the newly uploaded file(s)
* @defaultValue false */
isAfterUpload?: boolean;
};
export type EntityAclEditorHandle = {
save: () => void;
};
declare const EntityAclEditorWithSuspense: import("react").ForwardRefExoticComponent<EntityAclEditorProps & import("react").RefAttributes<EntityAclEditorHandle>>;
export default EntityAclEditorWithSuspense;
//# sourceMappingURL=EntityAclEditor.d.ts.map