@uibot/renderer-react 0.19.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import type { PagedCollectionField, PagedCollectionDescriptor, PagedCollectionClient, PagedCollectionRecord } from "@uibot/contracts";
1
+ import type { PagedCollectionField, PagedCollectionDescriptor, PagedCollectionClient, PagedCollectionRecord, PagedCollectionRelationOptionsProvider } from "@uibot/contracts";
2
2
  import type { PagedCollectionView, PagedCollectionFilterLeaf } from "@uibot/contracts";
3
3
  import { pagedText, type PagedCollectionLocale } from "./collection-grid/paged-locale.js";
4
4
  import type { CollectionUiSlots } from "./collection-ui.js";
@@ -10,11 +10,12 @@ export declare function FieldDefinitions({ fields, onChange, lockedIds, collecti
10
10
  }): import("react").JSX.Element;
11
11
  /** Parse a create/update draft. Throws a localized error for required or invalid fields. */
12
12
  export declare function validateDraft(fields: PagedCollectionField[], values: Record<string, unknown>, t: ReturnType<typeof pagedText>, locale?: PagedCollectionLocale): Record<string, unknown>;
13
- export declare function RecordFields({ fields, values, onChange, relationClient, linkedRecords, computedErrors, locale, ui, submitted, }: {
13
+ export declare function RecordFields({ fields, values, onChange, relationClient, getRelationOptions, linkedRecords, computedErrors, locale, ui, submitted, }: {
14
14
  fields: PagedCollectionField[];
15
15
  values: Record<string, unknown>;
16
16
  onChange(values: Record<string, unknown>): void;
17
17
  relationClient?: Pick<PagedCollectionClient, "query">;
18
+ getRelationOptions?: PagedCollectionRelationOptionsProvider | undefined;
18
19
  linkedRecords?: PagedCollectionRecord["linkedRecords"];
19
20
  computedErrors?: PagedCollectionRecord["computedErrors"];
20
21
  locale?: PagedCollectionLocale;