@firecms/core 3.0.0-canary.256 → 3.0.0-canary.257

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.256",
4
+ "version": "3.0.0-canary.257",
5
5
  "description": "Awesome Firebase/Firestore-based headless open-source CMS",
6
6
  "funding": {
7
7
  "url": "https://github.com/sponsors/firecmsco"
@@ -53,9 +53,9 @@
53
53
  "@dnd-kit/core": "^6.3.1",
54
54
  "@dnd-kit/modifiers": "^9.0.0",
55
55
  "@dnd-kit/sortable": "^10.0.0",
56
- "@firecms/editor": "^3.0.0-canary.256",
57
- "@firecms/formex": "^3.0.0-canary.256",
58
- "@firecms/ui": "^3.0.0-canary.256",
56
+ "@firecms/editor": "^3.0.0-canary.257",
57
+ "@firecms/formex": "^3.0.0-canary.257",
58
+ "@firecms/ui": "^3.0.0-canary.257",
59
59
  "@radix-ui/react-portal": "^1.1.3",
60
60
  "clsx": "^2.1.1",
61
61
  "date-fns": "^3.6.0",
@@ -107,7 +107,7 @@
107
107
  "dist",
108
108
  "src"
109
109
  ],
110
- "gitHead": "a05357be19923c876c5a4dcb1fe1da37e2efc232",
110
+ "gitHead": "10acfa9045cfffd6dcc61fe208f59a8180df6009",
111
111
  "publishConfig": {
112
112
  "access": "public"
113
113
  },
@@ -31,7 +31,7 @@ export const editEntityAction: EntityAction = {
31
31
  addRecentId(collection.id, entity.id);
32
32
  }
33
33
 
34
- const path = collection?.collectionGroup ? collection.path : (fullPath ?? collection?.path ?? entity.path);
34
+ const path = collection?.collectionGroup ? entity.path : (fullPath ?? collection?.path ?? entity.path);
35
35
  const newFullIdPath = collection?.collectionGroup ? collection.id : (fullIdPath ?? collection?.id ?? entity.path);
36
36
  const defaultSelectedView = resolveDefaultSelectedView(
37
37
  collection ? collection.defaultSelectedView : undefined,
@@ -134,7 +134,7 @@ export function useDataSourceTableController<M extends Record<string, any> = any
134
134
  } = parseFilterAndSort(window.location.search);
135
135
 
136
136
  const [filterValues, setFilterValues] = React.useState<FilterValues<Extract<keyof M, string>> | undefined>(forceFilter ?? (updateUrl ? initialFilterUrl : undefined) ?? initialFilter ?? undefined);
137
- const [sortBy, setSortBy] = React.useState<[Extract<keyof M, string>, "asc" | "desc"] | undefined>(initialSortUrl ?? initialSortInternal);
137
+ const [sortBy, setSortBy] = React.useState<[Extract<keyof M, string>, "asc" | "desc"] | undefined>((updateUrl ? initialSortUrl : undefined) ?? initialSortInternal);
138
138
 
139
139
  useUpdateUrl(filterValues, sortBy, searchString, updateUrl);
140
140