@firecms/collection_editor 3.0.0-alpha.27 → 3.0.0-alpha.28

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.
Files changed (26) hide show
  1. package/dist/components/collection_editor/CollectionPropertiesEditorForm.d.ts +2 -2
  2. package/dist/components/collection_editor/PropertyEditView.d.ts +2 -2
  3. package/dist/components/collection_editor/PropertySelectItem.d.ts +3 -3
  4. package/dist/components/collection_editor/import/CollectionEditorImportMapping.d.ts +2 -2
  5. package/dist/components/collection_editor/properties/BlockPropertyField.d.ts +2 -2
  6. package/dist/components/collection_editor/properties/MapPropertyField.d.ts +2 -2
  7. package/dist/components/collection_editor/properties/RepeatPropertyField.d.ts +2 -2
  8. package/dist/components/collection_editor/utils/supported_fields.d.ts +1 -1
  9. package/dist/components/collection_editor/utils/update_property_for_widget.d.ts +2 -2
  10. package/dist/index.es.js +475 -460
  11. package/dist/index.es.js.map +1 -1
  12. package/dist/index.umd.js +1 -1
  13. package/dist/index.umd.js.map +1 -1
  14. package/dist/types/config_controller.d.ts +8 -0
  15. package/package.json +4 -4
  16. package/src/ConfigControllerProvider.tsx +19 -0
  17. package/src/components/collection_editor/CollectionPropertiesEditorForm.tsx +2 -2
  18. package/src/components/collection_editor/PropertyEditView.tsx +12 -12
  19. package/src/components/collection_editor/PropertyFieldPreview.tsx +8 -8
  20. package/src/components/collection_editor/PropertySelectItem.tsx +6 -6
  21. package/src/components/collection_editor/import/CollectionEditorImportMapping.tsx +5 -5
  22. package/src/components/collection_editor/properties/BlockPropertyField.tsx +2 -2
  23. package/src/components/collection_editor/properties/MapPropertyField.tsx +2 -2
  24. package/src/components/collection_editor/properties/RepeatPropertyField.tsx +2 -2
  25. package/src/components/collection_editor/utils/update_property_for_widget.ts +23 -23
  26. package/src/types/config_controller.tsx +9 -0
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { FormikErrors } from "formik";
3
- import { EntityCollection, FieldConfig, User } from "@firecms/core";
3
+ import { EntityCollection, PropertyConfig, User } from "@firecms/core";
4
4
  import { PersistedCollection } from "../../types/persisted_collection";
5
5
  type CollectionEditorFormProps = {
6
6
  showErrors: boolean;
@@ -13,7 +13,7 @@ type CollectionEditorFormProps = {
13
13
  getUser: (uid: string) => User | null;
14
14
  getData?: () => Promise<object[]>;
15
15
  doCollectionInference: (collection: PersistedCollection<any, string>) => Promise<EntityCollection | null> | undefined;
16
- customFields: Record<string, FieldConfig>;
16
+ customFields: Record<string, PropertyConfig>;
17
17
  };
18
18
  export declare function CollectionPropertiesEditorForm({ showErrors, isNewCollection, propertyErrorsRef, onPropertyError, setDirty, reservedGroups, extraIcon, getUser, getData, doCollectionInference, customFields }: CollectionEditorFormProps): import("react/jsx-runtime").JSX.Element;
19
19
  export {};
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { FormikErrors, FormikProps } from "formik";
3
- import { FieldConfig, Property } from "@firecms/core";
3
+ import { Property, PropertyConfig } from "@firecms/core";
4
4
  export type PropertyWithId = Property & {
5
5
  id?: string;
6
6
  };
@@ -29,7 +29,7 @@ export type PropertyFormProps = {
29
29
  allowDataInference: boolean;
30
30
  getData?: () => Promise<object[]>;
31
31
  getHelpers?: (formikProps: FormikProps<PropertyWithId>) => void;
32
- customFields: Record<string, FieldConfig>;
32
+ customFields: Record<string, PropertyConfig>;
33
33
  };
34
34
  export declare const PropertyForm: React.NamedExoticComponent<PropertyFormProps>;
35
35
  export declare function PropertyFormDialog({ open, onCancel, onOkClicked, onPropertyChanged, getData, ...formProps }: PropertyFormProps & {
@@ -1,8 +1,8 @@
1
- import { FieldConfig } from "@firecms/core";
1
+ import { PropertyConfig } from "@firecms/core";
2
2
  export interface PropertySelectItemProps {
3
3
  value: string;
4
4
  optionDisabled: boolean;
5
- fieldConfig: FieldConfig;
5
+ propertyConfig: PropertyConfig;
6
6
  existing: boolean;
7
7
  }
8
- export declare function PropertySelectItem({ value, optionDisabled, fieldConfig, existing }: PropertySelectItemProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function PropertySelectItem({ value, optionDisabled, propertyConfig, existing }: PropertySelectItemProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { ImportConfig } from "@firecms/data_import";
2
- import { FieldConfig } from "@firecms/core";
2
+ import { PropertyConfig } from "@firecms/core";
3
3
  export declare function CollectionEditorImportMapping({ importConfig, customFields }: {
4
4
  importConfig: ImportConfig;
5
- customFields: Record<string, FieldConfig>;
5
+ customFields: Record<string, PropertyConfig>;
6
6
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
- import { FieldConfig } from "@firecms/core";
1
+ import { PropertyConfig } from "@firecms/core";
2
2
  export declare function BlockPropertyField({ disabled, getData, allowDataInference, customFields }: {
3
3
  disabled: boolean;
4
4
  getData?: () => Promise<object[]>;
5
5
  allowDataInference: boolean;
6
- customFields: Record<string, FieldConfig>;
6
+ customFields: Record<string, PropertyConfig>;
7
7
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
- import { FieldConfig } from "@firecms/core";
1
+ import { PropertyConfig } from "@firecms/core";
2
2
  export declare function MapPropertyField({ disabled, getData, allowDataInference, customFields }: {
3
3
  disabled: boolean;
4
4
  getData?: () => Promise<object[]>;
5
5
  allowDataInference: boolean;
6
- customFields: Record<string, FieldConfig>;
6
+ customFields: Record<string, PropertyConfig>;
7
7
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,9 @@
1
- import { FieldConfig } from "@firecms/core";
1
+ import { PropertyConfig } from "@firecms/core";
2
2
  export declare function RepeatPropertyField({ showErrors, existing, disabled, getData, allowDataInference, customFields }: {
3
3
  showErrors: boolean;
4
4
  existing: boolean;
5
5
  disabled: boolean;
6
6
  getData?: () => Promise<object[]>;
7
7
  allowDataInference: boolean;
8
- customFields: Record<string, FieldConfig>;
8
+ customFields: Record<string, PropertyConfig>;
9
9
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { FieldConfigId } from "@firecms/core";
2
2
  export declare const supportedFieldsIds: FieldConfigId[];
3
- export declare const supportedFields: [string, import("@firecms/core").FieldConfig<any>][];
3
+ export declare const supportedFields: [string, import("@firecms/core").PropertyConfig<any>][];
@@ -1,2 +1,2 @@
1
- import { FieldConfig, Property } from "@firecms/core";
2
- export declare function updatePropertyFromWidget(propertyData: any, selectedWidgetId: string | undefined, customFields: Record<string, FieldConfig>): Property;
1
+ import { PropertyConfig, Property } from "@firecms/core";
2
+ export declare function updatePropertyFromWidget(propertyData: any, selectedWidgetId: string | undefined, customFields: Record<string, PropertyConfig>): Property;