@wordpress/block-library
Version:
Block library for the WordPress editor.
32 lines (31 loc) • 765 B
JavaScript
// packages/block-library/src/comments-title/deprecated.js
import metadata from "./block.json";
var { attributes, supports } = metadata;
var deprecated_default = [
{
attributes: {
...attributes,
singleCommentLabel: {
type: "string"
},
multipleCommentsLabel: {
type: "string"
}
},
supports,
migrate: (oldAttributes) => {
const {
singleCommentLabel,
multipleCommentsLabel,
...newAttributes
} = oldAttributes;
return newAttributes;
},
isEligible: ({ multipleCommentsLabel, singleCommentLabel }) => multipleCommentsLabel || singleCommentLabel,
save: () => null
}
];
export {
deprecated_default as default
};
//# sourceMappingURL=deprecated.js.map