@firecms/core 3.0.0-alpha.35 → 3.0.0-alpha.37

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 (48) hide show
  1. package/dist/core/FireCMS.d.ts +0 -1
  2. package/dist/form/form_field_configs.d.ts +1 -1
  3. package/dist/hooks/useBuildDataSource.d.ts +2 -4
  4. package/dist/index.es.js +5884 -5825
  5. package/dist/index.es.js.map +1 -1
  6. package/dist/index.umd.js +14 -14
  7. package/dist/index.umd.js.map +1 -1
  8. package/dist/types/firecms.d.ts +1 -1
  9. package/dist/types/firecms_context.d.ts +1 -1
  10. package/dist/types/plugins.d.ts +1 -0
  11. package/dist/util/builders.d.ts +64 -0
  12. package/dist/util/index.d.ts +1 -0
  13. package/dist/util/objects.d.ts +1 -0
  14. package/package.json +138 -138
  15. package/src/components/EntityCollectionTable/internal/DeleteEntityDialog.tsx +1 -1
  16. package/src/components/EntityCollectionTable/internal/PropertyTableCell.tsx +2 -1
  17. package/src/components/EntityCollectionTable/internal/popup_field/PopupFormField.tsx +1 -1
  18. package/src/components/EntityCollectionView/EntityCollectionView.tsx +5 -4
  19. package/src/components/EntityPreview.tsx +1 -1
  20. package/src/components/ErrorView.tsx +1 -0
  21. package/src/components/FireCMSAppBar.tsx +0 -1
  22. package/src/components/HomePage/DefaultHomePage.tsx +10 -0
  23. package/src/components/ReferenceSelectionInner.tsx +2 -2
  24. package/src/core/FireCMS.tsx +6 -5
  25. package/src/form/EntityForm.tsx +3 -3
  26. package/src/form/PropertyFieldBinding.tsx +4 -4
  27. package/src/form/components/ReferenceWidget.tsx +1 -1
  28. package/src/form/field_bindings/ArrayCustomShapedFieldBinding.tsx +1 -1
  29. package/src/form/field_bindings/ReferenceFieldBinding.tsx +2 -2
  30. package/src/form/form_field_configs.tsx +2 -2
  31. package/src/hooks/data/save.ts +3 -3
  32. package/src/hooks/useBuildDataSource.ts +3 -5
  33. package/src/preview/PropertyPreview.tsx +1 -1
  34. package/src/preview/components/ReferencePreview.tsx +2 -2
  35. package/src/preview/property_previews/ArrayOfMapsPreview.tsx +1 -1
  36. package/src/preview/property_previews/ArrayOfReferencesPreview.tsx +1 -1
  37. package/src/preview/property_previews/ArrayOfStorageComponentsPreview.tsx +1 -1
  38. package/src/preview/property_previews/ArrayOfStringsPreview.tsx +1 -1
  39. package/src/preview/property_previews/ArrayOneOfPreview.tsx +1 -1
  40. package/src/preview/property_previews/ArrayPropertyPreview.tsx +1 -1
  41. package/src/types/firecms.tsx +1 -1
  42. package/src/types/firecms_context.tsx +2 -1
  43. package/src/types/plugins.tsx +1 -0
  44. package/src/ui/Select.tsx +5 -9
  45. package/src/util/builders.ts +138 -0
  46. package/src/util/index.ts +1 -0
  47. package/src/util/objects.ts +23 -0
  48. package/src/util/resolutions.ts +6 -3
@@ -7,7 +7,6 @@ import { EntityCollection, FireCMSProps, User } from "../types";
7
7
  * internal contexts and hooks.
8
8
  *
9
9
  * You only need to use this component if you are building a custom app.
10
- * In most cases you can just use the {@link FirebaseCMSApp} component.
11
10
  *
12
11
  * @constructor
13
12
  * @group Core
@@ -1,6 +1,6 @@
1
1
  import { Property, PropertyConfig, ResolvedProperty } from "../types";
2
2
  export declare function isDefaultFieldConfigId(id: string): boolean;
3
3
  export declare const DEFAULT_FIELD_CONFIGS: Record<string, PropertyConfig<any>>;
4
- export declare function getFieldConfig(property: Property | ResolvedProperty, customFields: Record<string, PropertyConfig<any>>): PropertyConfig | undefined;
4
+ export declare function getFieldConfig(property: Property | ResolvedProperty, propertyConfigs: Record<string, PropertyConfig<any>>): PropertyConfig | undefined;
5
5
  export declare function getDefaultFieldId(property: Property | ResolvedProperty): "group" | "switch" | "url" | "email" | "block" | "file_upload" | "repeat" | "reference" | "date_time" | "select" | "text_field" | "multiline" | "markdown" | "multi_select" | "number_input" | "number_select" | "multi_number_select" | "multi_file_upload" | "multi_references" | "key_value" | "custom_array" | undefined;
6
6
  export declare function getFieldId(property: Property | ResolvedProperty): string | undefined;
@@ -2,13 +2,11 @@ import { DataSource, DataSourceDelegate, EntityReference, GeoPoint, PropertyConf
2
2
  /**
3
3
  * Use this hook to build a {@link DataSource} based on Firestore
4
4
  * @param firebaseApp
5
- * @param textSearchController
6
- * @param collectionRegistry
7
5
  * @group Firebase
8
6
  */
9
- export declare function useBuildDataSource({ delegate, customFields }: {
7
+ export declare function useBuildDataSource({ delegate, propertyConfigs }: {
10
8
  delegate: DataSourceDelegate;
11
- customFields: Record<string, PropertyConfig>;
9
+ propertyConfigs?: Record<string, PropertyConfig>;
12
10
  }): DataSource;
13
11
  /**
14
12
  * Recursive function that converts Firestore data types into CMS or plain