/**
 * Field-library access for the shared admin shell (Phase 7 edition split).
 *
 * The descriptors themselves moved into the edition registration modules:
 *   src/admin-free/fields/index.js  — Free types
 *   src/admin-pro/fields/index.js   — Pro types (Pro entrypoint only)
 *
 * Each edition entrypoint registers its types into the field-type registry
 * before the app boots, so this module — and every shell consumer — stays
 * edition-blind. Kept as functions (not a snapshot array) so evaluation order
 * relative to the entrypoint registration can't matter.
 */
import { fieldTypeDef, fieldTypeList } from "@/admin/fields/type-registry";

/** Registration-ordered palette descriptors for this edition. */
export function fieldLibrary() {
    return fieldTypeList();
}

export function findFieldByType(type) {
    return fieldTypeDef(type);
}
