@firecms/core 3.0.0-canary.2 → 3.0.0-canary.3
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 +423 -424
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +4 -4
- package/src/hooks/useBuildNavigationController.tsx +1 -9
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firecms/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.0-canary.
|
|
4
|
+
"version": "3.0.0-canary.3",
|
|
5
5
|
"description": "Awesome Firebase/Firestore-based headless open-source CMS",
|
|
6
6
|
"funding": {
|
|
7
7
|
"url": "https://github.com/sponsors/firecmsco"
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"./package.json": "./package.json"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@firecms/formex": "^3.0.0-canary.
|
|
50
|
-
"@firecms/ui": "^3.0.0-canary.
|
|
49
|
+
"@firecms/formex": "^3.0.0-canary.3",
|
|
50
|
+
"@firecms/ui": "^3.0.0-canary.3",
|
|
51
51
|
"@fontsource/ibm-plex-mono": "^5.0.8",
|
|
52
52
|
"@fontsource/roboto": "^5.0.8",
|
|
53
53
|
"@hello-pangea/dnd": "^16.5.0",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"dist",
|
|
116
116
|
"src"
|
|
117
117
|
],
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "9d587b683991dfcefd28e1c13b693364b5de72b2",
|
|
119
119
|
"publishConfig": {
|
|
120
120
|
"access": "public"
|
|
121
121
|
}
|
|
@@ -279,15 +279,7 @@ export function useBuildNavigationController<EC extends EntityCollection, UserTy
|
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
// for each odd path segment, get the collection
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
getCollectionFromPaths(oddPathSegments);
|
|
285
|
-
|
|
286
|
-
// const allParentCollectionsForPath = getAllParentReferencesForPath(path);
|
|
287
|
-
// console.log("allParentCollectionsForPath", allParentCollectionsForPath);
|
|
288
|
-
// const parentCollectionIds = allParentCollectionsForPath.map(r => r.id);
|
|
289
|
-
console.log("getParentCollectionIds", path, parentCollectionIds);
|
|
290
|
-
return parentCollectionIds;
|
|
282
|
+
return result.map(r => getCollectionFromPaths(r)?.id).filter(Boolean) as string[];
|
|
291
283
|
}, [getAllParentReferencesForPath])
|
|
292
284
|
|
|
293
285
|
const convertIdsToPaths = useCallback((ids: string[]): string[] => {
|