@firecms/collection_editor 3.2.0 → 3.3.0-canary.2064433

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 (82) hide show
  1. package/dist/index.es.js +40 -9
  2. package/dist/index.es.js.map +1 -1
  3. package/dist/index.umd.js +40 -9
  4. package/dist/index.umd.js.map +1 -1
  5. package/dist/locales/de.d.ts +2 -0
  6. package/dist/locales/en.d.ts +2 -0
  7. package/dist/locales/es.d.ts +2 -0
  8. package/dist/locales/fr.d.ts +2 -0
  9. package/dist/locales/hi.d.ts +2 -0
  10. package/dist/locales/it.d.ts +2 -0
  11. package/dist/locales/pt.d.ts +2 -0
  12. package/dist/types/config_controller.d.ts +9 -1
  13. package/dist/ui/AddKanbanColumnAction.d.ts +2 -1
  14. package/dist/ui/CollectionViewHeaderAction.d.ts +2 -1
  15. package/dist/ui/EditorCollectionAction.d.ts +1 -1
  16. package/dist/ui/EditorCollectionActionStart.d.ts +1 -1
  17. package/dist/ui/EditorEntityAction.d.ts +1 -1
  18. package/dist/ui/HomePageEditorCollectionAction.d.ts +1 -1
  19. package/dist/ui/KanbanSetupAction.d.ts +2 -1
  20. package/dist/ui/MissingReferenceWidget.d.ts +1 -1
  21. package/dist/ui/NewCollectionButton.d.ts +1 -1
  22. package/dist/ui/NewCollectionCard.d.ts +1 -1
  23. package/dist/ui/PropertyAddColumnComponent.d.ts +1 -1
  24. package/dist/ui/collection_editor/AICollectionGeneratorPopover.d.ts +1 -1
  25. package/dist/ui/collection_editor/AIModifiedPathsContext.d.ts +1 -1
  26. package/dist/ui/collection_editor/CollectionDetailsForm.d.ts +2 -1
  27. package/dist/ui/collection_editor/CollectionEditorDialog.d.ts +2 -2
  28. package/dist/ui/collection_editor/CollectionEditorWelcomeView.d.ts +2 -2
  29. package/dist/ui/collection_editor/CollectionJsonImportDialog.d.ts +2 -1
  30. package/dist/ui/collection_editor/CollectionPropertiesEditorForm.d.ts +1 -1
  31. package/dist/ui/collection_editor/DisplaySettingsForm.d.ts +2 -1
  32. package/dist/ui/collection_editor/EntityActionsEditTab.d.ts +2 -1
  33. package/dist/ui/collection_editor/EntityActionsSelectDialog.d.ts +2 -1
  34. package/dist/ui/collection_editor/EntityCustomViewsSelectDialog.d.ts +2 -1
  35. package/dist/ui/collection_editor/EnumForm.d.ts +2 -1
  36. package/dist/ui/collection_editor/ExtendSettingsForm.d.ts +2 -1
  37. package/dist/ui/collection_editor/GeneralSettingsForm.d.ts +2 -1
  38. package/dist/ui/collection_editor/GetCodeDialog.d.ts +2 -1
  39. package/dist/ui/collection_editor/KanbanConfigSection.d.ts +2 -1
  40. package/dist/ui/collection_editor/LayoutModeSwitch.d.ts +1 -1
  41. package/dist/ui/collection_editor/PropertyEditView.d.ts +2 -2
  42. package/dist/ui/collection_editor/PropertyFieldPreview.d.ts +2 -2
  43. package/dist/ui/collection_editor/PropertyTree.d.ts +2 -2
  44. package/dist/ui/collection_editor/SubcollectionsEditTab.d.ts +2 -1
  45. package/dist/ui/collection_editor/SwitchControl.d.ts +2 -1
  46. package/dist/ui/collection_editor/UnsavedChangesDialog.d.ts +1 -1
  47. package/dist/ui/collection_editor/ViewModeSwitch.d.ts +1 -1
  48. package/dist/ui/collection_editor/import/CollectionEditorImportDataPreview.d.ts +1 -1
  49. package/dist/ui/collection_editor/import/CollectionEditorImportMapping.d.ts +3 -2
  50. package/dist/ui/collection_editor/properties/BlockPropertyField.d.ts +2 -1
  51. package/dist/ui/collection_editor/properties/BooleanPropertyField.d.ts +2 -1
  52. package/dist/ui/collection_editor/properties/DateTimePropertyField.d.ts +2 -1
  53. package/dist/ui/collection_editor/properties/EnumPropertyField.d.ts +2 -1
  54. package/dist/ui/collection_editor/properties/KeyValuePropertyField.d.ts +2 -1
  55. package/dist/ui/collection_editor/properties/MapPropertyField.d.ts +2 -1
  56. package/dist/ui/collection_editor/properties/MarkdownPropertyField.d.ts +2 -1
  57. package/dist/ui/collection_editor/properties/NumberPropertyField.d.ts +2 -1
  58. package/dist/ui/collection_editor/properties/ReferencePropertyField.d.ts +3 -2
  59. package/dist/ui/collection_editor/properties/RepeatPropertyField.d.ts +2 -1
  60. package/dist/ui/collection_editor/properties/StoragePropertyField.d.ts +2 -1
  61. package/dist/ui/collection_editor/properties/StringPropertyField.d.ts +2 -1
  62. package/dist/ui/collection_editor/properties/UrlPropertyField.d.ts +2 -1
  63. package/dist/ui/collection_editor/properties/advanced/AdvancedPropertyValidation.d.ts +2 -1
  64. package/dist/ui/collection_editor/properties/conditions/ConditionsEditor.d.ts +2 -1
  65. package/dist/ui/collection_editor/properties/conditions/ConditionsPanel.d.ts +1 -1
  66. package/dist/ui/collection_editor/properties/conditions/EnumConditionsEditor.d.ts +2 -1
  67. package/dist/ui/collection_editor/properties/validation/ArrayPropertyValidation.d.ts +2 -1
  68. package/dist/ui/collection_editor/properties/validation/GeneralPropertyValidation.d.ts +2 -1
  69. package/dist/ui/collection_editor/properties/validation/NumberPropertyValidation.d.ts +2 -1
  70. package/dist/ui/collection_editor/properties/validation/StringPropertyValidation.d.ts +2 -1
  71. package/dist/ui/collection_editor/properties/validation/ValidationPanel.d.ts +1 -1
  72. package/dist/useCollectionEditorPlugin.d.ts +1 -1
  73. package/package.json +13 -8
  74. package/src/locales/de.ts +2 -0
  75. package/src/locales/en.ts +2 -0
  76. package/src/locales/es.ts +2 -0
  77. package/src/locales/fr.ts +2 -0
  78. package/src/locales/hi.ts +2 -0
  79. package/src/locales/it.ts +2 -0
  80. package/src/locales/pt.ts +2 -0
  81. package/src/types/config_controller.tsx +8 -1
  82. package/src/ui/collection_editor/properties/advanced/AdvancedPropertyValidation.tsx +16 -0
