@wordpress/block-library
Version:
Block library for the WordPress editor.
54 lines (53 loc) • 1.04 kB
JavaScript
import migrateFontFamily from "../utils/migrate-font-family";
const v1 = {
attributes: {
level: {
type: "number",
default: 1
},
textAlign: {
type: "string"
},
isLink: {
type: "boolean",
default: true
},
linkTarget: {
type: "string",
default: "_self"
}
},
supports: {
align: ["wide", "full"],
html: false,
color: {
gradients: true,
link: true
},
spacing: {
padding: true,
margin: true
},
typography: {
fontSize: true,
lineHeight: true,
__experimentalFontFamily: true,
__experimentalTextTransform: true,
__experimentalFontStyle: true,
__experimentalFontWeight: true,
__experimentalLetterSpacing: true
}
},
save() {
return null;
},
migrate: migrateFontFamily,
isEligible({ style }) {
return style?.typography?.fontFamily;
}
};
var deprecated_default = [v1];
export {
deprecated_default as default
};
//# sourceMappingURL=deprecated.js.map