resolveFieldComponents
resolveFieldComponents(
props):object
Defined in: packages/core/src/fields/utils.ts:69
Resolves one field’s admin.components input into the always-present resolved shape every
field factory stamps onto FieldAdminConfig.components. Field-level lists have no built-ins
to merge (every field-level contribution is project/plugin-authored, S6) — this only de-
duplicates and orders the field’s OWN list via resolveComponentContributions/
resolveComponentOverrides.
Parameters
Section titled “Parameters”components?
Section titled “components?”{ afterInput?: ComponentContributionInput<any, unknown>[]; beforeInput?: ComponentContributionInput<any, unknown>[]; Cell?: ComponentOverrideInput<any, unknown>[]; Description?: ComponentOverrideInput<any, unknown>[]; Field?: ComponentOverrideInput<any, unknown>[]; Input?: ComponentOverrideInput<any, unknown>[]; Label?: ComponentOverrideInput<any, unknown>[]; }
The raw admin.components input, or undefined for a field with no
customization.
components.afterInput?
Section titled “components.afterInput?”ComponentContributionInput<any, unknown>[]
components.beforeInput?
Section titled “components.beforeInput?”ComponentContributionInput<any, unknown>[]
components.Cell?
Section titled “components.Cell?”ComponentOverrideInput<any, unknown>[]
components.Description?
Section titled “components.Description?”ComponentOverrideInput<any, unknown>[]
components.Field?
Section titled “components.Field?”ComponentOverrideInput<any, unknown>[]
components.Input?
Section titled “components.Input?”ComponentOverrideInput<any, unknown>[]
components.Label?
Section titled “components.Label?”ComponentOverrideInput<any, unknown>[]
Returns
Section titled “Returns”object
The resolved components object — every list defaulted to [].
afterInput
Section titled “afterInput”afterInput:
ResolvedComponentContribution<any,unknown>[]
beforeInput
Section titled “beforeInput”beforeInput:
ResolvedComponentContribution<any,unknown>[]
Cell:
ResolvedComponentOverride<any,unknown>[]
Description
Section titled “Description”Description:
ResolvedComponentOverride<any,unknown>[]
Field:
ResolvedComponentOverride<any,unknown>[]
Input:
ResolvedComponentOverride<any,unknown>[]
Label:
ResolvedComponentOverride<any,unknown>[]
Throws
Section titled “Throws”When one of the field’s own lists has a duplicate id.