import { jsx } from "react/jsx-runtime";
import { cloneDeep } from "lodash-es";
import { defaultEditorConfig } from "./field/config/default.js";
import { RichTextField } from "./richtext-field.js";
function lexicalEditor(configure) {
    const baked = configure ? configure(cloneDeep(defaultEditorConfig)) : void 0;
    const ConfiguredEditor = (props)=>/*#__PURE__*/ jsx(RichTextField, {
            ...props,
            editorConfig: baked
        });
    return ConfiguredEditor;
}
export { lexicalEditor };
