Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions packages/block-library/src/audio/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,19 @@ import { Caption } from '../utils/caption';

const ALLOWED_MEDIA_TYPES = [ 'audio' ];

/**
* Renders the `core/audio` block on the editor.
*
* @param {Object} props React props.
* @param {Object} props.attributes Block attributes: `blob`, `src`, `caption`, `id`, `autoplay`, `loop` and `preload`.
* @param {string} props.className Class name generated for the block.
* @param {Function} props.setAttributes Callback for updating block attributes.
* @param {Function} props.onReplace Callback for replacing this block with other blocks.
* @param {boolean} props.isSelected Whether the block is the only selected block.
* @param {Function} props.insertBlocksAfter Callback for inserting blocks after this one.
*
* @return {React.JSX.Element} React element.
*/
function AudioEdit( {
attributes,
className,
Expand Down
Loading