@wordpress/block-editor
Version:
8 lines (7 loc) • 1.19 kB
Source Map (JSON)
{
"version": 3,
"sources": ["../../../src/components/block-title/index.js"],
"sourcesContent": ["/**\n * Internal dependencies\n */\n\nimport useBlockDisplayTitle from './use-block-display-title';\n\n/**\n * Renders the block's configured title as a string, or empty if the title\n * cannot be determined.\n *\n * @example\n *\n * ```jsx\n * <BlockTitle clientId=\"afd1cb17-2c08-4e7a-91be-007ba7ddc3a1\" maximumLength={ 17 }/>\n * ```\n *\n * @param {Object} props\n * @param {string} props.clientId Client ID of block.\n * @param {number|undefined} props.maximumLength The maximum length that the block title string may be before truncated.\n * @param {string|undefined} props.context The context to pass to `getBlockLabel`.\n *\n * @return {JSX.Element} Block title.\n */\nexport default function BlockTitle( { clientId, maximumLength, context } ) {\n\treturn useBlockDisplayTitle( { clientId, maximumLength, context } );\n}\n"],
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,qCAAiC;AAmBlB,SAAR,WAA6B,EAAE,UAAU,eAAe,QAAQ,GAAI;AAC1E,aAAO,+BAAAA,SAAsB,EAAE,UAAU,eAAe,QAAQ,CAAE;AACnE;",
"names": ["useBlockDisplayTitle"]
}