@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/dist/index.es.js
CHANGED
|
@@ -11825,7 +11825,7 @@ function useDataSourceTableController({
|
|
|
11825
11825
|
sortBy: initialSortUrl
|
|
11826
11826
|
} = parseFilterAndSort(window.location.search);
|
|
11827
11827
|
const [filterValues_0, setFilterValues] = React__default.useState(forceFilter ?? (updateUrl ? initialFilterUrl : void 0) ?? initialFilter ?? void 0);
|
|
11828
|
-
const [sortBy_0, setSortBy] = React__default.useState(initialSortUrl ?? initialSortInternal);
|
|
11828
|
+
const [sortBy_0, setSortBy] = React__default.useState((updateUrl ? initialSortUrl : void 0) ?? initialSortInternal);
|
|
11829
11829
|
useUpdateUrl(filterValues_0, sortBy_0, searchString, updateUrl);
|
|
11830
11830
|
const collectionScroll = scrollRestoration?.getCollectionScroll(fullPath, filterValues_0);
|
|
11831
11831
|
const initialItemCount = collectionScroll?.data.length ?? pageSize;
|
|
@@ -12413,7 +12413,7 @@ const editEntityAction = {
|
|
|
12413
12413
|
if (collection) {
|
|
12414
12414
|
addRecentId(collection.id, entity.id);
|
|
12415
12415
|
}
|
|
12416
|
-
const path = collection?.collectionGroup ?
|
|
12416
|
+
const path = collection?.collectionGroup ? entity.path : fullPath ?? collection?.path ?? entity.path;
|
|
12417
12417
|
const newFullIdPath = collection?.collectionGroup ? collection.id : fullIdPath ?? collection?.id ?? entity.path;
|
|
12418
12418
|
const defaultSelectedView = resolveDefaultSelectedView(collection ? collection.defaultSelectedView : void 0, {
|
|
12419
12419
|
status: "existing",
|
|
@@ -15212,7 +15212,7 @@ function EntityForm({
|
|
|
15212
15212
|
const formView = /* @__PURE__ */ jsx(ErrorBoundary, { children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
15213
15213
|
!Builder && /* @__PURE__ */ jsxs("div", { className: "w-full py-2 flex flex-col items-start my-4 lg:my-6", children: [
|
|
15214
15214
|
/* @__PURE__ */ jsx(Typography, { className: "my-4 flex-grow line-clamp-1 " + (collection.hideIdFromForm ? "mb-6" : ""), variant: "h4", children: title ?? collection.singularName ?? collection.name }),
|
|
15215
|
-
showEntityPath && /* @__PURE__ */ jsx(Alert, { color: "base",
|
|
15215
|
+
showEntityPath && /* @__PURE__ */ jsx(Alert, { color: "base", outerClassName: "w-full", size: "small", children: /* @__PURE__ */ jsxs("code", { className: "text-xs select-all text-text-secondary dark:text-text-secondary-dark", children: [
|
|
15216
15216
|
entity?.path ?? path,
|
|
15217
15217
|
"/",
|
|
15218
15218
|
entityId
|