@firecms/collection_editor 3.0.0-alpha.47 → 3.0.0-alpha.49
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/index.es.js +3 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/useCollectionEditorPlugin.d.ts +1 -1
- package/package.json +4 -4
- package/src/ui/collection_editor/SubcollectionsEditTab.tsx +2 -0
- package/src/useCollectionEditorPlugin.tsx +2 -3
|
@@ -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 |
|
|
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.
|
|
3
|
+
"version": "3.0.0-alpha.49",
|
|
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.
|
|
18
|
-
"@firecms/schema_inference": "^3.0.0-alpha.
|
|
17
|
+
"@firecms/data_import_export": "^3.0.0-alpha.49",
|
|
18
|
+
"@firecms/schema_inference": "^3.0.0-alpha.49",
|
|
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": "
|
|
81
|
+
"gitHead": "c9502da4e2caa2c3c896fbae55a7fe788cd0b840"
|
|
82
82
|
}
|
|
@@ -27,7 +27,7 @@ export interface CollectionConfigControllerProps<EC extends PersistedCollection
|
|
|
27
27
|
*/
|
|
28
28
|
collectionConfigController: CollectionsConfigController;
|
|
29
29
|
|
|
30
|
-
modifyCollection?: (props: ModifyCollectionProps) => EntityCollection |
|
|
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
|
-
|
|
95
|
-
return joinCollectionLists1;
|
|
94
|
+
return joinCollectionLists(collections, storedCollections, [], modifyCollection);
|
|
96
95
|
},
|
|
97
96
|
[collectionConfigController.collections, modifyCollection]);
|
|
98
97
|
|