@firecms/core 3.0.0-alpha.58 → 3.0.0-alpha.59

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,19 +1,20 @@
1
- import { EntityReference, FilterValues } from "../types";
1
+ import { Entity, EntityReference, FilterValues } from "../types";
2
+ import { PreviewSize } from "../preview";
2
3
  /**
3
4
  * This field allows selecting reference/s.
4
- * @param name
5
- * @param path
6
- * @param disabled
7
- * @param value
8
- * @param setValue
9
- * @param previewProperties
10
- * @param forceFilter
11
- * @constructor
12
5
  */
13
- export declare function ReferenceWidget<M extends Record<string, any>>({ name, path, disabled, value, setValue, previewProperties, forceFilter }: {
6
+ export declare function ReferenceWidget<M extends Record<string, any>>({ name, multiselect, path, disabled, value, onReferenceSelected, onMultipleReferenceSelected, previewProperties, forceFilter, size, className }: {
14
7
  name?: string;
15
- value?: EntityReference;
16
- setValue: (value: EntityReference | null) => void;
8
+ multiselect?: boolean;
9
+ value: EntityReference | EntityReference[] | null;
10
+ onReferenceSelected?: (params: {
11
+ reference: EntityReference | null;
12
+ entity: Entity<M> | null;
13
+ }) => void;
14
+ onMultipleReferenceSelected?: (params: {
15
+ references: EntityReference[] | null;
16
+ entities: Entity<M>[] | null;
17
+ }) => void;
17
18
  path: string;
18
19
  disabled?: boolean;
19
20
  previewProperties?: string[];
@@ -21,4 +22,6 @@ export declare function ReferenceWidget<M extends Record<string, any>>({ name, p
21
22
  * Allow selection of entities that pass the given filter only.
22
23
  */
23
24
  forceFilter?: FilterValues<string>;
25
+ size: PreviewSize;
26
+ className?: string;
24
27
  }): import("react/jsx-runtime").JSX.Element;