UNPKG

@wordpress/block-library

Version:
32 lines (31 loc) 765 B
// 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