@wordpress/block-library
Version:
Block library for the WordPress editor.
1 lines • 1.44 kB
Source Map (JSON)
{"version":3,"file":"advanced-controls.mjs","names":["blockEditorPrivateApis"],"sources":["../../../../src/terms-query/edit/inspector-controls/advanced-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 AdvancedControls( {\n\tTagName,\n\tsetAttributes,\n\tclientId,\n} ) {\n\treturn (\n\t\t<InspectorControls group=\"advanced\">\n\t\t\t<HTMLElementControl\n\t\t\t\ttagName={ TagName }\n\t\t\t\tonChange={ ( value ) => setAttributes( { tagName: value } ) }\n\t\t\t\tclientId={ clientId }\n\t\t\t\toptions={ [\n\t\t\t\t\t{ label: __( 'Default (<div>)' ), value: 'div' },\n\t\t\t\t\t{ label: '<main>', value: 'main' },\n\t\t\t\t\t{ label: '<section>', value: 'section' },\n\t\t\t\t\t{ label: '<aside>', value: 'aside' },\n\t\t\t\t] }\n\t\t\t/>\n\t\t</InspectorControls>\n\t);\n}\n"],"mappings":";;;;;AAOA,MAAM,EAAE,uBAAuB,OAAQA,WAAuB;AAE9D,SAAwB,iBAAkB,EACzC,SACA,eACA,YACG;CACH,OACC,oBAAC,mBAAD;EAAmB,OAAM;EACxB,UAAA,oBAAC,oBAAD;GACC,SAAU;GACV,WAAa,UAAW,cAAe,EAAE,SAAS,MAAM,CAAE;GAC/C;GACX,SAAU;IACT;KAAE,OAAO,GAAI,iBAAkB;KAAG,OAAO;IAAM;IAC/C;KAAE,OAAO;KAAU,OAAO;IAAO;IACjC;KAAE,OAAO;KAAa,OAAO;IAAU;IACvC;KAAE,OAAO;KAAW,OAAO;IAAQ;GACpC;EACA,CAAA;CACiB,CAAA;AAErB"}