@@ -74,6 +74,8 @@ export declare const collectionEditorTranslationsDe: {
74
74
  hide_from_collection_tooltip: string;
75
75
  read_only: string;
76
76
  read_only_tooltip: string;
77
+ nullable: string;
78
+ nullable_tooltip: string;
77
79
  tab_general: string;
78
80
  tab_display: string;
79
81
  tab_properties: string;
@@ -74,6 +74,8 @@ export declare const collectionEditorTranslationsEn: {
74
74
  hide_from_collection_tooltip: string;
75
75
  read_only: string;
76
76
  read_only_tooltip: string;
77
+ nullable: string;
78
+ nullable_tooltip: string;
77
79
  tab_general: string;
78
80
  tab_display: string;
79
81
  tab_properties: string;
@@ -74,6 +74,8 @@ export declare const collectionEditorTranslationsEs: {
74
74
  hide_from_collection_tooltip: string;
75
75
  read_only: string;
76
76
  read_only_tooltip: string;
77
+ nullable: string;
78
+ nullable_tooltip: string;
77
79
  tab_general: string;
78
80
  tab_display: string;
79
81
  tab_properties: string;
@@ -74,6 +74,8 @@ export declare const collectionEditorTranslationsFr: {
74
74
  hide_from_collection_tooltip: string;
75
75
  read_only: string;
76
76
  read_only_tooltip: string;
77
+ nullable: string;
78
+ nullable_tooltip: string;
77
79
  tab_general: string;
78
80
  tab_display: string;
79
81
  tab_properties: string;
@@ -74,6 +74,8 @@ export declare const collectionEditorTranslationsHi: {
74
74
  hide_from_collection_tooltip: string;
75
75
  read_only: string;
76
76
  read_only_tooltip: string;
77
+ nullable: string;
78
+ nullable_tooltip: string;
77
79
  tab_general: string;
78
80
  tab_display: string;
79
81
  tab_properties: string;
@@ -74,6 +74,8 @@ export declare const collectionEditorTranslationsIt: {
74
74
  hide_from_collection_tooltip: string;
75
75
  read_only: string;
76
76
  read_only_tooltip: string;
77
+ nullable: string;
78
+ nullable_tooltip: string;
77
79
  tab_general: string;
78
80
  tab_display: string;
79
81
  tab_properties: string;
@@ -74,6 +74,8 @@ export declare const collectionEditorTranslationsPt: {
74
74
  hide_from_collection_tooltip: string;
75
75
  read_only: string;
76
76
  read_only_tooltip: string;
77
+ nullable: string;
78
+ nullable_tooltip: string;
77
79
  tab_general: string;
78
80
  tab_display: string;
79
81
  tab_properties: string;
@@ -1,8 +1,11 @@
1
1
  import { CMSType, EntityCollection, NavigationGroupMapping, Property } from "@firecms/core";
2
2
  import { PersistedCollection } from "./persisted_collection";
3
3
  export interface CollectionsSetupInfo {
4
- status: "ongoing" | "complete" | "error";
4
+ status: "ongoing" | "complete" | "error" | "dismissed";
5
5
  error: string | null;
6
+ updated_at?: {
7
+ toDate: () => Date;
8
+ } | Date;
6
9
  }
7
10
  /**
8
11
  * Use this controller to access the configuration that is stored externally,
@@ -16,6 +19,11 @@ export interface CollectionsConfigController {
16
19
  * Stored in the project config document at `collectionsSetup`.
17
20
  */
18
21
  collectionsSetup?: CollectionsSetupInfo;
22
+ /**
23
+ * Clear the collectionsSetup status from the project config.
24
+ * Used to dismiss error messages.
25
+ */
26
+ clearCollectionsSetup?: () => Promise<void>;
19
27
  getCollection: (id: string) => PersistedCollection;
20
28
  saveCollection: <M extends {
21
29
  [Key: string]: CMSType;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { EntityCollection } from "@firecms/core";
2
3
  /**
3
4
  * Component rendered at the end of the Kanban board to add new columns (enum values).
@@ -8,4 +9,4 @@ export declare function AddKanbanColumnAction({ collection, fullPath, parentColl
8
9
  fullPath: string;
9
10
  parentCollectionIds: string[];
10
11
  columnProperty: string;
11
- }): import("react/jsx-runtime").JSX.Element;
12
+ }): React.JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import { EntityTableController, ResolvedProperty } from "@firecms/core";
2
+ import React from "react";
2
3
  import { PersistedCollection } from "../types/persisted_collection";
3
4
  export declare function CollectionViewHeaderAction({ propertyKey, onHover, property, fullPath, parentCollectionIds, collection, tableController }: {
4
5
  property: ResolvedProperty;
@@ -8,4 +9,4 @@ export declare function CollectionViewHeaderAction({ propertyKey, onHover, prope
8
9
  parentCollectionIds: string[];
9
10
  collection: PersistedCollection;
10
11
  tableController: EntityTableController;
11
- }): import("react/jsx-runtime").JSX.Element;
12
+ }): React.JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { CollectionActionsProps } from "@firecms/core";
2
- export declare function EditorCollectionAction({ path: fullPath, parentCollectionIds, collection, tableController }: CollectionActionsProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function EditorCollectionAction({ path: fullPath, parentCollectionIds, collection, tableController }: CollectionActionsProps): import("react").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { CollectionActionsProps } from "@firecms/core";
2
- export declare function EditorCollectionActionStart({ path: fullPath, parentCollectionIds, collection, tableController }: CollectionActionsProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function EditorCollectionActionStart({ path: fullPath, parentCollectionIds, collection, tableController }: CollectionActionsProps): import("react").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { PluginFormActionProps } from "@firecms/core";
2
- export declare function EditorEntityAction({ path: fullPath, parentCollectionIds, collection, formContext }: PluginFormActionProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function EditorEntityAction({ path: fullPath, parentCollectionIds, collection, formContext }: PluginFormActionProps): import("react").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { PluginHomePageActionsProps } from "@firecms/core";
2
- export declare function HomePageEditorCollectionAction({ path, collection }: PluginHomePageActionsProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function HomePageEditorCollectionAction({ path, collection }: PluginHomePageActionsProps): import("react").JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { EntityCollection } from "@firecms/core";
2
3
  /**
3
4
  * Component rendered when Kanban view is missing orderProperty configuration.
@@ -7,4 +8,4 @@ export declare function KanbanSetupAction({ collection, fullPath, parentCollecti
7
8
  collection: EntityCollection;
8
9
  fullPath: string;
9
10
  parentCollectionIds: string[];
10
- }): import("react/jsx-runtime").JSX.Element;
11
+ }): React.JSX.Element;
@@ -1,3 +1,3 @@
1
1
  export declare function MissingReferenceWidget({ path: pathProp }: {
2
2
  path: string;
3
- }): import("react/jsx-runtime").JSX.Element;
3
+ }): import("react").JSX.Element;
@@ -1 +1 @@
1
- export declare function NewCollectionButton(): import("react/jsx-runtime").JSX.Element;
1
+ export declare function NewCollectionButton(): import("react").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { PluginHomePageAdditionalCardsProps } from "@firecms/core";
2
- export declare function NewCollectionCard({ group, context }: PluginHomePageAdditionalCardsProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function NewCollectionCard({ group, context }: PluginHomePageAdditionalCardsProps): import("react").JSX.Element;
@@ -5,4 +5,4 @@ export declare function PropertyAddColumnComponent({ fullPath, parentCollectionI
5
5
  parentCollectionIds: string[];
6
6
  collection: PersistedCollection;
7
7
  tableController: EntityTableController;
8
- }): import("react/jsx-runtime").JSX.Element;
8
+ }): import("react").JSX.Element;
@@ -34,4 +34,4 @@ export interface AICollectionGeneratorPopoverProps {
34
34
  */
35
35
  onAnalyticsEvent?: (event: string, params?: object) => void;
36
36
  }
37
- export declare function AICollectionGeneratorPopover({ existingCollection, onGenerated, generateCollection, trigger, size, showLabel, onAnalyticsEvent }: AICollectionGeneratorPopoverProps): import("react/jsx-runtime").JSX.Element;
37
+ export declare function AICollectionGeneratorPopover({ existingCollection, onGenerated, generateCollection, trigger, size, showLabel, onAnalyticsEvent }: AICollectionGeneratorPopoverProps): React.JSX.Element;
@@ -16,5 +16,5 @@ export interface AIModifiedPathsContextType {
16
16
  }
17
17
  export declare function AIModifiedPathsProvider({ children }: {
18
18
  children: React.ReactNode;
19
- }): import("react/jsx-runtime").JSX.Element;
19
+ }): React.JSX.Element;
20
20
  export declare function useAIModifiedPaths(): AIModifiedPathsContextType | null;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { EntityCollection } from "@firecms/core";
2
3
  export declare function CollectionDetailsForm({ isNewCollection, reservedGroups, existingPaths, existingIds, groups, parentCollection, expandKanban }: {
3
4
  isNewCollection: boolean;
@@ -8,4 +9,4 @@ export declare function CollectionDetailsForm({ isNewCollection, reservedGroups,
8
9
  parentCollection?: EntityCollection;
9
10
  parentCollectionIds?: string[];
10
11
  expandKanban?: boolean;
11
- }): import("react/jsx-runtime").JSX.Element;
12
+ }): React.JSX.Element;
@@ -53,8 +53,8 @@ export interface CollectionEditorDialogProps {
53
53
  */
54
54
  onAnalyticsEvent?: (event: string, params?: object) => void;
55
55
  }
56
- export declare function CollectionEditorDialog(props: CollectionEditorDialogProps): import("react/jsx-runtime").JSX.Element;
56
+ export declare function CollectionEditorDialog(props: CollectionEditorDialogProps): React.JSX.Element;
57
57
  export declare function CollectionEditor(props: CollectionEditorDialogProps & {
58
58
  handleCancel: () => void;
59
59
  setFormDirty: (dirty: boolean) => void;
60
- }): import("react/jsx-runtime").JSX.Element;
60
+ }): React.JSX.Element;
@@ -8,10 +8,10 @@ export declare function CollectionEditorWelcomeView({ path, parentCollection, on
8
8
  existingCollectionPaths?: string[];
9
9
  generateCollection?: CollectionGenerationCallback;
10
10
  onAnalyticsEvent?: (event: string, params?: object) => void;
11
- }): import("react/jsx-runtime").JSX.Element;
11
+ }): React.JSX.Element;
12
12
  export declare function TemplateButton({ title, subtitle, icon, onClick }: {
13
13
  title: string;
14
14
  icon: React.ReactNode;
15
15
  subtitle: string;
16
16
  onClick?: () => void;
17
- }): import("react/jsx-runtime").JSX.Element;
17
+ }): React.JSX.Element;
@@ -1,7 +1,8 @@
1
+ import React from "react";
1
2
  import { EntityCollection } from "@firecms/core";
