UNPKG

@wordpress/block-library

Version:
80 lines (79 loc) 1.97 kB
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.settings = exports.name = exports.metadata = exports.init = void 0; var _i18n = require("@wordpress/i18n"); var _icons = require("@wordpress/icons"); var _initBlock = _interopRequireDefault(require("../utils/init-block")); var _edit = _interopRequireDefault(require("./edit")); /** * WordPress dependencies */ /** * Internal dependencies */ const metadata = exports.metadata = { $schema: "https://schemas.wp.org/trunk/block.json", apiVersion: 3, name: "core/comments-pagination-previous", title: "Comments Previous Page", category: "theme", parent: ["core/comments-pagination"], description: "Displays the previous comment's page link.", textdomain: "default", attributes: { label: { type: "string" } }, usesContext: ["postId", "comments/paginationArrow"], supports: { reusable: false, html: false, color: { gradients: true, text: false, __experimentalDefaultControls: { background: true } }, typography: { fontSize: true, lineHeight: true, __experimentalFontFamily: true, __experimentalFontWeight: true, __experimentalFontStyle: true, __experimentalTextTransform: true, __experimentalTextDecoration: true, __experimentalLetterSpacing: true, __experimentalDefaultControls: { fontSize: true } }, interactivity: { clientNavigation: true } } }; const { name } = metadata; exports.name = name; const settings = exports.settings = { icon: _icons.queryPaginationPrevious, edit: _edit.default, example: { attributes: { label: (0, _i18n.__)('Older Comments') } } }; const init = () => (0, _initBlock.default)({ name, metadata, settings }); exports.init = init; //# sourceMappingURL=index.js.map