/** * This Source Code is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Copyright (c) Infonomic Company Limited */ import type { FieldAdminConfig, GroupField as GroupFieldType } from '@byline/core'; interface GroupFieldProps { field: GroupFieldType; defaultValue: any; path: string; /** * Threaded to child fields — governs only the *drag* affordance of any * `array` children (structural add/remove always renders; see ArrayField). * Defaults to `true` (conservative): arrays inside plain schema groups * stay drag-free. `BlocksField` passes `false` on its synthesized group so * arrays directly inside blocks are fully sortable — safe because each * `DraggableSortable` is an independent DndContext with grip-scoped * listeners. */ disableSorting?: boolean; /** * Active content locale, forwarded to child fields so localized widgets * nested inside the group (e.g. a `localized` richText) can render their * locale badge. */ contentLocale?: string; /** * Per-child-field admin overrides (`components` slots, richtext `editor`), * keyed by dotted, index-free schema paths relative to this group * ('caption', 'faq.answer'). Threaded by `BlocksField` from the site-wide * `AdminConfig.blockAdmin` registry (block children render through a * synthesized group) and by `FieldRenderer` for plain schema groups, whose * map arrives pre-sliced from the collection admin config. Exact-name * entries apply to the child itself; deeper entries are re-sliced and * threaded on (see `sliceFieldAdmin`). */ fieldAdmin?: Record; } export declare const GroupField: ({ field, defaultValue, path, disableSorting, contentLocale, fieldAdmin, }: GroupFieldProps) => import("react").JSX.Element; export {};