@wordpress/block-library
Version:
Block library for the WordPress editor.
29 lines (28 loc) • 605 B
JavaScript
import metadata from "./block.json";
const { attributes } = metadata;
var deprecated_default = [
{
attributes: {
...attributes,
categories: {
type: "string"
}
},
supports: {
align: true,
html: false
},
migrate: (oldAttributes) => {
return {
...oldAttributes,
categories: [{ id: Number(oldAttributes.categories) }]
};
},
isEligible: ({ categories }) => categories && "string" === typeof categories,
save: () => null
}
];
export {
deprecated_default as default
};
//# sourceMappingURL=deprecated.js.map