2
3
  export interface CollectionJsonImportDialogProps {
3
4
  open: boolean;
4
5
  onClose: () => void;
5
6
  onImport: (collection: EntityCollection) => void;
6
7
  }
7
- export declare function CollectionJsonImportDialog({ open, onClose, onImport }: CollectionJsonImportDialogProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function CollectionJsonImportDialog({ open, onClose, onImport }: CollectionJsonImportDialogProps): React.JSX.Element;
@@ -15,5 +15,5 @@ type CollectionEditorFormProps = {
15
15
  propertyConfigs: Record<string, PropertyConfig>;
16
16
  collectionEditable: boolean;
17
17
  };
18
- export declare function CollectionPropertiesEditorForm({ showErrors, isNewCollection, propertyErrorsRef, onPropertyError, setDirty, reservedGroups, extraIcon, getUser, getData, doCollectionInference, propertyConfigs, collectionEditable }: CollectionEditorFormProps): import("react/jsx-runtime").JSX.Element;
18
+ export declare function CollectionPropertiesEditorForm({ showErrors, isNewCollection, propertyErrorsRef, onPropertyError, setDirty, reservedGroups, extraIcon, getUser, getData, doCollectionInference, propertyConfigs, collectionEditable }: CollectionEditorFormProps): React.JSX.Element;
19
19
  export {};
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  export declare function DisplaySettingsForm({ expandKanban }: {
2
3
  expandKanban?: boolean;
3
- }): import("react/jsx-runtime").JSX.Element;
4
+ }): React.JSX.Element;
@@ -1,5 +1,6 @@
1
+ import React from "react";
1
2
  import { PersistedCollection } from "../../types/persisted_collection";
