@wordpress/block-library
Version:
Block library for the WordPress editor.
1 lines • 1.62 kB
Source Map (JSON)
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/verse/index.js"],"sourcesContent":["import { __ } from '@wordpress/i18n';\nimport { verse as icon } from '@wordpress/icons';\nimport initBlock from '../utils/init-block';\nimport deprecated from './deprecated';\nimport edit from './edit';\nimport metadata from './block.json';\nimport save from './save';\nimport transforms from './transforms';\n\nconst { name } = metadata;\n\nexport { metadata, name };\n\nexport const settings = {\n\ticon,\n\texample: {\n\t\tattributes: {\n\t\t\t/* eslint-disable @wordpress/i18n-no-collapsible-whitespace */\n\t\t\t// translators: Sample content for the Verse block. Can be replaced with a more locale-adequate work.\n\t\t\tcontent: __(\n\t\t\t\t'WHAT was he doing, the great god Pan,\\n\tDown in the reeds by the river?\\nSpreading ruin and scattering ban,\\nSplashing and paddling with hoofs of a goat,\\nAnd breaking the golden lilies afloat\\n With the dragon-fly on the river.'\n\t\t\t),\n\t\t\t/* eslint-enable @wordpress/i18n-no-collapsible-whitespace */\n\t\t},\n\t},\n\ttransforms,\n\tdeprecated,\n\tmerge( attributes, attributesToMerge ) {\n\t\treturn {\n\t\t\tcontent: attributes.content + '\\n\\n' + attributesToMerge.content,\n\t\t};\n\t},\n\tedit,\n\tsave,\n};\n\nexport const init = () => initBlock( { name, metadata, settings } );\n"],"mappings":";;;;;;;;;AASA,MAAM,EAAE,SAAS;AAIjB,MAAa,WAAW;CACvB,MAAA;CACA,SAAS,EACR,YAAY,EAGX,SAAS,GACR,yOACD,EAED,EACD;CACA;CACA;CACA,MAAO,YAAY,mBAAoB;EACtC,OAAO,EACN,SAAS,WAAW,UAAU,SAAS,kBAAkB,QAC1D;CACD;CACA;CACA;AACD;AAEA,MAAa,aAAa,UAAW;CAAE;CAAM;CAAU;AAAS,CAAE"}