UNPKG

@wordpress/blocks

Version:
83 lines (81 loc) 1.91 kB
/** * 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' ], }, };