UNPKG

@wordpress/block-library

Version:
51 lines (50 loc) • 1.1 kB
import migrateTextAlign from "../utils/migrate-text-align.mjs"; var deprecated_default = [{ attributes: { linkTarget: { type: "string", default: "_self" }, textAlign: { type: "string" } }, usesContext: ["commentId"], supports: { anchor: true, html: false, color: { link: true, gradients: true, text: false }, spacing: { margin: true, padding: true }, typography: { fontSize: true, lineHeight: true, __experimentalFontFamily: true, __experimentalFontWeight: true, __experimentalFontStyle: true, __experimentalTextTransform: true, __experimentalTextDecoration: true, __experimentalLetterSpacing: true }, interactivity: { clientNavigation: true }, __experimentalBorder: { radius: true, color: true, width: true, style: true } }, save() { return null; }, migrate: migrateTextAlign, isEligible(attributes) { return !!attributes.textAlign || !!attributes.className?.match(/\bhas-text-align-(left|center|right)\b/); } }]; export { deprecated_default as default }; //# sourceMappingURL=deprecated.mjs.map