2
3
  export declare function EntityActionsEditTab({ collection, embedded }: {
3
4
  collection: PersistedCollection;
4
5
  embedded?: boolean;
5
- }): import("react/jsx-runtime").JSX.Element;
6
+ }): React.JSX.Element;
@@ -1,4 +1,5 @@
1
+ import React from "react";
1
2
  export declare function EntityActionsSelectDialog({ open, onClose }: {
2
3
  open: boolean;
3
4
  onClose: (selectedActionKey?: string) => void;
4
- }): import("react/jsx-runtime").JSX.Element;
5
+ }): React.JSX.Element;
@@ -1,4 +1,5 @@
1
+ import React from "react";
1
2
  export declare function EntityCustomViewsSelectDialog({ open, onClose }: {
2
3
  open: boolean;
3
4
  onClose: (selectedViewKey?: string) => void;
4
- }): import("react/jsx-runtime").JSX.Element;
5
+ }): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { EnumValueConfig } from "@firecms/core";
2
3
  type EnumFormProps = {
3
4
  enumValues: EnumValueConfig[];
@@ -8,5 +9,5 @@ type EnumFormProps = {
8
9
  allowDataInference?: boolean;
9
10
  getData?: () => Promise<string[]>;
10
11
  };
11
- export declare function EnumForm({ enumValues, onValuesChanged, onError, updateIds, disabled, allowDataInference, getData }: EnumFormProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare function EnumForm({ enumValues, onValuesChanged, onError, updateIds, disabled, allowDataInference, getData }: EnumFormProps): React.JSX.Element;
12
13
  export {};
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { EntityCollection, User } from "@firecms/core";
2
3
  import { CollectionsConfigController } from "../../types/config_controller";
3
4
  import { CollectionInference } from "../../types/collection_inference";
@@ -11,4 +12,4 @@ export declare function ExtendSettingsForm({ collection, parentCollection, confi
11
12
  parentCollectionIds?: string[];
12
13
  isMergedCollection?: boolean;
13
14
  onResetToCode?: () => void;
14
- }): import("react/jsx-runtime").JSX.Element;
15
+ }): React.JSX.Element;
@@ -1,7 +1,8 @@
1
+ import React from "react";
1
2
  import { EntityCollection } from "@firecms/core";
