UNPKG

@wordpress/block-library

Version:
1 lines • 1.46 kB
{"version":3,"file":"comments-inspector-controls.mjs","names":["blockEditorPrivateApis"],"sources":["../../../src/comments/edit/comments-inspector-controls.jsx"],"sourcesContent":["import { __ } from '@wordpress/i18n';\nimport {\n\tInspectorControls,\n\tprivateApis as blockEditorPrivateApis,\n} from '@wordpress/block-editor';\nimport { unlock } from '../../lock-unlock';\n\nconst { HTMLElementControl } = unlock( blockEditorPrivateApis );\n\nexport default function CommentsInspectorControls( {\n\tattributes: { tagName },\n\tsetAttributes,\n} ) {\n\treturn (\n\t\t<InspectorControls>\n\t\t\t<InspectorControls group=\"advanced\">\n\t\t\t\t<HTMLElementControl\n\t\t\t\t\ttagName={ tagName }\n\t\t\t\t\tonChange={ ( value ) =>\n\t\t\t\t\t\tsetAttributes( { tagName: value } )\n\t\t\t\t\t}\n\t\t\t\t\toptions={ [\n\t\t\t\t\t\t{ label: __( 'Default (<div>)' ), value: 'div' },\n\t\t\t\t\t\t{ label: '<section>', value: 'section' },\n\t\t\t\t\t\t{ label: '<aside>', value: 'aside' },\n\t\t\t\t\t] }\n\t\t\t\t/>\n\t\t\t</InspectorControls>\n\t\t</InspectorControls>\n\t);\n}\n"],"mappings":";;;;;AAOA,MAAM,EAAE,uBAAuB,OAAQA,WAAuB;AAE9D,SAAwB,0BAA2B,EAClD,YAAY,EAAE,WACd,iBACG;CACH,OACC,oBAAC,mBAAD,EAAA,UACC,oBAAC,mBAAD;EAAmB,OAAM;EACxB,UAAA,oBAAC,oBAAD;GACW;GACV,WAAa,UACZ,cAAe,EAAE,SAAS,MAAM,CAAE;GAEnC,SAAU;IACT;KAAE,OAAO,GAAI,iBAAkB;KAAG,OAAO;IAAM;IAC/C;KAAE,OAAO;KAAa,OAAO;IAAU;IACvC;KAAE,OAAO;KAAW,OAAO;IAAQ;GACpC;EACA,CAAA;CACiB,CAAA,EACD,CAAA;AAErB"}