@wordpress/block-library
Version:
Block library for the WordPress editor.
8 lines (7 loc) • 993 B
Source Map (JSON)
{
"version": 3,
"sources": ["../../src/buttons/save.js"],
"sourcesContent": ["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { useBlockProps, useInnerBlocksProps } from '@wordpress/block-editor';\n\nexport default function save( { attributes, className } ) {\n\tconst { fontSize, style } = attributes;\n\tconst blockProps = useBlockProps.save( {\n\t\tclassName: clsx( className, {\n\t\t\t'has-custom-font-size': fontSize || style?.typography?.fontSize,\n\t\t} ),\n\t} );\n\tconst innerBlocksProps = useInnerBlocksProps.save( blockProps );\n\treturn <div { ...innerBlocksProps } />;\n}\n"],
"mappings": ";AAGA,OAAO,UAAU;AAKjB,SAAS,eAAe,2BAA2B;AAU3C;AARO,SAAR,KAAuB,EAAE,YAAY,UAAU,GAAI;AACzD,QAAM,EAAE,UAAU,MAAM,IAAI;AAC5B,QAAM,aAAa,cAAc,KAAM;AAAA,IACtC,WAAW,KAAM,WAAW;AAAA,MAC3B,wBAAwB,YAAY,OAAO,YAAY;AAAA,IACxD,CAAE;AAAA,EACH,CAAE;AACF,QAAM,mBAAmB,oBAAoB,KAAM,UAAW;AAC9D,SAAO,oBAAC,SAAM,GAAG,kBAAmB;AACrC;",
"names": []
}