UNPKG

@wordpress/block-library

Version:
70 lines (69 loc) 1.46 kB
// packages/block-library/src/post-navigation-link/deprecated.js import migrateTextAlign from "../utils/migrate-text-align.mjs"; var v1 = { attributes: { textAlign: { type: "string" }, type: { type: "string", default: "next" }, label: { type: "string", role: "content" }, showTitle: { type: "boolean", default: false }, linkLabel: { type: "boolean", default: false }, arrow: { type: "string", default: "none" }, taxonomy: { type: "string", default: "" } }, supports: { anchor: true, reusable: false, html: false, color: { link: true }, typography: { fontSize: true, lineHeight: true, __experimentalFontFamily: true, __experimentalFontWeight: true, __experimentalFontStyle: true, __experimentalTextTransform: true, __experimentalTextDecoration: true, __experimentalLetterSpacing: true, __experimentalDefaultControls: { fontSize: true } }, interactivity: { clientNavigation: true } }, migrate: migrateTextAlign, isEligible(attributes) { return !!attributes.textAlign || !!attributes.className?.match( /\bhas-text-align-(left|center|right)\b/ ); }, save: () => null }; var deprecated_default = [v1]; export { deprecated_default as default }; //# sourceMappingURL=deprecated.mjs.map