2
3
  export declare function GeneralSettingsForm({ isNewCollection, existingPaths, existingIds, parentCollection }: {
3
4
  isNewCollection: boolean;
4
5
  existingPaths?: string[];
5
6
  existingIds?: string[];
6
7
  parentCollection?: EntityCollection;
7
- }): import("react/jsx-runtime").JSX.Element;
8
+ }): React.JSX.Element;
@@ -1,5 +1,6 @@
1
+ import React from "react";
1
2
  export declare function GetCodeDialog({ collection, onOpenChange, open }: {
2
3
  onOpenChange: (open: boolean) => void;
3
4
  collection: any;
4
5
  open: any;
5
- }): import("react/jsx-runtime").JSX.Element;
6
+ }): React.JSX.Element;
@@ -1,4 +1,5 @@
1
+ import React from "react";
1
2
  export declare function KanbanConfigSection({ className, forceExpanded }: {
2
3
  className?: string;
3
4
  forceExpanded?: boolean;
4
- }): import("react/jsx-runtime").JSX.Element;
5
+ }): React.JSX.Element;
@@ -2,4 +2,4 @@ export declare function LayoutModeSwitch({ value, onChange, className }: {
2
2
  value: "side_panel" | "full_screen";
3
3
  onChange: (value: "side_panel" | "full_screen") => void;
4
4
  className?: string;
5
- }): import("react/jsx-runtime").JSX.Element;
5
+ }): import("react").JSX.Element;
@@ -43,11 +43,11 @@ export declare function PropertyFormDialog({ open, onCancel, onOkClicked, onProp
43
43
  open?: boolean;
44
44
  onOkClicked?: () => void;
45
45
  onCancel?: () => void;
46
- }): import("react/jsx-runtime").JSX.Element;
46
+ }): React.JSX.Element;
47
47
  export interface PropertySelectItemProps {
48
48
  onClick?: () => void;
49
49
  initialProperty?: PropertyWithId;
50
50
  propertyConfig: PropertyConfig;
51
51
  existing: boolean;
52
52
  }
