// packages/block-editor/src/hooks/lock.js
import { addFilter } from "@wordpress/hooks";
function addAttribute(settings) {
  if ("type" in (settings.attributes?.lock ?? {})) {
    return settings;
  }
  settings.attributes = {
    ...settings.attributes,
    lock: {
      type: "object"
    }
  };
  return settings;
}
addFilter("blocks.registerBlockType", "core/lock/addAttribute", addAttribute);
export {
  addAttribute
};
//# sourceMappingURL=lock.js.map
