UNPKG

@wordpress/block-library

Version:
37 lines (36 loc) • 937 B
"use strict"; Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } }); let _wordpress_block_editor = require("@wordpress/block-editor"); let react_jsx_runtime = require("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__ */ (0, react_jsx_runtime.jsx)(_wordpress_block_editor.InnerBlocks.Content, {}); } }]; exports.default = deprecated; //# sourceMappingURL=deprecated.cjs.map