53
- export declare function WidgetSelectViewItem({ onClick, initialProperty, propertyConfig, existing }: PropertySelectItemProps): import("react/jsx-runtime").JSX.Element;
53
+ export declare function WidgetSelectViewItem({ onClick, initialProperty, propertyConfig, existing }: PropertySelectItemProps): React.JSX.Element;
@@ -6,10 +6,10 @@ export declare function PropertyFieldPreview({ property, onClick, hasError, incl
6
6
  includeName?: boolean;
7
7
  includeEditButton?: boolean;
8
8
  onClick?: () => void;
9
- }): import("react/jsx-runtime").JSX.Element;
9
+ }): import("react").JSX.Element;
10
10
  export declare function NonEditablePropertyPreview({ name, selected, onClick, property }: {
11
11
  name: string;
12
12
  selected: boolean;
13
13
  onClick?: () => void;
14
14
  property?: PropertyOrBuilder;
15
- }): import("react/jsx-runtime").JSX.Element;
15
+ }): import("react").JSX.Element;
@@ -15,7 +15,7 @@ export declare const PropertyTree: React.MemoExoticComponent<(<M extends {
15
15
  className?: string;
16
16
  inferredPropertyKeys?: string[];
17
17
  collectionEditable: boolean;
18
- }) => import("react/jsx-runtime").JSX.Element)>;
18
+ }) => React.JSX.Element)>;
19
19
  export declare function PropertyTreeEntry({ id, propertyKey, namespace, propertyOrBuilder, additionalField, selectedPropertyKey, errors, propertiesOrder, onPropertyClick, onPropertyMove, onPropertyRemove, inferredPropertyKeys, collectionEditable }: {
20
20
  id: string;
21
21
  propertyKey: string;
@@ -30,4 +30,4 @@ export declare function PropertyTreeEntry({ id, propertyKey, namespace, property
30
30
  onPropertyRemove?: (propertyKey: string, namespace?: string) => void;
31
31
  inferredPropertyKeys?: string[];
32
32
  collectionEditable: boolean;
33
- }): import("react/jsx-runtime").JSX.Element;
33
+ }): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { EntityCollection, User } from "@firecms/core";
2
3
  import { CollectionsConfigController } from "../../types/config_controller";
3
4
  import { PersistedCollection } from "../../types/persisted_collection";
@@ -10,4 +11,4 @@ export declare function SubcollectionsEditTab({ collection, parentCollection, co
10
11
  getUser?: (uid: string) => User | null;
11
12
  parentCollectionIds?: string[];
12
13
  embedded?: boolean;
13
- }): import("react/jsx-runtime").JSX.Element;
14
+ }): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { FormexFieldProps } from "@firecms/formex";
2
3
  export declare function SwitchControl({ field, form, label, tooltip, disabled, size, allowIndeterminate }: FormexFieldProps & {
3
4
  label: string;
@@ -5,4 +6,4 @@ export declare function SwitchControl({ field, form, label, tooltip, disabled, s
5
6
  disabled?: boolean;
6
7
  size?: "small" | "medium";
7
8
  allowIndeterminate?: boolean;
8
- }): import("react/jsx-runtime").JSX.Element;
9
+ }): React.JSX.Element;
@@ -6,4 +6,4 @@ export interface UnsavedChangesDialogProps {
6
6
  handleOk: () => void;
7
7
  handleCancel: () => void;
8
8
  }
