@firecms/collection_editor 3.3.0-canary.451aa49 → 3.3.0-canary.a5780ce
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/types/config_controller.d.ts +9 -1
- package/dist/ui/AddKanbanColumnAction.d.ts +2 -1
- package/dist/ui/CollectionViewHeaderAction.d.ts +2 -1
- package/dist/ui/EditorCollectionAction.d.ts +1 -1
- package/dist/ui/EditorCollectionActionStart.d.ts +1 -1
- package/dist/ui/EditorEntityAction.d.ts +1 -1
- package/dist/ui/HomePageEditorCollectionAction.d.ts +1 -1
- package/dist/ui/KanbanSetupAction.d.ts +2 -1
- package/dist/ui/MissingReferenceWidget.d.ts +1 -1
- package/dist/ui/NewCollectionButton.d.ts +1 -1
- package/dist/ui/NewCollectionCard.d.ts +1 -1
- package/dist/ui/PropertyAddColumnComponent.d.ts +1 -1
- package/dist/ui/collection_editor/AICollectionGeneratorPopover.d.ts +1 -1
- package/dist/ui/collection_editor/AIModifiedPathsContext.d.ts +1 -1
- package/dist/ui/collection_editor/CollectionDetailsForm.d.ts +2 -1
- package/dist/ui/collection_editor/CollectionEditorDialog.d.ts +2 -2
- package/dist/ui/collection_editor/CollectionEditorWelcomeView.d.ts +2 -2
- package/dist/ui/collection_editor/CollectionJsonImportDialog.d.ts +2 -1
- package/dist/ui/collection_editor/CollectionPropertiesEditorForm.d.ts +1 -1
- package/dist/ui/collection_editor/DisplaySettingsForm.d.ts +2 -1
- package/dist/ui/collection_editor/EntityActionsEditTab.d.ts +2 -1
- package/dist/ui/collection_editor/EntityActionsSelectDialog.d.ts +2 -1
- package/dist/ui/collection_editor/EntityCustomViewsSelectDialog.d.ts +2 -1
- package/dist/ui/collection_editor/EnumForm.d.ts +2 -1
- package/dist/ui/collection_editor/ExtendSettingsForm.d.ts +2 -1
- package/dist/ui/collection_editor/GeneralSettingsForm.d.ts +2 -1
- package/dist/ui/collection_editor/GetCodeDialog.d.ts +2 -1
- package/dist/ui/collection_editor/KanbanConfigSection.d.ts +2 -1
- package/dist/ui/collection_editor/LayoutModeSwitch.d.ts +1 -1
- package/dist/ui/collection_editor/PropertyEditView.d.ts +2 -2
- package/dist/ui/collection_editor/PropertyFieldPreview.d.ts +2 -2
- package/dist/ui/collection_editor/PropertyTree.d.ts +2 -2
- package/dist/ui/collection_editor/SubcollectionsEditTab.d.ts +2 -1
- package/dist/ui/collection_editor/SwitchControl.d.ts +2 -1
- package/dist/ui/collection_editor/UnsavedChangesDialog.d.ts +1 -1
- package/dist/ui/collection_editor/ViewModeSwitch.d.ts +1 -1
- package/dist/ui/collection_editor/import/CollectionEditorImportDataPreview.d.ts +1 -1
- package/dist/ui/collection_editor/import/CollectionEditorImportMapping.d.ts +3 -2
- package/dist/ui/collection_editor/properties/BlockPropertyField.d.ts +2 -1
- package/dist/ui/collection_editor/properties/BooleanPropertyField.d.ts +2 -1
- package/dist/ui/collection_editor/properties/DateTimePropertyField.d.ts +2 -1
- package/dist/ui/collection_editor/properties/EnumPropertyField.d.ts +2 -1
- package/dist/ui/collection_editor/properties/KeyValuePropertyField.d.ts +2 -1
- package/dist/ui/collection_editor/properties/MapPropertyField.d.ts +2 -1
- package/dist/ui/collection_editor/properties/MarkdownPropertyField.d.ts +2 -1
- package/dist/ui/collection_editor/properties/NumberPropertyField.d.ts +2 -1
- package/dist/ui/collection_editor/properties/ReferencePropertyField.d.ts +3 -2
- package/dist/ui/collection_editor/properties/RepeatPropertyField.d.ts +2 -1
- package/dist/ui/collection_editor/properties/StoragePropertyField.d.ts +2 -1
- package/dist/ui/collection_editor/properties/StringPropertyField.d.ts +2 -1
- package/dist/ui/collection_editor/properties/UrlPropertyField.d.ts +2 -1
- package/dist/ui/collection_editor/properties/advanced/AdvancedPropertyValidation.d.ts +2 -1
- package/dist/ui/collection_editor/properties/conditions/ConditionsEditor.d.ts +2 -1
- package/dist/ui/collection_editor/properties/conditions/ConditionsPanel.d.ts +1 -1
- package/dist/ui/collection_editor/properties/conditions/EnumConditionsEditor.d.ts +2 -1
- package/dist/ui/collection_editor/properties/validation/ArrayPropertyValidation.d.ts +2 -1
- package/dist/ui/collection_editor/properties/validation/GeneralPropertyValidation.d.ts +2 -1
- package/dist/ui/collection_editor/properties/validation/NumberPropertyValidation.d.ts +2 -1
- package/dist/ui/collection_editor/properties/validation/StringPropertyValidation.d.ts +2 -1
- package/dist/ui/collection_editor/properties/validation/ValidationPanel.d.ts +1 -1
- package/dist/useCollectionEditorPlugin.d.ts +1 -1
- package/package.json +13 -8
- package/src/types/config_controller.tsx +8 -1
|
@@ -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
|
-
}):
|
|
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
|
-
}):
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
}):
|
|
11
|
+
}): React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function NewCollectionButton(): import("react
|
|
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
|
|
2
|
+
export declare function NewCollectionCard({ group, context }: PluginHomePageAdditionalCardsProps): 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):
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
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):
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
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):
|
|
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):
|
|
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,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
|
-
}):
|
|
6
|
+
}): 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):
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
8
|
+
}): 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
|
|
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
|
-
}):
|
|
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):
|
|
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
|
|
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
|
|
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
|
-
}) =>
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
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):
|
|
9
|
+
export declare function UnsavedChangesDialog({ open, handleOk, handleCancel, body, title }: UnsavedChangesDialogProps): 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
|
-
}):
|
|
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):
|
|
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
|
-
}):
|
|
9
|
+
}): 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
|
-
}):
|
|
10
|
+
}): 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
|
-
}):
|
|
9
|
+
}): 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
|
-
}):
|
|
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
|
-
}):
|
|
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
|
-
}):
|
|
11
|
+
}): 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
|
-
}):
|
|
6
|
+
}): 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):
|
|
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
|
|
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):
|
|
7
|
+
export declare function EnumConditionsEditor({ disabled, collectionProperties }: EnumConditionsEditorProps): React.JSX.Element | null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
export declare function StringPropertyValidation({ length, lowercase, matches, max, min, trim, uppercase, disabled, showErrors }: {
|
|
2
3
|
length?: boolean;
|
|
3
4
|
min?: boolean;
|
|
@@ -8,4 +9,4 @@ export declare function StringPropertyValidation({ length, lowercase, matches, m
|
|
|
8
9
|
uppercase?: boolean;
|
|
9
10
|
disabled: boolean;
|
|
10
11
|
showErrors: boolean;
|
|
11
|
-
}):
|
|
12
|
+
}): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PropsWithChildren } from "react";
|
|
2
|
-
export declare function ValidationPanel({ children }: PropsWithChildren<{}>): import("react
|
|
2
|
+
export declare function ValidationPanel({ children }: PropsWithChildren<{}>): import("react").JSX.Element;
|
|
@@ -50,4 +50,4 @@ export interface CollectionConfigControllerProps<EC extends PersistedCollection
|
|
|
50
50
|
* @param collectionInference
|
|
51
51
|
*/
|
|
52
52
|
export declare function useCollectionEditorPlugin<EC extends PersistedCollection = PersistedCollection, USER extends User = User>({ collectionConfigController, configPermissions, reservedGroups, extraView, getUser, collectionInference, getData, onAnalyticsEvent, includeIntroView, pathSuggestions, generateCollection }: CollectionConfigControllerProps<EC, USER>): FireCMSPlugin<any, any, PersistedCollection>;
|
|
53
|
-
export declare function IntroWidget():
|
|
53
|
+
export declare function IntroWidget(): React.JSX.Element | null;
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firecms/collection_editor",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.3.0-canary.
|
|
4
|
+
"version": "3.3.0-canary.a5780ce",
|
|
5
5
|
"main": "./dist/index.umd.js",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"source": "src/index.ts",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@firecms/data_export": "^3.3.0-canary.
|
|
11
|
-
"@firecms/data_import": "^3.3.0-canary.
|
|
12
|
-
"@firecms/data_import_export": "^3.3.0-canary.
|
|
13
|
-
"@firecms/formex": "^3.3.0-canary.
|
|
14
|
-
"@firecms/schema_inference": "^3.3.0-canary.
|
|
15
|
-
"@firecms/ui": "^3.3.0-canary.
|
|
10
|
+
"@firecms/data_export": "^3.3.0-canary.a5780ce",
|
|
11
|
+
"@firecms/data_import": "^3.3.0-canary.a5780ce",
|
|
12
|
+
"@firecms/data_import_export": "^3.3.0-canary.a5780ce",
|
|
13
|
+
"@firecms/formex": "^3.3.0-canary.a5780ce",
|
|
14
|
+
"@firecms/schema_inference": "^3.3.0-canary.a5780ce",
|
|
15
|
+
"@firecms/ui": "^3.3.0-canary.a5780ce",
|
|
16
16
|
"json5": "^2.2.3",
|
|
17
17
|
"prism-react-renderer": "^2.4.1"
|
|
18
18
|
},
|
|
@@ -69,5 +69,10 @@
|
|
|
69
69
|
"publishConfig": {
|
|
70
70
|
"access": "public"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "9ecf37abf793bd2f2daaaed6f517ee5ee19b01ae",
|
|
73
|
+
"repository": {
|
|
74
|
+
"type": "git",
|
|
75
|
+
"url": "https://github.com/FireCMSco/firecms.git",
|
|
76
|
+
"directory": "packages/collection_editor"
|
|
77
|
+
}
|
|
73
78
|
}
|
|
@@ -2,8 +2,9 @@ import { CMSType, EntityCollection, NavigationGroupMapping, Property } from "@fi
|
|
|
2
2
|
import { PersistedCollection } from "./persisted_collection";
|
|
3
3
|
|
|
4
4
|
export interface CollectionsSetupInfo {
|
|
5
|
-
status: "ongoing" | "complete" | "error";
|
|
5
|
+
status: "ongoing" | "complete" | "error" | "dismissed";
|
|
6
6
|
error: string | null;
|
|
7
|
+
updated_at?: { toDate: () => Date } | Date;
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
/**
|
|
@@ -22,6 +23,12 @@ export interface CollectionsConfigController {
|
|
|
22
23
|
*/
|
|
23
24
|
collectionsSetup?: CollectionsSetupInfo;
|
|
24
25
|
|
|
26
|
+
/**
|
|
27
|
+
* Clear the collectionsSetup status from the project config.
|
|
28
|
+
* Used to dismiss error messages.
|
|
29
|
+
*/
|
|
30
|
+
clearCollectionsSetup?: () => Promise<void>;
|
|
31
|
+
|
|
25
32
|
getCollection: (id: string) => PersistedCollection;
|
|
26
33
|
|
|
27
34
|
saveCollection: <M extends { [Key: string]: CMSType }>(params: SaveCollectionParams<M>) => Promise<void>;
|