@firecms/core 3.0.0-alpha.57 → 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.
- package/dist/components/EntityCollectionTable/internal/default_entity_actions.d.ts +1 -0
- package/dist/{form/components → components}/LabelWithIcon.d.ts +1 -2
- package/dist/components/ReferenceWidget.d.ts +27 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/form/components/index.d.ts +0 -1
- package/dist/index.es.js +882 -789
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +5 -5
- package/dist/index.umd.js.map +1 -1
- package/dist/types/firecms_context.d.ts +9 -9
- package/package.json +3 -3
- package/src/components/EntityCollectionTable/internal/default_entity_actions.tsx +17 -2
- package/src/{form/components → components}/LabelWithIcon.tsx +1 -2
- package/src/components/ReferenceWidget.tsx +143 -0
- package/src/components/index.tsx +2 -0
- package/src/form/components/index.tsx +0 -1
- package/src/form/field_bindings/ArrayCustomShapedFieldBinding.tsx +2 -1
- package/src/form/field_bindings/ArrayOfReferencesFieldBinding.tsx +2 -1
- package/src/form/field_bindings/BlockFieldBinding.tsx +2 -1
- package/src/form/field_bindings/DateTimeFieldBinding.tsx +2 -1
- package/src/form/field_bindings/KeyValueFieldBinding.tsx +3 -1
- package/src/form/field_bindings/MapFieldBinding.tsx +2 -1
- package/src/form/field_bindings/MarkdownFieldBinding.tsx +2 -1
- package/src/form/field_bindings/MultiSelectBinding.tsx +2 -1
- package/src/form/field_bindings/ReadOnlyFieldBinding.tsx +2 -1
- package/src/form/field_bindings/ReferenceFieldBinding.tsx +2 -1
- package/src/form/field_bindings/RepeatFieldBinding.tsx +2 -1
- package/src/form/field_bindings/SelectFieldBinding.tsx +2 -1
- package/src/form/field_bindings/StorageUploadFieldBinding.tsx +2 -1
- package/src/form/field_bindings/SwitchFieldBinding.tsx +1 -1
- package/src/form/field_bindings/TextFieldBinding.tsx +2 -1
- package/src/types/firecms_context.tsx +10 -11
- package/dist/form/components/ReferenceWidget.d.ts +0 -24
- package/src/form/components/ReferenceWidget.tsx +0 -255
|
@@ -2,4 +2,5 @@ import { EntityAction } from "../../../types";
|
|
|
2
2
|
export declare const editEntityAction: EntityAction;
|
|
3
3
|
export declare const copyEntityAction: EntityAction;
|
|
4
4
|
export declare const archiveEntityAction: EntityAction;
|
|
5
|
+
export declare const openWebsiteAction: EntityAction;
|
|
5
6
|
export declare const deleteEntityAction: EntityAction;
|
|
@@ -7,8 +7,7 @@ interface LabelWithIconProps {
|
|
|
7
7
|
required?: boolean;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Render the label of
|
|
11
|
-
* icon.
|
|
10
|
+
* Render the label of with an icon and the title of a property
|
|
12
11
|
* @group Form custom fields
|
|
13
12
|
*/
|
|
14
13
|
export declare function LabelWithIcon({ icon, title, small, className, required }: LabelWithIconProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Entity, EntityReference, FilterValues } from "../types";
|
|
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 }: {
|
|
7
|
+
name?: string;
|
|
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;
|
|
18
|
+
path: string;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
previewProperties?: string[];
|
|
21
|
+
/**
|
|
22
|
+
* Allow selection of entities that pass the given filter only.
|
|
23
|
+
*/
|
|
24
|
+
forceFilter?: FilterValues<string>;
|
|
25
|
+
size: PreviewSize;
|
|
26
|
+
className?: string;
|
|
27
|
+
}): import("react/jsx-runtime").JSX.Element;
|