@firecms/core 3.0.0-canary.282 → 3.0.0-canary.284

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.
@@ -44,9 +44,9 @@ export interface EntityEditViewProps<M extends Record<string, any>> {
44
44
  * an entity is opened.
45
45
  */
46
46
  export declare function EntityEditView<M extends Record<string, any>, USER extends User>({ entityId, ...props }: EntityEditViewProps<M>): import("react/jsx-runtime").JSX.Element;
47
- export declare function EntityEditViewInner<M extends Record<string, any>>({ path, fullIdPath, entityId, selectedTab: selectedTabProp, collection, parentCollectionIds, onValuesModified, onSaved, onTabChange, entity, cachedDirtyValues, dataLoading, layout, barActions, status, setStatus, formProps, canEdit }: EntityEditViewProps<M> & {
47
+ export declare function EntityEditViewInner<M extends Record<string, any>>({ path, fullIdPath, entityId, selectedTab: selectedTabProp, collection, parentCollectionIds, onValuesModified, onSaved, onTabChange, entity, initialDirtyValues, dataLoading, layout, barActions, status, setStatus, formProps, canEdit }: EntityEditViewProps<M> & {
48
48
  entity?: Entity<M>;
49
- cachedDirtyValues?: Partial<M>;
49
+ initialDirtyValues?: Partial<M>;
50
50
  dataLoading: boolean;
51
51
  status: EntityStatus;
52
52
  setStatus: (status: EntityStatus) => void;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { Entity, EntityCollection, EntityCustomViewParams, EntityStatus, FormContext } from "../types";
2
+ import { AuthController, Entity, EntityCollection, EntityCustomViewParams, EntityStatus, EntityValues, FormContext, PropertyConfig } from "../types";
3
3
  import { FormexController } from "@firecms/formex";
4
4
  import { ValidationError } from "yup";
5
5
  import { EntityFormActionsProps } from "./EntityFormActions";
@@ -46,5 +46,7 @@ export type EntityFormProps<M extends Record<string, any>> = {
46
46
  Builder?: React.ComponentType<EntityCustomViewParams<M>>;
47
47
  children?: React.ReactNode;
48
48
  };
49
+ export declare function extractTouchedValues(values: any, touched: Record<string, boolean>): Record<string, any>;
49
50
  export declare function EntityForm<M extends Record<string, any>>({ path, fullIdPath, entityId: entityIdProp, collection, onValuesModified, onIdChange, onSaved, entity, initialDirtyValues, onFormContextReady, forceActionsAtTheBottom, initialStatus, className, onStatusChange, onEntityChange, openEntityMode, formex: formexProp, disabled: disabledProp, Builder, EntityFormActionsComponent, showDefaultActions, showEntityPath, children }: EntityFormProps<M>): import("react/jsx-runtime").JSX.Element;
51
+ export declare function getInitialEntityValues<M extends object>(authController: AuthController, collection: EntityCollection, path: string, status: "new" | "existing" | "copy", entity: Entity<M> | undefined, propertyConfigs?: Record<string, PropertyConfig>): Partial<EntityValues<M>>;
50
52
  export declare function yupToFormErrors(yupError: ValidationError): Record<string, any>;
@@ -1,4 +1,5 @@
1
- export * from "./EntityForm";
1
+ export { EntityForm, yupToFormErrors, } from "./EntityForm";
2
+ export type { EntityFormProps } from "./EntityForm";
2
3
  export { SelectFieldBinding } from "./field_bindings/SelectFieldBinding";
3
4
  export { MultiSelectFieldBinding } from "./field_bindings/MultiSelectFieldBinding";
4
5
  export { ArrayOfReferencesFieldBinding } from "./field_bindings/ArrayOfReferencesFieldBinding";