@firecms/core 3.0.0-canary.112 → 3.0.0-canary.114
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/ArrayContainer.d.ts +2 -1
- package/dist/components/EntityCollectionTable/fields/TableReferenceField.d.ts +1 -1
- package/dist/components/EntityPreview.d.ts +1 -1
- package/dist/form/components/FormikArrayContainer.d.ts +2 -1
- package/dist/index.es.js +167 -117
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +166 -116
- package/dist/index.umd.js.map +1 -1
- package/dist/preview/components/ReferencePreview.d.ts +1 -1
- package/dist/types/datasource.d.ts +8 -6
- package/dist/types/entity_overrides.d.ts +2 -2
- package/dist/types/side_dialogs_controller.d.ts +10 -0
- package/dist/util/icons.d.ts +1 -0
- package/package.json +5 -5
- package/src/components/ArrayContainer.tsx +7 -4
- package/src/components/EntityCollectionTable/fields/TableReferenceField.tsx +13 -8
- package/src/components/EntityCollectionView/EntityCollectionView.tsx +1 -1
- package/src/components/EntityPreview.tsx +20 -22
- package/src/components/HomePage/DefaultHomePage.tsx +7 -9
- package/src/components/ReferenceTable/ReferenceSelectionTable.tsx +7 -2
- package/src/components/VirtualTable/fields/VirtualTableDateField.tsx +3 -3
- package/src/components/VirtualTable/fields/VirtualTableInput.tsx +2 -1
- package/src/components/VirtualTable/fields/VirtualTableNumberInput.tsx +2 -1
- package/src/core/EntityEditView.tsx +20 -18
- package/src/core/SideDialogs.tsx +0 -2
- package/src/form/components/FormikArrayContainer.tsx +4 -1
- package/src/form/field_bindings/ArrayOfReferencesFieldBinding.tsx +4 -4
- package/src/form/field_bindings/BlockFieldBinding.tsx +2 -1
- package/src/form/field_bindings/ReferenceFieldBinding.tsx +5 -4
- package/src/hooks/data/delete.ts +2 -1
- package/src/hooks/data/useDataSource.tsx +10 -2
- package/src/hooks/useBuildNavigationController.tsx +2 -4
- package/src/internal/useBuildDataSource.ts +41 -67
- package/src/internal/useBuildSideDialogsController.tsx +1 -0
- package/src/internal/useBuildSideEntityController.tsx +13 -2
- package/src/preview/components/ReferencePreview.tsx +2 -13
- package/src/types/datasource.ts +9 -6
- package/src/types/entity_overrides.tsx +2 -2
- package/src/types/side_dialogs_controller.tsx +13 -0
- package/src/util/icons.tsx +8 -2
|
@@ -11,11 +11,12 @@ interface ArrayContainerProps<T> {
|
|
|
11
11
|
includeAddButton?: boolean;
|
|
12
12
|
newDefaultEntry: T;
|
|
13
13
|
onValueChange: (value: T[]) => void;
|
|
14
|
+
className?: string;
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
16
17
|
* @group Form custom fields
|
|
17
18
|
*/
|
|
18
|
-
export declare function ArrayContainer<T>({ droppableId, addLabel, value, disabled, buildEntry, size, onInternalIdAdded, includeAddButton, newDefaultEntry, onValueChange }: ArrayContainerProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare function ArrayContainer<T>({ droppableId, addLabel, value, disabled, buildEntry, size, onInternalIdAdded, includeAddButton, newDefaultEntry, onValueChange, className }: ArrayContainerProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
19
20
|
type ArrayContainerItemProps = {
|
|
20
21
|
provided: DraggableProvided;
|
|
21
22
|
index: number;
|
|
@@ -15,7 +15,7 @@ type TableReferenceFieldProps = {
|
|
|
15
15
|
includeEntityLink?: boolean;
|
|
16
16
|
};
|
|
17
17
|
export declare function TableReferenceField(props: TableReferenceFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export declare const
|
|
18
|
+
export declare const TableReferenceFieldInternal: React.NamedExoticComponent<TableReferenceFieldProps & {
|
|
19
19
|
collection: EntityCollection;
|
|
20
20
|
}>;
|
|
21
21
|
export {};
|
|
@@ -27,4 +27,4 @@ export type EntityPreviewContainerProps = {
|
|
|
27
27
|
style?: React.CSSProperties;
|
|
28
28
|
onClick?: (e: React.SyntheticEvent) => void;
|
|
29
29
|
};
|
|
30
|
-
export declare const EntityPreviewContainer: React.
|
|
30
|
+
export declare const EntityPreviewContainer: React.ForwardRefExoticComponent<EntityPreviewContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -10,9 +10,10 @@ interface ArrayContainerProps<T> {
|
|
|
10
10
|
includeAddButton?: boolean;
|
|
11
11
|
newDefaultEntry?: T | null;
|
|
12
12
|
setFieldValue: (field: string, value: any, shouldValidate?: boolean | undefined) => void;
|
|
13
|
+
className?: string;
|
|
13
14
|
}
|
|
14
15
|
/**
|
|
15
16
|
* @group Form custom fields
|
|
16
17
|
*/
|
|
17
|
-
export declare function FormikArrayContainer<T>({ name, addLabel, value, disabled, buildEntry, small, onInternalIdAdded, includeAddButton, newDefaultEntry, setFieldValue }: ArrayContainerProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare function FormikArrayContainer<T>({ name, addLabel, value, disabled, buildEntry, small, onInternalIdAdded, includeAddButton, newDefaultEntry, setFieldValue, className }: ArrayContainerProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
18
19
|
export {};
|