9
- export declare function UnsavedChangesDialog({ open, handleOk, handleCancel, body, title }: UnsavedChangesDialogProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare function UnsavedChangesDialog({ open, handleOk, handleCancel, body, title }: UnsavedChangesDialogProps): React.JSX.Element;
@@ -3,4 +3,4 @@ export declare function ViewModeSwitch({ value, onChange, className }: {
3
3
  value: ViewMode;
4
4
  onChange: (value: ViewMode) => void;
5
5
  className?: string;
6
- }): import("react/jsx-runtime").JSX.Element;
6
+ }): import("react").JSX.Element;
@@ -4,4 +4,4 @@ export declare function CollectionEditorImportDataPreview({ importConfig, proper
4
4
  importConfig: ImportConfig;
5
5
  properties: Properties;
6
6
  propertiesOrder: string[];
7
- }): import("react/jsx-runtime").JSX.Element;
7
+ }): import("react").JSX.Element;
@@ -1,14 +1,15 @@
1
1
  import { ImportConfig } from "@firecms/data_import";
2
2
  import { PropertyConfig } from "@firecms/core";
3
+ import React from "react";
3
4
  export declare function CollectionEditorImportMapping({ importConfig, propertyConfigs, collectionEditable }: {
4
5
  importConfig: ImportConfig;
5
6
  propertyConfigs: Record<string, PropertyConfig>;
6
7
  collectionEditable: boolean;
7
- }): import("react/jsx-runtime").JSX.Element;
8
+ }): React.JSX.Element;
8
9
  export interface PropertySelectItemProps {
9
10
  value: string;
10
11
  optionDisabled: boolean;
11
12
  propertyConfig: PropertyConfig;
12
13
  existing: boolean;
13
14
  }
