UNPKG

@wordpress/edit-post

Version:
8 lines (7 loc) 1.67 kB
{ "version": 3, "sources": ["../../../src/components/preferences-modal/index.js"], "sourcesContent": ["/**\n * WordPress dependencies\n */\n\nimport { __ } from '@wordpress/i18n';\nimport { privateApis as preferencesPrivateApis } from '@wordpress/preferences';\nimport { privateApis as editorPrivateApis } from '@wordpress/editor';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from '../../lock-unlock';\nimport MetaBoxesSection from './meta-boxes-section';\n\nconst { PreferenceToggleControl } = unlock( preferencesPrivateApis );\nconst { PreferencesModal } = unlock( editorPrivateApis );\n\nexport default function EditPostPreferencesModal() {\n\tconst extraSections = {\n\t\tgeneral: <MetaBoxesSection title={ __( 'Advanced' ) } />,\n\t\tappearance: (\n\t\t\t<PreferenceToggleControl\n\t\t\t\tscope=\"core/edit-post\"\n\t\t\t\tfeatureName=\"themeStyles\"\n\t\t\t\thelp={ __( 'Make the editor look like your theme.' ) }\n\t\t\t\tlabel={ __( 'Use theme styles' ) }\n\t\t\t/>\n\t\t),\n\t};\n\n\treturn <PreferencesModal extraSections={ extraSections } />;\n}\n"], "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,kBAAmB;AACnB,yBAAsD;AACtD,oBAAiD;AAKjD,yBAAuB;AACvB,gCAA6B;AAOlB;AALX,IAAM,EAAE,wBAAwB,QAAI,2BAAQ,mBAAAA,WAAuB;AACnE,IAAM,EAAE,iBAAiB,QAAI,2BAAQ,cAAAC,WAAkB;AAExC,SAAR,2BAA4C;AAClD,QAAM,gBAAgB;AAAA,IACrB,SAAS,4CAAC,0BAAAC,SAAA,EAAiB,WAAQ,gBAAI,UAAW,GAAI;AAAA,IACtD,YACC;AAAA,MAAC;AAAA;AAAA,QACA,OAAM;AAAA,QACN,aAAY;AAAA,QACZ,UAAO,gBAAI,uCAAwC;AAAA,QACnD,WAAQ,gBAAI,kBAAmB;AAAA;AAAA,IAChC;AAAA,EAEF;AAEA,SAAO,4CAAC,oBAAiB,eAAgC;AAC1D;", "names": ["preferencesPrivateApis", "editorPrivateApis", "MetaBoxesSection"] }