@wordpress/block-library
Version:
Block library for the WordPress editor.
32 lines (31 loc) • 744 B
JavaScript
import { InnerBlocks } from "@wordpress/block-editor";
import { jsx } from "react/jsx-runtime";
// packages/block-library/src/navigation-link/deprecated.tsx
const deprecated = [{
isEligible(attributes) {
return attributes.nofollow;
},
attributes: {
label: { type: "string" },
type: { type: "string" },
nofollow: { type: "boolean" },
description: { type: "string" },
id: { type: "number" },
opensInNewTab: {
type: "boolean",
default: false
},
url: { type: "string" }
},
migrate({ nofollow, ...rest }) {
return {
rel: nofollow ? "nofollow" : "",
...rest
};
},
save() {
return /* @__PURE__ */ jsx(InnerBlocks.Content, {});
}
}];
export { deprecated as default };
//# sourceMappingURL=deprecated.mjs.map