@wordpress/block-library
Version:
Block library for the WordPress editor.
8 lines (7 loc) • 916 B
Source Map (JSON)
{
"version": 3,
"sources": ["../../src/nextpage/transforms.js"],
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { createBlock } from '@wordpress/blocks';\n\nconst transforms = {\n\tfrom: [\n\t\t{\n\t\t\ttype: 'raw',\n\t\t\tschema: {\n\t\t\t\t'wp-block': { attributes: [ 'data-block' ] },\n\t\t\t},\n\t\t\tisMatch: ( node ) =>\n\t\t\t\tnode.dataset && node.dataset.block === 'core/nextpage',\n\t\t\ttransform() {\n\t\t\t\treturn createBlock( 'core/nextpage', {} );\n\t\t\t},\n\t\t},\n\t],\n};\n\nexport default transforms;\n"],
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,oBAA4B;AAE5B,IAAM,aAAa;AAAA,EAClB,MAAM;AAAA,IACL;AAAA,MACC,MAAM;AAAA,MACN,QAAQ;AAAA,QACP,YAAY,EAAE,YAAY,CAAE,YAAa,EAAE;AAAA,MAC5C;AAAA,MACA,SAAS,CAAE,SACV,KAAK,WAAW,KAAK,QAAQ,UAAU;AAAA,MACxC,YAAY;AACX,mBAAO,2BAAa,iBAAiB,CAAC,CAAE;AAAA,MACzC;AAAA,IACD;AAAA,EACD;AACD;AAEA,IAAO,qBAAQ;",
"names": []
}