@wordpress/blocks
Version:
Block API for WordPress.
75 lines • 1.96 kB
JavaScript
/**
* Array of valid keys in a block type settings deprecation object.
*
* @type {string[]}
*/
export const DEPRECATED_ENTRY_KEYS = ['attributes', 'supports', 'save', 'migrate', 'isEligible', 'apiVersion'];
export const __EXPERIMENTAL_STYLE_PROPERTY = {
'--wp--style--color--link': {
valueGlobal: ['elements', 'link', 'color', 'text'],
value: ['color', 'link'],
support: ['color', 'link']
},
background: {
value: ['color', 'gradient'],
support: ['color', 'gradients']
},
backgroundColor: {
value: ['color', 'background'],
support: ['color']
},
borderColor: {
value: ['border', 'color'],
support: ['__experimentalBorder', 'color']
},
borderRadius: {
value: ['border', 'radius'],
support: ['__experimentalBorder', 'radius']
},
borderStyle: {
value: ['border', 'style'],
support: ['__experimentalBorder', 'style']
},
borderWidth: {
value: ['border', 'width'],
support: ['__experimentalBorder', 'width']
},
color: {
value: ['color', 'text'],
support: ['color']
},
fontFamily: {
value: ['typography', 'fontFamily'],
support: ['__experimentalFontFamily']
},
fontSize: {
value: ['typography', 'fontSize'],
support: ['fontSize']
},
fontStyle: {
value: ['typography', 'fontStyle'],
support: ['__experimentalFontStyle']
},
fontWeight: {
value: ['typography', 'fontWeight'],
support: ['__experimentalFontWeight']
},
lineHeight: {
value: ['typography', 'lineHeight'],
support: ['lineHeight']
},
padding: {
value: ['spacing', 'padding'],
support: ['spacing', 'padding'],
properties: ['top', 'right', 'bottom', 'left']
},
textDecoration: {
value: ['typography', 'textDecoration'],
support: ['__experimentalTextDecoration']
},
textTransform: {
value: ['typography', 'textTransform'],
support: ['__experimentalTextTransform']
}
};
//# sourceMappingURL=constants.js.map