// packages/block-library/src/list-item/index.js
import { __ } from "@wordpress/i18n";
import { listItem as icon } from "@wordpress/icons";
import { privateApis } from "@wordpress/block-editor";
import initBlock from "../utils/init-block";
import metadata from "./block.json";
import edit from "./edit";
import save from "./save";
import transforms from "./transforms";
import { unlock } from "../lock-unlock";
var { name } = metadata;
var settings = {
  icon,
  edit,
  save,
  merge(attributes, attributesToMerge) {
    return {
      ...attributes,
      content: attributes.content + attributesToMerge.content
    };
  },
  transforms,
  [unlock(privateApis).requiresWrapperOnCopy]: true
};
if (window.__experimentalContentOnlyPatternInsertion) {
  settings.fields = [
    {
      label: __("Content"),
      type: "RichText",
      shownByDefault: true,
      mapping: {
        value: "content"
      }
    }
  ];
}
var init = () => initBlock({ name, metadata, settings });
export {
  init,
  metadata,
  name,
  settings
};
//# sourceMappingURL=index.js.map
