@firecms/core 3.0.0-alpha.59 → 3.0.0-alpha.60
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.
- package/dist/components/ReferenceWidget.d.ts +9 -8
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/types/entities.d.ts +1 -1
- package/dist/util/entities.d.ts +1 -1
- package/package.json +3 -3
- package/src/components/ReferenceWidget.tsx +22 -20
- package/src/types/entities.ts +1 -1
- package/src/util/entities.ts +1 -1
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import { Entity, EntityReference, FilterValues } from "../types";
|
|
2
2
|
import { PreviewSize } from "../preview";
|
|
3
|
-
|
|
4
|
-
* This field allows selecting reference/s.
|
|
5
|
-
*/
|
|
6
|
-
export declare function ReferenceWidget<M extends Record<string, any>>({ name, multiselect, path, disabled, value, onReferenceSelected, onMultipleReferenceSelected, previewProperties, forceFilter, size, className }: {
|
|
3
|
+
export type ReferenceWidgetProps<M extends Record<string, any>> = {
|
|
7
4
|
name?: string;
|
|
8
5
|
multiselect?: boolean;
|
|
9
|
-
value: EntityReference | EntityReference[] | null;
|
|
6
|
+
value: EntityReference<M> | EntityReference<M>[] | null;
|
|
10
7
|
onReferenceSelected?: (params: {
|
|
11
|
-
reference: EntityReference | null;
|
|
8
|
+
reference: EntityReference<M> | null;
|
|
12
9
|
entity: Entity<M> | null;
|
|
13
10
|
}) => void;
|
|
14
11
|
onMultipleReferenceSelected?: (params: {
|
|
15
|
-
references: EntityReference[] | null;
|
|
12
|
+
references: EntityReference<M>[] | null;
|
|
16
13
|
entities: Entity<M>[] | null;
|
|
17
14
|
}) => void;
|
|
18
15
|
path: string;
|
|
@@ -24,4 +21,8 @@ export declare function ReferenceWidget<M extends Record<string, any>>({ name, m
|
|
|
24
21
|
forceFilter?: FilterValues<string>;
|
|
25
22
|
size: PreviewSize;
|
|
26
23
|
className?: string;
|
|
27
|
-
}
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* This field allows selecting reference/s.
|
|
27
|
+
*/
|
|
28
|
+
export declare function ReferenceWidget<M extends Record<string, any>>({ name, multiselect, path, disabled, value, onReferenceSelected, onMultipleReferenceSelected, previewProperties, forceFilter, size, className }: ReferenceWidgetProps<M>): import("react/jsx-runtime").JSX.Element;
|