@firecms/core 3.0.0-canary.256 → 3.0.0-canary.258
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 -3
- 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 +5 -5
- package/src/components/common/default_entity_actions.tsx +1 -1
- package/src/components/common/useDataSourceTableController.tsx +1 -1
- package/src/form/EntityForm.tsx +1 -1
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.258",
|
|
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.
|
|
57
|
-
"@firecms/formex": "^3.0.0-canary.
|
|
58
|
-
"@firecms/ui": "^3.0.0-canary.
|
|
56
|
+
"@firecms/editor": "^3.0.0-canary.258",
|
|
57
|
+
"@firecms/formex": "^3.0.0-canary.258",
|
|
58
|
+
"@firecms/ui": "^3.0.0-canary.258",
|
|
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": "
|
|
110
|
+
"gitHead": "2d408ab25c6f29305fa6052d2aff07a5ab3daa14",
|
|
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 ?
|
|
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
|
|
package/src/form/EntityForm.tsx
CHANGED
|
@@ -628,7 +628,7 @@ export function EntityForm<M extends Record<string, any>>({
|
|
|
628
628
|
variant={"h4"}>
|
|
629
629
|
{title ?? collection.singularName ?? collection.name}
|
|
630
630
|
</Typography>
|
|
631
|
-
{showEntityPath && <Alert color={"base"}
|
|
631
|
+
{showEntityPath && <Alert color={"base"} outerClassName={"w-full"} size={"small"}>
|
|
632
632
|
<code
|
|
633
633
|
className={"text-xs select-all text-text-secondary dark:text-text-secondary-dark"}>
|
|
634
634
|
{entity?.path ?? path}/{entityId}
|