@firecms/collection_editor 3.0.0-canary.4 → 3.0.0-canary.41
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/ConfigControllerProvider.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +792 -760
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/types/persisted_collection.d.ts +1 -1
- package/dist/ui/EditorCollectionActionStart.d.ts +2 -0
- package/dist/ui/collection_editor/CollectionEditorDialog.d.ts +2 -2
- package/dist/ui/collection_editor/CollectionPropertiesEditorForm.d.ts +1 -1
- package/dist/ui/collection_editor/PropertyTree.d.ts +9 -9
- package/dist/ui/collection_editor/SubcollectionsEditTab.d.ts +1 -1
- package/dist/ui/collection_editor/utils/supported_fields.d.ts +2 -2
- package/dist/useCollectionEditorPlugin.d.ts +2 -2
- package/dist/utils/collections.d.ts +6 -0
- package/package.json +18 -18
- package/src/ConfigControllerProvider.tsx +2 -2
- package/src/index.ts +1 -0
- package/src/types/persisted_collection.ts +1 -1
- package/src/ui/EditorCollectionAction.tsx +0 -51
- package/src/ui/EditorCollectionActionStart.tsx +87 -0
- package/src/ui/MissingReferenceWidget.tsx +2 -1
- package/src/ui/NewCollectionButton.tsx +12 -10
- package/src/ui/collection_editor/CollectionDetailsForm.tsx +17 -18
- package/src/ui/collection_editor/CollectionEditorDialog.tsx +28 -14
- package/src/ui/collection_editor/CollectionEditorWelcomeView.tsx +1 -1
- package/src/ui/collection_editor/CollectionPropertiesEditorForm.tsx +8 -7
- package/src/ui/collection_editor/EnumForm.tsx +3 -4
- package/src/ui/collection_editor/GetCodeDialog.tsx +15 -3
- package/src/ui/collection_editor/PropertyEditView.tsx +4 -4
- package/src/ui/collection_editor/SubcollectionsEditTab.tsx +1 -1
- package/src/ui/collection_editor/import/CollectionEditorImportMapping.tsx +1 -1
- package/src/ui/collection_editor/properties/CommonPropertyFields.tsx +7 -8
- package/src/ui/collection_editor/properties/DateTimePropertyField.tsx +7 -8
- package/src/ui/collection_editor/properties/MapPropertyField.tsx +3 -4
- package/src/ui/collection_editor/properties/ReferencePropertyField.tsx +3 -4
- package/src/ui/collection_editor/properties/validation/StringPropertyValidation.tsx +3 -4
- package/src/ui/collection_editor/utils/supported_fields.tsx +3 -3
- package/src/useCollectionEditorPlugin.tsx +6 -6
- package/src/utils/collections.ts +30 -0
- package/dist/ui/collection_editor/properties/FieldHelperView.d.ts +0 -4
- package/src/ui/collection_editor/properties/FieldHelperView.tsx +0 -13
|
@@ -30,7 +30,7 @@ export interface ConfigControllerProviderProps {
|
|
|
30
30
|
icon: React.ReactNode;
|
|
31
31
|
};
|
|
32
32
|
pathSuggestions?: (path?: string) => Promise<string[]>;
|
|
33
|
-
getUser
|
|
33
|
+
getUser?: (uid: string) => User | null;
|
|
34
34
|
getData?: (path: string, parentPaths: string[]) => Promise<object[]>;
|
|
35
35
|
onAnalyticsEvent?: (event: string, params?: object) => void;
|
|
36
36
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { useCollectionEditorPlugin } from "./useCollectionEditorPlugin";
|
|
|
2
2
|
export { useCollectionEditorController } from "./useCollectionEditorController";
|
|
3
3
|
export { useCollectionsConfigController } from "./useCollectionsConfigController";
|
|
4
4
|
export { editableProperty, removeNonEditableProperties } from "./utils/entities";
|
|
5
|
+
export * from "./utils/collections";
|
|
5
6
|
export type { CollectionsConfigController, DeleteCollectionParams, SaveCollectionParams, UpdateCollectionParams } from "./types/config_controller";
|
|
6
7
|
export type { CollectionEditorController } from "./types/collection_editor_controller";
|
|
7
8
|
export type { CollectionEditorPermissions, CollectionEditorPermissionsBuilder } from "./types/config_permissions";
|