@firecms/collection_editor 3.0.0-alpha.47 → 3.0.0-alpha.48

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.
@@ -9,7 +9,7 @@ export interface CollectionConfigControllerProps<EC extends PersistedCollection
9
9
  * Firebase app where the configuration is saved.
10
10
  */
11
11
  collectionConfigController: CollectionsConfigController;
12
- modifyCollection?: (props: ModifyCollectionProps) => EntityCollection | undefined;
12
+ modifyCollection?: (props: ModifyCollectionProps) => EntityCollection | void;
13
13
  /**
14
14
  * Define what actions can be performed on the configuration.
15
15
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firecms/collection_editor",
3
- "version": "3.0.0-alpha.47",
3
+ "version": "3.0.0-alpha.48",
4
4
  "main": "./dist/index.umd.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "types": "dist/index.d.ts",
@@ -14,8 +14,8 @@
14
14
  "./package.json": "./package.json"
15
15
  },
16
16
  "dependencies": {
17
- "@firecms/data_import_export": "^3.0.0-alpha.47",
18
- "@firecms/schema_inference": "^3.0.0-alpha.47",
17
+ "@firecms/data_import_export": "^3.0.0-alpha.48",
18
+ "@firecms/schema_inference": "^3.0.0-alpha.48",
19
19
  "json5": "^2.2.3",
20
20
  "prism-react-renderer": "^2.3.0"
21
21
  },
@@ -78,5 +78,5 @@
78
78
  "publishConfig": {
79
79
  "access": "public"
80
80
  },
81
- "gitHead": "1c2310776f2da9bba46ba352e9a5244118dcdc3f"
81
+ "gitHead": "04d4690b0b71a4dd56a01a77e4c639d6af79be86"
82
82
  }
@@ -197,6 +197,8 @@ export function SubcollectionsEditTab({
197
197
  </div>
198
198
  </Container>
199
199
 
200
+ <div style={{ height: "52px" }}/>
201
+
200
202
  {subcollectionToDelete &&
201
203
  <DeleteConfirmationDialog open={Boolean(subcollectionToDelete)}
202
204
  onAccept={() => {
@@ -27,7 +27,7 @@ export interface CollectionConfigControllerProps<EC extends PersistedCollection
27
27
  */
28
28
  collectionConfigController: CollectionsConfigController;
29
29
 
30
- modifyCollection?: (props: ModifyCollectionProps) => EntityCollection | undefined;
30
+ modifyCollection?: (props: ModifyCollectionProps) => EntityCollection | void;
31
31
 
32
32
  /**
33
33
  * Define what actions can be performed on the configuration.
@@ -91,8 +91,7 @@ export function useCollectionEditorPlugin<EC extends PersistedCollection = Persi
91
91
  };
92
92
  const storedCollections = collectionConfigController.collections ?? [];
93
93
  storedCollections.forEach(markAsEditable);
94
- const joinCollectionLists1 = joinCollectionLists(collections, storedCollections, [], modifyCollection);
95
- return joinCollectionLists1;
94
+ return joinCollectionLists(collections, storedCollections, [], modifyCollection);
96
95
  },
97
96
  [collectionConfigController.collections, modifyCollection]);
98
97