@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.
Files changed (42) hide show
  1. package/dist/ConfigControllerProvider.d.ts +1 -1
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.es.js +792 -760
  4. package/dist/index.es.js.map +1 -1
  5. package/dist/index.umd.js +2 -2
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/persisted_collection.d.ts +1 -1
  8. package/dist/ui/EditorCollectionActionStart.d.ts +2 -0
  9. package/dist/ui/collection_editor/CollectionEditorDialog.d.ts +2 -2
  10. package/dist/ui/collection_editor/CollectionPropertiesEditorForm.d.ts +1 -1
  11. package/dist/ui/collection_editor/PropertyTree.d.ts +9 -9
  12. package/dist/ui/collection_editor/SubcollectionsEditTab.d.ts +1 -1
  13. package/dist/ui/collection_editor/utils/supported_fields.d.ts +2 -2
  14. package/dist/useCollectionEditorPlugin.d.ts +2 -2
  15. package/dist/utils/collections.d.ts +6 -0
  16. package/package.json +18 -18
  17. package/src/ConfigControllerProvider.tsx +2 -2
  18. package/src/index.ts +1 -0
  19. package/src/types/persisted_collection.ts +1 -1
  20. package/src/ui/EditorCollectionAction.tsx +0 -51
  21. package/src/ui/EditorCollectionActionStart.tsx +87 -0
  22. package/src/ui/MissingReferenceWidget.tsx +2 -1
  23. package/src/ui/NewCollectionButton.tsx +12 -10
  24. package/src/ui/collection_editor/CollectionDetailsForm.tsx +17 -18
  25. package/src/ui/collection_editor/CollectionEditorDialog.tsx +28 -14
  26. package/src/ui/collection_editor/CollectionEditorWelcomeView.tsx +1 -1
  27. package/src/ui/collection_editor/CollectionPropertiesEditorForm.tsx +8 -7
  28. package/src/ui/collection_editor/EnumForm.tsx +3 -4
  29. package/src/ui/collection_editor/GetCodeDialog.tsx +15 -3
  30. package/src/ui/collection_editor/PropertyEditView.tsx +4 -4
  31. package/src/ui/collection_editor/SubcollectionsEditTab.tsx +1 -1
  32. package/src/ui/collection_editor/import/CollectionEditorImportMapping.tsx +1 -1
  33. package/src/ui/collection_editor/properties/CommonPropertyFields.tsx +7 -8
  34. package/src/ui/collection_editor/properties/DateTimePropertyField.tsx +7 -8
  35. package/src/ui/collection_editor/properties/MapPropertyField.tsx +3 -4
  36. package/src/ui/collection_editor/properties/ReferencePropertyField.tsx +3 -4
  37. package/src/ui/collection_editor/properties/validation/StringPropertyValidation.tsx +3 -4
  38. package/src/ui/collection_editor/utils/supported_fields.tsx +3 -3
  39. package/src/useCollectionEditorPlugin.tsx +6 -6
  40. package/src/utils/collections.ts +30 -0
  41. package/dist/ui/collection_editor/properties/FieldHelperView.d.ts +0 -4
  42. 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: (uid: string) => User | null;
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";