@wordpress/block-library
Version:
Block library for the WordPress editor.
47 lines (46 loc) • 1.17 kB
JavaScript
/**
* WordPress dependencies
*/
import { pages as icon } from '@wordpress/icons';
/**
* Internal dependencies
*/
import initBlock from '../utils/init-block';
const metadata = {
$schema: "https://schemas.wp.org/trunk/block.json",
apiVersion: 2,
name: "core/page-list",
title: "Page List",
category: "widgets",
description: "Display a list of all pages.",
keywords: ["menu", "navigation"],
textdomain: "default",
attributes: {
__unstableMaxPages: {
type: "number"
}
},
usesContext: ["textColor", "customTextColor", "backgroundColor", "customBackgroundColor", "overlayTextColor", "customOverlayTextColor", "overlayBackgroundColor", "customOverlayBackgroundColor", "fontSize", "customFontSize", "showSubmenuIcon", "style", "openSubmenusOnClick"],
supports: {
reusable: false,
html: false
},
editorStyle: "wp-block-page-list-editor",
style: "wp-block-page-list"
};
import edit from './edit.js';
const {
name
} = metadata;
export { metadata, name };
export const settings = {
icon,
example: {},
edit
};
export const init = () => initBlock({
name,
metadata,
settings
});
//# sourceMappingURL=index.js.map