"use strict";

// packages/block-editor/src/hooks/compat.js
var import_blocks = require("@wordpress/blocks");
var import_hooks = require("@wordpress/hooks");
function migrateLightBlockWrapper(settings) {
  const { apiVersion = 1 } = settings;
  if (apiVersion < 2 && (0, import_blocks.hasBlockSupport)(settings, "lightBlockWrapper", false)) {
    settings.apiVersion = 2;
  }
  return settings;
}
(0, import_hooks.addFilter)(
  "blocks.registerBlockType",
  "core/compat/migrateLightBlockWrapper",
  migrateLightBlockWrapper
);
//# sourceMappingURL=compat.js.map
