@firecms/core 3.0.0-canary.226 → 3.0.0-canary.227

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@firecms/core",
3
3
  "type": "module",
4
- "version": "3.0.0-canary.226",
4
+ "version": "3.0.0-canary.227",
5
5
  "description": "Awesome Firebase/Firestore-based headless open-source CMS",
6
6
  "funding": {
7
7
  "url": "https://github.com/sponsors/firecmsco"
@@ -50,9 +50,9 @@
50
50
  "./package.json": "./package.json"
51
51
  },
52
52
  "dependencies": {
53
- "@firecms/editor": "^3.0.0-canary.226",
54
- "@firecms/formex": "^3.0.0-canary.226",
55
- "@firecms/ui": "^3.0.0-canary.226",
53
+ "@firecms/editor": "^3.0.0-canary.227",
54
+ "@firecms/formex": "^3.0.0-canary.227",
55
+ "@firecms/ui": "^3.0.0-canary.227",
56
56
  "@hello-pangea/dnd": "^17.0.0",
57
57
  "@radix-ui/react-portal": "^1.1.3",
58
58
  "clsx": "^2.1.1",
@@ -105,7 +105,7 @@
105
105
  "dist",
106
106
  "src"
107
107
  ],
108
- "gitHead": "186d2820e1dd7b69916647c3f887ff275351e863",
108
+ "gitHead": "7bd583a9a6d3edb89a5872aebd2c358bff4f1b09",
109
109
  "publishConfig": {
110
110
  "access": "public"
111
111
  },
@@ -148,11 +148,7 @@ export const EntityCollectionView = React.memo(
148
148
 
149
149
  const context = useFireCMSContext();
150
150
  const navigation = useNavigationController();
151
- const fullPath = (fullPathProp ? navigation.resolveIdsFrom(fullPathProp) : undefined) ?? collectionProp.path;
152
- console.log("aaa", {
153
- fullPathProp,
154
- fullPath,
155
- })
151
+ const fullPath = fullPathProp ?? collectionProp.path;
156
152
  const dataSource = useDataSource(collectionProp);
157
153
  const sideEntityController = useSideEntityController();
158
154
  const authController = useAuthController();
@@ -30,7 +30,7 @@ export const editEntityAction: EntityAction = {
30
30
  addRecentId(collection.id, entity.id);
31
31
  }
32
32
 
33
- const path = collection?.collectionGroup ? entity.path : (fullPath ?? entity.path);
33
+ const path = collection?.collectionGroup ? collection.id : (fullPath ?? collection?.id ?? entity.path);
34
34
  const defaultSelectedView = resolveDefaultSelectedView(
35
35
  collection ? collection.defaultSelectedView : undefined,
36
36
  {
@@ -71,7 +71,8 @@ export const copyEntityAction: EntityAction = {
71
71
  path: entity.path,
72
72
  entityId: entity.id
73
73
  });
74
- const path = collection?.collectionGroup ? entity.path : (fullPath ?? entity.path)
74
+
75
+ const path = collection?.collectionGroup ? collection.id : (fullPath ?? collection?.id ?? entity.path);
75
76
  navigateToEntity({
76
77
  openEntityMode,
77
78
  collection,