UNPKG

@wordpress/block-library

Version:
61 lines (58 loc) 1.15 kB
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _migrateFontFamily = _interopRequireDefault(require("../utils/migrate-font-family")); /** * Internal dependencies */ const v1 = { attributes: { type: { type: 'string' }, textAlign: { type: 'string' }, level: { type: 'number', default: 1 } }, supports: { align: ['wide', 'full'], html: false, color: { gradients: true }, spacing: { margin: true }, typography: { fontSize: true, lineHeight: true, __experimentalFontFamily: true } }, save() { return null; }, migrate: _migrateFontFamily.default, isEligible({ style }) { return style?.typography?.fontFamily; } }; /** * New deprecations need to be placed first * for them to have higher priority. * * Old deprecations may need to be updated as well. * * See block-deprecation.md */ var _default = exports.default = [v1]; //# sourceMappingURL=deprecated.js.map