{
  "version": 3,
  "sources": ["../src/unregister-format-type.js"],
  "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { select, dispatch } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport { store as richTextStore } from './store';\n\n/** @typedef {import('./register-format-type').WPFormat} WPFormat */\n\n/**\n * Unregisters a format.\n *\n * @param {string} name Format name.\n *\n * @return {WPFormat|undefined} The previous format value, if it has\n *                                        been successfully unregistered;\n *                                        otherwise `undefined`.\n */\nexport function unregisterFormatType( name ) {\n\tconst oldFormat = select( richTextStore ).getFormatType( name );\n\n\tif ( ! oldFormat ) {\n\t\twindow.console.error( `Format ${ name } is not registered.` );\n\t\treturn;\n\t}\n\n\tdispatch( richTextStore ).removeFormatTypes( name );\n\n\treturn oldFormat;\n}\n"],
  "mappings": ";AAGA,SAAS,QAAQ,gBAAgB;AAKjC,SAAS,SAAS,qBAAqB;AAahC,SAAS,qBAAsB,MAAO;AAC5C,QAAM,YAAY,OAAQ,aAAc,EAAE,cAAe,IAAK;AAE9D,MAAK,CAAE,WAAY;AAClB,WAAO,QAAQ,MAAO,UAAW,IAAK,qBAAsB;AAC5D;AAAA,EACD;AAEA,WAAU,aAAc,EAAE,kBAAmB,IAAK;AAElD,SAAO;AACR;",
  "names": []
}