14
- export declare function PropertySelectItem({ value, optionDisabled, propertyConfig, existing }: PropertySelectItemProps): import("react/jsx-runtime").JSX.Element;
15
+ export declare function PropertySelectItem({ value, optionDisabled, propertyConfig, existing }: PropertySelectItemProps): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { PropertyConfig } from "@firecms/core";
2
3
  export declare function BlockPropertyField({ disabled, getData, allowDataInference, propertyConfigs, collectionEditable }: {
3
4
  disabled: boolean;
@@ -5,4 +6,4 @@ export declare function BlockPropertyField({ disabled, getData, allowDataInferen
5
6
  allowDataInference: boolean;
6
7
  propertyConfigs: Record<string, PropertyConfig>;
7
8
  collectionEditable: boolean;
8
- }): import("react/jsx-runtime").JSX.Element;
9
+ }): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  export declare function BooleanPropertyField({ disabled }: {
2
3
  disabled: boolean;
3
- }): import("react/jsx-runtime").JSX.Element;
4
+ }): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  export declare function DateTimePropertyField({ disabled }: {
2
3
  disabled: boolean;
3
- }): import("react/jsx-runtime").JSX.Element;
4
+ }): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  export declare function EnumPropertyField({ multiselect, updateIds, disabled, showErrors, allowDataInference, getData, propertyNamespace }: {
2
3
  multiselect: boolean;
3
4
  updateIds: boolean;
@@ -6,4 +7,4 @@ export declare function EnumPropertyField({ multiselect, updateIds, disabled, sh
6
7
  allowDataInference?: boolean;
7
8
  getData?: () => Promise<object[]>;
8
9
  propertyNamespace?: string;
9
- }): import("react/jsx-runtime").JSX.Element;
10
+ }): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  export declare function KeyValuePropertyField({ disabled }: {
2
3
  disabled: boolean;
3
- }): import("react/jsx-runtime").JSX.Element;
4
+ }): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { PropertyConfig } from "@firecms/core";
2
3
  export declare function MapPropertyField({ disabled, getData, allowDataInference, propertyConfigs, collectionEditable }: {
3
4
  disabled: boolean;
@@ -5,4 +6,4 @@ export declare function MapPropertyField({ disabled, getData, allowDataInference
5
6
  allowDataInference: boolean;
6
7
  propertyConfigs: Record<string, PropertyConfig>;
7
8
  collectionEditable: boolean;
8
- }): import("react/jsx-runtime").JSX.Element;
9
+ }): React.JSX.Element;
@@ -1,4 +1,5 @@
1
+ import React from "react";
1
2
  export declare function MarkdownPropertyField({ disabled, showErrors }: {
2
3
  disabled: boolean;
3
4
  showErrors: boolean;
4
- }): import("react/jsx-runtime").JSX.Element;
5
+ }): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  export declare function NumberPropertyField({ disabled }: {
2
3
  disabled: boolean;
3
- }): import("react/jsx-runtime").JSX.Element;
4
+ }): React.JSX.Element;
@@ -1,14 +1,15 @@
1
+ import React from "react";
1
2
  export declare function ReferencePropertyField({ existing, multiple, disabled, showErrors, asString }: {
2
3
  existing: boolean;
3
4
  multiple: boolean;
4
5
  disabled: boolean;
5
6
  showErrors: boolean;
6
7
  asString?: boolean;
7
- }): import("react/jsx-runtime").JSX.Element;
8
+ }): React.JSX.Element;
8
9
  export declare function CollectionsSelect({ disabled, pathPath, value, handleChange, error, ...props }: {
9
10
  disabled: boolean;
10
11
  pathPath: string;
11
12
  value?: string;
12
13
  handleChange: (event: any) => void;
13
14
  error?: string;
14
- }): import("react/jsx-runtime").JSX.Element;
15
+ }): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { PropertyConfig } from "@firecms/core";
2
3
  export declare function RepeatPropertyField({ showErrors, existing, disabled, getData, allowDataInference, propertyConfigs, collectionEditable }: {
3
4
  showErrors: boolean;
@@ -7,4 +8,4 @@ export declare function RepeatPropertyField({ showErrors, existing, disabled, ge
7
8
  allowDataInference: boolean;
8
9
  propertyConfigs: Record<string, PropertyConfig>;
9
10
  collectionEditable: boolean;
10
- }): import("react/jsx-runtime").JSX.Element;
11
+ }): React.JSX.Element;
@@ -1,5 +1,6 @@
1
+ import React from "react";
1
2
  export declare function StoragePropertyField({ multiple, existing, disabled }: {
2
3
  multiple: boolean;
3
4
  existing: boolean;
4
5
  disabled: boolean;
5
- }): import("react/jsx-runtime").JSX.Element;
6
+ }): React.JSX.Element;
@@ -1,5 +1,6 @@
1
+ import React from "react";
1
2
  export declare function StringPropertyField({ widgetId, disabled, showErrors }: {
2
3
  widgetId: "text_field" | "multiline" | "email" | "user_select";
3
4
  disabled: boolean;
4
5
  showErrors: boolean;
5
- }): import("react/jsx-runtime").JSX.Element;
6
+ }): React.JSX.Element;
@@ -1,4 +1,5 @@
1
+ import React from "react";
1
2
  export declare function UrlPropertyField({ disabled, showErrors }: {
2
3
  disabled: boolean;
3
4
  showErrors: boolean;
4
- }): import("react/jsx-runtime").JSX.Element;
5
+ }): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  export declare function AdvancedPropertyValidation({ disabled }: {
2
3
  disabled: boolean;
3
- }): import("react/jsx-runtime").JSX.Element;
4
+ }): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { Properties } from "@firecms/core";
2
3
  export interface ConditionsEditorProps {
3
4
  disabled: boolean;
@@ -7,4 +8,4 @@ export interface ConditionsEditorProps {
7
8
  */
8
9
  collectionProperties?: Properties;
9
10
  }
10
- export declare function ConditionsEditor({ disabled, collectionProperties }: ConditionsEditorProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare function ConditionsEditor({ disabled, collectionProperties }: ConditionsEditorProps): React.JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { PropsWithChildren } from "react";
2
- export declare function ConditionsPanel({ children }: PropsWithChildren<{}>): import("react/jsx-runtime").JSX.Element;
2
+ export declare function ConditionsPanel({ children }: PropsWithChildren<{}>): import("react").JSX.Element;
@@ -1,6 +1,7 @@
1
+ import React from "react";
1
2
  import { Properties } from "@firecms/core";
2
3
  export interface EnumConditionsEditorProps {
3
4
  disabled: boolean;
4
5
  collectionProperties?: Properties;
5
6
  }
6
- export declare function EnumConditionsEditor({ disabled, collectionProperties }: EnumConditionsEditorProps): import("react/jsx-runtime").JSX.Element | null;
7
+ export declare function EnumConditionsEditor({ disabled, collectionProperties }: EnumConditionsEditorProps): React.JSX.Element | null;