UNPKG

@wordpress/block-editor

Version:
8 lines (7 loc) 989 B
{ "version": 3, "sources": ["../../src/layouts/index.js"], "sourcesContent": ["/**\n * Internal dependencies\n */\nimport flex from './flex';\nimport flow from './flow';\nimport constrained from './constrained';\nimport grid from './grid';\n\nconst layoutTypes = [ flow, flex, constrained, grid ];\n\n/**\n * Retrieves a layout type by name.\n *\n * @param {string} name - The name of the layout type.\n * @return {Object} Layout type.\n */\nexport function getLayoutType( name = 'default' ) {\n\treturn layoutTypes.find( ( layoutType ) => layoutType.name === name );\n}\n\n/**\n * Retrieves the available layout types.\n *\n * @return {Array} Layout types.\n */\nexport function getLayoutTypes() {\n\treturn layoutTypes;\n}\n"], "mappings": ";AAGA,OAAO,UAAU;AACjB,OAAO,UAAU;AACjB,OAAO,iBAAiB;AACxB,OAAO,UAAU;AAEjB,IAAM,cAAc,CAAE,MAAM,MAAM,aAAa,IAAK;AAQ7C,SAAS,cAAe,OAAO,WAAY;AACjD,SAAO,YAAY,KAAM,CAAE,eAAgB,WAAW,SAAS,IAAK;AACrE;AAOO,SAAS,iBAAiB;AAChC,SAAO;AACR;", "names": [] }